From 8e1c0fe2d022ac2c08ae9cd2446aa85446494063 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 8 Jul 2021 16:09:31 +0800 Subject: [PATCH 01/64] perf(dataset): improve name-gen perf for high dim data. --- src/data/helper/completeDimensions.ts | 34 ++++--- test/dataset-performance.html | 125 ++++++++++++++++++++++++++ 2 files changed, 148 insertions(+), 11 deletions(-) create mode 100644 test/dataset-performance.html diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts index 972dbc5930..f95122b89f 100644 --- a/src/data/helper/completeDimensions.ts +++ b/src/data/helper/completeDimensions.ts @@ -34,6 +34,7 @@ import DataDimensionInfo from '../DataDimensionInfo'; import List from '../List'; import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './createDimensions'; + /** * @see {module:echarts/test/ut/spec/data/completeDimensions} * @@ -226,26 +227,34 @@ function completeDimensions( const fromZero = generateCoordCount != null; generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const extra = generateCoord || 'value'; - + let coordDimNameAutoIdx = 0; + let dataDimNameAutoIdx = 0; // Set dim `name` and other `coordDim` and other props. for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); const coordDim = resultItem.coordDim; if (coordDim == null) { - resultItem.coordDim = genName( - extra, coordDimNameMap, fromZero + const res = genName( + extra, coordDimNameMap, coordDimNameAutoIdx, fromZero ); + coordDimNameAutoIdx = res.autoIdx; + resultItem.coordDim = res.name; resultItem.coordDimIndex = 0; + // Series specified generateCoord is using out. if (!generateCoord || generateCoordCount <= 0) { resultItem.isExtraCoord = true; } generateCoordCount--; } - resultItem.name == null && (resultItem.name = genName( - resultItem.coordDim, dataDimNameMap, false - )); + if (resultItem.name == null) { + const res = genName( + resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false + ); + resultItem.name = res.name; + dataDimNameAutoIdx = res.autoIdx; + } if (resultItem.type == null && ( @@ -312,17 +321,20 @@ function getDimCount( function genName( name: DimensionName, map: HashMap, + autoIdx: number, fromZero: boolean -): DimensionName { - if (fromZero || map.get(name) != null) { - let i = 0; - while (map.get(name + i) != null) { +): { name: DimensionName, autoIdx: number } { + const mapData = map.data; + if (fromZero || mapData.hasOwnProperty(name)) { + let i = autoIdx || 0; + while (mapData.hasOwnProperty(name + i)) { i++; } name += i; + autoIdx = i; } map.set(name, true); - return name; + return { name, autoIdx }; } export default completeDimensions; diff --git a/test/dataset-performance.html b/test/dataset-performance.html new file mode 100644 index 0000000000..b3992544be --- /dev/null +++ b/test/dataset-performance.html @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + From 85ee886e86e599bc5b5f8d374d3b14cd2dbe9c51 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 9 Jul 2021 23:18:18 +0800 Subject: [PATCH 02/64] refact(data): separate List to DataStorage and SeriesData --- src/animation/universalTransition.ts | 18 +- src/chart/bar/BarSeries.ts | 8 +- src/chart/bar/BarView.ts | 24 +- src/chart/bar/BaseBarSeries.ts | 6 +- src/chart/bar/PictorialBarView.ts | 16 +- src/chart/boxplot/BoxplotView.ts | 8 +- src/chart/candlestick/CandlestickSeries.ts | 4 +- src/chart/candlestick/CandlestickView.ts | 8 +- src/chart/candlestick/candlestickLayout.ts | 10 +- src/chart/custom/CustomSeries.ts | 6 +- src/chart/custom/CustomView.ts | 10 +- .../effectScatter/EffectScatterSeries.ts | 8 +- src/chart/funnel/FunnelSeries.ts | 8 +- src/chart/funnel/FunnelView.ts | 10 +- src/chart/funnel/funnelLayout.ts | 6 +- src/chart/gauge/GaugeSeries.ts | 8 +- src/chart/gauge/GaugeView.ts | 4 +- src/chart/graph/GraphSeries.ts | 14 +- src/chart/graph/GraphView.ts | 4 +- src/chart/graph/circularLayoutHelper.ts | 4 +- src/chart/heatmap/HeatmapSeries.ts | 6 +- src/chart/helper/EffectLine.ts | 14 +- src/chart/helper/EffectPolyline.ts | 4 +- src/chart/helper/EffectSymbol.ts | 6 +- src/chart/helper/LargeLineDraw.ts | 4 +- src/chart/helper/LargeSymbolDraw.ts | 12 +- src/chart/helper/Line.ts | 12 +- src/chart/helper/LineDraw.ts | 10 +- src/chart/helper/Polyline.ts | 12 +- src/chart/helper/Symbol.ts | 12 +- src/chart/helper/SymbolDraw.ts | 12 +- src/chart/helper/createGraphFromNodeEdge.ts | 14 +- ...mArray.ts => createSeriesDataFromArray.ts} | 9 +- ...istSimply.ts => createSeriesDataSimply.ts} | 8 +- src/chart/helper/labelHelper.ts | 6 +- src/chart/helper/whiskerBoxCommon.ts | 8 +- src/chart/line/LineSeries.ts | 6 +- src/chart/line/LineView.ts | 20 +- src/chart/line/helper.ts | 6 +- src/chart/line/lineAnimationDiff.ts | 6 +- src/chart/lines/LinesSeries.ts | 4 +- src/chart/lines/LinesView.ts | 6 +- src/chart/lines/linesVisual.ts | 6 +- src/chart/map/MapSeries.ts | 15 +- src/chart/map/mapDataStatistic.ts | 4 +- src/chart/parallel/ParallelSeries.ts | 6 +- src/chart/parallel/ParallelView.ts | 10 +- src/chart/pie/PieSeries.ts | 8 +- src/chart/pie/PieView.ts | 10 +- src/chart/radar/RadarSeries.ts | 8 +- src/chart/radar/RadarView.ts | 8 +- src/chart/sankey/SankeySeries.ts | 6 +- src/chart/sankey/SankeyView.ts | 4 +- src/chart/scatter/ScatterSeries.ts | 8 +- src/chart/scatter/ScatterView.ts | 4 +- src/chart/sunburst/SunburstSeries.ts | 4 +- src/chart/themeRiver/ThemeRiverSeries.ts | 6 +- src/chart/themeRiver/themeRiverLayout.ts | 4 +- src/chart/tree/TreeSeries.ts | 6 +- src/chart/tree/TreeView.ts | 10 +- src/chart/treemap/TreemapSeries.ts | 4 +- src/component/helper/MapDraw.ts | 4 +- src/component/marker/MarkAreaView.ts | 12 +- src/component/marker/MarkLineView.ts | 18 +- src/component/marker/MarkPointView.ts | 6 +- src/component/marker/MarkerModel.ts | 10 +- src/component/marker/markerHelper.ts | 8 +- src/component/timeline/SliderTimelineModel.ts | 4 +- src/component/timeline/TimelineModel.ts | 6 +- src/component/visualMap/VisualMapModel.ts | 4 +- src/coord/axisHelper.ts | 6 +- src/coord/cartesian/Grid.ts | 4 +- src/coord/parallel/Parallel.ts | 4 +- src/core/Scheduler.ts | 4 +- src/core/task.ts | 6 +- src/data/DataDimensionInfo.ts | 5 +- src/data/DataStorage.ts | 1141 +++++++++ src/data/Graph.ts | 6 +- src/data/List.ts | 2278 ----------------- src/data/SeriesData.ts | 1299 ++++++++++ src/data/Tree.ts | 12 +- src/data/helper/completeDimensions.ts | 4 +- src/data/helper/createDimensions.ts | 4 +- src/data/helper/dataProvider.ts | 10 +- src/data/helper/dataStackHelper.ts | 8 +- src/data/helper/dimensionHelper.ts | 7 +- .../helper/{linkList.ts => linkSeriesData.ts} | 50 +- src/export/api.ts | 2 +- src/export/api/helper.ts | 4 +- src/label/labelStyle.ts | 4 +- src/layout/barGrid.ts | 2 +- src/layout/points.ts | 7 +- src/model/Series.ts | 35 +- src/processor/dataStack.ts | 4 +- src/scale/Log.ts | 4 +- src/scale/Ordinal.ts | 4 +- src/scale/Scale.ts | 4 +- src/util/model.ts | 6 +- src/util/states.ts | 4 +- src/util/types.ts | 17 +- src/view/Chart.ts | 4 +- src/visual/LegendVisualProvider.ts | 10 +- src/visual/commonVisualTypes.ts | 2 +- src/visual/helper.ts | 8 +- src/visual/symbol.ts | 6 +- src/visual/visualSolution.ts | 4 +- .../data/{List.test.ts => SeriesData.test.ts} | 52 +- 107 files changed, 2891 insertions(+), 2724 deletions(-) rename src/chart/helper/{createListFromArray.ts => createSeriesDataFromArray.ts} (95%) rename src/chart/helper/{createListSimply.ts => createSeriesDataSimply.ts} (89%) create mode 100644 src/data/DataStorage.ts delete mode 100644 src/data/List.ts create mode 100644 src/data/SeriesData.ts rename src/data/helper/{linkList.ts => linkSeriesData.ts} (75%) rename test/ut/spec/data/{List.test.ts => SeriesData.test.ts} (92%) diff --git a/src/animation/universalTransition.ts b/src/animation/universalTransition.ts index 140afca2e6..9dc27e20c4 100644 --- a/src/animation/universalTransition.ts +++ b/src/animation/universalTransition.ts @@ -27,7 +27,7 @@ import Path from 'zrender/src/graphic/Path'; import { EChartsExtensionInstallRegisters } from '../extension'; import { initProps } from '../util/graphic'; import DataDiffer from '../data/DataDiffer'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { Dictionary, DimensionLoose, OptionDataItemObject, UniversalTransitionOption } from '../util/types'; import { UpdateLifecycleParams, @@ -43,22 +43,22 @@ import Displayable from 'zrender/src/graphic/Displayable'; const DATA_COUNT_THRESHOLD = 1e4; -interface GlobalStore { oldSeries: SeriesModel[], oldData: List[] }; +interface GlobalStore { oldSeries: SeriesModel[], oldData: SeriesData[] }; const getUniversalTransitionGlobalStore = makeInner(); interface DiffItem { - data: List + data: SeriesData dim: DimensionLoose divide: UniversalTransitionOption['divideShape'] dataIndex: number } interface TransitionSeries { - data: List + data: SeriesData divide: UniversalTransitionOption['divideShape'] dim?: DimensionLoose } -function getGroupIdDimension(data: List) { +function getGroupIdDimension(data: SeriesData) { const dimensions = data.dimensions; for (let i = 0; i < dimensions.length; i++) { const dimInfo = data.getDimensionInfo(dimensions[i]); @@ -452,7 +452,7 @@ interface SeriesTransitionBatch { newSeries: TransitionSeries[] } -function getDivideShapeFromData(data: List) { +function getDivideShapeFromData(data: SeriesData) { if (data.hostModel) { return ((data.hostModel as SeriesModel) .getModel('universalTransition') as Model) @@ -466,12 +466,12 @@ function findTransitionSeriesBatches( ) { const updateBatches = createHashMap(); - const oldDataMap = createHashMap(); + const oldDataMap = createHashMap(); // Map that only store key in array seriesKey. // Which is used to query the old data when transition from one to multiple series. const oldDataMapForSplit = createHashMap<{ key: string, - data: List + data: SeriesData }>(); each(globalStore.oldSeries, (series, idx) => { @@ -667,7 +667,7 @@ export function installUniversalTransition(registers: EChartsExtensionInstallReg // Save all series of current update. Not only the updated one. const allSeries = ecModel.getSeries(); const savedSeries: SeriesModel[] = globalStore.oldSeries = []; - const savedData: List[] = globalStore.oldData = []; + const savedData: SeriesData[] = globalStore.oldData = []; for (let i = 0; i < allSeries.length; i++) { const data = allSeries[i].getData(); // Only save the data that can have transition. diff --git a/src/chart/bar/BarSeries.ts b/src/chart/bar/BarSeries.ts index 2008e9171c..06ede94c91 100644 --- a/src/chart/bar/BarSeries.ts +++ b/src/chart/bar/BarSeries.ts @@ -29,10 +29,10 @@ import { SeriesEncodeOptionMixin } from '../../util/types'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import type Polar from '../../coord/polar/Polar'; import { inheritDefaultOption } from '../../util/component'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { BrushCommonSelectorsForSeries } from '../../component/brush/selector'; export type PolarBarLabelPosition = SeriesLabelOption['position'] @@ -89,7 +89,7 @@ class BarSeriesModel extends BaseBarSeriesModel { coordinateSystem: Cartesian2D | Polar; - getInitialData(): List { + getInitialData(): SeriesData { return createListFromArray(this.getSource(), this, { useEncodeDefaulter: true, createInvertedIndices: !!this.get('realtimeSort', true) || null @@ -119,7 +119,7 @@ class BarSeriesModel extends BaseBarSeriesModel { return progressiveThreshold; } - brushSelector(dataIndex: number, data: List, selectors: BrushCommonSelectorsForSeries): boolean { + brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean { return selectors.rect(data.getItemLayout(dataIndex)); } diff --git a/src/chart/bar/BarView.ts b/src/chart/bar/BarView.ts index 521da0e447..e6f71dbe89 100644 --- a/src/chart/bar/BarView.ts +++ b/src/chart/bar/BarView.ts @@ -35,7 +35,7 @@ import {throttle} from '../../util/throttle'; import {createClipPath} from '../helper/createClipPathFromCoordSys'; import Sausage from '../../util/shape/sausage'; import ChartView from '../../view/Chart'; -import List, {DefaultDataVisual} from '../../data/List'; +import SeriesData, {DefaultDataVisual} from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import { @@ -88,7 +88,7 @@ type RealtimeSortConfig = { // Return a number, based on which the ordinal sorted. type OrderMapping = (dataIndex: number) => number; -function getClipArea(coord: CoordSysOfBar, data: List) { +function getClipArea(coord: CoordSysOfBar, data: SeriesData) { const coordSysClipArea = coord.getArea && coord.getArea(); if (isCoordinateSystemType(coord, 'cartesian2d')) { const baseAxis = coord.getBaseAxis(); @@ -115,7 +115,7 @@ class BarView extends ChartView { static type = 'bar' as const; type = BarView.type; - private _data: List; + private _data: SeriesData; private _isLargeDraw: boolean; @@ -467,7 +467,7 @@ class BarView extends ChartView { } private _dataSort( - data: List, + data: SeriesData, baseAxis: Axis2D, orderMapping: OrderMapping ): OrdinalSortInfo { @@ -498,7 +498,7 @@ class BarView extends ChartView { } private _isOrderChangedWithinSameData( - data: List, + data: SeriesData, orderMapping: OrderMapping, baseAxis: Axis2D ): boolean { @@ -543,7 +543,7 @@ class BarView extends ChartView { } private _updateSortWithinSameData( - data: List, + data: SeriesData, orderMapping: OrderMapping, baseAxis: Axis2D, api: ExtensionAPI @@ -566,7 +566,7 @@ class BarView extends ChartView { } private _dispatchInitSort( - data: List, + data: SeriesData, realtimeSortCfg: RealtimeSortConfig, api: ExtensionAPI ) { @@ -709,7 +709,7 @@ const clip: { interface ElementCreator { ( - seriesModel: BarSeriesModel, data: List, newIndex: number, + seriesModel: BarSeriesModel, data: SeriesData, newIndex: number, layout: RectLayout | SectorLayout, isHorizontalOrRadial: boolean, animationModel: BarSeriesModel, axisModel: CartesianAxisModel | AngleAxisModel | RadiusAxisModel, @@ -875,7 +875,7 @@ const isValidLayout: Record<'cartesian2d' | 'polar', (layout: RectLayout | Secto } as const; interface GetLayout { - (data: List, dataIndex: number, itemModel?: Model): RectLayout | SectorLayout + (data: SeriesData, dataIndex: number, itemModel?: Model): RectLayout | SectorLayout } const getLayout: { [key in 'cartesian2d' | 'polar']: GetLayout @@ -936,7 +936,7 @@ function createPolarPositionMapping(isRadial: boolean) function updateStyle( el: BarPossiblePath, - data: List, dataIndex: number, + data: SeriesData, dataIndex: number, itemModel: Model, layout: RectLayout | SectorLayout, seriesModel: BarSeriesModel, @@ -1169,7 +1169,7 @@ function largePathFindDataIndex(largePath: LargePath, x: number, y: number) { function setLargeStyle( el: LargePath, seriesModel: BarSeriesModel, - data: List + data: SeriesData ) { const globalStyle = data.getVisual('style'); @@ -1183,7 +1183,7 @@ function setLargeStyle( function setLargeBackgroundStyle( el: LargePath, backgroundModel: Model, - data: List + data: SeriesData ) { const borderColor = backgroundModel.get('borderColor') || backgroundModel.get('color'); const itemStyle = backgroundModel.getItemStyle(); diff --git a/src/chart/bar/BaseBarSeries.ts b/src/chart/bar/BaseBarSeries.ts index 36ea14a511..46eeeb4b5f 100644 --- a/src/chart/bar/BaseBarSeries.ts +++ b/src/chart/bar/BaseBarSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import { SeriesOption, SeriesOnCartesianOptionMixin, @@ -28,7 +28,7 @@ import { } from '../../util/types'; import GlobalModel from '../../model/Global'; import Cartesian2D from '../../coord/cartesian/Cartesian2D'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; export interface BaseBarSeriesOption @@ -78,7 +78,7 @@ class BaseBarSeriesModel = BaseBarSeri static type = 'series.__base_bar__'; type = BaseBarSeriesModel.type; - getInitialData(option: Opts, ecModel: GlobalModel): List { + getInitialData(option: Opts, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this, {useEncodeDefaulter: true}); } diff --git a/src/chart/bar/PictorialBarView.ts b/src/chart/bar/PictorialBarView.ts index 565b44ed75..1a81fed829 100644 --- a/src/chart/bar/PictorialBarView.ts +++ b/src/chart/bar/PictorialBarView.ts @@ -27,7 +27,7 @@ import {parsePercent, isNumeric} from '../../util/number'; import ChartView from '../../view/Chart'; import PictorialBarSeriesModel, {PictorialBarDataItemOption} from './PictorialBarSeries'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; import Model from '../../model/Model'; import { ColorString, AnimationOptionMixin, ECElement } from '../../util/types'; @@ -131,7 +131,7 @@ class PictorialBarView extends ChartView { static type = 'pictorialBar'; readonly type = PictorialBarView.type; - private _data: List; + private _data: SeriesData; render( seriesModel: PictorialBarSeriesModel, @@ -239,7 +239,7 @@ class PictorialBarView extends ChartView { // Set or calculate default value about symbol, and calculate layout info. function getSymbolMeta( - data: List, + data: SeriesData, dataIndex: number, itemModel: ItemModel, opt: CreateOpts @@ -338,7 +338,7 @@ function convertToCoordOnAxis(axis: Axis2D, value: number) { // Support ['100%', '100%'] function prepareSymbolSize( - data: List, + data: SeriesData, dataIndex: number, layout: RectLayout, symbolRepeat: PictorialBarDataItemOption['symbolRepeat'], @@ -726,7 +726,7 @@ function createOrUpdateClip( } } -function getItemModel(data: List, dataIndex: number) { +function getItemModel(data: SeriesData, dataIndex: number) { const itemModel = data.getItemModel(dataIndex) as ItemModel; itemModel.getAnimationDelayParams = getAnimationDelayParams; itemModel.isAnimationEnabled = isAnimationEnabled; @@ -746,7 +746,7 @@ function isAnimationEnabled(this: ItemModel) { return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation'); } -function createBar(data: List, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean) { +function createBar(data: SeriesData, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean) { // bar is the main element for each data. const bar = new graphic.Group() as PictorialBarElement; // bundle is used for location and clip. @@ -798,7 +798,7 @@ function updateBar(bar: PictorialBarElement, opt: CreateOpts, symbolMeta: Symbol } function removeBar( - data: List, dataIndex: number, animationModel: Model, bar: PictorialBarElement + data: SeriesData, dataIndex: number, animationModel: Model, bar: PictorialBarElement ) { // Not show text when animating const labelRect = bar.__pictorialBarRect; @@ -825,7 +825,7 @@ function removeBar( data.setItemGraphicEl(dataIndex, null); } -function getShapeStr(data: List, symbolMeta: SymbolMeta) { +function getShapeStr(data: SeriesData, symbolMeta: SymbolMeta) { return [ data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, diff --git a/src/chart/boxplot/BoxplotView.ts b/src/chart/boxplot/BoxplotView.ts index 68ac23a0a4..748ff6ed20 100644 --- a/src/chart/boxplot/BoxplotView.ts +++ b/src/chart/boxplot/BoxplotView.ts @@ -25,7 +25,7 @@ import Path, { PathProps } from 'zrender/src/graphic/Path'; import BoxplotSeriesModel, { BoxplotDataItemOption } from './BoxplotSeries'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { BoxplotItemLayout } from './boxplotLayout'; import { saveOldStyle } from '../../animation/basicTrasition'; @@ -33,7 +33,7 @@ class BoxplotView extends ChartView { static type = 'boxplot'; type = BoxplotView.type; - private _data: List; + private _data: SeriesData; render(seriesModel: BoxplotSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) { const data = seriesModel.getData(); @@ -141,7 +141,7 @@ class BoxPath extends Path { function createNormalBox( itemLayout: BoxplotItemLayout, - data: List, + data: SeriesData, dataIndex: number, constDim: number, isInit?: boolean @@ -164,7 +164,7 @@ function createNormalBox( function updateNormalBoxData( itemLayout: BoxplotItemLayout, el: BoxPath, - data: List, + data: SeriesData, dataIndex: number, isInit?: boolean ) { diff --git a/src/chart/candlestick/CandlestickSeries.ts b/src/chart/candlestick/CandlestickSeries.ts index 68e8b8a128..d71cecd57d 100644 --- a/src/chart/candlestick/CandlestickSeries.ts +++ b/src/chart/candlestick/CandlestickSeries.ts @@ -33,7 +33,7 @@ import { SeriesEncodeOptionMixin, DefaultEmphasisFocus } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Cartesian2D from '../../coord/cartesian/Cartesian2D'; import { BrushCommonSelectorsForSeries } from '../../component/brush/selector'; import { mixin } from 'zrender/src/core/util'; @@ -151,7 +151,7 @@ class CandlestickSeriesModel extends SeriesModel { return 'open'; } - brushSelector(dataIndex: number, data: List, selectors: BrushCommonSelectorsForSeries): boolean { + brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean { const itemLayout = data.getItemLayout(dataIndex); return itemLayout && selectors.rect(itemLayout.brushRect); } diff --git a/src/chart/candlestick/CandlestickView.ts b/src/chart/candlestick/CandlestickView.ts index 3a8e971d78..7e62360074 100644 --- a/src/chart/candlestick/CandlestickView.ts +++ b/src/chart/candlestick/CandlestickView.ts @@ -27,7 +27,7 @@ import CandlestickSeriesModel, { CandlestickDataItemOption } from './Candlestick import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import { StageHandlerProgressParams } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import {CandlestickItemLayout} from './candlestickLayout'; import { CoordinateSystemClipArea } from '../../coord/CoordinateSystem'; import Model from '../../model/Model'; @@ -42,7 +42,7 @@ class CandlestickView extends ChartView { private _isLargeDraw: boolean; - private _data: List; + private _data: SeriesData; render(seriesModel: CandlestickSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) { // If there is clipPath created in large mode. Remove it. @@ -273,7 +273,7 @@ function isNormalBoxClipped(clipArea: CoordinateSystemClipArea, itemLayout: Cand return clipped; } -function setBoxCommon(el: NormalBoxPath, data: List, dataIndex: number, isSimpleBox?: boolean) { +function setBoxCommon(el: NormalBoxPath, data: SeriesData, dataIndex: number, isSimpleBox?: boolean) { const itemModel = data.getItemModel(dataIndex) as Model; el.useStyle(data.getItemVisual(dataIndex, 'style')); @@ -359,7 +359,7 @@ function createLarge(seriesModel: CandlestickSeriesModel, group: graphic.Group, } } -function setLargeStyle(sign: number, el: LargeBoxPath, seriesModel: CandlestickSeriesModel, data: List) { +function setLargeStyle(sign: number, el: LargeBoxPath, seriesModel: CandlestickSeriesModel, data: SeriesData) { // TODO put in visual? const borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0']) || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']); diff --git a/src/chart/candlestick/candlestickLayout.ts b/src/chart/candlestick/candlestickLayout.ts index 615c684968..ae9db886e5 100644 --- a/src/chart/candlestick/candlestickLayout.ts +++ b/src/chart/candlestick/candlestickLayout.ts @@ -25,7 +25,7 @@ import {parsePercent} from '../../util/number'; import {retrieve2} from 'zrender/src/core/util'; import { StageHandler, StageHandlerProgressParams } from '../../util/types'; import CandlestickSeriesModel from './CandlestickSeries'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { RectLike } from 'zrender/src/core/BoundingRect'; const LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array; @@ -78,7 +78,7 @@ const candlestickLayout: StageHandler = { ? largeProgress : normalProgress }; - function normalProgress(params: StageHandlerProgressParams, data: List) { + function normalProgress(params: StageHandlerProgressParams, data: SeriesData) { let dataIndex; while ((dataIndex = params.next()) != null) { @@ -162,7 +162,7 @@ const candlestickLayout: StageHandler = { } } - function largeProgress(params: StageHandlerProgressParams, data: List) { + function largeProgress(params: StageHandlerProgressParams, data: SeriesData) { // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...] const points = new LargeArr(params.count * 4); let offset = 0; @@ -202,7 +202,7 @@ const candlestickLayout: StageHandler = { } }; -function getSign(data: List, dataIndex: number, openVal: number, closeVal: number, closeDim: string) { +function getSign(data: SeriesData, dataIndex: number, openVal: number, closeVal: number, closeDim: string) { let sign; if (openVal > closeVal) { sign = -1; @@ -221,7 +221,7 @@ function getSign(data: List, dataIndex: number, openVal: number, closeVal: numbe return sign; } -function calculateCandleWidth(seriesModel: CandlestickSeriesModel, data: List) { +function calculateCandleWidth(seriesModel: CandlestickSeriesModel, data: SeriesData) { const baseAxis = seriesModel.getBaseAxis(); let extent; diff --git a/src/chart/custom/CustomSeries.ts b/src/chart/custom/CustomSeries.ts index b027f4143b..912ca337c3 100644 --- a/src/chart/custom/CustomSeries.ts +++ b/src/chart/custom/CustomSeries.ts @@ -44,9 +44,9 @@ import { ZRStyleProps } from '../../util/types'; import Element, { ElementProps } from 'zrender/src/Element'; -import List, { DefaultDataVisual } from '../../data/List'; +import SeriesData, { DefaultDataVisual } from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import { makeInner } from '../../util/model'; import { CoordinateSystem } from '../../coord/CoordinateSystem'; import SeriesModel from '../../model/Series'; @@ -413,7 +413,7 @@ export default class CustomSeriesModel extends SeriesModel { this.currentZ = this.get('z', true); } - getInitialData(option: CustomSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: CustomSeriesOption, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this); } diff --git a/src/chart/custom/CustomView.ts b/src/chart/custom/CustomView.ts index 44bc7ad613..0d14ee76e7 100644 --- a/src/chart/custom/CustomView.ts +++ b/src/chart/custom/CustomView.ts @@ -51,7 +51,7 @@ import prepareGeo from '../../coord/geo/prepareCustom'; import prepareSingleAxis from '../../coord/single/prepareCustom'; import preparePolar from '../../coord/polar/prepareCustom'; import prepareCalendar from '../../coord/calendar/prepareCustom'; -import List, { DefaultDataVisual } from '../../data/List'; +import SeriesData, { DefaultDataVisual } from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable'; @@ -199,7 +199,7 @@ export default class CustomChartView extends ChartView { static type = 'custom'; readonly type = CustomChartView.type; - private _data: List; + private _data: SeriesData; render( customSeries: CustomSeriesModel, @@ -822,7 +822,7 @@ function updateZForEachState( function makeRenderItem( customSeries: CustomSeriesModel, - data: List, + data: SeriesData, ecModel: GlobalModel, api: ExtensionAPI ) { @@ -1129,7 +1129,7 @@ function makeRenderItem( } } -function wrapEncodeDef(data: List): WrapEncodeDefRet { +function wrapEncodeDef(data: SeriesData): WrapEncodeDefRet { const encodeDef = {} as WrapEncodeDefRet; each(data.dimensions, function (dimName, dataDimIndex) { const dimInfo = data.getDimensionInfo(dimName); @@ -1149,7 +1149,7 @@ function createOrUpdateItem( elOption: CustomElementOption, seriesModel: CustomSeriesModel, group: ViewRootGroup, - data: List + data: SeriesData ): Element { // [Rule] // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing. diff --git a/src/chart/effectScatter/EffectScatterSeries.ts b/src/chart/effectScatter/EffectScatterSeries.ts index 5d1644607f..dbdfaf431f 100644 --- a/src/chart/effectScatter/EffectScatterSeries.ts +++ b/src/chart/effectScatter/EffectScatterSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import SeriesModel from '../../model/Series'; import { SeriesOption, @@ -35,7 +35,7 @@ import { CallbackDataParams } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type { SymbolDrawItemModelOption } from '../helper/SymbolDraw'; import { BrushCommonSelectorsForSeries } from '../../component/brush/selector'; @@ -88,11 +88,11 @@ class EffectScatterSeriesModel extends SeriesModel { hasSymbolVisual = true; - getInitialData(option: EffectScatterSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: EffectScatterSeriesOption, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this, {useEncodeDefaulter: true}); } - brushSelector(dataIndex: number, data: List, selectors: BrushCommonSelectorsForSeries): boolean { + brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean { return selectors.point(data.getItemLayout(dataIndex)); } diff --git a/src/chart/funnel/FunnelSeries.ts b/src/chart/funnel/FunnelSeries.ts index 96a77391ef..9c1cd83871 100644 --- a/src/chart/funnel/FunnelSeries.ts +++ b/src/chart/funnel/FunnelSeries.ts @@ -18,7 +18,7 @@ */ import * as zrUtil from 'zrender/src/core/util'; -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from '../helper/createSeriesDataSimply'; import {defaultEmphasis} from '../../util/model'; import {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper'; import LegendVisualProvider from '../../visual/LegendVisualProvider'; @@ -39,7 +39,7 @@ import { SeriesEncodeOptionMixin } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; type FunnelLabelOption = Omit & { position?: LabelOption['position'] @@ -104,8 +104,8 @@ class FunnelSeriesModel extends SeriesModel { this._defaultLabelLine(option); } - getInitialData(this: FunnelSeriesModel, option: FunnelSeriesOption, ecModel: GlobalModel): List { - return createListSimply(this, { + getInitialData(this: FunnelSeriesModel, option: FunnelSeriesOption, ecModel: GlobalModel): SeriesData { + return createSeriesDataSimply(this, { coordDimensions: ['value'], encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this) }); diff --git a/src/chart/funnel/FunnelView.ts b/src/chart/funnel/FunnelView.ts index 4a588586ea..e379e64f34 100644 --- a/src/chart/funnel/FunnelView.ts +++ b/src/chart/funnel/FunnelView.ts @@ -23,7 +23,7 @@ import ChartView from '../../view/Chart'; import FunnelSeriesModel, {FunnelDataItemOption} from './FunnelSeries'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ColorString } from '../../util/types'; import { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper'; import { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle'; @@ -36,7 +36,7 @@ const opacityAccessPath = ['itemStyle', 'opacity'] as const; */ class FunnelPiece extends graphic.Polygon { - constructor(data: List, idx: number) { + constructor(data: SeriesData, idx: number) { super(); const polygon = this; @@ -48,7 +48,7 @@ class FunnelPiece extends graphic.Polygon { this.updateData(data, idx, true); } - updateData(data: List, idx: number, firstCreate?: boolean) { + updateData(data: SeriesData, idx: number, firstCreate?: boolean) { const polygon = this; @@ -95,7 +95,7 @@ class FunnelPiece extends graphic.Polygon { enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope')); } - _updateLabel(data: List, idx: number) { + _updateLabel(data: SeriesData, idx: number) { const polygon = this; const labelLine = this.getTextGuideLine(); const labelText = polygon.getTextContent(); @@ -168,7 +168,7 @@ class FunnelView extends ChartView { static type = 'funnel' as const; type = FunnelView.type; - private _data: List; + private _data: SeriesData; ignoreLabelLineUpdate = true; diff --git a/src/chart/funnel/funnelLayout.ts b/src/chart/funnel/funnelLayout.ts index 71111c3804..cb11676b2d 100644 --- a/src/chart/funnel/funnelLayout.ts +++ b/src/chart/funnel/funnelLayout.ts @@ -21,7 +21,7 @@ import * as layout from '../../util/layout'; import {parsePercent, linearMap} from '../../util/number'; import FunnelSeriesModel, { FunnelSeriesOption, FunnelDataItemOption } from './FunnelSeries'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; function getViewRect(seriesModel: FunnelSeriesModel, api: ExtensionAPI) { @@ -33,7 +33,7 @@ function getViewRect(seriesModel: FunnelSeriesModel, api: ExtensionAPI) { ); } -function getSortedIndices(data: List, sort: FunnelSeriesOption['sort']) { +function getSortedIndices(data: SeriesData, sort: FunnelSeriesOption['sort']) { const valueDim = data.mapDimension('value'); const valueArr = data.mapArray(valueDim, function (val: number) { return val; @@ -58,7 +58,7 @@ function getSortedIndices(data: List, sort: FunnelSeriesOption['sort']) { return indices; } -function labelLayout(data: List) { +function labelLayout(data: SeriesData) { const seriesModel = data.hostModel; const orient = seriesModel.get('orient'); data.each(function (idx) { diff --git a/src/chart/gauge/GaugeSeries.ts b/src/chart/gauge/GaugeSeries.ts index b80652f289..e54f659250 100644 --- a/src/chart/gauge/GaugeSeries.ts +++ b/src/chart/gauge/GaugeSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from '../helper/createSeriesDataSimply'; import SeriesModel from '../../model/Series'; import { SeriesOption, @@ -31,7 +31,7 @@ import { SeriesEncodeOptionMixin } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; // [percent, color] type GaugeColorStop = [number, ColorString]; @@ -180,8 +180,8 @@ class GaugeSeriesModel extends SeriesModel { visualStyleAccessPath = 'itemStyle'; useColorPaletteOnData = true; - getInitialData(option: GaugeSeriesOption, ecModel: GlobalModel): List { - return createListSimply(this, ['value']); + getInitialData(option: GaugeSeriesOption, ecModel: GlobalModel): SeriesData { + return createSeriesDataSimply(this, ['value']); } static defaultOption: GaugeSeriesOption = { diff --git a/src/chart/gauge/GaugeView.ts b/src/chart/gauge/GaugeView.ts index a4e9005c13..4f10512187 100644 --- a/src/chart/gauge/GaugeView.ts +++ b/src/chart/gauge/GaugeView.ts @@ -27,7 +27,7 @@ import GaugeSeriesModel, { GaugeDataItemOption } from './GaugeSeries'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import { ColorString, ECElement } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Sausage from '../../util/shape/sausage'; import {createSymbol} from '../../util/symbol'; import ZRImage from 'zrender/src/graphic/Image'; @@ -77,7 +77,7 @@ class GaugeView extends ChartView { static type = 'gauge' as const; type = GaugeView.type; - private _data: List; + private _data: SeriesData; private _progressEls: graphic.Path[]; private _titleEls: graphic.Text[]; diff --git a/src/chart/graph/GraphSeries.ts b/src/chart/graph/GraphSeries.ts index 54f9f36e0e..42b833d9c9 100644 --- a/src/chart/graph/GraphSeries.ts +++ b/src/chart/graph/GraphSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as zrUtil from 'zrender/src/core/util'; import {defaultEmphasis} from '../../util/model'; import Model from '../../model/Model'; @@ -230,7 +230,7 @@ class GraphSeriesModel extends SeriesModel { static readonly dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar']; - private _categoriesData: List; + private _categoriesData: SeriesData; private _categoriesModels: Model[]; /** @@ -272,7 +272,7 @@ class GraphSeriesModel extends SeriesModel { defaultEmphasis(option, 'edgeLabel', ['show']); } - getInitialData(option: GraphSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: GraphSeriesOption, ecModel: GlobalModel): SeriesData { const edges = option.edges || option.links || []; const nodes = option.data || option.nodes || []; const self = this; @@ -287,7 +287,7 @@ class GraphSeriesModel extends SeriesModel { return graph.data; } - function beforeLink(nodeData: List, edgeData: List) { + function beforeLink(nodeData: SeriesData, edgeData: SeriesData) { // Overwrite nodeData.getItemModel to nodeData.wrapMethod('getItemModel', function (model) { const categoriesModels = self._categoriesModels; @@ -335,10 +335,10 @@ class GraphSeriesModel extends SeriesModel { } getEdgeData() { - return this.getGraph().edgeData as List; + return this.getGraph().edgeData as SeriesData; } - getCategoriesData(): List { + getCategoriesData(): SeriesData { return this._categoriesData; } @@ -380,7 +380,7 @@ class GraphSeriesModel extends SeriesModel { value: 0 }, category); }); - const categoriesData = new List(['value'], this); + const categoriesData = new SeriesData(['value'], this); categoriesData.initData(categories); this._categoriesData = categoriesData; diff --git a/src/chart/graph/GraphView.ts b/src/chart/graph/GraphView.ts index 1c8d10f921..08cc6ae46f 100644 --- a/src/chart/graph/GraphView.ts +++ b/src/chart/graph/GraphView.ts @@ -33,7 +33,7 @@ import GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './Gr import { CoordinateSystem } from '../../coord/CoordinateSystem'; import View from '../../coord/View'; import Symbol from '../helper/Symbol'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Line from '../helper/Line'; import { getECData } from '../../util/innerStore'; @@ -109,7 +109,7 @@ class GraphView extends ChartView { const edgeData = seriesModel.getEdgeData(); // TODO: TYPE - lineDraw.updateData(edgeData as List); + lineDraw.updateData(edgeData as SeriesData); this._updateNodeAndLinkScale(); diff --git a/src/chart/graph/circularLayoutHelper.ts b/src/chart/graph/circularLayoutHelper.ts index a81538c377..91265bea62 100644 --- a/src/chart/graph/circularLayoutHelper.ts +++ b/src/chart/graph/circularLayoutHelper.ts @@ -22,7 +22,7 @@ import * as vec2 from 'zrender/src/core/vector'; import {getSymbolSize, getNodeGlobalScale} from './graphHelper'; import GraphSeriesModel, { GraphEdgeItemOption } from './GraphSeries'; import Graph from '../../data/Graph'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as zrUtil from 'zrender/src/core/util'; import {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper'; @@ -105,7 +105,7 @@ interface LayoutNode { ( seriesModel: GraphSeriesModel, graph: Graph, - nodeData: List, + nodeData: SeriesData, r: number, cx: number, cy: number, diff --git a/src/chart/heatmap/HeatmapSeries.ts b/src/chart/heatmap/HeatmapSeries.ts index af831ef135..9da21ae3be 100644 --- a/src/chart/heatmap/HeatmapSeries.ts +++ b/src/chart/heatmap/HeatmapSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import CoordinateSystem from '../../core/CoordinateSystem'; import { SeriesOption, @@ -32,7 +32,7 @@ import { SeriesOnCalendarOptionMixin } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type Geo from '../../coord/geo/Geo'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; import type Calendar from '../../coord/calendar/Calendar'; @@ -72,7 +72,7 @@ class HeatmapSeriesModel extends SeriesModel { // @ts-ignore coordinateSystem: Cartesian2D | Geo | Calendar; - getInitialData(option: HeatmapSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: HeatmapSeriesOption, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this, { generateCoord: 'value' }); diff --git a/src/chart/helper/EffectLine.ts b/src/chart/helper/EffectLine.ts index d269faad9d..bc92620754 100644 --- a/src/chart/helper/EffectLine.ts +++ b/src/chart/helper/EffectLine.ts @@ -27,7 +27,7 @@ import * as zrUtil from 'zrender/src/core/util'; import {createSymbol} from '../../util/symbol'; import * as vec2 from 'zrender/src/core/vector'; import * as curveUtil from 'zrender/src/core/curve'; -import type List from '../../data/List'; +import type SeriesData from '../../data/SeriesData'; import { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw'; import Model from '../../model/Model'; import { ColorString } from '../../util/types'; @@ -49,18 +49,18 @@ class EffectLine extends graphic.Group { private _symbolScale: number[]; - constructor(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { super(); this.add(this.createLine(lineData, idx, seriesScope)); this._updateEffectSymbol(lineData, idx); } - createLine(lineData: List, idx: number, seriesScope: LineDrawSeriesScope): graphic.Group { + createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope): graphic.Group { return new Line(lineData, idx, seriesScope); } - private _updateEffectSymbol(lineData: List, idx: number) { + private _updateEffectSymbol(lineData: SeriesData, idx: number) { const itemModel = lineData.getItemModel(idx); const effectModel = itemModel.getModel('effect'); let size = effectModel.get('symbolSize'); @@ -107,7 +107,7 @@ class EffectLine extends graphic.Group { } private _updateEffectAnimation( - lineData: List, + lineData: SeriesData, effectModel: Model, idx: number ) { @@ -189,7 +189,7 @@ class EffectLine extends graphic.Group { ]; } - updateData(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { (this.childAt(0) as Line).updateData(lineData, idx, seriesScope); this._updateEffectSymbol(lineData, idx); } @@ -236,7 +236,7 @@ class EffectLine extends graphic.Group { } - updateLayout(lineData: List, idx: number) { + updateLayout(lineData: SeriesData, idx: number) { (this.childAt(0) as Line).updateLayout(lineData, idx); const effectModel = lineData.getItemModel(idx).getModel('effect'); diff --git a/src/chart/helper/EffectPolyline.ts b/src/chart/helper/EffectPolyline.ts index 80499750c6..a250cb590a 100644 --- a/src/chart/helper/EffectPolyline.ts +++ b/src/chart/helper/EffectPolyline.ts @@ -21,7 +21,7 @@ import Polyline from './Polyline'; import EffectLine, {ECSymbolOnEffectLine} from './EffectLine'; import * as vec2 from 'zrender/src/core/vector'; import { LineDrawSeriesScope } from './LineDraw'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; class EffectPolyline extends EffectLine { @@ -33,7 +33,7 @@ class EffectPolyline extends EffectLine { private _offsets: number[]; // Override - createLine(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { return new Polyline(lineData, idx, seriesScope); }; diff --git a/src/chart/helper/EffectSymbol.ts b/src/chart/helper/EffectSymbol.ts index c20a160cfb..db8db9a0ec 100644 --- a/src/chart/helper/EffectSymbol.ts +++ b/src/chart/helper/EffectSymbol.ts @@ -21,7 +21,7 @@ import {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../ut import {Group, Path} from '../../util/graphic'; import { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states'; import SymbolClz from './Symbol'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type { ZRColor, ECElement } from '../../util/types'; import type Displayable from 'zrender/src/graphic/Displayable'; import { SymbolDrawItemModelOption } from './SymbolDraw'; @@ -59,7 +59,7 @@ class EffectSymbol extends Group { private _effectCfg: RippleEffectCfg; - constructor(data: List, idx: number) { + constructor(data: SeriesData, idx: number) { super(); const symbol = new SymbolClz(data, idx); @@ -162,7 +162,7 @@ class EffectSymbol extends Group { /** * Update symbol properties */ - updateData(data: List, idx: number) { + updateData(data: SeriesData, idx: number) { const seriesModel = data.hostModel; (this.childAt(0) as SymbolClz).updateData(data, idx); diff --git a/src/chart/helper/LargeLineDraw.ts b/src/chart/helper/LargeLineDraw.ts index 50e4f8d0bd..fca6979fea 100644 --- a/src/chart/helper/LargeLineDraw.ts +++ b/src/chart/helper/LargeLineDraw.ts @@ -24,7 +24,7 @@ import IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable'; import * as lineContain from 'zrender/src/contain/line'; import * as quadraticContain from 'zrender/src/contain/quadratic'; import { PathProps } from 'zrender/src/graphic/Path'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { StageHandlerProgressParams, LineStyleOption, ColorString } from '../../util/types'; import Model from '../../model/Model'; import { getECData } from '../../util/innerStore'; @@ -49,7 +49,7 @@ interface LargeLinesCommonOption { /** * Data which can support large lines. */ -type LargeLinesData = List & { +type LargeLinesData = SeriesData & { seriesIndex?: number }>; diff --git a/src/chart/helper/LargeSymbolDraw.ts b/src/chart/helper/LargeSymbolDraw.ts index 1840c54fb6..3f3bcbbac1 100644 --- a/src/chart/helper/LargeSymbolDraw.ts +++ b/src/chart/helper/LargeSymbolDraw.ts @@ -24,7 +24,7 @@ import * as graphic from '../../util/graphic'; import {createSymbol} from '../../util/symbol'; import IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { PathProps } from 'zrender/src/graphic/Path'; import PathProxy from 'zrender/src/core/PathProxy'; import SeriesModel from '../../model/Series'; @@ -182,7 +182,7 @@ class LargeSymbolDraw { /** * Update symbols draw by new data */ - updateData(data: List, opt?: UpdateOpt) { + updateData(data: SeriesData, opt?: UpdateOpt) { this.group.removeAll(); const symbolEl = new LargeSymbolPath({ rectHover: true, @@ -198,7 +198,7 @@ class LargeSymbolDraw { this._incremental = null; } - updateLayout(data: List) { + updateLayout(data: SeriesData) { if (this._incremental) { return; } @@ -214,7 +214,7 @@ class LargeSymbolDraw { }); } - incrementalPrepareUpdate(data: List) { + incrementalPrepareUpdate(data: SeriesData) { this.group.removeAll(); this._clearIncremental(); @@ -233,7 +233,7 @@ class LargeSymbolDraw { } } - incrementalUpdate(taskParams: StageHandlerProgressParams, data: List, opt: UpdateOpt) { + incrementalUpdate(taskParams: StageHandlerProgressParams, data: SeriesData, opt: UpdateOpt) { let symbolEl; if (this._incremental) { symbolEl = new LargeSymbolPath(); @@ -258,7 +258,7 @@ class LargeSymbolDraw { _setCommon( symbolEl: LargeSymbolPath, - data: List, + data: SeriesData, isIncremental: boolean, opt: UpdateOpt ) { diff --git a/src/chart/helper/Line.ts b/src/chart/helper/Line.ts index 140509dd39..b806d0f7b8 100644 --- a/src/chart/helper/Line.ts +++ b/src/chart/helper/Line.ts @@ -25,7 +25,7 @@ import * as graphic from '../../util/graphic'; import { enableHoverEmphasis, enterEmphasis, leaveEmphasis, SPECIAL_STATES } from '../../util/states'; import {getLabelStatesModels, setLabelStyle} from '../../label/labelStyle'; import {round} from '../../util/number'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ZRTextAlign, ZRTextVerticalAlign, LineLabelOption, ColorString } from '../../util/types'; import SeriesModel from '../../model/Series'; import type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw'; @@ -41,7 +41,7 @@ type LineECSymbol = ECSymbol & { __specifiedRotation: number }; -type LineList = List; +type LineList = SeriesData; export interface LineLabel extends graphic.Text { lineLabelOriginalOpacity: number @@ -133,7 +133,7 @@ class Line extends graphic.Group { private _fromSymbolType: string; private _toSymbolType: string; - constructor(lineData: List, idx: number, seriesScope?: LineDrawSeriesScope) { + constructor(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) { super(); this._createLine(lineData as LineList, idx, seriesScope); } @@ -164,7 +164,7 @@ class Line extends graphic.Group { } // TODO More strict on the List type in parameters? - updateData(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { const seriesModel = lineData.hostModel; const line = this.childOfName('line') as ECLinePath; @@ -195,7 +195,7 @@ class Line extends graphic.Group { return this.childAt(0) as graphic.Line; } - _updateCommonStl(lineData: List, idx: number, seriesScope?: LineDrawSeriesScope) { + _updateCommonStl(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) { const seriesModel = lineData.hostModel as SeriesModel; const line = this.childOfName('line') as ECLinePath; @@ -307,7 +307,7 @@ class Line extends graphic.Group { leaveEmphasis(this); } - updateLayout(lineData: List, idx: number) { + updateLayout(lineData: SeriesData, idx: number) { this.setLinePoints(lineData.getItemLayout(idx)); } diff --git a/src/chart/helper/LineDraw.ts b/src/chart/helper/LineDraw.ts index 1dde5d39d4..60317bc7f1 100644 --- a/src/chart/helper/LineDraw.ts +++ b/src/chart/helper/LineDraw.ts @@ -19,7 +19,7 @@ import * as graphic from '../../util/graphic'; import LineGroup from './Line'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { StageHandlerProgressParams, LineStyleOption, @@ -36,13 +36,13 @@ import Model from '../../model/Model'; import { getLabelStatesModels } from '../../label/labelStyle'; interface LineLike extends graphic.Group { - updateData(data: List, idx: number, scope?: LineDrawSeriesScope): void - updateLayout(data: List, idx: number): void + updateData(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): void + updateLayout(data: SeriesData, idx: number): void fadeOut?(cb: () => void): void } interface LineLikeCtor { - new(data: List, idx: number, scope?: LineDrawSeriesScope): LineLike + new(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): LineLike } interface LineDrawStateOption { @@ -76,7 +76,7 @@ export interface LineDrawModelOption extends LineDrawStateOption, StatesOptionMi } } -type ListForLineDraw = List>; +type ListForLineDraw = SeriesData>; export interface LineDrawSeriesScope { lineStyle?: ZRStyleProps diff --git a/src/chart/helper/Polyline.ts b/src/chart/helper/Polyline.ts index 29d0715312..a371edcfdd 100644 --- a/src/chart/helper/Polyline.ts +++ b/src/chart/helper/Polyline.ts @@ -20,15 +20,15 @@ import * as graphic from '../../util/graphic'; import { enableHoverEmphasis } from '../../util/states'; import type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw'; -import type List from '../../data/List'; +import type SeriesData from '../../data/SeriesData'; class Polyline extends graphic.Group { - constructor(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { super(); this._createPolyline(lineData, idx, seriesScope); } - private _createPolyline(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + private _createPolyline(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { // let seriesModel = lineData.hostModel; const points = lineData.getItemLayout(idx); @@ -43,7 +43,7 @@ class Polyline extends graphic.Group { this._updateCommonStl(lineData, idx, seriesScope); }; - updateData(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { const seriesModel = lineData.hostModel; const line = this.childAt(0) as graphic.Polyline; @@ -57,7 +57,7 @@ class Polyline extends graphic.Group { this._updateCommonStl(lineData, idx, seriesScope); }; - _updateCommonStl(lineData: List, idx: number, seriesScope: LineDrawSeriesScope) { + _updateCommonStl(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) { const line = this.childAt(0) as graphic.Polyline; const itemModel = lineData.getItemModel(idx); @@ -77,7 +77,7 @@ class Polyline extends graphic.Group { enableHoverEmphasis(this); }; - updateLayout(lineData: List, idx: number) { + updateLayout(lineData: SeriesData, idx: number) { const polyline = this.childAt(0) as graphic.Polyline; polyline.setShape('points', lineData.getItemLayout(idx)); }; diff --git a/src/chart/helper/Symbol.ts b/src/chart/helper/Symbol.ts index 222776f2b9..be2a5a4a2e 100644 --- a/src/chart/helper/Symbol.ts +++ b/src/chart/helper/Symbol.ts @@ -22,7 +22,7 @@ import * as graphic from '../../util/graphic'; import {getECData} from '../../util/innerStore'; import { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states'; import {getDefaultLabel} from './labelHelper'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ColorString, BlurScope, AnimationOption, ZRColor } from '../../util/types'; import SeriesModel from '../../model/Series'; import { PathProps } from 'zrender/src/graphic/Path'; @@ -55,14 +55,14 @@ class Symbol extends graphic.Group { private _z2: number; - constructor(data: List, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) { + constructor(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) { super(); this.updateData(data, idx, seriesScope, opts); } _createSymbol( symbolType: string, - data: List, + data: SeriesData, idx: number, symbolSize: number[], keepAspect: boolean @@ -151,7 +151,7 @@ class Symbol extends graphic.Group { /** * Update symbol properties */ - updateData(data: List, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) { + updateData(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) { this.silent = false; const symbolType = data.getItemVisual(idx, 'symbol') || 'circle'; @@ -206,7 +206,7 @@ class Symbol extends graphic.Group { } _updateCommon( - data: List, + data: SeriesData, idx: number, symbolSize: number[], seriesScope?: SymbolDrawSeriesScope, @@ -395,7 +395,7 @@ class Symbol extends graphic.Group { ); } - static getSymbolSize(data: List, idx: number) { + static getSymbolSize(data: SeriesData, idx: number) { return normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize')); } } diff --git a/src/chart/helper/SymbolDraw.ts b/src/chart/helper/SymbolDraw.ts index 9f53db8251..28d10e7c4c 100644 --- a/src/chart/helper/SymbolDraw.ts +++ b/src/chart/helper/SymbolDraw.ts @@ -20,7 +20,7 @@ import * as graphic from '../../util/graphic'; import SymbolClz from './Symbol'; import { isObject } from 'zrender/src/core/util'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type Displayable from 'zrender/src/graphic/Displayable'; import { StageHandlerProgressParams, @@ -49,15 +49,15 @@ interface UpdateOpt { } interface SymbolLike extends graphic.Group { - updateData(data: List, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): void + updateData(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): void fadeOut?(cb: () => void): void } interface SymbolLikeCtor { - new(data: List, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): SymbolLike + new(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): SymbolLike } -function symbolNeedsDraw(data: List, point: number[], idx: number, opt: UpdateOpt) { +function symbolNeedsDraw(data: SeriesData, point: number[], idx: number, opt: UpdateOpt) { return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx)) // We do not set clipShape on group, because it will cut part of @@ -125,7 +125,7 @@ export interface SymbolDrawSeriesScope { fadeIn?: boolean } -function makeSeriesScope(data: List): SymbolDrawSeriesScope { +function makeSeriesScope(data: SeriesData): SymbolDrawSeriesScope { const seriesModel = data.hostModel as Model; const emphasisModel = seriesModel.getModel('emphasis'); return { @@ -144,7 +144,7 @@ function makeSeriesScope(data: List): SymbolDrawSeriesScope { }; } -export type ListForSymbolDraw = List>; +export type ListForSymbolDraw = SeriesData>; class SymbolDraw { group = new graphic.Group(); diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index e2a0fca814..80a43a3c2a 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -19,12 +19,12 @@ import * as zrUtil from 'zrender/src/core/util'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Graph from '../../data/Graph'; -import linkList from '../../data/helper/linkList'; +import linkSeriesData from '../../data/helper/linkSeriesData'; import createDimensions from '../../data/helper/createDimensions'; import CoordinateSystem from '../../core/CoordinateSystem'; -import createListFromArray from './createListFromArray'; +import createListFromArray from './createSeriesDataFromArray'; import { OptionSourceDataOriginal, GraphEdgeItemObject, OptionDataValue, OptionDataItemObject @@ -37,7 +37,7 @@ export default function createGraphFromNodeEdge( edges: OptionSourceDataOriginal>, seriesModel: SeriesModel, directed: boolean, - beforeLink: (nodeData: List, edgeData: List) => void + beforeLink: (nodeData: SeriesData, edgeData: SeriesData) => void ): Graph { // ??? TODO // support dataset? @@ -86,16 +86,16 @@ export default function createGraphFromNodeEdge( const dimensionNames = createDimensions(nodes, { coordDimensions: coordDimensions }); - nodeData = new List(dimensionNames, seriesModel); + nodeData = new SeriesData(dimensionNames, seriesModel); nodeData.initData(nodes); } - const edgeData = new List(['value'], seriesModel); + const edgeData = new SeriesData(['value'], seriesModel); edgeData.initData(validEdges, linkNameList); beforeLink && beforeLink(nodeData, edgeData); - linkList({ + linkSeriesData({ mainData: nodeData, struct: graph, structAttr: 'graph', diff --git a/src/chart/helper/createListFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts similarity index 95% rename from src/chart/helper/createListFromArray.ts rename to src/chart/helper/createSeriesDataFromArray.ts index a9adc2f209..47467870ca 100644 --- a/src/chart/helper/createListFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -18,7 +18,7 @@ */ import * as zrUtil from 'zrender/src/core/util'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import createDimensions from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; @@ -31,13 +31,14 @@ import { SOURCE_FORMAT_ORIGINAL, DimensionDefinitionLoose, DimensionDefinition, OptionSourceData, EncodeDefaulter } from '../../util/types'; import SeriesModel from '../../model/Series'; +import DataStorage from '../../data/DataStorage'; function createListFromArray(source: Source | OptionSourceData, seriesModel: SeriesModel, opt?: { generateCoord?: string useEncodeDefaulter?: boolean | EncodeDefaulter // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. createInvertedIndices?: boolean -}): List { +}): SeriesData { opt = opt || {}; if (!isSourceInstance(source)) { @@ -110,12 +111,12 @@ function createListFromArray(source: Source | OptionSourceData, seriesModel: Ser const stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); - const list = new List(dimInfoList, seriesModel); + const list = new SeriesData(dimInfoList, seriesModel); list.setCalculationInfo(stackCalculationInfo); const dimValueGetter = (firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source)) - ? function (this: List, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { + ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { // Use dataIndex as ordinal value in categoryAxis return dimIndex === firstCategoryDimIndex ? dataIndex diff --git a/src/chart/helper/createListSimply.ts b/src/chart/helper/createSeriesDataSimply.ts similarity index 89% rename from src/chart/helper/createListSimply.ts rename to src/chart/helper/createSeriesDataSimply.ts index b38d3cdcf5..3a8c403a4f 100644 --- a/src/chart/helper/createListSimply.ts +++ b/src/chart/helper/createSeriesDataSimply.ts @@ -18,7 +18,7 @@ */ import createDimensions, {CreateDimensionsParams} from '../../data/helper/createDimensions'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import {extend, isArray} from 'zrender/src/core/util'; import SeriesModel from '../../model/Series'; @@ -32,18 +32,18 @@ import SeriesModel from '../../model/Series'; * dimensionsCount: 5 * }); */ -export default function createListSimply( +export default function createSeriesDataSimply( seriesModel: SeriesModel, opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'], nameList?: string[] -): List { +): SeriesData { opt = isArray(opt) && {coordDimensions: opt} || extend({}, opt); const source = seriesModel.getSource(); const dimensionsInfo = createDimensions(source, opt as CreateDimensionsParams); - const list = new List(dimensionsInfo, seriesModel); + const list = new SeriesData(dimensionsInfo, seriesModel); list.initData(source, nameList); return list; diff --git a/src/chart/helper/labelHelper.ts b/src/chart/helper/labelHelper.ts index 58a0b0d859..8dc79059cb 100644 --- a/src/chart/helper/labelHelper.ts +++ b/src/chart/helper/labelHelper.ts @@ -19,7 +19,7 @@ import {retrieveRawValue} from '../../data/helper/dataProvider'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { InterpolatableValue } from '../../util/types'; import { isArray } from 'zrender/src/core/util'; @@ -27,7 +27,7 @@ import { isArray } from 'zrender/src/core/util'; * @return label string. Not null/undefined */ export function getDefaultLabel( - data: List, + data: SeriesData, dataIndex: number ): string { const labelDims = data.mapDimensionsAll('defaultedLabel'); @@ -48,7 +48,7 @@ export function getDefaultLabel( } export function getDefaultInterpolatedLabel( - data: List, + data: SeriesData, interpolatedValue: InterpolatableValue ): string { const labelDims = data.mapDimensionsAll('defaultedLabel'); diff --git a/src/chart/helper/whiskerBoxCommon.ts b/src/chart/helper/whiskerBoxCommon.ts index 679360dae4..0aa61a1d50 100644 --- a/src/chart/helper/whiskerBoxCommon.ts +++ b/src/chart/helper/whiskerBoxCommon.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from './createSeriesDataSimply'; import * as zrUtil from 'zrender/src/core/util'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper'; @@ -25,7 +25,7 @@ import type { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient } from '. import type GlobalModel from '../../model/Global'; import type SeriesModel from '../../model/Series'; import type CartesianAxisModel from '../../coord/cartesian/AxisModel'; -import type List from '../../data/List'; +import type SeriesData from '../../data/SeriesData'; import type Axis2D from '../../coord/cartesian/Axis2D'; import { CoordDimensionDefinition } from '../../data/helper/createDimensions'; @@ -55,7 +55,7 @@ class WhiskerBoxCommonMixin { /** * @override */ - getInitialData(option: Opts, ecModel: GlobalModel): List { + getInitialData(option: Opts, ecModel: GlobalModel): SeriesData { // When both types of xAxis and yAxis are 'value', layout is // needed to be specified by user. Otherwise, layout can be // judged by which axis is category. @@ -132,7 +132,7 @@ class WhiskerBoxCommonMixin { dimsDef: defaultValueDimensions.slice() }]; - return createListSimply( + return createSeriesDataSimply( this, { coordDimensions: coordDimensions, diff --git a/src/chart/line/LineSeries.ts b/src/chart/line/LineSeries.ts index 0b685eb39c..6360c8968a 100644 --- a/src/chart/line/LineSeries.ts +++ b/src/chart/line/LineSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import SeriesModel from '../../model/Series'; import { SeriesOnCartesianOptionMixin, @@ -36,7 +36,7 @@ import { CallbackDataParams, DefaultEmphasisFocus } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; import type Polar from '../../coord/polar/Polar'; import {createSymbol, ECSymbol} from '../../util/symbol'; @@ -130,7 +130,7 @@ class LineSeriesModel extends SeriesModel { hasSymbolVisual = true; - getInitialData(option: LineSeriesOption): List { + getInitialData(option: LineSeriesOption): SeriesData { if (__DEV__) { const coordSys = option.coordinateSystem; if (coordSys !== 'polar' && coordSys !== 'cartesian2d') { diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index b40f589de4..c25bcc0505 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -29,13 +29,13 @@ import {ECPolyline, ECPolygon} from './poly'; import ChartView from '../../view/Chart'; import {prepareDataCoordInfo, getStackedOnPoint} from './helper'; import {createGridClipPath, createPolarClipPath} from '../helper/createClipPathFromCoordSys'; -import LineSeriesModel, { LineEndLabelOption, LineSeriesOption } from './LineSeries'; +import LineSeriesModel, { LineSeriesOption } from './LineSeries'; import type GlobalModel from '../../model/Global'; import type ExtensionAPI from '../../core/ExtensionAPI'; // TODO import Cartesian2D from '../../coord/cartesian/Cartesian2D'; import Polar from '../../coord/polar/Polar'; -import type List from '../../data/List'; +import type SeriesData from '../../data/SeriesData'; import type { Payload, Dictionary, @@ -121,7 +121,7 @@ function getSmooth(smooth: number | boolean) { function getStackedOnPoints( coordSys: Cartesian2D | Polar, - data: List, + data: SeriesData, dataCoordInfo: ReturnType ) { if (!dataCoordInfo.valueDim) { @@ -187,7 +187,7 @@ function turnPointsIntoStep( } function getVisualGradient( - data: List, + data: SeriesData, coordSys: Cartesian2D | Polar ) { const visualMetaList = data.getVisual('visualMeta'); @@ -290,7 +290,7 @@ function getVisualGradient( function getIsIgnoreFunc( seriesModel: LineSeriesModel, - data: List, + data: SeriesData, coordSys: Cartesian2D ) { const showAllSymbol = seriesModel.get('showAllSymbol'); @@ -332,7 +332,7 @@ function getIsIgnoreFunc( function canShowAllSymbolForCategory( categoryAxis: Axis2D, - data: List + data: SeriesData ) { // In mose cases, line is monotonous on category axis, and the label size // is close with each other. So we check the symbol size and some of the @@ -544,7 +544,7 @@ class LineView extends ChartView { _clipShapeForSymbol: CoordinateSystemClipArea; - _data: List; + _data: SeriesData; init() { const lineGroup = new graphic.Group(); @@ -962,7 +962,7 @@ class LineView extends ChartView { } _initSymbolLabelAnimation( - data: List, + data: SeriesData, coordSys: Polar | Cartesian2D, clipShape: PolarArea | Cartesian2DArea ) { @@ -1113,7 +1113,7 @@ class LineView extends ChartView { _endLabelOnDuring( percent: number, clipRect: graphic.Rect, - data: List, + data: SeriesData, animationRecord: EndLabelAnimationRecord, valueAnimation: boolean, endLabelModel: Model, @@ -1200,7 +1200,7 @@ class LineView extends ChartView { */ // FIXME Two value axis _doUpdateAnimation( - data: List, + data: SeriesData, stackedOnPoints: ArrayLike, coordSys: Cartesian2D | Polar, api: ExtensionAPI, diff --git a/src/chart/line/helper.ts b/src/chart/line/helper.ts index 200824f2cb..e58d2e70e0 100644 --- a/src/chart/line/helper.ts +++ b/src/chart/line/helper.ts @@ -21,7 +21,7 @@ import {isDimensionStacked} from '../../data/helper/dataStackHelper'; import {map} from 'zrender/src/core/util'; import type Polar from '../../coord/polar/Polar'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Axis from '../../coord/Axis'; import type { LineSeriesOption } from './LineSeries'; @@ -39,7 +39,7 @@ interface CoordInfo { export function prepareDataCoordInfo( coordSys: Cartesian2D | Polar, - data: List, + data: SeriesData, valueOrigin?: LineSeriesOption['areaStyle']['origin'] ): CoordInfo { const baseAxis = coordSys.getBaseAxis(); @@ -109,7 +109,7 @@ function getValueStart(valueAxis: Axis, valueOrigin: LineSeriesOption['areaStyle export function getStackedOnPoint( dataCoordInfo: CoordInfo, coordSys: Cartesian2D | Polar, - data: List, + data: SeriesData, idx: number ) { let value = NaN; diff --git a/src/chart/line/lineAnimationDiff.ts b/src/chart/line/lineAnimationDiff.ts index b491665435..60a93a1b1c 100644 --- a/src/chart/line/lineAnimationDiff.ts +++ b/src/chart/line/lineAnimationDiff.ts @@ -18,7 +18,7 @@ */ import {prepareDataCoordInfo, getStackedOnPoint} from './helper'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; import type Polar from '../../coord/polar/Polar'; import { LineSeriesOption } from './LineSeries'; @@ -30,7 +30,7 @@ interface DiffItem { idx1?: number } -function diffData(oldData: List, newData: List) { +function diffData(oldData: SeriesData, newData: SeriesData) { const diffResult: DiffItem[] = []; newData.diff(oldData) @@ -49,7 +49,7 @@ function diffData(oldData: List, newData: List) { } export default function lineAnimationDiff( - oldData: List, newData: List, + oldData: SeriesData, newData: SeriesData, oldStackedOnPoints: ArrayLike, newStackedOnPoints: ArrayLike, oldCoordSys: Cartesian2D | Polar, newCoordSys: Cartesian2D | Polar, oldValueOrigin: LineSeriesOption['areaStyle']['origin'], diff --git a/src/chart/lines/LinesSeries.ts b/src/chart/lines/LinesSeries.ts index 98cb2dd5e4..f6ec965c09 100644 --- a/src/chart/lines/LinesSeries.ts +++ b/src/chart/lines/LinesSeries.ts @@ -20,7 +20,7 @@ /* global Uint32Array, Float64Array, Float32Array */ import SeriesModel from '../../model/Series'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { concatArray, mergeAll, map } from 'zrender/src/core/util'; import CoordinateSystem from '../../core/CoordinateSystem'; import { @@ -297,7 +297,7 @@ class LinesSeriesModel extends SeriesModel { } } - const lineData = new List(['value'], this); + const lineData = new SeriesData(['value'], this); lineData.hasItemOption = false; lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) { diff --git a/src/chart/lines/LinesView.ts b/src/chart/lines/LinesView.ts index ad1089ea33..6c4479da44 100644 --- a/src/chart/lines/LinesView.ts +++ b/src/chart/lines/LinesView.ts @@ -31,7 +31,7 @@ import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import CanvasPainter from 'zrender/src/canvas/Painter'; import { StageHandlerProgressParams, StageHandlerProgressExecutor } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import type Polar from '../../coord/polar/Polar'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; @@ -90,7 +90,7 @@ class LinesView extends ChartView { } } - lineDraw.updateData(data as List); + lineDraw.updateData(data as SeriesData); const clipPath = seriesModel.get('clip', true) && createClipPath( (seriesModel.coordinateSystem as Polar | Cartesian2D), false, seriesModel @@ -156,7 +156,7 @@ class LinesView extends ChartView { } } - _updateLineDraw(data: List, seriesModel: LinesSeriesModel) { + _updateLineDraw(data: SeriesData, seriesModel: LinesSeriesModel) { let lineDraw = this._lineDraw; const hasEffect = this._showEffect(seriesModel); const isPolyline = !!seriesModel.get('polyline'); diff --git a/src/chart/lines/linesVisual.ts b/src/chart/lines/linesVisual.ts index 1e4c931b2b..0e18b691e5 100644 --- a/src/chart/lines/linesVisual.ts +++ b/src/chart/lines/linesVisual.ts @@ -18,7 +18,7 @@ */ import { StageHandler } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import LinesSeriesModel, { LinesDataItemOption } from './LinesSeries'; import Model from '../../model/Model'; import { LineDataVisual } from '../../visual/commonVisualTypes'; @@ -37,7 +37,7 @@ const linesVisual: StageHandler = { reset(seriesModel: LinesSeriesModel) { const symbolType = normalize(seriesModel.get('symbol')); const symbolSize = normalize(seriesModel.get('symbolSize')); - const data = seriesModel.getData() as List; + const data = seriesModel.getData() as SeriesData; data.setVisual('fromSymbol', symbolType && symbolType[0]); data.setVisual('toSymbol', symbolType && symbolType[1]); @@ -45,7 +45,7 @@ const linesVisual: StageHandler = { data.setVisual('toSymbolSize', symbolSize && symbolSize[1]); function dataEach( - data: List, + data: SeriesData, idx: number ): void { const itemModel = data.getItemModel(idx) as Model; diff --git a/src/chart/map/MapSeries.ts b/src/chart/map/MapSeries.ts index f0049defc8..582b55ced9 100644 --- a/src/chart/map/MapSeries.ts +++ b/src/chart/map/MapSeries.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from '../helper/createSeriesDataSimply'; import SeriesModel from '../../model/Series'; import geoSourceManager from '../../coord/geo/geoSourceManager'; import {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper'; @@ -36,7 +36,7 @@ import { } from '../../util/types'; import { Dictionary } from 'zrender/src/core/types'; import GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption } from '../../coord/geo/GeoModel'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Model from '../../model/Model'; import Geo from '../../coord/geo/Geo'; import { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup'; @@ -101,7 +101,7 @@ class MapSeries extends SeriesModel { // ----------------- // Injected outside - originalData: List; + originalData: SeriesData; mainSeries: MapSeries; // Only first map series of same mapType will drawMap. needsDrawMap: boolean = false; @@ -109,8 +109,8 @@ class MapSeries extends SeriesModel { seriesGroup: MapSeries[] = []; - getInitialData(this: MapSeries, option: MapSeriesOption): List { - const data = createListSimply(this, { + getInitialData(this: MapSeries, option: MapSeriesOption): SeriesData { + const data = createSeriesDataSimply(this, { coordDimensions: ['value'], encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this) }); @@ -133,7 +133,10 @@ class MapSeries extends SeriesModel { // Complete data with missing regions. The consequent processes (like visual // map and render) can not be performed without a "full data". For example, // find `dataIndex` by name. - data.appendValues([], toAppendNames); + data.appendData(zrUtil.map(toAppendNames, name => ({ + name, + value: NaN + }))); return data; } diff --git a/src/chart/map/mapDataStatistic.ts b/src/chart/map/mapDataStatistic.ts index 0df4040f29..504f5484ff 100644 --- a/src/chart/map/mapDataStatistic.ts +++ b/src/chart/map/mapDataStatistic.ts @@ -19,12 +19,12 @@ import * as zrUtil from 'zrender/src/core/util'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import MapSeries, { MapValueCalculationType } from './MapSeries'; import GlobalModel from '../../model/Global'; // FIXME 公用? -function dataStatistics(datas: List[], statisticType: MapValueCalculationType): List { +function dataStatistics(datas: SeriesData[], statisticType: MapValueCalculationType): SeriesData { const dataNameMap = {} as {[mapKey: string]: number[]}; zrUtil.each(datas, function (data) { diff --git a/src/chart/parallel/ParallelSeries.ts b/src/chart/parallel/ParallelSeries.ts index aaca025b05..20140c991e 100644 --- a/src/chart/parallel/ParallelSeries.ts +++ b/src/chart/parallel/ParallelSeries.ts @@ -20,7 +20,7 @@ import {each, bind} from 'zrender/src/core/util'; import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import { SeriesOption, SeriesEncodeOptionMixin, @@ -35,7 +35,7 @@ import { OptionEncode } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ParallelActiveState, ParallelAxisOption } from '../../coord/parallel/AxisModel'; import Parallel from '../../coord/parallel/Parallel'; import ParallelModel from '../../coord/parallel/ParallelModel'; @@ -91,7 +91,7 @@ class ParallelSeriesModel extends SeriesModel { coordinateSystem: Parallel; - getInitialData(this: ParallelSeriesModel, option: ParallelSeriesOption, ecModel: GlobalModel): List { + getInitialData(this: ParallelSeriesModel, option: ParallelSeriesOption, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this, { useEncodeDefaulter: bind(makeDefaultEncode, null, this) }); diff --git a/src/chart/parallel/ParallelView.ts b/src/chart/parallel/ParallelView.ts index c0b57142a4..1704b09c90 100644 --- a/src/chart/parallel/ParallelView.ts +++ b/src/chart/parallel/ParallelView.ts @@ -20,7 +20,7 @@ import * as graphic from '../../util/graphic'; import { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states'; import ChartView from '../../view/Chart'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import ParallelSeriesModel, { ParallelSeriesDataItemOption } from './ParallelSeries'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; @@ -42,7 +42,7 @@ class ParallelView extends ChartView { private _dataGroup = new graphic.Group(); - private _data: List; + private _data: SeriesData; private _initialized = false; @@ -160,7 +160,7 @@ function createGridClipShape(coordSys: Parallel, seriesModel: ParallelSeriesMode return rectEl; } -function createLinePoints(data: List, dataIndex: number, dimensions: string[], coordSys: Parallel) { +function createLinePoints(data: SeriesData, dataIndex: number, dimensions: string[], coordSys: Parallel) { const points = []; for (let i = 0; i < dimensions.length; i++) { const dimName = dimensions[i]; @@ -172,7 +172,7 @@ function createLinePoints(data: List, dataIndex: number, dimensions: string[], c return points; } -function addEl(data: List, dataGroup: graphic.Group, dataIndex: number, dimensions: string[], coordSys: Parallel) { +function addEl(data: SeriesData, dataGroup: graphic.Group, dataIndex: number, dimensions: string[], coordSys: Parallel) { const points = createLinePoints(data, dataIndex, dimensions, coordSys); const line = new graphic.Polyline({ shape: {points: points}, @@ -195,7 +195,7 @@ function makeSeriesScope(seriesModel: ParallelSeriesModel): ParallelDrawSeriesSc function updateElCommon( el: graphic.Polyline, - data: List, + data: SeriesData, dataIndex: number, seriesScope: ParallelDrawSeriesScope ) { diff --git a/src/chart/pie/PieSeries.ts b/src/chart/pie/PieSeries.ts index 0391923bfc..85784e7671 100644 --- a/src/chart/pie/PieSeries.ts +++ b/src/chart/pie/PieSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from '../helper/createSeriesDataSimply'; import * as zrUtil from 'zrender/src/core/util'; import * as modelUtil from '../../util/model'; import { getPercentWithPrecision } from '../../util/number'; @@ -38,7 +38,7 @@ import { SeriesLabelOption, DefaultEmphasisFocus } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; interface PieItemStyleOption extends ItemStyleOption { // can be 10 @@ -156,8 +156,8 @@ class PieSeriesModel extends SeriesModel { /** * @overwrite */ - getInitialData(this: PieSeriesModel): List { - return createListSimply(this, { + getInitialData(this: PieSeriesModel): SeriesData { + return createSeriesDataSimply(this, { coordDimensions: ['value'], encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this) }); diff --git a/src/chart/pie/PieView.ts b/src/chart/pie/PieView.ts index 043654d42d..66c07e8fc1 100644 --- a/src/chart/pie/PieView.ts +++ b/src/chart/pie/PieView.ts @@ -26,7 +26,7 @@ import ChartView from '../../view/Chart'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import { Payload, ColorString } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import PieSeriesModel, {PieDataItemOption} from './PieSeries'; import labelLayout from './labelLayout'; import { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper'; @@ -40,7 +40,7 @@ import { getBasicPieLayout } from './pieLayout'; */ class PiePiece extends graphic.Sector { - constructor(data: List, idx: number, startAngle: number) { + constructor(data: SeriesData, idx: number, startAngle: number) { super(); this.z2 = 2; @@ -52,7 +52,7 @@ class PiePiece extends graphic.Sector { this.updateData(data, idx, startAngle, true); } - updateData(data: List, idx: number, startAngle?: number, firstCreate?: boolean): void { + updateData(data: SeriesData, idx: number, startAngle?: number, firstCreate?: boolean): void { const sector = this; const seriesModel = data.hostModel as PieSeriesModel; @@ -158,7 +158,7 @@ class PiePiece extends graphic.Sector { enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope')); } - private _updateLabel(seriesModel: PieSeriesModel, data: List, idx: number): void { + private _updateLabel(seriesModel: PieSeriesModel, data: SeriesData, idx: number): void { const sector = this; const itemModel = data.getItemModel(idx); const labelLineModel = itemModel.getModel('labelLine'); @@ -223,7 +223,7 @@ class PieView extends ChartView { ignoreLabelLineUpdate = true; private _sectorGroup: graphic.Group; - private _data: List; + private _data: SeriesData; private _emptyCircleSector: graphic.Sector; init(): void { diff --git a/src/chart/radar/RadarSeries.ts b/src/chart/radar/RadarSeries.ts index f768195986..0f57ef67f4 100644 --- a/src/chart/radar/RadarSeries.ts +++ b/src/chart/radar/RadarSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createListSimply from '../helper/createListSimply'; +import createSeriesDataSimply from '../helper/createSeriesDataSimply'; import * as zrUtil from 'zrender/src/core/util'; import LegendVisualProvider from '../../visual/LegendVisualProvider'; import { @@ -35,7 +35,7 @@ import { CallbackDataParams } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Radar from '../../coord/radar/Radar'; import { createTooltipMarkup, retrieveVisualColorForTooltipMarker @@ -90,8 +90,8 @@ class RadarSeriesModel extends SeriesModel { } - getInitialData(option: RadarSeriesOption, ecModel: GlobalModel): List { - return createListSimply(this, { + getInitialData(option: RadarSeriesOption, ecModel: GlobalModel): SeriesData { + return createSeriesDataSimply(this, { generateCoord: 'indicator_', generateCoordCount: Infinity }); diff --git a/src/chart/radar/RadarView.ts b/src/chart/radar/RadarView.ts index c4e28d01c4..3eb6da246a 100644 --- a/src/chart/radar/RadarView.ts +++ b/src/chart/radar/RadarView.ts @@ -24,7 +24,7 @@ import * as symbolUtil from '../../util/symbol'; import ChartView from '../../view/Chart'; import RadarSeriesModel, { RadarSeriesDataItemOption } from './RadarSeries'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ColorString } from '../../util/types'; import GlobalModel from '../../model/Global'; import { VectorArray } from 'zrender/src/core/vector'; @@ -40,7 +40,7 @@ class RadarView extends ChartView { static type = 'radar'; type = RadarView.type; - private _data: List; + private _data: SeriesData; render(seriesModel: RadarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) { const polar = seriesModel.coordinateSystem; @@ -49,7 +49,7 @@ class RadarView extends ChartView { const data = seriesModel.getData(); const oldData = this._data; - function createSymbol(data: List, idx: number) { + function createSymbol(data: SeriesData, idx: number) { const symbolType = data.getItemVisual(idx, 'symbol') as string || 'circle'; if (symbolType === 'none') { return; @@ -77,7 +77,7 @@ class RadarView extends ChartView { oldPoints: VectorArray[], newPoints: VectorArray[], symbolGroup: graphic.Group, - data: List, + data: SeriesData, idx: number, isInit?: boolean ) { diff --git a/src/chart/sankey/SankeySeries.ts b/src/chart/sankey/SankeySeries.ts index a915ef6bdd..3261ad1645 100644 --- a/src/chart/sankey/SankeySeries.ts +++ b/src/chart/sankey/SankeySeries.ts @@ -36,7 +36,7 @@ import { DefaultEmphasisFocus } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { LayoutRect } from '../../util/layout'; import { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup'; @@ -150,7 +150,7 @@ class SankeySeriesModel extends SeriesModel { * Init a graph data structure from data in option series * * @param {Object} option the object used to config echarts view - * @return {module:echarts/data/List} storage initial data + * @return {module:echarts/data/SeriesData} storage initial data */ getInitialData(option: SankeySeriesOption, ecModel: GlobalModel) { const links = option.edges || option.links; @@ -173,7 +173,7 @@ class SankeySeriesModel extends SeriesModel { const graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink); return graph.data; } - function beforeLink(nodeData: List, edgeData: List) { + function beforeLink(nodeData: SeriesData, edgeData: SeriesData) { nodeData.wrapMethod('getItemModel', function (model: Model, idx: number) { const seriesModel = model.parentModel as SankeySeriesModel; const layout = seriesModel.getData().getItemLayout(idx); diff --git a/src/chart/sankey/SankeyView.ts b/src/chart/sankey/SankeyView.ts index 480aeb5909..abd589c564 100644 --- a/src/chart/sankey/SankeyView.ts +++ b/src/chart/sankey/SankeyView.ts @@ -25,7 +25,7 @@ import SankeySeriesModel, { SankeyEdgeItemOption, SankeyNodeItemOption } from '. import ChartView from '../../view/Chart'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { RectLike } from 'zrender/src/core/BoundingRect'; import { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle'; import { getECData } from '../../util/innerStore'; @@ -107,7 +107,7 @@ class SankeyView extends ChartView { private _focusAdjacencyDisabled = false; - private _data: List; + private _data: SeriesData; render(seriesModel: SankeySeriesModel, ecModel: GlobalModel, api: ExtensionAPI) { const sankeyView = this; diff --git a/src/chart/scatter/ScatterSeries.ts b/src/chart/scatter/ScatterSeries.ts index a217c5a659..6248eccff5 100644 --- a/src/chart/scatter/ScatterSeries.ts +++ b/src/chart/scatter/ScatterSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createListFromArray'; +import createListFromArray from '../helper/createSeriesDataFromArray'; import SeriesModel from '../../model/Series'; import { SeriesOption, @@ -39,7 +39,7 @@ import { DefaultEmphasisFocus } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { BrushCommonSelectorsForSeries } from '../../component/brush/selector'; interface ScatterStateOption { @@ -84,7 +84,7 @@ class ScatterSeriesModel extends SeriesModel { hasSymbolVisual = true; - getInitialData(option: ScatterSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: ScatterSeriesOption, ecModel: GlobalModel): SeriesData { return createListFromArray(this.getSource(), this, { useEncodeDefaulter: true }); @@ -109,7 +109,7 @@ class ScatterSeriesModel extends SeriesModel { return progressiveThreshold; } - brushSelector(dataIndex: number, data: List, selectors: BrushCommonSelectorsForSeries): boolean { + brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean { return selectors.point(data.getItemLayout(dataIndex)); } diff --git a/src/chart/scatter/ScatterView.ts b/src/chart/scatter/ScatterView.ts index 4a7fbb0b4d..1bf6e3ca32 100644 --- a/src/chart/scatter/ScatterView.ts +++ b/src/chart/scatter/ScatterView.ts @@ -25,7 +25,7 @@ import ChartView from '../../view/Chart'; import ScatterSeriesModel from './ScatterSeries'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { TaskProgressParams } from '../../core/task'; import type { StageHandlerProgressExecutor } from '../../util/types'; @@ -99,7 +99,7 @@ class ScatterView extends ChartView { return seriesModel.get('clip', true) ? clipArea : null; } - _updateSymbolDraw(data: List, seriesModel: ScatterSeriesModel) { + _updateSymbolDraw(data: SeriesData, seriesModel: ScatterSeriesModel) { let symbolDraw = this._symbolDraw; const pipelineContext = seriesModel.pipelineContext; const isLargeDraw = pipelineContext.large; diff --git a/src/chart/sunburst/SunburstSeries.ts b/src/chart/sunburst/SunburstSeries.ts index a1e38bf748..9082acc3ba 100644 --- a/src/chart/sunburst/SunburstSeries.ts +++ b/src/chart/sunburst/SunburstSeries.ts @@ -33,7 +33,7 @@ import { DefaultEmphasisFocus } from '../../util/types'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import Model from '../../model/Model'; import enableAriaDecalForTree from '../helper/enableAriaDecalForTree'; @@ -164,7 +164,7 @@ class SunburstSeriesModel extends SeriesModel { // to choose mappings approach among old shapes and new shapes. const tree = Tree.createTree(root, this, beforeLink); - function beforeLink(nodeData: List) { + function beforeLink(nodeData: SeriesData) { nodeData.wrapMethod('getItemModel', function (model, idx) { const node = tree.getNodeByDataIndex(idx); const levelModel = levelModels[node.depth]; diff --git a/src/chart/themeRiver/ThemeRiverSeries.ts b/src/chart/themeRiver/ThemeRiverSeries.ts index 6eb4f721e5..724526de89 100644 --- a/src/chart/themeRiver/ThemeRiverSeries.ts +++ b/src/chart/themeRiver/ThemeRiverSeries.ts @@ -20,7 +20,7 @@ import SeriesModel from '../../model/Series'; import createDimensions from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as zrUtil from 'zrender/src/core/util'; import {groupData, SINGLE_REFERRING} from '../../util/model'; import LegendVisualProvider from '../../visual/LegendVisualProvider'; @@ -154,7 +154,7 @@ class ThemeRiverSeriesModel extends SeriesModel { * @param option the initial option that user gived * @param ecModel the model object for themeRiver option */ - getInitialData(option: ThemeRiverSeriesOption, ecModel: GlobalModel): List { + getInitialData(option: ThemeRiverSeriesOption, ecModel: GlobalModel): SeriesData { const singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0]; @@ -202,7 +202,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } }); - const list = new List(dimensionsInfo, this); + const list = new SeriesData(dimensionsInfo, this); list.initData(data); return list; diff --git a/src/chart/themeRiver/themeRiverLayout.ts b/src/chart/themeRiver/themeRiverLayout.ts index 6de3e658d1..ec51217113 100644 --- a/src/chart/themeRiver/themeRiverLayout.ts +++ b/src/chart/themeRiver/themeRiverLayout.ts @@ -23,7 +23,7 @@ import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import ThemeRiverSeriesModel, { ThemeRiverSeriesOption } from './ThemeRiverSeries'; import { RectLike } from 'zrender/src/core/BoundingRect'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; export interface ThemeRiverLayoutInfo { rect: RectLike @@ -75,7 +75,7 @@ export default function themeRiverLayout(ecModel: GlobalModel, api: ExtensionAPI * @param seriesModel the model object of themeRiver series * @param height value used to compute every series height */ -function doThemeRiverLayout(data: List, seriesModel: ThemeRiverSeriesModel, height: number) { +function doThemeRiverLayout(data: SeriesData, seriesModel: ThemeRiverSeriesModel, height: number) { if (!data.count()) { return; } diff --git a/src/chart/tree/TreeSeries.ts b/src/chart/tree/TreeSeries.ts index 2c197e444f..4f1e1b1669 100644 --- a/src/chart/tree/TreeSeries.ts +++ b/src/chart/tree/TreeSeries.ts @@ -33,7 +33,7 @@ import { CallbackDataParams, DefaultEmphasisFocus } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import View from '../../coord/View'; import { LayoutRect } from '../../util/layout'; import Model from '../../model/Model'; @@ -144,7 +144,7 @@ class TreeSeriesModel extends SeriesModel { * @param option the object used to config echarts view * @return storage initial data */ - getInitialData(option: TreeSeriesOption): List { + getInitialData(option: TreeSeriesOption): SeriesData { //create an virtual root const root: TreeSeriesNodeItemOption = { @@ -157,7 +157,7 @@ class TreeSeriesModel extends SeriesModel { const tree = Tree.createTree(root, this, beforeLink); - function beforeLink(nodeData: List) { + function beforeLink(nodeData: SeriesData) { nodeData.wrapMethod('getItemModel', function (model, idx) { const node = tree.getNodeByDataIndex(idx); if (!(node && node.children.length && node.isExpand)) { diff --git a/src/chart/tree/TreeView.ts b/src/chart/tree/TreeView.ts index bcc8be8ee7..e86d0b2592 100644 --- a/src/chart/tree/TreeView.ts +++ b/src/chart/tree/TreeView.ts @@ -34,7 +34,7 @@ import Path, { PathProps, PathStyleProps } from 'zrender/src/graphic/Path'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import { TreeNode } from '../../data/Tree'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { setStatesStylesFromModel, setStatesFlag, setDefaultStateProxy, HOVER_STATE_BLUR } from '../../util/states'; import { ECElement } from '../../util/types'; @@ -134,7 +134,7 @@ class TreeView extends ChartView { private _controller: RoamController; private _controllerHost: RoamControllerHost; - private _data: List; + private _data: SeriesData; private _nodeScaleRatio: number; private _min: number[]; @@ -358,7 +358,7 @@ class TreeView extends ChartView { } -function symbolNeedsDraw(data: List, dataIndex: number) { +function symbolNeedsDraw(data: SeriesData, dataIndex: number) { const layout = data.getItemLayout(dataIndex); return layout @@ -367,7 +367,7 @@ function symbolNeedsDraw(data: List, dataIndex: number) { function updateNode( - data: List, + data: SeriesData, dataIndex: number, symbolEl: TreeSymbol, group: graphic.Group, @@ -596,7 +596,7 @@ function drawEdge( } function removeNode( - data: List, + data: SeriesData, dataIndex: number, symbolEl: TreeSymbol, group: graphic.Group, diff --git a/src/chart/treemap/TreemapSeries.ts b/src/chart/treemap/TreemapSeries.ts index e84fe852ae..cde6a0c8c0 100644 --- a/src/chart/treemap/TreemapSeries.ts +++ b/src/chart/treemap/TreemapSeries.ts @@ -40,7 +40,7 @@ import { } from '../../util/types'; import GlobalModel from '../../model/Global'; import { LayoutRect } from '../../util/layout'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { normalizeToArray } from '../../util/model'; import { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup'; import enableAriaDecalForTree from '../helper/enableAriaDecalForTree'; @@ -367,7 +367,7 @@ class TreemapSeriesModel extends SeriesModel { // to choose mappings approach among old shapes and new shapes. const tree = Tree.createTree(root, this, beforeLink); - function beforeLink(nodeData: List) { + function beforeLink(nodeData: SeriesData) { nodeData.wrapMethod('getItemModel', function (model, idx) { const node = tree.getNodeByDataIndex(idx); const levelModel = node ? levelModels[node.depth] : null; diff --git a/src/component/helper/MapDraw.ts b/src/component/helper/MapDraw.ts index 31ff42d239..56bf2c54bc 100644 --- a/src/component/helper/MapDraw.ts +++ b/src/component/helper/MapDraw.ts @@ -46,7 +46,7 @@ import { ViewCoordSysTransformInfoPart } from '../../coord/View'; import { GeoSVGGraphicRecord, GeoSVGResource } from '../../coord/geo/GeoSVGResource'; import Displayable from 'zrender/src/graphic/Displayable'; import Element from 'zrender/src/Element'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { GeoJSONRegion } from '../../coord/geo/Region'; import { SVGNodeTagLower } from 'zrender/src/tool/parseSVG'; import { makeInner } from '../../util/model'; @@ -62,7 +62,7 @@ interface ViewBuildContext { api: ExtensionAPI; geo: Geo; mapOrGeoModel: GeoModel | MapSeries; - data: List; + data: SeriesData; isVisualEncodedByVisualMap: boolean; isGeo: boolean; transformInfoRaw: ViewCoordSysTransformInfoPart; diff --git a/src/component/marker/MarkAreaView.ts b/src/component/marker/MarkAreaView.ts index bb20679489..e4faafdc1a 100644 --- a/src/component/marker/MarkAreaView.ts +++ b/src/component/marker/MarkAreaView.ts @@ -20,7 +20,7 @@ // TODO Optimize on polar import * as colorUtil from 'zrender/src/tool/color'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as numberUtil from '../../util/number'; import * as graphic from '../../util/graphic'; import { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states'; @@ -47,7 +47,7 @@ interface MarkAreaDrawGroup { } const inner = makeInner<{ - data: List + data: SeriesData }, MarkAreaDrawGroup>(); // Merge two ends option into one. @@ -137,7 +137,7 @@ function markAreaFilter(coordSys: CoordinateSystem, item: MarkAreaMergedItemOpti // dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0'] function getSingleMarkerEndPoint( - data: List, + data: SeriesData, idx: number, dims: typeof dimPermutations[number], seriesModel: SeriesModel, @@ -363,7 +363,7 @@ function createList( ) { let coordDimsInfos: DataDimensionInfo[]; - let areaData: List; + let areaData: SeriesData; const dims = ['x0', 'y0', 'x1', 'y1']; if (coordSys) { coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) { @@ -376,7 +376,7 @@ function createList( name: coordDim }, info); }); - areaData = new List(map(dims, function (dim, idx) { + areaData = new SeriesData(map(dims, function (dim, idx) { return { name: dim, type: coordDimsInfos[idx % 2].type @@ -388,7 +388,7 @@ function createList( name: 'value', type: 'float' }]; - areaData = new List(coordDimsInfos, maModel); + areaData = new SeriesData(coordDimsInfos, maModel); } let optData = map(maModel.get('data'), curry( diff --git a/src/component/marker/MarkLineView.ts b/src/component/marker/MarkLineView.ts index d4ed839116..23901ccb24 100644 --- a/src/component/marker/MarkLineView.ts +++ b/src/component/marker/MarkLineView.ts @@ -17,7 +17,7 @@ * under the License. */ -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as numberUtil from '../../util/number'; import * as markerHelper from './markerHelper'; import LineDraw from '../../chart/helper/LineDraw'; @@ -57,9 +57,9 @@ type MarkLineMergedItemOption = MarkLine2DDataItemOption[number]; const inner = makeInner<{ // from data - from: List + from: SeriesData // to data - to: List + to: SeriesData }, MarkLineModel>(); const markLineTransform = function ( @@ -196,7 +196,7 @@ function markLineFilter( } function updateSingleMarkerEndLayout( - data: List, + data: SeriesData, idx: number, isFrom: boolean, seriesModel: SeriesModel, @@ -311,7 +311,7 @@ class MarkLineView extends MarkerView { const fromData = mlData.from; const toData = mlData.to; - const lineData = mlData.line as List; + const lineData = mlData.line as SeriesData; inner(mlModel).from = fromData; inner(mlModel).to = toData; @@ -388,7 +388,7 @@ class MarkLineView extends MarkerView { }); function updateDataVisualAndLayout( - data: List, + data: SeriesData, idx: number, isFrom: boolean ) { @@ -452,10 +452,10 @@ function createList(coordSys: CoordinateSystem, seriesModel: SeriesModel, mlMode }]; } - const fromData = new List(coordDimsInfos, mlModel); - const toData = new List(coordDimsInfos, mlModel); + const fromData = new SeriesData(coordDimsInfos, mlModel); + const toData = new SeriesData(coordDimsInfos, mlModel); // No dimensions - const lineData = new List([], mlModel); + const lineData = new SeriesData([], mlModel); let optData = map(mlModel.get('data'), curry( markLineTransform, seriesModel, coordSys, mlModel diff --git a/src/component/marker/MarkPointView.ts b/src/component/marker/MarkPointView.ts index b7cf0a21e4..e82fe73502 100644 --- a/src/component/marker/MarkPointView.ts +++ b/src/component/marker/MarkPointView.ts @@ -20,7 +20,7 @@ import SymbolDraw from '../../chart/helper/SymbolDraw'; import * as numberUtil from '../../util/number'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import * as markerHelper from './markerHelper'; import MarkerView from './MarkerView'; import { CoordinateSystem } from '../../coord/CoordinateSystem'; @@ -35,7 +35,7 @@ import { getVisualFromData } from '../../visual/helper'; import { ZRColor } from '../../util/types'; function updateMarkerLayout( - mpData: List, + mpData: SeriesData, seriesModel: SeriesModel, api: ExtensionAPI ) { @@ -198,7 +198,7 @@ function createList( }]; } - const mpData = new List(coordDimsInfos, mpModel); + const mpData = new SeriesData(coordDimsInfos, mpModel); let dataOpt = map(mpModel.get('data'), curry( markerHelper.dataTransform, seriesModel )); diff --git a/src/component/marker/MarkerModel.ts b/src/component/marker/MarkerModel.ts index 341bf5b347..6a68558cab 100644 --- a/src/component/marker/MarkerModel.ts +++ b/src/component/marker/MarkerModel.ts @@ -32,7 +32,7 @@ import { } from '../../util/types'; import Model from '../../model/Model'; import GlobalModel from '../../model/Global'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { makeInner, defaultEmphasis } from '../../util/model'; import { createTooltipMarkup } from '../tooltip/tooltipMarkup'; @@ -109,7 +109,7 @@ abstract class MarkerModel extends Com __hostSeries: SeriesModel; - private _data: List; + private _data: SeriesData; /** * @overrite @@ -217,11 +217,11 @@ abstract class MarkerModel extends Com }); } - getData(): List { - return this._data as List; + getData(): SeriesData { + return this._data as SeriesData; } - setData(data: List) { + setData(data: SeriesData) { this._data = data; } diff --git a/src/component/marker/markerHelper.ts b/src/component/marker/markerHelper.ts index 4ae4b7573b..ab4a7a9e77 100644 --- a/src/component/marker/markerHelper.ts +++ b/src/component/marker/markerHelper.ts @@ -20,7 +20,7 @@ import * as numberUtil from '../../util/number'; import {isDimensionStacked} from '../../data/helper/dataStackHelper'; import SeriesModel from '../../model/Series'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { MarkerStatisticType, MarkerPositionOption } from './MarkerModel'; import { indexOf, curry, clone, isArray } from 'zrender/src/core/util'; import Axis from '../../coord/Axis'; @@ -68,7 +68,7 @@ function hasXAndY(item: MarkerPositionOption) { function markerTypeCalculatorWithExtent( markerType: MarkerStatisticType, - data: List, + data: SeriesData, otherDataDim: string, targetDataDim: string, otherCoordIndex: number, @@ -171,7 +171,7 @@ export function dataTransform( export function getAxisInfo( item: MarkerPositionOption, - data: List, + data: SeriesData, coordSys: CoordinateSystem, seriesModel: SeriesModel ) { @@ -236,7 +236,7 @@ export function dimValueGetter( } export function numCalculate( - data: List, + data: SeriesData, valueDataDim: string, type: MarkerStatisticType ) { diff --git a/src/component/timeline/SliderTimelineModel.ts b/src/component/timeline/SliderTimelineModel.ts index 618e49c4cf..ec20bc948b 100644 --- a/src/component/timeline/SliderTimelineModel.ts +++ b/src/component/timeline/SliderTimelineModel.ts @@ -20,7 +20,7 @@ import TimelineModel, { TimelineOption } from './TimelineModel'; import { DataFormatMixin } from '../../model/mixin/dataFormat'; import { mixin } from 'zrender/src/core/util'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { inheritDefaultOption } from '../../util/component'; export interface SliderTimelineOption extends TimelineOption { @@ -149,7 +149,7 @@ class SliderTimelineModel extends TimelineModel { } interface SliderTimelineModel extends DataFormatMixin { - getData(): List + getData(): SeriesData } mixin(SliderTimelineModel, DataFormatMixin.prototype); diff --git a/src/component/timeline/TimelineModel.ts b/src/component/timeline/TimelineModel.ts index 619f468f3a..ecfd963f3b 100644 --- a/src/component/timeline/TimelineModel.ts +++ b/src/component/timeline/TimelineModel.ts @@ -18,7 +18,7 @@ */ import ComponentModel from '../../model/Component'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import { ComponentOption, BoxLayoutOptionMixin, @@ -171,7 +171,7 @@ class TimelineModel extends ComponentModel { layoutMode = 'box'; - private _data: List; + private _data: SeriesData; private _names: string[]; @@ -275,7 +275,7 @@ class TimelineModel extends ComponentModel { value: 'number' })[axisType] || 'number'; - const data = this._data = new List([{ + const data = this._data = new SeriesData([{ name: 'value', type: dimType }], this); diff --git a/src/component/visualMap/VisualMapModel.ts b/src/component/visualMap/VisualMapModel.ts index 2ef3c33542..0ec6cefb9a 100644 --- a/src/component/visualMap/VisualMapModel.ts +++ b/src/component/visualMap/VisualMapModel.ts @@ -38,7 +38,7 @@ import ComponentModel from '../../model/Component'; import Model from '../../model/Model'; import GlobalModel from '../../model/Global'; import SeriesModel from '../../model/Series'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; const mapVisual = VisualMapping.mapVisual; const eachVisual = VisualMapping.eachVisual; @@ -379,7 +379,7 @@ class VisualMapModel extends Com /** * Return Concrete dimention. If return null/undefined, no dimension used. */ - getDataDimension(list: List) { + getDataDimension(list: SeriesData) { const optDim = this.option.dimension; const listDimensions = list.dimensions; if (optDim == null && !listDimensions.length) { diff --git a/src/coord/axisHelper.ts b/src/coord/axisHelper.ts index 3bc6860442..d058db3ad1 100644 --- a/src/coord/axisHelper.ts +++ b/src/coord/axisHelper.ts @@ -35,7 +35,7 @@ import LogScale from '../scale/Log'; import Axis from './Axis'; import { AxisBaseOption, TimeAxisLabelFormatterOption } from './axisCommonTypes'; import type CartesianAxisModel from './cartesian/AxisModel'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { getStackedDimension } from '../data/helper/dataStackHelper'; import { Dictionary, DimensionName, ScaleTick, TimeScaleTick } from '../util/types'; import { ensureScaleRawExtentInfo } from './scaleRawExtentInfo'; @@ -361,7 +361,7 @@ export function shouldShowAllLabels(axis: Axis): boolean { && getOptionCategoryInterval(axis.getLabelModel()) === 0; } -export function getDataDimensionsOnAxis(data: List, axisDim: string): DimensionName[] { +export function getDataDimensionsOnAxis(data: SeriesData, axisDim: string): DimensionName[] { // Remove duplicated dat dimensions caused by `getStackedDimension`. const dataDimMap = {} as Dictionary; // Currently `mapDimensionsAll` will contain stack result dimension ('__\0ecstackresult'). @@ -379,7 +379,7 @@ export function getDataDimensionsOnAxis(data: List, axisDim: string): DimensionN return zrUtil.keys(dataDimMap); } -export function unionAxisExtentFromData(dataExtent: number[], data: List, axisDim: string): void { +export function unionAxisExtentFromData(dataExtent: number[], data: SeriesData, axisDim: string): void { if (data) { zrUtil.each(getDataDimensionsOnAxis(data, axisDim), function (dim) { const seriesExtent = data.getApproximateExtent(dim); diff --git a/src/coord/cartesian/Grid.ts b/src/coord/cartesian/Grid.ts index 32c616dbf5..6eef23eac1 100644 --- a/src/coord/cartesian/Grid.ts +++ b/src/coord/cartesian/Grid.ts @@ -44,7 +44,7 @@ import ExtensionAPI from '../../core/ExtensionAPI'; import { Dictionary } from 'zrender/src/core/types'; import {CoordinateSystemMaster} from '../CoordinateSystem'; import { ScaleDataValue } from '../../util/types'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; import OrdinalScale from '../../scale/Ordinal'; import { isCartesian2DSeries, findAxisModels } from './cartesianAxisHelper'; @@ -450,7 +450,7 @@ class Grid implements CoordinateSystemMaster { } }, this); - function unionExtent(data: List, axis: Axis2D): void { + function unionExtent(data: SeriesData, axis: Axis2D): void { each(getDataDimensionsOnAxis(data, axis.dim), function (dim) { axis.scale.unionExtentFromData(data, dim); }); diff --git a/src/coord/parallel/Parallel.ts b/src/coord/parallel/Parallel.ts index 6080b85f2b..e22cf9a8d7 100644 --- a/src/coord/parallel/Parallel.ts +++ b/src/coord/parallel/Parallel.ts @@ -37,7 +37,7 @@ import ExtensionAPI from '../../core/ExtensionAPI'; import { Dictionary, DimensionName, ScaleDataValue } from '../../util/types'; import { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem'; import ParallelAxisModel, { ParallelActiveState } from './AxisModel'; -import List from '../../data/List'; +import SeriesData from '../../data/SeriesData'; const each = zrUtil.each; const mathMin = Math.min; @@ -357,7 +357,7 @@ class Parallel implements CoordinateSystemMaster, CoordinateSystem { * @param end the next dataIndex of the last dataIndex will be travel. */ eachActiveState( - data: List, + data: SeriesData, callback: (activeState: ParallelActiveState, dataIndex: number) => void, start?: number, end?: number diff --git a/src/core/Scheduler.ts b/src/core/Scheduler.ts index 2081e4a094..4d67411a4c 100644 --- a/src/core/Scheduler.ts +++ b/src/core/Scheduler.ts @@ -33,7 +33,7 @@ import { import { EChartsType } from './echarts'; import SeriesModel from '../model/Series'; import ChartView from '../view/Chart'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; export type GeneralTask = Task; export type SeriesTask = Task; @@ -76,7 +76,7 @@ type PerformStageTaskOpt = { export interface SeriesTaskContext extends TaskContext { model?: SeriesModel; - data?: List; + data?: SeriesData; view?: ChartView; ecModel?: GlobalModel; api?: ExtensionAPI; diff --git a/src/core/task.ts b/src/core/task.ts index 97bcaeb70c..08d7e23ff6 100644 --- a/src/core/task.ts +++ b/src/core/task.ts @@ -21,12 +21,12 @@ import {assert, isArray} from 'zrender/src/core/util'; import SeriesModel from '../model/Series'; import { Pipeline } from './Scheduler'; import { Payload } from '../util/types'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; export interface TaskContext { - outputData?: List; - data?: List; + outputData?: SeriesData; + data?: SeriesData; payload?: Payload; model?: SeriesModel; }; diff --git a/src/data/DataDimensionInfo.ts b/src/data/DataDimensionInfo.ts index 2857ef8562..2b9519803d 100644 --- a/src/data/DataDimensionInfo.ts +++ b/src/data/DataDimensionInfo.ts @@ -25,7 +25,6 @@ class DataDimensionInfo { /** * Dimension type. The enumerable values are the key of - * `dataCtors` of `data/List`. * Optional. */ type?: DimensionType; @@ -63,8 +62,8 @@ class DataDimensionInfo { coordDimIndex?: number; /** - * This index of this dimension info in `data/List#_dimensionInfos`. - * Mandatory after added to `data/List`. + * This index of this dimension info in `data/SeriesData#_dimensionInfos`. + * Mandatory after added to `data/SeriesData`. */ index?: number; diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts new file mode 100644 index 0000000000..2a9da9eb64 --- /dev/null +++ b/src/data/DataStorage.ts @@ -0,0 +1,1141 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +import { assert, clone, isFunction, keys, map, reduce } from 'zrender/src/core/util'; +import { + Dictionary, + DimensionIndex, + DimensionName, + OptionDataItem, + OrdinalNumber, + ParsedValue, + ParsedValueNumeric +} from '../util/types'; +import { DataProvider } from './helper/dataProvider'; +import { parseDataValue } from './helper/dataValueHelper'; +import OrdinalMeta from './OrdinalMeta'; + +const UNDEFINED = 'undefined'; +/* global Float64Array, Int32Array, Uint32Array, Uint16Array */ + +/** + * Multi dimensional data storage + */ + const dataCtors = { + 'float': typeof Float64Array === UNDEFINED + ? Array : Float64Array, + 'int': typeof Int32Array === UNDEFINED + ? Array : Int32Array, + // Ordinal data type can be string or int + 'ordinal': Array, + 'number': Array, + 'time': Array +} as const; + +export type DataStoreDimensionType = keyof typeof dataCtors; + +type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; +type DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array; +type DataArrayLikeConstructor = typeof Array | DataTypedArrayConstructor; + +// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is +// different from the Ctor of typed array. +const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; +const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; + +type DataValueChunk = ArrayLike; + +// If Ctx not specified, use List as Ctx +type EachCb0 = (idx: number) => void; +type EachCb1 = (x: ParsedValue, idx: number) => void; +type EachCb2 = (x: ParsedValue, y: ParsedValue, idx: number) => void; +type EachCb = (...args: any) => void; +type FilterCb0 = (idx: number) => boolean; +type FilterCb1 = (x: ParsedValue, idx: number) => boolean; +type FilterCb = (...args: any) => boolean; +type MapArrayCb = (...args: any) => any; +type MapCb = (...args: any) => ParsedValue | ParsedValue[]; + +export type DimValueGetter = ( + this: DataStorage, + dataItem: any, + /** + * @deprecated + * dimName is not used anymore + */ + dimName: string, + dataIndex: number, + dimIndex: DimensionIndex +) => ParsedValue; + +interface StoreDimensionInfo { + type?: DataStoreDimensionType; // Default to be float. + name?: string; + ordinalMeta?: OrdinalMeta; +} + +let defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter}; + +function getIndicesCtor(rawCount: number): DataArrayLikeConstructor { + // The possible max value in this._indicies is always this._rawCount despite of filtering. + return rawCount > 65535 ? CtorUint32Array : CtorUint16Array; +}; +function getInitialExtent(): [number, number] { + return [Infinity, -Infinity]; +}; +function cloneChunk(originalChunk: DataValueChunk): DataValueChunk { + const Ctor = originalChunk.constructor; + // Only shallow clone is enough when Array. + return Ctor === Array + ? (originalChunk as Array).slice() + : new (Ctor as DataTypedArrayConstructor)(originalChunk as DataTypedArray); +} + +function prepareStorage( + storage: DataValueChunk[], + dimIdx: number, + dimType: DataStoreDimensionType, + end: number, + append?: boolean +): void { + const DataCtor = dataCtors[dimType || 'float']; + + if (append) { + const oldStore = storage[dimIdx]; + const oldLen = oldStore && oldStore.length; + if (!(oldLen === end)) { + const newStore = new DataCtor(end); + // The cost of the copy is probably inconsiderable + // within the initial chunkSize. + for (let j = 0; j < oldLen; j++) { + newStore[j] = oldStore[j]; + } + storage[dimIdx] = newStore; + } + } + else { + storage[dimIdx] = new DataCtor(end); + } +}; +class DataStorage { + private _chunks: DataValueChunk[] = []; + + private _provider: DataProvider; + + // Raw extent will not be cloned, but only transfered. + // It will not be calculated util needed. + private _rawExtent: [number, number][] = []; + + private _extent: [number, number][] = []; + + // Indices stores the indices of data subset after filtered. + // This data subset will be used in chart. + private _indices: ArrayLike; + + private _count: number = 0; + private _rawCount: number = 0; + + private _dimensions: StoreDimensionInfo[]; + private _dimValueGetter: DimValueGetter; + + defaultDimValueGetter: DimValueGetter; + /** + * Initialize from data + * @param data source or data or data provider. + */ + initData( + provider: DataProvider, + dimensions: StoreDimensionInfo[], + dimValueGetter?: DimValueGetter + ): void { + if (__DEV__) { + assert( + isFunction(provider.getItem) && isFunction(provider.count), + 'Inavlid data provider.' + ); + } + + this._provider = provider; + + // Clear + this._chunks = []; + this._indices = null; + this.getRawIndex = this._getRawIdxIdentity; + + const defaultGetter = this.defaultDimValueGetter = + defaultDimValueGetters[provider.getSource().sourceFormat]; + // Default dim value getter + this._dimValueGetter = dimValueGetter || defaultGetter; + + const emptyObj = {}; + + // Reset raw extent. + this._rawExtent = []; + this._dimensions = dimensions; + + const dimensionsIdxMap: Dictionary = {}; + let prefix = ''; + + // Needs to add prefix if key is used in object prototype + for (let i = 0; i < dimensions.length; i++) { + const name = dimensions[i].name; + if ((emptyObj as any)[name] != null) { + prefix = '$$'; + } + } + for (let i = 0; i < dimensions.length; i++) { + const name = dimensions[i].name; + dimensionsIdxMap[prefix + name] = i; + } + + // We use different functions because it may be a hotspot code. + this.getDimensionIndex = prefix ? function (dim) { + return dimensionsIdxMap[prefix + dim]; + } : function (dim) { + return dimensionsIdxMap[dim]; + }; + + this._initDataFromProvider(0, provider.count()); + } + + getProvider(): DataProvider { + return this._provider; + } + + getDimensionIndex: (dim: DimensionName) => number; + + /** + * Caution: Can be only called on raw data (before `this._indices` created). + */ + appendData(data: ArrayLike) { + if (__DEV__) { + assert(!this._indices, 'appendData can only be called on raw data.'); + } + + const provider = this._provider; + const start = this.count(); + provider.appendData(data); + let end = provider.count(); + if (!provider.persistent) { + end += start; + } + this._initDataFromProvider(start, end, true); + + return [start, end]; + } + + private _initDataFromProvider( + start: number, + end: number, + append?: boolean + ): void { + if (start >= end) { + return; + } + + const provider = this._provider; + const chunks = this._chunks; + const dimensions = this._dimensions; + const dimLen = dimensions.length; + const rawExtent = this._rawExtent; + const dimNames = map(dimensions, dim => dim.name); + + for (let i = 0; i < dimLen; i++) { + const dim = dimensions[i]; + if (!rawExtent[i]) { + rawExtent[i] = getInitialExtent(); + } + prepareStorage(chunks, i, dim.type, end, append); + } + + if (provider.fillStorage) { + provider.fillStorage(start, end, chunks, rawExtent); + } + else { + let dataItem = [] as OptionDataItem; + for (let idx = start; idx < end; idx++) { + // NOTICE: Try not to write things into dataItem + dataItem = provider.getItem(idx, dataItem); + // Each data item is value + // [1, 2] + // 2 + // Bar chart, line chart which uses category axis + // only gives the 'y' value. 'x' value is the indices of category + // Use a tempValue to normalize the value to be a (x, y) value + + // Store the data by dimensions + for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) { + const dimStorage = chunks[dimIdx]; + // PENDING NULL is empty or zero + const val = this._dimValueGetter( + dataItem, dimNames[dimIdx], idx, dimIdx + ) as ParsedValueNumeric; + (dimStorage as ParsedValue[])[idx] = val; + + const dimRawExtent = rawExtent[dimIdx]; + val < dimRawExtent[0] && (dimRawExtent[0] = val); + val > dimRawExtent[1] && (dimRawExtent[1] = val); + } + } + } + + if (!provider.persistent && provider.clean) { + // Clean unused data if data source is typed array. + provider.clean(); + } + + this._rawCount = this._count = end; + // Reset data extent + this._extent = []; + } + + count(): number { + return this._count; + } + + /** + * Get value. Return NaN if idx is out of range. + */ + get(dim: number, idx: number): ParsedValue { + if (!(idx >= 0 && idx < this._count)) { + return NaN; + } + const dimStore = this._chunks[dim]; + return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; + } + + /** + * @param dim concrete dim + */ + getByRawIndex(dim: number, rawIdx: number): ParsedValue { + if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { + return NaN; + } + const dimStore = this._chunks[dim]; + return dimStore ? dimStore[rawIdx] : NaN; + } + + /** + * Get sum of data in one dimension + */ + getSum(dim: DimensionIndex): number { + const dimData = this._chunks[dim]; + let sum = 0; + if (dimData) { + for (let i = 0, len = this.count(); i < len; i++) { + const value = this.get(dim, i) as number; + if (!isNaN(value)) { + sum += value; + } + } + } + return sum; + } + + /** + * Get median of data in one dimension + */ + getMedian(dim: DimensionIndex): number { + const dimDataArray: ParsedValue[] = []; + // map all data of one dimension + this.each([dim], function (val) { + if (!isNaN(val as number)) { + dimDataArray.push(val); + } + }); + + // TODO + // Use quick select? + const sortedDimDataArray = dimDataArray.sort(function (a: number, b: number) { + return a - b; + }) as number[]; + const len = this.count(); + // calculate median + return len === 0 + ? 0 + : len % 2 === 1 + ? sortedDimDataArray[(len - 1) / 2] + : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2; + } + + /** + * Retreive the index with given raw data index + */ + indexOfRawIndex(rawIndex: number): number { + if (rawIndex >= this._rawCount || rawIndex < 0) { + return -1; + } + + if (!this._indices) { + return rawIndex; + } + + // Indices are ascending + const indices = this._indices; + + // If rawIndex === dataIndex + const rawDataIndex = indices[rawIndex]; + if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) { + return rawIndex; + } + + let left = 0; + let right = this._count - 1; + while (left <= right) { + const mid = (left + right) / 2 | 0; + if (indices[mid] < rawIndex) { + left = mid + 1; + } + else if (indices[mid] > rawIndex) { + right = mid - 1; + } + else { + return mid; + } + } + return -1; + } + + + /** + * Retreive the index of nearest value + * @param dim + * @param value + * @param [maxDistance=Infinity] + * @return If and only if multiple indices has + * the same value, they are put to the result. + */ + indicesOfNearest( + dim: DimensionIndex, value: number, maxDistance?: number + ): number[] { + const chunks = this._chunks; + const dimData = chunks[dim]; + const nearestIndices: number[] = []; + + if (!dimData) { + return nearestIndices; + } + + if (maxDistance == null) { + maxDistance = Infinity; + } + + let minDist = Infinity; + let minDiff = -1; + let nearestIndicesLen = 0; + + // Check the test case of `test/ut/spec/data/SeriesData.js`. + for (let i = 0, len = this.count(); i < len; i++) { + const dataIndex = this.getRawIndex(i); + const diff = value - (dimData[dataIndex] as number); + const dist = Math.abs(diff); + if (dist <= maxDistance) { + // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`, + // we'd better not push both of them to `nearestIndices`, otherwise it is easy to + // get more than one item in `nearestIndices` (more specifically, in `tooltip`). + // So we chose the one that `diff >= 0` in this csae. + // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them + // should be push to `nearestIndices`. + if (dist < minDist + || (dist === minDist && diff >= 0 && minDiff < 0) + ) { + minDist = dist; + minDiff = diff; + nearestIndicesLen = 0; + } + if (diff === minDiff) { + nearestIndices[nearestIndicesLen++] = i; + } + } + } + nearestIndices.length = nearestIndicesLen; + + return nearestIndices; + } + + getIndices(): ArrayLike { + let newIndices; + + const indices = this._indices; + if (indices) { + const Ctor = indices.constructor as DataArrayLikeConstructor; + const thisCount = this._count; + // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`. + if (Ctor === Array) { + newIndices = new Ctor(thisCount); + for (let i = 0; i < thisCount; i++) { + newIndices[i] = indices[i]; + } + } + else { + newIndices = new (Ctor as DataTypedArrayConstructor)( + (indices as DataTypedArray).buffer, 0, thisCount + ); + } + } + else { + const Ctor = getIndicesCtor(this._rawCount); + newIndices = new Ctor(this.count()); + for (let i = 0; i < newIndices.length; i++) { + newIndices[i] = i; + } + } + + return newIndices; + } + + /** + * Data filter + */ + filterSelf( + dims: DimensionIndex[], + cb: FilterCb + ) { + if (!this._count) { + return; + } + + const count = this.count(); + const Ctor = getIndicesCtor(this._rawCount); + const newIndices = new Ctor(count); + const value = []; + const dimSize = dims.length; + + let offset = 0; + const dim0 = dims[0]; + const chunks = this._chunks; + + for (let i = 0; i < count; i++) { + let keep; + const rawIdx = this.getRawIndex(i); + // Simple optimization + if (dimSize === 0) { + keep = (cb as FilterCb0)(i); + } + else if (dimSize === 1) { + const val = chunks[dim0][rawIdx]; + keep = (cb as FilterCb1)(val, i); + } + else { + let k = 0; + for (; k < dimSize; k++) { + value[k] = chunks[dims[k]][rawIdx]; + } + value[k] = i; + keep = (cb as FilterCb).apply(null, value); + } + if (keep) { + newIndices[offset++] = rawIdx; + } + } + + // Set indices after filtered. + if (offset < count) { + this._indices = newIndices; + } + this._count = offset; + // Reset data extent + this._extent = []; + + this._updateGetRawIdx(); + } + + /** + * Select data in range. (For optimization of filter) + * (Manually inline code, support 5 million data filtering in data zoom.) + */ + selectRange(range: {[dimIdx: number]: [number, number]}) { + + const len = this._count; + + if (!len) { + return; + } + + const dims = keys(range); + const dimSize = dims.length; + if (!dimSize) { + return; + } + + const originalCount = this.count(); + const Ctor = getIndicesCtor(this._rawCount); + const newIndices = new Ctor(originalCount); + + let offset = 0; + const dim0 = dims[0]; + + const min = range[dim0][0]; + const max = range[dim0][1]; + const storeArr = this._chunks; + + let quickFinished = false; + if (!this._indices) { + // Extreme optimization for common case. About 2x faster in chrome. + let idx = 0; + if (dimSize === 1) { + const dimStorage = storeArr[dims[0]]; + for (let i = 0; i < len; i++) { + const val = dimStorage[i]; + // NaN will not be filtered. Consider the case, in line chart, empty + // value indicates the line should be broken. But for the case like + // scatter plot, a data item with empty value will not be rendered, + // but the axis extent may be effected if some other dim of the data + // item has value. Fortunately it is not a significant negative effect. + if ( + (val >= min && val <= max) || isNaN(val as any) + ) { + newIndices[offset++] = idx; + } + idx++; + } + quickFinished = true; + } + else if (dimSize === 2) { + const dimStorage = storeArr[dims[0]]; + const dimStorage2 = storeArr[dims[1]]; + const min2 = range[dims[1]][0]; + const max2 = range[dims[1]][1]; + for (let i = 0; i < len; i++) { + const val = dimStorage[i]; + const val2 = dimStorage2[i]; + // Do not filter NaN, see comment above. + if (( + (val >= min && val <= max) || isNaN(val as any) + ) + && ( + (val2 >= min2 && val2 <= max2) || isNaN(val2 as any) + ) + ) { + newIndices[offset++] = idx; + } + idx++; + } + quickFinished = true; + } + } + if (!quickFinished) { + if (dimSize === 1) { + for (let i = 0; i < originalCount; i++) { + const rawIndex = this.getRawIndex(i); + const val = storeArr[dims[0]][rawIndex]; + // Do not filter NaN, see comment above. + if ( + (val >= min && val <= max) || isNaN(val as any) + ) { + newIndices[offset++] = rawIndex; + } + } + } + else { + for (let i = 0; i < originalCount; i++) { + let keep = true; + const rawIndex = this.getRawIndex(i); + for (let k = 0; k < dimSize; k++) { + const dimk = dims[k]; + const val = storeArr[dimk][rawIndex]; + // Do not filter NaN, see comment above. + if (val < range[dimk][0] || val > range[dimk][1]) { + keep = false; + } + } + if (keep) { + newIndices[offset++] = this.getRawIndex(i); + } + } + } + } + + // Set indices after filtered. + if (offset < originalCount) { + this._indices = newIndices; + } + this._count = offset; + // Reset data extent + this._extent = []; + + this._updateGetRawIdx(); + } + + /** + * Data mapping to a plain array + */ + /* eslint-enable */ + mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { + const result: any[] = []; + this.each(dims, function () { + result.push(cb && (cb as MapArrayCb).apply(null, arguments)); + }); + return result; + } + + /** + * Data mapping to a new List with given dimensions + */ + map(dims: DimensionIndex[], cb: MapCb): DataStorage { + // TODO only clone picked chunks. + const target = this.clone(dims); + const targetChunks = target._chunks; + + // Following properties are all immutable. + // So we can reference to the same value + target._indices = this._indices; + target.getRawIndex = this.getRawIndex; + + const tmpRetValue = []; + const dimSize = dims.length; + const dataCount = this.count(); + const values = []; + const rawExtent = target._rawExtent; + + for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { + const rawIndex = this.getRawIndex(dataIndex); + + for (let k = 0; k < dimSize; k++) { + values[k] = targetChunks[dims[k]][rawIndex]; + } + values[dimSize] = dataIndex; + + let retValue = cb && cb.apply(null, values); + if (retValue != null) { + // a number or string (in oridinal dimension)? + if (typeof retValue !== 'object') { + tmpRetValue[0] = retValue; + retValue = tmpRetValue; + } + + for (let i = 0; i < retValue.length; i++) { + const dim = dims[i]; + const val = retValue[i]; + const rawExtentOnDim = rawExtent[dim]; + + const dimStore = targetChunks[dim]; + if (dimStore) { + (dimStore as ParsedValue[])[rawIndex] = val; + } + + if (val < rawExtentOnDim[0]) { + rawExtentOnDim[0] = val as number; + } + if (val > rawExtentOnDim[1]) { + rawExtentOnDim[1] = val as number; + } + } + } + } + + return target; + } + + /** + * Large data down sampling using largest-triangle-three-buckets + * @param {string} valueDimension + * @param {number} targetCount + */ + lttbDownSample( + valueDimension: DimensionIndex, + rate: number + ) { + const target = this.clone([valueDimension]); + const targetStorage = target._chunks; + const dimStore = targetStorage[valueDimension]; + const len = this.count(); + const newIndices = new (getIndicesCtor(this._rawCount))(len); + + let sampledIndex = 0; + + const frameSize = Math.floor(1 / rate); + + let currentRawIndex = this.getRawIndex(0); + let maxArea; + let area; + let nextRawIndex; + + // First frame use the first data. + newIndices[sampledIndex++] = currentRawIndex; + for (let i = 1; i < len - 1; i += frameSize) { + const nextFrameStart = Math.min(i + frameSize, len - 1); + const nextFrameEnd = Math.min(i + frameSize * 2, len); + + const avgX = (nextFrameEnd + nextFrameStart) / 2; + let avgY = 0; + + for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) { + const rawIndex = this.getRawIndex(idx); + const y = dimStore[rawIndex] as number; + if (isNaN(y)) { + continue; + } + avgY += y as number; + } + avgY /= (nextFrameEnd - nextFrameStart); + + const frameStart = i; + const frameEnd = Math.min(i + frameSize, len); + + const pointAX = i - 1; + const pointAY = dimStore[currentRawIndex] as number; + + maxArea = -1; + + nextRawIndex = frameStart; + // Find a point from current frame that construct a triangel with largest area with previous selected point + // And the average of next frame. + for (let idx = frameStart; idx < frameEnd; idx++) { + const rawIndex = this.getRawIndex(idx); + const y = dimStore[rawIndex] as number; + if (isNaN(y)) { + continue; + } + // Calculate triangle area over three buckets + area = Math.abs((pointAX - avgX) * (y - pointAY) + - (pointAX - idx) * (avgY - pointAY) + ); + if (area > maxArea) { + maxArea = area; + nextRawIndex = rawIndex; // Next a is this b + } + } + + newIndices[sampledIndex++] = nextRawIndex; + + currentRawIndex = nextRawIndex; // This a is the next a (chosen b) + } + + // First frame use the last data. + newIndices[sampledIndex++] = this.getRawIndex(len - 1); + target._count = sampledIndex; + target._indices = newIndices; + + target.getRawIndex = this._getRawIdx; + return target; + } + + + /** + * Large data down sampling on given dimension + * @param sampleIndex Sample index for name and id + */ + downSample( + dimension: DimensionIndex, + rate: number, + sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, + sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number + ): DataStorage { + const target = this.clone([dimension]); + const targetStorage = target._chunks; + + const frameValues = []; + let frameSize = Math.floor(1 / rate); + + const dimStore = targetStorage[dimension]; + const len = this.count(); + const rawExtentOnDim = target._rawExtent[dimension]; + + const newIndices = new (getIndicesCtor(this._rawCount))(len); + + let offset = 0; + for (let i = 0; i < len; i += frameSize) { + // Last frame + if (frameSize > len - i) { + frameSize = len - i; + frameValues.length = frameSize; + } + for (let k = 0; k < frameSize; k++) { + const dataIdx = this.getRawIndex(i + k); + frameValues[k] = dimStore[dataIdx]; + } + const value = sampleValue(frameValues); + const sampleFrameIdx = this.getRawIndex( + Math.min(i + sampleIndex(frameValues, value) || 0, len - 1) + ); + // Only write value on the filtered data + (dimStore as number[])[sampleFrameIdx] = value; + + if (value < rawExtentOnDim[0]) { + rawExtentOnDim[0] = value; + } + if (value > rawExtentOnDim[1]) { + rawExtentOnDim[1] = value; + } + + newIndices[offset++] = sampleFrameIdx; + } + + target._count = offset; + + this._updateGetRawIdx(); + + return target; + } + + /** + * Data iteration + * @param ctx default this + * @example + * list.each('x', function (x, idx) {}); + * list.each(['x', 'y'], function (x, y, idx) {}); + * list.each(function (idx) {}) + */ + each(dims: DimensionIndex[], cb: EachCb): void { + if (!this._count) { + return; + } + const dimSize = dims.length; + const chunks = this._chunks; + + for (let i = 0, len = this.count(); i < len; i++) { + const rawIdx = this.getRawIndex(i); + // Simple optimization + switch (dimSize) { + case 0: + (cb as EachCb0)(i); + break; + case 1: + (cb as EachCb1)(chunks[dims[0]][rawIdx], i); + break; + case 2: + (cb as EachCb2)( + chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i + ); + break; + default: + let k = 0; + const value = []; + for (; k < dimSize; k++) { + value[k] = chunks[dims[k]][rawIdx]; + } + // Index + value[k] = i; + (cb as EachCb).apply(null, value); + } + } + } + + /** + * Get extent of data in one dimension + */ + getDataExtent(dim: DimensionIndex): [number, number] { + // Make sure use concrete dim as cache name. + const dimData = this._chunks[dim]; + const initialExtent = getInitialExtent(); + + if (!dimData) { + return initialExtent; + } + + // Make more strict checkings to ensure hitting cache. + const currEnd = this.count(); + + // Consider the most cases when using data zoom, `getDataExtent` + // happened before filtering. We cache raw extent, which is not + // necessary to be cleared and recalculated when restore data. + const useRaw = !this._indices; + let dimExtent: [number, number]; + + if (useRaw) { + return this._rawExtent[dim].slice() as [number, number]; + } + dimExtent = this._extent[dim]; + if (dimExtent) { + return dimExtent.slice() as [number, number]; + } + dimExtent = initialExtent; + + let min = dimExtent[0]; + let max = dimExtent[1]; + + for (let i = 0; i < currEnd; i++) { + const rawIdx = this.getRawIndex(i); + const value = dimData[rawIdx] as ParsedValueNumeric; + value < min && (min = value); + value > max && (max = value); + } + + dimExtent = [min, max]; + + this._extent[dim] = dimExtent; + + return dimExtent; + } + + /** + * Get raw data index. + * Do not initialize. + * Default `getRawIndex`. And it can be changed. + */ + getRawIndex: (idx: number) => number; + + /** + * Get raw data item + */ + getRawDataItem(idx: number): OptionDataItem { + const rawIdx = this.getRawIndex(idx); + if (!this._provider.persistent) { + const val = []; + const chunks = this._chunks; + for (let i = 0; i < chunks.length; i++) { + val.push(chunks[i][rawIdx]); + } + return val; + } + else { + return this._provider.getItem(this.getRawIndex(idx)); + } + } + + /** + * + * @param clonedDims Determine which dims to clone. Will share the data if not specified. + */ + clone(clonedDims?: number[]): DataStorage { + const target = new DataStorage(); + const chunks = this._chunks; + const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { + obj[dimIdx] = true; + return obj; + }, {} as Record); + + if (clonedDimsMap) { + for (let i = 0; i < chunks.length; i++) { + // Not clone if dim is not picked. + target._chunks[i] = (clonedDimsMap && !clonedDimsMap[i]) + ? chunks[i] : cloneChunk(chunks[i]); + } + } + else { + target._chunks = chunks; + } + this._copyCommonProps(target); + return target; + } + + /** + * Get category data. + */ + getCategory(dimIdx: number, idx: number) { + const rawIdx = this.getRawIndex(idx); + const chunk = this._chunks[dimIdx]; + + let val; + if (chunk) { + const dimInfo = this._dimensions[dimIdx]; + const ordinalMeta = dimInfo.ordinalMeta; + val = chunk[rawIdx]; + if (ordinalMeta) { + val = ordinalMeta.categories[val as OrdinalNumber]; + } + } + return val; + } + + private _copyCommonProps(target: DataStorage) { + target._count = this._count; + target._rawCount = this._rawCount; + target._extent = clone(this._extent); + target._rawExtent = clone(this._rawExtent); + target._indices = this._cloneIndices(); + target._provider = this._provider; + target.getDimensionIndex = this.getDimensionIndex; + target._updateGetRawIdx(); + } + + private _cloneIndices() { + if (this._indices) { + const Ctor = this._indices.constructor as DataArrayLikeConstructor; + let indices; + if (Ctor === Array) { + const thisCount = this._indices.length; + indices = new Ctor(thisCount); + for (let i = 0; i < thisCount; i++) { + indices[i] = this._indices[i]; + } + } + else { + indices = new (Ctor as DataTypedArrayConstructor)(this._indices); + } + return indices; + } + return null; + } + + private _getRawIdxIdentity(idx: number) { + return idx; + } + private _getRawIdx(idx: number) { + if (idx < this._count && idx >= 0) { + return this._indices[idx]; + } + return -1; + } + + private _updateGetRawIdx() { + this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity; + } + + private static internalField = (function () { + + function getDimValueSimply( + this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + ): ParsedValue { + return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]); + } + + defaultDimValueGetters = { + + arrayRows: getDimValueSimply, + + objectRows( + this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + ): ParsedValue { + return parseDataValue(dataItem[dimIndex], this._dimensions[dataIndex]); + }, + + keyedColumns: getDimValueSimply, + + original( + this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + ): ParsedValue { + // Performance sensitive, do not use modelUtil.getDataItemValue. + // If dataItem is an plain object with no value field, the let `value` + // will be assigned with the object, but it will be tread correctly + // in the `convertValue`. + const value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); + + return parseDataValue( + (value instanceof Array) + ? value[dimIndex] + // If value is a single number or something else not array. + : value, + this._dimensions[dimIndex] + ); + }, + + typedArray: function ( + this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + ): ParsedValue { + return dataItem[dimIndex]; + } + + }; + + })(); +} + +export default DataStorage; \ No newline at end of file diff --git a/src/data/Graph.ts b/src/data/Graph.ts index 75ec38f654..0ab5f210c9 100644 --- a/src/data/Graph.ts +++ b/src/data/Graph.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; import { Dictionary } from 'zrender/src/core/types'; -import List from './List'; +import SeriesData from './SeriesData'; import Model from '../model/Model'; import Element from 'zrender/src/Element'; import { DimensionLoose, ParsedValue } from '../util/types'; @@ -36,9 +36,9 @@ class Graph { readonly edges: GraphEdge[] = []; - data: List; + data: SeriesData; - edgeData: List; + edgeData: SeriesData; /** * Whether directed graph. diff --git a/src/data/List.ts b/src/data/List.ts deleted file mode 100644 index 0ad2792fa4..0000000000 --- a/src/data/List.ts +++ /dev/null @@ -1,2278 +0,0 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -*/ - -/* global Float64Array, Int32Array, Uint32Array, Uint16Array */ - -/** - * List for data storage - */ - -import * as zrUtil from 'zrender/src/core/util'; -import {PathStyleProps} from 'zrender/src/graphic/Path'; -import Model from '../model/Model'; -import DataDiffer from './DataDiffer'; -import {DefaultDataProvider, DataProvider} from './helper/dataProvider'; -import {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper'; -import DataDimensionInfo from './DataDimensionInfo'; -import {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types'; -import Element from 'zrender/src/Element'; -import { - DimensionIndex, DimensionName, DimensionLoose, OptionDataItem, - ParsedValue, ParsedValueNumeric, OrdinalNumber, DimensionUserOuput, - ModelOption, SeriesDataType, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, - DecalObject -} from '../util/types'; -import {isDataItemOption, convertOptionIdName} from '../util/model'; -import { getECData } from '../util/innerStore'; -import type Graph from './Graph'; -import type Tree from './Tree'; -import type { VisualMeta } from '../component/visualMap/VisualMapModel'; -import { parseDataValue } from './helper/dataValueHelper'; -import {isSourceInstance, Source} from './Source'; -import OrdinalMeta from './OrdinalMeta'; -import { LineStyleProps } from '../model/mixin/lineStyle'; - -const mathFloor = Math.floor; -const isObject = zrUtil.isObject; -const map = zrUtil.map; - -const UNDEFINED = 'undefined'; -const INDEX_NOT_FOUND = -1; - -// Use prefix to avoid index to be the same as otherIdList[idx], -// which will cause weird udpate animation. -const ID_PREFIX = 'e\0\0'; - -const dataCtors = { - 'float': typeof Float64Array === UNDEFINED - ? Array : Float64Array, - 'int': typeof Int32Array === UNDEFINED - ? Array : Int32Array, - // Ordinal data type can be string or int - 'ordinal': Array, - 'number': Array, - 'time': Array -}; - -export type ListDimensionType = keyof typeof dataCtors; - -// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is -// different from the Ctor of typed array. -const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; -const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; -const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; - -type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; -type DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array; -type DataArrayLikeConstructor = typeof Array | DataTypedArrayConstructor; - - -type DimValueGetter = ( - this: List, - dataItem: any, - dimName: DimensionName, - dataIndex: number, - dimIndex: DimensionIndex -) => ParsedValue; - -type DataValueChunk = ArrayLike; -type DataStorage = {[dimName: string]: DataValueChunk}; -type NameRepeatCount = {[name: string]: number}; - - -type ItrParamDims = DimensionLoose | Array; -// If Ctx not specified, use List as Ctx -type CtxOrList = unknown extends Ctx ? List : Ctx; -type EachCb0 = (this: CtxOrList, idx: number) => void; -type EachCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => void; -type EachCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => void; -type EachCb = (this: CtxOrList, ...args: any) => void; -type FilterCb0 = (this: CtxOrList, idx: number) => boolean; -type FilterCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => boolean; -type FilterCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => boolean; -type FilterCb = (this: CtxOrList, ...args: any) => boolean; -type MapArrayCb0 = (this: CtxOrList, idx: number) => any; -type MapArrayCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => any; -type MapArrayCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => any; -type MapArrayCb = (this: CtxOrList, ...args: any) => any; -type MapCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => ParsedValue | ParsedValue[]; -type MapCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => - ParsedValue | ParsedValue[]; -type MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedValue[]; - - -const TRANSFERABLE_PROPERTIES = [ - 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', - '_rawData', '_dimValueGetter', - '_count', '_rawCount', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount' -]; -const CLONE_PROPERTIES = [ - '_extent', '_approximateExtent', '_rawExtent' -]; - -export interface DefaultDataVisual { - style: PathStyleProps - // Draw type determined which prop should be set with encoded color. - // It's only available on the global visual. Use getVisual('drawType') to access it. - // It will be set in visual/style.ts module in the first priority. - drawType: 'fill' | 'stroke' - - symbol?: string - symbolSize?: number | number[] - symbolRotate?: number - symbolKeepAspect?: boolean - symbolOffset?: string | number | (string | number)[] - - liftZ?: number - // For legend. - legendIcon?: string - legendLineStyle?: LineStyleProps - - // visualMap will inject visualMeta data - visualMeta?: VisualMeta[] - - // If color is encoded from palette - colorFromPalette?: boolean - - decal?: DecalObject -} - -export interface DataCalculationInfo { - stackedDimension: string; - stackedByDimension: string; - isStackedByIndex: boolean; - stackedOverDimension: string; - stackResultDimension: string; - stackedOnSeries?: SERIES_MODEL; -} - -// ----------------------------- -// Internal method declarations: -// ----------------------------- -let defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter}; -let prepareInvertedIndex: (list: List) => void; -let getIndicesCtor: (list: List) => DataArrayLikeConstructor; -let prepareStorage: ( - storage: DataStorage, dimInfo: DataDimensionInfo, end: number, append?: boolean -) => void; -let getRawIndexWithoutIndices: (this: List, idx: number) => number; -let getRawIndexWithIndices: (this: List, idx: number) => number; -let getId: (list: List, rawIndex: number) => string; -let getIdNameFromStore: (list: List, dimIdx: number, ordinalMeta: OrdinalMeta, rawIndex: number) => string; -let makeIdFromName: (list: List, idx: number) => void; -let normalizeDimensions: (dimensions: ItrParamDims) => Array; -let validateDimensions: (list: List, dims: DimensionName[]) => void; -let cloneListForMapAndSample: (original: List, excludeDimensions: DimensionName[]) => List; -let getInitialExtent: () => [number, number]; -let setItemDataAndSeriesIndex: (this: Element, child: Element) => void; -let transferProperties: (target: List, source: List) => void; - - -class List< - HostModel extends Model = Model, - Visual extends DefaultDataVisual = DefaultDataVisual -> { - - readonly type = 'list'; - - readonly dimensions: string[]; - - // Infomation of each data dimension, like data type. - private _dimensionInfos: {[dimName: string]: DataDimensionInfo}; - - readonly hostModel: HostModel; - - /** - * @readonly - */ - dataType: SeriesDataType; - - /** - * @readonly - * Host graph if List is used to store graph nodes / edges. - */ - graph?: Graph; - - /** - * @readonly - * Host tree if List is used to store tree ndoes. - */ - tree?: Tree; - - // Indices stores the indices of data subset after filtered. - // This data subset will be used in chart. - private _indices: ArrayLike; - - private _count: number = 0; - private _rawCount: number = 0; - private _storage: DataStorage = {}; - // We have an extra array store here. It's faster to be acessed than KV structured `_storage`. - // We profile the code `storage[dim]` and it seems to be KeyedLoadIC_Megamorphic instead of fast property access. - // Not sure why this happens. But using an extra array seems leads to faster `initData` - // See https://github.com/apache/incubator-echarts/pull/13314 for more explanation. - private _storageArr: DataValueChunk[] = []; - private _nameList: string[] = []; - private _idList: string[] = []; - - // Models of data option is stored sparse for optimizing memory cost - // Never used yet (not used yet). - // private _optionModels: Model[] = []; - - // Global visual properties after visual coding - private _visual: Dictionary = {}; - - // Globel layout properties. - private _layout: Dictionary = {}; - - // Item visual properties after visual coding - private _itemVisuals: Dictionary[] = []; - - // Item layout properties after layout - private _itemLayouts: any[] = []; - - // Graphic elemnents - private _graphicEls: Element[] = []; - - private _rawData: DataProvider; - - // Raw extent will not be cloned, but only transfered. - // It will not be calculated util needed. - private _rawExtent: {[dimName: string]: [number, number]} = {}; - - private _extent: {[dimName: string]: [number, number]} = {}; - - // key: dim, value: extent - private _approximateExtent: {[dimName: string]: [number, number]} = {}; - - private _dimensionsSummary: DimensionSummary; - - private _invertedIndicesMap: {[dimName: string]: ArrayLike}; - - private _calculationInfo: DataCalculationInfo = {} as DataCalculationInfo; - - // User output info of this data. - // DO NOT use it in other places! - // When preparing user params for user callbacks, we have - // to clone these inner data structures to prevent users - // from modifying them to effect built-in logic. And for - // performance consideration we make this `userOutput` to - // avoid clone them too many times. - readonly userOutput: DimensionUserOuput; - - // Having detected that there is data item is non primitive type - // (in type `OptionDataItemObject`). - // Like `data: [ { value: xx, itemStyle: {...} }, ...]` - // At present it only happen in `SOURCE_FORMAT_ORIGINAL`. - hasItemOption: boolean = true; - - // @readonly - defaultDimValueGetter: DimValueGetter; - private _dimValueGetter: DimValueGetter; - private _dimValueGetterArrayRows: DimValueGetter; - - // id or name is used on dynamic data, mapping old and new items. - // When generating id from name, avoid repeat. - private _nameRepeatCount: NameRepeatCount; - private _nameDimIdx: number; - private _nameOrdinalMeta: OrdinalMeta; - private _idDimIdx: number; - private _idOrdinalMeta: OrdinalMeta; - private _dontMakeIdFromName: boolean; - - private __wrappedMethods: string[]; - - // Methods that create a new list based on this list should be listed here. - // Notice that those method should `RETURN` the new list. - TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map'] as const; - // Methods that change indices of this list should be listed here. - CHANGABLE_METHODS = ['filterSelf', 'selectRange'] as const; - DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'] as const; - - /** - * @param dimensions - * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. - * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius - */ - constructor(dimensions: Array, hostModel: HostModel) { - dimensions = dimensions || ['x', 'y']; - - const dimensionInfos: Dictionary = {}; - const dimensionNames = []; - const invertedIndicesMap: Dictionary = {}; - - for (let i = 0; i < dimensions.length; i++) { - // Use the original dimensions[i], where other flag props may exists. - const dimInfoInput = dimensions[i]; - - const dimensionInfo: DataDimensionInfo = - zrUtil.isString(dimInfoInput) - ? new DataDimensionInfo({name: dimInfoInput}) - : !(dimInfoInput instanceof DataDimensionInfo) - ? new DataDimensionInfo(dimInfoInput) - : dimInfoInput; - - const dimensionName = dimensionInfo.name; - dimensionInfo.type = dimensionInfo.type || 'float'; - if (!dimensionInfo.coordDim) { - dimensionInfo.coordDim = dimensionName; - dimensionInfo.coordDimIndex = 0; - } - - const otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {}; - dimensionNames.push(dimensionName); - dimensionInfos[dimensionName] = dimensionInfo; - - dimensionInfo.index = i; - - if (dimensionInfo.createInvertedIndices) { - invertedIndicesMap[dimensionName] = []; - } - if (otherDims.itemName === 0) { - this._nameDimIdx = i; - this._nameOrdinalMeta = dimensionInfo.ordinalMeta; - } - if (otherDims.itemId === 0) { - this._idDimIdx = i; - this._idOrdinalMeta = dimensionInfo.ordinalMeta; - } - } - - this.dimensions = dimensionNames; - this._dimensionInfos = dimensionInfos; - this.hostModel = hostModel; - - // Cache summary info for fast visit. See "dimensionHelper". - this._dimensionsSummary = summarizeDimensions(this); - - this._invertedIndicesMap = invertedIndicesMap; - - this.userOutput = this._dimensionsSummary.userOutput; - } - - /** - * The meanings of the input parameter `dim`: - * - * + If dim is a number (e.g., `1`), it means the index of the dimension. - * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'. - * + If dim is a number-like string (e.g., `"1"`): - * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name. - * + If not, it will be converted to a number, which means the index of the dimension. - * (why? because of the backward compatbility. We have been tolerating number-like string in - * dimension setting, although now it seems that it is not a good idea.) - * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`, - * if no dimension name is defined as `"1"`. - * + If dim is a not-number-like string, it means the concrete dim name. - * For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`, - * or customized in `dimensions` property of option like `"age"`. - * - * Get dimension name - * @param dim See above. - * @return Concrete dim name. - */ - getDimension(dim: DimensionLoose): DimensionName { - if (typeof dim === 'number' - // If being a number-like string but not being defined a dimension name. - || (!isNaN(dim as any) && !this._dimensionInfos.hasOwnProperty(dim)) - ) { - dim = this.dimensions[dim as DimensionIndex]; - } - return dim as DimensionName; - } - - /** - * Get type and calculation info of particular dimension - * @param dim - * Dimension can be concrete names like x, y, z, lng, lat, angle, radius - * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' - */ - getDimensionInfo(dim: DimensionLoose): DataDimensionInfo { - // Do not clone, because there may be categories in dimInfo. - return this._dimensionInfos[this.getDimension(dim)]; - } - - /** - * concrete dimension name list on coord. - */ - getDimensionsOnCoord(): DimensionName[] { - return this._dimensionsSummary.dataDimsOnCoord.slice(); - } - - /** - * @param coordDim - * @param idx A coordDim may map to more than one data dim. - * If not specified, return the first dim not extra. - * @return concrete data dim. If not found, return null/undefined - */ - mapDimension(coordDim: DimensionName): DimensionName; - mapDimension(coordDim: DimensionName, idx: number): DimensionName; - mapDimension(coordDim: DimensionName, idx?: number): DimensionName { - const dimensionsSummary = this._dimensionsSummary; - - if (idx == null) { - return dimensionsSummary.encodeFirstDimNotExtra[coordDim] as any; - } - - const dims = dimensionsSummary.encode[coordDim]; - return dims ? dims[idx as number] as any : null; - } - - mapDimensionsAll(coordDim: DimensionName): DimensionName[] { - const dimensionsSummary = this._dimensionsSummary; - const dims = dimensionsSummary.encode[coordDim]; - return (dims || []).slice(); - } - - /** - * Initialize from data - * @param data source or data or data provider. - * @param nameList The name of a datum is used on data diff and - * default label/tooltip. - * A name can be specified in encode.itemName, - * or dataItem.name (only for series option data), - * or provided in nameList from outside. - */ - initData( - data: Source | OptionSourceData | DataProvider, - nameList?: string[], - dimValueGetter?: DimValueGetter - ): void { - - const notProvider = isSourceInstance(data) || zrUtil.isArrayLike(data); - const provider: DataProvider = notProvider - ? new DefaultDataProvider(data as Source | OptionSourceData, this.dimensions.length) - : data as DataProvider; - - if (__DEV__) { - zrUtil.assert( - notProvider || ( - zrUtil.isFunction(provider.getItem) - && zrUtil.isFunction(provider.count) - ), - 'Inavlid data provider.' - ); - } - - this._rawData = provider; - const sourceFormat = provider.getSource().sourceFormat; - - // Clear - this._storage = {}; - this._indices = null; - this._dontMakeIdFromName = - this._idDimIdx != null - || sourceFormat === SOURCE_FORMAT_TYPED_ARRAY // Cosndier performance. - || !!provider.fillStorage; - - this._nameList = (nameList || []).slice(); - this._idList = []; - - this._nameRepeatCount = {}; - - if (!dimValueGetter) { - this.hasItemOption = false; - } - - this.defaultDimValueGetter = defaultDimValueGetters[sourceFormat]; - // Default dim value getter - this._dimValueGetter = dimValueGetter = dimValueGetter - || this.defaultDimValueGetter; - this._dimValueGetterArrayRows = defaultDimValueGetters.arrayRows; - - // Reset raw extent. - this._rawExtent = {}; - - this._initDataFromProvider(0, provider.count()); - - // If data has no item option. - if (provider.pure) { - this.hasItemOption = false; - } - } - - getProvider(): DataProvider { - return this._rawData; - } - - /** - * Caution: Can be only called on raw data (before `this._indices` created). - */ - appendData(data: ArrayLike): void { - if (__DEV__) { - zrUtil.assert(!this._indices, 'appendData can only be called on raw data.'); - } - - const rawData = this._rawData; - const start = this.count(); - rawData.appendData(data); - let end = rawData.count(); - if (!rawData.persistent) { - end += start; - } - this._initDataFromProvider(start, end, true); - } - - /** - * Caution: Can be only called on raw data (before `this._indices` created). - * This method does not modify `rawData` (`dataProvider`), but only - * add values to storage. - * - * The final count will be increased by `Math.max(values.length, names.length)`. - * - * @param values That is the SourceType: 'arrayRows', like - * [ - * [12, 33, 44], - * [NaN, 43, 1], - * ['-', 'asdf', 0] - * ] - * Each item is exaclty cooresponding to a dimension. - */ - appendValues(values: any[][], names?: string[]): void { - const storage = this._storage; - const dimensions = this.dimensions; - const dimLen = dimensions.length; - const rawExtent = this._rawExtent; - - const start = this.count(); - const end = start + Math.max(values.length, names ? names.length : 0); - - for (let i = 0; i < dimLen; i++) { - const dim = dimensions[i]; - if (!rawExtent[dim]) { - rawExtent[dim] = getInitialExtent(); - } - prepareStorage(storage, this._dimensionInfos[dim], end, true); - } - - const rawExtentArr = map(dimensions, (dim) => { - return rawExtent[dim]; - }); - - const storageArr = this._storageArr = map(dimensions, (dim) => { - return storage[dim]; - }); - - const emptyDataItem: number[] = []; - for (let idx = start; idx < end; idx++) { - const sourceIdx = idx - start; - // Store the data by dimensions - for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) { - const dim = dimensions[dimIdx]; - const val = this._dimValueGetterArrayRows( - values[sourceIdx] || emptyDataItem, dim, sourceIdx, dimIdx - ) as ParsedValueNumeric; - storageArr[dimIdx][idx] = val; - - const dimRawExtent = rawExtentArr[dimIdx]; - val < dimRawExtent[0] && (dimRawExtent[0] = val); - val > dimRawExtent[1] && (dimRawExtent[1] = val); - } - - if (names) { - this._nameList[idx] = names[sourceIdx]; - if (!this._dontMakeIdFromName) { - makeIdFromName(this, idx); - } - } - } - - this._rawCount = this._count = end; - - // Reset data extent - this._extent = {}; - - prepareInvertedIndex(this); - } - - private _initDataFromProvider(start: number, end: number, append?: boolean): void { - if (start >= end) { - return; - } - - const rawData = this._rawData; - const storage = this._storage; - const dimensions = this.dimensions; - const dimLen = dimensions.length; - const dimensionInfoMap = this._dimensionInfos; - const nameList = this._nameList; - const idList = this._idList; - const rawExtent = this._rawExtent; - const sourceFormat = rawData.getSource().sourceFormat; - const isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL; - - for (let i = 0; i < dimLen; i++) { - const dim = dimensions[i]; - if (!rawExtent[dim]) { - rawExtent[dim] = getInitialExtent(); - } - prepareStorage(storage, dimensionInfoMap[dim], end, append); - } - - const storageArr = this._storageArr = map(dimensions, (dim) => { - return storage[dim]; - }); - - const rawExtentArr = map(dimensions, (dim) => { - return rawExtent[dim]; - }); - - if (rawData.fillStorage) { - rawData.fillStorage(start, end, storageArr, rawExtentArr); - } - else { - let dataItem = [] as OptionDataItem; - for (let idx = start; idx < end; idx++) { - // NOTICE: Try not to write things into dataItem - dataItem = rawData.getItem(idx, dataItem); - // Each data item is value - // [1, 2] - // 2 - // Bar chart, line chart which uses category axis - // only gives the 'y' value. 'x' value is the indices of category - // Use a tempValue to normalize the value to be a (x, y) value - - // Store the data by dimensions - for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) { - const dim = dimensions[dimIdx]; - const dimStorage = storageArr[dimIdx]; - // PENDING NULL is empty or zero - const val = this._dimValueGetter(dataItem, dim, idx, dimIdx) as ParsedValueNumeric; - dimStorage[idx] = val; - - const dimRawExtent = rawExtentArr[dimIdx]; - val < dimRawExtent[0] && (dimRawExtent[0] = val); - val > dimRawExtent[1] && (dimRawExtent[1] = val); - } - - // If dataItem is {name: ...} or {id: ...}, it has highest priority. - // This kind of ids and names are always stored `_nameList` and `_idList`. - if (isFormatOriginal && !rawData.pure && dataItem) { - const itemName = (dataItem as any).name; - if (nameList[idx] == null && itemName != null) { - nameList[idx] = convertOptionIdName(itemName, null); - } - const itemId = (dataItem as any).id; - if (idList[idx] == null && itemId != null) { - idList[idx] = convertOptionIdName(itemId, null); - } - } - - if (!this._dontMakeIdFromName) { - makeIdFromName(this, idx); - } - } - } - - if (!rawData.persistent && rawData.clean) { - // Clean unused data if data source is typed array. - rawData.clean(); - } - - this._rawCount = this._count = end; - - // Reset data extent - this._extent = {}; - - prepareInvertedIndex(this); - } - - count(): number { - return this._count; - } - - getIndices(): ArrayLike { - let newIndices; - - const indices = this._indices; - if (indices) { - const Ctor = indices.constructor as DataArrayLikeConstructor; - const thisCount = this._count; - // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`. - if (Ctor === Array) { - newIndices = new Ctor(thisCount); - for (let i = 0; i < thisCount; i++) { - newIndices[i] = indices[i]; - } - } - else { - newIndices = new (Ctor as DataTypedArrayConstructor)( - (indices as DataTypedArray).buffer, 0, thisCount - ); - } - } - else { - const Ctor = getIndicesCtor(this); - newIndices = new Ctor(this.count()); - for (let i = 0; i < newIndices.length; i++) { - newIndices[i] = i; - } - } - - return newIndices; - } - - // Get data by index of dimension. - // Because in v8 access array by number variable is faster than access object by string variable - // Not sure why but the optimization just works. - getByDimIdx(dimIdx: number, idx: number): ParsedValue { - if (!(idx >= 0 && idx < this._count)) { - return NaN; - } - const dimStore = this._storageArr[dimIdx]; - return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; - } - - /** - * Get value. Return NaN if idx is out of range. - * @param dim Dim must be concrete name. - */ - get(dim: DimensionName, idx: number): ParsedValue { - if (!(idx >= 0 && idx < this._count)) { - return NaN; - } - const dimStore = this._storage[dim]; - return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; - } - - /** - * @param dim concrete dim - */ - getByRawIndex(dim: DimensionName, rawIdx: number): ParsedValue { - if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { - return NaN; - } - const dimStore = this._storage[dim]; - return dimStore ? dimStore[rawIdx] : NaN; - } - - /** - * Get value for multi dimensions. - * @param dimensions If ignored, using all dimensions. - */ - getValues(idx: number): ParsedValue[]; - getValues(dimensions: readonly DimensionName[], idx: number): ParsedValue[]; - getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] { - const values = []; - - if (!zrUtil.isArray(dimensions)) { - // stack = idx; - idx = dimensions as number; - dimensions = this.dimensions; - } - - for (let i = 0, len = dimensions.length; i < len; i++) { - values.push(this.get(dimensions[i], idx /*, stack */)); - } - - return values; - } - - /** - * If value is NaN. Inlcuding '-' - * Only check the coord dimensions. - */ - hasValue(idx: number): boolean { - const dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord; - for (let i = 0, len = dataDimsOnCoord.length; i < len; i++) { - // Ordinal type originally can be string or number. - // But when an ordinal type is used on coord, it can - // not be string but only number. So we can also use isNaN. - if (isNaN(this.get(dataDimsOnCoord[i], idx) as any)) { - return false; - } - } - return true; - } - - /** - * Get extent of data in one dimension - */ - getDataExtent(dim: DimensionLoose): [number, number] { - // Make sure use concrete dim as cache name. - dim = this.getDimension(dim); - const dimData = this._storage[dim]; - const initialExtent = getInitialExtent(); - - // stack = !!((stack || false) && this.getCalculationInfo(dim)); - - if (!dimData) { - return initialExtent; - } - - // Make more strict checkings to ensure hitting cache. - const currEnd = this.count(); - // let cacheName = [dim, !!stack].join('_'); - // let cacheName = dim; - - // Consider the most cases when using data zoom, `getDataExtent` - // happened before filtering. We cache raw extent, which is not - // necessary to be cleared and recalculated when restore data. - const useRaw = !this._indices; // && !stack; - let dimExtent: [number, number]; - - if (useRaw) { - return this._rawExtent[dim].slice() as [number, number]; - } - dimExtent = this._extent[dim]; - if (dimExtent) { - return dimExtent.slice() as [number, number]; - } - dimExtent = initialExtent; - - let min = dimExtent[0]; - let max = dimExtent[1]; - - for (let i = 0; i < currEnd; i++) { - const rawIdx = this.getRawIndex(i); - const value = dimData[rawIdx] as ParsedValueNumeric; - value < min && (min = value); - value > max && (max = value); - } - - dimExtent = [min, max]; - - this._extent[dim] = dimExtent; - - return dimExtent; - } - - /** - * PENDING: In fact currently this function is only used to short-circuit - * the calling of `scale.unionExtentFromData` when data have been filtered by modules - * like "dataZoom". `scale.unionExtentFromData` is used to calculate data extent for series on - * an axis, but if a "axis related data filter module" is used, the extent of the axis have - * been fixed and no need to calling `scale.unionExtentFromData` actually. - * But if we add "custom data filter" in future, which is not "axis related", this method may - * be still needed. - * - * Optimize for the scenario that data is filtered by a given extent. - * Consider that if data amount is more than hundreds of thousand, - * extent calculation will cost more than 10ms and the cache will - * be erased because of the filtering. - */ - getApproximateExtent(dim: DimensionLoose): [number, number] { - dim = this.getDimension(dim); - return this._approximateExtent[dim] || this.getDataExtent(dim); - } - - /** - * Calculate extent on a filtered data might be time consuming. - * Approximate extent is only used for: calculte extent of filtered data outside. - */ - setApproximateExtent(extent: [number, number], dim: DimensionLoose): void { - dim = this.getDimension(dim); - this._approximateExtent[dim] = extent.slice() as [number, number]; - } - - getCalculationInfo>( - key: CALC_INFO_KEY - ): DataCalculationInfo[CALC_INFO_KEY] { - return this._calculationInfo[key]; - } - - /** - * @param key or k-v object - */ - setCalculationInfo( - key: DataCalculationInfo - ): void; - setCalculationInfo>( - key: CALC_INFO_KEY, - value: DataCalculationInfo[CALC_INFO_KEY] - ): void; - setCalculationInfo( - key: (keyof DataCalculationInfo) | DataCalculationInfo, - value?: DataCalculationInfo[keyof DataCalculationInfo] - ): void { - isObject(key) - ? zrUtil.extend(this._calculationInfo, key as object) - : ((this._calculationInfo as any)[key] = value); - } - - /** - * Get sum of data in one dimension - */ - getSum(dim: DimensionName): number { - const dimData = this._storage[dim]; - let sum = 0; - if (dimData) { - for (let i = 0, len = this.count(); i < len; i++) { - const value = this.get(dim, i) as number; - if (!isNaN(value)) { - sum += value; - } - } - } - return sum; - } - - /** - * Get median of data in one dimension - */ - getMedian(dim: DimensionLoose): number { - const dimDataArray: ParsedValue[] = []; - // map all data of one dimension - this.each(dim, function (val) { - if (!isNaN(val as number)) { - dimDataArray.push(val); - } - }); - - // TODO - // Use quick select? - const sortedDimDataArray = dimDataArray.sort(function (a: number, b: number) { - return a - b; - }) as number[]; - const len = this.count(); - // calculate median - return len === 0 - ? 0 - : len % 2 === 1 - ? sortedDimDataArray[(len - 1) / 2] - : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2; - } - - // /** - // * Retreive the index with given value - // * @param {string} dim Concrete dimension. - // * @param {number} value - // * @return {number} - // */ - // Currently incorrect: should return dataIndex but not rawIndex. - // Do not fix it until this method is to be used somewhere. - // FIXME Precision of float value - // indexOf(dim, value) { - // let storage = this._storage; - // let dimData = storage[dim]; - // let chunkSize = this._chunkSize; - // if (dimData) { - // for (let i = 0, len = this.count(); i < len; i++) { - // let chunkIndex = mathFloor(i / chunkSize); - // let chunkOffset = i % chunkSize; - // if (dimData[chunkIndex][chunkOffset] === value) { - // return i; - // } - // } - // } - // return -1; - // } - - /** - * Only support the dimension which inverted index created. - * Do not support other cases until required. - * @param dim concrete dim - * @param value ordinal index - * @return rawIndex - */ - rawIndexOf(dim: DimensionName, value: OrdinalNumber): number { - const invertedIndices = dim && this._invertedIndicesMap[dim]; - if (__DEV__) { - if (!invertedIndices) { - throw new Error('Do not supported yet'); - } - } - const rawIndex = invertedIndices[value]; - if (rawIndex == null || isNaN(rawIndex)) { - return INDEX_NOT_FOUND; - } - return rawIndex; - } - - /** - * Retreive the index with given name - */ - indexOfName(name: string): number { - for (let i = 0, len = this.count(); i < len; i++) { - if (this.getName(i) === name) { - return i; - } - } - - return -1; - } - - /** - * Retreive the index with given raw data index - */ - indexOfRawIndex(rawIndex: number): number { - if (rawIndex >= this._rawCount || rawIndex < 0) { - return -1; - } - - if (!this._indices) { - return rawIndex; - } - - // Indices are ascending - const indices = this._indices; - - // If rawIndex === dataIndex - const rawDataIndex = indices[rawIndex]; - if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) { - return rawIndex; - } - - let left = 0; - let right = this._count - 1; - while (left <= right) { - const mid = (left + right) / 2 | 0; - if (indices[mid] < rawIndex) { - left = mid + 1; - } - else if (indices[mid] > rawIndex) { - right = mid - 1; - } - else { - return mid; - } - } - return -1; - } - - /** - * Retreive the index of nearest value - * @param dim - * @param value - * @param [maxDistance=Infinity] - * @return If and only if multiple indices has - * the same value, they are put to the result. - */ - indicesOfNearest( - dim: DimensionName, value: number, maxDistance?: number - ): number[] { - const storage = this._storage; - const dimData = storage[dim]; - const nearestIndices: number[] = []; - - if (!dimData) { - return nearestIndices; - } - - if (maxDistance == null) { - maxDistance = Infinity; - } - - let minDist = Infinity; - let minDiff = -1; - let nearestIndicesLen = 0; - - - // Check the test case of `test/ut/spec/data/List.js`. - for (let i = 0, len = this.count(); i < len; i++) { - const dataIndex = this.getRawIndex(i); - const diff = value - (dimData[dataIndex] as number); - const dist = Math.abs(diff); - if (dist <= maxDistance) { - // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`, - // we'd better not push both of them to `nearestIndices`, otherwise it is easy to - // get more than one item in `nearestIndices` (more specifically, in `tooltip`). - // So we chose the one that `diff >= 0` in this csae. - // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them - // should be push to `nearestIndices`. - if (dist < minDist - || (dist === minDist && diff >= 0 && minDiff < 0) - ) { - minDist = dist; - minDiff = diff; - nearestIndicesLen = 0; - } - if (diff === minDiff) { - nearestIndices[nearestIndicesLen++] = i; - } - } - } - nearestIndices.length = nearestIndicesLen; - - return nearestIndices; - } - - /** - * Get raw data index. - * Do not initialize. - * Default `getRawIndex`. And it can be changed. - */ - getRawIndex: (idx: number) => number = getRawIndexWithoutIndices; - - /** - * Get raw data item - */ - getRawDataItem(idx: number): OptionDataItem { - if (!this._rawData.persistent) { - const val = []; - for (let i = 0; i < this.dimensions.length; i++) { - const dim = this.dimensions[i]; - val.push(this.get(dim, idx)); - } - return val; - } - else { - return this._rawData.getItem(this.getRawIndex(idx)); - } - } - - /** - * @return Never be null/undefined. `number` will be converted to string. Becuase: - * In most cases, name is used in display, where returning a string is more convenient. - * In other cases, name is used in query (see `indexOfName`), where we can keep the - * rule that name `2` equals to name `'2'`. - */ - getName(idx: number): string { - const rawIndex = this.getRawIndex(idx); - let name = this._nameList[rawIndex]; - if (name == null && this._nameDimIdx != null) { - name = getIdNameFromStore(this, this._nameDimIdx, this._nameOrdinalMeta, rawIndex); - } - if (name == null) { - name = ''; - } - return name; - } - - /** - * @return Never null/undefined. `number` will be converted to string. Becuase: - * In all cases having encountered at present, id is used in making diff comparison, which - * are usually based on hash map. We can keep the rule that the internal id are always string - * (treat `2` is the same as `'2'`) to make the related logic simple. - */ - getId(idx: number): string { - return getId(this, this.getRawIndex(idx)); - } - - /** - * Data iteration - * @param ctx default this - * @example - * list.each('x', function (x, idx) {}); - * list.each(['x', 'y'], function (x, y, idx) {}); - * list.each(function (idx) {}) - */ - each(cb: EachCb0, ctx?: Ctx, ctxCompat?: Ctx): void; - each(dims: DimensionLoose, cb: EachCb1, ctx?: Ctx, ctxCompat?: Ctx): void; - each(dims: [DimensionLoose], cb: EachCb1, ctx?: Ctx, ctxCompat?: Ctx): void; - each(dims: [DimensionLoose, DimensionLoose], cb: EachCb2, ctx?: Ctx, ctxCompat?: Ctx): void; - each(dims: ItrParamDims, cb: EachCb, ctx?: Ctx, ctxCompat?: Ctx): void; - each( - dims: ItrParamDims | EachCb, - cb: EachCb | Ctx, - ctx?: Ctx, - ctxCompat?: Ctx - ): void { - 'use strict'; - - if (!this._count) { - return; - } - - if (typeof dims === 'function') { - ctxCompat = ctx; - ctx = cb as Ctx; - cb = dims; - dims = []; - } - - // ctxCompat just for compat echarts3 - const fCtx = (ctx || ctxCompat || this) as CtxOrList; - - const dimNames = map(normalizeDimensions(dims), this.getDimension, this); - - if (__DEV__) { - validateDimensions(this, dimNames); - } - - const dimSize = dimNames.length; - const dimIndices = map(dimNames, (dimName) => { - return this._dimensionInfos[dimName].index; - }); - const storageArr = this._storageArr; - - for (let i = 0, len = this.count(); i < len; i++) { - const rawIdx = this.getRawIndex(i); - // Simple optimization - switch (dimSize) { - case 0: - (cb as EachCb0).call(fCtx, i); - break; - case 1: - (cb as EachCb1).call(fCtx, storageArr[dimIndices[0]][rawIdx], i); - break; - case 2: - (cb as EachCb2).call( - fCtx, storageArr[dimIndices[0]][rawIdx], storageArr[dimIndices[1]][rawIdx], i - ); - break; - default: - let k = 0; - const value = []; - for (; k < dimSize; k++) { - value[k] = storageArr[dimIndices[k]][rawIdx]; - } - // Index - value[k] = i; - (cb as EachCb).apply(fCtx, value); - } - } - } - - /** - * Data filter - */ - filterSelf(cb: FilterCb0, ctx?: Ctx, ctxCompat?: Ctx): this; - filterSelf(dims: DimensionLoose, cb: FilterCb1, ctx?: Ctx, ctxCompat?: Ctx): this; - filterSelf(dims: [DimensionLoose], cb: FilterCb1, ctx?: Ctx, ctxCompat?: Ctx): this; - filterSelf(dims: [DimensionLoose, DimensionLoose], cb: FilterCb2, ctx?: Ctx, ctxCompat?: Ctx): this; - filterSelf(dims: ItrParamDims, cb: FilterCb, ctx?: Ctx, ctxCompat?: Ctx): this; - filterSelf( - dims: ItrParamDims | FilterCb, - cb: FilterCb | Ctx, - ctx?: Ctx, - ctxCompat?: Ctx - ): List { - 'use strict'; - - if (!this._count) { - return; - } - - if (typeof dims === 'function') { - ctxCompat = ctx; - ctx = cb as Ctx; - cb = dims; - dims = []; - } - - // ctxCompat just for compat echarts3 - const fCtx = (ctx || ctxCompat || this) as CtxOrList; - - const dimNames = map( - normalizeDimensions(dims), this.getDimension, this - ); - - if (__DEV__) { - validateDimensions(this, dimNames); - } - - - const count = this.count(); - const Ctor = getIndicesCtor(this); - const newIndices = new Ctor(count); - const value = []; - const dimSize = dimNames.length; - - let offset = 0; - const dimIndices = map(dimNames, (dimName) => { - return this._dimensionInfos[dimName].index; - }); - const dim0 = dimIndices[0]; - const storageArr = this._storageArr; - - for (let i = 0; i < count; i++) { - let keep; - const rawIdx = this.getRawIndex(i); - // Simple optimization - if (dimSize === 0) { - keep = (cb as FilterCb0).call(fCtx, i); - } - else if (dimSize === 1) { - const val = storageArr[dim0][rawIdx]; - keep = (cb as FilterCb1).call(fCtx, val, i); - } - else { - let k = 0; - for (; k < dimSize; k++) { - value[k] = storageArr[dimIndices[k]][rawIdx]; - } - value[k] = i; - keep = (cb as FilterCb).apply(fCtx, value); - } - if (keep) { - newIndices[offset++] = rawIdx; - } - } - - // Set indices after filtered. - if (offset < count) { - this._indices = newIndices; - } - this._count = offset; - // Reset data extent - this._extent = {}; - - this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; - - return this; - } - - /** - * Select data in range. (For optimization of filter) - * (Manually inline code, support 5 million data filtering in data zoom.) - */ - selectRange(range: {[dimName: string]: [number, number]}): List { - 'use strict'; - - const len = this._count; - - if (!len) { - return; - } - - const dimensions = []; - for (const dim in range) { - if (range.hasOwnProperty(dim)) { - dimensions.push(dim); - } - } - - if (__DEV__) { - validateDimensions(this, dimensions); - } - - const dimSize = dimensions.length; - if (!dimSize) { - return; - } - - const originalCount = this.count(); - const Ctor = getIndicesCtor(this); - const newIndices = new Ctor(originalCount); - - let offset = 0; - const dim0 = dimensions[0]; - const dimIndices = map(dimensions, (dimName) => { - return this._dimensionInfos[dimName].index; - }); - - const min = range[dim0][0]; - const max = range[dim0][1]; - const storageArr = this._storageArr; - - let quickFinished = false; - if (!this._indices) { - // Extreme optimization for common case. About 2x faster in chrome. - let idx = 0; - if (dimSize === 1) { - const dimStorage = storageArr[dimIndices[0]]; - for (let i = 0; i < len; i++) { - const val = dimStorage[i]; - // NaN will not be filtered. Consider the case, in line chart, empty - // value indicates the line should be broken. But for the case like - // scatter plot, a data item with empty value will not be rendered, - // but the axis extent may be effected if some other dim of the data - // item has value. Fortunately it is not a significant negative effect. - if ( - (val >= min && val <= max) || isNaN(val as any) - ) { - newIndices[offset++] = idx; - } - idx++; - } - quickFinished = true; - } - else if (dimSize === 2) { - const dimStorage = storageArr[dimIndices[0]]; - const dimStorage2 = storageArr[dimIndices[1]]; - const min2 = range[dimensions[1]][0]; - const max2 = range[dimensions[1]][1]; - for (let i = 0; i < len; i++) { - const val = dimStorage[i]; - const val2 = dimStorage2[i]; - // Do not filter NaN, see comment above. - if (( - (val >= min && val <= max) || isNaN(val as any) - ) - && ( - (val2 >= min2 && val2 <= max2) || isNaN(val2 as any) - ) - ) { - newIndices[offset++] = idx; - } - idx++; - } - quickFinished = true; - } - } - if (!quickFinished) { - if (dimSize === 1) { - for (let i = 0; i < originalCount; i++) { - const rawIndex = this.getRawIndex(i); - const val = storageArr[dimIndices[0]][rawIndex]; - // Do not filter NaN, see comment above. - if ( - (val >= min && val <= max) || isNaN(val as any) - ) { - newIndices[offset++] = rawIndex; - } - } - } - else { - for (let i = 0; i < originalCount; i++) { - let keep = true; - const rawIndex = this.getRawIndex(i); - for (let k = 0; k < dimSize; k++) { - const dimk = dimensions[k]; - const val = storageArr[dimIndices[k]][rawIndex]; - // Do not filter NaN, see comment above. - if (val < range[dimk][0] || val > range[dimk][1]) { - keep = false; - } - } - if (keep) { - newIndices[offset++] = this.getRawIndex(i); - } - } - } - } - - // Set indices after filtered. - if (offset < originalCount) { - this._indices = newIndices; - } - this._count = offset; - // Reset data extent - this._extent = {}; - - this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; - - return this; - } - - /** - * Data mapping to a plain array - */ - mapArray>(cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - /* eslint-disable */ - mapArray>(dims: DimensionLoose, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - mapArray>(dims: [DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - mapArray>(dims: [DimensionLoose, DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - mapArray>(dims: ItrParamDims, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - /* eslint-enable */ - mapArray( - dims: ItrParamDims | MapArrayCb, - cb: MapArrayCb | Ctx, - ctx?: Ctx, - ctxCompat?: Ctx - ): any[] { - 'use strict'; - - if (typeof dims === 'function') { - ctxCompat = ctx; - ctx = cb as Ctx; - cb = dims; - dims = []; - } - - // ctxCompat just for compat echarts3 - ctx = (ctx || ctxCompat || this) as Ctx; - - const result: any[] = []; - this.each(dims, function () { - result.push(cb && (cb as MapArrayCb).apply(this, arguments)); - }, ctx); - return result; - } - - /** - * Data mapping to a new List with given dimensions - */ - map(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): List; - map(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): List; - map(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): List; - map( - dims: ItrParamDims, - cb: MapCb, - ctx?: Ctx, - ctxCompat?: Ctx - ): List { - 'use strict'; - - // ctxCompat just for compat echarts3 - const fCtx = (ctx || ctxCompat || this) as CtxOrList; - - const dimNames = map( - normalizeDimensions(dims), this.getDimension, this - ); - - if (__DEV__) { - validateDimensions(this, dimNames); - } - - const list = cloneListForMapAndSample(this, dimNames); - const storage = list._storage; - - // Following properties are all immutable. - // So we can reference to the same value - list._indices = this._indices; - list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; - - const tmpRetValue = []; - const dimSize = dimNames.length; - const dataCount = this.count(); - const values = []; - const rawExtent = list._rawExtent; - - for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { - for (let dimIndex = 0; dimIndex < dimSize; dimIndex++) { - values[dimIndex] = this.get(dimNames[dimIndex], dataIndex); - } - values[dimSize] = dataIndex; - - let retValue = cb && cb.apply(fCtx, values); - if (retValue != null) { - // a number or string (in oridinal dimension)? - if (typeof retValue !== 'object') { - tmpRetValue[0] = retValue; - retValue = tmpRetValue; - } - - const rawIndex = this.getRawIndex(dataIndex); - - for (let i = 0; i < retValue.length; i++) { - const dim = dimNames[i]; - const val = retValue[i]; - const rawExtentOnDim = rawExtent[dim]; - - const dimStore = storage[dim]; - if (dimStore) { - dimStore[rawIndex] = val; - } - - if (val < rawExtentOnDim[0]) { - rawExtentOnDim[0] = val as number; - } - if (val > rawExtentOnDim[1]) { - rawExtentOnDim[1] = val as number; - } - } - } - } - - return list; - } - - /** - * Large data down sampling on given dimension - * @param sampleIndex Sample index for name and id - */ - downSample( - dimension: DimensionName, - rate: number, - sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, - sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number - ): List { - const list = cloneListForMapAndSample(this, [dimension]); - const targetStorage = list._storage; - - const frameValues = []; - let frameSize = mathFloor(1 / rate); - - const dimStore = targetStorage[dimension]; - const len = this.count(); - const rawExtentOnDim = list._rawExtent[dimension]; - - const newIndices = new (getIndicesCtor(this))(len); - - let offset = 0; - for (let i = 0; i < len; i += frameSize) { - // Last frame - if (frameSize > len - i) { - frameSize = len - i; - frameValues.length = frameSize; - } - for (let k = 0; k < frameSize; k++) { - const dataIdx = this.getRawIndex(i + k); - frameValues[k] = dimStore[dataIdx]; - } - const value = sampleValue(frameValues); - const sampleFrameIdx = this.getRawIndex( - Math.min(i + sampleIndex(frameValues, value) || 0, len - 1) - ); - // Only write value on the filtered data - dimStore[sampleFrameIdx] = value; - - if (value < rawExtentOnDim[0]) { - rawExtentOnDim[0] = value; - } - if (value > rawExtentOnDim[1]) { - rawExtentOnDim[1] = value; - } - - newIndices[offset++] = sampleFrameIdx; - } - - list._count = offset; - list._indices = newIndices; - - list.getRawIndex = getRawIndexWithIndices; - - return list as List; - } - - /** - * Large data down sampling using largest-triangle-three-buckets - * @param {string} valueDimension - * @param {number} targetCount - */ - lttbDownSample( - valueDimension: DimensionName, - rate: number - ) { - const list = cloneListForMapAndSample(this, []); - const targetStorage = list._storage; - const dimStore = targetStorage[valueDimension]; - const len = this.count(); - const newIndices = new (getIndicesCtor(this))(len); - - let sampledIndex = 0; - - const frameSize = mathFloor(1 / rate); - - let currentRawIndex = this.getRawIndex(0); - let maxArea; - let area; - let nextRawIndex; - - // First frame use the first data. - newIndices[sampledIndex++] = currentRawIndex; - for (let i = 1; i < len - 1; i += frameSize) { - const nextFrameStart = Math.min(i + frameSize, len - 1); - const nextFrameEnd = Math.min(i + frameSize * 2, len); - - const avgX = (nextFrameEnd + nextFrameStart) / 2; - let avgY = 0; - - for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) { - const rawIndex = this.getRawIndex(idx); - const y = dimStore[rawIndex] as number; - if (isNaN(y)) { - continue; - } - avgY += y as number; - } - avgY /= (nextFrameEnd - nextFrameStart); - - const frameStart = i; - const frameEnd = Math.min(i + frameSize, len); - - const pointAX = i - 1; - const pointAY = dimStore[currentRawIndex] as number; - - maxArea = -1; - - nextRawIndex = frameStart; - // Find a point from current frame that construct a triangel with largest area with previous selected point - // And the average of next frame. - for (let idx = frameStart; idx < frameEnd; idx++) { - const rawIndex = this.getRawIndex(idx); - const y = dimStore[rawIndex] as number; - if (isNaN(y)) { - continue; - } - // Calculate triangle area over three buckets - area = Math.abs((pointAX - avgX) * (y - pointAY) - - (pointAX - idx) * (avgY - pointAY) - ); - if (area > maxArea) { - maxArea = area; - nextRawIndex = rawIndex; // Next a is this b - } - } - - newIndices[sampledIndex++] = nextRawIndex; - - currentRawIndex = nextRawIndex; // This a is the next a (chosen b) - } - - // First frame use the last data. - newIndices[sampledIndex++] = this.getRawIndex(len - 1); - list._count = sampledIndex; - list._indices = newIndices; - - list.getRawIndex = getRawIndexWithIndices; - return list; - } - - - /** - * Get model of one data item. - */ - // TODO: Type of data item - getItemModel(idx: number): Model - > { - const hostModel = this.hostModel; - const dataItem = this.getRawDataItem(idx) as ModelOption; - return new Model(dataItem, hostModel, hostModel && hostModel.ecModel); - } - - /** - * Create a data differ - */ - diff(otherList: List): DataDiffer { - const thisList = this; - - return new DataDiffer( - otherList ? otherList.getIndices() : [], - this.getIndices(), - function (idx: number) { - return getId(otherList, idx); - }, - function (idx: number) { - return getId(thisList, idx); - } - ); - } - - /** - * Get visual property. - */ - getVisual(key: K): Visual[K] { - const visual = this._visual as Visual; - return visual && visual[key]; - } - - /** - * Set visual property - * - * @example - * setVisual('color', color); - * setVisual({ - * 'color': color - * }); - */ - setVisual(key: K, val: Visual[K]): void; - setVisual(kvObj: Partial): void; - setVisual(kvObj: string | Partial, val?: any): void { - this._visual = this._visual || {}; - if (isObject(kvObj)) { - zrUtil.extend(this._visual, kvObj); - } - else { - this._visual[kvObj as string] = val; - } - } - - /** - * Get visual property of single data item - */ - // eslint-disable-next-line - getItemVisual(idx: number, key: K): Visual[K] { - const itemVisual = this._itemVisuals[idx] as Visual; - const val = itemVisual && itemVisual[key]; - if (val == null) { - // Use global visual property - return this.getVisual(key); - } - return val; - } - - /** - * If exists visual property of single data item - */ - hasItemVisual() { - return this._itemVisuals.length > 0; - } - - /** - * Make sure itemVisual property is unique - */ - // TODO: use key to save visual to reduce memory. - ensureUniqueItemVisual(idx: number, key: K): Visual[K] { - const itemVisuals = this._itemVisuals; - let itemVisual = itemVisuals[idx] as Visual; - if (!itemVisual) { - itemVisual = itemVisuals[idx] = {} as Visual; - } - let val = itemVisual[key]; - if (val == null) { - val = this.getVisual(key); - - // TODO Performance? - if (zrUtil.isArray(val)) { - val = val.slice() as unknown as Visual[K]; - } - else if (isObject(val)) { - val = zrUtil.extend({}, val); - } - - itemVisual[key] = val; - } - return val; - } - /** - * Set visual property of single data item - * - * @param {number} idx - * @param {string|Object} key - * @param {*} [value] - * - * @example - * setItemVisual(0, 'color', color); - * setItemVisual(0, { - * 'color': color - * }); - */ - // eslint-disable-next-line - setItemVisual(idx: number, key: K, value: Visual[K]): void; - setItemVisual(idx: number, kvObject: Partial): void; - // eslint-disable-next-line - setItemVisual(idx: number, key: K | Partial, value?: Visual[K]): void { - const itemVisual = this._itemVisuals[idx] || {}; - this._itemVisuals[idx] = itemVisual; - - if (isObject(key)) { - zrUtil.extend(itemVisual, key); - } - else { - itemVisual[key as string] = value; - } - } - - /** - * Clear itemVisuals and list visual. - */ - clearAllVisual(): void { - this._visual = {}; - this._itemVisuals = []; - } - - /** - * Set layout property. - */ - setLayout(key: string, val: any): void; - setLayout(kvObj: Dictionary): void; - setLayout(key: string | Dictionary, val?: any): void { - if (isObject(key)) { - for (const name in key) { - if (key.hasOwnProperty(name)) { - this.setLayout(name, key[name]); - } - } - return; - } - this._layout[key] = val; - } - - /** - * Get layout property. - */ - getLayout(key: string): any { - return this._layout[key]; - } - - /** - * Get layout of single data item - */ - getItemLayout(idx: number): any { - return this._itemLayouts[idx]; - } - - /** - * Set layout of single data item - */ - setItemLayout( - idx: number, - layout: (M extends true ? Dictionary : any), - merge?: M - ): void { - this._itemLayouts[idx] = merge - ? zrUtil.extend(this._itemLayouts[idx] || {}, layout) - : layout; - } - - /** - * Clear all layout of single data item - */ - clearItemLayouts(): void { - this._itemLayouts.length = 0; - } - - /** - * Set graphic element relative to data. It can be set as null - */ - setItemGraphicEl(idx: number, el: Element): void { - const hostModel = this.hostModel; - - if (el) { - const ecData = getECData(el); - // Add data index and series index for indexing the data by element - // Useful in tooltip - ecData.dataIndex = idx; - ecData.dataType = this.dataType; - ecData.seriesIndex = hostModel && (hostModel as any).seriesIndex; - - // TODO: not store dataIndex on children. - if (el.type === 'group') { - el.traverse(setItemDataAndSeriesIndex, el); - } - } - - this._graphicEls[idx] = el; - } - - getItemGraphicEl(idx: number): Element { - return this._graphicEls[idx]; - } - - eachItemGraphicEl( - cb: (this: Ctx, el: Element, idx: number) => void, - context?: Ctx - ): void { - zrUtil.each(this._graphicEls, function (el, idx) { - if (el) { - cb && cb.call(context, el, idx); - } - }); - } - - /** - * Shallow clone a new list except visual and layout properties, and graph elements. - * New list only change the indices. - */ - cloneShallow(list?: List): List { - if (!list) { - const dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this); - list = new List(dimensionInfoList, this.hostModel); - } - - // FIXME - list._storage = this._storage; - list._storageArr = this._storageArr; - - transferProperties(list, this); - - // Clone will not change the data extent and indices - if (this._indices) { - const Ctor = this._indices.constructor as DataArrayLikeConstructor; - if (Ctor === Array) { - const thisCount = this._indices.length; - list._indices = new Ctor(thisCount); - for (let i = 0; i < thisCount; i++) { - list._indices[i] = this._indices[i]; - } - } - else { - list._indices = new (Ctor as DataTypedArrayConstructor)(this._indices); - } - } - else { - list._indices = null; - } - list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices; - - return list; - } - - /** - * Wrap some method to add more feature - */ - wrapMethod( - methodName: FunctionPropertyNames, - injectFunction: (...args: any) => any - ): void { - const originalMethod = this[methodName]; - if (typeof originalMethod !== 'function') { - return; - } - this.__wrappedMethods = this.__wrappedMethods || []; - this.__wrappedMethods.push(methodName); - this[methodName] = function () { - const res = (originalMethod as any).apply(this, arguments); - return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments))); - }; - } - - - // ---------------------------------------------------------- - // A work around for internal method visiting private member. - // ---------------------------------------------------------- - private static internalField = (function () { - - defaultDimValueGetters = { - - arrayRows: getDimValueSimply, - - objectRows: function ( - this: List, dataItem: Dictionary, dimName: string, dataIndex: number, dimIndex: number - ): ParsedValue { - return parseDataValue(dataItem[dimName], this._dimensionInfos[dimName]); - }, - - keyedColumns: getDimValueSimply, - - original: function ( - this: List, dataItem: any, dimName: string, dataIndex: number, dimIndex: number - ): ParsedValue { - // Performance sensitive, do not use modelUtil.getDataItemValue. - // If dataItem is an plain object with no value field, the let `value` - // will be assigned with the object, but it will be tread correctly - // in the `convertValue`. - const value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); - - // If any dataItem is like { value: 10 } - if (!this._rawData.pure && isDataItemOption(dataItem)) { - this.hasItemOption = true; - } - return parseDataValue( - (value instanceof Array) - ? value[dimIndex] - // If value is a single number or something else not array. - : value, - this._dimensionInfos[dimName] - ); - }, - - typedArray: function ( - this: List, dataItem: any, dimName: string, dataIndex: number, dimIndex: number - ): ParsedValue { - return dataItem[dimIndex]; - } - - }; - - function getDimValueSimply( - this: List, dataItem: any, dimName: string, dataIndex: number, dimIndex: number - ): ParsedValue { - return parseDataValue(dataItem[dimIndex], this._dimensionInfos[dimName]); - } - - prepareInvertedIndex = function (list: List): void { - const invertedIndicesMap = list._invertedIndicesMap; - zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) { - const dimInfo = list._dimensionInfos[dim]; - - // Currently, only dimensions that has ordinalMeta can create inverted indices. - const ordinalMeta = dimInfo.ordinalMeta; - if (ordinalMeta) { - invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array( - ordinalMeta.categories.length - ); - // The default value of TypedArray is 0. To avoid miss - // mapping to 0, we should set it as INDEX_NOT_FOUND. - for (let i = 0; i < invertedIndices.length; i++) { - invertedIndices[i] = INDEX_NOT_FOUND; - } - for (let i = 0; i < list._count; i++) { - // Only support the case that all values are distinct. - invertedIndices[list.get(dim, i) as number] = i; - } - } - }); - }; - - getIdNameFromStore = function ( - list: List, dimIdx: number, ordinalMeta: OrdinalMeta, rawIndex: number - ): string { - let val; - const chunk = list._storageArr[dimIdx]; - if (chunk) { - val = chunk[rawIndex]; - if (ordinalMeta && ordinalMeta.categories.length) { - val = ordinalMeta.categories[val as OrdinalNumber]; - } - } - return convertOptionIdName(val, null); - }; - - getIndicesCtor = function (list: List): DataArrayLikeConstructor { - // The possible max value in this._indicies is always this._rawCount despite of filtering. - return list._rawCount > 65535 ? CtorUint32Array : CtorUint16Array; - }; - - prepareStorage = function ( - storage: DataStorage, - dimInfo: DataDimensionInfo, - end: number, - append?: boolean - ): void { - const DataCtor = dataCtors[dimInfo.type]; - const dim = dimInfo.name; - - if (append) { - const oldStore = storage[dim]; - const oldLen = oldStore && oldStore.length; - if (!(oldLen === end)) { - const newStore = new DataCtor(end); - // The cost of the copy is probably inconsiderable - // within the initial chunkSize. - for (let j = 0; j < oldLen; j++) { - newStore[j] = oldStore[j]; - } - storage[dim] = newStore; - } - } - else { - storage[dim] = new DataCtor(end); - } - }; - - getRawIndexWithoutIndices = function (this: List, idx: number): number { - return idx; - }; - - getRawIndexWithIndices = function (this: List, idx: number): number { - if (idx < this._count && idx >= 0) { - return this._indices[idx]; - } - return -1; - }; - - /** - * @see the comment of `List['getId']`. - */ - getId = function (list: List, rawIndex: number): string { - let id = list._idList[rawIndex]; - if (id == null && list._idDimIdx != null) { - id = getIdNameFromStore(list, list._idDimIdx, list._idOrdinalMeta, rawIndex); - } - if (id == null) { - id = ID_PREFIX + rawIndex; - } - return id; - }; - - normalizeDimensions = function ( - dimensions: ItrParamDims - ): Array { - if (!zrUtil.isArray(dimensions)) { - dimensions = dimensions != null ? [dimensions] : []; - } - return dimensions; - }; - - validateDimensions = function (list: List, dims: DimensionName[]): void { - for (let i = 0; i < dims.length; i++) { - // stroage may be empty when no data, so use - // dimensionInfos to check. - if (!list._dimensionInfos[dims[i]]) { - console.error('Unkown dimension ' + dims[i]); - } - } - }; - - // Data in excludeDimensions is copied, otherwise transfered. - cloneListForMapAndSample = function ( - original: List, excludeDimensions: DimensionName[] - ): List { - const allDimensions = original.dimensions; - const list = new List( - map(allDimensions, original.getDimensionInfo, original), - original.hostModel - ); - // FIXME If needs stackedOn, value may already been stacked - transferProperties(list, original); - - const storage = list._storage = {} as DataStorage; - const originalStorage = original._storage; - const storageArr: DataValueChunk[] = list._storageArr = []; - - // Init storage - for (let i = 0; i < allDimensions.length; i++) { - const dim = allDimensions[i]; - if (originalStorage[dim]) { - // Notice that we do not reset invertedIndicesMap here, becuase - // there is no scenario of mapping or sampling ordinal dimension. - if (zrUtil.indexOf(excludeDimensions, dim) >= 0) { - storage[dim] = cloneChunk(originalStorage[dim]); - list._rawExtent[dim] = getInitialExtent(); - list._extent[dim] = null; - } - else { - // Direct reference for other dimensions - storage[dim] = originalStorage[dim]; - } - storageArr.push(storage[dim]); - } - } - return list; - }; - - function cloneChunk(originalChunk: DataValueChunk): DataValueChunk { - const Ctor = originalChunk.constructor; - // Only shallow clone is enough when Array. - return Ctor === Array - ? (originalChunk as Array).slice() - : new (Ctor as DataTypedArrayConstructor)(originalChunk as DataTypedArray); - } - - getInitialExtent = function (): [number, number] { - return [Infinity, -Infinity]; - }; - - setItemDataAndSeriesIndex = function (this: Element, child: Element): void { - const childECData = getECData(child); - const thisECData = getECData(this); - childECData.seriesIndex = thisECData.seriesIndex; - childECData.dataIndex = thisECData.dataIndex; - childECData.dataType = thisECData.dataType; - }; - - transferProperties = function (target: List, source: List): void { - zrUtil.each( - TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), - function (propName) { - if (source.hasOwnProperty(propName)) { - (target as any)[propName] = (source as any)[propName]; - } - } - ); - - target.__wrappedMethods = source.__wrappedMethods; - - zrUtil.each(CLONE_PROPERTIES, function (propName) { - (target as any)[propName] = zrUtil.clone((source as any)[propName]); - }); - - target._calculationInfo = zrUtil.extend({}, source._calculationInfo); - }; - - makeIdFromName = function (list: List, idx: number): void { - const nameList = list._nameList; - const idList = list._idList; - const nameDimIdx = list._nameDimIdx; - const idDimIdx = list._idDimIdx; - - let name = nameList[idx]; - let id = idList[idx]; - - if (name == null && nameDimIdx != null) { - nameList[idx] = name = getIdNameFromStore(list, nameDimIdx, list._nameOrdinalMeta, idx); - } - if (id == null && idDimIdx != null) { - idList[idx] = id = getIdNameFromStore(list, idDimIdx, list._idOrdinalMeta, idx); - } - if (id == null && name != null) { - const nameRepeatCount = list._nameRepeatCount; - const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1; - id = name; - if (nmCnt > 1) { - id += '__ec__' + nmCnt; - } - idList[idx] = id; - } - }; - - })(); - -} - -interface List { - getLinkedData(dataType?: SeriesDataType): List; - getLinkedDataAll(): { data: List, type?: SeriesDataType }[]; -} - -export default List; diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts new file mode 100644 index 0000000000..553a225986 --- /dev/null +++ b/src/data/SeriesData.ts @@ -0,0 +1,1299 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +/* global Float64Array, Int32Array, Uint32Array, Uint16Array */ + +/** + * List for data storage + */ + +import * as zrUtil from 'zrender/src/core/util'; +import {PathStyleProps} from 'zrender/src/graphic/Path'; +import Model from '../model/Model'; +import DataDiffer from './DataDiffer'; +import {DefaultDataProvider} from './helper/dataProvider'; +import {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper'; +import DataDimensionInfo from './DataDimensionInfo'; +import {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types'; +import Element from 'zrender/src/Element'; +import { + DimensionIndex, DimensionName, DimensionLoose, OptionDataItem, + ParsedValue, ParsedValueNumeric, DimensionUserOuput, + ModelOption, SeriesDataType, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, + DecalObject, + OrdinalNumber +} from '../util/types'; +import {convertOptionIdName, isDataItemOption} from '../util/model'; +import { getECData } from '../util/innerStore'; +import type Graph from './Graph'; +import type Tree from './Tree'; +import type { VisualMeta } from '../component/visualMap/VisualMapModel'; +import {isSourceInstance, Source} from './Source'; +import { LineStyleProps } from '../model/mixin/lineStyle'; +import DataStorage, { DimValueGetter } from './DataStorage'; + +const isObject = zrUtil.isObject; +const map = zrUtil.map; + +const CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array; + +// Use prefix to avoid index to be the same as otherIdList[idx], +// which will cause weird udpate animation. +const ID_PREFIX = 'e\0\0'; + +const INDEX_NOT_FOUND = -1; + +type NameRepeatCount = {[name: string]: number}; +type ItrParamDims = DimensionLoose | Array; +// If Ctx not specified, use List as Ctx +type CtxOrList = unknown extends Ctx ? SeriesData : Ctx; +type EachCb0 = (this: CtxOrList, idx: number) => void; +type EachCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => void; +type EachCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => void; +type EachCb = (this: CtxOrList, ...args: any) => void; +type FilterCb0 = (this: CtxOrList, idx: number) => boolean; +type FilterCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => boolean; +type FilterCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => boolean; +type FilterCb = (this: CtxOrList, ...args: any) => boolean; +type MapArrayCb0 = (this: CtxOrList, idx: number) => any; +type MapArrayCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => any; +type MapArrayCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => any; +type MapArrayCb = (this: CtxOrList, ...args: any) => any; +type MapCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => ParsedValue | ParsedValue[]; +type MapCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => + ParsedValue | ParsedValue[]; +type MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedValue[]; + +const TRANSFERABLE_PROPERTIES = [ + 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', + '_rawData', '_dimValueGetter', '_store', + '_nameDimIdx', '_idDimIdx', '_nameRepeatCount' +]; +const CLONE_PROPERTIES = [ + '_approximateExtent' +]; + +export interface DefaultDataVisual { + style: PathStyleProps + // Draw type determined which prop should be set with encoded color. + // It's only available on the global visual. Use getVisual('drawType') to access it. + // It will be set in visual/style.ts module in the first priority. + drawType: 'fill' | 'stroke' + + symbol?: string + symbolSize?: number | number[] + symbolRotate?: number + symbolKeepAspect?: boolean + symbolOffset?: string | number | (string | number)[] + + liftZ?: number + // For legend. + legendIcon?: string + legendLineStyle?: LineStyleProps + + // visualMap will inject visualMeta data + visualMeta?: VisualMeta[] + + // If color is encoded from palette + colorFromPalette?: boolean + + decal?: DecalObject +} + +export interface DataCalculationInfo { + stackedDimension: string; + stackedByDimension: string; + isStackedByIndex: boolean; + stackedOverDimension: string; + stackResultDimension: string; + stackedOnSeries?: SERIES_MODEL; +} + +// ----------------------------- +// Internal method declarations: +// ----------------------------- +let prepareInvertedIndex: (list: SeriesData) => void; +let getId: (list: SeriesData, rawIndex: number) => string; +let getIdNameFromStore: (list: SeriesData, dimIdx: number, dataIdx: number) => string; +let normalizeDimensions: (dimensions: ItrParamDims) => Array; +let validateDimensions: (list: SeriesData, dims: DimensionIndex[]) => void; +let setItemDataAndSeriesIndex: (this: Element, child: Element) => void; +let transferProperties: (target: SeriesData, source: SeriesData) => void; +let cloneListForMapAndSample: (original: SeriesData) => SeriesData; + +class SeriesData< + HostModel extends Model = Model, + Visual extends DefaultDataVisual = DefaultDataVisual +> { + + readonly type = 'list'; + + readonly dimensions: string[]; + + // Infomation of each data dimension, like data type. + private _dimensionInfos: {[dimName: string]: DataDimensionInfo}; + + readonly hostModel: HostModel; + + /** + * @readonly + */ + dataType: SeriesDataType; + + /** + * @readonly + * Host graph if List is used to store graph nodes / edges. + */ + graph?: Graph; + + /** + * @readonly + * Host tree if List is used to store tree ndoes. + */ + tree?: Tree; + + private _store: DataStorage; + + private _nameList: string[] = []; + private _idList: string[] = []; + + // Models of data option is stored sparse for optimizing memory cost + // Never used yet (not used yet). + // private _optionModels: Model[] = []; + + // Global visual properties after visual coding + private _visual: Dictionary = {}; + + // Globel layout properties. + private _layout: Dictionary = {}; + + // Item visual properties after visual coding + private _itemVisuals: Dictionary[] = []; + + // Item layout properties after layout + private _itemLayouts: any[] = []; + + // Graphic elemnents + private _graphicEls: Element[] = []; + + // key: dim, value: extent + private _approximateExtent: {[dimName: string]: [number, number]} = {}; + + private _dimensionsSummary: DimensionSummary; + + private _invertedIndicesMap: {[dimName: string]: ArrayLike}; + + private _calculationInfo: DataCalculationInfo = {} as DataCalculationInfo; + + // User output info of this data. + // DO NOT use it in other places! + // When preparing user params for user callbacks, we have + // to clone these inner data structures to prevent users + // from modifying them to effect built-in logic. And for + // performance consideration we make this `userOutput` to + // avoid clone them too many times. + readonly userOutput: DimensionUserOuput; + + // Having detected that there is data item is non primitive type + // (in type `OptionDataItemObject`). + // Like `data: [ { value: xx, itemStyle: {...} }, ...]` + // At present it only happen in `SOURCE_FORMAT_ORIGINAL`. + hasItemOption: boolean = false; + + // id or name is used on dynamic data, mapping old and new items. + // When generating id from name, avoid repeat. + private _nameRepeatCount: NameRepeatCount; + private _nameDimIdx: number; + private _idDimIdx: number; + + private __wrappedMethods: string[]; + + // Methods that create a new list based on this list should be listed here. + // Notice that those method should `RETURN` the new list. + TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map'] as const; + // Methods that change indices of this list should be listed here. + CHANGABLE_METHODS = ['filterSelf', 'selectRange'] as const; + DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'] as const; + + /** + * @param dimensions + * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. + * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius + */ + constructor(dimensions: Array, hostModel: HostModel) { + dimensions = dimensions || ['x', 'y']; + + const dimensionInfos: Dictionary = {}; + const dimensionNames = []; + const invertedIndicesMap: Dictionary = {}; + + for (let i = 0; i < dimensions.length; i++) { + // Use the original dimensions[i], where other flag props may exists. + const dimInfoInput = dimensions[i]; + + const dimensionInfo: DataDimensionInfo = + zrUtil.isString(dimInfoInput) + ? new DataDimensionInfo({name: dimInfoInput}) + : !(dimInfoInput instanceof DataDimensionInfo) + ? new DataDimensionInfo(dimInfoInput) + : dimInfoInput; + + const dimensionName = dimensionInfo.name; + dimensionInfo.type = dimensionInfo.type || 'float'; + if (!dimensionInfo.coordDim) { + dimensionInfo.coordDim = dimensionName; + dimensionInfo.coordDimIndex = 0; + } + + const otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {}; + dimensionNames.push(dimensionName); + dimensionInfos[dimensionName] = dimensionInfo; + + dimensionInfo.index = i; + + if (dimensionInfo.createInvertedIndices) { + invertedIndicesMap[dimensionName] = []; + } + if (otherDims.itemName === 0) { + this._nameDimIdx = i; + } + if (otherDims.itemId === 0) { + this._idDimIdx = i; + } + } + + this.dimensions = dimensionNames; + this._dimensionInfos = dimensionInfos; + this.hostModel = hostModel; + + // Cache summary info for fast visit. See "dimensionHelper". + this._dimensionsSummary = summarizeDimensions(this); + + this._invertedIndicesMap = invertedIndicesMap; + + this.userOutput = this._dimensionsSummary.userOutput; + } + + /** + * The meanings of the input parameter `dim`: + * + * + If dim is a number (e.g., `1`), it means the index of the dimension. + * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'. + * + If dim is a number-like string (e.g., `"1"`): + * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name. + * + If not, it will be converted to a number, which means the index of the dimension. + * (why? because of the backward compatbility. We have been tolerating number-like string in + * dimension setting, although now it seems that it is not a good idea.) + * For example, `visualMap[i].dimension: "1"` is the same meaning as `visualMap[i].dimension: 1`, + * if no dimension name is defined as `"1"`. + * + If dim is a not-number-like string, it means the concrete dim name. + * For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`, + * or customized in `dimensions` property of option like `"age"`. + * + * Get dimension name + * @param dim See above. + * @return Concrete dim name. + */ + getDimension(dim: DimensionLoose): DimensionName { + if (typeof dim === 'number' + // If being a number-like string but not being defined a dimension name. + || (!isNaN(dim as any) && !this._dimensionInfos.hasOwnProperty(dim)) + ) { + dim = this.dimensions[dim as DimensionIndex]; + } + return dim as DimensionName; + } + + getDimensionIndex(dim: DimensionLoose): DimensionIndex { + if (typeof dim === 'number') { + return dim; + } + const idx = this._store.getDimensionIndex(dim); + if (idx == null) { + // If being a number-like string but not being defined a dimension name. + return +dim; + } + return idx; + } + + /** + * Get type and calculation info of particular dimension + * @param dim + * Dimension can be concrete names like x, y, z, lng, lat, angle, radius + * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' + */ + getDimensionInfo(dim: DimensionLoose): DataDimensionInfo { + // Do not clone, because there may be categories in dimInfo. + return this._dimensionInfos[this.getDimension(dim)]; + } + + /** + * concrete dimension name list on coord. + */ + getDimensionsOnCoord(): DimensionName[] { + return this._dimensionsSummary.dataDimsOnCoord.slice(); + } + + /** + * @param coordDim + * @param idx A coordDim may map to more than one data dim. + * If not specified, return the first dim not extra. + * @return concrete data dim. If not found, return null/undefined + */ + mapDimension(coordDim: DimensionName): DimensionName; + mapDimension(coordDim: DimensionName, idx: number): DimensionName; + mapDimension(coordDim: DimensionName, idx?: number): DimensionName { + const dimensionsSummary = this._dimensionsSummary; + + if (idx == null) { + return dimensionsSummary.encodeFirstDimNotExtra[coordDim] as any; + } + + const dims = dimensionsSummary.encode[coordDim]; + return dims ? dims[idx as number] as any : null; + } + + mapDimensionsAll(coordDim: DimensionName): DimensionName[] { + const dimensionsSummary = this._dimensionsSummary; + const dims = dimensionsSummary.encode[coordDim]; + return (dims || []).slice(); + } + + getStore() { + return this._store; + } + + /** + * Initialize from data + * @param data source or data or data storage. + * @param nameList The name of a datum is used on data diff and + * default label/tooltip. + * A name can be specified in encode.itemName, + * or dataItem.name (only for series option data), + * or provided in nameList from outside. + */ + initData( + data: Source | OptionSourceData | DataStorage, + nameList?: string[], + dimValueGetter?: DimValueGetter + ): void { + const isRaw = isSourceInstance(data) || zrUtil.isArrayLike(data); + let store: DataStorage; + if (isRaw) { + const provider = new DefaultDataProvider(data as Source | OptionSourceData, this.dimensions.length); + const dimensionInfos = map(this.dimensions, dimName => this._dimensionInfos[dimName]); + store = new DataStorage(); + store.initData(provider, dimensionInfos, dimValueGetter); + } + else { + store = data as DataStorage; + } + + this._store = store; + + // Reset + this._nameList = (nameList || []).slice(); + this._idList = []; + this._nameRepeatCount = {}; + + this._doInit(0, store.count()); + } + + /** + * Caution: Can be only called on raw data (before `this._indices` created). + */ + appendData(data: ArrayLike): void { + const range = this._store.appendData(data); + this._doInit(range[0], range[1]); + } + + private _doInit(start: number, end: number): void { + if (start >= end) { + return; + } + + const store = this._store; + const provider = store.getProvider(); + + const nameList = this._nameList; + const idList = this._idList; + const sourceFormat = provider.getSource().sourceFormat; + const isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL; + + const dontMakeIdFromName = this._idDimIdx != null + || sourceFormat === SOURCE_FORMAT_TYPED_ARRAY // Consider performance. + || !!provider.fillStorage; + + // Each data item is value + // [1, 2] + // 2 + // Bar chart, line chart which uses category axis + // only gives the 'y' value. 'x' value is the indices of category + // Use a tempValue to normalize the value to be a (x, y) value + // If dataItem is {name: ...} or {id: ...}, it has highest priority. + // This kind of ids and names are always stored `_nameList` and `_idList`. + if (isFormatOriginal && !provider.pure) { + const sharedDataItem = [] as OptionDataItem; + for (let idx = start; idx < end; idx++) { + // NOTICE: Try not to write things into dataItem + const dataItem = provider.getItem(idx, sharedDataItem); + if (!this.hasItemOption && isDataItemOption(dataItem)) { + this.hasItemOption = true; + } + if (dataItem) { + const itemName = (dataItem as any).name; + if (nameList[idx] == null && itemName != null) { + nameList[idx] = convertOptionIdName(itemName, null); + } + const itemId = (dataItem as any).id; + if (idList[idx] == null && itemId != null) { + idList[idx] = convertOptionIdName(itemId, null); + } + } + } + } + + if (!dontMakeIdFromName) { + const nameDimIdx = this._nameDimIdx; + const idDimIdx = this._idDimIdx; + + for (let idx = start; idx < end; idx++) { + let name = nameList[idx]; + let id = idList[idx]; + + if (name == null && nameDimIdx != null) { + nameList[idx] = name = getIdNameFromStore(this, nameDimIdx, idx); + } + if (id == null && idDimIdx != null) { + idList[idx] = id = getIdNameFromStore(this, idDimIdx, idx); + } + if (id == null && name != null) { + const nameRepeatCount = this._nameRepeatCount; + const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1; + id = name; + if (nmCnt > 1) { + id += '__ec__' + nmCnt; + } + idList[idx] = id; + } + } + } + + prepareInvertedIndex(this); + } + /** + * PENDING: In fact currently this function is only used to short-circuit + * the calling of `scale.unionExtentFromData` when data have been filtered by modules + * like "dataZoom". `scale.unionExtentFromData` is used to calculate data extent for series on + * an axis, but if a "axis related data filter module" is used, the extent of the axis have + * been fixed and no need to calling `scale.unionExtentFromData` actually. + * But if we add "custom data filter" in future, which is not "axis related", this method may + * be still needed. + * + * Optimize for the scenario that data is filtered by a given extent. + * Consider that if data amount is more than hundreds of thousand, + * extent calculation will cost more than 10ms and the cache will + * be erased because of the filtering. + */ + getApproximateExtent(dim: DimensionLoose): [number, number] { + return this._approximateExtent[dim] || this._store.getDataExtent(this.getDimensionIndex(dim)); + } + + /** + * Calculate extent on a filtered data might be time consuming. + * Approximate extent is only used for: calculte extent of filtered data outside. + */ + setApproximateExtent(extent: [number, number], dim: DimensionLoose): void { + dim = this.getDimension(dim); + this._approximateExtent[dim] = extent.slice() as [number, number]; + } + + getCalculationInfo>( + key: CALC_INFO_KEY + ): DataCalculationInfo[CALC_INFO_KEY] { + return this._calculationInfo[key]; + } + + /** + * @param key or k-v object + */ + setCalculationInfo( + key: DataCalculationInfo + ): void; + setCalculationInfo>( + key: CALC_INFO_KEY, + value: DataCalculationInfo[CALC_INFO_KEY] + ): void; + setCalculationInfo( + key: (keyof DataCalculationInfo) | DataCalculationInfo, + value?: DataCalculationInfo[keyof DataCalculationInfo] + ): void { + isObject(key) + ? zrUtil.extend(this._calculationInfo, key as object) + : ((this._calculationInfo as any)[key] = value); + } + + /** + * @return Never be null/undefined. `number` will be converted to string. Becuase: + * In most cases, name is used in display, where returning a string is more convenient. + * In other cases, name is used in query (see `indexOfName`), where we can keep the + * rule that name `2` equals to name `'2'`. + */ + getName(idx: number): string { + const rawIndex = this.getRawIndex(idx); + let name = this._nameList[rawIndex]; + if (name == null && this._nameDimIdx != null) { + name = getIdNameFromStore(this, this._nameDimIdx, rawIndex); + } + if (name == null) { + name = ''; + } + return name; + } + + /** + * @return Never null/undefined. `number` will be converted to string. Becuase: + * In all cases having encountered at present, id is used in making diff comparison, which + * are usually based on hash map. We can keep the rule that the internal id are always string + * (treat `2` is the same as `'2'`) to make the related logic simple. + */ + getId(idx: number): string { + return getId(this, this.getRawIndex(idx)); + } + + count() { + return this._store.count(); + } + /** + * Get value. Return NaN if idx is out of range. + * @param dim Dim must be concrete name. + */ + get(dim: DimensionName, idx: number): ParsedValue { + const store = this._store; + return store.get(store.getDimensionIndex(dim), idx); + } + + getByRawIndex(dim: DimensionName, rawIdx: number): ParsedValue { + const store = this._store; + return store.getByRawIndex(store.getDimensionIndex(dim), rawIdx); + } + + getIndices() { + return this._store.getIndices(); + } + + getDataExtent(dim: DimensionLoose): [number, number] { + return this._store.getDataExtent(this.getDimensionIndex(dim)); + } + + getSum(dim: DimensionLoose): number { + return this._store.getSum(this.getDimensionIndex(dim)); + } + + getMedian(dim: DimensionLoose): number { + return this._store.getMedian(this.getDimensionIndex(dim)); + } + /** + * Get value for multi dimensions. + * @param dimensions If ignored, using all dimensions. + */ + getValues(idx: number): ParsedValue[]; + getValues(dimensions: readonly DimensionName[], idx: number): ParsedValue[]; + getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] { + const values = []; + if (!zrUtil.isArray(dimensions)) { + // stack = idx; + idx = dimensions as number; + dimensions = this.dimensions; + } + + for (let i = 0, len = dimensions.length; i < len; i++) { + values.push(this.get(dimensions[i], idx)); + } + + return values; + } + + /** + * If value is NaN. Inlcuding '-' + * Only check the coord dimensions. + */ + hasValue(idx: number): boolean { + const dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord; + for (let i = 0, len = dataDimsOnCoord.length; i < len; i++) { + // Ordinal type originally can be string or number. + // But when an ordinal type is used on coord, it can + // not be string but only number. So we can also use isNaN. + if (isNaN(this.get(dataDimsOnCoord[i], idx) as any)) { + return false; + } + } + return true; + } + + /** + * Retreive the index with given name + */ + indexOfName(name: string): number { + for (let i = 0, len = this._store.count(); i < len; i++) { + if (this.getName(i) === name) { + return i; + } + } + return -1; + } + + getRawIndex(idx: number) { + return this._store.getRawIndex(idx); + } + + indexOfRawIndex(rawIndex: number) { + return this._store.indexOfRawIndex(rawIndex); + } + + /** + * Only support the dimension which inverted index created. + * Do not support other cases until required. + * @param dim concrete dim + * @param value ordinal index + * @return rawIndex + */ + rawIndexOf(dim: DimensionName, value: OrdinalNumber): number { + const invertedIndices = dim && this._invertedIndicesMap[dim]; + if (__DEV__) { + if (!invertedIndices) { + throw new Error('Do not supported yet'); + } + } + const rawIndex = invertedIndices[value]; + if (rawIndex == null || isNaN(rawIndex)) { + return INDEX_NOT_FOUND; + } + return rawIndex; + } + + /** + * Retreive the index of nearest value + * @param dim + * @param value + * @param [maxDistance=Infinity] + * @return If and only if multiple indices has + * the same value, they are put to the result. + */ + indicesOfNearest(dim: DimensionLoose, value: number, maxDistance?: number): number[] { + return this._store.indicesOfNearest( + this.getDimensionIndex(dim), + value, maxDistance + ); + } + /** + * Data iteration + * @param ctx default this + * @example + * list.each('x', function (x, idx) {}); + * list.each(['x', 'y'], function (x, y, idx) {}); + * list.each(function (idx) {}) + */ + each(cb: EachCb0, ctx?: Ctx, ctxCompat?: Ctx): void; + each(dims: DimensionLoose, cb: EachCb1, ctx?: Ctx): void; + each(dims: [DimensionLoose], cb: EachCb1, ctx?: Ctx): void; + each(dims: [DimensionLoose, DimensionLoose], cb: EachCb2, ctx?: Ctx): void; + each(dims: ItrParamDims, cb: EachCb, ctx?: Ctx): void; + each( + dims: ItrParamDims | EachCb, + cb: EachCb | Ctx, + ctx?: Ctx + ): void { + 'use strict'; + + if (typeof dims === 'function') { + ctx = cb as Ctx; + cb = dims; + dims = []; + } + + // ctxCompat just for compat echarts3 + const fCtx = (ctx || this) as CtxOrList; + + const dimIndices = map(normalizeDimensions(dims), this.getDimensionIndex, this); + + if (__DEV__) { + validateDimensions(this, dimIndices); + } + + this._store.each(dimIndices, (fCtx + ? zrUtil.bind(cb as any, fCtx as any) + : cb) as any + ); + } + /** + * Data filter + */ + filterSelf(cb: FilterCb0, ctx?: Ctx, ctxCompat?: Ctx): this; + filterSelf(dims: DimensionLoose, cb: FilterCb1, ctx?: Ctx): this; + filterSelf(dims: [DimensionLoose], cb: FilterCb1, ctx?: Ctx): this; + filterSelf(dims: [DimensionLoose, DimensionLoose], cb: FilterCb2, ctx?: Ctx): this; + filterSelf(dims: ItrParamDims, cb: FilterCb, ctx?: Ctx): this; + filterSelf( + dims: ItrParamDims | FilterCb, + cb: FilterCb | Ctx, + ctx?: Ctx + ): SeriesData { + 'use strict'; + + if (typeof dims === 'function') { + ctx = cb as Ctx; + cb = dims; + dims = []; + } + + // ctxCompat just for compat echarts3 + const fCtx = (ctx || this) as CtxOrList; + + const dimIndices = map(normalizeDimensions(dims), this.getDimensionIndex, this); + + if (__DEV__) { + validateDimensions(this, dimIndices); + } + + this._store.filterSelf(dimIndices, (fCtx + ? zrUtil.bind(cb as any, fCtx as any) + : cb) as any + ); + + return this; + } + + /** + * Select data in range. (For optimization of filter) + * (Manually inline code, support 5 million data filtering in data zoom.) + */ + selectRange(range: Record): SeriesData { + 'use strict'; + + const innerRange: Record = {}; + const dims = zrUtil.keys(range); + const dimIndices: number[] = []; + zrUtil.each(dims, (dim) => { + const dimIdx = this.getDimensionIndex(dim); + innerRange[dimIdx] = range[dim]; + dimIndices.push(dimIdx); + }); + + if (__DEV__) { + validateDimensions(this, dimIndices); + } + + this._store.selectRange(innerRange); + return this; + } + + /** + * Data mapping to a plain array + */ + mapArray>(cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; + /* eslint-disable */ + mapArray>(dims: DimensionLoose, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; + mapArray>(dims: [DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; + mapArray>(dims: [DimensionLoose, DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; + mapArray>(dims: ItrParamDims, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; + /* eslint-enable */ + mapArray( + dims: ItrParamDims | MapArrayCb, + cb: MapArrayCb | Ctx, + ctx?: Ctx + ): unknown[] { + 'use strict'; + + if (typeof dims === 'function') { + ctx = cb as Ctx; + cb = dims; + dims = []; + } + + // ctxCompat just for compat echarts3 + ctx = (ctx || this) as Ctx; + + const result: unknown[] = []; + this.each(dims, function () { + result.push(cb && (cb as MapArrayCb).apply(this, arguments)); + }, ctx); + return result; + } + + /** + * Data mapping to a new List with given dimensions + */ + map(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; + map(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; + /* eslint-disable-next-line */ + map(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; + map( + dims: ItrParamDims, + cb: MapCb, + ctx?: Ctx, + ctxCompat?: Ctx + ): SeriesData { + 'use strict'; + + // ctxCompat just for compat echarts3 + const fCtx = (ctx || ctxCompat || this) as CtxOrList; + + const dimIndices = map( + normalizeDimensions(dims), this.getDimensionIndex, this + ); + + if (__DEV__) { + validateDimensions(this, dimIndices); + } + + const list = cloneListForMapAndSample(this); + list._store = this._store.map(dimIndices, (fCtx + ? zrUtil.bind(cb as any, fCtx as any) + : cb) as any + ); + return list; + } + + /** + * Large data down sampling on given dimension + * @param sampleIndex Sample index for name and id + */ + downSample( + dimension: DimensionLoose, + rate: number, + sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, + sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number + ): SeriesData { + const list = cloneListForMapAndSample(this); + list._store = this._store.downSample( + this.getDimensionIndex(dimension), + rate, + sampleValue, + sampleIndex + ); + return list as SeriesData; + } + + /** + * Large data down sampling using largest-triangle-three-buckets + * @param {string} valueDimension + * @param {number} targetCount + */ + lttbDownSample( + valueDimension: DimensionLoose, + rate: number + ) { + const list = cloneListForMapAndSample(this); + list._store = this._store.lttbDownSample( + this.getDimensionIndex(valueDimension), + rate + ); + return list; + } + + getRawDataItem(idx: number) { + return this._store.getRawDataItem(idx); + } + /** + * Get model of one data item. + */ + // TODO: Type of data item + getItemModel(idx: number): Model + > { + const hostModel = this.hostModel; + const dataItem = this.getRawDataItem(idx) as ModelOption; + return new Model(dataItem, hostModel, hostModel && hostModel.ecModel); + } + + /** + * Create a data differ + */ + diff(otherList: SeriesData): DataDiffer { + const thisList = this; + + return new DataDiffer( + otherList ? otherList.getStore().getIndices() : [], + this.getStore().getIndices(), + function (idx: number) { + return getId(otherList, idx); + }, + function (idx: number) { + return getId(thisList, idx); + } + ); + } + + /** + * Get visual property. + */ + getVisual(key: K): Visual[K] { + const visual = this._visual as Visual; + return visual && visual[key]; + } + + /** + * Set visual property + * + * @example + * setVisual('color', color); + * setVisual({ + * 'color': color + * }); + */ + setVisual(key: K, val: Visual[K]): void; + setVisual(kvObj: Partial): void; + setVisual(kvObj: string | Partial, val?: any): void { + this._visual = this._visual || {}; + if (isObject(kvObj)) { + zrUtil.extend(this._visual, kvObj); + } + else { + this._visual[kvObj as string] = val; + } + } + + /** + * Get visual property of single data item + */ + // eslint-disable-next-line + getItemVisual(idx: number, key: K): Visual[K] { + const itemVisual = this._itemVisuals[idx] as Visual; + const val = itemVisual && itemVisual[key]; + if (val == null) { + // Use global visual property + return this.getVisual(key); + } + return val; + } + + /** + * If exists visual property of single data item + */ + hasItemVisual() { + return this._itemVisuals.length > 0; + } + + /** + * Make sure itemVisual property is unique + */ + // TODO: use key to save visual to reduce memory. + ensureUniqueItemVisual(idx: number, key: K): Visual[K] { + const itemVisuals = this._itemVisuals; + let itemVisual = itemVisuals[idx] as Visual; + if (!itemVisual) { + itemVisual = itemVisuals[idx] = {} as Visual; + } + let val = itemVisual[key]; + if (val == null) { + val = this.getVisual(key); + + // TODO Performance? + if (zrUtil.isArray(val)) { + val = val.slice() as unknown as Visual[K]; + } + else if (isObject(val)) { + val = zrUtil.extend({}, val); + } + + itemVisual[key] = val; + } + return val; + } + /** + * Set visual property of single data item + * + * @param {number} idx + * @param {string|Object} key + * @param {*} [value] + * + * @example + * setItemVisual(0, 'color', color); + * setItemVisual(0, { + * 'color': color + * }); + */ + // eslint-disable-next-line + setItemVisual(idx: number, key: K, value: Visual[K]): void; + setItemVisual(idx: number, kvObject: Partial): void; + // eslint-disable-next-line + setItemVisual(idx: number, key: K | Partial, value?: Visual[K]): void { + const itemVisual = this._itemVisuals[idx] || {}; + this._itemVisuals[idx] = itemVisual; + + if (isObject(key)) { + zrUtil.extend(itemVisual, key); + } + else { + itemVisual[key as string] = value; + } + } + + /** + * Clear itemVisuals and list visual. + */ + clearAllVisual(): void { + this._visual = {}; + this._itemVisuals = []; + } + + /** + * Set layout property. + */ + setLayout(key: string, val: any): void; + setLayout(kvObj: Dictionary): void; + setLayout(key: string | Dictionary, val?: any): void { + if (isObject(key)) { + for (const name in key) { + if (key.hasOwnProperty(name)) { + this.setLayout(name, key[name]); + } + } + return; + } + this._layout[key] = val; + } + + /** + * Get layout property. + */ + getLayout(key: string): any { + return this._layout[key]; + } + + /** + * Get layout of single data item + */ + getItemLayout(idx: number): any { + return this._itemLayouts[idx]; + } + + /** + * Set layout of single data item + */ + setItemLayout( + idx: number, + layout: (M extends true ? Dictionary : any), + merge?: M + ): void { + this._itemLayouts[idx] = merge + ? zrUtil.extend(this._itemLayouts[idx] || {}, layout) + : layout; + } + + /** + * Clear all layout of single data item + */ + clearItemLayouts(): void { + this._itemLayouts.length = 0; + } + + /** + * Set graphic element relative to data. It can be set as null + */ + setItemGraphicEl(idx: number, el: Element): void { + const hostModel = this.hostModel; + + if (el) { + const ecData = getECData(el); + // Add data index and series index for indexing the data by element + // Useful in tooltip + ecData.dataIndex = idx; + ecData.dataType = this.dataType; + ecData.seriesIndex = hostModel && (hostModel as any).seriesIndex; + + // TODO: not store dataIndex on children. + if (el.type === 'group') { + el.traverse(setItemDataAndSeriesIndex, el); + } + } + + this._graphicEls[idx] = el; + } + + getItemGraphicEl(idx: number): Element { + return this._graphicEls[idx]; + } + + eachItemGraphicEl( + cb: (this: Ctx, el: Element, idx: number) => void, + context?: Ctx + ): void { + zrUtil.each(this._graphicEls, function (el, idx) { + if (el) { + cb && cb.call(context, el, idx); + } + }); + } + + /** + * Shallow clone a new list except visual and layout properties, and graph elements. + * New list only change the indices. + */ + cloneShallow(list?: SeriesData): SeriesData { + if (!list) { + const dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this); + list = new SeriesData(dimensionInfoList, this.hostModel); + } + + transferProperties(list, this); + + return list; + } + + /** + * Wrap some method to add more feature + */ + wrapMethod( + methodName: FunctionPropertyNames, + injectFunction: (...args: any) => any + ): void { + const originalMethod = this[methodName]; + if (typeof originalMethod !== 'function') { + return; + } + this.__wrappedMethods = this.__wrappedMethods || []; + this.__wrappedMethods.push(methodName); + this[methodName] = function () { + const res = (originalMethod as any).apply(this, arguments); + return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments))); + }; + } + + + // ---------------------------------------------------------- + // A work around for internal method visiting private member. + // ---------------------------------------------------------- + private static internalField = (function () { + + prepareInvertedIndex = function (list: SeriesData): void { + const invertedIndicesMap = list._invertedIndicesMap; + zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) { + const dimInfo = list._dimensionInfos[dim]; + // Currently, only dimensions that has ordinalMeta can create inverted indices. + const ordinalMeta = dimInfo.ordinalMeta; + const store = list._store; + const dimIdx = store.getDimensionIndex(dim); + if (ordinalMeta) { + invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array( + ordinalMeta.categories.length + ); + // The default value of TypedArray is 0. To avoid miss + // mapping to 0, we should set it as INDEX_NOT_FOUND. + for (let i = 0; i < invertedIndices.length; i++) { + invertedIndices[i] = INDEX_NOT_FOUND; + } + for (let i = 0; i < store.count(); i++) { + // Only support the case that all values are distinct. + invertedIndices[store.get(dimIdx, i) as number] = i; + } + } + }); + }; + + getIdNameFromStore = function ( + list: SeriesData, dimIdx: number, idx: number + ): string { + return convertOptionIdName(list.getStore().getCategory(dimIdx, idx), null); + }; + + /** + * @see the comment of `List['getId']`. + */ + getId = function (list: SeriesData, rawIndex: number): string { + let id = list._idList[rawIndex]; + if (id == null && list._idDimIdx != null) { + id = getIdNameFromStore(list, list._idDimIdx, rawIndex); + } + if (id == null) { + id = ID_PREFIX + rawIndex; + } + return id; + }; + + normalizeDimensions = function ( + dimensions: ItrParamDims + ): Array { + if (!zrUtil.isArray(dimensions)) { + dimensions = dimensions != null ? [dimensions] : []; + } + return dimensions; + }; + + validateDimensions = function (list: SeriesData, dims: DimensionIndex[]): void { + for (let i = 0; i < dims.length; i++) { + // stroage may be empty when no data, so use + // dimensionInfos to check. + if (!list.dimensions[dims[i]]) { + console.error('Unkown dimension ' + dims[i]); + } + } + }; + + // Data in excludeDimensions is copied, otherwise transfered. + cloneListForMapAndSample = function (original: SeriesData): SeriesData { + const allDimensions = original.dimensions; + const list = new SeriesData( + map(allDimensions, original.getDimensionInfo, original), + original.hostModel + ); + // FIXME If needs stackedOn, value may already been stacked + transferProperties(list, original); + return list; + }; + + setItemDataAndSeriesIndex = function (this: Element, child: Element): void { + const childECData = getECData(child); + const thisECData = getECData(this); + childECData.seriesIndex = thisECData.seriesIndex; + childECData.dataIndex = thisECData.dataIndex; + childECData.dataType = thisECData.dataType; + }; + + transferProperties = function (target: SeriesData, source: SeriesData): void { + zrUtil.each( + TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), + function (propName) { + if (source.hasOwnProperty(propName)) { + (target as any)[propName] = (source as any)[propName]; + } + } + ); + + target.__wrappedMethods = source.__wrappedMethods; + + zrUtil.each(CLONE_PROPERTIES, function (propName) { + (target as any)[propName] = zrUtil.clone((source as any)[propName]); + }); + + target._calculationInfo = zrUtil.extend({}, source._calculationInfo); + }; + + })(); + +} + +interface SeriesData { + getLinkedData(dataType?: SeriesDataType): SeriesData; + getLinkedDataAll(): { data: SeriesData, type?: SeriesDataType }[]; +} + +export default SeriesData; diff --git a/src/data/Tree.ts b/src/data/Tree.ts index 684fcb83e7..207e451d78 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -23,8 +23,8 @@ import * as zrUtil from 'zrender/src/core/util'; import Model from '../model/Model'; -import linkList from './helper/linkList'; -import List from './List'; +import linkSeriesData from './helper/linkSeriesData'; +import SeriesData from './SeriesData'; import createDimensions from './helper/createDimensions'; import { DimensionLoose, ParsedValue, OptionDataValue, @@ -307,7 +307,7 @@ class Tree { root: TreeNode; - data: List; + data: SeriesData; hostModel: HostModel; @@ -399,7 +399,7 @@ class Tree { static createTree( dataRoot: T, hostModel: HostModel, - beforeLink?: (data: List) => void + beforeLink?: (data: SeriesData) => void ) { const tree = new Tree(hostModel); @@ -436,12 +436,12 @@ class Tree { dimensionsCount: dimMax }); - const list = new List(dimensionsInfo, hostModel); + const list = new SeriesData(dimensionsInfo, hostModel); list.initData(listData); beforeLink && beforeLink(list); - linkList({ + linkSeriesData({ mainData: list, struct: tree, structAttr: 'tree' diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts index f95122b89f..b0afd04783 100644 --- a/src/data/helper/completeDimensions.ts +++ b/src/data/helper/completeDimensions.ts @@ -31,7 +31,7 @@ import { EncodeDefaulter, OptionEncodeValue, OptionEncode, DimensionName, DimensionIndex, DataVisualDimensions } from '../../util/types'; import DataDimensionInfo from '../DataDimensionInfo'; -import List from '../List'; +import SeriesData from '../SeriesData'; import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './createDimensions'; @@ -76,7 +76,7 @@ import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './creat */ function completeDimensions( sysDims: CoordDimensionDefinitionLoose[], - source: Source | List | OptionSourceData, + source: Source | SeriesData | OptionSourceData, opt: { dimsDef?: DimensionDefinitionLoose[]; encodeDef?: HashMap | OptionEncode; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 102104c5e0..82a625a279 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -26,7 +26,7 @@ import { DimensionDefinitionLoose, OptionEncode, OptionEncodeValue, EncodeDefaulter, OptionSourceData, DimensionName, DimensionDefinition, DataVisualDimensions, DimensionIndex } from '../../util/types'; -import List from '../List'; +import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; import { HashMap } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; @@ -60,7 +60,7 @@ export type CreateDimensionsParams = { */ export default function createDimensions( // TODO: TYPE completeDimensions type - source: Source | List | OptionSourceData, + source: Source | SeriesData | OptionSourceData, opt?: CreateDimensionsParams ): DataDimensionInfo[] { opt = opt || {}; diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 94a60fb871..5dc74c0bc2 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -36,7 +36,7 @@ import { DimensionName, DimensionIndex, OptionSourceData, DimensionIndexLoose, OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue } from '../../util/types'; -import List from '../List'; +import SeriesData from '../SeriesData'; export interface DataProvider { /** @@ -469,7 +469,7 @@ function getMethodMapKey(sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayou // value may be 0.91000000001, which have brings trouble to display. // TODO: consider how to treat null/undefined/NaN when display? export function retrieveRawValue( - data: List, dataIndex: number, dim?: DimensionName | DimensionIndexLoose + data: SeriesData, dataIndex: number, dim?: DimensionName | DimensionIndexLoose // If dimIndex is null/undefined, return OptionDataItem. // Otherwise, return OptionDataValue. ): OptionDataValue | OptionDataItem { @@ -484,7 +484,7 @@ export function retrieveRawValue( return; } - const sourceFormat = data.getProvider().getSource().sourceFormat; + const sourceFormat = data.getStore().getProvider().getSource().sourceFormat; let dimName; let dimIndex; @@ -510,12 +510,12 @@ export function retrieveRawValue( * @param dataIndex * @param attr like 'selected' */ -export function retrieveRawAttr(data: List, dataIndex: number, attr: string): any { +export function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: string): any { if (!data) { return; } - const sourceFormat = data.getProvider().getSource().sourceFormat; + const sourceFormat = data.getStore().getProvider().getSource().sourceFormat; if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index cef669caf3..0343014c09 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -20,7 +20,7 @@ import {each, isString} from 'zrender/src/core/util'; import DataDimensionInfo from '../DataDimensionInfo'; import SeriesModel from '../../model/Series'; -import List, { DataCalculationInfo } from '../List'; +import SeriesData, { DataCalculationInfo } from '../SeriesData'; import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types'; @@ -30,7 +30,7 @@ import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../ * we just support that stacked by index. * * @param seriesModel - * @param dimensionInfoList The same as the input of . + * @param dimensionInfoList The same as the input of . * The input dimensionInfoList will be modified. * @param opt * @param opt.stackedCoordDimension Specify a coord dimension if needed. @@ -154,7 +154,7 @@ export function enableDataStack( }; } -export function isDimensionStacked(data: List, stackedDim: string /*, stackedByDim*/): boolean { +export function isDimensionStacked(data: SeriesData, stackedDim: string /*, stackedByDim*/): boolean { // Each single series only maps to one pair of axis. So we do not need to // check stackByDim, whatever stacked by a dimension or stacked by index. return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); @@ -165,7 +165,7 @@ export function isDimensionStacked(data: List, stackedDim: string /*, stackedByD // ); } -export function getStackedDimension(data: List, targetDim: string): DimensionName { +export function getStackedDimension(data: SeriesData, targetDim: string): DimensionName { return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim; diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index b38062dbf3..425271f582 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -19,10 +19,11 @@ import {each, createHashMap, assert} from 'zrender/src/core/util'; -import List, { ListDimensionType } from '../List'; +import SeriesData from '../SeriesData'; import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex } from '../../util/types'; +import { DataStoreDimensionType } from '../DataStorage'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], @@ -40,7 +41,7 @@ export type DimensionSummary = { encodeFirstDimNotExtra: {[coordDim: string]: DimensionName}, }; -export function summarizeDimensions(data: List): DimensionSummary { +export function summarizeDimensions(data: SeriesData): DimensionSummary { const summary: DimensionSummary = {} as DimensionSummary; const encode = summary.encode = {} as DimensionSummaryEncode; const notExtraCoordDimMap = createHashMap<1, DimensionName>(); @@ -140,7 +141,7 @@ function getOrCreateEncodeArr( } // FIXME:TS should be type `AxisType` -export function getDimensionTypeByAxis(axisType: string): ListDimensionType { +export function getDimensionTypeByAxis(axisType: string): DataStoreDimensionType { return axisType === 'category' ? 'ordinal' : axisType === 'time' diff --git a/src/data/helper/linkList.ts b/src/data/helper/linkSeriesData.ts similarity index 75% rename from src/data/helper/linkList.ts rename to src/data/helper/linkSeriesData.ts index a7cecc484c..2b767cf427 100644 --- a/src/data/helper/linkList.ts +++ b/src/data/helper/linkSeriesData.ts @@ -23,37 +23,37 @@ */ import { curry, each, assert, extend, map, keys } from 'zrender/src/core/util'; -import List from '../List'; +import SeriesData from '../SeriesData'; import { makeInner } from '../../util/model'; import { SeriesDataType } from '../../util/types'; // That is: { dataType: data }, // like: { node: nodeList, edge: edgeList }. // Should contain mainData. -type Datas = { [key in SeriesDataType]?: List }; +type Datas = { [key in SeriesDataType]?: SeriesData }; type StructReferDataAttr = 'data' | 'edgeData'; type StructAttr = 'tree' | 'graph'; const inner = makeInner<{ datas: Datas; - mainData: List; -}, List>(); + mainData: SeriesData; +}, SeriesData>(); // Caution: -// In most case, either list or its shallow clones (see list.cloneShallow) +// In most case, either seriesData or its shallow clones (see seriesData.cloneShallow) // is active in echarts process. So considering heap memory consumption, -// we do not clone tree or graph, but share them among list and its shallow clones. -// But in some rare case, we have to keep old list (like do animation in chart). So -// please take care that both the old list and the new list share the same tree/graph. +// we do not clone tree or graph, but share them among seriesData and its shallow clones. +// But in some rare case, we have to keep old seriesData (like do animation in chart). So +// please take care that both the old seriesData and the new seriesData share the same tree/graph. -type LinkListOpt = { - mainData: List; +type LinkSeriesDataOpt = { + mainData: SeriesData; // For example, instance of Graph or Tree. struct: { update: () => void; } & { - [key in StructReferDataAttr]?: List + [key in StructReferDataAttr]?: SeriesData }; // Will designate: `mainData[structAttr] = struct;` structAttr: StructAttr; @@ -63,7 +63,7 @@ type LinkListOpt = { datasAttr?: { [key in SeriesDataType]?: StructReferDataAttr }; }; -function linkList(opt: LinkListOpt): void { +function linkSeriesData(opt: LinkSeriesDataOpt): void { const mainData = opt.mainData; let datas = opt.datas; @@ -76,7 +76,7 @@ function linkList(opt: LinkListOpt): void { linkAll(mainData, datas, opt); // Porxy data original methods. - each(datas, function (data: List) { + each(datas, function (data: SeriesData) { each(mainData.TRANSFERABLE_METHODS, function (methodName) { data.wrapMethod(methodName, curry(transferInjection, opt)); }); @@ -95,7 +95,7 @@ function linkList(opt: LinkListOpt): void { assert(datas[mainData.dataType] === mainData); } -function transferInjection(this: List, opt: LinkListOpt, res: List): unknown { +function transferInjection(this: SeriesData, opt: LinkSeriesDataOpt, res: SeriesData): unknown { if (isMainData(this)) { // Transfer datas to new main data. const datas = extend({}, inner(this).datas); @@ -109,17 +109,17 @@ function transferInjection(this: List, opt: LinkListOpt, res: List): unknown { return res; } -function changeInjection(opt: LinkListOpt, res: unknown): unknown { +function changeInjection(opt: LinkSeriesDataOpt, res: unknown): unknown { opt.struct && opt.struct.update(); return res; } -function cloneShallowInjection(opt: LinkListOpt, res: List): List { +function cloneShallowInjection(opt: LinkSeriesDataOpt, res: SeriesData): SeriesData { // cloneShallow, which brings about some fragilities, may be inappropriate // to be exposed as an API. So for implementation simplicity we can make // the restriction that cloneShallow of not-mainData should not be invoked // outside, but only be invoked here. - each(inner(res).datas, function (data: List, dataType) { + each(inner(res).datas, function (data: SeriesData, dataType) { data !== res && linkSingle(data.cloneShallow(), dataType, res, opt); }); return res; @@ -131,7 +131,7 @@ function cloneShallowInjection(opt: LinkListOpt, res: List): List { * @public * @param [dataType] If not specified, return mainData. */ -function getLinkedData(this: List, dataType?: SeriesDataType): List { +function getLinkedData(this: SeriesData, dataType?: SeriesDataType): SeriesData { const mainData = inner(this).mainData; return (dataType == null || mainData == null) ? mainData @@ -141,8 +141,8 @@ function getLinkedData(this: List, dataType?: SeriesDataType): List { /** * Get list of all linked data */ -function getLinkedDataAll(this: List): { - data: List, +function getLinkedDataAll(this: SeriesData): { + data: SeriesData, type?: SeriesDataType }[] { const mainData = inner(this).mainData; @@ -156,18 +156,18 @@ function getLinkedDataAll(this: List): { }); } -function isMainData(data: List): boolean { +function isMainData(data: SeriesData): boolean { return inner(data).mainData === data; } -function linkAll(mainData: List, datas: Datas, opt: LinkListOpt): void { +function linkAll(mainData: SeriesData, datas: Datas, opt: LinkSeriesDataOpt): void { inner(mainData).datas = {}; - each(datas, function (data: List, dataType) { + each(datas, function (data: SeriesData, dataType) { linkSingle(data, dataType, mainData, opt); }); } -function linkSingle(data: List, dataType: SeriesDataType, mainData: List, opt: LinkListOpt): void { +function linkSingle(data: SeriesData, dataType: SeriesDataType, mainData: SeriesData, opt: LinkSeriesDataOpt): void { inner(mainData).datas[dataType] = data; inner(data).mainData = mainData; @@ -183,4 +183,4 @@ function linkSingle(data: List, dataType: SeriesDataType, mainData: List, opt: L data.getLinkedDataAll = getLinkedDataAll; } -export default linkList; +export default linkSeriesData; diff --git a/src/export/api.ts b/src/export/api.ts index 1d84814ada..9279b3c514 100644 --- a/src/export/api.ts +++ b/src/export/api.ts @@ -53,7 +53,7 @@ export * as util from './api/util'; export {default as env} from 'zrender/src/core/env'; //////////////// Export for Exension Usage //////////////// -export {default as List} from '../data/List'; +export {default as SeriesData} from '../data/SeriesData'; export {default as Model} from '../model/Model'; export {default as Axis} from '../coord/Axis'; diff --git a/src/export/api/helper.ts b/src/export/api/helper.ts index 07d6cef2c7..614d2107de 100644 --- a/src/export/api/helper.ts +++ b/src/export/api/helper.ts @@ -22,7 +22,7 @@ */ import * as zrUtil from 'zrender/src/core/util'; -import createListFromArray from '../../chart/helper/createListFromArray'; +import createSeriesDataFromArray from '../../chart/helper/createSeriesDataFromArray'; // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge'; import * as axisHelper from '../../coord/axisHelper'; import {AxisModelCommonMixin} from '../../coord/axisModelCommonMixin'; @@ -43,7 +43,7 @@ import { DisplayState, TextCommonOption } from '../../util/types'; * Create a muti dimension List structure from seriesModel. */ export function createList(seriesModel: SeriesModel) { - return createListFromArray(seriesModel.getSource(), seriesModel); + return createSeriesDataFromArray(seriesModel.getSource(), seriesModel); } // export function createGraph(seriesModel) { diff --git a/src/label/labelStyle.ts b/src/label/labelStyle.ts index def6b19f1b..606aa948f1 100644 --- a/src/label/labelStyle.ts +++ b/src/label/labelStyle.ts @@ -38,7 +38,7 @@ import { isFunction, retrieve2, extend, keys, trim } from 'zrender/src/core/util import { SPECIAL_STATES, DISPLAY_STATES } from '../util/states'; import { deprecateReplaceLog } from '../util/log'; import { makeInner, interpolateRawValues } from '../util/model'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { initProps, updateProps } from '../util/graphic'; import { getECData } from '../util/innerStore'; @@ -688,7 +688,7 @@ export function setLabelValueAnimation( export function animateLabelValue( textEl: ZRText, dataIndex: number, - data: List, + data: SeriesData, animatableModel: Model, labelFetcher: SetLabelStyleOpt['labelFetcher'] ) { diff --git a/src/layout/barGrid.ts b/src/layout/barGrid.ts index edf64007aa..b389d7a312 100644 --- a/src/layout/barGrid.ts +++ b/src/layout/barGrid.ts @@ -472,7 +472,7 @@ export function layout(seriesType: string, ecModel: GlobalModel) { const valueDim = data.mapDimension(valueAxis.dim); const baseDim = data.mapDimension(baseAxis.dim); - const stacked = isDimensionStacked(data, valueDim /*, baseDim*/); + const stacked = isDimensionStacked(data, valueDim); const isValueAxisH = valueAxis.isHorizontal(); const valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked); diff --git a/src/layout/points.ts b/src/layout/points.ts index 8946852ef1..2d138be67f 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -69,18 +69,19 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? const tmpIn: ParsedValueNumeric[] = []; const tmpOut: number[] = []; + const store = data.getStore(); for (let i = params.start, offset = 0; i < params.end; i++) { let point; if (dimLen === 1) { - const x = data.getByDimIdx(dimIdx0, i) as ParsedValueNumeric; + const x = store.get(dimIdx0, i) as ParsedValueNumeric; // NOTE: Make sure the second parameter is null to use default strategy. point = coordSys.dataToPoint(x, null, tmpOut); } else { - tmpIn[0] = data.getByDimIdx(dimIdx0, i) as ParsedValueNumeric; - tmpIn[1] = data.getByDimIdx(dimIdx1, i) as ParsedValueNumeric; + tmpIn[0] = store.get(dimIdx0, i) as ParsedValueNumeric; + tmpIn[1] = store.get(dimIdx1, i) as ParsedValueNumeric; // Let coordinate system to handle the NaN data. point = coordSys.dataToPoint(tmpIn, null, tmpOut); } diff --git a/src/model/Series.ts b/src/model/Series.ts index 9ee54c8e30..a47d819f14 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -40,7 +40,7 @@ import { CoordinateSystem } from '../coord/CoordinateSystem'; import { ExtendableConstructor, mountExtend, Constructor } from '../util/clazz'; import { PipelineContext, SeriesTaskContext, GeneralTask, OverallTask, SeriesTask } from '../core/Scheduler'; import LegendVisualProvider from '../visual/LegendVisualProvider'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import Axis from '../coord/Axis'; import type { BrushCommonSelectorsForSeries, BrushSelectableArea } from '../component/brush/selector'; import makeStyleMapper from './mixin/makeStyleMapper'; @@ -52,12 +52,12 @@ import {Group} from '../util/graphic'; import {LegendIconParams} from '../component/legend/LegendModel'; const inner = modelUtil.makeInner<{ - data: List - dataBeforeProcessed: List + data: SeriesData + dataBeforeProcessed: SeriesData sourceManager: SourceManager }, SeriesModel>(); -function getSelectionKey(data: List, dataIndex: number): string { +function getSelectionKey(data: SeriesData, dataIndex: number): string { return data.getName(dataIndex) || data.getId(dataIndex); } @@ -105,7 +105,7 @@ interface SeriesModel { */ brushSelector( dataIndex: number, - data: List, + data: SeriesData, selectors: BrushCommonSelectorsForSeries, area: BrushSelectableArea ): boolean; @@ -220,7 +220,7 @@ class SeriesModel extends ComponentMode // dataBeforeProcessed by cloneShallow), cloneShallow will // cause data.graph.data !== data when using // module:echarts/data/Graph or module:echarts/data/Tree. - // See module:echarts/data/helper/linkList + // See module:echarts/data/helper/linkSeriesData // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model // init or merge stage, because the data can be restored. So we do not `restoreData` @@ -314,7 +314,7 @@ class SeriesModel extends ComponentMode * Init a data structure from data related option in series * Must be overriden. */ - getInitialData(option: Opt, ecModel: GlobalModel): List { + getInitialData(option: Opt, ecModel: GlobalModel): SeriesData { return; } @@ -335,23 +335,23 @@ class SeriesModel extends ComponentMode * data in the stream procedure. So we fetch data from upstream * each time `task.perform` called. */ - getData(dataType?: SeriesDataType): List { + getData(dataType?: SeriesDataType): SeriesData { const task = getCurrentTask(this); if (task) { const data = task.context.data; - return (dataType == null ? data : data.getLinkedData(dataType)) as List; + return (dataType == null ? data : data.getLinkedData(dataType)) as SeriesData; } else { // When series is not alive (that may happen when click toolbox // restore or setOption with not merge mode), series data may // be still need to judge animation or something when graphic // elements want to know whether fade out. - return inner(this).data as List; + return inner(this).data as SeriesData; } } getAllData(): ({ - data: List, + data: SeriesData, type?: SeriesDataType })[] { const mainData = this.getData(); @@ -360,7 +360,7 @@ class SeriesModel extends ComponentMode : [{ data: mainData }]; } - setData(data: List): void { + setData(data: SeriesData): void { const task = getCurrentTask(this); if (task) { const context = task.context; @@ -392,7 +392,7 @@ class SeriesModel extends ComponentMode /** * Get data before processed */ - getRawData(): List { + getRawData(): SeriesData { return inner(this).dataBeforeProcessed; } @@ -541,7 +541,6 @@ class SeriesModel extends ComponentMode return true; } - // NOTE: don't support define universalTransition in global option yet. const universalTransitionOpt = this.option.universalTransition; // Quick reject if (!universalTransitionOpt) { @@ -556,7 +555,7 @@ class SeriesModel extends ComponentMode return universalTransitionOpt && universalTransitionOpt.enabled; } - private _innerSelect(data: List, innerDataIndices: number[]) { + private _innerSelect(data: SeriesData, innerDataIndices: number[]) { const selectedMode = this.option.selectedMode; const len = innerDataIndices.length; if (!selectedMode || !len) { @@ -585,7 +584,7 @@ class SeriesModel extends ComponentMode } } - private _initSelectedMapFromData(data: List) { + private _initSelectedMapFromData(data: SeriesData) { // Ignore select info in data if selectedMap exists. // NOTE It's only for legacy usage. edge data is not supported. if (this.option.selectedMap) { @@ -676,13 +675,13 @@ function dataTaskProgress(param: StageHandlerProgressParams, context: SeriesTask } // TODO refactor -function wrapData(data: List, seriesModel: SeriesModel): void { +function wrapData(data: SeriesData, seriesModel: SeriesModel): void { zrUtil.each([...data.CHANGABLE_METHODS, ...data.DOWNSAMPLE_METHODS], function (methodName) { data.wrapMethod(methodName as any, zrUtil.curry(onDataChange, seriesModel)); }); } -function onDataChange(this: List, seriesModel: SeriesModel, newList: List): List { +function onDataChange(this: SeriesData, seriesModel: SeriesModel, newList: SeriesData): SeriesData { const task = getCurrentTask(seriesModel); if (task) { // Consider case: filter, selectRange diff --git a/src/processor/dataStack.ts b/src/processor/dataStack.ts index e9559cbad2..88cdc6839e 100644 --- a/src/processor/dataStack.ts +++ b/src/processor/dataStack.ts @@ -21,7 +21,7 @@ import {createHashMap, each} from 'zrender/src/core/util'; import GlobalModel from '../model/Global'; import SeriesModel from '../model/Series'; import { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../util/types'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { addSafe } from '../util/number'; interface StackInfo { @@ -30,7 +30,7 @@ interface StackInfo { stackedByDimension: DimensionName stackResultDimension: DimensionName stackedOverDimension: DimensionName - data: List + data: SeriesData seriesModel: SeriesModel } // (1) [Caution]: the logic is correct based on the premises: diff --git a/src/scale/Log.ts b/src/scale/Log.ts index 11a1c84fa7..f8c3258b49 100644 --- a/src/scale/Log.ts +++ b/src/scale/Log.ts @@ -24,7 +24,7 @@ import * as scaleHelper from './helper'; // Use some method of IntervalScale import IntervalScale from './Interval'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { DimensionName, ScaleTick } from '../util/types'; const scaleProto = Scale.prototype; @@ -118,7 +118,7 @@ class LogScale extends Scale { scaleProto.unionExtent.call(this, extent); } - unionExtentFromData(data: List, dim: DimensionName): void { + unionExtentFromData(data: SeriesData, dim: DimensionName): void { // TODO // filter value that <= 0 this.unionExtent(data.getApproximateExtent(dim)); diff --git a/src/scale/Ordinal.ts b/src/scale/Ordinal.ts index 76f515a0c5..7f23c2d4cc 100644 --- a/src/scale/Ordinal.ts +++ b/src/scale/Ordinal.ts @@ -26,7 +26,7 @@ import Scale from './Scale'; import OrdinalMeta from '../data/OrdinalMeta'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import * as scaleHelper from './helper'; import { OrdinalRawValue, @@ -263,7 +263,7 @@ class OrdinalScale extends Scale { return this._extent[1] - this._extent[0] + 1; } - unionExtentFromData(data: List, dim: DimensionLoose) { + unionExtentFromData(data: SeriesData, dim: DimensionLoose) { this.unionExtent(data.getApproximateExtent(dim)); } diff --git a/src/scale/Scale.ts b/src/scale/Scale.ts index 701013c5d9..afae3f46b7 100644 --- a/src/scale/Scale.ts +++ b/src/scale/Scale.ts @@ -20,7 +20,7 @@ import * as clazzUtil from '../util/clazz'; import { Dictionary } from 'zrender/src/core/types'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { DimensionName, ScaleDataValue, @@ -91,7 +91,7 @@ abstract class Scale = Dictionary> /** * Set extent from data */ - unionExtentFromData(data: List, dim: DimensionName | DimensionLoose): void { + unionExtentFromData(data: SeriesData, dim: DimensionName | DimensionLoose): void { this.unionExtent(data.getApproximateExtent(dim)); } diff --git a/src/util/model.ts b/src/util/model.ts index b640ec6017..a16377efa8 100644 --- a/src/util/model.ts +++ b/src/util/model.ts @@ -32,7 +32,7 @@ import { import env from 'zrender/src/core/env'; import GlobalModel from '../model/Global'; import ComponentModel, {ComponentModelConstructor} from '../model/Component'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { ComponentOption, ComponentMainType, @@ -686,7 +686,7 @@ export function compressBatches( * each of which can be Array or primary type. * @return dataIndex If not found, return undefined/null. */ -export function queryDataIndex(data: List, payload: Payload & { +export function queryDataIndex(data: SeriesData, payload: Payload & { dataIndexInside?: number | number[] dataIndex?: number | number[] name?: string | string[] @@ -1032,7 +1032,7 @@ export function groupData( * Other cases do not supported. */ export function interpolateRawValues( - data: List, + data: SeriesData, precision: number | 'auto', sourceValue: InterpolatableValue, targetValue: InterpolatableValue, diff --git a/src/util/states.ts b/src/util/states.ts index aa78811d33..ac5e01c890 100644 --- a/src/util/states.ts +++ b/src/util/states.ts @@ -41,7 +41,7 @@ import { import { extend, indexOf, isArrayLike, isObject, keys, isArray, each } from 'zrender/src/core/util'; import { getECData } from './innerStore'; import * as colorTool from 'zrender/src/tool/color'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import SeriesModel from '../model/Series'; import { CoordinateSystemMaster, CoordinateSystem } from '../coord/CoordinateSystem'; import { queryDataIndex, makeInner } from './model'; @@ -422,7 +422,7 @@ export function blurSeries( const ecModel = api.getModel(); blurScope = blurScope || 'coordinateSystem'; - function leaveBlurOfIndices(data: List, dataIndices: ArrayLike) { + function leaveBlurOfIndices(data: SeriesData, dataIndices: ArrayLike) { for (let i = 0; i < dataIndices.length; i++) { const itemEl = data.getItemGraphicEl(dataIndices[i]); itemEl && leaveBlur(itemEl); diff --git a/src/util/types.ts b/src/util/types.ts index 225d6cb93e..3e4dd222e7 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -33,7 +33,7 @@ import ExtensionAPI from '../core/ExtensionAPI'; import SeriesModel from '../model/Series'; import { createHashMap, HashMap } from 'zrender/src/core/util'; import { TaskPlanCallbackReturn, TaskProgressParams } from '../core/task'; -import List, {ListDimensionType} from '../data/List'; +import SeriesData from '../data/SeriesData'; import { Dictionary, ElementEventName, ImageLike, TextAlign, TextVerticalAlign } from 'zrender/src/core/types'; import { PatternObject } from 'zrender/src/graphic/Pattern'; import { TooltipMarker } from './format'; @@ -47,6 +47,7 @@ import { ImageStyleProps } from 'zrender/src/graphic/Image'; import ZRText, { TextStyleProps } from 'zrender/src/graphic/Text'; import { Source } from '../data/Source'; import Model from '../model/Model'; +import { DataStoreDimensionType } from '../data/DataStorage'; @@ -128,7 +129,7 @@ export interface ECElement extends Element { } export interface DataHost { - getData(dataType?: SeriesDataType): List; + getData(dataType?: SeriesDataType): SeriesData; } export interface DataModel extends Model, DataHost, DataFormatMixin {} @@ -300,8 +301,8 @@ export interface StageHandlerInternal extends StageHandler { export type StageHandlerProgressParams = TaskProgressParams; export interface StageHandlerProgressExecutor { - dataEach?: (data: List, idx: number) => void; - progress?: (params: StageHandlerProgressParams, data: List) => void; + dataEach?: (data: SeriesData, idx: number) => void; + progress?: (params: StageHandlerProgressParams, data: SeriesData) => void; } export type StageHandlerPlanReturn = TaskPlanCallbackReturn; export interface StageHandlerPlan { @@ -355,11 +356,11 @@ export type OrdinalSortInfo = { /** * `OptionDataValue` is the primitive value in `series.data` or `dataset.source`. * `OptionDataValue` are parsed (see `src/data/helper/dataValueHelper.parseDataValue`) - * into `ParsedValue` and stored into `data/List` storage. + * into `ParsedValue` and stored into `data/SeriesData` storage. * Note: * (1) The term "parse" does not mean `src/scale/Scale['parse']`. * (2) If a category dimension is not mapped to any axis, its raw value will NOT be - * parsed to `OrdinalNumber` but keep the original `OrdinalRawValue` in `src/data/List` storage. + * parsed to `OrdinalNumber` but keep the original `OrdinalRawValue` in `src/data/SeriesData` storage. */ export type ParsedValue = ParsedValueNumeric | OrdinalRawValue; export type ParsedValueNumeric = number | OrdinalNumber; @@ -414,7 +415,7 @@ export type DimensionIndex = number; export type DimensionIndexLoose = DimensionIndex | string; export type DimensionName = string; export type DimensionLoose = DimensionName | DimensionIndexLoose; -export type DimensionType = ListDimensionType; +export type DimensionType = DataStoreDimensionType; export const VISUAL_DIMENSIONS = createHashMap([ 'tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'seriesName' @@ -436,7 +437,7 @@ export interface DataVisualDimensions { } export type DimensionDefinition = { - type?: ListDimensionType, + type?: DataStoreDimensionType, name?: DimensionName, displayName?: string }; diff --git a/src/view/Chart.ts b/src/view/Chart.ts index eb9db4a2d1..8f32838f3f 100644 --- a/src/view/Chart.ts +++ b/src/view/Chart.ts @@ -34,7 +34,7 @@ import { StageHandlerPlanReturn, DisplayState, StageHandlerProgressParams, ECElementEvent } from '../util/types'; import { SeriesTaskContext, SeriesTask } from '../core/Scheduler'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; const inner = modelUtil.makeInner<{ updateMethod: keyof ChartView @@ -206,7 +206,7 @@ function elSetState(el: Element, state: DisplayState, highlightDigit: number) { } } -function toggleHighlight(data: List, payload: Payload, state: DisplayState) { +function toggleHighlight(data: SeriesData, payload: Payload, state: DisplayState) { const dataIndex = modelUtil.queryDataIndex(data, payload); const highlightDigit = (payload && payload.highlightKey != null) diff --git a/src/visual/LegendVisualProvider.ts b/src/visual/LegendVisualProvider.ts index c62297eadd..c4ff79a3f8 100644 --- a/src/visual/LegendVisualProvider.ts +++ b/src/visual/LegendVisualProvider.ts @@ -1,4 +1,4 @@ -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; /* * Licensed to the Apache Software Foundation (ASF) under one @@ -26,14 +26,14 @@ import List from '../data/List'; */ class LegendVisualProvider { - private _getDataWithEncodedVisual: () => List; - private _getRawData: () => List; + private _getDataWithEncodedVisual: () => SeriesData; + private _getRawData: () => SeriesData; constructor( // Function to get data after filtered. It stores all the encoding info - getDataWithEncodedVisual: () => List, + getDataWithEncodedVisual: () => SeriesData, // Function to get raw data before filtered. - getRawData: () => List + getRawData: () => SeriesData ) { this._getDataWithEncodedVisual = getDataWithEncodedVisual; this._getRawData = getRawData; diff --git a/src/visual/commonVisualTypes.ts b/src/visual/commonVisualTypes.ts index e279a4cfd2..7b812141ad 100644 --- a/src/visual/commonVisualTypes.ts +++ b/src/visual/commonVisualTypes.ts @@ -17,7 +17,7 @@ * under the License. */ -import { DefaultDataVisual } from '../data/List'; +import { DefaultDataVisual } from '../data/SeriesData'; export interface LineDataVisual extends DefaultDataVisual { fromSymbol: string diff --git a/src/visual/helper.ts b/src/visual/helper.ts index e419a9a524..5c60f6f99d 100644 --- a/src/visual/helper.ts +++ b/src/visual/helper.ts @@ -24,10 +24,10 @@ * In the List module storage: * 'style', 'symbol', 'symbolSize'... */ -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; -export function getItemVisualFromData(data: List, dataIndex: number, key: string) { +export function getItemVisualFromData(data: SeriesData, dataIndex: number, key: string) { switch (key) { case 'color': const style = data.getItemVisual(dataIndex, 'style'); @@ -45,7 +45,7 @@ export function getItemVisualFromData(data: List, dataIndex: number, key: string } } -export function getVisualFromData(data: List, key: string) { +export function getVisualFromData(data: SeriesData, key: string) { switch (key) { case 'color': const style = data.getVisual('style'); @@ -63,7 +63,7 @@ export function getVisualFromData(data: List, key: string) { } } -export function setItemVisualFromData(data: List, dataIndex: number, key: string, value: any) { +export function setItemVisualFromData(data: SeriesData, dataIndex: number, key: string, value: any) { switch (key) { case 'color': // Make sure not sharing style object. diff --git a/src/visual/symbol.ts b/src/visual/symbol.ts index 1e17689c5a..019d536177 100644 --- a/src/visual/symbol.ts +++ b/src/visual/symbol.ts @@ -28,7 +28,7 @@ import { SymbolRotateCallback, SymbolOffsetCallback } from '../util/types'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import SeriesModel from '../model/Series'; import GlobalModel from '../model/Global'; @@ -91,7 +91,7 @@ const seriesSymbolTask: StageHandler = { return; } - function dataEach(data: List, idx: number) { + function dataEach(data: SeriesData, idx: number) { const rawValue = seriesModel.getRawValue(idx); const params = seriesModel.getDataParams(idx); hasSymbolTypeCallback && data.setItemVisual( @@ -133,7 +133,7 @@ const dataSymbolTask: StageHandler = { const data = seriesModel.getData(); - function dataEach(data: List, idx: number) { + function dataEach(data: SeriesData, idx: number) { const itemModel = data.getItemModel(idx); const itemSymbolType = itemModel.getShallow('symbol', true); const itemSymbolSize = itemModel.getShallow('symbolSize', true); diff --git a/src/visual/visualSolution.ts b/src/visual/visualSolution.ts index accd72dd0f..2f014a8256 100644 --- a/src/visual/visualSolution.ts +++ b/src/visual/visualSolution.ts @@ -30,7 +30,7 @@ import { DimensionLoose, StageHandlerProgressExecutor } from '../util/types'; -import List from '../data/List'; +import SeriesData from '../data/SeriesData'; import { getItemVisualFromData, setItemVisualFromData } from './helper'; const each = zrUtil.each; @@ -135,7 +135,7 @@ export function replaceVisualOption( export function applyVisual( stateList: readonly VisualState[], visualMappings: VisualMappingCollection, - data: List, + data: SeriesData, getValueState: (this: Scope, valueOrIndex: ParsedValue | number) => VisualState, scope?: Scope, dimension?: DimensionLoose diff --git a/test/ut/spec/data/List.test.ts b/test/ut/spec/data/SeriesData.test.ts similarity index 92% rename from test/ut/spec/data/List.test.ts rename to test/ut/spec/data/SeriesData.test.ts index c136afc31b..6442cf3d07 100644 --- a/test/ut/spec/data/List.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -20,7 +20,7 @@ /* global Float32Array */ -import List from '../../../../src/data/List'; +import SeriesData from '../../../../src/data/SeriesData'; import Model from '../../../../src/model/Model'; import { createSourceFromSeriesDataOption, Source, createSource } from '../../../../src/data/Source'; import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS } from '../../../../src/util/types'; @@ -37,7 +37,7 @@ describe('List', function () { describe('Data Manipulation', function () { it('initData 1d', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([10, 20, 30]); expect(list.get('x', 0)).toEqual(10); expect(list.get('x', 1)).toEqual(20); @@ -46,21 +46,21 @@ describe('List', function () { }); it('initData 2d', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([[10, 15], [20, 25], [30, 35]]); expect(list.get('x', 1)).toEqual(20); expect(list.get('y', 1)).toEqual(25); }); it('initData 2d yx', function () { - const list = new List(['y', 'x'], new Model()); + const list = new SeriesData(['y', 'x'], new Model()); list.initData([[10, 15], [20, 25], [30, 35]]); expect(list.get('x', 1)).toEqual(25); expect(list.get('y', 1)).toEqual(20); }); it('Data with option 1d', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([ 1, { @@ -73,17 +73,17 @@ describe('List', function () { }); it('Empty data', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([1, '-']); expect(list.get('y', 1)).toBeNaN(); }); it('getRawValue', function () { - const list1 = new List(['x', 'y'], new Model()); + const list1 = new SeriesData(['x', 'y'], new Model()); // here construct a new list2 because if we only use one list // to call initData() twice, list._chunkCount will be accumulated // to 1 instead of 0. - const list2 = new List(['x', 'y'], new Model()); + const list2 = new SeriesData(['x', 'y'], new Model()); list1.initData([1, 2, 3]); expect(list1.getItemModel(1).option).toEqual(2); @@ -93,22 +93,22 @@ describe('List', function () { }); it('indexOfRawIndex', function () { - const list = new List(['x'], new Model()); + const list = new SeriesData(['x'], new Model()); list.initData([]); expect(list.indexOfRawIndex(1)).toEqual(-1); - const list1 = new List(['x'], new Model()); + const list1 = new SeriesData(['x'], new Model()); list1.initData([0]); expect(list1.indexOfRawIndex(0)).toEqual(0); expect(list1.indexOfRawIndex(1)).toEqual(-1); - const list2 = new List(['x'], new Model()); + const list2 = new SeriesData(['x'], new Model()); list2.initData([0, 1, 2, 3]); expect(list2.indexOfRawIndex(1)).toEqual(1); expect(list2.indexOfRawIndex(2)).toEqual(2); expect(list2.indexOfRawIndex(5)).toEqual(-1); - const list3 = new List(['x'], new Model()); + const list3 = new SeriesData(['x'], new Model()); list3.initData([0, 1, 2, 3, 4]); expect(list3.indexOfRawIndex(2)).toEqual(2); expect(list3.indexOfRawIndex(3)).toEqual(3); @@ -121,14 +121,14 @@ describe('List', function () { }); it('getDataExtent', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([1, 2, 3]); expect(list.getDataExtent('x')).toEqual([1, 3]); expect(list.getDataExtent('y')).toEqual([1, 3]); }); it('Data types', function () { - const list = new List([{ + const list = new SeriesData([{ name: 'x', type: 'int' }, { @@ -141,7 +141,7 @@ describe('List', function () { }); it('map', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([[10, 15], [20, 25], [30, 35]]); expect(list.map(['x', 'y'], function (x: number, y: number) { return [x + 2, y + 2]; @@ -151,7 +151,7 @@ describe('List', function () { }); it('mapArray', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([[10, 15], [20, 25], [30, 35]]); expect(list.mapArray(['x', 'y'], function (x, y) { return [x, y]; @@ -159,7 +159,7 @@ describe('List', function () { }); it('filterSelf', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([[10, 15], [20, 25], [30, 35]]); expect(list.filterSelf(['x', 'y'], function (x, y) { return x < 30 && x > 10; @@ -169,7 +169,7 @@ describe('List', function () { }); it('dataProvider', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); const typedArray = new Float32Array([10, 10, 20, 20]); const source = createSourceFromSeriesDataOption(typedArray); list.initData({ @@ -193,7 +193,7 @@ describe('List', function () { describe('Data read', function () { it('indicesOfNearest', function () { - const list = new List(['value'], new Model()); + const list = new SeriesData(['value'], new Model()); // ---- index: 0 1 2 3 4 5 6 7 list.initData([10, 20, 30, 35, 40, 40, 35, 50]); @@ -213,7 +213,7 @@ describe('List', function () { describe('id_and_name', function () { - function makeOneByOneChecker(list: List) { + function makeOneByOneChecker(list: SeriesData) { let getIdDataIndex = 0; let getNameDataIndex = 0; @@ -237,7 +237,7 @@ describe('List', function () { describe('only_name_declared', function () { - function doChecks(list: List) { + function doChecks(list: SeriesData) { const oneByOne = makeOneByOneChecker(list); oneByOne.idEqualsTo('a'); @@ -260,7 +260,7 @@ describe('List', function () { } it('sourceFormatOriginal', function () { - const list = new List(['x', 'y'], new Model()); + const list = new SeriesData(['x', 'y'], new Model()); list.initData([ { value: 10, name: 'a' }, { value: 20, name: 'b' }, @@ -276,7 +276,7 @@ describe('List', function () { }); it('sourceFormatArrayRows', function () { - const list = new List( + const list = new SeriesData( [ 'x', { name: 'q', type: 'ordinal', otherDims: { itemName: 0 } } @@ -314,7 +314,7 @@ describe('List', function () { describe('id_name_declared_sourceFormat_original', function () { it('sourceFormatOriginal', function () { - const list = new List(['x'], new Model()); + const list = new SeriesData(['x'], new Model()); const oneByOne = makeOneByOneChecker(list); list.initData([ @@ -407,7 +407,7 @@ describe('List', function () { describe('id_name_declared_sourceFormat_arrayRows', function () { - function makeChecker(list: List) { + function makeChecker(list: SeriesData) { const oneByOne = makeOneByOneChecker(list); return { checkAfterInitData() { @@ -491,7 +491,7 @@ describe('List', function () { }); function testArrayRowsInSource(dimensionsInfo: DataDimensionInfo[]): void { - const list = new List(dimensionsInfo, new Model()); + const list = new SeriesData(dimensionsInfo, new Model()); const checker = makeChecker(list); const source = createSource( From deafca75aad4dd6b6d5449a548c1433764caa61d Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 9 Jul 2021 23:29:02 +0800 Subject: [PATCH 03/64] refact(data): fix some typo bugs --- src/data/DataStorage.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 2a9da9eb64..e95f9e07cc 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -75,10 +75,6 @@ type MapCb = (...args: any) => ParsedValue | ParsedValue[]; export type DimValueGetter = ( this: DataStorage, dataItem: any, - /** - * @deprecated - * dimName is not used anymore - */ dimName: string, dataIndex: number, dimIndex: DimensionIndex @@ -1048,11 +1044,14 @@ class DataStorage { private _copyCommonProps(target: DataStorage) { target._count = this._count; target._rawCount = this._rawCount; + target._provider = this._provider; + target._dimensions = this._dimensions; + target.getDimensionIndex = this.getDimensionIndex; + target._extent = clone(this._extent); target._rawExtent = clone(this._rawExtent); target._indices = this._cloneIndices(); - target._provider = this._provider; - target.getDimensionIndex = this.getDimensionIndex; + target._updateGetRawIdx(); } @@ -1104,7 +1103,7 @@ class DataStorage { objectRows( this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number ): ParsedValue { - return parseDataValue(dataItem[dimIndex], this._dimensions[dataIndex]); + return parseDataValue(dataItem[dimName], this._dimensions[dataIndex]); }, keyedColumns: getDimValueSimply, From 973b70d8fc07c00a29b5b5c5c1eef506c0be31ec Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 9 Jul 2021 23:50:02 +0800 Subject: [PATCH 04/64] refact(data): fix downsample --- src/data/DataStorage.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index e95f9e07cc..85a1b85df1 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -844,7 +844,7 @@ class DataStorage { const len = this.count(); const rawExtentOnDim = target._rawExtent[dimension]; - const newIndices = new (getIndicesCtor(this._rawCount))(len); + const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize)); let offset = 0; for (let i = 0; i < len; i += frameSize) { @@ -875,8 +875,9 @@ class DataStorage { } target._count = offset; + target._indices = newIndices; - this._updateGetRawIdx(); + target._updateGetRawIdx(); return target; } From ed75a2e7fc723e1392955ed37553206109212bd9 Mon Sep 17 00:00:00 2001 From: pissang Date: Sat, 10 Jul 2021 00:01:15 +0800 Subject: [PATCH 05/64] refact(data): indices should not keep after clone --- src/data/DataStorage.ts | 16 +++++++--------- src/data/SeriesData.ts | 3 ++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 85a1b85df1..36a615b04c 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -686,13 +686,9 @@ class DataStorage { */ map(dims: DimensionIndex[], cb: MapCb): DataStorage { // TODO only clone picked chunks. - const target = this.clone(dims); + const target = this.clone(dims, true); const targetChunks = target._chunks; - // Following properties are all immutable. - // So we can reference to the same value - target._indices = this._indices; - target.getRawIndex = this.getRawIndex; const tmpRetValue = []; const dimSize = dims.length; @@ -1001,7 +997,7 @@ class DataStorage { * * @param clonedDims Determine which dims to clone. Will share the data if not specified. */ - clone(clonedDims?: number[]): DataStorage { + clone(clonedDims?: number[], cloneIndices?: boolean): DataStorage { const target = new DataStorage(); const chunks = this._chunks; const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { @@ -1020,6 +1016,11 @@ class DataStorage { target._chunks = chunks; } this._copyCommonProps(target); + + if (cloneIndices) { + target._indices = this._cloneIndices(); + } + target._updateGetRawIdx(); return target; } @@ -1051,9 +1052,6 @@ class DataStorage { target._extent = clone(this._extent); target._rawExtent = clone(this._rawExtent); - target._indices = this._cloneIndices(); - - target._updateGetRawIdx(); } private _cloneIndices() { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 553a225986..a97cd687ee 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -82,7 +82,7 @@ type MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedVa const TRANSFERABLE_PROPERTIES = [ 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', - '_rawData', '_dimValueGetter', '_store', + '_rawData', '_dimValueGetter', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount' ]; const CLONE_PROPERTIES = [ @@ -1155,6 +1155,7 @@ class SeriesData< } transferProperties(list, this); + list._store = this._store.clone(); return list; } From 6c07c4519a261cd65ebe64ac87ed288f36095eb1 Mon Sep 17 00:00:00 2001 From: pissang Date: Sat, 10 Jul 2021 14:33:33 +0800 Subject: [PATCH 06/64] refact(data): share storage on same dataset. --- src/chart/helper/createSeriesDataFromArray.ts | 61 +++++++++++-------- src/data/DataStorage.ts | 42 ++++--------- src/data/SeriesData.ts | 11 +++- src/data/helper/completeDimensions.ts | 10 ++- src/data/helper/createDimensions.ts | 3 +- src/data/helper/dataProvider.ts | 4 +- src/data/helper/dimensionHelper.ts | 4 +- src/data/helper/sourceManager.ts | 37 +++++++++++ src/model/Series.ts | 6 +- src/util/types.ts | 6 +- 10 files changed, 117 insertions(+), 67 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 47467870ca..6c2ed4a274 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -33,7 +33,11 @@ import { import SeriesModel from '../../model/Series'; import DataStorage from '../../data/DataStorage'; -function createListFromArray(source: Source | OptionSourceData, seriesModel: SeriesModel, opt?: { +function isDataStorage(val: unknown): val is DataStorage { + return val instanceof DataStorage; +} + +function createListFromArray(sourceOrStore: Source | OptionSourceData | DataStorage, seriesModel: SeriesModel, opt?: { generateCoord?: string useEncodeDefaulter?: boolean | EncodeDefaulter // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. @@ -41,8 +45,8 @@ function createListFromArray(source: Source | OptionSourceData, seriesModel: Ser }): SeriesData { opt = opt || {}; - if (!isSourceInstance(source)) { - source = createSourceFromSeriesDataOption(source); + if (!isSourceInstance(sourceOrStore) && !isDataStorage(sourceOrStore)) { + sourceOrStore = createSourceFromSeriesDataOption(sourceOrStore); } const coordSysName = seriesModel.get('coordinateSystem'); @@ -61,7 +65,6 @@ function createListFromArray(source: Source | OptionSourceData, seriesModel: Ser if (axisModel) { const axisType = axisModel.get('type'); dimInfo.type = getDimensionTypeByAxis(axisType); - // dimInfo.stackable = isStackable(axisType); } return dimInfo; }); @@ -77,15 +80,18 @@ function createListFromArray(source: Source | OptionSourceData, seriesModel: Ser } const useEncodeDefaulter = opt.useEncodeDefaulter; - const dimInfoList = createDimensions(source, { - coordDimensions: coordSysDimDefs, - generateCoord: opt.generateCoord, - encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) - ? useEncodeDefaulter - : useEncodeDefaulter - ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) - : null - }); + const dimInfoList = createDimensions( + isDataStorage(sourceOrStore) + ? sourceOrStore.getSource() : sourceOrStore, + { + coordDimensions: coordSysDimDefs, + generateCoord: opt.generateCoord, + encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) + ? useEncodeDefaulter + : useEncodeDefaulter + ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) + : null + }); let firstCategoryDimIndex: number; let hasNameEncode: boolean; @@ -111,23 +117,26 @@ function createListFromArray(source: Source | OptionSourceData, seriesModel: Ser const stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); - const list = new SeriesData(dimInfoList, seriesModel); + const data = new SeriesData(dimInfoList, seriesModel); - list.setCalculationInfo(stackCalculationInfo); + data.setCalculationInfo(stackCalculationInfo); - const dimValueGetter = (firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source)) - ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { - // Use dataIndex as ordinal value in categoryAxis - return dimIndex === firstCategoryDimIndex - ? dataIndex - : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); - } - : null; + const dimValueGetter = + !isDataStorage(sourceOrStore) + && firstCategoryDimIndex != null + && isNeedCompleteOrdinalData(sourceOrStore) + ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { + // Use dataIndex as ordinal value in categoryAxis + return dimIndex === firstCategoryDimIndex + ? dataIndex + : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); + } + : null; - list.hasItemOption = false; - list.initData(source, null, dimValueGetter); + data.hasItemOption = false; + data.initData(sourceOrStore, null, dimValueGetter); - return list; + return data; } function isNeedCompleteOrdinalData(source: Source) { diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 36a615b04c..a7365abc01 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -23,13 +23,12 @@ import { DimensionIndex, DimensionName, OptionDataItem, - OrdinalNumber, ParsedValue, ParsedValueNumeric } from '../util/types'; import { DataProvider } from './helper/dataProvider'; import { parseDataValue } from './helper/dataValueHelper'; -import OrdinalMeta from './OrdinalMeta'; +import { Source } from './Source'; const UNDEFINED = 'undefined'; /* global Float64Array, Int32Array, Uint32Array, Uint16Array */ @@ -48,7 +47,7 @@ const UNDEFINED = 'undefined'; 'time': Array } as const; -export type DataStoreDimensionType = keyof typeof dataCtors; +export type DataStorageDimensionType = keyof typeof dataCtors; type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; type DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array; @@ -80,10 +79,9 @@ export type DimValueGetter = ( dimIndex: DimensionIndex ) => ParsedValue; -interface StoreDimensionInfo { - type?: DataStoreDimensionType; // Default to be float. +export interface DataStorageDimensionInfo { + type?: DataStorageDimensionType; // Default to be float. name?: string; - ordinalMeta?: OrdinalMeta; } let defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter}; @@ -106,7 +104,7 @@ function cloneChunk(originalChunk: DataValueChunk): DataValueChunk { function prepareStorage( storage: DataValueChunk[], dimIdx: number, - dimType: DataStoreDimensionType, + dimType: DataStorageDimensionType, end: number, append?: boolean ): void { @@ -147,7 +145,7 @@ class DataStorage { private _count: number = 0; private _rawCount: number = 0; - private _dimensions: StoreDimensionInfo[]; + private _dimensions: DataStorageDimensionInfo[]; private _dimValueGetter: DimValueGetter; defaultDimValueGetter: DimValueGetter; @@ -157,7 +155,7 @@ class DataStorage { */ initData( provider: DataProvider, - dimensions: StoreDimensionInfo[], + dimensions: DataStorageDimensionInfo[], dimValueGetter?: DimValueGetter ): void { if (__DEV__) { @@ -214,6 +212,10 @@ class DataStorage { return this._provider; } + getSource(): Source { + return this._provider.getSource(); + } + getDimensionIndex: (dim: DimensionName) => number; /** @@ -748,7 +750,6 @@ class DataStorage { const targetStorage = target._chunks; const dimStore = targetStorage[valueDimension]; const len = this.count(); - const newIndices = new (getIndicesCtor(this._rawCount))(len); let sampledIndex = 0; @@ -759,6 +760,8 @@ class DataStorage { let area; let nextRawIndex; + const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 1); + // First frame use the first data. newIndices[sampledIndex++] = currentRawIndex; for (let i = 1; i < len - 1; i += frameSize) { @@ -1024,25 +1027,6 @@ class DataStorage { return target; } - /** - * Get category data. - */ - getCategory(dimIdx: number, idx: number) { - const rawIdx = this.getRawIndex(idx); - const chunk = this._chunks[dimIdx]; - - let val; - if (chunk) { - const dimInfo = this._dimensions[dimIdx]; - const ordinalMeta = dimInfo.ordinalMeta; - val = chunk[rawIdx]; - if (ordinalMeta) { - val = ordinalMeta.categories[val as OrdinalNumber]; - } - } - return val; - } - private _copyCommonProps(target: DataStorage) { target._count = this._count; target._rawCount = this._rawCount; diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index a97cd687ee..51d34fb5dc 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -567,6 +567,15 @@ class SeriesData< return name; } + private _getCategory(dimIdx: number, idx: number) { + const ordinal = this._store.get(dimIdx, idx); + const dimInfo = this._dimensionInfos[this.dimensions[dimIdx]]; + const ordinalMeta = dimInfo.ordinalMeta; + if (ordinalMeta) { + return ordinalMeta.categories[ordinal as OrdinalNumber]; + } + } + /** * @return Never null/undefined. `number` will be converted to string. Becuase: * In all cases having encountered at present, id is used in making diff comparison, which @@ -1213,7 +1222,7 @@ class SeriesData< getIdNameFromStore = function ( list: SeriesData, dimIdx: number, idx: number ): string { - return convertOptionIdName(list.getStore().getCategory(dimIdx, idx), null); + return convertOptionIdName(list._getCategory(dimIdx, idx), null); }; /** diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts index b0afd04783..af72139d57 100644 --- a/src/data/helper/completeDimensions.ts +++ b/src/data/helper/completeDimensions.ts @@ -33,6 +33,7 @@ import { import DataDimensionInfo from '../DataDimensionInfo'; import SeriesData from '../SeriesData'; import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './createDimensions'; +import DataStorage from '../DataStorage'; /** @@ -76,7 +77,7 @@ import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './creat */ function completeDimensions( sysDims: CoordDimensionDefinitionLoose[], - source: Source | SeriesData | OptionSourceData, + source: Source | SeriesData | OptionSourceData | DataStorage, opt: { dimsDef?: DimensionDefinitionLoose[]; encodeDef?: HashMap | OptionEncode; @@ -86,6 +87,13 @@ function completeDimensions( generateCoordCount?: number; } ): DataDimensionInfo[] { + if (source instanceof DataStorage) { + source = source.getSource(); + } + else if (source instanceof SeriesData) { + source = source.getStore().getSource(); + } + if (!isSourceInstance(source)) { source = createSourceFromSeriesDataOption(source as OptionSourceData); } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 82a625a279..22cfee6cc2 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -31,6 +31,7 @@ import DataDimensionInfo from '../DataDimensionInfo'; import { HashMap } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { Source } from '../Source'; +import DataStorage from '../DataStorage'; export interface CoordDimensionDefinition extends DimensionDefinition { @@ -60,7 +61,7 @@ export type CreateDimensionsParams = { */ export default function createDimensions( // TODO: TYPE completeDimensions type - source: Source | SeriesData | OptionSourceData, + source: Source | SeriesData | OptionSourceData | DataStorage, opt?: CreateDimensionsParams ): DataDimensionInfo[] { opt = opt || {}; diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 5dc74c0bc2..66eb8157f7 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -484,7 +484,7 @@ export function retrieveRawValue( return; } - const sourceFormat = data.getStore().getProvider().getSource().sourceFormat; + const sourceFormat = data.getStore().getSource().sourceFormat; let dimName; let dimIndex; @@ -515,7 +515,7 @@ export function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: strin return; } - const sourceFormat = data.getStore().getProvider().getSource().sourceFormat; + const sourceFormat = data.getStore().getSource().sourceFormat; if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 425271f582..aae9c2ea15 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -23,7 +23,7 @@ import SeriesData from '../SeriesData'; import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex } from '../../util/types'; -import { DataStoreDimensionType } from '../DataStorage'; +import { DataStorageDimensionType } from '../DataStorage'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], @@ -141,7 +141,7 @@ function getOrCreateEncodeArr( } // FIXME:TS should be type `AxisType` -export function getDimensionTypeByAxis(axisType: string): DataStoreDimensionType { +export function getDimensionTypeByAxis(axisType: string): DataStorageDimensionType { return axisType === 'category' ? 'ordinal' : axisType === 'time' diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index bf3f1ece88..ed4e7eb78e 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -30,6 +30,8 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; +import DataStorage, { DataStorageDimensionInfo } from '../DataStorage'; +import { DefaultDataProvider } from './dataProvider'; /** @@ -131,6 +133,8 @@ export class SourceManager { // Cached source. Do not repeat calculating if not dirty. private _sourceList: Source[] = []; + private _storeList: DataStorage[] = []; + // version sign of each upstream source manager. private _upstreamSignList: string[] = []; @@ -145,6 +149,7 @@ export class SourceManager { */ dirty() { this._setLocalSource([], []); + this._storeList = []; } private _setLocalSource( @@ -350,6 +355,38 @@ export class SourceManager { return this._sourceList[sourceIndex || 0]; } + /** + * Will return undefined if source is series.data + * because dimension not known yet. + */ + getDataStorage(): DataStorage | undefined { + // TODO Can use other sourceIndex? + const sourceIndex = 0; + + const storeList = this._storeList; + let cachedStore = storeList[sourceIndex]; + + if (!cachedStore) { + const upSourceMgr = this._getUpstreamSourceManagers()[0]; + + if (upSourceMgr) { + cachedStore = upSourceMgr.getDataStorage(); + } + else { + const source = this.getSource(sourceIndex); + // Can't create a store if don't know dimension.. + if (source && source.dimensionsDefine) { + cachedStore = new DataStorage(); + cachedStore.initData(new DefaultDataProvider(source), source.dimensionsDefine); + } + } + + storeList[sourceIndex] = cachedStore; + } + + return cachedStore; + } + /** * PEDING: Is it fast enough? * If no upstream, return empty array. diff --git a/src/model/Series.ts b/src/model/Series.ts index a47d819f14..144da01f98 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -50,6 +50,7 @@ import { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatToo import {ECSymbol} from '../util/symbol'; import {Group} from '../util/graphic'; import {LegendIconParams} from '../component/legend/LegendModel'; +import DataStorage from '../data/DataStorage'; const inner = modelUtil.makeInner<{ data: SeriesData @@ -385,8 +386,9 @@ class SeriesModel extends ComponentMode inner(this).data = data; } - getSource(): Source { - return inner(this).sourceManager.getSource(); + getSource(): DataStorage | Source { + const sourceMgr = inner(this).sourceManager; + return sourceMgr.getDataStorage() || sourceMgr.getSource(); } /** diff --git a/src/util/types.ts b/src/util/types.ts index 3e4dd222e7..ebbe444cc3 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -47,7 +47,7 @@ import { ImageStyleProps } from 'zrender/src/graphic/Image'; import ZRText, { TextStyleProps } from 'zrender/src/graphic/Text'; import { Source } from '../data/Source'; import Model from '../model/Model'; -import { DataStoreDimensionType } from '../data/DataStorage'; +import { DataStorageDimensionType } from '../data/DataStorage'; @@ -415,7 +415,7 @@ export type DimensionIndex = number; export type DimensionIndexLoose = DimensionIndex | string; export type DimensionName = string; export type DimensionLoose = DimensionName | DimensionIndexLoose; -export type DimensionType = DataStoreDimensionType; +export type DimensionType = DataStorageDimensionType; export const VISUAL_DIMENSIONS = createHashMap([ 'tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'seriesName' @@ -437,7 +437,7 @@ export interface DataVisualDimensions { } export type DimensionDefinition = { - type?: DataStoreDimensionType, + type?: DataStorageDimensionType, name?: DimensionName, displayName?: string }; From 1d4be90519ecaecb2d8ede87ab2c03582175afeb Mon Sep 17 00:00:00 2001 From: pissang Date: Sat, 10 Jul 2021 22:06:49 +0800 Subject: [PATCH 07/64] refact: optimize createDimensions. update test --- src/chart/helper/createSeriesDataFromArray.ts | 6 +- src/data/SeriesData.ts | 20 +- src/data/helper/completeDimensions.ts | 34 ++- src/data/helper/createDimensions.ts | 17 +- test/ut/spec/data/SeriesData.test.ts | 26 +- ...sions.test.ts => createDimensions.test.ts} | 226 +++++++++--------- 6 files changed, 168 insertions(+), 161 deletions(-) rename test/ut/spec/data/{completeDimensions.test.ts => createDimensions.test.ts} (79%) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 6c2ed4a274..73cb7b1fc4 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -147,12 +147,12 @@ function isNeedCompleteOrdinalData(source: Source) { } } -function firstDataNotNull(data: ArrayLike) { +function firstDataNotNull(arr: ArrayLike) { let i = 0; - while (i < data.length && data[i] == null) { + while (i < arr.length && arr[i] == null) { i++; } - return data[i]; + return arr[i]; } export default createListFromArray; diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 51d34fb5dc..3a28396f54 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -27,7 +27,7 @@ import * as zrUtil from 'zrender/src/core/util'; import {PathStyleProps} from 'zrender/src/graphic/Path'; import Model from '../model/Model'; import DataDiffer from './DataDiffer'; -import {DefaultDataProvider} from './helper/dataProvider'; +import {DataProvider, DefaultDataProvider} from './helper/dataProvider'; import {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper'; import DataDimensionInfo from './DataDimensionInfo'; import {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types'; @@ -389,20 +389,22 @@ class SeriesData< * or provided in nameList from outside. */ initData( - data: Source | OptionSourceData | DataStorage, + data: Source | OptionSourceData | DataStorage | DataProvider, nameList?: string[], dimValueGetter?: DimValueGetter ): void { - const isRaw = isSourceInstance(data) || zrUtil.isArrayLike(data); let store: DataStorage; - if (isRaw) { - const provider = new DefaultDataProvider(data as Source | OptionSourceData, this.dimensions.length); - const dimensionInfos = map(this.dimensions, dimName => this._dimensionInfos[dimName]); - store = new DataStorage(); - store.initData(provider, dimensionInfos, dimValueGetter); + if (data instanceof DataStorage) { + store = data; } else { - store = data as DataStorage; + const dimensions = this.dimensions; + const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data)) + ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length) + : data as DataProvider; + const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); + store = new DataStorage(); + store.initData(provider, dimensionInfos, dimValueGetter); } this._store = store; diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts index af72139d57..99072e88d3 100644 --- a/src/data/helper/completeDimensions.ts +++ b/src/data/helper/completeDimensions.ts @@ -22,18 +22,21 @@ * Use `echarts/data/helper/createDimensions` instead. */ -import {createHashMap, each, isString, defaults, extend, isObject, clone, HashMap} from 'zrender/src/core/util'; +import {createHashMap, each, isString, defaults, isObject, clone, HashMap, extend} from 'zrender/src/core/util'; import {normalizeToArray} from '../../util/model'; -import {guessOrdinal, BE_ORDINAL} from './sourceHelper'; -import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; +import { Source } from '../Source'; import { - VISUAL_DIMENSIONS, DimensionDefinitionLoose, OptionSourceData, - EncodeDefaulter, OptionEncodeValue, OptionEncode, DimensionName, DimensionIndex, DataVisualDimensions + VISUAL_DIMENSIONS, DimensionDefinitionLoose, + EncodeDefaulter, + OptionEncodeValue, + OptionEncode, + DimensionName, + DimensionIndex, + DataVisualDimensions } from '../../util/types'; import DataDimensionInfo from '../DataDimensionInfo'; -import SeriesData from '../SeriesData'; import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './createDimensions'; -import DataStorage from '../DataStorage'; +import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; /** @@ -77,7 +80,7 @@ import DataStorage from '../DataStorage'; */ function completeDimensions( sysDims: CoordDimensionDefinitionLoose[], - source: Source | SeriesData | OptionSourceData | DataStorage, + source: Source, opt: { dimsDef?: DimensionDefinitionLoose[]; encodeDef?: HashMap | OptionEncode; @@ -87,20 +90,10 @@ function completeDimensions( generateCoordCount?: number; } ): DataDimensionInfo[] { - if (source instanceof DataStorage) { - source = source.getSource(); - } - else if (source instanceof SeriesData) { - source = source.getStore().getSource(); - } - - if (!isSourceInstance(source)) { - source = createSourceFromSeriesDataOption(source as OptionSourceData); - } opt = opt || {}; sysDims = (sysDims || []).slice(); - const dimsDef = (opt.dimsDef || []).slice(); + const dimsDef = (opt.dimsDef || source.dimensionsDefine || []).slice(); const dataDimNameMap = createHashMap(); const coordDimNameMap = createHashMap(); // let valueCandidate; @@ -114,6 +107,7 @@ function completeDimensions( const dimDefItem = dimsDef[i] = extend( {}, isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw } ); + const userDimName = dimDefItem.name; const resultItem = result[i] = new DataDimensionInfo(); // Name will be applied later for avoiding duplication. @@ -128,7 +122,7 @@ function completeDimensions( dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); } - let encodeDef = opt.encodeDef; + let encodeDef = opt.encodeDef || source.encodeDefine; if (!encodeDef && opt.encodeDefaulter) { encodeDef = opt.encodeDefaulter(source, dimCount); } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 22cfee6cc2..d3f65b35fd 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -30,7 +30,7 @@ import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; import { HashMap } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; -import { Source } from '../Source'; +import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; import DataStorage from '../DataStorage'; @@ -55,6 +55,7 @@ export type CreateDimensionsParams = { /** * @param opt.coordDimensions + * @param opt.dimensionsCount * @param opt.dimensionsDefine By default `source.dimensionsDefine` Overwrite source define. * @param opt.encodeDefine By default `source.encodeDefine` Overwrite source define. * @param opt.encodeDefaulter Make default encode if user not specified. @@ -64,11 +65,21 @@ export default function createDimensions( source: Source | SeriesData | OptionSourceData | DataStorage, opt?: CreateDimensionsParams ): DataDimensionInfo[] { + if (source instanceof DataStorage) { + source = source.getSource(); + } + else if (source instanceof SeriesData) { + source = source.getStore().getSource(); + } + else if (!isSourceInstance(source)) { + source = createSourceFromSeriesDataOption(source as OptionSourceData); + } + opt = opt || {}; return completeDimensions(opt.coordDimensions || [], source, { // FIXME:TS detect whether source then call `.dimensionsDefine` and `.encodeDefine`? - dimsDef: opt.dimensionsDefine || (source as Source).dimensionsDefine, - encodeDef: opt.encodeDefine || (source as Source).encodeDefine, + dimsDef: opt.dimensionsDefine, + encodeDef: opt.encodeDefine, dimCount: opt.dimensionsCount, encodeDefaulter: opt.encodeDefaulter, generateCoord: opt.generateCoord, diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index 6442cf3d07..faef46d988 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -381,16 +381,11 @@ describe('List', function () { oneByOne.nameEqualsTo('b'); oneByOne.nameEqualsTo(''); - list.appendValues( + list.appendData( [ - [300], - [310], - [320] - ], - [ - 'b', - 'c', - null + { name: 'b', value: 300 }, + { name: 'c', value: 310 }, + { name: null, value: 320} ] ); @@ -535,16 +530,11 @@ describe('List', function () { checker.checkAfterAppendData(); - list.appendValues( - [ - [300], - [310], - [320] - ], + list.appendData( [ - 'b', - 'c', - null + { name: 'b', value: 300 }, + { name: 'c', value: 310 }, + { name: null, value: 320} ] ); diff --git a/test/ut/spec/data/completeDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts similarity index 79% rename from test/ut/spec/data/completeDimensions.test.ts rename to test/ut/spec/data/createDimensions.test.ts index 24efc4b382..6ae72dc6bc 100644 --- a/test/ut/spec/data/completeDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -18,20 +18,20 @@ */ -import completeDimensions from '../../../../src/data/helper/completeDimensions'; +import DataDimensionInfo from '../../../../src/data/DataDimensionInfo'; +import createDimensions from '../../../../src/data/helper/createDimensions'; import { createSource } from '../../../../src/data/Source'; import { SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN } from '../../../../src/util/types'; -type ParametersOfCompleteDimensions = Parameters; +type ParametersOfCreateDimensions = Parameters; -describe('completeDimensions', function () { +describe('createDimensions', function () { - function doCompleteDimensions( - sysDims: ParametersOfCompleteDimensions[0], - data: ParametersOfCompleteDimensions[1], - opt: ParametersOfCompleteDimensions[2] + function doCreateDimensions( + source: ParametersOfCreateDimensions[0], + opt: ParametersOfCreateDimensions[1] ) { - const result = completeDimensions(sysDims, data, opt); + const result = createDimensions(source, opt); if (result) { for (let i = 0; i < result.length; i++) { const item = result[i]; @@ -82,7 +82,8 @@ describe('completeDimensions', function () { ); const opt = { - 'dimsDef': [ + 'coordDimensions': sysDims, + 'dimensionsDefine': [ { 'name': 'date', 'displayName': 'date' @@ -128,7 +129,7 @@ describe('completeDimensions', function () { 'displayName': 'sma9' } ], - 'encodeDef': { + 'encodeDefine': { 'x': 'date', 'y': [ 'haOpen', @@ -143,10 +144,10 @@ describe('completeDimensions', function () { 'close' ] }, - 'dimCount': 5 + 'dimensionsCount': 5 }; - const result: unknown = [ + const result: DataDimensionInfo[] = [ { 'otherDims': { 'tooltip': false, @@ -156,8 +157,7 @@ describe('completeDimensions', function () { 'name': 'date', 'coordDim': 'x', 'coordDimIndex': 0, - 'type': 'ordinal', - 'ordinalMeta': undefined + 'type': 'ordinal' }, { 'otherDims': { @@ -213,8 +213,7 @@ describe('completeDimensions', function () { 'name': 'haOpen', 'coordDim': 'y', 'coordDimIndex': 0, - 'type': 'float', - 'ordinalMeta': undefined + 'type': 'float' }, { 'otherDims': {}, @@ -222,8 +221,7 @@ describe('completeDimensions', function () { 'name': 'haHigh', 'coordDim': 'y', 'coordDimIndex': 3, - 'type': 'float', - 'ordinalMeta': undefined + 'type': 'float' }, { 'otherDims': {}, @@ -231,8 +229,7 @@ describe('completeDimensions', function () { 'name': 'haLow', 'coordDim': 'y', 'coordDimIndex': 2, - 'type': 'float', - 'ordinalMeta': undefined + 'type': 'float' }, { 'otherDims': {}, @@ -240,8 +237,7 @@ describe('completeDimensions', function () { 'name': 'haClose', 'coordDim': 'y', 'coordDimIndex': 1, - 'type': 'float', - 'ordinalMeta': undefined + 'type': 'float' }, { 'otherDims': {}, @@ -253,22 +249,21 @@ describe('completeDimensions', function () { } ]; - expect(doCompleteDimensions(sysDims, source, opt)).toEqual(result); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); }); it('differentData', function () { function doTest( - sysDims: ParametersOfCompleteDimensions[0], - data: ParametersOfCompleteDimensions[1], - opt: ParametersOfCompleteDimensions[2], - result: unknown + source: ParametersOfCreateDimensions[0], + opt: ParametersOfCreateDimensions[1], + result: DataDimensionInfo[] ) { - expect(doCompleteDimensions(sysDims, data, opt)).toEqual(result); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); } // test dimcount - doTest(['x', 'y'], [], null, [ + doTest([], { coordDimensions: ['x', 'y']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -283,7 +278,7 @@ describe('completeDimensions', function () { } ]); - doTest(['x', 'y'], [12], null, [ + doTest([12], { coordDimensions: ['x', 'y']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -298,7 +293,7 @@ describe('completeDimensions', function () { } ]); - doTest(['x', 'y'], [12, 4], null, [ + doTest([12, 4], { coordDimensions: ['x', 'y']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -313,7 +308,7 @@ describe('completeDimensions', function () { } ]); - doTest(['x'], [[32, 55]], null, [ + doTest([[32, 55]], { coordDimensions: ['x']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -322,7 +317,7 @@ describe('completeDimensions', function () { } ]); - doTest(['x', 'y', 'z'], [[32, 55]], null, [ + doTest([[32, 55]], { coordDimensions: ['x', 'y', 'z']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -343,7 +338,7 @@ describe('completeDimensions', function () { } ]); - doTest(['x'], [[32, 55], [99, 11]], null, [ + doTest([[32, 55], [99, 11]], { coordDimensions: ['x']}, [ { 'otherDims': {}, 'coordDim': 'x', @@ -352,7 +347,10 @@ describe('completeDimensions', function () { } ]); - doTest(['x', 'y'], [[32, 55], [99, 11]], {dimCount: 4}, [ + doTest([[32, 55], [99, 11]], { + dimensionsCount: 4, + coordDimensions: ['x', 'y'] + }, [ { 'otherDims': {}, 'coordDim': 'x', @@ -391,12 +389,11 @@ describe('completeDimensions', function () { it('differentSysDims', function () { function doTest( - sysDims: ParametersOfCompleteDimensions[0], - data: ParametersOfCompleteDimensions[1], - opt: ParametersOfCompleteDimensions[2], - result: unknown + source: ParametersOfCreateDimensions[0], + opt: ParametersOfCreateDimensions[1], + result: DataDimensionInfo[] ) { - expect(doCompleteDimensions(sysDims, data, opt)).toEqual(result); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); } const data = [ @@ -405,7 +402,7 @@ describe('completeDimensions', function () { ]; doTest( - ['x', 'y'], data, null, + data, { coordDimensions: ['x', 'y'] }, [ { 'otherDims': {}, @@ -424,7 +421,7 @@ describe('completeDimensions', function () { ); doTest( - ['value'], data, null, + data, { coordDimensions: ['value'] }, [ { 'otherDims': {}, @@ -437,9 +434,8 @@ describe('completeDimensions', function () { ); doTest( - [{name: 'time', type: 'time' as const}, 'value'], data, - null, + { coordDimensions: [{name: 'time', type: 'time' as const}, 'value'] }, [ { 'otherDims': {}, @@ -459,16 +455,18 @@ describe('completeDimensions', function () { ); doTest( - [{ - name: 'y', - otherDims: { - tooltip: false - }, - dimsDef: ['base'] - }, { - name: 'x', - dimsDef: ['open', 'close'] - }], data, {}, + data, { + coordDimensions: [{ + name: 'y', + otherDims: { + tooltip: false + }, + dimsDef: ['base'] + }, { + name: 'x', + dimsDef: ['open', 'close'] + }] + }, [ { 'otherDims': { @@ -495,18 +493,19 @@ describe('completeDimensions', function () { ); doTest( - [{ - name: 'y', - otherDims: { - tooltip: false - }, - dimsDef: ['base'] - }, { - name: 'x', - dimsDef: ['open', 'close'] - }], data, { - dimsDef: ['基础', '打开', '关闭'], - encodeDef: { + data, { + dimensionsDefine: ['基础', '打开', '关闭'], + coordDimensions: [{ + name: 'y', + otherDims: { + tooltip: false + }, + dimsDef: ['base'] + }, { + name: 'x', + dimsDef: ['open', 'close'] + }], + encodeDefine: { tooltip: [1, 2, 0] } }, @@ -546,18 +545,19 @@ describe('completeDimensions', function () { ); doTest( - [{ - name: 'y', - otherDims: { - tooltip: false - }, - dimsDef: ['base'] - }, { - name: 'x', - dimsDef: ['open', 'close'] - }], data, { - dimsDef: ['基础', null, '关闭'], - encodeDef: { + data, { + coordDimensions: [{ + name: 'y', + otherDims: { + tooltip: false + }, + dimsDef: ['base'] + }, { + name: 'x', + dimsDef: ['open', 'close'] + }], + dimensionsDefine: ['基础', null, '关闭'], + encodeDefine: { x: [0, 4] } }, @@ -605,18 +605,20 @@ describe('completeDimensions', function () { it('dimsDef', function () { function doTest( - sysDims: ParametersOfCompleteDimensions[0], - data: ParametersOfCompleteDimensions[1], - opt: ParametersOfCompleteDimensions[2], - result: unknown + source: ParametersOfCreateDimensions[0], + opt: ParametersOfCreateDimensions[1], + result: DataDimensionInfo[] ) { - expect(doCompleteDimensions(sysDims, data, opt)).toEqual(result); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); } const data = [['iw', 332, 4434, 323, 59], ['vrr', 44, 11, 144, 55]]; doTest( - ['x', 'y', 'value'], data, - {dimsDef: ['挨克思', null, '歪溜']}, + data, + { + dimensionsDefine: ['挨克思', null, '歪溜'], + coordDimensions: ['x', 'y', 'value'] + }, [ { 'otherDims': {}, @@ -643,8 +645,11 @@ describe('completeDimensions', function () { ); doTest( - ['x', 'y', 'value'], data, - {dimsDef: ['挨克思', null, {type: 'ordinal' as const}]}, // no name but only type + data, + { + dimensionsDefine: ['挨克思', null, {type: 'ordinal' as const}], + coordDimensions: ['x', 'y', 'value'] + }, // no name but only type [ { 'otherDims': {}, @@ -671,8 +676,11 @@ describe('completeDimensions', function () { ); doTest( - [{name: 'time', type: 'time' as const}, 'value'], data, - {dimsDef: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}]}, + data, + { + dimensionsDefine: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}], + coordDimensions: [{name: 'time', type: 'time' as const}, 'value'] + }, [ { 'otherDims': {}, @@ -705,20 +713,19 @@ describe('completeDimensions', function () { it('encodeDef', function () { function doTest( - sysDims: ParametersOfCompleteDimensions[0], - data: ParametersOfCompleteDimensions[1], - opt: ParametersOfCompleteDimensions[2], - result: unknown + source: ParametersOfCreateDimensions[0], + opt: ParametersOfCreateDimensions[1], + result: DataDimensionInfo[] ) { - expect(doCompleteDimensions(sysDims, data, opt)).toEqual(result); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); } const data = [['iw', 332, 4434, 323, 'd8', 59], ['vrr', 44, 11, 144, '-', 55]]; doTest( - null, data, + data, { - encodeDef: { + encodeDefine: { x: 2, y: [1, 4], tooltip: 2, @@ -738,10 +745,10 @@ describe('completeDimensions', function () { ); doTest( - null, data, + data, { - dimsDef: ['挨克思', null, '歪溜'], - encodeDef: { + dimensionsDefine: ['挨克思', null, '歪溜'], + encodeDefine: { x: 2, y: [1, 4], tooltip: 2, @@ -777,10 +784,11 @@ describe('completeDimensions', function () { ); doTest( - ['x', {name: 'y', type: 'time' as const}, 'z'], data, + data, { - dimsDef: ['挨克思', null, '歪溜'], - encodeDef: { + dimensionsDefine: ['挨克思', null, '歪溜'], + coordDimensions: ['x', {name: 'y', type: 'time' as const}, 'z'], + encodeDefine: { x: 2, y: [1, 4], tooltip: 2, @@ -817,11 +825,12 @@ describe('completeDimensions', function () { ); doTest( - [{name: 'time', type: 'time' as const}, 'value'], data, + data, { // dimsDef type 'ordinal' has higher priority then sysDims type 'time'. - dimsDef: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}], - encodeDef: { + dimensionsDefine: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}], + coordDimensions: [{name: 'time', type: 'time' as const}, 'value'], + encodeDefine: { tooltip: 2 } }, @@ -847,11 +856,12 @@ describe('completeDimensions', function () { ); doTest( - [{name: 'time', type: 'time' as const}, 'value'], data, + data, { // dimsDef type 'ordinal' has higher priority then sysDims type 'time'. - dimsDef: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}], - encodeDef: { + dimensionsDefine: [{name: '泰亩', type: 'ordinal'}, {name: '歪溜', type: 'float'}], + coordDimensions: [{name: 'time', type: 'time' as const}, 'value'], + encodeDefine: { tooltip: 2 } }, From 63c4177455a8c0e02071641ece42d740ffc44b5d Mon Sep 17 00:00:00 2001 From: pissang Date: Sun, 11 Jul 2021 22:23:05 +0800 Subject: [PATCH 08/64] refact(data): fix several issues in storage sharing ordinalMeta update. encodeDef --- src/chart/helper/createGraphFromNodeEdge.ts | 3 +- src/chart/helper/createSeriesDataFromArray.ts | 17 +- src/chart/helper/createSeriesDataSimply.ts | 6 +- src/data/DataStorage.ts | 835 +++++++++--------- src/data/SeriesData.ts | 68 +- src/data/Source.ts | 69 +- src/data/helper/completeDimensions.ts | 2 +- src/data/helper/createDimensions.ts | 3 +- src/data/helper/dataProvider.ts | 4 +- src/data/helper/dataValueHelper.ts | 8 +- src/data/helper/sourceManager.ts | 12 +- src/data/helper/transform.ts | 1 - src/layout/points.ts | 2 +- src/model/Series.ts | 16 +- src/util/types.ts | 8 +- 15 files changed, 543 insertions(+), 511 deletions(-) diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index 80a43a3c2a..58da5e67d3 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -84,7 +84,8 @@ export default function createGraphFromNodeEdge( } const dimensionNames = createDimensions(nodes, { - coordDimensions: coordDimensions + coordDimensions: coordDimensions, + encodeDefine: seriesModel.getEncode() }); nodeData = new SeriesData(dimensionNames, seriesModel); nodeData.initData(nodes); diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 73cb7b1fc4..9dc84793d9 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -37,12 +37,16 @@ function isDataStorage(val: unknown): val is DataStorage { return val instanceof DataStorage; } -function createListFromArray(sourceOrStore: Source | OptionSourceData | DataStorage, seriesModel: SeriesModel, opt?: { - generateCoord?: string - useEncodeDefaulter?: boolean | EncodeDefaulter - // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. - createInvertedIndices?: boolean -}): SeriesData { +function createListFromArray( + sourceOrStore: Source | OptionSourceData | DataStorage, + seriesModel: SeriesModel, + opt?: { + generateCoord?: string + useEncodeDefaulter?: boolean | EncodeDefaulter + // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. + createInvertedIndices?: boolean + } +): SeriesData { opt = opt || {}; if (!isSourceInstance(sourceOrStore) && !isDataStorage(sourceOrStore)) { @@ -86,6 +90,7 @@ function createListFromArray(sourceOrStore: Source | OptionSourceData | DataStor { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord, + encodeDefine: seriesModel.getEncode(), encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter diff --git a/src/chart/helper/createSeriesDataSimply.ts b/src/chart/helper/createSeriesDataSimply.ts index 3a8c403a4f..f84bb21548 100644 --- a/src/chart/helper/createSeriesDataSimply.ts +++ b/src/chart/helper/createSeriesDataSimply.ts @@ -37,7 +37,11 @@ export default function createSeriesDataSimply( opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'], nameList?: string[] ): SeriesData { - opt = isArray(opt) && {coordDimensions: opt} || extend({}, opt); + opt = isArray(opt) && { + coordDimensions: opt + } || extend({ + encodeDefine: seriesModel.getEncode() + }, opt); const source = seriesModel.getSource(); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index a7365abc01..1a12b751dc 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -28,6 +28,7 @@ import { } from '../util/types'; import { DataProvider } from './helper/dataProvider'; import { parseDataValue } from './helper/dataValueHelper'; +import OrdinalMeta from './OrdinalMeta'; import { Source } from './Source'; const UNDEFINED = 'undefined'; @@ -82,6 +83,12 @@ export type DimValueGetter = ( export interface DataStorageDimensionInfo { type?: DataStorageDimensionType; // Default to be float. name?: string; + /** + * When using category axis. + * Category strings will be collected and stored in ordinalMeta.categories. + * And storage will store the index of categories. + */ + ordinalMeta?: OrdinalMeta } let defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter}; @@ -194,7 +201,8 @@ class DataStorage { } } for (let i = 0; i < dimensions.length; i++) { - const name = dimensions[i].name; + const dim = dimensions[i]; + const name = dim.name; dimensionsIdxMap[prefix + name] = i; } @@ -218,6 +226,47 @@ class DataStorage { getDimensionIndex: (dim: DimensionName) => number; + setOrdinalMeta(dimIdx: number, ordinalMeta: OrdinalMeta) { + const chunk = this._chunks[dimIdx]; + const dim = this._dimensions[dimIdx]; + // Already have value. + if (dim.ordinalMeta && dim.ordinalMeta.categories.length > 0) { + return; + } + for (let i = 0; i < chunk.length; i++) { + (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); + } + + dim.ordinalMeta = ordinalMeta; + } + + getOrdinalMeta(dimIdx: number) { + const dimInfo = this._dimensions[dimIdx]; + const ordinalMeta = dimInfo.ordinalMeta; + return ordinalMeta; + } + + /** + * If we using dataset. + * Dimensions types may only know when we initializing series. + * So we need to sync the type back to storage when initlializing SeriesData back + * + * Will return false if dimension type has been known and different from given. + * We need to recreate a new data storage in this case. + */ + syncDimensionTypes(targetDims: DataStorageDimensionInfo[]) { + for (let i = 0; i < targetDims.length; i++) { + const targetDim = targetDims[i]; + const selfDimIdx = this.getDimensionIndex(targetDim.name); + const selfDim = this._dimensions[selfDimIdx]; + if (!selfDim || (selfDim.type && selfDim.type !== targetDim.type)) { + return false; + } + selfDim.type = targetDim.type; + } + return true; + } + /** * Caution: Can be only called on raw data (before `this._indices` created). */ @@ -501,333 +550,333 @@ class DataStorage { /** * Data filter */ - filterSelf( - dims: DimensionIndex[], - cb: FilterCb - ) { - if (!this._count) { - return; - } - - const count = this.count(); - const Ctor = getIndicesCtor(this._rawCount); - const newIndices = new Ctor(count); - const value = []; - const dimSize = dims.length; - - let offset = 0; - const dim0 = dims[0]; - const chunks = this._chunks; - - for (let i = 0; i < count; i++) { - let keep; - const rawIdx = this.getRawIndex(i); - // Simple optimization - if (dimSize === 0) { - keep = (cb as FilterCb0)(i); - } - else if (dimSize === 1) { - const val = chunks[dim0][rawIdx]; - keep = (cb as FilterCb1)(val, i); - } - else { - let k = 0; - for (; k < dimSize; k++) { - value[k] = chunks[dims[k]][rawIdx]; - } - value[k] = i; - keep = (cb as FilterCb).apply(null, value); - } - if (keep) { - newIndices[offset++] = rawIdx; - } - } - - // Set indices after filtered. - if (offset < count) { - this._indices = newIndices; - } - this._count = offset; - // Reset data extent - this._extent = []; - - this._updateGetRawIdx(); - } - - /** - * Select data in range. (For optimization of filter) - * (Manually inline code, support 5 million data filtering in data zoom.) - */ - selectRange(range: {[dimIdx: number]: [number, number]}) { - - const len = this._count; - - if (!len) { - return; - } - - const dims = keys(range); - const dimSize = dims.length; - if (!dimSize) { - return; - } - - const originalCount = this.count(); - const Ctor = getIndicesCtor(this._rawCount); - const newIndices = new Ctor(originalCount); - - let offset = 0; - const dim0 = dims[0]; - - const min = range[dim0][0]; - const max = range[dim0][1]; - const storeArr = this._chunks; - - let quickFinished = false; - if (!this._indices) { - // Extreme optimization for common case. About 2x faster in chrome. - let idx = 0; - if (dimSize === 1) { - const dimStorage = storeArr[dims[0]]; - for (let i = 0; i < len; i++) { - const val = dimStorage[i]; - // NaN will not be filtered. Consider the case, in line chart, empty - // value indicates the line should be broken. But for the case like - // scatter plot, a data item with empty value will not be rendered, - // but the axis extent may be effected if some other dim of the data - // item has value. Fortunately it is not a significant negative effect. - if ( - (val >= min && val <= max) || isNaN(val as any) - ) { - newIndices[offset++] = idx; - } - idx++; - } - quickFinished = true; - } - else if (dimSize === 2) { - const dimStorage = storeArr[dims[0]]; - const dimStorage2 = storeArr[dims[1]]; - const min2 = range[dims[1]][0]; - const max2 = range[dims[1]][1]; - for (let i = 0; i < len; i++) { - const val = dimStorage[i]; - const val2 = dimStorage2[i]; - // Do not filter NaN, see comment above. - if (( - (val >= min && val <= max) || isNaN(val as any) - ) - && ( - (val2 >= min2 && val2 <= max2) || isNaN(val2 as any) - ) - ) { - newIndices[offset++] = idx; - } - idx++; - } - quickFinished = true; - } - } - if (!quickFinished) { - if (dimSize === 1) { - for (let i = 0; i < originalCount; i++) { - const rawIndex = this.getRawIndex(i); - const val = storeArr[dims[0]][rawIndex]; - // Do not filter NaN, see comment above. - if ( - (val >= min && val <= max) || isNaN(val as any) - ) { - newIndices[offset++] = rawIndex; - } - } - } - else { - for (let i = 0; i < originalCount; i++) { - let keep = true; - const rawIndex = this.getRawIndex(i); - for (let k = 0; k < dimSize; k++) { - const dimk = dims[k]; - const val = storeArr[dimk][rawIndex]; - // Do not filter NaN, see comment above. - if (val < range[dimk][0] || val > range[dimk][1]) { - keep = false; - } - } - if (keep) { - newIndices[offset++] = this.getRawIndex(i); - } - } - } - } - - // Set indices after filtered. - if (offset < originalCount) { - this._indices = newIndices; - } - this._count = offset; - // Reset data extent - this._extent = []; - - this._updateGetRawIdx(); - } - - /** - * Data mapping to a plain array - */ - /* eslint-enable */ - mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { - const result: any[] = []; - this.each(dims, function () { - result.push(cb && (cb as MapArrayCb).apply(null, arguments)); - }); - return result; - } - - /** - * Data mapping to a new List with given dimensions - */ - map(dims: DimensionIndex[], cb: MapCb): DataStorage { + filterSelf( + dims: DimensionIndex[], + cb: FilterCb + ) { + if (!this._count) { + return; + } + + const count = this.count(); + const Ctor = getIndicesCtor(this._rawCount); + const newIndices = new Ctor(count); + const value = []; + const dimSize = dims.length; + + let offset = 0; + const dim0 = dims[0]; + const chunks = this._chunks; + + for (let i = 0; i < count; i++) { + let keep; + const rawIdx = this.getRawIndex(i); + // Simple optimization + if (dimSize === 0) { + keep = (cb as FilterCb0)(i); + } + else if (dimSize === 1) { + const val = chunks[dim0][rawIdx]; + keep = (cb as FilterCb1)(val, i); + } + else { + let k = 0; + for (; k < dimSize; k++) { + value[k] = chunks[dims[k]][rawIdx]; + } + value[k] = i; + keep = (cb as FilterCb).apply(null, value); + } + if (keep) { + newIndices[offset++] = rawIdx; + } + } + + // Set indices after filtered. + if (offset < count) { + this._indices = newIndices; + } + this._count = offset; + // Reset data extent + this._extent = []; + + this._updateGetRawIdx(); + } + + /** + * Select data in range. (For optimization of filter) + * (Manually inline code, support 5 million data filtering in data zoom.) + */ + selectRange(range: {[dimIdx: number]: [number, number]}) { + + const len = this._count; + + if (!len) { + return; + } + + const dims = keys(range); + const dimSize = dims.length; + if (!dimSize) { + return; + } + + const originalCount = this.count(); + const Ctor = getIndicesCtor(this._rawCount); + const newIndices = new Ctor(originalCount); + + let offset = 0; + const dim0 = dims[0]; + + const min = range[dim0][0]; + const max = range[dim0][1]; + const storeArr = this._chunks; + + let quickFinished = false; + if (!this._indices) { + // Extreme optimization for common case. About 2x faster in chrome. + let idx = 0; + if (dimSize === 1) { + const dimStorage = storeArr[dims[0]]; + for (let i = 0; i < len; i++) { + const val = dimStorage[i]; + // NaN will not be filtered. Consider the case, in line chart, empty + // value indicates the line should be broken. But for the case like + // scatter plot, a data item with empty value will not be rendered, + // but the axis extent may be effected if some other dim of the data + // item has value. Fortunately it is not a significant negative effect. + if ( + (val >= min && val <= max) || isNaN(val as any) + ) { + newIndices[offset++] = idx; + } + idx++; + } + quickFinished = true; + } + else if (dimSize === 2) { + const dimStorage = storeArr[dims[0]]; + const dimStorage2 = storeArr[dims[1]]; + const min2 = range[dims[1]][0]; + const max2 = range[dims[1]][1]; + for (let i = 0; i < len; i++) { + const val = dimStorage[i]; + const val2 = dimStorage2[i]; + // Do not filter NaN, see comment above. + if (( + (val >= min && val <= max) || isNaN(val as any) + ) + && ( + (val2 >= min2 && val2 <= max2) || isNaN(val2 as any) + ) + ) { + newIndices[offset++] = idx; + } + idx++; + } + quickFinished = true; + } + } + if (!quickFinished) { + if (dimSize === 1) { + for (let i = 0; i < originalCount; i++) { + const rawIndex = this.getRawIndex(i); + const val = storeArr[dims[0]][rawIndex]; + // Do not filter NaN, see comment above. + if ( + (val >= min && val <= max) || isNaN(val as any) + ) { + newIndices[offset++] = rawIndex; + } + } + } + else { + for (let i = 0; i < originalCount; i++) { + let keep = true; + const rawIndex = this.getRawIndex(i); + for (let k = 0; k < dimSize; k++) { + const dimk = dims[k]; + const val = storeArr[dimk][rawIndex]; + // Do not filter NaN, see comment above. + if (val < range[dimk][0] || val > range[dimk][1]) { + keep = false; + } + } + if (keep) { + newIndices[offset++] = this.getRawIndex(i); + } + } + } + } + + // Set indices after filtered. + if (offset < originalCount) { + this._indices = newIndices; + } + this._count = offset; + // Reset data extent + this._extent = []; + + this._updateGetRawIdx(); + } + + /** + * Data mapping to a plain array + */ + /* eslint-enable */ + mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { + const result: any[] = []; + this.each(dims, function () { + result.push(cb && (cb as MapArrayCb).apply(null, arguments)); + }); + return result; + } + + /** + * Data mapping to a new List with given dimensions + */ + map(dims: DimensionIndex[], cb: MapCb): DataStorage { // TODO only clone picked chunks. - const target = this.clone(dims, true); - const targetChunks = target._chunks; - - - const tmpRetValue = []; - const dimSize = dims.length; - const dataCount = this.count(); - const values = []; - const rawExtent = target._rawExtent; - - for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { - const rawIndex = this.getRawIndex(dataIndex); - - for (let k = 0; k < dimSize; k++) { - values[k] = targetChunks[dims[k]][rawIndex]; - } - values[dimSize] = dataIndex; - - let retValue = cb && cb.apply(null, values); - if (retValue != null) { - // a number or string (in oridinal dimension)? - if (typeof retValue !== 'object') { - tmpRetValue[0] = retValue; - retValue = tmpRetValue; - } - - for (let i = 0; i < retValue.length; i++) { - const dim = dims[i]; - const val = retValue[i]; - const rawExtentOnDim = rawExtent[dim]; - - const dimStore = targetChunks[dim]; - if (dimStore) { - (dimStore as ParsedValue[])[rawIndex] = val; - } - - if (val < rawExtentOnDim[0]) { - rawExtentOnDim[0] = val as number; - } - if (val > rawExtentOnDim[1]) { - rawExtentOnDim[1] = val as number; - } - } - } - } - - return target; - } - - /** - * Large data down sampling using largest-triangle-three-buckets - * @param {string} valueDimension - * @param {number} targetCount - */ - lttbDownSample( - valueDimension: DimensionIndex, - rate: number - ) { - const target = this.clone([valueDimension]); - const targetStorage = target._chunks; - const dimStore = targetStorage[valueDimension]; - const len = this.count(); - - let sampledIndex = 0; - - const frameSize = Math.floor(1 / rate); - - let currentRawIndex = this.getRawIndex(0); - let maxArea; - let area; - let nextRawIndex; - - const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 1); - - // First frame use the first data. - newIndices[sampledIndex++] = currentRawIndex; - for (let i = 1; i < len - 1; i += frameSize) { - const nextFrameStart = Math.min(i + frameSize, len - 1); - const nextFrameEnd = Math.min(i + frameSize * 2, len); - - const avgX = (nextFrameEnd + nextFrameStart) / 2; - let avgY = 0; - - for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) { - const rawIndex = this.getRawIndex(idx); - const y = dimStore[rawIndex] as number; - if (isNaN(y)) { - continue; - } - avgY += y as number; - } - avgY /= (nextFrameEnd - nextFrameStart); - - const frameStart = i; - const frameEnd = Math.min(i + frameSize, len); - - const pointAX = i - 1; - const pointAY = dimStore[currentRawIndex] as number; - - maxArea = -1; - - nextRawIndex = frameStart; - // Find a point from current frame that construct a triangel with largest area with previous selected point - // And the average of next frame. - for (let idx = frameStart; idx < frameEnd; idx++) { - const rawIndex = this.getRawIndex(idx); - const y = dimStore[rawIndex] as number; - if (isNaN(y)) { - continue; - } - // Calculate triangle area over three buckets - area = Math.abs((pointAX - avgX) * (y - pointAY) - - (pointAX - idx) * (avgY - pointAY) - ); - if (area > maxArea) { - maxArea = area; - nextRawIndex = rawIndex; // Next a is this b - } - } - - newIndices[sampledIndex++] = nextRawIndex; - - currentRawIndex = nextRawIndex; // This a is the next a (chosen b) - } - - // First frame use the last data. - newIndices[sampledIndex++] = this.getRawIndex(len - 1); - target._count = sampledIndex; - target._indices = newIndices; - - target.getRawIndex = this._getRawIdx; - return target; - } + const target = this.clone(dims, true); + const targetChunks = target._chunks; + + + const tmpRetValue = []; + const dimSize = dims.length; + const dataCount = this.count(); + const values = []; + const rawExtent = target._rawExtent; + + for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { + const rawIndex = this.getRawIndex(dataIndex); + + for (let k = 0; k < dimSize; k++) { + values[k] = targetChunks[dims[k]][rawIndex]; + } + values[dimSize] = dataIndex; + + let retValue = cb && cb.apply(null, values); + if (retValue != null) { + // a number or string (in oridinal dimension)? + if (typeof retValue !== 'object') { + tmpRetValue[0] = retValue; + retValue = tmpRetValue; + } + + for (let i = 0; i < retValue.length; i++) { + const dim = dims[i]; + const val = retValue[i]; + const rawExtentOnDim = rawExtent[dim]; + + const dimStore = targetChunks[dim]; + if (dimStore) { + (dimStore as ParsedValue[])[rawIndex] = val; + } + + if (val < rawExtentOnDim[0]) { + rawExtentOnDim[0] = val as number; + } + if (val > rawExtentOnDim[1]) { + rawExtentOnDim[1] = val as number; + } + } + } + } + + return target; + } + + /** + * Large data down sampling using largest-triangle-three-buckets + * @param {string} valueDimension + * @param {number} targetCount + */ + lttbDownSample( + valueDimension: DimensionIndex, + rate: number + ) { + const target = this.clone([valueDimension]); + const targetStorage = target._chunks; + const dimStore = targetStorage[valueDimension]; + const len = this.count(); + + let sampledIndex = 0; + + const frameSize = Math.floor(1 / rate); + + let currentRawIndex = this.getRawIndex(0); + let maxArea; + let area; + let nextRawIndex; + + const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 1); + + // First frame use the first data. + newIndices[sampledIndex++] = currentRawIndex; + for (let i = 1; i < len - 1; i += frameSize) { + const nextFrameStart = Math.min(i + frameSize, len - 1); + const nextFrameEnd = Math.min(i + frameSize * 2, len); + + const avgX = (nextFrameEnd + nextFrameStart) / 2; + let avgY = 0; + + for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) { + const rawIndex = this.getRawIndex(idx); + const y = dimStore[rawIndex] as number; + if (isNaN(y)) { + continue; + } + avgY += y as number; + } + avgY /= (nextFrameEnd - nextFrameStart); + + const frameStart = i; + const frameEnd = Math.min(i + frameSize, len); + + const pointAX = i - 1; + const pointAY = dimStore[currentRawIndex] as number; + + maxArea = -1; + + nextRawIndex = frameStart; + // Find a point from current frame that construct a triangel with largest area with previous selected point + // And the average of next frame. + for (let idx = frameStart; idx < frameEnd; idx++) { + const rawIndex = this.getRawIndex(idx); + const y = dimStore[rawIndex] as number; + if (isNaN(y)) { + continue; + } + // Calculate triangle area over three buckets + area = Math.abs((pointAX - avgX) * (y - pointAY) + - (pointAX - idx) * (avgY - pointAY) + ); + if (area > maxArea) { + maxArea = area; + nextRawIndex = rawIndex; // Next a is this b + } + } + + newIndices[sampledIndex++] = nextRawIndex; + + currentRawIndex = nextRawIndex; // This a is the next a (chosen b) + } + + // First frame use the last data. + newIndices[sampledIndex++] = this.getRawIndex(len - 1); + target._count = sampledIndex; + target._indices = newIndices; + + target.getRawIndex = this._getRawIdx; + return target; + } /** * Large data down sampling on given dimension * @param sampleIndex Sample index for name and id */ - downSample( + downSample( dimension: DimensionIndex, rate: number, sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, @@ -889,40 +938,40 @@ class DataStorage { * list.each(['x', 'y'], function (x, y, idx) {}); * list.each(function (idx) {}) */ - each(dims: DimensionIndex[], cb: EachCb): void { - if (!this._count) { - return; - } - const dimSize = dims.length; - const chunks = this._chunks; - - for (let i = 0, len = this.count(); i < len; i++) { - const rawIdx = this.getRawIndex(i); - // Simple optimization - switch (dimSize) { - case 0: - (cb as EachCb0)(i); - break; - case 1: - (cb as EachCb1)(chunks[dims[0]][rawIdx], i); - break; - case 2: - (cb as EachCb2)( - chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i - ); - break; - default: - let k = 0; - const value = []; - for (; k < dimSize; k++) { - value[k] = chunks[dims[k]][rawIdx]; - } - // Index - value[k] = i; - (cb as EachCb).apply(null, value); - } - } - } + each(dims: DimensionIndex[], cb: EachCb): void { + if (!this._count) { + return; + } + const dimSize = dims.length; + const chunks = this._chunks; + + for (let i = 0, len = this.count(); i < len; i++) { + const rawIdx = this.getRawIndex(i); + // Simple optimization + switch (dimSize) { + case 0: + (cb as EachCb0)(i); + break; + case 1: + (cb as EachCb1)(chunks[dims[0]][rawIdx], i); + break; + case 2: + (cb as EachCb2)( + chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i + ); + break; + default: + let k = 0; + const value = []; + for (; k < dimSize; k++) { + value[k] = chunks[dims[k]][rawIdx]; + } + // Index + value[k] = i; + (cb as EachCb).apply(null, value); + } + } + } /** * Get extent of data in one dimension @@ -976,31 +1025,31 @@ class DataStorage { * Do not initialize. * Default `getRawIndex`. And it can be changed. */ - getRawIndex: (idx: number) => number; - - /** - * Get raw data item - */ - getRawDataItem(idx: number): OptionDataItem { - const rawIdx = this.getRawIndex(idx); - if (!this._provider.persistent) { - const val = []; - const chunks = this._chunks; - for (let i = 0; i < chunks.length; i++) { - val.push(chunks[i][rawIdx]); - } - return val; - } - else { - return this._provider.getItem(this.getRawIndex(idx)); - } - } - - /** - * - * @param clonedDims Determine which dims to clone. Will share the data if not specified. - */ - clone(clonedDims?: number[], cloneIndices?: boolean): DataStorage { + getRawIndex: (idx: number) => number; + + /** + * Get raw data item + */ + getRawDataItem(idx: number): OptionDataItem { + const rawIdx = this.getRawIndex(idx); + if (!this._provider.persistent) { + const val = []; + const chunks = this._chunks; + for (let i = 0; i < chunks.length; i++) { + val.push(chunks[i][rawIdx]); + } + return val; + } + else { + return this._provider.getItem(this.getRawIndex(idx)); + } + } + + /** + * + * @param clonedDims Determine which dims to clone. Will share the data if not specified. + */ + clone(clonedDims?: number[], cloneIndices?: boolean): DataStorage { const target = new DataStorage(); const chunks = this._chunks; const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { @@ -1025,9 +1074,9 @@ class DataStorage { } target._updateGetRawIdx(); return target; - } + } - private _copyCommonProps(target: DataStorage) { + private _copyCommonProps(target: DataStorage) { target._count = this._count; target._rawCount = this._rawCount; target._provider = this._provider; @@ -1036,9 +1085,9 @@ class DataStorage { target._extent = clone(this._extent); target._rawExtent = clone(this._rawExtent); - } + } - private _cloneIndices() { + private _cloneIndices() { if (this._indices) { const Ctor = this._indices.constructor as DataArrayLikeConstructor; let indices; @@ -1055,21 +1104,21 @@ class DataStorage { return indices; } return null; - } + } - private _getRawIdxIdentity(idx: number) { - return idx; - } - private _getRawIdx(idx: number) { + private _getRawIdxIdentity(idx: number) { + return idx; + } + private _getRawIdx(idx: number) { if (idx < this._count && idx >= 0) { return this._indices[idx]; } return -1; - } + } - private _updateGetRawIdx() { + private _updateGetRawIdx() { this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity; - } + } private static internalField = (function () { @@ -1086,7 +1135,7 @@ class DataStorage { objectRows( this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number ): ParsedValue { - return parseDataValue(dataItem[dimName], this._dimensions[dataIndex]); + return parseDataValue(dataItem[dimName], this._dimensions[dimIndex]); }, keyedColumns: getDimValueSimply, diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 3a28396f54..74b3bf3874 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -320,16 +320,8 @@ class SeriesData< return dim as DimensionName; } - getDimensionIndex(dim: DimensionLoose): DimensionIndex { - if (typeof dim === 'number') { - return dim; - } - const idx = this._store.getDimensionIndex(dim); - if (idx == null) { - // If being a number-like string but not being defined a dimension name. - return +dim; - } - return idx; + private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex { + return this._store.getDimensionIndex(this.getDimension(dim)); } /** @@ -375,7 +367,7 @@ class SeriesData< return (dims || []).slice(); } - getStore() { + getStorage() { return this._store; } @@ -394,19 +386,35 @@ class SeriesData< dimValueGetter?: DimValueGetter ): void { let store: DataStorage; + const dimensions = this.dimensions; + const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - store = data; + if (data.syncDimensionTypes(dimensionInfos)) { + store = data; + } + // Sync failed + else { + // Needs to recreate data storage if it's not match the given dimension. + data = data.getSource(); + } } - else { - const dimensions = this.dimensions; + + if (!store) { const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data)) ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length) : data as DataProvider; - const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); store = new DataStorage(); store.initData(provider, dimensionInfos, dimValueGetter); } + for (let i = 0; i < dimensions.length; i++) { + const dimInfo = this._dimensionInfos[dimensions[i]]; + if (dimInfo.ordinalMeta) { + const dimIdx = store.getDimensionIndex(dimensions[i]); + store.setOrdinalMeta(dimIdx, dimInfo.ordinalMeta); + } + } + this._store = store; // Reset @@ -514,7 +522,7 @@ class SeriesData< * be erased because of the filtering. */ getApproximateExtent(dim: DimensionLoose): [number, number] { - return this._approximateExtent[dim] || this._store.getDataExtent(this.getDimensionIndex(dim)); + return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim)); } /** @@ -571,11 +579,11 @@ class SeriesData< private _getCategory(dimIdx: number, idx: number) { const ordinal = this._store.get(dimIdx, idx); - const dimInfo = this._dimensionInfos[this.dimensions[dimIdx]]; - const ordinalMeta = dimInfo.ordinalMeta; + const ordinalMeta = this._store.getOrdinalMeta(dimIdx); if (ordinalMeta) { return ordinalMeta.categories[ordinal as OrdinalNumber]; } + return ordinal; } /** @@ -610,15 +618,15 @@ class SeriesData< } getDataExtent(dim: DimensionLoose): [number, number] { - return this._store.getDataExtent(this.getDimensionIndex(dim)); + return this._store.getDataExtent(this._getStoreDimIndex(dim)); } getSum(dim: DimensionLoose): number { - return this._store.getSum(this.getDimensionIndex(dim)); + return this._store.getSum(this._getStoreDimIndex(dim)); } getMedian(dim: DimensionLoose): number { - return this._store.getMedian(this.getDimensionIndex(dim)); + return this._store.getMedian(this._getStoreDimIndex(dim)); } /** * Get value for multi dimensions. @@ -709,7 +717,7 @@ class SeriesData< */ indicesOfNearest(dim: DimensionLoose, value: number, maxDistance?: number): number[] { return this._store.indicesOfNearest( - this.getDimensionIndex(dim), + this._getStoreDimIndex(dim), value, maxDistance ); } @@ -742,7 +750,7 @@ class SeriesData< // ctxCompat just for compat echarts3 const fCtx = (ctx || this) as CtxOrList; - const dimIndices = map(normalizeDimensions(dims), this.getDimensionIndex, this); + const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); if (__DEV__) { validateDimensions(this, dimIndices); @@ -777,7 +785,7 @@ class SeriesData< // ctxCompat just for compat echarts3 const fCtx = (ctx || this) as CtxOrList; - const dimIndices = map(normalizeDimensions(dims), this.getDimensionIndex, this); + const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); if (__DEV__) { validateDimensions(this, dimIndices); @@ -802,7 +810,7 @@ class SeriesData< const dims = zrUtil.keys(range); const dimIndices: number[] = []; zrUtil.each(dims, (dim) => { - const dimIdx = this.getDimensionIndex(dim); + const dimIdx = this._getStoreDimIndex(dim); innerRange[dimIdx] = range[dim]; dimIndices.push(dimIdx); }); @@ -867,7 +875,7 @@ class SeriesData< const fCtx = (ctx || ctxCompat || this) as CtxOrList; const dimIndices = map( - normalizeDimensions(dims), this.getDimensionIndex, this + normalizeDimensions(dims), this._getStoreDimIndex, this ); if (__DEV__) { @@ -894,7 +902,7 @@ class SeriesData< ): SeriesData { const list = cloneListForMapAndSample(this); list._store = this._store.downSample( - this.getDimensionIndex(dimension), + this._getStoreDimIndex(dimension), rate, sampleValue, sampleIndex @@ -913,7 +921,7 @@ class SeriesData< ) { const list = cloneListForMapAndSample(this); list._store = this._store.lttbDownSample( - this.getDimensionIndex(valueDimension), + this._getStoreDimIndex(valueDimension), rate ); return list; @@ -942,8 +950,8 @@ class SeriesData< const thisList = this; return new DataDiffer( - otherList ? otherList.getStore().getIndices() : [], - this.getStore().getIndices(), + otherList ? otherList.getStorage().getIndices() : [], + this.getStorage().getIndices(), function (idx: number) { return getId(otherList, idx); }, diff --git a/src/data/Source.ts b/src/data/Source.ts index bedebb14f7..3d56655865 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -45,6 +45,7 @@ import { } from '../util/types'; import { DatasetOption } from '../component/dataset/install'; import { getDataItemValue } from '../util/model'; +import { BE_ORDINAL, guessOrdinal } from './helper/sourceHelper'; /** * [sourceFormat] @@ -119,13 +120,6 @@ class SourceImpl { */ readonly dimensionsDefine: DimensionDefinition[]; - /** - * encode definition in option. - * can be null/undefined. - * Might be specified outside. - */ - readonly encodeDefine: HashMap; - /** * Only make sense in `SOURCE_FORMAT_ARRAY_ROWS`. * That is the same as `sourceHeader: number`, @@ -176,42 +170,21 @@ class SourceImpl { // Visit config this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN; this.startIndex = fields.startIndex || 0; - this.dimensionsDefine = fields.dimensionsDefine; this.dimensionsDetectedCount = fields.dimensionsDetectedCount; - this.encodeDefine = fields.encodeDefine; this.metaRawOption = fields.metaRawOption; - } - // There is performance issue in some browser like Safari, - // an also slower than clone in Chrome. - // So DO NOT use `Object.freeze`. - /** - * When expose the source to thrid-party transform, it probably better to - * freeze to make sure immutability. - * If a third-party transform modify the raw upstream data structure, it might bring about - * "uncertain effect" when using multiple transforms with different combinations. - * - * [Caveat] - * `OptionManager.ts` have perform `clone` in `setOption`. - * The original user input object should better not be frozen in case they - * make other usages. - */ - // freeze() { - // assert(sourceFormatCanBeExposed(this)); - // const data = this.data as OptionSourceDataArrayRows; - // if (this.frozen || !data || !isFunction(Object.freeze)) { - // return; - // } - // // @ts-ignore - // this.frozen = true; - // // PENDING: - // // There is a flaw that there might be non-primitive values like `Date`. - // // Is it worth handling that? - // for (let i = 0; i < data.length; i++) { - // Object.freeze(data[i]); - // } - // Object.freeze(data); - // } + const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; + if (dimensionsDefine) { + for (let i = 0; i < dimensionsDefine.length; i++) { + const dim = dimensionsDefine[i]; + if (dim.type == null) { + if (guessOrdinal(this, i) === BE_ORDINAL.Must) { + dim.type = 'ordinal'; + } + } + } + } + } } @@ -223,8 +196,7 @@ export function createSource( sourceData: OptionSourceData, thisMetaRawOption: SourceMetaRawOption, // can be null. If not provided, auto detect it from `sourceData`. - sourceFormat: SourceFormat, - encodeDefine: OptionEncode // can be null + sourceFormat: SourceFormat ): Source { sourceFormat = sourceFormat || detectSourceFormat(sourceData); const seriesLayoutBy = thisMetaRawOption.seriesLayoutBy; @@ -243,7 +215,6 @@ export function createSource( dimensionsDefine: determined.dimensionsDefine, startIndex: determined.startIndex, dimensionsDetectedCount: determined.dimensionsDetectedCount, - encodeDefine: makeEncodeDefine(encodeDefine), metaRawOption: clone(thisMetaRawOption) }); @@ -273,20 +244,10 @@ export function cloneSourceShallow(source: Source): Source { seriesLayoutBy: source.seriesLayoutBy, dimensionsDefine: clone(source.dimensionsDefine), startIndex: source.startIndex, - dimensionsDetectedCount: source.dimensionsDetectedCount, - encodeDefine: makeEncodeDefine(source.encodeDefine) + dimensionsDetectedCount: source.dimensionsDetectedCount }); } -function makeEncodeDefine( - encodeDefine: OptionEncode | HashMap -): HashMap { - // null means user not specify `series.encode`. - return encodeDefine - ? createHashMap(encodeDefine) - : null; -} - /** * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`. */ diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts index 99072e88d3..f94c276625 100644 --- a/src/data/helper/completeDimensions.ts +++ b/src/data/helper/completeDimensions.ts @@ -122,7 +122,7 @@ function completeDimensions( dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); } - let encodeDef = opt.encodeDef || source.encodeDefine; + let encodeDef = opt.encodeDef; if (!encodeDef && opt.encodeDefaulter) { encodeDef = opt.encodeDefaulter(source, dimCount); } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index d3f65b35fd..070bdf7b37 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -69,7 +69,7 @@ export default function createDimensions( source = source.getSource(); } else if (source instanceof SeriesData) { - source = source.getStore().getSource(); + source = source.getStorage().getSource(); } else if (!isSourceInstance(source)) { source = createSourceFromSeriesDataOption(source as OptionSourceData); @@ -77,7 +77,6 @@ export default function createDimensions( opt = opt || {}; return completeDimensions(opt.coordDimensions || [], source, { - // FIXME:TS detect whether source then call `.dimensionsDefine` and `.encodeDefine`? dimsDef: opt.dimensionsDefine, encodeDef: opt.encodeDefine, dimCount: opt.dimensionsCount, diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 66eb8157f7..458fc2c3cd 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -484,7 +484,7 @@ export function retrieveRawValue( return; } - const sourceFormat = data.getStore().getSource().sourceFormat; + const sourceFormat = data.getStorage().getSource().sourceFormat; let dimName; let dimIndex; @@ -515,7 +515,7 @@ export function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: strin return; } - const sourceFormat = data.getStore().getSource().sourceFormat; + const sourceFormat = data.getStorage().getSource().sourceFormat; if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS diff --git a/src/data/helper/dataValueHelper.ts b/src/data/helper/dataValueHelper.ts index 98e36c86d4..2a625f3c23 100644 --- a/src/data/helper/dataValueHelper.ts +++ b/src/data/helper/dataValueHelper.ts @@ -40,18 +40,14 @@ export function parseDataValue( // will be parsed to NaN if do not set `type` as 'ordinal'. It has been // the logic in `List.ts` for long time. Follow the same way if you need // to get same result as List did from a raw value. - type?: DimensionType, - ordinalMeta?: OrdinalMeta + type?: DimensionType } ): ParsedValue { // Performance sensitive. const dimType = opt && opt.type; if (dimType === 'ordinal') { // If given value is a category string - const ordinalMeta = opt && opt.ordinalMeta; - return ordinalMeta - ? ordinalMeta.parseAndCollect(value) - : value; + return value; } if (dimType === 'time' diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index ed4e7eb78e..cc95e967d2 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -30,7 +30,7 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage, { DataStorageDimensionInfo } from '../DataStorage'; +import DataStorage from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; @@ -237,8 +237,7 @@ export class SourceManager { resultSourceList = [createSource( data, { seriesLayoutBy, sourceHeader, dimensions }, - sourceFormat, - seriesModel.get('encode', true) + sourceFormat )]; } else { @@ -256,8 +255,6 @@ export class SourceManager { resultSourceList = [createSource( sourceData, this._getSourceMetaRawOption(), - null, - // Note: dataset option does not have `encode`. null )]; upstreamSignList = []; @@ -356,8 +353,7 @@ export class SourceManager { } /** - * Will return undefined if source is series.data - * because dimension not known yet. + * Will return undefined if source don't have dimensions. */ getDataStorage(): DataStorage | undefined { // TODO Can use other sourceIndex? @@ -369,7 +365,7 @@ export class SourceManager { if (!cachedStore) { const upSourceMgr = this._getUpstreamSourceManagers()[0]; - if (upSourceMgr) { + if (isSeries(this._sourceHost) && upSourceMgr) { cachedStore = upSourceMgr.getDataStorage(); } else { diff --git a/src/data/helper/transform.ts b/src/data/helper/transform.ts index 43625cd917..78c1a70754 100644 --- a/src/data/helper/transform.ts +++ b/src/data/helper/transform.ts @@ -533,7 +533,6 @@ function applySingleDataTransform( return createSource( result.data, resultMetaRawOption, - null, null ); }); diff --git a/src/layout/points.ts b/src/layout/points.ts index 2d138be67f..7228b3897f 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -69,7 +69,7 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? const tmpIn: ParsedValueNumeric[] = []; const tmpOut: number[] = []; - const store = data.getStore(); + const store = data.getStorage(); for (let i = params.start, offset = 0; i < params.end; i++) { let point; diff --git a/src/model/Series.ts b/src/model/Series.ts index 144da01f98..47ef654cd6 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -23,7 +23,12 @@ import * as modelUtil from '../util/model'; import { DataHost, DimensionName, StageHandlerProgressParams, SeriesOption, ZRColor, BoxLayoutOptionMixin, - ScaleDataValue, Dictionary, OptionDataItemObject, SeriesDataType + ScaleDataValue, + Dictionary, + OptionDataItemObject, + SeriesDataType, + SeriesEncodeOptionMixin, + OptionEncodeValue } from '../util/types'; import ComponentModel, { ComponentModelConstructor } from './Component'; import {PaletteMixin} from './mixin/palette'; @@ -386,9 +391,16 @@ class SeriesModel extends ComponentMode inner(this).data = data; } + getEncode() { + const encode = (this as Model).get('encode'); + if (encode) { + return zrUtil.createHashMap(encode); + } + } + getSource(): DataStorage | Source { const sourceMgr = inner(this).sourceManager; - return sourceMgr.getDataStorage() || sourceMgr.getSource(); + return sourceMgr.getSource(); } /** diff --git a/src/util/types.ts b/src/util/types.ts index ebbe444cc3..51c9a52081 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -429,9 +429,6 @@ export interface DataVisualDimensions { label?: DimensionIndex; itemName?: DimensionIndex; itemId?: DimensionIndex; - // Group id is used for linking the aggregate relationship between two set of data. - // Which is useful in prepresenting the transition key of drilldown/up animation. - // Or hover linking. itemGroupId?: DimensionIndex; seriesName?: DimensionIndex; } @@ -651,6 +648,11 @@ export interface OptionEncodeVisualDimensions { itemId?: OptionEncodeValue; seriesName?: OptionEncodeValue; // Notice: `value` is coordDim, not nonCoordDim. + + // Group id is used for linking the aggregate relationship between two set of data. + // Which is useful in prepresenting the transition key of drilldown/up animation. + // Or hover linking. + itemGroupId?: OptionEncodeValue; } export interface OptionEncode extends OptionEncodeVisualDimensions { [coordDim: string]: OptionEncodeValue | undefined From 027cf164c042040bb145e7c67b111643de617a2e Mon Sep 17 00:00:00 2001 From: pissang Date: Sun, 11 Jul 2021 22:48:50 +0800 Subject: [PATCH 09/64] refact(data): cant reuse storage if ordinalMeta is different --- src/data/DataStorage.ts | 15 +++++++++++---- src/model/Series.ts | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 1a12b751dc..8cd057d46e 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -229,15 +229,17 @@ class DataStorage { setOrdinalMeta(dimIdx: number, ordinalMeta: OrdinalMeta) { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; - // Already have value. - if (dim.ordinalMeta && dim.ordinalMeta.categories.length > 0) { - return; + + // Set fail if use a different ordinalMeta + if (dim.ordinalMeta && dim.ordinalMeta !== ordinalMeta) { + return false; } for (let i = 0; i < chunk.length; i++) { (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); } dim.ordinalMeta = ordinalMeta; + return true; } getOrdinalMeta(dimIdx: number) { @@ -259,7 +261,12 @@ class DataStorage { const targetDim = targetDims[i]; const selfDimIdx = this.getDimensionIndex(targetDim.name); const selfDim = this._dimensions[selfDimIdx]; - if (!selfDim || (selfDim.type && selfDim.type !== targetDim.type)) { + if (!selfDim + // Type is different + || (selfDim.type && selfDim.type !== targetDim.type) + // ordinalMeta is differnt. Usually being on the different axis. + || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) + ) { return false; } selfDim.type = targetDim.type; diff --git a/src/model/Series.ts b/src/model/Series.ts index 47ef654cd6..c2cc54b016 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -400,7 +400,7 @@ class SeriesModel extends ComponentMode getSource(): DataStorage | Source { const sourceMgr = inner(this).sourceManager; - return sourceMgr.getSource(); + return sourceMgr.getDataStorage() || sourceMgr.getSource(); } /** From 2cac7ca9b2498b5113e556138c8b51526f5f7c2f Mon Sep 17 00:00:00 2001 From: pissang Date: Mon, 12 Jul 2021 11:41:59 +0800 Subject: [PATCH 10/64] refact(data): fix seriesLayoutBy and sourceHeader --- src/data/DataStorage.ts | 13 ++++++----- src/data/Source.ts | 1 - src/data/helper/sourceManager.ts | 38 +++++++++++++++++++++++++------- 3 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 8cd057d46e..2cfc13317d 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -188,7 +188,11 @@ class DataStorage { // Reset raw extent. this._rawExtent = []; - this._dimensions = dimensions; + this._dimensions = map(dimensions, dim => ({ + // Only pick these two props. Not leak other properties like orderMeta. + type: dim.type, + name: dim.name + }) as DataStorageDimensionInfo); const dimensionsIdxMap: Dictionary = {}; let prefix = ''; @@ -230,16 +234,15 @@ class DataStorage { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; - // Set fail if use a different ordinalMeta - if (dim.ordinalMeta && dim.ordinalMeta !== ordinalMeta) { - return false; + // ordinalMeta already being set. + if (dim.ordinalMeta) { + return; } for (let i = 0; i < chunk.length; i++) { (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); } dim.ordinalMeta = ordinalMeta; - return true; } getOrdinalMeta(dimIdx: number) { diff --git a/src/data/Source.ts b/src/data/Source.ts index 3d56655865..0cc781ed16 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -32,7 +32,6 @@ import { DimensionName, OptionSourceHeader, DimensionDefinitionLoose, - OptionEncode, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, Dictionary, diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index cc95e967d2..a5f3a9dc7d 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -24,7 +24,7 @@ import { SourceMetaRawOption, Source, createSource, cloneSourceShallow } from '. import { SeriesEncodableModel, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, - SourceFormat, SeriesLayoutBy, OptionSourceHeader, DimensionDefinitionLoose + SourceFormat, SeriesLayoutBy, OptionSourceHeader, DimensionDefinitionLoose, Dictionary } from '../../util/types'; import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels @@ -33,6 +33,8 @@ import { applyDataTransform } from './transform'; import DataStorage from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; +type DataStorageMap = Dictionary; + /** * [REQUIREMENT_MEMO]: @@ -133,7 +135,7 @@ export class SourceManager { // Cached source. Do not repeat calculating if not dirty. private _sourceList: Source[] = []; - private _storeList: DataStorage[] = []; + private _storeList: DataStorageMap[] = []; // version sign of each upstream source manager. private _upstreamSignList: string[] = []; @@ -356,31 +358,51 @@ export class SourceManager { * Will return undefined if source don't have dimensions. */ getDataStorage(): DataStorage | undefined { + return this._innerGetDataStorage(this.getSource(0)); + } + + private _innerGetDataStorage(endSource?: Source): DataStorage | undefined { // TODO Can use other sourceIndex? const sourceIndex = 0; + + const source = this.getSource(sourceIndex); const storeList = this._storeList; - let cachedStore = storeList[sourceIndex]; + // Source from endpoint(usually series) will be read differently + // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. + // So we use this two props as key. Another fact `dimensions` will be checked when initializing SeriesData. + const sourceToInit = (endSource || source); + const seriesLayoutBy = sourceToInit.seriesLayoutBy; + const startIndex = sourceToInit.startIndex; + const sourceReadKey = seriesLayoutBy + '_' + startIndex; + + let cachedStoreMap = storeList[sourceIndex]; + + if (!cachedStoreMap) { + cachedStoreMap = storeList[sourceIndex] = {}; + } + + let cachedStore = cachedStoreMap[sourceReadKey]; if (!cachedStore) { const upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { - cachedStore = upSourceMgr.getDataStorage(); + cachedStore = upSourceMgr._innerGetDataStorage(endSource); } else { - const source = this.getSource(sourceIndex); // Can't create a store if don't know dimension.. if (source && source.dimensionsDefine) { cachedStore = new DataStorage(); - cachedStore.initData(new DefaultDataProvider(source), source.dimensionsDefine); + // Always create storage from source of series. + cachedStore.initData(new DefaultDataProvider((sourceToInit)), sourceToInit.dimensionsDefine); } } - - storeList[sourceIndex] = cachedStore; + cachedStoreMap[sourceReadKey] = cachedStore; } return cachedStore; + } /** From 2a8b198ce1dc3e2a326349c6af0f622e90576ef1 Mon Sep 17 00:00:00 2001 From: pissang Date: Mon, 12 Jul 2021 12:07:05 +0800 Subject: [PATCH 11/64] refact(data): fix chunk not exists when data is empty. fix dimSize param for typedarray to provider --- src/data/DataStorage.ts | 11 ++++++----- src/data/helper/sourceManager.ts | 8 ++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 2cfc13317d..953083ea4c 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -238,6 +238,7 @@ class DataStorage { if (dim.ordinalMeta) { return; } + for (let i = 0; i < chunk.length; i++) { (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); } @@ -292,7 +293,10 @@ class DataStorage { if (!provider.persistent) { end += start; } - this._initDataFromProvider(start, end, true); + + if (start < end) { + this._initDataFromProvider(start, end, true); + } return [start, end]; } @@ -302,10 +306,6 @@ class DataStorage { end: number, append?: boolean ): void { - if (start >= end) { - return; - } - const provider = this._provider; const chunks = this._chunks; const dimensions = this._dimensions; @@ -321,6 +321,7 @@ class DataStorage { prepareStorage(chunks, i, dim.type, end, append); } + if (provider.fillStorage) { provider.fillStorage(start, end, chunks, rawExtent); } diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index a5f3a9dc7d..4d0e941c5d 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -391,11 +391,15 @@ export class SourceManager { cachedStore = upSourceMgr._innerGetDataStorage(endSource); } else { + const dimensionsDefine = source.dimensionsDefine; // Can't create a store if don't know dimension.. - if (source && source.dimensionsDefine) { + if (source && dimensionsDefine) { cachedStore = new DataStorage(); // Always create storage from source of series. - cachedStore.initData(new DefaultDataProvider((sourceToInit)), sourceToInit.dimensionsDefine); + cachedStore.initData( + new DefaultDataProvider(sourceToInit, dimensionsDefine.length), + dimensionsDefine + ); } } cachedStoreMap[sourceReadKey] = cachedStore; From 8b2e48b807929dbe02a2f8352c0e1ea1a5567149 Mon Sep 17 00:00:00 2001 From: pissang Date: Mon, 12 Jul 2021 14:53:12 +0800 Subject: [PATCH 12/64] refact(dim): remove completeDimensions --- src/data/helper/completeDimensions.ts | 342 -------------------------- src/data/helper/createDimensions.ts | 300 ++++++++++++++++++++-- 2 files changed, 280 insertions(+), 362 deletions(-) delete mode 100644 src/data/helper/completeDimensions.ts diff --git a/src/data/helper/completeDimensions.ts b/src/data/helper/completeDimensions.ts deleted file mode 100644 index f94c276625..0000000000 --- a/src/data/helper/completeDimensions.ts +++ /dev/null @@ -1,342 +0,0 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one -* or more contributor license agreements. See the NOTICE file -* distributed with this work for additional information -* regarding copyright ownership. The ASF licenses this file -* to you under the Apache License, Version 2.0 (the -* "License"); you may not use this file except in compliance -* with the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, -* software distributed under the License is distributed on an -* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -* KIND, either express or implied. See the License for the -* specific language governing permissions and limitations -* under the License. -*/ - -/** - * @deprecated - * Use `echarts/data/helper/createDimensions` instead. - */ - -import {createHashMap, each, isString, defaults, isObject, clone, HashMap, extend} from 'zrender/src/core/util'; -import {normalizeToArray} from '../../util/model'; -import { Source } from '../Source'; -import { - VISUAL_DIMENSIONS, DimensionDefinitionLoose, - EncodeDefaulter, - OptionEncodeValue, - OptionEncode, - DimensionName, - DimensionIndex, - DataVisualDimensions -} from '../../util/types'; -import DataDimensionInfo from '../DataDimensionInfo'; -import { CoordDimensionDefinition, CoordDimensionDefinitionLoose } from './createDimensions'; -import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; - - -/** - * @see {module:echarts/test/ut/spec/data/completeDimensions} - * - * This method builds the relationship between: - * + "what the coord sys or series requires (see `sysDims`)", - * + "what the user defines (in `encode` and `dimensions`, see `opt.dimsDef` and `opt.encodeDef`)" - * + "what the data source provids (see `source`)". - * - * Some guess strategy will be adapted if user does not define something. - * If no 'value' dimension specified, the first no-named dimension will be - * named as 'value'. - * - * @param {Array.} sysDims Necessary dimensions, like ['x', 'y'], which - * provides not only dim template, but also default order. - * properties: 'name', 'type', 'displayName'. - * `name` of each item provides default coord name. - * [{dimsDef: [string|Object, ...]}, ...] dimsDef of sysDim item provides default dim name, and - * provide dims count that the sysDim required. - * [{ordinalMeta}] can be specified. - * @param {module:echarts/data/Source|Array|Object} source or data (for compatibal with pervious) - * @param {Object} [opt] - * @param {Array.} [opt.dimsDef] option.series.dimensions User defined dimensions - * For example: ['asdf', {name, type}, ...]. - * @param {Object|HashMap} [opt.encodeDef] option.series.encode {x: 2, y: [3, 1], tooltip: [1, 2], label: 3} - * @param {Function} [opt.encodeDefaulter] Called if no `opt.encodeDef` exists. - * If not specified, auto find the next available data dim. - * param source {module:data/Source} - * param dimCount {number} - * return {Object} encode Never be `null/undefined`. - * @param {string} [opt.generateCoord] Generate coord dim with the given name. - * If not specified, extra dim names will be: - * 'value', 'value0', 'value1', ... - * @param {number} [opt.generateCoordCount] By default, the generated dim name is `generateCoord`. - * If `generateCoordCount` specified, the generated dim names will be: - * `generateCoord` + 0, `generateCoord` + 1, ... - * can be Infinity, indicate that use all of the remain columns. - * @param {number} [opt.dimCount] If not specified, guess by the first data item. - * @return {Array.} - */ -function completeDimensions( - sysDims: CoordDimensionDefinitionLoose[], - source: Source, - opt: { - dimsDef?: DimensionDefinitionLoose[]; - encodeDef?: HashMap | OptionEncode; - dimCount?: number; - encodeDefaulter?: EncodeDefaulter; - generateCoord?: string; - generateCoordCount?: number; - } -): DataDimensionInfo[] { - - opt = opt || {}; - sysDims = (sysDims || []).slice(); - const dimsDef = (opt.dimsDef || source.dimensionsDefine || []).slice(); - const dataDimNameMap = createHashMap(); - const coordDimNameMap = createHashMap(); - // let valueCandidate; - const result: DataDimensionInfo[] = []; - - const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimCount); - - // Apply user defined dims (`name` and `type`) and init result. - for (let i = 0; i < dimCount; i++) { - const dimDefItemRaw = dimsDef[i]; - const dimDefItem = dimsDef[i] = extend( - {}, isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw } - ); - - const userDimName = dimDefItem.name; - const resultItem = result[i] = new DataDimensionInfo(); - // Name will be applied later for avoiding duplication. - if (userDimName != null && dataDimNameMap.get(userDimName) == null) { - // Only if `series.dimensions` is defined in option - // displayName, will be set, and dimension will be diplayed vertically in - // tooltip by default. - resultItem.name = resultItem.displayName = userDimName; - dataDimNameMap.set(userDimName, i); - } - dimDefItem.type != null && (resultItem.type = dimDefItem.type); - dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); - } - - let encodeDef = opt.encodeDef; - if (!encodeDef && opt.encodeDefaulter) { - encodeDef = opt.encodeDefaulter(source, dimCount); - } - const encodeDefMap = createHashMap(encodeDef as any); - - // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`. - encodeDefMap.each(function (dataDimsRaw, coordDim) { - const dataDims = normalizeToArray(dataDimsRaw as []).slice(); - - // Note: It is allowed that `dataDims.length` is `0`, e.g., options is - // `{encode: {x: -1, y: 1}}`. Should not filter anything in - // this case. - if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) { - encodeDefMap.set(coordDim, false); - return; - } - - const validDataDims = encodeDefMap.set(coordDim, []) as DimensionIndex[]; - each(dataDims, function (resultDimIdxOrName, idx) { - // The input resultDimIdx can be dim name or index. - const resultDimIdx = isString(resultDimIdxOrName) - ? dataDimNameMap.get(resultDimIdxOrName) - : resultDimIdxOrName; - if (resultDimIdx != null && resultDimIdx < dimCount) { - validDataDims[idx] = resultDimIdx; - applyDim(result[resultDimIdx], coordDim, idx); - } - }); - }); - - // Apply templetes and default order from `sysDims`. - let availDimIdx = 0; - each(sysDims, function (sysDimItemRaw) { - let coordDim: DimensionName; - let sysDimItemDimsDef: CoordDimensionDefinition['dimsDef']; - let sysDimItemOtherDims: CoordDimensionDefinition['otherDims']; - let sysDimItem: CoordDimensionDefinition; - if (isString(sysDimItemRaw)) { - coordDim = sysDimItemRaw; - sysDimItem = {} as CoordDimensionDefinition; - } - else { - sysDimItem = sysDimItemRaw; - coordDim = sysDimItem.name; - const ordinalMeta = sysDimItem.ordinalMeta; - sysDimItem.ordinalMeta = null; - sysDimItem = clone(sysDimItem); - sysDimItem.ordinalMeta = ordinalMeta; - // `coordDimIndex` should not be set directly. - sysDimItemDimsDef = sysDimItem.dimsDef; - sysDimItemOtherDims = sysDimItem.otherDims; - sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = - sysDimItem.dimsDef = sysDimItem.otherDims = null; - } - - let dataDims = encodeDefMap.get(coordDim); - - // negative resultDimIdx means no need to mapping. - if (dataDims === false) { - return; - } - - dataDims = normalizeToArray(dataDims); - - // dimensions provides default dim sequences. - if (!dataDims.length) { - for (let i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) { - while (availDimIdx < result.length && result[availDimIdx].coordDim != null) { - availDimIdx++; - } - availDimIdx < result.length && dataDims.push(availDimIdx++); - } - } - - // Apply templates. - each(dataDims, function (resultDimIdx, coordDimIndex) { - const resultItem = result[resultDimIdx]; - applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); - if (resultItem.name == null && sysDimItemDimsDef) { - let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; - !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {name: sysDimItemDimsDefItem}); - resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name; - resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip; - } - // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}} - sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims); - }); - }); - - function applyDim(resultItem: DataDimensionInfo, coordDim: DimensionName, coordDimIndex: DimensionIndex) { - if (VISUAL_DIMENSIONS.get(coordDim as keyof DataVisualDimensions) != null) { - resultItem.otherDims[coordDim as keyof DataVisualDimensions] = coordDimIndex; - } - else { - resultItem.coordDim = coordDim; - resultItem.coordDimIndex = coordDimIndex; - coordDimNameMap.set(coordDim, true); - } - } - - // Make sure the first extra dim is 'value'. - const generateCoord = opt.generateCoord; - let generateCoordCount = opt.generateCoordCount; - const fromZero = generateCoordCount != null; - generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; - const extra = generateCoord || 'value'; - let coordDimNameAutoIdx = 0; - let dataDimNameAutoIdx = 0; - // Set dim `name` and other `coordDim` and other props. - for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { - const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); - const coordDim = resultItem.coordDim; - - if (coordDim == null) { - const res = genName( - extra, coordDimNameMap, coordDimNameAutoIdx, fromZero - ); - coordDimNameAutoIdx = res.autoIdx; - resultItem.coordDim = res.name; - resultItem.coordDimIndex = 0; - // Series specified generateCoord is using out. - if (!generateCoord || generateCoordCount <= 0) { - resultItem.isExtraCoord = true; - } - generateCoordCount--; - } - - if (resultItem.name == null) { - const res = genName( - resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false - ); - resultItem.name = res.name; - dataDimNameAutoIdx = res.autoIdx; - } - - if (resultItem.type == null - && ( - guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must - // Consider the case: - // { - // dataset: {source: [ - // ['2001', 123], - // ['2002', 456], - // ... - // ['The others', 987], - // ]}, - // series: {type: 'pie'} - // } - // The first colum should better be treated as a "ordinal" although it - // might not able to be detected as an "ordinal" by `guessOrdinal`. - || (resultItem.isExtraCoord - && (resultItem.otherDims.itemName != null - || resultItem.otherDims.seriesName != null - ) - ) - ) - ) { - resultItem.type = 'ordinal'; - } - } - - return result; -} - -// ??? TODO -// Originally detect dimCount by data[0]. Should we -// optimize it to only by sysDims and dimensions and encode. -// So only necessary dims will be initialized. -// But -// (1) custom series should be considered. where other dims -// may be visited. -// (2) sometimes user need to calcualte bubble size or use visualMap -// on other dimensions besides coordSys needed. -// So, dims that is not used by system, should be shared in storage? -function getDimCount( - source: Source, - sysDims: CoordDimensionDefinitionLoose[], - dimsDef: DimensionDefinitionLoose[], - optDimCount: number -): number { - // Note that the result dimCount should not small than columns count - // of data, otherwise `dataDimNameMap` checking will be incorrect. - let dimCount = Math.max( - source.dimensionsDetectedCount || 1, - sysDims.length, - dimsDef.length, - optDimCount || 0 - ); - each(sysDims, function (sysDimItem) { - let sysDimItemDimsDef; - if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) { - dimCount = Math.max(dimCount, sysDimItemDimsDef.length); - } - }); - return dimCount; -} - -function genName( - name: DimensionName, - map: HashMap, - autoIdx: number, - fromZero: boolean -): { name: DimensionName, autoIdx: number } { - const mapData = map.data; - if (fromZero || mapData.hasOwnProperty(name)) { - let i = autoIdx || 0; - while (mapData.hasOwnProperty(name + i)) { - i++; - } - name += i; - autoIdx = i; - } - map.set(name, true); - return { name, autoIdx }; -} - -export default completeDimensions; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 070bdf7b37..8c5f7e2d2c 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -17,21 +17,24 @@ * under the License. */ -/** - * Substitute `completeDimensions`. - * `completeDimensions` is to be deprecated. - */ -import completeDimensions from './completeDimensions'; import { DimensionDefinitionLoose, OptionEncode, OptionEncodeValue, - EncodeDefaulter, OptionSourceData, DimensionName, DimensionDefinition, DataVisualDimensions, DimensionIndex + EncodeDefaulter, + OptionSourceData, + DimensionName, + DimensionDefinition, + DataVisualDimensions, + DimensionIndex, + VISUAL_DIMENSIONS } from '../../util/types'; import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; -import { HashMap } from 'zrender/src/core/util'; +import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; import DataStorage from '../DataStorage'; +import { normalizeToArray } from '../../util/model'; +import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; export interface CoordDimensionDefinition extends DimensionDefinition { @@ -45,20 +48,38 @@ export type CoordDimensionDefinitionLoose = CoordDimensionDefinition['name'] | C export type CreateDimensionsParams = { coordDimensions?: CoordDimensionDefinitionLoose[], + /** + * Will use `source.dimensionsDefine` if not given. + */ dimensionsDefine?: DimensionDefinitionLoose[], + /** + * Will use `source.encodeDefine` if not given. + */ encodeDefine?: HashMap | OptionEncode, dimensionsCount?: number, + /** + * Make default encode if user not specified. + */ encodeDefaulter?: EncodeDefaulter, generateCoord?: string, - generateCoordCount?: number + generateCoordCount?: number, + /** + * If ignore unused dimensions. + * This config will improve performance signifantly when multiple series + * is sharing a extra high dimension dataset. + */ + ignoreUnusedDimension?: boolean }; /** - * @param opt.coordDimensions - * @param opt.dimensionsCount - * @param opt.dimensionsDefine By default `source.dimensionsDefine` Overwrite source define. - * @param opt.encodeDefine By default `source.encodeDefine` Overwrite source define. - * @param opt.encodeDefaulter Make default encode if user not specified. + * This method builds the relationship between: + * + "what the coord sys or series requires (see `sysDims`)", + * + "what the user defines (in `encode` and `dimensions`, see `opt.dimsDef` and `opt.encodeDef`)" + * + "what the data source provids (see `source`)". + * + * Some guess strategy will be adapted if user does not define something. + * If no 'value' dimension specified, the first no-named dimension will be + * named as 'value'. */ export default function createDimensions( // TODO: TYPE completeDimensions type @@ -76,12 +97,251 @@ export default function createDimensions( } opt = opt || {}; - return completeDimensions(opt.coordDimensions || [], source, { - dimsDef: opt.dimensionsDefine, - encodeDef: opt.encodeDefine, - dimCount: opt.dimensionsCount, - encodeDefaulter: opt.encodeDefaulter, - generateCoord: opt.generateCoord, - generateCoordCount: opt.generateCoordCount + + const sysDims = (opt.coordDimensions || []).slice(); + const dimsDef = (opt.dimensionsDefine || source.dimensionsDefine || []).slice(); + const dataDimNameMap = createHashMap(); + const coordDimNameMap = createHashMap(); + // let valueCandidate; + const result: DataDimensionInfo[] = []; + + const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); + + // Apply user defined dims (`name` and `type`) and init result. + for (let i = 0; i < dimCount; i++) { + const dimDefItemRaw = dimsDef[i]; + const dimDefItem = dimsDef[i] = extend( + {}, isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw } + ); + + const userDimName = dimDefItem.name; + const resultItem = result[i] = new DataDimensionInfo(); + // Name will be applied later for avoiding duplication. + if (userDimName != null && dataDimNameMap.get(userDimName) == null) { + // Only if `series.dimensions` is defined in option + // displayName, will be set, and dimension will be diplayed vertically in + // tooltip by default. + resultItem.name = resultItem.displayName = userDimName; + dataDimNameMap.set(userDimName, i); + } + dimDefItem.type != null && (resultItem.type = dimDefItem.type); + dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); + } + + let encodeDef = opt.encodeDefine; + if (!encodeDef && opt.encodeDefaulter) { + encodeDef = opt.encodeDefaulter(source, dimCount); + } + const encodeDefMap = createHashMap(encodeDef as any); + + // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`. + encodeDefMap.each(function (dataDimsRaw, coordDim) { + const dataDims = normalizeToArray(dataDimsRaw as []).slice(); + + // Note: It is allowed that `dataDims.length` is `0`, e.g., options is + // `{encode: {x: -1, y: 1}}`. Should not filter anything in + // this case. + if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) { + encodeDefMap.set(coordDim, false); + return; + } + + const validDataDims = encodeDefMap.set(coordDim, []) as DimensionIndex[]; + each(dataDims, function (resultDimIdxOrName, idx) { + // The input resultDimIdx can be dim name or index. + const resultDimIdx = isString(resultDimIdxOrName) + ? dataDimNameMap.get(resultDimIdxOrName) + : resultDimIdxOrName; + if (resultDimIdx != null && resultDimIdx < dimCount) { + validDataDims[idx] = resultDimIdx; + applyDim(result[resultDimIdx], coordDim, idx); + } + }); + }); + + // Apply templetes and default order from `sysDims`. + let availDimIdx = 0; + each(sysDims, function (sysDimItemRaw) { + let coordDim: DimensionName; + let sysDimItemDimsDef: CoordDimensionDefinition['dimsDef']; + let sysDimItemOtherDims: CoordDimensionDefinition['otherDims']; + let sysDimItem: CoordDimensionDefinition; + if (isString(sysDimItemRaw)) { + coordDim = sysDimItemRaw; + sysDimItem = {} as CoordDimensionDefinition; + } + else { + sysDimItem = sysDimItemRaw; + coordDim = sysDimItem.name; + const ordinalMeta = sysDimItem.ordinalMeta; + sysDimItem.ordinalMeta = null; + sysDimItem = clone(sysDimItem); + sysDimItem.ordinalMeta = ordinalMeta; + // `coordDimIndex` should not be set directly. + sysDimItemDimsDef = sysDimItem.dimsDef; + sysDimItemOtherDims = sysDimItem.otherDims; + sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = + sysDimItem.dimsDef = sysDimItem.otherDims = null; + } + + let dataDims = encodeDefMap.get(coordDim); + + // negative resultDimIdx means no need to mapping. + if (dataDims === false) { + return; + } + + dataDims = normalizeToArray(dataDims); + + // dimensions provides default dim sequences. + if (!dataDims.length) { + for (let i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) { + while (availDimIdx < result.length && result[availDimIdx].coordDim != null) { + availDimIdx++; + } + availDimIdx < result.length && dataDims.push(availDimIdx++); + } + } + + // Apply templates. + each(dataDims, function (resultDimIdx, coordDimIndex) { + const resultItem = result[resultDimIdx]; + applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); + if (resultItem.name == null && sysDimItemDimsDef) { + let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; + !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {name: sysDimItemDimsDefItem}); + resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name; + resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip; + } + // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}} + sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims); + }); }); + + function applyDim(resultItem: DataDimensionInfo, coordDim: DimensionName, coordDimIndex: DimensionIndex) { + if (VISUAL_DIMENSIONS.get(coordDim as keyof DataVisualDimensions) != null) { + resultItem.otherDims[coordDim as keyof DataVisualDimensions] = coordDimIndex; + } + else { + resultItem.coordDim = coordDim; + resultItem.coordDimIndex = coordDimIndex; + coordDimNameMap.set(coordDim, true); + } + } + + // Make sure the first extra dim is 'value'. + const generateCoord = opt.generateCoord; + let generateCoordCount = opt.generateCoordCount; + const fromZero = generateCoordCount != null; + generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; + const extra = generateCoord || 'value'; + let coordDimNameAutoIdx = 0; + let dataDimNameAutoIdx = 0; + // Set dim `name` and other `coordDim` and other props. + for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { + const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); + const coordDim = resultItem.coordDim; + + if (coordDim == null) { + const res = genName( + extra, coordDimNameMap, coordDimNameAutoIdx, fromZero + ); + coordDimNameAutoIdx = res.autoIdx; + resultItem.coordDim = res.name; + resultItem.coordDimIndex = 0; + // Series specified generateCoord is using out. + if (!generateCoord || generateCoordCount <= 0) { + resultItem.isExtraCoord = true; + } + generateCoordCount--; + } + + if (resultItem.name == null) { + const res = genName( + resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false + ); + resultItem.name = res.name; + dataDimNameAutoIdx = res.autoIdx; + } + + if (resultItem.type == null + && ( + guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must + // Consider the case: + // { + // dataset: {source: [ + // ['2001', 123], + // ['2002', 456], + // ... + // ['The others', 987], + // ]}, + // series: {type: 'pie'} + // } + // The first colum should better be treated as a "ordinal" although it + // might not able to be detected as an "ordinal" by `guessOrdinal`. + || (resultItem.isExtraCoord + && (resultItem.otherDims.itemName != null + || resultItem.otherDims.seriesName != null + ) + ) + ) + ) { + resultItem.type = 'ordinal'; + } + } + + return result; +} + + +// ??? TODO +// Originally detect dimCount by data[0]. Should we +// optimize it to only by sysDims and dimensions and encode. +// So only necessary dims will be initialized. +// But +// (1) custom series should be considered. where other dims +// may be visited. +// (2) sometimes user need to calcualte bubble size or use visualMap +// on other dimensions besides coordSys needed. +// So, dims that is not used by system, should be shared in storage? +function getDimCount( + source: Source, + sysDims: CoordDimensionDefinitionLoose[], + dimsDef: DimensionDefinitionLoose[], + optDimCount: number +): number { + // Note that the result dimCount should not small than columns count + // of data, otherwise `dataDimNameMap` checking will be incorrect. + let dimCount = Math.max( + source.dimensionsDetectedCount || 1, + sysDims.length, + dimsDef.length, + optDimCount || 0 + ); + each(sysDims, function (sysDimItem) { + let sysDimItemDimsDef; + if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) { + dimCount = Math.max(dimCount, sysDimItemDimsDef.length); + } + }); + return dimCount; +} + +function genName( + name: DimensionName, + map: HashMap, + autoIdx: number, + fromZero: boolean +): { name: DimensionName, autoIdx: number } { + const mapData = map.data; + if (fromZero || mapData.hasOwnProperty(name)) { + let i = autoIdx || 0; + while (mapData.hasOwnProperty(name + i)) { + i++; + } + name += i; + autoIdx = i; + } + map.set(name, true); + return { name, autoIdx }; } From 7739a9581fc7e64fad51e59a2bb7d17a258de722 Mon Sep 17 00:00:00 2001 From: pissang Date: Mon, 12 Jul 2021 18:42:54 +0800 Subject: [PATCH 13/64] refact(data): only pick necessary dimensions when using dataset --- src/chart/helper/createSeriesDataFromArray.ts | 101 ++++++++++++------ src/data/DataStorage.ts | 9 +- src/data/helper/createDimensions.ts | 10 +- src/layout/points.ts | 10 +- 4 files changed, 88 insertions(+), 42 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 9dc84793d9..f4b77965e1 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; -import createDimensions from '../../data/helper/createDimensions'; +import createDimensions, { CreateDimensionsParams } from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; @@ -32,32 +32,19 @@ import { } from '../../util/types'; import SeriesModel from '../../model/Series'; import DataStorage from '../../data/DataStorage'; +import DataDimensionInfo from '../../data/DataDimensionInfo'; function isDataStorage(val: unknown): val is DataStorage { return val instanceof DataStorage; } -function createListFromArray( - sourceOrStore: Source | OptionSourceData | DataStorage, +function getCoordSysDimDefs( seriesModel: SeriesModel, - opt?: { - generateCoord?: string - useEncodeDefaulter?: boolean | EncodeDefaulter - // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. - createInvertedIndices?: boolean - } -): SeriesData { - opt = opt || {}; - - if (!isSourceInstance(sourceOrStore) && !isDataStorage(sourceOrStore)) { - sourceOrStore = createSourceFromSeriesDataOption(sourceOrStore); - } - + coordSysInfo: ReturnType +) { const coordSysName = seriesModel.get('coordinateSystem'); const registeredCoordSys = CoordinateSystem.get(coordSysName); - const coordSysInfo = getCoordSysInfoBySeries(seriesModel); - let coordSysDimDefs: DimensionDefinitionLoose[]; if (coordSysInfo && coordSysInfo.coordSysDims) { @@ -83,21 +70,14 @@ function createListFromArray( )) || ['x', 'y']; } - const useEncodeDefaulter = opt.useEncodeDefaulter; - const dimInfoList = createDimensions( - isDataStorage(sourceOrStore) - ? sourceOrStore.getSource() : sourceOrStore, - { - coordDimensions: coordSysDimDefs, - generateCoord: opt.generateCoord, - encodeDefine: seriesModel.getEncode(), - encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) - ? useEncodeDefaulter - : useEncodeDefaulter - ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) - : null - }); + return coordSysDimDefs; +} +function injectOrdinalMeta( + dimInfoList: DataDimensionInfo[], + createInvertedIndices: boolean, + coordSysInfo: ReturnType +) { let firstCategoryDimIndex: number; let hasNameEncode: boolean; coordSysInfo && zrUtil.each(dimInfoList, function (dimInfo, dimIndex) { @@ -108,7 +88,7 @@ function createListFromArray( firstCategoryDimIndex = dimIndex; } dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta(); - if (opt.createInvertedIndices) { + if (createInvertedIndices) { dimInfo.createInvertedIndices = true; } } @@ -119,6 +99,61 @@ function createListFromArray( if (!hasNameEncode && firstCategoryDimIndex != null) { dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0; } + return firstCategoryDimIndex; +} + +function createListFromArray( + sourceOrStore: Source | OptionSourceData | DataStorage, + seriesModel: SeriesModel, + opt?: { + generateCoord?: string + useEncodeDefaulter?: boolean | EncodeDefaulter + // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys. + createInvertedIndices?: boolean + } +): SeriesData { + opt = opt || {}; + + if (!isSourceInstance(sourceOrStore) && !isDataStorage(sourceOrStore)) { + sourceOrStore = createSourceFromSeriesDataOption( + sourceOrStore as OptionSourceData + ); + } + + const coordSysInfo = getCoordSysInfoBySeries(seriesModel); + const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); + + const useEncodeDefaulter = opt.useEncodeDefaulter; + const createDimensionsConfig = { + coordDimensions: coordSysDimDefs, + generateCoord: opt.generateCoord, + encodeDefine: seriesModel.getEncode(), + encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) + ? useEncodeDefaulter + : useEncodeDefaulter + ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) + : null, + // Try to ignore unsed dimensions if sharing a high dimension datastorage + // 10 is an experience value. + ignoreUnusedDimension: isDataStorage(sourceOrStore) + && sourceOrStore.getDimensionCount() > 10 + } as CreateDimensionsParams; + let dimInfoList = createDimensions(sourceOrStore, createDimensionsConfig); + let firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); + + if (isDataStorage(sourceOrStore)) { + // sourceOrStore + if (!sourceOrStore.syncDimensionTypes(dimInfoList)) { + // Fallback. + dimInfoList = createDimensions(sourceOrStore, zrUtil.extend( + createDimensionsConfig, { ignoreUnusedDimension: false } + )); + firstCategoryDimIndex = injectOrdinalMeta( + dimInfoList, opt.createInvertedIndices, coordSysInfo + ); + sourceOrStore = sourceOrStore.getSource(); + } + } const stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 953083ea4c..ddfe33586f 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -230,6 +230,10 @@ class DataStorage { getDimensionIndex: (dim: DimensionName) => number; + getDimensionCount() { + return this._dimensions.length; + } + setOrdinalMeta(dimIdx: number, ordinalMeta: OrdinalMeta) { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; @@ -265,15 +269,16 @@ class DataStorage { const targetDim = targetDims[i]; const selfDimIdx = this.getDimensionIndex(targetDim.name); const selfDim = this._dimensions[selfDimIdx]; + const targetDimType = targetDim.type || 'float'; if (!selfDim // Type is different - || (selfDim.type && selfDim.type !== targetDim.type) + || (selfDim.type && selfDim.type !== targetDimType) // ordinalMeta is differnt. Usually being on the different axis. || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) ) { return false; } - selfDim.type = targetDim.type; + selfDim.type = targetDimType; } return true; } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 8c5f7e2d2c..dc5b163779 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -29,7 +29,7 @@ import { } from '../../util/types'; import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; -import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString } from 'zrender/src/core/util'; +import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString, keys } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; import DataStorage from '../DataStorage'; @@ -237,6 +237,8 @@ export default function createDimensions( const extra = generateCoord || 'value'; let coordDimNameAutoIdx = 0; let dataDimNameAutoIdx = 0; + + const pickedResult = []; // Set dim `name` and other `coordDim` and other props. for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); @@ -288,9 +290,13 @@ export default function createDimensions( ) { resultItem.type = 'ordinal'; } + + if (!resultItem.isExtraCoord || keys(resultItem.otherDims).length > 0) { + pickedResult.push(resultItem); + } } - return result; + return opt.ignoreUnusedDimension ? pickedResult : result; } diff --git a/src/layout/points.ts b/src/layout/points.ts index 7228b3897f..31d923ee00 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -56,11 +56,12 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? dims[1] = stackResultDim; } - const dimInfo0 = data.getDimensionInfo(dims[0]); - const dimInfo1 = data.getDimensionInfo(dims[1]); + const store = data.getStorage(); + const dim0 = data.getDimension(dims[0]); + const dim1 = data.getDimension(dims[1]); - const dimIdx0 = dimInfo0 && dimInfo0.index; - const dimIdx1 = dimInfo1 && dimInfo1.index; + const dimIdx0 = store.getDimensionIndex(dim0); + const dimIdx1 = store.getDimensionIndex(dim1); return dimLen && { progress(params, data) { @@ -69,7 +70,6 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? const tmpIn: ParsedValueNumeric[] = []; const tmpOut: number[] = []; - const store = data.getStorage(); for (let i = params.start, offset = 0; i < params.end; i++) { let point; From ff7498a67158faaaa1bc81d0b7778bc8fd4502aa Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 11:16:14 +0800 Subject: [PATCH 14/64] refact(data): add back appendValues. fix ut --- src/chart/map/MapSeries.ts | 5 +- src/data/DataStorage.ts | 58 ++++- src/data/SeriesData.ts | 121 +++++++--- test/ut/spec/data/SeriesData.test.ts | 262 +++++++++------------ test/ut/spec/data/createDimensions.test.ts | 3 +- 5 files changed, 249 insertions(+), 200 deletions(-) diff --git a/src/chart/map/MapSeries.ts b/src/chart/map/MapSeries.ts index 582b55ced9..2081886e31 100644 --- a/src/chart/map/MapSeries.ts +++ b/src/chart/map/MapSeries.ts @@ -133,10 +133,7 @@ class MapSeries extends SeriesModel { // Complete data with missing regions. The consequent processes (like visual // map and render) can not be performed without a "full data". For example, // find `dataIndex` by name. - data.appendData(zrUtil.map(toAppendNames, name => ({ - name, - value: NaN - }))); + data.appendValues([], toAppendNames); return data; } diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index ddfe33586f..eb4ee1a4a5 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -88,7 +88,12 @@ export interface DataStorageDimensionInfo { * Category strings will be collected and stored in ordinalMeta.categories. * And storage will store the index of categories. */ - ordinalMeta?: OrdinalMeta + ordinalMeta?: OrdinalMeta, + + /** + * Offset for ordinal parsing and collect + */ + ordinalOffset?: number } let defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter}; @@ -234,20 +239,23 @@ class DataStorage { return this._dimensions.length; } - setOrdinalMeta(dimIdx: number, ordinalMeta: OrdinalMeta) { + setOrdinalMeta( + dimIdx: number, + ordinalMeta: OrdinalMeta + ) { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; - // ordinalMeta already being set. - if (dim.ordinalMeta) { - return; - } + const offset = dim.ordinalOffset || 0; + const len = chunk.length; - for (let i = 0; i < chunk.length; i++) { + // Parse from previous data offset. len may be changed after appendData + for (let i = offset; i < len; i++) { (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); } dim.ordinalMeta = ordinalMeta; + dim.ordinalOffset = len; } getOrdinalMeta(dimIdx: number) { @@ -306,6 +314,42 @@ class DataStorage { return [start, end]; } + appendValues(values: any[][], minFillLen?: number) { + const storage = this._chunks; + const dimensions = this._dimensions; + const dimLen = dimensions.length; + const rawExtent = this._rawExtent; + + const start = this.count(); + const end = start + Math.max(values.length, minFillLen || 0); + + for (let i = 0; i < dimLen; i++) { + const dim = dimensions[i]; + prepareStorage(storage, i, dim.type, end, true); + } + + const emptyDataItem: number[] = []; + for (let idx = start; idx < end; idx++) { + const sourceIdx = idx - start; + // Store the data by dimensions + for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) { + const dim = dimensions[dimIdx]; + const val = defaultDimValueGetters.arrayRows.call( + this, values[sourceIdx] || emptyDataItem, dim.name, sourceIdx, dimIdx + ) as ParsedValueNumeric; + (storage[dimIdx] as any)[idx] = val; + + const dimRawExtent = rawExtent[dimIdx]; + val < dimRawExtent[0] && (dimRawExtent[0] = val); + val > dimRawExtent[1] && (dimRawExtent[1] = val); + } + } + + this._count = end; + + return {start, end}; + } + private _initDataFromProvider( start: number, end: number, diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 74b3bf3874..cc15ea568f 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -128,14 +128,15 @@ export interface DataCalculationInfo { // ----------------------------- // Internal method declarations: // ----------------------------- -let prepareInvertedIndex: (list: SeriesData) => void; -let getId: (list: SeriesData, rawIndex: number) => string; -let getIdNameFromStore: (list: SeriesData, dimIdx: number, dataIdx: number) => string; +let prepareInvertedIndex: (data: SeriesData) => void; +let getId: (data: SeriesData, rawIndex: number) => string; +let getIdNameFromStore: (data: SeriesData, dimIdx: number, dataIdx: number) => string; let normalizeDimensions: (dimensions: ItrParamDims) => Array; -let validateDimensions: (list: SeriesData, dims: DimensionIndex[]) => void; +let validateDimensions: (data: SeriesData, dims: DimensionIndex[]) => void; let setItemDataAndSeriesIndex: (this: Element, child: Element) => void; let transferProperties: (target: SeriesData, source: SeriesData) => void; let cloneListForMapAndSample: (original: SeriesData) => SeriesData; +let makeIdFromName: (data: SeriesData, idx: number) => void; class SeriesData< HostModel extends Model = Model, @@ -407,14 +408,6 @@ class SeriesData< store.initData(provider, dimensionInfos, dimValueGetter); } - for (let i = 0; i < dimensions.length; i++) { - const dimInfo = this._dimensionInfos[dimensions[i]]; - if (dimInfo.ordinalMeta) { - const dimIdx = store.getDimensionIndex(dimensions[i]); - store.setOrdinalMeta(dimIdx, dimInfo.ordinalMeta); - } - } - this._store = store; // Reset @@ -432,6 +425,56 @@ class SeriesData< const range = this._store.appendData(data); this._doInit(range[0], range[1]); } + /** + * Caution: Can be only called on raw data (before `this._indices` created). + * This method does not modify `rawData` (`dataProvider`), but only + * add values to storage. + * + * The final count will be increased by `Math.max(values.length, names.length)`. + * + * @param values That is the SourceType: 'arrayRows', like + * [ + * [12, 33, 44], + * [NaN, 43, 1], + * ['-', 'asdf', 0] + * ] + * Each item is exaclty cooresponding to a dimension. + */ + appendValues(values: any[][], names?: string[]): void { + const {start, end} = this._store.appendValues(values, names.length); + const shouldMakeIdFromName = this._shouldMakeIdFromName(); + + this._updateOrdinalMeta(); + + if (names) { + for (let idx = start; idx < end; idx++) { + const sourceIdx = idx - start; + this._nameList[idx] = names[sourceIdx]; + if (shouldMakeIdFromName) { + makeIdFromName(this, idx); + } + } + } + } + + private _updateOrdinalMeta() { + const store = this._store; + const dimensions = this.dimensions; + for (let i = 0; i < dimensions.length; i++) { + const dimInfo = this._dimensionInfos[dimensions[i]]; + if (dimInfo.ordinalMeta) { + const dimIdx = store.getDimensionIndex(dimensions[i]); + store.setOrdinalMeta(dimIdx, dimInfo.ordinalMeta); + } + } + } + + private _shouldMakeIdFromName() { + const provider = this._store.getProvider(); + return this._idDimIdx == null + && provider.getSource().sourceFormat !== SOURCE_FORMAT_TYPED_ARRAY + && !provider.fillStorage; + } private _doInit(start: number, end: number): void { if (start >= end) { @@ -441,15 +484,13 @@ class SeriesData< const store = this._store; const provider = store.getProvider(); + this._updateOrdinalMeta(); + const nameList = this._nameList; const idList = this._idList; const sourceFormat = provider.getSource().sourceFormat; const isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL; - const dontMakeIdFromName = this._idDimIdx != null - || sourceFormat === SOURCE_FORMAT_TYPED_ARRAY // Consider performance. - || !!provider.fillStorage; - // Each data item is value // [1, 2] // 2 @@ -479,29 +520,9 @@ class SeriesData< } } - if (!dontMakeIdFromName) { - const nameDimIdx = this._nameDimIdx; - const idDimIdx = this._idDimIdx; - + if (this._shouldMakeIdFromName()) { for (let idx = start; idx < end; idx++) { - let name = nameList[idx]; - let id = idList[idx]; - - if (name == null && nameDimIdx != null) { - nameList[idx] = name = getIdNameFromStore(this, nameDimIdx, idx); - } - if (id == null && idDimIdx != null) { - idList[idx] = id = getIdNameFromStore(this, idDimIdx, idx); - } - if (id == null && name != null) { - const nameRepeatCount = this._nameRepeatCount; - const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1; - id = name; - if (nmCnt > 1) { - id += '__ec__' + nmCnt; - } - idList[idx] = id; - } + makeIdFromName(this, idx); } } @@ -1306,7 +1327,31 @@ class SeriesData< target._calculationInfo = zrUtil.extend({}, source._calculationInfo); }; + makeIdFromName = function (data: SeriesData, idx: number): void { + const nameList = data._nameList; + const idList = data._idList; + const nameDimIdx = data._nameDimIdx; + const idDimIdx = data._idDimIdx; + + let name = nameList[idx]; + let id = idList[idx]; + if (name == null && nameDimIdx != null) { + nameList[idx] = name = getIdNameFromStore(data, nameDimIdx, idx); + } + if (id == null && idDimIdx != null) { + idList[idx] = id = getIdNameFromStore(data, idDimIdx, idx); + } + if (id == null && name != null) { + const nameRepeatCount = data._nameRepeatCount; + const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1; + id = name; + if (nmCnt > 1) { + id += '__ec__' + nmCnt; + } + idList[idx] = id; + } + }; })(); } diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index faef46d988..30b321df3f 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -32,7 +32,7 @@ const ID_PREFIX = 'e\0\0'; const NAME_REPEAT_PREFIX = '__ec__'; -describe('List', function () { +describe('SeriesData', function () { describe('Data Manipulation', function () { @@ -218,11 +218,11 @@ describe('List', function () { let getNameDataIndex = 0; return { - idEqualsTo: function (expectedId: string): void { + nextIdEqualsTo: function (expectedId: string): void { expect(list.getId(getIdDataIndex)).toEqual(expectedId); getIdDataIndex++; }, - nameEqualsTo: function (expectedName: string): void { + nextNameEqualsTo: function (expectedName: string): void { expect(list.getName(getNameDataIndex)).toEqual(expectedName); getNameDataIndex++; }, @@ -240,23 +240,23 @@ describe('List', function () { function doChecks(list: SeriesData) { const oneByOne = makeOneByOneChecker(list); - oneByOne.idEqualsTo('a'); - oneByOne.idEqualsTo('b'); - oneByOne.idEqualsTo(`b${NAME_REPEAT_PREFIX}2`); - oneByOne.idEqualsTo('c'); - oneByOne.idEqualsTo(`${ID_PREFIX}4`); - oneByOne.idEqualsTo(`c${NAME_REPEAT_PREFIX}2`); - oneByOne.idEqualsTo('d'); - oneByOne.idEqualsTo(`c${NAME_REPEAT_PREFIX}3`); - - oneByOne.nameEqualsTo('a'); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('c'); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('c'); - oneByOne.nameEqualsTo('d'); - oneByOne.nameEqualsTo('c'); + oneByOne.nextIdEqualsTo('a'); + oneByOne.nextIdEqualsTo('b'); + oneByOne.nextIdEqualsTo(`b${NAME_REPEAT_PREFIX}2`); + oneByOne.nextIdEqualsTo('c'); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}4`); + oneByOne.nextIdEqualsTo(`c${NAME_REPEAT_PREFIX}2`); + oneByOne.nextIdEqualsTo('d'); + oneByOne.nextIdEqualsTo(`c${NAME_REPEAT_PREFIX}3`); + + oneByOne.nextNameEqualsTo('a'); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('c'); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('c'); + oneByOne.nextNameEqualsTo('d'); + oneByOne.nextNameEqualsTo('c'); } it('sourceFormatOriginal', function () { @@ -299,10 +299,7 @@ describe('List', function () { sourceHeader: 0, dimensions: null }, - SOURCE_FORMAT_ARRAY_ROWS, - { - itemName: 1 - } + SOURCE_FORMAT_ARRAY_ROWS ); list.initData(source); @@ -333,33 +330,33 @@ describe('List', function () { { value: 120, id: 'myId_better' } // duplicated id. ]); - oneByOne.idEqualsTo('myId_10'); - oneByOne.idEqualsTo('555'); - oneByOne.idEqualsTo('666%'); - oneByOne.idEqualsTo('myId_good'); - oneByOne.idEqualsTo('b'); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo('NaN'); - oneByOne.idEqualsTo(''); - oneByOne.idEqualsTo(`b${NAME_REPEAT_PREFIX}2`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo('myId_better'); - oneByOne.idEqualsTo('myId_better'); - - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); + oneByOne.nextIdEqualsTo('myId_10'); + oneByOne.nextIdEqualsTo('555'); + oneByOne.nextIdEqualsTo('666%'); + oneByOne.nextIdEqualsTo('myId_good'); + oneByOne.nextIdEqualsTo('b'); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo('NaN'); + oneByOne.nextIdEqualsTo(''); + oneByOne.nextIdEqualsTo(`b${NAME_REPEAT_PREFIX}2`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo('myId_better'); + oneByOne.nextIdEqualsTo('myId_better'); + + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); list.appendData([ { value: 200, id: 'myId_best' }, @@ -369,96 +366,33 @@ describe('List', function () { { value: 240 } ]); - oneByOne.idEqualsTo('myId_best'); - oneByOne.idEqualsTo('999'); - oneByOne.idEqualsTo('777px'); - oneByOne.idEqualsTo(`b${NAME_REPEAT_PREFIX}3`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo('myId_best'); + oneByOne.nextIdEqualsTo('999'); + oneByOne.nextIdEqualsTo('777px'); + oneByOne.nextIdEqualsTo(`b${NAME_REPEAT_PREFIX}3`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); - list.appendData( - [ - { name: 'b', value: 300 }, - { name: 'c', value: 310 }, - { name: null, value: 320} - ] - ); + list.appendValues([], ['b', 'c', null]); - oneByOne.idEqualsTo(`b${NAME_REPEAT_PREFIX}4`); - oneByOne.idEqualsTo('c'); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`b${NAME_REPEAT_PREFIX}4`); + oneByOne.nextIdEqualsTo('c'); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('c'); - oneByOne.nameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('c'); + oneByOne.nextNameEqualsTo(''); }); }); describe('id_name_declared_sourceFormat_arrayRows', function () { - function makeChecker(list: SeriesData) { - const oneByOne = makeOneByOneChecker(list); - return { - checkAfterInitData() { - oneByOne.idEqualsTo('myId_10'); - oneByOne.idEqualsTo('555'); - oneByOne.idEqualsTo('666%'); - oneByOne.idEqualsTo('myId_good'); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo('NaN'); - oneByOne.idEqualsTo(''); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo('myId_better'); - oneByOne.idEqualsTo('myId_better'); - - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - }, - checkAfterAppendData() { - oneByOne.idEqualsTo('myId_best'); - oneByOne.idEqualsTo('999'); - oneByOne.idEqualsTo('777px'); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo(''); - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo(''); - }, - checkAfterAppendValues() { - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - oneByOne.idEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - - oneByOne.nameEqualsTo('b'); - oneByOne.nameEqualsTo('c'); - oneByOne.nameEqualsTo(''); - } - }; - } - it('no_ordinalMeta', function () { testArrayRowsInSource([ { name: 'x', type: 'number' }, @@ -487,7 +421,7 @@ describe('List', function () { function testArrayRowsInSource(dimensionsInfo: DataDimensionInfo[]): void { const list = new SeriesData(dimensionsInfo, new Model()); - const checker = makeChecker(list); + const oneByOne = makeOneByOneChecker(list); const source = createSource( [ @@ -510,15 +444,36 @@ describe('List', function () { sourceHeader: 0, dimensions: null }, - SOURCE_FORMAT_ARRAY_ROWS, - { - itemId: 1, - itemName: 2 - } + SOURCE_FORMAT_ARRAY_ROWS ); list.initData(source); - - checker.checkAfterInitData(); + oneByOne.nextIdEqualsTo('myId_10'); + oneByOne.nextIdEqualsTo('555'); + oneByOne.nextIdEqualsTo('666%'); + oneByOne.nextIdEqualsTo('myId_good'); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo('NaN'); + oneByOne.nextIdEqualsTo(''); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo('myId_better'); + oneByOne.nextIdEqualsTo('myId_better'); + + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); list.appendData([ [ 200, 'myId_best', null ], @@ -528,20 +483,29 @@ describe('List', function () { [ 240, null, null ] ]); - checker.checkAfterAppendData(); + oneByOne.nextIdEqualsTo('myId_best'); + oneByOne.nextIdEqualsTo('999'); + oneByOne.nextIdEqualsTo('777px'); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); - list.appendData( - [ - { name: 'b', value: 300 }, - { name: 'c', value: 310 }, - { name: null, value: 320} - ] - ); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo(''); + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo(''); + + list.appendValues([], ['b', 'c', null]); - checker.checkAfterAppendValues(); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + oneByOne.nextIdEqualsTo(`${ID_PREFIX}${oneByOne.currGetIdDataIndex()}`); + + oneByOne.nextNameEqualsTo('b'); + oneByOne.nextNameEqualsTo('c'); + oneByOne.nextNameEqualsTo(''); } }); - }); }); diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index 6ae72dc6bc..717a0816fd 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -77,8 +77,7 @@ describe('createDimensions', function () { sourceHeader: 0, dimensions: void 0 }, - SOURCE_FORMAT_ARRAY_ROWS, - null + SOURCE_FORMAT_ARRAY_ROWS ); const opt = { From 83bc2d9d8a145f236b90a290eddf6519433aaed0 Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 15:12:07 +0800 Subject: [PATCH 15/64] refact(data): fix createDimensions multiple times cause default encode wrong. --- src/chart/helper/createSeriesDataFromArray.ts | 32 +++++++++---------- src/data/DataStorage.ts | 2 +- src/data/SeriesData.ts | 2 +- src/data/helper/createDimensions.ts | 15 ++------- src/data/helper/dimensionHelper.ts | 14 +++++++- src/data/helper/sourceManager.ts | 22 +++++++++---- 6 files changed, 48 insertions(+), 39 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index f4b77965e1..02d71760d2 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -20,7 +20,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; import createDimensions, { CreateDimensionsParams } from '../../data/helper/createDimensions'; -import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; +import {getDimensionTypeByAxis, omitUnusedDimensions} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; import {getCoordSysInfoBySeries} from '../../model/referHelper'; @@ -122,9 +122,11 @@ function createListFromArray( const coordSysInfo = getCoordSysInfoBySeries(seriesModel); const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); - const useEncodeDefaulter = opt.useEncodeDefaulter; - const createDimensionsConfig = { + + // NOTE: don't call createDimensions on same source multiple times. + // It will break the encodeDefaulter which has sideeffects. + let dimInfoList = createDimensions(sourceOrStore, { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord, encodeDefine: seriesModel.getEncode(), @@ -132,22 +134,20 @@ function createListFromArray( ? useEncodeDefaulter : useEncodeDefaulter ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) - : null, - // Try to ignore unsed dimensions if sharing a high dimension datastorage - // 10 is an experience value. - ignoreUnusedDimension: isDataStorage(sourceOrStore) - && sourceOrStore.getDimensionCount() > 10 - } as CreateDimensionsParams; - let dimInfoList = createDimensions(sourceOrStore, createDimensionsConfig); + : null + }); let firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); - if (isDataStorage(sourceOrStore)) { + // Try to ignore unsed dimensions if sharing a high dimension datastorage + // 10 is an experience value. + if (isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 10) { + const omitedDimInfoList = omitUnusedDimensions(dimInfoList); // sourceOrStore - if (!sourceOrStore.syncDimensionTypes(dimInfoList)) { - // Fallback. - dimInfoList = createDimensions(sourceOrStore, zrUtil.extend( - createDimensionsConfig, { ignoreUnusedDimension: false } - )); + if (sourceOrStore.syncDimensionTypes(omitedDimInfoList)) { + dimInfoList = omitedDimInfoList; + } + else { + // Fallback firstCategoryDimIndex = injectOrdinalMeta( dimInfoList, opt.createInvertedIndices, coordSysInfo ); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index eb4ee1a4a5..c089e1bf06 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -239,7 +239,7 @@ class DataStorage { return this._dimensions.length; } - setOrdinalMeta( + collectOrdinalMeta( dimIdx: number, ordinalMeta: OrdinalMeta ) { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index cc15ea568f..f01c34945c 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -464,7 +464,7 @@ class SeriesData< const dimInfo = this._dimensionInfos[dimensions[i]]; if (dimInfo.ordinalMeta) { const dimIdx = store.getDimensionIndex(dimensions[i]); - store.setOrdinalMeta(dimIdx, dimInfo.ordinalMeta); + store.collectOrdinalMeta(dimIdx, dimInfo.ordinalMeta); } } } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index dc5b163779..57be8e9182 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -62,13 +62,7 @@ export type CreateDimensionsParams = { */ encodeDefaulter?: EncodeDefaulter, generateCoord?: string, - generateCoordCount?: number, - /** - * If ignore unused dimensions. - * This config will improve performance signifantly when multiple series - * is sharing a extra high dimension dataset. - */ - ignoreUnusedDimension?: boolean + generateCoordCount?: number }; /** @@ -238,7 +232,6 @@ export default function createDimensions( let coordDimNameAutoIdx = 0; let dataDimNameAutoIdx = 0; - const pickedResult = []; // Set dim `name` and other `coordDim` and other props. for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); @@ -290,13 +283,9 @@ export default function createDimensions( ) { resultItem.type = 'ordinal'; } - - if (!resultItem.isExtraCoord || keys(resultItem.otherDims).length > 0) { - pickedResult.push(resultItem); - } } - return opt.ignoreUnusedDimension ? pickedResult : result; + return result; } diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index aae9c2ea15..492c488fcf 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -18,12 +18,13 @@ */ -import {each, createHashMap, assert} from 'zrender/src/core/util'; +import {each, createHashMap, assert, filter, keys} from 'zrender/src/core/util'; import SeriesData from '../SeriesData'; import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex } from '../../util/types'; import { DataStorageDimensionType } from '../DataStorage'; +import DataDimensionInfo from '../DataDimensionInfo'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], @@ -41,6 +42,17 @@ export type DimensionSummary = { encodeFirstDimNotExtra: {[coordDim: string]: DimensionName}, }; +/** + * Omit unused dimensions. + * This will improve performance signifantly when multiple series + * is sharing a extra high dimension dataset. + */ +export function omitUnusedDimensions(dims: DataDimensionInfo[]) { + return filter(dims, (dim) => { + return !dim.isExtraCoord || keys(dim.otherDims).length > 0; + }); +} + export function summarizeDimensions(data: SeriesData): DimensionSummary { const summary: DimensionSummary = {} as DimensionSummary; const encode = summary.encode = {} as DimensionSummaryEncode; diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 4d0e941c5d..b1f4f6375a 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -356,12 +356,24 @@ export class SourceManager { /** * Will return undefined if source don't have dimensions. + * + * Only available for series. */ getDataStorage(): DataStorage | undefined { - return this._innerGetDataStorage(this.getSource(0)); + if (__DEV__) { + assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.') + } + const source = this.getSource(0); + const dimensionsDefine = source.dimensionsDefine; + const sourceReadKey = source.seriesLayoutBy + + '$$' + + source.startIndex + + (dimensionsDefine ? map(dimensionsDefine, def => def.name).join('$$') : ''); + + return this._innerGetDataStorage(source, sourceReadKey); } - private _innerGetDataStorage(endSource?: Source): DataStorage | undefined { + private _innerGetDataStorage(endSource: Source, sourceReadKey: string): DataStorage | undefined { // TODO Can use other sourceIndex? const sourceIndex = 0; @@ -373,10 +385,6 @@ export class SourceManager { // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. // So we use this two props as key. Another fact `dimensions` will be checked when initializing SeriesData. const sourceToInit = (endSource || source); - const seriesLayoutBy = sourceToInit.seriesLayoutBy; - const startIndex = sourceToInit.startIndex; - const sourceReadKey = seriesLayoutBy + '_' + startIndex; - let cachedStoreMap = storeList[sourceIndex]; if (!cachedStoreMap) { @@ -388,7 +396,7 @@ export class SourceManager { const upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { - cachedStore = upSourceMgr._innerGetDataStorage(endSource); + cachedStore = upSourceMgr._innerGetDataStorage(endSource, sourceReadKey); } else { const dimensionsDefine = source.dimensionsDefine; From bf059adc227b329a99921bfd01bea96fe9b4bc67 Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 16:39:23 +0800 Subject: [PATCH 16/64] refact(data): share source instance with dataset to reduce the cost of source dimension parse --- src/data/helper/sourceManager.ts | 48 +++++++++++++++++++------------- test/runTest/blacklist.js | 4 ++- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index b1f4f6375a..8790bd7f06 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -142,6 +142,8 @@ export class SourceManager { private _versionSignBase = 0; + private _dirty = true; + constructor(sourceHost: DatasetModel | SeriesModel) { this._sourceHost = sourceHost; } @@ -152,6 +154,7 @@ export class SourceManager { dirty() { this._setLocalSource([], []); this._storeList = []; + this._dirty = true; } private _setLocalSource( @@ -182,11 +185,13 @@ export class SourceManager { // cache the result source to prevent from repeating transform. if (this._isDirty()) { this._createSource(); + this._dirty = false; } } private _createSource(): void { this._setLocalSource([], []); + const sourceHost = this._sourceHost; const upSourceMgrList = this._getUpstreamSourceManagers(); @@ -219,28 +224,24 @@ export class SourceManager { // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root. const newMetaRawOption = this._getSourceMetaRawOption(); - const upMetaRawOption = upSource ? upSource.metaRawOption : null; - const seriesLayoutBy = retrieve2( - newMetaRawOption.seriesLayoutBy, - upMetaRawOption ? upMetaRawOption.seriesLayoutBy : null - ); - const sourceHeader = retrieve2( - newMetaRawOption.sourceHeader, - upMetaRawOption ? upMetaRawOption.sourceHeader : null - ); + const upMetaRawOption = upSource ? upSource.metaRawOption : {} as SourceMetaRawOption; + const seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null; + const sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader) || null; // Note here we should not use `upSource.dimensionsDefine`. Consider the case: // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`, // but series need `seriesLayoutBy: 'row'`. - const dimensions = retrieve2( - newMetaRawOption.dimensions, - upMetaRawOption ? upMetaRawOption.dimensions : null - ); - - resultSourceList = [createSource( + const dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption.dimensions); + + // We share source with dataset as much as possible + // to avoid extra memroy cost of high dimensional data. + const needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy + || !!sourceHeader !== !!upMetaRawOption.sourceHeader + || dimensions; + resultSourceList = needsCreateSource ? [createSource( data, { seriesLayoutBy, sourceHeader, dimensions }, sourceFormat - )]; + )] : []; } else { const datasetModel = sourceHost as DatasetModel; @@ -326,8 +327,7 @@ export class SourceManager { } private _isDirty(): boolean { - const sourceList = this._sourceList; - if (!sourceList.length) { + if (this._dirty) { return true; } @@ -350,8 +350,16 @@ export class SourceManager { * @param sourceIndex By defualt 0, means "main source". * Most cases there is only one source. */ - getSource(sourceIndex?: number) { - return this._sourceList[sourceIndex || 0]; + getSource(sourceIndex?: number): Source { + sourceIndex = sourceIndex || 0; + const source = this._sourceList[sourceIndex]; + if (!source) { + // Series may share source instance with dataset. + const upSourceMgrList = this._getUpstreamSourceManagers(); + return upSourceMgrList[0] + && upSourceMgrList[0].getSource(sourceIndex); + } + return source; } /** diff --git a/test/runTest/blacklist.js b/test/runTest/blacklist.js index ba638ed9fb..3bedb0cf4c 100644 --- a/test/runTest/blacklist.js +++ b/test/runTest/blacklist.js @@ -39,7 +39,9 @@ module.exports.blacklist = [ // This case will have timeout 'visualMap-performance1.html', - 'lines-stream-not-large.html' + 'lines-stream-not-large.html', + + 'dataset-performance.html' ]; From 50d430d7e861c1ea9d0dc969a9f42a24df3bf694 Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 21:52:06 +0800 Subject: [PATCH 17/64] refact(data): not clone store if possible --- src/data/SeriesData.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index f01c34945c..e2e53450dc 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -812,6 +812,8 @@ class SeriesData< validateDimensions(this, dimIndices); } + // Clone first + this._store = this._store.clone(); this._store.filterSelf(dimIndices, (fCtx ? zrUtil.bind(cb as any, fCtx as any) : cb) as any @@ -840,6 +842,7 @@ class SeriesData< validateDimensions(this, dimIndices); } + this._store = this._store.clone(); this._store.selectRange(innerRange); return this; } @@ -1195,7 +1198,7 @@ class SeriesData< } transferProperties(list, this); - list._store = this._store.clone(); + list._store = this._store; return list; } From 53113c44a5141851fab313630c9da9a984d1fa9c Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 22:28:59 +0800 Subject: [PATCH 18/64] refact(data): omit unused dimensions in createDimensions --- src/chart/helper/createSeriesDataFromArray.ts | 50 +++-- src/data/DataStorage.ts | 10 +- src/data/helper/createDimensions.ts | 180 +++++++++++------- src/data/helper/dimensionHelper.ts | 11 -- src/data/helper/sourceManager.ts | 4 +- 5 files changed, 146 insertions(+), 109 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 02d71760d2..b84bf0ea37 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -19,8 +19,8 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; -import createDimensions, { CreateDimensionsParams } from '../../data/helper/createDimensions'; -import {getDimensionTypeByAxis, omitUnusedDimensions} from '../../data/helper/dimensionHelper'; +import createDimensions, { CreateDimensionsParams, getDimCount } from '../../data/helper/createDimensions'; +import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; import {getCoordSysInfoBySeries} from '../../model/referHelper'; @@ -120,38 +120,46 @@ function createListFromArray( ); } + const source = isDataStorage(sourceOrStore) ? sourceOrStore.getSource() : sourceOrStore; const coordSysInfo = getCoordSysInfoBySeries(seriesModel); const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); const useEncodeDefaulter = opt.useEncodeDefaulter; - // NOTE: don't call createDimensions on same source multiple times. - // It will break the encodeDefaulter which has sideeffects. - let dimInfoList = createDimensions(sourceOrStore, { + // Try to ignore unsed dimensions if sharing a high dimension datastorage + // 10 is an experience value. + const omitUnusedDimensions = isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 10; + const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter) + ? useEncodeDefaulter + : useEncodeDefaulter + ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) + : null; + + const createDimensionOptions = { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord, - encodeDefine: seriesModel.getEncode(), - encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) - ? useEncodeDefaulter - : useEncodeDefaulter - ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) - : null - }); + encodeDefine: seriesModel.getEncode() + // NOTE: If we call createDimensions on same source multiple times. + // It will break the encodeDefaulter which has sideeffects. + // So we prepare the default encode here instead of passing encoderDefaulter function. + || (encodeDefaulter && encodeDefaulter( + source, getDimCount(source, coordSysDimDefs, source.dimensionsDefine || []) + )), + omitUnusedDimensions + }; + let dimInfoList = createDimensions(sourceOrStore, createDimensionOptions); let firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); - // Try to ignore unsed dimensions if sharing a high dimension datastorage - // 10 is an experience value. - if (isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 10) { - const omitedDimInfoList = omitUnusedDimensions(dimInfoList); + if (omitUnusedDimensions) { // sourceOrStore - if (sourceOrStore.syncDimensionTypes(omitedDimInfoList)) { - dimInfoList = omitedDimInfoList; - } - else { + if (!(sourceOrStore as DataStorage).syncDimensionTypes(dimInfoList)) { + dimInfoList = createDimensions(sourceOrStore, zrUtil.extend(createDimensionOptions, { + omitUnusedDimensions: true + })); // Fallback firstCategoryDimIndex = injectOrdinalMeta( dimInfoList, opt.createInvertedIndices, coordSysInfo ); - sourceOrStore = sourceOrStore.getSource(); + sourceOrStore = source; } } diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index c089e1bf06..7bc93f673b 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -34,6 +34,12 @@ import { Source } from './Source'; const UNDEFINED = 'undefined'; /* global Float64Array, Int32Array, Uint32Array, Uint16Array */ +// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is +// different from the Ctor of typed array. +export const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; +export const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; +export const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; +export const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Int32Array; /** * Multi dimensional data storage */ @@ -54,10 +60,6 @@ type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; type DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array; type DataArrayLikeConstructor = typeof Array | DataTypedArrayConstructor; -// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is -// different from the Ctor of typed array. -const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; -const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; type DataValueChunk = ArrayLike; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 57be8e9182..efd1dfb81e 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -29,10 +29,10 @@ import { } from '../../util/types'; import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; -import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString, keys } from 'zrender/src/core/util'; +import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString, keys, map } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; -import DataStorage from '../DataStorage'; +import DataStorage, { CtorInt32Array, CtorUint32Array } from '../DataStorage'; import { normalizeToArray } from '../../util/model'; import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; @@ -62,7 +62,13 @@ export type CreateDimensionsParams = { */ encodeDefaulter?: EncodeDefaulter, generateCoord?: string, - generateCoordCount?: number + generateCoordCount?: number, + + /** + * If omit unused dimension + * Used to improve the performance on high dimension data. + */ + omitUnusedDimensions?: boolean }; /** @@ -96,37 +102,57 @@ export default function createDimensions( const dimsDef = (opt.dimensionsDefine || source.dimensionsDefine || []).slice(); const dataDimNameMap = createHashMap(); const coordDimNameMap = createHashMap(); - // let valueCandidate; const result: DataDimensionInfo[] = []; + const omitUnusedDimensions = opt.omitUnusedDimensions; const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); + let encodeDef = opt.encodeDefine; + if (!encodeDef && opt.encodeDefaulter) { + encodeDef = opt.encodeDefaulter(source, dimCount); + } + const encodeDefMap = createHashMap(encodeDef as any); + + const indicesMap = new CtorInt32Array(dimCount); + for (let i = 0; i < indicesMap.length; i++) { + indicesMap[i] = -1; + } + function getResultItem(dimIdx: number) { + const idx = indicesMap[dimIdx]; + if (idx < 0) { + const dimDefItemRaw = dimsDef[dimIdx]; + const dimDefItem = isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw }; + const resultItem = new DataDimensionInfo(); + const userDimName = dimDefItem.name; + if (dataDimNameMap.get(userDimName) != null) { + resultItem.name = resultItem.displayName = userDimName; + } + dimDefItem.type != null && (resultItem.type = dimDefItem.type); + dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); + const newIdx = result.length; + indicesMap[dimIdx] = newIdx; + result.push(resultItem); + return resultItem; + } + return result[idx]; + } + // Apply user defined dims (`name` and `type`) and init result. for (let i = 0; i < dimCount; i++) { const dimDefItemRaw = dimsDef[i]; - const dimDefItem = dimsDef[i] = extend( - {}, isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw } - ); - - const userDimName = dimDefItem.name; - const resultItem = result[i] = new DataDimensionInfo(); + const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; // Name will be applied later for avoiding duplication. if (userDimName != null && dataDimNameMap.get(userDimName) == null) { // Only if `series.dimensions` is defined in option // displayName, will be set, and dimension will be diplayed vertically in // tooltip by default. - resultItem.name = resultItem.displayName = userDimName; dataDimNameMap.set(userDimName, i); } - dimDefItem.type != null && (resultItem.type = dimDefItem.type); - dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); - } - let encodeDef = opt.encodeDefine; - if (!encodeDef && opt.encodeDefaulter) { - encodeDef = opt.encodeDefaulter(source, dimCount); + if (!omitUnusedDimensions) { + getResultItem(i); + } } - const encodeDefMap = createHashMap(encodeDef as any); // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`. encodeDefMap.each(function (dataDimsRaw, coordDim) { @@ -148,7 +174,7 @@ export default function createDimensions( : resultDimIdxOrName; if (resultDimIdx != null && resultDimIdx < dimCount) { validDataDims[idx] = resultDimIdx; - applyDim(result[resultDimIdx], coordDim, idx); + applyDim(getResultItem(resultDimIdx), coordDim, idx); } }); }); @@ -190,16 +216,16 @@ export default function createDimensions( // dimensions provides default dim sequences. if (!dataDims.length) { for (let i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) { - while (availDimIdx < result.length && result[availDimIdx].coordDim != null) { + while (availDimIdx < dimCount && getResultItem(availDimIdx).coordDim != null) { availDimIdx++; } - availDimIdx < result.length && dataDims.push(availDimIdx++); + availDimIdx < dimCount && dataDims.push(availDimIdx++); } } // Apply templates. each(dataDims, function (resultDimIdx, coordDimIndex) { - const resultItem = result[resultDimIdx]; + const resultItem = getResultItem(resultDimIdx); applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); if (resultItem.name == null && sysDimItemDimsDef) { let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; @@ -233,59 +259,71 @@ export default function createDimensions( let dataDimNameAutoIdx = 0; // Set dim `name` and other `coordDim` and other props. - for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { - const resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo(); - const coordDim = resultItem.coordDim; + if (!omitUnusedDimensions) { + for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { + const resultItem = getResultItem(resultDimIdx); + const coordDim = resultItem.coordDim; - if (coordDim == null) { - const res = genName( - extra, coordDimNameMap, coordDimNameAutoIdx, fromZero - ); - coordDimNameAutoIdx = res.autoIdx; - resultItem.coordDim = res.name; - resultItem.coordDimIndex = 0; - // Series specified generateCoord is using out. - if (!generateCoord || generateCoordCount <= 0) { - resultItem.isExtraCoord = true; + if (coordDim == null) { + const res = genName( + extra, coordDimNameMap, coordDimNameAutoIdx, fromZero + ); + coordDimNameAutoIdx = res.autoIdx; + resultItem.coordDim = res.name; + resultItem.coordDimIndex = 0; + // Series specified generateCoord is using out. + if (!generateCoord || generateCoordCount <= 0) { + resultItem.isExtraCoord = true; + } + generateCoordCount--; } - generateCoordCount--; - } - if (resultItem.name == null) { - const res = genName( - resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false - ); - resultItem.name = res.name; - dataDimNameAutoIdx = res.autoIdx; - } + if (resultItem.name == null) { + const res = genName( + resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false + ); + resultItem.name = res.name; + dataDimNameAutoIdx = res.autoIdx; + } - if (resultItem.type == null - && ( - guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must - // Consider the case: - // { - // dataset: {source: [ - // ['2001', 123], - // ['2002', 456], - // ... - // ['The others', 987], - // ]}, - // series: {type: 'pie'} - // } - // The first colum should better be treated as a "ordinal" although it - // might not able to be detected as an "ordinal" by `guessOrdinal`. - || (resultItem.isExtraCoord - && (resultItem.otherDims.itemName != null - || resultItem.otherDims.seriesName != null + if (resultItem.type == null + && ( + guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must + // Consider the case: + // { + // dataset: {source: [ + // ['2001', 123], + // ['2002', 456], + // ... + // ['The others', 987], + // ]}, + // series: {type: 'pie'} + // } + // The first colum should better be treated as a "ordinal" although it + // might not able to be detected as an "ordinal" by `guessOrdinal`. + || (resultItem.isExtraCoord + && (resultItem.otherDims.itemName != null + || resultItem.otherDims.seriesName != null + ) ) ) - ) - ) { - resultItem.type = 'ordinal'; + ) { + resultItem.type = 'ordinal'; + } } + return result; + } + else { + // Sort dimensions + const toSort = []; + for (let i = 0; i < indicesMap.length; i++) { + if (indicesMap[i] >= 0) { + toSort.push({ i, o: result[indicesMap[i]]}); + } + } + toSort.sort((a, b) => a.i - b.i); + return map(toSort, item => item.o); } - - return result; } @@ -299,11 +337,11 @@ export default function createDimensions( // (2) sometimes user need to calcualte bubble size or use visualMap // on other dimensions besides coordSys needed. // So, dims that is not used by system, should be shared in storage? -function getDimCount( +export function getDimCount( source: Source, sysDims: CoordDimensionDefinitionLoose[], dimsDef: DimensionDefinitionLoose[], - optDimCount: number + optDimCount?: number ): number { // Note that the result dimCount should not small than columns count // of data, otherwise `dataDimNameMap` checking will be incorrect. @@ -335,8 +373,8 @@ function genName( i++; } name += i; - autoIdx = i; + autoIdx = i + 1; } map.set(name, true); return { name, autoIdx }; -} +} \ No newline at end of file diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 492c488fcf..9a97b9eca6 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -42,17 +42,6 @@ export type DimensionSummary = { encodeFirstDimNotExtra: {[coordDim: string]: DimensionName}, }; -/** - * Omit unused dimensions. - * This will improve performance signifantly when multiple series - * is sharing a extra high dimension dataset. - */ -export function omitUnusedDimensions(dims: DataDimensionInfo[]) { - return filter(dims, (dim) => { - return !dim.isExtraCoord || keys(dim.otherDims).length > 0; - }); -} - export function summarizeDimensions(data: SeriesData): DimensionSummary { const summary: DimensionSummary = {} as DimensionSummary; const encode = summary.encode = {} as DimensionSummaryEncode; diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 8790bd7f06..da73f558ef 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -223,8 +223,8 @@ export class SourceManager { } // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root. - const newMetaRawOption = this._getSourceMetaRawOption(); - const upMetaRawOption = upSource ? upSource.metaRawOption : {} as SourceMetaRawOption; + const newMetaRawOption = this._getSourceMetaRawOption() || {} as SourceMetaRawOption; + const upMetaRawOption = upSource && upSource.metaRawOption || {} as SourceMetaRawOption; const seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null; const sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader) || null; // Note here we should not use `upSource.dimensionsDefine`. Consider the case: From 7573ceb7e4e1818fc5b9c59e4b85eef801bd9317 Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 13 Jul 2021 22:52:39 +0800 Subject: [PATCH 19/64] refact(data): try to cache dim name map in complete dimensions --- src/data/helper/createDimensions.ts | 51 +++++++++++++++++++---------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index efd1dfb81e..3e69c40528 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -29,13 +29,16 @@ import { } from '../../util/types'; import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; -import { clone, createHashMap, defaults, each, extend, HashMap, isObject, isString, keys, map } from 'zrender/src/core/util'; +import { clone, createHashMap, defaults, each, HashMap, isObject, isString, map } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; -import DataStorage, { CtorInt32Array, CtorUint32Array } from '../DataStorage'; -import { normalizeToArray } from '../../util/model'; +import DataStorage, { CtorInt32Array } from '../DataStorage'; +import { makeInner, normalizeToArray } from '../../util/model'; import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; +const inner = makeInner<{ + dimNameMap: HashMap +}, Source>(); export interface CoordDimensionDefinition extends DimensionDefinition { dimsDef?: (DimensionName | { name: DimensionName, defaultTooltip?: boolean })[]; @@ -98,12 +101,19 @@ export default function createDimensions( opt = opt || {}; - const sysDims = (opt.coordDimensions || []).slice(); - const dimsDef = (opt.dimensionsDefine || source.dimensionsDefine || []).slice(); - const dataDimNameMap = createHashMap(); + const sysDims = opt.coordDimensions || []; + const dimsDef = opt.dimensionsDefine || source.dimensionsDefine || []; const coordDimNameMap = createHashMap(); const result: DataDimensionInfo[] = []; const omitUnusedDimensions = opt.omitUnusedDimensions; + // Try to cache the dimNameMap if the dimensionsDefine is from source. + const canCacheDimNameMap = (dimsDef === source.dimensionsDefine && omitUnusedDimensions); + let dataDimNameMap = canCacheDimNameMap && inner(source).dimNameMap; + let needsUpdateDataDimNameMap = false; + if (!dataDimNameMap) { + needsUpdateDataDimNameMap = true; + dataDimNameMap = createHashMap(); + } const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); @@ -137,19 +147,24 @@ export default function createDimensions( return result[idx]; } - // Apply user defined dims (`name` and `type`) and init result. - for (let i = 0; i < dimCount; i++) { - const dimDefItemRaw = dimsDef[i]; - const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; - // Name will be applied later for avoiding duplication. - if (userDimName != null && dataDimNameMap.get(userDimName) == null) { - // Only if `series.dimensions` is defined in option - // displayName, will be set, and dimension will be diplayed vertically in - // tooltip by default. - dataDimNameMap.set(userDimName, i); + if (needsUpdateDataDimNameMap) { + for (let i = 0; i < dimCount; i++) { + const dimDefItemRaw = dimsDef[i]; + const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; + // Name will be applied later for avoiding duplication. + if (userDimName != null && dataDimNameMap.get(userDimName) == null) { + // Only if `series.dimensions` is defined in option + // displayName, will be set, and dimension will be diplayed vertically in + // tooltip by default. + dataDimNameMap.set(userDimName, i); + } } - - if (!omitUnusedDimensions) { + if (canCacheDimNameMap) { + inner(source).dimNameMap = dataDimNameMap; + } + } + if (!omitUnusedDimensions) { + for (let i = 0; i < dimCount; i++) { getResultItem(i); } } From 0349b87f03ba94dc153a2304de31d56c913ac690 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 14 Jul 2021 11:27:43 +0800 Subject: [PATCH 20/64] refact(data): fix type from dataset may incorrect. --- src/chart/helper/createSeriesDataFromArray.ts | 6 +++--- src/data/DataStorage.ts | 21 ++++++++----------- src/data/SeriesData.ts | 2 +- src/data/helper/createDimensions.ts | 11 +++++++--- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index b84bf0ea37..fa6a2fbf21 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -126,8 +126,8 @@ function createListFromArray( const useEncodeDefaulter = opt.useEncodeDefaulter; // Try to ignore unsed dimensions if sharing a high dimension datastorage - // 10 is an experience value. - const omitUnusedDimensions = isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 10; + // 30 is an experience value. + const omitUnusedDimensions = isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 30; const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter @@ -151,7 +151,7 @@ function createListFromArray( if (omitUnusedDimensions) { // sourceOrStore - if (!(sourceOrStore as DataStorage).syncDimensionTypes(dimInfoList)) { + if (!(sourceOrStore as DataStorage).canUse(dimInfoList)) { dimInfoList = createDimensions(sourceOrStore, zrUtil.extend(createDimensionOptions, { omitUnusedDimensions: true })); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 7bc93f673b..01574ec3c6 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -267,28 +267,25 @@ class DataStorage { } /** - * If we using dataset. - * Dimensions types may only know when we initializing series. - * So we need to sync the type back to storage when initlializing SeriesData back - * - * Will return false if dimension type has been known and different from given. - * We need to recreate a new data storage in this case. + * The dimension defines of series may be different with dataset. For example + * in dataset one dimension is not ordinal and being parsed to number. + * In this case we can't used it in series if we wan't to use it as ordinal. This storage needs to be discarded. */ - syncDimensionTypes(targetDims: DataStorageDimensionInfo[]) { + // TODO Can't sure what's frequency will this validate fail and cause datastorage recreate. + canUse(targetDims: DataStorageDimensionInfo[]) { for (let i = 0; i < targetDims.length; i++) { const targetDim = targetDims[i]; const selfDimIdx = this.getDimensionIndex(targetDim.name); const selfDim = this._dimensions[selfDimIdx]; - const targetDimType = targetDim.type || 'float'; - if (!selfDim + if ( + !selfDim // Type is different - || (selfDim.type && selfDim.type !== targetDimType) - // ordinalMeta is differnt. Usually being on the different axis. + || selfDim.type || 'float' !== targetDim.type || 'float' + // ordinalMeta is different. Usually being on the different axis. || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) ) { return false; } - selfDim.type = targetDimType; } return true; } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index e2e53450dc..388a7f1b51 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -390,7 +390,7 @@ class SeriesData< const dimensions = this.dimensions; const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - if (data.syncDimensionTypes(dimensionInfos)) { + if (data.canUse(dimensionInfos)) { store = data; } // Sync failed diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 3e69c40528..ad5413d1cb 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -29,7 +29,7 @@ import { } from '../../util/types'; import SeriesData from '../SeriesData'; import DataDimensionInfo from '../DataDimensionInfo'; -import { clone, createHashMap, defaults, each, HashMap, isObject, isString, map } from 'zrender/src/core/util'; +import { createHashMap, defaults, each, extend, HashMap, isObject, isString, map } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; import DataStorage, { CtorInt32Array } from '../DataStorage'; @@ -106,8 +106,9 @@ export default function createDimensions( const coordDimNameMap = createHashMap(); const result: DataDimensionInfo[] = []; const omitUnusedDimensions = opt.omitUnusedDimensions; + const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; // Try to cache the dimNameMap if the dimensionsDefine is from source. - const canCacheDimNameMap = (dimsDef === source.dimensionsDefine && omitUnusedDimensions); + const canCacheDimNameMap = (isUsingSourceDimensionsDef && omitUnusedDimensions); let dataDimNameMap = canCacheDimNameMap && inner(source).dimNameMap; let needsUpdateDataDimNameMap = false; if (!dataDimNameMap) { @@ -210,7 +211,7 @@ export default function createDimensions( coordDim = sysDimItem.name; const ordinalMeta = sysDimItem.ordinalMeta; sysDimItem.ordinalMeta = null; - sysDimItem = clone(sysDimItem); + sysDimItem = extend({}, sysDimItem); sysDimItem.ordinalMeta = ordinalMeta; // `coordDimIndex` should not be set directly. sysDimItemDimsDef = sysDimItem.dimsDef; @@ -241,6 +242,10 @@ export default function createDimensions( // Apply templates. each(dataDims, function (resultDimIdx, coordDimIndex) { const resultItem = getResultItem(resultDimIdx); + // Coordinate system has a higher priority on dim type than source. + if (isUsingSourceDimensionsDef && sysDimItem.type != null) { + resultItem.type = sysDimItem.type; + } applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); if (resultItem.name == null && sysDimItemDimsDef) { let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; From e9e6077c0a7a6496034793c354c0336a7e2a33e2 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 14 Jul 2021 12:55:45 +0800 Subject: [PATCH 21/64] refact(data): fix storage clone lost indices. --- src/data/DataStorage.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 01574ec3c6..7c9322a11c 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -796,7 +796,7 @@ class DataStorage { */ map(dims: DimensionIndex[], cb: MapCb): DataStorage { // TODO only clone picked chunks. - const target = this.clone(dims, true); + const target = this.clone(dims); const targetChunks = target._chunks; @@ -854,7 +854,7 @@ class DataStorage { valueDimension: DimensionIndex, rate: number ) { - const target = this.clone([valueDimension]); + const target = this.clone([valueDimension], true); const targetStorage = target._chunks; const dimStore = targetStorage[valueDimension]; const len = this.count(); @@ -941,7 +941,7 @@ class DataStorage { sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number ): DataStorage { - const target = this.clone([dimension]); + const target = this.clone([dimension], true); const targetStorage = target._chunks; const frameValues = []; @@ -1108,7 +1108,7 @@ class DataStorage { * * @param clonedDims Determine which dims to clone. Will share the data if not specified. */ - clone(clonedDims?: number[], cloneIndices?: boolean): DataStorage { + clone(clonedDims?: number[], ignoreIndices?: boolean): DataStorage { const target = new DataStorage(); const chunks = this._chunks; const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { @@ -1128,7 +1128,7 @@ class DataStorage { } this._copyCommonProps(target); - if (cloneIndices) { + if (!ignoreIndices) { target._indices = this._cloneIndices(); } target._updateGetRawIdx(); From 345402df3a7ce434a184be82440288eb3ac7fdc6 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 14 Jul 2021 17:44:22 +0800 Subject: [PATCH 22/64] refact: don't recreate data storage when converting float to time --- src/chart/helper/createSeriesDataFromArray.ts | 2 +- src/data/DataStorage.ts | 35 ++++++++++++------- src/data/SeriesData.ts | 2 +- src/data/helper/dataValueHelper.ts | 1 - 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index fa6a2fbf21..2e31963904 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -151,7 +151,7 @@ function createListFromArray( if (omitUnusedDimensions) { // sourceOrStore - if (!(sourceOrStore as DataStorage).canUse(dimInfoList)) { + if (!(sourceOrStore as DataStorage).syncDimensionTypes(dimInfoList)) { dimInfoList = createDimensions(sourceOrStore, zrUtil.extend(createDimensionOptions, { omitUnusedDimensions: true })); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 7c9322a11c..5b724b7839 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -39,21 +39,26 @@ const UNDEFINED = 'undefined'; export const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array; export const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array; export const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; -export const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Int32Array; +export const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array; /** * Multi dimensional data storage */ - const dataCtors = { - 'float': typeof Float64Array === UNDEFINED - ? Array : Float64Array, - 'int': typeof Int32Array === UNDEFINED - ? Array : Int32Array, +const dataCtors = { + 'float': CtorFloat64Array, + 'int': CtorInt32Array, // Ordinal data type can be string or int 'ordinal': Array, 'number': Array, - 'time': Array + 'time': CtorFloat64Array } as const; +// Dim with same category can be convert between. +const dataCtorCategory = { + 'float': 0, 'time': 0, + 'number': 1, 'int': 2, + 'ordinal': 3 +}; + export type DataStorageDimensionType = keyof typeof dataCtors; type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; @@ -267,25 +272,29 @@ class DataStorage { } /** - * The dimension defines of series may be different with dataset. For example - * in dataset one dimension is not ordinal and being parsed to number. - * In this case we can't used it in series if we wan't to use it as ordinal. This storage needs to be discarded. + * If we using dataset. + * Dimensions types may only know when we initializing series. + * So we need to sync the type back to storage when initlializing SeriesData back + * + * Will return false if dimension type has been known and different from given. + * We need to recreate a new data storage in this case. */ // TODO Can't sure what's frequency will this validate fail and cause datastorage recreate. - canUse(targetDims: DataStorageDimensionInfo[]) { + syncDimensionTypes(targetDims: DataStorageDimensionInfo[]) { for (let i = 0; i < targetDims.length; i++) { const targetDim = targetDims[i]; const selfDimIdx = this.getDimensionIndex(targetDim.name); const selfDim = this._dimensions[selfDimIdx]; if ( !selfDim - // Type is different - || selfDim.type || 'float' !== targetDim.type || 'float' + // Dim type can be convert between because ctors are compatitable. + || dataCtorCategory[selfDim.type || 'float'] !== dataCtorCategory[targetDim.type || 'float'] // ordinalMeta is different. Usually being on the different axis. || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) ) { return false; } + selfDim.type = targetDim.type; } return true; } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 388a7f1b51..e2e53450dc 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -390,7 +390,7 @@ class SeriesData< const dimensions = this.dimensions; const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - if (data.canUse(dimensionInfos)) { + if (data.syncDimensionTypes(dimensionInfos)) { store = data; } // Sync failed diff --git a/src/data/helper/dataValueHelper.ts b/src/data/helper/dataValueHelper.ts index 2a625f3c23..1c10798c76 100644 --- a/src/data/helper/dataValueHelper.ts +++ b/src/data/helper/dataValueHelper.ts @@ -18,7 +18,6 @@ */ import { ParsedValue, DimensionType } from '../../util/types'; -import OrdinalMeta from '../OrdinalMeta'; import { parseDate, numericToNumber } from '../../util/number'; import { createHashMap, trim, hasOwn } from 'zrender/src/core/util'; import { throwError } from '../../util/log'; From e026f3fc256aabbe96686e522ff064ab3bf89d4b Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 14 Jul 2021 21:50:08 +0800 Subject: [PATCH 23/64] refact(data): fix marker --- src/component/marker/MarkAreaView.ts | 10 ++++++---- src/component/marker/MarkLineView.ts | 6 +++++- src/component/marker/MarkPointView.ts | 13 ++++++++----- src/data/SeriesData.ts | 2 +- test/timeline-event.html | 2 +- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/component/marker/MarkAreaView.ts b/src/component/marker/MarkAreaView.ts index e4faafdc1a..d5aadadccc 100644 --- a/src/component/marker/MarkAreaView.ts +++ b/src/component/marker/MarkAreaView.ts @@ -26,7 +26,7 @@ import * as graphic from '../../util/graphic'; import { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states'; import * as markerHelper from './markerHelper'; import MarkerView from './MarkerView'; -import { retrieve, mergeAll, map, defaults, curry, filter, HashMap } from 'zrender/src/core/util'; +import { retrieve, mergeAll, map, defaults, curry, filter, HashMap, extend } from 'zrender/src/core/util'; import { ScaleDataValue, ParsedValue, ZRColor } from '../../util/types'; import { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem'; import MarkAreaModel, { MarkArea2DDataItemOption } from './MarkAreaModel'; @@ -372,9 +372,11 @@ function createList( data.mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys - return defaults({ - name: coordDim - }, info); + return extend(extend({}, info), { + name: coordDim, + // DON'T use ordinalMeta to parse and collect ordinal. + ordinalMeta: null + }); }); areaData = new SeriesData(map(dims, function (dim, idx) { return { diff --git a/src/component/marker/MarkLineView.ts b/src/component/marker/MarkLineView.ts index 23901ccb24..212ce68ced 100644 --- a/src/component/marker/MarkLineView.ts +++ b/src/component/marker/MarkLineView.ts @@ -442,7 +442,11 @@ function createList(coordSys: CoordinateSystem, seriesModel: SeriesModel, mlMode seriesModel.getData().mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys - return defaults({name: coordDim}, info); + return extend(extend({}, info), { + name: coordDim, + // DON'T use ordinalMeta to parse and collect ordinal. + ordinalMeta: null + }); }); } else { diff --git a/src/component/marker/MarkPointView.ts b/src/component/marker/MarkPointView.ts index e82fe73502..f0693da1fe 100644 --- a/src/component/marker/MarkPointView.ts +++ b/src/component/marker/MarkPointView.ts @@ -29,7 +29,7 @@ import MarkPointModel, {MarkPointDataItemOption} from './MarkPointModel'; import GlobalModel from '../../model/Global'; import MarkerModel from './MarkerModel'; import ExtensionAPI from '../../core/ExtensionAPI'; -import { HashMap, isFunction, map, defaults, filter, curry } from 'zrender/src/core/util'; +import { HashMap, isFunction, map, defaults, filter, curry, extend } from 'zrender/src/core/util'; import { getECData } from '../../util/innerStore'; import { getVisualFromData } from '../../visual/helper'; import { ZRColor } from '../../util/types'; @@ -59,7 +59,6 @@ function updateMarkerLayout( const x = mpData.get(coordSys.dimensions[0], idx); const y = mpData.get(coordSys.dimensions[1], idx); point = coordSys.dataToPoint([x, y]); - } // Use x, y if has any @@ -108,7 +107,7 @@ class MarkPointView extends MarkerView { const symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw()); - const mpData = createList(coordSys, seriesModel, mpModel); + const mpData = createData(coordSys, seriesModel, mpModel); // FIXME mpModel.setData(mpData); @@ -176,7 +175,7 @@ class MarkPointView extends MarkerView { } } -function createList( +function createData( coordSys: CoordinateSystem, seriesModel: SeriesModel, mpModel: MarkPointModel @@ -188,7 +187,11 @@ function createList( seriesModel.getData().mapDimension(coordDim) ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys - return defaults({name: coordDim}, info); + return extend(extend({}, info), { + name: coordDim, + // DON'T use ordinalMeta to parse and collect ordinal. + ordinalMeta: null + }); }); } else { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index e2e53450dc..ad280b0fdc 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -658,8 +658,8 @@ class SeriesData< getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] { const values = []; if (!zrUtil.isArray(dimensions)) { - // stack = idx; idx = dimensions as number; + // TODO get all from store? dimensions = this.dimensions; } diff --git a/test/timeline-event.html b/test/timeline-event.html index c46e6275c6..621afb4840 100644 --- a/test/timeline-event.html +++ b/test/timeline-event.html @@ -23,7 +23,7 @@ - + From 3475b9c4dd247f3040a49ac38af396af89e68770 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 15 Jul 2021 10:35:18 +0800 Subject: [PATCH 24/64] refact(data): fix some extent calc issues --- src/data/DataStorage.ts | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 5b724b7839..bb6e473d76 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -252,17 +252,29 @@ class DataStorage { ) { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; + const rawExtents = this._rawExtent; const offset = dim.ordinalOffset || 0; const len = chunk.length; + if (offset === 0) { + // We need to reset the rawExtent if collect is from start. + // Because this dimension may be guessed as number and calcuating a wrong extent. + rawExtents[dimIdx] = getInitialExtent(); + } + + const dimRawExtent = rawExtents[dimIdx]; + // Parse from previous data offset. len may be changed after appendData for (let i = offset; i < len; i++) { - (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); + const val = (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]); + dimRawExtent[0] = Math.min(val, dimRawExtent[0]); + dimRawExtent[1] = Math.max(val, dimRawExtent[1]); } dim.ordinalMeta = ordinalMeta; dim.ordinalOffset = len; + dim.type = 'ordinal'; // Force to be ordinal } getOrdinalMeta(dimIdx: number) { @@ -815,8 +827,12 @@ class DataStorage { const values = []; const rawExtent = target._rawExtent; + for (let i = 0; i < dims.length; i++) { + rawExtent[dims[i]] = getInitialExtent(); + } + for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { - const rawIndex = this.getRawIndex(dataIndex); + const rawIndex = this.getRawIndex(dataIndex); for (let k = 0; k < dimSize; k++) { values[k] = targetChunks[dims[k]][rawIndex]; @@ -877,7 +893,7 @@ class DataStorage { let area; let nextRawIndex; - const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 1); + const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 2); // First frame use the first data. newIndices[sampledIndex++] = currentRawIndex; @@ -958,7 +974,7 @@ class DataStorage { const dimStore = targetStorage[dimension]; const len = this.count(); - const rawExtentOnDim = target._rawExtent[dimension]; + const rawExtentOnDim = target._rawExtent[dimension] = getInitialExtent(); const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize)); From 23548b87a5a1cb527663e029c9b7d6d466ec03bb Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 15 Jul 2021 12:19:41 +0800 Subject: [PATCH 25/64] test(ut): add path alias for root dir --- test/ut/jest.config.js | 8 +++++++- test/ut/spec/data/SeriesData.test.ts | 12 ++++++------ test/ut/spec/data/createDimensions.test.ts | 8 ++++---- test/ut/spec/data/dataTransform.test.ts | 6 +++--- test/ut/spec/data/dataValueHelper.test.ts | 2 +- test/ut/spec/model/Global.test.ts | 12 ++++++------ test/ut/spec/model/componentDependency.test.ts | 4 ++-- test/ut/spec/model/componentMissing.test.ts | 10 +++++----- test/ut/spec/model/timelineMediaOptions.test.ts | 12 ++++++------ test/ut/spec/scale/interval.test.ts | 10 +++++----- test/ut/spec/series/custom.test.ts | 6 +++--- test/ut/spec/util/graphic.test.ts | 2 +- test/ut/spec/util/layout.test.ts | 4 ++-- test/ut/spec/util/model.test.ts | 2 +- test/ut/spec/util/number.test.ts | 2 +- test/ut/tsconfig.json | 7 ++++++- 16 files changed, 59 insertions(+), 48 deletions(-) diff --git a/test/ut/jest.config.js b/test/ut/jest.config.js index 9946de2a14..5ca8031953 100644 --- a/test/ut/jest.config.js +++ b/test/ut/jest.config.js @@ -17,6 +17,9 @@ * under the License. */ +const { pathsToModuleNameMapper } = require('ts-jest/utils'); +const { compilerOptions } = require('./tsconfig') + module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', @@ -44,5 +47,8 @@ module.exports = { '**/spec/model/*.test.ts', '**/spec/scale/*.test.ts', '**/spec/util/*.test.ts' - ] + ], + moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { + prefix: '/' + }) }; diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index 30b321df3f..b9600de33c 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -20,12 +20,12 @@ /* global Float32Array */ -import SeriesData from '../../../../src/data/SeriesData'; -import Model from '../../../../src/model/Model'; -import { createSourceFromSeriesDataOption, Source, createSource } from '../../../../src/data/Source'; -import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS } from '../../../../src/util/types'; -import DataDimensionInfo from '../../../../src/data/DataDimensionInfo'; -import OrdinalMeta from '../../../../src/data/OrdinalMeta'; +import SeriesData from '@/src/data/SeriesData'; +import Model from '@/src/model/Model'; +import { createSourceFromSeriesDataOption, Source, createSource } from '@/src/data/Source'; +import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS } from '@/src/util/types'; +import DataDimensionInfo from '@/src/data/DataDimensionInfo'; +import OrdinalMeta from '@/src/data/OrdinalMeta'; const ID_PREFIX = 'e\0\0'; diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index 717a0816fd..bf69e0706c 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -18,10 +18,10 @@ */ -import DataDimensionInfo from '../../../../src/data/DataDimensionInfo'; -import createDimensions from '../../../../src/data/helper/createDimensions'; -import { createSource } from '../../../../src/data/Source'; -import { SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN } from '../../../../src/util/types'; +import DataDimensionInfo from '@/src/data/DataDimensionInfo'; +import createDimensions from '@/src/data/helper/createDimensions'; +import { createSource } from '@/src/data/Source'; +import { SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN } from '@/src/util/types'; type ParametersOfCreateDimensions = Parameters; diff --git a/test/ut/spec/data/dataTransform.test.ts b/test/ut/spec/data/dataTransform.test.ts index 316064fb30..04cc20eae3 100644 --- a/test/ut/spec/data/dataTransform.test.ts +++ b/test/ut/spec/data/dataTransform.test.ts @@ -17,10 +17,10 @@ * under the License. */ -import { EChartsType } from '../../../../src/echarts'; +import { EChartsType } from '@/src/echarts'; import { createChart, removeChart, getECModel } from '../../core/utHelper'; -import { EChartsOption } from '../../../../src/export/option'; -import { retrieveRawValue } from '../../../../src/data/helper/dataProvider'; +import { EChartsOption } from '@/src/export/option'; +import { retrieveRawValue } from '@/src/data/helper/dataProvider'; describe('dataTransform', function () { diff --git a/test/ut/spec/data/dataValueHelper.test.ts b/test/ut/spec/data/dataValueHelper.test.ts index 729395cb0c..a1d971a4ed 100644 --- a/test/ut/spec/data/dataValueHelper.test.ts +++ b/test/ut/spec/data/dataValueHelper.test.ts @@ -18,7 +18,7 @@ */ -import * as dataValueHelper from '../../../../src/data/helper/dataValueHelper'; +import * as dataValueHelper from '@/src/data/helper/dataValueHelper'; const NO_SUCH_CASE = 'NO_SUCH_CASE'; diff --git a/test/ut/spec/model/Global.test.ts b/test/ut/spec/model/Global.test.ts index 632f7f1cef..a115b99a41 100755 --- a/test/ut/spec/model/Global.test.ts +++ b/test/ut/spec/model/Global.test.ts @@ -18,13 +18,13 @@ * under the License. */ -import { EChartsType } from '../../../../src/echarts'; +import { EChartsType } from '@/src/echarts'; import { createChart, getECModel } from '../../core/utHelper'; -import { ComponentMainType, ParsedValue } from '../../../../src/util/types'; -import SeriesModel from '../../../../src/model/Series'; -import ComponentModel from '../../../../src/model/Component'; -import ChartView from '../../../../src/view/Chart'; -import { EChartsOption } from '../../../../src/export/option'; +import { ComponentMainType, ParsedValue } from '@/src/util/types'; +import SeriesModel from '@/src/model/Series'; +import ComponentModel from '@/src/model/Component'; +import ChartView from '@/src/view/Chart'; +import { EChartsOption } from '@/src/export/option'; type OriginModelView = { model: SeriesModel; diff --git a/test/ut/spec/model/componentDependency.test.ts b/test/ut/spec/model/componentDependency.test.ts index 31e2f6b55f..b86cf90981 100755 --- a/test/ut/spec/model/componentDependency.test.ts +++ b/test/ut/spec/model/componentDependency.test.ts @@ -18,8 +18,8 @@ * under the License. */ -import ComponentModel, { ComponentModelConstructor } from '../../../../src/model/Component'; -import { ComponentMainType } from '../../../../src/util/types'; +import ComponentModel, { ComponentModelConstructor } from '@/src/model/Component'; +import { ComponentMainType } from '@/src/util/types'; const componentModelConstructor = ComponentModel as ComponentModelConstructor; diff --git a/test/ut/spec/model/componentMissing.test.ts b/test/ut/spec/model/componentMissing.test.ts index 67e19322b3..bfbe58a810 100644 --- a/test/ut/spec/model/componentMissing.test.ts +++ b/test/ut/spec/model/componentMissing.test.ts @@ -18,18 +18,18 @@ * under the License. */ -import { init, use, EChartsType } from '../../../../src/export/core'; +import { init, use, EChartsType } from '@/src/export/core'; import { PieChart -} from '../../../../src/export/charts'; +} from '@/src/export/charts'; import { TitleComponent -} from '../../../../src/export/components'; +} from '@/src/export/components'; import { CanvasRenderer -} from '../../../../src/export/renderers'; +} from '@/src/export/renderers'; use([PieChart, TitleComponent, CanvasRenderer]); -import { EChartsOption } from '../../../../src/export/option'; +import { EChartsOption } from '@/src/export/option'; function createChart(theme?: object): EChartsType { diff --git a/test/ut/spec/model/timelineMediaOptions.test.ts b/test/ut/spec/model/timelineMediaOptions.test.ts index d0bf40245f..0b2d436443 100755 --- a/test/ut/spec/model/timelineMediaOptions.test.ts +++ b/test/ut/spec/model/timelineMediaOptions.test.ts @@ -18,13 +18,13 @@ * under the License. */ -import { EChartsType } from '../../../../src/echarts'; -import SeriesModel from '../../../../src/model/Series'; -import { ParsedValue } from '../../../../src/util/types'; -import { LegendOption } from '../../../../src/component/legend/LegendModel'; -import TimelineModel from '../../../../src/component/timeline/TimelineModel'; +import { EChartsType } from '@/src/echarts'; +import SeriesModel from '@/src/model/Series'; +import { ParsedValue } from '@/src/util/types'; +import { LegendOption } from '@/src/component/legend/LegendModel'; +import TimelineModel from '@/src/component/timeline/TimelineModel'; import { createChart, getECModel } from '../../core/utHelper'; -import { EChartsOption } from '../../../../src/export/option'; +import { EChartsOption } from '@/src/export/option'; describe('timelineMediaOptions', function () { diff --git a/test/ut/spec/scale/interval.test.ts b/test/ut/spec/scale/interval.test.ts index aec5999e0d..67965d7792 100755 --- a/test/ut/spec/scale/interval.test.ts +++ b/test/ut/spec/scale/interval.test.ts @@ -19,11 +19,11 @@ */ import { createChart, getECModel } from '../../core/utHelper'; -import { EChartsType } from '../../../../src/echarts'; -import CartesianAxisModel from '../../../../src/coord/cartesian/AxisModel'; -import IntervalScale from '../../../../src/scale/Interval'; -import { intervalScaleNiceTicks } from '../../../../src/scale/helper'; -import { getPrecisionSafe } from '../../../../src/util/number'; +import { EChartsType } from '@/src/echarts'; +import CartesianAxisModel from '@/src/coord/cartesian/AxisModel'; +import IntervalScale from '@/src/scale/Interval'; +import { intervalScaleNiceTicks } from '@/src/scale/helper'; +import { getPrecisionSafe } from '@/src/util/number'; describe('scale_interval', function () { diff --git a/test/ut/spec/series/custom.test.ts b/test/ut/spec/series/custom.test.ts index e6083fdcd6..ec0af5769d 100644 --- a/test/ut/spec/series/custom.test.ts +++ b/test/ut/spec/series/custom.test.ts @@ -17,10 +17,10 @@ * under the License. */ -import { EChartsType } from '../../../../src/echarts'; +import { EChartsType } from '@/src/echarts'; import { createChart } from '../../core/utHelper'; -import { ZRColor } from '../../../../src/util/types'; -import { CustomSeriesRenderItemAPI, CustomSeriesRenderItemParams } from '../../../../src/chart/custom/CustomSeries'; +import { ZRColor } from '@/src/util/types'; +import { CustomSeriesRenderItemAPI, CustomSeriesRenderItemParams } from '@/src/chart/custom/CustomSeries'; describe('custom_series', function () { diff --git a/test/ut/spec/util/graphic.test.ts b/test/ut/spec/util/graphic.test.ts index 5a3b1962d1..f6856ffe02 100755 --- a/test/ut/spec/util/graphic.test.ts +++ b/test/ut/spec/util/graphic.test.ts @@ -21,7 +21,7 @@ import { subPixelOptimize, subPixelOptimizeLine, subPixelOptimizeRect } from 'zrender/src/graphic/helper/subPixelOptimize'; -import { lineLineIntersect } from '../../../../src/util/graphic'; +import { lineLineIntersect } from '@/src/util/graphic'; describe('util/graphic', function () { diff --git a/test/ut/spec/util/layout.test.ts b/test/ut/spec/util/layout.test.ts index 4c43ceb17a..7006229685 100644 --- a/test/ut/spec/util/layout.test.ts +++ b/test/ut/spec/util/layout.test.ts @@ -19,8 +19,8 @@ */ // import { Dictionary } from 'zrender/src/core/types'; -import { mergeLayoutParam } from '../../../../src/util/layout'; -import { BoxLayoutOptionMixin } from '../../../../src/util/types'; +import { mergeLayoutParam } from '@/src/util/layout'; +import { BoxLayoutOptionMixin } from '@/src/util/types'; describe('util/number', function () { diff --git a/test/ut/spec/util/model.test.ts b/test/ut/spec/util/model.test.ts index bde88823b0..40f7890324 100755 --- a/test/ut/spec/util/model.test.ts +++ b/test/ut/spec/util/model.test.ts @@ -18,7 +18,7 @@ * under the License. */ -import { compressBatches } from '../../../../src/util/model'; +import { compressBatches } from '@/src/util/model'; describe('util/model', function () { diff --git a/test/ut/spec/util/number.test.ts b/test/ut/spec/util/number.test.ts index ae96c38db3..e7e06f1eea 100755 --- a/test/ut/spec/util/number.test.ts +++ b/test/ut/spec/util/number.test.ts @@ -22,7 +22,7 @@ import { linearMap, parseDate, reformIntervals, getPrecisionSafe, getPrecision, getPercentWithPrecision, quantityExponent, quantity, nice, isNumeric, numericToNumber, addSafe -} from '../../../../src/util/number'; +} from '@/src/util/number'; describe('util/number', function () { diff --git a/test/ut/tsconfig.json b/test/ut/tsconfig.json index 0cdbc3d770..63885f0a1e 100644 --- a/test/ut/tsconfig.json +++ b/test/ut/tsconfig.json @@ -6,7 +6,12 @@ "noImplicitThis": true, "strictBindCallApply": true, - "esModuleInterop": true + "esModuleInterop": true, + + "baseUrl": "./", + "paths": { + "@/*": ["../../*"] + } }, "include": [ "**/*.ts" From 1d8da4a9557d8f50128991d494f8e4cfa138a261 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 15 Jul 2021 13:07:15 +0800 Subject: [PATCH 26/64] refact(data): getValues from storage. add unit test --- src/data/DataStorage.ts | 25 +++++++++++++++++++++++++ src/data/SeriesData.ts | 16 ++++------------ src/data/helper/sourceManager.ts | 2 +- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index bb6e473d76..63a764e99b 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -447,6 +447,31 @@ class DataStorage { return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; } + getValues(idx: number): ParsedValue[]; + getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[] + getValues(dimensions: readonly DimensionIndex[] | number, idx?: number): ParsedValue[] { + const values = []; + let dimArr: DimensionIndex[] = []; + if (idx == null) { + idx = dimensions as number; + // TODO get all from store? + dimensions = []; + // All dimensions + for (let i = 0; i < this._dimensions.length; i++) { + dimArr.push(i); + } + } + else { + dimArr = dimensions as DimensionIndex[]; + } + + for (let i = 0, len = dimArr.length; i < len; i++) { + values.push(this.get(dimArr[i], idx)); + } + + return values; + } + /** * @param dim concrete dim */ diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index ad280b0fdc..72e6c6e5f5 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -656,18 +656,10 @@ class SeriesData< getValues(idx: number): ParsedValue[]; getValues(dimensions: readonly DimensionName[], idx: number): ParsedValue[]; getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] { - const values = []; - if (!zrUtil.isArray(dimensions)) { - idx = dimensions as number; - // TODO get all from store? - dimensions = this.dimensions; - } - - for (let i = 0, len = dimensions.length; i < len; i++) { - values.push(this.get(dimensions[i], idx)); - } - - return values; + const store = this._store; + return zrUtil.isArray(dimensions) + ? store.getValues(map(dimensions, dim => this._getStoreDimIndex(dim)), idx) + : store.getValues(dimensions as number); } /** diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index da73f558ef..3094ed51bf 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -369,7 +369,7 @@ export class SourceManager { */ getDataStorage(): DataStorage | undefined { if (__DEV__) { - assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.') + assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); } const source = this.getSource(0); const dimensionsDefine = source.dimensionsDefine; From 7dd81e1a170023a2a58f519fce2b836a37891ea0 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 15 Jul 2021 13:08:20 +0800 Subject: [PATCH 27/64] refact(data): add missing unit test update --- test/ut/spec/data/SeriesData.test.ts | 256 +++++++++++++++++---------- 1 file changed, 167 insertions(+), 89 deletions(-) diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index b9600de33c..4be6b3ceea 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -23,9 +23,11 @@ import SeriesData from '@/src/data/SeriesData'; import Model from '@/src/model/Model'; import { createSourceFromSeriesDataOption, Source, createSource } from '@/src/data/Source'; -import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS } from '@/src/util/types'; +import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_ORIGINAL } from '@/src/util/types'; import DataDimensionInfo from '@/src/data/DataDimensionInfo'; import OrdinalMeta from '@/src/data/OrdinalMeta'; +import DataStorage from '@/src/data/DataStorage'; +import { DefaultDataProvider } from '@/src/data/helper/dataProvider'; const ID_PREFIX = 'e\0\0'; @@ -37,113 +39,113 @@ describe('SeriesData', function () { describe('Data Manipulation', function () { it('initData 1d', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([10, 20, 30]); - expect(list.get('x', 0)).toEqual(10); - expect(list.get('x', 1)).toEqual(20); - expect(list.get('x', 2)).toEqual(30); - expect(list.get('y', 1)).toEqual(20); + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([10, 20, 30]); + expect(data.get('x', 0)).toEqual(10); + expect(data.get('x', 1)).toEqual(20); + expect(data.get('x', 2)).toEqual(30); + expect(data.get('y', 1)).toEqual(20); }); it('initData 2d', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([[10, 15], [20, 25], [30, 35]]); - expect(list.get('x', 1)).toEqual(20); - expect(list.get('y', 1)).toEqual(25); + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([[10, 15], [20, 25], [30, 35]]); + expect(data.get('x', 1)).toEqual(20); + expect(data.get('y', 1)).toEqual(25); }); it('initData 2d yx', function () { - const list = new SeriesData(['y', 'x'], new Model()); - list.initData([[10, 15], [20, 25], [30, 35]]); - expect(list.get('x', 1)).toEqual(25); - expect(list.get('y', 1)).toEqual(20); + const data = new SeriesData(['y', 'x'], new Model()); + data.initData([[10, 15], [20, 25], [30, 35]]); + expect(data.get('x', 1)).toEqual(25); + expect(data.get('y', 1)).toEqual(20); }); it('Data with option 1d', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([ + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([ 1, { value: 2, somProp: 'foo' } as OptionDataItemObject ]); - expect(list.getItemModel(1).get('somProp' as any)).toEqual('foo'); - expect(list.getItemModel(0).get('somProp' as any)).toBeNull(); + expect(data.getItemModel(1).get('somProp' as any)).toEqual('foo'); + expect(data.getItemModel(0).get('somProp' as any)).toBeNull(); }); it('Empty data', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([1, '-']); - expect(list.get('y', 1)).toBeNaN(); + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([1, '-']); + expect(data.get('y', 1)).toBeNaN(); }); it('getRawValue', function () { - const list1 = new SeriesData(['x', 'y'], new Model()); - // here construct a new list2 because if we only use one list - // to call initData() twice, list._chunkCount will be accumulated + const data1 = new SeriesData(['x', 'y'], new Model()); + // here construct a new data2 because if we only use one data + // to call initData() twice, data._chunkCount will be accumulated // to 1 instead of 0. - const list2 = new SeriesData(['x', 'y'], new Model()); + const data2 = new SeriesData(['x', 'y'], new Model()); - list1.initData([1, 2, 3]); - expect(list1.getItemModel(1).option).toEqual(2); + data1.initData([1, 2, 3]); + expect(data1.getItemModel(1).option).toEqual(2); - list2.initData([[10, 15], [20, 25], [30, 35]]); - expect(list2.getItemModel(1).option).toEqual([20, 25]); + data2.initData([[10, 15], [20, 25], [30, 35]]); + expect(data2.getItemModel(1).option).toEqual([20, 25]); }); it('indexOfRawIndex', function () { - const list = new SeriesData(['x'], new Model()); - list.initData([]); - expect(list.indexOfRawIndex(1)).toEqual(-1); - - const list1 = new SeriesData(['x'], new Model()); - list1.initData([0]); - expect(list1.indexOfRawIndex(0)).toEqual(0); - expect(list1.indexOfRawIndex(1)).toEqual(-1); - - const list2 = new SeriesData(['x'], new Model()); - list2.initData([0, 1, 2, 3]); - expect(list2.indexOfRawIndex(1)).toEqual(1); - expect(list2.indexOfRawIndex(2)).toEqual(2); - expect(list2.indexOfRawIndex(5)).toEqual(-1); - - const list3 = new SeriesData(['x'], new Model()); - list3.initData([0, 1, 2, 3, 4]); - expect(list3.indexOfRawIndex(2)).toEqual(2); - expect(list3.indexOfRawIndex(3)).toEqual(3); - expect(list3.indexOfRawIndex(5)).toEqual(-1); - - list3.filterSelf(function (idx) { + const data = new SeriesData(['x'], new Model()); + data.initData([]); + expect(data.indexOfRawIndex(1)).toEqual(-1); + + const data1 = new SeriesData(['x'], new Model()); + data1.initData([0]); + expect(data1.indexOfRawIndex(0)).toEqual(0); + expect(data1.indexOfRawIndex(1)).toEqual(-1); + + const data2 = new SeriesData(['x'], new Model()); + data2.initData([0, 1, 2, 3]); + expect(data2.indexOfRawIndex(1)).toEqual(1); + expect(data2.indexOfRawIndex(2)).toEqual(2); + expect(data2.indexOfRawIndex(5)).toEqual(-1); + + const data3 = new SeriesData(['x'], new Model()); + data3.initData([0, 1, 2, 3, 4]); + expect(data3.indexOfRawIndex(2)).toEqual(2); + expect(data3.indexOfRawIndex(3)).toEqual(3); + expect(data3.indexOfRawIndex(5)).toEqual(-1); + + data3.filterSelf(function (idx) { return idx >= 2; }); - expect(list3.indexOfRawIndex(2)).toEqual(0); + expect(data3.indexOfRawIndex(2)).toEqual(0); }); it('getDataExtent', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([1, 2, 3]); - expect(list.getDataExtent('x')).toEqual([1, 3]); - expect(list.getDataExtent('y')).toEqual([1, 3]); + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([1, 2, 3]); + expect(data.getDataExtent('x')).toEqual([1, 3]); + expect(data.getDataExtent('y')).toEqual([1, 3]); }); it('Data types', function () { - const list = new SeriesData([{ + const data = new SeriesData([{ name: 'x', type: 'int' }, { name: 'y', type: 'float' }], new Model()); - list.initData([[1.1, 1.1]]); - expect(list.get('x', 0)).toEqual(1); - expect(list.get('y', 0)).toBeCloseTo(1.1, 5); + data.initData([[1.1, 1.1]]); + expect(data.get('x', 0)).toEqual(1); + expect(data.get('y', 0)).toBeCloseTo(1.1, 5); }); it('map', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([[10, 15], [20, 25], [30, 35]]); - expect(list.map(['x', 'y'], function (x: number, y: number) { + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([[10, 15], [20, 25], [30, 35]]); + expect(data.map(['x', 'y'], function (x: number, y: number) { return [x + 2, y + 2]; }).mapArray('x', function (x) { return x; @@ -151,17 +153,17 @@ describe('SeriesData', function () { }); it('mapArray', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([[10, 15], [20, 25], [30, 35]]); - expect(list.mapArray(['x', 'y'], function (x, y) { + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([[10, 15], [20, 25], [30, 35]]); + expect(data.mapArray(['x', 'y'], function (x, y) { return [x, y]; })).toEqual([[10, 15], [20, 25], [30, 35]]); }); it('filterSelf', function () { - const list = new SeriesData(['x', 'y'], new Model()); - list.initData([[10, 15], [20, 25], [30, 35]]); - expect(list.filterSelf(['x', 'y'], function (x, y) { + const data = new SeriesData(['x', 'y'], new Model()); + data.initData([[10, 15], [20, 25], [30, 35]]); + expect(data.filterSelf(['x', 'y'], function (x, y) { return x < 30 && x > 10; }).mapArray('x', function (x) { return x; @@ -169,10 +171,10 @@ describe('SeriesData', function () { }); it('dataProvider', function () { - const list = new SeriesData(['x', 'y'], new Model()); + const data = new SeriesData(['x', 'y'], new Model()); const typedArray = new Float32Array([10, 10, 20, 20]); const source = createSourceFromSeriesDataOption(typedArray); - list.initData({ + data.initData({ count: function (): number { return typedArray.length / 2; }, @@ -183,31 +185,107 @@ describe('SeriesData', function () { return source; } }); - expect(list.mapArray(['x', 'y'], function (x, y) { + expect(data.mapArray(['x', 'y'], function (x, y) { return [x, y]; })).toEqual([[10, 10], [20, 20]]); - expect(list.getRawDataItem(0)).toEqual([10, 10]); - expect(list.getItemModel(0).option).toEqual([10, 10]); + expect(data.getRawDataItem(0)).toEqual([10, 10]); + expect(data.getItemModel(0).option).toEqual([10, 10]); + }); + }); + + describe('Data storage', function () { + it('should guess ordinal correctly', function () { + const source = createSource([['A', 15], ['B', 25], ['C', 35]], { + dimensions: ['A', 'B'], + seriesLayoutBy: null, + sourceHeader: false + }, SOURCE_FORMAT_ORIGINAL); + expect(source.dimensionsDefine[0].type).toEqual('ordinal'); + }); + + function createStore() { + const provider = new DefaultDataProvider([['A', 15], ['B', 25], ['C', 35]]); + const store = new DataStorage(); + store.initData(provider, [{type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}]); + return store; + } + + it('should use storage if dimensions types are same', function () { + const store = createStore(); + const data = new SeriesData([{type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}], null); + data.initData(store); + expect(data.getStorage()).toBe(store); + }); + it('should recreate storage if dimensions types not compatitable', function () { + const store = createStore(); + const dims = [{ type: 'float', name: 'dim0' }, { type: 'float', name: 'dim1'}]; + const data = new SeriesData(dims, null); + data.initData(store); + expect(data.getStorage()).not.toBe(store); + // Can reuse now + const data2 = new SeriesData(dims, null); + data2.initData(data.getStorage()); + expect(data2.getStorage()).toBe(data.getStorage()); + }); + it('should recreate storage if dimensions name not exits', function () { + const store = createStore(); + const dims = [{ type: 'float', name: 'dim2' }]; + const data = new SeriesData(dims, null); + data.initData(store); + expect(data.getStorage()).not.toBe(store); + }); + + it('SeriesData can still get other dims value from storage when only part of dims are given.', function () { + const provider = new DefaultDataProvider([['A', 15, 20], ['B', 25, 30], ['C', 35, 40]]); + const store = new DataStorage(); + store.initData(provider, [ + {type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}, {type: 'float', name: 'dim2'} + ]); + const dims = [{ type: 'float', name: 'dim1'}]; + const data = new SeriesData(dims, null); + data.initData(store); + // Store should be the same. + expect(data.getStorage()).toBe(store); + // Get self dim + expect(data.get('dim1', 0)).toEqual(15); + expect(data.get('dim1', 1)).toEqual(25); + // Get other dim + expect(data.get('dim0', 0)).toEqual('A'); + expect(data.get('dim0', 1)).toEqual('B'); + expect(data.get('dim2', 0)).toEqual(20); + expect(data.get('dim2', 1)).toEqual(30); + // Get all + expect(data.getValues(['dim0', 'dim1'], 0)).toEqual(['A', 15]); + expect(data.getValues(1)).toEqual(['B', 25, 30]); + }); + + it('SeriesData#cloneShallow should share storage', function () { + const store = createStore(); + const dims = [{ type: 'float', name: 'dim2' }]; + const data = new SeriesData(dims, null); + data.initData(store); + const data2 = data.cloneShallow(); + expect(data2.getStorage()).toBe(data.getStorage()); }); }); describe('Data read', function () { it('indicesOfNearest', function () { - const list = new SeriesData(['value'], new Model()); + const data = new SeriesData(['value'], new Model()); // ---- index: 0 1 2 3 4 5 6 7 - list.initData([10, 20, 30, 35, 40, 40, 35, 50]); - - expect(list.indicesOfNearest('value', 24.5)).toEqual([1]); - expect(list.indicesOfNearest('value', 25)).toEqual([1]); - expect(list.indicesOfNearest('value', 25.5)).toEqual([2]); - expect(list.indicesOfNearest('value', 25.5)).toEqual([2]); - expect(list.indicesOfNearest('value', 41)).toEqual([4, 5]); - expect(list.indicesOfNearest('value', 39)).toEqual([4, 5]); - expect(list.indicesOfNearest('value', 41)).toEqual([4, 5]); - expect(list.indicesOfNearest('value', 36)).toEqual([3, 6]); - - expect(list.indicesOfNearest('value', 50.6, 0.5)).toEqual([]); - expect(list.indicesOfNearest('value', 50.5, 0.5)).toEqual([7]); + data.initData([10, 20, 30, 35, 40, 40, 35, 50]); + + expect(data.indicesOfNearest('value', 24.5)).toEqual([1]); + expect(data.indicesOfNearest('value', 25)).toEqual([1]); + expect(data.indicesOfNearest('value', 25.5)).toEqual([2]); + expect(data.indicesOfNearest('value', 25.5)).toEqual([2]); + expect(data.indicesOfNearest('value', 41)).toEqual([4, 5]); + expect(data.indicesOfNearest('value', 39)).toEqual([4, 5]); + expect(data.indicesOfNearest('value', 41)).toEqual([4, 5]); + expect(data.indicesOfNearest('value', 36)).toEqual([3, 6]); + + expect(data.indicesOfNearest('value', 50.6, 0.5)).toEqual([]); + expect(data.indicesOfNearest('value', 50.5, 0.5)).toEqual([7]); }); }); From 015e272157e73e74f0a55fd86b3ba9ec80a47d64 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 21 Jul 2021 10:39:10 +0800 Subject: [PATCH 28/64] fix(series): only get encode from series. not from global --- src/model/Series.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/Series.ts b/src/model/Series.ts index c2cc54b016..4dd87b519c 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -392,7 +392,7 @@ class SeriesModel extends ComponentMode } getEncode() { - const encode = (this as Model).get('encode'); + const encode = (this as Model).get('encode', true); if (encode) { return zrUtil.createHashMap(encode); } From 3b6857f54d153eca5c573a45408d3ba21552ac04 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 21 Jul 2021 10:45:21 +0800 Subject: [PATCH 29/64] refact(data): tweak some misleading code --- src/data/helper/sourceManager.ts | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 3094ed51bf..0081891175 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -373,6 +373,10 @@ export class SourceManager { } const source = this.getSource(0); const dimensionsDefine = source.dimensionsDefine; + + // Source from endpoint(usually series) will be read differently + // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. + // So we use this three props as key. const sourceReadKey = source.seriesLayoutBy + '$$' + source.startIndex @@ -381,18 +385,12 @@ export class SourceManager { return this._innerGetDataStorage(source, sourceReadKey); } - private _innerGetDataStorage(endSource: Source, sourceReadKey: string): DataStorage | undefined { + private _innerGetDataStorage(seriesSource: Source, sourceReadKey: string): DataStorage | undefined { // TODO Can use other sourceIndex? const sourceIndex = 0; - - const source = this.getSource(sourceIndex); const storeList = this._storeList; - // Source from endpoint(usually series) will be read differently - // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. - // So we use this two props as key. Another fact `dimensions` will be checked when initializing SeriesData. - const sourceToInit = (endSource || source); let cachedStoreMap = storeList[sourceIndex]; if (!cachedStoreMap) { @@ -404,16 +402,17 @@ export class SourceManager { const upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { - cachedStore = upSourceMgr._innerGetDataStorage(endSource, sourceReadKey); + cachedStore = upSourceMgr._innerGetDataStorage(seriesSource, sourceReadKey); } else { - const dimensionsDefine = source.dimensionsDefine; + // Always create datastorage based on source from series. + const dimensionsDefine = seriesSource.dimensionsDefine; // Can't create a store if don't know dimension.. - if (source && dimensionsDefine) { + if (seriesSource && dimensionsDefine) { cachedStore = new DataStorage(); // Always create storage from source of series. cachedStore.initData( - new DefaultDataProvider(sourceToInit, dimensionsDefine.length), + new DefaultDataProvider(seriesSource, dimensionsDefine.length), dimensionsDefine ); } From cfcb9819bd2e27f578d6ea1e30d5c2c0f59e67e5 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 21 Jul 2021 11:05:25 +0800 Subject: [PATCH 30/64] style: update comments --- src/data/Source.ts | 4 ++++ src/data/helper/createDimensions.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/data/Source.ts b/src/data/Source.ts index 0cc781ed16..83b3ad0739 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -191,6 +191,10 @@ export function isSourceInstance(val: unknown): val is Source { return val instanceof SourceImpl; } +/** + * Create a source from option. + * NOTE: Created source is immutable. Don't change any properties in it. + */ export function createSource( sourceData: OptionSourceData, thisMetaRawOption: SourceMetaRawOption, diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index ad5413d1cb..998a399761 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -76,8 +76,8 @@ export type CreateDimensionsParams = { /** * This method builds the relationship between: - * + "what the coord sys or series requires (see `sysDims`)", - * + "what the user defines (in `encode` and `dimensions`, see `opt.dimsDef` and `opt.encodeDef`)" + * + "what the coord sys or series requires (see `coordDimensions`)", + * + "what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)" * + "what the data source provids (see `source`)". * * Some guess strategy will be adapted if user does not define something. From 4ea973b6317abf7aea6a492c4072645062f41995 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 21 Jul 2021 11:12:25 +0800 Subject: [PATCH 31/64] style: improve comments --- src/chart/helper/createSeriesDataFromArray.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesDataFromArray.ts index 2e31963904..010d3e8d14 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesDataFromArray.ts @@ -152,6 +152,8 @@ function createListFromArray( if (omitUnusedDimensions) { // sourceOrStore if (!(sourceOrStore as DataStorage).syncDimensionTypes(dimInfoList)) { + // We need a full dimensions list if we want to recreate the storage. + // Or the storage will ignore the data of other dimensions. dimInfoList = createDimensions(sourceOrStore, zrUtil.extend(createDimensionOptions, { omitUnusedDimensions: true })); From 3de73abe262912b928e23b6eab6ac568a67bd7d7 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 21 Jul 2021 11:54:28 +0800 Subject: [PATCH 32/64] chore: update zrender to latest nightly version --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 37fc8d691d..9675bf162b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10974,9 +10974,9 @@ } }, "zrender": { - "version": "npm:zrender-nightly@5.1.2-dev.20210701", - "resolved": "https://registry.npmjs.org/zrender-nightly/-/zrender-nightly-5.1.2-dev.20210701.tgz", - "integrity": "sha512-olAJui56YNuM0CmdVpdEPGVjyDGRkYhhGAC4xjFl3DeSw+RO0/vBaJLQj5xPXKHb5aSFYwVlxs58svpz/bnHng==", + "version": "npm:zrender-nightly@5.1.2-dev.20210720", + "resolved": "https://registry.npmjs.org/zrender-nightly/-/zrender-nightly-5.1.2-dev.20210720.tgz", + "integrity": "sha512-29PQAyfpzF8MTGK+4tiZygBViaIRhAox3upIDuy99PQXF+WVRz9wIm2rioiLVI652cOrI2UGMI3MnC30ZiF6Zw==", "requires": { "tslib": "2.3.0" } diff --git a/package.json b/package.json index 284468e9bf..af14c15dd3 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ }, "dependencies": { "tslib": "2.3.0", - "zrender": "npm:zrender-nightly@^5.1.2-dev.20210701" + "zrender": "npm:zrender-nightly@^5.1.2-dev.20210720" }, "devDependencies": { "@babel/code-frame": "7.10.4", From 3c09b59eca99156af877a91a975a7b410caed234 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 22 Jul 2021 13:49:50 +0800 Subject: [PATCH 33/64] fix(data): fix some code review issues --- src/data/helper/sourceManager.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 0081891175..359a099c3d 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -373,14 +373,15 @@ export class SourceManager { } const source = this.getSource(0); const dimensionsDefine = source.dimensionsDefine; - + const delimiter = '$$'; // Source from endpoint(usually series) will be read differently // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. // So we use this three props as key. const sourceReadKey = source.seriesLayoutBy - + '$$' + + delimiter + source.startIndex - + (dimensionsDefine ? map(dimensionsDefine, def => def.name).join('$$') : ''); + + delimiter + + (dimensionsDefine ? map(dimensionsDefine, def => def.name).join(delimiter) : ''); return this._innerGetDataStorage(source, sourceReadKey); } @@ -406,9 +407,9 @@ export class SourceManager { } else { // Always create datastorage based on source from series. - const dimensionsDefine = seriesSource.dimensionsDefine; + const dimensionsDefine = seriesSource && seriesSource.dimensionsDefine; // Can't create a store if don't know dimension.. - if (seriesSource && dimensionsDefine) { + if (dimensionsDefine) { cachedStore = new DataStorage(); // Always create storage from source of series. cachedStore.initData( From 0d5886ba6ecde17885caddf1672f0d2c984b4a69 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 22 Jul 2021 22:40:22 +0800 Subject: [PATCH 34/64] refact(data): create data storage after dimensions prepared. --- src/chart/bar/BarSeries.ts | 4 +- src/chart/bar/BaseBarSeries.ts | 4 +- src/chart/custom/CustomSeries.ts | 4 +- .../effectScatter/EffectScatterSeries.ts | 4 +- src/chart/heatmap/HeatmapSeries.ts | 4 +- src/chart/helper/createGraphFromNodeEdge.ts | 4 +- ...esDataFromArray.ts => createSeriesData.ts} | 74 +++++++--------- src/chart/line/LineSeries.ts | 4 +- src/chart/parallel/ParallelSeries.ts | 4 +- src/chart/scatter/ScatterSeries.ts | 4 +- src/component/dataZoom/AxisProxy.ts | 10 --- src/component/marker/MarkAreaView.ts | 4 +- src/component/marker/markerHelper.ts | 28 ------ src/data/DataStorage.ts | 20 ++--- src/data/SeriesData.ts | 20 ++--- ...ensionInfo.ts => SeriesDimensionDefine.ts} | 6 +- src/data/helper/createDimensions.ts | 10 +-- src/data/helper/dataStackHelper.ts | 19 ++-- src/data/helper/dimensionHelper.ts | 2 +- src/data/helper/sourceManager.ts | 86 ++++++++++++++----- src/export/api/helper.ts | 4 +- src/model/Series.ts | 9 +- test/ut/spec/data/createDimensions.test.ts | 22 ++--- 23 files changed, 167 insertions(+), 183 deletions(-) rename src/chart/helper/{createSeriesDataFromArray.ts => createSeriesData.ts} (76%) rename src/data/{DataDimensionInfo.ts => SeriesDimensionDefine.ts} (96%) diff --git a/src/chart/bar/BarSeries.ts b/src/chart/bar/BarSeries.ts index a385f4277c..8c97a8b616 100644 --- a/src/chart/bar/BarSeries.ts +++ b/src/chart/bar/BarSeries.ts @@ -29,7 +29,7 @@ import { SeriesEncodeOptionMixin } from '../../util/types'; import type Cartesian2D from '../../coord/cartesian/Cartesian2D'; -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import type Polar from '../../coord/polar/Polar'; import { inheritDefaultOption } from '../../util/component'; import SeriesData from '../../data/SeriesData'; @@ -90,7 +90,7 @@ class BarSeriesModel extends BaseBarSeriesModel { coordinateSystem: Cartesian2D | Polar; getInitialData(): SeriesData { - return createListFromArray(this.getSource(), this, { + return createSeriesData(null, this, { useEncodeDefaulter: true, createInvertedIndices: !!this.get('realtimeSort', true) || null }); diff --git a/src/chart/bar/BaseBarSeries.ts b/src/chart/bar/BaseBarSeries.ts index 46eeeb4b5f..d4c3fa5d19 100644 --- a/src/chart/bar/BaseBarSeries.ts +++ b/src/chart/bar/BaseBarSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import { SeriesOption, SeriesOnCartesianOptionMixin, @@ -79,7 +79,7 @@ class BaseBarSeriesModel = BaseBarSeri type = BaseBarSeriesModel.type; getInitialData(option: Opts, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this, {useEncodeDefaulter: true}); + return createSeriesData(null, this, {useEncodeDefaulter: true}); } getMarkerPosition(value: ScaleDataValue[]) { diff --git a/src/chart/custom/CustomSeries.ts b/src/chart/custom/CustomSeries.ts index 912ca337c3..2b8bb3c9b2 100644 --- a/src/chart/custom/CustomSeries.ts +++ b/src/chart/custom/CustomSeries.ts @@ -46,7 +46,7 @@ import { import Element, { ElementProps } from 'zrender/src/Element'; import SeriesData, { DefaultDataVisual } from '../../data/SeriesData'; import GlobalModel from '../../model/Global'; -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import { makeInner } from '../../util/model'; import { CoordinateSystem } from '../../coord/CoordinateSystem'; import SeriesModel from '../../model/Series'; @@ -414,7 +414,7 @@ export default class CustomSeriesModel extends SeriesModel { } getInitialData(option: CustomSeriesOption, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this); + return createSeriesData(null, this); } getDataParams(dataIndex: number, dataType?: SeriesDataType, el?: Element): CallbackDataParams & { diff --git a/src/chart/effectScatter/EffectScatterSeries.ts b/src/chart/effectScatter/EffectScatterSeries.ts index f5f8bd20e0..9632e400bf 100644 --- a/src/chart/effectScatter/EffectScatterSeries.ts +++ b/src/chart/effectScatter/EffectScatterSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import SeriesModel from '../../model/Series'; import { SeriesOption, @@ -89,7 +89,7 @@ class EffectScatterSeriesModel extends SeriesModel { hasSymbolVisual = true; getInitialData(option: EffectScatterSeriesOption, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this, {useEncodeDefaulter: true}); + return createSeriesData(null, this, {useEncodeDefaulter: true}); } brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean { diff --git a/src/chart/heatmap/HeatmapSeries.ts b/src/chart/heatmap/HeatmapSeries.ts index 9da21ae3be..80fbb72dd4 100644 --- a/src/chart/heatmap/HeatmapSeries.ts +++ b/src/chart/heatmap/HeatmapSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import CoordinateSystem from '../../core/CoordinateSystem'; import { SeriesOption, @@ -73,7 +73,7 @@ class HeatmapSeriesModel extends SeriesModel { coordinateSystem: Cartesian2D | Geo | Calendar; getInitialData(option: HeatmapSeriesOption, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this, { + return createSeriesData(null, this, { generateCoord: 'value' }); } diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index 58da5e67d3..f9b0c2fa1b 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -24,7 +24,7 @@ import Graph from '../../data/Graph'; import linkSeriesData from '../../data/helper/linkSeriesData'; import createDimensions from '../../data/helper/createDimensions'; import CoordinateSystem from '../../core/CoordinateSystem'; -import createListFromArray from './createSeriesDataFromArray'; +import createSeriesData from './createSeriesData'; import { OptionSourceDataOriginal, GraphEdgeItemObject, OptionDataValue, OptionDataItemObject @@ -70,7 +70,7 @@ export default function createGraphFromNodeEdge( const coordSys = seriesModel.get('coordinateSystem'); let nodeData; if (coordSys === 'cartesian2d' || coordSys === 'polar') { - nodeData = createListFromArray(nodes, seriesModel); + nodeData = createSeriesData(nodes, seriesModel); } else { const coordSysCtor = CoordinateSystem.get(coordSys); diff --git a/src/chart/helper/createSeriesDataFromArray.ts b/src/chart/helper/createSeriesData.ts similarity index 76% rename from src/chart/helper/createSeriesDataFromArray.ts rename to src/chart/helper/createSeriesData.ts index 010d3e8d14..04872e9201 100644 --- a/src/chart/helper/createSeriesDataFromArray.ts +++ b/src/chart/helper/createSeriesData.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; -import createDimensions, { CreateDimensionsParams, getDimCount } from '../../data/helper/createDimensions'; +import createDimensions, { getDimCount } from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; @@ -28,15 +28,15 @@ import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../. import {enableDataStack} from '../../data/helper/dataStackHelper'; import {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper'; import { - SOURCE_FORMAT_ORIGINAL, DimensionDefinitionLoose, DimensionDefinition, OptionSourceData, EncodeDefaulter + SOURCE_FORMAT_ORIGINAL, + DimensionDefinitionLoose, + DimensionDefinition, + OptionSourceData, + EncodeDefaulter } from '../../util/types'; import SeriesModel from '../../model/Series'; import DataStorage from '../../data/DataStorage'; -import DataDimensionInfo from '../../data/DataDimensionInfo'; - -function isDataStorage(val: unknown): val is DataStorage { - return val instanceof DataStorage; -} +import SeriesDimensionDefine from '../../data/SeriesDimensionDefine'; function getCoordSysDimDefs( seriesModel: SeriesModel, @@ -74,7 +74,7 @@ function getCoordSysDimDefs( } function injectOrdinalMeta( - dimInfoList: DataDimensionInfo[], + dimInfoList: SeriesDimensionDefine[], createInvertedIndices: boolean, coordSysInfo: ReturnType ) { @@ -102,8 +102,8 @@ function injectOrdinalMeta( return firstCategoryDimIndex; } -function createListFromArray( - sourceOrStore: Source | OptionSourceData | DataStorage, +function createSeriesData( + sourceRaw: OptionSourceData | null | undefined, seriesModel: SeriesModel, opt?: { generateCoord?: string @@ -114,20 +114,26 @@ function createListFromArray( ): SeriesData { opt = opt || {}; - if (!isSourceInstance(sourceOrStore) && !isDataStorage(sourceOrStore)) { - sourceOrStore = createSourceFromSeriesDataOption( - sourceOrStore as OptionSourceData - ); + const sourceManager = seriesModel.getSourceManager(); + let source; + let isOriginalSource = false; + if (sourceRaw) { + isOriginalSource = true; + source = createSourceFromSeriesDataOption(sourceRaw); + } + else { + source = sourceManager.getSource(); + // Is series.data. not dataset. + isOriginalSource = source.sourceFormat === SOURCE_FORMAT_ORIGINAL; } - - const source = isDataStorage(sourceOrStore) ? sourceOrStore.getSource() : sourceOrStore; const coordSysInfo = getCoordSysInfoBySeries(seriesModel); const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); const useEncodeDefaulter = opt.useEncodeDefaulter; // Try to ignore unsed dimensions if sharing a high dimension datastorage // 30 is an experience value. - const omitUnusedDimensions = isDataStorage(sourceOrStore) && sourceOrStore.getDimensionCount() > 30; + const omitUnusedDimensions = !isOriginalSource && source.dimensionsDefine && source.dimensionsDefine.length > 30; + const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter @@ -146,35 +152,18 @@ function createListFromArray( )), omitUnusedDimensions }; - let dimInfoList = createDimensions(sourceOrStore, createDimensionOptions); - let firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); - - if (omitUnusedDimensions) { - // sourceOrStore - if (!(sourceOrStore as DataStorage).syncDimensionTypes(dimInfoList)) { - // We need a full dimensions list if we want to recreate the storage. - // Or the storage will ignore the data of other dimensions. - dimInfoList = createDimensions(sourceOrStore, zrUtil.extend(createDimensionOptions, { - omitUnusedDimensions: true - })); - // Fallback - firstCategoryDimIndex = injectOrdinalMeta( - dimInfoList, opt.createInvertedIndices, coordSysInfo - ); - sourceOrStore = source; - } - } + const dimInfoList = createDimensions(source, createDimensionOptions); + const firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); const stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); const data = new SeriesData(dimInfoList, seriesModel); - data.setCalculationInfo(stackCalculationInfo); + console.log(stackCalculationInfo) const dimValueGetter = - !isDataStorage(sourceOrStore) - && firstCategoryDimIndex != null - && isNeedCompleteOrdinalData(sourceOrStore) + firstCategoryDimIndex != null + && isNeedCompleteOrdinalData(source) ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { // Use dataIndex as ordinal value in categoryAxis return dimIndex === firstCategoryDimIndex @@ -184,7 +173,10 @@ function createListFromArray( : null; data.hasItemOption = false; - data.initData(sourceOrStore, null, dimValueGetter); + data.initData( + // Try to reuse the data storage in sourceManager if using dataset. + isOriginalSource ? source : sourceManager.getDataStorage(dimInfoList) + , null, dimValueGetter); return data; } @@ -205,4 +197,4 @@ function firstDataNotNull(arr: ArrayLike) { return arr[i]; } -export default createListFromArray; +export default createSeriesData; diff --git a/src/chart/line/LineSeries.ts b/src/chart/line/LineSeries.ts index 6360c8968a..a836132e4d 100644 --- a/src/chart/line/LineSeries.ts +++ b/src/chart/line/LineSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import SeriesModel from '../../model/Series'; import { SeriesOnCartesianOptionMixin, @@ -137,7 +137,7 @@ class LineSeriesModel extends SeriesModel { throw new Error('Line not support coordinateSystem besides cartesian and polar'); } } - return createListFromArray(this.getSource(), this, { + return createSeriesData(null, this, { useEncodeDefaulter: true }); } diff --git a/src/chart/parallel/ParallelSeries.ts b/src/chart/parallel/ParallelSeries.ts index 20140c991e..c75ea4e8fd 100644 --- a/src/chart/parallel/ParallelSeries.ts +++ b/src/chart/parallel/ParallelSeries.ts @@ -20,7 +20,7 @@ import {each, bind} from 'zrender/src/core/util'; import SeriesModel from '../../model/Series'; -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import { SeriesOption, SeriesEncodeOptionMixin, @@ -92,7 +92,7 @@ class ParallelSeriesModel extends SeriesModel { getInitialData(this: ParallelSeriesModel, option: ParallelSeriesOption, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this, { + return createSeriesData(null, this, { useEncodeDefaulter: bind(makeDefaultEncode, null, this) }); } diff --git a/src/chart/scatter/ScatterSeries.ts b/src/chart/scatter/ScatterSeries.ts index 6248eccff5..40c4c73256 100644 --- a/src/chart/scatter/ScatterSeries.ts +++ b/src/chart/scatter/ScatterSeries.ts @@ -17,7 +17,7 @@ * under the License. */ -import createListFromArray from '../helper/createSeriesDataFromArray'; +import createSeriesData from '../helper/createSeriesData'; import SeriesModel from '../../model/Series'; import { SeriesOption, @@ -85,7 +85,7 @@ class ScatterSeriesModel extends SeriesModel { hasSymbolVisual = true; getInitialData(option: ScatterSeriesOption, ecModel: GlobalModel): SeriesData { - return createListFromArray(this.getSource(), this, { + return createSeriesData(null, this, { useEncodeDefaulter: true }); } diff --git a/src/component/dataZoom/AxisProxy.ts b/src/component/dataZoom/AxisProxy.ts index 2d7b0f8a52..7b6fa43034 100644 --- a/src/component/dataZoom/AxisProxy.ts +++ b/src/component/dataZoom/AxisProxy.ts @@ -245,16 +245,6 @@ class AxisProxy { // Culculate data window and data extent, and record them. this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); - // this.hasSeriesStacked = false; - // each(targetSeries, function (series) { - // let data = series.getData(); - // let dataDim = data.mapDimension(this._dimName); - // let stackedDimension = data.getCalculationInfo('stackedDimension'); - // if (stackedDimension && stackedDimension === dataDim) { - // this.hasSeriesStacked = true; - // } - // }, this); - // `calculateDataWindow` uses min/maxSpan. this._updateMinMaxSpan(); diff --git a/src/component/marker/MarkAreaView.ts b/src/component/marker/MarkAreaView.ts index d5aadadccc..73bc406e6e 100644 --- a/src/component/marker/MarkAreaView.ts +++ b/src/component/marker/MarkAreaView.ts @@ -32,7 +32,7 @@ import { CoordinateSystem, isCoordinateSystemType } from '../../coord/Coordinate import MarkAreaModel, { MarkArea2DDataItemOption } from './MarkAreaModel'; import SeriesModel from '../../model/Series'; import Cartesian2D from '../../coord/cartesian/Cartesian2D'; -import DataDimensionInfo from '../../data/DataDimensionInfo'; +import SeriesDimensionDefine from '../../data/SeriesDimensionDefine'; import GlobalModel from '../../model/Global'; import ExtensionAPI from '../../core/ExtensionAPI'; import MarkerModel from './MarkerModel'; @@ -362,7 +362,7 @@ function createList( maModel: MarkAreaModel ) { - let coordDimsInfos: DataDimensionInfo[]; + let coordDimsInfos: SeriesDimensionDefine[]; let areaData: SeriesData; const dims = ['x0', 'y0', 'x1', 'y1']; if (coordSys) { diff --git a/src/component/marker/markerHelper.ts b/src/component/marker/markerHelper.ts index ab4a7a9e77..d08a0ac6cb 100644 --- a/src/component/marker/markerHelper.ts +++ b/src/component/marker/markerHelper.ts @@ -42,30 +42,6 @@ function hasXAndY(item: MarkerPositionOption) { return !isNaN(parseFloat(item.x as string)) && !isNaN(parseFloat(item.y as string)); } -// Make it simple, do not visit all stacked value to count precision. -// function getPrecision(data, valueAxisDim, dataIndex) { -// let precision = -1; -// let stackedDim = data.mapDimension(valueAxisDim); -// do { -// precision = Math.max( -// numberUtil.getPrecision(data.get(stackedDim, dataIndex)), -// precision -// ); -// let stackedOnSeries = data.getCalculationInfo('stackedOnSeries'); -// if (stackedOnSeries) { -// let byValue = data.get(data.getCalculationInfo('stackedByDimension'), dataIndex); -// data = stackedOnSeries.getData(); -// dataIndex = data.indexOf(data.getCalculationInfo('stackedByDimension'), byValue); -// stackedDim = data.getCalculationInfo('stackedDimension'); -// } -// else { -// data = null; -// } -// } while (data); - -// return precision; -// } - function markerTypeCalculatorWithExtent( markerType: MarkerStatisticType, data: SeriesData, @@ -109,10 +85,6 @@ const markerTypeCalculator = { * Transform markPoint data item to format used in List by do the following * 1. Calculate statistic like `max`, `min`, `average` * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array - * @param {module:echarts/model/Series} seriesModel - * @param {module:echarts/coord/*} [coordSys] - * @param {Object} item - * @return {Object} */ export function dataTransform( seriesModel: SeriesModel, diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 63a764e99b..e8d0affefe 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -52,13 +52,6 @@ const dataCtors = { 'time': CtorFloat64Array } as const; -// Dim with same category can be convert between. -const dataCtorCategory = { - 'float': 0, 'time': 0, - 'number': 1, 'int': 2, - 'ordinal': 3 -}; - export type DataStorageDimensionType = keyof typeof dataCtors; type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; @@ -87,7 +80,7 @@ export type DimValueGetter = ( dimIndex: DimensionIndex ) => ParsedValue; -export interface DataStorageDimensionInfo { +export interface DataStorageDimensionDefine { type?: DataStorageDimensionType; // Default to be float. name?: string; /** @@ -164,7 +157,7 @@ class DataStorage { private _count: number = 0; private _rawCount: number = 0; - private _dimensions: DataStorageDimensionInfo[]; + private _dimensions: DataStorageDimensionDefine[]; private _dimValueGetter: DimValueGetter; defaultDimValueGetter: DimValueGetter; @@ -174,7 +167,7 @@ class DataStorage { */ initData( provider: DataProvider, - dimensions: DataStorageDimensionInfo[], + dimensions: DataStorageDimensionDefine[], dimValueGetter?: DimValueGetter ): void { if (__DEV__) { @@ -204,7 +197,7 @@ class DataStorage { // Only pick these two props. Not leak other properties like orderMeta. type: dim.type, name: dim.name - }) as DataStorageDimensionInfo); + }) as DataStorageDimensionDefine); const dimensionsIdxMap: Dictionary = {}; let prefix = ''; @@ -292,21 +285,18 @@ class DataStorage { * We need to recreate a new data storage in this case. */ // TODO Can't sure what's frequency will this validate fail and cause datastorage recreate. - syncDimensionTypes(targetDims: DataStorageDimensionInfo[]) { + canUse(targetDims: DataStorageDimensionDefine[]) { for (let i = 0; i < targetDims.length; i++) { const targetDim = targetDims[i]; const selfDimIdx = this.getDimensionIndex(targetDim.name); const selfDim = this._dimensions[selfDimIdx]; if ( !selfDim - // Dim type can be convert between because ctors are compatitable. - || dataCtorCategory[selfDim.type || 'float'] !== dataCtorCategory[targetDim.type || 'float'] // ordinalMeta is different. Usually being on the different axis. || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) ) { return false; } - selfDim.type = targetDim.type; } return true; } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index bdae04e7cd..d02ffccac9 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -29,7 +29,7 @@ import Model from '../model/Model'; import DataDiffer from './DataDiffer'; import {DataProvider, DefaultDataProvider} from './helper/dataProvider'; import {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper'; -import DataDimensionInfo from './DataDimensionInfo'; +import SeriesDimensionDefine from './SeriesDimensionDefine'; import {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types'; import Element from 'zrender/src/Element'; import { @@ -147,7 +147,7 @@ class SeriesData< readonly dimensions: string[]; // Infomation of each data dimension, like data type. - private _dimensionInfos: {[dimName: string]: DataDimensionInfo}; + private _dimensionInfos: {[dimName: string]: SeriesDimensionDefine}; readonly hostModel: HostModel; @@ -236,10 +236,10 @@ class SeriesData< * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius */ - constructor(dimensions: Array, hostModel: HostModel) { + constructor(dimensions: Array, hostModel: HostModel) { dimensions = dimensions || ['x', 'y']; - const dimensionInfos: Dictionary = {}; + const dimensionInfos: Dictionary = {}; const dimensionNames = []; const invertedIndicesMap: Dictionary = {}; @@ -247,11 +247,11 @@ class SeriesData< // Use the original dimensions[i], where other flag props may exists. const dimInfoInput = dimensions[i]; - const dimensionInfo: DataDimensionInfo = + const dimensionInfo: SeriesDimensionDefine = zrUtil.isString(dimInfoInput) - ? new DataDimensionInfo({name: dimInfoInput}) - : !(dimInfoInput instanceof DataDimensionInfo) - ? new DataDimensionInfo(dimInfoInput) + ? new SeriesDimensionDefine({name: dimInfoInput}) + : !(dimInfoInput instanceof SeriesDimensionDefine) + ? new SeriesDimensionDefine(dimInfoInput) : dimInfoInput; const dimensionName = dimensionInfo.name; @@ -330,7 +330,7 @@ class SeriesData< * Dimension can be concrete names like x, y, z, lng, lat, angle, radius * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' */ - getDimensionInfo(dim: DimensionLoose): DataDimensionInfo { + getDimensionInfo(dim: DimensionLoose): SeriesDimensionDefine { // Do not clone, because there may be categories in dimInfo. return this._dimensionInfos[this.getDimension(dim)]; } @@ -389,7 +389,7 @@ class SeriesData< const dimensions = this.dimensions; const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - if (data.syncDimensionTypes(dimensionInfos)) { + if (data.canUse(dimensionInfos)) { store = data; } // Sync failed diff --git a/src/data/DataDimensionInfo.ts b/src/data/SeriesDimensionDefine.ts similarity index 96% rename from src/data/DataDimensionInfo.ts rename to src/data/SeriesDimensionDefine.ts index 2b9519803d..5a71505f64 100644 --- a/src/data/DataDimensionInfo.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -21,7 +21,7 @@ import * as zrUtil from 'zrender/src/core/util'; import OrdinalMeta from './OrdinalMeta'; import { DataVisualDimensions, DimensionType } from '../util/types'; -class DataDimensionInfo { +class SeriesDimensionDefine { /** * Dimension type. The enumerable values are the key of @@ -125,7 +125,7 @@ class DataDimensionInfo { /** * @param opt All of the fields will be shallow copied. */ - constructor(opt?: object | DataDimensionInfo) { + constructor(opt?: object | SeriesDimensionDefine) { if (opt != null) { zrUtil.extend(this, opt); } @@ -133,4 +133,4 @@ class DataDimensionInfo { }; -export default DataDimensionInfo; +export default SeriesDimensionDefine; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 998a399761..ce0ed4d19e 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -28,7 +28,7 @@ import { VISUAL_DIMENSIONS } from '../../util/types'; import SeriesData from '../SeriesData'; -import DataDimensionInfo from '../DataDimensionInfo'; +import SeriesDimensionDefine from '../SeriesDimensionDefine'; import { createHashMap, defaults, each, extend, HashMap, isObject, isString, map } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; @@ -88,7 +88,7 @@ export default function createDimensions( // TODO: TYPE completeDimensions type source: Source | SeriesData | OptionSourceData | DataStorage, opt?: CreateDimensionsParams -): DataDimensionInfo[] { +): SeriesDimensionDefine[] { if (source instanceof DataStorage) { source = source.getSource(); } @@ -104,7 +104,7 @@ export default function createDimensions( const sysDims = opt.coordDimensions || []; const dimsDef = opt.dimensionsDefine || source.dimensionsDefine || []; const coordDimNameMap = createHashMap(); - const result: DataDimensionInfo[] = []; + const result: SeriesDimensionDefine[] = []; const omitUnusedDimensions = opt.omitUnusedDimensions; const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; // Try to cache the dimNameMap if the dimensionsDefine is from source. @@ -133,7 +133,7 @@ export default function createDimensions( if (idx < 0) { const dimDefItemRaw = dimsDef[dimIdx]; const dimDefItem = isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw }; - const resultItem = new DataDimensionInfo(); + const resultItem = new SeriesDimensionDefine(); const userDimName = dimDefItem.name; if (dataDimNameMap.get(userDimName) != null) { resultItem.name = resultItem.displayName = userDimName; @@ -258,7 +258,7 @@ export default function createDimensions( }); }); - function applyDim(resultItem: DataDimensionInfo, coordDim: DimensionName, coordDimIndex: DimensionIndex) { + function applyDim(resultItem: SeriesDimensionDefine, coordDim: DimensionName, coordDimIndex: DimensionIndex) { if (VISUAL_DIMENSIONS.get(coordDim as keyof DataVisualDimensions) != null) { resultItem.otherDims[coordDim as keyof DataVisualDimensions] = coordDimIndex; } diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index 0343014c09..a25f4c3076 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -18,7 +18,7 @@ */ import {each, isString} from 'zrender/src/core/util'; -import DataDimensionInfo from '../DataDimensionInfo'; +import SeriesDimensionDefine from '../SeriesDimensionDefine'; import SeriesModel from '../../model/Series'; import SeriesData, { DataCalculationInfo } from '../SeriesData'; import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types'; @@ -46,7 +46,7 @@ import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../ */ export function enableDataStack( seriesModel: SeriesModel, - dimensionInfoList: (DataDimensionInfo | string)[], + dimensionInfoList: (SeriesDimensionDefine | string)[], opt?: { stackedCoordDimension?: string byIndex?: boolean @@ -65,8 +65,8 @@ export function enableDataStack( // Compatibal: when `stack` is set as '', do not stack. const mayStack = !!(seriesModel && seriesModel.get('stack')); - let stackedByDimInfo: DataDimensionInfo; - let stackedDimInfo: DataDimensionInfo; + let stackedByDimInfo: SeriesDimensionDefine; + let stackedDimInfo: SeriesDimensionDefine; let stackResultDimension: string; let stackedOverDimension: string; @@ -74,7 +74,7 @@ export function enableDataStack( if (isString(dimensionInfo)) { dimensionInfoList[index] = dimensionInfo = { name: dimensionInfo as string - } as DataDimensionInfo; + } as SeriesDimensionDefine; } if (mayStack && !dimensionInfo.isExtraCoord) { @@ -116,7 +116,7 @@ export function enableDataStack( const stackedDimType = stackedDimInfo.type; let stackedDimCoordIndex = 0; - each(dimensionInfoList, function (dimensionInfo: DataDimensionInfo) { + each(dimensionInfoList, function (dimensionInfo: SeriesDimensionDefine) { if (dimensionInfo.coordDim === stackedDimCoordDim) { stackedDimCoordIndex++; } @@ -154,15 +154,10 @@ export function enableDataStack( }; } -export function isDimensionStacked(data: SeriesData, stackedDim: string /*, stackedByDim*/): boolean { +export function isDimensionStacked(data: SeriesData, stackedDim: string): boolean { // Each single series only maps to one pair of axis. So we do not need to // check stackByDim, whatever stacked by a dimension or stacked by index. return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); - // && ( - // stackedByDim != null - // ? stackedByDim === data.getCalculationInfo('stackedByDimension') - // : data.getCalculationInfo('isStackedByIndex') - // ); } export function getStackedDimension(data: SeriesData, targetDim: string): DimensionName { diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 9a97b9eca6..3d5e83ce9d 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -24,7 +24,7 @@ import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex } from '../../util/types'; import { DataStorageDimensionType } from '../DataStorage'; -import DataDimensionInfo from '../DataDimensionInfo'; +import SeriesDimensionDefine from '../SeriesDimensionDefine'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 359a099c3d..c1285df6dd 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -19,7 +19,7 @@ import { DatasetModel } from '../../component/dataset/install'; import SeriesModel from '../../model/Series'; -import { setAsPrimitive, map, isTypedArray, assert, each, retrieve2 } from 'zrender/src/core/util'; +import { setAsPrimitive, map, isTypedArray, assert, each, retrieve2, createHashMap } from 'zrender/src/core/util'; import { SourceMetaRawOption, Source, createSource, cloneSourceShallow } from '../Source'; import { SeriesEncodableModel, OptionSourceData, @@ -30,8 +30,9 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage from '../DataStorage'; +import DataStorage, { DataStorageDimensionDefine, DataStorageDimensionType } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; +import SeriesDimensionDefine from '../SeriesDimensionDefine'; type DataStorageMap = Dictionary; @@ -363,17 +364,18 @@ export class SourceManager { } /** - * Will return undefined if source don't have dimensions. - * * Only available for series. + * + * @param dimensions Dimensions that are generated in series. */ - getDataStorage(): DataStorage | undefined { + getDataStorage(seriesDims: SeriesDimensionDefine[]): DataStorage { if (__DEV__) { assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); } const source = this.getSource(0); - const dimensionsDefine = source.dimensionsDefine; const delimiter = '$$'; + const storageDims = getDataStorageDimensions(seriesDims, source); + // Source from endpoint(usually series) will be read differently // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. // So we use this three props as key. @@ -381,12 +383,16 @@ export class SourceManager { + delimiter + source.startIndex + delimiter - + (dimensionsDefine ? map(dimensionsDefine, def => def.name).join(delimiter) : ''); + + generateDimensionsHash(storageDims); - return this._innerGetDataStorage(source, sourceReadKey); + return this._innerGetDataStorage(storageDims, source, sourceReadKey); } - private _innerGetDataStorage(seriesSource: Source, sourceReadKey: string): DataStorage | undefined { + private _innerGetDataStorage( + storageDims: DataStorageDimensionDefine[], + seriesSource: Source, + sourceReadKey: string + ): DataStorage | undefined { // TODO Can use other sourceIndex? const sourceIndex = 0; @@ -403,26 +409,22 @@ export class SourceManager { const upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { - cachedStore = upSourceMgr._innerGetDataStorage(seriesSource, sourceReadKey); + cachedStore = upSourceMgr._innerGetDataStorage( + storageDims, seriesSource, sourceReadKey + ); } else { - // Always create datastorage based on source from series. - const dimensionsDefine = seriesSource && seriesSource.dimensionsDefine; - // Can't create a store if don't know dimension.. - if (dimensionsDefine) { - cachedStore = new DataStorage(); - // Always create storage from source of series. - cachedStore.initData( - new DefaultDataProvider(seriesSource, dimensionsDefine.length), - dimensionsDefine - ); - } + cachedStore = new DataStorage(); + // Always create storage from source of series. + cachedStore.initData( + new DefaultDataProvider(seriesSource, storageDims.length), + storageDims + ); } cachedStoreMap[sourceReadKey] = cachedStore; } return cachedStore; - } /** @@ -484,3 +486,43 @@ function isSeries(sourceHost: SourceManager['_sourceHost']): sourceHost is Serie function doThrow(errMsg: string): void { throw new Error(errMsg); } + +const dimTypeShort = { + float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't' +} as const; + +function getDataStorageDimensions(seriesDims: SeriesDimensionDefine[], source: Source) { + const sourceDims = source.dimensionsDefine; + // If source don't have dimensions or series don't omit unsed dimensions. + // Use seriesDims directly + if (!sourceDims || seriesDims.length === sourceDims.length) { + return seriesDims; + } + const dims: DataStorageDimensionDefine[] = []; + const seriesDimsTypeMap = createHashMap(); + for (let i = 0; i < seriesDims.length; i++) { + seriesDimsTypeMap.set(seriesDims[i].name, seriesDims[i].type); + } + for (let i = 0; i < sourceDims.length; i++) { + const dimName = sourceDims[i].name; + // Dim type from series has higher certainty + const seriesDimDefType = seriesDimsTypeMap.get(dimName); + dims.push({ + name: dimName, + type: seriesDimDefType || sourceDims[i].type + }); + } + return dims; +} + +function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { + // TODO ordinalMeta + + // If source don't have dimensions or series don't omit unsed dimensions. + // Generate from seriesDims directly + let key = ''; + for (let i = 0; i < dims.length; i++) { + key += dimTypeShort[dims[i].type] || 'f'; + } + return key; +} \ No newline at end of file diff --git a/src/export/api/helper.ts b/src/export/api/helper.ts index 614d2107de..394c64aaff 100644 --- a/src/export/api/helper.ts +++ b/src/export/api/helper.ts @@ -22,7 +22,7 @@ */ import * as zrUtil from 'zrender/src/core/util'; -import createSeriesDataFromArray from '../../chart/helper/createSeriesDataFromArray'; +import createSeriesData from '../../chart/helper/createSeriesData'; // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge'; import * as axisHelper from '../../coord/axisHelper'; import {AxisModelCommonMixin} from '../../coord/axisModelCommonMixin'; @@ -43,7 +43,7 @@ import { DisplayState, TextCommonOption } from '../../util/types'; * Create a muti dimension List structure from seriesModel. */ export function createList(seriesModel: SeriesModel) { - return createSeriesDataFromArray(seriesModel.getSource(), seriesModel); + return createSeriesData(null, seriesModel); } // export function createGraph(seriesModel) { diff --git a/src/model/Series.ts b/src/model/Series.ts index 31fd65c985..98d7cf641d 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -396,9 +396,12 @@ class SeriesModel extends ComponentMode } } - getSource(): DataStorage | Source { - const sourceMgr = inner(this).sourceManager; - return sourceMgr.getDataStorage() || sourceMgr.getSource(); + getSourceManager(): SourceManager { + return inner(this).sourceManager; + } + + getSource(): Source { + return this.getSourceManager().getSource(); } /** diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index bf69e0706c..654a110794 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -18,7 +18,7 @@ */ -import DataDimensionInfo from '@/src/data/DataDimensionInfo'; +import SeriesDimensionDefine from '@/src/data/SeriesDimensionDefine'; import createDimensions from '@/src/data/helper/createDimensions'; import { createSource } from '@/src/data/Source'; import { SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN } from '@/src/util/types'; @@ -146,7 +146,7 @@ describe('createDimensions', function () { 'dimensionsCount': 5 }; - const result: DataDimensionInfo[] = [ + const result: SeriesDimensionDefine[] = [ { 'otherDims': { 'tooltip': false, @@ -248,7 +248,7 @@ describe('createDimensions', function () { } ]; - expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new SeriesDimensionDefine(a))); }); @@ -256,9 +256,9 @@ describe('createDimensions', function () { function doTest( source: ParametersOfCreateDimensions[0], opt: ParametersOfCreateDimensions[1], - result: DataDimensionInfo[] + result: SeriesDimensionDefine[] ) { - expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new SeriesDimensionDefine(a))); } // test dimcount @@ -390,9 +390,9 @@ describe('createDimensions', function () { function doTest( source: ParametersOfCreateDimensions[0], opt: ParametersOfCreateDimensions[1], - result: DataDimensionInfo[] + result: SeriesDimensionDefine[] ) { - expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new SeriesDimensionDefine(a))); } const data = [ @@ -606,9 +606,9 @@ describe('createDimensions', function () { function doTest( source: ParametersOfCreateDimensions[0], opt: ParametersOfCreateDimensions[1], - result: DataDimensionInfo[] + result: SeriesDimensionDefine[] ) { - expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new SeriesDimensionDefine(a))); } const data = [['iw', 332, 4434, 323, 59], ['vrr', 44, 11, 144, 55]]; @@ -714,9 +714,9 @@ describe('createDimensions', function () { function doTest( source: ParametersOfCreateDimensions[0], opt: ParametersOfCreateDimensions[1], - result: DataDimensionInfo[] + result: SeriesDimensionDefine[] ) { - expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new DataDimensionInfo(a))); + expect(doCreateDimensions(source, opt)).toEqual(result.map(a => new SeriesDimensionDefine(a))); } const data = [['iw', 332, 4434, 323, 'd8', 59], ['vrr', 44, 11, 144, '-', 55]]; From 5bc0c5119f2e7635f72cfb069c53c49ff9d6abf6 Mon Sep 17 00:00:00 2001 From: pissang Date: Thu, 22 Jul 2021 23:23:36 +0800 Subject: [PATCH 35/64] refact(data): optimize stack on high dimension data --- src/chart/helper/createSeriesData.ts | 11 +++- src/data/DataStorage.ts | 60 +++++++++++++---- src/data/SeriesData.ts | 97 +++++++++++++++------------- src/data/helper/dataStackHelper.ts | 6 +- src/data/helper/sourceManager.ts | 4 +- src/processor/dataStack.ts | 6 +- test/ut/spec/data/SeriesData.test.ts | 33 ++-------- 7 files changed, 123 insertions(+), 94 deletions(-) diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 04872e9201..8fa209c1e3 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -159,7 +159,6 @@ function createSeriesData( const data = new SeriesData(dimInfoList, seriesModel); data.setCalculationInfo(stackCalculationInfo); - console.log(stackCalculationInfo) const dimValueGetter = firstCategoryDimIndex != null @@ -171,11 +170,19 @@ function createSeriesData( : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); } : null; + let storage; + if (!isOriginalSource) { + storage = sourceManager.getSharedDataStorage(dimInfoList); + if (stackCalculationInfo.stackedOverDimension) { + storage.appendDimension(stackCalculationInfo.stackedOverDimension, 'float'); + storage.appendDimension(stackCalculationInfo.stackResultDimension, 'float'); + } + } data.hasItemOption = false; data.initData( // Try to reuse the data storage in sourceManager if using dataset. - isOriginalSource ? source : sourceManager.getDataStorage(dimInfoList) + isOriginalSource ? source : storage , null, dimValueGetter); return data; diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index e8d0affefe..6d214ce128 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -200,28 +200,48 @@ class DataStorage { }) as DataStorageDimensionDefine); const dimensionsIdxMap: Dictionary = {}; - let prefix = ''; + let needsHasOwn = false; // Needs to add prefix if key is used in object prototype for (let i = 0; i < dimensions.length; i++) { const name = dimensions[i].name; if ((emptyObj as any)[name] != null) { - prefix = '$$'; + needsHasOwn = true; + break; } } for (let i = 0; i < dimensions.length; i++) { const dim = dimensions[i]; const name = dim.name; - dimensionsIdxMap[prefix + name] = i; + dimensionsIdxMap[name] = i; } - // We use different functions because it may be a hotspot code. - this.getDimensionIndex = prefix ? function (dim) { - return dimensionsIdxMap[prefix + dim]; - } : function (dim) { - return dimensionsIdxMap[dim]; + const updateGetDimensionIndex = () => { + this.getDimensionIndex = needsHasOwn ? function (dim) { + return dimensionsIdxMap.hasOwnProperty(dim) ? dimensionsIdxMap[dim] : undefined; + } : function (dim) { + return dimensionsIdxMap[dim]; + }; }; + this.appendDimension = (dimName, dimType) => { + if (!needsHasOwn && (emptyObj as any)[dimName] != null) { + needsHasOwn = true; + updateGetDimensionIndex(); + } + const dimensions = this._dimensions; + const idx = dimensions.length; + dimensions.push({ + name: dimName, + type: dimType + }); + this._chunks.push(new dataCtors[dimType || 'float'](this._rawCount)); + this._rawExtent.push(getInitialExtent()); + dimensionsIdxMap[dimName] = idx; + }; + + updateGetDimensionIndex(); + this._initDataFromProvider(0, provider.count()); } @@ -234,6 +254,7 @@ class DataStorage { } getDimensionIndex: (dim: DimensionName) => number; + appendDimension: (dim: DimensionName, type: DataStorageDimensionType) => void; getDimensionCount() { return this._dimensions.length; @@ -833,12 +854,27 @@ class DataStorage { map(dims: DimensionIndex[], cb: MapCb): DataStorage { // TODO only clone picked chunks. const target = this.clone(dims); - const targetChunks = target._chunks; + this._updateDims(target, dims, cb); + return target; + } + /** + * Danger only can be used in SeriesData. + */ + modify(dims: DimensionIndex[], cb: MapCb) { + this._updateDims(this, dims, cb); + } + + _updateDims( + target: DataStorage, + dims: DimensionIndex[], + cb: MapCb + ) { + const targetChunks = target._chunks; const tmpRetValue = []; const dimSize = dims.length; - const dataCount = this.count(); + const dataCount = target.count(); const values = []; const rawExtent = target._rawExtent; @@ -847,7 +883,7 @@ class DataStorage { } for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) { - const rawIndex = this.getRawIndex(dataIndex); + const rawIndex = target.getRawIndex(dataIndex); for (let k = 0; k < dimSize; k++) { values[k] = targetChunks[dims[k]][rawIndex]; @@ -881,8 +917,6 @@ class DataStorage { } } } - - return target; } /** diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index d02ffccac9..d39eba2b32 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -321,7 +321,13 @@ class SeriesData< } private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex { - return this._store.getDimensionIndex(this.getDimension(dim)); + const dimIdx = this._store.getDimensionIndex(this.getDimension(dim)); + if (__DEV__) { + if (dimIdx == null) { + throw new Error('Unkown dimension ' + dim); + } + } + return dimIdx; } /** @@ -389,14 +395,7 @@ class SeriesData< const dimensions = this.dimensions; const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - if (data.canUse(dimensionInfos)) { - store = data; - } - // Sync failed - else { - // Needs to recreate data storage if it's not match the given dimension. - data = data.getSource(); - } + store = data; } if (!store) { @@ -764,10 +763,6 @@ class SeriesData< const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); - if (__DEV__) { - validateDimensions(this, dimIndices); - } - this._store.each(dimIndices, (fCtx ? zrUtil.bind(cb as any, fCtx as any) : cb) as any @@ -799,10 +794,6 @@ class SeriesData< const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); - if (__DEV__) { - validateDimensions(this, dimIndices); - } - // Clone first this._store = this._store.clone(); this._store.filterSelf(dimIndices, (fCtx @@ -829,10 +820,6 @@ class SeriesData< dimIndices.push(dimIdx); }); - if (__DEV__) { - validateDimensions(this, dimIndices); - } - this._store = this._store.clone(); this._store.selectRange(innerRange); return this; @@ -893,10 +880,6 @@ class SeriesData< normalizeDimensions(dims), this._getStoreDimIndex, this ); - if (__DEV__) { - validateDimensions(this, dimIndices); - } - const list = cloneListForMapAndSample(this); list._store = this._store.map(dimIndices, (fCtx ? zrUtil.bind(cb as any, fCtx as any) @@ -905,6 +888,41 @@ class SeriesData< return list; } + /** + * !!Danger: used on stack dimension only. + */ + modify(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void; + modify(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void; + /* eslint-disable-next-line */ + modify(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): void; + modify( + dims: ItrParamDims, + cb: MapCb, + ctx?: Ctx, + ctxCompat?: Ctx + ) { + // ctxCompat just for compat echarts3 + const fCtx = (ctx || ctxCompat || this) as CtxOrList; + + if (__DEV__) { + zrUtil.each(normalizeDimensions(dims), dim => { + const dimInfo = this.getDimensionInfo(dim); + if (!dimInfo.isCalculationCoord) { + console.error('Danger: only stack dimension can be modified'); + } + }); + } + + const dimIndices = map( + normalizeDimensions(dims), this._getStoreDimIndex, this + ); + + this._store.modify(dimIndices, (fCtx + ? zrUtil.bind(cb as any, fCtx as any) + : cb) as any + ); + } + /** * Large data down sampling on given dimension * @param sampleIndex Sample index for name and id @@ -1207,13 +1225,13 @@ class SeriesData< // ---------------------------------------------------------- private static internalField = (function () { - prepareInvertedIndex = function (list: SeriesData): void { - const invertedIndicesMap = list._invertedIndicesMap; + prepareInvertedIndex = function (data: SeriesData): void { + const invertedIndicesMap = data._invertedIndicesMap; zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) { - const dimInfo = list._dimensionInfos[dim]; + const dimInfo = data._dimensionInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices. const ordinalMeta = dimInfo.ordinalMeta; - const store = list._store; + const store = data._store; const dimIdx = store.getDimensionIndex(dim); if (ordinalMeta) { invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array( @@ -1233,18 +1251,18 @@ class SeriesData< }; getIdNameFromStore = function ( - list: SeriesData, dimIdx: number, idx: number + data: SeriesData, dimIdx: number, idx: number ): string { - return convertOptionIdName(list._getCategory(dimIdx, idx), null); + return convertOptionIdName(data._getCategory(dimIdx, idx), null); }; /** * @see the comment of `List['getId']`. */ - getId = function (list: SeriesData, rawIndex: number): string { - let id = list._idList[rawIndex]; - if (id == null && list._idDimIdx != null) { - id = getIdNameFromStore(list, list._idDimIdx, rawIndex); + getId = function (data: SeriesData, rawIndex: number): string { + let id = data._idList[rawIndex]; + if (id == null && data._idDimIdx != null) { + id = getIdNameFromStore(data, data._idDimIdx, rawIndex); } if (id == null) { id = ID_PREFIX + rawIndex; @@ -1261,15 +1279,6 @@ class SeriesData< return dimensions; }; - validateDimensions = function (list: SeriesData, dims: DimensionIndex[]): void { - for (let i = 0; i < dims.length; i++) { - // stroage may be empty when no data, so use - // dimensionInfos to check. - if (!list.dimensions[dims[i]]) { - console.error('Unkown dimension ' + dims[i]); - } - } - }; // Data in excludeDimensions is copied, otherwise transfered. cloneListForMapAndSample = function (original: SeriesData): SeriesData { diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index a25f4c3076..6ec95d3cc7 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -104,8 +104,10 @@ export function enableDataStack( // might not be a good way. if (stackedDimInfo) { // Use a weird name that not duplicated with other names. - stackResultDimension = '__\0ecstackresult'; - stackedOverDimension = '__\0ecstackedover'; + // Also need to use seriesModel.id as postfix because different + // series may share same data storage. The stack dimension needs to be distinguished. + stackResultDimension = '__\0ecstackresult_' + seriesModel.id; + stackedOverDimension = '__\0ecstackedover_' + seriesModel.id; // Create inverted index to fast query index by value. if (stackedByDimInfo) { diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index c1285df6dd..5425ec34d8 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -364,11 +364,13 @@ export class SourceManager { } /** + * + * Get a data storage which can be shared across series. * Only available for series. * * @param dimensions Dimensions that are generated in series. */ - getDataStorage(seriesDims: SeriesDimensionDefine[]): DataStorage { + getSharedDataStorage(seriesDims: SeriesDimensionDefine[]): DataStorage { if (__DEV__) { assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); } diff --git a/src/processor/dataStack.ts b/src/processor/dataStack.ts index 88cdc6839e..0d285c12aa 100644 --- a/src/processor/dataStack.ts +++ b/src/processor/dataStack.ts @@ -87,7 +87,7 @@ function calculateStack(stackInfoList: StackInfo[]) { // Should not write on raw data, because stack series model list changes // depending on legend selection. - const newData = targetData.map(dims, function (v0, v1, dataIndex) { + targetData.modify(dims, function (v0, v1, dataIndex) { let sum = targetData.get(targetStackInfo.stackedDimension, dataIndex) as number; // Consider `connectNulls` of line area, if value is NaN, stackedOver @@ -141,9 +141,5 @@ function calculateStack(stackInfoList: StackInfo[]) { return resultVal; }); - - (targetData.hostModel as SeriesModel).setData(newData); - // Update for consequent calculation - targetStackInfo.data = newData; }); } diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index 4be6b3ceea..a87abc2c30 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -23,8 +23,11 @@ import SeriesData from '@/src/data/SeriesData'; import Model from '@/src/model/Model'; import { createSourceFromSeriesDataOption, Source, createSource } from '@/src/data/Source'; -import { OptionDataItemObject, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_ORIGINAL } from '@/src/util/types'; -import DataDimensionInfo from '@/src/data/DataDimensionInfo'; +import { OptionDataItemObject, + OptionDataValue, + SOURCE_FORMAT_ARRAY_ROWS, + SOURCE_FORMAT_ORIGINAL } from '@/src/util/types'; +import SeriesDimensionDefine from '@/src/data/SeriesDimensionDefine'; import OrdinalMeta from '@/src/data/OrdinalMeta'; import DataStorage from '@/src/data/DataStorage'; import { DefaultDataProvider } from '@/src/data/helper/dataProvider'; @@ -210,30 +213,6 @@ describe('SeriesData', function () { return store; } - it('should use storage if dimensions types are same', function () { - const store = createStore(); - const data = new SeriesData([{type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}], null); - data.initData(store); - expect(data.getStorage()).toBe(store); - }); - it('should recreate storage if dimensions types not compatitable', function () { - const store = createStore(); - const dims = [{ type: 'float', name: 'dim0' }, { type: 'float', name: 'dim1'}]; - const data = new SeriesData(dims, null); - data.initData(store); - expect(data.getStorage()).not.toBe(store); - // Can reuse now - const data2 = new SeriesData(dims, null); - data2.initData(data.getStorage()); - expect(data2.getStorage()).toBe(data.getStorage()); - }); - it('should recreate storage if dimensions name not exits', function () { - const store = createStore(); - const dims = [{ type: 'float', name: 'dim2' }]; - const data = new SeriesData(dims, null); - data.initData(store); - expect(data.getStorage()).not.toBe(store); - }); it('SeriesData can still get other dims value from storage when only part of dims are given.', function () { const provider = new DefaultDataProvider([['A', 15, 20], ['B', 25, 30], ['C', 35, 40]]); @@ -497,7 +476,7 @@ describe('SeriesData', function () { ]); }); - function testArrayRowsInSource(dimensionsInfo: DataDimensionInfo[]): void { + function testArrayRowsInSource(dimensionsInfo: SeriesDimensionDefine[]): void { const list = new SeriesData(dimensionsInfo, new Model()); const oneByOne = makeOneByOneChecker(list); From 90a369c359f442b2c22f1668e86f4d8731a32381 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 11:29:58 +0800 Subject: [PATCH 36/64] refact(data): add ordinaMeta to the dimensions key --- src/data/DataStorage.ts | 10 +--- src/data/SeriesData.ts | 8 ++- src/data/helper/sourceManager.ts | 24 ++++++--- test/dataset-performance.html | 89 ++++++++++++++++++++++++++++++-- 4 files changed, 113 insertions(+), 18 deletions(-) diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index 6d214ce128..e0431a5306 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -144,7 +144,6 @@ class DataStorage { private _provider: DataProvider; - // Raw extent will not be cloned, but only transfered. // It will not be calculated util needed. private _rawExtent: [number, number][] = []; @@ -298,14 +297,8 @@ class DataStorage { } /** - * If we using dataset. - * Dimensions types may only know when we initializing series. - * So we need to sync the type back to storage when initlializing SeriesData back - * - * Will return false if dimension type has been known and different from given. - * We need to recreate a new data storage in this case. + * Check if SeriesData can use this DataStorage. */ - // TODO Can't sure what's frequency will this validate fail and cause datastorage recreate. canUse(targetDims: DataStorageDimensionDefine[]) { for (let i = 0; i < targetDims.length; i++) { const targetDim = targetDims[i]; @@ -313,6 +306,7 @@ class DataStorage { const selfDim = this._dimensions[selfDimIdx]; if ( !selfDim + || (selfDim.type || 'float') !== (targetDim.type || 'float') // ordinalMeta is different. Usually being on the different axis. || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) ) { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index d39eba2b32..7cf95d2749 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -395,7 +395,13 @@ class SeriesData< const dimensions = this.dimensions; const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); if (data instanceof DataStorage) { - store = data; + if (data.canUse(dimensionInfos)) { + store = data; + } + else { + // Fallback + data = store.getSource(); + } } if (!store) { diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 5425ec34d8..3ae2145ccc 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -33,6 +33,8 @@ import { applyDataTransform } from './transform'; import DataStorage, { DataStorageDimensionDefine, DataStorageDimensionType } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; +import WeakMap from 'zrender/src/core/WeakMap'; +import OrdinalMeta from '../OrdinalMeta'; type DataStorageMap = Dictionary; @@ -501,30 +503,40 @@ function getDataStorageDimensions(seriesDims: SeriesDimensionDefine[], source: S return seriesDims; } const dims: DataStorageDimensionDefine[] = []; - const seriesDimsTypeMap = createHashMap(); + const seriesDimsMap = createHashMap(); for (let i = 0; i < seriesDims.length; i++) { - seriesDimsTypeMap.set(seriesDims[i].name, seriesDims[i].type); + seriesDimsMap.set(seriesDims[i].name, seriesDims[i]); } for (let i = 0; i < sourceDims.length; i++) { const dimName = sourceDims[i].name; // Dim type from series has higher certainty - const seriesDimDefType = seriesDimsTypeMap.get(dimName); + const seriesDim = seriesDimsMap.get(dimName); dims.push({ name: dimName, - type: seriesDimDefType || sourceDims[i].type + ordinalMeta: seriesDim && seriesDim.ordinalMeta, + type: seriesDim ? seriesDim.type : sourceDims[i].type }); } return dims; } +const ordinalIdMap = new WeakMap(); +let ordinalMetaId = 0; function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { - // TODO ordinalMeta - // If source don't have dimensions or series don't omit unsed dimensions. // Generate from seriesDims directly let key = ''; for (let i = 0; i < dims.length; i++) { + const ordinalMeta = dims[i].ordinalMeta; key += dimTypeShort[dims[i].type] || 'f'; + if (ordinalMeta) { + let id = ordinalIdMap.get(ordinalMeta); + if (!id) { + id = 'm' + ordinalMetaId++; + ordinalIdMap.set(ordinalMeta, id); + } + key += id; + } } return key; } \ No newline at end of file diff --git a/test/dataset-performance.html b/test/dataset-performance.html index b3992544be..244bbe9932 100644 --- a/test/dataset-performance.html +++ b/test/dataset-performance.html @@ -38,6 +38,7 @@
+
@@ -55,6 +56,7 @@ return `index${i}` }) // var option = { + // animation: false, // xAxis: { // type: 'category', // data: Array.from(Array(10), (_, i) => { @@ -69,6 +71,8 @@ // data: Array.from(Array(10), (_, i) => { // return Math.random()*100 // }), + // lineStyle: { width: 0.5 }, + // showSymbol: false, // type: 'line', // } // }) @@ -107,18 +111,97 @@ var chart = testHelper.create(echarts, 'main0', { title: [ - 'Dataset with 10000 dimensions.', + 'Dataset with 1000 dimensions.', 'Case from https://github.com/apache/echarts/issues/11907' ], option: {} }); - console.profile('render'); + console.time('render'); chart.setOption(option) - console.profileEnd('render'); + console.timeEnd('render'); }); + + From c91d71155400bac94d0097c5460386de29339731 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 12:14:05 +0800 Subject: [PATCH 37/64] fix typo --- src/data/SeriesData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 7cf95d2749..637123932a 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -400,7 +400,7 @@ class SeriesData< } else { // Fallback - data = store.getSource(); + data = data.getSource(); } } From b785031a3a991930f333051bce799afde776c2f8 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 13:33:25 +0800 Subject: [PATCH 38/64] refact(data): reverse the optimization of genName --- src/chart/helper/createSeriesData.ts | 2 +- src/data/helper/createDimensions.ts | 32 +++++++++++----------------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 8fa209c1e3..e291844242 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -24,7 +24,7 @@ import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; import {getCoordSysInfoBySeries} from '../../model/referHelper'; -import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../../data/Source'; +import { createSourceFromSeriesDataOption, Source } from '../../data/Source'; import {enableDataStack} from '../../data/helper/dataStackHelper'; import {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper'; import { diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index ce0ed4d19e..0c8a5cf8d3 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -136,6 +136,9 @@ export default function createDimensions( const resultItem = new SeriesDimensionDefine(); const userDimName = dimDefItem.name; if (dataDimNameMap.get(userDimName) != null) { + // Only if `series.dimensions` is defined in option + // displayName, will be set, and dimension will be diplayed vertically in + // tooltip by default. resultItem.name = resultItem.displayName = userDimName; } dimDefItem.type != null && (resultItem.type = dimDefItem.type); @@ -154,9 +157,6 @@ export default function createDimensions( const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; // Name will be applied later for avoiding duplication. if (userDimName != null && dataDimNameMap.get(userDimName) == null) { - // Only if `series.dimensions` is defined in option - // displayName, will be set, and dimension will be diplayed vertically in - // tooltip by default. dataDimNameMap.set(userDimName, i); } } @@ -249,7 +249,9 @@ export default function createDimensions( applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex); if (resultItem.name == null && sysDimItemDimsDef) { let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex]; - !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {name: sysDimItemDimsDefItem}); + !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = { + name: sysDimItemDimsDefItem + }); resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name; resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip; } @@ -275,8 +277,6 @@ export default function createDimensions( const fromZero = generateCoordCount != null; generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const extra = generateCoord || 'value'; - let coordDimNameAutoIdx = 0; - let dataDimNameAutoIdx = 0; // Set dim `name` and other `coordDim` and other props. if (!omitUnusedDimensions) { @@ -285,11 +285,9 @@ export default function createDimensions( const coordDim = resultItem.coordDim; if (coordDim == null) { - const res = genName( - extra, coordDimNameMap, coordDimNameAutoIdx, fromZero + resultItem.coordDim = genName( + extra, coordDimNameMap, fromZero ); - coordDimNameAutoIdx = res.autoIdx; - resultItem.coordDim = res.name; resultItem.coordDimIndex = 0; // Series specified generateCoord is using out. if (!generateCoord || generateCoordCount <= 0) { @@ -299,11 +297,9 @@ export default function createDimensions( } if (resultItem.name == null) { - const res = genName( - resultItem.coordDim, dataDimNameMap, dataDimNameAutoIdx, false + resultItem.name = genName( + resultItem.coordDim, dataDimNameMap, false ); - resultItem.name = res.name; - dataDimNameAutoIdx = res.autoIdx; } if (resultItem.type == null @@ -383,18 +379,16 @@ export function getDimCount( function genName( name: DimensionName, map: HashMap, - autoIdx: number, fromZero: boolean -): { name: DimensionName, autoIdx: number } { +) { const mapData = map.data; if (fromZero || mapData.hasOwnProperty(name)) { - let i = autoIdx || 0; + let i = 0; while (mapData.hasOwnProperty(name + i)) { i++; } name += i; - autoIdx = i + 1; } map.set(name, true); - return { name, autoIdx }; + return name; } \ No newline at end of file From 690647c7480964e600c0fecfde52738e86f18c93 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 13:59:30 +0800 Subject: [PATCH 39/64] refact(data): remove duplication of name generally --- src/data/helper/createDimensions.ts | 45 +++++++++++++++------- test/ut/spec/data/createDimensions.test.ts | 28 ++++++++++++++ 2 files changed, 60 insertions(+), 13 deletions(-) diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 0c8a5cf8d3..3b3f73d24b 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -274,9 +274,9 @@ export default function createDimensions( // Make sure the first extra dim is 'value'. const generateCoord = opt.generateCoord; let generateCoordCount = opt.generateCoordCount; - const fromZero = generateCoordCount != null; generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const extra = generateCoord || 'value'; + let coordDimAutoIdx = 0; // Set dim `name` and other `coordDim` and other props. if (!omitUnusedDimensions) { @@ -285,9 +285,13 @@ export default function createDimensions( const coordDim = resultItem.coordDim; if (coordDim == null) { - resultItem.coordDim = genName( - extra, coordDimNameMap, fromZero + // TODO no need to generate coordDim for isExtraCoord? + const res = genCoordDimName( + extra, coordDimNameMap, coordDimAutoIdx ); + resultItem.coordDim = res.name; + coordDimAutoIdx = res.autoIdx; + resultItem.coordDimIndex = 0; // Series specified generateCoord is using out. if (!generateCoord || generateCoordCount <= 0) { @@ -297,9 +301,8 @@ export default function createDimensions( } if (resultItem.name == null) { - resultItem.name = genName( - resultItem.coordDim, dataDimNameMap, false - ); + // Duplication will be removed in the next step. + resultItem.name = resultItem.coordDim; } if (resultItem.type == null @@ -327,7 +330,7 @@ export default function createDimensions( resultItem.type = 'ordinal'; } } - return result; + return removeDuplication(result); } else { // Sort dimensions @@ -338,10 +341,25 @@ export default function createDimensions( } } toSort.sort((a, b) => a.i - b.i); - return map(toSort, item => item.o); + return removeDuplication(map(toSort, item => item.o)); } } +function removeDuplication(result: SeriesDimensionDefine[]) { + const duplicationMap = createHashMap(); + for (let i = 0; i < result.length; i++) { + const dim = result[i]; + const dimOriginalName = dim.name; + let count = duplicationMap.get(dimOriginalName) || 0; + if (count > 0) { + // Starts from 0. + dim.name = dimOriginalName + (count - 1); + } + count++; + duplicationMap.set(dimOriginalName, count); + } + return result; +} // ??? TODO // Originally detect dimCount by data[0]. Should we @@ -376,19 +394,20 @@ export function getDimCount( return dimCount; } -function genName( +function genCoordDimName( name: DimensionName, map: HashMap, - fromZero: boolean + autoIdx: number ) { const mapData = map.data; - if (fromZero || mapData.hasOwnProperty(name)) { - let i = 0; + if (mapData.hasOwnProperty(name)) { + let i = autoIdx || 0; while (mapData.hasOwnProperty(name + i)) { i++; } name += i; + autoIdx = i + 1; } map.set(name, true); - return name; + return {name, autoIdx}; } \ No newline at end of file diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index 654a110794..8eb1c0ff25 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -700,6 +700,34 @@ describe('createDimensions', function () { } ] ); + + // Duplicate name + doTest( + data, + { + dimensionsDefine: [{name: '泰亩', type: 'ordinal'}, {name: '泰亩', type: 'float'}], + coordDimensions: [{name: 'time', type: 'time' as const}, 'value'] + }, + [ + { + 'otherDims': {}, + 'displayName': '泰亩', + 'name': '泰亩', + 'type': 'ordinal', + 'ordinalMeta': undefined, + 'coordDimIndex': 0, + 'coordDim': 'time' + }, + { + 'otherDims': {}, + 'displayName': '泰亩', + 'name': '泰亩0', + 'type': 'float', + 'coordDim': 'value', + 'coordDimIndex': 0 + } + ] + ); }); From 6bed301a6bc9adb10a81ee26b1522651a0cc0a38 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 16:29:07 +0800 Subject: [PATCH 40/64] refact(data): create default dimensions for dataset --- src/data/Source.ts | 34 ++++--- src/data/helper/createDimensions.ts | 26 +++-- src/data/helper/sourceManager.ts | 2 +- test/dataset-case.html | 144 ++++++++++++++++++++++++++++ 4 files changed, 184 insertions(+), 22 deletions(-) create mode 100644 test/dataset-case.html diff --git a/src/data/Source.ts b/src/data/Source.ts index 83b3ad0739..3594171180 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -18,12 +18,12 @@ */ import { - isTypedArray, HashMap, clone, createHashMap, isArray, isObject, isArrayLike, + isTypedArray, clone, createHashMap, isArray, isObject, isArrayLike, hasOwn, assert, each, map, isNumber, isString } from 'zrender/src/core/util'; import { SourceFormat, SeriesLayoutBy, DimensionDefinition, - OptionEncodeValue, OptionSourceData, + OptionSourceData, SOURCE_FORMAT_ORIGINAL, SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_UNKNOWN, @@ -119,6 +119,8 @@ class SourceImpl { */ readonly dimensionsDefine: DimensionDefinition[]; + readonly isGeneratedDimensions: boolean = false; + /** * Only make sense in `SOURCE_FORMAT_ARRAY_ROWS`. * That is the same as `sourceHeader: number`, @@ -152,27 +154,35 @@ class SourceImpl { startIndex?: number, // default: 0 dimensionsDetectedCount?: number, - metaRawOption?: SourceMetaRawOption, - - // [Caveat] - // This is the raw user defined `encode` in `series`. - // If user not defined, DO NOT make a empty object or hashMap here. - // An empty object or hashMap will prevent from auto generating encode. - encodeDefine?: HashMap + metaRawOption?: SourceMetaRawOption }) { this.data = fields.data || ( fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : [] ); - this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; + const sourceFormat = this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; + const dimensionsDetectedCount = this.dimensionsDetectedCount = fields.dimensionsDetectedCount; + let dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; // Visit config this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN; this.startIndex = fields.startIndex || 0; - this.dimensionsDetectedCount = fields.dimensionsDetectedCount; this.metaRawOption = fields.metaRawOption; - const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; + if (!dimensionsDefine && dimensionsDetectedCount && sourceFormat !== SOURCE_FORMAT_ORIGINAL) { + // Generate dimensionsDefine automatically for dataset. + const generatedDims: DimensionDefinition[] = []; + for (let i = 0; i < dimensionsDetectedCount; i++) { + const name = 'dim' + i; + generatedDims.push({ + name, + displayName: name + }); + } + dimensionsDefine = this.dimensionsDefine = generatedDims; + this.isGeneratedDimensions = true; + } + if (dimensionsDefine) { for (let i = 0; i < dimensionsDefine.length; i++) { const dim = dimensionsDefine[i]; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 3b3f73d24b..f641a69188 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -107,6 +107,7 @@ export default function createDimensions( const result: SeriesDimensionDefine[] = []; const omitUnusedDimensions = opt.omitUnusedDimensions; const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; + const isGeneratedDimensionsDef = isUsingSourceDimensionsDef && source.isGeneratedDimensions; // Try to cache the dimNameMap if the dimensionsDefine is from source. const canCacheDimNameMap = (isUsingSourceDimensionsDef && omitUnusedDimensions); let dataDimNameMap = canCacheDimNameMap && inner(source).dimNameMap; @@ -142,7 +143,10 @@ export default function createDimensions( resultItem.name = resultItem.displayName = userDimName; } dimDefItem.type != null && (resultItem.type = dimDefItem.type); - dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); + // We don't use the displayName if it's generated automatically. + // Instead, we try to use a more semantic name from coordinate system later. + !isGeneratedDimensionsDef && dimDefItem.displayName != null + && (resultItem.displayName = dimDefItem.displayName); const newIdx = result.length; indicesMap[dimIdx] = newIdx; result.push(resultItem); @@ -300,11 +304,6 @@ export default function createDimensions( generateCoordCount--; } - if (resultItem.name == null) { - // Duplication will be removed in the next step. - resultItem.name = resultItem.coordDim; - } - if (resultItem.type == null && ( guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must @@ -330,7 +329,7 @@ export default function createDimensions( resultItem.type = 'ordinal'; } } - return removeDuplication(result); + return postProcessDimNames(result); } else { // Sort dimensions @@ -341,14 +340,23 @@ export default function createDimensions( } } toSort.sort((a, b) => a.i - b.i); - return removeDuplication(map(toSort, item => item.o)); + return postProcessDimNames(map(toSort, item => item.o)); } } -function removeDuplication(result: SeriesDimensionDefine[]) { +// Remove duplications and give a default name if not exists. +function postProcessDimNames(result: SeriesDimensionDefine[]) { const duplicationMap = createHashMap(); for (let i = 0; i < result.length; i++) { const dim = result[i]; + if (dim.name == null) { + dim.name = dim.coordDim; + } + // We don't assign displayName again if name is already use the default coordDim + else if (dim.displayName == null) { + dim.displayName = dim.coordDim; + } + const dimOriginalName = dim.name; let count = duplicationMap.get(dimOriginalName) || 0; if (count > 0) { diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 3ae2145ccc..6a045cc8ec 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -30,7 +30,7 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage, { DataStorageDimensionDefine, DataStorageDimensionType } from '../DataStorage'; +import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; import WeakMap from 'zrender/src/core/WeakMap'; diff --git a/test/dataset-case.html b/test/dataset-case.html new file mode 100644 index 0000000000..523e4d1b05 --- /dev/null +++ b/test/dataset-case.html @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + From e252249bd1d752e5c8bd831086ed98f949b05daf Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 19:30:02 +0800 Subject: [PATCH 41/64] refact(data): add dimension name to the key. Revert "refact(data): create default dimensions for dataset" --- src/data/Source.ts | 34 ++++++++++------------------- src/data/helper/createDimensions.ts | 26 ++++++++-------------- src/data/helper/dimensionHelper.ts | 3 +-- src/data/helper/sourceManager.ts | 4 +++- test/dataset-performance.html | 4 ++-- 5 files changed, 27 insertions(+), 44 deletions(-) diff --git a/src/data/Source.ts b/src/data/Source.ts index 3594171180..83b3ad0739 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -18,12 +18,12 @@ */ import { - isTypedArray, clone, createHashMap, isArray, isObject, isArrayLike, + isTypedArray, HashMap, clone, createHashMap, isArray, isObject, isArrayLike, hasOwn, assert, each, map, isNumber, isString } from 'zrender/src/core/util'; import { SourceFormat, SeriesLayoutBy, DimensionDefinition, - OptionSourceData, + OptionEncodeValue, OptionSourceData, SOURCE_FORMAT_ORIGINAL, SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_UNKNOWN, @@ -119,8 +119,6 @@ class SourceImpl { */ readonly dimensionsDefine: DimensionDefinition[]; - readonly isGeneratedDimensions: boolean = false; - /** * Only make sense in `SOURCE_FORMAT_ARRAY_ROWS`. * That is the same as `sourceHeader: number`, @@ -154,35 +152,27 @@ class SourceImpl { startIndex?: number, // default: 0 dimensionsDetectedCount?: number, - metaRawOption?: SourceMetaRawOption + metaRawOption?: SourceMetaRawOption, + + // [Caveat] + // This is the raw user defined `encode` in `series`. + // If user not defined, DO NOT make a empty object or hashMap here. + // An empty object or hashMap will prevent from auto generating encode. + encodeDefine?: HashMap }) { this.data = fields.data || ( fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : [] ); - const sourceFormat = this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; - const dimensionsDetectedCount = this.dimensionsDetectedCount = fields.dimensionsDetectedCount; - let dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; + this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; // Visit config this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN; this.startIndex = fields.startIndex || 0; + this.dimensionsDetectedCount = fields.dimensionsDetectedCount; this.metaRawOption = fields.metaRawOption; - if (!dimensionsDefine && dimensionsDetectedCount && sourceFormat !== SOURCE_FORMAT_ORIGINAL) { - // Generate dimensionsDefine automatically for dataset. - const generatedDims: DimensionDefinition[] = []; - for (let i = 0; i < dimensionsDetectedCount; i++) { - const name = 'dim' + i; - generatedDims.push({ - name, - displayName: name - }); - } - dimensionsDefine = this.dimensionsDefine = generatedDims; - this.isGeneratedDimensions = true; - } - + const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; if (dimensionsDefine) { for (let i = 0; i < dimensionsDefine.length; i++) { const dim = dimensionsDefine[i]; diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index f641a69188..3b3f73d24b 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -107,7 +107,6 @@ export default function createDimensions( const result: SeriesDimensionDefine[] = []; const omitUnusedDimensions = opt.omitUnusedDimensions; const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; - const isGeneratedDimensionsDef = isUsingSourceDimensionsDef && source.isGeneratedDimensions; // Try to cache the dimNameMap if the dimensionsDefine is from source. const canCacheDimNameMap = (isUsingSourceDimensionsDef && omitUnusedDimensions); let dataDimNameMap = canCacheDimNameMap && inner(source).dimNameMap; @@ -143,10 +142,7 @@ export default function createDimensions( resultItem.name = resultItem.displayName = userDimName; } dimDefItem.type != null && (resultItem.type = dimDefItem.type); - // We don't use the displayName if it's generated automatically. - // Instead, we try to use a more semantic name from coordinate system later. - !isGeneratedDimensionsDef && dimDefItem.displayName != null - && (resultItem.displayName = dimDefItem.displayName); + dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); const newIdx = result.length; indicesMap[dimIdx] = newIdx; result.push(resultItem); @@ -304,6 +300,11 @@ export default function createDimensions( generateCoordCount--; } + if (resultItem.name == null) { + // Duplication will be removed in the next step. + resultItem.name = resultItem.coordDim; + } + if (resultItem.type == null && ( guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must @@ -329,7 +330,7 @@ export default function createDimensions( resultItem.type = 'ordinal'; } } - return postProcessDimNames(result); + return removeDuplication(result); } else { // Sort dimensions @@ -340,23 +341,14 @@ export default function createDimensions( } } toSort.sort((a, b) => a.i - b.i); - return postProcessDimNames(map(toSort, item => item.o)); + return removeDuplication(map(toSort, item => item.o)); } } -// Remove duplications and give a default name if not exists. -function postProcessDimNames(result: SeriesDimensionDefine[]) { +function removeDuplication(result: SeriesDimensionDefine[]) { const duplicationMap = createHashMap(); for (let i = 0; i < result.length; i++) { const dim = result[i]; - if (dim.name == null) { - dim.name = dim.coordDim; - } - // We don't assign displayName again if name is already use the default coordDim - else if (dim.displayName == null) { - dim.displayName = dim.coordDim; - } - const dimOriginalName = dim.name; let count = duplicationMap.get(dimOriginalName) || 0; if (count > 0) { diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 3d5e83ce9d..aae9c2ea15 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -18,13 +18,12 @@ */ -import {each, createHashMap, assert, filter, keys} from 'zrender/src/core/util'; +import {each, createHashMap, assert} from 'zrender/src/core/util'; import SeriesData from '../SeriesData'; import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex } from '../../util/types'; import { DataStorageDimensionType } from '../DataStorage'; -import SeriesDimensionDefine from '../SeriesDimensionDefine'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 6a045cc8ec..c5a72cbec8 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -30,7 +30,7 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; +import DataStorage, { DataStorageDimensionDefine, DataStorageDimensionType } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; import WeakMap from 'zrender/src/core/WeakMap'; @@ -528,6 +528,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { let key = ''; for (let i = 0; i < dims.length; i++) { const ordinalMeta = dims[i].ordinalMeta; + key += dims[i].name; key += dimTypeShort[dims[i].type] || 'f'; if (ordinalMeta) { let id = ordinalIdMap.get(ordinalMeta); @@ -537,6 +538,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { } key += id; } + key += '$$'; } return key; } \ No newline at end of file diff --git a/test/dataset-performance.html b/test/dataset-performance.html index 244bbe9932..cfd3be263f 100644 --- a/test/dataset-performance.html +++ b/test/dataset-performance.html @@ -85,7 +85,7 @@ type: 'value' }, dataset: { - dimension: ['date', ...indexes], + // dimension: ['date', ...indexes], source: Array.from(Array(10), (_, i) => { return { date: i, @@ -164,7 +164,7 @@ type: 'value' }, dataset: { - dimension: ['date', ...indexes], + // dimension: ['date', ...indexes], source: Array.from(Array(10), (_, i) => { return { date: i, From 9d6c5974050e6bfb4223a19a4f4ae111c3d95b16 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 19:45:29 +0800 Subject: [PATCH 42/64] refact(data): tweak dimension hash generation --- src/data/helper/sourceManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index c5a72cbec8..2b46bc6f72 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -529,6 +529,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { for (let i = 0; i < dims.length; i++) { const ordinalMeta = dims[i].ordinalMeta; key += dims[i].name; + key += '$'; key += dimTypeShort[dims[i].type] || 'f'; if (ordinalMeta) { let id = ordinalIdMap.get(ordinalMeta); @@ -538,7 +539,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { } key += id; } - key += '$$'; + key += '$'; } return key; } \ No newline at end of file From bfeb495e6cf3028357a7697fa875cb0649e800da Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 20:21:34 +0800 Subject: [PATCH 43/64] revert name gen logic --- src/data/helper/createDimensions.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 3b3f73d24b..f5b98c72c0 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -275,8 +275,8 @@ export default function createDimensions( const generateCoord = opt.generateCoord; let generateCoordCount = opt.generateCoordCount; generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; + const fromZero = generateCoordCount != null; const extra = generateCoord || 'value'; - let coordDimAutoIdx = 0; // Set dim `name` and other `coordDim` and other props. if (!omitUnusedDimensions) { @@ -286,11 +286,9 @@ export default function createDimensions( if (coordDim == null) { // TODO no need to generate coordDim for isExtraCoord? - const res = genCoordDimName( - extra, coordDimNameMap, coordDimAutoIdx + resultItem.coordDim = genCoordDimName( + extra, coordDimNameMap, fromZero ); - resultItem.coordDim = res.name; - coordDimAutoIdx = res.autoIdx; resultItem.coordDimIndex = 0; // Series specified generateCoord is using out. @@ -397,17 +395,16 @@ export function getDimCount( function genCoordDimName( name: DimensionName, map: HashMap, - autoIdx: number + fromZero: boolean ) { const mapData = map.data; - if (mapData.hasOwnProperty(name)) { - let i = autoIdx || 0; + if (fromZero || mapData.hasOwnProperty(name)) { + let i = 0; while (mapData.hasOwnProperty(name + i)) { i++; } name += i; - autoIdx = i + 1; } map.set(name, true); - return {name, autoIdx}; + return name; } \ No newline at end of file From 40e9590fa2f44aa89e3c5cbdd7180f83c8d8440b Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 23 Jul 2021 20:27:36 +0800 Subject: [PATCH 44/64] fix wrong fromZero logic in createDimensions --- src/data/helper/createDimensions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index f5b98c72c0..06d1fbcc30 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -274,8 +274,8 @@ export default function createDimensions( // Make sure the first extra dim is 'value'. const generateCoord = opt.generateCoord; let generateCoordCount = opt.generateCoordCount; - generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const fromZero = generateCoordCount != null; + generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const extra = generateCoord || 'value'; // Set dim `name` and other `coordDim` and other props. From ae9226ecc01eb60e5662f34c8bcf275dbece17d8 Mon Sep 17 00:00:00 2001 From: pissang Date: Tue, 27 Jul 2021 17:16:25 +0800 Subject: [PATCH 45/64] refact(data): compatibility with exists echarts-gl code. --- src/data/helper/linkList.ts | 22 ++++++++++++++++++++++ src/echarts.ts | 2 +- src/export/api.ts | 4 +++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/data/helper/linkList.ts diff --git a/src/data/helper/linkList.ts b/src/data/helper/linkList.ts new file mode 100644 index 0000000000..61a926bd8b --- /dev/null +++ b/src/data/helper/linkList.ts @@ -0,0 +1,22 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +// TODO: this module is only for compatibility with echarts-gl +import linkSeriesData from './linkSeriesData'; +export default linkSeriesData; \ No newline at end of file diff --git a/src/echarts.ts b/src/echarts.ts index 5c3e5d2a46..2c4df0d8e7 100644 --- a/src/echarts.ts +++ b/src/echarts.ts @@ -27,7 +27,7 @@ import {install as DatasetComponent} from './component/dataset/install'; // Default to have canvas renderer and dataset for compitatble reason. use([CanvasRenderer, DatasetComponent]); -// Compatitable with the following code +// TODO: Compatitable with the following code // import echarts from 'echarts/lib/echarts' export default { init() { diff --git a/src/export/api.ts b/src/export/api.ts index 9279b3c514..d7f7cf0e33 100644 --- a/src/export/api.ts +++ b/src/export/api.ts @@ -24,6 +24,7 @@ import ComponentView, { ComponentViewConstructor } from '../view/Component'; import SeriesModel, { SeriesModelConstructor } from '../model/Series'; import ChartView, { ChartViewConstructor } from '../view/Chart'; +import SeriesData from '../data/SeriesData'; // Provide utilities API in echarts. It will be in echarts namespace. // Like echarts.util, echarts.graphic @@ -53,7 +54,8 @@ export * as util from './api/util'; export {default as env} from 'zrender/src/core/env'; //////////////// Export for Exension Usage //////////////// -export {default as SeriesData} from '../data/SeriesData'; +// export {SeriesData}; +export {SeriesData as List}; // TODO: Compatitable with exists echarts-gl code export {default as Model} from '../model/Model'; export {default as Axis} from '../coord/Axis'; From 8e6bd68cb35d18a2a2eb78aaaf3423056c63f110 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 4 Aug 2021 15:42:42 +0800 Subject: [PATCH 46/64] refact(data): fix wrong index when only using part of the dimensions in SeriesData --- src/chart/helper/labelHelper.ts | 6 ++-- src/component/tooltip/TooltipHTMLContent.ts | 2 +- src/component/visualMap/VisualMapModel.ts | 14 +++------ src/component/visualMap/visualEncoding.ts | 6 ++-- src/data/DataStorage.ts | 18 ++++++----- src/data/SeriesData.ts | 35 +++++++++++++++------ src/data/SeriesDimensionDefine.ts | 7 ----- src/data/helper/dataProvider.ts | 10 ++---- src/data/helper/dimensionHelper.ts | 5 +-- src/model/Series.ts | 1 - src/model/mixin/dataFormat.ts | 8 ++--- src/util/types.ts | 2 +- test/dataset-case.html | 10 +++++- 13 files changed, 68 insertions(+), 56 deletions(-) diff --git a/src/chart/helper/labelHelper.ts b/src/chart/helper/labelHelper.ts index 8dc79059cb..e8d791685f 100644 --- a/src/chart/helper/labelHelper.ts +++ b/src/chart/helper/labelHelper.ts @@ -58,9 +58,9 @@ export function getDefaultInterpolatedLabel( const vals = []; for (let i = 0; i < labelDims.length; i++) { - const dimInfo = data.getDimensionInfo(labelDims[i]); - if (dimInfo) { - vals.push(interpolatedValue[dimInfo.index]); + const dimIndex = data.getDimensionIndex(labelDims[i]); + if (dimIndex >= 0) { + vals.push(interpolatedValue[dimIndex]); } } return vals.join(' '); diff --git a/src/component/tooltip/TooltipHTMLContent.ts b/src/component/tooltip/TooltipHTMLContent.ts index 33ce852fb9..d6e85c17bd 100644 --- a/src/component/tooltip/TooltipHTMLContent.ts +++ b/src/component/tooltip/TooltipHTMLContent.ts @@ -28,7 +28,7 @@ import type { ZRenderType } from 'zrender/src/zrender'; import type { TooltipOption } from './TooltipModel'; import Model from '../../model/Model'; import type { ZRRawEvent } from 'zrender/src/core/types'; -import type { ColorString, ZRColor } from '../../util/types'; +import type { ZRColor } from '../../util/types'; import type CanvasPainter from 'zrender/src/canvas/Painter'; import type SVGPainter from 'zrender/src/svg/Painter'; import { diff --git a/src/component/visualMap/VisualMapModel.ts b/src/component/visualMap/VisualMapModel.ts index 0ec6cefb9a..ebf188caa4 100644 --- a/src/component/visualMap/VisualMapModel.ts +++ b/src/component/visualMap/VisualMapModel.ts @@ -379,21 +379,17 @@ class VisualMapModel extends Com /** * Return Concrete dimention. If return null/undefined, no dimension used. */ - getDataDimension(list: SeriesData) { + getDataDimension(data: SeriesData) { const optDim = this.option.dimension; - const listDimensions = list.dimensions; - if (optDim == null && !listDimensions.length) { + const allDimensions = data.getStoreDimensions(); + if (optDim == null && !allDimensions.length) { return; } - if (optDim != null) { - return list.getDimension(optDim); - } - - const dimNames = list.dimensions; + const dimNames = data.dimensions; for (let i = dimNames.length - 1; i >= 0; i--) { const dimName = dimNames[i]; - const dimInfo = list.getDimensionInfo(dimName); + const dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isCalculationCoord) { return dimName; } diff --git a/src/component/visualMap/visualEncoding.ts b/src/component/visualMap/visualEncoding.ts index f2a008bbbb..35b86f5007 100644 --- a/src/component/visualMap/visualEncoding.ts +++ b/src/component/visualMap/visualEncoding.ts @@ -66,10 +66,10 @@ export const visualMapEncodingHandlers: StageHandler[] = [ } as VisualMeta; const concreteDim = visualMapModel.getDataDimension(data); - const dimInfo = data.getDimensionInfo(concreteDim); - if (dimInfo != null) { + const dimIdx = data.getDimensionIndex(concreteDim); + if (dimIdx >= 0) { // visualMeta.dimension should be dimension index, but not concrete dimension. - visualMeta.dimension = dimInfo.index; + visualMeta.dimension = dimIdx; visualMetaList.push(visualMeta); } } diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index e0431a5306..f051ef8114 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -157,6 +157,7 @@ class DataStorage { private _rawCount: number = 0; private _dimensions: DataStorageDimensionDefine[]; + private _dimensionNames: string[]; private _dimValueGetter: DimValueGetter; defaultDimValueGetter: DimValueGetter; @@ -166,7 +167,7 @@ class DataStorage { */ initData( provider: DataProvider, - dimensions: DataStorageDimensionDefine[], + inputDimensions: DataStorageDimensionDefine[], dimValueGetter?: DimValueGetter ): void { if (__DEV__) { @@ -192,7 +193,7 @@ class DataStorage { // Reset raw extent. this._rawExtent = []; - this._dimensions = map(dimensions, dim => ({ + const dimensions = this._dimensions = map(inputDimensions, dim => ({ // Only pick these two props. Not leak other properties like orderMeta. type: dim.type, name: dim.name @@ -202,15 +203,15 @@ class DataStorage { let needsHasOwn = false; // Needs to add prefix if key is used in object prototype - for (let i = 0; i < dimensions.length; i++) { - const name = dimensions[i].name; + for (let i = 0; i < inputDimensions.length; i++) { + const name = inputDimensions[i].name; if ((emptyObj as any)[name] != null) { needsHasOwn = true; break; } } - for (let i = 0; i < dimensions.length; i++) { - const dim = dimensions[i]; + for (let i = 0; i < inputDimensions.length; i++) { + const dim = inputDimensions[i]; const name = dim.name; dimensionsIdxMap[name] = i; } @@ -228,7 +229,6 @@ class DataStorage { needsHasOwn = true; updateGetDimensionIndex(); } - const dimensions = this._dimensions; const idx = dimensions.length; dimensions.push({ name: dimName, @@ -255,6 +255,10 @@ class DataStorage { getDimensionIndex: (dim: DimensionName) => number; appendDimension: (dim: DimensionName, type: DataStorageDimensionType) => void; + getDimensionNames() { + return map(this._dimensions, dim => dim.name); + } + getDimensionCount() { return this._dimensions.length; } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 637123932a..2475128554 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -82,6 +82,7 @@ type MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedVa const TRANSFERABLE_PROPERTIES = [ 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', + '_dimensionsSummary', 'userOutput', '_rawData', '_dimValueGetter', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount' ]; @@ -132,7 +133,6 @@ let prepareInvertedIndex: (data: SeriesData) => void; let getId: (data: SeriesData, rawIndex: number) => string; let getIdNameFromStore: (data: SeriesData, dimIdx: number, dataIdx: number) => string; let normalizeDimensions: (dimensions: ItrParamDims) => Array; -let validateDimensions: (data: SeriesData, dims: DimensionIndex[]) => void; let transferProperties: (target: SeriesData, source: SeriesData) => void; let cloneListForMapAndSample: (original: SeriesData) => SeriesData; let makeIdFromName: (data: SeriesData, idx: number) => void; @@ -144,6 +144,12 @@ class SeriesData< readonly type = 'list'; + /** + * Name of dimensions list of SeriesData. It's be a subset of the dimensions in the DataStorage. + * When DataStorage is an extra high dimension(>30) dataset. We will only pick the used dimensions from DataStorage to avoid performance issue. + * + * So be careful of using it. + */ readonly dimensions: string[]; // Infomation of each data dimension, like data type. @@ -208,7 +214,7 @@ class SeriesData< // from modifying them to effect built-in logic. And for // performance consideration we make this `userOutput` to // avoid clone them too many times. - readonly userOutput: DimensionUserOuput; + userOutput: DimensionUserOuput; // Having detected that there is data item is non primitive type // (in type `OptionDataItemObject`). @@ -265,8 +271,6 @@ class SeriesData< dimensionNames.push(dimensionName); dimensionInfos[dimensionName] = dimensionInfo; - dimensionInfo.index = i; - if (dimensionInfo.createInvertedIndices) { invertedIndicesMap[dimensionName] = []; } @@ -282,12 +286,7 @@ class SeriesData< this._dimensionInfos = dimensionInfos; this.hostModel = hostModel; - // Cache summary info for fast visit. See "dimensionHelper". - this._dimensionsSummary = summarizeDimensions(this); - this._invertedIndicesMap = invertedIndicesMap; - - this.userOutput = this._dimensionsSummary.userOutput; } /** @@ -320,6 +319,19 @@ class SeriesData< return dim as DimensionName; } + /** + * Get dimension index in the storage. Return -1 if not found. + * Can be used to index value from getRawValue. + */ + getDimensionIndex(dim: DimensionLoose): number { + // For outer usage so it won't throw error as _getStoreDimIndex did. + return zrUtil.retrieve2(this._store.getDimensionIndex(this.getDimension(dim)), -1); + } + + getStoreDimensions() { + return this._store.getDimensionNames(); + } + private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex { const dimIdx = this._store.getDimensionIndex(this.getDimension(dim)); if (__DEV__) { @@ -420,6 +432,11 @@ class SeriesData< this._nameRepeatCount = {}; this._doInit(0, store.count()); + + // Cache summary info for fast visit. See "dimensionHelper". + // Needs to be initialized after store is prepared. + this._dimensionsSummary = summarizeDimensions(this); + this.userOutput = this._dimensionsSummary.userOutput; } /** diff --git a/src/data/SeriesDimensionDefine.ts b/src/data/SeriesDimensionDefine.ts index 5a71505f64..de10e1a60d 100644 --- a/src/data/SeriesDimensionDefine.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -60,13 +60,6 @@ class SeriesDimensionDefine { * Mandatory. */ coordDimIndex?: number; - - /** - * This index of this dimension info in `data/SeriesData#_dimensionInfos`. - * Mandatory after added to `data/SeriesData`. - */ - index?: number; - /** * The format of `otherDims` is: * ```js diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 458fc2c3cd..f5765b51ae 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -485,14 +485,8 @@ export function retrieveRawValue( } const sourceFormat = data.getStorage().getSource().sourceFormat; - let dimName; - let dimIndex; - - const dimInfo = data.getDimensionInfo(dim); - if (dimInfo) { - dimName = dimInfo.name; - dimIndex = dimInfo.index; - } + const dimName = data.getDimension(dim); + const dimIndex = dimName != null ? data.getDimensionIndex(dimName) : null; return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, dimName); } diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index aae9c2ea15..2d250e61d2 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -50,7 +50,8 @@ export function summarizeDimensions(data: SeriesData): DimensionSummary { // See the comment of `List.js#userOutput`. const userOutput = summary.userOutput = { - dimensionNames: data.dimensions.slice(), + // Full dimensions in storage. + fullDimensions: data.getStorage().getDimensionNames(), encode: {} }; @@ -79,7 +80,7 @@ export function summarizeDimensions(data: SeriesData): DimensionSummary { // User output encode do not contain generated coords. // And it only has index. User can use index to retrieve value from the raw item array. - getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index; + getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = data.getDimensionIndex(dimItem.name); } if (dimItem.defaultTooltip) { defaultedTooltip.push(dimName); diff --git a/src/model/Series.ts b/src/model/Series.ts index 98d7cf641d..2ac2b321bb 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -56,7 +56,6 @@ import { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatToo import {ECSymbol} from '../util/symbol'; import {Group} from '../util/graphic'; import {LegendIconParams} from '../component/legend/LegendModel'; -import DataStorage from '../data/DataStorage'; const inner = modelUtil.makeInner<{ data: SeriesData diff --git a/src/model/mixin/dataFormat.ts b/src/model/mixin/dataFormat.ts index 4e364537a9..3d67cec9f4 100644 --- a/src/model/mixin/dataFormat.ts +++ b/src/model/mixin/dataFormat.ts @@ -87,7 +87,7 @@ export class DataFormatMixin { value: rawValue, color: color, borderColor: borderColor, - dimensionNames: userOutput ? userOutput.dimensionNames : null, + dimensionNames: userOutput ? userOutput.fullDimensions : null, encode: userOutput ? userOutput.encode : null, // Param name list for mapping `a`, `b`, `c`, `d`, `e` @@ -156,9 +156,9 @@ export class DataFormatMixin { let val = retrieveRawValue(data, dataIndex, dimLoose) as OptionDataValue; if (extendParams && zrUtil.isArray(extendParams.interpolatedValue)) { - const dimInfo = data.getDimensionInfo(dimLoose); - if (dimInfo) { - val = extendParams.interpolatedValue[dimInfo.index]; + const dimIndex = data.getDimensionIndex(dimLoose); + if (dimIndex >= 0) { + val = extendParams.interpolatedValue[dimIndex]; } } diff --git a/src/util/types.ts b/src/util/types.ts index c2e019b9b6..e8d1cb93e3 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -698,7 +698,7 @@ export type DimensionUserOuputEncode = { }; export type DimensionUserOuput = { // The same as `data.dimensions` - dimensionNames: DimensionName[] + fullDimensions: DimensionName[] encode: DimensionUserOuputEncode }; diff --git a/test/dataset-case.html b/test/dataset-case.html index 523e4d1b05..49b0bee486 100644 --- a/test/dataset-case.html +++ b/test/dataset-case.html @@ -119,7 +119,9 @@ dataset: { source: source }, - tooltip: {}, + tooltip: { + position: 'top' + }, series: { type: 'scatter', encode: { @@ -137,6 +139,12 @@ // buttons: [{text: 'btn-txt', onclick: function () {}}], // recordCanvas: true, }); + + chart.dispatchAction({ + type: 'showTip', + dataIndex: 1, + seriesIndex: 0 + }) }); From 2bf188fca162b5192943c8569dc8070153043574 Mon Sep 17 00:00:00 2001 From: pissang Date: Wed, 4 Aug 2021 15:55:17 +0800 Subject: [PATCH 47/64] refact(data): fix unexpected code removement --- src/component/visualMap/VisualMapModel.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/component/visualMap/VisualMapModel.ts b/src/component/visualMap/VisualMapModel.ts index ebf188caa4..60c7b5910f 100644 --- a/src/component/visualMap/VisualMapModel.ts +++ b/src/component/visualMap/VisualMapModel.ts @@ -386,6 +386,10 @@ class VisualMapModel extends Com return; } + if (optDim != null) { + return data.getDimension(optDim); + } + const dimNames = data.dimensions; for (let i = dimNames.length - 1; i >= 0; i--) { const dimName = dimNames[i]; From 10aed782afdbf8f319a99b38f10407d3f7344195 Mon Sep 17 00:00:00 2001 From: sushuang Date: Wed, 11 Aug 2021 14:38:49 +0800 Subject: [PATCH 48/64] fix: fix createDimension result might container name:undefined when dimensions more than 30. --- src/data/helper/createDimensions.ts | 26 ++++++++++++++++---------- src/data/helper/sourceManager.ts | 2 +- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 06d1fbcc30..58b1cfba46 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -135,7 +135,7 @@ export default function createDimensions( const dimDefItem = isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw }; const resultItem = new SeriesDimensionDefine(); const userDimName = dimDefItem.name; - if (dataDimNameMap.get(userDimName) != null) { + if (userDimName != null && dataDimNameMap.get(userDimName) != null) { // Only if `series.dimensions` is defined in option // displayName, will be set, and dimension will be diplayed vertically in // tooltip by default. @@ -278,6 +278,13 @@ export default function createDimensions( generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0; const extra = generateCoord || 'value'; + function ifNoNameFillWithCoordName(resultItem: SeriesDimensionDefine): void { + if (resultItem.name == null) { + // Duplication will be removed in the next step. + resultItem.name = resultItem.coordDim; + } + } + // Set dim `name` and other `coordDim` and other props. if (!omitUnusedDimensions) { for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) { @@ -298,10 +305,7 @@ export default function createDimensions( generateCoordCount--; } - if (resultItem.name == null) { - // Duplication will be removed in the next step. - resultItem.name = resultItem.coordDim; - } + ifNoNameFillWithCoordName(resultItem); if (resultItem.type == null && ( @@ -331,15 +335,17 @@ export default function createDimensions( return removeDuplication(result); } else { - // Sort dimensions - const toSort = []; + // Sort dimensions: there are some rule that use the last dim as label. + const sortedResult: SeriesDimensionDefine[] = []; for (let i = 0; i < indicesMap.length; i++) { if (indicesMap[i] >= 0) { - toSort.push({ i, o: result[indicesMap[i]]}); + const resultItem = result[indicesMap[i]]; + // PENDING: guessOrdinal or let user specify type: 'ordinal' manually? + ifNoNameFillWithCoordName(resultItem); + sortedResult.push(resultItem); } } - toSort.sort((a, b) => a.i - b.i); - return removeDuplication(map(toSort, item => item.o)); + return removeDuplication(sortedResult); } } diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 2b46bc6f72..5ac046c00a 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -30,7 +30,7 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage, { DataStorageDimensionDefine, DataStorageDimensionType } from '../DataStorage'; +import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; import WeakMap from 'zrender/src/core/WeakMap'; From dffeb3a9a05e341af1ecd4f5e53715e3d9094450 Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 04:31:15 +0800 Subject: [PATCH 49/64] **There are these issues existing before this commit:** (1). If no dimensions specified on dataset, series can not really share one storage instance. (Because the each series will create its own dimension name (like ['x', 'y', 'value'], ['x', 'value', 'y'], and the storage hash is based on those names. So the hash can not match). (2). Each time `setOption` update series (but not change `dataset`), new data stack dimensions (and corresponding chunks) will be keep added to the shared data storage, and then the chunks will be more and more. (3). When "unused dimension omit" happen, the index of SeriesData['dimensions'] and SeriesData['getDimension'] is not the dimensionIndex that users known. But there are someplace still use dimensionIndex to visit them. (especially in visualMap and other similar cases that user can input dimension index via option). (4). If user only specify type but no name in dimensions, their will be some bug when "unused dimension omit" happen. (Because unused dimensions will not auto-generate dimension name by `createDimensions` and so that it has no dimension name in storage, and can not be queried by dimension name). (5). If different series option specify its own `dimensions` but share one `dataset`, the `source` get by `sourceManager` is different `source` instances in each series. Those `source` instances contain different `dimensionDefine` but reference the same data. And then a data storage created by based on s **This commit try resolve those issues by this way:** 1. Do not save the "dimName->dimIndex map" in data storage any more. Because: 1. In fact data storage do not need this map to read/write data. 2. dimNames are usually created based on each series info (like ['x', 'y', 'value'], ['x', 'value', 'y'], ...) if not specified by user. So they are different between series. But even those series have different generated dimension names, they can still share one storage, because essentially they visit the same dataset source by dimIndex. 2. Make `SeriesDimensionDefine` (that is, each item of `SeriesData['dimensionInfos']`) contain `storageDimensionIndex` to indicate its corresponding data store dimension index. And alway user `storageDimensionIndex` to visit dat storage rather than dimName. `storageDimensionIndex` is created in `createDimension`. 3. create a new structure `SeriesDimensionRequest` for each series. It contains the info generated by `createDimension` (like dimensionDefineList, whether dimension omitted, source for this series). 3.1 `sourceManager` use `seriesDimensionRequest` to find the shared storage by generate storage dimensions and hash based on the `dimCount` and `dimensionDefineList` (which are created by `createDimension` and saved in `seriesDimensionRequest`). 3.2 `dataStack` add "data stack dimensions" to `dimensionDefineList` in `seriesDimensionRequest`. 3.3 `seriesData` use `seriesDimensionRequest` to init its dimensions, and use `seriesDimensionRequest` query dimName by dimIndex from source, or query dimIndex by dimName from source for "omitted dimension". If different series option specify its own `dimensions` but share one `dataset`, the `source` get by `sourceManager` is different `source` instances in each series. Those `source` instances contain different `dimensionDefine` but reference the same "raw data". The data storage generated based on the "raw data" can be shared between series, but the `dimensionDefine` should not be shared. `SeriesDimensionRequest` encapsulate these mess and work each series to query dimension name or index. 3.4 `seriesDimensionRequest` do not create new data structure as possible as it can, but reference shared data structure (like `source` instance). So it will not cost memory issue. 4. Change the previous `storage.appendDimension` to `storage.ensureCalculationDimension` for data stack. That is, if its dimension has been created, reuse it. 5. Remove previous `canUse` method. Whether a storage can be shared by series is all determined by hash. The hash is generated in two ways: 5.1 For source format "arrayRows" (i.e., [[12, 33], [55, 99], ...]), dimension name do not need to be added to hash, because this kind of data actually visited by index. If two series have different dimension name (like 'x', 'y') for single index, they also can share the storage. 5.2 For source format "objectRows" (i.e, [{a: 12, b: 33}, {b: 55, a: 99}, ...]), property name 'a', 'b' will be added to hash, because this kind of data actually visited by property name. 5.3 And as before, dimension type, ordinal meta id, source header, series layout will also be added to hash. 6. Make `DataStorage` method immutable: `DataStorage['filterSelf']` -> `DataStorage['filter']` `DataStorage['selectRange']` **PENDING:** 1. Should deprecate `dimName = seriesData.getDimension(dimLoose)` and `series.get(dimName)` but always use `dimIdx = seriesData.getDimensionIndex(dimLoose)` and `dataStorage.get(dimIdx)` instead. For examples: ```js // Previously const val = data.get(data.getDimension(dim), dataIdx); // Now const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx); ``` `seriesData.getDimension(dimLoose)` has a feature that convert dimIdx to dimName, which is not essentially necessary (because dimIdx can be used to visit data directly), but this feature require a "dimIdx->dimName map" in `SeriesData` (why? because when some dimensions are omitted, we can not use dimIdx on `SeriesData['dimensions']` directly). 2. Radar has bug when using `series.encode`. This commit do not fix the bug but keep as it is. --- src/chart/candlestick/candlestickLayout.ts | 53 +- src/chart/custom/CustomView.ts | 12 +- src/chart/helper/createGraphFromNodeEdge.ts | 4 +- src/chart/helper/createSeriesData.ts | 48 +- src/chart/helper/createSeriesDataSimply.ts | 4 +- src/chart/line/LineView.ts | 4 +- src/chart/radar/RadarView.ts | 2 +- src/chart/themeRiver/ThemeRiverSeries.ts | 4 +- src/component/dataZoom/AxisProxy.ts | 4 +- src/component/marker/MarkAreaView.ts | 2 +- src/component/marker/markerHelper.ts | 19 +- src/component/visualMap/ContinuousModel.ts | 2 +- src/component/visualMap/ContinuousView.ts | 2 +- src/component/visualMap/PiecewiseModel.ts | 2 +- src/component/visualMap/VisualMapModel.ts | 35 +- src/component/visualMap/visualEncoding.ts | 5 +- src/coord/axisModelCreator.ts | 3 - src/data/DataStorage.ts | 272 ++++---- src/data/Graph.ts | 2 +- src/data/OrdinalMeta.ts | 4 + src/data/SeriesData.ts | 338 +++++++--- src/data/SeriesDimensionDefine.ts | 11 + src/data/Source.ts | 8 +- src/data/Tree.ts | 6 +- src/data/helper/SeriesDimensionRequest.ts | 267 ++++++++ src/data/helper/createDimensions.ts | 118 ++-- src/data/helper/dataProvider.ts | 13 +- src/data/helper/dataStackHelper.ts | 78 ++- src/data/helper/dimensionHelper.ts | 73 ++- src/data/helper/sourceManager.ts | 90 +-- src/export/api/helper.ts | 2 +- src/layout/barGrid.ts | 25 +- src/layout/points.ts | 7 +- src/model/mixin/dataFormat.ts | 17 +- src/processor/dataStack.ts | 21 +- src/util/model.ts | 2 +- src/util/types.ts | 11 +- src/visual/visualSolution.ts | 10 +- test/dataset-case.html | 678 ++++++++++++++++++-- test/dataset-performance.html | 12 + test/lib/testHelper.js | 4 + test/runTest/actions/__meta__.json | 1 + test/runTest/actions/dataset-case.json | 1 + test/ut/spec/data/SeriesData.test.ts | 41 +- test/ut/spec/data/createDimensions.test.ts | 194 ++++-- 45 files changed, 1822 insertions(+), 689 deletions(-) create mode 100644 src/data/helper/SeriesDimensionRequest.ts create mode 100644 test/runTest/actions/dataset-case.json diff --git a/src/chart/candlestick/candlestickLayout.ts b/src/chart/candlestick/candlestickLayout.ts index ae9db886e5..f38eb6fc35 100644 --- a/src/chart/candlestick/candlestickLayout.ts +++ b/src/chart/candlestick/candlestickLayout.ts @@ -22,11 +22,12 @@ import {subPixelOptimize} from '../../util/graphic'; import createRenderPlanner from '../helper/createRenderPlanner'; import {parsePercent} from '../../util/number'; -import {retrieve2} from 'zrender/src/core/util'; -import { StageHandler, StageHandlerProgressParams } from '../../util/types'; +import {map, retrieve2} from 'zrender/src/core/util'; +import { DimensionIndex, StageHandler, StageHandlerProgressParams } from '../../util/types'; import CandlestickSeriesModel from './CandlestickSeries'; import SeriesData from '../../data/SeriesData'; import { RectLike } from 'zrender/src/core/BoundingRect'; +import DataStorage from '../../data/DataStorage'; const LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array; @@ -56,12 +57,12 @@ const candlestickLayout: StageHandler = { const cDimIdx = 0; const vDimIdx = 1; const coordDims = ['x', 'y']; - const cDim = data.mapDimension(coordDims[cDimIdx]); - const vDims = data.mapDimensionsAll(coordDims[vDimIdx]); - const openDim = vDims[0]; - const closeDim = vDims[1]; - const lowestDim = vDims[2]; - const highestDim = vDims[3]; + const cDimI = data.getDimensionIndex(data.mapDimension(coordDims[cDimIdx])); + const vDimsI = map(data.mapDimensionsAll(coordDims[vDimIdx]), data.getDimensionIndex, data); + const openDimI = vDimsI[0]; + const closeDimI = vDimsI[1]; + const lowestDimI = vDimsI[2]; + const highestDimI = vDimsI[3]; data.setLayout({ candleWidth: candleWidth, @@ -69,7 +70,7 @@ const candlestickLayout: StageHandler = { isSimpleBox: candleWidth <= 1.3 } as CandlestickLayoutMeta); - if (cDim == null || vDims.length < 4) { + if (cDimI < 0 || vDimsI.length < 4) { return; } @@ -80,13 +81,14 @@ const candlestickLayout: StageHandler = { function normalProgress(params: StageHandlerProgressParams, data: SeriesData) { let dataIndex; + const storage = data.getStorage(); while ((dataIndex = params.next()) != null) { - const axisDimVal = data.get(cDim, dataIndex) as number; - const openVal = data.get(openDim, dataIndex) as number; - const closeVal = data.get(closeDim, dataIndex) as number; - const lowestVal = data.get(lowestDim, dataIndex) as number; - const highestVal = data.get(highestDim, dataIndex) as number; + const axisDimVal = storage.get(cDimI, dataIndex) as number; + const openVal = storage.get(openDimI, dataIndex) as number; + const closeVal = storage.get(closeDimI, dataIndex) as number; + const lowestVal = storage.get(lowestDimI, dataIndex) as number; + const highestVal = storage.get(highestDimI, dataIndex) as number; const ocLow = Math.min(openVal, closeVal); const ocHigh = Math.max(openVal, closeVal); @@ -108,7 +110,7 @@ const candlestickLayout: StageHandler = { ); data.setItemLayout(dataIndex, { - sign: getSign(data, dataIndex, openVal, closeVal, closeDim), + sign: getSign(storage, dataIndex, openVal, closeVal, closeDimI), initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], // open point. ends: ends, @@ -170,13 +172,14 @@ const candlestickLayout: StageHandler = { const tmpIn: number[] = []; const tmpOut: number[] = []; let dataIndex; + const storage = data.getStorage(); while ((dataIndex = params.next()) != null) { - const axisDimVal = data.get(cDim, dataIndex) as number; - const openVal = data.get(openDim, dataIndex) as number; - const closeVal = data.get(closeDim, dataIndex) as number; - const lowestVal = data.get(lowestDim, dataIndex) as number; - const highestVal = data.get(highestDim, dataIndex) as number; + const axisDimVal = storage.get(cDimI, dataIndex) as number; + const openVal = storage.get(openDimI, dataIndex) as number; + const closeVal = storage.get(closeDimI, dataIndex) as number; + const lowestVal = storage.get(lowestDimI, dataIndex) as number; + const highestVal = storage.get(highestDimI, dataIndex) as number; if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) { points[offset++] = NaN; @@ -184,7 +187,7 @@ const candlestickLayout: StageHandler = { continue; } - points[offset++] = getSign(data, dataIndex, openVal, closeVal, closeDim); + points[offset++] = getSign(storage, dataIndex, openVal, closeVal, closeDimI); tmpIn[cDimIdx] = axisDimVal; @@ -202,8 +205,10 @@ const candlestickLayout: StageHandler = { } }; -function getSign(data: SeriesData, dataIndex: number, openVal: number, closeVal: number, closeDim: string) { - let sign; +function getSign( + storage: DataStorage, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex +): -1 | 1 { + let sign: -1 | 1; if (openVal > closeVal) { sign = -1; } @@ -213,7 +218,7 @@ function getSign(data: SeriesData, dataIndex: number, openVal: number, closeVal: else { sign = dataIndex > 0 // If close === open, compare with close of last record - ? (data.get(closeDim, dataIndex - 1) <= closeVal ? 1 : -1) + ? (storage.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1) // No record of previous, set to be positive : 1; } diff --git a/src/chart/custom/CustomView.ts b/src/chart/custom/CustomView.ts index 0d14ee76e7..04b184a7bb 100644 --- a/src/chart/custom/CustomView.ts +++ b/src/chart/custom/CustomView.ts @@ -943,7 +943,7 @@ function makeRenderItem( */ function value(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue { dataIndexInside == null && (dataIndexInside = currDataIndexInside); - return data.get(data.getDimension(dim || 0), dataIndexInside); + return data.getStorage().get(data.getDimensionIndex(dim || 0), dataIndexInside); } /** @@ -953,9 +953,11 @@ function makeRenderItem( */ function ordinalRawValue(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue { dataIndexInside == null && (dataIndexInside = currDataIndexInside); - const dimInfo = data.getDimensionInfo(dim || 0); + dim = dim || 0; + const dimInfo = data.getDimensionInfo(dim); if (!dimInfo) { - return; + const dimIndex = data.getDimensionIndex(dim); + return dimIndex >= 0 ? data.getStorage().get(dimIndex, dataIndexInside) : undefined; } const val = data.get(dimInfo.name, dataIndexInside); const ordinalMeta = dimInfo && dimInfo.ordinalMeta; @@ -1131,12 +1133,12 @@ function makeRenderItem( function wrapEncodeDef(data: SeriesData): WrapEncodeDefRet { const encodeDef = {} as WrapEncodeDefRet; - each(data.dimensions, function (dimName, dataDimIndex) { + each(data.dimensions, function (dimName) { const dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isExtraCoord) { const coordDim = dimInfo.coordDim; const dataDims = encodeDef[coordDim] = encodeDef[coordDim] || []; - dataDims[dimInfo.coordDimIndex] = dataDimIndex; + dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName); } }); return encodeDef; diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index f9b0c2fa1b..7bf8554a09 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -83,11 +83,11 @@ export default function createGraphFromNodeEdge( coordDimensions.concat(['value']); } - const dimensionNames = createDimensions(nodes, { + const { dimensionList } = createDimensions(nodes, { coordDimensions: coordDimensions, encodeDefine: seriesModel.getEncode() }); - nodeData = new SeriesData(dimensionNames, seriesModel); + nodeData = new SeriesData(dimensionList, seriesModel); nodeData.initData(nodes); } diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index e291844242..4218fd7e59 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; -import createDimensions, { getDimCount } from '../../data/helper/createDimensions'; +import createDimensions from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; @@ -102,6 +102,10 @@ function injectOrdinalMeta( return firstCategoryDimIndex; } +/** + * Caution: there are side effects to `sourceManager` in this method. + * Should better only be called in `Series['getInitialData']`. + */ function createSeriesData( sourceRaw: OptionSourceData | null | undefined, seriesModel: SeriesModel, @@ -130,34 +134,28 @@ function createSeriesData( const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo); const useEncodeDefaulter = opt.useEncodeDefaulter; - // Try to ignore unsed dimensions if sharing a high dimension datastorage - // 30 is an experience value. - const omitUnusedDimensions = !isOriginalSource && source.dimensionsDefine && source.dimensionsDefine.length > 30; - const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null; - const createDimensionOptions = { coordDimensions: coordSysDimDefs, generateCoord: opt.generateCoord, - encodeDefine: seriesModel.getEncode() - // NOTE: If we call createDimensions on same source multiple times. - // It will break the encodeDefaulter which has sideeffects. - // So we prepare the default encode here instead of passing encoderDefaulter function. - || (encodeDefaulter && encodeDefaulter( - source, getDimCount(source, coordSysDimDefs, source.dimensionsDefine || []) - )), - omitUnusedDimensions + encodeDefine: seriesModel.getEncode(), + encodeDefaulter: encodeDefaulter, + canOmitUnusedDimensions: !isOriginalSource }; - const dimInfoList = createDimensions(source, createDimensionOptions); - const firstCategoryDimIndex = injectOrdinalMeta(dimInfoList, opt.createInvertedIndices, coordSysInfo); + const dimensionRequest = createDimensions(source, createDimensionOptions); + const firstCategoryDimIndex = injectOrdinalMeta( + dimensionRequest.dimensionList, opt.createInvertedIndices, coordSysInfo + ); + + const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(dimensionRequest) : null; - const stackCalculationInfo = enableDataStack(seriesModel, dimInfoList); + const stackCalculationInfo = enableDataStack(seriesModel, { dimensionRequest, storage }); - const data = new SeriesData(dimInfoList, seriesModel); + const data = new SeriesData(dimensionRequest, seriesModel); data.setCalculationInfo(stackCalculationInfo); const dimValueGetter = @@ -170,20 +168,14 @@ function createSeriesData( : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex); } : null; - let storage; - if (!isOriginalSource) { - storage = sourceManager.getSharedDataStorage(dimInfoList); - if (stackCalculationInfo.stackedOverDimension) { - storage.appendDimension(stackCalculationInfo.stackedOverDimension, 'float'); - storage.appendDimension(stackCalculationInfo.stackResultDimension, 'float'); - } - } data.hasItemOption = false; data.initData( // Try to reuse the data storage in sourceManager if using dataset. - isOriginalSource ? source : storage - , null, dimValueGetter); + isOriginalSource ? source : storage, + null, + dimValueGetter + ); return data; } diff --git a/src/chart/helper/createSeriesDataSimply.ts b/src/chart/helper/createSeriesDataSimply.ts index f84bb21548..b69315ae3d 100644 --- a/src/chart/helper/createSeriesDataSimply.ts +++ b/src/chart/helper/createSeriesDataSimply.ts @@ -45,9 +45,9 @@ export default function createSeriesDataSimply( const source = seriesModel.getSource(); - const dimensionsInfo = createDimensions(source, opt as CreateDimensionsParams); + const { dimensionList } = createDimensions(source, opt as CreateDimensionsParams); - const list = new SeriesData(dimensionsInfo, seriesModel); + const list = new SeriesData(dimensionList, seriesModel); list.initData(source, nameList); return list; diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index 6f6423036b..9cabed1302 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -212,9 +212,7 @@ function getVisualGradient( let visualMeta; for (let i = visualMetaList.length - 1; i >= 0; i--) { - const dimIndex = visualMetaList[i].dimension; - const dimName = data.dimensions[dimIndex]; - const dimInfo = data.getDimensionInfo(dimName); + const dimInfo = data.getDimensionInfo(visualMetaList[i].dimension); coordDim = (dimInfo && dimInfo.coordDim) as 'x' | 'y'; // Can only be x or y if (coordDim === 'x' || coordDim === 'y') { diff --git a/src/chart/radar/RadarView.ts b/src/chart/radar/RadarView.ts index 4eec08a282..bcde8293fa 100644 --- a/src/chart/radar/RadarView.ts +++ b/src/chart/radar/RadarView.ts @@ -243,7 +243,7 @@ class RadarView extends ChartView { const pathEmphasisState = symbolPath.ensureState('emphasis'); pathEmphasisState.style = zrUtil.clone(itemHoverStyle); - let defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx); + let defaultText = data.getStorage().get(data.getDimensionIndex(symbolPath.__dimIdx), idx); (defaultText == null || isNaN(defaultText as number)) && (defaultText = ''); setLabelStyle( diff --git a/src/chart/themeRiver/ThemeRiverSeries.ts b/src/chart/themeRiver/ThemeRiverSeries.ts index 8f1b4c2d87..a64fe64c54 100644 --- a/src/chart/themeRiver/ThemeRiverSeries.ts +++ b/src/chart/themeRiver/ThemeRiverSeries.ts @@ -177,7 +177,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } } - const dimensionsInfo = createDimensions(data, { + const { dimensionList } = createDimensions(data, { coordDimensions: ['single'], dimensionsDefine: [ { @@ -200,7 +200,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } }); - const list = new SeriesData(dimensionsInfo, this); + const list = new SeriesData(dimensionList, this); list.initData(data); return list; diff --git a/src/component/dataZoom/AxisProxy.ts b/src/component/dataZoom/AxisProxy.ts index 7b6fa43034..44400e4154 100644 --- a/src/component/dataZoom/AxisProxy.ts +++ b/src/component/dataZoom/AxisProxy.ts @@ -301,12 +301,14 @@ class AxisProxy { } if (filterMode === 'weakFilter') { + const storage = seriesData.getStorage(); + const dataDimIndices = zrUtil.map(dataDims, dim => seriesData.getDimensionIndex(dim), seriesData); seriesData.filterSelf(function (dataIndex) { let leftOut; let rightOut; let hasValue; for (let i = 0; i < dataDims.length; i++) { - const value = seriesData.get(dataDims[i], dataIndex) as number; + const value = storage.get(dataDimIndices[i], dataIndex) as number; const thisHasValue = !isNaN(value); const thisLeftOut = value < valueWindow[0]; const thisRightOut = value > valueWindow[1]; diff --git a/src/component/marker/MarkAreaView.ts b/src/component/marker/MarkAreaView.ts index 73bc406e6e..e23403cbfe 100644 --- a/src/component/marker/MarkAreaView.ts +++ b/src/component/marker/MarkAreaView.ts @@ -26,7 +26,7 @@ import * as graphic from '../../util/graphic'; import { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states'; import * as markerHelper from './markerHelper'; import MarkerView from './MarkerView'; -import { retrieve, mergeAll, map, defaults, curry, filter, HashMap, extend } from 'zrender/src/core/util'; +import { retrieve, mergeAll, map, curry, filter, HashMap, extend } from 'zrender/src/core/util'; import { ScaleDataValue, ParsedValue, ZRColor } from '../../util/types'; import { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem'; import MarkAreaModel, { MarkArea2DDataItemOption } from './MarkAreaModel'; diff --git a/src/component/marker/markerHelper.ts b/src/component/marker/markerHelper.ts index d08a0ac6cb..0987473a59 100644 --- a/src/component/marker/markerHelper.ts +++ b/src/component/marker/markerHelper.ts @@ -25,13 +25,13 @@ import { MarkerStatisticType, MarkerPositionOption } from './MarkerModel'; import { indexOf, curry, clone, isArray } from 'zrender/src/core/util'; import Axis from '../../coord/Axis'; import { CoordinateSystem } from '../../coord/CoordinateSystem'; -import { ScaleDataValue, ParsedValue } from '../../util/types'; +import { ScaleDataValue, ParsedValue, DimensionLoose, DimensionName } from '../../util/types'; interface MarkerAxisInfo { - valueDataDim: string + valueDataDim: DimensionName valueAxis: Axis baseAxis: Axis - baseDataDim: string + baseDataDim: DimensionName } function hasXOrY(item: MarkerPositionOption) { @@ -166,16 +166,9 @@ export function getAxisInfo( return ret; } -function dataDimToCoordDim(seriesModel: SeriesModel, dataDim: string) { - const data = seriesModel.getData(); - const dimensions = data.dimensions; - dataDim = data.getDimension(dataDim); - for (let i = 0; i < dimensions.length; i++) { - const dimItem = data.getDimensionInfo(dimensions[i]); - if (dimItem.name === dataDim) { - return dimItem.coordDim; - } - } +function dataDimToCoordDim(seriesModel: SeriesModel, dataDim: DimensionLoose): DimensionName { + const dimItem = seriesModel.getData().getDimensionInfo(dataDim); + return dimItem && dimItem.coordDim; } /** diff --git a/src/component/visualMap/ContinuousModel.ts b/src/component/visualMap/ContinuousModel.ts index c43e2dd905..ef62a7ca55 100644 --- a/src/component/visualMap/ContinuousModel.ts +++ b/src/component/visualMap/ContinuousModel.ts @@ -203,7 +203,7 @@ class ContinuousModel extends VisualMapModel { const dataIndices: number[] = []; const data = seriesModel.getData(); - data.each(this.getDataDimension(data), function (value, dataIndex) { + data.each(this.getDataDimensionIndex(data), function (value, dataIndex) { range[0] <= value && value <= range[1] && dataIndices.push(dataIndex); }, this); diff --git a/src/component/visualMap/ContinuousView.ts b/src/component/visualMap/ContinuousView.ts index e15a74cd6b..eed19f0d06 100644 --- a/src/component/visualMap/ContinuousView.ts +++ b/src/component/visualMap/ContinuousView.ts @@ -832,7 +832,7 @@ class ContinuousView extends VisualMapView { } const data = dataModel.getData(ecData.dataType); - const value = data.get(visualMapModel.getDataDimension(data), ecData.dataIndex) as number; + const value = data.getStorage().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex) as number; if (!isNaN(value)) { this._showIndicator(value, value); diff --git a/src/component/visualMap/PiecewiseModel.ts b/src/component/visualMap/PiecewiseModel.ts index 520c7094ae..3800d2b72d 100644 --- a/src/component/visualMap/PiecewiseModel.ts +++ b/src/component/visualMap/PiecewiseModel.ts @@ -316,7 +316,7 @@ class PiecewiseModel extends VisualMapModel { const dataIndices: number[] = []; const data = seriesModel.getData(); - data.each(this.getDataDimension(data), function (value: number, dataIndex: number) { + data.each(this.getDataDimensionIndex(data), function (value: number, dataIndex: number) { // Should always base on model pieceList, because it is order sensitive. const pIdx = VisualMapping.findPieceIndex(value, pieceList); pIdx === pieceIndex && dataIndices.push(dataIndex); diff --git a/src/component/visualMap/VisualMapModel.ts b/src/component/visualMap/VisualMapModel.ts index 60c7b5910f..59a412dc7e 100644 --- a/src/component/visualMap/VisualMapModel.ts +++ b/src/component/visualMap/VisualMapModel.ts @@ -32,7 +32,8 @@ import { ZRColor, BorderOptionMixin, OptionDataValue, - BuiltinVisualProperty + BuiltinVisualProperty, + DimensionIndex } from '../../util/types'; import ComponentModel from '../../model/Component'; import Model from '../../model/Model'; @@ -156,7 +157,7 @@ export interface VisualMeta { stops: { value: number, color: ColorString}[] outerColors: ColorString[] - dimension?: number + dimension?: DimensionIndex } class VisualMapModel extends ComponentModel { @@ -377,17 +378,33 @@ class VisualMapModel extends Com } /** + * PENDING: + * delete this method if no outer usage. + * * Return Concrete dimention. If return null/undefined, no dimension used. */ - getDataDimension(data: SeriesData) { + // getDataDimension(data: SeriesData) { + // const optDim = this.option.dimension; + + // if (optDim != null) { + // return data.getDimension(optDim); + // } + + // const dimNames = data.dimensions; + // for (let i = dimNames.length - 1; i >= 0; i--) { + // const dimName = dimNames[i]; + // const dimInfo = data.getDimensionInfo(dimName); + // if (!dimInfo.isCalculationCoord) { + // return dimName; + // } + // } + // } + + getDataDimensionIndex(data: SeriesData): DimensionIndex { const optDim = this.option.dimension; - const allDimensions = data.getStoreDimensions(); - if (optDim == null && !allDimensions.length) { - return; - } if (optDim != null) { - return data.getDimension(optDim); + return data.getDimensionIndex(optDim); } const dimNames = data.dimensions; @@ -395,7 +412,7 @@ class VisualMapModel extends Com const dimName = dimNames[i]; const dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isCalculationCoord) { - return dimName; + return dimInfo.storageDimensionIndex; } } } diff --git a/src/component/visualMap/visualEncoding.ts b/src/component/visualMap/visualEncoding.ts index 35b86f5007..6f090b3694 100644 --- a/src/component/visualMap/visualEncoding.ts +++ b/src/component/visualMap/visualEncoding.ts @@ -42,7 +42,7 @@ export const visualMapEncodingHandlers: StageHandler[] = [ visualMapModel.stateList, visualMapModel.targetVisuals, zrUtil.bind(visualMapModel.getValueState, visualMapModel), - visualMapModel.getDataDimension(seriesModel.getData()) + visualMapModel.getDataDimensionIndex(seriesModel.getData()) )); }); @@ -65,8 +65,7 @@ export const visualMapEncodingHandlers: StageHandler[] = [ outerColors: [] } as VisualMeta; - const concreteDim = visualMapModel.getDataDimension(data); - const dimIdx = data.getDimensionIndex(concreteDim); + const dimIdx = visualMapModel.getDataDimensionIndex(data); if (dimIdx >= 0) { // visualMeta.dimension should be dimension index, but not concrete dimension. visualMeta.dimension = dimIdx; diff --git a/src/coord/axisModelCreator.ts b/src/coord/axisModelCreator.ts index e525f76f26..5d275ee459 100644 --- a/src/coord/axisModelCreator.ts +++ b/src/coord/axisModelCreator.ts @@ -69,9 +69,6 @@ export default function axisModelCreator< private __ordinalMeta: OrdinalMeta; - constructor(...args: any[]) { - super(...args); - } mergeDefaultAndTheme(option: AxisOptionT, ecModel: GlobalModel): void { const layoutMode = fetchLayoutMode(this); diff --git a/src/data/DataStorage.ts b/src/data/DataStorage.ts index f051ef8114..b32c61bc3e 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStorage.ts @@ -17,9 +17,8 @@ * under the License. */ -import { assert, clone, isFunction, keys, map, reduce } from 'zrender/src/core/util'; +import { assert, clone, createHashMap, isFunction, keys, map, reduce } from 'zrender/src/core/util'; import { - Dictionary, DimensionIndex, DimensionName, OptionDataItem, @@ -69,20 +68,34 @@ type EachCb = (...args: any) => void; type FilterCb0 = (idx: number) => boolean; type FilterCb1 = (x: ParsedValue, idx: number) => boolean; type FilterCb = (...args: any) => boolean; -type MapArrayCb = (...args: any) => any; +// type MapArrayCb = (...args: any) => any; type MapCb = (...args: any) => ParsedValue | ParsedValue[]; export type DimValueGetter = ( this: DataStorage, dataItem: any, - dimName: string, + property: string, dataIndex: number, dimIndex: DimensionIndex ) => ParsedValue; export interface DataStorageDimensionDefine { - type?: DataStorageDimensionType; // Default to be float. - name?: string; + /** + * Default to be float. + */ + type?: DataStorageDimensionType; + + /** + * Only used in SOURCE_FORMAT_OBJECT_ROWS and SOURCE_FORMAT_KEYED_COLUMNS to retrieve value + * by "object property". + * For example, in `[{bb: 124, aa: 543}, ...]`, "aa" and "bb" is "object property". + * + * Deliberately name it as "property" rather than "name" to prevent it from been used in + * SOURCE_FORMAT_ARRAY_ROWS, becuase if it comes from series, it probably + * can not be shared by different series. + */ + property?: string; + /** * When using category axis. * Category strings will be collected and stored in ordinalMeta.categories. @@ -139,6 +152,10 @@ function prepareStorage( storage[dimIdx] = new DataCtor(end); } }; + +/** + * Basically, DataStorage API keep immutable. + */ class DataStorage { private _chunks: DataValueChunk[] = []; @@ -157,9 +174,10 @@ class DataStorage { private _rawCount: number = 0; private _dimensions: DataStorageDimensionDefine[]; - private _dimensionNames: string[]; private _dimValueGetter: DimValueGetter; + private _calcDimNameToIdx = createHashMap(); + defaultDimValueGetter: DimValueGetter; /** * Initialize from data @@ -189,57 +207,13 @@ class DataStorage { // Default dim value getter this._dimValueGetter = dimValueGetter || defaultGetter; - const emptyObj = {}; - // Reset raw extent. this._rawExtent = []; - const dimensions = this._dimensions = map(inputDimensions, dim => ({ + this._dimensions = map(inputDimensions, dim => ({ // Only pick these two props. Not leak other properties like orderMeta. type: dim.type, - name: dim.name - }) as DataStorageDimensionDefine); - - const dimensionsIdxMap: Dictionary = {}; - let needsHasOwn = false; - - // Needs to add prefix if key is used in object prototype - for (let i = 0; i < inputDimensions.length; i++) { - const name = inputDimensions[i].name; - if ((emptyObj as any)[name] != null) { - needsHasOwn = true; - break; - } - } - for (let i = 0; i < inputDimensions.length; i++) { - const dim = inputDimensions[i]; - const name = dim.name; - dimensionsIdxMap[name] = i; - } - // We use different functions because it may be a hotspot code. - const updateGetDimensionIndex = () => { - this.getDimensionIndex = needsHasOwn ? function (dim) { - return dimensionsIdxMap.hasOwnProperty(dim) ? dimensionsIdxMap[dim] : undefined; - } : function (dim) { - return dimensionsIdxMap[dim]; - }; - }; - - this.appendDimension = (dimName, dimType) => { - if (!needsHasOwn && (emptyObj as any)[dimName] != null) { - needsHasOwn = true; - updateGetDimensionIndex(); - } - const idx = dimensions.length; - dimensions.push({ - name: dimName, - type: dimType - }); - this._chunks.push(new dataCtors[dimType || 'float'](this._rawCount)); - this._rawExtent.push(getInitialExtent()); - dimensionsIdxMap[dimName] = idx; - }; - - updateGetDimensionIndex(); + property: dim.property + })); this._initDataFromProvider(0, provider.count()); } @@ -248,25 +222,47 @@ class DataStorage { return this._provider; } + /** + * Caution: even when a `source` instance owned by a series, the created data storage + * may still be shared by different sereis (the source hash does not use all `source` + * props, see `sourceManager`). In this case, the `source` props that are not used in + * hash (like `source.dimensionDefine`) probably only belongs to a certain series and + * thus should not be fetch here. + */ getSource(): Source { return this._provider.getSource(); } - getDimensionIndex: (dim: DimensionName) => number; - appendDimension: (dim: DimensionName, type: DataStorageDimensionType) => void; + /** + * @caution Only used in dataStack. + */ + ensureCalculationDimension(dimName: DimensionName, type: DataStorageDimensionType): DimensionIndex { + const calcDimNameToIdx = this._calcDimNameToIdx; + const dimensions = this._dimensions; - getDimensionNames() { - return map(this._dimensions, dim => dim.name); - } + let calcDimIdx = calcDimNameToIdx.get(dimName); + if (calcDimIdx != null) { + if (dimensions[calcDimIdx].type === type) { + return calcDimIdx; + } + } + else { + calcDimIdx = dimensions.length; + } + + dimensions[calcDimIdx] = { type: type }; + calcDimNameToIdx.set(dimName, calcDimIdx); + + this._chunks[calcDimIdx] = new dataCtors[type || 'float'](this._rawCount); + this._rawExtent[calcDimIdx] = getInitialExtent(); - getDimensionCount() { - return this._dimensions.length; + return calcDimIdx; } collectOrdinalMeta( dimIdx: number, ordinalMeta: OrdinalMeta - ) { + ): void { const chunk = this._chunks[dimIdx]; const dim = this._dimensions[dimIdx]; const rawExtents = this._rawExtent; @@ -294,36 +290,21 @@ class DataStorage { dim.type = 'ordinal'; // Force to be ordinal } - getOrdinalMeta(dimIdx: number) { + getOrdinalMeta(dimIdx: number): OrdinalMeta { const dimInfo = this._dimensions[dimIdx]; const ordinalMeta = dimInfo.ordinalMeta; return ordinalMeta; } - /** - * Check if SeriesData can use this DataStorage. - */ - canUse(targetDims: DataStorageDimensionDefine[]) { - for (let i = 0; i < targetDims.length; i++) { - const targetDim = targetDims[i]; - const selfDimIdx = this.getDimensionIndex(targetDim.name); - const selfDim = this._dimensions[selfDimIdx]; - if ( - !selfDim - || (selfDim.type || 'float') !== (targetDim.type || 'float') - // ordinalMeta is different. Usually being on the different axis. - || (selfDim.ordinalMeta && selfDim.ordinalMeta !== targetDim.ordinalMeta) - ) { - return false; - } - } - return true; + getDimensionProperty(dimIndex: DimensionIndex): DataStorageDimensionDefine['property'] { + const item = this._dimensions[dimIndex]; + return item && item.property; } /** * Caution: Can be only called on raw data (before `this._indices` created). */ - appendData(data: ArrayLike) { + appendData(data: ArrayLike): number[] { if (__DEV__) { assert(!this._indices, 'appendData can only be called on raw data.'); } @@ -343,7 +324,7 @@ class DataStorage { return [start, end]; } - appendValues(values: any[][], minFillLen?: number) { + appendValues(values: any[][], minFillLen?: number): { start: number; end: number } { const storage = this._chunks; const dimensions = this._dimensions; const dimLen = dimensions.length; @@ -364,7 +345,7 @@ class DataStorage { for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) { const dim = dimensions[dimIdx]; const val = defaultDimValueGetters.arrayRows.call( - this, values[sourceIdx] || emptyDataItem, dim.name, sourceIdx, dimIdx + this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx ) as ParsedValueNumeric; (storage[dimIdx] as any)[idx] = val; @@ -374,7 +355,7 @@ class DataStorage { } } - this._count = end; + this._rawCount = this._count = end; return {start, end}; } @@ -389,7 +370,7 @@ class DataStorage { const dimensions = this._dimensions; const dimLen = dimensions.length; const rawExtent = this._rawExtent; - const dimNames = map(dimensions, dim => dim.name); + const dimNames = map(dimensions, dim => dim.property); for (let i = 0; i < dimLen; i++) { const dim = dimensions[i]; @@ -448,7 +429,7 @@ class DataStorage { /** * Get value. Return NaN if idx is out of range. */ - get(dim: number, idx: number): ParsedValue { + get(dim: DimensionIndex, idx: number): ParsedValue { if (!(idx >= 0 && idx < this._count)) { return NaN; } @@ -484,7 +465,7 @@ class DataStorage { /** * @param dim concrete dim */ - getByRawIndex(dim: number, rawIdx: number): ParsedValue { + getByRawIndex(dim: DimensionIndex, rawIdx: number): ParsedValue { if (!(rawIdx >= 0 && rawIdx < this._rawCount)) { return NaN; } @@ -538,7 +519,7 @@ class DataStorage { /** * Retreive the index with given raw data index */ - indexOfRawIndex(rawIndex: number): number { + indexOfRawIndex(rawIndex: number): number { if (rawIndex >= this._rawCount || rawIndex < 0) { return -1; } @@ -662,29 +643,31 @@ class DataStorage { } /** - * Data filter + * Data filter. */ - filterSelf( + filter( dims: DimensionIndex[], cb: FilterCb - ) { + ): DataStorage { if (!this._count) { - return; + return this; } - const count = this.count(); - const Ctor = getIndicesCtor(this._rawCount); + const newStore = this.clone(); + + const count = newStore.count(); + const Ctor = getIndicesCtor(newStore._rawCount); const newIndices = new Ctor(count); const value = []; const dimSize = dims.length; let offset = 0; const dim0 = dims[0]; - const chunks = this._chunks; + const chunks = newStore._chunks; for (let i = 0; i < count; i++) { let keep; - const rawIdx = this.getRawIndex(i); + const rawIdx = newStore.getRawIndex(i); // Simple optimization if (dimSize === 0) { keep = (cb as FilterCb0)(i); @@ -708,22 +691,25 @@ class DataStorage { // Set indices after filtered. if (offset < count) { - this._indices = newIndices; + newStore._indices = newIndices; } - this._count = offset; + newStore._count = offset; // Reset data extent - this._extent = []; + newStore._extent = []; - this._updateGetRawIdx(); + newStore._updateGetRawIdx(); + + return newStore; } /** * Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.) */ - selectRange(range: {[dimIdx: number]: [number, number]}) { + selectRange(range: {[dimIdx: number]: [number, number]}): DataStorage { + const newStore = this.clone(); - const len = this._count; + const len = newStore._count; if (!len) { return; @@ -735,8 +721,8 @@ class DataStorage { return; } - const originalCount = this.count(); - const Ctor = getIndicesCtor(this._rawCount); + const originalCount = newStore.count(); + const Ctor = getIndicesCtor(newStore._rawCount); const newIndices = new Ctor(originalCount); let offset = 0; @@ -744,10 +730,10 @@ class DataStorage { const min = range[dim0][0]; const max = range[dim0][1]; - const storeArr = this._chunks; + const storeArr = newStore._chunks; let quickFinished = false; - if (!this._indices) { + if (!newStore._indices) { // Extreme optimization for common case. About 2x faster in chrome. let idx = 0; if (dimSize === 1) { @@ -794,7 +780,7 @@ class DataStorage { if (!quickFinished) { if (dimSize === 1) { for (let i = 0; i < originalCount; i++) { - const rawIndex = this.getRawIndex(i); + const rawIndex = newStore.getRawIndex(i); const val = storeArr[dims[0]][rawIndex]; // Do not filter NaN, see comment above. if ( @@ -807,7 +793,7 @@ class DataStorage { else { for (let i = 0; i < originalCount; i++) { let keep = true; - const rawIndex = this.getRawIndex(i); + const rawIndex = newStore.getRawIndex(i); for (let k = 0; k < dimSize; k++) { const dimk = dims[k]; const val = storeArr[dimk][rawIndex]; @@ -817,7 +803,7 @@ class DataStorage { } } if (keep) { - newIndices[offset++] = this.getRawIndex(i); + newIndices[offset++] = newStore.getRawIndex(i); } } } @@ -825,27 +811,28 @@ class DataStorage { // Set indices after filtered. if (offset < originalCount) { - this._indices = newIndices; + newStore._indices = newIndices; } - this._count = offset; + newStore._count = offset; // Reset data extent - this._extent = []; + newStore._extent = []; - this._updateGetRawIdx(); - } + newStore._updateGetRawIdx(); - /** - * Data mapping to a plain array - */ - /* eslint-enable */ - mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { - const result: any[] = []; - this.each(dims, function () { - result.push(cb && (cb as MapArrayCb).apply(null, arguments)); - }); - return result; + return newStore; } + // /** + // * Data mapping to a plain array + // */ + // mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] { + // const result: any[] = []; + // this.each(dims, function () { + // result.push(cb && (cb as MapArrayCb).apply(null, arguments)); + // }); + // return result; + // } + /** * Data mapping to a new List with given dimensions */ @@ -857,13 +844,13 @@ class DataStorage { } /** - * Danger only can be used in SeriesData. + * @caution Danger!! Only used in dataStack. */ modify(dims: DimensionIndex[], cb: MapCb) { this._updateDims(this, dims, cb); } - _updateDims( + private _updateDims( target: DataStorage, dims: DimensionIndex[], cb: MapCb @@ -925,7 +912,7 @@ class DataStorage { lttbDownSample( valueDimension: DimensionIndex, rate: number - ) { + ): DataStorage { const target = this.clone([valueDimension], true); const targetStorage = target._chunks; const dimStore = targetStorage[valueDimension]; @@ -1177,22 +1164,22 @@ class DataStorage { } /** + * Clone shallow. * * @param clonedDims Determine which dims to clone. Will share the data if not specified. */ - clone(clonedDims?: number[], ignoreIndices?: boolean): DataStorage { + clone(clonedDims?: DimensionIndex[], ignoreIndices?: boolean): DataStorage { const target = new DataStorage(); const chunks = this._chunks; const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { obj[dimIdx] = true; return obj; - }, {} as Record); + }, {} as Record); if (clonedDimsMap) { for (let i = 0; i < chunks.length; i++) { // Not clone if dim is not picked. - target._chunks[i] = (clonedDimsMap && !clonedDimsMap[i]) - ? chunks[i] : cloneChunk(chunks[i]); + target._chunks[i] = !clonedDimsMap[i] ? chunks[i] : cloneChunk(chunks[i]); } } else { @@ -1207,18 +1194,17 @@ class DataStorage { return target; } - private _copyCommonProps(target: DataStorage) { + private _copyCommonProps(target: DataStorage): void { target._count = this._count; target._rawCount = this._rawCount; target._provider = this._provider; target._dimensions = this._dimensions; - target.getDimensionIndex = this.getDimensionIndex; target._extent = clone(this._extent); target._rawExtent = clone(this._rawExtent); } - private _cloneIndices() { + private _cloneIndices(): DataStorage['_indices'] { if (this._indices) { const Ctor = this._indices.constructor as DataArrayLikeConstructor; let indices; @@ -1237,24 +1223,24 @@ class DataStorage { return null; } - private _getRawIdxIdentity(idx: number) { + private _getRawIdxIdentity(idx: number): number { return idx; } - private _getRawIdx(idx: number) { + private _getRawIdx(idx: number): number { if (idx < this._count && idx >= 0) { return this._indices[idx]; } return -1; } - private _updateGetRawIdx() { + private _updateGetRawIdx(): void { this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity; } private static internalField = (function () { function getDimValueSimply( - this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]); } @@ -1264,15 +1250,15 @@ class DataStorage { arrayRows: getDimValueSimply, objectRows( - this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { - return parseDataValue(dataItem[dimName], this._dimensions[dimIndex]); + return parseDataValue(dataItem[property], this._dimensions[dimIndex]); }, keyedColumns: getDimValueSimply, original( - this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { // Performance sensitive, do not use modelUtil.getDataItemValue. // If dataItem is an plain object with no value field, the let `value` @@ -1290,7 +1276,7 @@ class DataStorage { }, typedArray: function ( - this: DataStorage, dataItem: any, dimName: string, dataIndex: number, dimIndex: number + this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { return dataItem[dimIndex]; } diff --git a/src/data/Graph.ts b/src/data/Graph.ts index 0ab5f210c9..4803ee1d78 100644 --- a/src/data/Graph.ts +++ b/src/data/Graph.ts @@ -458,7 +458,7 @@ function createGraphDataProxyMixin( */ getValue(this: Host, dimension?: DimensionLoose): ParsedValue { const data = this[hostName][dataName]; - return data.get(data.getDimension(dimension || 'value'), this.dataIndex); + return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); }, // TODO: TYPE stricter type. setVisual(this: Host, key: string | Dictionary, value?: any) { diff --git a/src/data/OrdinalMeta.ts b/src/data/OrdinalMeta.ts index f2fd790c80..d56273678e 100644 --- a/src/data/OrdinalMeta.ts +++ b/src/data/OrdinalMeta.ts @@ -21,6 +21,7 @@ import {createHashMap, isObject, map, HashMap} from 'zrender/src/core/util'; import Model from '../model/Model'; import { OrdinalNumber, OrdinalRawValue } from '../util/types'; +let uidBase = 0; class OrdinalMeta { @@ -32,6 +33,8 @@ class OrdinalMeta { private _map: HashMap; + readonly uid: number; + constructor(opt: { categories?: OrdinalRawValue[], @@ -41,6 +44,7 @@ class OrdinalMeta { this.categories = opt.categories || []; this._needCollect = opt.needCollect; this._deduplication = opt.deduplication; + this.uid = ++uidBase; } static createByAxisModel(axisModel: Model): OrdinalMeta { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 2475128554..c30333eb8c 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -17,11 +17,8 @@ * under the License. */ -/* global Float64Array, Int32Array, Uint32Array, Uint16Array */ +/* global Int32Array */ -/** - * List for data storage - */ import * as zrUtil from 'zrender/src/core/util'; import {PathStyleProps} from 'zrender/src/graphic/Path'; @@ -34,10 +31,11 @@ import {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/typ import Element from 'zrender/src/Element'; import { DimensionIndex, DimensionName, DimensionLoose, OptionDataItem, - ParsedValue, ParsedValueNumeric, DimensionUserOuput, + ParsedValue, ParsedValueNumeric, ModelOption, SeriesDataType, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, DecalObject, - OrdinalNumber + OrdinalNumber, + OrdinalRawValue } from '../util/types'; import {convertOptionIdName, isDataItemOption} from '../util/model'; import { setCommonECData } from '../util/innerStore'; @@ -47,6 +45,7 @@ import type { VisualMeta } from '../component/visualMap/VisualMapModel'; import {isSourceInstance, Source} from './Source'; import { LineStyleProps } from '../model/mixin/lineStyle'; import DataStorage, { DimValueGetter } from './DataStorage'; +import { isSeriesDimensionRequest, SeriesDimensionRequest } from './helper/SeriesDimensionRequest'; const isObject = zrUtil.isObject; const map = zrUtil.map; @@ -80,6 +79,17 @@ type MapCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: n ParsedValue | ParsedValue[]; type MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedValue[]; +type SeriesDimensionDefineLoose = string | object | SeriesDimensionDefine; + +// `SeriesDimensionLoose` and `SeriesDimensionName` is the dimension that is used by coordinate +// system or declared in `series.encode`, which will be saved in `SeriesData`. Other dimension +// might not be saved in `SeriesData` for performance consideration. See `createDimension` for +// more details. +type SeriesDimensionLoose = DimensionLoose; +type SeriesDimensionName = DimensionName; +// type SeriesDimensionIndex = DimensionIndex; + + const TRANSFERABLE_PROPERTIES = [ 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_dimensionsSummary', 'userOutput', @@ -118,11 +128,11 @@ export interface DefaultDataVisual { } export interface DataCalculationInfo { - stackedDimension: string; - stackedByDimension: string; + stackedDimension: DimensionName; + stackedByDimension: DimensionName; isStackedByIndex: boolean; - stackedOverDimension: string; - stackResultDimension: string; + stackedOverDimension: DimensionName; + stackResultDimension: DimensionName; stackedOnSeries?: SERIES_MODEL; } @@ -145,15 +155,26 @@ class SeriesData< readonly type = 'list'; /** - * Name of dimensions list of SeriesData. It's be a subset of the dimensions in the DataStorage. - * When DataStorage is an extra high dimension(>30) dataset. We will only pick the used dimensions from DataStorage to avoid performance issue. + * Name of dimensions list of SeriesData. * - * So be careful of using it. + * @caution Carefully use the index of this array. + * Becuase when DataStorage is an extra high dimension(>30) dataset. We will only pick + * the used dimensions from DataStorage to avoid performance issue. */ - readonly dimensions: string[]; + readonly dimensions: SeriesDimensionName[]; // Infomation of each data dimension, like data type. - private _dimensionInfos: {[dimName: string]: SeriesDimensionDefine}; + private _dimensionInfos: Record; + + private _dimensionOmitted = false; + private _dimensionRequest?: SeriesDimensionRequest; + /** + * @pending + * Actually we do not really need to convert dimensionIndex to dimensionName + * and do not need `_dimIdxToName` if we do everything internally based on dimension + * index rather than dimension name. + */ + private _dimIdxToName?: zrUtil.HashMap; readonly hostModel: HostModel; @@ -199,11 +220,11 @@ class SeriesData< private _graphicEls: Element[] = []; // key: dim, value: extent - private _approximateExtent: {[dimName: string]: [number, number]} = {}; + private _approximateExtent: Record = {}; private _dimensionsSummary: DimensionSummary; - private _invertedIndicesMap: {[dimName: string]: ArrayLike}; + private _invertedIndicesMap: Record>; private _calculationInfo: DataCalculationInfo = {} as DataCalculationInfo; @@ -214,7 +235,7 @@ class SeriesData< // from modifying them to effect built-in logic. And for // performance consideration we make this `userOutput` to // avoid clone them too many times. - userOutput: DimensionUserOuput; + userOutput: DimensionSummary['userOutput']; // Having detected that there is data item is non primitive type // (in type `OptionDataItemObject`). @@ -238,16 +259,33 @@ class SeriesData< DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'] as const; /** - * @param dimensions + * @param dimensionsInput.dimensions * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...]. * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius */ - constructor(dimensions: Array, hostModel: HostModel) { + constructor( + dimensionsInput: SeriesDimensionRequest | SeriesDimensionDefineLoose[], + hostModel: HostModel + ) { + let dimensions: SeriesDimensionDefineLoose[]; + let assignStorageDimIdx = false; + if (isSeriesDimensionRequest(dimensionsInput)) { + dimensions = dimensionsInput.dimensionList; + this._dimensionOmitted = dimensionsInput.isDimensionOmitted(); + this._dimensionRequest = dimensionsInput; + } + else { + assignStorageDimIdx = true; + dimensions = dimensionsInput as SeriesDimensionDefineLoose[]; + } + dimensions = dimensions || ['x', 'y']; const dimensionInfos: Dictionary = {}; const dimensionNames = []; const invertedIndicesMap: Dictionary = {}; + let needsHasOwn = false; + const emptyObj = {}; for (let i = 0; i < dimensions.length; i++) { // Use the original dimensions[i], where other flag props may exists. @@ -270,6 +308,9 @@ class SeriesData< const otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {}; dimensionNames.push(dimensionName); dimensionInfos[dimensionName] = dimensionInfo; + if ((emptyObj as any)[dimensionName] != null) { + needsHasOwn = true; + } if (dimensionInfo.createInvertedIndices) { invertedIndicesMap[dimensionName] = []; @@ -280,13 +321,88 @@ class SeriesData< if (otherDims.itemId === 0) { this._idDimIdx = i; } + + if (__DEV__) { + zrUtil.assert(assignStorageDimIdx || dimensionInfo.storageDimensionIndex >= 0); + } + if (assignStorageDimIdx) { + dimensionInfo.storageDimensionIndex = i; + } } this.dimensions = dimensionNames; this._dimensionInfos = dimensionInfos; + this._initGetDimensionInfo(needsHasOwn); + this.hostModel = hostModel; this._invertedIndicesMap = invertedIndicesMap; + + if (this._dimensionOmitted) { + const dimIdxToName = this._dimIdxToName = zrUtil.createHashMap(); + zrUtil.each(dimensionNames, dimName => { + dimIdxToName.set(dimensionInfos[dimName].storageDimensionIndex, dimName); + }); + } + } + + /** + * + * Get concrete dimension name by dimension name or dimension index. + * If input a dimension name, do not validate whether the dimension name exits. + * + * @caution + * @param dim Must make sure the dimension is `SeriesDimensionLoose`. + * Because only those dimensions will have auto-generated dimension names if not + * have a user-specified name, and other dimensions will get a return of null/undefined. + * @deprecated + * Becuause of this reason, should better use `getDimensionIndex` instead, for examples: + * ```js + * const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx); + * ``` + * + * @return Concrete dim name. + */ + getDimension(dim: SeriesDimensionLoose): DimensionName { + let dimIdx = this._recognizeDimensionIndex(dim); + if (dimIdx == null) { + return dim as DimensionName; + } + dimIdx = dim as DimensionIndex; + + if (!this._dimensionOmitted) { + return this.dimensions[dimIdx]; + } + + // Retrieve from series dimension definition becuase it probably contains + // generated dimension name (like 'x', 'y'). + const dimName = this._dimIdxToName.get(dimIdx); + if (dimName != null) { + return dimName; + } + + const sourceDimDef = this._dimensionRequest.getDimensionFromSource(dimIdx); + if (sourceDimDef) { + return sourceDimDef.name; + } + } + + /** + * Get dimension index in the storage. Return -1 if not found. + * Can be used to index value from getRawValue. + */ + getDimensionIndex(dim: DimensionLoose): DimensionIndex { + const dimIdx = this._recognizeDimensionIndex(dim); + if (dimIdx != null) { + return dimIdx; + } + + const dimInfo = this._getDimensionInfo(dim as DimensionName); + return dimInfo + ? dimInfo.storageDimensionIndex + : this._dimensionOmitted + ? this._dimensionRequest.getDimensionIndexFromSource(dim as DimensionName) + : -1; } /** @@ -295,7 +411,8 @@ class SeriesData< * + If dim is a number (e.g., `1`), it means the index of the dimension. * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'. * + If dim is a number-like string (e.g., `"1"`): - * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name. + * + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`, + * it means that concrete name. * + If not, it will be converted to a number, which means the index of the dimension. * (why? because of the backward compatbility. We have been tolerating number-like string in * dimension setting, although now it seems that it is not a good idea.) @@ -305,35 +422,24 @@ class SeriesData< * For example, it can be be default name `"x"`, `"y"`, `"z"`, `"lng"`, `"lat"`, `"angle"`, `"radius"`, * or customized in `dimensions` property of option like `"age"`. * - * Get dimension name - * @param dim See above. - * @return Concrete dim name. + * @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`). */ - getDimension(dim: DimensionLoose): DimensionName { + private _recognizeDimensionIndex(dim: DimensionLoose): DimensionIndex { if (typeof dim === 'number' - // If being a number-like string but not being defined a dimension name. - || (!isNaN(dim as any) && !this._dimensionInfos.hasOwnProperty(dim)) + // If being a number-like string but not being defined as a dimension name. + || ( + dim != null + && !isNaN(dim as any) + && !this._getDimensionInfo(dim) + && (!this._dimensionOmitted || this._dimensionRequest.getDimensionIndexFromSource(dim) < 0) + ) ) { - dim = this.dimensions[dim as DimensionIndex]; + return +dim; } - return dim as DimensionName; - } - - /** - * Get dimension index in the storage. Return -1 if not found. - * Can be used to index value from getRawValue. - */ - getDimensionIndex(dim: DimensionLoose): number { - // For outer usage so it won't throw error as _getStoreDimIndex did. - return zrUtil.retrieve2(this._store.getDimensionIndex(this.getDimension(dim)), -1); - } - - getStoreDimensions() { - return this._store.getDimensionNames(); } private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex { - const dimIdx = this._store.getDimensionIndex(this.getDimension(dim)); + const dimIdx = this.getDimensionIndex(dim); if (__DEV__) { if (dimIdx == null) { throw new Error('Unkown dimension ' + dim); @@ -348,15 +454,28 @@ class SeriesData< * Dimension can be concrete names like x, y, z, lng, lat, angle, radius * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius' */ - getDimensionInfo(dim: DimensionLoose): SeriesDimensionDefine { + getDimensionInfo(dim: SeriesDimensionLoose): SeriesDimensionDefine { // Do not clone, because there may be categories in dimInfo. - return this._dimensionInfos[this.getDimension(dim)]; + return this._getDimensionInfo(this.getDimension(dim)); + } + + /** + * If `dimName` if from outside of `SeriesData`, + * use this method other than visit `this._dimensionInfos` directly. + */ + private _getDimensionInfo: (dimName: SeriesDimensionName) => SeriesDimensionDefine; + + private _initGetDimensionInfo(needsHasOwn: boolean): void { + const dimensionInfos = this._dimensionInfos; + this._getDimensionInfo = needsHasOwn + ? dimName => (dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined) + : dimName => dimensionInfos[dimName]; } /** * concrete dimension name list on coord. */ - getDimensionsOnCoord(): DimensionName[] { + getDimensionsOnCoord(): SeriesDimensionName[] { return this._dimensionsSummary.dataDimsOnCoord.slice(); } @@ -366,9 +485,9 @@ class SeriesData< * If not specified, return the first dim not extra. * @return concrete data dim. If not found, return null/undefined */ - mapDimension(coordDim: DimensionName): DimensionName; - mapDimension(coordDim: DimensionName, idx: number): DimensionName; - mapDimension(coordDim: DimensionName, idx?: number): DimensionName { + mapDimension(coordDim: SeriesDimensionName): SeriesDimensionName; + mapDimension(coordDim: SeriesDimensionName, idx: number): SeriesDimensionName; + mapDimension(coordDim: SeriesDimensionName, idx?: number): SeriesDimensionName { const dimensionsSummary = this._dimensionsSummary; if (idx == null) { @@ -379,7 +498,7 @@ class SeriesData< return dims ? dims[idx as number] as any : null; } - mapDimensionsAll(coordDim: DimensionName): DimensionName[] { + mapDimensionsAll(coordDim: SeriesDimensionName): SeriesDimensionName[] { const dimensionsSummary = this._dimensionsSummary; const dims = dimensionsSummary.encode[coordDim]; return (dims || []).slice(); @@ -405,15 +524,9 @@ class SeriesData< ): void { let store: DataStorage; const dimensions = this.dimensions; - const dimensionInfos = map(dimensions, dimName => this._dimensionInfos[dimName]); + const dimensionInfos = map(dimensions, this._getDimensionInfo, this); if (data instanceof DataStorage) { - if (data.canUse(dimensionInfos)) { - store = data; - } - else { - // Fallback - data = data.getSource(); - } + store = data; } if (!store) { @@ -435,7 +548,7 @@ class SeriesData< // Cache summary info for fast visit. See "dimensionHelper". // Needs to be initialized after store is prepared. - this._dimensionsSummary = summarizeDimensions(this); + this._dimensionsSummary = summarizeDimensions(this, this._dimensionRequest); this.userOutput = this._dimensionsSummary.userOutput; } @@ -478,19 +591,18 @@ class SeriesData< } } - private _updateOrdinalMeta() { + private _updateOrdinalMeta(): void { const store = this._store; const dimensions = this.dimensions; for (let i = 0; i < dimensions.length; i++) { const dimInfo = this._dimensionInfos[dimensions[i]]; if (dimInfo.ordinalMeta) { - const dimIdx = store.getDimensionIndex(dimensions[i]); - store.collectOrdinalMeta(dimIdx, dimInfo.ordinalMeta); + store.collectOrdinalMeta(dimInfo.storageDimensionIndex, dimInfo.ordinalMeta); } } } - private _shouldMakeIdFromName() { + private _shouldMakeIdFromName(): boolean { const provider = this._store.getProvider(); return this._idDimIdx == null && provider.getSource().sourceFormat !== SOURCE_FORMAT_TYPED_ARRAY @@ -549,6 +661,7 @@ class SeriesData< prepareInvertedIndex(this); } + /** * PENDING: In fact currently this function is only used to short-circuit * the calling of `scale.unionExtentFromData` when data have been filtered by modules @@ -563,7 +676,7 @@ class SeriesData< * extent calculation will cost more than 10ms and the cache will * be erased because of the filtering. */ - getApproximateExtent(dim: DimensionLoose): [number, number] { + getApproximateExtent(dim: SeriesDimensionLoose): [number, number] { return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim)); } @@ -571,7 +684,7 @@ class SeriesData< * Calculate extent on a filtered data might be time consuming. * Approximate extent is only used for: calculte extent of filtered data outside. */ - setApproximateExtent(extent: [number, number], dim: DimensionLoose): void { + setApproximateExtent(extent: [number, number], dim: SeriesDimensionLoose): void { dim = this.getDimension(dim); this._approximateExtent[dim] = extent.slice() as [number, number]; } @@ -619,7 +732,7 @@ class SeriesData< return name; } - private _getCategory(dimIdx: number, idx: number) { + private _getCategory(dimIdx: number, idx: number): OrdinalRawValue { const ordinal = this._store.get(dimIdx, idx); const ordinalMeta = this._store.getOrdinalMeta(dimIdx); if (ordinalMeta) { @@ -638,21 +751,32 @@ class SeriesData< return getId(this, this.getRawIndex(idx)); } - count() { + count(): number { return this._store.count(); } + /** * Get value. Return NaN if idx is out of range. - * @param dim Dim must be concrete name. + * + * @deprecated Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead. */ - get(dim: DimensionName, idx: number): ParsedValue { + get(dim: SeriesDimensionName, idx: number): ParsedValue { const store = this._store; - return store.get(store.getDimensionIndex(dim), idx); + const dimInfo = this._dimensionInfos[dim]; + if (dimInfo) { + return store.get(dimInfo.storageDimensionIndex, idx); + } } - getByRawIndex(dim: DimensionName, rawIdx: number): ParsedValue { + /** + * @deprecated Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead. + */ + getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue { const store = this._store; - return store.getByRawIndex(store.getDimensionIndex(dim), rawIdx); + const dimInfo = this._dimensionInfos[dim]; + if (dimInfo) { + return store.getByRawIndex(dimInfo.storageDimensionIndex, rawIdx); + } } getIndices() { @@ -688,12 +812,12 @@ class SeriesData< * Only check the coord dimensions. */ hasValue(idx: number): boolean { - const dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord; - for (let i = 0, len = dataDimsOnCoord.length; i < len; i++) { + const dataDimIndicesOnCoord = this._dimensionsSummary.dataDimIndicesOnCoord; + for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) { // Ordinal type originally can be string or number. // But when an ordinal type is used on coord, it can // not be string but only number. So we can also use isNaN. - if (isNaN(this.get(dataDimsOnCoord[i], idx) as any)) { + if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx) as any)) { return false; } } @@ -712,11 +836,11 @@ class SeriesData< return -1; } - getRawIndex(idx: number) { + getRawIndex(idx: number): number { return this._store.getRawIndex(idx); } - indexOfRawIndex(rawIndex: number) { + indexOfRawIndex(rawIndex: number): number { return this._store.indexOfRawIndex(rawIndex); } @@ -727,7 +851,7 @@ class SeriesData< * @param value ordinal index * @return rawIndex */ - rawIndexOf(dim: DimensionName, value: OrdinalNumber): number { + rawIndexOf(dim: SeriesDimensionName, value: OrdinalNumber): number { const invertedIndices = dim && this._invertedIndicesMap[dim]; if (__DEV__) { if (!invertedIndices) { @@ -817,9 +941,7 @@ class SeriesData< const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this); - // Clone first - this._store = this._store.clone(); - this._store.filterSelf(dimIndices, (fCtx + this._store = this._store.filter(dimIndices, (fCtx ? zrUtil.bind(cb as any, fCtx as any) : cb) as any ); @@ -843,8 +965,7 @@ class SeriesData< dimIndices.push(dimIdx); }); - this._store = this._store.clone(); - this._store.selectRange(innerRange); + this._store = this._store.selectRange(innerRange); return this; } @@ -852,12 +973,12 @@ class SeriesData< * Data mapping to a plain array */ mapArray>(cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - /* eslint-disable */ + /* eslint-disable max-len */ mapArray>(dims: DimensionLoose, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; mapArray>(dims: [DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; mapArray>(dims: [DimensionLoose, DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; mapArray>(dims: ItrParamDims, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[]; - /* eslint-enable */ + /* eslint-enable max-len */ mapArray( dims: ItrParamDims | MapArrayCb, cb: MapArrayCb | Ctx, @@ -886,7 +1007,7 @@ class SeriesData< */ map(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; map(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; - /* eslint-disable-next-line */ + // eslint-disable-next-line max-len map(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): SeriesData; map( dims: ItrParamDims, @@ -904,9 +1025,9 @@ class SeriesData< ); const list = cloneListForMapAndSample(this); - list._store = this._store.map(dimIndices, (fCtx - ? zrUtil.bind(cb as any, fCtx as any) - : cb) as any + list._store = this._store.map( + dimIndices, + fCtx ? zrUtil.bind(cb, fCtx) : cb ); return list; } @@ -916,14 +1037,13 @@ class SeriesData< */ modify(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void; modify(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void; - /* eslint-disable-next-line */ modify(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): void; modify( dims: ItrParamDims, cb: MapCb, ctx?: Ctx, ctxCompat?: Ctx - ) { + ): void { // ctxCompat just for compat echarts3 const fCtx = (ctx || ctxCompat || this) as CtxOrList; @@ -940,9 +1060,13 @@ class SeriesData< normalizeDimensions(dims), this._getStoreDimIndex, this ); - this._store.modify(dimIndices, (fCtx - ? zrUtil.bind(cb as any, fCtx as any) - : cb) as any + // If do shallow clone here, if there are too many stacked series, + // it still cost lots of memory, becuase `storage.dimensions` are not shared. + // We should consider there probably be shallow clone happen in each sereis + // in consequent filter/map. + this._store.modify( + dimIndices, + fCtx ? zrUtil.bind(cb, fCtx) : cb ); } @@ -974,18 +1098,19 @@ class SeriesData< lttbDownSample( valueDimension: DimensionLoose, rate: number - ) { + ): SeriesData { const list = cloneListForMapAndSample(this); list._store = this._store.lttbDownSample( this._getStoreDimIndex(valueDimension), rate ); - return list; + return list as SeriesData; } getRawDataItem(idx: number) { return this._store.getRawDataItem(idx); } + /** * Get model of one data item. */ @@ -1213,8 +1338,12 @@ class SeriesData< */ cloneShallow(list?: SeriesData): SeriesData { if (!list) { - const dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this); - list = new SeriesData(dimensionInfoList, this.hostModel); + list = new SeriesData( + this._dimensionRequest + ? this._dimensionRequest + : map(this.dimensions, this._getDimensionInfo, this), + this.hostModel + ); } transferProperties(list, this); @@ -1255,7 +1384,6 @@ class SeriesData< // Currently, only dimensions that has ordinalMeta can create inverted indices. const ordinalMeta = dimInfo.ordinalMeta; const store = data._store; - const dimIdx = store.getDimensionIndex(dim); if (ordinalMeta) { invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array( ordinalMeta.categories.length @@ -1267,7 +1395,7 @@ class SeriesData< } for (let i = 0; i < store.count(); i++) { // Only support the case that all values are distinct. - invertedIndices[store.get(dimIdx, i) as number] = i; + invertedIndices[store.get(dimInfo.storageDimensionIndex, i) as number] = i; } } }); @@ -1302,12 +1430,14 @@ class SeriesData< return dimensions; }; - - // Data in excludeDimensions is copied, otherwise transfered. + /** + * Data in excludeDimensions is copied, otherwise transfered. + */ cloneListForMapAndSample = function (original: SeriesData): SeriesData { - const allDimensions = original.dimensions; const list = new SeriesData( - map(allDimensions, original.getDimensionInfo, original), + original._dimensionRequest + ? original._dimensionRequest + : map(original.dimensions, original._getDimensionInfo, original), original.hostModel ); // FIXME If needs stackedOn, value may already been stacked diff --git a/src/data/SeriesDimensionDefine.ts b/src/data/SeriesDimensionDefine.ts index de10e1a60d..5a2cae4940 100644 --- a/src/data/SeriesDimensionDefine.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -45,6 +45,17 @@ class SeriesDimensionDefine { // See Series.ts#formatArrayValue tooltip?: boolean; + /** + * This dimension maps to the the dimension in dataStorage by `storageDimensionIndex`. + * Notice the facts: + * 1. When there are too many dimensions in storage, seriesData only save the + * used storage dimensions. + * 2. We use dimensionIndex but not name to reference storage dimension + * becuause the dataset dimension definition might has no name specified by users, + * or names in sereis dimension definition might be different from dataset. + */ + storageDimensionIndex?: number; + /** * Which coordSys dimension this dimension mapped to. * A `coordDim` can be a "coordSysDim" that the coordSys required diff --git a/src/data/Source.ts b/src/data/Source.ts index 83b3ad0739..a530a50811 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -139,8 +139,6 @@ class SourceImpl { */ readonly metaRawOption: SourceMetaRawOption; - // readonly frozen: boolean; - constructor(fields: { data: OptionSourceData, @@ -173,6 +171,7 @@ class SourceImpl { this.metaRawOption = fields.metaRawOption; const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine; + if (dimensionsDefine) { for (let i = 0; i < dimensionsDefine.length; i++) { const dim = dimensionsDefine[i]; @@ -480,3 +479,8 @@ function arrayRowsTravelFirst( } } } + +export function shouldRetrieveDataByName(source: Source): boolean { + const sourceFormat = source.sourceFormat; + return sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS; +} diff --git a/src/data/Tree.ts b/src/data/Tree.ts index 4b8537e4f6..fe92a72930 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -210,7 +210,7 @@ export class TreeNode { getValue(dimension?: DimensionLoose): ParsedValue { const data = this.hostTree.data; - return data.get(data.getDimension(dimension || 'value'), this.dataIndex); + return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); } setLayout(layout: any, merge?: boolean) { @@ -447,12 +447,12 @@ class Tree { tree.root.updateDepthAndHeight(0); - const dimensionsInfo = createDimensions(listData, { + const { dimensionList } = createDimensions(listData, { coordDimensions: ['value'], dimensionsCount: dimMax }); - const list = new SeriesData(dimensionsInfo, hostModel); + const list = new SeriesData(dimensionList, hostModel); list.initData(listData); beforeLink && beforeLink(list); diff --git a/src/data/helper/SeriesDimensionRequest.ts b/src/data/helper/SeriesDimensionRequest.ts new file mode 100644 index 0000000000..7a67eff22e --- /dev/null +++ b/src/data/helper/SeriesDimensionRequest.ts @@ -0,0 +1,267 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one +* or more contributor license agreements. See the NOTICE file +* distributed with this work for additional information +* regarding copyright ownership. The ASF licenses this file +* to you under the Apache License, Version 2.0 (the +* "License"); you may not use this file except in compliance +* with the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, +* software distributed under the License is distributed on an +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +* KIND, either express or implied. See the License for the +* specific language governing permissions and limitations +* under the License. +*/ + +import { createHashMap, HashMap, isObject, retrieve2 } from 'zrender/src/core/util'; +import { makeInner } from '../../util/model'; +import { + DimensionDefinition, DimensionDefinitionLoose, DimensionIndex, DimensionName, DimensionType +} from '../../util/types'; +import { DataStorageDimensionDefine } from '../DataStorage'; +import OrdinalMeta from '../OrdinalMeta'; +import SeriesDimensionDefine from '../SeriesDimensionDefine'; +import { shouldRetrieveDataByName, Source } from '../Source'; + +const inner = makeInner<{ + dimNameMap: HashMap; +}, Source>(); + +const dimTypeShort = { + float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't' +} as const; + +/** + * Represents the dimension requirement of a series. + * + * NOTICE: + * When there are too many dimensions in dataset and many series, only the used dimensions + * (i.e., used by coord sys and declared in `series.encode`) are add to `dimensionDefineList`. + * But users may query data by other unused dimension names. + * In this case, users can only query data if and only if they have defined dimension names + * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from + * `source` dimensions. + */ +export class SeriesDimensionRequest { + + /** + * When there are too many dimensions, `dimensionDefineList` might only contain + * used dimensions. + * + * CAUTION: + * Should have been sorted by `storageDimensionIndex` asc. + * + * PENDING: + * The item can still be modified outsite. + * But MUST NOT add/remove item of this array. + */ + readonly dimensionList: SeriesDimensionDefine[]; + + readonly source: Source; + + private _fullDimensionCount: number; + private _dimNameMap: ReturnType['dimNameMap']; + private _dimensionOmitted: boolean; + + constructor(opt: { + source: Source, + dimensionList: SeriesDimensionDefine[], + fullDimensionCount: number, + dimensionOmitted: boolean + }) { + this.dimensionList = opt.dimensionList; + this._dimensionOmitted = opt.dimensionOmitted; + this.source = opt.source; + this._fullDimensionCount = opt.fullDimensionCount; + + this._updateDimensionOmitted(opt.dimensionOmitted); + } + + isDimensionOmitted(): boolean { + return this._dimensionOmitted; + } + + private _updateDimensionOmitted(dimensionOmitted: boolean): void { + this._dimensionOmitted = dimensionOmitted; + if (!dimensionOmitted) { + return; + } + if (!this._dimNameMap) { + this._dimNameMap = ensureSourceDimNameMap(this.source); + } + } + + /** + * @caution Can only be used when `dimensionOmitted: true`. + * + * Get index by user defined dimension name (i.e., not internal generate name). + * That is, get index from `dimensionsDefine`. + * If no `dimensionsDefine`, or no name get, return -1. + */ + getDimensionIndexFromSource(dimName: DimensionName): DimensionIndex { + return retrieve2(this._dimNameMap.get(dimName), -1); + } + + /** + * @caution Can only be used when `dimensionOmitted: true`. + * + * Notice: may return `null`/`undefined` if user not specify dimension names. + */ + getDimensionFromSource(dimIndex: DimensionIndex): DimensionDefinition { + const dimensionsDefine = this.source.dimensionsDefine; + if (dimensionsDefine) { + return dimensionsDefine[dimIndex]; + } + } + + makeStorageSchema(): { + dimensions: DataStorageDimensionDefine[]; + hash: string + } { + const dimCount = this._fullDimensionCount; + const willRetrieveDataByName = shouldRetrieveDataByName(this.source); + const makeHashStrict = !shouldOmitUnusedDimensions(dimCount); + + // If source don't have dimensions or series don't omit unsed dimensions. + // Generate from seriesDimList directly + let dimHash = ''; + const dims: DataStorageDimensionDefine[] = []; + + for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) { + let property: string; + let type: DimensionType; + let ordinalMeta: OrdinalMeta; + + const seriesDimDef = this.dimensionList[seriesDimIdx]; + // The list has been sorted by `storageDimensionIndex` asc. + if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) { + property = willRetrieveDataByName ? seriesDimDef.name : null; + type = seriesDimDef.type; + ordinalMeta = seriesDimDef.ordinalMeta; + + seriesDimIdx++; + } + else { + const sourceDimDef = this.getDimensionFromSource(fullDimIdx); + if (sourceDimDef) { + property = willRetrieveDataByName ? sourceDimDef.name : null; + type = sourceDimDef.type; + } + } + + dims.push({ property, type, ordinalMeta }); + + // If retrieving data by index, + // use to determine whether data can be shared. + // (Becuase in this case there might be no dimension name defined in dataset, but indices always exists). + // (indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash). + // Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`), + // use in hash. + if (willRetrieveDataByName + && property != null + // For data stack, we have make sure each series has its own dim on this storage. + // So we do not add property to hash to make sure they can share this storage. + && (!seriesDimDef || !seriesDimDef.isCalculationCoord) + ) { + dimHash += (makeHashStrict + // Use escape character '`' in case that property name contains '$'. + ? property.replace(/\`/g, '`1').replace(/\$/g, '`2') + // For better performance, when there are large dimensions, tolerant this defects that hardly meet. + : property + ); + } + dimHash += '$'; + dimHash += dimTypeShort[type] || 'f'; + + if (ordinalMeta) { + dimHash += ordinalMeta.uid; + } + + dimHash += '$'; + } + + // Source from endpoint(usually series) will be read differently + // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. + // So we use this three props as key. + const source = this.source; + const hash = [ + source.seriesLayoutBy, + source.startIndex, + dimHash + ].join('$$'); + + return { + dimensions: dims, + hash: hash + }; + } + + makeOutputDimensionNames(): DimensionName[] { + const result = [] as DimensionName[]; + + for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimensionCount; fullDimIdx++) { + let name: DimensionName; + const seriesDimDef = this.dimensionList[seriesDimIdx]; + // The list has been sorted by `storageDimensionIndex` asc. + if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) { + if (!seriesDimDef.isCalculationCoord) { + name = seriesDimDef.name; + } + seriesDimIdx++; + } + else { + const sourceDimDef = this.getDimensionFromSource(fullDimIdx); + if (sourceDimDef) { + name = sourceDimDef.name; + } + } + result.push(name); + } + + return result; + } + + appendCalculationDimension(dimDef: SeriesDimensionDefine): void { + this.dimensionList.push(dimDef); + dimDef.isCalculationCoord = true; + this._fullDimensionCount++; + // If append dimension on a data storage, consider the storage + // might be shared by different series, series dimensions not + // really map to storage dimensions. + this._updateDimensionOmitted(true); + } +} + +export function isSeriesDimensionRequest( + dimensionRequest: any +): dimensionRequest is SeriesDimensionRequest { + return dimensionRequest instanceof SeriesDimensionRequest; +} + + +export function createDimNameMap(dimsDef: DimensionDefinitionLoose[]): HashMap { + const dataDimNameMap = createHashMap(); + for (let i = 0; i < (dimsDef || []).length; i++) { + const dimDefItemRaw = dimsDef[i]; + const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; + if (userDimName != null && dataDimNameMap.get(userDimName) == null) { + dataDimNameMap.set(userDimName, i); + } + } + return dataDimNameMap; +} + +export function ensureSourceDimNameMap(source: Source): HashMap { + const innerSource = inner(source); + return innerSource.dimNameMap || ( + innerSource.dimNameMap = createDimNameMap(source.dimensionsDefine) + ); +} + +export function shouldOmitUnusedDimensions(dimCount: number): boolean { + return dimCount > 30; +} diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 58b1cfba46..2426842113 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -27,18 +27,19 @@ import { DimensionIndex, VISUAL_DIMENSIONS } from '../../util/types'; -import SeriesData from '../SeriesData'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; -import { createHashMap, defaults, each, extend, HashMap, isObject, isString, map } from 'zrender/src/core/util'; +import { + createHashMap, defaults, each, extend, HashMap, isObject, isString +} from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; -import DataStorage, { CtorInt32Array } from '../DataStorage'; -import { makeInner, normalizeToArray } from '../../util/model'; +import { CtorInt32Array } from '../DataStorage'; +import { normalizeToArray } from '../../util/model'; import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; +import { + createDimNameMap, ensureSourceDimNameMap, SeriesDimensionRequest, shouldOmitUnusedDimensions +} from './SeriesDimensionRequest'; -const inner = makeInner<{ - dimNameMap: HashMap -}, Source>(); export interface CoordDimensionDefinition extends DimensionDefinition { dimsDef?: (DimensionName | { name: DimensionName, defaultTooltip?: boolean })[]; @@ -68,12 +69,22 @@ export type CreateDimensionsParams = { generateCoordCount?: number, /** - * If omit unused dimension + * If be able to omit unused dimension * Used to improve the performance on high dimension data. */ - omitUnusedDimensions?: boolean + canOmitUnusedDimensions?: boolean }; +/** + * For outside usage compat (like echarts-gl are using it). + */ +export function legacyCreateDimensions( + source: Source | OptionSourceData, + opt?: CreateDimensionsParams +): SeriesDimensionDefine[] { + return createDimensions(source, opt).dimensionList; +} + /** * This method builds the relationship between: * + "what the coord sys or series requires (see `coordDimensions`)", @@ -83,19 +94,15 @@ export type CreateDimensionsParams = { * Some guess strategy will be adapted if user does not define something. * If no 'value' dimension specified, the first no-named dimension will be * named as 'value'. + * + * @return The results are always sorted by `storageDimensionIndex` asc. */ export default function createDimensions( // TODO: TYPE completeDimensions type - source: Source | SeriesData | OptionSourceData | DataStorage, + source: Source | OptionSourceData, opt?: CreateDimensionsParams -): SeriesDimensionDefine[] { - if (source instanceof DataStorage) { - source = source.getSource(); - } - else if (source instanceof SeriesData) { - source = source.getStorage().getSource(); - } - else if (!isSourceInstance(source)) { +): SeriesDimensionRequest { + if (!isSourceInstance(source)) { source = createSourceFromSeriesDataOption(source as OptionSourceData); } @@ -104,20 +111,17 @@ export default function createDimensions( const sysDims = opt.coordDimensions || []; const dimsDef = opt.dimensionsDefine || source.dimensionsDefine || []; const coordDimNameMap = createHashMap(); - const result: SeriesDimensionDefine[] = []; - const omitUnusedDimensions = opt.omitUnusedDimensions; - const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; - // Try to cache the dimNameMap if the dimensionsDefine is from source. - const canCacheDimNameMap = (isUsingSourceDimensionsDef && omitUnusedDimensions); - let dataDimNameMap = canCacheDimNameMap && inner(source).dimNameMap; - let needsUpdateDataDimNameMap = false; - if (!dataDimNameMap) { - needsUpdateDataDimNameMap = true; - dataDimNameMap = createHashMap(); - } - + const resultList: SeriesDimensionDefine[] = []; const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); + // Try to ignore unsed dimensions if sharing a high dimension datastorage + // 30 is an experience value. + const omitUnusedDimensions = opt.canOmitUnusedDimensions && shouldOmitUnusedDimensions(dimCount); + + const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine; + const dataDimNameMap = isUsingSourceDimensionsDef + ? ensureSourceDimNameMap(source) : createDimNameMap(dimsDef); + let encodeDef = opt.encodeDefine; if (!encodeDef && opt.encodeDefaulter) { encodeDef = opt.encodeDefaulter(source, dimCount); @@ -128,6 +132,7 @@ export default function createDimensions( for (let i = 0; i < indicesMap.length; i++) { indicesMap[i] = -1; } + function getResultItem(dimIdx: number) { const idx = indicesMap[dimIdx]; if (idx < 0) { @@ -143,27 +148,15 @@ export default function createDimensions( } dimDefItem.type != null && (resultItem.type = dimDefItem.type); dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); - const newIdx = result.length; + const newIdx = resultList.length; indicesMap[dimIdx] = newIdx; - result.push(resultItem); + resultItem.storageDimensionIndex = dimIdx; + resultList.push(resultItem); return resultItem; } - return result[idx]; + return resultList[idx]; } - if (needsUpdateDataDimNameMap) { - for (let i = 0; i < dimCount; i++) { - const dimDefItemRaw = dimsDef[i]; - const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw; - // Name will be applied later for avoiding duplication. - if (userDimName != null && dataDimNameMap.get(userDimName) == null) { - dataDimNameMap.set(userDimName, i); - } - } - if (canCacheDimNameMap) { - inner(source).dimNameMap = dataDimNameMap; - } - } if (!omitUnusedDimensions) { for (let i = 0; i < dimCount; i++) { getResultItem(i); @@ -332,21 +325,25 @@ export default function createDimensions( resultItem.type = 'ordinal'; } } - return removeDuplication(result); } else { - // Sort dimensions: there are some rule that use the last dim as label. - const sortedResult: SeriesDimensionDefine[] = []; - for (let i = 0; i < indicesMap.length; i++) { - if (indicesMap[i] >= 0) { - const resultItem = result[indicesMap[i]]; - // PENDING: guessOrdinal or let user specify type: 'ordinal' manually? - ifNoNameFillWithCoordName(resultItem); - sortedResult.push(resultItem); - } - } - return removeDuplication(sortedResult); + each(resultList, resultItem => { + // PENDING: guessOrdinal or let user specify type: 'ordinal' manually? + ifNoNameFillWithCoordName(resultItem); + }); + // Sort dimensions: there are some rule that use the last dim as label, + // and for some latter travel process easier. + resultList.sort((item0, item1) => item0.storageDimensionIndex - item1.storageDimensionIndex); } + + removeDuplication(resultList); + + return new SeriesDimensionRequest({ + source, + dimensionList: resultList, + fullDimensionCount: dimCount, + dimensionOmitted: omitUnusedDimensions + }); } function removeDuplication(result: SeriesDimensionDefine[]) { @@ -362,7 +359,6 @@ function removeDuplication(result: SeriesDimensionDefine[]) { count++; duplicationMap.set(dimOriginalName, count); } - return result; } // ??? TODO @@ -375,7 +371,7 @@ function removeDuplication(result: SeriesDimensionDefine[]) { // (2) sometimes user need to calcualte bubble size or use visualMap // on other dimensions besides coordSys needed. // So, dims that is not used by system, should be shared in storage? -export function getDimCount( +function getDimCount( source: Source, sysDims: CoordDimensionDefinitionLoose[], dimsDef: DimensionDefinitionLoose[], @@ -413,4 +409,4 @@ function genCoordDimName( } map.set(name, true); return name; -} \ No newline at end of file +} diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index f5765b51ae..6b66c5bdd4 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -34,7 +34,7 @@ import { SERIES_LAYOUT_BY_COLUMN, SERIES_LAYOUT_BY_ROW, DimensionName, DimensionIndex, OptionSourceData, - DimensionIndexLoose, OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue + OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue, DimensionLoose } from '../../util/types'; import SeriesData from '../SeriesData'; @@ -469,7 +469,7 @@ function getMethodMapKey(sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayou // value may be 0.91000000001, which have brings trouble to display. // TODO: consider how to treat null/undefined/NaN when display? export function retrieveRawValue( - data: SeriesData, dataIndex: number, dim?: DimensionName | DimensionIndexLoose + data: SeriesData, dataIndex: number, dim?: DimensionLoose // If dimIndex is null/undefined, return OptionDataItem. // Otherwise, return OptionDataValue. ): OptionDataValue | OptionDataItem { @@ -484,11 +484,12 @@ export function retrieveRawValue( return; } - const sourceFormat = data.getStorage().getSource().sourceFormat; - const dimName = data.getDimension(dim); - const dimIndex = dimName != null ? data.getDimensionIndex(dimName) : null; + const storage = data.getStorage(); + const sourceFormat = storage.getSource().sourceFormat; + const dimIndex = data.getDimensionIndex(dim); + const property = storage.getDimensionProperty(dimIndex); - return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, dimName); + return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property); } diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index 6ec95d3cc7..d0546e3186 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -22,7 +22,17 @@ import SeriesDimensionDefine from '../SeriesDimensionDefine'; import SeriesModel from '../../model/Series'; import SeriesData, { DataCalculationInfo } from '../SeriesData'; import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types'; - +import { isSeriesDimensionRequest, SeriesDimensionRequest } from './SeriesDimensionRequest'; +import DataStorage from '../DataStorage'; + +type EnableDataStackDimensionsInput = { + dimensionRequest: SeriesDimensionRequest; + // If given, stack dimension will be ensured on this storage. + // Otherwise, stack dimesnion will be appended at the tail, and should not + // be used on a shared storage, but should create a brand new stroage later. + storage?: DataStorage; +}; +type EnableDataStackDimensionsInputLegacy = (SeriesDimensionDefine | string)[]; /** * Note that it is too complicated to support 3d stack by value @@ -30,8 +40,8 @@ import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../ * we just support that stacked by index. * * @param seriesModel - * @param dimensionInfoList The same as the input of . - * The input dimensionInfoList will be modified. + * @param dimensionsInput The same as the input of . + * The input will be modified. * @param opt * @param opt.stackedCoordDimension Specify a coord dimension if needed. * @param opt.byIndex=false @@ -46,8 +56,9 @@ import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../ */ export function enableDataStack( seriesModel: SeriesModel, - dimensionInfoList: (SeriesDimensionDefine | string)[], + dimensionsInput: EnableDataStackDimensionsInput | EnableDataStackDimensionsInputLegacy, opt?: { + // Backward compat stackedCoordDimension?: string byIndex?: boolean } @@ -63,6 +74,19 @@ export function enableDataStack( let byIndex = opt.byIndex; const stackedCoordDimension = opt.stackedCoordDimension; + let dimensionDefineList: EnableDataStackDimensionsInputLegacy; + let dimensionRequest: SeriesDimensionRequest; + let storage: DataStorage; + + if (isLegacyDimensionsInput(dimensionsInput)) { + dimensionDefineList = dimensionsInput; + } + else { + dimensionRequest = dimensionsInput.dimensionRequest; + dimensionDefineList = dimensionRequest.dimensionList; + storage = dimensionsInput.storage; + } + // Compatibal: when `stack` is set as '', do not stack. const mayStack = !!(seriesModel && seriesModel.get('stack')); let stackedByDimInfo: SeriesDimensionDefine; @@ -70,9 +94,9 @@ export function enableDataStack( let stackResultDimension: string; let stackedOverDimension: string; - each(dimensionInfoList, function (dimensionInfo, index) { + each(dimensionDefineList, function (dimensionInfo, index) { if (isString(dimensionInfo)) { - dimensionInfoList[index] = dimensionInfo = { + dimensionDefineList[index] = dimensionInfo = { name: dimensionInfo as string } as SeriesDimensionDefine; } @@ -118,33 +142,49 @@ export function enableDataStack( const stackedDimType = stackedDimInfo.type; let stackedDimCoordIndex = 0; - each(dimensionInfoList, function (dimensionInfo: SeriesDimensionDefine) { + each(dimensionDefineList, function (dimensionInfo: SeriesDimensionDefine) { if (dimensionInfo.coordDim === stackedDimCoordDim) { stackedDimCoordIndex++; } }); - dimensionInfoList.push({ + const stackedOverDimensionDefine: SeriesDimensionDefine = { name: stackResultDimension, coordDim: stackedDimCoordDim, coordDimIndex: stackedDimCoordIndex, type: stackedDimType, isExtraCoord: true, - isCalculationCoord: true - }); + isCalculationCoord: true, + storageDimensionIndex: dimensionDefineList.length + }; - stackedDimCoordIndex++; - - dimensionInfoList.push({ + const stackResultDimensionDefine: SeriesDimensionDefine = { name: stackedOverDimension, // This dimension contains stack base (generally, 0), so do not set it as // `stackedDimCoordDim` to avoid extent calculation, consider log scale. coordDim: stackedOverDimension, - coordDimIndex: stackedDimCoordIndex, + coordDimIndex: stackedDimCoordIndex + 1, type: stackedDimType, isExtraCoord: true, - isCalculationCoord: true - }); + isCalculationCoord: true, + storageDimensionIndex: dimensionDefineList.length + 1 + }; + + if (dimensionRequest) { + if (storage) { + stackedOverDimensionDefine.storageDimensionIndex = + storage.ensureCalculationDimension(stackedOverDimension, stackedDimType); + stackResultDimensionDefine.storageDimensionIndex = + storage.ensureCalculationDimension(stackResultDimension, stackedDimType); + } + + dimensionRequest.appendCalculationDimension(stackedOverDimensionDefine); + dimensionRequest.appendCalculationDimension(stackResultDimensionDefine); + } + else { + dimensionDefineList.push(stackedOverDimensionDefine); + dimensionDefineList.push(stackResultDimensionDefine); + } } return { @@ -156,6 +196,12 @@ export function enableDataStack( }; } +function isLegacyDimensionsInput( + dimensionsInput: Parameters[1] +): dimensionsInput is EnableDataStackDimensionsInputLegacy { + return !isSeriesDimensionRequest((dimensionsInput as EnableDataStackDimensionsInput).dimensionRequest); +} + export function isDimensionStacked(data: SeriesData, stackedDim: string): boolean { // Each single series only maps to one pair of axis. So we do not need to // check stackByDim, whatever stacked by a dimension or stacked by index. diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 2d250e61d2..393738495b 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -18,12 +18,13 @@ */ -import {each, createHashMap, assert} from 'zrender/src/core/util'; +import {each, createHashMap, assert, map} from 'zrender/src/core/util'; import SeriesData from '../SeriesData'; import { - DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionUserOuput, DimensionUserOuputEncode, DimensionIndex + DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionIndex } from '../../util/types'; import { DataStorageDimensionType } from '../DataStorage'; +import { SeriesDimensionRequest } from './SeriesDimensionRequest'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], @@ -38,22 +39,68 @@ export type DimensionSummary = { userOutput: DimensionUserOuput, // All of the data dim names that mapped by coordDim. dataDimsOnCoord: DimensionName[], + dataDimIndicesOnCoord: DimensionIndex[], encodeFirstDimNotExtra: {[coordDim: string]: DimensionName}, }; -export function summarizeDimensions(data: SeriesData): DimensionSummary { +export type DimensionUserOuputEncode = { + // index: coordDimIndex, value: dataDimIndex + [coordOrVisualDimName: string]: DimensionIndex[] +}; + +class DimensionUserOuput { + private _encode: DimensionUserOuputEncode; + private _cachedDimNames: DimensionName[]; + private _dimensionRequest?: SeriesDimensionRequest; + + constructor( + encode: DimensionUserOuputEncode, + dimRequest?: SeriesDimensionRequest + ) { + this._encode = encode; + this._dimensionRequest = dimRequest; + } + + get(): { + fullDimensions: DimensionName[]; + encode: DimensionUserOuputEncode; + } { + return { + // Do not generate full dimension name until fist used. + fullDimensions: this._getFullDimensionNames(), + encode: this._encode + }; + } + + /** + * Get all storage dimension names. + * Theoretically a series storage is defined both by series and used dataset (if any). + * If some dimensions are omitted for performance reason in `this.dimensions`, + * the dimension name may not be auto-generated if user does not specify a dimension name. + * In this case, the dimension name is `null`/`undefined`. + */ + private _getFullDimensionNames(): DimensionName[] { + if (!this._cachedDimNames) { + this._cachedDimNames = this._dimensionRequest + ? this._dimensionRequest.makeOutputDimensionNames() + : []; + } + return this._cachedDimNames; + } +}; + + +export function summarizeDimensions( + data: SeriesData, + dimensionRequest?: SeriesDimensionRequest +): DimensionSummary { const summary: DimensionSummary = {} as DimensionSummary; const encode = summary.encode = {} as DimensionSummaryEncode; const notExtraCoordDimMap = createHashMap<1, DimensionName>(); let defaultedLabel = [] as DimensionName[]; let defaultedTooltip = [] as DimensionName[]; - // See the comment of `List.js#userOutput`. - const userOutput = summary.userOutput = { - // Full dimensions in storage. - fullDimensions: data.getStorage().getDimensionNames(), - encode: {} - }; + const userOutputEncode = {} as DimensionUserOuputEncode; each(data.dimensions, function (dimName) { const dimItem = data.getDimensionInfo(dimName); @@ -80,7 +127,8 @@ export function summarizeDimensions(data: SeriesData): DimensionSummary { // User output encode do not contain generated coords. // And it only has index. User can use index to retrieve value from the raw item array. - getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = data.getDimensionIndex(dimItem.name); + getOrCreateEncodeArr(userOutputEncode, coordDim)[coordDimIndex] = + data.getDimensionIndex(dimItem.name); } if (dimItem.defaultTooltip) { defaultedTooltip.push(dimName); @@ -109,6 +157,9 @@ export function summarizeDimensions(data: SeriesData): DimensionSummary { }); summary.dataDimsOnCoord = dataDimsOnCoord; + summary.dataDimIndicesOnCoord = map( + dataDimsOnCoord, dimName => data.getDimensionInfo(dimName).storageDimensionIndex + ); summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra; const encodeLabel = encode.label; @@ -129,6 +180,8 @@ export function summarizeDimensions(data: SeriesData): DimensionSummary { encode.defaultedLabel = defaultedLabel; encode.defaultedTooltip = defaultedTooltip; + summary.userOutput = new DimensionUserOuput(userOutputEncode, dimensionRequest); + return summary; } diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 5ac046c00a..f58159414d 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -19,12 +19,15 @@ import { DatasetModel } from '../../component/dataset/install'; import SeriesModel from '../../model/Series'; -import { setAsPrimitive, map, isTypedArray, assert, each, retrieve2, createHashMap } from 'zrender/src/core/util'; -import { SourceMetaRawOption, Source, createSource, cloneSourceShallow } from '../Source'; +import { + setAsPrimitive, map, isTypedArray, assert, each, retrieve2 +} from 'zrender/src/core/util'; +import { SourceMetaRawOption, Source, createSource, cloneSourceShallow, shouldRetrieveDataByName } from '../Source'; import { SeriesEncodableModel, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, - SourceFormat, SeriesLayoutBy, OptionSourceHeader, DimensionDefinitionLoose, Dictionary + SourceFormat, SeriesLayoutBy, OptionSourceHeader, + DimensionDefinitionLoose, Dictionary } from '../../util/types'; import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels @@ -32,13 +35,10 @@ import { import { applyDataTransform } from './transform'; import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; -import SeriesDimensionDefine from '../SeriesDimensionDefine'; -import WeakMap from 'zrender/src/core/WeakMap'; -import OrdinalMeta from '../OrdinalMeta'; +import { SeriesDimensionRequest, shouldOmitUnusedDimensions } from './SeriesDimensionRequest'; type DataStorageMap = Dictionary; - /** * [REQUIREMENT_MEMO]: * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option. @@ -370,26 +370,17 @@ export class SourceManager { * Get a data storage which can be shared across series. * Only available for series. * - * @param dimensions Dimensions that are generated in series. + * @param seriesDimRequest Dimensions that are generated in series. + * Should have been sorted by `storageDimensionIndex` asc. */ - getSharedDataStorage(seriesDims: SeriesDimensionDefine[]): DataStorage { + getSharedDataStorage(seriesDimRequest: SeriesDimensionRequest): DataStorage { if (__DEV__) { assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); } - const source = this.getSource(0); - const delimiter = '$$'; - const storageDims = getDataStorageDimensions(seriesDims, source); - - // Source from endpoint(usually series) will be read differently - // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different. - // So we use this three props as key. - const sourceReadKey = source.seriesLayoutBy - + delimiter - + source.startIndex - + delimiter - + generateDimensionsHash(storageDims); - - return this._innerGetDataStorage(storageDims, source, sourceReadKey); + const schema = seriesDimRequest.makeStorageSchema(); + return this._innerGetDataStorage( + schema.dimensions, seriesDimRequest.source, schema.hash + ); } private _innerGetDataStorage( @@ -490,56 +481,3 @@ function isSeries(sourceHost: SourceManager['_sourceHost']): sourceHost is Serie function doThrow(errMsg: string): void { throw new Error(errMsg); } - -const dimTypeShort = { - float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't' -} as const; - -function getDataStorageDimensions(seriesDims: SeriesDimensionDefine[], source: Source) { - const sourceDims = source.dimensionsDefine; - // If source don't have dimensions or series don't omit unsed dimensions. - // Use seriesDims directly - if (!sourceDims || seriesDims.length === sourceDims.length) { - return seriesDims; - } - const dims: DataStorageDimensionDefine[] = []; - const seriesDimsMap = createHashMap(); - for (let i = 0; i < seriesDims.length; i++) { - seriesDimsMap.set(seriesDims[i].name, seriesDims[i]); - } - for (let i = 0; i < sourceDims.length; i++) { - const dimName = sourceDims[i].name; - // Dim type from series has higher certainty - const seriesDim = seriesDimsMap.get(dimName); - dims.push({ - name: dimName, - ordinalMeta: seriesDim && seriesDim.ordinalMeta, - type: seriesDim ? seriesDim.type : sourceDims[i].type - }); - } - return dims; -} - -const ordinalIdMap = new WeakMap(); -let ordinalMetaId = 0; -function generateDimensionsHash(dims: DataStorageDimensionDefine[]) { - // If source don't have dimensions or series don't omit unsed dimensions. - // Generate from seriesDims directly - let key = ''; - for (let i = 0; i < dims.length; i++) { - const ordinalMeta = dims[i].ordinalMeta; - key += dims[i].name; - key += '$'; - key += dimTypeShort[dims[i].type] || 'f'; - if (ordinalMeta) { - let id = ordinalIdMap.get(ordinalMeta); - if (!id) { - id = 'm' + ordinalMetaId++; - ordinalIdMap.set(ordinalMeta, id); - } - key += id; - } - key += '$'; - } - return key; -} \ No newline at end of file diff --git a/src/export/api/helper.ts b/src/export/api/helper.ts index 394c64aaff..db07450d94 100644 --- a/src/export/api/helper.ts +++ b/src/export/api/helper.ts @@ -54,7 +54,7 @@ export function createList(seriesModel: SeriesModel) { export {getLayoutRect}; -export {default as createDimensions} from '../../data/helper/createDimensions'; +export {legacyCreateDimensions as createDimensions} from '../../data/helper/createDimensions'; export const dataStack = { isDimensionStacked: isDimensionStacked, diff --git a/src/layout/barGrid.ts b/src/layout/barGrid.ts index b389d7a312..4a13070a54 100644 --- a/src/layout/barGrid.ts +++ b/src/layout/barGrid.ts @@ -158,9 +158,10 @@ function getValueAxesMinGaps(barSeries: BarSeriesModel[]) { const data = seriesModel.getData(); const key = baseAxis.dim + '_' + baseAxis.index; - const dim = data.mapDimension(baseAxis.dim); - for (let i = 0, cnt = data.count(); i < cnt; ++i) { - const value = data.get(dim, i) as number; + const dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim)); + const storage = data.getStorage(); + for (let i = 0, cnt = storage.count(); i < cnt; ++i) { + const value = storage.get(dimIdx, i) as number; if (!axisValues[key]) { // No previous data for the axis axisValues[key] = [value]; @@ -477,9 +478,12 @@ export function layout(seriesType: string, ecModel: GlobalModel) { const valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked); - for (let idx = 0, len = data.count(); idx < len; idx++) { - const value = data.get(valueDim, idx); - const baseValue = data.get(baseDim, idx) as number; + const storage = data.getStorage(); + const valueDimIdx = data.getDimensionIndex(valueDim); + const baseDimIdx = data.getDimensionIndex(baseDim); + for (let idx = 0, len = storage.count(); idx < len; idx++) { + const value = storage.get(valueDimIdx, idx); + const baseValue = storage.get(baseDimIdx, idx) as number; const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n'; let baseCoord = valueAxisStart; @@ -563,8 +567,8 @@ export const largeLayout: StageHandler = { const coordLayout = cartesian.master.getRect(); const baseAxis = cartesian.getBaseAxis(); const valueAxis = cartesian.getOtherAxis(baseAxis); - const valueDim = data.mapDimension(valueAxis.dim); - const baseDim = data.mapDimension(baseAxis.dim); + const valueDimI = data.getDimensionIndex(data.mapDimension(valueAxis.dim)); + const baseDimI = data.getDimensionIndex(data.mapDimension(baseAxis.dim)); const valueAxisHorizontal = valueAxis.isHorizontal(); const valueDimIdx = valueAxisHorizontal ? 0 : 1; @@ -586,10 +590,11 @@ export const largeLayout: StageHandler = { const valuePair = []; let pointsOffset = 0; let idxOffset = 0; + const storage = data.getStorage(); while ((dataIndex = params.next()) != null) { - valuePair[valueDimIdx] = data.get(valueDim, dataIndex); - valuePair[1 - valueDimIdx] = data.get(baseDim, dataIndex); + valuePair[valueDimIdx] = storage.get(valueDimI, dataIndex); + valuePair[1 - valueDimIdx] = storage.get(baseDimI, dataIndex); coord = cartesian.dataToPoint(valuePair, null); // Data index might not be in order, depends on `progressiveChunkMode`. diff --git a/src/layout/points.ts b/src/layout/points.ts index 31d923ee00..3f85294a00 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -57,11 +57,8 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? } const store = data.getStorage(); - const dim0 = data.getDimension(dims[0]); - const dim1 = data.getDimension(dims[1]); - - const dimIdx0 = store.getDimensionIndex(dim0); - const dimIdx1 = store.getDimensionIndex(dim1); + const dimIdx0 = data.getDimensionIndex(dims[0]); + const dimIdx1 = data.getDimensionIndex(dims[1]); return dimLen && { progress(params, data) { diff --git a/src/model/mixin/dataFormat.ts b/src/model/mixin/dataFormat.ts index 3d67cec9f4..d634a7b8f7 100644 --- a/src/model/mixin/dataFormat.ts +++ b/src/model/mixin/dataFormat.ts @@ -35,7 +35,7 @@ import { } from '../../util/types'; import GlobalModel from '../Global'; import { TooltipMarkupBlockFragment } from '../../component/tooltip/tooltipMarkup'; -import { makePrintable } from '../../util/log'; +import { error, makePrintable } from '../../util/log'; const DIMENSION_LABEL_REG = /\{@(.+?)\}/g; @@ -70,7 +70,7 @@ export class DataFormatMixin { const borderColor = style && style.stroke as ColorString; const mainType = this.mainType; const isSeries = mainType === 'series'; - const userOutput = data.userOutput; + const userOutput = data.userOutput && data.userOutput.get(); return { componentType: mainType, @@ -149,9 +149,16 @@ export class DataFormatMixin { // Do not support '}' in dim name util have to. return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr: string) { const len = dimStr.length; - const dimLoose: DimensionLoose = (dimStr.charAt(0) === '[' && dimStr.charAt(len - 1) === ']') - ? +dimStr.slice(1, len - 1) // Also support: '[]' => 0 - : dimStr; + + let dimLoose: DimensionLoose = dimStr; + if (dimLoose.charAt(0) === '[' && dimLoose.charAt(len - 1) === ']') { + dimLoose = +dimLoose.slice(1, len - 1); // Also support: '[]' => 0 + if (__DEV__) { + if (isNaN(dimLoose)) { + error(`Invalide label formatter: @${dimStr}, only support @[0], @[1], @[2], ...`); + } + } + } let val = retrieveRawValue(data, dataIndex, dimLoose) as OptionDataValue; diff --git a/src/processor/dataStack.ts b/src/processor/dataStack.ts index 0d285c12aa..42f7779ba6 100644 --- a/src/processor/dataStack.ts +++ b/src/processor/dataStack.ts @@ -20,19 +20,22 @@ import {createHashMap, each} from 'zrender/src/core/util'; import GlobalModel from '../model/Global'; import SeriesModel from '../model/Series'; -import { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../util/types'; -import SeriesData from '../data/SeriesData'; +import { SeriesOption, SeriesStackOptionMixin } from '../util/types'; +import SeriesData, { DataCalculationInfo } from '../data/SeriesData'; import { addSafe } from '../util/number'; -interface StackInfo { - stackedDimension: DimensionName - isStackedByIndex: boolean - stackedByDimension: DimensionName - stackResultDimension: DimensionName - stackedOverDimension: DimensionName +type StackInfo = Pick< + DataCalculationInfo, + 'stackedDimension' + | 'isStackedByIndex' + | 'stackedByDimension' + | 'stackResultDimension' + | 'stackedOverDimension' +> & { data: SeriesData seriesModel: SeriesModel -} +}; + // (1) [Caution]: the logic is correct based on the premises: // data processing stage is blocked in stream. // See diff --git a/src/util/model.ts b/src/util/model.ts index a16377efa8..9f78c1583e 100644 --- a/src/util/model.ts +++ b/src/util/model.ts @@ -1070,7 +1070,7 @@ export function interpolateRawValues( for (let i = 0; i < length; ++i) { const info = data.getDimensionInfo(i); // Don't interpolate ordinal dims - if (info.type === 'ordinal') { + if (info && info.type === 'ordinal') { // In init, there is no `sourceValue`, but should better not to get undefined result. interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i] as number; } diff --git a/src/util/types.ts b/src/util/types.ts index e8d1cb93e3..b9ef23efd9 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -48,6 +48,7 @@ import ZRText, { TextStyleProps } from 'zrender/src/graphic/Text'; import { Source } from '../data/Source'; import Model from '../model/Model'; import { DataStorageDimensionType } from '../data/DataStorage'; +import { DimensionUserOuputEncode } from '../data/helper/dimensionHelper'; @@ -691,16 +692,6 @@ export interface CallbackDataParams { $vars: string[]; } export type InterpolatableValue = ParsedValue | ParsedValue[]; -export type DimensionUserOuputEncode = { - [coordOrVisualDimName: string]: - // index: coordDimIndex, value: dataDimIndex - DimensionIndex[] -}; -export type DimensionUserOuput = { - // The same as `data.dimensions` - fullDimensions: DimensionName[] - encode: DimensionUserOuputEncode -}; export type DecalDashArrayX = number | (number | number[])[]; export type DecalDashArrayY = number | number[]; diff --git a/src/visual/visualSolution.ts b/src/visual/visualSolution.ts index 2f014a8256..d7ee353756 100644 --- a/src/visual/visualSolution.ts +++ b/src/visual/visualSolution.ts @@ -28,7 +28,8 @@ import { BuiltinVisualProperty, ParsedValue, DimensionLoose, - StageHandlerProgressExecutor + StageHandlerProgressExecutor, + DimensionIndex } from '../util/types'; import SeriesData from '../data/SeriesData'; import { getItemVisualFromData, setItemVisualFromData } from './helper'; @@ -209,9 +210,9 @@ export function incrementalApplyVisual( return { progress: function progress(params, data) { - let dimName: string; + let dimIndex: DimensionIndex; if (dim != null) { - dimName = data.getDimension(dim); + dimIndex = data.getDimensionIndex(dim); } function getVisual(key: string) { @@ -223,6 +224,7 @@ export function incrementalApplyVisual( } let dataIndex: number; + const storage = data.getStorage(); while ((dataIndex = params.next()) != null) { const rawDataItem = data.getRawDataItem(dataIndex); @@ -233,7 +235,7 @@ export function incrementalApplyVisual( } const value = dim != null - ? data.get(dimName, dataIndex) + ? storage.get(dimIndex, dataIndex) : dataIndex; const valueState = getValueState(value); diff --git a/test/dataset-case.html b/test/dataset-case.html index 49b0bee486..2357e7cda4 100644 --- a/test/dataset-case.html +++ b/test/dataset-case.html @@ -37,8 +37,265 @@ -
+
+
+
+
+
+ + + + + + + @@ -48,52 +305,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/dataset-performance.html b/test/dataset-performance.html index cfd3be263f..25e12f41eb 100644 --- a/test/dataset-performance.html +++ b/test/dataset-performance.html @@ -175,6 +175,18 @@ } }) }, + // series: indexes.map(index => { + // return { + // type: 'line', + // name: index, + // animation: false, + // showSymbol: false, + // stack: 'main', + // lineStyle: { + // width: 0.5 + // } + // } + // }) series: indexes.map(index => { return { type: 'line', diff --git a/test/lib/testHelper.js b/test/lib/testHelper.js index e0b8f28f8e..7d4908475c 100644 --- a/test/lib/testHelper.js +++ b/test/lib/testHelper.js @@ -312,6 +312,10 @@ * @param checkFn {Function} param: a function `assert`. */ testHelper.printAssert = function (chartOrDomId, checkerFn) { + if (!chartOrDomId) { + return; + } + var hostDOMEl; var chart; if (typeof chartOrDomId === 'string') { diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json index 2a8d5a552c..25fe94dd45 100644 --- a/test/runTest/actions/__meta__.json +++ b/test/runTest/actions/__meta__.json @@ -61,6 +61,7 @@ "custom-shape-morphing": 1, "custom-text-content": 6, "dataSelect": 7, + "dataset-case": 6, "dataZoom-action": 4, "dataZoom-axes": 4, "dataZoom-axis-type": 3, diff --git a/test/runTest/actions/dataset-case.json b/test/runTest/actions/dataset-case.json new file mode 100644 index 0000000000..23e8b4027f --- /dev/null +++ b/test/runTest/actions/dataset-case.json @@ -0,0 +1 @@ +[{"name":"Action 1","ops":[{"type":"mousemove","time":420,"x":111,"y":360},{"type":"mousemove","time":628,"x":77,"y":398},{"type":"mousemove","time":836,"x":66,"y":390},{"type":"mousedown","time":868,"x":66,"y":390},{"type":"mouseup","time":1012,"x":66,"y":390},{"time":1013,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1037,"x":66,"y":390},{"type":"mousemove","time":1120,"x":66,"y":392},{"type":"mousemove","time":1328,"x":66,"y":412},{"type":"mousedown","time":1380,"x":66,"y":413},{"type":"mouseup","time":1500,"x":66,"y":413},{"time":1501,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1544,"x":66,"y":413},{"type":"mousemove","time":2003,"x":66,"y":417},{"type":"mousemove","time":2204,"x":61,"y":459},{"type":"mousemove","time":2412,"x":60,"y":471},{"type":"mousedown","time":2628,"x":59,"y":468},{"type":"mousemove","time":2644,"x":59,"y":468},{"type":"mouseup","time":2695,"x":59,"y":468},{"time":2696,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2936,"x":59,"y":467},{"type":"mousemove","time":3136,"x":61,"y":439},{"type":"mousedown","time":3201,"x":61,"y":438},{"type":"mouseup","time":3312,"x":61,"y":438},{"time":3313,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3346,"x":61,"y":438},{"type":"mousemove","time":3403,"x":61,"y":439},{"type":"mousemove","time":3610,"x":61,"y":493},{"type":"mousedown","time":3728,"x":61,"y":495},{"type":"mousemove","time":3829,"x":61,"y":495},{"type":"mouseup","time":3845,"x":61,"y":495},{"time":3846,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4086,"x":61,"y":495},{"type":"mousedown","time":4228,"x":62,"y":489},{"type":"mousemove","time":4293,"x":62,"y":489},{"type":"mouseup","time":4331,"x":62,"y":489},{"time":4332,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4535,"x":62,"y":491},{"type":"mousedown","time":4711,"x":62,"y":505},{"type":"mousemove","time":4736,"x":62,"y":505},{"type":"mouseup","time":4827,"x":62,"y":505},{"time":4828,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5137,"x":62,"y":505},{"type":"mousemove","time":5344,"x":71,"y":488},{"type":"mousedown","time":5486,"x":72,"y":484},{"type":"mousemove","time":5560,"x":72,"y":484},{"type":"mouseup","time":5613,"x":72,"y":484},{"time":5614,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5785,"x":72,"y":483},{"type":"mousemove","time":5995,"x":72,"y":463},{"type":"mousedown","time":6003,"x":72,"y":463},{"type":"mouseup","time":6111,"x":72,"y":463},{"time":6112,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6220,"x":72,"y":462},{"type":"mousemove","time":6428,"x":72,"y":443},{"type":"mousedown","time":6553,"x":72,"y":438},{"type":"mousemove","time":6645,"x":72,"y":438},{"type":"mouseup","time":6693,"x":72,"y":438},{"time":6694,"delay":400,"type":"screenshot-auto"}],"scrollY":0,"scrollX":0,"timestamp":1629397351306},{"name":"Action 2","ops":[{"type":"mousedown","time":500,"x":99,"y":302},{"type":"mouseup","time":667,"x":99,"y":302},{"time":668,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":827,"x":99,"y":303},{"type":"mousemove","time":1035,"x":97,"y":325},{"type":"mousedown","time":1188,"x":96,"y":328},{"type":"mousemove","time":1316,"x":96,"y":328},{"type":"mouseup","time":1323,"x":96,"y":328},{"time":1324,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1409,"x":96,"y":328},{"type":"mousemove","time":1609,"x":96,"y":297},{"type":"mousedown","time":1802,"x":96,"y":282},{"type":"mousemove","time":1818,"x":96,"y":282},{"type":"mouseup","time":1919,"x":96,"y":282},{"time":1920,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1975,"x":96,"y":282},{"type":"mousemove","time":2176,"x":96,"y":340},{"type":"mousemove","time":2376,"x":95,"y":350},{"type":"mousedown","time":2502,"x":95,"y":352},{"type":"mousemove","time":2586,"x":95,"y":352},{"type":"mouseup","time":2602,"x":95,"y":352},{"time":2603,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2843,"x":95,"y":352},{"type":"mousemove","time":3043,"x":82,"y":392},{"type":"mousedown","time":3085,"x":82,"y":392},{"type":"mouseup","time":3185,"x":82,"y":392},{"time":3186,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3243,"x":82,"y":392},{"type":"mousemove","time":3409,"x":82,"y":391},{"type":"mousedown","time":3552,"x":84,"y":383},{"type":"mousemove","time":3610,"x":84,"y":383},{"type":"mouseup","time":3655,"x":84,"y":383},{"time":3656,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3859,"x":84,"y":383},{"type":"mousemove","time":4059,"x":83,"y":401},{"type":"mousedown","time":4152,"x":83,"y":402},{"type":"mouseup","time":4256,"x":83,"y":402},{"time":4257,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4278,"x":83,"y":402},{"type":"mousemove","time":4576,"x":83,"y":400},{"type":"mousemove","time":4783,"x":86,"y":389},{"type":"mousedown","time":4859,"x":86,"y":389},{"type":"mouseup","time":4966,"x":86,"y":389},{"time":4967,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5178,"x":86,"y":388},{"type":"mousedown","time":5384,"x":86,"y":377},{"type":"mousemove","time":5400,"x":86,"y":377},{"type":"mouseup","time":5491,"x":86,"y":377},{"time":5492,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5776,"x":86,"y":373},{"type":"mousemove","time":5976,"x":89,"y":358},{"type":"mousedown","time":6005,"x":89,"y":357},{"type":"mouseup","time":6118,"x":89,"y":357},{"time":6119,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6187,"x":89,"y":357},{"type":"mousemove","time":6260,"x":89,"y":356},{"type":"mousemove","time":6460,"x":89,"y":336},{"type":"mousedown","time":6520,"x":89,"y":334},{"type":"mouseup","time":6653,"x":89,"y":334},{"time":6654,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6681,"x":89,"y":334},{"type":"mousemove","time":6810,"x":89,"y":334},{"type":"mousemove","time":7010,"x":89,"y":306},{"type":"mousedown","time":7104,"x":89,"y":305},{"type":"mousemove","time":7219,"x":89,"y":305},{"type":"mouseup","time":7227,"x":89,"y":305},{"time":7228,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7459,"x":89,"y":304},{"type":"mousemove","time":7669,"x":91,"y":283},{"type":"mousedown","time":7690,"x":91,"y":283},{"type":"mouseup","time":7809,"x":91,"y":283},{"time":7810,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7862,"x":91,"y":285},{"type":"mousemove","time":8062,"x":89,"y":383},{"type":"mousemove","time":8270,"x":83,"y":418},{"type":"mousemove","time":8476,"x":86,"y":405},{"type":"mousedown","time":8518,"x":86,"y":405},{"type":"mouseup","time":8634,"x":86,"y":405},{"time":8635,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8678,"x":86,"y":405},{"type":"mousemove","time":8859,"x":87,"y":405},{"type":"mousemove","time":9060,"x":162,"y":341},{"type":"mousemove","time":9270,"x":162,"y":341}],"scrollY":642,"scrollX":0,"timestamp":1629397363631},{"name":"Action 3","ops":[{"type":"mousemove","time":246,"x":109,"y":267},{"type":"mousedown","time":428,"x":108,"y":260},{"type":"mousemove","time":452,"x":108,"y":260},{"type":"mouseup","time":555,"x":108,"y":260},{"time":556,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":645,"x":108,"y":262},{"type":"mousemove","time":853,"x":108,"y":279},{"type":"mousedown","time":871,"x":108,"y":279},{"type":"mouseup","time":973,"x":108,"y":279},{"time":974,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1070,"x":108,"y":279},{"type":"mousemove","time":1231,"x":108,"y":281},{"type":"mousemove","time":1441,"x":92,"y":333},{"type":"mousedown","time":1473,"x":92,"y":333},{"type":"mouseup","time":1622,"x":92,"y":333},{"time":1623,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1745,"x":92,"y":333},{"type":"mousemove","time":1945,"x":94,"y":312},{"type":"mousedown","time":1989,"x":94,"y":311},{"type":"mouseup","time":2095,"x":94,"y":311},{"time":2096,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2154,"x":94,"y":311},{"type":"mousemove","time":2329,"x":94,"y":311},{"type":"mousemove","time":2539,"x":100,"y":278},{"type":"mousedown","time":2577,"x":100,"y":276},{"type":"mouseup","time":2721,"x":100,"y":276},{"time":2722,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2754,"x":100,"y":276},{"type":"mousemove","time":2896,"x":100,"y":277},{"type":"mousedown","time":3022,"x":100,"y":279},{"type":"mousemove","time":3105,"x":100,"y":279},{"type":"mouseup","time":3138,"x":100,"y":279},{"time":3139,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3379,"x":100,"y":280},{"type":"mousemove","time":3579,"x":88,"y":340},{"type":"mousemove","time":3779,"x":85,"y":352},{"type":"mousedown","time":3907,"x":83,"y":361},{"type":"mousemove","time":3988,"x":83,"y":361},{"type":"mouseup","time":4021,"x":83,"y":361},{"time":4022,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4162,"x":83,"y":363},{"type":"mousemove","time":4362,"x":83,"y":388},{"type":"mousedown","time":4421,"x":83,"y":388},{"type":"mouseup","time":4587,"x":83,"y":388},{"time":4588,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4796,"x":83,"y":387},{"type":"mousemove","time":5006,"x":94,"y":350},{"type":"mousedown","time":5095,"x":97,"y":342},{"type":"mousemove","time":5221,"x":97,"y":342},{"type":"mouseup","time":5289,"x":97,"y":342},{"time":5290,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5394,"x":97,"y":343},{"type":"mousemove","time":5599,"x":97,"y":348},{"type":"mousedown","time":5624,"x":97,"y":348},{"type":"mouseup","time":5756,"x":97,"y":348},{"time":5757,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5929,"x":97,"y":349},{"type":"mousemove","time":6131,"x":97,"y":354},{"type":"mousedown","time":6159,"x":97,"y":354},{"type":"mouseup","time":6258,"x":97,"y":354},{"time":6259,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6340,"x":97,"y":354},{"type":"mousemove","time":6497,"x":97,"y":357},{"type":"mousemove","time":6707,"x":86,"y":381},{"type":"mousedown","time":6772,"x":86,"y":382},{"type":"mouseup","time":6873,"x":86,"y":382},{"time":6874,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6924,"x":86,"y":382},{"type":"mousemove","time":7081,"x":86,"y":379},{"type":"mousemove","time":7289,"x":94,"y":320},{"type":"mousemove","time":7496,"x":97,"y":313},{"type":"mousedown","time":7517,"x":97,"y":313},{"type":"mouseup","time":7670,"x":97,"y":313},{"time":7671,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7879,"x":97,"y":312},{"type":"mousemove","time":8078,"x":102,"y":287},{"type":"mousedown","time":8157,"x":102,"y":286},{"type":"mousemove","time":8279,"x":102,"y":286},{"type":"mouseup","time":8309,"x":102,"y":286},{"time":8310,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8397,"x":102,"y":285},{"type":"mousemove","time":8609,"x":102,"y":268},{"type":"mousedown","time":8662,"x":102,"y":266},{"type":"mouseup","time":8792,"x":102,"y":266},{"time":8793,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8825,"x":102,"y":266}],"scrollY":1197,"scrollX":0,"timestamp":1629397376601},{"name":"Action 4","ops":[{"type":"mousemove","time":549,"x":116,"y":368},{"type":"mousemove","time":749,"x":40,"y":337},{"type":"mousemove","time":959,"x":18,"y":334},{"type":"mousemove","time":1171,"x":28,"y":336},{"type":"mousemove","time":1374,"x":33,"y":376},{"type":"mousemove","time":1582,"x":33,"y":378},{"type":"mousemove","time":1793,"x":34,"y":328},{"type":"mousemove","time":1994,"x":37,"y":295},{"type":"mousemove","time":2201,"x":179,"y":306},{"type":"mousemove","time":2411,"x":277,"y":333},{"type":"mousemove","time":2611,"x":278,"y":333},{"type":"mousemove","time":2811,"x":286,"y":333},{"type":"mousemove","time":3011,"x":288,"y":402},{"type":"mousemove","time":3211,"x":290,"y":416},{"type":"mousemove","time":3420,"x":290,"y":419},{"type":"mousemove","time":3478,"x":290,"y":419},{"type":"mousemove","time":3692,"x":570,"y":342},{"type":"mousemove","time":3894,"x":583,"y":361},{"type":"mousemove","time":4094,"x":581,"y":368},{"type":"mousemove","time":4294,"x":579,"y":231},{"type":"mousemove","time":4494,"x":576,"y":226},{"type":"mousemove","time":4694,"x":187,"y":264},{"type":"mousemove","time":4894,"x":109,"y":232},{"type":"mousemove","time":5103,"x":47,"y":259},{"type":"mousemove","time":5311,"x":34,"y":274},{"type":"mousemove","time":5524,"x":30,"y":274},{"type":"mousemove","time":5737,"x":30,"y":273},{"type":"mousedown","time":5888,"x":30,"y":273},{"type":"mousemove","time":5897,"x":30,"y":277},{"type":"mousemove","time":6097,"x":28,"y":314},{"type":"mousemove","time":6312,"x":30,"y":328},{"type":"mouseup","time":6523,"x":30,"y":326},{"time":6524,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6534,"x":32,"y":322},{"type":"mousemove","time":6738,"x":36,"y":272},{"type":"mousemove","time":6955,"x":35,"y":270},{"type":"mousemove","time":7188,"x":34,"y":268},{"type":"mousedown","time":7390,"x":34,"y":268},{"type":"mousemove","time":7399,"x":34,"y":270},{"type":"mousemove","time":7601,"x":32,"y":312},{"type":"mousemove","time":7806,"x":33,"y":334},{"type":"mousemove","time":8012,"x":34,"y":340},{"type":"mouseup","time":8190,"x":34,"y":340},{"time":8191,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8200,"x":33,"y":343},{"type":"mousemove","time":8407,"x":27,"y":375},{"type":"mousemove","time":8621,"x":27,"y":376},{"type":"mousedown","time":8670,"x":27,"y":376},{"type":"mousemove","time":8682,"x":27,"y":374},{"type":"mousemove","time":8898,"x":28,"y":344},{"type":"mousemove","time":9110,"x":31,"y":316},{"type":"mousemove","time":9312,"x":34,"y":286},{"type":"mousemove","time":9527,"x":34,"y":284},{"type":"mouseup","time":9704,"x":34,"y":284},{"time":9705,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":9713,"x":34,"y":290},{"type":"mousemove","time":9922,"x":31,"y":356},{"type":"mousemove","time":10193,"x":32,"y":343},{"type":"mousemove","time":10405,"x":32,"y":337},{"type":"mousedown","time":10724,"x":32,"y":337},{"type":"mousemove","time":10734,"x":32,"y":339},{"type":"mousemove","time":10951,"x":32,"y":437},{"type":"mousemove","time":11172,"x":32,"y":451},{"type":"mouseup","time":11245,"x":32,"y":451},{"time":11246,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":11255,"x":34,"y":447},{"type":"mousemove","time":11455,"x":68,"y":373},{"type":"mousedown","time":11538,"x":68,"y":371},{"type":"mouseup","time":11636,"x":68,"y":371},{"time":11637,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":11672,"x":68,"y":371}],"scrollY":1549,"scrollX":0,"timestamp":1629397393090},{"name":"Action 5","ops":[{"type":"mousemove","time":204,"x":43,"y":319},{"type":"mousemove","time":404,"x":30,"y":318},{"type":"mousemove","time":604,"x":28,"y":316},{"type":"mousemove","time":814,"x":30,"y":315},{"type":"mousedown","time":1047,"x":30,"y":315},{"type":"mousemove","time":1056,"x":30,"y":316},{"type":"mousemove","time":1260,"x":33,"y":342},{"type":"mousemove","time":1470,"x":36,"y":364},{"type":"mousemove","time":1681,"x":36,"y":369},{"type":"mouseup","time":1731,"x":36,"y":369},{"time":1732,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1887,"x":34,"y":421},{"type":"mousemove","time":2087,"x":33,"y":423},{"type":"mousedown","time":2197,"x":33,"y":423},{"type":"mousemove","time":2209,"x":33,"y":418},{"type":"mousemove","time":2421,"x":30,"y":378},{"type":"mousemove","time":2636,"x":32,"y":322},{"type":"mousemove","time":2848,"x":34,"y":311},{"type":"mouseup","time":2885,"x":34,"y":311},{"time":2886,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3055,"x":24,"y":392},{"type":"mousemove","time":3264,"x":23,"y":407},{"type":"mousemove","time":3471,"x":23,"y":402},{"type":"mousemove","time":3671,"x":24,"y":399},{"type":"mousemove","time":3879,"x":24,"y":399},{"type":"mousedown","time":3985,"x":24,"y":399},{"type":"mousemove","time":3995,"x":24,"y":402},{"type":"mousemove","time":4202,"x":28,"y":493},{"type":"mousemove","time":4418,"x":28,"y":496},{"type":"mouseup","time":4463,"x":28,"y":496},{"time":4464,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4475,"x":37,"y":486},{"type":"mousemove","time":4682,"x":101,"y":418}],"scrollY":1991,"scrollX":0,"timestamp":1629397408600},{"name":"Action 6","ops":[{"type":"mousemove","time":532,"x":127,"y":195},{"type":"mousemove","time":732,"x":129,"y":188},{"type":"mousemove","time":932,"x":130,"y":180},{"type":"mousemove","time":1132,"x":130,"y":180},{"type":"mousedown","time":1477,"x":130,"y":180},{"type":"mouseup","time":1614,"x":130,"y":180},{"time":1615,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2849,"x":130,"y":180},{"type":"mousemove","time":3049,"x":275,"y":178},{"type":"mousemove","time":3249,"x":302,"y":181},{"type":"mousedown","time":3376,"x":303,"y":181},{"type":"mousemove","time":3459,"x":303,"y":181},{"type":"mouseup","time":3544,"x":303,"y":181},{"time":3545,"delay":400,"type":"screenshot-auto"},{"type":"mousedown","time":4749,"x":303,"y":181},{"type":"mouseup","time":4927,"x":303,"y":181},{"time":4928,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5250,"x":302,"y":181},{"type":"mousemove","time":5450,"x":237,"y":192},{"type":"mousemove","time":5650,"x":221,"y":184},{"type":"mousedown","time":5725,"x":221,"y":183},{"type":"mousemove","time":5858,"x":221,"y":183},{"type":"mouseup","time":5878,"x":221,"y":183},{"time":5879,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6282,"x":228,"y":183},{"type":"mousemove","time":6482,"x":348,"y":214},{"type":"mousedown","time":6664,"x":355,"y":216},{"type":"mousemove","time":6696,"x":355,"y":216},{"type":"mouseup","time":6760,"x":355,"y":216},{"time":6761,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7199,"x":355,"y":216},{"type":"mousemove","time":7400,"x":374,"y":211},{"type":"mousemove","time":7610,"x":377,"y":211},{"type":"mousedown","time":8180,"x":377,"y":211},{"type":"mouseup","time":8293,"x":377,"y":211},{"time":8294,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8466,"x":383,"y":211},{"type":"mousemove","time":8666,"x":424,"y":211},{"type":"mousedown","time":8732,"x":425,"y":211},{"type":"mouseup","time":8860,"x":425,"y":211},{"time":8861,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8887,"x":425,"y":211},{"type":"mousemove","time":9166,"x":424,"y":211},{"type":"mousemove","time":9366,"x":364,"y":215},{"type":"mousedown","time":9377,"x":363,"y":215},{"type":"mouseup","time":9511,"x":363,"y":215},{"time":9512,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":9580,"x":363,"y":215},{"type":"mousemove","time":9616,"x":364,"y":215},{"type":"mousemove","time":9816,"x":424,"y":215},{"type":"mousemove","time":10025,"x":434,"y":215},{"type":"mousedown","time":10048,"x":434,"y":215},{"type":"mouseup","time":10178,"x":434,"y":215},{"time":10179,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":10282,"x":434,"y":215},{"type":"mousemove","time":10483,"x":394,"y":215},{"type":"mousedown","time":10612,"x":374,"y":214},{"type":"mousemove","time":10693,"x":374,"y":214},{"type":"mouseup","time":10745,"x":374,"y":214},{"time":10746,"delay":400,"type":"screenshot-auto"}],"scrollY":2475,"scrollX":0,"timestamp":1629397417622}] \ No newline at end of file diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index a87abc2c30..e98ef74b2f 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -31,6 +31,7 @@ import SeriesDimensionDefine from '@/src/data/SeriesDimensionDefine'; import OrdinalMeta from '@/src/data/OrdinalMeta'; import DataStorage from '@/src/data/DataStorage'; import { DefaultDataProvider } from '@/src/data/helper/dataProvider'; +import { SeriesDimensionRequest } from '@/src/data/helper/SeriesDimensionRequest'; const ID_PREFIX = 'e\0\0'; @@ -209,19 +210,35 @@ describe('SeriesData', function () { function createStore() { const provider = new DefaultDataProvider([['A', 15], ['B', 25], ['C', 35]]); const store = new DataStorage(); - store.initData(provider, [{type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}]); + store.initData(provider, [{type: 'ordinal'}, {type: 'float'}]); return store; } it('SeriesData can still get other dims value from storage when only part of dims are given.', function () { - const provider = new DefaultDataProvider([['A', 15, 20], ['B', 25, 30], ['C', 35, 40]]); + const source = createSource( + [['A', 15, 20, 'cat'], ['B', 25, 30, 'mouse'], ['C', 35, 40, 'dog']], + { + dimensions: null, + seriesLayoutBy: null, + sourceHeader: false + }, + SOURCE_FORMAT_ARRAY_ROWS + ); const store = new DataStorage(); - store.initData(provider, [ - {type: 'ordinal', name: 'dim0'}, {type: 'float', name: 'dim1'}, {type: 'float', name: 'dim2'} + store.initData(new DefaultDataProvider(source), [ + {type: 'ordinal'}, {type: 'float'}, {type: 'float'}, {type: 'ordinal'} ]); - const dims = [{ type: 'float', name: 'dim1'}]; - const data = new SeriesData(dims, null); + const dimensionRequest = new SeriesDimensionRequest({ + source: source, + dimensionList: [ + { type: 'float', name: 'dim1', storageDimensionIndex: 1 }, + { type: 'ordinal', name: 'dim3', storageDimensionIndex: 3 } + ], + fullDimensionCount: 2, + dimensionOmitted: true + }); + const data = new SeriesData(dimensionRequest, null); data.initData(store); // Store should be the same. expect(data.getStorage()).toBe(store); @@ -229,13 +246,13 @@ describe('SeriesData', function () { expect(data.get('dim1', 0)).toEqual(15); expect(data.get('dim1', 1)).toEqual(25); // Get other dim - expect(data.get('dim0', 0)).toEqual('A'); - expect(data.get('dim0', 1)).toEqual('B'); - expect(data.get('dim2', 0)).toEqual(20); - expect(data.get('dim2', 1)).toEqual(30); + expect(data.getStorage().get(0, 0)).toEqual('A'); + expect(data.getStorage().get(0, 1)).toEqual('B'); + expect(data.getStorage().get(2, 0)).toEqual(20); + expect(data.getStorage().get(2, 1)).toEqual(30); // Get all - expect(data.getValues(['dim0', 'dim1'], 0)).toEqual(['A', 15]); - expect(data.getValues(1)).toEqual(['B', 25, 30]); + expect(data.getValues(['dim3', 'dim1'], 0)).toEqual(['cat', 15]); + expect(data.getValues(1)).toEqual(['B', 25, 30, 'mouse']); }); it('SeriesData#cloneShallow should share storage', function () { diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index 8eb1c0ff25..f4da05b767 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -30,17 +30,15 @@ describe('createDimensions', function () { function doCreateDimensions( source: ParametersOfCreateDimensions[0], opt: ParametersOfCreateDimensions[1] - ) { + ): SeriesDimensionDefine[] { const result = createDimensions(source, opt); - if (result) { - for (let i = 0; i < result.length; i++) { - const item = result[i]; - if (item && item.hasOwnProperty('dimsDef') && (item as any).dimsDef == null) { - delete (item as any).dimsDef; - } + for (let i = 0; i < result.dimensionList.length; i++) { + const item = result.dimensionList[i]; + if (item && item.hasOwnProperty('dimsDef') && (item as any).dimsDef == null) { + delete (item as any).dimsDef; } } - return result; + return result.dimensionList; } it('namesMoreThanDimCount', function () { @@ -156,7 +154,8 @@ describe('createDimensions', function () { 'name': 'date', 'coordDim': 'x', 'coordDimIndex': 0, - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 }, { 'otherDims': { @@ -166,7 +165,8 @@ describe('createDimensions', function () { 'name': 'open', 'coordDim': 'value', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 1 }, { 'otherDims': { @@ -176,7 +176,8 @@ describe('createDimensions', function () { 'name': 'high', 'coordDim': 'value0', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 2 }, { 'otherDims': { @@ -186,7 +187,8 @@ describe('createDimensions', function () { 'name': 'low', 'coordDim': 'value1', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 3 }, { 'otherDims': { @@ -196,7 +198,8 @@ describe('createDimensions', function () { 'name': 'close', 'coordDim': 'value2', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 4 }, { 'otherDims': {}, @@ -204,7 +207,8 @@ describe('createDimensions', function () { 'name': 'volume', 'coordDim': 'value3', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 5 }, { 'otherDims': {}, @@ -212,7 +216,8 @@ describe('createDimensions', function () { 'name': 'haOpen', 'coordDim': 'y', 'coordDimIndex': 0, - 'type': 'float' + 'type': 'float', + 'storageDimensionIndex': 6 }, { 'otherDims': {}, @@ -220,7 +225,8 @@ describe('createDimensions', function () { 'name': 'haHigh', 'coordDim': 'y', 'coordDimIndex': 3, - 'type': 'float' + 'type': 'float', + 'storageDimensionIndex': 7 }, { 'otherDims': {}, @@ -228,7 +234,8 @@ describe('createDimensions', function () { 'name': 'haLow', 'coordDim': 'y', 'coordDimIndex': 2, - 'type': 'float' + 'type': 'float', + 'storageDimensionIndex': 8 }, { 'otherDims': {}, @@ -236,7 +243,8 @@ describe('createDimensions', function () { 'name': 'haClose', 'coordDim': 'y', 'coordDimIndex': 1, - 'type': 'float' + 'type': 'float', + 'storageDimensionIndex': 9 }, { 'otherDims': {}, @@ -244,7 +252,8 @@ describe('createDimensions', function () { 'name': 'sma9', 'coordDim': 'value4', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 10 } ]; @@ -267,13 +276,15 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 } ]); @@ -282,13 +293,15 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 } ]); @@ -297,13 +310,15 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 } ]); @@ -312,7 +327,8 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 } ]); @@ -321,19 +337,22 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': {}, 'coordDim': 'z', 'coordDimIndex': 0, - 'name': 'z' + 'name': 'z', + 'storageDimensionIndex': 2 } ]); @@ -342,7 +361,8 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 } ]); @@ -354,27 +374,31 @@ describe('createDimensions', function () { 'otherDims': {}, 'coordDim': 'x', 'coordDimIndex': 0, - 'name': 'x' + 'name': 'x', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': {}, 'coordDim': 'value', 'coordDimIndex': 0, 'isExtraCoord': true, - 'name': 'value' + 'name': 'value', + 'storageDimensionIndex': 2 }, { 'otherDims': {}, 'coordDim': 'value0', 'coordDimIndex': 0, 'isExtraCoord': true, - 'name': 'value0' + 'name': 'value0', + 'storageDimensionIndex': 3 } ]); }); @@ -408,13 +432,15 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 } ] ); @@ -427,7 +453,8 @@ describe('createDimensions', function () { 'coordDim': 'value', 'coordDimIndex': 0, 'name': 'value', - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 } ] ); @@ -442,13 +469,15 @@ describe('createDimensions', function () { 'type': 'time', 'coordDimIndex': 0, 'ordinalMeta': undefined, - 'coordDim': 'time' + 'coordDim': 'time', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'value', 'coordDimIndex': 0, - 'name': 'value' + 'name': 'value', + 'storageDimensionIndex': 1 } ] ); @@ -477,7 +506,8 @@ describe('createDimensions', function () { 'coordDim': 'y', 'type': 'ordinal', 'displayName': 'base', - 'ordinalMeta': undefined + 'ordinalMeta': undefined, + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -486,7 +516,8 @@ describe('createDimensions', function () { 'defaultTooltip': undefined, 'coordDimIndex': 0, 'coordDim': 'x', - 'displayName': 'open' + 'displayName': 'open', + 'storageDimensionIndex': 1 } ] ); @@ -518,7 +549,8 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 0, 'coordDim': 'y', - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 }, { 'otherDims': { @@ -528,7 +560,8 @@ describe('createDimensions', function () { 'displayName': '打开', 'coordDimIndex': 0, 'ordinalMeta': undefined, - 'coordDim': 'x' + 'coordDim': 'x', + 'storageDimensionIndex': 1 }, { 'otherDims': { @@ -538,7 +571,8 @@ describe('createDimensions', function () { 'displayName': '关闭', 'ordinalMeta': undefined, 'coordDimIndex': 1, - 'coordDim': 'x' + 'coordDim': 'x', + 'storageDimensionIndex': 2 } ] ); @@ -568,7 +602,8 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'coordDim': 'x', 'ordinalMeta': undefined, - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 }, { 'otherDims': { @@ -579,7 +614,8 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'defaultTooltip': undefined, 'coordDimIndex': 0, - 'coordDim': 'y' + 'coordDim': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': {}, @@ -587,7 +623,8 @@ describe('createDimensions', function () { 'displayName': '关闭', 'coordDimIndex': 0, 'isExtraCoord': true, - 'coordDim': 'value' + 'coordDim': 'value', + 'storageDimensionIndex': 2 } ] ); @@ -625,20 +662,23 @@ describe('createDimensions', function () { 'name': '挨克思', 'type': 'ordinal', 'coordDim': 'x', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': {}, 'displayName': '歪溜', 'name': '歪溜', 'coordDim': 'value', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 2 } ] ); @@ -656,20 +696,23 @@ describe('createDimensions', function () { 'name': '挨克思', 'type': 'ordinal', 'coordDim': 'x', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': {}, 'name': 'value', 'coordDim': 'value', 'type': 'ordinal', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 2 } ] ); @@ -688,7 +731,8 @@ describe('createDimensions', function () { 'type': 'ordinal', 'ordinalMeta': undefined, 'coordDimIndex': 0, - 'coordDim': 'time' + 'coordDim': 'time', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -696,7 +740,8 @@ describe('createDimensions', function () { 'name': '歪溜', 'type': 'float', 'coordDim': 'value', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 1 } ] ); @@ -716,7 +761,8 @@ describe('createDimensions', function () { 'type': 'ordinal', 'ordinalMeta': undefined, 'coordDimIndex': 0, - 'coordDim': 'time' + 'coordDim': 'time', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -724,7 +770,8 @@ describe('createDimensions', function () { 'name': '泰亩0', 'type': 'float', 'coordDim': 'value', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 1 } ] ); @@ -766,7 +813,8 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'name': 'value', 'isExtraCoord': true, - 'type': 'ordinal' + 'type': 'ordinal', + 'storageDimensionIndex': 0 } ] ); @@ -790,13 +838,15 @@ describe('createDimensions', function () { 'type': 'ordinal', 'coordDim': 'value', 'coordDimIndex': 0, - 'isExtraCoord': true + 'isExtraCoord': true, + 'storageDimensionIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, - 'name': 'y' + 'name': 'y', + 'storageDimensionIndex': 1 }, { 'otherDims': { @@ -805,7 +855,8 @@ describe('createDimensions', function () { 'displayName': '歪溜', 'name': '歪溜', 'coordDim': 'x', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 2 } ] ); @@ -829,7 +880,8 @@ describe('createDimensions', function () { 'name': '挨克思', 'type': 'ordinal', 'coordDim': 'z', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -837,7 +889,8 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'name': 'y', 'type': 'time', - 'ordinalMeta': undefined + 'ordinalMeta': undefined, + 'storageDimensionIndex': 1 }, { 'otherDims': { @@ -846,7 +899,8 @@ describe('createDimensions', function () { 'displayName': '歪溜', 'name': '歪溜', 'coordDim': 'x', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 2 } ] ); @@ -869,7 +923,8 @@ describe('createDimensions', function () { 'type': 'ordinal', 'ordinalMeta': undefined, 'coordDimIndex': 0, - 'coordDim': 'time' + 'coordDim': 'time', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -877,7 +932,8 @@ describe('createDimensions', function () { 'name': '歪溜', 'type': 'float', 'coordDim': 'value', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 1 } ] ); @@ -900,7 +956,8 @@ describe('createDimensions', function () { 'type': 'ordinal', 'ordinalMeta': undefined, 'coordDimIndex': 0, - 'coordDim': 'time' + 'coordDim': 'time', + 'storageDimensionIndex': 0 }, { 'otherDims': {}, @@ -908,7 +965,8 @@ describe('createDimensions', function () { 'name': '歪溜', 'type': 'float', 'coordDim': 'value', - 'coordDimIndex': 0 + 'coordDimIndex': 0, + 'storageDimensionIndex': 1 } ] ); From 5e38220b2b984d6aac72be7d134c1522b3d92cad Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 04:32:26 +0800 Subject: [PATCH 50/64] update eslint-plugin version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af14c15dd3..88704070be 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-replace": "^2.3.4", "@types/jest": "^26.0.14", - "@typescript-eslint/eslint-plugin": "^4.9.1", + "@typescript-eslint/eslint-plugin": "^4.29.1", "@typescript-eslint/parser": "^4.9.1", "chalk": "^3.0.0", "commander": "2.11.0", From 39c71111cc5ff87a07cfacb6dbc4446b5017ac1b Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 05:47:49 +0800 Subject: [PATCH 51/64] fix: rename `SeriesDimensionRequest` to `SeriesDataSchema`. --- dist/echarts.js.map | 8 +++++- src/chart/helper/createSeriesData.ts | 10 +++---- src/data/SeriesData.ts | 26 +++++++++---------- ...imensionRequest.ts => SeriesDataSchema.ts} | 10 +++---- src/data/helper/createDimensions.ts | 8 +++--- src/data/helper/dataStackHelper.ts | 18 ++++++------- src/data/helper/dimensionHelper.ts | 16 ++++++------ src/data/helper/sourceManager.ts | 4 +-- test/ut/spec/data/SeriesData.test.ts | 6 ++--- 9 files changed, 56 insertions(+), 50 deletions(-) rename src/data/helper/{SeriesDimensionRequest.ts => SeriesDataSchema.ts} (97%) diff --git a/dist/echarts.js.map b/dist/echarts.js.map index 5ac16ee614..b2704e66ae 100644 --- a/dist/echarts.js.map +++ b/dist/echarts.js.map @@ -1 +1,7 @@ -{"version":3,"file":"echarts.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/zrender/lib/core/env.js","../node_modules/zrender/lib/core/util.js","../node_modules/zrender/lib/core/vector.js","../node_modules/zrender/lib/mixin/Draggable.js","../node_modules/zrender/lib/core/Eventful.js","../node_modules/zrender/lib/core/fourPointsTransform.js","../node_modules/zrender/lib/core/dom.js","../node_modules/zrender/lib/core/event.js","../node_modules/zrender/lib/core/GestureMgr.js","../node_modules/zrender/lib/Handler.js","../node_modules/zrender/lib/core/timsort.js","../node_modules/zrender/lib/graphic/constants.js","../node_modules/zrender/lib/Storage.js","../node_modules/zrender/lib/animation/requestAnimationFrame.js","../node_modules/zrender/lib/animation/easing.js","../node_modules/zrender/lib/animation/Clip.js","../node_modules/zrender/lib/core/LRU.js","../node_modules/zrender/lib/tool/color.js","../node_modules/zrender/lib/animation/Animator.js","../node_modules/zrender/lib/animation/Animation.js","../node_modules/zrender/lib/dom/HandlerProxy.js","../node_modules/zrender/lib/config.js","../node_modules/zrender/lib/core/matrix.js","../node_modules/zrender/lib/core/Transformable.js","../node_modules/zrender/lib/core/Point.js","../node_modules/zrender/lib/core/BoundingRect.js","../node_modules/zrender/lib/contain/text.js","../node_modules/zrender/lib/Element.js","../node_modules/zrender/lib/graphic/Group.js","../node_modules/zrender/lib/zrender.js","../lib/util/number.js","../lib/util/log.js","../lib/util/model.js","../lib/util/clazz.js","../lib/model/mixin/makeStyleMapper.js","../lib/model/mixin/areaStyle.js","../node_modules/zrender/lib/graphic/helper/image.js","../node_modules/zrender/lib/graphic/helper/parseText.js","../node_modules/zrender/lib/graphic/Displayable.js","../node_modules/zrender/lib/core/curve.js","../node_modules/zrender/lib/core/bbox.js","../node_modules/zrender/lib/core/PathProxy.js","../node_modules/zrender/lib/contain/line.js","../node_modules/zrender/lib/contain/cubic.js","../node_modules/zrender/lib/contain/quadratic.js","../node_modules/zrender/lib/contain/util.js","../node_modules/zrender/lib/contain/arc.js","../node_modules/zrender/lib/contain/windingLine.js","../node_modules/zrender/lib/contain/path.js","../node_modules/zrender/lib/graphic/Path.js","../node_modules/zrender/lib/graphic/TSpan.js","../node_modules/zrender/lib/graphic/Image.js","../node_modules/zrender/lib/graphic/helper/roundRect.js","../node_modules/zrender/lib/graphic/helper/subPixelOptimize.js","../node_modules/zrender/lib/graphic/shape/Rect.js","../node_modules/zrender/lib/graphic/Text.js","../lib/util/innerStore.js","../lib/util/states.js","../node_modules/zrender/lib/tool/transformPath.js","../node_modules/zrender/lib/tool/path.js","../node_modules/zrender/lib/graphic/shape/Circle.js","../node_modules/zrender/lib/graphic/shape/Ellipse.js","../node_modules/zrender/lib/graphic/helper/roundSector.js","../node_modules/zrender/lib/graphic/shape/Sector.js","../node_modules/zrender/lib/graphic/shape/Ring.js","../node_modules/zrender/lib/graphic/helper/smoothSpline.js","../node_modules/zrender/lib/graphic/helper/smoothBezier.js","../node_modules/zrender/lib/graphic/helper/poly.js","../node_modules/zrender/lib/graphic/shape/Polygon.js","../node_modules/zrender/lib/graphic/shape/Polyline.js","../node_modules/zrender/lib/graphic/shape/Line.js","../node_modules/zrender/lib/graphic/shape/BezierCurve.js","../node_modules/zrender/lib/graphic/shape/Arc.js","../node_modules/zrender/lib/graphic/CompoundPath.js","../node_modules/zrender/lib/graphic/Gradient.js","../node_modules/zrender/lib/graphic/LinearGradient.js","../node_modules/zrender/lib/graphic/RadialGradient.js","../node_modules/zrender/lib/core/OrientedBoundingRect.js","../node_modules/zrender/lib/graphic/IncrementalDisplayable.js","../lib/util/graphic.js","../lib/label/labelStyle.js","../lib/model/mixin/textStyle.js","../lib/model/mixin/lineStyle.js","../lib/model/mixin/itemStyle.js","../lib/model/Model.js","../lib/util/component.js","../lib/i18n/langEN.js","../lib/i18n/langZH.js","../lib/core/locale.js","../lib/util/time.js","../lib/legacy/getTextRect.js","../lib/util/format.js","../lib/util/layout.js","../lib/model/Component.js","../lib/model/globalDefault.js","../lib/util/types.js","../lib/data/helper/sourceHelper.js","../lib/model/internalComponentCreator.js","../lib/model/mixin/palette.js","../lib/model/Global.js","../lib/core/ExtensionAPI.js","../lib/core/CoordinateSystem.js","../lib/model/OptionManager.js","../lib/preprocessor/helper/compatStyle.js","../lib/preprocessor/backwardCompat.js","../lib/processor/dataStack.js","../lib/data/Source.js","../lib/data/helper/dataProvider.js","../lib/model/mixin/dataFormat.js","../lib/core/task.js","../lib/data/helper/dataValueHelper.js","../lib/data/helper/transform.js","../lib/data/helper/sourceManager.js","../lib/component/tooltip/tooltipMarkup.js","../lib/component/tooltip/seriesFormatTooltip.js","../lib/model/Series.js","../lib/view/Component.js","../lib/chart/helper/createRenderPlanner.js","../lib/view/Chart.js","../lib/util/throttle.js","../lib/visual/style.js","../lib/loading/default.js","../lib/core/Scheduler.js","../lib/theme/light.js","../lib/theme/dark.js","../lib/util/ECEventProcessor.js","../lib/visual/symbol.js","../lib/visual/helper.js","../lib/label/labelGuideHelper.js","../lib/label/labelLayoutHelper.js","../lib/label/LabelManager.js","../lib/legacy/dataSelectAction.js","../lib/util/event.js","../node_modules/zrender/lib/core/WeakMap.js","../lib/util/symbol.js","../node_modules/zrender/lib/canvas/helper.js","../node_modules/zrender/lib/graphic/helper/dashStyle.js","../node_modules/zrender/lib/canvas/graphic.js","../lib/util/decal.js","../lib/visual/decal.js","../node_modules/zrender/lib/tool/parseXML.js","../node_modules/zrender/lib/tool/parseSVG.js","../node_modules/zrender/lib/contain/polygon.js","../lib/coord/geo/Region.js","../lib/coord/geo/GeoSVGResource.js","../lib/coord/geo/parseGeoJson.js","../lib/coord/geo/fix/nanhai.js","../lib/coord/geo/fix/textCoord.js","../lib/coord/geo/fix/geoCoord.js","../lib/coord/geo/fix/diaoyuIsland.js","../lib/coord/geo/GeoJSONResource.js","../lib/coord/geo/geoSourceManager.js","../lib/core/echarts.js","../lib/extension.js","../lib/data/DataDiffer.js","../lib/data/helper/dimensionHelper.js","../lib/data/DataDimensionInfo.js","../lib/data/List.js","../lib/data/helper/completeDimensions.js","../lib/data/helper/createDimensions.js","../lib/model/referHelper.js","../lib/data/helper/dataStackHelper.js","../lib/chart/helper/createListFromArray.js","../lib/scale/Scale.js","../lib/data/OrdinalMeta.js","../lib/scale/helper.js","../lib/scale/Ordinal.js","../lib/scale/Interval.js","../lib/layout/barGrid.js","../lib/scale/Time.js","../lib/scale/Log.js","../lib/coord/scaleRawExtentInfo.js","../lib/coord/axisHelper.js","../lib/coord/axisModelCommonMixin.js","../lib/export/api/helper.js","../lib/coord/axisTickLabelBuilder.js","../lib/coord/Axis.js","../lib/export/api.js","../node_modules/zrender/lib/svg/core.js","../node_modules/zrender/lib/core/arrayDiff.js","../node_modules/zrender/lib/svg/graphic.js","../node_modules/zrender/lib/svg/helper/Definable.js","../node_modules/zrender/lib/svg/helper/GradientManager.js","../node_modules/zrender/lib/svg/helper/PatternManager.js","../node_modules/zrender/lib/svg/helper/ClippathManager.js","../node_modules/zrender/lib/svg/helper/ShadowManager.js","../node_modules/zrender/lib/svg/Painter.js","../lib/renderer/installSVGRenderer.js","../node_modules/zrender/lib/canvas/Layer.js","../node_modules/zrender/lib/canvas/Painter.js","../lib/renderer/installCanvasRenderer.js","../lib/chart/line/LineSeries.js","../lib/chart/helper/labelHelper.js","../lib/chart/helper/Symbol.js","../lib/chart/helper/SymbolDraw.js","../lib/chart/line/helper.js","../lib/util/vendor.js","../lib/chart/line/lineAnimationDiff.js","../lib/chart/line/poly.js","../lib/chart/helper/createClipPathFromCoordSys.js","../lib/coord/CoordinateSystem.js","../lib/chart/line/LineView.js","../lib/layout/points.js","../lib/processor/dataSample.js","../lib/chart/line/install.js","../lib/chart/bar/BaseBarSeries.js","../lib/chart/bar/BarSeries.js","../lib/util/shape/sausage.js","../lib/chart/bar/BarView.js","../lib/chart/bar/install.js","../lib/chart/pie/pieLayout.js","../lib/processor/dataFilter.js","../lib/chart/pie/labelLayout.js","../lib/chart/helper/pieHelper.js","../lib/chart/pie/PieView.js","../lib/chart/helper/createListSimply.js","../lib/visual/LegendVisualProvider.js","../lib/chart/pie/PieSeries.js","../lib/chart/pie/install.js","../lib/chart/scatter/ScatterSeries.js","../lib/chart/helper/LargeSymbolDraw.js","../lib/chart/scatter/ScatterView.js","../lib/coord/cartesian/GridModel.js","../lib/coord/cartesian/AxisModel.js","../lib/coord/axisDefault.js","../lib/coord/axisCommonTypes.js","../lib/coord/axisModelCreator.js","../lib/coord/cartesian/Cartesian.js","../lib/coord/cartesian/Cartesian2D.js","../lib/coord/cartesian/Axis2D.js","../lib/coord/cartesian/cartesianAxisHelper.js","../lib/coord/cartesian/Grid.js","../lib/component/axis/AxisBuilder.js","../lib/component/axisPointer/modelHelper.js","../lib/component/axis/AxisView.js","../lib/component/axis/axisSplitHelper.js","../lib/component/axis/CartesianAxisView.js","../lib/component/grid/installSimple.js","../lib/chart/scatter/install.js","../lib/chart/radar/radarLayout.js","../lib/chart/radar/backwardCompat.js","../lib/chart/radar/RadarView.js","../lib/chart/radar/RadarSeries.js","../lib/coord/radar/RadarModel.js","../lib/component/radar/RadarView.js","../lib/coord/radar/IndicatorAxis.js","../lib/coord/radar/Radar.js","../lib/component/radar/install.js","../lib/chart/radar/install.js","../lib/component/helper/interactionMutex.js","../lib/component/helper/RoamController.js","../lib/component/helper/roamHelper.js","../lib/component/helper/cursorHelper.js","../lib/component/helper/MapDraw.js","../lib/chart/map/MapView.js","../lib/chart/map/MapSeries.js","../lib/chart/map/mapDataStatistic.js","../lib/chart/map/mapSymbolLayout.js","../lib/coord/View.js","../lib/coord/geo/Geo.js","../lib/coord/geo/geoCreator.js","../lib/coord/geo/GeoModel.js","../lib/action/roamHelper.js","../lib/component/geo/GeoView.js","../lib/component/geo/install.js","../lib/chart/map/install.js","../lib/chart/tree/layoutHelper.js","../lib/chart/tree/TreeView.js","../lib/data/helper/linkList.js","../lib/data/Tree.js","../lib/chart/helper/treeHelper.js","../lib/chart/tree/TreeSeries.js","../lib/chart/tree/traversalHelper.js","../lib/chart/tree/treeLayout.js","../lib/chart/tree/treeVisual.js","../lib/chart/tree/treeAction.js","../lib/chart/tree/install.js","../lib/chart/treemap/treemapAction.js","../lib/chart/helper/enableAriaDecalForTree.js","../lib/chart/treemap/TreemapSeries.js","../lib/chart/treemap/Breadcrumb.js","../lib/util/animation.js","../lib/chart/treemap/TreemapView.js","../lib/visual/VisualMapping.js","../lib/chart/treemap/treemapVisual.js","../lib/chart/treemap/treemapLayout.js","../lib/chart/treemap/install.js","../lib/chart/graph/categoryFilter.js","../lib/chart/graph/categoryVisual.js","../lib/chart/graph/edgeVisual.js","../lib/chart/helper/multipleGraphEdgeHelper.js","../lib/chart/graph/simpleLayoutHelper.js","../lib/chart/graph/simpleLayout.js","../lib/chart/graph/graphHelper.js","../lib/chart/graph/circularLayoutHelper.js","../lib/chart/graph/circularLayout.js","../lib/chart/graph/forceHelper.js","../lib/chart/graph/forceLayout.js","../lib/chart/graph/createView.js","../lib/chart/helper/LinePath.js","../lib/chart/helper/Line.js","../lib/chart/helper/LineDraw.js","../lib/chart/graph/adjustEdge.js","../lib/chart/graph/GraphView.js","../lib/data/Graph.js","../lib/chart/helper/createGraphFromNodeEdge.js","../lib/chart/graph/GraphSeries.js","../lib/chart/graph/install.js","../lib/chart/gauge/PointerPath.js","../lib/chart/gauge/GaugeView.js","../lib/chart/gauge/GaugeSeries.js","../lib/chart/gauge/install.js","../lib/chart/funnel/FunnelView.js","../lib/chart/funnel/FunnelSeries.js","../lib/chart/funnel/funnelLayout.js","../lib/chart/funnel/install.js","../lib/chart/parallel/ParallelView.js","../lib/chart/parallel/ParallelSeries.js","../lib/chart/parallel/parallelVisual.js","../lib/coord/parallel/parallelPreprocessor.js","../lib/component/parallel/ParallelView.js","../lib/coord/parallel/ParallelModel.js","../lib/coord/parallel/ParallelAxis.js","../lib/component/helper/sliderMove.js","../lib/coord/parallel/Parallel.js","../lib/coord/parallel/parallelCreator.js","../lib/coord/parallel/AxisModel.js","../lib/component/helper/BrushController.js","../lib/component/helper/brushHelper.js","../lib/component/axis/ParallelAxisView.js","../lib/component/axis/parallelAxisAction.js","../lib/component/parallel/install.js","../lib/chart/parallel/install.js","../lib/chart/sankey/SankeyView.js","../lib/chart/sankey/SankeySeries.js","../lib/chart/sankey/sankeyLayout.js","../lib/chart/sankey/sankeyVisual.js","../lib/chart/sankey/install.js","../lib/chart/helper/whiskerBoxCommon.js","../lib/chart/boxplot/BoxplotSeries.js","../lib/chart/boxplot/BoxplotView.js","../lib/chart/boxplot/boxplotVisual.js","../lib/chart/boxplot/boxplotLayout.js","../lib/chart/boxplot/prepareBoxplotData.js","../lib/chart/boxplot/boxplotTransform.js","../lib/chart/boxplot/install.js","../lib/chart/candlestick/CandlestickView.js","../lib/chart/candlestick/CandlestickSeries.js","../lib/chart/candlestick/preprocessor.js","../lib/chart/candlestick/candlestickVisual.js","../lib/chart/candlestick/candlestickLayout.js","../lib/chart/candlestick/install.js","../lib/chart/helper/EffectSymbol.js","../lib/chart/effectScatter/EffectScatterView.js","../lib/chart/effectScatter/EffectScatterSeries.js","../lib/chart/effectScatter/install.js","../lib/chart/helper/EffectLine.js","../lib/chart/helper/Polyline.js","../lib/chart/helper/EffectPolyline.js","../lib/chart/helper/LargeLineDraw.js","../lib/chart/lines/linesLayout.js","../lib/chart/lines/LinesView.js","../lib/chart/lines/LinesSeries.js","../lib/chart/lines/linesVisual.js","../lib/chart/lines/install.js","../lib/chart/heatmap/HeatmapLayer.js","../lib/chart/heatmap/HeatmapView.js","../lib/chart/heatmap/HeatmapSeries.js","../lib/chart/heatmap/install.js","../lib/chart/bar/PictorialBarView.js","../lib/chart/bar/PictorialBarSeries.js","../lib/chart/bar/installPictorialBar.js","../lib/chart/themeRiver/ThemeRiverView.js","../lib/chart/themeRiver/ThemeRiverSeries.js","../lib/chart/themeRiver/themeRiverLayout.js","../lib/chart/themeRiver/install.js","../lib/chart/sunburst/SunburstPiece.js","../lib/chart/sunburst/sunburstAction.js","../lib/chart/sunburst/SunburstView.js","../lib/chart/sunburst/SunburstSeries.js","../lib/chart/sunburst/sunburstLayout.js","../lib/chart/sunburst/sunburstVisual.js","../lib/chart/sunburst/install.js","../lib/coord/cartesian/prepareCustom.js","../lib/coord/geo/prepareCustom.js","../lib/coord/single/prepareCustom.js","../lib/coord/polar/prepareCustom.js","../lib/coord/calendar/prepareCustom.js","../lib/util/styleCompat.js","../node_modules/zrender/lib/tool/morphPath.js","../lib/chart/custom/install.js","../lib/component/axisPointer/BaseAxisPointer.js","../lib/component/axisPointer/viewHelper.js","../lib/component/axisPointer/CartesianAxisPointer.js","../lib/component/axisPointer/AxisPointerModel.js","../lib/component/axisPointer/globalListener.js","../lib/component/axisPointer/AxisPointerView.js","../lib/component/axisPointer/findPointFromSeries.js","../lib/component/axisPointer/axisTrigger.js","../lib/component/axisPointer/install.js","../lib/component/grid/install.js","../lib/component/axisPointer/PolarAxisPointer.js","../lib/coord/polar/PolarModel.js","../lib/coord/polar/AxisModel.js","../lib/coord/polar/RadiusAxis.js","../lib/coord/polar/AngleAxis.js","../lib/coord/polar/Polar.js","../lib/coord/polar/polarCreator.js","../lib/component/axis/AngleAxisView.js","../lib/component/axis/RadiusAxisView.js","../lib/layout/barPolar.js","../lib/component/polar/install.js","../lib/coord/single/singleAxisHelper.js","../lib/component/axis/SingleAxisView.js","../lib/coord/single/AxisModel.js","../lib/coord/single/SingleAxis.js","../lib/coord/single/Single.js","../lib/coord/single/singleCreator.js","../lib/component/axisPointer/SingleAxisPointer.js","../lib/component/singleAxis/install.js","../lib/coord/calendar/CalendarModel.js","../lib/component/calendar/CalendarView.js","../lib/coord/calendar/Calendar.js","../lib/component/calendar/install.js","../lib/component/graphic/install.js","../lib/component/dataZoom/helper.js","../lib/component/dataZoom/DataZoomModel.js","../lib/component/dataZoom/SelectZoomModel.js","../lib/component/dataZoom/DataZoomView.js","../lib/component/dataZoom/SelectZoomView.js","../lib/component/dataZoom/AxisProxy.js","../lib/component/dataZoom/dataZoomProcessor.js","../lib/component/dataZoom/dataZoomAction.js","../lib/component/dataZoom/installCommon.js","../lib/component/dataZoom/installDataZoomSelect.js","../lib/component/toolbox/featureManager.js","../lib/component/toolbox/ToolboxModel.js","../lib/component/helper/listComponent.js","../lib/component/toolbox/ToolboxView.js","../lib/component/toolbox/feature/SaveAsImage.js","../lib/component/toolbox/feature/MagicType.js","../lib/component/toolbox/feature/DataView.js","../lib/component/dataZoom/history.js","../lib/component/toolbox/feature/Restore.js","../lib/component/helper/BrushTargetManager.js","../lib/component/toolbox/feature/DataZoom.js","../lib/component/toolbox/install.js","../lib/component/tooltip/TooltipModel.js","../lib/component/tooltip/helper.js","../lib/component/tooltip/TooltipHTMLContent.js","../lib/component/tooltip/TooltipRichContent.js","../lib/component/tooltip/TooltipView.js","../lib/component/tooltip/install.js","../lib/component/brush/preprocessor.js","../lib/visual/visualSolution.js","../lib/component/brush/selector.js","../lib/component/brush/visualEncoding.js","../lib/component/brush/BrushView.js","../lib/component/brush/BrushModel.js","../lib/component/toolbox/feature/Brush.js","../lib/component/brush/install.js","../lib/component/title/install.js","../lib/component/timeline/TimelineModel.js","../lib/component/timeline/SliderTimelineModel.js","../lib/component/timeline/TimelineView.js","../lib/component/timeline/TimelineAxis.js","../lib/component/timeline/SliderTimelineView.js","../lib/component/timeline/timelineAction.js","../lib/component/timeline/preprocessor.js","../lib/component/timeline/install.js","../lib/component/marker/checkMarkerInSeries.js","../lib/component/marker/MarkerModel.js","../lib/component/marker/MarkPointModel.js","../lib/component/marker/markerHelper.js","../lib/component/marker/MarkerView.js","../lib/component/marker/MarkPointView.js","../lib/component/marker/installMarkPoint.js","../lib/component/marker/MarkLineModel.js","../lib/component/marker/MarkLineView.js","../lib/component/marker/installMarkLine.js","../lib/component/marker/MarkAreaModel.js","../lib/component/marker/MarkAreaView.js","../lib/component/marker/installMarkArea.js","../lib/component/legend/LegendModel.js","../lib/component/legend/LegendView.js","../lib/component/legend/legendFilter.js","../lib/component/legend/legendAction.js","../lib/component/legend/installLegendPlain.js","../lib/component/legend/ScrollableLegendModel.js","../lib/component/legend/ScrollableLegendView.js","../lib/component/legend/scrollableLegendAction.js","../lib/component/legend/installLegendScroll.js","../lib/component/legend/install.js","../lib/component/dataZoom/InsideZoomModel.js","../lib/component/dataZoom/roams.js","../lib/component/dataZoom/InsideZoomView.js","../lib/component/dataZoom/installDataZoomInside.js","../lib/component/dataZoom/SliderZoomModel.js","../lib/component/dataZoom/SliderZoomView.js","../lib/component/dataZoom/installDataZoomSlider.js","../lib/component/dataZoom/install.js","../lib/visual/visualDefault.js","../lib/component/visualMap/VisualMapModel.js","../lib/component/visualMap/ContinuousModel.js","../lib/component/visualMap/VisualMapView.js","../lib/component/visualMap/helper.js","../lib/component/visualMap/ContinuousView.js","../lib/component/visualMap/visualMapAction.js","../lib/component/visualMap/visualEncoding.js","../lib/component/visualMap/preprocessor.js","../lib/component/visualMap/installCommon.js","../lib/component/visualMap/installVisualMapContinuous.js","../lib/component/visualMap/PiecewiseModel.js","../lib/component/visualMap/PiecewiseView.js","../lib/component/visualMap/installVisualMapPiecewise.js","../lib/component/visualMap/install.js","../lib/visual/aria.js","../lib/component/aria/preprocessor.js","../lib/component/aria/install.js","../lib/util/conditionalExpression.js","../lib/component/transform/filterTransform.js","../lib/component/transform/sortTransform.js","../lib/component/transform/install.js","../lib/component/dataset/install.js","../index.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","var Browser = (function () {\n function Browser() {\n this.firefox = false;\n this.ie = false;\n this.edge = false;\n this.newEdge = false;\n this.weChat = false;\n }\n return Browser;\n}());\nvar Env = (function () {\n function Env() {\n this.browser = new Browser();\n this.node = false;\n this.wxa = false;\n this.worker = false;\n this.canvasSupported = false;\n this.svgSupported = false;\n this.touchEventsSupported = false;\n this.pointerEventsSupported = false;\n this.domSupported = false;\n this.transformSupported = false;\n this.transform3dSupported = false;\n }\n return Env;\n}());\nvar env = new Env();\nif (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {\n env.wxa = true;\n env.canvasSupported = true;\n env.touchEventsSupported = true;\n}\nelse if (typeof document === 'undefined' && typeof self !== 'undefined') {\n env.worker = true;\n env.canvasSupported = true;\n}\nelse if (typeof navigator === 'undefined') {\n env.node = true;\n env.canvasSupported = true;\n env.svgSupported = true;\n}\nelse {\n detect(navigator.userAgent, env);\n}\nfunction detect(ua, env) {\n var browser = env.browser;\n var firefox = ua.match(/Firefox\\/([\\d.]+)/);\n var ie = ua.match(/MSIE\\s([\\d.]+)/)\n || ua.match(/Trident\\/.+?rv:(([\\d.]+))/);\n var edge = ua.match(/Edge?\\/([\\d.]+)/);\n var weChat = (/micromessenger/i).test(ua);\n if (firefox) {\n browser.firefox = true;\n browser.version = firefox[1];\n }\n if (ie) {\n browser.ie = true;\n browser.version = ie[1];\n }\n if (edge) {\n browser.edge = true;\n browser.version = edge[1];\n browser.newEdge = +edge[1].split('.')[0] > 18;\n }\n if (weChat) {\n browser.weChat = true;\n }\n env.canvasSupported = !!document.createElement('canvas').getContext;\n env.svgSupported = typeof SVGRect !== 'undefined';\n env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;\n env.pointerEventsSupported = 'onpointerdown' in window\n && (browser.edge || (browser.ie && +browser.version >= 11));\n env.domSupported = typeof document !== 'undefined';\n var style = document.documentElement.style;\n env.transform3dSupported = ((browser.ie && 'transition' in style)\n || browser.edge\n || (('WebKitCSSMatrix' in window) && ('m11' in new WebKitCSSMatrix()))\n || 'MozPerspective' in style)\n && !('OTransition' in style);\n env.transformSupported = env.transform3dSupported\n || (browser.ie && +browser.version >= 9);\n}\nexport default env;\n","var BUILTIN_OBJECT = {\n '[object Function]': true,\n '[object RegExp]': true,\n '[object Date]': true,\n '[object Error]': true,\n '[object CanvasGradient]': true,\n '[object CanvasPattern]': true,\n '[object Image]': true,\n '[object Canvas]': true\n};\nvar TYPED_ARRAY = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true\n};\nvar objToString = Object.prototype.toString;\nvar arrayProto = Array.prototype;\nvar nativeForEach = arrayProto.forEach;\nvar nativeFilter = arrayProto.filter;\nvar nativeSlice = arrayProto.slice;\nvar nativeMap = arrayProto.map;\nvar ctorFunction = function () { }.constructor;\nvar protoFunction = ctorFunction ? ctorFunction.prototype : null;\nvar methods = {};\nexport function $override(name, fn) {\n methods[name] = fn;\n}\nvar idStart = 0x0907;\nexport function guid() {\n return idStart++;\n}\nexport function logError() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (typeof console !== 'undefined') {\n console.error.apply(console, args);\n }\n}\nexport function clone(source) {\n if (source == null || typeof source !== 'object') {\n return source;\n }\n var result = source;\n var typeStr = objToString.call(source);\n if (typeStr === '[object Array]') {\n if (!isPrimitive(source)) {\n result = [];\n for (var i = 0, len = source.length; i < len; i++) {\n result[i] = clone(source[i]);\n }\n }\n }\n else if (TYPED_ARRAY[typeStr]) {\n if (!isPrimitive(source)) {\n var Ctor = source.constructor;\n if (Ctor.from) {\n result = Ctor.from(source);\n }\n else {\n result = new Ctor(source.length);\n for (var i = 0, len = source.length; i < len; i++) {\n result[i] = clone(source[i]);\n }\n }\n }\n }\n else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {\n result = {};\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n result[key] = clone(source[key]);\n }\n }\n }\n return result;\n}\nexport function merge(target, source, overwrite) {\n if (!isObject(source) || !isObject(target)) {\n return overwrite ? clone(source) : target;\n }\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n var targetProp = target[key];\n var sourceProp = source[key];\n if (isObject(sourceProp)\n && isObject(targetProp)\n && !isArray(sourceProp)\n && !isArray(targetProp)\n && !isDom(sourceProp)\n && !isDom(targetProp)\n && !isBuiltInObject(sourceProp)\n && !isBuiltInObject(targetProp)\n && !isPrimitive(sourceProp)\n && !isPrimitive(targetProp)) {\n merge(targetProp, sourceProp, overwrite);\n }\n else if (overwrite || !(key in target)) {\n target[key] = clone(source[key]);\n }\n }\n }\n return target;\n}\nexport function mergeAll(targetAndSources, overwrite) {\n var result = targetAndSources[0];\n for (var i = 1, len = targetAndSources.length; i < len; i++) {\n result = merge(result, targetAndSources[i], overwrite);\n }\n return result;\n}\nexport function extend(target, source) {\n if (Object.assign) {\n Object.assign(target, source);\n }\n else {\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n}\nexport function defaults(target, source, overlay) {\n var keysArr = keys(source);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n if ((overlay ? source[key] != null : target[key] == null)) {\n target[key] = source[key];\n }\n }\n return target;\n}\nexport var createCanvas = function () {\n return methods.createCanvas();\n};\nmethods.createCanvas = function () {\n return document.createElement('canvas');\n};\nexport function indexOf(array, value) {\n if (array) {\n if (array.indexOf) {\n return array.indexOf(value);\n }\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n }\n return -1;\n}\nexport function inherits(clazz, baseClazz) {\n var clazzPrototype = clazz.prototype;\n function F() { }\n F.prototype = baseClazz.prototype;\n clazz.prototype = new F();\n for (var prop in clazzPrototype) {\n if (clazzPrototype.hasOwnProperty(prop)) {\n clazz.prototype[prop] = clazzPrototype[prop];\n }\n }\n clazz.prototype.constructor = clazz;\n clazz.superClass = baseClazz;\n}\nexport function mixin(target, source, override) {\n target = 'prototype' in target ? target.prototype : target;\n source = 'prototype' in source ? source.prototype : source;\n if (Object.getOwnPropertyNames) {\n var keyList = Object.getOwnPropertyNames(source);\n for (var i = 0; i < keyList.length; i++) {\n var key = keyList[i];\n if (key !== 'constructor') {\n if ((override ? source[key] != null : target[key] == null)) {\n target[key] = source[key];\n }\n }\n }\n }\n else {\n defaults(target, source, override);\n }\n}\nexport function isArrayLike(data) {\n if (!data) {\n return false;\n }\n if (typeof data === 'string') {\n return false;\n }\n return typeof data.length === 'number';\n}\nexport function each(arr, cb, context) {\n if (!(arr && cb)) {\n return;\n }\n if (arr.forEach && arr.forEach === nativeForEach) {\n arr.forEach(cb, context);\n }\n else if (arr.length === +arr.length) {\n for (var i = 0, len = arr.length; i < len; i++) {\n cb.call(context, arr[i], i, arr);\n }\n }\n else {\n for (var key in arr) {\n if (arr.hasOwnProperty(key)) {\n cb.call(context, arr[key], key, arr);\n }\n }\n }\n}\nexport function map(arr, cb, context) {\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.map && arr.map === nativeMap) {\n return arr.map(cb, context);\n }\n else {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n result.push(cb.call(context, arr[i], i, arr));\n }\n return result;\n }\n}\nexport function reduce(arr, cb, memo, context) {\n if (!(arr && cb)) {\n return;\n }\n for (var i = 0, len = arr.length; i < len; i++) {\n memo = cb.call(context, memo, arr[i], i, arr);\n }\n return memo;\n}\nexport function filter(arr, cb, context) {\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.filter && arr.filter === nativeFilter) {\n return arr.filter(cb, context);\n }\n else {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n result.push(arr[i]);\n }\n }\n return result;\n }\n}\nexport function find(arr, cb, context) {\n if (!(arr && cb)) {\n return;\n }\n for (var i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n return arr[i];\n }\n }\n}\nexport function keys(obj) {\n if (!obj) {\n return [];\n }\n if (Object.keys) {\n return Object.keys(obj);\n }\n var keyList = [];\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n keyList.push(key);\n }\n }\n return keyList;\n}\nfunction bindPolyfill(func, context) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n return function () {\n return func.apply(context, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport var bind = (protoFunction && isFunction(protoFunction.bind))\n ? protoFunction.call.bind(protoFunction.bind)\n : bindPolyfill;\nfunction curry(func) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return function () {\n return func.apply(this, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport { curry };\nexport function isArray(value) {\n if (Array.isArray) {\n return Array.isArray(value);\n }\n return objToString.call(value) === '[object Array]';\n}\nexport function isFunction(value) {\n return typeof value === 'function';\n}\nexport function isString(value) {\n return typeof value === 'string';\n}\nexport function isStringSafe(value) {\n return objToString.call(value) === '[object String]';\n}\nexport function isNumber(value) {\n return typeof value === 'number';\n}\nexport function isObject(value) {\n var type = typeof value;\n return type === 'function' || (!!value && type === 'object');\n}\nexport function isBuiltInObject(value) {\n return !!BUILTIN_OBJECT[objToString.call(value)];\n}\nexport function isTypedArray(value) {\n return !!TYPED_ARRAY[objToString.call(value)];\n}\nexport function isDom(value) {\n return typeof value === 'object'\n && typeof value.nodeType === 'number'\n && typeof value.ownerDocument === 'object';\n}\nexport function isGradientObject(value) {\n return value.colorStops != null;\n}\nexport function isImagePatternObject(value) {\n return value.image != null;\n}\nexport function isRegExp(value) {\n return objToString.call(value) === '[object RegExp]';\n}\nexport function eqNaN(value) {\n return value !== value;\n}\nexport function retrieve() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n for (var i = 0, len = args.length; i < len; i++) {\n if (args[i] != null) {\n return args[i];\n }\n }\n}\nexport function retrieve2(value0, value1) {\n return value0 != null\n ? value0\n : value1;\n}\nexport function retrieve3(value0, value1, value2) {\n return value0 != null\n ? value0\n : value1 != null\n ? value1\n : value2;\n}\nexport function slice(arr) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return nativeSlice.apply(arr, args);\n}\nexport function normalizeCssArray(val) {\n if (typeof (val) === 'number') {\n return [val, val, val, val];\n }\n var len = val.length;\n if (len === 2) {\n return [val[0], val[1], val[0], val[1]];\n }\n else if (len === 3) {\n return [val[0], val[1], val[2], val[1]];\n }\n return val;\n}\nexport function assert(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n}\nexport function trim(str) {\n if (str == null) {\n return null;\n }\n else if (typeof str.trim === 'function') {\n return str.trim();\n }\n else {\n return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n }\n}\nvar primitiveKey = '__ec_primitive__';\nexport function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n}\nexport function isPrimitive(obj) {\n return obj[primitiveKey];\n}\nvar HashMap = (function () {\n function HashMap(obj) {\n this.data = {};\n var isArr = isArray(obj);\n this.data = {};\n var thisMap = this;\n (obj instanceof HashMap)\n ? obj.each(visit)\n : (obj && each(obj, visit));\n function visit(value, key) {\n isArr ? thisMap.set(value, key) : thisMap.set(key, value);\n }\n }\n HashMap.prototype.get = function (key) {\n return this.data.hasOwnProperty(key) ? this.data[key] : null;\n };\n HashMap.prototype.set = function (key, value) {\n return (this.data[key] = value);\n };\n HashMap.prototype.each = function (cb, context) {\n for (var key in this.data) {\n if (this.data.hasOwnProperty(key)) {\n cb.call(context, this.data[key], key);\n }\n }\n };\n HashMap.prototype.keys = function () {\n return keys(this.data);\n };\n HashMap.prototype.removeKey = function (key) {\n delete this.data[key];\n };\n return HashMap;\n}());\nexport { HashMap };\nexport function createHashMap(obj) {\n return new HashMap(obj);\n}\nexport function concatArray(a, b) {\n var newArray = new a.constructor(a.length + b.length);\n for (var i = 0; i < a.length; i++) {\n newArray[i] = a[i];\n }\n var offset = a.length;\n for (var i = 0; i < b.length; i++) {\n newArray[i + offset] = b[i];\n }\n return newArray;\n}\nexport function createObject(proto, properties) {\n var obj;\n if (Object.create) {\n obj = Object.create(proto);\n }\n else {\n var StyleCtor = function () { };\n StyleCtor.prototype = proto;\n obj = new StyleCtor();\n }\n if (properties) {\n extend(obj, properties);\n }\n return obj;\n}\nexport function hasOwn(own, prop) {\n return own.hasOwnProperty(prop);\n}\nexport function noop() { }\n","export function create(x, y) {\n if (x == null) {\n x = 0;\n }\n if (y == null) {\n y = 0;\n }\n return [x, y];\n}\nexport function copy(out, v) {\n out[0] = v[0];\n out[1] = v[1];\n return out;\n}\nexport function clone(v) {\n return [v[0], v[1]];\n}\nexport function set(out, a, b) {\n out[0] = a;\n out[1] = b;\n return out;\n}\nexport function add(out, v1, v2) {\n out[0] = v1[0] + v2[0];\n out[1] = v1[1] + v2[1];\n return out;\n}\nexport function scaleAndAdd(out, v1, v2, a) {\n out[0] = v1[0] + v2[0] * a;\n out[1] = v1[1] + v2[1] * a;\n return out;\n}\nexport function sub(out, v1, v2) {\n out[0] = v1[0] - v2[0];\n out[1] = v1[1] - v2[1];\n return out;\n}\nexport function len(v) {\n return Math.sqrt(lenSquare(v));\n}\nexport var length = len;\nexport function lenSquare(v) {\n return v[0] * v[0] + v[1] * v[1];\n}\nexport var lengthSquare = lenSquare;\nexport function mul(out, v1, v2) {\n out[0] = v1[0] * v2[0];\n out[1] = v1[1] * v2[1];\n return out;\n}\nexport function div(out, v1, v2) {\n out[0] = v1[0] / v2[0];\n out[1] = v1[1] / v2[1];\n return out;\n}\nexport function dot(v1, v2) {\n return v1[0] * v2[0] + v1[1] * v2[1];\n}\nexport function scale(out, v, s) {\n out[0] = v[0] * s;\n out[1] = v[1] * s;\n return out;\n}\nexport function normalize(out, v) {\n var d = len(v);\n if (d === 0) {\n out[0] = 0;\n out[1] = 0;\n }\n else {\n out[0] = v[0] / d;\n out[1] = v[1] / d;\n }\n return out;\n}\nexport function distance(v1, v2) {\n return Math.sqrt((v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]));\n}\nexport var dist = distance;\nexport function distanceSquare(v1, v2) {\n return (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]);\n}\nexport var distSquare = distanceSquare;\nexport function negate(out, v) {\n out[0] = -v[0];\n out[1] = -v[1];\n return out;\n}\nexport function lerp(out, v1, v2, t) {\n out[0] = v1[0] + t * (v2[0] - v1[0]);\n out[1] = v1[1] + t * (v2[1] - v1[1]);\n return out;\n}\nexport function applyTransform(out, v, m) {\n var x = v[0];\n var y = v[1];\n out[0] = m[0] * x + m[2] * y + m[4];\n out[1] = m[1] * x + m[3] * y + m[5];\n return out;\n}\nexport function min(out, v1, v2) {\n out[0] = Math.min(v1[0], v2[0]);\n out[1] = Math.min(v1[1], v2[1]);\n return out;\n}\nexport function max(out, v1, v2) {\n out[0] = Math.max(v1[0], v2[0]);\n out[1] = Math.max(v1[1], v2[1]);\n return out;\n}\n","var Param = (function () {\n function Param(target, e) {\n this.target = target;\n this.topTarget = e && e.topTarget;\n }\n return Param;\n}());\nvar Draggable = (function () {\n function Draggable(handler) {\n this.handler = handler;\n handler.on('mousedown', this._dragStart, this);\n handler.on('mousemove', this._drag, this);\n handler.on('mouseup', this._dragEnd, this);\n }\n Draggable.prototype._dragStart = function (e) {\n var draggingTarget = e.target;\n while (draggingTarget && !draggingTarget.draggable) {\n draggingTarget = draggingTarget.parent;\n }\n if (draggingTarget) {\n this._draggingTarget = draggingTarget;\n draggingTarget.dragging = true;\n this._x = e.offsetX;\n this._y = e.offsetY;\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragstart', e.event);\n }\n };\n Draggable.prototype._drag = function (e) {\n var draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n var x = e.offsetX;\n var y = e.offsetY;\n var dx = x - this._x;\n var dy = y - this._y;\n this._x = x;\n this._y = y;\n draggingTarget.drift(dx, dy, e);\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'drag', e.event);\n var dropTarget = this.handler.findHover(x, y, draggingTarget).target;\n var lastDropTarget = this._dropTarget;\n this._dropTarget = dropTarget;\n if (draggingTarget !== dropTarget) {\n if (lastDropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(new Param(lastDropTarget, e), 'dragleave', e.event);\n }\n if (dropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(new Param(dropTarget, e), 'dragenter', e.event);\n }\n }\n }\n };\n Draggable.prototype._dragEnd = function (e) {\n var draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n draggingTarget.dragging = false;\n }\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragend', e.event);\n if (this._dropTarget) {\n this.handler.dispatchToElement(new Param(this._dropTarget, e), 'drop', e.event);\n }\n this._draggingTarget = null;\n this._dropTarget = null;\n };\n return Draggable;\n}());\nexport default Draggable;\n","var Eventful = (function () {\n function Eventful(eventProcessors) {\n if (eventProcessors) {\n this._$eventProcessor = eventProcessors;\n }\n }\n Eventful.prototype.on = function (event, query, handler, context) {\n if (!this._$handlers) {\n this._$handlers = {};\n }\n var _h = this._$handlers;\n if (typeof query === 'function') {\n context = handler;\n handler = query;\n query = null;\n }\n if (!handler || !event) {\n return this;\n }\n var eventProcessor = this._$eventProcessor;\n if (query != null && eventProcessor && eventProcessor.normalizeQuery) {\n query = eventProcessor.normalizeQuery(query);\n }\n if (!_h[event]) {\n _h[event] = [];\n }\n for (var i = 0; i < _h[event].length; i++) {\n if (_h[event][i].h === handler) {\n return this;\n }\n }\n var wrap = {\n h: handler,\n query: query,\n ctx: (context || this),\n callAtLast: handler.zrEventfulCallAtLast\n };\n var lastIndex = _h[event].length - 1;\n var lastWrap = _h[event][lastIndex];\n (lastWrap && lastWrap.callAtLast)\n ? _h[event].splice(lastIndex, 0, wrap)\n : _h[event].push(wrap);\n return this;\n };\n Eventful.prototype.isSilent = function (eventName) {\n var _h = this._$handlers;\n return !_h || !_h[eventName] || !_h[eventName].length;\n };\n Eventful.prototype.off = function (eventType, handler) {\n var _h = this._$handlers;\n if (!_h) {\n return this;\n }\n if (!eventType) {\n this._$handlers = {};\n return this;\n }\n if (handler) {\n if (_h[eventType]) {\n var newList = [];\n for (var i = 0, l = _h[eventType].length; i < l; i++) {\n if (_h[eventType][i].h !== handler) {\n newList.push(_h[eventType][i]);\n }\n }\n _h[eventType] = newList;\n }\n if (_h[eventType] && _h[eventType].length === 0) {\n delete _h[eventType];\n }\n }\n else {\n delete _h[eventType];\n }\n return this;\n };\n Eventful.prototype.trigger = function (eventType) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (!this._$handlers) {\n return this;\n }\n var _h = this._$handlers[eventType];\n var eventProcessor = this._$eventProcessor;\n if (_h) {\n var argLen = args.length;\n var len = _h.length;\n for (var i = 0; i < len; i++) {\n var hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(eventType, hItem.query)) {\n continue;\n }\n switch (argLen) {\n case 0:\n hItem.h.call(hItem.ctx);\n break;\n case 1:\n hItem.h.call(hItem.ctx, args[0]);\n break;\n case 2:\n hItem.h.call(hItem.ctx, args[0], args[1]);\n break;\n default:\n hItem.h.apply(hItem.ctx, args);\n break;\n }\n }\n }\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(eventType);\n return this;\n };\n Eventful.prototype.triggerWithContext = function (type) {\n if (!this._$handlers) {\n return this;\n }\n var _h = this._$handlers[type];\n var eventProcessor = this._$eventProcessor;\n if (_h) {\n var args = arguments;\n var argLen = args.length;\n var ctx = args[argLen - 1];\n var len = _h.length;\n for (var i = 0; i < len; i++) {\n var hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(type, hItem.query)) {\n continue;\n }\n switch (argLen) {\n case 0:\n hItem.h.call(ctx);\n break;\n case 1:\n hItem.h.call(ctx, args[0]);\n break;\n case 2:\n hItem.h.call(ctx, args[0], args[1]);\n break;\n default:\n hItem.h.apply(ctx, args.slice(1, argLen - 1));\n break;\n }\n }\n }\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(type);\n return this;\n };\n return Eventful;\n}());\nexport default Eventful;\n","var LN2 = Math.log(2);\nfunction determinant(rows, rank, rowStart, rowMask, colMask, detCache) {\n var cacheKey = rowMask + '-' + colMask;\n var fullRank = rows.length;\n if (detCache.hasOwnProperty(cacheKey)) {\n return detCache[cacheKey];\n }\n if (rank === 1) {\n var colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);\n return rows[rowStart][colStart];\n }\n var subRowMask = rowMask | (1 << rowStart);\n var subRowStart = rowStart + 1;\n while (rowMask & (1 << subRowStart)) {\n subRowStart++;\n }\n var sum = 0;\n for (var j = 0, colLocalIdx = 0; j < fullRank; j++) {\n var colTag = 1 << j;\n if (!(colTag & colMask)) {\n sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]\n * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);\n colLocalIdx++;\n }\n }\n detCache[cacheKey] = sum;\n return sum;\n}\nexport function buildTransformer(src, dest) {\n var mA = [\n [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],\n [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],\n [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],\n [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],\n [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],\n [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],\n [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],\n [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]\n ];\n var detCache = {};\n var det = determinant(mA, 8, 0, 0, 0, detCache);\n if (det === 0) {\n return;\n }\n var vh = [];\n for (var i = 0; i < 8; i++) {\n for (var j = 0; j < 8; j++) {\n vh[j] == null && (vh[j] = 0);\n vh[j] += ((i + j) % 2 ? -1 : 1)\n * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)\n / det * dest[i];\n }\n }\n return function (out, srcPointX, srcPointY) {\n var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;\n out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;\n out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;\n };\n}\n","import env from './env';\nimport { buildTransformer } from './fourPointsTransform';\nvar EVENT_SAVED_PROP = '___zrEVENTSAVED';\nvar _calcOut = [];\nexport function transformLocalCoord(out, elFrom, elTarget, inX, inY) {\n return transformCoordWithViewport(_calcOut, elFrom, inX, inY, true)\n && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]);\n}\nexport function transformCoordWithViewport(out, el, inX, inY, inverse) {\n if (el.getBoundingClientRect && env.domSupported && !isCanvasEl(el)) {\n var saved = el[EVENT_SAVED_PROP] || (el[EVENT_SAVED_PROP] = {});\n var markers = prepareCoordMarkers(el, saved);\n var transformer = preparePointerTransformer(markers, saved, inverse);\n if (transformer) {\n transformer(out, inX, inY);\n return true;\n }\n }\n return false;\n}\nfunction prepareCoordMarkers(el, saved) {\n var markers = saved.markers;\n if (markers) {\n return markers;\n }\n markers = saved.markers = [];\n var propLR = ['left', 'right'];\n var propTB = ['top', 'bottom'];\n for (var i = 0; i < 4; i++) {\n var marker = document.createElement('div');\n var stl = marker.style;\n var idxLR = i % 2;\n var idxTB = (i >> 1) % 2;\n stl.cssText = [\n 'position: absolute',\n 'visibility: hidden',\n 'padding: 0',\n 'margin: 0',\n 'border-width: 0',\n 'user-select: none',\n 'width:0',\n 'height:0',\n propLR[idxLR] + ':0',\n propTB[idxTB] + ':0',\n propLR[1 - idxLR] + ':auto',\n propTB[1 - idxTB] + ':auto',\n ''\n ].join('!important;');\n el.appendChild(marker);\n markers.push(marker);\n }\n return markers;\n}\nfunction preparePointerTransformer(markers, saved, inverse) {\n var transformerName = inverse ? 'invTrans' : 'trans';\n var transformer = saved[transformerName];\n var oldSrcCoords = saved.srcCoords;\n var srcCoords = [];\n var destCoords = [];\n var oldCoordTheSame = true;\n for (var i = 0; i < 4; i++) {\n var rect = markers[i].getBoundingClientRect();\n var ii = 2 * i;\n var x = rect.left;\n var y = rect.top;\n srcCoords.push(x, y);\n oldCoordTheSame = oldCoordTheSame && oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];\n destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);\n }\n return (oldCoordTheSame && transformer)\n ? transformer\n : (saved.srcCoords = srcCoords,\n saved[transformerName] = inverse\n ? buildTransformer(destCoords, srcCoords)\n : buildTransformer(srcCoords, destCoords));\n}\nexport function isCanvasEl(el) {\n return el.nodeName.toUpperCase() === 'CANVAS';\n}\n","import Eventful from './Eventful';\nimport env from './env';\nimport { isCanvasEl, transformCoordWithViewport } from './dom';\nvar isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;\nvar MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;\nvar _calcOut = [];\nexport function clientToLocal(el, e, out, calculate) {\n out = out || {};\n if (calculate || !env.canvasSupported) {\n calculateZrXY(el, e, out);\n }\n else if (env.browser.firefox\n && e.layerX != null\n && e.layerX !== e.offsetX) {\n out.zrX = e.layerX;\n out.zrY = e.layerY;\n }\n else if (e.offsetX != null) {\n out.zrX = e.offsetX;\n out.zrY = e.offsetY;\n }\n else {\n calculateZrXY(el, e, out);\n }\n return out;\n}\nfunction calculateZrXY(el, e, out) {\n if (env.domSupported && el.getBoundingClientRect) {\n var ex = e.clientX;\n var ey = e.clientY;\n if (isCanvasEl(el)) {\n var box = el.getBoundingClientRect();\n out.zrX = ex - box.left;\n out.zrY = ey - box.top;\n return;\n }\n else {\n if (transformCoordWithViewport(_calcOut, el, ex, ey)) {\n out.zrX = _calcOut[0];\n out.zrY = _calcOut[1];\n return;\n }\n }\n }\n out.zrX = out.zrY = 0;\n}\nexport function getNativeEvent(e) {\n return e\n || window.event;\n}\nexport function normalizeEvent(el, e, calculate) {\n e = getNativeEvent(e);\n if (e.zrX != null) {\n return e;\n }\n var eventType = e.type;\n var isTouch = eventType && eventType.indexOf('touch') >= 0;\n if (!isTouch) {\n clientToLocal(el, e, e, calculate);\n var wheelDelta = getWheelDeltaMayPolyfill(e);\n e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;\n }\n else {\n var touch = eventType !== 'touchend'\n ? e.targetTouches[0]\n : e.changedTouches[0];\n touch && clientToLocal(el, touch, e, calculate);\n }\n var button = e.button;\n if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {\n e.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));\n }\n return e;\n}\nfunction getWheelDeltaMayPolyfill(e) {\n var rawWheelDelta = e.wheelDelta;\n if (rawWheelDelta) {\n return rawWheelDelta;\n }\n var deltaX = e.deltaX;\n var deltaY = e.deltaY;\n if (deltaX == null || deltaY == null) {\n return rawWheelDelta;\n }\n var delta = deltaY !== 0 ? Math.abs(deltaY) : Math.abs(deltaX);\n var sign = deltaY > 0 ? -1\n : deltaY < 0 ? 1\n : deltaX > 0 ? -1\n : 1;\n return 3 * delta * sign;\n}\nexport function addEventListener(el, name, handler, opt) {\n if (isDomLevel2) {\n el.addEventListener(name, handler, opt);\n }\n else {\n el.attachEvent('on' + name, handler);\n }\n}\nexport function removeEventListener(el, name, handler, opt) {\n if (isDomLevel2) {\n el.removeEventListener(name, handler, opt);\n }\n else {\n el.detachEvent('on' + name, handler);\n }\n}\nexport var stop = isDomLevel2\n ? function (e) {\n e.preventDefault();\n e.stopPropagation();\n e.cancelBubble = true;\n }\n : function (e) {\n e.returnValue = false;\n e.cancelBubble = true;\n };\nexport function isMiddleOrRightButtonOnMouseUpDown(e) {\n return e.which === 2 || e.which === 3;\n}\nexport function notLeftMouse(e) {\n return e.which > 1;\n}\nexport { Eventful as Dispatcher };\n","import * as eventUtil from './event';\nvar GestureMgr = (function () {\n function GestureMgr() {\n this._track = [];\n }\n GestureMgr.prototype.recognize = function (event, target, root) {\n this._doTrack(event, target, root);\n return this._recognize(event);\n };\n GestureMgr.prototype.clear = function () {\n this._track.length = 0;\n return this;\n };\n GestureMgr.prototype._doTrack = function (event, target, root) {\n var touches = event.touches;\n if (!touches) {\n return;\n }\n var trackItem = {\n points: [],\n touches: [],\n target: target,\n event: event\n };\n for (var i = 0, len = touches.length; i < len; i++) {\n var touch = touches[i];\n var pos = eventUtil.clientToLocal(root, touch, {});\n trackItem.points.push([pos.zrX, pos.zrY]);\n trackItem.touches.push(touch);\n }\n this._track.push(trackItem);\n };\n GestureMgr.prototype._recognize = function (event) {\n for (var eventName in recognizers) {\n if (recognizers.hasOwnProperty(eventName)) {\n var gestureInfo = recognizers[eventName](this._track, event);\n if (gestureInfo) {\n return gestureInfo;\n }\n }\n }\n };\n return GestureMgr;\n}());\nexport { GestureMgr };\nfunction dist(pointPair) {\n var dx = pointPair[1][0] - pointPair[0][0];\n var dy = pointPair[1][1] - pointPair[0][1];\n return Math.sqrt(dx * dx + dy * dy);\n}\nfunction center(pointPair) {\n return [\n (pointPair[0][0] + pointPair[1][0]) / 2,\n (pointPair[0][1] + pointPair[1][1]) / 2\n ];\n}\nvar recognizers = {\n pinch: function (tracks, event) {\n var trackLen = tracks.length;\n if (!trackLen) {\n return;\n }\n var pinchEnd = (tracks[trackLen - 1] || {}).points;\n var pinchPre = (tracks[trackLen - 2] || {}).points || pinchEnd;\n if (pinchPre\n && pinchPre.length > 1\n && pinchEnd\n && pinchEnd.length > 1) {\n var pinchScale = dist(pinchEnd) / dist(pinchPre);\n !isFinite(pinchScale) && (pinchScale = 1);\n event.pinchScale = pinchScale;\n var pinchCenter = center(pinchEnd);\n event.pinchX = pinchCenter[0];\n event.pinchY = pinchCenter[1];\n return {\n type: 'pinch',\n target: tracks[0].target,\n event: event\n };\n }\n }\n};\n","import { __extends } from \"tslib\";\nimport * as util from './core/util';\nimport * as vec2 from './core/vector';\nimport Draggable from './mixin/Draggable';\nimport Eventful from './core/Eventful';\nimport * as eventTool from './core/event';\nimport { GestureMgr } from './core/GestureMgr';\nvar SILENT = 'silent';\nfunction makeEventPacket(eveType, targetInfo, event) {\n return {\n type: eveType,\n event: event,\n target: targetInfo.target,\n topTarget: targetInfo.topTarget,\n cancelBubble: false,\n offsetX: event.zrX,\n offsetY: event.zrY,\n gestureEvent: event.gestureEvent,\n pinchX: event.pinchX,\n pinchY: event.pinchY,\n pinchScale: event.pinchScale,\n wheelDelta: event.zrDelta,\n zrByTouch: event.zrByTouch,\n which: event.which,\n stop: stopEvent\n };\n}\nfunction stopEvent() {\n eventTool.stop(this.event);\n}\nvar EmptyProxy = (function (_super) {\n __extends(EmptyProxy, _super);\n function EmptyProxy() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.handler = null;\n return _this;\n }\n EmptyProxy.prototype.dispose = function () { };\n EmptyProxy.prototype.setCursor = function () { };\n return EmptyProxy;\n}(Eventful));\nvar HoveredResult = (function () {\n function HoveredResult(x, y) {\n this.x = x;\n this.y = y;\n }\n return HoveredResult;\n}());\nvar handlerNames = [\n 'click', 'dblclick', 'mousewheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n];\nvar Handler = (function (_super) {\n __extends(Handler, _super);\n function Handler(storage, painter, proxy, painterRoot) {\n var _this = _super.call(this) || this;\n _this._hovered = new HoveredResult(0, 0);\n _this.storage = storage;\n _this.painter = painter;\n _this.painterRoot = painterRoot;\n proxy = proxy || new EmptyProxy();\n _this.proxy = null;\n _this.setHandlerProxy(proxy);\n _this._draggingMgr = new Draggable(_this);\n return _this;\n }\n Handler.prototype.setHandlerProxy = function (proxy) {\n if (this.proxy) {\n this.proxy.dispose();\n }\n if (proxy) {\n util.each(handlerNames, function (name) {\n proxy.on && proxy.on(name, this[name], this);\n }, this);\n proxy.handler = this;\n }\n this.proxy = proxy;\n };\n Handler.prototype.mousemove = function (event) {\n var x = event.zrX;\n var y = event.zrY;\n var isOutside = isOutsideBoundary(this, x, y);\n var lastHovered = this._hovered;\n var lastHoveredTarget = lastHovered.target;\n if (lastHoveredTarget && !lastHoveredTarget.__zr) {\n lastHovered = this.findHover(lastHovered.x, lastHovered.y);\n lastHoveredTarget = lastHovered.target;\n }\n var hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);\n var hoveredTarget = hovered.target;\n var proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');\n if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(lastHovered, 'mouseout', event);\n }\n this.dispatchToElement(hovered, 'mousemove', event);\n if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(hovered, 'mouseover', event);\n }\n };\n Handler.prototype.mouseout = function (event) {\n var eventControl = event.zrEventControl;\n if (eventControl !== 'only_globalout') {\n this.dispatchToElement(this._hovered, 'mouseout', event);\n }\n if (eventControl !== 'no_globalout') {\n this.trigger('globalout', { type: 'globalout', event: event });\n }\n };\n Handler.prototype.resize = function () {\n this._hovered = new HoveredResult(0, 0);\n };\n Handler.prototype.dispatch = function (eventName, eventArgs) {\n var handler = this[eventName];\n handler && handler.call(this, eventArgs);\n };\n Handler.prototype.dispose = function () {\n this.proxy.dispose();\n this.storage = null;\n this.proxy = null;\n this.painter = null;\n };\n Handler.prototype.setCursorStyle = function (cursorStyle) {\n var proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(cursorStyle);\n };\n Handler.prototype.dispatchToElement = function (targetInfo, eventName, event) {\n targetInfo = targetInfo || {};\n var el = targetInfo.target;\n if (el && el.silent) {\n return;\n }\n var eventKey = ('on' + eventName);\n var eventPacket = makeEventPacket(eventName, targetInfo, event);\n while (el) {\n el[eventKey]\n && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket));\n el.trigger(eventName, eventPacket);\n el = el.__hostTarget ? el.__hostTarget : el.parent;\n if (eventPacket.cancelBubble) {\n break;\n }\n }\n if (!eventPacket.cancelBubble) {\n this.trigger(eventName, eventPacket);\n if (this.painter && this.painter.eachOtherLayer) {\n this.painter.eachOtherLayer(function (layer) {\n if (typeof (layer[eventKey]) === 'function') {\n layer[eventKey].call(layer, eventPacket);\n }\n if (layer.trigger) {\n layer.trigger(eventName, eventPacket);\n }\n });\n }\n }\n };\n Handler.prototype.findHover = function (x, y, exclude) {\n var list = this.storage.getDisplayList();\n var out = new HoveredResult(x, y);\n for (var i = list.length - 1; i >= 0; i--) {\n var hoverCheckResult = void 0;\n if (list[i] !== exclude\n && !list[i].ignore\n && (hoverCheckResult = isHover(list[i], x, y))) {\n !out.topTarget && (out.topTarget = list[i]);\n if (hoverCheckResult !== SILENT) {\n out.target = list[i];\n break;\n }\n }\n }\n return out;\n };\n Handler.prototype.processGesture = function (event, stage) {\n if (!this._gestureMgr) {\n this._gestureMgr = new GestureMgr();\n }\n var gestureMgr = this._gestureMgr;\n stage === 'start' && gestureMgr.clear();\n var gestureInfo = gestureMgr.recognize(event, this.findHover(event.zrX, event.zrY, null).target, this.proxy.dom);\n stage === 'end' && gestureMgr.clear();\n if (gestureInfo) {\n var type = gestureInfo.type;\n event.gestureEvent = type;\n var res = new HoveredResult();\n res.target = gestureInfo.target;\n this.dispatchToElement(res, type, gestureInfo.event);\n }\n };\n return Handler;\n}(Eventful));\nutil.each(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {\n Handler.prototype[name] = function (event) {\n var x = event.zrX;\n var y = event.zrY;\n var isOutside = isOutsideBoundary(this, x, y);\n var hovered;\n var hoveredTarget;\n if (name !== 'mouseup' || !isOutside) {\n hovered = this.findHover(x, y);\n hoveredTarget = hovered.target;\n }\n if (name === 'mousedown') {\n this._downEl = hoveredTarget;\n this._downPoint = [event.zrX, event.zrY];\n this._upEl = hoveredTarget;\n }\n else if (name === 'mouseup') {\n this._upEl = hoveredTarget;\n }\n else if (name === 'click') {\n if (this._downEl !== this._upEl\n || !this._downPoint\n || vec2.dist(this._downPoint, [event.zrX, event.zrY]) > 4) {\n return;\n }\n this._downPoint = null;\n }\n this.dispatchToElement(hovered, name, event);\n };\n});\nfunction isHover(displayable, x, y) {\n if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {\n var el = displayable;\n var isSilent = void 0;\n var ignoreClip = false;\n while (el) {\n if (el.ignoreClip) {\n ignoreClip = true;\n }\n if (!ignoreClip) {\n var clipPath = el.getClipPath();\n if (clipPath && !clipPath.contain(x, y)) {\n return false;\n }\n if (el.silent) {\n isSilent = true;\n }\n }\n var hostEl = el.__hostTarget;\n el = hostEl ? hostEl : el.parent;\n }\n return isSilent ? SILENT : true;\n }\n return false;\n}\nfunction isOutsideBoundary(handlerInstance, x, y) {\n var painter = handlerInstance.painter;\n return x < 0 || x > painter.getWidth() || y < 0 || y > painter.getHeight();\n}\nexport default Handler;\n","var DEFAULT_MIN_MERGE = 32;\nvar DEFAULT_MIN_GALLOPING = 7;\nvar DEFAULT_TMP_STORAGE_LENGTH = 256;\nfunction minRunLength(n) {\n var r = 0;\n while (n >= DEFAULT_MIN_MERGE) {\n r |= n & 1;\n n >>= 1;\n }\n return n + r;\n}\nfunction makeAscendingRun(array, lo, hi, compare) {\n var runHi = lo + 1;\n if (runHi === hi) {\n return 1;\n }\n if (compare(array[runHi++], array[lo]) < 0) {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n runHi++;\n }\n reverseRun(array, lo, runHi);\n }\n else {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n runHi++;\n }\n }\n return runHi - lo;\n}\nfunction reverseRun(array, lo, hi) {\n hi--;\n while (lo < hi) {\n var t = array[lo];\n array[lo++] = array[hi];\n array[hi--] = t;\n }\n}\nfunction binaryInsertionSort(array, lo, hi, start, compare) {\n if (start === lo) {\n start++;\n }\n for (; start < hi; start++) {\n var pivot = array[start];\n var left = lo;\n var right = start;\n var mid;\n while (left < right) {\n mid = left + right >>> 1;\n if (compare(pivot, array[mid]) < 0) {\n right = mid;\n }\n else {\n left = mid + 1;\n }\n }\n var n = start - left;\n switch (n) {\n case 3:\n array[left + 3] = array[left + 2];\n case 2:\n array[left + 2] = array[left + 1];\n case 1:\n array[left + 1] = array[left];\n break;\n default:\n while (n > 0) {\n array[left + n] = array[left + n - 1];\n n--;\n }\n }\n array[left] = pivot;\n }\n}\nfunction gallopLeft(value, array, start, length, hint, compare) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n if (compare(value, array[start + hint]) > 0) {\n maxOffset = length - hint;\n while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n lastOffset += hint;\n offset += hint;\n }\n else {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n if (compare(value, array[start + m]) > 0) {\n lastOffset = m + 1;\n }\n else {\n offset = m;\n }\n }\n return offset;\n}\nfunction gallopRight(value, array, start, length, hint, compare) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n if (compare(value, array[start + hint]) < 0) {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n else {\n maxOffset = length - hint;\n while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n lastOffset += hint;\n offset += hint;\n }\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n if (compare(value, array[start + m]) < 0) {\n offset = m;\n }\n else {\n lastOffset = m + 1;\n }\n }\n return offset;\n}\nfunction TimSort(array, compare) {\n var minGallop = DEFAULT_MIN_GALLOPING;\n var length = 0;\n var tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n var stackLength = 0;\n var runStart;\n var runLength;\n var stackSize = 0;\n length = array.length;\n if (length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n tmpStorageLength = length >>> 1;\n }\n var tmp = [];\n stackLength = length < 120 ? 5 : length < 1542 ? 10 : length < 119151 ? 19 : 40;\n runStart = [];\n runLength = [];\n function pushRun(_runStart, _runLength) {\n runStart[stackSize] = _runStart;\n runLength[stackSize] = _runLength;\n stackSize += 1;\n }\n function mergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n if ((n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1])\n || (n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1])) {\n if (runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n }\n else if (runLength[n] > runLength[n + 1]) {\n break;\n }\n mergeAt(n);\n }\n }\n function forceMergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n if (n > 0 && runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n mergeAt(n);\n }\n }\n function mergeAt(i) {\n var start1 = runStart[i];\n var length1 = runLength[i];\n var start2 = runStart[i + 1];\n var length2 = runLength[i + 1];\n runLength[i] = length1 + length2;\n if (i === stackSize - 3) {\n runStart[i + 1] = runStart[i + 2];\n runLength[i + 1] = runLength[i + 2];\n }\n stackSize--;\n var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n start1 += k;\n length1 -= k;\n if (length1 === 0) {\n return;\n }\n length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n if (length2 === 0) {\n return;\n }\n if (length1 <= length2) {\n mergeLow(start1, length1, start2, length2);\n }\n else {\n mergeHigh(start1, length1, start2, length2);\n }\n }\n function mergeLow(start1, length1, start2, length2) {\n var i = 0;\n for (i = 0; i < length1; i++) {\n tmp[i] = array[start1 + i];\n }\n var cursor1 = 0;\n var cursor2 = start2;\n var dest = start1;\n array[dest++] = array[cursor2++];\n if (--length2 === 0) {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n return;\n }\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n return;\n }\n var _minGallop = minGallop;\n var count1;\n var count2;\n var exit;\n while (1) {\n count1 = 0;\n count2 = 0;\n exit = false;\n do {\n if (compare(array[cursor2], tmp[cursor1]) < 0) {\n array[dest++] = array[cursor2++];\n count2++;\n count1 = 0;\n if (--length2 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest++] = tmp[cursor1++];\n count1++;\n count2 = 0;\n if (--length1 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n if (exit) {\n break;\n }\n do {\n count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n if (count1 !== 0) {\n for (i = 0; i < count1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n dest += count1;\n cursor1 += count1;\n length1 -= count1;\n if (length1 <= 1) {\n exit = true;\n break;\n }\n }\n array[dest++] = array[cursor2++];\n if (--length2 === 0) {\n exit = true;\n break;\n }\n count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n if (count2 !== 0) {\n for (i = 0; i < count2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n dest += count2;\n cursor2 += count2;\n length2 -= count2;\n if (length2 === 0) {\n exit = true;\n break;\n }\n }\n array[dest++] = tmp[cursor1++];\n if (--length1 === 1) {\n exit = true;\n break;\n }\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n if (exit) {\n break;\n }\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n _minGallop += 2;\n }\n minGallop = _minGallop;\n minGallop < 1 && (minGallop = 1);\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n }\n else if (length1 === 0) {\n throw new Error();\n }\n else {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n }\n }\n function mergeHigh(start1, length1, start2, length2) {\n var i = 0;\n for (i = 0; i < length2; i++) {\n tmp[i] = array[start2 + i];\n }\n var cursor1 = start1 + length1 - 1;\n var cursor2 = length2 - 1;\n var dest = start2 + length2 - 1;\n var customCursor = 0;\n var customDest = 0;\n array[dest--] = array[cursor1--];\n if (--length1 === 0) {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n return;\n }\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n array[dest] = tmp[cursor2];\n return;\n }\n var _minGallop = minGallop;\n while (true) {\n var count1 = 0;\n var count2 = 0;\n var exit = false;\n do {\n if (compare(tmp[cursor2], array[cursor1]) < 0) {\n array[dest--] = array[cursor1--];\n count1++;\n count2 = 0;\n if (--length1 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest--] = tmp[cursor2--];\n count2++;\n count1 = 0;\n if (--length2 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n if (exit) {\n break;\n }\n do {\n count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n if (count1 !== 0) {\n dest -= count1;\n cursor1 -= count1;\n length1 -= count1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = count1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n if (length1 === 0) {\n exit = true;\n break;\n }\n }\n array[dest--] = tmp[cursor2--];\n if (--length2 === 1) {\n exit = true;\n break;\n }\n count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n if (count2 !== 0) {\n dest -= count2;\n cursor2 -= count2;\n length2 -= count2;\n customDest = dest + 1;\n customCursor = cursor2 + 1;\n for (i = 0; i < count2; i++) {\n array[customDest + i] = tmp[customCursor + i];\n }\n if (length2 <= 1) {\n exit = true;\n break;\n }\n }\n array[dest--] = array[cursor1--];\n if (--length1 === 0) {\n exit = true;\n break;\n }\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n if (exit) {\n break;\n }\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n _minGallop += 2;\n }\n minGallop = _minGallop;\n if (minGallop < 1) {\n minGallop = 1;\n }\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n array[dest] = tmp[cursor2];\n }\n else if (length2 === 0) {\n throw new Error();\n }\n else {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n }\n }\n return {\n mergeRuns: mergeRuns,\n forceMergeRuns: forceMergeRuns,\n pushRun: pushRun\n };\n}\nexport default function sort(array, compare, lo, hi) {\n if (!lo) {\n lo = 0;\n }\n if (!hi) {\n hi = array.length;\n }\n var remaining = hi - lo;\n if (remaining < 2) {\n return;\n }\n var runLength = 0;\n if (remaining < DEFAULT_MIN_MERGE) {\n runLength = makeAscendingRun(array, lo, hi, compare);\n binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n return;\n }\n var ts = TimSort(array, compare);\n var minRun = minRunLength(remaining);\n do {\n runLength = makeAscendingRun(array, lo, hi, compare);\n if (runLength < minRun) {\n var force = remaining;\n if (force > minRun) {\n force = minRun;\n }\n binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n runLength = force;\n }\n ts.pushRun(lo, runLength);\n ts.mergeRuns();\n remaining -= runLength;\n lo += runLength;\n } while (remaining !== 0);\n ts.forceMergeRuns();\n}\n","export var REDARAW_BIT = 1;\nexport var STYLE_CHANGED_BIT = 2;\nexport var SHAPE_CHANGED_BIT = 4;\n","import * as util from './core/util';\nimport env from './core/env';\nimport timsort from './core/timsort';\nimport { REDARAW_BIT } from './graphic/constants';\nvar invalidZErrorLogged = false;\nfunction logInvalidZError() {\n if (invalidZErrorLogged) {\n return;\n }\n invalidZErrorLogged = true;\n console.warn('z / z2 / zlevel of displayable is invalid, which may cause unexpected errors');\n}\nfunction shapeCompareFunc(a, b) {\n if (a.zlevel === b.zlevel) {\n if (a.z === b.z) {\n return a.z2 - b.z2;\n }\n return a.z - b.z;\n }\n return a.zlevel - b.zlevel;\n}\nvar Storage = (function () {\n function Storage() {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n this.displayableSortFunc = shapeCompareFunc;\n }\n Storage.prototype.traverse = function (cb, context) {\n for (var i = 0; i < this._roots.length; i++) {\n this._roots[i].traverse(cb, context);\n }\n };\n Storage.prototype.getDisplayList = function (update, includeIgnore) {\n includeIgnore = includeIgnore || false;\n var displayList = this._displayList;\n if (update || !displayList.length) {\n this.updateDisplayList(includeIgnore);\n }\n return displayList;\n };\n Storage.prototype.updateDisplayList = function (includeIgnore) {\n this._displayListLen = 0;\n var roots = this._roots;\n var displayList = this._displayList;\n for (var i = 0, len = roots.length; i < len; i++) {\n this._updateAndAddDisplayable(roots[i], null, includeIgnore);\n }\n displayList.length = this._displayListLen;\n env.canvasSupported && timsort(displayList, shapeCompareFunc);\n };\n Storage.prototype._updateAndAddDisplayable = function (el, clipPaths, includeIgnore) {\n if (el.ignore && !includeIgnore) {\n return;\n }\n el.beforeUpdate();\n el.update();\n el.afterUpdate();\n var userSetClipPath = el.getClipPath();\n if (el.ignoreClip) {\n clipPaths = null;\n }\n else if (userSetClipPath) {\n if (clipPaths) {\n clipPaths = clipPaths.slice();\n }\n else {\n clipPaths = [];\n }\n var currentClipPath = userSetClipPath;\n var parentClipPath = el;\n while (currentClipPath) {\n currentClipPath.parent = parentClipPath;\n currentClipPath.updateTransform();\n clipPaths.push(currentClipPath);\n parentClipPath = currentClipPath;\n currentClipPath = currentClipPath.getClipPath();\n }\n }\n if (el.childrenRef) {\n var children = el.childrenRef();\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (el.__dirty) {\n child.__dirty |= REDARAW_BIT;\n }\n this._updateAndAddDisplayable(child, clipPaths, includeIgnore);\n }\n el.__dirty = 0;\n }\n else {\n var disp = el;\n if (clipPaths && clipPaths.length) {\n disp.__clipPaths = clipPaths;\n }\n else if (disp.__clipPaths && disp.__clipPaths.length > 0) {\n disp.__clipPaths = [];\n }\n if (isNaN(disp.z)) {\n logInvalidZError();\n disp.z = 0;\n }\n if (isNaN(disp.z2)) {\n logInvalidZError();\n disp.z2 = 0;\n }\n if (isNaN(disp.zlevel)) {\n logInvalidZError();\n disp.zlevel = 0;\n }\n this._displayList[this._displayListLen++] = disp;\n }\n var decalEl = el.getDecalElement && el.getDecalElement();\n if (decalEl) {\n this._updateAndAddDisplayable(decalEl, clipPaths, includeIgnore);\n }\n var textGuide = el.getTextGuideLine();\n if (textGuide) {\n this._updateAndAddDisplayable(textGuide, clipPaths, includeIgnore);\n }\n var textEl = el.getTextContent();\n if (textEl) {\n this._updateAndAddDisplayable(textEl, clipPaths, includeIgnore);\n }\n };\n Storage.prototype.addRoot = function (el) {\n if (el.__zr && el.__zr.storage === this) {\n return;\n }\n this._roots.push(el);\n };\n Storage.prototype.delRoot = function (el) {\n if (el instanceof Array) {\n for (var i = 0, l = el.length; i < l; i++) {\n this.delRoot(el[i]);\n }\n return;\n }\n var idx = util.indexOf(this._roots, el);\n if (idx >= 0) {\n this._roots.splice(idx, 1);\n }\n };\n Storage.prototype.delAllRoots = function () {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n return;\n };\n Storage.prototype.getRoots = function () {\n return this._roots;\n };\n Storage.prototype.dispose = function () {\n this._displayList = null;\n this._roots = null;\n };\n return Storage;\n}());\nexport default Storage;\n","var requestAnimationFrame;\nrequestAnimationFrame = (typeof window !== 'undefined'\n && ((window.requestAnimationFrame && window.requestAnimationFrame.bind(window))\n || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window))\n || window.mozRequestAnimationFrame\n || window.webkitRequestAnimationFrame)) || function (func) {\n return setTimeout(func, 16);\n};\nexport default requestAnimationFrame;\n","var easing = {\n linear: function (k) {\n return k;\n },\n quadraticIn: function (k) {\n return k * k;\n },\n quadraticOut: function (k) {\n return k * (2 - k);\n },\n quadraticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k;\n }\n return -0.5 * (--k * (k - 2) - 1);\n },\n cubicIn: function (k) {\n return k * k * k;\n },\n cubicOut: function (k) {\n return --k * k * k + 1;\n },\n cubicInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k + 2);\n },\n quarticIn: function (k) {\n return k * k * k * k;\n },\n quarticOut: function (k) {\n return 1 - (--k * k * k * k);\n },\n quarticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k;\n }\n return -0.5 * ((k -= 2) * k * k * k - 2);\n },\n quinticIn: function (k) {\n return k * k * k * k * k;\n },\n quinticOut: function (k) {\n return --k * k * k * k * k + 1;\n },\n quinticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k * k * k + 2);\n },\n sinusoidalIn: function (k) {\n return 1 - Math.cos(k * Math.PI / 2);\n },\n sinusoidalOut: function (k) {\n return Math.sin(k * Math.PI / 2);\n },\n sinusoidalInOut: function (k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n },\n exponentialIn: function (k) {\n return k === 0 ? 0 : Math.pow(1024, k - 1);\n },\n exponentialOut: function (k) {\n return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);\n },\n exponentialInOut: function (k) {\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if ((k *= 2) < 1) {\n return 0.5 * Math.pow(1024, k - 1);\n }\n return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);\n },\n circularIn: function (k) {\n return 1 - Math.sqrt(1 - k * k);\n },\n circularOut: function (k) {\n return Math.sqrt(1 - (--k * k));\n },\n circularInOut: function (k) {\n if ((k *= 2) < 1) {\n return -0.5 * (Math.sqrt(1 - k * k) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);\n },\n elasticIn: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return -(a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n },\n elasticOut: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return (a * Math.pow(2, -10 * k)\n * Math.sin((k - s) * (2 * Math.PI) / p) + 1);\n },\n elasticInOut: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n if ((k *= 2) < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n }\n return a * Math.pow(2, -10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;\n },\n backIn: function (k) {\n var s = 1.70158;\n return k * k * ((s + 1) * k - s);\n },\n backOut: function (k) {\n var s = 1.70158;\n return --k * k * ((s + 1) * k + s) + 1;\n },\n backInOut: function (k) {\n var s = 1.70158 * 1.525;\n if ((k *= 2) < 1) {\n return 0.5 * (k * k * ((s + 1) * k - s));\n }\n return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);\n },\n bounceIn: function (k) {\n return 1 - easing.bounceOut(1 - k);\n },\n bounceOut: function (k) {\n if (k < (1 / 2.75)) {\n return 7.5625 * k * k;\n }\n else if (k < (2 / 2.75)) {\n return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;\n }\n else if (k < (2.5 / 2.75)) {\n return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;\n }\n else {\n return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;\n }\n },\n bounceInOut: function (k) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n }\n};\nexport default easing;\n","import easingFuncs from './easing';\nvar Clip = (function () {\n function Clip(opts) {\n this._initialized = false;\n this._startTime = 0;\n this._pausedTime = 0;\n this._paused = false;\n this._life = opts.life || 1000;\n this._delay = opts.delay || 0;\n this.loop = opts.loop == null ? false : opts.loop;\n this.gap = opts.gap || 0;\n this.easing = opts.easing || 'linear';\n this.onframe = opts.onframe;\n this.ondestroy = opts.ondestroy;\n this.onrestart = opts.onrestart;\n }\n Clip.prototype.step = function (globalTime, deltaTime) {\n if (!this._initialized) {\n this._startTime = globalTime + this._delay;\n this._initialized = true;\n }\n if (this._paused) {\n this._pausedTime += deltaTime;\n return;\n }\n var percent = (globalTime - this._startTime - this._pausedTime) / this._life;\n if (percent < 0) {\n percent = 0;\n }\n percent = Math.min(percent, 1);\n var easing = this.easing;\n var easingFunc = typeof easing === 'string'\n ? easingFuncs[easing] : easing;\n var schedule = typeof easingFunc === 'function'\n ? easingFunc(percent)\n : percent;\n this.onframe && this.onframe(schedule);\n if (percent === 1) {\n if (this.loop) {\n this._restart(globalTime);\n this.onrestart && this.onrestart();\n }\n else {\n return true;\n }\n }\n return false;\n };\n Clip.prototype._restart = function (globalTime) {\n var remainder = (globalTime - this._startTime - this._pausedTime) % this._life;\n this._startTime = globalTime - remainder + this.gap;\n this._pausedTime = 0;\n };\n Clip.prototype.pause = function () {\n this._paused = true;\n };\n Clip.prototype.resume = function () {\n this._paused = false;\n };\n return Clip;\n}());\nexport default Clip;\n","var Entry = (function () {\n function Entry(val) {\n this.value = val;\n }\n return Entry;\n}());\nexport { Entry };\nvar LinkedList = (function () {\n function LinkedList() {\n this._len = 0;\n }\n LinkedList.prototype.insert = function (val) {\n var entry = new Entry(val);\n this.insertEntry(entry);\n return entry;\n };\n LinkedList.prototype.insertEntry = function (entry) {\n if (!this.head) {\n this.head = this.tail = entry;\n }\n else {\n this.tail.next = entry;\n entry.prev = this.tail;\n entry.next = null;\n this.tail = entry;\n }\n this._len++;\n };\n LinkedList.prototype.remove = function (entry) {\n var prev = entry.prev;\n var next = entry.next;\n if (prev) {\n prev.next = next;\n }\n else {\n this.head = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n this.tail = prev;\n }\n entry.next = entry.prev = null;\n this._len--;\n };\n LinkedList.prototype.len = function () {\n return this._len;\n };\n LinkedList.prototype.clear = function () {\n this.head = this.tail = null;\n this._len = 0;\n };\n return LinkedList;\n}());\nexport { LinkedList };\nvar LRU = (function () {\n function LRU(maxSize) {\n this._list = new LinkedList();\n this._maxSize = 10;\n this._map = {};\n this._maxSize = maxSize;\n }\n LRU.prototype.put = function (key, value) {\n var list = this._list;\n var map = this._map;\n var removed = null;\n if (map[key] == null) {\n var len = list.len();\n var entry = this._lastRemovedEntry;\n if (len >= this._maxSize && len > 0) {\n var leastUsedEntry = list.head;\n list.remove(leastUsedEntry);\n delete map[leastUsedEntry.key];\n removed = leastUsedEntry.value;\n this._lastRemovedEntry = leastUsedEntry;\n }\n if (entry) {\n entry.value = value;\n }\n else {\n entry = new Entry(value);\n }\n entry.key = key;\n list.insertEntry(entry);\n map[key] = entry;\n }\n return removed;\n };\n LRU.prototype.get = function (key) {\n var entry = this._map[key];\n var list = this._list;\n if (entry != null) {\n if (entry !== list.tail) {\n list.remove(entry);\n list.insertEntry(entry);\n }\n return entry.value;\n }\n };\n LRU.prototype.clear = function () {\n this._list.clear();\n this._map = {};\n };\n LRU.prototype.len = function () {\n return this._list.len();\n };\n return LRU;\n}());\nexport default LRU;\n","import LRU from '../core/LRU';\nvar kCSSColorTable = {\n 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],\n 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],\n 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],\n 'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1],\n 'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1],\n 'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1],\n 'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1],\n 'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1],\n 'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1],\n 'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1],\n 'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1],\n 'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1],\n 'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1],\n 'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1],\n 'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1],\n 'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1],\n 'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1],\n 'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1],\n 'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1],\n 'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1],\n 'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1],\n 'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1],\n 'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1],\n 'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1],\n 'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1],\n 'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1],\n 'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1],\n 'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1],\n 'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1],\n 'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1],\n 'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1],\n 'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1],\n 'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1],\n 'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1],\n 'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1],\n 'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1],\n 'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1],\n 'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1],\n 'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1],\n 'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1],\n 'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1],\n 'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1],\n 'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1],\n 'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1],\n 'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1],\n 'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1],\n 'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1],\n 'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1],\n 'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1],\n 'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1],\n 'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1],\n 'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1],\n 'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1],\n 'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1],\n 'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1],\n 'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1],\n 'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1],\n 'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1],\n 'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1],\n 'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1],\n 'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1],\n 'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1],\n 'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1],\n 'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1],\n 'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1],\n 'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1],\n 'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1],\n 'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1],\n 'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1],\n 'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1],\n 'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1],\n 'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1],\n 'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1],\n 'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1]\n};\nfunction clampCssByte(i) {\n i = Math.round(i);\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\nfunction clampCssAngle(i) {\n i = Math.round(i);\n return i < 0 ? 0 : i > 360 ? 360 : i;\n}\nfunction clampCssFloat(f) {\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\nfunction parseCssInt(val) {\n var str = val;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssByte(parseFloat(str) / 100 * 255);\n }\n return clampCssByte(parseInt(str, 10));\n}\nfunction parseCssFloat(val) {\n var str = val;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssFloat(parseFloat(str) / 100);\n }\n return clampCssFloat(parseFloat(str));\n}\nfunction cssHueToRgb(m1, m2, h) {\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n if (h * 6 < 1) {\n return m1 + (m2 - m1) * h * 6;\n }\n if (h * 2 < 1) {\n return m2;\n }\n if (h * 3 < 2) {\n return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n }\n return m1;\n}\nfunction lerpNumber(a, b, p) {\n return a + (b - a) * p;\n}\nfunction setRgba(out, r, g, b, a) {\n out[0] = r;\n out[1] = g;\n out[2] = b;\n out[3] = a;\n return out;\n}\nfunction copyRgba(out, a) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n return out;\n}\nvar colorCache = new LRU(20);\nvar lastRemovedArr = null;\nfunction putToCache(colorStr, rgbaArr) {\n if (lastRemovedArr) {\n copyRgba(lastRemovedArr, rgbaArr);\n }\n lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));\n}\nexport function parse(colorStr, rgbaArr) {\n if (!colorStr) {\n return;\n }\n rgbaArr = rgbaArr || [];\n var cached = colorCache.get(colorStr);\n if (cached) {\n return copyRgba(rgbaArr, cached);\n }\n colorStr = colorStr + '';\n var str = colorStr.replace(/ /g, '').toLowerCase();\n if (str in kCSSColorTable) {\n copyRgba(rgbaArr, kCSSColorTable[str]);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n var strLen = str.length;\n if (str.charAt(0) === '#') {\n if (strLen === 4 || strLen === 5) {\n var iv = parseInt(str.slice(1, 4), 16);\n if (!(iv >= 0 && iv <= 0xfff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8), (iv & 0xf0) | ((iv & 0xf0) >> 4), (iv & 0xf) | ((iv & 0xf) << 4), strLen === 5 ? parseInt(str.slice(4), 16) / 0xf : 1);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n else if (strLen === 7 || strLen === 9) {\n var iv = parseInt(str.slice(1, 7), 16);\n if (!(iv >= 0 && iv <= 0xffffff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, (iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, iv & 0xff, strLen === 9 ? parseInt(str.slice(7), 16) / 0xff : 1);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n return;\n }\n var op = str.indexOf('(');\n var ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === strLen) {\n var fname = str.substr(0, op);\n var params = str.substr(op + 1, ep - (op + 1)).split(',');\n var alpha = 1;\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) {\n return params.length === 3\n ? setRgba(rgbaArr, +params[0], +params[1], +params[2], 1)\n : setRgba(rgbaArr, 0, 0, 0, 1);\n }\n alpha = parseCssFloat(params.pop());\n case 'rgb':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, parseCssInt(params[0]), parseCssInt(params[1]), parseCssInt(params[2]), alpha);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsla':\n if (params.length !== 4) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n params[3] = parseCssFloat(params[3]);\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsl':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n default:\n return;\n }\n }\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n}\nfunction hsla2rgba(hsla, rgba) {\n var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360;\n var s = parseCssFloat(hsla[1]);\n var l = parseCssFloat(hsla[2]);\n var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n var m1 = l * 2 - m2;\n rgba = rgba || [];\n setRgba(rgba, clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255), clampCssByte(cssHueToRgb(m1, m2, h) * 255), clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255), 1);\n if (hsla.length === 4) {\n rgba[3] = hsla[3];\n }\n return rgba;\n}\nfunction rgba2hsla(rgba) {\n if (!rgba) {\n return;\n }\n var R = rgba[0] / 255;\n var G = rgba[1] / 255;\n var B = rgba[2] / 255;\n var vMin = Math.min(R, G, B);\n var vMax = Math.max(R, G, B);\n var delta = vMax - vMin;\n var L = (vMax + vMin) / 2;\n var H;\n var S;\n if (delta === 0) {\n H = 0;\n S = 0;\n }\n else {\n if (L < 0.5) {\n S = delta / (vMax + vMin);\n }\n else {\n S = delta / (2 - vMax - vMin);\n }\n var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;\n var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;\n var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;\n if (R === vMax) {\n H = deltaB - deltaG;\n }\n else if (G === vMax) {\n H = (1 / 3) + deltaR - deltaB;\n }\n else if (B === vMax) {\n H = (2 / 3) + deltaG - deltaR;\n }\n if (H < 0) {\n H += 1;\n }\n if (H > 1) {\n H -= 1;\n }\n }\n var hsla = [H * 360, S, L];\n if (rgba[3] != null) {\n hsla.push(rgba[3]);\n }\n return hsla;\n}\nexport function lift(color, level) {\n var colorArr = parse(color);\n if (colorArr) {\n for (var i = 0; i < 3; i++) {\n if (level < 0) {\n colorArr[i] = colorArr[i] * (1 - level) | 0;\n }\n else {\n colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;\n }\n if (colorArr[i] > 255) {\n colorArr[i] = 255;\n }\n else if (colorArr[i] < 0) {\n colorArr[i] = 0;\n }\n }\n return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');\n }\n}\nexport function toHex(color) {\n var colorArr = parse(color);\n if (colorArr) {\n return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);\n }\n}\nexport function fastLerp(normalizedValue, colors, out) {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)) {\n return;\n }\n out = out || [];\n var value = normalizedValue * (colors.length - 1);\n var leftIndex = Math.floor(value);\n var rightIndex = Math.ceil(value);\n var leftColor = colors[leftIndex];\n var rightColor = colors[rightIndex];\n var dv = value - leftIndex;\n out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));\n out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));\n out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));\n out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));\n return out;\n}\nexport var fastMapToColor = fastLerp;\nexport function lerp(normalizedValue, colors, fullOutput) {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)) {\n return;\n }\n var value = normalizedValue * (colors.length - 1);\n var leftIndex = Math.floor(value);\n var rightIndex = Math.ceil(value);\n var leftColor = parse(colors[leftIndex]);\n var rightColor = parse(colors[rightIndex]);\n var dv = value - leftIndex;\n var color = stringify([\n clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),\n clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),\n clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),\n clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))\n ], 'rgba');\n return fullOutput\n ? {\n color: color,\n leftIndex: leftIndex,\n rightIndex: rightIndex,\n value: value\n }\n : color;\n}\nexport var mapToColor = lerp;\nexport function modifyHSL(color, h, s, l) {\n var colorArr = parse(color);\n if (color) {\n colorArr = rgba2hsla(colorArr);\n h != null && (colorArr[0] = clampCssAngle(h));\n s != null && (colorArr[1] = parseCssFloat(s));\n l != null && (colorArr[2] = parseCssFloat(l));\n return stringify(hsla2rgba(colorArr), 'rgba');\n }\n}\nexport function modifyAlpha(color, alpha) {\n var colorArr = parse(color);\n if (colorArr && alpha != null) {\n colorArr[3] = clampCssFloat(alpha);\n return stringify(colorArr, 'rgba');\n }\n}\nexport function stringify(arrColor, type) {\n if (!arrColor || !arrColor.length) {\n return;\n }\n var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];\n if (type === 'rgba' || type === 'hsva' || type === 'hsla') {\n colorStr += ',' + arrColor[3];\n }\n return type + '(' + colorStr + ')';\n}\nexport function lum(color, backgroundLum) {\n var arr = parse(color);\n return arr\n ? (0.299 * arr[0] + 0.587 * arr[1] + 0.114 * arr[2]) * arr[3] / 255\n + (1 - arr[3]) * backgroundLum\n : 0;\n}\nexport function random() {\n var r = Math.round(Math.random() * 255);\n var g = Math.round(Math.random() * 255);\n var b = Math.round(Math.random() * 255);\n return 'rgb(' + r + ',' + g + ',' + b + ')';\n}\n","import Clip from './Clip';\nimport * as color from '../tool/color';\nimport { isArrayLike, keys, logError } from '../core/util';\nvar arraySlice = Array.prototype.slice;\nexport function interpolateNumber(p0, p1, percent) {\n return (p1 - p0) * percent + p0;\n}\nexport function step(p0, p1, percent) {\n return percent > 0.5 ? p1 : p0;\n}\nexport function interpolate1DArray(out, p0, p1, percent) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = interpolateNumber(p0[i], p1[i], percent);\n }\n}\nexport function interpolate2DArray(out, p0, p1, percent) {\n var len = p0.length;\n var len2 = len && p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = interpolateNumber(p0[i][j], p1[i][j], percent);\n }\n }\n}\nfunction add1DArray(out, p0, p1, sign) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = p0[i] + p1[i] * sign;\n }\n return out;\n}\nfunction add2DArray(out, p0, p1, sign) {\n var len = p0.length;\n var len2 = len && p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = p0[i][j] + p1[i][j] * sign;\n }\n }\n return out;\n}\nfunction fillArray(val0, val1, arrDim) {\n var arr0 = val0;\n var arr1 = val1;\n if (!arr0.push || !arr1.push) {\n return;\n }\n var arr0Len = arr0.length;\n var arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n var isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n arr0.length = arr1Len;\n }\n else {\n for (var i = arr0Len; i < arr1Len; i++) {\n arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n }\n }\n }\n var len2 = arr0[0] && arr0[0].length;\n for (var i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i])) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (var j = 0; j < len2; j++) {\n if (isNaN(arr0[i][j])) {\n arr0[i][j] = arr1[i][j];\n }\n }\n }\n }\n}\nfunction is1DArraySame(arr0, arr1) {\n var len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n for (var i = 0; i < len; i++) {\n if (arr0[i] !== arr1[i]) {\n return false;\n }\n }\n return true;\n}\nfunction is2DArraySame(arr0, arr1) {\n var len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n var len2 = arr0[0].length;\n for (var i = 0; i < len; i++) {\n for (var j = 0; j < len2; j++) {\n if (arr0[i][j] !== arr1[i][j]) {\n return false;\n }\n }\n }\n return true;\n}\nfunction catmullRomInterpolate(p0, p1, p2, p3, t, t2, t3) {\n var v0 = (p2 - p0) * 0.5;\n var v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\nfunction catmullRomInterpolate1DArray(out, p0, p1, p2, p3, t, t2, t3) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = catmullRomInterpolate(p0[i], p1[i], p2[i], p3[i], t, t2, t3);\n }\n}\nfunction catmullRomInterpolate2DArray(out, p0, p1, p2, p3, t, t2, t3) {\n var len = p0.length;\n var len2 = p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[1] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = catmullRomInterpolate(p0[i][j], p1[i][j], p2[i][j], p3[i][j], t, t2, t3);\n }\n }\n}\nexport function cloneValue(value) {\n if (isArrayLike(value)) {\n var len = value.length;\n if (isArrayLike(value[0])) {\n var ret = [];\n for (var i = 0; i < len; i++) {\n ret.push(arraySlice.call(value[i]));\n }\n return ret;\n }\n return arraySlice.call(value);\n }\n return value;\n}\nfunction rgba2String(rgba) {\n rgba[0] = Math.floor(rgba[0]);\n rgba[1] = Math.floor(rgba[1]);\n rgba[2] = Math.floor(rgba[2]);\n return 'rgba(' + rgba.join(',') + ')';\n}\nfunction guessArrayDim(value) {\n return isArrayLike(value && value[0]) ? 2 : 1;\n}\nvar tmpRgba = [0, 0, 0, 0];\nvar Track = (function () {\n function Track(propName) {\n this.keyframes = [];\n this.maxTime = 0;\n this.arrDim = 0;\n this.interpolable = true;\n this._needsSort = false;\n this._isAllValueEqual = true;\n this._lastFrame = 0;\n this._lastFramePercent = 0;\n this.propName = propName;\n }\n Track.prototype.isFinished = function () {\n return this._finished;\n };\n Track.prototype.setFinished = function () {\n this._finished = true;\n if (this._additiveTrack) {\n this._additiveTrack.setFinished();\n }\n };\n Track.prototype.needsAnimate = function () {\n return !this._isAllValueEqual && this.keyframes.length >= 2 && this.interpolable;\n };\n Track.prototype.getAdditiveTrack = function () {\n return this._additiveTrack;\n };\n Track.prototype.addKeyframe = function (time, value) {\n if (time >= this.maxTime) {\n this.maxTime = time;\n }\n else {\n this._needsSort = true;\n }\n var keyframes = this.keyframes;\n var len = keyframes.length;\n if (this.interpolable) {\n if (isArrayLike(value)) {\n var arrayDim = guessArrayDim(value);\n if (len > 0 && this.arrDim !== arrayDim) {\n this.interpolable = false;\n return;\n }\n if (arrayDim === 1 && typeof value[0] !== 'number'\n || arrayDim === 2 && typeof value[0][0] !== 'number') {\n this.interpolable = false;\n return;\n }\n if (len > 0) {\n var lastFrame = keyframes[len - 1];\n if (this._isAllValueEqual) {\n if (arrayDim === 1) {\n if (!is1DArraySame(value, lastFrame.value)) {\n this._isAllValueEqual = false;\n }\n }\n else {\n this._isAllValueEqual = false;\n }\n }\n }\n this.arrDim = arrayDim;\n }\n else {\n if (this.arrDim > 0) {\n this.interpolable = false;\n return;\n }\n if (typeof value === 'string') {\n var colorArray = color.parse(value);\n if (colorArray) {\n value = colorArray;\n this.isValueColor = true;\n }\n else {\n this.interpolable = false;\n }\n }\n else if (typeof value !== 'number' || isNaN(value)) {\n this.interpolable = false;\n return;\n }\n if (this._isAllValueEqual && len > 0) {\n var lastFrame = keyframes[len - 1];\n if (this.isValueColor && !is1DArraySame(lastFrame.value, value)) {\n this._isAllValueEqual = false;\n }\n else if (lastFrame.value !== value) {\n this._isAllValueEqual = false;\n }\n }\n }\n }\n var kf = {\n time: time,\n value: value,\n percent: 0\n };\n this.keyframes.push(kf);\n return kf;\n };\n Track.prototype.prepare = function (additiveTrack) {\n var kfs = this.keyframes;\n if (this._needsSort) {\n kfs.sort(function (a, b) {\n return a.time - b.time;\n });\n }\n var arrDim = this.arrDim;\n var kfsLen = kfs.length;\n var lastKf = kfs[kfsLen - 1];\n for (var i = 0; i < kfsLen; i++) {\n kfs[i].percent = kfs[i].time / this.maxTime;\n if (arrDim > 0 && i !== kfsLen - 1) {\n fillArray(kfs[i].value, lastKf.value, arrDim);\n }\n }\n if (additiveTrack\n && this.needsAnimate()\n && additiveTrack.needsAnimate()\n && arrDim === additiveTrack.arrDim\n && this.isValueColor === additiveTrack.isValueColor\n && !additiveTrack._finished) {\n this._additiveTrack = additiveTrack;\n var startValue = kfs[0].value;\n for (var i = 0; i < kfsLen; i++) {\n if (arrDim === 0) {\n if (this.isValueColor) {\n kfs[i].additiveValue\n = add1DArray([], kfs[i].value, startValue, -1);\n }\n else {\n kfs[i].additiveValue = kfs[i].value - startValue;\n }\n }\n else if (arrDim === 1) {\n kfs[i].additiveValue = add1DArray([], kfs[i].value, startValue, -1);\n }\n else if (arrDim === 2) {\n kfs[i].additiveValue = add2DArray([], kfs[i].value, startValue, -1);\n }\n }\n }\n };\n Track.prototype.step = function (target, percent) {\n if (this._finished) {\n return;\n }\n if (this._additiveTrack && this._additiveTrack._finished) {\n this._additiveTrack = null;\n }\n var isAdditive = this._additiveTrack != null;\n var valueKey = isAdditive ? 'additiveValue' : 'value';\n var keyframes = this.keyframes;\n var kfsNum = this.keyframes.length;\n var propName = this.propName;\n var arrDim = this.arrDim;\n var isValueColor = this.isValueColor;\n var frameIdx;\n if (percent < 0) {\n frameIdx = 0;\n }\n else if (percent < this._lastFramePercent) {\n var start = Math.min(this._lastFrame + 1, kfsNum - 1);\n for (frameIdx = start; frameIdx >= 0; frameIdx--) {\n if (keyframes[frameIdx].percent <= percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx, kfsNum - 2);\n }\n else {\n for (frameIdx = this._lastFrame; frameIdx < kfsNum; frameIdx++) {\n if (keyframes[frameIdx].percent > percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx - 1, kfsNum - 2);\n }\n var nextFrame = keyframes[frameIdx + 1];\n var frame = keyframes[frameIdx];\n if (!(frame && nextFrame)) {\n return;\n }\n this._lastFrame = frameIdx;\n this._lastFramePercent = percent;\n var range = (nextFrame.percent - frame.percent);\n if (range === 0) {\n return;\n }\n var w = (percent - frame.percent) / range;\n var targetArr = isAdditive ? this._additiveValue\n : (isValueColor ? tmpRgba : target[propName]);\n if ((arrDim > 0 || isValueColor) && !targetArr) {\n targetArr = this._additiveValue = [];\n }\n if (this.useSpline) {\n var p1 = keyframes[frameIdx][valueKey];\n var p0 = keyframes[frameIdx === 0 ? frameIdx : frameIdx - 1][valueKey];\n var p2 = keyframes[frameIdx > kfsNum - 2 ? kfsNum - 1 : frameIdx + 1][valueKey];\n var p3 = keyframes[frameIdx > kfsNum - 3 ? kfsNum - 1 : frameIdx + 2][valueKey];\n if (arrDim > 0) {\n arrDim === 1\n ? catmullRomInterpolate1DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w)\n : catmullRomInterpolate2DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w);\n }\n else if (isValueColor) {\n catmullRomInterpolate1DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w);\n if (!isAdditive) {\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n var value = void 0;\n if (!this.interpolable) {\n value = p2;\n }\n else {\n value = catmullRomInterpolate(p0, p1, p2, p3, w, w * w, w * w * w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n else {\n if (arrDim > 0) {\n arrDim === 1\n ? interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w)\n : interpolate2DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);\n }\n else if (isValueColor) {\n interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);\n if (!isAdditive) {\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n var value = void 0;\n if (!this.interpolable) {\n value = step(frame[valueKey], nextFrame[valueKey], w);\n }\n else {\n value = interpolateNumber(frame[valueKey], nextFrame[valueKey], w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n if (isAdditive) {\n this._addToTarget(target);\n }\n };\n Track.prototype._addToTarget = function (target) {\n var arrDim = this.arrDim;\n var propName = this.propName;\n var additiveValue = this._additiveValue;\n if (arrDim === 0) {\n if (this.isValueColor) {\n color.parse(target[propName], tmpRgba);\n add1DArray(tmpRgba, tmpRgba, additiveValue, 1);\n target[propName] = rgba2String(tmpRgba);\n }\n else {\n target[propName] = target[propName] + additiveValue;\n }\n }\n else if (arrDim === 1) {\n add1DArray(target[propName], target[propName], additiveValue, 1);\n }\n else if (arrDim === 2) {\n add2DArray(target[propName], target[propName], additiveValue, 1);\n }\n };\n return Track;\n}());\nvar Animator = (function () {\n function Animator(target, loop, additiveTo) {\n this._tracks = {};\n this._trackKeys = [];\n this._delay = 0;\n this._maxTime = 0;\n this._paused = false;\n this._started = 0;\n this._clip = null;\n this._target = target;\n this._loop = loop;\n if (loop && additiveTo) {\n logError('Can\\' use additive animation on looped animation.');\n return;\n }\n this._additiveAnimators = additiveTo;\n }\n Animator.prototype.getTarget = function () {\n return this._target;\n };\n Animator.prototype.changeTarget = function (target) {\n this._target = target;\n };\n Animator.prototype.when = function (time, props) {\n return this.whenWithKeys(time, props, keys(props));\n };\n Animator.prototype.whenWithKeys = function (time, props, propNames) {\n var tracks = this._tracks;\n for (var i = 0; i < propNames.length; i++) {\n var propName = propNames[i];\n var track = tracks[propName];\n if (!track) {\n track = tracks[propName] = new Track(propName);\n var initialValue = void 0;\n var additiveTrack = this._getAdditiveTrack(propName);\n if (additiveTrack) {\n var lastFinalKf = additiveTrack.keyframes[additiveTrack.keyframes.length - 1];\n initialValue = lastFinalKf && lastFinalKf.value;\n if (additiveTrack.isValueColor && initialValue) {\n initialValue = rgba2String(initialValue);\n }\n }\n else {\n initialValue = this._target[propName];\n }\n if (initialValue == null) {\n continue;\n }\n if (time !== 0) {\n track.addKeyframe(0, cloneValue(initialValue));\n }\n this._trackKeys.push(propName);\n }\n track.addKeyframe(time, cloneValue(props[propName]));\n }\n this._maxTime = Math.max(this._maxTime, time);\n return this;\n };\n Animator.prototype.pause = function () {\n this._clip.pause();\n this._paused = true;\n };\n Animator.prototype.resume = function () {\n this._clip.resume();\n this._paused = false;\n };\n Animator.prototype.isPaused = function () {\n return !!this._paused;\n };\n Animator.prototype._doneCallback = function () {\n this._setTracksFinished();\n this._clip = null;\n var doneList = this._doneList;\n if (doneList) {\n var len = doneList.length;\n for (var i = 0; i < len; i++) {\n doneList[i].call(this);\n }\n }\n };\n Animator.prototype._abortedCallback = function () {\n this._setTracksFinished();\n var animation = this.animation;\n var abortedList = this._abortedList;\n if (animation) {\n animation.removeClip(this._clip);\n }\n this._clip = null;\n if (abortedList) {\n for (var i = 0; i < abortedList.length; i++) {\n abortedList[i].call(this);\n }\n }\n };\n Animator.prototype._setTracksFinished = function () {\n var tracks = this._tracks;\n var tracksKeys = this._trackKeys;\n for (var i = 0; i < tracksKeys.length; i++) {\n tracks[tracksKeys[i]].setFinished();\n }\n };\n Animator.prototype._getAdditiveTrack = function (trackName) {\n var additiveTrack;\n var additiveAnimators = this._additiveAnimators;\n if (additiveAnimators) {\n for (var i = 0; i < additiveAnimators.length; i++) {\n var track = additiveAnimators[i].getTrack(trackName);\n if (track) {\n additiveTrack = track;\n }\n }\n }\n return additiveTrack;\n };\n Animator.prototype.start = function (easing, forceAnimate) {\n if (this._started > 0) {\n return;\n }\n this._started = 1;\n var self = this;\n var tracks = [];\n for (var i = 0; i < this._trackKeys.length; i++) {\n var propName = this._trackKeys[i];\n var track = this._tracks[propName];\n var additiveTrack = this._getAdditiveTrack(propName);\n var kfs = track.keyframes;\n track.prepare(additiveTrack);\n if (track.needsAnimate()) {\n tracks.push(track);\n }\n else if (!track.interpolable) {\n var lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n self._target[track.propName] = lastKf.value;\n }\n }\n }\n if (tracks.length || forceAnimate) {\n var clip = new Clip({\n life: this._maxTime,\n loop: this._loop,\n delay: this._delay,\n onframe: function (percent) {\n self._started = 2;\n var additiveAnimators = self._additiveAnimators;\n if (additiveAnimators) {\n var stillHasAdditiveAnimator = false;\n for (var i = 0; i < additiveAnimators.length; i++) {\n if (additiveAnimators[i]._clip) {\n stillHasAdditiveAnimator = true;\n break;\n }\n }\n if (!stillHasAdditiveAnimator) {\n self._additiveAnimators = null;\n }\n }\n for (var i = 0; i < tracks.length; i++) {\n tracks[i].step(self._target, percent);\n }\n var onframeList = self._onframeList;\n if (onframeList) {\n for (var i = 0; i < onframeList.length; i++) {\n onframeList[i](self._target, percent);\n }\n }\n },\n ondestroy: function () {\n self._doneCallback();\n }\n });\n this._clip = clip;\n if (this.animation) {\n this.animation.addClip(clip);\n }\n if (easing && easing !== 'spline') {\n clip.easing = easing;\n }\n }\n else {\n this._doneCallback();\n }\n return this;\n };\n Animator.prototype.stop = function (forwardToLast) {\n if (!this._clip) {\n return;\n }\n var clip = this._clip;\n if (forwardToLast) {\n clip.onframe(1);\n }\n this._abortedCallback();\n };\n Animator.prototype.delay = function (time) {\n this._delay = time;\n return this;\n };\n Animator.prototype.during = function (cb) {\n if (cb) {\n if (!this._onframeList) {\n this._onframeList = [];\n }\n this._onframeList.push(cb);\n }\n return this;\n };\n Animator.prototype.done = function (cb) {\n if (cb) {\n if (!this._doneList) {\n this._doneList = [];\n }\n this._doneList.push(cb);\n }\n return this;\n };\n Animator.prototype.aborted = function (cb) {\n if (cb) {\n if (!this._abortedList) {\n this._abortedList = [];\n }\n this._abortedList.push(cb);\n }\n return this;\n };\n Animator.prototype.getClip = function () {\n return this._clip;\n };\n Animator.prototype.getTrack = function (propName) {\n return this._tracks[propName];\n };\n Animator.prototype.stopTracks = function (propNames, forwardToLast) {\n if (!propNames.length || !this._clip) {\n return true;\n }\n var tracks = this._tracks;\n var tracksKeys = this._trackKeys;\n for (var i = 0; i < propNames.length; i++) {\n var track = tracks[propNames[i]];\n if (track) {\n if (forwardToLast) {\n track.step(this._target, 1);\n }\n else if (this._started === 1) {\n track.step(this._target, 0);\n }\n track.setFinished();\n }\n }\n var allAborted = true;\n for (var i = 0; i < tracksKeys.length; i++) {\n if (!tracks[tracksKeys[i]].isFinished()) {\n allAborted = false;\n break;\n }\n }\n if (allAborted) {\n this._abortedCallback();\n }\n return allAborted;\n };\n Animator.prototype.saveFinalToTarget = function (target, trackKeys) {\n if (!target) {\n return;\n }\n trackKeys = trackKeys || this._trackKeys;\n for (var i = 0; i < trackKeys.length; i++) {\n var propName = trackKeys[i];\n var track = this._tracks[propName];\n if (!track || track.isFinished()) {\n continue;\n }\n var kfs = track.keyframes;\n var lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n var val = cloneValue(lastKf.value);\n if (track.isValueColor) {\n val = rgba2String(val);\n }\n target[propName] = val;\n }\n }\n };\n Animator.prototype.__changeFinalValue = function (finalProps, trackKeys) {\n trackKeys = trackKeys || keys(finalProps);\n for (var i = 0; i < trackKeys.length; i++) {\n var propName = trackKeys[i];\n var track = this._tracks[propName];\n if (!track) {\n continue;\n }\n var kfs = track.keyframes;\n if (kfs.length > 1) {\n var lastKf = kfs.pop();\n track.addKeyframe(lastKf.time, finalProps[propName]);\n track.prepare(track.getAdditiveTrack());\n }\n }\n };\n return Animator;\n}());\nexport default Animator;\n","import { __extends } from \"tslib\";\nimport Eventful from '../core/Eventful';\nimport requestAnimationFrame from './requestAnimationFrame';\nimport Animator from './Animator';\nvar Animation = (function (_super) {\n __extends(Animation, _super);\n function Animation(opts) {\n var _this = _super.call(this) || this;\n _this._running = false;\n _this._time = 0;\n _this._pausedTime = 0;\n _this._pauseStart = 0;\n _this._paused = false;\n opts = opts || {};\n _this.stage = opts.stage || {};\n _this.onframe = opts.onframe || function () { };\n return _this;\n }\n Animation.prototype.addClip = function (clip) {\n if (clip.animation) {\n this.removeClip(clip);\n }\n if (!this._clipsHead) {\n this._clipsHead = this._clipsTail = clip;\n }\n else {\n this._clipsTail.next = clip;\n clip.prev = this._clipsTail;\n clip.next = null;\n this._clipsTail = clip;\n }\n clip.animation = this;\n };\n Animation.prototype.addAnimator = function (animator) {\n animator.animation = this;\n var clip = animator.getClip();\n if (clip) {\n this.addClip(clip);\n }\n };\n Animation.prototype.removeClip = function (clip) {\n if (!clip.animation) {\n return;\n }\n var prev = clip.prev;\n var next = clip.next;\n if (prev) {\n prev.next = next;\n }\n else {\n this._clipsHead = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n this._clipsTail = prev;\n }\n clip.next = clip.prev = clip.animation = null;\n };\n Animation.prototype.removeAnimator = function (animator) {\n var clip = animator.getClip();\n if (clip) {\n this.removeClip(clip);\n }\n animator.animation = null;\n };\n Animation.prototype.update = function (notTriggerFrameAndStageUpdate) {\n var time = new Date().getTime() - this._pausedTime;\n var delta = time - this._time;\n var clip = this._clipsHead;\n while (clip) {\n var nextClip = clip.next;\n var finished = clip.step(time, delta);\n if (finished) {\n clip.ondestroy && clip.ondestroy();\n this.removeClip(clip);\n clip = nextClip;\n }\n else {\n clip = nextClip;\n }\n }\n this._time = time;\n if (!notTriggerFrameAndStageUpdate) {\n this.onframe(delta);\n this.trigger('frame', delta);\n this.stage.update && this.stage.update();\n }\n };\n Animation.prototype._startLoop = function () {\n var self = this;\n this._running = true;\n function step() {\n if (self._running) {\n requestAnimationFrame(step);\n !self._paused && self.update();\n }\n }\n requestAnimationFrame(step);\n };\n Animation.prototype.start = function () {\n if (this._running) {\n return;\n }\n this._time = new Date().getTime();\n this._pausedTime = 0;\n this._startLoop();\n };\n Animation.prototype.stop = function () {\n this._running = false;\n };\n Animation.prototype.pause = function () {\n if (!this._paused) {\n this._pauseStart = new Date().getTime();\n this._paused = true;\n }\n };\n Animation.prototype.resume = function () {\n if (this._paused) {\n this._pausedTime += (new Date().getTime()) - this._pauseStart;\n this._paused = false;\n }\n };\n Animation.prototype.clear = function () {\n var clip = this._clipsHead;\n while (clip) {\n var nextClip = clip.next;\n clip.prev = clip.next = clip.animation = null;\n clip = nextClip;\n }\n this._clipsHead = this._clipsTail = null;\n };\n Animation.prototype.isFinished = function () {\n return this._clipsHead == null;\n };\n Animation.prototype.animate = function (target, options) {\n options = options || {};\n this.start();\n var animator = new Animator(target, options.loop);\n this.addAnimator(animator);\n return animator;\n };\n return Animation;\n}(Eventful));\nexport default Animation;\n","import { __extends } from \"tslib\";\nimport { addEventListener, removeEventListener, normalizeEvent, getNativeEvent } from '../core/event';\nimport * as zrUtil from '../core/util';\nimport Eventful from '../core/Eventful';\nimport env from '../core/env';\nvar TOUCH_CLICK_DELAY = 300;\nvar globalEventSupported = env.domSupported;\nvar localNativeListenerNames = (function () {\n var mouseHandlerNames = [\n 'click', 'dblclick', 'mousewheel', 'wheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n ];\n var touchHandlerNames = [\n 'touchstart', 'touchend', 'touchmove'\n ];\n var pointerEventNameMap = {\n pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1\n };\n var pointerHandlerNames = zrUtil.map(mouseHandlerNames, function (name) {\n var nm = name.replace('mouse', 'pointer');\n return pointerEventNameMap.hasOwnProperty(nm) ? nm : name;\n });\n return {\n mouse: mouseHandlerNames,\n touch: touchHandlerNames,\n pointer: pointerHandlerNames\n };\n})();\nvar globalNativeListenerNames = {\n mouse: ['mousemove', 'mouseup'],\n pointer: ['pointermove', 'pointerup']\n};\nvar wheelEventSupported = false;\nfunction isPointerFromTouch(event) {\n var pointerType = event.pointerType;\n return pointerType === 'pen' || pointerType === 'touch';\n}\nfunction setTouchTimer(scope) {\n scope.touching = true;\n if (scope.touchTimer != null) {\n clearTimeout(scope.touchTimer);\n scope.touchTimer = null;\n }\n scope.touchTimer = setTimeout(function () {\n scope.touching = false;\n scope.touchTimer = null;\n }, 700);\n}\nfunction markTouch(event) {\n event && (event.zrByTouch = true);\n}\nfunction normalizeGlobalEvent(instance, event) {\n return normalizeEvent(instance.dom, new FakeGlobalEvent(instance, event), true);\n}\nfunction isLocalEl(instance, el) {\n var elTmp = el;\n var isLocal = false;\n while (elTmp && elTmp.nodeType !== 9\n && !(isLocal = elTmp.domBelongToZr\n || (elTmp !== el && elTmp === instance.painterRoot))) {\n elTmp = elTmp.parentNode;\n }\n return isLocal;\n}\nvar FakeGlobalEvent = (function () {\n function FakeGlobalEvent(instance, event) {\n this.stopPropagation = zrUtil.noop;\n this.stopImmediatePropagation = zrUtil.noop;\n this.preventDefault = zrUtil.noop;\n this.type = event.type;\n this.target = this.currentTarget = instance.dom;\n this.pointerType = event.pointerType;\n this.clientX = event.clientX;\n this.clientY = event.clientY;\n }\n return FakeGlobalEvent;\n}());\nvar localDOMHandlers = {\n mousedown: function (event) {\n event = normalizeEvent(this.dom, event);\n this.__mayPointerCapture = [event.zrX, event.zrY];\n this.trigger('mousedown', event);\n },\n mousemove: function (event) {\n event = normalizeEvent(this.dom, event);\n var downPoint = this.__mayPointerCapture;\n if (downPoint && (event.zrX !== downPoint[0] || event.zrY !== downPoint[1])) {\n this.__togglePointerCapture(true);\n }\n this.trigger('mousemove', event);\n },\n mouseup: function (event) {\n event = normalizeEvent(this.dom, event);\n this.__togglePointerCapture(false);\n this.trigger('mouseup', event);\n },\n mouseout: function (event) {\n event = normalizeEvent(this.dom, event);\n var element = event.toElement || event.relatedTarget;\n if (!isLocalEl(this, element)) {\n if (this.__pointerCapturing) {\n event.zrEventControl = 'no_globalout';\n }\n this.trigger('mouseout', event);\n }\n },\n wheel: function (event) {\n wheelEventSupported = true;\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n mousewheel: function (event) {\n if (wheelEventSupported) {\n return;\n }\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n touchstart: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.__lastTouchMoment = new Date();\n this.handler.processGesture(event, 'start');\n localDOMHandlers.mousemove.call(this, event);\n localDOMHandlers.mousedown.call(this, event);\n },\n touchmove: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.handler.processGesture(event, 'change');\n localDOMHandlers.mousemove.call(this, event);\n },\n touchend: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.handler.processGesture(event, 'end');\n localDOMHandlers.mouseup.call(this, event);\n if (+new Date() - (+this.__lastTouchMoment) < TOUCH_CLICK_DELAY) {\n localDOMHandlers.click.call(this, event);\n }\n },\n pointerdown: function (event) {\n localDOMHandlers.mousedown.call(this, event);\n },\n pointermove: function (event) {\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mousemove.call(this, event);\n }\n },\n pointerup: function (event) {\n localDOMHandlers.mouseup.call(this, event);\n },\n pointerout: function (event) {\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mouseout.call(this, event);\n }\n }\n};\nzrUtil.each(['click', 'dblclick', 'contextmenu'], function (name) {\n localDOMHandlers[name] = function (event) {\n event = normalizeEvent(this.dom, event);\n this.trigger(name, event);\n };\n});\nvar globalDOMHandlers = {\n pointermove: function (event) {\n if (!isPointerFromTouch(event)) {\n globalDOMHandlers.mousemove.call(this, event);\n }\n },\n pointerup: function (event) {\n globalDOMHandlers.mouseup.call(this, event);\n },\n mousemove: function (event) {\n this.trigger('mousemove', event);\n },\n mouseup: function (event) {\n var pointerCaptureReleasing = this.__pointerCapturing;\n this.__togglePointerCapture(false);\n this.trigger('mouseup', event);\n if (pointerCaptureReleasing) {\n event.zrEventControl = 'only_globalout';\n this.trigger('mouseout', event);\n }\n }\n};\nfunction mountLocalDOMEventListeners(instance, scope) {\n var domHandlers = scope.domHandlers;\n if (env.pointerEventsSupported) {\n zrUtil.each(localNativeListenerNames.pointer, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n domHandlers[nativeEventName].call(instance, event);\n });\n });\n }\n else {\n if (env.touchEventsSupported) {\n zrUtil.each(localNativeListenerNames.touch, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n domHandlers[nativeEventName].call(instance, event);\n setTouchTimer(scope);\n });\n });\n }\n zrUtil.each(localNativeListenerNames.mouse, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n event = getNativeEvent(event);\n if (!scope.touching) {\n domHandlers[nativeEventName].call(instance, event);\n }\n });\n });\n }\n}\nfunction mountGlobalDOMEventListeners(instance, scope) {\n if (env.pointerEventsSupported) {\n zrUtil.each(globalNativeListenerNames.pointer, mount);\n }\n else if (!env.touchEventsSupported) {\n zrUtil.each(globalNativeListenerNames.mouse, mount);\n }\n function mount(nativeEventName) {\n function nativeEventListener(event) {\n event = getNativeEvent(event);\n if (!isLocalEl(instance, event.target)) {\n event = normalizeGlobalEvent(instance, event);\n scope.domHandlers[nativeEventName].call(instance, event);\n }\n }\n mountSingleDOMEventListener(scope, nativeEventName, nativeEventListener, { capture: true });\n }\n}\nfunction mountSingleDOMEventListener(scope, nativeEventName, listener, opt) {\n scope.mounted[nativeEventName] = listener;\n scope.listenerOpts[nativeEventName] = opt;\n addEventListener(scope.domTarget, nativeEventName, listener, opt);\n}\nfunction unmountDOMEventListeners(scope) {\n var mounted = scope.mounted;\n for (var nativeEventName in mounted) {\n if (mounted.hasOwnProperty(nativeEventName)) {\n removeEventListener(scope.domTarget, nativeEventName, mounted[nativeEventName], scope.listenerOpts[nativeEventName]);\n }\n }\n scope.mounted = {};\n}\nvar DOMHandlerScope = (function () {\n function DOMHandlerScope(domTarget, domHandlers) {\n this.mounted = {};\n this.listenerOpts = {};\n this.touching = false;\n this.domTarget = domTarget;\n this.domHandlers = domHandlers;\n }\n return DOMHandlerScope;\n}());\nvar HandlerDomProxy = (function (_super) {\n __extends(HandlerDomProxy, _super);\n function HandlerDomProxy(dom, painterRoot) {\n var _this = _super.call(this) || this;\n _this.__pointerCapturing = false;\n _this.dom = dom;\n _this.painterRoot = painterRoot;\n _this._localHandlerScope = new DOMHandlerScope(dom, localDOMHandlers);\n if (globalEventSupported) {\n _this._globalHandlerScope = new DOMHandlerScope(document, globalDOMHandlers);\n }\n mountLocalDOMEventListeners(_this, _this._localHandlerScope);\n return _this;\n }\n HandlerDomProxy.prototype.dispose = function () {\n unmountDOMEventListeners(this._localHandlerScope);\n if (globalEventSupported) {\n unmountDOMEventListeners(this._globalHandlerScope);\n }\n };\n HandlerDomProxy.prototype.setCursor = function (cursorStyle) {\n this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');\n };\n HandlerDomProxy.prototype.__togglePointerCapture = function (isPointerCapturing) {\n this.__mayPointerCapture = null;\n if (globalEventSupported\n && ((+this.__pointerCapturing) ^ (+isPointerCapturing))) {\n this.__pointerCapturing = isPointerCapturing;\n var globalHandlerScope = this._globalHandlerScope;\n isPointerCapturing\n ? mountGlobalDOMEventListeners(this, globalHandlerScope)\n : unmountDOMEventListeners(globalHandlerScope);\n }\n };\n return HandlerDomProxy;\n}(Eventful));\nexport default HandlerDomProxy;\n","var dpr = 1;\nif (typeof window !== 'undefined') {\n dpr = Math.max(window.devicePixelRatio\n || (window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI)\n || 1, 1);\n}\nexport var debugMode = 0;\nexport var devicePixelRatio = dpr;\nexport var DARK_MODE_THRESHOLD = 0.4;\nexport var DARK_LABEL_COLOR = '#333';\nexport var LIGHT_LABEL_COLOR = '#ccc';\nexport var LIGHTER_LABEL_COLOR = '#eee';\n","export function create() {\n return [1, 0, 0, 1, 0, 0];\n}\nexport function identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 1;\n out[4] = 0;\n out[5] = 0;\n return out;\n}\nexport function copy(out, m) {\n out[0] = m[0];\n out[1] = m[1];\n out[2] = m[2];\n out[3] = m[3];\n out[4] = m[4];\n out[5] = m[5];\n return out;\n}\nexport function mul(out, m1, m2) {\n var out0 = m1[0] * m2[0] + m1[2] * m2[1];\n var out1 = m1[1] * m2[0] + m1[3] * m2[1];\n var out2 = m1[0] * m2[2] + m1[2] * m2[3];\n var out3 = m1[1] * m2[2] + m1[3] * m2[3];\n var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];\n var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];\n out[0] = out0;\n out[1] = out1;\n out[2] = out2;\n out[3] = out3;\n out[4] = out4;\n out[5] = out5;\n return out;\n}\nexport function translate(out, a, v) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4] + v[0];\n out[5] = a[5] + v[1];\n return out;\n}\nexport function rotate(out, a, rad) {\n var aa = a[0];\n var ac = a[2];\n var atx = a[4];\n var ab = a[1];\n var ad = a[3];\n var aty = a[5];\n var st = Math.sin(rad);\n var ct = Math.cos(rad);\n out[0] = aa * ct + ab * st;\n out[1] = -aa * st + ab * ct;\n out[2] = ac * ct + ad * st;\n out[3] = -ac * st + ct * ad;\n out[4] = ct * atx + st * aty;\n out[5] = ct * aty - st * atx;\n return out;\n}\nexport function scale(out, a, v) {\n var vx = v[0];\n var vy = v[1];\n out[0] = a[0] * vx;\n out[1] = a[1] * vy;\n out[2] = a[2] * vx;\n out[3] = a[3] * vy;\n out[4] = a[4] * vx;\n out[5] = a[5] * vy;\n return out;\n}\nexport function invert(out, a) {\n var aa = a[0];\n var ac = a[2];\n var atx = a[4];\n var ab = a[1];\n var ad = a[3];\n var aty = a[5];\n var det = aa * ad - ab * ac;\n if (!det) {\n return null;\n }\n det = 1.0 / det;\n out[0] = ad * det;\n out[1] = -ab * det;\n out[2] = -ac * det;\n out[3] = aa * det;\n out[4] = (ac * aty - ad * atx) * det;\n out[5] = (ab * atx - aa * aty) * det;\n return out;\n}\nexport function clone(a) {\n var b = create();\n copy(b, a);\n return b;\n}\n","import * as matrix from './matrix';\nimport * as vector from './vector';\nvar mIdentity = matrix.identity;\nvar EPSILON = 5e-5;\nfunction isNotAroundZero(val) {\n return val > EPSILON || val < -EPSILON;\n}\nvar scaleTmp = [];\nvar tmpTransform = [];\nvar originTransform = matrix.create();\nvar abs = Math.abs;\nvar Transformable = (function () {\n function Transformable() {\n }\n Transformable.prototype.setPosition = function (arr) {\n this.x = arr[0];\n this.y = arr[1];\n };\n Transformable.prototype.setScale = function (arr) {\n this.scaleX = arr[0];\n this.scaleY = arr[1];\n };\n Transformable.prototype.setSkew = function (arr) {\n this.skewX = arr[0];\n this.skewY = arr[1];\n };\n Transformable.prototype.setOrigin = function (arr) {\n this.originX = arr[0];\n this.originY = arr[1];\n };\n Transformable.prototype.needLocalTransform = function () {\n return isNotAroundZero(this.rotation)\n || isNotAroundZero(this.x)\n || isNotAroundZero(this.y)\n || isNotAroundZero(this.scaleX - 1)\n || isNotAroundZero(this.scaleY - 1);\n };\n Transformable.prototype.updateTransform = function () {\n var parent = this.parent;\n var parentHasTransform = parent && parent.transform;\n var needLocalTransform = this.needLocalTransform();\n var m = this.transform;\n if (!(needLocalTransform || parentHasTransform)) {\n m && mIdentity(m);\n return;\n }\n m = m || matrix.create();\n if (needLocalTransform) {\n this.getLocalTransform(m);\n }\n else {\n mIdentity(m);\n }\n if (parentHasTransform) {\n if (needLocalTransform) {\n matrix.mul(m, parent.transform, m);\n }\n else {\n matrix.copy(m, parent.transform);\n }\n }\n this.transform = m;\n this._resolveGlobalScaleRatio(m);\n };\n Transformable.prototype._resolveGlobalScaleRatio = function (m) {\n var globalScaleRatio = this.globalScaleRatio;\n if (globalScaleRatio != null && globalScaleRatio !== 1) {\n this.getGlobalScale(scaleTmp);\n var relX = scaleTmp[0] < 0 ? -1 : 1;\n var relY = scaleTmp[1] < 0 ? -1 : 1;\n var sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0;\n var sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0;\n m[0] *= sx;\n m[1] *= sx;\n m[2] *= sy;\n m[3] *= sy;\n }\n this.invTransform = this.invTransform || matrix.create();\n matrix.invert(this.invTransform, m);\n };\n Transformable.prototype.getLocalTransform = function (m) {\n return Transformable.getLocalTransform(this, m);\n };\n Transformable.prototype.getComputedTransform = function () {\n var transformNode = this;\n var ancestors = [];\n while (transformNode) {\n ancestors.push(transformNode);\n transformNode = transformNode.parent;\n }\n while (transformNode = ancestors.pop()) {\n transformNode.updateTransform();\n }\n return this.transform;\n };\n Transformable.prototype.setLocalTransform = function (m) {\n if (!m) {\n return;\n }\n var sx = m[0] * m[0] + m[1] * m[1];\n var sy = m[2] * m[2] + m[3] * m[3];\n var rotation = Math.atan2(m[1], m[0]);\n var shearX = Math.PI / 2 + rotation - Math.atan2(m[3], m[2]);\n sy = Math.sqrt(sy) * Math.cos(shearX);\n sx = Math.sqrt(sx);\n this.skewX = shearX;\n this.skewY = 0;\n this.rotation = -rotation;\n this.x = +m[4];\n this.y = +m[5];\n this.scaleX = sx;\n this.scaleY = sy;\n this.originX = 0;\n this.originY = 0;\n };\n Transformable.prototype.decomposeTransform = function () {\n if (!this.transform) {\n return;\n }\n var parent = this.parent;\n var m = this.transform;\n if (parent && parent.transform) {\n matrix.mul(tmpTransform, parent.invTransform, m);\n m = tmpTransform;\n }\n var ox = this.originX;\n var oy = this.originY;\n if (ox || oy) {\n originTransform[4] = ox;\n originTransform[5] = oy;\n matrix.mul(tmpTransform, m, originTransform);\n tmpTransform[4] -= ox;\n tmpTransform[5] -= oy;\n m = tmpTransform;\n }\n this.setLocalTransform(m);\n };\n Transformable.prototype.getGlobalScale = function (out) {\n var m = this.transform;\n out = out || [];\n if (!m) {\n out[0] = 1;\n out[1] = 1;\n return out;\n }\n out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]);\n out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]);\n if (m[0] < 0) {\n out[0] = -out[0];\n }\n if (m[3] < 0) {\n out[1] = -out[1];\n }\n return out;\n };\n Transformable.prototype.transformCoordToLocal = function (x, y) {\n var v2 = [x, y];\n var invTransform = this.invTransform;\n if (invTransform) {\n vector.applyTransform(v2, v2, invTransform);\n }\n return v2;\n };\n Transformable.prototype.transformCoordToGlobal = function (x, y) {\n var v2 = [x, y];\n var transform = this.transform;\n if (transform) {\n vector.applyTransform(v2, v2, transform);\n }\n return v2;\n };\n Transformable.prototype.getLineScale = function () {\n var m = this.transform;\n return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10\n ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))\n : 1;\n };\n Transformable.getLocalTransform = function (target, m) {\n m = m || [];\n var ox = target.originX || 0;\n var oy = target.originY || 0;\n var sx = target.scaleX;\n var sy = target.scaleY;\n var rotation = target.rotation || 0;\n var x = target.x;\n var y = target.y;\n var skewX = target.skewX ? Math.tan(target.skewX) : 0;\n var skewY = target.skewY ? Math.tan(-target.skewY) : 0;\n if (ox || oy) {\n m[4] = -ox * sx - skewX * oy * sy;\n m[5] = -oy * sy - skewY * ox * sx;\n }\n else {\n m[4] = m[5] = 0;\n }\n m[0] = sx;\n m[3] = sy;\n m[1] = skewY * sx;\n m[2] = skewX * sy;\n rotation && matrix.rotate(m, m, rotation);\n m[4] += ox + x;\n m[5] += oy + y;\n return m;\n };\n Transformable.initDefaultProps = (function () {\n var proto = Transformable.prototype;\n proto.x = 0;\n proto.y = 0;\n proto.scaleX = 1;\n proto.scaleY = 1;\n proto.originX = 0;\n proto.originY = 0;\n proto.skewX = 0;\n proto.skewY = 0;\n proto.rotation = 0;\n proto.globalScaleRatio = 1;\n })();\n return Transformable;\n}());\n;\nexport default Transformable;\n","var Point = (function () {\n function Point(x, y) {\n this.x = x || 0;\n this.y = y || 0;\n }\n Point.prototype.copy = function (other) {\n this.x = other.x;\n this.y = other.y;\n return this;\n };\n Point.prototype.clone = function () {\n return new Point(this.x, this.y);\n };\n Point.prototype.set = function (x, y) {\n this.x = x;\n this.y = y;\n return this;\n };\n Point.prototype.equal = function (other) {\n return other.x === this.x && other.y === this.y;\n };\n Point.prototype.add = function (other) {\n this.x += other.x;\n this.y += other.y;\n return this;\n };\n Point.prototype.scale = function (scalar) {\n this.x *= scalar;\n this.y *= scalar;\n };\n Point.prototype.scaleAndAdd = function (other, scalar) {\n this.x += other.x * scalar;\n this.y += other.y * scalar;\n };\n Point.prototype.sub = function (other) {\n this.x -= other.x;\n this.y -= other.y;\n return this;\n };\n Point.prototype.dot = function (other) {\n return this.x * other.x + this.y * other.y;\n };\n Point.prototype.len = function () {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n };\n Point.prototype.lenSquare = function () {\n return this.x * this.x + this.y * this.y;\n };\n Point.prototype.normalize = function () {\n var len = this.len();\n this.x /= len;\n this.y /= len;\n return this;\n };\n Point.prototype.distance = function (other) {\n var dx = this.x - other.x;\n var dy = this.y - other.y;\n return Math.sqrt(dx * dx + dy * dy);\n };\n Point.prototype.distanceSquare = function (other) {\n var dx = this.x - other.x;\n var dy = this.y - other.y;\n return dx * dx + dy * dy;\n };\n Point.prototype.negate = function () {\n this.x = -this.x;\n this.y = -this.y;\n return this;\n };\n Point.prototype.transform = function (m) {\n if (!m) {\n return;\n }\n var x = this.x;\n var y = this.y;\n this.x = m[0] * x + m[2] * y + m[4];\n this.y = m[1] * x + m[3] * y + m[5];\n return this;\n };\n Point.prototype.toArray = function (out) {\n out[0] = this.x;\n out[1] = this.y;\n return out;\n };\n Point.prototype.fromArray = function (input) {\n this.x = input[0];\n this.y = input[1];\n };\n Point.set = function (p, x, y) {\n p.x = x;\n p.y = y;\n };\n Point.copy = function (p, p2) {\n p.x = p2.x;\n p.y = p2.y;\n };\n Point.len = function (p) {\n return Math.sqrt(p.x * p.x + p.y * p.y);\n };\n Point.lenSquare = function (p) {\n return p.x * p.x + p.y * p.y;\n };\n Point.dot = function (p0, p1) {\n return p0.x * p1.x + p0.y * p1.y;\n };\n Point.add = function (out, p0, p1) {\n out.x = p0.x + p1.x;\n out.y = p0.y + p1.y;\n };\n Point.sub = function (out, p0, p1) {\n out.x = p0.x - p1.x;\n out.y = p0.y - p1.y;\n };\n Point.scale = function (out, p0, scalar) {\n out.x = p0.x * scalar;\n out.y = p0.y * scalar;\n };\n Point.scaleAndAdd = function (out, p0, p1, scalar) {\n out.x = p0.x + p1.x * scalar;\n out.y = p0.y + p1.y * scalar;\n };\n Point.lerp = function (out, p0, p1, t) {\n var onet = 1 - t;\n out.x = onet * p0.x + t * p1.x;\n out.y = onet * p0.y + t * p1.y;\n };\n return Point;\n}());\nexport default Point;\n","import * as matrix from './matrix';\nimport Point from './Point';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar lt = new Point();\nvar rb = new Point();\nvar lb = new Point();\nvar rt = new Point();\nvar minTv = new Point();\nvar maxTv = new Point();\nvar BoundingRect = (function () {\n function BoundingRect(x, y, width, height) {\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n BoundingRect.prototype.union = function (other) {\n var x = mathMin(other.x, this.x);\n var y = mathMin(other.y, this.y);\n if (isFinite(this.x) && isFinite(this.width)) {\n this.width = mathMax(other.x + other.width, this.x + this.width) - x;\n }\n else {\n this.width = other.width;\n }\n if (isFinite(this.y) && isFinite(this.height)) {\n this.height = mathMax(other.y + other.height, this.y + this.height) - y;\n }\n else {\n this.height = other.height;\n }\n this.x = x;\n this.y = y;\n };\n BoundingRect.prototype.applyTransform = function (m) {\n BoundingRect.applyTransform(this, this, m);\n };\n BoundingRect.prototype.calculateTransform = function (b) {\n var a = this;\n var sx = b.width / a.width;\n var sy = b.height / a.height;\n var m = matrix.create();\n matrix.translate(m, m, [-a.x, -a.y]);\n matrix.scale(m, m, [sx, sy]);\n matrix.translate(m, m, [b.x, b.y]);\n return m;\n };\n BoundingRect.prototype.intersect = function (b, mtv) {\n if (!b) {\n return false;\n }\n if (!(b instanceof BoundingRect)) {\n b = BoundingRect.create(b);\n }\n var a = this;\n var ax0 = a.x;\n var ax1 = a.x + a.width;\n var ay0 = a.y;\n var ay1 = a.y + a.height;\n var bx0 = b.x;\n var bx1 = b.x + b.width;\n var by0 = b.y;\n var by1 = b.y + b.height;\n var overlap = !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);\n if (mtv) {\n var dMin = Infinity;\n var dMax = 0;\n var d0 = Math.abs(ax1 - bx0);\n var d1 = Math.abs(bx1 - ax0);\n var d2 = Math.abs(ay1 - by0);\n var d3 = Math.abs(by1 - ay0);\n var dx = Math.min(d0, d1);\n var dy = Math.min(d2, d3);\n if (ax1 < bx0 || bx1 < ax0) {\n if (dx > dMax) {\n dMax = dx;\n if (d0 < d1) {\n Point.set(maxTv, -d0, 0);\n }\n else {\n Point.set(maxTv, d1, 0);\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d0 < d1) {\n Point.set(minTv, d0, 0);\n }\n else {\n Point.set(minTv, -d1, 0);\n }\n }\n }\n if (ay1 < by0 || by1 < ay0) {\n if (dy > dMax) {\n dMax = dy;\n if (d2 < d3) {\n Point.set(maxTv, 0, -d2);\n }\n else {\n Point.set(maxTv, 0, d3);\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d2 < d3) {\n Point.set(minTv, 0, d2);\n }\n else {\n Point.set(minTv, 0, -d3);\n }\n }\n }\n }\n if (mtv) {\n Point.copy(mtv, overlap ? minTv : maxTv);\n }\n return overlap;\n };\n BoundingRect.prototype.contain = function (x, y) {\n var rect = this;\n return x >= rect.x\n && x <= (rect.x + rect.width)\n && y >= rect.y\n && y <= (rect.y + rect.height);\n };\n BoundingRect.prototype.clone = function () {\n return new BoundingRect(this.x, this.y, this.width, this.height);\n };\n BoundingRect.prototype.copy = function (other) {\n BoundingRect.copy(this, other);\n };\n BoundingRect.prototype.plain = function () {\n return {\n x: this.x,\n y: this.y,\n width: this.width,\n height: this.height\n };\n };\n BoundingRect.prototype.isFinite = function () {\n return isFinite(this.x)\n && isFinite(this.y)\n && isFinite(this.width)\n && isFinite(this.height);\n };\n BoundingRect.prototype.isZero = function () {\n return this.width === 0 || this.height === 0;\n };\n BoundingRect.create = function (rect) {\n return new BoundingRect(rect.x, rect.y, rect.width, rect.height);\n };\n BoundingRect.copy = function (target, source) {\n target.x = source.x;\n target.y = source.y;\n target.width = source.width;\n target.height = source.height;\n };\n BoundingRect.applyTransform = function (target, source, m) {\n if (!m) {\n if (target !== source) {\n BoundingRect.copy(target, source);\n }\n return;\n }\n if (m[1] < 1e-5 && m[1] > -1e-5 && m[2] < 1e-5 && m[2] > -1e-5) {\n var sx = m[0];\n var sy = m[3];\n var tx = m[4];\n var ty = m[5];\n target.x = source.x * sx + tx;\n target.y = source.y * sy + ty;\n target.width = source.width * sx;\n target.height = source.height * sy;\n if (target.width < 0) {\n target.x += target.width;\n target.width = -target.width;\n }\n if (target.height < 0) {\n target.y += target.height;\n target.height = -target.height;\n }\n return;\n }\n lt.x = lb.x = source.x;\n lt.y = rt.y = source.y;\n rb.x = rt.x = source.x + source.width;\n rb.y = lb.y = source.y + source.height;\n lt.transform(m);\n rt.transform(m);\n rb.transform(m);\n lb.transform(m);\n target.x = mathMin(lt.x, rb.x, lb.x, rt.x);\n target.y = mathMin(lt.y, rb.y, lb.y, rt.y);\n var maxX = mathMax(lt.x, rb.x, lb.x, rt.x);\n var maxY = mathMax(lt.y, rb.y, lb.y, rt.y);\n target.width = maxX - target.x;\n target.height = maxY - target.y;\n };\n return BoundingRect;\n}());\nexport default BoundingRect;\n","import BoundingRect from '../core/BoundingRect';\nimport { createCanvas } from '../core/util';\nimport LRU from '../core/LRU';\nvar textWidthCache = {};\nexport var DEFAULT_FONT = '12px sans-serif';\nvar _ctx;\nvar _cachedFont;\nfunction defaultMeasureText(text, font) {\n if (!_ctx) {\n _ctx = createCanvas().getContext('2d');\n }\n if (_cachedFont !== font) {\n _cachedFont = _ctx.font = font || DEFAULT_FONT;\n }\n return _ctx.measureText(text);\n}\nvar methods = {\n measureText: defaultMeasureText\n};\nexport function $override(name, fn) {\n methods[name] = fn;\n}\nexport function getWidth(text, font) {\n font = font || DEFAULT_FONT;\n var cacheOfFont = textWidthCache[font];\n if (!cacheOfFont) {\n cacheOfFont = textWidthCache[font] = new LRU(500);\n }\n var width = cacheOfFont.get(text);\n if (width == null) {\n width = methods.measureText(text, font).width;\n cacheOfFont.put(text, width);\n }\n return width;\n}\nexport function innerGetBoundingRect(text, font, textAlign, textBaseline) {\n var width = getWidth(text, font);\n var height = getLineHeight(font);\n var x = adjustTextX(0, width, textAlign);\n var y = adjustTextY(0, height, textBaseline);\n var rect = new BoundingRect(x, y, width, height);\n return rect;\n}\nexport function getBoundingRect(text, font, textAlign, textBaseline) {\n var textLines = ((text || '') + '').split('\\n');\n var len = textLines.length;\n if (len === 1) {\n return innerGetBoundingRect(textLines[0], font, textAlign, textBaseline);\n }\n else {\n var uniondRect = new BoundingRect(0, 0, 0, 0);\n for (var i = 0; i < textLines.length; i++) {\n var rect = innerGetBoundingRect(textLines[i], font, textAlign, textBaseline);\n i === 0 ? uniondRect.copy(rect) : uniondRect.union(rect);\n }\n return uniondRect;\n }\n}\nexport function adjustTextX(x, width, textAlign) {\n if (textAlign === 'right') {\n x -= width;\n }\n else if (textAlign === 'center') {\n x -= width / 2;\n }\n return x;\n}\nexport function adjustTextY(y, height, verticalAlign) {\n if (verticalAlign === 'middle') {\n y -= height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y -= height;\n }\n return y;\n}\nexport function getLineHeight(font) {\n return getWidth('国', font);\n}\nexport function measureText(text, font) {\n return methods.measureText(text, font);\n}\nexport function parsePercent(value, maxValue) {\n if (typeof value === 'string') {\n if (value.lastIndexOf('%') >= 0) {\n return parseFloat(value) / 100 * maxValue;\n }\n return parseFloat(value);\n }\n return value;\n}\nexport function calculateTextPosition(out, opts, rect) {\n var textPosition = opts.position || 'inside';\n var distance = opts.distance != null ? opts.distance : 5;\n var height = rect.height;\n var width = rect.width;\n var halfHeight = height / 2;\n var x = rect.x;\n var y = rect.y;\n var textAlign = 'left';\n var textVerticalAlign = 'top';\n if (textPosition instanceof Array) {\n x += parsePercent(textPosition[0], rect.width);\n y += parsePercent(textPosition[1], rect.height);\n textAlign = null;\n textVerticalAlign = null;\n }\n else {\n switch (textPosition) {\n case 'left':\n x -= distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'right':\n x += distance + width;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'top':\n x += width / 2;\n y -= distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'bottom':\n x += width / 2;\n y += height + distance;\n textAlign = 'center';\n break;\n case 'inside':\n x += width / 2;\n y += halfHeight;\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n case 'insideLeft':\n x += distance;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'insideRight':\n x += width - distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'insideTop':\n x += width / 2;\n y += distance;\n textAlign = 'center';\n break;\n case 'insideBottom':\n x += width / 2;\n y += height - distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'insideTopLeft':\n x += distance;\n y += distance;\n break;\n case 'insideTopRight':\n x += width - distance;\n y += distance;\n textAlign = 'right';\n break;\n case 'insideBottomLeft':\n x += distance;\n y += height - distance;\n textVerticalAlign = 'bottom';\n break;\n case 'insideBottomRight':\n x += width - distance;\n y += height - distance;\n textAlign = 'right';\n textVerticalAlign = 'bottom';\n break;\n }\n }\n out = out || {};\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n return out;\n}\n","import Transformable from './core/Transformable';\nimport Animator, { cloneValue } from './animation/Animator';\nimport BoundingRect from './core/BoundingRect';\nimport Eventful from './core/Eventful';\nimport { calculateTextPosition, parsePercent } from './contain/text';\nimport { guid, isObject, keys, extend, indexOf, logError, mixin, isArrayLike, isTypedArray } from './core/util';\nimport { LIGHT_LABEL_COLOR, DARK_LABEL_COLOR } from './config';\nimport { parse, stringify } from './tool/color';\nimport env from './core/env';\nimport { REDARAW_BIT } from './graphic/constants';\nexport var PRESERVED_NORMAL_STATE = '__zr_normal__';\nvar PRIMARY_STATES_KEYS = ['x', 'y', 'scaleX', 'scaleY', 'originX', 'originY', 'rotation', 'ignore'];\nvar DEFAULT_ANIMATABLE_MAP = {\n x: true,\n y: true,\n scaleX: true,\n scaleY: true,\n originX: true,\n originY: true,\n rotation: true,\n ignore: false\n};\nvar tmpTextPosCalcRes = {};\nvar tmpBoundingRect = new BoundingRect(0, 0, 0, 0);\nvar Element = (function () {\n function Element(props) {\n this.id = guid();\n this.animators = [];\n this.currentStates = [];\n this.states = {};\n this._init(props);\n }\n Element.prototype._init = function (props) {\n this.attr(props);\n };\n Element.prototype.drift = function (dx, dy, e) {\n switch (this.draggable) {\n case 'horizontal':\n dy = 0;\n break;\n case 'vertical':\n dx = 0;\n break;\n }\n var m = this.transform;\n if (!m) {\n m = this.transform = [1, 0, 0, 1, 0, 0];\n }\n m[4] += dx;\n m[5] += dy;\n this.decomposeTransform();\n this.markRedraw();\n };\n Element.prototype.beforeUpdate = function () { };\n Element.prototype.afterUpdate = function () { };\n Element.prototype.update = function () {\n this.updateTransform();\n if (this.__dirty) {\n this.updateInnerText();\n }\n };\n Element.prototype.updateInnerText = function (forceUpdate) {\n var textEl = this._textContent;\n if (textEl && (!textEl.ignore || forceUpdate)) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n var textConfig = this.textConfig;\n var isLocal = textConfig.local;\n var attachedTransform = textEl.attachedTransform;\n var textAlign = void 0;\n var textVerticalAlign = void 0;\n var textStyleChanged = false;\n if (isLocal) {\n attachedTransform.parent = this;\n }\n else {\n attachedTransform.parent = null;\n }\n var innerOrigin = false;\n attachedTransform.x = textEl.x;\n attachedTransform.y = textEl.y;\n attachedTransform.originX = textEl.originX;\n attachedTransform.originY = textEl.originY;\n attachedTransform.rotation = textEl.rotation;\n attachedTransform.scaleX = textEl.scaleX;\n attachedTransform.scaleY = textEl.scaleY;\n if (textConfig.position != null) {\n var layoutRect = tmpBoundingRect;\n if (textConfig.layoutRect) {\n layoutRect.copy(textConfig.layoutRect);\n }\n else {\n layoutRect.copy(this.getBoundingRect());\n }\n if (!isLocal) {\n layoutRect.applyTransform(this.transform);\n }\n if (this.calculateTextPosition) {\n this.calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n else {\n calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n attachedTransform.x = tmpTextPosCalcRes.x;\n attachedTransform.y = tmpTextPosCalcRes.y;\n textAlign = tmpTextPosCalcRes.align;\n textVerticalAlign = tmpTextPosCalcRes.verticalAlign;\n var textOrigin = textConfig.origin;\n if (textOrigin && textConfig.rotation != null) {\n var relOriginX = void 0;\n var relOriginY = void 0;\n if (textOrigin === 'center') {\n relOriginX = layoutRect.width * 0.5;\n relOriginY = layoutRect.height * 0.5;\n }\n else {\n relOriginX = parsePercent(textOrigin[0], layoutRect.width);\n relOriginY = parsePercent(textOrigin[1], layoutRect.height);\n }\n innerOrigin = true;\n attachedTransform.originX = -attachedTransform.x + relOriginX + (isLocal ? 0 : layoutRect.x);\n attachedTransform.originY = -attachedTransform.y + relOriginY + (isLocal ? 0 : layoutRect.y);\n }\n }\n if (textConfig.rotation != null) {\n attachedTransform.rotation = textConfig.rotation;\n }\n var textOffset = textConfig.offset;\n if (textOffset) {\n attachedTransform.x += textOffset[0];\n attachedTransform.y += textOffset[1];\n if (!innerOrigin) {\n attachedTransform.originX = -textOffset[0];\n attachedTransform.originY = -textOffset[1];\n }\n }\n var isInside = textConfig.inside == null\n ? (typeof textConfig.position === 'string' && textConfig.position.indexOf('inside') >= 0)\n : textConfig.inside;\n var innerTextDefaultStyle = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {});\n var textFill = void 0;\n var textStroke = void 0;\n var autoStroke = void 0;\n if (isInside && this.canBeInsideText()) {\n textFill = textConfig.insideFill;\n textStroke = textConfig.insideStroke;\n if (textFill == null || textFill === 'auto') {\n textFill = this.getInsideTextFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getInsideTextStroke(textFill);\n autoStroke = true;\n }\n }\n else {\n textFill = textConfig.outsideFill;\n textStroke = textConfig.outsideStroke;\n if (textFill == null || textFill === 'auto') {\n textFill = this.getOutsideFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getOutsideStroke(textFill);\n autoStroke = true;\n }\n }\n textFill = textFill || '#000';\n if (textFill !== innerTextDefaultStyle.fill\n || textStroke !== innerTextDefaultStyle.stroke\n || autoStroke !== innerTextDefaultStyle.autoStroke\n || textAlign !== innerTextDefaultStyle.align\n || textVerticalAlign !== innerTextDefaultStyle.verticalAlign) {\n textStyleChanged = true;\n innerTextDefaultStyle.fill = textFill;\n innerTextDefaultStyle.stroke = textStroke;\n innerTextDefaultStyle.autoStroke = autoStroke;\n innerTextDefaultStyle.align = textAlign;\n innerTextDefaultStyle.verticalAlign = textVerticalAlign;\n textEl.setDefaultTextStyle(innerTextDefaultStyle);\n }\n textEl.__dirty |= REDARAW_BIT;\n if (textStyleChanged) {\n textEl.dirtyStyle(true);\n }\n }\n };\n Element.prototype.canBeInsideText = function () {\n return true;\n };\n Element.prototype.getInsideTextFill = function () {\n return '#fff';\n };\n Element.prototype.getInsideTextStroke = function (textFill) {\n return '#000';\n };\n Element.prototype.getOutsideFill = function () {\n return this.__zr && this.__zr.isDarkMode() ? LIGHT_LABEL_COLOR : DARK_LABEL_COLOR;\n };\n Element.prototype.getOutsideStroke = function (textFill) {\n var backgroundColor = this.__zr && this.__zr.getBackgroundColor();\n var colorArr = typeof backgroundColor === 'string' && parse(backgroundColor);\n if (!colorArr) {\n colorArr = [255, 255, 255, 1];\n }\n var alpha = colorArr[3];\n var isDark = this.__zr.isDarkMode();\n for (var i = 0; i < 3; i++) {\n colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);\n }\n colorArr[3] = 1;\n return stringify(colorArr, 'rgba');\n };\n Element.prototype.traverse = function (cb, context) { };\n Element.prototype.attrKV = function (key, value) {\n if (key === 'textConfig') {\n this.setTextConfig(value);\n }\n else if (key === 'textContent') {\n this.setTextContent(value);\n }\n else if (key === 'clipPath') {\n this.setClipPath(value);\n }\n else if (key === 'extra') {\n this.extra = this.extra || {};\n extend(this.extra, value);\n }\n else {\n this[key] = value;\n }\n };\n Element.prototype.hide = function () {\n this.ignore = true;\n this.markRedraw();\n };\n Element.prototype.show = function () {\n this.ignore = false;\n this.markRedraw();\n };\n Element.prototype.attr = function (keyOrObj, value) {\n if (typeof keyOrObj === 'string') {\n this.attrKV(keyOrObj, value);\n }\n else if (isObject(keyOrObj)) {\n var obj = keyOrObj;\n var keysArr = keys(obj);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n this.attrKV(key, keyOrObj[key]);\n }\n }\n this.markRedraw();\n return this;\n };\n Element.prototype.saveCurrentToNormalState = function (toState) {\n this._innerSaveToNormal(toState);\n var normalState = this._normalState;\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n var fromStateTransition = animator.__fromStateTransition;\n if (fromStateTransition && fromStateTransition !== PRESERVED_NORMAL_STATE) {\n continue;\n }\n var targetName = animator.targetName;\n var target = targetName\n ? normalState[targetName] : normalState;\n animator.saveFinalToTarget(target);\n }\n };\n Element.prototype._innerSaveToNormal = function (toState) {\n var normalState = this._normalState;\n if (!normalState) {\n normalState = this._normalState = {};\n }\n if (toState.textConfig && !normalState.textConfig) {\n normalState.textConfig = this.textConfig;\n }\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n };\n Element.prototype._savePrimaryToNormal = function (toState, normalState, primaryKeys) {\n for (var i = 0; i < primaryKeys.length; i++) {\n var key = primaryKeys[i];\n if (toState[key] != null && !(key in normalState)) {\n normalState[key] = this[key];\n }\n }\n };\n Element.prototype.hasState = function () {\n return this.currentStates.length > 0;\n };\n Element.prototype.getState = function (name) {\n return this.states[name];\n };\n Element.prototype.ensureState = function (name) {\n var states = this.states;\n if (!states[name]) {\n states[name] = {};\n }\n return states[name];\n };\n Element.prototype.clearStates = function (noAnimation) {\n this.useState(PRESERVED_NORMAL_STATE, false, noAnimation);\n };\n Element.prototype.useState = function (stateName, keepCurrentStates, noAnimation, forceUseHoverLayer) {\n var toNormalState = stateName === PRESERVED_NORMAL_STATE;\n var hasStates = this.hasState();\n if (!hasStates && toNormalState) {\n return;\n }\n var currentStates = this.currentStates;\n var animationCfg = this.stateTransition;\n if (indexOf(currentStates, stateName) >= 0 && (keepCurrentStates || currentStates.length === 1)) {\n return;\n }\n var state;\n if (this.stateProxy && !toNormalState) {\n state = this.stateProxy(stateName);\n }\n if (!state) {\n state = (this.states && this.states[stateName]);\n }\n if (!state && !toNormalState) {\n logError(\"State \" + stateName + \" not exists.\");\n return;\n }\n if (!toNormalState) {\n this.saveCurrentToNormalState(state);\n }\n var useHoverLayer = !!((state && state.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n this._toggleHoverLayerFlag(true);\n }\n this._applyStateObj(stateName, state, this._normalState, keepCurrentStates, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (toNormalState) {\n this.currentStates = [];\n this._normalState = {};\n }\n else {\n if (!keepCurrentStates) {\n this.currentStates = [stateName];\n }\n else {\n this.currentStates.push(stateName);\n }\n }\n this._updateAnimationTargets();\n this.markRedraw();\n if (!useHoverLayer && this.__inHover) {\n this._toggleHoverLayerFlag(false);\n this.__dirty &= ~REDARAW_BIT;\n }\n return state;\n };\n Element.prototype.useStates = function (states, noAnimation, forceUseHoverLayer) {\n if (!states.length) {\n this.clearStates();\n }\n else {\n var stateObjects = [];\n var currentStates = this.currentStates;\n var len = states.length;\n var notChange = len === currentStates.length;\n if (notChange) {\n for (var i = 0; i < len; i++) {\n if (states[i] !== currentStates[i]) {\n notChange = false;\n break;\n }\n }\n }\n if (notChange) {\n return;\n }\n for (var i = 0; i < len; i++) {\n var stateName = states[i];\n var stateObj = void 0;\n if (this.stateProxy) {\n stateObj = this.stateProxy(stateName, states);\n }\n if (!stateObj) {\n stateObj = this.states[stateName];\n }\n if (stateObj) {\n stateObjects.push(stateObj);\n }\n }\n var lastStateObj = stateObjects[len - 1];\n var useHoverLayer = !!((lastStateObj && lastStateObj.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n this._toggleHoverLayerFlag(true);\n }\n var mergedState = this._mergeStates(stateObjects);\n var animationCfg = this.stateTransition;\n this.saveCurrentToNormalState(mergedState);\n this._applyStateObj(states.join(','), mergedState, this._normalState, false, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.useStates(states, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useStates(states, noAnimation, useHoverLayer);\n }\n this._updateAnimationTargets();\n this.currentStates = states.slice();\n this.markRedraw();\n if (!useHoverLayer && this.__inHover) {\n this._toggleHoverLayerFlag(false);\n this.__dirty &= ~REDARAW_BIT;\n }\n }\n };\n Element.prototype._updateAnimationTargets = function () {\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n if (animator.targetName) {\n animator.changeTarget(this[animator.targetName]);\n }\n }\n };\n Element.prototype.removeState = function (state) {\n var idx = indexOf(this.currentStates, state);\n if (idx >= 0) {\n var currentStates = this.currentStates.slice();\n currentStates.splice(idx, 1);\n this.useStates(currentStates);\n }\n };\n Element.prototype.replaceState = function (oldState, newState, forceAdd) {\n var currentStates = this.currentStates.slice();\n var idx = indexOf(currentStates, oldState);\n var newStateExists = indexOf(currentStates, newState) >= 0;\n if (idx >= 0) {\n if (!newStateExists) {\n currentStates[idx] = newState;\n }\n else {\n currentStates.splice(idx, 1);\n }\n }\n else if (forceAdd && !newStateExists) {\n currentStates.push(newState);\n }\n this.useStates(currentStates);\n };\n Element.prototype.toggleState = function (state, enable) {\n if (enable) {\n this.useState(state, true);\n }\n else {\n this.removeState(state);\n }\n };\n Element.prototype._mergeStates = function (states) {\n var mergedState = {};\n var mergedTextConfig;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n extend(mergedState, state);\n if (state.textConfig) {\n mergedTextConfig = mergedTextConfig || {};\n extend(mergedTextConfig, state.textConfig);\n }\n }\n if (mergedTextConfig) {\n mergedState.textConfig = mergedTextConfig;\n }\n return mergedState;\n };\n Element.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n var needsRestoreToNormal = !(state && keepCurrentStates);\n if (state && state.textConfig) {\n this.textConfig = extend({}, keepCurrentStates ? this.textConfig : normalState.textConfig);\n extend(this.textConfig, state.textConfig);\n }\n else if (needsRestoreToNormal) {\n if (normalState.textConfig) {\n this.textConfig = normalState.textConfig;\n }\n }\n var transitionTarget = {};\n var hasTransition = false;\n for (var i = 0; i < PRIMARY_STATES_KEYS.length; i++) {\n var key = PRIMARY_STATES_KEYS[i];\n var propNeedsTransition = transition && DEFAULT_ANIMATABLE_MAP[key];\n if (state && state[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = state[key];\n }\n else {\n this[key] = state[key];\n }\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = normalState[key];\n }\n else {\n this[key] = normalState[key];\n }\n }\n }\n }\n if (!transition) {\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n var targetName = animator.targetName;\n animator.__changeFinalValue(targetName\n ? (state || normalState)[targetName]\n : (state || normalState));\n }\n }\n if (hasTransition) {\n this._transitionState(stateName, transitionTarget, animationCfg);\n }\n };\n Element.prototype._attachComponent = function (componentEl) {\n if (componentEl.__zr && !componentEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n if (componentEl === this) {\n throw new Error('Recursive component attachment.');\n }\n var zr = this.__zr;\n if (zr) {\n componentEl.addSelfToZr(zr);\n }\n componentEl.__zr = zr;\n componentEl.__hostTarget = this;\n };\n Element.prototype._detachComponent = function (componentEl) {\n if (componentEl.__zr) {\n componentEl.removeSelfFromZr(componentEl.__zr);\n }\n componentEl.__zr = null;\n componentEl.__hostTarget = null;\n };\n Element.prototype.getClipPath = function () {\n return this._clipPath;\n };\n Element.prototype.setClipPath = function (clipPath) {\n if (this._clipPath && this._clipPath !== clipPath) {\n this.removeClipPath();\n }\n this._attachComponent(clipPath);\n this._clipPath = clipPath;\n this.markRedraw();\n };\n Element.prototype.removeClipPath = function () {\n var clipPath = this._clipPath;\n if (clipPath) {\n this._detachComponent(clipPath);\n this._clipPath = null;\n this.markRedraw();\n }\n };\n Element.prototype.getTextContent = function () {\n return this._textContent;\n };\n Element.prototype.setTextContent = function (textEl) {\n var previousTextContent = this._textContent;\n if (previousTextContent === textEl) {\n return;\n }\n if (previousTextContent && previousTextContent !== textEl) {\n this.removeTextContent();\n }\n if (textEl.__zr && !textEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n textEl.attachedTransform = new Transformable();\n this._attachComponent(textEl);\n this._textContent = textEl;\n this.markRedraw();\n };\n Element.prototype.setTextConfig = function (cfg) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n extend(this.textConfig, cfg);\n this.markRedraw();\n };\n Element.prototype.removeTextConfig = function () {\n this.textConfig = null;\n this.markRedraw();\n };\n Element.prototype.removeTextContent = function () {\n var textEl = this._textContent;\n if (textEl) {\n textEl.attachedTransform = null;\n this._detachComponent(textEl);\n this._textContent = null;\n this._innerTextDefaultStyle = null;\n this.markRedraw();\n }\n };\n Element.prototype.getTextGuideLine = function () {\n return this._textGuide;\n };\n Element.prototype.setTextGuideLine = function (guideLine) {\n if (this._textGuide && this._textGuide !== guideLine) {\n this.removeTextGuideLine();\n }\n this._attachComponent(guideLine);\n this._textGuide = guideLine;\n this.markRedraw();\n };\n Element.prototype.removeTextGuideLine = function () {\n var textGuide = this._textGuide;\n if (textGuide) {\n this._detachComponent(textGuide);\n this._textGuide = null;\n this.markRedraw();\n }\n };\n Element.prototype.markRedraw = function () {\n this.__dirty |= REDARAW_BIT;\n var zr = this.__zr;\n if (zr) {\n if (this.__inHover) {\n zr.refreshHover();\n }\n else {\n zr.refresh();\n }\n }\n if (this.__hostTarget) {\n this.__hostTarget.markRedraw();\n }\n };\n Element.prototype.dirty = function () {\n this.markRedraw();\n };\n Element.prototype._toggleHoverLayerFlag = function (inHover) {\n this.__inHover = inHover;\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.__inHover = inHover;\n }\n if (textGuide) {\n textGuide.__inHover = inHover;\n }\n };\n Element.prototype.addSelfToZr = function (zr) {\n this.__zr = zr;\n var animators = this.animators;\n if (animators) {\n for (var i = 0; i < animators.length; i++) {\n zr.animation.addAnimator(animators[i]);\n }\n }\n if (this._clipPath) {\n this._clipPath.addSelfToZr(zr);\n }\n if (this._textContent) {\n this._textContent.addSelfToZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.addSelfToZr(zr);\n }\n };\n Element.prototype.removeSelfFromZr = function (zr) {\n this.__zr = null;\n var animators = this.animators;\n if (animators) {\n for (var i = 0; i < animators.length; i++) {\n zr.animation.removeAnimator(animators[i]);\n }\n }\n if (this._clipPath) {\n this._clipPath.removeSelfFromZr(zr);\n }\n if (this._textContent) {\n this._textContent.removeSelfFromZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.removeSelfFromZr(zr);\n }\n };\n Element.prototype.animate = function (key, loop) {\n var target = key ? this[key] : this;\n if (!target) {\n logError('Property \"'\n + key\n + '\" is not existed in element '\n + this.id);\n return;\n }\n var animator = new Animator(target, loop);\n this.addAnimator(animator, key);\n return animator;\n };\n Element.prototype.addAnimator = function (animator, key) {\n var zr = this.__zr;\n var el = this;\n animator.during(function () {\n el.updateDuringAnimation(key);\n }).done(function () {\n var animators = el.animators;\n var idx = indexOf(animators, animator);\n if (idx >= 0) {\n animators.splice(idx, 1);\n }\n });\n this.animators.push(animator);\n if (zr) {\n zr.animation.addAnimator(animator);\n }\n zr && zr.wakeUp();\n };\n Element.prototype.updateDuringAnimation = function (key) {\n this.markRedraw();\n };\n Element.prototype.stopAnimation = function (scope, forwardToLast) {\n var animators = this.animators;\n var len = animators.length;\n var leftAnimators = [];\n for (var i = 0; i < len; i++) {\n var animator = animators[i];\n if (!scope || scope === animator.scope) {\n animator.stop(forwardToLast);\n }\n else {\n leftAnimators.push(animator);\n }\n }\n this.animators = leftAnimators;\n return this;\n };\n Element.prototype.animateTo = function (target, cfg, animationProps) {\n animateTo(this, target, cfg, animationProps);\n };\n Element.prototype.animateFrom = function (target, cfg, animationProps) {\n animateTo(this, target, cfg, animationProps, true);\n };\n Element.prototype._transitionState = function (stateName, target, cfg, animationProps) {\n var animators = animateTo(this, target, cfg, animationProps);\n for (var i = 0; i < animators.length; i++) {\n animators[i].__fromStateTransition = stateName;\n }\n };\n Element.prototype.getBoundingRect = function () {\n return null;\n };\n Element.prototype.getPaintRect = function () {\n return null;\n };\n Element.initDefaultProps = (function () {\n var elProto = Element.prototype;\n elProto.type = 'element';\n elProto.name = '';\n elProto.ignore = false;\n elProto.silent = false;\n elProto.isGroup = false;\n elProto.draggable = false;\n elProto.dragging = false;\n elProto.ignoreClip = false;\n elProto.__inHover = false;\n elProto.__dirty = REDARAW_BIT;\n var logs = {};\n function logDeprecatedError(key, xKey, yKey) {\n if (!logs[key + xKey + yKey]) {\n console.warn(\"DEPRECATED: '\" + key + \"' has been deprecated. use '\" + xKey + \"', '\" + yKey + \"' instead\");\n logs[key + xKey + yKey] = true;\n }\n }\n function createLegacyProperty(key, privateKey, xKey, yKey) {\n Object.defineProperty(elProto, key, {\n get: function () {\n logDeprecatedError(key, xKey, yKey);\n if (!this[privateKey]) {\n var pos = this[privateKey] = [];\n enhanceArray(this, pos);\n }\n return this[privateKey];\n },\n set: function (pos) {\n logDeprecatedError(key, xKey, yKey);\n this[xKey] = pos[0];\n this[yKey] = pos[1];\n this[privateKey] = pos;\n enhanceArray(this, pos);\n }\n });\n function enhanceArray(self, pos) {\n Object.defineProperty(pos, 0, {\n get: function () {\n return self[xKey];\n },\n set: function (val) {\n self[xKey] = val;\n }\n });\n Object.defineProperty(pos, 1, {\n get: function () {\n return self[yKey];\n },\n set: function (val) {\n self[yKey] = val;\n }\n });\n }\n }\n if (Object.defineProperty && (!env.browser.ie || env.browser.version > 8)) {\n createLegacyProperty('position', '_legacyPos', 'x', 'y');\n createLegacyProperty('scale', '_legacyScale', 'scaleX', 'scaleY');\n createLegacyProperty('origin', '_legacyOrigin', 'originX', 'originY');\n }\n })();\n return Element;\n}());\nmixin(Element, Eventful);\nmixin(Element, Transformable);\nfunction animateTo(animatable, target, cfg, animationProps, reverse) {\n cfg = cfg || {};\n var animators = [];\n animateToShallow(animatable, '', animatable, target, cfg, animationProps, animators, reverse);\n var finishCount = animators.length;\n var doneHappened = false;\n var cfgDone = cfg.done;\n var cfgAborted = cfg.aborted;\n var doneCb = function () {\n doneHappened = true;\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n var abortedCb = function () {\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n if (!finishCount) {\n cfgDone && cfgDone();\n }\n if (animators.length > 0 && cfg.during) {\n animators[0].during(function (target, percent) {\n cfg.during(percent);\n });\n }\n for (var i = 0; i < animators.length; i++) {\n var animator = animators[i];\n if (doneCb) {\n animator.done(doneCb);\n }\n if (abortedCb) {\n animator.aborted(abortedCb);\n }\n animator.start(cfg.easing, cfg.force);\n }\n return animators;\n}\nfunction copyArrShallow(source, target, len) {\n for (var i = 0; i < len; i++) {\n source[i] = target[i];\n }\n}\nfunction is2DArray(value) {\n return isArrayLike(value[0]);\n}\nfunction copyValue(target, source, key) {\n if (isArrayLike(source[key])) {\n if (!isArrayLike(target[key])) {\n target[key] = [];\n }\n if (isTypedArray(source[key])) {\n var len = source[key].length;\n if (target[key].length !== len) {\n target[key] = new (source[key].constructor)(len);\n copyArrShallow(target[key], source[key], len);\n }\n }\n else {\n var sourceArr = source[key];\n var targetArr = target[key];\n var len0 = sourceArr.length;\n if (is2DArray(sourceArr)) {\n var len1 = sourceArr[0].length;\n for (var i = 0; i < len0; i++) {\n if (!targetArr[i]) {\n targetArr[i] = Array.prototype.slice.call(sourceArr[i]);\n }\n else {\n copyArrShallow(targetArr[i], sourceArr[i], len1);\n }\n }\n }\n else {\n copyArrShallow(targetArr, sourceArr, len0);\n }\n targetArr.length = sourceArr.length;\n }\n }\n else {\n target[key] = source[key];\n }\n}\nfunction animateToShallow(animatable, topKey, source, target, cfg, animationProps, animators, reverse) {\n var animatableKeys = [];\n var changedKeys = [];\n var targetKeys = keys(target);\n var duration = cfg.duration;\n var delay = cfg.delay;\n var additive = cfg.additive;\n var setToFinal = cfg.setToFinal;\n var animateAll = !isObject(animationProps);\n for (var k = 0; k < targetKeys.length; k++) {\n var innerKey = targetKeys[k];\n if (source[innerKey] != null\n && target[innerKey] != null\n && (animateAll || animationProps[innerKey])) {\n if (isObject(target[innerKey]) && !isArrayLike(target[innerKey])) {\n if (topKey) {\n if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n }\n continue;\n }\n animateToShallow(animatable, innerKey, source[innerKey], target[innerKey], cfg, animationProps && animationProps[innerKey], animators, reverse);\n }\n else {\n animatableKeys.push(innerKey);\n changedKeys.push(innerKey);\n }\n }\n else if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n changedKeys.push(innerKey);\n }\n }\n var keyLen = animatableKeys.length;\n if (keyLen > 0\n || (cfg.force && !animators.length)) {\n var existsAnimators = animatable.animators;\n var existsAnimatorsOnSameTarget = [];\n for (var i = 0; i < existsAnimators.length; i++) {\n if (existsAnimators[i].targetName === topKey) {\n existsAnimatorsOnSameTarget.push(existsAnimators[i]);\n }\n }\n if (!additive && existsAnimatorsOnSameTarget.length) {\n for (var i = 0; i < existsAnimatorsOnSameTarget.length; i++) {\n var allAborted = existsAnimatorsOnSameTarget[i].stopTracks(changedKeys);\n if (allAborted) {\n var idx = indexOf(existsAnimators, existsAnimatorsOnSameTarget[i]);\n existsAnimators.splice(idx, 1);\n }\n }\n }\n var revertedSource = void 0;\n var reversedTarget = void 0;\n var sourceClone = void 0;\n if (reverse) {\n reversedTarget = {};\n if (setToFinal) {\n revertedSource = {};\n }\n for (var i = 0; i < keyLen; i++) {\n var innerKey = animatableKeys[i];\n reversedTarget[innerKey] = source[innerKey];\n if (setToFinal) {\n revertedSource[innerKey] = target[innerKey];\n }\n else {\n source[innerKey] = target[innerKey];\n }\n }\n }\n else if (setToFinal) {\n sourceClone = {};\n for (var i = 0; i < keyLen; i++) {\n var innerKey = animatableKeys[i];\n sourceClone[innerKey] = cloneValue(source[innerKey]);\n copyValue(source, target, innerKey);\n }\n }\n var animator = new Animator(source, false, additive ? existsAnimatorsOnSameTarget : null);\n animator.targetName = topKey;\n if (cfg.scope) {\n animator.scope = cfg.scope;\n }\n if (setToFinal && revertedSource) {\n animator.whenWithKeys(0, revertedSource, animatableKeys);\n }\n if (sourceClone) {\n animator.whenWithKeys(0, sourceClone, animatableKeys);\n }\n animator.whenWithKeys(duration == null ? 500 : duration, reverse ? reversedTarget : target, animatableKeys).delay(delay || 0);\n animatable.addAnimator(animator, topKey);\n animators.push(animator);\n }\n}\nexport default Element;\n","import { __extends } from \"tslib\";\nimport * as zrUtil from '../core/util';\nimport Element from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nvar Group = (function (_super) {\n __extends(Group, _super);\n function Group(opts) {\n var _this = _super.call(this) || this;\n _this.isGroup = true;\n _this._children = [];\n _this.attr(opts);\n return _this;\n }\n Group.prototype.childrenRef = function () {\n return this._children;\n };\n Group.prototype.children = function () {\n return this._children.slice();\n };\n Group.prototype.childAt = function (idx) {\n return this._children[idx];\n };\n Group.prototype.childOfName = function (name) {\n var children = this._children;\n for (var i = 0; i < children.length; i++) {\n if (children[i].name === name) {\n return children[i];\n }\n }\n };\n Group.prototype.childCount = function () {\n return this._children.length;\n };\n Group.prototype.add = function (child) {\n if (child) {\n if (child !== this && child.parent !== this) {\n this._children.push(child);\n this._doAdd(child);\n }\n if (child.__hostTarget) {\n throw 'This elemenet has been used as an attachment';\n }\n }\n return this;\n };\n Group.prototype.addBefore = function (child, nextSibling) {\n if (child && child !== this && child.parent !== this\n && nextSibling && nextSibling.parent === this) {\n var children = this._children;\n var idx = children.indexOf(nextSibling);\n if (idx >= 0) {\n children.splice(idx, 0, child);\n this._doAdd(child);\n }\n }\n return this;\n };\n Group.prototype.replaceAt = function (child, index) {\n var children = this._children;\n var old = children[index];\n if (child && child !== this && child.parent !== this && child !== old) {\n children[index] = child;\n old.parent = null;\n var zr = this.__zr;\n if (zr) {\n old.removeSelfFromZr(zr);\n }\n this._doAdd(child);\n }\n return this;\n };\n Group.prototype._doAdd = function (child) {\n if (child.parent) {\n child.parent.remove(child);\n }\n child.parent = this;\n var zr = this.__zr;\n if (zr && zr !== child.__zr) {\n child.addSelfToZr(zr);\n }\n zr && zr.refresh();\n };\n Group.prototype.remove = function (child) {\n var zr = this.__zr;\n var children = this._children;\n var idx = zrUtil.indexOf(children, child);\n if (idx < 0) {\n return this;\n }\n children.splice(idx, 1);\n child.parent = null;\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n zr && zr.refresh();\n return this;\n };\n Group.prototype.removeAll = function () {\n var children = this._children;\n var zr = this.__zr;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n child.parent = null;\n }\n children.length = 0;\n return this;\n };\n Group.prototype.eachChild = function (cb, context) {\n var children = this._children;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n cb.call(context, child, i);\n }\n return this;\n };\n Group.prototype.traverse = function (cb, context) {\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n var stopped = cb.call(context, child);\n if (child.isGroup && !stopped) {\n child.traverse(cb, context);\n }\n }\n return this;\n };\n Group.prototype.addSelfToZr = function (zr) {\n _super.prototype.addSelfToZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.addSelfToZr(zr);\n }\n };\n Group.prototype.removeSelfFromZr = function (zr) {\n _super.prototype.removeSelfFromZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.removeSelfFromZr(zr);\n }\n };\n Group.prototype.getBoundingRect = function (includeChildren) {\n var tmpRect = new BoundingRect(0, 0, 0, 0);\n var children = includeChildren || this._children;\n var tmpMat = [];\n var rect = null;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (child.ignore || child.invisible) {\n continue;\n }\n var childRect = child.getBoundingRect();\n var transform = child.getLocalTransform(tmpMat);\n if (transform) {\n BoundingRect.applyTransform(tmpRect, childRect, transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n return rect || tmpRect;\n };\n return Group;\n}(Element));\nGroup.prototype.type = 'group';\nexport default Group;\n","/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt\n*/\nimport env from './core/env';\nimport * as zrUtil from './core/util';\nimport Handler from './Handler';\nimport Storage from './Storage';\nimport Animation from './animation/Animation';\nimport HandlerProxy from './dom/HandlerProxy';\nimport { lum } from './tool/color';\nimport { DARK_MODE_THRESHOLD } from './config';\nimport Group from './graphic/Group';\nvar useVML = !env.canvasSupported;\nvar painterCtors = {};\nvar instances = {};\nfunction delInstance(id) {\n delete instances[id];\n}\nfunction isDarkMode(backgroundColor) {\n if (!backgroundColor) {\n return false;\n }\n if (typeof backgroundColor === 'string') {\n return lum(backgroundColor, 1) < DARK_MODE_THRESHOLD;\n }\n else if (backgroundColor.colorStops) {\n var colorStops = backgroundColor.colorStops;\n var totalLum = 0;\n var len = colorStops.length;\n for (var i = 0; i < len; i++) {\n totalLum += lum(colorStops[i].color, 1);\n }\n totalLum /= len;\n return totalLum < DARK_MODE_THRESHOLD;\n }\n return false;\n}\nvar ZRender = (function () {\n function ZRender(id, dom, opts) {\n var _this = this;\n this._sleepAfterStill = 10;\n this._stillFrameAccum = 0;\n this._needsRefresh = true;\n this._needsRefreshHover = true;\n this._darkMode = false;\n opts = opts || {};\n this.dom = dom;\n this.id = id;\n var storage = new Storage();\n var rendererType = opts.renderer || 'canvas';\n if (useVML) {\n throw new Error('IE8 support has been dropped since 5.0');\n }\n if (!painterCtors[rendererType]) {\n rendererType = zrUtil.keys(painterCtors)[0];\n }\n if (!painterCtors[rendererType]) {\n throw new Error(\"Renderer '\" + rendererType + \"' is not imported. Please import it first.\");\n }\n opts.useDirtyRect = opts.useDirtyRect == null\n ? false\n : opts.useDirtyRect;\n var painter = new painterCtors[rendererType](dom, storage, opts, id);\n this.storage = storage;\n this.painter = painter;\n var handerProxy = (!env.node && !env.worker)\n ? new HandlerProxy(painter.getViewportRoot(), painter.root)\n : null;\n this.handler = new Handler(storage, painter, handerProxy, painter.root);\n this.animation = new Animation({\n stage: {\n update: function () { return _this._flush(true); }\n }\n });\n this.animation.start();\n }\n ZRender.prototype.add = function (el) {\n if (!el) {\n return;\n }\n this.storage.addRoot(el);\n el.addSelfToZr(this);\n this.refresh();\n };\n ZRender.prototype.remove = function (el) {\n if (!el) {\n return;\n }\n this.storage.delRoot(el);\n el.removeSelfFromZr(this);\n this.refresh();\n };\n ZRender.prototype.configLayer = function (zLevel, config) {\n if (this.painter.configLayer) {\n this.painter.configLayer(zLevel, config);\n }\n this.refresh();\n };\n ZRender.prototype.setBackgroundColor = function (backgroundColor) {\n if (this.painter.setBackgroundColor) {\n this.painter.setBackgroundColor(backgroundColor);\n }\n this.refresh();\n this._backgroundColor = backgroundColor;\n this._darkMode = isDarkMode(backgroundColor);\n };\n ZRender.prototype.getBackgroundColor = function () {\n return this._backgroundColor;\n };\n ZRender.prototype.setDarkMode = function (darkMode) {\n this._darkMode = darkMode;\n };\n ZRender.prototype.isDarkMode = function () {\n return this._darkMode;\n };\n ZRender.prototype.refreshImmediately = function (fromInside) {\n if (!fromInside) {\n this.animation.update(true);\n }\n this._needsRefresh = false;\n this.painter.refresh();\n this._needsRefresh = false;\n };\n ZRender.prototype.refresh = function () {\n this._needsRefresh = true;\n this.animation.start();\n };\n ZRender.prototype.flush = function () {\n this._flush(false);\n };\n ZRender.prototype._flush = function (fromInside) {\n var triggerRendered;\n var start = new Date().getTime();\n if (this._needsRefresh) {\n triggerRendered = true;\n this.refreshImmediately(fromInside);\n }\n if (this._needsRefreshHover) {\n triggerRendered = true;\n this.refreshHoverImmediately();\n }\n var end = new Date().getTime();\n if (triggerRendered) {\n this._stillFrameAccum = 0;\n this.trigger('rendered', {\n elapsedTime: end - start\n });\n }\n else if (this._sleepAfterStill > 0) {\n this._stillFrameAccum++;\n if (this._stillFrameAccum > this._sleepAfterStill) {\n this.animation.stop();\n }\n }\n };\n ZRender.prototype.setSleepAfterStill = function (stillFramesCount) {\n this._sleepAfterStill = stillFramesCount;\n };\n ZRender.prototype.wakeUp = function () {\n this.animation.start();\n this._stillFrameAccum = 0;\n };\n ZRender.prototype.addHover = function (el) {\n };\n ZRender.prototype.removeHover = function (el) {\n };\n ZRender.prototype.clearHover = function () {\n };\n ZRender.prototype.refreshHover = function () {\n this._needsRefreshHover = true;\n };\n ZRender.prototype.refreshHoverImmediately = function () {\n this._needsRefreshHover = false;\n if (this.painter.refreshHover && this.painter.getType() === 'canvas') {\n this.painter.refreshHover();\n }\n };\n ZRender.prototype.resize = function (opts) {\n opts = opts || {};\n this.painter.resize(opts.width, opts.height);\n this.handler.resize();\n };\n ZRender.prototype.clearAnimation = function () {\n this.animation.clear();\n };\n ZRender.prototype.getWidth = function () {\n return this.painter.getWidth();\n };\n ZRender.prototype.getHeight = function () {\n return this.painter.getHeight();\n };\n ZRender.prototype.pathToImage = function (e, dpr) {\n if (this.painter.pathToImage) {\n return this.painter.pathToImage(e, dpr);\n }\n };\n ZRender.prototype.setCursorStyle = function (cursorStyle) {\n this.handler.setCursorStyle(cursorStyle);\n };\n ZRender.prototype.findHover = function (x, y) {\n return this.handler.findHover(x, y);\n };\n ZRender.prototype.on = function (eventName, eventHandler, context) {\n this.handler.on(eventName, eventHandler, context);\n return this;\n };\n ZRender.prototype.off = function (eventName, eventHandler) {\n this.handler.off(eventName, eventHandler);\n };\n ZRender.prototype.trigger = function (eventName, event) {\n this.handler.trigger(eventName, event);\n };\n ZRender.prototype.clear = function () {\n var roots = this.storage.getRoots();\n for (var i = 0; i < roots.length; i++) {\n if (roots[i] instanceof Group) {\n roots[i].removeSelfFromZr(this);\n }\n }\n this.storage.delAllRoots();\n this.painter.clear();\n };\n ZRender.prototype.dispose = function () {\n this.animation.stop();\n this.clear();\n this.storage.dispose();\n this.painter.dispose();\n this.handler.dispose();\n this.animation =\n this.storage =\n this.painter =\n this.handler = null;\n delInstance(this.id);\n };\n return ZRender;\n}());\nexport function init(dom, opts) {\n var zr = new ZRender(zrUtil.guid(), dom, opts);\n instances[zr.id] = zr;\n return zr;\n}\nexport function dispose(zr) {\n zr.dispose();\n}\nexport function disposeAll() {\n for (var key in instances) {\n if (instances.hasOwnProperty(key)) {\n instances[key].dispose();\n }\n }\n instances = {};\n}\nexport function getInstance(id) {\n return instances[id];\n}\nexport function registerPainter(name, Ctor) {\n painterCtors[name] = Ctor;\n}\nexport var version = '5.1.1';\n;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The method \"quantile\" was copied from \"d3.js\".\n* (See more details in the comment of the method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar RADIAN_EPSILON = 1e-4; // Although chrome already enlarge this number to 100 for `toFixed`, but\n// we sill follow the spec for compatibility.\n\nvar ROUND_SUPPORTED_PRECISION_MAX = 20;\n\nfunction _trim(str) {\n return str.replace(/^\\s+|\\s+$/g, '');\n}\n/**\n * Linear mapping a value from domain to range\n * @param val\n * @param domain Domain extent domain[0] can be bigger than domain[1]\n * @param range Range extent range[0] can be bigger than range[1]\n * @param clamp Default to be false\n */\n\n\nexport function linearMap(val, domain, range, clamp) {\n var d0 = domain[0];\n var d1 = domain[1];\n var r0 = range[0];\n var r1 = range[1];\n var subDomain = d1 - d0;\n var subRange = r1 - r0;\n\n if (subDomain === 0) {\n return subRange === 0 ? r0 : (r0 + r1) / 2;\n } // Avoid accuracy problem in edge, such as\n // 146.39 - 62.83 === 83.55999999999999.\n // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError\n // It is a little verbose for efficiency considering this method\n // is a hotspot.\n\n\n if (clamp) {\n if (subDomain > 0) {\n if (val <= d0) {\n return r0;\n } else if (val >= d1) {\n return r1;\n }\n } else {\n if (val >= d0) {\n return r0;\n } else if (val <= d1) {\n return r1;\n }\n }\n } else {\n if (val === d0) {\n return r0;\n }\n\n if (val === d1) {\n return r1;\n }\n }\n\n return (val - d0) / subDomain * subRange + r0;\n}\n/**\n * Convert a percent string to absolute number.\n * Returns NaN if percent is not a valid string or number\n */\n\nexport function parsePercent(percent, all) {\n switch (percent) {\n case 'center':\n case 'middle':\n percent = '50%';\n break;\n\n case 'left':\n case 'top':\n percent = '0%';\n break;\n\n case 'right':\n case 'bottom':\n percent = '100%';\n break;\n }\n\n if (typeof percent === 'string') {\n if (_trim(percent).match(/%$/)) {\n return parseFloat(percent) / 100 * all;\n }\n\n return parseFloat(percent);\n }\n\n return percent == null ? NaN : +percent;\n}\nexport function round(x, precision, returnStr) {\n if (precision == null) {\n precision = 10;\n } // Avoid range error\n\n\n precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX); // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'\n\n x = (+x).toFixed(precision);\n return returnStr ? x : +x;\n}\n/**\n * Inplacd asc sort arr.\n * The input arr will be modified.\n */\n\nexport function asc(arr) {\n arr.sort(function (a, b) {\n return a - b;\n });\n return arr;\n}\n/**\n * Get precision.\n */\n\nexport function getPrecision(val) {\n val = +val;\n\n if (isNaN(val)) {\n return 0;\n } // It is much faster than methods converting number to string as follows\n // let tmp = val.toString();\n // return tmp.length - 1 - tmp.indexOf('.');\n // especially when precision is low\n // Notice:\n // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.\n // (see https://jsbench.me/2vkpcekkvw/1)\n // (2) If the val is less than for example 1e-15, the result may be incorrect.\n // (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)\n\n\n if (val > 1e-14) {\n var e = 1;\n\n for (var i = 0; i < 15; i++, e *= 10) {\n if (Math.round(val * e) / e === val) {\n return i;\n }\n }\n }\n\n return getPrecisionSafe(val);\n}\n/**\n * Get precision with slow but safe method\n */\n\nexport function getPrecisionSafe(val) {\n // toLowerCase for: '3.4E-12'\n var str = val.toString().toLowerCase(); // Consider scientific notation: '3.4e-12' '3.4e+12'\n\n var eIndex = str.indexOf('e');\n var exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0;\n var significandPartLen = eIndex > 0 ? eIndex : str.length;\n var dotIndex = str.indexOf('.');\n var decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex;\n return Math.max(0, decimalPartLen - exp);\n}\n/**\n * Minimal dicernible data precisioin according to a single pixel.\n */\n\nexport function getPixelPrecision(dataExtent, pixelExtent) {\n var log = Math.log;\n var LN10 = Math.LN10;\n var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);\n var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10); // toFixed() digits argument must be between 0 and 20.\n\n var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);\n return !isFinite(precision) ? 20 : precision;\n}\n/**\n * Get a data of given precision, assuring the sum of percentages\n * in valueList is 1.\n * The largest remainer method is used.\n * https://en.wikipedia.org/wiki/Largest_remainder_method\n *\n * @param valueList a list of all data\n * @param idx index of the data to be processed in valueList\n * @param precision integer number showing digits of precision\n * @return percent ranging from 0 to 100\n */\n\nexport function getPercentWithPrecision(valueList, idx, precision) {\n if (!valueList[idx]) {\n return 0;\n }\n\n var sum = zrUtil.reduce(valueList, function (acc, val) {\n return acc + (isNaN(val) ? 0 : val);\n }, 0);\n\n if (sum === 0) {\n return 0;\n }\n\n var digits = Math.pow(10, precision);\n var votesPerQuota = zrUtil.map(valueList, function (val) {\n return (isNaN(val) ? 0 : val) / sum * digits * 100;\n });\n var targetSeats = digits * 100;\n var seats = zrUtil.map(votesPerQuota, function (votes) {\n // Assign automatic seats.\n return Math.floor(votes);\n });\n var currentSum = zrUtil.reduce(seats, function (acc, val) {\n return acc + val;\n }, 0);\n var remainder = zrUtil.map(votesPerQuota, function (votes, idx) {\n return votes - seats[idx];\n }); // Has remainding votes.\n\n while (currentSum < targetSeats) {\n // Find next largest remainder.\n var max = Number.NEGATIVE_INFINITY;\n var maxId = null;\n\n for (var i = 0, len = remainder.length; i < len; ++i) {\n if (remainder[i] > max) {\n max = remainder[i];\n maxId = i;\n }\n } // Add a vote to max remainder.\n\n\n ++seats[maxId];\n remainder[maxId] = 0;\n ++currentSum;\n }\n\n return seats[idx] / digits;\n}\n/**\n * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004\n * See \n */\n\nexport function addSafe(val0, val1) {\n var maxPrecision = Math.max(getPrecision(val0), getPrecision(val1)); // const multiplier = Math.pow(10, maxPrecision);\n // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;\n\n var sum = val0 + val1; // // PENDING: support more?\n\n return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX ? sum : round(sum, maxPrecision);\n} // Number.MAX_SAFE_INTEGER, ie do not support.\n\nexport var MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * To 0 - 2 * PI, considering negative radian.\n */\n\nexport function remRadian(radian) {\n var pi2 = Math.PI * 2;\n return (radian % pi2 + pi2) % pi2;\n}\n/**\n * @param {type} radian\n * @return {boolean}\n */\n\nexport function isRadianAroundZero(val) {\n return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;\n} // eslint-disable-next-line\n\nvar TIME_REG = /^(?:(\\d{4})(?:[-\\/](\\d{1,2})(?:[-\\/](\\d{1,2})(?:[T ](\\d{1,2})(?::(\\d{1,2})(?::(\\d{1,2})(?:[.,](\\d+))?)?)?(Z|[\\+\\-]\\d\\d:?\\d\\d)?)?)?)?)?$/; // jshint ignore:line\n\n/**\n * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`\n * These values can be accepted:\n * + An instance of Date, represent a time in its own time zone.\n * + Or string in a subset of ISO 8601, only including:\n * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',\n * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',\n * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',\n * all of which will be treated as local time if time zone is not specified\n * (see ).\n * + Or other string format, including (all of which will be treated as loacal time):\n * '2012', '2012-3-1', '2012/3/1', '2012/03/01',\n * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'\n * + a timestamp, which represent a time in UTC.\n * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.\n */\n\nexport function parseDate(value) {\n if (value instanceof Date) {\n return value;\n } else if (typeof value === 'string') {\n // Different browsers parse date in different way, so we parse it manually.\n // Some other issues:\n // new Date('1970-01-01') is UTC,\n // new Date('1970/01/01') and new Date('1970-1-01') is local.\n // See issue #3623\n var match = TIME_REG.exec(value);\n\n if (!match) {\n // return Invalid Date.\n return new Date(NaN);\n } // Use local time when no timezone offset specifed.\n\n\n if (!match[8]) {\n // match[n] can only be string or undefined.\n // But take care of '12' + 1 => '121'.\n return new Date(+match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, +match[7] || 0);\n } // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,\n // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).\n // For example, system timezone is set as \"Time Zone: America/Toronto\",\n // then these code will get different result:\n // `new Date(1478411999999).getTimezoneOffset(); // get 240`\n // `new Date(1478412000000).getTimezoneOffset(); // get 300`\n // So we should not use `new Date`, but use `Date.UTC`.\n else {\n var hour = +match[4] || 0;\n\n if (match[8].toUpperCase() !== 'Z') {\n hour -= +match[8].slice(0, 3);\n }\n\n return new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0));\n }\n } else if (value == null) {\n return new Date(NaN);\n }\n\n return new Date(Math.round(value));\n}\n/**\n * Quantity of a number. e.g. 0.1, 1, 10, 100\n *\n * @param val\n * @return\n */\n\nexport function quantity(val) {\n return Math.pow(10, quantityExponent(val));\n}\n/**\n * Exponent of the quantity of a number\n * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3\n *\n * @param val non-negative value\n * @return\n */\n\nexport function quantityExponent(val) {\n if (val === 0) {\n return 0;\n }\n\n var exp = Math.floor(Math.log(val) / Math.LN10);\n /**\n * exp is expected to be the rounded-down result of the base-10 log of val.\n * But due to the precision loss with Math.log(val), we need to restore it\n * using 10^exp to make sure we can get val back from exp. #11249\n */\n\n if (val / Math.pow(10, exp) >= 10) {\n exp++;\n }\n\n return exp;\n}\n/**\n * find a “nice” number approximately equal to x. Round the number if round = true,\n * take ceiling if round = false. The primary observation is that the “nicest”\n * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.\n *\n * See \"Nice Numbers for Graph Labels\" of Graphic Gems.\n *\n * @param val Non-negative value.\n * @param round\n * @return Niced number\n */\n\nexport function nice(val, round) {\n var exponent = quantityExponent(val);\n var exp10 = Math.pow(10, exponent);\n var f = val / exp10; // 1 <= f < 10\n\n var nf;\n\n if (round) {\n if (f < 1.5) {\n nf = 1;\n } else if (f < 2.5) {\n nf = 2;\n } else if (f < 4) {\n nf = 3;\n } else if (f < 7) {\n nf = 5;\n } else {\n nf = 10;\n }\n } else {\n if (f < 1) {\n nf = 1;\n } else if (f < 2) {\n nf = 2;\n } else if (f < 3) {\n nf = 3;\n } else if (f < 5) {\n nf = 5;\n } else {\n nf = 10;\n }\n }\n\n val = nf * exp10; // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).\n // 20 is the uppper bound of toFixed.\n\n return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;\n}\n/**\n * This code was copied from \"d3.js\"\n * .\n * See the license statement at the head of this file.\n * @param ascArr\n */\n\nexport function quantile(ascArr, p) {\n var H = (ascArr.length - 1) * p + 1;\n var h = Math.floor(H);\n var v = +ascArr[h - 1];\n var e = H - h;\n return e ? v + e * (ascArr[h] - v) : v;\n}\n/**\n * Order intervals asc, and split them when overlap.\n * expect(numberUtil.reformIntervals([\n * {interval: [18, 62], close: [1, 1]},\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [1, 1]},\n * {interval: [62, 150], close: [1, 1]},\n * {interval: [106, 150], close: [1, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ])).toEqual([\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [0, 1]},\n * {interval: [18, 62], close: [0, 1]},\n * {interval: [62, 150], close: [0, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ]);\n * @param list, where `close` mean open or close\n * of the interval, and Infinity can be used.\n * @return The origin list, which has been reformed.\n */\n\nexport function reformIntervals(list) {\n list.sort(function (a, b) {\n return littleThan(a, b, 0) ? -1 : 1;\n });\n var curr = -Infinity;\n var currClose = 1;\n\n for (var i = 0; i < list.length;) {\n var interval = list[i].interval;\n var close_1 = list[i].close;\n\n for (var lg = 0; lg < 2; lg++) {\n if (interval[lg] <= curr) {\n interval[lg] = curr;\n close_1[lg] = !lg ? 1 - currClose : 1;\n }\n\n curr = interval[lg];\n currClose = close_1[lg];\n }\n\n if (interval[0] === interval[1] && close_1[0] * close_1[1] !== 1) {\n list.splice(i, 1);\n } else {\n i++;\n }\n }\n\n return list;\n\n function littleThan(a, b, lg) {\n return a.interval[lg] < b.interval[lg] || a.interval[lg] === b.interval[lg] && (a.close[lg] - b.close[lg] === (!lg ? 1 : -1) || !lg && littleThan(a, b, 1));\n }\n}\n/**\n * [Numberic is defined as]:\n * `parseFloat(val) == val`\n * For example:\n * numeric:\n * typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,\n * and they rounded by white-spaces or line-terminal like ' -123 \\n ' (see es spec)\n * not-numeric:\n * null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',\n * empty string, string with only white-spaces or line-terminal (see es spec),\n * 0x12, '0x12', '-0x12', 012, '012', '-012',\n * non-string, ...\n *\n * @test See full test cases in `test/ut/spec/util/number.js`.\n * @return Must be a typeof number. If not numeric, return NaN.\n */\n\nexport function numericToNumber(val) {\n var valFloat = parseFloat(val);\n return valFloat == val // eslint-disable-line eqeqeq\n && (valFloat !== 0 || typeof val !== 'string' || val.indexOf('x') <= 0) // For case ' 0x0 '.\n ? valFloat : NaN;\n}\n/**\n * Definition of \"numeric\": see `numericToNumber`.\n */\n\nexport function isNumeric(val) {\n return !isNaN(numericToNumber(val));\n}\n/**\n * Use random base to prevent users hard code depending on\n * this auto generated marker id.\n * @return An positive integer.\n */\n\nexport function getRandomIdBase() {\n return Math.round(Math.random() * 9);\n}\n/**\n * Get the greatest common dividor\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\n\nexport function getGreatestCommonDividor(a, b) {\n if (b === 0) {\n return a;\n }\n\n return getGreatestCommonDividor(b, a % b);\n}\n/**\n * Get the least common multiple\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\n\nexport function getLeastCommonMultiple(a, b) {\n if (a == null) {\n return b;\n }\n\n if (b == null) {\n return a;\n }\n\n return a * b / getGreatestCommonDividor(a, b);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/lib/core/util';\nvar ECHARTS_PREFIX = '[ECharts] ';\nvar storedLogs = {};\nvar hasConsole = typeof console !== 'undefined' // eslint-disable-next-line\n&& console.warn && console.log;\nexport function log(str) {\n if (hasConsole) {\n // eslint-disable-next-line\n console.log(ECHARTS_PREFIX + str);\n }\n}\nexport function warn(str) {\n if (hasConsole) {\n console.warn(ECHARTS_PREFIX + str);\n }\n}\nexport function error(str) {\n if (hasConsole) {\n console.error(ECHARTS_PREFIX + str);\n }\n}\nexport function deprecateLog(str) {\n if (process.env.NODE_ENV !== 'production') {\n if (storedLogs[str]) {\n // Not display duplicate message.\n return;\n }\n\n if (hasConsole) {\n storedLogs[str] = true;\n console.warn(ECHARTS_PREFIX + 'DEPRECATED: ' + str);\n }\n }\n}\nexport function deprecateReplaceLog(oldOpt, newOpt, scope) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog((scope ? \"[\" + scope + \"]\" : '') + (oldOpt + \" is deprecated, use \" + newOpt + \" instead.\"));\n }\n}\nexport function consoleLog() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && console.log) {\n console.log.apply(console, args);\n }\n /* eslint-enable no-console */\n\n }\n}\n/**\n * If in __DEV__ environment, get console printable message for users hint.\n * Parameters are separated by ' '.\n * @usuage\n * makePrintable('This is an error on', someVar, someObj);\n *\n * @param hintInfo anything about the current execution context to hint users.\n * @throws Error\n */\n\nexport function makePrintable() {\n var hintInfo = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n hintInfo[_i] = arguments[_i];\n }\n\n var msg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n // Fuzzy stringify for print.\n // This code only exist in dev environment.\n var makePrintableStringIfPossible_1 = function (val) {\n return val === void 0 ? 'undefined' : val === Infinity ? 'Infinity' : val === -Infinity ? '-Infinity' : eqNaN(val) ? 'NaN' : val instanceof Date ? 'Date(' + val.toISOString() + ')' : isFunction(val) ? 'function () { ... }' : isRegExp(val) ? val + '' : null;\n };\n\n msg = map(hintInfo, function (arg) {\n if (isString(arg)) {\n // Print without quotation mark for some statement.\n return arg;\n } else {\n var printableStr = makePrintableStringIfPossible_1(arg);\n\n if (printableStr != null) {\n return printableStr;\n } else if (typeof JSON !== 'undefined' && JSON.stringify) {\n try {\n return JSON.stringify(arg, function (n, val) {\n var printableStr = makePrintableStringIfPossible_1(val);\n return printableStr == null ? val : printableStr;\n }); // In most cases the info object is small, so do not line break.\n } catch (err) {\n return '?';\n }\n } else {\n return '?';\n }\n }\n }).join(' ');\n }\n\n return msg;\n}\n/**\n * @throws Error\n */\n\nexport function throwError(msg) {\n throw new Error(msg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isObject, isArray, createHashMap, map, assert, isString, indexOf, isStringSafe } from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { isNumeric, getRandomIdBase, getPrecision, round } from './number';\nimport { interpolateNumber } from 'zrender/lib/animation/Animator';\nimport { warn } from './log';\n/**\n * Make the name displayable. But we should\n * make sure it is not duplicated with user\n * specified name, so use '\\0';\n */\n\nvar DUMMY_COMPONENT_NAME_PREFIX = 'series\\0';\nvar INTERNAL_COMPONENT_ID_PREFIX = '\\0_ec_\\0';\n/**\n * If value is not array, then translate it to array.\n * @param {*} value\n * @return {Array} [value] or value\n */\n\nexport function normalizeToArray(value) {\n return value instanceof Array ? value : value == null ? [] : [value];\n}\n/**\n * Sync default option between normal and emphasis like `position` and `show`\n * In case some one will write code like\n * label: {\n * show: false,\n * position: 'outside',\n * fontSize: 18\n * },\n * emphasis: {\n * label: { show: true }\n * }\n */\n\nexport function defaultEmphasis(opt, key, subOpts) {\n // Caution: performance sensitive.\n if (opt) {\n opt[key] = opt[key] || {};\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[key] = opt.emphasis[key] || {}; // Default emphasis option from normal\n\n for (var i = 0, len = subOpts.length; i < len; i++) {\n var subOptName = subOpts[i];\n\n if (!opt.emphasis[key].hasOwnProperty(subOptName) && opt[key].hasOwnProperty(subOptName)) {\n opt.emphasis[key][subOptName] = opt[key][subOptName];\n }\n }\n }\n}\nexport var TEXT_STYLE_OPTIONS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding']; // modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([\n// 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',\n// 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n// // FIXME: deprecated, check and remove it.\n// 'textStyle'\n// ]);\n\n/**\n * The method do not ensure performance.\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method retieves value from data.\n */\n\nexport function getDataItemValue(dataItem) {\n return isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date) ? dataItem.value : dataItem;\n}\n/**\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method determine if dataItem has extra option besides value\n */\n\nexport function isDataItemOption(dataItem) {\n return isObject(dataItem) && !(dataItem instanceof Array); // // markLine data can be array\n // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));\n}\n;\n/**\n * Mapping to existings for merge.\n *\n * Mode \"normalMege\":\n * The mapping result (merge result) will keep the order of the existing\n * component, rather than the order of new option. Because we should ensure\n * some specified index reference (like xAxisIndex) keep work.\n * And in most cases, \"merge option\" is used to update partial option but not\n * be expected to change the order.\n *\n * Mode \"replaceMege\":\n * (1) Only the id mapped components will be merged.\n * (2) Other existing components (except internal compoonets) will be removed.\n * (3) Other new options will be used to create new component.\n * (4) The index of the existing compoents will not be modified.\n * That means their might be \"hole\" after the removal.\n * The new components are created first at those available index.\n *\n * Mode \"replaceAll\":\n * This mode try to support that reproduce an echarts instance from another\n * echarts instance (via `getOption`) in some simple cases.\n * In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,\n * which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,\n * the \"hole\" in `newCmptOptions` will also be kept.\n * On the contrary, other modes try best to eliminate holes.\n * PENDING: This is an experimental mode yet.\n *\n * @return See the comment of .\n */\n\nexport function mappingToExists(existings, newCmptOptions, mode) {\n var isNormalMergeMode = mode === 'normalMerge';\n var isReplaceMergeMode = mode === 'replaceMerge';\n var isReplaceAllMode = mode === 'replaceAll';\n existings = existings || [];\n newCmptOptions = (newCmptOptions || []).slice();\n var existingIdIdxMap = createHashMap(); // Validate id and name on user input option.\n\n each(newCmptOptions, function (cmptOption, index) {\n if (!isObject(cmptOption)) {\n newCmptOptions[index] = null;\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // There is some legacy case that name is set as `false`.\n // But should work normally rather than throw error.\n if (cmptOption.id != null && !isValidIdOrName(cmptOption.id)) {\n warnInvalidateIdOrName(cmptOption.id);\n }\n\n if (cmptOption.name != null && !isValidIdOrName(cmptOption.name)) {\n warnInvalidateIdOrName(cmptOption.name);\n }\n }\n });\n var result = prepareResult(existings, existingIdIdxMap, mode);\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingById(result, existings, existingIdIdxMap, newCmptOptions);\n }\n\n if (isNormalMergeMode) {\n mappingByName(result, newCmptOptions);\n }\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingByIndex(result, newCmptOptions, isReplaceMergeMode);\n } else if (isReplaceAllMode) {\n mappingInReplaceAllMode(result, newCmptOptions);\n }\n\n makeIdAndName(result); // The array `result` MUST NOT contain elided items, otherwise the\n // forEach will ommit those items and result in incorrect result.\n\n return result;\n}\n\nfunction prepareResult(existings, existingIdIdxMap, mode) {\n var result = [];\n\n if (mode === 'replaceAll') {\n return result;\n } // Do not use native `map` to in case that the array `existings`\n // contains elided items, which will be ommited.\n\n\n for (var index = 0; index < existings.length; index++) {\n var existing = existings[index]; // Because of replaceMerge, `existing` may be null/undefined.\n\n if (existing && existing.id != null) {\n existingIdIdxMap.set(existing.id, index);\n } // For non-internal-componnets:\n // Mode \"normalMerge\": all existings kept.\n // Mode \"replaceMerge\": all existing removed unless mapped by id.\n // For internal-components:\n // go with \"replaceMerge\" approach in both mode.\n\n\n result.push({\n existing: mode === 'replaceMerge' || isComponentIdInternal(existing) ? null : existing,\n newOption: null,\n keyInfo: null,\n brandNew: null\n });\n }\n\n return result;\n}\n\nfunction mappingById(result, existings, existingIdIdxMap, newCmptOptions) {\n // Mapping by id if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.id == null) {\n return;\n }\n\n var optionId = makeComparableKey(cmptOption.id);\n var existingIdx = existingIdIdxMap.get(optionId);\n\n if (existingIdx != null) {\n var resultItem = result[existingIdx];\n assert(!resultItem.newOption, 'Duplicated option on id \"' + optionId + '\".');\n resultItem.newOption = cmptOption; // In both mode, if id matched, new option will be merged to\n // the existings rather than creating new component model.\n\n resultItem.existing = existings[existingIdx];\n newCmptOptions[index] = null;\n }\n });\n}\n\nfunction mappingByName(result, newCmptOptions) {\n // Mapping by name if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.name == null) {\n return;\n }\n\n for (var i = 0; i < result.length; i++) {\n var existing = result[i].existing;\n\n if (!result[i].newOption // Consider name: two map to one.\n // Can not match when both ids existing but different.\n && existing && (existing.id == null || cmptOption.id == null) && !isComponentIdInternal(cmptOption) && !isComponentIdInternal(existing) && keyExistAndEqual('name', existing, cmptOption)) {\n result[i].newOption = cmptOption;\n newCmptOptions[index] = null;\n return;\n }\n }\n });\n}\n\nfunction mappingByIndex(result, newCmptOptions, brandNew) {\n each(newCmptOptions, function (cmptOption) {\n if (!cmptOption) {\n return;\n } // Find the first place that not mapped by id and not internal component (consider the \"hole\").\n\n\n var resultItem;\n var nextIdx = 0;\n\n while ( // Be `!resultItem` only when `nextIdx >= result.length`.\n (resultItem = result[nextIdx]) && ( // (1) Existing models that already have id should be able to mapped to. Because\n // after mapping performed, model will always be assigned with an id if user not given.\n // After that all models have id.\n // (2) If new option has id, it can only set to a hole or append to the last. It should\n // not be merged to the existings with different id. Because id should not be overwritten.\n // (3) Name can be overwritten, because axis use name as 'show label text'.\n resultItem.newOption || isComponentIdInternal(resultItem.existing) || // In mode \"replaceMerge\", here no not-mapped-non-internal-existing.\n resultItem.existing && cmptOption.id != null && !keyExistAndEqual('id', cmptOption, resultItem.existing))) {\n nextIdx++;\n }\n\n if (resultItem) {\n resultItem.newOption = cmptOption;\n resultItem.brandNew = brandNew;\n } else {\n result.push({\n newOption: cmptOption,\n brandNew: brandNew,\n existing: null,\n keyInfo: null\n });\n }\n\n nextIdx++;\n });\n}\n\nfunction mappingInReplaceAllMode(result, newCmptOptions) {\n each(newCmptOptions, function (cmptOption) {\n // The feature \"reproduce\" requires \"hole\" will also reproduced\n // in case that compoennt index referring are broken.\n result.push({\n newOption: cmptOption,\n brandNew: true,\n existing: null,\n keyInfo: null\n });\n });\n}\n/**\n * Make id and name for mapping result (result of mappingToExists)\n * into `keyInfo` field.\n */\n\n\nfunction makeIdAndName(mapResult) {\n // We use this id to hash component models and view instances\n // in echarts. id can be specified by user, or auto generated.\n // The id generation rule ensures new view instance are able\n // to mapped to old instance when setOption are called in\n // no-merge mode. So we generate model id by name and plus\n // type in view id.\n // name can be duplicated among components, which is convenient\n // to specify multi components (like series) by one name.\n // Ensure that each id is distinct.\n var idMap = createHashMap();\n each(mapResult, function (item) {\n var existing = item.existing;\n existing && idMap.set(existing.id, item);\n });\n each(mapResult, function (item) {\n var opt = item.newOption; // Force ensure id not duplicated.\n\n assert(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id));\n opt && opt.id != null && idMap.set(opt.id, item);\n !item.keyInfo && (item.keyInfo = {});\n }); // Make name and id.\n\n each(mapResult, function (item, index) {\n var existing = item.existing;\n var opt = item.newOption;\n var keyInfo = item.keyInfo;\n\n if (!isObject(opt)) {\n return;\n } // name can be overwitten. Consider case: axis.name = '20km'.\n // But id generated by name will not be changed, which affect\n // only in that case: setOption with 'not merge mode' and view\n // instance will be recreated, which can be accepted.\n\n\n keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name // Avoid diffferent series has the same name,\n // because name may be used like in color pallet.\n : DUMMY_COMPONENT_NAME_PREFIX + index;\n\n if (existing) {\n keyInfo.id = makeComparableKey(existing.id);\n } else if (opt.id != null) {\n keyInfo.id = makeComparableKey(opt.id);\n } else {\n // Consider this situatoin:\n // optionA: [{name: 'a'}, {name: 'a'}, {..}]\n // optionB [{..}, {name: 'a'}, {name: 'a'}]\n // Series with the same name between optionA and optionB\n // should be mapped.\n var idNum = 0;\n\n do {\n keyInfo.id = '\\0' + keyInfo.name + '\\0' + idNum++;\n } while (idMap.get(keyInfo.id));\n }\n\n idMap.set(keyInfo.id, item);\n });\n}\n\nfunction keyExistAndEqual(attr, obj1, obj2) {\n var key1 = convertOptionIdName(obj1[attr], null);\n var key2 = convertOptionIdName(obj2[attr], null); // See `MappingExistingItem`. `id` and `name` trade string equals to number.\n\n return key1 != null && key2 != null && key1 === key2;\n}\n/**\n * @return return null if not exist.\n */\n\n\nfunction makeComparableKey(val) {\n if (process.env.NODE_ENV !== 'production') {\n if (val == null) {\n throw new Error();\n }\n }\n\n return convertOptionIdName(val, '');\n}\n\nexport function convertOptionIdName(idOrName, defaultValue) {\n if (idOrName == null) {\n return defaultValue;\n }\n\n var type = typeof idOrName;\n return type === 'string' ? idOrName : type === 'number' || isStringSafe(idOrName) ? idOrName + '' : defaultValue;\n}\n\nfunction warnInvalidateIdOrName(idOrName) {\n if (process.env.NODE_ENV !== 'production') {\n warn('`' + idOrName + '` is invalid id or name. Must be a string or number.');\n }\n}\n\nfunction isValidIdOrName(idOrName) {\n return isStringSafe(idOrName) || isNumeric(idOrName);\n}\n\nexport function isNameSpecified(componentModel) {\n var name = componentModel.name; // Is specified when `indexOf` get -1 or > 0.\n\n return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX));\n}\n/**\n * @public\n * @param {Object} cmptOption\n * @return {boolean}\n */\n\nexport function isComponentIdInternal(cmptOption) {\n return cmptOption && cmptOption.id != null && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0;\n}\nexport function makeInternalComponentId(idSuffix) {\n return INTERNAL_COMPONENT_ID_PREFIX + idSuffix;\n}\nexport function setComponentTypeToKeyInfo(mappingResult, mainType, componentModelCtor) {\n // Set mainType and complete subType.\n each(mappingResult, function (item) {\n var newOption = item.newOption;\n\n if (isObject(newOption)) {\n item.keyInfo.mainType = mainType;\n item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor);\n }\n });\n}\n\nfunction determineSubType(mainType, newCmptOption, existComponent, componentModelCtor) {\n var subType = newCmptOption.type ? newCmptOption.type : existComponent ? existComponent.subType // Use determineSubType only when there is no existComponent.\n : componentModelCtor.determineSubType(mainType, newCmptOption); // tooltip, markline, markpoint may always has no subType\n\n return subType;\n}\n/**\n * A helper for removing duplicate items between batchA and batchB,\n * and in themselves, and categorize by series.\n *\n * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @return result: [resultBatchA, resultBatchB]\n */\n\n\nexport function compressBatches(batchA, batchB) {\n var mapA = {};\n var mapB = {};\n makeMap(batchA || [], mapA);\n makeMap(batchB || [], mapB, mapA);\n return [mapToArray(mapA), mapToArray(mapB)];\n\n function makeMap(sourceBatch, map, otherMap) {\n for (var i = 0, len = sourceBatch.length; i < len; i++) {\n var seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);\n\n if (seriesId == null) {\n return;\n }\n\n var dataIndices = normalizeToArray(sourceBatch[i].dataIndex);\n var otherDataIndices = otherMap && otherMap[seriesId];\n\n for (var j = 0, lenj = dataIndices.length; j < lenj; j++) {\n var dataIndex = dataIndices[j];\n\n if (otherDataIndices && otherDataIndices[dataIndex]) {\n otherDataIndices[dataIndex] = null;\n } else {\n (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;\n }\n }\n }\n }\n\n function mapToArray(map, isData) {\n var result = [];\n\n for (var i in map) {\n if (map.hasOwnProperty(i) && map[i] != null) {\n if (isData) {\n result.push(+i);\n } else {\n var dataIndices = mapToArray(map[i], true);\n dataIndices.length && result.push({\n seriesId: i,\n dataIndex: dataIndices\n });\n }\n }\n }\n\n return result;\n }\n}\n/**\n * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name\n * each of which can be Array or primary type.\n * @return dataIndex If not found, return undefined/null.\n */\n\nexport function queryDataIndex(data, payload) {\n if (payload.dataIndexInside != null) {\n return payload.dataIndexInside;\n } else if (payload.dataIndex != null) {\n return isArray(payload.dataIndex) ? map(payload.dataIndex, function (value) {\n return data.indexOfRawIndex(value);\n }) : data.indexOfRawIndex(payload.dataIndex);\n } else if (payload.name != null) {\n return isArray(payload.name) ? map(payload.name, function (value) {\n return data.indexOfName(value);\n }) : data.indexOfName(payload.name);\n }\n}\n/**\n * Enable property storage to any host object.\n * Notice: Serialization is not supported.\n *\n * For example:\n * let inner = zrUitl.makeInner();\n *\n * function some1(hostObj) {\n * inner(hostObj).someProperty = 1212;\n * ...\n * }\n * function some2() {\n * let fields = inner(this);\n * fields.someProperty1 = 1212;\n * fields.someProperty2 = 'xx';\n * ...\n * }\n *\n * @return {Function}\n */\n\nexport function makeInner() {\n var key = '__ec_inner_' + innerUniqueIndex++;\n return function (hostObj) {\n return hostObj[key] || (hostObj[key] = {});\n };\n}\nvar innerUniqueIndex = getRandomIdBase();\n/**\n * The same behavior as `component.getReferringComponents`.\n */\n\nexport function parseFinder(ecModel, finderInput, opt) {\n var _a = preParseFinder(finderInput, opt),\n mainTypeSpecified = _a.mainTypeSpecified,\n queryOptionMap = _a.queryOptionMap,\n others = _a.others;\n\n var result = others;\n var defaultMainType = opt ? opt.defaultMainType : null;\n\n if (!mainTypeSpecified && defaultMainType) {\n queryOptionMap.set(defaultMainType, {});\n }\n\n queryOptionMap.each(function (queryOption, mainType) {\n var queryResult = queryReferringComponents(ecModel, mainType, queryOption, {\n useDefault: defaultMainType === mainType,\n enableAll: opt && opt.enableAll != null ? opt.enableAll : true,\n enableNone: opt && opt.enableNone != null ? opt.enableNone : true\n });\n result[mainType + 'Models'] = queryResult.models;\n result[mainType + 'Model'] = queryResult.models[0];\n });\n return result;\n}\nexport function preParseFinder(finderInput, opt) {\n var finder;\n\n if (isString(finderInput)) {\n var obj = {};\n obj[finderInput + 'Index'] = 0;\n finder = obj;\n } else {\n finder = finderInput;\n }\n\n var queryOptionMap = createHashMap();\n var others = {};\n var mainTypeSpecified = false;\n each(finder, function (value, key) {\n // Exclude 'dataIndex' and other illgal keys.\n if (key === 'dataIndex' || key === 'dataIndexInside') {\n others[key] = value;\n return;\n }\n\n var parsedKey = key.match(/^(\\w+)(Index|Id|Name)$/) || [];\n var mainType = parsedKey[1];\n var queryType = (parsedKey[2] || '').toLowerCase();\n\n if (!mainType || !queryType || opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0) {\n return;\n }\n\n mainTypeSpecified = mainTypeSpecified || !!mainType;\n var queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {});\n queryOption[queryType] = value;\n });\n return {\n mainTypeSpecified: mainTypeSpecified,\n queryOptionMap: queryOptionMap,\n others: others\n };\n}\nexport var SINGLE_REFERRING = {\n useDefault: true,\n enableAll: false,\n enableNone: false\n};\nexport var MULTIPLE_REFERRING = {\n useDefault: false,\n enableAll: true,\n enableNone: true\n};\nexport function queryReferringComponents(ecModel, mainType, userOption, opt) {\n opt = opt || SINGLE_REFERRING;\n var indexOption = userOption.index;\n var idOption = userOption.id;\n var nameOption = userOption.name;\n var result = {\n models: null,\n specified: indexOption != null || idOption != null || nameOption != null\n };\n\n if (!result.specified) {\n // Use the first as default if `useDefault`.\n var firstCmpt = void 0;\n result.models = opt.useDefault && (firstCmpt = ecModel.getComponent(mainType)) ? [firstCmpt] : [];\n return result;\n }\n\n if (indexOption === 'none' || indexOption === false) {\n assert(opt.enableNone, '`\"none\"` or `false` is not a valid value on index option.');\n result.models = [];\n return result;\n } // `queryComponents` will return all components if\n // both all of index/id/name are null/undefined.\n\n\n if (indexOption === 'all') {\n assert(opt.enableAll, '`\"all\"` is not a valid value on index option.');\n indexOption = idOption = nameOption = null;\n }\n\n result.models = ecModel.queryComponents({\n mainType: mainType,\n index: indexOption,\n id: idOption,\n name: nameOption\n });\n return result;\n}\nexport function setAttribute(dom, key, value) {\n dom.setAttribute ? dom.setAttribute(key, value) : dom[key] = value;\n}\nexport function getAttribute(dom, key) {\n return dom.getAttribute ? dom.getAttribute(key) : dom[key];\n}\nexport function getTooltipRenderMode(renderModeOption) {\n if (renderModeOption === 'auto') {\n // Using html when `document` exists, use richText otherwise\n return env.domSupported ? 'html' : 'richText';\n } else {\n return renderModeOption || 'html';\n }\n}\n/**\n * Group a list by key.\n */\n\nexport function groupData(array, getKey // return key\n) {\n var buckets = createHashMap();\n var keys = [];\n each(array, function (item) {\n var key = getKey(item);\n (buckets.get(key) || (keys.push(key), buckets.set(key, []))).push(item);\n });\n return {\n keys: keys,\n buckets: buckets\n };\n}\n/**\n * Interpolate raw values of a series with percent\n *\n * @param data data\n * @param labelModel label model of the text element\n * @param sourceValue start value. May be null/undefined when init.\n * @param targetValue end value\n * @param percent 0~1 percentage; 0 uses start value while 1 uses end value\n * @return interpolated values\n * If `sourceValue` and `targetValue` are `number`, return `number`.\n * If `sourceValue` and `targetValue` are `string`, return `string`.\n * If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.\n * Other cases do not supported.\n */\n\nexport function interpolateRawValues(data, precision, sourceValue, targetValue, percent) {\n var isAutoPrecision = precision == null || precision === 'auto';\n\n if (targetValue == null) {\n return targetValue;\n }\n\n if (typeof targetValue === 'number') {\n var value = interpolateNumber(sourceValue || 0, targetValue, percent);\n return round(value, isAutoPrecision ? Math.max(getPrecision(sourceValue || 0), getPrecision(targetValue)) : precision);\n } else if (typeof targetValue === 'string') {\n return percent < 1 ? sourceValue : targetValue;\n } else {\n var interpolated = [];\n var leftArr = sourceValue;\n var rightArr = targetValue;\n var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n\n for (var i = 0; i < length_1; ++i) {\n var info = data.getDimensionInfo(i); // Don't interpolate ordinal dims\n\n if (info.type === 'ordinal') {\n // In init, there is no `sourceValue`, but should better not to get undefined result.\n interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i];\n } else {\n var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0;\n var rightVal = rightArr[i];\n var value = interpolateNumber(leftVal, rightVal, percent);\n interpolated[i] = round(value, isAutoPrecision ? Math.max(getPrecision(leftVal), getPrecision(rightVal)) : precision);\n }\n }\n\n return interpolated;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __spreadArrays } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nvar TYPE_DELIMITER = '.';\nvar IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';\nvar IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___';\n/**\n * Notice, parseClassType('') should returns {main: '', sub: ''}\n * @public\n */\n\nexport function parseClassType(componentType) {\n var ret = {\n main: '',\n sub: ''\n };\n\n if (componentType) {\n var typeArr = componentType.split(TYPE_DELIMITER);\n ret.main = typeArr[0] || '';\n ret.sub = typeArr[1] || '';\n }\n\n return ret;\n}\n/**\n * @public\n */\n\nfunction checkClassType(componentType) {\n zrUtil.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType \"' + componentType + '\" illegal');\n}\n\nexport function isExtendedClass(clz) {\n return !!(clz && clz[IS_EXTENDED_CLASS]);\n}\n/**\n * Implements `ExtendableConstructor` for `rootClz`.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ExtendableConstructor\n * enableClassExtend(Xxx as XxxConstructor);\n * ```\n */\n\nexport function enableClassExtend(rootClz, mandatoryMethods) {\n rootClz.$constructor = rootClz; // FIXME: not necessary?\n\n rootClz.extend = function (proto) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.each(mandatoryMethods, function (method) {\n if (!proto[method]) {\n console.warn('Method `' + method + '` should be implemented' + (proto.type ? ' in ' + proto.type : '') + '.');\n }\n });\n }\n\n var superClass = this; // For backward compat, we both support ts class inheritance and this\n // \"extend\" approach.\n // The constructor should keep the same behavior as ts class inheritance:\n // If this constructor/$constructor is not declared, auto invoke the super\n // constructor.\n // If this constructor/$constructor is declared, it is responsible for\n // calling the super constructor.\n\n function ExtendedClass() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (!proto.$constructor) {\n if (!isESClass(superClass)) {\n // Will throw error if superClass is an es6 native class.\n superClass.apply(this, arguments);\n } else {\n var ins = zrUtil.createObject( // @ts-ignore\n ExtendedClass.prototype, new (superClass.bind.apply(superClass, __spreadArrays([void 0], args)))());\n return ins;\n }\n } else {\n proto.$constructor.apply(this, arguments);\n }\n }\n\n ExtendedClass[IS_EXTENDED_CLASS] = true;\n zrUtil.extend(ExtendedClass.prototype, proto);\n ExtendedClass.extend = this.extend;\n ExtendedClass.superCall = superCall;\n ExtendedClass.superApply = superApply;\n zrUtil.inherits(ExtendedClass, this);\n ExtendedClass.superClass = superClass;\n return ExtendedClass;\n };\n}\n\nfunction isESClass(fn) {\n return typeof fn === 'function' && /^class\\s/.test(Function.prototype.toString.call(fn));\n}\n/**\n * A work around to both support ts extend and this extend mechanism.\n * on sub-class.\n * @usage\n * ```ts\n * class Component { ... }\n * classUtil.enableClassExtend(Component);\n * classUtil.enableClassManagement(Component, {registerWhenExtend: true});\n *\n * class Series extends Component { ... }\n * // Without calling `markExtend`, `registerWhenExtend` will not work.\n * Component.markExtend(Series);\n * ```\n */\n\n\nexport function mountExtend(SubClz, SupperClz) {\n SubClz.extend = SupperClz.extend;\n} // A random offset.\n\nvar classBase = Math.round(Math.random() * 10);\n/**\n * Implements `CheckableConstructor` for `target`.\n * Can not use instanceof, consider different scope by\n * cross domain or es module import in ec extensions.\n * Mount a method \"isInstance()\" to Clz.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & CheckableConstructor;\n * enableClassCheck(Xxx as XxxConstructor)\n * ```\n */\n\nexport function enableClassCheck(target) {\n var classAttr = ['__\\0is_clz', classBase++].join('_');\n target.prototype[classAttr] = true;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(!target.isInstance, 'The method \"is\" can not be defined.');\n }\n\n target.isInstance = function (obj) {\n return !!(obj && obj[classAttr]);\n };\n} // superCall should have class info, which can not be fetch from 'this'.\n// Consider this case:\n// class A has method f,\n// class B inherits class A, overrides method f, f call superApply('f'),\n// class C inherits class B, do not overrides method f,\n// then when method of class C is called, dead loop occured.\n\nfunction superCall(context, methodName) {\n var args = [];\n\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nfunction superApply(context, methodName, args) {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n/**\n * Implements `ClassManager` for `target`\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ClassManager\n * enableClassManagement(Xxx as XxxConstructor);\n * ```\n */\n\n\nexport function enableClassManagement(target) {\n /**\n * Component model classes\n * key: componentType,\n * value:\n * componentClass, when componentType is 'xxx'\n * or Object., when componentType is 'xxx.yy'\n */\n var storage = {};\n\n target.registerClass = function (clz) {\n // `type` should not be a \"instance memeber\".\n // If using TS class, should better declared as `static type = 'series.pie'`.\n // otherwise users have to mount `type` on prototype manually.\n // For backward compat and enable instance visit type via `this.type`,\n // we stil support fetch `type` from prototype.\n var componentFullType = clz.type || clz.prototype.type;\n\n if (componentFullType) {\n checkClassType(componentFullType); // If only static type declared, we assign it to prototype mandatorily.\n\n clz.prototype.type = componentFullType;\n var componentTypeInfo = parseClassType(componentFullType);\n\n if (!componentTypeInfo.sub) {\n if (process.env.NODE_ENV !== 'production') {\n if (storage[componentTypeInfo.main]) {\n console.warn(componentTypeInfo.main + ' exists.');\n }\n }\n\n storage[componentTypeInfo.main] = clz;\n } else if (componentTypeInfo.sub !== IS_CONTAINER) {\n var container = makeContainer(componentTypeInfo);\n container[componentTypeInfo.sub] = clz;\n }\n }\n\n return clz;\n };\n\n target.getClass = function (mainType, subType, throwWhenNotFound) {\n var clz = storage[mainType];\n\n if (clz && clz[IS_CONTAINER]) {\n clz = subType ? clz[subType] : null;\n }\n\n if (throwWhenNotFound && !clz) {\n throw new Error(!subType ? mainType + '.' + 'type should be specified.' : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.');\n }\n\n return clz;\n };\n\n target.getClassesByMainType = function (componentType) {\n var componentTypeInfo = parseClassType(componentType);\n var result = [];\n var obj = storage[componentTypeInfo.main];\n\n if (obj && obj[IS_CONTAINER]) {\n zrUtil.each(obj, function (o, type) {\n type !== IS_CONTAINER && result.push(o);\n });\n } else {\n result.push(obj);\n }\n\n return result;\n };\n\n target.hasClass = function (componentType) {\n // Just consider componentType.main.\n var componentTypeInfo = parseClassType(componentType);\n return !!storage[componentTypeInfo.main];\n };\n /**\n * @return Like ['aa', 'bb'], but can not be ['aa.xx']\n */\n\n\n target.getAllClassMainTypes = function () {\n var types = [];\n zrUtil.each(storage, function (obj, type) {\n types.push(type);\n });\n return types;\n };\n /**\n * If a main type is container and has sub types\n */\n\n\n target.hasSubTypes = function (componentType) {\n var componentTypeInfo = parseClassType(componentType);\n var obj = storage[componentTypeInfo.main];\n return obj && obj[IS_CONTAINER];\n };\n\n function makeContainer(componentTypeInfo) {\n var container = storage[componentTypeInfo.main];\n\n if (!container || !container[IS_CONTAINER]) {\n container = storage[componentTypeInfo.main] = {};\n container[IS_CONTAINER] = true;\n }\n\n return container;\n }\n} // /**\n// * @param {string|Array.} properties\n// */\n// export function setReadOnly(obj, properties) {\n// FIXME It seems broken in IE8 simulation of IE11\n// if (!zrUtil.isArray(properties)) {\n// properties = properties != null ? [properties] : [];\n// }\n// zrUtil.each(properties, function (prop) {\n// let value = obj[prop];\n// Object.defineProperty\n// && Object.defineProperty(obj, prop, {\n// value: value, writable: false\n// });\n// zrUtil.isArray(obj[prop])\n// && Object.freeze\n// && Object.freeze(obj[prop]);\n// });\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO Parse shadow style\n// TODO Only shallow path support\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function makeStyleMapper(properties, ignoreParent) {\n // Normalize\n for (var i = 0; i < properties.length; i++) {\n if (!properties[i][1]) {\n properties[i][1] = properties[i][0];\n }\n }\n\n ignoreParent = ignoreParent || false;\n return function (model, excludes, includes) {\n var style = {};\n\n for (var i = 0; i < properties.length; i++) {\n var propName = properties[i][1];\n\n if (excludes && zrUtil.indexOf(excludes, propName) >= 0 || includes && zrUtil.indexOf(includes, propName) < 0) {\n continue;\n }\n\n var val = model.getShallow(propName, ignoreParent);\n\n if (val != null) {\n style[properties[i][0]] = val;\n }\n } // TODO Text or image?\n\n\n return style;\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var AREA_STYLE_KEY_MAP = [['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getAreaStyle = makeStyleMapper(AREA_STYLE_KEY_MAP);\n\nvar AreaStyleMixin =\n/** @class */\nfunction () {\n function AreaStyleMixin() {}\n\n AreaStyleMixin.prototype.getAreaStyle = function (excludes, includes) {\n return getAreaStyle(this, excludes, includes);\n };\n\n return AreaStyleMixin;\n}();\n\n;\nexport { AreaStyleMixin };","import LRU from '../../core/LRU';\nvar globalImageCache = new LRU(50);\nexport function findExistImage(newImageOrSrc) {\n if (typeof newImageOrSrc === 'string') {\n var cachedImgObj = globalImageCache.get(newImageOrSrc);\n return cachedImgObj && cachedImgObj.image;\n }\n else {\n return newImageOrSrc;\n }\n}\nexport function createOrUpdateImage(newImageOrSrc, image, hostEl, onload, cbPayload) {\n if (!newImageOrSrc) {\n return image;\n }\n else if (typeof newImageOrSrc === 'string') {\n if ((image && image.__zrImageSrc === newImageOrSrc) || !hostEl) {\n return image;\n }\n var cachedImgObj = globalImageCache.get(newImageOrSrc);\n var pendingWrap = { hostEl: hostEl, cb: onload, cbPayload: cbPayload };\n if (cachedImgObj) {\n image = cachedImgObj.image;\n !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);\n }\n else {\n image = new Image();\n image.onload = image.onerror = imageOnLoad;\n globalImageCache.put(newImageOrSrc, image.__cachedImgObj = {\n image: image,\n pending: [pendingWrap]\n });\n image.src = image.__zrImageSrc = newImageOrSrc;\n }\n return image;\n }\n else {\n return newImageOrSrc;\n }\n}\nfunction imageOnLoad() {\n var cachedImgObj = this.__cachedImgObj;\n this.onload = this.onerror = this.__cachedImgObj = null;\n for (var i = 0; i < cachedImgObj.pending.length; i++) {\n var pendingWrap = cachedImgObj.pending[i];\n var cb = pendingWrap.cb;\n cb && cb(this, pendingWrap.cbPayload);\n pendingWrap.hostEl.dirty();\n }\n cachedImgObj.pending.length = 0;\n}\nexport function isImageReady(image) {\n return image && image.width && image.height;\n}\n","import * as imageHelper from '../helper/image';\nimport { extend, retrieve2, retrieve3, reduce } from '../../core/util';\nimport { getLineHeight, getWidth, parsePercent } from '../../contain/text';\nvar STYLE_REG = /\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;\nexport function truncateText(text, containerWidth, font, ellipsis, options) {\n if (!containerWidth) {\n return '';\n }\n var textLines = (text + '').split('\\n');\n options = prepareTruncateOptions(containerWidth, font, ellipsis, options);\n for (var i = 0, len = textLines.length; i < len; i++) {\n textLines[i] = truncateSingleLine(textLines[i], options);\n }\n return textLines.join('\\n');\n}\nfunction prepareTruncateOptions(containerWidth, font, ellipsis, options) {\n options = options || {};\n var preparedOpts = extend({}, options);\n preparedOpts.font = font;\n ellipsis = retrieve2(ellipsis, '...');\n preparedOpts.maxIterations = retrieve2(options.maxIterations, 2);\n var minChar = preparedOpts.minChar = retrieve2(options.minChar, 0);\n preparedOpts.cnCharWidth = getWidth('国', font);\n var ascCharWidth = preparedOpts.ascCharWidth = getWidth('a', font);\n preparedOpts.placeholder = retrieve2(options.placeholder, '');\n var contentWidth = containerWidth = Math.max(0, containerWidth - 1);\n for (var i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {\n contentWidth -= ascCharWidth;\n }\n var ellipsisWidth = getWidth(ellipsis, font);\n if (ellipsisWidth > contentWidth) {\n ellipsis = '';\n ellipsisWidth = 0;\n }\n contentWidth = containerWidth - ellipsisWidth;\n preparedOpts.ellipsis = ellipsis;\n preparedOpts.ellipsisWidth = ellipsisWidth;\n preparedOpts.contentWidth = contentWidth;\n preparedOpts.containerWidth = containerWidth;\n return preparedOpts;\n}\nfunction truncateSingleLine(textLine, options) {\n var containerWidth = options.containerWidth;\n var font = options.font;\n var contentWidth = options.contentWidth;\n if (!containerWidth) {\n return '';\n }\n var lineWidth = getWidth(textLine, font);\n if (lineWidth <= containerWidth) {\n return textLine;\n }\n for (var j = 0;; j++) {\n if (lineWidth <= contentWidth || j >= options.maxIterations) {\n textLine += options.ellipsis;\n break;\n }\n var subLength = j === 0\n ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)\n : lineWidth > 0\n ? Math.floor(textLine.length * contentWidth / lineWidth)\n : 0;\n textLine = textLine.substr(0, subLength);\n lineWidth = getWidth(textLine, font);\n }\n if (textLine === '') {\n textLine = options.placeholder;\n }\n return textLine;\n}\nfunction estimateLength(text, contentWidth, ascCharWidth, cnCharWidth) {\n var width = 0;\n var i = 0;\n for (var len = text.length; i < len && width < contentWidth; i++) {\n var charCode = text.charCodeAt(i);\n width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;\n }\n return i;\n}\nexport function parsePlainText(text, style) {\n text != null && (text += '');\n var overflow = style.overflow;\n var padding = style.padding;\n var font = style.font;\n var truncate = overflow === 'truncate';\n var calculatedLineHeight = getLineHeight(font);\n var lineHeight = retrieve2(style.lineHeight, calculatedLineHeight);\n var truncateLineOverflow = style.lineOverflow === 'truncate';\n var width = style.width;\n var lines;\n if (width != null && overflow === 'break' || overflow === 'breakAll') {\n lines = text ? wrapText(text, style.font, width, overflow === 'breakAll', 0).lines : [];\n }\n else {\n lines = text ? text.split('\\n') : [];\n }\n var contentHeight = lines.length * lineHeight;\n var height = retrieve2(style.height, contentHeight);\n if (contentHeight > height && truncateLineOverflow) {\n var lineCount = Math.floor(height / lineHeight);\n lines = lines.slice(0, lineCount);\n }\n var outerHeight = height;\n var outerWidth = width;\n if (padding) {\n outerHeight += padding[0] + padding[2];\n if (outerWidth != null) {\n outerWidth += padding[1] + padding[3];\n }\n }\n if (text && truncate && outerWidth != null) {\n var options = prepareTruncateOptions(width, font, style.ellipsis, {\n minChar: style.truncateMinChar,\n placeholder: style.placeholder\n });\n for (var i = 0; i < lines.length; i++) {\n lines[i] = truncateSingleLine(lines[i], options);\n }\n }\n if (width == null) {\n var maxWidth = 0;\n for (var i = 0; i < lines.length; i++) {\n maxWidth = Math.max(getWidth(lines[i], font), maxWidth);\n }\n width = maxWidth;\n }\n return {\n lines: lines,\n height: height,\n outerHeight: outerHeight,\n lineHeight: lineHeight,\n calculatedLineHeight: calculatedLineHeight,\n contentHeight: contentHeight,\n width: width\n };\n}\nvar RichTextToken = (function () {\n function RichTextToken() {\n }\n return RichTextToken;\n}());\nvar RichTextLine = (function () {\n function RichTextLine(tokens) {\n this.tokens = [];\n if (tokens) {\n this.tokens = tokens;\n }\n }\n return RichTextLine;\n}());\nvar RichTextContentBlock = (function () {\n function RichTextContentBlock() {\n this.width = 0;\n this.height = 0;\n this.contentWidth = 0;\n this.contentHeight = 0;\n this.outerWidth = 0;\n this.outerHeight = 0;\n this.lines = [];\n }\n return RichTextContentBlock;\n}());\nexport { RichTextContentBlock };\nexport function parseRichText(text, style) {\n var contentBlock = new RichTextContentBlock();\n text != null && (text += '');\n if (!text) {\n return contentBlock;\n }\n var topWidth = style.width;\n var topHeight = style.height;\n var overflow = style.overflow;\n var wrapInfo = (overflow === 'break' || overflow === 'breakAll') && topWidth != null\n ? { width: topWidth, accumWidth: 0, breakAll: overflow === 'breakAll' }\n : null;\n var lastIndex = STYLE_REG.lastIndex = 0;\n var result;\n while ((result = STYLE_REG.exec(text)) != null) {\n var matchedIndex = result.index;\n if (matchedIndex > lastIndex) {\n pushTokens(contentBlock, text.substring(lastIndex, matchedIndex), style, wrapInfo);\n }\n pushTokens(contentBlock, result[2], style, wrapInfo, result[1]);\n lastIndex = STYLE_REG.lastIndex;\n }\n if (lastIndex < text.length) {\n pushTokens(contentBlock, text.substring(lastIndex, text.length), style, wrapInfo);\n }\n var pendingList = [];\n var calculatedHeight = 0;\n var calculatedWidth = 0;\n var stlPadding = style.padding;\n var truncate = overflow === 'truncate';\n var truncateLine = style.lineOverflow === 'truncate';\n function finishLine(line, lineWidth, lineHeight) {\n line.width = lineWidth;\n line.lineHeight = lineHeight;\n calculatedHeight += lineHeight;\n calculatedWidth = Math.max(calculatedWidth, lineWidth);\n }\n outer: for (var i = 0; i < contentBlock.lines.length; i++) {\n var line = contentBlock.lines[i];\n var lineHeight = 0;\n var lineWidth = 0;\n for (var j = 0; j < line.tokens.length; j++) {\n var token = line.tokens[j];\n var tokenStyle = token.styleName && style.rich[token.styleName] || {};\n var textPadding = token.textPadding = tokenStyle.padding;\n var paddingH = textPadding ? textPadding[1] + textPadding[3] : 0;\n var font = token.font = tokenStyle.font || style.font;\n token.contentHeight = getLineHeight(font);\n var tokenHeight = retrieve2(tokenStyle.height, token.contentHeight);\n token.innerHeight = tokenHeight;\n textPadding && (tokenHeight += textPadding[0] + textPadding[2]);\n token.height = tokenHeight;\n token.lineHeight = retrieve3(tokenStyle.lineHeight, style.lineHeight, tokenHeight);\n token.align = tokenStyle && tokenStyle.align || style.align;\n token.verticalAlign = tokenStyle && tokenStyle.verticalAlign || 'middle';\n if (truncateLine && topHeight != null && calculatedHeight + token.lineHeight > topHeight) {\n if (j > 0) {\n line.tokens = line.tokens.slice(0, j);\n finishLine(line, lineWidth, lineHeight);\n contentBlock.lines = contentBlock.lines.slice(0, i + 1);\n }\n else {\n contentBlock.lines = contentBlock.lines.slice(0, i);\n }\n break outer;\n }\n var styleTokenWidth = tokenStyle.width;\n var tokenWidthNotSpecified = styleTokenWidth == null || styleTokenWidth === 'auto';\n if (typeof styleTokenWidth === 'string' && styleTokenWidth.charAt(styleTokenWidth.length - 1) === '%') {\n token.percentWidth = styleTokenWidth;\n pendingList.push(token);\n token.contentWidth = getWidth(token.text, font);\n }\n else {\n if (tokenWidthNotSpecified) {\n var textBackgroundColor = tokenStyle.backgroundColor;\n var bgImg = textBackgroundColor && textBackgroundColor.image;\n if (bgImg) {\n bgImg = imageHelper.findExistImage(bgImg);\n if (imageHelper.isImageReady(bgImg)) {\n token.width = Math.max(token.width, bgImg.width * tokenHeight / bgImg.height);\n }\n }\n }\n var remainTruncWidth = truncate && topWidth != null\n ? topWidth - lineWidth : null;\n if (remainTruncWidth != null && remainTruncWidth < token.width) {\n if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {\n token.text = '';\n token.width = token.contentWidth = 0;\n }\n else {\n token.text = truncateText(token.text, remainTruncWidth - paddingH, font, style.ellipsis, { minChar: style.truncateMinChar });\n token.width = token.contentWidth = getWidth(token.text, font);\n }\n }\n else {\n token.contentWidth = getWidth(token.text, font);\n }\n }\n token.width += paddingH;\n lineWidth += token.width;\n tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));\n }\n finishLine(line, lineWidth, lineHeight);\n }\n contentBlock.outerWidth = contentBlock.width = retrieve2(topWidth, calculatedWidth);\n contentBlock.outerHeight = contentBlock.height = retrieve2(topHeight, calculatedHeight);\n contentBlock.contentHeight = calculatedHeight;\n contentBlock.contentWidth = calculatedWidth;\n if (stlPadding) {\n contentBlock.outerWidth += stlPadding[1] + stlPadding[3];\n contentBlock.outerHeight += stlPadding[0] + stlPadding[2];\n }\n for (var i = 0; i < pendingList.length; i++) {\n var token = pendingList[i];\n var percentWidth = token.percentWidth;\n token.width = parseInt(percentWidth, 10) / 100 * contentBlock.width;\n }\n return contentBlock;\n}\nfunction pushTokens(block, str, style, wrapInfo, styleName) {\n var isEmptyStr = str === '';\n var tokenStyle = styleName && style.rich[styleName] || {};\n var lines = block.lines;\n var font = tokenStyle.font || style.font;\n var newLine = false;\n var strLines;\n var linesWidths;\n if (wrapInfo) {\n var tokenPadding = tokenStyle.padding;\n var tokenPaddingH = tokenPadding ? tokenPadding[1] + tokenPadding[3] : 0;\n if (tokenStyle.width != null && tokenStyle.width !== 'auto') {\n var outerWidth_1 = parsePercent(tokenStyle.width, wrapInfo.width) + tokenPaddingH;\n if (lines.length > 0) {\n if (outerWidth_1 + wrapInfo.accumWidth > wrapInfo.width) {\n strLines = str.split('\\n');\n newLine = true;\n }\n }\n wrapInfo.accumWidth = outerWidth_1;\n }\n else {\n var res = wrapText(str, font, wrapInfo.width, wrapInfo.breakAll, wrapInfo.accumWidth);\n wrapInfo.accumWidth = res.accumWidth + tokenPaddingH;\n linesWidths = res.linesWidths;\n strLines = res.lines;\n }\n }\n else {\n strLines = str.split('\\n');\n }\n for (var i = 0; i < strLines.length; i++) {\n var text = strLines[i];\n var token = new RichTextToken();\n token.styleName = styleName;\n token.text = text;\n token.isLineHolder = !text && !isEmptyStr;\n if (typeof tokenStyle.width === 'number') {\n token.width = tokenStyle.width;\n }\n else {\n token.width = linesWidths\n ? linesWidths[i]\n : getWidth(text, font);\n }\n if (!i && !newLine) {\n var tokens = (lines[lines.length - 1] || (lines[0] = new RichTextLine())).tokens;\n var tokensLen = tokens.length;\n (tokensLen === 1 && tokens[0].isLineHolder)\n ? (tokens[0] = token)\n : ((text || !tokensLen || isEmptyStr) && tokens.push(token));\n }\n else {\n lines.push(new RichTextLine([token]));\n }\n }\n}\nfunction isLatin(ch) {\n var code = ch.charCodeAt(0);\n return code >= 0x21 && code <= 0xFF;\n}\nvar breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {\n obj[ch] = true;\n return obj;\n}, {});\nfunction isWordBreakChar(ch) {\n if (isLatin(ch)) {\n if (breakCharMap[ch]) {\n return true;\n }\n return false;\n }\n return true;\n}\nfunction wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {\n var lines = [];\n var linesWidths = [];\n var line = '';\n var currentWord = '';\n var currentWordWidth = 0;\n var accumWidth = 0;\n for (var i = 0; i < text.length; i++) {\n var ch = text.charAt(i);\n if (ch === '\\n') {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n line = '';\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = 0;\n continue;\n }\n var chWidth = getWidth(ch, font);\n var inWord = isBreakAll ? false : !isWordBreakChar(ch);\n if (!lines.length\n ? lastAccumWidth + accumWidth + chWidth > lineWidth\n : accumWidth + chWidth > lineWidth) {\n if (!accumWidth) {\n if (inWord) {\n lines.push(currentWord);\n linesWidths.push(currentWordWidth);\n currentWord = ch;\n currentWordWidth = chWidth;\n }\n else {\n lines.push(ch);\n linesWidths.push(chWidth);\n }\n }\n else if (line || currentWord) {\n if (inWord) {\n if (!line) {\n line = currentWord;\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth - currentWordWidth);\n currentWord += ch;\n currentWordWidth += chWidth;\n line = '';\n accumWidth = currentWordWidth;\n }\n else {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n currentWord = '';\n currentWordWidth = 0;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n line = ch;\n accumWidth = chWidth;\n }\n }\n continue;\n }\n accumWidth += chWidth;\n if (inWord) {\n currentWord += ch;\n currentWordWidth += chWidth;\n }\n else {\n if (currentWord) {\n line += currentWord;\n currentWord = '';\n currentWordWidth = 0;\n }\n line += ch;\n }\n }\n if (!lines.length && !line) {\n line = text;\n currentWord = '';\n currentWordWidth = 0;\n }\n if (currentWord) {\n line += currentWord;\n }\n if (line) {\n lines.push(line);\n linesWidths.push(accumWidth);\n }\n if (lines.length === 1) {\n accumWidth += lastAccumWidth;\n }\n return {\n accumWidth: accumWidth,\n lines: lines,\n linesWidths: linesWidths\n };\n}\n","import { __extends } from \"tslib\";\nimport Element from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { keys, extend, createObject } from '../core/util';\nimport { REDARAW_BIT, STYLE_CHANGED_BIT } from './constants';\nvar STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));\nexport var DEFAULT_COMMON_STYLE = {\n shadowBlur: 0,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n shadowColor: '#000',\n opacity: 1,\n blend: 'source-over'\n};\nexport var DEFAULT_COMMON_ANIMATION_PROPS = {\n style: {\n shadowBlur: true,\n shadowOffsetX: true,\n shadowOffsetY: true,\n shadowColor: true,\n opacity: true\n }\n};\nDEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY] = true;\nvar PRIMARY_STATES_KEYS = ['z', 'z2', 'invisible'];\nvar PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ['invisible'];\nvar Displayable = (function (_super) {\n __extends(Displayable, _super);\n function Displayable(props) {\n return _super.call(this, props) || this;\n }\n Displayable.prototype._init = function (props) {\n var keysArr = keys(props);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n if (key === 'style') {\n this.useStyle(props[key]);\n }\n else {\n _super.prototype.attrKV.call(this, key, props[key]);\n }\n }\n if (!this.style) {\n this.useStyle({});\n }\n };\n Displayable.prototype.beforeBrush = function () { };\n Displayable.prototype.afterBrush = function () { };\n Displayable.prototype.innerBeforeBrush = function () { };\n Displayable.prototype.innerAfterBrush = function () { };\n Displayable.prototype.shouldBePainted = function (viewWidth, viewHeight, considerClipPath, considerAncestors) {\n var m = this.transform;\n if (this.ignore\n || this.invisible\n || this.style.opacity === 0\n || (this.culling\n && isDisplayableCulled(this, viewWidth, viewHeight))\n || (m && !m[0] && !m[3])) {\n return false;\n }\n if (considerClipPath && this.__clipPaths) {\n for (var i = 0; i < this.__clipPaths.length; ++i) {\n if (this.__clipPaths[i].isZeroArea()) {\n return false;\n }\n }\n }\n if (considerAncestors && this.parent) {\n var parent_1 = this.parent;\n while (parent_1) {\n if (parent_1.ignore) {\n return false;\n }\n parent_1 = parent_1.parent;\n }\n }\n return true;\n };\n Displayable.prototype.contain = function (x, y) {\n return this.rectContain(x, y);\n };\n Displayable.prototype.traverse = function (cb, context) {\n cb.call(context, this);\n };\n Displayable.prototype.rectContain = function (x, y) {\n var coord = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n return rect.contain(coord[0], coord[1]);\n };\n Displayable.prototype.getPaintRect = function () {\n var rect = this._paintRect;\n if (!this._paintRect || this.__dirty) {\n var transform = this.transform;\n var elRect = this.getBoundingRect();\n var style = this.style;\n var shadowSize = style.shadowBlur || 0;\n var shadowOffsetX = style.shadowOffsetX || 0;\n var shadowOffsetY = style.shadowOffsetY || 0;\n rect = this._paintRect || (this._paintRect = new BoundingRect(0, 0, 0, 0));\n if (transform) {\n BoundingRect.applyTransform(rect, elRect, transform);\n }\n else {\n rect.copy(elRect);\n }\n if (shadowSize || shadowOffsetX || shadowOffsetY) {\n rect.width += shadowSize * 2 + Math.abs(shadowOffsetX);\n rect.height += shadowSize * 2 + Math.abs(shadowOffsetY);\n rect.x = Math.min(rect.x, rect.x + shadowOffsetX - shadowSize);\n rect.y = Math.min(rect.y, rect.y + shadowOffsetY - shadowSize);\n }\n var tolerance = this.dirtyRectTolerance;\n if (!rect.isZero()) {\n rect.x = Math.floor(rect.x - tolerance);\n rect.y = Math.floor(rect.y - tolerance);\n rect.width = Math.ceil(rect.width + 1 + tolerance * 2);\n rect.height = Math.ceil(rect.height + 1 + tolerance * 2);\n }\n }\n return rect;\n };\n Displayable.prototype.setPrevPaintRect = function (paintRect) {\n if (paintRect) {\n this._prevPaintRect = this._prevPaintRect || new BoundingRect(0, 0, 0, 0);\n this._prevPaintRect.copy(paintRect);\n }\n else {\n this._prevPaintRect = null;\n }\n };\n Displayable.prototype.getPrevPaintRect = function () {\n return this._prevPaintRect;\n };\n Displayable.prototype.animateStyle = function (loop) {\n return this.animate('style', loop);\n };\n Displayable.prototype.updateDuringAnimation = function (targetKey) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else {\n this.markRedraw();\n }\n };\n Displayable.prototype.attrKV = function (key, value) {\n if (key !== 'style') {\n _super.prototype.attrKV.call(this, key, value);\n }\n else {\n if (!this.style) {\n this.useStyle(value);\n }\n else {\n this.setStyle(value);\n }\n }\n };\n Displayable.prototype.setStyle = function (keyOrObj, value) {\n if (typeof keyOrObj === 'string') {\n this.style[keyOrObj] = value;\n }\n else {\n extend(this.style, keyOrObj);\n }\n this.dirtyStyle();\n return this;\n };\n Displayable.prototype.dirtyStyle = function (notRedraw) {\n if (!notRedraw) {\n this.markRedraw();\n }\n this.__dirty |= STYLE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n };\n Displayable.prototype.dirty = function () {\n this.dirtyStyle();\n };\n Displayable.prototype.styleChanged = function () {\n return !!(this.__dirty & STYLE_CHANGED_BIT);\n };\n Displayable.prototype.styleUpdated = function () {\n this.__dirty &= ~STYLE_CHANGED_BIT;\n };\n Displayable.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_COMMON_STYLE, obj);\n };\n Displayable.prototype.useStyle = function (obj) {\n if (!obj[STYLE_MAGIC_KEY]) {\n obj = this.createStyle(obj);\n }\n if (this.__inHover) {\n this.__hoverStyle = obj;\n }\n else {\n this.style = obj;\n }\n this.dirtyStyle();\n };\n Displayable.prototype.isStyleObject = function (obj) {\n return obj[STYLE_MAGIC_KEY];\n };\n Displayable.prototype._innerSaveToNormal = function (toState) {\n _super.prototype._innerSaveToNormal.call(this, toState);\n var normalState = this._normalState;\n if (toState.style && !normalState.style) {\n normalState.style = this._mergeStyle(this.createStyle(), this.style);\n }\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n };\n Displayable.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n var needsRestoreToNormal = !(state && keepCurrentStates);\n var targetStyle;\n if (state && state.style) {\n if (transition) {\n if (keepCurrentStates) {\n targetStyle = state.style;\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), keepCurrentStates ? this.style : normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else if (needsRestoreToNormal) {\n targetStyle = normalState.style;\n }\n if (targetStyle) {\n if (transition) {\n var sourceStyle = this.style;\n this.style = this.createStyle(needsRestoreToNormal ? {} : sourceStyle);\n if (needsRestoreToNormal) {\n var changedKeys = keys(sourceStyle);\n for (var i = 0; i < changedKeys.length; i++) {\n var key = changedKeys[i];\n if (key in targetStyle) {\n targetStyle[key] = targetStyle[key];\n this.style[key] = sourceStyle[key];\n }\n }\n }\n var targetKeys = keys(targetStyle);\n for (var i = 0; i < targetKeys.length; i++) {\n var key = targetKeys[i];\n this.style[key] = this.style[key];\n }\n this._transitionState(stateName, {\n style: targetStyle\n }, animationCfg, this.getAnimationStyleProps());\n }\n else {\n this.useStyle(targetStyle);\n }\n }\n var statesKeys = this.__inHover ? PRIMARY_STATES_KEYS_IN_HOVER_LAYER : PRIMARY_STATES_KEYS;\n for (var i = 0; i < statesKeys.length; i++) {\n var key = statesKeys[i];\n if (state && state[key] != null) {\n this[key] = state[key];\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n this[key] = normalState[key];\n }\n }\n }\n };\n Displayable.prototype._mergeStates = function (states) {\n var mergedState = _super.prototype._mergeStates.call(this, states);\n var mergedStyle;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n if (state.style) {\n mergedStyle = mergedStyle || {};\n this._mergeStyle(mergedStyle, state.style);\n }\n }\n if (mergedStyle) {\n mergedState.style = mergedStyle;\n }\n return mergedState;\n };\n Displayable.prototype._mergeStyle = function (targetStyle, sourceStyle) {\n extend(targetStyle, sourceStyle);\n return targetStyle;\n };\n Displayable.prototype.getAnimationStyleProps = function () {\n return DEFAULT_COMMON_ANIMATION_PROPS;\n };\n Displayable.initDefaultProps = (function () {\n var dispProto = Displayable.prototype;\n dispProto.type = 'displayable';\n dispProto.invisible = false;\n dispProto.z = 0;\n dispProto.z2 = 0;\n dispProto.zlevel = 0;\n dispProto.culling = false;\n dispProto.cursor = 'pointer';\n dispProto.rectHover = false;\n dispProto.incremental = false;\n dispProto._rect = null;\n dispProto.dirtyRectTolerance = 0;\n dispProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT;\n })();\n return Displayable;\n}(Element));\nvar tmpRect = new BoundingRect(0, 0, 0, 0);\nvar viewRect = new BoundingRect(0, 0, 0, 0);\nfunction isDisplayableCulled(el, width, height) {\n tmpRect.copy(el.getBoundingRect());\n if (el.transform) {\n tmpRect.applyTransform(el.transform);\n }\n viewRect.width = width;\n viewRect.height = height;\n return !tmpRect.intersect(viewRect);\n}\nexport default Displayable;\n","import { create as v2Create, distSquare as v2DistSquare } from './vector';\nvar mathPow = Math.pow;\nvar mathSqrt = Math.sqrt;\nvar EPSILON = 1e-8;\nvar EPSILON_NUMERIC = 1e-4;\nvar THREE_SQRT = mathSqrt(3);\nvar ONE_THIRD = 1 / 3;\nvar _v0 = v2Create();\nvar _v1 = v2Create();\nvar _v2 = v2Create();\nfunction isAroundZero(val) {\n return val > -EPSILON && val < EPSILON;\n}\nfunction isNotAroundZero(val) {\n return val > EPSILON || val < -EPSILON;\n}\nexport function cubicAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return onet * onet * (onet * p0 + 3 * t * p1)\n + t * t * (t * p3 + 3 * onet * p2);\n}\nexport function cubicDerivativeAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return 3 * (((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet\n + (p3 - p2) * t * t);\n}\nexport function cubicRootAt(p0, p1, p2, p3, val, roots) {\n var a = p3 + 3 * (p1 - p2) - p0;\n var b = 3 * (p2 - p1 * 2 + p0);\n var c = 3 * (p1 - p0);\n var d = p0 - val;\n var A = b * b - 3 * a * c;\n var B = b * c - 9 * a * d;\n var C = c * c - 3 * b * d;\n var n = 0;\n if (isAroundZero(A) && isAroundZero(B)) {\n if (isAroundZero(b)) {\n roots[0] = 0;\n }\n else {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n var disc = B * B - 4 * A * C;\n if (isAroundZero(disc)) {\n var K = B / A;\n var t1 = -b / a + K;\n var t2 = -K / 2;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var Y1 = A * b + 1.5 * a * (-B + discSqrt);\n var Y2 = A * b + 1.5 * a * (-B - discSqrt);\n if (Y1 < 0) {\n Y1 = -mathPow(-Y1, ONE_THIRD);\n }\n else {\n Y1 = mathPow(Y1, ONE_THIRD);\n }\n if (Y2 < 0) {\n Y2 = -mathPow(-Y2, ONE_THIRD);\n }\n else {\n Y2 = mathPow(Y2, ONE_THIRD);\n }\n var t1 = (-b - (Y1 + Y2)) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else {\n var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));\n var theta = Math.acos(T) / 3;\n var ASqrt = mathSqrt(A);\n var tmp = Math.cos(theta);\n var t1 = (-b - 2 * ASqrt * tmp) / (3 * a);\n var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);\n var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n if (t3 >= 0 && t3 <= 1) {\n roots[n++] = t3;\n }\n }\n }\n return n;\n}\nexport function cubicExtrema(p0, p1, p2, p3, extrema) {\n var b = 6 * p2 - 12 * p1 + 6 * p0;\n var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;\n var c = 3 * p1 - 3 * p0;\n var n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n }\n }\n else {\n var disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n extrema[0] = -b / (2 * a);\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var t1 = (-b + discSqrt) / (2 * a);\n var t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n extrema[n++] = t2;\n }\n }\n }\n return n;\n}\nexport function cubicSubdivide(p0, p1, p2, p3, t, out) {\n var p01 = (p1 - p0) * t + p0;\n var p12 = (p2 - p1) * t + p1;\n var p23 = (p3 - p2) * t + p2;\n var p012 = (p12 - p01) * t + p01;\n var p123 = (p23 - p12) * t + p12;\n var p0123 = (p123 - p012) * t + p012;\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p0123;\n out[4] = p0123;\n out[5] = p123;\n out[6] = p23;\n out[7] = p3;\n}\nexport function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n var prev;\n var next;\n var d1;\n var d2;\n _v0[0] = x;\n _v0[1] = y;\n for (var _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = cubicAt(x0, x1, x2, x3, _t);\n _v1[1] = cubicAt(y0, y1, y2, y3, _t);\n d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n for (var i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n prev = t - interval;\n next = t + interval;\n _v1[0] = cubicAt(x0, x1, x2, x3, prev);\n _v1[1] = cubicAt(y0, y1, y2, y3, prev);\n d1 = v2DistSquare(_v1, _v0);\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n _v2[0] = cubicAt(x0, x1, x2, x3, next);\n _v2[1] = cubicAt(y0, y1, y2, y3, next);\n d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n if (out) {\n out[0] = cubicAt(x0, x1, x2, x3, t);\n out[1] = cubicAt(y0, y1, y2, y3, t);\n }\n return mathSqrt(d);\n}\nexport function cubicLength(x0, y0, x1, y1, x2, y2, x3, y3, iteration) {\n var px = x0;\n var py = y0;\n var d = 0;\n var step = 1 / iteration;\n for (var i = 1; i <= iteration; i++) {\n var t = i * step;\n var x = cubicAt(x0, x1, x2, x3, t);\n var y = cubicAt(y0, y1, y2, y3, t);\n var dx = x - px;\n var dy = y - py;\n d += Math.sqrt(dx * dx + dy * dy);\n px = x;\n py = y;\n }\n return d;\n}\nexport function quadraticAt(p0, p1, p2, t) {\n var onet = 1 - t;\n return onet * (onet * p0 + 2 * t * p1) + t * t * p2;\n}\nexport function quadraticDerivativeAt(p0, p1, p2, t) {\n return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));\n}\nexport function quadraticRootAt(p0, p1, p2, val, roots) {\n var a = p0 - 2 * p1 + p2;\n var b = 2 * (p1 - p0);\n var c = p0 - val;\n var n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n var disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n var t1 = -b / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var t1 = (-b + discSqrt) / (2 * a);\n var t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n }\n return n;\n}\nexport function quadraticExtremum(p0, p1, p2) {\n var divider = p0 + p2 - 2 * p1;\n if (divider === 0) {\n return 0.5;\n }\n else {\n return (p0 - p1) / divider;\n }\n}\nexport function quadraticSubdivide(p0, p1, p2, t, out) {\n var p01 = (p1 - p0) * t + p0;\n var p12 = (p2 - p1) * t + p1;\n var p012 = (p12 - p01) * t + p01;\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p012;\n out[4] = p12;\n out[5] = p2;\n}\nexport function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n _v0[0] = x;\n _v0[1] = y;\n for (var _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = quadraticAt(x0, x1, x2, _t);\n _v1[1] = quadraticAt(y0, y1, y2, _t);\n var d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n for (var i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n var prev = t - interval;\n var next = t + interval;\n _v1[0] = quadraticAt(x0, x1, x2, prev);\n _v1[1] = quadraticAt(y0, y1, y2, prev);\n var d1 = v2DistSquare(_v1, _v0);\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n _v2[0] = quadraticAt(x0, x1, x2, next);\n _v2[1] = quadraticAt(y0, y1, y2, next);\n var d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n if (out) {\n out[0] = quadraticAt(x0, x1, x2, t);\n out[1] = quadraticAt(y0, y1, y2, t);\n }\n return mathSqrt(d);\n}\nexport function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {\n var px = x0;\n var py = y0;\n var d = 0;\n var step = 1 / iteration;\n for (var i = 1; i <= iteration; i++) {\n var t = i * step;\n var x = quadraticAt(x0, x1, x2, t);\n var y = quadraticAt(y0, y1, y2, t);\n var dx = x - px;\n var dy = y - py;\n d += Math.sqrt(dx * dx + dy * dy);\n px = x;\n py = y;\n }\n return d;\n}\n","import * as vec2 from './vector';\nimport * as curve from './curve';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI2 = Math.PI * 2;\nvar start = vec2.create();\nvar end = vec2.create();\nvar extremity = vec2.create();\nexport function fromPoints(points, min, max) {\n if (points.length === 0) {\n return;\n }\n var p = points[0];\n var left = p[0];\n var right = p[0];\n var top = p[1];\n var bottom = p[1];\n for (var i = 1; i < points.length; i++) {\n p = points[i];\n left = mathMin(left, p[0]);\n right = mathMax(right, p[0]);\n top = mathMin(top, p[1]);\n bottom = mathMax(bottom, p[1]);\n }\n min[0] = left;\n min[1] = top;\n max[0] = right;\n max[1] = bottom;\n}\nexport function fromLine(x0, y0, x1, y1, min, max) {\n min[0] = mathMin(x0, x1);\n min[1] = mathMin(y0, y1);\n max[0] = mathMax(x0, x1);\n max[1] = mathMax(y0, y1);\n}\nvar xDim = [];\nvar yDim = [];\nexport function fromCubic(x0, y0, x1, y1, x2, y2, x3, y3, min, max) {\n var cubicExtrema = curve.cubicExtrema;\n var cubicAt = curve.cubicAt;\n var n = cubicExtrema(x0, x1, x2, x3, xDim);\n min[0] = Infinity;\n min[1] = Infinity;\n max[0] = -Infinity;\n max[1] = -Infinity;\n for (var i = 0; i < n; i++) {\n var x = cubicAt(x0, x1, x2, x3, xDim[i]);\n min[0] = mathMin(x, min[0]);\n max[0] = mathMax(x, max[0]);\n }\n n = cubicExtrema(y0, y1, y2, y3, yDim);\n for (var i = 0; i < n; i++) {\n var y = cubicAt(y0, y1, y2, y3, yDim[i]);\n min[1] = mathMin(y, min[1]);\n max[1] = mathMax(y, max[1]);\n }\n min[0] = mathMin(x0, min[0]);\n max[0] = mathMax(x0, max[0]);\n min[0] = mathMin(x3, min[0]);\n max[0] = mathMax(x3, max[0]);\n min[1] = mathMin(y0, min[1]);\n max[1] = mathMax(y0, max[1]);\n min[1] = mathMin(y3, min[1]);\n max[1] = mathMax(y3, max[1]);\n}\nexport function fromQuadratic(x0, y0, x1, y1, x2, y2, min, max) {\n var quadraticExtremum = curve.quadraticExtremum;\n var quadraticAt = curve.quadraticAt;\n var tx = mathMax(mathMin(quadraticExtremum(x0, x1, x2), 1), 0);\n var ty = mathMax(mathMin(quadraticExtremum(y0, y1, y2), 1), 0);\n var x = quadraticAt(x0, x1, x2, tx);\n var y = quadraticAt(y0, y1, y2, ty);\n min[0] = mathMin(x0, x2, x);\n min[1] = mathMin(y0, y2, y);\n max[0] = mathMax(x0, x2, x);\n max[1] = mathMax(y0, y2, y);\n}\nexport function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {\n var vec2Min = vec2.min;\n var vec2Max = vec2.max;\n var diff = Math.abs(startAngle - endAngle);\n if (diff % PI2 < 1e-4 && diff > 1e-4) {\n min[0] = x - rx;\n min[1] = y - ry;\n max[0] = x + rx;\n max[1] = y + ry;\n return;\n }\n start[0] = mathCos(startAngle) * rx + x;\n start[1] = mathSin(startAngle) * ry + y;\n end[0] = mathCos(endAngle) * rx + x;\n end[1] = mathSin(endAngle) * ry + y;\n vec2Min(min, start, end);\n vec2Max(max, start, end);\n startAngle = startAngle % (PI2);\n if (startAngle < 0) {\n startAngle = startAngle + PI2;\n }\n endAngle = endAngle % (PI2);\n if (endAngle < 0) {\n endAngle = endAngle + PI2;\n }\n if (startAngle > endAngle && !anticlockwise) {\n endAngle += PI2;\n }\n else if (startAngle < endAngle && anticlockwise) {\n startAngle += PI2;\n }\n if (anticlockwise) {\n var tmp = endAngle;\n endAngle = startAngle;\n startAngle = tmp;\n }\n for (var angle = 0; angle < endAngle; angle += Math.PI / 2) {\n if (angle > startAngle) {\n extremity[0] = mathCos(angle) * rx + x;\n extremity[1] = mathSin(angle) * ry + y;\n vec2Min(min, extremity, min);\n vec2Max(max, extremity, max);\n }\n }\n}\n","import * as vec2 from './vector';\nimport BoundingRect from './BoundingRect';\nimport { devicePixelRatio as dpr } from '../config';\nimport { fromLine, fromCubic, fromQuadratic, fromArc } from './bbox';\nimport { cubicAt, cubicLength, cubicSubdivide, quadraticLength, quadraticSubdivide } from './curve';\nvar CMD = {\n M: 1,\n L: 2,\n C: 3,\n Q: 4,\n A: 5,\n Z: 6,\n R: 7\n};\nvar tmpOutX = [];\nvar tmpOutY = [];\nvar min = [];\nvar max = [];\nvar min2 = [];\nvar max2 = [];\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathCos = Math.cos;\nvar mathSin = Math.sin;\nvar mathSqrt = Math.sqrt;\nvar mathAbs = Math.abs;\nvar PI = Math.PI;\nvar PI2 = PI * 2;\nvar hasTypedArray = typeof Float32Array !== 'undefined';\nvar tmpAngles = [];\nfunction modPI2(radian) {\n var n = Math.round(radian / PI * 1e8) / 1e8;\n return (n % 2) * PI;\n}\nexport function normalizeArcAngles(angles, anticlockwise) {\n var newStartAngle = modPI2(angles[0]);\n if (newStartAngle < 0) {\n newStartAngle += PI2;\n }\n var delta = newStartAngle - angles[0];\n var newEndAngle = angles[1];\n newEndAngle += delta;\n if (!anticlockwise && newEndAngle - newStartAngle >= PI2) {\n newEndAngle = newStartAngle + PI2;\n }\n else if (anticlockwise && newStartAngle - newEndAngle >= PI2) {\n newEndAngle = newStartAngle - PI2;\n }\n else if (!anticlockwise && newStartAngle > newEndAngle) {\n newEndAngle = newStartAngle + (PI2 - modPI2(newStartAngle - newEndAngle));\n }\n else if (anticlockwise && newStartAngle < newEndAngle) {\n newEndAngle = newStartAngle - (PI2 - modPI2(newEndAngle - newStartAngle));\n }\n angles[0] = newStartAngle;\n angles[1] = newEndAngle;\n}\nvar PathProxy = (function () {\n function PathProxy(notSaveData) {\n this.dpr = 1;\n this._xi = 0;\n this._yi = 0;\n this._x0 = 0;\n this._y0 = 0;\n this._len = 0;\n if (notSaveData) {\n this._saveData = false;\n }\n if (this._saveData) {\n this.data = [];\n }\n }\n PathProxy.prototype.increaseVersion = function () {\n this._version++;\n };\n PathProxy.prototype.getVersion = function () {\n return this._version;\n };\n PathProxy.prototype.setScale = function (sx, sy, segmentIgnoreThreshold) {\n segmentIgnoreThreshold = segmentIgnoreThreshold || 0;\n if (segmentIgnoreThreshold > 0) {\n this._ux = mathAbs(segmentIgnoreThreshold / dpr / sx) || 0;\n this._uy = mathAbs(segmentIgnoreThreshold / dpr / sy) || 0;\n }\n };\n PathProxy.prototype.setDPR = function (dpr) {\n this.dpr = dpr;\n };\n PathProxy.prototype.setContext = function (ctx) {\n this._ctx = ctx;\n };\n PathProxy.prototype.getContext = function () {\n return this._ctx;\n };\n PathProxy.prototype.beginPath = function () {\n this._ctx && this._ctx.beginPath();\n this.reset();\n return this;\n };\n PathProxy.prototype.reset = function () {\n if (this._saveData) {\n this._len = 0;\n }\n if (this._lineDash) {\n this._lineDash = null;\n this._dashOffset = 0;\n }\n if (this._pathSegLen) {\n this._pathSegLen = null;\n this._pathLen = 0;\n }\n this._version++;\n };\n PathProxy.prototype.moveTo = function (x, y) {\n this._drawPendingPt();\n this.addData(CMD.M, x, y);\n this._ctx && this._ctx.moveTo(x, y);\n this._x0 = x;\n this._y0 = y;\n this._xi = x;\n this._yi = y;\n return this;\n };\n PathProxy.prototype.lineTo = function (x, y) {\n var dx = mathAbs(x - this._xi);\n var dy = mathAbs(y - this._yi);\n var exceedUnit = dx > this._ux || dy > this._uy;\n this.addData(CMD.L, x, y);\n if (this._ctx && exceedUnit) {\n this._needsDash ? this._dashedLineTo(x, y)\n : this._ctx.lineTo(x, y);\n }\n if (exceedUnit) {\n this._xi = x;\n this._yi = y;\n this._pendingPtDist = 0;\n }\n else {\n var d2 = dx * dx + dy * dy;\n if (d2 > this._pendingPtDist) {\n this._pendingPtX = x;\n this._pendingPtY = y;\n this._pendingPtDist = d2;\n }\n }\n return this;\n };\n PathProxy.prototype.bezierCurveTo = function (x1, y1, x2, y2, x3, y3) {\n this.addData(CMD.C, x1, y1, x2, y2, x3, y3);\n if (this._ctx) {\n this._needsDash ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)\n : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n this._xi = x3;\n this._yi = y3;\n return this;\n };\n PathProxy.prototype.quadraticCurveTo = function (x1, y1, x2, y2) {\n this.addData(CMD.Q, x1, y1, x2, y2);\n if (this._ctx) {\n this._needsDash ? this._dashedQuadraticTo(x1, y1, x2, y2)\n : this._ctx.quadraticCurveTo(x1, y1, x2, y2);\n }\n this._xi = x2;\n this._yi = y2;\n return this;\n };\n PathProxy.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {\n tmpAngles[0] = startAngle;\n tmpAngles[1] = endAngle;\n normalizeArcAngles(tmpAngles, anticlockwise);\n startAngle = tmpAngles[0];\n endAngle = tmpAngles[1];\n var delta = endAngle - startAngle;\n this.addData(CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1);\n this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n this._xi = mathCos(endAngle) * r + cx;\n this._yi = mathSin(endAngle) * r + cy;\n return this;\n };\n PathProxy.prototype.arcTo = function (x1, y1, x2, y2, radius) {\n if (this._ctx) {\n this._ctx.arcTo(x1, y1, x2, y2, radius);\n }\n return this;\n };\n PathProxy.prototype.rect = function (x, y, w, h) {\n this._ctx && this._ctx.rect(x, y, w, h);\n this.addData(CMD.R, x, y, w, h);\n return this;\n };\n PathProxy.prototype.closePath = function () {\n this._drawPendingPt();\n this.addData(CMD.Z);\n var ctx = this._ctx;\n var x0 = this._x0;\n var y0 = this._y0;\n if (ctx) {\n this._needsDash && this._dashedLineTo(x0, y0);\n ctx.closePath();\n }\n this._xi = x0;\n this._yi = y0;\n return this;\n };\n PathProxy.prototype.fill = function (ctx) {\n ctx && ctx.fill();\n this.toStatic();\n };\n PathProxy.prototype.stroke = function (ctx) {\n ctx && ctx.stroke();\n this.toStatic();\n };\n PathProxy.prototype.setLineDash = function (lineDash) {\n if (lineDash instanceof Array) {\n this._lineDash = lineDash;\n this._dashIdx = 0;\n var lineDashSum = 0;\n for (var i = 0; i < lineDash.length; i++) {\n lineDashSum += lineDash[i];\n }\n this._dashSum = lineDashSum;\n this._needsDash = true;\n }\n else {\n this._lineDash = null;\n this._needsDash = false;\n }\n return this;\n };\n PathProxy.prototype.setLineDashOffset = function (offset) {\n this._dashOffset = offset;\n return this;\n };\n PathProxy.prototype.len = function () {\n return this._len;\n };\n PathProxy.prototype.setData = function (data) {\n var len = data.length;\n if (!(this.data && this.data.length === len) && hasTypedArray) {\n this.data = new Float32Array(len);\n }\n for (var i = 0; i < len; i++) {\n this.data[i] = data[i];\n }\n this._len = len;\n };\n PathProxy.prototype.appendPath = function (path) {\n if (!(path instanceof Array)) {\n path = [path];\n }\n var len = path.length;\n var appendSize = 0;\n var offset = this._len;\n for (var i = 0; i < len; i++) {\n appendSize += path[i].len();\n }\n if (hasTypedArray && (this.data instanceof Float32Array)) {\n this.data = new Float32Array(offset + appendSize);\n }\n for (var i = 0; i < len; i++) {\n var appendPathData = path[i].data;\n for (var k = 0; k < appendPathData.length; k++) {\n this.data[offset++] = appendPathData[k];\n }\n }\n this._len = offset;\n };\n PathProxy.prototype.addData = function (cmd, a, b, c, d, e, f, g, h) {\n if (!this._saveData) {\n return;\n }\n var data = this.data;\n if (this._len + arguments.length > data.length) {\n this._expandData();\n data = this.data;\n }\n for (var i = 0; i < arguments.length; i++) {\n data[this._len++] = arguments[i];\n }\n };\n PathProxy.prototype._drawPendingPt = function () {\n if (this._pendingPtDist > 0) {\n this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY);\n this._pendingPtDist = 0;\n }\n };\n PathProxy.prototype._expandData = function () {\n if (!(this.data instanceof Array)) {\n var newData = [];\n for (var i = 0; i < this._len; i++) {\n newData[i] = this.data[i];\n }\n this.data = newData;\n }\n };\n PathProxy.prototype._dashedLineTo = function (x1, y1) {\n var dashSum = this._dashSum;\n var lineDash = this._lineDash;\n var ctx = this._ctx;\n var offset = this._dashOffset;\n var x0 = this._xi;\n var y0 = this._yi;\n var dx = x1 - x0;\n var dy = y1 - y0;\n var dist = mathSqrt(dx * dx + dy * dy);\n var x = x0;\n var y = y0;\n var nDash = lineDash.length;\n var dash;\n var idx;\n dx /= dist;\n dy /= dist;\n if (offset < 0) {\n offset = dashSum + offset;\n }\n offset %= dashSum;\n x -= offset * dx;\n y -= offset * dy;\n while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1)\n || (dx === 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) {\n idx = this._dashIdx;\n dash = lineDash[idx];\n x += dx * dash;\n y += dy * dash;\n this._dashIdx = (idx + 1) % nDash;\n if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) {\n continue;\n }\n ctx[idx % 2 ? 'moveTo' : 'lineTo'](dx >= 0 ? mathMin(x, x1) : mathMax(x, x1), dy >= 0 ? mathMin(y, y1) : mathMax(y, y1));\n }\n dx = x - x1;\n dy = y - y1;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n };\n PathProxy.prototype._dashedBezierTo = function (x1, y1, x2, y2, x3, y3) {\n var ctx = this._ctx;\n var dashSum = this._dashSum;\n var offset = this._dashOffset;\n var lineDash = this._lineDash;\n var x0 = this._xi;\n var y0 = this._yi;\n var bezierLen = 0;\n var idx = this._dashIdx;\n var nDash = lineDash.length;\n var t;\n var dx;\n var dy;\n var x;\n var y;\n var tmpLen = 0;\n if (offset < 0) {\n offset = dashSum + offset;\n }\n offset %= dashSum;\n for (t = 0; t < 1; t += 0.1) {\n dx = cubicAt(x0, x1, x2, x3, t + 0.1)\n - cubicAt(x0, x1, x2, x3, t);\n dy = cubicAt(y0, y1, y2, y3, t + 0.1)\n - cubicAt(y0, y1, y2, y3, t);\n bezierLen += mathSqrt(dx * dx + dy * dy);\n }\n for (; idx < nDash; idx++) {\n tmpLen += lineDash[idx];\n if (tmpLen > offset) {\n break;\n }\n }\n t = (tmpLen - offset) / bezierLen;\n while (t <= 1) {\n x = cubicAt(x0, x1, x2, x3, t);\n y = cubicAt(y0, y1, y2, y3, t);\n idx % 2 ? ctx.moveTo(x, y)\n : ctx.lineTo(x, y);\n t += lineDash[idx] / bezierLen;\n idx = (idx + 1) % nDash;\n }\n (idx % 2 !== 0) && ctx.lineTo(x3, y3);\n dx = x3 - x;\n dy = y3 - y;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n };\n PathProxy.prototype._dashedQuadraticTo = function (x1, y1, x2, y2) {\n var x3 = x2;\n var y3 = y2;\n x2 = (x2 + 2 * x1) / 3;\n y2 = (y2 + 2 * y1) / 3;\n x1 = (this._xi + 2 * x1) / 3;\n y1 = (this._yi + 2 * y1) / 3;\n this._dashedBezierTo(x1, y1, x2, y2, x3, y3);\n };\n PathProxy.prototype.toStatic = function () {\n if (!this._saveData) {\n return;\n }\n this._drawPendingPt();\n var data = this.data;\n if (data instanceof Array) {\n data.length = this._len;\n if (hasTypedArray && this._len > 11) {\n this.data = new Float32Array(data);\n }\n }\n };\n PathProxy.prototype.getBoundingRect = function () {\n min[0] = min[1] = min2[0] = min2[1] = Number.MAX_VALUE;\n max[0] = max[1] = max2[0] = max2[1] = -Number.MAX_VALUE;\n var data = this.data;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var i;\n for (i = 0; i < this._len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n min2[0] = x0;\n min2[1] = y0;\n max2[0] = x0;\n max2[1] = y0;\n break;\n case CMD.L:\n fromLine(xi, yi, data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n fromCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n fromQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var endAngle = data[i++] + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n fromArc(cx, cy, rx, ry, startAngle, endAngle, anticlockwise, min2, max2);\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n fromLine(x0, y0, x0 + width, y0 + height, min2, max2);\n break;\n case CMD.Z:\n xi = x0;\n yi = y0;\n break;\n }\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n return new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n };\n PathProxy.prototype._calculateLength = function () {\n var data = this.data;\n var len = this._len;\n var ux = this._ux;\n var uy = this._uy;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n if (!this._pathSegLen) {\n this._pathSegLen = [];\n }\n var pathSegLen = this._pathSegLen;\n var pathTotalLen = 0;\n var segCount = 0;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n var l = -1;\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n break;\n case CMD.L: {\n var x2 = data[i++];\n var y2 = data[i++];\n var dx = x2 - xi;\n var dy = y2 - yi;\n if (mathAbs(dx) > ux || mathAbs(dy) > uy || i === len - 1) {\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x2;\n yi = y2;\n }\n break;\n }\n case CMD.C: {\n var x1 = data[i++];\n var y1 = data[i++];\n var x2 = data[i++];\n var y2 = data[i++];\n var x3 = data[i++];\n var y3 = data[i++];\n l = cubicLength(xi, yi, x1, y1, x2, y2, x3, y3, 10);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n var x1 = data[i++];\n var y1 = data[i++];\n var x2 = data[i++];\n var y2 = data[i++];\n l = quadraticLength(xi, yi, x1, y1, x2, y2, 10);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var delta = data[i++];\n var endAngle = delta + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n l = mathMax(rx, ry) * mathMin(PI2, Math.abs(delta));\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R: {\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n l = width * 2 + height * 2;\n break;\n }\n case CMD.Z: {\n var dx = x0 - xi;\n var dy = y0 - yi;\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (l >= 0) {\n pathSegLen[segCount++] = l;\n pathTotalLen += l;\n }\n }\n this._pathLen = pathTotalLen;\n return pathTotalLen;\n };\n PathProxy.prototype.rebuildPath = function (ctx, percent) {\n var d = this.data;\n var ux = this._ux;\n var uy = this._uy;\n var len = this._len;\n var x0;\n var y0;\n var xi;\n var yi;\n var x;\n var y;\n var drawPart = percent < 1;\n var pathSegLen;\n var pathTotalLen;\n var accumLength = 0;\n var segCount = 0;\n var displayedLength;\n var pendingPtDist = 0;\n var pendingPtX;\n var pendingPtY;\n if (drawPart) {\n if (!this._pathSegLen) {\n this._calculateLength();\n }\n pathSegLen = this._pathSegLen;\n pathTotalLen = this._pathLen;\n displayedLength = percent * pathTotalLen;\n if (!displayedLength) {\n return;\n }\n }\n lo: for (var i = 0; i < len;) {\n var cmd = d[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = d[i];\n yi = d[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n if (pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n x0 = xi = d[i++];\n y0 = yi = d[i++];\n ctx.moveTo(xi, yi);\n break;\n case CMD.L: {\n x = d[i++];\n y = d[i++];\n var dx = mathAbs(x - xi);\n var dy = mathAbs(y - yi);\n if (dx > ux || dy > uy) {\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x * t, yi * (1 - t) + y * t);\n break lo;\n }\n accumLength += l;\n }\n ctx.lineTo(x, y);\n xi = x;\n yi = y;\n pendingPtDist = 0;\n }\n else {\n var d2 = dx * dx + dy * dy;\n if (d2 > pendingPtDist) {\n pendingPtX = x;\n pendingPtY = y;\n pendingPtDist = d2;\n }\n }\n break;\n }\n case CMD.C: {\n var x1 = d[i++];\n var y1 = d[i++];\n var x2 = d[i++];\n var y2 = d[i++];\n var x3 = d[i++];\n var y3 = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n cubicSubdivide(xi, x1, x2, x3, t, tmpOutX);\n cubicSubdivide(yi, y1, y2, y3, t, tmpOutY);\n ctx.bezierCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2], tmpOutX[3], tmpOutY[3]);\n break lo;\n }\n accumLength += l;\n }\n ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n var x1 = d[i++];\n var y1 = d[i++];\n var x2 = d[i++];\n var y2 = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n quadraticSubdivide(xi, x1, x2, t, tmpOutX);\n quadraticSubdivide(yi, y1, y2, t, tmpOutY);\n ctx.quadraticCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2]);\n break lo;\n }\n accumLength += l;\n }\n ctx.quadraticCurveTo(x1, y1, x2, y2);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n var cx = d[i++];\n var cy = d[i++];\n var rx = d[i++];\n var ry = d[i++];\n var startAngle = d[i++];\n var delta = d[i++];\n var psi = d[i++];\n var anticlockwise = !d[i++];\n var r = (rx > ry) ? rx : ry;\n var scaleX = (rx > ry) ? 1 : rx / ry;\n var scaleY = (rx > ry) ? ry / rx : 1;\n var isEllipse = mathAbs(rx - ry) > 1e-3;\n var endAngle = startAngle + delta;\n var breakBuild = false;\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n endAngle = startAngle + delta * (displayedLength - accumLength) / l;\n breakBuild = true;\n }\n accumLength += l;\n }\n if (isEllipse && ctx.ellipse) {\n ctx.ellipse(cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise);\n }\n else {\n ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n }\n if (breakBuild) {\n break lo;\n }\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = d[i];\n y0 = yi = d[i + 1];\n x = d[i++];\n y = d[i++];\n var width = d[i++];\n var height = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var d_1 = displayedLength - accumLength;\n ctx.moveTo(x, y);\n ctx.lineTo(x + mathMin(d_1, width), y);\n d_1 -= width;\n if (d_1 > 0) {\n ctx.lineTo(x + width, y + mathMin(d_1, height));\n }\n d_1 -= height;\n if (d_1 > 0) {\n ctx.lineTo(x + mathMax(width - d_1, 0), y + height);\n }\n d_1 -= width;\n if (d_1 > 0) {\n ctx.lineTo(x, y + mathMax(height - d_1, 0));\n }\n break lo;\n }\n accumLength += l;\n }\n ctx.rect(x, y, width, height);\n break;\n case CMD.Z:\n if (pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x0 * t, yi * (1 - t) + y0 * t);\n break lo;\n }\n accumLength += l;\n }\n ctx.closePath();\n xi = x0;\n yi = y0;\n }\n }\n };\n PathProxy.CMD = CMD;\n PathProxy.initDefaultProps = (function () {\n var proto = PathProxy.prototype;\n proto._saveData = true;\n proto._needsDash = false;\n proto._dashOffset = 0;\n proto._dashIdx = 0;\n proto._dashSum = 0;\n proto._ux = 0;\n proto._uy = 0;\n proto._pendingPtDist = 0;\n proto._version = 0;\n })();\n return PathProxy;\n}());\nexport default PathProxy;\n","export function containStroke(x0, y0, x1, y1, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n var _a = 0;\n var _b = x0;\n if ((y > y0 + _l && y > y1 + _l)\n || (y < y0 - _l && y < y1 - _l)\n || (x > x0 + _l && x > x1 + _l)\n || (x < x0 - _l && x < x1 - _l)) {\n return false;\n }\n if (x0 !== x1) {\n _a = (y0 - y1) / (x0 - x1);\n _b = (x0 * y1 - x1 * y0) / (x0 - x1);\n }\n else {\n return Math.abs(x - x0) <= _l / 2;\n }\n var tmp = _a * x - y + _b;\n var _s = tmp * tmp / (_a * _a + 1);\n return _s <= _l / 2 * _l / 2;\n}\n","import * as curve from '../core/curve';\nexport function containStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n if ((y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)) {\n return false;\n }\n var d = curve.cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null);\n return d <= _l / 2;\n}\n","import { quadraticProjectPoint } from '../core/curve';\nexport function containStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n if ((y > y0 + _l && y > y1 + _l && y > y2 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l)) {\n return false;\n }\n var d = quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null);\n return d <= _l / 2;\n}\n","var PI2 = Math.PI * 2;\nexport function normalizeRadian(angle) {\n angle %= PI2;\n if (angle < 0) {\n angle += PI2;\n }\n return angle;\n}\n","import { normalizeRadian } from './util';\nvar PI2 = Math.PI * 2;\nexport function containStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n x -= cx;\n y -= cy;\n var d = Math.sqrt(x * x + y * y);\n if ((d - _l > r) || (d + _l < r)) {\n return false;\n }\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n return true;\n }\n if (anticlockwise) {\n var tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n var angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n return (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle);\n}\n","export default function windingLine(x0, y0, x1, y1, x, y) {\n if ((y > y0 && y > y1) || (y < y0 && y < y1)) {\n return 0;\n }\n if (y1 === y0) {\n return 0;\n }\n var t = (y - y0) / (y1 - y0);\n var dir = y1 < y0 ? 1 : -1;\n if (t === 1 || t === 0) {\n dir = y1 < y0 ? 0.5 : -0.5;\n }\n var x_ = t * (x1 - x0) + x0;\n return x_ === x ? Infinity : x_ > x ? dir : 0;\n}\n","import PathProxy from '../core/PathProxy';\nimport * as line from './line';\nimport * as cubic from './cubic';\nimport * as quadratic from './quadratic';\nimport * as arc from './arc';\nimport * as curve from '../core/curve';\nimport windingLine from './windingLine';\nvar CMD = PathProxy.CMD;\nvar PI2 = Math.PI * 2;\nvar EPSILON = 1e-4;\nfunction isAroundEqual(a, b) {\n return Math.abs(a - b) < EPSILON;\n}\nvar roots = [-1, -1, -1];\nvar extrema = [-1, -1];\nfunction swapExtrema() {\n var tmp = extrema[0];\n extrema[0] = extrema[1];\n extrema[1] = tmp;\n}\nfunction windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {\n if ((y > y0 && y > y1 && y > y2 && y > y3)\n || (y < y0 && y < y1 && y < y2 && y < y3)) {\n return 0;\n }\n var nRoots = curve.cubicRootAt(y0, y1, y2, y3, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n var w = 0;\n var nExtrema = -1;\n var y0_ = void 0;\n var y1_ = void 0;\n for (var i = 0; i < nRoots; i++) {\n var t = roots[i];\n var unit = (t === 0 || t === 1) ? 0.5 : 1;\n var x_ = curve.cubicAt(x0, x1, x2, x3, t);\n if (x_ < x) {\n continue;\n }\n if (nExtrema < 0) {\n nExtrema = curve.cubicExtrema(y0, y1, y2, y3, extrema);\n if (extrema[1] < extrema[0] && nExtrema > 1) {\n swapExtrema();\n }\n y0_ = curve.cubicAt(y0, y1, y2, y3, extrema[0]);\n if (nExtrema > 1) {\n y1_ = curve.cubicAt(y0, y1, y2, y3, extrema[1]);\n }\n }\n if (nExtrema === 2) {\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else if (t < extrema[1]) {\n w += y1_ < y0_ ? unit : -unit;\n }\n else {\n w += y3 < y1_ ? unit : -unit;\n }\n }\n else {\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else {\n w += y3 < y0_ ? unit : -unit;\n }\n }\n }\n return w;\n }\n}\nfunction windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {\n if ((y > y0 && y > y1 && y > y2)\n || (y < y0 && y < y1 && y < y2)) {\n return 0;\n }\n var nRoots = curve.quadraticRootAt(y0, y1, y2, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n var t = curve.quadraticExtremum(y0, y1, y2);\n if (t >= 0 && t <= 1) {\n var w = 0;\n var y_ = curve.quadraticAt(y0, y1, y2, t);\n for (var i = 0; i < nRoots; i++) {\n var unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1;\n var x_ = curve.quadraticAt(x0, x1, x2, roots[i]);\n if (x_ < x) {\n continue;\n }\n if (roots[i] < t) {\n w += y_ < y0 ? unit : -unit;\n }\n else {\n w += y2 < y_ ? unit : -unit;\n }\n }\n return w;\n }\n else {\n var unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1;\n var x_ = curve.quadraticAt(x0, x1, x2, roots[0]);\n if (x_ < x) {\n return 0;\n }\n return y2 < y0 ? unit : -unit;\n }\n }\n}\nfunction windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {\n y -= cy;\n if (y > r || y < -r) {\n return 0;\n }\n var tmp = Math.sqrt(r * r - y * y);\n roots[0] = -tmp;\n roots[1] = tmp;\n var dTheta = Math.abs(startAngle - endAngle);\n if (dTheta < 1e-4) {\n return 0;\n }\n if (dTheta >= PI2 - 1e-4) {\n startAngle = 0;\n endAngle = PI2;\n var dir = anticlockwise ? 1 : -1;\n if (x >= roots[0] + cx && x <= roots[1] + cx) {\n return dir;\n }\n else {\n return 0;\n }\n }\n if (startAngle > endAngle) {\n var tmp_1 = startAngle;\n startAngle = endAngle;\n endAngle = tmp_1;\n }\n if (startAngle < 0) {\n startAngle += PI2;\n endAngle += PI2;\n }\n var w = 0;\n for (var i = 0; i < 2; i++) {\n var x_ = roots[i];\n if (x_ + cx > x) {\n var angle = Math.atan2(y, x_);\n var dir = anticlockwise ? 1 : -1;\n if (angle < 0) {\n angle = PI2 + angle;\n }\n if ((angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)) {\n if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {\n dir = -dir;\n }\n w += dir;\n }\n }\n }\n return w;\n}\nfunction containPath(path, lineWidth, isStroke, x, y) {\n var data = path.data;\n var len = path.len();\n var w = 0;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var x1;\n var y1;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (cmd === CMD.M && i > 1) {\n if (!isStroke) {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n }\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n if (isStroke) {\n if (line.containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n if (isStroke) {\n if (cubic.containStroke(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n if (isStroke) {\n if (quadratic.containStroke(xi, yi, data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var theta = data[i++];\n var dTheta = data[i++];\n i += 1;\n var anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n if (!isFirst) {\n w += windingLine(xi, yi, x1, y1, x, y);\n }\n else {\n x0 = x1;\n y0 = y1;\n }\n var _x = (x - cx) * ry / rx + cx;\n if (isStroke) {\n if (arc.containStroke(cx, cy, ry, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) {\n return true;\n }\n }\n else {\n w += windingArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y);\n }\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n x1 = x0 + width;\n y1 = y0 + height;\n if (isStroke) {\n if (line.containStroke(x0, y0, x1, y0, lineWidth, x, y)\n || line.containStroke(x1, y0, x1, y1, lineWidth, x, y)\n || line.containStroke(x1, y1, x0, y1, lineWidth, x, y)\n || line.containStroke(x0, y1, x0, y0, lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(x1, y0, x1, y1, x, y);\n w += windingLine(x0, y1, x0, y0, x, y);\n }\n break;\n case CMD.Z:\n if (isStroke) {\n if (line.containStroke(xi, yi, x0, y0, lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (!isStroke && !isAroundEqual(yi, y0)) {\n w += windingLine(xi, yi, x0, y0, x, y) || 0;\n }\n return w !== 0;\n}\nexport function contain(pathProxy, x, y) {\n return containPath(pathProxy, 0, false, x, y);\n}\nexport function containStroke(pathProxy, lineWidth, x, y) {\n return containPath(pathProxy, lineWidth, true, x, y);\n}\n","import { __extends } from \"tslib\";\nimport Displayable, { DEFAULT_COMMON_STYLE, DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nimport PathProxy from '../core/PathProxy';\nimport * as pathContain from '../contain/path';\nimport { defaults, keys, extend, clone, isString, createObject } from '../core/util';\nimport { lum } from '../tool/color';\nimport { DARK_LABEL_COLOR, LIGHT_LABEL_COLOR, DARK_MODE_THRESHOLD, LIGHTER_LABEL_COLOR } from '../config';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT, STYLE_CHANGED_BIT } from './constants';\nexport var DEFAULT_PATH_STYLE = defaults({\n fill: '#000',\n stroke: null,\n strokePercent: 1,\n fillOpacity: 1,\n strokeOpacity: 1,\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n miterLimit: 10,\n strokeNoScale: false,\n strokeFirst: false\n}, DEFAULT_COMMON_STYLE);\nexport var DEFAULT_PATH_ANIMATION_PROPS = {\n style: defaults({\n fill: true,\n stroke: true,\n strokePercent: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineDashOffset: true,\n lineWidth: true,\n miterLimit: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nvar pathCopyParams = [\n 'x', 'y', 'rotation', 'scaleX', 'scaleY', 'originX', 'originY', 'invisible',\n 'culling', 'z', 'z2', 'zlevel', 'parent'\n];\nvar Path = (function (_super) {\n __extends(Path, _super);\n function Path(opts) {\n return _super.call(this, opts) || this;\n }\n Path.prototype.update = function () {\n var _this = this;\n _super.prototype.update.call(this);\n var style = this.style;\n if (style.decal) {\n var decalEl = this._decalEl = this._decalEl || new Path();\n if (decalEl.buildPath === Path.prototype.buildPath) {\n decalEl.buildPath = function (ctx) {\n _this.buildPath(ctx, _this.shape);\n };\n }\n decalEl.silent = true;\n var decalElStyle = decalEl.style;\n for (var key in style) {\n if (decalElStyle[key] !== style[key]) {\n decalElStyle[key] = style[key];\n }\n }\n decalElStyle.fill = style.fill ? style.decal : null;\n decalElStyle.decal = null;\n decalElStyle.shadowColor = null;\n style.strokeFirst && (decalElStyle.stroke = null);\n for (var i = 0; i < pathCopyParams.length; ++i) {\n decalEl[pathCopyParams[i]] = this[pathCopyParams[i]];\n }\n decalEl.__dirty |= REDARAW_BIT;\n }\n else if (this._decalEl) {\n this._decalEl = null;\n }\n };\n Path.prototype.getDecalElement = function () {\n return this._decalEl;\n };\n Path.prototype._init = function (props) {\n var keysArr = keys(props);\n this.shape = this.getDefaultShape();\n var defaultStyle = this.getDefaultStyle();\n if (defaultStyle) {\n this.useStyle(defaultStyle);\n }\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n var value = props[key];\n if (key === 'style') {\n if (!this.style) {\n this.useStyle(value);\n }\n else {\n extend(this.style, value);\n }\n }\n else if (key === 'shape') {\n extend(this.shape, value);\n }\n else {\n _super.prototype.attrKV.call(this, key, value);\n }\n }\n if (!this.style) {\n this.useStyle({});\n }\n };\n Path.prototype.getDefaultStyle = function () {\n return null;\n };\n Path.prototype.getDefaultShape = function () {\n return {};\n };\n Path.prototype.canBeInsideText = function () {\n return this.hasFill();\n };\n Path.prototype.getInsideTextFill = function () {\n var pathFill = this.style.fill;\n if (pathFill !== 'none') {\n if (isString(pathFill)) {\n var fillLum = lum(pathFill, 0);\n if (fillLum > 0.5) {\n return DARK_LABEL_COLOR;\n }\n else if (fillLum > 0.2) {\n return LIGHTER_LABEL_COLOR;\n }\n return LIGHT_LABEL_COLOR;\n }\n else if (pathFill) {\n return LIGHT_LABEL_COLOR;\n }\n }\n return DARK_LABEL_COLOR;\n };\n Path.prototype.getInsideTextStroke = function (textFill) {\n var pathFill = this.style.fill;\n if (isString(pathFill)) {\n var zr = this.__zr;\n var isDarkMode = !!(zr && zr.isDarkMode());\n var isDarkLabel = lum(textFill, 0) < DARK_MODE_THRESHOLD;\n if (isDarkMode === isDarkLabel) {\n return pathFill;\n }\n }\n };\n Path.prototype.buildPath = function (ctx, shapeCfg, inBundle) { };\n Path.prototype.pathUpdated = function () {\n this.__dirty &= ~SHAPE_CHANGED_BIT;\n };\n Path.prototype.createPathProxy = function () {\n this.path = new PathProxy(false);\n };\n Path.prototype.hasStroke = function () {\n var style = this.style;\n var stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n };\n Path.prototype.hasFill = function () {\n var style = this.style;\n var fill = style.fill;\n return fill != null && fill !== 'none';\n };\n Path.prototype.getBoundingRect = function () {\n var rect = this._rect;\n var style = this.style;\n var needsUpdateRect = !rect;\n if (needsUpdateRect) {\n var firstInvoke = false;\n if (!this.path) {\n firstInvoke = true;\n this.createPathProxy();\n }\n var path = this.path;\n if (firstInvoke || (this.__dirty & SHAPE_CHANGED_BIT)) {\n path.beginPath();\n this.buildPath(path, this.shape, false);\n this.pathUpdated();\n }\n rect = path.getBoundingRect();\n }\n this._rect = rect;\n if (this.hasStroke() && this.path && this.path.len() > 0) {\n var rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone());\n if (this.__dirty || needsUpdateRect) {\n rectWithStroke.copy(rect);\n var lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n var w = style.lineWidth;\n if (!this.hasFill()) {\n var strokeContainThreshold = this.strokeContainThreshold;\n w = Math.max(w, strokeContainThreshold == null ? 4 : strokeContainThreshold);\n }\n if (lineScale > 1e-10) {\n rectWithStroke.width += w / lineScale;\n rectWithStroke.height += w / lineScale;\n rectWithStroke.x -= w / lineScale / 2;\n rectWithStroke.y -= w / lineScale / 2;\n }\n }\n return rectWithStroke;\n }\n return rect;\n };\n Path.prototype.contain = function (x, y) {\n var localPos = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n var style = this.style;\n x = localPos[0];\n y = localPos[1];\n if (rect.contain(x, y)) {\n var pathProxy = this.path;\n if (this.hasStroke()) {\n var lineWidth = style.lineWidth;\n var lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n if (lineScale > 1e-10) {\n if (!this.hasFill()) {\n lineWidth = Math.max(lineWidth, this.strokeContainThreshold);\n }\n if (pathContain.containStroke(pathProxy, lineWidth / lineScale, x, y)) {\n return true;\n }\n }\n }\n if (this.hasFill()) {\n return pathContain.contain(pathProxy, x, y);\n }\n }\n return false;\n };\n Path.prototype.dirtyShape = function () {\n this.__dirty |= SHAPE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n if (this._decalEl) {\n this._decalEl.dirtyShape();\n }\n this.markRedraw();\n };\n Path.prototype.dirty = function () {\n this.dirtyStyle();\n this.dirtyShape();\n };\n Path.prototype.animateShape = function (loop) {\n return this.animate('shape', loop);\n };\n Path.prototype.updateDuringAnimation = function (targetKey) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else if (targetKey === 'shape') {\n this.dirtyShape();\n }\n else {\n this.markRedraw();\n }\n };\n Path.prototype.attrKV = function (key, value) {\n if (key === 'shape') {\n this.setShape(value);\n }\n else {\n _super.prototype.attrKV.call(this, key, value);\n }\n };\n Path.prototype.setShape = function (keyOrObj, value) {\n var shape = this.shape;\n if (!shape) {\n shape = this.shape = {};\n }\n if (typeof keyOrObj === 'string') {\n shape[keyOrObj] = value;\n }\n else {\n extend(shape, keyOrObj);\n }\n this.dirtyShape();\n return this;\n };\n Path.prototype.shapeChanged = function () {\n return !!(this.__dirty & SHAPE_CHANGED_BIT);\n };\n Path.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_PATH_STYLE, obj);\n };\n Path.prototype._innerSaveToNormal = function (toState) {\n _super.prototype._innerSaveToNormal.call(this, toState);\n var normalState = this._normalState;\n if (toState.shape && !normalState.shape) {\n normalState.shape = extend({}, this.shape);\n }\n };\n Path.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n var needsRestoreToNormal = !(state && keepCurrentStates);\n var targetShape;\n if (state && state.shape) {\n if (transition) {\n if (keepCurrentStates) {\n targetShape = state.shape;\n }\n else {\n targetShape = extend({}, normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else {\n targetShape = extend({}, keepCurrentStates ? this.shape : normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else if (needsRestoreToNormal) {\n targetShape = normalState.shape;\n }\n if (targetShape) {\n if (transition) {\n this.shape = extend({}, this.shape);\n var targetShapePrimaryProps = {};\n var shapeKeys = keys(targetShape);\n for (var i = 0; i < shapeKeys.length; i++) {\n var key = shapeKeys[i];\n if (typeof targetShape[key] === 'object') {\n this.shape[key] = targetShape[key];\n }\n else {\n targetShapePrimaryProps[key] = targetShape[key];\n }\n }\n this._transitionState(stateName, {\n shape: targetShapePrimaryProps\n }, animationCfg);\n }\n else {\n this.shape = targetShape;\n this.dirtyShape();\n }\n }\n };\n Path.prototype._mergeStates = function (states) {\n var mergedState = _super.prototype._mergeStates.call(this, states);\n var mergedShape;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n if (state.shape) {\n mergedShape = mergedShape || {};\n this._mergeStyle(mergedShape, state.shape);\n }\n }\n if (mergedShape) {\n mergedState.shape = mergedShape;\n }\n return mergedState;\n };\n Path.prototype.getAnimationStyleProps = function () {\n return DEFAULT_PATH_ANIMATION_PROPS;\n };\n Path.prototype.isZeroArea = function () {\n return false;\n };\n Path.extend = function (defaultProps) {\n var Sub = (function (_super) {\n __extends(Sub, _super);\n function Sub(opts) {\n var _this = _super.call(this, opts) || this;\n defaultProps.init && defaultProps.init.call(_this, opts);\n return _this;\n }\n Sub.prototype.getDefaultStyle = function () {\n return clone(defaultProps.style);\n };\n Sub.prototype.getDefaultShape = function () {\n return clone(defaultProps.shape);\n };\n return Sub;\n }(Path));\n for (var key in defaultProps) {\n if (typeof defaultProps[key] === 'function') {\n Sub.prototype[key] = defaultProps[key];\n }\n }\n return Sub;\n };\n Path.initDefaultProps = (function () {\n var pathProto = Path.prototype;\n pathProto.type = 'path';\n pathProto.strokeContainThreshold = 5;\n pathProto.segmentIgnoreThreshold = 0;\n pathProto.subPixelOptimize = false;\n pathProto.autoBatch = false;\n pathProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT | SHAPE_CHANGED_BIT;\n })();\n return Path;\n}(Displayable));\nexport default Path;\n","import { __extends } from \"tslib\";\nimport Displayable from './Displayable';\nimport { getBoundingRect, DEFAULT_FONT } from '../contain/text';\nimport { DEFAULT_PATH_STYLE } from './Path';\nimport { createObject, defaults } from '../core/util';\nexport var DEFAULT_TSPAN_STYLE = defaults({\n strokeFirst: true,\n font: DEFAULT_FONT,\n x: 0,\n y: 0,\n textAlign: 'left',\n textBaseline: 'top',\n miterLimit: 2\n}, DEFAULT_PATH_STYLE);\nvar TSpan = (function (_super) {\n __extends(TSpan, _super);\n function TSpan() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n TSpan.prototype.hasStroke = function () {\n var style = this.style;\n var stroke = style.stroke;\n return stroke != null && stroke !== 'none' && style.lineWidth > 0;\n };\n TSpan.prototype.hasFill = function () {\n var style = this.style;\n var fill = style.fill;\n return fill != null && fill !== 'none';\n };\n TSpan.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_TSPAN_STYLE, obj);\n };\n TSpan.prototype.setBoundingRect = function (rect) {\n this._rect = rect;\n };\n TSpan.prototype.getBoundingRect = function () {\n var style = this.style;\n if (!this._rect) {\n var text = style.text;\n text != null ? (text += '') : (text = '');\n var rect = getBoundingRect(text, style.font, style.textAlign, style.textBaseline);\n rect.x += style.x || 0;\n rect.y += style.y || 0;\n if (this.hasStroke()) {\n var w = style.lineWidth;\n rect.x -= w / 2;\n rect.y -= w / 2;\n rect.width += w;\n rect.height += w;\n }\n this._rect = rect;\n }\n return this._rect;\n };\n TSpan.initDefaultProps = (function () {\n var tspanProto = TSpan.prototype;\n tspanProto.dirtyRectTolerance = 10;\n })();\n return TSpan;\n}(Displayable));\nTSpan.prototype.type = 'tspan';\nexport default TSpan;\n","import { __extends } from \"tslib\";\nimport Displayable, { DEFAULT_COMMON_STYLE, DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { defaults, createObject } from '../core/util';\nexport var DEFAULT_IMAGE_STYLE = defaults({\n x: 0,\n y: 0\n}, DEFAULT_COMMON_STYLE);\nexport var DEFAULT_IMAGE_ANIMATION_PROPS = {\n style: defaults({\n x: true,\n y: true,\n width: true,\n height: true,\n sx: true,\n sy: true,\n sWidth: true,\n sHeight: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nfunction isImageLike(source) {\n return !!(source\n && typeof source !== 'string'\n && source.width && source.height);\n}\nvar ZRImage = (function (_super) {\n __extends(ZRImage, _super);\n function ZRImage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ZRImage.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_IMAGE_STYLE, obj);\n };\n ZRImage.prototype._getSize = function (dim) {\n var style = this.style;\n var size = style[dim];\n if (size != null) {\n return size;\n }\n var imageSource = isImageLike(style.image)\n ? style.image : this.__image;\n if (!imageSource) {\n return 0;\n }\n var otherDim = dim === 'width' ? 'height' : 'width';\n var otherDimSize = style[otherDim];\n if (otherDimSize == null) {\n return imageSource[dim];\n }\n else {\n return imageSource[dim] / imageSource[otherDim] * otherDimSize;\n }\n };\n ZRImage.prototype.getWidth = function () {\n return this._getSize('width');\n };\n ZRImage.prototype.getHeight = function () {\n return this._getSize('height');\n };\n ZRImage.prototype.getAnimationStyleProps = function () {\n return DEFAULT_IMAGE_ANIMATION_PROPS;\n };\n ZRImage.prototype.getBoundingRect = function () {\n var style = this.style;\n if (!this._rect) {\n this._rect = new BoundingRect(style.x || 0, style.y || 0, this.getWidth(), this.getHeight());\n }\n return this._rect;\n };\n return ZRImage;\n}(Displayable));\nZRImage.prototype.type = 'image';\nexport default ZRImage;\n","export function buildPath(ctx, shape) {\n var x = shape.x;\n var y = shape.y;\n var width = shape.width;\n var height = shape.height;\n var r = shape.r;\n var r1;\n var r2;\n var r3;\n var r4;\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n if (typeof r === 'number') {\n r1 = r2 = r3 = r4 = r;\n }\n else if (r instanceof Array) {\n if (r.length === 1) {\n r1 = r2 = r3 = r4 = r[0];\n }\n else if (r.length === 2) {\n r1 = r3 = r[0];\n r2 = r4 = r[1];\n }\n else if (r.length === 3) {\n r1 = r[0];\n r2 = r4 = r[1];\n r3 = r[2];\n }\n else {\n r1 = r[0];\n r2 = r[1];\n r3 = r[2];\n r4 = r[3];\n }\n }\n else {\n r1 = r2 = r3 = r4 = 0;\n }\n var total;\n if (r1 + r2 > width) {\n total = r1 + r2;\n r1 *= width / total;\n r2 *= width / total;\n }\n if (r3 + r4 > width) {\n total = r3 + r4;\n r3 *= width / total;\n r4 *= width / total;\n }\n if (r2 + r3 > height) {\n total = r2 + r3;\n r2 *= height / total;\n r3 *= height / total;\n }\n if (r1 + r4 > height) {\n total = r1 + r4;\n r1 *= height / total;\n r4 *= height / total;\n }\n ctx.moveTo(x + r1, y);\n ctx.lineTo(x + width - r2, y);\n r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0);\n ctx.lineTo(x + width, y + height - r3);\n r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2);\n ctx.lineTo(x + r4, y + height);\n r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);\n ctx.lineTo(x, y + r1);\n r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);\n}\n","var round = Math.round;\nexport function subPixelOptimizeLine(outputShape, inputShape, style) {\n if (!inputShape) {\n return;\n }\n var x1 = inputShape.x1;\n var x2 = inputShape.x2;\n var y1 = inputShape.y1;\n var y2 = inputShape.y2;\n outputShape.x1 = x1;\n outputShape.x2 = x2;\n outputShape.y1 = y1;\n outputShape.y2 = y2;\n var lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape;\n }\n if (round(x1 * 2) === round(x2 * 2)) {\n outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);\n }\n if (round(y1 * 2) === round(y2 * 2)) {\n outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);\n }\n return outputShape;\n}\nexport function subPixelOptimizeRect(outputShape, inputShape, style) {\n if (!inputShape) {\n return;\n }\n var originX = inputShape.x;\n var originY = inputShape.y;\n var originWidth = inputShape.width;\n var originHeight = inputShape.height;\n outputShape.x = originX;\n outputShape.y = originY;\n outputShape.width = originWidth;\n outputShape.height = originHeight;\n var lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape;\n }\n outputShape.x = subPixelOptimize(originX, lineWidth, true);\n outputShape.y = subPixelOptimize(originY, lineWidth, true);\n outputShape.width = Math.max(subPixelOptimize(originX + originWidth, lineWidth, false) - outputShape.x, originWidth === 0 ? 0 : 1);\n outputShape.height = Math.max(subPixelOptimize(originY + originHeight, lineWidth, false) - outputShape.y, originHeight === 0 ? 0 : 1);\n return outputShape;\n}\nexport function subPixelOptimize(position, lineWidth, positiveOrNegative) {\n if (!lineWidth) {\n return position;\n }\n var doubledPosition = round(position * 2);\n return (doubledPosition + round(lineWidth)) % 2 === 0\n ? doubledPosition / 2\n : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as roundRectHelper from '../helper/roundRect';\nimport { subPixelOptimizeRect } from '../helper/subPixelOptimize';\nvar RectShape = (function () {\n function RectShape() {\n this.x = 0;\n this.y = 0;\n this.width = 0;\n this.height = 0;\n }\n return RectShape;\n}());\nexport { RectShape };\nvar subPixelOptimizeOutputShape = {};\nvar Rect = (function (_super) {\n __extends(Rect, _super);\n function Rect(opts) {\n return _super.call(this, opts) || this;\n }\n Rect.prototype.getDefaultShape = function () {\n return new RectShape();\n };\n Rect.prototype.buildPath = function (ctx, shape) {\n var x;\n var y;\n var width;\n var height;\n if (this.subPixelOptimize) {\n var optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);\n x = optimizedShape.x;\n y = optimizedShape.y;\n width = optimizedShape.width;\n height = optimizedShape.height;\n optimizedShape.r = shape.r;\n shape = optimizedShape;\n }\n else {\n x = shape.x;\n y = shape.y;\n width = shape.width;\n height = shape.height;\n }\n if (!shape.r) {\n ctx.rect(x, y, width, height);\n }\n else {\n roundRectHelper.buildPath(ctx, shape);\n }\n };\n Rect.prototype.isZeroArea = function () {\n return !this.shape.width || !this.shape.height;\n };\n return Rect;\n}(Path));\nRect.prototype.type = 'rect';\nexport default Rect;\n","import { __extends } from \"tslib\";\nimport { parseRichText, parsePlainText } from './helper/parseText';\nimport TSpan from './TSpan';\nimport { retrieve2, each, normalizeCssArray, trim, retrieve3, extend, keys, defaults } from '../core/util';\nimport { DEFAULT_FONT, adjustTextX, adjustTextY } from '../contain/text';\nimport ZRImage from './Image';\nimport Rect from './shape/Rect';\nimport BoundingRect from '../core/BoundingRect';\nimport { copy } from '../core/matrix';\nimport Displayable, { DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nvar DEFAULT_RICH_TEXT_COLOR = {\n fill: '#000'\n};\nvar DEFAULT_STROKE_LINE_WIDTH = 2;\nexport var DEFAULT_TEXT_ANIMATION_PROPS = {\n style: defaults({\n fill: true,\n stroke: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineWidth: true,\n fontSize: true,\n lineHeight: true,\n width: true,\n height: true,\n textShadowColor: true,\n textShadowBlur: true,\n textShadowOffsetX: true,\n textShadowOffsetY: true,\n backgroundColor: true,\n padding: true,\n borderColor: true,\n borderWidth: true,\n borderRadius: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nvar ZRText = (function (_super) {\n __extends(ZRText, _super);\n function ZRText(opts) {\n var _this = _super.call(this) || this;\n _this.type = 'text';\n _this._children = [];\n _this._defaultStyle = DEFAULT_RICH_TEXT_COLOR;\n _this.attr(opts);\n return _this;\n }\n ZRText.prototype.childrenRef = function () {\n return this._children;\n };\n ZRText.prototype.update = function () {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.zlevel = this.zlevel;\n child.z = this.z;\n child.z2 = this.z2;\n child.culling = this.culling;\n child.cursor = this.cursor;\n child.invisible = this.invisible;\n }\n var attachedTransform = this.attachedTransform;\n if (attachedTransform) {\n attachedTransform.updateTransform();\n var m = attachedTransform.transform;\n if (m) {\n this.transform = this.transform || [];\n copy(this.transform, m);\n }\n else {\n this.transform = null;\n }\n }\n else {\n _super.prototype.update.call(this);\n }\n };\n ZRText.prototype.getComputedTransform = function () {\n if (this.__hostTarget) {\n this.__hostTarget.getComputedTransform();\n this.__hostTarget.updateInnerText(true);\n }\n return this.attachedTransform ? this.attachedTransform.getComputedTransform()\n : _super.prototype.getComputedTransform.call(this);\n };\n ZRText.prototype._updateSubTexts = function () {\n this._childCursor = 0;\n normalizeTextStyle(this.style);\n this.style.rich\n ? this._updateRichTexts()\n : this._updatePlainTexts();\n this._children.length = this._childCursor;\n this.styleUpdated();\n };\n ZRText.prototype.addSelfToZr = function (zr) {\n _super.prototype.addSelfToZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n this._children[i].__zr = zr;\n }\n };\n ZRText.prototype.removeSelfFromZr = function (zr) {\n _super.prototype.removeSelfFromZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n this._children[i].__zr = null;\n }\n };\n ZRText.prototype.getBoundingRect = function () {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n if (!this._rect) {\n var tmpRect = new BoundingRect(0, 0, 0, 0);\n var children = this._children;\n var tmpMat = [];\n var rect = null;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n var childRect = child.getBoundingRect();\n var transform = child.getLocalTransform(tmpMat);\n if (transform) {\n tmpRect.copy(childRect);\n tmpRect.applyTransform(transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n this._rect = rect || tmpRect;\n }\n return this._rect;\n };\n ZRText.prototype.setDefaultTextStyle = function (defaultTextStyle) {\n this._defaultStyle = defaultTextStyle || DEFAULT_RICH_TEXT_COLOR;\n };\n ZRText.prototype.setTextContent = function (textContent) {\n throw new Error('Can\\'t attach text on another text');\n };\n ZRText.prototype._mergeStyle = function (targetStyle, sourceStyle) {\n if (!sourceStyle) {\n return targetStyle;\n }\n var sourceRich = sourceStyle.rich;\n var targetRich = targetStyle.rich || (sourceRich && {});\n extend(targetStyle, sourceStyle);\n if (sourceRich && targetRich) {\n this._mergeRich(targetRich, sourceRich);\n targetStyle.rich = targetRich;\n }\n else if (targetRich) {\n targetStyle.rich = targetRich;\n }\n return targetStyle;\n };\n ZRText.prototype._mergeRich = function (targetRich, sourceRich) {\n var richNames = keys(sourceRich);\n for (var i = 0; i < richNames.length; i++) {\n var richName = richNames[i];\n targetRich[richName] = targetRich[richName] || {};\n extend(targetRich[richName], sourceRich[richName]);\n }\n };\n ZRText.prototype.getAnimationStyleProps = function () {\n return DEFAULT_TEXT_ANIMATION_PROPS;\n };\n ZRText.prototype._getOrCreateChild = function (Ctor) {\n var child = this._children[this._childCursor];\n if (!child || !(child instanceof Ctor)) {\n child = new Ctor();\n }\n this._children[this._childCursor++] = child;\n child.__zr = this.__zr;\n child.parent = this;\n return child;\n };\n ZRText.prototype._updatePlainTexts = function () {\n var style = this.style;\n var textFont = style.font || DEFAULT_FONT;\n var textPadding = style.padding;\n var text = getStyleText(style);\n var contentBlock = parsePlainText(text, style);\n var needDrawBg = needDrawBackground(style);\n var bgColorDrawn = !!(style.backgroundColor);\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var defaultStyle = this._defaultStyle;\n var baseX = style.x || 0;\n var baseY = style.y || 0;\n var textAlign = style.align || defaultStyle.align || 'left';\n var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign || 'top';\n var textX = baseX;\n var textY = adjustTextY(baseY, contentBlock.contentHeight, verticalAlign);\n if (needDrawBg || textPadding) {\n var outerWidth_1 = contentBlock.width;\n textPadding && (outerWidth_1 += textPadding[1] + textPadding[3]);\n var boxX = adjustTextX(baseX, outerWidth_1, textAlign);\n var boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n needDrawBg && this._renderBackground(style, style, boxX, boxY, outerWidth_1, outerHeight);\n }\n textY += lineHeight / 2;\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n if (verticalAlign === 'top') {\n textY += textPadding[0];\n }\n else if (verticalAlign === 'bottom') {\n textY -= textPadding[2];\n }\n }\n var defaultLineWidth = 0;\n var useDefaultFill = false;\n var textFill = getFill('fill' in style\n ? style.fill\n : (useDefaultFill = true, defaultStyle.fill));\n var textStroke = getStroke('stroke' in style\n ? style.stroke\n : (!bgColorDrawn\n && (!defaultStyle.autoStroke || useDefaultFill))\n ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null);\n var hasShadow = style.textShadowBlur > 0;\n var fixedBoundingRect = style.width != null\n && (style.overflow === 'truncate' || style.overflow === 'break' || style.overflow === 'breakAll');\n var calculatedLineHeight = contentBlock.calculatedLineHeight;\n for (var i = 0; i < textLines.length; i++) {\n var el = this._getOrCreateChild(TSpan);\n var subElStyle = el.createStyle();\n el.useStyle(subElStyle);\n subElStyle.text = textLines[i];\n subElStyle.x = textX;\n subElStyle.y = textY;\n if (textAlign) {\n subElStyle.textAlign = textAlign;\n }\n subElStyle.textBaseline = 'middle';\n subElStyle.opacity = style.opacity;\n subElStyle.strokeFirst = true;\n if (hasShadow) {\n subElStyle.shadowBlur = style.textShadowBlur || 0;\n subElStyle.shadowColor = style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = style.textShadowOffsetY || 0;\n }\n if (textStroke) {\n subElStyle.stroke = textStroke;\n subElStyle.lineWidth = style.lineWidth || defaultLineWidth;\n subElStyle.lineDash = style.lineDash;\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n subElStyle.font = textFont;\n textY += lineHeight;\n if (fixedBoundingRect) {\n el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, style.width, subElStyle.textAlign), adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), style.width, calculatedLineHeight));\n }\n }\n };\n ZRText.prototype._updateRichTexts = function () {\n var style = this.style;\n var text = getStyleText(style);\n var contentBlock = parseRichText(text, style);\n var contentWidth = contentBlock.width;\n var outerWidth = contentBlock.outerWidth;\n var outerHeight = contentBlock.outerHeight;\n var textPadding = style.padding;\n var baseX = style.x || 0;\n var baseY = style.y || 0;\n var defaultStyle = this._defaultStyle;\n var textAlign = style.align || defaultStyle.align;\n var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign;\n var boxX = adjustTextX(baseX, outerWidth, textAlign);\n var boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n var xLeft = boxX;\n var lineTop = boxY;\n if (textPadding) {\n xLeft += textPadding[3];\n lineTop += textPadding[0];\n }\n var xRight = xLeft + contentWidth;\n if (needDrawBackground(style)) {\n this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n var bgColorDrawn = !!(style.backgroundColor);\n for (var i = 0; i < contentBlock.lines.length; i++) {\n var line = contentBlock.lines[i];\n var tokens = line.tokens;\n var tokenCount = tokens.length;\n var lineHeight = line.lineHeight;\n var remainedWidth = line.width;\n var leftIndex = 0;\n var lineXLeft = xLeft;\n var lineXRight = xRight;\n var rightIndex = tokenCount - 1;\n var token = void 0;\n while (leftIndex < tokenCount\n && (token = tokens[leftIndex], !token.align || token.align === 'left')) {\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft, 'left', bgColorDrawn);\n remainedWidth -= token.width;\n lineXLeft += token.width;\n leftIndex++;\n }\n while (rightIndex >= 0\n && (token = tokens[rightIndex], token.align === 'right')) {\n this._placeToken(token, style, lineHeight, lineTop, lineXRight, 'right', bgColorDrawn);\n remainedWidth -= token.width;\n lineXRight -= token.width;\n rightIndex--;\n }\n lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - remainedWidth) / 2;\n while (leftIndex <= rightIndex) {\n token = tokens[leftIndex];\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft + token.width / 2, 'center', bgColorDrawn);\n lineXLeft += token.width;\n leftIndex++;\n }\n lineTop += lineHeight;\n }\n };\n ZRText.prototype._placeToken = function (token, style, lineHeight, lineTop, x, textAlign, parentBgColorDrawn) {\n var tokenStyle = style.rich[token.styleName] || {};\n tokenStyle.text = token.text;\n var verticalAlign = token.verticalAlign;\n var y = lineTop + lineHeight / 2;\n if (verticalAlign === 'top') {\n y = lineTop + token.height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y = lineTop + lineHeight - token.height / 2;\n }\n var needDrawBg = !token.isLineHolder && needDrawBackground(tokenStyle);\n needDrawBg && this._renderBackground(tokenStyle, style, textAlign === 'right'\n ? x - token.width\n : textAlign === 'center'\n ? x - token.width / 2\n : x, y - token.height / 2, token.width, token.height);\n var bgColorDrawn = !!tokenStyle.backgroundColor;\n var textPadding = token.textPadding;\n if (textPadding) {\n x = getTextXForPadding(x, textAlign, textPadding);\n y -= token.height / 2 - textPadding[0] - token.innerHeight / 2;\n }\n var el = this._getOrCreateChild(TSpan);\n var subElStyle = el.createStyle();\n el.useStyle(subElStyle);\n var defaultStyle = this._defaultStyle;\n var useDefaultFill = false;\n var defaultLineWidth = 0;\n var textFill = getStroke('fill' in tokenStyle ? tokenStyle.fill\n : 'fill' in style ? style.fill\n : (useDefaultFill = true, defaultStyle.fill));\n var textStroke = getStroke('stroke' in tokenStyle ? tokenStyle.stroke\n : 'stroke' in style ? style.stroke\n : (!bgColorDrawn\n && !parentBgColorDrawn\n && (!defaultStyle.autoStroke || useDefaultFill)) ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null);\n var hasShadow = tokenStyle.textShadowBlur > 0\n || style.textShadowBlur > 0;\n subElStyle.text = token.text;\n subElStyle.x = x;\n subElStyle.y = y;\n if (hasShadow) {\n subElStyle.shadowBlur = tokenStyle.textShadowBlur || style.textShadowBlur || 0;\n subElStyle.shadowColor = tokenStyle.textShadowColor || style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = tokenStyle.textShadowOffsetX || style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = tokenStyle.textShadowOffsetY || style.textShadowOffsetY || 0;\n }\n subElStyle.textAlign = textAlign;\n subElStyle.textBaseline = 'middle';\n subElStyle.font = token.font || DEFAULT_FONT;\n subElStyle.opacity = retrieve3(tokenStyle.opacity, style.opacity, 1);\n if (textStroke) {\n subElStyle.lineWidth = retrieve3(tokenStyle.lineWidth, style.lineWidth, defaultLineWidth);\n subElStyle.lineDash = retrieve2(tokenStyle.lineDash, style.lineDash);\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n subElStyle.stroke = textStroke;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n var textWidth = token.contentWidth;\n var textHeight = token.contentHeight;\n el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, textWidth, subElStyle.textAlign), adjustTextY(subElStyle.y, textHeight, subElStyle.textBaseline), textWidth, textHeight));\n };\n ZRText.prototype._renderBackground = function (style, topStyle, x, y, width, height) {\n var textBackgroundColor = style.backgroundColor;\n var textBorderWidth = style.borderWidth;\n var textBorderColor = style.borderColor;\n var isImageBg = textBackgroundColor && textBackgroundColor.image;\n var isPlainOrGradientBg = textBackgroundColor && !isImageBg;\n var textBorderRadius = style.borderRadius;\n var self = this;\n var rectEl;\n var imgEl;\n if (isPlainOrGradientBg || (textBorderWidth && textBorderColor)) {\n rectEl = this._getOrCreateChild(Rect);\n rectEl.useStyle(rectEl.createStyle());\n rectEl.style.fill = null;\n var rectShape = rectEl.shape;\n rectShape.x = x;\n rectShape.y = y;\n rectShape.width = width;\n rectShape.height = height;\n rectShape.r = textBorderRadius;\n rectEl.dirtyShape();\n }\n if (isPlainOrGradientBg) {\n var rectStyle = rectEl.style;\n rectStyle.fill = textBackgroundColor || null;\n rectStyle.fillOpacity = retrieve2(style.fillOpacity, 1);\n }\n else if (isImageBg) {\n imgEl = this._getOrCreateChild(ZRImage);\n imgEl.onload = function () {\n self.dirtyStyle();\n };\n var imgStyle = imgEl.style;\n imgStyle.image = textBackgroundColor.image;\n imgStyle.x = x;\n imgStyle.y = y;\n imgStyle.width = width;\n imgStyle.height = height;\n }\n if (textBorderWidth && textBorderColor) {\n var rectStyle = rectEl.style;\n rectStyle.lineWidth = textBorderWidth;\n rectStyle.stroke = textBorderColor;\n rectStyle.strokeOpacity = retrieve2(style.strokeOpacity, 1);\n rectStyle.lineDash = style.borderDash;\n rectStyle.lineDashOffset = style.borderDashOffset || 0;\n rectEl.strokeContainThreshold = 0;\n if (rectEl.hasFill() && rectEl.hasStroke()) {\n rectStyle.strokeFirst = true;\n rectStyle.lineWidth *= 2;\n }\n }\n var commonStyle = (rectEl || imgEl).style;\n commonStyle.shadowBlur = style.shadowBlur || 0;\n commonStyle.shadowColor = style.shadowColor || 'transparent';\n commonStyle.shadowOffsetX = style.shadowOffsetX || 0;\n commonStyle.shadowOffsetY = style.shadowOffsetY || 0;\n commonStyle.opacity = retrieve3(style.opacity, topStyle.opacity, 1);\n };\n ZRText.makeFont = function (style) {\n var font = '';\n if (style.fontSize || style.fontFamily || style.fontWeight) {\n var fontSize = '';\n if (typeof style.fontSize === 'string'\n && (style.fontSize.indexOf('px') !== -1\n || style.fontSize.indexOf('rem') !== -1\n || style.fontSize.indexOf('em') !== -1)) {\n fontSize = style.fontSize;\n }\n else if (!isNaN(+style.fontSize)) {\n fontSize = style.fontSize + 'px';\n }\n else {\n fontSize = '12px';\n }\n font = [\n style.fontStyle,\n style.fontWeight,\n fontSize,\n style.fontFamily || 'sans-serif'\n ].join(' ');\n }\n return font && trim(font) || style.textFont || style.font;\n };\n return ZRText;\n}(Displayable));\nvar VALID_TEXT_ALIGN = { left: true, right: 1, center: 1 };\nvar VALID_TEXT_VERTICAL_ALIGN = { top: 1, bottom: 1, middle: 1 };\nexport function normalizeTextStyle(style) {\n normalizeStyle(style);\n each(style.rich, normalizeStyle);\n return style;\n}\nfunction normalizeStyle(style) {\n if (style) {\n style.font = ZRText.makeFont(style);\n var textAlign = style.align;\n textAlign === 'middle' && (textAlign = 'center');\n style.align = (textAlign == null || VALID_TEXT_ALIGN[textAlign]) ? textAlign : 'left';\n var verticalAlign = style.verticalAlign;\n verticalAlign === 'center' && (verticalAlign = 'middle');\n style.verticalAlign = (verticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[verticalAlign]) ? verticalAlign : 'top';\n var textPadding = style.padding;\n if (textPadding) {\n style.padding = normalizeCssArray(style.padding);\n }\n }\n}\nfunction getStroke(stroke, lineWidth) {\n return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')\n ? null\n : (stroke.image || stroke.colorStops)\n ? '#000'\n : stroke;\n}\nfunction getFill(fill) {\n return (fill == null || fill === 'none')\n ? null\n : (fill.image || fill.colorStops)\n ? '#000'\n : fill;\n}\nfunction getTextXForPadding(x, textAlign, textPadding) {\n return textAlign === 'right'\n ? (x - textPadding[1])\n : textAlign === 'center'\n ? (x + textPadding[3] / 2 - textPadding[1] / 2)\n : (x + textPadding[3]);\n}\nfunction getStyleText(style) {\n var text = style.text;\n text != null && (text += '');\n return text;\n}\nfunction needDrawBackground(style) {\n return !!(style.backgroundColor\n || (style.borderWidth && style.borderColor));\n}\nexport default ZRText;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from './model';\nexport var getECData = makeInner();","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LRU from 'zrender/lib/core/LRU';\nimport { extend, indexOf, isArrayLike, isObject, keys, isArray, each } from 'zrender/lib/core/util';\nimport { getECData } from './innerStore';\nimport * as colorTool from 'zrender/lib/tool/color';\nimport { queryDataIndex, makeInner } from './model';\nimport Path from 'zrender/lib/graphic/Path';\nimport { error } from './log'; // Reserve 0 as default.\n\nvar _highlightNextDigit = 1;\nvar _highlightKeyMap = {};\nvar getSavedStates = makeInner();\nexport var HOVER_STATE_NORMAL = 0;\nexport var HOVER_STATE_BLUR = 1;\nexport var HOVER_STATE_EMPHASIS = 2;\nexport var SPECIAL_STATES = ['emphasis', 'blur', 'select'];\nexport var DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select'];\nexport var Z2_EMPHASIS_LIFT = 10;\nexport var Z2_SELECT_LIFT = 9;\nexport var HIGHLIGHT_ACTION_TYPE = 'highlight';\nexport var DOWNPLAY_ACTION_TYPE = 'downplay';\nexport var SELECT_ACTION_TYPE = 'select';\nexport var UNSELECT_ACTION_TYPE = 'unselect';\nexport var TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect';\n\nfunction hasFillOrStroke(fillOrStroke) {\n return fillOrStroke != null && fillOrStroke !== 'none';\n} // Most lifted color are duplicated.\n\n\nvar liftedColorCache = new LRU(100);\n\nfunction liftColor(color) {\n if (typeof color !== 'string') {\n return color;\n }\n\n var liftedColor = liftedColorCache.get(color);\n\n if (!liftedColor) {\n liftedColor = colorTool.lift(color, -0.1);\n liftedColorCache.put(color, liftedColor);\n }\n\n return liftedColor;\n}\n\nfunction doChangeHoverState(el, stateName, hoverStateEnum) {\n if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) {\n el.onHoverStateChange(stateName);\n }\n\n el.hoverState = hoverStateEnum;\n}\n\nfunction singleEnterEmphasis(el) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS);\n}\n\nfunction singleLeaveEmphasis(el) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n if (el.hoverState === HOVER_STATE_EMPHASIS) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterBlur(el) {\n doChangeHoverState(el, 'blur', HOVER_STATE_BLUR);\n}\n\nfunction singleLeaveBlur(el) {\n if (el.hoverState === HOVER_STATE_BLUR) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterSelect(el) {\n el.selected = true;\n}\n\nfunction singleLeaveSelect(el) {\n el.selected = false;\n}\n\nfunction updateElementState(el, updater, commonParam) {\n updater(el, commonParam);\n}\n\nfunction traverseUpdateState(el, updater, commonParam) {\n updateElementState(el, updater, commonParam);\n el.isGroup && el.traverse(function (child) {\n updateElementState(child, updater, commonParam);\n });\n}\n\nexport function setStatesFlag(el, stateName) {\n switch (stateName) {\n case 'emphasis':\n el.hoverState = HOVER_STATE_EMPHASIS;\n break;\n\n case 'normal':\n el.hoverState = HOVER_STATE_NORMAL;\n break;\n\n case 'blur':\n el.hoverState = HOVER_STATE_BLUR;\n break;\n\n case 'select':\n el.selected = true;\n }\n}\n/**\n * If we reuse elements when rerender.\n * DONT forget to clearStates before we update the style and shape.\n * Or we may update on the wrong state instead of normal state.\n */\n\nexport function clearStates(el) {\n if (el.isGroup) {\n el.traverse(function (child) {\n child.clearStates();\n });\n } else {\n el.clearStates();\n }\n}\n\nfunction getFromStateStyle(el, props, toStateName, defaultValue) {\n var style = el.style;\n var fromState = {};\n\n for (var i = 0; i < props.length; i++) {\n var propName = props[i];\n var val = style[propName];\n fromState[propName] = val == null ? defaultValue && defaultValue[propName] : val;\n }\n\n for (var i = 0; i < el.animators.length; i++) {\n var animator = el.animators[i];\n\n if (animator.__fromStateTransition // Dont consider the animation to emphasis state.\n && animator.__fromStateTransition.indexOf(toStateName) < 0 && animator.targetName === 'style') {\n animator.saveFinalToTarget(fromState, props);\n }\n }\n\n return fromState;\n}\n\nfunction createEmphasisDefaultState(el, stateName, targetStates, state) {\n var hasSelect = targetStates && indexOf(targetStates, 'select') >= 0;\n var cloned = false;\n\n if (el instanceof Path) {\n var store = getSavedStates(el);\n var fromFill = hasSelect ? store.selectFill || store.normalFill : store.normalFill;\n var fromStroke = hasSelect ? store.selectStroke || store.normalStroke : store.normalStroke;\n\n if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) {\n state = state || {}; // Apply default color lift\n\n var emphasisStyle = state.style || {};\n\n if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) {\n cloned = true; // Not modify the original value.\n\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle); // Already being applied 'emphasis'. DON'T lift color multiple times.\n\n emphasisStyle.fill = liftColor(fromFill);\n } // Not highlight stroke if fill has been highlighted.\n else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) {\n if (!cloned) {\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n }\n\n emphasisStyle.stroke = liftColor(fromStroke);\n }\n\n state.style = emphasisStyle;\n }\n }\n\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n if (!cloned) {\n state = extend({}, state);\n }\n\n var z2EmphasisLift = el.z2EmphasisLift;\n state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT);\n }\n }\n\n return state;\n}\n\nfunction createSelectDefaultState(el, stateName, state) {\n // const hasSelect = indexOf(el.currentStates, stateName) >= 0;\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n state = extend({}, state);\n var z2SelectLift = el.z2SelectLift;\n state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT);\n }\n }\n\n return state;\n}\n\nfunction createBlurDefaultState(el, stateName, state) {\n var hasBlur = indexOf(el.currentStates, stateName) >= 0;\n var currentOpacity = el.style.opacity;\n var fromState = !hasBlur ? getFromStateStyle(el, ['opacity'], stateName, {\n opacity: 1\n }) : null;\n state = state || {};\n var blurStyle = state.style || {};\n\n if (blurStyle.opacity == null) {\n // clone state\n state = extend({}, state);\n blurStyle = extend({\n // Already being applied 'emphasis'. DON'T mul opacity multiple times.\n opacity: hasBlur ? currentOpacity : fromState.opacity * 0.1\n }, blurStyle);\n state.style = blurStyle;\n }\n\n return state;\n}\n\nfunction elementStateProxy(stateName, targetStates) {\n var state = this.states[stateName];\n\n if (this.style) {\n if (stateName === 'emphasis') {\n return createEmphasisDefaultState(this, stateName, targetStates, state);\n } else if (stateName === 'blur') {\n return createBlurDefaultState(this, stateName, state);\n } else if (stateName === 'select') {\n return createSelectDefaultState(this, stateName, state);\n }\n }\n\n return state;\n}\n/**FI\n * Set hover style (namely \"emphasis style\") of element.\n * @param el Should not be `zrender/graphic/Group`.\n * @param focus 'self' | 'selfInSeries' | 'series'\n */\n\n\nexport function setDefaultStateProxy(el) {\n el.stateProxy = elementStateProxy;\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine();\n\n if (textContent) {\n textContent.stateProxy = elementStateProxy;\n }\n\n if (textGuide) {\n textGuide.stateProxy = elementStateProxy;\n }\n}\nexport function enterEmphasisWhenMouseOver(el, e) {\n !shouldSilent(el, e) // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !el.__highByOuter && traverseUpdateState(el, singleEnterEmphasis);\n}\nexport function leaveEmphasisWhenMouseOut(el, e) {\n !shouldSilent(el, e) // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !el.__highByOuter && traverseUpdateState(el, singleLeaveEmphasis);\n}\nexport function enterEmphasis(el, highlightDigit) {\n el.__highByOuter |= 1 << (highlightDigit || 0);\n traverseUpdateState(el, singleEnterEmphasis);\n}\nexport function leaveEmphasis(el, highlightDigit) {\n !(el.__highByOuter &= ~(1 << (highlightDigit || 0))) && traverseUpdateState(el, singleLeaveEmphasis);\n}\nexport function enterBlur(el) {\n traverseUpdateState(el, singleEnterBlur);\n}\nexport function leaveBlur(el) {\n traverseUpdateState(el, singleLeaveBlur);\n}\nexport function enterSelect(el) {\n traverseUpdateState(el, singleEnterSelect);\n}\nexport function leaveSelect(el) {\n traverseUpdateState(el, singleLeaveSelect);\n}\n\nfunction shouldSilent(el, e) {\n return el.__highDownSilentOnTouch && e.zrByTouch;\n}\n\nexport function allLeaveBlur(api) {\n var model = api.getModel();\n model.eachComponent(function (componentType, componentModel) {\n var view = componentType === 'series' ? api.getViewOfSeriesModel(componentModel) : api.getViewOfComponentModel(componentModel); // Leave blur anyway\n\n view.group.traverse(function (child) {\n singleLeaveBlur(child);\n });\n });\n}\nexport function blurSeries(targetSeriesIndex, focus, blurScope, api) {\n var ecModel = api.getModel();\n blurScope = blurScope || 'coordinateSystem';\n\n function leaveBlurOfIndices(data, dataIndices) {\n for (var i = 0; i < dataIndices.length; i++) {\n var itemEl = data.getItemGraphicEl(dataIndices[i]);\n itemEl && leaveBlur(itemEl);\n }\n }\n\n if (targetSeriesIndex == null) {\n return;\n }\n\n if (!focus || focus === 'none') {\n return;\n }\n\n var targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex);\n var targetCoordSys = targetSeriesModel.coordinateSystem;\n\n if (targetCoordSys && targetCoordSys.master) {\n targetCoordSys = targetCoordSys.master;\n }\n\n var blurredSeries = [];\n ecModel.eachSeries(function (seriesModel) {\n var sameSeries = targetSeriesModel === seriesModel;\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.master) {\n coordSys = coordSys.master;\n }\n\n var sameCoordSys = coordSys && targetCoordSys ? coordSys === targetCoordSys : sameSeries; // If there is no coordinate system. use sameSeries instead.\n\n if (!( // Not blur other series if blurScope series\n blurScope === 'series' && !sameSeries // Not blur other coordinate system if blurScope is coordinateSystem\n || blurScope === 'coordinateSystem' && !sameCoordSys // Not blur self series if focus is series.\n || focus === 'series' && sameSeries // TODO blurScope: coordinate system\n )) {\n var view = api.getViewOfSeriesModel(seriesModel);\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n\n if (isArrayLike(focus)) {\n leaveBlurOfIndices(seriesModel.getData(), focus);\n } else if (isObject(focus)) {\n var dataTypes = keys(focus);\n\n for (var d = 0; d < dataTypes.length; d++) {\n leaveBlurOfIndices(seriesModel.getData(dataTypes[d]), focus[dataTypes[d]]);\n }\n }\n\n blurredSeries.push(seriesModel);\n }\n });\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (view && view.blurSeries) {\n view.blurSeries(blurredSeries, ecModel);\n }\n });\n}\nexport function blurComponent(componentMainType, componentIndex, api) {\n if (componentMainType == null || componentIndex == null) {\n return;\n }\n\n var componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n\n if (!componentModel) {\n return;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (!view || !view.focusBlurEnabled) {\n return;\n }\n\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n}\nexport function blurSeriesFromHighlightPayload(seriesModel, payload, api) {\n var seriesIndex = seriesModel.seriesIndex;\n var data = seriesModel.getData(payload.dataType);\n var dataIndex = queryDataIndex(data, payload); // Pick the first one if there is multiple/none exists.\n\n dataIndex = (isArray(dataIndex) ? dataIndex[0] : dataIndex) || 0;\n var el = data.getItemGraphicEl(dataIndex);\n\n if (!el) {\n var count = data.count();\n var current = 0; // If data on dataIndex is NaN.\n\n while (!el && current < count) {\n el = data.getItemGraphicEl(current++);\n }\n }\n\n if (el) {\n var ecData = getECData(el);\n blurSeries(seriesIndex, ecData.focus, ecData.blurScope, api);\n } else {\n // If there is no element put on the data. Try getting it from raw option\n // TODO Should put it on seriesModel?\n var focus_1 = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n if (focus_1 != null) {\n blurSeries(seriesIndex, focus_1, blurScope, api);\n }\n }\n}\nexport function findComponentHighDownDispatchers(componentMainType, componentIndex, name, api) {\n var ret = {\n focusSelf: false,\n dispatchers: null\n };\n\n if (componentMainType == null || componentMainType === 'series' || componentIndex == null || name == null) {\n return ret;\n }\n\n var componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n\n if (!componentModel) {\n return ret;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (!view || !view.findHighDownDispatchers) {\n return ret;\n }\n\n var dispatchers = view.findHighDownDispatchers(name); // At presnet, the component (like Geo) only blur inside itself.\n // So we do not use `blurScope` in component.\n\n var focusSelf;\n\n for (var i = 0; i < dispatchers.length; i++) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatchers[i])) {\n error('param should be highDownDispatcher');\n }\n\n if (getECData(dispatchers[i]).focus === 'self') {\n focusSelf = true;\n break;\n }\n }\n\n return {\n focusSelf: focusSelf,\n dispatchers: dispatchers\n };\n}\nexport function handleGlobalMouseOverForHighDown(dispatcher, e, api) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n var ecData = getECData(dispatcher);\n\n var _a = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api),\n dispatchers = _a.dispatchers,\n focusSelf = _a.focusSelf; // If `findHighDownDispatchers` is supported on the component,\n // highlight/downplay elements with the same name.\n\n\n if (dispatchers) {\n if (focusSelf) {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n\n each(dispatchers, function (dispatcher) {\n return enterEmphasisWhenMouseOver(dispatcher, e);\n });\n } else {\n // Try blur all in the related series. Then emphasis the hoverred.\n // TODO. progressive mode.\n blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api);\n\n if (ecData.focus === 'self') {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n } // Other than series, component that not support `findHighDownDispatcher` will\n // also use it. But in this case, highlight/downplay are only supported in\n // mouse hover but not in dispatchAction.\n\n\n enterEmphasisWhenMouseOver(dispatcher, e);\n }\n}\nexport function handleGlboalMouseOutForHighDown(dispatcher, e, api) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n allLeaveBlur(api);\n var ecData = getECData(dispatcher);\n var dispatchers = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers;\n\n if (dispatchers) {\n each(dispatchers, function (dispatcher) {\n return leaveEmphasisWhenMouseOut(dispatcher, e);\n });\n } else {\n leaveEmphasisWhenMouseOut(dispatcher, e);\n }\n}\nexport function toggleSelectionFromPayload(seriesModel, payload, api) {\n if (!isSelectChangePayload(payload)) {\n return;\n }\n\n var dataType = payload.dataType;\n var data = seriesModel.getData(dataType);\n var dataIndex = queryDataIndex(data, payload);\n\n if (!isArray(dataIndex)) {\n dataIndex = [dataIndex];\n }\n\n seriesModel[payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect' : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'](dataIndex, dataType);\n}\nexport function updateSeriesElementSelection(seriesModel) {\n var allData = seriesModel.getAllData();\n each(allData, function (_a) {\n var data = _a.data,\n type = _a.type;\n data.eachItemGraphicEl(function (el, idx) {\n seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el);\n });\n });\n}\nexport function getAllSelectedIndices(ecModel) {\n var ret = [];\n ecModel.eachSeries(function (seriesModel) {\n var allData = seriesModel.getAllData();\n each(allData, function (_a) {\n var data = _a.data,\n type = _a.type;\n var dataIndices = seriesModel.getSelectedDataIndices();\n\n if (dataIndices.length > 0) {\n var item = {\n dataIndex: dataIndices,\n seriesIndex: seriesModel.seriesIndex\n };\n\n if (type != null) {\n item.dataType = type;\n }\n\n ret.push(item);\n }\n });\n });\n return ret;\n}\n/**\n * Enable the function that mouseover will trigger the emphasis state.\n *\n * NOTE:\n * This function should be used on the element with dataIndex, seriesIndex.\n *\n */\n\nexport function enableHoverEmphasis(el, focus, blurScope) {\n setAsHighDownDispatcher(el, true);\n traverseUpdateState(el, setDefaultStateProxy);\n enableHoverFocus(el, focus, blurScope);\n}\nexport function enableHoverFocus(el, focus, blurScope) {\n var ecData = getECData(el);\n\n if (focus != null) {\n // TODO dataIndex may be set after this function. This check is not useful.\n // if (ecData.dataIndex == null) {\n // if (__DEV__) {\n // console.warn('focus can only been set on element with dataIndex');\n // }\n // }\n // else {\n ecData.focus = focus;\n ecData.blurScope = blurScope; // }\n } else if (ecData.focus) {\n ecData.focus = null;\n }\n}\nvar OTHER_STATES = ['emphasis', 'blur', 'select'];\nvar defaultStyleGetterMap = {\n itemStyle: 'getItemStyle',\n lineStyle: 'getLineStyle',\n areaStyle: 'getAreaStyle'\n};\n/**\n * Set emphasis/blur/selected states of element.\n */\n\nexport function setStatesStylesFromModel(el, itemModel, styleType, // default itemStyle\ngetter) {\n styleType = styleType || 'itemStyle';\n\n for (var i = 0; i < OTHER_STATES.length; i++) {\n var stateName = OTHER_STATES[i];\n var model = itemModel.getModel([stateName, styleType]);\n var state = el.ensureState(stateName); // Let it throw error if getterType is not found.\n\n state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]]();\n }\n}\n/**\n * @parame el\n * @param el.highDownSilentOnTouch\n * In touch device, mouseover event will be trigger on touchstart event\n * (see module:zrender/dom/HandlerProxy). By this mechanism, we can\n * conveniently use hoverStyle when tap on touch screen without additional\n * code for compatibility.\n * But if the chart/component has select feature, which usually also use\n * hoverStyle, there might be conflict between 'select-highlight' and\n * 'hover-highlight' especially when roam is enabled (see geo for example).\n * In this case, `highDownSilentOnTouch` should be used to disable\n * hover-highlight on touch device.\n * @param asDispatcher If `false`, do not set as \"highDownDispatcher\".\n */\n\nexport function setAsHighDownDispatcher(el, asDispatcher) {\n var disable = asDispatcher === false;\n var extendedEl = el; // Make `highDownSilentOnTouch` and `onStateChange` only work after\n // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.\n\n if (el.highDownSilentOnTouch) {\n extendedEl.__highDownSilentOnTouch = el.highDownSilentOnTouch;\n } // Simple optimize, since this method might be\n // called for each elements of a group in some cases.\n\n\n if (!disable || extendedEl.__highDownDispatcher) {\n // Emphasis, normal can be triggered manually by API or other components like hover link.\n // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);\n // Also keep previous record.\n extendedEl.__highByOuter = extendedEl.__highByOuter || 0;\n extendedEl.__highDownDispatcher = !disable;\n }\n}\nexport function isHighDownDispatcher(el) {\n return !!(el && el.__highDownDispatcher);\n}\n/**\n * Enable component highlight/downplay features:\n * + hover link (within the same name)\n * + focus blur in component\n */\n\nexport function enableComponentHighDownFeatures(el, componentModel, componentHighDownName) {\n var ecData = getECData(el);\n ecData.componentMainType = componentModel.mainType;\n ecData.componentIndex = componentModel.componentIndex;\n ecData.componentHighDownName = componentHighDownName;\n}\n/**\n * Support hightlight/downplay record on each elements.\n * For the case: hover highlight/downplay (legend, visualMap, ...) and\n * user triggerred hightlight/downplay should not conflict.\n * Only all of the highlightDigit cleared, return to normal.\n * @param {string} highlightKey\n * @return {number} highlightDigit\n */\n\nexport function getHighlightDigit(highlightKey) {\n var highlightDigit = _highlightKeyMap[highlightKey];\n\n if (highlightDigit == null && _highlightNextDigit <= 32) {\n highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;\n }\n\n return highlightDigit;\n}\nexport function isSelectChangePayload(payload) {\n var payloadType = payload.type;\n return payloadType === SELECT_ACTION_TYPE || payloadType === UNSELECT_ACTION_TYPE || payloadType === TOGGLE_SELECT_ACTION_TYPE;\n}\nexport function isHighDownPayload(payload) {\n var payloadType = payload.type;\n return payloadType === HIGHLIGHT_ACTION_TYPE || payloadType === DOWNPLAY_ACTION_TYPE;\n}\nexport function savePathStates(el) {\n var store = getSavedStates(el);\n store.normalFill = el.style.fill;\n store.normalStroke = el.style.stroke;\n var selectState = el.states.select || {};\n store.selectFill = selectState.style && selectState.style.fill || null;\n store.selectStroke = selectState.style && selectState.style.stroke || null;\n}","import PathProxy from '../core/PathProxy';\nimport { applyTransform as v2ApplyTransform } from '../core/vector';\nvar CMD = PathProxy.CMD;\nvar points = [[], [], []];\nvar mathSqrt = Math.sqrt;\nvar mathAtan2 = Math.atan2;\nexport default function transformPath(path, m) {\n var data = path.data;\n var len = path.len();\n var cmd;\n var nPoint;\n var i;\n var j;\n var k;\n var p;\n var M = CMD.M;\n var C = CMD.C;\n var L = CMD.L;\n var R = CMD.R;\n var A = CMD.A;\n var Q = CMD.Q;\n for (i = 0, j = 0; i < len;) {\n cmd = data[i++];\n j = i;\n nPoint = 0;\n switch (cmd) {\n case M:\n nPoint = 1;\n break;\n case L:\n nPoint = 1;\n break;\n case C:\n nPoint = 3;\n break;\n case Q:\n nPoint = 2;\n break;\n case A:\n var x = m[4];\n var y = m[5];\n var sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);\n var sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);\n var angle = mathAtan2(-m[1] / sy, m[0] / sx);\n data[i] *= sx;\n data[i++] += x;\n data[i] *= sy;\n data[i++] += y;\n data[i++] *= sx;\n data[i++] *= sy;\n data[i++] += angle;\n data[i++] += angle;\n i += 2;\n j = i;\n break;\n case R:\n p[0] = data[i++];\n p[1] = data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n p[0] += data[i++];\n p[1] += data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n }\n for (k = 0; k < nPoint; k++) {\n var p_1 = points[k];\n p_1[0] = data[i++];\n p_1[1] = data[i++];\n v2ApplyTransform(p_1, p_1, m);\n data[j++] = p_1[0];\n data[j++] = p_1[1];\n }\n }\n path.increaseVersion();\n}\n","import { __extends } from \"tslib\";\nimport Path from '../graphic/Path';\nimport PathProxy from '../core/PathProxy';\nimport transformPath from './transformPath';\nimport { extend } from '../core/util';\nvar mathSqrt = Math.sqrt;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI = Math.PI;\nfunction vMag(v) {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n}\n;\nfunction vRatio(u, v) {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n}\n;\nfunction vAngle(u, v) {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)\n * Math.acos(vRatio(u, v));\n}\n;\nfunction processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {\n var psi = psiDeg * (PI / 180.0);\n var xp = mathCos(psi) * (x1 - x2) / 2.0\n + mathSin(psi) * (y1 - y2) / 2.0;\n var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0\n + mathCos(psi) * (y1 - y2) / 2.0;\n var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);\n if (lambda > 1) {\n rx *= mathSqrt(lambda);\n ry *= mathSqrt(lambda);\n }\n var f = (fa === fs ? -1 : 1)\n * mathSqrt((((rx * rx) * (ry * ry))\n - ((rx * rx) * (yp * yp))\n - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)\n + (ry * ry) * (xp * xp))) || 0;\n var cxp = f * rx * yp / ry;\n var cyp = f * -ry * xp / rx;\n var cx = (x1 + x2) / 2.0\n + mathCos(psi) * cxp\n - mathSin(psi) * cyp;\n var cy = (y1 + y2) / 2.0\n + mathSin(psi) * cxp\n + mathCos(psi) * cyp;\n var theta = vAngle([1, 0], [(xp - cxp) / rx, (yp - cyp) / ry]);\n var u = [(xp - cxp) / rx, (yp - cyp) / ry];\n var v = [(-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry];\n var dTheta = vAngle(u, v);\n if (vRatio(u, v) <= -1) {\n dTheta = PI;\n }\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n if (dTheta < 0) {\n var n = Math.round(dTheta / PI * 1e6) / 1e6;\n dTheta = PI * 2 + (n % 2) * PI;\n }\n path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);\n}\nvar commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;\nvar numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction createPathProxyFromString(data) {\n var path = new PathProxy();\n if (!data) {\n return path;\n }\n var cpx = 0;\n var cpy = 0;\n var subpathX = cpx;\n var subpathY = cpy;\n var prevCmd;\n var CMD = PathProxy.CMD;\n var cmdList = data.match(commandReg);\n if (!cmdList) {\n return path;\n }\n for (var l = 0; l < cmdList.length; l++) {\n var cmdText = cmdList[l];\n var cmdStr = cmdText.charAt(0);\n var cmd = void 0;\n var p = cmdText.match(numberReg) || [];\n var pLen = p.length;\n for (var i = 0; i < pLen; i++) {\n p[i] = parseFloat(p[i]);\n }\n var off = 0;\n while (off < pLen) {\n var ctlPtx = void 0;\n var ctlPty = void 0;\n var rx = void 0;\n var ry = void 0;\n var psi = void 0;\n var fa = void 0;\n var fs = void 0;\n var x1 = cpx;\n var y1 = cpy;\n var len = void 0;\n var pathData = void 0;\n switch (cmdStr) {\n case 'l':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'L':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'm':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'l';\n break;\n case 'M':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'L';\n break;\n case 'h':\n cpx += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'H':\n cpx = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'v':\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'V':\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'C':\n cmd = CMD.C;\n path.addData(cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]);\n cpx = p[off - 2];\n cpy = p[off - 1];\n break;\n case 'c':\n cmd = CMD.C;\n path.addData(cmd, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy);\n cpx += p[off - 2];\n cpy += p[off - 1];\n break;\n case 'S':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 's':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = cpx + p[off++];\n y1 = cpy + p[off++];\n cpx += p[off++];\n cpy += p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 'Q':\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'q':\n x1 = p[off++] + cpx;\n y1 = p[off++] + cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'T':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 't':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 'A':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n case 'a':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n }\n }\n if (cmdStr === 'z' || cmdStr === 'Z') {\n cmd = CMD.Z;\n path.addData(cmd);\n cpx = subpathX;\n cpy = subpathY;\n }\n prevCmd = cmd;\n }\n path.toStatic();\n return path;\n}\nvar SVGPath = (function (_super) {\n __extends(SVGPath, _super);\n function SVGPath() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGPath.prototype.applyTransform = function (m) { };\n return SVGPath;\n}(Path));\nfunction isPathProxy(path) {\n return path.setData != null;\n}\nfunction createPathOptions(str, opts) {\n var pathProxy = createPathProxyFromString(str);\n var innerOpts = extend({}, opts);\n innerOpts.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.setData(pathProxy.data);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n else {\n var ctx = path;\n pathProxy.rebuildPath(ctx, 1);\n }\n };\n innerOpts.applyTransform = function (m) {\n transformPath(pathProxy, m);\n this.dirtyShape();\n };\n return innerOpts;\n}\nexport function createFromString(str, opts) {\n return new SVGPath(createPathOptions(str, opts));\n}\nexport function extendFromString(str, defaultOpts) {\n var innerOpts = createPathOptions(str, defaultOpts);\n var Sub = (function (_super) {\n __extends(Sub, _super);\n function Sub(opts) {\n var _this = _super.call(this, opts) || this;\n _this.applyTransform = innerOpts.applyTransform;\n _this.buildPath = innerOpts.buildPath;\n return _this;\n }\n return Sub;\n }(SVGPath));\n return Sub;\n}\nexport function mergePath(pathEls, opts) {\n var pathList = [];\n var len = pathEls.length;\n for (var i = 0; i < len; i++) {\n var pathEl = pathEls[i];\n if (!pathEl.path) {\n pathEl.createPathProxy();\n }\n if (pathEl.shapeChanged()) {\n pathEl.buildPath(pathEl.path, pathEl.shape, true);\n }\n pathList.push(pathEl.path);\n }\n var pathBundle = new Path(opts);\n pathBundle.createPathProxy();\n pathBundle.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.appendPath(pathList);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n };\n return pathBundle;\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar CircleShape = (function () {\n function CircleShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n }\n return CircleShape;\n}());\nexport { CircleShape };\nvar Circle = (function (_super) {\n __extends(Circle, _super);\n function Circle(opts) {\n return _super.call(this, opts) || this;\n }\n Circle.prototype.getDefaultShape = function () {\n return new CircleShape();\n };\n Circle.prototype.buildPath = function (ctx, shape, inBundle) {\n if (inBundle) {\n ctx.moveTo(shape.cx + shape.r, shape.cy);\n }\n ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2);\n };\n return Circle;\n}(Path));\n;\nCircle.prototype.type = 'circle';\nexport default Circle;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar EllipseShape = (function () {\n function EllipseShape() {\n this.cx = 0;\n this.cy = 0;\n this.rx = 0;\n this.ry = 0;\n }\n return EllipseShape;\n}());\nexport { EllipseShape };\nvar Ellipse = (function (_super) {\n __extends(Ellipse, _super);\n function Ellipse(opts) {\n return _super.call(this, opts) || this;\n }\n Ellipse.prototype.getDefaultShape = function () {\n return new EllipseShape();\n };\n Ellipse.prototype.buildPath = function (ctx, shape) {\n var k = 0.5522848;\n var x = shape.cx;\n var y = shape.cy;\n var a = shape.rx;\n var b = shape.ry;\n var ox = a * k;\n var oy = b * k;\n ctx.moveTo(x - a, y);\n ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b);\n ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y);\n ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b);\n ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y);\n ctx.closePath();\n };\n return Ellipse;\n}(Path));\nEllipse.prototype.type = 'ellipse';\nexport default Ellipse;\n","import { normalizeArcAngles } from '../../core/PathProxy';\nvar PI = Math.PI;\nvar PI2 = PI * 2;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar mathACos = Math.acos;\nvar mathATan2 = Math.atan2;\nvar mathAbs = Math.abs;\nvar mathSqrt = Math.sqrt;\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar e = 1e-4;\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0;\n var y10 = y1 - y0;\n var x32 = x3 - x2;\n var y32 = y3 - y2;\n var t = y32 * x10 - x32 * y10;\n if (t * t < e) {\n return;\n }\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\nfunction computeCornerTangents(x0, y0, x1, y1, radius, cr, clockwise) {\n var x01 = x0 - x1;\n var y01 = y0 - y1;\n var lo = (clockwise ? cr : -cr) / mathSqrt(x01 * x01 + y01 * y01);\n var ox = lo * y01;\n var oy = -lo * x01;\n var x11 = x0 + ox;\n var y11 = y0 + oy;\n var x10 = x1 + ox;\n var y10 = y1 + oy;\n var x00 = (x11 + x10) / 2;\n var y00 = (y11 + y10) / 2;\n var dx = x10 - x11;\n var dy = y10 - y11;\n var d2 = dx * dx + dy * dy;\n var r = radius - cr;\n var s = x11 * y10 - x10 * y11;\n var d = (dy < 0 ? -1 : 1) * mathSqrt(mathMax(0, r * r * d2 - s * s));\n var cx0 = (s * dy - dx * d) / d2;\n var cy0 = (-s * dx - dy * d) / d2;\n var cx1 = (s * dy + dx * d) / d2;\n var cy1 = (-s * dx + dy * d) / d2;\n var dx0 = cx0 - x00;\n var dy0 = cy0 - y00;\n var dx1 = cx1 - x00;\n var dy1 = cy1 - y00;\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) {\n cx0 = cx1;\n cy0 = cy1;\n }\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (radius / r - 1),\n y11: cy0 * (radius / r - 1)\n };\n}\nexport function buildPath(ctx, shape) {\n var radius = mathMax(shape.r, 0);\n var innerRadius = mathMax(shape.r0 || 0, 0);\n var hasRadius = radius > 0;\n var hasInnerRadius = innerRadius > 0;\n if (!hasRadius && !hasInnerRadius) {\n return;\n }\n if (!hasRadius) {\n radius = innerRadius;\n innerRadius = 0;\n }\n if (innerRadius > radius) {\n var tmp = radius;\n radius = innerRadius;\n innerRadius = tmp;\n }\n var clockwise = !!shape.clockwise;\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var arc;\n if (startAngle === endAngle) {\n arc = 0;\n }\n else {\n var tmpAngles = [startAngle, endAngle];\n normalizeArcAngles(tmpAngles, !clockwise);\n arc = mathAbs(tmpAngles[0] - tmpAngles[1]);\n }\n var x = shape.cx;\n var y = shape.cy;\n var cornerRadius = shape.cornerRadius || 0;\n var innerCornerRadius = shape.innerCornerRadius || 0;\n if (!(radius > e)) {\n ctx.moveTo(x, y);\n }\n else if (arc > PI2 - e) {\n ctx.moveTo(x + radius * mathCos(startAngle), y + radius * mathSin(startAngle));\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n if (innerRadius > e) {\n ctx.moveTo(x + innerRadius * mathCos(endAngle), y + innerRadius * mathSin(endAngle));\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n else {\n var halfRd = mathAbs(radius - innerRadius) / 2;\n var cr = mathMin(halfRd, cornerRadius);\n var icr = mathMin(halfRd, innerCornerRadius);\n var cr0 = icr;\n var cr1 = cr;\n var xrs = radius * mathCos(startAngle);\n var yrs = radius * mathSin(startAngle);\n var xire = innerRadius * mathCos(endAngle);\n var yire = innerRadius * mathSin(endAngle);\n var xre = void 0;\n var yre = void 0;\n var xirs = void 0;\n var yirs = void 0;\n if (cr > e || icr > e) {\n xre = radius * mathCos(endAngle);\n yre = radius * mathSin(endAngle);\n xirs = innerRadius * mathCos(startAngle);\n yirs = innerRadius * mathSin(startAngle);\n if (arc < PI) {\n var it_1 = intersect(xrs, yrs, xirs, yirs, xre, yre, xire, yire);\n if (it_1) {\n var x0 = xrs - it_1[0];\n var y0 = yrs - it_1[1];\n var x1 = xre - it_1[0];\n var y1 = yre - it_1[1];\n var a = 1 / mathSin(mathACos((x0 * x1 + y0 * y1) / (mathSqrt(x0 * x0 + y0 * y0) * mathSqrt(x1 * x1 + y1 * y1))) / 2);\n var b = mathSqrt(it_1[0] * it_1[0] + it_1[1] * it_1[1]);\n cr0 = mathMin(icr, (innerRadius - b) / (a - 1));\n cr1 = mathMin(cr, (radius - b) / (a + 1));\n }\n }\n }\n if (!(arc > e)) {\n ctx.moveTo(x + xrs, y + yrs);\n }\n else if (cr1 > e) {\n var ct0 = computeCornerTangents(xirs, yirs, xrs, yrs, radius, cr1, clockwise);\n var ct1 = computeCornerTangents(xre, yre, xire, yire, radius, cr1, clockwise);\n ctx.moveTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n if (cr1 < cr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n ctx.arc(x, y, radius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), !clockwise);\n ctx.arc(x + ct1.cx, y + ct1.cy, cr1, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n else {\n ctx.moveTo(x + xrs, y + yrs);\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n }\n if (!(innerRadius > e) || !(arc > e)) {\n ctx.lineTo(x + xire, y + yire);\n }\n else if (cr0 > e) {\n var ct0 = computeCornerTangents(xire, yire, xre, yre, innerRadius, -cr0, clockwise);\n var ct1 = computeCornerTangents(xrs, yrs, xirs, yirs, innerRadius, -cr0, clockwise);\n ctx.lineTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n if (cr0 < icr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n ctx.arc(x, y, innerRadius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), clockwise);\n ctx.arc(x + ct1.cx, y + ct1.cy, cr0, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n else {\n ctx.lineTo(x + xire, y + yire);\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n ctx.closePath();\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as roundSectorHelper from '../helper/roundSector';\nvar SectorShape = (function () {\n function SectorShape() {\n this.cx = 0;\n this.cy = 0;\n this.r0 = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n this.cornerRadius = 0;\n this.innerCornerRadius = 0;\n }\n return SectorShape;\n}());\nexport { SectorShape };\nvar Sector = (function (_super) {\n __extends(Sector, _super);\n function Sector(opts) {\n return _super.call(this, opts) || this;\n }\n Sector.prototype.getDefaultShape = function () {\n return new SectorShape();\n };\n Sector.prototype.buildPath = function (ctx, shape) {\n roundSectorHelper.buildPath(ctx, shape);\n };\n Sector.prototype.isZeroArea = function () {\n return this.shape.startAngle === this.shape.endAngle\n || this.shape.r === this.shape.r0;\n };\n return Sector;\n}(Path));\nSector.prototype.type = 'sector';\nexport default Sector;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar RingShape = (function () {\n function RingShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n this.r0 = 0;\n }\n return RingShape;\n}());\nexport { RingShape };\nvar Ring = (function (_super) {\n __extends(Ring, _super);\n function Ring(opts) {\n return _super.call(this, opts) || this;\n }\n Ring.prototype.getDefaultShape = function () {\n return new RingShape();\n };\n Ring.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var PI2 = Math.PI * 2;\n ctx.moveTo(x + shape.r, y);\n ctx.arc(x, y, shape.r, 0, PI2, false);\n ctx.moveTo(x + shape.r0, y);\n ctx.arc(x, y, shape.r0, 0, PI2, true);\n };\n return Ring;\n}(Path));\nRing.prototype.type = 'ring';\nexport default Ring;\n","import { distance as v2Distance } from '../../core/vector';\nfunction interpolate(p0, p1, p2, p3, t, t2, t3) {\n var v0 = (p2 - p0) * 0.5;\n var v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\nexport default function smoothSpline(points, isLoop) {\n var len = points.length;\n var ret = [];\n var distance = 0;\n for (var i = 1; i < len; i++) {\n distance += v2Distance(points[i - 1], points[i]);\n }\n var segs = distance / 2;\n segs = segs < len ? len : segs;\n for (var i = 0; i < segs; i++) {\n var pos = i / (segs - 1) * (isLoop ? len : len - 1);\n var idx = Math.floor(pos);\n var w = pos - idx;\n var p0 = void 0;\n var p1 = points[idx % len];\n var p2 = void 0;\n var p3 = void 0;\n if (!isLoop) {\n p0 = points[idx === 0 ? idx : idx - 1];\n p2 = points[idx > len - 2 ? len - 1 : idx + 1];\n p3 = points[idx > len - 3 ? len - 1 : idx + 2];\n }\n else {\n p0 = points[(idx - 1 + len) % len];\n p2 = points[(idx + 1) % len];\n p3 = points[(idx + 2) % len];\n }\n var w2 = w * w;\n var w3 = w * w2;\n ret.push([\n interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),\n interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)\n ]);\n }\n return ret;\n}\n","import { min as v2Min, max as v2Max, scale as v2Scale, distance as v2Distance, add as v2Add, clone as v2Clone, sub as v2Sub } from '../../core/vector';\nexport default function smoothBezier(points, smooth, isLoop, constraint) {\n var cps = [];\n var v = [];\n var v1 = [];\n var v2 = [];\n var prevPoint;\n var nextPoint;\n var min;\n var max;\n if (constraint) {\n min = [Infinity, Infinity];\n max = [-Infinity, -Infinity];\n for (var i = 0, len = points.length; i < len; i++) {\n v2Min(min, min, points[i]);\n v2Max(max, max, points[i]);\n }\n v2Min(min, min, constraint[0]);\n v2Max(max, max, constraint[1]);\n }\n for (var i = 0, len = points.length; i < len; i++) {\n var point = points[i];\n if (isLoop) {\n prevPoint = points[i ? i - 1 : len - 1];\n nextPoint = points[(i + 1) % len];\n }\n else {\n if (i === 0 || i === len - 1) {\n cps.push(v2Clone(points[i]));\n continue;\n }\n else {\n prevPoint = points[i - 1];\n nextPoint = points[i + 1];\n }\n }\n v2Sub(v, nextPoint, prevPoint);\n v2Scale(v, v, smooth);\n var d0 = v2Distance(point, prevPoint);\n var d1 = v2Distance(point, nextPoint);\n var sum = d0 + d1;\n if (sum !== 0) {\n d0 /= sum;\n d1 /= sum;\n }\n v2Scale(v1, v, -d0);\n v2Scale(v2, v, d1);\n var cp0 = v2Add([], point, v1);\n var cp1 = v2Add([], point, v2);\n if (constraint) {\n v2Max(cp0, cp0, min);\n v2Min(cp0, cp0, max);\n v2Max(cp1, cp1, min);\n v2Min(cp1, cp1, max);\n }\n cps.push(cp0);\n cps.push(cp1);\n }\n if (isLoop) {\n cps.push(cps.shift());\n }\n return cps;\n}\n","import smoothSpline from './smoothSpline';\nimport smoothBezier from './smoothBezier';\nexport function buildPath(ctx, shape, closePath) {\n var smooth = shape.smooth;\n var points = shape.points;\n if (points && points.length >= 2) {\n if (smooth && smooth !== 'spline') {\n var controlPoints = smoothBezier(points, smooth, closePath, shape.smoothConstraint);\n ctx.moveTo(points[0][0], points[0][1]);\n var len = points.length;\n for (var i = 0; i < (closePath ? len : len - 1); i++) {\n var cp1 = controlPoints[i * 2];\n var cp2 = controlPoints[i * 2 + 1];\n var p = points[(i + 1) % len];\n ctx.bezierCurveTo(cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]);\n }\n }\n else {\n if (smooth === 'spline') {\n points = smoothSpline(points, closePath);\n }\n ctx.moveTo(points[0][0], points[0][1]);\n for (var i = 1, l = points.length; i < l; i++) {\n ctx.lineTo(points[i][0], points[i][1]);\n }\n }\n closePath && ctx.closePath();\n }\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as polyHelper from '../helper/poly';\nvar PolygonShape = (function () {\n function PolygonShape() {\n this.points = null;\n this.smooth = 0;\n this.smoothConstraint = null;\n }\n return PolygonShape;\n}());\nexport { PolygonShape };\nvar Polygon = (function (_super) {\n __extends(Polygon, _super);\n function Polygon(opts) {\n return _super.call(this, opts) || this;\n }\n Polygon.prototype.getDefaultShape = function () {\n return new PolygonShape();\n };\n Polygon.prototype.buildPath = function (ctx, shape) {\n polyHelper.buildPath(ctx, shape, true);\n };\n return Polygon;\n}(Path));\n;\nPolygon.prototype.type = 'polygon';\nexport default Polygon;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as polyHelper from '../helper/poly';\nvar PolylineShape = (function () {\n function PolylineShape() {\n this.points = null;\n this.percent = 1;\n this.smooth = 0;\n this.smoothConstraint = null;\n }\n return PolylineShape;\n}());\nexport { PolylineShape };\nvar Polyline = (function (_super) {\n __extends(Polyline, _super);\n function Polyline(opts) {\n return _super.call(this, opts) || this;\n }\n Polyline.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Polyline.prototype.getDefaultShape = function () {\n return new PolylineShape();\n };\n Polyline.prototype.buildPath = function (ctx, shape) {\n polyHelper.buildPath(ctx, shape, false);\n };\n return Polyline;\n}(Path));\nPolyline.prototype.type = 'polyline';\nexport default Polyline;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport { subPixelOptimizeLine } from '../helper/subPixelOptimize';\nvar subPixelOptimizeOutputShape = {};\nvar LineShape = (function () {\n function LineShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.percent = 1;\n }\n return LineShape;\n}());\nexport { LineShape };\nvar Line = (function (_super) {\n __extends(Line, _super);\n function Line(opts) {\n return _super.call(this, opts) || this;\n }\n Line.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Line.prototype.getDefaultShape = function () {\n return new LineShape();\n };\n Line.prototype.buildPath = function (ctx, shape) {\n var x1;\n var y1;\n var x2;\n var y2;\n if (this.subPixelOptimize) {\n var optimizedShape = subPixelOptimizeLine(subPixelOptimizeOutputShape, shape, this.style);\n x1 = optimizedShape.x1;\n y1 = optimizedShape.y1;\n x2 = optimizedShape.x2;\n y2 = optimizedShape.y2;\n }\n else {\n x1 = shape.x1;\n y1 = shape.y1;\n x2 = shape.x2;\n y2 = shape.y2;\n }\n var percent = shape.percent;\n if (percent === 0) {\n return;\n }\n ctx.moveTo(x1, y1);\n if (percent < 1) {\n x2 = x1 * (1 - percent) + x2 * percent;\n y2 = y1 * (1 - percent) + y2 * percent;\n }\n ctx.lineTo(x2, y2);\n };\n Line.prototype.pointAt = function (p) {\n var shape = this.shape;\n return [\n shape.x1 * (1 - p) + shape.x2 * p,\n shape.y1 * (1 - p) + shape.y2 * p\n ];\n };\n return Line;\n}(Path));\nLine.prototype.type = 'line';\nexport default Line;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as vec2 from '../../core/vector';\nimport { quadraticSubdivide, cubicSubdivide, quadraticAt, cubicAt, quadraticDerivativeAt, cubicDerivativeAt } from '../../core/curve';\nvar out = [];\nvar BezierCurveShape = (function () {\n function BezierCurveShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.cpx1 = 0;\n this.cpy1 = 0;\n this.percent = 1;\n }\n return BezierCurveShape;\n}());\nexport { BezierCurveShape };\nfunction someVectorAt(shape, t, isTangent) {\n var cpx2 = shape.cpx2;\n var cpy2 = shape.cpy2;\n if (cpx2 === null || cpy2 === null) {\n return [\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)\n ];\n }\n else {\n return [\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)\n ];\n }\n}\nvar BezierCurve = (function (_super) {\n __extends(BezierCurve, _super);\n function BezierCurve(opts) {\n return _super.call(this, opts) || this;\n }\n BezierCurve.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n BezierCurve.prototype.getDefaultShape = function () {\n return new BezierCurveShape();\n };\n BezierCurve.prototype.buildPath = function (ctx, shape) {\n var x1 = shape.x1;\n var y1 = shape.y1;\n var x2 = shape.x2;\n var y2 = shape.y2;\n var cpx1 = shape.cpx1;\n var cpy1 = shape.cpy1;\n var cpx2 = shape.cpx2;\n var cpy2 = shape.cpy2;\n var percent = shape.percent;\n if (percent === 0) {\n return;\n }\n ctx.moveTo(x1, y1);\n if (cpx2 == null || cpy2 == null) {\n if (percent < 1) {\n quadraticSubdivide(x1, cpx1, x2, percent, out);\n cpx1 = out[1];\n x2 = out[2];\n quadraticSubdivide(y1, cpy1, y2, percent, out);\n cpy1 = out[1];\n y2 = out[2];\n }\n ctx.quadraticCurveTo(cpx1, cpy1, x2, y2);\n }\n else {\n if (percent < 1) {\n cubicSubdivide(x1, cpx1, cpx2, x2, percent, out);\n cpx1 = out[1];\n cpx2 = out[2];\n x2 = out[3];\n cubicSubdivide(y1, cpy1, cpy2, y2, percent, out);\n cpy1 = out[1];\n cpy2 = out[2];\n y2 = out[3];\n }\n ctx.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, x2, y2);\n }\n };\n BezierCurve.prototype.pointAt = function (t) {\n return someVectorAt(this.shape, t, false);\n };\n BezierCurve.prototype.tangentAt = function (t) {\n var p = someVectorAt(this.shape, t, true);\n return vec2.normalize(p, p);\n };\n return BezierCurve;\n}(Path));\n;\nBezierCurve.prototype.type = 'bezier-curve';\nexport default BezierCurve;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar ArcShape = (function () {\n function ArcShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n }\n return ArcShape;\n}());\nexport { ArcShape };\nvar Arc = (function (_super) {\n __extends(Arc, _super);\n function Arc(opts) {\n return _super.call(this, opts) || this;\n }\n Arc.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Arc.prototype.getDefaultShape = function () {\n return new ArcShape();\n };\n Arc.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var r = Math.max(shape.r, 0);\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var clockwise = shape.clockwise;\n var unitX = Math.cos(startAngle);\n var unitY = Math.sin(startAngle);\n ctx.moveTo(unitX * r + x, unitY * r + y);\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n };\n return Arc;\n}(Path));\nArc.prototype.type = 'arc';\nexport default Arc;\n","import { __extends } from \"tslib\";\nimport Path from './Path';\nvar CompoundPath = (function (_super) {\n __extends(CompoundPath, _super);\n function CompoundPath() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = 'compound';\n return _this;\n }\n CompoundPath.prototype._updatePathDirty = function () {\n var paths = this.shape.paths;\n var dirtyPath = this.shapeChanged();\n for (var i = 0; i < paths.length; i++) {\n dirtyPath = dirtyPath || paths[i].shapeChanged();\n }\n if (dirtyPath) {\n this.dirtyShape();\n }\n };\n CompoundPath.prototype.beforeBrush = function () {\n this._updatePathDirty();\n var paths = this.shape.paths || [];\n var scale = this.getGlobalScale();\n for (var i = 0; i < paths.length; i++) {\n if (!paths[i].path) {\n paths[i].createPathProxy();\n }\n paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);\n }\n };\n CompoundPath.prototype.buildPath = function (ctx, shape) {\n var paths = shape.paths || [];\n for (var i = 0; i < paths.length; i++) {\n paths[i].buildPath(ctx, paths[i].shape, true);\n }\n };\n CompoundPath.prototype.afterBrush = function () {\n var paths = this.shape.paths || [];\n for (var i = 0; i < paths.length; i++) {\n paths[i].pathUpdated();\n }\n };\n CompoundPath.prototype.getBoundingRect = function () {\n this._updatePathDirty.call(this);\n return Path.prototype.getBoundingRect.call(this);\n };\n return CompoundPath;\n}(Path));\nexport default CompoundPath;\n","var Gradient = (function () {\n function Gradient(colorStops) {\n this.colorStops = colorStops || [];\n }\n Gradient.prototype.addColorStop = function (offset, color) {\n this.colorStops.push({\n offset: offset,\n color: color\n });\n };\n return Gradient;\n}());\nexport default Gradient;\n","import { __extends } from \"tslib\";\nimport Gradient from './Gradient';\nvar LinearGradient = (function (_super) {\n __extends(LinearGradient, _super);\n function LinearGradient(x, y, x2, y2, colorStops, globalCoord) {\n var _this = _super.call(this, colorStops) || this;\n _this.x = x == null ? 0 : x;\n _this.y = y == null ? 0 : y;\n _this.x2 = x2 == null ? 1 : x2;\n _this.y2 = y2 == null ? 0 : y2;\n _this.type = 'linear';\n _this.global = globalCoord || false;\n return _this;\n }\n return LinearGradient;\n}(Gradient));\nexport default LinearGradient;\n;\n","import { __extends } from \"tslib\";\nimport Gradient from './Gradient';\nvar RadialGradient = (function (_super) {\n __extends(RadialGradient, _super);\n function RadialGradient(x, y, r, colorStops, globalCoord) {\n var _this = _super.call(this, colorStops) || this;\n _this.x = x == null ? 0.5 : x;\n _this.y = y == null ? 0.5 : y;\n _this.r = r == null ? 0.5 : r;\n _this.type = 'radial';\n _this.global = globalCoord || false;\n return _this;\n }\n return RadialGradient;\n}(Gradient));\nexport default RadialGradient;\n","import Point from './Point';\nvar extent = [0, 0];\nvar extent2 = [0, 0];\nvar minTv = new Point();\nvar maxTv = new Point();\nvar OrientedBoundingRect = (function () {\n function OrientedBoundingRect(rect, transform) {\n this._corners = [];\n this._axes = [];\n this._origin = [0, 0];\n for (var i = 0; i < 4; i++) {\n this._corners[i] = new Point();\n }\n for (var i = 0; i < 2; i++) {\n this._axes[i] = new Point();\n }\n if (rect) {\n this.fromBoundingRect(rect, transform);\n }\n }\n OrientedBoundingRect.prototype.fromBoundingRect = function (rect, transform) {\n var corners = this._corners;\n var axes = this._axes;\n var x = rect.x;\n var y = rect.y;\n var x2 = x + rect.width;\n var y2 = y + rect.height;\n corners[0].set(x, y);\n corners[1].set(x2, y);\n corners[2].set(x2, y2);\n corners[3].set(x, y2);\n if (transform) {\n for (var i = 0; i < 4; i++) {\n corners[i].transform(transform);\n }\n }\n Point.sub(axes[0], corners[1], corners[0]);\n Point.sub(axes[1], corners[3], corners[0]);\n axes[0].normalize();\n axes[1].normalize();\n for (var i = 0; i < 2; i++) {\n this._origin[i] = axes[i].dot(corners[0]);\n }\n };\n OrientedBoundingRect.prototype.intersect = function (other, mtv) {\n var overlapped = true;\n var noMtv = !mtv;\n minTv.set(Infinity, Infinity);\n maxTv.set(0, 0);\n if (!this._intersectCheckOneSide(this, other, minTv, maxTv, noMtv, 1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n if (!this._intersectCheckOneSide(other, this, minTv, maxTv, noMtv, -1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n if (!noMtv) {\n Point.copy(mtv, overlapped ? minTv : maxTv);\n }\n return overlapped;\n };\n OrientedBoundingRect.prototype._intersectCheckOneSide = function (self, other, minTv, maxTv, noMtv, inverse) {\n var overlapped = true;\n for (var i = 0; i < 2; i++) {\n var axis = this._axes[i];\n this._getProjMinMaxOnAxis(i, self._corners, extent);\n this._getProjMinMaxOnAxis(i, other._corners, extent2);\n if (extent[1] < extent2[0] || extent[0] > extent2[1]) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n var dist0 = Math.abs(extent2[0] - extent[1]);\n var dist1 = Math.abs(extent[0] - extent2[1]);\n if (Math.min(dist0, dist1) > maxTv.len()) {\n if (dist0 < dist1) {\n Point.scale(maxTv, axis, -dist0 * inverse);\n }\n else {\n Point.scale(maxTv, axis, dist1 * inverse);\n }\n }\n }\n else if (minTv) {\n var dist0 = Math.abs(extent2[0] - extent[1]);\n var dist1 = Math.abs(extent[0] - extent2[1]);\n if (Math.min(dist0, dist1) < minTv.len()) {\n if (dist0 < dist1) {\n Point.scale(minTv, axis, dist0 * inverse);\n }\n else {\n Point.scale(minTv, axis, -dist1 * inverse);\n }\n }\n }\n }\n return overlapped;\n };\n OrientedBoundingRect.prototype._getProjMinMaxOnAxis = function (dim, corners, out) {\n var axis = this._axes[dim];\n var origin = this._origin;\n var proj = corners[0].dot(axis) + origin[dim];\n var min = proj;\n var max = proj;\n for (var i = 1; i < corners.length; i++) {\n var proj_1 = corners[i].dot(axis) + origin[dim];\n min = Math.min(proj_1, min);\n max = Math.max(proj_1, max);\n }\n out[0] = min;\n out[1] = max;\n };\n return OrientedBoundingRect;\n}());\nexport default OrientedBoundingRect;\n","import { __extends } from \"tslib\";\nimport Displayble from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nvar m = [];\nvar IncrementalDisplayable = (function (_super) {\n __extends(IncrementalDisplayable, _super);\n function IncrementalDisplayable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.notClear = true;\n _this.incremental = true;\n _this._displayables = [];\n _this._temporaryDisplayables = [];\n _this._cursor = 0;\n return _this;\n }\n IncrementalDisplayable.prototype.traverse = function (cb, context) {\n cb.call(context, this);\n };\n IncrementalDisplayable.prototype.useStyle = function () {\n this.style = {};\n };\n IncrementalDisplayable.prototype.getCursor = function () {\n return this._cursor;\n };\n IncrementalDisplayable.prototype.innerAfterBrush = function () {\n this._cursor = this._displayables.length;\n };\n IncrementalDisplayable.prototype.clearDisplaybles = function () {\n this._displayables = [];\n this._temporaryDisplayables = [];\n this._cursor = 0;\n this.markRedraw();\n this.notClear = false;\n };\n IncrementalDisplayable.prototype.clearTemporalDisplayables = function () {\n this._temporaryDisplayables = [];\n };\n IncrementalDisplayable.prototype.addDisplayable = function (displayable, notPersistent) {\n if (notPersistent) {\n this._temporaryDisplayables.push(displayable);\n }\n else {\n this._displayables.push(displayable);\n }\n this.markRedraw();\n };\n IncrementalDisplayable.prototype.addDisplayables = function (displayables, notPersistent) {\n notPersistent = notPersistent || false;\n for (var i = 0; i < displayables.length; i++) {\n this.addDisplayable(displayables[i], notPersistent);\n }\n };\n IncrementalDisplayable.prototype.getDisplayables = function () {\n return this._displayables;\n };\n IncrementalDisplayable.prototype.getTemporalDisplayables = function () {\n return this._temporaryDisplayables;\n };\n IncrementalDisplayable.prototype.eachPendingDisplayable = function (cb) {\n for (var i = this._cursor; i < this._displayables.length; i++) {\n cb && cb(this._displayables[i]);\n }\n for (var i = 0; i < this._temporaryDisplayables.length; i++) {\n cb && cb(this._temporaryDisplayables[i]);\n }\n };\n IncrementalDisplayable.prototype.update = function () {\n this.updateTransform();\n for (var i = this._cursor; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n displayable.parent = this;\n displayable.update();\n displayable.parent = null;\n }\n for (var i = 0; i < this._temporaryDisplayables.length; i++) {\n var displayable = this._temporaryDisplayables[i];\n displayable.parent = this;\n displayable.update();\n displayable.parent = null;\n }\n };\n IncrementalDisplayable.prototype.getBoundingRect = function () {\n if (!this._rect) {\n var rect = new BoundingRect(Infinity, Infinity, -Infinity, -Infinity);\n for (var i = 0; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n var childRect = displayable.getBoundingRect().clone();\n if (displayable.needLocalTransform()) {\n childRect.applyTransform(displayable.getLocalTransform(m));\n }\n rect.union(childRect);\n }\n this._rect = rect;\n }\n return this._rect;\n };\n IncrementalDisplayable.prototype.contain = function (x, y) {\n var localPos = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n if (rect.contain(localPos[0], localPos[1])) {\n for (var i = 0; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n if (displayable.contain(x, y)) {\n return true;\n }\n }\n }\n return false;\n };\n return IncrementalDisplayable;\n}(Displayble));\nexport default IncrementalDisplayable;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as pathTool from 'zrender/lib/tool/path';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as vector from 'zrender/lib/core/vector';\nimport Path from 'zrender/lib/graphic/Path';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport Group from 'zrender/lib/graphic/Group';\nimport ZRText from 'zrender/lib/graphic/Text';\nimport Circle from 'zrender/lib/graphic/shape/Circle';\nimport Ellipse from 'zrender/lib/graphic/shape/Ellipse';\nimport Sector from 'zrender/lib/graphic/shape/Sector';\nimport Ring from 'zrender/lib/graphic/shape/Ring';\nimport Polygon from 'zrender/lib/graphic/shape/Polygon';\nimport Polyline from 'zrender/lib/graphic/shape/Polyline';\nimport Rect from 'zrender/lib/graphic/shape/Rect';\nimport Line from 'zrender/lib/graphic/shape/Line';\nimport BezierCurve from 'zrender/lib/graphic/shape/BezierCurve';\nimport Arc from 'zrender/lib/graphic/shape/Arc';\nimport CompoundPath from 'zrender/lib/graphic/CompoundPath';\nimport LinearGradient from 'zrender/lib/graphic/LinearGradient';\nimport RadialGradient from 'zrender/lib/graphic/RadialGradient';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport OrientedBoundingRect from 'zrender/lib/core/OrientedBoundingRect';\nimport Point from 'zrender/lib/core/Point';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport * as subPixelOptimizeUtil from 'zrender/lib/graphic/helper/subPixelOptimize';\nimport { extend, isArrayLike, map, defaults, isObject, retrieve2, isString, keys, each, hasOwn } from 'zrender/lib/core/util';\nimport { getECData } from './innerStore';\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar _customShapeMap = {};\n/**\n * Extend shape with parameters\n */\n\nexport function extendShape(opts) {\n return Path.extend(opts);\n}\nvar extendPathFromString = pathTool.extendFromString;\n/**\n * Extend path\n */\n\nexport function extendPath(pathData, opts) {\n return extendPathFromString(pathData, opts);\n}\n/**\n * Register a user defined shape.\n * The shape class can be fetched by `getShapeClass`\n * This method will overwrite the registered shapes, including\n * the registered built-in shapes, if using the same `name`.\n * The shape can be used in `custom series` and\n * `graphic component` by declaring `{type: name}`.\n *\n * @param name\n * @param ShapeClass Can be generated by `extendShape`.\n */\n\nexport function registerShape(name, ShapeClass) {\n _customShapeMap[name] = ShapeClass;\n}\n/**\n * Find shape class registered by `registerShape`. Usually used in\n * fetching user defined shape.\n *\n * [Caution]:\n * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared\n * to use user registered shapes.\n * Because the built-in shape (see `getBuiltInShape`) will be registered by\n * `registerShape` by default. That enables users to get both built-in\n * shapes as well as the shapes belonging to themsleves. But users can overwrite\n * the built-in shapes by using names like 'circle', 'rect' via calling\n * `registerShape`. So the echarts inner featrues should not fetch shapes from here\n * in case that it is overwritten by users, except that some features, like\n * `custom series`, `graphic component`, do it deliberately.\n *\n * (2) In the features like `custom series`, `graphic component`, the user input\n * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic\n * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names\n * are reserved names, that is, if some user register a shape named `'image'`,\n * the shape will not be used. If we intending to add some more reserved names\n * in feature, that might bring break changes (disable some existing user shape\n * names). But that case probably rearly happen. So we dont make more mechanism\n * to resolve this issue here.\n *\n * @param name\n * @return The shape class. If not found, return nothing.\n */\n\nexport function getShapeClass(name) {\n if (_customShapeMap.hasOwnProperty(name)) {\n return _customShapeMap[name];\n }\n}\n/**\n * Create a path element from path data string\n * @param pathData\n * @param opts\n * @param rect\n * @param layout 'center' or 'cover' default to be cover\n */\n\nexport function makePath(pathData, opts, rect, layout) {\n var path = pathTool.createFromString(pathData, opts);\n\n if (rect) {\n if (layout === 'center') {\n rect = centerGraphic(rect, path.getBoundingRect());\n }\n\n resizePath(path, rect);\n }\n\n return path;\n}\n/**\n * Create a image element from image url\n * @param imageUrl image url\n * @param opts options\n * @param rect constrain rect\n * @param layout 'center' or 'cover'. Default to be 'cover'\n */\n\nexport function makeImage(imageUrl, rect, layout) {\n var zrImg = new ZRImage({\n style: {\n image: imageUrl,\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n onload: function (img) {\n if (layout === 'center') {\n var boundingRect = {\n width: img.width,\n height: img.height\n };\n zrImg.setStyle(centerGraphic(rect, boundingRect));\n }\n }\n });\n return zrImg;\n}\n/**\n * Get position of centered element in bounding box.\n *\n * @param rect element local bounding box\n * @param boundingRect constraint bounding box\n * @return element position containing x, y, width, and height\n */\n\nfunction centerGraphic(rect, boundingRect) {\n // Set rect to center, keep width / height ratio.\n var aspect = boundingRect.width / boundingRect.height;\n var width = rect.height * aspect;\n var height;\n\n if (width <= rect.width) {\n height = rect.height;\n } else {\n width = rect.width;\n height = width / aspect;\n }\n\n var cx = rect.x + rect.width / 2;\n var cy = rect.y + rect.height / 2;\n return {\n x: cx - width / 2,\n y: cy - height / 2,\n width: width,\n height: height\n };\n}\n\nexport var mergePath = pathTool.mergePath;\n/**\n * Resize a path to fit the rect\n * @param path\n * @param rect\n */\n\nexport function resizePath(path, rect) {\n if (!path.applyTransform) {\n return;\n }\n\n var pathRect = path.getBoundingRect();\n var m = pathRect.calculateTransform(rect);\n path.applyTransform(m);\n}\n/**\n * Sub pixel optimize line for canvas\n */\n\nexport function subPixelOptimizeLine(param) {\n subPixelOptimizeUtil.subPixelOptimizeLine(param.shape, param.shape, param.style);\n return param;\n}\n/**\n * Sub pixel optimize rect for canvas\n */\n\nexport function subPixelOptimizeRect(param) {\n subPixelOptimizeUtil.subPixelOptimizeRect(param.shape, param.shape, param.style);\n return param;\n}\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth Should be nonnegative integer.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\n\nexport var subPixelOptimize = subPixelOptimizeUtil.subPixelOptimize;\n\nfunction animateOrSetProps(animationType, el, props, animatableModel, dataIndex, cb, during) {\n var isFrom = false;\n var removeOpt;\n\n if (typeof dataIndex === 'function') {\n during = cb;\n cb = dataIndex;\n dataIndex = null;\n } else if (isObject(dataIndex)) {\n cb = dataIndex.cb;\n during = dataIndex.during;\n isFrom = dataIndex.isFrom;\n removeOpt = dataIndex.removeOpt;\n dataIndex = dataIndex.dataIndex;\n }\n\n var isUpdate = animationType === 'update';\n var isRemove = animationType === 'remove';\n var animationPayload; // Check if there is global animation configuration from dataZoom/resize can override the config in option.\n // If animation is enabled. Will use this animation config in payload.\n // If animation is disabled. Just ignore it.\n\n if (animatableModel && animatableModel.ecModel) {\n var updatePayload = animatableModel.ecModel.getUpdatePayload();\n animationPayload = updatePayload && updatePayload.animation;\n }\n\n var animationEnabled = animatableModel && animatableModel.isAnimationEnabled();\n\n if (!isRemove) {\n // Must stop the remove animation.\n el.stopAnimation('remove');\n }\n\n if (animationEnabled) {\n var duration = void 0;\n var animationEasing = void 0;\n var animationDelay = void 0;\n\n if (animationPayload) {\n duration = animationPayload.duration || 0;\n animationEasing = animationPayload.easing || 'cubicOut';\n animationDelay = animationPayload.delay || 0;\n } else if (isRemove) {\n removeOpt = removeOpt || {};\n duration = retrieve2(removeOpt.duration, 200);\n animationEasing = retrieve2(removeOpt.easing, 'cubicOut');\n animationDelay = 0;\n } else {\n duration = animatableModel.getShallow(isUpdate ? 'animationDurationUpdate' : 'animationDuration');\n animationEasing = animatableModel.getShallow(isUpdate ? 'animationEasingUpdate' : 'animationEasing');\n animationDelay = animatableModel.getShallow(isUpdate ? 'animationDelayUpdate' : 'animationDelay');\n }\n\n if (typeof animationDelay === 'function') {\n animationDelay = animationDelay(dataIndex, animatableModel.getAnimationDelayParams ? animatableModel.getAnimationDelayParams(el, dataIndex) : null);\n }\n\n if (typeof duration === 'function') {\n duration = duration(dataIndex);\n }\n\n duration > 0 ? isFrom ? el.animateFrom(props, {\n duration: duration,\n delay: animationDelay || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n scope: animationType,\n during: during\n }) : el.animateTo(props, {\n duration: duration,\n delay: animationDelay || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n setToFinal: true,\n scope: animationType,\n during: during\n }) : ( // FIXME:\n // If `duration` is 0, only the animation on props\n // can be stoped, other animation should be continued?\n // But at present using duration 0 in `animateTo`, `animateFrom`\n // might cause unexpected behavior.\n el.stopAnimation(), // If `isFrom`, the props is the \"from\" props.\n !isFrom && el.attr(props), cb && cb());\n } else {\n el.stopAnimation();\n !isFrom && el.attr(props); // Call during once.\n\n during && during(1);\n cb && cb();\n }\n}\n/**\n * Update graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n * @example\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, dataIndex, function () { console.log('Animation done!'); });\n * // Or\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, function () { console.log('Animation done!'); });\n */\n\n\nfunction updateProps(el, props, // TODO: TYPE AnimatableModel\nanimatableModel, dataIndex, cb, during) {\n animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);\n}\n\nexport { updateProps };\n/**\n * Init graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n */\n\nexport function initProps(el, props, animatableModel, dataIndex, cb, during) {\n animateOrSetProps('init', el, props, animatableModel, dataIndex, cb, during);\n}\n/**\n * Remove graphic element\n */\n\nexport function removeElement(el, props, animatableModel, dataIndex, cb, during) {\n // Don't do remove animation twice.\n if (isElementRemoved(el)) {\n return;\n }\n\n animateOrSetProps('remove', el, props, animatableModel, dataIndex, cb, during);\n}\n\nfunction fadeOutDisplayable(el, animatableModel, dataIndex, done) {\n el.removeTextContent();\n el.removeTextGuideLine();\n removeElement(el, {\n style: {\n opacity: 0\n }\n }, animatableModel, dataIndex, done);\n}\n\nexport function removeElementWithFadeOut(el, animatableModel, dataIndex) {\n function doRemove() {\n el.parent && el.parent.remove(el);\n } // Hide label and labelLine first\n // TODO Also use fade out animation?\n\n\n if (!el.isGroup) {\n fadeOutDisplayable(el, animatableModel, dataIndex, doRemove);\n } else {\n el.traverse(function (disp) {\n if (!disp.isGroup) {\n // Can invoke doRemove multiple times.\n fadeOutDisplayable(disp, animatableModel, dataIndex, doRemove);\n }\n });\n }\n}\n/**\n * If element is removed.\n * It can determine if element is having remove animation.\n */\n\nexport function isElementRemoved(el) {\n if (!el.__zr) {\n return true;\n }\n\n for (var i = 0; i < el.animators.length; i++) {\n var animator = el.animators[i];\n\n if (animator.scope === 'remove') {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Get transform matrix of target (param target),\n * in coordinate of its ancestor (param ancestor)\n *\n * @param target\n * @param [ancestor]\n */\n\nexport function getTransform(target, ancestor) {\n var mat = matrix.identity([]);\n\n while (target && target !== ancestor) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n return mat;\n}\n/**\n * Apply transform to an vertex.\n * @param target [x, y]\n * @param transform Can be:\n * + Transform matrix: like [1, 0, 0, 1, 0, 0]\n * + {position, rotation, scale}, the same as `zrender/Transformable`.\n * @param invert Whether use invert matrix.\n * @return [x, y]\n */\n\nexport function applyTransform(target, transform, invert) {\n if (transform && !isArrayLike(transform)) {\n transform = Transformable.getLocalTransform(transform);\n }\n\n if (invert) {\n transform = matrix.invert([], transform);\n }\n\n return vector.applyTransform([], target, transform);\n}\n/**\n * @param direction 'left' 'right' 'top' 'bottom'\n * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]\n * @param invert Whether use invert matrix.\n * @return Transformed direction. 'left' 'right' 'top' 'bottom'\n */\n\nexport function transformDirection(direction, transform, invert) {\n // Pick a base, ensure that transform result will not be (0, 0).\n var hBase = transform[4] === 0 || transform[5] === 0 || transform[0] === 0 ? 1 : Math.abs(2 * transform[4] / transform[0]);\n var vBase = transform[4] === 0 || transform[5] === 0 || transform[2] === 0 ? 1 : Math.abs(2 * transform[4] / transform[2]);\n var vertex = [direction === 'left' ? -hBase : direction === 'right' ? hBase : 0, direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0];\n vertex = applyTransform(vertex, transform, invert);\n return Math.abs(vertex[0]) > Math.abs(vertex[1]) ? vertex[0] > 0 ? 'right' : 'left' : vertex[1] > 0 ? 'bottom' : 'top';\n}\n\nfunction isNotGroup(el) {\n return !el.isGroup;\n}\n\nfunction isPath(el) {\n return el.shape != null;\n}\n/**\n * Apply group transition animation from g1 to g2.\n * If no animatableModel, no animation.\n */\n\n\nexport function groupTransition(g1, g2, animatableModel) {\n if (!g1 || !g2) {\n return;\n }\n\n function getElMap(g) {\n var elMap = {};\n g.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n elMap[el.anid] = el;\n }\n });\n return elMap;\n }\n\n function getAnimatableProps(el) {\n var obj = {\n x: el.x,\n y: el.y,\n rotation: el.rotation\n };\n\n if (isPath(el)) {\n obj.shape = extend({}, el.shape);\n }\n\n return obj;\n }\n\n var elMap1 = getElMap(g1);\n g2.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n var oldEl = elMap1[el.anid];\n\n if (oldEl) {\n var newProp = getAnimatableProps(el);\n el.attr(getAnimatableProps(oldEl));\n updateProps(el, newProp, animatableModel, getECData(el).dataIndex);\n }\n }\n });\n}\nexport function clipPointsByRect(points, rect) {\n // FIXME: this way migth be incorrect when grpahic clipped by a corner.\n // and when element have border.\n return map(points, function (point) {\n var x = point[0];\n x = mathMax(x, rect.x);\n x = mathMin(x, rect.x + rect.width);\n var y = point[1];\n y = mathMax(y, rect.y);\n y = mathMin(y, rect.y + rect.height);\n return [x, y];\n });\n}\n/**\n * Return a new clipped rect. If rect size are negative, return undefined.\n */\n\nexport function clipRectByRect(targetRect, rect) {\n var x = mathMax(targetRect.x, rect.x);\n var x2 = mathMin(targetRect.x + targetRect.width, rect.x + rect.width);\n var y = mathMax(targetRect.y, rect.y);\n var y2 = mathMin(targetRect.y + targetRect.height, rect.y + rect.height); // If the total rect is cliped, nothing, including the border,\n // should be painted. So return undefined.\n\n if (x2 >= x && y2 >= y) {\n return {\n x: x,\n y: y,\n width: x2 - x,\n height: y2 - y\n };\n }\n}\nexport function createIcon(iconStr, // Support 'image://' or 'path://' or direct svg path.\nopt, rect) {\n var innerOpts = extend({\n rectHover: true\n }, opt);\n var style = innerOpts.style = {\n strokeNoScale: true\n };\n rect = rect || {\n x: -1,\n y: -1,\n width: 2,\n height: 2\n };\n\n if (iconStr) {\n return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), defaults(style, rect), new ZRImage(innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center');\n }\n}\n/**\n * Return `true` if the given line (line `a`) and the given polygon\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\n\nexport function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {\n for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {\n var p = points[i];\n\n if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {\n return true;\n }\n\n p2 = p;\n }\n}\n/**\n * Return `true` if the given two lines (line `a` and line `b`)\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\n\nexport function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {\n // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.\n var mx = a2x - a1x;\n var my = a2y - a1y;\n var nx = b2x - b1x;\n var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff\n // exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.\n\n var nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n\n if (nearZero(nmCrossProduct)) {\n return false;\n } // `vec_m` and `vec_n` are intersect iff\n // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,\n // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`\n // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.\n\n\n var b1a1x = a1x - b1x;\n var b1a1y = a1y - b1y;\n var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;\n\n if (q < 0 || q > 1) {\n return false;\n }\n\n var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n\n if (p < 0 || p > 1) {\n return false;\n }\n\n return true;\n}\n/**\n * Cross product of 2-dimension vector.\n */\n\nfunction crossProduct2d(x1, y1, x2, y2) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction nearZero(val) {\n return val <= 1e-6 && val >= -1e-6;\n}\n\nexport function setTooltipConfig(opt) {\n var itemTooltipOption = opt.itemTooltipOption;\n var componentModel = opt.componentModel;\n var itemName = opt.itemName;\n var itemTooltipOptionObj = isString(itemTooltipOption) ? {\n formatter: itemTooltipOption\n } : itemTooltipOption;\n var mainType = componentModel.mainType;\n var componentIndex = componentModel.componentIndex;\n var formatterParams = {\n componentType: mainType,\n name: itemName,\n $vars: ['name']\n };\n formatterParams[mainType + 'Index'] = componentIndex;\n var formatterParamsExtra = opt.formatterParamsExtra;\n\n if (formatterParamsExtra) {\n each(keys(formatterParamsExtra), function (key) {\n if (!hasOwn(formatterParams, key)) {\n formatterParams[key] = formatterParamsExtra[key];\n formatterParams.$vars.push(key);\n }\n });\n }\n\n var ecData = getECData(opt.el);\n ecData.componentMainType = mainType;\n ecData.componentIndex = componentIndex;\n ecData.tooltipConfig = {\n name: itemName,\n option: defaults({\n content: itemName,\n formatterParams: formatterParams\n }, itemTooltipOptionObj)\n };\n} // Register built-in shapes. These shapes might be overwirtten\n// by users, although we do not recommend that.\n\nregisterShape('circle', Circle);\nregisterShape('ellipse', Ellipse);\nregisterShape('sector', Sector);\nregisterShape('ring', Ring);\nregisterShape('polygon', Polygon);\nregisterShape('polyline', Polyline);\nregisterShape('rect', Rect);\nregisterShape('line', Line);\nregisterShape('bezierCurve', BezierCurve);\nregisterShape('arc', Arc);\nexport { Group, ZRImage as Image, ZRText as Text, Circle, Ellipse, Sector, Ring, Polygon, Polyline, Rect, Line, BezierCurve, Arc, IncrementalDisplayable, CompoundPath, LinearGradient, RadialGradient, BoundingRect, OrientedBoundingRect, Point, Path };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ZRText from 'zrender/lib/graphic/Text';\nimport { isFunction, retrieve2, extend, keys, trim } from 'zrender/lib/core/util';\nimport { SPECIAL_STATES, DISPLAY_STATES } from '../util/states';\nimport { deprecateReplaceLog } from '../util/log';\nimport { makeInner, interpolateRawValues } from '../util/model';\nimport { initProps, updateProps } from '../util/graphic';\nvar EMPTY_OBJ = {};\nexport function setLabelText(label, labelTexts) {\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var text = labelTexts[stateName];\n var state = label.ensureState(stateName);\n state.style = state.style || {};\n state.style.text = text;\n }\n\n var oldStates = label.currentStates.slice();\n label.clearStates(true);\n label.setStyle({\n text: labelTexts.normal\n });\n label.useStates(oldStates, true);\n}\n\nfunction getLabelText(opt, stateModels, interpolatedValue) {\n var labelFetcher = opt.labelFetcher;\n var labelDataIndex = opt.labelDataIndex;\n var labelDimIndex = opt.labelDimIndex;\n var normalModel = stateModels.normal;\n var baseText;\n\n if (labelFetcher) {\n baseText = labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex, normalModel && normalModel.get('formatter'), interpolatedValue != null ? {\n interpolatedValue: interpolatedValue\n } : null);\n }\n\n if (baseText == null) {\n baseText = isFunction(opt.defaultText) ? opt.defaultText(labelDataIndex, opt, interpolatedValue) : opt.defaultText;\n }\n\n var statesText = {\n normal: baseText\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var stateModel = stateModels[stateName];\n statesText[stateName] = retrieve2(labelFetcher ? labelFetcher.getFormattedLabel(labelDataIndex, stateName, null, labelDimIndex, stateModel && stateModel.get('formatter')) : null, baseText);\n }\n\n return statesText;\n}\n\nfunction setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified // TODO specified position?\n) {\n opt = opt || EMPTY_OBJ;\n var isSetOnText = targetEl instanceof ZRText;\n var needsCreateText = false;\n\n for (var i = 0; i < DISPLAY_STATES.length; i++) {\n var stateModel = labelStatesModels[DISPLAY_STATES[i]];\n\n if (stateModel && stateModel.getShallow('show')) {\n needsCreateText = true;\n break;\n }\n }\n\n var textContent = isSetOnText ? targetEl : targetEl.getTextContent();\n\n if (needsCreateText) {\n if (!isSetOnText) {\n // Reuse the previous\n if (!textContent) {\n textContent = new ZRText();\n targetEl.setTextContent(textContent);\n } // Use same state proxy\n\n\n if (targetEl.stateProxy) {\n textContent.stateProxy = targetEl.stateProxy;\n }\n }\n\n var labelStatesTexts = getLabelText(opt, labelStatesModels);\n var normalModel = labelStatesModels.normal;\n var showNormal = !!normalModel.getShallow('show');\n var normalStyle = createTextStyle(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText);\n normalStyle.text = labelStatesTexts.normal;\n\n if (!isSetOnText) {\n // Always create new\n targetEl.setTextConfig(createTextConfig(normalModel, opt, false));\n }\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var stateModel = labelStatesModels[stateName];\n\n if (stateModel) {\n var stateObj = textContent.ensureState(stateName);\n var stateShow = !!retrieve2(stateModel.getShallow('show'), showNormal);\n\n if (stateShow !== showNormal) {\n stateObj.ignore = !stateShow;\n }\n\n stateObj.style = createTextStyle(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText);\n stateObj.style.text = labelStatesTexts[stateName];\n\n if (!isSetOnText) {\n var targetElEmphasisState = targetEl.ensureState(stateName);\n targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true);\n }\n }\n } // PENDING: if there is many requirements that emphasis position\n // need to be different from normal position, we might consider\n // auto slient is those cases.\n\n\n textContent.silent = !!normalModel.getShallow('silent'); // Keep x and y\n\n if (textContent.style.x != null) {\n normalStyle.x = textContent.style.x;\n }\n\n if (textContent.style.y != null) {\n normalStyle.y = textContent.style.y;\n }\n\n textContent.ignore = !showNormal; // Always create new style.\n\n textContent.useStyle(normalStyle);\n textContent.dirty();\n\n if (opt.enableTextSetter) {\n labelInner(textContent).setLabelText = function (interpolatedValue) {\n var labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue);\n setLabelText(textContent, labelStatesTexts);\n };\n }\n } else if (textContent) {\n // Not display rich text.\n textContent.ignore = true;\n }\n\n targetEl.dirty();\n}\n\nexport { setLabelStyle };\nexport function getLabelStatesModels(itemModel, labelName) {\n labelName = labelName || 'label';\n var statesModels = {\n normal: itemModel.getModel(labelName)\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelName]);\n }\n\n return statesModels;\n}\n/**\n * Set basic textStyle properties.\n */\n\nexport function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.\nopt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.\n) {\n var textStyle = {};\n setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n specifiedTextStyle && extend(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n\n return textStyle;\n}\nexport function createTextConfig(textStyleModel, opt, isNotNormal) {\n opt = opt || {};\n var textConfig = {};\n var labelPosition;\n var labelRotate = textStyleModel.getShallow('rotate');\n var labelDistance = retrieve2(textStyleModel.getShallow('distance'), isNotNormal ? null : 5);\n var labelOffset = textStyleModel.getShallow('offset');\n labelPosition = textStyleModel.getShallow('position') || (isNotNormal ? null : 'inside'); // 'outside' is not a valid zr textPostion value, but used\n // in bar series, and magric type should be considered.\n\n labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top');\n\n if (labelPosition != null) {\n textConfig.position = labelPosition;\n }\n\n if (labelOffset != null) {\n textConfig.offset = labelOffset;\n }\n\n if (labelRotate != null) {\n labelRotate *= Math.PI / 180;\n textConfig.rotation = labelRotate;\n }\n\n if (labelDistance != null) {\n textConfig.distance = labelDistance;\n } // fill and auto is determined by the color of path fill if it's not specified by developers.\n\n\n textConfig.outsideFill = textStyleModel.get('color') === 'inherit' ? opt.inheritColor || null : 'auto';\n return textConfig;\n}\n/**\n * The uniform entry of set text style, that is, retrieve style definitions\n * from `model` and set to `textStyle` object.\n *\n * Never in merge mode, but in overwrite mode, that is, all of the text style\n * properties will be set. (Consider the states of normal and emphasis and\n * default value can be adopted, merge would make the logic too complicated\n * to manage.)\n */\n\nfunction setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) {\n // Consider there will be abnormal when merge hover style to normal style if given default value.\n opt = opt || EMPTY_OBJ;\n var ecModel = textStyleModel.ecModel;\n var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case:\n // {\n // data: [{\n // value: 12,\n // label: {\n // rich: {\n // // no 'a' here but using parent 'a'.\n // }\n // }\n // }],\n // rich: {\n // a: { ... }\n // }\n // }\n\n var richItemNames = getRichItemNames(textStyleModel);\n var richResult;\n\n if (richItemNames) {\n richResult = {};\n\n for (var name_1 in richItemNames) {\n if (richItemNames.hasOwnProperty(name_1)) {\n // Cascade is supported in rich.\n var richTextStyle = textStyleModel.getModel(['rich', name_1]); // In rich, never `disableBox`.\n // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n // the default color `'blue'` will not be adopted if no color declared in `rich`.\n // That might confuses users. So probably we should put `textStyleModel` as the\n // root ancestor of the `richTextStyle`. But that would be a break change.\n\n setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true);\n }\n }\n }\n\n if (richResult) {\n textStyle.rich = richResult;\n }\n\n var overflow = textStyleModel.get('overflow');\n\n if (overflow) {\n textStyle.overflow = overflow;\n }\n\n var margin = textStyleModel.get('minMargin');\n\n if (margin != null) {\n textStyle.margin = margin;\n }\n\n setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n} // Consider case:\n// {\n// data: [{\n// value: 12,\n// label: {\n// rich: {\n// // no 'a' here but using parent 'a'.\n// }\n// }\n// }],\n// rich: {\n// a: { ... }\n// }\n// }\n// TODO TextStyleModel\n\n\nfunction getRichItemNames(textStyleModel) {\n // Use object to remove duplicated names.\n var richItemNameMap;\n\n while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {\n var rich = (textStyleModel.option || EMPTY_OBJ).rich;\n\n if (rich) {\n richItemNameMap = richItemNameMap || {};\n var richKeys = keys(rich);\n\n for (var i = 0; i < richKeys.length; i++) {\n var richKey = richKeys[i];\n richItemNameMap[richKey] = 1;\n }\n }\n\n textStyleModel = textStyleModel.parentModel;\n }\n\n return richItemNameMap;\n}\n\nvar TEXT_PROPS_WITH_GLOBAL = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'];\nvar TEXT_PROPS_SELF = ['align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign'];\nvar TEXT_PROPS_BOX = ['padding', 'borderWidth', 'borderRadius', 'borderDashOffset', 'backgroundColor', 'borderColor', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];\n\nfunction setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, isBlock, inRich) {\n // In merge mode, default value should not be given.\n globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ;\n var inheritColor = opt && opt.inheritColor;\n var fillColor = textStyleModel.getShallow('color');\n var strokeColor = textStyleModel.getShallow('textBorderColor');\n var opacity = retrieve2(textStyleModel.getShallow('opacity'), globalTextStyle.opacity);\n\n if (fillColor === 'inherit' || fillColor === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n if (fillColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n\n if (inheritColor) {\n fillColor = inheritColor;\n } else {\n fillColor = null;\n }\n }\n\n if (strokeColor === 'inherit' || strokeColor === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n if (strokeColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n\n if (inheritColor) {\n strokeColor = inheritColor;\n } else {\n strokeColor = null;\n }\n }\n\n if (!isAttached) {\n // Only use default global textStyle.color if text is individual.\n // Otherwise it will use the strategy of attached text color because text may be on a path.\n fillColor = fillColor || globalTextStyle.color;\n strokeColor = strokeColor || globalTextStyle.textBorderColor;\n }\n\n if (fillColor != null) {\n textStyle.fill = fillColor;\n }\n\n if (strokeColor != null) {\n textStyle.stroke = strokeColor;\n }\n\n var textBorderWidth = retrieve2(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth);\n\n if (textBorderWidth != null) {\n textStyle.lineWidth = textBorderWidth;\n }\n\n var textBorderType = retrieve2(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType);\n\n if (textBorderType != null) {\n textStyle.lineDash = textBorderType;\n }\n\n var textBorderDashOffset = retrieve2(textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset);\n\n if (textBorderDashOffset != null) {\n textStyle.lineDashOffset = textBorderDashOffset;\n }\n\n if (!isNotNormal && opacity == null && !inRich) {\n opacity = opt && opt.defaultOpacity;\n }\n\n if (opacity != null) {\n textStyle.opacity = opacity;\n } // TODO\n\n\n if (!isNotNormal && !isAttached) {\n // Set default finally.\n if (textStyle.fill == null && opt.inheritColor) {\n textStyle.fill = opt.inheritColor;\n }\n } // Do not use `getFont` here, because merge should be supported, where\n // part of these properties may be changed in emphasis style, and the\n // others should remain their original value got from normal style.\n\n\n for (var i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) {\n var key = TEXT_PROPS_WITH_GLOBAL[i];\n var val = retrieve2(textStyleModel.getShallow(key), globalTextStyle[key]);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n for (var i = 0; i < TEXT_PROPS_SELF.length; i++) {\n var key = TEXT_PROPS_SELF[i];\n var val = textStyleModel.getShallow(key);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n if (textStyle.verticalAlign == null) {\n var baseline = textStyleModel.getShallow('baseline');\n\n if (baseline != null) {\n textStyle.verticalAlign = baseline;\n }\n }\n\n if (!isBlock || !opt.disableBox) {\n for (var i = 0; i < TEXT_PROPS_BOX.length; i++) {\n var key = TEXT_PROPS_BOX[i];\n var val = textStyleModel.getShallow(key);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n var borderType = textStyleModel.getShallow('borderType');\n\n if (borderType != null) {\n textStyle.borderDash = borderType;\n }\n\n if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) {\n if (process.env.NODE_ENV !== 'production') {\n if (textStyle.backgroundColor === 'auto') {\n deprecateReplaceLog('backgroundColor: \\'auto\\'', 'backgroundColor: \\'inherit\\'');\n }\n }\n\n textStyle.backgroundColor = inheritColor;\n }\n\n if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) {\n if (process.env.NODE_ENV !== 'production') {\n if (textStyle.borderColor === 'auto') {\n deprecateReplaceLog('borderColor: \\'auto\\'', 'borderColor: \\'inherit\\'');\n }\n }\n\n textStyle.borderColor = inheritColor;\n }\n }\n}\n\nexport function getFont(opt, ecModel) {\n var gTextStyleModel = ecModel && ecModel.getModel('textStyle');\n return trim([// FIXME in node-canvas fontWeight is before fontStyle\n opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '', opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '', (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px', opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'].join(' '));\n}\nexport var labelInner = makeInner();\nexport function setLabelValueAnimation(label, labelStatesModels, value, getDefaultText) {\n if (!label) {\n return;\n }\n\n var obj = labelInner(label);\n obj.prevValue = obj.value;\n obj.value = value;\n var normalLabelModel = labelStatesModels.normal;\n obj.valueAnimation = normalLabelModel.get('valueAnimation');\n\n if (obj.valueAnimation) {\n obj.precision = normalLabelModel.get('precision');\n obj.defaultInterpolatedText = getDefaultText;\n obj.statesModels = labelStatesModels;\n }\n}\nexport function animateLabelValue(textEl, dataIndex, data, animatableModel, labelFetcher) {\n var labelInnerStore = labelInner(textEl);\n\n if (!labelInnerStore.valueAnimation) {\n return;\n }\n\n var defaultInterpolatedText = labelInnerStore.defaultInterpolatedText; // Consider the case that being animating, do not use the `obj.value`,\n // Otherwise it will jump to the `obj.value` when this new animation started.\n\n var currValue = retrieve2(labelInnerStore.interpolatedValue, labelInnerStore.prevValue);\n var targetValue = labelInnerStore.value;\n\n function during(percent) {\n var interpolated = interpolateRawValues(data, labelInnerStore.precision, currValue, targetValue, percent);\n labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated;\n var labelText = getLabelText({\n labelDataIndex: dataIndex,\n labelFetcher: labelFetcher,\n defaultText: defaultInterpolatedText ? defaultInterpolatedText(interpolated) : interpolated + ''\n }, labelInnerStore.statesModels, interpolated);\n setLabelText(textEl, labelText);\n }\n\n (currValue == null ? initProps : updateProps)(textEl, {}, animatableModel, dataIndex, null, during);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getFont } from '../../label/labelStyle';\nimport ZRText from 'zrender/lib/graphic/Text';\nvar PATH_COLOR = ['textStyle', 'color']; // TODO Performance improvement?\n\nvar tmpRichText = new ZRText();\n\nvar TextStyleMixin =\n/** @class */\nfunction () {\n function TextStyleMixin() {}\n /**\n * Get color property or get color from option.textStyle.color\n */\n // TODO Callback\n\n\n TextStyleMixin.prototype.getTextColor = function (isEmphasis) {\n var ecModel = this.ecModel;\n return this.getShallow('color') || (!isEmphasis && ecModel ? ecModel.get(PATH_COLOR) : null);\n };\n /**\n * Create font string from fontStyle, fontWeight, fontSize, fontFamily\n * @return {string}\n */\n\n\n TextStyleMixin.prototype.getFont = function () {\n return getFont({\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily')\n }, this.ecModel);\n };\n\n TextStyleMixin.prototype.getTextRect = function (text) {\n tmpRichText.useStyle({\n text: text,\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily'),\n verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline'),\n padding: this.getShallow('padding'),\n lineHeight: this.getShallow('lineHeight'),\n rich: this.getShallow('rich')\n });\n tmpRichText.update();\n return tmpRichText.getBoundingRect();\n };\n\n return TextStyleMixin;\n}();\n\n;\nexport default TextStyleMixin;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var LINE_STYLE_KEY_MAP = [['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'type'], ['lineDashOffset', 'dashOffset'], ['lineCap', 'cap'], ['lineJoin', 'join'], ['miterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getLineStyle = makeStyleMapper(LINE_STYLE_KEY_MAP);\n\nvar LineStyleMixin =\n/** @class */\nfunction () {\n function LineStyleMixin() {}\n\n LineStyleMixin.prototype.getLineStyle = function (excludes) {\n return getLineStyle(this, excludes);\n };\n\n return LineStyleMixin;\n}();\n\n;\nexport { LineStyleMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var ITEM_STYLE_KEY_MAP = [['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'borderType'], ['lineDashOffset', 'borderDashOffset'], ['lineCap', 'borderCap'], ['lineJoin', 'borderJoin'], ['miterLimit', 'borderMiterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getItemStyle = makeStyleMapper(ITEM_STYLE_KEY_MAP);\n\nvar ItemStyleMixin =\n/** @class */\nfunction () {\n function ItemStyleMixin() {}\n\n ItemStyleMixin.prototype.getItemStyle = function (excludes, includes) {\n return getItemStyle(this, excludes, includes);\n };\n\n return ItemStyleMixin;\n}();\n\nexport { ItemStyleMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport env from 'zrender/lib/core/env';\nimport { enableClassExtend, enableClassCheck } from '../util/clazz';\nimport { AreaStyleMixin } from './mixin/areaStyle';\nimport TextStyleMixin from './mixin/textStyle';\nimport { LineStyleMixin } from './mixin/lineStyle';\nimport { ItemStyleMixin } from './mixin/itemStyle';\nimport { mixin, clone, merge } from 'zrender/lib/core/util';\n\nvar Model =\n/** @class */\nfunction () {\n function Model(option, parentModel, ecModel) {\n this.parentModel = parentModel;\n this.ecModel = ecModel;\n this.option = option; // Simple optimization\n // if (this.init) {\n // if (arguments.length <= 4) {\n // this.init(option, parentModel, ecModel, extraOpt);\n // }\n // else {\n // this.init.apply(this, arguments);\n // }\n // }\n }\n\n Model.prototype.init = function (option, parentModel, ecModel) {\n var rest = [];\n\n for (var _i = 3; _i < arguments.length; _i++) {\n rest[_i - 3] = arguments[_i];\n }\n };\n /**\n * Merge the input option to me.\n */\n\n\n Model.prototype.mergeOption = function (option, ecModel) {\n merge(this.option, option, true);\n }; // `path` can be 'xxx.yyy.zzz', so the return value type have to be `ModelOption`\n // TODO: TYPE strict key check?\n // get(path: string | string[], ignoreParent?: boolean): ModelOption;\n\n\n Model.prototype.get = function (path, ignoreParent) {\n if (path == null) {\n return this.option;\n }\n\n return this._doGet(this.parsePath(path), !ignoreParent && this.parentModel);\n };\n\n Model.prototype.getShallow = function (key, ignoreParent) {\n var option = this.option;\n var val = option == null ? option : option[key];\n\n if (val == null && !ignoreParent) {\n var parentModel = this.parentModel;\n\n if (parentModel) {\n // FIXME:TS do not know how to make it works\n val = parentModel.getShallow(key);\n }\n }\n\n return val;\n }; // `path` can be 'xxx.yyy.zzz', so the return value type have to be `Model`\n // getModel(path: string | string[], parentModel?: Model): Model;\n // TODO 'xxx.yyy.zzz' is deprecated\n\n\n Model.prototype.getModel = function (path, parentModel) {\n var hasPath = path != null;\n var pathFinal = hasPath ? this.parsePath(path) : null;\n var obj = hasPath ? this._doGet(pathFinal) : this.option;\n parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal));\n return new Model(obj, parentModel, this.ecModel);\n };\n /**\n * Squash option stack into one.\n * parentModel will be removed after squashed.\n *\n * NOTE: resolveParentPath will not be applied here for simplicity. DON'T use this function\n * if resolveParentPath is modified.\n *\n * @param deepMerge If do deep merge. Default to be false.\n */\n // squash(\n // deepMerge?: boolean,\n // handleCallback?: (func: () => object) => object\n // ) {\n // const optionStack = [];\n // let model: Model = this;\n // while (model) {\n // if (model.option) {\n // optionStack.push(model.option);\n // }\n // model = model.parentModel;\n // }\n // const newOption = {} as Opt;\n // let option;\n // while (option = optionStack.pop()) { // Top down merge\n // if (isFunction(option) && handleCallback) {\n // option = handleCallback(option);\n // }\n // if (deepMerge) {\n // merge(newOption, option);\n // }\n // else {\n // extend(newOption, option);\n // }\n // }\n // // Remove parentModel\n // this.option = newOption;\n // this.parentModel = null;\n // }\n\n /**\n * If model has option\n */\n\n\n Model.prototype.isEmpty = function () {\n return this.option == null;\n };\n\n Model.prototype.restoreData = function () {}; // Pending\n\n\n Model.prototype.clone = function () {\n var Ctor = this.constructor;\n return new Ctor(clone(this.option));\n }; // setReadOnly(properties): void {\n // clazzUtil.setReadOnly(this, properties);\n // }\n // If path is null/undefined, return null/undefined.\n\n\n Model.prototype.parsePath = function (path) {\n if (typeof path === 'string') {\n return path.split('.');\n }\n\n return path;\n }; // Resolve path for parent. Perhaps useful when parent use a different property.\n // Default to be a identity resolver.\n // Can be modified to a different resolver.\n\n\n Model.prototype.resolveParentPath = function (path) {\n return path;\n }; // FIXME:TS check whether put this method here\n\n\n Model.prototype.isAnimationEnabled = function () {\n if (!env.node && this.option) {\n if (this.option.animation != null) {\n return !!this.option.animation;\n } else if (this.parentModel) {\n return this.parentModel.isAnimationEnabled();\n }\n }\n };\n\n Model.prototype._doGet = function (pathArr, parentModel) {\n var obj = this.option;\n\n if (!pathArr) {\n return obj;\n }\n\n for (var i = 0; i < pathArr.length; i++) {\n // Ignore empty\n if (!pathArr[i]) {\n continue;\n } // obj could be number/string/... (like 0)\n\n\n obj = obj && typeof obj === 'object' ? obj[pathArr[i]] : null;\n\n if (obj == null) {\n break;\n }\n }\n\n if (obj == null && parentModel) {\n obj = parentModel._doGet(this.resolveParentPath(pathArr), parentModel.parentModel);\n }\n\n return obj;\n };\n\n return Model;\n}();\n\n; // Enable Model.extend.\n\nenableClassExtend(Model);\nenableClassCheck(Model);\nmixin(Model, LineStyleMixin);\nmixin(Model, ItemStyleMixin);\nmixin(Model, AreaStyleMixin);\nmixin(Model, TextStyleMixin);\nexport default Model;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseClassType } from './clazz';\nimport { makePrintable } from './log'; // A random offset\n\nvar base = Math.round(Math.random() * 10);\n/**\n * @public\n * @param {string} type\n * @return {string}\n */\n\nexport function getUID(type) {\n // Considering the case of crossing js context,\n // use Math.random to make id as unique as possible.\n return [type || '', base++].join('_');\n}\n/**\n * Implements `SubTypeDefaulterManager` for `target`.\n */\n\nexport function enableSubTypeDefaulter(target) {\n var subTypeDefaulters = {};\n\n target.registerSubTypeDefaulter = function (componentType, defaulter) {\n var componentTypeInfo = parseClassType(componentType);\n subTypeDefaulters[componentTypeInfo.main] = defaulter;\n };\n\n target.determineSubType = function (componentType, option) {\n var type = option.type;\n\n if (!type) {\n var componentTypeMain = parseClassType(componentType).main;\n\n if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {\n type = subTypeDefaulters[componentTypeMain](option);\n }\n }\n\n return type;\n };\n}\n/**\n * Implements `TopologicalTravelable` for `entity`.\n *\n * Topological travel on Activity Network (Activity On Vertices).\n * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].\n * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.\n * If there is circular dependencey, Error will be thrown.\n */\n\nexport function enableTopologicalTravel(entity, dependencyGetter) {\n /**\n * @param targetNameList Target Component type list.\n * Can be ['aa', 'bb', 'aa.xx']\n * @param fullNameList By which we can build dependency graph.\n * @param callback Params: componentType, dependencies.\n * @param context Scope of callback.\n */\n entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) {\n if (!targetNameList.length) {\n return;\n }\n\n var result = makeDepndencyGraph(fullNameList);\n var graph = result.graph;\n var noEntryList = result.noEntryList;\n var targetNameSet = {};\n zrUtil.each(targetNameList, function (name) {\n targetNameSet[name] = true;\n });\n\n while (noEntryList.length) {\n var currComponentType = noEntryList.pop();\n var currVertex = graph[currComponentType];\n var isInTargetNameSet = !!targetNameSet[currComponentType];\n\n if (isInTargetNameSet) {\n callback.call(context, currComponentType, currVertex.originalDeps.slice());\n delete targetNameSet[currComponentType];\n }\n\n zrUtil.each(currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge);\n }\n\n zrUtil.each(targetNameSet, function () {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Circular dependency may exists: ', targetNameSet, targetNameList, fullNameList);\n }\n\n throw new Error(errMsg);\n });\n\n function removeEdge(succComponentType) {\n graph[succComponentType].entryCount--;\n\n if (graph[succComponentType].entryCount === 0) {\n noEntryList.push(succComponentType);\n }\n } // Consider this case: legend depends on series, and we call\n // chart.setOption({series: [...]}), where only series is in option.\n // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will\n // not be called, but only sereis.mergeOption is called. Thus legend\n // have no chance to update its local record about series (like which\n // name of series is available in legend).\n\n\n function removeEdgeAndAdd(succComponentType) {\n targetNameSet[succComponentType] = true;\n removeEdge(succComponentType);\n }\n };\n\n function makeDepndencyGraph(fullNameList) {\n var graph = {};\n var noEntryList = [];\n zrUtil.each(fullNameList, function (name) {\n var thisItem = createDependencyGraphItem(graph, name);\n var originalDeps = thisItem.originalDeps = dependencyGetter(name);\n var availableDeps = getAvailableDependencies(originalDeps, fullNameList);\n thisItem.entryCount = availableDeps.length;\n\n if (thisItem.entryCount === 0) {\n noEntryList.push(name);\n }\n\n zrUtil.each(availableDeps, function (dependentName) {\n if (zrUtil.indexOf(thisItem.predecessor, dependentName) < 0) {\n thisItem.predecessor.push(dependentName);\n }\n\n var thatItem = createDependencyGraphItem(graph, dependentName);\n\n if (zrUtil.indexOf(thatItem.successor, dependentName) < 0) {\n thatItem.successor.push(name);\n }\n });\n });\n return {\n graph: graph,\n noEntryList: noEntryList\n };\n }\n\n function createDependencyGraphItem(graph, name) {\n if (!graph[name]) {\n graph[name] = {\n predecessor: [],\n successor: []\n };\n }\n\n return graph[name];\n }\n\n function getAvailableDependencies(originalDeps, fullNameList) {\n var availableDeps = [];\n zrUtil.each(originalDeps, function (dep) {\n zrUtil.indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);\n });\n return availableDeps;\n }\n}\nexport function inheritDefaultOption(superOption, subOption) {\n // See also `model/Component.ts#getDefaultOption`\n return zrUtil.merge(zrUtil.merge({}, superOption, true), subOption, true);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Language: English.\n */\nexport default {\n time: {\n month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthAbbr: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayOfWeek: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayOfWeekAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n },\n legend: {\n selector: {\n all: 'All',\n inverse: 'Inv'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: 'Box Select',\n polygon: 'Lasso Select',\n lineX: 'Horizontally Select',\n lineY: 'Vertically Select',\n keep: 'Keep Selections',\n clear: 'Clear Selections'\n }\n },\n dataView: {\n title: 'Data View',\n lang: ['Data View', 'Close', 'Refresh']\n },\n dataZoom: {\n title: {\n zoom: 'Zoom',\n back: 'Zoom Reset'\n }\n },\n magicType: {\n title: {\n line: 'Switch to Line Chart',\n bar: 'Switch to Bar Chart',\n stack: 'Stack',\n tiled: 'Tile'\n }\n },\n restore: {\n title: 'Restore'\n },\n saveAsImage: {\n title: 'Save as Image',\n lang: ['Right Click to Save Image']\n }\n },\n series: {\n typeNames: {\n pie: 'Pie chart',\n bar: 'Bar chart',\n line: 'Line chart',\n scatter: 'Scatter plot',\n effectScatter: 'Ripple scatter plot',\n radar: 'Radar chart',\n tree: 'Tree',\n treemap: 'Treemap',\n boxplot: 'Boxplot',\n candlestick: 'Candlestick',\n k: 'K line chart',\n heatmap: 'Heat map',\n map: 'Map',\n parallel: 'Parallel coordinate map',\n lines: 'Line graph',\n graph: 'Relationship graph',\n sankey: 'Sankey diagram',\n funnel: 'Funnel chart',\n gauge: 'Gauge',\n pictorialBar: 'Pictorial bar',\n themeRiver: 'Theme River Map',\n sunburst: 'Sunburst'\n }\n },\n aria: {\n general: {\n withTitle: 'This is a chart about \"{title}\"',\n withoutTitle: 'This is a chart'\n },\n series: {\n single: {\n prefix: '',\n withName: ' with type {seriesType} named {seriesName}.',\n withoutName: ' with type {seriesType}.'\n },\n multiple: {\n prefix: '. It consists of {seriesCount} series count.',\n withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',\n withoutName: ' The {seriesId} series is a {seriesType}.',\n separator: {\n middle: '',\n end: ''\n }\n }\n },\n data: {\n allData: 'The data is as follows: ',\n partialData: 'The first {displayCnt} items are: ',\n withName: 'the data for {name} is {value}',\n withoutName: '{value}',\n separator: {\n middle: ', ',\n end: '. '\n }\n }\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nexport default {\n time: {\n month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],\n monthAbbr: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],\n dayOfWeek: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],\n dayOfWeekAbbr: ['日', '一', '二', '三', '四', '五', '六']\n },\n legend: {\n selector: {\n all: '全选',\n inverse: '反选'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: '矩形选择',\n polygon: '圈选',\n lineX: '横向选择',\n lineY: '纵向选择',\n keep: '保持选择',\n clear: '清除选择'\n }\n },\n dataView: {\n title: '数据视图',\n lang: ['数据视图', '关闭', '刷新']\n },\n dataZoom: {\n title: {\n zoom: '区域缩放',\n back: '区域缩放还原'\n }\n },\n magicType: {\n title: {\n line: '切换为折线图',\n bar: '切换为柱状图',\n stack: '切换为堆叠',\n tiled: '切换为平铺'\n }\n },\n restore: {\n title: '还原'\n },\n saveAsImage: {\n title: '保存为图片',\n lang: ['右键另存为图片']\n }\n },\n series: {\n typeNames: {\n pie: '饼图',\n bar: '柱状图',\n line: '折线图',\n scatter: '散点图',\n effectScatter: '涟漪散点图',\n radar: '雷达图',\n tree: '树图',\n treemap: '矩形树图',\n boxplot: '箱型图',\n candlestick: 'K线图',\n k: 'K线图',\n heatmap: '热力图',\n map: '地图',\n parallel: '平行坐标图',\n lines: '线图',\n graph: '关系图',\n sankey: '桑基图',\n funnel: '漏斗图',\n gauge: '仪表盘图',\n pictorialBar: '象形柱图',\n themeRiver: '主题河流图',\n sunburst: '旭日图'\n }\n },\n aria: {\n general: {\n withTitle: '这是一个关于“{title}”的图表。',\n withoutTitle: '这是一个图表,'\n },\n series: {\n single: {\n prefix: '',\n withName: '图表类型是{seriesType},表示{seriesName}。',\n withoutName: '图表类型是{seriesType}。'\n },\n multiple: {\n prefix: '它由{seriesCount}个图表系列组成。',\n withName: '第{seriesId}个系列是一个表示{seriesName}的{seriesType},',\n withoutName: '第{seriesId}个系列是一个{seriesType},',\n separator: {\n middle: ';',\n end: '。'\n }\n }\n },\n data: {\n allData: '其数据是——',\n partialData: '其中,前{displayCnt}项是——',\n withName: '{name}的数据是{value}',\n withoutName: '{value}',\n separator: {\n middle: ',',\n end: ''\n }\n }\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Model from '../model/Model';\nimport env from 'zrender/lib/core/env'; // default import ZH and EN lang\n\nimport langEN from '../i18n/langEN';\nimport langZH from '../i18n/langZH';\nimport { isString, clone, merge } from 'zrender/lib/core/util';\nvar LOCALE_ZH = 'ZH';\nvar LOCALE_EN = 'EN';\nvar DEFAULT_LOCALE = LOCALE_EN;\nvar localeStorage = {};\nvar localeModels = {};\nexport var SYSTEM_LANG = !env.domSupported ? DEFAULT_LOCALE : function () {\n var langStr = (\n /* eslint-disable-next-line */\n document.documentElement.lang || navigator.language || navigator.browserLanguage).toUpperCase();\n return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE;\n}();\nexport function registerLocale(locale, localeObj) {\n locale = locale.toUpperCase();\n localeModels[locale] = new Model(localeObj);\n localeStorage[locale] = localeObj;\n} // export function getLocale(locale: string) {\n// return localeStorage[locale];\n// }\n\nexport function createLocaleObject(locale) {\n if (isString(locale)) {\n var localeObj = localeStorage[locale.toUpperCase()] || {};\n\n if (locale === LOCALE_ZH || locale === LOCALE_EN) {\n return clone(localeObj);\n } else {\n return merge(clone(localeObj), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n } else {\n return merge(clone(locale), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n}\nexport function getLocaleModel(lang) {\n return localeModels[lang];\n}\nexport function getDefaultLocaleModel() {\n return localeModels[DEFAULT_LOCALE];\n} // Default locale\n\nregisterLocale(LOCALE_EN, langEN);\nregisterLocale(LOCALE_ZH, langZH);","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from './number';\nimport { getDefaultLocaleModel, getLocaleModel, SYSTEM_LANG } from '../core/locale';\nimport Model from '../model/Model';\nexport var ONE_SECOND = 1000;\nexport var ONE_MINUTE = ONE_SECOND * 60;\nexport var ONE_HOUR = ONE_MINUTE * 60;\nexport var ONE_DAY = ONE_HOUR * 24;\nexport var ONE_YEAR = ONE_DAY * 365;\nexport var defaultLeveledFormatter = {\n year: '{yyyy}',\n month: '{MMM}',\n day: '{d}',\n hour: '{HH}:{mm}',\n minute: '{HH}:{mm}',\n second: '{HH}:{mm}:{ss}',\n millisecond: '{hh}:{mm}:{ss} {SSS}',\n none: '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}'\n};\nvar fullDayFormatter = '{yyyy}-{MM}-{dd}';\nexport var fullLeveledFormatter = {\n year: '{yyyy}',\n month: '{yyyy}-{MM}',\n day: fullDayFormatter,\n hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour,\n minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute,\n second: fullDayFormatter + ' ' + defaultLeveledFormatter.second,\n millisecond: defaultLeveledFormatter.none\n};\nexport var primaryTimeUnits = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'];\nexport var timeUnits = ['year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day', 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond'];\nexport function pad(str, len) {\n str += '';\n return '0000'.substr(0, len - str.length) + str;\n}\nexport function getPrimaryTimeUnit(timeUnit) {\n switch (timeUnit) {\n case 'half-year':\n case 'quarter':\n return 'month';\n\n case 'week':\n case 'half-week':\n return 'day';\n\n case 'half-day':\n case 'quarter-day':\n return 'hour';\n\n default:\n // year, minutes, second, milliseconds\n return timeUnit;\n }\n}\nexport function isPrimaryTimeUnit(timeUnit) {\n return timeUnit === getPrimaryTimeUnit(timeUnit);\n}\nexport function getDefaultFormatPrecisionOfInterval(timeUnit) {\n switch (timeUnit) {\n case 'year':\n case 'month':\n return 'day';\n\n case 'millisecond':\n return 'millisecond';\n\n default:\n // Also for day, hour, minute, second\n return 'second';\n }\n}\nexport function format( // Note: The result based on `isUTC` are totally different, which can not be just simply\n// substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.\ntime, template, isUTC, lang) {\n var date = numberUtil.parseDate(time);\n var y = date[fullYearGetterName(isUTC)]();\n var M = date[monthGetterName(isUTC)]() + 1;\n var q = Math.floor((M - 1) / 4) + 1;\n var d = date[dateGetterName(isUTC)]();\n var e = date['get' + (isUTC ? 'UTC' : '') + 'Day']();\n var H = date[hoursGetterName(isUTC)]();\n var h = (H - 1) % 12 + 1;\n var m = date[minutesGetterName(isUTC)]();\n var s = date[secondsGetterName(isUTC)]();\n var S = date[millisecondsGetterName(isUTC)]();\n var localeModel = lang instanceof Model ? lang : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();\n var timeModel = localeModel.getModel('time');\n var month = timeModel.get('month');\n var monthAbbr = timeModel.get('monthAbbr');\n var dayOfWeek = timeModel.get('dayOfWeek');\n var dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');\n return (template || '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, y % 100 + '').replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + '');\n}\nexport function leveledFormat(tick, idx, formatter, lang, isUTC) {\n var template = null;\n\n if (typeof formatter === 'string') {\n // Single formatter for all units at all levels\n template = formatter;\n } else if (typeof formatter === 'function') {\n // Callback formatter\n template = formatter(tick.value, idx, {\n level: tick.level\n });\n } else {\n var defaults = zrUtil.extend({}, defaultLeveledFormatter);\n\n if (tick.level > 0) {\n for (var i = 0; i < primaryTimeUnits.length; ++i) {\n defaults[primaryTimeUnits[i]] = \"{primary|\" + defaults[primaryTimeUnits[i]] + \"}\";\n }\n }\n\n var mergedFormatter = formatter ? formatter.inherit === false ? formatter // Use formatter with bigger units\n : zrUtil.defaults(formatter, defaults) : defaults;\n var unit = getUnitFromValue(tick.value, isUTC);\n\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n } else if (mergedFormatter.inherit) {\n // Unit formatter is not defined and should inherit from bigger units\n var targetId = timeUnits.indexOf(unit);\n\n for (var i = targetId - 1; i >= 0; --i) {\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n break;\n }\n }\n\n template = template || defaults.none;\n }\n\n if (zrUtil.isArray(template)) {\n var levelId = tick.level == null ? 0 : tick.level >= 0 ? tick.level : template.length + tick.level;\n levelId = Math.min(levelId, template.length - 1);\n template = template[levelId];\n }\n }\n\n return format(new Date(tick.value), template, isUTC, lang);\n}\nexport function getUnitFromValue(value, isUTC) {\n var date = numberUtil.parseDate(value);\n var M = date[monthGetterName(isUTC)]() + 1;\n var d = date[dateGetterName(isUTC)]();\n var h = date[hoursGetterName(isUTC)]();\n var m = date[minutesGetterName(isUTC)]();\n var s = date[secondsGetterName(isUTC)]();\n var S = date[millisecondsGetterName(isUTC)]();\n var isSecond = S === 0;\n var isMinute = isSecond && s === 0;\n var isHour = isMinute && m === 0;\n var isDay = isHour && h === 0;\n var isMonth = isDay && d === 1;\n var isYear = isMonth && M === 1;\n\n if (isYear) {\n return 'year';\n } else if (isMonth) {\n return 'month';\n } else if (isDay) {\n return 'day';\n } else if (isHour) {\n return 'hour';\n } else if (isMinute) {\n return 'minute';\n } else if (isSecond) {\n return 'second';\n } else {\n return 'millisecond';\n }\n}\nexport function getUnitValue(value, unit, isUTC) {\n var date = typeof value === 'number' ? numberUtil.parseDate(value) : value;\n unit = unit || getUnitFromValue(value, isUTC);\n\n switch (unit) {\n case 'year':\n return date[fullYearGetterName(isUTC)]();\n\n case 'half-year':\n return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;\n\n case 'quarter':\n return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);\n\n case 'month':\n return date[monthGetterName(isUTC)]();\n\n case 'day':\n return date[dateGetterName(isUTC)]();\n\n case 'half-day':\n return date[hoursGetterName(isUTC)]() / 24;\n\n case 'hour':\n return date[hoursGetterName(isUTC)]();\n\n case 'minute':\n return date[minutesGetterName(isUTC)]();\n\n case 'second':\n return date[secondsGetterName(isUTC)]();\n\n case 'millisecond':\n return date[millisecondsGetterName(isUTC)]();\n }\n}\nexport function fullYearGetterName(isUTC) {\n return isUTC ? 'getUTCFullYear' : 'getFullYear';\n}\nexport function monthGetterName(isUTC) {\n return isUTC ? 'getUTCMonth' : 'getMonth';\n}\nexport function dateGetterName(isUTC) {\n return isUTC ? 'getUTCDate' : 'getDate';\n}\nexport function hoursGetterName(isUTC) {\n return isUTC ? 'getUTCHours' : 'getHours';\n}\nexport function minutesGetterName(isUTC) {\n return isUTC ? 'getUTCMinutes' : 'getMinutes';\n}\nexport function secondsGetterName(isUTC) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\nexport function millisecondsGetterName(isUTC) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\nexport function fullYearSetterName(isUTC) {\n return isUTC ? 'setUTCFullYear' : 'setFullYear';\n}\nexport function monthSetterName(isUTC) {\n return isUTC ? 'setUTCMonth' : 'setMonth';\n}\nexport function dateSetterName(isUTC) {\n return isUTC ? 'setUTCDate' : 'setDate';\n}\nexport function hoursSetterName(isUTC) {\n return isUTC ? 'setUTCHours' : 'setHours';\n}\nexport function minutesSetterName(isUTC) {\n return isUTC ? 'setUTCMinutes' : 'setMinutes';\n}\nexport function secondsSetterName(isUTC) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}\nexport function millisecondsSetterName(isUTC) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Text } from '../util/graphic';\nimport { deprecateLog } from '../util/log';\nexport function getTextRect(text, font, align, verticalAlign, padding, rich, truncate, lineHeight) {\n deprecateLog('getTextRect is deprecated.');\n var textEl = new Text({\n style: {\n text: text,\n font: font,\n align: align,\n verticalAlign: verticalAlign,\n padding: padding,\n rich: rich,\n overflow: truncate ? 'truncate' : null,\n lineHeight: lineHeight\n }\n });\n return textEl.getBoundingRect();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseDate, isNumeric, numericToNumber } from './number';\nimport { format as timeFormat, pad } from './time';\nimport { deprecateReplaceLog } from './log';\n/**\n * Add a comma each three digit.\n */\n\nexport function addCommas(x) {\n if (!isNumeric(x)) {\n return zrUtil.isString(x) ? x : '-';\n }\n\n var parts = (x + '').split('.');\n return parts[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, '$1,') + (parts.length > 1 ? '.' + parts[1] : '');\n}\nexport function toCamelCase(str, upperCaseFirst) {\n str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {\n return group1.toUpperCase();\n });\n\n if (upperCaseFirst && str) {\n str = str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n return str;\n}\nexport var normalizeCssArray = zrUtil.normalizeCssArray;\nvar replaceReg = /([&<>\"'])/g;\nvar replaceMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n};\nexport function encodeHTML(source) {\n return source == null ? '' : (source + '').replace(replaceReg, function (str, c) {\n return replaceMap[c];\n });\n}\n/**\n * Make value user readable for tooltip and label.\n * \"User readable\":\n * Try to not print programmer-specific text like NaN, Infinity, null, undefined.\n * Avoid to display an empty string, which users can not recognize there is\n * a value and it might look like a bug.\n */\n\nexport function makeValueReadable(value, valueType, useUTC) {\n var USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';\n\n function stringToUserReadable(str) {\n return str && zrUtil.trim(str) ? str : '-';\n }\n\n function isNumberUserReadable(num) {\n return !!(num != null && !isNaN(num) && isFinite(num));\n }\n\n var isTypeTime = valueType === 'time';\n var isValueDate = value instanceof Date;\n\n if (isTypeTime || isValueDate) {\n var date = isTypeTime ? parseDate(value) : value;\n\n if (!isNaN(+date)) {\n return timeFormat(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);\n } else if (isValueDate) {\n return '-';\n } // In other cases, continue to try to display the value in the following code.\n\n }\n\n if (valueType === 'ordinal') {\n return zrUtil.isStringSafe(value) ? stringToUserReadable(value) : zrUtil.isNumber(value) ? isNumberUserReadable(value) ? value + '' : '-' : '-';\n } // By default.\n\n\n var numericResult = numericToNumber(value);\n return isNumberUserReadable(numericResult) ? addCommas(numericResult) : zrUtil.isStringSafe(value) ? stringToUserReadable(value) : '-';\n}\nvar TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];\n\nvar wrapVar = function (varName, seriesIdx) {\n return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';\n};\n/**\n * Template formatter\n * @param {Array.|Object} paramsList\n */\n\n\nexport function formatTpl(tpl, paramsList, encode) {\n if (!zrUtil.isArray(paramsList)) {\n paramsList = [paramsList];\n }\n\n var seriesLen = paramsList.length;\n\n if (!seriesLen) {\n return '';\n }\n\n var $vars = paramsList[0].$vars || [];\n\n for (var i = 0; i < $vars.length; i++) {\n var alias = TPL_VAR_ALIAS[i];\n tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));\n }\n\n for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {\n for (var k = 0; k < $vars.length; k++) {\n var val = paramsList[seriesIdx][$vars[k]];\n tpl = tpl.replace(wrapVar(TPL_VAR_ALIAS[k], seriesIdx), encode ? encodeHTML(val) : val);\n }\n }\n\n return tpl;\n}\n/**\n * simple Template formatter\n */\n\nexport function formatTplSimple(tpl, param, encode) {\n zrUtil.each(param, function (value, key) {\n tpl = tpl.replace('{' + key + '}', encode ? encodeHTML(value) : value);\n });\n return tpl;\n}\nexport function getTooltipMarker(inOpt, extraCssText) {\n var opt = zrUtil.isString(inOpt) ? {\n color: inOpt,\n extraCssText: extraCssText\n } : inOpt || {};\n var color = opt.color;\n var type = opt.type;\n extraCssText = opt.extraCssText;\n var renderMode = opt.renderMode || 'html';\n\n if (!color) {\n return '';\n }\n\n if (renderMode === 'html') {\n return type === 'subItem' ? '' : '';\n } else {\n // Should better not to auto generate style name by auto-increment number here.\n // Because this util is usually called in tooltip formatter, which is probably\n // called repeatly when mouse move and the auto-increment number increases fast.\n // Users can make their own style name by theirselves, make it unique and readable.\n var markerId = opt.markerId || 'markerX';\n return {\n renderMode: renderMode,\n content: '{' + markerId + '|} ',\n style: type === 'subItem' ? {\n width: 4,\n height: 4,\n borderRadius: 2,\n backgroundColor: color\n } : {\n width: 10,\n height: 10,\n borderRadius: 5,\n backgroundColor: color\n }\n };\n }\n}\n/**\n * @deprecated Use `time/format` instead.\n * ISO Date format\n * @param {string} tpl\n * @param {number} value\n * @param {boolean} [isUTC=false] Default in local time.\n * see `module:echarts/scale/Time`\n * and `module:echarts/util/number#parseDate`.\n * @inner\n */\n\nexport function formatTime(tpl, value, isUTC) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('echarts.format.formatTime', 'echarts.time.format');\n }\n\n if (tpl === 'week' || tpl === 'month' || tpl === 'quarter' || tpl === 'half-year' || tpl === 'year') {\n tpl = 'MM-dd\\nyyyy';\n }\n\n var date = parseDate(value);\n var utc = isUTC ? 'UTC' : '';\n var y = date['get' + utc + 'FullYear']();\n var M = date['get' + utc + 'Month']() + 1;\n var d = date['get' + utc + 'Date']();\n var h = date['get' + utc + 'Hours']();\n var m = date['get' + utc + 'Minutes']();\n var s = date['get' + utc + 'Seconds']();\n var S = date['get' + utc + 'Milliseconds']();\n tpl = tpl.replace('MM', pad(M, 2)).replace('M', M).replace('yyyy', y).replace('yy', y % 100 + '').replace('dd', pad(d, 2)).replace('d', d).replace('hh', pad(h, 2)).replace('h', h).replace('mm', pad(m, 2)).replace('m', m).replace('ss', pad(s, 2)).replace('s', s).replace('SSS', pad(S, 3));\n return tpl;\n}\n/**\n * Capital first\n * @param {string} str\n * @return {string}\n */\n\nexport function capitalFirst(str) {\n return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;\n}\n/**\n * @return Never be null/undefined.\n */\n\nexport function convertToColorString(color, defaultColor) {\n defaultColor = defaultColor || 'transparent';\n return zrUtil.isString(color) ? color : zrUtil.isObject(color) ? color.colorStops && (color.colorStops[0] || {}).color || defaultColor : defaultColor;\n}\nexport { truncateText } from 'zrender/lib/graphic/helper/parseText';\n/**\n * open new tab\n * @param link url\n * @param target blank or self\n */\n\nexport function windowOpen(link, target) {\n /* global window */\n if (target === '_blank' || target === 'blank') {\n var blank = window.open();\n blank.opener = null;\n blank.location.href = link;\n } else {\n window.open(link, target);\n }\n}\nexport { getTextRect } from '../legacy/getTextRect';","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Layout helpers for each component positioning\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parsePercent } from './number';\nimport * as formatUtil from './format';\nvar each = zrUtil.each;\n/**\n * @public\n */\n\nexport var LOCATION_PARAMS = ['left', 'right', 'top', 'bottom', 'width', 'height'];\n/**\n * @public\n */\n\nexport var HV_NAMES = [['width', 'left', 'right'], ['height', 'top', 'bottom']];\n\nfunction boxLayout(orient, group, gap, maxWidth, maxHeight) {\n var x = 0;\n var y = 0;\n\n if (maxWidth == null) {\n maxWidth = Infinity;\n }\n\n if (maxHeight == null) {\n maxHeight = Infinity;\n }\n\n var currentLineMaxSize = 0;\n group.eachChild(function (child, idx) {\n var rect = child.getBoundingRect();\n var nextChild = group.childAt(idx + 1);\n var nextChildRect = nextChild && nextChild.getBoundingRect();\n var nextX;\n var nextY;\n\n if (orient === 'horizontal') {\n var moveX = rect.width + (nextChildRect ? -nextChildRect.x + rect.x : 0);\n nextX = x + moveX; // Wrap when width exceeds maxWidth or meet a `newline` group\n // FIXME compare before adding gap?\n\n if (nextX > maxWidth || child.newline) {\n x = 0;\n nextX = moveX;\n y += currentLineMaxSize + gap;\n currentLineMaxSize = rect.height;\n } else {\n // FIXME: consider rect.y is not `0`?\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);\n }\n } else {\n var moveY = rect.height + (nextChildRect ? -nextChildRect.y + rect.y : 0);\n nextY = y + moveY; // Wrap when width exceeds maxHeight or meet a `newline` group\n\n if (nextY > maxHeight || child.newline) {\n x += currentLineMaxSize + gap;\n y = 0;\n nextY = moveY;\n currentLineMaxSize = rect.width;\n } else {\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);\n }\n }\n\n if (child.newline) {\n return;\n }\n\n child.x = x;\n child.y = y;\n child.markRedraw();\n orient === 'horizontal' ? x = nextX + gap : y = nextY + gap;\n });\n}\n/**\n * VBox or HBox layouting\n * @param {string} orient\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\n\nexport var box = boxLayout;\n/**\n * VBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\nexport var vbox = zrUtil.curry(boxLayout, 'vertical');\n/**\n * HBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\nexport var hbox = zrUtil.curry(boxLayout, 'horizontal');\n/**\n * If x or x2 is not specified or 'center' 'left' 'right',\n * the width would be as long as possible.\n * If y or y2 is not specified or 'middle' 'top' 'bottom',\n * the height would be as long as possible.\n */\n\nexport function getAvailableSize(positionInfo, containerRect, margin) {\n var containerWidth = containerRect.width;\n var containerHeight = containerRect.height;\n var x = parsePercent(positionInfo.left, containerWidth);\n var y = parsePercent(positionInfo.top, containerHeight);\n var x2 = parsePercent(positionInfo.right, containerWidth);\n var y2 = parsePercent(positionInfo.bottom, containerHeight);\n (isNaN(x) || isNaN(parseFloat(positionInfo.left))) && (x = 0);\n (isNaN(x2) || isNaN(parseFloat(positionInfo.right))) && (x2 = containerWidth);\n (isNaN(y) || isNaN(parseFloat(positionInfo.top))) && (y = 0);\n (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom))) && (y2 = containerHeight);\n margin = formatUtil.normalizeCssArray(margin || 0);\n return {\n width: Math.max(x2 - x - margin[1] - margin[3], 0),\n height: Math.max(y2 - y - margin[0] - margin[2], 0)\n };\n}\n/**\n * Parse position info.\n */\n\nexport function getLayoutRect(positionInfo, containerRect, margin) {\n margin = formatUtil.normalizeCssArray(margin || 0);\n var containerWidth = containerRect.width;\n var containerHeight = containerRect.height;\n var left = parsePercent(positionInfo.left, containerWidth);\n var top = parsePercent(positionInfo.top, containerHeight);\n var right = parsePercent(positionInfo.right, containerWidth);\n var bottom = parsePercent(positionInfo.bottom, containerHeight);\n var width = parsePercent(positionInfo.width, containerWidth);\n var height = parsePercent(positionInfo.height, containerHeight);\n var verticalMargin = margin[2] + margin[0];\n var horizontalMargin = margin[1] + margin[3];\n var aspect = positionInfo.aspect; // If width is not specified, calculate width from left and right\n\n if (isNaN(width)) {\n width = containerWidth - right - horizontalMargin - left;\n }\n\n if (isNaN(height)) {\n height = containerHeight - bottom - verticalMargin - top;\n }\n\n if (aspect != null) {\n // If width and height are not given\n // 1. Graph should not exceeds the container\n // 2. Aspect must be keeped\n // 3. Graph should take the space as more as possible\n // FIXME\n // Margin is not considered, because there is no case that both\n // using margin and aspect so far.\n if (isNaN(width) && isNaN(height)) {\n if (aspect > containerWidth / containerHeight) {\n width = containerWidth * 0.8;\n } else {\n height = containerHeight * 0.8;\n }\n } // Calculate width or height with given aspect\n\n\n if (isNaN(width)) {\n width = aspect * height;\n }\n\n if (isNaN(height)) {\n height = width / aspect;\n }\n } // If left is not specified, calculate left from right and width\n\n\n if (isNaN(left)) {\n left = containerWidth - right - width - horizontalMargin;\n }\n\n if (isNaN(top)) {\n top = containerHeight - bottom - height - verticalMargin;\n } // Align left and top\n\n\n switch (positionInfo.left || positionInfo.right) {\n case 'center':\n left = containerWidth / 2 - width / 2 - margin[3];\n break;\n\n case 'right':\n left = containerWidth - width - horizontalMargin;\n break;\n }\n\n switch (positionInfo.top || positionInfo.bottom) {\n case 'middle':\n case 'center':\n top = containerHeight / 2 - height / 2 - margin[0];\n break;\n\n case 'bottom':\n top = containerHeight - height - verticalMargin;\n break;\n } // If something is wrong and left, top, width, height are calculated as NaN\n\n\n left = left || 0;\n top = top || 0;\n\n if (isNaN(width)) {\n // Width may be NaN if only one value is given except width\n width = containerWidth - horizontalMargin - left - (right || 0);\n }\n\n if (isNaN(height)) {\n // Height may be NaN if only one value is given except height\n height = containerHeight - verticalMargin - top - (bottom || 0);\n }\n\n var rect = new BoundingRect(left + margin[3], top + margin[0], width, height);\n rect.margin = margin;\n return rect;\n}\n/**\n * Position a zr element in viewport\n * Group position is specified by either\n * {left, top}, {right, bottom}\n * If all properties exists, right and bottom will be igonred.\n *\n * Logic:\n * 1. Scale (against origin point in parent coord)\n * 2. Rotate (against origin point in parent coord)\n * 3. Traslate (with el.position by this method)\n * So this method only fixes the last step 'Traslate', which does not affect\n * scaling and rotating.\n *\n * If be called repeatly with the same input el, the same result will be gotten.\n *\n * @param el Should have `getBoundingRect` method.\n * @param positionInfo\n * @param positionInfo.left\n * @param positionInfo.top\n * @param positionInfo.right\n * @param positionInfo.bottom\n * @param positionInfo.width Only for opt.boundingModel: 'raw'\n * @param positionInfo.height Only for opt.boundingModel: 'raw'\n * @param containerRect\n * @param margin\n * @param opt\n * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]\n * @param opt.boundingMode\n * Specify how to calculate boundingRect when locating.\n * 'all': Position the boundingRect that is transformed and uioned\n * both itself and its descendants.\n * This mode simplies confine the elements in the bounding\n * of their container (e.g., using 'right: 0').\n * 'raw': Position the boundingRect that is not transformed and only itself.\n * This mode is useful when you want a element can overflow its\n * container. (Consider a rotated circle needs to be located in a corner.)\n * In this mode positionInfo.width/height can only be number.\n */\n\nexport function positionElement(el, positionInfo, containerRect, margin, opt) {\n var h = !opt || !opt.hv || opt.hv[0];\n var v = !opt || !opt.hv || opt.hv[1];\n var boundingMode = opt && opt.boundingMode || 'all';\n\n if (!h && !v) {\n return;\n }\n\n var rect;\n\n if (boundingMode === 'raw') {\n rect = el.type === 'group' ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0) : el.getBoundingRect();\n } else {\n rect = el.getBoundingRect();\n\n if (el.needLocalTransform()) {\n var transform = el.getLocalTransform(); // Notice: raw rect may be inner object of el,\n // which should not be modified.\n\n rect = rect.clone();\n rect.applyTransform(transform);\n }\n } // The real width and height can not be specified but calculated by the given el.\n\n\n var layoutRect = getLayoutRect(zrUtil.defaults({\n width: rect.width,\n height: rect.height\n }, positionInfo), containerRect, margin); // Because 'tranlate' is the last step in transform\n // (see zrender/core/Transformable#getLocalTransform),\n // we can just only modify el.position to get final result.\n\n var dx = h ? layoutRect.x - rect.x : 0;\n var dy = v ? layoutRect.y - rect.y : 0;\n\n if (boundingMode === 'raw') {\n el.x = dx;\n el.y = dy;\n } else {\n el.x += dx;\n el.y += dy;\n }\n\n el.markRedraw();\n}\n/**\n * @param option Contains some of the properties in HV_NAMES.\n * @param hvIdx 0: horizontal; 1: vertical.\n */\n\nexport function sizeCalculable(option, hvIdx) {\n return option[HV_NAMES[hvIdx][0]] != null || option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null;\n}\nexport function fetchLayoutMode(ins) {\n var layoutMode = ins.layoutMode || ins.constructor.layoutMode;\n return zrUtil.isObject(layoutMode) ? layoutMode : layoutMode ? {\n type: layoutMode\n } : null;\n}\n/**\n * Consider Case:\n * When default option has {left: 0, width: 100}, and we set {right: 0}\n * through setOption or media query, using normal zrUtil.merge will cause\n * {right: 0} does not take effect.\n *\n * @example\n * ComponentModel.extend({\n * init: function () {\n * ...\n * let inputPositionParams = layout.getLayoutParams(option);\n * this.mergeOption(inputPositionParams);\n * },\n * mergeOption: function (newOption) {\n * newOption && zrUtil.merge(thisOption, newOption, true);\n * layout.mergeLayoutParam(thisOption, newOption);\n * }\n * });\n *\n * @param targetOption\n * @param newOption\n * @param opt\n */\n\nexport function mergeLayoutParam(targetOption, newOption, opt) {\n var ignoreSize = opt && opt.ignoreSize;\n !zrUtil.isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);\n var hResult = merge(HV_NAMES[0], 0);\n var vResult = merge(HV_NAMES[1], 1);\n copy(HV_NAMES[0], targetOption, hResult);\n copy(HV_NAMES[1], targetOption, vResult);\n\n function merge(names, hvIdx) {\n var newParams = {};\n var newValueCount = 0;\n var merged = {};\n var mergedValueCount = 0;\n var enoughParamNumber = 2;\n each(names, function (name) {\n merged[name] = targetOption[name];\n });\n each(names, function (name) {\n // Consider case: newOption.width is null, which is\n // set by user for removing width setting.\n hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);\n hasValue(newParams, name) && newValueCount++;\n hasValue(merged, name) && mergedValueCount++;\n });\n\n if (ignoreSize[hvIdx]) {\n // Only one of left/right is premitted to exist.\n if (hasValue(newOption, names[1])) {\n merged[names[2]] = null;\n } else if (hasValue(newOption, names[2])) {\n merged[names[1]] = null;\n }\n\n return merged;\n } // Case: newOption: {width: ..., right: ...},\n // or targetOption: {right: ...} and newOption: {width: ...},\n // There is no conflict when merged only has params count\n // little than enoughParamNumber.\n\n\n if (mergedValueCount === enoughParamNumber || !newValueCount) {\n return merged;\n } // Case: newOption: {width: ..., right: ...},\n // Than we can make sure user only want those two, and ignore\n // all origin params in targetOption.\n else if (newValueCount >= enoughParamNumber) {\n return newParams;\n } else {\n // Chose another param from targetOption by priority.\n for (var i = 0; i < names.length; i++) {\n var name_1 = names[i];\n\n if (!hasProp(newParams, name_1) && hasProp(targetOption, name_1)) {\n newParams[name_1] = targetOption[name_1];\n break;\n }\n }\n\n return newParams;\n }\n }\n\n function hasProp(obj, name) {\n return obj.hasOwnProperty(name);\n }\n\n function hasValue(obj, name) {\n return obj[name] != null && obj[name] !== 'auto';\n }\n\n function copy(names, target, source) {\n each(names, function (name) {\n target[name] = source[name];\n });\n }\n}\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n */\n\nexport function getLayoutParams(source) {\n return copyLayoutParams({}, source);\n}\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n * @param {Object} source\n * @return {Object} Result contains those props.\n */\n\nexport function copyLayoutParams(target, source) {\n source && target && each(LOCATION_PARAMS, function (name) {\n source.hasOwnProperty(name) && (target[name] = source[name]);\n });\n return target;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from './Model';\nimport * as componentUtil from '../util/component';\nimport { enableClassManagement, parseClassType, isExtendedClass, mountExtend } from '../util/clazz';\nimport { makeInner, queryReferringComponents } from '../util/model';\nimport * as layout from '../util/layout';\nvar inner = makeInner();\n\nvar ComponentModel =\n/** @class */\nfunction (_super) {\n __extends(ComponentModel, _super);\n\n function ComponentModel(option, parentModel, ecModel) {\n var _this = _super.call(this, option, parentModel, ecModel) || this;\n\n _this.uid = componentUtil.getUID('ec_cpt_model');\n return _this;\n }\n\n ComponentModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n };\n\n ComponentModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = layout.fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? layout.getLayoutParams(option) : {};\n var themeModel = ecModel.getTheme();\n zrUtil.merge(option, themeModel.get(this.mainType));\n zrUtil.merge(option, this.getDefaultOption());\n\n if (layoutMode) {\n layout.mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n ComponentModel.prototype.mergeOption = function (option, ecModel) {\n zrUtil.merge(this.option, option, true);\n var layoutMode = layout.fetchLayoutMode(this);\n\n if (layoutMode) {\n layout.mergeLayoutParam(this.option, option, layoutMode);\n }\n };\n /**\n * Called immediately after `init` or `mergeOption` of this instance called.\n */\n\n\n ComponentModel.prototype.optionUpdated = function (newCptOption, isInit) {};\n /**\n * [How to declare defaultOption]:\n *\n * (A) If using class declaration in typescript (since echarts 5):\n * ```ts\n * import {ComponentOption} from '../model/option';\n * export interface XxxOption extends ComponentOption {\n * aaa: number\n * }\n * export class XxxModel extends Component {\n * static type = 'xxx';\n * static defaultOption: XxxOption = {\n * aaa: 123\n * }\n * }\n * Component.registerClass(XxxModel);\n * ```\n * ```ts\n * import {inheritDefaultOption} from '../util/component';\n * import {XxxModel, XxxOption} from './XxxModel';\n * export interface XxxSubOption extends XxxOption {\n * bbb: number\n * }\n * class XxxSubModel extends XxxModel {\n * static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {\n * bbb: 456\n * })\n * fn() {\n * let opt = this.getDefaultOption();\n * // opt is {aaa: 123, bbb: 456}\n * }\n * }\n * ```\n *\n * (B) If using class extend (previous approach in echarts 3 & 4):\n * ```js\n * let XxxComponent = Component.extend({\n * defaultOption: {\n * xx: 123\n * }\n * })\n * ```\n * ```js\n * let XxxSubComponent = XxxComponent.extend({\n * defaultOption: {\n * yy: 456\n * },\n * fn: function () {\n * let opt = this.getDefaultOption();\n * // opt is {xx: 123, yy: 456}\n * }\n * })\n * ```\n */\n\n\n ComponentModel.prototype.getDefaultOption = function () {\n var ctor = this.constructor; // If using class declaration, it is different to travel super class\n // in legacy env and auto merge defaultOption. So if using class\n // declaration, defaultOption should be merged manually.\n\n if (!isExtendedClass(ctor)) {\n // When using ts class, defaultOption must be declared as static.\n return ctor.defaultOption;\n } // FIXME: remove this approach?\n\n\n var fields = inner(this);\n\n if (!fields.defaultOption) {\n var optList = [];\n var clz = ctor;\n\n while (clz) {\n var opt = clz.prototype.defaultOption;\n opt && optList.push(opt);\n clz = clz.superClass;\n }\n\n var defaultOption = {};\n\n for (var i = optList.length - 1; i >= 0; i--) {\n defaultOption = zrUtil.merge(defaultOption, optList[i], true);\n }\n\n fields.defaultOption = defaultOption;\n }\n\n return fields.defaultOption;\n };\n /**\n * Notice: always force to input param `useDefault` in case that forget to consider it.\n * The same behavior as `modelUtil.parseFinder`.\n *\n * @param useDefault In many cases like series refer axis and axis refer grid,\n * If axis index / axis id not specified, use the first target as default.\n * In other cases like dataZoom refer axis, if not specified, measn no refer.\n */\n\n\n ComponentModel.prototype.getReferringComponents = function (mainType, opt) {\n var indexKey = mainType + 'Index';\n var idKey = mainType + 'Id';\n return queryReferringComponents(this.ecModel, mainType, {\n index: this.get(indexKey, true),\n id: this.get(idKey, true)\n }, opt);\n };\n\n ComponentModel.prototype.getBoxLayoutParams = function () {\n // Consider itself having box layout configs.\n var boxLayoutModel = this;\n return {\n left: boxLayoutModel.get('left'),\n top: boxLayoutModel.get('top'),\n right: boxLayoutModel.get('right'),\n bottom: boxLayoutModel.get('bottom'),\n width: boxLayoutModel.get('width'),\n height: boxLayoutModel.get('height')\n };\n };\n\n ComponentModel.protoInitialize = function () {\n var proto = ComponentModel.prototype;\n proto.type = 'component';\n proto.id = '';\n proto.name = '';\n proto.mainType = '';\n proto.subType = '';\n proto.componentIndex = 0;\n }();\n\n return ComponentModel;\n}(Model);\n\nmountExtend(ComponentModel, Model);\nenableClassManagement(ComponentModel);\ncomponentUtil.enableSubTypeDefaulter(ComponentModel);\ncomponentUtil.enableTopologicalTravel(ComponentModel, getDependencies);\n\nfunction getDependencies(componentType) {\n var deps = [];\n zrUtil.each(ComponentModel.getClassesByMainType(componentType), function (clz) {\n deps = deps.concat(clz.dependencies || clz.prototype.dependencies || []);\n }); // Ensure main type.\n\n deps = zrUtil.map(deps, function (type) {\n return parseClassType(type).main;\n }); // Hack dataset for convenience.\n\n if (componentType !== 'dataset' && zrUtil.indexOf(deps, 'dataset') <= 0) {\n deps.unshift('dataset');\n }\n\n return deps;\n}\n\nexport default ComponentModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar platform = ''; // Navigator not exists in node\n\nif (typeof navigator !== 'undefined') {\n /* global navigator */\n platform = navigator.platform || '';\n}\n\nvar decalColor = 'rgba(0, 0, 0, 0.2)';\nexport default {\n darkMode: 'auto',\n // backgroundColor: 'rgba(0,0,0,0)',\n // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization\n // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c', '#dd4444', '#d4df5a', '#cd4870'],\n // Light colors:\n // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'],\n // color: ['#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'],\n // Dark colors:\n // color: [\n // '#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83',\n // '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'\n // ],\n color: [// '#51689b', '#ce5c5c', '#fbc357', '#8fbf8f', '#659d84', '#fb8e6a', '#c77288', '#786090', '#91c4c5', '#6890ba'\n '#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],\n gradientColor: ['#f6efa6', '#d88273', '#bf444c'],\n aria: {\n decal: {\n decals: [{\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [2, 5],\n symbolSize: 1,\n rotation: Math.PI / 6\n }, {\n color: decalColor,\n symbol: 'circle',\n dashArrayX: [[8, 8], [0, 8, 8, 0]],\n dashArrayY: [6, 0],\n symbolSize: 0.8\n }, {\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [4, 3],\n rotation: -Math.PI / 4\n }, {\n color: decalColor,\n dashArrayX: [[6, 6], [0, 6, 6, 0]],\n dashArrayY: [6, 0]\n }, {\n color: decalColor,\n dashArrayX: [[1, 0], [1, 6]],\n dashArrayY: [1, 0, 6, 0],\n rotation: Math.PI / 4\n }, {\n color: decalColor,\n symbol: 'triangle',\n dashArrayX: [[9, 9], [0, 9, 9, 0]],\n dashArrayY: [7, 2],\n symbolSize: 0.75\n }]\n }\n },\n // If xAxis and yAxis declared, grid is created by default.\n // grid: {},\n textStyle: {\n // color: '#000',\n // decoration: 'none',\n // PENDING\n fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',\n // fontFamily: 'Arial, Verdana, sans-serif',\n fontSize: 12,\n fontStyle: 'normal',\n fontWeight: 'normal'\n },\n // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/\n // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n // Default is source-over\n blendMode: null,\n stateAnimation: {\n duration: 300,\n easing: 'cubicOut'\n },\n animation: 'auto',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut',\n animationEasingUpdate: 'cubicInOut',\n animationThreshold: 2000,\n // Configuration for progressive/incremental rendering\n progressiveThreshold: 3000,\n progressive: 400,\n // Threshold of if use single hover layer to optimize.\n // It is recommended that `hoverLayerThreshold` is equivalent to or less than\n // `progressiveThreshold`, otherwise hover will cause restart of progressive,\n // which is unexpected.\n // see example .\n hoverLayerThreshold: 3000,\n // See: module:echarts/scale/Time\n useUTC: false\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util';\n;\n;\n;\nexport var VISUAL_DIMENSIONS = createHashMap(['tooltip', 'label', 'itemName', 'itemId', 'seriesName']);\nexport var SOURCE_FORMAT_ORIGINAL = 'original';\nexport var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows';\nexport var SOURCE_FORMAT_OBJECT_ROWS = 'objectRows';\nexport var SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns';\nexport var SOURCE_FORMAT_TYPED_ARRAY = 'typedArray';\nexport var SOURCE_FORMAT_UNKNOWN = 'unknown';\nexport var SERIES_LAYOUT_BY_COLUMN = 'column';\nexport var SERIES_LAYOUT_BY_ROW = 'row';\n;\n;\n;\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner, getDataItemValue, queryReferringComponents, SINGLE_REFERRING } from '../../util/model';\nimport { createHashMap, each, isArray, isString, isObject, isTypedArray } from 'zrender/lib/core/util';\nimport { SOURCE_FORMAT_ORIGINAL, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, SERIES_LAYOUT_BY_ROW, SOURCE_FORMAT_KEYED_COLUMNS } from '../../util/types'; // The result of `guessOrdinal`.\n\nexport var BE_ORDINAL = {\n Must: 1,\n Might: 2,\n Not: 3 // Other cases\n\n};\nvar innerGlobalModel = makeInner();\n/**\n * MUST be called before mergeOption of all series.\n */\n\nexport function resetSourceDefaulter(ecModel) {\n // `datasetMap` is used to make default encode.\n innerGlobalModel(ecModel).datasetMap = createHashMap();\n}\n/**\n * [The strategy of the arrengment of data dimensions for dataset]:\n * \"value way\": all axes are non-category axes. So series one by one take\n * several (the number is coordSysDims.length) dimensions from dataset.\n * The result of data arrengment of data dimensions like:\n * | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |\n * \"category way\": at least one axis is category axis. So the the first data\n * dimension is always mapped to the first category axis and shared by\n * all of the series. The other data dimensions are taken by series like\n * \"value way\" does.\n * The result of data arrengment of data dimensions like:\n * | ser_shared_x | ser0_y | ser1_y | ser2_y |\n *\n * @return encode Never be `null/undefined`.\n */\n\nexport function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {\n var encode = {};\n var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\n if (!datasetModel || !coordDimensions) {\n return encode;\n }\n\n var encodeItemName = [];\n var encodeSeriesName = [];\n var ecModel = seriesModel.ecModel;\n var datasetMap = innerGlobalModel(ecModel).datasetMap;\n var key = datasetModel.uid + '_' + source.seriesLayoutBy;\n var baseCategoryDimIndex;\n var categoryWayValueDimStart;\n coordDimensions = coordDimensions.slice();\n each(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n var coordDimInfo = isObject(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {\n name: coordDimInfoLoose\n };\n\n if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n baseCategoryDimIndex = coordDimIdx;\n categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n }\n\n encode[coordDimInfo.name] = [];\n });\n var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {\n categoryWayDim: categoryWayValueDimStart,\n valueWayDim: 0\n }); // TODO\n // Auto detect first time axis and do arrangement.\n\n each(coordDimensions, function (coordDimInfo, coordDimIdx) {\n var coordDimName = coordDimInfo.name;\n var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way.\n\n if (baseCategoryDimIndex == null) {\n var start = datasetRecord.valueWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.valueWayDim += count; // ??? TODO give a better default series name rule?\n // especially when encode x y specified.\n // consider: when mutiple series share one dimension\n // category axis, series name should better use\n // the other dimsion name. On the other hand, use\n // both dimensions name.\n } // In category way, the first category axis.\n else if (baseCategoryDimIndex === coordDimIdx) {\n pushDim(encode[coordDimName], 0, count);\n pushDim(encodeItemName, 0, count);\n } // In category way, the other axis.\n else {\n var start = datasetRecord.categoryWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.categoryWayDim += count;\n }\n });\n\n function pushDim(dimIdxArr, idxFrom, idxCount) {\n for (var i = 0; i < idxCount; i++) {\n dimIdxArr.push(idxFrom + i);\n }\n }\n\n function getDataDimCountOnCoordDim(coordDimInfo) {\n var dimsDef = coordDimInfo.dimsDef;\n return dimsDef ? dimsDef.length : 1;\n }\n\n encodeItemName.length && (encode.itemName = encodeItemName);\n encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n return encode;\n}\n/**\n * Work for data like [{name: ..., value: ...}, ...].\n *\n * @return encode Never be `null/undefined`.\n */\n\nexport function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) {\n var encode = {};\n var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\n if (!datasetModel) {\n return encode;\n }\n\n var sourceFormat = source.sourceFormat;\n var dimensionsDefine = source.dimensionsDefine;\n var potentialNameDimIndex;\n\n if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n each(dimensionsDefine, function (dim, idx) {\n if ((isObject(dim) ? dim.name : dim) === 'name') {\n potentialNameDimIndex = idx;\n }\n });\n }\n\n var idxResult = function () {\n var idxRes0 = {};\n var idxRes1 = {};\n var guessRecords = []; // 5 is an experience value.\n\n for (var i = 0, len = Math.min(5, dimCount); i < len; i++) {\n var guessResult = doGuessOrdinal(source.data, sourceFormat, source.seriesLayoutBy, dimensionsDefine, source.startIndex, i);\n guessRecords.push(guessResult);\n var isPureNumber = guessResult === BE_ORDINAL.Not; // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,\n // and then find a name dim with the priority:\n // \"BE_ORDINAL.Might|BE_ORDINAL.Must\" > \"other dim\" > \"the value dim itself\".\n\n if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {\n idxRes0.v = i;\n }\n\n if (idxRes0.n == null || idxRes0.n === idxRes0.v || !isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not) {\n idxRes0.n = i;\n }\n\n if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {\n return idxRes0;\n } // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),\n // find the first BE_ORDINAL.Might as the value dim,\n // and then find a name dim with the priority:\n // \"other dim\" > \"the value dim itself\".\n // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be\n // treated as number.\n\n\n if (!isPureNumber) {\n if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {\n idxRes1.v = i;\n }\n\n if (idxRes1.n == null || idxRes1.n === idxRes1.v) {\n idxRes1.n = i;\n }\n }\n }\n\n function fulfilled(idxResult) {\n return idxResult.v != null && idxResult.n != null;\n }\n\n return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;\n }();\n\n if (idxResult) {\n encode.value = [idxResult.v]; // `potentialNameDimIndex` has highest priority.\n\n var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label use itemName in charts.\n // So we dont set encodeLabel here.\n\n encode.itemName = [nameDimIndex];\n encode.seriesName = [nameDimIndex];\n }\n\n return encode;\n}\n/**\n * @return If return null/undefined, indicate that should not use datasetModel.\n */\n\nexport function querySeriesUpstreamDatasetModel(seriesModel) {\n // Caution: consider the scenario:\n // A dataset is declared and a series is not expected to use the dataset,\n // and at the beginning `setOption({series: { noData })` (just prepare other\n // option but no data), then `setOption({series: {data: [...]}); In this case,\n // the user should set an empty array to avoid that dataset is used by default.\n var thisData = seriesModel.get('data', true);\n\n if (!thisData) {\n return queryReferringComponents(seriesModel.ecModel, 'dataset', {\n index: seriesModel.get('datasetIndex', true),\n id: seriesModel.get('datasetId', true)\n }, SINGLE_REFERRING).models[0];\n }\n}\n/**\n * @return Always return an array event empty.\n */\n\nexport function queryDatasetUpstreamDatasetModels(datasetModel) {\n // Only these attributes declared, we by defualt reference to `datasetIndex: 0`.\n // Otherwise, no reference.\n if (!datasetModel.get('transform', true) && !datasetModel.get('fromTransformResult', true)) {\n return [];\n }\n\n return queryReferringComponents(datasetModel.ecModel, 'dataset', {\n index: datasetModel.get('fromDatasetIndex', true),\n id: datasetModel.get('fromDatasetId', true)\n }, SINGLE_REFERRING).models;\n}\n/**\n * The rule should not be complex, otherwise user might not\n * be able to known where the data is wrong.\n * The code is ugly, but how to make it neat?\n */\n\nexport function guessOrdinal(source, dimIndex) {\n return doGuessOrdinal(source.data, source.sourceFormat, source.seriesLayoutBy, source.dimensionsDefine, source.startIndex, dimIndex);\n} // dimIndex may be overflow source data.\n// return {BE_ORDINAL}\n\nfunction doGuessOrdinal(data, sourceFormat, seriesLayoutBy, dimensionsDefine, startIndex, dimIndex) {\n var result; // Experience value.\n\n var maxLoop = 5;\n\n if (isTypedArray(data)) {\n return BE_ORDINAL.Not;\n } // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine\n // always exists in source.\n\n\n var dimName;\n var dimType;\n\n if (dimensionsDefine) {\n var dimDefItem = dimensionsDefine[dimIndex];\n\n if (isObject(dimDefItem)) {\n dimName = dimDefItem.name;\n dimType = dimDefItem.type;\n } else if (isString(dimDefItem)) {\n dimName = dimDefItem;\n }\n }\n\n if (dimType != null) {\n return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not;\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var dataArrayRows = data;\n\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n var sample = dataArrayRows[dimIndex];\n\n for (var i = 0; i < (sample || []).length && i < maxLoop; i++) {\n if ((result = detectValue(sample[startIndex + i])) != null) {\n return result;\n }\n }\n } else {\n for (var i = 0; i < dataArrayRows.length && i < maxLoop; i++) {\n var row = dataArrayRows[startIndex + i];\n\n if (row && (result = detectValue(row[dimIndex])) != null) {\n return result;\n }\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n var dataObjectRows = data;\n\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n\n for (var i = 0; i < dataObjectRows.length && i < maxLoop; i++) {\n var item = dataObjectRows[i];\n\n if (item && (result = detectValue(item[dimName])) != null) {\n return result;\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n var dataKeyedColumns = data;\n\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n\n var sample = dataKeyedColumns[dimName];\n\n if (!sample || isTypedArray(sample)) {\n return BE_ORDINAL.Not;\n }\n\n for (var i = 0; i < sample.length && i < maxLoop; i++) {\n if ((result = detectValue(sample[i])) != null) {\n return result;\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var dataOriginal = data;\n\n for (var i = 0; i < dataOriginal.length && i < maxLoop; i++) {\n var item = dataOriginal[i];\n var val = getDataItemValue(item);\n\n if (!isArray(val)) {\n return BE_ORDINAL.Not;\n }\n\n if ((result = detectValue(val[dimIndex])) != null) {\n return result;\n }\n }\n }\n\n function detectValue(val) {\n var beStr = isString(val); // Consider usage convenience, '1', '2' will be treated as \"number\".\n // `isFinit('')` get `true`.\n\n if (val != null && isFinite(val) && val !== '') {\n return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;\n } else if (beStr && val !== '-') {\n return BE_ORDINAL.Must;\n }\n }\n\n return BE_ORDINAL.Not;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, assert } from 'zrender/lib/core/util';\nimport { isComponentIdInternal } from '../util/model';\nvar internalOptionCreatorMap = createHashMap();\nexport function registerInternalOptionCreator(mainType, creator) {\n assert(internalOptionCreatorMap.get(mainType) == null && creator);\n internalOptionCreatorMap.set(mainType, creator);\n}\nexport function concatInternalOptions(ecModel, mainType, newCmptOptionList) {\n var internalOptionCreator = internalOptionCreatorMap.get(mainType);\n\n if (!internalOptionCreator) {\n return newCmptOptionList;\n }\n\n var internalOptions = internalOptionCreator(ecModel);\n\n if (!internalOptions) {\n return newCmptOptionList;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n for (var i = 0; i < internalOptions.length; i++) {\n assert(isComponentIdInternal(internalOptions[i]));\n }\n }\n\n return newCmptOptionList.concat(internalOptions);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner, normalizeToArray } from '../../util/model';\nvar innerColor = makeInner();\nvar innerDecal = makeInner();\n\nvar PaletteMixin =\n/** @class */\nfunction () {\n function PaletteMixin() {}\n\n PaletteMixin.prototype.getColorFromPalette = function (name, scope, requestNum) {\n var defaultPalette = normalizeToArray(this.get('color', true));\n var layeredPalette = this.get('colorLayer', true);\n return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum);\n };\n\n PaletteMixin.prototype.clearColorPalette = function () {\n clearPalette(this, innerColor);\n };\n\n return PaletteMixin;\n}();\n\nexport function getDecalFromPalette(ecModel, name, scope, requestNum) {\n var defaultDecals = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));\n return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum);\n}\n\nfunction getNearestPalette(palettes, requestColorNum) {\n var paletteNum = palettes.length; // TODO palettes must be in order\n\n for (var i = 0; i < paletteNum; i++) {\n if (palettes[i].length > requestColorNum) {\n return palettes[i];\n }\n }\n\n return palettes[paletteNum - 1];\n}\n/**\n * @param name MUST NOT be null/undefined. Otherwise call this function\n * twise with the same parameters will get different result.\n * @param scope default this.\n * @return Can be null/undefined\n */\n\n\nfunction getFromPalette(that, inner, defaultPalette, layeredPalette, name, scope, requestNum) {\n scope = scope || that;\n var scopeFields = inner(scope);\n var paletteIdx = scopeFields.paletteIdx || 0;\n var paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {}; // Use `hasOwnProperty` to avoid conflict with Object.prototype.\n\n if (paletteNameMap.hasOwnProperty(name)) {\n return paletteNameMap[name];\n }\n\n var palette = requestNum == null || !layeredPalette ? defaultPalette : getNearestPalette(layeredPalette, requestNum); // In case can't find in layered color palette.\n\n palette = palette || defaultPalette;\n\n if (!palette || !palette.length) {\n return;\n }\n\n var pickedPaletteItem = palette[paletteIdx];\n\n if (name) {\n paletteNameMap[name] = pickedPaletteItem;\n }\n\n scopeFields.paletteIdx = (paletteIdx + 1) % palette.length;\n return pickedPaletteItem;\n}\n\nfunction clearPalette(that, inner) {\n inner(that).paletteIdx = 0;\n inner(that).paletteNameMap = {};\n}\n\nexport { PaletteMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Caution: If the mechanism should be changed some day, these cases\n * should be considered:\n *\n * (1) In `merge option` mode, if using the same option to call `setOption`\n * many times, the result should be the same (try our best to ensure that).\n * (2) In `merge option` mode, if a component has no id/name specified, it\n * will be merged by index, and the result sequence of the components is\n * consistent to the original sequence.\n * (3) In `replaceMerge` mode, keep the result sequence of the components is\n * consistent to the original sequence, even though there might result in \"hole\".\n * (4) `reset` feature (in toolbox). Find detailed info in comments about\n * `mergeOption` in module:echarts/model/OptionManager.\n */\n\nimport { each, filter, isArray, isObject, isString, createHashMap, assert, clone, merge, extend, mixin, isFunction } from 'zrender/lib/core/util';\nimport * as modelUtil from '../util/model';\nimport Model from './Model';\nimport ComponentModel from './Component';\nimport globalDefault from './globalDefault';\nimport { resetSourceDefaulter } from '../data/helper/sourceHelper';\nimport { concatInternalOptions } from './internalComponentCreator';\nimport { PaletteMixin } from './mixin/palette';\nimport { error } from '../util/log'; // -----------------------\n// Internal method names:\n// -----------------------\n\nvar reCreateSeriesIndices;\nvar assertSeriesInitialized;\nvar initBase;\nvar OPTION_INNER_KEY = '\\0_ec_inner';\nvar OPTION_INNER_VALUE = 1;\nvar BUITIN_COMPONENTS_MAP = {\n grid: 'GridComponent',\n polar: 'PolarComponent',\n geo: 'GeoComponent',\n singleAxis: 'SingleAxisComponent',\n parallel: 'ParallelComponent',\n calendar: 'CalendarComponent',\n graphic: 'GraphicComponent',\n toolbox: 'ToolboxComponent',\n tooltip: 'TooltipComponent',\n axisPointer: 'AxisPointerComponent',\n brush: 'BrushComponent',\n title: 'TitleComponent',\n timeline: 'TimelineComponent',\n markPoint: 'MarkPointComponent',\n markLine: 'MarkLineComponent',\n markArea: 'MarkAreaComponent',\n legend: 'LegendComponent',\n dataZoom: 'DataZoomComponent',\n visualMap: 'VisualMapComponent',\n // aria: 'AriaComponent',\n // dataset: 'DatasetComponent',\n // Dependencies\n xAxis: 'GridComponent',\n yAxis: 'GridComponent',\n angleAxis: 'PolarComponent',\n radiusAxis: 'PolarComponent'\n};\nvar BUILTIN_CHARTS_MAP = {\n line: 'LineChart',\n bar: 'BarChart',\n pie: 'PieChart',\n scatter: 'ScatterChart',\n radar: 'RadarChart',\n map: 'MapChart',\n tree: 'TreeChart',\n treemap: 'TreemapChart',\n graph: 'GraphChart',\n gauge: 'GaugeChart',\n funnel: 'FunnelChart',\n parallel: 'ParallelChart',\n sankey: 'SankeyChart',\n boxplot: 'BoxplotChart',\n candlestick: 'CandlestickChart',\n effectScatter: 'EffectScatterChart',\n lines: 'LinesChart',\n heatmap: 'HeatmapChart',\n pictorialBar: 'PictorialBarChart',\n themeRiver: 'ThemeRiverChart',\n sunburst: 'SunburstChart',\n custom: 'CustomChart'\n};\nvar componetsMissingLogPrinted = {};\n\nfunction checkMissingComponents(option) {\n each(option, function (componentOption, mainType) {\n if (!ComponentModel.hasClass(mainType)) {\n var componentImportName = BUITIN_COMPONENTS_MAP[mainType];\n\n if (componentImportName && !componetsMissingLogPrinted[componentImportName]) {\n error(\"Component \" + mainType + \" is used but not imported.\\nimport { \" + componentImportName + \" } from 'echarts/components';\\necharts.use([\" + componentImportName + \"]);\");\n componetsMissingLogPrinted[componentImportName] = true;\n }\n }\n });\n}\n\nvar GlobalModel =\n/** @class */\nfunction (_super) {\n __extends(GlobalModel, _super);\n\n function GlobalModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GlobalModel.prototype.init = function (option, parentModel, ecModel, theme, locale, optionManager) {\n theme = theme || {};\n this.option = null; // Mark as not initialized.\n\n this._theme = new Model(theme);\n this._locale = new Model(locale);\n this._optionManager = optionManager;\n };\n\n GlobalModel.prototype.setOption = function (option, opts, optionPreprocessorFuncs) {\n if (process.env.NODE_ENV !== 'production') {\n assert(option != null, 'option is null/undefined');\n assert(option[OPTION_INNER_KEY] !== OPTION_INNER_VALUE, 'please use chart.getOption()');\n }\n\n var innerOpt = normalizeSetOptionInput(opts);\n\n this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt);\n\n this._resetOption(null, innerOpt);\n };\n /**\n * @param type null/undefined: reset all.\n * 'recreate': force recreate all.\n * 'timeline': only reset timeline option\n * 'media': only reset media query option\n * @return Whether option changed.\n */\n\n\n GlobalModel.prototype.resetOption = function (type, opt) {\n return this._resetOption(type, normalizeSetOptionInput(opt));\n };\n\n GlobalModel.prototype._resetOption = function (type, opt) {\n var optionChanged = false;\n var optionManager = this._optionManager;\n\n if (!type || type === 'recreate') {\n var baseOption = optionManager.mountOption(type === 'recreate');\n\n if (process.env.NODE_ENV !== 'production') {\n checkMissingComponents(baseOption);\n }\n\n if (!this.option || type === 'recreate') {\n initBase(this, baseOption);\n } else {\n this.restoreData();\n\n this._mergeOption(baseOption, opt);\n }\n\n optionChanged = true;\n }\n\n if (type === 'timeline' || type === 'media') {\n this.restoreData();\n } // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,\n // it should better not have the same props with `MediaUnit['option']`.\n // Becuase either `option2` or `MediaUnit['option']` will be always merged to \"current option\"\n // rather than original \"baseOption\". If they both override a prop, the result might be\n // unexpected when media state changed after `setOption` called.\n // If we really need to modify a props in each `MediaUnit['option']`, use the full version\n // (`{baseOption, media}`) in `setOption`.\n // For `timeline`, the case is the same.\n\n\n if (!type || type === 'recreate' || type === 'timeline') {\n var timelineOption = optionManager.getTimelineOption(this);\n\n if (timelineOption) {\n optionChanged = true;\n\n this._mergeOption(timelineOption, opt);\n }\n }\n\n if (!type || type === 'recreate' || type === 'media') {\n var mediaOptions = optionManager.getMediaOption(this);\n\n if (mediaOptions.length) {\n each(mediaOptions, function (mediaOption) {\n optionChanged = true;\n\n this._mergeOption(mediaOption, opt);\n }, this);\n }\n }\n\n return optionChanged;\n };\n\n GlobalModel.prototype.mergeOption = function (option) {\n this._mergeOption(option, null);\n };\n\n GlobalModel.prototype._mergeOption = function (newOption, opt) {\n var option = this.option;\n var componentsMap = this._componentsMap;\n var componentsCount = this._componentsCount;\n var newCmptTypes = [];\n var newCmptTypeMap = createHashMap();\n var replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap;\n resetSourceDefaulter(this); // If no component class, merge directly.\n // For example: color, animaiton options, etc.\n\n each(newOption, function (componentOption, mainType) {\n if (componentOption == null) {\n return;\n }\n\n if (!ComponentModel.hasClass(mainType)) {\n // globalSettingTask.dirty();\n option[mainType] = option[mainType] == null ? clone(componentOption) : merge(option[mainType], componentOption, true);\n } else if (mainType) {\n newCmptTypes.push(mainType);\n newCmptTypeMap.set(mainType, true);\n }\n });\n\n if (replaceMergeMainTypeMap) {\n // If there is a mainType `xxx` in `replaceMerge` but not declared in option,\n // we trade it as it is declared in option as `{xxx: []}`. Because:\n // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.\n // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.\n replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) {\n if (ComponentModel.hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) {\n newCmptTypes.push(mainTypeInReplaceMerge);\n newCmptTypeMap.set(mainTypeInReplaceMerge, true);\n }\n });\n }\n\n ComponentModel.topologicalTravel(newCmptTypes, ComponentModel.getAllClassMainTypes(), visitComponent, this);\n\n function visitComponent(mainType) {\n var newCmptOptionList = concatInternalOptions(this, mainType, modelUtil.normalizeToArray(newOption[mainType]));\n var oldCmptList = componentsMap.get(mainType);\n var mergeMode = // `!oldCmptList` means init. See the comment in `mappingToExists`\n !oldCmptList ? 'replaceAll' : replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType) ? 'replaceMerge' : 'normalMerge';\n var mappingResult = modelUtil.mappingToExists(oldCmptList, newCmptOptionList, mergeMode); // Set mainType and complete subType.\n\n modelUtil.setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel); // Empty it before the travel, in order to prevent `this._componentsMap`\n // from being used in the `init`/`mergeOption`/`optionUpdated` of some\n // components, which is probably incorrect logic.\n\n option[mainType] = null;\n componentsMap.set(mainType, null);\n componentsCount.set(mainType, 0);\n var optionsByMainType = [];\n var cmptsByMainType = [];\n var cmptsCountByMainType = 0;\n each(mappingResult, function (resultItem, index) {\n var componentModel = resultItem.existing;\n var newCmptOption = resultItem.newOption;\n\n if (!newCmptOption) {\n if (componentModel) {\n // Consider where is no new option and should be merged using {},\n // see removeEdgeAndAdd in topologicalTravel and\n // ComponentModel.getAllClassMainTypes.\n componentModel.mergeOption({}, this);\n componentModel.optionUpdated({}, false);\n } // If no both `resultItem.exist` and `resultItem.option`,\n // either it is in `replaceMerge` and not matched by any id,\n // or it has been removed in previous `replaceMerge` and left a \"hole\" in this component index.\n\n } else {\n var isSeriesType = mainType === 'series';\n var ComponentModelClass = ComponentModel.getClass(mainType, resultItem.keyInfo.subType, !isSeriesType // Give a more detailed warn later if series don't exists\n );\n\n if (!ComponentModelClass) {\n if (process.env.NODE_ENV !== 'production') {\n var subType = resultItem.keyInfo.subType;\n var seriesImportName = BUILTIN_CHARTS_MAP[subType];\n\n if (!componetsMissingLogPrinted[subType]) {\n componetsMissingLogPrinted[subType] = true;\n\n if (seriesImportName) {\n error(\"Series \" + subType + \" is used but not imported.\\nimport { \" + seriesImportName + \" } from 'echarts/charts';\\necharts.use([\" + seriesImportName + \"]);\");\n } else {\n error(\"Unkown series \" + subType);\n }\n }\n }\n\n return;\n }\n\n if (componentModel && componentModel.constructor === ComponentModelClass) {\n componentModel.name = resultItem.keyInfo.name; // componentModel.settingTask && componentModel.settingTask.dirty();\n\n componentModel.mergeOption(newCmptOption, this);\n componentModel.optionUpdated(newCmptOption, false);\n } else {\n // PENDING Global as parent ?\n var extraOpt = extend({\n componentIndex: index\n }, resultItem.keyInfo);\n componentModel = new ComponentModelClass(newCmptOption, this, this, extraOpt); // Assign `keyInfo`\n\n extend(componentModel, extraOpt);\n\n if (resultItem.brandNew) {\n componentModel.__requireNewView = true;\n }\n\n componentModel.init(newCmptOption, this, this); // Call optionUpdated after init.\n // newCmptOption has been used as componentModel.option\n // and may be merged with theme and default, so pass null\n // to avoid confusion.\n\n componentModel.optionUpdated(null, true);\n }\n }\n\n if (componentModel) {\n optionsByMainType.push(componentModel.option);\n cmptsByMainType.push(componentModel);\n cmptsCountByMainType++;\n } else {\n // Always do assign to avoid elided item in array.\n optionsByMainType.push(void 0);\n cmptsByMainType.push(void 0);\n }\n }, this);\n option[mainType] = optionsByMainType;\n componentsMap.set(mainType, cmptsByMainType);\n componentsCount.set(mainType, cmptsCountByMainType); // Backup series for filtering.\n\n if (mainType === 'series') {\n reCreateSeriesIndices(this);\n }\n } // If no series declared, ensure `_seriesIndices` initialized.\n\n\n if (!this._seriesIndices) {\n reCreateSeriesIndices(this);\n }\n };\n /**\n * Get option for output (cloned option and inner info removed)\n */\n\n\n GlobalModel.prototype.getOption = function () {\n var option = clone(this.option);\n each(option, function (optInMainType, mainType) {\n if (ComponentModel.hasClass(mainType)) {\n var opts = modelUtil.normalizeToArray(optInMainType); // Inner cmpts need to be removed.\n // Inner cmpts might not be at last since ec5.0, but still\n // compatible for users: if inner cmpt at last, splice the returned array.\n\n var realLen = opts.length;\n var metNonInner = false;\n\n for (var i = realLen - 1; i >= 0; i--) {\n // Remove options with inner id.\n if (opts[i] && !modelUtil.isComponentIdInternal(opts[i])) {\n metNonInner = true;\n } else {\n opts[i] = null;\n !metNonInner && realLen--;\n }\n }\n\n opts.length = realLen;\n option[mainType] = opts;\n }\n });\n delete option[OPTION_INNER_KEY];\n return option;\n };\n\n GlobalModel.prototype.getTheme = function () {\n return this._theme;\n };\n\n GlobalModel.prototype.getLocaleModel = function () {\n return this._locale;\n };\n\n GlobalModel.prototype.getLocale = function (localePosition) {\n var locale = this.getLocaleModel();\n return locale.get(localePosition);\n };\n\n GlobalModel.prototype.setUpdatePayload = function (payload) {\n this._payload = payload;\n };\n\n GlobalModel.prototype.getUpdatePayload = function () {\n return this._payload;\n };\n /**\n * @param idx If not specified, return the first one.\n */\n\n\n GlobalModel.prototype.getComponent = function (mainType, idx) {\n var list = this._componentsMap.get(mainType);\n\n if (list) {\n var cmpt = list[idx || 0];\n\n if (cmpt) {\n return cmpt;\n } else if (idx == null) {\n for (var i = 0; i < list.length; i++) {\n if (list[i]) {\n return list[i];\n }\n }\n }\n }\n };\n /**\n * @return Never be null/undefined.\n */\n\n\n GlobalModel.prototype.queryComponents = function (condition) {\n var mainType = condition.mainType;\n\n if (!mainType) {\n return [];\n }\n\n var index = condition.index;\n var id = condition.id;\n var name = condition.name;\n\n var cmpts = this._componentsMap.get(mainType);\n\n if (!cmpts || !cmpts.length) {\n return [];\n }\n\n var result;\n\n if (index != null) {\n result = [];\n each(modelUtil.normalizeToArray(index), function (idx) {\n cmpts[idx] && result.push(cmpts[idx]);\n });\n } else if (id != null) {\n result = queryByIdOrName('id', id, cmpts);\n } else if (name != null) {\n result = queryByIdOrName('name', name, cmpts);\n } else {\n // Return all non-empty components in that mainType\n result = filter(cmpts, function (cmpt) {\n return !!cmpt;\n });\n }\n\n return filterBySubType(result, condition);\n };\n /**\n * The interface is different from queryComponents,\n * which is convenient for inner usage.\n *\n * @usage\n * let result = findComponents(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}\n * );\n * let result = findComponents(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}\n * );\n * let result = findComponents(\n * {mainType: 'series',\n * filter: function (model, index) {...}}\n * );\n * // result like [component0, componnet1, ...]\n */\n\n\n GlobalModel.prototype.findComponents = function (condition) {\n var query = condition.query;\n var mainType = condition.mainType;\n var queryCond = getQueryCond(query);\n var result = queryCond ? this.queryComponents(queryCond) // Retrieve all non-empty components.\n : filter(this._componentsMap.get(mainType), function (cmpt) {\n return !!cmpt;\n });\n return doFilter(filterBySubType(result, condition));\n\n function getQueryCond(q) {\n var indexAttr = mainType + 'Index';\n var idAttr = mainType + 'Id';\n var nameAttr = mainType + 'Name';\n return q && (q[indexAttr] != null || q[idAttr] != null || q[nameAttr] != null) ? {\n mainType: mainType,\n // subType will be filtered finally.\n index: q[indexAttr],\n id: q[idAttr],\n name: q[nameAttr]\n } : null;\n }\n\n function doFilter(res) {\n return condition.filter ? filter(res, condition.filter) : res;\n }\n };\n\n GlobalModel.prototype.eachComponent = function (mainType, cb, context) {\n var componentsMap = this._componentsMap;\n\n if (isFunction(mainType)) {\n var ctxForAll_1 = cb;\n var cbForAll_1 = mainType;\n componentsMap.each(function (cmpts, componentType) {\n for (var i = 0; cmpts && i < cmpts.length; i++) {\n var cmpt = cmpts[i];\n cmpt && cbForAll_1.call(ctxForAll_1, componentType, cmpt, cmpt.componentIndex);\n }\n });\n } else {\n var cmpts = isString(mainType) ? componentsMap.get(mainType) : isObject(mainType) ? this.findComponents(mainType) : null;\n\n for (var i = 0; cmpts && i < cmpts.length; i++) {\n var cmpt = cmpts[i];\n cmpt && cb.call(context, cmpt, cmpt.componentIndex);\n }\n }\n };\n /**\n * Get series list before filtered by name.\n */\n\n\n GlobalModel.prototype.getSeriesByName = function (name) {\n var nameStr = modelUtil.convertOptionIdName(name, null);\n return filter(this._componentsMap.get('series'), function (oneSeries) {\n return !!oneSeries && nameStr != null && oneSeries.name === nameStr;\n });\n };\n /**\n * Get series list before filtered by index.\n */\n\n\n GlobalModel.prototype.getSeriesByIndex = function (seriesIndex) {\n return this._componentsMap.get('series')[seriesIndex];\n };\n /**\n * Get series list before filtered by type.\n * FIXME: rename to getRawSeriesByType?\n */\n\n\n GlobalModel.prototype.getSeriesByType = function (subType) {\n return filter(this._componentsMap.get('series'), function (oneSeries) {\n return !!oneSeries && oneSeries.subType === subType;\n });\n };\n /**\n * Get all series before filtered.\n */\n\n\n GlobalModel.prototype.getSeries = function () {\n return filter(this._componentsMap.get('series').slice(), function (oneSeries) {\n return !!oneSeries;\n });\n };\n /**\n * Count series before filtered.\n */\n\n\n GlobalModel.prototype.getSeriesCount = function () {\n return this._componentsCount.get('series');\n };\n /**\n * After filtering, series may be different\n * frome raw series.\n */\n\n\n GlobalModel.prototype.eachSeries = function (cb, context) {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n var series = this._componentsMap.get('series')[rawSeriesIndex];\n\n cb.call(context, series, rawSeriesIndex);\n }, this);\n };\n /**\n * Iterate raw series before filtered.\n *\n * @param {Function} cb\n * @param {*} context\n */\n\n\n GlobalModel.prototype.eachRawSeries = function (cb, context) {\n each(this._componentsMap.get('series'), function (series) {\n series && cb.call(context, series, series.componentIndex);\n });\n };\n /**\n * After filtering, series may be different.\n * frome raw series.\n */\n\n\n GlobalModel.prototype.eachSeriesByType = function (subType, cb, context) {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n var series = this._componentsMap.get('series')[rawSeriesIndex];\n\n if (series.subType === subType) {\n cb.call(context, series, rawSeriesIndex);\n }\n }, this);\n };\n /**\n * Iterate raw series before filtered of given type.\n */\n\n\n GlobalModel.prototype.eachRawSeriesByType = function (subType, cb, context) {\n return each(this.getSeriesByType(subType), cb, context);\n };\n\n GlobalModel.prototype.isSeriesFiltered = function (seriesModel) {\n assertSeriesInitialized(this);\n return this._seriesIndicesMap.get(seriesModel.componentIndex) == null;\n };\n\n GlobalModel.prototype.getCurrentSeriesIndices = function () {\n return (this._seriesIndices || []).slice();\n };\n\n GlobalModel.prototype.filterSeries = function (cb, context) {\n assertSeriesInitialized(this);\n var newSeriesIndices = [];\n each(this._seriesIndices, function (seriesRawIdx) {\n var series = this._componentsMap.get('series')[seriesRawIdx];\n\n cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);\n }, this);\n this._seriesIndices = newSeriesIndices;\n this._seriesIndicesMap = createHashMap(newSeriesIndices);\n };\n\n GlobalModel.prototype.restoreData = function (payload) {\n reCreateSeriesIndices(this);\n var componentsMap = this._componentsMap;\n var componentTypes = [];\n componentsMap.each(function (components, componentType) {\n if (ComponentModel.hasClass(componentType)) {\n componentTypes.push(componentType);\n }\n });\n ComponentModel.topologicalTravel(componentTypes, ComponentModel.getAllClassMainTypes(), function (componentType) {\n each(componentsMap.get(componentType), function (component) {\n if (component && (componentType !== 'series' || !isNotTargetSeries(component, payload))) {\n component.restoreData();\n }\n });\n });\n };\n\n GlobalModel.internalField = function () {\n reCreateSeriesIndices = function (ecModel) {\n var seriesIndices = ecModel._seriesIndices = [];\n each(ecModel._componentsMap.get('series'), function (series) {\n // series may have been removed by `replaceMerge`.\n series && seriesIndices.push(series.componentIndex);\n });\n ecModel._seriesIndicesMap = createHashMap(seriesIndices);\n };\n\n assertSeriesInitialized = function (ecModel) {\n // Components that use _seriesIndices should depends on series component,\n // which make sure that their initialization is after series.\n if (process.env.NODE_ENV !== 'production') {\n if (!ecModel._seriesIndices) {\n throw new Error('Option should contains series.');\n }\n }\n };\n\n initBase = function (ecModel, baseOption) {\n // Using OPTION_INNER_KEY to mark that this option can not be used outside,\n // i.e. `chart.setOption(chart.getModel().option);` is forbiden.\n ecModel.option = {};\n ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE; // Init with series: [], in case of calling findSeries method\n // before series initialized.\n\n ecModel._componentsMap = createHashMap({\n series: []\n });\n ecModel._componentsCount = createHashMap(); // If user spefied `option.aria`, aria will be enable. This detection should be\n // performed before theme and globalDefault merge.\n\n var airaOption = baseOption.aria;\n\n if (isObject(airaOption) && airaOption.enabled == null) {\n airaOption.enabled = true;\n }\n\n mergeTheme(baseOption, ecModel._theme.option); // TODO Needs clone when merging to the unexisted property\n\n merge(baseOption, globalDefault, false);\n\n ecModel._mergeOption(baseOption, null);\n };\n }();\n\n return GlobalModel;\n}(Model);\n\nfunction isNotTargetSeries(seriesModel, payload) {\n if (payload) {\n var index = payload.seriesIndex;\n var id = payload.seriesId;\n var name_1 = payload.seriesName;\n return index != null && seriesModel.componentIndex !== index || id != null && seriesModel.id !== id || name_1 != null && seriesModel.name !== name_1;\n }\n}\n\nfunction mergeTheme(option, theme) {\n // PENDING\n // NOT use `colorLayer` in theme if option has `color`\n var notMergeColorLayer = option.color && !option.colorLayer;\n each(theme, function (themeItem, name) {\n if (name === 'colorLayer' && notMergeColorLayer) {\n return;\n } // If it is component model mainType, the model handles that merge later.\n // otherwise, merge them here.\n\n\n if (!ComponentModel.hasClass(name)) {\n if (typeof themeItem === 'object') {\n option[name] = !option[name] ? clone(themeItem) : merge(option[name], themeItem, false);\n } else {\n if (option[name] == null) {\n option[name] = themeItem;\n }\n }\n }\n });\n}\n\nfunction queryByIdOrName(attr, idOrName, cmpts) {\n // Here is a break from echarts4: string and number are\n // treated as equal.\n if (isArray(idOrName)) {\n var keyMap_1 = createHashMap();\n each(idOrName, function (idOrNameItem) {\n if (idOrNameItem != null) {\n var idName = modelUtil.convertOptionIdName(idOrNameItem, null);\n idName != null && keyMap_1.set(idOrNameItem, true);\n }\n });\n return filter(cmpts, function (cmpt) {\n return cmpt && keyMap_1.get(cmpt[attr]);\n });\n } else {\n var idName_1 = modelUtil.convertOptionIdName(idOrName, null);\n return filter(cmpts, function (cmpt) {\n return cmpt && idName_1 != null && cmpt[attr] === idName_1;\n });\n }\n}\n\nfunction filterBySubType(components, condition) {\n // Using hasOwnProperty for restrict. Consider\n // subType is undefined in user payload.\n return condition.hasOwnProperty('subType') ? filter(components, function (cmpt) {\n return cmpt && cmpt.subType === condition.subType;\n }) : components;\n}\n\nfunction normalizeSetOptionInput(opts) {\n var replaceMergeMainTypeMap = createHashMap();\n opts && each(modelUtil.normalizeToArray(opts.replaceMerge), function (mainType) {\n if (process.env.NODE_ENV !== 'production') {\n assert(ComponentModel.hasClass(mainType), '\"' + mainType + '\" is not valid component main type in \"replaceMerge\"');\n }\n\n replaceMergeMainTypeMap.set(mainType, true);\n });\n return {\n replaceMergeMainTypeMap: replaceMergeMainTypeMap\n };\n}\n\nmixin(GlobalModel, PaletteMixin);\nexport default GlobalModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar availableMethods = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', // 'getModel',\n'getOption', // 'getViewOfComponentModel',\n// 'getViewOfSeriesModel',\n'getId', 'updateLabelLayout'];\n\nvar ExtensionAPI =\n/** @class */\nfunction () {\n function ExtensionAPI(ecInstance) {\n zrUtil.each(availableMethods, function (methodName) {\n this[methodName] = zrUtil.bind(ecInstance[methodName], ecInstance);\n }, this);\n }\n\n return ExtensionAPI;\n}();\n\nexport default ExtensionAPI;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar coordinateSystemCreators = {};\n\nvar CoordinateSystemManager =\n/** @class */\nfunction () {\n function CoordinateSystemManager() {\n this._coordinateSystems = [];\n }\n\n CoordinateSystemManager.prototype.create = function (ecModel, api) {\n var coordinateSystems = [];\n zrUtil.each(coordinateSystemCreators, function (creater, type) {\n var list = creater.create(ecModel, api);\n coordinateSystems = coordinateSystems.concat(list || []);\n });\n this._coordinateSystems = coordinateSystems;\n };\n\n CoordinateSystemManager.prototype.update = function (ecModel, api) {\n zrUtil.each(this._coordinateSystems, function (coordSys) {\n coordSys.update && coordSys.update(ecModel, api);\n });\n };\n\n CoordinateSystemManager.prototype.getCoordinateSystems = function () {\n return this._coordinateSystems.slice();\n };\n\n CoordinateSystemManager.register = function (type, creator) {\n coordinateSystemCreators[type] = creator;\n };\n\n CoordinateSystemManager.get = function (type) {\n return coordinateSystemCreators[type];\n };\n\n return CoordinateSystemManager;\n}();\n\nexport default CoordinateSystemManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { normalizeToArray // , MappingExistingItem, setComponentTypeToKeyInfo, mappingToExists\n} from '../util/model';\nimport { each, clone, map, isTypedArray, setAsPrimitive, isArray, isObject // , HashMap , createHashMap, extend, merge,\n} from 'zrender/lib/core/util';\nimport { error } from '../util/log';\nvar QUERY_REG = /^(min|max)?(.+)$/; // Key: mainType\n// type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>;\n\n/**\n * TERM EXPLANATIONS:\n * See `ECOption` and `ECUnitOption` in `src/util/types.ts`.\n */\n\nvar OptionManager =\n/** @class */\nfunction () {\n // timeline.notMerge is not supported in ec3. Firstly there is rearly\n // case that notMerge is needed. Secondly supporting 'notMerge' requires\n // rawOption cloned and backuped when timeline changed, which does no\n // good to performance. What's more, that both timeline and setOption\n // method supply 'notMerge' brings complex and some problems.\n // Consider this case:\n // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);\n // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);\n function OptionManager(api) {\n this._timelineOptions = [];\n this._mediaList = [];\n /**\n * -1, means default.\n * empty means no media.\n */\n\n this._currentMediaIndices = [];\n this._api = api;\n }\n\n OptionManager.prototype.setOption = function (rawOption, optionPreprocessorFuncs, opt) {\n if (rawOption) {\n // That set dat primitive is dangerous if user reuse the data when setOption again.\n each(normalizeToArray(rawOption.series), function (series) {\n series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data);\n });\n each(normalizeToArray(rawOption.dataset), function (dataset) {\n dataset && dataset.source && isTypedArray(dataset.source) && setAsPrimitive(dataset.source);\n });\n } // Caution: some series modify option data, if do not clone,\n // it should ensure that the repeat modify correctly\n // (create a new object when modify itself).\n\n\n rawOption = clone(rawOption); // FIXME\n // If some property is set in timeline options or media option but\n // not set in baseOption, a warning should be given.\n\n var optionBackup = this._optionBackup;\n var newParsedOption = parseRawOption(rawOption, optionPreprocessorFuncs, !optionBackup);\n this._newBaseOption = newParsedOption.baseOption; // For setOption at second time (using merge mode);\n\n if (optionBackup) {\n // FIXME\n // the restore merge solution is essentially incorrect.\n // the mapping can not be 100% consistent with ecModel, which probably brings\n // potential bug!\n // The first merge is delayed, becuase in most cases, users do not call `setOption` twice.\n // let fakeCmptsMap = this._fakeCmptsMap;\n // if (!fakeCmptsMap) {\n // fakeCmptsMap = this._fakeCmptsMap = createHashMap();\n // mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);\n // }\n // mergeToBackupOption(\n // fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt\n // );\n // For simplicity, timeline options and media options do not support merge,\n // that is, if you `setOption` twice and both has timeline options, the latter\n // timeline opitons will not be merged to the formers, but just substitude them.\n if (newParsedOption.timelineOptions.length) {\n optionBackup.timelineOptions = newParsedOption.timelineOptions;\n }\n\n if (newParsedOption.mediaList.length) {\n optionBackup.mediaList = newParsedOption.mediaList;\n }\n\n if (newParsedOption.mediaDefault) {\n optionBackup.mediaDefault = newParsedOption.mediaDefault;\n }\n } else {\n this._optionBackup = newParsedOption;\n }\n };\n\n OptionManager.prototype.mountOption = function (isRecreate) {\n var optionBackup = this._optionBackup;\n this._timelineOptions = optionBackup.timelineOptions;\n this._mediaList = optionBackup.mediaList;\n this._mediaDefault = optionBackup.mediaDefault;\n this._currentMediaIndices = [];\n return clone(isRecreate // this._optionBackup.baseOption, which is created at the first `setOption`\n // called, and is merged into every new option by inner method `mergeToBackupOption`\n // each time `setOption` called, can be only used in `isRecreate`, because\n // its reliability is under suspicion. In other cases option merge is\n // performed by `model.mergeOption`.\n ? optionBackup.baseOption : this._newBaseOption);\n };\n\n OptionManager.prototype.getTimelineOption = function (ecModel) {\n var option;\n var timelineOptions = this._timelineOptions;\n\n if (timelineOptions.length) {\n // getTimelineOption can only be called after ecModel inited,\n // so we can get currentIndex from timelineModel.\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel) {\n option = clone( // FIXME:TS as TimelineModel or quivlant interface\n timelineOptions[timelineModel.getCurrentIndex()]);\n }\n }\n\n return option;\n };\n\n OptionManager.prototype.getMediaOption = function (ecModel) {\n var ecWidth = this._api.getWidth();\n\n var ecHeight = this._api.getHeight();\n\n var mediaList = this._mediaList;\n var mediaDefault = this._mediaDefault;\n var indices = [];\n var result = []; // No media defined.\n\n if (!mediaList.length && !mediaDefault) {\n return result;\n } // Multi media may be applied, the latter defined media has higher priority.\n\n\n for (var i = 0, len = mediaList.length; i < len; i++) {\n if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {\n indices.push(i);\n }\n } // FIXME\n // Whether mediaDefault should force users to provide? Otherwise\n // the change by media query can not be recorvered.\n\n\n if (!indices.length && mediaDefault) {\n indices = [-1];\n }\n\n if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {\n result = map(indices, function (index) {\n return clone(index === -1 ? mediaDefault.option : mediaList[index].option);\n });\n } // Otherwise return nothing.\n\n\n this._currentMediaIndices = indices;\n return result;\n };\n\n return OptionManager;\n}();\n/**\n * [RAW_OPTION_PATTERNS]\n * (Note: \"series: []\" represents all other props in `ECUnitOption`)\n *\n * (1) No prop \"baseOption\" declared:\n * Root option is used as \"baseOption\" (except prop \"options\" and \"media\").\n * ```js\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * };\n * option = {\n * series: [],\n * media: {},\n * };\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * media: {},\n * }\n * ```\n *\n * (2) Prop \"baseOption\" declared:\n * If \"baseOption\" declared, `ECUnitOption` props can only be declared\n * inside \"baseOption\" except prop \"timeline\" (compat ec2).\n * ```js\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * };\n * option = {\n * baseOption: {\n * series: [],\n * },\n * media: []\n * };\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * media: []\n * };\n * option = {\n * // ec3 compat ec2: allow (only) `timeline` declared\n * // outside baseOption. Keep this setting for compat.\n * timeline: {},\n * baseOption: {\n * series: [],\n * },\n * options: [],\n * media: []\n * };\n * ```\n */\n\n\nfunction parseRawOption( // `rawOption` May be modified\nrawOption, optionPreprocessorFuncs, isNew) {\n var mediaList = [];\n var mediaDefault;\n var baseOption;\n var declaredBaseOption = rawOption.baseOption; // Compatible with ec2, [RAW_OPTION_PATTERNS] above.\n\n var timelineOnRoot = rawOption.timeline;\n var timelineOptionsOnRoot = rawOption.options;\n var mediaOnRoot = rawOption.media;\n var hasMedia = !!rawOption.media;\n var hasTimeline = !!(timelineOptionsOnRoot || timelineOnRoot || declaredBaseOption && declaredBaseOption.timeline);\n\n if (declaredBaseOption) {\n baseOption = declaredBaseOption; // For merge option.\n\n if (!baseOption.timeline) {\n baseOption.timeline = timelineOnRoot;\n }\n } // For convenience, enable to use the root option as the `baseOption`:\n // `{ ...normalOptionProps, media: [{ ... }, { ... }] }`\n else {\n if (hasTimeline || hasMedia) {\n rawOption.options = rawOption.media = null;\n }\n\n baseOption = rawOption;\n }\n\n if (hasMedia) {\n if (isArray(mediaOnRoot)) {\n each(mediaOnRoot, function (singleMedia) {\n if (process.env.NODE_ENV !== 'production') {\n // Real case of wrong config.\n if (singleMedia && !singleMedia.option && isObject(singleMedia.query) && isObject(singleMedia.query.option)) {\n error('Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }');\n }\n }\n\n if (singleMedia && singleMedia.option) {\n if (singleMedia.query) {\n mediaList.push(singleMedia);\n } else if (!mediaDefault) {\n // Use the first media default.\n mediaDefault = singleMedia;\n }\n }\n });\n } else {\n if (process.env.NODE_ENV !== 'production') {\n // Real case of wrong config.\n error('Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }');\n }\n }\n }\n\n doPreprocess(baseOption);\n each(timelineOptionsOnRoot, function (option) {\n return doPreprocess(option);\n });\n each(mediaList, function (media) {\n return doPreprocess(media.option);\n });\n\n function doPreprocess(option) {\n each(optionPreprocessorFuncs, function (preProcess) {\n preProcess(option, isNew);\n });\n }\n\n return {\n baseOption: baseOption,\n timelineOptions: timelineOptionsOnRoot || [],\n mediaDefault: mediaDefault,\n mediaList: mediaList\n };\n}\n/**\n * @see \n * Support: width, height, aspectRatio\n * Can use max or min as prefix.\n */\n\n\nfunction applyMediaQuery(query, ecWidth, ecHeight) {\n var realMap = {\n width: ecWidth,\n height: ecHeight,\n aspectratio: ecWidth / ecHeight // lowser case for convenientce.\n\n };\n var applicatable = true;\n each(query, function (value, attr) {\n var matched = attr.match(QUERY_REG);\n\n if (!matched || !matched[1] || !matched[2]) {\n return;\n }\n\n var operator = matched[1];\n var realAttr = matched[2].toLowerCase();\n\n if (!compare(realMap[realAttr], value, operator)) {\n applicatable = false;\n }\n });\n return applicatable;\n}\n\nfunction compare(real, expect, operator) {\n if (operator === 'min') {\n return real >= expect;\n } else if (operator === 'max') {\n return real <= expect;\n } else {\n // Equals\n return real === expect;\n }\n}\n\nfunction indicesEquals(indices1, indices2) {\n // indices is always order by asc and has only finite number.\n return indices1.join(',') === indices2.join(',');\n}\n/**\n * Consider case:\n * `chart.setOption(opt1);`\n * Then user do some interaction like dataZoom, dataView changing.\n * `chart.setOption(opt2);`\n * Then user press 'reset button' in toolbox.\n *\n * After doing that all of the interaction effects should be reset, the\n * chart should be the same as the result of invoke\n * `chart.setOption(opt1); chart.setOption(opt2);`.\n *\n * Although it is not able ensure that\n * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to\n * `chart.setOption(merge(opt1, opt2));` exactly,\n * this might be the only simple way to implement that feature.\n *\n * MEMO: We've considered some other approaches:\n * 1. Each model handle its self restoration but not uniform treatment.\n * (Too complex in logic and error-prone)\n * 2. Use a shadow ecModel. (Performace expensive)\n *\n * FIXME: A possible solution:\n * Add a extra level of model for each component model. The inheritance chain would be:\n * ecModel <- componentModel <- componentActionModel <- dataItemModel\n * And all of the actions can only modify the `componentActionModel` rather than\n * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.\n * When \"resotre\" action triggered, model from `componentActionModel` will be discarded\n * instead of recreating the \"ecModel\" from the \"_optionBackup\".\n */\n// function mergeToBackupOption(\n// fakeCmptsMap: FakeComponentsMap,\n// // `tarOption` Can be null/undefined, means init\n// tarOption: ECUnitOption,\n// newOption: ECUnitOption,\n// // Can be null/undefined\n// opt: InnerSetOptionOpts\n// ): void {\n// newOption = newOption || {} as ECUnitOption;\n// const notInit = !!tarOption;\n// each(newOption, function (newOptsInMainType, mainType) {\n// if (newOptsInMainType == null) {\n// return;\n// }\n// if (!ComponentModel.hasClass(mainType)) {\n// if (tarOption) {\n// tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);\n// }\n// }\n// else {\n// const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;\n// const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];\n// const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;\n// const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);\n// const mappingResult = mappingToExists(\n// oldFakeCmptsInMainType,\n// normalizeToArray(newOptsInMainType),\n// (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'\n// );\n// setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n// each(mappingResult, function (resultItem, index) {\n// // The same logic as `Global.ts#_mergeOption`.\n// let fakeCmpt = resultItem.existing;\n// const newOption = resultItem.newOption;\n// const keyInfo = resultItem.keyInfo;\n// let fakeCmptOpt;\n// if (!newOption) {\n// fakeCmptOpt = oldTarOptsInMainType[index];\n// }\n// else {\n// if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {\n// fakeCmpt.name = keyInfo.name;\n// if (notInit) {\n// fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);\n// }\n// }\n// else {\n// fakeCmpt = extend({}, keyInfo);\n// if (notInit) {\n// fakeCmptOpt = clone(newOption);\n// }\n// }\n// }\n// if (fakeCmpt) {\n// notInit && resultTarOptsInMainType.push(fakeCmptOpt);\n// resultFakeCmptsInMainType.push(fakeCmpt);\n// }\n// else {\n// notInit && resultTarOptsInMainType.push(void 0);\n// resultFakeCmptsInMainType.push(void 0);\n// }\n// });\n// }\n// });\n// }\n\n\nexport default OptionManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport { deprecateLog, deprecateReplaceLog } from '../../util/log';\nvar each = zrUtil.each;\nvar isObject = zrUtil.isObject;\nvar POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine'];\n\nfunction compatEC2ItemStyle(opt) {\n var itemStyleOpt = opt && opt.itemStyle;\n\n if (!itemStyleOpt) {\n return;\n }\n\n for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {\n var styleName = POSSIBLE_STYLES[i];\n var normalItemStyleOpt = itemStyleOpt.normal;\n var emphasisItemStyleOpt = itemStyleOpt.emphasis;\n\n if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(\"itemStyle.normal.\" + styleName, styleName);\n }\n\n opt[styleName] = opt[styleName] || {};\n\n if (!opt[styleName].normal) {\n opt[styleName].normal = normalItemStyleOpt[styleName];\n } else {\n zrUtil.merge(opt[styleName].normal, normalItemStyleOpt[styleName]);\n }\n\n normalItemStyleOpt[styleName] = null;\n }\n\n if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(\"itemStyle.emphasis.\" + styleName, \"emphasis.\" + styleName);\n }\n\n opt[styleName] = opt[styleName] || {};\n\n if (!opt[styleName].emphasis) {\n opt[styleName].emphasis = emphasisItemStyleOpt[styleName];\n } else {\n zrUtil.merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);\n }\n\n emphasisItemStyleOpt[styleName] = null;\n }\n }\n}\n\nfunction convertNormalEmphasis(opt, optType, useExtend) {\n if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {\n var normalOpt = opt[optType].normal;\n var emphasisOpt = opt[optType].emphasis;\n\n if (normalOpt) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line max-len\n deprecateLog(\"'normal' hierarchy in \" + optType + \" has been removed since 4.0. All style properties are configured in \" + optType + \" directly now.\");\n } // Timeline controlStyle has other properties besides normal and emphasis\n\n\n if (useExtend) {\n opt[optType].normal = opt[optType].emphasis = null;\n zrUtil.defaults(opt[optType], normalOpt);\n } else {\n opt[optType] = normalOpt;\n }\n }\n\n if (emphasisOpt) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog(optType + \".emphasis has been changed to emphasis.\" + optType + \" since 4.0\");\n }\n\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[optType] = emphasisOpt; // Also compat the case user mix the style and focus together in ec3 style\n // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }\n\n if (emphasisOpt.focus) {\n opt.emphasis.focus = emphasisOpt.focus;\n }\n\n if (emphasisOpt.blurScope) {\n opt.emphasis.blurScope = emphasisOpt.blurScope;\n }\n }\n }\n}\n\nfunction removeEC3NormalStatus(opt) {\n convertNormalEmphasis(opt, 'itemStyle');\n convertNormalEmphasis(opt, 'lineStyle');\n convertNormalEmphasis(opt, 'areaStyle');\n convertNormalEmphasis(opt, 'label');\n convertNormalEmphasis(opt, 'labelLine'); // treemap\n\n convertNormalEmphasis(opt, 'upperLabel'); // graph\n\n convertNormalEmphasis(opt, 'edgeLabel');\n}\n\nfunction compatTextStyle(opt, propName) {\n // Check whether is not object (string\\null\\undefined ...)\n var labelOptSingle = isObject(opt) && opt[propName];\n var textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle;\n\n if (textStyle) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line max-len\n deprecateLog(\"textStyle hierarchy in \" + propName + \" has been removed since 4.0. All textStyle properties are configured in \" + propName + \" directly now.\");\n }\n\n for (var i = 0, len = modelUtil.TEXT_STYLE_OPTIONS.length; i < len; i++) {\n var textPropName = modelUtil.TEXT_STYLE_OPTIONS[i];\n\n if (textStyle.hasOwnProperty(textPropName)) {\n labelOptSingle[textPropName] = textStyle[textPropName];\n }\n }\n }\n}\n\nfunction compatEC3CommonStyles(opt) {\n if (opt) {\n removeEC3NormalStatus(opt);\n compatTextStyle(opt, 'label');\n opt.emphasis && compatTextStyle(opt.emphasis, 'label');\n }\n}\n\nfunction processSeries(seriesOpt) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n compatEC2ItemStyle(seriesOpt);\n removeEC3NormalStatus(seriesOpt);\n compatTextStyle(seriesOpt, 'label'); // treemap\n\n compatTextStyle(seriesOpt, 'upperLabel'); // graph\n\n compatTextStyle(seriesOpt, 'edgeLabel');\n\n if (seriesOpt.emphasis) {\n compatTextStyle(seriesOpt.emphasis, 'label'); // treemap\n\n compatTextStyle(seriesOpt.emphasis, 'upperLabel'); // graph\n\n compatTextStyle(seriesOpt.emphasis, 'edgeLabel');\n }\n\n var markPoint = seriesOpt.markPoint;\n\n if (markPoint) {\n compatEC2ItemStyle(markPoint);\n compatEC3CommonStyles(markPoint);\n }\n\n var markLine = seriesOpt.markLine;\n\n if (markLine) {\n compatEC2ItemStyle(markLine);\n compatEC3CommonStyles(markLine);\n }\n\n var markArea = seriesOpt.markArea;\n\n if (markArea) {\n compatEC3CommonStyles(markArea);\n }\n\n var data = seriesOpt.data; // Break with ec3: if `setOption` again, there may be no `type` in option,\n // then the backward compat based on option type will not be performed.\n\n if (seriesOpt.type === 'graph') {\n data = data || seriesOpt.nodes;\n var edgeData = seriesOpt.links || seriesOpt.edges;\n\n if (edgeData && !zrUtil.isTypedArray(edgeData)) {\n for (var i = 0; i < edgeData.length; i++) {\n compatEC3CommonStyles(edgeData[i]);\n }\n }\n\n zrUtil.each(seriesOpt.categories, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n\n if (data && !zrUtil.isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n compatEC3CommonStyles(data[i]);\n }\n } // mark point data\n\n\n markPoint = seriesOpt.markPoint;\n\n if (markPoint && markPoint.data) {\n var mpData = markPoint.data;\n\n for (var i = 0; i < mpData.length; i++) {\n compatEC3CommonStyles(mpData[i]);\n }\n } // mark line data\n\n\n markLine = seriesOpt.markLine;\n\n if (markLine && markLine.data) {\n var mlData = markLine.data;\n\n for (var i = 0; i < mlData.length; i++) {\n if (zrUtil.isArray(mlData[i])) {\n compatEC3CommonStyles(mlData[i][0]);\n compatEC3CommonStyles(mlData[i][1]);\n } else {\n compatEC3CommonStyles(mlData[i]);\n }\n }\n } // Series\n\n\n if (seriesOpt.type === 'gauge') {\n compatTextStyle(seriesOpt, 'axisLabel');\n compatTextStyle(seriesOpt, 'title');\n compatTextStyle(seriesOpt, 'detail');\n } else if (seriesOpt.type === 'treemap') {\n convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');\n zrUtil.each(seriesOpt.levels, function (opt) {\n removeEC3NormalStatus(opt);\n });\n } else if (seriesOpt.type === 'tree') {\n removeEC3NormalStatus(seriesOpt.leaves);\n } // sunburst starts from ec4, so it does not need to compat levels.\n\n}\n\nfunction toArr(o) {\n return zrUtil.isArray(o) ? o : o ? [o] : [];\n}\n\nfunction toObj(o) {\n return (zrUtil.isArray(o) ? o[0] : o) || {};\n}\n\nexport default function globalCompatStyle(option, isTheme) {\n each(toArr(option.series), function (seriesOpt) {\n isObject(seriesOpt) && processSeries(seriesOpt);\n });\n var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];\n isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');\n each(axes, function (axisName) {\n each(toArr(option[axisName]), function (axisOpt) {\n if (axisOpt) {\n compatTextStyle(axisOpt, 'axisLabel');\n compatTextStyle(axisOpt.axisPointer, 'label');\n }\n });\n });\n each(toArr(option.parallel), function (parallelOpt) {\n var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;\n compatTextStyle(parallelAxisDefault, 'axisLabel');\n compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');\n });\n each(toArr(option.calendar), function (calendarOpt) {\n convertNormalEmphasis(calendarOpt, 'itemStyle');\n compatTextStyle(calendarOpt, 'dayLabel');\n compatTextStyle(calendarOpt, 'monthLabel');\n compatTextStyle(calendarOpt, 'yearLabel');\n }); // radar.name.textStyle\n\n each(toArr(option.radar), function (radarOpt) {\n compatTextStyle(radarOpt, 'name'); // Use axisName instead of name because component has name property\n\n if (radarOpt.name && radarOpt.axisName == null) {\n radarOpt.axisName = radarOpt.name;\n delete radarOpt.name;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('name property in radar component has been changed to axisName');\n }\n }\n\n if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) {\n radarOpt.axisNameGap = radarOpt.nameGap;\n delete radarOpt.nameGap;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('nameGap property in radar component has been changed to axisNameGap');\n }\n }\n });\n each(toArr(option.geo), function (geoOpt) {\n if (isObject(geoOpt)) {\n compatEC3CommonStyles(geoOpt);\n each(toArr(geoOpt.regions), function (regionObj) {\n compatEC3CommonStyles(regionObj);\n });\n }\n });\n each(toArr(option.timeline), function (timelineOpt) {\n compatEC3CommonStyles(timelineOpt);\n convertNormalEmphasis(timelineOpt, 'label');\n convertNormalEmphasis(timelineOpt, 'itemStyle');\n convertNormalEmphasis(timelineOpt, 'controlStyle', true);\n var data = timelineOpt.data;\n zrUtil.isArray(data) && zrUtil.each(data, function (item) {\n if (zrUtil.isObject(item)) {\n convertNormalEmphasis(item, 'label');\n convertNormalEmphasis(item, 'itemStyle');\n }\n });\n });\n each(toArr(option.toolbox), function (toolboxOpt) {\n convertNormalEmphasis(toolboxOpt, 'iconStyle');\n each(toolboxOpt.feature, function (featureOpt) {\n convertNormalEmphasis(featureOpt, 'iconStyle');\n });\n });\n compatTextStyle(toObj(option.axisPointer), 'label');\n compatTextStyle(toObj(option.tooltip).axisPointer, 'label'); // Clean logs\n // storedLogs = {};\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isArray, isObject, isTypedArray, defaults } from 'zrender/lib/core/util';\nimport compatStyle from './helper/compatStyle';\nimport { normalizeToArray } from '../util/model';\nimport { deprecateLog, deprecateReplaceLog } from '../util/log';\n\nfunction get(opt, path) {\n var pathArr = path.split(',');\n var obj = opt;\n\n for (var i = 0; i < pathArr.length; i++) {\n obj = obj && obj[pathArr[i]];\n\n if (obj == null) {\n break;\n }\n }\n\n return obj;\n}\n\nfunction set(opt, path, val, overwrite) {\n var pathArr = path.split(',');\n var obj = opt;\n var key;\n var i = 0;\n\n for (; i < pathArr.length - 1; i++) {\n key = pathArr[i];\n\n if (obj[key] == null) {\n obj[key] = {};\n }\n\n obj = obj[key];\n }\n\n if (overwrite || obj[pathArr[i]] == null) {\n obj[pathArr[i]] = val;\n }\n}\n\nfunction compatLayoutProperties(option) {\n option && each(LAYOUT_PROPERTIES, function (prop) {\n if (prop[0] in option && !(prop[1] in option)) {\n option[prop[1]] = option[prop[0]];\n }\n });\n}\n\nvar LAYOUT_PROPERTIES = [['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']];\nvar COMPATITABLE_COMPONENTS = ['grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'];\nvar BAR_ITEM_STYLE_MAP = [['borderRadius', 'barBorderRadius'], ['borderColor', 'barBorderColor'], ['borderWidth', 'barBorderWidth']];\n\nfunction compatBarItemStyle(option) {\n var itemStyle = option && option.itemStyle;\n\n if (itemStyle) {\n for (var i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {\n var oldName = BAR_ITEM_STYLE_MAP[i][1];\n var newName = BAR_ITEM_STYLE_MAP[i][0];\n\n if (itemStyle[oldName] != null) {\n itemStyle[newName] = itemStyle[oldName];\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(oldName, newName);\n }\n }\n }\n }\n}\n\nfunction compatPieLabel(option) {\n if (!option) {\n return;\n }\n\n if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('label.margin', 'label.edgeDistance', 'pie');\n }\n\n option.edgeDistance = option.margin;\n }\n}\n\nfunction compatSunburstState(option) {\n if (!option) {\n return;\n }\n\n if (option.downplay && !option.blur) {\n option.blur = option.downplay;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('downplay', 'blur', 'sunburst');\n }\n }\n}\n\nfunction compatGraphFocus(option) {\n if (!option) {\n return;\n }\n\n if (option.focusNodeAdjacency != null) {\n option.emphasis = option.emphasis || {};\n\n if (option.emphasis.focus == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('focusNodeAdjacency', 'emphasis: { focus: \\'adjacency\\'}', 'graph/sankey');\n }\n\n option.emphasis.focus = 'adjacency';\n }\n }\n}\n\nfunction traverseTree(data, cb) {\n if (data) {\n for (var i = 0; i < data.length; i++) {\n cb(data[i]);\n data[i] && traverseTree(data[i].children, cb);\n }\n }\n}\n\nexport default function globalBackwardCompat(option, isTheme) {\n compatStyle(option, isTheme); // Make sure series array for model initialization.\n\n option.series = normalizeToArray(option.series);\n each(option.series, function (seriesOpt) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n var seriesType = seriesOpt.type;\n\n if (seriesType === 'line') {\n if (seriesOpt.clipOverflow != null) {\n seriesOpt.clip = seriesOpt.clipOverflow;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('clipOverflow', 'clip', 'line');\n }\n }\n } else if (seriesType === 'pie' || seriesType === 'gauge') {\n if (seriesOpt.clockWise != null) {\n seriesOpt.clockwise = seriesOpt.clockWise;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('clockWise', 'clockwise');\n }\n }\n\n compatPieLabel(seriesOpt.label);\n var data = seriesOpt.data;\n\n if (data && !isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n compatPieLabel(data[i]);\n }\n }\n\n if (seriesOpt.hoverOffset != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (seriesOpt.emphasis.scaleSize = null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('hoverOffset', 'emphasis.scaleSize');\n }\n\n seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset;\n }\n }\n } else if (seriesType === 'gauge') {\n var pointerColor = get(seriesOpt, 'pointer.color');\n pointerColor != null && set(seriesOpt, 'itemStyle.color', pointerColor);\n } else if (seriesType === 'bar') {\n compatBarItemStyle(seriesOpt);\n compatBarItemStyle(seriesOpt.backgroundStyle);\n compatBarItemStyle(seriesOpt.emphasis);\n var data = seriesOpt.data;\n\n if (data && !isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (typeof data[i] === 'object') {\n compatBarItemStyle(data[i]);\n compatBarItemStyle(data[i] && data[i].emphasis);\n }\n }\n }\n } else if (seriesType === 'sunburst') {\n var highlightPolicy = seriesOpt.highlightPolicy;\n\n if (highlightPolicy) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (!seriesOpt.emphasis.focus) {\n seriesOpt.emphasis.focus = highlightPolicy;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('highlightPolicy', 'emphasis.focus', 'sunburst');\n }\n }\n }\n\n compatSunburstState(seriesOpt);\n traverseTree(seriesOpt.data, compatSunburstState);\n } else if (seriesType === 'graph' || seriesType === 'sankey') {\n compatGraphFocus(seriesOpt); // TODO nodes, edges?\n } else if (seriesType === 'map') {\n if (seriesOpt.mapType && !seriesOpt.map) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('mapType', 'map', 'map');\n }\n\n seriesOpt.map = seriesOpt.mapType;\n }\n\n if (seriesOpt.mapLocation) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('`mapLocation` is not used anymore.');\n }\n\n defaults(seriesOpt, seriesOpt.mapLocation);\n }\n }\n\n if (seriesOpt.hoverAnimation != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('hoverAnimation', 'emphasis.scale');\n }\n\n seriesOpt.emphasis.scale = seriesOpt.hoverAnimation;\n }\n }\n\n compatLayoutProperties(seriesOpt);\n }); // dataRange has changed to visualMap\n\n if (option.dataRange) {\n option.visualMap = option.dataRange;\n }\n\n each(COMPATITABLE_COMPONENTS, function (componentName) {\n var options = option[componentName];\n\n if (options) {\n if (!isArray(options)) {\n options = [options];\n }\n\n each(options, function (option) {\n compatLayoutProperties(option);\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport { addSafe } from '../util/number'; // (1) [Caution]: the logic is correct based on the premises:\n// data processing stage is blocked in stream.\n// See \n// (2) Only register once when import repeatly.\n// Should be executed after series filtered and before stack calculation.\n\nexport default function dataStack(ecModel) {\n var stackInfoMap = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack.\n\n if (stack) {\n var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n var data = seriesModel.getData();\n var stackInfo = {\n // Used for calculate axis extent automatically.\n // TODO: Type getCalculationInfo return more specific type?\n stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n stackedDimension: data.getCalculationInfo('stackedDimension'),\n stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n data: data,\n seriesModel: seriesModel\n }; // If stacked on axis that do not support data stack.\n\n if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) {\n return;\n }\n\n stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel);\n stackInfoList.push(stackInfo);\n }\n });\n stackInfoMap.each(calculateStack);\n}\n\nfunction calculateStack(stackInfoList) {\n each(stackInfoList, function (targetStackInfo, idxInStack) {\n var resultVal = [];\n var resultNaN = [NaN, NaN];\n var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];\n var targetData = targetStackInfo.data;\n var isStackedByIndex = targetStackInfo.isStackedByIndex; // Should not write on raw data, because stack series model list changes\n // depending on legend selection.\n\n var newData = targetData.map(dims, function (v0, v1, dataIndex) {\n var sum = targetData.get(targetStackInfo.stackedDimension, dataIndex); // Consider `connectNulls` of line area, if value is NaN, stackedOver\n // should also be NaN, to draw a appropriate belt area.\n\n if (isNaN(sum)) {\n return resultNaN;\n }\n\n var byValue;\n var stackedDataRawIndex;\n\n if (isStackedByIndex) {\n stackedDataRawIndex = targetData.getRawIndex(dataIndex);\n } else {\n byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex);\n } // If stackOver is NaN, chart view will render point on value start.\n\n\n var stackedOver = NaN;\n\n for (var j = idxInStack - 1; j >= 0; j--) {\n var stackInfo = stackInfoList[j]; // Has been optimized by inverted indices on `stackedByDimension`.\n\n if (!isStackedByIndex) {\n stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue);\n }\n\n if (stackedDataRawIndex >= 0) {\n var val = stackInfo.data.getByRawIndex(stackInfo.stackResultDimension, stackedDataRawIndex); // Considering positive stack, negative stack and empty data\n\n if (sum >= 0 && val > 0 || // Positive stack\n sum <= 0 && val < 0 // Negative stack\n ) {\n // The sum should be as less as possible to be effected\n // by floating arithmetic problem. A wrong result probably\n // filtered incorrectly by axis min/max.\n sum = addSafe(sum, val);\n stackedOver = val;\n break;\n }\n }\n }\n\n resultVal[0] = sum;\n resultVal[1] = stackedOver;\n return resultVal;\n });\n targetData.hostModel.setData(newData); // Update for consequent calculation\n\n targetStackInfo.data = newData;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isTypedArray, clone, createHashMap, isArray, isObject, isArrayLike, hasOwn, assert, each, map, isNumber, isString } from 'zrender/lib/core/util';\nimport { SOURCE_FORMAT_ORIGINAL, SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_UNKNOWN, SOURCE_FORMAT_KEYED_COLUMNS, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, SERIES_LAYOUT_BY_ROW } from '../util/types';\nimport { getDataItemValue } from '../util/model';\n; // @inner\n\nvar SourceImpl =\n/** @class */\nfunction () {\n // readonly frozen: boolean;\n function SourceImpl(fields) {\n this.data = fields.data || (fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : []);\n this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; // Visit config\n\n this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN;\n this.startIndex = fields.startIndex || 0;\n this.dimensionsDefine = fields.dimensionsDefine;\n this.dimensionsDetectedCount = fields.dimensionsDetectedCount;\n this.encodeDefine = fields.encodeDefine;\n this.metaRawOption = fields.metaRawOption;\n }\n\n return SourceImpl;\n}();\n\nexport function isSourceInstance(val) {\n return val instanceof SourceImpl;\n}\nexport function createSource(sourceData, thisMetaRawOption, // can be null. If not provided, auto detect it from `sourceData`.\nsourceFormat, encodeDefine // can be null\n) {\n sourceFormat = sourceFormat || detectSourceFormat(sourceData);\n var seriesLayoutBy = thisMetaRawOption.seriesLayoutBy;\n var determined = determineSourceDimensions(sourceData, sourceFormat, seriesLayoutBy, thisMetaRawOption.sourceHeader, thisMetaRawOption.dimensions);\n var source = new SourceImpl({\n data: sourceData,\n sourceFormat: sourceFormat,\n seriesLayoutBy: seriesLayoutBy,\n dimensionsDefine: determined.dimensionsDefine,\n startIndex: determined.startIndex,\n dimensionsDetectedCount: determined.dimensionsDetectedCount,\n encodeDefine: makeEncodeDefine(encodeDefine),\n metaRawOption: clone(thisMetaRawOption)\n });\n return source;\n}\n/**\n * Wrap original series data for some compatibility cases.\n */\n\nexport function createSourceFromSeriesDataOption(data) {\n return new SourceImpl({\n data: data,\n sourceFormat: isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL\n });\n}\n/**\n * Clone source but excludes source data.\n */\n\nexport function cloneSourceShallow(source) {\n return new SourceImpl({\n data: source.data,\n sourceFormat: source.sourceFormat,\n seriesLayoutBy: source.seriesLayoutBy,\n dimensionsDefine: clone(source.dimensionsDefine),\n startIndex: source.startIndex,\n dimensionsDetectedCount: source.dimensionsDetectedCount,\n encodeDefine: makeEncodeDefine(source.encodeDefine)\n });\n}\n\nfunction makeEncodeDefine(encodeDefine) {\n // null means user not specify `series.encode`.\n return encodeDefine ? createHashMap(encodeDefine) : null;\n}\n/**\n * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.\n */\n\n\nexport function detectSourceFormat(data) {\n var sourceFormat = SOURCE_FORMAT_UNKNOWN;\n\n if (isTypedArray(data)) {\n sourceFormat = SOURCE_FORMAT_TYPED_ARRAY;\n } else if (isArray(data)) {\n // FIXME Whether tolerate null in top level array?\n if (data.length === 0) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n }\n\n for (var i = 0, len = data.length; i < len; i++) {\n var item = data[i];\n\n if (item == null) {\n continue;\n } else if (isArray(item)) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n break;\n } else if (isObject(item)) {\n sourceFormat = SOURCE_FORMAT_OBJECT_ROWS;\n break;\n }\n }\n } else if (isObject(data)) {\n for (var key in data) {\n if (hasOwn(data, key) && isArrayLike(data[key])) {\n sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS;\n break;\n }\n }\n }\n\n return sourceFormat;\n}\n/**\n * Determine the source definitions from data standalone dimensions definitions\n * are not specified.\n */\n\nfunction determineSourceDimensions(data, sourceFormat, seriesLayoutBy, sourceHeader, // standalone raw dimensions definition, like:\n// {\n// dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]\n// }\n// in `dataset` or `series`\ndimensionsDefine) {\n var dimensionsDetectedCount;\n var startIndex; // PEDING: could data be null/undefined here?\n // currently, if `dataset.source` not specified, error thrown.\n // if `series.data` not specified, nothing rendered without error thrown.\n // Should test these cases.\n\n if (!data) {\n return {\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n startIndex: startIndex,\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var dataArrayRows = data; // Rule: Most of the first line are string: it is header.\n // Caution: consider a line with 5 string and 1 number,\n // it still can not be sure it is a head, because the\n // 5 string may be 5 values of category columns.\n\n if (sourceHeader === 'auto' || sourceHeader == null) {\n arrayRowsTravelFirst(function (val) {\n // '-' is regarded as null/undefined.\n if (val != null && val !== '-') {\n if (isString(val)) {\n startIndex == null && (startIndex = 1);\n } else {\n startIndex = 0;\n }\n } // 10 is an experience number, avoid long loop.\n\n }, seriesLayoutBy, dataArrayRows, 10);\n } else {\n startIndex = isNumber(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;\n }\n\n if (!dimensionsDefine && startIndex === 1) {\n dimensionsDefine = [];\n arrayRowsTravelFirst(function (val, index) {\n dimensionsDefine[index] = val != null ? val + '' : '';\n }, seriesLayoutBy, dataArrayRows, Infinity);\n }\n\n dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === SERIES_LAYOUT_BY_ROW ? dataArrayRows.length : dataArrayRows[0] ? dataArrayRows[0].length : null;\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n if (!dimensionsDefine) {\n dimensionsDefine = objectRowsCollectDimensions(data);\n }\n } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n if (!dimensionsDefine) {\n dimensionsDefine = [];\n each(data, function (colArr, key) {\n dimensionsDefine.push(key);\n });\n }\n } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var value0 = getDataItemValue(data[0]);\n dimensionsDetectedCount = isArray(value0) && value0.length || 1;\n } else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.');\n }\n }\n\n return {\n startIndex: startIndex,\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n}\n\nfunction objectRowsCollectDimensions(data) {\n var firstIndex = 0;\n var obj;\n\n while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line\n\n\n if (obj) {\n var dimensions_1 = [];\n each(obj, function (value, key) {\n dimensions_1.push(key);\n });\n return dimensions_1;\n }\n} // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],\n// which is reasonable. But dimension name is duplicated.\n// Returns undefined or an array contains only object without null/undefiend or string.\n\n\nfunction normalizeDimensionsOption(dimensionsDefine) {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n\n var nameMap = createHashMap();\n return map(dimensionsDefine, function (rawItem, index) {\n rawItem = isObject(rawItem) ? rawItem : {\n name: rawItem\n }; // Other fields will be discarded.\n\n var item = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n }; // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n\n if (item.name == null) {\n return item;\n } // Also consider number form like 2012.\n\n\n item.name += ''; // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n var exist = nameMap.get(item.name);\n\n if (!exist) {\n nameMap.set(item.name, {\n count: 1\n });\n } else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}\n\nfunction arrayRowsTravelFirst(cb, seriesLayoutBy, data, maxLoop) {\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n for (var i = 0; i < data.length && i < maxLoop; i++) {\n cb(data[i] ? data[i][0] : null, i);\n }\n } else {\n var value0 = data[0] || [];\n\n for (var i = 0; i < value0.length && i < maxLoop; i++) {\n cb(value0[i], i);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar _a, _b, _c; // TODO\n// ??? refactor? check the outer usage of data provider.\n// merge with defaultDimValueGetter?\n\n\nimport { isTypedArray, extend, assert, each, isObject, bind } from 'zrender/lib/core/util';\nimport { getDataItemValue } from '../../util/model';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../Source';\nimport { SOURCE_FORMAT_ORIGINAL, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_KEYED_COLUMNS, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN, SERIES_LAYOUT_BY_ROW } from '../../util/types';\nvar providerMethods;\nvar mountMethods;\n/**\n * If normal array used, mutable chunk size is supported.\n * If typed array used, chunk size must be fixed.\n */\n\nvar DefaultDataProvider =\n/** @class */\nfunction () {\n function DefaultDataProvider(sourceParam, dimSize) {\n // let source: Source;\n var source = !isSourceInstance(sourceParam) ? createSourceFromSeriesDataOption(sourceParam) : sourceParam; // declare source is Source;\n\n this._source = source;\n var data = this._data = source.data; // Typed array. TODO IE10+?\n\n if (source.sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (process.env.NODE_ENV !== 'production') {\n if (dimSize == null) {\n throw new Error('Typed array data must specify dimension size');\n }\n }\n\n this._offset = 0;\n this._dimSize = dimSize;\n this._data = data;\n }\n\n mountMethods(this, data, source);\n }\n\n DefaultDataProvider.prototype.getSource = function () {\n return this._source;\n };\n\n DefaultDataProvider.prototype.count = function () {\n return 0;\n };\n\n DefaultDataProvider.prototype.getItem = function (idx, out) {\n return;\n };\n\n DefaultDataProvider.prototype.appendData = function (newData) {};\n\n DefaultDataProvider.prototype.clean = function () {};\n\n DefaultDataProvider.protoInitialize = function () {\n // PENDING: To avoid potential incompat (e.g., prototype\n // is visited somewhere), still init them on prototype.\n var proto = DefaultDataProvider.prototype;\n proto.pure = false;\n proto.persistent = true;\n }();\n\n DefaultDataProvider.internalField = function () {\n var _a;\n\n mountMethods = function (provider, data, source) {\n var sourceFormat = source.sourceFormat;\n var seriesLayoutBy = source.seriesLayoutBy;\n var startIndex = source.startIndex;\n var dimsDef = source.dimensionsDefine;\n var methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(methods, 'Invalide sourceFormat: ' + sourceFormat);\n }\n\n extend(provider, methods);\n\n if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n provider.getItem = getItemForTypedArray;\n provider.count = countForTypedArray;\n provider.fillStorage = fillStorageForTypedArray;\n } else {\n var rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy);\n provider.getItem = bind(rawItemGetter, null, data, startIndex, dimsDef);\n var rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy);\n provider.count = bind(rawCounter, null, data, startIndex, dimsDef);\n }\n };\n\n var getItemForTypedArray = function (idx, out) {\n idx = idx - this._offset;\n out = out || [];\n var data = this._data;\n var dimSize = this._dimSize;\n var offset = dimSize * idx;\n\n for (var i = 0; i < dimSize; i++) {\n out[i] = data[offset + i];\n }\n\n return out;\n };\n\n var fillStorageForTypedArray = function (start, end, storage, extent) {\n var data = this._data;\n var dimSize = this._dimSize;\n\n for (var dim = 0; dim < dimSize; dim++) {\n var dimExtent = extent[dim];\n var min = dimExtent[0] == null ? Infinity : dimExtent[0];\n var max = dimExtent[1] == null ? -Infinity : dimExtent[1];\n var count = end - start;\n var arr = storage[dim];\n\n for (var i = 0; i < count; i++) {\n // appendData with TypedArray will always do replace in provider.\n var val = data[i * dimSize + dim];\n arr[start + i] = val;\n val < min && (min = val);\n val > max && (max = val);\n }\n\n dimExtent[0] = min;\n dimExtent[1] = max;\n }\n };\n\n var countForTypedArray = function () {\n return this._data ? this._data.length / this._dimSize : 0;\n };\n\n providerMethods = (_a = {}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = {\n pure: true,\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = {\n pure: true,\n appendData: function () {\n throw new Error('Do not support appendData when set seriesLayoutBy: \"row\".');\n }\n }, _a[SOURCE_FORMAT_OBJECT_ROWS] = {\n pure: true,\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_KEYED_COLUMNS] = {\n pure: true,\n appendData: function (newData) {\n var data = this._data;\n each(newData, function (newCol, key) {\n var oldCol = data[key] || (data[key] = []);\n\n for (var i = 0; i < (newCol || []).length; i++) {\n oldCol.push(newCol[i]);\n }\n });\n }\n }, _a[SOURCE_FORMAT_ORIGINAL] = {\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_TYPED_ARRAY] = {\n persistent: false,\n pure: true,\n appendData: function (newData) {\n if (process.env.NODE_ENV !== 'production') {\n assert(isTypedArray(newData), 'Added data must be TypedArray if data in initialization is TypedArray');\n }\n\n this._data = newData;\n },\n // Clean self if data is already used.\n clean: function () {\n // PENDING\n this._offset += this.count();\n this._data = null;\n }\n }, _a);\n\n function appendDataSimply(newData) {\n for (var i = 0; i < newData.length; i++) {\n this._data.push(newData[i]);\n }\n }\n }();\n\n return DefaultDataProvider;\n}();\n\nexport { DefaultDataProvider };\n\nvar getItemSimply = function (rawData, startIndex, dimsDef, idx) {\n return rawData[idx];\n};\n\nvar rawSourceItemGetterMap = (_a = {}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef, idx) {\n return rawData[idx + startIndex];\n}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef, idx) {\n idx += startIndex;\n var item = [];\n var data = rawData;\n\n for (var i = 0; i < data.length; i++) {\n var row = data[i];\n item.push(row ? row[idx] : null);\n }\n\n return item;\n}, _a[SOURCE_FORMAT_OBJECT_ROWS] = getItemSimply, _a[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef, idx) {\n var item = [];\n\n for (var i = 0; i < dimsDef.length; i++) {\n var dimName = dimsDef[i].name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (dimName == null) {\n throw new Error();\n }\n }\n\n var col = rawData[dimName];\n item.push(col ? col[idx] : null);\n }\n\n return item;\n}, _a[SOURCE_FORMAT_ORIGINAL] = getItemSimply, _a);\nexport function getRawSourceItemGetter(sourceFormat, seriesLayoutBy) {\n var method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport get item on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n\n return method;\n}\n\nvar countSimply = function (rawData, startIndex, dimsDef) {\n return rawData.length;\n};\n\nvar rawSourceDataCounterMap = (_b = {}, _b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef) {\n return Math.max(0, rawData.length - startIndex);\n}, _b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef) {\n var row = rawData[0];\n return row ? Math.max(0, row.length - startIndex) : 0;\n}, _b[SOURCE_FORMAT_OBJECT_ROWS] = countSimply, _b[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef) {\n var dimName = dimsDef[0].name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (dimName == null) {\n throw new Error();\n }\n }\n\n var col = rawData[dimName];\n return col ? col.length : 0;\n}, _b[SOURCE_FORMAT_ORIGINAL] = countSimply, _b);\nexport function getRawSourceDataCounter(sourceFormat, seriesLayoutBy) {\n var method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport count on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n\n return method;\n}\n\nvar getRawValueSimply = function (dataItem, dimIndex, dimName) {\n return dimIndex != null ? dataItem[dimIndex] : dataItem;\n};\n\nvar rawSourceValueGetterMap = (_c = {}, _c[SOURCE_FORMAT_ARRAY_ROWS] = getRawValueSimply, _c[SOURCE_FORMAT_OBJECT_ROWS] = function (dataItem, dimIndex, dimName) {\n return dimIndex != null ? dataItem[dimName] : dataItem;\n}, _c[SOURCE_FORMAT_KEYED_COLUMNS] = getRawValueSimply, _c[SOURCE_FORMAT_ORIGINAL] = function (dataItem, dimIndex, dimName) {\n // FIXME: In some case (markpoint in geo (geo-map.html)),\n // dataItem is {coord: [...]}\n var value = getDataItemValue(dataItem);\n return dimIndex == null || !(value instanceof Array) ? value : value[dimIndex];\n}, _c[SOURCE_FORMAT_TYPED_ARRAY] = getRawValueSimply, _c);\nexport function getRawSourceValueGetter(sourceFormat) {\n var method = rawSourceValueGetterMap[sourceFormat];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport get value on \"' + sourceFormat + '\".');\n }\n\n return method;\n}\n\nfunction getMethodMapKey(sourceFormat, seriesLayoutBy) {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS ? sourceFormat + '_' + seriesLayoutBy : sourceFormat;\n} // ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,\n// Consider persistent.\n// Caution: why use raw value to display on label or tooltip?\n// A reason is to avoid format. For example time value we do not know\n// how to format is expected. More over, if stack is used, calculated\n// value may be 0.91000000001, which have brings trouble to display.\n// TODO: consider how to treat null/undefined/NaN when display?\n\n\nexport function retrieveRawValue(data, dataIndex, dim // If dimIndex is null/undefined, return OptionDataItem.\n// Otherwise, return OptionDataValue.\n) {\n if (!data) {\n return;\n } // Consider data may be not persistent.\n\n\n var dataItem = data.getRawDataItem(dataIndex);\n\n if (dataItem == null) {\n return;\n }\n\n var sourceFormat = data.getProvider().getSource().sourceFormat;\n var dimName;\n var dimIndex;\n var dimInfo = data.getDimensionInfo(dim);\n\n if (dimInfo) {\n dimName = dimInfo.name;\n dimIndex = dimInfo.index;\n }\n\n return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, dimName);\n}\n/**\n * Compatible with some cases (in pie, map) like:\n * data: [{name: 'xx', value: 5, selected: true}, ...]\n * where only sourceFormat is 'original' and 'objectRows' supported.\n *\n * // TODO\n * Supported detail options in data item when using 'arrayRows'.\n *\n * @param data\n * @param dataIndex\n * @param attr like 'selected'\n */\n\nexport function retrieveRawAttr(data, dataIndex, attr) {\n if (!data) {\n return;\n }\n\n var sourceFormat = data.getProvider().getSource().sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\n return;\n }\n\n var dataItem = data.getRawDataItem(dataIndex);\n\n if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !isObject(dataItem)) {\n dataItem = null;\n }\n\n if (dataItem) {\n return dataItem[attr];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { formatTpl } from '../../util/format';\nimport { makePrintable } from '../../util/log';\nvar DIMENSION_LABEL_REG = /\\{@(.+?)\\}/g;\n\nvar DataFormatMixin =\n/** @class */\nfunction () {\n function DataFormatMixin() {}\n /**\n * Get params for formatter\n */\n\n\n DataFormatMixin.prototype.getDataParams = function (dataIndex, dataType) {\n var data = this.getData(dataType);\n var rawValue = this.getRawValue(dataIndex, dataType);\n var rawDataIndex = data.getRawIndex(dataIndex);\n var name = data.getName(dataIndex);\n var itemOpt = data.getRawDataItem(dataIndex);\n var style = data.getItemVisual(dataIndex, 'style');\n var color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill'];\n var borderColor = style && style.stroke;\n var mainType = this.mainType;\n var isSeries = mainType === 'series';\n var userOutput = data.userOutput;\n return {\n componentType: mainType,\n componentSubType: this.subType,\n componentIndex: this.componentIndex,\n seriesType: isSeries ? this.subType : null,\n seriesIndex: this.seriesIndex,\n seriesId: isSeries ? this.id : null,\n seriesName: isSeries ? this.name : null,\n name: name,\n dataIndex: rawDataIndex,\n data: itemOpt,\n dataType: dataType,\n value: rawValue,\n color: color,\n borderColor: borderColor,\n dimensionNames: userOutput ? userOutput.dimensionNames : null,\n encode: userOutput ? userOutput.encode : null,\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: ['seriesName', 'name', 'value']\n };\n };\n /**\n * Format label\n * @param dataIndex\n * @param status 'normal' by default\n * @param dataType\n * @param labelDimIndex Only used in some chart that\n * use formatter in different dimensions, like radar.\n * @param formatter Formatter given outside.\n * @return return null/undefined if no formatter\n */\n\n\n DataFormatMixin.prototype.getFormattedLabel = function (dataIndex, status, dataType, labelDimIndex, formatter, extendParams) {\n status = status || 'normal';\n var data = this.getData(dataType);\n var params = this.getDataParams(dataIndex, dataType);\n\n if (extendParams) {\n params.value = extendParams.interpolatedValue;\n }\n\n if (labelDimIndex != null && zrUtil.isArray(params.value)) {\n params.value = params.value[labelDimIndex];\n }\n\n if (!formatter) {\n var itemModel = data.getItemModel(dataIndex); // @ts-ignore\n\n formatter = itemModel.get(status === 'normal' ? ['label', 'formatter'] : [status, 'label', 'formatter']);\n }\n\n if (typeof formatter === 'function') {\n params.status = status;\n params.dimensionIndex = labelDimIndex;\n return formatter(params);\n } else if (typeof formatter === 'string') {\n var str = formatTpl(formatter, params); // Support 'aaa{@[3]}bbb{@product}ccc'.\n // Do not support '}' in dim name util have to.\n\n return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr) {\n var len = dimStr.length;\n var dimLoose = dimStr.charAt(0) === '[' && dimStr.charAt(len - 1) === ']' ? +dimStr.slice(1, len - 1) // Also support: '[]' => 0\n : dimStr;\n var val = retrieveRawValue(data, dataIndex, dimLoose);\n\n if (extendParams && zrUtil.isArray(extendParams.interpolatedValue)) {\n var dimInfo = data.getDimensionInfo(dimLoose);\n\n if (dimInfo) {\n val = extendParams.interpolatedValue[dimInfo.index];\n }\n }\n\n return val != null ? val + '' : '';\n });\n }\n };\n /**\n * Get raw value in option\n */\n\n\n DataFormatMixin.prototype.getRawValue = function (idx, dataType) {\n return retrieveRawValue(this.getData(dataType), idx);\n };\n /**\n * Should be implemented.\n * @param {number} dataIndex\n * @param {boolean} [multipleSeries=false]\n * @param {string} [dataType]\n */\n\n\n DataFormatMixin.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n // Empty function\n return;\n };\n\n return DataFormatMixin;\n}();\n\nexport { DataFormatMixin };\n; // PENDING: previously we accept this type when calling `formatTooltip`,\n// but guess little chance has been used outside. Do we need to backward\n// compat it?\n// type TooltipFormatResultLegacyObject = {\n// // `html` means the markup language text, either in 'html' or 'richText'.\n// // The name `html` is not appropriate becuase in 'richText' it is not a HTML\n// // string. But still support it for backward compat.\n// html: string;\n// markers: Dictionary;\n// };\n\n/**\n * For backward compat, normalize the return from `formatTooltip`.\n */\n\nexport function normalizeTooltipFormatResult(result // markersExisting: Dictionary\n) {\n var markupText; // let markers: Dictionary;\n\n var markupFragment;\n\n if (zrUtil.isObject(result)) {\n if (result.type) {\n markupFragment = result;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('The return type of `formatTooltip` is not supported: ' + makePrintable(result));\n }\n } // else {\n // markupText = (result as TooltipFormatResultLegacyObject).html;\n // markers = (result as TooltipFormatResultLegacyObject).markers;\n // if (markersExisting) {\n // markers = zrUtil.merge(markersExisting, markers);\n // }\n // }\n\n } else {\n markupText = result;\n }\n\n return {\n markupText: markupText,\n // markers: markers || markersExisting,\n markupFragment: markupFragment\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray } from 'zrender/lib/core/util';\n;\n/**\n * @param {Object} define\n * @return See the return of `createTask`.\n */\n\nexport function createTask(define) {\n return new Task(define);\n}\n\nvar Task =\n/** @class */\nfunction () {\n function Task(define) {\n define = define || {};\n this._reset = define.reset;\n this._plan = define.plan;\n this._count = define.count;\n this._onDirty = define.onDirty;\n this._dirty = true;\n }\n /**\n * @param step Specified step.\n * @param skip Skip customer perform call.\n * @param modBy Sampling window size.\n * @param modDataCount Sampling count.\n * @return whether unfinished.\n */\n\n\n Task.prototype.perform = function (performArgs) {\n var upTask = this._upstream;\n var skip = performArgs && performArgs.skip; // TODO some refactor.\n // Pull data. Must pull data each time, because context.data\n // may be updated by Series.setData.\n\n if (this._dirty && upTask) {\n var context = this.context;\n context.data = context.outputData = upTask.context.outputData;\n }\n\n if (this.__pipeline) {\n this.__pipeline.currentTask = this;\n }\n\n var planResult;\n\n if (this._plan && !skip) {\n planResult = this._plan(this.context);\n } // Support sharding by mod, which changes the render sequence and makes the rendered graphic\n // elements uniformed distributed when progress, especially when moving or zooming.\n\n\n var lastModBy = normalizeModBy(this._modBy);\n var lastModDataCount = this._modDataCount || 0;\n var modBy = normalizeModBy(performArgs && performArgs.modBy);\n var modDataCount = performArgs && performArgs.modDataCount || 0;\n\n if (lastModBy !== modBy || lastModDataCount !== modDataCount) {\n planResult = 'reset';\n }\n\n function normalizeModBy(val) {\n !(val >= 1) && (val = 1); // jshint ignore:line\n\n return val;\n }\n\n var forceFirstProgress;\n\n if (this._dirty || planResult === 'reset') {\n this._dirty = false;\n forceFirstProgress = this._doReset(skip);\n }\n\n this._modBy = modBy;\n this._modDataCount = modDataCount;\n var step = performArgs && performArgs.step;\n\n if (upTask) {\n if (process.env.NODE_ENV !== 'production') {\n assert(upTask._outputDueEnd != null);\n }\n\n this._dueEnd = upTask._outputDueEnd;\n } // DataTask or overallTask\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this._progress || this._count);\n }\n\n this._dueEnd = this._count ? this._count(this.context) : Infinity;\n } // Note: Stubs, that its host overall task let it has progress, has progress.\n // If no progress, pass index from upstream to downstream each time plan called.\n\n\n if (this._progress) {\n var start = this._dueIndex;\n var end = Math.min(step != null ? this._dueIndex + step : Infinity, this._dueEnd);\n\n if (!skip && (forceFirstProgress || start < end)) {\n var progress = this._progress;\n\n if (isArray(progress)) {\n for (var i = 0; i < progress.length; i++) {\n this._doProgress(progress[i], start, end, modBy, modDataCount);\n }\n } else {\n this._doProgress(progress, start, end, modBy, modDataCount);\n }\n }\n\n this._dueIndex = end; // If no `outputDueEnd`, assume that output data and\n // input data is the same, so use `dueIndex` as `outputDueEnd`.\n\n var outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : end;\n\n if (process.env.NODE_ENV !== 'production') {\n // ??? Can not rollback.\n assert(outputDueEnd >= this._outputDueEnd);\n }\n\n this._outputDueEnd = outputDueEnd;\n } else {\n // (1) Some overall task has no progress.\n // (2) Stubs, that its host overall task do not let it has progress, has no progress.\n // This should always be performed so it can be passed to downstream.\n this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;\n }\n\n return this.unfinished();\n };\n\n Task.prototype.dirty = function () {\n this._dirty = true;\n this._onDirty && this._onDirty(this.context);\n };\n\n Task.prototype._doProgress = function (progress, start, end, modBy, modDataCount) {\n iterator.reset(start, end, modBy, modDataCount);\n this._callingProgress = progress;\n\n this._callingProgress({\n start: start,\n end: end,\n count: end - start,\n next: iterator.next\n }, this.context);\n };\n\n Task.prototype._doReset = function (skip) {\n this._dueIndex = this._outputDueEnd = this._dueEnd = 0;\n this._settedOutputEnd = null;\n var progress;\n var forceFirstProgress;\n\n if (!skip && this._reset) {\n progress = this._reset(this.context);\n\n if (progress && progress.progress) {\n forceFirstProgress = progress.forceFirstProgress;\n progress = progress.progress;\n } // To simplify no progress checking, array must has item.\n\n\n if (isArray(progress) && !progress.length) {\n progress = null;\n }\n }\n\n this._progress = progress;\n this._modBy = this._modDataCount = null;\n var downstream = this._downstream;\n downstream && downstream.dirty();\n return forceFirstProgress;\n };\n\n Task.prototype.unfinished = function () {\n return this._progress && this._dueIndex < this._dueEnd;\n };\n /**\n * @param downTask The downstream task.\n * @return The downstream task.\n */\n\n\n Task.prototype.pipe = function (downTask) {\n if (process.env.NODE_ENV !== 'production') {\n assert(downTask && !downTask._disposed && downTask !== this);\n } // If already downstream, do not dirty downTask.\n\n\n if (this._downstream !== downTask || this._dirty) {\n this._downstream = downTask;\n downTask._upstream = this;\n downTask.dirty();\n }\n };\n\n Task.prototype.dispose = function () {\n if (this._disposed) {\n return;\n }\n\n this._upstream && (this._upstream._downstream = null);\n this._downstream && (this._downstream._upstream = null);\n this._dirty = false;\n this._disposed = true;\n };\n\n Task.prototype.getUpstream = function () {\n return this._upstream;\n };\n\n Task.prototype.getDownstream = function () {\n return this._downstream;\n };\n\n Task.prototype.setOutputEnd = function (end) {\n // This only happend in dataTask, dataZoom, map, currently.\n // where dataZoom do not set end each time, but only set\n // when reset. So we should record the setted end, in case\n // that the stub of dataZoom perform again and earse the\n // setted end by upstream.\n this._outputDueEnd = this._settedOutputEnd = end;\n };\n\n return Task;\n}();\n\nexport { Task };\n\nvar iterator = function () {\n var end;\n var current;\n var modBy;\n var modDataCount;\n var winCount;\n var it = {\n reset: function (s, e, sStep, sCount) {\n current = s;\n end = e;\n modBy = sStep;\n modDataCount = sCount;\n winCount = Math.ceil(modDataCount / modBy);\n it.next = modBy > 1 && modDataCount > 0 ? modNext : sequentialNext;\n }\n };\n return it;\n\n function sequentialNext() {\n return current < end ? current++ : null;\n }\n\n function modNext() {\n var dataIndex = current % winCount * modBy + Math.ceil(current / winCount);\n var result = current >= end ? null : dataIndex < modDataCount ? dataIndex // If modDataCount is smaller than data.count() (consider `appendData` case),\n // Use normal linear rendering mode.\n : current;\n current++;\n return result;\n }\n}(); ///////////////////////////////////////////////////////////\n// For stream debug (Should be commented out after used!)\n// @usage: printTask(this, 'begin');\n// @usage: printTask(this, null, {someExtraProp});\n// @usage: Use `__idxInPipeline` as conditional breakpiont.\n//\n// window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void {\n// window.ecTaskUID == null && (window.ecTaskUID = 0);\n// task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`);\n// task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`);\n// let props = [];\n// if (task.__pipeline) {\n// let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`;\n// props.push({text: '__idxInPipeline/total', value: val});\n// } else {\n// let stubCount = 0;\n// task.agentStubMap.each(() => stubCount++);\n// props.push({text: 'idx', value: `overall (stubs: ${stubCount})`});\n// }\n// props.push({text: 'uid', value: task.uidDebug});\n// if (task.__pipeline) {\n// props.push({text: 'pipelineId', value: task.__pipeline.id});\n// task.agent && props.push(\n// {text: 'stubFor', value: task.agent.uidDebug}\n// );\n// }\n// props.push(\n// {text: 'dirty', value: task._dirty},\n// {text: 'dueIndex', value: task._dueIndex},\n// {text: 'dueEnd', value: task._dueEnd},\n// {text: 'outputDueEnd', value: task._outputDueEnd}\n// );\n// if (extra) {\n// Object.keys(extra).forEach(key => {\n// props.push({text: key, value: extra[key]});\n// });\n// }\n// let args = ['color: blue'];\n// let msg = `%c[${prefix || 'T'}] %c` + props.map(item => (\n// args.push('color: green', 'color: red'),\n// `${item.text}: %c${item.value}`\n// )).join('%c, ');\n// console.log.apply(console, [msg].concat(args));\n// // console.log(this);\n// };\n// window.printPipeline = function (task: any, prefix: string) {\n// const pipeline = task.__pipeline;\n// let currTask = pipeline.head;\n// while (currTask) {\n// window.printTask(currTask, prefix);\n// currTask = currTask._downstream;\n// }\n// };\n// window.showChain = function (chainHeadTask) {\n// var chain = [];\n// var task = chainHeadTask;\n// while (task) {\n// chain.push({\n// task: task,\n// up: task._upstream,\n// down: task._downstream,\n// idxInPipeline: task.__idxInPipeline\n// });\n// task = task._downstream;\n// }\n// return chain;\n// };\n// window.findTaskInChain = function (task, chainHeadTask) {\n// let chain = window.showChain(chainHeadTask);\n// let result = [];\n// for (let i = 0; i < chain.length; i++) {\n// let chainItem = chain[i];\n// if (chainItem.task === task) {\n// result.push(i);\n// }\n// }\n// return result;\n// };\n// window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) {\n// let chainA = window.showChain(chainHeadTaskA);\n// for (let i = 0; i < chainA.length; i++) {\n// console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB));\n// }\n// };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseDate, numericToNumber } from '../../util/number';\nimport { createHashMap, trim, hasOwn } from 'zrender/lib/core/util';\nimport { throwError } from '../../util/log';\n/**\n * Convert raw the value in to inner value in List.\n *\n * [Performance sensitive]\n *\n * [Caution]: this is the key logic of user value parser.\n * For backward compatibiliy, do not modify it until have to!\n */\n\nexport function parseDataValue(value, // For high performance, do not omit the second param.\nopt) {\n // Performance sensitive.\n var dimType = opt && opt.type;\n\n if (dimType === 'ordinal') {\n // If given value is a category string\n var ordinalMeta = opt && opt.ordinalMeta;\n return ordinalMeta ? ordinalMeta.parseAndCollect(value) : value;\n }\n\n if (dimType === 'time' // spead up when using timestamp\n && typeof value !== 'number' && value != null && value !== '-') {\n value = +parseDate(value);\n } // dimType defaults 'number'.\n // If dimType is not ordinal and value is null or undefined or NaN or '-',\n // parse to NaN.\n // number-like string (like ' 123 ') can be converted to a number.\n // where null/undefined or other string will be converted to NaN.\n\n\n return value == null || value === '' ? NaN // If string (like '-'), using '+' parse to NaN\n // If object, also parse to NaN\n : +value;\n}\n;\nvar valueParserMap = createHashMap({\n 'number': function (val) {\n // Do not use `numericToNumber` here. We have by defualt `numericToNumber`.\n // Here the number parser can have loose rule:\n // enable to cut suffix: \"120px\" => 120, \"14%\" => 14.\n return parseFloat(val);\n },\n 'time': function (val) {\n // return timestamp.\n return +parseDate(val);\n },\n 'trim': function (val) {\n return typeof val === 'string' ? trim(val) : val;\n }\n});\nexport function getRawValueParser(type) {\n return valueParserMap.get(type);\n}\nvar ORDER_COMPARISON_OP_MAP = {\n lt: function (lval, rval) {\n return lval < rval;\n },\n lte: function (lval, rval) {\n return lval <= rval;\n },\n gt: function (lval, rval) {\n return lval > rval;\n },\n gte: function (lval, rval) {\n return lval >= rval;\n }\n};\n\nvar FilterOrderComparator =\n/** @class */\nfunction () {\n function FilterOrderComparator(op, rval) {\n if (typeof rval !== 'number') {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'rvalue of \"<\", \">\", \"<=\", \">=\" can only be number in filter.';\n }\n\n throwError(errMsg);\n }\n\n this._opFn = ORDER_COMPARISON_OP_MAP[op];\n this._rvalFloat = numericToNumber(rval);\n } // Performance sensitive.\n\n\n FilterOrderComparator.prototype.evaluate = function (lval) {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n return typeof lval === 'number' ? this._opFn(lval, this._rvalFloat) : this._opFn(numericToNumber(lval), this._rvalFloat);\n };\n\n return FilterOrderComparator;\n}();\n\nvar SortOrderComparator =\n/** @class */\nfunction () {\n /**\n * @param order by defualt: 'asc'\n * @param incomparable by defualt: Always on the tail.\n * That is, if 'asc' => 'max', if 'desc' => 'min'\n * See the definition of \"incomparable\" in [SORT_COMPARISON_RULE]\n */\n function SortOrderComparator(order, incomparable) {\n var isDesc = order === 'desc';\n this._resultLT = isDesc ? 1 : -1;\n\n if (incomparable == null) {\n incomparable = isDesc ? 'min' : 'max';\n }\n\n this._incomparable = incomparable === 'min' ? -Infinity : Infinity;\n } // See [SORT_COMPARISON_RULE].\n // Performance sensitive.\n\n\n SortOrderComparator.prototype.evaluate = function (lval, rval) {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n var lvalTypeof = typeof lval;\n var rvalTypeof = typeof rval;\n var lvalFloat = lvalTypeof === 'number' ? lval : numericToNumber(lval);\n var rvalFloat = rvalTypeof === 'number' ? rval : numericToNumber(rval);\n var lvalNotNumeric = isNaN(lvalFloat);\n var rvalNotNumeric = isNaN(rvalFloat);\n\n if (lvalNotNumeric) {\n lvalFloat = this._incomparable;\n }\n\n if (rvalNotNumeric) {\n rvalFloat = this._incomparable;\n }\n\n if (lvalNotNumeric && rvalNotNumeric) {\n var lvalIsStr = lvalTypeof === 'string';\n var rvalIsStr = rvalTypeof === 'string';\n\n if (lvalIsStr) {\n lvalFloat = rvalIsStr ? lval : 0;\n }\n\n if (rvalIsStr) {\n rvalFloat = lvalIsStr ? rval : 0;\n }\n }\n\n return lvalFloat < rvalFloat ? this._resultLT : lvalFloat > rvalFloat ? -this._resultLT : 0;\n };\n\n return SortOrderComparator;\n}();\n\nexport { SortOrderComparator };\n\nvar FilterEqualityComparator =\n/** @class */\nfunction () {\n function FilterEqualityComparator(isEq, rval) {\n this._rval = rval;\n this._isEQ = isEq;\n this._rvalTypeof = typeof rval;\n this._rvalFloat = numericToNumber(rval);\n } // Performance sensitive.\n\n\n FilterEqualityComparator.prototype.evaluate = function (lval) {\n var eqResult = lval === this._rval;\n\n if (!eqResult) {\n var lvalTypeof = typeof lval;\n\n if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {\n eqResult = numericToNumber(lval) === this._rvalFloat;\n }\n }\n\n return this._isEQ ? eqResult : !eqResult;\n };\n\n return FilterEqualityComparator;\n}();\n/**\n * [FILTER_COMPARISON_RULE]\n * `lt`|`lte`|`gt`|`gte`:\n * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.\n * `eq`:\n * + If same type, compare with `===`.\n * + If there is one number, convert to number (`numericToNumber`) to compare.\n * + Else return `false`.\n * `ne`:\n * + Not `eq`.\n *\n *\n * [SORT_COMPARISON_RULE]\n * All the values are grouped into three categories:\n * + \"numeric\" (number and numeric string)\n * + \"non-numeric-string\" (string that excluding numeric string)\n * + \"others\"\n * \"numeric\" vs \"numeric\": values are ordered by number order.\n * \"non-numeric-string\" vs \"non-numeric-string\": values are ordered by ES spec (#sec-abstract-relational-comparison).\n * \"others\" vs \"others\": do not change order (always return 0).\n * \"numeric\" vs \"non-numeric-string\": \"non-numeric-string\" is treated as \"incomparable\".\n * \"number\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"non-numeric-string\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"incomparable\" will be seen as -Infinity or Infinity (depends on the settings).\n * MEMO:\n * non-numeric string sort make sence when need to put the items with the same tag together.\n * But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,\n * So we treat \"numeric-string\" sorted by number order rather than string comparison.\n *\n *\n * [CHECK_LIST_OF_THE_RULE_DESIGN]\n * + Do not support string comparison until required. And also need to\n * void the misleading of \"2\" > \"12\".\n * + Should avoid the misleading case:\n * `\" 22 \" gte \"22\"` is `true` but `\" 22 \" eq \"22\"` is `false`.\n * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...\n * + Only \"numeric\" can be converted to comparable number, otherwise converted to NaN.\n * See `util/number.ts#numericToNumber`.\n *\n * @return If `op` is not `RelationalOperator`, return null;\n */\n\n\nexport function createFilterComparator(op, rval) {\n return op === 'eq' || op === 'ne' ? new FilterEqualityComparator(op === 'eq', rval) : hasOwn(ORDER_COMPARISON_OP_MAP, op) ? new FilterOrderComparator(op, rval) : null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\nimport { normalizeToArray } from '../../util/model';\nimport { createHashMap, bind, each, hasOwn, map, clone, isObject, extend } from 'zrender/lib/core/util';\nimport { getRawSourceItemGetter, getRawSourceDataCounter, getRawSourceValueGetter } from './dataProvider';\nimport { parseDataValue } from './dataValueHelper';\nimport { consoleLog, makePrintable, throwError } from '../../util/log';\nimport { createSource, detectSourceFormat } from '../Source';\n/**\n * TODO: disable writable.\n * This structure will be exposed to users.\n */\n\nvar ExternalSource =\n/** @class */\nfunction () {\n function ExternalSource() {}\n\n ExternalSource.prototype.getRawData = function () {\n // Only built-in transform available.\n throw new Error('not supported');\n };\n\n ExternalSource.prototype.getRawDataItem = function (dataIndex) {\n // Only built-in transform available.\n throw new Error('not supported');\n };\n\n ExternalSource.prototype.cloneRawData = function () {\n return;\n };\n /**\n * @return If dimension not found, return null/undefined.\n */\n\n\n ExternalSource.prototype.getDimensionInfo = function (dim) {\n return;\n };\n /**\n * dimensions defined if and only if either:\n * (a) dataset.dimensions are declared.\n * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).\n * If dimensions are defined, `dimensionInfoAll` is corresponding to\n * the defined dimensions.\n * Otherwise, `dimensionInfoAll` is determined by data columns.\n * @return Always return an array (even empty array).\n */\n\n\n ExternalSource.prototype.cloneAllDimensionInfo = function () {\n return;\n };\n\n ExternalSource.prototype.count = function () {\n return;\n };\n /**\n * Only support by dimension index.\n * No need to support by dimension name in transform function,\n * becuase transform function is not case-specific, no need to use name literally.\n */\n\n\n ExternalSource.prototype.retrieveValue = function (dataIndex, dimIndex) {\n return;\n };\n\n ExternalSource.prototype.retrieveValueFromItem = function (dataItem, dimIndex) {\n return;\n };\n\n ExternalSource.prototype.convertValue = function (rawVal, dimInfo) {\n return parseDataValue(rawVal, dimInfo);\n };\n\n return ExternalSource;\n}();\n\nexport { ExternalSource };\n\nfunction createExternalSource(internalSource, externalTransform) {\n var extSource = new ExternalSource();\n var data = internalSource.data;\n var sourceFormat = extSource.sourceFormat = internalSource.sourceFormat;\n var sourceHeaderCount = internalSource.startIndex;\n var errMsg = '';\n\n if (internalSource.seriesLayoutBy !== SERIES_LAYOUT_BY_COLUMN) {\n // For the logic simplicity in transformer, only 'culumn' is\n // supported in data transform. Otherwise, the `dimensionsDefine`\n // might be detected by 'row', which probably confuses users.\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`seriesLayoutBy` of upstream dataset can only be \"column\" in data transform.';\n }\n\n throwError(errMsg);\n } // [MEMO]\n // Create a new dimensions structure for exposing.\n // Do not expose all dimension info to users directly.\n // Becuase the dimension is probably auto detected from data and not might reliable.\n // Should not lead the transformers to think that is relialbe and return it.\n // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n\n\n var dimensions = [];\n var dimsByName = {};\n var dimsDef = internalSource.dimensionsDefine;\n\n if (dimsDef) {\n each(dimsDef, function (dimDef, idx) {\n var name = dimDef.name;\n var dimDefExt = {\n index: idx,\n name: name,\n displayName: dimDef.displayName\n };\n dimensions.push(dimDefExt); // Users probably not sepcify dimension name. For simplicity, data transform\n // do not generate dimension name.\n\n if (name != null) {\n // Dimension name should not be duplicated.\n // For simplicity, data transform forbid name duplication, do not generate\n // new name like module `completeDimensions.ts` did, but just tell users.\n var errMsg_1 = '';\n\n if (hasOwn(dimsByName, name)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg_1 = 'dimension name \"' + name + '\" duplicated.';\n }\n\n throwError(errMsg_1);\n }\n\n dimsByName[name] = dimDefExt;\n }\n });\n } // If dimension definitions are not defined and can not be detected.\n // e.g., pure data `[[11, 22], ...]`.\n else {\n for (var i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) {\n // Do not generete name or anything others. The consequence process in\n // `transform` or `series` probably have there own name generation strategry.\n dimensions.push({\n index: i\n });\n }\n } // Implement public methods:\n\n\n var rawItemGetter = getRawSourceItemGetter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n\n if (externalTransform.__isBuiltIn) {\n extSource.getRawDataItem = function (dataIndex) {\n return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);\n };\n\n extSource.getRawData = bind(getRawData, null, internalSource);\n }\n\n extSource.cloneRawData = bind(cloneRawData, null, internalSource);\n var rawCounter = getRawSourceDataCounter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n extSource.count = bind(rawCounter, null, data, sourceHeaderCount, dimensions);\n var rawValueGetter = getRawSourceValueGetter(sourceFormat);\n\n extSource.retrieveValue = function (dataIndex, dimIndex) {\n var rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);\n return retrieveValueFromItem(rawItem, dimIndex);\n };\n\n var retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) {\n if (dataItem == null) {\n return;\n }\n\n var dimDef = dimensions[dimIndex]; // When `dimIndex` is `null`, `rawValueGetter` return the whole item.\n\n if (dimDef) {\n return rawValueGetter(dataItem, dimIndex, dimDef.name);\n }\n };\n\n extSource.getDimensionInfo = bind(getDimensionInfo, null, dimensions, dimsByName);\n extSource.cloneAllDimensionInfo = bind(cloneAllDimensionInfo, null, dimensions);\n return extSource;\n}\n\nfunction getRawData(upstream) {\n var sourceFormat = upstream.sourceFormat;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`getRawData` is not supported in source format ' + sourceFormat;\n }\n\n throwError(errMsg);\n }\n\n return upstream.data;\n}\n\nfunction cloneRawData(upstream) {\n var sourceFormat = upstream.sourceFormat;\n var data = upstream.data;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`cloneRawData` is not supported in source format ' + sourceFormat;\n }\n\n throwError(errMsg);\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var result = [];\n\n for (var i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(data[i].slice());\n }\n\n return result;\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n var result = [];\n\n for (var i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(extend({}, data[i]));\n }\n\n return result;\n }\n}\n\nfunction getDimensionInfo(dimensions, dimsByName, dim) {\n if (dim == null) {\n return;\n } // Keep the same logic as `List::getDimension` did.\n\n\n if (typeof dim === 'number' // If being a number-like string but not being defined a dimension name.\n || !isNaN(dim) && !hasOwn(dimsByName, dim)) {\n return dimensions[dim];\n } else if (hasOwn(dimsByName, dim)) {\n return dimsByName[dim];\n }\n}\n\nfunction cloneAllDimensionInfo(dimensions) {\n return clone(dimensions);\n}\n\nvar externalTransformMap = createHashMap();\nexport function registerExternalTransform(externalTransform) {\n externalTransform = clone(externalTransform);\n var type = externalTransform.type;\n var errMsg = '';\n\n if (!type) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Must have a `type` when `registerTransform`.';\n }\n\n throwError(errMsg);\n }\n\n var typeParsed = type.split(':');\n\n if (typeParsed.length !== 2) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Name must include namespace like \"ns:regression\".';\n }\n\n throwError(errMsg);\n } // Namespace 'echarts:xxx' is official namespace, where the transforms should\n // be called directly via 'xxx' rather than 'echarts:xxx'.\n\n\n var isBuiltIn = false;\n\n if (typeParsed[0] === 'echarts') {\n type = typeParsed[1];\n isBuiltIn = true;\n }\n\n externalTransform.__isBuiltIn = isBuiltIn;\n externalTransformMap.set(type, externalTransform);\n}\nexport function applyDataTransform(rawTransOption, sourceList, infoForPrint) {\n var pipedTransOption = normalizeToArray(rawTransOption);\n var pipeLen = pipedTransOption.length;\n var errMsg = '';\n\n if (!pipeLen) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'If `transform` declared, it should at least contain one transform.';\n }\n\n throwError(errMsg);\n }\n\n for (var i = 0, len = pipeLen; i < len; i++) {\n var transOption = pipedTransOption[i];\n sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i); // piped transform only support single input, except the fist one.\n // piped transform only support single output, except the last one.\n\n if (i !== len - 1) {\n sourceList.length = Math.max(sourceList.length, 1);\n }\n }\n\n return sourceList;\n}\n\nfunction applySingleDataTransform(transOption, upSourceList, infoForPrint, // If `pipeIndex` is null/undefined, no piped transform.\npipeIndex) {\n var errMsg = '';\n\n if (!upSourceList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Must have at least one upstream dataset.';\n }\n\n throwError(errMsg);\n }\n\n if (!isObject(transOption)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'transform declaration must be an object rather than ' + typeof transOption + '.';\n }\n\n throwError(errMsg);\n }\n\n var transType = transOption.type;\n var externalTransform = externalTransformMap.get(transType);\n\n if (!externalTransform) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Can not find transform on type \"' + transType + '\".';\n }\n\n throwError(errMsg);\n } // Prepare source\n\n\n var extUpSourceList = map(upSourceList, function (upSource) {\n return createExternalSource(upSource, externalTransform);\n });\n var resultList = normalizeToArray(externalTransform.transform({\n upstream: extUpSourceList[0],\n upstreamList: extUpSourceList,\n config: clone(transOption.config)\n }));\n\n if (process.env.NODE_ENV !== 'production') {\n if (transOption.print) {\n var printStrArr = map(resultList, function (extSource) {\n var pipeIndexStr = pipeIndex != null ? ' === pipe index: ' + pipeIndex : '';\n return ['=== dataset index: ' + infoForPrint.datasetIndex + pipeIndexStr + ' ===', '- transform result data:', makePrintable(extSource.data), '- transform result dimensions:', makePrintable(extSource.dimensions)].join('\\n');\n }).join('\\n');\n consoleLog(printStrArr);\n }\n }\n\n return map(resultList, function (result, resultIndex) {\n var errMsg = '';\n\n if (!isObject(result)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'A transform should not return some empty results.';\n }\n\n throwError(errMsg);\n }\n\n if (!result.data) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Transform result data should be not be null or undefined';\n }\n\n throwError(errMsg);\n }\n\n var sourceFormat = detectSourceFormat(result.data);\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Transform result data should be array rows or object rows.';\n }\n\n throwError(errMsg);\n }\n\n var resultMetaRawOption;\n var firstUpSource = upSourceList[0];\n /**\n * Intuitively, the end users known the content of the original `dataset.source`,\n * calucating the transform result in mind.\n * Suppose the original `dataset.source` is:\n * ```js\n * [\n * ['product', '2012', '2013', '2014', '2015'],\n * ['AAA', 41.1, 30.4, 65.1, 53.3],\n * ['BBB', 86.5, 92.1, 85.7, 83.1],\n * ['CCC', 24.1, 67.2, 79.5, 86.4]\n * ]\n * ```\n * The dimension info have to be detected from the source data.\n * Some of the transformers (like filter, sort) will follow the dimension info\n * of upstream, while others use new dimensions (like aggregate).\n * Transformer can output a field `dimensions` to define the its own output dimensions.\n * We also allow transformers to ignore the output `dimensions` field, and\n * inherit the upstream dimensions definition. It can reduce the burden of handling\n * dimensions in transformers.\n *\n * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n */\n\n if (firstUpSource && resultIndex === 0 // If transformer returns `dimensions`, it means that the transformer has different\n // dimensions definitions. We do not inherit anything from upstream.\n && !result.dimensions) {\n var startIndex = firstUpSource.startIndex; // We copy the header of upstream to the result becuase:\n // (1) The returned data always does not contain header line and can not be used\n // as dimension-detection. In this case we can not use \"detected dimensions\" of\n // upstream directly, because it might be detected based on different `seriesLayoutBy`.\n // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.\n // So the original detected header should be add to the result, otherwise they can not be read.\n\n if (startIndex) {\n result.data = firstUpSource.data.slice(0, startIndex).concat(result.data);\n }\n\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: startIndex,\n dimensions: firstUpSource.metaRawOption.dimensions\n };\n } else {\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: 0,\n dimensions: result.dimensions\n };\n }\n\n return createSource(result.data, resultMetaRawOption, null, null);\n });\n}\n\nfunction isSupportedSourceFormat(sourceFormat) {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS || sourceFormat === SOURCE_FORMAT_OBJECT_ROWS;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { setAsPrimitive, map, isTypedArray, assert, each, retrieve2 } from 'zrender/lib/core/util';\nimport { createSource, cloneSourceShallow } from '../Source';\nimport { SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL } from '../../util/types';\nimport { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper';\nimport { applyDataTransform } from './transform';\n/**\n * [REQUIREMENT_MEMO]:\n * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option.\n * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and\n * `root-dataset`. Them on `series` has higher priority.\n * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might\n * confuse users: whether those props indicate how to visit the upstream source or visit\n * the transform result source, and some transforms has nothing to do with these props,\n * and some transforms might have multiple upstream.\n * (3) Transforms should specify `metaRawOption` in each output, just like they can be\n * declared in `root-dataset`.\n * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.\n * That is for reducing complexity in transfroms.\n * PENDING: Whether to provide transposition transform?\n *\n * [IMPLEMENTAION_MEMO]:\n * \"sourceVisitConfig\" are calculated from `metaRawOption` and `data`.\n * They will not be calculated until `source` is about to be visited (to prevent from\n * duplicate calcuation). `source` is visited only in series and input to transforms.\n *\n * [DIMENSION_INHERIT_RULE]:\n * By default the dimensions are inherited from ancestors, unless a transform return\n * a new dimensions definition.\n * Consider the case:\n * ```js\n * dataset: [{\n * source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * dataset: [{\n * dimension: ['Product', 'Sales', 'Prise'],\n * source: [ ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * ```\n * The two types of option should have the same behavior after transform.\n *\n *\n * [SCENARIO]:\n * (1) Provide source data directly:\n * ```js\n * series: {\n * encode: {...},\n * dimensions: [...]\n * seriesLayoutBy: 'row',\n * data: [[...]]\n * }\n * ```\n * (2) Series refer to dataset.\n * ```js\n * series: [{\n * encode: {...}\n * // Ignore datasetIndex means `datasetIndex: 0`\n * // and the dimensions defination in dataset is used\n * }, {\n * encode: {...},\n * seriesLayoutBy: 'column',\n * datasetIndex: 1\n * }]\n * ```\n * (3) dataset transform\n * ```js\n * dataset: [{\n * source: [...]\n * }, {\n * source: [...]\n * }, {\n * // By default from 0.\n * transform: { type: 'filter', config: {...} }\n * }, {\n * // Piped.\n * transform: [\n * { type: 'filter', config: {...} },\n * { type: 'sort', config: {...} }\n * ]\n * }, {\n * id: 'regressionData',\n * fromDatasetIndex: 1,\n * // Third-party transform\n * transform: { type: 'ecStat:regression', config: {...} }\n * }, {\n * // retrieve the extra result.\n * id: 'regressionFormula',\n * fromDatasetId: 'regressionData',\n * fromTransformResult: 1\n * }]\n * ```\n */\n\nvar SourceManager =\n/** @class */\nfunction () {\n function SourceManager(sourceHost) {\n // Cached source. Do not repeat calculating if not dirty.\n this._sourceList = []; // version sign of each upstream source manager.\n\n this._upstreamSignList = [];\n this._versionSignBase = 0;\n this._sourceHost = sourceHost;\n }\n /**\n * Mark dirty.\n */\n\n\n SourceManager.prototype.dirty = function () {\n this._setLocalSource([], []);\n };\n\n SourceManager.prototype._setLocalSource = function (sourceList, upstreamSignList) {\n this._sourceList = sourceList;\n this._upstreamSignList = upstreamSignList;\n this._versionSignBase++;\n\n if (this._versionSignBase > 9e10) {\n this._versionSignBase = 0;\n }\n };\n /**\n * For detecting whether the upstream source is dirty, so that\n * the local cached source (in `_sourceList`) should be discarded.\n */\n\n\n SourceManager.prototype._getVersionSign = function () {\n return this._sourceHost.uid + '_' + this._versionSignBase;\n };\n /**\n * Always return a source instance. Otherwise throw error.\n */\n\n\n SourceManager.prototype.prepareSource = function () {\n // For the case that call `setOption` multiple time but no data changed,\n // cache the result source to prevent from repeating transform.\n if (this._isDirty()) {\n this._createSource();\n }\n };\n\n SourceManager.prototype._createSource = function () {\n this._setLocalSource([], []);\n\n var sourceHost = this._sourceHost;\n\n var upSourceMgrList = this._getUpstreamSourceManagers();\n\n var hasUpstream = !!upSourceMgrList.length;\n var resultSourceList;\n var upstreamSignList;\n\n if (isSeries(sourceHost)) {\n var seriesModel = sourceHost;\n var data = void 0;\n var sourceFormat = void 0;\n var upSource = void 0; // Has upstream dataset\n\n if (hasUpstream) {\n var upSourceMgr = upSourceMgrList[0];\n upSourceMgr.prepareSource();\n upSource = upSourceMgr.getSource();\n data = upSource.data;\n sourceFormat = upSource.sourceFormat;\n upstreamSignList = [upSourceMgr._getVersionSign()];\n } // Series data is from own.\n else {\n data = seriesModel.get('data', true);\n sourceFormat = isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL;\n upstreamSignList = [];\n } // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.\n\n\n var newMetaRawOption = this._getSourceMetaRawOption();\n\n var upMetaRawOption = upSource ? upSource.metaRawOption : null;\n var seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption ? upMetaRawOption.seriesLayoutBy : null);\n var sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption ? upMetaRawOption.sourceHeader : null); // Note here we should not use `upSource.dimensionsDefine`. Consider the case:\n // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`,\n // but series need `seriesLayoutBy: 'row'`.\n\n var dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption ? upMetaRawOption.dimensions : null);\n resultSourceList = [createSource(data, {\n seriesLayoutBy: seriesLayoutBy,\n sourceHeader: sourceHeader,\n dimensions: dimensions\n }, sourceFormat, seriesModel.get('encode', true))];\n } else {\n var datasetModel = sourceHost; // Has upstream dataset.\n\n if (hasUpstream) {\n var result = this._applyTransform(upSourceMgrList);\n\n resultSourceList = result.sourceList;\n upstreamSignList = result.upstreamSignList;\n } // Is root dataset.\n else {\n var sourceData = datasetModel.get('source', true);\n resultSourceList = [createSource(sourceData, this._getSourceMetaRawOption(), null, // Note: dataset option does not have `encode`.\n null)];\n upstreamSignList = [];\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(resultSourceList && upstreamSignList);\n }\n\n this._setLocalSource(resultSourceList, upstreamSignList);\n };\n\n SourceManager.prototype._applyTransform = function (upMgrList) {\n var datasetModel = this._sourceHost;\n var transformOption = datasetModel.get('transform', true);\n var fromTransformResult = datasetModel.get('fromTransformResult', true);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(fromTransformResult != null || transformOption != null);\n }\n\n if (fromTransformResult != null) {\n var errMsg = '';\n\n if (upMgrList.length !== 1) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'When using `fromTransformResult`, there should be only one upstream dataset';\n }\n\n doThrow(errMsg);\n }\n }\n\n var sourceList;\n var upSourceList = [];\n var upstreamSignList = [];\n each(upMgrList, function (upMgr) {\n upMgr.prepareSource();\n var upSource = upMgr.getSource(fromTransformResult || 0);\n var errMsg = '';\n\n if (fromTransformResult != null && !upSource) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Can not retrieve result by `fromTransformResult`: ' + fromTransformResult;\n }\n\n doThrow(errMsg);\n }\n\n upSourceList.push(upSource);\n upstreamSignList.push(upMgr._getVersionSign());\n });\n\n if (transformOption) {\n sourceList = applyDataTransform(transformOption, upSourceList, {\n datasetIndex: datasetModel.componentIndex\n });\n } else if (fromTransformResult != null) {\n sourceList = [cloneSourceShallow(upSourceList[0])];\n }\n\n return {\n sourceList: sourceList,\n upstreamSignList: upstreamSignList\n };\n };\n\n SourceManager.prototype._isDirty = function () {\n var sourceList = this._sourceList;\n\n if (!sourceList.length) {\n return true;\n } // All sourceList is from the some upsteam.\n\n\n var upSourceMgrList = this._getUpstreamSourceManagers();\n\n for (var i = 0; i < upSourceMgrList.length; i++) {\n var upSrcMgr = upSourceMgrList[i];\n\n if ( // Consider the case that there is ancestor diry, call it recursively.\n // The performance is probably not an issue because usually the chain is not long.\n upSrcMgr._isDirty() || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()) {\n return true;\n }\n }\n };\n /**\n * @param sourceIndex By defualt 0, means \"main source\".\n * Most cases there is only one source.\n */\n\n\n SourceManager.prototype.getSource = function (sourceIndex) {\n return this._sourceList[sourceIndex || 0];\n };\n /**\n * PEDING: Is it fast enough?\n * If no upstream, return empty array.\n */\n\n\n SourceManager.prototype._getUpstreamSourceManagers = function () {\n // Always get the relationship from the raw option.\n // Do not cache the link of the dependency graph, so that\n // no need to update them when change happen.\n var sourceHost = this._sourceHost;\n\n if (isSeries(sourceHost)) {\n var datasetModel = querySeriesUpstreamDatasetModel(sourceHost);\n return !datasetModel ? [] : [datasetModel.getSourceManager()];\n } else {\n return map(queryDatasetUpstreamDatasetModels(sourceHost), function (datasetModel) {\n return datasetModel.getSourceManager();\n });\n }\n };\n\n SourceManager.prototype._getSourceMetaRawOption = function () {\n var sourceHost = this._sourceHost;\n var seriesLayoutBy;\n var sourceHeader;\n var dimensions;\n\n if (isSeries(sourceHost)) {\n seriesLayoutBy = sourceHost.get('seriesLayoutBy', true);\n sourceHeader = sourceHost.get('sourceHeader', true);\n dimensions = sourceHost.get('dimensions', true);\n } // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them.\n else if (!this._getUpstreamSourceManagers().length) {\n var model = sourceHost;\n seriesLayoutBy = model.get('seriesLayoutBy', true);\n sourceHeader = model.get('sourceHeader', true);\n dimensions = model.get('dimensions', true);\n }\n\n return {\n seriesLayoutBy: seriesLayoutBy,\n sourceHeader: sourceHeader,\n dimensions: dimensions\n };\n };\n\n return SourceManager;\n}();\n\nexport { SourceManager }; // Call this method after `super.init` and `super.mergeOption` to\n// disable the transform merge, but do not disable transfrom clone from rawOption.\n\nexport function disableTransformOptionMerge(datasetModel) {\n var transformOption = datasetModel.option.transform;\n transformOption && setAsPrimitive(datasetModel.option.transform);\n}\n\nfunction isSeries(sourceHost) {\n // Avoid circular dependency with Series.ts\n return sourceHost.mainType === 'series';\n}\n\nfunction doThrow(errMsg) {\n throw new Error(errMsg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getTooltipMarker, encodeHTML, makeValueReadable, convertToColorString } from '../../util/format';\nimport { isString, each, hasOwn, isArray, map, assert, extend } from 'zrender/lib/core/util';\nimport { SortOrderComparator } from '../../data/helper/dataValueHelper';\nimport { getRandomIdBase } from '../../util/number';\nvar TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1'; // TODO: more textStyle option\n\nfunction getTooltipTextStyle(textStyle, renderMode) {\n var nameFontColor = textStyle.color || '#6e7079';\n var nameFontSize = textStyle.fontSize || 12;\n var nameFontWeight = textStyle.fontWeight || '400';\n var valueFontColor = textStyle.color || '#464646';\n var valueFontSize = textStyle.fontSize || 14;\n var valueFontWeight = textStyle.fontWeight || '900';\n\n if (renderMode === 'html') {\n // `textStyle` is probably from user input, should be encoded to reduce security risk.\n return {\n // eslint-disable-next-line max-len\n nameStyle: \"font-size:\" + encodeHTML(nameFontSize + '') + \"px;color:\" + encodeHTML(nameFontColor) + \";font-weight:\" + encodeHTML(nameFontWeight + ''),\n // eslint-disable-next-line max-len\n valueStyle: \"font-size:\" + encodeHTML(valueFontSize + '') + \"px;color:\" + encodeHTML(valueFontColor) + \";font-weight:\" + encodeHTML(valueFontWeight + '')\n };\n } else {\n return {\n nameStyle: {\n fontSize: nameFontSize,\n fill: nameFontColor,\n fontWeight: nameFontWeight\n },\n valueStyle: {\n fontSize: valueFontSize,\n fill: valueFontColor,\n fontWeight: valueFontWeight\n }\n };\n }\n} // See `TooltipMarkupLayoutIntent['innerGapLevel']`.\n// (value from UI design)\n\n\nvar HTML_GAPS = [0, 10, 20, 30];\nvar RICH_TEXT_GAPS = ['', '\\n', '\\n\\n', '\\n\\n\\n']; // eslint-disable-next-line max-len\n\nexport function createTooltipMarkup(type, option) {\n option.type = type;\n return option;\n}\n\nfunction getBuilder(fragment) {\n return hasOwn(builderMap, fragment.type) && builderMap[fragment.type];\n}\n\nvar builderMap = {\n /**\n * A `section` block is like:\n * ```\n * header\n * subBlock\n * subBlock\n * ...\n * ```\n */\n section: {\n planLayout: function (fragment) {\n var subBlockLen = fragment.blocks.length;\n var thisBlockHasInnerGap = subBlockLen > 1 || subBlockLen > 0 && !fragment.noHeader;\n var thisGapLevelBetweenSubBlocks = 0;\n each(fragment.blocks, function (subBlock) {\n getBuilder(subBlock).planLayout(subBlock);\n var subGapLevel = subBlock.__gapLevelBetweenSubBlocks; // If the some of the sub-blocks have some gaps (like 10px) inside, this block\n // should use a larger gap (like 20px) to distinguish those sub-blocks.\n\n if (subGapLevel >= thisGapLevelBetweenSubBlocks) {\n thisGapLevelBetweenSubBlocks = subGapLevel + (thisBlockHasInnerGap && ( // 0 always can not be readable gap level.\n !subGapLevel // If no header, always keep the sub gap level. Otherwise\n // look weird in case `multipleSeries`.\n || subBlock.type === 'section' && !subBlock.noHeader) ? 1 : 0);\n }\n });\n fragment.__gapLevelBetweenSubBlocks = thisGapLevelBetweenSubBlocks;\n },\n build: function (ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {\n var noHeader = fragment.noHeader;\n var gaps = getGap(fragment);\n var subMarkupText = buildSubBlocks(ctx, fragment, noHeader ? topMarginForOuterGap : gaps.html, toolTipTextStyle);\n\n if (noHeader) {\n return subMarkupText;\n }\n\n var displayableHeader = makeValueReadable(fragment.header, 'ordinal', ctx.useUTC);\n var nameStyle = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode).nameStyle;\n\n if (ctx.renderMode === 'richText') {\n return wrapInlineNameRichText(ctx, displayableHeader, nameStyle) + gaps.richText + subMarkupText;\n } else {\n return wrapBlockHTML(\"
\" + encodeHTML(displayableHeader) + '
' + subMarkupText, topMarginForOuterGap);\n }\n }\n },\n\n /**\n * A `nameValue` block is like:\n * ```\n * marker name value\n * ```\n */\n nameValue: {\n planLayout: function (fragment) {\n fragment.__gapLevelBetweenSubBlocks = 0;\n },\n build: function (ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {\n var renderMode = ctx.renderMode;\n var noName = fragment.noName;\n var noValue = fragment.noValue;\n var noMarker = !fragment.markerType;\n var name = fragment.name;\n var value = fragment.value;\n var useUTC = ctx.useUTC;\n\n if (noName && noValue) {\n return;\n }\n\n var markerStr = noMarker ? '' : ctx.markupStyleCreator.makeTooltipMarker(fragment.markerType, fragment.markerColor || '#333', renderMode);\n var readableName = noName ? '' : makeValueReadable(name, 'ordinal', useUTC);\n var valueTypeOption = fragment.valueType;\n var readableValueList = noValue ? [] : isArray(value) ? map(value, function (val, idx) {\n return makeValueReadable(val, isArray(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC);\n }) : [makeValueReadable(value, isArray(valueTypeOption) ? valueTypeOption[0] : valueTypeOption, useUTC)];\n var valueAlignRight = !noMarker || !noName; // It little weird if only value next to marker but far from marker.\n\n var valueCloseToMarker = !noMarker && noName;\n\n var _a = getTooltipTextStyle(toolTipTextStyle, renderMode),\n nameStyle = _a.nameStyle,\n valueStyle = _a.valueStyle;\n\n return renderMode === 'richText' ? (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle)) // Value has commas inside, so use ' ' as delimiter for multiple values.\n + (noValue ? '' : wrapInlineValueRichText(ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)) : wrapBlockHTML((noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle)) + (noValue ? '' : wrapInlineValueHTML(readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)), topMarginForOuterGap);\n }\n }\n};\n\nfunction buildSubBlocks(ctx, fragment, topMarginForOuterGap, tooltipTextStyle) {\n var subMarkupTextList = [];\n var subBlocks = fragment.blocks || [];\n assert(!subBlocks || isArray(subBlocks));\n subBlocks = subBlocks || [];\n var orderMode = ctx.orderMode;\n\n if (fragment.sortBlocks && orderMode) {\n subBlocks = subBlocks.slice();\n var orderMap = {\n valueAsc: 'asc',\n valueDesc: 'desc'\n };\n\n if (hasOwn(orderMap, orderMode)) {\n var comparator_1 = new SortOrderComparator(orderMap[orderMode], null);\n subBlocks.sort(function (a, b) {\n return comparator_1.evaluate(a.sortParam, b.sortParam);\n });\n } // FIXME 'seriesDesc' necessary?\n else if (orderMode === 'seriesDesc') {\n subBlocks.reverse();\n }\n }\n\n var gaps = getGap(fragment);\n each(subBlocks, function (subBlock, idx) {\n var subMarkupText = getBuilder(subBlock).build(ctx, subBlock, idx > 0 ? gaps.html : 0, tooltipTextStyle);\n subMarkupText != null && subMarkupTextList.push(subMarkupText);\n });\n\n if (!subMarkupTextList.length) {\n return;\n }\n\n return ctx.renderMode === 'richText' ? subMarkupTextList.join(gaps.richText) : wrapBlockHTML(subMarkupTextList.join(''), topMarginForOuterGap);\n}\n/**\n * @return markupText. null/undefined means no content.\n */\n\n\nexport function buildTooltipMarkup(fragment, markupStyleCreator, renderMode, orderMode, useUTC, toolTipTextStyle) {\n if (!fragment) {\n return;\n }\n\n var builder = getBuilder(fragment);\n builder.planLayout(fragment);\n var ctx = {\n useUTC: useUTC,\n renderMode: renderMode,\n orderMode: orderMode,\n markupStyleCreator: markupStyleCreator\n };\n return builder.build(ctx, fragment, 0, toolTipTextStyle);\n}\n\nfunction getGap(fragment) {\n var gapLevelBetweenSubBlocks = fragment.__gapLevelBetweenSubBlocks;\n return {\n html: HTML_GAPS[gapLevelBetweenSubBlocks],\n richText: RICH_TEXT_GAPS[gapLevelBetweenSubBlocks]\n };\n}\n\nfunction wrapBlockHTML(encodedContent, topGap) {\n var clearfix = '
';\n var marginCSS = \"margin: \" + topGap + \"px 0 0\";\n return \"
\" + encodedContent + clearfix + '
';\n}\n\nfunction wrapInlineNameHTML(name, leftHasMarker, style) {\n var marginCss = leftHasMarker ? 'margin-left:2px' : '';\n return \"\" + encodeHTML(name) + '';\n}\n\nfunction wrapInlineValueHTML(valueList, alignRight, valueCloseToMarker, style) {\n // Do not too close to marker, considering there are multiple values separated by spaces.\n var paddingStr = valueCloseToMarker ? '10px' : '20px';\n var alignCSS = alignRight ? \"float:right;margin-left:\" + paddingStr : '';\n return \"\" // Value has commas inside, so use ' ' as delimiter for multiple values.\n + map(valueList, function (value) {\n return encodeHTML(value);\n }).join('  ') + '';\n}\n\nfunction wrapInlineNameRichText(ctx, name, style) {\n return ctx.markupStyleCreator.wrapRichTextStyle(name, style);\n}\n\nfunction wrapInlineValueRichText(ctx, valueList, alignRight, valueCloseToMarker, style) {\n var styles = [style];\n var paddingLeft = valueCloseToMarker ? 10 : 20;\n alignRight && styles.push({\n padding: [0, 0, 0, paddingLeft],\n align: 'right'\n }); // Value has commas inside, so use ' ' as delimiter for multiple values.\n\n return ctx.markupStyleCreator.wrapRichTextStyle(valueList.join(' '), styles);\n}\n\nexport function retrieveVisualColorForTooltipMarker(series, dataIndex) {\n var style = series.getData().getItemVisual(dataIndex, 'style');\n var color = style[series.visualDrawType];\n return convertToColorString(color);\n}\nexport function getPaddingFromTooltipModel(model, renderMode) {\n var padding = model.get('padding');\n return padding != null ? padding // We give slightly different to look pretty.\n : renderMode === 'richText' ? [8, 10] : 10;\n}\n/**\n * The major feature is generate styles for `renderMode: 'richText'`.\n * But it also serves `renderMode: 'html'` to provide\n * \"renderMode-independent\" API.\n */\n\nvar TooltipMarkupStyleCreator =\n/** @class */\nfunction () {\n function TooltipMarkupStyleCreator() {\n this.richTextStyles = {}; // Notice that \"generate a style name\" usuall happens repeatly when mouse moving and\n // displaying a tooltip. So we put the `_nextStyleNameId` as a member of each creator\n // rather than static shared by all creators (which will cause it increase to fast).\n\n this._nextStyleNameId = getRandomIdBase();\n }\n\n TooltipMarkupStyleCreator.prototype._generateStyleName = function () {\n return '__EC_aUTo_' + this._nextStyleNameId++;\n };\n\n TooltipMarkupStyleCreator.prototype.makeTooltipMarker = function (markerType, colorStr, renderMode) {\n var markerId = renderMode === 'richText' ? this._generateStyleName() : null;\n var marker = getTooltipMarker({\n color: colorStr,\n type: markerType,\n renderMode: renderMode,\n markerId: markerId\n });\n\n if (isString(marker)) {\n return marker;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n assert(markerId);\n }\n\n this.richTextStyles[markerId] = marker.style;\n return marker.content;\n }\n };\n /**\n * @usage\n * ```ts\n * const styledText = markupStyleCreator.wrapRichTextStyle([\n * // The styles will be auto merged.\n * {\n * fontSize: 12,\n * color: 'blue'\n * },\n * {\n * padding: 20\n * }\n * ]);\n * ```\n */\n\n\n TooltipMarkupStyleCreator.prototype.wrapRichTextStyle = function (text, styles) {\n var finalStl = {};\n\n if (isArray(styles)) {\n each(styles, function (stl) {\n return extend(finalStl, stl);\n });\n } else {\n extend(finalStl, styles);\n }\n\n var styleName = this._generateStyleName();\n\n this.richTextStyles[styleName] = finalStl;\n return \"{\" + styleName + \"|\" + text + \"}\";\n };\n\n return TooltipMarkupStyleCreator;\n}();\n\nexport { TooltipMarkupStyleCreator };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { trim, isArray, each, reduce } from 'zrender/lib/core/util';\nimport { retrieveVisualColorForTooltipMarker, createTooltipMarkup } from './tooltipMarkup';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isNameSpecified } from '../../util/model';\nexport function defaultSeriesFormatTooltip(opt) {\n var series = opt.series;\n var dataIndex = opt.dataIndex;\n var multipleSeries = opt.multipleSeries;\n var data = series.getData();\n var tooltipDims = data.mapDimensionsAll('defaultedTooltip');\n var tooltipDimLen = tooltipDims.length;\n var value = series.getRawValue(dataIndex);\n var isValueArr = isArray(value);\n var markerColor = retrieveVisualColorForTooltipMarker(series, dataIndex); // Complicated rule for pretty tooltip.\n\n var inlineValue;\n var inlineValueType;\n var subBlocks;\n var sortParam;\n\n if (tooltipDimLen > 1 || isValueArr && !tooltipDimLen) {\n var formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor);\n inlineValue = formatArrResult.inlineValues;\n inlineValueType = formatArrResult.inlineValueTypes;\n subBlocks = formatArrResult.blocks; // Only support tooltip sort by the first inline value. It's enough in most cases.\n\n sortParam = formatArrResult.inlineValues[0];\n } else if (tooltipDimLen) {\n var dimInfo = data.getDimensionInfo(tooltipDims[0]);\n sortParam = inlineValue = retrieveRawValue(data, dataIndex, tooltipDims[0]);\n inlineValueType = dimInfo.type;\n } else {\n sortParam = inlineValue = isValueArr ? value[0] : value;\n } // Do not show generated series name. It might not be readable.\n\n\n var seriesNameSpecified = isNameSpecified(series);\n var seriesName = seriesNameSpecified && series.name || '';\n var itemName = data.getName(dataIndex);\n var inlineName = multipleSeries ? seriesName : itemName;\n return createTooltipMarkup('section', {\n header: seriesName,\n // When series name not specified, do not show a header line with only '-'.\n // This case alway happen in tooltip.trigger: 'item'.\n noHeader: multipleSeries || !seriesNameSpecified,\n sortParam: sortParam,\n blocks: [createTooltipMarkup('nameValue', {\n markerType: 'item',\n markerColor: markerColor,\n // Do not mix display seriesName and itemName in one tooltip,\n // which might confuses users.\n name: inlineName,\n // name dimension might be auto assigned, where the name might\n // be not readable. So we check trim here.\n noName: !trim(inlineName),\n value: inlineValue,\n valueType: inlineValueType\n })].concat(subBlocks || [])\n });\n}\n\nfunction formatTooltipArrayValue(value, series, dataIndex, tooltipDims, colorStr) {\n // check: category-no-encode-has-axis-data in dataset.html\n var data = series.getData();\n var isValueMultipleLine = reduce(value, function (isValueMultipleLine, val, idx) {\n var dimItem = data.getDimensionInfo(idx);\n return isValueMultipleLine = isValueMultipleLine || dimItem && dimItem.tooltip !== false && dimItem.displayName != null;\n }, false);\n var inlineValues = [];\n var inlineValueTypes = [];\n var blocks = [];\n tooltipDims.length ? each(tooltipDims, function (dim) {\n setEachItem(retrieveRawValue(data, dataIndex, dim), dim);\n }) // By default, all dims is used on tooltip.\n : each(value, setEachItem);\n\n function setEachItem(val, dim) {\n var dimInfo = data.getDimensionInfo(dim); // If `dimInfo.tooltip` is not set, show tooltip.\n\n if (!dimInfo || dimInfo.otherDims.tooltip === false) {\n return;\n }\n\n if (isValueMultipleLine) {\n blocks.push(createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: colorStr,\n name: dimInfo.displayName,\n value: val,\n valueType: dimInfo.type\n }));\n } else {\n inlineValues.push(val);\n inlineValueTypes.push(dimInfo.type);\n }\n }\n\n return {\n inlineValues: inlineValues,\n inlineValueTypes: inlineValueTypes,\n blocks: blocks\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends, __spreadArrays } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport * as modelUtil from '../util/model';\nimport ComponentModel from './Component';\nimport { PaletteMixin } from './mixin/palette';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport { getLayoutParams, mergeLayoutParam, fetchLayoutMode } from '../util/layout';\nimport { createTask } from '../core/task';\nimport { mountExtend } from '../util/clazz';\nimport { SourceManager } from '../data/helper/sourceManager';\nimport { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatTooltip';\nvar inner = modelUtil.makeInner();\n\nfunction getSelectionKey(data, dataIndex) {\n return data.getName(dataIndex) || data.getId(dataIndex);\n}\n\nvar SeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SeriesModel, _super);\n\n function SeriesModel() {\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n var _this = _super !== null && _super.apply(this, arguments) || this; // ---------------------------------------\n // Props about data selection\n // ---------------------------------------\n\n\n _this._selectedDataIndicesMap = {};\n return _this;\n }\n\n SeriesModel.prototype.init = function (option, parentModel, ecModel) {\n this.seriesIndex = this.componentIndex;\n this.dataTask = createTask({\n count: dataTaskCount,\n reset: dataTaskReset\n });\n this.dataTask.context = {\n model: this\n };\n this.mergeDefaultAndTheme(option, ecModel);\n var sourceManager = inner(this).sourceManager = new SourceManager(this);\n sourceManager.prepareSource();\n var data = this.getInitialData(option, ecModel);\n wrapData(data, this);\n this.dataTask.context.data = data;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(data, 'getInitialData returned invalid data.');\n }\n\n inner(this).dataBeforeProcessed = data; // If we reverse the order (make data firstly, and then make\n // dataBeforeProcessed by cloneShallow), cloneShallow will\n // cause data.graph.data !== data when using\n // module:echarts/data/Graph or module:echarts/data/Tree.\n // See module:echarts/data/helper/linkList\n // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model\n // init or merge stage, because the data can be restored. So we do not `restoreData`\n // and `setData` here, which forbids calling `seriesModel.getData()` in this stage.\n // Call `seriesModel.getRawData()` instead.\n // this.restoreData();\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n };\n /**\n * Util for merge default and theme to option\n */\n\n\n SeriesModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? getLayoutParams(option) : {}; // Backward compat: using subType on theme.\n // But if name duplicate between series subType\n // (for example: parallel) add component mainType,\n // add suffix 'Series'.\n\n var themeSubType = this.subType;\n\n if (ComponentModel.hasClass(themeSubType)) {\n themeSubType += 'Series';\n }\n\n zrUtil.merge(option, ecModel.getTheme().get(this.subType));\n zrUtil.merge(option, this.getDefaultOption()); // Default label emphasis `show`\n\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n this.fillDataTextStyle(option.data);\n\n if (layoutMode) {\n mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n SeriesModel.prototype.mergeOption = function (newSeriesOption, ecModel) {\n // this.settingTask.dirty();\n newSeriesOption = zrUtil.merge(this.option, newSeriesOption, true);\n this.fillDataTextStyle(newSeriesOption.data);\n var layoutMode = fetchLayoutMode(this);\n\n if (layoutMode) {\n mergeLayoutParam(this.option, newSeriesOption, layoutMode);\n }\n\n var sourceManager = inner(this).sourceManager;\n sourceManager.dirty();\n sourceManager.prepareSource();\n var data = this.getInitialData(newSeriesOption, ecModel);\n wrapData(data, this);\n this.dataTask.dirty();\n this.dataTask.context.data = data;\n inner(this).dataBeforeProcessed = data;\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n };\n\n SeriesModel.prototype.fillDataTextStyle = function (data) {\n // Default data label emphasis `show`\n // FIXME Tree structure data ?\n // FIXME Performance ?\n if (data && !zrUtil.isTypedArray(data)) {\n var props = ['show'];\n\n for (var i = 0; i < data.length; i++) {\n if (data[i] && data[i].label) {\n modelUtil.defaultEmphasis(data[i], 'label', props);\n }\n }\n }\n };\n /**\n * Init a data structure from data related option in series\n * Must be overriden.\n */\n\n\n SeriesModel.prototype.getInitialData = function (option, ecModel) {\n return;\n };\n /**\n * Append data to list\n */\n\n\n SeriesModel.prototype.appendData = function (params) {\n // FIXME ???\n // (1) If data from dataset, forbidden append.\n // (2) support append data of dataset.\n var data = this.getRawData();\n data.appendData(params.data);\n };\n /**\n * Consider some method like `filter`, `map` need make new data,\n * We should make sure that `seriesModel.getData()` get correct\n * data in the stream procedure. So we fetch data from upstream\n * each time `task.perform` called.\n */\n\n\n SeriesModel.prototype.getData = function (dataType) {\n var task = getCurrentTask(this);\n\n if (task) {\n var data = task.context.data;\n return dataType == null ? data : data.getLinkedData(dataType);\n } else {\n // When series is not alive (that may happen when click toolbox\n // restore or setOption with not merge mode), series data may\n // be still need to judge animation or something when graphic\n // elements want to know whether fade out.\n return inner(this).data;\n }\n };\n\n SeriesModel.prototype.getAllData = function () {\n var mainData = this.getData();\n return mainData && mainData.getLinkedDataAll ? mainData.getLinkedDataAll() : [{\n data: mainData\n }];\n };\n\n SeriesModel.prototype.setData = function (data) {\n var task = getCurrentTask(this);\n\n if (task) {\n var context = task.context; // Consider case: filter, data sample.\n // FIXME:TS never used, so comment it\n // if (context.data !== data && task.modifyOutputEnd) {\n // task.setOutputEnd(data.count());\n // }\n\n context.outputData = data; // Caution: setData should update context.data,\n // Because getData may be called multiply in a\n // single stage and expect to get the data just\n // set. (For example, AxisProxy, x y both call\n // getData and setDate sequentially).\n // So the context.data should be fetched from\n // upstream each time when a stage starts to be\n // performed.\n\n if (task !== this.dataTask) {\n context.data = data;\n }\n }\n\n inner(this).data = data;\n };\n\n SeriesModel.prototype.getSource = function () {\n return inner(this).sourceManager.getSource();\n };\n /**\n * Get data before processed\n */\n\n\n SeriesModel.prototype.getRawData = function () {\n return inner(this).dataBeforeProcessed;\n };\n /**\n * Get base axis if has coordinate system and has axis.\n * By default use coordSys.getBaseAxis();\n * Can be overrided for some chart.\n * @return {type} description\n */\n\n\n SeriesModel.prototype.getBaseAxis = function () {\n var coordSys = this.coordinateSystem; // @ts-ignore\n\n return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();\n };\n /**\n * Default tooltip formatter\n *\n * @param dataIndex\n * @param multipleSeries\n * @param dataType\n * @param renderMode valid values: 'html'(by default) and 'richText'.\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n * @return formatted tooltip with `html` and `markers`\n * Notice: The override method can also return string\n */\n\n\n SeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n return defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n };\n\n SeriesModel.prototype.isAnimationEnabled = function () {\n if (env.node) {\n return false;\n }\n\n var animationEnabled = this.getShallow('animation');\n\n if (animationEnabled) {\n if (this.getData().count() > this.getShallow('animationThreshold')) {\n animationEnabled = false;\n }\n }\n\n return !!animationEnabled;\n };\n\n SeriesModel.prototype.restoreData = function () {\n this.dataTask.dirty();\n };\n\n SeriesModel.prototype.getColorFromPalette = function (name, scope, requestColorNum) {\n var ecModel = this.ecModel; // PENDING\n\n var color = PaletteMixin.prototype.getColorFromPalette.call(this, name, scope, requestColorNum);\n\n if (!color) {\n color = ecModel.getColorFromPalette(name, scope, requestColorNum);\n }\n\n return color;\n };\n /**\n * Use `data.mapDimensionsAll(coordDim)` instead.\n * @deprecated\n */\n\n\n SeriesModel.prototype.coordDimToDataDim = function (coordDim) {\n return this.getRawData().mapDimensionsAll(coordDim);\n };\n /**\n * Get progressive rendering count each step\n */\n\n\n SeriesModel.prototype.getProgressive = function () {\n return this.get('progressive');\n };\n /**\n * Get progressive rendering count each step\n */\n\n\n SeriesModel.prototype.getProgressiveThreshold = function () {\n return this.get('progressiveThreshold');\n }; // PENGING If selectedMode is null ?\n\n\n SeriesModel.prototype.select = function (innerDataIndices, dataType) {\n this._innerSelect(this.getData(dataType), innerDataIndices);\n };\n\n SeriesModel.prototype.unselect = function (innerDataIndices, dataType) {\n var selectedMap = this.option.selectedMap;\n\n if (!selectedMap) {\n return;\n }\n\n var data = this.getData(dataType);\n\n for (var i = 0; i < innerDataIndices.length; i++) {\n var dataIndex = innerDataIndices[i];\n var nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = false;\n this._selectedDataIndicesMap[nameOrId] = -1;\n }\n };\n\n SeriesModel.prototype.toggleSelect = function (innerDataIndices, dataType) {\n var tmpArr = [];\n\n for (var i = 0; i < innerDataIndices.length; i++) {\n tmpArr[0] = innerDataIndices[i];\n this.isSelected(innerDataIndices[i], dataType) ? this.unselect(tmpArr, dataType) : this.select(tmpArr, dataType);\n }\n };\n\n SeriesModel.prototype.getSelectedDataIndices = function () {\n var selectedDataIndicesMap = this._selectedDataIndicesMap;\n var nameOrIds = zrUtil.keys(selectedDataIndicesMap);\n var dataIndices = [];\n\n for (var i = 0; i < nameOrIds.length; i++) {\n var dataIndex = selectedDataIndicesMap[nameOrIds[i]];\n\n if (dataIndex >= 0) {\n dataIndices.push(dataIndex);\n }\n }\n\n return dataIndices;\n };\n\n SeriesModel.prototype.isSelected = function (dataIndex, dataType) {\n var selectedMap = this.option.selectedMap;\n\n if (!selectedMap) {\n return false;\n }\n\n var data = this.getData(dataType);\n var nameOrId = getSelectionKey(data, dataIndex);\n return selectedMap[nameOrId] || false;\n };\n\n SeriesModel.prototype._innerSelect = function (data, innerDataIndices) {\n var _a, _b;\n\n var selectedMode = this.option.selectedMode;\n var len = innerDataIndices.length;\n\n if (!selectedMode || !len) {\n return;\n }\n\n if (selectedMode === 'multiple') {\n var selectedMap = this.option.selectedMap || (this.option.selectedMap = {});\n\n for (var i = 0; i < len; i++) {\n var dataIndex = innerDataIndices[i]; // TODO diffrent types of data share same object.\n\n var nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = true;\n this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex);\n }\n } else if (selectedMode === 'single' || selectedMode === true) {\n var lastDataIndex = innerDataIndices[len - 1];\n var nameOrId = getSelectionKey(data, lastDataIndex);\n this.option.selectedMap = (_a = {}, _a[nameOrId] = true, _a);\n this._selectedDataIndicesMap = (_b = {}, _b[nameOrId] = data.getRawIndex(lastDataIndex), _b);\n }\n };\n\n SeriesModel.prototype._initSelectedMapFromData = function (data) {\n // Ignore select info in data if selectedMap exists.\n // NOTE It's only for legacy usage. edge data is not supported.\n if (this.option.selectedMap) {\n return;\n }\n\n var dataIndices = [];\n\n if (data.hasItemOption) {\n data.each(function (idx) {\n var rawItem = data.getRawDataItem(idx);\n\n if (rawItem && rawItem.selected) {\n dataIndices.push(idx);\n }\n });\n }\n\n if (dataIndices.length > 0) {\n this._innerSelect(data, dataIndices);\n }\n }; // /**\n // * @see {module:echarts/stream/Scheduler}\n // */\n // abstract pipeTask: null\n\n\n SeriesModel.registerClass = function (clz) {\n return ComponentModel.registerClass(clz);\n };\n\n SeriesModel.protoInitialize = function () {\n var proto = SeriesModel.prototype;\n proto.type = 'series.__base__';\n proto.seriesIndex = 0;\n proto.useColorPaletteOnData = false;\n proto.ignoreStyleOnData = false;\n proto.hasSymbolVisual = false;\n proto.defaultSymbol = 'circle'; // Make sure the values can be accessed!\n\n proto.visualStyleAccessPath = 'itemStyle';\n proto.visualDrawType = 'fill';\n }();\n\n return SeriesModel;\n}(ComponentModel);\n\nzrUtil.mixin(SeriesModel, DataFormatMixin);\nzrUtil.mixin(SeriesModel, PaletteMixin);\nmountExtend(SeriesModel, ComponentModel);\n/**\n * MUST be called after `prepareSource` called\n * Here we need to make auto series, especially for auto legend. But we\n * do not modify series.name in option to avoid side effects.\n */\n\nfunction autoSeriesName(seriesModel) {\n // User specified name has higher priority, otherwise it may cause\n // series can not be queried unexpectedly.\n var name = seriesModel.name;\n\n if (!modelUtil.isNameSpecified(seriesModel)) {\n seriesModel.name = getSeriesAutoName(seriesModel) || name;\n }\n}\n\nfunction getSeriesAutoName(seriesModel) {\n var data = seriesModel.getRawData();\n var dataDims = data.mapDimensionsAll('seriesName');\n var nameArr = [];\n zrUtil.each(dataDims, function (dataDim) {\n var dimInfo = data.getDimensionInfo(dataDim);\n dimInfo.displayName && nameArr.push(dimInfo.displayName);\n });\n return nameArr.join(' ');\n}\n\nfunction dataTaskCount(context) {\n return context.model.getRawData().count();\n}\n\nfunction dataTaskReset(context) {\n var seriesModel = context.model;\n seriesModel.setData(seriesModel.getRawData().cloneShallow());\n return dataTaskProgress;\n}\n\nfunction dataTaskProgress(param, context) {\n // Avoid repead cloneShallow when data just created in reset.\n if (context.outputData && param.end > context.outputData.count()) {\n context.model.getRawData().cloneShallow(context.outputData);\n }\n} // TODO refactor\n\n\nfunction wrapData(data, seriesModel) {\n zrUtil.each(__spreadArrays(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {\n data.wrapMethod(methodName, zrUtil.curry(onDataChange, seriesModel));\n });\n}\n\nfunction onDataChange(seriesModel, newList) {\n var task = getCurrentTask(seriesModel);\n\n if (task) {\n // Consider case: filter, selectRange\n task.setOutputEnd((newList || this).count());\n }\n\n return newList;\n}\n\nfunction getCurrentTask(seriesModel) {\n var scheduler = (seriesModel.ecModel || {}).scheduler;\n var pipeline = scheduler && scheduler.getPipeline(seriesModel.uid);\n\n if (pipeline) {\n // When pipline finished, the currrentTask keep the last\n // task (renderTask).\n var task = pipeline.currentTask;\n\n if (task) {\n var agentStubMap = task.agentStubMap;\n\n if (agentStubMap) {\n task = agentStubMap.get(seriesModel.uid);\n }\n }\n\n return task;\n }\n}\n\nexport default SeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Group from 'zrender/lib/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\n\nvar ComponentView =\n/** @class */\nfunction () {\n function ComponentView() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewComponent');\n }\n\n ComponentView.prototype.init = function (ecModel, api) {};\n\n ComponentView.prototype.render = function (model, ecModel, api, payload) {};\n\n ComponentView.prototype.dispose = function (ecModel, api) {};\n\n ComponentView.prototype.updateView = function (model, ecModel, api, payload) {// Do nothing;\n };\n\n ComponentView.prototype.updateLayout = function (model, ecModel, api, payload) {// Do nothing;\n };\n\n ComponentView.prototype.updateVisual = function (model, ecModel, api, payload) {// Do nothing;\n };\n /**\n * Hook for blur target series.\n * Can be used in marker for blur the markers\n */\n\n\n ComponentView.prototype.blurSeries = function (seriesModels, ecModel) {// Do nothing;\n };\n\n return ComponentView;\n}();\n\n;\nclazzUtil.enableClassExtend(ComponentView);\nclazzUtil.enableClassManagement(ComponentView);\nexport default ComponentView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from '../../util/model';\n/**\n * @return {string} If large mode changed, return string 'reset';\n */\n\nexport default function createRenderPlanner() {\n var inner = makeInner();\n return function (seriesModel) {\n var fields = inner(seriesModel);\n var pipelineContext = seriesModel.pipelineContext;\n var originalLarge = !!fields.large;\n var originalProgressive = !!fields.progressiveRender; // FIXME: if the planner works on a filtered series, `pipelineContext` does not\n // exists. See #11611 . Probably we need to modify this structure, see the comment\n // on `performRawSeries` in `Schedular.js`.\n\n var large = fields.large = !!(pipelineContext && pipelineContext.large);\n var progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender);\n return !!(originalLarge !== large || originalProgressive !== progressive) && 'reset';\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each } from 'zrender/lib/core/util';\nimport Group from 'zrender/lib/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport * as modelUtil from '../util/model';\nimport { enterEmphasis, leaveEmphasis, getHighlightDigit } from '../util/states';\nimport { createTask } from '../core/task';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nvar inner = modelUtil.makeInner();\nvar renderPlanner = createRenderPlanner();\n\nvar ChartView =\n/** @class */\nfunction () {\n function ChartView() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewChart');\n this.renderTask = createTask({\n plan: renderTaskPlan,\n reset: renderTaskReset\n });\n this.renderTask.context = {\n view: this\n };\n }\n\n ChartView.prototype.init = function (ecModel, api) {};\n\n ChartView.prototype.render = function (seriesModel, ecModel, api, payload) {};\n /**\n * Highlight series or specified data item.\n */\n\n\n ChartView.prototype.highlight = function (seriesModel, ecModel, api, payload) {\n toggleHighlight(seriesModel.getData(), payload, 'emphasis');\n };\n /**\n * Downplay series or specified data item.\n */\n\n\n ChartView.prototype.downplay = function (seriesModel, ecModel, api, payload) {\n toggleHighlight(seriesModel.getData(), payload, 'normal');\n };\n /**\n * Remove self.\n */\n\n\n ChartView.prototype.remove = function (ecModel, api) {\n this.group.removeAll();\n };\n /**\n * Dispose self.\n */\n\n\n ChartView.prototype.dispose = function (ecModel, api) {};\n\n ChartView.prototype.updateView = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n }; // FIXME never used?\n\n\n ChartView.prototype.updateLayout = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n }; // FIXME never used?\n\n\n ChartView.prototype.updateVisual = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n };\n\n ChartView.markUpdateMethod = function (payload, methodName) {\n inner(payload).updateMethod = methodName;\n };\n\n ChartView.protoInitialize = function () {\n var proto = ChartView.prototype;\n proto.type = 'chart';\n }();\n\n return ChartView;\n}();\n\n;\n/**\n * Set state of single element\n */\n\nfunction elSetState(el, state, highlightDigit) {\n if (el) {\n (state === 'emphasis' ? enterEmphasis : leaveEmphasis)(el, highlightDigit);\n }\n}\n\nfunction toggleHighlight(data, payload, state) {\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null;\n\n if (dataIndex != null) {\n each(modelUtil.normalizeToArray(dataIndex), function (dataIdx) {\n elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);\n });\n } else {\n data.eachItemGraphicEl(function (el) {\n elSetState(el, state, highlightDigit);\n });\n }\n}\n\nclazzUtil.enableClassExtend(ChartView, ['dispose']);\nclazzUtil.enableClassManagement(ChartView);\n\nfunction renderTaskPlan(context) {\n return renderPlanner(context.model);\n}\n\nfunction renderTaskReset(context) {\n var seriesModel = context.model;\n var ecModel = context.ecModel;\n var api = context.api;\n var payload = context.payload; // FIXME: remove updateView updateVisual\n\n var progressiveRender = seriesModel.pipelineContext.progressiveRender;\n var view = context.view;\n var updateMethod = payload && inner(payload).updateMethod;\n var methodName = progressiveRender ? 'incrementalPrepareRender' : updateMethod && view[updateMethod] ? updateMethod // `appendData` is also supported when data amount\n // is less than progressive threshold.\n : 'render';\n\n if (methodName !== 'render') {\n view[methodName](seriesModel, ecModel, api, payload);\n }\n\n return progressMethodMap[methodName];\n}\n\nvar progressMethodMap = {\n incrementalPrepareRender: {\n progress: function (params, context) {\n context.view.incrementalRender(params, context.model, context.ecModel, context.api, context.payload);\n }\n },\n render: {\n // Put view.render in `progress` to support appendData. But in this case\n // view.render should not be called in reset, otherwise it will be called\n // twise. Use `forceFirstProgress` to make sure that view.render is called\n // in any cases.\n forceFirstProgress: true,\n progress: function (params, context) {\n context.view.render(context.model, context.ecModel, context.api, context.payload);\n }\n }\n};\nexport default ChartView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar ORIGIN_METHOD = '\\0__throttleOriginMethod';\nvar RATE = '\\0__throttleRate';\nvar THROTTLE_TYPE = '\\0__throttleType';\n;\n/**\n * @public\n * @param {(Function)} fn\n * @param {number} [delay=0] Unit: ms.\n * @param {boolean} [debounce=false]\n * true: If call interval less than `delay`, only the last call works.\n * false: If call interval less than `delay, call works on fixed rate.\n * @return {(Function)} throttled fn.\n */\n\nexport function throttle(fn, delay, debounce) {\n var currCall;\n var lastCall = 0;\n var lastExec = 0;\n var timer = null;\n var diff;\n var scope;\n var args;\n var debounceNextCall;\n delay = delay || 0;\n\n function exec() {\n lastExec = new Date().getTime();\n timer = null;\n fn.apply(scope, args || []);\n }\n\n var cb = function () {\n var cbArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n cbArgs[_i] = arguments[_i];\n }\n\n currCall = new Date().getTime();\n scope = this;\n args = cbArgs;\n var thisDelay = debounceNextCall || delay;\n var thisDebounce = debounceNextCall || debounce;\n debounceNextCall = null;\n diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;\n clearTimeout(timer); // Here we should make sure that: the `exec` SHOULD NOT be called later\n // than a new call of `cb`, that is, preserving the command order. Consider\n // calculating \"scale rate\" when roaming as an example. When a call of `cb`\n // happens, either the `exec` is called dierectly, or the call is delayed.\n // But the delayed call should never be later than next call of `cb`. Under\n // this assurance, we can simply update view state each time `dispatchAction`\n // triggered by user roaming, but not need to add extra code to avoid the\n // state being \"rolled-back\".\n\n if (thisDebounce) {\n timer = setTimeout(exec, thisDelay);\n } else {\n if (diff >= 0) {\n exec();\n } else {\n timer = setTimeout(exec, -diff);\n }\n }\n\n lastCall = currCall;\n };\n /**\n * Clear throttle.\n * @public\n */\n\n\n cb.clear = function () {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n };\n /**\n * Enable debounce once.\n */\n\n\n cb.debounceNextCall = function (debounceDelay) {\n debounceNextCall = debounceDelay;\n };\n\n return cb;\n}\n/**\n * Create throttle method or update throttle rate.\n *\n * @example\n * ComponentView.prototype.render = function () {\n * ...\n * throttle.createOrUpdate(\n * this,\n * '_dispatchAction',\n * this.model.get('throttle'),\n * 'fixRate'\n * );\n * };\n * ComponentView.prototype.remove = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n * ComponentView.prototype.dispose = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n *\n */\n\nexport function createOrUpdate(obj, fnAttr, rate, throttleType) {\n var fn = obj[fnAttr];\n\n if (!fn) {\n return;\n }\n\n var originFn = fn[ORIGIN_METHOD] || fn;\n var lastThrottleType = fn[THROTTLE_TYPE];\n var lastRate = fn[RATE];\n\n if (lastRate !== rate || lastThrottleType !== throttleType) {\n if (rate == null || !throttleType) {\n return obj[fnAttr] = originFn;\n }\n\n fn = obj[fnAttr] = throttle(originFn, rate, throttleType === 'debounce');\n fn[ORIGIN_METHOD] = originFn;\n fn[THROTTLE_TYPE] = throttleType;\n fn[RATE] = rate;\n }\n\n return fn;\n}\n/**\n * Clear throttle. Example see throttle.createOrUpdate.\n */\n\nexport function clear(obj, fnAttr) {\n var fn = obj[fnAttr];\n\n if (fn && fn[ORIGIN_METHOD]) {\n obj[fnAttr] = fn[ORIGIN_METHOD];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isFunction, extend, createHashMap } from 'zrender/lib/core/util';\nimport makeStyleMapper from '../model/mixin/makeStyleMapper';\nimport { ITEM_STYLE_KEY_MAP } from '../model/mixin/itemStyle';\nimport { LINE_STYLE_KEY_MAP } from '../model/mixin/lineStyle';\nimport Model from '../model/Model';\nimport { makeInner } from '../util/model';\nvar inner = makeInner();\nvar defaultStyleMappers = {\n itemStyle: makeStyleMapper(ITEM_STYLE_KEY_MAP, true),\n lineStyle: makeStyleMapper(LINE_STYLE_KEY_MAP, true)\n};\nvar defaultColorKey = {\n lineStyle: 'stroke',\n itemStyle: 'fill'\n};\n\nfunction getStyleMapper(seriesModel, stylePath) {\n var styleMapper = seriesModel.visualStyleMapper || defaultStyleMappers[stylePath];\n\n if (!styleMapper) {\n console.warn(\"Unkown style type '\" + stylePath + \"'.\");\n return defaultStyleMappers.itemStyle;\n }\n\n return styleMapper;\n}\n\nfunction getDefaultColorKey(seriesModel, stylePath) {\n // return defaultColorKey[stylePath] ||\n var colorKey = seriesModel.visualDrawType || defaultColorKey[stylePath];\n\n if (!colorKey) {\n console.warn(\"Unkown style type '\" + stylePath + \"'.\");\n return 'fill';\n }\n\n return colorKey;\n}\n\nvar seriesStyleTask = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle\n\n var styleModel = seriesModel.getModel(stylePath);\n var getStyle = getStyleMapper(seriesModel, stylePath);\n var globalStyle = getStyle(styleModel);\n var decalOption = styleModel.getShallow('decal');\n\n if (decalOption) {\n data.setVisual('decal', decalOption);\n decalOption.dirty = true;\n } // TODO\n\n\n var colorKey = getDefaultColorKey(seriesModel, stylePath);\n var color = globalStyle[colorKey]; // TODO style callback\n\n var colorCallback = isFunction(color) ? color : null;\n var hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto'; // Get from color palette by default.\n\n if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {\n // Note: if some series has color specified (e.g., by itemStyle.color), we DO NOT\n // make it effect palette. Bacause some scenarios users need to make some series\n // transparent or as background, which should better not effect the palette.\n var colorPalette = seriesModel.getColorFromPalette( // TODO series count changed.\n seriesModel.name, null, ecModel.getSeriesCount());\n\n if (!globalStyle[colorKey]) {\n globalStyle[colorKey] = colorPalette;\n data.setVisual('colorFromPalette', true);\n }\n\n globalStyle.fill = globalStyle.fill === 'auto' || typeof globalStyle.fill === 'function' ? colorPalette : globalStyle.fill;\n globalStyle.stroke = globalStyle.stroke === 'auto' || typeof globalStyle.stroke === 'function' ? colorPalette : globalStyle.stroke;\n }\n\n data.setVisual('style', globalStyle);\n data.setVisual('drawType', colorKey); // Only visible series has each data be visual encoded\n\n if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) {\n data.setVisual('colorFromPalette', false);\n return {\n dataEach: function (data, idx) {\n var dataParams = seriesModel.getDataParams(idx);\n var itemStyle = extend({}, globalStyle);\n itemStyle[colorKey] = colorCallback(dataParams);\n data.setItemVisual(idx, 'style', itemStyle);\n }\n };\n }\n }\n};\nvar sharedModel = new Model();\nvar dataStyleTask = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle\n\n var getStyle = getStyleMapper(seriesModel, stylePath);\n var colorKey = data.getVisual('drawType');\n return {\n dataEach: data.hasItemOption ? function (data, idx) {\n // Not use getItemModel for performance considuration\n var rawItem = data.getRawDataItem(idx);\n\n if (rawItem && rawItem[stylePath]) {\n sharedModel.option = rawItem[stylePath];\n var style = getStyle(sharedModel);\n var existsStyle = data.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n if (sharedModel.option.decal) {\n data.setItemVisual(idx, 'decal', sharedModel.option.decal);\n sharedModel.option.decal.dirty = true;\n }\n\n if (colorKey in style) {\n data.setItemVisual(idx, 'colorFromPalette', false);\n }\n }\n } : null\n };\n }\n}; // Pick color from palette for the data which has not been set with color yet.\n// Note: do not support stream rendering. No such cases yet.\n\nvar dataColorPaletteTask = {\n performRawSeries: true,\n overallReset: function (ecModel) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n var paletteScopeGroupByType = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData) {\n return;\n }\n\n var colorScope = paletteScopeGroupByType.get(seriesModel.type);\n\n if (!colorScope) {\n colorScope = {};\n paletteScopeGroupByType.set(seriesModel.type, colorScope);\n }\n\n inner(seriesModel).scope = colorScope;\n });\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n var colorScope = inner(seriesModel).scope;\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle';\n var colorKey = getDefaultColorKey(seriesModel, stylePath);\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n }); // Iterate on data before filtered. To make sure color from palette can be\n // Consistent when toggling legend.\n\n dataAll.each(function (rawIdx) {\n var idx = idxMap[rawIdx];\n var fromPalette = data.getItemVisual(idx, 'colorFromPalette'); // Get color from palette for each data only when the color is inherited from series color, which is\n // also picked from color palette. So following situation is not in the case:\n // 1. series.itemStyle.color is set\n // 2. color is encoded by visualMap\n\n if (fromPalette) {\n var itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n var name_1 = dataAll.getName(rawIdx) || rawIdx + '';\n var dataCount = dataAll.count();\n itemStyle[colorKey] = seriesModel.getColorFromPalette(name_1, colorScope, dataCount);\n }\n });\n });\n }\n};\nexport { seriesStyleTask, dataStyleTask, dataColorPaletteTask };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../util/graphic';\nvar PI = Math.PI;\n/**\n * @param {module:echarts/ExtensionAPI} api\n * @param {Object} [opts]\n * @param {string} [opts.text]\n * @param {string} [opts.color]\n * @param {string} [opts.textColor]\n * @return {module:zrender/Element}\n */\n\nexport default function defaultLoading(api, opts) {\n opts = opts || {};\n zrUtil.defaults(opts, {\n text: 'loading',\n textColor: '#000',\n fontSize: 12,\n fontWeight: 'normal',\n fontStyle: 'normal',\n fontFamily: 'sans-serif',\n maskColor: 'rgba(255, 255, 255, 0.8)',\n showSpinner: true,\n color: '#5470c6',\n spinnerRadius: 10,\n lineWidth: 5,\n zlevel: 0\n });\n var group = new graphic.Group();\n var mask = new graphic.Rect({\n style: {\n fill: opts.maskColor\n },\n zlevel: opts.zlevel,\n z: 10000\n });\n group.add(mask);\n var textContent = new graphic.Text({\n style: {\n text: opts.text,\n fill: opts.textColor,\n fontSize: opts.fontSize,\n fontWeight: opts.fontWeight,\n fontStyle: opts.fontStyle,\n fontFamily: opts.fontFamily\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n var labelRect = new graphic.Rect({\n style: {\n fill: 'none'\n },\n textContent: textContent,\n textConfig: {\n position: 'right',\n distance: 10\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n group.add(labelRect);\n var arc;\n\n if (opts.showSpinner) {\n arc = new graphic.Arc({\n shape: {\n startAngle: -PI / 2,\n endAngle: -PI / 2 + 0.1,\n r: opts.spinnerRadius\n },\n style: {\n stroke: opts.color,\n lineCap: 'round',\n lineWidth: opts.lineWidth\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n arc.animateShape(true).when(1000, {\n endAngle: PI * 3 / 2\n }).start('circularInOut');\n arc.animateShape(true).when(1000, {\n startAngle: PI * 3 / 2\n }).delay(300).start('circularInOut');\n group.add(arc);\n } // Inject resize\n\n\n group.resize = function () {\n var textWidth = textContent.getBoundingRect().width;\n var r = opts.showSpinner ? opts.spinnerRadius : 0; // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2\n // textDistance needs to be calculated when both animation and text exist\n\n var cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2) // only show the text\n + (opts.showSpinner ? 0 : textWidth / 2) // only show the spinner\n + (textWidth ? 0 : r);\n var cy = api.getHeight() / 2;\n opts.showSpinner && arc.setShape({\n cx: cx,\n cy: cy\n });\n labelRect.setShape({\n x: cx - r,\n y: cy - r,\n width: r * 2,\n height: r * 2\n });\n mask.setShape({\n x: 0,\n y: 0,\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n\n group.resize();\n return group;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, map, isFunction, createHashMap, noop, assert } from 'zrender/lib/core/util';\nimport { createTask } from './task';\nimport { getUID } from '../util/component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport { normalizeToArray } from '../util/model';\n;\n\nvar Scheduler =\n/** @class */\nfunction () {\n function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) {\n // key: handlerUID\n this._stageTaskMap = createHashMap();\n this.ecInstance = ecInstance;\n this.api = api; // Fix current processors in case that in some rear cases that\n // processors might be registered after echarts instance created.\n // Register processors incrementally for a echarts instance is\n // not supported by this stream architecture.\n\n dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice();\n visualHandlers = this._visualHandlers = visualHandlers.slice();\n this._allHandlers = dataProcessorHandlers.concat(visualHandlers);\n }\n\n Scheduler.prototype.restoreData = function (ecModel, payload) {\n // TODO: Only restore needed series and components, but not all components.\n // Currently `restoreData` of all of the series and component will be called.\n // But some independent components like `title`, `legend`, `graphic`, `toolbox`,\n // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,\n // and some components like coordinate system, axes, dataZoom, visualMap only\n // need their target series refresh.\n // (1) If we are implementing this feature some day, we should consider these cases:\n // if a data processor depends on a component (e.g., dataZoomProcessor depends\n // on the settings of `dataZoom`), it should be re-performed if the component\n // is modified by `setOption`.\n // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,\n // it should be re-performed when the result array of `getTargetSeries` changed.\n // We use `dependencies` to cover these issues.\n // (3) How to update target series when coordinate system related components modified.\n // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,\n // and this case all of the tasks will be set as dirty.\n ecModel.restoreData(payload); // Theoretically an overall task not only depends on each of its target series, but also\n // depends on all of the series.\n // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks\n // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure\n // that the overall task is set as dirty and to be performed, otherwise it probably cause\n // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it\n // probably cause state chaos (consider `dataZoomProcessor`).\n\n this._stageTaskMap.each(function (taskRecord) {\n var overallTask = taskRecord.overallTask;\n overallTask && overallTask.dirty();\n });\n }; // If seriesModel provided, incremental threshold is check by series data.\n\n\n Scheduler.prototype.getPerformArgs = function (task, isBlock) {\n // For overall task\n if (!task.__pipeline) {\n return;\n }\n\n var pipeline = this._pipelineMap.get(task.__pipeline.id);\n\n var pCtx = pipeline.context;\n var incremental = !isBlock && pipeline.progressiveEnabled && (!pCtx || pCtx.progressiveRender) && task.__idxInPipeline > pipeline.blockIndex;\n var step = incremental ? pipeline.step : null;\n var modDataCount = pCtx && pCtx.modDataCount;\n var modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null;\n return {\n step: step,\n modBy: modBy,\n modDataCount: modDataCount\n };\n };\n\n Scheduler.prototype.getPipeline = function (pipelineId) {\n return this._pipelineMap.get(pipelineId);\n };\n /**\n * Current, progressive rendering starts from visual and layout.\n * Always detect render mode in the same stage, avoiding that incorrect\n * detection caused by data filtering.\n * Caution:\n * `updateStreamModes` use `seriesModel.getData()`.\n */\n\n\n Scheduler.prototype.updateStreamModes = function (seriesModel, view) {\n var pipeline = this._pipelineMap.get(seriesModel.uid);\n\n var data = seriesModel.getData();\n var dataLen = data.count(); // `progressiveRender` means that can render progressively in each\n // animation frame. Note that some types of series do not provide\n // `view.incrementalPrepareRender` but support `chart.appendData`. We\n // use the term `incremental` but not `progressive` to describe the\n // case that `chart.appendData`.\n\n var progressiveRender = pipeline.progressiveEnabled && view.incrementalPrepareRender && dataLen >= pipeline.threshold;\n var large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold'); // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint.\n // see `test/candlestick-large3.html`\n\n var modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null;\n seriesModel.pipelineContext = pipeline.context = {\n progressiveRender: progressiveRender,\n modDataCount: modDataCount,\n large: large\n };\n };\n\n Scheduler.prototype.restorePipelines = function (ecModel) {\n var scheduler = this;\n var pipelineMap = scheduler._pipelineMap = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var progressive = seriesModel.getProgressive();\n var pipelineId = seriesModel.uid;\n pipelineMap.set(pipelineId, {\n id: pipelineId,\n head: null,\n tail: null,\n threshold: seriesModel.getProgressiveThreshold(),\n progressiveEnabled: progressive && !(seriesModel.preventIncremental && seriesModel.preventIncremental()),\n blockIndex: -1,\n step: Math.round(progressive || 700),\n count: 0\n });\n\n scheduler._pipe(seriesModel, seriesModel.dataTask);\n });\n };\n\n Scheduler.prototype.prepareStageTasks = function () {\n var stageTaskMap = this._stageTaskMap;\n var ecModel = this.api.getModel();\n var api = this.api;\n each(this._allHandlers, function (handler) {\n var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n // Currently do not need to support to sepecify them both.\n errMsg = '\"reset\" and \"overallReset\" must not be both specified.';\n }\n\n assert(!(handler.reset && handler.overallReset), errMsg);\n handler.reset && this._createSeriesStageTask(handler, record, ecModel, api);\n handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api);\n }, this);\n };\n\n Scheduler.prototype.prepareView = function (view, model, ecModel, api) {\n var renderTask = view.renderTask;\n var context = renderTask.context;\n context.model = model;\n context.ecModel = ecModel;\n context.api = api;\n renderTask.__block = !view.incrementalPrepareRender;\n\n this._pipe(model, renderTask);\n };\n\n Scheduler.prototype.performDataProcessorTasks = function (ecModel, payload) {\n // If we do not use `block` here, it should be considered when to update modes.\n this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, {\n block: true\n });\n };\n\n Scheduler.prototype.performVisualTasks = function (ecModel, payload, opt) {\n this._performStageTasks(this._visualHandlers, ecModel, payload, opt);\n };\n\n Scheduler.prototype._performStageTasks = function (stageHandlers, ecModel, payload, opt) {\n opt = opt || {};\n var unfinished = false;\n var scheduler = this;\n each(stageHandlers, function (stageHandler, idx) {\n if (opt.visualType && opt.visualType !== stageHandler.visualType) {\n return;\n }\n\n var stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid);\n\n var seriesTaskMap = stageHandlerRecord.seriesTaskMap;\n var overallTask = stageHandlerRecord.overallTask;\n\n if (overallTask) {\n var overallNeedDirty_1;\n var agentStubMap = overallTask.agentStubMap;\n agentStubMap.each(function (stub) {\n if (needSetDirty(opt, stub)) {\n stub.dirty();\n overallNeedDirty_1 = true;\n }\n });\n overallNeedDirty_1 && overallTask.dirty();\n scheduler.updatePayload(overallTask, payload);\n var performArgs_1 = scheduler.getPerformArgs(overallTask, opt.block); // Execute stubs firstly, which may set the overall task dirty,\n // then execute the overall task. And stub will call seriesModel.setData,\n // which ensures that in the overallTask seriesModel.getData() will not\n // return incorrect data.\n\n agentStubMap.each(function (stub) {\n stub.perform(performArgs_1);\n });\n\n if (overallTask.perform(performArgs_1)) {\n unfinished = true;\n }\n } else if (seriesTaskMap) {\n seriesTaskMap.each(function (task, pipelineId) {\n if (needSetDirty(opt, task)) {\n task.dirty();\n }\n\n var performArgs = scheduler.getPerformArgs(task, opt.block); // FIXME\n // if intending to decalare `performRawSeries` in handlers, only\n // stream-independent (specifically, data item independent) operations can be\n // performed. Because is a series is filtered, most of the tasks will not\n // be performed. A stream-dependent operation probably cause wrong biz logic.\n // Perhaps we should not provide a separate callback for this case instead\n // of providing the config `performRawSeries`. The stream-dependent operaions\n // and stream-independent operations should better not be mixed.\n\n performArgs.skip = !stageHandler.performRawSeries && ecModel.isSeriesFiltered(task.context.model);\n scheduler.updatePayload(task, payload);\n\n if (task.perform(performArgs)) {\n unfinished = true;\n }\n });\n }\n });\n\n function needSetDirty(opt, task) {\n return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id));\n }\n\n this.unfinished = unfinished || this.unfinished;\n };\n\n Scheduler.prototype.performSeriesTasks = function (ecModel) {\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n // Progress to the end for dataInit and dataRestore.\n unfinished = seriesModel.dataTask.perform() || unfinished;\n });\n this.unfinished = unfinished || this.unfinished;\n };\n\n Scheduler.prototype.plan = function () {\n // Travel pipelines, check block.\n this._pipelineMap.each(function (pipeline) {\n var task = pipeline.tail;\n\n do {\n if (task.__block) {\n pipeline.blockIndex = task.__idxInPipeline;\n break;\n }\n\n task = task.getUpstream();\n } while (task);\n });\n };\n\n Scheduler.prototype.updatePayload = function (task, payload) {\n payload !== 'remain' && (task.context.payload = payload);\n };\n\n Scheduler.prototype._createSeriesStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {\n var scheduler = this;\n var oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap; // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n\n var newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = createHashMap();\n var seriesType = stageHandler.seriesType;\n var getTargetSeries = stageHandler.getTargetSeries; // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,\n // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,\n // it works but it may cause other irrelevant charts blocked.\n\n if (stageHandler.createOnAllSeries) {\n ecModel.eachRawSeries(create);\n } else if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, create);\n } else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(create);\n }\n\n function create(seriesModel) {\n var pipelineId = seriesModel.uid; // Init tasks for each seriesModel only once.\n // Reuse original task instance.\n\n var task = newSeriesTaskMap.set(pipelineId, oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId) || createTask({\n plan: seriesTaskPlan,\n reset: seriesTaskReset,\n count: seriesTaskCount\n }));\n task.context = {\n model: seriesModel,\n ecModel: ecModel,\n api: api,\n // PENDING: `useClearVisual` not used?\n useClearVisual: stageHandler.isVisual && !stageHandler.isLayout,\n plan: stageHandler.plan,\n reset: stageHandler.reset,\n scheduler: scheduler\n };\n\n scheduler._pipe(seriesModel, task);\n }\n };\n\n Scheduler.prototype._createOverallStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {\n var scheduler = this;\n var overallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask // For overall task, the function only be called on reset stage.\n || createTask({\n reset: overallTaskReset\n });\n overallTask.context = {\n ecModel: ecModel,\n api: api,\n overallReset: stageHandler.overallReset,\n scheduler: scheduler\n };\n var oldAgentStubMap = overallTask.agentStubMap; // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n\n var newAgentStubMap = overallTask.agentStubMap = createHashMap();\n var seriesType = stageHandler.seriesType;\n var getTargetSeries = stageHandler.getTargetSeries;\n var overallProgress = true;\n var shouldOverallTaskDirty = false; // FIXME:TS never used, so comment it\n // let modifyOutputEnd = stageHandler.modifyOutputEnd;\n // An overall task with seriesType detected or has `getTargetSeries`, we add\n // stub in each pipelines, it will set the overall task dirty when the pipeline\n // progress. Moreover, to avoid call the overall task each frame (too frequent),\n // we set the pipeline block.\n\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '\"createOnAllSeries\" do not supported for \"overallReset\", ' + 'becuase it will block all streams.';\n }\n\n assert(!stageHandler.createOnAllSeries, errMsg);\n\n if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, createStub);\n } else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(createStub);\n } // Otherwise, (usually it is legancy case), the overall task will only be\n // executed when upstream dirty. Otherwise the progressive rendering of all\n // pipelines will be disabled unexpectedly. But it still needs stubs to receive\n // dirty info from upsteam.\n else {\n overallProgress = false;\n each(ecModel.getSeries(), createStub);\n }\n\n function createStub(seriesModel) {\n var pipelineId = seriesModel.uid;\n var stub = newAgentStubMap.set(pipelineId, oldAgentStubMap && oldAgentStubMap.get(pipelineId) || ( // When the result of `getTargetSeries` changed, the overallTask\n // should be set as dirty and re-performed.\n shouldOverallTaskDirty = true, createTask({\n reset: stubReset,\n onDirty: stubOnDirty\n })));\n stub.context = {\n model: seriesModel,\n overallProgress: overallProgress // FIXME:TS never used, so comment it\n // modifyOutputEnd: modifyOutputEnd\n\n };\n stub.agent = overallTask;\n stub.__block = overallProgress;\n\n scheduler._pipe(seriesModel, stub);\n }\n\n if (shouldOverallTaskDirty) {\n overallTask.dirty();\n }\n };\n\n Scheduler.prototype._pipe = function (seriesModel, task) {\n var pipelineId = seriesModel.uid;\n\n var pipeline = this._pipelineMap.get(pipelineId);\n\n !pipeline.head && (pipeline.head = task);\n pipeline.tail && pipeline.tail.pipe(task);\n pipeline.tail = task;\n task.__idxInPipeline = pipeline.count++;\n task.__pipeline = pipeline;\n };\n\n Scheduler.wrapStageHandler = function (stageHandler, visualType) {\n if (isFunction(stageHandler)) {\n stageHandler = {\n overallReset: stageHandler,\n seriesType: detectSeriseType(stageHandler)\n };\n }\n\n stageHandler.uid = getUID('stageHandler');\n visualType && (stageHandler.visualType = visualType);\n return stageHandler;\n };\n\n ;\n return Scheduler;\n}();\n\nfunction overallTaskReset(context) {\n context.overallReset(context.ecModel, context.api, context.payload);\n}\n\nfunction stubReset(context) {\n return context.overallProgress && stubProgress;\n}\n\nfunction stubProgress() {\n this.agent.dirty();\n this.getDownstream().dirty();\n}\n\nfunction stubOnDirty() {\n this.agent && this.agent.dirty();\n}\n\nfunction seriesTaskPlan(context) {\n return context.plan ? context.plan(context.model, context.ecModel, context.api, context.payload) : null;\n}\n\nfunction seriesTaskReset(context) {\n if (context.useClearVisual) {\n context.data.clearAllVisual();\n }\n\n var resetDefines = context.resetDefines = normalizeToArray(context.reset(context.model, context.ecModel, context.api, context.payload));\n return resetDefines.length > 1 ? map(resetDefines, function (v, idx) {\n return makeSeriesTaskProgress(idx);\n }) : singleSeriesTaskProgress;\n}\n\nvar singleSeriesTaskProgress = makeSeriesTaskProgress(0);\n\nfunction makeSeriesTaskProgress(resetDefineIdx) {\n return function (params, context) {\n var data = context.data;\n var resetDefine = context.resetDefines[resetDefineIdx];\n\n if (resetDefine && resetDefine.dataEach) {\n for (var i = params.start; i < params.end; i++) {\n resetDefine.dataEach(data, i);\n }\n } else if (resetDefine && resetDefine.progress) {\n resetDefine.progress(params, data);\n }\n };\n}\n\nfunction seriesTaskCount(context) {\n return context.data.count();\n}\n/**\n * Only some legacy stage handlers (usually in echarts extensions) are pure function.\n * To ensure that they can work normally, they should work in block mode, that is,\n * they should not be started util the previous tasks finished. So they cause the\n * progressive rendering disabled. We try to detect the series type, to narrow down\n * the block range to only the series type they concern, but not all series.\n */\n\n\nfunction detectSeriseType(legacyFunc) {\n seriesType = null;\n\n try {\n // Assume there is no async when calling `eachSeriesByType`.\n legacyFunc(ecModelMock, apiMock);\n } catch (e) {}\n\n return seriesType;\n}\n\nvar ecModelMock = {};\nvar apiMock = {};\nvar seriesType;\nmockMethods(ecModelMock, GlobalModel);\nmockMethods(apiMock, ExtensionAPI);\n\necModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) {\n seriesType = type;\n};\n\necModelMock.eachComponent = function (cond) {\n if (cond.mainType === 'series' && cond.subType) {\n seriesType = cond.subType;\n }\n};\n\nfunction mockMethods(target, Clz) {\n /* eslint-disable */\n for (var name_1 in Clz.prototype) {\n // Do not use hasOwnProperty\n target[name_1] = noop;\n }\n /* eslint-enable */\n\n}\n\nexport default Scheduler;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar colorAll = ['#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'];\nexport default {\n color: colorAll,\n colorLayer: [['#37A2DA', '#ffd85c', '#fd7b5f'], ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'], ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'], colorAll]\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar contrastColor = '#B9B8CE';\nvar backgroundColor = '#100C2A';\n\nvar axisCommon = function () {\n return {\n axisLine: {\n lineStyle: {\n color: contrastColor\n }\n },\n splitLine: {\n lineStyle: {\n color: '#484753'\n }\n },\n splitArea: {\n areaStyle: {\n color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']\n }\n },\n minorSplitLine: {\n lineStyle: {\n color: '#20203B'\n }\n }\n };\n};\n\nvar colorPalette = ['#4992ff', '#7cffb2', '#fddd60', '#ff6e76', '#58d9f9', '#05c091', '#ff8a45', '#8d48e3', '#dd79ff'];\nvar theme = {\n darkMode: true,\n color: colorPalette,\n backgroundColor: backgroundColor,\n axisPointer: {\n lineStyle: {\n color: '#817f91'\n },\n crossStyle: {\n color: '#817f91'\n },\n label: {\n // TODO Contrast of label backgorundColor\n color: '#fff'\n }\n },\n legend: {\n textStyle: {\n color: contrastColor\n }\n },\n textStyle: {\n color: contrastColor\n },\n title: {\n textStyle: {\n color: '#EEF1FA'\n },\n subtextStyle: {\n color: '#B9B8CE'\n }\n },\n toolbox: {\n iconStyle: {\n borderColor: contrastColor\n }\n },\n dataZoom: {\n borderColor: '#71708A',\n textStyle: {\n color: contrastColor\n },\n brushStyle: {\n color: 'rgba(135,163,206,0.3)'\n },\n handleStyle: {\n color: '#353450',\n borderColor: '#C5CBE3'\n },\n moveHandleStyle: {\n color: '#B0B6C3',\n opacity: 0.3\n },\n fillerColor: 'rgba(135,163,206,0.2)',\n emphasis: {\n handleStyle: {\n borderColor: '#91B7F2',\n color: '#4D587D'\n },\n moveHandleStyle: {\n color: '#636D9A',\n opacity: 0.7\n }\n },\n dataBackground: {\n lineStyle: {\n color: '#71708A',\n width: 1\n },\n areaStyle: {\n color: '#71708A'\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#87A3CE'\n },\n areaStyle: {\n color: '#87A3CE'\n }\n }\n },\n visualMap: {\n textStyle: {\n color: contrastColor\n }\n },\n timeline: {\n lineStyle: {\n color: contrastColor\n },\n label: {\n color: contrastColor\n },\n controlStyle: {\n color: contrastColor,\n borderColor: contrastColor\n }\n },\n calendar: {\n itemStyle: {\n color: backgroundColor\n },\n dayLabel: {\n color: contrastColor\n },\n monthLabel: {\n color: contrastColor\n },\n yearLabel: {\n color: contrastColor\n }\n },\n timeAxis: axisCommon(),\n logAxis: axisCommon(),\n valueAxis: axisCommon(),\n categoryAxis: axisCommon(),\n line: {\n symbol: 'circle'\n },\n graph: {\n color: colorPalette\n },\n gauge: {\n title: {\n color: contrastColor\n },\n axisLine: {\n lineStyle: {\n color: [[1, 'rgba(207,212,219,0.2)']]\n }\n },\n axisLabel: {\n color: contrastColor\n },\n detail: {\n color: '#EEF1FA'\n }\n },\n candlestick: {\n itemStyle: {\n color: '#f64e56',\n color0: '#54ea92',\n borderColor: '#f64e56',\n borderColor0: '#54ea92' // borderColor: '#ca2824',\n // borderColor0: '#09a443'\n\n }\n }\n};\ntheme.categoryAxis.splitLine.show = false;\nexport default theme;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseClassType } from './clazz';\n/**\n * Usage of query:\n * `chart.on('click', query, handler);`\n * The `query` can be:\n * + The component type query string, only `mainType` or `mainType.subType`,\n * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'.\n * + The component query object, like:\n * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`,\n * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`.\n * + The data query object, like:\n * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`.\n * + The other query object (cmponent customized query), like:\n * `{element: 'some'}` (only available in custom series).\n *\n * Caveat: If a prop in the `query` object is `null/undefined`, it is the\n * same as there is no such prop in the `query` object.\n */\n\nvar ECEventProcessor =\n/** @class */\nfunction () {\n function ECEventProcessor() {}\n\n ECEventProcessor.prototype.normalizeQuery = function (query) {\n var cptQuery = {};\n var dataQuery = {};\n var otherQuery = {}; // `query` is `mainType` or `mainType.subType` of component.\n\n if (zrUtil.isString(query)) {\n var condCptType = parseClassType(query); // `.main` and `.sub` may be ''.\n\n cptQuery.mainType = condCptType.main || null;\n cptQuery.subType = condCptType.sub || null;\n } // `query` is an object, convert to {mainType, index, name, id}.\n else {\n // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,\n // can not be used in `compomentModel.filterForExposedEvent`.\n var suffixes_1 = ['Index', 'Name', 'Id'];\n var dataKeys_1 = {\n name: 1,\n dataIndex: 1,\n dataType: 1\n };\n zrUtil.each(query, function (val, key) {\n var reserved = false;\n\n for (var i = 0; i < suffixes_1.length; i++) {\n var propSuffix = suffixes_1[i];\n var suffixPos = key.lastIndexOf(propSuffix);\n\n if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {\n var mainType = key.slice(0, suffixPos); // Consider `dataIndex`.\n\n if (mainType !== 'data') {\n cptQuery.mainType = mainType;\n cptQuery[propSuffix.toLowerCase()] = val;\n reserved = true;\n }\n }\n }\n\n if (dataKeys_1.hasOwnProperty(key)) {\n dataQuery[key] = val;\n reserved = true;\n }\n\n if (!reserved) {\n otherQuery[key] = val;\n }\n });\n }\n\n return {\n cptQuery: cptQuery,\n dataQuery: dataQuery,\n otherQuery: otherQuery\n };\n };\n\n ECEventProcessor.prototype.filter = function (eventType, query) {\n // They should be assigned before each trigger call.\n var eventInfo = this.eventInfo;\n\n if (!eventInfo) {\n return true;\n }\n\n var targetEl = eventInfo.targetEl;\n var packedEvent = eventInfo.packedEvent;\n var model = eventInfo.model;\n var view = eventInfo.view; // For event like 'globalout'.\n\n if (!model || !view) {\n return true;\n }\n\n var cptQuery = query.cptQuery;\n var dataQuery = query.dataQuery;\n return check(cptQuery, model, 'mainType') && check(cptQuery, model, 'subType') && check(cptQuery, model, 'index', 'componentIndex') && check(cptQuery, model, 'name') && check(cptQuery, model, 'id') && check(dataQuery, packedEvent, 'name') && check(dataQuery, packedEvent, 'dataIndex') && check(dataQuery, packedEvent, 'dataType') && (!view.filterForExposedEvent || view.filterForExposedEvent(eventType, query.otherQuery, targetEl, packedEvent));\n\n function check(query, host, prop, propOnHost) {\n return query[prop] == null || host[propOnHost || prop] === query[prop];\n }\n };\n\n ECEventProcessor.prototype.afterTrigger = function () {\n // Make sure the eventInfo wont be used in next trigger.\n this.eventInfo = null;\n };\n\n return ECEventProcessor;\n}();\n\nexport { ECEventProcessor };\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isFunction } from 'zrender/lib/core/util'; // Encoding visual for all series include which is filtered for legend drawing\n\nvar seriesSymbolTask = {\n createOnAllSeries: true,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n\n if (seriesModel.legendIcon) {\n data.setVisual('legendIcon', seriesModel.legendIcon);\n }\n\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n\n var symbolType = seriesModel.get('symbol');\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n var symbolRotate = seriesModel.get('symbolRotate');\n var symbolOffset = seriesModel.get('symbolOffset');\n var hasSymbolTypeCallback = isFunction(symbolType);\n var hasSymbolSizeCallback = isFunction(symbolSize);\n var hasSymbolRotateCallback = isFunction(symbolRotate);\n var hasSymbolOffsetCallback = isFunction(symbolOffset);\n var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback || hasSymbolRotateCallback || hasSymbolOffsetCallback;\n var seriesSymbol = !hasSymbolTypeCallback && symbolType ? symbolType : seriesModel.defaultSymbol;\n var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n var seriesSymbolRotate = !hasSymbolRotateCallback ? symbolRotate : null;\n var seriesSymbolOffset = !hasSymbolOffsetCallback ? symbolOffset : null;\n data.setVisual({\n legendIcon: seriesModel.legendIcon || seriesSymbol,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol,\n symbolSize: seriesSymbolSize,\n symbolKeepAspect: keepAspect,\n symbolRotate: seriesSymbolRotate,\n symbolOffset: seriesSymbolOffset\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data, idx) {\n var rawValue = seriesModel.getRawValue(idx);\n var params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params));\n hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n hasSymbolRotateCallback && data.setItemVisual(idx, 'symbolRotate', symbolRotate(rawValue, params));\n hasSymbolOffsetCallback && data.setItemVisual(idx, 'symbolOffset', symbolOffset(rawValue, params));\n }\n\n return {\n dataEach: hasCallback ? dataEach : null\n };\n }\n};\nvar dataSymbolTask = {\n createOnAllSeries: true,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n if (!seriesModel.hasSymbolVisual) {\n return;\n } // Only visible series has each data be visual encoded\n\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n\n function dataEach(data, idx) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n var itemSymbolOffset = itemModel.getShallow('symbolOffset', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n\n if (itemSymbolOffset != null) {\n data.setItemVisual(idx, 'symbolOffset', itemSymbolOffset);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\nexport { seriesSymbolTask, dataSymbolTask };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function getItemVisualFromData(data, dataIndex, key) {\n switch (key) {\n case 'color':\n var style = data.getItemVisual(dataIndex, 'style');\n return style[data.getVisual('drawType')];\n\n case 'opacity':\n return data.getItemVisual(dataIndex, 'style').opacity;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getItemVisual(dataIndex, key);\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}\nexport function getVisualFromData(data, key) {\n switch (key) {\n case 'color':\n var style = data.getVisual('style');\n return style[data.getVisual('drawType')];\n\n case 'opacity':\n return data.getVisual('style').opacity;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getVisual(key);\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}\nexport function setItemVisualFromData(data, dataIndex, key, value) {\n switch (key) {\n case 'color':\n // Make sure not sharing style object.\n var style = data.ensureUniqueItemVisual(dataIndex, 'style');\n style[data.getVisual('drawType')] = value; // Mark the color has been changed, not from palette anymore\n\n data.setItemVisual(dataIndex, 'colorFromPalette', false);\n break;\n\n case 'opacity':\n data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value;\n break;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n data.setItemVisual(dataIndex, key, value);\n break;\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Point, Path, Polyline } from '../util/graphic';\nimport PathProxy from 'zrender/lib/core/PathProxy';\nimport { normalizeRadian } from 'zrender/lib/contain/util';\nimport { cubicProjectPoint, quadraticProjectPoint } from 'zrender/lib/core/curve';\nimport { defaults, retrieve2 } from 'zrender/lib/core/util';\nimport { invert } from 'zrender/lib/core/matrix';\nimport * as vector from 'zrender/lib/core/vector';\nimport { DISPLAY_STATES, SPECIAL_STATES } from '../util/states';\nvar PI2 = Math.PI * 2;\nvar CMD = PathProxy.CMD;\nvar DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left'];\n\nfunction getCandidateAnchor(pos, distance, rect, outPt, outDir) {\n var width = rect.width;\n var height = rect.height;\n\n switch (pos) {\n case 'top':\n outPt.set(rect.x + width / 2, rect.y - distance);\n outDir.set(0, -1);\n break;\n\n case 'bottom':\n outPt.set(rect.x + width / 2, rect.y + height + distance);\n outDir.set(0, 1);\n break;\n\n case 'left':\n outPt.set(rect.x - distance, rect.y + height / 2);\n outDir.set(-1, 0);\n break;\n\n case 'right':\n outPt.set(rect.x + width + distance, rect.y + height / 2);\n outDir.set(1, 0);\n break;\n }\n}\n\nfunction projectPointToArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y, out) {\n x -= cx;\n y -= cy;\n var d = Math.sqrt(x * x + y * y);\n x /= d;\n y /= d; // Intersect point.\n\n var ox = x * r + cx;\n var oy = y * r + cy;\n\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n if (anticlockwise) {\n var tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n } else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n var angle = Math.atan2(y, x);\n\n if (angle < 0) {\n angle += PI2;\n }\n\n if (angle >= startAngle && angle <= endAngle || angle + PI2 >= startAngle && angle + PI2 <= endAngle) {\n // Project point is on the arc.\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n var x1 = r * Math.cos(startAngle) + cx;\n var y1 = r * Math.sin(startAngle) + cy;\n var x2 = r * Math.cos(endAngle) + cx;\n var y2 = r * Math.sin(endAngle) + cy;\n var d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y);\n var d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y);\n\n if (d1 < d2) {\n out[0] = x1;\n out[1] = y1;\n return Math.sqrt(d1);\n } else {\n out[0] = x2;\n out[1] = y2;\n return Math.sqrt(d2);\n }\n}\n\nfunction projectPointToLine(x1, y1, x2, y2, x, y, out, limitToEnds) {\n var dx = x - x1;\n var dy = y - y1;\n var dx1 = x2 - x1;\n var dy1 = y2 - y1;\n var lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n dx1 /= lineLen;\n dy1 /= lineLen; // dot product\n\n var projectedLen = dx * dx1 + dy * dy1;\n var t = projectedLen / lineLen;\n\n if (limitToEnds) {\n t = Math.min(Math.max(t, 0), 1);\n }\n\n t *= lineLen;\n var ox = out[0] = x1 + t * dx1;\n var oy = out[1] = y1 + t * dy1;\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nfunction projectPointToRect(x1, y1, width, height, x, y, out) {\n if (width < 0) {\n x1 = x1 + width;\n width = -width;\n }\n\n if (height < 0) {\n y1 = y1 + height;\n height = -height;\n }\n\n var x2 = x1 + width;\n var y2 = y1 + height;\n var ox = out[0] = Math.min(Math.max(x, x1), x2);\n var oy = out[1] = Math.min(Math.max(y, y1), y2);\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nvar tmpPt = [];\n\nfunction nearestPointOnRect(pt, rect, out) {\n var dist = projectPointToRect(rect.x, rect.y, rect.width, rect.height, pt.x, pt.y, tmpPt);\n out.set(tmpPt[0], tmpPt[1]);\n return dist;\n}\n/**\n * Calculate min distance corresponding point.\n * This method won't evaluate if point is in the path.\n */\n\n\nfunction nearestPointOnPath(pt, path, out) {\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var x1;\n var y1;\n var minDist = Infinity;\n var data = path.data;\n var x = pt.x;\n var y = pt.y;\n\n for (var i = 0; i < data.length;) {\n var cmd = data[i++];\n\n if (i === 1) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n\n var d = minDist;\n\n switch (cmd) {\n case CMD.M:\n // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点\n // 在 closePath 的时候使用\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n\n case CMD.L:\n d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.C:\n d = cubicProjectPoint(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.Q:\n d = quadraticProjectPoint(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.A:\n // TODO Arc 判断的开销比较大\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var theta = data[i++];\n var dTheta = data[i++]; // TODO Arc 旋转\n\n i += 1;\n var anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy; // 不是直接使用 arc 命令\n\n if (i <= 1) {\n // 第一个命令起点还未定义\n x0 = x1;\n y0 = y1;\n } // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放\n\n\n var _x = (x - cx) * ry / rx + cx;\n\n d = projectPointToArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y, tmpPt);\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n d = projectPointToRect(x0, y0, width, height, x, y, tmpPt);\n break;\n\n case CMD.Z:\n d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true);\n xi = x0;\n yi = y0;\n break;\n }\n\n if (d < minDist) {\n minDist = d;\n out.set(tmpPt[0], tmpPt[1]);\n }\n }\n\n return minDist;\n} // Temporal varible for intermediate usage.\n\n\nvar pt0 = new Point();\nvar pt1 = new Point();\nvar pt2 = new Point();\nvar dir = new Point();\nvar dir2 = new Point();\n/**\n * Calculate a proper guide line based on the label position and graphic element definition\n * @param label\n * @param labelRect\n * @param target\n * @param targetRect\n */\n\nexport function updateLabelLinePoints(target, labelLineModel) {\n if (!target) {\n return;\n }\n\n var labelLine = target.getTextGuideLine();\n var label = target.getTextContent(); // Needs to create text guide in each charts.\n\n if (!(label && labelLine)) {\n return;\n }\n\n var labelGuideConfig = target.textGuideLineConfig || {};\n var points = [[0, 0], [0, 0], [0, 0]];\n var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n var labelRect = label.getBoundingRect().clone();\n labelRect.applyTransform(label.getComputedTransform());\n var minDist = Infinity;\n var anchorPoint = labelGuideConfig.anchor;\n var targetTransform = target.getComputedTransform();\n var targetInversedTransform = targetTransform && invert([], targetTransform);\n var len = labelLineModel.get('length2') || 0;\n\n if (anchorPoint) {\n pt2.copy(anchorPoint);\n }\n\n for (var i = 0; i < searchSpace.length; i++) {\n var candidate = searchSpace[i];\n getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n Point.scaleAndAdd(pt1, pt0, dir, len); // Transform to target coord space.\n\n pt1.transform(targetInversedTransform); // Note: getBoundingRect will ensure the `path` being created.\n\n var boundingRect = target.getBoundingRect();\n var dist = anchorPoint ? anchorPoint.distance(pt1) : target instanceof Path ? nearestPointOnPath(pt1, target.path, pt2) : nearestPointOnRect(pt1, boundingRect, pt2); // TODO pt2 is in the path\n\n if (dist < minDist) {\n minDist = dist; // Transform back to global space.\n\n pt1.transform(targetTransform);\n pt2.transform(targetTransform);\n pt2.toArray(points[0]);\n pt1.toArray(points[1]);\n pt0.toArray(points[2]);\n }\n }\n\n limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n labelLine.setShape({\n points: points\n });\n} // Temporal variable for the limitTurnAngle function\n\nvar tmpArr = [];\nvar tmpProjPoint = new Point();\n/**\n * Reduce the line segment attached to the label to limit the turn angle between two segments.\n * @param linePoints\n * @param minTurnAngle Radian of minimum turn angle. 0 - 180\n */\n\nexport function limitTurnAngle(linePoints, minTurnAngle) {\n if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {\n return;\n }\n\n minTurnAngle = minTurnAngle / 180 * Math.PI; // The line points can be\n // /pt1----pt2 (label)\n // /\n // pt0/\n\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n Point.sub(dir, pt0, pt1);\n Point.sub(dir2, pt2, pt1);\n var len1 = dir.len();\n var len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n var angleCos = dir.dot(dir2);\n var minTurnAngleCos = Math.cos(minTurnAngle);\n\n if (minTurnAngleCos < angleCos) {\n // Smaller than minTurnAngle\n // Calculate project point of pt0 on pt1-pt2\n var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr); // Calculate new projected length with limited minTurnAngle and get the new connect point\n\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle)); // Limit the new calculated connect point between pt1 and pt2.\n\n var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n } else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n/**\n * Limit the angle of line and the surface\n * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite\n */\n\nexport function limitSurfaceAngle(linePoints, surfaceNormal, maxSurfaceAngle) {\n if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {\n return;\n }\n\n maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n Point.sub(dir, pt1, pt0);\n Point.sub(dir2, pt2, pt1);\n var len1 = dir.len();\n var len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n var angleCos = dir.dot(surfaceNormal);\n var maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);\n\n if (angleCos < maxSurfaceAngleCos) {\n // Calculate project point of pt0 on pt1-pt2\n var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n var HALF_PI = Math.PI / 2;\n var angle2 = Math.acos(dir2.dot(surfaceNormal));\n var newAngle = HALF_PI + angle2 - maxSurfaceAngle;\n\n if (newAngle >= HALF_PI) {\n // parallel\n Point.copy(tmpProjPoint, pt2);\n } else {\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle)); // Limit the new calculated connect point between pt1 and pt2.\n\n var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n } else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\nfunction setLabelLineState(labelLine, ignore, stateName, stateModel) {\n var isNormal = stateName === 'normal';\n var stateObj = isNormal ? labelLine : labelLine.ensureState(stateName); // Make sure display.\n\n stateObj.ignore = ignore; // Set smooth\n\n var smooth = stateModel.get('smooth');\n\n if (smooth && smooth === true) {\n smooth = 0.3;\n }\n\n stateObj.shape = stateObj.shape || {};\n\n if (smooth > 0) {\n stateObj.shape.smooth = smooth;\n }\n\n var styleObj = stateModel.getModel('lineStyle').getLineStyle();\n isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;\n}\n\nfunction buildLabelLinePath(path, shape) {\n var smooth = shape.smooth;\n var points = shape.points;\n\n if (!points) {\n return;\n }\n\n path.moveTo(points[0][0], points[0][1]);\n\n if (smooth > 0 && points.length >= 3) {\n var len1 = vector.dist(points[0], points[1]);\n var len2 = vector.dist(points[1], points[2]);\n\n if (!len1 || !len2) {\n path.lineTo(points[1][0], points[1][1]);\n path.lineTo(points[2][0], points[2][1]);\n return;\n }\n\n var moveLen = Math.min(len1, len2) * smooth;\n var midPoint0 = vector.lerp([], points[1], points[0], moveLen / len1);\n var midPoint2 = vector.lerp([], points[1], points[2], moveLen / len2);\n var midPoint1 = vector.lerp([], midPoint0, midPoint2, 0.5);\n path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);\n path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);\n } else {\n for (var i = 1; i < points.length; i++) {\n path.lineTo(points[i][0], points[i][1]);\n }\n }\n}\n/**\n * Create a label line if necessary and set it's style.\n */\n\n\nexport function setLabelLineStyle(targetEl, statesModels, defaultStyle) {\n var labelLine = targetEl.getTextGuideLine();\n var label = targetEl.getTextContent();\n\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n\n return;\n }\n\n var normalModel = statesModels.normal;\n var showNormal = normalModel.get('show');\n var labelIgnoreNormal = label.ignore;\n\n for (var i = 0; i < DISPLAY_STATES.length; i++) {\n var stateName = DISPLAY_STATES[i];\n var stateModel = statesModels[stateName];\n var isNormal = stateName === 'normal';\n\n if (stateModel) {\n var stateShow = stateModel.get('show');\n var isLabelIgnored = isNormal ? labelIgnoreNormal : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !retrieve2(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n var stateObj = isNormal ? labelLine : labelLine && labelLine.states.normal;\n\n if (stateObj) {\n stateObj.ignore = true;\n }\n\n continue;\n } // Create labelLine if not exists\n\n\n if (!labelLine) {\n labelLine = new Polyline();\n targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n } // Use same state proxy.\n\n\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n defaults(labelLine.style, defaultStyle); // Not fill.\n\n labelLine.style.fill = null;\n var showAbove = normalModel.get('showAbove');\n var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};\n labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.\n\n labelLine.buildPath = buildLabelLinePath;\n }\n}\nexport function getLabelLineStatesModels(itemModel, labelLineName) {\n labelLineName = labelLineName || 'labelLine';\n var statesModels = {\n normal: itemModel.getModel(labelLineName)\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);\n }\n\n return statesModels;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { BoundingRect, OrientedBoundingRect } from '../util/graphic';\nexport function prepareLayoutList(input) {\n var list = [];\n\n for (var i = 0; i < input.length; i++) {\n var rawItem = input[i];\n\n if (rawItem.defaultAttr.ignore) {\n continue;\n }\n\n var label = rawItem.label;\n var transform = label.getComputedTransform(); // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el.\n\n var localRect = label.getBoundingRect();\n var isAxisAligned = !transform || transform[1] < 1e-5 && transform[2] < 1e-5;\n var minMargin = label.style.margin || 0;\n var globalRect = localRect.clone();\n globalRect.applyTransform(transform);\n globalRect.x -= minMargin / 2;\n globalRect.y -= minMargin / 2;\n globalRect.width += minMargin;\n globalRect.height += minMargin;\n var obb = isAxisAligned ? new OrientedBoundingRect(localRect, transform) : null;\n list.push({\n label: label,\n labelLine: rawItem.labelLine,\n rect: globalRect,\n localRect: localRect,\n obb: obb,\n priority: rawItem.priority,\n defaultAttr: rawItem.defaultAttr,\n layoutOption: rawItem.computedLayoutOption,\n axisAligned: isAxisAligned,\n transform: transform\n });\n }\n\n return list;\n}\n\nfunction shiftLayout(list, xyDim, sizeDim, minBound, maxBound, balanceShift) {\n var len = list.length;\n\n if (len < 2) {\n return;\n }\n\n list.sort(function (a, b) {\n return a.rect[xyDim] - b.rect[xyDim];\n });\n var lastPos = 0;\n var delta;\n var adjusted = false;\n var shifts = [];\n var totalShifts = 0;\n\n for (var i = 0; i < len; i++) {\n var item = list[i];\n var rect = item.rect;\n delta = rect[xyDim] - lastPos;\n\n if (delta < 0) {\n // shiftForward(i, len, -delta);\n rect[xyDim] -= delta;\n item.label[xyDim] -= delta;\n adjusted = true;\n }\n\n var shift = Math.max(-delta, 0);\n shifts.push(shift);\n totalShifts += shift;\n lastPos = rect[xyDim] + rect[sizeDim];\n }\n\n if (totalShifts > 0 && balanceShift) {\n // Shift back to make the distribution more equally.\n shiftList(-totalShifts / len, 0, len);\n } // TODO bleedMargin?\n\n\n var first = list[0];\n var last = list[len - 1];\n var minGap;\n var maxGap;\n updateMinMaxGap(); // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.\n\n minGap < 0 && squeezeGaps(-minGap, 0.8);\n maxGap < 0 && squeezeGaps(maxGap, 0.8);\n updateMinMaxGap();\n takeBoundsGap(minGap, maxGap, 1);\n takeBoundsGap(maxGap, minGap, -1); // Handle bailout when there is not enough space.\n\n updateMinMaxGap();\n\n if (minGap < 0) {\n squeezeWhenBailout(-minGap);\n }\n\n if (maxGap < 0) {\n squeezeWhenBailout(maxGap);\n }\n\n function updateMinMaxGap() {\n minGap = first.rect[xyDim] - minBound;\n maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];\n }\n\n function takeBoundsGap(gapThisBound, gapOtherBound, moveDir) {\n if (gapThisBound < 0) {\n // Move from other gap if can.\n var moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);\n\n if (moveFromMaxGap > 0) {\n shiftList(moveFromMaxGap * moveDir, 0, len);\n var remained = moveFromMaxGap + gapThisBound;\n\n if (remained < 0) {\n squeezeGaps(-remained * moveDir, 1);\n }\n } else {\n squeezeGaps(-gapThisBound * moveDir, 1);\n }\n }\n }\n\n function shiftList(delta, start, end) {\n if (delta !== 0) {\n adjusted = true;\n }\n\n for (var i = start; i < end; i++) {\n var item = list[i];\n var rect = item.rect;\n rect[xyDim] += delta;\n item.label[xyDim] += delta;\n }\n } // Squeeze gaps if the labels exceed margin.\n\n\n function squeezeGaps(delta, maxSqeezePercent) {\n var gaps = [];\n var totalGaps = 0;\n\n for (var i = 1; i < len; i++) {\n var prevItemRect = list[i - 1].rect;\n var gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);\n gaps.push(gap);\n totalGaps += gap;\n }\n\n if (!totalGaps) {\n return;\n }\n\n var squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);\n\n if (delta > 0) {\n for (var i = 0; i < len - 1; i++) {\n // Distribute the shift delta to all gaps.\n var movement = gaps[i] * squeezePercent; // Forward\n\n shiftList(movement, 0, i + 1);\n }\n } else {\n // Backward\n for (var i = len - 1; i > 0; i--) {\n // Distribute the shift delta to all gaps.\n var movement = gaps[i - 1] * squeezePercent;\n shiftList(-movement, i, len);\n }\n }\n }\n /**\n * Squeeze to allow overlap if there is no more space available.\n * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.\n */\n\n\n function squeezeWhenBailout(delta) {\n var dir = delta < 0 ? -1 : 1;\n delta = Math.abs(delta);\n var moveForEachLabel = Math.ceil(delta / (len - 1));\n\n for (var i = 0; i < len - 1; i++) {\n if (dir > 0) {\n // Forward\n shiftList(moveForEachLabel, 0, i + 1);\n } else {\n // Backward\n shiftList(-moveForEachLabel, len - i - 1, len);\n }\n\n delta -= moveForEachLabel;\n\n if (delta <= 0) {\n return;\n }\n }\n }\n\n return adjusted;\n}\n/**\n * Adjust labels on x direction to avoid overlap.\n */\n\n\nexport function shiftLayoutOnX(list, leftBound, rightBound, // If average the shifts on all labels and add them to 0\n// TODO: Not sure if should enable it.\n// Pros: The angle of lines will distribute more equally\n// Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.\nbalanceShift) {\n return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift);\n}\n/**\n * Adjust labels on y direction to avoid overlap.\n */\n\nexport function shiftLayoutOnY(list, topBound, bottomBound, // If average the shifts on all labels and add them to 0\nbalanceShift) {\n return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);\n}\nexport function hideOverlap(labelList) {\n var displayedLabels = []; // TODO, render overflow visible first, put in the displayedLabels.\n\n labelList.sort(function (a, b) {\n return b.priority - a.priority;\n });\n var globalRect = new BoundingRect(0, 0, 0, 0);\n\n function hideEl(el) {\n if (!el.ignore) {\n // Show on emphasis.\n var emphasisState = el.ensureState('emphasis');\n\n if (emphasisState.ignore == null) {\n emphasisState.ignore = false;\n }\n }\n\n el.ignore = true;\n }\n\n for (var i = 0; i < labelList.length; i++) {\n var labelItem = labelList[i];\n var isAxisAligned = labelItem.axisAligned;\n var localRect = labelItem.localRect;\n var transform = labelItem.transform;\n var label = labelItem.label;\n var labelLine = labelItem.labelLine;\n globalRect.copy(labelItem.rect); // Add a threshold because layout may be aligned precisely.\n\n globalRect.width -= 0.1;\n globalRect.height -= 0.1;\n globalRect.x += 0.05;\n globalRect.y += 0.05;\n var obb = labelItem.obb;\n var overlapped = false;\n\n for (var j = 0; j < displayedLabels.length; j++) {\n var existsTextCfg = displayedLabels[j]; // Fast rejection.\n\n if (!globalRect.intersect(existsTextCfg.rect)) {\n continue;\n }\n\n if (isAxisAligned && existsTextCfg.axisAligned) {\n // Is overlapped\n overlapped = true;\n break;\n }\n\n if (!existsTextCfg.obb) {\n // If self is not axis aligned. But other is.\n existsTextCfg.obb = new OrientedBoundingRect(existsTextCfg.localRect, existsTextCfg.transform);\n }\n\n if (!obb) {\n // If self is axis aligned. But other is not.\n obb = new OrientedBoundingRect(localRect, transform);\n }\n\n if (obb.intersect(existsTextCfg.obb)) {\n overlapped = true;\n break;\n }\n } // TODO Callback to determine if this overlap should be handled?\n\n\n if (overlapped) {\n hideEl(label);\n labelLine && hideEl(labelLine);\n } else {\n label.attr('ignore', labelItem.defaultAttr.ignore);\n labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore);\n displayedLabels.push(labelItem);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO: move labels out of viewport.\nimport { BoundingRect, updateProps, initProps, isElementRemoved } from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport { parsePercent } from '../util/number';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport { updateLabelLinePoints, setLabelLineStyle, getLabelLineStatesModels } from './labelGuideHelper';\nimport { makeInner } from '../util/model';\nimport { retrieve2, each, keys, isFunction, filter, indexOf } from 'zrender/lib/core/util';\nimport { prepareLayoutList, hideOverlap, shiftLayoutOnX, shiftLayoutOnY } from './labelLayoutHelper';\nimport { labelInner, animateLabelValue } from './labelStyle';\n\nfunction cloneArr(points) {\n if (points) {\n var newPoints = [];\n\n for (var i = 0; i < points.length; i++) {\n newPoints.push(points[i].slice());\n }\n\n return newPoints;\n }\n}\n\nfunction prepareLayoutCallbackParams(labelItem, hostEl) {\n var label = labelItem.label;\n var labelLine = hostEl && hostEl.getTextGuideLine();\n return {\n dataIndex: labelItem.dataIndex,\n dataType: labelItem.dataType,\n seriesIndex: labelItem.seriesModel.seriesIndex,\n text: labelItem.label.style.text,\n rect: labelItem.hostRect,\n labelRect: labelItem.rect,\n // x: labelAttr.x,\n // y: labelAttr.y,\n align: label.style.align,\n verticalAlign: label.style.verticalAlign,\n labelLinePoints: cloneArr(labelLine && labelLine.shape.points)\n };\n}\n\nvar LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize'];\nvar dummyTransformable = new Transformable();\nvar labelLayoutInnerStore = makeInner();\nvar labelLineAnimationStore = makeInner();\n\nfunction extendWithKeys(target, source, keys) {\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (source[key] != null) {\n target[key] = source[key];\n }\n }\n}\n\nvar LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation'];\n\nvar LabelManager =\n/** @class */\nfunction () {\n function LabelManager() {\n this._labelList = [];\n this._chartViewList = [];\n }\n\n LabelManager.prototype.clearLabels = function () {\n this._labelList = [];\n this._chartViewList = [];\n };\n /**\n * Add label to manager\n */\n\n\n LabelManager.prototype._addLabel = function (dataIndex, dataType, seriesModel, label, layoutOption) {\n var labelStyle = label.style;\n var hostEl = label.__hostTarget;\n var textConfig = hostEl.textConfig || {}; // TODO: If label is in other state.\n\n var labelTransform = label.getComputedTransform();\n var labelRect = label.getBoundingRect().plain();\n BoundingRect.applyTransform(labelRect, labelRect, labelTransform);\n\n if (labelTransform) {\n dummyTransformable.setLocalTransform(labelTransform);\n } else {\n // Identity transform.\n dummyTransformable.x = dummyTransformable.y = dummyTransformable.rotation = dummyTransformable.originX = dummyTransformable.originY = 0;\n dummyTransformable.scaleX = dummyTransformable.scaleY = 1;\n }\n\n var host = label.__hostTarget;\n var hostRect;\n\n if (host) {\n hostRect = host.getBoundingRect().plain();\n var transform = host.getComputedTransform();\n BoundingRect.applyTransform(hostRect, hostRect, transform);\n }\n\n var labelGuide = hostRect && host.getTextGuideLine();\n\n this._labelList.push({\n label: label,\n labelLine: labelGuide,\n seriesModel: seriesModel,\n dataIndex: dataIndex,\n dataType: dataType,\n layoutOption: layoutOption,\n computedLayoutOption: null,\n rect: labelRect,\n hostRect: hostRect,\n // Label with lower priority will be hidden when overlapped\n // Use rect size as default priority\n priority: hostRect ? hostRect.width * hostRect.height : 0,\n // Save default label attributes.\n // For restore if developers want get back to default value in callback.\n defaultAttr: {\n ignore: label.ignore,\n labelGuideIgnore: labelGuide && labelGuide.ignore,\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY,\n rotation: dummyTransformable.rotation,\n style: {\n x: labelStyle.x,\n y: labelStyle.y,\n align: labelStyle.align,\n verticalAlign: labelStyle.verticalAlign,\n width: labelStyle.width,\n height: labelStyle.height,\n fontSize: labelStyle.fontSize\n },\n cursor: label.cursor,\n attachedPos: textConfig.position,\n attachedRot: textConfig.rotation\n }\n });\n };\n\n LabelManager.prototype.addLabelsOfSeries = function (chartView) {\n var _this = this;\n\n this._chartViewList.push(chartView);\n\n var seriesModel = chartView.__model;\n var layoutOption = seriesModel.get('labelLayout');\n /**\n * Ignore layouting if it's not specified anything.\n */\n\n if (!(isFunction(layoutOption) || keys(layoutOption).length)) {\n return;\n }\n\n chartView.group.traverse(function (child) {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n } // Only support label being hosted on graphic elements.\n\n\n var textEl = child.getTextContent();\n var ecData = getECData(child); // Can only attach the text on the element with dataIndex\n\n if (textEl && !textEl.disableLabelLayout) {\n _this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption);\n }\n });\n };\n\n LabelManager.prototype.updateLayoutConfig = function (api) {\n var width = api.getWidth();\n var height = api.getHeight();\n\n function createDragHandler(el, labelLineModel) {\n return function () {\n updateLabelLinePoints(el, labelLineModel);\n };\n }\n\n for (var i = 0; i < this._labelList.length; i++) {\n var labelItem = this._labelList[i];\n var label = labelItem.label;\n var hostEl = label.__hostTarget;\n var defaultLabelAttr = labelItem.defaultAttr;\n var layoutOption = void 0; // TODO A global layout option?\n\n if (typeof labelItem.layoutOption === 'function') {\n layoutOption = labelItem.layoutOption(prepareLayoutCallbackParams(labelItem, hostEl));\n } else {\n layoutOption = labelItem.layoutOption;\n }\n\n layoutOption = layoutOption || {};\n labelItem.computedLayoutOption = layoutOption;\n var degreeToRadian = Math.PI / 180; // TODO hostEl should always exists.\n // Or label should not have parent because the x, y is all in global space.\n\n if (hostEl) {\n hostEl.setTextConfig({\n // Force to set local false.\n local: false,\n // Ignore position and rotation config on the host el if x or y is changed.\n position: layoutOption.x != null || layoutOption.y != null ? null : defaultLabelAttr.attachedPos,\n // Ignore rotation config on the host el if rotation is changed.\n rotation: layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot,\n offset: [layoutOption.dx || 0, layoutOption.dy || 0]\n });\n }\n\n var needsUpdateLabelLine = false;\n\n if (layoutOption.x != null) {\n // TODO width of chart view.\n label.x = parsePercent(layoutOption.x, width);\n label.setStyle('x', 0); // Ignore movement in style. TODO: origin.\n\n needsUpdateLabelLine = true;\n } else {\n label.x = defaultLabelAttr.x;\n label.setStyle('x', defaultLabelAttr.style.x);\n }\n\n if (layoutOption.y != null) {\n // TODO height of chart view.\n label.y = parsePercent(layoutOption.y, height);\n label.setStyle('y', 0); // Ignore movement in style.\n\n needsUpdateLabelLine = true;\n } else {\n label.y = defaultLabelAttr.y;\n label.setStyle('y', defaultLabelAttr.style.y);\n }\n\n if (layoutOption.labelLinePoints) {\n var guideLine = hostEl.getTextGuideLine();\n\n if (guideLine) {\n guideLine.setShape({\n points: layoutOption.labelLinePoints\n }); // Not update\n\n needsUpdateLabelLine = false;\n }\n }\n\n var labelLayoutStore = labelLayoutInnerStore(label);\n labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine;\n label.rotation = layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation;\n label.scaleX = defaultLabelAttr.scaleX;\n label.scaleY = defaultLabelAttr.scaleY;\n\n for (var k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) {\n var key = LABEL_OPTION_TO_STYLE_KEYS[k];\n label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]);\n }\n\n if (layoutOption.draggable) {\n label.draggable = true;\n label.cursor = 'move';\n\n if (hostEl) {\n var hostModel = labelItem.seriesModel;\n\n if (labelItem.dataIndex != null) {\n var data = labelItem.seriesModel.getData(labelItem.dataType);\n hostModel = data.getItemModel(labelItem.dataIndex);\n }\n\n label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine')));\n }\n } else {\n // TODO Other drag functions?\n label.off('drag');\n label.cursor = defaultLabelAttr.cursor;\n }\n }\n };\n\n LabelManager.prototype.layout = function (api) {\n var width = api.getWidth();\n var height = api.getHeight();\n var labelList = prepareLayoutList(this._labelList);\n var labelsNeedsAdjustOnX = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftX';\n });\n var labelsNeedsAdjustOnY = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftY';\n });\n shiftLayoutOnX(labelsNeedsAdjustOnX, 0, width);\n shiftLayoutOnY(labelsNeedsAdjustOnY, 0, height);\n var labelsNeedsHideOverlap = filter(labelList, function (item) {\n return item.layoutOption.hideOverlap;\n });\n hideOverlap(labelsNeedsHideOverlap);\n };\n /**\n * Process all labels. Not only labels with layoutOption.\n */\n\n\n LabelManager.prototype.processLabelsOverall = function () {\n var _this = this;\n\n each(this._chartViewList, function (chartView) {\n var seriesModel = chartView.__model;\n var ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate;\n var animationEnabled = seriesModel.isAnimationEnabled();\n chartView.group.traverse(function (child) {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n var needsUpdateLabelLine = !ignoreLabelLineUpdate;\n var label = child.getTextContent();\n\n if (!needsUpdateLabelLine && label) {\n needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine;\n }\n\n if (needsUpdateLabelLine) {\n _this._updateLabelLine(child, seriesModel);\n }\n\n if (animationEnabled) {\n _this._animateLabels(child, seriesModel);\n }\n });\n });\n };\n\n LabelManager.prototype._updateLabelLine = function (el, seriesModel) {\n // Only support label being hosted on graphic elements.\n var textEl = el.getTextContent(); // Update label line style.\n\n var ecData = getECData(el);\n var dataIndex = ecData.dataIndex; // Only support labelLine on the labels represent data.\n\n if (textEl && dataIndex != null) {\n var data = seriesModel.getData(ecData.dataType);\n var itemModel = data.getItemModel(dataIndex);\n var defaultStyle = {};\n var visualStyle = data.getItemVisual(dataIndex, 'style');\n var visualType = data.getVisual('drawType'); // Default to be same with main color\n\n defaultStyle.stroke = visualStyle[visualType];\n var labelLineModel = itemModel.getModel('labelLine');\n setLabelLineStyle(el, getLabelLineStatesModels(itemModel), defaultStyle);\n updateLabelLinePoints(el, labelLineModel);\n }\n };\n\n LabelManager.prototype._animateLabels = function (el, seriesModel) {\n var textEl = el.getTextContent();\n var guideLine = el.getTextGuideLine(); // Animate\n\n if (textEl && !textEl.ignore && !textEl.invisible && !el.disableLabelAnimation && !isElementRemoved(el)) {\n var layoutStore = labelLayoutInnerStore(textEl);\n var oldLayout = layoutStore.oldLayout;\n var ecData = getECData(el);\n var dataIndex = ecData.dataIndex;\n var newProps = {\n x: textEl.x,\n y: textEl.y,\n rotation: textEl.rotation\n };\n var data = seriesModel.getData(ecData.dataType);\n\n if (!oldLayout) {\n textEl.attr(newProps); // Disable fade in animation if value animation is enabled.\n\n if (!labelInner(textEl).valueAnimation) {\n var oldOpacity = retrieve2(textEl.style.opacity, 1); // Fade in animation\n\n textEl.style.opacity = 0;\n initProps(textEl, {\n style: {\n opacity: oldOpacity\n }\n }, seriesModel, dataIndex);\n }\n } else {\n textEl.attr(oldLayout); // Make sure the animation from is in the right status.\n\n var prevStates = el.prevStates;\n\n if (prevStates) {\n if (indexOf(prevStates, 'select') >= 0) {\n textEl.attr(layoutStore.oldLayoutSelect);\n }\n\n if (indexOf(prevStates, 'emphasis') >= 0) {\n textEl.attr(layoutStore.oldLayoutEmphasis);\n }\n }\n\n updateProps(textEl, newProps, seriesModel, dataIndex);\n }\n\n layoutStore.oldLayout = newProps;\n\n if (textEl.states.select) {\n var layoutSelect = layoutStore.oldLayoutSelect = {};\n extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS);\n }\n\n if (textEl.states.emphasis) {\n var layoutEmphasis = layoutStore.oldLayoutEmphasis = {};\n extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS);\n }\n\n animateLabelValue(textEl, dataIndex, data, seriesModel, seriesModel);\n }\n\n if (guideLine && !guideLine.ignore && !guideLine.invisible) {\n var layoutStore = labelLineAnimationStore(guideLine);\n var oldLayout = layoutStore.oldLayout;\n var newLayout = {\n points: guideLine.shape.points\n };\n\n if (!oldLayout) {\n guideLine.setShape(newLayout);\n guideLine.style.strokePercent = 0;\n initProps(guideLine, {\n style: {\n strokePercent: 1\n }\n }, seriesModel);\n } else {\n guideLine.attr({\n shape: oldLayout\n });\n updateProps(guideLine, {\n shape: newLayout\n }, seriesModel);\n }\n\n layoutStore.oldLayout = newLayout;\n }\n };\n\n return LabelManager;\n}();\n\nexport default LabelManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend, each, isArray } from 'zrender/lib/core/util';\nimport { deprecateReplaceLog, deprecateLog } from '../util/log';\nimport { queryDataIndex } from '../util/model'; // Legacy data selection action.\n// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect\n\nexport function createLegacyDataSelectAction(seriesType, ecRegisterAction) {\n function getSeriesIndices(ecModel, payload) {\n var seriesIndices = [];\n ecModel.eachComponent({\n mainType: 'series',\n subType: seriesType,\n query: payload\n }, function (seriesModel) {\n seriesIndices.push(seriesModel.seriesIndex);\n });\n return seriesIndices;\n }\n\n each([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {\n ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(payload.type, eventsMap[1]);\n }\n\n api.dispatchAction(extend(payload, {\n type: eventsMap[1],\n seriesIndex: getSeriesIndices(ecModel, payload)\n }));\n });\n });\n}\n\nfunction handleSeriesLegacySelectEvents(type, eventPostfix, ecIns, ecModel, payload) {\n var legacyEventName = type + eventPostfix;\n\n if (!ecIns.isSilent(legacyEventName)) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog(\"event \" + legacyEventName + \" is deprecated.\");\n }\n\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'pie'\n }, function (seriesModel) {\n var seriesIndex = seriesModel.seriesIndex;\n var selected = payload.selected;\n\n for (var i = 0; i < selected.length; i++) {\n if (selected[i].seriesIndex === seriesIndex) {\n var data = seriesModel.getData();\n var dataIndex = queryDataIndex(data, payload.fromActionPayload);\n ecIns.trigger(legacyEventName, {\n type: legacyEventName,\n seriesId: seriesModel.id,\n name: isArray(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex),\n selected: extend({}, seriesModel.option.selectedMap)\n });\n }\n }\n });\n }\n}\n\nexport function handleLegacySelectEvents(messageCenter, ecIns, api) {\n messageCenter.on('selectchanged', function (params) {\n var ecModel = api.getModel();\n\n if (params.isFromClick) {\n handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params);\n } else if (params.fromAction === 'select') {\n handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params);\n } else if (params.fromAction === 'unselect') {\n handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function findEventDispatcher(target, det, returnFirstMatch) {\n var found;\n\n while (target) {\n if (det(target)) {\n found = target;\n\n if (returnFirstMatch) {\n break;\n }\n }\n\n target = target.__hostTarget || target.parent;\n }\n\n return found;\n}","var wmUniqueIndex = Math.round(Math.random() * 9);\nvar WeakMap = (function () {\n function WeakMap() {\n this._id = '__ec_inner_' + wmUniqueIndex++;\n }\n WeakMap.prototype.get = function (key) {\n return this._guard(key)[this._id];\n };\n WeakMap.prototype.set = function (key, value) {\n var target = this._guard(key);\n if (typeof Object.defineProperty === 'function') {\n Object.defineProperty(target, this._id, {\n value: value,\n enumerable: false,\n configurable: true\n });\n }\n else {\n target[this._id] = value;\n }\n return this;\n };\n WeakMap.prototype[\"delete\"] = function (key) {\n if (this.has(key)) {\n delete this._guard(key)[this._id];\n return true;\n }\n return false;\n };\n WeakMap.prototype.has = function (key) {\n return !!this._guard(key)[this._id];\n };\n WeakMap.prototype._guard = function (key) {\n if (key !== Object(key)) {\n throw TypeError('Value of WeakMap is not a non-null object.');\n }\n return key;\n };\n return WeakMap;\n}());\nexport default WeakMap;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Symbol factory\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from './graphic';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { calculateTextPosition } from 'zrender/lib/contain/text';\n/**\n * Triangle shape\n * @inner\n */\n\nvar Triangle = graphic.Path.extend({\n type: 'triangle',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var cx = shape.cx;\n var cy = shape.cy;\n var width = shape.width / 2;\n var height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy + height);\n path.lineTo(cx - width, cy + height);\n path.closePath();\n }\n});\n/**\n * Diamond shape\n * @inner\n */\n\nvar Diamond = graphic.Path.extend({\n type: 'diamond',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var cx = shape.cx;\n var cy = shape.cy;\n var width = shape.width / 2;\n var height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy);\n path.lineTo(cx, cy + height);\n path.lineTo(cx - width, cy);\n path.closePath();\n }\n});\n/**\n * Pin shape\n * @inner\n */\n\nvar Pin = graphic.Path.extend({\n type: 'pin',\n shape: {\n // x, y on the cusp\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var x = shape.x;\n var y = shape.y;\n var w = shape.width / 5 * 3; // Height must be larger than width\n\n var h = Math.max(w, shape.height);\n var r = w / 2; // Dist on y with tangent point and circle center\n\n var dy = r * r / (h - r);\n var cy = y - h + r + dy;\n var angle = Math.asin(dy / r); // Dist on x with tangent point and circle center\n\n var dx = Math.cos(angle) * r;\n var tanX = Math.sin(angle);\n var tanY = Math.cos(angle);\n var cpLen = r * 0.6;\n var cpLen2 = r * 0.7;\n path.moveTo(x - dx, cy + dy);\n path.arc(x, cy, r, Math.PI - angle, Math.PI * 2 + angle);\n path.bezierCurveTo(x + dx - tanX * cpLen, cy + dy + tanY * cpLen, x, y - cpLen2, x, y);\n path.bezierCurveTo(x, y - cpLen2, x - dx + tanX * cpLen, cy + dy + tanY * cpLen, x - dx, cy + dy);\n path.closePath();\n }\n});\n/**\n * Arrow shape\n * @inner\n */\n\nvar Arrow = graphic.Path.extend({\n type: 'arrow',\n shape: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n buildPath: function (ctx, shape) {\n var height = shape.height;\n var width = shape.width;\n var x = shape.x;\n var y = shape.y;\n var dx = width / 3 * 2;\n ctx.moveTo(x, y);\n ctx.lineTo(x + dx, y + height);\n ctx.lineTo(x, y + height / 4 * 3);\n ctx.lineTo(x - dx, y + height);\n ctx.lineTo(x, y);\n ctx.closePath();\n }\n});\n/**\n * Map of path contructors\n */\n// TODO Use function to build symbol path.\n\nvar symbolCtors = {\n line: graphic.Line,\n rect: graphic.Rect,\n roundRect: graphic.Rect,\n square: graphic.Rect,\n circle: graphic.Circle,\n diamond: Diamond,\n pin: Pin,\n arrow: Arrow,\n triangle: Triangle\n};\nvar symbolShapeMakers = {\n line: function (x, y, w, h, shape) {\n shape.x1 = x;\n shape.y1 = y + h / 2;\n shape.x2 = x + w;\n shape.y2 = y + h / 2;\n },\n rect: function (x, y, w, h, shape) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n },\n roundRect: function (x, y, w, h, shape) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n shape.r = Math.min(w, h) / 4;\n },\n square: function (x, y, w, h, shape) {\n var size = Math.min(w, h);\n shape.x = x;\n shape.y = y;\n shape.width = size;\n shape.height = size;\n },\n circle: function (x, y, w, h, shape) {\n // Put circle in the center of square\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.r = Math.min(w, h) / 2;\n },\n diamond: function (x, y, w, h, shape) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n pin: function (x, y, w, h, shape) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n arrow: function (x, y, w, h, shape) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n triangle: function (x, y, w, h, shape) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n }\n};\nexport var symbolBuildProxies = {};\nzrUtil.each(symbolCtors, function (Ctor, name) {\n symbolBuildProxies[name] = new Ctor();\n});\nvar SymbolClz = graphic.Path.extend({\n type: 'symbol',\n shape: {\n symbolType: '',\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n calculateTextPosition: function (out, config, rect) {\n var res = calculateTextPosition(out, config, rect);\n var shape = this.shape;\n\n if (shape && shape.symbolType === 'pin' && config.position === 'inside') {\n res.y = rect.y + rect.height * 0.4;\n }\n\n return res;\n },\n buildPath: function (ctx, shape, inBundle) {\n var symbolType = shape.symbolType;\n\n if (symbolType !== 'none') {\n var proxySymbol = symbolBuildProxies[symbolType];\n\n if (!proxySymbol) {\n // Default rect\n symbolType = 'rect';\n proxySymbol = symbolBuildProxies[symbolType];\n }\n\n symbolShapeMakers[symbolType](shape.x, shape.y, shape.width, shape.height, proxySymbol.shape);\n proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);\n }\n }\n}); // Provide setColor helper method to avoid determine if set the fill or stroke outside\n\nfunction symbolPathSetColor(color, innerColor) {\n if (this.type !== 'image') {\n var symbolStyle = this.style;\n\n if (this.__isEmptyBrush) {\n symbolStyle.stroke = color;\n symbolStyle.fill = innerColor || '#fff'; // TODO Same width with lineStyle in LineView\n\n symbolStyle.lineWidth = 2;\n } else if (this.shape.symbolType === 'line') {\n symbolStyle.stroke = color;\n } else {\n symbolStyle.fill = color;\n }\n\n this.markRedraw();\n }\n}\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n */\n\n\nexport function createSymbol(symbolType, x, y, w, h, color, // whether to keep the ratio of w/h,\nkeepAspect) {\n // TODO Support image object, DynamicImage.\n var isEmpty = symbolType.indexOf('empty') === 0;\n\n if (isEmpty) {\n symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);\n }\n\n var symbolPath;\n\n if (symbolType.indexOf('image://') === 0) {\n symbolPath = graphic.makeImage(symbolType.slice(8), new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');\n } else if (symbolType.indexOf('path://') === 0) {\n symbolPath = graphic.makePath(symbolType.slice(7), {}, new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');\n } else {\n symbolPath = new SymbolClz({\n shape: {\n symbolType: symbolType,\n x: x,\n y: y,\n width: w,\n height: h\n }\n });\n }\n\n symbolPath.__isEmptyBrush = isEmpty; // TODO Should deprecate setColor\n\n symbolPath.setColor = symbolPathSetColor;\n\n if (color) {\n symbolPath.setColor(color);\n }\n\n return symbolPath;\n}","export function createLinearGradient(ctx, obj, rect) {\n var x = obj.x == null ? 0 : obj.x;\n var x2 = obj.x2 == null ? 1 : obj.x2;\n var y = obj.y == null ? 0 : obj.y;\n var y2 = obj.y2 == null ? 0 : obj.y2;\n if (!obj.global) {\n x = x * rect.width + rect.x;\n x2 = x2 * rect.width + rect.x;\n y = y * rect.height + rect.y;\n y2 = y2 * rect.height + rect.y;\n }\n x = isNaN(x) ? 0 : x;\n x2 = isNaN(x2) ? 1 : x2;\n y = isNaN(y) ? 0 : y;\n y2 = isNaN(y2) ? 0 : y2;\n var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);\n return canvasGradient;\n}\nexport function createRadialGradient(ctx, obj, rect) {\n var width = rect.width;\n var height = rect.height;\n var min = Math.min(width, height);\n var x = obj.x == null ? 0.5 : obj.x;\n var y = obj.y == null ? 0.5 : obj.y;\n var r = obj.r == null ? 0.5 : obj.r;\n if (!obj.global) {\n x = x * width + rect.x;\n y = y * height + rect.y;\n r = r * min;\n }\n var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);\n return canvasGradient;\n}\nexport function getCanvasGradient(ctx, obj, rect) {\n var canvasGradient = obj.type === 'radial'\n ? createRadialGradient(ctx, obj, rect)\n : createLinearGradient(ctx, obj, rect);\n var colorStops = obj.colorStops;\n for (var i = 0; i < colorStops.length; i++) {\n canvasGradient.addColorStop(colorStops[i].offset, colorStops[i].color);\n }\n return canvasGradient;\n}\nexport function isClipPathChanged(clipPaths, prevClipPaths) {\n if (clipPaths === prevClipPaths || (!clipPaths && !prevClipPaths)) {\n return false;\n }\n if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {\n return true;\n }\n for (var i = 0; i < clipPaths.length; i++) {\n if (clipPaths[i] !== prevClipPaths[i]) {\n return true;\n }\n }\n return false;\n}\n","import { isArray, isNumber } from '../../core/util';\nexport function normalizeLineDash(lineType, lineWidth) {\n if (!lineType || lineType === 'solid' || !(lineWidth > 0)) {\n return null;\n }\n lineWidth = lineWidth || 1;\n return lineType === 'dashed'\n ? [4 * lineWidth, 2 * lineWidth]\n : lineType === 'dotted'\n ? [lineWidth]\n : isNumber(lineType)\n ? [lineType] : isArray(lineType) ? lineType : null;\n}\n","import { DEFAULT_COMMON_STYLE } from '../graphic/Displayable';\nimport PathProxy from '../core/PathProxy';\nimport { createOrUpdateImage, isImageReady } from '../graphic/helper/image';\nimport { getCanvasGradient, isClipPathChanged } from './helper';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport { DEFAULT_FONT } from '../contain/text';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT } from '../graphic/constants';\nvar pathProxyForDraw = new PathProxy(true);\nfunction styleHasStroke(style) {\n var stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n}\nfunction styleHasFill(style) {\n var fill = style.fill;\n return fill != null && fill !== 'none';\n}\nfunction doFillPath(ctx, style) {\n if (style.fillOpacity != null && style.fillOpacity !== 1) {\n var originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.fillOpacity * style.opacity;\n ctx.fill();\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.fill();\n }\n}\nfunction doStrokePath(ctx, style) {\n if (style.strokeOpacity != null && style.strokeOpacity !== 1) {\n var originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.strokeOpacity * style.opacity;\n ctx.stroke();\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.stroke();\n }\n}\nexport function createCanvasPattern(ctx, pattern, el) {\n var image = createOrUpdateImage(pattern.image, pattern.__image, el);\n if (isImageReady(image)) {\n var canvasPattern = ctx.createPattern(image, pattern.repeat || 'repeat');\n if (typeof DOMMatrix === 'function'\n && canvasPattern.setTransform) {\n var matrix = new DOMMatrix();\n matrix.rotateSelf(0, 0, (pattern.rotation || 0) / Math.PI * 180);\n matrix.scaleSelf((pattern.scaleX || 1), (pattern.scaleY || 1));\n matrix.translateSelf((pattern.x || 0), (pattern.y || 0));\n canvasPattern.setTransform(matrix);\n }\n return canvasPattern;\n }\n}\nfunction brushPath(ctx, el, style, inBatch) {\n var hasStroke = styleHasStroke(style);\n var hasFill = styleHasFill(style);\n var strokePercent = style.strokePercent;\n var strokePart = strokePercent < 1;\n var firstDraw = !el.path;\n if ((!el.silent || strokePart) && firstDraw) {\n el.createPathProxy();\n }\n var path = el.path || pathProxyForDraw;\n if (!inBatch) {\n var fill = style.fill;\n var stroke = style.stroke;\n var hasFillGradient = hasFill && !!fill.colorStops;\n var hasStrokeGradient = hasStroke && !!stroke.colorStops;\n var hasFillPattern = hasFill && !!fill.image;\n var hasStrokePattern = hasStroke && !!stroke.image;\n var fillGradient = void 0;\n var strokeGradient = void 0;\n var fillPattern = void 0;\n var strokePattern = void 0;\n var rect = void 0;\n if (hasFillGradient || hasStrokeGradient) {\n rect = el.getBoundingRect();\n }\n if (hasFillGradient) {\n fillGradient = el.__dirty\n ? getCanvasGradient(ctx, fill, rect)\n : el.__canvasFillGradient;\n el.__canvasFillGradient = fillGradient;\n }\n if (hasStrokeGradient) {\n strokeGradient = el.__dirty\n ? getCanvasGradient(ctx, stroke, rect)\n : el.__canvasStrokeGradient;\n el.__canvasStrokeGradient = strokeGradient;\n }\n if (hasFillPattern) {\n fillPattern = (el.__dirty || !el.__canvasFillPattern)\n ? createCanvasPattern(ctx, fill, el)\n : el.__canvasFillPattern;\n el.__canvasFillPattern = fillPattern;\n }\n if (hasStrokePattern) {\n strokePattern = (el.__dirty || !el.__canvasStrokePattern)\n ? createCanvasPattern(ctx, stroke, el)\n : el.__canvasStrokePattern;\n el.__canvasStrokePattern = fillPattern;\n }\n if (hasFillGradient) {\n ctx.fillStyle = fillGradient;\n }\n else if (hasFillPattern) {\n if (fillPattern) {\n ctx.fillStyle = fillPattern;\n }\n else {\n hasFill = false;\n }\n }\n if (hasStrokeGradient) {\n ctx.strokeStyle = strokeGradient;\n }\n else if (hasStrokePattern) {\n if (strokePattern) {\n ctx.strokeStyle = strokePattern;\n }\n else {\n hasStroke = false;\n }\n }\n }\n var lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n var lineDashOffset = style.lineDashOffset;\n var ctxLineDash = !!ctx.setLineDash;\n var scale = el.getGlobalScale();\n path.setScale(scale[0], scale[1], el.segmentIgnoreThreshold);\n if (lineDash) {\n var lineScale_1 = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale_1 && lineScale_1 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale_1;\n });\n lineDashOffset /= lineScale_1;\n }\n }\n var needsRebuild = true;\n if (firstDraw || (el.__dirty & SHAPE_CHANGED_BIT)\n || (lineDash && !ctxLineDash && hasStroke)) {\n path.setDPR(ctx.dpr);\n if (strokePart) {\n path.setContext(null);\n }\n else {\n path.setContext(ctx);\n needsRebuild = false;\n }\n path.reset();\n if (lineDash && !ctxLineDash) {\n path.setLineDash(lineDash);\n path.setLineDashOffset(lineDashOffset);\n }\n el.buildPath(path, el.shape, inBatch);\n path.toStatic();\n el.pathUpdated();\n }\n if (needsRebuild) {\n path.rebuildPath(ctx, strokePart ? strokePercent : 1);\n }\n if (lineDash && ctxLineDash) {\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n }\n if (!inBatch) {\n if (style.strokeFirst) {\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n if (hasFill) {\n doFillPath(ctx, style);\n }\n }\n else {\n if (hasFill) {\n doFillPath(ctx, style);\n }\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n }\n }\n if (lineDash && ctxLineDash) {\n ctx.setLineDash([]);\n }\n}\nfunction brushImage(ctx, el, style) {\n var image = el.__image = createOrUpdateImage(style.image, el.__image, el, el.onload);\n if (!image || !isImageReady(image)) {\n return;\n }\n var x = style.x || 0;\n var y = style.y || 0;\n var width = el.getWidth();\n var height = el.getHeight();\n var aspect = image.width / image.height;\n if (width == null && height != null) {\n width = height * aspect;\n }\n else if (height == null && width != null) {\n height = width / aspect;\n }\n else if (width == null && height == null) {\n width = image.width;\n height = image.height;\n }\n if (style.sWidth && style.sHeight) {\n var sx = style.sx || 0;\n var sy = style.sy || 0;\n ctx.drawImage(image, sx, sy, style.sWidth, style.sHeight, x, y, width, height);\n }\n else if (style.sx && style.sy) {\n var sx = style.sx;\n var sy = style.sy;\n var sWidth = width - sx;\n var sHeight = height - sy;\n ctx.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height);\n }\n else {\n ctx.drawImage(image, x, y, width, height);\n }\n}\nfunction brushText(ctx, el, style) {\n var text = style.text;\n text != null && (text += '');\n if (text) {\n ctx.font = style.font || DEFAULT_FONT;\n ctx.textAlign = style.textAlign;\n ctx.textBaseline = style.textBaseline;\n var hasLineDash = void 0;\n if (ctx.setLineDash) {\n var lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n var lineDashOffset = style.lineDashOffset;\n if (lineDash) {\n var lineScale_2 = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale_2 && lineScale_2 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale_2;\n });\n lineDashOffset /= lineScale_2;\n }\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n hasLineDash = true;\n }\n }\n if (style.strokeFirst) {\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n }\n else {\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n }\n if (hasLineDash) {\n ctx.setLineDash([]);\n }\n }\n}\nvar SHADOW_NUMBER_PROPS = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];\nvar STROKE_PROPS = [\n ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]\n];\nfunction bindCommonProps(ctx, style, prevStyle, forceSetAll, scope) {\n var styleChanged = false;\n if (!forceSetAll) {\n prevStyle = prevStyle || {};\n if (style === prevStyle) {\n return false;\n }\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n var opacity = Math.max(Math.min(style.opacity, 1), 0);\n ctx.globalAlpha = isNaN(opacity) ? DEFAULT_COMMON_STYLE.opacity : opacity;\n }\n if (forceSetAll || style.blend !== prevStyle.blend) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;\n }\n for (var i = 0; i < SHADOW_NUMBER_PROPS.length; i++) {\n var propName = SHADOW_NUMBER_PROPS[i];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx[propName] = ctx.dpr * (style[propName] || 0);\n }\n }\n if (forceSetAll || style.shadowColor !== prevStyle.shadowColor) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.shadowColor = style.shadowColor || DEFAULT_COMMON_STYLE.shadowColor;\n }\n return styleChanged;\n}\nfunction bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetAll, scope) {\n var style = getStyle(el, scope.inHover);\n var prevStyle = forceSetAll\n ? null\n : (prevEl && getStyle(prevEl, scope.inHover) || {});\n if (style === prevStyle) {\n return false;\n }\n var styleChanged = bindCommonProps(ctx, style, prevStyle, forceSetAll, scope);\n if (forceSetAll || style.fill !== prevStyle.fill) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.fillStyle = style.fill;\n }\n if (forceSetAll || style.stroke !== prevStyle.stroke) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.strokeStyle = style.stroke;\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;\n }\n if (el.hasStroke()) {\n var lineWidth = style.lineWidth;\n var newLineWidth = lineWidth / ((style.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1);\n if (ctx.lineWidth !== newLineWidth) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.lineWidth = newLineWidth;\n }\n }\n for (var i = 0; i < STROKE_PROPS.length; i++) {\n var prop = STROKE_PROPS[i];\n var propName = prop[0];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx[propName] = style[propName] || prop[1];\n }\n }\n return styleChanged;\n}\nfunction bindImageStyle(ctx, el, prevEl, forceSetAll, scope) {\n return bindCommonProps(ctx, getStyle(el, scope.inHover), prevEl && getStyle(prevEl, scope.inHover), forceSetAll, scope);\n}\nfunction setContextTransform(ctx, el) {\n var m = el.transform;\n var dpr = ctx.dpr || 1;\n if (m) {\n ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);\n }\n else {\n ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n}\nfunction updateClipStatus(clipPaths, ctx, scope) {\n var allClipped = false;\n for (var i = 0; i < clipPaths.length; i++) {\n var clipPath = clipPaths[i];\n allClipped = allClipped || clipPath.isZeroArea();\n setContextTransform(ctx, clipPath);\n ctx.beginPath();\n clipPath.buildPath(ctx, clipPath.shape);\n ctx.clip();\n }\n scope.allClipped = allClipped;\n}\nfunction isTransformChanged(m0, m1) {\n if (m0 && m1) {\n return m0[0] !== m1[0]\n || m0[1] !== m1[1]\n || m0[2] !== m1[2]\n || m0[3] !== m1[3]\n || m0[4] !== m1[4]\n || m0[5] !== m1[5];\n }\n else if (!m0 && !m1) {\n return false;\n }\n return true;\n}\nvar DRAW_TYPE_PATH = 1;\nvar DRAW_TYPE_IMAGE = 2;\nvar DRAW_TYPE_TEXT = 3;\nvar DRAW_TYPE_INCREMENTAL = 4;\nfunction canPathBatch(style) {\n var hasFill = styleHasFill(style);\n var hasStroke = styleHasStroke(style);\n return !(style.lineDash\n || !(+hasFill ^ +hasStroke)\n || (hasFill && typeof style.fill !== 'string')\n || (hasStroke && typeof style.stroke !== 'string')\n || style.strokePercent < 1\n || style.strokeOpacity < 1\n || style.fillOpacity < 1);\n}\nfunction flushPathDrawn(ctx, scope) {\n scope.batchFill && ctx.fill();\n scope.batchStroke && ctx.stroke();\n scope.batchFill = '';\n scope.batchStroke = '';\n}\nfunction getStyle(el, inHover) {\n return inHover ? (el.__hoverStyle || el.style) : el.style;\n}\nexport function brushSingle(ctx, el) {\n brush(ctx, el, { inHover: false, viewWidth: 0, viewHeight: 0 }, true);\n}\nexport function brush(ctx, el, scope, isLast) {\n var m = el.transform;\n if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, false, false)) {\n el.__dirty &= ~REDARAW_BIT;\n el.__isRendered = false;\n return;\n }\n var clipPaths = el.__clipPaths;\n var prevElClipPaths = scope.prevElClipPaths;\n var forceSetTransform = false;\n var forceSetStyle = false;\n if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {\n if (prevElClipPaths && prevElClipPaths.length) {\n flushPathDrawn(ctx, scope);\n ctx.restore();\n forceSetStyle = forceSetTransform = true;\n scope.prevElClipPaths = null;\n scope.allClipped = false;\n scope.prevEl = null;\n }\n if (clipPaths && clipPaths.length) {\n flushPathDrawn(ctx, scope);\n ctx.save();\n updateClipStatus(clipPaths, ctx, scope);\n forceSetTransform = true;\n }\n scope.prevElClipPaths = clipPaths;\n }\n if (scope.allClipped) {\n el.__isRendered = false;\n return;\n }\n el.beforeBrush && el.beforeBrush();\n el.innerBeforeBrush();\n var prevEl = scope.prevEl;\n if (!prevEl) {\n forceSetStyle = forceSetTransform = true;\n }\n var canBatchPath = el instanceof Path\n && el.autoBatch\n && canPathBatch(el.style);\n if (forceSetTransform || isTransformChanged(m, prevEl.transform)) {\n flushPathDrawn(ctx, scope);\n setContextTransform(ctx, el);\n }\n else if (!canBatchPath) {\n flushPathDrawn(ctx, scope);\n }\n var style = getStyle(el, scope.inHover);\n if (el instanceof Path) {\n if (scope.lastDrawType !== DRAW_TYPE_PATH) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_PATH;\n }\n bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);\n if (!canBatchPath || (!scope.batchFill && !scope.batchStroke)) {\n ctx.beginPath();\n }\n brushPath(ctx, el, style, canBatchPath);\n if (canBatchPath) {\n scope.batchFill = style.fill || '';\n scope.batchStroke = style.stroke || '';\n }\n }\n else {\n if (el instanceof TSpan) {\n if (scope.lastDrawType !== DRAW_TYPE_TEXT) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_TEXT;\n }\n bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);\n brushText(ctx, el, style);\n }\n else if (el instanceof ZRImage) {\n if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_IMAGE;\n }\n bindImageStyle(ctx, el, prevEl, forceSetStyle, scope);\n brushImage(ctx, el, style);\n }\n else if (el instanceof IncrementalDisplayable) {\n if (scope.lastDrawType !== DRAW_TYPE_INCREMENTAL) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_INCREMENTAL;\n }\n brushIncremental(ctx, el, scope);\n }\n }\n if (canBatchPath && isLast) {\n flushPathDrawn(ctx, scope);\n }\n el.innerAfterBrush();\n el.afterBrush && el.afterBrush();\n scope.prevEl = el;\n el.__dirty = 0;\n el.__isRendered = true;\n}\nfunction brushIncremental(ctx, el, scope) {\n var displayables = el.getDisplayables();\n var temporalDisplayables = el.getTemporalDisplayables();\n ctx.save();\n var innerScope = {\n prevElClipPaths: null,\n prevEl: null,\n allClipped: false,\n viewWidth: scope.viewWidth,\n viewHeight: scope.viewHeight,\n inHover: scope.inHover\n };\n var i;\n var len;\n for (i = el.getCursor(), len = displayables.length; i < len; i++) {\n var displayable = displayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n for (var i_1 = 0, len_1 = temporalDisplayables.length; i_1 < len_1; i_1++) {\n var displayable = temporalDisplayables[i_1];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i_1 === len_1 - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n el.clearTemporalDisplayables();\n el.notClear = true;\n ctx.restore();\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport WeakMap from 'zrender/lib/core/WeakMap';\nimport LRU from 'zrender/lib/core/LRU';\nimport { defaults, createCanvas, map, isArray } from 'zrender/lib/core/util';\nimport { getLeastCommonMultiple } from './number';\nimport { createSymbol } from './symbol';\nimport { brushSingle } from 'zrender/lib/canvas/graphic';\nvar decalMap = new WeakMap();\nvar decalCache = new LRU(100);\nvar decalKeys = ['symbol', 'symbolSize', 'symbolKeepAspect', 'color', 'backgroundColor', 'dashArrayX', 'dashArrayY', 'maxTileWidth', 'maxTileHeight'];\n/**\n * Create or update pattern image from decal options\n *\n * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal\n * @return {Pattern} pattern with generated image, null if no decal\n */\n\nexport function createOrUpdatePatternFromDecal(decalObject, api) {\n if (decalObject === 'none') {\n return null;\n }\n\n var dpr = api.getDevicePixelRatio();\n var zr = api.getZr();\n var isSVG = zr.painter.type === 'svg';\n\n if (decalObject.dirty) {\n decalMap[\"delete\"](decalObject);\n }\n\n var oldPattern = decalMap.get(decalObject);\n\n if (oldPattern) {\n return oldPattern;\n }\n\n var decalOpt = defaults(decalObject, {\n symbol: 'rect',\n symbolSize: 1,\n symbolKeepAspect: true,\n color: 'rgba(0, 0, 0, 0.2)',\n backgroundColor: null,\n dashArrayX: 5,\n dashArrayY: 5,\n rotation: 0,\n maxTileWidth: 512,\n maxTileHeight: 512\n });\n\n if (decalOpt.backgroundColor === 'none') {\n decalOpt.backgroundColor = null;\n }\n\n var pattern = {\n repeat: 'repeat'\n };\n setPatternnSource(pattern);\n pattern.rotation = decalOpt.rotation;\n pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr;\n decalMap.set(decalObject, pattern);\n decalObject.dirty = false;\n return pattern;\n\n function setPatternnSource(pattern) {\n var keys = [dpr];\n var isValidKey = true;\n\n for (var i = 0; i < decalKeys.length; ++i) {\n var value = decalOpt[decalKeys[i]];\n var valueType = typeof value;\n\n if (value != null && !isArray(value) && valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {\n isValidKey = false;\n break;\n }\n\n keys.push(value);\n }\n\n var cacheKey;\n\n if (isValidKey) {\n cacheKey = keys.join(',') + (isSVG ? '-svg' : '');\n var cache = decalCache.get(cacheKey);\n\n if (cache) {\n isSVG ? pattern.svgElement = cache : pattern.image = cache;\n }\n }\n\n var dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX);\n var dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY);\n var symbolArray = normalizeSymbolArray(decalOpt.symbol);\n var lineBlockLengthsX = getLineBlockLengthX(dashArrayX);\n var lineBlockLengthY = getLineBlockLengthY(dashArrayY);\n var canvas = !isSVG && createCanvas();\n var svgRoot = isSVG && zr.painter.createSVGElement('g');\n var pSize = getPatternSize();\n var ctx;\n\n if (canvas) {\n canvas.width = pSize.width * dpr;\n canvas.height = pSize.height * dpr;\n ctx = canvas.getContext('2d');\n }\n\n brushDecal();\n\n if (isValidKey) {\n decalCache.put(cacheKey, canvas || svgRoot);\n }\n\n pattern.image = canvas;\n pattern.svgElement = svgRoot;\n pattern.svgWidth = pSize.width;\n pattern.svgHeight = pSize.height;\n /**\n * Get minumum length that can make a repeatable pattern.\n *\n * @return {Object} pattern width and height\n */\n\n function getPatternSize() {\n /**\n * For example, if dash is [[3, 2], [2, 1]] for X, it looks like\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * So the minumum length of X is 15,\n * which is the least common multiple of `3 + 2` and `2 + 1`\n * |--- --- --- |--- --- ...\n * |-- -- -- -- -- |-- -- -- ...\n */\n var width = 1;\n\n for (var i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) {\n width = getLeastCommonMultiple(width, lineBlockLengthsX[i]);\n }\n\n var symbolRepeats = 1;\n\n for (var i = 0, xlen = symbolArray.length; i < xlen; ++i) {\n symbolRepeats = getLeastCommonMultiple(symbolRepeats, symbolArray[i].length);\n }\n\n width *= symbolRepeats;\n var height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length;\n\n if (process.env.NODE_ENV !== 'production') {\n var warn = function (attrName) {\n /* eslint-disable-next-line */\n console.warn(\"Calculated decal size is greater than \" + attrName + \" due to decal option settings so \" + attrName + \" is used for the decal size. Please consider changing the decal option to make a smaller decal or set \" + attrName + \" to be larger to avoid incontinuity.\");\n };\n\n if (width > decalOpt.maxTileWidth) {\n warn('maxTileWidth');\n }\n\n if (height > decalOpt.maxTileHeight) {\n warn('maxTileHeight');\n }\n }\n\n return {\n width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)),\n height: Math.max(1, Math.min(height, decalOpt.maxTileHeight))\n };\n }\n\n function brushDecal() {\n if (ctx) {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n if (decalOpt.backgroundColor) {\n ctx.fillStyle = decalOpt.backgroundColor;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n }\n }\n\n var ySum = 0;\n\n for (var i = 0; i < dashArrayY.length; ++i) {\n ySum += dashArrayY[i];\n }\n\n if (ySum <= 0) {\n // dashArrayY is 0, draw nothing\n return;\n }\n\n var y = -lineBlockLengthY;\n var yId = 0;\n var yIdTotal = 0;\n var xId0 = 0;\n\n while (y < pSize.height) {\n if (yId % 2 === 0) {\n var symbolYId = yIdTotal / 2 % symbolArray.length;\n var x = 0;\n var xId1 = 0;\n var xId1Total = 0;\n\n while (x < pSize.width * 2) {\n var xSum = 0;\n\n for (var i = 0; i < dashArrayX[xId0].length; ++i) {\n xSum += dashArrayX[xId0][i];\n }\n\n if (xSum <= 0) {\n // Skip empty line\n break;\n } // E.g., [15, 5, 20, 5] draws only for 15 and 20\n\n\n if (xId1 % 2 === 0) {\n var size = (1 - decalOpt.symbolSize) * 0.5;\n var left = x + dashArrayX[xId0][xId1] * size;\n var top_1 = y + dashArrayY[yId] * size;\n var width = dashArrayX[xId0][xId1] * decalOpt.symbolSize;\n var height = dashArrayY[yId] * decalOpt.symbolSize;\n var symbolXId = xId1Total / 2 % symbolArray[symbolYId].length;\n brushSymbol(left, top_1, width, height, symbolArray[symbolYId][symbolXId]);\n }\n\n x += dashArrayX[xId0][xId1];\n ++xId1Total;\n ++xId1;\n\n if (xId1 === dashArrayX[xId0].length) {\n xId1 = 0;\n }\n }\n\n ++xId0;\n\n if (xId0 === dashArrayX.length) {\n xId0 = 0;\n }\n }\n\n y += dashArrayY[yId];\n ++yIdTotal;\n ++yId;\n\n if (yId === dashArrayY.length) {\n yId = 0;\n }\n }\n\n function brushSymbol(x, y, width, height, symbolType) {\n var scale = isSVG ? 1 : dpr;\n var symbol = createSymbol(symbolType, x * scale, y * scale, width * scale, height * scale, decalOpt.color, decalOpt.symbolKeepAspect);\n\n if (isSVG) {\n svgRoot.appendChild(zr.painter.paintOne(symbol));\n } else {\n // Paint to canvas for all other renderers.\n brushSingle(ctx, symbol);\n }\n }\n }\n }\n}\n/**\n * Convert symbol array into normalized array\n *\n * @param {string | (string | string[])[]} symbol symbol input\n * @return {string[][]} normolized symbol array\n */\n\nfunction normalizeSymbolArray(symbol) {\n if (!symbol || symbol.length === 0) {\n return [['rect']];\n }\n\n if (typeof symbol === 'string') {\n return [[symbol]];\n }\n\n var isAllString = true;\n\n for (var i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] !== 'string') {\n isAllString = false;\n break;\n }\n }\n\n if (isAllString) {\n return normalizeSymbolArray([symbol]);\n }\n\n var result = [];\n\n for (var i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] === 'string') {\n result.push([symbol[i]]);\n } else {\n result.push(symbol[i]);\n }\n }\n\n return result;\n}\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayX} dash dash input\n * @return {number[][]} normolized dash array\n */\n\n\nfunction normalizeDashArrayX(dash) {\n if (!dash || dash.length === 0) {\n return [[0, 0]];\n }\n\n if (typeof dash === 'number') {\n var dashValue = Math.ceil(dash);\n return [[dashValue, dashValue]];\n }\n /**\n * [20, 5] should be normalized into [[20, 5]],\n * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]\n */\n\n\n var isAllNumber = true;\n\n for (var i = 0; i < dash.length; ++i) {\n if (typeof dash[i] !== 'number') {\n isAllNumber = false;\n break;\n }\n }\n\n if (isAllNumber) {\n return normalizeDashArrayX([dash]);\n }\n\n var result = [];\n\n for (var i = 0; i < dash.length; ++i) {\n if (typeof dash[i] === 'number') {\n var dashValue = Math.ceil(dash[i]);\n result.push([dashValue, dashValue]);\n } else {\n var dashValue = map(dash[i], function (n) {\n return Math.ceil(n);\n });\n\n if (dashValue.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // so normalize it to be [4, 2, 1, 4, 2, 1]\n result.push(dashValue.concat(dashValue));\n } else {\n result.push(dashValue);\n }\n }\n }\n\n return result;\n}\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayY} dash dash input\n * @return {number[]} normolized dash array\n */\n\n\nfunction normalizeDashArrayY(dash) {\n if (!dash || typeof dash === 'object' && dash.length === 0) {\n return [0, 0];\n }\n\n if (typeof dash === 'number') {\n var dashValue_1 = Math.ceil(dash);\n return [dashValue_1, dashValue_1];\n }\n\n var dashValue = map(dash, function (n) {\n return Math.ceil(n);\n });\n return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;\n}\n/**\n * Get block length of each line. A block is the length of dash line and space.\n * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after\n * that, so the block length of this line is 5.\n *\n * @param {number[][]} dash dash arrary of X or Y\n * @return {number[]} block length of each line\n */\n\n\nfunction getLineBlockLengthX(dash) {\n return map(dash, function (line) {\n return getLineBlockLengthY(line);\n });\n}\n\nfunction getLineBlockLengthY(dash) {\n var blockLength = 0;\n\n for (var i = 0; i < dash.length; ++i) {\n blockLength += dash[i];\n }\n\n if (dash.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // So total length is (4 + 2 + 1) * 2\n return blockLength * 2;\n }\n\n return blockLength;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createOrUpdatePatternFromDecal } from '../util/decal';\nexport default function decalVisual(ecModel, api) {\n ecModel.eachRawSeries(function (seriesModel) {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n\n if (data.hasItemVisual()) {\n data.each(function (idx) {\n var decal = data.getItemVisual(idx, 'decal');\n\n if (decal) {\n var itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n }\n\n var decal = data.getVisual('decal');\n\n if (decal) {\n var style = data.getVisual('style');\n style.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n}","import { isString } from '../core/util';\nexport function parseXML(svg) {\n if (isString(svg)) {\n var parser = new DOMParser();\n svg = parser.parseFromString(svg, 'text/xml');\n }\n var svgNode = svg;\n if (svgNode.nodeType === 9) {\n svgNode = svgNode.firstChild;\n }\n while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) {\n svgNode = svgNode.nextSibling;\n }\n return svgNode;\n}\n","import Group from '../graphic/Group';\nimport ZRImage from '../graphic/Image';\nimport Circle from '../graphic/shape/Circle';\nimport Rect from '../graphic/shape/Rect';\nimport Ellipse from '../graphic/shape/Ellipse';\nimport Line from '../graphic/shape/Line';\nimport Polygon from '../graphic/shape/Polygon';\nimport Polyline from '../graphic/shape/Polyline';\nimport * as matrix from '../core/matrix';\nimport { createFromString } from './path';\nimport { defaults, trim, each, map, keys, hasOwn } from '../core/util';\nimport LinearGradient from '../graphic/LinearGradient';\nimport RadialGradient from '../graphic/RadialGradient';\nimport TSpan from '../graphic/TSpan';\nimport { parseXML } from './parseXML';\n;\nvar nodeParsers;\nvar INHERITABLE_STYLE_ATTRIBUTES_MAP = {\n 'fill': 'fill',\n 'stroke': 'stroke',\n 'stroke-width': 'lineWidth',\n 'opacity': 'opacity',\n 'fill-opacity': 'fillOpacity',\n 'stroke-opacity': 'strokeOpacity',\n 'stroke-dasharray': 'lineDash',\n 'stroke-dashoffset': 'lineDashOffset',\n 'stroke-linecap': 'lineCap',\n 'stroke-linejoin': 'lineJoin',\n 'stroke-miterlimit': 'miterLimit',\n 'font-family': 'fontFamily',\n 'font-size': 'fontSize',\n 'font-style': 'fontStyle',\n 'font-weight': 'fontWeight',\n 'text-anchor': 'textAlign',\n 'visibility': 'visibility',\n 'display': 'display'\n};\nvar INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS = keys(INHERITABLE_STYLE_ATTRIBUTES_MAP);\nvar SELF_STYLE_ATTRIBUTES_MAP = {\n 'alignment-baseline': 'textBaseline',\n 'stop-color': 'stopColor'\n};\nvar SELF_STYLE_ATTRIBUTES_MAP_KEYS = keys(SELF_STYLE_ATTRIBUTES_MAP);\nvar SVGParser = (function () {\n function SVGParser() {\n this._defs = {};\n this._root = null;\n }\n SVGParser.prototype.parse = function (xml, opt) {\n opt = opt || {};\n var svg = parseXML(xml);\n if (!svg) {\n throw new Error('Illegal svg');\n }\n this._defsUsePending = [];\n var root = new Group();\n this._root = root;\n var named = [];\n var viewBox = svg.getAttribute('viewBox') || '';\n var width = parseFloat((svg.getAttribute('width') || opt.width));\n var height = parseFloat((svg.getAttribute('height') || opt.height));\n isNaN(width) && (width = null);\n isNaN(height) && (height = null);\n parseAttributes(svg, root, null, true, false);\n var child = svg.firstChild;\n while (child) {\n this._parseNode(child, root, named, null, false, false);\n child = child.nextSibling;\n }\n applyDefs(this._defs, this._defsUsePending);\n this._defsUsePending = [];\n var viewBoxRect;\n var viewBoxTransform;\n if (viewBox) {\n var viewBoxArr = splitNumberSequence(viewBox);\n if (viewBoxArr.length >= 4) {\n viewBoxRect = {\n x: parseFloat((viewBoxArr[0] || 0)),\n y: parseFloat((viewBoxArr[1] || 0)),\n width: parseFloat(viewBoxArr[2]),\n height: parseFloat(viewBoxArr[3])\n };\n }\n }\n if (viewBoxRect && width != null && height != null) {\n viewBoxTransform = makeViewBoxTransform(viewBoxRect, { x: 0, y: 0, width: width, height: height });\n if (!opt.ignoreViewBox) {\n var elRoot = root;\n root = new Group();\n root.add(elRoot);\n elRoot.scaleX = elRoot.scaleY = viewBoxTransform.scale;\n elRoot.x = viewBoxTransform.x;\n elRoot.y = viewBoxTransform.y;\n }\n }\n if (!opt.ignoreRootClip && width != null && height != null) {\n root.setClipPath(new Rect({\n shape: { x: 0, y: 0, width: width, height: height }\n }));\n }\n return {\n root: root,\n width: width,\n height: height,\n viewBoxRect: viewBoxRect,\n viewBoxTransform: viewBoxTransform,\n named: named\n };\n };\n SVGParser.prototype._parseNode = function (xmlNode, parentGroup, named, namedFrom, isInDefs, isInText) {\n var nodeName = xmlNode.nodeName.toLowerCase();\n var el;\n var namedFromForSub = namedFrom;\n if (nodeName === 'defs') {\n isInDefs = true;\n }\n if (nodeName === 'text') {\n isInText = true;\n }\n if (nodeName === 'defs' || nodeName === 'switch') {\n el = parentGroup;\n }\n else {\n if (!isInDefs) {\n var parser_1 = nodeParsers[nodeName];\n if (parser_1 && hasOwn(nodeParsers, nodeName)) {\n el = parser_1.call(this, xmlNode, parentGroup);\n var nameAttr = xmlNode.getAttribute('name');\n if (nameAttr) {\n var newNamed = {\n name: nameAttr,\n namedFrom: null,\n svgNodeTagLower: nodeName,\n el: el\n };\n named.push(newNamed);\n if (nodeName === 'g') {\n namedFromForSub = newNamed;\n }\n }\n else if (namedFrom) {\n named.push({\n name: namedFrom.name,\n namedFrom: namedFrom,\n svgNodeTagLower: nodeName,\n el: el\n });\n }\n parentGroup.add(el);\n }\n }\n var parser = paintServerParsers[nodeName];\n if (parser && hasOwn(paintServerParsers, nodeName)) {\n var def = parser.call(this, xmlNode);\n var id = xmlNode.getAttribute('id');\n if (id) {\n this._defs[id] = def;\n }\n }\n }\n if (el && el.isGroup) {\n var child = xmlNode.firstChild;\n while (child) {\n if (child.nodeType === 1) {\n this._parseNode(child, el, named, namedFromForSub, isInDefs, isInText);\n }\n else if (child.nodeType === 3 && isInText) {\n this._parseText(child, el);\n }\n child = child.nextSibling;\n }\n }\n };\n SVGParser.prototype._parseText = function (xmlNode, parentGroup) {\n var text = new TSpan({\n style: {\n text: xmlNode.textContent\n },\n silent: true,\n x: this._textX || 0,\n y: this._textY || 0\n });\n inheritStyle(parentGroup, text);\n parseAttributes(xmlNode, text, this._defsUsePending, false, false);\n applyTextAlignment(text, parentGroup);\n var textStyle = text.style;\n var fontSize = textStyle.fontSize;\n if (fontSize && fontSize < 9) {\n textStyle.fontSize = 9;\n text.scaleX *= fontSize / 9;\n text.scaleY *= fontSize / 9;\n }\n var font = (textStyle.fontSize || textStyle.fontFamily) && [\n textStyle.fontStyle,\n textStyle.fontWeight,\n (textStyle.fontSize || 12) + 'px',\n textStyle.fontFamily || 'sans-serif'\n ].join(' ');\n textStyle.font = font;\n var rect = text.getBoundingRect();\n this._textX += rect.width;\n parentGroup.add(text);\n return text;\n };\n SVGParser.internalField = (function () {\n nodeParsers = {\n 'g': function (xmlNode, parentGroup) {\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, false);\n return g;\n },\n 'rect': function (xmlNode, parentGroup) {\n var rect = new Rect();\n inheritStyle(parentGroup, rect);\n parseAttributes(xmlNode, rect, this._defsUsePending, false, false);\n rect.setShape({\n x: parseFloat(xmlNode.getAttribute('x') || '0'),\n y: parseFloat(xmlNode.getAttribute('y') || '0'),\n width: parseFloat(xmlNode.getAttribute('width') || '0'),\n height: parseFloat(xmlNode.getAttribute('height') || '0')\n });\n rect.silent = true;\n return rect;\n },\n 'circle': function (xmlNode, parentGroup) {\n var circle = new Circle();\n inheritStyle(parentGroup, circle);\n parseAttributes(xmlNode, circle, this._defsUsePending, false, false);\n circle.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n r: parseFloat(xmlNode.getAttribute('r') || '0')\n });\n circle.silent = true;\n return circle;\n },\n 'line': function (xmlNode, parentGroup) {\n var line = new Line();\n inheritStyle(parentGroup, line);\n parseAttributes(xmlNode, line, this._defsUsePending, false, false);\n line.setShape({\n x1: parseFloat(xmlNode.getAttribute('x1') || '0'),\n y1: parseFloat(xmlNode.getAttribute('y1') || '0'),\n x2: parseFloat(xmlNode.getAttribute('x2') || '0'),\n y2: parseFloat(xmlNode.getAttribute('y2') || '0')\n });\n line.silent = true;\n return line;\n },\n 'ellipse': function (xmlNode, parentGroup) {\n var ellipse = new Ellipse();\n inheritStyle(parentGroup, ellipse);\n parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);\n ellipse.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n rx: parseFloat(xmlNode.getAttribute('rx') || '0'),\n ry: parseFloat(xmlNode.getAttribute('ry') || '0')\n });\n ellipse.silent = true;\n return ellipse;\n },\n 'polygon': function (xmlNode, parentGroup) {\n var pointsStr = xmlNode.getAttribute('points');\n var pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n var polygon = new Polygon({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n inheritStyle(parentGroup, polygon);\n parseAttributes(xmlNode, polygon, this._defsUsePending, false, false);\n return polygon;\n },\n 'polyline': function (xmlNode, parentGroup) {\n var pointsStr = xmlNode.getAttribute('points');\n var pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n var polyline = new Polyline({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n inheritStyle(parentGroup, polyline);\n parseAttributes(xmlNode, polyline, this._defsUsePending, false, false);\n return polyline;\n },\n 'image': function (xmlNode, parentGroup) {\n var img = new ZRImage();\n inheritStyle(parentGroup, img);\n parseAttributes(xmlNode, img, this._defsUsePending, false, false);\n img.setStyle({\n image: xmlNode.getAttribute('xlink:href'),\n x: +xmlNode.getAttribute('x'),\n y: +xmlNode.getAttribute('y'),\n width: +xmlNode.getAttribute('width'),\n height: +xmlNode.getAttribute('height')\n });\n img.silent = true;\n return img;\n },\n 'text': function (xmlNode, parentGroup) {\n var x = xmlNode.getAttribute('x') || '0';\n var y = xmlNode.getAttribute('y') || '0';\n var dx = xmlNode.getAttribute('dx') || '0';\n var dy = xmlNode.getAttribute('dy') || '0';\n this._textX = parseFloat(x) + parseFloat(dx);\n this._textY = parseFloat(y) + parseFloat(dy);\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n return g;\n },\n 'tspan': function (xmlNode, parentGroup) {\n var x = xmlNode.getAttribute('x');\n var y = xmlNode.getAttribute('y');\n if (x != null) {\n this._textX = parseFloat(x);\n }\n if (y != null) {\n this._textY = parseFloat(y);\n }\n var dx = xmlNode.getAttribute('dx') || '0';\n var dy = xmlNode.getAttribute('dy') || '0';\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n this._textX += parseFloat(dx);\n this._textY += parseFloat(dy);\n return g;\n },\n 'path': function (xmlNode, parentGroup) {\n var d = xmlNode.getAttribute('d') || '';\n var path = createFromString(d);\n inheritStyle(parentGroup, path);\n parseAttributes(xmlNode, path, this._defsUsePending, false, false);\n path.silent = true;\n return path;\n }\n };\n })();\n return SVGParser;\n}());\nvar paintServerParsers = {\n 'lineargradient': function (xmlNode) {\n var x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10);\n var y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10);\n var x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10);\n var y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10);\n var gradient = new LinearGradient(x1, y1, x2, y2);\n parsePaintServerUnit(xmlNode, gradient);\n parseGradientColorStops(xmlNode, gradient);\n return gradient;\n },\n 'radialgradient': function (xmlNode) {\n var cx = parseInt(xmlNode.getAttribute('cx') || '0', 10);\n var cy = parseInt(xmlNode.getAttribute('cy') || '0', 10);\n var r = parseInt(xmlNode.getAttribute('r') || '0', 10);\n var gradient = new RadialGradient(cx, cy, r);\n parsePaintServerUnit(xmlNode, gradient);\n parseGradientColorStops(xmlNode, gradient);\n return gradient;\n }\n};\nfunction parsePaintServerUnit(xmlNode, gradient) {\n var gradientUnits = xmlNode.getAttribute('gradientUnits');\n if (gradientUnits === 'userSpaceOnUse') {\n gradient.global = true;\n }\n}\nfunction parseGradientColorStops(xmlNode, gradient) {\n var stop = xmlNode.firstChild;\n while (stop) {\n if (stop.nodeType === 1\n && stop.nodeName.toLocaleLowerCase() === 'stop') {\n var offsetStr = stop.getAttribute('offset');\n var offset = void 0;\n if (offsetStr && offsetStr.indexOf('%') > 0) {\n offset = parseInt(offsetStr, 10) / 100;\n }\n else if (offsetStr) {\n offset = parseFloat(offsetStr);\n }\n else {\n offset = 0;\n }\n var styleVals = {};\n parseInlineStyle(stop, styleVals, styleVals);\n var stopColor = styleVals.stopColor\n || stop.getAttribute('stop-color')\n || '#000000';\n gradient.colorStops.push({\n offset: offset,\n color: stopColor\n });\n }\n stop = stop.nextSibling;\n }\n}\nfunction inheritStyle(parent, child) {\n if (parent && parent.__inheritedStyle) {\n if (!child.__inheritedStyle) {\n child.__inheritedStyle = {};\n }\n defaults(child.__inheritedStyle, parent.__inheritedStyle);\n }\n}\nfunction parsePoints(pointsString) {\n var list = splitNumberSequence(pointsString);\n var points = [];\n for (var i = 0; i < list.length; i += 2) {\n var x = parseFloat(list[i]);\n var y = parseFloat(list[i + 1]);\n points.push([x, y]);\n }\n return points;\n}\nfunction parseAttributes(xmlNode, el, defsUsePending, onlyInlineStyle, isTextGroup) {\n var disp = el;\n var inheritedStyle = disp.__inheritedStyle = disp.__inheritedStyle || {};\n var selfStyle = {};\n if (xmlNode.nodeType === 1) {\n parseTransformAttribute(xmlNode, el);\n parseInlineStyle(xmlNode, inheritedStyle, selfStyle);\n if (!onlyInlineStyle) {\n parseAttributeStyle(xmlNode, inheritedStyle, selfStyle);\n }\n }\n disp.style = disp.style || {};\n if (inheritedStyle.fill != null) {\n disp.style.fill = getFillStrokeStyle(disp, 'fill', inheritedStyle.fill, defsUsePending);\n }\n if (inheritedStyle.stroke != null) {\n disp.style.stroke = getFillStrokeStyle(disp, 'stroke', inheritedStyle.stroke, defsUsePending);\n }\n each([\n 'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize'\n ], function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = parseFloat(inheritedStyle[propName]);\n }\n });\n each([\n 'lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign'\n ], function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = inheritedStyle[propName];\n }\n });\n if (isTextGroup) {\n disp.__selfStyle = selfStyle;\n }\n if (inheritedStyle.lineDash) {\n disp.style.lineDash = map(splitNumberSequence(inheritedStyle.lineDash), function (str) {\n return parseFloat(str);\n });\n }\n if (inheritedStyle.visibility === 'hidden' || inheritedStyle.visibility === 'collapse') {\n disp.invisible = true;\n }\n if (inheritedStyle.display === 'none') {\n disp.ignore = true;\n }\n}\nfunction applyTextAlignment(text, parentGroup) {\n var parentSelfStyle = parentGroup.__selfStyle;\n if (parentSelfStyle) {\n var textBaseline = parentSelfStyle.textBaseline;\n var zrTextBaseline = textBaseline;\n if (!textBaseline || textBaseline === 'auto') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'baseline') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'before-edge' || textBaseline === 'text-before-edge') {\n zrTextBaseline = 'top';\n }\n else if (textBaseline === 'after-edge' || textBaseline === 'text-after-edge') {\n zrTextBaseline = 'bottom';\n }\n else if (textBaseline === 'central' || textBaseline === 'mathematical') {\n zrTextBaseline = 'middle';\n }\n text.style.textBaseline = zrTextBaseline;\n }\n var parentInheritedStyle = parentGroup.__inheritedStyle;\n if (parentInheritedStyle) {\n var textAlign = parentInheritedStyle.textAlign;\n var zrTextAlign = textAlign;\n if (textAlign) {\n if (textAlign === 'middle') {\n zrTextAlign = 'center';\n }\n text.style.textAlign = zrTextAlign;\n }\n }\n}\nvar urlRegex = /^url\\(\\s*#(.*?)\\)/;\nfunction getFillStrokeStyle(el, method, str, defsUsePending) {\n var urlMatch = str && str.match(urlRegex);\n if (urlMatch) {\n var url = trim(urlMatch[1]);\n defsUsePending.push([el, method, url]);\n return;\n }\n if (str === 'none') {\n str = null;\n }\n return str;\n}\nfunction applyDefs(defs, defsUsePending) {\n for (var i = 0; i < defsUsePending.length; i++) {\n var item = defsUsePending[i];\n item[0].style[item[1]] = defs[item[2]];\n }\n}\nvar numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction splitNumberSequence(rawStr) {\n return rawStr.match(numberReg) || [];\n}\nvar transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.eE,]*)\\)/g;\nvar DEGREE_TO_ANGLE = Math.PI / 180;\nfunction parseTransformAttribute(xmlNode, node) {\n var transform = xmlNode.getAttribute('transform');\n if (transform) {\n transform = transform.replace(/,/g, ' ');\n var transformOps_1 = [];\n var mt = null;\n transform.replace(transformRegex, function (str, type, value) {\n transformOps_1.push(type, value);\n return '';\n });\n for (var i = transformOps_1.length - 1; i > 0; i -= 2) {\n var value = transformOps_1[i];\n var type = transformOps_1[i - 1];\n var valueArr = splitNumberSequence(value);\n mt = mt || matrix.create();\n switch (type) {\n case 'translate':\n matrix.translate(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || '0')]);\n break;\n case 'scale':\n matrix.scale(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || valueArr[0])]);\n break;\n case 'rotate':\n matrix.rotate(mt, mt, -parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n break;\n case 'skewX':\n var sx = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, 0, sx, 1, 0, 0], mt);\n break;\n case 'skewY':\n var sy = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, sy, 0, 1, 0, 0], mt);\n break;\n case 'matrix':\n mt[0] = parseFloat(valueArr[0]);\n mt[1] = parseFloat(valueArr[1]);\n mt[2] = parseFloat(valueArr[2]);\n mt[3] = parseFloat(valueArr[3]);\n mt[4] = parseFloat(valueArr[4]);\n mt[5] = parseFloat(valueArr[5]);\n break;\n }\n }\n node.setLocalTransform(mt);\n }\n}\nvar styleRegex = /([^\\s:;]+)\\s*:\\s*([^:;]+)/g;\nfunction parseInlineStyle(xmlNode, inheritableStyleResult, selfStyleResult) {\n var style = xmlNode.getAttribute('style');\n if (!style) {\n return;\n }\n styleRegex.lastIndex = 0;\n var styleRegResult;\n while ((styleRegResult = styleRegex.exec(style)) != null) {\n var svgStlAttr = styleRegResult[1];\n var zrInheritableStlAttr = hasOwn(INHERITABLE_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? INHERITABLE_STYLE_ATTRIBUTES_MAP[svgStlAttr]\n : null;\n if (zrInheritableStlAttr) {\n inheritableStyleResult[zrInheritableStlAttr] = styleRegResult[2];\n }\n var zrSelfStlAttr = hasOwn(SELF_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? SELF_STYLE_ATTRIBUTES_MAP[svgStlAttr]\n : null;\n if (zrSelfStlAttr) {\n selfStyleResult[zrSelfStlAttr] = styleRegResult[2];\n }\n }\n}\nfunction parseAttributeStyle(xmlNode, inheritableStyleResult, selfStyleResult) {\n for (var i = 0; i < INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n var svgAttrName = INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[i];\n var attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n inheritableStyleResult[INHERITABLE_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n for (var i = 0; i < SELF_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n var svgAttrName = SELF_STYLE_ATTRIBUTES_MAP_KEYS[i];\n var attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n selfStyleResult[SELF_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n}\nexport function makeViewBoxTransform(viewBoxRect, boundingRect) {\n var scaleX = boundingRect.width / viewBoxRect.width;\n var scaleY = boundingRect.height / viewBoxRect.height;\n var scale = Math.min(scaleX, scaleY);\n return {\n scale: scale,\n x: -(viewBoxRect.x + viewBoxRect.width / 2) * scale + (boundingRect.x + boundingRect.width / 2),\n y: -(viewBoxRect.y + viewBoxRect.height / 2) * scale + (boundingRect.y + boundingRect.height / 2)\n };\n}\nexport function parseSVG(xml, opt) {\n var parser = new SVGParser();\n return parser.parse(xml, opt);\n}\nexport { parseXML };\n","import windingLine from './windingLine';\nvar EPSILON = 1e-8;\nfunction isAroundEqual(a, b) {\n return Math.abs(a - b) < EPSILON;\n}\nexport function contain(points, x, y) {\n var w = 0;\n var p = points[0];\n if (!p) {\n return false;\n }\n for (var i = 1; i < points.length; i++) {\n var p2 = points[i];\n w += windingLine(p[0], p[1], p2[0], p2[1], x, y);\n p = p2;\n }\n var p0 = points[0];\n if (!isAroundEqual(p[0], p0[0]) || !isAroundEqual(p[1], p0[1])) {\n w += windingLine(p[0], p[1], p0[0], p0[1], x, y);\n }\n return w !== 0;\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as polygonContain from 'zrender/lib/contain/polygon';\nimport * as matrix from 'zrender/lib/core/matrix';\nvar TMP_TRANSFORM = [];\n\nvar Region =\n/** @class */\nfunction () {\n function Region(name) {\n this.name = name;\n }\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n\n\n Region.prototype.getCenter = function () {\n return;\n };\n\n return Region;\n}();\n\nexport { Region };\n\nvar GeoJSONRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoJSONRegion, _super);\n\n function GeoJSONRegion(name, geometries, cp) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoJSON';\n _this.geometries = geometries;\n\n if (!cp) {\n var rect = _this.getBoundingRect();\n\n cp = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n } else {\n cp = [cp[0], cp[1]];\n }\n\n _this._center = cp;\n return _this;\n }\n\n GeoJSONRegion.prototype.getBoundingRect = function () {\n var rect = this._rect;\n\n if (rect) {\n return rect;\n }\n\n var MAX_NUMBER = Number.MAX_VALUE;\n var min = [MAX_NUMBER, MAX_NUMBER];\n var max = [-MAX_NUMBER, -MAX_NUMBER];\n var min2 = [];\n var max2 = [];\n var geometries = this.geometries;\n var i = 0;\n\n for (; i < geometries.length; i++) {\n // Only support polygon\n if (geometries[i].type !== 'polygon') {\n continue;\n } // Doesn't consider hole\n\n\n var exterior = geometries[i].exterior;\n bbox.fromPoints(exterior, min2, max2);\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n } // No data\n\n\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return this._rect = new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n };\n\n GeoJSONRegion.prototype.contain = function (coord) {\n var rect = this.getBoundingRect();\n var geometries = this.geometries;\n\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n\n loopGeo: for (var i = 0, len = geometries.length; i < len; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n\n var exterior = geometries[i].exterior;\n var interiors = geometries[i].interiors;\n\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (var k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n\n return true;\n }\n }\n\n return false;\n };\n\n GeoJSONRegion.prototype.transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var aspect = rect.width / rect.height;\n\n if (!width) {\n width = aspect * height;\n } else if (!height) {\n height = width / aspect;\n }\n\n var target = new BoundingRect(x, y, width, height);\n var transform = rect.calculateTransform(target);\n var geometries = this.geometries;\n\n for (var i = 0; i < geometries.length; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n\n var exterior = geometries[i].exterior;\n var interiors = geometries[i].interiors;\n\n for (var p = 0; p < exterior.length; p++) {\n vec2.applyTransform(exterior[p], exterior[p], transform);\n }\n\n for (var h = 0; h < (interiors ? interiors.length : 0); h++) {\n for (var p = 0; p < interiors[h].length; p++) {\n vec2.applyTransform(interiors[h][p], interiors[h][p], transform);\n }\n }\n }\n\n rect = this._rect;\n rect.copy(target); // Update center\n\n this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.cloneShallow = function (name) {\n name == null && (name = this.name);\n var newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n\n return newRegion;\n };\n\n GeoJSONRegion.prototype.getCenter = function () {\n return this._center;\n };\n\n GeoJSONRegion.prototype.setCenter = function (center) {\n this._center = center;\n };\n\n return GeoJSONRegion;\n}(Region);\n\nexport { GeoJSONRegion };\n\nvar GeoSVGRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoSVGRegion, _super);\n\n function GeoSVGRegion(name, elOnlyForCalculate) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoSVG';\n _this._elOnlyForCalculate = elOnlyForCalculate;\n return _this;\n }\n\n GeoSVGRegion.prototype.getCenter = function () {\n var center = this._center;\n\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this._calculateCenter();\n }\n\n return center;\n };\n\n GeoSVGRegion.prototype._calculateCenter = function () {\n var el = this._elOnlyForCalculate;\n var rect = el.getBoundingRect();\n var center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n var mat = matrix.identity(TMP_TRANSFORM);\n var target = el;\n\n while (target && !target.isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n vec2.applyTransform(center, center, mat);\n return center;\n };\n\n return GeoSVGRegion;\n}(Region);\n\nexport { GeoSVGRegion };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseSVG, makeViewBoxTransform } from 'zrender/lib/tool/parseSVG';\nimport Group from 'zrender/lib/graphic/Group';\nimport Rect from 'zrender/lib/graphic/shape/Rect';\nimport { assert, createHashMap, each } from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parseXML } from 'zrender/lib/tool/parseXML';\nimport { GeoSVGRegion } from './Region';\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\n\nvar REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // are also enabled becuase some SVG might paint text itself,\n// but still need to trigger events or tooltip.\n'text', 'tspan', // is also enabled because this case: if multiple tags share one name\n// and need label displayed, every tags will display the name, which is not\n// expected. So we can put them into a . Thereby only one label\n// displayed and located based on the bounding rect of the .\n'g']);\n\nvar GeoSVGResource =\n/** @class */\nfunction () {\n function GeoSVGResource(mapName, svg) {\n this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root\n\n this._usedGraphicMap = createHashMap(); // All unused graphics.\n\n this._freedGraphics = [];\n this._mapName = mapName; // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n\n this._parsedXML = parseXML(svg);\n }\n\n GeoSVGResource.prototype.load = function ()\n /* nameMap: NameMap */\n {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n var firstGraphic = this._firstGraphic; // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone(); // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n var _a = createRegions(firstGraphic.named),\n regions = _a.regions,\n regionsMap = _a.regionsMap;\n\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n };\n\n GeoSVGResource.prototype._buildGraphic = function (svgXML) {\n var result;\n var rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n } catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n } // Note: we keep the covenant that the root has no transform. So always add an extra root.\n\n\n var root = new Group();\n root.add(rootFromParse);\n root.isGeoSVGGraphicRoot = true; // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: ``\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n var svgWidth = result.width;\n var svgHeight = result.height;\n var viewBoxRect = result.viewBoxRect;\n var boundingRect = this._boundingRect;\n\n if (!boundingRect) {\n var bRectX = void 0;\n var bRectY = void 0;\n var bRectWidth = void 0;\n var bRectHeight = void 0;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n } else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n } else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n } // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n\n\n if (bRectX == null || bRectY == null) {\n var calculatedBoundingRect = rootFromParse.getBoundingRect();\n\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect); // Only support `preserveAspectRatio 'xMidYMid'`\n\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n } // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n\n\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n var named = [];\n each(result.named, function (namedItem) {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n return {\n root: root,\n boundingRect: boundingRect,\n named: named\n };\n };\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n\n\n GeoSVGResource.prototype.useGraphic = function (hostKey\n /*, nameMap: NameMap */\n ) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop() // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n usedRootMap.set(hostKey, svgGraphic); // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n };\n\n GeoSVGResource.prototype.freeGraphic = function (hostKey) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n\n this._freedGraphics.push(svgGraphic);\n }\n };\n\n return GeoSVGResource;\n}();\n\nexport { GeoSVGResource };\n\nfunction setSilent(el) {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false; // text|tspan will be converted to group.\n\n if (el.isGroup) {\n el.traverse(function (child) {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(named) {\n var regions = [];\n var regionsMap = createHashMap(); // Create resions only for the first graphic.\n\n each(named, function (namedItem) {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a , the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n var region = new GeoSVGRegion(namedItem.name, namedItem.el); // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n\n regions.push(region); // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n\n regionsMap.set(namedItem.name, region);\n });\n return {\n regions: regions,\n regionsMap: regionsMap\n };\n} // PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { GeoJSONRegion } from './Region';\n\nfunction decode(json) {\n if (!json.UTF8Encoding) {\n return json;\n }\n\n var jsonCompressed = json;\n var encodeScale = jsonCompressed.UTF8Scale;\n\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n var features = jsonCompressed.features;\n\n for (var f = 0; f < features.length; f++) {\n var feature = features[f];\n var geometry = feature.geometry;\n\n if (geometry.type === 'Polygon') {\n var coordinates = geometry.coordinates;\n\n for (var c = 0; c < coordinates.length; c++) {\n coordinates[c] = decodePolygon(coordinates[c], geometry.encodeOffsets[c], encodeScale);\n }\n } else if (geometry.type === 'MultiPolygon') {\n var coordinates = geometry.coordinates;\n\n for (var c = 0; c < coordinates.length; c++) {\n var coordinate = coordinates[c];\n\n for (var c2 = 0; c2 < coordinate.length; c2++) {\n coordinate[c2] = decodePolygon(coordinate[c2], geometry.encodeOffsets[c][c2], encodeScale);\n }\n }\n }\n } // Has been decoded\n\n\n jsonCompressed.UTF8Encoding = false;\n return jsonCompressed;\n}\n\nfunction decodePolygon(coordinate, encodeOffsets, encodeScale) {\n var result = [];\n var prevX = encodeOffsets[0];\n var prevY = encodeOffsets[1];\n\n for (var i = 0; i < coordinate.length; i += 2) {\n var x = coordinate.charCodeAt(i) - 64;\n var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding\n\n x = x >> 1 ^ -(x & 1);\n y = y >> 1 ^ -(y & 1); // Delta deocding\n\n x += prevX;\n y += prevY;\n prevX = x;\n prevY = y; // Dequantize\n\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson, nameProperty) {\n geoJson = decode(geoJson);\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n var properties = featureObj.properties;\n var geo = featureObj.geometry;\n var geometries = [];\n\n if (geo.type === 'Polygon') {\n var coordinates = geo.coordinates;\n geometries.push({\n type: 'polygon',\n // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n exterior: coordinates[0],\n interiors: coordinates.slice(1)\n });\n }\n\n if (geo.type === 'MultiPolygon') {\n var coordinates = geo.coordinates;\n zrUtil.each(coordinates, function (item) {\n if (item[0]) {\n geometries.push({\n type: 'polygon',\n exterior: item[0],\n interiors: item.slice(1)\n });\n }\n });\n }\n\n var region = new GeoJSONRegion(properties[nameProperty || 'name'], geometries, properties.cp);\n region.properties = properties;\n return region;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 南海诸岛\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { GeoJSONRegion } from '../Region';\nvar geoCoord = [126, 25];\nvar nanhaiName = '南海诸岛';\nvar points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];\n\nfor (var i = 0; i < points.length; i++) {\n for (var k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType, regions) {\n if (mapType === 'china') {\n for (var i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(nanhaiName, zrUtil.map(points, function (exterior) {\n return {\n type: 'polygon',\n exterior: exterior\n };\n }), geoCoord));\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar coordsOffsetMap = {\n '南海诸岛': [32, 80],\n // 全国\n '广东': [0, -10],\n '香港': [10, 5],\n '澳门': [-10, 10],\n //'北京': [-10, 0],\n '天津': [5, 5]\n};\nexport default function fixTextCoords(mapType, region) {\n if (mapType === 'china') {\n var coordFix = coordsOffsetMap[region.name];\n\n if (coordFix) {\n var cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar geoCoordMap = {\n 'Russia': [100, 60],\n 'United States': [-99, 38],\n 'United States of America': [-99, 38]\n};\nexport default function fixGeoCoords(mapType, region) {\n if (mapType === 'world') {\n var geoCoord = geoCoordMap[region.name];\n\n if (geoCoord) {\n var cp = [geoCoord[0], geoCoord[1]];\n region.setCenter(cp);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 钓鱼岛\n// let Region = require('../Region');\n// let zrUtil = require('zrender/lib/core/util');\n// let geoCoord = [126, 25];\nvar points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];\nexport default function fixDiaoyuIsland(mapType, region) {\n if (mapType === 'china' && region.name === '台湾') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isString, createHashMap } from 'zrender/lib/core/util';\nimport parseGeoJson from './parseGeoJson'; // Built-in GEO fixer.\n\nimport fixNanhai from './fix/nanhai';\nimport fixTextCoord from './fix/textCoord';\nimport fixGeoCoord from './fix/geoCoord';\nimport fixDiaoyuIsland from './fix/diaoyuIsland';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nvar DEFAULT_NAME_PROPERTY = 'name';\n\nvar GeoJSONResource =\n/** @class */\nfunction () {\n function GeoJSONResource(mapName, geoJSON, specialAreas) {\n this.type = 'geoJSON';\n this._parsedMap = createHashMap();\n this._mapName = mapName;\n this._specialAreas = specialAreas; // PENDING: delay the parse to the first usage to rapid up the FMP?\n\n this._geoJSON = parseInput(geoJSON);\n }\n /**\n * @param nameMap can be null/undefined\n * @param nameProperty can be null/undefined\n */\n\n\n GeoJSONResource.prototype.load = function (nameMap, nameProperty) {\n nameProperty = nameProperty || DEFAULT_NAME_PROPERTY;\n\n var parsed = this._parsedMap.get(nameProperty);\n\n if (!parsed) {\n var rawRegions = this._parseToRegions(nameProperty);\n\n parsed = this._parsedMap.set(nameProperty, {\n regions: rawRegions,\n boundingRect: calculateBoundingRect(rawRegions)\n });\n }\n\n var regionsMap = createHashMap();\n var finalRegions = [];\n each(parsed.regions, function (region) {\n var regionName = region.name; // Try use the alias in geoNameMap\n\n if (nameMap && nameMap.hasOwnProperty(regionName)) {\n region = region.cloneShallow(regionName = nameMap[regionName]);\n }\n\n finalRegions.push(region);\n regionsMap.set(regionName, region);\n });\n return {\n regions: finalRegions,\n boundingRect: parsed.boundingRect || new BoundingRect(0, 0, 0, 0),\n regionsMap: regionsMap\n };\n };\n\n GeoJSONResource.prototype._parseToRegions = function (nameProperty) {\n var mapName = this._mapName;\n var geoJSON = this._geoJSON;\n var rawRegions; // https://jsperf.com/try-catch-performance-overhead\n\n try {\n rawRegions = geoJSON ? parseGeoJson(geoJSON, nameProperty) : [];\n } catch (e) {\n throw new Error('Invalid geoJson format\\n' + e.message);\n }\n\n fixNanhai(mapName, rawRegions);\n each(rawRegions, function (region) {\n var regionName = region.name;\n fixTextCoord(mapName, region);\n fixGeoCoord(mapName, region);\n fixDiaoyuIsland(mapName, region); // Some area like Alaska in USA map needs to be tansformed\n // to look better\n\n var specialArea = this._specialAreas && this._specialAreas[regionName];\n\n if (specialArea) {\n region.transformTo(specialArea.left, specialArea.top, specialArea.width, specialArea.height);\n }\n }, this);\n return rawRegions;\n };\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n\n\n GeoJSONResource.prototype.getMapForUser = function () {\n return {\n // For backward compatibility, use geoJson\n // PENDING: it has been returning them without clone.\n // do we need to avoid outsite modification?\n geoJson: this._geoJSON,\n geoJSON: this._geoJSON,\n specialAreas: this._specialAreas\n };\n };\n\n return GeoJSONResource;\n}();\n\nexport { GeoJSONResource };\n\nfunction calculateBoundingRect(regions) {\n var rect;\n\n for (var i = 0; i < regions.length; i++) {\n var regionRect = regions[i].getBoundingRect();\n rect = rect || regionRect.clone();\n rect.union(regionRect);\n }\n\n return rect;\n}\n\nfunction parseInput(source) {\n return !isString(source) ? source : typeof JSON !== 'undefined' && JSON.parse ? JSON.parse(source) : new Function('return (' + source + ');')();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util';\nimport { GeoSVGResource } from './GeoSVGResource';\nimport { GeoJSONResource } from './GeoJSONResource';\nvar storage = createHashMap();\nexport default {\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (mapName, rawDef, rawSpecialAreas) {\n if (rawDef.svg) {\n var resource = new GeoSVGResource(mapName, rawDef.svg);\n storage.set(mapName, resource);\n } else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n var geoJSON = rawDef.geoJson || rawDef.geoJSON;\n\n if (geoJSON && !rawDef.features) {\n rawSpecialAreas = rawDef.specialAreas;\n } else {\n geoJSON = rawDef;\n }\n\n var resource = new GeoJSONResource(mapName, geoJSON, rawSpecialAreas);\n storage.set(mapName, resource);\n }\n },\n getGeoResource: function (mapName) {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName) {\n var resource = storage.get(mapName); // Do not support return SVG until some real requirement come.\n\n return resource && resource.type === 'geoJSON' && resource.getMapForUser();\n },\n load: function (mapName, nameMap, nameProperty) {\n var resource = storage.get(mapName);\n\n if (!resource) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.');\n }\n\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport { __extends } from \"tslib\";\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrender from 'zrender/lib/zrender';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as colorTool from 'zrender/lib/tool/color';\nimport env from 'zrender/lib/core/env';\nimport timsort from 'zrender/lib/core/timsort';\nimport Eventful from 'zrender/lib/core/Eventful';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport CoordinateSystemManager from './CoordinateSystem';\nimport OptionManager from '../model/OptionManager';\nimport backwardCompat from '../preprocessor/backwardCompat';\nimport dataStack from '../processor/dataStack';\nimport SeriesModel from '../model/Series';\nimport ComponentView from '../view/Component';\nimport ChartView from '../view/Chart';\nimport * as graphic from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport { isHighDownDispatcher, HOVER_STATE_EMPHASIS, HOVER_STATE_BLUR, blurSeriesFromHighlightPayload, toggleSelectionFromPayload, updateSeriesElementSelection, getAllSelectedIndices, isSelectChangePayload, isHighDownPayload, HIGHLIGHT_ACTION_TYPE, DOWNPLAY_ACTION_TYPE, SELECT_ACTION_TYPE, UNSELECT_ACTION_TYPE, TOGGLE_SELECT_ACTION_TYPE, savePathStates, enterEmphasis, leaveEmphasis, leaveBlur, enterSelect, leaveSelect, enterBlur, allLeaveBlur, findComponentHighDownDispatchers, blurComponent, handleGlobalMouseOverForHighDown, handleGlboalMouseOutForHighDown } from '../util/states';\nimport * as modelUtil from '../util/model';\nimport { throttle } from '../util/throttle';\nimport { seriesStyleTask, dataStyleTask, dataColorPaletteTask } from '../visual/style';\nimport loadingDefault from '../loading/default';\nimport Scheduler from './Scheduler';\nimport lightTheme from '../theme/light';\nimport darkTheme from '../theme/dark';\nimport { parseClassType } from '../util/clazz';\nimport { ECEventProcessor } from '../util/ECEventProcessor';\nimport { seriesSymbolTask, dataSymbolTask } from '../visual/symbol';\nimport { getVisualFromData, getItemVisualFromData } from '../visual/helper';\nimport LabelManager from '../label/LabelManager';\nimport { deprecateLog, throwError } from '../util/log';\nimport { handleLegacySelectEvents } from '../legacy/dataSelectAction';\nimport { registerExternalTransform } from '../data/helper/transform';\nimport { createLocaleObject, SYSTEM_LANG } from './locale';\nimport { findEventDispatcher } from '../util/event';\nimport decal from '../visual/decal';\nimport geoSourceManager from '../coord/geo/geoSourceManager';\nvar assert = zrUtil.assert;\nvar each = zrUtil.each;\nvar isFunction = zrUtil.isFunction;\nvar isObject = zrUtil.isObject;\nvar indexOf = zrUtil.indexOf;\nvar hasWindow = typeof window !== 'undefined';\nexport var version = '5.1.2';\nexport var dependencies = {\n zrender: '5.1.1'\n};\nvar TEST_FRAME_REMAIN_TIME = 1;\nvar PRIORITY_PROCESSOR_SERIES_FILTER = 800; // Some data processors depends on the stack result dimension (to calculate data extent).\n// So data stack stage should be in front of data processing stage.\n\nvar PRIORITY_PROCESSOR_DATASTACK = 900; // \"Data filter\" will block the stream, so it should be\n// put at the begining of data processing.\n\nvar PRIORITY_PROCESSOR_FILTER = 1000;\nvar PRIORITY_PROCESSOR_DEFAULT = 2000;\nvar PRIORITY_PROCESSOR_STATISTIC = 5000;\nvar PRIORITY_VISUAL_LAYOUT = 1000;\nvar PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;\nvar PRIORITY_VISUAL_GLOBAL = 2000;\nvar PRIORITY_VISUAL_CHART = 3000;\nvar PRIORITY_VISUAL_COMPONENT = 4000; // Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to\n// overwrite the viusal result of component (like `visualMap`)\n// using data item specific setting (like itemStyle.xxx on data item)\n\nvar PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500; // Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on\n// visual result like `symbolSize`.\n\nvar PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;\nvar PRIORITY_VISUAL_BRUSH = 5000;\nvar PRIORITY_VISUAL_ARIA = 6000;\nvar PRIORITY_VISUAL_DECAL = 7000;\nexport var PRIORITY = {\n PROCESSOR: {\n FILTER: PRIORITY_PROCESSOR_FILTER,\n SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,\n STATISTIC: PRIORITY_PROCESSOR_STATISTIC\n },\n VISUAL: {\n LAYOUT: PRIORITY_VISUAL_LAYOUT,\n PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,\n GLOBAL: PRIORITY_VISUAL_GLOBAL,\n CHART: PRIORITY_VISUAL_CHART,\n POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,\n COMPONENT: PRIORITY_VISUAL_COMPONENT,\n BRUSH: PRIORITY_VISUAL_BRUSH,\n CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,\n ARIA: PRIORITY_VISUAL_ARIA,\n DECAL: PRIORITY_VISUAL_DECAL\n }\n}; // Main process have three entries: `setOption`, `dispatchAction` and `resize`,\n// where they must not be invoked nestedly, except the only case: invoke\n// dispatchAction with updateMethod \"none\" in main process.\n// This flag is used to carry out this rule.\n// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).\n\nvar IN_MAIN_PROCESS_KEY = '__flagInMainProcess';\nvar OPTION_UPDATED_KEY = '__optionUpdated';\nvar STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus';\nvar ACTION_REG = /^[a-zA-Z0-9_]+$/;\nvar CONNECT_STATUS_KEY = '__connectUpdateStatus';\nvar CONNECT_STATUS_PENDING = 0;\nvar CONNECT_STATUS_UPDATING = 1;\nvar CONNECT_STATUS_UPDATED = 2;\n;\n;\n;\n\nfunction createRegisterEventWithLowercaseECharts(method) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (this.isDisposed()) {\n disposedWarning(this.id);\n return;\n }\n\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\n\nfunction createRegisterEventWithLowercaseMessageCenter(method) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\n\nfunction toLowercaseNameAndCallEventful(host, method, args) {\n // `args[0]` is event name. Event name is all lowercase.\n args[0] = args[0] && args[0].toLowerCase();\n return Eventful.prototype[method].apply(host, args);\n}\n\nvar MessageCenter =\n/** @class */\nfunction (_super) {\n __extends(MessageCenter, _super);\n\n function MessageCenter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return MessageCenter;\n}(Eventful);\n\nvar messageCenterProto = MessageCenter.prototype;\nmessageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');\nmessageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off'); // ---------------------------------------\n// Internal method names for class ECharts\n// ---------------------------------------\n\nvar prepare;\nvar prepareView;\nvar updateDirectly;\nvar updateMethods;\nvar doConvertPixel;\nvar updateStreamModes;\nvar doDispatchAction;\nvar flushPendingActions;\nvar triggerUpdatedEvent;\nvar bindRenderedEvent;\nvar bindMouseEvent;\nvar clearColorPalette;\nvar render;\nvar renderComponents;\nvar renderSeries;\nvar performPostUpdateFuncs;\nvar createExtensionAPI;\nvar enableConnect;\nvar setTransitionOpt;\nvar markStatusToUpdate;\nvar applyChangedStates;\n\nvar ECharts =\n/** @class */\nfunction (_super) {\n __extends(ECharts, _super);\n\n function ECharts(dom, // Theme name or themeOption.\n theme, opts) {\n var _this = _super.call(this, new ECEventProcessor()) || this;\n\n _this._chartsViews = [];\n _this._chartsMap = {};\n _this._componentsViews = [];\n _this._componentsMap = {}; // Can't dispatch action during rendering procedure\n\n _this._pendingActions = [];\n opts = opts || {}; // Get theme by name\n\n if (typeof theme === 'string') {\n theme = themeStorage[theme];\n }\n\n _this._dom = dom;\n var defaultRenderer = 'canvas';\n var defaultUseDirtyRect = false;\n\n if (process.env.NODE_ENV !== 'production') {\n var root =\n /* eslint-disable-next-line */\n hasWindow ? window : global;\n defaultRenderer = root.__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;\n var devUseDirtyRect = root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;\n defaultUseDirtyRect = devUseDirtyRect == null ? defaultUseDirtyRect : devUseDirtyRect;\n }\n\n var zr = _this._zr = zrender.init(dom, {\n renderer: opts.renderer || defaultRenderer,\n devicePixelRatio: opts.devicePixelRatio,\n width: opts.width,\n height: opts.height,\n useDirtyRect: opts.useDirtyRect == null ? defaultUseDirtyRect : opts.useDirtyRect\n }); // Expect 60 fps.\n\n _this._throttledZrFlush = throttle(zrUtil.bind(zr.flush, zr), 17);\n theme = zrUtil.clone(theme);\n theme && backwardCompat(theme, true);\n _this._theme = theme;\n _this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);\n _this._coordSysMgr = new CoordinateSystemManager();\n var api = _this._api = createExtensionAPI(_this); // Sort on demand\n\n function prioritySortFunc(a, b) {\n return a.__prio - b.__prio;\n }\n\n timsort(visualFuncs, prioritySortFunc);\n timsort(dataProcessorFuncs, prioritySortFunc);\n _this._scheduler = new Scheduler(_this, api, dataProcessorFuncs, visualFuncs);\n _this._messageCenter = new MessageCenter();\n _this._labelManager = new LabelManager(); // Init mouse events\n\n _this._initEvents(); // In case some people write `window.onresize = chart.resize`\n\n\n _this.resize = zrUtil.bind(_this.resize, _this);\n zr.animation.on('frame', _this._onframe, _this);\n bindRenderedEvent(zr, _this);\n bindMouseEvent(zr, _this); // ECharts instance can be used as value.\n\n zrUtil.setAsPrimitive(_this);\n return _this;\n }\n\n ECharts.prototype._onframe = function () {\n if (this._disposed) {\n return;\n }\n\n applyChangedStates(this);\n var scheduler = this._scheduler; // Lazy update\n\n if (this[OPTION_UPDATED_KEY]) {\n var silent = this[OPTION_UPDATED_KEY].silent;\n this[IN_MAIN_PROCESS_KEY] = true;\n prepare(this);\n updateMethods.update.call(this); // At present, in each frame, zrender performs:\n // (1) animation step forward.\n // (2) trigger('frame') (where this `_onframe` is called)\n // (3) zrender flush (render).\n // If we do nothing here, since we use `setToFinal: true`, the step (3) above\n // will render the final state of the elements before the real animation started.\n\n this._zr.flush();\n\n this[IN_MAIN_PROCESS_KEY] = false;\n this[OPTION_UPDATED_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n } // Avoid do both lazy update and progress in one frame.\n else if (scheduler.unfinished) {\n // Stream progress.\n var remainTime = TEST_FRAME_REMAIN_TIME;\n var ecModel = this._model;\n var api = this._api;\n scheduler.unfinished = false;\n\n do {\n var startTime = +new Date();\n scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold.\n\n scheduler.performDataProcessorTasks(ecModel);\n updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in\n // each frame is not a good user experience. So we follow the rule that\n // the extent of the coordinate system is determin in the first frame (the\n // frame is executed immedietely after task reset.\n // this._coordSysMgr.update(ecModel, api);\n // console.log('--- ec frame visual ---', remainTime);\n\n scheduler.performVisualTasks(ecModel);\n renderSeries(this, this._model, api, 'remain');\n remainTime -= +new Date() - startTime;\n } while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event.\n\n\n if (!scheduler.unfinished) {\n this._zr.flush();\n } // Else, zr flushing be ensue within the same frame,\n // because zr flushing is after onframe event.\n\n }\n };\n\n ECharts.prototype.getDom = function () {\n return this._dom;\n };\n\n ECharts.prototype.getId = function () {\n return this.id;\n };\n\n ECharts.prototype.getZr = function () {\n return this._zr;\n };\n /* eslint-disable-next-line */\n\n\n ECharts.prototype.setOption = function (option, notMerge, lazyUpdate) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this[IN_MAIN_PROCESS_KEY], '`setOption` should not be called during main process.');\n }\n\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var silent;\n var replaceMerge;\n var transitionOpt;\n\n if (isObject(notMerge)) {\n lazyUpdate = notMerge.lazyUpdate;\n silent = notMerge.silent;\n replaceMerge = notMerge.replaceMerge;\n transitionOpt = notMerge.transition;\n notMerge = notMerge.notMerge;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n if (!this._model || notMerge) {\n var optionManager = new OptionManager(this._api);\n var theme = this._theme;\n var ecModel = this._model = new GlobalModel();\n ecModel.scheduler = this._scheduler;\n ecModel.init(null, null, null, theme, this._locale, optionManager);\n }\n\n this._model.setOption(option, {\n replaceMerge: replaceMerge\n }, optionPreprocessorFuncs);\n\n setTransitionOpt(this, transitionOpt);\n\n if (lazyUpdate) {\n this[OPTION_UPDATED_KEY] = {\n silent: silent\n };\n this[IN_MAIN_PROCESS_KEY] = false; // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.\n // It should wake it up to make sure zrender start to render at the next frame.\n\n this.getZr().wakeUp();\n } else {\n prepare(this);\n updateMethods.update.call(this); // Ensure zr refresh sychronously, and then pixel in canvas can be\n // fetched after `setOption`.\n\n this._zr.flush();\n\n this[OPTION_UPDATED_KEY] = false;\n this[IN_MAIN_PROCESS_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n }\n };\n /**\n * @DEPRECATED\n */\n\n\n ECharts.prototype.setTheme = function () {\n console.error('ECharts#setTheme() is DEPRECATED in ECharts 3.0');\n }; // We don't want developers to use getModel directly.\n\n\n ECharts.prototype.getModel = function () {\n return this._model;\n };\n\n ECharts.prototype.getOption = function () {\n return this._model && this._model.getOption();\n };\n\n ECharts.prototype.getWidth = function () {\n return this._zr.getWidth();\n };\n\n ECharts.prototype.getHeight = function () {\n return this._zr.getHeight();\n };\n\n ECharts.prototype.getDevicePixelRatio = function () {\n return this._zr.painter.dpr\n /* eslint-disable-next-line */\n || hasWindow && window.devicePixelRatio || 1;\n };\n /**\n * Get canvas which has all thing rendered\n */\n\n\n ECharts.prototype.getRenderedCanvas = function (opts) {\n if (!env.canvasSupported) {\n return;\n }\n\n opts = opts || {};\n return this._zr.painter.getRenderedCanvas({\n backgroundColor: opts.backgroundColor || this._model.get('backgroundColor'),\n pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()\n });\n };\n /**\n * Get svg data url\n */\n\n\n ECharts.prototype.getSvgDataURL = function () {\n if (!env.svgSupported) {\n return;\n }\n\n var zr = this._zr;\n var list = zr.storage.getDisplayList(); // Stop animations\n\n zrUtil.each(list, function (el) {\n el.stopAnimation(null, true);\n });\n return zr.painter.toDataURL();\n };\n\n ECharts.prototype.getDataURL = function (opts) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n opts = opts || {};\n var excludeComponents = opts.excludeComponents;\n var ecModel = this._model;\n var excludesComponentViews = [];\n var self = this;\n each(excludeComponents, function (componentType) {\n ecModel.eachComponent({\n mainType: componentType\n }, function (component) {\n var view = self._componentsMap[component.__viewId];\n\n if (!view.group.ignore) {\n excludesComponentViews.push(view);\n view.group.ignore = true;\n }\n });\n });\n var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.getRenderedCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png'));\n each(excludesComponentViews, function (view) {\n view.group.ignore = false;\n });\n return url;\n };\n\n ECharts.prototype.getConnectedDataURL = function (opts) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!env.canvasSupported) {\n return;\n }\n\n var isSvg = opts.type === 'svg';\n var groupId = this.group;\n var mathMin = Math.min;\n var mathMax = Math.max;\n var MAX_NUMBER = Infinity;\n\n if (connectedGroups[groupId]) {\n var left_1 = MAX_NUMBER;\n var top_1 = MAX_NUMBER;\n var right_1 = -MAX_NUMBER;\n var bottom_1 = -MAX_NUMBER;\n var canvasList_1 = [];\n var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio();\n zrUtil.each(instances, function (chart, id) {\n if (chart.group === groupId) {\n var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.getRenderedCanvas(zrUtil.clone(opts));\n var boundingRect = chart.getDom().getBoundingClientRect();\n left_1 = mathMin(boundingRect.left, left_1);\n top_1 = mathMin(boundingRect.top, top_1);\n right_1 = mathMax(boundingRect.right, right_1);\n bottom_1 = mathMax(boundingRect.bottom, bottom_1);\n canvasList_1.push({\n dom: canvas,\n left: boundingRect.left,\n top: boundingRect.top\n });\n }\n });\n left_1 *= dpr_1;\n top_1 *= dpr_1;\n right_1 *= dpr_1;\n bottom_1 *= dpr_1;\n var width = right_1 - left_1;\n var height = bottom_1 - top_1;\n var targetCanvas = zrUtil.createCanvas();\n var zr_1 = zrender.init(targetCanvas, {\n renderer: isSvg ? 'svg' : 'canvas'\n });\n zr_1.resize({\n width: width,\n height: height\n });\n\n if (isSvg) {\n var content_1 = '';\n each(canvasList_1, function (item) {\n var x = item.left - left_1;\n var y = item.top - top_1;\n content_1 += '' + item.dom + '';\n });\n zr_1.painter.getSvgRoot().innerHTML = content_1;\n\n if (opts.connectedBackgroundColor) {\n zr_1.painter.setBackgroundColor(opts.connectedBackgroundColor);\n }\n\n zr_1.refreshImmediately();\n return zr_1.painter.toDataURL();\n } else {\n // Background between the charts\n if (opts.connectedBackgroundColor) {\n zr_1.add(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: width,\n height: height\n },\n style: {\n fill: opts.connectedBackgroundColor\n }\n }));\n }\n\n each(canvasList_1, function (item) {\n var img = new graphic.Image({\n style: {\n x: item.left * dpr_1 - left_1,\n y: item.top * dpr_1 - top_1,\n image: item.dom\n }\n });\n zr_1.add(img);\n });\n zr_1.refreshImmediately();\n return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));\n }\n } else {\n return this.getDataURL(opts);\n }\n };\n\n ECharts.prototype.convertToPixel = function (finder, value) {\n return doConvertPixel(this, 'convertToPixel', finder, value);\n };\n\n ECharts.prototype.convertFromPixel = function (finder, value) {\n return doConvertPixel(this, 'convertFromPixel', finder, value);\n };\n /**\n * Is the specified coordinate systems or components contain the given pixel point.\n * @param {Array|number} value\n * @return {boolean} result\n */\n\n\n ECharts.prototype.containPixel = function (finder, value) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var ecModel = this._model;\n var result;\n var findResult = modelUtil.parseFinder(ecModel, finder);\n zrUtil.each(findResult, function (models, key) {\n key.indexOf('Models') >= 0 && zrUtil.each(models, function (model) {\n var coordSys = model.coordinateSystem;\n\n if (coordSys && coordSys.containPoint) {\n result = result || !!coordSys.containPoint(value);\n } else if (key === 'seriesModels') {\n var view = this._chartsMap[model.__viewId];\n\n if (view && view.containPoint) {\n result = result || view.containPoint(value, model);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(key + ': ' + (view ? 'The found component do not support containPoint.' : 'No view mapping to the found component.'));\n }\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(key + ': containPoint is not supported');\n }\n }\n }, this);\n }, this);\n return !!result;\n };\n /**\n * Get visual from series or data.\n * @param finder\n * If string, e.g., 'series', means {seriesIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex / seriesId / seriesName,\n * dataIndex / dataIndexInside\n * }\n * If dataIndex is not specified, series visual will be fetched,\n * but not data item visual.\n * If all of seriesIndex, seriesId, seriesName are not specified,\n * visual will be fetched from first series.\n * @param visualType 'color', 'symbol', 'symbolSize'\n */\n\n\n ECharts.prototype.getVisual = function (finder, visualType) {\n var ecModel = this._model;\n var parsedFinder = modelUtil.parseFinder(ecModel, finder, {\n defaultMainType: 'series'\n });\n var seriesModel = parsedFinder.seriesModel;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!seriesModel) {\n console.warn('There is no specified seires model');\n }\n }\n\n var data = seriesModel.getData();\n var dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside') ? parsedFinder.dataIndexInside : parsedFinder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(parsedFinder.dataIndex) : null;\n return dataIndexInside != null ? getItemVisualFromData(data, dataIndexInside, visualType) : getVisualFromData(data, visualType);\n };\n /**\n * Get view of corresponding component model\n */\n\n\n ECharts.prototype.getViewOfComponentModel = function (componentModel) {\n return this._componentsMap[componentModel.__viewId];\n };\n /**\n * Get view of corresponding series model\n */\n\n\n ECharts.prototype.getViewOfSeriesModel = function (seriesModel) {\n return this._chartsMap[seriesModel.__viewId];\n };\n\n ECharts.prototype._initEvents = function () {\n var _this = this;\n\n each(MOUSE_EVENT_NAMES, function (eveName) {\n var handler = function (e) {\n var ecModel = _this.getModel();\n\n var el = e.target;\n var params;\n var isGlobalOut = eveName === 'globalout'; // no e.target when 'globalout'.\n\n if (isGlobalOut) {\n params = {};\n } else {\n el && findEventDispatcher(el, function (parent) {\n var ecData = getECData(parent);\n\n if (ecData && ecData.dataIndex != null) {\n var dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);\n params = dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {};\n return true;\n } // If element has custom eventData of components\n else if (ecData.eventData) {\n params = zrUtil.extend({}, ecData.eventData);\n return true;\n }\n }, true);\n } // Contract: if params prepared in mouse event,\n // these properties must be specified:\n // {\n // componentType: string (component main type)\n // componentIndex: number\n // }\n // Otherwise event query can not work.\n\n\n if (params) {\n var componentType = params.componentType;\n var componentIndex = params.componentIndex; // Special handling for historic reason: when trigger by\n // markLine/markPoint/markArea, the componentType is\n // 'markLine'/'markPoint'/'markArea', but we should better\n // enable them to be queried by seriesIndex, since their\n // option is set in each series.\n\n if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea') {\n componentType = 'series';\n componentIndex = params.seriesIndex;\n }\n\n var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex);\n var view = model && _this[model.mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId];\n\n if (process.env.NODE_ENV !== 'production') {\n // `event.componentType` and `event[componentTpype + 'Index']` must not\n // be missed, otherwise there is no way to distinguish source component.\n // See `dataFormat.getDataParams`.\n if (!isGlobalOut && !(model && view)) {\n console.warn('model or view can not be found by params');\n }\n }\n\n params.event = e;\n params.type = eveName;\n _this._$eventProcessor.eventInfo = {\n targetEl: el,\n packedEvent: params,\n model: model,\n view: view\n };\n\n _this.trigger(eveName, params);\n }\n }; // Consider that some component (like tooltip, brush, ...)\n // register zr event handler, but user event handler might\n // do anything, such as call `setOption` or `dispatchAction`,\n // which probably update any of the content and probably\n // cause problem if it is called previous other inner handlers.\n\n\n handler.zrEventfulCallAtLast = true;\n\n _this._zr.on(eveName, handler, _this);\n });\n each(eventActionMap, function (actionType, eventType) {\n _this._messageCenter.on(eventType, function (event) {\n this.trigger(eventType, event);\n }, _this);\n }); // Extra events\n // TODO register?\n\n each(['selectchanged'], function (eventType) {\n _this._messageCenter.on(eventType, function (event) {\n this.trigger(eventType, event);\n }, _this);\n });\n handleLegacySelectEvents(this._messageCenter, this, this._api);\n };\n\n ECharts.prototype.isDisposed = function () {\n return this._disposed;\n };\n\n ECharts.prototype.clear = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this.setOption({\n series: []\n }, true);\n };\n\n ECharts.prototype.dispose = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._disposed = true;\n modelUtil.setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');\n var api = this._api;\n var ecModel = this._model;\n each(this._componentsViews, function (component) {\n component.dispose(ecModel, api);\n });\n each(this._chartsViews, function (chart) {\n chart.dispose(ecModel, api);\n }); // Dispose after all views disposed\n\n this._zr.dispose();\n\n delete instances[this.id];\n };\n /**\n * Resize the chart\n */\n\n\n ECharts.prototype.resize = function (opts) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this[IN_MAIN_PROCESS_KEY], '`resize` should not be called during main process.');\n }\n\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._zr.resize(opts);\n\n var ecModel = this._model; // Resize loading effect\n\n this._loadingFX && this._loadingFX.resize();\n\n if (!ecModel) {\n return;\n }\n\n var needPrepare = ecModel.resetOption('media');\n var silent = opts && opts.silent; // There is some real cases that:\n // chart.setOption(option, { lazyUpdate: true });\n // chart.resize();\n\n if (this[OPTION_UPDATED_KEY]) {\n if (silent == null) {\n silent = this[OPTION_UPDATED_KEY].silent;\n }\n\n needPrepare = true;\n this[OPTION_UPDATED_KEY] = false;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n needPrepare && prepare(this);\n updateMethods.update.call(this, {\n type: 'resize',\n animation: zrUtil.extend({\n // Disable animation\n duration: 0\n }, opts && opts.animation)\n });\n this[IN_MAIN_PROCESS_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n };\n\n ECharts.prototype.showLoading = function (name, cfg) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (isObject(name)) {\n cfg = name;\n name = '';\n }\n\n name = name || 'default';\n this.hideLoading();\n\n if (!loadingEffects[name]) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Loading effects ' + name + ' not exists.');\n }\n\n return;\n }\n\n var el = loadingEffects[name](this._api, cfg);\n var zr = this._zr;\n this._loadingFX = el;\n zr.add(el);\n };\n /**\n * Hide loading effect\n */\n\n\n ECharts.prototype.hideLoading = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._loadingFX && this._zr.remove(this._loadingFX);\n this._loadingFX = null;\n };\n\n ECharts.prototype.makeActionFromEvent = function (eventObj) {\n var payload = zrUtil.extend({}, eventObj);\n payload.type = eventActionMap[eventObj.type];\n return payload;\n };\n /**\n * @param opt If pass boolean, means opt.silent\n * @param opt.silent Default `false`. Whether trigger events.\n * @param opt.flush Default `undefined`.\n * true: Flush immediately, and then pixel in canvas can be fetched\n * immediately. Caution: it might affect performance.\n * false: Not flush.\n * undefined: Auto decide whether perform flush.\n */\n\n\n ECharts.prototype.dispatchAction = function (payload, opt) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!isObject(opt)) {\n opt = {\n silent: !!opt\n };\n }\n\n if (!actions[payload.type]) {\n return;\n } // Avoid dispatch action before setOption. Especially in `connect`.\n\n\n if (!this._model) {\n return;\n } // May dispatchAction in rendering procedure\n\n\n if (this[IN_MAIN_PROCESS_KEY]) {\n this._pendingActions.push(payload);\n\n return;\n }\n\n var silent = opt.silent;\n doDispatchAction.call(this, payload, silent);\n var flush = opt.flush;\n\n if (flush) {\n this._zr.flush();\n } else if (flush !== false && env.browser.weChat) {\n // In WeChat embeded browser, `requestAnimationFrame` and `setInterval`\n // hang when sliding page (on touch event), which cause that zr does not\n // refresh util user interaction finished, which is not expected.\n // But `dispatchAction` may be called too frequently when pan on touch\n // screen, which impacts performance if do not throttle them.\n this._throttledZrFlush();\n }\n\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n };\n\n ECharts.prototype.updateLabelLayout = function () {\n var labelManager = this._labelManager;\n labelManager.updateLayoutConfig(this._api);\n labelManager.layout(this._api);\n labelManager.processLabelsOverall();\n };\n\n ECharts.prototype.appendData = function (params) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var seriesIndex = params.seriesIndex;\n var ecModel = this.getModel();\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(params.data && seriesModel);\n }\n\n seriesModel.appendData(params); // Note: `appendData` does not support that update extent of coordinate\n // system, util some scenario require that. In the expected usage of\n // `appendData`, the initial extent of coordinate system should better\n // be fixed by axis `min`/`max` setting or initial data, otherwise if\n // the extent changed while `appendData`, the location of the painted\n // graphic elements have to be changed, which make the usage of\n // `appendData` meaningless.\n\n this._scheduler.unfinished = true;\n this.getZr().wakeUp();\n }; // A work around for no `internal` modifier in ts yet but\n // need to strictly hide private methods to JS users.\n\n\n ECharts.internalField = function () {\n prepare = function (ecIns) {\n var scheduler = ecIns._scheduler;\n scheduler.restorePipelines(ecIns._model);\n scheduler.prepareStageTasks();\n prepareView(ecIns, true);\n prepareView(ecIns, false);\n scheduler.plan();\n };\n /**\n * Prepare view instances of charts and components\n */\n\n\n prepareView = function (ecIns, isComponent) {\n var ecModel = ecIns._model;\n var scheduler = ecIns._scheduler;\n var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;\n var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;\n var zr = ecIns._zr;\n var api = ecIns._api;\n\n for (var i = 0; i < viewList.length; i++) {\n viewList[i].__alive = false;\n }\n\n isComponent ? ecModel.eachComponent(function (componentType, model) {\n componentType !== 'series' && doPrepare(model);\n }) : ecModel.eachSeries(doPrepare);\n\n function doPrepare(model) {\n // By defaut view will be reused if possible for the case that `setOption` with \"notMerge\"\n // mode and need to enable transition animation. (Usually, when they have the same id, or\n // especially no id but have the same type & name & index. See the `model.id` generation\n // rule in `makeIdAndName` and `viewId` generation rule here).\n // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that\n // the new model has nothing to do with the old model.\n var requireNewView = model.__requireNewView; // This command should not work twice.\n\n model.__requireNewView = false; // Consider: id same and type changed.\n\n var viewId = '_ec_' + model.id + '_' + model.type;\n var view = !requireNewView && viewMap[viewId];\n\n if (!view) {\n var classType = parseClassType(model.type);\n var Clazz = isComponent ? ComponentView.getClass(classType.main, classType.sub) : // FIXME:TS\n // (ChartView as ChartViewConstructor).getClass('series', classType.sub)\n // For backward compat, still support a chart type declared as only subType\n // like \"liquidfill\", but recommend \"series.liquidfill\"\n // But need a base class to make a type series.\n ChartView.getClass(classType.sub);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(Clazz, classType.sub + ' does not exist.');\n }\n\n view = new Clazz();\n view.init(ecModel, api);\n viewMap[viewId] = view;\n viewList.push(view);\n zr.add(view.group);\n }\n\n model.__viewId = view.__id = viewId;\n view.__alive = true;\n view.__model = model;\n view.group.__ecComponentInfo = {\n mainType: model.mainType,\n index: model.componentIndex\n };\n !isComponent && scheduler.prepareView(view, model, ecModel, api);\n }\n\n for (var i = 0; i < viewList.length;) {\n var view = viewList[i];\n\n if (!view.__alive) {\n !isComponent && view.renderTask.dispose();\n zr.remove(view.group);\n view.dispose(ecModel, api);\n viewList.splice(i, 1);\n\n if (viewMap[view.__id] === view) {\n delete viewMap[view.__id];\n }\n\n view.__id = view.group.__ecComponentInfo = null;\n } else {\n i++;\n }\n }\n };\n\n updateDirectly = function (ecIns, method, payload, mainType, subType) {\n var ecModel = ecIns._model;\n ecModel.setUpdatePayload(payload); // broadcast\n\n if (!mainType) {\n // FIXME\n // Chart will not be update directly here, except set dirty.\n // But there is no such scenario now.\n each([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);\n return;\n }\n\n var query = {};\n query[mainType + 'Id'] = payload[mainType + 'Id'];\n query[mainType + 'Index'] = payload[mainType + 'Index'];\n query[mainType + 'Name'] = payload[mainType + 'Name'];\n var condition = {\n mainType: mainType,\n query: query\n };\n subType && (condition.subType = subType); // subType may be '' by parseClassType;\n\n var excludeSeriesId = payload.excludeSeriesId;\n var excludeSeriesIdMap;\n\n if (excludeSeriesId != null) {\n excludeSeriesIdMap = zrUtil.createHashMap();\n each(modelUtil.normalizeToArray(excludeSeriesId), function (id) {\n var modelId = modelUtil.convertOptionIdName(id, null);\n\n if (modelId != null) {\n excludeSeriesIdMap.set(modelId, true);\n }\n });\n }\n\n if (isHighDownPayload(payload)) {\n allLeaveBlur(ecIns._api);\n } // If dispatchAction before setOption, do nothing.\n\n\n ecModel && ecModel.eachComponent(condition, function (model) {\n if (!excludeSeriesIdMap || excludeSeriesIdMap.get(model.id) == null) {\n if (isHighDownPayload(payload)) {\n if (model instanceof SeriesModel) {\n if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur) {\n blurSeriesFromHighlightPayload(model, payload, ecIns._api);\n }\n } else {\n var _a = findComponentHighDownDispatchers(model.mainType, model.componentIndex, payload.name, ecIns._api),\n focusSelf = _a.focusSelf,\n dispatchers = _a.dispatchers;\n\n if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {\n blurComponent(model.mainType, model.componentIndex, ecIns._api);\n } // PENDING:\n // Whether to put this \"enter emphasis\" code in `ComponentView`,\n // which will be the same as `ChartView` but might be not necessary\n // and will be far from this logic.\n\n\n if (dispatchers) {\n each(dispatchers, function (dispatcher) {\n payload.type === HIGHLIGHT_ACTION_TYPE ? enterEmphasis(dispatcher) : leaveEmphasis(dispatcher);\n });\n }\n }\n } else if (isSelectChangePayload(payload)) {\n // TODO geo\n if (model instanceof SeriesModel) {\n toggleSelectionFromPayload(model, payload, ecIns._api);\n updateSeriesElementSelection(model);\n markStatusToUpdate(ecIns);\n }\n }\n\n callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]);\n }\n }, ecIns);\n\n function callView(view) {\n view && view.__alive && view[method] && view[method](view.__model, ecModel, ecIns._api, payload);\n }\n };\n\n updateMethods = {\n prepareAndUpdate: function (payload) {\n prepare(this);\n updateMethods.update.call(this, payload);\n },\n update: function (payload) {\n // console.profile && console.profile('update');\n var ecModel = this._model;\n var api = this._api;\n var zr = this._zr;\n var coordSysMgr = this._coordSysMgr;\n var scheduler = this._scheduler; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n scheduler.restoreData(ecModel, payload);\n scheduler.performSeriesTasks(ecModel); // TODO\n // Save total ecModel here for undo/redo (after restoring data and before processing data).\n // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.\n // Create new coordinate system each update\n // In LineView may save the old coordinate system and use it to get the orignal point\n\n coordSysMgr.create(ecModel, api);\n scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update\n // stream modes after data processing, where the filtered data is used to\n // deteming whether use progressive rendering.\n\n updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info\n // can be fetched when coord sys updating (consider the barGrid extent fix). But\n // the drawback is the full coord info can not be fetched. Fortunately this full\n // coord is not requied in stream mode updater currently.\n\n coordSysMgr.update(ecModel, api);\n clearColorPalette(ecModel);\n scheduler.performVisualTasks(ecModel, payload);\n render(this, ecModel, api, payload); // Set background\n\n var backgroundColor = ecModel.get('backgroundColor') || 'transparent';\n var darkMode = ecModel.get('darkMode'); // In IE8\n\n if (!env.canvasSupported) {\n var colorArr = colorTool.parse(backgroundColor);\n backgroundColor = colorTool.stringify(colorArr, 'rgb');\n\n if (colorArr[3] === 0) {\n backgroundColor = 'transparent';\n }\n } else {\n zr.setBackgroundColor(backgroundColor); // Force set dark mode.\n\n if (darkMode != null && darkMode !== 'auto') {\n zr.setDarkMode(darkMode);\n }\n }\n\n performPostUpdateFuncs(ecModel, api); // console.profile && console.profileEnd('update');\n },\n updateTransform: function (payload) {\n var _this = this;\n\n var ecModel = this._model;\n var api = this._api; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload); // ChartView.markUpdateMethod(payload, 'updateTransform');\n\n var componentDirtyList = [];\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n\n var componentView = _this.getViewOfComponentModel(componentModel);\n\n if (componentView && componentView.__alive) {\n if (componentView.updateTransform) {\n var result = componentView.updateTransform(componentModel, ecModel, api, payload);\n result && result.update && componentDirtyList.push(componentView);\n } else {\n componentDirtyList.push(componentView);\n }\n }\n });\n var seriesDirtyMap = zrUtil.createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var chartView = _this._chartsMap[seriesModel.__viewId];\n\n if (chartView.updateTransform) {\n var result = chartView.updateTransform(seriesModel, ecModel, api, payload);\n result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);\n } else {\n seriesDirtyMap.set(seriesModel.uid, 1);\n }\n });\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n setDirty: true,\n dirtyMap: seriesDirtyMap\n }); // Currently, not call render of components. Geo render cost a lot.\n // renderComponents(ecIns, ecModel, api, payload, componentDirtyList);\n\n\n renderSeries(this, ecModel, api, payload, seriesDirtyMap);\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateView: function (payload) {\n var ecModel = this._model; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n ChartView.markUpdateMethod(payload, 'updateView');\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n setDirty: true\n });\n\n render(this, this._model, this._api, payload);\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateVisual: function (payload) {\n // updateMethods.update.call(this, payload);\n var _this = this;\n\n var ecModel = this._model; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload); // clear all visual\n\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.getData().clearAllVisual();\n }); // Perform visual\n\n ChartView.markUpdateMethod(payload, 'updateVisual');\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n visualType: 'visual',\n setDirty: true\n });\n\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType !== 'series') {\n var componentView = _this.getViewOfComponentModel(componentModel);\n\n componentView && componentView.__alive && componentView.updateVisual(componentModel, ecModel, _this._api, payload);\n }\n });\n ecModel.eachSeries(function (seriesModel) {\n var chartView = _this._chartsMap[seriesModel.__viewId];\n chartView.updateVisual(seriesModel, ecModel, _this._api, payload);\n });\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateLayout: function (payload) {\n updateMethods.update.call(this, payload);\n }\n };\n\n doConvertPixel = function (ecIns, methodName, finder, value) {\n if (ecIns._disposed) {\n disposedWarning(ecIns.id);\n return;\n }\n\n var ecModel = ecIns._model;\n\n var coordSysList = ecIns._coordSysMgr.getCoordinateSystems();\n\n var result;\n var parsedFinder = modelUtil.parseFinder(ecModel, finder);\n\n for (var i = 0; i < coordSysList.length; i++) {\n var coordSys = coordSysList[i];\n\n if (coordSys[methodName] && (result = coordSys[methodName](ecModel, parsedFinder, value)) != null) {\n return result;\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n console.warn('No coordinate system that supports ' + methodName + ' found by the given finder.');\n }\n };\n\n updateStreamModes = function (ecIns, ecModel) {\n var chartsMap = ecIns._chartsMap;\n var scheduler = ecIns._scheduler;\n ecModel.eachSeries(function (seriesModel) {\n scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);\n });\n };\n\n doDispatchAction = function (payload, silent) {\n var _this = this;\n\n var ecModel = this.getModel();\n var payloadType = payload.type;\n var escapeConnect = payload.escapeConnect;\n var actionWrap = actions[payloadType];\n var actionInfo = actionWrap.actionInfo;\n var cptTypeTmp = (actionInfo.update || 'update').split(':');\n var updateMethod = cptTypeTmp.pop();\n var cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);\n this[IN_MAIN_PROCESS_KEY] = true;\n var payloads = [payload];\n var batched = false; // Batch action\n\n if (payload.batch) {\n batched = true;\n payloads = zrUtil.map(payload.batch, function (item) {\n item = zrUtil.defaults(zrUtil.extend({}, item), payload);\n item.batch = null;\n return item;\n });\n }\n\n var eventObjBatch = [];\n var eventObj;\n var isSelectChange = isSelectChangePayload(payload);\n var isHighDown = isHighDownPayload(payload);\n each(payloads, function (batchItem) {\n // Action can specify the event by return it.\n eventObj = actionWrap.action(batchItem, _this._model, _this._api); // Emit event outside\n\n eventObj = eventObj || zrUtil.extend({}, batchItem); // Convert type to eventType\n\n eventObj.type = actionInfo.event || eventObj.type;\n eventObjBatch.push(eventObj); // light update does not perform data process, layout and visual.\n\n if (isHighDown) {\n var _a = modelUtil.preParseFinder(payload),\n queryOptionMap = _a.queryOptionMap,\n mainTypeSpecified = _a.mainTypeSpecified;\n\n var componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';\n updateDirectly(_this, updateMethod, batchItem, componentMainType);\n markStatusToUpdate(_this);\n } else if (isSelectChange) {\n // At present `dispatchAction({ type: 'select', ... })` is not supported on components.\n // geo still use 'geoselect'.\n updateDirectly(_this, updateMethod, batchItem, 'series');\n markStatusToUpdate(_this);\n } else if (cptType) {\n updateDirectly(_this, updateMethod, batchItem, cptType.main, cptType.sub);\n }\n });\n\n if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {\n // Still dirty\n if (this[OPTION_UPDATED_KEY]) {\n prepare(this);\n updateMethods.update.call(this, payload);\n this[OPTION_UPDATED_KEY] = false;\n } else {\n updateMethods[updateMethod].call(this, payload);\n }\n } // Follow the rule of action batch\n\n\n if (batched) {\n eventObj = {\n type: actionInfo.event || payloadType,\n escapeConnect: escapeConnect,\n batch: eventObjBatch\n };\n } else {\n eventObj = eventObjBatch[0];\n }\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n if (!silent) {\n var messageCenter = this._messageCenter;\n messageCenter.trigger(eventObj.type, eventObj); // Extra triggered 'selectchanged' event\n\n if (isSelectChange) {\n var newObj = {\n type: 'selectchanged',\n escapeConnect: escapeConnect,\n selected: getAllSelectedIndices(ecModel),\n isFromClick: payload.isFromClick || false,\n fromAction: payload.type,\n fromActionPayload: payload\n };\n messageCenter.trigger(newObj.type, newObj);\n }\n }\n };\n\n flushPendingActions = function (silent) {\n var pendingActions = this._pendingActions;\n\n while (pendingActions.length) {\n var payload = pendingActions.shift();\n doDispatchAction.call(this, payload, silent);\n }\n };\n\n triggerUpdatedEvent = function (silent) {\n !silent && this.trigger('updated');\n };\n /**\n * Event `rendered` is triggered when zr\n * rendered. It is useful for realtime\n * snapshot (reflect animation).\n *\n * Event `finished` is triggered when:\n * (1) zrender rendering finished.\n * (2) initial animation finished.\n * (3) progressive rendering finished.\n * (4) no pending action.\n * (5) no delayed setOption needs to be processed.\n */\n\n\n bindRenderedEvent = function (zr, ecIns) {\n zr.on('rendered', function (params) {\n ecIns.trigger('rendered', params); // The `finished` event should not be triggered repeatly,\n // so it should only be triggered when rendering indeed happend\n // in zrender. (Consider the case that dipatchAction is keep\n // triggering when mouse move).\n\n if ( // Although zr is dirty if initial animation is not finished\n // and this checking is called on frame, we also check\n // animation finished for robustness.\n zr.animation.isFinished() && !ecIns[OPTION_UPDATED_KEY] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) {\n ecIns.trigger('finished');\n }\n });\n };\n\n bindMouseEvent = function (zr, ecIns) {\n zr.on('mouseover', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n\n if (dispatcher) {\n handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('mouseout', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n\n if (dispatcher) {\n handleGlboalMouseOutForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('click', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, function (target) {\n return getECData(target).dataIndex != null;\n }, true);\n\n if (dispatcher) {\n var actionType = dispatcher.selected ? 'unselect' : 'select';\n var ecData = getECData(dispatcher);\n\n ecIns._api.dispatchAction({\n type: actionType,\n dataType: ecData.dataType,\n dataIndexInside: ecData.dataIndex,\n seriesIndex: ecData.seriesIndex,\n isFromClick: true\n });\n }\n });\n };\n\n clearColorPalette = function (ecModel) {\n ecModel.clearColorPalette();\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.clearColorPalette();\n });\n };\n\n render = function (ecIns, ecModel, api, payload) {\n renderComponents(ecIns, ecModel, api, payload);\n each(ecIns._chartsViews, function (chart) {\n chart.__alive = false;\n });\n renderSeries(ecIns, ecModel, api, payload); // Remove groups of unrendered charts\n\n each(ecIns._chartsViews, function (chart) {\n if (!chart.__alive) {\n chart.remove(ecModel, api);\n }\n });\n };\n\n renderComponents = function (ecIns, ecModel, api, payload, dirtyList) {\n each(dirtyList || ecIns._componentsViews, function (componentView) {\n var componentModel = componentView.__model;\n clearStates(componentModel, componentView);\n componentView.render(componentModel, ecModel, api, payload);\n updateZ(componentModel, componentView);\n updateStates(componentModel, componentView);\n });\n };\n /**\n * Render each chart and component\n */\n\n\n renderSeries = function (ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var labelManager = ecIns._labelManager;\n labelManager.clearLabels();\n var unfinished = false;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload); // TODO states on marker.\n\n clearStates(seriesModel, chartView);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {\n unfinished = true;\n }\n\n seriesModel.__transientTransitionOpt = null;\n chartView.group.silent = !!seriesModel.get('silent'); // Should not call markRedraw on group, because it will disable zrender\n // increamental render (alway render from the __startIndex each frame)\n // chartView.group.markRedraw();\n\n updateBlend(seriesModel, chartView);\n updateSeriesElementSelection(seriesModel); // Add labels.\n\n labelManager.addLabelsOfSeries(chartView);\n });\n scheduler.unfinished = unfinished || scheduler.unfinished;\n labelManager.updateLayoutConfig(api);\n labelManager.layout(api);\n labelManager.processLabelsOverall();\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId]; // Update Z after labels updated. Before applying states.\n\n updateZ(seriesModel, chartView); // NOTE: Update states after label is updated.\n // label should be in normal status when layouting.\n\n updateStates(seriesModel, chartView);\n }); // If use hover layer\n\n updateHoverLayerStatus(ecIns, ecModel);\n };\n\n performPostUpdateFuncs = function (ecModel, api) {\n each(postUpdateFuncs, function (func) {\n func(ecModel, api);\n });\n };\n\n markStatusToUpdate = function (ecIns) {\n ecIns[STATUS_NEEDS_UPDATE_KEY] = true; // Wake up zrender if it's sleep. Let it update states in the next frame.\n\n ecIns.getZr().wakeUp();\n };\n\n applyChangedStates = function (ecIns) {\n if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {\n return;\n }\n\n ecIns.getZr().storage.traverse(function (el) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n applyElementStates(el);\n });\n ecIns[STATUS_NEEDS_UPDATE_KEY] = false;\n };\n\n function applyElementStates(el) {\n var newStates = [];\n var oldStates = el.currentStates; // Keep other states.\n\n for (var i = 0; i < oldStates.length; i++) {\n var stateName = oldStates[i];\n\n if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {\n newStates.push(stateName);\n }\n } // Only use states when it's exists.\n\n\n if (el.selected && el.states.select) {\n newStates.push('select');\n }\n\n if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {\n newStates.push('emphasis');\n } else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {\n newStates.push('blur');\n }\n\n el.useStates(newStates);\n }\n\n function updateHoverLayerStatus(ecIns, ecModel) {\n var zr = ecIns._zr;\n var storage = zr.storage;\n var elCount = 0;\n storage.traverse(function (el) {\n if (!el.isGroup) {\n elCount++;\n }\n });\n\n if (elCount > ecModel.get('hoverLayerThreshold') && !env.node && !env.worker) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.preventUsingHoverLayer) {\n return;\n }\n\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n\n if (chartView.__alive) {\n chartView.group.traverse(function (el) {\n if (el.states.emphasis) {\n el.states.emphasis.hoverLayer = true;\n }\n });\n }\n });\n }\n }\n\n ;\n /**\n * Update chart and blend.\n */\n\n function updateBlend(seriesModel, chartView) {\n var blendMode = seriesModel.get('blendMode') || null;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!env.canvasSupported && blendMode && blendMode !== 'source-over') {\n console.warn('Only canvas support blendMode');\n }\n }\n\n chartView.group.traverse(function (el) {\n // FIXME marker and other components\n if (!el.isGroup) {\n // DONT mark the element dirty. In case element is incremental and don't wan't to rerender.\n el.style.blend = blendMode;\n }\n\n if (el.eachPendingDisplayable) {\n el.eachPendingDisplayable(function (displayable) {\n displayable.style.blend = blendMode;\n });\n }\n });\n }\n\n ;\n\n function updateZ(model, view) {\n if (model.preventAutoZ) {\n return;\n } // Set z and zlevel\n\n\n _updateZ(view.group, model.get('z') || 0, model.get('zlevel') || 0, -Infinity);\n }\n\n ;\n\n function _updateZ(el, z, zlevel, maxZ2) {\n // Group may also have textContent\n var label = el.getTextContent();\n var labelLine = el.getTextGuideLine();\n var isGroup = el.isGroup;\n\n if (isGroup) {\n // set z & zlevel of children elements of Group\n // el.traverse((childEl: Element) => _updateZ(childEl, z, zlevel));\n var children = el.childrenRef();\n\n for (var i = 0; i < children.length; i++) {\n maxZ2 = Math.max(_updateZ(children[i], z, zlevel, maxZ2), maxZ2);\n }\n } else {\n // not Group\n el.z = z;\n el.zlevel = zlevel;\n maxZ2 = Math.max(el.z2, maxZ2);\n } // always set z and zlevel if label/labelLine exists\n\n\n if (label) {\n label.z = z;\n label.zlevel = zlevel; // lift z2 of text content\n // TODO if el.emphasis.z2 is spcefied, what about textContent.\n\n isFinite(maxZ2) && (label.z2 = maxZ2 + 2);\n }\n\n if (labelLine) {\n var textGuideLineConfig = el.textGuideLineConfig;\n labelLine.z = z;\n labelLine.zlevel = zlevel;\n isFinite(maxZ2) && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));\n }\n\n return maxZ2;\n } // Clear states without animation.\n // TODO States on component.\n\n\n function clearStates(model, view) {\n view.group.traverse(function (el) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine();\n\n if (el.stateTransition) {\n el.stateTransition = null;\n }\n\n if (textContent && textContent.stateTransition) {\n textContent.stateTransition = null;\n }\n\n if (textGuide && textGuide.stateTransition) {\n textGuide.stateTransition = null;\n } // TODO If el is incremental.\n\n\n if (el.hasState()) {\n el.prevStates = el.currentStates;\n el.clearStates();\n } else if (el.prevStates) {\n el.prevStates = null;\n }\n });\n }\n\n function updateStates(model, view) {\n var stateAnimationModel = model.getModel('stateAnimation');\n var enableAnimation = model.isAnimationEnabled();\n var duration = stateAnimationModel.get('duration');\n var stateTransition = duration > 0 ? {\n duration: duration,\n delay: stateAnimationModel.get('delay'),\n easing: stateAnimationModel.get('easing') // additive: stateAnimationModel.get('additive')\n\n } : null;\n view.group.traverse(function (el) {\n if (el.states && el.states.emphasis) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n if (el instanceof graphic.Path) {\n savePathStates(el);\n } // Only updated on changed element. In case element is incremental and don't wan't to rerender.\n // TODO, a more proper way?\n\n\n if (el.__dirty) {\n var prevStates = el.prevStates; // Restore states without animation\n\n if (prevStates) {\n el.useStates(prevStates);\n }\n } // Update state transition and enable animation again.\n\n\n if (enableAnimation) {\n el.stateTransition = stateTransition;\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine(); // TODO Is it necessary to animate label?\n\n if (textContent) {\n textContent.stateTransition = stateTransition;\n }\n\n if (textGuide) {\n textGuide.stateTransition = stateTransition;\n }\n } // The use higlighted and selected flag to toggle states.\n\n\n if (el.__dirty) {\n applyElementStates(el);\n }\n }\n });\n }\n\n ;\n\n createExtensionAPI = function (ecIns) {\n return new (\n /** @class */\n function (_super) {\n __extends(class_1, _super);\n\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n class_1.prototype.getCoordinateSystems = function () {\n return ecIns._coordSysMgr.getCoordinateSystems();\n };\n\n class_1.prototype.getComponentByElement = function (el) {\n while (el) {\n var modelInfo = el.__ecComponentInfo;\n\n if (modelInfo != null) {\n return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);\n }\n\n el = el.parent;\n }\n };\n\n class_1.prototype.enterEmphasis = function (el, highlightDigit) {\n enterEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveEmphasis = function (el, highlightDigit) {\n leaveEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.enterBlur = function (el) {\n enterBlur(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveBlur = function (el) {\n leaveBlur(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.enterSelect = function (el) {\n enterSelect(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveSelect = function (el) {\n leaveSelect(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.getModel = function () {\n return ecIns.getModel();\n };\n\n class_1.prototype.getViewOfComponentModel = function (componentModel) {\n return ecIns.getViewOfComponentModel(componentModel);\n };\n\n class_1.prototype.getViewOfSeriesModel = function (seriesModel) {\n return ecIns.getViewOfSeriesModel(seriesModel);\n };\n\n return class_1;\n }(ExtensionAPI))(ecIns);\n };\n\n enableConnect = function (chart) {\n function updateConnectedChartsStatus(charts, status) {\n for (var i = 0; i < charts.length; i++) {\n var otherChart = charts[i];\n otherChart[CONNECT_STATUS_KEY] = status;\n }\n }\n\n each(eventActionMap, function (actionType, eventType) {\n chart._messageCenter.on(eventType, function (event) {\n if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {\n if (event && event.escapeConnect) {\n return;\n }\n\n var action_1 = chart.makeActionFromEvent(event);\n var otherCharts_1 = [];\n each(instances, function (otherChart) {\n if (otherChart !== chart && otherChart.group === chart.group) {\n otherCharts_1.push(otherChart);\n }\n });\n updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING);\n each(otherCharts_1, function (otherChart) {\n if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {\n otherChart.dispatchAction(action_1);\n }\n });\n updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_UPDATED);\n }\n });\n });\n };\n\n setTransitionOpt = function (chart, transitionOpt) {\n var ecModel = chart._model;\n zrUtil.each(modelUtil.normalizeToArray(transitionOpt), function (transOpt) {\n var errMsg;\n var fromOpt = transOpt.from;\n var toOpt = transOpt.to;\n\n if (toOpt == null) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition.to` must be specified.';\n }\n\n throwError(errMsg);\n }\n\n var finderOpt = {\n includeMainTypes: ['series'],\n enableAll: false,\n enableNone: false\n };\n var fromResult = fromOpt ? modelUtil.parseFinder(ecModel, fromOpt, finderOpt) : null;\n var toResult = modelUtil.parseFinder(ecModel, toOpt, finderOpt);\n var toSeries = toResult.seriesModel;\n\n if (toSeries == null) {\n errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition` is only supported on series.';\n }\n }\n\n if (fromResult && fromResult.seriesModel !== toSeries) {\n errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition.from` and `transition.to` must be specified to the same series.';\n }\n }\n\n if (errMsg != null) {\n throwError(errMsg);\n } // Just a temp solution: mount them on series.\n\n\n toSeries.__transientTransitionOpt = {\n from: fromOpt ? fromOpt.dimension : null,\n to: toOpt.dimension,\n dividingMethod: transOpt.dividingMethod\n };\n });\n };\n }();\n\n return ECharts;\n}(Eventful);\n\nvar echartsProto = ECharts.prototype;\nechartsProto.on = createRegisterEventWithLowercaseECharts('on');\nechartsProto.off = createRegisterEventWithLowercaseECharts('off');\n/**\n * @deprecated\n */\n// @ts-ignore\n\nechartsProto.one = function (eventName, cb, ctx) {\n var self = this;\n deprecateLog('ECharts#one is deprecated.');\n\n function wrapped() {\n var args2 = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args2[_i] = arguments[_i];\n }\n\n cb && cb.apply && cb.apply(this, args2); // @ts-ignore\n\n self.off(eventName, wrapped);\n }\n\n ; // @ts-ignore\n\n this.on.call(this, eventName, wrapped, ctx);\n}; // /**\n// * Encode visual infomation from data after data processing\n// *\n// * @param {module:echarts/model/Global} ecModel\n// * @param {object} layout\n// * @param {boolean} [layoutFilter] `true`: only layout,\n// * `false`: only not layout,\n// * `null`/`undefined`: all.\n// * @param {string} taskBaseTag\n// * @private\n// */\n// function startVisualEncoding(ecIns, ecModel, api, payload, layoutFilter) {\n// each(visualFuncs, function (visual, index) {\n// let isLayout = visual.isLayout;\n// if (layoutFilter == null\n// || (layoutFilter === false && !isLayout)\n// || (layoutFilter === true && isLayout)\n// ) {\n// visual.func(ecModel, api, payload);\n// }\n// });\n// }\n\n\nvar MOUSE_EVENT_NAMES = ['click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu'];\n\nfunction disposedWarning(id) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Instance ' + id + ' has been disposed');\n }\n}\n\nvar actions = {};\n/**\n * Map eventType to actionType\n */\n\nvar eventActionMap = {};\nvar dataProcessorFuncs = [];\nvar optionPreprocessorFuncs = [];\nvar postInitFuncs = [];\nvar postUpdateFuncs = [];\nvar visualFuncs = [];\nvar themeStorage = {};\nvar loadingEffects = {};\nvar instances = {};\nvar connectedGroups = {};\nvar idBase = +new Date() - 0;\nvar groupIdBase = +new Date() - 0;\nvar DOM_ATTRIBUTE_KEY = '_echarts_instance_';\n/**\n * @param opts.devicePixelRatio Use window.devicePixelRatio by default\n * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.\n * @param opts.width Use clientWidth of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.height Use clientHeight of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n */\n\nexport function init(dom, theme, opts) {\n if (process.env.NODE_ENV !== 'production') {\n if (!dom) {\n throw new Error('Initialize failed: invalid dom.');\n }\n }\n\n var existInstance = getInstanceByDom(dom);\n\n if (existInstance) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('There is a chart instance already initialized on the dom.');\n }\n\n return existInstance;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (zrUtil.isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts || opts.width == null) || !dom.clientHeight && (!opts || opts.height == null))) {\n console.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.');\n }\n }\n\n var chart = new ECharts(dom, theme, opts);\n chart.id = 'ec_' + idBase++;\n instances[chart.id] = chart;\n modelUtil.setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);\n enableConnect(chart);\n each(postInitFuncs, function (postInitFunc) {\n postInitFunc(chart);\n });\n return chart;\n}\n/**\n * @usage\n * (A)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * chart1.group = 'xxx';\n * chart2.group = 'xxx';\n * echarts.connect('xxx');\n * ```\n * (B)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * echarts.connect('xxx', [chart1, chart2]);\n * ```\n */\n\nexport function connect(groupId) {\n // Is array of charts\n if (zrUtil.isArray(groupId)) {\n var charts = groupId;\n groupId = null; // If any chart has group\n\n each(charts, function (chart) {\n if (chart.group != null) {\n groupId = chart.group;\n }\n });\n groupId = groupId || 'g_' + groupIdBase++;\n each(charts, function (chart) {\n chart.group = groupId;\n });\n }\n\n connectedGroups[groupId] = true;\n return groupId;\n}\n/**\n * @deprecated\n */\n\nexport function disConnect(groupId) {\n connectedGroups[groupId] = false;\n}\n/**\n * Alias and backword compat\n */\n\nexport var disconnect = disConnect;\n/**\n * Dispose a chart instance\n */\n\nexport function dispose(chart) {\n if (typeof chart === 'string') {\n chart = instances[chart];\n } else if (!(chart instanceof ECharts)) {\n // Try to treat as dom\n chart = getInstanceByDom(chart);\n }\n\n if (chart instanceof ECharts && !chart.isDisposed()) {\n chart.dispose();\n }\n}\nexport function getInstanceByDom(dom) {\n return instances[modelUtil.getAttribute(dom, DOM_ATTRIBUTE_KEY)];\n}\nexport function getInstanceById(key) {\n return instances[key];\n}\n/**\n * Register theme\n */\n\nexport function registerTheme(name, theme) {\n themeStorage[name] = theme;\n}\n/**\n * Register option preprocessor\n */\n\nexport function registerPreprocessor(preprocessorFunc) {\n if (indexOf(optionPreprocessorFuncs, preprocessorFunc) < 0) {\n optionPreprocessorFuncs.push(preprocessorFunc);\n }\n}\nexport function registerProcessor(priority, processor) {\n normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);\n}\n/**\n * Register postIniter\n * @param {Function} postInitFunc\n */\n\nexport function registerPostInit(postInitFunc) {\n if (indexOf(postInitFuncs, postInitFunc) < 0) {\n postInitFunc && postInitFuncs.push(postInitFunc);\n }\n}\n/**\n * Register postUpdater\n * @param {Function} postUpdateFunc\n */\n\nexport function registerPostUpdate(postUpdateFunc) {\n if (indexOf(postUpdateFuncs, postUpdateFunc) < 0) {\n postUpdateFunc && postUpdateFuncs.push(postUpdateFunc);\n }\n}\nexport function registerAction(actionInfo, eventName, action) {\n if (typeof eventName === 'function') {\n action = eventName;\n eventName = '';\n }\n\n var actionType = isObject(actionInfo) ? actionInfo.type : [actionInfo, actionInfo = {\n event: eventName\n }][0]; // Event name is all lowercase\n\n actionInfo.event = (actionInfo.event || actionType).toLowerCase();\n eventName = actionInfo.event;\n\n if (eventActionMap[eventName]) {\n // Already registered.\n return;\n } // Validate action type and event name.\n\n\n assert(ACTION_REG.test(actionType) && ACTION_REG.test(eventName));\n\n if (!actions[actionType]) {\n actions[actionType] = {\n action: action,\n actionInfo: actionInfo\n };\n }\n\n eventActionMap[eventName] = actionType;\n}\nexport function registerCoordinateSystem(type, coordSysCreator) {\n CoordinateSystemManager.register(type, coordSysCreator);\n}\n/**\n * Get dimensions of specified coordinate system.\n * @param {string} type\n * @return {Array.}\n */\n\nexport function getCoordinateSystemDimensions(type) {\n var coordSysCreator = CoordinateSystemManager.get(type);\n\n if (coordSysCreator) {\n return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice();\n }\n}\nexport { registerLocale } from './locale';\n\nfunction registerLayout(priority, layoutTask) {\n normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');\n}\n\nfunction registerVisual(priority, visualTask) {\n normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');\n}\n\nexport { registerLayout, registerVisual };\nvar registeredTasks = [];\n\nfunction normalizeRegister(targetList, priority, fn, defaultPriority, visualType) {\n if (isFunction(priority) || isObject(priority)) {\n fn = priority;\n priority = defaultPriority;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isNaN(priority) || priority == null) {\n throw new Error('Illegal priority');\n } // Check duplicate\n\n\n each(targetList, function (wrap) {\n assert(wrap.__raw !== fn);\n });\n } // Already registered\n\n\n if (indexOf(registeredTasks, fn) >= 0) {\n return;\n }\n\n registeredTasks.push(fn);\n var stageHandler = Scheduler.wrapStageHandler(fn, visualType);\n stageHandler.__prio = priority;\n stageHandler.__raw = fn;\n targetList.push(stageHandler);\n}\n\nexport function registerLoading(name, loadingFx) {\n loadingEffects[name] = loadingFx;\n}\n/**\n * ZRender need a canvas context to do measureText.\n * But in node environment canvas may be created by node-canvas.\n * So we need to specify how to create a canvas instead of using document.createElement('canvas')\n *\n * Be careful of using it in the browser.\n *\n * @example\n * let Canvas = require('canvas');\n * let echarts = require('echarts');\n * echarts.setCanvasCreator(function () {\n * // Small size is enough.\n * return new Canvas(32, 32);\n * });\n */\n\nexport function setCanvasCreator(creator) {\n zrUtil.$override('createCanvas', creator);\n}\n/**\n * The parameters and usage: see `geoSourceManager.registerMap`.\n * Compatible with previous `echarts.registerMap`.\n */\n\nexport function registerMap(mapName, geoJson, specialAreas) {\n geoSourceManager.registerMap(mapName, geoJson, specialAreas);\n}\nexport function getMap(mapName) {\n return geoSourceManager.getMapForUser(mapName);\n}\nexport var registerTransform = registerExternalTransform;\n/**\n * Globa dispatchAction to a specified chart instance.\n */\n// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters[1]) {\n// if (!payload || !payload.chartId) {\n// // Must have chartId to find chart\n// return;\n// }\n// const chart = instances[payload.chartId];\n// if (chart) {\n// chart.dispatchAction(payload, opt);\n// }\n// }\n// Buitlin global visual\n\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);\nregisterVisual(PRIORITY_VISUAL_DECAL, decal);\nregisterPreprocessor(backwardCompat);\nregisterProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);\nregisterLoading('default', loadingDefault); // Default actions\n\nregisterAction({\n type: HIGHLIGHT_ACTION_TYPE,\n event: HIGHLIGHT_ACTION_TYPE,\n update: HIGHLIGHT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: DOWNPLAY_ACTION_TYPE,\n event: DOWNPLAY_ACTION_TYPE,\n update: DOWNPLAY_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: SELECT_ACTION_TYPE,\n event: SELECT_ACTION_TYPE,\n update: SELECT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: UNSELECT_ACTION_TYPE,\n event: UNSELECT_ACTION_TYPE,\n update: UNSELECT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: TOGGLE_SELECT_ACTION_TYPE,\n event: TOGGLE_SELECT_ACTION_TYPE,\n update: TOGGLE_SELECT_ACTION_TYPE\n}, zrUtil.noop); // Default theme\n\nregisterTheme('light', lightTheme);\nregisterTheme('dark', darkTheme); // For backward compatibility, where the namespace `dataTool` will\n// be mounted on `echarts` is the extension `dataTool` is imported.\n\nexport var dataTool = {};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { registerPreprocessor, registerProcessor, registerPostInit, registerPostUpdate, registerAction, registerCoordinateSystem, registerLayout, registerVisual, registerTransform, registerLoading, registerMap, PRIORITY } from './core/echarts';\nimport ComponentView from './view/Component';\nimport ChartView from './view/Chart';\nimport ComponentModel from './model/Component';\nimport SeriesModel from './model/Series';\nimport { isFunction, indexOf, isArray, each } from 'zrender/lib/core/util';\nimport { registerPainter } from 'zrender/lib/zrender';\nvar extensions = [];\nvar extensionRegisters = {\n registerPreprocessor: registerPreprocessor,\n registerProcessor: registerProcessor,\n registerPostInit: registerPostInit,\n registerPostUpdate: registerPostUpdate,\n registerAction: registerAction,\n registerCoordinateSystem: registerCoordinateSystem,\n registerLayout: registerLayout,\n registerVisual: registerVisual,\n registerTransform: registerTransform,\n registerLoading: registerLoading,\n registerMap: registerMap,\n PRIORITY: PRIORITY,\n ComponentModel: ComponentModel,\n ComponentView: ComponentView,\n SeriesModel: SeriesModel,\n ChartView: ChartView,\n // TODO Use ComponentModel and SeriesModel instead of Constructor\n registerComponentModel: function (ComponentModelClass) {\n ComponentModel.registerClass(ComponentModelClass);\n },\n registerComponentView: function (ComponentViewClass) {\n ComponentView.registerClass(ComponentViewClass);\n },\n registerSeriesModel: function (SeriesModelClass) {\n SeriesModel.registerClass(SeriesModelClass);\n },\n registerChartView: function (ChartViewClass) {\n ChartView.registerClass(ChartViewClass);\n },\n registerSubTypeDefaulter: function (componentType, defaulter) {\n ComponentModel.registerSubTypeDefaulter(componentType, defaulter);\n },\n registerPainter: function (painterType, PainterCtor) {\n registerPainter(painterType, PainterCtor);\n }\n};\nexport function use(ext) {\n if (isArray(ext)) {\n // use([ChartLine, ChartBar]);\n each(ext, function (singleExt) {\n use(singleExt);\n });\n return;\n }\n\n if (indexOf(extensions, ext) >= 0) {\n return;\n }\n\n extensions.push(ext);\n\n if (isFunction(ext)) {\n ext = {\n install: ext\n };\n }\n\n ext.install(extensionRegisters);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nfunction dataIndexMapValueLength(valNumOrArrLengthMoreThan2) {\n return valNumOrArrLengthMoreThan2 == null ? 0 : valNumOrArrLengthMoreThan2.length || 1;\n}\n\nfunction defaultKeyGetter(item) {\n return item;\n}\n\nvar DataDiffer =\n/** @class */\nfunction () {\n /**\n * @param context Can be visited by this.context in callback.\n */\n function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context, // By default: 'oneToOne'.\n diffMode) {\n this._old = oldArr;\n this._new = newArr;\n this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;\n this._newKeyGetter = newKeyGetter || defaultKeyGetter; // Visible in callback via `this.context`;\n\n this.context = context;\n this._diffModeMultiple = diffMode === 'multiple';\n }\n /**\n * Callback function when add a data\n */\n\n\n DataDiffer.prototype.add = function (func) {\n this._add = func;\n return this;\n };\n /**\n * Callback function when update a data\n */\n\n\n DataDiffer.prototype.update = function (func) {\n this._update = func;\n return this;\n };\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n\n\n DataDiffer.prototype.updateManyToOne = function (func) {\n this._updateManyToOne = func;\n return this;\n };\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n\n\n DataDiffer.prototype.updateOneToMany = function (func) {\n this._updateOneToMany = func;\n return this;\n };\n /**\n * Callback function when remove a data\n */\n\n\n DataDiffer.prototype.remove = function (func) {\n this._remove = func;\n return this;\n };\n\n DataDiffer.prototype.execute = function () {\n this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']();\n };\n\n DataDiffer.prototype._executeOneToOne = function () {\n var oldArr = this._old;\n var newArr = this._new;\n var newDataIndexMap = {};\n var oldDataKeyArr = new Array(oldArr.length);\n var newDataKeyArr = new Array(newArr.length);\n\n this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter');\n\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (var i = 0; i < oldArr.length; i++) {\n var oldKey = oldDataKeyArr[i];\n var newIdxMapVal = newDataIndexMap[oldKey];\n var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal); // idx can never be empty array here. see 'set null' logic below.\n\n if (newIdxMapValLen > 1) {\n // Consider there is duplicate key (for example, use dataItem.name as key).\n // We should make sure every item in newArr and oldArr can be visited.\n var newIdx = newIdxMapVal.shift();\n\n if (newIdxMapVal.length === 1) {\n newDataIndexMap[oldKey] = newIdxMapVal[0];\n }\n\n this._update && this._update(newIdx, i);\n } else if (newIdxMapValLen === 1) {\n newDataIndexMap[oldKey] = null;\n this._update && this._update(newIdxMapVal, i);\n } else {\n this._remove && this._remove(i);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n };\n /**\n * For example, consider the case:\n * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],\n * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],\n * Where:\n * o0, o1, n0 has key 'a' (many to one)\n * o5, n4, n5, n6 has key 'b' (one to many)\n * o2, n1 has key 'c' (one to one)\n * n2, n3 has key 'd' (add)\n * o3, o4 has key 'e' (remove)\n * o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)\n * Then:\n * (The order of the following directives are not ensured.)\n * this._updateManyToOne(n0, [o0, o1]);\n * this._updateOneToMany([n4, n5, n6], o5);\n * this._update(n1, o2);\n * this._remove(o3);\n * this._remove(o4);\n * this._remove(o6);\n * this._remove(o7);\n * this._add(n2);\n * this._add(n3);\n * this._add(n7);\n * this._add(n8);\n */\n\n\n DataDiffer.prototype._executeMultiple = function () {\n var oldArr = this._old;\n var newArr = this._new;\n var oldDataIndexMap = {};\n var newDataIndexMap = {};\n var oldDataKeyArr = [];\n var newDataKeyArr = [];\n\n this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter');\n\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (var i = 0; i < oldDataKeyArr.length; i++) {\n var oldKey = oldDataKeyArr[i];\n var oldIdxMapVal = oldDataIndexMap[oldKey];\n var newIdxMapVal = newDataIndexMap[oldKey];\n var oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal);\n var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) {\n this._updateManyToOne && this._updateManyToOne(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) {\n this._updateOneToMany && this._updateOneToMany(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) {\n this._update && this._update(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen > 1) {\n for (var i_1 = 0; i_1 < oldIdxMapValLen; i_1++) {\n this._remove && this._remove(oldIdxMapVal[i_1]);\n }\n } else {\n this._remove && this._remove(oldIdxMapVal);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n };\n\n DataDiffer.prototype._performRestAdd = function (newDataKeyArr, newDataIndexMap) {\n for (var i = 0; i < newDataKeyArr.length; i++) {\n var newKey = newDataKeyArr[i];\n var newIdxMapVal = newDataIndexMap[newKey];\n var idxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (idxMapValLen > 1) {\n for (var j = 0; j < idxMapValLen; j++) {\n this._add && this._add(newIdxMapVal[j]);\n }\n } else if (idxMapValLen === 1) {\n this._add && this._add(newIdxMapVal);\n } // Support both `newDataKeyArr` are duplication removed or not removed.\n\n\n newDataIndexMap[newKey] = null;\n }\n };\n\n DataDiffer.prototype._initIndexMap = function (arr, // Can be null.\n map, // In 'byKey', the output `keyArr` is duplication removed.\n // In 'byIndex', the output `keyArr` is not duplication removed and\n // its indices are accurately corresponding to `arr`.\n keyArr, keyGetterName) {\n var cbModeMultiple = this._diffModeMultiple;\n\n for (var i = 0; i < arr.length; i++) {\n // Add prefix to avoid conflict with Object.prototype.\n var key = '_ec_' + this[keyGetterName](arr[i], i);\n\n if (!cbModeMultiple) {\n keyArr[i] = key;\n }\n\n if (!map) {\n continue;\n }\n\n var idxMapVal = map[key];\n var idxMapValLen = dataIndexMapValueLength(idxMapVal);\n\n if (idxMapValLen === 0) {\n // Simple optimize: in most cases, one index has one key,\n // do not need array.\n map[key] = i;\n\n if (cbModeMultiple) {\n keyArr.push(key);\n }\n } else if (idxMapValLen === 1) {\n map[key] = [idxMapVal, i];\n } else {\n idxMapVal.push(i);\n }\n }\n };\n\n return DataDiffer;\n}();\n\nexport default DataDiffer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, createHashMap, assert } from 'zrender/lib/core/util';\nimport { VISUAL_DIMENSIONS } from '../../util/types';\nexport function summarizeDimensions(data) {\n var summary = {};\n var encode = summary.encode = {};\n var notExtraCoordDimMap = createHashMap();\n var defaultedLabel = [];\n var defaultedTooltip = []; // See the comment of `List.js#userOutput`.\n\n var userOutput = summary.userOutput = {\n dimensionNames: data.dimensions.slice(),\n encode: {}\n };\n each(data.dimensions, function (dimName) {\n var dimItem = data.getDimensionInfo(dimName);\n var coordDim = dimItem.coordDim;\n\n if (coordDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(VISUAL_DIMENSIONS.get(coordDim) == null);\n }\n\n var coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n } // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n\n\n getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index;\n }\n\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n VISUAL_DIMENSIONS.each(function (v, otherDim) {\n var encodeArr = getOrCreateEncodeArr(encode, otherDim);\n var dimIndex = dimItem.otherDims[otherDim];\n\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n var dataDimsOnCoord = [];\n var encodeFirstDimNotExtra = {};\n notExtraCoordDimMap.each(function (v, coordDim) {\n var dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n var encodeTooltip = encode.tooltip;\n\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n } else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n return summary;\n}\n\nfunction getOrCreateEncodeArr(encode, dim) {\n if (!encode.hasOwnProperty(dim)) {\n encode[dim] = [];\n }\n\n return encode[dim];\n} // FIXME:TS should be type `AxisType`\n\n\nexport function getDimensionTypeByAxis(axisType) {\n return axisType === 'category' ? 'ordinal' : axisType === 'time' ? 'time' : 'float';\n}\n\nfunction mayLabelDimType(dimType) {\n // In most cases, ordinal and time do not suitable for label.\n // Ordinal info can be displayed on axis. Time is too long.\n return !(dimType === 'ordinal' || dimType === 'time');\n} // function findTheLastDimMayLabel(data) {\n// // Get last value dim\n// let dimensions = data.dimensions.slice();\n// let valueType;\n// let valueDim;\n// while (dimensions.length && (\n// valueDim = dimensions.pop(),\n// valueType = data.getDimensionInfo(valueDim).type,\n// valueType === 'ordinal' || valueType === 'time'\n// )) {} // jshint ignore:line\n// return valueDim;\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nvar DataDimensionInfo =\n/** @class */\nfunction () {\n /**\n * @param opt All of the fields will be shallow copied.\n */\n function DataDimensionInfo(opt) {\n /**\n * The format of `otherDims` is:\n * ```js\n * {\n * tooltip: number optional,\n * label: number optional,\n * itemName: number optional,\n * seriesName: number optional,\n * }\n * ```\n *\n * A `series.encode` can specified these fields:\n * ```js\n * encode: {\n * // \"3, 1, 5\" is the index of data dimension.\n * tooltip: [3, 1, 5],\n * label: [0, 3],\n * ...\n * }\n * ```\n * `otherDims` is the parse result of the `series.encode` above, like:\n * ```js\n * // Suppose the index of this data dimension is `3`.\n * this.otherDims = {\n * // `3` is at the index `0` of the `encode.tooltip`\n * tooltip: 0,\n * // `3` is at the index `1` of the `encode.tooltip`\n * label: 1\n * };\n * ```\n *\n * This prop should never be `null`/`undefined` after initialized.\n */\n this.otherDims = {};\n\n if (opt != null) {\n zrUtil.extend(this, opt);\n }\n }\n\n return DataDimensionInfo;\n}();\n\n;\nexport default DataDimensionInfo;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float64Array, Int32Array, Uint32Array, Uint16Array */\n\n/**\n * List for data storage\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from '../model/Model';\nimport DataDiffer from './DataDiffer';\nimport { DefaultDataProvider } from './helper/dataProvider';\nimport { summarizeDimensions } from './helper/dimensionHelper';\nimport DataDimensionInfo from './DataDimensionInfo';\nimport { SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL } from '../util/types';\nimport { isDataItemOption, convertOptionIdName } from '../util/model';\nimport { getECData } from '../util/innerStore';\nimport { parseDataValue } from './helper/dataValueHelper';\nimport { isSourceInstance } from './Source';\nvar mathFloor = Math.floor;\nvar isObject = zrUtil.isObject;\nvar map = zrUtil.map;\nvar UNDEFINED = 'undefined';\nvar INDEX_NOT_FOUND = -1; // Use prefix to avoid index to be the same as otherIdList[idx],\n// which will cause weird udpate animation.\n\nvar ID_PREFIX = 'e\\0\\0';\nvar dataCtors = {\n 'float': typeof Float64Array === UNDEFINED ? Array : Float64Array,\n 'int': typeof Int32Array === UNDEFINED ? Array : Int32Array,\n // Ordinal data type can be string or int\n 'ordinal': Array,\n 'number': Array,\n 'time': Array\n}; // Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is\n// different from the Ctor of typed array.\n\nvar CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array;\nvar CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array;\nvar CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array;\nvar TRANSFERABLE_PROPERTIES = ['hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_rawData', '_dimValueGetter', '_count', '_rawCount', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount'];\nvar CLONE_PROPERTIES = ['_extent', '_approximateExtent', '_rawExtent']; // -----------------------------\n// Internal method declarations:\n// -----------------------------\n\nvar defaultDimValueGetters;\nvar prepareInvertedIndex;\nvar getIndicesCtor;\nvar prepareStorage;\nvar getRawIndexWithoutIndices;\nvar getRawIndexWithIndices;\nvar getId;\nvar getIdNameFromStore;\nvar makeIdFromName;\nvar normalizeDimensions;\nvar validateDimensions;\nvar cloneListForMapAndSample;\nvar getInitialExtent;\nvar setItemDataAndSeriesIndex;\nvar transferProperties;\n\nvar List =\n/** @class */\nfunction () {\n /**\n * @param dimensions\n * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].\n * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius\n */\n function List(dimensions, hostModel) {\n this.type = 'list';\n this._count = 0;\n this._rawCount = 0;\n this._storage = {}; // We have an extra array store here. It's faster to be acessed than KV structured `_storage`.\n // We profile the code `storage[dim]` and it seems to be KeyedLoadIC_Megamorphic instead of fast property access.\n // Not sure why this happens. But using an extra array seems leads to faster `initData`\n // See https://github.com/apache/incubator-echarts/pull/13314 for more explanation.\n\n this._storageArr = [];\n this._nameList = [];\n this._idList = []; // Models of data option is stored sparse for optimizing memory cost\n // Never used yet (not used yet).\n // private _optionModels: Model[] = [];\n // Global visual properties after visual coding\n\n this._visual = {}; // Globel layout properties.\n\n this._layout = {}; // Item visual properties after visual coding\n\n this._itemVisuals = []; // Item layout properties after layout\n\n this._itemLayouts = []; // Graphic elemnents\n\n this._graphicEls = []; // Raw extent will not be cloned, but only transfered.\n // It will not be calculated util needed.\n\n this._rawExtent = {};\n this._extent = {}; // key: dim, value: extent\n\n this._approximateExtent = {};\n this._calculationInfo = {}; // Having detected that there is data item is non primitive type\n // (in type `OptionDataItemObject`).\n // Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n // At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n\n this.hasItemOption = true; // Methods that create a new list based on this list should be listed here.\n // Notice that those method should `RETURN` the new list.\n\n this.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map']; // Methods that change indices of this list should be listed here.\n\n this.CHANGABLE_METHODS = ['filterSelf', 'selectRange'];\n this.DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'];\n /**\n * Get raw data index.\n * Do not initialize.\n * Default `getRawIndex`. And it can be changed.\n */\n\n this.getRawIndex = getRawIndexWithoutIndices;\n dimensions = dimensions || ['x', 'y'];\n var dimensionInfos = {};\n var dimensionNames = [];\n var invertedIndicesMap = {};\n\n for (var i = 0; i < dimensions.length; i++) {\n // Use the original dimensions[i], where other flag props may exists.\n var dimInfoInput = dimensions[i];\n var dimensionInfo = zrUtil.isString(dimInfoInput) ? new DataDimensionInfo({\n name: dimInfoInput\n }) : !(dimInfoInput instanceof DataDimensionInfo) ? new DataDimensionInfo(dimInfoInput) : dimInfoInput;\n var dimensionName = dimensionInfo.name;\n dimensionInfo.type = dimensionInfo.type || 'float';\n\n if (!dimensionInfo.coordDim) {\n dimensionInfo.coordDim = dimensionName;\n dimensionInfo.coordDimIndex = 0;\n }\n\n var otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {};\n dimensionNames.push(dimensionName);\n dimensionInfos[dimensionName] = dimensionInfo;\n dimensionInfo.index = i;\n\n if (dimensionInfo.createInvertedIndices) {\n invertedIndicesMap[dimensionName] = [];\n }\n\n if (otherDims.itemName === 0) {\n this._nameDimIdx = i;\n this._nameOrdinalMeta = dimensionInfo.ordinalMeta;\n }\n\n if (otherDims.itemId === 0) {\n this._idDimIdx = i;\n this._idOrdinalMeta = dimensionInfo.ordinalMeta;\n }\n }\n\n this.dimensions = dimensionNames;\n this._dimensionInfos = dimensionInfos;\n this.hostModel = hostModel; // Cache summary info for fast visit. See \"dimensionHelper\".\n\n this._dimensionsSummary = summarizeDimensions(this);\n this._invertedIndicesMap = invertedIndicesMap;\n this.userOutput = this._dimensionsSummary.userOutput;\n }\n /**\n * The meanings of the input parameter `dim`:\n *\n * + If dim is a number (e.g., `1`), it means the index of the dimension.\n * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.\n * + If dim is a number-like string (e.g., `\"1\"`):\n * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name.\n * + If not, it will be converted to a number, which means the index of the dimension.\n * (why? because of the backward compatbility. We have been tolerating number-like string in\n * dimension setting, although now it seems that it is not a good idea.)\n * For example, `visualMap[i].dimension: \"1\"` is the same meaning as `visualMap[i].dimension: 1`,\n * if no dimension name is defined as `\"1\"`.\n * + If dim is a not-number-like string, it means the concrete dim name.\n * For example, it can be be default name `\"x\"`, `\"y\"`, `\"z\"`, `\"lng\"`, `\"lat\"`, `\"angle\"`, `\"radius\"`,\n * or customized in `dimensions` property of option like `\"age\"`.\n *\n * Get dimension name\n * @param dim See above.\n * @return Concrete dim name.\n */\n\n\n List.prototype.getDimension = function (dim) {\n if (typeof dim === 'number' // If being a number-like string but not being defined a dimension name.\n || !isNaN(dim) && !this._dimensionInfos.hasOwnProperty(dim)) {\n dim = this.dimensions[dim];\n }\n\n return dim;\n };\n /**\n * Get type and calculation info of particular dimension\n * @param dim\n * Dimension can be concrete names like x, y, z, lng, lat, angle, radius\n * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'\n */\n\n\n List.prototype.getDimensionInfo = function (dim) {\n // Do not clone, because there may be categories in dimInfo.\n return this._dimensionInfos[this.getDimension(dim)];\n };\n /**\n * concrete dimension name list on coord.\n */\n\n\n List.prototype.getDimensionsOnCoord = function () {\n return this._dimensionsSummary.dataDimsOnCoord.slice();\n };\n\n List.prototype.mapDimension = function (coordDim, idx) {\n var dimensionsSummary = this._dimensionsSummary;\n\n if (idx == null) {\n return dimensionsSummary.encodeFirstDimNotExtra[coordDim];\n }\n\n var dims = dimensionsSummary.encode[coordDim];\n return dims ? dims[idx] : null;\n };\n\n List.prototype.mapDimensionsAll = function (coordDim) {\n var dimensionsSummary = this._dimensionsSummary;\n var dims = dimensionsSummary.encode[coordDim];\n return (dims || []).slice();\n };\n /**\n * Initialize from data\n * @param data source or data or data provider.\n * @param nameList The name of a datum is used on data diff and\n * default label/tooltip.\n * A name can be specified in encode.itemName,\n * or dataItem.name (only for series option data),\n * or provided in nameList from outside.\n */\n\n\n List.prototype.initData = function (data, nameList, dimValueGetter) {\n var notProvider = isSourceInstance(data) || zrUtil.isArrayLike(data);\n var provider = notProvider ? new DefaultDataProvider(data, this.dimensions.length) : data;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(notProvider || zrUtil.isFunction(provider.getItem) && zrUtil.isFunction(provider.count), 'Inavlid data provider.');\n }\n\n this._rawData = provider;\n var sourceFormat = provider.getSource().sourceFormat; // Clear\n\n this._storage = {};\n this._indices = null;\n this._dontMakeIdFromName = this._idDimIdx != null || sourceFormat === SOURCE_FORMAT_TYPED_ARRAY // Cosndier performance.\n || !!provider.fillStorage;\n this._nameList = (nameList || []).slice();\n this._idList = [];\n this._nameRepeatCount = {};\n\n if (!dimValueGetter) {\n this.hasItemOption = false;\n }\n\n this.defaultDimValueGetter = defaultDimValueGetters[sourceFormat]; // Default dim value getter\n\n this._dimValueGetter = dimValueGetter = dimValueGetter || this.defaultDimValueGetter;\n this._dimValueGetterArrayRows = defaultDimValueGetters.arrayRows; // Reset raw extent.\n\n this._rawExtent = {};\n\n this._initDataFromProvider(0, provider.count()); // If data has no item option.\n\n\n if (provider.pure) {\n this.hasItemOption = false;\n }\n };\n\n List.prototype.getProvider = function () {\n return this._rawData;\n };\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n\n\n List.prototype.appendData = function (data) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(!this._indices, 'appendData can only be called on raw data.');\n }\n\n var rawData = this._rawData;\n var start = this.count();\n rawData.appendData(data);\n var end = rawData.count();\n\n if (!rawData.persistent) {\n end += start;\n }\n\n this._initDataFromProvider(start, end, true);\n };\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n * This method does not modify `rawData` (`dataProvider`), but only\n * add values to storage.\n *\n * The final count will be increased by `Math.max(values.length, names.length)`.\n *\n * @param values That is the SourceType: 'arrayRows', like\n * [\n * [12, 33, 44],\n * [NaN, 43, 1],\n * ['-', 'asdf', 0]\n * ]\n * Each item is exaclty cooresponding to a dimension.\n */\n\n\n List.prototype.appendValues = function (values, names) {\n var storage = this._storage;\n var dimensions = this.dimensions;\n var dimLen = dimensions.length;\n var rawExtent = this._rawExtent;\n var start = this.count();\n var end = start + Math.max(values.length, names ? names.length : 0);\n\n for (var i = 0; i < dimLen; i++) {\n var dim = dimensions[i];\n\n if (!rawExtent[dim]) {\n rawExtent[dim] = getInitialExtent();\n }\n\n prepareStorage(storage, this._dimensionInfos[dim], end, true);\n }\n\n var rawExtentArr = map(dimensions, function (dim) {\n return rawExtent[dim];\n });\n var storageArr = this._storageArr = map(dimensions, function (dim) {\n return storage[dim];\n });\n var emptyDataItem = [];\n\n for (var idx = start; idx < end; idx++) {\n var sourceIdx = idx - start; // Store the data by dimensions\n\n for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n var dim = dimensions[dimIdx];\n\n var val = this._dimValueGetterArrayRows(values[sourceIdx] || emptyDataItem, dim, sourceIdx, dimIdx);\n\n storageArr[dimIdx][idx] = val;\n var dimRawExtent = rawExtentArr[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n\n if (names) {\n this._nameList[idx] = names[sourceIdx];\n\n if (!this._dontMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n\n this._rawCount = this._count = end; // Reset data extent\n\n this._extent = {};\n prepareInvertedIndex(this);\n };\n\n List.prototype._initDataFromProvider = function (start, end, append) {\n if (start >= end) {\n return;\n }\n\n var rawData = this._rawData;\n var storage = this._storage;\n var dimensions = this.dimensions;\n var dimLen = dimensions.length;\n var dimensionInfoMap = this._dimensionInfos;\n var nameList = this._nameList;\n var idList = this._idList;\n var rawExtent = this._rawExtent;\n var sourceFormat = rawData.getSource().sourceFormat;\n var isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL;\n\n for (var i = 0; i < dimLen; i++) {\n var dim = dimensions[i];\n\n if (!rawExtent[dim]) {\n rawExtent[dim] = getInitialExtent();\n }\n\n prepareStorage(storage, dimensionInfoMap[dim], end, append);\n }\n\n var storageArr = this._storageArr = map(dimensions, function (dim) {\n return storage[dim];\n });\n var rawExtentArr = map(dimensions, function (dim) {\n return rawExtent[dim];\n });\n\n if (rawData.fillStorage) {\n rawData.fillStorage(start, end, storageArr, rawExtentArr);\n } else {\n var dataItem = [];\n\n for (var idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n dataItem = rawData.getItem(idx, dataItem); // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n // Store the data by dimensions\n\n for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n var dim = dimensions[dimIdx];\n var dimStorage = storageArr[dimIdx]; // PENDING NULL is empty or zero\n\n var val = this._dimValueGetter(dataItem, dim, idx, dimIdx);\n\n dimStorage[idx] = val;\n var dimRawExtent = rawExtentArr[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n } // If dataItem is {name: ...} or {id: ...}, it has highest priority.\n // This kind of ids and names are always stored `_nameList` and `_idList`.\n\n\n if (isFormatOriginal && !rawData.pure && dataItem) {\n var itemName = dataItem.name;\n\n if (nameList[idx] == null && itemName != null) {\n nameList[idx] = convertOptionIdName(itemName, null);\n }\n\n var itemId = dataItem.id;\n\n if (idList[idx] == null && itemId != null) {\n idList[idx] = convertOptionIdName(itemId, null);\n }\n }\n\n if (!this._dontMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n\n if (!rawData.persistent && rawData.clean) {\n // Clean unused data if data source is typed array.\n rawData.clean();\n }\n\n this._rawCount = this._count = end; // Reset data extent\n\n this._extent = {};\n prepareInvertedIndex(this);\n };\n\n List.prototype.count = function () {\n return this._count;\n };\n\n List.prototype.getIndices = function () {\n var newIndices;\n var indices = this._indices;\n\n if (indices) {\n var Ctor = indices.constructor;\n var thisCount = this._count; // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.\n\n if (Ctor === Array) {\n newIndices = new Ctor(thisCount);\n\n for (var i = 0; i < thisCount; i++) {\n newIndices[i] = indices[i];\n }\n } else {\n newIndices = new Ctor(indices.buffer, 0, thisCount);\n }\n } else {\n var Ctor = getIndicesCtor(this);\n newIndices = new Ctor(this.count());\n\n for (var i = 0; i < newIndices.length; i++) {\n newIndices[i] = i;\n }\n }\n\n return newIndices;\n }; // Get data by index of dimension.\n // Because in v8 access array by number variable is faster than access object by string variable\n // Not sure why but the optimization just works.\n\n\n List.prototype.getByDimIdx = function (dimIdx, idx) {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n\n var dimStore = this._storageArr[dimIdx];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n };\n /**\n * Get value. Return NaN if idx is out of range.\n * @param dim Dim must be concrete name.\n */\n\n\n List.prototype.get = function (dim, idx) {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n\n var dimStore = this._storage[dim];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n };\n /**\n * @param dim concrete dim\n */\n\n\n List.prototype.getByRawIndex = function (dim, rawIdx) {\n if (!(rawIdx >= 0 && rawIdx < this._rawCount)) {\n return NaN;\n }\n\n var dimStore = this._storage[dim];\n return dimStore ? dimStore[rawIdx] : NaN;\n };\n\n List.prototype.getValues = function (dimensions, idx) {\n var values = [];\n\n if (!zrUtil.isArray(dimensions)) {\n // stack = idx;\n idx = dimensions;\n dimensions = this.dimensions;\n }\n\n for (var i = 0, len = dimensions.length; i < len; i++) {\n values.push(this.get(dimensions[i], idx\n /*, stack */\n ));\n }\n\n return values;\n };\n /**\n * If value is NaN. Inlcuding '-'\n * Only check the coord dimensions.\n */\n\n\n List.prototype.hasValue = function (idx) {\n var dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord;\n\n for (var i = 0, len = dataDimsOnCoord.length; i < len; i++) {\n // Ordinal type originally can be string or number.\n // But when an ordinal type is used on coord, it can\n // not be string but only number. So we can also use isNaN.\n if (isNaN(this.get(dataDimsOnCoord[i], idx))) {\n return false;\n }\n }\n\n return true;\n };\n /**\n * Get extent of data in one dimension\n */\n\n\n List.prototype.getDataExtent = function (dim) {\n // Make sure use concrete dim as cache name.\n dim = this.getDimension(dim);\n var dimData = this._storage[dim];\n var initialExtent = getInitialExtent(); // stack = !!((stack || false) && this.getCalculationInfo(dim));\n\n if (!dimData) {\n return initialExtent;\n } // Make more strict checkings to ensure hitting cache.\n\n\n var currEnd = this.count(); // let cacheName = [dim, !!stack].join('_');\n // let cacheName = dim;\n // Consider the most cases when using data zoom, `getDataExtent`\n // happened before filtering. We cache raw extent, which is not\n // necessary to be cleared and recalculated when restore data.\n\n var useRaw = !this._indices; // && !stack;\n\n var dimExtent;\n\n if (useRaw) {\n return this._rawExtent[dim].slice();\n }\n\n dimExtent = this._extent[dim];\n\n if (dimExtent) {\n return dimExtent.slice();\n }\n\n dimExtent = initialExtent;\n var min = dimExtent[0];\n var max = dimExtent[1];\n\n for (var i = 0; i < currEnd; i++) {\n var rawIdx = this.getRawIndex(i);\n var value = dimData[rawIdx];\n value < min && (min = value);\n value > max && (max = value);\n }\n\n dimExtent = [min, max];\n this._extent[dim] = dimExtent;\n return dimExtent;\n };\n /**\n * PENDING: In fact currently this function is only used to short-circuit\n * the calling of `scale.unionExtentFromData` when data have been filtered by modules\n * like \"dataZoom\". `scale.unionExtentFromData` is used to calculate data extent for series on\n * an axis, but if a \"axis related data filter module\" is used, the extent of the axis have\n * been fixed and no need to calling `scale.unionExtentFromData` actually.\n * But if we add \"custom data filter\" in future, which is not \"axis related\", this method may\n * be still needed.\n *\n * Optimize for the scenario that data is filtered by a given extent.\n * Consider that if data amount is more than hundreds of thousand,\n * extent calculation will cost more than 10ms and the cache will\n * be erased because of the filtering.\n */\n\n\n List.prototype.getApproximateExtent = function (dim) {\n dim = this.getDimension(dim);\n return this._approximateExtent[dim] || this.getDataExtent(dim);\n };\n /**\n * Calculate extent on a filtered data might be time consuming.\n * Approximate extent is only used for: calculte extent of filtered data outside.\n */\n\n\n List.prototype.setApproximateExtent = function (extent, dim) {\n dim = this.getDimension(dim);\n this._approximateExtent[dim] = extent.slice();\n };\n\n List.prototype.getCalculationInfo = function (key) {\n return this._calculationInfo[key];\n };\n\n List.prototype.setCalculationInfo = function (key, value) {\n isObject(key) ? zrUtil.extend(this._calculationInfo, key) : this._calculationInfo[key] = value;\n };\n /**\n * Get sum of data in one dimension\n */\n\n\n List.prototype.getSum = function (dim) {\n var dimData = this._storage[dim];\n var sum = 0;\n\n if (dimData) {\n for (var i = 0, len = this.count(); i < len; i++) {\n var value = this.get(dim, i);\n\n if (!isNaN(value)) {\n sum += value;\n }\n }\n }\n\n return sum;\n };\n /**\n * Get median of data in one dimension\n */\n\n\n List.prototype.getMedian = function (dim) {\n var dimDataArray = []; // map all data of one dimension\n\n this.each(dim, function (val) {\n if (!isNaN(val)) {\n dimDataArray.push(val);\n }\n }); // TODO\n // Use quick select?\n\n var sortedDimDataArray = dimDataArray.sort(function (a, b) {\n return a - b;\n });\n var len = this.count(); // calculate median\n\n return len === 0 ? 0 : len % 2 === 1 ? sortedDimDataArray[(len - 1) / 2] : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2;\n }; // /**\n // * Retreive the index with given value\n // * @param {string} dim Concrete dimension.\n // * @param {number} value\n // * @return {number}\n // */\n // Currently incorrect: should return dataIndex but not rawIndex.\n // Do not fix it until this method is to be used somewhere.\n // FIXME Precision of float value\n // indexOf(dim, value) {\n // let storage = this._storage;\n // let dimData = storage[dim];\n // let chunkSize = this._chunkSize;\n // if (dimData) {\n // for (let i = 0, len = this.count(); i < len; i++) {\n // let chunkIndex = mathFloor(i / chunkSize);\n // let chunkOffset = i % chunkSize;\n // if (dimData[chunkIndex][chunkOffset] === value) {\n // return i;\n // }\n // }\n // }\n // return -1;\n // }\n\n /**\n * Only support the dimension which inverted index created.\n * Do not support other cases until required.\n * @param dim concrete dim\n * @param value ordinal index\n * @return rawIndex\n */\n\n\n List.prototype.rawIndexOf = function (dim, value) {\n var invertedIndices = dim && this._invertedIndicesMap[dim];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!invertedIndices) {\n throw new Error('Do not supported yet');\n }\n }\n\n var rawIndex = invertedIndices[value];\n\n if (rawIndex == null || isNaN(rawIndex)) {\n return INDEX_NOT_FOUND;\n }\n\n return rawIndex;\n };\n /**\n * Retreive the index with given name\n */\n\n\n List.prototype.indexOfName = function (name) {\n for (var i = 0, len = this.count(); i < len; i++) {\n if (this.getName(i) === name) {\n return i;\n }\n }\n\n return -1;\n };\n /**\n * Retreive the index with given raw data index\n */\n\n\n List.prototype.indexOfRawIndex = function (rawIndex) {\n if (rawIndex >= this._rawCount || rawIndex < 0) {\n return -1;\n }\n\n if (!this._indices) {\n return rawIndex;\n } // Indices are ascending\n\n\n var indices = this._indices; // If rawIndex === dataIndex\n\n var rawDataIndex = indices[rawIndex];\n\n if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {\n return rawIndex;\n }\n\n var left = 0;\n var right = this._count - 1;\n\n while (left <= right) {\n var mid = (left + right) / 2 | 0;\n\n if (indices[mid] < rawIndex) {\n left = mid + 1;\n } else if (indices[mid] > rawIndex) {\n right = mid - 1;\n } else {\n return mid;\n }\n }\n\n return -1;\n };\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n\n\n List.prototype.indicesOfNearest = function (dim, value, maxDistance) {\n var storage = this._storage;\n var dimData = storage[dim];\n var nearestIndices = [];\n\n if (!dimData) {\n return nearestIndices;\n }\n\n if (maxDistance == null) {\n maxDistance = Infinity;\n }\n\n var minDist = Infinity;\n var minDiff = -1;\n var nearestIndicesLen = 0; // Check the test case of `test/ut/spec/data/List.js`.\n\n for (var i = 0, len = this.count(); i < len; i++) {\n var dataIndex = this.getRawIndex(i);\n var diff = value - dimData[dataIndex];\n var dist = Math.abs(diff);\n\n if (dist <= maxDistance) {\n // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,\n // we'd better not push both of them to `nearestIndices`, otherwise it is easy to\n // get more than one item in `nearestIndices` (more specifically, in `tooltip`).\n // So we chose the one that `diff >= 0` in this csae.\n // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them\n // should be push to `nearestIndices`.\n if (dist < minDist || dist === minDist && diff >= 0 && minDiff < 0) {\n minDist = dist;\n minDiff = diff;\n nearestIndicesLen = 0;\n }\n\n if (diff === minDiff) {\n nearestIndices[nearestIndicesLen++] = i;\n }\n }\n }\n\n nearestIndices.length = nearestIndicesLen;\n return nearestIndices;\n };\n /**\n * Get raw data item\n */\n\n\n List.prototype.getRawDataItem = function (idx) {\n if (!this._rawData.persistent) {\n var val = [];\n\n for (var i = 0; i < this.dimensions.length; i++) {\n var dim = this.dimensions[i];\n val.push(this.get(dim, idx));\n }\n\n return val;\n } else {\n return this._rawData.getItem(this.getRawIndex(idx));\n }\n };\n /**\n * @return Never be null/undefined. `number` will be converted to string. Becuase:\n * In most cases, name is used in display, where returning a string is more convenient.\n * In other cases, name is used in query (see `indexOfName`), where we can keep the\n * rule that name `2` equals to name `'2'`.\n */\n\n\n List.prototype.getName = function (idx) {\n var rawIndex = this.getRawIndex(idx);\n var name = this._nameList[rawIndex];\n\n if (name == null && this._nameDimIdx != null) {\n name = getIdNameFromStore(this, this._nameDimIdx, this._nameOrdinalMeta, rawIndex);\n }\n\n if (name == null) {\n name = '';\n }\n\n return name;\n };\n /**\n * @return Never null/undefined. `number` will be converted to string. Becuase:\n * In all cases having encountered at present, id is used in making diff comparison, which\n * are usually based on hash map. We can keep the rule that the internal id are always string\n * (treat `2` is the same as `'2'`) to make the related logic simple.\n */\n\n\n List.prototype.getId = function (idx) {\n return getId(this, this.getRawIndex(idx));\n };\n\n List.prototype.each = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n var _this = this;\n\n if (!this._count) {\n return;\n }\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var dimSize = dimNames.length;\n var dimIndices = map(dimNames, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var storageArr = this._storageArr;\n\n for (var i = 0, len = this.count(); i < len; i++) {\n var rawIdx = this.getRawIndex(i); // Simple optimization\n\n switch (dimSize) {\n case 0:\n cb.call(fCtx, i);\n break;\n\n case 1:\n cb.call(fCtx, storageArr[dimIndices[0]][rawIdx], i);\n break;\n\n case 2:\n cb.call(fCtx, storageArr[dimIndices[0]][rawIdx], storageArr[dimIndices[1]][rawIdx], i);\n break;\n\n default:\n var k = 0;\n var value = [];\n\n for (; k < dimSize; k++) {\n value[k] = storageArr[dimIndices[k]][rawIdx];\n } // Index\n\n\n value[k] = i;\n cb.apply(fCtx, value);\n }\n }\n };\n\n List.prototype.filterSelf = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n var _this = this;\n\n if (!this._count) {\n return;\n }\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var count = this.count();\n var Ctor = getIndicesCtor(this);\n var newIndices = new Ctor(count);\n var value = [];\n var dimSize = dimNames.length;\n var offset = 0;\n var dimIndices = map(dimNames, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var dim0 = dimIndices[0];\n var storageArr = this._storageArr;\n\n for (var i = 0; i < count; i++) {\n var keep = void 0;\n var rawIdx = this.getRawIndex(i); // Simple optimization\n\n if (dimSize === 0) {\n keep = cb.call(fCtx, i);\n } else if (dimSize === 1) {\n var val = storageArr[dim0][rawIdx];\n keep = cb.call(fCtx, val, i);\n } else {\n var k = 0;\n\n for (; k < dimSize; k++) {\n value[k] = storageArr[dimIndices[k]][rawIdx];\n }\n\n value[k] = i;\n keep = cb.apply(fCtx, value);\n }\n\n if (keep) {\n newIndices[offset++] = rawIdx;\n }\n } // Set indices after filtered.\n\n\n if (offset < count) {\n this._indices = newIndices;\n }\n\n this._count = offset; // Reset data extent\n\n this._extent = {};\n this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return this;\n };\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n\n\n List.prototype.selectRange = function (range) {\n 'use strict';\n\n var _this = this;\n\n var len = this._count;\n\n if (!len) {\n return;\n }\n\n var dimensions = [];\n\n for (var dim in range) {\n if (range.hasOwnProperty(dim)) {\n dimensions.push(dim);\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimensions);\n }\n\n var dimSize = dimensions.length;\n\n if (!dimSize) {\n return;\n }\n\n var originalCount = this.count();\n var Ctor = getIndicesCtor(this);\n var newIndices = new Ctor(originalCount);\n var offset = 0;\n var dim0 = dimensions[0];\n var dimIndices = map(dimensions, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var min = range[dim0][0];\n var max = range[dim0][1];\n var storageArr = this._storageArr;\n var quickFinished = false;\n\n if (!this._indices) {\n // Extreme optimization for common case. About 2x faster in chrome.\n var idx = 0;\n\n if (dimSize === 1) {\n var dimStorage = storageArr[dimIndices[0]];\n\n for (var i = 0; i < len; i++) {\n var val = dimStorage[i]; // NaN will not be filtered. Consider the case, in line chart, empty\n // value indicates the line should be broken. But for the case like\n // scatter plot, a data item with empty value will not be rendered,\n // but the axis extent may be effected if some other dim of the data\n // item has value. Fortunately it is not a significant negative effect.\n\n if (val >= min && val <= max || isNaN(val)) {\n newIndices[offset++] = idx;\n }\n\n idx++;\n }\n\n quickFinished = true;\n } else if (dimSize === 2) {\n var dimStorage = storageArr[dimIndices[0]];\n var dimStorage2 = storageArr[dimIndices[1]];\n var min2 = range[dimensions[1]][0];\n var max2 = range[dimensions[1]][1];\n\n for (var i = 0; i < len; i++) {\n var val = dimStorage[i];\n var val2 = dimStorage2[i]; // Do not filter NaN, see comment above.\n\n if ((val >= min && val <= max || isNaN(val)) && (val2 >= min2 && val2 <= max2 || isNaN(val2))) {\n newIndices[offset++] = idx;\n }\n\n idx++;\n }\n\n quickFinished = true;\n }\n }\n\n if (!quickFinished) {\n if (dimSize === 1) {\n for (var i = 0; i < originalCount; i++) {\n var rawIndex = this.getRawIndex(i);\n var val = storageArr[dimIndices[0]][rawIndex]; // Do not filter NaN, see comment above.\n\n if (val >= min && val <= max || isNaN(val)) {\n newIndices[offset++] = rawIndex;\n }\n }\n } else {\n for (var i = 0; i < originalCount; i++) {\n var keep = true;\n var rawIndex = this.getRawIndex(i);\n\n for (var k = 0; k < dimSize; k++) {\n var dimk = dimensions[k];\n var val = storageArr[dimIndices[k]][rawIndex]; // Do not filter NaN, see comment above.\n\n if (val < range[dimk][0] || val > range[dimk][1]) {\n keep = false;\n }\n }\n\n if (keep) {\n newIndices[offset++] = this.getRawIndex(i);\n }\n }\n }\n } // Set indices after filtered.\n\n\n if (offset < originalCount) {\n this._indices = newIndices;\n }\n\n this._count = offset; // Reset data extent\n\n this._extent = {};\n this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return this;\n };\n /* eslint-enable */\n\n\n List.prototype.mapArray = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n ctx = ctx || ctxCompat || this;\n var result = [];\n this.each(dims, function () {\n result.push(cb && cb.apply(this, arguments));\n }, ctx);\n return result;\n };\n\n List.prototype.map = function (dims, cb, ctx, ctxCompat) {\n 'use strict'; // ctxCompat just for compat echarts3\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var list = cloneListForMapAndSample(this, dimNames);\n var storage = list._storage; // Following properties are all immutable.\n // So we can reference to the same value\n\n list._indices = this._indices;\n list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n var tmpRetValue = [];\n var dimSize = dimNames.length;\n var dataCount = this.count();\n var values = [];\n var rawExtent = list._rawExtent;\n\n for (var dataIndex = 0; dataIndex < dataCount; dataIndex++) {\n for (var dimIndex = 0; dimIndex < dimSize; dimIndex++) {\n values[dimIndex] = this.get(dimNames[dimIndex], dataIndex);\n }\n\n values[dimSize] = dataIndex;\n var retValue = cb && cb.apply(fCtx, values);\n\n if (retValue != null) {\n // a number or string (in oridinal dimension)?\n if (typeof retValue !== 'object') {\n tmpRetValue[0] = retValue;\n retValue = tmpRetValue;\n }\n\n var rawIndex = this.getRawIndex(dataIndex);\n\n for (var i = 0; i < retValue.length; i++) {\n var dim = dimNames[i];\n var val = retValue[i];\n var rawExtentOnDim = rawExtent[dim];\n var dimStore = storage[dim];\n\n if (dimStore) {\n dimStore[rawIndex] = val;\n }\n\n if (val < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = val;\n }\n\n if (val > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = val;\n }\n }\n }\n }\n\n return list;\n };\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n\n\n List.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) {\n var list = cloneListForMapAndSample(this, [dimension]);\n var targetStorage = list._storage;\n var frameValues = [];\n var frameSize = mathFloor(1 / rate);\n var dimStore = targetStorage[dimension];\n var len = this.count();\n var rawExtentOnDim = list._rawExtent[dimension];\n var newIndices = new (getIndicesCtor(this))(len);\n var offset = 0;\n\n for (var i = 0; i < len; i += frameSize) {\n // Last frame\n if (frameSize > len - i) {\n frameSize = len - i;\n frameValues.length = frameSize;\n }\n\n for (var k = 0; k < frameSize; k++) {\n var dataIdx = this.getRawIndex(i + k);\n frameValues[k] = dimStore[dataIdx];\n }\n\n var value = sampleValue(frameValues);\n var sampleFrameIdx = this.getRawIndex(Math.min(i + sampleIndex(frameValues, value) || 0, len - 1)); // Only write value on the filtered data\n\n dimStore[sampleFrameIdx] = value;\n\n if (value < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = value;\n }\n\n if (value > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = value;\n }\n\n newIndices[offset++] = sampleFrameIdx;\n }\n\n list._count = offset;\n list._indices = newIndices;\n list.getRawIndex = getRawIndexWithIndices;\n return list;\n };\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n\n\n List.prototype.lttbDownSample = function (valueDimension, rate) {\n var list = cloneListForMapAndSample(this, []);\n var targetStorage = list._storage;\n var dimStore = targetStorage[valueDimension];\n var len = this.count();\n var newIndices = new (getIndicesCtor(this))(len);\n var sampledIndex = 0;\n var frameSize = mathFloor(1 / rate);\n var currentRawIndex = this.getRawIndex(0);\n var maxArea;\n var area;\n var nextRawIndex; // First frame use the first data.\n\n newIndices[sampledIndex++] = currentRawIndex;\n\n for (var i = 1; i < len - 1; i += frameSize) {\n var nextFrameStart = Math.min(i + frameSize, len - 1);\n var nextFrameEnd = Math.min(i + frameSize * 2, len);\n var avgX = (nextFrameEnd + nextFrameStart) / 2;\n var avgY = 0;\n\n for (var idx = nextFrameStart; idx < nextFrameEnd; idx++) {\n var rawIndex = this.getRawIndex(idx);\n var y = dimStore[rawIndex];\n\n if (isNaN(y)) {\n continue;\n }\n\n avgY += y;\n }\n\n avgY /= nextFrameEnd - nextFrameStart;\n var frameStart = i;\n var frameEnd = Math.min(i + frameSize, len);\n var pointAX = i - 1;\n var pointAY = dimStore[currentRawIndex];\n maxArea = -1;\n nextRawIndex = frameStart; // Find a point from current frame that construct a triangel with largest area with previous selected point\n // And the average of next frame.\n\n for (var idx = frameStart; idx < frameEnd; idx++) {\n var rawIndex = this.getRawIndex(idx);\n var y = dimStore[rawIndex];\n\n if (isNaN(y)) {\n continue;\n } // Calculate triangle area over three buckets\n\n\n area = Math.abs((pointAX - avgX) * (y - pointAY) - (pointAX - idx) * (avgY - pointAY));\n\n if (area > maxArea) {\n maxArea = area;\n nextRawIndex = rawIndex; // Next a is this b\n }\n }\n\n newIndices[sampledIndex++] = nextRawIndex;\n currentRawIndex = nextRawIndex; // This a is the next a (chosen b)\n } // First frame use the last data.\n\n\n newIndices[sampledIndex++] = this.getRawIndex(len - 1);\n list._count = sampledIndex;\n list._indices = newIndices;\n list.getRawIndex = getRawIndexWithIndices;\n return list;\n };\n /**\n * Get model of one data item.\n */\n // TODO: Type of data item\n\n\n List.prototype.getItemModel = function (idx) {\n var hostModel = this.hostModel;\n var dataItem = this.getRawDataItem(idx);\n return new Model(dataItem, hostModel, hostModel && hostModel.ecModel);\n };\n /**\n * Create a data differ\n */\n\n\n List.prototype.diff = function (otherList) {\n var thisList = this;\n return new DataDiffer(otherList ? otherList.getIndices() : [], this.getIndices(), function (idx) {\n return getId(otherList, idx);\n }, function (idx) {\n return getId(thisList, idx);\n });\n };\n /**\n * Get visual property.\n */\n\n\n List.prototype.getVisual = function (key) {\n var visual = this._visual;\n return visual && visual[key];\n };\n\n List.prototype.setVisual = function (kvObj, val) {\n this._visual = this._visual || {};\n\n if (isObject(kvObj)) {\n zrUtil.extend(this._visual, kvObj);\n } else {\n this._visual[kvObj] = val;\n }\n };\n /**\n * Get visual property of single data item\n */\n // eslint-disable-next-line\n\n\n List.prototype.getItemVisual = function (idx, key) {\n var itemVisual = this._itemVisuals[idx];\n var val = itemVisual && itemVisual[key];\n\n if (val == null) {\n // Use global visual property\n return this.getVisual(key);\n }\n\n return val;\n };\n /**\n * If exists visual property of single data item\n */\n\n\n List.prototype.hasItemVisual = function () {\n return this._itemVisuals.length > 0;\n };\n /**\n * Make sure itemVisual property is unique\n */\n // TODO: use key to save visual to reduce memory.\n\n\n List.prototype.ensureUniqueItemVisual = function (idx, key) {\n var itemVisuals = this._itemVisuals;\n var itemVisual = itemVisuals[idx];\n\n if (!itemVisual) {\n itemVisual = itemVisuals[idx] = {};\n }\n\n var val = itemVisual[key];\n\n if (val == null) {\n val = this.getVisual(key); // TODO Performance?\n\n if (zrUtil.isArray(val)) {\n val = val.slice();\n } else if (isObject(val)) {\n val = zrUtil.extend({}, val);\n }\n\n itemVisual[key] = val;\n }\n\n return val;\n }; // eslint-disable-next-line\n\n\n List.prototype.setItemVisual = function (idx, key, value) {\n var itemVisual = this._itemVisuals[idx] || {};\n this._itemVisuals[idx] = itemVisual;\n\n if (isObject(key)) {\n zrUtil.extend(itemVisual, key);\n } else {\n itemVisual[key] = value;\n }\n };\n /**\n * Clear itemVisuals and list visual.\n */\n\n\n List.prototype.clearAllVisual = function () {\n this._visual = {};\n this._itemVisuals = [];\n };\n\n List.prototype.setLayout = function (key, val) {\n if (isObject(key)) {\n for (var name_1 in key) {\n if (key.hasOwnProperty(name_1)) {\n this.setLayout(name_1, key[name_1]);\n }\n }\n\n return;\n }\n\n this._layout[key] = val;\n };\n /**\n * Get layout property.\n */\n\n\n List.prototype.getLayout = function (key) {\n return this._layout[key];\n };\n /**\n * Get layout of single data item\n */\n\n\n List.prototype.getItemLayout = function (idx) {\n return this._itemLayouts[idx];\n };\n /**\n * Set layout of single data item\n */\n\n\n List.prototype.setItemLayout = function (idx, layout, merge) {\n this._itemLayouts[idx] = merge ? zrUtil.extend(this._itemLayouts[idx] || {}, layout) : layout;\n };\n /**\n * Clear all layout of single data item\n */\n\n\n List.prototype.clearItemLayouts = function () {\n this._itemLayouts.length = 0;\n };\n /**\n * Set graphic element relative to data. It can be set as null\n */\n\n\n List.prototype.setItemGraphicEl = function (idx, el) {\n var hostModel = this.hostModel;\n\n if (el) {\n var ecData = getECData(el); // Add data index and series index for indexing the data by element\n // Useful in tooltip\n\n ecData.dataIndex = idx;\n ecData.dataType = this.dataType;\n ecData.seriesIndex = hostModel && hostModel.seriesIndex; // TODO: not store dataIndex on children.\n\n if (el.type === 'group') {\n el.traverse(setItemDataAndSeriesIndex, el);\n }\n }\n\n this._graphicEls[idx] = el;\n };\n\n List.prototype.getItemGraphicEl = function (idx) {\n return this._graphicEls[idx];\n };\n\n List.prototype.eachItemGraphicEl = function (cb, context) {\n zrUtil.each(this._graphicEls, function (el, idx) {\n if (el) {\n cb && cb.call(context, el, idx);\n }\n });\n };\n /**\n * Shallow clone a new list except visual and layout properties, and graph elements.\n * New list only change the indices.\n */\n\n\n List.prototype.cloneShallow = function (list) {\n if (!list) {\n var dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this);\n list = new List(dimensionInfoList, this.hostModel);\n } // FIXME\n\n\n list._storage = this._storage;\n list._storageArr = this._storageArr;\n transferProperties(list, this); // Clone will not change the data extent and indices\n\n if (this._indices) {\n var Ctor = this._indices.constructor;\n\n if (Ctor === Array) {\n var thisCount = this._indices.length;\n list._indices = new Ctor(thisCount);\n\n for (var i = 0; i < thisCount; i++) {\n list._indices[i] = this._indices[i];\n }\n } else {\n list._indices = new Ctor(this._indices);\n }\n } else {\n list._indices = null;\n }\n\n list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return list;\n };\n /**\n * Wrap some method to add more feature\n */\n\n\n List.prototype.wrapMethod = function (methodName, injectFunction) {\n var originalMethod = this[methodName];\n\n if (typeof originalMethod !== 'function') {\n return;\n }\n\n this.__wrappedMethods = this.__wrappedMethods || [];\n\n this.__wrappedMethods.push(methodName);\n\n this[methodName] = function () {\n var res = originalMethod.apply(this, arguments);\n return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments)));\n };\n }; // ----------------------------------------------------------\n // A work around for internal method visiting private member.\n // ----------------------------------------------------------\n\n\n List.internalField = function () {\n defaultDimValueGetters = {\n arrayRows: getDimValueSimply,\n objectRows: function (dataItem, dimName, dataIndex, dimIndex) {\n return parseDataValue(dataItem[dimName], this._dimensionInfos[dimName]);\n },\n keyedColumns: getDimValueSimply,\n original: function (dataItem, dimName, dataIndex, dimIndex) {\n // Performance sensitive, do not use modelUtil.getDataItemValue.\n // If dataItem is an plain object with no value field, the let `value`\n // will be assigned with the object, but it will be tread correctly\n // in the `convertValue`.\n var value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); // If any dataItem is like { value: 10 }\n\n if (!this._rawData.pure && isDataItemOption(dataItem)) {\n this.hasItemOption = true;\n }\n\n return parseDataValue(value instanceof Array ? value[dimIndex] // If value is a single number or something else not array.\n : value, this._dimensionInfos[dimName]);\n },\n typedArray: function (dataItem, dimName, dataIndex, dimIndex) {\n return dataItem[dimIndex];\n }\n };\n\n function getDimValueSimply(dataItem, dimName, dataIndex, dimIndex) {\n return parseDataValue(dataItem[dimIndex], this._dimensionInfos[dimName]);\n }\n\n prepareInvertedIndex = function (list) {\n var invertedIndicesMap = list._invertedIndicesMap;\n zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) {\n var dimInfo = list._dimensionInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices.\n\n var ordinalMeta = dimInfo.ordinalMeta;\n\n if (ordinalMeta) {\n invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array(ordinalMeta.categories.length); // The default value of TypedArray is 0. To avoid miss\n // mapping to 0, we should set it as INDEX_NOT_FOUND.\n\n for (var i = 0; i < invertedIndices.length; i++) {\n invertedIndices[i] = INDEX_NOT_FOUND;\n }\n\n for (var i = 0; i < list._count; i++) {\n // Only support the case that all values are distinct.\n invertedIndices[list.get(dim, i)] = i;\n }\n }\n });\n };\n\n getIdNameFromStore = function (list, dimIdx, ordinalMeta, rawIndex) {\n var val;\n var chunk = list._storageArr[dimIdx];\n\n if (chunk) {\n val = chunk[rawIndex];\n\n if (ordinalMeta && ordinalMeta.categories.length) {\n val = ordinalMeta.categories[val];\n }\n }\n\n return convertOptionIdName(val, null);\n };\n\n getIndicesCtor = function (list) {\n // The possible max value in this._indicies is always this._rawCount despite of filtering.\n return list._rawCount > 65535 ? CtorUint32Array : CtorUint16Array;\n };\n\n prepareStorage = function (storage, dimInfo, end, append) {\n var DataCtor = dataCtors[dimInfo.type];\n var dim = dimInfo.name;\n\n if (append) {\n var oldStore = storage[dim];\n var oldLen = oldStore && oldStore.length;\n\n if (!(oldLen === end)) {\n var newStore = new DataCtor(end); // The cost of the copy is probably inconsiderable\n // within the initial chunkSize.\n\n for (var j = 0; j < oldLen; j++) {\n newStore[j] = oldStore[j];\n }\n\n storage[dim] = newStore;\n }\n } else {\n storage[dim] = new DataCtor(end);\n }\n };\n\n getRawIndexWithoutIndices = function (idx) {\n return idx;\n };\n\n getRawIndexWithIndices = function (idx) {\n if (idx < this._count && idx >= 0) {\n return this._indices[idx];\n }\n\n return -1;\n };\n /**\n * @see the comment of `List['getId']`.\n */\n\n\n getId = function (list, rawIndex) {\n var id = list._idList[rawIndex];\n\n if (id == null && list._idDimIdx != null) {\n id = getIdNameFromStore(list, list._idDimIdx, list._idOrdinalMeta, rawIndex);\n }\n\n if (id == null) {\n id = ID_PREFIX + rawIndex;\n }\n\n return id;\n };\n\n normalizeDimensions = function (dimensions) {\n if (!zrUtil.isArray(dimensions)) {\n dimensions = dimensions != null ? [dimensions] : [];\n }\n\n return dimensions;\n };\n\n validateDimensions = function (list, dims) {\n for (var i = 0; i < dims.length; i++) {\n // stroage may be empty when no data, so use\n // dimensionInfos to check.\n if (!list._dimensionInfos[dims[i]]) {\n console.error('Unkown dimension ' + dims[i]);\n }\n }\n }; // Data in excludeDimensions is copied, otherwise transfered.\n\n\n cloneListForMapAndSample = function (original, excludeDimensions) {\n var allDimensions = original.dimensions;\n var list = new List(map(allDimensions, original.getDimensionInfo, original), original.hostModel); // FIXME If needs stackedOn, value may already been stacked\n\n transferProperties(list, original);\n var storage = list._storage = {};\n var originalStorage = original._storage;\n var storageArr = list._storageArr = []; // Init storage\n\n for (var i = 0; i < allDimensions.length; i++) {\n var dim = allDimensions[i];\n\n if (originalStorage[dim]) {\n // Notice that we do not reset invertedIndicesMap here, becuase\n // there is no scenario of mapping or sampling ordinal dimension.\n if (zrUtil.indexOf(excludeDimensions, dim) >= 0) {\n storage[dim] = cloneChunk(originalStorage[dim]);\n list._rawExtent[dim] = getInitialExtent();\n list._extent[dim] = null;\n } else {\n // Direct reference for other dimensions\n storage[dim] = originalStorage[dim];\n }\n\n storageArr.push(storage[dim]);\n }\n }\n\n return list;\n };\n\n function cloneChunk(originalChunk) {\n var Ctor = originalChunk.constructor; // Only shallow clone is enough when Array.\n\n return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk);\n }\n\n getInitialExtent = function () {\n return [Infinity, -Infinity];\n };\n\n setItemDataAndSeriesIndex = function (child) {\n var childECData = getECData(child);\n var thisECData = getECData(this);\n childECData.seriesIndex = thisECData.seriesIndex;\n childECData.dataIndex = thisECData.dataIndex;\n childECData.dataType = thisECData.dataType;\n };\n\n transferProperties = function (target, source) {\n zrUtil.each(TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) {\n if (source.hasOwnProperty(propName)) {\n target[propName] = source[propName];\n }\n });\n target.__wrappedMethods = source.__wrappedMethods;\n zrUtil.each(CLONE_PROPERTIES, function (propName) {\n target[propName] = zrUtil.clone(source[propName]);\n });\n target._calculationInfo = zrUtil.extend({}, source._calculationInfo);\n };\n\n makeIdFromName = function (list, idx) {\n var nameList = list._nameList;\n var idList = list._idList;\n var nameDimIdx = list._nameDimIdx;\n var idDimIdx = list._idDimIdx;\n var name = nameList[idx];\n var id = idList[idx];\n\n if (name == null && nameDimIdx != null) {\n nameList[idx] = name = getIdNameFromStore(list, nameDimIdx, list._nameOrdinalMeta, idx);\n }\n\n if (id == null && idDimIdx != null) {\n idList[idx] = id = getIdNameFromStore(list, idDimIdx, list._idOrdinalMeta, idx);\n }\n\n if (id == null && name != null) {\n var nameRepeatCount = list._nameRepeatCount;\n var nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1;\n id = name;\n\n if (nmCnt > 1) {\n id += '__ec__' + nmCnt;\n }\n\n idList[idx] = id;\n }\n };\n }();\n\n return List;\n}();\n\nexport default List;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @deprecated\n * Use `echarts/data/helper/createDimensions` instead.\n */\nimport { createHashMap, each, isString, defaults, extend, isObject, clone } from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport { guessOrdinal, BE_ORDINAL } from './sourceHelper';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../Source';\nimport { VISUAL_DIMENSIONS } from '../../util/types';\nimport DataDimensionInfo from '../DataDimensionInfo';\n/**\n * @see {module:echarts/test/ut/spec/data/completeDimensions}\n *\n * This method builds the relationship between:\n * + \"what the coord sys or series requires (see `sysDims`)\",\n * + \"what the user defines (in `encode` and `dimensions`, see `opt.dimsDef` and `opt.encodeDef`)\"\n * + \"what the data source provids (see `source`)\".\n *\n * Some guess strategy will be adapted if user does not define something.\n * If no 'value' dimension specified, the first no-named dimension will be\n * named as 'value'.\n *\n * @param {Array.} sysDims Necessary dimensions, like ['x', 'y'], which\n * provides not only dim template, but also default order.\n * properties: 'name', 'type', 'displayName'.\n * `name` of each item provides default coord name.\n * [{dimsDef: [string|Object, ...]}, ...] dimsDef of sysDim item provides default dim name, and\n * provide dims count that the sysDim required.\n * [{ordinalMeta}] can be specified.\n * @param {module:echarts/data/Source|Array|Object} source or data (for compatibal with pervious)\n * @param {Object} [opt]\n * @param {Array.} [opt.dimsDef] option.series.dimensions User defined dimensions\n * For example: ['asdf', {name, type}, ...].\n * @param {Object|HashMap} [opt.encodeDef] option.series.encode {x: 2, y: [3, 1], tooltip: [1, 2], label: 3}\n * @param {Function} [opt.encodeDefaulter] Called if no `opt.encodeDef` exists.\n * If not specified, auto find the next available data dim.\n * param source {module:data/Source}\n * param dimCount {number}\n * return {Object} encode Never be `null/undefined`.\n * @param {string} [opt.generateCoord] Generate coord dim with the given name.\n * If not specified, extra dim names will be:\n * 'value', 'value0', 'value1', ...\n * @param {number} [opt.generateCoordCount] By default, the generated dim name is `generateCoord`.\n * If `generateCoordCount` specified, the generated dim names will be:\n * `generateCoord` + 0, `generateCoord` + 1, ...\n * can be Infinity, indicate that use all of the remain columns.\n * @param {number} [opt.dimCount] If not specified, guess by the first data item.\n * @return {Array.}\n */\n\nfunction completeDimensions(sysDims, source, opt) {\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source);\n }\n\n opt = opt || {};\n sysDims = (sysDims || []).slice();\n var dimsDef = (opt.dimsDef || []).slice();\n var dataDimNameMap = createHashMap();\n var coordDimNameMap = createHashMap(); // let valueCandidate;\n\n var result = [];\n var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimCount); // Apply user defined dims (`name` and `type`) and init result.\n\n for (var i = 0; i < dimCount; i++) {\n var dimDefItemRaw = dimsDef[i];\n var dimDefItem = dimsDef[i] = extend({}, isObject(dimDefItemRaw) ? dimDefItemRaw : {\n name: dimDefItemRaw\n });\n var userDimName = dimDefItem.name;\n var resultItem = result[i] = new DataDimensionInfo(); // Name will be applied later for avoiding duplication.\n\n if (userDimName != null && dataDimNameMap.get(userDimName) == null) {\n // Only if `series.dimensions` is defined in option\n // displayName, will be set, and dimension will be diplayed vertically in\n // tooltip by default.\n resultItem.name = resultItem.displayName = userDimName;\n dataDimNameMap.set(userDimName, i);\n }\n\n dimDefItem.type != null && (resultItem.type = dimDefItem.type);\n dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName);\n }\n\n var encodeDef = opt.encodeDef;\n\n if (!encodeDef && opt.encodeDefaulter) {\n encodeDef = opt.encodeDefaulter(source, dimCount);\n }\n\n var encodeDefMap = createHashMap(encodeDef); // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.\n\n encodeDefMap.each(function (dataDimsRaw, coordDim) {\n var dataDims = normalizeToArray(dataDimsRaw).slice(); // Note: It is allowed that `dataDims.length` is `0`, e.g., options is\n // `{encode: {x: -1, y: 1}}`. Should not filter anything in\n // this case.\n\n if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {\n encodeDefMap.set(coordDim, false);\n return;\n }\n\n var validDataDims = encodeDefMap.set(coordDim, []);\n each(dataDims, function (resultDimIdxOrName, idx) {\n // The input resultDimIdx can be dim name or index.\n var resultDimIdx = isString(resultDimIdxOrName) ? dataDimNameMap.get(resultDimIdxOrName) : resultDimIdxOrName;\n\n if (resultDimIdx != null && resultDimIdx < dimCount) {\n validDataDims[idx] = resultDimIdx;\n applyDim(result[resultDimIdx], coordDim, idx);\n }\n });\n }); // Apply templetes and default order from `sysDims`.\n\n var availDimIdx = 0;\n each(sysDims, function (sysDimItemRaw) {\n var coordDim;\n var sysDimItemDimsDef;\n var sysDimItemOtherDims;\n var sysDimItem;\n\n if (isString(sysDimItemRaw)) {\n coordDim = sysDimItemRaw;\n sysDimItem = {};\n } else {\n sysDimItem = sysDimItemRaw;\n coordDim = sysDimItem.name;\n var ordinalMeta = sysDimItem.ordinalMeta;\n sysDimItem.ordinalMeta = null;\n sysDimItem = clone(sysDimItem);\n sysDimItem.ordinalMeta = ordinalMeta; // `coordDimIndex` should not be set directly.\n\n sysDimItemDimsDef = sysDimItem.dimsDef;\n sysDimItemOtherDims = sysDimItem.otherDims;\n sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = sysDimItem.dimsDef = sysDimItem.otherDims = null;\n }\n\n var dataDims = encodeDefMap.get(coordDim); // negative resultDimIdx means no need to mapping.\n\n if (dataDims === false) {\n return;\n }\n\n dataDims = normalizeToArray(dataDims); // dimensions provides default dim sequences.\n\n if (!dataDims.length) {\n for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {\n while (availDimIdx < result.length && result[availDimIdx].coordDim != null) {\n availDimIdx++;\n }\n\n availDimIdx < result.length && dataDims.push(availDimIdx++);\n }\n } // Apply templates.\n\n\n each(dataDims, function (resultDimIdx, coordDimIndex) {\n var resultItem = result[resultDimIdx];\n applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex);\n\n if (resultItem.name == null && sysDimItemDimsDef) {\n var sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex];\n !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {\n name: sysDimItemDimsDefItem\n });\n resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name;\n resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip;\n } // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}\n\n\n sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims);\n });\n });\n\n function applyDim(resultItem, coordDim, coordDimIndex) {\n if (VISUAL_DIMENSIONS.get(coordDim) != null) {\n resultItem.otherDims[coordDim] = coordDimIndex;\n } else {\n resultItem.coordDim = coordDim;\n resultItem.coordDimIndex = coordDimIndex;\n coordDimNameMap.set(coordDim, true);\n }\n } // Make sure the first extra dim is 'value'.\n\n\n var generateCoord = opt.generateCoord;\n var generateCoordCount = opt.generateCoordCount;\n var fromZero = generateCoordCount != null;\n generateCoordCount = generateCoord ? generateCoordCount || 1 : 0;\n var extra = generateCoord || 'value'; // Set dim `name` and other `coordDim` and other props.\n\n for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {\n var resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo();\n var coordDim = resultItem.coordDim;\n\n if (coordDim == null) {\n resultItem.coordDim = genName(extra, coordDimNameMap, fromZero);\n resultItem.coordDimIndex = 0;\n\n if (!generateCoord || generateCoordCount <= 0) {\n resultItem.isExtraCoord = true;\n }\n\n generateCoordCount--;\n }\n\n resultItem.name == null && (resultItem.name = genName(resultItem.coordDim, dataDimNameMap, false));\n\n if (resultItem.type == null && (guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must // Consider the case:\n // {\n // dataset: {source: [\n // ['2001', 123],\n // ['2002', 456],\n // ...\n // ['The others', 987],\n // ]},\n // series: {type: 'pie'}\n // }\n // The first colum should better be treated as a \"ordinal\" although it\n // might not able to be detected as an \"ordinal\" by `guessOrdinal`.\n || resultItem.isExtraCoord && (resultItem.otherDims.itemName != null || resultItem.otherDims.seriesName != null))) {\n resultItem.type = 'ordinal';\n }\n }\n\n return result;\n} // ??? TODO\n// Originally detect dimCount by data[0]. Should we\n// optimize it to only by sysDims and dimensions and encode.\n// So only necessary dims will be initialized.\n// But\n// (1) custom series should be considered. where other dims\n// may be visited.\n// (2) sometimes user need to calcualte bubble size or use visualMap\n// on other dimensions besides coordSys needed.\n// So, dims that is not used by system, should be shared in storage?\n\n\nfunction getDimCount(source, sysDims, dimsDef, optDimCount) {\n // Note that the result dimCount should not small than columns count\n // of data, otherwise `dataDimNameMap` checking will be incorrect.\n var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0);\n each(sysDims, function (sysDimItem) {\n var sysDimItemDimsDef;\n\n if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {\n dimCount = Math.max(dimCount, sysDimItemDimsDef.length);\n }\n });\n return dimCount;\n}\n\nfunction genName(name, map, fromZero) {\n if (fromZero || map.get(name) != null) {\n var i = 0;\n\n while (map.get(name + i) != null) {\n i++;\n }\n\n name += i;\n }\n\n map.set(name, true);\n return name;\n}\n\nexport default completeDimensions;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Substitute `completeDimensions`.\n * `completeDimensions` is to be deprecated.\n */\nimport completeDimensions from './completeDimensions';\n/**\n * @param opt.coordDimensions\n * @param opt.dimensionsDefine By default `source.dimensionsDefine` Overwrite source define.\n * @param opt.encodeDefine By default `source.encodeDefine` Overwrite source define.\n * @param opt.encodeDefaulter Make default encode if user not specified.\n */\n\nexport default function createDimensions( // TODO: TYPE completeDimensions type\nsource, opt) {\n opt = opt || {};\n return completeDimensions(opt.coordDimensions || [], source, {\n // FIXME:TS detect whether source then call `.dimensionsDefine` and `.encodeDefine`?\n dimsDef: opt.dimensionsDefine || source.dimensionsDefine,\n encodeDef: opt.encodeDefine || source.encodeDefine,\n dimCount: opt.dimensionsCount,\n encodeDefaulter: opt.encodeDefaulter,\n generateCoord: opt.generateCoord,\n generateCoordCount: opt.generateCoordCount\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Helper for model references.\n * There are many manners to refer axis/coordSys.\n */\n// TODO\n// merge relevant logic to this file?\n// check: \"modelHelper\" of tooltip and \"BrushTargetManager\".\nimport { createHashMap, retrieve, each } from 'zrender/lib/core/util';\nimport { SINGLE_REFERRING } from '../util/model';\n/**\n * @class\n * For example:\n * {\n * coordSysName: 'cartesian2d',\n * coordSysDims: ['x', 'y', ...],\n * axisMap: HashMap({\n * x: xAxisModel,\n * y: yAxisModel\n * }),\n * categoryAxisMap: HashMap({\n * x: xAxisModel,\n * y: undefined\n * }),\n * // The index of the first category axis in `coordSysDims`.\n * // `null/undefined` means no category axis exists.\n * firstCategoryDimIndex: 1,\n * // To replace user specified encode.\n * }\n */\n\nvar CoordSysInfo =\n/** @class */\nfunction () {\n function CoordSysInfo(coordSysName) {\n this.coordSysDims = [];\n this.axisMap = createHashMap();\n this.categoryAxisMap = createHashMap();\n this.coordSysName = coordSysName;\n }\n\n return CoordSysInfo;\n}();\n\nexport function getCoordSysInfoBySeries(seriesModel) {\n var coordSysName = seriesModel.get('coordinateSystem');\n var result = new CoordSysInfo(coordSysName);\n var fetch = fetchers[coordSysName];\n\n if (fetch) {\n fetch(seriesModel, result, result.axisMap, result.categoryAxisMap);\n return result;\n }\n}\nvar fetchers = {\n cartesian2d: function (seriesModel, result, axisMap, categoryAxisMap) {\n var xAxisModel = seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];\n var yAxisModel = seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!xAxisModel) {\n throw new Error('xAxis \"' + retrieve(seriesModel.get('xAxisIndex'), seriesModel.get('xAxisId'), 0) + '\" not found');\n }\n\n if (!yAxisModel) {\n throw new Error('yAxis \"' + retrieve(seriesModel.get('xAxisIndex'), seriesModel.get('yAxisId'), 0) + '\" not found');\n }\n }\n\n result.coordSysDims = ['x', 'y'];\n axisMap.set('x', xAxisModel);\n axisMap.set('y', yAxisModel);\n\n if (isCategory(xAxisModel)) {\n categoryAxisMap.set('x', xAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n\n if (isCategory(yAxisModel)) {\n categoryAxisMap.set('y', yAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) {\n var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!singleAxisModel) {\n throw new Error('singleAxis should be specified.');\n }\n }\n\n result.coordSysDims = ['single'];\n axisMap.set('single', singleAxisModel);\n\n if (isCategory(singleAxisModel)) {\n categoryAxisMap.set('single', singleAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n },\n polar: function (seriesModel, result, axisMap, categoryAxisMap) {\n var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n var radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n var angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!angleAxisModel) {\n throw new Error('angleAxis option not found');\n }\n\n if (!radiusAxisModel) {\n throw new Error('radiusAxis option not found');\n }\n }\n\n result.coordSysDims = ['radius', 'angle'];\n axisMap.set('radius', radiusAxisModel);\n axisMap.set('angle', angleAxisModel);\n\n if (isCategory(radiusAxisModel)) {\n categoryAxisMap.set('radius', radiusAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n\n if (isCategory(angleAxisModel)) {\n categoryAxisMap.set('angle', angleAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n geo: function (seriesModel, result, axisMap, categoryAxisMap) {\n result.coordSysDims = ['lng', 'lat'];\n },\n parallel: function (seriesModel, result, axisMap, categoryAxisMap) {\n var ecModel = seriesModel.ecModel;\n var parallelModel = ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));\n var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();\n each(parallelModel.parallelAxisIndex, function (axisIndex, index) {\n var axisModel = ecModel.getComponent('parallelAxis', axisIndex);\n var axisDim = coordSysDims[index];\n axisMap.set(axisDim, axisModel);\n\n if (isCategory(axisModel)) {\n categoryAxisMap.set(axisDim, axisModel);\n\n if (result.firstCategoryDimIndex == null) {\n result.firstCategoryDimIndex = index;\n }\n }\n });\n }\n};\n\nfunction isCategory(axisModel) {\n return axisModel.get('type') === 'category';\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isString } from 'zrender/lib/core/util';\n/**\n * Note that it is too complicated to support 3d stack by value\n * (have to create two-dimension inverted index), so in 3d case\n * we just support that stacked by index.\n *\n * @param seriesModel\n * @param dimensionInfoList The same as the input of .\n * The input dimensionInfoList will be modified.\n * @param opt\n * @param opt.stackedCoordDimension Specify a coord dimension if needed.\n * @param opt.byIndex=false\n * @return calculationInfo\n * {\n * stackedDimension: string\n * stackedByDimension: string\n * isStackedByIndex: boolean\n * stackedOverDimension: string\n * stackResultDimension: string\n * }\n */\n\nexport function enableDataStack(seriesModel, dimensionInfoList, opt) {\n opt = opt || {};\n var byIndex = opt.byIndex;\n var stackedCoordDimension = opt.stackedCoordDimension; // Compatibal: when `stack` is set as '', do not stack.\n\n var mayStack = !!(seriesModel && seriesModel.get('stack'));\n var stackedByDimInfo;\n var stackedDimInfo;\n var stackResultDimension;\n var stackedOverDimension;\n each(dimensionInfoList, function (dimensionInfo, index) {\n if (isString(dimensionInfo)) {\n dimensionInfoList[index] = dimensionInfo = {\n name: dimensionInfo\n };\n }\n\n if (mayStack && !dimensionInfo.isExtraCoord) {\n // Find the first ordinal dimension as the stackedByDimInfo.\n if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) {\n stackedByDimInfo = dimensionInfo;\n } // Find the first stackable dimension as the stackedDimInfo.\n\n\n if (!stackedDimInfo && dimensionInfo.type !== 'ordinal' && dimensionInfo.type !== 'time' && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)) {\n stackedDimInfo = dimensionInfo;\n }\n }\n });\n\n if (stackedDimInfo && !byIndex && !stackedByDimInfo) {\n // Compatible with previous design, value axis (time axis) only stack by index.\n // It may make sense if the user provides elaborately constructed data.\n byIndex = true;\n } // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.\n // That put stack logic in List is for using conveniently in echarts extensions, but it\n // might not be a good way.\n\n\n if (stackedDimInfo) {\n // Use a weird name that not duplicated with other names.\n stackResultDimension = '__\\0ecstackresult';\n stackedOverDimension = '__\\0ecstackedover'; // Create inverted index to fast query index by value.\n\n if (stackedByDimInfo) {\n stackedByDimInfo.createInvertedIndices = true;\n }\n\n var stackedDimCoordDim_1 = stackedDimInfo.coordDim;\n var stackedDimType = stackedDimInfo.type;\n var stackedDimCoordIndex_1 = 0;\n each(dimensionInfoList, function (dimensionInfo) {\n if (dimensionInfo.coordDim === stackedDimCoordDim_1) {\n stackedDimCoordIndex_1++;\n }\n });\n dimensionInfoList.push({\n name: stackResultDimension,\n coordDim: stackedDimCoordDim_1,\n coordDimIndex: stackedDimCoordIndex_1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true\n });\n stackedDimCoordIndex_1++;\n dimensionInfoList.push({\n name: stackedOverDimension,\n // This dimension contains stack base (generally, 0), so do not set it as\n // `stackedDimCoordDim` to avoid extent calculation, consider log scale.\n coordDim: stackedOverDimension,\n coordDimIndex: stackedDimCoordIndex_1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true\n });\n }\n\n return {\n stackedDimension: stackedDimInfo && stackedDimInfo.name,\n stackedByDimension: stackedByDimInfo && stackedByDimInfo.name,\n isStackedByIndex: byIndex,\n stackedOverDimension: stackedOverDimension,\n stackResultDimension: stackResultDimension\n };\n}\nexport function isDimensionStacked(data, stackedDim\n/*, stackedByDim*/\n) {\n // Each single series only maps to one pair of axis. So we do not need to\n // check stackByDim, whatever stacked by a dimension or stacked by index.\n return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); // && (\n // stackedByDim != null\n // ? stackedByDim === data.getCalculationInfo('stackedByDimension')\n // : data.getCalculationInfo('isStackedByIndex')\n // );\n}\nexport function getStackedDimension(data, targetDim) {\n return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport List from '../../data/List';\nimport createDimensions from '../../data/helper/createDimensions';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport { getDataItemValue } from '../../util/model';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport { getCoordSysInfoBySeries } from '../../model/referHelper';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../../data/Source';\nimport { enableDataStack } from '../../data/helper/dataStackHelper';\nimport { makeSeriesEncodeForAxisCoordSys } from '../../data/helper/sourceHelper';\nimport { SOURCE_FORMAT_ORIGINAL } from '../../util/types';\n\nfunction createListFromArray(source, seriesModel, opt) {\n opt = opt || {};\n\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source);\n }\n\n var coordSysName = seriesModel.get('coordinateSystem');\n var registeredCoordSys = CoordinateSystem.get(coordSysName);\n var coordSysInfo = getCoordSysInfoBySeries(seriesModel);\n var coordSysDimDefs;\n\n if (coordSysInfo && coordSysInfo.coordSysDims) {\n coordSysDimDefs = zrUtil.map(coordSysInfo.coordSysDims, function (dim) {\n var dimInfo = {\n name: dim\n };\n var axisModel = coordSysInfo.axisMap.get(dim);\n\n if (axisModel) {\n var axisType = axisModel.get('type');\n dimInfo.type = getDimensionTypeByAxis(axisType); // dimInfo.stackable = isStackable(axisType);\n }\n\n return dimInfo;\n });\n }\n\n if (!coordSysDimDefs) {\n // Get dimensions from registered coordinate system\n coordSysDimDefs = registeredCoordSys && (registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice()) || ['x', 'y'];\n }\n\n var useEncodeDefaulter = opt.useEncodeDefaulter;\n var dimInfoList = createDimensions(source, {\n coordDimensions: coordSysDimDefs,\n generateCoord: opt.generateCoord,\n encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null\n });\n var firstCategoryDimIndex;\n var hasNameEncode;\n coordSysInfo && zrUtil.each(dimInfoList, function (dimInfo, dimIndex) {\n var coordDim = dimInfo.coordDim;\n var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);\n\n if (categoryAxisModel) {\n if (firstCategoryDimIndex == null) {\n firstCategoryDimIndex = dimIndex;\n }\n\n dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();\n\n if (opt.createInvertedIndices) {\n dimInfo.createInvertedIndices = true;\n }\n }\n\n if (dimInfo.otherDims.itemName != null) {\n hasNameEncode = true;\n }\n });\n\n if (!hasNameEncode && firstCategoryDimIndex != null) {\n dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;\n }\n\n var stackCalculationInfo = enableDataStack(seriesModel, dimInfoList);\n var list = new List(dimInfoList, seriesModel);\n list.setCalculationInfo(stackCalculationInfo);\n var dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) ? function (itemOpt, dimName, dataIndex, dimIndex) {\n // Use dataIndex as ordinal value in categoryAxis\n return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);\n } : null;\n list.hasItemOption = false;\n list.initData(source, null, dimValueGetter);\n return list;\n}\n\nfunction isNeedCompleteOrdinalData(source) {\n if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var sampleItem = firstDataNotNull(source.data || []);\n return sampleItem != null && !zrUtil.isArray(getDataItemValue(sampleItem));\n }\n}\n\nfunction firstDataNotNull(data) {\n var i = 0;\n\n while (i < data.length && data[i] == null) {\n i++;\n }\n\n return data[i];\n}\n\nexport default createListFromArray;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as clazzUtil from '../util/clazz';\n\nvar Scale =\n/** @class */\nfunction () {\n function Scale(setting) {\n this._setting = setting || {};\n this._extent = [Infinity, -Infinity];\n }\n\n Scale.prototype.getSetting = function (name) {\n return this._setting[name];\n };\n /**\n * Set extent from data\n */\n\n\n Scale.prototype.unionExtent = function (other) {\n var extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]); // not setExtent because in log axis it may transformed to power\n // this.setExtent(extent[0], extent[1]);\n };\n /**\n * Set extent from data\n */\n\n\n Scale.prototype.unionExtentFromData = function (data, dim) {\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * Get extent\n *\n * Extent is always in increase order.\n */\n\n\n Scale.prototype.getExtent = function () {\n return this._extent.slice();\n };\n /**\n * Set extent\n */\n\n\n Scale.prototype.setExtent = function (start, end) {\n var thisExtent = this._extent;\n\n if (!isNaN(start)) {\n thisExtent[0] = start;\n }\n\n if (!isNaN(end)) {\n thisExtent[1] = end;\n }\n };\n /**\n * If value is in extent range\n */\n\n\n Scale.prototype.isInExtentRange = function (value) {\n return this._extent[0] <= value && this._extent[1] >= value;\n };\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n\n\n Scale.prototype.isBlank = function () {\n return this._isBlank;\n };\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n\n\n Scale.prototype.setBlank = function (isBlank) {\n this._isBlank = isBlank;\n };\n\n return Scale;\n}();\n\nclazzUtil.enableClassManagement(Scale);\nexport default Scale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, isObject, map } from 'zrender/lib/core/util';\n\nvar OrdinalMeta =\n/** @class */\nfunction () {\n function OrdinalMeta(opt) {\n this.categories = opt.categories || [];\n this._needCollect = opt.needCollect;\n this._deduplication = opt.deduplication;\n }\n\n OrdinalMeta.createByAxisModel = function (axisModel) {\n var option = axisModel.option;\n var data = option.data;\n var categories = data && map(data, getName);\n return new OrdinalMeta({\n categories: categories,\n needCollect: !categories,\n // deduplication is default in axis.\n deduplication: option.dedplication !== false\n });\n };\n\n ;\n\n OrdinalMeta.prototype.getOrdinal = function (category) {\n // @ts-ignore\n return this._getOrCreateMap().get(category);\n };\n /**\n * @return The ordinal. If not found, return NaN.\n */\n\n\n OrdinalMeta.prototype.parseAndCollect = function (category) {\n var index;\n var needCollect = this._needCollect; // The value of category dim can be the index of the given category set.\n // This feature is only supported when !needCollect, because we should\n // consider a common case: a value is 2017, which is a number but is\n // expected to be tread as a category. This case usually happen in dataset,\n // where it happent to be no need of the index feature.\n\n if (typeof category !== 'string' && !needCollect) {\n return category;\n } // Optimize for the scenario:\n // category is ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // Notice, if a dataset dimension provide categroies, usually echarts\n // should remove duplication except user tell echarts dont do that\n // (set axis.deduplication = false), because echarts do not know whether\n // the values in the category dimension has duplication (consider the\n // parallel-aqi example)\n\n\n if (needCollect && !this._deduplication) {\n index = this.categories.length;\n this.categories[index] = category;\n return index;\n }\n\n var map = this._getOrCreateMap(); // @ts-ignore\n\n\n index = map.get(category);\n\n if (index == null) {\n if (needCollect) {\n index = this.categories.length;\n this.categories[index] = category; // @ts-ignore\n\n map.set(category, index);\n } else {\n index = NaN;\n }\n }\n\n return index;\n }; // Consider big data, do not create map until needed.\n\n\n OrdinalMeta.prototype._getOrCreateMap = function () {\n return this._map || (this._map = createHashMap(this.categories));\n };\n\n return OrdinalMeta;\n}();\n\nfunction getName(obj) {\n if (isObject(obj) && obj.value != null) {\n return obj.value;\n } else {\n return obj + '';\n }\n}\n\nexport default OrdinalMeta;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as numberUtil from '../util/number';\nvar roundNumber = numberUtil.round;\n/**\n * @param extent Both extent[0] and extent[1] should be valid number.\n * Should be extent[0] < extent[1].\n * @param splitNumber splitNumber should be >= 1.\n */\n\nexport function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) {\n var result = {};\n var span = extent[1] - extent[0];\n var interval = result.interval = numberUtil.nice(span / splitNumber, true);\n\n if (minInterval != null && interval < minInterval) {\n interval = result.interval = minInterval;\n }\n\n if (maxInterval != null && interval > maxInterval) {\n interval = result.interval = maxInterval;\n } // Tow more digital for tick.\n\n\n var precision = result.intervalPrecision = getIntervalPrecision(interval); // Niced extent inside original extent\n\n var niceTickExtent = result.niceTickExtent = [roundNumber(Math.ceil(extent[0] / interval) * interval, precision), roundNumber(Math.floor(extent[1] / interval) * interval, precision)];\n fixExtent(niceTickExtent, extent);\n return result;\n}\n/**\n * @return interval precision\n */\n\nexport function getIntervalPrecision(interval) {\n // Tow more digital for tick.\n return numberUtil.getPrecision(interval) + 2;\n}\n\nfunction clamp(niceTickExtent, idx, extent) {\n niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);\n} // In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.\n\n\nexport function fixExtent(niceTickExtent, extent) {\n !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);\n !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);\n clamp(niceTickExtent, 0, extent);\n clamp(niceTickExtent, 1, extent);\n\n if (niceTickExtent[0] > niceTickExtent[1]) {\n niceTickExtent[0] = niceTickExtent[1];\n }\n}\nexport function contain(val, extent) {\n return val >= extent[0] && val <= extent[1];\n}\nexport function normalize(val, extent) {\n if (extent[1] === extent[0]) {\n return 0.5;\n }\n\n return (val - extent[0]) / (extent[1] - extent[0]);\n}\nexport function scale(val, extent) {\n return val * (extent[1] - extent[0]) + extent[0];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Linear continuous scale\n * http://en.wikipedia.org/wiki/Level_of_measurement\n */\n// FIXME only one data\n\nimport Scale from './Scale';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport * as scaleHelper from './helper';\nimport { isArray, map, isObject } from 'zrender/lib/core/util';\n\nvar OrdinalScale =\n/** @class */\nfunction (_super) {\n __extends(OrdinalScale, _super);\n\n function OrdinalScale(setting) {\n var _this = _super.call(this, setting) || this;\n\n _this.type = 'ordinal';\n\n var ordinalMeta = _this.getSetting('ordinalMeta'); // Caution: Should not use instanceof, consider ec-extensions using\n // import approach to get OrdinalMeta class.\n\n\n if (!ordinalMeta) {\n ordinalMeta = new OrdinalMeta({});\n }\n\n if (isArray(ordinalMeta)) {\n ordinalMeta = new OrdinalMeta({\n categories: map(ordinalMeta, function (item) {\n return isObject(item) ? item.value : item;\n })\n });\n }\n\n _this._ordinalMeta = ordinalMeta;\n _this._extent = _this.getSetting('extent') || [0, ordinalMeta.categories.length - 1];\n return _this;\n }\n\n OrdinalScale.prototype.parse = function (val) {\n return typeof val === 'string' ? this._ordinalMeta.getOrdinal(val) // val might be float.\n : Math.round(val);\n };\n\n OrdinalScale.prototype.contain = function (rank) {\n rank = this.parse(rank);\n return scaleHelper.contain(rank, this._extent) && this._ordinalMeta.categories[rank] != null;\n };\n /**\n * Normalize given rank or name to linear [0, 1]\n * @param val raw ordinal number.\n * @return normalized value in [0, 1].\n */\n\n\n OrdinalScale.prototype.normalize = function (val) {\n val = this._getTickNumber(this.parse(val));\n return scaleHelper.normalize(val, this._extent);\n };\n /**\n * @param val normalized value in [0, 1].\n * @return raw ordinal number.\n */\n\n\n OrdinalScale.prototype.scale = function (val) {\n val = Math.round(scaleHelper.scale(val, this._extent));\n return this.getRawOrdinalNumber(val);\n };\n\n OrdinalScale.prototype.getTicks = function () {\n var ticks = [];\n var extent = this._extent;\n var rank = extent[0];\n\n while (rank <= extent[1]) {\n ticks.push({\n value: rank\n });\n rank++;\n }\n\n return ticks;\n };\n\n OrdinalScale.prototype.getMinorTicks = function (splitNumber) {\n // Not support.\n return;\n };\n /**\n * @see `Ordinal['_ordinalNumbersByTick']`\n */\n\n\n OrdinalScale.prototype.setSortInfo = function (info) {\n if (info == null) {\n this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;\n return;\n }\n\n var infoOrdinalNumbers = info.ordinalNumbers;\n var ordinalsByTick = this._ordinalNumbersByTick = [];\n var ticksByOrdinal = this._ticksByOrdinalNumber = []; // Unnecessary support negative tick in `realtimeSort`.\n\n var tickNum = 0;\n var allCategoryLen = this._ordinalMeta.categories.length;\n\n for (var len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) {\n var ordinalNumber = infoOrdinalNumbers[tickNum];\n ordinalsByTick[tickNum] = ordinalNumber;\n ticksByOrdinal[ordinalNumber] = tickNum;\n } // Handle that `series.data` only covers part of the `axis.category.data`.\n\n\n var unusedOrdinal = 0;\n\n for (; tickNum < allCategoryLen; ++tickNum) {\n while (ticksByOrdinal[unusedOrdinal] != null) {\n unusedOrdinal++;\n }\n\n ;\n ordinalsByTick.push(unusedOrdinal);\n ticksByOrdinal[unusedOrdinal] = tickNum;\n }\n };\n\n OrdinalScale.prototype._getTickNumber = function (ordinal) {\n var ticksByOrdinalNumber = this._ticksByOrdinalNumber; // also support ordinal out of range of `ordinalMeta.categories.length`,\n // where ordinal numbers are used as tick value directly.\n\n return ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length ? ticksByOrdinalNumber[ordinal] : ordinal;\n };\n /**\n * @usage\n * ```js\n * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);\n *\n * // case0\n * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];\n * // case1\n * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];\n * // case2\n * const coord = axis.dataToCoord(ordinalNumber);\n * ```\n *\n * @param {OrdinalNumber} tickNumber index of display\n */\n\n\n OrdinalScale.prototype.getRawOrdinalNumber = function (tickNumber) {\n var ordinalNumbersByTick = this._ordinalNumbersByTick; // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,\n // where ordinal numbers are used as tick value directly.\n\n return ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length ? ordinalNumbersByTick[tickNumber] : tickNumber;\n };\n /**\n * Get item on tick\n */\n\n\n OrdinalScale.prototype.getLabel = function (tick) {\n if (!this.isBlank()) {\n var ordinalNumber = this.getRawOrdinalNumber(tick.value);\n var cateogry = this._ordinalMeta.categories[ordinalNumber]; // Note that if no data, ordinalMeta.categories is an empty array.\n // Return empty if it's not exist.\n\n return cateogry == null ? '' : cateogry + '';\n }\n };\n\n OrdinalScale.prototype.count = function () {\n return this._extent[1] - this._extent[0] + 1;\n };\n\n OrdinalScale.prototype.unionExtentFromData = function (data, dim) {\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * @override\n * If value is in extent range\n */\n\n\n OrdinalScale.prototype.isInExtentRange = function (value) {\n value = this._getTickNumber(value);\n return this._extent[0] <= value && this._extent[1] >= value;\n };\n\n OrdinalScale.prototype.getOrdinalMeta = function () {\n return this._ordinalMeta;\n };\n\n OrdinalScale.prototype.niceTicks = function () {};\n\n OrdinalScale.prototype.niceExtent = function () {};\n\n OrdinalScale.type = 'ordinal';\n return OrdinalScale;\n}(Scale);\n\nScale.registerClass(OrdinalScale);\nexport default OrdinalScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as numberUtil from '../util/number';\nimport * as formatUtil from '../util/format';\nimport Scale from './Scale';\nimport * as helper from './helper';\nvar roundNumber = numberUtil.round;\n\nvar IntervalScale =\n/** @class */\nfunction (_super) {\n __extends(IntervalScale, _super);\n\n function IntervalScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'interval'; // Step is calculated in adjustExtent.\n\n _this._interval = 0;\n _this._intervalPrecision = 2;\n return _this;\n }\n\n IntervalScale.prototype.parse = function (val) {\n return val;\n };\n\n IntervalScale.prototype.contain = function (val) {\n return helper.contain(val, this._extent);\n };\n\n IntervalScale.prototype.normalize = function (val) {\n return helper.normalize(val, this._extent);\n };\n\n IntervalScale.prototype.scale = function (val) {\n return helper.scale(val, this._extent);\n };\n\n IntervalScale.prototype.setExtent = function (start, end) {\n var thisExtent = this._extent; // start,end may be a Number like '25',so...\n\n if (!isNaN(start)) {\n thisExtent[0] = parseFloat(start);\n }\n\n if (!isNaN(end)) {\n thisExtent[1] = parseFloat(end);\n }\n };\n\n IntervalScale.prototype.unionExtent = function (other) {\n var extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]); // unionExtent may called by it's sub classes\n\n this.setExtent(extent[0], extent[1]);\n };\n\n IntervalScale.prototype.getInterval = function () {\n return this._interval;\n };\n\n IntervalScale.prototype.setInterval = function (interval) {\n this._interval = interval; // Dropped auto calculated niceExtent and use user setted extent\n // We assume user wan't to set both interval, min, max to get a better result\n\n this._niceExtent = this._extent.slice();\n this._intervalPrecision = helper.getIntervalPrecision(interval);\n };\n /**\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n\n\n IntervalScale.prototype.getTicks = function (expandToNicedExtent) {\n var interval = this._interval;\n var extent = this._extent;\n var niceTickExtent = this._niceExtent;\n var intervalPrecision = this._intervalPrecision;\n var ticks = []; // If interval is 0, return [];\n\n if (!interval) {\n return ticks;\n } // Consider this case: using dataZoom toolbox, zoom and zoom.\n\n\n var safeLimit = 10000;\n\n if (extent[0] < niceTickExtent[0]) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(niceTickExtent[0] - interval, intervalPrecision)\n });\n } else {\n ticks.push({\n value: extent[0]\n });\n }\n }\n\n var tick = niceTickExtent[0];\n\n while (tick <= niceTickExtent[1]) {\n ticks.push({\n value: tick\n }); // Avoid rounding error\n\n tick = roundNumber(tick + interval, intervalPrecision);\n\n if (tick === ticks[ticks.length - 1].value) {\n // Consider out of safe float point, e.g.,\n // -3711126.9907707 + 2e-10 === -3711126.9907707\n break;\n }\n\n if (ticks.length > safeLimit) {\n return [];\n }\n } // Consider this case: the last item of ticks is smaller\n // than niceTickExtent[1] and niceTickExtent[1] === extent[1].\n\n\n var lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1];\n\n if (extent[1] > lastNiceTick) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(lastNiceTick + interval, intervalPrecision)\n });\n } else {\n ticks.push({\n value: extent[1]\n });\n }\n }\n\n return ticks;\n };\n\n IntervalScale.prototype.getMinorTicks = function (splitNumber) {\n var ticks = this.getTicks(true);\n var minorTicks = [];\n var extent = this.getExtent();\n\n for (var i = 1; i < ticks.length; i++) {\n var nextTick = ticks[i];\n var prevTick = ticks[i - 1];\n var count = 0;\n var minorTicksGroup = [];\n var interval = nextTick.value - prevTick.value;\n var minorInterval = interval / splitNumber;\n\n while (count < splitNumber - 1) {\n var minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval); // For the first and last interval. The count may be less than splitNumber.\n\n if (minorTick > extent[0] && minorTick < extent[1]) {\n minorTicksGroup.push(minorTick);\n }\n\n count++;\n }\n\n minorTicks.push(minorTicksGroup);\n }\n\n return minorTicks;\n };\n /**\n * @param opt.precision If 'auto', use nice presision.\n * @param opt.pad returns 1.50 but not 1.5 if precision is 2.\n */\n\n\n IntervalScale.prototype.getLabel = function (data, opt) {\n if (data == null) {\n return '';\n }\n\n var precision = opt && opt.precision;\n\n if (precision == null) {\n precision = numberUtil.getPrecision(data.value) || 0;\n } else if (precision === 'auto') {\n // Should be more precise then tick.\n precision = this._intervalPrecision;\n } // (1) If `precision` is set, 12.005 should be display as '12.00500'.\n // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.\n\n\n var dataNum = roundNumber(data.value, precision, true);\n return formatUtil.addCommas(dataNum);\n };\n /**\n * @param splitNumber By default `5`.\n */\n\n\n IntervalScale.prototype.niceTicks = function (splitNumber, minInterval, maxInterval) {\n splitNumber = splitNumber || 5;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n\n if (!isFinite(span)) {\n return;\n } // User may set axis min 0 and data are all negative\n // FIXME If it needs to reverse ?\n\n\n if (span < 0) {\n span = -span;\n extent.reverse();\n }\n\n var result = helper.intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval);\n this._intervalPrecision = result.intervalPrecision;\n this._interval = result.interval;\n this._niceExtent = result.niceTickExtent;\n };\n\n IntervalScale.prototype.niceExtent = function (opt) {\n var extent = this._extent; // If extent start and end are same, expand them\n\n if (extent[0] === extent[1]) {\n if (extent[0] !== 0) {\n // Expand extent\n var expandSize = extent[0]; // In the fowllowing case\n // Axis has been fixed max 100\n // Plus data are all 100 and axis extent are [100, 100].\n // Extend to the both side will cause expanded max is larger than fixed max.\n // So only expand to the smaller side.\n\n if (!opt.fixMax) {\n extent[1] += expandSize / 2;\n extent[0] -= expandSize / 2;\n } else {\n extent[0] -= expandSize / 2;\n }\n } else {\n extent[1] = 1;\n }\n }\n\n var span = extent[1] - extent[0]; // If there are no data and extent are [Infinity, -Infinity]\n\n if (!isFinite(span)) {\n extent[0] = 0;\n extent[1] = 1;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); // let extent = this._extent;\n\n var interval = this._interval;\n\n if (!opt.fixMin) {\n extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);\n }\n\n if (!opt.fixMax) {\n extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);\n }\n };\n\n IntervalScale.type = 'interval';\n return IntervalScale;\n}(Scale);\n\nScale.registerClass(IntervalScale);\nexport default IntervalScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../util/number';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nvar STACK_PREFIX = '__ec_stack_';\nvar LARGE_BAR_MIN_WIDTH = 0.5;\nvar LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\nfunction getSeriesStackId(seriesModel) {\n return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(axis) {\n return axis.dim + axis.index;\n}\n/**\n * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.\n */\n\n\nexport function getLayoutOnAxis(opt) {\n var params = [];\n var baseAxis = opt.axis;\n var axisKey = 'axis0';\n\n if (baseAxis.type !== 'category') {\n return;\n }\n\n var bandWidth = baseAxis.getBandWidth();\n\n for (var i = 0; i < opt.count || 0; i++) {\n params.push(zrUtil.defaults({\n bandWidth: bandWidth,\n axisKey: axisKey,\n stackId: STACK_PREFIX + i\n }, opt));\n }\n\n var widthAndOffsets = doCalBarWidthAndOffset(params);\n var result = [];\n\n for (var i = 0; i < opt.count; i++) {\n var item = widthAndOffsets[axisKey][STACK_PREFIX + i];\n item.offsetCenter = item.offset + item.width / 2;\n result.push(item);\n }\n\n return result;\n}\nexport function prepareLayoutBarSeries(seriesType, ecModel) {\n var seriesModels = [];\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n // Check series coordinate, do layout for cartesian2d only\n if (isOnCartesian(seriesModel) && !isInLargeMode(seriesModel)) {\n seriesModels.push(seriesModel);\n }\n });\n return seriesModels;\n}\n/**\n * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent\n * values.\n * This works for time axes, value axes, and log axes.\n * For a single time axis, return value is in the form like\n * {'x_0': [1000000]}.\n * The value of 1000000 is in milliseconds.\n */\n\nfunction getValueAxesMinGaps(barSeries) {\n /**\n * Map from axis.index to values.\n * For a single time axis, axisValues is in the form like\n * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.\n * Items in axisValues[x], e.g. 1495555200000, are time values of all\n * series.\n */\n var axisValues = {};\n zrUtil.each(barSeries, function (seriesModel) {\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n\n if (baseAxis.type !== 'time' && baseAxis.type !== 'value') {\n return;\n }\n\n var data = seriesModel.getData();\n var key = baseAxis.dim + '_' + baseAxis.index;\n var dim = data.mapDimension(baseAxis.dim);\n\n for (var i = 0, cnt = data.count(); i < cnt; ++i) {\n var value = data.get(dim, i);\n\n if (!axisValues[key]) {\n // No previous data for the axis\n axisValues[key] = [value];\n } else {\n // No value in previous series\n axisValues[key].push(value);\n } // Ignore duplicated time values in the same axis\n\n }\n });\n var axisMinGaps = {};\n\n for (var key in axisValues) {\n if (axisValues.hasOwnProperty(key)) {\n var valuesInAxis = axisValues[key];\n\n if (valuesInAxis) {\n // Sort axis values into ascending order to calculate gaps\n valuesInAxis.sort(function (a, b) {\n return a - b;\n });\n var min = null;\n\n for (var j = 1; j < valuesInAxis.length; ++j) {\n var delta = valuesInAxis[j] - valuesInAxis[j - 1];\n\n if (delta > 0) {\n // Ignore 0 delta because they are of the same axis value\n min = min === null ? delta : Math.min(min, delta);\n }\n } // Set to null if only have one data\n\n\n axisMinGaps[key] = min;\n }\n }\n }\n\n return axisMinGaps;\n}\n\nexport function makeColumnLayout(barSeries) {\n var axisMinGaps = getValueAxesMinGaps(barSeries);\n var seriesInfoList = [];\n zrUtil.each(barSeries, function (seriesModel) {\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var axisExtent = baseAxis.getExtent();\n var bandWidth;\n\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n } else if (baseAxis.type === 'value' || baseAxis.type === 'time') {\n var key = baseAxis.dim + '_' + baseAxis.index;\n var minGap = axisMinGaps[key];\n var extentSpan = Math.abs(axisExtent[1] - axisExtent[0]);\n var scale = baseAxis.scale.getExtent();\n var scaleSpan = Math.abs(scale[1] - scale[0]);\n bandWidth = minGap ? extentSpan / scaleSpan * minGap : extentSpan; // When there is only one data value\n } else {\n var data = seriesModel.getData();\n bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n }\n\n var barWidth = parsePercent(seriesModel.get('barWidth'), bandWidth);\n var barMaxWidth = parsePercent(seriesModel.get('barMaxWidth'), bandWidth);\n var barMinWidth = parsePercent( // barMinWidth by default is 1 in cartesian. Because in value axis,\n // the auto-calculated bar width might be less than 1.\n seriesModel.get('barMinWidth') || 1, bandWidth);\n var barGap = seriesModel.get('barGap');\n var barCategoryGap = seriesModel.get('barCategoryGap');\n seriesInfoList.push({\n bandWidth: bandWidth,\n barWidth: barWidth,\n barMaxWidth: barMaxWidth,\n barMinWidth: barMinWidth,\n barGap: barGap,\n barCategoryGap: barCategoryGap,\n axisKey: getAxisKey(baseAxis),\n stackId: getSeriesStackId(seriesModel)\n });\n });\n return doCalBarWidthAndOffset(seriesInfoList);\n}\n\nfunction doCalBarWidthAndOffset(seriesInfoList) {\n // Columns info on each category axis. Key is cartesian name\n var columnsMap = {};\n zrUtil.each(seriesInfoList, function (seriesInfo, idx) {\n var axisKey = seriesInfo.axisKey;\n var bandWidth = seriesInfo.bandWidth;\n var columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: null,\n gap: '20%',\n stacks: {}\n };\n var stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n var stackId = seriesInfo.stackId;\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n }; // Caution: In a single coordinate system, these barGrid attributes\n // will be shared by series. Consider that they have default values,\n // only the attributes set on the last series will work.\n // Do not change this fact unless there will be a break change.\n\n var barWidth = seriesInfo.barWidth;\n\n if (barWidth && !stacks[stackId].width) {\n // See #6312, do not restrict width.\n stacks[stackId].width = barWidth;\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n var barMaxWidth = seriesInfo.barMaxWidth;\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n var barMinWidth = seriesInfo.barMinWidth;\n barMinWidth && (stacks[stackId].minWidth = barMinWidth);\n var barGap = seriesInfo.barGap;\n barGap != null && (columnsOnAxis.gap = barGap);\n var barCategoryGap = seriesInfo.barCategoryGap;\n barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n var result = {};\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n result[coordSysName] = {};\n var stacks = columnsOnAxis.stacks;\n var bandWidth = columnsOnAxis.bandWidth;\n var categoryGapPercent = columnsOnAxis.categoryGap;\n\n if (categoryGapPercent == null) {\n var columnCount = zrUtil.keys(stacks).length; // More columns in one group\n // the spaces between group is smaller. Or the column will be too thin.\n\n categoryGapPercent = Math.max(35 - columnCount * 4, 15) + '%';\n }\n\n var categoryGap = parsePercent(categoryGapPercent, bandWidth);\n var barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n var remainedWidth = columnsOnAxis.remainedWidth;\n var autoWidthCount = columnsOnAxis.autoWidthCount;\n var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth\n\n zrUtil.each(stacks, function (column) {\n var maxWidth = column.maxWidth;\n var minWidth = column.minWidth;\n\n if (!column.width) {\n var finalWidth = autoWidth;\n\n if (maxWidth && maxWidth < finalWidth) {\n finalWidth = Math.min(maxWidth, remainedWidth);\n } // `minWidth` has higher priority. `minWidth` decide that wheter the\n // bar is able to be visible. So `minWidth` should not be restricted\n // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In\n // the extreme cases for `value` axis, bars are allowed to overlap\n // with each other if `minWidth` specified.\n\n\n if (minWidth && minWidth > finalWidth) {\n finalWidth = minWidth;\n }\n\n if (finalWidth !== autoWidth) {\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n } else {\n // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as\n // CSS does. Becuase barWidth can be a percent value, where\n // `barMaxWidth` can be used to restrict the final width.\n var finalWidth = column.width;\n\n if (maxWidth) {\n finalWidth = Math.min(finalWidth, maxWidth);\n } // `minWidth` has higher priority, as described above\n\n\n if (minWidth) {\n finalWidth = Math.max(finalWidth, minWidth);\n }\n\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n }); // Recalculate width again\n\n autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n var widthSum = 0;\n var lastColumn;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n var offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n bandWidth: bandWidth,\n offset: offset,\n width: column.width\n };\n offset += column.width * (1 + barGapPercent);\n });\n });\n return result;\n}\n\nfunction retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) {\n if (barWidthAndOffset && axis) {\n var result = barWidthAndOffset[getAxisKey(axis)];\n\n if (result != null && seriesModel != null) {\n return result[getSeriesStackId(seriesModel)];\n }\n\n return result;\n }\n}\n\nexport { retrieveColumnLayout };\nexport function layout(seriesType, ecModel) {\n var seriesModels = prepareLayoutBarSeries(seriesType, ecModel);\n var barWidthAndOffset = makeColumnLayout(seriesModels);\n var lastStackCoords = {};\n zrUtil.each(seriesModels, function (seriesModel) {\n var data = seriesModel.getData();\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var stackId = getSeriesStackId(seriesModel);\n var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];\n var columnOffset = columnLayoutInfo.offset;\n var columnWidth = columnLayoutInfo.width;\n var valueAxis = cartesian.getOtherAxis(baseAxis);\n var barMinHeight = seriesModel.get('barMinHeight') || 0;\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n data.setLayout({\n bandWidth: columnLayoutInfo.bandWidth,\n offset: columnOffset,\n size: columnWidth\n });\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var stacked = isDimensionStacked(data, valueDim\n /*, baseDim*/\n );\n var isValueAxisH = valueAxis.isHorizontal();\n var valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked);\n\n for (var idx = 0, len = data.count(); idx < len; idx++) {\n var value = data.get(valueDim, idx);\n var baseValue = data.get(baseDim, idx);\n var sign = value >= 0 ? 'p' : 'n';\n var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n\n if (stacked) {\n // Only ordinal axis can be stacked.\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart,\n n: valueAxisStart // Negative stack\n\n };\n } // Should also consider #4243\n\n\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n var x = void 0;\n var y = void 0;\n var width = void 0;\n var height = void 0;\n\n if (isValueAxisH) {\n var coord = cartesian.dataToPoint([value, baseValue]);\n x = baseCoord;\n y = coord[1] + columnOffset;\n width = coord[0] - valueAxisStart;\n height = columnWidth;\n\n if (Math.abs(width) < barMinHeight) {\n width = (width < 0 ? -1 : 1) * barMinHeight;\n } // Ignore stack from NaN value\n\n\n if (!isNaN(width)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += width);\n }\n } else {\n var coord = cartesian.dataToPoint([baseValue, value]);\n x = coord[0] + columnOffset;\n y = baseCoord;\n width = columnWidth;\n height = coord[1] - valueAxisStart;\n\n if (Math.abs(height) < barMinHeight) {\n // Include zero to has a positive bar\n height = (height <= 0 ? -1 : 1) * barMinHeight;\n } // Ignore stack from NaN value\n\n\n if (!isNaN(height)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += height);\n }\n }\n\n data.setItemLayout(idx, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n }\n });\n} // TODO: Do not support stack in large mode yet.\n\nexport var largeLayout = {\n seriesType: 'bar',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n if (!isOnCartesian(seriesModel) || !isInLargeMode(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n var cartesian = seriesModel.coordinateSystem;\n var coordLayout = cartesian.master.getRect();\n var baseAxis = cartesian.getBaseAxis();\n var valueAxis = cartesian.getOtherAxis(baseAxis);\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var valueAxisHorizontal = valueAxis.isHorizontal();\n var valueDimIdx = valueAxisHorizontal ? 0 : 1;\n var barWidth = retrieveColumnLayout(makeColumnLayout([seriesModel]), baseAxis, seriesModel).width;\n\n if (!(barWidth > LARGE_BAR_MIN_WIDTH)) {\n // jshint ignore:line\n barWidth = LARGE_BAR_MIN_WIDTH;\n }\n\n return {\n progress: function (params, data) {\n var count = params.count;\n var largePoints = new LargeArr(count * 2);\n var largeBackgroundPoints = new LargeArr(count * 2);\n var largeDataIndices = new LargeArr(count);\n var dataIndex;\n var coord = [];\n var valuePair = [];\n var pointsOffset = 0;\n var idxOffset = 0;\n\n while ((dataIndex = params.next()) != null) {\n valuePair[valueDimIdx] = data.get(valueDim, dataIndex);\n valuePair[1 - valueDimIdx] = data.get(baseDim, dataIndex);\n coord = cartesian.dataToPoint(valuePair, null); // Data index might not be in order, depends on `progressiveChunkMode`.\n\n largeBackgroundPoints[pointsOffset] = valueAxisHorizontal ? coordLayout.x + coordLayout.width : coord[0];\n largePoints[pointsOffset++] = coord[0];\n largeBackgroundPoints[pointsOffset] = valueAxisHorizontal ? coord[1] : coordLayout.y + coordLayout.height;\n largePoints[pointsOffset++] = coord[1];\n largeDataIndices[idxOffset++] = dataIndex;\n }\n\n data.setLayout({\n largePoints: largePoints,\n largeDataIndices: largeDataIndices,\n largeBackgroundPoints: largeBackgroundPoints,\n barWidth: barWidth,\n valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false),\n backgroundStart: valueAxisHorizontal ? coordLayout.x : coordLayout.y,\n valueAxisHorizontal: valueAxisHorizontal\n });\n }\n };\n }\n};\n\nfunction isOnCartesian(seriesModel) {\n return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d';\n}\n\nfunction isInLargeMode(seriesModel) {\n return seriesModel.pipelineContext && seriesModel.pipelineContext.large;\n} // See cases in `test/bar-start.html` and `#7412`, `#8747`.\n\n\nfunction getValueAxisStart(baseAxis, valueAxis, stacked) {\n return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/*\n* A third-party license is embeded for some of the code in this file:\n* The \"scaleLevels\" was originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment on the definition of \"scaleLevels\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n// [About UTC and local time zone]:\n// In most cases, `number.parseDate` will treat input data string as local time\n// (except time zone is specified in time string). And `format.formateTime` returns\n// local time by default. option.useUTC is false by default. This design have\n// concidered these common case:\n// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed\n// in local time by default.\n// (2) By default, the input data string (e.g., '2011-01-02') should be displayed\n// as its original time, without any time difference.\n\nimport * as numberUtil from '../util/number';\nimport { ONE_SECOND, ONE_MINUTE, ONE_HOUR, ONE_DAY, ONE_YEAR, format, leveledFormat, getUnitValue, timeUnits, fullLeveledFormatter, getPrimaryTimeUnit, isPrimaryTimeUnit, getDefaultFormatPrecisionOfInterval, fullYearGetterName, monthSetterName, fullYearSetterName, dateSetterName, hoursGetterName, hoursSetterName, minutesSetterName, secondsSetterName, millisecondsSetterName, monthGetterName, dateGetterName, minutesGetterName, secondsGetterName, millisecondsGetterName } from '../util/time';\nimport * as scaleHelper from './helper';\nimport IntervalScale from './Interval';\nimport Scale from './Scale';\nimport { warn } from '../util/log';\nimport { filter, map } from 'zrender/lib/core/util'; // FIXME 公用?\n\nvar bisect = function (a, x, lo, hi) {\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n\n if (a[mid][1] < x) {\n lo = mid + 1;\n } else {\n hi = mid;\n }\n }\n\n return lo;\n};\n\nvar TimeScale =\n/** @class */\nfunction (_super) {\n __extends(TimeScale, _super);\n\n function TimeScale(settings) {\n var _this = _super.call(this, settings) || this;\n\n _this.type = 'time';\n return _this;\n }\n /**\n * Get label is mainly for other components like dataZoom, tooltip.\n */\n\n\n TimeScale.prototype.getLabel = function (tick) {\n var useUTC = this.getSetting('useUTC');\n return format(tick.value, fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))] || fullLeveledFormatter.second, useUTC, this.getSetting('locale'));\n };\n\n TimeScale.prototype.getFormattedLabel = function (tick, idx, labelFormatter) {\n var isUTC = this.getSetting('useUTC');\n var lang = this.getSetting('locale');\n return leveledFormat(tick, idx, labelFormatter, lang, isUTC);\n };\n /**\n * @override\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n\n\n TimeScale.prototype.getTicks = function (expandToNicedExtent) {\n var interval = this._interval;\n var extent = this._extent;\n var ticks = []; // If interval is 0, return [];\n\n if (!interval) {\n return ticks;\n }\n\n ticks.push({\n value: extent[0],\n level: 0\n });\n var useUTC = this.getSetting('useUTC');\n var innerTicks = getIntervalTicks(this._minLevelUnit, this._approxInterval, useUTC, extent);\n ticks = ticks.concat(innerTicks);\n ticks.push({\n value: extent[1],\n level: 0\n });\n return ticks;\n };\n\n TimeScale.prototype.niceExtent = function (opt) {\n var extent = this._extent; // If extent start and end are same, expand them\n\n if (extent[0] === extent[1]) {\n // Expand extent\n extent[0] -= ONE_DAY;\n extent[1] += ONE_DAY;\n } // If there are no data and extent are [Infinity, -Infinity]\n\n\n if (extent[1] === -Infinity && extent[0] === Infinity) {\n var d = new Date();\n extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());\n extent[0] = extent[1] - ONE_DAY;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n };\n\n TimeScale.prototype.niceTicks = function (approxTickNum, minInterval, maxInterval) {\n approxTickNum = approxTickNum || 10;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n this._approxInterval = span / approxTickNum;\n\n if (minInterval != null && this._approxInterval < minInterval) {\n this._approxInterval = minInterval;\n }\n\n if (maxInterval != null && this._approxInterval > maxInterval) {\n this._approxInterval = maxInterval;\n }\n\n var scaleIntervalsLen = scaleIntervals.length;\n var idx = Math.min(bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen), scaleIntervalsLen - 1); // Interval that can be used to calculate ticks\n\n this._interval = scaleIntervals[idx][1]; // Min level used when picking ticks from top down.\n // We check one more level to avoid the ticks are to sparse in some case.\n\n this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0];\n };\n\n TimeScale.prototype.parse = function (val) {\n // val might be float.\n return typeof val === 'number' ? val : +numberUtil.parseDate(val);\n };\n\n TimeScale.prototype.contain = function (val) {\n return scaleHelper.contain(this.parse(val), this._extent);\n };\n\n TimeScale.prototype.normalize = function (val) {\n return scaleHelper.normalize(this.parse(val), this._extent);\n };\n\n TimeScale.prototype.scale = function (val) {\n return scaleHelper.scale(val, this._extent);\n };\n\n TimeScale.type = 'time';\n return TimeScale;\n}(IntervalScale);\n/**\n * This implementation was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\n\nvar scaleIntervals = [// Format interval\n['second', ONE_SECOND], ['minute', ONE_MINUTE], ['hour', ONE_HOUR], ['quarter-day', ONE_HOUR * 6], ['half-day', ONE_HOUR * 12], ['day', ONE_DAY * 1.2], ['half-week', ONE_DAY * 3.5], ['week', ONE_DAY * 7], ['month', ONE_DAY * 31], ['quarter', ONE_DAY * 95], ['half-year', ONE_YEAR / 2], ['year', ONE_YEAR] // 1Y\n];\n\nfunction isUnitValueSame(unit, valueA, valueB, isUTC) {\n var dateA = numberUtil.parseDate(valueA);\n var dateB = numberUtil.parseDate(valueB);\n\n var isSame = function (unit) {\n return getUnitValue(dateA, unit, isUTC) === getUnitValue(dateB, unit, isUTC);\n };\n\n var isSameYear = function () {\n return isSame('year');\n }; // const isSameHalfYear = () => isSameYear() && isSame('half-year');\n // const isSameQuater = () => isSameYear() && isSame('quarter');\n\n\n var isSameMonth = function () {\n return isSameYear() && isSame('month');\n };\n\n var isSameDay = function () {\n return isSameMonth() && isSame('day');\n }; // const isSameHalfDay = () => isSameDay() && isSame('half-day');\n\n\n var isSameHour = function () {\n return isSameDay() && isSame('hour');\n };\n\n var isSameMinute = function () {\n return isSameHour() && isSame('minute');\n };\n\n var isSameSecond = function () {\n return isSameMinute() && isSame('second');\n };\n\n var isSameMilliSecond = function () {\n return isSameSecond() && isSame('millisecond');\n };\n\n switch (unit) {\n case 'year':\n return isSameYear();\n\n case 'month':\n return isSameMonth();\n\n case 'day':\n return isSameDay();\n\n case 'hour':\n return isSameHour();\n\n case 'minute':\n return isSameMinute();\n\n case 'second':\n return isSameSecond();\n\n case 'millisecond':\n return isSameMilliSecond();\n }\n} // const primaryUnitGetters = {\n// year: fullYearGetterName(),\n// month: monthGetterName(),\n// day: dateGetterName(),\n// hour: hoursGetterName(),\n// minute: minutesGetterName(),\n// second: secondsGetterName(),\n// millisecond: millisecondsGetterName()\n// };\n// const primaryUnitUTCGetters = {\n// year: fullYearGetterName(true),\n// month: monthGetterName(true),\n// day: dateGetterName(true),\n// hour: hoursGetterName(true),\n// minute: minutesGetterName(true),\n// second: secondsGetterName(true),\n// millisecond: millisecondsGetterName(true)\n// };\n// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {\n// step = step || 1;\n// switch (getPrimaryTimeUnit(unitName)) {\n// case 'year':\n// date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);\n// break;\n// case 'month':\n// date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);\n// break;\n// case 'day':\n// date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);\n// break;\n// case 'hour':\n// date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);\n// break;\n// case 'minute':\n// date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);\n// break;\n// case 'second':\n// date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);\n// break;\n// case 'millisecond':\n// date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);\n// break;\n// }\n// return date.getTime();\n// }\n// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];\n// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];\n// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];\n\n\nfunction getDateInterval(approxInterval, daysInMonth) {\n approxInterval /= ONE_DAY;\n return approxInterval > 16 ? 16 // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick betwen two month.\n : approxInterval > 7.5 ? 7 // TODO week 7 or day 8?\n : approxInterval > 3.5 ? 4 : approxInterval > 1.5 ? 2 : 1;\n}\n\nfunction getMonthInterval(approxInterval) {\n var APPROX_ONE_MONTH = 30 * ONE_DAY;\n approxInterval /= APPROX_ONE_MONTH;\n return approxInterval > 6 ? 6 : approxInterval > 3 ? 3 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getHourInterval(approxInterval) {\n approxInterval /= ONE_HOUR;\n return approxInterval > 12 ? 12 : approxInterval > 6 ? 6 : approxInterval > 3.5 ? 4 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMinutesAndSecondsInterval(approxInterval, isMinutes) {\n approxInterval /= isMinutes ? ONE_MINUTE : ONE_SECOND;\n return approxInterval > 30 ? 30 : approxInterval > 20 ? 20 : approxInterval > 15 ? 15 : approxInterval > 10 ? 10 : approxInterval > 5 ? 5 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMillisecondsInterval(approxInterval) {\n return numberUtil.nice(approxInterval, true);\n}\n\nfunction getFirstTimestampOfUnit(date, unitName, isUTC) {\n var outDate = new Date(date);\n\n switch (getPrimaryTimeUnit(unitName)) {\n case 'year':\n case 'month':\n outDate[monthSetterName(isUTC)](0);\n\n case 'day':\n outDate[dateSetterName(isUTC)](1);\n\n case 'hour':\n outDate[hoursSetterName(isUTC)](0);\n\n case 'minute':\n outDate[minutesSetterName(isUTC)](0);\n\n case 'second':\n outDate[secondsSetterName(isUTC)](0);\n outDate[millisecondsSetterName(isUTC)](0);\n }\n\n return outDate.getTime();\n}\n\nfunction getIntervalTicks(bottomUnitName, approxInterval, isUTC, extent) {\n var safeLimit = 10000;\n var unitNames = timeUnits;\n var iter = 0;\n\n function addTicksInSpan(interval, minTimestamp, maxTimestamp, getMethodName, setMethodName, isDate, out) {\n var date = new Date(minTimestamp);\n var dateTime = minTimestamp;\n var d = date[getMethodName](); // if (isDate) {\n // d -= 1; // Starts with 0; PENDING\n // }\n\n while (dateTime < maxTimestamp && dateTime <= extent[1]) {\n out.push({\n value: dateTime\n });\n d += interval;\n date[setMethodName](d);\n dateTime = date.getTime();\n } // This extra tick is for calcuating ticks of next level. Will not been added to the final result\n\n\n out.push({\n value: dateTime,\n notAdd: true\n });\n }\n\n function addLevelTicks(unitName, lastLevelTicks, levelTicks) {\n var newAddedTicks = [];\n var isFirstLevel = !lastLevelTicks.length;\n\n if (isUnitValueSame(getPrimaryTimeUnit(unitName), extent[0], extent[1], isUTC)) {\n return;\n }\n\n if (isFirstLevel) {\n lastLevelTicks = [{\n // TODO Optimize. Not include so may ticks.\n value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC)\n }, {\n value: extent[1]\n }];\n }\n\n for (var i = 0; i < lastLevelTicks.length - 1; i++) {\n var startTick = lastLevelTicks[i].value;\n var endTick = lastLevelTicks[i + 1].value;\n\n if (startTick === endTick) {\n continue;\n }\n\n var interval = void 0;\n var getterName = void 0;\n var setterName = void 0;\n var isDate = false;\n\n switch (unitName) {\n case 'year':\n interval = Math.max(1, Math.round(approxInterval / ONE_DAY / 365));\n getterName = fullYearGetterName(isUTC);\n setterName = fullYearSetterName(isUTC);\n break;\n\n case 'half-year':\n case 'quarter':\n case 'month':\n interval = getMonthInterval(approxInterval);\n getterName = monthGetterName(isUTC);\n setterName = monthSetterName(isUTC);\n break;\n\n case 'week': // PENDING If week is added. Ignore day.\n\n case 'half-week':\n case 'day':\n interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16\n\n getterName = dateGetterName(isUTC);\n setterName = dateSetterName(isUTC);\n isDate = true;\n break;\n\n case 'half-day':\n case 'quarter-day':\n case 'hour':\n interval = getHourInterval(approxInterval);\n getterName = hoursGetterName(isUTC);\n setterName = hoursSetterName(isUTC);\n break;\n\n case 'minute':\n interval = getMinutesAndSecondsInterval(approxInterval, true);\n getterName = minutesGetterName(isUTC);\n setterName = minutesSetterName(isUTC);\n break;\n\n case 'second':\n interval = getMinutesAndSecondsInterval(approxInterval, false);\n getterName = secondsGetterName(isUTC);\n setterName = secondsSetterName(isUTC);\n break;\n\n case 'millisecond':\n interval = getMillisecondsInterval(approxInterval);\n getterName = millisecondsGetterName(isUTC);\n setterName = millisecondsSetterName(isUTC);\n break;\n }\n\n addTicksInSpan(interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks);\n\n if (unitName === 'year' && levelTicks.length > 1 && i === 0) {\n // Add nearest years to the left extent.\n levelTicks.unshift({\n value: levelTicks[0].value - interval\n });\n }\n }\n\n for (var i = 0; i < newAddedTicks.length; i++) {\n levelTicks.push(newAddedTicks[i]);\n } // newAddedTicks.length && console.log(unitName, newAddedTicks);\n\n\n return newAddedTicks;\n }\n\n var levelsTicks = [];\n var currentLevelTicks = [];\n var tickCount = 0;\n var lastLevelTickCount = 0;\n\n for (var i = 0; i < unitNames.length && iter++ < safeLimit; ++i) {\n var primaryTimeUnit = getPrimaryTimeUnit(unitNames[i]);\n\n if (!isPrimaryTimeUnit(unitNames[i])) {\n // TODO\n continue;\n }\n\n addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks);\n var nextPrimaryTimeUnit = unitNames[i + 1] ? getPrimaryTimeUnit(unitNames[i + 1]) : null;\n\n if (primaryTimeUnit !== nextPrimaryTimeUnit) {\n if (currentLevelTicks.length) {\n lastLevelTickCount = tickCount; // Remove the duplicate so the tick count can be precisely.\n\n currentLevelTicks.sort(function (a, b) {\n return a.value - b.value;\n });\n var levelTicksRemoveDuplicated = [];\n\n for (var i_1 = 0; i_1 < currentLevelTicks.length; ++i_1) {\n var tickValue = currentLevelTicks[i_1].value;\n\n if (i_1 === 0 || currentLevelTicks[i_1 - 1].value !== tickValue) {\n levelTicksRemoveDuplicated.push(currentLevelTicks[i_1]);\n\n if (tickValue >= extent[0] && tickValue <= extent[1]) {\n tickCount++;\n }\n }\n }\n\n var targetTickNum = (extent[1] - extent[0]) / approxInterval; // Added too much in this level and not too less in last level\n\n if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) {\n break;\n } // Only treat primary time unit as one level.\n\n\n levelsTicks.push(levelTicksRemoveDuplicated);\n\n if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) {\n break;\n }\n } // Reset if next unitName is primary\n\n\n currentLevelTicks = [];\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (iter >= safeLimit) {\n warn('Exceed safe limit.');\n }\n }\n\n var levelsTicksInExtent = filter(map(levelsTicks, function (levelTicks) {\n return filter(levelTicks, function (tick) {\n return tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd;\n });\n }), function (levelTicks) {\n return levelTicks.length > 0;\n });\n var ticks = [];\n var maxLevel = levelsTicksInExtent.length - 1;\n\n for (var i = 0; i < levelsTicksInExtent.length; ++i) {\n var levelTicks = levelsTicksInExtent[i];\n\n for (var k = 0; k < levelTicks.length; ++k) {\n ticks.push({\n value: levelTicks[k].value,\n level: maxLevel - i\n });\n }\n }\n\n ticks.sort(function (a, b) {\n return a.value - b.value;\n }); // Remove duplicates\n\n var result = [];\n\n for (var i = 0; i < ticks.length; ++i) {\n if (i === 0 || ticks[i].value !== ticks[i - 1].value) {\n result.push(ticks[i]);\n }\n }\n\n return result;\n}\n\nScale.registerClass(TimeScale);\nexport default TimeScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Scale from './Scale';\nimport * as numberUtil from '../util/number';\nimport * as scaleHelper from './helper'; // Use some method of IntervalScale\n\nimport IntervalScale from './Interval';\nvar scaleProto = Scale.prototype; // FIXME:TS refactor: not good to call it directly with `this`?\n\nvar intervalScaleProto = IntervalScale.prototype;\nvar roundingErrorFix = numberUtil.round;\nvar mathFloor = Math.floor;\nvar mathCeil = Math.ceil;\nvar mathPow = Math.pow;\nvar mathLog = Math.log;\n\nvar LogScale =\n/** @class */\nfunction (_super) {\n __extends(LogScale, _super);\n\n function LogScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'log';\n _this.base = 10;\n _this._originalScale = new IntervalScale(); // FIXME:TS actually used by `IntervalScale`\n\n _this._interval = 0;\n return _this;\n }\n /**\n * @param Whether expand the ticks to niced extent.\n */\n\n\n LogScale.prototype.getTicks = function (expandToNicedExtent) {\n var originalScale = this._originalScale;\n var extent = this._extent;\n var originalExtent = originalScale.getExtent();\n var ticks = intervalScaleProto.getTicks.call(this, expandToNicedExtent);\n return zrUtil.map(ticks, function (tick) {\n var val = tick.value;\n var powVal = numberUtil.round(mathPow(this.base, val)); // Fix #4158\n\n powVal = val === extent[0] && this._fixMin ? fixRoundingError(powVal, originalExtent[0]) : powVal;\n powVal = val === extent[1] && this._fixMax ? fixRoundingError(powVal, originalExtent[1]) : powVal;\n return {\n value: powVal\n };\n }, this);\n };\n\n LogScale.prototype.setExtent = function (start, end) {\n var base = this.base;\n start = mathLog(start) / mathLog(base);\n end = mathLog(end) / mathLog(base);\n intervalScaleProto.setExtent.call(this, start, end);\n };\n /**\n * @return {number} end\n */\n\n\n LogScale.prototype.getExtent = function () {\n var base = this.base;\n var extent = scaleProto.getExtent.call(this);\n extent[0] = mathPow(base, extent[0]);\n extent[1] = mathPow(base, extent[1]); // Fix #4158\n\n var originalScale = this._originalScale;\n var originalExtent = originalScale.getExtent();\n this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));\n this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));\n return extent;\n };\n\n LogScale.prototype.unionExtent = function (extent) {\n this._originalScale.unionExtent(extent);\n\n var base = this.base;\n extent[0] = mathLog(extent[0]) / mathLog(base);\n extent[1] = mathLog(extent[1]) / mathLog(base);\n scaleProto.unionExtent.call(this, extent);\n };\n\n LogScale.prototype.unionExtentFromData = function (data, dim) {\n // TODO\n // filter value that <= 0\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * Update interval and extent of intervals for nice ticks\n * @param approxTickNum default 10 Given approx tick number\n */\n\n\n LogScale.prototype.niceTicks = function (approxTickNum) {\n approxTickNum = approxTickNum || 10;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n\n if (span === Infinity || span <= 0) {\n return;\n }\n\n var interval = numberUtil.quantity(span);\n var err = approxTickNum / span * interval; // Filter ticks to get closer to the desired count.\n\n if (err <= 0.5) {\n interval *= 10;\n } // Interval should be integer\n\n\n while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {\n interval *= 10;\n }\n\n var niceExtent = [numberUtil.round(mathCeil(extent[0] / interval) * interval), numberUtil.round(mathFloor(extent[1] / interval) * interval)];\n this._interval = interval;\n this._niceExtent = niceExtent;\n };\n\n LogScale.prototype.niceExtent = function (opt) {\n intervalScaleProto.niceExtent.call(this, opt);\n this._fixMin = opt.fixMin;\n this._fixMax = opt.fixMax;\n };\n\n LogScale.prototype.parse = function (val) {\n return val;\n };\n\n LogScale.prototype.contain = function (val) {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.contain(val, this._extent);\n };\n\n LogScale.prototype.normalize = function (val) {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.normalize(val, this._extent);\n };\n\n LogScale.prototype.scale = function (val) {\n val = scaleHelper.scale(val, this._extent);\n return mathPow(this.base, val);\n };\n\n LogScale.type = 'log';\n return LogScale;\n}(Scale);\n\nvar proto = LogScale.prototype;\nproto.getMinorTicks = intervalScaleProto.getMinorTicks;\nproto.getLabel = intervalScaleProto.getLabel;\n\nfunction fixRoundingError(val, originalVal) {\n return roundingErrorFix(val, numberUtil.getPrecision(originalVal));\n}\n\nScale.registerClass(LogScale);\nexport default LogScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/lib/core/util';\nimport { parsePercent } from 'zrender/lib/contain/text';\n\nvar ScaleRawExtentInfo =\n/** @class */\nfunction () {\n function ScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\n originalExtent) {\n this._prepareParams(scale, model, originalExtent);\n }\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n\n\n ScaleRawExtentInfo.prototype._prepareParams = function (scale, model, // Usually: data extent from all series on this axis.\n dataExtent) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n var isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = model.getNeedCrossZero && model.getNeedCrossZero();\n var modelMinRaw = this._modelMinRaw = model.get('min', true);\n\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n var modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n } else {\n var boundaryGap = model.get('boundaryGap');\n var boundaryGapArr = isArray(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., \"20%\". Currently, ' + 'boundaryGap is set to be 0.');\n }\n\n this._boundaryGapInner = [0, 0];\n } else {\n this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];\n }\n }\n };\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n\n\n ScaleRawExtentInfo.prototype.calculate = function () {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n var isOrdinal = this._isOrdinal;\n var dataMin = this._dataMin;\n var dataMax = this._dataMax;\n var axisDataLen = this._axisDataLen;\n var boundaryGapInner = this._boundaryGapInner;\n var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null; // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n\n var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum; // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n\n var minFixed = min != null;\n var maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span;\n }\n\n if (max == null) {\n max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n\n if (min > max) {\n min = NaN;\n max = NaN;\n }\n\n var isBlank = eqNaN(min) || eqNaN(max) || isOrdinal && !axisDataLen; // If data extent modified, need to recalculated to ensure cross zero.\n\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0; // minFixed = true;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0; // maxFixed = true;\n } // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n\n }\n\n var determinedMin = this._determinedMin;\n var determinedMax = this._determinedMax;\n\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n } // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n\n\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n };\n\n ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen);\n }\n\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n };\n\n ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) {\n var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen // Earse them usually means logic flaw.\n && this[attr] == null);\n }\n\n this[attr] = val;\n };\n\n ScaleRawExtentInfo.prototype.freeze = function () {\n // @ts-ignore\n this.frozen = true;\n };\n\n return ScaleRawExtentInfo;\n}();\n\nexport { ScaleRawExtentInfo };\nvar DETERMINED_MIN_MAX_ATTR = {\n min: '_determinedMin',\n max: '_determinedMax'\n};\nvar DATA_MIN_MAX_ATTR = {\n min: '_dataMin',\n max: '_dataMax'\n};\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\n\nexport function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\noriginalExtent) {\n // Do not permit to recreate.\n var rawExtentInfo = scale.rawExtentInfo;\n\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\n scale.rawExtentInfo = rawExtentInfo;\n return rawExtentInfo;\n}\nexport function parseAxisModelMinMax(scale, minMax) {\n return minMax == null ? null : eqNaN(minMax) ? NaN : scale.parse(minMax);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport OrdinalScale from '../scale/Ordinal';\nimport IntervalScale from '../scale/Interval';\nimport Scale from '../scale/Scale';\nimport { prepareLayoutBarSeries, makeColumnLayout, retrieveColumnLayout } from '../layout/barGrid';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport TimeScale from '../scale/Time';\nimport LogScale from '../scale/Log';\nimport { getStackedDimension } from '../data/helper/dataStackHelper';\nimport { ensureScaleRawExtentInfo } from './scaleRawExtentInfo';\n/**\n * Get axis scale extent before niced.\n * Item of returned array can only be number (including Infinity and NaN).\n *\n * Caution:\n * Precondition of calling this method:\n * The scale extent has been initialized using series data extent via\n * `scale.setExtent` or `scale.unionExtentFromData`;\n */\n\nexport function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n scale.setBlank(rawExtentResult.isBlank);\n var min = rawExtentResult.min;\n var max = rawExtentResult.max; // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries_1 = false;\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries_1) {\n // Calculate placement of bars on axis. TODO should be decoupled\n // with barLayout\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return {\n extent: [min, max],\n // \"fix\" means \"fixed\", the value should not be\n // changed in the subsequent steps.\n fixMin: rawExtentResult.minFixed,\n fixMax: rawExtentResult.maxFixed\n };\n}\n\nfunction adjustScaleForOverflow(min, max, model, // Only support cartesian coord yet.\nbarWidthAndOffset) {\n // Get Axis Length\n var axisExtent = model.axis.getExtent();\n var axisLength = axisExtent[1] - axisExtent[0]; // Get bars on current base axis and calculate min and max overflow\n\n var barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);\n\n if (barsOnCurrentAxis === undefined) {\n return {\n min: min,\n max: max\n };\n }\n\n var minOverflow = Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n minOverflow = Math.min(item.offset, minOverflow);\n });\n var maxOverflow = -Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n maxOverflow = Math.max(item.offset + item.width, maxOverflow);\n });\n minOverflow = Math.abs(minOverflow);\n maxOverflow = Math.abs(maxOverflow);\n var totalOverFlow = minOverflow + maxOverflow; // Calculate required buffer based on old range and overflow\n\n var oldRange = max - min;\n var oldRangePercentOfNew = 1 - (minOverflow + maxOverflow) / axisLength;\n var overflowBuffer = oldRange / oldRangePercentOfNew - oldRange;\n max += overflowBuffer * (maxOverflow / totalOverFlow);\n min -= overflowBuffer * (minOverflow / totalOverFlow);\n return {\n min: min,\n max: max\n };\n} // Precondition of calling this method:\n// The scale extent has been initailized using series data extent via\n// `scale.setExtent` or `scale.unionExtentFromData`;\n\n\nexport function niceScaleExtent(scale, model) {\n var extentInfo = getScaleExtent(scale, model);\n var extent = extentInfo.extent;\n var splitNumber = model.get('splitNumber');\n\n if (scale instanceof LogScale) {\n scale.base = model.get('logBase');\n }\n\n var scaleType = scale.type;\n scale.setExtent(extent[0], extent[1]);\n scale.niceExtent({\n splitNumber: splitNumber,\n fixMin: extentInfo.fixMin,\n fixMax: extentInfo.fixMax,\n minInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('minInterval') : null,\n maxInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('maxInterval') : null\n }); // If some one specified the min, max. And the default calculated interval\n // is not good enough. He can specify the interval. It is often appeared\n // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n // to be 60.\n // FIXME\n\n var interval = model.get('interval');\n\n if (interval != null) {\n scale.setInterval && scale.setInterval(interval);\n }\n}\n/**\n * @param axisType Default retrieve from model.type\n */\n\nexport function createScaleByModel(model, axisType) {\n axisType = axisType || model.get('type');\n\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getOrdinalMeta ? model.getOrdinalMeta() : model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n\n default:\n // case 'value'/'interval', 'log', or others.\n return new (Scale.getClass(axisType) || IntervalScale)();\n }\n }\n}\n/**\n * Check if the axis cross 0\n */\n\nexport function ifAxisCrossZero(axis) {\n var dataExtent = axis.scale.getExtent();\n var min = dataExtent[0];\n var max = dataExtent[1];\n return !(min > 0 && max > 0 || min < 0 && max < 0);\n}\n/**\n * @param axis\n * @return Label formatter function.\n * param: {number} tickValue,\n * param: {number} idx, the index in all ticks.\n * If category axis, this param is not required.\n * return: {string} label string.\n */\n\nexport function makeLabelFormatter(axis) {\n var labelFormatter = axis.getLabelModel().get('formatter');\n var categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null;\n\n if (axis.scale.type === 'time') {\n return function (tpl) {\n return function (tick, idx) {\n return axis.scale.getFormattedLabel(tick, idx, tpl);\n };\n }(labelFormatter);\n } else if (typeof labelFormatter === 'string') {\n return function (tpl) {\n return function (tick) {\n // For category axis, get raw value; for numeric axis,\n // get formatted label like '1,333,444'.\n var label = axis.scale.getLabel(tick);\n var text = tpl.replace('{value}', label != null ? label : '');\n return text;\n };\n }(labelFormatter);\n } else if (typeof labelFormatter === 'function') {\n return function (cb) {\n return function (tick, idx) {\n // The original intention of `idx` is \"the index of the tick in all ticks\".\n // But the previous implementation of category axis do not consider the\n // `axisLabel.interval`, which cause that, for example, the `interval` is\n // `1`, then the ticks \"name5\", \"name7\", \"name9\" are displayed, where the\n // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep\n // the definition here for back compatibility.\n if (categoryTickStart != null) {\n idx = tick.value - categoryTickStart;\n }\n\n return cb(getAxisRawValue(axis, tick), idx, tick.level != null ? {\n level: tick.level\n } : null);\n };\n }(labelFormatter);\n } else {\n return function (tick) {\n return axis.scale.getLabel(tick);\n };\n }\n}\nexport function getAxisRawValue(axis, tick) {\n // In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value;\n}\n/**\n * @param axis\n * @return Be null/undefined if no labels.\n */\n\nexport function estimateLabelUnionRect(axis) {\n var axisModel = axis.model;\n var scale = axis.scale;\n\n if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) {\n return;\n }\n\n var realNumberScaleTicks;\n var tickCount;\n var categoryScaleExtent = scale.getExtent(); // Optimize for large category data, avoid call `getTicks()`.\n\n if (scale instanceof OrdinalScale) {\n tickCount = scale.count();\n } else {\n realNumberScaleTicks = scale.getTicks();\n tickCount = realNumberScaleTicks.length;\n }\n\n var axisLabelModel = axis.getLabelModel();\n var labelFormatter = makeLabelFormatter(axis);\n var rect;\n var step = 1; // Simple optimization for large amount of labels\n\n if (tickCount > 40) {\n step = Math.ceil(tickCount / 40);\n }\n\n for (var i = 0; i < tickCount; i += step) {\n var tick = realNumberScaleTicks ? realNumberScaleTicks[i] : {\n value: categoryScaleExtent[0] + i\n };\n var label = labelFormatter(tick, i);\n var unrotatedSingleRect = axisLabelModel.getTextRect(label);\n var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);\n rect ? rect.union(singleRect) : rect = singleRect;\n }\n\n return rect;\n}\n\nfunction rotateTextRect(textRect, rotate) {\n var rotateRadians = rotate * Math.PI / 180;\n var beforeWidth = textRect.width;\n var beforeHeight = textRect.height;\n var afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians)) + Math.abs(beforeHeight * Math.sin(rotateRadians));\n var afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians)) + Math.abs(beforeHeight * Math.cos(rotateRadians));\n var rotatedRect = new BoundingRect(textRect.x, textRect.y, afterWidth, afterHeight);\n return rotatedRect;\n}\n/**\n * @param model axisLabelModel or axisTickModel\n * @return {number|String} Can be null|'auto'|number|function\n */\n\n\nexport function getOptionCategoryInterval(model) {\n var interval = model.get('interval');\n return interval == null ? 'auto' : interval;\n}\n/**\n * Set `categoryInterval` as 0 implicitly indicates that\n * show all labels reguardless of overlap.\n * @param {Object} axis axisModel.axis\n */\n\nexport function shouldShowAllLabels(axis) {\n return axis.type === 'category' && getOptionCategoryInterval(axis.getLabelModel()) === 0;\n}\nexport function getDataDimensionsOnAxis(data, axisDim) {\n // Remove duplicated dat dimensions caused by `getStackedDimension`.\n var dataDimMap = {}; // Currently `mapDimensionsAll` will contain stack result dimension ('__\\0ecstackresult').\n // PENDING: is it reasonable? Do we need to remove the original dim from \"coord dim\" since\n // there has been stacked result dim?\n\n zrUtil.each(data.mapDimensionsAll(axisDim), function (dataDim) {\n // For example, the extent of the original dimension\n // is [0.1, 0.5], the extent of the `stackResultDimension`\n // is [7, 9], the final extent should NOT include [0.1, 0.5],\n // because there is no graphic corresponding to [0.1, 0.5].\n // See the case in `test/area-stack.html` `main1`, where area line\n // stack needs `yAxis` not start from 0.\n dataDimMap[getStackedDimension(data, dataDim)] = true;\n });\n return zrUtil.keys(dataDimMap);\n}\nexport function unionAxisExtentFromData(dataExtent, data, axisDim) {\n if (data) {\n zrUtil.each(getDataDimensionsOnAxis(data, axisDim), function (dim) {\n var seriesExtent = data.getApproximateExtent(dim);\n seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);\n seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar AxisModelCommonMixin =\n/** @class */\nfunction () {\n function AxisModelCommonMixin() {}\n\n AxisModelCommonMixin.prototype.getNeedCrossZero = function () {\n var option = this.option;\n return !option.scale;\n };\n /**\n * Should be implemented by each axis model if necessary.\n * @return coordinate system model\n */\n\n\n AxisModelCommonMixin.prototype.getCoordSysModel = function () {\n return;\n };\n\n return AxisModelCommonMixin;\n}();\n\nexport { AxisModelCommonMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module exposes helper functions for developing extensions.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListFromArray from '../../chart/helper/createListFromArray'; // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge';\n\nimport * as axisHelper from '../../coord/axisHelper';\nimport { AxisModelCommonMixin } from '../../coord/axisModelCommonMixin';\nimport Model from '../../model/Model';\nimport { getLayoutRect } from '../../util/layout';\nimport { enableDataStack, isDimensionStacked, getStackedDimension } from '../../data/helper/dataStackHelper';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle as innerCreateTextStyle } from '../../label/labelStyle';\n/**\n * Create a muti dimension List structure from seriesModel.\n */\n\nexport function createList(seriesModel) {\n return createListFromArray(seriesModel.getSource(), seriesModel);\n} // export function createGraph(seriesModel) {\n// let nodes = seriesModel.get('data');\n// let links = seriesModel.get('links');\n// return createGraphFromNodeEdge(nodes, links, seriesModel);\n// }\n\nexport { getLayoutRect };\nexport { default as createDimensions } from '../../data/helper/createDimensions';\nexport var dataStack = {\n isDimensionStacked: isDimensionStacked,\n enableDataStack: enableDataStack,\n getStackedDimension: getStackedDimension\n};\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n * @param {string} symbolDesc\n * @param {number} x\n * @param {number} y\n * @param {number} w\n * @param {number} h\n * @param {string} color\n */\n\nexport { createSymbol } from '../../util/symbol';\n/**\n * Create scale\n * @param {Array.} dataExtent\n * @param {Object|module:echarts/Model} option If `optoin.type`\n * is secified, it can only be `'value'` currently.\n */\n\nexport function createScale(dataExtent, option) {\n var axisModel = option;\n\n if (!(option instanceof Model)) {\n axisModel = new Model(option); // FIXME\n // Currently AxisModelCommonMixin has nothing to do with the\n // the requirements of `axisHelper.createScaleByModel`. For\n // example the method `getCategories` and `getOrdinalMeta`\n // are required for `'category'` axis, and ecModel are required\n // for `'time'` axis. But occationally echarts-gl happened\n // to only use `'value'` axis.\n // zrUtil.mixin(axisModel, AxisModelCommonMixin);\n }\n\n var scale = axisHelper.createScaleByModel(axisModel);\n scale.setExtent(dataExtent[0], dataExtent[1]);\n axisHelper.niceScaleExtent(scale, axisModel);\n return scale;\n}\n/**\n * Mixin common methods to axis model,\n *\n * Inlcude methods\n * `getFormattedLabels() => Array.`\n * `getCategories() => Array.`\n * `getMin(origin: boolean) => number`\n * `getMax(origin: boolean) => number`\n * `getNeedCrossZero() => boolean`\n */\n\nexport function mixinAxisModelCommonMethods(Model) {\n zrUtil.mixin(Model, AxisModelCommonMixin);\n}\nexport { getECData };\nexport { enableHoverEmphasis } from '../../util/states';\nexport function createTextStyle(textStyleModel, opts) {\n opts = opts || {};\n return innerCreateTextStyle(textStyleModel, null, null, opts.state !== 'normal');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as textContain from 'zrender/lib/contain/text';\nimport { makeInner } from '../util/model';\nimport { makeLabelFormatter, getOptionCategoryInterval, shouldShowAllLabels } from './axisHelper';\nvar inner = makeInner();\nexport function createAxisLabels(axis) {\n // Only ordinal scale support tick interval\n return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis);\n}\n/**\n * @param {module:echats/coord/Axis} axis\n * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.\n * @return {Object} {\n * ticks: Array.\n * tickCategoryInterval: number\n * }\n */\n\nexport function createAxisTicks(axis, tickModel) {\n // Only ordinal scale support tick interval\n return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : {\n ticks: zrUtil.map(axis.scale.getTicks(), function (tick) {\n return tick.value;\n })\n };\n}\n\nfunction makeCategoryLabels(axis) {\n var labelModel = axis.getLabelModel();\n var result = makeCategoryLabelsActually(axis, labelModel);\n return !labelModel.get('show') || axis.scale.isBlank() ? {\n labels: [],\n labelCategoryInterval: result.labelCategoryInterval\n } : result;\n}\n\nfunction makeCategoryLabelsActually(axis, labelModel) {\n var labelsCache = getListCache(axis, 'labels');\n var optionLabelInterval = getOptionCategoryInterval(labelModel);\n var result = listCacheGet(labelsCache, optionLabelInterval);\n\n if (result) {\n return result;\n }\n\n var labels;\n var numericLabelInterval;\n\n if (zrUtil.isFunction(optionLabelInterval)) {\n labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);\n } else {\n numericLabelInterval = optionLabelInterval === 'auto' ? makeAutoCategoryInterval(axis) : optionLabelInterval;\n labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);\n } // Cache to avoid calling interval function repeatly.\n\n\n return listCacheSet(labelsCache, optionLabelInterval, {\n labels: labels,\n labelCategoryInterval: numericLabelInterval\n });\n}\n\nfunction makeCategoryTicks(axis, tickModel) {\n var ticksCache = getListCache(axis, 'ticks');\n var optionTickInterval = getOptionCategoryInterval(tickModel);\n var result = listCacheGet(ticksCache, optionTickInterval);\n\n if (result) {\n return result;\n }\n\n var ticks;\n var tickCategoryInterval; // Optimize for the case that large category data and no label displayed,\n // we should not return all ticks.\n\n if (!tickModel.get('show') || axis.scale.isBlank()) {\n ticks = [];\n }\n\n if (zrUtil.isFunction(optionTickInterval)) {\n ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);\n } // Always use label interval by default despite label show. Consider this\n // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows\n // labels. `splitLine` and `axisTick` should be consistent in this case.\n else if (optionTickInterval === 'auto') {\n var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());\n tickCategoryInterval = labelsResult.labelCategoryInterval;\n ticks = zrUtil.map(labelsResult.labels, function (labelItem) {\n return labelItem.tickValue;\n });\n } else {\n tickCategoryInterval = optionTickInterval;\n ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);\n } // Cache to avoid calling interval function repeatly.\n\n\n return listCacheSet(ticksCache, optionTickInterval, {\n ticks: ticks,\n tickCategoryInterval: tickCategoryInterval\n });\n}\n\nfunction makeRealNumberLabels(axis) {\n var ticks = axis.scale.getTicks();\n var labelFormatter = makeLabelFormatter(axis);\n return {\n labels: zrUtil.map(ticks, function (tick, idx) {\n return {\n formattedLabel: labelFormatter(tick, idx),\n rawLabel: axis.scale.getLabel(tick),\n tickValue: tick.value\n };\n })\n };\n}\n\nfunction getListCache(axis, prop) {\n // Because key can be funciton, and cache size always be small, we use array cache.\n return inner(axis)[prop] || (inner(axis)[prop] = []);\n}\n\nfunction listCacheGet(cache, key) {\n for (var i = 0; i < cache.length; i++) {\n if (cache[i].key === key) {\n return cache[i].value;\n }\n }\n}\n\nfunction listCacheSet(cache, key, value) {\n cache.push({\n key: key,\n value: value\n });\n return value;\n}\n\nfunction makeAutoCategoryInterval(axis) {\n var result = inner(axis).autoInterval;\n return result != null ? result : inner(axis).autoInterval = axis.calculateCategoryInterval();\n}\n/**\n * Calculate interval for category axis ticks and labels.\n * To get precise result, at least one of `getRotate` and `isHorizontal`\n * should be implemented in axis.\n */\n\n\nexport function calculateCategoryInterval(axis) {\n var params = fetchAutoCategoryIntervalCalculationParams(axis);\n var labelFormatter = makeLabelFormatter(axis);\n var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n\n var tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n var step = 1; // Simple optimization. Empirical value: tick count should less than 40.\n\n if (tickCount > 40) {\n step = Math.max(1, Math.floor(tickCount / 40));\n }\n\n var tickValue = ordinalExtent[0];\n var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n var unitW = Math.abs(unitSpan * Math.cos(rotation));\n var unitH = Math.abs(unitSpan * Math.sin(rotation));\n var maxW = 0;\n var maxH = 0; // Caution: Performance sensitive for large category data.\n // Consider dataZoom, we should make appropriate step to avoid O(n) loop.\n\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n var width = 0;\n var height = 0; // Not precise, do not consider align and vertical align\n // and each distance from axis line yet.\n\n var rect = textContain.getBoundingRect(labelFormatter({\n value: tickValue\n }), params.font, 'center', 'top'); // Magic number\n\n width = rect.width * 1.3;\n height = rect.height * 1.3; // Min size, void long loop.\n\n maxW = Math.max(maxW, width, 7);\n maxH = Math.max(maxH, height, 7);\n }\n\n var dw = maxW / unitW;\n var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity.\n\n isNaN(dw) && (dw = Infinity);\n isNaN(dh) && (dh = Infinity);\n var interval = Math.max(0, Math.floor(Math.min(dw, dh)));\n var cache = inner(axis.model);\n var axisExtent = axis.getExtent();\n var lastAutoInterval = cache.lastAutoInterval;\n var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n // For example, if all of the axis labels are `a, b, c, d, e, f, g`.\n // The jitter will cause that sometimes the displayed labels are\n // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).\n\n if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval // If the axis change is caused by chart resize, the cache should not\n // be used. Otherwise some hiden labels might not be shown again.\n && cache.axisExtent0 === axisExtent[0] && cache.axisExtent1 === axisExtent[1]) {\n interval = lastAutoInterval;\n } // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n cache.axisExtent0 = axisExtent[0];\n cache.axisExtent1 = axisExtent[1];\n }\n\n return interval;\n}\n\nfunction fetchAutoCategoryIntervalCalculationParams(axis) {\n var labelModel = axis.getLabelModel();\n return {\n axisRotate: axis.getRotate ? axis.getRotate() : axis.isHorizontal && !axis.isHorizontal() ? 90 : 0,\n labelRotate: labelModel.get('rotate') || 0,\n font: labelModel.getFont()\n };\n}\n\nfunction makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {\n var labelFormatter = makeLabelFormatter(axis);\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent();\n var labelModel = axis.getLabelModel();\n var result = []; // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...\n\n var step = Math.max((categoryInterval || 0) + 1, 1);\n var startTick = ordinalExtent[0];\n var tickCount = ordinalScale.count(); // Calculate start tick based on zero if possible to keep label consistent\n // while zooming and moving while interval > 0. Otherwise the selection\n // of displayable ticks and symbols probably keep changing.\n // 3 is empirical value.\n\n if (startTick !== 0 && step > 1 && tickCount / step > 2) {\n startTick = Math.round(Math.ceil(startTick / step) * step);\n } // (1) Only add min max label here but leave overlap checking\n // to render stage, which also ensure the returned list\n // suitable for splitLine and splitArea rendering.\n // (2) Scales except category always contain min max label so\n // do not need to perform this process.\n\n\n var showAllLabel = shouldShowAllLabels(axis);\n var includeMinLabel = labelModel.get('showMinLabel') || showAllLabel;\n var includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel;\n\n if (includeMinLabel && startTick !== ordinalExtent[0]) {\n addItem(ordinalExtent[0]);\n } // Optimize: avoid generating large array by `ordinalScale.getTicks()`.\n\n\n var tickValue = startTick;\n\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n addItem(tickValue);\n }\n\n if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {\n addItem(ordinalExtent[1]);\n }\n\n function addItem(tickValue) {\n var tickObj = {\n value: tickValue\n };\n result.push(onlyTick ? tickValue : {\n formattedLabel: labelFormatter(tickObj),\n rawLabel: ordinalScale.getLabel(tickObj),\n tickValue: tickValue\n });\n }\n\n return result;\n}\n\nfunction makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) {\n var ordinalScale = axis.scale;\n var labelFormatter = makeLabelFormatter(axis);\n var result = [];\n zrUtil.each(ordinalScale.getTicks(), function (tick) {\n var rawLabel = ordinalScale.getLabel(tick);\n var tickValue = tick.value;\n\n if (categoryInterval(tick.value, rawLabel)) {\n result.push(onlyTick ? tickValue : {\n formattedLabel: labelFormatter(tick),\n rawLabel: rawLabel,\n tickValue: tickValue\n });\n }\n });\n return result;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, map } from 'zrender/lib/core/util';\nimport { linearMap, getPixelPrecision, round } from '../util/number';\nimport { createAxisTicks, createAxisLabels, calculateCategoryInterval } from './axisTickLabelBuilder';\nvar NORMALIZED_EXTENT = [0, 1];\n/**\n * Base class of Axis.\n */\n\nvar Axis =\n/** @class */\nfunction () {\n function Axis(dim, scale, extent) {\n this.onBand = false;\n this.inverse = false;\n this.dim = dim;\n this.scale = scale;\n this._extent = extent || [0, 0];\n }\n /**\n * If axis extent contain given coord\n */\n\n\n Axis.prototype.contain = function (coord) {\n var extent = this._extent;\n var min = Math.min(extent[0], extent[1]);\n var max = Math.max(extent[0], extent[1]);\n return coord >= min && coord <= max;\n };\n /**\n * If axis extent contain given data\n */\n\n\n Axis.prototype.containData = function (data) {\n return this.scale.contain(data);\n };\n /**\n * Get coord extent.\n */\n\n\n Axis.prototype.getExtent = function () {\n return this._extent.slice();\n };\n /**\n * Get precision used for formatting\n */\n\n\n Axis.prototype.getPixelPrecision = function (dataExtent) {\n return getPixelPrecision(dataExtent || this.scale.getExtent(), this._extent);\n };\n /**\n * Set coord extent\n */\n\n\n Axis.prototype.setExtent = function (start, end) {\n var extent = this._extent;\n extent[0] = start;\n extent[1] = end;\n };\n /**\n * Convert data to coord. Data is the rank if it has an ordinal scale\n */\n\n\n Axis.prototype.dataToCoord = function (data, clamp) {\n var extent = this._extent;\n var scale = this.scale;\n data = scale.normalize(data);\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice();\n fixExtentWithBands(extent, scale.count());\n }\n\n return linearMap(data, NORMALIZED_EXTENT, extent, clamp);\n };\n /**\n * Convert coord to data. Data is the rank if it has an ordinal scale\n */\n\n\n Axis.prototype.coordToData = function (coord, clamp) {\n var extent = this._extent;\n var scale = this.scale;\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice();\n fixExtentWithBands(extent, scale.count());\n }\n\n var t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp);\n return this.scale.scale(t);\n };\n /**\n * Convert pixel point to data in axis\n */\n\n\n Axis.prototype.pointToData = function (point, clamp) {\n // Should be implemented in derived class if necessary.\n return;\n };\n /**\n * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,\n * `axis.getTicksCoords` considers `onBand`, which is used by\n * `boundaryGap:true` of category axis and splitLine and splitArea.\n * @param opt.tickModel default: axis.model.getModel('axisTick')\n * @param opt.clamp If `true`, the first and the last\n * tick must be at the axis end points. Otherwise, clip ticks\n * that outside the axis extent.\n */\n\n\n Axis.prototype.getTicksCoords = function (opt) {\n opt = opt || {};\n var tickModel = opt.tickModel || this.getTickModel();\n var result = createAxisTicks(this, tickModel);\n var ticks = result.ticks;\n var ticksCoords = map(ticks, function (tickVal) {\n return {\n coord: this.dataToCoord(this.scale.type === 'ordinal' ? this.scale.getRawOrdinalNumber(tickVal) : tickVal),\n tickValue: tickVal\n };\n }, this);\n var alignWithLabel = tickModel.get('alignWithLabel');\n fixOnBandTicksCoords(this, ticksCoords, alignWithLabel, opt.clamp);\n return ticksCoords;\n };\n\n Axis.prototype.getMinorTicksCoords = function () {\n if (this.scale.type === 'ordinal') {\n // Category axis doesn't support minor ticks\n return [];\n }\n\n var minorTickModel = this.model.getModel('minorTick');\n var splitNumber = minorTickModel.get('splitNumber'); // Protection.\n\n if (!(splitNumber > 0 && splitNumber < 100)) {\n splitNumber = 5;\n }\n\n var minorTicks = this.scale.getMinorTicks(splitNumber);\n var minorTicksCoords = map(minorTicks, function (minorTicksGroup) {\n return map(minorTicksGroup, function (minorTick) {\n return {\n coord: this.dataToCoord(minorTick),\n tickValue: minorTick\n };\n }, this);\n }, this);\n return minorTicksCoords;\n };\n\n Axis.prototype.getViewLabels = function () {\n return createAxisLabels(this).labels;\n };\n\n Axis.prototype.getLabelModel = function () {\n return this.model.getModel('axisLabel');\n };\n /**\n * Notice here we only get the default tick model. For splitLine\n * or splitArea, we should pass the splitLineModel or splitAreaModel\n * manually when calling `getTicksCoords`.\n * In GL, this method may be overrided to:\n * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`\n */\n\n\n Axis.prototype.getTickModel = function () {\n return this.model.getModel('axisTick');\n };\n /**\n * Get width of band\n */\n\n\n Axis.prototype.getBandWidth = function () {\n var axisExtent = this._extent;\n var dataExtent = this.scale.getExtent();\n var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0); // Fix #2728, avoid NaN when only one data.\n\n len === 0 && (len = 1);\n var size = Math.abs(axisExtent[1] - axisExtent[0]);\n return Math.abs(size) / len;\n };\n /**\n * Only be called in category axis.\n * Can be overrided, consider other axes like in 3D.\n * @return Auto interval for cateogry axis tick and label\n */\n\n\n Axis.prototype.calculateCategoryInterval = function () {\n return calculateCategoryInterval(this);\n };\n\n return Axis;\n}();\n\nfunction fixExtentWithBands(extent, nTick) {\n var size = extent[1] - extent[0];\n var len = nTick;\n var margin = size / len / 2;\n extent[0] += margin;\n extent[1] -= margin;\n} // If axis has labels [1, 2, 3, 4]. Bands on the axis are\n// |---1---|---2---|---3---|---4---|.\n// So the displayed ticks and splitLine/splitArea should between\n// each data item, otherwise cause misleading (e.g., split tow bars\n// of a single data item when there are two bar series).\n// Also consider if tickCategoryInterval > 0 and onBand, ticks and\n// splitLine/spliteArea should layout appropriately corresponding\n// to displayed labels. (So we should not use `getBandWidth` in this\n// case).\n\n\nfunction fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) {\n var ticksLen = ticksCoords.length;\n\n if (!axis.onBand || alignWithLabel || !ticksLen) {\n return;\n }\n\n var axisExtent = axis.getExtent();\n var last;\n var diffSize;\n\n if (ticksLen === 1) {\n ticksCoords[0].coord = axisExtent[0];\n last = ticksCoords[1] = {\n coord: axisExtent[0]\n };\n } else {\n var crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;\n var shift_1 = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;\n each(ticksCoords, function (ticksItem) {\n ticksItem.coord -= shift_1 / 2;\n });\n var dataExtent = axis.scale.getExtent();\n diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue;\n last = {\n coord: ticksCoords[ticksLen - 1].coord + shift_1 * diffSize\n };\n ticksCoords.push(last);\n }\n\n var inverse = axisExtent[0] > axisExtent[1]; // Handling clamp.\n\n if (littleThan(ticksCoords[0].coord, axisExtent[0])) {\n clamp ? ticksCoords[0].coord = axisExtent[0] : ticksCoords.shift();\n }\n\n if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) {\n ticksCoords.unshift({\n coord: axisExtent[0]\n });\n }\n\n if (littleThan(axisExtent[1], last.coord)) {\n clamp ? last.coord = axisExtent[1] : ticksCoords.pop();\n }\n\n if (clamp && littleThan(last.coord, axisExtent[1])) {\n ticksCoords.push({\n coord: axisExtent[1]\n });\n }\n\n function littleThan(a, b) {\n // Avoid rounding error cause calculated tick coord different with extent.\n // It may cause an extra unecessary tick added.\n a = round(a);\n b = round(b);\n return inverse ? a > b : a < b;\n }\n}\n\nexport default Axis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// These APIs are for more advanced usages\n// For example extend charts and components, creating graphic elements, formatting.\nimport ComponentModel from '../model/Component';\nimport ComponentView from '../view/Component';\nimport SeriesModel from '../model/Series';\nimport ChartView from '../view/Chart';\nimport * as zrender_1 from 'zrender/lib/zrender';\nexport { zrender_1 as zrender };\nimport * as matrix_1 from 'zrender/lib/core/matrix';\nexport { matrix_1 as matrix };\nimport * as vector_1 from 'zrender/lib/core/vector';\nexport { vector_1 as vector };\nimport * as zrUtil_1 from 'zrender/lib/core/util';\nexport { zrUtil_1 as zrUtil };\nimport * as color_1 from 'zrender/lib/tool/color';\nexport { color_1 as color };\nexport { throttle } from '../util/throttle';\nimport * as helper_1 from './api/helper';\nexport { helper_1 as helper };\nexport { use } from '../extension'; //////////////// Helper Methods /////////////////////\n\nexport { default as parseGeoJSON } from '../coord/geo/parseGeoJson';\nexport { default as parseGeoJson } from '../coord/geo/parseGeoJson';\nimport * as number_1 from './api/number';\nexport { number_1 as number };\nimport * as time_1 from './api/time';\nexport { time_1 as time };\nimport * as graphic_1 from './api/graphic';\nexport { graphic_1 as graphic };\nimport * as format_1 from './api/format';\nexport { format_1 as format };\nimport * as util_1 from './api/util';\nexport { util_1 as util };\nexport { default as env } from 'zrender/lib/core/env'; //////////////// Export for Exension Usage ////////////////\n\nexport { default as List } from '../data/List';\nexport { default as Model } from '../model/Model';\nexport { default as Axis } from '../coord/Axis';\nexport { ComponentModel, ComponentView, SeriesModel, ChartView }; // Only for GL\n\nexport { brushSingle as innerDrawElementOnCanvas } from 'zrender/lib/canvas/graphic'; //////////////// Deprecated Extension Methods ////////////////\n// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.\n// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:\n// class Bar3DModel extends ComponentModel {}\n// export function install(registers) { regsiters.registerComponentModel(Bar3DModel); }\n// echarts.use(install);\n\nexport function extendComponentModel(proto) {\n var Model = ComponentModel.extend(proto);\n ComponentModel.registerClass(Model);\n return Model;\n}\nexport function extendComponentView(proto) {\n var View = ComponentView.extend(proto);\n ComponentView.registerClass(View);\n return View;\n}\nexport function extendSeriesModel(proto) {\n var Model = SeriesModel.extend(proto);\n SeriesModel.registerClass(Model);\n return Model;\n}\nexport function extendChartView(proto) {\n var View = ChartView.extend(proto);\n ChartView.registerClass(View);\n return View;\n}","export function createElement(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n","function diff(oldArr, newArr, equals) {\n if (!equals) {\n equals = function (a, b) {\n return a === b;\n };\n }\n oldArr = oldArr.slice();\n newArr = newArr.slice();\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath = [{ newPos: -1, components: [] }];\n var oldPos = extractCommon(bestPath[0], newArr, oldArr, 0, equals);\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n var indices = [];\n for (var i = 0; i < newArr.length; i++) {\n indices.push(i);\n }\n return [{\n indices: indices,\n count: newArr.length,\n added: false,\n removed: false\n }];\n }\n function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath;\n var addPath = bestPath[diagonalPath - 1];\n var removePath = bestPath[diagonalPath + 1];\n var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n bestPath[diagonalPath - 1] = undefined;\n }\n var canAdd = addPath && addPath.newPos + 1 < newLen;\n var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;\n if (!canAdd && !canRemove) {\n bestPath[diagonalPath] = undefined;\n continue;\n }\n if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {\n basePath = clonePath(removePath);\n pushComponent(basePath.components, false, true);\n }\n else {\n basePath = addPath;\n basePath.newPos++;\n pushComponent(basePath.components, true, false);\n }\n oldPos = extractCommon(basePath, newArr, oldArr, diagonalPath, equals);\n if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n return buildValues(basePath.components);\n }\n else {\n bestPath[diagonalPath] = basePath;\n }\n }\n editLength++;\n }\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n if (ret) {\n return ret;\n }\n }\n}\nfunction extractCommon(basePath, newArr, oldArr, diagonalPath, equals) {\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var newPos = basePath.newPos;\n var oldPos = newPos - diagonalPath;\n var commonCount = 0;\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && equals(newArr[newPos + 1], oldArr[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n if (commonCount) {\n basePath.components.push({\n count: commonCount,\n added: false,\n removed: false,\n indices: []\n });\n }\n basePath.newPos = newPos;\n return oldPos;\n}\nfunction pushComponent(components, added, removed) {\n var last = components[components.length - 1];\n if (last && last.added === added && last.removed === removed) {\n components[components.length - 1] = {\n count: last.count + 1,\n added: added,\n removed: removed,\n indices: []\n };\n }\n else {\n components.push({\n count: 1,\n added: added,\n removed: removed,\n indices: []\n });\n }\n}\nfunction buildValues(components) {\n var componentPos = 0;\n var componentLen = components.length;\n var newPos = 0;\n var oldPos = 0;\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n if (!component.removed) {\n var indices = [];\n for (var i = newPos; i < newPos + component.count; i++) {\n indices.push(i);\n }\n component.indices = indices;\n newPos += component.count;\n if (!component.added) {\n oldPos += component.count;\n }\n }\n else {\n for (var i = oldPos; i < oldPos + component.count; i++) {\n component.indices.push(i);\n }\n oldPos += component.count;\n }\n }\n return components;\n}\nfunction clonePath(path) {\n return { newPos: path.newPos, components: path.components.slice(0) };\n}\nexport default function arrayDiff(oldArr, newArr, equal) {\n return diff(oldArr, newArr, equal);\n}\n","import { createElement } from './core';\nimport ZRImage from '../graphic/Image';\nimport { DEFAULT_FONT, getLineHeight } from '../contain/text';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nvar NONE = 'none';\nvar mathRound = Math.round;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI = Math.PI;\nvar PI2 = Math.PI * 2;\nvar degree = 180 / PI;\nvar EPSILON = 1e-4;\nfunction round3(val) {\n return mathRound(val * 1e3) / 1e3;\n}\nfunction round4(val) {\n return mathRound(val * 1e4) / 1e4;\n}\nfunction isAroundZero(val) {\n return val < EPSILON && val > -EPSILON;\n}\nfunction pathHasFill(style) {\n var fill = style.fill;\n return fill != null && fill !== NONE;\n}\nfunction pathHasStroke(style) {\n var stroke = style.stroke;\n return stroke != null && stroke !== NONE;\n}\nfunction setTransform(svgEl, m) {\n if (m) {\n attr(svgEl, 'transform', 'matrix('\n + round3(m[0]) + ','\n + round3(m[1]) + ','\n + round3(m[2]) + ','\n + round3(m[3]) + ','\n + round4(m[4]) + ','\n + round4(m[5])\n + ')');\n }\n}\nfunction attr(el, key, val) {\n if (!val || val.type !== 'linear' && val.type !== 'radial') {\n el.setAttribute(key, val);\n }\n}\nfunction attrXLink(el, key, val) {\n el.setAttributeNS('http://www.w3.org/1999/xlink', key, val);\n}\nfunction attrXML(el, key, val) {\n el.setAttributeNS('http://www.w3.org/XML/1998/namespace', key, val);\n}\nfunction bindStyle(svgEl, style, el) {\n var opacity = style.opacity == null ? 1 : style.opacity;\n if (el instanceof ZRImage) {\n svgEl.style.opacity = opacity + '';\n return;\n }\n if (pathHasFill(style)) {\n var fill = style.fill;\n fill = fill === 'transparent' ? NONE : fill;\n attr(svgEl, 'fill', fill);\n attr(svgEl, 'fill-opacity', (style.fillOpacity != null ? style.fillOpacity * opacity : opacity) + '');\n }\n else {\n attr(svgEl, 'fill', NONE);\n }\n if (pathHasStroke(style)) {\n var stroke = style.stroke;\n stroke = stroke === 'transparent' ? NONE : stroke;\n attr(svgEl, 'stroke', stroke);\n var strokeWidth = style.lineWidth;\n var strokeScale_1 = style.strokeNoScale\n ? el.getLineScale()\n : 1;\n attr(svgEl, 'stroke-width', (strokeScale_1 ? strokeWidth / strokeScale_1 : 0) + '');\n attr(svgEl, 'paint-order', style.strokeFirst ? 'stroke' : 'fill');\n attr(svgEl, 'stroke-opacity', (style.strokeOpacity != null ? style.strokeOpacity * opacity : opacity) + '');\n var lineDash = style.lineDash && strokeWidth > 0 && normalizeLineDash(style.lineDash, strokeWidth);\n if (lineDash) {\n var lineDashOffset = style.lineDashOffset;\n if (strokeScale_1 && strokeScale_1 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / strokeScale_1;\n });\n if (lineDashOffset) {\n lineDashOffset /= strokeScale_1;\n lineDashOffset = mathRound(lineDashOffset);\n }\n }\n attr(svgEl, 'stroke-dasharray', lineDash.join(','));\n attr(svgEl, 'stroke-dashoffset', (lineDashOffset || 0) + '');\n }\n else {\n attr(svgEl, 'stroke-dasharray', '');\n }\n style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap);\n style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin);\n style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit + '');\n }\n else {\n attr(svgEl, 'stroke', NONE);\n }\n}\nvar SVGPathRebuilder = (function () {\n function SVGPathRebuilder() {\n }\n SVGPathRebuilder.prototype.reset = function () {\n this._d = [];\n this._str = '';\n };\n SVGPathRebuilder.prototype.moveTo = function (x, y) {\n this._add('M', x, y);\n };\n SVGPathRebuilder.prototype.lineTo = function (x, y) {\n this._add('L', x, y);\n };\n SVGPathRebuilder.prototype.bezierCurveTo = function (x, y, x2, y2, x3, y3) {\n this._add('C', x, y, x2, y2, x3, y3);\n };\n SVGPathRebuilder.prototype.quadraticCurveTo = function (x, y, x2, y2) {\n this._add('Q', x, y, x2, y2);\n };\n SVGPathRebuilder.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {\n this.ellipse(cx, cy, r, r, 0, startAngle, endAngle, anticlockwise);\n };\n SVGPathRebuilder.prototype.ellipse = function (cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise) {\n var firstCmd = this._d.length === 0;\n var dTheta = endAngle - startAngle;\n var clockwise = !anticlockwise;\n var dThetaPositive = Math.abs(dTheta);\n var isCircle = isAroundZero(dThetaPositive - PI2)\n || (clockwise ? dTheta >= PI2 : -dTheta >= PI2);\n var unifiedTheta = dTheta > 0 ? dTheta % PI2 : (dTheta % PI2 + PI2);\n var large = false;\n if (isCircle) {\n large = true;\n }\n else if (isAroundZero(dThetaPositive)) {\n large = false;\n }\n else {\n large = (unifiedTheta >= PI) === !!clockwise;\n }\n var x0 = round4(cx + rx * mathCos(startAngle));\n var y0 = round4(cy + ry * mathSin(startAngle));\n if (isCircle) {\n if (clockwise) {\n dTheta = PI2 - 1e-4;\n }\n else {\n dTheta = -PI2 + 1e-4;\n }\n large = true;\n if (firstCmd) {\n this._d.push('M', x0, y0);\n }\n }\n var x = round4(cx + rx * mathCos(startAngle + dTheta));\n var y = round4(cy + ry * mathSin(startAngle + dTheta));\n if (isNaN(x0) || isNaN(y0) || isNaN(rx) || isNaN(ry) || isNaN(psi) || isNaN(degree) || isNaN(x) || isNaN(y)) {\n return '';\n }\n this._d.push('A', round4(rx), round4(ry), mathRound(psi * degree), +large, +clockwise, x, y);\n };\n SVGPathRebuilder.prototype.rect = function (x, y, w, h) {\n this._add('M', x, y);\n this._add('L', x + w, y);\n this._add('L', x + w, y + h);\n this._add('L', x, y + h);\n this._add('L', x, y);\n };\n SVGPathRebuilder.prototype.closePath = function () {\n if (this._d.length > 0) {\n this._add('Z');\n }\n };\n SVGPathRebuilder.prototype._add = function (cmd, a, b, c, d, e, f, g, h) {\n this._d.push(cmd);\n for (var i = 1; i < arguments.length; i++) {\n var val = arguments[i];\n if (isNaN(val)) {\n this._invalid = true;\n return;\n }\n this._d.push(round4(val));\n }\n };\n SVGPathRebuilder.prototype.generateStr = function () {\n this._str = this._invalid ? '' : this._d.join(' ');\n this._d = [];\n };\n SVGPathRebuilder.prototype.getStr = function () {\n return this._str;\n };\n return SVGPathRebuilder;\n}());\nvar svgPath = {\n brush: function (el) {\n var style = el.style;\n var svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('path');\n el.__svgEl = svgEl;\n }\n if (!el.path) {\n el.createPathProxy();\n }\n var path = el.path;\n if (el.shapeChanged()) {\n path.beginPath();\n el.buildPath(path, el.shape);\n el.pathUpdated();\n }\n var pathVersion = path.getVersion();\n var elExt = el;\n var svgPathBuilder = elExt.__svgPathBuilder;\n if (elExt.__svgPathVersion !== pathVersion || !svgPathBuilder || el.style.strokePercent < 1) {\n if (!svgPathBuilder) {\n svgPathBuilder = elExt.__svgPathBuilder = new SVGPathRebuilder();\n }\n svgPathBuilder.reset();\n path.rebuildPath(svgPathBuilder, el.style.strokePercent);\n svgPathBuilder.generateStr();\n elExt.__svgPathVersion = pathVersion;\n }\n attr(svgEl, 'd', svgPathBuilder.getStr());\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport { svgPath as path };\nvar svgImage = {\n brush: function (el) {\n var style = el.style;\n var image = style.image;\n if (image instanceof HTMLImageElement) {\n image = image.src;\n }\n else if (image instanceof HTMLCanvasElement) {\n image = image.toDataURL();\n }\n if (!image) {\n return;\n }\n var x = style.x || 0;\n var y = style.y || 0;\n var dw = style.width;\n var dh = style.height;\n var svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('image');\n el.__svgEl = svgEl;\n }\n if (image !== el.__imageSrc) {\n attrXLink(svgEl, 'href', image);\n el.__imageSrc = image;\n }\n attr(svgEl, 'width', dw + '');\n attr(svgEl, 'height', dh + '');\n attr(svgEl, 'x', x + '');\n attr(svgEl, 'y', y + '');\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport { svgImage as image };\nvar TEXT_ALIGN_TO_ANCHOR = {\n left: 'start',\n right: 'end',\n center: 'middle',\n middle: 'middle'\n};\nfunction adjustTextY(y, lineHeight, textBaseline) {\n if (textBaseline === 'top') {\n y += lineHeight / 2;\n }\n else if (textBaseline === 'bottom') {\n y -= lineHeight / 2;\n }\n return y;\n}\nvar svgText = {\n brush: function (el) {\n var style = el.style;\n var text = style.text;\n text != null && (text += '');\n if (!text || isNaN(style.x) || isNaN(style.y)) {\n return;\n }\n var textSvgEl = el.__svgEl;\n if (!textSvgEl) {\n textSvgEl = createElement('text');\n attrXML(textSvgEl, 'xml:space', 'preserve');\n el.__svgEl = textSvgEl;\n }\n var font = style.font || DEFAULT_FONT;\n var textSvgElStyle = textSvgEl.style;\n textSvgElStyle.font = font;\n textSvgEl.textContent = text;\n bindStyle(textSvgEl, style, el);\n setTransform(textSvgEl, el.transform);\n var x = style.x || 0;\n var y = adjustTextY(style.y || 0, getLineHeight(font), style.textBaseline);\n var textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign]\n || style.textAlign;\n attr(textSvgEl, 'dominant-baseline', 'central');\n attr(textSvgEl, 'text-anchor', textAlign);\n attr(textSvgEl, 'x', x + '');\n attr(textSvgEl, 'y', y + '');\n }\n};\nexport { svgText as text };\n","import { createElement } from '../core';\nimport * as zrUtil from '../../core/util';\nimport Path from '../../graphic/Path';\nimport ZRImage from '../../graphic/Image';\nimport TSpan from '../../graphic/TSpan';\nimport { path as svgPath, image as svgImage, text as svgText } from '../graphic';\nvar MARK_UNUSED = '0';\nvar MARK_USED = '1';\nvar Definable = (function () {\n function Definable(zrId, svgRoot, tagNames, markLabel, domName) {\n this.nextId = 0;\n this._domName = '_dom';\n this.createElement = createElement;\n this._zrId = zrId;\n this._svgRoot = svgRoot;\n this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames;\n this._markLabel = markLabel;\n if (domName) {\n this._domName = domName;\n }\n }\n Definable.prototype.getDefs = function (isForceCreating) {\n var svgRoot = this._svgRoot;\n var defs = this._svgRoot.getElementsByTagName('defs');\n if (defs.length === 0) {\n if (isForceCreating) {\n var defs_1 = svgRoot.insertBefore(this.createElement('defs'), svgRoot.firstChild);\n if (!defs_1.contains) {\n defs_1.contains = function (el) {\n var children = defs_1.children;\n if (!children) {\n return false;\n }\n for (var i = children.length - 1; i >= 0; --i) {\n if (children[i] === el) {\n return true;\n }\n }\n return false;\n };\n }\n return defs_1;\n }\n else {\n return null;\n }\n }\n else {\n return defs[0];\n }\n };\n Definable.prototype.doUpdate = function (target, onUpdate) {\n if (!target) {\n return;\n }\n var defs = this.getDefs(false);\n if (target[this._domName] && defs.contains(target[this._domName])) {\n if (typeof onUpdate === 'function') {\n onUpdate(target);\n }\n }\n else {\n var dom = this.add(target);\n if (dom) {\n target[this._domName] = dom;\n }\n }\n };\n Definable.prototype.add = function (target) {\n return null;\n };\n Definable.prototype.addDom = function (dom) {\n var defs = this.getDefs(true);\n if (dom.parentNode !== defs) {\n defs.appendChild(dom);\n }\n };\n Definable.prototype.removeDom = function (target) {\n var defs = this.getDefs(false);\n if (defs && target[this._domName]) {\n defs.removeChild(target[this._domName]);\n target[this._domName] = null;\n }\n };\n Definable.prototype.getDoms = function () {\n var defs = this.getDefs(false);\n if (!defs) {\n return [];\n }\n var doms = [];\n zrUtil.each(this._tagNames, function (tagName) {\n var tags = defs.getElementsByTagName(tagName);\n for (var i = 0; i < tags.length; i++) {\n doms.push(tags[i]);\n }\n });\n return doms;\n };\n Definable.prototype.markAllUnused = function () {\n var doms = this.getDoms();\n var that = this;\n zrUtil.each(doms, function (dom) {\n dom[that._markLabel] = MARK_UNUSED;\n });\n };\n Definable.prototype.markDomUsed = function (dom) {\n dom && (dom[this._markLabel] = MARK_USED);\n };\n ;\n Definable.prototype.markDomUnused = function (dom) {\n dom && (dom[this._markLabel] = MARK_UNUSED);\n };\n ;\n Definable.prototype.isDomUnused = function (dom) {\n return dom && dom[this._markLabel] !== MARK_USED;\n };\n Definable.prototype.removeUnused = function () {\n var _this = this;\n var defs = this.getDefs(false);\n if (!defs) {\n return;\n }\n var doms = this.getDoms();\n zrUtil.each(doms, function (dom) {\n if (_this.isDomUnused(dom)) {\n defs.removeChild(dom);\n }\n });\n };\n Definable.prototype.getSvgProxy = function (displayable) {\n if (displayable instanceof Path) {\n return svgPath;\n }\n else if (displayable instanceof ZRImage) {\n return svgImage;\n }\n else if (displayable instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n };\n Definable.prototype.getSvgElement = function (displayable) {\n return displayable.__svgEl;\n };\n return Definable;\n}());\nexport default Definable;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport * as colorTool from '../../tool/color';\nfunction isLinearGradient(value) {\n return value.type === 'linear';\n}\nfunction isRadialGradient(value) {\n return value.type === 'radial';\n}\nfunction isGradient(value) {\n return value && (value.type === 'linear'\n || value.type === 'radial');\n}\nvar GradientManager = (function (_super) {\n __extends(GradientManager, _super);\n function GradientManager(zrId, svgRoot) {\n return _super.call(this, zrId, svgRoot, ['linearGradient', 'radialGradient'], '__gradient_in_use__') || this;\n }\n GradientManager.prototype.addWithoutUpdate = function (svgElement, displayable) {\n if (displayable && displayable.style) {\n var that_1 = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke) {\n var value = displayable.style[fillOrStroke];\n if (isGradient(value)) {\n var gradient = value;\n var defs = that_1.getDefs(true);\n var dom = void 0;\n if (gradient.__dom) {\n dom = gradient.__dom;\n if (!defs.contains(gradient.__dom)) {\n that_1.addDom(dom);\n }\n }\n else {\n dom = that_1.add(gradient);\n }\n that_1.markUsed(displayable);\n var id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n };\n GradientManager.prototype.add = function (gradient) {\n var dom;\n if (isLinearGradient(gradient)) {\n dom = this.createElement('linearGradient');\n }\n else if (isRadialGradient(gradient)) {\n dom = this.createElement('radialGradient');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return null;\n }\n gradient.id = gradient.id || this.nextId++;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-gradient-' + gradient.id);\n this.updateDom(gradient, dom);\n this.addDom(dom);\n return dom;\n };\n GradientManager.prototype.update = function (gradient) {\n if (!isGradient(gradient)) {\n return;\n }\n var that = this;\n this.doUpdate(gradient, function () {\n var dom = gradient.__dom;\n if (!dom) {\n return;\n }\n var tagName = dom.tagName;\n var type = gradient.type;\n if (type === 'linear' && tagName === 'linearGradient'\n || type === 'radial' && tagName === 'radialGradient') {\n that.updateDom(gradient, gradient.__dom);\n }\n else {\n that.removeDom(gradient);\n that.add(gradient);\n }\n });\n };\n GradientManager.prototype.updateDom = function (gradient, dom) {\n if (isLinearGradient(gradient)) {\n dom.setAttribute('x1', gradient.x + '');\n dom.setAttribute('y1', gradient.y + '');\n dom.setAttribute('x2', gradient.x2 + '');\n dom.setAttribute('y2', gradient.y2 + '');\n }\n else if (isRadialGradient(gradient)) {\n dom.setAttribute('cx', gradient.x + '');\n dom.setAttribute('cy', gradient.y + '');\n dom.setAttribute('r', gradient.r + '');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return;\n }\n if (gradient.global) {\n dom.setAttribute('gradientUnits', 'userSpaceOnUse');\n }\n else {\n dom.setAttribute('gradientUnits', 'objectBoundingBox');\n }\n dom.innerHTML = '';\n var colors = gradient.colorStops;\n for (var i = 0, len = colors.length; i < len; ++i) {\n var stop_1 = this.createElement('stop');\n stop_1.setAttribute('offset', colors[i].offset * 100 + '%');\n var color = colors[i].color;\n if (color.indexOf('rgba') > -1) {\n var opacity = colorTool.parse(color)[3];\n var hex = colorTool.toHex(color);\n stop_1.setAttribute('stop-color', '#' + hex);\n stop_1.setAttribute('stop-opacity', opacity + '');\n }\n else {\n stop_1.setAttribute('stop-color', colors[i].color);\n }\n dom.appendChild(stop_1);\n }\n gradient.__dom = dom;\n };\n GradientManager.prototype.markUsed = function (displayable) {\n if (displayable.style) {\n var gradient = displayable.style.fill;\n if (gradient && gradient.__dom) {\n _super.prototype.markDomUsed.call(this, gradient.__dom);\n }\n gradient = displayable.style.stroke;\n if (gradient && gradient.__dom) {\n _super.prototype.markDomUsed.call(this, gradient.__dom);\n }\n }\n };\n return GradientManager;\n}(Definable));\nexport default GradientManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport { createOrUpdateImage } from '../../graphic/helper/image';\nimport WeakMap from '../../core/WeakMap';\nfunction isPattern(value) {\n return value && (!!value.image || !!value.svgElement);\n}\nvar patternDomMap = new WeakMap();\nvar PatternManager = (function (_super) {\n __extends(PatternManager, _super);\n function PatternManager(zrId, svgRoot) {\n return _super.call(this, zrId, svgRoot, ['pattern'], '__pattern_in_use__') || this;\n }\n PatternManager.prototype.addWithoutUpdate = function (svgElement, displayable) {\n if (displayable && displayable.style) {\n var that_1 = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke) {\n var pattern = displayable.style[fillOrStroke];\n if (isPattern(pattern)) {\n var defs = that_1.getDefs(true);\n var dom = patternDomMap.get(pattern);\n if (dom) {\n if (!defs.contains(dom)) {\n that_1.addDom(dom);\n }\n }\n else {\n dom = that_1.add(pattern);\n }\n that_1.markUsed(displayable);\n var id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n };\n PatternManager.prototype.add = function (pattern) {\n if (!isPattern(pattern)) {\n return;\n }\n var dom = this.createElement('pattern');\n pattern.id = pattern.id == null ? this.nextId++ : pattern.id;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-pattern-' + pattern.id);\n dom.setAttribute('x', '0');\n dom.setAttribute('y', '0');\n dom.setAttribute('patternUnits', 'userSpaceOnUse');\n this.updateDom(pattern, dom);\n this.addDom(dom);\n return dom;\n };\n PatternManager.prototype.update = function (pattern) {\n if (!isPattern(pattern)) {\n return;\n }\n var that = this;\n this.doUpdate(pattern, function () {\n var dom = patternDomMap.get(pattern);\n that.updateDom(pattern, dom);\n });\n };\n PatternManager.prototype.updateDom = function (pattern, patternDom) {\n var svgElement = pattern.svgElement;\n if (svgElement instanceof SVGElement) {\n if (svgElement.parentNode !== patternDom) {\n patternDom.innerHTML = '';\n patternDom.appendChild(svgElement);\n patternDom.setAttribute('width', pattern.svgWidth + '');\n patternDom.setAttribute('height', pattern.svgHeight + '');\n }\n }\n else {\n var img = void 0;\n var prevImage = patternDom.getElementsByTagName('image');\n if (prevImage.length) {\n if (pattern.image) {\n img = prevImage[0];\n }\n else {\n patternDom.removeChild(prevImage[0]);\n return;\n }\n }\n else if (pattern.image) {\n img = this.createElement('image');\n }\n if (img) {\n var imageSrc = void 0;\n var patternImage = pattern.image;\n if (typeof patternImage === 'string') {\n imageSrc = patternImage;\n }\n else if (patternImage instanceof HTMLImageElement) {\n imageSrc = patternImage.src;\n }\n else if (patternImage instanceof HTMLCanvasElement) {\n imageSrc = patternImage.toDataURL();\n }\n if (imageSrc) {\n img.setAttribute('href', imageSrc);\n img.setAttribute('x', '0');\n img.setAttribute('y', '0');\n var hostEl = {\n dirty: function () { }\n };\n var createdImage = createOrUpdateImage(imageSrc, img, hostEl, function (img) {\n patternDom.setAttribute('width', img.width + '');\n patternDom.setAttribute('height', img.height + '');\n });\n if (createdImage && createdImage.width && createdImage.height) {\n patternDom.setAttribute('width', createdImage.width + '');\n patternDom.setAttribute('height', createdImage.height + '');\n }\n patternDom.appendChild(img);\n }\n }\n }\n var x = pattern.x || 0;\n var y = pattern.y || 0;\n var rotation = (pattern.rotation || 0) / Math.PI * 180;\n var scaleX = pattern.scaleX || 1;\n var scaleY = pattern.scaleY || 1;\n var transform = \"translate(\" + x + \", \" + y + \") rotate(\" + rotation + \") scale(\" + scaleX + \", \" + scaleY + \")\";\n patternDom.setAttribute('patternTransform', transform);\n patternDomMap.set(pattern, patternDom);\n };\n PatternManager.prototype.markUsed = function (displayable) {\n if (displayable.style) {\n if (isPattern(displayable.style.fill)) {\n _super.prototype.markDomUsed.call(this, patternDomMap.get(displayable.style.fill));\n }\n if (isPattern(displayable.style.stroke)) {\n _super.prototype.markDomUsed.call(this, patternDomMap.get(displayable.style.stroke));\n }\n }\n };\n return PatternManager;\n}(Definable));\nexport default PatternManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport { isClipPathChanged } from '../../canvas/helper';\nfunction generateClipPathsKey(clipPaths) {\n var key = [];\n if (clipPaths) {\n for (var i = 0; i < clipPaths.length; i++) {\n var clipPath = clipPaths[i];\n key.push(clipPath.id);\n }\n }\n return key.join(',');\n}\nexport function hasClipPath(displayable) {\n var clipPaths = displayable.__clipPaths;\n return clipPaths && clipPaths.length > 0;\n}\nvar ClippathManager = (function (_super) {\n __extends(ClippathManager, _super);\n function ClippathManager(zrId, svgRoot) {\n var _this = _super.call(this, zrId, svgRoot, 'clipPath', '__clippath_in_use__') || this;\n _this._refGroups = {};\n _this._keyDuplicateCount = {};\n return _this;\n }\n ClippathManager.prototype.markAllUnused = function () {\n _super.prototype.markAllUnused.call(this);\n for (var key in this._refGroups) {\n this.markDomUnused(this._refGroups[key]);\n }\n this._keyDuplicateCount = {};\n };\n ClippathManager.prototype._getClipPathGroup = function (displayable, prevDisplayable) {\n if (!hasClipPath(displayable)) {\n return;\n }\n var clipPaths = displayable.__clipPaths;\n var keyDuplicateCount = this._keyDuplicateCount;\n var clipPathKey = generateClipPathsKey(clipPaths);\n if (isClipPathChanged(clipPaths, prevDisplayable && prevDisplayable.__clipPaths)) {\n keyDuplicateCount[clipPathKey] = keyDuplicateCount[clipPathKey] || 0;\n keyDuplicateCount[clipPathKey] && (clipPathKey += '-' + keyDuplicateCount[clipPathKey]);\n keyDuplicateCount[clipPathKey]++;\n }\n return this._refGroups[clipPathKey]\n || (this._refGroups[clipPathKey] = this.createElement('g'));\n };\n ClippathManager.prototype.update = function (displayable, prevDisplayable) {\n var clipGroup = this._getClipPathGroup(displayable, prevDisplayable);\n if (clipGroup) {\n this.markDomUsed(clipGroup);\n this.updateDom(clipGroup, displayable.__clipPaths);\n }\n return clipGroup;\n };\n ;\n ClippathManager.prototype.updateDom = function (parentEl, clipPaths) {\n if (clipPaths && clipPaths.length > 0) {\n var defs = this.getDefs(true);\n var clipPath = clipPaths[0];\n var clipPathEl = void 0;\n var id = void 0;\n if (clipPath._dom) {\n id = clipPath._dom.getAttribute('id');\n clipPathEl = clipPath._dom;\n if (!defs.contains(clipPathEl)) {\n defs.appendChild(clipPathEl);\n }\n }\n else {\n id = 'zr' + this._zrId + '-clip-' + this.nextId;\n ++this.nextId;\n clipPathEl = this.createElement('clipPath');\n clipPathEl.setAttribute('id', id);\n defs.appendChild(clipPathEl);\n clipPath._dom = clipPathEl;\n }\n var svgProxy = this.getSvgProxy(clipPath);\n svgProxy.brush(clipPath);\n var pathEl = this.getSvgElement(clipPath);\n clipPathEl.innerHTML = '';\n clipPathEl.appendChild(pathEl);\n parentEl.setAttribute('clip-path', 'url(#' + id + ')');\n if (clipPaths.length > 1) {\n this.updateDom(clipPathEl, clipPaths.slice(1));\n }\n }\n else {\n if (parentEl) {\n parentEl.setAttribute('clip-path', 'none');\n }\n }\n };\n ;\n ClippathManager.prototype.markUsed = function (displayable) {\n var _this = this;\n if (displayable.__clipPaths) {\n zrUtil.each(displayable.__clipPaths, function (clipPath) {\n if (clipPath._dom) {\n _super.prototype.markDomUsed.call(_this, clipPath._dom);\n }\n });\n }\n };\n ;\n ClippathManager.prototype.removeUnused = function () {\n _super.prototype.removeUnused.call(this);\n var newRefGroupsMap = {};\n for (var key in this._refGroups) {\n var group = this._refGroups[key];\n if (!this.isDomUnused(group)) {\n newRefGroupsMap[key] = group;\n }\n else if (group.parentNode) {\n group.parentNode.removeChild(group);\n }\n }\n this._refGroups = newRefGroupsMap;\n };\n return ClippathManager;\n}(Definable));\nexport default ClippathManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nvar ShadowManager = (function (_super) {\n __extends(ShadowManager, _super);\n function ShadowManager(zrId, svgRoot) {\n var _this = _super.call(this, zrId, svgRoot, ['filter'], '__filter_in_use__', '_shadowDom') || this;\n _this._shadowDomMap = {};\n _this._shadowDomPool = [];\n return _this;\n }\n ShadowManager.prototype._getFromPool = function () {\n var shadowDom = this._shadowDomPool.pop();\n if (!shadowDom) {\n shadowDom = this.createElement('filter');\n shadowDom.setAttribute('id', 'zr' + this._zrId + '-shadow-' + this.nextId++);\n var domChild = this.createElement('feDropShadow');\n shadowDom.appendChild(domChild);\n this.addDom(shadowDom);\n }\n return shadowDom;\n };\n ShadowManager.prototype.update = function (svgElement, displayable) {\n var style = displayable.style;\n if (hasShadow(style)) {\n var shadowKey = getShadowKey(displayable);\n var shadowDom = displayable._shadowDom = this._shadowDomMap[shadowKey];\n if (!shadowDom) {\n shadowDom = this._getFromPool();\n this._shadowDomMap[shadowKey] = shadowDom;\n }\n this.updateDom(svgElement, displayable, shadowDom);\n }\n else {\n this.remove(svgElement, displayable);\n }\n };\n ShadowManager.prototype.remove = function (svgElement, displayable) {\n if (displayable._shadowDom != null) {\n displayable._shadowDom = null;\n svgElement.style.filter = '';\n }\n };\n ShadowManager.prototype.updateDom = function (svgElement, displayable, shadowDom) {\n var domChild = shadowDom.children[0];\n var style = displayable.style;\n var globalScale = displayable.getGlobalScale();\n var scaleX = globalScale[0];\n var scaleY = globalScale[1];\n if (!scaleX || !scaleY) {\n return;\n }\n var offsetX = style.shadowOffsetX || 0;\n var offsetY = style.shadowOffsetY || 0;\n var blur = style.shadowBlur;\n var color = style.shadowColor;\n domChild.setAttribute('dx', offsetX / scaleX + '');\n domChild.setAttribute('dy', offsetY / scaleY + '');\n domChild.setAttribute('flood-color', color);\n var stdDx = blur / 2 / scaleX;\n var stdDy = blur / 2 / scaleY;\n var stdDeviation = stdDx + ' ' + stdDy;\n domChild.setAttribute('stdDeviation', stdDeviation);\n shadowDom.setAttribute('x', '-100%');\n shadowDom.setAttribute('y', '-100%');\n shadowDom.setAttribute('width', '300%');\n shadowDom.setAttribute('height', '300%');\n displayable._shadowDom = shadowDom;\n var id = shadowDom.getAttribute('id');\n svgElement.style.filter = 'url(#' + id + ')';\n };\n ShadowManager.prototype.removeUnused = function () {\n var defs = this.getDefs(false);\n if (!defs) {\n return;\n }\n var shadowDomsPool = this._shadowDomPool;\n for (var key in this._shadowDomMap) {\n var dom = this._shadowDomMap[key];\n shadowDomsPool.push(dom);\n }\n this._shadowDomMap = {};\n };\n return ShadowManager;\n}(Definable));\nexport default ShadowManager;\nfunction hasShadow(style) {\n return style\n && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY);\n}\nfunction getShadowKey(displayable) {\n var style = displayable.style;\n var globalScale = displayable.getGlobalScale();\n return [\n style.shadowColor,\n (style.shadowBlur || 0).toFixed(2),\n (style.shadowOffsetX || 0).toFixed(2),\n (style.shadowOffsetY || 0).toFixed(2),\n globalScale[0],\n globalScale[1]\n ].join(',');\n}\n","import { createElement } from './core';\nimport * as util from '../core/util';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport arrayDiff from '../core/arrayDiff';\nimport GradientManager from './helper/GradientManager';\nimport PatternManager from './helper/PatternManager';\nimport ClippathManager, { hasClipPath } from './helper/ClippathManager';\nimport ShadowManager from './helper/ShadowManager';\nimport { path as svgPath, image as svgImage, text as svgText } from './graphic';\nfunction parseInt10(val) {\n return parseInt(val, 10);\n}\nfunction getSvgProxy(el) {\n if (el instanceof Path) {\n return svgPath;\n }\n else if (el instanceof ZRImage) {\n return svgImage;\n }\n else if (el instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n}\nfunction checkParentAvailable(parent, child) {\n return child && parent && child.parentNode !== parent;\n}\nfunction insertAfter(parent, child, prevSibling) {\n if (checkParentAvailable(parent, child) && prevSibling) {\n var nextSibling = prevSibling.nextSibling;\n nextSibling ? parent.insertBefore(child, nextSibling)\n : parent.appendChild(child);\n }\n}\nfunction prepend(parent, child) {\n if (checkParentAvailable(parent, child)) {\n var firstChild = parent.firstChild;\n firstChild ? parent.insertBefore(child, firstChild)\n : parent.appendChild(child);\n }\n}\nfunction remove(parent, child) {\n if (child && parent && child.parentNode === parent) {\n parent.removeChild(child);\n }\n}\nfunction removeFromMyParent(child) {\n if (child && child.parentNode) {\n child.parentNode.removeChild(child);\n }\n}\nfunction getSvgElement(displayable) {\n return displayable.__svgEl;\n}\nvar SVGPainter = (function () {\n function SVGPainter(root, storage, opts, zrId) {\n this.type = 'svg';\n this.refreshHover = createMethodNotSupport('refreshHover');\n this.pathToImage = createMethodNotSupport('pathToImage');\n this.configLayer = createMethodNotSupport('configLayer');\n this.root = root;\n this.storage = storage;\n this._opts = opts = util.extend({}, opts || {});\n var svgDom = createElement('svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.w3.org/2000/svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDom.setAttribute('version', '1.1');\n svgDom.setAttribute('baseProfile', 'full');\n svgDom.style.cssText = 'user-select:none;position:absolute;left:0;top:0;';\n var bgRoot = createElement('g');\n svgDom.appendChild(bgRoot);\n var svgRoot = createElement('g');\n svgDom.appendChild(svgRoot);\n this._gradientManager = new GradientManager(zrId, svgRoot);\n this._patternManager = new PatternManager(zrId, svgRoot);\n this._clipPathManager = new ClippathManager(zrId, svgRoot);\n this._shadowManager = new ShadowManager(zrId, svgRoot);\n var viewport = document.createElement('div');\n viewport.style.cssText = 'overflow:hidden;position:relative';\n this._svgDom = svgDom;\n this._svgRoot = svgRoot;\n this._backgroundRoot = bgRoot;\n this._viewport = viewport;\n root.appendChild(viewport);\n viewport.appendChild(svgDom);\n this.resize(opts.width, opts.height);\n this._visibleList = [];\n }\n SVGPainter.prototype.getType = function () {\n return 'svg';\n };\n SVGPainter.prototype.getViewportRoot = function () {\n return this._viewport;\n };\n SVGPainter.prototype.getSvgDom = function () {\n return this._svgDom;\n };\n SVGPainter.prototype.getSvgRoot = function () {\n return this._svgRoot;\n };\n SVGPainter.prototype.getViewportRootOffset = function () {\n var viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n };\n SVGPainter.prototype.refresh = function () {\n var list = this.storage.getDisplayList(true);\n this._paintList(list);\n };\n SVGPainter.prototype.setBackgroundColor = function (backgroundColor) {\n if (this._backgroundRoot && this._backgroundNode) {\n this._backgroundRoot.removeChild(this._backgroundNode);\n }\n var bgNode = createElement('rect');\n bgNode.setAttribute('width', this.getWidth());\n bgNode.setAttribute('height', this.getHeight());\n bgNode.setAttribute('x', 0);\n bgNode.setAttribute('y', 0);\n bgNode.setAttribute('id', 0);\n bgNode.style.fill = backgroundColor;\n this._backgroundRoot.appendChild(bgNode);\n this._backgroundNode = bgNode;\n };\n SVGPainter.prototype.createSVGElement = function (tag) {\n return createElement(tag);\n };\n SVGPainter.prototype.paintOne = function (el) {\n var svgProxy = getSvgProxy(el);\n svgProxy && svgProxy.brush(el);\n return getSvgElement(el);\n };\n SVGPainter.prototype._paintList = function (list) {\n var gradientManager = this._gradientManager;\n var patternManager = this._patternManager;\n var clipPathManager = this._clipPathManager;\n var shadowManager = this._shadowManager;\n gradientManager.markAllUnused();\n patternManager.markAllUnused();\n clipPathManager.markAllUnused();\n shadowManager.markAllUnused();\n var svgRoot = this._svgRoot;\n var visibleList = this._visibleList;\n var listLen = list.length;\n var newVisibleList = [];\n for (var i = 0; i < listLen; i++) {\n var displayable = list[i];\n var svgProxy = getSvgProxy(displayable);\n var svgElement = getSvgElement(displayable);\n if (!displayable.invisible) {\n if (displayable.__dirty || !svgElement) {\n svgProxy && svgProxy.brush(displayable);\n svgElement = getSvgElement(displayable);\n if (svgElement && displayable.style) {\n gradientManager.update(displayable.style.fill);\n gradientManager.update(displayable.style.stroke);\n patternManager.update(displayable.style.fill);\n patternManager.update(displayable.style.stroke);\n shadowManager.update(svgElement, displayable);\n }\n displayable.__dirty = 0;\n }\n if (svgElement) {\n newVisibleList.push(displayable);\n }\n }\n }\n var diff = arrayDiff(visibleList, newVisibleList);\n var prevSvgElement;\n var topPrevSvgElement;\n for (var i = 0; i < diff.length; i++) {\n var item = diff[i];\n if (item.removed) {\n for (var k = 0; k < item.count; k++) {\n var displayable = visibleList[item.indices[k]];\n var svgElement = getSvgElement(displayable);\n hasClipPath(displayable) ? removeFromMyParent(svgElement)\n : remove(svgRoot, svgElement);\n }\n }\n }\n var prevDisplayable;\n var currentClipGroup;\n for (var i = 0; i < diff.length; i++) {\n var item = diff[i];\n if (item.removed) {\n continue;\n }\n for (var k = 0; k < item.count; k++) {\n var displayable = newVisibleList[item.indices[k]];\n var clipGroup = clipPathManager.update(displayable, prevDisplayable);\n if (clipGroup !== currentClipGroup) {\n prevSvgElement = topPrevSvgElement;\n if (clipGroup) {\n prevSvgElement ? insertAfter(svgRoot, clipGroup, prevSvgElement)\n : prepend(svgRoot, clipGroup);\n topPrevSvgElement = clipGroup;\n prevSvgElement = null;\n }\n currentClipGroup = clipGroup;\n }\n var svgElement = getSvgElement(displayable);\n prevSvgElement\n ? insertAfter(currentClipGroup || svgRoot, svgElement, prevSvgElement)\n : prepend(currentClipGroup || svgRoot, svgElement);\n prevSvgElement = svgElement || prevSvgElement;\n if (!currentClipGroup) {\n topPrevSvgElement = prevSvgElement;\n }\n gradientManager.markUsed(displayable);\n gradientManager.addWithoutUpdate(svgElement, displayable);\n patternManager.markUsed(displayable);\n patternManager.addWithoutUpdate(svgElement, displayable);\n clipPathManager.markUsed(displayable);\n prevDisplayable = displayable;\n }\n }\n gradientManager.removeUnused();\n patternManager.removeUnused();\n clipPathManager.removeUnused();\n shadowManager.removeUnused();\n this._visibleList = newVisibleList;\n };\n SVGPainter.prototype.resize = function (width, height) {\n var viewport = this._viewport;\n viewport.style.display = 'none';\n var opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n width = this._getSize(0);\n height = this._getSize(1);\n viewport.style.display = '';\n if (this._width !== width || this._height !== height) {\n this._width = width;\n this._height = height;\n var viewportStyle = viewport.style;\n viewportStyle.width = width + 'px';\n viewportStyle.height = height + 'px';\n var svgRoot = this._svgDom;\n svgRoot.setAttribute('width', width + '');\n svgRoot.setAttribute('height', height + '');\n }\n if (this._backgroundNode) {\n this._backgroundNode.setAttribute('width', width);\n this._backgroundNode.setAttribute('height', height);\n }\n };\n SVGPainter.prototype.getWidth = function () {\n return this._width;\n };\n SVGPainter.prototype.getHeight = function () {\n return this._height;\n };\n SVGPainter.prototype._getSize = function (whIdx) {\n var opts = this._opts;\n var wh = ['width', 'height'][whIdx];\n var cwh = ['clientWidth', 'clientHeight'][whIdx];\n var plt = ['paddingLeft', 'paddingTop'][whIdx];\n var prb = ['paddingRight', 'paddingBottom'][whIdx];\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh]);\n }\n var root = this.root;\n var stl = document.defaultView.getComputedStyle(root);\n return ((root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)) | 0;\n };\n SVGPainter.prototype.dispose = function () {\n this.root.innerHTML = '';\n this._svgRoot\n = this._backgroundRoot\n = this._svgDom\n = this._backgroundNode\n = this._viewport\n = this.storage\n = null;\n };\n SVGPainter.prototype.clear = function () {\n var viewportNode = this._viewport;\n if (viewportNode && viewportNode.parentNode) {\n viewportNode.parentNode.removeChild(viewportNode);\n }\n };\n SVGPainter.prototype.toDataURL = function () {\n this.refresh();\n var svgDom = this._svgDom;\n var outerHTML = svgDom.outerHTML\n || (svgDom.parentNode && svgDom.parentNode).innerHTML;\n var html = encodeURIComponent(outerHTML.replace(/>\\n\\r<'));\n return 'data:image/svg+xml;charset=UTF-8,' + html;\n };\n return SVGPainter;\n}());\nfunction createMethodNotSupport(method) {\n return function () {\n util.logError('In SVG mode painter not support method \"' + method + '\"');\n };\n}\nexport default SVGPainter;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SVGPainter from 'zrender/lib/svg/Painter';\nexport function install(registers) {\n registers.registerPainter('svg', SVGPainter);\n}","import { __extends } from \"tslib\";\nimport * as util from '../core/util';\nimport { devicePixelRatio } from '../config';\nimport Eventful from '../core/Eventful';\nimport { getCanvasGradient } from './helper';\nimport { createCanvasPattern } from './graphic';\nimport BoundingRect from '../core/BoundingRect';\nimport { REDARAW_BIT } from '../graphic/constants';\nfunction returnFalse() {\n return false;\n}\nfunction createDom(id, painter, dpr) {\n var newDom = util.createCanvas();\n var width = painter.getWidth();\n var height = painter.getHeight();\n var newDomStyle = newDom.style;\n if (newDomStyle) {\n newDomStyle.position = 'absolute';\n newDomStyle.left = '0';\n newDomStyle.top = '0';\n newDomStyle.width = width + 'px';\n newDomStyle.height = height + 'px';\n newDom.setAttribute('data-zr-dom-id', id);\n }\n newDom.width = width * dpr;\n newDom.height = height * dpr;\n return newDom;\n}\n;\nvar Layer = (function (_super) {\n __extends(Layer, _super);\n function Layer(id, painter, dpr) {\n var _this = _super.call(this) || this;\n _this.motionBlur = false;\n _this.lastFrameAlpha = 0.7;\n _this.dpr = 1;\n _this.virtual = false;\n _this.config = {};\n _this.incremental = false;\n _this.zlevel = 0;\n _this.maxRepaintRectCount = 5;\n _this.__dirty = true;\n _this.__firstTimePaint = true;\n _this.__used = false;\n _this.__drawIndex = 0;\n _this.__startIndex = 0;\n _this.__endIndex = 0;\n _this.__prevStartIndex = null;\n _this.__prevEndIndex = null;\n var dom;\n dpr = dpr || devicePixelRatio;\n if (typeof id === 'string') {\n dom = createDom(id, painter, dpr);\n }\n else if (util.isObject(id)) {\n dom = id;\n id = dom.id;\n }\n _this.id = id;\n _this.dom = dom;\n var domStyle = dom.style;\n if (domStyle) {\n dom.onselectstart = returnFalse;\n domStyle.webkitUserSelect = 'none';\n domStyle.userSelect = 'none';\n domStyle.webkitTapHighlightColor = 'rgba(0,0,0,0)';\n domStyle['-webkit-touch-callout'] = 'none';\n domStyle.padding = '0';\n domStyle.margin = '0';\n domStyle.borderWidth = '0';\n }\n _this.domBack = null;\n _this.ctxBack = null;\n _this.painter = painter;\n _this.config = null;\n _this.dpr = dpr;\n return _this;\n }\n Layer.prototype.getElementCount = function () {\n return this.__endIndex - this.__startIndex;\n };\n Layer.prototype.afterBrush = function () {\n this.__prevStartIndex = this.__startIndex;\n this.__prevEndIndex = this.__endIndex;\n };\n Layer.prototype.initContext = function () {\n this.ctx = this.dom.getContext('2d');\n this.ctx.dpr = this.dpr;\n };\n Layer.prototype.setUnpainted = function () {\n this.__firstTimePaint = true;\n };\n Layer.prototype.createBackBuffer = function () {\n var dpr = this.dpr;\n this.domBack = createDom('back-' + this.id, this.painter, dpr);\n this.ctxBack = this.domBack.getContext('2d');\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n };\n Layer.prototype.createRepaintRects = function (displayList, prevList, viewWidth, viewHeight) {\n if (this.__firstTimePaint) {\n this.__firstTimePaint = false;\n return null;\n }\n var mergedRepaintRects = [];\n var maxRepaintRectCount = this.maxRepaintRectCount;\n var full = false;\n var pendingRect = new BoundingRect(0, 0, 0, 0);\n function addRectToMergePool(rect) {\n if (!rect.isFinite() || rect.isZero()) {\n return;\n }\n if (mergedRepaintRects.length === 0) {\n var boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n else {\n var isMerged = false;\n var minDeltaArea = Infinity;\n var bestRectToMergeIdx = 0;\n for (var i = 0; i < mergedRepaintRects.length; ++i) {\n var mergedRect = mergedRepaintRects[i];\n if (mergedRect.intersect(rect)) {\n var pendingRect_1 = new BoundingRect(0, 0, 0, 0);\n pendingRect_1.copy(mergedRect);\n pendingRect_1.union(rect);\n mergedRepaintRects[i] = pendingRect_1;\n isMerged = true;\n break;\n }\n else if (full) {\n pendingRect.copy(rect);\n pendingRect.union(mergedRect);\n var aArea = rect.width * rect.height;\n var bArea = mergedRect.width * mergedRect.height;\n var pendingArea = pendingRect.width * pendingRect.height;\n var deltaArea = pendingArea - aArea - bArea;\n if (deltaArea < minDeltaArea) {\n minDeltaArea = deltaArea;\n bestRectToMergeIdx = i;\n }\n }\n }\n if (full) {\n mergedRepaintRects[bestRectToMergeIdx].union(rect);\n isMerged = true;\n }\n if (!isMerged) {\n var boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n if (!full) {\n full = mergedRepaintRects.length >= maxRepaintRectCount;\n }\n }\n }\n for (var i = this.__startIndex; i < this.__endIndex; ++i) {\n var el = displayList[i];\n if (el) {\n var shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n var prevRect = el.__isRendered && ((el.__dirty & REDARAW_BIT) || !shouldPaint)\n ? el.getPrevPaintRect()\n : null;\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n var curRect = shouldPaint && ((el.__dirty & REDARAW_BIT) || !el.__isRendered)\n ? el.getPaintRect()\n : null;\n if (curRect) {\n addRectToMergePool(curRect);\n }\n }\n }\n for (var i = this.__prevStartIndex; i < this.__prevEndIndex; ++i) {\n var el = prevList[i];\n var shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n if (el && (!shouldPaint || !el.__zr) && el.__isRendered) {\n var prevRect = el.getPrevPaintRect();\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n }\n }\n var hasIntersections;\n do {\n hasIntersections = false;\n for (var i = 0; i < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].isZero()) {\n mergedRepaintRects.splice(i, 1);\n continue;\n }\n for (var j = i + 1; j < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].intersect(mergedRepaintRects[j])) {\n hasIntersections = true;\n mergedRepaintRects[i].union(mergedRepaintRects[j]);\n mergedRepaintRects.splice(j, 1);\n }\n else {\n j++;\n }\n }\n i++;\n }\n } while (hasIntersections);\n this._paintRects = mergedRepaintRects;\n return mergedRepaintRects;\n };\n Layer.prototype.debugGetPaintRects = function () {\n return (this._paintRects || []).slice();\n };\n Layer.prototype.resize = function (width, height) {\n var dpr = this.dpr;\n var dom = this.dom;\n var domStyle = dom.style;\n var domBack = this.domBack;\n if (domStyle) {\n domStyle.width = width + 'px';\n domStyle.height = height + 'px';\n }\n dom.width = width * dpr;\n dom.height = height * dpr;\n if (domBack) {\n domBack.width = width * dpr;\n domBack.height = height * dpr;\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n };\n Layer.prototype.clear = function (clearAll, clearColor, repaintRects) {\n var dom = this.dom;\n var ctx = this.ctx;\n var width = dom.width;\n var height = dom.height;\n clearColor = clearColor || this.clearColor;\n var haveMotionBLur = this.motionBlur && !clearAll;\n var lastFrameAlpha = this.lastFrameAlpha;\n var dpr = this.dpr;\n var self = this;\n if (haveMotionBLur) {\n if (!this.domBack) {\n this.createBackBuffer();\n }\n this.ctxBack.globalCompositeOperation = 'copy';\n this.ctxBack.drawImage(dom, 0, 0, width / dpr, height / dpr);\n }\n var domBack = this.domBack;\n function doClear(x, y, width, height) {\n ctx.clearRect(x, y, width, height);\n if (clearColor && clearColor !== 'transparent') {\n var clearColorGradientOrPattern = void 0;\n if (util.isGradientObject(clearColor)) {\n clearColorGradientOrPattern = clearColor.__canvasGradient\n || getCanvasGradient(ctx, clearColor, {\n x: 0,\n y: 0,\n width: width,\n height: height\n });\n clearColor.__canvasGradient = clearColorGradientOrPattern;\n }\n else if (util.isImagePatternObject(clearColor)) {\n clearColorGradientOrPattern = createCanvasPattern(ctx, clearColor, {\n dirty: function () {\n self.setUnpainted();\n self.__painter.refresh();\n }\n });\n }\n ctx.save();\n ctx.fillStyle = clearColorGradientOrPattern || clearColor;\n ctx.fillRect(x, y, width, height);\n ctx.restore();\n }\n if (haveMotionBLur) {\n ctx.save();\n ctx.globalAlpha = lastFrameAlpha;\n ctx.drawImage(domBack, x, y, width, height);\n ctx.restore();\n }\n }\n ;\n if (!repaintRects || haveMotionBLur) {\n doClear(0, 0, width, height);\n }\n else if (repaintRects.length) {\n util.each(repaintRects, function (rect) {\n doClear(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);\n });\n }\n };\n return Layer;\n}(Eventful));\nexport default Layer;\n","import { devicePixelRatio } from '../config';\nimport * as util from '../core/util';\nimport Layer from './Layer';\nimport requestAnimationFrame from '../animation/requestAnimationFrame';\nimport ZRImage from '../graphic/Image';\nimport env from '../core/env';\nimport { brush, brushSingle } from './graphic';\nimport { REDARAW_BIT } from '../graphic/constants';\nvar HOVER_LAYER_ZLEVEL = 1e5;\nvar CANVAS_ZLEVEL = 314159;\nvar EL_AFTER_INCREMENTAL_INC = 0.01;\nvar INCREMENTAL_INC = 0.001;\nfunction parseInt10(val) {\n return parseInt(val, 10);\n}\nfunction isLayerValid(layer) {\n if (!layer) {\n return false;\n }\n if (layer.__builtin__) {\n return true;\n }\n if (typeof (layer.resize) !== 'function'\n || typeof (layer.refresh) !== 'function') {\n return false;\n }\n return true;\n}\nfunction createRoot(width, height) {\n var domRoot = document.createElement('div');\n domRoot.style.cssText = [\n 'position:relative',\n 'width:' + width + 'px',\n 'height:' + height + 'px',\n 'padding:0',\n 'margin:0',\n 'border-width:0'\n ].join(';') + ';';\n return domRoot;\n}\nvar CanvasPainter = (function () {\n function CanvasPainter(root, storage, opts, id) {\n this.type = 'canvas';\n this._zlevelList = [];\n this._prevDisplayList = [];\n this._layers = {};\n this._layerConfig = {};\n this._needsManuallyCompositing = false;\n this.type = 'canvas';\n var singleCanvas = !root.nodeName\n || root.nodeName.toUpperCase() === 'CANVAS';\n this._opts = opts = util.extend({}, opts || {});\n this.dpr = opts.devicePixelRatio || devicePixelRatio;\n this._singleCanvas = singleCanvas;\n this.root = root;\n var rootStyle = root.style;\n if (rootStyle) {\n rootStyle.webkitTapHighlightColor = 'transparent';\n rootStyle.webkitUserSelect = 'none';\n rootStyle.userSelect = 'none';\n rootStyle['-webkit-touch-callout'] = 'none';\n root.innerHTML = '';\n }\n this.storage = storage;\n var zlevelList = this._zlevelList;\n this._prevDisplayList = [];\n var layers = this._layers;\n if (!singleCanvas) {\n this._width = this._getSize(0);\n this._height = this._getSize(1);\n var domRoot = this._domRoot = createRoot(this._width, this._height);\n root.appendChild(domRoot);\n }\n else {\n var rootCanvas = root;\n var width = rootCanvas.width;\n var height = rootCanvas.height;\n if (opts.width != null) {\n width = opts.width;\n }\n if (opts.height != null) {\n height = opts.height;\n }\n this.dpr = opts.devicePixelRatio || 1;\n rootCanvas.width = width * this.dpr;\n rootCanvas.height = height * this.dpr;\n this._width = width;\n this._height = height;\n var mainLayer = new Layer(rootCanvas, this, this.dpr);\n mainLayer.__builtin__ = true;\n mainLayer.initContext();\n layers[CANVAS_ZLEVEL] = mainLayer;\n mainLayer.zlevel = CANVAS_ZLEVEL;\n zlevelList.push(CANVAS_ZLEVEL);\n this._domRoot = root;\n }\n }\n CanvasPainter.prototype.getType = function () {\n return 'canvas';\n };\n CanvasPainter.prototype.isSingleCanvas = function () {\n return this._singleCanvas;\n };\n CanvasPainter.prototype.getViewportRoot = function () {\n return this._domRoot;\n };\n CanvasPainter.prototype.getViewportRootOffset = function () {\n var viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n };\n CanvasPainter.prototype.refresh = function (paintAll) {\n var list = this.storage.getDisplayList(true);\n var prevList = this._prevDisplayList;\n var zlevelList = this._zlevelList;\n this._redrawId = Math.random();\n this._paintList(list, prevList, paintAll, this._redrawId);\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (!layer.__builtin__ && layer.refresh) {\n var clearColor = i === 0 ? this._backgroundColor : null;\n layer.refresh(clearColor);\n }\n }\n if (this._opts.useDirtyRect) {\n this._prevDisplayList = list.slice();\n }\n return this;\n };\n CanvasPainter.prototype.refreshHover = function () {\n this._paintHoverList(this.storage.getDisplayList(false));\n };\n CanvasPainter.prototype._paintHoverList = function (list) {\n var len = list.length;\n var hoverLayer = this._hoverlayer;\n hoverLayer && hoverLayer.clear();\n if (!len) {\n return;\n }\n var scope = {\n inHover: true,\n viewWidth: this._width,\n viewHeight: this._height\n };\n var ctx;\n for (var i = 0; i < len; i++) {\n var el = list[i];\n if (el.__inHover) {\n if (!hoverLayer) {\n hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n if (!ctx) {\n ctx = hoverLayer.ctx;\n ctx.save();\n }\n brush(ctx, el, scope, i === len - 1);\n }\n }\n if (ctx) {\n ctx.restore();\n }\n };\n CanvasPainter.prototype.getHoverLayer = function () {\n return this.getLayer(HOVER_LAYER_ZLEVEL);\n };\n CanvasPainter.prototype.paintOne = function (ctx, el) {\n brushSingle(ctx, el);\n };\n CanvasPainter.prototype._paintList = function (list, prevList, paintAll, redrawId) {\n if (this._redrawId !== redrawId) {\n return;\n }\n paintAll = paintAll || false;\n this._updateLayerStatus(list);\n var _a = this._doPaintList(list, prevList, paintAll), finished = _a.finished, needsRefreshHover = _a.needsRefreshHover;\n if (this._needsManuallyCompositing) {\n this._compositeManually();\n }\n if (needsRefreshHover) {\n this._paintHoverList(list);\n }\n if (!finished) {\n var self_1 = this;\n requestAnimationFrame(function () {\n self_1._paintList(list, prevList, paintAll, redrawId);\n });\n }\n else {\n this.eachLayer(function (layer) {\n layer.afterBrush && layer.afterBrush();\n });\n }\n };\n CanvasPainter.prototype._compositeManually = function () {\n var ctx = this.getLayer(CANVAS_ZLEVEL).ctx;\n var width = this._domRoot.width;\n var height = this._domRoot.height;\n ctx.clearRect(0, 0, width, height);\n this.eachBuiltinLayer(function (layer) {\n if (layer.virtual) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n });\n };\n CanvasPainter.prototype._doPaintList = function (list, prevList, paintAll) {\n var _this = this;\n var layerList = [];\n var useDirtyRect = this._opts.useDirtyRect;\n for (var zi = 0; zi < this._zlevelList.length; zi++) {\n var zlevel = this._zlevelList[zi];\n var layer = this._layers[zlevel];\n if (layer.__builtin__\n && layer !== this._hoverlayer\n && (layer.__dirty || paintAll)) {\n layerList.push(layer);\n }\n }\n var finished = true;\n var needsRefreshHover = false;\n var _loop_1 = function (k) {\n var layer = layerList[k];\n var ctx = layer.ctx;\n var repaintRects = useDirtyRect\n && layer.createRepaintRects(list, prevList, this_1._width, this_1._height);\n var start = paintAll ? layer.__startIndex : layer.__drawIndex;\n var useTimer = !paintAll && layer.incremental && Date.now;\n var startTime = useTimer && Date.now();\n var clearColor = layer.zlevel === this_1._zlevelList[0]\n ? this_1._backgroundColor : null;\n if (layer.__startIndex === layer.__endIndex) {\n layer.clear(false, clearColor, repaintRects);\n }\n else if (start === layer.__startIndex) {\n var firstEl = list[start];\n if (!firstEl.incremental || !firstEl.notClear || paintAll) {\n layer.clear(false, clearColor, repaintRects);\n }\n }\n if (start === -1) {\n console.error('For some unknown reason. drawIndex is -1');\n start = layer.__startIndex;\n }\n var i;\n var repaint = function (repaintRect) {\n var scope = {\n inHover: false,\n allClipped: false,\n prevEl: null,\n viewWidth: _this._width,\n viewHeight: _this._height\n };\n for (i = start; i < layer.__endIndex; i++) {\n var el = list[i];\n if (el.__inHover) {\n needsRefreshHover = true;\n }\n _this._doPaintEl(el, layer, useDirtyRect, repaintRect, scope, i === layer.__endIndex - 1);\n if (useTimer) {\n var dTime = Date.now() - startTime;\n if (dTime > 15) {\n break;\n }\n }\n }\n if (scope.prevElClipPaths) {\n ctx.restore();\n }\n };\n if (repaintRects) {\n if (repaintRects.length === 0) {\n i = layer.__endIndex;\n }\n else {\n var dpr = this_1.dpr;\n for (var r = 0; r < repaintRects.length; ++r) {\n var rect = repaintRects[r];\n ctx.save();\n ctx.beginPath();\n ctx.rect(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);\n ctx.clip();\n repaint(rect);\n ctx.restore();\n }\n }\n }\n else {\n ctx.save();\n repaint();\n ctx.restore();\n }\n layer.__drawIndex = i;\n if (layer.__drawIndex < layer.__endIndex) {\n finished = false;\n }\n };\n var this_1 = this;\n for (var k = 0; k < layerList.length; k++) {\n _loop_1(k);\n }\n if (env.wxa) {\n util.each(this._layers, function (layer) {\n if (layer && layer.ctx && layer.ctx.draw) {\n layer.ctx.draw();\n }\n });\n }\n return {\n finished: finished,\n needsRefreshHover: needsRefreshHover\n };\n };\n CanvasPainter.prototype._doPaintEl = function (el, currentLayer, useDirtyRect, repaintRect, scope, isLast) {\n var ctx = currentLayer.ctx;\n if (useDirtyRect) {\n var paintRect = el.getPaintRect();\n if (!repaintRect || paintRect && paintRect.intersect(repaintRect)) {\n brush(ctx, el, scope, isLast);\n el.setPrevPaintRect(paintRect);\n }\n }\n else {\n brush(ctx, el, scope, isLast);\n }\n };\n CanvasPainter.prototype.getLayer = function (zlevel, virtual) {\n if (this._singleCanvas && !this._needsManuallyCompositing) {\n zlevel = CANVAS_ZLEVEL;\n }\n var layer = this._layers[zlevel];\n if (!layer) {\n layer = new Layer('zr_' + zlevel, this, this.dpr);\n layer.zlevel = zlevel;\n layer.__builtin__ = true;\n if (this._layerConfig[zlevel]) {\n util.merge(layer, this._layerConfig[zlevel], true);\n }\n else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {\n util.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);\n }\n if (virtual) {\n layer.virtual = virtual;\n }\n this.insertLayer(zlevel, layer);\n layer.initContext();\n }\n return layer;\n };\n CanvasPainter.prototype.insertLayer = function (zlevel, layer) {\n var layersMap = this._layers;\n var zlevelList = this._zlevelList;\n var len = zlevelList.length;\n var domRoot = this._domRoot;\n var prevLayer = null;\n var i = -1;\n if (layersMap[zlevel]) {\n util.logError('ZLevel ' + zlevel + ' has been used already');\n return;\n }\n if (!isLayerValid(layer)) {\n util.logError('Layer of zlevel ' + zlevel + ' is not valid');\n return;\n }\n if (len > 0 && zlevel > zlevelList[0]) {\n for (i = 0; i < len - 1; i++) {\n if (zlevelList[i] < zlevel\n && zlevelList[i + 1] > zlevel) {\n break;\n }\n }\n prevLayer = layersMap[zlevelList[i]];\n }\n zlevelList.splice(i + 1, 0, zlevel);\n layersMap[zlevel] = layer;\n if (!layer.virtual) {\n if (prevLayer) {\n var prevDom = prevLayer.dom;\n if (prevDom.nextSibling) {\n domRoot.insertBefore(layer.dom, prevDom.nextSibling);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n else {\n if (domRoot.firstChild) {\n domRoot.insertBefore(layer.dom, domRoot.firstChild);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n }\n layer.__painter = this;\n };\n CanvasPainter.prototype.eachLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n cb.call(context, this._layers[z], z);\n }\n };\n CanvasPainter.prototype.eachBuiltinLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n };\n CanvasPainter.prototype.eachOtherLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (!layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n };\n CanvasPainter.prototype.getLayers = function () {\n return this._layers;\n };\n CanvasPainter.prototype._updateLayerStatus = function (list) {\n this.eachBuiltinLayer(function (layer, z) {\n layer.__dirty = layer.__used = false;\n });\n function updatePrevLayer(idx) {\n if (prevLayer) {\n if (prevLayer.__endIndex !== idx) {\n prevLayer.__dirty = true;\n }\n prevLayer.__endIndex = idx;\n }\n }\n if (this._singleCanvas) {\n for (var i_1 = 1; i_1 < list.length; i_1++) {\n var el = list[i_1];\n if (el.zlevel !== list[i_1 - 1].zlevel || el.incremental) {\n this._needsManuallyCompositing = true;\n break;\n }\n }\n }\n var prevLayer = null;\n var incrementalLayerCount = 0;\n var prevZlevel;\n var i;\n for (i = 0; i < list.length; i++) {\n var el = list[i];\n var zlevel = el.zlevel;\n var layer = void 0;\n if (prevZlevel !== zlevel) {\n prevZlevel = zlevel;\n incrementalLayerCount = 0;\n }\n if (el.incremental) {\n layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);\n layer.incremental = true;\n incrementalLayerCount = 1;\n }\n else {\n layer = this.getLayer(zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0), this._needsManuallyCompositing);\n }\n if (!layer.__builtin__) {\n util.logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id);\n }\n if (layer !== prevLayer) {\n layer.__used = true;\n if (layer.__startIndex !== i) {\n layer.__dirty = true;\n }\n layer.__startIndex = i;\n if (!layer.incremental) {\n layer.__drawIndex = i;\n }\n else {\n layer.__drawIndex = -1;\n }\n updatePrevLayer(i);\n prevLayer = layer;\n }\n if ((el.__dirty & REDARAW_BIT) && !el.__inHover) {\n layer.__dirty = true;\n if (layer.incremental && layer.__drawIndex < 0) {\n layer.__drawIndex = i;\n }\n }\n }\n updatePrevLayer(i);\n this.eachBuiltinLayer(function (layer, z) {\n if (!layer.__used && layer.getElementCount() > 0) {\n layer.__dirty = true;\n layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0;\n }\n if (layer.__dirty && layer.__drawIndex < 0) {\n layer.__drawIndex = layer.__startIndex;\n }\n });\n };\n CanvasPainter.prototype.clear = function () {\n this.eachBuiltinLayer(this._clearLayer);\n return this;\n };\n CanvasPainter.prototype._clearLayer = function (layer) {\n layer.clear();\n };\n CanvasPainter.prototype.setBackgroundColor = function (backgroundColor) {\n this._backgroundColor = backgroundColor;\n util.each(this._layers, function (layer) {\n layer.setUnpainted();\n });\n };\n CanvasPainter.prototype.configLayer = function (zlevel, config) {\n if (config) {\n var layerConfig = this._layerConfig;\n if (!layerConfig[zlevel]) {\n layerConfig[zlevel] = config;\n }\n else {\n util.merge(layerConfig[zlevel], config, true);\n }\n for (var i = 0; i < this._zlevelList.length; i++) {\n var _zlevel = this._zlevelList[i];\n if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {\n var layer = this._layers[_zlevel];\n util.merge(layer, layerConfig[zlevel], true);\n }\n }\n }\n };\n CanvasPainter.prototype.delLayer = function (zlevel) {\n var layers = this._layers;\n var zlevelList = this._zlevelList;\n var layer = layers[zlevel];\n if (!layer) {\n return;\n }\n layer.dom.parentNode.removeChild(layer.dom);\n delete layers[zlevel];\n zlevelList.splice(util.indexOf(zlevelList, zlevel), 1);\n };\n CanvasPainter.prototype.resize = function (width, height) {\n if (!this._domRoot.style) {\n if (width == null || height == null) {\n return;\n }\n this._width = width;\n this._height = height;\n this.getLayer(CANVAS_ZLEVEL).resize(width, height);\n }\n else {\n var domRoot = this._domRoot;\n domRoot.style.display = 'none';\n var opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n width = this._getSize(0);\n height = this._getSize(1);\n domRoot.style.display = '';\n if (this._width !== width || height !== this._height) {\n domRoot.style.width = width + 'px';\n domRoot.style.height = height + 'px';\n for (var id in this._layers) {\n if (this._layers.hasOwnProperty(id)) {\n this._layers[id].resize(width, height);\n }\n }\n this.refresh(true);\n }\n this._width = width;\n this._height = height;\n }\n return this;\n };\n CanvasPainter.prototype.clearLayer = function (zlevel) {\n var layer = this._layers[zlevel];\n if (layer) {\n layer.clear();\n }\n };\n CanvasPainter.prototype.dispose = function () {\n this.root.innerHTML = '';\n this.root =\n this.storage =\n this._domRoot =\n this._layers = null;\n };\n CanvasPainter.prototype.getRenderedCanvas = function (opts) {\n opts = opts || {};\n if (this._singleCanvas && !this._compositeManually) {\n return this._layers[CANVAS_ZLEVEL].dom;\n }\n var imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);\n imageLayer.initContext();\n imageLayer.clear(false, opts.backgroundColor || this._backgroundColor);\n var ctx = imageLayer.ctx;\n if (opts.pixelRatio <= this.dpr) {\n this.refresh();\n var width_1 = imageLayer.dom.width;\n var height_1 = imageLayer.dom.height;\n this.eachLayer(function (layer) {\n if (layer.__builtin__) {\n ctx.drawImage(layer.dom, 0, 0, width_1, height_1);\n }\n else if (layer.renderToCanvas) {\n ctx.save();\n layer.renderToCanvas(ctx);\n ctx.restore();\n }\n });\n }\n else {\n var scope = {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n };\n var displayList = this.storage.getDisplayList(true);\n for (var i = 0, len = displayList.length; i < len; i++) {\n var el = displayList[i];\n brush(ctx, el, scope, i === len - 1);\n }\n }\n return imageLayer.dom;\n };\n CanvasPainter.prototype.getWidth = function () {\n return this._width;\n };\n CanvasPainter.prototype.getHeight = function () {\n return this._height;\n };\n CanvasPainter.prototype._getSize = function (whIdx) {\n var opts = this._opts;\n var wh = ['width', 'height'][whIdx];\n var cwh = ['clientWidth', 'clientHeight'][whIdx];\n var plt = ['paddingLeft', 'paddingTop'][whIdx];\n var prb = ['paddingRight', 'paddingBottom'][whIdx];\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh]);\n }\n var root = this.root;\n var stl = document.defaultView.getComputedStyle(root);\n return ((root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)) | 0;\n };\n CanvasPainter.prototype.pathToImage = function (path, dpr) {\n dpr = dpr || this.dpr;\n var canvas = document.createElement('canvas');\n var ctx = canvas.getContext('2d');\n var rect = path.getBoundingRect();\n var style = path.style;\n var shadowBlurSize = style.shadowBlur * dpr;\n var shadowOffsetX = style.shadowOffsetX * dpr;\n var shadowOffsetY = style.shadowOffsetY * dpr;\n var lineWidth = path.hasStroke() ? style.lineWidth : 0;\n var leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize);\n var rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize);\n var topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize);\n var bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize);\n var width = rect.width + leftMargin + rightMargin;\n var height = rect.height + topMargin + bottomMargin;\n canvas.width = width * dpr;\n canvas.height = height * dpr;\n ctx.scale(dpr, dpr);\n ctx.clearRect(0, 0, width, height);\n ctx.dpr = dpr;\n var pathTransform = {\n x: path.x,\n y: path.y,\n scaleX: path.scaleX,\n scaleY: path.scaleY,\n rotation: path.rotation,\n originX: path.originX,\n originY: path.originY\n };\n path.x = leftMargin - rect.x;\n path.y = topMargin - rect.y;\n path.rotation = 0;\n path.scaleX = 1;\n path.scaleY = 1;\n path.updateTransform();\n if (path) {\n brush(ctx, path, {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n }, true);\n }\n var imgShape = new ZRImage({\n style: {\n x: 0,\n y: 0,\n image: canvas\n }\n });\n util.extend(path, pathTransform);\n return imgShape;\n };\n return CanvasPainter;\n}());\nexport default CanvasPainter;\n;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CanvasPainter from 'zrender/lib/canvas/Painter';\nexport function install(registers) {\n registers.registerPainter('canvas', CanvasPainter);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\nimport { createSymbol } from '../../util/symbol';\nimport { Group } from '../../util/graphic';\n\nvar LineSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(LineSeriesModel, _super);\n\n function LineSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LineSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n LineSeriesModel.prototype.getInitialData = function (option) {\n if (process.env.NODE_ENV !== 'production') {\n var coordSys = option.coordinateSystem;\n\n if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {\n throw new Error('Line not support coordinateSystem besides cartesian and polar');\n }\n }\n\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n LineSeriesModel.prototype.getLegendIcon = function (opt) {\n var group = new Group();\n var line = createSymbol('line', 0, opt.itemHeight / 2, opt.itemWidth, 0, opt.lineStyle.stroke, false);\n group.add(line);\n line.setStyle(opt.lineStyle);\n var visualType = this.getData().getVisual('symbol');\n var visualRotate = this.getData().getVisual('symbolRotate');\n var symbolType = visualType === 'none' ? 'circle' : visualType; // Symbol size is 80% when there is a line\n\n var size = opt.itemHeight * 0.8;\n var symbol = createSymbol(symbolType, (opt.itemWidth - size) / 2, (opt.itemHeight - size) / 2, size, size, opt.itemStyle.fill);\n group.add(symbol);\n symbol.setStyle(opt.itemStyle);\n var symbolRotate = opt.iconRotate === 'inherit' ? visualRotate : opt.iconRotate || 0;\n symbol.rotation = symbolRotate * Math.PI / 180;\n symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symbolType.indexOf('empty') > -1) {\n symbol.style.stroke = symbol.style.fill;\n symbol.style.fill = '#fff';\n symbol.style.lineWidth = 2;\n }\n\n return group;\n };\n\n LineSeriesModel.type = 'series.line';\n LineSeriesModel.dependencies = ['grid', 'polar'];\n LineSeriesModel.defaultOption = {\n zlevel: 0,\n z: 3,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n clip: true,\n label: {\n position: 'top'\n },\n // itemStyle: {\n // },\n endLabel: {\n show: false,\n valueAnimation: true,\n distance: 8\n },\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n emphasis: {\n scale: true,\n lineStyle: {\n width: 'bolder'\n }\n },\n // areaStyle: {\n // origin of areaStyle. Valid values:\n // `'auto'/null/undefined`: from axisLine to data\n // `'start'`: from min to data\n // `'end'`: from data to max\n // origin: 'auto'\n // },\n // false, 'start', 'end', 'middle'\n step: false,\n // Disabled if step is true\n smooth: false,\n smoothMonotone: null,\n symbol: 'emptyCircle',\n symbolSize: 4,\n symbolRotate: null,\n showSymbol: true,\n // `false`: follow the label interval strategy.\n // `true`: show all symbols.\n // `'auto'`: If possible, show all symbols, otherwise\n // follow the label interval strategy.\n showAllSymbol: 'auto',\n // Whether to connect break point.\n connectNulls: false,\n // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.\n sampling: 'none',\n animationEasing: 'linear',\n // Disable progressive\n progressive: 0,\n hoverLayerThreshold: Infinity\n };\n return LineSeriesModel;\n}(SeriesModel);\n\nexport default LineSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isArray } from 'zrender/lib/core/util';\n/**\n * @return label string. Not null/undefined\n */\n\nexport function getDefaultLabel(data, dataIndex) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1)\n\n if (len === 1) {\n var rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\n return rawVal != null ? rawVal + '' : null;\n } else if (len) {\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\n }\n\n return vals.join(' ');\n }\n}\nexport function getDefaultInterpolatedLabel(data, interpolatedValue) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n\n if (!isArray(interpolatedValue)) {\n return interpolatedValue + '';\n }\n\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n var dimInfo = data.getDimensionInfo(labelDims[i]);\n\n if (dimInfo) {\n vals.push(interpolatedValue[dimInfo.index]);\n }\n }\n\n return vals.join(' ');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { createSymbol } from '../../util/symbol';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport { parsePercent } from '../../util/number';\nimport { getDefaultLabel } from './labelHelper';\nimport { extend, isArray, retrieve2 } from 'zrender/lib/core/util';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\n\nvar Symbol =\n/** @class */\nfunction (_super) {\n __extends(Symbol, _super);\n\n function Symbol(data, idx, seriesScope, opts) {\n var _this = _super.call(this) || this;\n\n _this.updateData(data, idx, seriesScope, opts);\n\n return _this;\n }\n\n Symbol.prototype._createSymbol = function (symbolType, data, idx, symbolSize, keepAspect) {\n // Remove paths created before\n this.removeAll(); // let symbolPath = createSymbol(\n // symbolType, -0.5, -0.5, 1, 1, color\n // );\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4150.\n\n var symbolPath = createSymbol(symbolType, -1, -1, 2, 2, null, keepAspect);\n symbolPath.attr({\n z2: 100,\n culling: true,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n }); // Rewrite drift method\n\n symbolPath.drift = driftSymbol;\n this._symbolType = symbolType;\n this.add(symbolPath);\n };\n /**\n * Stop animation\n * @param {boolean} toLastFrame\n */\n\n\n Symbol.prototype.stopSymbolAnimation = function (toLastFrame) {\n this.childAt(0).stopAnimation(null, toLastFrame);\n };\n /**\n * FIXME:\n * Caution: This method breaks the encapsulation of this module,\n * but it indeed brings convenience. So do not use the method\n * unless you detailedly know all the implements of `Symbol`,\n * especially animation.\n *\n * Get symbol path element.\n */\n\n\n Symbol.prototype.getSymbolPath = function () {\n return this.childAt(0);\n };\n /**\n * Highlight symbol\n */\n\n\n Symbol.prototype.highlight = function () {\n enterEmphasis(this.childAt(0));\n };\n /**\n * Downplay symbol\n */\n\n\n Symbol.prototype.downplay = function () {\n leaveEmphasis(this.childAt(0));\n };\n /**\n * @param {number} zlevel\n * @param {number} z\n */\n\n\n Symbol.prototype.setZ = function (zlevel, z) {\n var symbolPath = this.childAt(0);\n symbolPath.zlevel = zlevel;\n symbolPath.z = z;\n };\n\n Symbol.prototype.setDraggable = function (draggable) {\n var symbolPath = this.childAt(0);\n symbolPath.draggable = draggable;\n symbolPath.cursor = draggable ? 'move' : symbolPath.cursor;\n };\n /**\n * Update symbol properties\n */\n\n\n Symbol.prototype.updateData = function (data, idx, seriesScope, opts) {\n this.silent = false;\n var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n var seriesModel = data.hostModel;\n var symbolSize = Symbol.getSymbolSize(data, idx);\n var isInit = symbolType !== this._symbolType;\n var disableAnimation = opts && opts.disableAnimation;\n\n if (isInit) {\n var keepAspect = data.getItemVisual(idx, 'symbolKeepAspect');\n\n this._createSymbol(symbolType, data, idx, symbolSize, keepAspect);\n } else {\n var symbolPath = this.childAt(0);\n symbolPath.silent = false;\n var target = {\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n };\n disableAnimation ? symbolPath.attr(target) : graphic.updateProps(symbolPath, target, seriesModel, idx);\n }\n\n this._updateCommon(data, idx, symbolSize, seriesScope, opts);\n\n if (isInit) {\n var symbolPath = this.childAt(0);\n\n if (!disableAnimation) {\n var target = {\n scaleX: this._sizeX,\n scaleY: this._sizeY,\n style: {\n // Always fadeIn. Because it has fadeOut animation when symbol is removed..\n opacity: symbolPath.style.opacity\n }\n };\n symbolPath.scaleX = symbolPath.scaleY = 0;\n symbolPath.style.opacity = 0;\n graphic.initProps(symbolPath, target, seriesModel, idx);\n }\n }\n\n if (disableAnimation) {\n // Must stop remove animation manually if don't call initProps or updateProps.\n this.childAt(0).stopAnimation('remove');\n }\n\n this._seriesModel = seriesModel;\n };\n\n Symbol.prototype._updateCommon = function (data, idx, symbolSize, seriesScope, opts) {\n var symbolPath = this.childAt(0);\n var seriesModel = data.hostModel;\n var emphasisItemStyle;\n var blurItemStyle;\n var selectItemStyle;\n var focus;\n var blurScope;\n var labelStatesModels;\n var hoverScale;\n var cursorStyle;\n\n if (seriesScope) {\n emphasisItemStyle = seriesScope.emphasisItemStyle;\n blurItemStyle = seriesScope.blurItemStyle;\n selectItemStyle = seriesScope.selectItemStyle;\n focus = seriesScope.focus;\n blurScope = seriesScope.blurScope;\n labelStatesModels = seriesScope.labelStatesModels;\n hoverScale = seriesScope.hoverScale;\n cursorStyle = seriesScope.cursorStyle;\n }\n\n if (!seriesScope || data.hasItemOption) {\n var itemModel = seriesScope && seriesScope.itemModel ? seriesScope.itemModel : data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n labelStatesModels = getLabelStatesModels(itemModel);\n hoverScale = emphasisModel.getShallow('scale');\n cursorStyle = itemModel.getShallow('cursor');\n }\n\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);\n var symbolOffset = data.getItemVisual(idx, 'symbolOffset') || 0;\n\n if (symbolOffset) {\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n symbolPath.x = parsePercent(symbolOffset[0], symbolSize[0]);\n symbolPath.y = parsePercent(retrieve2(symbolOffset[1], symbolOffset[0]) || 0, symbolSize[1]);\n }\n\n cursorStyle && symbolPath.attr('cursor', cursorStyle);\n var symbolStyle = data.getItemVisual(idx, 'style');\n var visualColor = symbolStyle.fill;\n\n if (symbolPath instanceof ZRImage) {\n var pathStyle = symbolPath.style;\n symbolPath.useStyle(extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolStyle));\n } else {\n if (symbolPath.__isEmptyBrush) {\n // fill and stroke will be swapped if it's empty.\n // So we cloned a new style to avoid it affecting the original style in visual storage.\n // TODO Better implementation. No empty logic!\n symbolPath.useStyle(extend({}, symbolStyle));\n } else {\n symbolPath.useStyle(symbolStyle);\n } // Disable decal because symbol scale will been applied on the decal.\n\n\n symbolPath.style.decal = null;\n symbolPath.setColor(visualColor, opts && opts.symbolInnerColor);\n symbolPath.style.strokeNoScale = true;\n }\n\n var liftZ = data.getItemVisual(idx, 'liftZ');\n var z2Origin = this._z2;\n\n if (liftZ != null) {\n if (z2Origin == null) {\n this._z2 = symbolPath.z2;\n symbolPath.z2 += liftZ;\n }\n } else if (z2Origin != null) {\n symbolPath.z2 = z2Origin;\n this._z2 = null;\n }\n\n var useNameLabel = opts && opts.useNameLabel;\n setLabelStyle(symbolPath, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultText: getLabelDefaultText,\n inheritColor: visualColor,\n defaultOpacity: symbolStyle.opacity\n }); // Do not execute util needed.\n\n function getLabelDefaultText(idx) {\n return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);\n }\n\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n var emphasisState = symbolPath.ensureState('emphasis');\n emphasisState.style = emphasisItemStyle;\n symbolPath.ensureState('select').style = selectItemStyle;\n symbolPath.ensureState('blur').style = blurItemStyle;\n\n if (hoverScale) {\n var scaleRatio = Math.max(1.1, 3 / this._sizeY);\n emphasisState.scaleX = this._sizeX * scaleRatio;\n emphasisState.scaleY = this._sizeY * scaleRatio;\n }\n\n this.setSymbolScale(1);\n enableHoverEmphasis(this, focus, blurScope);\n };\n\n Symbol.prototype.setSymbolScale = function (scale) {\n this.scaleX = this.scaleY = scale;\n };\n\n Symbol.prototype.fadeOut = function (cb, opt) {\n var symbolPath = this.childAt(0);\n var seriesModel = this._seriesModel;\n var dataIndex = getECData(this).dataIndex;\n var animationOpt = opt && opt.animation; // Avoid mistaken hover when fading out\n\n this.silent = symbolPath.silent = true; // Not show text when animating\n\n if (opt && opt.fadeLabel) {\n var textContent = symbolPath.getTextContent();\n\n if (textContent) {\n graphic.removeElement(textContent, {\n style: {\n opacity: 0\n }\n }, seriesModel, {\n dataIndex: dataIndex,\n removeOpt: animationOpt,\n cb: function () {\n symbolPath.removeTextContent();\n }\n });\n }\n } else {\n symbolPath.removeTextContent();\n }\n\n graphic.removeElement(symbolPath, {\n style: {\n opacity: 0\n },\n scaleX: 0,\n scaleY: 0\n }, seriesModel, {\n dataIndex: dataIndex,\n cb: cb,\n removeOpt: animationOpt\n });\n };\n\n Symbol.getSymbolSize = function (data, idx) {\n var symbolSize = data.getItemVisual(idx, 'symbolSize');\n return isArray(symbolSize) ? symbolSize.slice() : [+symbolSize, +symbolSize];\n };\n\n return Symbol;\n}(graphic.Group);\n\nfunction driftSymbol(dx, dy) {\n this.parent.drift(dx, dy);\n}\n\nexport default Symbol;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport SymbolClz from './Symbol';\nimport { isObject } from 'zrender/lib/core/util';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\nfunction symbolNeedsDraw(data, point, idx, opt) {\n return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx)) // We do not set clipShape on group, because it will cut part of\n // the symbol element shape. We use the same clip shape here as\n // the line clip.\n && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1])) && data.getItemVisual(idx, 'symbol') !== 'none';\n}\n\nfunction normalizeUpdateOpt(opt) {\n if (opt != null && !isObject(opt)) {\n opt = {\n isIgnore: opt\n };\n }\n\n return opt || {};\n}\n\nfunction makeSeriesScope(data) {\n var seriesModel = data.hostModel;\n var emphasisModel = seriesModel.getModel('emphasis');\n return {\n emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(),\n blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(),\n selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(),\n focus: emphasisModel.get('focus'),\n blurScope: emphasisModel.get('blurScope'),\n hoverScale: emphasisModel.get('scale'),\n labelStatesModels: getLabelStatesModels(seriesModel),\n cursorStyle: seriesModel.get('cursor')\n };\n}\n\nvar SymbolDraw =\n/** @class */\nfunction () {\n function SymbolDraw(SymbolCtor) {\n this.group = new graphic.Group();\n this._SymbolCtor = SymbolCtor || SymbolClz;\n }\n /**\n * Update symbols draw by new data\n */\n\n\n SymbolDraw.prototype.updateData = function (data, opt) {\n opt = normalizeUpdateOpt(opt);\n var group = this.group;\n var seriesModel = data.hostModel;\n var oldData = this._data;\n var SymbolCtor = this._SymbolCtor;\n var disableAnimation = opt.disableAnimation;\n var seriesScope = makeSeriesScope(data);\n var symbolUpdateOpt = {\n disableAnimation: disableAnimation\n };\n\n var getSymbolPoint = opt.getSymbolPoint || function (idx) {\n return data.getItemLayout(idx);\n }; // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n\n if (!oldData) {\n group.removeAll();\n }\n\n data.diff(oldData).add(function (newIdx) {\n var point = getSymbolPoint(newIdx);\n\n if (symbolNeedsDraw(data, point, newIdx, opt)) {\n var symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx);\n var point = getSymbolPoint(newIdx);\n\n if (!symbolNeedsDraw(data, point, newIdx, opt)) {\n group.remove(symbolEl);\n return;\n }\n\n if (!symbolEl) {\n symbolEl = new SymbolCtor(data, newIdx);\n symbolEl.setPosition(point);\n } else {\n symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt);\n var target = {\n x: point[0],\n y: point[1]\n };\n disableAnimation ? symbolEl.attr(target) : graphic.updateProps(symbolEl, target, seriesModel);\n } // Add back\n\n\n group.add(symbolEl);\n data.setItemGraphicEl(newIdx, symbolEl);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && el.fadeOut(function () {\n group.remove(el);\n });\n }).execute();\n this._getSymbolPoint = getSymbolPoint;\n this._data = data;\n };\n\n ;\n\n SymbolDraw.prototype.isPersistent = function () {\n return true;\n };\n\n ;\n\n SymbolDraw.prototype.updateLayout = function () {\n var _this = this;\n\n var data = this._data;\n\n if (data) {\n // Not use animation\n data.eachItemGraphicEl(function (el, idx) {\n var point = _this._getSymbolPoint(idx);\n\n el.setPosition(point);\n el.markRedraw();\n });\n }\n };\n\n ;\n\n SymbolDraw.prototype.incrementalPrepareUpdate = function (data) {\n this._seriesScope = makeSeriesScope(data);\n this._data = null;\n this.group.removeAll();\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n SymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {\n opt = normalizeUpdateOpt(opt);\n\n function updateIncrementalAndHover(el) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = taskParams.start; idx < taskParams.end; idx++) {\n var point = data.getItemLayout(idx);\n\n if (symbolNeedsDraw(data, point, idx, opt)) {\n var el = new this._SymbolCtor(data, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n el.setPosition(point);\n this.group.add(el);\n data.setItemGraphicEl(idx, el);\n }\n }\n };\n\n ;\n\n SymbolDraw.prototype.remove = function (enableAnimation) {\n var group = this.group;\n var data = this._data; // Incremental model do not have this._data.\n\n if (data && enableAnimation) {\n data.eachItemGraphicEl(function (el) {\n el.fadeOut(function () {\n group.remove(el);\n });\n });\n } else {\n group.removeAll();\n }\n };\n\n ;\n return SymbolDraw;\n}();\n\nexport default SymbolDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { map } from 'zrender/lib/core/util';\nexport function prepareDataCoordInfo(coordSys, data, valueOrigin) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var valueStart = getValueStart(valueAxis, valueOrigin);\n var baseAxisDim = baseAxis.dim;\n var valueAxisDim = valueAxis.dim;\n var valueDim = data.mapDimension(valueAxisDim);\n var baseDim = data.mapDimension(baseAxisDim);\n var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n var dims = map(coordSys.dimensions, function (coordDim) {\n return data.mapDimension(coordDim);\n });\n var stacked = false;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n // jshint ignore:line\n stacked = true;\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n // jshint ignore:line\n stacked = true;\n dims[1] = stackResultDim;\n }\n\n return {\n dataDimsForPoint: dims,\n valueStart: valueStart,\n valueAxisDim: valueAxisDim,\n baseAxisDim: baseAxisDim,\n stacked: !!stacked,\n valueDim: valueDim,\n baseDim: baseDim,\n baseDataOffset: baseDataOffset,\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension')\n };\n}\n\nfunction getValueStart(valueAxis, valueOrigin) {\n var valueStart = 0;\n var extent = valueAxis.scale.getExtent();\n\n if (valueOrigin === 'start') {\n valueStart = extent[0];\n } else if (valueOrigin === 'end') {\n valueStart = extent[1];\n } // auto\n else {\n // Both positive\n if (extent[0] > 0) {\n valueStart = extent[0];\n } // Both negative\n else if (extent[1] < 0) {\n valueStart = extent[1];\n } // If is one positive, and one negative, onZero shall be true\n\n }\n\n return valueStart;\n}\n\nexport function getStackedOnPoint(dataCoordInfo, coordSys, data, idx) {\n var value = NaN;\n\n if (dataCoordInfo.stacked) {\n value = data.get(data.getCalculationInfo('stackedOverDimension'), idx);\n }\n\n if (isNaN(value)) {\n value = dataCoordInfo.valueStart;\n }\n\n var baseDataOffset = dataCoordInfo.baseDataOffset;\n var stackedData = [];\n stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx);\n stackedData[1 - baseDataOffset] = value;\n return coordSys.dataToPoint(stackedData);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\n/* global Float32Array */\n\nvar supportFloat32Array = typeof Float32Array !== 'undefined';\nvar Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array;\nexport function createFloat32Array(arg) {\n if (isArray(arg)) {\n // Return self directly if don't support TypedArray.\n return supportFloat32Array ? new Float32Array(arg) : arg;\n } // Else is number\n\n\n return new Float32ArrayCtor(arg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { prepareDataCoordInfo, getStackedOnPoint } from './helper';\nimport { createFloat32Array } from '../../util/vendor';\n\nfunction diffData(oldData, newData) {\n var diffResult = [];\n newData.diff(oldData).add(function (idx) {\n diffResult.push({\n cmd: '+',\n idx: idx\n });\n }).update(function (newIdx, oldIdx) {\n diffResult.push({\n cmd: '=',\n idx: oldIdx,\n idx1: newIdx\n });\n }).remove(function (idx) {\n diffResult.push({\n cmd: '-',\n idx: idx\n });\n }).execute();\n return diffResult;\n}\n\nexport default function lineAnimationDiff(oldData, newData, oldStackedOnPoints, newStackedOnPoints, oldCoordSys, newCoordSys, oldValueOrigin, newValueOrigin) {\n var diff = diffData(oldData, newData); // let newIdList = newData.mapArray(newData.getId);\n // let oldIdList = oldData.mapArray(oldData.getId);\n // convertToIntId(newIdList, oldIdList);\n // // FIXME One data ?\n // diff = arrayDiff(oldIdList, newIdList);\n\n var currPoints = [];\n var nextPoints = []; // Points for stacking base line\n\n var currStackedPoints = [];\n var nextStackedPoints = [];\n var status = [];\n var sortedIndices = [];\n var rawIndices = [];\n var newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin); // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin);\n\n var oldPoints = oldData.getLayout('points') || [];\n var newPoints = newData.getLayout('points') || [];\n\n for (var i = 0; i < diff.length; i++) {\n var diffItem = diff[i];\n var pointAdded = true;\n var oldIdx2 = void 0;\n var newIdx2 = void 0; // FIXME, animation is not so perfect when dataZoom window moves fast\n // Which is in case remvoing or add more than one data in the tail or head\n\n switch (diffItem.cmd) {\n case '=':\n oldIdx2 = diffItem.idx * 2;\n newIdx2 = diffItem.idx1 * 2;\n var currentX = oldPoints[oldIdx2];\n var currentY = oldPoints[oldIdx2 + 1];\n var nextX = newPoints[newIdx2];\n var nextY = newPoints[newIdx2 + 1]; // If previous data is NaN, use next point directly\n\n if (isNaN(currentX) || isNaN(currentY)) {\n currentX = nextX;\n currentY = nextY;\n }\n\n currPoints.push(currentX, currentY);\n nextPoints.push(nextX, nextY);\n currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n rawIndices.push(newData.getRawIndex(diffItem.idx1));\n break;\n\n case '+':\n var newIdx = diffItem.idx;\n var newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint;\n var oldPt = oldCoordSys.dataToPoint([newData.get(newDataDimsForPoint[0], newIdx), newData.get(newDataDimsForPoint[1], newIdx)]);\n newIdx2 = newIdx * 2;\n currPoints.push(oldPt[0], oldPt[1]);\n nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]);\n var stackedOnPoint = getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, newIdx);\n currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n rawIndices.push(newData.getRawIndex(newIdx));\n break;\n\n case '-':\n pointAdded = false;\n } // Original indices\n\n\n if (pointAdded) {\n status.push(diffItem);\n sortedIndices.push(sortedIndices.length);\n }\n } // Diff result may be crossed if all items are changed\n // Sort by data index\n\n\n sortedIndices.sort(function (a, b) {\n return rawIndices[a] - rawIndices[b];\n });\n var len = currPoints.length;\n var sortedCurrPoints = createFloat32Array(len);\n var sortedNextPoints = createFloat32Array(len);\n var sortedCurrStackedPoints = createFloat32Array(len);\n var sortedNextStackedPoints = createFloat32Array(len);\n var sortedStatus = [];\n\n for (var i = 0; i < sortedIndices.length; i++) {\n var idx = sortedIndices[i];\n var i2 = i * 2;\n var idx2 = idx * 2;\n sortedCurrPoints[i2] = currPoints[idx2];\n sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1];\n sortedNextPoints[i2] = nextPoints[idx2];\n sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1];\n sortedCurrStackedPoints[i2] = currStackedPoints[idx2];\n sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1];\n sortedNextStackedPoints[i2] = nextStackedPoints[idx2];\n sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1];\n sortedStatus[i] = status[idx];\n }\n\n return {\n current: sortedCurrPoints,\n next: sortedNextPoints,\n stackedOnCurrent: sortedCurrStackedPoints,\n stackedOnNext: sortedNextStackedPoints,\n status: sortedStatus\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // Poly path support NaN point\n\nimport Path from 'zrender/lib/graphic/Path';\nimport PathProxy from 'zrender/lib/core/PathProxy';\nimport { cubicRootAt, cubicAt } from 'zrender/lib/core/curve';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\n\nfunction isPointNull(x, y) {\n return isNaN(x) || isNaN(y);\n}\n/**\n * Draw smoothed line in non-monotone, in may cause undesired curve in extreme\n * situations. This should be used when points are non-monotone neither in x or\n * y dimension.\n */\n\n\nfunction drawSegment(ctx, points, start, segLen, allLen, dir, smooth, smoothMonotone, connectNulls) {\n var prevX;\n var prevY;\n var cpx0;\n var cpy0;\n var cpx1;\n var cpy1;\n var idx = start;\n var k = 0;\n\n for (; k < segLen; k++) {\n var x = points[idx * 2];\n var y = points[idx * 2 + 1];\n\n if (idx >= allLen || idx < 0) {\n break;\n }\n\n if (isPointNull(x, y)) {\n if (connectNulls) {\n idx += dir;\n continue;\n }\n\n break;\n }\n\n if (idx === start) {\n ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y);\n cpx0 = x;\n cpy0 = y;\n } else {\n var dx = x - prevX;\n var dy = y - prevY; // Ignore tiny segment.\n\n if (dx * dx + dy * dy < 0.5) {\n idx += dir;\n continue;\n }\n\n if (smooth > 0) {\n var nextIdx = idx + dir;\n var nextX = points[nextIdx * 2];\n var nextY = points[nextIdx * 2 + 1];\n var tmpK = k + 1;\n\n if (connectNulls) {\n // Find next point not null\n while (isPointNull(nextX, nextY) && tmpK < segLen) {\n tmpK++;\n nextIdx += dir;\n nextX = points[nextIdx * 2];\n nextY = points[nextIdx * 2 + 1];\n }\n }\n\n var ratioNextSeg = 0.5;\n var vx = 0;\n var vy = 0;\n var nextCpx0 = void 0;\n var nextCpy0 = void 0; // Is last point\n\n if (tmpK >= segLen || isPointNull(nextX, nextY)) {\n cpx1 = x;\n cpy1 = y;\n } else {\n vx = nextX - prevX;\n vy = nextY - prevY;\n var dx0 = x - prevX;\n var dx1 = nextX - x;\n var dy0 = y - prevY;\n var dy1 = nextY - y;\n var lenPrevSeg = void 0;\n var lenNextSeg = void 0;\n\n if (smoothMonotone === 'x') {\n lenPrevSeg = Math.abs(dx0);\n lenNextSeg = Math.abs(dx1);\n cpx1 = x - lenPrevSeg * smooth;\n cpy1 = y;\n nextCpx0 = x + lenPrevSeg * smooth;\n nextCpy0 = y;\n } else if (smoothMonotone === 'y') {\n lenPrevSeg = Math.abs(dy0);\n lenNextSeg = Math.abs(dy1);\n cpx1 = x;\n cpy1 = y - lenPrevSeg * smooth;\n nextCpx0 = x;\n nextCpy0 = y + lenPrevSeg * smooth;\n } else {\n lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0);\n lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1); // Use ratio of seg length\n\n ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);\n cpx1 = x - vx * smooth * (1 - ratioNextSeg);\n cpy1 = y - vy * smooth * (1 - ratioNextSeg); // cp0 of next segment\n\n nextCpx0 = x + vx * smooth * ratioNextSeg;\n nextCpy0 = y + vy * smooth * ratioNextSeg; // Smooth constraint between point and next point.\n // Avoid exceeding extreme after smoothing.\n\n nextCpx0 = mathMin(nextCpx0, mathMax(nextX, x));\n nextCpy0 = mathMin(nextCpy0, mathMax(nextY, y));\n nextCpx0 = mathMax(nextCpx0, mathMin(nextX, x));\n nextCpy0 = mathMax(nextCpy0, mathMin(nextY, y)); // Reclaculate cp1 based on the adjusted cp0 of next seg.\n\n vx = nextCpx0 - x;\n vy = nextCpy0 - y;\n cpx1 = x - vx * lenPrevSeg / lenNextSeg;\n cpy1 = y - vy * lenPrevSeg / lenNextSeg; // Smooth constraint between point and prev point.\n // Avoid exceeding extreme after smoothing.\n\n cpx1 = mathMin(cpx1, mathMax(prevX, x));\n cpy1 = mathMin(cpy1, mathMax(prevY, y));\n cpx1 = mathMax(cpx1, mathMin(prevX, x));\n cpy1 = mathMax(cpy1, mathMin(prevY, y)); // Adjust next cp0 again.\n\n vx = x - cpx1;\n vy = y - cpy1;\n nextCpx0 = x + vx * lenNextSeg / lenPrevSeg;\n nextCpy0 = y + vy * lenNextSeg / lenPrevSeg;\n }\n }\n\n ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y);\n cpx0 = nextCpx0;\n cpy0 = nextCpy0;\n } else {\n ctx.lineTo(x, y);\n }\n }\n\n prevX = x;\n prevY = y;\n idx += dir;\n }\n\n return k;\n}\n\nvar ECPolylineShape =\n/** @class */\nfunction () {\n function ECPolylineShape() {\n this.smooth = 0;\n this.smoothConstraint = true;\n }\n\n return ECPolylineShape;\n}();\n\nvar ECPolyline =\n/** @class */\nfunction (_super) {\n __extends(ECPolyline, _super);\n\n function ECPolyline(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-polyline';\n return _this;\n }\n\n ECPolyline.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n ECPolyline.prototype.getDefaultShape = function () {\n return new ECPolylineShape();\n };\n\n ECPolyline.prototype.buildPath = function (ctx, shape) {\n var points = shape.points;\n var i = 0;\n var len = points.length / 2; // const result = getBoundingBox(points, shape.smoothConstraint);\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n\n while (i < len) {\n i += drawSegment(ctx, points, i, len, len, 1, shape.smooth, shape.smoothMonotone, shape.connectNulls) + 1;\n }\n };\n\n ECPolyline.prototype.getPointOn = function (xOrY, dim) {\n if (!this.path) {\n this.createPathProxy();\n this.buildPath(this.path, this.shape);\n }\n\n var path = this.path;\n var data = path.data;\n var CMD = PathProxy.CMD;\n var x0;\n var y0;\n var isDimX = dim === 'x';\n var roots = [];\n\n for (var i = 0; i < data.length;) {\n var cmd = data[i++];\n var x = void 0;\n var y = void 0;\n var x2 = void 0;\n var y2 = void 0;\n var x3 = void 0;\n var y3 = void 0;\n var t = void 0;\n\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n break;\n\n case CMD.L:\n x = data[i++];\n y = data[i++];\n t = isDimX ? (xOrY - x0) / (x - x0) : (xOrY - y0) / (y - y0);\n\n if (t <= 1 && t >= 0) {\n var val = isDimX ? (y - y0) * t + y0 : (x - x0) * t + x0;\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n\n x0 = x;\n y0 = y;\n break;\n\n case CMD.C:\n x = data[i++];\n y = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n x3 = data[i++];\n y3 = data[i++];\n var nRoot = isDimX ? cubicRootAt(x0, x, x2, x3, xOrY, roots) : cubicRootAt(y0, y, y2, y3, xOrY, roots);\n\n if (nRoot > 0) {\n for (var i_1 = 0; i_1 < nRoot; i_1++) {\n var t_1 = roots[i_1];\n\n if (t_1 <= 1 && t_1 >= 0) {\n var val = isDimX ? cubicAt(y0, y, y2, y3, t_1) : cubicAt(x0, x, x2, x3, t_1);\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n }\n }\n\n x0 = x3;\n y0 = y3;\n break;\n }\n }\n };\n\n return ECPolyline;\n}(Path);\n\nexport { ECPolyline };\n\nvar ECPolygonShape =\n/** @class */\nfunction (_super) {\n __extends(ECPolygonShape, _super);\n\n function ECPolygonShape() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return ECPolygonShape;\n}(ECPolylineShape);\n\nvar ECPolygon =\n/** @class */\nfunction (_super) {\n __extends(ECPolygon, _super);\n\n function ECPolygon(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-polygon';\n return _this;\n }\n\n ECPolygon.prototype.getDefaultShape = function () {\n return new ECPolygonShape();\n };\n\n ECPolygon.prototype.buildPath = function (ctx, shape) {\n var points = shape.points;\n var stackedOnPoints = shape.stackedOnPoints;\n var i = 0;\n var len = points.length / 2;\n var smoothMonotone = shape.smoothMonotone;\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n\n while (i < len) {\n var k = drawSegment(ctx, points, i, len, len, 1, shape.smooth, smoothMonotone, shape.connectNulls);\n drawSegment(ctx, stackedOnPoints, i + k - 1, k, len, -1, shape.stackedOnSmooth, smoothMonotone, shape.connectNulls);\n i += k + 1;\n ctx.closePath();\n }\n };\n\n return ECPolygon;\n}(Path);\n\nexport { ECPolygon };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport { round } from '../../util/number';\n\nfunction createGridClipPath(cartesian, hasAnimation, seriesModel, done, during) {\n var rect = cartesian.getArea();\n var x = rect.x;\n var y = rect.y;\n var width = rect.width;\n var height = rect.height;\n var lineWidth = seriesModel.get(['lineStyle', 'width']) || 2; // Expand the clip path a bit to avoid the border is clipped and looks thinner\n\n x -= lineWidth / 2;\n y -= lineWidth / 2;\n width += lineWidth;\n height += lineWidth; // fix: https://github.com/apache/incubator-echarts/issues/11369\n\n x = Math.floor(x);\n width = Math.round(width);\n var clipPath = new graphic.Rect({\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n }\n });\n\n if (hasAnimation) {\n var baseAxis = cartesian.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isAxisInversed = baseAxis.inverse;\n\n if (isHorizontal) {\n if (isAxisInversed) {\n clipPath.shape.x += width;\n }\n\n clipPath.shape.width = 0;\n } else {\n if (!isAxisInversed) {\n clipPath.shape.y += height;\n }\n\n clipPath.shape.height = 0;\n }\n\n var duringCb = typeof during === 'function' ? function (percent) {\n during(percent, clipPath);\n } : null;\n graphic.initProps(clipPath, {\n shape: {\n width: width,\n height: height,\n x: x,\n y: y\n }\n }, seriesModel, null, done, duringCb);\n }\n\n return clipPath;\n}\n\nfunction createPolarClipPath(polar, hasAnimation, seriesModel) {\n var sectorArea = polar.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent.\n\n var r0 = round(sectorArea.r0, 1);\n var r = round(sectorArea.r, 1);\n var clipPath = new graphic.Sector({\n shape: {\n cx: round(polar.cx, 1),\n cy: round(polar.cy, 1),\n r0: r0,\n r: r,\n startAngle: sectorArea.startAngle,\n endAngle: sectorArea.endAngle,\n clockwise: sectorArea.clockwise\n }\n });\n\n if (hasAnimation) {\n var isRadial = polar.getBaseAxis().dim === 'angle';\n\n if (isRadial) {\n clipPath.shape.endAngle = sectorArea.startAngle;\n } else {\n clipPath.shape.r = r0;\n }\n\n graphic.initProps(clipPath, {\n shape: {\n endAngle: sectorArea.endAngle,\n r: r\n }\n }, seriesModel);\n }\n\n return clipPath;\n}\n\nfunction createClipPath(coordSys, hasAnimation, seriesModel, done, during) {\n if (!coordSys) {\n return null;\n } else if (coordSys.type === 'polar') {\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n } else if (coordSys.type === 'cartesian2d') {\n return createGridClipPath(coordSys, hasAnimation, seriesModel, done, during);\n }\n\n return null;\n}\n\nexport { createGridClipPath, createPolarClipPath, createClipPath };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function isCoordinateSystemType(coordSys, type) {\n return coordSys.type === type;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // FIXME step not support polar\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport SymbolClz from '../helper/Symbol';\nimport lineAnimationDiff from './lineAnimationDiff';\nimport * as graphic from '../../util/graphic';\nimport * as modelUtil from '../../util/model';\nimport { ECPolyline, ECPolygon } from './poly';\nimport ChartView from '../../view/Chart';\nimport { prepareDataCoordInfo, getStackedOnPoint } from './helper';\nimport { createGridClipPath, createPolarClipPath } from '../helper/createClipPathFromCoordSys';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setStatesStylesFromModel, setStatesFlag, enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, labelInner } from '../../label/labelStyle';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport { getECData } from '../../util/innerStore';\nimport { createFloat32Array } from '../../util/vendor';\nimport { convertToColorString } from '../../util/format';\n\nfunction isPointsSame(points1, points2) {\n if (points1.length !== points2.length) {\n return;\n }\n\n for (var i = 0; i < points1.length; i++) {\n if (points1[i] !== points2[i]) {\n return;\n }\n }\n\n return true;\n}\n\nfunction bboxFromPoints(points) {\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (!isNaN(x)) {\n minX = Math.min(x, minX);\n maxX = Math.max(x, maxX);\n }\n\n if (!isNaN(y)) {\n minY = Math.min(y, minY);\n maxY = Math.max(y, maxY);\n }\n }\n\n return [[minX, minY], [maxX, maxY]];\n}\n\nfunction getBoundingDiff(points1, points2) {\n var _a = bboxFromPoints(points1),\n min1 = _a[0],\n max1 = _a[1];\n\n var _b = bboxFromPoints(points2),\n min2 = _b[0],\n max2 = _b[1]; // Get a max value from each corner of two boundings.\n\n\n return Math.max(Math.abs(min1[0] - min2[0]), Math.abs(min1[1] - min2[1]), Math.abs(max1[0] - max2[0]), Math.abs(max1[1] - max2[1]));\n}\n\nfunction getSmooth(smooth) {\n return typeof smooth === 'number' ? smooth : smooth ? 0.5 : 0;\n}\n\nfunction getStackedOnPoints(coordSys, data, dataCoordInfo) {\n if (!dataCoordInfo.valueDim) {\n return [];\n }\n\n var len = data.count();\n var points = createFloat32Array(len * 2);\n\n for (var idx = 0; idx < len; idx++) {\n var pt = getStackedOnPoint(dataCoordInfo, coordSys, data, idx);\n points[idx * 2] = pt[0];\n points[idx * 2 + 1] = pt[1];\n }\n\n return points;\n}\n\nfunction turnPointsIntoStep(points, coordSys, stepTurnAt) {\n var baseAxis = coordSys.getBaseAxis();\n var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;\n var stepPoints = [];\n var i = 0;\n var stepPt = [];\n var pt = [];\n var nextPt = [];\n\n for (; i < points.length - 2; i += 2) {\n nextPt[0] = points[i + 2];\n nextPt[1] = points[i + 3];\n pt[0] = points[i];\n pt[1] = points[i + 1];\n stepPoints.push(pt[0], pt[1]);\n\n switch (stepTurnAt) {\n case 'end':\n stepPt[baseIndex] = nextPt[baseIndex];\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n break;\n\n case 'middle':\n var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;\n var stepPt2 = [];\n stepPt[baseIndex] = stepPt2[baseIndex] = middle;\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n stepPoints.push(stepPt2[0], stepPt2[1]);\n break;\n\n default:\n // default is start\n stepPt[baseIndex] = pt[baseIndex];\n stepPt[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n }\n } // Last points\n\n\n stepPoints.push(points[i++], points[i++]);\n return stepPoints;\n}\n\nfunction getVisualGradient(data, coordSys) {\n var visualMetaList = data.getVisual('visualMeta');\n\n if (!visualMetaList || !visualMetaList.length || !data.count()) {\n // When data.count() is 0, gradient range can not be calculated.\n return;\n }\n\n if (coordSys.type !== 'cartesian2d') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Visual map on line style is only supported on cartesian2d.');\n }\n\n return;\n }\n\n var coordDim;\n var visualMeta;\n\n for (var i = visualMetaList.length - 1; i >= 0; i--) {\n var dimIndex = visualMetaList[i].dimension;\n var dimName = data.dimensions[dimIndex];\n var dimInfo = data.getDimensionInfo(dimName);\n coordDim = dimInfo && dimInfo.coordDim; // Can only be x or y\n\n if (coordDim === 'x' || coordDim === 'y') {\n visualMeta = visualMetaList[i];\n break;\n }\n }\n\n if (!visualMeta) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Visual map on line style only support x or y dimension.');\n }\n\n return;\n } // If the area to be rendered is bigger than area defined by LinearGradient,\n // the canvas spec prescribes that the color of the first stop and the last\n // stop should be used. But if two stops are added at offset 0, in effect\n // browsers use the color of the second stop to render area outside\n // LinearGradient. So we can only infinitesimally extend area defined in\n // LinearGradient to render `outerColors`.\n\n\n var axis = coordSys.getAxis(coordDim); // dataToCoord mapping may not be linear, but must be monotonic.\n\n var colorStops = zrUtil.map(visualMeta.stops, function (stop) {\n return {\n offset: 0,\n coord: axis.toGlobalCoord(axis.dataToCoord(stop.value, true)),\n color: stop.color\n };\n });\n var stopLen = colorStops.length;\n var outerColors = visualMeta.outerColors.slice();\n\n if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {\n colorStops.reverse();\n outerColors.reverse();\n }\n\n var tinyExtent = 10; // Arbitrary value: 10px\n\n var minCoord = colorStops[0].coord - tinyExtent;\n var maxCoord = colorStops[stopLen - 1].coord + tinyExtent;\n var coordSpan = maxCoord - minCoord;\n\n if (coordSpan < 1e-3) {\n return 'transparent';\n }\n\n zrUtil.each(colorStops, function (stop) {\n stop.offset = (stop.coord - minCoord) / coordSpan;\n });\n colorStops.push({\n offset: stopLen ? colorStops[stopLen - 1].offset : 0.5,\n color: outerColors[1] || 'transparent'\n });\n colorStops.unshift({\n offset: stopLen ? colorStops[0].offset : 0.5,\n color: outerColors[0] || 'transparent'\n }); // zrUtil.each(colorStops, function (colorStop) {\n // // Make sure each offset has rounded px to avoid not sharp edge\n // colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start);\n // });\n\n var gradient = new graphic.LinearGradient(0, 0, 0, 0, colorStops, true);\n gradient[coordDim] = minCoord;\n gradient[coordDim + '2'] = maxCoord;\n return gradient;\n}\n\nfunction getIsIgnoreFunc(seriesModel, data, coordSys) {\n var showAllSymbol = seriesModel.get('showAllSymbol');\n var isAuto = showAllSymbol === 'auto';\n\n if (showAllSymbol && !isAuto) {\n return;\n }\n\n var categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n\n if (!categoryAxis) {\n return;\n } // Note that category label interval strategy might bring some weird effect\n // in some scenario: users may wonder why some of the symbols are not\n // displayed. So we show all symbols as possible as we can.\n\n\n if (isAuto // Simplify the logic, do not determine label overlap here.\n && canShowAllSymbolForCategory(categoryAxis, data)) {\n return;\n } // Otherwise follow the label interval strategy on category axis.\n\n\n var categoryDataDim = data.mapDimension(categoryAxis.dim);\n var labelMap = {};\n zrUtil.each(categoryAxis.getViewLabels(), function (labelItem) {\n var ordinalNumber = categoryAxis.scale.getRawOrdinalNumber(labelItem.tickValue);\n labelMap[ordinalNumber] = 1;\n });\n return function (dataIndex) {\n return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex));\n };\n}\n\nfunction canShowAllSymbolForCategory(categoryAxis, data) {\n // In mose cases, line is monotonous on category axis, and the label size\n // is close with each other. So we check the symbol size and some of the\n // label size alone with the category axis to estimate whether all symbol\n // can be shown without overlap.\n var axisExtent = categoryAxis.getExtent();\n var availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count();\n isNaN(availSize) && (availSize = 0); // 0/0 is NaN.\n // Sampling some points, max 5.\n\n var dataLen = data.count();\n var step = Math.max(1, Math.round(dataLen / 5));\n\n for (var dataIndex = 0; dataIndex < dataLen; dataIndex += step) {\n if (SymbolClz.getSymbolSize(data, dataIndex // Only for cartesian, where `isHorizontal` exists.\n )[categoryAxis.isHorizontal() ? 1 : 0] // Empirical number\n * 1.5 > availSize) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction isPointNull(x, y) {\n return isNaN(x) || isNaN(y);\n}\n\nfunction getLastIndexNotNull(points) {\n var len = points.length / 2;\n\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n return len - 1;\n}\n\nfunction getPointAtIndex(points, idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n}\n\nfunction getIndexRange(points, xOrY, dim) {\n var len = points.length / 2;\n var dimIdx = dim === 'x' ? 0 : 1;\n var a;\n var b;\n var prevIndex = 0;\n var nextIndex = -1;\n\n for (var i = 0; i < len; i++) {\n b = points[i * 2 + dimIdx];\n\n if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) {\n continue;\n }\n\n if (i === 0) {\n a = b;\n continue;\n }\n\n if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) {\n nextIndex = i;\n break;\n }\n\n prevIndex = i;\n a = b;\n }\n\n return {\n range: [prevIndex, nextIndex],\n t: (xOrY - a) / (b - a)\n };\n}\n\nfunction createLineClipPath(lineView, coordSys, hasAnimation, seriesModel) {\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var endLabelModel_1 = seriesModel.getModel('endLabel');\n var showEndLabel = endLabelModel_1.get('show');\n var valueAnimation_1 = endLabelModel_1.get('valueAnimation');\n var data_1 = seriesModel.getData();\n var labelAnimationRecord_1 = {\n lastFrameIndex: 0\n };\n var during = showEndLabel ? function (percent, clipRect) {\n lineView._endLabelOnDuring(percent, clipRect, data_1, labelAnimationRecord_1, valueAnimation_1, endLabelModel_1, coordSys);\n } : null;\n var isHorizontal = coordSys.getBaseAxis().isHorizontal();\n var clipPath = createGridClipPath(coordSys, hasAnimation, seriesModel, function () {\n var endLabel = lineView._endLabel;\n\n if (endLabel && hasAnimation) {\n if (labelAnimationRecord_1.originalX != null) {\n endLabel.attr({\n x: labelAnimationRecord_1.originalX,\n y: labelAnimationRecord_1.originalY\n });\n }\n }\n }, during); // Expand clip shape to avoid clipping when line value exceeds axis\n\n if (!seriesModel.get('clip', true)) {\n var rectShape = clipPath.shape;\n var expandSize = Math.max(rectShape.width, rectShape.height);\n\n if (isHorizontal) {\n rectShape.y -= expandSize;\n rectShape.height += expandSize * 2;\n } else {\n rectShape.x -= expandSize;\n rectShape.width += expandSize * 2;\n }\n } // Set to the final frame. To make sure label layout is right.\n\n\n if (during) {\n during(1, clipPath);\n }\n\n return clipPath;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n if (seriesModel.get(['endLabel', 'show'])) {\n console.warn('endLabel is not supported for lines in polar systems.');\n }\n }\n\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n }\n}\n\nfunction getEndLabelStateSpecified(endLabelModel, coordSys) {\n var baseAxis = coordSys.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isBaseInversed = baseAxis.inverse;\n var align = isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center';\n var verticalAlign = isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom';\n return {\n normal: {\n align: endLabelModel.get('align') || align,\n verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign\n }\n };\n}\n\nvar LineView =\n/** @class */\nfunction (_super) {\n __extends(LineView, _super);\n\n function LineView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n LineView.prototype.init = function () {\n var lineGroup = new graphic.Group();\n var symbolDraw = new SymbolDraw();\n this.group.add(symbolDraw.group);\n this._symbolDraw = symbolDraw;\n this._lineGroup = lineGroup;\n };\n\n LineView.prototype.render = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var coordSys = seriesModel.coordinateSystem;\n var group = this.group;\n var data = seriesModel.getData();\n var lineStyleModel = seriesModel.getModel('lineStyle');\n var areaStyleModel = seriesModel.getModel('areaStyle');\n var points = data.getLayout('points') || [];\n var isCoordSysPolar = coordSys.type === 'polar';\n var prevCoordSys = this._coordSys;\n var symbolDraw = this._symbolDraw;\n var polyline = this._polyline;\n var polygon = this._polygon;\n var lineGroup = this._lineGroup;\n var hasAnimation = seriesModel.get('animation');\n var isAreaChart = !areaStyleModel.isEmpty();\n var valueOrigin = areaStyleModel.get('origin');\n var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);\n var stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo);\n var showSymbol = seriesModel.get('showSymbol');\n var isIgnoreFunc = showSymbol && !isCoordSysPolar && getIsIgnoreFunc(seriesModel, data, coordSys); // Remove temporary symbols\n\n var oldData = this._data;\n oldData && oldData.eachItemGraphicEl(function (el, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n }); // Remove previous created symbols if showSymbol changed to false\n\n if (!showSymbol) {\n symbolDraw.remove();\n }\n\n group.add(lineGroup); // FIXME step not support polar\n\n var step = !isCoordSysPolar ? seriesModel.get('step') : false;\n var clipShapeForSymbol;\n\n if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) {\n clipShapeForSymbol = coordSys.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent.\n // See #7913 and `test/dataZoom-clip.html`.\n\n if (clipShapeForSymbol.width != null) {\n clipShapeForSymbol.x -= 0.1;\n clipShapeForSymbol.y -= 0.1;\n clipShapeForSymbol.width += 0.2;\n clipShapeForSymbol.height += 0.2;\n } else if (clipShapeForSymbol.r0) {\n clipShapeForSymbol.r0 -= 0.5;\n clipShapeForSymbol.r += 0.5;\n }\n }\n\n this._clipShapeForSymbol = clipShapeForSymbol;\n var visualColor = getVisualGradient(data, coordSys) || data.getVisual('style')[data.getVisual('drawType')]; // Initialization animation or coordinate system changed\n\n if (!(polyline && prevCoordSys.type === coordSys.type && step === this._step)) {\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint: function (idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n hasAnimation && this._initSymbolLabelAnimation(data, coordSys, clipShapeForSymbol);\n\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline = this._newPolyline(points);\n\n if (isAreaChart) {\n polygon = this._newPolygon(points, stackedOnPoints);\n } // NOTE: Must update _endLabel before setClipPath.\n\n\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));\n }\n\n lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel));\n } else {\n if (isAreaChart && !polygon) {\n // If areaStyle is added\n polygon = this._newPolygon(points, stackedOnPoints);\n } else if (polygon && !isAreaChart) {\n // If areaStyle is removed\n lineGroup.remove(polygon);\n polygon = this._polygon = null;\n } // NOTE: Must update _endLabel before setClipPath.\n\n\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));\n } // Update clipPath\n\n\n lineGroup.setClipPath(createLineClipPath(this, coordSys, false, seriesModel)); // Always update, or it is wrong in the case turning on legend\n // because points are not changed\n\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint: function (idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n }); // In the case data zoom triggerred refreshing frequently\n // Data may not change if line has a category axis. So it should animate nothing\n\n if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points)) {\n if (hasAnimation) {\n this._doUpdateAnimation(data, stackedOnPoints, coordSys, api, step, valueOrigin);\n } else {\n // Not do it in update with animation\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline.setShape({\n points: points\n });\n polygon && polygon.setShape({\n points: points,\n stackedOnPoints: stackedOnPoints\n });\n }\n }\n }\n\n var focus = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n polyline.useStyle(zrUtil.defaults( // Use color in lineStyle first\n lineStyleModel.getLineStyle(), {\n fill: 'none',\n stroke: visualColor,\n lineJoin: 'bevel'\n }));\n setStatesStylesFromModel(polyline, seriesModel, 'lineStyle');\n\n if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') {\n var emphasisLineStyle = polyline.getState('emphasis').style;\n emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1;\n } // Needs seriesIndex for focus\n\n\n getECData(polyline).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polyline, focus, blurScope);\n var smooth = getSmooth(seriesModel.get('smooth'));\n var smoothMonotone = seriesModel.get('smoothMonotone');\n var connectNulls = seriesModel.get('connectNulls');\n polyline.setShape({\n smooth: smooth,\n smoothMonotone: smoothMonotone,\n connectNulls: connectNulls\n });\n\n if (polygon) {\n var stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n var stackedOnSmooth = 0;\n polygon.useStyle(zrUtil.defaults(areaStyleModel.getAreaStyle(), {\n fill: visualColor,\n opacity: 0.7,\n lineJoin: 'bevel',\n decal: data.getVisual('style').decal\n }));\n\n if (stackedOnSeries) {\n stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));\n }\n\n polygon.setShape({\n smooth: smooth,\n stackedOnSmooth: stackedOnSmooth,\n smoothMonotone: smoothMonotone,\n connectNulls: connectNulls\n });\n setStatesStylesFromModel(polygon, seriesModel, 'areaStyle'); // Needs seriesIndex for focus\n\n getECData(polygon).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polygon, focus, blurScope);\n }\n\n var changePolyState = function (toState) {\n _this._changePolyState(toState);\n };\n\n data.eachItemGraphicEl(function (el) {\n // Switch polyline / polygon state if element changed its state.\n el && (el.onHoverStateChange = changePolyState);\n });\n this._polyline.onHoverStateChange = changePolyState;\n this._data = data; // Save the coordinate system for transition animation when data changed\n\n this._coordSys = coordSys;\n this._stackedOnPoints = stackedOnPoints;\n this._points = points;\n this._step = step;\n this._valueOrigin = valueOrigin;\n };\n\n LineView.prototype.dispose = function () {};\n\n LineView.prototype.highlight = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('emphasis');\n\n if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {\n var points = data.getLayout('points');\n var symbol = data.getItemGraphicEl(dataIndex);\n\n if (!symbol) {\n // Create a temporary symbol if it is not exists\n var x = points[dataIndex * 2];\n var y = points[dataIndex * 2 + 1];\n\n if (isNaN(x) || isNaN(y)) {\n // Null data\n return;\n } // fix #11360: should't draw symbol outside clipShapeForSymbol\n\n\n if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) {\n return;\n }\n\n var zlevel = seriesModel.get('zlevel');\n var z = seriesModel.get('z');\n symbol = new SymbolClz(data, dataIndex);\n symbol.x = x;\n symbol.y = y;\n symbol.setZ(zlevel, z); // ensure label text of the temporary symbol is in front of line and area polygon\n\n var symbolLabel = symbol.getSymbolPath().getTextContent();\n\n if (symbolLabel) {\n symbolLabel.zlevel = zlevel;\n symbolLabel.z = z;\n symbolLabel.z2 = this._polyline.z2 + 1;\n }\n\n symbol.__temp = true;\n data.setItemGraphicEl(dataIndex, symbol); // Stop scale animation\n\n symbol.stopSymbolAnimation(true);\n this.group.add(symbol);\n }\n\n symbol.highlight();\n } else {\n // Highlight whole series\n ChartView.prototype.highlight.call(this, seriesModel, ecModel, api, payload);\n }\n };\n\n LineView.prototype.downplay = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('normal');\n\n if (dataIndex != null && dataIndex >= 0) {\n var symbol = data.getItemGraphicEl(dataIndex);\n\n if (symbol) {\n if (symbol.__temp) {\n data.setItemGraphicEl(dataIndex, null);\n this.group.remove(symbol);\n } else {\n symbol.downplay();\n }\n }\n } else {\n // FIXME\n // can not downplay completely.\n // Downplay whole series\n ChartView.prototype.downplay.call(this, seriesModel, ecModel, api, payload);\n }\n };\n\n LineView.prototype._changePolyState = function (toState) {\n var polygon = this._polygon;\n setStatesFlag(this._polyline, toState);\n polygon && setStatesFlag(polygon, toState);\n };\n\n LineView.prototype._newPolyline = function (points) {\n var polyline = this._polyline; // Remove previous created polyline\n\n if (polyline) {\n this._lineGroup.remove(polyline);\n }\n\n polyline = new ECPolyline({\n shape: {\n points: points\n },\n segmentIgnoreThreshold: 2,\n z2: 10\n });\n\n this._lineGroup.add(polyline);\n\n this._polyline = polyline;\n return polyline;\n };\n\n LineView.prototype._newPolygon = function (points, stackedOnPoints) {\n var polygon = this._polygon; // Remove previous created polygon\n\n if (polygon) {\n this._lineGroup.remove(polygon);\n }\n\n polygon = new ECPolygon({\n shape: {\n points: points,\n stackedOnPoints: stackedOnPoints\n },\n segmentIgnoreThreshold: 2\n });\n\n this._lineGroup.add(polygon);\n\n this._polygon = polygon;\n return polygon;\n };\n\n LineView.prototype._initSymbolLabelAnimation = function (data, coordSys, clipShape) {\n var isHorizontalOrRadial;\n var isCoordSysPolar;\n var baseAxis = coordSys.getBaseAxis();\n var isAxisInverse = baseAxis.inverse;\n\n if (coordSys.type === 'cartesian2d') {\n isHorizontalOrRadial = baseAxis.isHorizontal();\n isCoordSysPolar = false;\n } else if (coordSys.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n isCoordSysPolar = true;\n }\n\n var seriesModel = data.hostModel;\n var seriesDuration = seriesModel.get('animationDuration');\n\n if (typeof seriesDuration === 'function') {\n seriesDuration = seriesDuration(null);\n }\n\n var seriesDalay = seriesModel.get('animationDelay') || 0;\n var seriesDalayValue = typeof seriesDalay === 'function' ? seriesDalay(null) : seriesDalay;\n data.eachItemGraphicEl(function (symbol, idx) {\n var el = symbol;\n\n if (el) {\n var point = [symbol.x, symbol.y];\n var start = void 0;\n var end = void 0;\n var current = void 0;\n\n if (clipShape) {\n if (isCoordSysPolar) {\n var polarClip = clipShape;\n var coord = coordSys.pointToCoord(point);\n\n if (isHorizontalOrRadial) {\n start = polarClip.startAngle;\n end = polarClip.endAngle;\n current = -coord[1] / 180 * Math.PI;\n } else {\n start = polarClip.r0;\n end = polarClip.r;\n current = coord[0];\n }\n } else {\n var gridClip = clipShape;\n\n if (isHorizontalOrRadial) {\n start = gridClip.x;\n end = gridClip.x + gridClip.width;\n current = symbol.x;\n } else {\n start = gridClip.y + gridClip.height;\n end = gridClip.y;\n current = symbol.y;\n }\n }\n }\n\n var ratio = end === start ? 0 : (current - start) / (end - start);\n\n if (isAxisInverse) {\n ratio = 1 - ratio;\n }\n\n var delay = typeof seriesDalay === 'function' ? seriesDalay(idx) : seriesDuration * ratio + seriesDalayValue;\n var symbolPath = el.getSymbolPath();\n var text = symbolPath.getTextContent();\n el.attr({\n scaleX: 0,\n scaleY: 0\n });\n el.animateTo({\n scaleX: 1,\n scaleY: 1\n }, {\n duration: 200,\n delay: delay\n });\n\n if (text) {\n text.animateFrom({\n style: {\n opacity: 0\n }\n }, {\n duration: 300,\n delay: delay\n });\n }\n\n symbolPath.disableLabelAnimation = true;\n }\n });\n };\n\n LineView.prototype._initOrUpdateEndLabel = function (seriesModel, coordSys, inheritColor) {\n var endLabelModel = seriesModel.getModel('endLabel');\n\n if (endLabelModel.get('show')) {\n var data_2 = seriesModel.getData();\n var polyline = this._polyline;\n var endLabel = this._endLabel;\n\n if (!endLabel) {\n endLabel = this._endLabel = new graphic.Text({\n z2: 200 // should be higher than item symbol\n\n });\n endLabel.ignoreClip = true;\n polyline.setTextContent(this._endLabel);\n polyline.disableLabelAnimation = true;\n } // Find last non-NaN data to display data\n\n\n var dataIndex = getLastIndexNotNull(data_2.getLayout('points'));\n\n if (dataIndex >= 0) {\n setLabelStyle(polyline, getLabelStatesModels(seriesModel, 'endLabel'), {\n inheritColor: inheritColor,\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: function (dataIndex, opt, interpolatedValue) {\n return interpolatedValue != null ? getDefaultInterpolatedLabel(data_2, interpolatedValue) : getDefaultLabel(data_2, dataIndex);\n },\n enableTextSetter: true\n }, getEndLabelStateSpecified(endLabelModel, coordSys));\n polyline.textConfig.position = null;\n }\n } else if (this._endLabel) {\n this._polyline.removeTextContent();\n\n this._endLabel = null;\n }\n };\n\n LineView.prototype._endLabelOnDuring = function (percent, clipRect, data, animationRecord, valueAnimation, endLabelModel, coordSys) {\n var endLabel = this._endLabel;\n var polyline = this._polyline;\n\n if (endLabel) {\n // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.\n // The label is not prepared at this time.\n if (percent < 1 && animationRecord.originalX == null) {\n animationRecord.originalX = endLabel.x;\n animationRecord.originalY = endLabel.y;\n }\n\n var points = data.getLayout('points');\n var seriesModel = data.hostModel;\n var connectNulls = seriesModel.get('connectNulls');\n var precision = endLabelModel.get('precision');\n var distance = endLabelModel.get('distance') || 0;\n var baseAxis = coordSys.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isBaseInversed = baseAxis.inverse;\n var clipShape = clipRect.shape;\n var xOrY = isBaseInversed ? isHorizontal ? clipShape.x : clipShape.y + clipShape.height : isHorizontal ? clipShape.x + clipShape.width : clipShape.y;\n var distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1);\n var distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1);\n var dim = isHorizontal ? 'x' : 'y';\n var dataIndexRange = getIndexRange(points, xOrY, dim);\n var indices = dataIndexRange.range;\n var diff = indices[1] - indices[0];\n var value = void 0;\n\n if (diff >= 1) {\n // diff > 1 && connectNulls, which is on the null data.\n if (diff > 1 && !connectNulls) {\n var pt = getPointAtIndex(points, indices[0]);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n valueAnimation && (value = seriesModel.getRawValue(indices[0]));\n } else {\n var pt = polyline.getPointOn(xOrY, dim);\n pt && endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n var startValue = seriesModel.getRawValue(indices[0]);\n var endValue = seriesModel.getRawValue(indices[1]);\n valueAnimation && (value = modelUtil.interpolateRawValues(data, precision, startValue, endValue, dataIndexRange.t));\n }\n\n animationRecord.lastFrameIndex = indices[0];\n } else {\n // If diff <= 0, which is the range is not found(Include NaN)\n // Choose the first point or last point.\n var idx = percent === 1 || animationRecord.lastFrameIndex > 0 ? indices[0] : 0;\n var pt = getPointAtIndex(points, idx);\n valueAnimation && (value = seriesModel.getRawValue(idx));\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n }\n\n if (valueAnimation) {\n labelInner(endLabel).setLabelText(value);\n }\n }\n };\n /**\n * @private\n */\n // FIXME Two value axis\n\n\n LineView.prototype._doUpdateAnimation = function (data, stackedOnPoints, coordSys, api, step, valueOrigin) {\n var polyline = this._polyline;\n var polygon = this._polygon;\n var seriesModel = data.hostModel;\n var diff = lineAnimationDiff(this._data, data, this._stackedOnPoints, stackedOnPoints, this._coordSys, coordSys, this._valueOrigin, valueOrigin);\n var current = diff.current;\n var stackedOnCurrent = diff.stackedOnCurrent;\n var next = diff.next;\n var stackedOnNext = diff.stackedOnNext;\n\n if (step) {\n // TODO If stacked series is not step\n current = turnPointsIntoStep(diff.current, coordSys, step);\n stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step);\n next = turnPointsIntoStep(diff.next, coordSys, step);\n stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step);\n } // Don't apply animation if diff is large.\n // For better result and avoid memory explosion problems like\n // https://github.com/apache/incubator-echarts/issues/12229\n\n\n if (getBoundingDiff(current, next) > 3000 || polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) {\n polyline.setShape({\n points: next\n });\n\n if (polygon) {\n polygon.setShape({\n points: next,\n stackedOnPoints: stackedOnNext\n });\n }\n\n return;\n }\n\n polyline.shape.__points = diff.current;\n polyline.shape.points = current;\n var target = {\n shape: {\n points: next\n }\n }; // Also animate the original points.\n // If points reference is changed when turning into step line.\n\n if (diff.current !== current) {\n target.shape.__points = diff.next;\n } // Stop previous animation.\n\n\n polyline.stopAnimation();\n graphic.updateProps(polyline, target, seriesModel);\n\n if (polygon) {\n polygon.setShape({\n // Reuse the points with polyline.\n points: current,\n stackedOnPoints: stackedOnCurrent\n });\n polygon.stopAnimation();\n graphic.updateProps(polygon, {\n shape: {\n stackedOnPoints: stackedOnNext\n }\n }, seriesModel); // If use attr directly in updateProps.\n\n if (polyline.shape.points !== polygon.shape.points) {\n polygon.shape.points = polyline.shape.points;\n }\n }\n\n var updatedDataInfo = [];\n var diffStatus = diff.status;\n\n for (var i = 0; i < diffStatus.length; i++) {\n var cmd = diffStatus[i].cmd;\n\n if (cmd === '=') {\n var el = data.getItemGraphicEl(diffStatus[i].idx1);\n\n if (el) {\n updatedDataInfo.push({\n el: el,\n ptIdx: i // Index of points\n\n });\n }\n }\n }\n\n if (polyline.animators && polyline.animators.length) {\n polyline.animators[0].during(function () {\n polygon && polygon.dirtyShape();\n var points = polyline.shape.__points;\n\n for (var i = 0; i < updatedDataInfo.length; i++) {\n var el = updatedDataInfo[i].el;\n var offset = updatedDataInfo[i].ptIdx * 2;\n el.x = points[offset];\n el.y = points[offset + 1];\n el.markRedraw();\n }\n });\n }\n };\n\n LineView.prototype.remove = function (ecModel) {\n var group = this.group;\n var oldData = this._data;\n\n this._lineGroup.removeAll();\n\n this._symbolDraw.remove(true); // Remove temporary created elements when highlighting\n\n\n oldData && oldData.eachItemGraphicEl(function (el, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null;\n };\n\n LineView.type = 'line';\n return LineView;\n}(ChartView);\n\nexport default LineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport { map } from 'zrender/lib/core/util';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\nimport { createFloat32Array } from '../util/vendor';\nexport default function pointsLayout(seriesType, forceStoreInTypedArray) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n var dimInfo0 = data.getDimensionInfo(dims[0]);\n var dimInfo1 = data.getDimensionInfo(dims[1]);\n var dimIdx0 = dimInfo0 && dimInfo0.index;\n var dimIdx1 = dimInfo1 && dimInfo1.index;\n return dimLen && {\n progress: function (params, data) {\n var segCount = params.end - params.start;\n var points = useTypedArray && createFloat32Array(segCount * dimLen);\n var tmpIn = [];\n var tmpOut = [];\n\n for (var i = params.start, offset = 0; i < params.end; i++) {\n var point = void 0;\n\n if (dimLen === 1) {\n var x = data.getByDimIdx(dimIdx0, i); // NOTE: Make sure the second parameter is null to use default strategy.\n\n point = coordSys.dataToPoint(x, null, tmpOut);\n } else {\n tmpIn[0] = data.getByDimIdx(dimIdx0, i);\n tmpIn[1] = data.getByDimIdx(dimIdx1, i); // Let coordinate system to handle the NaN data.\n\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n } else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n}\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar samplers = {\n average: function (frame) {\n var sum = 0;\n var count = 0;\n\n for (var i = 0; i < frame.length; i++) {\n if (!isNaN(frame[i])) {\n sum += frame[i];\n count++;\n }\n } // Return NaN if count is 0\n\n\n return count === 0 ? NaN : sum / count;\n },\n sum: function (frame) {\n var sum = 0;\n\n for (var i = 0; i < frame.length; i++) {\n // Ignore NaN\n sum += frame[i] || 0;\n }\n\n return sum;\n },\n max: function (frame) {\n var max = -Infinity;\n\n for (var i = 0; i < frame.length; i++) {\n frame[i] > max && (max = frame[i]);\n } // NaN will cause illegal axis extent.\n\n\n return isFinite(max) ? max : NaN;\n },\n min: function (frame) {\n var min = Infinity;\n\n for (var i = 0; i < frame.length; i++) {\n frame[i] < min && (min = frame[i]);\n } // NaN will cause illegal axis extent.\n\n\n return isFinite(min) ? min : NaN;\n },\n // TODO\n // Median\n nearest: function (frame) {\n return frame[0];\n }\n};\n\nvar indexSampler = function (frame) {\n return Math.round(frame.length / 2);\n};\n\nexport default function dataSample(seriesType) {\n return {\n seriesType: seriesType,\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var sampling = seriesModel.get('sampling');\n var coordSys = seriesModel.coordinateSystem;\n var count = data.count(); // Only cartesian2d support down sampling. Disable it when there is few data.\n\n if (count > 10 && coordSys.type === 'cartesian2d' && sampling) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var extent = baseAxis.getExtent();\n var dpr = api.getDevicePixelRatio(); // Coordinste system has been resized\n\n var size = Math.abs(extent[1] - extent[0]) * (dpr || 1);\n var rate = Math.round(count / size);\n\n if (rate > 1) {\n if (sampling === 'lttb') {\n seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate));\n }\n\n var sampler = void 0;\n\n if (typeof sampling === 'string') {\n sampler = samplers[sampling];\n } else if (typeof sampling === 'function') {\n sampler = sampling;\n }\n\n if (sampler) {\n // Only support sample the first dim mapped from value axis.\n seriesModel.setData(data.downSample(data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler));\n }\n }\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LineSeries from './LineSeries';\nimport LineView from './LineView'; // In case developer forget to include grid component\n\nimport layoutPoints from '../../layout/points';\nimport dataSample from '../../processor/dataSample';\nexport function install(registers) {\n registers.registerChartView(LineView);\n registers.registerSeriesModel(LineSeries);\n registers.registerLayout(layoutPoints('line', true));\n registers.registerVisual({\n seriesType: 'line',\n reset: function (seriesModel) {\n var data = seriesModel.getData(); // Visual coding for legend\n\n var lineStyle = seriesModel.getModel('lineStyle').getLineStyle();\n\n if (lineStyle && !lineStyle.stroke) {\n // Fill in visual should be palette color if\n // has color callback\n lineStyle.stroke = data.getVisual('style').fill;\n }\n\n data.setVisual('legendLineStyle', lineStyle);\n }\n }); // Down sample after filter\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('line'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\n\nvar BaseBarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BaseBarSeriesModel, _super);\n\n function BaseBarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BaseBarSeriesModel.type;\n return _this;\n }\n\n BaseBarSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n BaseBarSeriesModel.prototype.getMarkerPosition = function (value) {\n var coordSys = this.coordinateSystem;\n\n if (coordSys) {\n // PENDING if clamp ?\n var pt = coordSys.dataToPoint(coordSys.clampData(value));\n var data = this.getData();\n var offset = data.getLayout('offset');\n var size = data.getLayout('size');\n var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;\n pt[offsetIndex] += offset + size / 2;\n return pt;\n }\n\n return [NaN, NaN];\n };\n\n BaseBarSeriesModel.type = 'series.__base_bar__';\n BaseBarSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // stack: null\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n barMinHeight: 0,\n barMinAngle: 0,\n // cursor: null,\n large: false,\n largeThreshold: 400,\n progressive: 3e3,\n progressiveChunkMode: 'mod'\n };\n return BaseBarSeriesModel;\n}(SeriesModel);\n\nSeriesModel.registerClass(BaseBarSeriesModel);\nexport default BaseBarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseBarSeriesModel from './BaseBarSeries';\nimport createListFromArray from '../helper/createListFromArray';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar BarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BarSeriesModel, _super);\n\n function BarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BarSeriesModel.type;\n return _this;\n }\n\n BarSeriesModel.prototype.getInitialData = function () {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true,\n createInvertedIndices: !!this.get('realtimeSort', true) || null\n });\n };\n /**\n * @override\n */\n\n\n BarSeriesModel.prototype.getProgressive = function () {\n // Do not support progressive in normal mode.\n return this.get('large') ? this.get('progressive') : false;\n };\n /**\n * @override\n */\n\n\n BarSeriesModel.prototype.getProgressiveThreshold = function () {\n // Do not support progressive in normal mode.\n var progressiveThreshold = this.get('progressiveThreshold');\n var largeThreshold = this.get('largeThreshold');\n\n if (largeThreshold > progressiveThreshold) {\n progressiveThreshold = largeThreshold;\n }\n\n return progressiveThreshold;\n };\n\n BarSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.rect(data.getItemLayout(dataIndex));\n };\n\n BarSeriesModel.type = 'series.bar';\n BarSeriesModel.dependencies = ['grid', 'polar'];\n BarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n // If clipped\n // Only available on cartesian2d\n clip: true,\n roundCap: false,\n showBackground: false,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)',\n borderColor: null,\n borderWidth: 0,\n borderType: 'solid',\n borderRadius: 0,\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n realtimeSort: false\n });\n return BarSeriesModel;\n}(BaseBarSeriesModel);\n\nexport default BarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { Path } from '../graphic';\n/**\n * Sausage: similar to sector, but have half circle on both sides\n */\n\nvar SausageShape =\n/** @class */\nfunction () {\n function SausageShape() {\n this.cx = 0;\n this.cy = 0;\n this.r0 = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n }\n\n return SausageShape;\n}();\n\nvar SausagePath =\n/** @class */\nfunction (_super) {\n __extends(SausagePath, _super);\n\n function SausagePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'sausage';\n return _this;\n }\n\n SausagePath.prototype.getDefaultShape = function () {\n return new SausageShape();\n };\n\n SausagePath.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var r0 = Math.max(shape.r0 || 0, 0);\n var r = Math.max(shape.r, 0);\n var dr = (r - r0) * 0.5;\n var rCenter = r0 + dr;\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var clockwise = shape.clockwise;\n var unitStartX = Math.cos(startAngle);\n var unitStartY = Math.sin(startAngle);\n var unitEndX = Math.cos(endAngle);\n var unitEndY = Math.sin(endAngle);\n var lessThanCircle = clockwise ? endAngle - startAngle < Math.PI * 2 : startAngle - endAngle < Math.PI * 2;\n\n if (lessThanCircle) {\n ctx.moveTo(unitStartX * r0 + x, unitStartY * r0 + y);\n ctx.arc(unitStartX * rCenter + x, unitStartY * rCenter + y, dr, -Math.PI + startAngle, startAngle, !clockwise);\n }\n\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n ctx.moveTo(unitEndX * r + x, unitEndY * r + y);\n ctx.arc(unitEndX * rCenter + x, unitEndY * rCenter + y, dr, endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise);\n\n if (r0 !== 0) {\n ctx.arc(x, y, r0, endAngle, startAngle, clockwise);\n ctx.moveTo(unitStartX * r0 + x, unitEndY * r0 + y);\n }\n\n ctx.closePath();\n };\n\n return SausagePath;\n}(Path);\n\nexport default SausagePath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Path from 'zrender/lib/graphic/Path';\nimport Group from 'zrender/lib/graphic/Group';\nimport { extend, defaults, each, map } from 'zrender/lib/core/util';\nimport { Rect, Sector, updateProps, initProps, removeElementWithFadeOut } from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, setLabelValueAnimation } from '../../label/labelStyle';\nimport { throttle } from '../../util/throttle';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport Sausage from '../../util/shape/sausage';\nimport ChartView from '../../view/Chart';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport { warn } from '../../util/log';\nvar _eventPos = [0, 0];\nvar mathMax = Math.max;\nvar mathMin = Math.min;\n\nfunction getClipArea(coord, data) {\n var coordSysClipArea = coord.getArea && coord.getArea();\n\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n var baseAxis = coord.getBaseAxis(); // When boundaryGap is false or using time axis. bar may exceed the grid.\n // We should not clip this part.\n // See test/bar2.html\n\n if (baseAxis.type !== 'category' || !baseAxis.onBand) {\n var expandWidth = data.getLayout('bandWidth');\n\n if (baseAxis.isHorizontal()) {\n coordSysClipArea.x -= expandWidth;\n coordSysClipArea.width += expandWidth * 2;\n } else {\n coordSysClipArea.y -= expandWidth;\n coordSysClipArea.height += expandWidth * 2;\n }\n }\n }\n\n return coordSysClipArea;\n}\n\nvar BarView =\n/** @class */\nfunction (_super) {\n __extends(BarView, _super);\n\n function BarView() {\n var _this = _super.call(this) || this;\n\n _this.type = BarView.type;\n _this._isFirstFrame = true;\n return _this;\n }\n\n BarView.prototype.render = function (seriesModel, ecModel, api, payload) {\n this._model = seriesModel;\n\n this._removeOnRenderedListener(api);\n\n this._updateDrawMode(seriesModel);\n\n var coordinateSystemType = seriesModel.get('coordinateSystem');\n\n if (coordinateSystemType === 'cartesian2d' || coordinateSystemType === 'polar') {\n this._isLargeDraw ? this._renderLarge(seriesModel, ecModel, api) : this._renderNormal(seriesModel, ecModel, api, payload);\n } else if (process.env.NODE_ENV !== 'production') {\n warn('Only cartesian2d and polar supported for bar.');\n }\n };\n\n BarView.prototype.incrementalPrepareRender = function (seriesModel) {\n this._clear();\n\n this._updateDrawMode(seriesModel); // incremental also need to clip, otherwise might be overlow.\n // But must not set clip in each frame, otherwise all of the children will be marked redraw.\n\n\n this._updateLargeClip(seriesModel);\n };\n\n BarView.prototype.incrementalRender = function (params, seriesModel) {\n // Do not support progressive in normal mode.\n this._incrementalRenderLarge(params, seriesModel);\n };\n\n BarView.prototype._updateDrawMode = function (seriesModel) {\n var isLargeDraw = seriesModel.pipelineContext.large;\n\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n\n this._clear();\n }\n };\n\n BarView.prototype._renderNormal = function (seriesModel, ecModel, api, payload) {\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n var coord = seriesModel.coordinateSystem;\n var baseAxis = coord.getBaseAxis();\n var isHorizontalOrRadial;\n\n if (coord.type === 'cartesian2d') {\n isHorizontalOrRadial = baseAxis.isHorizontal();\n } else if (coord.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n }\n\n var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;\n var realtimeSortCfg = shouldRealtimeSort(seriesModel, coord);\n\n if (realtimeSortCfg) {\n this._enableRealtimeSort(realtimeSortCfg, data, api);\n }\n\n var needsClip = seriesModel.get('clip', true) || realtimeSortCfg;\n var coordSysClipArea = getClipArea(coord, data); // If there is clipPath created in large mode. Remove it.\n\n group.removeClipPath(); // We don't use clipPath in normal mode because we needs a perfect animation\n // And don't want the label are clipped.\n\n var roundCap = seriesModel.get('roundCap', true);\n var drawBackground = seriesModel.get('showBackground', true);\n var backgroundModel = seriesModel.getModel('backgroundStyle');\n var barBorderRadius = backgroundModel.get('borderRadius') || 0;\n var bgEls = [];\n var oldBgEls = this._backgroundEls;\n var isInitSort = payload && payload.isInitSort;\n var isChangeOrder = payload && payload.type === 'changeAxisOrder';\n\n function createBackground(dataIndex) {\n var bgLayout = getLayout[coord.type](data, dataIndex);\n var bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout);\n bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius.\n\n if (coord.type === 'cartesian2d') {\n bgEl.setShape('r', barBorderRadius);\n }\n\n bgEls[dataIndex] = bgEl;\n return bgEl;\n }\n\n ;\n data.diff(oldData).add(function (dataIndex) {\n var itemModel = data.getItemModel(dataIndex);\n var layout = getLayout[coord.type](data, dataIndex, itemModel);\n\n if (drawBackground) {\n createBackground(dataIndex);\n } // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in \"axisProxy\".\n\n\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n var isClipped = false;\n\n if (needsClip) {\n // Clip will modify the layout params.\n // And return a boolean to determine if the shape are fully clipped.\n isClipped = clip[coord.type](coordSysClipArea, layout);\n }\n\n var el = elementCreator[coord.type](seriesModel, data, dataIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, false, roundCap);\n updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');\n\n if (isInitSort) {\n el.attr({\n shape: layout\n });\n } else if (realtimeSortCfg) {\n updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, dataIndex, isHorizontalOrRadial, false, false);\n } else {\n initProps(el, {\n shape: layout\n }, seriesModel, dataIndex);\n }\n\n data.setItemGraphicEl(dataIndex, el);\n group.add(el);\n el.ignore = isClipped;\n }).update(function (newIndex, oldIndex) {\n var itemModel = data.getItemModel(newIndex);\n var layout = getLayout[coord.type](data, newIndex, itemModel);\n\n if (drawBackground) {\n var bgEl = void 0;\n\n if (oldBgEls.length === 0) {\n bgEl = createBackground(oldIndex);\n } else {\n bgEl = oldBgEls[oldIndex];\n bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius.\n\n if (coord.type === 'cartesian2d') {\n bgEl.setShape('r', barBorderRadius);\n }\n\n bgEls[newIndex] = bgEl;\n }\n\n var bgLayout = getLayout[coord.type](data, newIndex);\n var shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord);\n updateProps(bgEl, {\n shape: shape\n }, animationModel, newIndex);\n }\n\n var el = oldData.getItemGraphicEl(oldIndex);\n\n if (!data.hasValue(newIndex)) {\n group.remove(el);\n el = null;\n return;\n }\n\n var isClipped = false;\n\n if (needsClip) {\n isClipped = clip[coord.type](coordSysClipArea, layout);\n\n if (isClipped) {\n group.remove(el);\n }\n }\n\n if (!el) {\n el = elementCreator[coord.type](seriesModel, data, newIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, !!el, roundCap);\n } // Not change anything if only order changed.\n // Especially not change label.\n\n\n if (!isChangeOrder) {\n updateStyle(el, data, newIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');\n }\n\n if (isInitSort) {\n el.attr({\n shape: layout\n });\n } else if (realtimeSortCfg) {\n updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, newIndex, isHorizontalOrRadial, true, isChangeOrder);\n } else {\n updateProps(el, {\n shape: layout\n }, seriesModel, newIndex, null);\n }\n\n data.setItemGraphicEl(newIndex, el);\n el.ignore = isClipped;\n group.add(el);\n }).remove(function (dataIndex) {\n var el = oldData.getItemGraphicEl(dataIndex);\n el && removeElementWithFadeOut(el, seriesModel, dataIndex);\n }).execute();\n var bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group());\n bgGroup.removeAll();\n\n for (var i = 0; i < bgEls.length; ++i) {\n bgGroup.add(bgEls[i]);\n }\n\n group.add(bgGroup);\n this._backgroundEls = bgEls;\n this._data = data;\n };\n\n BarView.prototype._renderLarge = function (seriesModel, ecModel, api) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n\n this._updateLargeClip(seriesModel);\n };\n\n BarView.prototype._incrementalRenderLarge = function (params, seriesModel) {\n this._removeBackground();\n\n createLarge(seriesModel, this.group, true);\n };\n\n BarView.prototype._updateLargeClip = function (seriesModel) {\n // Use clipPath in large mode.\n var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n };\n\n BarView.prototype._enableRealtimeSort = function (realtimeSortCfg, data, api) {\n var _this = this; // If no data in the first frame, wait for data to initSort\n\n\n if (!data.count()) {\n return;\n }\n\n var baseAxis = realtimeSortCfg.baseAxis;\n\n if (this._isFirstFrame) {\n this._dispatchInitSort(data, realtimeSortCfg, api);\n\n this._isFirstFrame = false;\n } else {\n var orderMapping_1 = function (idx) {\n var el = data.getItemGraphicEl(idx);\n\n if (el) {\n var shape = el.shape; // If data is NaN, shape.xxx may be NaN, so use || 0 here in case\n\n return (baseAxis.isHorizontal() // The result should be consistent with the initial sort by data value.\n // Do not support the case that both positive and negative exist.\n ? Math.abs(shape.height) : Math.abs(shape.width)) || 0;\n } else {\n return 0;\n }\n };\n\n this._onRendered = function () {\n _this._updateSortWithinSameData(data, orderMapping_1, baseAxis, api);\n };\n\n api.getZr().on('rendered', this._onRendered);\n }\n };\n\n BarView.prototype._dataSort = function (data, baseAxis, orderMapping) {\n var info = [];\n data.each(data.mapDimension(baseAxis.dim), function (ordinalNumber, dataIdx) {\n var mappedValue = orderMapping(dataIdx);\n mappedValue = mappedValue == null ? NaN : mappedValue;\n info.push({\n dataIndex: dataIdx,\n mappedValue: mappedValue,\n ordinalNumber: ordinalNumber\n });\n });\n info.sort(function (a, b) {\n // If NaN, it will be treated as min val.\n return b.mappedValue - a.mappedValue;\n });\n return {\n ordinalNumbers: map(info, function (item) {\n return item.ordinalNumber;\n })\n };\n };\n\n BarView.prototype._isOrderChangedWithinSameData = function (data, orderMapping, baseAxis) {\n var scale = baseAxis.scale;\n var ordinalDataDim = data.mapDimension(baseAxis.dim);\n var lastValue = Number.MAX_VALUE;\n\n for (var tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) {\n var rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum));\n var value = rawIdx < 0 // If some tick have no bar, the tick will be treated as min.\n ? Number.MIN_VALUE // PENDING: if dataZoom on baseAxis exits, is it a performance issue?\n : orderMapping(data.indexOfRawIndex(rawIdx));\n\n if (value > lastValue) {\n return true;\n }\n\n lastValue = value;\n }\n\n return false;\n };\n /*\n * Consider the case when A and B changed order, whose representing\n * bars are both out of sight, we don't wish to trigger reorder action\n * as long as the order in the view doesn't change.\n */\n\n\n BarView.prototype._isOrderDifferentInView = function (orderInfo, baseAxis) {\n var scale = baseAxis.scale;\n var extent = scale.getExtent();\n var tickNum = Math.max(0, extent[0]);\n var tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1);\n\n for (; tickNum <= tickMax; ++tickNum) {\n if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) {\n return true;\n }\n }\n };\n\n BarView.prototype._updateSortWithinSameData = function (data, orderMapping, baseAxis, api) {\n if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) {\n return;\n }\n\n var sortInfo = this._dataSort(data, baseAxis, orderMapping);\n\n if (this._isOrderDifferentInView(sortInfo, baseAxis)) {\n this._removeOnRenderedListener(api);\n\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n axisId: baseAxis.index,\n sortInfo: sortInfo\n });\n }\n };\n\n BarView.prototype._dispatchInitSort = function (data, realtimeSortCfg, api) {\n var baseAxis = realtimeSortCfg.baseAxis;\n\n var sortResult = this._dataSort(data, baseAxis, function (dataIdx) {\n return data.get(data.mapDimension(realtimeSortCfg.otherAxis.dim), dataIdx);\n });\n\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n isInitSort: true,\n axisId: baseAxis.index,\n sortInfo: sortResult,\n animation: {\n // Update the axis label from the natural initial layout to\n // sorted layout should has no animation.\n duration: 0\n }\n });\n };\n\n BarView.prototype.remove = function (ecModel, api) {\n this._clear(this._model);\n\n this._removeOnRenderedListener(api);\n };\n\n BarView.prototype.dispose = function (ecModel, api) {\n this._removeOnRenderedListener(api);\n };\n\n BarView.prototype._removeOnRenderedListener = function (api) {\n if (this._onRendered) {\n api.getZr().off('rendered', this._onRendered);\n this._onRendered = null;\n }\n };\n\n BarView.prototype._clear = function (model) {\n var group = this.group;\n var data = this._data;\n\n if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) {\n this._removeBackground();\n\n this._backgroundEls = [];\n data.eachItemGraphicEl(function (el) {\n removeElementWithFadeOut(el, model, getECData(el).dataIndex);\n });\n } else {\n group.removeAll();\n }\n\n this._data = null;\n this._isFirstFrame = true;\n };\n\n BarView.prototype._removeBackground = function () {\n this.group.remove(this._backgroundGroup);\n this._backgroundGroup = null;\n };\n\n BarView.type = 'bar';\n return BarView;\n}(ChartView);\n\nvar clip = {\n cartesian2d: function (coordSysBoundingRect, layout) {\n var signWidth = layout.width < 0 ? -1 : 1;\n var signHeight = layout.height < 0 ? -1 : 1; // Needs positive width and height\n\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n var coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width;\n var coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height;\n var x = mathMax(layout.x, coordSysBoundingRect.x);\n var x2 = mathMin(layout.x + layout.width, coordSysX2);\n var y = mathMax(layout.y, coordSysBoundingRect.y);\n var y2 = mathMin(layout.y + layout.height, coordSysY2);\n var xClipped = x2 < x;\n var yClipped = y2 < y; // When xClipped or yClipped, the element will be marked as `ignore`.\n // But we should also place the element at the edge of the coord sys bounding rect.\n // Beause if data changed and the bar show again, its transition animaiton\n // will begin at this place.\n\n layout.x = xClipped && x > coordSysX2 ? x2 : x;\n layout.y = yClipped && y > coordSysY2 ? y2 : y;\n layout.width = xClipped ? 0 : x2 - x;\n layout.height = yClipped ? 0 : y2 - y; // Reverse back\n\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n return xClipped || yClipped;\n },\n polar: function (coordSysClipArea, layout) {\n var signR = layout.r0 <= layout.r ? 1 : -1; // Make sure r is larger than r0\n\n if (signR < 0) {\n var tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n var r = mathMin(layout.r, coordSysClipArea.r);\n var r0 = mathMax(layout.r0, coordSysClipArea.r0);\n layout.r = r;\n layout.r0 = r0;\n var clipped = r - r0 < 0; // Reverse back\n\n if (signR < 0) {\n var tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n return clipped;\n }\n};\nvar elementCreator = {\n cartesian2d: function (seriesModel, data, newIndex, layout, isHorizontal, animationModel, axisModel, isUpdate, roundCap) {\n var rect = new Rect({\n shape: extend({}, layout),\n z2: 1\n });\n rect.__dataIndex = newIndex;\n rect.name = 'item';\n\n if (animationModel) {\n var rectShape = rect.shape;\n var animateProperty = isHorizontal ? 'height' : 'width';\n rectShape[animateProperty] = 0;\n }\n\n return rect;\n },\n polar: function (seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) {\n // Keep the same logic with bar in catesion: use end value to control\n // direction. Notice that if clockwise is true (by default), the sector\n // will always draw clockwisely, no matter whether endAngle is greater\n // or less than startAngle.\n var clockwise = layout.startAngle < layout.endAngle;\n var ShapeClass = !isRadial && roundCap ? Sausage : Sector;\n var sector = new ShapeClass({\n shape: defaults({\n clockwise: clockwise\n }, layout),\n z2: 1\n });\n sector.name = 'item'; // Animation\n\n if (animationModel) {\n var sectorShape = sector.shape;\n var animateProperty = isRadial ? 'r' : 'endAngle';\n var animateTarget = {};\n sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;\n animateTarget[animateProperty] = layout[animateProperty];\n (isUpdate ? updateProps : initProps)(sector, {\n shape: animateTarget // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue\n\n }, animationModel);\n }\n\n return sector;\n }\n};\n\nfunction shouldRealtimeSort(seriesModel, coordSys) {\n var realtimeSortOption = seriesModel.get('realtimeSort', true);\n var baseAxis = coordSys.getBaseAxis();\n\n if (process.env.NODE_ENV !== 'production') {\n if (realtimeSortOption) {\n if (baseAxis.type !== 'category') {\n warn('`realtimeSort` will not work because this bar series is not based on a category axis.');\n }\n\n if (coordSys.type !== 'cartesian2d') {\n warn('`realtimeSort` will not work because this bar series is not on cartesian2d.');\n }\n }\n }\n\n if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') {\n return {\n baseAxis: baseAxis,\n otherAxis: coordSys.getOtherAxis(baseAxis)\n };\n }\n}\n\nfunction updateRealtimeAnimation(realtimeSortCfg, seriesAnimationModel, el, layout, newIndex, isHorizontal, isUpdate, isChangeOrder) {\n var seriesTarget;\n var axisTarget;\n\n if (isHorizontal) {\n axisTarget = {\n x: layout.x,\n width: layout.width\n };\n seriesTarget = {\n y: layout.y,\n height: layout.height\n };\n } else {\n axisTarget = {\n y: layout.y,\n height: layout.height\n };\n seriesTarget = {\n x: layout.x,\n width: layout.width\n };\n }\n\n if (!isChangeOrder) {\n // Keep the original growth animation if only axis order changed.\n // Not start a new animation.\n (isUpdate ? updateProps : initProps)(el, {\n shape: seriesTarget\n }, seriesAnimationModel, newIndex, null);\n }\n\n var axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null;\n (isUpdate ? updateProps : initProps)(el, {\n shape: axisTarget\n }, axisAnimationModel, newIndex);\n}\n\nvar getLayout = {\n // itemModel is only used to get borderWidth, which is not needed\n // when calculating bar background layout.\n cartesian2d: function (data, dataIndex, itemModel) {\n var layout = data.getItemLayout(dataIndex);\n var fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0; // fix layout with lineWidth\n\n var signX = layout.width > 0 ? 1 : -1;\n var signY = layout.height > 0 ? 1 : -1;\n return {\n x: layout.x + signX * fixedLineWidth / 2,\n y: layout.y + signY * fixedLineWidth / 2,\n width: layout.width - signX * fixedLineWidth,\n height: layout.height - signY * fixedLineWidth\n };\n },\n polar: function (data, dataIndex, itemModel) {\n var layout = data.getItemLayout(dataIndex);\n return {\n cx: layout.cx,\n cy: layout.cy,\n r0: layout.r0,\n r: layout.r,\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n };\n }\n};\n\nfunction isZeroOnPolar(layout) {\n return layout.startAngle != null && layout.endAngle != null && layout.startAngle === layout.endAngle;\n}\n\nfunction updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontal, isPolar) {\n var style = data.getItemVisual(dataIndex, 'style');\n\n if (!isPolar) {\n el.setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);\n }\n\n el.useStyle(style);\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && el.attr('cursor', cursorStyle);\n\n if (!isPolar) {\n var labelPositionOutside = isHorizontal ? layout.height > 0 ? 'bottom' : 'top' : layout.width > 0 ? 'left' : 'right';\n var labelStatesModels = getLabelStatesModels(itemModel);\n setLabelStyle(el, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(seriesModel.getData(), dataIndex),\n inheritColor: style.fill,\n defaultOpacity: style.opacity,\n defaultOutsidePosition: labelPositionOutside\n });\n var label = el.getTextContent();\n setLabelValueAnimation(label, labelStatesModels, seriesModel.getRawValue(dataIndex), function (value) {\n return getDefaultInterpolatedLabel(data, value);\n });\n }\n\n var emphasisModel = itemModel.getModel(['emphasis']);\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n setStatesStylesFromModel(el, itemModel);\n\n if (isZeroOnPolar(layout)) {\n el.style.fill = 'none';\n el.style.stroke = 'none';\n each(el.states, function (state) {\n if (state.style) {\n state.style.fill = state.style.stroke = 'none';\n }\n });\n }\n} // In case width or height are too small.\n\n\nfunction getLineWidth(itemModel, rawLayout) {\n // Has no border.\n var borderColor = itemModel.get(['itemStyle', 'borderColor']);\n\n if (!borderColor || borderColor === 'none') {\n return 0;\n }\n\n var lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0; // width or height may be NaN for empty data\n\n var width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width);\n var height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height);\n return Math.min(lineWidth, width, height);\n}\n\nvar LagePathShape =\n/** @class */\nfunction () {\n function LagePathShape() {}\n\n return LagePathShape;\n}();\n\nvar LargePath =\n/** @class */\nfunction (_super) {\n __extends(LargePath, _super);\n\n function LargePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'largeBar';\n return _this;\n }\n\n ;\n\n LargePath.prototype.getDefaultShape = function () {\n return new LagePathShape();\n };\n\n LargePath.prototype.buildPath = function (ctx, shape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n var points = shape.points;\n var startPoint = this.__startPoint;\n var baseDimIdx = this.__baseDimIdx;\n\n for (var i = 0; i < points.length; i += 2) {\n startPoint[baseDimIdx] = points[i + baseDimIdx];\n ctx.moveTo(startPoint[0], startPoint[1]);\n ctx.lineTo(points[i], points[i + 1]);\n }\n };\n\n return LargePath;\n}(Path);\n\nfunction createLarge(seriesModel, group, incremental) {\n // TODO support polar\n var data = seriesModel.getData();\n var startPoint = [];\n var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;\n startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');\n var largeDataIndices = data.getLayout('largeDataIndices');\n var barWidth = data.getLayout('barWidth');\n var backgroundModel = seriesModel.getModel('backgroundStyle');\n var drawBackground = seriesModel.get('showBackground', true);\n\n if (drawBackground) {\n var points = data.getLayout('largeBackgroundPoints');\n var backgroundStartPoint = [];\n backgroundStartPoint[1 - baseDimIdx] = data.getLayout('backgroundStart');\n var bgEl = new LargePath({\n shape: {\n points: points\n },\n incremental: !!incremental,\n silent: true,\n z2: 0\n });\n bgEl.__startPoint = backgroundStartPoint;\n bgEl.__baseDimIdx = baseDimIdx;\n bgEl.__largeDataIndices = largeDataIndices;\n bgEl.__barWidth = barWidth;\n setLargeBackgroundStyle(bgEl, backgroundModel, data);\n group.add(bgEl);\n }\n\n var el = new LargePath({\n shape: {\n points: data.getLayout('largePoints')\n },\n incremental: !!incremental\n });\n el.__startPoint = startPoint;\n el.__baseDimIdx = baseDimIdx;\n el.__largeDataIndices = largeDataIndices;\n el.__barWidth = barWidth;\n group.add(el);\n setLargeStyle(el, seriesModel, data); // Enable tooltip and user mouse/touch event handlers.\n\n getECData(el).seriesIndex = seriesModel.seriesIndex;\n\n if (!seriesModel.get('silent')) {\n el.on('mousedown', largePathUpdateDataIndex);\n el.on('mousemove', largePathUpdateDataIndex);\n }\n} // Use throttle to avoid frequently traverse to find dataIndex.\n\n\nvar largePathUpdateDataIndex = throttle(function (event) {\n var largePath = this;\n var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);\n getECData(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null;\n}, 30, false);\n\nfunction largePathFindDataIndex(largePath, x, y) {\n var baseDimIdx = largePath.__baseDimIdx;\n var valueDimIdx = 1 - baseDimIdx;\n var points = largePath.shape.points;\n var largeDataIndices = largePath.__largeDataIndices;\n var barWidthHalf = Math.abs(largePath.__barWidth / 2);\n var startValueVal = largePath.__startPoint[valueDimIdx];\n _eventPos[0] = x;\n _eventPos[1] = y;\n var pointerBaseVal = _eventPos[baseDimIdx];\n var pointerValueVal = _eventPos[1 - baseDimIdx];\n var baseLowerBound = pointerBaseVal - barWidthHalf;\n var baseUpperBound = pointerBaseVal + barWidthHalf;\n\n for (var i = 0, len = points.length / 2; i < len; i++) {\n var ii = i * 2;\n var barBaseVal = points[ii + baseDimIdx];\n var barValueVal = points[ii + valueDimIdx];\n\n if (barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound && (startValueVal <= barValueVal ? pointerValueVal >= startValueVal && pointerValueVal <= barValueVal : pointerValueVal >= barValueVal && pointerValueVal <= startValueVal)) {\n return largeDataIndices[i];\n }\n }\n\n return -1;\n}\n\nfunction setLargeStyle(el, seriesModel, data) {\n var globalStyle = data.getVisual('style');\n el.useStyle(extend({}, globalStyle)); // Use stroke instead of fill.\n\n el.style.fill = null;\n el.style.stroke = globalStyle.fill;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction setLargeBackgroundStyle(el, backgroundModel, data) {\n var borderColor = backgroundModel.get('borderColor') || backgroundModel.get('color');\n var itemStyle = backgroundModel.getItemStyle();\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction createBackgroundShape(isHorizontalOrRadial, layout, coord) {\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n var rectShape = layout;\n var coordLayout = coord.getArea();\n return {\n x: isHorizontalOrRadial ? rectShape.x : coordLayout.x,\n y: isHorizontalOrRadial ? coordLayout.y : rectShape.y,\n width: isHorizontalOrRadial ? rectShape.width : coordLayout.width,\n height: isHorizontalOrRadial ? coordLayout.height : rectShape.height\n };\n } else {\n var coordLayout = coord.getArea();\n var sectorShape = layout;\n return {\n cx: coordLayout.cx,\n cy: coordLayout.cy,\n r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0,\n r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r,\n startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0,\n endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2\n };\n }\n}\n\nfunction createBackgroundEl(coord, isHorizontalOrRadial, layout) {\n var ElementClz = coord.type === 'polar' ? Sector : Rect;\n return new ElementClz({\n shape: createBackgroundShape(isHorizontalOrRadial, layout, coord),\n silent: true,\n z2: 0\n });\n}\n\nexport default BarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { layout, largeLayout } from '../../layout/barGrid';\nimport dataSample from '../../processor/dataSample';\nimport BarSeries from './BarSeries';\nimport BarView from './BarView';\nexport function install(registers) {\n registers.registerChartView(BarView);\n registers.registerSeriesModel(BarSeries);\n registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar')); // Use higher prority to avoid to be blocked by other overall layout, which do not\n // only exist in this module, but probably also exist in other modules, like `barPolar`.\n\n registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout); // Down sample after filter\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('bar'));\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n\n registers.registerAction({\n type: 'changeAxisOrder',\n event: 'changeAxisOrder',\n update: 'update'\n }, function (payload, ecModel) {\n var componentType = payload.componentType || 'series';\n ecModel.eachComponent({\n mainType: componentType,\n query: payload\n }, function (componentModel) {\n if (payload.sortInfo) {\n componentModel.axis.setCategorySortInfo(payload.sortInfo);\n }\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parsePercent, linearMap } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/lib/core/util';\nvar PI2 = Math.PI * 2;\nvar RADIAN = Math.PI / 180;\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function pieLayout(seriesType, ecModel, api) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var viewRect = getViewRect(seriesModel, api);\n var center = seriesModel.get('center');\n var radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n var width = parsePercent(viewRect.width, api.getWidth());\n var height = parsePercent(viewRect.height, api.getHeight());\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], width) + viewRect.x;\n var cy = parsePercent(center[1], height) + viewRect.y;\n var r0 = parsePercent(radius[0], size / 2);\n var r = parsePercent(radius[1], size / 2);\n var startAngle = -seriesModel.get('startAngle') * RADIAN;\n var minAngle = seriesModel.get('minAngle') * RADIAN;\n var validDataCount = 0;\n data.each(valueDim, function (value) {\n !isNaN(value) && validDataCount++;\n });\n var sum = data.getSum(valueDim); // Sum may be 0\n\n var unitRadian = Math.PI / (sum || validDataCount) * 2;\n var clockwise = seriesModel.get('clockwise');\n var roseType = seriesModel.get('roseType');\n var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // [0...max]\n\n var extent = data.getDataExtent(valueDim);\n extent[0] = 0; // In the case some sector angle is smaller than minAngle\n\n var restAngle = PI2;\n var valueSumLargerThanMinAngle = 0;\n var currentAngle = startAngle;\n var dir = clockwise ? 1 : -1;\n data.setLayout({\n viewRect: viewRect,\n r: r\n });\n data.each(valueDim, function (value, idx) {\n var angle;\n\n if (isNaN(value)) {\n data.setItemLayout(idx, {\n angle: NaN,\n startAngle: NaN,\n endAngle: NaN,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType ? NaN : r\n });\n return;\n } // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?\n\n\n if (roseType !== 'area') {\n angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;\n } else {\n angle = PI2 / validDataCount;\n }\n\n if (angle < minAngle) {\n angle = minAngle;\n restAngle -= minAngle;\n } else {\n valueSumLargerThanMinAngle += value;\n }\n\n var endAngle = currentAngle + dir * angle;\n data.setItemLayout(idx, {\n angle: angle,\n startAngle: currentAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType ? linearMap(value, extent, [r0, r]) : r\n });\n currentAngle = endAngle;\n }); // Some sector is constrained by minAngle\n // Rest sectors needs recalculate angle\n\n if (restAngle < PI2 && validDataCount) {\n // Average the angle if rest angle is not enough after all angles is\n // Constrained by minAngle\n if (restAngle <= 1e-3) {\n var angle_1 = PI2 / validDataCount;\n data.each(valueDim, function (value, idx) {\n if (!isNaN(value)) {\n var layout_1 = data.getItemLayout(idx);\n layout_1.angle = angle_1;\n layout_1.startAngle = startAngle + dir * idx * angle_1;\n layout_1.endAngle = startAngle + dir * (idx + 1) * angle_1;\n }\n });\n } else {\n unitRadian = restAngle / valueSumLargerThanMinAngle;\n currentAngle = startAngle;\n data.each(valueDim, function (value, idx) {\n if (!isNaN(value)) {\n var layout_2 = data.getItemLayout(idx);\n var angle = layout_2.angle === minAngle ? minAngle : value * unitRadian;\n layout_2.startAngle = currentAngle;\n layout_2.endAngle = currentAngle + dir * angle;\n currentAngle += dir * angle;\n }\n });\n }\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function dataFilter(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n // @ts-ignore FIXME: LegendModel\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// FIXME emphasis label position is not same with normal label position\nimport { parsePercent } from '../../util/number';\nimport { Point } from '../../util/graphic';\nimport { each } from 'zrender/lib/core/util';\nimport { limitTurnAngle, limitSurfaceAngle } from '../../label/labelGuideHelper';\nimport { shiftLayoutOnY } from '../../label/labelLayoutHelper';\nvar RADIAN = Math.PI / 180;\n\nfunction adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) {\n if (list.length < 2) {\n return;\n }\n\n ;\n\n function recalculateXOnSemiToAlignOnEllipseCurve(semi) {\n var rB = semi.rB;\n var rB2 = rB * rB;\n\n for (var i = 0; i < semi.list.length; i++) {\n var item = semi.list[i];\n var dy = Math.abs(item.label.y - cy); // horizontal r is always same with original r because x is not changed.\n\n var rA = r + item.len;\n var rA2 = rA * rA; // Use ellipse implicit function to calculate x\n\n var dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);\n item.label.x = cx + (dx + item.len2) * dir;\n }\n } // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.\n\n\n function recalculateX(items) {\n // Extremes of\n var topSemi = {\n list: [],\n maxY: 0\n };\n var bottomSemi = {\n list: [],\n maxY: 0\n };\n\n for (var i = 0; i < items.length; i++) {\n if (items[i].labelAlignTo !== 'none') {\n continue;\n }\n\n var item = items[i];\n var semi = item.label.y > cy ? bottomSemi : topSemi;\n var dy = Math.abs(item.label.y - cy);\n\n if (dy > semi.maxY) {\n var dx = item.label.x - cx - item.len2 * dir; // horizontal r is always same with original r because x is not changed.\n\n var rA = r + item.len; // Canculate rB based on the topest / bottemest label.\n\n var rB = Math.abs(dx) < rA ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA)) : rA;\n semi.rB = rB;\n semi.maxY = dy;\n }\n\n semi.list.push(item);\n }\n\n recalculateXOnSemiToAlignOnEllipseCurve(topSemi);\n recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);\n }\n\n var len = list.length;\n\n for (var i = 0; i < len; i++) {\n if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {\n var dx = list[i].label.x - farthestX;\n list[i].linePoints[1][0] += dx;\n list[i].label.x = farthestX;\n }\n }\n\n if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {\n recalculateX(list);\n }\n}\n\nfunction avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop) {\n var leftList = [];\n var rightList = [];\n var leftmostX = Number.MAX_VALUE;\n var rightmostX = -Number.MAX_VALUE;\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var label = labelLayoutList[i].label;\n\n if (isPositionCenter(labelLayoutList[i])) {\n continue;\n }\n\n if (label.x < cx) {\n leftmostX = Math.min(leftmostX, label.x);\n leftList.push(labelLayoutList[i]);\n } else {\n rightmostX = Math.max(rightmostX, label.x);\n rightList.push(labelLayoutList[i]);\n }\n }\n\n adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);\n adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var layout = labelLayoutList[i];\n var label = layout.label;\n\n if (isPositionCenter(layout)) {\n continue;\n }\n\n var linePoints = layout.linePoints;\n\n if (linePoints) {\n var isAlignToEdge = layout.labelAlignTo === 'edge';\n var realTextWidth = layout.rect.width;\n var targetTextWidth = void 0;\n\n if (isAlignToEdge) {\n if (label.x < cx) {\n targetTextWidth = linePoints[2][0] - layout.labelDistance - viewLeft - layout.edgeDistance;\n } else {\n targetTextWidth = viewLeft + viewWidth - layout.edgeDistance - linePoints[2][0] - layout.labelDistance;\n }\n } else {\n if (label.x < cx) {\n targetTextWidth = label.x - viewLeft - layout.bleedMargin;\n } else {\n targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;\n }\n }\n\n if (targetTextWidth < layout.rect.width) {\n // TODOTODO\n // layout.text = textContain.truncateText(layout.text, targetTextWidth, layout.font);\n layout.label.style.width = targetTextWidth;\n\n if (layout.labelAlignTo === 'edge') {\n realTextWidth = targetTextWidth; // realTextWidth = textContain.getWidth(layout.text, layout.font);\n }\n }\n\n var dist = linePoints[1][0] - linePoints[2][0];\n\n if (isAlignToEdge) {\n if (label.x < cx) {\n linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;\n } else {\n linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance - realTextWidth - layout.labelDistance;\n }\n } else {\n if (label.x < cx) {\n linePoints[2][0] = label.x + layout.labelDistance;\n } else {\n linePoints[2][0] = label.x - layout.labelDistance;\n }\n\n linePoints[1][0] = linePoints[2][0] + dist;\n }\n\n linePoints[1][1] = linePoints[2][1] = label.y;\n }\n }\n}\n\nfunction isPositionCenter(sectorShape) {\n // Not change x for center label\n return sectorShape.position === 'center';\n}\n\nexport default function pieLabelLayout(seriesModel) {\n var data = seriesModel.getData();\n var labelLayoutList = [];\n var cx;\n var cy;\n var hasLabelRotate = false;\n var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN;\n var viewRect = data.getLayout('viewRect');\n var r = data.getLayout('r');\n var viewWidth = viewRect.width;\n var viewLeft = viewRect.x;\n var viewTop = viewRect.y;\n var viewHeight = viewRect.height;\n\n function setNotShow(el) {\n el.ignore = true;\n }\n\n function isLabelShown(label) {\n if (!label.ignore) {\n return true;\n }\n\n for (var key in label.states) {\n if (label.states[key].ignore === false) {\n return true;\n }\n }\n\n return false;\n }\n\n data.each(function (idx) {\n var sector = data.getItemGraphicEl(idx);\n var sectorShape = sector.shape;\n var label = sector.getTextContent();\n var labelLine = sector.getTextGuideLine();\n var itemModel = data.getItemModel(idx);\n var labelModel = itemModel.getModel('label'); // Use position in normal or emphasis\n\n var labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);\n var labelDistance = labelModel.get('distanceToLabelLine');\n var labelAlignTo = labelModel.get('alignTo');\n var edgeDistance = parsePercent(labelModel.get('edgeDistance'), viewWidth);\n var bleedMargin = labelModel.get('bleedMargin');\n var labelLineModel = itemModel.getModel('labelLine');\n var labelLineLen = labelLineModel.get('length');\n labelLineLen = parsePercent(labelLineLen, viewWidth);\n var labelLineLen2 = labelLineModel.get('length2');\n labelLineLen2 = parsePercent(labelLineLen2, viewWidth);\n\n if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {\n each(label.states, setNotShow);\n label.ignore = true;\n return;\n }\n\n if (!isLabelShown(label)) {\n return;\n }\n\n var midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;\n var nx = Math.cos(midAngle);\n var ny = Math.sin(midAngle);\n var textX;\n var textY;\n var linePoints;\n var textAlign;\n cx = sectorShape.cx;\n cy = sectorShape.cy;\n var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';\n\n if (labelPosition === 'center') {\n textX = sectorShape.cx;\n textY = sectorShape.cy;\n textAlign = 'center';\n } else {\n var x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;\n var y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;\n textX = x1 + nx * 3;\n textY = y1 + ny * 3;\n\n if (!isLabelInside) {\n // For roseType\n var x2 = x1 + nx * (labelLineLen + r - sectorShape.r);\n var y2 = y1 + ny * (labelLineLen + r - sectorShape.r);\n var x3 = x2 + (nx < 0 ? -1 : 1) * labelLineLen2;\n var y3 = y2;\n\n if (labelAlignTo === 'edge') {\n // Adjust textX because text align of edge is opposite\n textX = nx < 0 ? viewLeft + edgeDistance : viewLeft + viewWidth - edgeDistance;\n } else {\n textX = x3 + (nx < 0 ? -labelDistance : labelDistance);\n }\n\n textY = y3;\n linePoints = [[x1, y1], [x2, y2], [x3, y3]];\n }\n\n textAlign = isLabelInside ? 'center' : labelAlignTo === 'edge' ? nx > 0 ? 'right' : 'left' : nx > 0 ? 'left' : 'right';\n }\n\n var labelRotate;\n var rotate = labelModel.get('rotate');\n\n if (typeof rotate === 'number') {\n labelRotate = rotate * (Math.PI / 180);\n } else {\n labelRotate = rotate ? nx < 0 ? -midAngle + Math.PI : -midAngle : 0;\n }\n\n hasLabelRotate = !!labelRotate;\n label.x = textX;\n label.y = textY;\n label.rotation = labelRotate;\n label.setStyle({\n verticalAlign: 'middle'\n }); // Not sectorShape the inside label\n\n if (!isLabelInside) {\n var textRect = label.getBoundingRect().clone();\n textRect.applyTransform(label.getComputedTransform()); // Text has a default 1px stroke. Exclude this.\n\n var margin = (label.style.margin || 0) + 2.1;\n textRect.y -= margin / 2;\n textRect.height += margin;\n labelLayoutList.push({\n label: label,\n labelLine: labelLine,\n position: labelPosition,\n len: labelLineLen,\n len2: labelLineLen2,\n minTurnAngle: labelLineModel.get('minTurnAngle'),\n maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),\n surfaceNormal: new Point(nx, ny),\n linePoints: linePoints,\n textAlign: textAlign,\n labelDistance: labelDistance,\n labelAlignTo: labelAlignTo,\n edgeDistance: edgeDistance,\n bleedMargin: bleedMargin,\n rect: textRect\n });\n } else {\n label.setStyle({\n align: textAlign\n });\n var selectState = label.states.select;\n\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n\n sector.setTextConfig({\n inside: isLabelInside\n });\n });\n\n if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {\n avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);\n }\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var layout = labelLayoutList[i];\n var label = layout.label;\n var labelLine = layout.labelLine;\n var notShowLabel = isNaN(label.x) || isNaN(label.y);\n\n if (label) {\n label.setStyle({\n align: layout.textAlign\n });\n\n if (notShowLabel) {\n each(label.states, setNotShow);\n label.ignore = true;\n }\n\n var selectState = label.states.select;\n\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n\n if (labelLine) {\n var linePoints = layout.linePoints;\n\n if (notShowLabel || !linePoints) {\n each(labelLine.states, setNotShow);\n labelLine.ignore = true;\n } else {\n limitTurnAngle(linePoints, layout.minTurnAngle);\n limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);\n labelLine.setShape({\n points: linePoints\n }); // Set the anchor to the midpoint of sector\n\n label.__hostTarget.textGuideLineConfig = {\n anchor: new Point(linePoints[0][0], linePoints[0][1])\n };\n }\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\nimport { parsePercent } from 'zrender/lib/contain/text';\nexport function getSectorCornerRadius(model, shape) {\n var cornerRadius = model.get('borderRadius');\n\n if (cornerRadius == null) {\n return null;\n }\n\n if (!isArray(cornerRadius)) {\n cornerRadius = [cornerRadius, cornerRadius];\n }\n\n return {\n innerCornerRadius: parsePercent(cornerRadius[0], shape.r0),\n cornerRadius: parsePercent(cornerRadius[1], shape.r)\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __assign, __extends } from \"tslib\";\nimport { extend, retrieve3 } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport labelLayout from './labelLayout';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\n\nvar PiePiece =\n/** @class */\nfunction (_super) {\n __extends(PiePiece, _super);\n\n function PiePiece(data, idx, startAngle) {\n var _this = _super.call(this) || this;\n\n _this.z2 = 2;\n var text = new graphic.Text();\n\n _this.setTextContent(text);\n\n _this.updateData(data, idx, startAngle, true);\n\n return _this;\n }\n\n PiePiece.prototype.updateData = function (data, idx, startAngle, firstCreate) {\n var sector = this;\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n var layout = data.getItemLayout(idx);\n var sectorShape = extend(getSectorCornerRadius(itemModel.getModel('itemStyle'), layout) || {}, layout); // Ignore NaN data.\n\n if (isNaN(sectorShape.startAngle)) {\n // Use NaN shape to avoid drawing shape.\n sector.setShape(sectorShape);\n return;\n }\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n var animationType = seriesModel.getShallow('animationType');\n\n if (animationType === 'scale') {\n sector.shape.r = layout.r0;\n graphic.initProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, idx);\n } // Expansion\n else {\n if (startAngle != null) {\n sector.setShape({\n startAngle: startAngle,\n endAngle: startAngle\n });\n graphic.initProps(sector, {\n shape: {\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n } else {\n sector.shape.endAngle = layout.startAngle;\n graphic.updateProps(sector, {\n shape: {\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n }\n } else {\n // Transition animation from the old shape\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel, idx);\n }\n\n sector.useStyle(data.getItemVisual(idx, 'style'));\n setStatesStylesFromModel(sector, itemModel);\n var midAngle = (layout.startAngle + layout.endAngle) / 2;\n var offset = seriesModel.get('selectedOffset');\n var dx = Math.cos(midAngle) * offset;\n var dy = Math.sin(midAngle) * offset;\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._updateLabel(seriesModel, data, idx);\n\n sector.ensureState('emphasis').shape = __assign({\n r: layout.r + (emphasisModel.get('scale') ? emphasisModel.get('scaleSize') || 0 : 0)\n }, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));\n extend(sector.ensureState('select'), {\n x: dx,\n y: dy,\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n });\n extend(sector.ensureState('blur'), {\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n });\n var labelLine = sector.getTextGuideLine();\n var labelText = sector.getTextContent();\n labelLine && extend(labelLine.ensureState('select'), {\n x: dx,\n y: dy\n }); // TODO: needs dx, dy in zrender?\n\n extend(labelText.ensureState('select'), {\n x: dx,\n y: dy\n });\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n };\n\n PiePiece.prototype._updateLabel = function (seriesModel, data, idx) {\n var sector = this;\n var itemModel = data.getItemModel(idx);\n var labelLineModel = itemModel.getModel('labelLine');\n var style = data.getItemVisual(idx, 'style');\n var visualColor = style && style.fill;\n var visualOpacity = style && style.opacity;\n setLabelStyle(sector, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n defaultText: seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx)\n });\n var labelText = sector.getTextContent(); // Set textConfig on sector.\n\n sector.setTextConfig({\n // reset position, rotation\n position: null,\n rotation: null\n }); // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n\n labelText.attr({\n z2: 10\n });\n var labelPosition = seriesModel.get(['label', 'position']);\n\n if (labelPosition !== 'outside' && labelPosition !== 'outer') {\n sector.removeTextGuideLine();\n } else {\n var polyline = this.getTextGuideLine();\n\n if (!polyline) {\n polyline = new graphic.Polyline();\n this.setTextGuideLine(polyline);\n } // Default use item visual color\n\n\n setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {\n stroke: visualColor,\n opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)\n });\n }\n };\n\n return PiePiece;\n}(graphic.Sector); // Pie view\n\n\nvar PieView =\n/** @class */\nfunction (_super) {\n __extends(PieView, _super);\n\n function PieView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.ignoreLabelLineUpdate = true;\n return _this;\n }\n\n PieView.prototype.init = function () {\n var sectorGroup = new graphic.Group();\n this._sectorGroup = sectorGroup;\n };\n\n PieView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n var startAngle; // First render\n\n if (!oldData && data.count() > 0) {\n var shape = data.getItemLayout(0);\n\n for (var s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {\n shape = data.getItemLayout(s);\n }\n\n if (shape) {\n startAngle = shape.startAngle;\n }\n }\n\n data.diff(oldData).add(function (idx) {\n var piePiece = new PiePiece(data, idx, startAngle);\n data.setItemGraphicEl(idx, piePiece);\n group.add(piePiece);\n }).update(function (newIdx, oldIdx) {\n var piePiece = oldData.getItemGraphicEl(oldIdx);\n piePiece.updateData(data, newIdx, startAngle);\n piePiece.off('click');\n group.add(piePiece);\n data.setItemGraphicEl(newIdx, piePiece);\n }).remove(function (idx) {\n var piePiece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piePiece, seriesModel, idx);\n }).execute();\n labelLayout(seriesModel); // Always use initial animation.\n\n if (seriesModel.get('animationTypeUpdate') !== 'expansion') {\n this._data = data;\n }\n };\n\n PieView.prototype.dispose = function () {};\n\n PieView.prototype.containPoint = function (point, seriesModel) {\n var data = seriesModel.getData();\n var itemLayout = data.getItemLayout(0);\n\n if (itemLayout) {\n var dx = point[0] - itemLayout.cx;\n var dy = point[1] - itemLayout.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n };\n\n PieView.type = 'pie';\n return PieView;\n}(ChartView);\n\nexport default PieView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createDimensions from '../../data/helper/createDimensions';\nimport List from '../../data/List';\nimport { extend, isArray } from 'zrender/lib/core/util';\n/**\n * [Usage]:\n * (1)\n * createListSimply(seriesModel, ['value']);\n * (2)\n * createListSimply(seriesModel, {\n * coordDimensions: ['value'],\n * dimensionsCount: 5\n * });\n */\n\nexport default function createListSimply(seriesModel, opt, nameList) {\n opt = isArray(opt) && {\n coordDimensions: opt\n } || extend({}, opt);\n var source = seriesModel.getSource();\n var dimensionsInfo = createDimensions(source, opt);\n var list = new List(dimensionsInfo, seriesModel);\n list.initData(source, nameList);\n return list;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * LegendVisualProvider is an bridge that pick encoded color from data and\n * provide to the legend component.\n */\nvar LegendVisualProvider =\n/** @class */\nfunction () {\n function LegendVisualProvider( // Function to get data after filtered. It stores all the encoding info\n getDataWithEncodedVisual, // Function to get raw data before filtered.\n getRawData) {\n this._getDataWithEncodedVisual = getDataWithEncodedVisual;\n this._getRawData = getRawData;\n }\n\n LegendVisualProvider.prototype.getAllNames = function () {\n var rawData = this._getRawData(); // We find the name from the raw data. In case it's filtered by the legend component.\n // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.\n\n\n return rawData.mapArray(rawData.getName);\n };\n\n LegendVisualProvider.prototype.containName = function (name) {\n var rawData = this._getRawData();\n\n return rawData.indexOfName(name) >= 0;\n };\n\n LegendVisualProvider.prototype.indexOfName = function (name) {\n // Only get data when necessary.\n // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.\n // Invoking Series#getData immediately will throw an error.\n var dataWithEncodedVisual = this._getDataWithEncodedVisual();\n\n return dataWithEncodedVisual.indexOfName(name);\n };\n\n LegendVisualProvider.prototype.getItemVisual = function (dataIndex, key) {\n // Get encoded visual properties from final filtered data.\n var dataWithEncodedVisual = this._getDataWithEncodedVisual();\n\n return dataWithEncodedVisual.getItemVisual(dataIndex, key);\n };\n\n return LegendVisualProvider;\n}();\n\nexport default LegendVisualProvider;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport { getPercentWithPrecision } from '../../util/number';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\n\nvar PieSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(PieSeriesModel, _super);\n\n function PieSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.useColorPaletteOnData = true;\n return _this;\n }\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n\n this._defaultLabelLine(option);\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.mergeOption = function () {\n _super.prototype.mergeOption.apply(this, arguments);\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.getInitialData = function () {\n return createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.getDataParams = function (dataIndex) {\n var data = this.getData();\n\n var params = _super.prototype.getDataParams.call(this, dataIndex); // FIXME toFixed?\n\n\n var valueList = [];\n data.each(data.mapDimension('value'), function (value) {\n valueList.push(value);\n });\n params.percent = getPercentWithPrecision(valueList, dataIndex, data.hostModel.get('percentPrecision'));\n params.$vars.push('percent');\n return params;\n };\n\n PieSeriesModel.prototype._defaultLabelLine = function (option) {\n // Extend labelLine emphasis\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\n var labelLineNormalOpt = option.labelLine;\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\n\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\n };\n\n PieSeriesModel.type = 'series.pie';\n PieSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // 默认全局居中\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // 默认顺时针\n clockwise: true,\n startAngle: 90,\n // 最小角度改为0\n minAngle: 0,\n // If the angle of a sector less than `minShowLabelAngle`,\n // the label will not be displayed.\n minShowLabelAngle: 0,\n // 选中时扇区偏移量\n selectedOffset: 10,\n // 选择模式,默认关闭,可选single,multiple\n // selectedMode: false,\n // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)\n // roseType: null,\n percentPrecision: 2,\n // If still show when all data zero.\n stillShowZeroSum: true,\n // cursor: null,\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: null,\n height: null,\n label: {\n // color: 'inherit',\n // If rotate around circle\n rotate: 0,\n show: true,\n overflow: 'truncate',\n // 'outer', 'inside', 'center'\n position: 'outer',\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\n alignTo: 'none',\n // Closest distance between label and chart edge.\n // Works only position is 'outer' and alignTo is 'edge'.\n edgeDistance: '25%',\n // Works only position is 'outer' and alignTo is not 'edge'.\n bleedMargin: 10,\n // Distance between text and label line.\n distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n // 默认使用全局文本样式,详见TEXTSTYLE\n // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数\n\n },\n // Enabled when label.normal.position is 'outer'\n labelLine: {\n show: true,\n // 引导线两段中的第一段长度\n length: 15,\n // 引导线两段中的第二段长度\n length2: 15,\n smooth: false,\n minTurnAngle: 90,\n maxSurfaceAngle: 90,\n lineStyle: {\n // color: 各异,\n width: 1,\n type: 'solid'\n }\n },\n itemStyle: {\n borderWidth: 1\n },\n labelLayout: {\n // Hide the overlapped label.\n hideOverlap: true\n },\n emphasis: {\n scale: true,\n scaleSize: 5\n },\n // If use strategy to avoid label overlapping\n avoidLabelOverlap: true,\n // Animation type. Valid values: expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n // Animation type when update. Valid values: transition, expansion\n animationTypeUpdate: 'transition',\n animationEasingUpdate: 'cubicInOut',\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut'\n };\n return PieSeriesModel;\n}(SeriesModel);\n\nexport default PieSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createLegacyDataSelectAction } from '../../legacy/dataSelectAction';\nimport pieLayout from '../pie/pieLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/lib/core/util';\nimport PieView from './PieView';\nimport PieSeriesModel from './PieSeries';\nexport function install(registers) {\n registers.registerChartView(PieView);\n registers.registerSeriesModel(PieSeriesModel);\n createLegacyDataSelectAction('pie', registers.registerAction);\n registers.registerLayout(curry(pieLayout, 'pie'));\n registers.registerProcessor(dataFilter('pie'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\n\nvar ScatterSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ScatterSeriesModel, _super);\n\n function ScatterSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScatterSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n ScatterSeriesModel.prototype.getProgressive = function () {\n var progressive = this.option.progressive;\n\n if (progressive == null) {\n // PENDING\n return this.option.large ? 5e3 : this.get('progressive');\n }\n\n return progressive;\n };\n\n ScatterSeriesModel.prototype.getProgressiveThreshold = function () {\n var progressiveThreshold = this.option.progressiveThreshold;\n\n if (progressiveThreshold == null) {\n // PENDING\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\n }\n\n return progressiveThreshold;\n };\n\n ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.point(data.getItemLayout(dataIndex));\n };\n\n ScatterSeriesModel.type = 'series.scatter';\n ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n ScatterSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n symbolSize: 10,\n // symbolRotate: null, // 图形旋转控制\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n // cursor: null,\n itemStyle: {\n opacity: 0.8 // color: 各异\n\n },\n emphasis: {\n scale: true\n },\n // If clip the overflow graphics\n // Works on cartesian / polar series\n clip: true,\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n } // progressive: null\n\n };\n return ScatterSeriesModel;\n}(SeriesModel);\n\nexport default ScatterSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Float32Array */\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport { getECData } from '../../util/innerStore';\nvar BOOST_SIZE_THRESHOLD = 4;\n\nvar LargeSymbolPathShape =\n/** @class */\nfunction () {\n function LargeSymbolPathShape() {}\n\n return LargeSymbolPathShape;\n}();\n\nvar LargeSymbolPath =\n/** @class */\nfunction (_super) {\n __extends(LargeSymbolPath, _super);\n\n function LargeSymbolPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n LargeSymbolPath.prototype.getDefaultShape = function () {\n return new LargeSymbolPathShape();\n };\n\n LargeSymbolPath.prototype.buildPath = function (path, shape) {\n var points = shape.points;\n var size = shape.size;\n var symbolProxy = this.symbolProxy;\n var symbolProxyShape = symbolProxy.shape;\n var ctx = path.getContext ? path.getContext() : path;\n var canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD; // Do draw in afterBrush.\n\n if (canBoost) {\n this._ctx = ctx;\n return;\n }\n\n this._ctx = null;\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n\n symbolProxyShape.x = x - size[0] / 2;\n symbolProxyShape.y = y - size[1] / 2;\n symbolProxyShape.width = size[0];\n symbolProxyShape.height = size[1];\n symbolProxy.buildPath(path, symbolProxyShape, true);\n }\n };\n\n LargeSymbolPath.prototype.afterBrush = function () {\n var shape = this.shape;\n var points = shape.points;\n var size = shape.size;\n var ctx = this._ctx;\n\n if (!ctx) {\n return;\n } // PENDING If style or other canvas status changed?\n\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n } // fillRect is faster than building a rect path and draw.\n // And it support light globalCompositeOperation.\n\n\n ctx.fillRect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]);\n }\n };\n\n LargeSymbolPath.prototype.findDataIndex = function (x, y) {\n // TODO ???\n // Consider transform\n var shape = this.shape;\n var points = shape.points;\n var size = shape.size;\n var w = Math.max(size[0], 4);\n var h = Math.max(size[1], 4); // Not consider transform\n // Treat each element as a rect\n // top down traverse\n\n for (var idx = points.length / 2 - 1; idx >= 0; idx--) {\n var i = idx * 2;\n var x0 = points[i] - w / 2;\n var y0 = points[i + 1] - h / 2;\n\n if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) {\n return idx;\n }\n }\n\n return -1;\n };\n\n return LargeSymbolPath;\n}(graphic.Path);\n\nvar LargeSymbolDraw =\n/** @class */\nfunction () {\n function LargeSymbolDraw() {\n this.group = new graphic.Group();\n }\n\n LargeSymbolDraw.prototype.isPersistent = function () {\n return !this._incremental;\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n LargeSymbolDraw.prototype.updateData = function (data, opt) {\n this.group.removeAll();\n var symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default'\n });\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n\n this._setCommon(symbolEl, data, false, opt);\n\n this.group.add(symbolEl);\n this._incremental = null;\n };\n\n LargeSymbolDraw.prototype.updateLayout = function (data) {\n if (this._incremental) {\n return;\n }\n\n var points = data.getLayout('points');\n this.group.eachChild(function (child) {\n if (child.startIndex != null) {\n var len = (child.endIndex - child.startIndex) * 2;\n var byteOffset = child.startIndex * 4 * 2;\n points = new Float32Array(points.buffer, byteOffset, len);\n }\n\n child.setShape('points', points);\n });\n };\n\n LargeSymbolDraw.prototype.incrementalPrepareUpdate = function (data) {\n this.group.removeAll();\n\n this._clearIncremental(); // Only use incremental displayables when data amount is larger than 2 million.\n // PENDING Incremental data?\n\n\n if (data.count() > 2e6) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n\n this.group.add(this._incremental);\n } else {\n this._incremental = null;\n }\n };\n\n LargeSymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {\n var symbolEl;\n\n if (this._incremental) {\n symbolEl = new LargeSymbolPath();\n\n this._incremental.addDisplayable(symbolEl, true);\n } else {\n symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default',\n startIndex: taskParams.start,\n endIndex: taskParams.end\n });\n symbolEl.incremental = true;\n this.group.add(symbolEl);\n }\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n\n this._setCommon(symbolEl, data, !!this._incremental, opt);\n };\n\n LargeSymbolDraw.prototype._setCommon = function (symbolEl, data, isIncremental, opt) {\n var hostModel = data.hostModel;\n opt = opt || {};\n var size = data.getVisual('symbolSize');\n symbolEl.setShape('size', size instanceof Array ? size : [size, size]);\n symbolEl.softClipShape = opt.clipShape || null; // Create symbolProxy to build path for each data\n\n symbolEl.symbolProxy = createSymbol(data.getVisual('symbol'), 0, 0, 0, 0); // Use symbolProxy setColor method\n\n symbolEl.setColor = symbolEl.symbolProxy.setColor;\n var extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD;\n symbolEl.useStyle( // Draw shadow when doing fillRect is extremely slow.\n hostModel.getModel('itemStyle').getItemStyle(extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']));\n var globalStyle = data.getVisual('style');\n var visualColor = globalStyle && globalStyle.fill;\n\n if (visualColor) {\n symbolEl.setColor(visualColor);\n }\n\n if (!isIncremental) {\n var ecData_1 = getECData(symbolEl); // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n\n ecData_1.seriesIndex = hostModel.seriesIndex;\n symbolEl.on('mousemove', function (e) {\n ecData_1.dataIndex = null;\n var dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY);\n\n if (dataIndex >= 0) {\n // Provide dataIndex for tooltip\n ecData_1.dataIndex = dataIndex + (symbolEl.startIndex || 0);\n }\n });\n }\n };\n\n LargeSymbolDraw.prototype.remove = function () {\n this._clearIncremental();\n\n this._incremental = null;\n this.group.removeAll();\n };\n\n LargeSymbolDraw.prototype._clearIncremental = function () {\n var incremental = this._incremental;\n\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n return LargeSymbolDraw;\n}();\n\nexport default LargeSymbolDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LargeSymbolDraw from '../helper/LargeSymbolDraw';\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\n\nvar ScatterView =\n/** @class */\nfunction (_super) {\n __extends(ScatterView, _super);\n\n function ScatterView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScatterView.type;\n return _this;\n }\n\n ScatterView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.updateData(data, {\n // TODO\n // If this parameter should be a shape or a bounding volume\n // shape will be more general.\n // But bounding volume like bounding rect will be much faster in the contain calculation\n clipShape: this._getClipShape(seriesModel)\n });\n this._finished = true;\n };\n\n ScatterView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.incrementalPrepareUpdate(data);\n this._finished = false;\n };\n\n ScatterView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), {\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = taskParams.end === seriesModel.getData().count();\n };\n\n ScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData(); // Must mark group dirty and make sure the incremental layer will be cleared\n // PENDING\n\n this.group.dirty();\n\n if (!this._finished || data.count() > 1e4 || !this._symbolDraw.isPersistent()) {\n return {\n update: true\n };\n } else {\n var res = pointsLayout('').reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout(data);\n }\n };\n\n ScatterView.prototype._getClipShape = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n };\n\n ScatterView.prototype._updateSymbolDraw = function (data, seriesModel) {\n var symbolDraw = this._symbolDraw;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeDraw = pipelineContext.large;\n\n if (!symbolDraw || isLargeDraw !== this._isLargeDraw) {\n symbolDraw && symbolDraw.remove();\n symbolDraw = this._symbolDraw = isLargeDraw ? new LargeSymbolDraw() : new SymbolDraw();\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(symbolDraw.group);\n return symbolDraw;\n };\n\n ScatterView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove(true);\n this._symbolDraw = null;\n };\n\n ScatterView.prototype.dispose = function () {};\n\n ScatterView.type = 'scatter';\n return ScatterView;\n}(ChartView);\n\nexport default ScatterView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar GridModel =\n/** @class */\nfunction (_super) {\n __extends(GridModel, _super);\n\n function GridModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GridModel.type = 'grid';\n GridModel.dependencies = ['xAxis', 'yAxis'];\n GridModel.layoutMode = 'box';\n GridModel.defaultOption = {\n show: false,\n zlevel: 0,\n z: 0,\n left: '10%',\n top: 60,\n right: '10%',\n bottom: 70,\n // If grid size contain label\n containLabel: false,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 1,\n borderColor: '#ccc'\n };\n return GridModel;\n}(ComponentModel);\n\nexport default GridModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nvar CartesianAxisModel =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisModel, _super);\n\n function CartesianAxisModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n CartesianAxisModel.prototype.getCoordSysModel = function () {\n return this.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n };\n\n CartesianAxisModel.type = 'cartesian2dAxis';\n return CartesianAxisModel;\n}(ComponentModel);\n\nexport { CartesianAxisModel };\nzrUtil.mixin(CartesianAxisModel, AxisModelCommonMixin);\nexport default CartesianAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar defaultOption = {\n show: true,\n zlevel: 0,\n z: 0,\n // Inverse the axis.\n inverse: false,\n // Axis name displayed.\n name: '',\n // 'start' | 'middle' | 'end'\n nameLocation: 'end',\n // By degree. By default auto rotate by nameLocation.\n nameRotate: null,\n nameTruncate: {\n maxWidth: null,\n ellipsis: '...',\n placeholder: '.'\n },\n // Use global text style by default.\n nameTextStyle: {},\n // The gap between axisName and axisLine.\n nameGap: 15,\n // Default `false` to support tooltip.\n silent: false,\n // Default `false` to avoid legacy user event listener fail.\n triggerEvent: false,\n tooltip: {\n show: false\n },\n axisPointer: {},\n axisLine: {\n show: true,\n onZero: true,\n onZeroAxisIndex: null,\n lineStyle: {\n color: '#6E7079',\n width: 1,\n type: 'solid'\n },\n // The arrow at both ends the the axis.\n symbol: ['none', 'none'],\n symbolSize: [10, 15]\n },\n axisTick: {\n show: true,\n // Whether axisTick is inside the grid or outside the grid.\n inside: false,\n // The length of axisTick.\n length: 5,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n // Whether axisLabel is inside the grid or outside the grid.\n inside: false,\n rotate: 0,\n // true | false | null/undefined (auto)\n showMinLabel: null,\n // true | false | null/undefined (auto)\n showMaxLabel: null,\n margin: 8,\n // formatter: null,\n fontSize: 12\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: ['#E0E6F1'],\n width: 1,\n type: 'solid'\n }\n },\n splitArea: {\n show: false,\n areaStyle: {\n color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']\n }\n }\n};\nvar categoryAxis = zrUtil.merge({\n // The gap at both ends of the axis. For categoryAxis, boolean.\n boundaryGap: true,\n // Set false to faster category collection.\n deduplication: null,\n // splitArea: {\n // show: false\n // },\n splitLine: {\n show: false\n },\n axisTick: {\n // If tick is align with label when boundaryGap is true\n alignWithLabel: false,\n interval: 'auto'\n },\n axisLabel: {\n interval: 'auto'\n }\n}, defaultOption);\nvar valueAxis = zrUtil.merge({\n boundaryGap: [0, 0],\n axisLine: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n axisTick: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n // TODO\n // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]\n splitNumber: 5,\n minorTick: {\n // Minor tick, not available for cateogry axis.\n show: false,\n // Split number of minor ticks. The value should be in range of (0, 100)\n splitNumber: 5,\n // Lenght of minor tick\n length: 3,\n // Line style\n lineStyle: {// Default to be same with axisTick\n }\n },\n minorSplitLine: {\n show: false,\n lineStyle: {\n color: '#F4F7FD',\n width: 1\n }\n }\n}, defaultOption);\nvar timeAxis = zrUtil.merge({\n scale: true,\n splitNumber: 6,\n axisLabel: {\n // To eliminate labels that are not nice\n showMinLabel: false,\n showMaxLabel: false,\n rich: {\n primary: {\n fontWeight: 'bold'\n }\n }\n },\n splitLine: {\n show: false\n }\n}, valueAxis);\nvar logAxis = zrUtil.defaults({\n scale: true,\n logBase: 10\n}, valueAxis);\nexport default {\n category: categoryAxis,\n value: valueAxis,\n time: timeAxis,\n log: logAxis\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport var AXIS_TYPES = {\n value: 1,\n category: 1,\n time: 1,\n log: 1\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport axisDefault from './axisDefault';\nimport { getLayoutParams, mergeLayoutParam, fetchLayoutMode } from '../util/layout';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport { AXIS_TYPES } from './axisCommonTypes';\nimport { each, merge } from 'zrender/lib/core/util';\n/**\n * Generate sub axis model class\n * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...\n */\n\nexport default function axisModelCreator(registers, axisName, BaseAxisModelClass, extraDefaultOption) {\n each(AXIS_TYPES, function (v, axisType) {\n var defaultOption = merge(merge({}, axisDefault[axisType], true), extraDefaultOption, true);\n\n var AxisModel =\n /** @class */\n function (_super) {\n __extends(AxisModel, _super);\n\n function AxisModel() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var _this = _super.apply(this, args) || this;\n\n _this.type = axisName + 'Axis.' + axisType;\n return _this;\n }\n\n AxisModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? getLayoutParams(option) : {};\n var themeModel = ecModel.getTheme();\n merge(option, themeModel.get(axisType + 'Axis'));\n merge(option, this.getDefaultOption());\n option.type = getAxisType(option);\n\n if (layoutMode) {\n mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n AxisModel.prototype.optionUpdated = function () {\n var thisOption = this.option;\n\n if (thisOption.type === 'category') {\n this.__ordinalMeta = OrdinalMeta.createByAxisModel(this);\n }\n };\n /**\n * Should not be called before all of 'getInitailData' finished.\n * Because categories are collected during initializing data.\n */\n\n\n AxisModel.prototype.getCategories = function (rawData) {\n var option = this.option; // FIXME\n // warning if called before all of 'getInitailData' finished.\n\n if (option.type === 'category') {\n if (rawData) {\n return option.data;\n }\n\n return this.__ordinalMeta.categories;\n }\n };\n\n AxisModel.prototype.getOrdinalMeta = function () {\n return this.__ordinalMeta;\n };\n\n AxisModel.type = axisName + 'Axis.' + axisType;\n AxisModel.defaultOption = defaultOption;\n return AxisModel;\n }(BaseAxisModelClass);\n\n registers.registerComponentModel(AxisModel);\n });\n registers.registerSubTypeDefaulter(axisName + 'Axis', getAxisType);\n}\n\nfunction getAxisType(option) {\n // Default axis with data is category axis\n return option.type || (option.data ? 'category' : 'value');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nvar Cartesian =\n/** @class */\nfunction () {\n function Cartesian(name) {\n this.type = 'cartesian';\n this._dimList = [];\n this._axes = {};\n this.name = name || '';\n }\n\n Cartesian.prototype.getAxis = function (dim) {\n return this._axes[dim];\n };\n\n Cartesian.prototype.getAxes = function () {\n return zrUtil.map(this._dimList, function (dim) {\n return this._axes[dim];\n }, this);\n };\n\n Cartesian.prototype.getAxesByScale = function (scaleType) {\n scaleType = scaleType.toLowerCase();\n return zrUtil.filter(this.getAxes(), function (axis) {\n return axis.scale.type === scaleType;\n });\n };\n\n Cartesian.prototype.addAxis = function (axis) {\n var dim = axis.dim;\n this._axes[dim] = axis;\n\n this._dimList.push(dim);\n };\n\n return Cartesian;\n}();\n\n;\nexport default Cartesian;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport Cartesian from './Cartesian';\nimport { invert } from 'zrender/lib/core/matrix';\nimport { applyTransform } from 'zrender/lib/core/vector';\nexport var cartesian2DDimensions = ['x', 'y'];\n\nfunction canCalculateAffineTransform(scale) {\n return scale.type === 'interval' || scale.type === 'time';\n}\n\nvar Cartesian2D =\n/** @class */\nfunction (_super) {\n __extends(Cartesian2D, _super);\n\n function Cartesian2D() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'cartesian2d';\n _this.dimensions = cartesian2DDimensions;\n return _this;\n }\n /**\n * Calculate an affine transform matrix if two axes are time or value.\n * It's mainly for accelartion on the large time series data.\n */\n\n\n Cartesian2D.prototype.calcAffineTransform = function () {\n this._transform = this._invTransform = null;\n var xAxisScale = this.getAxis('x').scale;\n var yAxisScale = this.getAxis('y').scale;\n\n if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) {\n return;\n }\n\n var xScaleExtent = xAxisScale.getExtent();\n var yScaleExtent = yAxisScale.getExtent();\n var start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]);\n var end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]);\n var xScaleSpan = xScaleExtent[1] - xScaleExtent[0];\n var yScaleSpan = yScaleExtent[1] - yScaleExtent[0];\n\n if (!xScaleSpan || !yScaleSpan) {\n return;\n } // Accelerate data to point calculation on the special large time series data.\n\n\n var scaleX = (end[0] - start[0]) / xScaleSpan;\n var scaleY = (end[1] - start[1]) / yScaleSpan;\n var translateX = start[0] - xScaleExtent[0] * scaleX;\n var translateY = start[1] - yScaleExtent[0] * scaleY;\n var m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY];\n this._invTransform = invert([], m);\n };\n /**\n * Base axis will be used on stacking.\n */\n\n\n Cartesian2D.prototype.getBaseAxis = function () {\n return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x');\n };\n\n Cartesian2D.prototype.containPoint = function (point) {\n var axisX = this.getAxis('x');\n var axisY = this.getAxis('y');\n return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1]));\n };\n\n Cartesian2D.prototype.containData = function (data) {\n return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]);\n };\n\n Cartesian2D.prototype.dataToPoint = function (data, clamp, out) {\n out = out || [];\n var xVal = data[0];\n var yVal = data[1]; // Fast path\n\n if (this._transform // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated.\n && xVal != null && isFinite(xVal) && yVal != null && isFinite(yVal)) {\n return applyTransform(out, data, this._transform);\n }\n\n var xAxis = this.getAxis('x');\n var yAxis = this.getAxis('y');\n out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp));\n out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp));\n return out;\n };\n\n Cartesian2D.prototype.clampData = function (data, out) {\n var xScale = this.getAxis('x').scale;\n var yScale = this.getAxis('y').scale;\n var xAxisExtent = xScale.getExtent();\n var yAxisExtent = yScale.getExtent();\n var x = xScale.parse(data[0]);\n var y = yScale.parse(data[1]);\n out = out || [];\n out[0] = Math.min(Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x), Math.max(xAxisExtent[0], xAxisExtent[1]));\n out[1] = Math.min(Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y), Math.max(yAxisExtent[0], yAxisExtent[1]));\n return out;\n };\n\n Cartesian2D.prototype.pointToData = function (point, clamp) {\n var out = [];\n\n if (this._invTransform) {\n return applyTransform(out, point, this._invTransform);\n }\n\n var xAxis = this.getAxis('x');\n var yAxis = this.getAxis('y');\n out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp);\n out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp);\n return out;\n };\n\n Cartesian2D.prototype.getOtherAxis = function (axis) {\n return this.getAxis(axis.dim === 'x' ? 'y' : 'x');\n };\n /**\n * Get rect area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n\n\n Cartesian2D.prototype.getArea = function () {\n var xExtent = this.getAxis('x').getGlobalExtent();\n var yExtent = this.getAxis('y').getGlobalExtent();\n var x = Math.min(xExtent[0], xExtent[1]);\n var y = Math.min(yExtent[0], yExtent[1]);\n var width = Math.max(xExtent[0], xExtent[1]) - x;\n var height = Math.max(yExtent[0], yExtent[1]) - y;\n return new BoundingRect(x, y, width, height);\n };\n\n return Cartesian2D;\n}(Cartesian);\n\n;\nexport default Cartesian2D;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar Axis2D =\n/** @class */\nfunction (_super) {\n __extends(Axis2D, _super);\n\n function Axis2D(dim, scale, coordExtent, axisType, position) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n /**\n * Index of axis, can be used as key\n * Injected outside.\n */\n\n\n _this.index = 0;\n _this.type = axisType || 'value';\n _this.position = position || 'bottom';\n return _this;\n }\n\n Axis2D.prototype.isHorizontal = function () {\n var position = this.position;\n return position === 'top' || position === 'bottom';\n };\n /**\n * Each item cooresponds to this.getExtent(), which\n * means globalExtent[0] may greater than globalExtent[1],\n * unless `asc` is input.\n *\n * @param {boolean} [asc]\n * @return {Array.}\n */\n\n\n Axis2D.prototype.getGlobalExtent = function (asc) {\n var ret = this.getExtent();\n ret[0] = this.toGlobalCoord(ret[0]);\n ret[1] = this.toGlobalCoord(ret[1]);\n asc && ret[0] > ret[1] && ret.reverse();\n return ret;\n };\n\n Axis2D.prototype.pointToData = function (point, clamp) {\n return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);\n };\n /**\n * Set ordinalSortInfo\n * @param info new OrdinalSortInfo\n */\n\n\n Axis2D.prototype.setCategorySortInfo = function (info) {\n if (this.type !== 'category') {\n return false;\n }\n\n this.model.option.categorySortInfo = info;\n this.scale.setSortInfo(info);\n };\n\n return Axis2D;\n}(Axis);\n\nexport default Axis2D;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Can only be called after coordinate system creation stage.\n * (Can be called before coordinate system update stage).\n */\n\nexport function layout(gridModel, axisModel, opt) {\n opt = opt || {};\n var grid = gridModel.coordinateSystem;\n var axis = axisModel.axis;\n var layout = {};\n var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n var rawAxisPosition = axis.position;\n var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n var axisDim = axis.dim;\n var rect = grid.getRect();\n var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n var idx = {\n left: 0,\n right: 1,\n top: 0,\n bottom: 1,\n onZero: 2\n };\n var axisOffset = axisModel.get('offset') || 0;\n var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\n if (otherAxisOnZeroOf) {\n var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n } // Axis position\n\n\n layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]]; // Axis rotation\n\n layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim\n\n var dirMap = {\n top: -1,\n bottom: 1,\n left: -1,\n right: 1\n };\n layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n } // Special label rotation\n\n\n var labelRotate = axisModel.get(['axisLabel', 'rotate']);\n layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea\n\n layout.z2 = 1;\n return layout;\n}\nexport function isCartesian2DSeries(seriesModel) {\n return seriesModel.get('coordinateSystem') === 'cartesian2d';\n}\nexport function findAxisModels(seriesModel) {\n var axisModelMap = {\n xAxisModel: null,\n yAxisModel: null\n };\n zrUtil.each(axisModelMap, function (v, key) {\n var axisType = key.replace(/Model$/, '');\n var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!axisModel) {\n throw new Error(axisType + ' \"' + zrUtil.retrieve3(seriesModel.get(axisType + 'Index'), seriesModel.get(axisType + 'Id'), 0) + '\" not found');\n }\n }\n\n axisModelMap[key] = axisModel;\n });\n return axisModelMap;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Grid is a region which contains at most 4 cartesian systems\n *\n * TODO Default cartesian\n */\nimport { isObject, each, indexOf, retrieve3 } from 'zrender/lib/core/util';\nimport { getLayoutRect } from '../../util/layout';\nimport { createScaleByModel, ifAxisCrossZero, niceScaleExtent, estimateLabelUnionRect, getDataDimensionsOnAxis } from '../../coord/axisHelper';\nimport Cartesian2D, { cartesian2DDimensions } from './Cartesian2D';\nimport Axis2D from './Axis2D';\nimport { SINGLE_REFERRING } from '../../util/model';\nimport { isCartesian2DSeries, findAxisModels } from './cartesianAxisHelper';\n\nvar Grid =\n/** @class */\nfunction () {\n function Grid(gridModel, ecModel, api) {\n // FIXME:TS where used (different from registered type 'cartesian2d')?\n this.type = 'grid';\n this._coordsMap = {};\n this._coordsList = [];\n this._axesMap = {};\n this._axesList = [];\n this.axisPointerEnabled = true;\n this.dimensions = cartesian2DDimensions;\n\n this._initCartesian(gridModel, ecModel, api);\n\n this.model = gridModel;\n }\n\n Grid.prototype.getRect = function () {\n return this._rect;\n };\n\n Grid.prototype.update = function (ecModel, api) {\n var axesMap = this._axesMap;\n\n this._updateScale(ecModel, this.model);\n\n each(axesMap.x, function (xAxis) {\n niceScaleExtent(xAxis.scale, xAxis.model);\n });\n each(axesMap.y, function (yAxis) {\n niceScaleExtent(yAxis.scale, yAxis.model);\n }); // Key: axisDim_axisIndex, value: boolean, whether onZero target.\n\n var onZeroRecords = {};\n each(axesMap.x, function (xAxis) {\n fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);\n });\n each(axesMap.y, function (yAxis) {\n fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);\n }); // Resize again if containLabel is enabled\n // FIXME It may cause getting wrong grid size in data processing stage\n\n this.resize(this.model, api);\n };\n /**\n * Resize the grid\n */\n\n\n Grid.prototype.resize = function (gridModel, api, ignoreContainLabel) {\n var boxLayoutParams = gridModel.getBoxLayoutParams();\n var isContainLabel = !ignoreContainLabel && gridModel.get('containLabel');\n var gridRect = getLayoutRect(boxLayoutParams, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n this._rect = gridRect;\n var axesList = this._axesList;\n adjustAxes(); // Minus label size\n\n if (isContainLabel) {\n each(axesList, function (axis) {\n if (!axis.model.get(['axisLabel', 'inside'])) {\n var labelUnionRect = estimateLabelUnionRect(axis);\n\n if (labelUnionRect) {\n var dim = axis.isHorizontal() ? 'height' : 'width';\n var margin = axis.model.get(['axisLabel', 'margin']);\n gridRect[dim] -= labelUnionRect[dim] + margin;\n\n if (axis.position === 'top') {\n gridRect.y += labelUnionRect.height + margin;\n } else if (axis.position === 'left') {\n gridRect.x += labelUnionRect.width + margin;\n }\n }\n }\n });\n adjustAxes();\n }\n\n each(this._coordsList, function (coord) {\n // Calculate affine matrix to accelerate the data to point transform.\n // If all the axes scales are time or value.\n coord.calcAffineTransform();\n });\n\n function adjustAxes() {\n each(axesList, function (axis) {\n var isHorizontal = axis.isHorizontal();\n var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];\n var idx = axis.inverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y);\n });\n }\n };\n\n Grid.prototype.getAxis = function (dim, axisIndex) {\n var axesMapOnDim = this._axesMap[dim];\n\n if (axesMapOnDim != null) {\n return axesMapOnDim[axisIndex || 0]; // if (axisIndex == null) {\n // Find first axis\n // for (let name in axesMapOnDim) {\n // if (axesMapOnDim.hasOwnProperty(name)) {\n // return axesMapOnDim[name];\n // }\n // }\n // }\n // return axesMapOnDim[axisIndex];\n }\n };\n\n Grid.prototype.getAxes = function () {\n return this._axesList.slice();\n };\n\n Grid.prototype.getCartesian = function (xAxisIndex, yAxisIndex) {\n if (xAxisIndex != null && yAxisIndex != null) {\n var key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n return this._coordsMap[key];\n }\n\n if (isObject(xAxisIndex)) {\n yAxisIndex = xAxisIndex.yAxisIndex;\n xAxisIndex = xAxisIndex.xAxisIndex;\n }\n\n for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) {\n if (coordList[i].getAxis('x').index === xAxisIndex || coordList[i].getAxis('y').index === yAxisIndex) {\n return coordList[i];\n }\n }\n };\n\n Grid.prototype.getCartesians = function () {\n return this._coordsList.slice();\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.convertToPixel = function (ecModel, finder, value) {\n var target = this._findConvertTarget(finder);\n\n return target.cartesian ? target.cartesian.dataToPoint(value) : target.axis ? target.axis.toGlobalCoord(target.axis.dataToCoord(value)) : null;\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.convertFromPixel = function (ecModel, finder, value) {\n var target = this._findConvertTarget(finder);\n\n return target.cartesian ? target.cartesian.pointToData(value) : target.axis ? target.axis.coordToData(target.axis.toLocalCoord(value)) : null;\n };\n\n Grid.prototype._findConvertTarget = function (finder) {\n var seriesModel = finder.seriesModel;\n var xAxisModel = finder.xAxisModel || seriesModel && seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];\n var yAxisModel = finder.yAxisModel || seriesModel && seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];\n var gridModel = finder.gridModel;\n var coordsList = this._coordsList;\n var cartesian;\n var axis;\n\n if (seriesModel) {\n cartesian = seriesModel.coordinateSystem;\n indexOf(coordsList, cartesian) < 0 && (cartesian = null);\n } else if (xAxisModel && yAxisModel) {\n cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n } else if (xAxisModel) {\n axis = this.getAxis('x', xAxisModel.componentIndex);\n } else if (yAxisModel) {\n axis = this.getAxis('y', yAxisModel.componentIndex);\n } // Lowest priority.\n else if (gridModel) {\n var grid = gridModel.coordinateSystem;\n\n if (grid === this) {\n cartesian = this._coordsList[0];\n }\n }\n\n return {\n cartesian: cartesian,\n axis: axis\n };\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.containPoint = function (point) {\n var coord = this._coordsList[0];\n\n if (coord) {\n return coord.containPoint(point);\n }\n };\n /**\n * Initialize cartesian coordinate systems\n */\n\n\n Grid.prototype._initCartesian = function (gridModel, ecModel, api) {\n var _this = this;\n\n var grid = this;\n var axisPositionUsed = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n var axesMap = {\n x: {},\n y: {}\n };\n var axesCount = {\n x: 0,\n y: 0\n }; /// Create axis\n\n ecModel.eachComponent('xAxis', createAxisCreator('x'), this);\n ecModel.eachComponent('yAxis', createAxisCreator('y'), this);\n\n if (!axesCount.x || !axesCount.y) {\n // Roll back when there no either x or y axis\n this._axesMap = {};\n this._axesList = [];\n return;\n }\n\n this._axesMap = axesMap; /// Create cartesian2d\n\n each(axesMap.x, function (xAxis, xAxisIndex) {\n each(axesMap.y, function (yAxis, yAxisIndex) {\n var key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n var cartesian = new Cartesian2D(key);\n cartesian.master = _this;\n cartesian.model = gridModel;\n _this._coordsMap[key] = cartesian;\n\n _this._coordsList.push(cartesian);\n\n cartesian.addAxis(xAxis);\n cartesian.addAxis(yAxis);\n });\n });\n\n function createAxisCreator(dimName) {\n return function (axisModel, idx) {\n if (!isAxisUsedInTheGrid(axisModel, gridModel)) {\n return;\n }\n\n var axisPosition = axisModel.get('position');\n\n if (dimName === 'x') {\n // Fix position\n if (axisPosition !== 'top' && axisPosition !== 'bottom') {\n // Default bottom of X\n axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';\n }\n } else {\n // Fix position\n if (axisPosition !== 'left' && axisPosition !== 'right') {\n // Default left of Y\n axisPosition = axisPositionUsed.left ? 'right' : 'left';\n }\n }\n\n axisPositionUsed[axisPosition] = true;\n var axis = new Axis2D(dimName, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisPosition);\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse'); // Inject axis into axisModel\n\n axisModel.axis = axis; // Inject axisModel into axis\n\n axis.model = axisModel; // Inject grid info axis\n\n axis.grid = grid; // Index of axis, can be used as key\n\n axis.index = idx;\n\n grid._axesList.push(axis);\n\n axesMap[dimName][idx] = axis;\n axesCount[dimName]++;\n };\n }\n };\n /**\n * Update cartesian properties from series.\n */\n\n\n Grid.prototype._updateScale = function (ecModel, gridModel) {\n // Reset scale\n each(this._axesList, function (axis) {\n axis.scale.setExtent(Infinity, -Infinity);\n\n if (axis.type === 'category') {\n var categorySortInfo = axis.model.get('categorySortInfo');\n axis.scale.setSortInfo(categorySortInfo);\n }\n });\n ecModel.eachSeries(function (seriesModel) {\n if (isCartesian2DSeries(seriesModel)) {\n var axesModelMap = findAxisModels(seriesModel);\n var xAxisModel = axesModelMap.xAxisModel;\n var yAxisModel = axesModelMap.yAxisModel;\n\n if (!isAxisUsedInTheGrid(xAxisModel, gridModel) || !isAxisUsedInTheGrid(yAxisModel, gridModel)) {\n return;\n }\n\n var cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n var data = seriesModel.getData();\n var xAxis = cartesian.getAxis('x');\n var yAxis = cartesian.getAxis('y');\n\n if (data.type === 'list') {\n unionExtent(data, xAxis);\n unionExtent(data, yAxis);\n }\n }\n }, this);\n\n function unionExtent(data, axis) {\n each(getDataDimensionsOnAxis(data, axis.dim), function (dim) {\n axis.scale.unionExtentFromData(data, dim);\n });\n }\n };\n /**\n * @param dim 'x' or 'y' or 'auto' or null/undefined\n */\n\n\n Grid.prototype.getTooltipAxes = function (dim) {\n var baseAxes = [];\n var otherAxes = [];\n each(this.getCartesians(), function (cartesian) {\n var baseAxis = dim != null && dim !== 'auto' ? cartesian.getAxis(dim) : cartesian.getBaseAxis();\n var otherAxis = cartesian.getOtherAxis(baseAxis);\n indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);\n indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);\n });\n return {\n baseAxes: baseAxes,\n otherAxes: otherAxes\n };\n };\n\n Grid.create = function (ecModel, api) {\n var grids = [];\n ecModel.eachComponent('grid', function (gridModel, idx) {\n var grid = new Grid(gridModel, ecModel, api);\n grid.name = 'grid_' + idx; // dataSampling requires axis extent, so resize\n // should be performed in create stage.\n\n grid.resize(gridModel, api, true);\n gridModel.coordinateSystem = grid;\n grids.push(grid);\n }); // Inject the coordinateSystems into seriesModel\n\n ecModel.eachSeries(function (seriesModel) {\n if (!isCartesian2DSeries(seriesModel)) {\n return;\n }\n\n var axesModelMap = findAxisModels(seriesModel);\n var xAxisModel = axesModelMap.xAxisModel;\n var yAxisModel = axesModelMap.yAxisModel;\n var gridModel = xAxisModel.getCoordSysModel();\n\n if (process.env.NODE_ENV !== 'production') {\n if (!gridModel) {\n throw new Error('Grid \"' + retrieve3(xAxisModel.get('gridIndex'), xAxisModel.get('gridId'), 0) + '\" not found');\n }\n\n if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) {\n throw new Error('xAxis and yAxis must use the same grid');\n }\n }\n\n var grid = gridModel.coordinateSystem;\n seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n });\n return grids;\n }; // For deciding which dimensions to use when creating list data\n\n\n Grid.dimensions = cartesian2DDimensions;\n return Grid;\n}();\n/**\n * Check if the axis is used in the specified grid.\n */\n\n\nfunction isAxisUsedInTheGrid(axisModel, gridModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}\n\nfunction fixAxisOnZero(axesMap, otherAxisDim, axis, // Key: see `getOnZeroRecordKey`\nonZeroRecords) {\n axis.getAxesOnZeroOf = function () {\n // TODO: onZero of multiple axes.\n return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : [];\n }; // onZero can not be enabled in these two situations:\n // 1. When any other axis is a category axis.\n // 2. When no axis is cross 0 point.\n\n\n var otherAxes = axesMap[otherAxisDim];\n var otherAxisOnZeroOf;\n var axisModel = axis.model;\n var onZero = axisModel.get(['axisLine', 'onZero']);\n var onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']);\n\n if (!onZero) {\n return;\n } // If target axis is specified.\n\n\n if (onZeroAxisIndex != null) {\n if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) {\n otherAxisOnZeroOf = otherAxes[onZeroAxisIndex];\n }\n } else {\n // Find the first available other axis.\n for (var idx in otherAxes) {\n if (otherAxes.hasOwnProperty(idx) && canOnZeroToAxis(otherAxes[idx]) // Consider that two Y axes on one value axis,\n // if both onZero, the two Y axes overlap.\n && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]) {\n otherAxisOnZeroOf = otherAxes[idx];\n break;\n }\n }\n }\n\n if (otherAxisOnZeroOf) {\n onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true;\n }\n\n function getOnZeroRecordKey(axis) {\n return axis.dim + '_' + axis.index;\n }\n}\n\nfunction canOnZeroToAxis(axis) {\n return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis);\n}\n\nfunction updateAxisTransform(axis, coordBase) {\n var axisExtent = axis.getExtent();\n var axisExtentSum = axisExtent[0] + axisExtent[1]; // Fast transform\n\n axis.toGlobalCoord = axis.dim === 'x' ? function (coord) {\n return coord + coordBase;\n } : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n axis.toLocalCoord = axis.dim === 'x' ? function (coord) {\n return coord - coordBase;\n } : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n}\n\nexport default Grid;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { retrieve, defaults, extend, each, isObject } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle } from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport { isRadianAroundZero, remRadian } from '../../util/number';\nimport { createSymbol } from '../../util/symbol';\nimport * as matrixUtil from 'zrender/lib/core/matrix';\nimport { applyTransform as v2ApplyTransform } from 'zrender/lib/core/vector';\nimport { shouldShowAllLabels } from '../../coord/axisHelper';\nvar PI = Math.PI;\n/**\n * A final axis is translated and rotated from a \"standard axis\".\n * So opt.position and opt.rotation is required.\n *\n * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],\n * for example: (0, 0) ------------> (0, 50)\n *\n * nameDirection or tickDirection or labelDirection is 1 means tick\n * or label is below the standard axis, whereas is -1 means above\n * the standard axis. labelOffset means offset between label and axis,\n * which is useful when 'onZero', where axisLabel is in the grid and\n * label in outside grid.\n *\n * Tips: like always,\n * positive rotation represents anticlockwise, and negative rotation\n * represents clockwise.\n * The direction of position coordinate is the same as the direction\n * of screen coordinate.\n *\n * Do not need to consider axis 'inverse', which is auto processed by\n * axis extent.\n */\n\nvar AxisBuilder =\n/** @class */\nfunction () {\n function AxisBuilder(axisModel, opt) {\n this.group = new graphic.Group();\n this.opt = opt;\n this.axisModel = axisModel; // Default value\n\n defaults(opt, {\n labelOffset: 0,\n nameDirection: 1,\n tickDirection: 1,\n labelDirection: 1,\n silent: true,\n handleAutoShown: function () {\n return true;\n }\n }); // FIXME Not use a seperate text group?\n\n var transformGroup = new graphic.Group({\n x: opt.position[0],\n y: opt.position[1],\n rotation: opt.rotation\n }); // this.group.add(transformGroup);\n // this._transformGroup = transformGroup;\n\n transformGroup.updateTransform();\n this._transformGroup = transformGroup;\n }\n\n AxisBuilder.prototype.hasBuilder = function (name) {\n return !!builders[name];\n };\n\n AxisBuilder.prototype.add = function (name) {\n builders[name](this.opt, this.axisModel, this.group, this._transformGroup);\n };\n\n AxisBuilder.prototype.getGroup = function () {\n return this.group;\n };\n\n AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) {\n var rotationDiff = remRadian(textRotation - axisRotation);\n var textAlign;\n var textVerticalAlign;\n\n if (isRadianAroundZero(rotationDiff)) {\n // Label is parallel with axis line.\n textVerticalAlign = direction > 0 ? 'top' : 'bottom';\n textAlign = 'center';\n } else if (isRadianAroundZero(rotationDiff - PI)) {\n // Label is inverse parallel with axis line.\n textVerticalAlign = direction > 0 ? 'bottom' : 'top';\n textAlign = 'center';\n } else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff > 0 && rotationDiff < PI) {\n textAlign = direction > 0 ? 'right' : 'left';\n } else {\n textAlign = direction > 0 ? 'left' : 'right';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n };\n\n AxisBuilder.makeAxisEventDataBase = function (axisModel) {\n var eventData = {\n componentType: axisModel.mainType,\n componentIndex: axisModel.componentIndex\n };\n eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;\n return eventData;\n };\n\n AxisBuilder.isLabelSilent = function (axisModel) {\n var tooltipOpt = axisModel.get('tooltip');\n return axisModel.get('silent') // Consider mouse cursor, add these restrictions.\n || !(axisModel.get('triggerEvent') || tooltipOpt && tooltipOpt.show);\n };\n\n return AxisBuilder;\n}();\n\n;\nvar builders = {\n axisLine: function (opt, axisModel, group, transformGroup) {\n var shown = axisModel.get(['axisLine', 'show']);\n\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisLine');\n }\n\n if (!shown) {\n return;\n }\n\n var extent = axisModel.axis.getExtent();\n var matrix = transformGroup.transform;\n var pt1 = [extent[0], 0];\n var pt2 = [extent[1], 0];\n\n if (matrix) {\n v2ApplyTransform(pt1, pt1, matrix);\n v2ApplyTransform(pt2, pt2, matrix);\n }\n\n var lineStyle = extend({\n lineCap: 'round'\n }, axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle());\n var line = new graphic.Line({\n // Id for animation\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: lineStyle,\n strokeContainThreshold: opt.strokeContainThreshold || 5,\n silent: true,\n z2: 1\n });\n line.anid = 'line';\n group.add(line);\n var arrows = axisModel.get(['axisLine', 'symbol']);\n var arrowSize = axisModel.get(['axisLine', 'symbolSize']);\n var arrowOffset = axisModel.get(['axisLine', 'symbolOffset']) || 0;\n\n if (typeof arrowOffset === 'number') {\n arrowOffset = [arrowOffset, arrowOffset];\n }\n\n if (arrows != null) {\n if (typeof arrows === 'string') {\n // Use the same arrow for start and end point\n arrows = [arrows, arrows];\n }\n\n if (typeof arrowSize === 'string' || typeof arrowSize === 'number') {\n // Use the same size for width and height\n arrowSize = [arrowSize, arrowSize];\n }\n\n var symbolWidth_1 = arrowSize[0];\n var symbolHeight_1 = arrowSize[1];\n each([{\n rotate: opt.rotation + Math.PI / 2,\n offset: arrowOffset[0],\n r: 0\n }, {\n rotate: opt.rotation - Math.PI / 2,\n offset: arrowOffset[1],\n r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0]) + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1]))\n }], function (point, index) {\n if (arrows[index] !== 'none' && arrows[index] != null) {\n var symbol = createSymbol(arrows[index], -symbolWidth_1 / 2, -symbolHeight_1 / 2, symbolWidth_1, symbolHeight_1, lineStyle.stroke, true); // Calculate arrow position with offset\n\n var r = point.r + point.offset;\n symbol.attr({\n rotation: point.rotate,\n x: pt1[0] + r * Math.cos(opt.rotation),\n y: pt1[1] - r * Math.sin(opt.rotation),\n silent: true,\n z2: 11\n });\n group.add(symbol);\n }\n });\n }\n },\n axisTickLabel: function (opt, axisModel, group, transformGroup) {\n var ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt);\n var labelEls = buildAxisLabel(group, transformGroup, axisModel, opt);\n fixMinMaxLabelShow(axisModel, labelEls, ticksEls);\n buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection);\n },\n axisName: function (opt, axisModel, group, transformGroup) {\n var name = retrieve(opt.axisName, axisModel.get('name'));\n\n if (!name) {\n return;\n }\n\n var nameLocation = axisModel.get('nameLocation');\n var nameDirection = opt.nameDirection;\n var textStyleModel = axisModel.getModel('nameTextStyle');\n var gap = axisModel.get('nameGap') || 0;\n var extent = axisModel.axis.getExtent();\n var gapSignal = extent[0] > extent[1] ? -1 : 1;\n var pos = [nameLocation === 'start' ? extent[0] - gapSignal * gap : nameLocation === 'end' ? extent[1] + gapSignal * gap : (extent[0] + extent[1]) / 2, // Reuse labelOffset.\n isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0];\n var labelLayout;\n var nameRotation = axisModel.get('nameRotate');\n\n if (nameRotation != null) {\n nameRotation = nameRotation * PI / 180; // To radian.\n }\n\n var axisNameAvailableWidth;\n\n if (isNameLocationCenter(nameLocation)) {\n labelLayout = AxisBuilder.innerTextLayout(opt.rotation, nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis.\n nameDirection);\n } else {\n labelLayout = endTextLayout(opt.rotation, nameLocation, nameRotation || 0, extent);\n axisNameAvailableWidth = opt.axisNameAvailableWidth;\n\n if (axisNameAvailableWidth != null) {\n axisNameAvailableWidth = Math.abs(axisNameAvailableWidth / Math.sin(labelLayout.rotation));\n !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);\n }\n }\n\n var textFont = textStyleModel.getFont();\n var truncateOpt = axisModel.get('nameTruncate', true) || {};\n var ellipsis = truncateOpt.ellipsis;\n var maxWidth = retrieve(opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth);\n var textEl = new graphic.Text({\n x: pos[0],\n y: pos[1],\n rotation: labelLayout.rotation,\n silent: AxisBuilder.isLabelSilent(axisModel),\n style: createTextStyle(textStyleModel, {\n text: name,\n font: textFont,\n overflow: 'truncate',\n width: maxWidth,\n ellipsis: ellipsis,\n fill: textStyleModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']),\n align: textStyleModel.get('align') || labelLayout.textAlign,\n verticalAlign: textStyleModel.get('verticalAlign') || labelLayout.textVerticalAlign\n }),\n z2: 1\n });\n graphic.setTooltipConfig({\n el: textEl,\n componentModel: axisModel,\n itemName: name\n });\n textEl.__fullText = name; // Id for animation\n\n textEl.anid = 'name';\n\n if (axisModel.get('triggerEvent')) {\n var eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisName';\n eventData.name = name;\n getECData(textEl).eventData = eventData;\n } // FIXME\n\n\n transformGroup.add(textEl);\n textEl.updateTransform();\n group.add(textEl);\n textEl.decomposeTransform();\n }\n};\n\nfunction endTextLayout(rotation, textPosition, textRotate, extent) {\n var rotationDiff = remRadian(textRotate - rotation);\n var textAlign;\n var textVerticalAlign;\n var inverse = extent[0] > extent[1];\n var onLeft = textPosition === 'start' && !inverse || textPosition !== 'start' && inverse;\n\n if (isRadianAroundZero(rotationDiff - PI / 2)) {\n textVerticalAlign = onLeft ? 'bottom' : 'top';\n textAlign = 'center';\n } else if (isRadianAroundZero(rotationDiff - PI * 1.5)) {\n textVerticalAlign = onLeft ? 'top' : 'bottom';\n textAlign = 'center';\n } else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) {\n textAlign = onLeft ? 'left' : 'right';\n } else {\n textAlign = onLeft ? 'right' : 'left';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n}\n\nfunction fixMinMaxLabelShow(axisModel, labelEls, tickEls) {\n if (shouldShowAllLabels(axisModel.axis)) {\n return;\n } // If min or max are user set, we need to check\n // If the tick on min(max) are overlap on their neighbour tick\n // If they are overlapped, we need to hide the min(max) tick label\n\n\n var showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']);\n var showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']); // FIXME\n // Have not consider onBand yet, where tick els is more than label els.\n\n labelEls = labelEls || [];\n tickEls = tickEls || [];\n var firstLabel = labelEls[0];\n var nextLabel = labelEls[1];\n var lastLabel = labelEls[labelEls.length - 1];\n var prevLabel = labelEls[labelEls.length - 2];\n var firstTick = tickEls[0];\n var nextTick = tickEls[1];\n var lastTick = tickEls[tickEls.length - 1];\n var prevTick = tickEls[tickEls.length - 2];\n\n if (showMinLabel === false) {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n } else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {\n if (showMinLabel) {\n ignoreEl(nextLabel);\n ignoreEl(nextTick);\n } else {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n }\n\n if (showMaxLabel === false) {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n } else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {\n if (showMaxLabel) {\n ignoreEl(prevLabel);\n ignoreEl(prevTick);\n } else {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n }\n}\n\nfunction ignoreEl(el) {\n el && (el.ignore = true);\n}\n\nfunction isTwoLabelOverlapped(current, next) {\n // current and next has the same rotation.\n var firstRect = current && current.getBoundingRect().clone();\n var nextRect = next && next.getBoundingRect().clone();\n\n if (!firstRect || !nextRect) {\n return;\n } // When checking intersect of two rotated labels, we use mRotationBack\n // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.\n\n\n var mRotationBack = matrixUtil.identity([]);\n matrixUtil.rotate(mRotationBack, mRotationBack, -current.rotation);\n firstRect.applyTransform(matrixUtil.mul([], mRotationBack, current.getLocalTransform()));\n nextRect.applyTransform(matrixUtil.mul([], mRotationBack, next.getLocalTransform()));\n return firstRect.intersect(nextRect);\n}\n\nfunction isNameLocationCenter(nameLocation) {\n return nameLocation === 'middle' || nameLocation === 'center';\n}\n\nfunction createTicks(ticksCoords, tickTransform, tickEndCoord, tickLineStyle, anidPrefix) {\n var tickEls = [];\n var pt1 = [];\n var pt2 = [];\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var tickCoord = ticksCoords[i].coord;\n pt1[0] = tickCoord;\n pt1[1] = 0;\n pt2[0] = tickCoord;\n pt2[1] = tickEndCoord;\n\n if (tickTransform) {\n v2ApplyTransform(pt1, pt1, tickTransform);\n v2ApplyTransform(pt2, pt2, tickTransform);\n } // Tick line, Not use group transform to have better line draw\n\n\n var tickEl = new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: tickLineStyle,\n z2: 2,\n autoBatch: true,\n silent: true\n });\n tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue;\n tickEls.push(tickEl);\n }\n\n return tickEls;\n}\n\nfunction buildAxisMajorTicks(group, transformGroup, axisModel, opt) {\n var axis = axisModel.axis;\n var tickModel = axisModel.getModel('axisTick');\n var shown = tickModel.get('show');\n\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisTick');\n }\n\n if (!shown || axis.scale.isBlank()) {\n return;\n }\n\n var lineStyleModel = tickModel.getModel('lineStyle');\n var tickEndCoord = opt.tickDirection * tickModel.get('length');\n var ticksCoords = axis.getTicksCoords();\n var ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, defaults(lineStyleModel.getLineStyle(), {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }), 'ticks');\n\n for (var i = 0; i < ticksEls.length; i++) {\n group.add(ticksEls[i]);\n }\n\n return ticksEls;\n}\n\nfunction buildAxisMinorTicks(group, transformGroup, axisModel, tickDirection) {\n var axis = axisModel.axis;\n var minorTickModel = axisModel.getModel('minorTick');\n\n if (!minorTickModel.get('show') || axis.scale.isBlank()) {\n return;\n }\n\n var minorTicksCoords = axis.getMinorTicksCoords();\n\n if (!minorTicksCoords.length) {\n return;\n }\n\n var lineStyleModel = minorTickModel.getModel('lineStyle');\n var tickEndCoord = tickDirection * minorTickModel.get('length');\n var minorTickLineStyle = defaults(lineStyleModel.getLineStyle(), defaults(axisModel.getModel('axisTick').getLineStyle(), {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }));\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n var minorTicksEls = createTicks(minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i);\n\n for (var k = 0; k < minorTicksEls.length; k++) {\n group.add(minorTicksEls[k]);\n }\n }\n}\n\nfunction buildAxisLabel(group, transformGroup, axisModel, opt) {\n var axis = axisModel.axis;\n var show = retrieve(opt.axisLabelShow, axisModel.get(['axisLabel', 'show']));\n\n if (!show || axis.scale.isBlank()) {\n return;\n }\n\n var labelModel = axisModel.getModel('axisLabel');\n var labelMargin = labelModel.get('margin');\n var labels = axis.getViewLabels(); // Special label rotate.\n\n var labelRotation = (retrieve(opt.labelRotate, labelModel.get('rotate')) || 0) * PI / 180;\n var labelLayout = AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);\n var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);\n var labelEls = [];\n var silent = AxisBuilder.isLabelSilent(axisModel);\n var triggerEvent = axisModel.get('triggerEvent');\n each(labels, function (labelItem, index) {\n var tickValue = axis.scale.type === 'ordinal' ? axis.scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;\n var formattedLabel = labelItem.formattedLabel;\n var rawLabel = labelItem.rawLabel;\n var itemLabelModel = labelModel;\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n var rawCategoryItem = rawCategoryData[tickValue];\n\n if (isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n itemLabelModel = new Model(rawCategoryItem.textStyle, labelModel, axisModel.ecModel);\n }\n }\n\n var textColor = itemLabelModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']);\n var tickCoord = axis.dataToCoord(tickValue);\n var textEl = new graphic.Text({\n x: tickCoord,\n y: opt.labelOffset + opt.labelDirection * labelMargin,\n rotation: labelLayout.rotation,\n silent: silent,\n z2: 10,\n style: createTextStyle(itemLabelModel, {\n text: formattedLabel,\n align: itemLabelModel.getShallow('align', true) || labelLayout.textAlign,\n verticalAlign: itemLabelModel.getShallow('verticalAlign', true) || itemLabelModel.getShallow('baseline', true) || labelLayout.textVerticalAlign,\n fill: typeof textColor === 'function' ? textColor( // (1) In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n // (2) Compatible with previous version, which always use formatted label as\n // input. But in interval scale the formatted label is like '223,445', which\n // maked user repalce ','. So we modify it to return original val but remain\n // it as 'string' to avoid error in replacing.\n axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor\n })\n });\n textEl.anid = 'label_' + tickValue; // Pack data for mouse event\n\n if (triggerEvent) {\n var eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = rawLabel;\n getECData(textEl).eventData = eventData;\n } // FIXME\n\n\n transformGroup.add(textEl);\n textEl.updateTransform();\n labelEls.push(textEl);\n group.add(textEl);\n textEl.decomposeTransform();\n });\n return labelEls;\n}\n\nexport default AxisBuilder;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Model from '../../model/Model';\nimport { each, curry, clone, defaults, isArray, indexOf } from 'zrender/lib/core/util'; // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n// allAxesInfo should be updated when setOption performed.\n\nexport function collect(ecModel, api) {\n var result = {\n /**\n * key: makeKey(axis.model)\n * value: {\n * axis,\n * coordSys,\n * axisPointerModel,\n * triggerTooltip,\n * involveSeries,\n * snap,\n * seriesModels,\n * seriesDataCount\n * }\n */\n axesInfo: {},\n seriesInvolved: false,\n\n /**\n * key: makeKey(coordSys.model)\n * value: Object: key makeKey(axis.model), value: axisInfo\n */\n coordSysAxesInfo: {},\n coordSysMap: {}\n };\n collectAxesInfo(result, ecModel, api); // Check seriesInvolved for performance, in case too many series in some chart.\n\n result.seriesInvolved && collectSeriesInfo(result, ecModel);\n return result;\n}\n\nfunction collectAxesInfo(result, ecModel, api) {\n var globalTooltipModel = ecModel.getComponent('tooltip');\n var globalAxisPointerModel = ecModel.getComponent('axisPointer'); // links can only be set on global.\n\n var linksOption = globalAxisPointerModel.get('link', true) || [];\n var linkGroups = []; // Collect axes info.\n\n each(api.getCoordinateSystems(), function (coordSys) {\n // Some coordinate system do not support axes, like geo.\n if (!coordSys.axisPointerEnabled) {\n return;\n }\n\n var coordSysKey = makeKey(coordSys.model);\n var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {};\n result.coordSysMap[coordSysKey] = coordSys; // Set tooltip (like 'cross') is a convienent way to show axisPointer\n // for user. So we enable seting tooltip on coordSys model.\n\n var coordSysModel = coordSys.model;\n var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);\n each(coordSys.getAxes(), curry(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys.\n // Notice this case: coordSys is `grid` but not `cartesian2D` here.\n\n if (coordSys.getTooltipAxes && globalTooltipModel // If tooltip.showContent is set as false, tooltip will not\n // show but axisPointer will show as normal.\n && baseTooltipModel.get('show')) {\n // Compatible with previous logic. But series.tooltip.trigger: 'axis'\n // or series.data[n].tooltip.trigger: 'axis' are not support any more.\n var triggerAxis = baseTooltipModel.get('trigger') === 'axis';\n var cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross';\n var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));\n\n if (triggerAxis || cross) {\n each(tooltipAxes.baseAxes, curry(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis));\n }\n\n if (cross) {\n each(tooltipAxes.otherAxes, curry(saveTooltipAxisInfo, 'cross', false));\n }\n } // fromTooltip: true | false | 'cross'\n // triggerTooltip: true | false | null\n\n\n function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) {\n var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel);\n var axisPointerShow = axisPointerModel.get('show');\n\n if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerModel)) {\n return;\n }\n\n if (triggerTooltip == null) {\n triggerTooltip = axisPointerModel.get('triggerTooltip');\n }\n\n axisPointerModel = fromTooltip ? makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) : axisPointerModel;\n var snap = axisPointerModel.get('snap');\n var axisKey = makeKey(axis.model);\n var involveSeries = triggerTooltip || snap || axis.type === 'category'; // If result.axesInfo[key] exist, override it (tooltip has higher priority).\n\n var axisInfo = result.axesInfo[axisKey] = {\n key: axisKey,\n axis: axis,\n coordSys: coordSys,\n axisPointerModel: axisPointerModel,\n triggerTooltip: triggerTooltip,\n involveSeries: involveSeries,\n snap: snap,\n useHandle: isHandleTrigger(axisPointerModel),\n seriesModels: [],\n linkGroup: null\n };\n axesInfoInCoordSys[axisKey] = axisInfo;\n result.seriesInvolved = result.seriesInvolved || involveSeries;\n var groupIndex = getLinkGroupIndex(linksOption, axis);\n\n if (groupIndex != null) {\n var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = {\n axesInfo: {}\n });\n linkGroup.axesInfo[axisKey] = axisInfo;\n linkGroup.mapper = linksOption[groupIndex].mapper;\n axisInfo.linkGroup = linkGroup;\n }\n }\n });\n}\n\nfunction makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) {\n var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');\n var fields = ['type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'];\n var volatileOption = {};\n each(fields, function (field) {\n volatileOption[field] = clone(tooltipAxisPointerModel.get(field));\n }); // category axis do not auto snap, otherwise some tick that do not\n // has value can not be hovered. value/time/log axis default snap if\n // triggered from tooltip and trigger tooltip.\n\n volatileOption.snap = axis.type !== 'category' && !!triggerTooltip; // Compatibel with previous behavior, tooltip axis do not show label by default.\n // Only these properties can be overrided from tooltip to axisPointer.\n\n if (tooltipAxisPointerModel.get('type') === 'cross') {\n volatileOption.type = 'line';\n }\n\n var labelOption = volatileOption.label || (volatileOption.label = {}); // Follow the convention, do not show label when triggered by tooltip by default.\n\n labelOption.show == null && (labelOption.show = false);\n\n if (fromTooltip === 'cross') {\n // When 'cross', both axes show labels.\n var tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']);\n labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true; // If triggerTooltip, this is a base axis, which should better not use cross style\n // (cross style is dashed by default)\n\n if (!triggerTooltip) {\n var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');\n crossStyle && defaults(labelOption, crossStyle.textStyle);\n }\n }\n\n return axis.model.getModel('axisPointer', new Model(volatileOption, globalAxisPointerModel, ecModel));\n}\n\nfunction collectSeriesInfo(result, ecModel) {\n // Prepare data for axis trigger\n ecModel.eachSeries(function (seriesModel) {\n // Notice this case: this coordSys is `cartesian2D` but not `grid`.\n var coordSys = seriesModel.coordinateSystem;\n var seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true);\n var seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true);\n\n if (!coordSys || seriesTooltipTrigger === 'none' || seriesTooltipTrigger === false || seriesTooltipTrigger === 'item' || seriesTooltipShow === false || seriesModel.get(['axisPointer', 'show'], true) === false) {\n return;\n }\n\n each(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {\n var axis = axisInfo.axis;\n\n if (coordSys.getAxis(axis.dim) === axis) {\n axisInfo.seriesModels.push(seriesModel);\n axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);\n axisInfo.seriesDataCount += seriesModel.getData().count();\n }\n });\n });\n}\n/**\n * For example:\n * {\n * axisPointer: {\n * links: [{\n * xAxisIndex: [2, 4],\n * yAxisIndex: 'all'\n * }, {\n * xAxisId: ['a5', 'a7'],\n * xAxisName: 'xxx'\n * }]\n * }\n * }\n */\n\n\nfunction getLinkGroupIndex(linksOption, axis) {\n var axisModel = axis.model;\n var dim = axis.dim;\n\n for (var i = 0; i < linksOption.length; i++) {\n var linkOption = linksOption[i] || {};\n\n if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id) || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex) || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name)) {\n return i;\n }\n }\n}\n\nfunction checkPropInLink(linkPropValue, axisPropValue) {\n return linkPropValue === 'all' || isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0 || linkPropValue === axisPropValue;\n}\n\nexport function fixValue(axisModel) {\n var axisInfo = getAxisInfo(axisModel);\n\n if (!axisInfo) {\n return;\n }\n\n var axisPointerModel = axisInfo.axisPointerModel;\n var scale = axisInfo.axis.scale;\n var option = axisPointerModel.option;\n var status = axisPointerModel.get('status');\n var value = axisPointerModel.get('value'); // Parse init value for category and time axis.\n\n if (value != null) {\n value = scale.parse(value);\n }\n\n var useHandle = isHandleTrigger(axisPointerModel); // If `handle` used, `axisPointer` will always be displayed, so value\n // and status should be initialized.\n\n if (status == null) {\n option.status = useHandle ? 'show' : 'hide';\n }\n\n var extent = scale.getExtent().slice();\n extent[0] > extent[1] && extent.reverse();\n\n if ( // Pick a value on axis when initializing.\n value == null // If both `handle` and `dataZoom` are used, value may be out of axis extent,\n // where we should re-pick a value to keep `handle` displaying normally.\n || value > extent[1]) {\n // Make handle displayed on the end of the axis when init, which looks better.\n value = extent[1];\n }\n\n if (value < extent[0]) {\n value = extent[0];\n }\n\n option.value = value;\n\n if (useHandle) {\n option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';\n }\n}\nexport function getAxisInfo(axisModel) {\n var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo;\n return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];\n}\nexport function getAxisPointerModel(axisModel) {\n var axisInfo = getAxisInfo(axisModel);\n return axisInfo && axisInfo.axisPointerModel;\n}\n\nfunction isHandleTrigger(axisPointerModel) {\n return !!axisPointerModel.get(['handle', 'show']);\n}\n/**\n * @param {module:echarts/model/Model} model\n * @return {string} unique key\n */\n\n\nexport function makeKey(model) {\n return model.type + '||' + model.id;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as axisPointerModelHelper from '../axisPointer/modelHelper';\nimport ComponentView from '../../view/Component';\nvar axisPointerClazz = {};\n/**\n * Base class of AxisView.\n */\n\nvar AxisView =\n/** @class */\nfunction (_super) {\n __extends(AxisView, _super);\n\n function AxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisView.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n AxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n // FIXME\n // This process should proformed after coordinate systems updated\n // (axis scale updated), and should be performed each time update.\n // So put it here temporarily, although it is not appropriate to\n // put a model-writing procedure in `view`.\n this.axisPointerClass && axisPointerModelHelper.fixValue(axisModel);\n\n _super.prototype.render.apply(this, arguments);\n\n this._doUpdateAxisPointerClass(axisModel, api, true);\n };\n /**\n * Action handler.\n */\n\n\n AxisView.prototype.updateAxisPointer = function (axisModel, ecModel, api, payload) {\n this._doUpdateAxisPointerClass(axisModel, api, false);\n };\n /**\n * @override\n */\n\n\n AxisView.prototype.remove = function (ecModel, api) {\n var axisPointer = this._axisPointer;\n axisPointer && axisPointer.remove(api);\n };\n /**\n * @override\n */\n\n\n AxisView.prototype.dispose = function (ecModel, api) {\n this._disposeAxisPointer(api);\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n AxisView.prototype._doUpdateAxisPointerClass = function (axisModel, api, forceRender) {\n var Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);\n\n if (!Clazz) {\n return;\n }\n\n var axisPointerModel = axisPointerModelHelper.getAxisPointerModel(axisModel);\n axisPointerModel ? (this._axisPointer || (this._axisPointer = new Clazz())).render(axisModel, axisPointerModel, api, forceRender) : this._disposeAxisPointer(api);\n };\n\n AxisView.prototype._disposeAxisPointer = function (api) {\n this._axisPointer && this._axisPointer.dispose(api);\n this._axisPointer = null;\n };\n\n AxisView.registerAxisPointerClass = function (type, clazz) {\n if (process.env.NODE_ENV !== 'production') {\n if (axisPointerClazz[type]) {\n throw new Error('axisPointer ' + type + ' exists');\n }\n }\n\n axisPointerClazz[type] = clazz;\n };\n\n ;\n\n AxisView.getAxisPointerClass = function (type) {\n return type && axisPointerClazz[type];\n };\n\n ;\n AxisView.type = 'axis';\n return AxisView;\n}(ComponentView);\n\nexport default AxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nexport function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n } // TODO: TYPE\n\n\n var splitAreaModel = axisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var gridRect = gridModel.coordinateSystem.getRect();\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitAreaModel,\n clamp: true\n });\n\n if (!ticksCoords.length) {\n return;\n } // For Making appropriate splitArea animation, the color and anid\n // should be corresponding to previous one if possible.\n\n\n var areaColorsLen = areaColors.length;\n var lastSplitAreaColors = inner(axisView).splitAreaColors;\n var newSplitAreaColors = zrUtil.createHashMap();\n var colorIndex = 0;\n\n if (lastSplitAreaColors) {\n for (var i = 0; i < ticksCoords.length; i++) {\n var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue);\n\n if (cIndex != null) {\n colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen;\n break;\n }\n }\n }\n\n var prev = axis.toGlobalCoord(ticksCoords[0].coord);\n var areaStyle = areaStyleModel.getAreaStyle();\n areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors];\n\n for (var i = 1; i < ticksCoords.length; i++) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n var x = void 0;\n var y = void 0;\n var width = void 0;\n var height = void 0;\n\n if (axis.isHorizontal()) {\n x = prev;\n y = gridRect.y;\n width = tickCoord - x;\n height = gridRect.height;\n prev = x + width;\n } else {\n x = gridRect.x;\n y = prev;\n width = gridRect.width;\n height = tickCoord - y;\n prev = y + height;\n }\n\n var tickValue = ticksCoords[i - 1].tickValue;\n tickValue != null && newSplitAreaColors.set(tickValue, colorIndex);\n axisGroup.add(new graphic.Rect({\n anid: tickValue != null ? 'area_' + tickValue : null,\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n style: zrUtil.defaults({\n fill: areaColors[colorIndex]\n }, areaStyle),\n autoBatch: true,\n silent: true\n }));\n colorIndex = (colorIndex + 1) % areaColorsLen;\n }\n\n inner(axisView).splitAreaColors = newSplitAreaColors;\n}\nexport function rectCoordAxisHandleRemove(axisView) {\n inner(axisView).splitAreaColors = null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport { rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove } from './axisSplitHelper';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitArea', 'splitLine', 'minorSplitLine'];\n\nvar CartesianAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisView, _super);\n\n function CartesianAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianAxisView.type;\n _this.axisPointerClass = 'CartesianAxisPointer';\n return _this;\n }\n /**\n * @override\n */\n\n\n CartesianAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n this.group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n var gridModel = axisModel.getCoordSysModel();\n var layout = cartesianAxisHelper.layout(gridModel, axisModel);\n var axisBuilder = new AxisBuilder(axisModel, zrUtil.extend({\n handleAutoShown: function (elementType) {\n var cartesians = gridModel.coordinateSystem.getCartesians();\n\n for (var i = 0; i < cartesians.length; i++) {\n var otherAxisType = cartesians[i].getOtherAxis(axisModel.axis).type;\n\n if (otherAxisType === 'value' || otherAxisType === 'log') {\n // Still show axis tick or axisLine if other axis is value / log\n return true;\n }\n } // Not show axisTick or axisLine if other axis is category / time\n\n\n return false;\n }\n }, layout));\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);\n }\n }, this);\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n _super.prototype.render.call(this, axisModel, ecModel, api, payload);\n };\n\n CartesianAxisView.prototype.remove = function () {\n rectCoordAxisHandleRemove(this);\n };\n\n CartesianAxisView.type = 'cartesianAxis';\n return CartesianAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n var splitLineModel = axisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n lineColors = zrUtil.isArray(lineColors) ? lineColors : [lineColors];\n var gridRect = gridModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var lineCount = 0;\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n var p1 = [];\n var p2 = [];\n var lineStyle = lineStyleModel.getLineStyle();\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n var colorIndex = lineCount++ % lineColors.length;\n var tickValue = ticksCoords[i].tickValue;\n axisGroup.add(new graphic.Line({\n anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: zrUtil.defaults({\n stroke: lineColors[colorIndex]\n }, lineStyle),\n silent: true\n }));\n }\n },\n minorSplitLine: function (axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n var minorSplitLineModel = axisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var gridRect = gridModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var minorTicksCoords = axis.getMinorTicksCoords();\n\n if (!minorTicksCoords.length) {\n return;\n }\n\n var p1 = [];\n var p2 = [];\n var lineStyle = lineStyleModel.getLineStyle();\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n for (var k = 0; k < minorTicksCoords[i].length; k++) {\n var tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n axisGroup.add(new graphic.Line({\n anid: 'minor_line_' + minorTicksCoords[i][k].tickValue,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: lineStyle,\n silent: true\n }));\n }\n }\n },\n splitArea: function (axisView, axisGroup, axisModel, gridModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel);\n }\n};\n\nvar CartesianXAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianXAxisView, _super);\n\n function CartesianXAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianXAxisView.type;\n return _this;\n }\n\n CartesianXAxisView.type = 'xAxis';\n return CartesianXAxisView;\n}(CartesianAxisView);\n\nexport { CartesianXAxisView };\n\nvar CartesianYAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianYAxisView, _super);\n\n function CartesianYAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianXAxisView.type;\n return _this;\n }\n\n CartesianYAxisView.type = 'yAxis';\n return CartesianYAxisView;\n}(CartesianAxisView);\n\nexport { CartesianYAxisView };\nexport default CartesianAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport { Rect } from '../../util/graphic';\nimport { defaults } from 'zrender/lib/core/util';\nimport { CartesianAxisModel } from '../../coord/cartesian/AxisModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport Grid from '../../coord/cartesian/Grid';\nimport { CartesianXAxisView, CartesianYAxisView } from '../axis/CartesianAxisView'; // Grid view\n\nvar GridView =\n/** @class */\nfunction (_super) {\n __extends(GridView, _super);\n\n function GridView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'grid';\n return _this;\n }\n\n GridView.prototype.render = function (gridModel, ecModel) {\n this.group.removeAll();\n\n if (gridModel.get('show')) {\n this.group.add(new Rect({\n shape: gridModel.coordinateSystem.getRect(),\n style: defaults({\n fill: gridModel.get('backgroundColor')\n }, gridModel.getItemStyle()),\n silent: true,\n z2: -1\n }));\n }\n };\n\n GridView.type = 'grid';\n return GridView;\n}(ComponentView);\n\nvar extraOption = {\n // gridIndex: 0,\n // gridId: '',\n offset: 0\n};\nexport function install(registers) {\n registers.registerComponentView(GridView);\n registers.registerComponentModel(GridModel);\n registers.registerCoordinateSystem('cartesian2d', Grid);\n axisModelCreator(registers, 'x', CartesianAxisModel, extraOption);\n axisModelCreator(registers, 'y', CartesianAxisModel, extraOption);\n registers.registerComponentView(CartesianXAxisView);\n registers.registerComponentView(CartesianYAxisView);\n registers.registerPreprocessor(function (option) {\n // Only create grid when need\n if (option.xAxis && option.yAxis && !option.grid) {\n option.grid = {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport ScatterSeriesModel from './ScatterSeries';\nimport ScatterView from './ScatterView';\nimport { install as installGridSimple } from '../../component/grid/installSimple';\nimport layoutPoints from '../../layout/points';\nexport function install(registers) {\n // In case developer forget to include grid component\n use(installGridSimple);\n registers.registerSeriesModel(ScatterSeriesModel);\n registers.registerChartView(ScatterView);\n registers.registerLayout(layoutPoints('scatter'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function radarLayout(ecModel) {\n ecModel.eachSeriesByType('radar', function (seriesModel) {\n var data = seriesModel.getData();\n var points = [];\n var coordSys = seriesModel.coordinateSystem;\n\n if (!coordSys) {\n return;\n }\n\n var axes = coordSys.getIndicatorAxes();\n zrUtil.each(axes, function (axis, axisIndex) {\n data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {\n points[dataIndex] = points[dataIndex] || [];\n var point = coordSys.dataToPoint(val, axisIndex);\n points[dataIndex][axisIndex] = isValidPoint(point) ? point : getValueMissingPoint(coordSys);\n });\n }); // Close polygon\n\n data.each(function (idx) {\n // TODO\n // Is it appropriate to connect to the next data when some data is missing?\n // Or, should trade it like `connectNull` in line chart?\n var firstPoint = zrUtil.find(points[idx], function (point) {\n return isValidPoint(point);\n }) || getValueMissingPoint(coordSys); // Copy the first actual point to the end of the array\n\n points[idx].push(firstPoint.slice());\n data.setItemLayout(idx, points[idx]);\n });\n });\n}\n\nfunction isValidPoint(point) {\n return !isNaN(point[0]) && !isNaN(point[1]);\n}\n\nfunction getValueMissingPoint(coordSys) {\n // It is error-prone to input [NaN, NaN] into polygon, polygon.\n // (probably cause problem when refreshing or animating)\n return [coordSys.cx, coordSys.cy];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\n// Backward compat for radar chart in 2\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function radarBackwardCompat(option) {\n var polarOptArr = option.polar;\n\n if (polarOptArr) {\n if (!zrUtil.isArray(polarOptArr)) {\n polarOptArr = [polarOptArr];\n }\n\n var polarNotRadar_1 = [];\n zrUtil.each(polarOptArr, function (polarOpt, idx) {\n if (polarOpt.indicator) {\n if (polarOpt.type && !polarOpt.shape) {\n polarOpt.shape = polarOpt.type;\n }\n\n option.radar = option.radar || [];\n\n if (!zrUtil.isArray(option.radar)) {\n option.radar = [option.radar];\n }\n\n option.radar.push(polarOpt);\n } else {\n polarNotRadar_1.push(polarOpt);\n }\n });\n option.polar = polarNotRadar_1;\n }\n\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {\n seriesOpt.radarIndex = seriesOpt.polarIndex;\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as symbolUtil from '../../util/symbol';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\n\nfunction normalizeSymbolSize(symbolSize) {\n if (!zrUtil.isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n\n return symbolSize;\n}\n\nvar RadarView =\n/** @class */\nfunction (_super) {\n __extends(RadarView, _super);\n\n function RadarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarView.type;\n return _this;\n }\n\n RadarView.prototype.render = function (seriesModel, ecModel, api) {\n var polar = seriesModel.coordinateSystem;\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n\n function createSymbol(data, idx) {\n var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n\n if (symbolType === 'none') {\n return;\n }\n\n var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n var symbolPath = symbolUtil.createSymbol(symbolType, -1, -1, 2, 2);\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;\n symbolPath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 100,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2,\n rotation: symbolRotate * Math.PI / 180 || 0\n });\n return symbolPath;\n }\n\n function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) {\n // Simply rerender all\n symbolGroup.removeAll();\n\n for (var i = 0; i < newPoints.length - 1; i++) {\n var symbolPath = createSymbol(data, idx);\n\n if (symbolPath) {\n symbolPath.__dimIdx = i;\n\n if (oldPoints[i]) {\n symbolPath.setPosition(oldPoints[i]);\n graphic[isInit ? 'initProps' : 'updateProps'](symbolPath, {\n x: newPoints[i][0],\n y: newPoints[i][1]\n }, seriesModel, idx);\n } else {\n symbolPath.setPosition(newPoints[i]);\n }\n\n symbolGroup.add(symbolPath);\n }\n }\n }\n\n function getInitialPoints(points) {\n return zrUtil.map(points, function (pt) {\n return [polar.cx, polar.cy];\n });\n }\n\n data.diff(oldData).add(function (idx) {\n var points = data.getItemLayout(idx);\n\n if (!points) {\n return;\n }\n\n var polygon = new graphic.Polygon();\n var polyline = new graphic.Polyline();\n var target = {\n shape: {\n points: points\n }\n };\n polygon.shape.points = getInitialPoints(points);\n polyline.shape.points = getInitialPoints(points);\n graphic.initProps(polygon, target, seriesModel, idx);\n graphic.initProps(polyline, target, seriesModel, idx);\n var itemGroup = new graphic.Group();\n var symbolGroup = new graphic.Group();\n itemGroup.add(polyline);\n itemGroup.add(polygon);\n itemGroup.add(symbolGroup);\n updateSymbols(polyline.shape.points, points, symbolGroup, data, idx, true);\n data.setItemGraphicEl(idx, itemGroup);\n }).update(function (newIdx, oldIdx) {\n var itemGroup = oldData.getItemGraphicEl(oldIdx);\n var polyline = itemGroup.childAt(0);\n var polygon = itemGroup.childAt(1);\n var symbolGroup = itemGroup.childAt(2);\n var target = {\n shape: {\n points: data.getItemLayout(newIdx)\n }\n };\n\n if (!target.shape.points) {\n return;\n }\n\n updateSymbols(polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false);\n graphic.updateProps(polyline, target, seriesModel);\n graphic.updateProps(polygon, target, seriesModel);\n data.setItemGraphicEl(newIdx, itemGroup);\n }).remove(function (idx) {\n group.remove(oldData.getItemGraphicEl(idx));\n }).execute();\n data.eachItemGraphicEl(function (itemGroup, idx) {\n var itemModel = data.getItemModel(idx);\n var polyline = itemGroup.childAt(0);\n var polygon = itemGroup.childAt(1);\n var symbolGroup = itemGroup.childAt(2); // Radar uses the visual encoded from itemStyle.\n\n var itemStyle = data.getItemVisual(idx, 'style');\n var color = itemStyle.fill;\n group.add(itemGroup);\n polyline.useStyle(zrUtil.defaults(itemModel.getModel('lineStyle').getLineStyle(), {\n fill: 'none',\n stroke: color\n }));\n setStatesStylesFromModel(polyline, itemModel, 'lineStyle');\n setStatesStylesFromModel(polygon, itemModel, 'areaStyle');\n var areaStyleModel = itemModel.getModel('areaStyle');\n var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();\n polygon.ignore = polygonIgnore;\n zrUtil.each(['emphasis', 'select', 'blur'], function (stateName) {\n var stateModel = itemModel.getModel([stateName, 'areaStyle']);\n var stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty(); // Won't be ignore if normal state is not ignore.\n\n polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore;\n });\n polygon.useStyle(zrUtil.defaults(areaStyleModel.getAreaStyle(), {\n fill: color,\n opacity: 0.7,\n decal: itemStyle.decal\n }));\n var emphasisModel = itemModel.getModel('emphasis');\n var itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n symbolGroup.eachChild(function (symbolPath) {\n if (symbolPath instanceof ZRImage) {\n var pathStyle = symbolPath.style;\n symbolPath.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, itemStyle));\n } else {\n symbolPath.useStyle(itemStyle);\n symbolPath.setColor(color);\n }\n\n var pathEmphasisState = symbolPath.ensureState('emphasis');\n pathEmphasisState.style = zrUtil.clone(itemHoverStyle);\n var defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx);\n (defaultText == null || isNaN(defaultText)) && (defaultText = '');\n setLabelStyle(symbolPath, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n labelDimIndex: symbolPath.__dimIdx,\n defaultText: defaultText,\n inheritColor: color,\n defaultOpacity: itemStyle.opacity\n });\n });\n enableHoverEmphasis(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n });\n this._data = data;\n };\n\n RadarView.prototype.remove = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n RadarView.type = 'radar';\n return RadarView;\n}(ChartView);\n\nexport default RadarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport { createTooltipMarkup, retrieveVisualColorForTooltipMarker } from '../../component/tooltip/tooltipMarkup';\n\nvar RadarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(RadarSeriesModel, _super);\n\n function RadarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarSeriesModel.type;\n _this.useColorPaletteOnData = true;\n _this.hasSymbolVisual = true;\n return _this;\n } // Overwrite\n\n\n RadarSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n };\n\n RadarSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, {\n generateCoord: 'indicator_',\n generateCoordCount: Infinity\n });\n };\n\n RadarSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var coordSys = this.coordinateSystem;\n var indicatorAxes = coordSys.getIndicatorAxes();\n var name = this.getData().getName(dataIndex);\n var nameToDisplay = name === '' ? this.name : name;\n var markerColor = retrieveVisualColorForTooltipMarker(this, dataIndex);\n return createTooltipMarkup('section', {\n header: nameToDisplay,\n sortBlocks: true,\n blocks: zrUtil.map(indicatorAxes, function (axis) {\n var val = data.get(data.mapDimension(axis.dim), dataIndex);\n return createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: markerColor,\n name: axis.name,\n value: val,\n sortParam: val\n });\n })\n });\n };\n\n RadarSeriesModel.prototype.getTooltipPosition = function (dataIndex) {\n if (dataIndex != null) {\n var data_1 = this.getData();\n var coordSys = this.coordinateSystem;\n var values = data_1.getValues(zrUtil.map(coordSys.dimensions, function (dim) {\n return data_1.mapDimension(dim);\n }), dataIndex);\n\n for (var i = 0, len = values.length; i < len; i++) {\n if (!isNaN(values[i])) {\n var indicatorAxes = coordSys.getIndicatorAxes();\n return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i);\n }\n }\n }\n };\n\n RadarSeriesModel.type = 'series.radar';\n RadarSeriesModel.dependencies = ['radar'];\n RadarSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'radar',\n legendHoverLink: true,\n radarIndex: 0,\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n label: {\n position: 'top'\n },\n // areaStyle: {\n // },\n // itemStyle: {}\n symbolSize: 8 // symbolRotate: null\n\n };\n return RadarSeriesModel;\n}(SeriesModel);\n\nexport default RadarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport axisDefault from '../axisDefault';\nimport Model from '../../model/Model';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport ComponentModel from '../../model/Component';\nvar valueAxisDefault = axisDefault.value;\n\nfunction defaultsShow(opt, show) {\n return zrUtil.defaults({\n show: show\n }, opt);\n}\n\nvar RadarModel =\n/** @class */\nfunction (_super) {\n __extends(RadarModel, _super);\n\n function RadarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarModel.type;\n return _this;\n }\n\n RadarModel.prototype.optionUpdated = function () {\n var boundaryGap = this.get('boundaryGap');\n var splitNumber = this.get('splitNumber');\n var scale = this.get('scale');\n var axisLine = this.get('axisLine');\n var axisTick = this.get('axisTick'); // let axisType = this.get('axisType');\n\n var axisLabel = this.get('axisLabel');\n var nameTextStyle = this.get('axisName');\n var showName = this.get(['axisName', 'show']);\n var nameFormatter = this.get(['axisName', 'formatter']);\n var nameGap = this.get('axisNameGap');\n var triggerEvent = this.get('triggerEvent');\n var indicatorModels = zrUtil.map(this.get('indicator') || [], function (indicatorOpt) {\n // PENDING\n if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {\n indicatorOpt.min = 0;\n } else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {\n indicatorOpt.max = 0;\n }\n\n var iNameTextStyle = nameTextStyle;\n\n if (indicatorOpt.color != null) {\n iNameTextStyle = zrUtil.defaults({\n color: indicatorOpt.color\n }, nameTextStyle);\n } // Use same configuration\n\n\n var innerIndicatorOpt = zrUtil.merge(zrUtil.clone(indicatorOpt), {\n boundaryGap: boundaryGap,\n splitNumber: splitNumber,\n scale: scale,\n axisLine: axisLine,\n axisTick: axisTick,\n // axisType: axisType,\n axisLabel: axisLabel,\n // Compatible with 2 and use text\n name: indicatorOpt.text,\n nameLocation: 'end',\n nameGap: nameGap,\n // min: 0,\n nameTextStyle: iNameTextStyle,\n triggerEvent: triggerEvent\n }, false);\n\n if (!showName) {\n innerIndicatorOpt.name = '';\n }\n\n if (typeof nameFormatter === 'string') {\n var indName = innerIndicatorOpt.name;\n innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');\n } else if (typeof nameFormatter === 'function') {\n innerIndicatorOpt.name = nameFormatter(innerIndicatorOpt.name, innerIndicatorOpt);\n }\n\n var model = new Model(innerIndicatorOpt, null, this.ecModel);\n zrUtil.mixin(model, AxisModelCommonMixin.prototype); // For triggerEvent.\n\n model.mainType = 'radar';\n model.componentIndex = this.componentIndex;\n return model;\n }, this);\n this._indicatorModels = indicatorModels;\n };\n\n RadarModel.prototype.getIndicatorModels = function () {\n return this._indicatorModels;\n };\n\n RadarModel.type = 'radar';\n RadarModel.defaultOption = {\n zlevel: 0,\n z: 0,\n center: ['50%', '50%'],\n radius: '75%',\n startAngle: 90,\n axisName: {\n show: true // formatter: null\n // textStyle: {}\n\n },\n boundaryGap: [0, 0],\n splitNumber: 5,\n axisNameGap: 15,\n scale: false,\n // Polygon or circle\n shape: 'polygon',\n axisLine: zrUtil.merge({\n lineStyle: {\n color: '#bbb'\n }\n }, valueAxisDefault.axisLine),\n axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),\n axisTick: defaultsShow(valueAxisDefault.axisTick, false),\n // axisType: 'value',\n splitLine: defaultsShow(valueAxisDefault.splitLine, true),\n splitArea: defaultsShow(valueAxisDefault.splitArea, true),\n // {text, min, max}\n indicator: []\n };\n return RadarModel;\n}(ComponentModel);\n\nexport default RadarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\n\nvar RadarView =\n/** @class */\nfunction (_super) {\n __extends(RadarView, _super);\n\n function RadarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarView.type;\n return _this;\n }\n\n RadarView.prototype.render = function (radarModel, ecModel, api) {\n var group = this.group;\n group.removeAll();\n\n this._buildAxes(radarModel);\n\n this._buildSplitLineAndArea(radarModel);\n };\n\n RadarView.prototype._buildAxes = function (radarModel) {\n var radar = radarModel.coordinateSystem;\n var indicatorAxes = radar.getIndicatorAxes();\n var axisBuilders = zrUtil.map(indicatorAxes, function (indicatorAxis) {\n var axisBuilder = new AxisBuilder(indicatorAxis.model, {\n position: [radar.cx, radar.cy],\n rotation: indicatorAxis.angle,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1\n });\n return axisBuilder;\n });\n zrUtil.each(axisBuilders, function (axisBuilder) {\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n this.group.add(axisBuilder.getGroup());\n }, this);\n };\n\n RadarView.prototype._buildSplitLineAndArea = function (radarModel) {\n var radar = radarModel.coordinateSystem;\n var indicatorAxes = radar.getIndicatorAxes();\n\n if (!indicatorAxes.length) {\n return;\n }\n\n var shape = radarModel.get('shape');\n var splitLineModel = radarModel.getModel('splitLine');\n var splitAreaModel = radarModel.getModel('splitArea');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var showSplitLine = splitLineModel.get('show');\n var showSplitArea = splitAreaModel.get('show');\n var splitLineColors = lineStyleModel.get('color');\n var splitAreaColors = areaStyleModel.get('color');\n var splitLineColorsArr = zrUtil.isArray(splitLineColors) ? splitLineColors : [splitLineColors];\n var splitAreaColorsArr = zrUtil.isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];\n var splitLines = [];\n var splitAreas = [];\n\n function getColorIndex(areaOrLine, areaOrLineColorList, idx) {\n var colorIndex = idx % areaOrLineColorList.length;\n areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];\n return colorIndex;\n }\n\n if (shape === 'circle') {\n var ticksRadius = indicatorAxes[0].getTicksCoords();\n var cx = radar.cx;\n var cy = radar.cy;\n\n for (var i = 0; i < ticksRadius.length; i++) {\n if (showSplitLine) {\n var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: cx,\n cy: cy,\n r: ticksRadius[i].coord\n }\n }));\n }\n\n if (showSplitArea && i < ticksRadius.length - 1) {\n var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);\n splitAreas[colorIndex].push(new graphic.Ring({\n shape: {\n cx: cx,\n cy: cy,\n r0: ticksRadius[i].coord,\n r: ticksRadius[i + 1].coord\n }\n }));\n }\n }\n } // Polyyon\n else {\n var realSplitNumber_1;\n var axesTicksPoints = zrUtil.map(indicatorAxes, function (indicatorAxis, idx) {\n var ticksCoords = indicatorAxis.getTicksCoords();\n realSplitNumber_1 = realSplitNumber_1 == null ? ticksCoords.length - 1 : Math.min(ticksCoords.length - 1, realSplitNumber_1);\n return zrUtil.map(ticksCoords, function (tickCoord) {\n return radar.coordToPoint(tickCoord.coord, idx);\n });\n });\n var prevPoints = [];\n\n for (var i = 0; i <= realSplitNumber_1; i++) {\n var points = [];\n\n for (var j = 0; j < indicatorAxes.length; j++) {\n points.push(axesTicksPoints[j][i]);\n } // Close\n\n\n if (points[0]) {\n points.push(points[0].slice());\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Can\\'t draw value axis ' + i);\n }\n }\n\n if (showSplitLine) {\n var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Polyline({\n shape: {\n points: points\n }\n }));\n }\n\n if (showSplitArea && prevPoints) {\n var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1);\n splitAreas[colorIndex].push(new graphic.Polygon({\n shape: {\n points: points.concat(prevPoints)\n }\n }));\n }\n\n prevPoints = points.slice().reverse();\n }\n }\n\n var lineStyle = lineStyleModel.getLineStyle();\n var areaStyle = areaStyleModel.getAreaStyle(); // Add splitArea before splitLine\n\n zrUtil.each(splitAreas, function (splitAreas, idx) {\n this.group.add(graphic.mergePath(splitAreas, {\n style: zrUtil.defaults({\n stroke: 'none',\n fill: splitAreaColorsArr[idx % splitAreaColorsArr.length]\n }, areaStyle),\n silent: true\n }));\n }, this);\n zrUtil.each(splitLines, function (splitLines, idx) {\n this.group.add(graphic.mergePath(splitLines, {\n style: zrUtil.defaults({\n fill: 'none',\n stroke: splitLineColorsArr[idx % splitLineColorsArr.length]\n }, lineStyle),\n silent: true\n }));\n }, this);\n };\n\n RadarView.type = 'radar';\n return RadarView;\n}(ComponentView);\n\nexport default RadarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar IndicatorAxis =\n/** @class */\nfunction (_super) {\n __extends(IndicatorAxis, _super);\n\n function IndicatorAxis(dim, scale, radiusExtent) {\n var _this = _super.call(this, dim, scale, radiusExtent) || this;\n\n _this.type = 'value';\n _this.angle = 0;\n _this.name = '';\n return _this;\n }\n\n return IndicatorAxis;\n}(Axis);\n\nexport default IndicatorAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO clockwise\nimport IndicatorAxis from './IndicatorAxis';\nimport IntervalScale from '../../scale/Interval';\nimport * as numberUtil from '../../util/number';\nimport { getScaleExtent, niceScaleExtent } from '../axisHelper';\nimport { parseAxisModelMinMax } from '../scaleRawExtentInfo';\nimport { map, each } from 'zrender/lib/core/util';\n\nvar Radar =\n/** @class */\nfunction () {\n function Radar(radarModel, ecModel, api) {\n /**\n *\n * Radar dimensions\n */\n this.dimensions = [];\n this._model = radarModel;\n this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {\n var dim = 'indicator_' + idx;\n var indicatorAxis = new IndicatorAxis(dim, new IntervalScale() // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()\n );\n indicatorAxis.name = indicatorModel.get('name'); // Inject model and axis\n\n indicatorAxis.model = indicatorModel;\n indicatorModel.axis = indicatorAxis;\n this.dimensions.push(dim);\n return indicatorAxis;\n }, this);\n this.resize(radarModel, api);\n }\n\n Radar.prototype.getIndicatorAxes = function () {\n return this._indicatorAxes;\n };\n\n Radar.prototype.dataToPoint = function (value, indicatorIndex) {\n var indicatorAxis = this._indicatorAxes[indicatorIndex];\n return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);\n }; // TODO: API should be coordToPoint([coord, indicatorIndex])\n\n\n Radar.prototype.coordToPoint = function (coord, indicatorIndex) {\n var indicatorAxis = this._indicatorAxes[indicatorIndex];\n var angle = indicatorAxis.angle;\n var x = this.cx + coord * Math.cos(angle);\n var y = this.cy - coord * Math.sin(angle);\n return [x, y];\n };\n\n Radar.prototype.pointToData = function (pt) {\n var dx = pt[0] - this.cx;\n var dy = pt[1] - this.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n var radian = Math.atan2(-dy, dx); // Find the closest angle\n // FIXME index can calculated directly\n\n var minRadianDiff = Infinity;\n var closestAxis;\n var closestAxisIdx = -1;\n\n for (var i = 0; i < this._indicatorAxes.length; i++) {\n var indicatorAxis = this._indicatorAxes[i];\n var diff = Math.abs(radian - indicatorAxis.angle);\n\n if (diff < minRadianDiff) {\n closestAxis = indicatorAxis;\n closestAxisIdx = i;\n minRadianDiff = diff;\n }\n }\n\n return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))];\n };\n\n Radar.prototype.resize = function (radarModel, api) {\n var center = radarModel.get('center');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var viewSize = Math.min(viewWidth, viewHeight) / 2;\n this.cx = numberUtil.parsePercent(center[0], viewWidth);\n this.cy = numberUtil.parsePercent(center[1], viewHeight);\n this.startAngle = radarModel.get('startAngle') * Math.PI / 180; // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`\n\n var radius = radarModel.get('radius');\n\n if (typeof radius === 'string' || typeof radius === 'number') {\n radius = [0, radius];\n }\n\n this.r0 = numberUtil.parsePercent(radius[0], viewSize);\n this.r = numberUtil.parsePercent(radius[1], viewSize);\n each(this._indicatorAxes, function (indicatorAxis, idx) {\n indicatorAxis.setExtent(this.r0, this.r);\n var angle = this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length; // Normalize to [-PI, PI]\n\n angle = Math.atan2(Math.sin(angle), Math.cos(angle));\n indicatorAxis.angle = angle;\n }, this);\n };\n\n Radar.prototype.update = function (ecModel, api) {\n var indicatorAxes = this._indicatorAxes;\n var radarModel = this._model;\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.setExtent(Infinity, -Infinity);\n });\n ecModel.eachSeriesByType('radar', function (radarSeries, idx) {\n if (radarSeries.get('coordinateSystem') !== 'radar' // @ts-ignore\n || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel) {\n return;\n }\n\n var data = radarSeries.getData();\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim));\n });\n }, this);\n var splitNumber = radarModel.get('splitNumber');\n\n function increaseInterval(interval) {\n var exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10)); // Increase interval\n\n var f = interval / exp10;\n\n if (f === 2) {\n f = 5;\n } else {\n // f is 2 or 5\n f *= 2;\n }\n\n return f * exp10;\n } // Force all the axis fixing the maxSplitNumber.\n\n\n each(indicatorAxes, function (indicatorAxis, idx) {\n var rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model).extent;\n niceScaleExtent(indicatorAxis.scale, indicatorAxis.model);\n var axisModel = indicatorAxis.model;\n var scale = indicatorAxis.scale;\n var fixedMin = parseAxisModelMinMax(scale, axisModel.get('min', true));\n var fixedMax = parseAxisModelMinMax(scale, axisModel.get('max', true));\n var interval = scale.getInterval();\n\n if (fixedMin != null && fixedMax != null) {\n // User set min, max, divide to get new interval\n scale.setExtent(+fixedMin, +fixedMax);\n scale.setInterval((fixedMax - fixedMin) / splitNumber);\n } else if (fixedMin != null) {\n var max = void 0; // User set min, expand extent on the other side\n\n do {\n max = fixedMin + interval * splitNumber;\n scale.setExtent(+fixedMin, max); // Interval must been set after extent\n // FIXME\n\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));\n } else if (fixedMax != null) {\n var min = void 0; // User set min, expand extent on the other side\n\n do {\n min = fixedMax - interval * splitNumber;\n scale.setExtent(min, +fixedMax);\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));\n } else {\n var nicedSplitNumber = scale.getTicks().length - 1;\n\n if (nicedSplitNumber > splitNumber) {\n interval = increaseInterval(interval);\n } // TODO\n\n\n var max = Math.ceil(rawExtent[1] / interval) * interval;\n var min = numberUtil.round(max - interval * splitNumber);\n scale.setExtent(min, max);\n scale.setInterval(interval);\n }\n });\n };\n\n Radar.prototype.convertToPixel = function (ecModel, finder, value) {\n console.warn('Not implemented.');\n return null;\n };\n\n Radar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n console.warn('Not implemented.');\n return null;\n };\n\n Radar.prototype.containPoint = function (point) {\n console.warn('Not implemented.');\n return false;\n };\n\n Radar.create = function (ecModel, api) {\n var radarList = [];\n ecModel.eachComponent('radar', function (radarModel) {\n var radar = new Radar(radarModel, ecModel, api);\n radarList.push(radar);\n radarModel.coordinateSystem = radar;\n });\n ecModel.eachSeriesByType('radar', function (radarSeries) {\n if (radarSeries.get('coordinateSystem') === 'radar') {\n // Inject coordinate system\n // @ts-ignore\n radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];\n }\n });\n return radarList;\n };\n /**\n * Radar dimensions is based on the data\n */\n\n\n Radar.dimensions = [];\n return Radar;\n}();\n\nexport default Radar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport RadarModel from '../../coord/radar/RadarModel';\nimport RadarView from './RadarView';\nimport Radar from '../../coord/radar/Radar';\nexport function install(registers) {\n registers.registerCoordinateSystem('radar', Radar);\n registers.registerComponentModel(RadarModel);\n registers.registerComponentView(RadarView);\n registers.registerVisual({\n seriesType: 'radar',\n reset: function (seriesModel) {\n var data = seriesModel.getData(); // itemVisual symbol is for selected data\n\n data.each(function (idx) {\n data.setItemVisual(idx, 'legendIcon', 'roundRect');\n }); // visual is for unselected data\n\n data.setVisual('legendIcon', 'roundRect');\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport radarLayout from '../radar/radarLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport backwardCompat from '../radar/backwardCompat';\nimport RadarView from './RadarView';\nimport RadarSeriesModel from './RadarSeries';\nimport { install as installRadarComponent } from '../../component/radar/install';\nexport function install(registers) {\n use(installRadarComponent);\n registers.registerChartView(RadarView);\n registers.registerSeriesModel(RadarSeriesModel);\n registers.registerLayout(radarLayout);\n registers.registerProcessor(dataFilter('radar'));\n registers.registerPreprocessor(backwardCompat);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as echarts from '../../core/echarts';\nvar ATTR = '\\0_ec_interaction_mutex';\nexport function take(zr, resourceKey, userKey) {\n var store = getStore(zr);\n store[resourceKey] = userKey;\n}\nexport function release(zr, resourceKey, userKey) {\n var store = getStore(zr);\n var uKey = store[resourceKey];\n\n if (uKey === userKey) {\n store[resourceKey] = null;\n }\n}\nexport function isTaken(zr, resourceKey) {\n return !!getStore(zr)[resourceKey];\n}\n\nfunction getStore(zr) {\n return zr[ATTR] || (zr[ATTR] = {});\n}\n/**\n * payload: {\n * type: 'takeGlobalCursor',\n * key: 'dataZoomSelect', or 'brush', or ...,\n * If no userKey, release global cursor.\n * }\n */\n// TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'takeGlobalCursor',\n event: 'globalCursorTaken',\n update: 'update'\n}, function () {});","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Eventful from 'zrender/lib/core/Eventful';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as interactionMutex from './interactionMutex';\nimport { isString, bind, defaults, clone } from 'zrender/lib/core/util';\n\nvar RoamController =\n/** @class */\nfunction (_super) {\n __extends(RoamController, _super);\n\n function RoamController(zr) {\n var _this = _super.call(this) || this;\n\n _this._zr = zr; // Avoid two roamController bind the same handler\n\n var mousedownHandler = bind(_this._mousedownHandler, _this);\n var mousemoveHandler = bind(_this._mousemoveHandler, _this);\n var mouseupHandler = bind(_this._mouseupHandler, _this);\n var mousewheelHandler = bind(_this._mousewheelHandler, _this);\n var pinchHandler = bind(_this._pinchHandler, _this);\n /**\n * Notice: only enable needed types. For example, if 'zoom'\n * is not needed, 'zoom' should not be enabled, otherwise\n * default mousewheel behaviour (scroll page) will be disabled.\n */\n\n _this.enable = function (controlType, opt) {\n // Disable previous first\n this.disable();\n this._opt = defaults(clone(opt) || {}, {\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n // By default, wheel do not trigger move.\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n\n if (controlType == null) {\n controlType = true;\n }\n\n if (controlType === true || controlType === 'move' || controlType === 'pan') {\n zr.on('mousedown', mousedownHandler);\n zr.on('mousemove', mousemoveHandler);\n zr.on('mouseup', mouseupHandler);\n }\n\n if (controlType === true || controlType === 'scale' || controlType === 'zoom') {\n zr.on('mousewheel', mousewheelHandler);\n zr.on('pinch', pinchHandler);\n }\n };\n\n _this.disable = function () {\n zr.off('mousedown', mousedownHandler);\n zr.off('mousemove', mousemoveHandler);\n zr.off('mouseup', mouseupHandler);\n zr.off('mousewheel', mousewheelHandler);\n zr.off('pinch', pinchHandler);\n };\n\n return _this;\n }\n\n RoamController.prototype.isDragging = function () {\n return this._dragging;\n };\n\n RoamController.prototype.isPinching = function () {\n return this._pinching;\n };\n\n RoamController.prototype.setPointerChecker = function (pointerChecker) {\n this.pointerChecker = pointerChecker;\n };\n\n RoamController.prototype.dispose = function () {\n this.disable();\n };\n\n RoamController.prototype._mousedownHandler = function (e) {\n if (eventTool.isMiddleOrRightButtonOnMouseUpDown(e) || e.target && e.target.draggable) {\n return;\n }\n\n var x = e.offsetX;\n var y = e.offsetY; // Only check on mosedown, but not mousemove.\n // Mouse can be out of target when mouse moving.\n\n if (this.pointerChecker && this.pointerChecker(e, x, y)) {\n this._x = x;\n this._y = y;\n this._dragging = true;\n }\n };\n\n RoamController.prototype._mousemoveHandler = function (e) {\n if (!this._dragging || !isAvailableBehavior('moveOnMouseMove', e, this._opt) || e.gestureEvent === 'pinch' || interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n\n var x = e.offsetX;\n var y = e.offsetY;\n var oldX = this._x;\n var oldY = this._y;\n var dx = x - oldX;\n var dy = y - oldY;\n this._x = x;\n this._y = y;\n this._opt.preventDefaultMouseMove && eventTool.stop(e.event);\n trigger(this, 'pan', 'moveOnMouseMove', e, {\n dx: dx,\n dy: dy,\n oldX: oldX,\n oldY: oldY,\n newX: x,\n newY: y,\n isAvailableBehavior: null\n });\n };\n\n RoamController.prototype._mouseupHandler = function (e) {\n if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {\n this._dragging = false;\n }\n };\n\n RoamController.prototype._mousewheelHandler = function (e) {\n var shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt);\n var shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt);\n var wheelDelta = e.wheelDelta;\n var absWheelDeltaDelta = Math.abs(wheelDelta);\n var originX = e.offsetX;\n var originY = e.offsetY; // wheelDelta maybe -0 in chrome mac.\n\n if (wheelDelta === 0 || !shouldZoom && !shouldMove) {\n return;\n } // If both `shouldZoom` and `shouldMove` is true, trigger\n // their event both, and the final behavior is determined\n // by event listener themselves.\n\n\n if (shouldZoom) {\n // Convenience:\n // Mac and VM Windows on Mac: scroll up: zoom out.\n // Windows: scroll up: zoom in.\n // FIXME: Should do more test in different environment.\n // wheelDelta is too complicated in difference nvironment\n // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),\n // although it has been normallized by zrender.\n // wheelDelta of mouse wheel is bigger than touch pad.\n var factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1;\n var scale = wheelDelta > 0 ? factor : 1 / factor;\n checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, {\n scale: scale,\n originX: originX,\n originY: originY,\n isAvailableBehavior: null\n });\n }\n\n if (shouldMove) {\n // FIXME: Should do more test in different environment.\n var absDelta = Math.abs(wheelDelta); // wheelDelta of mouse wheel is bigger than touch pad.\n\n var scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05);\n checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, {\n scrollDelta: scrollDelta,\n originX: originX,\n originY: originY,\n isAvailableBehavior: null\n });\n }\n };\n\n RoamController.prototype._pinchHandler = function (e) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n\n var scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1;\n checkPointerAndTrigger(this, 'zoom', null, e, {\n scale: scale,\n originX: e.pinchX,\n originY: e.pinchY,\n isAvailableBehavior: null\n });\n };\n\n return RoamController;\n}(Eventful);\n\nfunction checkPointerAndTrigger(controller, eventName, behaviorToCheck, e, contollerEvent) {\n if (controller.pointerChecker && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)) {\n // When mouse is out of roamController rect,\n // default befavoius should not be be disabled, otherwise\n // page sliding is disabled, contrary to expectation.\n eventTool.stop(e.event);\n trigger(controller, eventName, behaviorToCheck, e, contollerEvent);\n }\n}\n\nfunction trigger(controller, eventName, behaviorToCheck, e, contollerEvent) {\n // Also provide behavior checker for event listener, for some case that\n // multiple components share one listener.\n contollerEvent.isAvailableBehavior = bind(isAvailableBehavior, null, behaviorToCheck, e);\n controller.trigger(eventName, contollerEvent);\n} // settings: {\n// zoomOnMouseWheel\n// moveOnMouseMove\n// moveOnMouseWheel\n// }\n// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.\n\n\nfunction isAvailableBehavior(behaviorToCheck, e, settings) {\n var setting = settings[behaviorToCheck];\n return !behaviorToCheck || setting && (!isString(setting) || e.event[setting + 'Key']);\n}\n\nexport default RoamController;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnPan(controllerHost, dx, dy) {\n var target = controllerHost.target;\n target.x += dx;\n target.y += dy;\n target.dirty();\n}\n/**\n * For geo and graph.\n */\n\nexport function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) {\n var target = controllerHost.target;\n var zoomLimit = controllerHost.zoomLimit;\n var newZoom = controllerHost.zoom = controllerHost.zoom || 1;\n newZoom *= zoomDelta;\n\n if (zoomLimit) {\n var zoomMin = zoomLimit.min || 0;\n var zoomMax = zoomLimit.max || Infinity;\n newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin);\n }\n\n var zoomScale = newZoom / controllerHost.zoom;\n controllerHost.zoom = newZoom; // Keep the mouse center when scaling\n\n target.x -= (zoomX - target.x) * (zoomScale - 1);\n target.y -= (zoomY - target.y) * (zoomScale - 1);\n target.scaleX *= zoomScale;\n target.scaleY *= zoomScale;\n target.dirty();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar IRRELEVANT_EXCLUDES = {\n 'axisPointer': 1,\n 'tooltip': 1,\n 'brush': 1\n};\n/**\n * Avoid that: mouse click on a elements that is over geo or graph,\n * but roam is triggered.\n */\n\nexport function onIrrelevantElement(e, api, targetCoordSysModel) {\n var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem.\n\n var coordSys = model && model.coordinateSystem;\n return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && coordSys && coordSys.model !== targetCoordSysModel;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport RoamController from './RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enableComponentHighDownFeatures, setDefaultStateProxy } from '../../util/states';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport { getUID } from '../../util/component';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport Displayable from 'zrender/lib/graphic/Displayable';\nimport { makeInner } from '../../util/model';\n/**\n * Only these tags enable use `itemStyle` if they are named in SVG.\n * Other tags like might not suitable for `itemStyle`.\n * They will not be considered to be styled until some requirements come.\n */\n\nvar OPTION_STYLE_ENABLED_TAGS = ['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path'];\nvar OPTION_STYLE_ENABLED_TAG_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS);\nvar STATE_TRIGGER_TAG_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(['g']));\nvar LABEL_HOST_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(['g']));\nvar mapLabelRaw = makeInner();\n\nfunction getFixedItemStyle(model) {\n var itemStyle = model.getItemStyle();\n var areaColor = model.get('areaColor'); // If user want the color not to be changed when hover,\n // they should both set areaColor and color to be null.\n\n if (areaColor != null) {\n itemStyle.fill = areaColor;\n }\n\n return itemStyle;\n}\n\nvar MapDraw =\n/** @class */\nfunction () {\n function MapDraw(api) {\n var group = new graphic.Group();\n this.uid = getUID('ec_map_draw');\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n };\n this.group = group;\n group.add(this._regionsGroup = new graphic.Group());\n group.add(this._svgGroup = new graphic.Group());\n }\n\n MapDraw.prototype.draw = function (mapOrGeoModel, ecModel, api, fromView, payload) {\n var isGeo = mapOrGeoModel.mainType === 'geo'; // Map series has data. GEO model that controlled by map series\n // will be assigned with map data. Other GEO model has no data.\n\n var data = mapOrGeoModel.getData && mapOrGeoModel.getData();\n isGeo && ecModel.eachComponent({\n mainType: 'series',\n subType: 'map'\n }, function (mapSeries) {\n if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {\n data = mapSeries.getData();\n }\n });\n var geo = mapOrGeoModel.coordinateSystem;\n var regionsGroup = this._regionsGroup;\n var group = this.group;\n var transformInfo = geo.getTransformInfo();\n var transformInfoRaw = transformInfo.raw;\n var transformInfoRoam = transformInfo.roam; // No animation when first draw or in action\n\n var isFirstDraw = !regionsGroup.childAt(0) || payload;\n\n if (isFirstDraw) {\n group.x = transformInfoRoam.x;\n group.y = transformInfoRoam.y;\n group.scaleX = transformInfoRoam.scaleX;\n group.scaleY = transformInfoRoam.scaleY;\n group.dirty();\n } else {\n graphic.updateProps(group, transformInfoRoam, mapOrGeoModel);\n }\n\n var isVisualEncodedByVisualMap = data && data.getVisual('visualMeta') && data.getVisual('visualMeta').length > 0;\n var viewBuildCtx = {\n api: api,\n geo: geo,\n mapOrGeoModel: mapOrGeoModel,\n data: data,\n isVisualEncodedByVisualMap: isVisualEncodedByVisualMap,\n isGeo: isGeo,\n transformInfoRaw: transformInfoRaw\n };\n\n if (geo.resourceType === 'geoJSON') {\n this._buildGeoJSON(viewBuildCtx);\n } else if (geo.resourceType === 'geoSVG') {\n this._buildSVG(viewBuildCtx);\n }\n\n this._updateController(mapOrGeoModel, ecModel, api);\n\n this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView);\n };\n\n MapDraw.prototype._buildGeoJSON = function (viewBuildCtx) {\n var regionsGroupByName = this._regionsGroupByName = zrUtil.createHashMap();\n var regionsInfoByName = zrUtil.createHashMap();\n var regionsGroup = this._regionsGroup;\n var transformInfoRaw = viewBuildCtx.transformInfoRaw;\n var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n var data = viewBuildCtx.data;\n\n var transformPoint = function (point) {\n return [point[0] * transformInfoRaw.scaleX + transformInfoRaw.x, point[1] * transformInfoRaw.scaleY + transformInfoRaw.y];\n };\n\n regionsGroup.removeAll(); // Only when the resource is GeoJSON, there is `geo.regions`.\n\n zrUtil.each(viewBuildCtx.geo.regions, function (region) {\n var regionName = region.name; // Consider in GeoJson properties.name may be duplicated, for example,\n // there is multiple region named \"United Kindom\" or \"France\" (so many\n // colonies). And it is not appropriate to merge them in geo, which\n // will make them share the same label and bring trouble in label\n // location calculation.\n\n var regionGroup = regionsGroupByName.get(regionName);\n\n var _a = regionsInfoByName.get(regionName) || {},\n dataIdx = _a.dataIdx,\n regionModel = _a.regionModel;\n\n if (!regionGroup) {\n regionGroup = regionsGroupByName.set(regionName, new graphic.Group());\n regionsGroup.add(regionGroup);\n dataIdx = data ? data.indexOfName(regionName) : null;\n regionModel = viewBuildCtx.isGeo ? mapOrGeoModel.getRegionModel(regionName) : data ? data.getItemModel(dataIdx) : null;\n regionsInfoByName.set(regionName, {\n dataIdx: dataIdx,\n regionModel: regionModel\n });\n }\n\n var compoundPath = new graphic.CompoundPath({\n segmentIgnoreThreshold: 1,\n shape: {\n paths: []\n }\n });\n regionGroup.add(compoundPath);\n zrUtil.each(region.geometries, function (geometry) {\n if (geometry.type !== 'polygon') {\n return;\n }\n\n var points = [];\n\n for (var i = 0; i < geometry.exterior.length; ++i) {\n points.push(transformPoint(geometry.exterior[i]));\n }\n\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n\n for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); ++i) {\n var interior = geometry.interiors[i];\n var points_1 = [];\n\n for (var j = 0; j < interior.length; ++j) {\n points_1.push(transformPoint(interior[j]));\n }\n\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points_1\n }\n }));\n }\n });\n applyOptionStyleForRegion(viewBuildCtx, compoundPath, dataIdx, regionModel);\n\n if (compoundPath instanceof Displayable) {\n compoundPath.culling = true;\n }\n\n var centerPt = transformPoint(region.getCenter());\n resetLabelForRegion(viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt);\n }); // Ensure children have been added to `regionGroup` before calling them.\n\n regionsGroupByName.each(function (regionGroup, regionName) {\n var _a = regionsInfoByName.get(regionName),\n dataIdx = _a.dataIdx,\n regionModel = _a.regionModel;\n\n resetEventTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx);\n resetTooltipForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);\n resetStateTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);\n }, this);\n };\n\n MapDraw.prototype._buildSVG = function (viewBuildCtx) {\n var mapName = viewBuildCtx.geo.map;\n var transformInfoRaw = viewBuildCtx.transformInfoRaw;\n this._svgGroup.x = transformInfoRaw.x;\n this._svgGroup.y = transformInfoRaw.y;\n this._svgGroup.scaleX = transformInfoRaw.scaleX;\n this._svgGroup.scaleY = transformInfoRaw.scaleY;\n\n if (this._svgResourceChanged(mapName)) {\n this._freeSVG();\n\n this._useSVG(mapName);\n }\n\n var svgDispatcherMap = this._svgDispatcherMap = zrUtil.createHashMap();\n var focusSelf = false;\n zrUtil.each(this._svgGraphicRecord.named, function (namedItem) {\n // Note that we also allow different elements have the same name.\n // For example, a glyph of a city and the label of the city have\n // the same name and their tooltip info can be defined in a single\n // region option.\n var regionName = namedItem.name;\n var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n var data = viewBuildCtx.data;\n var svgNodeTagLower = namedItem.svgNodeTagLower;\n var el = namedItem.el;\n var dataIdx = data ? data.indexOfName(regionName) : null;\n var regionModel = mapOrGeoModel.getRegionModel(regionName);\n\n if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null && el instanceof Displayable) {\n applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel);\n }\n\n if (el instanceof Displayable) {\n el.culling = true;\n } // We do not know how the SVG like so we'd better not to change z2.\n // Otherwise it might bring some unexpected result. For example,\n // an area hovered that make some inner city can not be clicked.\n\n\n el.z2EmphasisLift = 0; // If self named:\n\n if (!namedItem.namedFrom) {\n // label should batter to be displayed based on the center of \n // if it is named rather than displayed on each child.\n if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) {\n resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null);\n }\n\n resetEventTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx);\n resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);\n\n if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) {\n var focus_1 = resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);\n\n if (focus_1 === 'self') {\n focusSelf = true;\n }\n\n var els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []);\n els.push(el);\n }\n }\n }, this);\n\n this._enableBlurEntireSVG(focusSelf, viewBuildCtx);\n };\n\n MapDraw.prototype._enableBlurEntireSVG = function (focusSelf, viewBuildCtx) {\n // It's a little complicated to support blurring the entire geoSVG in series-map.\n // So do not suport it until some requirements come.\n // At present, in series-map, only regions can be blurred.\n if (focusSelf && viewBuildCtx.isGeo) {\n var blurStyle = viewBuildCtx.mapOrGeoModel.getModel(['blur', 'itemStyle']).getItemStyle(); // Only suport `opacity` here. Because not sure that other props are suitable for\n // all of the elements generated by SVG (especially for Text/TSpan/Image/... ).\n\n var opacity_1 = blurStyle.opacity;\n\n this._svgGraphicRecord.root.traverse(function (el) {\n if (!el.isGroup) {\n // PENDING: clear those settings to SVG elements when `_freeSVG`.\n // (Currently it happen not to be needed.)\n setDefaultStateProxy(el);\n var style = el.ensureState('blur').style || {}; // Do not overwrite the region style that already set from region option.\n\n if (style.opacity == null && opacity_1 != null) {\n style.opacity = opacity_1;\n } // If `ensureState('blur').style = {}`, there will be default opacity.\n // Enable `stateTransition` (animation).\n\n\n el.ensureState('emphasis');\n }\n });\n }\n };\n\n MapDraw.prototype.remove = function () {\n this._regionsGroup.removeAll();\n\n this._regionsGroupByName = null;\n\n this._svgGroup.removeAll();\n\n this._freeSVG();\n\n this._controller.dispose();\n\n this._controllerHost = null;\n };\n\n MapDraw.prototype.findHighDownDispatchers = function (name, geoModel) {\n if (name == null) {\n return [];\n }\n\n var geo = geoModel.coordinateSystem;\n\n if (geo.resourceType === 'geoJSON') {\n var regionsGroupByName = this._regionsGroupByName;\n\n if (regionsGroupByName) {\n var regionGroup = regionsGroupByName.get(name);\n return regionGroup ? [regionGroup] : [];\n }\n } else if (geo.resourceType === 'geoSVG') {\n return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || [];\n }\n };\n\n MapDraw.prototype._svgResourceChanged = function (mapName) {\n return this._svgMapName !== mapName;\n };\n\n MapDraw.prototype._useSVG = function (mapName) {\n var resource = geoSourceManager.getGeoResource(mapName);\n\n if (resource && resource.type === 'geoSVG') {\n var svgGraphic = resource.useGraphic(this.uid);\n\n this._svgGroup.add(svgGraphic.root);\n\n this._svgGraphicRecord = svgGraphic;\n this._svgMapName = mapName;\n }\n };\n\n MapDraw.prototype._freeSVG = function () {\n var mapName = this._svgMapName;\n\n if (mapName == null) {\n return;\n }\n\n var resource = geoSourceManager.getGeoResource(mapName);\n\n if (resource && resource.type === 'geoSVG') {\n resource.freeGraphic(this.uid);\n }\n\n this._svgGraphicRecord = null;\n this._svgDispatcherMap = null;\n\n this._svgGroup.removeAll();\n\n this._svgMapName = null;\n };\n\n MapDraw.prototype._updateController = function (mapOrGeoModel, ecModel, api) {\n var geo = mapOrGeoModel.coordinateSystem;\n var controller = this._controller;\n var controllerHost = this._controllerHost; // @ts-ignore FIXME:TS\n\n controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');\n controllerHost.zoom = geo.getZoom(); // roamType is will be set default true if it is null\n // @ts-ignore FIXME:TS\n\n controller.enable(mapOrGeoModel.get('roam') || false);\n var mainType = mapOrGeoModel.mainType;\n\n function makeActionBase() {\n var action = {\n type: 'geoRoam',\n componentType: mainType\n };\n action[mainType + 'Id'] = mapOrGeoModel.id;\n return action;\n }\n\n controller.off('pan').on('pan', function (e) {\n this._mouseDownFlag = false;\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n dx: e.dx,\n dy: e.dy\n }));\n }, this);\n controller.off('zoom').on('zoom', function (e) {\n this._mouseDownFlag = false;\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n }));\n }, this);\n controller.setPointerChecker(function (e, x, y) {\n return geo.containPoint([x, y]) && !onIrrelevantElement(e, api, mapOrGeoModel);\n });\n };\n /**\n * FIXME: this is a temporarily workaround.\n * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like\n * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`\n * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified\n * props will have no chance to be restored.\n * Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in\n * `renderSeries` will cache the modified `ignore` to `el._normalState`.\n * TODO:\n * Use clone/immutable in `LabelManager`?\n */\n\n\n MapDraw.prototype.resetForLabelLayout = function () {\n this.group.traverse(function (el) {\n var label = el.getTextContent();\n\n if (label) {\n label.ignore = mapLabelRaw(label).ignore;\n }\n });\n };\n\n MapDraw.prototype._updateMapSelectHandler = function (mapOrGeoModel, regionsGroup, api, fromView) {\n var mapDraw = this;\n regionsGroup.off('mousedown');\n regionsGroup.off('click'); // @ts-ignore FIXME:TS resolve type conflict\n\n if (mapOrGeoModel.get('selectedMode')) {\n regionsGroup.on('mousedown', function () {\n mapDraw._mouseDownFlag = true;\n });\n regionsGroup.on('click', function (e) {\n if (!mapDraw._mouseDownFlag) {\n return;\n }\n\n mapDraw._mouseDownFlag = false;\n });\n }\n };\n\n return MapDraw;\n}();\n\n;\n\nfunction applyOptionStyleForRegion(viewBuildCtx, el, dataIndex, regionModel) {\n // All of the path are using `itemStyle`, becuase\n // (1) Some SVG also use fill on polyline (The different between\n // polyline and polygon is \"open\" or \"close\" but not fill or not).\n // (2) For the common props like opacity, if some use itemStyle\n // and some use `lineStyle`, it might confuse users.\n // (3) Most SVG use , where can not detect wether draw a \"line\"\n // or a filled shape, so use `itemStyle` for .\n var normalStyleModel = regionModel.getModel('itemStyle');\n var emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']);\n var blurStyleModel = regionModel.getModel(['blur', 'itemStyle']);\n var selectStyleModel = regionModel.getModel(['select', 'itemStyle']); // NOTE: DONT use 'style' in visual when drawing map.\n // This component is used for drawing underlying map for both geo component and map series.\n\n var normalStyle = getFixedItemStyle(normalStyleModel);\n var emphasisStyle = getFixedItemStyle(emphasisStyleModel);\n var selectStyle = getFixedItemStyle(selectStyleModel);\n var blurStyle = getFixedItemStyle(blurStyleModel); // Update the itemStyle if has data visual\n\n var data = viewBuildCtx.data;\n\n if (data) {\n // Only visual color of each item will be used. It can be encoded by visualMap\n // But visual color of series is used in symbol drawing\n // Visual color for each series is for the symbol draw\n var style = data.getItemVisual(dataIndex, 'style');\n var decal = data.getItemVisual(dataIndex, 'decal');\n\n if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) {\n normalStyle.fill = style.fill;\n }\n\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, viewBuildCtx.api);\n }\n } // SVG text, tspan and image can be named but not supporeted\n // to be styled by region option yet.\n\n\n el.setStyle(normalStyle);\n el.style.strokeNoScale = true;\n el.ensureState('emphasis').style = emphasisStyle;\n el.ensureState('select').style = selectStyle;\n el.ensureState('blur').style = blurStyle; // Enable blur\n\n setDefaultStateProxy(el);\n}\n\nfunction resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists.\ndataIdx, // If labelXY not provided, use `textConfig.position: 'inside'`\nlabelXY) {\n var data = viewBuildCtx.data;\n var isGeo = viewBuildCtx.isGeo;\n var isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx));\n var itemLayout = data && data.getItemLayout(dataIdx); // In the following cases label will be drawn\n // 1. In map series and data value is NaN\n // 2. In geo component\n // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout\n\n if (isGeo || isDataNaN || itemLayout && itemLayout.showLabel) {\n var query = !isGeo ? dataIdx : regionName;\n var labelFetcher = void 0; // Consider dataIdx not found.\n\n if (!data || dataIdx >= 0) {\n labelFetcher = mapOrGeoModel;\n }\n\n var specifiedTextOpt = labelXY ? {\n normal: {\n align: 'center',\n verticalAlign: 'middle'\n }\n } : null; // Caveat: must be called after `setDefaultStateProxy(el);` called.\n // because textContent will be assign with `el.stateProxy` inside.\n\n setLabelStyle(el, getLabelStatesModels(regionModel), {\n labelFetcher: labelFetcher,\n labelDataIndex: query,\n defaultText: regionName\n }, specifiedTextOpt);\n var textEl = el.getTextContent();\n\n if (textEl) {\n mapLabelRaw(textEl).ignore = textEl.ignore;\n\n if (el.textConfig && labelXY) {\n // Compute a relative offset based on the el bounding rect.\n var rect = el.getBoundingRect().clone(); // Need to make sure the percent position base on the same rect in normal and\n // emphasis state. Otherwise if using boundingRect of el, but the emphasis state\n // has borderWidth (even 0.5px), the text position will be changed obviously\n // if the position is very big like ['1234%', '1345%'].\n\n el.textConfig.layoutRect = rect;\n el.textConfig.position = [(labelXY[0] - rect.x) / rect.width * 100 + '%', (labelXY[1] - rect.y) / rect.height * 100 + '%'];\n }\n } // PENDING:\n // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.\n // But el.dataIndex is also used to determine whether user event should be triggered,\n // where el.seriesIndex or el.dataModel must be specified. At present for a single el\n // there is not case that \"only label layout enabled but user event disabled\", so here\n // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.\n\n\n el.disableLabelAnimation = true;\n } else {\n el.removeTextContent();\n el.removeTextConfig();\n el.disableLabelAnimation = null;\n }\n}\n\nfunction resetEventTriggerForRegion(viewBuildCtx, eventTrigger, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists.\ndataIdx) {\n // setItemGraphicEl, setHoverStyle after all polygons and labels\n // are added to the rigionGroup\n if (viewBuildCtx.data) {\n // FIXME: when series-map use a SVG map, and there are duplicated name specified\n // on different SVG elements, after `data.setItemGraphicEl(...)`:\n // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip\n // can be triggered only mouse hover. That's correct.\n // (2) only the last element will be kept in `data`, so that if trigger tooltip\n // by `dispatchAction`, only the last one can be found and triggered. That might be\n // not correct. We will fix it in future if anyone demanding that.\n viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger);\n } // series-map will not trigger \"geoselectchange\" no matter it is\n // based on a declared geo component. Becuause series-map will\n // trigger \"selectchange\". If it trigger both the two events,\n // If users call `chart.dispatchAction({type: 'toggleSelect'})`,\n // it not easy to also fire event \"geoselectchanged\".\n else {\n // Package custom mouse event for geo component\n getECData(eventTrigger).eventData = {\n componentType: 'geo',\n componentIndex: mapOrGeoModel.componentIndex,\n geoIndex: mapOrGeoModel.componentIndex,\n name: regionName,\n region: regionModel && regionModel.option || {}\n };\n }\n}\n\nfunction resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {\n if (!viewBuildCtx.data) {\n graphic.setTooltipConfig({\n el: el,\n componentModel: mapOrGeoModel,\n itemName: regionName,\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n itemTooltipOption: regionModel.get('tooltip')\n });\n }\n}\n\nfunction resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode'); // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n\n var emphasisModel = regionModel.getModel('emphasis');\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(el, focus, emphasisModel.get('blurScope'));\n\n if (viewBuildCtx.isGeo) {\n enableComponentHighDownFeatures(el, mapOrGeoModel, regionName);\n }\n\n return focus;\n}\n\nexport default MapDraw; // @ts-ignore FIXME:TS fix the \"compatible with each other\"?","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport MapDraw from '../../component/helper/MapDraw';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { setStatesFlag, Z2_EMPHASIS_LIFT } from '../../util/states';\n\nvar MapView =\n/** @class */\nfunction (_super) {\n __extends(MapView, _super);\n\n function MapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MapView.type;\n return _this;\n }\n\n MapView.prototype.render = function (mapModel, ecModel, api, payload) {\n // Not render if it is an toggleSelect action from self\n if (payload && payload.type === 'mapToggleSelect' && payload.from === this.uid) {\n return;\n }\n\n var group = this.group;\n group.removeAll();\n\n if (mapModel.getHostGeoModel()) {\n return;\n }\n\n if (this._mapDraw && payload && payload.type === 'geoRoam') {\n this._mapDraw.resetForLabelLayout();\n } // Not update map if it is an roam action from self\n\n\n if (!(payload && payload.type === 'geoRoam' && payload.componentType === 'series' && payload.seriesId === mapModel.id)) {\n if (mapModel.needsDrawMap) {\n var mapDraw = this._mapDraw || new MapDraw(api);\n group.add(mapDraw.group);\n mapDraw.draw(mapModel, ecModel, api, this, payload);\n this._mapDraw = mapDraw;\n } else {\n // Remove drawed map\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n } else {\n var mapDraw = this._mapDraw;\n mapDraw && group.add(mapDraw.group);\n }\n\n mapModel.get('showLegendSymbol') && ecModel.getComponent('legend') && this._renderSymbols(mapModel, ecModel, api);\n };\n\n MapView.prototype.remove = function () {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n this.group.removeAll();\n };\n\n MapView.prototype.dispose = function () {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n };\n\n MapView.prototype._renderSymbols = function (mapModel, ecModel, api) {\n var originalData = mapModel.originalData;\n var group = this.group;\n originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) {\n if (isNaN(value)) {\n return;\n }\n\n var layout = originalData.getItemLayout(originalDataIndex);\n\n if (!layout || !layout.point) {\n // Not exists in map\n return;\n }\n\n var point = layout.point;\n var offset = layout.offset;\n var circle = new graphic.Circle({\n style: {\n // Because the special of map draw.\n // Which needs statistic of multiple series and draw on one map.\n // And each series also need a symbol with legend color\n //\n // Layout and visual are put one the different data\n // TODO\n fill: mapModel.getData().getVisual('style').fill\n },\n shape: {\n cx: point[0] + offset * 9,\n cy: point[1],\n r: 3\n },\n silent: true,\n // Do not overlap the first series, on which labels are displayed.\n z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0)\n }); // Only the series that has the first value on the same region is in charge of rendering the label.\n // But consider the case:\n // series: [\n // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},\n // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}\n // ]\n // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.\n // For backward compatibility, we follow the rule that render label `A` by the\n // settings on series `X` but render label `C` by the settings on series `Y`.\n\n if (!offset) {\n var fullData = mapModel.mainSeries.getData();\n var name_1 = originalData.getName(originalDataIndex);\n var fullIndex_1 = fullData.indexOfName(name_1);\n var itemModel = originalData.getItemModel(originalDataIndex);\n var labelModel = itemModel.getModel('label');\n var regionGroup = fullData.getItemGraphicEl(fullIndex_1); // `getFormattedLabel` needs to use `getData` inside. Here\n // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.\n // FIXME\n // If this is not the `mainSeries`, the item model (like label formatter)\n // set on original data item will never get. But it has been working\n // like that from the begining, and this scenario is rarely encountered.\n // So it won't be fixed until have to.\n\n setLabelStyle(circle, getLabelStatesModels(itemModel), {\n labelFetcher: {\n getFormattedLabel: function (idx, state) {\n return mapModel.getFormattedLabel(fullIndex_1, state);\n }\n }\n });\n circle.disableLabelAnimation = true;\n\n if (!labelModel.get('position')) {\n circle.setTextConfig({\n position: 'bottom'\n });\n }\n\n regionGroup.onHoverStateChange = function (toState) {\n setStatesFlag(circle, toState);\n };\n }\n\n group.add(circle);\n });\n };\n\n MapView.type = 'map';\n return MapView;\n}(ChartView);\n\nexport default MapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListSimply from '../helper/createListSimply';\nimport SeriesModel from '../../model/Series';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { createSymbol } from '../../util/symbol';\n\nvar MapSeries =\n/** @class */\nfunction (_super) {\n __extends(MapSeries, _super);\n\n function MapSeries() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MapSeries.type; // Only first map series of same mapType will drawMap.\n\n _this.needsDrawMap = false; // Group of all map series with same mapType\n\n _this.seriesGroup = [];\n\n _this.getTooltipPosition = function (dataIndex) {\n if (dataIndex != null) {\n var name_1 = this.getData().getName(dataIndex);\n var geo = this.coordinateSystem;\n var region = geo.getRegion(name_1);\n return region && geo.dataToPoint(region.getCenter());\n }\n };\n\n return _this;\n }\n\n MapSeries.prototype.getInitialData = function (option) {\n var data = createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n var dataNameMap = zrUtil.createHashMap();\n var toAppendNames = [];\n\n for (var i = 0, len = data.count(); i < len; i++) {\n var name_2 = data.getName(i);\n dataNameMap.set(name_2, true);\n }\n\n var geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);\n zrUtil.each(geoSource.regions, function (region) {\n var name = region.name;\n\n if (!dataNameMap.get(name)) {\n toAppendNames.push(name);\n }\n }); // Complete data with missing regions. The consequent processes (like visual\n // map and render) can not be performed without a \"full data\". For example,\n // find `dataIndex` by name.\n\n data.appendValues([], toAppendNames);\n return data;\n };\n /**\n * If no host geo model, return null, which means using a\n * inner exclusive geo model.\n */\n\n\n MapSeries.prototype.getHostGeoModel = function () {\n var geoIndex = this.option.geoIndex;\n return geoIndex != null ? this.ecModel.getComponent('geo', geoIndex) : null;\n };\n\n MapSeries.prototype.getMapType = function () {\n return (this.getHostGeoModel() || this).option.map;\n }; // _fillOption(option, mapName) {\n // Shallow clone\n // option = zrUtil.extend({}, option);\n // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);\n // return option;\n // }\n\n\n MapSeries.prototype.getRawValue = function (dataIndex) {\n // Use value stored in data instead because it is calculated from multiple series\n // FIXME Provide all value of multiple series ?\n var data = this.getData();\n return data.get(data.mapDimension('value'), dataIndex);\n };\n /**\n * Get model of region\n */\n\n\n MapSeries.prototype.getRegionModel = function (regionName) {\n var data = this.getData();\n return data.getItemModel(data.indexOfName(regionName));\n };\n /**\n * Map tooltip formatter\n */\n\n\n MapSeries.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n // FIXME orignalData and data is a bit confusing\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var name = data.getName(dataIndex);\n var seriesGroup = this.seriesGroup;\n var seriesNames = [];\n\n for (var i = 0; i < seriesGroup.length; i++) {\n var otherIndex = seriesGroup[i].originalData.indexOfName(name);\n var valueDim = data.mapDimension('value');\n\n if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex))) {\n seriesNames.push(seriesGroup[i].name);\n }\n }\n\n return createTooltipMarkup('section', {\n header: seriesNames.join(', '),\n noHeader: !seriesNames.length,\n blocks: [createTooltipMarkup('nameValue', {\n name: name,\n value: value\n })]\n });\n };\n\n MapSeries.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n MapSeries.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n MapSeries.prototype.getLegendIcon = function (opt) {\n var iconType = opt.icon || 'roundRect';\n var icon = createSymbol(iconType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill);\n icon.setStyle(opt.itemStyle); // Map do not use itemStyle.borderWidth as border width\n\n icon.style.stroke = 'none'; // No rotation because no series visual symbol for map\n\n if (iconType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n };\n\n MapSeries.type = 'series.map';\n MapSeries.dependencies = ['geo'];\n MapSeries.layoutMode = 'box';\n MapSeries.defaultOption = {\n // 一级层叠\n zlevel: 0,\n // 二级层叠\n z: 2,\n coordinateSystem: 'geo',\n // map should be explicitly specified since ec3.\n map: '',\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n // geoIndex: 0,\n // 'center' | 'left' | 'right' | 'x%' | {number}\n left: 'center',\n // 'center' | 'top' | 'bottom' | 'x%' | {number}\n top: 'center',\n // right\n // bottom\n // width:\n // height\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n showLegendSymbol: true,\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ],\n // higher priority than center and zoom\n boundingCoords: null,\n // Default on center of map\n center: null,\n zoom: 1,\n scaleLimit: null,\n selectedMode: true,\n label: {\n show: false,\n color: '#000'\n },\n // scaleLimit: null,\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444',\n areaColor: '#eee'\n },\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n areaColor: 'rgba(255,215,0,0.8)'\n }\n },\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n nameProperty: 'name'\n };\n return MapSeries;\n}(SeriesModel);\n\nexport default MapSeries;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // FIXME 公用?\n\nfunction dataStatistics(datas, statisticType) {\n var dataNameMap = {};\n zrUtil.each(datas, function (data) {\n data.each(data.mapDimension('value'), function (value, idx) {\n // Add prefix to avoid conflict with Object.prototype.\n var mapKey = 'ec-' + data.getName(idx);\n dataNameMap[mapKey] = dataNameMap[mapKey] || [];\n\n if (!isNaN(value)) {\n dataNameMap[mapKey].push(value);\n }\n });\n });\n return datas[0].map(datas[0].mapDimension('value'), function (value, idx) {\n var mapKey = 'ec-' + datas[0].getName(idx);\n var sum = 0;\n var min = Infinity;\n var max = -Infinity;\n var len = dataNameMap[mapKey].length;\n\n for (var i = 0; i < len; i++) {\n min = Math.min(min, dataNameMap[mapKey][i]);\n max = Math.max(max, dataNameMap[mapKey][i]);\n sum += dataNameMap[mapKey][i];\n }\n\n var result;\n\n if (statisticType === 'min') {\n result = min;\n } else if (statisticType === 'max') {\n result = max;\n } else if (statisticType === 'average') {\n result = sum / len;\n } else {\n result = sum;\n }\n\n return len === 0 ? NaN : result;\n });\n}\n\nexport default function mapDataStatistic(ecModel) {\n var seriesGroups = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n var hostGeoModel = seriesModel.getHostGeoModel();\n var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();\n (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);\n });\n zrUtil.each(seriesGroups, function (seriesList, key) {\n var data = dataStatistics(zrUtil.map(seriesList, function (seriesModel) {\n return seriesModel.getData();\n }), seriesList[0].get('mapValueCalculation'));\n\n for (var i = 0; i < seriesList.length; i++) {\n seriesList[i].originalData = seriesList[i].getData();\n } // FIXME Put where?\n\n\n for (var i = 0; i < seriesList.length; i++) {\n seriesList[i].seriesGroup = seriesList;\n seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();\n seriesList[i].setData(data.cloneShallow());\n seriesList[i].mainSeries = seriesList[0];\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function mapSymbolLayout(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.getCenter());\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendIcon (which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Simple view coordinate system\n * Mapping given x, y to transformd view x, y\n */\n\nimport * as vector from 'zrender/lib/core/vector';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport Transformable from 'zrender/lib/core/Transformable';\nvar v2ApplyTransform = vector.applyTransform;\n\nvar View =\n/** @class */\nfunction (_super) {\n __extends(View, _super);\n\n function View(name) {\n var _this = _super.call(this) || this;\n\n _this.type = 'view';\n _this.dimensions = ['x', 'y'];\n /**\n * Represents the transform brought by roam/zoom.\n * If `View['_viewRect']` applies roam transform,\n * we can get the final displayed rect.\n */\n\n _this._roamTransformable = new Transformable();\n /**\n * Represents the transform from `View['_rect']` to `View['_viewRect']`.\n */\n\n _this._rawTransformable = new Transformable();\n _this.name = name;\n return _this;\n }\n\n View.prototype.setBoundingRect = function (x, y, width, height) {\n this._rect = new BoundingRect(x, y, width, height);\n return this._rect;\n };\n /**\n * @return {module:zrender/core/BoundingRect}\n */\n\n\n View.prototype.getBoundingRect = function () {\n return this._rect;\n };\n\n View.prototype.setViewRect = function (x, y, width, height) {\n this._transformTo(x, y, width, height);\n\n this._viewRect = new BoundingRect(x, y, width, height);\n };\n /**\n * Transformed to particular position and size\n */\n\n\n View.prototype._transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var rawTransform = this._rawTransformable;\n rawTransform.transform = rect.calculateTransform(new BoundingRect(x, y, width, height));\n var rawParent = rawTransform.parent;\n rawTransform.parent = null;\n rawTransform.decomposeTransform();\n rawTransform.parent = rawParent;\n\n this._updateTransform();\n };\n /**\n * Set center of view\n */\n\n\n View.prototype.setCenter = function (centerCoord) {\n if (!centerCoord) {\n return;\n }\n\n this._center = centerCoord;\n\n this._updateCenterAndZoom();\n };\n\n View.prototype.setZoom = function (zoom) {\n zoom = zoom || 1;\n var zoomLimit = this.zoomLimit;\n\n if (zoomLimit) {\n if (zoomLimit.max != null) {\n zoom = Math.min(zoomLimit.max, zoom);\n }\n\n if (zoomLimit.min != null) {\n zoom = Math.max(zoomLimit.min, zoom);\n }\n }\n\n this._zoom = zoom;\n\n this._updateCenterAndZoom();\n };\n /**\n * Get default center without roam\n */\n\n\n View.prototype.getDefaultCenter = function () {\n // Rect before any transform\n var rawRect = this.getBoundingRect();\n var cx = rawRect.x + rawRect.width / 2;\n var cy = rawRect.y + rawRect.height / 2;\n return [cx, cy];\n };\n\n View.prototype.getCenter = function () {\n return this._center || this.getDefaultCenter();\n };\n\n View.prototype.getZoom = function () {\n return this._zoom || 1;\n };\n\n View.prototype.getRoamTransform = function () {\n return this._roamTransformable.getLocalTransform();\n };\n /**\n * Remove roam\n */\n\n\n View.prototype._updateCenterAndZoom = function () {\n // Must update after view transform updated\n var rawTransformMatrix = this._rawTransformable.getLocalTransform();\n\n var roamTransform = this._roamTransformable;\n var defaultCenter = this.getDefaultCenter();\n var center = this.getCenter();\n var zoom = this.getZoom();\n center = vector.applyTransform([], center, rawTransformMatrix);\n defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);\n roamTransform.originX = center[0];\n roamTransform.originY = center[1];\n roamTransform.x = defaultCenter[0] - center[0];\n roamTransform.y = defaultCenter[1] - center[1];\n roamTransform.scaleX = roamTransform.scaleY = zoom;\n\n this._updateTransform();\n };\n /**\n * Update transform props on `this` based on the current\n * `this._roamTransformable` and `this._rawTransformable`.\n */\n\n\n View.prototype._updateTransform = function () {\n var roamTransformable = this._roamTransformable;\n var rawTransformable = this._rawTransformable;\n rawTransformable.parent = roamTransformable;\n roamTransformable.updateTransform();\n rawTransformable.updateTransform();\n matrix.copy(this.transform || (this.transform = []), rawTransformable.transform || matrix.create());\n this._rawTransform = rawTransformable.getLocalTransform();\n this.invTransform = this.invTransform || [];\n matrix.invert(this.invTransform, this.transform);\n this.decomposeTransform();\n };\n\n View.prototype.getTransformInfo = function () {\n var rawTransformable = this._rawTransformable;\n var roamTransformable = this._roamTransformable; // Becuase roamTransformabel has `originX/originY` modified,\n // but the caller of `getTransformInfo` can not handle `originX/originY`,\n // so need to recalcualte them.\n\n var dummyTransformable = new Transformable();\n dummyTransformable.transform = roamTransformable.transform;\n dummyTransformable.decomposeTransform();\n return {\n roam: {\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY\n },\n raw: {\n x: rawTransformable.x,\n y: rawTransformable.y,\n scaleX: rawTransformable.scaleX,\n scaleY: rawTransformable.scaleY\n }\n };\n };\n\n View.prototype.getViewRect = function () {\n return this._viewRect;\n };\n /**\n * Get view rect after roam transform\n */\n\n\n View.prototype.getViewRectAfterRoam = function () {\n var rect = this.getBoundingRect().clone();\n rect.applyTransform(this.transform);\n return rect;\n };\n /**\n * Convert a single (lon, lat) data item to (x, y) point.\n */\n\n\n View.prototype.dataToPoint = function (data, noRoam, out) {\n var transform = noRoam ? this._rawTransform : this.transform;\n out = out || [];\n return transform ? v2ApplyTransform(out, data, transform) : vector.copy(out, data);\n };\n /**\n * Convert a (x, y) point to (lon, lat) data\n */\n\n\n View.prototype.pointToData = function (point) {\n var invTransform = this.invTransform;\n return invTransform ? v2ApplyTransform([], point, invTransform) : [point[0], point[1]];\n };\n\n View.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n View.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n /**\n * @implements\n */\n\n\n View.prototype.containPoint = function (point) {\n return this.getViewRectAfterRoam().contain(point[0], point[1]);\n };\n\n View.dimensions = ['x', 'y'];\n return View;\n}(Transformable);\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n return seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph.\n}\n\nexport default View;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport View from '../View';\nimport geoSourceManager from './geoSourceManager';\nimport { SINGLE_REFERRING } from '../../util/model';\nvar GEO_DEFAULT_PARAMS = {\n 'geoJSON': {\n aspectScale: 0.75,\n invertLongitute: true\n },\n 'geoSVG': {\n aspectScale: 1,\n invertLongitute: false\n }\n};\n\nvar Geo =\n/** @class */\nfunction (_super) {\n __extends(Geo, _super);\n\n function Geo(name, map, opt) {\n var _this = _super.call(this, name) || this;\n\n _this.dimensions = ['lng', 'lat'];\n _this.type = 'geo'; // Only store specified name coord via `addGeoCoord`.\n\n _this._nameCoordMap = zrUtil.createHashMap();\n _this.map = map;\n var source = geoSourceManager.load(map, opt.nameMap, opt.nameProperty);\n var resource = geoSourceManager.getGeoResource(map);\n _this.resourceType = resource ? resource.type : null;\n var defaultParmas = GEO_DEFAULT_PARAMS[resource.type];\n _this._regionsMap = source.regionsMap;\n _this._invertLongitute = defaultParmas.invertLongitute;\n _this.regions = source.regions;\n _this.aspectScale = zrUtil.retrieve2(opt.aspectScale, defaultParmas.aspectScale);\n var boundingRect = source.boundingRect;\n\n _this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height);\n\n return _this;\n }\n /**\n * Whether contain the given [lng, lat] coord.\n */\n // Never used yet.\n // containCoord(coord: number[]) {\n // const regions = this.regions;\n // for (let i = 0; i < regions.length; i++) {\n // const region = regions[i];\n // if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n // return true;\n // }\n // }\n // return false;\n // }\n\n\n Geo.prototype._transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var invertLongitute = this._invertLongitute;\n rect = rect.clone();\n\n if (invertLongitute) {\n // Longitute is inverted\n rect.y = -rect.y - rect.height;\n }\n\n var rawTransformable = this._rawTransformable;\n rawTransformable.transform = rect.calculateTransform(new BoundingRect(x, y, width, height));\n var rawParent = rawTransformable.parent;\n rawTransformable.parent = null;\n rawTransformable.decomposeTransform();\n rawTransformable.parent = rawParent;\n\n if (invertLongitute) {\n rawTransformable.scaleY = -rawTransformable.scaleY;\n }\n\n this._updateTransform();\n };\n\n Geo.prototype.getRegion = function (name) {\n return this._regionsMap.get(name);\n };\n\n Geo.prototype.getRegionByCoord = function (coord) {\n var regions = this.regions;\n\n for (var i = 0; i < regions.length; i++) {\n var region = regions[i];\n\n if (region.type === 'geoJSON' && region.contain(coord)) {\n return regions[i];\n }\n }\n };\n /**\n * Add geoCoord for indexing by name\n */\n\n\n Geo.prototype.addGeoCoord = function (name, geoCoord) {\n this._nameCoordMap.set(name, geoCoord);\n };\n /**\n * Get geoCoord by name\n */\n\n\n Geo.prototype.getGeoCoord = function (name) {\n var region = this._regionsMap.get(name); // calcualte center only on demand.\n\n\n return this._nameCoordMap.get(name) || region && region.getCenter();\n };\n\n Geo.prototype.dataToPoint = function (data, noRoam, out) {\n if (typeof data === 'string') {\n // Map area name to geoCoord\n data = this.getGeoCoord(data);\n }\n\n if (data) {\n return View.prototype.dataToPoint.call(this, data, noRoam, out);\n }\n };\n\n Geo.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n Geo.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n\n return Geo;\n}(View);\n\n;\nzrUtil.mixin(Geo, View);\n\nfunction getCoordSys(finder) {\n var geoModel = finder.geoModel;\n var seriesModel = finder.seriesModel;\n return geoModel ? geoModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem // For map series.\n || (seriesModel.getReferringComponents('geo', SINGLE_REFERRING).models[0] || {}).coordinateSystem : null;\n}\n\nexport default Geo;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Geo from './Geo';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport geoSourceManager from './geoSourceManager';\n/**\n * Resize method bound to the geo\n */\n\nfunction resizeGeo(geoModel, api) {\n var boundingCoords = geoModel.get('boundingCoords');\n\n if (boundingCoords != null) {\n var leftTop = boundingCoords[0];\n var rightBottom = boundingCoords[1];\n\n if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Invalid boundingCoords');\n }\n } else {\n this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]);\n }\n }\n\n var rect = this.getBoundingRect();\n var centerOption = geoModel.get('layoutCenter');\n var sizeOption = geoModel.get('layoutSize');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var aspect = rect.width / rect.height * this.aspectScale;\n var useCenterAndSize = false;\n var center;\n var size;\n\n if (centerOption && sizeOption) {\n center = [numberUtil.parsePercent(centerOption[0], viewWidth), numberUtil.parsePercent(centerOption[1], viewHeight)];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n var viewRect;\n\n if (useCenterAndSize) {\n viewRect = {};\n\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n } else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n } else {\n // Use left/top/width/height\n var boxLayoutOption = geoModel.getBoxLayoutParams();\n boxLayoutOption.aspect = aspect;\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n this.setCenter(geoModel.get('center'));\n this.setZoom(geoModel.get('zoom'));\n} // Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\n\n\nfunction setGeoCoords(geo, model) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nvar GeoCreator =\n/** @class */\nfunction () {\n function GeoCreator() {\n // For deciding which dimensions to use when creating list data\n this.dimensions = Geo.prototype.dimensions;\n }\n\n GeoCreator.prototype.create = function (ecModel, api) {\n var geoList = []; // FIXME Create each time may be slow\n\n ecModel.eachComponent('geo', function (geoModel, idx) {\n var name = geoModel.get('map');\n var geo = new Geo(name + idx, name, {\n nameMap: geoModel.get('nameMap'),\n nameProperty: geoModel.get('nameProperty'),\n aspectScale: geoModel.get('aspectScale')\n });\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo); // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel; // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(geoModel, api);\n });\n ecModel.eachSeries(function (seriesModel) {\n var coordSys = seriesModel.get('coordinateSystem');\n\n if (coordSys === 'geo') {\n var geoIndex = seriesModel.get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n }); // If has map series\n\n var mapModelGroupBySeries = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n if (!seriesModel.getHostGeoModel()) {\n var mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n var nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n var geo = new Geo(mapType, mapType, {\n nameMap: zrUtil.mergeAll(nameMapList),\n nameProperty: mapSeries[0].get('nameProperty'),\n aspectScale: mapSeries[0].get('aspectScale')\n });\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo); // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(mapSeries[0], api);\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n setGeoCoords(geo, singleMapSeries);\n });\n });\n return geoList;\n };\n /**\n * Fill given regions array\n */\n\n\n GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) {\n // Not use the original\n var regionsArr = (originRegionArr || []).slice();\n var dataNameMap = zrUtil.createHashMap();\n\n for (var i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n var source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n var name = region.name;\n !dataNameMap.get(name) && regionsArr.push({\n name: name\n });\n });\n return regionsArr;\n };\n\n return GeoCreator;\n}();\n\nvar geoCreator = new GeoCreator();\nexport default geoCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport geoCreator from './geoCreator';\nimport geoSourceManager from './geoSourceManager';\n;\n\nvar GeoModel =\n/** @class */\nfunction (_super) {\n __extends(GeoModel, _super);\n\n function GeoModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GeoModel.type;\n return _this;\n }\n\n GeoModel.prototype.init = function (option, parentModel, ecModel) {\n var source = geoSourceManager.getGeoResource(option.map);\n\n if (source && source.type === 'geoJSON') {\n var itemStyle = option.itemStyle = option.itemStyle || {};\n\n if (!('color' in itemStyle)) {\n itemStyle.color = '#eee';\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel); // Default label emphasis `show`\n\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n };\n\n GeoModel.prototype.optionUpdated = function () {\n var _this = this;\n\n var option = this.option;\n option.regions = geoCreator.getFilledRegions(option.regions, option.map, option.nameMap, option.nameProperty);\n var selectedMap = {};\n this._optionModelMap = zrUtil.reduce(option.regions || [], function (optionModelMap, regionOpt) {\n var regionName = regionOpt.name;\n\n if (regionName) {\n optionModelMap.set(regionName, new Model(regionOpt, _this, _this.ecModel));\n\n if (regionOpt.selected) {\n selectedMap[regionName] = true;\n }\n }\n\n return optionModelMap;\n }, zrUtil.createHashMap());\n\n if (!option.selectedMap) {\n option.selectedMap = selectedMap;\n }\n };\n /**\n * Get model of region.\n */\n\n\n GeoModel.prototype.getRegionModel = function (name) {\n return this._optionModelMap.get(name) || new Model(null, this, this.ecModel);\n };\n /**\n * Format label\n * @param name Region name\n */\n\n\n GeoModel.prototype.getFormattedLabel = function (name, status) {\n var regionModel = this.getRegionModel(name);\n var formatter = status === 'normal' ? regionModel.get(['label', 'formatter']) : regionModel.get(['emphasis', 'label', 'formatter']);\n var params = {\n name: name\n };\n\n if (typeof formatter === 'function') {\n params.status = status;\n return formatter(params);\n } else if (typeof formatter === 'string') {\n return formatter.replace('{a}', name != null ? name : '');\n }\n };\n\n GeoModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n GeoModel.prototype.setCenter = function (center) {\n this.option.center = center;\n }; // PENGING If selectedMode is null ?\n\n\n GeoModel.prototype.select = function (name) {\n var option = this.option;\n var selectedMode = option.selectedMode;\n\n if (!selectedMode) {\n return;\n }\n\n if (selectedMode !== 'multiple') {\n option.selectedMap = null;\n }\n\n var selectedMap = option.selectedMap || (option.selectedMap = {});\n selectedMap[name] = true;\n };\n\n GeoModel.prototype.unSelect = function (name) {\n var selectedMap = this.option.selectedMap;\n\n if (selectedMap) {\n selectedMap[name] = false;\n }\n };\n\n GeoModel.prototype.toggleSelected = function (name) {\n this[this.isSelected(name) ? 'unSelect' : 'select'](name);\n };\n\n GeoModel.prototype.isSelected = function (name) {\n var selectedMap = this.option.selectedMap;\n return !!(selectedMap && selectedMap[name]);\n };\n\n GeoModel.type = 'geo';\n GeoModel.layoutMode = 'box';\n GeoModel.defaultOption = {\n zlevel: 0,\n z: 0,\n show: true,\n left: 'center',\n top: 'center',\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n silent: false,\n // Map type\n map: '',\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n boundingCoords: null,\n // Default on center of map\n center: null,\n zoom: 1,\n scaleLimit: null,\n // selectedMode: false\n label: {\n show: false,\n color: '#000'\n },\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444' // Default color:\n // + geoJSON: #eee\n // + geoSVG: null (use SVG original `fill`)\n // color: '#eee'\n\n },\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n regions: [] // tooltip: {\n // show: false\n // }\n\n };\n return GeoModel;\n}(ComponentModel);\n\nexport default GeoModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function updateCenterAndZoom(view, payload, zoomLimit) {\n var previousZoom = view.getZoom();\n var center = view.getCenter();\n var zoom = payload.zoom;\n var point = view.dataToPoint(center);\n\n if (payload.dx != null && payload.dy != null) {\n point[0] -= payload.dx;\n point[1] -= payload.dy;\n view.setCenter(view.pointToData(point));\n }\n\n if (zoom != null) {\n if (zoomLimit) {\n var zoomMin = zoomLimit.min || 0;\n var zoomMax = zoomLimit.max || Infinity;\n zoom = Math.max(Math.min(previousZoom * zoom, zoomMax), zoomMin) / previousZoom;\n } // Zoom on given point(originX, originY)\n\n\n view.scaleX *= zoom;\n view.scaleY *= zoom;\n var fixX = (payload.originX - view.x) * (zoom - 1);\n var fixY = (payload.originY - view.y) * (zoom - 1);\n view.x -= fixX;\n view.y -= fixY;\n view.updateTransform(); // Get the new center\n\n view.setCenter(view.pointToData(point));\n view.setZoom(zoom * previousZoom);\n }\n\n return {\n center: view.getCenter(),\n zoom: view.getZoom()\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MapDraw from '../helper/MapDraw';\nimport ComponentView from '../../view/Component';\nimport { getECData } from '../../util/innerStore';\nimport { findEventDispatcher } from '../../util/event';\n\nvar GeoView =\n/** @class */\nfunction (_super) {\n __extends(GeoView, _super);\n\n function GeoView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GeoView.type;\n _this.focusBlurEnabled = true;\n return _this;\n }\n\n GeoView.prototype.init = function (ecModel, api) {\n var mapDraw = new MapDraw(api);\n this._mapDraw = mapDraw;\n this.group.add(mapDraw.group);\n this._api = api;\n };\n\n GeoView.prototype.render = function (geoModel, ecModel, api, payload) {\n var mapDraw = this._mapDraw;\n\n if (geoModel.get('show')) {\n mapDraw.draw(geoModel, ecModel, api, this, payload);\n } else {\n this._mapDraw.group.removeAll();\n }\n\n mapDraw.group.on('click', this._handleRegionClick, this);\n mapDraw.group.silent = geoModel.get('silent');\n this._model = geoModel;\n this.updateSelectStatus(geoModel, ecModel, api);\n };\n\n GeoView.prototype._handleRegionClick = function (e) {\n var eventData;\n findEventDispatcher(e.target, function (current) {\n return (eventData = getECData(current).eventData) != null;\n }, true);\n\n if (eventData) {\n this._api.dispatchAction({\n type: 'geoToggleSelect',\n geoId: this._model.id,\n name: eventData.name\n });\n }\n };\n\n GeoView.prototype.updateSelectStatus = function (model, ecModel, api) {\n var _this = this;\n\n this._mapDraw.group.traverse(function (node) {\n var eventData = getECData(node).eventData;\n\n if (eventData) {\n _this._model.isSelected(eventData.name) ? api.enterSelect(node) : api.leaveSelect(node); // No need to traverse children.\n\n return true;\n }\n });\n };\n\n GeoView.prototype.findHighDownDispatchers = function (name) {\n return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model);\n };\n\n GeoView.prototype.dispose = function () {\n this._mapDraw && this._mapDraw.remove();\n };\n\n GeoView.type = 'geo';\n return GeoView;\n}(ComponentView);\n\nexport default GeoView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport GeoModel from '../../coord/geo/GeoModel';\nimport geoCreator from '../../coord/geo/geoCreator';\nimport { each } from 'zrender/lib/core/util';\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nimport GeoView from './GeoView';\nexport function install(registers) {\n registers.registerCoordinateSystem('geo', geoCreator);\n registers.registerComponentModel(GeoModel);\n registers.registerComponentView(GeoView);\n\n function makeAction(method, actionInfo) {\n actionInfo.update = 'geo:updateSelectStatus';\n registers.registerAction(actionInfo, function (payload, ecModel) {\n var selected = {};\n var allSelected = [];\n ecModel.eachComponent({\n mainType: 'geo',\n query: payload\n }, function (geoModel) {\n geoModel[method](payload.name);\n var geo = geoModel.coordinateSystem;\n each(geo.regions, function (region) {\n selected[region.name] = geoModel.isSelected(region.name) || false;\n }); // Notice: there might be duplicated name in different regions.\n\n var names = [];\n each(selected, function (v, name) {\n selected[name] && names.push(name);\n });\n allSelected.push({\n geoIndex: geoModel.componentIndex,\n // Use singular, the same naming convention as the event `selectchanged`.\n name: names\n });\n });\n return {\n selected: selected,\n allSelected: allSelected,\n name: payload.name\n };\n });\n }\n\n makeAction('toggleSelected', {\n type: 'geoToggleSelect',\n event: 'geoselectchanged'\n });\n makeAction('select', {\n type: 'geoSelect',\n event: 'geoselected'\n });\n makeAction('unSelect', {\n type: 'geoUnSelect',\n event: 'geounselected'\n });\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n\n registers.registerAction({\n type: 'geoRoam',\n event: 'geoRoam',\n update: 'updateTransform'\n }, function (payload, ecModel) {\n var componentType = payload.componentType || 'series';\n ecModel.eachComponent({\n mainType: componentType,\n query: payload\n }, function (componentModel) {\n var geo = componentModel.coordinateSystem;\n\n if (geo.type !== 'geo') {\n return;\n }\n\n var res = updateCenterAndZoom(geo, payload, componentModel.get('scaleLimit'));\n componentModel.setCenter && componentModel.setCenter(res.center);\n componentModel.setZoom && componentModel.setZoom(res.zoom); // All map series with same `map` use the same geo coordinate system\n // So the center and zoom must be in sync. Include the series not selected by legend\n\n if (componentType === 'series') {\n each(componentModel.seriesGroup, function (seriesModel) {\n seriesModel.setCenter(res.center);\n seriesModel.setZoom(res.zoom);\n });\n }\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport MapView from './MapView';\nimport MapSeries from './MapSeries';\nimport mapDataStatistic from './mapDataStatistic';\nimport mapSymbolLayout from './mapSymbolLayout';\nimport { createLegacyDataSelectAction } from '../../legacy/dataSelectAction';\nimport { install as installGeo } from '../../component/geo/install';\nexport function install(registers) {\n use(installGeo);\n registers.registerChartView(MapView);\n registers.registerSeriesModel(MapSeries);\n registers.registerLayout(mapSymbolLayout);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);\n createLegacyDataSelectAction('map', registers.registerAction);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The tree layoutHelper implementation was originally copied from\n* \"d3.js\"(https://github.com/d3/d3-hierarchy) with\n* some modifications made for this project.\n* (see more details in the comment of the specific method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the licence of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n/**\n * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing\n * the tree.\n */\nimport * as layout from '../../util/layout';\n/**\n * Initialize all computational message for following algorithm.\n */\n\nexport function init(inRoot) {\n var root = inRoot;\n root.hierNode = {\n defaultAncestor: null,\n ancestor: root,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: 0,\n thread: null\n };\n var nodes = [root];\n var node;\n var children;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n children = node.children;\n\n if (node.isExpand && children.length) {\n var n = children.length;\n\n for (var i = n - 1; i >= 0; i--) {\n var child = children[i];\n child.hierNode = {\n defaultAncestor: null,\n ancestor: child,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: i,\n thread: null\n };\n nodes.push(child);\n }\n }\n }\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes a preliminary x coordinate for node. Before that, this function is\n * applied recursively to the children of node, as well as the function\n * apportion(). After spacing out the children by calling executeShifts(), the\n * node is placed to the midpoint of its outermost children.\n */\n\nexport function firstWalk(node, separation) {\n var children = node.isExpand ? node.children : [];\n var siblings = node.parentNode.children;\n var subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null;\n\n if (children.length) {\n executeShifts(node);\n var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;\n\n if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n node.hierNode.modifier = node.hierNode.prelim - midPoint;\n } else {\n node.hierNode.prelim = midPoint;\n }\n } else if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n }\n\n node.parentNode.hierNode.defaultAncestor = apportion(node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation);\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes all real x-coordinates by summing up the modifiers recursively.\n */\n\nexport function secondWalk(node) {\n var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;\n node.setLayout({\n x: nodeX\n }, true);\n node.hierNode.modifier += node.parentNode.hierNode.modifier;\n}\nexport function separation(cb) {\n return arguments.length ? cb : defaultSeparation;\n}\n/**\n * Transform the common coordinate to radial coordinate.\n */\n\nexport function radialCoordinate(rad, r) {\n rad -= Math.PI / 2;\n return {\n x: r * Math.cos(rad),\n y: r * Math.sin(rad)\n };\n}\n/**\n * Get the layout position of the whole view.\n */\n\nexport function getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n/**\n * All other shifts, applied to the smaller subtrees between w- and w+, are\n * performed by this function.\n *\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\nfunction executeShifts(node) {\n var children = node.children;\n var n = children.length;\n var shift = 0;\n var change = 0;\n\n while (--n >= 0) {\n var child = children[n];\n child.hierNode.prelim += shift;\n child.hierNode.modifier += shift;\n change += child.hierNode.change;\n shift += child.hierNode.shift + change;\n }\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * The core of the algorithm. Here, a new subtree is combined with the\n * previous subtrees. Threads are used to traverse the inside and outside\n * contours of the left and right subtree up to the highest common level.\n * Whenever two nodes of the inside contours conflict, we compute the left\n * one of the greatest uncommon ancestors using the function nextAncestor()\n * and call moveSubtree() to shift the subtree and prepare the shifts of\n * smaller subtrees. Finally, we add a new thread (if necessary).\n */\n\n\nfunction apportion(subtreeV, subtreeW, ancestor, separation) {\n if (subtreeW) {\n var nodeOutRight = subtreeV;\n var nodeInRight = subtreeV;\n var nodeOutLeft = nodeInRight.parentNode.children[0];\n var nodeInLeft = subtreeW;\n var sumOutRight = nodeOutRight.hierNode.modifier;\n var sumInRight = nodeInRight.hierNode.modifier;\n var sumOutLeft = nodeOutLeft.hierNode.modifier;\n var sumInLeft = nodeInLeft.hierNode.modifier;\n\n while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {\n nodeOutRight = nextRight(nodeOutRight);\n nodeOutLeft = nextLeft(nodeOutLeft);\n nodeOutRight.hierNode.ancestor = subtreeV;\n var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim - sumInRight + separation(nodeInLeft, nodeInRight);\n\n if (shift > 0) {\n moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);\n sumInRight += shift;\n sumOutRight += shift;\n }\n\n sumInLeft += nodeInLeft.hierNode.modifier;\n sumInRight += nodeInRight.hierNode.modifier;\n sumOutRight += nodeOutRight.hierNode.modifier;\n sumOutLeft += nodeOutLeft.hierNode.modifier;\n }\n\n if (nodeInLeft && !nextRight(nodeOutRight)) {\n nodeOutRight.hierNode.thread = nodeInLeft;\n nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;\n }\n\n if (nodeInRight && !nextLeft(nodeOutLeft)) {\n nodeOutLeft.hierNode.thread = nodeInRight;\n nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;\n ancestor = subtreeV;\n }\n }\n\n return ancestor;\n}\n/**\n * This function is used to traverse the right contour of a subtree.\n * It returns the rightmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\n\n\nfunction nextRight(node) {\n var children = node.children;\n return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;\n}\n/**\n * This function is used to traverse the left contour of a subtree (or a subforest).\n * It returns the leftmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\n\n\nfunction nextLeft(node) {\n var children = node.children;\n return children.length && node.isExpand ? children[0] : node.hierNode.thread;\n}\n/**\n * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor.\n * Otherwise, returns the specified ancestor.\n */\n\n\nfunction nextAncestor(nodeInLeft, node, ancestor) {\n return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode ? nodeInLeft.hierNode.ancestor : ancestor;\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Shifts the current subtree rooted at wr.\n * This is done by increasing prelim(w+) and modifier(w+) by shift.\n */\n\n\nfunction moveSubtree(wl, wr, shift) {\n var change = shift / (wr.hierNode.i - wl.hierNode.i);\n wr.hierNode.change -= change;\n wr.hierNode.shift += shift;\n wr.hierNode.modifier += shift;\n wr.hierNode.prelim += shift;\n wl.hierNode.change += change;\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\n\nfunction defaultSeparation(node1, node2) {\n return node1.parentNode === node2.parentNode ? 1 : 2;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport SymbolClz from '../helper/Symbol';\nimport { radialCoordinate } from './layoutHelper';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport View from '../../coord/View';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport RoamController from '../../component/helper/RoamController';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport { parsePercent } from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport Path from 'zrender/lib/graphic/Path';\nimport { setStatesStylesFromModel, setStatesFlag, setDefaultStateProxy, HOVER_STATE_BLUR } from '../../util/states';\n\nvar TreeEdgeShape =\n/** @class */\nfunction () {\n function TreeEdgeShape() {\n this.parentPoint = [];\n this.childPoints = [];\n }\n\n return TreeEdgeShape;\n}();\n\nvar TreePath =\n/** @class */\nfunction (_super) {\n __extends(TreePath, _super);\n\n function TreePath(opts) {\n return _super.call(this, opts) || this;\n }\n\n TreePath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n TreePath.prototype.getDefaultShape = function () {\n return new TreeEdgeShape();\n };\n\n TreePath.prototype.buildPath = function (ctx, shape) {\n var childPoints = shape.childPoints;\n var childLen = childPoints.length;\n var parentPoint = shape.parentPoint;\n var firstChildPos = childPoints[0];\n var lastChildPos = childPoints[childLen - 1];\n\n if (childLen === 1) {\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(firstChildPos[0], firstChildPos[1]);\n return;\n }\n\n var orient = shape.orient;\n var forkDim = orient === 'TB' || orient === 'BT' ? 0 : 1;\n var otherDim = 1 - forkDim;\n var forkPosition = parsePercent(shape.forkPosition, 1);\n var tmpPoint = [];\n tmpPoint[forkDim] = parentPoint[forkDim];\n tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition;\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.moveTo(firstChildPos[0], firstChildPos[1]);\n tmpPoint[forkDim] = firstChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n tmpPoint[forkDim] = lastChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.lineTo(lastChildPos[0], lastChildPos[1]);\n\n for (var i = 1; i < childLen - 1; i++) {\n var point = childPoints[i];\n ctx.moveTo(point[0], point[1]);\n tmpPoint[forkDim] = point[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n }\n };\n\n return TreePath;\n}(Path);\n\nvar TreeView =\n/** @class */\nfunction (_super) {\n __extends(TreeView, _super);\n\n function TreeView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreeView.type;\n _this._mainGroup = new graphic.Group();\n return _this;\n }\n\n TreeView.prototype.init = function (ecModel, api) {\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: this.group\n };\n this.group.add(this._mainGroup);\n };\n\n TreeView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var layoutInfo = seriesModel.layoutInfo;\n var group = this._mainGroup;\n var layout = seriesModel.get('layout');\n\n if (layout === 'radial') {\n group.x = layoutInfo.x + layoutInfo.width / 2;\n group.y = layoutInfo.y + layoutInfo.height / 2;\n } else {\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n }\n\n this._updateViewCoordSys(seriesModel);\n\n this._updateController(seriesModel, ecModel, api);\n\n var oldData = this._data;\n data.diff(oldData).add(function (newIdx) {\n if (symbolNeedsDraw(data, newIdx)) {\n // Create node and edge\n updateNode(data, newIdx, null, group, seriesModel);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx);\n\n if (!symbolNeedsDraw(data, newIdx)) {\n symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n return;\n } // Update node and edge\n\n\n updateNode(data, newIdx, symbolEl, group, seriesModel);\n }).remove(function (oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx); // When remove a collapsed node of subtree, since the collapsed\n // node haven't been initialized with a symbol element,\n // you can't found it's symbol element through index.\n // so if we want to remove the symbol element we should insure\n // that the symbol element is not null.\n\n if (symbolEl) {\n removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n }\n }).execute();\n this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');\n\n this._updateNodeAndLinkScale(seriesModel);\n\n if (seriesModel.get('expandAndCollapse') === true) {\n data.eachItemGraphicEl(function (el, dataIndex) {\n el.off('click').on('click', function () {\n api.dispatchAction({\n type: 'treeExpandAndCollapse',\n seriesId: seriesModel.id,\n dataIndex: dataIndex\n });\n });\n });\n }\n\n this._data = data;\n };\n\n TreeView.prototype._updateViewCoordSys = function (seriesModel) {\n var data = seriesModel.getData();\n var points = [];\n data.each(function (idx) {\n var layout = data.getItemLayout(idx);\n\n if (layout && !isNaN(layout.x) && !isNaN(layout.y)) {\n points.push([+layout.x, +layout.y]);\n }\n });\n var min = [];\n var max = [];\n bbox.fromPoints(points, min, max); // If don't Store min max when collapse the root node after roam,\n // the root node will disappear.\n\n var oldMin = this._min;\n var oldMax = this._max; // If width or height is 0\n\n if (max[0] - min[0] === 0) {\n min[0] = oldMin ? oldMin[0] : min[0] - 1;\n max[0] = oldMax ? oldMax[0] : max[0] + 1;\n }\n\n if (max[1] - min[1] === 0) {\n min[1] = oldMin ? oldMin[1] : min[1] - 1;\n max[1] = oldMax ? oldMax[1] : max[1] + 1;\n }\n\n var viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom')); // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group\n\n this.group.attr({\n x: viewCoordSys.x,\n y: viewCoordSys.y,\n scaleX: viewCoordSys.scaleX,\n scaleY: viewCoordSys.scaleY\n });\n this._min = min;\n this._max = max;\n };\n\n TreeView.prototype._updateController = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var controller = this._controller;\n var controllerHost = this._controllerHost;\n var group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n var rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);\n });\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n controller.off('pan').off('zoom').on('pan', function (e) {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n dx: e.dx,\n dy: e.dy\n });\n }).on('zoom', function (e) {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n\n _this._updateNodeAndLinkScale(seriesModel); // Only update label layout on zoom\n\n\n api.updateLabelLayout();\n });\n };\n\n TreeView.prototype._updateNodeAndLinkScale = function (seriesModel) {\n var data = seriesModel.getData();\n\n var nodeScale = this._getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el, idx) {\n el.setSymbolScale(nodeScale);\n });\n };\n\n TreeView.prototype._getNodeGlobalScale = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n var nodeScaleRatio = this._nodeScaleRatio;\n var groupZoom = coordSys.scaleX || 1; // Scale node when zoom changes\n\n var roamZoom = coordSys.getZoom();\n var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n return nodeScale / groupZoom;\n };\n\n TreeView.prototype.dispose = function () {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n };\n\n TreeView.prototype.remove = function () {\n this._mainGroup.removeAll();\n\n this._data = null;\n };\n\n TreeView.type = 'tree';\n return TreeView;\n}(ChartView);\n\nfunction symbolNeedsDraw(data, dataIndex) {\n var layout = data.getItemLayout(dataIndex);\n return layout && !isNaN(layout.x) && !isNaN(layout.y);\n}\n\nfunction updateNode(data, dataIndex, symbolEl, group, seriesModel) {\n var isInit = !symbolEl;\n var node = data.tree.getNodeByDataIndex(dataIndex);\n var itemModel = node.getModel();\n var visualColor = node.getVisual('style').fill;\n var symbolInnerColor = node.isExpand === false && node.children.length !== 0 ? visualColor : '#fff';\n var virtualRoot = data.tree.root;\n var source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);\n var sourceLayout = source.getLayout();\n var sourceOldLayout = sourceSymbolEl ? {\n x: sourceSymbolEl.__oldX,\n y: sourceSymbolEl.__oldY,\n rawX: sourceSymbolEl.__radialOldRawX,\n rawY: sourceSymbolEl.__radialOldRawY\n } : sourceLayout;\n var targetLayout = node.getLayout();\n\n if (isInit) {\n symbolEl = new SymbolClz(data, dataIndex, null, {\n symbolInnerColor: symbolInnerColor,\n useNameLabel: true\n });\n symbolEl.x = sourceOldLayout.x;\n symbolEl.y = sourceOldLayout.y;\n } else {\n symbolEl.updateData(data, dataIndex, null, {\n symbolInnerColor: symbolInnerColor,\n useNameLabel: true\n });\n }\n\n symbolEl.__radialOldRawX = symbolEl.__radialRawX;\n symbolEl.__radialOldRawY = symbolEl.__radialRawY;\n symbolEl.__radialRawX = targetLayout.rawX;\n symbolEl.__radialRawY = targetLayout.rawY;\n group.add(symbolEl);\n data.setItemGraphicEl(dataIndex, symbolEl);\n symbolEl.__oldX = symbolEl.x;\n symbolEl.__oldY = symbolEl.y;\n graphic.updateProps(symbolEl, {\n x: targetLayout.x,\n y: targetLayout.y\n }, seriesModel);\n var symbolPath = symbolEl.getSymbolPath();\n\n if (seriesModel.get('layout') === 'radial') {\n var realRoot = virtualRoot.children[0];\n var rootLayout = realRoot.getLayout();\n var length_1 = realRoot.children.length;\n var rad = void 0;\n var isLeft = void 0;\n\n if (targetLayout.x === rootLayout.x && node.isExpand === true) {\n var center = {\n x: (realRoot.children[0].getLayout().x + realRoot.children[length_1 - 1].getLayout().x) / 2,\n y: (realRoot.children[0].getLayout().y + realRoot.children[length_1 - 1].getLayout().y) / 2\n };\n rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n isLeft = center.x < rootLayout.x;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n } else {\n rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n if (node.children.length === 0 || node.children.length !== 0 && node.isExpand === false) {\n isLeft = targetLayout.x < rootLayout.x;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n } else {\n isLeft = targetLayout.x > rootLayout.x;\n\n if (!isLeft) {\n rad = rad - Math.PI;\n }\n }\n }\n\n var textPosition = isLeft ? 'left' : 'right';\n var normalLabelModel = itemModel.getModel('label');\n var rotate = normalLabelModel.get('rotate');\n var labelRotateRadian = rotate * (Math.PI / 180);\n var textContent = symbolPath.getTextContent();\n\n if (textContent) {\n symbolPath.setTextConfig({\n position: normalLabelModel.get('position') || textPosition,\n rotation: rotate == null ? -rad : labelRotateRadian,\n origin: 'center'\n });\n textContent.setStyle('verticalAlign', 'middle');\n }\n } // Handle status\n\n\n var focus = itemModel.get(['emphasis', 'focus']);\n var focusDataIndices = focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : null;\n\n if (focusDataIndices) {\n // Modify the focus to data indices.\n getECData(symbolEl).focus = focusDataIndices;\n }\n\n drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group);\n\n if (symbolEl.__edge) {\n symbolEl.onHoverStateChange = function (toState) {\n if (toState !== 'blur') {\n // NOTE: Ensure the parent elements will been blurred firstly.\n // According to the return of getAncestorsIndices and getDescendantIndices\n // TODO: A bit tricky.\n var parentEl = node.parentNode && data.getItemGraphicEl(node.parentNode.dataIndex);\n\n if (!(parentEl && parentEl.hoverState === HOVER_STATE_BLUR)) {\n setStatesFlag(symbolEl.__edge, toState);\n }\n }\n };\n }\n}\n\nfunction drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group) {\n var itemModel = node.getModel();\n var edgeShape = seriesModel.get('edgeShape');\n var layout = seriesModel.get('layout');\n var orient = seriesModel.getOrient();\n var curvature = seriesModel.get(['lineStyle', 'curveness']);\n var edgeForkPosition = seriesModel.get('edgeForkPosition');\n var lineStyle = itemModel.getModel('lineStyle').getLineStyle();\n var edge = symbolEl.__edge;\n\n if (edgeShape === 'curve') {\n if (node.parentNode && node.parentNode !== virtualRoot) {\n if (!edge) {\n edge = symbolEl.__edge = new graphic.BezierCurve({\n shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout)\n });\n }\n\n graphic.updateProps(edge, {\n shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout)\n }, seriesModel);\n }\n } else if (edgeShape === 'polyline') {\n if (layout === 'orthogonal') {\n if (node !== virtualRoot && node.children && node.children.length !== 0 && node.isExpand === true) {\n var children = node.children;\n var childPoints = [];\n\n for (var i = 0; i < children.length; i++) {\n var childLayout = children[i].getLayout();\n childPoints.push([childLayout.x, childLayout.y]);\n }\n\n if (!edge) {\n edge = symbolEl.__edge = new TreePath({\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: [[targetLayout.x, targetLayout.y]],\n orient: orient,\n forkPosition: edgeForkPosition\n }\n });\n }\n\n graphic.updateProps(edge, {\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: childPoints\n }\n }, seriesModel);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('The polyline edgeShape can only be used in orthogonal layout');\n }\n }\n }\n\n if (edge) {\n edge.useStyle(zrUtil.defaults({\n strokeNoScale: true,\n fill: null\n }, lineStyle));\n setStatesStylesFromModel(edge, itemModel, 'lineStyle');\n setDefaultStateProxy(edge);\n group.add(edge);\n }\n}\n\nfunction removeNode(data, dataIndex, symbolEl, group, seriesModel) {\n var node = data.tree.getNodeByDataIndex(dataIndex);\n var virtualRoot = data.tree.root;\n var source = node.parentNode === virtualRoot ? node : node.parentNode || node; // let edgeShape = seriesScope.edgeShape;\n\n var sourceLayout;\n\n while (sourceLayout = source.getLayout(), sourceLayout == null) {\n source = source.parentNode === virtualRoot ? source : source.parentNode || source;\n } // Use same duration and easing with update to have more consistent animation.\n\n\n var removeAnimationOpt = {\n duration: seriesModel.get('animationDurationUpdate'),\n easing: seriesModel.get('animationEasingUpdate')\n };\n graphic.removeElement(symbolEl, {\n x: sourceLayout.x + 1,\n y: sourceLayout.y + 1\n }, seriesModel, {\n cb: function () {\n group.remove(symbolEl);\n data.setItemGraphicEl(dataIndex, null);\n },\n removeOpt: removeAnimationOpt\n });\n symbolEl.fadeOut(null, {\n fadeLabel: true,\n animation: removeAnimationOpt\n });\n var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);\n var sourceEdge = sourceSymbolEl.__edge; // 1. when expand the sub tree, delete the children node should delete the edge of\n // the source at the same time. because the polyline edge shape is only owned by the source.\n // 2.when the node is the only children of the source, delete the node should delete the edge of\n // the source at the same time. the same reason as above.\n\n var edge = symbolEl.__edge || (source.isExpand === false || source.children.length === 1 ? sourceEdge : undefined);\n var edgeShape = seriesModel.get('edgeShape');\n var layoutOpt = seriesModel.get('layout');\n var orient = seriesModel.get('orient');\n var curvature = seriesModel.get(['lineStyle', 'curveness']);\n\n if (edge) {\n if (edgeShape === 'curve') {\n graphic.removeElement(edge, {\n shape: getEdgeShape(layoutOpt, orient, curvature, sourceLayout, sourceLayout),\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb: function () {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n } else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') {\n graphic.removeElement(edge, {\n shape: {\n parentPoint: [sourceLayout.x, sourceLayout.y],\n childPoints: [[sourceLayout.x, sourceLayout.y]]\n },\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb: function () {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n }\n}\n\nfunction getEdgeShape(layoutOpt, orient, curvature, sourceLayout, targetLayout) {\n var cpx1;\n var cpy1;\n var cpx2;\n var cpy2;\n var x1;\n var x2;\n var y1;\n var y2;\n\n if (layoutOpt === 'radial') {\n x1 = sourceLayout.rawX;\n y1 = sourceLayout.rawY;\n x2 = targetLayout.rawX;\n y2 = targetLayout.rawY;\n var radialCoor1 = radialCoordinate(x1, y1);\n var radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * curvature);\n var radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * curvature);\n var radialCoor4 = radialCoordinate(x2, y2);\n return {\n x1: radialCoor1.x || 0,\n y1: radialCoor1.y || 0,\n x2: radialCoor4.x || 0,\n y2: radialCoor4.y || 0,\n cpx1: radialCoor2.x || 0,\n cpy1: radialCoor2.y || 0,\n cpx2: radialCoor3.x || 0,\n cpy2: radialCoor3.y || 0\n };\n } else {\n x1 = sourceLayout.x;\n y1 = sourceLayout.y;\n x2 = targetLayout.x;\n y2 = targetLayout.y;\n\n if (orient === 'LR' || orient === 'RL') {\n cpx1 = x1 + (x2 - x1) * curvature;\n cpy1 = y1;\n cpx2 = x2 + (x1 - x2) * curvature;\n cpy2 = y2;\n }\n\n if (orient === 'TB' || orient === 'BT') {\n cpx1 = x1;\n cpy1 = y1 + (y2 - y1) * curvature;\n cpx2 = x2;\n cpy2 = y2 + (y1 - y2) * curvature;\n }\n }\n\n return {\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n };\n}\n\nexport default TreeView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Link lists and struct (graph or tree)\n */\nimport { curry, each, assert, extend, map, keys } from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\n\nfunction linkList(opt) {\n var mainData = opt.mainData;\n var datas = opt.datas;\n\n if (!datas) {\n datas = {\n main: mainData\n };\n opt.datasAttr = {\n main: 'data'\n };\n }\n\n opt.datas = opt.mainData = null;\n linkAll(mainData, datas, opt); // Porxy data original methods.\n\n each(datas, function (data) {\n each(mainData.TRANSFERABLE_METHODS, function (methodName) {\n data.wrapMethod(methodName, curry(transferInjection, opt));\n });\n }); // Beyond transfer, additional features should be added to `cloneShallow`.\n\n mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt)); // Only mainData trigger change, because struct.update may trigger\n // another changable methods, which may bring about dead lock.\n\n each(mainData.CHANGABLE_METHODS, function (methodName) {\n mainData.wrapMethod(methodName, curry(changeInjection, opt));\n }); // Make sure datas contains mainData.\n\n assert(datas[mainData.dataType] === mainData);\n}\n\nfunction transferInjection(opt, res) {\n if (isMainData(this)) {\n // Transfer datas to new main data.\n var datas = extend({}, inner(this).datas);\n datas[this.dataType] = res;\n linkAll(res, datas, opt);\n } else {\n // Modify the reference in main data to point newData.\n linkSingle(res, this.dataType, inner(this).mainData, opt);\n }\n\n return res;\n}\n\nfunction changeInjection(opt, res) {\n opt.struct && opt.struct.update();\n return res;\n}\n\nfunction cloneShallowInjection(opt, res) {\n // cloneShallow, which brings about some fragilities, may be inappropriate\n // to be exposed as an API. So for implementation simplicity we can make\n // the restriction that cloneShallow of not-mainData should not be invoked\n // outside, but only be invoked here.\n each(inner(res).datas, function (data, dataType) {\n data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);\n });\n return res;\n}\n/**\n * Supplement method to List.\n *\n * @public\n * @param [dataType] If not specified, return mainData.\n */\n\n\nfunction getLinkedData(dataType) {\n var mainData = inner(this).mainData;\n return dataType == null || mainData == null ? mainData : inner(mainData).datas[dataType];\n}\n/**\n * Get list of all linked data\n */\n\n\nfunction getLinkedDataAll() {\n var mainData = inner(this).mainData;\n return mainData == null ? [{\n data: mainData\n }] : map(keys(inner(mainData).datas), function (type) {\n return {\n type: type,\n data: inner(mainData).datas[type]\n };\n });\n}\n\nfunction isMainData(data) {\n return inner(data).mainData === data;\n}\n\nfunction linkAll(mainData, datas, opt) {\n inner(mainData).datas = {};\n each(datas, function (data, dataType) {\n linkSingle(data, dataType, mainData, opt);\n });\n}\n\nfunction linkSingle(data, dataType, mainData, opt) {\n inner(mainData).datas[dataType] = data;\n inner(data).mainData = mainData;\n data.dataType = dataType;\n\n if (opt.struct) {\n data[opt.structAttr] = opt.struct;\n opt.struct[opt.datasAttr[dataType]] = data;\n } // Supplement method.\n\n\n data.getLinkedData = getLinkedData;\n data.getLinkedDataAll = getLinkedDataAll;\n}\n\nexport default linkList;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Tree data structure\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport linkList from './helper/linkList';\nimport List from './List';\nimport createDimensions from './helper/createDimensions';\nimport { convertOptionIdName } from '../util/model';\n\nvar TreeNode =\n/** @class */\nfunction () {\n function TreeNode(name, hostTree) {\n this.depth = 0;\n this.height = 0;\n /**\n * Reference to list item.\n * Do not persistent dataIndex outside,\n * besause it may be changed by list.\n * If dataIndex -1,\n * this node is logical deleted (filtered) in list.\n */\n\n this.dataIndex = -1;\n this.children = [];\n this.viewChildren = [];\n this.isExpand = false;\n this.name = name || '';\n this.hostTree = hostTree;\n }\n /**\n * The node is removed.\n */\n\n\n TreeNode.prototype.isRemoved = function () {\n return this.dataIndex < 0;\n };\n\n TreeNode.prototype.eachNode = function (options, cb, context) {\n if (typeof options === 'function') {\n context = cb;\n cb = options;\n options = null;\n }\n\n options = options || {};\n\n if (zrUtil.isString(options)) {\n options = {\n order: options\n };\n }\n\n var order = options.order || 'preorder';\n var children = this[options.attr || 'children'];\n var suppressVisitSub;\n order === 'preorder' && (suppressVisitSub = cb.call(context, this));\n\n for (var i = 0; !suppressVisitSub && i < children.length; i++) {\n children[i].eachNode(options, cb, context);\n }\n\n order === 'postorder' && cb.call(context, this);\n };\n /**\n * Update depth and height of this subtree.\n */\n\n\n TreeNode.prototype.updateDepthAndHeight = function (depth) {\n var height = 0;\n this.depth = depth;\n\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n child.updateDepthAndHeight(depth + 1);\n\n if (child.height > height) {\n height = child.height;\n }\n }\n\n this.height = height + 1;\n };\n\n TreeNode.prototype.getNodeById = function (id) {\n if (this.getId() === id) {\n return this;\n }\n\n for (var i = 0, children = this.children, len = children.length; i < len; i++) {\n var res = children[i].getNodeById(id);\n\n if (res) {\n return res;\n }\n }\n };\n\n TreeNode.prototype.contains = function (node) {\n if (node === this) {\n return true;\n }\n\n for (var i = 0, children = this.children, len = children.length; i < len; i++) {\n var res = children[i].contains(node);\n\n if (res) {\n return res;\n }\n }\n };\n /**\n * @param includeSelf Default false.\n * @return order: [root, child, grandchild, ...]\n */\n\n\n TreeNode.prototype.getAncestors = function (includeSelf) {\n var ancestors = [];\n var node = includeSelf ? this : this.parentNode;\n\n while (node) {\n ancestors.push(node);\n node = node.parentNode;\n }\n\n ancestors.reverse();\n return ancestors;\n };\n\n TreeNode.prototype.getAncestorsIndices = function () {\n var indices = [];\n var currNode = this;\n\n while (currNode) {\n indices.push(currNode.dataIndex);\n currNode = currNode.parentNode;\n }\n\n indices.reverse();\n return indices;\n };\n\n TreeNode.prototype.getDescendantIndices = function () {\n var indices = [];\n this.eachNode(function (childNode) {\n indices.push(childNode.dataIndex);\n });\n return indices;\n };\n\n TreeNode.prototype.getValue = function (dimension) {\n var data = this.hostTree.data;\n return data.get(data.getDimension(dimension || 'value'), this.dataIndex);\n };\n\n TreeNode.prototype.setLayout = function (layout, merge) {\n this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);\n };\n /**\n * @return {Object} layout\n */\n\n\n TreeNode.prototype.getLayout = function () {\n return this.hostTree.data.getItemLayout(this.dataIndex);\n }; // @depcrecated\n // getModel(path: S): Model\n\n\n TreeNode.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var hostTree = this.hostTree;\n var itemModel = hostTree.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n }; // TODO: TYPE More specific model\n\n\n TreeNode.prototype.getLevelModel = function () {\n return (this.hostTree.levelModels || [])[this.depth];\n };\n\n TreeNode.prototype.setVisual = function (key, value) {\n this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, key, value);\n };\n /**\n * Get item visual\n * FIXME: make return type better\n */\n\n\n TreeNode.prototype.getVisual = function (key) {\n return this.hostTree.data.getItemVisual(this.dataIndex, key);\n };\n\n TreeNode.prototype.getRawIndex = function () {\n return this.hostTree.data.getRawIndex(this.dataIndex);\n };\n\n TreeNode.prototype.getId = function () {\n return this.hostTree.data.getId(this.dataIndex);\n };\n /**\n * if this is an ancestor of another node\n *\n * @param node another node\n * @return if is ancestor\n */\n\n\n TreeNode.prototype.isAncestorOf = function (node) {\n var parent = node.parentNode;\n\n while (parent) {\n if (parent === this) {\n return true;\n }\n\n parent = parent.parentNode;\n }\n\n return false;\n };\n /**\n * if this is an descendant of another node\n *\n * @param node another node\n * @return if is descendant\n */\n\n\n TreeNode.prototype.isDescendantOf = function (node) {\n return node !== this && node.isAncestorOf(this);\n };\n\n return TreeNode;\n}();\n\nexport { TreeNode };\n;\n\nvar Tree =\n/** @class */\nfunction () {\n function Tree(hostModel) {\n this.type = 'tree';\n this._nodes = [];\n this.hostModel = hostModel;\n }\n\n Tree.prototype.eachNode = function (options, cb, context) {\n this.root.eachNode(options, cb, context);\n };\n\n Tree.prototype.getNodeByDataIndex = function (dataIndex) {\n var rawIndex = this.data.getRawIndex(dataIndex);\n return this._nodes[rawIndex];\n };\n\n Tree.prototype.getNodeById = function (name) {\n return this.root.getNodeById(name);\n };\n /**\n * Update item available by list,\n * when list has been performed options like 'filterSelf' or 'map'.\n */\n\n\n Tree.prototype.update = function () {\n var data = this.data;\n var nodes = this._nodes;\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (var i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n };\n /**\n * Clear all layouts\n */\n\n\n Tree.prototype.clearLayouts = function () {\n this.data.clearItemLayouts();\n };\n /**\n * data node format:\n * {\n * name: ...\n * value: ...\n * children: [\n * {\n * name: ...\n * value: ...\n * children: ...\n * },\n * ...\n * ]\n * }\n */\n\n\n Tree.createTree = function (dataRoot, hostModel, beforeLink) {\n var tree = new Tree(hostModel);\n var listData = [];\n var dimMax = 1;\n buildHierarchy(dataRoot);\n\n function buildHierarchy(dataNode, parentNode) {\n var value = dataNode.value;\n dimMax = Math.max(dimMax, zrUtil.isArray(value) ? value.length : 1);\n listData.push(dataNode);\n var node = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);\n parentNode ? addChild(node, parentNode) : tree.root = node;\n\n tree._nodes.push(node);\n\n var children = dataNode.children;\n\n if (children) {\n for (var i = 0; i < children.length; i++) {\n buildHierarchy(children[i], node);\n }\n }\n }\n\n tree.root.updateDepthAndHeight(0);\n var dimensionsInfo = createDimensions(listData, {\n coordDimensions: ['value'],\n dimensionsCount: dimMax\n });\n var list = new List(dimensionsInfo, hostModel);\n list.initData(listData);\n beforeLink && beforeLink(list);\n linkList({\n mainData: list,\n struct: tree,\n structAttr: 'tree'\n });\n tree.update();\n return tree;\n };\n\n return Tree;\n}();\n/**\n * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,\n * so this function is not ready and not necessary to be public.\n */\n\n\nfunction addChild(child, node) {\n var children = node.children;\n\n if (child.parentNode === node) {\n return;\n }\n\n children.push(child);\n child.parentNode = node;\n}\n\nexport default Tree;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) {\n if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) {\n var root = seriesModel.getData().tree.root;\n var targetNode = payload.targetNode;\n\n if (typeof targetNode === 'string') {\n targetNode = root.getNodeById(targetNode);\n }\n\n if (targetNode && root.contains(targetNode)) {\n return {\n node: targetNode\n };\n }\n\n var targetNodeId = payload.targetNodeId;\n\n if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {\n return {\n node: targetNode\n };\n }\n }\n} // Not includes the given node at the last item.\n\nexport function getPathToRoot(node) {\n var path = [];\n\n while (node) {\n node = node.parentNode;\n node && path.push(node);\n }\n\n return path.reverse();\n}\nexport function aboveViewRoot(viewRoot, node) {\n var viewPath = getPathToRoot(viewRoot);\n return zrUtil.indexOf(viewPath, node) >= 0;\n} // From root to the input node (the input node will be included).\n\nexport function wrapTreePathInfo(node, seriesModel) {\n var treePathInfo = [];\n\n while (node) {\n var nodeDataIndex = node.dataIndex;\n treePathInfo.push({\n name: node.name,\n dataIndex: nodeDataIndex,\n value: seriesModel.getRawValue(nodeDataIndex)\n });\n node = node.parentNode;\n }\n\n treePathInfo.reverse();\n return treePathInfo;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\n\nvar TreeSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(TreeSeriesModel, _super);\n\n function TreeSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.hasSymbolVisual = true; // Do it self.\n\n _this.ignoreStyleOnData = true;\n return _this;\n }\n /**\n * Init a tree data structure from data in option series\n * @param option the object used to config echarts view\n * @return storage initial data\n */\n\n\n TreeSeriesModel.prototype.getInitialData = function (option) {\n //create an virtual root\n var root = {\n name: option.name,\n children: option.data\n };\n var leaves = option.leaves || {};\n var leavesModel = new Model(leaves, this, this.ecModel);\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n\n if (!(node && node.children.length && node.isExpand)) {\n model.parentModel = leavesModel;\n }\n\n return model;\n });\n }\n\n var treeDepth = 0;\n tree.eachNode('preorder', function (node) {\n if (node.depth > treeDepth) {\n treeDepth = node.depth;\n }\n });\n var expandAndCollapse = option.expandAndCollapse;\n var expandTreeDepth = expandAndCollapse && option.initialTreeDepth >= 0 ? option.initialTreeDepth : treeDepth;\n tree.root.eachNode('preorder', function (node) {\n var item = node.hostTree.data.getRawDataItem(node.dataIndex); // Add item.collapsed != null, because users can collapse node original in the series.data.\n\n node.isExpand = item && item.collapsed != null ? !item.collapsed : node.depth <= expandTreeDepth;\n });\n return tree.data;\n };\n /**\n * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.\n * @returns {string} orient\n */\n\n\n TreeSeriesModel.prototype.getOrient = function () {\n var orient = this.get('orient');\n\n if (orient === 'horizontal') {\n orient = 'LR';\n } else if (orient === 'vertical') {\n orient = 'TB';\n }\n\n return orient;\n };\n\n TreeSeriesModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n TreeSeriesModel.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n TreeSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var tree = this.getData().tree;\n var realRoot = tree.root.children[0];\n var node = tree.getNodeByDataIndex(dataIndex);\n var value = node.getValue();\n var name = node.name;\n\n while (node && node !== realRoot) {\n name = node.parentNode.name + '.' + name;\n node = node.parentNode;\n }\n\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value,\n noValue: isNaN(value) || value == null\n });\n }; // Add tree path to tooltip param\n\n\n TreeSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n return params;\n };\n\n TreeSeriesModel.type = 'series.tree'; // can support the position parameters 'left', 'top','right','bottom', 'width',\n // 'height' in the setOption() with 'merge' mode normal.\n\n TreeSeriesModel.layoutMode = 'box';\n TreeSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n // the position of the whole view\n left: '12%',\n top: '12%',\n right: '12%',\n bottom: '12%',\n // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'\n layout: 'orthogonal',\n // value can be 'polyline'\n edgeShape: 'curve',\n edgeForkPosition: '50%',\n // true | false | 'move' | 'scale', see module:component/helper/RoamController.\n roam: false,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.4,\n // Default on center of graph\n center: null,\n zoom: 1,\n orient: 'LR',\n symbol: 'emptyCircle',\n symbolSize: 7,\n expandAndCollapse: true,\n initialTreeDepth: 2,\n lineStyle: {\n color: '#ccc',\n width: 1.5,\n curveness: 0.5\n },\n itemStyle: {\n color: 'lightsteelblue',\n // borderColor: '#c23531',\n borderWidth: 1.5\n },\n label: {\n show: true\n },\n animationEasing: 'linear',\n animationDuration: 700,\n animationDurationUpdate: 500\n };\n return TreeSeriesModel;\n}(SeriesModel);\n\nexport default TreeSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Traverse the tree from bottom to top and do something\n */\nfunction eachAfter(root, callback, separation) {\n var nodes = [root];\n var next = [];\n var node;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n next.push(node);\n\n if (node.isExpand) {\n var children = node.children;\n\n if (children.length) {\n for (var i = 0; i < children.length; i++) {\n nodes.push(children[i]);\n }\n }\n }\n }\n\n while (node = next.pop()) {\n // jshint ignore:line\n callback(node, separation);\n }\n}\n/**\n * Traverse the tree from top to bottom and do something\n */\n\n\nfunction eachBefore(root, callback) {\n var nodes = [root];\n var node;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n callback(node);\n\n if (node.isExpand) {\n var children = node.children;\n\n if (children.length) {\n for (var i = children.length - 1; i >= 0; i--) {\n nodes.push(children[i]);\n }\n }\n }\n }\n}\n\nexport { eachAfter, eachBefore };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { eachAfter, eachBefore } from './traversalHelper';\nimport { init, firstWalk, secondWalk, separation as sep, radialCoordinate, getViewRect } from './layoutHelper';\nexport default function treeLayout(ecModel, api) {\n ecModel.eachSeriesByType('tree', function (seriesModel) {\n commonLayout(seriesModel, api);\n });\n}\n\nfunction commonLayout(seriesModel, api) {\n var layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n var layout = seriesModel.get('layout');\n var width = 0;\n var height = 0;\n var separation = null;\n\n if (layout === 'radial') {\n width = 2 * Math.PI;\n height = Math.min(layoutInfo.height, layoutInfo.width) / 2;\n separation = sep(function (node1, node2) {\n return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;\n });\n } else {\n width = layoutInfo.width;\n height = layoutInfo.height;\n separation = sep();\n }\n\n var virtualRoot = seriesModel.getData().tree.root;\n var realRoot = virtualRoot.children[0];\n\n if (realRoot) {\n init(virtualRoot);\n eachAfter(realRoot, firstWalk, separation);\n virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim;\n eachBefore(realRoot, secondWalk);\n var left_1 = realRoot;\n var right_1 = realRoot;\n var bottom_1 = realRoot;\n eachBefore(realRoot, function (node) {\n var x = node.getLayout().x;\n\n if (x < left_1.getLayout().x) {\n left_1 = node;\n }\n\n if (x > right_1.getLayout().x) {\n right_1 = node;\n }\n\n if (node.depth > bottom_1.depth) {\n bottom_1 = node;\n }\n });\n var delta = left_1 === right_1 ? 1 : separation(left_1, right_1) / 2;\n var tx_1 = delta - left_1.getLayout().x;\n var kx_1 = 0;\n var ky_1 = 0;\n var coorX_1 = 0;\n var coorY_1 = 0;\n\n if (layout === 'radial') {\n kx_1 = width / (right_1.getLayout().x + delta + tx_1); // here we use (node.depth - 1), bucause the real root's depth is 1\n\n ky_1 = height / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorX_1 = (node.getLayout().x + tx_1) * kx_1;\n coorY_1 = (node.depth - 1) * ky_1;\n var finalCoor = radialCoordinate(coorX_1, coorY_1);\n node.setLayout({\n x: finalCoor.x,\n y: finalCoor.y,\n rawX: coorX_1,\n rawY: coorY_1\n }, true);\n });\n } else {\n var orient_1 = seriesModel.getOrient();\n\n if (orient_1 === 'RL' || orient_1 === 'LR') {\n ky_1 = height / (right_1.getLayout().x + delta + tx_1);\n kx_1 = width / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorY_1 = (node.getLayout().x + tx_1) * ky_1;\n coorX_1 = orient_1 === 'LR' ? (node.depth - 1) * kx_1 : width - (node.depth - 1) * kx_1;\n node.setLayout({\n x: coorX_1,\n y: coorY_1\n }, true);\n });\n } else if (orient_1 === 'TB' || orient_1 === 'BT') {\n kx_1 = width / (right_1.getLayout().x + delta + tx_1);\n ky_1 = height / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorX_1 = (node.getLayout().x + tx_1) * kx_1;\n coorY_1 = orient_1 === 'TB' ? (node.depth - 1) * ky_1 : height - (node.depth - 1) * ky_1;\n node.setLayout({\n x: coorX_1,\n y: coorY_1\n }, true);\n });\n }\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nexport default function treeVisual(ecModel) {\n ecModel.eachSeriesByType('tree', function (seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n tree.eachNode(function (node) {\n var model = node.getModel(); // TODO Optimize\n\n var style = model.getModel('itemStyle').getItemStyle();\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nexport function installTreeAction(registers) {\n registers.registerAction({\n type: 'treeExpandAndCollapse',\n event: 'treeExpandAndCollapse',\n update: 'update'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'tree',\n query: payload\n }, function (seriesModel) {\n var dataIndex = payload.dataIndex;\n var tree = seriesModel.getData().tree;\n var node = tree.getNodeByDataIndex(dataIndex);\n node.isExpand = !node.isExpand;\n });\n });\n registers.registerAction({\n type: 'treeRoam',\n event: 'treeRoam',\n // Here we set 'none' instead of 'update', because roam action\n // just need to update the transform matrix without having to recalculate\n // the layout. So don't need to go through the whole update process, such\n // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.\n update: 'none'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'tree',\n query: payload\n }, function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var res = updateCenterAndZoom(coordSys, payload);\n seriesModel.setCenter && seriesModel.setCenter(res.center);\n seriesModel.setZoom && seriesModel.setZoom(res.zoom);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport TreeView from './TreeView';\nimport TreeSeriesModel from './TreeSeries';\nimport treeLayout from './treeLayout';\nimport treeVisual from './treeVisual';\nimport { installTreeAction } from './treeAction';\nexport function install(registers) {\n registers.registerChartView(TreeView);\n registers.registerSeriesModel(TreeSeriesModel);\n registers.registerLayout(treeLayout);\n registers.registerVisual(treeVisual);\n installTreeAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as helper from '../helper/treeHelper';\n\nvar noop = function () {};\n\nvar actionTypes = ['treemapZoomToNode', 'treemapRender', 'treemapMove'];\nexport function installTreemapAction(registers) {\n for (var i = 0; i < actionTypes.length; i++) {\n registers.registerAction({\n type: actionTypes[i],\n update: 'updateView'\n }, noop);\n }\n\n registers.registerAction({\n type: 'treemapRootToNode',\n update: 'updateView'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'treemap',\n query: payload\n }, handleRootToNode);\n\n function handleRootToNode(model, index) {\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, model);\n\n if (targetInfo) {\n var originViewRoot = model.getViewRoot();\n\n if (originViewRoot) {\n payload.direction = helper.aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';\n }\n\n model.resetViewRoot(targetInfo.node);\n }\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getDecalFromPalette } from '../../model/mixin/palette';\nexport default function enableAriaDecalForTree(seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n var decalPaletteScope = {};\n tree.eachNode(function (node) {\n // Use decal of level 1 node\n var current = node;\n\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n var decal = getDecalFromPalette(seriesModel.ecModel, current.name || current.dataIndex + '', decalPaletteScope);\n node.setVisual('decal', decal);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport { normalizeToArray } from '../../util/model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\nvar TreemapSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(TreemapSeriesModel, _super);\n\n function TreemapSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreemapSeriesModel.type;\n _this.preventUsingHoverLayer = true;\n return _this;\n }\n /**\n * @override\n */\n\n\n TreemapSeriesModel.prototype.getInitialData = function (option, ecModel) {\n // Create a virtual root.\n var root = {\n name: option.name,\n children: option.data\n };\n completeTreeValue(root);\n var levels = option.levels || []; // Used in \"visual priority\" in `treemapVisual.js`.\n // This way is a little tricky, must satisfy the precondition:\n // 1. There is no `treeNode.getModel('itemStyle.xxx')` used.\n // 2. The `Model.prototype.getModel()` will not use any clone-like way.\n\n var designatedVisualItemStyle = this.designatedVisualItemStyle = {};\n var designatedVisualModel = new Model({\n itemStyle: designatedVisualItemStyle\n }, this, ecModel);\n levels = option.levels = setDefault(levels, ecModel);\n var levelModels = zrUtil.map(levels || [], function (levelDefine) {\n return new Model(levelDefine, designatedVisualModel, ecModel);\n }, this); // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n var levelModel = node ? levelModels[node.depth] : null; // If no levelModel, we also need `designatedVisualModel`.\n\n model.parentModel = levelModel || designatedVisualModel;\n return model;\n });\n }\n\n return tree.data;\n };\n\n TreemapSeriesModel.prototype.optionUpdated = function () {\n this.resetViewRoot();\n };\n /**\n * @override\n * @param {number} dataIndex\n * @param {boolean} [mutipleSeries=false]\n */\n\n\n TreemapSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var name = data.getName(dataIndex);\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value\n });\n };\n /**\n * Add tree path to tooltip param\n *\n * @override\n * @param {number} dataIndex\n * @return {Object}\n */\n\n\n TreemapSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n return params;\n };\n /**\n * @public\n * @param {Object} layoutInfo {\n * x: containerGroup x\n * y: containerGroup y\n * width: containerGroup width\n * height: containerGroup height\n * }\n */\n\n\n TreemapSeriesModel.prototype.setLayoutInfo = function (layoutInfo) {\n /**\n * @readOnly\n * @type {Object}\n */\n this.layoutInfo = this.layoutInfo || {};\n zrUtil.extend(this.layoutInfo, layoutInfo);\n };\n /**\n * @param {string} id\n * @return {number} index\n */\n\n\n TreemapSeriesModel.prototype.mapIdToIndex = function (id) {\n // A feature is implemented:\n // index is monotone increasing with the sequence of\n // input id at the first time.\n // This feature can make sure that each data item and its\n // mapped color have the same index between data list and\n // color list at the beginning, which is useful for user\n // to adjust data-color mapping.\n\n /**\n * @private\n * @type {Object}\n */\n var idIndexMap = this._idIndexMap;\n\n if (!idIndexMap) {\n idIndexMap = this._idIndexMap = zrUtil.createHashMap();\n /**\n * @private\n * @type {number}\n */\n\n this._idIndexMapCount = 0;\n }\n\n var index = idIndexMap.get(id);\n\n if (index == null) {\n idIndexMap.set(id, index = this._idIndexMapCount++);\n }\n\n return index;\n };\n\n TreemapSeriesModel.prototype.getViewRoot = function () {\n return this._viewRoot;\n };\n\n TreemapSeriesModel.prototype.resetViewRoot = function (viewRoot) {\n viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;\n var root = this.getRawData().tree.root;\n\n if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {\n this._viewRoot = root;\n }\n };\n\n TreemapSeriesModel.prototype.enableAriaDecal = function () {\n enableAriaDecalForTree(this);\n };\n\n TreemapSeriesModel.type = 'series.treemap';\n TreemapSeriesModel.layoutMode = 'box';\n TreemapSeriesModel.defaultOption = {\n // Disable progressive rendering\n progressive: 0,\n // size: ['80%', '80%'], // deprecated, compatible with ec2.\n left: 'center',\n top: 'middle',\n width: '80%',\n height: '80%',\n sort: true,\n clipWindow: 'origin',\n squareRatio: 0.5 * (1 + Math.sqrt(5)),\n leafDepth: null,\n drillDownIcon: '▶',\n // to align specialized icon. ▷▶❒❐▼✚\n zoomToNodeRatio: 0.32 * 0.32,\n roam: true,\n nodeClick: 'zoomToNode',\n animation: true,\n animationDurationUpdate: 900,\n animationEasing: 'quinticInOut',\n breadcrumb: {\n show: true,\n height: 22,\n left: 'center',\n top: 'bottom',\n // right\n // bottom\n emptyItemWidth: 25,\n itemStyle: {\n color: 'rgba(0,0,0,0.7)',\n textStyle: {\n color: '#fff'\n }\n }\n },\n label: {\n show: true,\n // Do not use textDistance, for ellipsis rect just the same as treemap node rect.\n distance: 0,\n padding: 5,\n position: 'inside',\n // formatter: null,\n color: '#fff',\n overflow: 'truncate' // align\n // verticalAlign\n\n },\n upperLabel: {\n show: false,\n position: [0, '50%'],\n height: 20,\n // formatter: null,\n // color: '#fff',\n overflow: 'truncate',\n // align: null,\n verticalAlign: 'middle'\n },\n itemStyle: {\n color: null,\n colorAlpha: null,\n colorSaturation: null,\n borderWidth: 0,\n gapWidth: 0,\n borderColor: '#fff',\n borderColorSaturation: null // If specified, borderColor will be ineffective, and the\n // border color is evaluated by color of current node and\n // borderColorSaturation.\n\n },\n emphasis: {\n upperLabel: {\n show: true,\n position: [0, '50%'],\n ellipsis: true,\n verticalAlign: 'middle'\n }\n },\n visualDimension: 0,\n visualMin: null,\n visualMax: null,\n color: [],\n // level[n].color (if necessary).\n // + Specify color list of each level. level[0].color would be global\n // color list if not specified. (see method `setDefault`).\n // + But set as a empty array to forbid fetch color from global palette\n // when using nodeModel.get('color'), otherwise nodes on deep level\n // will always has color palette set and are not able to inherit color\n // from parent node.\n // + TreemapSeries.color can not be set as 'none', otherwise effect\n // legend color fetching (see seriesColor.js).\n colorAlpha: null,\n colorSaturation: null,\n colorMappingBy: 'index',\n visibleMin: 10,\n // be rendered. Only works when sort is 'asc' or 'desc'.\n childrenVisibleMin: null,\n // grandchildren will not show.\n // Why grandchildren? If not grandchildren but children,\n // some siblings show children and some not,\n // the appearance may be mess and not consistent,\n levels: [] // Each item: {\n // visibleMin, itemStyle, visualDimension, label\n // }\n // data: {\n // value: [],\n // children: [],\n // link: 'http://xxx.xxx.xxx',\n // target: 'blank' or 'self'\n // }\n\n };\n return TreemapSeriesModel;\n}(SeriesModel);\n/**\n * @param {Object} dataNode\n */\n\n\nfunction completeTreeValue(dataNode) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n var sum = 0;\n zrUtil.each(dataNode.children, function (child) {\n completeTreeValue(child);\n var childValue = child.value;\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue;\n });\n var thisValue = dataNode.value;\n\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n } // Value should not less than 0.\n\n\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;\n}\n/**\n * set default to level configuration\n */\n\n\nfunction setDefault(levels, ecModel) {\n var globalColorList = normalizeToArray(ecModel.get('color'));\n var globalDecalList = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n var hasDecalDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n var modelDecal = model.get('decal');\n\n if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n\n if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') {\n hasDecalDefine = true;\n }\n });\n var level0 = levels[0] || (levels[0] = {});\n\n if (!hasColorDefine) {\n level0.color = globalColorList.slice();\n }\n\n if (!hasDecalDefine && globalDecalList) {\n level0.decal = globalDecalList.slice();\n }\n\n return levels;\n}\n\nexport default TreemapSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport * as layout from '../../util/layout';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport { curry, defaults } from 'zrender/lib/core/util';\nimport { convertOptionIdName } from '../../util/model';\nimport { Z2_EMPHASIS_LIFT } from '../../util/states';\nvar TEXT_PADDING = 8;\nvar ITEM_GAP = 8;\nvar ARRAY_LENGTH = 5;\n\nvar Breadcrumb =\n/** @class */\nfunction () {\n function Breadcrumb(containerGroup) {\n this.group = new graphic.Group();\n containerGroup.add(this.group);\n }\n\n Breadcrumb.prototype.render = function (seriesModel, api, targetNode, onSelect) {\n var model = seriesModel.getModel('breadcrumb');\n var thisGroup = this.group;\n thisGroup.removeAll();\n\n if (!model.get('show') || !targetNode) {\n return;\n }\n\n var normalStyleModel = model.getModel('itemStyle'); // let emphasisStyleModel = model.getModel('emphasis.itemStyle');\n\n var textStyleModel = normalStyleModel.getModel('textStyle');\n var layoutParam = {\n pos: {\n left: model.get('left'),\n right: model.get('right'),\n top: model.get('top'),\n bottom: model.get('bottom')\n },\n box: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n emptyItemWidth: model.get('emptyItemWidth'),\n totalWidth: 0,\n renderList: []\n };\n\n this._prepare(targetNode, layoutParam, textStyleModel);\n\n this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect);\n\n layout.positionElement(thisGroup, layoutParam.pos, layoutParam.box);\n };\n /**\n * Prepare render list and total width\n * @private\n */\n\n\n Breadcrumb.prototype._prepare = function (targetNode, layoutParam, textStyleModel) {\n for (var node = targetNode; node; node = node.parentNode) {\n var text = convertOptionIdName(node.getModel().get('name'), '');\n var textRect = textStyleModel.getTextRect(text);\n var itemWidth = Math.max(textRect.width + TEXT_PADDING * 2, layoutParam.emptyItemWidth);\n layoutParam.totalWidth += itemWidth + ITEM_GAP;\n layoutParam.renderList.push({\n node: node,\n text: text,\n width: itemWidth\n });\n }\n };\n /**\n * @private\n */\n\n\n Breadcrumb.prototype._renderContent = function (seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect) {\n // Start rendering.\n var lastX = 0;\n var emptyItemWidth = layoutParam.emptyItemWidth;\n var height = seriesModel.get(['breadcrumb', 'height']);\n var availableSize = layout.getAvailableSize(layoutParam.pos, layoutParam.box);\n var totalWidth = layoutParam.totalWidth;\n var renderList = layoutParam.renderList;\n\n for (var i = renderList.length - 1; i >= 0; i--) {\n var item = renderList[i];\n var itemNode = item.node;\n var itemWidth = item.width;\n var text = item.text; // Hdie text and shorten width if necessary.\n\n if (totalWidth > availableSize.width) {\n totalWidth -= itemWidth - emptyItemWidth;\n itemWidth = emptyItemWidth;\n text = null;\n }\n\n var el = new graphic.Polygon({\n shape: {\n points: makeItemPoints(lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0)\n },\n style: defaults(normalStyleModel.getItemStyle(), {\n lineJoin: 'bevel'\n }),\n textContent: new graphic.Text({\n style: {\n text: text,\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }\n }),\n textConfig: {\n position: 'inside'\n },\n z2: Z2_EMPHASIS_LIFT * 1e4,\n onclick: curry(onSelect, itemNode)\n });\n el.disableLabelAnimation = true;\n this.group.add(el);\n packEventData(el, seriesModel, itemNode);\n lastX += itemWidth + ITEM_GAP;\n }\n };\n\n Breadcrumb.prototype.remove = function () {\n this.group.removeAll();\n };\n\n return Breadcrumb;\n}();\n\nfunction makeItemPoints(x, y, itemWidth, itemHeight, head, tail) {\n var points = [[head ? x : x - ARRAY_LENGTH, y], [x + itemWidth, y], [x + itemWidth, y + itemHeight], [head ? x : x - ARRAY_LENGTH, y + itemHeight]];\n !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);\n !head && points.push([x, y + itemHeight / 2]);\n return points;\n} // Package custom mouse event.\n\n\nfunction packEventData(el, seriesModel, itemNode) {\n getECData(el).eventData = {\n componentType: 'series',\n componentSubType: 'treemap',\n componentIndex: seriesModel.componentIndex,\n seriesIndex: seriesModel.componentIndex,\n seriesName: seriesModel.name,\n seriesType: 'treemap',\n selfType: 'breadcrumb',\n nodeData: {\n dataIndex: itemNode && itemNode.dataIndex,\n name: itemNode && itemNode.name\n },\n treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)\n };\n}\n\nexport default Breadcrumb;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Animate multiple elements with a single done-callback.\n *\n * @example\n * animation\n * .createWrap()\n * .add(el1, {x: 10, y: 10})\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\n * .done(function () { // done })\n * .start('cubicOut');\n */\nvar AnimationWrap =\n/** @class */\nfunction () {\n function AnimationWrap() {\n this._storage = [];\n this._elExistsMap = {};\n }\n /**\n * Caution: a el can only be added once, otherwise 'done'\n * might not be called. This method checks this (by el.id),\n * suppresses adding and returns false when existing el found.\n *\n * @return Whether adding succeeded.\n */\n\n\n AnimationWrap.prototype.add = function (el, target, duration, delay, easing) {\n if (this._elExistsMap[el.id]) {\n return false;\n }\n\n this._elExistsMap[el.id] = true;\n\n this._storage.push({\n el: el,\n target: target,\n duration: duration,\n delay: delay,\n easing: easing\n });\n\n return true;\n };\n /**\n * Only execute when animation done/aborted.\n */\n\n\n AnimationWrap.prototype.finished = function (callback) {\n this._finishedCallback = callback;\n return this;\n };\n /**\n * Will stop exist animation firstly.\n */\n\n\n AnimationWrap.prototype.start = function () {\n var _this = this;\n\n var count = this._storage.length;\n\n var checkTerminate = function () {\n count--;\n\n if (count <= 0) {\n // Guard.\n _this._storage.length = 0;\n _this._elExistsMap = {};\n _this._finishedCallback && _this._finishedCallback();\n }\n };\n\n for (var i = 0, len = this._storage.length; i < len; i++) {\n var item = this._storage[i];\n item.el.animateTo(item.target, {\n duration: item.duration,\n delay: item.delay,\n easing: item.easing,\n setToFinal: true,\n done: checkTerminate,\n aborted: checkTerminate\n });\n }\n\n return this;\n };\n\n return AnimationWrap;\n}();\n\nexport function createWrap() {\n return new AnimationWrap();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { bind, each, indexOf, curry, extend, normalizeCssArray, isFunction } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { isHighDownDispatcher, setAsHighDownDispatcher, setDefaultStateProxy, enableHoverFocus, Z2_EMPHASIS_LIFT } from '../../util/states';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as helper from '../helper/treeHelper';\nimport Breadcrumb from './Breadcrumb';\nimport RoamController from '../../component/helper/RoamController';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as animationUtil from '../../util/animation';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport ChartView from '../../view/Chart';\nimport Displayable from 'zrender/lib/graphic/Displayable';\nimport { makeInner, convertOptionIdName } from '../../util/model';\nimport { windowOpen } from '../../util/format';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nvar Group = graphic.Group;\nvar Rect = graphic.Rect;\nvar DRAG_THRESHOLD = 3;\nvar PATH_LABEL_NOAMAL = 'label';\nvar PATH_UPPERLABEL_NORMAL = 'upperLabel'; // Should larger than emphasis states lift z\n\nvar Z2_BASE = Z2_EMPHASIS_LIFT * 10; // Should bigger than every z2.\n\nvar Z2_BG = Z2_EMPHASIS_LIFT * 2;\nvar Z2_CONTENT = Z2_EMPHASIS_LIFT * 3;\nvar getStateItemStyle = makeStyleMapper([['fill', 'color'], // `borderColor` and `borderWidth` has been occupied,\n// so use `stroke` to indicate the stroke of the rect.\n['stroke', 'strokeColor'], ['lineWidth', 'strokeWidth'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n]);\n\nvar getItemStyleNormal = function (model) {\n // Normal style props should include emphasis style props.\n var itemStyle = getStateItemStyle(model); // Clear styles set by emphasis.\n\n itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;\n return itemStyle;\n};\n\nvar inner = makeInner();\n\nvar TreemapView =\n/** @class */\nfunction (_super) {\n __extends(TreemapView, _super);\n\n function TreemapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreemapView.type;\n _this._state = 'ready';\n _this._storage = createStorage();\n return _this;\n }\n /**\n * @override\n */\n\n\n TreemapView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var models = ecModel.findComponents({\n mainType: 'series',\n subType: 'treemap',\n query: payload\n });\n\n if (indexOf(models, seriesModel) < 0) {\n return;\n }\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, seriesModel);\n var payloadType = payload && payload.type;\n var layoutInfo = seriesModel.layoutInfo;\n var isInit = !this._oldTree;\n var thisStorage = this._storage; // Mark new root when action is treemapRootToNode.\n\n var reRoot = payloadType === 'treemapRootToNode' && targetInfo && thisStorage ? {\n rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],\n direction: payload.direction\n } : null;\n\n var containerGroup = this._giveContainerGroup(layoutInfo);\n\n var renderResult = this._doRender(containerGroup, seriesModel, reRoot);\n\n !isInit && (!payloadType || payloadType === 'treemapZoomToNode' || payloadType === 'treemapRootToNode') ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot) : renderResult.renderFinally();\n\n this._resetController(api);\n\n this._renderBreadcrumb(seriesModel, api, targetInfo);\n };\n\n TreemapView.prototype._giveContainerGroup = function (layoutInfo) {\n var containerGroup = this._containerGroup;\n\n if (!containerGroup) {\n // FIXME\n // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。\n containerGroup = this._containerGroup = new Group();\n\n this._initEvents(containerGroup);\n\n this.group.add(containerGroup);\n }\n\n containerGroup.x = layoutInfo.x;\n containerGroup.y = layoutInfo.y;\n return containerGroup;\n };\n\n TreemapView.prototype._doRender = function (containerGroup, seriesModel, reRoot) {\n var thisTree = seriesModel.getData().tree;\n var oldTree = this._oldTree; // Clear last shape records.\n\n var lastsForAnimation = createStorage();\n var thisStorage = createStorage();\n var oldStorage = this._storage;\n var willInvisibleEls = [];\n\n function doRenderNode(thisNode, oldNode, parentGroup, depth) {\n return renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth);\n } // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),\n // the oldTree is actually losted, so we can not find all of the old graphic\n // elements from tree. So we use this stragegy: make element storage, move\n // from old storage to new storage, clear old storage.\n\n\n dualTravel(thisTree.root ? [thisTree.root] : [], oldTree && oldTree.root ? [oldTree.root] : [], containerGroup, thisTree === oldTree || !oldTree, 0); // Process all removing.\n\n var willDeleteEls = clearStorage(oldStorage);\n this._oldTree = thisTree;\n this._storage = thisStorage;\n return {\n lastsForAnimation: lastsForAnimation,\n willDeleteEls: willDeleteEls,\n renderFinally: renderFinally\n };\n\n function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) {\n // When 'render' is triggered by action,\n // 'this' and 'old' may be the same tree,\n // we use rawIndex in that case.\n if (sameTree) {\n oldViewChildren = thisViewChildren;\n each(thisViewChildren, function (child, index) {\n !child.isRemoved() && processNode(index, index);\n });\n } // Diff hierarchically (diff only in each subtree, but not whole).\n // because, consistency of view is important.\n else {\n new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey).add(processNode).update(processNode).remove(curry(processNode, null)).execute();\n }\n\n function getKey(node) {\n // Identify by name or raw index.\n return node.getId();\n }\n\n function processNode(newIndex, oldIndex) {\n var thisNode = newIndex != null ? thisViewChildren[newIndex] : null;\n var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;\n var group = doRenderNode(thisNode, oldNode, parentGroup, depth);\n group && dualTravel(thisNode && thisNode.viewChildren || [], oldNode && oldNode.viewChildren || [], group, sameTree, depth + 1);\n }\n }\n\n function clearStorage(storage) {\n var willDeleteEls = createStorage();\n storage && each(storage, function (store, storageName) {\n var delEls = willDeleteEls[storageName];\n each(store, function (el) {\n el && (delEls.push(el), inner(el).willDelete = true);\n });\n });\n return willDeleteEls;\n }\n\n function renderFinally() {\n each(willDeleteEls, function (els) {\n each(els, function (el) {\n el.parent && el.parent.remove(el);\n });\n });\n each(willInvisibleEls, function (el) {\n el.invisible = true; // Setting invisible is for optimizing, so no need to set dirty,\n // just mark as invisible.\n\n el.dirty();\n });\n }\n };\n\n TreemapView.prototype._doAnimation = function (containerGroup, renderResult, seriesModel, reRoot) {\n if (!seriesModel.get('animation')) {\n return;\n }\n\n var durationOption = seriesModel.get('animationDurationUpdate');\n var easingOption = seriesModel.get('animationEasing'); // TODO: do not support function until necessary.\n\n var duration = (isFunction(durationOption) ? 0 : durationOption) || 0;\n var easing = (isFunction(easingOption) ? null : easingOption) || 'cubicOut';\n var animationWrap = animationUtil.createWrap(); // Make delete animations.\n\n each(renderResult.willDeleteEls, function (store, storageName) {\n each(store, function (el, rawIndex) {\n if (el.invisible) {\n return;\n }\n\n var parent = el.parent; // Always has parent, and parent is nodeGroup.\n\n var target;\n var innerStore = inner(parent);\n\n if (reRoot && reRoot.direction === 'drillDown') {\n target = parent === reRoot.rootNodeGroup // This is the content element of view root.\n // Only `content` will enter this branch, because\n // `background` and `nodeGroup` will not be deleted.\n ? {\n shape: {\n x: 0,\n y: 0,\n width: innerStore.nodeWidth,\n height: innerStore.nodeHeight\n },\n style: {\n opacity: 0\n }\n } // Others.\n : {\n style: {\n opacity: 0\n }\n };\n } else {\n var targetX = 0;\n var targetY = 0;\n\n if (!innerStore.willDelete) {\n // Let node animate to right-bottom corner, cooperating with fadeout,\n // which is appropriate for user understanding.\n // Divided by 2 for reRoot rolling up effect.\n targetX = innerStore.nodeWidth / 2;\n targetY = innerStore.nodeHeight / 2;\n }\n\n target = storageName === 'nodeGroup' ? {\n x: targetX,\n y: targetY,\n style: {\n opacity: 0\n }\n } : {\n shape: {\n x: targetX,\n y: targetY,\n width: 0,\n height: 0\n },\n style: {\n opacity: 0\n }\n };\n } // TODO: do not support delay until necessary.\n\n\n target && animationWrap.add(el, target, duration, 0, easing);\n });\n }); // Make other animations\n\n each(this._storage, function (store, storageName) {\n each(store, function (el, rawIndex) {\n var last = renderResult.lastsForAnimation[storageName][rawIndex];\n var target = {};\n\n if (!last) {\n return;\n }\n\n if (el instanceof graphic.Group) {\n if (last.oldX != null) {\n target.x = el.x;\n target.y = el.y;\n el.x = last.oldX;\n el.y = last.oldY;\n }\n } else {\n if (last.oldShape) {\n target.shape = extend({}, el.shape);\n el.setShape(last.oldShape);\n }\n\n if (last.fadein) {\n el.setStyle('opacity', 0);\n target.style = {\n opacity: 1\n };\n } // When animation is stopped for succedent animation starting,\n // el.style.opacity might not be 1\n else if (el.style.opacity !== 1) {\n target.style = {\n opacity: 1\n };\n }\n }\n\n animationWrap.add(el, target, duration, 0, easing);\n });\n }, this);\n this._state = 'animating';\n animationWrap.finished(bind(function () {\n this._state = 'ready';\n renderResult.renderFinally();\n }, this)).start();\n };\n\n TreemapView.prototype._resetController = function (api) {\n var controller = this._controller; // Init controller.\n\n if (!controller) {\n controller = this._controller = new RoamController(api.getZr());\n controller.enable(this.seriesModel.get('roam'));\n controller.on('pan', bind(this._onPan, this));\n controller.on('zoom', bind(this._onZoom, this));\n }\n\n var rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());\n controller.setPointerChecker(function (e, x, y) {\n return rect.contain(x, y);\n });\n };\n\n TreemapView.prototype._clearController = function () {\n var controller = this._controller;\n\n if (controller) {\n controller.dispose();\n controller = null;\n }\n };\n\n TreemapView.prototype._onPan = function (e) {\n if (this._state !== 'animating' && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)) {\n // These param must not be cached.\n var root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n var rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n this.api.dispatchAction({\n type: 'treemapMove',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rootLayout.x + e.dx,\n y: rootLayout.y + e.dy,\n width: rootLayout.width,\n height: rootLayout.height\n }\n });\n }\n };\n\n TreemapView.prototype._onZoom = function (e) {\n var mouseX = e.originX;\n var mouseY = e.originY;\n\n if (this._state !== 'animating') {\n // These param must not be cached.\n var root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n var rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n var rect = new BoundingRect(rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height);\n var layoutInfo = this.seriesModel.layoutInfo; // Transform mouse coord from global to containerGroup.\n\n mouseX -= layoutInfo.x;\n mouseY -= layoutInfo.y; // Scale root bounding rect.\n\n var m = matrix.create();\n matrix.translate(m, m, [-mouseX, -mouseY]);\n matrix.scale(m, m, [e.scale, e.scale]);\n matrix.translate(m, m, [mouseX, mouseY]);\n rect.applyTransform(m);\n this.api.dispatchAction({\n type: 'treemapRender',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n }\n };\n\n TreemapView.prototype._initEvents = function (containerGroup) {\n var _this = this;\n\n containerGroup.on('click', function (e) {\n if (_this._state !== 'ready') {\n return;\n }\n\n var nodeClick = _this.seriesModel.get('nodeClick', true);\n\n if (!nodeClick) {\n return;\n }\n\n var targetInfo = _this.findTarget(e.offsetX, e.offsetY);\n\n if (!targetInfo) {\n return;\n }\n\n var node = targetInfo.node;\n\n if (node.getLayout().isLeafRoot) {\n _this._rootToNode(targetInfo);\n } else {\n if (nodeClick === 'zoomToNode') {\n _this._zoomToNode(targetInfo);\n } else if (nodeClick === 'link') {\n var itemModel = node.hostTree.data.getItemModel(node.dataIndex);\n var link = itemModel.get('link', true);\n var linkTarget = itemModel.get('target', true) || 'blank';\n link && windowOpen(link, linkTarget);\n }\n }\n }, this);\n };\n\n TreemapView.prototype._renderBreadcrumb = function (seriesModel, api, targetInfo) {\n var _this = this;\n\n if (!targetInfo) {\n targetInfo = seriesModel.get('leafDepth', true) != null ? {\n node: seriesModel.getViewRoot()\n } // FIXME\n // better way?\n // Find breadcrumb tail on center of containerGroup.\n : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);\n\n if (!targetInfo) {\n targetInfo = {\n node: seriesModel.getData().tree.root\n };\n }\n }\n\n (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group))).render(seriesModel, api, targetInfo.node, function (node) {\n if (_this._state !== 'animating') {\n helper.aboveViewRoot(seriesModel.getViewRoot(), node) ? _this._rootToNode({\n node: node\n }) : _this._zoomToNode({\n node: node\n });\n }\n });\n };\n /**\n * @override\n */\n\n\n TreemapView.prototype.remove = function () {\n this._clearController();\n\n this._containerGroup && this._containerGroup.removeAll();\n this._storage = createStorage();\n this._state = 'ready';\n this._breadcrumb && this._breadcrumb.remove();\n };\n\n TreemapView.prototype.dispose = function () {\n this._clearController();\n };\n\n TreemapView.prototype._zoomToNode = function (targetInfo) {\n this.api.dispatchAction({\n type: 'treemapZoomToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n };\n\n TreemapView.prototype._rootToNode = function (targetInfo) {\n this.api.dispatchAction({\n type: 'treemapRootToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n };\n /**\n * @public\n * @param {number} x Global coord x.\n * @param {number} y Global coord y.\n * @return {Object} info If not found, return undefined;\n * @return {number} info.node Target node.\n * @return {number} info.offsetX x refer to target node.\n * @return {number} info.offsetY y refer to target node.\n */\n\n\n TreemapView.prototype.findTarget = function (x, y) {\n var targetInfo;\n var viewRoot = this.seriesModel.getViewRoot();\n viewRoot.eachNode({\n attr: 'viewChildren',\n order: 'preorder'\n }, function (node) {\n var bgEl = this._storage.background[node.getRawIndex()]; // If invisible, there might be no element.\n\n\n if (bgEl) {\n var point = bgEl.transformCoordToLocal(x, y);\n var shape = bgEl.shape; // For performance consideration, dont use 'getBoundingRect'.\n\n if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height) {\n targetInfo = {\n node: node,\n offsetX: point[0],\n offsetY: point[1]\n };\n } else {\n return false; // Suppress visit subtree.\n }\n }\n }, this);\n return targetInfo;\n };\n\n TreemapView.type = 'treemap';\n return TreemapView;\n}(ChartView);\n/**\n * @inner\n */\n\n\nfunction createStorage() {\n return {\n nodeGroup: [],\n background: [],\n content: []\n };\n}\n/**\n * @inner\n * @return Return undefined means do not travel further.\n */\n\n\nfunction renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth) {\n // Whether under viewRoot.\n if (!thisNode) {\n // Deleting nodes will be performed finally. This method just find\n // element from old storage, or create new element, set them to new\n // storage, and set styles.\n return;\n } // -------------------------------------------------------------------\n // Start of closure variables available in \"Procedures in renderNode\".\n\n\n var thisLayout = thisNode.getLayout();\n var data = seriesModel.getData();\n var nodeModel = thisNode.getModel(); // Only for enabling highlight/downplay. Clear firstly.\n // Because some node will not be rendered.\n\n data.setItemGraphicEl(thisNode.dataIndex, null);\n\n if (!thisLayout || !thisLayout.isInView) {\n return;\n }\n\n var thisWidth = thisLayout.width;\n var thisHeight = thisLayout.height;\n var borderWidth = thisLayout.borderWidth;\n var thisInvisible = thisLayout.invisible;\n var thisRawIndex = thisNode.getRawIndex();\n var oldRawIndex = oldNode && oldNode.getRawIndex();\n var thisViewChildren = thisNode.viewChildren;\n var upperHeight = thisLayout.upperHeight;\n var isParent = thisViewChildren && thisViewChildren.length;\n var itemStyleNormalModel = nodeModel.getModel('itemStyle');\n var itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']);\n var itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']);\n var itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']);\n var borderRadius = itemStyleNormalModel.get('borderRadius') || 0; // End of closure ariables available in \"Procedures in renderNode\".\n // -----------------------------------------------------------------\n // Node group\n\n var group = giveGraphic('nodeGroup', Group);\n\n if (!group) {\n return;\n }\n\n parentGroup.add(group); // x,y are not set when el is above view root.\n\n group.x = thisLayout.x || 0;\n group.y = thisLayout.y || 0;\n group.markRedraw();\n inner(group).nodeWidth = thisWidth;\n inner(group).nodeHeight = thisHeight;\n\n if (thisLayout.isAboveViewRoot) {\n return group;\n } // Background\n\n\n var bg = giveGraphic('background', Rect, depth, Z2_BG);\n bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight);\n var focus = nodeModel.get(['emphasis', 'focus']);\n var blurScope = nodeModel.get(['emphasis', 'blurScope']);\n var focusOrIndices = focus === 'ancestor' ? thisNode.getAncestorsIndices() : focus === 'descendant' ? thisNode.getDescendantIndices() : focus; // No children, render content.\n\n if (isParent) {\n // Because of the implementation about \"traverse\" in graphic hover style, we\n // can not set hover listener on the \"group\" of non-leaf node. Otherwise the\n // hover event from the descendents will be listenered.\n if (isHighDownDispatcher(group)) {\n setAsHighDownDispatcher(group, false);\n }\n\n if (bg) {\n setAsHighDownDispatcher(bg, true); // Only for enabling highlight/downplay.\n\n data.setItemGraphicEl(thisNode.dataIndex, bg);\n enableHoverFocus(bg, focusOrIndices, blurScope);\n }\n } else {\n var content = giveGraphic('content', Rect, depth, Z2_CONTENT);\n content && renderContent(group, content);\n\n if (bg && isHighDownDispatcher(bg)) {\n setAsHighDownDispatcher(bg, false);\n }\n\n setAsHighDownDispatcher(group, true); // Only for enabling highlight/downplay.\n\n data.setItemGraphicEl(thisNode.dataIndex, group);\n enableHoverFocus(group, focusOrIndices, blurScope);\n }\n\n return group; // ----------------------------\n // | Procedures in renderNode |\n // ----------------------------\n\n function renderBackground(group, bg, useUpperLabel) {\n var ecData = getECData(bg); // For tooltip.\n\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n bg.setShape({\n x: 0,\n y: 0,\n width: thisWidth,\n height: thisHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(bg);\n } else {\n bg.invisible = false;\n var style = thisNode.getVisual('style');\n var visualBorderColor = style.stroke;\n var normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualBorderColor;\n var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor');\n var blurStyle = getStateItemStyle(itemStyleBlurModel);\n blurStyle.fill = itemStyleBlurModel.get('borderColor');\n var selectStyle = getStateItemStyle(itemStyleSelectModel);\n selectStyle.fill = itemStyleSelectModel.get('borderColor');\n\n if (useUpperLabel) {\n var upperLabelWidth = thisWidth - 2 * borderWidth;\n prepareText( // PENDING: convert ZRColor to ColorString for text.\n bg, visualBorderColor, style.opacity, {\n x: borderWidth,\n y: 0,\n width: upperLabelWidth,\n height: upperHeight\n });\n } // For old bg.\n else {\n bg.removeTextContent();\n }\n\n bg.setStyle(normalStyle);\n bg.ensureState('emphasis').style = emphasisStyle;\n bg.ensureState('blur').style = blurStyle;\n bg.ensureState('select').style = selectStyle;\n setDefaultStateProxy(bg);\n }\n\n group.add(bg);\n }\n\n function renderContent(group, content) {\n var ecData = getECData(content); // For tooltip.\n\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);\n var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);\n content.culling = true;\n content.setShape({\n x: borderWidth,\n y: borderWidth,\n width: contentWidth,\n height: contentHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(content);\n } else {\n content.invisible = false;\n var nodeStyle = thisNode.getVisual('style');\n var visualColor = nodeStyle.fill;\n var normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualColor;\n normalStyle.decal = nodeStyle.decal;\n var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n var blurStyle = getStateItemStyle(itemStyleBlurModel);\n var selectStyle = getStateItemStyle(itemStyleSelectModel); // PENDING: convert ZRColor to ColorString for text.\n\n prepareText(content, visualColor, nodeStyle.opacity, null);\n content.setStyle(normalStyle);\n content.ensureState('emphasis').style = emphasisStyle;\n content.ensureState('blur').style = blurStyle;\n content.ensureState('select').style = selectStyle;\n setDefaultStateProxy(content);\n }\n\n group.add(content);\n }\n\n function processInvisible(element) {\n // Delay invisible setting utill animation finished,\n // avoid element vanish suddenly before animation.\n !element.invisible && willInvisibleEls.push(element);\n }\n\n function prepareText(rectEl, visualColor, visualOpacity, // Can be null/undefined\n upperLabelRect) {\n var normalLabelModel = nodeModel.getModel(upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL);\n var defaultText = convertOptionIdName(nodeModel.get('name'), null);\n var isShow = normalLabelModel.getShallow('show');\n setLabelStyle(rectEl, getLabelStatesModels(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL), {\n defaultText: isShow ? defaultText : null,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n labelFetcher: seriesModel,\n labelDataIndex: thisNode.dataIndex\n });\n var textEl = rectEl.getTextContent();\n var textStyle = textEl.style;\n var textPadding = normalizeCssArray(textStyle.padding || 0);\n\n if (upperLabelRect) {\n rectEl.setTextConfig({\n layoutRect: upperLabelRect\n });\n textEl.disableLabelLayout = true;\n }\n\n textEl.beforeUpdate = function () {\n var width = Math.max((upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0);\n var height = Math.max((upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0);\n\n if (textStyle.width !== width || textStyle.height !== height) {\n textEl.setStyle({\n width: width,\n height: height\n });\n }\n };\n\n textStyle.truncateMinChar = 2;\n textStyle.lineOverflow = 'truncate';\n addDrillDownIcon(textStyle, upperLabelRect, thisLayout);\n var textEmphasisState = textEl.getState('emphasis');\n addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout);\n }\n\n function addDrillDownIcon(style, upperLabelRect, thisLayout) {\n var text = style ? style.text : null;\n\n if (!upperLabelRect && thisLayout.isLeafRoot && text != null) {\n var iconChar = seriesModel.get('drillDownIcon', true);\n style.text = iconChar ? iconChar + ' ' + text : text;\n }\n }\n\n function giveGraphic(storageName, Ctor, depth, z) {\n var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];\n var lasts = lastsForAnimation[storageName];\n\n if (element) {\n // Remove from oldStorage\n oldStorage[storageName][oldRawIndex] = null;\n prepareAnimationWhenHasOld(lasts, element);\n } // If invisible and no old element, do not create new element (for optimizing).\n else if (!thisInvisible) {\n element = new Ctor();\n\n if (element instanceof Displayable) {\n element.z2 = calculateZ2(depth, z);\n }\n\n prepareAnimationWhenNoOld(lasts, element);\n } // Set to thisStorage\n\n\n return thisStorage[storageName][thisRawIndex] = element;\n }\n\n function prepareAnimationWhenHasOld(lasts, element) {\n var lastCfg = lasts[thisRawIndex] = {};\n\n if (element instanceof Group) {\n lastCfg.oldX = element.x;\n lastCfg.oldY = element.y;\n } else {\n lastCfg.oldShape = extend({}, element.shape);\n }\n } // If a element is new, we need to find the animation start point carefully,\n // otherwise it will looks strange when 'zoomToNode'.\n\n\n function prepareAnimationWhenNoOld(lasts, element) {\n var lastCfg = lasts[thisRawIndex] = {};\n var parentNode = thisNode.parentNode;\n var isGroup = element instanceof graphic.Group;\n\n if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {\n var parentOldX = 0;\n var parentOldY = 0; // New nodes appear from right-bottom corner in 'zoomToNode' animation.\n // For convenience, get old bounding rect from background.\n\n var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];\n\n if (!reRoot && parentOldBg && parentOldBg.oldShape) {\n parentOldX = parentOldBg.oldShape.width;\n parentOldY = parentOldBg.oldShape.height;\n } // When no parent old shape found, its parent is new too,\n // so we can just use {x:0, y:0}.\n\n\n if (isGroup) {\n lastCfg.oldX = 0;\n lastCfg.oldY = parentOldY;\n } else {\n lastCfg.oldShape = {\n x: parentOldX,\n y: parentOldY,\n width: 0,\n height: 0\n };\n }\n } // Fade in, user can be aware that these nodes are new.\n\n\n lastCfg.fadein = !isGroup;\n }\n} // We can not set all backgroud with the same z, Because the behaviour of\n// drill down and roll up differ background creation sequence from tree\n// hierarchy sequence, which cause that lowser background element overlap\n// upper ones. So we calculate z based on depth.\n// Moreover, we try to shrink down z interval to [0, 1] to avoid that\n// treemap with large z overlaps other components.\n\n\nfunction calculateZ2(depth, z2InLevel) {\n return depth * Z2_BASE + z2InLevel;\n}\n\nexport default TreemapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as zrColor from 'zrender/lib/tool/color';\nimport { linearMap } from '../util/number';\nvar each = zrUtil.each;\nvar isObject = zrUtil.isObject;\nvar CATEGORY_DEFAULT_VISUAL_INDEX = -1;\n\nvar VisualMapping =\n/** @class */\nfunction () {\n function VisualMapping(option) {\n var mappingMethod = option.mappingMethod;\n var visualType = option.type;\n var thisOption = this.option = zrUtil.clone(option);\n this.type = visualType;\n this.mappingMethod = mappingMethod;\n this._normalizeData = normalizers[mappingMethod];\n var visualHandler = VisualMapping.visualHandlers[visualType];\n this.applyVisual = visualHandler.applyVisual;\n this.getColorMapper = visualHandler.getColorMapper;\n this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod];\n\n if (mappingMethod === 'piecewise') {\n normalizeVisualRange(thisOption);\n preprocessForPiecewise(thisOption);\n } else if (mappingMethod === 'category') {\n thisOption.categories ? preprocessForSpecifiedCategory(thisOption) // categories is ordinal when thisOption.categories not specified,\n // which need no more preprocess except normalize visual.\n : normalizeVisualRange(thisOption, true);\n } else {\n // mappingMethod === 'linear' or 'fixed'\n zrUtil.assert(mappingMethod !== 'linear' || thisOption.dataExtent);\n normalizeVisualRange(thisOption);\n }\n }\n\n VisualMapping.prototype.mapValueToVisual = function (value) {\n var normalized = this._normalizeData(value);\n\n return this._normalizedToVisual(normalized, value);\n };\n\n VisualMapping.prototype.getNormalizer = function () {\n return zrUtil.bind(this._normalizeData, this);\n };\n /**\n * List available visual types.\n *\n * @public\n * @return {Array.}\n */\n\n\n VisualMapping.listVisualTypes = function () {\n return zrUtil.keys(VisualMapping.visualHandlers);\n }; // /**\n // * @public\n // */\n // static addVisualHandler(name, handler) {\n // visualHandlers[name] = handler;\n // }\n\n /**\n * @public\n */\n\n\n VisualMapping.isValidType = function (visualType) {\n return VisualMapping.visualHandlers.hasOwnProperty(visualType);\n };\n /**\n * Convinent method.\n * Visual can be Object or Array or primary type.\n */\n\n\n VisualMapping.eachVisual = function (visual, callback, context) {\n if (zrUtil.isObject(visual)) {\n zrUtil.each(visual, callback, context);\n } else {\n callback.call(context, visual);\n }\n };\n\n VisualMapping.mapVisual = function (visual, callback, context) {\n var isPrimary;\n var newVisual = zrUtil.isArray(visual) ? [] : zrUtil.isObject(visual) ? {} : (isPrimary = true, null);\n VisualMapping.eachVisual(visual, function (v, key) {\n var newVal = callback.call(context, v, key);\n isPrimary ? newVisual = newVal : newVisual[key] = newVal;\n });\n return newVisual;\n };\n /**\n * Retrieve visual properties from given object.\n */\n\n\n VisualMapping.retrieveVisuals = function (obj) {\n var ret = {};\n var hasVisual;\n obj && each(VisualMapping.visualHandlers, function (h, visualType) {\n if (obj.hasOwnProperty(visualType)) {\n ret[visualType] = obj[visualType];\n hasVisual = true;\n }\n });\n return hasVisual ? ret : null;\n };\n /**\n * Give order to visual types, considering colorSaturation, colorAlpha depends on color.\n *\n * @public\n * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}\n * IF Array, like: ['color', 'symbol', 'colorSaturation']\n * @return {Array.} Sorted visual types.\n */\n\n\n VisualMapping.prepareVisualTypes = function (visualTypes) {\n if (zrUtil.isArray(visualTypes)) {\n visualTypes = visualTypes.slice();\n } else if (isObject(visualTypes)) {\n var types_1 = [];\n each(visualTypes, function (item, type) {\n types_1.push(type);\n });\n visualTypes = types_1;\n } else {\n return [];\n }\n\n visualTypes.sort(function (type1, type2) {\n // color should be front of colorSaturation, colorAlpha, ...\n // symbol and symbolSize do not matter.\n return type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0 ? 1 : -1;\n });\n return visualTypes;\n };\n /**\n * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.\n * Other visuals are only depends on themself.\n */\n\n\n VisualMapping.dependsOn = function (visualType1, visualType2) {\n return visualType2 === 'color' ? !!(visualType1 && visualType1.indexOf(visualType2) === 0) : visualType1 === visualType2;\n };\n /**\n * @param value\n * @param pieceList [{value: ..., interval: [min, max]}, ...]\n * Always from small to big.\n * @param findClosestWhenOutside Default to be false\n * @return index\n */\n\n\n VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) {\n var possibleI;\n var abs = Infinity; // value has the higher priority.\n\n for (var i = 0, len = pieceList.length; i < len; i++) {\n var pieceValue = pieceList[i].value;\n\n if (pieceValue != null) {\n if (pieceValue === value // FIXME\n // It is supposed to compare value according to value type of dimension,\n // but currently value type can exactly be string or number.\n // Compromise for numeric-like string (like '12'), especially\n // in the case that visualMap.categories is ['22', '33'].\n || typeof pieceValue === 'string' && pieceValue === value + '') {\n return i;\n }\n\n findClosestWhenOutside && updatePossible(pieceValue, i);\n }\n }\n\n for (var i = 0, len = pieceList.length; i < len; i++) {\n var piece = pieceList[i];\n var interval = piece.interval;\n var close_1 = piece.close;\n\n if (interval) {\n if (interval[0] === -Infinity) {\n if (littleThan(close_1[1], value, interval[1])) {\n return i;\n }\n } else if (interval[1] === Infinity) {\n if (littleThan(close_1[0], interval[0], value)) {\n return i;\n }\n } else if (littleThan(close_1[0], interval[0], value) && littleThan(close_1[1], value, interval[1])) {\n return i;\n }\n\n findClosestWhenOutside && updatePossible(interval[0], i);\n findClosestWhenOutside && updatePossible(interval[1], i);\n }\n }\n\n if (findClosestWhenOutside) {\n return value === Infinity ? pieceList.length - 1 : value === -Infinity ? 0 : possibleI;\n }\n\n function updatePossible(val, index) {\n var newAbs = Math.abs(val - value);\n\n if (newAbs < abs) {\n abs = newAbs;\n possibleI = index;\n }\n }\n };\n\n VisualMapping.visualHandlers = {\n color: {\n applyVisual: makeApplyVisual('color'),\n getColorMapper: function () {\n var thisOption = this.option;\n return zrUtil.bind(thisOption.mappingMethod === 'category' ? function (value, isNormalized) {\n !isNormalized && (value = this._normalizeData(value));\n return doMapCategory.call(this, value);\n } : function (value, isNormalized, out) {\n // If output rgb array\n // which will be much faster and useful in pixel manipulation\n var returnRGBArray = !!out;\n !isNormalized && (value = this._normalizeData(value));\n out = zrColor.fastLerp(value, thisOption.parsedVisual, out);\n return returnRGBArray ? out : zrColor.stringify(out, 'rgba');\n }, this);\n },\n _normalizedToVisual: {\n linear: function (normalized) {\n return zrColor.stringify(zrColor.fastLerp(normalized, this.option.parsedVisual), 'rgba');\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = zrColor.stringify(zrColor.fastLerp(normalized, this.option.parsedVisual), 'rgba');\n }\n\n return result;\n },\n fixed: doMapFixed\n }\n },\n colorHue: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, value);\n }),\n colorSaturation: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, null, value);\n }),\n colorLightness: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, null, null, value);\n }),\n colorAlpha: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyAlpha(color, value);\n }),\n decal: {\n applyVisual: makeApplyVisual('decal'),\n _normalizedToVisual: {\n linear: null,\n category: doMapCategory,\n piecewise: null,\n fixed: null\n }\n },\n opacity: {\n applyVisual: makeApplyVisual('opacity'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n },\n liftZ: {\n applyVisual: makeApplyVisual('liftZ'),\n _normalizedToVisual: {\n linear: doMapFixed,\n category: doMapFixed,\n piecewise: doMapFixed,\n fixed: doMapFixed\n }\n },\n symbol: {\n applyVisual: function (value, getter, setter) {\n var symbolCfg = this.mapValueToVisual(value);\n setter('symbol', symbolCfg);\n },\n _normalizedToVisual: {\n linear: doMapToArray,\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = doMapToArray.call(this, normalized);\n }\n\n return result;\n },\n fixed: doMapFixed\n }\n },\n symbolSize: {\n applyVisual: makeApplyVisual('symbolSize'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n }\n };\n return VisualMapping;\n}();\n\nfunction preprocessForPiecewise(thisOption) {\n var pieceList = thisOption.pieceList;\n thisOption.hasSpecialVisual = false;\n zrUtil.each(pieceList, function (piece, index) {\n piece.originIndex = index; // piece.visual is \"result visual value\" but not\n // a visual range, so it does not need to be normalized.\n\n if (piece.visual != null) {\n thisOption.hasSpecialVisual = true;\n }\n });\n}\n\nfunction preprocessForSpecifiedCategory(thisOption) {\n // Hash categories.\n var categories = thisOption.categories;\n var categoryMap = thisOption.categoryMap = {};\n var visual = thisOption.visual;\n each(categories, function (cate, index) {\n categoryMap[cate] = index;\n }); // Process visual map input.\n\n if (!zrUtil.isArray(visual)) {\n var visualArr_1 = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v, cate) {\n var index = categoryMap[cate];\n visualArr_1[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;\n });\n } else {\n // Is primary type, represents default visual.\n visualArr_1[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;\n }\n\n visual = setVisualToOption(thisOption, visualArr_1);\n } // Remove categories that has no visual,\n // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.\n\n\n for (var i = categories.length - 1; i >= 0; i--) {\n if (visual[i] == null) {\n delete categoryMap[categories[i]];\n categories.pop();\n }\n }\n}\n\nfunction normalizeVisualRange(thisOption, isCategory) {\n var visual = thisOption.visual;\n var visualArr = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v) {\n visualArr.push(v);\n });\n } else if (visual != null) {\n visualArr.push(visual);\n }\n\n var doNotNeedPair = {\n color: 1,\n symbol: 1\n };\n\n if (!isCategory && visualArr.length === 1 && !doNotNeedPair.hasOwnProperty(thisOption.type)) {\n // Do not care visualArr.length === 0, which is illegal.\n visualArr[1] = visualArr[0];\n }\n\n setVisualToOption(thisOption, visualArr);\n}\n\nfunction makePartialColorVisualHandler(applyValue) {\n return {\n applyVisual: function (value, getter, setter) {\n // Only used in HSL\n var colorChannel = this.mapValueToVisual(value); // Must not be array value\n\n setter('color', applyValue(getter('color'), colorChannel));\n },\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n };\n}\n\nfunction doMapToArray(normalized) {\n var visual = this.option.visual;\n return visual[Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))] || {}; // TODO {}?\n}\n\nfunction makeApplyVisual(visualType) {\n return function (value, getter, setter) {\n setter(visualType, this.mapValueToVisual(value));\n };\n}\n\nfunction doMapCategory(normalized) {\n var visual = this.option.visual;\n return visual[this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX ? normalized % visual.length : normalized];\n}\n\nfunction doMapFixed() {\n // visual will be convert to array.\n return this.option.visual[0];\n}\n/**\n * Create mapped to numeric visual\n */\n\n\nfunction createNormalizedToNumericVisual(sourceExtent) {\n return {\n linear: function (normalized) {\n return linearMap(normalized, sourceExtent, this.option.visual, true);\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = linearMap(normalized, sourceExtent, this.option.visual, true);\n }\n\n return result;\n },\n fixed: doMapFixed\n };\n}\n\nfunction getSpecifiedVisual(value) {\n var thisOption = this.option;\n var pieceList = thisOption.pieceList;\n\n if (thisOption.hasSpecialVisual) {\n var pieceIndex = VisualMapping.findPieceIndex(value, pieceList);\n var piece = pieceList[pieceIndex];\n\n if (piece && piece.visual) {\n return piece.visual[this.type];\n }\n }\n}\n\nfunction setVisualToOption(thisOption, visualArr) {\n thisOption.visual = visualArr;\n\n if (thisOption.type === 'color') {\n thisOption.parsedVisual = zrUtil.map(visualArr, function (item) {\n return zrColor.parse(item);\n });\n }\n\n return visualArr;\n}\n/**\n * Normalizers by mapping methods.\n */\n\n\nvar normalizers = {\n linear: function (value) {\n return linearMap(value, this.option.dataExtent, [0, 1], true);\n },\n piecewise: function (value) {\n var pieceList = this.option.pieceList;\n var pieceIndex = VisualMapping.findPieceIndex(value, pieceList, true);\n\n if (pieceIndex != null) {\n return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);\n }\n },\n category: function (value) {\n var index = this.option.categories ? this.option.categoryMap[value] : value; // ordinal value\n\n return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;\n },\n fixed: zrUtil.noop\n};\n\nfunction littleThan(close, a, b) {\n return close ? a <= b : a < b;\n}\n\nexport default VisualMapping;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport VisualMapping from '../../visual/VisualMapping';\nimport { each, extend, isArray } from 'zrender/lib/core/util';\nimport { modifyHSL, modifyAlpha } from 'zrender/lib/tool/color';\nimport { makeInner } from '../../util/model';\nvar ITEM_STYLE_NORMAL = 'itemStyle';\nvar inner = makeInner();\nexport default {\n seriesType: 'treemap',\n reset: function (seriesModel) {\n var tree = seriesModel.getData().tree;\n var root = tree.root;\n\n if (root.isRemoved()) {\n return;\n }\n\n travelTree(root, // Visual should calculate from tree root but not view root.\n {}, seriesModel.getViewRoot().getAncestors(), seriesModel);\n }\n};\n\nfunction travelTree(node, designatedVisual, viewRootAncestors, seriesModel) {\n var nodeModel = node.getModel();\n var nodeLayout = node.getLayout();\n var data = node.hostTree.data; // Optimize\n\n if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {\n return;\n }\n\n var nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL);\n var visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel);\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style'); // calculate border color\n\n var borderColor = nodeItemStyleModel.get('borderColor');\n var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');\n var thisNodeColor;\n\n if (borderColorSaturation != null) {\n // For performance, do not always execute 'calculateColor'.\n thisNodeColor = calculateColor(visuals);\n borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);\n }\n\n existsStyle.stroke = borderColor;\n var viewChildren = node.viewChildren;\n\n if (!viewChildren || !viewChildren.length) {\n thisNodeColor = calculateColor(visuals); // Apply visual to this node.\n\n existsStyle.fill = thisNodeColor;\n } else {\n var mapping_1 = buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren); // Designate visual to children.\n\n each(viewChildren, function (child, index) {\n // If higher than viewRoot, only ancestors of viewRoot is needed to visit.\n if (child.depth >= viewRootAncestors.length || child === viewRootAncestors[child.depth]) {\n var childVisual = mapVisual(nodeModel, visuals, child, index, mapping_1, seriesModel);\n travelTree(child, childVisual, viewRootAncestors, seriesModel);\n }\n });\n }\n}\n\nfunction buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel) {\n var visuals = extend({}, designatedVisual);\n var designatedVisualItemStyle = seriesModel.designatedVisualItemStyle;\n each(['color', 'colorAlpha', 'colorSaturation'], function (visualName) {\n // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel\n designatedVisualItemStyle[visualName] = designatedVisual[visualName];\n var val = nodeItemStyleModel.get(visualName);\n designatedVisualItemStyle[visualName] = null;\n val != null && (visuals[visualName] = val);\n });\n return visuals;\n}\n\nfunction calculateColor(visuals) {\n var color = getValueVisualDefine(visuals, 'color');\n\n if (color) {\n var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha');\n var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation');\n\n if (colorSaturation) {\n color = modifyHSL(color, null, null, colorSaturation);\n }\n\n if (colorAlpha) {\n color = modifyAlpha(color, colorAlpha);\n }\n\n return color;\n }\n}\n\nfunction calculateBorderColor(borderColorSaturation, thisNodeColor) {\n return thisNodeColor != null // Can only be string\n ? modifyHSL(thisNodeColor, null, null, borderColorSaturation) : null;\n}\n\nfunction getValueVisualDefine(visuals, name) {\n var value = visuals[name];\n\n if (value != null && value !== 'none') {\n return value;\n }\n}\n\nfunction buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren) {\n if (!viewChildren || !viewChildren.length) {\n return;\n }\n\n var rangeVisual = getRangeVisual(nodeModel, 'color') || visuals.color != null && visuals.color !== 'none' && (getRangeVisual(nodeModel, 'colorAlpha') || getRangeVisual(nodeModel, 'colorSaturation'));\n\n if (!rangeVisual) {\n return;\n }\n\n var visualMin = nodeModel.get('visualMin');\n var visualMax = nodeModel.get('visualMax');\n var dataExtent = nodeLayout.dataExtent.slice();\n visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);\n visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);\n var colorMappingBy = nodeModel.get('colorMappingBy');\n var opt = {\n type: rangeVisual.name,\n dataExtent: dataExtent,\n visual: rangeVisual.range\n };\n\n if (opt.type === 'color' && (colorMappingBy === 'index' || colorMappingBy === 'id')) {\n opt.mappingMethod = 'category';\n opt.loop = true; // categories is ordinal, so do not set opt.categories.\n } else {\n opt.mappingMethod = 'linear';\n }\n\n var mapping = new VisualMapping(opt);\n inner(mapping).drColorMappingBy = colorMappingBy;\n return mapping;\n} // Notice: If we dont have the attribute 'colorRange', but only use\n// attribute 'color' to represent both concepts of 'colorRange' and 'color',\n// (It means 'colorRange' when 'color' is Array, means 'color' when not array),\n// this problem will be encountered:\n// If a level-1 node dont have children, and its siblings has children,\n// and colorRange is set on level-1, then the node can not be colored.\n// So we separate 'colorRange' and 'color' to different attributes.\n\n\nfunction getRangeVisual(nodeModel, name) {\n // 'colorRange', 'colorARange', 'colorSRange'.\n // If not exsits on this node, fetch from levels and series.\n var range = nodeModel.get(name);\n return isArray(range) && range.length ? {\n name: name,\n range: range\n } : null;\n}\n\nfunction mapVisual(nodeModel, visuals, child, index, mapping, seriesModel) {\n var childVisuals = extend({}, visuals);\n\n if (mapping) {\n // Only support color, colorAlpha, colorSaturation.\n var mappingType = mapping.type;\n var colorMappingBy = mappingType === 'color' && inner(mapping).drColorMappingBy;\n var value = colorMappingBy === 'index' ? index : colorMappingBy === 'id' ? seriesModel.mapIdToIndex(child.getId()) : child.getValue(nodeModel.get('visualDimension'));\n childVisuals[mappingType] = mapping.mapValueToVisual(value);\n }\n\n return childVisuals;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The treemap layout implementation was originally copied from\n* \"d3.js\" with some modifications made for this project.\n* (See more details in the comment of the method \"squarify\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parsePercent, MAX_SAFE_INTEGER } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as helper from '../helper/treeHelper';\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar retrieveValue = zrUtil.retrieve;\nvar each = zrUtil.each;\nvar PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth'];\nvar PATH_GAP_WIDTH = ['itemStyle', 'gapWidth'];\nvar PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show'];\nvar PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height'];\n;\n/**\n * @public\n */\n\nexport default {\n seriesType: 'treemap',\n reset: function (seriesModel, ecModel, api, payload) {\n // Layout result in each node:\n // {x, y, width, height, area, borderWidth}\n var ecWidth = api.getWidth();\n var ecHeight = api.getHeight();\n var seriesOption = seriesModel.option;\n var layoutInfo = layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n var size = seriesOption.size || []; // Compatible with ec2.\n\n var containerWidth = parsePercent(retrieveValue(layoutInfo.width, size[0]), ecWidth);\n var containerHeight = parsePercent(retrieveValue(layoutInfo.height, size[1]), ecHeight); // Fetch payload info.\n\n var payloadType = payload && payload.type;\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, seriesModel);\n var rootRect = payloadType === 'treemapRender' || payloadType === 'treemapMove' ? payload.rootRect : null;\n var viewRoot = seriesModel.getViewRoot();\n var viewAbovePath = helper.getPathToRoot(viewRoot);\n\n if (payloadType !== 'treemapMove') {\n var rootSize = payloadType === 'treemapZoomToNode' ? estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) : rootRect ? [rootRect.width, rootRect.height] : [containerWidth, containerHeight];\n var sort_1 = seriesOption.sort;\n\n if (sort_1 && sort_1 !== 'asc' && sort_1 !== 'desc') {\n // Default to be desc order.\n sort_1 = 'desc';\n }\n\n var options = {\n squareRatio: seriesOption.squareRatio,\n sort: sort_1,\n leafDepth: seriesOption.leafDepth\n }; // layout should be cleared because using updateView but not update.\n\n viewRoot.hostTree.clearLayouts(); // TODO\n // optimize: if out of view clip, do not layout.\n // But take care that if do not render node out of view clip,\n // how to calculate start po\n\n var viewRootLayout_1 = {\n x: 0,\n y: 0,\n width: rootSize[0],\n height: rootSize[1],\n area: rootSize[0] * rootSize[1]\n };\n viewRoot.setLayout(viewRootLayout_1);\n squarify(viewRoot, options, false, 0); // Supplement layout.\n\n viewRootLayout_1 = viewRoot.getLayout();\n each(viewAbovePath, function (node, index) {\n var childValue = (viewAbovePath[index + 1] || viewRoot).getValue();\n node.setLayout(zrUtil.extend({\n dataExtent: [childValue, childValue],\n borderWidth: 0,\n upperHeight: 0\n }, viewRootLayout_1));\n });\n }\n\n var treeRoot = seriesModel.getData().tree.root;\n treeRoot.setLayout(calculateRootPosition(layoutInfo, rootRect, targetInfo), true);\n seriesModel.setLayoutInfo(layoutInfo); // FIXME\n // 现在没有clip功能,暂时取ec高宽。\n\n prunning(treeRoot, // Transform to base element coordinate system.\n new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight), viewAbovePath, viewRoot, 0);\n }\n};\n/**\n * Layout treemap with squarify algorithm.\n * The original presentation of this algorithm\n * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk\n * .\n * The implementation of this algorithm was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * @protected\n * @param {module:echarts/data/Tree~TreeNode} node\n * @param {Object} options\n * @param {string} options.sort 'asc' or 'desc'\n * @param {number} options.squareRatio\n * @param {boolean} hideChildren\n * @param {number} depth\n */\n\nfunction squarify(node, options, hideChildren, depth) {\n var width;\n var height;\n\n if (node.isRemoved()) {\n return;\n }\n\n var thisLayout = node.getLayout();\n width = thisLayout.width;\n height = thisLayout.height; // Considering border and gap\n\n var nodeModel = node.getModel();\n var borderWidth = nodeModel.get(PATH_BORDER_WIDTH);\n var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;\n var upperLabelHeight = getUpperLabelHeight(nodeModel);\n var upperHeight = Math.max(borderWidth, upperLabelHeight);\n var layoutOffset = borderWidth - halfGapWidth;\n var layoutOffsetUpper = upperHeight - halfGapWidth;\n node.setLayout({\n borderWidth: borderWidth,\n upperHeight: upperHeight,\n upperLabelHeight: upperLabelHeight\n }, true);\n width = mathMax(width - 2 * layoutOffset, 0);\n height = mathMax(height - layoutOffset - layoutOffsetUpper, 0);\n var totalArea = width * height;\n var viewChildren = initChildren(node, nodeModel, totalArea, options, hideChildren, depth);\n\n if (!viewChildren.length) {\n return;\n }\n\n var rect = {\n x: layoutOffset,\n y: layoutOffsetUpper,\n width: width,\n height: height\n };\n var rowFixedLength = mathMin(width, height);\n var best = Infinity; // the best row score so far\n\n var row = [];\n row.area = 0;\n\n for (var i = 0, len = viewChildren.length; i < len;) {\n var child = viewChildren[i];\n row.push(child);\n row.area += child.getLayout().area;\n var score = worst(row, rowFixedLength, options.squareRatio); // continue with this orientation\n\n if (score <= best) {\n i++;\n best = score;\n } // abort, and try a different orientation\n else {\n row.area -= row.pop().getLayout().area;\n position(row, rowFixedLength, rect, halfGapWidth, false);\n rowFixedLength = mathMin(rect.width, rect.height);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n\n if (row.length) {\n position(row, rowFixedLength, rect, halfGapWidth, true);\n }\n\n if (!hideChildren) {\n var childrenVisibleMin = nodeModel.get('childrenVisibleMin');\n\n if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {\n hideChildren = true;\n }\n }\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n squarify(viewChildren[i], options, hideChildren, depth + 1);\n }\n}\n/**\n * Set area to each child, and calculate data extent for visual coding.\n */\n\n\nfunction initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}\n/**\n * Consider 'visibleMin'. Modify viewChildren and get new sum.\n */\n\n\nfunction filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {\n // visibleMin is not supported yet when no option.sort.\n if (!orderBy) {\n return sum;\n }\n\n var visibleMin = nodeModel.get('visibleMin');\n var len = orderedChildren.length;\n var deletePoint = len; // Always travel from little value to big value.\n\n for (var i = len - 1; i >= 0; i--) {\n var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue();\n\n if (value / sum * totalArea < visibleMin) {\n deletePoint = i;\n sum -= value;\n }\n }\n\n orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint);\n return sum;\n}\n/**\n * Sort\n */\n\n\nfunction sort(viewChildren, orderBy) {\n if (orderBy) {\n viewChildren.sort(function (a, b) {\n var diff = orderBy === 'asc' ? a.getValue() - b.getValue() : b.getValue() - a.getValue();\n return diff === 0 ? orderBy === 'asc' ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex : diff;\n });\n }\n\n return viewChildren;\n}\n/**\n * Statistic\n */\n\n\nfunction statistic(nodeModel, children, orderBy) {\n // Calculate sum.\n var sum = 0;\n\n for (var i = 0, len = children.length; i < len; i++) {\n sum += children[i].getValue();\n } // Statistic data extent for latter visual coding.\n // Notice: data extent should be calculate based on raw children\n // but not filtered view children, otherwise visual mapping will not\n // be stable when zoom (where children is filtered by visibleMin).\n\n\n var dimension = nodeModel.get('visualDimension');\n var dataExtent; // The same as area dimension.\n\n if (!children || !children.length) {\n dataExtent = [NaN, NaN];\n } else if (dimension === 'value' && orderBy) {\n dataExtent = [children[children.length - 1].getValue(), children[0].getValue()];\n orderBy === 'asc' && dataExtent.reverse();\n } // Other dimension.\n else {\n dataExtent = [Infinity, -Infinity];\n each(children, function (child) {\n var value = child.getValue(dimension);\n value < dataExtent[0] && (dataExtent[0] = value);\n value > dataExtent[1] && (dataExtent[1] = value);\n });\n }\n\n return {\n sum: sum,\n dataExtent: dataExtent\n };\n}\n/**\n * Computes the score for the specified row,\n * as the worst aspect ratio.\n */\n\n\nfunction worst(row, rowFixedLength, ratio) {\n var areaMax = 0;\n var areaMin = Infinity;\n\n for (var i = 0, area = void 0, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n var squareArea = row.area * row.area;\n var f = rowFixedLength * rowFixedLength * ratio;\n return squareArea ? mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;\n}\n/**\n * Positions the specified row of nodes. Modifies `rect`.\n */\n\n\nfunction position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as default.\n\n\nfunction estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) {\n // If targetInfo.node exists, we zoom to the node,\n // so estimate whold width and heigth by target node.\n var currNode = (targetInfo || {}).node;\n var defaultSize = [containerWidth, containerHeight];\n\n if (!currNode || currNode === viewRoot) {\n return defaultSize;\n }\n\n var parent;\n var viewArea = containerWidth * containerHeight;\n var area = viewArea * seriesModel.option.zoomToNodeRatio;\n\n while (parent = currNode.parentNode) {\n // jshint ignore:line\n var sum = 0;\n var siblings = parent.children;\n\n for (var i = 0, len = siblings.length; i < len; i++) {\n sum += siblings[i].getValue();\n }\n\n var currNodeValue = currNode.getValue();\n\n if (currNodeValue === 0) {\n return defaultSize;\n }\n\n area *= sum / currNodeValue; // Considering border, suppose aspect ratio is 1.\n\n var parentModel = parent.getModel();\n var borderWidth = parentModel.get(PATH_BORDER_WIDTH);\n var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel));\n area += 4 * borderWidth * borderWidth + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);\n area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);\n currNode = parent;\n }\n\n area < viewArea && (area = viewArea);\n var scale = Math.pow(area / viewArea, 0.5);\n return [containerWidth * scale, containerHeight * scale];\n} // Root postion base on coord of containerGroup\n\n\nfunction calculateRootPosition(layoutInfo, rootRect, targetInfo) {\n if (rootRect) {\n return {\n x: rootRect.x,\n y: rootRect.y\n };\n }\n\n var defaultPosition = {\n x: 0,\n y: 0\n };\n\n if (!targetInfo) {\n return defaultPosition;\n } // If targetInfo is fetched by 'retrieveTargetInfo',\n // old tree and new tree are the same tree,\n // so the node still exists and we can visit it.\n\n\n var targetNode = targetInfo.node;\n var layout = targetNode.getLayout();\n\n if (!layout) {\n return defaultPosition;\n } // Transform coord from local to container.\n\n\n var targetCenter = [layout.width / 2, layout.height / 2];\n var node = targetNode;\n\n while (node) {\n var nodeLayout = node.getLayout();\n targetCenter[0] += nodeLayout.x;\n targetCenter[1] += nodeLayout.y;\n node = node.parentNode;\n }\n\n return {\n x: layoutInfo.width / 2 - targetCenter[0],\n y: layoutInfo.height / 2 - targetCenter[1]\n };\n} // Mark nodes visible for prunning when visual coding and rendering.\n// Prunning depends on layout and root position, so we have to do it after layout.\n\n\nfunction prunning(node, clipRect, viewAbovePath, viewRoot, depth) {\n var nodeLayout = node.getLayout();\n var nodeInViewAbovePath = viewAbovePath[depth];\n var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;\n\n if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) {\n return;\n }\n\n node.setLayout({\n // isInView means: viewRoot sub tree + viewAbovePath\n isInView: true,\n // invisible only means: outside view clip so that the node can not\n // see but still layout for animation preparation but not render.\n invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),\n isAboveViewRoot: isAboveViewRoot\n }, true); // Transform to child coordinate.\n\n var childClipRect = new BoundingRect(clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height);\n each(node.viewChildren || [], function (child) {\n prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);\n });\n}\n\nfunction getUpperLabelHeight(model) {\n return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { installTreemapAction } from './treemapAction';\nimport TreemapSeriesModel from './TreemapSeries';\nimport TreemapView from './TreemapView';\nimport treemapVisual from './treemapVisual';\nimport treemapLayout from './treemapLayout';\nexport function install(registers) {\n registers.registerSeriesModel(TreemapSeriesModel);\n registers.registerChartView(TreemapView);\n registers.registerVisual(treemapVisual);\n registers.registerLayout(treemapLayout);\n installTreemapAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function categoryFilter(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var categoriesData = graphSeries.getCategoriesData();\n var graph = graphSeries.getGraph();\n var data = graph.data;\n var categoryNames = categoriesData.mapArray(categoriesData.getName);\n data.filterSelf(function (idx) {\n var model = data.getItemModel(idx);\n var category = model.getShallow('category');\n\n if (category != null) {\n if (typeof category === 'number') {\n category = categoryNames[category];\n } // If in any legend component the status is not selected.\n\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(category)) {\n return false;\n }\n }\n }\n\n return true;\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nexport default function categoryVisual(ecModel) {\n var paletteScope = {};\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var categoriesData = seriesModel.getCategoriesData();\n var data = seriesModel.getData();\n var categoryNameIdxMap = {};\n categoriesData.each(function (idx) {\n var name = categoriesData.getName(idx); // Add prefix to avoid conflict with Object.prototype.\n\n categoryNameIdxMap['ec-' + name] = idx;\n var itemModel = categoriesData.getItemModel(idx);\n var style = itemModel.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n // Get color from palette.\n style.fill = seriesModel.getColorFromPalette(name, paletteScope);\n }\n\n categoriesData.setItemVisual(idx, 'style', style);\n var symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];\n\n for (var i = 0; i < symbolVisualList.length; i++) {\n var symbolVisual = itemModel.getShallow(symbolVisualList[i], true);\n\n if (symbolVisual != null) {\n categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual);\n }\n }\n }); // Assign category color to visual\n\n if (categoriesData.count()) {\n data.each(function (idx) {\n var model = data.getItemModel(idx);\n var categoryIdx = model.getShallow('category');\n\n if (categoryIdx != null) {\n if (typeof categoryIdx === 'string') {\n categoryIdx = categoryNameIdxMap['ec-' + categoryIdx];\n }\n\n var categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style');\n var style = data.ensureUniqueItemVisual(idx, 'style');\n extend(style, categoryStyle);\n var visualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];\n\n for (var i = 0; i < visualList.length; i++) {\n data.setItemVisual(idx, visualList[i], categoriesData.getItemVisual(categoryIdx, visualList[i]));\n }\n }\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\n\nfunction normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}\n\nexport default function graphEdgeVisual(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var graph = seriesModel.getGraph();\n var edgeData = seriesModel.getEdgeData();\n var symbolType = normalize(seriesModel.get('edgeSymbol'));\n var symbolSize = normalize(seriesModel.get('edgeSymbolSize')); // const colorQuery = ['lineStyle', 'color'] as const;\n // const opacityQuery = ['lineStyle', 'opacity'] as const;\n\n edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);\n edgeData.setVisual('toSymbol', symbolType && symbolType[1]);\n edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());\n edgeData.each(function (idx) {\n var itemModel = edgeData.getItemModel(idx);\n var edge = graph.getEdgeByIndex(idx);\n var symbolType = normalize(itemModel.getShallow('symbol', true));\n var symbolSize = normalize(itemModel.getShallow('symbolSize', true)); // Edge visual must after node visual\n\n var style = itemModel.getModel('lineStyle').getLineStyle();\n var existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n switch (existsStyle.stroke) {\n case 'source':\n {\n var nodeStyle = edge.node1.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n\n case 'target':\n {\n var nodeStyle = edge.node2.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n }\n\n symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);\n symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);\n symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);\n symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nvar KEY_DELIMITER = '-->';\n/**\n * params handler\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {*}\n */\n\nvar getAutoCurvenessParams = function (seriesModel) {\n return seriesModel.get('autoCurveness') || null;\n};\n/**\n * Generate a list of edge curvatures, 20 is the default\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} appendLength\n * @return 20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2]\n */\n\n\nvar createCurveness = function (seriesModel, appendLength) {\n var autoCurvenessParmas = getAutoCurvenessParams(seriesModel);\n var length = 20;\n var curvenessList = []; // handler the function set\n\n if (typeof autoCurvenessParmas === 'number') {\n length = autoCurvenessParmas;\n } else if (zrUtil.isArray(autoCurvenessParmas)) {\n seriesModel.__curvenessList = autoCurvenessParmas;\n return;\n } // append length\n\n\n if (appendLength > length) {\n length = appendLength;\n } // make sure the length is even\n\n\n var len = length % 2 ? length + 2 : length + 3;\n curvenessList = [];\n\n for (var i = 0; i < len; i++) {\n curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1));\n }\n\n seriesModel.__curvenessList = curvenessList;\n};\n/**\n * Create different cache key data in the positive and negative directions, in order to set the curvature later\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {string} key\n */\n\n\nvar getKeyOfEdges = function (n1, n2, seriesModel) {\n var source = [n1.id, n1.dataIndex].join('.');\n var target = [n2.id, n2.dataIndex].join('.');\n return [seriesModel.uid, source, target].join(KEY_DELIMITER);\n};\n/**\n * get opposite key\n * @param {string} key\n * @returns {string}\n */\n\n\nvar getOppositeKey = function (key) {\n var keys = key.split(KEY_DELIMITER);\n return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER);\n};\n/**\n * get edgeMap with key\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\n\n\nvar getEdgeFromMap = function (edge, seriesModel) {\n var key = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n return seriesModel.__edgeMap[key];\n};\n/**\n * calculate all cases total length\n * @param edge\n * @param seriesModel\n * @returns {number}\n */\n\n\nvar getTotalLengthBetweenNodes = function (edge, seriesModel) {\n var len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel);\n var lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);\n return len + lenV;\n};\n/**\n *\n * @param key\n */\n\n\nvar getEdgeMapLengthWithKey = function (key, seriesModel) {\n var edgeMap = seriesModel.__edgeMap;\n return edgeMap[key] ? edgeMap[key].length : 0;\n};\n/**\n * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge\n * @see /graph/GraphSeries.js@getInitialData\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\n\n\nexport function initCurvenessList(seriesModel) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n seriesModel.__curvenessList = [];\n seriesModel.__edgeMap = {}; // calc the array of curveness List\n\n createCurveness(seriesModel);\n}\n/**\n * set edgeMap with key\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} index\n */\n\nexport function createEdgeMapForCurveness(n1, n2, seriesModel, index) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n var key = getKeyOfEdges(n1, n2, seriesModel);\n var edgeMap = seriesModel.__edgeMap;\n var oppositeEdges = edgeMap[getOppositeKey(key)]; // set direction\n\n if (edgeMap[key] && !oppositeEdges) {\n edgeMap[key].isForward = true;\n } else if (oppositeEdges && edgeMap[key]) {\n oppositeEdges.isForward = true;\n edgeMap[key].isForward = false;\n }\n\n edgeMap[key] = edgeMap[key] || [];\n edgeMap[key].push(index);\n}\n/**\n * get curvature for edge\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param index\n */\n\nexport function getCurvenessForEdge(edge, seriesModel, index, needReverse) {\n var autoCurvenessParams = getAutoCurvenessParams(seriesModel);\n var isArrayParam = zrUtil.isArray(autoCurvenessParams);\n\n if (!autoCurvenessParams) {\n return null;\n }\n\n var edgeArray = getEdgeFromMap(edge, seriesModel);\n\n if (!edgeArray) {\n return null;\n }\n\n var edgeIndex = -1;\n\n for (var i = 0; i < edgeArray.length; i++) {\n if (edgeArray[i] === index) {\n edgeIndex = i;\n break;\n }\n } // if totalLen is Longer createCurveness\n\n\n var totalLen = getTotalLengthBetweenNodes(edge, seriesModel);\n createCurveness(seriesModel, totalLen);\n edge.lineStyle = edge.lineStyle || {}; // if is opposite edge, must set curvenss to opposite number\n\n var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n var curvenessList = seriesModel.__curvenessList; // if pass array no need parity\n\n var parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;\n\n if (!edgeArray.isForward) {\n // the opposite edge show outside\n var oppositeKey = getOppositeKey(curKey);\n var len = getEdgeMapLengthWithKey(oppositeKey, seriesModel);\n var resValue = curvenessList[edgeIndex + len + parityCorrection]; // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite\n\n if (needReverse) {\n // set as array may make the parity handle with the len of opposite\n if (isArrayParam) {\n if (autoCurvenessParams && autoCurvenessParams[0] === 0) {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n } else {\n return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue;\n }\n } else {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n } else {\n return curvenessList[edgeIndex + len + parityCorrection];\n }\n } else {\n return curvenessList[parityCorrection + edgeIndex];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nexport function simpleLayout(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n var graph = seriesModel.getGraph();\n graph.eachNode(function (node) {\n var model = node.getModel();\n node.setLayout([+model.get('x'), +model.get('y')]);\n });\n simpleLayoutEdge(graph, seriesModel);\n}\nexport function simpleLayoutEdge(graph, seriesModel) {\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, seriesModel, index, true), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var points = [p1, p2];\n\n if (+curveness) {\n points.push([(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness]);\n }\n\n edge.setLayout(points);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each } from 'zrender/lib/core/util';\nimport { simpleLayout, simpleLayoutEdge } from './simpleLayoutHelper';\nexport default function graphSimpleLayout(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data_1 = seriesModel.getData();\n var dimensions_1 = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions_1 = dimensions_1.concat(data_1.mapDimensionsAll(coordDim));\n });\n\n for (var dataIndex = 0; dataIndex < data_1.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions_1.length; i++) {\n var val = data_1.get(dimensions_1[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data_1.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.}, not undefined to avoid if...else... statement\n data_1.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data_1.graph, seriesModel);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function getNodeGlobalScale(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n var nodeScaleRatio = seriesModel.option.nodeScaleRatio;\n var groupZoom = coordSys.scaleX; // Scale node when zoom changes\n\n var roamZoom = coordSys.getZoom();\n var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n return nodeScale / groupZoom;\n}\nexport function getSymbolSize(node) {\n var symbolSize = node.getVisual('symbolSize');\n\n if (symbolSize instanceof Array) {\n symbolSize = (symbolSize[0] + symbolSize[1]) / 2;\n }\n\n return +symbolSize;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nimport { getSymbolSize, getNodeGlobalScale } from './graphHelper';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nvar PI = Math.PI;\nvar _symbolRadiansHalf = [];\n/**\n * `basedOn` can be:\n * 'value':\n * This layout is not accurate and have same bad case. For example,\n * if the min value is very smaller than the max value, the nodes\n * with the min value probably overlap even though there is enough\n * space to layout them. So we only use this approach in the as the\n * init layout of the force layout.\n * FIXME\n * Probably we do not need this method any more but use\n * `basedOn: 'symbolSize'` in force layout if\n * delay its init operations to GraphView.\n * 'symbolSize':\n * This approach work only if all of the symbol size calculated.\n * That is, the progressive rendering is not applied to graph.\n * FIXME\n * If progressive rendering is applied to graph some day,\n * probably we have to use `basedOn: 'value'`.\n */\n\nexport function circularLayout(seriesModel, basedOn) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n var rect = coordSys.getBoundingRect();\n var nodeData = seriesModel.getData();\n var graph = nodeData.graph;\n var cx = rect.width / 2 + rect.x;\n var cy = rect.height / 2 + rect.y;\n var r = Math.min(rect.width, rect.height) / 2;\n var count = nodeData.count();\n nodeData.setLayout({\n cx: cx,\n cy: cy\n });\n\n if (!count) {\n return;\n }\n\n _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);\n\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), getCurvenessForEdge(edge, seriesModel, index), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var cp1;\n var x12 = (p1[0] + p2[0]) / 2;\n var y12 = (p1[1] + p2[1]) / 2;\n\n if (+curveness) {\n curveness *= 3;\n cp1 = [cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness)];\n }\n\n edge.setLayout([p1, p2, cp1]);\n });\n}\nvar _layoutNodesBasedOn = {\n value: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var angle = 0;\n var sum = nodeData.getSum('value');\n var unitAngle = Math.PI * 2 / (sum || count);\n graph.eachNode(function (node) {\n var value = node.getValue('value');\n var radianHalf = unitAngle * (sum ? value : 1) / 2;\n angle += radianHalf;\n node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n },\n symbolSize: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var sumRadian = 0;\n _symbolRadiansHalf.length = count;\n var nodeScale = getNodeGlobalScale(seriesModel);\n graph.eachNode(function (node) {\n var symbolSize = getSymbolSize(node); // Normally this case will not happen, but we still add\n // some the defensive code (2px is an arbitrary value).\n\n isNaN(symbolSize) && (symbolSize = 2);\n symbolSize < 0 && (symbolSize = 0);\n symbolSize *= nodeScale;\n var symbolRadianHalf = Math.asin(symbolSize / 2 / r); // when `symbolSize / 2` is bigger than `r`.\n\n isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2);\n _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;\n sumRadian += symbolRadianHalf * 2;\n });\n var halfRemainRadian = (2 * PI - sumRadian) / count / 2;\n var angle = 0;\n graph.eachNode(function (node) {\n var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];\n angle += radianHalf;\n node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { circularLayout } from './circularLayoutHelper';\nexport default function graphCircularLayout(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* Some formulas were originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment of the method \"step\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nvar scaleAndAdd = vec2.scaleAndAdd; // function adjacentNode(n, e) {\n// return e.n1 === n ? e.n2 : e.n1;\n// }\n\nexport function forceLayout(inNodes, inEdges, opts) {\n var nodes = inNodes;\n var edges = inEdges;\n var rect = opts.rect;\n var width = rect.width;\n var height = rect.height;\n var center = [rect.x + width / 2, rect.y + height / 2]; // let scale = opts.scale || 1;\n\n var gravity = opts.gravity == null ? 0.1 : opts.gravity; // for (let i = 0; i < edges.length; i++) {\n // let e = edges[i];\n // let n1 = e.n1;\n // let n2 = e.n2;\n // n1.edges = n1.edges || [];\n // n2.edges = n2.edges || [];\n // n1.edges.push(e);\n // n2.edges.push(e);\n // }\n // Init position\n\n for (var i = 0; i < nodes.length; i++) {\n var n = nodes[i];\n\n if (!n.p) {\n n.p = vec2.create(width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1]);\n }\n\n n.pp = vec2.clone(n.p);\n n.edges = null;\n } // Formula in 'Graph Drawing by Force-directed Placement'\n // let k = scale * Math.sqrt(width * height / nodes.length);\n // let k2 = k * k;\n\n\n var initialFriction = opts.friction == null ? 0.6 : opts.friction;\n var friction = initialFriction;\n var beforeStepCallback;\n var afterStepCallback;\n return {\n warmUp: function () {\n friction = initialFriction * 0.8;\n },\n setFixed: function (idx) {\n nodes[idx].fixed = true;\n },\n setUnfixed: function (idx) {\n nodes[idx].fixed = false;\n },\n\n /**\n * Before step hook\n */\n beforeStep: function (cb) {\n beforeStepCallback = cb;\n },\n\n /**\n * After step hook\n */\n afterStep: function (cb) {\n afterStepCallback = cb;\n },\n\n /**\n * Some formulas were originally copied from \"d3.js\"\n * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js\n * with some modifications made for this project.\n * See the license statement at the head of this file.\n */\n step: function (cb) {\n beforeStepCallback && beforeStepCallback(nodes, edges);\n var v12 = [];\n var nLen = nodes.length;\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n\n if (e.ignoreForceLayout) {\n continue;\n }\n\n var n1 = e.n1;\n var n2 = e.n2;\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12) - e.d;\n var w = n2.w / (n1.w + n2.w);\n\n if (isNaN(w)) {\n w = 0;\n }\n\n vec2.normalize(v12, v12);\n !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);\n !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);\n } // Gravity\n\n\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n\n if (!n.fixed) {\n vec2.sub(v12, center, n.p); // let d = vec2.len(v12);\n // vec2.scale(v12, v12, 1 / d);\n // let gravityFactor = gravity;\n\n scaleAndAdd(n.p, n.p, v12, gravity * friction);\n }\n } // Repulsive\n // PENDING\n\n\n for (var i = 0; i < nLen; i++) {\n var n1 = nodes[i];\n\n for (var j = i + 1; j < nLen; j++) {\n var n2 = nodes[j];\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12);\n\n if (d === 0) {\n // Random repulse\n vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);\n d = 1;\n }\n\n var repFact = (n1.rep + n2.rep) / d / d;\n !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);\n !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);\n }\n }\n\n var v = [];\n\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n\n if (!n.fixed) {\n vec2.sub(v, n.p, n.pp);\n scaleAndAdd(n.p, n.p, v, friction);\n vec2.copy(n.pp, n.p);\n }\n }\n\n friction = friction * 0.992;\n var finished = friction < 0.01;\n afterStepCallback && afterStepCallback(nodes, edges, finished);\n cb && cb(finished);\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { forceLayout } from './forceHelper';\nimport { simpleLayout } from './simpleLayoutHelper';\nimport { circularLayout } from './circularLayoutHelper';\nimport { linearMap } from '../../util/number';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nexport default function graphForceLayout(ecModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var coordSys = graphSeries.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n if (graphSeries.get('layout') === 'force') {\n var preservedPoints_1 = graphSeries.preservedPoints || {};\n var graph_1 = graphSeries.getGraph();\n var nodeData_1 = graph_1.data;\n var edgeData = graph_1.edgeData;\n var forceModel = graphSeries.getModel('force');\n var initLayout = forceModel.get('initLayout');\n\n if (graphSeries.preservedPoints) {\n nodeData_1.each(function (idx) {\n var id = nodeData_1.getId(idx);\n nodeData_1.setItemLayout(idx, preservedPoints_1[id] || [NaN, NaN]);\n });\n } else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n } else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n var nodeDataExtent_1 = nodeData_1.getDataExtent('value');\n var edgeDataExtent_1 = edgeData.getDataExtent('value'); // let edgeDataExtent = edgeData.getDataExtent('value');\n\n var repulsion = forceModel.get('repulsion');\n var edgeLength = forceModel.get('edgeLength');\n var repulsionArr_1 = zrUtil.isArray(repulsion) ? repulsion : [repulsion, repulsion];\n var edgeLengthArr_1 = zrUtil.isArray(edgeLength) ? edgeLength : [edgeLength, edgeLength]; // Larger value has smaller length\n\n edgeLengthArr_1 = [edgeLengthArr_1[1], edgeLengthArr_1[0]];\n var nodes_1 = nodeData_1.mapArray('value', function (value, idx) {\n var point = nodeData_1.getItemLayout(idx);\n var rep = linearMap(value, nodeDataExtent_1, repulsionArr_1);\n\n if (isNaN(rep)) {\n rep = (repulsionArr_1[0] + repulsionArr_1[1]) / 2;\n }\n\n return {\n w: rep,\n rep: rep,\n fixed: nodeData_1.getItemModel(idx).get('fixed'),\n p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point\n };\n });\n var edges = edgeData.mapArray('value', function (value, idx) {\n var edge = graph_1.getEdgeByIndex(idx);\n var d = linearMap(value, edgeDataExtent_1, edgeLengthArr_1);\n\n if (isNaN(d)) {\n d = (edgeLengthArr_1[0] + edgeLengthArr_1[1]) / 2;\n }\n\n var edgeModel = edge.getModel();\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, graphSeries, idx, true), 0);\n return {\n n1: nodes_1[edge.node1.dataIndex],\n n2: nodes_1[edge.node2.dataIndex],\n d: d,\n curveness: curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n }); // let coordSys = graphSeries.coordinateSystem;\n\n var rect = coordSys.getBoundingRect();\n var forceInstance = forceLayout(nodes_1, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n forceInstance.beforeStep(function (nodes, edges) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(nodes[i].p, graph_1.getNodeByIndex(i).getLayout());\n }\n }\n });\n forceInstance.afterStep(function (nodes, edges, stopped) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph_1.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n\n preservedPoints_1[nodeData_1.getId(i)] = nodes[i].p;\n }\n\n for (var i = 0, l = edges.length; i < l; i++) {\n var e = edges[i];\n var edge = graph_1.getEdgeByIndex(i);\n var p1 = e.n1.p;\n var p2 = e.n2.p;\n var points = edge.getLayout();\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n\n if (+e.curveness) {\n points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];\n }\n\n edge.setLayout(points);\n }\n });\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints_1; // Step to get the layout\n\n forceInstance.step();\n } else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// FIXME Where to create the simple view coordinate system\nimport View from '../../coord/View';\nimport { getLayoutRect } from '../../util/layout';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport { extend } from 'zrender/lib/core/util';\n\nfunction getViewRect(seriesModel, api, aspect) {\n var option = extend(seriesModel.getBoxLayoutParams(), {\n aspect: aspect\n });\n return getLayoutRect(option, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function createViewCoordSys(ecModel, api) {\n var viewList = [];\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var coordSysType = seriesModel.get('coordinateSystem');\n\n if (!coordSysType || coordSysType === 'view') {\n var data_1 = seriesModel.getData();\n var positions = data_1.mapArray(function (idx) {\n var itemModel = data_1.getItemModel(idx);\n return [+itemModel.get('x'), +itemModel.get('y')];\n });\n var min = [];\n var max = [];\n bbox.fromPoints(positions, min, max); // If width or height is 0\n\n if (max[0] - min[0] === 0) {\n max[0] += 1;\n min[0] -= 1;\n }\n\n if (max[1] - min[1] === 0) {\n max[1] += 1;\n min[1] -= 1;\n }\n\n var aspect = (max[0] - min[0]) / (max[1] - min[1]); // FIXME If get view rect after data processed?\n\n var viewRect = getViewRect(seriesModel, api, aspect); // Position may be NaN, use view rect instead\n\n if (isNaN(aspect)) {\n min = [viewRect.x, viewRect.y];\n max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];\n }\n\n var bbWidth = max[0] - min[0];\n var bbHeight = max[1] - min[1];\n var viewWidth = viewRect.width;\n var viewHeight = viewRect.height;\n var viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n viewCoordSys.setBoundingRect(min[0], min[1], bbWidth, bbHeight);\n viewCoordSys.setViewRect(viewRect.x, viewRect.y, viewWidth, viewHeight); // Update roam info\n\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n viewList.push(viewCoordSys);\n }\n });\n return viewList;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Line path for bezier and straight line draw\n */\n\nimport * as graphic from '../../util/graphic';\nimport * as vec2 from 'zrender/lib/core/vector';\nvar straightLineProto = graphic.Line.prototype;\nvar bezierCurveProto = graphic.BezierCurve.prototype;\n\nvar StraightLineShape =\n/** @class */\nfunction () {\n function StraightLineShape() {\n // Start point\n this.x1 = 0;\n this.y1 = 0; // End point\n\n this.x2 = 0;\n this.y2 = 0;\n this.percent = 1;\n }\n\n return StraightLineShape;\n}();\n\nvar CurveShape =\n/** @class */\nfunction (_super) {\n __extends(CurveShape, _super);\n\n function CurveShape() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return CurveShape;\n}(StraightLineShape);\n\nfunction isStraightLine(shape) {\n return isNaN(+shape.cpx1) || isNaN(+shape.cpy1);\n}\n\nvar ECLinePath =\n/** @class */\nfunction (_super) {\n __extends(ECLinePath, _super);\n\n function ECLinePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-line';\n return _this;\n }\n\n ECLinePath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n ECLinePath.prototype.getDefaultShape = function () {\n return new StraightLineShape();\n };\n\n ECLinePath.prototype.buildPath = function (ctx, shape) {\n if (isStraightLine(shape)) {\n straightLineProto.buildPath.call(this, ctx, shape);\n } else {\n bezierCurveProto.buildPath.call(this, ctx, shape);\n }\n };\n\n ECLinePath.prototype.pointAt = function (t) {\n if (isStraightLine(this.shape)) {\n return straightLineProto.pointAt.call(this, t);\n } else {\n return bezierCurveProto.pointAt.call(this, t);\n }\n };\n\n ECLinePath.prototype.tangentAt = function (t) {\n var shape = this.shape;\n var p = isStraightLine(shape) ? [shape.x2 - shape.x1, shape.y2 - shape.y1] : bezierCurveProto.tangentAt.call(this, t);\n return vec2.normalize(p, p);\n };\n\n return ECLinePath;\n}(graphic.Path);\n\nexport default ECLinePath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { isArray, each, retrieve2 } from 'zrender/lib/core/util';\nimport * as vector from 'zrender/lib/core/vector';\nimport * as symbolUtil from '../../util/symbol';\nimport ECLinePath from './LinePath';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enterEmphasis, leaveEmphasis, SPECIAL_STATES } from '../../util/states';\nimport { getLabelStatesModels, setLabelStyle } from '../../label/labelStyle';\nimport { round, parsePercent } from '../../util/number';\nvar SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'];\n\nfunction makeSymbolTypeKey(symbolCategory) {\n return '_' + symbolCategory + 'Type';\n}\n/**\n * @inner\n */\n\n\nfunction createSymbol(name, lineData, idx) {\n var symbolType = lineData.getItemVisual(idx, name);\n\n if (!symbolType || symbolType === 'none') {\n return;\n }\n\n var symbolSize = lineData.getItemVisual(idx, name + 'Size');\n var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate');\n var symbolOffset = lineData.getItemVisual(idx, name + 'Offset') || 0;\n var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect');\n var symbolSizeArr = isArray(symbolSize) ? symbolSize : [symbolSize, symbolSize];\n var symbolOffsetArr = isArray(symbolOffset) ? symbolOffset : [symbolOffset, symbolOffset];\n symbolOffsetArr[0] = parsePercent(symbolOffsetArr[0], symbolSizeArr[0]);\n symbolOffsetArr[1] = parsePercent(retrieve2(symbolOffsetArr[1], symbolOffsetArr[0]), symbolSizeArr[1]);\n var symbolPath = symbolUtil.createSymbol(symbolType, -symbolSizeArr[0] / 2 + symbolOffsetArr[0], -symbolSizeArr[1] / 2 + symbolOffsetArr[1], symbolSizeArr[0], symbolSizeArr[1], null, symbolKeepAspect);\n symbolPath.__specifiedRotation = symbolRotate == null || isNaN(symbolRotate) ? void 0 : +symbolRotate * Math.PI / 180 || 0;\n symbolPath.name = name;\n return symbolPath;\n}\n\nfunction createLine(points) {\n var line = new ECLinePath({\n name: 'line',\n subPixelOptimize: true\n });\n setLinePoints(line.shape, points);\n return line;\n}\n\nfunction setLinePoints(targetShape, points) {\n targetShape.x1 = points[0][0];\n targetShape.y1 = points[0][1];\n targetShape.x2 = points[1][0];\n targetShape.y2 = points[1][1];\n targetShape.percent = 1;\n var cp1 = points[2];\n\n if (cp1) {\n targetShape.cpx1 = cp1[0];\n targetShape.cpy1 = cp1[1];\n } else {\n targetShape.cpx1 = NaN;\n targetShape.cpy1 = NaN;\n }\n}\n\nvar Line =\n/** @class */\nfunction (_super) {\n __extends(Line, _super);\n\n function Line(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this._createLine(lineData, idx, seriesScope);\n\n return _this;\n }\n\n Line.prototype._createLine = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var linePoints = lineData.getItemLayout(idx);\n var line = createLine(linePoints);\n line.shape.percent = 0;\n graphic.initProps(line, {\n shape: {\n percent: 1\n }\n }, seriesModel, idx);\n this.add(line);\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbol = createSymbol(symbolCategory, lineData, idx); // symbols must added after line to make sure\n // it will be updated after line#update.\n // Or symbol position and rotation update in line#beforeUpdate will be one frame slow\n\n this.add(symbol);\n this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory);\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n }; // TODO More strict on the List type in parameters?\n\n\n Line.prototype.updateData = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childOfName('line');\n var linePoints = lineData.getItemLayout(idx);\n var target = {\n shape: {}\n };\n setLinePoints(target.shape, linePoints);\n graphic.updateProps(line, target, seriesModel, idx);\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbolType = lineData.getItemVisual(idx, symbolCategory);\n var key = makeSymbolTypeKey(symbolCategory); // Symbol changed\n\n if (this[key] !== symbolType) {\n this.remove(this.childOfName(symbolCategory));\n var symbol = createSymbol(symbolCategory, lineData, idx);\n this.add(symbol);\n }\n\n this[key] = symbolType;\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Line.prototype.getLinePath = function () {\n return this.childAt(0);\n };\n\n Line.prototype._updateCommonStl = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childOfName('line');\n var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n var blurLineStyle = seriesScope && seriesScope.blurLineStyle;\n var selectLineStyle = seriesScope && seriesScope.selectLineStyle;\n var labelStatesModels = seriesScope && seriesScope.labelStatesModels; // Optimization for large dataset\n\n if (!seriesScope || lineData.hasItemOption) {\n var itemModel = lineData.getItemModel(idx);\n emphasisLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle();\n selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle();\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n var lineStyle = lineData.getItemVisual(idx, 'style');\n var visualColor = lineStyle.stroke;\n line.useStyle(lineStyle);\n line.style.fill = null;\n line.style.strokeNoScale = true;\n line.ensureState('emphasis').style = emphasisLineStyle;\n line.ensureState('blur').style = blurLineStyle;\n line.ensureState('select').style = selectLineStyle; // Update symbol\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbol = this.childOfName(symbolCategory);\n\n if (symbol) {\n // Share opacity and color with line.\n symbol.setColor(visualColor);\n symbol.style.opacity = lineStyle.opacity;\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var lineState = line.getState(stateName);\n\n if (lineState) {\n var lineStateStyle = lineState.style || {};\n var state = symbol.ensureState(stateName);\n var stateStyle = state.style || (state.style = {});\n\n if (lineStateStyle.stroke != null) {\n stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke;\n }\n\n if (lineStateStyle.opacity != null) {\n stateStyle.opacity = lineStateStyle.opacity;\n }\n }\n }\n\n symbol.markRedraw();\n }\n }, this);\n var rawVal = seriesModel.getRawValue(idx);\n setLabelStyle(this, labelStatesModels, {\n labelDataIndex: idx,\n labelFetcher: {\n getFormattedLabel: function (dataIndex, stateName) {\n return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType);\n }\n },\n inheritColor: visualColor || '#000',\n defaultOpacity: lineStyle.opacity,\n defaultText: (rawVal == null ? lineData.getName(idx) : isFinite(rawVal) ? round(rawVal) : rawVal) + ''\n });\n var label = this.getTextContent(); // Always set `textStyle` even if `normalStyle.text` is null, because default\n // values have to be set on `normalStyle`.\n\n if (label) {\n var labelNormalModel = labelStatesModels.normal;\n label.__align = label.style.align;\n label.__verticalAlign = label.style.verticalAlign; // 'start', 'middle', 'end'\n\n label.__position = labelNormalModel.get('position') || 'middle';\n var distance = labelNormalModel.get('distance');\n\n if (!isArray(distance)) {\n distance = [distance, distance];\n }\n\n label.__labelDistance = distance;\n }\n\n this.setTextConfig({\n position: null,\n local: true,\n inside: false // Can't be inside for stroke element.\n\n });\n enableHoverEmphasis(this);\n };\n\n Line.prototype.highlight = function () {\n enterEmphasis(this);\n };\n\n Line.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n\n Line.prototype.updateLayout = function (lineData, idx) {\n this.setLinePoints(lineData.getItemLayout(idx));\n };\n\n Line.prototype.setLinePoints = function (points) {\n var linePath = this.childOfName('line');\n setLinePoints(linePath.shape, points);\n linePath.dirty();\n };\n\n Line.prototype.beforeUpdate = function () {\n var lineGroup = this;\n var symbolFrom = lineGroup.childOfName('fromSymbol');\n var symbolTo = lineGroup.childOfName('toSymbol');\n var label = lineGroup.getTextContent(); // Quick reject\n\n if (!symbolFrom && !symbolTo && (!label || label.ignore)) {\n return;\n }\n\n var invScale = 1;\n var parentNode = this.parent;\n\n while (parentNode) {\n if (parentNode.scaleX) {\n invScale /= parentNode.scaleX;\n }\n\n parentNode = parentNode.parent;\n }\n\n var line = lineGroup.childOfName('line'); // If line not changed\n // FIXME Parent scale changed\n\n if (!this.__dirty && !line.__dirty) {\n return;\n }\n\n var percent = line.shape.percent;\n var fromPos = line.pointAt(0);\n var toPos = line.pointAt(percent);\n var d = vector.sub([], toPos, fromPos);\n vector.normalize(d, d);\n\n function setSymbolRotation(symbol, percent) {\n // Fix #12388\n // when symbol is set to be 'arrow' in markLine,\n // symbolRotate value will be ignored, and compulsively use tangent angle.\n // rotate by default if symbol rotation is not specified\n var specifiedRotation = symbol.__specifiedRotation;\n\n if (specifiedRotation == null) {\n var tangent = line.tangentAt(percent);\n symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(tangent[1], tangent[0]));\n } else {\n symbol.attr('rotation', specifiedRotation);\n }\n }\n\n if (symbolFrom) {\n symbolFrom.setPosition(fromPos);\n setSymbolRotation(symbolFrom, 0);\n symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent;\n symbolFrom.markRedraw();\n }\n\n if (symbolTo) {\n symbolTo.setPosition(toPos);\n setSymbolRotation(symbolTo, 1);\n symbolTo.scaleX = symbolTo.scaleY = invScale * percent;\n symbolTo.markRedraw();\n }\n\n if (label && !label.ignore) {\n label.x = label.y = 0;\n label.originX = label.originY = 0;\n var textAlign = void 0;\n var textVerticalAlign = void 0;\n var distance = label.__labelDistance;\n var distanceX = distance[0] * invScale;\n var distanceY = distance[1] * invScale;\n var halfPercent = percent / 2;\n var tangent = line.tangentAt(halfPercent);\n var n = [tangent[1], -tangent[0]];\n var cp = line.pointAt(halfPercent);\n\n if (n[1] > 0) {\n n[0] = -n[0];\n n[1] = -n[1];\n }\n\n var dir = tangent[0] < 0 ? -1 : 1;\n\n if (label.__position !== 'start' && label.__position !== 'end') {\n var rotation = -Math.atan2(tangent[1], tangent[0]);\n\n if (toPos[0] < fromPos[0]) {\n rotation = Math.PI + rotation;\n }\n\n label.rotation = rotation;\n }\n\n var dy = void 0;\n\n switch (label.__position) {\n case 'insideStartTop':\n case 'insideMiddleTop':\n case 'insideEndTop':\n case 'middle':\n dy = -distanceY;\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideStartBottom':\n case 'insideMiddleBottom':\n case 'insideEndBottom':\n dy = distanceY;\n textVerticalAlign = 'top';\n break;\n\n default:\n dy = 0;\n textVerticalAlign = 'middle';\n }\n\n switch (label.__position) {\n case 'end':\n label.x = d[0] * distanceX + toPos[0];\n label.y = d[1] * distanceY + toPos[1];\n textAlign = d[0] > 0.8 ? 'left' : d[0] < -0.8 ? 'right' : 'center';\n textVerticalAlign = d[1] > 0.8 ? 'top' : d[1] < -0.8 ? 'bottom' : 'middle';\n break;\n\n case 'start':\n label.x = -d[0] * distanceX + fromPos[0];\n label.y = -d[1] * distanceY + fromPos[1];\n textAlign = d[0] > 0.8 ? 'right' : d[0] < -0.8 ? 'left' : 'center';\n textVerticalAlign = d[1] > 0.8 ? 'bottom' : d[1] < -0.8 ? 'top' : 'middle';\n break;\n\n case 'insideStartTop':\n case 'insideStart':\n case 'insideStartBottom':\n label.x = distanceX * dir + fromPos[0];\n label.y = fromPos[1] + dy;\n textAlign = tangent[0] < 0 ? 'right' : 'left';\n label.originX = -distanceX * dir;\n label.originY = -dy;\n break;\n\n case 'insideMiddleTop':\n case 'insideMiddle':\n case 'insideMiddleBottom':\n case 'middle':\n label.x = cp[0];\n label.y = cp[1] + dy;\n textAlign = 'center';\n label.originY = -dy;\n break;\n\n case 'insideEndTop':\n case 'insideEnd':\n case 'insideEndBottom':\n label.x = -distanceX * dir + toPos[0];\n label.y = toPos[1] + dy;\n textAlign = tangent[0] >= 0 ? 'right' : 'left';\n label.originX = distanceX * dir;\n label.originY = -dy;\n break;\n }\n\n label.scaleX = label.scaleY = invScale;\n label.setStyle({\n // Use the user specified text align and baseline first\n verticalAlign: label.__verticalAlign || textVerticalAlign,\n align: label.__align || textAlign\n });\n }\n };\n\n return Line;\n}(graphic.Group);\n\nexport default Line;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport LineGroup from './Line';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\nvar LineDraw =\n/** @class */\nfunction () {\n function LineDraw(LineCtor) {\n this.group = new graphic.Group();\n this._LineCtor = LineCtor || LineGroup;\n }\n\n LineDraw.prototype.isPersistent = function () {\n return true;\n };\n\n ;\n\n LineDraw.prototype.updateData = function (lineData) {\n var _this = this;\n\n var lineDraw = this;\n var group = lineDraw.group;\n var oldLineData = lineDraw._lineData;\n lineDraw._lineData = lineData; // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!oldLineData) {\n group.removeAll();\n }\n\n var seriesScope = makeSeriesScope(lineData);\n lineData.diff(oldLineData).add(function (idx) {\n _this._doAdd(lineData, idx, seriesScope);\n }).update(function (newIdx, oldIdx) {\n _this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope);\n }).remove(function (idx) {\n group.remove(oldLineData.getItemGraphicEl(idx));\n }).execute();\n };\n\n ;\n\n LineDraw.prototype.updateLayout = function () {\n var lineData = this._lineData; // Do not support update layout in incremental mode.\n\n if (!lineData) {\n return;\n }\n\n lineData.eachItemGraphicEl(function (el, idx) {\n el.updateLayout(lineData, idx);\n }, this);\n };\n\n ;\n\n LineDraw.prototype.incrementalPrepareUpdate = function (lineData) {\n this._seriesScope = makeSeriesScope(lineData);\n this._lineData = null;\n this.group.removeAll();\n };\n\n ;\n\n LineDraw.prototype.incrementalUpdate = function (taskParams, lineData) {\n function updateIncrementalAndHover(el) {\n if (!el.isGroup && !isEffectObject(el)) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = taskParams.start; idx < taskParams.end; idx++) {\n var itemLayout = lineData.getItemLayout(idx);\n\n if (lineNeedsDraw(itemLayout)) {\n var el = new this._LineCtor(lineData, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n this.group.add(el);\n lineData.setItemGraphicEl(idx, el);\n }\n }\n };\n\n ;\n\n LineDraw.prototype.remove = function () {\n this.group.removeAll();\n };\n\n ;\n\n LineDraw.prototype._doAdd = function (lineData, idx, seriesScope) {\n var itemLayout = lineData.getItemLayout(idx);\n\n if (!lineNeedsDraw(itemLayout)) {\n return;\n }\n\n var el = new this._LineCtor(lineData, idx, seriesScope);\n lineData.setItemGraphicEl(idx, el);\n this.group.add(el);\n };\n\n LineDraw.prototype._doUpdate = function (oldLineData, newLineData, oldIdx, newIdx, seriesScope) {\n var itemEl = oldLineData.getItemGraphicEl(oldIdx);\n\n if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) {\n this.group.remove(itemEl);\n return;\n }\n\n if (!itemEl) {\n itemEl = new this._LineCtor(newLineData, newIdx, seriesScope);\n } else {\n itemEl.updateData(newLineData, newIdx, seriesScope);\n }\n\n newLineData.setItemGraphicEl(newIdx, itemEl);\n this.group.add(itemEl);\n };\n\n return LineDraw;\n}();\n\nfunction isEffectObject(el) {\n return el.animators && el.animators.length > 0;\n}\n\nfunction makeSeriesScope(lineData) {\n var hostModel = lineData.hostModel;\n return {\n lineStyle: hostModel.getModel('lineStyle').getLineStyle(),\n emphasisLineStyle: hostModel.getModel(['emphasis', 'lineStyle']).getLineStyle(),\n blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(),\n selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(),\n labelStatesModels: getLabelStatesModels(hostModel)\n };\n}\n\nfunction isPointNaN(pt) {\n return isNaN(pt[0]) || isNaN(pt[1]);\n}\n\nfunction lineNeedsDraw(pts) {\n return !isPointNaN(pts[0]) && !isPointNaN(pts[1]);\n}\n\nexport default LineDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as curveTool from 'zrender/lib/core/curve';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport { getSymbolSize } from './graphHelper';\nvar v1 = [];\nvar v2 = [];\nvar v3 = [];\nvar quadraticAt = curveTool.quadraticAt;\nvar v2DistSquare = vec2.distSquare;\nvar mathAbs = Math.abs;\n\nfunction intersectCurveCircle(curvePoints, center, radius) {\n var p0 = curvePoints[0];\n var p1 = curvePoints[1];\n var p2 = curvePoints[2];\n var d = Infinity;\n var t;\n var radiusSquare = radius * radius;\n var interval = 0.1;\n\n for (var _t = 0.1; _t <= 0.9; _t += 0.1) {\n v1[0] = quadraticAt(p0[0], p1[0], p2[0], _t);\n v1[1] = quadraticAt(p0[1], p1[1], p2[1], _t);\n var diff = mathAbs(v2DistSquare(v1, center) - radiusSquare);\n\n if (diff < d) {\n d = diff;\n t = _t;\n }\n } // Assume the segment is monotone,Find root through Bisection method\n // At most 32 iteration\n\n\n for (var i = 0; i < 32; i++) {\n // let prev = t - interval;\n var next = t + interval; // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);\n // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);\n\n v2[0] = quadraticAt(p0[0], p1[0], p2[0], t);\n v2[1] = quadraticAt(p0[1], p1[1], p2[1], t);\n v3[0] = quadraticAt(p0[0], p1[0], p2[0], next);\n v3[1] = quadraticAt(p0[1], p1[1], p2[1], next);\n var diff = v2DistSquare(v2, center) - radiusSquare;\n\n if (mathAbs(diff) < 1e-2) {\n break;\n } // let prevDiff = v2DistSquare(v1, center) - radiusSquare;\n\n\n var nextDiff = v2DistSquare(v3, center) - radiusSquare;\n interval /= 2;\n\n if (diff < 0) {\n if (nextDiff >= 0) {\n t = t + interval;\n } else {\n t = t - interval;\n }\n } else {\n if (nextDiff >= 0) {\n t = t - interval;\n } else {\n t = t + interval;\n }\n }\n }\n\n return t;\n} // Adjust edge to avoid\n\n\nexport default function adjustEdge(graph, scale) {\n var tmp0 = [];\n var quadraticSubdivide = curveTool.quadraticSubdivide;\n var pts = [[], [], []];\n var pts2 = [[], []];\n var v = [];\n scale /= 2;\n graph.eachEdge(function (edge, idx) {\n var linePoints = edge.getLayout();\n var fromSymbol = edge.getVisual('fromSymbol');\n var toSymbol = edge.getVisual('toSymbol');\n\n if (!linePoints.__original) {\n linePoints.__original = [vec2.clone(linePoints[0]), vec2.clone(linePoints[1])];\n\n if (linePoints[2]) {\n linePoints.__original.push(vec2.clone(linePoints[2]));\n }\n }\n\n var originalPoints = linePoints.__original; // Quadratic curve\n\n if (linePoints[2] != null) {\n vec2.copy(pts[0], originalPoints[0]);\n vec2.copy(pts[1], originalPoints[2]);\n vec2.copy(pts[2], originalPoints[1]);\n\n if (fromSymbol && fromSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node1);\n var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale); // Subdivide and get the second\n\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[0][0] = tmp0[3];\n pts[1][0] = tmp0[4];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[0][1] = tmp0[3];\n pts[1][1] = tmp0[4];\n }\n\n if (toSymbol && toSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node2);\n var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale); // Subdivide and get the first\n\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[1][0] = tmp0[1];\n pts[2][0] = tmp0[2];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[1][1] = tmp0[1];\n pts[2][1] = tmp0[2];\n } // Copy back to layout\n\n\n vec2.copy(linePoints[0], pts[0]);\n vec2.copy(linePoints[1], pts[2]);\n vec2.copy(linePoints[2], pts[1]);\n } // Line\n else {\n vec2.copy(pts2[0], originalPoints[0]);\n vec2.copy(pts2[1], originalPoints[1]);\n vec2.sub(v, pts2[1], pts2[0]);\n vec2.normalize(v, v);\n\n if (fromSymbol && fromSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node1);\n vec2.scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale);\n }\n\n if (toSymbol && toSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node2);\n vec2.scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale);\n }\n\n vec2.copy(linePoints[0], pts2[0]);\n vec2.copy(linePoints[1], pts2[1]);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LineDraw from '../helper/LineDraw';\nimport RoamController from '../../component/helper/RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport adjustEdge from './adjustEdge';\nimport { getNodeGlobalScale } from './graphHelper';\nimport ChartView from '../../view/Chart';\nimport { getECData } from '../../util/innerStore';\n\nfunction isViewCoordSys(coordSys) {\n return coordSys.type === 'view';\n}\n\nvar GraphView =\n/** @class */\nfunction (_super) {\n __extends(GraphView, _super);\n\n function GraphView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphView.type;\n return _this;\n }\n\n GraphView.prototype.init = function (ecModel, api) {\n var symbolDraw = new SymbolDraw();\n var lineDraw = new LineDraw();\n var group = this.group;\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n };\n group.add(symbolDraw.group);\n group.add(lineDraw.group);\n this._symbolDraw = symbolDraw;\n this._lineDraw = lineDraw;\n this._firstRender = true;\n };\n\n GraphView.prototype.render = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var coordSys = seriesModel.coordinateSystem;\n this._model = seriesModel;\n var symbolDraw = this._symbolDraw;\n var lineDraw = this._lineDraw;\n var group = this.group;\n\n if (isViewCoordSys(coordSys)) {\n var groupNewProp = {\n x: coordSys.x,\n y: coordSys.y,\n scaleX: coordSys.scaleX,\n scaleY: coordSys.scaleY\n };\n\n if (this._firstRender) {\n group.attr(groupNewProp);\n } else {\n graphic.updateProps(group, groupNewProp, seriesModel);\n }\n } // Fix edge contact point with node\n\n\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n var data = seriesModel.getData();\n symbolDraw.updateData(data);\n var edgeData = seriesModel.getEdgeData(); // TODO: TYPE\n\n lineDraw.updateData(edgeData);\n\n this._updateNodeAndLinkScale();\n\n this._updateController(seriesModel, ecModel, api);\n\n clearTimeout(this._layoutTimeout);\n var forceLayout = seriesModel.forceLayout;\n var layoutAnimation = seriesModel.get(['force', 'layoutAnimation']);\n\n if (forceLayout) {\n this._startForceLayoutIteration(forceLayout, layoutAnimation);\n }\n\n data.graph.eachNode(function (node) {\n var idx = node.dataIndex;\n var el = node.getGraphicEl();\n var itemModel = node.getModel(); // Update draggable\n\n el.off('drag').off('dragend');\n var draggable = itemModel.get('draggable');\n\n if (draggable) {\n el.on('drag', function () {\n if (forceLayout) {\n forceLayout.warmUp();\n !_this._layouting && _this._startForceLayoutIteration(forceLayout, layoutAnimation);\n forceLayout.setFixed(idx); // Write position back to layout\n\n data.setItemLayout(idx, [el.x, el.y]);\n }\n }).on('dragend', function () {\n if (forceLayout) {\n forceLayout.setUnfixed(idx);\n }\n });\n }\n\n el.setDraggable(draggable && !!forceLayout);\n var focus = itemModel.get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = node.getAdjacentDataIndices();\n }\n });\n data.graph.eachEdge(function (edge) {\n var el = edge.getGraphicEl();\n var focus = edge.getModel().get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = {\n edge: [edge.dataIndex],\n node: [edge.node1.dataIndex, edge.node2.dataIndex]\n };\n }\n });\n var circularRotateLabel = seriesModel.get('layout') === 'circular' && seriesModel.get(['circular', 'rotateLabel']);\n var cx = data.getLayout('cx');\n var cy = data.getLayout('cy');\n data.eachItemGraphicEl(function (el, idx) {\n var itemModel = data.getItemModel(idx);\n var labelRotate = itemModel.get(['label', 'rotate']) || 0;\n var symbolPath = el.getSymbolPath();\n\n if (circularRotateLabel) {\n var pos = data.getItemLayout(idx);\n var rad = Math.atan2(pos[1] - cy, pos[0] - cx);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n var isLeft = pos[0] < cx;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n\n var textPosition = isLeft ? 'left' : 'right';\n symbolPath.setTextConfig({\n rotation: -rad,\n position: textPosition,\n origin: 'center'\n });\n var emphasisState = symbolPath.ensureState('emphasis');\n zrUtil.extend(emphasisState.textConfig || (emphasisState.textConfig = {}), {\n position: textPosition\n });\n } else {\n symbolPath.setTextConfig({\n rotation: labelRotate *= Math.PI / 180\n });\n }\n });\n this._firstRender = false;\n };\n\n GraphView.prototype.dispose = function () {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n };\n\n GraphView.prototype._startForceLayoutIteration = function (forceLayout, layoutAnimation) {\n var self = this;\n\n (function step() {\n forceLayout.step(function (stopped) {\n self.updateLayout(self._model);\n (self._layouting = !stopped) && (layoutAnimation ? self._layoutTimeout = setTimeout(step, 16) : step());\n });\n })();\n };\n\n GraphView.prototype._updateController = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var controller = this._controller;\n var controllerHost = this._controllerHost;\n var group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n var rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);\n });\n\n if (!isViewCoordSys(seriesModel.coordinateSystem)) {\n controller.disable();\n return;\n }\n\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n controller.off('pan').off('zoom').on('pan', function (e) {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n dx: e.dx,\n dy: e.dy\n });\n }).on('zoom', function (e) {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n\n _this._updateNodeAndLinkScale();\n\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n _this._lineDraw.updateLayout(); // Only update label layout on zoom\n\n\n api.updateLabelLayout();\n });\n };\n\n GraphView.prototype._updateNodeAndLinkScale = function () {\n var seriesModel = this._model;\n var data = seriesModel.getData();\n var nodeScale = getNodeGlobalScale(seriesModel);\n data.eachItemGraphicEl(function (el, idx) {\n el.setSymbolScale(nodeScale);\n });\n };\n\n GraphView.prototype.updateLayout = function (seriesModel) {\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n this._symbolDraw.updateLayout();\n\n this._lineDraw.updateLayout();\n };\n\n GraphView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove();\n this._lineDraw && this._lineDraw.remove();\n };\n\n GraphView.type = 'graph';\n return GraphView;\n}(ChartView);\n\nexport default GraphView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // id may be function name of Object, add a prefix to avoid this problem.\n\nfunction generateNodeKey(id) {\n return '_EC_' + id;\n}\n\nvar Graph =\n/** @class */\nfunction () {\n function Graph(directed) {\n this.type = 'graph';\n this.nodes = [];\n this.edges = [];\n this._nodesMap = {};\n /**\n * @type {Object.}\n * @private\n */\n\n this._edgesMap = {};\n this._directed = directed || false;\n }\n /**\n * If is directed graph\n */\n\n\n Graph.prototype.isDirected = function () {\n return this._directed;\n };\n\n ;\n /**\n * Add a new node\n */\n\n Graph.prototype.addNode = function (id, dataIndex) {\n id = id == null ? '' + dataIndex : '' + id;\n var nodesMap = this._nodesMap;\n\n if (nodesMap[generateNodeKey(id)]) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Graph nodes have duplicate name or id');\n }\n\n return;\n }\n\n var node = new GraphNode(id, dataIndex);\n node.hostGraph = this;\n this.nodes.push(node);\n nodesMap[generateNodeKey(id)] = node;\n return node;\n };\n\n ;\n /**\n * Get node by data index\n */\n\n Graph.prototype.getNodeByIndex = function (dataIndex) {\n var rawIdx = this.data.getRawIndex(dataIndex);\n return this.nodes[rawIdx];\n };\n\n ;\n /**\n * Get node by id\n */\n\n Graph.prototype.getNodeById = function (id) {\n return this._nodesMap[generateNodeKey(id)];\n };\n\n ;\n /**\n * Add a new edge\n */\n\n Graph.prototype.addEdge = function (n1, n2, dataIndex) {\n var nodesMap = this._nodesMap;\n var edgesMap = this._edgesMap; // PNEDING\n\n if (typeof n1 === 'number') {\n n1 = this.nodes[n1];\n }\n\n if (typeof n2 === 'number') {\n n2 = this.nodes[n2];\n }\n\n if (!(n1 instanceof GraphNode)) {\n n1 = nodesMap[generateNodeKey(n1)];\n }\n\n if (!(n2 instanceof GraphNode)) {\n n2 = nodesMap[generateNodeKey(n2)];\n }\n\n if (!n1 || !n2) {\n return;\n }\n\n var key = n1.id + '-' + n2.id;\n var edge = new GraphEdge(n1, n2, dataIndex);\n edge.hostGraph = this;\n\n if (this._directed) {\n n1.outEdges.push(edge);\n n2.inEdges.push(edge);\n }\n\n n1.edges.push(edge);\n\n if (n1 !== n2) {\n n2.edges.push(edge);\n }\n\n this.edges.push(edge);\n edgesMap[key] = edge;\n return edge;\n };\n\n ;\n /**\n * Get edge by data index\n */\n\n Graph.prototype.getEdgeByIndex = function (dataIndex) {\n var rawIdx = this.edgeData.getRawIndex(dataIndex);\n return this.edges[rawIdx];\n };\n\n ;\n /**\n * Get edge by two linked nodes\n */\n\n Graph.prototype.getEdge = function (n1, n2) {\n if (n1 instanceof GraphNode) {\n n1 = n1.id;\n }\n\n if (n2 instanceof GraphNode) {\n n2 = n2.id;\n }\n\n var edgesMap = this._edgesMap;\n\n if (this._directed) {\n return edgesMap[n1 + '-' + n2];\n } else {\n return edgesMap[n1 + '-' + n2] || edgesMap[n2 + '-' + n1];\n }\n };\n\n ;\n /**\n * Iterate all nodes\n */\n\n Graph.prototype.eachNode = function (cb, context) {\n var nodes = this.nodes;\n var len = nodes.length;\n\n for (var i = 0; i < len; i++) {\n if (nodes[i].dataIndex >= 0) {\n cb.call(context, nodes[i], i);\n }\n }\n };\n\n ;\n /**\n * Iterate all edges\n */\n\n Graph.prototype.eachEdge = function (cb, context) {\n var edges = this.edges;\n var len = edges.length;\n\n for (var i = 0; i < len; i++) {\n if (edges[i].dataIndex >= 0 && edges[i].node1.dataIndex >= 0 && edges[i].node2.dataIndex >= 0) {\n cb.call(context, edges[i], i);\n }\n }\n };\n\n ;\n /**\n * Breadth first traverse\n * Return true to stop traversing\n */\n\n Graph.prototype.breadthFirstTraverse = function (cb, startNode, direction, context) {\n if (!(startNode instanceof GraphNode)) {\n startNode = this._nodesMap[generateNodeKey(startNode)];\n }\n\n if (!startNode) {\n return;\n }\n\n var edgeType = direction === 'out' ? 'outEdges' : direction === 'in' ? 'inEdges' : 'edges';\n\n for (var i = 0; i < this.nodes.length; i++) {\n this.nodes[i].__visited = false;\n }\n\n if (cb.call(context, startNode, null)) {\n return;\n }\n\n var queue = [startNode];\n\n while (queue.length) {\n var currentNode = queue.shift();\n var edges = currentNode[edgeType];\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n var otherNode = e.node1 === currentNode ? e.node2 : e.node1;\n\n if (!otherNode.__visited) {\n if (cb.call(context, otherNode, currentNode)) {\n // Stop traversing\n return;\n }\n\n queue.push(otherNode);\n otherNode.__visited = true;\n }\n }\n }\n };\n\n ; // TODO\n // depthFirstTraverse(\n // cb, startNode, direction, context\n // ) {\n // };\n // Filter update\n\n Graph.prototype.update = function () {\n var data = this.data;\n var edgeData = this.edgeData;\n var nodes = this.nodes;\n var edges = this.edges;\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (var i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n\n edgeData.filterSelf(function (idx) {\n var edge = edges[edgeData.getRawIndex(idx)];\n return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;\n }); // Update edge\n\n for (var i = 0, len = edges.length; i < len; i++) {\n edges[i].dataIndex = -1;\n }\n\n for (var i = 0, len = edgeData.count(); i < len; i++) {\n edges[edgeData.getRawIndex(i)].dataIndex = i;\n }\n };\n\n ;\n /**\n * @return {module:echarts/data/Graph}\n */\n\n Graph.prototype.clone = function () {\n var graph = new Graph(this._directed);\n var nodes = this.nodes;\n var edges = this.edges;\n\n for (var i = 0; i < nodes.length; i++) {\n graph.addNode(nodes[i].id, nodes[i].dataIndex);\n }\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);\n }\n\n return graph;\n };\n\n ;\n return Graph;\n}();\n\nvar GraphNode =\n/** @class */\nfunction () {\n function GraphNode(id, dataIndex) {\n this.inEdges = [];\n this.outEdges = [];\n this.edges = [];\n this.dataIndex = -1;\n this.id = id == null ? '' : id;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.degree = function () {\n return this.edges.length;\n };\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.inDegree = function () {\n return this.inEdges.length;\n };\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.outDegree = function () {\n return this.outEdges.length;\n };\n\n GraphNode.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var graph = this.hostGraph;\n var itemModel = graph.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n };\n\n GraphNode.prototype.getAdjacentDataIndices = function () {\n var dataIndices = {\n edge: [],\n node: []\n };\n\n for (var i = 0; i < this.edges.length; i++) {\n var adjacentEdge = this.edges[i];\n\n if (adjacentEdge.dataIndex < 0) {\n continue;\n }\n\n dataIndices.edge.push(adjacentEdge.dataIndex);\n dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex);\n }\n\n return dataIndices;\n };\n\n return GraphNode;\n}();\n\nvar GraphEdge =\n/** @class */\nfunction () {\n function GraphEdge(n1, n2, dataIndex) {\n this.dataIndex = -1;\n this.node1 = n1;\n this.node2 = n2;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n GraphEdge.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var graph = this.hostGraph;\n var itemModel = graph.edgeData.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n };\n\n GraphEdge.prototype.getAdjacentDataIndices = function () {\n return {\n edge: [this.dataIndex],\n node: [this.node1.dataIndex, this.node2.dataIndex]\n };\n };\n\n return GraphEdge;\n}();\n\nfunction createGraphDataProxyMixin(hostName, dataName) {\n return {\n /**\n * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.\n */\n getValue: function (dimension) {\n var data = this[hostName][dataName];\n return data.get(data.getDimension(dimension || 'value'), this.dataIndex);\n },\n // TODO: TYPE stricter type.\n setVisual: function (key, value) {\n this.dataIndex >= 0 && this[hostName][dataName].setItemVisual(this.dataIndex, key, value);\n },\n getVisual: function (key) {\n return this[hostName][dataName].getItemVisual(this.dataIndex, key);\n },\n setLayout: function (layout, merge) {\n this.dataIndex >= 0 && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);\n },\n getLayout: function () {\n return this[hostName][dataName].getItemLayout(this.dataIndex);\n },\n getGraphicEl: function () {\n return this[hostName][dataName].getItemGraphicEl(this.dataIndex);\n },\n getRawIndex: function () {\n return this[hostName][dataName].getRawIndex(this.dataIndex);\n }\n };\n}\n\n;\n;\n;\nzrUtil.mixin(GraphNode, createGraphDataProxyMixin('hostGraph', 'data'));\nzrUtil.mixin(GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData'));\nexport default Graph;\nexport { GraphNode, GraphEdge };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport List from '../../data/List';\nimport Graph from '../../data/Graph';\nimport linkList from '../../data/helper/linkList';\nimport createDimensions from '../../data/helper/createDimensions';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport createListFromArray from './createListFromArray';\nimport { convertOptionIdName } from '../../util/model';\nexport default function createGraphFromNodeEdge(nodes, edges, seriesModel, directed, beforeLink) {\n // ??? TODO\n // support dataset?\n var graph = new Graph(directed);\n\n for (var i = 0; i < nodes.length; i++) {\n graph.addNode(zrUtil.retrieve( // Id, name, dataIndex\n nodes[i].id, nodes[i].name, i), i);\n }\n\n var linkNameList = [];\n var validEdges = [];\n var linkCount = 0;\n\n for (var i = 0; i < edges.length; i++) {\n var link = edges[i];\n var source = link.source;\n var target = link.target; // addEdge may fail when source or target not exists\n\n if (graph.addEdge(source, target, linkCount)) {\n validEdges.push(link);\n linkNameList.push(zrUtil.retrieve(convertOptionIdName(link.id, null), source + ' > ' + target));\n linkCount++;\n }\n }\n\n var coordSys = seriesModel.get('coordinateSystem');\n var nodeData;\n\n if (coordSys === 'cartesian2d' || coordSys === 'polar') {\n nodeData = createListFromArray(nodes, seriesModel);\n } else {\n var coordSysCtor = CoordinateSystem.get(coordSys);\n var coordDimensions = coordSysCtor ? coordSysCtor.dimensions || [] : []; // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs\n // `value` dimension, but graph need `value` dimension. It's better to\n // uniform this behavior.\n\n if (zrUtil.indexOf(coordDimensions, 'value') < 0) {\n coordDimensions.concat(['value']);\n }\n\n var dimensionNames = createDimensions(nodes, {\n coordDimensions: coordDimensions\n });\n nodeData = new List(dimensionNames, seriesModel);\n nodeData.initData(nodes);\n }\n\n var edgeData = new List(['value'], seriesModel);\n edgeData.initData(validEdges, linkNameList);\n beforeLink && beforeLink(nodeData, edgeData);\n linkList({\n mainData: nodeData,\n struct: graph,\n structAttr: 'graph',\n datas: {\n node: nodeData,\n edge: edgeData\n },\n datasAttr: {\n node: 'data',\n edge: 'edgeData'\n }\n }); // Update dataIndex of nodes and edges because invalid edge may be removed\n\n graph.update();\n return graph;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport List from '../../data/List';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { defaultEmphasis } from '../../util/model';\nimport Model from '../../model/Model';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { defaultSeriesFormatTooltip } from '../../component/tooltip/seriesFormatTooltip';\nimport { initCurvenessList, createEdgeMapForCurveness } from '../helper/multipleGraphEdgeHelper';\n\nvar GraphSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(GraphSeriesModel, _super);\n\n function GraphSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n GraphSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments);\n\n var self = this;\n\n function getCategoriesData() {\n return self._categoriesData;\n } // Provide data for legend select\n\n\n this.legendVisualProvider = new LegendVisualProvider(getCategoriesData, getCategoriesData);\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n };\n\n GraphSeriesModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n };\n\n GraphSeriesModel.prototype.mergeDefaultAndTheme = function (option) {\n _super.prototype.mergeDefaultAndTheme.apply(this, arguments);\n\n defaultEmphasis(option, 'edgeLabel', ['show']);\n };\n\n GraphSeriesModel.prototype.getInitialData = function (option, ecModel) {\n var edges = option.edges || option.links || [];\n var nodes = option.data || option.nodes || [];\n var self = this;\n\n if (nodes && edges) {\n // auto curveness\n initCurvenessList(this);\n var graph = createGraphFromNodeEdge(nodes, edges, this, true, beforeLink);\n zrUtil.each(graph.edges, function (edge) {\n createEdgeMapForCurveness(edge.node1, edge.node2, this, edge.dataIndex);\n }, this);\n return graph.data;\n }\n\n function beforeLink(nodeData, edgeData) {\n // Overwrite nodeData.getItemModel to\n nodeData.wrapMethod('getItemModel', function (model) {\n var categoriesModels = self._categoriesModels;\n var categoryIdx = model.getShallow('category');\n var categoryModel = categoriesModels[categoryIdx];\n\n if (categoryModel) {\n categoryModel.parentModel = model.parentModel;\n model.parentModel = categoryModel;\n }\n\n return model;\n }); // TODO Inherit resolveParentPath by default in Model#getModel?\n\n var oldGetModel = Model.prototype.getModel;\n\n function newGetModel(path, parentModel) {\n var model = oldGetModel.call(this, path, parentModel);\n model.resolveParentPath = resolveParentPath;\n return model;\n }\n\n edgeData.wrapMethod('getItemModel', function (model) {\n model.resolveParentPath = resolveParentPath;\n model.getModel = newGetModel;\n return model;\n });\n\n function resolveParentPath(pathArr) {\n if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) {\n var newPathArr = pathArr.slice();\n\n if (pathArr[0] === 'label') {\n newPathArr[0] = 'edgeLabel';\n } else if (pathArr[1] === 'label') {\n newPathArr[1] = 'edgeLabel';\n }\n\n return newPathArr;\n }\n\n return pathArr;\n }\n }\n };\n\n GraphSeriesModel.prototype.getGraph = function () {\n return this.getData().graph;\n };\n\n GraphSeriesModel.prototype.getEdgeData = function () {\n return this.getGraph().edgeData;\n };\n\n GraphSeriesModel.prototype.getCategoriesData = function () {\n return this._categoriesData;\n };\n\n GraphSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n if (dataType === 'edge') {\n var nodeData = this.getData();\n var params = this.getDataParams(dataIndex, dataType);\n var edge = nodeData.graph.getEdgeByIndex(dataIndex);\n var sourceName = nodeData.getName(edge.node1.dataIndex);\n var targetName = nodeData.getName(edge.node2.dataIndex);\n var nameArr = [];\n sourceName != null && nameArr.push(sourceName);\n targetName != null && nameArr.push(targetName);\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > '),\n value: params.value,\n noValue: params.value == null\n });\n } // dataType === 'node' or empty\n\n\n var nodeMarkup = defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n return nodeMarkup;\n };\n\n GraphSeriesModel.prototype._updateCategoriesData = function () {\n var categories = zrUtil.map(this.option.categories || [], function (category) {\n // Data must has value\n return category.value != null ? category : zrUtil.extend({\n value: 0\n }, category);\n });\n var categoriesData = new List(['value'], this);\n categoriesData.initData(categories);\n this._categoriesData = categoriesData;\n this._categoriesModels = categoriesData.mapArray(function (idx) {\n return categoriesData.getItemModel(idx);\n });\n };\n\n GraphSeriesModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n GraphSeriesModel.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n GraphSeriesModel.prototype.isAnimationEnabled = function () {\n return _super.prototype.isAnimationEnabled.call(this) // Not enable animation when do force layout\n && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation']));\n };\n\n GraphSeriesModel.type = 'series.graph';\n GraphSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n GraphSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n // Default option for all coordinate systems\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // polarIndex: 0,\n // geoIndex: 0,\n legendHoverLink: true,\n layout: null,\n // Configuration of circular layout\n circular: {\n rotateLabel: false\n },\n // Configuration of force directed layout\n force: {\n initLayout: null,\n // Node repulsion. Can be an array to represent range.\n repulsion: [0, 50],\n gravity: 0.1,\n // Initial friction\n friction: 0.6,\n // Edge length. Can be an array to represent range.\n edgeLength: 30,\n layoutAnimation: true\n },\n left: 'center',\n top: 'center',\n // right: null,\n // bottom: null,\n // width: '80%',\n // height: '80%',\n symbol: 'circle',\n symbolSize: 10,\n edgeSymbol: ['none', 'none'],\n edgeSymbolSize: 10,\n edgeLabel: {\n position: 'middle',\n distance: 5\n },\n draggable: false,\n roam: false,\n // Default on center of graph\n center: null,\n zoom: 1,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.6,\n // cursor: null,\n // categories: [],\n // data: []\n // Or\n // nodes: []\n //\n // links: []\n // Or\n // edges: []\n label: {\n show: false,\n formatter: '{b}'\n },\n itemStyle: {},\n lineStyle: {\n color: '#aaa',\n width: 1,\n opacity: 0.5\n },\n emphasis: {\n scale: true,\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return GraphSeriesModel;\n}(SeriesModel);\n\nexport default GraphSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport categoryFilter from './categoryFilter';\nimport categoryVisual from './categoryVisual';\nimport edgeVisual from './edgeVisual';\nimport simpleLayout from './simpleLayout';\nimport circularLayout from './circularLayout';\nimport forceLayout from './forceLayout';\nimport createView from './createView';\nimport View from '../../coord/View';\nimport GraphView from './GraphView';\nimport GraphSeriesModel from './GraphSeries';\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nvar actionInfo = {\n type: 'graphRoam',\n event: 'graphRoam',\n update: 'none'\n};\nexport function install(registers) {\n registers.registerChartView(GraphView);\n registers.registerSeriesModel(GraphSeriesModel);\n registers.registerProcessor(categoryFilter);\n registers.registerVisual(categoryVisual);\n registers.registerVisual(edgeVisual);\n registers.registerLayout(simpleLayout);\n registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);\n registers.registerLayout(forceLayout);\n registers.registerCoordinateSystem('graphView', {\n dimensions: View.dimensions,\n create: createView\n }); // Register legacy focus actions\n\n registers.registerAction({\n type: 'focusNodeAdjacency',\n event: 'focusNodeAdjacency',\n update: 'series:focusNodeAdjacency'\n }, function () {});\n registers.registerAction({\n type: 'unfocusNodeAdjacency',\n event: 'unfocusNodeAdjacency',\n update: 'series:unfocusNodeAdjacency'\n }, function () {}); // Register roam action.\n\n registers.registerAction(actionInfo, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n query: payload\n }, function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var res = updateCenterAndZoom(coordSys, payload);\n seriesModel.setCenter && seriesModel.setCenter(res.center);\n seriesModel.setZoom && seriesModel.setZoom(res.zoom);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Path from 'zrender/lib/graphic/Path';\n\nvar PointerShape =\n/** @class */\nfunction () {\n function PointerShape() {\n this.angle = 0;\n this.width = 10;\n this.r = 10;\n this.x = 0;\n this.y = 0;\n }\n\n return PointerShape;\n}();\n\nvar PointerPath =\n/** @class */\nfunction (_super) {\n __extends(PointerPath, _super);\n\n function PointerPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'pointer';\n return _this;\n }\n\n PointerPath.prototype.getDefaultShape = function () {\n return new PointerShape();\n };\n\n PointerPath.prototype.buildPath = function (ctx, shape) {\n var mathCos = Math.cos;\n var mathSin = Math.sin;\n var r = shape.r;\n var width = shape.width;\n var angle = shape.angle;\n var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);\n var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);\n angle = shape.angle - Math.PI / 2;\n ctx.moveTo(x, y);\n ctx.lineTo(shape.x + mathCos(angle) * width, shape.y + mathSin(angle) * width);\n ctx.lineTo(shape.x + mathCos(shape.angle) * r, shape.y + mathSin(shape.angle) * r);\n ctx.lineTo(shape.x - mathCos(angle) * width, shape.y - mathSin(angle) * width);\n ctx.lineTo(x, y);\n };\n\n return PointerPath;\n}(Path);\n\nexport default PointerPath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport PointerPath from './PointerPath';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport { createTextStyle, setLabelValueAnimation, animateLabelValue } from '../../label/labelStyle';\nimport ChartView from '../../view/Chart';\nimport { parsePercent, round, linearMap } from '../../util/number';\nimport Sausage from '../../util/shape/sausage';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { extend } from 'zrender/lib/core/util';\n\nfunction parsePosition(seriesModel, api) {\n var center = seriesModel.get('center');\n var width = api.getWidth();\n var height = api.getHeight();\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], api.getWidth());\n var cy = parsePercent(center[1], api.getHeight());\n var r = parsePercent(seriesModel.get('radius'), size / 2);\n return {\n cx: cx,\n cy: cy,\n r: r\n };\n}\n\nfunction formatLabel(value, labelFormatter) {\n var label = value == null ? '' : value + '';\n\n if (labelFormatter) {\n if (typeof labelFormatter === 'string') {\n label = labelFormatter.replace('{value}', label);\n } else if (typeof labelFormatter === 'function') {\n label = labelFormatter(value);\n }\n }\n\n return label;\n}\n\nvar PI2 = Math.PI * 2;\n\nvar GaugeView =\n/** @class */\nfunction (_super) {\n __extends(GaugeView, _super);\n\n function GaugeView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GaugeView.type;\n return _this;\n }\n\n GaugeView.prototype.render = function (seriesModel, ecModel, api) {\n this.group.removeAll();\n var colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']);\n var posInfo = parsePosition(seriesModel, api);\n\n this._renderMain(seriesModel, ecModel, api, colorList, posInfo);\n\n this._data = seriesModel.getData();\n };\n\n GaugeView.prototype.dispose = function () {};\n\n GaugeView.prototype._renderMain = function (seriesModel, ecModel, api, colorList, posInfo) {\n var group = this.group;\n var clockwise = seriesModel.get('clockwise');\n var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;\n var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;\n var axisLineModel = seriesModel.getModel('axisLine');\n var roundCap = axisLineModel.get('roundCap');\n var MainPath = roundCap ? Sausage : graphic.Sector;\n var showAxis = axisLineModel.get('show');\n var lineStyleModel = axisLineModel.getModel('lineStyle');\n var axisLineWidth = lineStyleModel.get('width');\n var angleRangeSpan = !((endAngle - startAngle) % PI2) && endAngle !== startAngle ? PI2 : (endAngle - startAngle) % PI2;\n var prevEndAngle = startAngle;\n\n for (var i = 0; showAxis && i < colorList.length; i++) {\n // Clamp\n var percent = Math.min(Math.max(colorList[i][0], 0), 1);\n endAngle = startAngle + angleRangeSpan * percent;\n var sector = new MainPath({\n shape: {\n startAngle: prevEndAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: posInfo.r - axisLineWidth,\n r: posInfo.r\n },\n silent: true\n });\n sector.setStyle({\n fill: colorList[i][1]\n });\n sector.setStyle(lineStyleModel.getLineStyle( // Because we use sector to simulate arc\n // so the properties for stroking are useless\n ['color', 'width']));\n group.add(sector);\n prevEndAngle = endAngle;\n }\n\n var getColor = function (percent) {\n // Less than 0\n if (percent <= 0) {\n return colorList[0][1];\n }\n\n var i;\n\n for (i = 0; i < colorList.length; i++) {\n if (colorList[i][0] >= percent && (i === 0 ? 0 : colorList[i - 1][0]) < percent) {\n return colorList[i][1];\n }\n } // More than 1\n\n\n return colorList[i - 1][1];\n };\n\n if (!clockwise) {\n var tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n\n this._renderTicks(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);\n\n this._renderTitleAndDetail(seriesModel, ecModel, api, getColor, posInfo);\n\n this._renderAnchor(seriesModel, posInfo);\n\n this._renderPointer(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);\n };\n\n GaugeView.prototype._renderTicks = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {\n var group = this.group;\n var cx = posInfo.cx;\n var cy = posInfo.cy;\n var r = posInfo.r;\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var splitLineModel = seriesModel.getModel('splitLine');\n var tickModel = seriesModel.getModel('axisTick');\n var labelModel = seriesModel.getModel('axisLabel');\n var splitNumber = seriesModel.get('splitNumber');\n var subSplitNumber = tickModel.get('splitNumber');\n var splitLineLen = parsePercent(splitLineModel.get('length'), r);\n var tickLen = parsePercent(tickModel.get('length'), r);\n var angle = startAngle;\n var step = (endAngle - startAngle) / splitNumber;\n var subStep = step / subSplitNumber;\n var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();\n var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();\n var splitLineDistance = splitLineModel.get('distance');\n var unitX;\n var unitY;\n\n for (var i = 0; i <= splitNumber; i++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle); // Split line\n\n if (splitLineModel.get('show')) {\n var distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth;\n var splitLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - splitLineLen - distance) + cx,\n y2: unitY * (r - splitLineLen - distance) + cy\n },\n style: splitLineStyle,\n silent: true\n });\n\n if (splitLineStyle.stroke === 'auto') {\n splitLine.setStyle({\n stroke: getColor(i / splitNumber)\n });\n }\n\n group.add(splitLine);\n } // Label\n\n\n if (labelModel.get('show')) {\n var distance = labelModel.get('distance') + splitLineDistance;\n var label = formatLabel(round(i / splitNumber * (maxVal - minVal) + minVal), labelModel.get('formatter'));\n var autoColor = getColor(i / splitNumber);\n group.add(new graphic.Text({\n style: createTextStyle(labelModel, {\n text: label,\n x: unitX * (r - splitLineLen - distance) + cx,\n y: unitY * (r - splitLineLen - distance) + cy,\n verticalAlign: unitY < -0.8 ? 'top' : unitY > 0.8 ? 'bottom' : 'middle',\n align: unitX < -0.4 ? 'left' : unitX > 0.4 ? 'right' : 'center'\n }, {\n inheritColor: autoColor\n }),\n silent: true\n }));\n } // Axis tick\n\n\n if (tickModel.get('show') && i !== splitNumber) {\n var distance = tickModel.get('distance');\n distance = distance ? distance + axisLineWidth : axisLineWidth;\n\n for (var j = 0; j <= subSplitNumber; j++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n var tickLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - tickLen - distance) + cx,\n y2: unitY * (r - tickLen - distance) + cy\n },\n silent: true,\n style: tickLineStyle\n });\n\n if (tickLineStyle.stroke === 'auto') {\n tickLine.setStyle({\n stroke: getColor((i + j / subSplitNumber) / splitNumber)\n });\n }\n\n group.add(tickLine);\n angle += subStep;\n }\n\n angle -= subStep;\n } else {\n angle += step;\n }\n }\n };\n\n GaugeView.prototype._renderPointer = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {\n var group = this.group;\n var oldData = this._data;\n var oldProgressData = this._progressEls;\n var progressList = [];\n var showPointer = seriesModel.get(['pointer', 'show']);\n var progressModel = seriesModel.getModel('progress');\n var showProgress = progressModel.get('show');\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var valueExtent = [minVal, maxVal];\n var angleExtent = [startAngle, endAngle];\n\n function createPointer(idx, angle) {\n var itemModel = data.getItemModel(idx);\n var pointerModel = itemModel.getModel('pointer');\n var pointerWidth = parsePercent(pointerModel.get('width'), posInfo.r);\n var pointerLength = parsePercent(pointerModel.get('length'), posInfo.r);\n var pointerStr = seriesModel.get(['pointer', 'icon']);\n var pointerOffset = pointerModel.get('offsetCenter');\n var pointerOffsetX = parsePercent(pointerOffset[0], posInfo.r);\n var pointerOffsetY = parsePercent(pointerOffset[1], posInfo.r);\n var pointerKeepAspect = pointerModel.get('keepAspect');\n var pointer; // not exist icon type will be set 'rect'\n\n if (pointerStr) {\n pointer = createSymbol(pointerStr, pointerOffsetX - pointerWidth / 2, pointerOffsetY - pointerLength, pointerWidth, pointerLength, null, pointerKeepAspect);\n } else {\n pointer = new PointerPath({\n shape: {\n angle: -Math.PI / 2,\n width: pointerWidth,\n r: pointerLength,\n x: pointerOffsetX,\n y: pointerOffsetY\n }\n });\n }\n\n pointer.rotation = -(angle + Math.PI / 2);\n pointer.x = posInfo.cx;\n pointer.y = posInfo.cy;\n return pointer;\n }\n\n function createProgress(idx, endAngle) {\n var roundCap = progressModel.get('roundCap');\n var ProgressPath = roundCap ? Sausage : graphic.Sector;\n var isOverlap = progressModel.get('overlap');\n var progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();\n var r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;\n var r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth;\n var progress = new ProgressPath({\n shape: {\n startAngle: startAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: r0,\n r: r\n }\n });\n isOverlap && (progress.z2 = maxVal - data.get(valueDim, idx) % maxVal);\n return progress;\n }\n\n if (showProgress || showPointer) {\n data.diff(oldData).add(function (idx) {\n if (showPointer) {\n var pointer = createPointer(idx, startAngle);\n graphic.initProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, idx), valueExtent, angleExtent, true) + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(idx, pointer);\n }\n\n if (showProgress) {\n var progress = createProgress(idx, startAngle);\n var isClip = progressModel.get('clip');\n graphic.initProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, idx), valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n progressList[idx] = progress;\n }\n }).update(function (newIdx, oldIdx) {\n if (showPointer) {\n var previousPointer = oldData.getItemGraphicEl(oldIdx);\n var previousRotate = previousPointer ? previousPointer.rotation : startAngle;\n var pointer = createPointer(newIdx, previousRotate);\n pointer.rotation = previousRotate;\n graphic.updateProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, newIdx), valueExtent, angleExtent, true) + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(newIdx, pointer);\n }\n\n if (showProgress) {\n var previousProgress = oldProgressData[oldIdx];\n var previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle;\n var progress = createProgress(newIdx, previousEndAngle);\n var isClip = progressModel.get('clip');\n graphic.updateProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, newIdx), valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n progressList[newIdx] = progress;\n }\n }).execute();\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n\n if (showPointer) {\n var pointer = data.getItemGraphicEl(idx);\n var symbolStyle = data.getItemVisual(idx, 'style');\n var visualColor = symbolStyle.fill;\n\n if (pointer instanceof ZRImage) {\n var pathStyle = pointer.style;\n pointer.useStyle(extend({\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolStyle));\n } else {\n pointer.useStyle(symbolStyle);\n pointer.type !== 'pointer' && pointer.setColor(visualColor);\n }\n\n pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());\n\n if (pointer.style.fill === 'auto') {\n pointer.setStyle('fill', getColor(linearMap(data.get(valueDim, idx), valueExtent, [0, 1], true)));\n }\n\n pointer.z2EmphasisLift = 0;\n setStatesStylesFromModel(pointer, itemModel);\n enableHoverEmphasis(pointer, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n if (showProgress) {\n var progress = progressList[idx];\n progress.useStyle(data.getItemVisual(idx, 'style'));\n progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle());\n progress.z2EmphasisLift = 0;\n setStatesStylesFromModel(progress, itemModel);\n enableHoverEmphasis(progress, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n });\n this._progressEls = progressList;\n }\n };\n\n GaugeView.prototype._renderAnchor = function (seriesModel, posInfo) {\n var anchorModel = seriesModel.getModel('anchor');\n var showAnchor = anchorModel.get('show');\n\n if (showAnchor) {\n var anchorSize = anchorModel.get('size');\n var anchorType = anchorModel.get('icon');\n var offsetCenter = anchorModel.get('offsetCenter');\n var anchorKeepAspect = anchorModel.get('keepAspect');\n var anchor = createSymbol(anchorType, posInfo.cx - anchorSize / 2 + parsePercent(offsetCenter[0], posInfo.r), posInfo.cy - anchorSize / 2 + parsePercent(offsetCenter[1], posInfo.r), anchorSize, anchorSize, null, anchorKeepAspect);\n anchor.z2 = anchorModel.get('showAbove') ? 1 : 0;\n anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle());\n this.group.add(anchor);\n }\n };\n\n GaugeView.prototype._renderTitleAndDetail = function (seriesModel, ecModel, api, getColor, posInfo) {\n var _this = this;\n\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var contentGroup = new graphic.Group();\n var newTitleEls = [];\n var newDetailEls = [];\n var hasAnimation = seriesModel.isAnimationEnabled();\n data.diff(this._data).add(function (idx) {\n newTitleEls[idx] = new graphic.Text({\n silent: true\n });\n newDetailEls[idx] = new graphic.Text({\n silent: true\n });\n }).update(function (idx, oldIdx) {\n newTitleEls[idx] = _this._titleEls[oldIdx];\n newDetailEls[idx] = _this._detailEls[oldIdx];\n }).execute();\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var value = data.get(valueDim, idx);\n var itemGroup = new graphic.Group();\n var autoColor = getColor(linearMap(value, [minVal, maxVal], [0, 1], true));\n var itemTitleModel = itemModel.getModel('title');\n\n if (itemTitleModel.get('show')) {\n var titleOffsetCenter = itemTitleModel.get('offsetCenter');\n var titleX = posInfo.cx + parsePercent(titleOffsetCenter[0], posInfo.r);\n var titleY = posInfo.cy + parsePercent(titleOffsetCenter[1], posInfo.r);\n var labelEl = newTitleEls[idx];\n labelEl.attr({\n style: createTextStyle(itemTitleModel, {\n x: titleX,\n y: titleY,\n text: data.getName(idx),\n align: 'center',\n verticalAlign: 'middle'\n }, {\n inheritColor: autoColor\n })\n });\n itemGroup.add(labelEl);\n }\n\n var itemDetailModel = itemModel.getModel('detail');\n\n if (itemDetailModel.get('show')) {\n var detailOffsetCenter = itemDetailModel.get('offsetCenter');\n var detailX = posInfo.cx + parsePercent(detailOffsetCenter[0], posInfo.r);\n var detailY = posInfo.cy + parsePercent(detailOffsetCenter[1], posInfo.r);\n var width = parsePercent(itemDetailModel.get('width'), posInfo.r);\n var height = parsePercent(itemDetailModel.get('height'), posInfo.r);\n var detailColor = seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor;\n var labelEl = newDetailEls[idx];\n var formatter_1 = itemDetailModel.get('formatter');\n labelEl.attr({\n style: createTextStyle(itemDetailModel, {\n x: detailX,\n y: detailY,\n text: formatLabel(value, formatter_1),\n width: isNaN(width) ? null : width,\n height: isNaN(height) ? null : height,\n align: 'center',\n verticalAlign: 'middle'\n }, {\n inheritColor: detailColor\n })\n });\n setLabelValueAnimation(labelEl, {\n normal: itemDetailModel\n }, value, function (value) {\n return formatLabel(value, formatter_1);\n });\n hasAnimation && animateLabelValue(labelEl, idx, data, seriesModel, {\n getFormattedLabel: function (labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams) {\n return formatLabel(extendParams ? extendParams.interpolatedValue : value, formatter_1);\n }\n });\n itemGroup.add(labelEl);\n }\n\n contentGroup.add(itemGroup);\n });\n this.group.add(contentGroup);\n this._titleEls = newTitleEls;\n this._detailEls = newDetailEls;\n };\n\n GaugeView.type = 'gauge';\n return GaugeView;\n}(ChartView);\n\nexport default GaugeView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListSimply from '../helper/createListSimply';\nimport SeriesModel from '../../model/Series';\n\nvar GaugeSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(GaugeSeriesModel, _super);\n\n function GaugeSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GaugeSeriesModel.type;\n _this.visualStyleAccessPath = 'itemStyle';\n _this.useColorPaletteOnData = true;\n return _this;\n }\n\n GaugeSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, ['value']);\n };\n\n GaugeSeriesModel.type = 'series.gauge';\n GaugeSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n // 默认全局居中\n center: ['50%', '50%'],\n legendHoverLink: true,\n radius: '75%',\n startAngle: 225,\n endAngle: -45,\n clockwise: true,\n // 最小值\n min: 0,\n // 最大值\n max: 100,\n // 分割段数,默认为10\n splitNumber: 10,\n // 坐标轴线\n axisLine: {\n // 默认显示,属性show控制显示与否\n show: true,\n roundCap: false,\n lineStyle: {\n color: [[1, '#E6EBF8']],\n width: 10\n }\n },\n // 坐标轴线\n progress: {\n // 默认显示,属性show控制显示与否\n show: false,\n overlap: true,\n width: 10,\n roundCap: false,\n clip: true\n },\n // 分隔线\n splitLine: {\n // 默认显示,属性show控制显示与否\n show: true,\n // 属性length控制线长\n length: 10,\n distance: 10,\n // 属性lineStyle(详见lineStyle)控制线条样式\n lineStyle: {\n color: '#63677A',\n width: 3,\n type: 'solid'\n }\n },\n // 坐标轴小标记\n axisTick: {\n // 属性show控制显示与否,默认不显示\n show: true,\n // 每份split细分多少段\n splitNumber: 5,\n // 属性length控制线长\n length: 6,\n distance: 10,\n // 属性lineStyle控制线条样式\n lineStyle: {\n color: '#63677A',\n width: 1,\n type: 'solid'\n }\n },\n axisLabel: {\n show: true,\n distance: 15,\n // formatter: null,\n color: '#464646',\n fontSize: 12\n },\n pointer: {\n icon: null,\n offsetCenter: [0, 0],\n show: true,\n length: '60%',\n width: 6,\n keepAspect: false\n },\n anchor: {\n show: false,\n showAbove: false,\n size: 6,\n icon: 'circle',\n offsetCenter: [0, 0],\n keepAspect: false,\n itemStyle: {\n color: '#fff',\n borderWidth: 0,\n borderColor: '#5470c6'\n }\n },\n title: {\n show: true,\n // x, y,单位px\n offsetCenter: [0, '20%'],\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#464646',\n fontSize: 16,\n valueAnimation: false\n },\n detail: {\n show: true,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 0,\n borderColor: '#ccc',\n width: 100,\n height: null,\n padding: [5, 10],\n // x, y,单位px\n offsetCenter: [0, '40%'],\n // formatter: null,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#464646',\n fontSize: 30,\n fontWeight: 'bold',\n lineHeight: 30,\n valueAnimation: false\n }\n };\n return GaugeSeriesModel;\n}(SeriesModel);\n\nexport default GaugeSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport GaugeView from './GaugeView';\nimport GaugeSeriesModel from './GaugeSeries';\nexport function install(registers) {\n registers.registerChartView(GaugeView);\n registers.registerSeriesModel(GaugeSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nvar opacityAccessPath = ['itemStyle', 'opacity'];\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\n\nvar FunnelPiece =\n/** @class */\nfunction (_super) {\n __extends(FunnelPiece, _super);\n\n function FunnelPiece(data, idx) {\n var _this = _super.call(this) || this;\n\n var polygon = _this;\n var labelLine = new graphic.Polyline();\n var text = new graphic.Text();\n polygon.setTextContent(text);\n\n _this.setTextGuideLine(labelLine);\n\n _this.updateData(data, idx, true);\n\n return _this;\n }\n\n FunnelPiece.prototype.updateData = function (data, idx, firstCreate) {\n var polygon = this;\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var layout = data.getItemLayout(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n var opacity = itemModel.get(opacityAccessPath);\n opacity = opacity == null ? 1 : opacity; // Update common style\n\n polygon.useStyle(data.getItemVisual(idx, 'style'));\n polygon.style.lineJoin = 'round';\n\n if (firstCreate) {\n polygon.setShape({\n points: layout.points\n });\n polygon.style.opacity = 0;\n graphic.initProps(polygon, {\n style: {\n opacity: opacity\n }\n }, seriesModel, idx);\n } else {\n graphic.updateProps(polygon, {\n style: {\n opacity: opacity\n },\n shape: {\n points: layout.points\n }\n }, seriesModel, idx);\n }\n\n setStatesStylesFromModel(polygon, itemModel);\n\n this._updateLabel(data, idx);\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n };\n\n FunnelPiece.prototype._updateLabel = function (data, idx) {\n var polygon = this;\n var labelLine = this.getTextGuideLine();\n var labelText = polygon.getTextContent();\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var layout = data.getItemLayout(idx);\n var labelLayout = layout.label;\n var style = data.getItemVisual(idx, 'style');\n var visualColor = style.fill;\n setLabelStyle( // position will not be used in setLabelStyle\n labelText, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: data.getName(idx)\n }, {\n normal: {\n align: labelLayout.textAlign,\n verticalAlign: labelLayout.verticalAlign\n }\n });\n polygon.setTextConfig({\n local: true,\n inside: !!labelLayout.inside,\n insideStroke: visualColor,\n // insideFill: 'auto',\n outsideFill: visualColor\n });\n var linePoints = labelLayout.linePoints;\n labelLine.setShape({\n points: linePoints\n });\n polygon.textGuideLineConfig = {\n anchor: linePoints ? new graphic.Point(linePoints[0][0], linePoints[0][1]) : null\n }; // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n\n graphic.updateProps(labelText, {\n style: {\n x: labelLayout.x,\n y: labelLayout.y\n }\n }, seriesModel, idx);\n labelText.attr({\n rotation: labelLayout.rotation,\n originX: labelLayout.x,\n originY: labelLayout.y,\n z2: 10\n });\n setLabelLineStyle(polygon, getLabelLineStatesModels(itemModel), {\n // Default use item visual color\n stroke: visualColor\n });\n };\n\n return FunnelPiece;\n}(graphic.Polygon);\n\nvar FunnelView =\n/** @class */\nfunction (_super) {\n __extends(FunnelView, _super);\n\n function FunnelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = FunnelView.type;\n _this.ignoreLabelLineUpdate = true;\n return _this;\n }\n\n FunnelView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n data.diff(oldData).add(function (idx) {\n var funnelPiece = new FunnelPiece(data, idx);\n data.setItemGraphicEl(idx, funnelPiece);\n group.add(funnelPiece);\n }).update(function (newIdx, oldIdx) {\n var piece = oldData.getItemGraphicEl(oldIdx);\n piece.updateData(data, newIdx);\n group.add(piece);\n data.setItemGraphicEl(newIdx, piece);\n }).remove(function (idx) {\n var piece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piece, seriesModel, idx);\n }).execute();\n this._data = data;\n };\n\n FunnelView.prototype.remove = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n FunnelView.prototype.dispose = function () {};\n\n FunnelView.type = 'funnel';\n return FunnelView;\n}(ChartView);\n\nexport default FunnelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListSimply from '../helper/createListSimply';\nimport { defaultEmphasis } from '../../util/model';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\n\nvar FunnelSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(FunnelSeriesModel, _super);\n\n function FunnelSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = FunnelSeriesModel.type;\n _this.useColorPaletteOnData = true;\n return _this;\n }\n\n FunnelSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)); // Extend labelLine emphasis\n\n this._defaultLabelLine(option);\n };\n\n FunnelSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n };\n\n FunnelSeriesModel.prototype._defaultLabelLine = function (option) {\n // Extend labelLine emphasis\n defaultEmphasis(option, 'labelLine', ['show']);\n var labelLineNormalOpt = option.labelLine;\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\n\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\n }; // Overwrite\n\n\n FunnelSeriesModel.prototype.getDataParams = function (dataIndex) {\n var data = this.getData();\n\n var params = _super.prototype.getDataParams.call(this, dataIndex);\n\n var valueDim = data.mapDimension('value');\n var sum = data.getSum(valueDim); // Percent is 0 if sum is 0\n\n params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) / sum * 100).toFixed(2);\n params.$vars.push('percent');\n return params;\n };\n\n FunnelSeriesModel.type = 'series.funnel';\n FunnelSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n // 默认取数据最小最大值\n // min: 0,\n // max: 100,\n minSize: '0%',\n maxSize: '100%',\n sort: 'descending',\n orient: 'vertical',\n gap: 0,\n funnelAlign: 'center',\n label: {\n show: true,\n position: 'outer' // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n\n },\n labelLine: {\n show: true,\n length: 20,\n lineStyle: {\n // color: 各异,\n width: 1\n }\n },\n itemStyle: {\n // color: 各异,\n borderColor: '#fff',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return FunnelSeriesModel;\n}(SeriesModel);\n\nexport default FunnelSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as layout from '../../util/layout';\nimport { parsePercent, linearMap } from '../../util/number';\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nfunction getSortedIndices(data, sort) {\n var valueDim = data.mapDimension('value');\n var valueArr = data.mapArray(valueDim, function (val) {\n return val;\n });\n var indices = [];\n var isAscending = sort === 'ascending';\n\n for (var i = 0, len = data.count(); i < len; i++) {\n indices[i] = i;\n } // Add custom sortable function & none sortable opetion by \"options.sort\"\n\n\n if (typeof sort === 'function') {\n indices.sort(sort);\n } else if (sort !== 'none') {\n indices.sort(function (a, b) {\n return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a];\n });\n }\n\n return indices;\n}\n\nfunction labelLayout(data) {\n var seriesModel = data.hostModel;\n var orient = seriesModel.get('orient');\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var labelModel = itemModel.getModel('label');\n var labelPosition = labelModel.get('position');\n var labelLineModel = itemModel.getModel('labelLine');\n var layout = data.getItemLayout(idx);\n var points = layout.points;\n var isLabelInside = labelPosition === 'inner' || labelPosition === 'inside' || labelPosition === 'center' || labelPosition === 'insideLeft' || labelPosition === 'insideRight';\n var textAlign;\n var textX;\n var textY;\n var linePoints;\n\n if (isLabelInside) {\n if (labelPosition === 'insideLeft') {\n textX = (points[0][0] + points[3][0]) / 2 + 5;\n textY = (points[0][1] + points[3][1]) / 2;\n textAlign = 'left';\n } else if (labelPosition === 'insideRight') {\n textX = (points[1][0] + points[2][0]) / 2 - 5;\n textY = (points[1][1] + points[2][1]) / 2;\n textAlign = 'right';\n } else {\n textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;\n textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;\n textAlign = 'center';\n }\n\n linePoints = [[textX, textY], [textX, textY]];\n } else {\n var x1 = void 0;\n var y1 = void 0;\n var x2 = void 0;\n var y2 = void 0;\n var labelLineLen = labelLineModel.get('length');\n\n if (process.env.NODE_ENV !== 'production') {\n if (orient === 'vertical' && ['top', 'bottom'].indexOf(labelPosition) > -1) {\n labelPosition = 'left';\n console.warn('Position error: Funnel chart on vertical orient dose not support top and bottom.');\n }\n\n if (orient === 'horizontal' && ['left', 'right'].indexOf(labelPosition) > -1) {\n labelPosition = 'bottom';\n console.warn('Position error: Funnel chart on horizontal orient dose not support left and right.');\n }\n }\n\n if (labelPosition === 'left') {\n // Left side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n } else if (labelPosition === 'right') {\n // Right side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n } else if (labelPosition === 'top') {\n // Top side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else if (labelPosition === 'bottom') {\n // Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else if (labelPosition === 'rightTop') {\n // RightTop side\n x1 = orient === 'horizontal' ? points[3][0] : points[1][0];\n y1 = orient === 'horizontal' ? points[3][1] : points[1][1];\n\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'top';\n }\n } else if (labelPosition === 'rightBottom') {\n // RightBottom side\n x1 = points[2][0];\n y1 = points[2][1];\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'bottom';\n }\n } else if (labelPosition === 'leftTop') {\n // LeftTop side\n x1 = points[0][0];\n y1 = orient === 'horizontal' ? points[0][1] : points[1][1];\n\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n } else if (labelPosition === 'leftBottom') {\n // LeftBottom side\n x1 = orient === 'horizontal' ? points[1][0] : points[3][0];\n y1 = orient === 'horizontal' ? points[1][1] : points[2][1];\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n } else {\n // Right side or Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n }\n\n if (orient === 'horizontal') {\n x2 = x1;\n textX = x2;\n } else {\n y2 = y1;\n textY = y2;\n }\n\n linePoints = [[x1, y1], [x2, y2]];\n }\n\n layout.label = {\n linePoints: linePoints,\n x: textX,\n y: textY,\n verticalAlign: 'middle',\n textAlign: textAlign,\n inside: isLabelInside\n };\n });\n}\n\nexport default function funnelLayout(ecModel, api) {\n ecModel.eachSeriesByType('funnel', function (seriesModel) {\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var sort = seriesModel.get('sort');\n var viewRect = getViewRect(seriesModel, api);\n var orient = seriesModel.get('orient');\n var viewWidth = viewRect.width;\n var viewHeight = viewRect.height;\n var indices = getSortedIndices(data, sort);\n var x = viewRect.x;\n var y = viewRect.y;\n var sizeExtent = orient === 'horizontal' ? [parsePercent(seriesModel.get('minSize'), viewHeight), parsePercent(seriesModel.get('maxSize'), viewHeight)] : [parsePercent(seriesModel.get('minSize'), viewWidth), parsePercent(seriesModel.get('maxSize'), viewWidth)];\n var dataExtent = data.getDataExtent(valueDim);\n var min = seriesModel.get('min');\n var max = seriesModel.get('max');\n\n if (min == null) {\n min = Math.min(dataExtent[0], 0);\n }\n\n if (max == null) {\n max = dataExtent[1];\n }\n\n var funnelAlign = seriesModel.get('funnelAlign');\n var gap = seriesModel.get('gap');\n var viewSize = orient === 'horizontal' ? viewWidth : viewHeight;\n var itemSize = (viewSize - gap * (data.count() - 1)) / data.count();\n\n var getLinePoints = function (idx, offset) {\n // End point index is data.count() and we assign it 0\n if (orient === 'horizontal') {\n var val_1 = data.get(valueDim, idx) || 0;\n var itemHeight = linearMap(val_1, [min, max], sizeExtent, true);\n var y0 = void 0;\n\n switch (funnelAlign) {\n case 'top':\n y0 = y;\n break;\n\n case 'center':\n y0 = y + (viewHeight - itemHeight) / 2;\n break;\n\n case 'bottom':\n y0 = y + (viewHeight - itemHeight);\n break;\n }\n\n return [[offset, y0], [offset, y0 + itemHeight]];\n }\n\n var val = data.get(valueDim, idx) || 0;\n var itemWidth = linearMap(val, [min, max], sizeExtent, true);\n var x0;\n\n switch (funnelAlign) {\n case 'left':\n x0 = x;\n break;\n\n case 'center':\n x0 = x + (viewWidth - itemWidth) / 2;\n break;\n\n case 'right':\n x0 = x + viewWidth - itemWidth;\n break;\n }\n\n return [[x0, offset], [x0 + itemWidth, offset]];\n };\n\n if (sort === 'ascending') {\n // From bottom to top\n itemSize = -itemSize;\n gap = -gap;\n\n if (orient === 'horizontal') {\n x += viewWidth;\n } else {\n y += viewHeight;\n }\n\n indices = indices.reverse();\n }\n\n for (var i = 0; i < indices.length; i++) {\n var idx = indices[i];\n var nextIdx = indices[i + 1];\n var itemModel = data.getItemModel(idx);\n\n if (orient === 'horizontal') {\n var width = itemModel.get(['itemStyle', 'width']);\n\n if (width == null) {\n width = itemSize;\n } else {\n width = parsePercent(width, viewWidth);\n\n if (sort === 'ascending') {\n width = -width;\n }\n }\n\n var start = getLinePoints(idx, x);\n var end = getLinePoints(nextIdx, x + width);\n x += width + gap;\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n } else {\n var height = itemModel.get(['itemStyle', 'height']);\n\n if (height == null) {\n height = itemSize;\n } else {\n height = parsePercent(height, viewHeight);\n\n if (sort === 'ascending') {\n height = -height;\n }\n }\n\n var start = getLinePoints(idx, y);\n var end = getLinePoints(nextIdx, y + height);\n y += height + gap;\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n }\n\n labelLayout(data);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport FunnelView from './FunnelView';\nimport FunnelSeriesModel from './FunnelSeries';\nimport funnelLayout from './funnelLayout';\nimport dataFilter from '../../processor/dataFilter';\nexport function install(registers) {\n registers.registerChartView(FunnelView);\n registers.registerSeriesModel(FunnelSeriesModel);\n registers.registerLayout(funnelLayout);\n registers.registerProcessor(dataFilter('funnel'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { numericToNumber } from '../../util/number';\nimport { eqNaN } from 'zrender/lib/core/util';\nvar DEFAULT_SMOOTH = 0.3;\n\nvar ParallelView =\n/** @class */\nfunction (_super) {\n __extends(ParallelView, _super);\n\n function ParallelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelView.type;\n _this._dataGroup = new graphic.Group();\n _this._initialized = false;\n return _this;\n }\n\n ParallelView.prototype.init = function () {\n this.group.add(this._dataGroup);\n };\n /**\n * @override\n */\n\n\n ParallelView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var dataGroup = this._dataGroup;\n var data = seriesModel.getData();\n var oldData = this._data;\n var coordSys = seriesModel.coordinateSystem;\n var dimensions = coordSys.dimensions;\n var seriesScope = makeSeriesScope(seriesModel);\n data.diff(oldData).add(add).update(update).remove(remove).execute();\n\n function add(newDataIndex) {\n var line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function update(newDataIndex, oldDataIndex) {\n var line = oldData.getItemGraphicEl(oldDataIndex);\n var points = createLinePoints(data, newDataIndex, dimensions, coordSys);\n data.setItemGraphicEl(newDataIndex, line);\n graphic.updateProps(line, {\n shape: {\n points: points\n }\n }, seriesModel, newDataIndex);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function remove(oldDataIndex) {\n var line = oldData.getItemGraphicEl(oldDataIndex);\n dataGroup.remove(line);\n } // First create\n\n\n if (!this._initialized) {\n this._initialized = true;\n var clipPath = createGridClipShape(coordSys, seriesModel, function () {\n // Callback will be invoked immediately if there is no animation\n setTimeout(function () {\n dataGroup.removeClipPath();\n });\n });\n dataGroup.setClipPath(clipPath);\n }\n\n this._data = data;\n };\n\n ParallelView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this._initialized = true;\n this._data = null;\n\n this._dataGroup.removeAll();\n };\n\n ParallelView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var dimensions = coordSys.dimensions;\n var seriesScope = makeSeriesScope(seriesModel);\n\n for (var dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) {\n var line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys);\n line.incremental = true;\n updateElCommon(line, data, dataIndex, seriesScope);\n }\n };\n\n ParallelView.prototype.remove = function () {\n this._dataGroup && this._dataGroup.removeAll();\n this._data = null;\n };\n\n ParallelView.type = 'parallel';\n return ParallelView;\n}(ChartView);\n\nfunction createGridClipShape(coordSys, seriesModel, cb) {\n var parallelModel = coordSys.model;\n var rect = coordSys.getRect();\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height';\n rectEl.setShape(dim, 0);\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width,\n height: rect.height\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nfunction createLinePoints(data, dataIndex, dimensions, coordSys) {\n var points = [];\n\n for (var i = 0; i < dimensions.length; i++) {\n var dimName = dimensions[i];\n var value = data.get(data.mapDimension(dimName), dataIndex);\n\n if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {\n points.push(coordSys.dataToPoint(value, dimName));\n }\n }\n\n return points;\n}\n\nfunction addEl(data, dataGroup, dataIndex, dimensions, coordSys) {\n var points = createLinePoints(data, dataIndex, dimensions, coordSys);\n var line = new graphic.Polyline({\n shape: {\n points: points\n },\n // silent: true,\n z2: 10\n });\n dataGroup.add(line);\n data.setItemGraphicEl(dataIndex, line);\n return line;\n}\n\nfunction makeSeriesScope(seriesModel) {\n var smooth = seriesModel.get('smooth', true);\n smooth === true && (smooth = DEFAULT_SMOOTH);\n smooth = numericToNumber(smooth);\n eqNaN(smooth) && (smooth = 0);\n return {\n smooth: smooth\n };\n}\n\nfunction updateElCommon(el, data, dataIndex, seriesScope) {\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.fill = null;\n el.setShape('smooth', seriesScope.smooth);\n var itemModel = data.getItemModel(dataIndex);\n var emphasisModel = itemModel.getModel('emphasis');\n setStatesStylesFromModel(el, itemModel, 'lineStyle');\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n} // function simpleDiff(oldData, newData, dimensions) {\n// let oldLen;\n// if (!oldData\n// || !oldData.__plProgressive\n// || (oldLen = oldData.count()) !== newData.count()\n// ) {\n// return true;\n// }\n// let dimLen = dimensions.length;\n// for (let i = 0; i < oldLen; i++) {\n// for (let j = 0; j < dimLen; j++) {\n// if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {\n// return true;\n// }\n// }\n// }\n// return false;\n// }\n// FIXME put in common util?\n\n\nfunction isEmptyValue(val, axisType) {\n return axisType === 'category' ? val == null : val == null || isNaN(val); // axisType === 'value'\n}\n\nexport default ParallelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { each, bind } from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\n\nvar ParallelSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelSeriesModel, _super);\n\n function ParallelSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelSeriesModel.type;\n _this.visualStyleAccessPath = 'lineStyle';\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n ParallelSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: bind(makeDefaultEncode, null, this)\n });\n };\n /**\n * User can get data raw indices on 'axisAreaSelected' event received.\n *\n * @return Raw indices\n */\n\n\n ParallelSeriesModel.prototype.getRawIndicesByActiveState = function (activeState) {\n var coordSys = this.coordinateSystem;\n var data = this.getData();\n var indices = [];\n coordSys.eachActiveState(data, function (theActiveState, dataIndex) {\n if (activeState === theActiveState) {\n indices.push(data.getRawIndex(dataIndex));\n }\n });\n return indices;\n };\n\n ParallelSeriesModel.type = 'series.parallel';\n ParallelSeriesModel.dependencies = ['parallel'];\n ParallelSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'parallel',\n parallelIndex: 0,\n label: {\n show: false\n },\n inactiveOpacity: 0.05,\n activeOpacity: 1,\n lineStyle: {\n width: 1,\n opacity: 0.45,\n type: 'solid'\n },\n emphasis: {\n label: {\n show: false\n }\n },\n progressive: 500,\n smooth: false,\n animationEasing: 'linear'\n };\n return ParallelSeriesModel;\n}(SeriesModel);\n\nfunction makeDefaultEncode(seriesModel) {\n // The mapping of parallelAxis dimension to data dimension can\n // be specified in parallelAxis.option.dim. For example, if\n // parallelAxis.option.dim is 'dim3', it mapping to the third\n // dimension of data. But `data.encode` has higher priority.\n // Moreover, parallelModel.dimension should not be regarded as data\n // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];\n var parallelModel = seriesModel.ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));\n\n if (!parallelModel) {\n return;\n }\n\n var encodeDefine = {};\n each(parallelModel.dimensions, function (axisDim) {\n var dataDimIndex = convertDimNameToNumber(axisDim);\n encodeDefine[axisDim] = dataDimIndex;\n });\n return encodeDefine;\n}\n\nfunction convertDimNameToNumber(dimName) {\n return +dimName.replace('dim', '');\n}\n\nexport default ParallelSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar opacityAccessPath = ['lineStyle', 'opacity'];\nvar parallelVisual = {\n seriesType: 'parallel',\n reset: function (seriesModel, ecModel) {\n var coordSys = seriesModel.coordinateSystem;\n var opacityMap = {\n normal: seriesModel.get(['lineStyle', 'opacity']),\n active: seriesModel.get('activeOpacity'),\n inactive: seriesModel.get('inactiveOpacity')\n };\n return {\n progress: function (params, data) {\n coordSys.eachActiveState(data, function (activeState, dataIndex) {\n var opacity = opacityMap[activeState];\n\n if (activeState === 'normal' && data.hasItemOption) {\n var itemOpacity = data.getItemModel(dataIndex).get(opacityAccessPath, true);\n itemOpacity != null && (opacity = itemOpacity);\n }\n\n var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n existsStyle.opacity = opacity;\n }, params.start, params.end);\n }\n };\n }\n};\nexport default parallelVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nexport default function parallelPreprocessor(option) {\n createParallelIfNeeded(option);\n mergeAxisOptionFromParallel(option);\n}\n/**\n * Create a parallel coordinate if not exists.\n * @inner\n */\n\nfunction createParallelIfNeeded(option) {\n if (option.parallel) {\n return;\n }\n\n var hasParallelSeries = false;\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'parallel') {\n hasParallelSeries = true;\n }\n });\n\n if (hasParallelSeries) {\n option.parallel = [{}];\n }\n}\n/**\n * Merge aixs definition from parallel option (if exists) to axis option.\n * @inner\n */\n\n\nfunction mergeAxisOptionFromParallel(option) {\n var axes = modelUtil.normalizeToArray(option.parallelAxis);\n zrUtil.each(axes, function (axisOption) {\n if (!zrUtil.isObject(axisOption)) {\n return;\n }\n\n var parallelIndex = axisOption.parallelIndex || 0;\n var parallelOption = modelUtil.normalizeToArray(option.parallel)[parallelIndex];\n\n if (parallelOption && parallelOption.parallelAxisDefault) {\n zrUtil.merge(axisOption, parallelOption.parallelAxisDefault, false);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport { each, bind, extend } from 'zrender/lib/core/util';\nimport { createOrUpdate } from '../../util/throttle';\nvar CLICK_THRESHOLD = 5; // > 4\n\nvar ParallelView =\n/** @class */\nfunction (_super) {\n __extends(ParallelView, _super);\n\n function ParallelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelView.type;\n return _this;\n }\n\n ParallelView.prototype.render = function (parallelModel, ecModel, api) {\n this._model = parallelModel;\n this._api = api;\n\n if (!this._handlers) {\n this._handlers = {};\n each(handlers, function (handler, eventName) {\n api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this));\n }, this);\n }\n\n createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');\n };\n\n ParallelView.prototype.dispose = function (ecModel, api) {\n each(this._handlers, function (handler, eventName) {\n api.getZr().off(eventName, handler);\n });\n this._handlers = null;\n };\n /**\n * @internal\n * @param {Object} [opt] If null, cancle the last action triggering for debounce.\n */\n\n\n ParallelView.prototype._throttledDispatchExpand = function (opt) {\n this._dispatchExpand(opt);\n };\n /**\n * @internal\n */\n\n\n ParallelView.prototype._dispatchExpand = function (opt) {\n opt && this._api.dispatchAction(extend({\n type: 'parallelAxisExpand'\n }, opt));\n };\n\n ParallelView.type = 'parallel';\n return ParallelView;\n}(ComponentView);\n\nvar handlers = {\n mousedown: function (e) {\n if (checkTrigger(this, 'click')) {\n this._mouseDownPoint = [e.offsetX, e.offsetY];\n }\n },\n mouseup: function (e) {\n var mouseDownPoint = this._mouseDownPoint;\n\n if (checkTrigger(this, 'click') && mouseDownPoint) {\n var point = [e.offsetX, e.offsetY];\n var dist = Math.pow(mouseDownPoint[0] - point[0], 2) + Math.pow(mouseDownPoint[1] - point[1], 2);\n\n if (dist > CLICK_THRESHOLD) {\n return;\n }\n\n var result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n\n result.behavior !== 'none' && this._dispatchExpand({\n axisExpandWindow: result.axisExpandWindow\n });\n }\n\n this._mouseDownPoint = null;\n },\n mousemove: function (e) {\n // Should do nothing when brushing.\n if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {\n return;\n }\n\n var model = this._model;\n var result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n var behavior = result.behavior;\n behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce'));\n\n this._throttledDispatchExpand(behavior === 'none' ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.\n : {\n axisExpandWindow: result.axisExpandWindow,\n // Jumping uses animation, and sliding suppresses animation.\n animation: behavior === 'jump' ? null : {\n duration: 0 // Disable animation.\n\n }\n });\n }\n};\n\nfunction checkTrigger(view, triggerOn) {\n var model = view._model;\n return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;\n}\n\nexport default ParallelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\n\nvar ParallelModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelModel, _super);\n\n function ParallelModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelModel.type;\n return _this;\n }\n\n ParallelModel.prototype.init = function () {\n _super.prototype.init.apply(this, arguments);\n\n this.mergeOption({});\n };\n\n ParallelModel.prototype.mergeOption = function (newOption) {\n var thisOption = this.option;\n newOption && zrUtil.merge(thisOption, newOption, true);\n\n this._initDimensions();\n };\n /**\n * Whether series or axis is in this coordinate system.\n */\n\n\n ParallelModel.prototype.contains = function (model, ecModel) {\n var parallelIndex = model.get('parallelIndex');\n return parallelIndex != null && ecModel.getComponent('parallel', parallelIndex) === this;\n };\n\n ParallelModel.prototype.setAxisExpand = function (opt) {\n zrUtil.each(['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'], function (name) {\n if (opt.hasOwnProperty(name)) {\n // @ts-ignore FIXME: why \"never\" inferred in this.option[name]?\n this.option[name] = opt[name];\n }\n }, this);\n };\n\n ParallelModel.prototype._initDimensions = function () {\n var dimensions = this.dimensions = [];\n var parallelAxisIndex = this.parallelAxisIndex = [];\n var axisModels = zrUtil.filter(this.ecModel.queryComponents({\n mainType: 'parallelAxis'\n }), function (axisModel) {\n // Can not use this.contains here, because\n // initialization has not been completed yet.\n return (axisModel.get('parallelIndex') || 0) === this.componentIndex;\n }, this);\n zrUtil.each(axisModels, function (axisModel) {\n dimensions.push('dim' + axisModel.get('dim'));\n parallelAxisIndex.push(axisModel.componentIndex);\n });\n };\n\n ParallelModel.type = 'parallel';\n ParallelModel.dependencies = ['parallelAxis'];\n ParallelModel.layoutMode = 'box';\n ParallelModel.defaultOption = {\n zlevel: 0,\n z: 0,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n layout: 'horizontal',\n // FIXME\n // naming?\n axisExpandable: false,\n axisExpandCenter: null,\n axisExpandCount: 0,\n axisExpandWidth: 50,\n axisExpandRate: 17,\n axisExpandDebounce: 50,\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],\n axisExpandTriggerOn: 'click',\n parallelAxisDefault: null\n };\n return ParallelModel;\n}(ComponentModel);\n\nexport default ParallelModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar ParallelAxis =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxis, _super);\n\n function ParallelAxis(dim, scale, coordExtent, axisType, axisIndex) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n _this.axisIndex = axisIndex;\n return _this;\n }\n\n ParallelAxis.prototype.isHorizontal = function () {\n return this.coordinateSystem.getModel().get('layout') !== 'horizontal';\n };\n\n return ParallelAxis;\n}(Axis);\n\nexport default ParallelAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Calculate slider move result.\n * Usage:\n * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as\n * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.\n * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.\n *\n * @param delta Move length.\n * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].\n * handleEnds will be modified in this method.\n * @param extent handleEnds is restricted by extent.\n * extent[0] should less or equals than extent[1].\n * @param handleIndex Can be 'all', means that both move the two handleEnds.\n * @param minSpan The range of dataZoom can not be smaller than that.\n * If not set, handle0 and cross handle1. If set as a non-negative\n * number (including `0`), handles will push each other when reaching\n * the minSpan.\n * @param maxSpan The range of dataZoom can not be larger than that.\n * @return The input handleEnds.\n */\nexport default function sliderMove(delta, handleEnds, extent, handleIndex, minSpan, maxSpan) {\n delta = delta || 0;\n var extentSpan = extent[1] - extent[0]; // Notice maxSpan and minSpan can be null/undefined.\n\n if (minSpan != null) {\n minSpan = restrict(minSpan, [0, extentSpan]);\n }\n\n if (maxSpan != null) {\n maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);\n }\n\n if (handleIndex === 'all') {\n var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);\n handleSpan = restrict(handleSpan, [0, extentSpan]);\n minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]);\n handleIndex = 0;\n }\n\n handleEnds[0] = restrict(handleEnds[0], extent);\n handleEnds[1] = restrict(handleEnds[1], extent);\n var originalDistSign = getSpanSign(handleEnds, handleIndex);\n handleEnds[handleIndex] += delta; // Restrict in extent.\n\n var extentMinSpan = minSpan || 0;\n var realExtent = extent.slice();\n originalDistSign.sign < 0 ? realExtent[0] += extentMinSpan : realExtent[1] -= extentMinSpan;\n handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent); // Expand span.\n\n var currDistSign;\n currDistSign = getSpanSign(handleEnds, handleIndex);\n\n if (minSpan != null && (currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan)) {\n // If minSpan exists, 'cross' is forbidden.\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;\n } // Shrink span.\n\n\n currDistSign = getSpanSign(handleEnds, handleIndex);\n\n if (maxSpan != null && currDistSign.span > maxSpan) {\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;\n }\n\n return handleEnds;\n}\n\nfunction getSpanSign(handleEnds, handleIndex) {\n var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex]; // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]\n // is at left of handleEnds[1] for non-cross case.\n\n return {\n span: Math.abs(dist),\n sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1\n };\n}\n\nfunction restrict(value, extend) {\n return Math.min(extend[1] != null ? extend[1] : Infinity, Math.max(extend[0] != null ? extend[0] : -Infinity, value));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parallel Coordinates\n * \n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as layoutUtil from '../../util/layout';\nimport * as axisHelper from '../../coord/axisHelper';\nimport ParallelAxis from './ParallelAxis';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../../component/helper/sliderMove';\nvar each = zrUtil.each;\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathFloor = Math.floor;\nvar mathCeil = Math.ceil;\nvar round = numberUtil.round;\nvar PI = Math.PI;\n\nvar Parallel =\n/** @class */\nfunction () {\n function Parallel(parallelModel, ecModel, api) {\n this.type = 'parallel';\n /**\n * key: dimension\n */\n\n this._axesMap = zrUtil.createHashMap();\n /**\n * key: dimension\n * value: {position: [], rotation, }\n */\n\n this._axesLayout = {};\n this.dimensions = parallelModel.dimensions;\n this._model = parallelModel;\n\n this._init(parallelModel, ecModel, api);\n }\n\n Parallel.prototype._init = function (parallelModel, ecModel, api) {\n var dimensions = parallelModel.dimensions;\n var parallelAxisIndex = parallelModel.parallelAxisIndex;\n each(dimensions, function (dim, idx) {\n var axisIndex = parallelAxisIndex[idx];\n var axisModel = ecModel.getComponent('parallelAxis', axisIndex);\n\n var axis = this._axesMap.set(dim, new ParallelAxis(dim, axisHelper.createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisIndex));\n\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse'); // Injection\n\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = axisModel.coordinateSystem = this;\n }, this);\n };\n /**\n * Update axis scale after data processed\n */\n\n\n Parallel.prototype.update = function (ecModel, api) {\n this._updateAxesFromSeries(this._model, ecModel);\n };\n\n Parallel.prototype.containPoint = function (point) {\n var layoutInfo = this._makeLayoutInfo();\n\n var axisBase = layoutInfo.axisBase;\n var layoutBase = layoutInfo.layoutBase;\n var pixelDimIndex = layoutInfo.pixelDimIndex;\n var pAxis = point[1 - pixelDimIndex];\n var pLayout = point[pixelDimIndex];\n return pAxis >= axisBase && pAxis <= axisBase + layoutInfo.axisLength && pLayout >= layoutBase && pLayout <= layoutBase + layoutInfo.layoutLength;\n };\n\n Parallel.prototype.getModel = function () {\n return this._model;\n };\n /**\n * Update properties from series\n */\n\n\n Parallel.prototype._updateAxesFromSeries = function (parallelModel, ecModel) {\n ecModel.eachSeries(function (seriesModel) {\n if (!parallelModel.contains(seriesModel, ecModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n each(this.dimensions, function (dim) {\n var axis = this._axesMap.get(dim);\n\n axis.scale.unionExtentFromData(data, data.mapDimension(dim));\n axisHelper.niceScaleExtent(axis.scale, axis.model);\n }, this);\n }, this);\n };\n /**\n * Resize the parallel coordinate system.\n */\n\n\n Parallel.prototype.resize = function (parallelModel, api) {\n this._rect = layoutUtil.getLayoutRect(parallelModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._layoutAxes();\n };\n\n Parallel.prototype.getRect = function () {\n return this._rect;\n };\n\n Parallel.prototype._makeLayoutInfo = function () {\n var parallelModel = this._model;\n var rect = this._rect;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var layout = parallelModel.get('layout');\n var pixelDimIndex = layout === 'horizontal' ? 0 : 1;\n var layoutLength = rect[wh[pixelDimIndex]];\n var layoutExtent = [0, layoutLength];\n var axisCount = this.dimensions.length;\n var axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent);\n var axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);\n var axisExpandable = parallelModel.get('axisExpandable') && axisCount > 3 && axisCount > axisExpandCount && axisExpandCount > 1 && axisExpandWidth > 0 && layoutLength > 0; // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],\n // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),\n // where collapsed axes should be overlapped.\n\n var axisExpandWindow = parallelModel.get('axisExpandWindow');\n var winSize;\n\n if (!axisExpandWindow) {\n winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);\n var axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor(axisCount / 2);\n axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n } else {\n winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n\n var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount); // Avoid axisCollapseWidth is too small.\n\n axisCollapseWidth < 3 && (axisCollapseWidth = 0); // Find the first and last indices > ewin[0] and < ewin[1].\n\n var winInnerIndices = [mathFloor(round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1, mathCeil(round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1]; // Pos in ec coordinates.\n\n var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];\n return {\n layout: layout,\n pixelDimIndex: pixelDimIndex,\n layoutBase: rect[xy[pixelDimIndex]],\n layoutLength: layoutLength,\n axisBase: rect[xy[1 - pixelDimIndex]],\n axisLength: rect[wh[1 - pixelDimIndex]],\n axisExpandable: axisExpandable,\n axisExpandWidth: axisExpandWidth,\n axisCollapseWidth: axisCollapseWidth,\n axisExpandWindow: axisExpandWindow,\n axisCount: axisCount,\n winInnerIndices: winInnerIndices,\n axisExpandWindow0Pos: axisExpandWindow0Pos\n };\n };\n\n Parallel.prototype._layoutAxes = function () {\n var rect = this._rect;\n var axes = this._axesMap;\n var dimensions = this.dimensions;\n\n var layoutInfo = this._makeLayoutInfo();\n\n var layout = layoutInfo.layout;\n axes.each(function (axis) {\n var axisExtent = [0, layoutInfo.axisLength];\n var idx = axis.inverse ? 1 : 0;\n axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);\n });\n each(dimensions, function (dim, idx) {\n var posInfo = (layoutInfo.axisExpandable ? layoutAxisWithExpand : layoutAxisWithoutExpand)(idx, layoutInfo);\n var positionTable = {\n horizontal: {\n x: posInfo.position,\n y: layoutInfo.axisLength\n },\n vertical: {\n x: 0,\n y: posInfo.position\n }\n };\n var rotationTable = {\n horizontal: PI / 2,\n vertical: 0\n };\n var position = [positionTable[layout].x + rect.x, positionTable[layout].y + rect.y];\n var rotation = rotationTable[layout];\n var transform = matrix.create();\n matrix.rotate(transform, transform, rotation);\n matrix.translate(transform, transform, position); // TODO\n // tick layout info\n // TODO\n // update dimensions info based on axis order.\n\n this._axesLayout[dim] = {\n position: position,\n rotation: rotation,\n transform: transform,\n axisNameAvailableWidth: posInfo.axisNameAvailableWidth,\n axisLabelShow: posInfo.axisLabelShow,\n nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,\n tickDirection: 1,\n labelDirection: 1\n };\n }, this);\n };\n /**\n * Get axis by dim.\n */\n\n\n Parallel.prototype.getAxis = function (dim) {\n return this._axesMap.get(dim);\n };\n /**\n * Convert a dim value of a single item of series data to Point.\n */\n\n\n Parallel.prototype.dataToPoint = function (value, dim) {\n return this.axisCoordToPoint(this._axesMap.get(dim).dataToCoord(value), dim);\n };\n /**\n * Travel data for one time, get activeState of each data item.\n * @param start the start dataIndex that travel from.\n * @param end the next dataIndex of the last dataIndex will be travel.\n */\n\n\n Parallel.prototype.eachActiveState = function (data, callback, start, end) {\n start == null && (start = 0);\n end == null && (end = data.count());\n var axesMap = this._axesMap;\n var dimensions = this.dimensions;\n var dataDimensions = [];\n var axisModels = [];\n zrUtil.each(dimensions, function (axisDim) {\n dataDimensions.push(data.mapDimension(axisDim));\n axisModels.push(axesMap.get(axisDim).model);\n });\n var hasActiveSet = this.hasAxisBrushed();\n\n for (var dataIndex = start; dataIndex < end; dataIndex++) {\n var activeState = void 0;\n\n if (!hasActiveSet) {\n activeState = 'normal';\n } else {\n activeState = 'active';\n var values = data.getValues(dataDimensions, dataIndex);\n\n for (var j = 0, lenj = dimensions.length; j < lenj; j++) {\n var state = axisModels[j].getActiveState(values[j]);\n\n if (state === 'inactive') {\n activeState = 'inactive';\n break;\n }\n }\n }\n\n callback(activeState, dataIndex);\n }\n };\n /**\n * Whether has any activeSet.\n */\n\n\n Parallel.prototype.hasAxisBrushed = function () {\n var dimensions = this.dimensions;\n var axesMap = this._axesMap;\n var hasActiveSet = false;\n\n for (var j = 0, lenj = dimensions.length; j < lenj; j++) {\n if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {\n hasActiveSet = true;\n }\n }\n\n return hasActiveSet;\n };\n /**\n * Convert coords of each axis to Point.\n * Return point. For example: [10, 20]\n */\n\n\n Parallel.prototype.axisCoordToPoint = function (coord, dim) {\n var axisLayout = this._axesLayout[dim];\n return graphic.applyTransform([coord, 0], axisLayout.transform);\n };\n /**\n * Get axis layout.\n */\n\n\n Parallel.prototype.getAxisLayout = function (dim) {\n return zrUtil.clone(this._axesLayout[dim]);\n };\n /**\n * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.\n */\n\n\n Parallel.prototype.getSlidedAxisExpandWindow = function (point) {\n var layoutInfo = this._makeLayoutInfo();\n\n var pixelDimIndex = layoutInfo.pixelDimIndex;\n var axisExpandWindow = layoutInfo.axisExpandWindow.slice();\n var winSize = axisExpandWindow[1] - axisExpandWindow[0];\n var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)]; // Out of the area of coordinate system.\n\n if (!this.containPoint(point)) {\n return {\n behavior: 'none',\n axisExpandWindow: axisExpandWindow\n };\n } // Conver the point from global to expand coordinates.\n\n\n var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos; // For dragging operation convenience, the window should not be\n // slided when mouse is the center area of the window.\n\n var delta;\n var behavior = 'slide';\n var axisCollapseWidth = layoutInfo.axisCollapseWidth;\n\n var triggerArea = this._model.get('axisExpandSlideTriggerArea'); // But consider touch device, jump is necessary.\n\n\n var useJump = triggerArea[0] != null;\n\n if (axisCollapseWidth) {\n if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {\n behavior = 'jump';\n delta = pointCoord - winSize * triggerArea[2];\n } else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {\n behavior = 'jump';\n delta = pointCoord - winSize * (1 - triggerArea[2]);\n } else {\n (delta = pointCoord - winSize * triggerArea[1]) >= 0 && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0 && (delta = 0);\n }\n\n delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;\n delta ? sliderMove(delta, axisExpandWindow, extent, 'all') // Avoid nonsense triger on mousemove.\n : behavior = 'none';\n } // When screen is too narrow, make it visible and slidable, although it is hard to interact.\n else {\n var winSize2 = axisExpandWindow[1] - axisExpandWindow[0];\n var pos = extent[1] * pointCoord / winSize2;\n axisExpandWindow = [mathMax(0, pos - winSize2 / 2)];\n axisExpandWindow[1] = mathMin(extent[1], axisExpandWindow[0] + winSize2);\n axisExpandWindow[0] = axisExpandWindow[1] - winSize2;\n }\n\n return {\n axisExpandWindow: axisExpandWindow,\n behavior: behavior\n };\n };\n\n return Parallel;\n}();\n\nfunction restrict(len, extent) {\n return mathMin(mathMax(len, extent[0]), extent[1]);\n}\n\nfunction layoutAxisWithoutExpand(axisIndex, layoutInfo) {\n var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);\n return {\n position: step * axisIndex,\n axisNameAvailableWidth: step,\n axisLabelShow: true\n };\n}\n\nfunction layoutAxisWithExpand(axisIndex, layoutInfo) {\n var layoutLength = layoutInfo.layoutLength;\n var axisExpandWidth = layoutInfo.axisExpandWidth;\n var axisCount = layoutInfo.axisCount;\n var axisCollapseWidth = layoutInfo.axisCollapseWidth;\n var winInnerIndices = layoutInfo.winInnerIndices;\n var position;\n var axisNameAvailableWidth = axisCollapseWidth;\n var axisLabelShow = false;\n var nameTruncateMaxWidth;\n\n if (axisIndex < winInnerIndices[0]) {\n position = axisIndex * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n } else if (axisIndex <= winInnerIndices[1]) {\n position = layoutInfo.axisExpandWindow0Pos + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];\n axisNameAvailableWidth = axisExpandWidth;\n axisLabelShow = true;\n } else {\n position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n\n return {\n position: position,\n axisNameAvailableWidth: axisNameAvailableWidth,\n axisLabelShow: axisLabelShow,\n nameTruncateMaxWidth: nameTruncateMaxWidth\n };\n}\n\nexport default Parallel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parallel coordinate system creater.\n */\nimport Parallel from './Parallel';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nfunction createParallelCoordSys(ecModel, api) {\n var coordSysList = [];\n ecModel.eachComponent('parallel', function (parallelModel, idx) {\n var coordSys = new Parallel(parallelModel, ecModel, api);\n coordSys.name = 'parallel_' + idx;\n coordSys.resize(parallelModel, api);\n parallelModel.coordinateSystem = coordSys;\n coordSys.model = parallelModel;\n coordSysList.push(coordSys);\n }); // Inject the coordinateSystems into seriesModel\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'parallel') {\n var parallelModel = seriesModel.getReferringComponents('parallel', SINGLE_REFERRING).models[0];\n seriesModel.coordinateSystem = parallelModel.coordinateSystem;\n }\n });\n return coordSysList;\n}\n\nvar parallelCoordSysCreator = {\n create: createParallelCoordSys\n};\nexport default parallelCoordSysCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport * as numberUtil from '../../util/number';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\n\nvar ParallelAxisModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxisModel, _super);\n\n function ParallelAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelAxisModel.type;\n /**\n * @readOnly\n */\n\n _this.activeIntervals = [];\n return _this;\n }\n\n ParallelAxisModel.prototype.getAreaSelectStyle = function () {\n return makeStyleMapper([['fill', 'color'], ['lineWidth', 'borderWidth'], ['stroke', 'borderColor'], ['width', 'width'], ['opacity', 'opacity'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n ])(this.getModel('areaSelectStyle'));\n };\n /**\n * The code of this feature is put on AxisModel but not ParallelAxis,\n * because axisModel can be alive after echarts updating but instance of\n * ParallelAxis having been disposed. this._activeInterval should be kept\n * when action dispatched (i.e. legend click).\n *\n * @param intervals `interval.length === 0` means set all active.\n */\n\n\n ParallelAxisModel.prototype.setActiveIntervals = function (intervals) {\n var activeIntervals = this.activeIntervals = zrUtil.clone(intervals); // Normalize\n\n if (activeIntervals) {\n for (var i = activeIntervals.length - 1; i >= 0; i--) {\n numberUtil.asc(activeIntervals[i]);\n }\n }\n };\n /**\n * @param value When only attempting detect whether 'no activeIntervals set',\n * `value` is not needed to be input.\n */\n\n\n ParallelAxisModel.prototype.getActiveState = function (value) {\n var activeIntervals = this.activeIntervals;\n\n if (!activeIntervals.length) {\n return 'normal';\n }\n\n if (value == null || isNaN(+value)) {\n return 'inactive';\n } // Simple optimization\n\n\n if (activeIntervals.length === 1) {\n var interval = activeIntervals[0];\n\n if (interval[0] <= value && value <= interval[1]) {\n return 'active';\n }\n } else {\n for (var i = 0, len = activeIntervals.length; i < len; i++) {\n if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {\n return 'active';\n }\n }\n }\n\n return 'inactive';\n };\n\n return ParallelAxisModel;\n}(ComponentModel);\n\nzrUtil.mixin(ParallelAxisModel, AxisModelCommonMixin);\nexport default ParallelAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { curry, each, map, bind, merge, clone, defaults, assert } from 'zrender/lib/core/util';\nimport Eventful from 'zrender/lib/core/Eventful';\nimport * as graphic from '../../util/graphic';\nimport * as interactionMutex from './interactionMutex';\nimport DataDiffer from '../../data/DataDiffer';\nvar BRUSH_PANEL_GLOBAL = true;\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathPow = Math.pow;\nvar COVER_Z = 10000;\nvar UNSELECT_THRESHOLD = 6;\nvar MIN_RESIZE_LINE_WIDTH = 6;\nvar MUTEX_RESOURCE_KEY = 'globalPan';\nvar DIRECTION_MAP = {\n w: [0, 0],\n e: [0, 1],\n n: [1, 0],\n s: [1, 1]\n};\nvar CURSOR_MAP = {\n w: 'ew',\n e: 'ew',\n n: 'ns',\n s: 'ns',\n ne: 'nesw',\n sw: 'nesw',\n nw: 'nwse',\n se: 'nwse'\n};\nvar DEFAULT_BRUSH_OPT = {\n brushStyle: {\n lineWidth: 2,\n stroke: 'rgba(210,219,238,0.3)',\n fill: '#D2DBEE'\n },\n transformable: true,\n brushMode: 'single',\n removeOnClick: false\n};\nvar baseUID = 0;\n/**\n * params:\n * areas: Array., coord relates to container group,\n * If no container specified, to global.\n * opt {\n * isEnd: boolean,\n * removeOnClick: boolean\n * }\n */\n\nvar BrushController =\n/** @class */\nfunction (_super) {\n __extends(BrushController, _super);\n\n function BrushController(zr) {\n var _this = _super.call(this) || this;\n /**\n * @internal\n */\n\n\n _this._track = [];\n /**\n * @internal\n */\n\n _this._covers = [];\n _this._handlers = {};\n\n if (process.env.NODE_ENV !== 'production') {\n assert(zr);\n }\n\n _this._zr = zr;\n _this.group = new graphic.Group();\n _this._uid = 'brushController_' + baseUID++;\n each(pointerHandlers, function (handler, eventName) {\n this._handlers[eventName] = bind(handler, this);\n }, _this);\n return _this;\n }\n /**\n * If set to `false`, select disabled.\n */\n\n\n BrushController.prototype.enableBrush = function (brushOption) {\n if (process.env.NODE_ENV !== 'production') {\n assert(this._mounted);\n }\n\n this._brushType && this._doDisableBrush();\n brushOption.brushType && this._doEnableBrush(brushOption);\n return this;\n };\n\n BrushController.prototype._doEnableBrush = function (brushOption) {\n var zr = this._zr; // Consider roam, which takes globalPan too.\n\n if (!this._enableGlobalPan) {\n interactionMutex.take(zr, MUTEX_RESOURCE_KEY, this._uid);\n }\n\n each(this._handlers, function (handler, eventName) {\n zr.on(eventName, handler);\n });\n this._brushType = brushOption.brushType;\n this._brushOption = merge(clone(DEFAULT_BRUSH_OPT), brushOption, true);\n };\n\n BrushController.prototype._doDisableBrush = function () {\n var zr = this._zr;\n interactionMutex.release(zr, MUTEX_RESOURCE_KEY, this._uid);\n each(this._handlers, function (handler, eventName) {\n zr.off(eventName, handler);\n });\n this._brushType = this._brushOption = null;\n };\n /**\n * @param panelOpts If not pass, it is global brush.\n */\n\n\n BrushController.prototype.setPanels = function (panelOpts) {\n if (panelOpts && panelOpts.length) {\n var panels_1 = this._panels = {};\n each(panelOpts, function (panelOpts) {\n panels_1[panelOpts.panelId] = clone(panelOpts);\n });\n } else {\n this._panels = null;\n }\n\n return this;\n };\n\n BrushController.prototype.mount = function (opt) {\n opt = opt || {};\n\n if (process.env.NODE_ENV !== 'production') {\n this._mounted = true; // should be at first.\n }\n\n this._enableGlobalPan = opt.enableGlobalPan;\n var thisGroup = this.group;\n\n this._zr.add(thisGroup);\n\n thisGroup.attr({\n x: opt.x || 0,\n y: opt.y || 0,\n rotation: opt.rotation || 0,\n scaleX: opt.scaleX || 1,\n scaleY: opt.scaleY || 1\n });\n this._transform = thisGroup.getLocalTransform();\n return this;\n }; // eachCover(cb, context): void {\n // each(this._covers, cb, context);\n // }\n\n /**\n * Update covers.\n * @param coverConfigList\n * If coverConfigList is null/undefined, all covers removed.\n */\n\n\n BrushController.prototype.updateCovers = function (coverConfigList) {\n if (process.env.NODE_ENV !== 'production') {\n assert(this._mounted);\n }\n\n coverConfigList = map(coverConfigList, function (coverConfig) {\n return merge(clone(DEFAULT_BRUSH_OPT), coverConfig, true);\n });\n var tmpIdPrefix = '\\0-brush-index-';\n var oldCovers = this._covers;\n var newCovers = this._covers = [];\n var controller = this;\n var creatingCover = this._creatingCover;\n new DataDiffer(oldCovers, coverConfigList, oldGetKey, getKey).add(addOrUpdate).update(addOrUpdate).remove(remove).execute();\n return this;\n\n function getKey(brushOption, index) {\n return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index) + '-' + brushOption.brushType;\n }\n\n function oldGetKey(cover, index) {\n return getKey(cover.__brushOption, index);\n }\n\n function addOrUpdate(newIndex, oldIndex) {\n var newBrushInternal = coverConfigList[newIndex]; // Consider setOption in event listener of brushSelect,\n // where updating cover when creating should be forbiden.\n\n if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {\n newCovers[newIndex] = oldCovers[oldIndex];\n } else {\n var cover = newCovers[newIndex] = oldIndex != null ? (oldCovers[oldIndex].__brushOption = newBrushInternal, oldCovers[oldIndex]) : endCreating(controller, createCover(controller, newBrushInternal));\n updateCoverAfterCreation(controller, cover);\n }\n }\n\n function remove(oldIndex) {\n if (oldCovers[oldIndex] !== creatingCover) {\n controller.group.remove(oldCovers[oldIndex]);\n }\n }\n };\n\n BrushController.prototype.unmount = function () {\n if (process.env.NODE_ENV !== 'production') {\n if (!this._mounted) {\n return;\n }\n }\n\n this.enableBrush(false); // container may 'removeAll' outside.\n\n clearCovers(this);\n\n this._zr.remove(this.group);\n\n if (process.env.NODE_ENV !== 'production') {\n this._mounted = false; // should be at last.\n }\n\n return this;\n };\n\n BrushController.prototype.dispose = function () {\n this.unmount();\n this.off();\n };\n\n return BrushController;\n}(Eventful);\n\nfunction createCover(controller, brushOption) {\n var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);\n cover.__brushOption = brushOption;\n updateZ(cover, brushOption);\n controller.group.add(cover);\n return cover;\n}\n\nfunction endCreating(controller, creatingCover) {\n var coverRenderer = getCoverRenderer(creatingCover);\n\n if (coverRenderer.endCreating) {\n coverRenderer.endCreating(controller, creatingCover);\n updateZ(creatingCover, creatingCover.__brushOption);\n }\n\n return creatingCover;\n}\n\nfunction updateCoverShape(controller, cover) {\n var brushOption = cover.__brushOption;\n getCoverRenderer(cover).updateCoverShape(controller, cover, brushOption.range, brushOption);\n}\n\nfunction updateZ(cover, brushOption) {\n var z = brushOption.z;\n z == null && (z = COVER_Z);\n cover.traverse(function (el) {\n el.z = z;\n el.z2 = z; // Consider in given container.\n });\n}\n\nfunction updateCoverAfterCreation(controller, cover) {\n getCoverRenderer(cover).updateCommon(controller, cover);\n updateCoverShape(controller, cover);\n}\n\nfunction getCoverRenderer(cover) {\n return coverRenderers[cover.__brushOption.brushType];\n} // return target panel or `true` (means global panel)\n\n\nfunction getPanelByPoint(controller, e, localCursorPoint) {\n var panels = controller._panels;\n\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n\n var panel;\n var transform = controller._transform;\n each(panels, function (pn) {\n pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);\n });\n return panel;\n} // Return a panel or true\n\n\nfunction getPanelByCover(controller, cover) {\n var panels = controller._panels;\n\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n\n var panelId = cover.__brushOption.panelId; // User may give cover without coord sys info,\n // which is then treated as global panel.\n\n return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL;\n}\n\nfunction clearCovers(controller) {\n var covers = controller._covers;\n var originalLength = covers.length;\n each(covers, function (cover) {\n controller.group.remove(cover);\n }, controller);\n covers.length = 0;\n return !!originalLength;\n}\n\nfunction trigger(controller, opt) {\n var areas = map(controller._covers, function (cover) {\n var brushOption = cover.__brushOption;\n var range = clone(brushOption.range);\n return {\n brushType: brushOption.brushType,\n panelId: brushOption.panelId,\n range: range\n };\n });\n controller.trigger('brush', {\n areas: areas,\n isEnd: !!opt.isEnd,\n removeOnClick: !!opt.removeOnClick\n });\n}\n\nfunction shouldShowCover(controller) {\n var track = controller._track;\n\n if (!track.length) {\n return false;\n }\n\n var p2 = track[track.length - 1];\n var p1 = track[0];\n var dx = p2[0] - p1[0];\n var dy = p2[1] - p1[1];\n var dist = mathPow(dx * dx + dy * dy, 0.5);\n return dist > UNSELECT_THRESHOLD;\n}\n\nfunction getTrackEnds(track) {\n var tail = track.length - 1;\n tail < 0 && (tail = 0);\n return [track[0], track[tail]];\n}\n\n;\n\nfunction createBaseRectCover(rectRangeConverter, controller, brushOption, edgeNameSequences) {\n var cover = new graphic.Group();\n cover.add(new graphic.Rect({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true,\n draggable: true,\n cursor: 'move',\n drift: curry(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n each(edgeNameSequences, function (nameSequence) {\n cover.add(new graphic.Rect({\n name: nameSequence.join(''),\n style: {\n opacity: 0\n },\n draggable: true,\n silent: true,\n invisible: true,\n drift: curry(driftRect, rectRangeConverter, controller, cover, nameSequence),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n });\n return cover;\n}\n\nfunction updateBaseRect(controller, cover, localRange, brushOption) {\n var lineWidth = brushOption.brushStyle.lineWidth || 0;\n var handleSize = mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH);\n var x = localRange[0][0];\n var y = localRange[1][0];\n var xa = x - lineWidth / 2;\n var ya = y - lineWidth / 2;\n var x2 = localRange[0][1];\n var y2 = localRange[1][1];\n var x2a = x2 - handleSize + lineWidth / 2;\n var y2a = y2 - handleSize + lineWidth / 2;\n var width = x2 - x;\n var height = y2 - y;\n var widtha = width + lineWidth;\n var heighta = height + lineWidth;\n updateRectShape(controller, cover, 'main', x, y, width, height);\n\n if (brushOption.transformable) {\n updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);\n updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);\n updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);\n updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);\n }\n}\n\nfunction updateCommon(controller, cover) {\n var brushOption = cover.__brushOption;\n var transformable = brushOption.transformable;\n var mainEl = cover.childAt(0);\n mainEl.useStyle(makeStyle(brushOption));\n mainEl.attr({\n silent: !transformable,\n cursor: transformable ? 'move' : 'default'\n });\n each([['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']], function (nameSequence) {\n var el = cover.childOfName(nameSequence.join(''));\n var globalDir = nameSequence.length === 1 ? getGlobalDirection1(controller, nameSequence[0]) : getGlobalDirection2(controller, nameSequence);\n el && el.attr({\n silent: !transformable,\n invisible: !transformable,\n cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null\n });\n });\n}\n\nfunction updateRectShape(controller, cover, name, x, y, w, h) {\n var el = cover.childOfName(name);\n el && el.setShape(pointsToRect(clipByPanel(controller, cover, [[x, y], [x + w, y + h]])));\n}\n\nfunction makeStyle(brushOption) {\n return defaults({\n strokeNoScale: true\n }, brushOption.brushStyle);\n}\n\nfunction formatRectRange(x, y, x2, y2) {\n var min = [mathMin(x, x2), mathMin(y, y2)];\n var max = [mathMax(x, x2), mathMax(y, y2)];\n return [[min[0], max[0]], [min[1], max[1]] // y range\n ];\n}\n\nfunction getTransform(controller) {\n return graphic.getTransform(controller.group);\n}\n\nfunction getGlobalDirection1(controller, localDirName) {\n var map = {\n w: 'left',\n e: 'right',\n n: 'top',\n s: 'bottom'\n };\n var inverseMap = {\n left: 'w',\n right: 'e',\n top: 'n',\n bottom: 's'\n };\n var dir = graphic.transformDirection(map[localDirName], getTransform(controller));\n return inverseMap[dir];\n}\n\nfunction getGlobalDirection2(controller, localDirNameSeq) {\n var globalDir = [getGlobalDirection1(controller, localDirNameSeq[0]), getGlobalDirection1(controller, localDirNameSeq[1])];\n (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();\n return globalDir.join('');\n}\n\nfunction driftRect(rectRangeConverter, controller, cover, dirNameSequence, dx, dy) {\n var brushOption = cover.__brushOption;\n var rectRange = rectRangeConverter.toRectRange(brushOption.range);\n var localDelta = toLocalDelta(controller, dx, dy);\n each(dirNameSequence, function (dirName) {\n var ind = DIRECTION_MAP[dirName];\n rectRange[ind[0]][ind[1]] += localDelta[ind[0]];\n });\n brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]));\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {\n isEnd: false\n });\n}\n\nfunction driftPolygon(controller, cover, dx, dy) {\n var range = cover.__brushOption.range;\n var localDelta = toLocalDelta(controller, dx, dy);\n each(range, function (point) {\n point[0] += localDelta[0];\n point[1] += localDelta[1];\n });\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {\n isEnd: false\n });\n}\n\nfunction toLocalDelta(controller, dx, dy) {\n var thisGroup = controller.group;\n var localD = thisGroup.transformCoordToLocal(dx, dy);\n var localZero = thisGroup.transformCoordToLocal(0, 0);\n return [localD[0] - localZero[0], localD[1] - localZero[1]];\n}\n\nfunction clipByPanel(controller, cover, data) {\n var panel = getPanelByCover(controller, cover);\n return panel && panel !== BRUSH_PANEL_GLOBAL ? panel.clipPath(data, controller._transform) : clone(data);\n}\n\nfunction pointsToRect(points) {\n var xmin = mathMin(points[0][0], points[1][0]);\n var ymin = mathMin(points[0][1], points[1][1]);\n var xmax = mathMax(points[0][0], points[1][0]);\n var ymax = mathMax(points[0][1], points[1][1]);\n return {\n x: xmin,\n y: ymin,\n width: xmax - xmin,\n height: ymax - ymin\n };\n}\n\nfunction resetCursor(controller, e, localCursorPoint) {\n if ( // Check active\n !controller._brushType // resetCursor should be always called when mouse is in zr area,\n // but not called when mouse is out of zr area to avoid bad influence\n // if `mousemove`, `mouseup` are triggered from `document` event.\n || isOutsideZrArea(controller, e.offsetX, e.offsetY)) {\n return;\n }\n\n var zr = controller._zr;\n var covers = controller._covers;\n var currPanel = getPanelByPoint(controller, e, localCursorPoint); // Check whether in covers.\n\n if (!controller._dragging) {\n for (var i = 0; i < covers.length; i++) {\n var brushOption = covers[i].__brushOption;\n\n if (currPanel && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain(covers[i], localCursorPoint[0], localCursorPoint[1])) {\n // Use cursor style set on cover.\n return;\n }\n }\n }\n\n currPanel && zr.setCursorStyle('crosshair');\n}\n\nfunction preventDefault(e) {\n var rawE = e.event;\n rawE.preventDefault && rawE.preventDefault();\n}\n\nfunction mainShapeContain(cover, x, y) {\n return cover.childOfName('main').contain(x, y);\n}\n\nfunction updateCoverByMouse(controller, e, localCursorPoint, isEnd) {\n var creatingCover = controller._creatingCover;\n var panel = controller._creatingPanel;\n var thisBrushOption = controller._brushOption;\n var eventParams;\n\n controller._track.push(localCursorPoint.slice());\n\n if (shouldShowCover(controller) || creatingCover) {\n if (panel && !creatingCover) {\n thisBrushOption.brushMode === 'single' && clearCovers(controller);\n var brushOption = clone(thisBrushOption);\n brushOption.brushType = determineBrushType(brushOption.brushType, panel);\n brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId;\n creatingCover = controller._creatingCover = createCover(controller, brushOption);\n\n controller._covers.push(creatingCover);\n }\n\n if (creatingCover) {\n var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)];\n var coverBrushOption = creatingCover.__brushOption;\n coverBrushOption.range = coverRenderer.getCreatingRange(clipByPanel(controller, creatingCover, controller._track));\n\n if (isEnd) {\n endCreating(controller, creatingCover);\n coverRenderer.updateCommon(controller, creatingCover);\n }\n\n updateCoverShape(controller, creatingCover);\n eventParams = {\n isEnd: isEnd\n };\n }\n } else if (isEnd && thisBrushOption.brushMode === 'single' && thisBrushOption.removeOnClick) {\n // Help user to remove covers easily, only by a tiny drag, in 'single' mode.\n // But a single click do not clear covers, because user may have casual\n // clicks (for example, click on other component and do not expect covers\n // disappear).\n // Only some cover removed, trigger action, but not every click trigger action.\n if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {\n eventParams = {\n isEnd: isEnd,\n removeOnClick: true\n };\n }\n }\n\n return eventParams;\n}\n\nfunction determineBrushType(brushType, panel) {\n if (brushType === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n assert(panel && panel.defaultBrushType, 'MUST have defaultBrushType when brushType is \"atuo\"');\n }\n\n return panel.defaultBrushType;\n }\n\n return brushType;\n}\n\nvar pointerHandlers = {\n mousedown: function (e) {\n if (this._dragging) {\n // In case some browser do not support globalOut,\n // and release mouse out side the browser.\n handleDragEnd(this, e);\n } else if (!e.target || !e.target.draggable) {\n preventDefault(e);\n var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);\n this._creatingCover = null;\n var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);\n\n if (panel) {\n this._dragging = true;\n this._track = [localCursorPoint.slice()];\n }\n }\n },\n mousemove: function (e) {\n var x = e.offsetX;\n var y = e.offsetY;\n var localCursorPoint = this.group.transformCoordToLocal(x, y);\n resetCursor(this, e, localCursorPoint);\n\n if (this._dragging) {\n preventDefault(e);\n var eventParams = updateCoverByMouse(this, e, localCursorPoint, false);\n eventParams && trigger(this, eventParams);\n }\n },\n mouseup: function (e) {\n handleDragEnd(this, e);\n }\n};\n\nfunction handleDragEnd(controller, e) {\n if (controller._dragging) {\n preventDefault(e);\n var x = e.offsetX;\n var y = e.offsetY;\n var localCursorPoint = controller.group.transformCoordToLocal(x, y);\n var eventParams = updateCoverByMouse(controller, e, localCursorPoint, true);\n controller._dragging = false;\n controller._track = [];\n controller._creatingCover = null; // trigger event shoule be at final, after procedure will be nested.\n\n eventParams && trigger(controller, eventParams);\n }\n}\n\nfunction isOutsideZrArea(controller, x, y) {\n var zr = controller._zr;\n return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight();\n}\n/**\n * key: brushType\n */\n\n\nvar coverRenderers = {\n lineX: getLineRenderer(0),\n lineY: getLineRenderer(1),\n rect: {\n createCover: function (controller, brushOption) {\n function returnInput(range) {\n return range;\n }\n\n return createBaseRectCover({\n toRectRange: returnInput,\n fromRectRange: returnInput\n }, controller, brushOption, [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]);\n },\n getCreatingRange: function (localTrack) {\n var ends = getTrackEnds(localTrack);\n return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n updateBaseRect(controller, cover, localRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n },\n polygon: {\n createCover: function (controller, brushOption) {\n var cover = new graphic.Group(); // Do not use graphic.Polygon because graphic.Polyline do not close the\n // border of the shape when drawing, which is a better experience for user.\n\n cover.add(new graphic.Polyline({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true\n }));\n return cover;\n },\n getCreatingRange: function (localTrack) {\n return localTrack;\n },\n endCreating: function (controller, cover) {\n cover.remove(cover.childAt(0)); // Use graphic.Polygon close the shape.\n\n cover.add(new graphic.Polygon({\n name: 'main',\n draggable: true,\n drift: curry(driftPolygon, controller, cover),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n cover.childAt(0).setShape({\n points: clipByPanel(controller, cover, localRange)\n });\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n }\n};\n\nfunction getLineRenderer(xyIndex) {\n return {\n createCover: function (controller, brushOption) {\n return createBaseRectCover({\n toRectRange: function (range) {\n var rectRange = [range, [0, 100]];\n xyIndex && rectRange.reverse();\n return rectRange;\n },\n fromRectRange: function (rectRange) {\n return rectRange[xyIndex];\n }\n }, controller, brushOption, [[['w'], ['e']], [['n'], ['s']]][xyIndex]);\n },\n getCreatingRange: function (localTrack) {\n var ends = getTrackEnds(localTrack);\n var min = mathMin(ends[0][xyIndex], ends[1][xyIndex]);\n var max = mathMax(ends[0][xyIndex], ends[1][xyIndex]);\n return [min, max];\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n var otherExtent; // If brushWidth not specified, fit the panel.\n\n var panel = getPanelByCover(controller, cover);\n\n if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) {\n otherExtent = panel.getLinearBrushOtherExtent(xyIndex);\n } else {\n var zr = controller._zr;\n otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];\n }\n\n var rectRange = [localRange, otherExtent];\n xyIndex && rectRange.reverse();\n updateBaseRect(controller, cover, rectRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n };\n}\n\nexport default BrushController;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { onIrrelevantElement } from './cursorHelper';\nimport * as graphicUtil from '../../util/graphic';\nexport function makeRectPanelClipPath(rect) {\n rect = normalizeRect(rect);\n return function (localPoints) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\nexport function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {\n rect = normalizeRect(rect);\n return function (xyIndex) {\n var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n var brushWidth = idx ? rect.width : rect.height;\n var base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\nexport function makeRectIsTargetByCursor(rect, api, targetModel) {\n var boundingRect = normalizeRect(rect);\n return function (e, localCursorPoint) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel);\n };\n} // Consider width/height is negative.\n\nfunction normalizeRect(rect) {\n return BoundingRect.create(rect);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport BrushController from '../helper/BrushController';\nimport * as brushHelper from '../helper/brushHelper';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nvar elementList = ['axisLine', 'axisTickLabel', 'axisName'];\n\nvar ParallelAxisView =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxisView, _super);\n\n function ParallelAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelAxisView.type;\n return _this;\n }\n\n ParallelAxisView.prototype.init = function (ecModel, api) {\n _super.prototype.init.apply(this, arguments);\n\n (this._brushController = new BrushController(api.getZr())).on('brush', zrUtil.bind(this._onBrush, this));\n };\n\n ParallelAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n if (fromAxisAreaSelect(axisModel, ecModel, payload)) {\n return;\n }\n\n this.axisModel = axisModel;\n this.api = api;\n this.group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n var coordSysModel = getCoordSysModel(axisModel, ecModel);\n var coordSys = coordSysModel.coordinateSystem;\n var areaSelectStyle = axisModel.getAreaSelectStyle();\n var areaWidth = areaSelectStyle.width;\n var dim = axisModel.axis.dim;\n var axisLayout = coordSys.getAxisLayout(dim);\n var builderOpt = zrUtil.extend({\n strokeContainThreshold: areaWidth\n }, axisLayout);\n var axisBuilder = new AxisBuilder(axisModel, builderOpt);\n zrUtil.each(elementList, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n this._refreshBrushController(builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api);\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }; // /**\n // * @override\n // */\n // updateVisual(axisModel, ecModel, api, payload) {\n // this._brushController && this._brushController\n // .updateCovers(getCoverInfoList(axisModel));\n // }\n\n\n ParallelAxisView.prototype._refreshBrushController = function (builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api) {\n // After filtering, axis may change, select area needs to be update.\n var extent = axisModel.axis.getExtent();\n var extentLen = extent[1] - extent[0];\n var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.\n // width/height might be negative, which will be\n // normalized in BoundingRect.\n\n var rect = graphic.BoundingRect.create({\n x: extent[0],\n y: -areaWidth / 2,\n width: extentLen,\n height: areaWidth\n });\n rect.x -= extra;\n rect.width += 2 * extra;\n\n this._brushController.mount({\n enableGlobalPan: true,\n rotation: builderOpt.rotation,\n x: builderOpt.position[0],\n y: builderOpt.position[1]\n }).setPanels([{\n panelId: 'pl',\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect, 0)\n }]).enableBrush({\n brushType: 'lineX',\n brushStyle: areaSelectStyle,\n removeOnClick: true\n }).updateCovers(getCoverInfoList(axisModel));\n };\n\n ParallelAxisView.prototype._onBrush = function (eventParam) {\n var coverInfoList = eventParam.areas; // Do not cache these object, because the mey be changed.\n\n var axisModel = this.axisModel;\n var axis = axisModel.axis;\n var intervals = zrUtil.map(coverInfoList, function (coverInfo) {\n return [axis.coordToData(coverInfo.range[0], true), axis.coordToData(coverInfo.range[1], true)];\n }); // If realtime is true, action is not dispatched on drag end, because\n // the drag end emits the same params with the last drag move event,\n // and may have some delay when using touch pad.\n\n if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) {\n // jshint ignore:line\n this.api.dispatchAction({\n type: 'axisAreaSelect',\n parallelAxisId: axisModel.id,\n intervals: intervals\n });\n }\n };\n\n ParallelAxisView.prototype.dispose = function () {\n this._brushController.dispose();\n };\n\n ParallelAxisView.type = 'parallelAxis';\n return ParallelAxisView;\n}(ComponentView);\n\nfunction fromAxisAreaSelect(axisModel, ecModel, payload) {\n return payload && payload.type === 'axisAreaSelect' && ecModel.findComponents({\n mainType: 'parallelAxis',\n query: payload\n })[0] === axisModel;\n}\n\nfunction getCoverInfoList(axisModel) {\n var axis = axisModel.axis;\n return zrUtil.map(axisModel.activeIntervals, function (interval) {\n return {\n brushType: 'lineX',\n panelId: 'pl',\n range: [axis.dataToCoord(interval[0], true), axis.dataToCoord(interval[1], true)]\n };\n });\n}\n\nfunction getCoordSysModel(axisModel, ecModel) {\n return ecModel.getComponent('parallel', axisModel.get('parallelIndex'));\n}\n\nexport default ParallelAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar actionInfo = {\n type: 'axisAreaSelect',\n event: 'axisAreaSelected' // update: 'updateVisual'\n\n};\nexport function installParallelActions(registers) {\n registers.registerAction(actionInfo, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'parallelAxis',\n query: payload\n }, function (parallelAxisModel) {\n parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);\n });\n });\n /**\n * @payload\n */\n\n registers.registerAction('parallelAxisExpand', function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'parallel',\n query: payload\n }, function (parallelModel) {\n parallelModel.setAxisExpand(payload);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport parallelPreprocessor from '../../coord/parallel/parallelPreprocessor';\nimport ParallelView from './ParallelView';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport parallelCoordSysCreator from '../../coord/parallel/parallelCreator';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport ParallelAxisModel from '../../coord/parallel/AxisModel';\nimport ParallelAxisView from '../axis/ParallelAxisView';\nimport { installParallelActions } from '../axis/parallelAxisAction';\nvar defaultAxisOption = {\n type: 'value',\n areaSelectStyle: {\n width: 20,\n borderWidth: 1,\n borderColor: 'rgba(160,197,232)',\n color: 'rgba(160,197,232)',\n opacity: 0.3\n },\n realtime: true,\n z: 10\n};\nexport function install(registers) {\n registers.registerComponentView(ParallelView);\n registers.registerComponentModel(ParallelModel);\n registers.registerCoordinateSystem('parallel', parallelCoordSysCreator);\n registers.registerPreprocessor(parallelPreprocessor);\n registers.registerComponentModel(ParallelAxisModel);\n registers.registerComponentView(ParallelAxisView);\n axisModelCreator(registers, 'parallel', ParallelAxisModel, defaultAxisOption);\n installParallelActions(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelSeriesModel from './ParallelSeries';\nimport parallelVisual from './parallelVisual';\nimport { install as installParallelComponent } from '../../component/parallel/install';\nexport function install(registers) {\n use(installParallelComponent);\n registers.registerChartView(ParallelView);\n registers.registerSeriesModel(ParallelSeriesModel);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, parallelVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\n\nvar SankeyPathShape =\n/** @class */\nfunction () {\n function SankeyPathShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.cpx1 = 0;\n this.cpy1 = 0;\n this.cpx2 = 0;\n this.cpy2 = 0;\n this.extent = 0;\n }\n\n return SankeyPathShape;\n}();\n\nvar SankeyPath =\n/** @class */\nfunction (_super) {\n __extends(SankeyPath, _super);\n\n function SankeyPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n SankeyPath.prototype.getDefaultShape = function () {\n return new SankeyPathShape();\n };\n\n SankeyPath.prototype.buildPath = function (ctx, shape) {\n var extent = shape.extent;\n ctx.moveTo(shape.x1, shape.y1);\n ctx.bezierCurveTo(shape.cpx1, shape.cpy1, shape.cpx2, shape.cpy2, shape.x2, shape.y2);\n\n if (shape.orient === 'vertical') {\n ctx.lineTo(shape.x2 + extent, shape.y2);\n ctx.bezierCurveTo(shape.cpx2 + extent, shape.cpy2, shape.cpx1 + extent, shape.cpy1, shape.x1 + extent, shape.y1);\n } else {\n ctx.lineTo(shape.x2, shape.y2 + extent);\n ctx.bezierCurveTo(shape.cpx2, shape.cpy2 + extent, shape.cpx1, shape.cpy1 + extent, shape.x1, shape.y1 + extent);\n }\n\n ctx.closePath();\n };\n\n SankeyPath.prototype.highlight = function () {\n enterEmphasis(this);\n };\n\n SankeyPath.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n\n return SankeyPath;\n}(graphic.Path);\n\nvar SankeyView =\n/** @class */\nfunction (_super) {\n __extends(SankeyView, _super);\n\n function SankeyView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SankeyView.type;\n _this._focusAdjacencyDisabled = false;\n return _this;\n }\n\n SankeyView.prototype.render = function (seriesModel, ecModel, api) {\n var sankeyView = this;\n var graph = seriesModel.getGraph();\n var group = this.group;\n var layoutInfo = seriesModel.layoutInfo; // view width\n\n var width = layoutInfo.width; // view height\n\n var height = layoutInfo.height;\n var nodeData = seriesModel.getData();\n var edgeData = seriesModel.getData('edge');\n var orient = seriesModel.get('orient');\n this._model = seriesModel;\n group.removeAll();\n group.x = layoutInfo.x;\n group.y = layoutInfo.y; // generate a bezire Curve for each edge\n\n graph.eachEdge(function (edge) {\n var curve = new SankeyPath();\n var ecData = getECData(curve);\n ecData.dataIndex = edge.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n ecData.dataType = 'edge';\n var edgeModel = edge.getModel();\n var lineStyleModel = edgeModel.getModel('lineStyle');\n var curvature = lineStyleModel.get('curveness');\n var n1Layout = edge.node1.getLayout();\n var node1Model = edge.node1.getModel();\n var dragX1 = node1Model.get('localX');\n var dragY1 = node1Model.get('localY');\n var n2Layout = edge.node2.getLayout();\n var node2Model = edge.node2.getModel();\n var dragX2 = node2Model.get('localX');\n var dragY2 = node2Model.get('localY');\n var edgeLayout = edge.getLayout();\n var x1;\n var y1;\n var x2;\n var y2;\n var cpx1;\n var cpy1;\n var cpx2;\n var cpy2;\n curve.shape.extent = Math.max(1, edgeLayout.dy);\n curve.shape.orient = orient;\n\n if (orient === 'vertical') {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy;\n x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty;\n y2 = dragY2 != null ? dragY2 * height : n2Layout.y;\n cpx1 = x1;\n cpy1 = y1 * (1 - curvature) + y2 * curvature;\n cpx2 = x2;\n cpy2 = y1 * curvature + y2 * (1 - curvature);\n } else {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy;\n x2 = dragX2 != null ? dragX2 * width : n2Layout.x;\n y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty;\n cpx1 = x1 * (1 - curvature) + x2 * curvature;\n cpy1 = y1;\n cpx2 = x1 * curvature + x2 * (1 - curvature);\n cpy2 = y2;\n }\n\n curve.setShape({\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n });\n curve.useStyle(lineStyleModel.getItemStyle()); // Special color, use source node color or target node color\n\n switch (curve.style.fill) {\n case 'source':\n curve.style.fill = edge.node1.getVisual('color');\n curve.style.decal = edge.node1.getVisual('style').decal;\n break;\n\n case 'target':\n curve.style.fill = edge.node2.getVisual('color');\n curve.style.decal = edge.node2.getVisual('style').decal;\n break;\n\n case 'gradient':\n var sourceColor = edge.node1.getVisual('color');\n var targetColor = edge.node2.getVisual('color');\n\n if (typeof sourceColor === 'string' && typeof targetColor === 'string') {\n curve.style.fill = new graphic.LinearGradient(0, 0, 1, 0, [{\n color: sourceColor,\n offset: 0\n }, {\n color: targetColor,\n offset: 1\n }]);\n }\n\n }\n\n var emphasisModel = edgeModel.getModel('emphasis');\n setStatesStylesFromModel(curve, edgeModel, 'lineStyle', function (model) {\n return model.getItemStyle();\n });\n group.add(curve);\n edgeData.setItemGraphicEl(edge.dataIndex, curve);\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(curve, focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus, emphasisModel.get('blurScope'));\n getECData(curve).dataType = 'edge';\n }); // Generate a rect for each node\n\n graph.eachNode(function (node) {\n var layout = node.getLayout();\n var itemModel = node.getModel();\n var dragX = itemModel.get('localX');\n var dragY = itemModel.get('localY');\n var emphasisModel = itemModel.getModel('emphasis');\n var rect = new graphic.Rect({\n shape: {\n x: dragX != null ? dragX * width : layout.x,\n y: dragY != null ? dragY * height : layout.y,\n width: layout.dx,\n height: layout.dy\n },\n style: itemModel.getModel('itemStyle').getItemStyle(),\n z2: 10\n });\n setLabelStyle(rect, getLabelStatesModels(itemModel), {\n labelFetcher: seriesModel,\n labelDataIndex: node.dataIndex,\n defaultText: node.id\n });\n rect.disableLabelAnimation = true;\n rect.setStyle('fill', node.getVisual('color'));\n rect.setStyle('decal', node.getVisual('style').decal);\n setStatesStylesFromModel(rect, itemModel);\n group.add(rect);\n nodeData.setItemGraphicEl(node.dataIndex, rect);\n getECData(rect).dataType = 'node';\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(rect, focus === 'adjacency' ? node.getAdjacentDataIndices() : focus, emphasisModel.get('blurScope'));\n });\n nodeData.eachItemGraphicEl(function (el, dataIndex) {\n var itemModel = nodeData.getItemModel(dataIndex);\n\n if (itemModel.get('draggable')) {\n el.drift = function (dx, dy) {\n sankeyView._focusAdjacencyDisabled = true;\n this.shape.x += dx;\n this.shape.y += dy;\n this.dirty();\n api.dispatchAction({\n type: 'dragNode',\n seriesId: seriesModel.id,\n dataIndex: nodeData.getRawIndex(dataIndex),\n localX: this.shape.x / width,\n localY: this.shape.y / height\n });\n };\n\n el.ondragend = function () {\n sankeyView._focusAdjacencyDisabled = false;\n };\n\n el.draggable = true;\n el.cursor = 'move';\n }\n });\n\n if (!this._data && seriesModel.isAnimationEnabled()) {\n group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () {\n group.removeClipPath();\n }));\n }\n\n this._data = seriesModel.getData();\n };\n\n SankeyView.prototype.dispose = function () {};\n\n SankeyView.type = 'sankey';\n return SankeyView;\n}(ChartView); // Add animation to the view\n\n\nfunction createGridClipShape(rect, seriesModel, cb) {\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width + 20\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nexport default SankeyView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nvar SankeySeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SankeySeriesModel, _super);\n\n function SankeySeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SankeySeriesModel.type;\n return _this;\n }\n /**\n * Init a graph data structure from data in option series\n *\n * @param {Object} option the object used to config echarts view\n * @return {module:echarts/data/List} storage initial data\n */\n\n\n SankeySeriesModel.prototype.getInitialData = function (option, ecModel) {\n var links = option.edges || option.links;\n var nodes = option.data || option.nodes;\n var levels = option.levels;\n this.levelModels = [];\n var levelModels = this.levelModels;\n\n for (var i = 0; i < levels.length; i++) {\n if (levels[i].depth != null && levels[i].depth >= 0) {\n levelModels[levels[i].depth] = new Model(levels[i], this, ecModel);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('levels[i].depth is mandatory and should be natural number');\n }\n }\n }\n\n if (nodes && links) {\n var graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);\n return graph.data;\n }\n\n function beforeLink(nodeData, edgeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var seriesModel = model.parentModel;\n var layout = seriesModel.getData().getItemLayout(idx);\n\n if (layout) {\n var nodeDepth = layout.depth;\n var levelModel = seriesModel.levelModels[nodeDepth];\n\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n\n return model;\n });\n edgeData.wrapMethod('getItemModel', function (model, idx) {\n var seriesModel = model.parentModel;\n var edge = seriesModel.getGraph().getEdgeByIndex(idx);\n var layout = edge.node1.getLayout();\n\n if (layout) {\n var depth = layout.depth;\n var levelModel = seriesModel.levelModels[depth];\n\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n\n return model;\n });\n }\n };\n\n SankeySeriesModel.prototype.setNodePosition = function (dataIndex, localPosition) {\n var dataItem = this.option.data[dataIndex];\n dataItem.localX = localPosition[0];\n dataItem.localY = localPosition[1];\n };\n /**\n * Return the graphic data structure\n *\n * @return graphic data structure\n */\n\n\n SankeySeriesModel.prototype.getGraph = function () {\n return this.getData().graph;\n };\n /**\n * Get edge data of graphic data structure\n *\n * @return data structure of list\n */\n\n\n SankeySeriesModel.prototype.getEdgeData = function () {\n return this.getGraph().edgeData;\n };\n\n SankeySeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n function noValue(val) {\n return isNaN(val) || val == null;\n } // dataType === 'node' or empty do not show tooltip by default\n\n\n if (dataType === 'edge') {\n var params = this.getDataParams(dataIndex, dataType);\n var rawDataOpt = params.data;\n var edgeValue = params.value;\n var edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target;\n return createTooltipMarkup('nameValue', {\n name: edgeName,\n value: edgeValue,\n noValue: noValue(edgeValue)\n });\n } // dataType === 'node'\n else {\n var node = this.getGraph().getNodeByIndex(dataIndex);\n var value = node.getLayout().value;\n var name_1 = this.getDataParams(dataIndex, dataType).data.name;\n return createTooltipMarkup('nameValue', {\n name: name_1 != null ? name_1 + '' : null,\n value: value,\n noValue: noValue(value)\n });\n }\n };\n\n SankeySeriesModel.prototype.optionUpdated = function () {}; // Override Series.getDataParams()\n\n\n SankeySeriesModel.prototype.getDataParams = function (dataIndex, dataType) {\n var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);\n\n if (params.value == null && dataType === 'node') {\n var node = this.getGraph().getNodeByIndex(dataIndex);\n var nodeValue = node.getLayout().value;\n params.value = nodeValue;\n }\n\n return params;\n };\n\n SankeySeriesModel.type = 'series.sankey';\n SankeySeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n left: '5%',\n top: '5%',\n right: '20%',\n bottom: '5%',\n orient: 'horizontal',\n nodeWidth: 20,\n nodeGap: 8,\n draggable: true,\n layoutIterations: 32,\n label: {\n show: true,\n position: 'right',\n fontSize: 12\n },\n levels: [],\n nodeAlign: 'justify',\n lineStyle: {\n color: '#314656',\n opacity: 0.2,\n curveness: 0.5\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n opacity: 0.5\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n animationEasing: 'linear',\n animationDuration: 1000\n };\n return SankeySeriesModel;\n}(SeriesModel);\n\nexport default SankeySeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { groupData } from '../../util/model';\nexport default function sankeyLayout(ecModel, api) {\n ecModel.eachSeriesByType('sankey', function (seriesModel) {\n var nodeWidth = seriesModel.get('nodeWidth');\n var nodeGap = seriesModel.get('nodeGap');\n var layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n var width = layoutInfo.width;\n var height = layoutInfo.height;\n var graph = seriesModel.getGraph();\n var nodes = graph.nodes;\n var edges = graph.edges;\n computeNodeValues(nodes);\n var filteredNodes = zrUtil.filter(nodes, function (node) {\n return node.getLayout().value === 0;\n });\n var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');\n var orient = seriesModel.get('orient');\n var nodeAlign = seriesModel.get('nodeAlign');\n layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);\n });\n}\n/**\n * Get the layout position of the whole view\n */\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nfunction layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) {\n computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);\n computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);\n computeEdgeDepths(nodes, orient);\n}\n/**\n * Compute the value of each node by summing the associated edge's value\n */\n\n\nfunction computeNodeValues(nodes) {\n zrUtil.each(nodes, function (node) {\n var value1 = sum(node.outEdges, getEdgeValue);\n var value2 = sum(node.inEdges, getEdgeValue);\n var nodeRawValue = node.getValue() || 0;\n var value = Math.max(value1, value2, nodeRawValue);\n node.setLayout({\n value: value\n }, true);\n });\n}\n/**\n * Compute the x-position for each node.\n *\n * Here we use Kahn algorithm to detect cycle when we traverse\n * the node to computer the initial x position.\n */\n\n\nfunction computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {\n // Used to mark whether the edge is deleted. if it is deleted,\n // the value is 0, otherwise it is 1.\n var remainEdges = []; // Storage each node's indegree.\n\n var indegreeArr = []; //Used to storage the node with indegree is equal to 0.\n\n var zeroIndegrees = [];\n var nextTargetNode = [];\n var x = 0; // let kx = 0;\n\n for (var i = 0; i < edges.length; i++) {\n remainEdges[i] = 1;\n }\n\n for (var i = 0; i < nodes.length; i++) {\n indegreeArr[i] = nodes[i].inEdges.length;\n\n if (indegreeArr[i] === 0) {\n zeroIndegrees.push(nodes[i]);\n }\n }\n\n var maxNodeDepth = -1; // Traversing nodes using topological sorting to calculate the\n // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')\n // position of the nodes.\n\n while (zeroIndegrees.length) {\n for (var idx = 0; idx < zeroIndegrees.length; idx++) {\n var node = zeroIndegrees[idx];\n var item = node.hostGraph.data.getRawDataItem(node.dataIndex);\n var isItemDepth = item.depth != null && item.depth >= 0;\n\n if (isItemDepth && item.depth > maxNodeDepth) {\n maxNodeDepth = item.depth;\n }\n\n node.setLayout({\n depth: isItemDepth ? item.depth : x\n }, true);\n orient === 'vertical' ? node.setLayout({\n dy: nodeWidth\n }, true) : node.setLayout({\n dx: nodeWidth\n }, true);\n\n for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {\n var edge = node.outEdges[edgeIdx];\n var indexEdge = edges.indexOf(edge);\n remainEdges[indexEdge] = 0;\n var targetNode = edge.node2;\n var nodeIndex = nodes.indexOf(targetNode);\n\n if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {\n nextTargetNode.push(targetNode);\n }\n }\n }\n\n ++x;\n zeroIndegrees = nextTargetNode;\n nextTargetNode = [];\n }\n\n for (var i = 0; i < remainEdges.length; i++) {\n if (remainEdges[i] === 1) {\n throw new Error('Sankey is a DAG, the original data has cycle!');\n }\n }\n\n var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;\n\n if (nodeAlign && nodeAlign !== 'left') {\n adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);\n }\n\n var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width - nodeWidth) / maxDepth;\n scaleNodeBreadths(nodes, kx, orient);\n}\n\nfunction isNodeDepth(node) {\n var item = node.hostGraph.data.getRawDataItem(node.dataIndex);\n return item.depth != null && item.depth >= 0;\n}\n\nfunction adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) {\n if (nodeAlign === 'right') {\n var nextSourceNode = [];\n var remainNodes = nodes;\n var nodeHeight = 0;\n\n while (remainNodes.length) {\n for (var i = 0; i < remainNodes.length; i++) {\n var node = remainNodes[i];\n node.setLayout({\n skNodeHeight: nodeHeight\n }, true);\n\n for (var j = 0; j < node.inEdges.length; j++) {\n var edge = node.inEdges[j];\n\n if (nextSourceNode.indexOf(edge.node1) < 0) {\n nextSourceNode.push(edge.node1);\n }\n }\n }\n\n remainNodes = nextSourceNode;\n nextSourceNode = [];\n ++nodeHeight;\n }\n\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node)) {\n node.setLayout({\n depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)\n }, true);\n }\n });\n } else if (nodeAlign === 'justify') {\n moveSinksRight(nodes, maxDepth);\n }\n}\n/**\n * All the node without outEgdes are assigned maximum x-position and\n * be aligned in the last column.\n *\n * @param nodes. node of sankey view.\n * @param maxDepth. use to assign to node without outEdges as x-position.\n */\n\n\nfunction moveSinksRight(nodes, maxDepth) {\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node) && !node.outEdges.length) {\n node.setLayout({\n depth: maxDepth\n }, true);\n }\n });\n}\n/**\n * Scale node x-position to the width\n *\n * @param nodes node of sankey view\n * @param kx multiple used to scale nodes\n */\n\n\nfunction scaleNodeBreadths(nodes, kx, orient) {\n zrUtil.each(nodes, function (node) {\n var nodeDepth = node.getLayout().depth * kx;\n orient === 'vertical' ? node.setLayout({\n y: nodeDepth\n }, true) : node.setLayout({\n x: nodeDepth\n }, true);\n });\n}\n/**\n * Using Gauss-Seidel iterations method to compute the node depth(y-position)\n *\n * @param nodes node of sankey view\n * @param edges edge of sankey view\n * @param height the whole height of the area to draw the view\n * @param nodeGap the vertical distance between two nodes\n * in the same column.\n * @param iterations the number of iterations for the algorithm\n */\n\n\nfunction computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) {\n var nodesByBreadth = prepareNodesByBreadth(nodes, orient);\n initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n\n for (var alpha = 1; iterations > 0; iterations--) {\n // 0.99 is a experience parameter, ensure that each iterations of\n // changes as small as possible.\n alpha *= 0.99;\n relaxRightToLeft(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n relaxLeftToRight(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n }\n}\n\nfunction prepareNodesByBreadth(nodes, orient) {\n var nodesByBreadth = [];\n var keyAttr = orient === 'vertical' ? 'y' : 'x';\n var groupResult = groupData(nodes, function (node) {\n return node.getLayout()[keyAttr];\n });\n groupResult.keys.sort(function (a, b) {\n return a - b;\n });\n zrUtil.each(groupResult.keys, function (key) {\n nodesByBreadth.push(groupResult.buckets.get(key));\n });\n return nodesByBreadth;\n}\n/**\n * Compute the original y-position for each node\n */\n\n\nfunction initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) {\n var minKy = Infinity;\n zrUtil.each(nodesByBreadth, function (nodes) {\n var n = nodes.length;\n var sum = 0;\n zrUtil.each(nodes, function (node) {\n sum += node.getLayout().value;\n });\n var ky = orient === 'vertical' ? (width - (n - 1) * nodeGap) / sum : (height - (n - 1) * nodeGap) / sum;\n\n if (ky < minKy) {\n minKy = ky;\n }\n });\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node, i) {\n var nodeDy = node.getLayout().value * minKy;\n\n if (orient === 'vertical') {\n node.setLayout({\n x: i\n }, true);\n node.setLayout({\n dx: nodeDy\n }, true);\n } else {\n node.setLayout({\n y: i\n }, true);\n node.setLayout({\n dy: nodeDy\n }, true);\n }\n });\n });\n zrUtil.each(edges, function (edge) {\n var edgeDy = +edge.getValue() * minKy;\n edge.setLayout({\n dy: edgeDy\n }, true);\n });\n}\n/**\n * Resolve the collision of initialized depth (y-position)\n */\n\n\nfunction resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {\n var keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodesByBreadth, function (nodes) {\n nodes.sort(function (a, b) {\n return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];\n });\n var nodeX;\n var node;\n var dy;\n var y0 = 0;\n var n = nodes.length;\n var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';\n\n for (var i = 0; i < n; i++) {\n node = nodes[i];\n dy = y0 - node.getLayout()[keyAttr];\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] + dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n }\n\n y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;\n }\n\n var viewWidth = orient === 'vertical' ? width : height; // If the bottommost node goes outside the bounds, push it back up\n\n dy = y0 - nodeGap - viewWidth;\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n y0 = nodeX;\n\n for (var i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n }\n\n y0 = node.getLayout()[keyAttr];\n }\n }\n });\n}\n/**\n * Change the y-position of the nodes, except most the right side nodes\n * @param nodesByBreadth\n * @param alpha parameter used to adjust the nodes y-position\n */\n\n\nfunction relaxRightToLeft(nodesByBreadth, alpha, orient) {\n zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.outEdges.length) {\n var y = sum(node.outEdges, weightedTarget, orient) / sum(node.outEdges, getEdgeValue);\n\n if (isNaN(y)) {\n var len = node.outEdges.length;\n y = len ? sum(node.outEdges, centerTarget, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({\n x: nodeX\n }, true);\n } else {\n var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({\n y: nodeY\n }, true);\n }\n }\n });\n });\n}\n\nfunction weightedTarget(edge, orient) {\n return center(edge.node2, orient) * edge.getValue();\n}\n\nfunction centerTarget(edge, orient) {\n return center(edge.node2, orient);\n}\n\nfunction weightedSource(edge, orient) {\n return center(edge.node1, orient) * edge.getValue();\n}\n\nfunction centerSource(edge, orient) {\n return center(edge.node1, orient);\n}\n\nfunction center(node, orient) {\n return orient === 'vertical' ? node.getLayout().x + node.getLayout().dx / 2 : node.getLayout().y + node.getLayout().dy / 2;\n}\n\nfunction getEdgeValue(edge) {\n return edge.getValue();\n}\n\nfunction sum(array, cb, orient) {\n var sum = 0;\n var len = array.length;\n var i = -1;\n\n while (++i < len) {\n var value = +cb(array[i], orient);\n\n if (!isNaN(value)) {\n sum += value;\n }\n }\n\n return sum;\n}\n/**\n * Change the y-position of the nodes, except most the left side nodes\n */\n\n\nfunction relaxLeftToRight(nodesByBreadth, alpha, orient) {\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.inEdges.length) {\n var y = sum(node.inEdges, weightedSource, orient) / sum(node.inEdges, getEdgeValue);\n\n if (isNaN(y)) {\n var len = node.inEdges.length;\n y = len ? sum(node.inEdges, centerSource, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({\n x: nodeX\n }, true);\n } else {\n var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({\n y: nodeY\n }, true);\n }\n }\n });\n });\n}\n/**\n * Compute the depth(y-position) of each edge\n */\n\n\nfunction computeEdgeDepths(nodes, orient) {\n var keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodes, function (node) {\n node.outEdges.sort(function (a, b) {\n return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];\n });\n node.inEdges.sort(function (a, b) {\n return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];\n });\n });\n zrUtil.each(nodes, function (node) {\n var sy = 0;\n var ty = 0;\n zrUtil.each(node.outEdges, function (edge) {\n edge.setLayout({\n sy: sy\n }, true);\n sy += edge.getLayout().dy;\n });\n zrUtil.each(node.inEdges, function (edge) {\n edge.setLayout({\n ty: ty\n }, true);\n ty += edge.getLayout().dy;\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapping from '../../visual/VisualMapping';\nexport default function sankeyVisual(ecModel) {\n ecModel.eachSeriesByType('sankey', function (seriesModel) {\n var graph = seriesModel.getGraph();\n var nodes = graph.nodes;\n\n if (nodes.length) {\n var minValue_1 = Infinity;\n var maxValue_1 = -Infinity;\n zrUtil.each(nodes, function (node) {\n var nodeValue = node.getLayout().value;\n\n if (nodeValue < minValue_1) {\n minValue_1 = nodeValue;\n }\n\n if (nodeValue > maxValue_1) {\n maxValue_1 = nodeValue;\n }\n });\n zrUtil.each(nodes, function (node) {\n var mapping = new VisualMapping({\n type: 'color',\n mappingMethod: 'linear',\n dataExtent: [minValue_1, maxValue_1],\n visual: seriesModel.get('color')\n });\n var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);\n var customColor = node.getModel().get(['itemStyle', 'color']);\n\n if (customColor != null) {\n node.setVisual('color', customColor);\n node.setVisual('style', {\n fill: customColor\n });\n } else {\n node.setVisual('color', mapValueToColor);\n node.setVisual('style', {\n fill: mapValueToColor\n });\n }\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SankeyView from './SankeyView';\nimport SankeySeriesModel from './SankeySeries';\nimport sankeyLayout from './sankeyLayout';\nimport sankeyVisual from './sankeyVisual';\nexport function install(registers) {\n registers.registerChartView(SankeyView);\n registers.registerSeriesModel(SankeySeriesModel);\n registers.registerLayout(sankeyLayout);\n registers.registerVisual(sankeyVisual);\n registers.registerAction({\n type: 'dragNode',\n event: 'dragnode',\n // here can only use 'update' now, other value is not support in echarts.\n update: 'update'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sankey',\n query: payload\n }, function (seriesModel) {\n seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport { makeSeriesEncodeForAxisCoordSys } from '../../data/helper/sourceHelper';\n\nvar WhiskerBoxCommonMixin =\n/** @class */\nfunction () {\n function WhiskerBoxCommonMixin() {}\n /**\n * @override\n */\n\n\n WhiskerBoxCommonMixin.prototype.getInitialData = function (option, ecModel) {\n // When both types of xAxis and yAxis are 'value', layout is\n // needed to be specified by user. Otherwise, layout can be\n // judged by which axis is category.\n var ordinalMeta;\n var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex'));\n var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex'));\n var xAxisType = xAxisModel.get('type');\n var yAxisType = yAxisModel.get('type');\n var addOrdinal; // FIXME\n // Consider time axis.\n\n if (xAxisType === 'category') {\n option.layout = 'horizontal';\n ordinalMeta = xAxisModel.getOrdinalMeta();\n addOrdinal = true;\n } else if (yAxisType === 'category') {\n option.layout = 'vertical';\n ordinalMeta = yAxisModel.getOrdinalMeta();\n addOrdinal = true;\n } else {\n option.layout = option.layout || 'horizontal';\n }\n\n var coordDims = ['x', 'y'];\n var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;\n var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];\n var otherAxisDim = coordDims[1 - baseAxisDimIndex];\n var axisModels = [xAxisModel, yAxisModel];\n var baseAxisType = axisModels[baseAxisDimIndex].get('type');\n var otherAxisType = axisModels[1 - baseAxisDimIndex].get('type');\n var data = option.data; // ??? FIXME make a stage to perform data transfrom.\n // MUST create a new data, consider setOption({}) again.\n\n if (data && addOrdinal) {\n var newOptionData_1 = [];\n zrUtil.each(data, function (item, index) {\n var newItem;\n\n if (zrUtil.isArray(item)) {\n newItem = item.slice();\n item.unshift(index);\n } else if (zrUtil.isArray(item.value)) {\n newItem = item.value.slice();\n item.value.unshift(index);\n } else {\n newItem = item;\n }\n\n newOptionData_1.push(newItem);\n });\n option.data = newOptionData_1;\n }\n\n var defaultValueDimensions = this.defaultValueDimensions;\n var coordDimensions = [{\n name: baseAxisDim,\n type: getDimensionTypeByAxis(baseAxisType),\n ordinalMeta: ordinalMeta,\n otherDims: {\n tooltip: false,\n itemName: 0\n },\n dimsDef: ['base']\n }, {\n name: otherAxisDim,\n type: getDimensionTypeByAxis(otherAxisType),\n dimsDef: defaultValueDimensions.slice()\n }];\n return createListSimply(this, {\n coordDimensions: coordDimensions,\n dimensionsCount: defaultValueDimensions.length + 1,\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordDimensions, this)\n });\n };\n /**\n * If horizontal, base axis is x, otherwise y.\n * @override\n */\n\n\n WhiskerBoxCommonMixin.prototype.getBaseAxis = function () {\n var dim = this._baseAxisDim;\n return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis;\n };\n\n return WhiskerBoxCommonMixin;\n}();\n\n;\nexport { WhiskerBoxCommonMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport { WhiskerBoxCommonMixin } from '../helper/whiskerBoxCommon';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar BoxplotSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BoxplotSeriesModel, _super);\n\n function BoxplotSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BoxplotSeriesModel.type; // TODO\n // box width represents group size, so dimension should have 'size'.\n\n /**\n * @see \n * The meanings of 'min' and 'max' depend on user,\n * and echarts do not need to know it.\n * @readOnly\n */\n\n _this.defaultValueDimensions = [{\n name: 'min',\n defaultTooltip: true\n }, {\n name: 'Q1',\n defaultTooltip: true\n }, {\n name: 'median',\n defaultTooltip: true\n }, {\n name: 'Q3',\n defaultTooltip: true\n }, {\n name: 'max',\n defaultTooltip: true\n }];\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n BoxplotSeriesModel.type = 'series.boxplot';\n BoxplotSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];\n BoxplotSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n layout: null,\n boxWidth: [7, 50],\n itemStyle: {\n color: '#fff',\n borderWidth: 1\n },\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2,\n shadowBlur: 5,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n },\n animationDuration: 800\n };\n return BoxplotSeriesModel;\n}(SeriesModel);\n\nmixin(BoxplotSeriesModel, WhiskerBoxCommonMixin, true);\nexport default BoxplotSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport Path from 'zrender/lib/graphic/Path';\n\nvar BoxplotView =\n/** @class */\nfunction (_super) {\n __extends(BoxplotView, _super);\n\n function BoxplotView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BoxplotView.type;\n return _this;\n }\n\n BoxplotView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var group = this.group;\n var oldData = this._data; // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!this._data) {\n group.removeAll();\n }\n\n var constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0;\n data.diff(oldData).add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n var itemLayout = data.getItemLayout(newIdx);\n var symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx); // Empty data\n\n if (!data.hasValue(newIdx)) {\n group.remove(symbolEl);\n return;\n }\n\n var itemLayout = data.getItemLayout(newIdx);\n\n if (!symbolEl) {\n symbolEl = createNormalBox(itemLayout, data, newIdx, constDim);\n } else {\n updateNormalBoxData(itemLayout, symbolEl, data, newIdx);\n }\n\n group.add(symbolEl);\n data.setItemGraphicEl(newIdx, symbolEl);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n }).execute();\n this._data = data;\n };\n\n BoxplotView.prototype.remove = function (ecModel) {\n var group = this.group;\n var data = this._data;\n this._data = null;\n data && data.eachItemGraphicEl(function (el) {\n el && group.remove(el);\n });\n };\n\n BoxplotView.type = 'boxplot';\n return BoxplotView;\n}(ChartView);\n\nvar BoxPathShape =\n/** @class */\nfunction () {\n function BoxPathShape() {}\n\n return BoxPathShape;\n}();\n\nvar BoxPath =\n/** @class */\nfunction (_super) {\n __extends(BoxPath, _super);\n\n function BoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'boxplotBoxPath';\n return _this;\n }\n\n BoxPath.prototype.getDefaultShape = function () {\n return new BoxPathShape();\n };\n\n BoxPath.prototype.buildPath = function (ctx, shape) {\n var ends = shape.points;\n var i = 0;\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n\n for (; i < 4; i++) {\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n\n ctx.closePath();\n\n for (; i < ends.length; i++) {\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n };\n\n return BoxPath;\n}(Path);\n\nfunction createNormalBox(itemLayout, data, dataIndex, constDim, isInit) {\n var ends = itemLayout.ends;\n var el = new BoxPath({\n shape: {\n points: isInit ? transInit(ends, constDim, itemLayout) : ends\n }\n });\n updateNormalBoxData(itemLayout, el, data, dataIndex, isInit);\n return el;\n}\n\nfunction updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) {\n var seriesModel = data.hostModel;\n var updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];\n updateMethod(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, dataIndex);\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n el.z2 = 100;\n var itemModel = data.getItemModel(dataIndex);\n setStatesStylesFromModel(el, itemModel);\n enableHoverEmphasis(el, itemModel.get(['emphasis', 'focus']), itemModel.get(['emphasis', 'blurScope']));\n}\n\nfunction transInit(points, dim, itemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[dim] = itemLayout.initBaseline;\n return point;\n });\n}\n\nexport default BoxplotView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function boxplotVisual(ecModel, api) {}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../../util/number';\nvar each = zrUtil.each;\nexport default function boxplotLayout(ecModel) {\n var groupResult = groupSeriesByAxis(ecModel);\n each(groupResult, function (groupItem) {\n var seriesModels = groupItem.seriesModels;\n\n if (!seriesModels.length) {\n return;\n }\n\n calculateBase(groupItem);\n each(seriesModels, function (seriesModel, idx) {\n layoutSingleSeries(seriesModel, groupItem.boxOffsetList[idx], groupItem.boxWidthList[idx]);\n });\n });\n}\n/**\n * Group series by axis.\n */\n\nfunction groupSeriesByAxis(ecModel) {\n var result = [];\n var axisList = [];\n ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n var baseAxis = seriesModel.getBaseAxis();\n var idx = zrUtil.indexOf(axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {\n axis: baseAxis,\n seriesModels: []\n };\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n return result;\n}\n/**\n * Calculate offset and box width for each series.\n */\n\n\nfunction calculateBase(groupItem) {\n var extent;\n var baseAxis = groupItem.axis;\n var seriesModels = groupItem.seriesModels;\n var seriesCount = seriesModels.length;\n var boxWidthList = groupItem.boxWidthList = [];\n var boxOffsetList = groupItem.boxOffsetList = [];\n var boundList = [];\n var bandWidth;\n\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n } else {\n var maxDataCount_1 = 0;\n each(seriesModels, function (seriesModel) {\n maxDataCount_1 = Math.max(maxDataCount_1, seriesModel.getData().count());\n });\n extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / maxDataCount_1;\n }\n\n each(seriesModels, function (seriesModel) {\n var boxWidthBound = seriesModel.get('boxWidth');\n\n if (!zrUtil.isArray(boxWidthBound)) {\n boxWidthBound = [boxWidthBound, boxWidthBound];\n }\n\n boundList.push([parsePercent(boxWidthBound[0], bandWidth) || 0, parsePercent(boxWidthBound[1], bandWidth) || 0]);\n });\n var availableWidth = bandWidth * 0.8 - 2;\n var boxGap = availableWidth / seriesCount * 0.3;\n var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;\n var base = boxWidth / 2 - availableWidth / 2;\n each(seriesModels, function (seriesModel, idx) {\n boxOffsetList.push(base);\n base += boxGap + boxWidth;\n boxWidthList.push(Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1]));\n });\n}\n/**\n * Calculate points location for each series.\n */\n\n\nfunction layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dim, dataIndex) {\n var val = data.get(dim, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { quantile, asc } from '../../util/number';\nimport { isFunction, isString } from 'zrender/lib/core/util';\n/**\n * See:\n * \n * \n *\n * Helper method for preparing data.\n *\n * @param rawData like\n * [\n * [12,232,443], (raw data set for the first box)\n * [3843,5545,1232], (raw data set for the second box)\n * ...\n * ]\n * @param opt.boundIQR=1.5 Data less than min bound is outlier.\n * default 1.5, means Q1 - 1.5 * (Q3 - Q1).\n * If 'none'/0 passed, min bound will not be used.\n */\n\nexport default function prepareBoxplotData(rawData, opt) {\n opt = opt || {};\n var boxData = [];\n var outliers = [];\n var boundIQR = opt.boundIQR;\n var useExtreme = boundIQR === 'none' || boundIQR === 0;\n\n for (var i = 0; i < rawData.length; i++) {\n var ascList = asc(rawData[i].slice());\n var Q1 = quantile(ascList, 0.25);\n var Q2 = quantile(ascList, 0.5);\n var Q3 = quantile(ascList, 0.75);\n var min = ascList[0];\n var max = ascList[ascList.length - 1];\n var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1);\n var low = useExtreme ? min : Math.max(min, Q1 - bound);\n var high = useExtreme ? max : Math.min(max, Q3 + bound);\n var itemNameFormatter = opt.itemNameFormatter;\n var itemName = isFunction(itemNameFormatter) ? itemNameFormatter({\n value: i\n }) : isString(itemNameFormatter) ? itemNameFormatter.replace('{value}', i + '') : i + '';\n boxData.push([itemName, low, Q1, Q2, Q3, high]);\n\n for (var j = 0; j < ascList.length; j++) {\n var dataItem = ascList[j];\n\n if (dataItem < low || dataItem > high) {\n var outlier = [itemName, dataItem];\n outliers.push(outlier);\n }\n }\n }\n\n return {\n boxData: boxData,\n outliers: outliers\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport prepareBoxplotData from './prepareBoxplotData';\nimport { throwError, makePrintable } from '../../util/log';\nimport { SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\nexport var boxplotTransform = {\n type: 'echarts:boxplot',\n transform: function transform(params) {\n var upstream = params.upstream;\n\n if (upstream.sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('source data is not applicable for this boxplot transform. Expect number[][].');\n }\n\n throwError(errMsg);\n }\n\n var result = prepareBoxplotData(upstream.getRawData(), params.config);\n return [{\n dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'],\n data: result.boxData\n }, {\n data: result.outliers\n }];\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport BoxplotView from './BoxplotView';\nimport boxplotVisual from './boxplotVisual';\nimport boxplotLayout from './boxplotLayout';\nimport { boxplotTransform } from './boxplotTransform';\nexport function install(registers) {\n registers.registerSeriesModel(BoxplotSeriesModel);\n registers.registerChartView(BoxplotView);\n registers.registerVisual(boxplotVisual);\n registers.registerLayout(boxplotLayout);\n registers.registerTransform(boxplotTransform);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel } from '../../util/states';\nimport Path from 'zrender/lib/graphic/Path';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nvar SKIP_PROPS = ['color', 'borderColor'];\n\nvar CandlestickView =\n/** @class */\nfunction (_super) {\n __extends(CandlestickView, _super);\n\n function CandlestickView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CandlestickView.type;\n return _this;\n }\n\n CandlestickView.prototype.render = function (seriesModel, ecModel, api) {\n // If there is clipPath created in large mode. Remove it.\n this.group.removeClipPath();\n\n this._updateDrawMode(seriesModel);\n\n this._isLargeDraw ? this._renderLarge(seriesModel) : this._renderNormal(seriesModel);\n };\n\n CandlestickView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this._clear();\n\n this._updateDrawMode(seriesModel);\n };\n\n CandlestickView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {\n this._isLargeDraw ? this._incrementalRenderLarge(params, seriesModel) : this._incrementalRenderNormal(params, seriesModel);\n };\n\n CandlestickView.prototype._updateDrawMode = function (seriesModel) {\n var isLargeDraw = seriesModel.pipelineContext.large;\n\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n\n this._clear();\n }\n };\n\n CandlestickView.prototype._renderNormal = function (seriesModel) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n var isSimpleBox = data.getLayout('isSimpleBox');\n var needsClip = seriesModel.get('clip', true);\n var coord = seriesModel.coordinateSystem;\n var clipArea = coord.getArea && coord.getArea(); // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!this._data) {\n group.removeAll();\n }\n\n data.diff(oldData).add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n var itemLayout = data.getItemLayout(newIdx);\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n return;\n }\n\n var el = createNormalBox(itemLayout, newIdx, true);\n graphic.initProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n setBoxCommon(el, data, newIdx, isSimpleBox);\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n }\n }).update(function (newIdx, oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx); // Empty data\n\n if (!data.hasValue(newIdx)) {\n group.remove(el);\n return;\n }\n\n var itemLayout = data.getItemLayout(newIdx);\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n group.remove(el);\n return;\n }\n\n if (!el) {\n el = createNormalBox(itemLayout, newIdx);\n } else {\n graphic.updateProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n }\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n }).execute();\n this._data = data;\n };\n\n CandlestickView.prototype._renderLarge = function (seriesModel) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n };\n\n CandlestickView.prototype._incrementalRenderNormal = function (params, seriesModel) {\n var data = seriesModel.getData();\n var isSimpleBox = data.getLayout('isSimpleBox');\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var itemLayout = data.getItemLayout(dataIndex);\n var el = createNormalBox(itemLayout, dataIndex);\n setBoxCommon(el, data, dataIndex, isSimpleBox);\n el.incremental = true;\n this.group.add(el);\n }\n };\n\n CandlestickView.prototype._incrementalRenderLarge = function (params, seriesModel) {\n createLarge(seriesModel, this.group, true);\n };\n\n CandlestickView.prototype.remove = function (ecModel) {\n this._clear();\n };\n\n CandlestickView.prototype._clear = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n CandlestickView.type = 'candlestick';\n return CandlestickView;\n}(ChartView);\n\nvar NormalBoxPathShape =\n/** @class */\nfunction () {\n function NormalBoxPathShape() {}\n\n return NormalBoxPathShape;\n}();\n\nvar NormalBoxPath =\n/** @class */\nfunction (_super) {\n __extends(NormalBoxPath, _super);\n\n function NormalBoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'normalCandlestickBox';\n return _this;\n }\n\n NormalBoxPath.prototype.getDefaultShape = function () {\n return new NormalBoxPathShape();\n };\n\n NormalBoxPath.prototype.buildPath = function (ctx, shape) {\n var ends = shape.points;\n\n if (this.__simpleBox) {\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[6][0], ends[6][1]);\n } else {\n ctx.moveTo(ends[0][0], ends[0][1]);\n ctx.lineTo(ends[1][0], ends[1][1]);\n ctx.lineTo(ends[2][0], ends[2][1]);\n ctx.lineTo(ends[3][0], ends[3][1]);\n ctx.closePath();\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[5][0], ends[5][1]);\n ctx.moveTo(ends[6][0], ends[6][1]);\n ctx.lineTo(ends[7][0], ends[7][1]);\n }\n };\n\n return NormalBoxPath;\n}(Path);\n\nfunction createNormalBox(itemLayout, dataIndex, isInit) {\n var ends = itemLayout.ends;\n return new NormalBoxPath({\n shape: {\n points: isInit ? transInit(ends, itemLayout) : ends\n },\n z2: 100\n });\n}\n\nfunction isNormalBoxClipped(clipArea, itemLayout) {\n var clipped = true;\n\n for (var i = 0; i < itemLayout.ends.length; i++) {\n // If any point are in the region.\n if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) {\n clipped = false;\n break;\n }\n }\n\n return clipped;\n}\n\nfunction setBoxCommon(el, data, dataIndex, isSimpleBox) {\n var itemModel = data.getItemModel(dataIndex);\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n el.__simpleBox = isSimpleBox;\n setStatesStylesFromModel(el, itemModel);\n}\n\nfunction transInit(points, itemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[1] = itemLayout.initBaseline;\n return point;\n });\n}\n\nvar LargeBoxPathShape =\n/** @class */\nfunction () {\n function LargeBoxPathShape() {}\n\n return LargeBoxPathShape;\n}();\n\nvar LargeBoxPath =\n/** @class */\nfunction (_super) {\n __extends(LargeBoxPath, _super);\n\n function LargeBoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'largeCandlestickBox';\n return _this;\n }\n\n LargeBoxPath.prototype.getDefaultShape = function () {\n return new LargeBoxPathShape();\n };\n\n LargeBoxPath.prototype.buildPath = function (ctx, shape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n var points = shape.points;\n\n for (var i = 0; i < points.length;) {\n if (this.__sign === points[i++]) {\n var x = points[i++];\n ctx.moveTo(x, points[i++]);\n ctx.lineTo(x, points[i++]);\n } else {\n i += 3;\n }\n }\n };\n\n return LargeBoxPath;\n}(Path);\n\nfunction createLarge(seriesModel, group, incremental) {\n var data = seriesModel.getData();\n var largePoints = data.getLayout('largePoints');\n var elP = new LargeBoxPath({\n shape: {\n points: largePoints\n },\n __sign: 1\n });\n group.add(elP);\n var elN = new LargeBoxPath({\n shape: {\n points: largePoints\n },\n __sign: -1\n });\n group.add(elN);\n setLargeStyle(1, elP, seriesModel, data);\n setLargeStyle(-1, elN, seriesModel, data);\n\n if (incremental) {\n elP.incremental = true;\n elN.incremental = true;\n }\n}\n\nfunction setLargeStyle(sign, el, seriesModel, data) {\n // TODO put in visual?\n var borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0']) || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']); // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n\n var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n}\n\nexport default CandlestickView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport { WhiskerBoxCommonMixin } from '../helper/whiskerBoxCommon';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar CandlestickSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(CandlestickSeriesModel, _super);\n\n function CandlestickSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CandlestickSeriesModel.type;\n _this.defaultValueDimensions = [{\n name: 'open',\n defaultTooltip: true\n }, {\n name: 'close',\n defaultTooltip: true\n }, {\n name: 'lowest',\n defaultTooltip: true\n }, {\n name: 'highest',\n defaultTooltip: true\n }];\n return _this;\n }\n /**\n * Get dimension for shadow in dataZoom\n * @return dimension name\n */\n\n\n CandlestickSeriesModel.prototype.getShadowDim = function () {\n return 'open';\n };\n\n CandlestickSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n var itemLayout = data.getItemLayout(dataIndex);\n return itemLayout && selectors.rect(itemLayout.brushRect);\n };\n\n CandlestickSeriesModel.type = 'series.candlestick';\n CandlestickSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];\n CandlestickSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n layout: null,\n clip: true,\n itemStyle: {\n color: '#eb5454',\n color0: '#47b262',\n borderColor: '#eb5454',\n borderColor0: '#47b262',\n // borderColor: '#d24040',\n // borderColor0: '#398f4f',\n borderWidth: 1\n },\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2\n }\n },\n barMaxWidth: null,\n barMinWidth: null,\n barWidth: null,\n large: true,\n largeThreshold: 600,\n progressive: 3e3,\n progressiveThreshold: 1e4,\n progressiveChunkMode: 'mod',\n animationEasing: 'linear',\n animationDuration: 300\n };\n return CandlestickSeriesModel;\n}(SeriesModel);\n\nmixin(CandlestickSeriesModel, WhiskerBoxCommonMixin, true);\nexport default CandlestickSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function candlestickPreprocessor(option) {\n if (!option || !zrUtil.isArray(option.series)) {\n return;\n } // Translate 'k' to 'candlestick'.\n\n\n zrUtil.each(option.series, function (seriesItem) {\n if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {\n seriesItem.type = 'candlestick';\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { extend } from 'zrender/lib/core/util';\nvar positiveBorderColorQuery = ['itemStyle', 'borderColor'];\nvar negativeBorderColorQuery = ['itemStyle', 'borderColor0'];\nvar positiveColorQuery = ['itemStyle', 'color'];\nvar negativeColorQuery = ['itemStyle', 'color0'];\nvar candlestickVisual = {\n seriesType: 'candlestick',\n plan: createRenderPlanner(),\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n function getColor(sign, model) {\n return model.get(sign > 0 ? positiveColorQuery : negativeColorQuery);\n }\n\n function getBorderColor(sign, model) {\n return model.get(sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery);\n } // Only visible series has each data be visual encoded\n\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var isLargeRender = seriesModel.pipelineContext.large;\n return !isLargeRender && {\n progress: function (params, data) {\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var itemModel = data.getItemModel(dataIndex);\n var sign = data.getItemLayout(dataIndex).sign;\n var style = itemModel.getItemStyle();\n style.fill = getColor(sign, itemModel);\n style.stroke = getBorderColor(sign, itemModel) || style.fill;\n var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n extend(existsStyle, style);\n }\n }\n };\n }\n};\nexport default candlestickVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport { subPixelOptimize } from '../../util/graphic';\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { parsePercent } from '../../util/number';\nimport { retrieve2 } from 'zrender/lib/core/util';\nvar LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\nvar candlestickLayout = {\n seriesType: 'candlestick',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var candleWidth = calculateCandleWidth(seriesModel, data);\n var cDimIdx = 0;\n var vDimIdx = 1;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n var openDim = vDims[0];\n var closeDim = vDims[1];\n var lowestDim = vDims[2];\n var highestDim = vDims[3];\n data.setLayout({\n candleWidth: candleWidth,\n // The value is experimented visually.\n isSimpleBox: candleWidth <= 1.3\n });\n\n if (cDim == null || vDims.length < 4) {\n return;\n }\n\n return {\n progress: seriesModel.pipelineContext.large ? largeProgress : normalProgress\n };\n\n function normalProgress(params, data) {\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var axisDimVal = data.get(cDim, dataIndex);\n var openVal = data.get(openDim, dataIndex);\n var closeVal = data.get(closeDim, dataIndex);\n var lowestVal = data.get(lowestDim, dataIndex);\n var highestVal = data.get(highestDim, dataIndex);\n var ocLow = Math.min(openVal, closeVal);\n var ocHigh = Math.max(openVal, closeVal);\n var ocLowPoint = getPoint(ocLow, axisDimVal);\n var ocHighPoint = getPoint(ocHigh, axisDimVal);\n var lowestPoint = getPoint(lowestVal, axisDimVal);\n var highestPoint = getPoint(highestVal, axisDimVal);\n var ends = [];\n addBodyEnd(ends, ocHighPoint, 0);\n addBodyEnd(ends, ocLowPoint, 1);\n ends.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));\n data.setItemLayout(dataIndex, {\n sign: getSign(data, dataIndex, openVal, closeVal, closeDim),\n initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx],\n ends: ends,\n brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal)\n });\n }\n\n function getPoint(val, axisDimVal) {\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n return isNaN(axisDimVal) || isNaN(val) ? [NaN, NaN] : coordSys.dataToPoint(p);\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] = subPixelOptimize(point1[cDimIdx] + candleWidth / 2, 1, false);\n point2[cDimIdx] = subPixelOptimize(point2[cDimIdx] - candleWidth / 2, 1, true);\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function makeBrushRect(lowestVal, highestVal, axisDimVal) {\n var pmin = getPoint(lowestVal, axisDimVal);\n var pmax = getPoint(highestVal, axisDimVal);\n pmin[cDimIdx] -= candleWidth / 2;\n pmax[cDimIdx] -= candleWidth / 2;\n return {\n x: pmin[0],\n y: pmin[1],\n width: vDimIdx ? candleWidth : pmax[0] - pmin[0],\n height: vDimIdx ? pmax[1] - pmin[1] : candleWidth\n };\n }\n\n function subPixelOptimizePoint(point) {\n point[cDimIdx] = subPixelOptimize(point[cDimIdx], 1);\n return point;\n }\n }\n\n function largeProgress(params, data) {\n // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]\n var points = new LargeArr(params.count * 4);\n var offset = 0;\n var point;\n var tmpIn = [];\n var tmpOut = [];\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var axisDimVal = data.get(cDim, dataIndex);\n var openVal = data.get(openDim, dataIndex);\n var closeVal = data.get(closeDim, dataIndex);\n var lowestVal = data.get(lowestDim, dataIndex);\n var highestVal = data.get(highestDim, dataIndex);\n\n if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) {\n points[offset++] = NaN;\n offset += 3;\n continue;\n }\n\n points[offset++] = getSign(data, dataIndex, openVal, closeVal, closeDim);\n tmpIn[cDimIdx] = axisDimVal;\n tmpIn[vDimIdx] = lowestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n tmpIn[vDimIdx] = highestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[1] : NaN;\n }\n\n data.setLayout('largePoints', points);\n }\n }\n};\n\nfunction getSign(data, dataIndex, openVal, closeVal, closeDim) {\n var sign;\n\n if (openVal > closeVal) {\n sign = -1;\n } else if (openVal < closeVal) {\n sign = 1;\n } else {\n sign = dataIndex > 0 // If close === open, compare with close of last record\n ? data.get(closeDim, dataIndex - 1) <= closeVal ? 1 : -1 : // No record of previous, set to be positive\n 1;\n }\n\n return sign;\n}\n\nfunction calculateCandleWidth(seriesModel, data) {\n var baseAxis = seriesModel.getBaseAxis();\n var extent;\n var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / data.count());\n var barMaxWidth = parsePercent(retrieve2(seriesModel.get('barMaxWidth'), bandWidth), bandWidth);\n var barMinWidth = parsePercent(retrieve2(seriesModel.get('barMinWidth'), 1), bandWidth);\n var barWidth = seriesModel.get('barWidth');\n return barWidth != null ? parsePercent(barWidth, bandWidth) // Put max outer to ensure bar visible in spite of overlap.\n : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);\n}\n\nexport default candlestickLayout;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CandlestickView from './CandlestickView';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport preprocessor from './preprocessor';\nimport candlestickVisual from './candlestickVisual';\nimport candlestickLayout from './candlestickLayout';\nexport function install(registers) {\n registers.registerChartView(CandlestickView);\n registers.registerSeriesModel(CandlestickSeriesModel);\n registers.registerPreprocessor(preprocessor);\n registers.registerVisual(candlestickVisual);\n registers.registerLayout(candlestickLayout);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { createSymbol } from '../../util/symbol';\nimport { Group } from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport { parsePercent } from '../../util/number';\nimport SymbolClz from './Symbol';\nvar EFFECT_RIPPLE_NUMBER = 3;\n\nfunction normalizeSymbolSize(symbolSize) {\n if (!zrUtil.isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n\n return symbolSize;\n}\n\nfunction updateRipplePath(rippleGroup, effectCfg) {\n var color = effectCfg.rippleEffectColor || effectCfg.color;\n rippleGroup.eachChild(function (ripplePath) {\n ripplePath.attr({\n z: effectCfg.z,\n zlevel: effectCfg.zlevel,\n style: {\n stroke: effectCfg.brushType === 'stroke' ? color : null,\n fill: effectCfg.brushType === 'fill' ? color : null\n }\n });\n });\n}\n\nvar EffectSymbol =\n/** @class */\nfunction (_super) {\n __extends(EffectSymbol, _super);\n\n function EffectSymbol(data, idx) {\n var _this = _super.call(this) || this;\n\n var symbol = new SymbolClz(data, idx);\n var rippleGroup = new Group();\n\n _this.add(symbol);\n\n _this.add(rippleGroup);\n\n _this.updateData(data, idx);\n\n return _this;\n }\n\n EffectSymbol.prototype.stopEffectAnimation = function () {\n this.childAt(1).removeAll();\n };\n\n EffectSymbol.prototype.startEffectAnimation = function (effectCfg) {\n var symbolType = effectCfg.symbolType;\n var color = effectCfg.color;\n var rippleGroup = this.childAt(1);\n\n for (var i = 0; i < EFFECT_RIPPLE_NUMBER; i++) {\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4136.\n var ripplePath = createSymbol(symbolType, -1, -1, 2, 2, color);\n ripplePath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 99,\n silent: true,\n scaleX: 0.5,\n scaleY: 0.5\n });\n var delay = -i / EFFECT_RIPPLE_NUMBER * effectCfg.period + effectCfg.effectOffset; // TODO Configurable effectCfg.period\n\n ripplePath.animate('', true).when(effectCfg.period, {\n scaleX: effectCfg.rippleScale / 2,\n scaleY: effectCfg.rippleScale / 2\n }).delay(delay).start();\n ripplePath.animateStyle(true).when(effectCfg.period, {\n opacity: 0\n }).delay(delay).start();\n rippleGroup.add(ripplePath);\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n };\n /**\n * Update effect symbol\n */\n\n\n EffectSymbol.prototype.updateEffectAnimation = function (effectCfg) {\n var oldEffectCfg = this._effectCfg;\n var rippleGroup = this.childAt(1); // Must reinitialize effect if following configuration changed\n\n var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale'];\n\n for (var i = 0; i < DIFFICULT_PROPS.length; i++) {\n var propName = DIFFICULT_PROPS[i];\n\n if (oldEffectCfg[propName] !== effectCfg[propName]) {\n this.stopEffectAnimation();\n this.startEffectAnimation(effectCfg);\n return;\n }\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n };\n /**\n * Highlight symbol\n */\n\n\n EffectSymbol.prototype.highlight = function () {\n enterEmphasis(this);\n };\n /**\n * Downplay symbol\n */\n\n\n EffectSymbol.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n /**\n * Update symbol properties\n */\n\n\n EffectSymbol.prototype.updateData = function (data, idx) {\n var _this = this;\n\n var seriesModel = data.hostModel;\n this.childAt(0).updateData(data, idx);\n var rippleGroup = this.childAt(1);\n var itemModel = data.getItemModel(idx);\n var symbolType = data.getItemVisual(idx, 'symbol');\n var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n var symbolStyle = data.getItemVisual(idx, 'style');\n var color = symbolStyle && symbolStyle.fill;\n rippleGroup.setScale(symbolSize);\n rippleGroup.traverse(function (ripplePath) {\n ripplePath.setStyle('fill', color);\n });\n var symbolOffset = data.getItemVisual(idx, 'symbolOffset');\n\n if (symbolOffset) {\n if (!zrUtil.isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n rippleGroup.x = parsePercent(symbolOffset[0], symbolSize[0]);\n rippleGroup.y = parsePercent(zrUtil.retrieve2(symbolOffset[1], symbolOffset[0]) || 0, symbolSize[1]);\n }\n\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var effectCfg = {};\n effectCfg.showEffectOn = seriesModel.get('showEffectOn');\n effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']);\n effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']);\n effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000;\n effectCfg.effectOffset = idx / data.count();\n effectCfg.z = seriesModel.getShallow('z') || 0;\n effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0;\n effectCfg.symbolType = symbolType;\n effectCfg.color = color;\n effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']);\n this.off('mouseover').off('mouseout').off('emphasis').off('normal');\n\n if (effectCfg.showEffectOn === 'render') {\n this._effectCfg ? this.updateEffectAnimation(effectCfg) : this.startEffectAnimation(effectCfg);\n this._effectCfg = effectCfg;\n } else {\n // Not keep old effect config\n this._effectCfg = null;\n this.stopEffectAnimation();\n\n this.onHoverStateChange = function (toState) {\n if (toState === 'emphasis') {\n if (effectCfg.showEffectOn !== 'render') {\n _this.startEffectAnimation(effectCfg);\n }\n } else if (toState === 'normal') {\n if (effectCfg.showEffectOn !== 'render') {\n _this.stopEffectAnimation();\n }\n }\n };\n }\n\n this._effectCfg = effectCfg;\n enableHoverEmphasis(this);\n };\n\n ;\n\n EffectSymbol.prototype.fadeOut = function (cb) {\n this.off('mouseover').off('mouseout');\n cb && cb();\n };\n\n ;\n return EffectSymbol;\n}(Group);\n\nexport default EffectSymbol;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../helper/SymbolDraw';\nimport EffectSymbol from '../helper/EffectSymbol';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\n\nvar EffectScatterView =\n/** @class */\nfunction (_super) {\n __extends(EffectScatterView, _super);\n\n function EffectScatterView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = EffectScatterView.type;\n return _this;\n }\n\n EffectScatterView.prototype.init = function () {\n this._symbolDraw = new SymbolDraw(EffectSymbol);\n };\n\n EffectScatterView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var effectSymbolDraw = this._symbolDraw;\n effectSymbolDraw.updateData(data, {\n clipShape: this._getClipShape(seriesModel)\n });\n this.group.add(effectSymbolDraw.group);\n };\n\n EffectScatterView.prototype._getClipShape = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n };\n\n EffectScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n this.group.dirty();\n var res = pointsLayout('').reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout();\n };\n\n EffectScatterView.prototype._updateGroupTransform = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.getRoamTransform) {\n this.group.transform = matrix.clone(coordSys.getRoamTransform());\n this.group.decomposeTransform();\n }\n };\n\n EffectScatterView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove(true);\n };\n\n EffectScatterView.type = 'effectScatter';\n return EffectScatterView;\n}(ChartView);\n\nexport default EffectScatterView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\n\nvar EffectScatterSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(EffectScatterSeriesModel, _super);\n\n function EffectScatterSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = EffectScatterSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n EffectScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n EffectScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.point(data.getItemLayout(dataIndex));\n };\n\n EffectScatterSeriesModel.type = 'series.effectScatter';\n EffectScatterSeriesModel.dependencies = ['grid', 'polar'];\n EffectScatterSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n effectType: 'ripple',\n progressive: 0,\n // When to show the effect, option: 'render'|'emphasis'\n showEffectOn: 'render',\n clip: true,\n // Ripple effect config\n rippleEffect: {\n period: 4,\n // Scale of ripple\n scale: 2.5,\n // Brush type can be fill or stroke\n brushType: 'fill'\n },\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Polar coordinate system\n // polarIndex: 0,\n // Geo coordinate system\n // geoIndex: 0,\n // symbol: null, // 图形类型\n symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2\n // symbolRotate: null, // 图形旋转控制\n // itemStyle: {\n // opacity: 1\n // }\n\n };\n return EffectScatterSeriesModel;\n}(SeriesModel);\n\nexport default EffectScatterSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport EffectScatterView from './EffectScatterView';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\nimport layoutPoints from '../../layout/points';\nexport function install(registers) {\n registers.registerChartView(EffectScatterView);\n registers.registerSeriesModel(EffectScatterSeriesModel);\n registers.registerLayout(layoutPoints('effectScatter'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Provide effect for line\n */\n\nimport * as graphic from '../../util/graphic';\nimport Line from './Line';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { createSymbol } from '../../util/symbol';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as curveUtil from 'zrender/lib/core/curve';\n\nvar EffectLine =\n/** @class */\nfunction (_super) {\n __extends(EffectLine, _super);\n\n function EffectLine(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this.add(_this.createLine(lineData, idx, seriesScope));\n\n _this._updateEffectSymbol(lineData, idx);\n\n return _this;\n }\n\n EffectLine.prototype.createLine = function (lineData, idx, seriesScope) {\n return new Line(lineData, idx, seriesScope);\n };\n\n EffectLine.prototype._updateEffectSymbol = function (lineData, idx) {\n var itemModel = lineData.getItemModel(idx);\n var effectModel = itemModel.getModel('effect');\n var size = effectModel.get('symbolSize');\n var symbolType = effectModel.get('symbol');\n\n if (!zrUtil.isArray(size)) {\n size = [size, size];\n }\n\n var lineStyle = lineData.getItemVisual(idx, 'style');\n var color = effectModel.get('color') || lineStyle && lineStyle.stroke;\n var symbol = this.childAt(1);\n\n if (this._symbolType !== symbolType) {\n // Remove previous\n this.remove(symbol);\n symbol = createSymbol(symbolType, -0.5, -0.5, 1, 1, color);\n symbol.z2 = 100;\n symbol.culling = true;\n this.add(symbol);\n } // Symbol may be removed if loop is false\n\n\n if (!symbol) {\n return;\n } // Shadow color is same with color in default\n\n\n symbol.setStyle('shadowColor', color);\n symbol.setStyle(effectModel.getItemStyle(['color']));\n symbol.scaleX = size[0];\n symbol.scaleY = size[1];\n symbol.setColor(color);\n this._symbolType = symbolType;\n this._symbolScale = size;\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n };\n\n EffectLine.prototype._updateEffectAnimation = function (lineData, effectModel, idx) {\n var symbol = this.childAt(1);\n\n if (!symbol) {\n return;\n }\n\n var self = this;\n var points = lineData.getItemLayout(idx);\n var period = effectModel.get('period') * 1000;\n var loop = effectModel.get('loop');\n var constantSpeed = effectModel.get('constantSpeed');\n var delayExpr = zrUtil.retrieve(effectModel.get('delay'), function (idx) {\n return idx / lineData.count() * period / 3;\n }); // Ignore when updating\n\n symbol.ignore = true;\n\n this._updateAnimationPoints(symbol, points);\n\n if (constantSpeed > 0) {\n period = this._getLineLength(symbol) / constantSpeed * 1000;\n }\n\n if (period !== this._period || loop !== this._loop) {\n symbol.stopAnimation();\n\n if (period > 0) {\n var delayNum = void 0;\n\n if (typeof delayExpr === 'function') {\n delayNum = delayExpr(idx);\n } else {\n delayNum = delayExpr;\n }\n\n if (symbol.__t > 0) {\n delayNum = -period * symbol.__t;\n }\n\n symbol.__t = 0;\n var animator = symbol.animate('', loop).when(period, {\n __t: 1\n }).delay(delayNum).during(function () {\n self._updateSymbolPosition(symbol);\n });\n\n if (!loop) {\n animator.done(function () {\n self.remove(symbol);\n });\n }\n\n animator.start();\n }\n }\n\n this._period = period;\n this._loop = loop;\n };\n\n EffectLine.prototype._getLineLength = function (symbol) {\n // Not so accurate\n return vec2.dist(symbol.__p1, symbol.__cp1) + vec2.dist(symbol.__cp1, symbol.__p2);\n };\n\n EffectLine.prototype._updateAnimationPoints = function (symbol, points) {\n symbol.__p1 = points[0];\n symbol.__p2 = points[1];\n symbol.__cp1 = points[2] || [(points[0][0] + points[1][0]) / 2, (points[0][1] + points[1][1]) / 2];\n };\n\n EffectLine.prototype.updateData = function (lineData, idx, seriesScope) {\n this.childAt(0).updateData(lineData, idx, seriesScope);\n\n this._updateEffectSymbol(lineData, idx);\n };\n\n EffectLine.prototype._updateSymbolPosition = function (symbol) {\n var p1 = symbol.__p1;\n var p2 = symbol.__p2;\n var cp1 = symbol.__cp1;\n var t = symbol.__t;\n var pos = [symbol.x, symbol.y];\n var lastPos = pos.slice();\n var quadraticAt = curveUtil.quadraticAt;\n var quadraticDerivativeAt = curveUtil.quadraticDerivativeAt;\n pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);\n pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t); // Tangent\n\n var tx = quadraticDerivativeAt(p1[0], cp1[0], p2[0], t);\n var ty = quadraticDerivativeAt(p1[1], cp1[1], p2[1], t);\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; // enable continuity trail for 'line', 'rect', 'roundRect' symbolType\n\n if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') {\n if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) {\n symbol.scaleY = vec2.dist(lastPos, pos) * 1.05; // make sure the last segment render within endPoint\n\n if (t === 1) {\n pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2;\n pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2;\n }\n } else if (symbol.__lastT === 1) {\n // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.\n symbol.scaleY = 2 * vec2.dist(p1, pos);\n } else {\n symbol.scaleY = this._symbolScale[1];\n }\n }\n\n symbol.__lastT = symbol.__t;\n symbol.ignore = false;\n symbol.x = pos[0];\n symbol.y = pos[1];\n };\n\n EffectLine.prototype.updateLayout = function (lineData, idx) {\n this.childAt(0).updateLayout(lineData, idx);\n var effectModel = lineData.getItemModel(idx).getModel('effect');\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n };\n\n return EffectLine;\n}(graphic.Group);\n\nexport default EffectLine;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\n\nvar Polyline =\n/** @class */\nfunction (_super) {\n __extends(Polyline, _super);\n\n function Polyline(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this._createPolyline(lineData, idx, seriesScope);\n\n return _this;\n }\n\n Polyline.prototype._createPolyline = function (lineData, idx, seriesScope) {\n // let seriesModel = lineData.hostModel;\n var points = lineData.getItemLayout(idx);\n var line = new graphic.Polyline({\n shape: {\n points: points\n }\n });\n this.add(line);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Polyline.prototype.updateData = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childAt(0);\n var target = {\n shape: {\n points: lineData.getItemLayout(idx)\n }\n };\n graphic.updateProps(line, target, seriesModel, idx);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Polyline.prototype._updateCommonStl = function (lineData, idx, seriesScope) {\n var line = this.childAt(0);\n var itemModel = lineData.getItemModel(idx);\n var hoverLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n\n if (!seriesScope || lineData.hasItemOption) {\n hoverLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n }\n\n line.useStyle(lineData.getItemVisual(idx, 'style'));\n line.style.fill = null;\n line.style.strokeNoScale = true;\n var lineEmphasisState = line.ensureState('emphasis');\n lineEmphasisState.style = hoverLineStyle;\n enableHoverEmphasis(this);\n };\n\n ;\n\n Polyline.prototype.updateLayout = function (lineData, idx) {\n var polyline = this.childAt(0);\n polyline.setShape('points', lineData.getItemLayout(idx));\n };\n\n ;\n return Polyline;\n}(graphic.Group);\n\nexport default Polyline;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Polyline from './Polyline';\nimport EffectLine from './EffectLine';\nimport * as vec2 from 'zrender/lib/core/vector';\n\nvar EffectPolyline =\n/** @class */\nfunction (_super) {\n __extends(EffectPolyline, _super);\n\n function EffectPolyline() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._lastFrame = 0;\n _this._lastFramePercent = 0;\n return _this;\n } // Override\n\n\n EffectPolyline.prototype.createLine = function (lineData, idx, seriesScope) {\n return new Polyline(lineData, idx, seriesScope);\n };\n\n ; // Override\n\n EffectPolyline.prototype._updateAnimationPoints = function (symbol, points) {\n this._points = points;\n var accLenArr = [0];\n var len = 0;\n\n for (var i = 1; i < points.length; i++) {\n var p1 = points[i - 1];\n var p2 = points[i];\n len += vec2.dist(p1, p2);\n accLenArr.push(len);\n }\n\n if (len === 0) {\n this._length = 0;\n return;\n }\n\n for (var i = 0; i < accLenArr.length; i++) {\n accLenArr[i] /= len;\n }\n\n this._offsets = accLenArr;\n this._length = len;\n };\n\n ; // Override\n\n EffectPolyline.prototype._getLineLength = function () {\n return this._length;\n };\n\n ; // Override\n\n EffectPolyline.prototype._updateSymbolPosition = function (symbol) {\n var t = symbol.__t;\n var points = this._points;\n var offsets = this._offsets;\n var len = points.length;\n\n if (!offsets) {\n // Has length 0\n return;\n }\n\n var lastFrame = this._lastFrame;\n var frame;\n\n if (t < this._lastFramePercent) {\n // Start from the next frame\n // PENDING start from lastFrame ?\n var start = Math.min(lastFrame + 1, len - 1);\n\n for (frame = start; frame >= 0; frame--) {\n if (offsets[frame] <= t) {\n break;\n }\n } // PENDING really need to do this ?\n\n\n frame = Math.min(frame, len - 2);\n } else {\n for (frame = lastFrame; frame < len; frame++) {\n if (offsets[frame] > t) {\n break;\n }\n }\n\n frame = Math.min(frame - 1, len - 2);\n }\n\n var p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]);\n var p0 = points[frame];\n var p1 = points[frame + 1];\n symbol.x = p0[0] * (1 - p) + p * p1[0];\n symbol.y = p0[1] * (1 - p) + p * p1[1];\n var tx = p1[0] - p0[0];\n var ty = p1[1] - p0[1];\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n this._lastFrame = frame;\n this._lastFramePercent = t;\n symbol.ignore = false;\n };\n\n ;\n return EffectPolyline;\n}(EffectLine);\n\nexport default EffectPolyline;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport * as lineContain from 'zrender/lib/contain/line';\nimport * as quadraticContain from 'zrender/lib/contain/quadratic';\nimport { getECData } from '../../util/innerStore';\n\nvar LargeLinesPathShape =\n/** @class */\nfunction () {\n function LargeLinesPathShape() {\n this.polyline = false;\n this.curveness = 0;\n this.segs = [];\n }\n\n return LargeLinesPathShape;\n}();\n\nvar LargeLinesPath =\n/** @class */\nfunction (_super) {\n __extends(LargeLinesPath, _super);\n\n function LargeLinesPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n LargeLinesPath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n LargeLinesPath.prototype.getDefaultShape = function () {\n return new LargeLinesPathShape();\n };\n\n LargeLinesPath.prototype.buildPath = function (ctx, shape) {\n var segs = shape.segs;\n var curveness = shape.curveness;\n\n if (shape.polyline) {\n for (var i = 0; i < segs.length;) {\n var count = segs[i++];\n\n if (count > 0) {\n ctx.moveTo(segs[i++], segs[i++]);\n\n for (var k = 1; k < count; k++) {\n ctx.lineTo(segs[i++], segs[i++]);\n }\n }\n }\n } else {\n for (var i = 0; i < segs.length;) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n var x1 = segs[i++];\n var y1 = segs[i++];\n ctx.moveTo(x0, y0);\n\n if (curveness > 0) {\n var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n ctx.quadraticCurveTo(x2, y2, x1, y1);\n } else {\n ctx.lineTo(x1, y1);\n }\n }\n }\n };\n\n LargeLinesPath.prototype.findDataIndex = function (x, y) {\n var shape = this.shape;\n var segs = shape.segs;\n var curveness = shape.curveness;\n var lineWidth = this.style.lineWidth;\n\n if (shape.polyline) {\n var dataIndex = 0;\n\n for (var i = 0; i < segs.length;) {\n var count = segs[i++];\n\n if (count > 0) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n\n for (var k = 1; k < count; k++) {\n var x1 = segs[i++];\n var y1 = segs[i++];\n\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n }\n\n dataIndex++;\n }\n } else {\n var dataIndex = 0;\n\n for (var i = 0; i < segs.length;) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n var x1 = segs[i++];\n var y1 = segs[i++];\n\n if (curveness > 0) {\n var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n\n if (quadraticContain.containStroke(x0, y0, x2, y2, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n } else {\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n\n dataIndex++;\n }\n }\n\n return -1;\n };\n\n return LargeLinesPath;\n}(graphic.Path);\n\nvar LargeLineDraw =\n/** @class */\nfunction () {\n function LargeLineDraw() {\n this.group = new graphic.Group();\n }\n\n LargeLineDraw.prototype.isPersistent = function () {\n return !this._incremental;\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n LargeLineDraw.prototype.updateData = function (data) {\n this.group.removeAll();\n var lineEl = new LargeLinesPath({\n rectHover: true,\n cursor: 'default'\n });\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data); // Add back\n\n\n this.group.add(lineEl);\n this._incremental = null;\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.incrementalPrepareUpdate = function (data) {\n this.group.removeAll();\n\n this._clearIncremental();\n\n if (data.count() > 5e5) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n\n this.group.add(this._incremental);\n } else {\n this._incremental = null;\n }\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.incrementalUpdate = function (taskParams, data) {\n var lineEl = new LargeLinesPath();\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data, !!this._incremental);\n\n if (!this._incremental) {\n lineEl.rectHover = true;\n lineEl.cursor = 'default';\n lineEl.__startIndex = taskParams.start;\n this.group.add(lineEl);\n } else {\n this._incremental.addDisplayable(lineEl, true);\n }\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.remove = function () {\n this._clearIncremental();\n\n this._incremental = null;\n this.group.removeAll();\n };\n\n ;\n\n LargeLineDraw.prototype._setCommon = function (lineEl, data, isIncremental) {\n var hostModel = data.hostModel;\n lineEl.setShape({\n polyline: hostModel.get('polyline'),\n curveness: hostModel.get(['lineStyle', 'curveness'])\n });\n lineEl.useStyle(hostModel.getModel('lineStyle').getLineStyle());\n lineEl.style.strokeNoScale = true;\n var style = data.getVisual('style');\n\n if (style && style.stroke) {\n lineEl.setStyle('stroke', style.stroke);\n }\n\n lineEl.setStyle('fill', null);\n\n if (!isIncremental) {\n var ecData_1 = getECData(lineEl); // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n\n ecData_1.seriesIndex = hostModel.seriesIndex;\n lineEl.on('mousemove', function (e) {\n ecData_1.dataIndex = null;\n var dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY);\n\n if (dataIndex > 0) {\n // Provide dataIndex for tooltip\n ecData_1.dataIndex = dataIndex + lineEl.__startIndex;\n }\n });\n }\n };\n\n ;\n\n LargeLineDraw.prototype._clearIncremental = function () {\n var incremental = this._incremental;\n\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n ;\n return LargeLineDraw;\n}();\n\nexport default LargeLineDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport createRenderPlanner from '../helper/createRenderPlanner';\nvar linesLayout = {\n seriesType: 'lines',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var isPolyline = seriesModel.get('polyline');\n var isLarge = seriesModel.pipelineContext.large;\n return {\n progress: function (params, lineData) {\n var lineCoords = [];\n\n if (isLarge) {\n var points = void 0;\n var segCount = params.end - params.start;\n\n if (isPolyline) {\n var totalCoordsCount = 0;\n\n for (var i = params.start; i < params.end; i++) {\n totalCoordsCount += seriesModel.getLineCoordsCount(i);\n }\n\n points = new Float32Array(segCount + totalCoordsCount * 2);\n } else {\n points = new Float32Array(segCount * 4);\n }\n\n var offset = 0;\n var pt = [];\n\n for (var i = params.start; i < params.end; i++) {\n var len = seriesModel.getLineCoords(i, lineCoords);\n\n if (isPolyline) {\n points[offset++] = len;\n }\n\n for (var k = 0; k < len; k++) {\n pt = coordSys.dataToPoint(lineCoords[k], false, pt);\n points[offset++] = pt[0];\n points[offset++] = pt[1];\n }\n }\n\n lineData.setLayout('linesPoints', points);\n } else {\n for (var i = params.start; i < params.end; i++) {\n var itemModel = lineData.getItemModel(i);\n var len = seriesModel.getLineCoords(i, lineCoords);\n var pts = [];\n\n if (isPolyline) {\n for (var j = 0; j < len; j++) {\n pts.push(coordSys.dataToPoint(lineCoords[j]));\n }\n } else {\n pts[0] = coordSys.dataToPoint(lineCoords[0]);\n pts[1] = coordSys.dataToPoint(lineCoords[1]);\n var curveness = itemModel.get(['lineStyle', 'curveness']);\n\n if (+curveness) {\n pts[2] = [(pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness, (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness];\n }\n }\n\n lineData.setItemLayout(i, pts);\n }\n }\n }\n };\n }\n};\nexport default linesLayout;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport LineDraw from '../helper/LineDraw';\nimport EffectLine from '../helper/EffectLine';\nimport Line from '../helper/Line';\nimport Polyline from '../helper/Polyline';\nimport EffectPolyline from '../helper/EffectPolyline';\nimport LargeLineDraw from '../helper/LargeLineDraw';\nimport linesLayout from './linesLayout';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport ChartView from '../../view/Chart';\n\nvar LinesView =\n/** @class */\nfunction (_super) {\n __extends(LinesView, _super);\n\n function LinesView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LinesView.type;\n return _this;\n }\n\n LinesView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var lineDraw = this._updateLineDraw(data, seriesModel);\n\n var zlevel = seriesModel.get('zlevel');\n var trailLength = seriesModel.get(['effect', 'trailLength']);\n var zr = api.getZr(); // Avoid the drag cause ghost shadow\n // FIXME Better way ?\n // SVG doesn't support\n\n var isSvg = zr.painter.getType() === 'svg';\n\n if (!isSvg) {\n zr.painter.getLayer(zlevel).clear(true);\n } // Config layer with motion blur\n\n\n if (this._lastZlevel != null && !isSvg) {\n zr.configLayer(this._lastZlevel, {\n motionBlur: false\n });\n }\n\n if (this._showEffect(seriesModel) && trailLength) {\n if (process.env.NODE_ENV !== 'production') {\n var notInIndividual_1 = false;\n ecModel.eachSeries(function (otherSeriesModel) {\n if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) {\n notInIndividual_1 = true;\n }\n });\n notInIndividual_1 && console.warn('Lines with trail effect should have an individual zlevel');\n }\n\n if (!isSvg) {\n zr.configLayer(zlevel, {\n motionBlur: true,\n lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)\n });\n }\n }\n\n lineDraw.updateData(data);\n var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n\n this._lastZlevel = zlevel;\n this._finished = true;\n };\n\n LinesView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var lineDraw = this._updateLineDraw(data, seriesModel);\n\n lineDraw.incrementalPrepareUpdate(data);\n\n this._clearLayer(api);\n\n this._finished = false;\n };\n\n LinesView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData());\n\n this._finished = taskParams.end === seriesModel.getData().count();\n };\n\n LinesView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var pipelineContext = seriesModel.pipelineContext;\n\n if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) {\n // TODO Don't have to do update in large mode. Only do it when there are millions of data.\n return {\n update: true\n };\n } else {\n // TODO Use same logic with ScatterView.\n // Manually update layout\n var res = linesLayout.reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n } // Not in large mode\n\n\n this._lineDraw.updateLayout();\n\n this._clearLayer(api);\n }\n };\n\n LinesView.prototype._updateLineDraw = function (data, seriesModel) {\n var lineDraw = this._lineDraw;\n\n var hasEffect = this._showEffect(seriesModel);\n\n var isPolyline = !!seriesModel.get('polyline');\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeDraw = pipelineContext.large;\n\n if (process.env.NODE_ENV !== 'production') {\n if (hasEffect && isLargeDraw) {\n console.warn('Large lines not support effect');\n }\n }\n\n if (!lineDraw || hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLargeDraw !== this._isLargeDraw) {\n if (lineDraw) {\n lineDraw.remove();\n }\n\n lineDraw = this._lineDraw = isLargeDraw ? new LargeLineDraw() : new LineDraw(isPolyline ? hasEffect ? EffectPolyline : Polyline : hasEffect ? EffectLine : Line);\n this._hasEffet = hasEffect;\n this._isPolyline = isPolyline;\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(lineDraw.group);\n return lineDraw;\n };\n\n LinesView.prototype._showEffect = function (seriesModel) {\n return !!seriesModel.get(['effect', 'show']);\n };\n\n LinesView.prototype._clearLayer = function (api) {\n // Not use motion when dragging or zooming\n var zr = api.getZr();\n var isSvg = zr.painter.getType() === 'svg';\n\n if (!isSvg && this._lastZlevel != null) {\n zr.painter.getLayer(this._lastZlevel).clear(true);\n }\n };\n\n LinesView.prototype.remove = function (ecModel, api) {\n this._lineDraw && this._lineDraw.remove();\n this._lineDraw = null; // Clear motion when lineDraw is removed\n\n this._clearLayer(api);\n };\n\n LinesView.type = 'lines';\n return LinesView;\n}(ChartView);\n\nexport default LinesView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Uint32Array, Float64Array, Float32Array */\n\nimport SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport { concatArray, mergeAll, map } from 'zrender/lib/core/util';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nvar Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array;\nvar Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array;\n\nfunction compatEc2(seriesOpt) {\n var data = seriesOpt.data;\n\n if (data && data[0] && data[0][0] && data[0][0].coord) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Lines data configuration has been changed to' + ' { coords:[[1,2],[2,3]] }');\n }\n\n seriesOpt.data = map(data, function (itemOpt) {\n var coords = [itemOpt[0].coord, itemOpt[1].coord];\n var target = {\n coords: coords\n };\n\n if (itemOpt[0].name) {\n target.fromName = itemOpt[0].name;\n }\n\n if (itemOpt[1].name) {\n target.toName = itemOpt[1].name;\n }\n\n return mergeAll([target, itemOpt[0], itemOpt[1]]);\n });\n }\n}\n\nvar LinesSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(LinesSeriesModel, _super);\n\n function LinesSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LinesSeriesModel.type;\n _this.visualStyleAccessPath = 'lineStyle';\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n LinesSeriesModel.prototype.init = function (option) {\n // The input data may be null/undefined.\n option.data = option.data || []; // Not using preprocessor because mergeOption may not have series.type\n\n compatEc2(option);\n\n var result = this._processFlatCoordsArray(option.data);\n\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n\n _super.prototype.init.apply(this, arguments);\n };\n\n LinesSeriesModel.prototype.mergeOption = function (option) {\n compatEc2(option);\n\n if (option.data) {\n // Only update when have option data to merge.\n var result = this._processFlatCoordsArray(option.data);\n\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n }\n\n _super.prototype.mergeOption.apply(this, arguments);\n };\n\n LinesSeriesModel.prototype.appendData = function (params) {\n var result = this._processFlatCoordsArray(params.data);\n\n if (result.flatCoords) {\n if (!this._flatCoords) {\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n } else {\n this._flatCoords = concatArray(this._flatCoords, result.flatCoords);\n this._flatCoordsOffset = concatArray(this._flatCoordsOffset, result.flatCoordsOffset);\n }\n\n params.data = new Float32Array(result.count);\n }\n\n this.getRawData().appendData(params.data);\n };\n\n LinesSeriesModel.prototype._getCoordsFromItemModel = function (idx) {\n var itemModel = this.getData().getItemModel(idx);\n var coords = itemModel.option instanceof Array ? itemModel.option : itemModel.getShallow('coords');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) {\n throw new Error('Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.');\n }\n }\n\n return coords;\n };\n\n LinesSeriesModel.prototype.getLineCoordsCount = function (idx) {\n if (this._flatCoordsOffset) {\n return this._flatCoordsOffset[idx * 2 + 1];\n } else {\n return this._getCoordsFromItemModel(idx).length;\n }\n };\n\n LinesSeriesModel.prototype.getLineCoords = function (idx, out) {\n if (this._flatCoordsOffset) {\n var offset = this._flatCoordsOffset[idx * 2];\n var len = this._flatCoordsOffset[idx * 2 + 1];\n\n for (var i = 0; i < len; i++) {\n out[i] = out[i] || [];\n out[i][0] = this._flatCoords[offset + i * 2];\n out[i][1] = this._flatCoords[offset + i * 2 + 1];\n }\n\n return len;\n } else {\n var coords = this._getCoordsFromItemModel(idx);\n\n for (var i = 0; i < coords.length; i++) {\n out[i] = out[i] || [];\n out[i][0] = coords[i][0];\n out[i][1] = coords[i][1];\n }\n\n return coords.length;\n }\n };\n\n LinesSeriesModel.prototype._processFlatCoordsArray = function (data) {\n var startOffset = 0;\n\n if (this._flatCoords) {\n startOffset = this._flatCoords.length;\n } // Stored as a typed array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n\n\n if (typeof data[0] === 'number') {\n var len = data.length; // Store offset and len of each segment\n\n var coordsOffsetAndLenStorage = new Uint32Arr(len);\n var coordsStorage = new Float64Arr(len);\n var coordsCursor = 0;\n var offsetCursor = 0;\n var dataCount = 0;\n\n for (var i = 0; i < len;) {\n dataCount++;\n var count = data[i++]; // Offset\n\n coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset; // Len\n\n coordsOffsetAndLenStorage[offsetCursor++] = count;\n\n for (var k = 0; k < count; k++) {\n var x = data[i++];\n var y = data[i++];\n coordsStorage[coordsCursor++] = x;\n coordsStorage[coordsCursor++] = y;\n\n if (i > len) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('Invalid data format.');\n }\n }\n }\n }\n\n return {\n flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor),\n flatCoords: coordsStorage,\n count: dataCount\n };\n }\n\n return {\n flatCoordsOffset: null,\n flatCoords: null,\n count: data.length\n };\n };\n\n LinesSeriesModel.prototype.getInitialData = function (option, ecModel) {\n if (process.env.NODE_ENV !== 'production') {\n var CoordSys = CoordinateSystem.get(option.coordinateSystem);\n\n if (!CoordSys) {\n throw new Error('Unkown coordinate system ' + option.coordinateSystem);\n }\n }\n\n var lineData = new List(['value'], this);\n lineData.hasItemOption = false;\n lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {\n // dataItem is simply coords\n if (dataItem instanceof Array) {\n return NaN;\n } else {\n lineData.hasItemOption = true;\n var value = dataItem.value;\n\n if (value != null) {\n return value instanceof Array ? value[dimIndex] : value;\n }\n }\n });\n return lineData;\n };\n\n LinesSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var itemModel = data.getItemModel(dataIndex);\n var name = itemModel.get('name');\n\n if (name) {\n return name;\n }\n\n var fromName = itemModel.get('fromName');\n var toName = itemModel.get('toName');\n var nameArr = [];\n fromName != null && nameArr.push(fromName);\n toName != null && nameArr.push(toName);\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > ')\n });\n };\n\n LinesSeriesModel.prototype.preventIncremental = function () {\n return !!this.get(['effect', 'show']);\n };\n\n LinesSeriesModel.prototype.getProgressive = function () {\n var progressive = this.option.progressive;\n\n if (progressive == null) {\n return this.option.large ? 1e4 : this.get('progressive');\n }\n\n return progressive;\n };\n\n LinesSeriesModel.prototype.getProgressiveThreshold = function () {\n var progressiveThreshold = this.option.progressiveThreshold;\n\n if (progressiveThreshold == null) {\n return this.option.large ? 2e4 : this.get('progressiveThreshold');\n }\n\n return progressiveThreshold;\n };\n\n LinesSeriesModel.type = 'series.lines';\n LinesSeriesModel.dependencies = ['grid', 'polar', 'geo', 'calendar'];\n LinesSeriesModel.defaultOption = {\n coordinateSystem: 'geo',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // Cartesian coordinate system\n xAxisIndex: 0,\n yAxisIndex: 0,\n symbol: ['none', 'none'],\n symbolSize: [10, 10],\n // Geo coordinate system\n geoIndex: 0,\n effect: {\n show: false,\n period: 4,\n constantSpeed: 0,\n symbol: 'circle',\n symbolSize: 3,\n loop: true,\n trailLength: 0.2\n },\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n polyline: false,\n clip: true,\n label: {\n show: false,\n position: 'end' // distance: 5,\n // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n\n },\n lineStyle: {\n opacity: 0.5\n }\n };\n return LinesSeriesModel;\n}(SeriesModel);\n\nexport default LinesSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nfunction normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}\n\nvar linesVisual = {\n seriesType: 'lines',\n reset: function (seriesModel) {\n var symbolType = normalize(seriesModel.get('symbol'));\n var symbolSize = normalize(seriesModel.get('symbolSize'));\n var data = seriesModel.getData();\n data.setVisual('fromSymbol', symbolType && symbolType[0]);\n data.setVisual('toSymbol', symbolType && symbolType[1]);\n data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n function dataEach(data, idx) {\n var itemModel = data.getItemModel(idx);\n var symbolType = normalize(itemModel.getShallow('symbol', true));\n var symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);\n symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);\n symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);\n symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\nexport default linesVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LinesView from './LinesView';\nimport LinesSeriesModel from './LinesSeries';\nimport linesLayout from './linesLayout';\nimport linesVisual from './linesVisual';\nexport function install(registers) {\n registers.registerChartView(LinesView);\n registers.registerSeriesModel(LinesSeriesModel);\n registers.registerLayout(linesLayout);\n registers.registerVisual(linesVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8ClampedArray */\nimport * as zrUtil from 'zrender/lib/core/util';\nvar GRADIENT_LEVELS = 256;\n\nvar HeatmapLayer =\n/** @class */\nfunction () {\n function HeatmapLayer() {\n this.blurSize = 30;\n this.pointSize = 20;\n this.maxOpacity = 1;\n this.minOpacity = 0;\n this._gradientPixels = {\n inRange: null,\n outOfRange: null\n };\n var canvas = zrUtil.createCanvas();\n this.canvas = canvas;\n }\n /**\n * Renders Heatmap and returns the rendered canvas\n * @param data array of data, each has x, y, value\n * @param width canvas width\n * @param height canvas height\n */\n\n\n HeatmapLayer.prototype.update = function (data, width, height, normalize, colorFunc, isInRange) {\n var brush = this._getBrush();\n\n var gradientInRange = this._getGradient(colorFunc, 'inRange');\n\n var gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange');\n\n var r = this.pointSize + this.blurSize;\n var canvas = this.canvas;\n var ctx = canvas.getContext('2d');\n var len = data.length;\n canvas.width = width;\n canvas.height = height;\n\n for (var i = 0; i < len; ++i) {\n var p = data[i];\n var x = p[0];\n var y = p[1];\n var value = p[2]; // calculate alpha using value\n\n var alpha = normalize(value); // draw with the circle brush with alpha\n\n ctx.globalAlpha = alpha;\n ctx.drawImage(brush, x - r, y - r);\n }\n\n if (!canvas.width || !canvas.height) {\n // Avoid \"Uncaught DOMException: Failed to execute 'getImageData' on\n // 'CanvasRenderingContext2D': The source height is 0.\"\n return canvas;\n } // colorize the canvas using alpha value and set with gradient\n\n\n var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n var pixels = imageData.data;\n var offset = 0;\n var pixelLen = pixels.length;\n var minOpacity = this.minOpacity;\n var maxOpacity = this.maxOpacity;\n var diffOpacity = maxOpacity - minOpacity;\n\n while (offset < pixelLen) {\n var alpha = pixels[offset + 3] / 256;\n var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4; // Simple optimize to ignore the empty data\n\n if (alpha > 0) {\n var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange; // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]\n\n alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);\n pixels[offset++] = gradient[gradientOffset];\n pixels[offset++] = gradient[gradientOffset + 1];\n pixels[offset++] = gradient[gradientOffset + 2];\n pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;\n } else {\n offset += 4;\n }\n }\n\n ctx.putImageData(imageData, 0, 0);\n return canvas;\n };\n /**\n * get canvas of a black circle brush used for canvas to draw later\n */\n\n\n HeatmapLayer.prototype._getBrush = function () {\n var brushCanvas = this._brushCanvas || (this._brushCanvas = zrUtil.createCanvas()); // set brush size\n\n var r = this.pointSize + this.blurSize;\n var d = r * 2;\n brushCanvas.width = d;\n brushCanvas.height = d;\n var ctx = brushCanvas.getContext('2d');\n ctx.clearRect(0, 0, d, d); // in order to render shadow without the distinct circle,\n // draw the distinct circle in an invisible place,\n // and use shadowOffset to draw shadow in the center of the canvas\n\n ctx.shadowOffsetX = d;\n ctx.shadowBlur = this.blurSize; // draw the shadow in black, and use alpha and shadow blur to generate\n // color in color map\n\n ctx.shadowColor = '#000'; // draw circle in the left to the canvas\n\n ctx.beginPath();\n ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n return brushCanvas;\n };\n /**\n * get gradient color map\n * @private\n */\n\n\n HeatmapLayer.prototype._getGradient = function (colorFunc, state) {\n var gradientPixels = this._gradientPixels;\n var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));\n var color = [0, 0, 0, 0];\n var off = 0;\n\n for (var i = 0; i < 256; i++) {\n colorFunc[state](i / 255, true, color);\n pixelsSingleState[off++] = color[0];\n pixelsSingleState[off++] = color[1];\n pixelsSingleState[off++] = color[2];\n pixelsSingleState[off++] = color[3];\n }\n\n return pixelsSingleState;\n };\n\n return HeatmapLayer;\n}();\n\nexport default HeatmapLayer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport HeatmapLayer from './HeatmapLayer';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\nfunction getIsInPiecewiseRange(dataExtent, pieceList, selected) {\n var dataSpan = dataExtent[1] - dataExtent[0];\n pieceList = zrUtil.map(pieceList, function (piece) {\n return {\n interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan]\n };\n });\n var len = pieceList.length;\n var lastIndex = 0;\n return function (val) {\n var i; // Try to find in the location of the last found\n\n for (i = lastIndex; i < len; i++) {\n var interval = pieceList[i].interval;\n\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n\n if (i === len) {\n // Not found, back interation\n for (i = lastIndex - 1; i >= 0; i--) {\n var interval = pieceList[i].interval;\n\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n }\n\n return i >= 0 && i < len && selected[i];\n };\n}\n\nfunction getIsInContinuousRange(dataExtent, range) {\n var dataSpan = dataExtent[1] - dataExtent[0];\n range = [(range[0] - dataExtent[0]) / dataSpan, (range[1] - dataExtent[0]) / dataSpan];\n return function (val) {\n return val >= range[0] && val <= range[1];\n };\n}\n\nfunction isGeoCoordSys(coordSys) {\n var dimensions = coordSys.dimensions; // Not use coorSys.type === 'geo' because coordSys maybe extended\n\n return dimensions[0] === 'lng' && dimensions[1] === 'lat';\n}\n\nvar HeatmapView =\n/** @class */\nfunction (_super) {\n __extends(HeatmapView, _super);\n\n function HeatmapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = HeatmapView.type;\n return _this;\n }\n\n HeatmapView.prototype.render = function (seriesModel, ecModel, api) {\n var visualMapOfThisSeries;\n ecModel.eachComponent('visualMap', function (visualMap) {\n visualMap.eachTargetSeries(function (targetSeries) {\n if (targetSeries === seriesModel) {\n visualMapOfThisSeries = visualMap;\n }\n });\n });\n\n if (process.env.NODE_ENV !== 'production') {\n if (!visualMapOfThisSeries) {\n throw new Error('Heatmap must use with visualMap');\n }\n }\n\n this.group.removeAll();\n this._incrementalDisplayable = null;\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {\n this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count());\n } else if (isGeoCoordSys(coordSys)) {\n this._renderOnGeo(coordSys, seriesModel, visualMapOfThisSeries, api);\n }\n };\n\n HeatmapView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this.group.removeAll();\n };\n\n HeatmapView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys) {\n // geo does not support incremental rendering?\n if (isGeoCoordSys(coordSys)) {\n this.render(seriesModel, ecModel, api);\n } else {\n this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);\n }\n }\n };\n\n HeatmapView.prototype._renderOnCartesianAndCalendar = function (seriesModel, api, start, end, incremental) {\n var coordSys = seriesModel.coordinateSystem;\n var width;\n var height;\n var xAxisExtent;\n var yAxisExtent;\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(xAxis.type === 'category' && yAxis.type === 'category')) {\n throw new Error('Heatmap on cartesian must have two category axes');\n }\n\n if (!(xAxis.onBand && yAxis.onBand)) {\n throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');\n }\n }\n\n width = xAxis.getBandWidth();\n height = yAxis.getBandWidth();\n xAxisExtent = xAxis.scale.getExtent();\n yAxisExtent = yAxis.scale.getExtent();\n }\n\n var group = this.group;\n var data = seriesModel.getData();\n var emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle();\n var blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle();\n var selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle();\n var labelStatesModels = getLabelStatesModels(seriesModel);\n var focus = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n var dataDims = isCoordinateSystemType(coordSys, 'cartesian2d') ? [data.mapDimension('x'), data.mapDimension('y'), data.mapDimension('value')] : [data.mapDimension('time'), data.mapDimension('value')];\n\n for (var idx = start; idx < end; idx++) {\n var rect = void 0;\n var style = data.getItemVisual(idx, 'style');\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var dataDimX = data.get(dataDims[0], idx);\n var dataDimY = data.get(dataDims[1], idx); // Ignore empty data and out of extent data\n\n if (isNaN(data.get(dataDims[2], idx)) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) {\n continue;\n }\n\n var point = coordSys.dataToPoint([dataDimX, dataDimY]);\n rect = new graphic.Rect({\n shape: {\n x: Math.floor(Math.round(point[0]) - width / 2),\n y: Math.floor(Math.round(point[1]) - height / 2),\n width: Math.ceil(width),\n height: Math.ceil(height)\n },\n style: style\n });\n } else {\n // Ignore empty data\n if (isNaN(data.get(dataDims[1], idx))) {\n continue;\n }\n\n rect = new graphic.Rect({\n z2: 1,\n shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,\n style: style\n });\n }\n\n var itemModel = data.getItemModel(idx); // Optimization for large datset\n\n if (data.hasItemOption) {\n var emphasisModel = itemModel.getModel('emphasis');\n emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n var rawValue = seriesModel.getRawValue(idx);\n var defaultText = '-';\n\n if (rawValue && rawValue[2] != null) {\n defaultText = rawValue[2] + '';\n }\n\n setLabelStyle(rect, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: defaultText\n });\n rect.ensureState('emphasis').style = emphasisStyle;\n rect.ensureState('blur').style = blurStyle;\n rect.ensureState('select').style = selectStyle;\n enableHoverEmphasis(rect, focus, blurScope);\n rect.incremental = incremental; // PENDING\n\n if (incremental) {\n // Rect must use hover layer if it's incremental.\n rect.states.emphasis.hoverLayer = true;\n }\n\n group.add(rect);\n data.setItemGraphicEl(idx, rect);\n }\n };\n\n HeatmapView.prototype._renderOnGeo = function (geo, seriesModel, visualMapModel, api) {\n var inRangeVisuals = visualMapModel.targetVisuals.inRange;\n var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange; // if (!visualMapping) {\n // throw new Error('Data range must have color visuals');\n // }\n\n var data = seriesModel.getData();\n var hmLayer = this._hmLayer || this._hmLayer || new HeatmapLayer();\n hmLayer.blurSize = seriesModel.get('blurSize');\n hmLayer.pointSize = seriesModel.get('pointSize');\n hmLayer.minOpacity = seriesModel.get('minOpacity');\n hmLayer.maxOpacity = seriesModel.get('maxOpacity');\n var rect = geo.getViewRect().clone();\n var roamTransform = geo.getRoamTransform();\n rect.applyTransform(roamTransform); // Clamp on viewport\n\n var x = Math.max(rect.x, 0);\n var y = Math.max(rect.y, 0);\n var x2 = Math.min(rect.width + rect.x, api.getWidth());\n var y2 = Math.min(rect.height + rect.y, api.getHeight());\n var width = x2 - x;\n var height = y2 - y;\n var dims = [data.mapDimension('lng'), data.mapDimension('lat'), data.mapDimension('value')];\n var points = data.mapArray(dims, function (lng, lat, value) {\n var pt = geo.dataToPoint([lng, lat]);\n pt[0] -= x;\n pt[1] -= y;\n pt.push(value);\n return pt;\n });\n var dataExtent = visualMapModel.getExtent();\n var isInRange = visualMapModel.type === 'visualMap.continuous' ? getIsInContinuousRange(dataExtent, visualMapModel.option.range) : getIsInPiecewiseRange(dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected);\n hmLayer.update(points, width, height, inRangeVisuals.color.getNormalizer(), {\n inRange: inRangeVisuals.color.getColorMapper(),\n outOfRange: outOfRangeVisuals.color.getColorMapper()\n }, isInRange);\n var img = new graphic.Image({\n style: {\n width: width,\n height: height,\n x: x,\n y: y,\n image: hmLayer.canvas\n },\n silent: true\n });\n this.group.add(img);\n };\n\n HeatmapView.type = 'heatmap';\n return HeatmapView;\n}(ChartView);\n\nexport default HeatmapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\nimport CoordinateSystem from '../../core/CoordinateSystem';\n\nvar HeatmapSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(HeatmapSeriesModel, _super);\n\n function HeatmapSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = HeatmapSeriesModel.type;\n return _this;\n }\n\n HeatmapSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n generateCoord: 'value'\n });\n };\n\n HeatmapSeriesModel.prototype.preventIncremental = function () {\n var coordSysCreator = CoordinateSystem.get(this.get('coordinateSystem'));\n\n if (coordSysCreator && coordSysCreator.dimensions) {\n return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat';\n }\n };\n\n HeatmapSeriesModel.type = 'series.heatmap';\n HeatmapSeriesModel.dependencies = ['grid', 'geo', 'calendar'];\n HeatmapSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Geo coordinate system\n geoIndex: 0,\n blurSize: 30,\n pointSize: 20,\n maxOpacity: 1,\n minOpacity: 0,\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return HeatmapSeriesModel;\n}(SeriesModel);\n\nexport default HeatmapSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport HeatmapView from './HeatmapView';\nimport HeatmapSeriesModel from './HeatmapSeries';\nexport function install(registers) {\n registers.registerChartView(HeatmapView);\n registers.registerSeriesModel(HeatmapSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport { parsePercent, isNumeric } from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { getECData } from '../../util/innerStore';\nvar BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth']; // index: +isHorizontal\n\nvar LAYOUT_ATTRS = [{\n xy: 'x',\n wh: 'width',\n index: 0,\n posDesc: ['left', 'right']\n}, {\n xy: 'y',\n wh: 'height',\n index: 1,\n posDesc: ['top', 'bottom']\n}];\nvar pathForLineWidth = new graphic.Circle();\n\nvar PictorialBarView =\n/** @class */\nfunction (_super) {\n __extends(PictorialBarView, _super);\n\n function PictorialBarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PictorialBarView.type;\n return _this;\n }\n\n PictorialBarView.prototype.render = function (seriesModel, ecModel, api) {\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var coordSysRect = cartesian.master.getRect();\n var opt = {\n ecSize: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n seriesModel: seriesModel,\n coordSys: cartesian,\n coordSysExtent: [[coordSysRect.x, coordSysRect.x + coordSysRect.width], [coordSysRect.y, coordSysRect.y + coordSysRect.height]],\n isHorizontal: isHorizontal,\n valueDim: LAYOUT_ATTRS[+isHorizontal],\n categoryDim: LAYOUT_ATTRS[1 - +isHorizontal]\n };\n data.diff(oldData).add(function (dataIndex) {\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n var itemModel = getItemModel(data, dataIndex);\n var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);\n var bar = createBar(data, opt, symbolMeta);\n data.setItemGraphicEl(dataIndex, bar);\n group.add(bar);\n updateCommon(bar, opt, symbolMeta);\n }).update(function (newIndex, oldIndex) {\n var bar = oldData.getItemGraphicEl(oldIndex);\n\n if (!data.hasValue(newIndex)) {\n group.remove(bar);\n return;\n }\n\n var itemModel = getItemModel(data, newIndex);\n var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);\n var pictorialShapeStr = getShapeStr(data, symbolMeta);\n\n if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {\n group.remove(bar);\n data.setItemGraphicEl(newIndex, null);\n bar = null;\n }\n\n if (bar) {\n updateBar(bar, opt, symbolMeta);\n } else {\n bar = createBar(data, opt, symbolMeta, true);\n }\n\n data.setItemGraphicEl(newIndex, bar);\n bar.__pictorialSymbolMeta = symbolMeta; // Add back\n\n group.add(bar);\n updateCommon(bar, opt, symbolMeta);\n }).remove(function (dataIndex) {\n var bar = oldData.getItemGraphicEl(dataIndex);\n bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar);\n }).execute();\n this._data = data;\n return this.group;\n };\n\n PictorialBarView.prototype.remove = function (ecModel, api) {\n var group = this.group;\n var data = this._data;\n\n if (ecModel.get('animation')) {\n if (data) {\n data.eachItemGraphicEl(function (bar) {\n removeBar(data, getECData(bar).dataIndex, ecModel, bar);\n });\n }\n } else {\n group.removeAll();\n }\n };\n\n PictorialBarView.type = 'pictorialBar';\n return PictorialBarView;\n}(ChartView); // Set or calculate default value about symbol, and calculate layout info.\n\n\nfunction getSymbolMeta(data, dataIndex, itemModel, opt) {\n var layout = data.getItemLayout(dataIndex);\n var symbolRepeat = itemModel.get('symbolRepeat');\n var symbolClip = itemModel.get('symbolClip');\n var symbolPosition = itemModel.get('symbolPosition') || 'start';\n var symbolRotate = itemModel.get('symbolRotate');\n var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n var isAnimationEnabled = itemModel.isAnimationEnabled();\n var symbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n style: data.getItemVisual(dataIndex, 'style'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n z2: itemModel.getShallow('z', true) || 0\n };\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n var symbolSize = symbolMeta.symbolSize;\n var symbolOffset = itemModel.get('symbolOffset');\n\n if (zrUtil.isArray(symbolOffset)) {\n symbolOffset = [parsePercent(symbolOffset[0], symbolSize[0]), parsePercent(symbolOffset[1], symbolSize[1])];\n }\n\n prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n return symbolMeta;\n} // bar length can be negative.\n\n\nfunction prepareBarLength(itemModel, symbolRepeat, layout, opt, outputSymbolMeta) {\n var valueDim = opt.valueDim;\n var symbolBoundingData = itemModel.get('symbolBoundingData');\n var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());\n var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));\n var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);\n var boundingLength;\n\n if (zrUtil.isArray(symbolBoundingData)) {\n var symbolBoundingExtent = [convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx, convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx];\n symbolBoundingExtent[1] < symbolBoundingExtent[0] && symbolBoundingExtent.reverse();\n boundingLength = symbolBoundingExtent[pxSignIdx];\n } else if (symbolBoundingData != null) {\n boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;\n } else if (symbolRepeat) {\n boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;\n } else {\n boundingLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.boundingLength = boundingLength;\n\n if (symbolRepeat) {\n outputSymbolMeta.repeatCutLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0;\n}\n\nfunction convertToCoordOnAxis(axis, value) {\n return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));\n} // Support ['100%', '100%']\n\n\nfunction prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, outputSymbolMeta) {\n var valueDim = opt.valueDim;\n var categoryDim = opt.categoryDim;\n var categorySize = Math.abs(layout[categoryDim.wh]);\n var symbolSize = data.getItemVisual(dataIndex, 'symbolSize');\n var parsedSymbolSize;\n\n if (zrUtil.isArray(symbolSize)) {\n parsedSymbolSize = symbolSize.slice();\n } else {\n if (symbolSize == null) {\n // will parse to number below\n parsedSymbolSize = ['100%', '100%'];\n } else {\n parsedSymbolSize = [symbolSize, symbolSize];\n }\n } // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is\n // to complicated to calculate real percent value if considering scaled lineWidth.\n // So the actual size will bigger than layout size if lineWidth is bigger than zero,\n // which can be tolerated in pictorial chart.\n\n\n parsedSymbolSize[categoryDim.index] = parsePercent(parsedSymbolSize[categoryDim.index], categorySize);\n parsedSymbolSize[valueDim.index] = parsePercent(parsedSymbolSize[valueDim.index], symbolRepeat ? categorySize : Math.abs(boundingLength));\n outputSymbolMeta.symbolSize = parsedSymbolSize; // If x or y is less than zero, show reversed shape.\n\n var symbolScale = outputSymbolMeta.symbolScale = [parsedSymbolSize[0] / symbolPatternSize, parsedSymbolSize[1] / symbolPatternSize]; // Follow convention, 'right' and 'top' is the normal scale.\n\n symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;\n}\n\nfunction prepareLineWidth(itemModel, symbolScale, rotation, opt, outputSymbolMeta) {\n // In symbols are drawn with scale, so do not need to care about the case that width\n // or height are too small. But symbol use strokeNoScale, where acture lineWidth should\n // be calculated.\n var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;\n\n if (valueLineWidth) {\n pathForLineWidth.attr({\n scaleX: symbolScale[0],\n scaleY: symbolScale[1],\n rotation: rotation\n });\n pathForLineWidth.updateTransform();\n valueLineWidth /= pathForLineWidth.getLineScale();\n valueLineWidth *= symbolScale[opt.valueDim.index];\n }\n\n outputSymbolMeta.valueLineWidth = valueLineWidth;\n}\n\nfunction prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, outputSymbolMeta) {\n var categoryDim = opt.categoryDim;\n var valueDim = opt.valueDim;\n var pxSign = outputSymbolMeta.pxSign;\n var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);\n var pathLen = unitLength; // Note: rotation will not effect the layout of symbols, because user may\n // want symbols to rotate on its center, which should not be translated\n // when rotating.\n\n if (symbolRepeat) {\n var absBoundingLength = Math.abs(boundingLength);\n var symbolMargin = zrUtil.retrieve(itemModel.get('symbolMargin'), '15%') + '';\n var hasEndGap = false;\n\n if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {\n hasEndGap = true;\n symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);\n }\n\n var symbolMarginNumeric = parsePercent(symbolMargin, symbolSize[valueDim.index]);\n var uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0); // When symbol margin is less than 0, margin at both ends will be subtracted\n // to ensure that all of the symbols will not be overflow the given area.\n\n var endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Both final repeatTimes and final symbolMarginNumeric area calculated based on\n // boundingLength.\n\n var repeatSpecified = isNumeric(symbolRepeat);\n var repeatTimes = repeatSpecified ? symbolRepeat : toIntTimes((absBoundingLength + endFix) / uLenWithMargin); // Adjust calculate margin, to ensure each symbol is displayed\n // entirely in the given layout area.\n\n var mDiff = absBoundingLength - repeatTimes * unitLength;\n symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : repeatTimes - 1);\n uLenWithMargin = unitLength + symbolMarginNumeric * 2;\n endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Update repeatTimes when not all symbol will be shown.\n\n if (!repeatSpecified && symbolRepeat !== 'fixed') {\n repeatTimes = repeatCutLength ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin) : 0;\n }\n\n pathLen = repeatTimes * uLenWithMargin - endFix;\n outputSymbolMeta.repeatTimes = repeatTimes;\n outputSymbolMeta.symbolMargin = symbolMarginNumeric;\n }\n\n var sizeFix = pxSign * (pathLen / 2);\n var pathPosition = outputSymbolMeta.pathPosition = [];\n pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;\n pathPosition[valueDim.index] = symbolPosition === 'start' ? sizeFix : symbolPosition === 'end' ? boundingLength - sizeFix : boundingLength / 2; // 'center'\n\n if (symbolOffset) {\n pathPosition[0] += symbolOffset[0];\n pathPosition[1] += symbolOffset[1];\n }\n\n var bundlePosition = outputSymbolMeta.bundlePosition = [];\n bundlePosition[categoryDim.index] = layout[categoryDim.xy];\n bundlePosition[valueDim.index] = layout[valueDim.xy];\n var barRectShape = outputSymbolMeta.barRectShape = zrUtil.extend({}, layout);\n barRectShape[valueDim.wh] = pxSign * Math.max(Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix));\n barRectShape[categoryDim.wh] = layout[categoryDim.wh];\n var clipShape = outputSymbolMeta.clipShape = {}; // Consider that symbol may be overflow layout rect.\n\n clipShape[categoryDim.xy] = -layout[categoryDim.xy];\n clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];\n clipShape[valueDim.xy] = 0;\n clipShape[valueDim.wh] = layout[valueDim.wh];\n}\n\nfunction createPath(symbolMeta) {\n var symbolPatternSize = symbolMeta.symbolPatternSize;\n var path = createSymbol( // Consider texture img, make a big size.\n symbolMeta.symbolType, -symbolPatternSize / 2, -symbolPatternSize / 2, symbolPatternSize, symbolPatternSize);\n path.attr({\n culling: true\n });\n path.type !== 'image' && path.setStyle({\n strokeNoScale: true\n });\n return path;\n}\n\nfunction createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) {\n var bundle = bar.__pictorialBundle;\n var symbolSize = symbolMeta.symbolSize;\n var valueLineWidth = symbolMeta.valueLineWidth;\n var pathPosition = symbolMeta.pathPosition;\n var valueDim = opt.valueDim;\n var repeatTimes = symbolMeta.repeatTimes || 0;\n var index = 0;\n var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;\n eachPath(bar, function (path) {\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n\n if (index < repeatTimes) {\n updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);\n } else {\n updateAttr(path, null, {\n scaleX: 0,\n scaleY: 0\n }, symbolMeta, isUpdate, function () {\n bundle.remove(path);\n });\n } // updateHoverAnimation(path, symbolMeta);\n\n\n index++;\n });\n\n for (; index < repeatTimes; index++) {\n var path = createPath(symbolMeta);\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n bundle.add(path);\n var target = makeTarget(index);\n updateAttr(path, {\n x: target.x,\n y: target.y,\n scaleX: 0,\n scaleY: 0\n }, {\n scaleX: target.scaleX,\n scaleY: target.scaleY,\n rotation: target.rotation\n }, symbolMeta, isUpdate);\n }\n\n function makeTarget(index) {\n var position = pathPosition.slice(); // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index\n // Otherwise: i = index;\n\n var pxSign = symbolMeta.pxSign;\n var i = index;\n\n if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {\n i = repeatTimes - 1 - index;\n }\n\n position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];\n return {\n x: position[0],\n y: position[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n };\n }\n}\n\nfunction createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) {\n var bundle = bar.__pictorialBundle;\n var mainPath = bar.__pictorialMainPath;\n\n if (!mainPath) {\n mainPath = bar.__pictorialMainPath = createPath(symbolMeta);\n bundle.add(mainPath);\n updateAttr(mainPath, {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: 0,\n scaleY: 0,\n rotation: symbolMeta.rotation\n }, {\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1]\n }, symbolMeta, isUpdate);\n } else {\n updateAttr(mainPath, null, {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n }, symbolMeta, isUpdate);\n }\n} // bar rect is used for label.\n\n\nfunction createOrUpdateBarRect(bar, symbolMeta, isUpdate) {\n var rectShape = zrUtil.extend({}, symbolMeta.barRectShape);\n var barRect = bar.__pictorialBarRect;\n\n if (!barRect) {\n barRect = bar.__pictorialBarRect = new graphic.Rect({\n z2: 2,\n shape: rectShape,\n silent: true,\n style: {\n stroke: 'transparent',\n fill: 'transparent',\n lineWidth: 0\n }\n });\n bar.add(barRect);\n } else {\n updateAttr(barRect, null, {\n shape: rectShape\n }, symbolMeta, isUpdate);\n }\n}\n\nfunction createOrUpdateClip(bar, opt, symbolMeta, isUpdate) {\n // If not clip, symbol will be remove and rebuilt.\n if (symbolMeta.symbolClip) {\n var clipPath = bar.__pictorialClipPath;\n var clipShape = zrUtil.extend({}, symbolMeta.clipShape);\n var valueDim = opt.valueDim;\n var animationModel = symbolMeta.animationModel;\n var dataIndex = symbolMeta.dataIndex;\n\n if (clipPath) {\n graphic.updateProps(clipPath, {\n shape: clipShape\n }, animationModel, dataIndex);\n } else {\n clipShape[valueDim.wh] = 0;\n clipPath = new graphic.Rect({\n shape: clipShape\n });\n\n bar.__pictorialBundle.setClipPath(clipPath);\n\n bar.__pictorialClipPath = clipPath;\n var target = {};\n target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];\n graphic[isUpdate ? 'updateProps' : 'initProps'](clipPath, {\n shape: target\n }, animationModel, dataIndex);\n }\n }\n}\n\nfunction getItemModel(data, dataIndex) {\n var itemModel = data.getItemModel(dataIndex);\n itemModel.getAnimationDelayParams = getAnimationDelayParams;\n itemModel.isAnimationEnabled = isAnimationEnabled;\n return itemModel;\n}\n\nfunction getAnimationDelayParams(path) {\n // The order is the same as the z-order, see `symbolRepeatDiretion`.\n return {\n index: path.__pictorialAnimationIndex,\n count: path.__pictorialRepeatTimes\n };\n}\n\nfunction isAnimationEnabled() {\n // `animation` prop can be set on itemModel in pictorial bar chart.\n return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');\n}\n\nfunction createBar(data, opt, symbolMeta, isUpdate) {\n // bar is the main element for each data.\n var bar = new graphic.Group(); // bundle is used for location and clip.\n\n var bundle = new graphic.Group();\n bar.add(bundle);\n bar.__pictorialBundle = bundle;\n bundle.x = symbolMeta.bundlePosition[0];\n bundle.y = symbolMeta.bundlePosition[1];\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta);\n } else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, isUpdate);\n createOrUpdateClip(bar, opt, symbolMeta, isUpdate);\n bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);\n bar.__pictorialSymbolMeta = symbolMeta;\n return bar;\n}\n\nfunction updateBar(bar, opt, symbolMeta) {\n var animationModel = symbolMeta.animationModel;\n var dataIndex = symbolMeta.dataIndex;\n var bundle = bar.__pictorialBundle;\n graphic.updateProps(bundle, {\n x: symbolMeta.bundlePosition[0],\n y: symbolMeta.bundlePosition[1]\n }, animationModel, dataIndex);\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);\n } else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, true);\n createOrUpdateClip(bar, opt, symbolMeta, true);\n}\n\nfunction removeBar(data, dataIndex, animationModel, bar) {\n // Not show text when animating\n var labelRect = bar.__pictorialBarRect;\n labelRect && labelRect.removeTextContent();\n var pathes = [];\n eachPath(bar, function (path) {\n pathes.push(path);\n });\n bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath); // I do not find proper remove animation for clip yet.\n\n bar.__pictorialClipPath && (animationModel = null);\n zrUtil.each(pathes, function (path) {\n graphic.removeElement(path, {\n scaleX: 0,\n scaleY: 0\n }, animationModel, dataIndex, function () {\n bar.parent && bar.parent.remove(bar);\n });\n });\n data.setItemGraphicEl(dataIndex, null);\n}\n\nfunction getShapeStr(data, symbolMeta) {\n return [data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, !!symbolMeta.symbolClip].join(':');\n}\n\nfunction eachPath(bar, cb, context) {\n // Do not use Group#eachChild, because it do not support remove.\n zrUtil.each(bar.__pictorialBundle.children(), function (el) {\n el !== bar.__pictorialBarRect && cb.call(context, el);\n });\n}\n\nfunction updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) {\n immediateAttrs && el.attr(immediateAttrs); // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.\n\n if (symbolMeta.symbolClip && !isUpdate) {\n animationAttrs && el.attr(animationAttrs);\n } else {\n animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps'](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb);\n }\n}\n\nfunction updateCommon(bar, opt, symbolMeta) {\n var dataIndex = symbolMeta.dataIndex;\n var itemModel = symbolMeta.itemModel; // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n\n var emphasisModel = itemModel.getModel('emphasis');\n var emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n var blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n var selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n var cursorStyle = itemModel.getShallow('cursor');\n var focus = emphasisModel.get('focus');\n var blurScope = emphasisModel.get('blurScope');\n var hoverScale = emphasisModel.get('scale');\n eachPath(bar, function (path) {\n if (path instanceof ZRImage) {\n var pathStyle = path.style;\n path.useStyle(zrUtil.extend({\n // TODO other properties like dx, dy ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolMeta.style));\n } else {\n path.useStyle(symbolMeta.style);\n }\n\n var emphasisState = path.ensureState('emphasis');\n emphasisState.style = emphasisStyle;\n\n if (hoverScale) {\n // NOTE: Must after scale is set after updateAttr\n emphasisState.scaleX = path.scaleX * 1.1;\n emphasisState.scaleY = path.scaleY * 1.1;\n }\n\n path.ensureState('blur').style = blurStyle;\n path.ensureState('select').style = selectStyle;\n cursorStyle && (path.cursor = cursorStyle);\n path.z2 = symbolMeta.z2;\n });\n var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];\n var barRect = bar.__pictorialBarRect;\n setLabelStyle(barRect, getLabelStatesModels(itemModel), {\n labelFetcher: opt.seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(opt.seriesModel.getData(), dataIndex),\n inheritColor: symbolMeta.style.fill,\n defaultOpacity: symbolMeta.style.opacity,\n defaultOutsidePosition: barPositionOutside\n });\n enableHoverEmphasis(bar, focus, blurScope);\n}\n\nfunction toIntTimes(times) {\n var roundedTimes = Math.round(times); // Escapse accurate error\n\n return Math.abs(times - roundedTimes) < 1e-4 ? roundedTimes : Math.ceil(times);\n}\n\nexport default PictorialBarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseBarSeriesModel from './BaseBarSeries';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar PictorialBarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(PictorialBarSeriesModel, _super);\n\n function PictorialBarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PictorialBarSeriesModel.type;\n _this.hasSymbolVisual = true;\n _this.defaultSymbol = 'roundRect';\n return _this;\n }\n\n PictorialBarSeriesModel.prototype.getInitialData = function (option) {\n // Disable stack.\n option.stack = null;\n return _super.prototype.getInitialData.apply(this, arguments);\n };\n\n PictorialBarSeriesModel.type = 'series.pictorialBar';\n PictorialBarSeriesModel.dependencies = ['grid'];\n PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n symbol: 'circle',\n symbolSize: null,\n symbolRotate: null,\n symbolPosition: null,\n symbolOffset: null,\n symbolMargin: null,\n symbolRepeat: false,\n symbolRepeatDirection: 'end',\n symbolClip: false,\n symbolBoundingData: null,\n symbolPatternSize: 400,\n barGap: '-100%',\n // z can be set in data item, which is z2 actually.\n // Disable progressive\n progressive: 0,\n emphasis: {\n // By default pictorialBar do not hover scale. Hover scale is not suitable\n // for the case that both has foreground and background.\n scale: false\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n });\n return PictorialBarSeriesModel;\n}(BaseBarSeriesModel);\n\nexport default PictorialBarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport PictorialBarView from './PictorialBarView';\nimport PictorialBarSeriesModel from './PictorialBarSeries';\nimport { layout } from '../../layout/barGrid';\nimport { curry } from 'zrender/lib/core/util';\nexport function install(registers) {\n registers.registerChartView(PictorialBarView);\n registers.registerSeriesModel(PictorialBarSeriesModel);\n registers.registerLayout(curry(layout, 'pictorialBar'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { ECPolygon } from '../line/poly';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { bind } from 'zrender/lib/core/util';\nimport DataDiffer from '../../data/DataDiffer';\nimport ChartView from '../../view/Chart';\n\nvar ThemeRiverView =\n/** @class */\nfunction (_super) {\n __extends(ThemeRiverView, _super);\n\n function ThemeRiverView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ThemeRiverView.type;\n _this._layers = [];\n return _this;\n }\n\n ThemeRiverView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var self = this;\n var group = this.group;\n var layersSeries = seriesModel.getLayerSeries();\n var layoutInfo = data.getLayout('layoutInfo');\n var rect = layoutInfo.rect;\n var boundaryGap = layoutInfo.boundaryGap;\n group.x = 0;\n group.y = rect.y + boundaryGap[0];\n\n function keyGetter(item) {\n return item.name;\n }\n\n var dataDiffer = new DataDiffer(this._layersSeries || [], layersSeries, keyGetter, keyGetter);\n var newLayersGroups = [];\n dataDiffer.add(bind(process, this, 'add')).update(bind(process, this, 'update')).remove(bind(process, this, 'remove')).execute();\n\n function process(status, idx, oldIdx) {\n var oldLayersGroups = self._layers;\n\n if (status === 'remove') {\n group.remove(oldLayersGroups[idx]);\n return;\n }\n\n var points0 = [];\n var points1 = [];\n var style;\n var indices = layersSeries[idx].indices;\n var j = 0;\n\n for (; j < indices.length; j++) {\n var layout = data.getItemLayout(indices[j]);\n var x = layout.x;\n var y0 = layout.y0;\n var y = layout.y;\n points0.push(x, y0);\n points1.push(x, y0 + y);\n style = data.getItemVisual(indices[j], 'style');\n }\n\n var polygon;\n var textLayout = data.getItemLayout(indices[0]);\n var labelModel = seriesModel.getModel('label');\n var margin = labelModel.get('margin');\n var emphasisModel = seriesModel.getModel('emphasis');\n\n if (status === 'add') {\n var layerGroup = newLayersGroups[idx] = new graphic.Group();\n polygon = new ECPolygon({\n shape: {\n points: points0,\n stackedOnPoints: points1,\n smooth: 0.4,\n stackedOnSmooth: 0.4,\n smoothConstraint: false\n },\n z2: 0\n });\n layerGroup.add(polygon);\n group.add(layerGroup);\n\n if (seriesModel.isAnimationEnabled()) {\n polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {\n polygon.removeClipPath();\n }));\n }\n } else {\n var layerGroup = oldLayersGroups[oldIdx];\n polygon = layerGroup.childAt(0);\n group.add(layerGroup);\n newLayersGroups[idx] = layerGroup;\n graphic.updateProps(polygon, {\n shape: {\n points: points0,\n stackedOnPoints: points1\n }\n }, seriesModel);\n }\n\n setLabelStyle(polygon, getLabelStatesModels(seriesModel), {\n labelDataIndex: indices[j - 1],\n defaultText: data.getName(indices[j - 1]),\n inheritColor: style.fill\n }, {\n normal: {\n verticalAlign: 'middle' // align: 'right'\n\n }\n });\n polygon.setTextConfig({\n position: null,\n local: true\n });\n var labelEl = polygon.getTextContent(); // TODO More label position options.\n\n if (labelEl) {\n labelEl.x = textLayout.x - margin;\n labelEl.y = textLayout.y0 + textLayout.y / 2;\n }\n\n polygon.useStyle(style);\n data.setItemGraphicEl(idx, polygon);\n setStatesStylesFromModel(polygon, seriesModel);\n enableHoverEmphasis(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n this._layersSeries = layersSeries;\n this._layers = newLayersGroups;\n };\n\n ThemeRiverView.type = 'themeRiver';\n return ThemeRiverView;\n}(ChartView);\n\n; // add animation to the view\n\nfunction createGridClipShape(rect, seriesModel, cb) {\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n x: rect.x - 50,\n width: rect.width + 100,\n height: rect.height + 20\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nexport default ThemeRiverView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createDimensions from '../../data/helper/createDimensions';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport List from '../../data/List';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { groupData, SINGLE_REFERRING } from '../../util/model';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nvar DATA_NAME_INDEX = 2;\n\nvar ThemeRiverSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ThemeRiverSeriesModel, _super);\n\n function ThemeRiverSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ThemeRiverSeriesModel.type;\n _this.useColorPaletteOnData = true;\n return _this;\n }\n /**\n * @override\n */\n\n\n ThemeRiverSeriesModel.prototype.init = function (option) {\n // eslint-disable-next-line\n _super.prototype.init.apply(this, arguments); // Put this function here is for the sake of consistency of code style.\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n };\n /**\n * If there is no value of a certain point in the time for some event,set it value to 0.\n *\n * @param {Array} data initial data in the option\n * @return {Array}\n */\n\n\n ThemeRiverSeriesModel.prototype.fixData = function (data) {\n var rawDataLength = data.length;\n /**\n * Make sure every layer data get the same keys.\n * The value index tells which layer has visited.\n * {\n * 2014/01/01: -1\n * }\n */\n\n var timeValueKeys = {}; // grouped data by name\n\n var groupResult = groupData(data, function (item) {\n if (!timeValueKeys.hasOwnProperty(item[0] + '')) {\n timeValueKeys[item[0] + ''] = -1;\n }\n\n return item[2];\n });\n var layerData = [];\n groupResult.buckets.each(function (items, key) {\n layerData.push({\n name: key,\n dataList: items\n });\n });\n var layerNum = layerData.length;\n\n for (var k = 0; k < layerNum; ++k) {\n var name_1 = layerData[k].name;\n\n for (var j = 0; j < layerData[k].dataList.length; ++j) {\n var timeValue = layerData[k].dataList[j][0] + '';\n timeValueKeys[timeValue] = k;\n }\n\n for (var timeValue in timeValueKeys) {\n if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) {\n timeValueKeys[timeValue] = k;\n data[rawDataLength] = [timeValue, 0, name_1];\n rawDataLength++;\n }\n }\n }\n\n return data;\n };\n /**\n * @override\n * @param option the initial option that user gived\n * @param ecModel the model object for themeRiver option\n */\n\n\n ThemeRiverSeriesModel.prototype.getInitialData = function (option, ecModel) {\n var singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n var axisType = singleAxisModel.get('type'); // filter the data item with the value of label is undefined\n\n var filterData = zrUtil.filter(option.data, function (dataItem) {\n return dataItem[2] !== undefined;\n }); // ??? TODO design a stage to transfer data for themeRiver and lines?\n\n var data = this.fixData(filterData || []);\n var nameList = [];\n var nameMap = this.nameMap = zrUtil.createHashMap();\n var count = 0;\n\n for (var i = 0; i < data.length; ++i) {\n nameList.push(data[i][DATA_NAME_INDEX]);\n\n if (!nameMap.get(data[i][DATA_NAME_INDEX])) {\n nameMap.set(data[i][DATA_NAME_INDEX], count);\n count++;\n }\n }\n\n var dimensionsInfo = createDimensions(data, {\n coordDimensions: ['single'],\n dimensionsDefine: [{\n name: 'time',\n type: getDimensionTypeByAxis(axisType)\n }, {\n name: 'value',\n type: 'float'\n }, {\n name: 'name',\n type: 'ordinal'\n }],\n encodeDefine: {\n single: 0,\n value: 1,\n itemName: 2\n }\n });\n var list = new List(dimensionsInfo, this);\n list.initData(data);\n return list;\n };\n /**\n * The raw data is divided into multiple layers and each layer\n * has same name.\n */\n\n\n ThemeRiverSeriesModel.prototype.getLayerSeries = function () {\n var data = this.getData();\n var lenCount = data.count();\n var indexArr = [];\n\n for (var i = 0; i < lenCount; ++i) {\n indexArr[i] = i;\n }\n\n var timeDim = data.mapDimension('single'); // data group by name\n\n var groupResult = groupData(indexArr, function (index) {\n return data.get('name', index);\n });\n var layerSeries = [];\n groupResult.buckets.each(function (items, key) {\n items.sort(function (index1, index2) {\n return data.get(timeDim, index1) - data.get(timeDim, index2);\n });\n layerSeries.push({\n name: key,\n indices: items\n });\n });\n return layerSeries;\n };\n /**\n * Get data indices for show tooltip content\n */\n\n\n ThemeRiverSeriesModel.prototype.getAxisTooltipData = function (dim, value, baseAxis) {\n if (!zrUtil.isArray(dim)) {\n dim = dim ? [dim] : [];\n }\n\n var data = this.getData();\n var layerSeries = this.getLayerSeries();\n var indices = [];\n var layerNum = layerSeries.length;\n var nestestValue;\n\n for (var i = 0; i < layerNum; ++i) {\n var minDist = Number.MAX_VALUE;\n var nearestIdx = -1;\n var pointNum = layerSeries[i].indices.length;\n\n for (var j = 0; j < pointNum; ++j) {\n var theValue = data.get(dim[0], layerSeries[i].indices[j]);\n var dist = Math.abs(theValue - value);\n\n if (dist <= minDist) {\n nestestValue = theValue;\n minDist = dist;\n nearestIdx = layerSeries[i].indices[j];\n }\n }\n\n indices.push(nearestIdx);\n }\n\n return {\n dataIndices: indices,\n nestestValue: nestestValue\n };\n };\n\n ThemeRiverSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var name = data.getName(dataIndex);\n var value = data.get(data.mapDimension('value'), dataIndex);\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value\n });\n };\n\n ThemeRiverSeriesModel.type = 'series.themeRiver';\n ThemeRiverSeriesModel.dependencies = ['singleAxis'];\n ThemeRiverSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'singleAxis',\n // gap in axis's orthogonal orientation\n boundaryGap: ['10%', '10%'],\n // legendHoverLink: true,\n singleAxisIndex: 0,\n animationEasing: 'linear',\n label: {\n margin: 4,\n show: true,\n position: 'left',\n fontSize: 11\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n return ThemeRiverSeriesModel;\n}(SeriesModel);\n\nexport default ThemeRiverSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from '../../util/number';\nexport default function themeRiverLayout(ecModel, api) {\n ecModel.eachSeriesByType('themeRiver', function (seriesModel) {\n var data = seriesModel.getData();\n var single = seriesModel.coordinateSystem;\n var layoutInfo = {}; // use the axis boundingRect for view\n\n var rect = single.getRect();\n layoutInfo.rect = rect;\n var boundaryGap = seriesModel.get('boundaryGap');\n var axis = single.getAxis();\n layoutInfo.boundaryGap = boundaryGap;\n\n if (axis.orient === 'horizontal') {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.height);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.height);\n var height = rect.height - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, height);\n } else {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.width);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.width);\n var width = rect.width - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, width);\n }\n\n data.setLayout('layoutInfo', layoutInfo);\n });\n}\n/**\n * The layout information about themeriver\n *\n * @param data data in the series\n * @param seriesModel the model object of themeRiver series\n * @param height value used to compute every series height\n */\n\nfunction doThemeRiverLayout(data, seriesModel, height) {\n if (!data.count()) {\n return;\n }\n\n var coordSys = seriesModel.coordinateSystem; // the data in each layer are organized into a series.\n\n var layerSeries = seriesModel.getLayerSeries(); // the points in each layer.\n\n var timeDim = data.mapDimension('single');\n var valueDim = data.mapDimension('value');\n var layerPoints = zrUtil.map(layerSeries, function (singleLayer) {\n return zrUtil.map(singleLayer.indices, function (idx) {\n var pt = coordSys.dataToPoint(data.get(timeDim, idx));\n pt[1] = data.get(valueDim, idx);\n return pt;\n });\n });\n var base = computeBaseline(layerPoints);\n var baseLine = base.y0;\n var ky = height / base.max; // set layout information for each item.\n\n var n = layerSeries.length;\n var m = layerSeries[0].indices.length;\n var baseY0;\n\n for (var j = 0; j < m; ++j) {\n baseY0 = baseLine[j] * ky;\n data.setItemLayout(layerSeries[0].indices[j], {\n layerIndex: 0,\n x: layerPoints[0][j][0],\n y0: baseY0,\n y: layerPoints[0][j][1] * ky\n });\n\n for (var i = 1; i < n; ++i) {\n baseY0 += layerPoints[i - 1][j][1] * ky;\n data.setItemLayout(layerSeries[i].indices[j], {\n layerIndex: i,\n x: layerPoints[i][j][0],\n y0: baseY0,\n y: layerPoints[i][j][1] * ky\n });\n }\n }\n}\n/**\n * Compute the baseLine of the rawdata\n * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics\n *\n * @param data the points in each layer\n */\n\n\nfunction computeBaseline(data) {\n var layerNum = data.length;\n var pointNum = data[0].length;\n var sums = [];\n var y0 = [];\n var max = 0;\n\n for (var i = 0; i < pointNum; ++i) {\n var temp = 0;\n\n for (var j = 0; j < layerNum; ++j) {\n temp += data[j][i][1];\n }\n\n if (temp > max) {\n max = temp;\n }\n\n sums.push(temp);\n }\n\n for (var k = 0; k < pointNum; ++k) {\n y0[k] = (max - sums[k]) / 2;\n }\n\n max = 0;\n\n for (var l = 0; l < pointNum; ++l) {\n var sum = sums[l] + y0[l];\n\n if (sum > max) {\n max = sum;\n }\n }\n\n return {\n y0: y0,\n max: max\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport ThemeRiverView from './ThemeRiverView';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport themeRiverLayout from './themeRiverLayout';\nimport dataFilter from '../../processor/dataFilter';\nexport function install(registers) {\n registers.registerChartView(ThemeRiverView);\n registers.registerSeriesModel(ThemeRiverSeriesModel);\n registers.registerLayout(themeRiverLayout);\n registers.registerProcessor(dataFilter('themeRiver'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, SPECIAL_STATES, DISPLAY_STATES } from '../../util/states';\nimport { createTextStyle } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nvar DEFAULT_SECTOR_Z = 2;\nvar DEFAULT_TEXT_Z = 4;\n/**\n * Sunburstce of Sunburst including Sector, Label, LabelLine\n */\n\nvar SunburstPiece =\n/** @class */\nfunction (_super) {\n __extends(SunburstPiece, _super);\n\n function SunburstPiece(node, seriesModel, ecModel, api) {\n var _this = _super.call(this) || this;\n\n _this.z2 = DEFAULT_SECTOR_Z;\n _this.textConfig = {\n inside: true\n };\n getECData(_this).seriesIndex = seriesModel.seriesIndex;\n var text = new graphic.Text({\n z2: DEFAULT_TEXT_Z,\n silent: node.getModel().get(['label', 'silent'])\n });\n\n _this.setTextContent(text);\n\n _this.updateData(true, node, seriesModel, ecModel, api);\n\n return _this;\n }\n\n SunburstPiece.prototype.updateData = function (firstCreate, node, // state: 'emphasis' | 'normal' | 'highlight' | 'downplay',\n seriesModel, ecModel, api) {\n this.node = node;\n node.piece = this;\n seriesModel = seriesModel || this._seriesModel;\n ecModel = ecModel || this._ecModel;\n var sector = this;\n getECData(sector).dataIndex = node.dataIndex;\n var itemModel = node.getModel();\n var emphasisModel = itemModel.getModel('emphasis');\n var layout = node.getLayout();\n var sectorShape = zrUtil.extend({}, layout);\n sectorShape.label = null;\n var normalStyle = node.getVisual('style');\n normalStyle.lineJoin = 'bevel';\n var decal = node.getVisual('decal');\n\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n\n var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape);\n zrUtil.extend(sectorShape, cornerRadius);\n zrUtil.each(SPECIAL_STATES, function (stateName) {\n var state = sector.ensureState(stateName);\n var itemStyleModel = itemModel.getModel([stateName, 'itemStyle']);\n state.style = itemStyleModel.getItemStyle(); // border radius\n\n var cornerRadius = getSectorCornerRadius(itemStyleModel, sectorShape);\n\n if (cornerRadius) {\n state.shape = cornerRadius;\n }\n });\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n sector.shape.r = layout.r0;\n graphic.updateProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, node.dataIndex);\n } else {\n // Disable animation for gradient since no interpolation method\n // is supported for gradient\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel);\n }\n\n sector.useStyle(normalStyle);\n\n this._updateLabel(seriesModel);\n\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n this._seriesModel = seriesModel || this._seriesModel;\n this._ecModel = ecModel || this._ecModel;\n var focus = emphasisModel.get('focus');\n var focusOrIndices = focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : focus;\n enableHoverEmphasis(this, focusOrIndices, emphasisModel.get('blurScope'));\n };\n\n SunburstPiece.prototype._updateLabel = function (seriesModel) {\n var _this = this;\n\n var itemModel = this.node.getModel();\n var normalLabelModel = itemModel.getModel('label');\n var layout = this.node.getLayout();\n var angle = layout.endAngle - layout.startAngle;\n var midAngle = (layout.startAngle + layout.endAngle) / 2;\n var dx = Math.cos(midAngle);\n var dy = Math.sin(midAngle);\n var sector = this;\n var label = sector.getTextContent();\n var dataIndex = this.node.dataIndex;\n var labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;\n var isNormalShown = normalLabelModel.get('show') && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);\n label.ignore = !isNormalShown; // TODO use setLabelStyle\n\n zrUtil.each(DISPLAY_STATES, function (stateName) {\n var labelStateModel = stateName === 'normal' ? itemModel.getModel('label') : itemModel.getModel([stateName, 'label']);\n var isNormal = stateName === 'normal';\n var state = isNormal ? label : label.ensureState(stateName);\n var text = seriesModel.getFormattedLabel(dataIndex, stateName);\n\n if (isNormal) {\n text = text || _this.node.name;\n }\n\n state.style = createTextStyle(labelStateModel, {}, null, stateName !== 'normal', true);\n\n if (text) {\n state.style.text = text;\n } // Not displaying text when angle is too small\n\n\n var isShown = labelStateModel.get('show');\n\n if (isShown != null && !isNormal) {\n state.ignore = !isShown;\n }\n\n var labelPosition = getLabelAttr(labelStateModel, 'position');\n var sectorState = isNormal ? sector : sector.states[stateName];\n var labelColor = sectorState.style.fill;\n sectorState.textConfig = {\n outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null,\n inside: labelPosition !== 'outside'\n };\n var r;\n var labelPadding = getLabelAttr(labelStateModel, 'distance') || 0;\n var textAlign = getLabelAttr(labelStateModel, 'align');\n\n if (labelPosition === 'outside') {\n r = layout.r + labelPadding;\n textAlign = midAngle > Math.PI / 2 ? 'right' : 'left';\n } else {\n if (!textAlign || textAlign === 'center') {\n r = (layout.r + layout.r0) / 2;\n textAlign = 'center';\n } else if (textAlign === 'left') {\n r = layout.r0 + labelPadding;\n\n if (midAngle > Math.PI / 2) {\n textAlign = 'right';\n }\n } else if (textAlign === 'right') {\n r = layout.r - labelPadding;\n\n if (midAngle > Math.PI / 2) {\n textAlign = 'left';\n }\n }\n }\n\n state.style.align = textAlign;\n state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle';\n state.x = r * dx + layout.cx;\n state.y = r * dy + layout.cy;\n var rotateType = getLabelAttr(labelStateModel, 'rotate');\n var rotate = 0;\n\n if (rotateType === 'radial') {\n rotate = -midAngle;\n\n if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n } else if (rotateType === 'tangential') {\n rotate = Math.PI / 2 - midAngle;\n\n if (rotate > Math.PI / 2) {\n rotate -= Math.PI;\n } else if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n } else if (typeof rotateType === 'number') {\n rotate = rotateType * Math.PI / 180;\n }\n\n state.rotation = rotate;\n });\n\n function getLabelAttr(model, name) {\n var stateAttr = model.get(name);\n\n if (stateAttr == null) {\n return normalLabelModel.get(name);\n }\n\n return stateAttr;\n }\n\n label.dirtyStyle();\n };\n\n return SunburstPiece;\n}(graphic.Sector);\n\nexport default SunburstPiece;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nimport { deprecateReplaceLog } from '../../util/log';\nimport { retrieveTargetInfo, aboveViewRoot } from '../helper/treeHelper';\nexport var ROOT_TO_NODE_ACTION = 'sunburstRootToNode';\nvar HIGHLIGHT_ACTION = 'sunburstHighlight';\nvar UNHIGHLIGHT_ACTION = 'sunburstUnhighlight';\nexport function installSunburstAction(registers) {\n registers.registerAction({\n type: ROOT_TO_NODE_ACTION,\n update: 'updateView'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sunburst',\n query: payload\n }, handleRootToNode);\n\n function handleRootToNode(model, index) {\n var targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION], model);\n\n if (targetInfo) {\n var originViewRoot = model.getViewRoot();\n\n if (originViewRoot) {\n payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';\n }\n\n model.resetViewRoot(targetInfo.node);\n }\n }\n });\n registers.registerAction({\n type: HIGHLIGHT_ACTION,\n update: 'none'\n }, function (payload, ecModel, api) {\n // Clone\n payload = extend({}, payload);\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sunburst',\n query: payload\n }, handleHighlight);\n\n function handleHighlight(model) {\n var targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model);\n\n if (targetInfo) {\n payload.dataIndex = targetInfo.node.dataIndex;\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('highlight', 'sunburstHighlight');\n } // Fast forward action\n\n\n api.dispatchAction(extend(payload, {\n type: 'highlight'\n }));\n });\n registers.registerAction({\n type: UNHIGHLIGHT_ACTION,\n update: 'updateView'\n }, function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('downplay', 'sunburstUnhighlight');\n }\n\n api.dispatchAction(extend(payload, {\n type: 'downplay'\n }));\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport SunburstPiece from './SunburstPiece';\nimport DataDiffer from '../../data/DataDiffer';\nimport { ROOT_TO_NODE_ACTION } from './sunburstAction';\nimport { windowOpen } from '../../util/format';\n\nvar SunburstView =\n/** @class */\nfunction (_super) {\n __extends(SunburstView, _super);\n\n function SunburstView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SunburstView.type;\n return _this;\n }\n\n SunburstView.prototype.render = function (seriesModel, ecModel, api, // @ts-ignore\n payload) {\n var self = this;\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n var data = seriesModel.getData();\n var virtualRoot = data.tree.root;\n var newRoot = seriesModel.getViewRoot();\n var group = this.group;\n var renderLabelForZeroData = seriesModel.get('renderLabelForZeroData');\n var newChildren = [];\n newRoot.eachNode(function (node) {\n newChildren.push(node);\n });\n var oldChildren = this._oldChildren || [];\n dualTravel(newChildren, oldChildren);\n renderRollUp(virtualRoot, newRoot);\n\n this._initEvents();\n\n this._oldChildren = newChildren;\n\n function dualTravel(newChildren, oldChildren) {\n if (newChildren.length === 0 && oldChildren.length === 0) {\n return;\n }\n\n new DataDiffer(oldChildren, newChildren, getKey, getKey).add(processNode).update(processNode).remove(zrUtil.curry(processNode, null)).execute();\n\n function getKey(node) {\n return node.getId();\n }\n\n function processNode(newIdx, oldIdx) {\n var newNode = newIdx == null ? null : newChildren[newIdx];\n var oldNode = oldIdx == null ? null : oldChildren[oldIdx];\n doRenderNode(newNode, oldNode);\n }\n }\n\n function doRenderNode(newNode, oldNode) {\n if (!renderLabelForZeroData && newNode && !newNode.getValue()) {\n // Not render data with value 0\n newNode = null;\n }\n\n if (newNode !== virtualRoot && oldNode !== virtualRoot) {\n if (oldNode && oldNode.piece) {\n if (newNode) {\n // Update\n oldNode.piece.updateData(false, newNode, seriesModel, ecModel, api); // For tooltip\n\n data.setItemGraphicEl(newNode.dataIndex, oldNode.piece);\n } else {\n // Remove\n removeNode(oldNode);\n }\n } else if (newNode) {\n // Add\n var piece = new SunburstPiece(newNode, seriesModel, ecModel, api);\n group.add(piece); // For tooltip\n\n data.setItemGraphicEl(newNode.dataIndex, piece);\n }\n }\n }\n\n function removeNode(node) {\n if (!node) {\n return;\n }\n\n if (node.piece) {\n group.remove(node.piece);\n node.piece = null;\n }\n }\n\n function renderRollUp(virtualRoot, viewRoot) {\n if (viewRoot.depth > 0) {\n // Render\n if (self.virtualPiece) {\n // Update\n self.virtualPiece.updateData(false, virtualRoot, seriesModel, ecModel, api);\n } else {\n // Add\n self.virtualPiece = new SunburstPiece(virtualRoot, seriesModel, ecModel, api);\n group.add(self.virtualPiece);\n } // TODO event scope\n\n\n viewRoot.piece.off('click');\n self.virtualPiece.on('click', function (e) {\n self._rootToNode(viewRoot.parentNode);\n });\n } else if (self.virtualPiece) {\n // Remove\n group.remove(self.virtualPiece);\n self.virtualPiece = null;\n }\n }\n };\n /**\n * @private\n */\n\n\n SunburstView.prototype._initEvents = function () {\n var _this = this;\n\n this.group.off('click');\n this.group.on('click', function (e) {\n var targetFound = false;\n\n var viewRoot = _this.seriesModel.getViewRoot();\n\n viewRoot.eachNode(function (node) {\n if (!targetFound && node.piece && node.piece === e.target) {\n var nodeClick = node.getModel().get('nodeClick');\n\n if (nodeClick === 'rootToNode') {\n _this._rootToNode(node);\n } else if (nodeClick === 'link') {\n var itemModel = node.getModel();\n var link = itemModel.get('link');\n\n if (link) {\n var linkTarget = itemModel.get('target', true) || '_blank';\n windowOpen(link, linkTarget);\n }\n }\n\n targetFound = true;\n }\n });\n });\n };\n /**\n * @private\n */\n\n\n SunburstView.prototype._rootToNode = function (node) {\n if (node !== this.seriesModel.getViewRoot()) {\n this.api.dispatchAction({\n type: ROOT_TO_NODE_ACTION,\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: node\n });\n }\n };\n /**\n * @implement\n */\n\n\n SunburstView.prototype.containPoint = function (point, seriesModel) {\n var treeRoot = seriesModel.getData();\n var itemLayout = treeRoot.getItemLayout(0);\n\n if (itemLayout) {\n var dx = point[0] - itemLayout.cx;\n var dy = point[1] - itemLayout.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n };\n\n SunburstView.type = 'sunburst';\n return SunburstView;\n}(ChartView);\n\nexport default SunburstView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport Model from '../../model/Model';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\nvar SunburstSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SunburstSeriesModel, _super);\n\n function SunburstSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SunburstSeriesModel.type;\n _this.ignoreStyleOnData = true;\n return _this;\n }\n\n SunburstSeriesModel.prototype.getInitialData = function (option, ecModel) {\n // Create a virtual root.\n var root = {\n name: option.name,\n children: option.data\n };\n completeTreeValue(root);\n var levelModels = zrUtil.map(option.levels || [], function (levelDefine) {\n return new Model(levelDefine, this, ecModel);\n }, this); // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n var levelModel = levelModels[node.depth];\n levelModel && (model.parentModel = levelModel);\n return model;\n });\n }\n\n return tree.data;\n };\n\n SunburstSeriesModel.prototype.optionUpdated = function () {\n this.resetViewRoot();\n };\n /*\n * @override\n */\n\n\n SunburstSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n return params;\n };\n\n SunburstSeriesModel.prototype.getViewRoot = function () {\n return this._viewRoot;\n };\n\n SunburstSeriesModel.prototype.resetViewRoot = function (viewRoot) {\n viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;\n var root = this.getRawData().tree.root;\n\n if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {\n this._viewRoot = root;\n }\n };\n\n SunburstSeriesModel.prototype.enableAriaDecal = function () {\n enableAriaDecalForTree(this);\n };\n\n SunburstSeriesModel.type = 'series.sunburst';\n SunburstSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n // 默认全局居中\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // 默认顺时针\n clockwise: true,\n startAngle: 90,\n // 最小角度改为0\n minAngle: 0,\n // If still show when all data zero.\n stillShowZeroSum: true,\n // 'rootToNode', 'link', or false\n nodeClick: 'rootToNode',\n renderLabelForZeroData: false,\n label: {\n // could be: 'radial', 'tangential', or 'none'\n rotate: 'radial',\n show: true,\n opacity: 1,\n // 'left' is for inner side of inside, and 'right' is for outter\n // side for inside\n align: 'center',\n position: 'inside',\n distance: 5,\n silent: true\n },\n itemStyle: {\n borderWidth: 1,\n borderColor: 'white',\n borderType: 'solid',\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, 0.2)',\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n emphasis: {\n focus: 'descendant'\n },\n blur: {\n itemStyle: {\n opacity: 0.2\n },\n label: {\n opacity: 0.1\n }\n },\n // Animation type canbe expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n data: [],\n levels: [],\n\n /**\n * Sort order.\n *\n * Valid values: 'desc', 'asc', null, or callback function.\n * 'desc' and 'asc' for descend and ascendant order;\n * null for not sorting;\n * example of callback function:\n * function(nodeA, nodeB) {\n * return nodeA.getValue() - nodeB.getValue();\n * }\n */\n sort: 'desc'\n };\n return SunburstSeriesModel;\n}(SeriesModel);\n\nfunction completeTreeValue(dataNode) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n var sum = 0;\n zrUtil.each(dataNode.children, function (child) {\n completeTreeValue(child);\n var childValue = child.value; // TODO First value of array must be a number\n\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue;\n });\n var thisValue = dataNode.value;\n\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n } // Value should not less than 0.\n\n\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;\n}\n\nexport default SunburstSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parsePercent } from '../../util/number';\nimport * as zrUtil from 'zrender/lib/core/util'; // let PI2 = Math.PI * 2;\n\nvar RADIAN = Math.PI / 180;\nexport default function sunburstLayout(seriesType, ecModel, api) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n var center = seriesModel.get('center');\n var radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n var width = api.getWidth();\n var height = api.getHeight();\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], width);\n var cy = parsePercent(center[1], height);\n var r0 = parsePercent(radius[0], size / 2);\n var r = parsePercent(radius[1], size / 2);\n var startAngle = -seriesModel.get('startAngle') * RADIAN;\n var minAngle = seriesModel.get('minAngle') * RADIAN;\n var virtualRoot = seriesModel.getData().tree.root;\n var treeRoot = seriesModel.getViewRoot();\n var rootDepth = treeRoot.depth;\n var sort = seriesModel.get('sort');\n\n if (sort != null) {\n initChildren(treeRoot, sort);\n }\n\n var validDataCount = 0;\n zrUtil.each(treeRoot.children, function (child) {\n !isNaN(child.getValue()) && validDataCount++;\n });\n var sum = treeRoot.getValue(); // Sum may be 0\n\n var unitRadian = Math.PI / (sum || validDataCount) * 2;\n var renderRollupNode = treeRoot.depth > 0;\n var levels = treeRoot.height - (renderRollupNode ? -1 : 1);\n var rPerLevel = (r - r0) / (levels || 1);\n var clockwise = seriesModel.get('clockwise');\n var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // In the case some sector angle is smaller than minAngle\n // let restAngle = PI2;\n // let valueSumLargerThanMinAngle = 0;\n\n var dir = clockwise ? 1 : -1;\n /**\n * Render a tree\n * @return increased angle\n */\n\n var renderNode = function (node, startAngle) {\n if (!node) {\n return;\n }\n\n var endAngle = startAngle; // Render self\n\n if (node !== virtualRoot) {\n // Tree node is virtual, so it doesn't need to be drawn\n var value = node.getValue();\n var angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;\n\n if (angle < minAngle) {\n angle = minAngle; // restAngle -= minAngle;\n } // else {\n // valueSumLargerThanMinAngle += value;\n // }\n\n\n endAngle = startAngle + dir * angle;\n var depth = node.depth - rootDepth - (renderRollupNode ? -1 : 1);\n var rStart = r0 + rPerLevel * depth;\n var rEnd = r0 + rPerLevel * (depth + 1);\n var itemModel = node.getModel(); // @ts-ignore. TODO this is not provided to developer yet. Rename it.\n\n if (itemModel.get('r0') != null) {\n // @ts-ignore\n rStart = parsePercent(itemModel.get('r0'), size / 2);\n } // @ts-ignore\n\n\n if (itemModel.get('r') != null) {\n // @ts-ignore\n rEnd = parsePercent(itemModel.get('r'), size / 2);\n }\n\n node.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n } // Render children\n\n\n if (node.children && node.children.length) {\n // currentAngle = startAngle;\n var siblingAngle_1 = 0;\n zrUtil.each(node.children, function (node) {\n siblingAngle_1 += renderNode(node, startAngle + siblingAngle_1);\n });\n }\n\n return endAngle - startAngle;\n }; // Virtual root node for roll up\n\n\n if (renderRollupNode) {\n var rStart = r0;\n var rEnd = r0 + rPerLevel;\n var angle = Math.PI * 2;\n virtualRoot.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: startAngle + angle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n renderNode(treeRoot, startAngle);\n });\n}\n/**\n * Init node children by order and update visual\n */\n\nfunction initChildren(node, sortOrder) {\n var children = node.children || [];\n node.children = sort(children, sortOrder); // Init children recursively\n\n if (children.length) {\n zrUtil.each(node.children, function (child) {\n initChildren(child, sortOrder);\n });\n }\n}\n/**\n * Sort children nodes\n *\n * @param {TreeNode[]} children children of node to be sorted\n * @param {string | function | null} sort sort method\n * See SunburstSeries.js for details.\n */\n\n\nfunction sort(children, sortOrder) {\n if (typeof sortOrder === 'function') {\n var sortTargets = zrUtil.map(children, function (child, idx) {\n var value = child.getValue();\n return {\n params: {\n depth: child.depth,\n height: child.height,\n dataIndex: child.dataIndex,\n getValue: function () {\n return value;\n }\n },\n index: idx\n };\n });\n sortTargets.sort(function (a, b) {\n return sortOrder(a.params, b.params);\n });\n return zrUtil.map(sortTargets, function (target) {\n return children[target.index];\n });\n } else {\n var isAsc_1 = sortOrder === 'asc';\n return children.sort(function (a, b) {\n var diff = (a.getValue() - b.getValue()) * (isAsc_1 ? 1 : -1);\n return diff === 0 ? (a.dataIndex - b.dataIndex) * (isAsc_1 ? -1 : 1) : diff;\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nimport { lift } from 'zrender/lib/tool/color';\nexport default function sunburstVisual(ecModel) {\n var paletteScope = {}; // Default color strategy\n\n function pickColor(node, seriesModel, treeHeight) {\n // Choose color from palette based on the first level.\n var current = node;\n\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n var color = seriesModel.getColorFromPalette(current.name || current.dataIndex + '', paletteScope);\n\n if (node.depth > 1 && typeof color === 'string') {\n // Lighter on the deeper level.\n color = lift(color, (node.depth - 1) / (treeHeight - 1) * 0.5);\n }\n\n return color;\n }\n\n ecModel.eachSeriesByType('sunburst', function (seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n tree.eachNode(function (node) {\n var model = node.getModel();\n var style = model.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n style.fill = pickColor(node, seriesModel, tree.root.height);\n }\n\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SunburstView from './SunburstView';\nimport SunburstSeriesModel from './SunburstSeries';\nimport sunburstLayout from './sunburstLayout';\nimport sunburstVisual from './sunburstVisual';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/lib/core/util';\nimport { installSunburstAction } from './sunburstAction';\nexport function install(registers) {\n registers.registerChartView(SunburstView);\n registers.registerSeriesModel(SunburstSeriesModel);\n registers.registerLayout(curry(sunburstLayout, 'sunburst'));\n registers.registerProcessor(curry(dataFilter, 'sunburst'));\n registers.registerVisual(sunburstVisual);\n installSunburstAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['x', 'y'], function (dim, dimIdx) {\n var axis = this.getAxis(dim);\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n }, this);\n}\n\nexport default function cartesianPrepareCustom(coordSys) {\n var rect = coordSys.master.getRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'cartesian2d',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (data) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n dataItem = dataItem || [0, 0];\n return zrUtil.map([0, 1], function (dimIdx) {\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n var p1 = [];\n var p2 = [];\n p1[dimIdx] = val - halfSize;\n p2[dimIdx] = val + halfSize;\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);\n }, this);\n}\n\nexport default function geoPrepareCustom(coordSys) {\n var rect = coordSys.getBoundingRect();\n return {\n coordSys: {\n type: 'geo',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n zoom: coordSys.getZoom()\n },\n api: {\n coord: function (data) {\n // do not provide \"out\" and noRoam param,\n // Compatible with this usage:\n // echarts.util.map(item.points, api.coord)\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { bind } from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}\n\nexport default function singlePrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n return {\n coordSys: {\n type: 'singleAxis',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (val) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(val);\n },\n size: bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // import AngleAxis from './AngleAxis';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\n var getterName = 'get' + dim + 'Axis'; // TODO: TYPE Check Angle Axis\n\n var axis = this[getterName]();\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n\n if (dim === 'Angle') {\n result = result * Math.PI / 180;\n }\n\n return result;\n }, this);\n}\n\nexport default function polarPrepareCustom(coordSys) {\n var radiusAxis = coordSys.getRadiusAxis();\n var angleAxis = coordSys.getAngleAxis();\n var radius = radiusAxis.getExtent();\n radius[0] > radius[1] && radius.reverse();\n return {\n coordSys: {\n type: 'polar',\n cx: coordSys.cx,\n cy: coordSys.cy,\n r: radius[1],\n r0: radius[0]\n },\n api: {\n coord: function (data) {\n var radius = radiusAxis.dataToRadius(data[0]);\n var angle = angleAxis.dataToAngle(data[1]);\n var coord = coordSys.coordToPoint([radius, angle]);\n coord.push(radius, angle * Math.PI / 180);\n return coord;\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function calendarPrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n var rangeInfo = coordSys.getRangeInfo();\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function (data, clamp) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, hasOwn } from 'zrender/lib/core/util';\nvar deprecatedLogs = {};\n/**\n * Whether need to call `convertEC4CompatibleStyle`.\n */\n\nexport function isEC4CompatibleStyle(style, elType, hasOwnTextContentOption, hasOwnTextConfig) {\n // Since echarts5, `RectText` is separated from its host element and style.text\n // does not exist any more. The compat work brings some extra burden on performance.\n // So we provide:\n // `legacy: true` force make compat.\n // `legacy: false`, force do not compat.\n // `legacy` not set: auto detect wheter legacy.\n // But in this case we do not compat (difficult to detect and rare case):\n // Becuse custom series and graphic component support \"merge\", users may firstly\n // only set `textStrokeWidth` style or secondly only set `text`.\n return style && (style.legacy || style.legacy !== false && !hasOwnTextContentOption && !hasOwnTextConfig && elType !== 'tspan' // Difficult to detect whether legacy for a \"text\" el.\n && (elType === 'text' || hasOwn(style, 'text')));\n}\n/**\n * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.\n * @param hostStyle The properties might be modified.\n * @return If be text el, `textContentStyle` and `textConfig` will not be retured.\n * Otherwise a `textContentStyle` and `textConfig` will be created, whose props area\n * retried from the `hostStyle`.\n */\n\nexport function convertFromEC4CompatibleStyle(hostStyle, elType, isNormal) {\n var srcStyle = hostStyle;\n var textConfig;\n var textContent;\n var textContentStyle;\n\n if (elType === 'text') {\n textContentStyle = srcStyle;\n } else {\n textContentStyle = {};\n hasOwn(srcStyle, 'text') && (textContentStyle.text = srcStyle.text);\n hasOwn(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich);\n hasOwn(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill);\n hasOwn(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke);\n textContent = {\n type: 'text',\n style: textContentStyle,\n // ec4 do not support rectText trigger.\n // And when text postion is different in normal and emphasis\n // => hover text trigger emphasis;\n // => text position changed, leave mouse pointer immediately;\n // That might cause state incorrect.\n silent: true\n };\n textConfig = {};\n var hasOwnPos = hasOwn(srcStyle, 'textPosition');\n\n if (isNormal) {\n textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside';\n } else {\n hasOwnPos && (textConfig.position = srcStyle.textPosition);\n }\n\n hasOwn(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition);\n hasOwn(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset);\n hasOwn(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation);\n hasOwn(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance);\n }\n\n convertEC4CompatibleRichItem(textContentStyle, hostStyle);\n each(textContentStyle.rich, function (richItem) {\n convertEC4CompatibleRichItem(richItem, richItem);\n });\n return {\n textConfig: textConfig,\n textContent: textContent\n };\n}\n/**\n * The result will be set to `out`.\n */\n\nfunction convertEC4CompatibleRichItem(out, richItem) {\n if (!richItem) {\n return;\n } // (1) For simplicity, make textXXX properties (deprecated since ec5) has\n // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`\n // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached\n // richText in ec5.\n // (2) `out === richItem` if and only if `out` is text el or rich item.\n // So we can overwite existing props in `out` since textXXX has higher priority.\n\n\n richItem.font = richItem.textFont || richItem.font;\n hasOwn(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth);\n hasOwn(richItem, 'textAlign') && (out.align = richItem.textAlign);\n hasOwn(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign);\n hasOwn(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight);\n hasOwn(richItem, 'textWidth') && (out.width = richItem.textWidth);\n hasOwn(richItem, 'textHeight') && (out.height = richItem.textHeight);\n hasOwn(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor);\n hasOwn(richItem, 'textPadding') && (out.padding = richItem.textPadding);\n hasOwn(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor);\n hasOwn(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth);\n hasOwn(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius);\n hasOwn(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor);\n hasOwn(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur);\n hasOwn(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX);\n hasOwn(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY);\n}\n/**\n * Convert to pure echarts4 format style.\n * `itemStyle` will be modified, added with ec4 style properties from\n * `textStyle` and `textConfig`.\n *\n * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where\n * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.\n */\n\n\nexport function convertToEC4StyleForCustomSerise(itemStl, txStl, txCfg) {\n var out = itemStl; // See `custom.ts`, a trick to set extra `textPosition` firstly.\n\n out.textPosition = out.textPosition || txCfg.position || 'inside';\n txCfg.offset != null && (out.textOffset = txCfg.offset);\n txCfg.rotation != null && (out.textRotation = txCfg.rotation);\n txCfg.distance != null && (out.textDistance = txCfg.distance);\n var isInside = out.textPosition.indexOf('inside') >= 0;\n var hostFill = itemStl.fill || '#000';\n convertToEC4RichItem(out, txStl);\n var textFillNotSet = out.textFill == null;\n\n if (isInside) {\n if (textFillNotSet) {\n out.textFill = txCfg.insideFill || '#fff';\n !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke);\n !out.textStroke && (out.textStroke = hostFill);\n out.textStrokeWidth == null && (out.textStrokeWidth = 2);\n }\n } else {\n if (textFillNotSet) {\n out.textFill = itemStl.fill || txCfg.outsideFill || '#000';\n }\n\n !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke);\n }\n\n out.text = txStl.text;\n out.rich = txStl.rich;\n each(txStl.rich, function (richItem) {\n convertToEC4RichItem(richItem, richItem);\n });\n return out;\n}\n\nfunction convertToEC4RichItem(out, richItem) {\n if (!richItem) {\n return;\n }\n\n hasOwn(richItem, 'fill') && (out.textFill = richItem.fill);\n hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);\n hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);\n hasOwn(richItem, 'font') && (out.font = richItem.font);\n hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);\n hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);\n hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);\n hasOwn(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);\n hasOwn(richItem, 'align') && (out.textAlign = richItem.align);\n hasOwn(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);\n hasOwn(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);\n hasOwn(richItem, 'width') && (out.textWidth = richItem.width);\n hasOwn(richItem, 'height') && (out.textHeight = richItem.height);\n hasOwn(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);\n hasOwn(richItem, 'padding') && (out.textPadding = richItem.padding);\n hasOwn(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);\n hasOwn(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);\n hasOwn(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);\n hasOwn(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);\n hasOwn(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);\n hasOwn(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);\n hasOwn(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);\n hasOwn(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);\n hasOwn(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);\n hasOwn(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);\n hasOwn(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);\n}\n\nexport function warnDeprecated(deprecated, insteadApproach) {\n if (process.env.NODE_ENV !== 'production') {\n var key = deprecated + '^_^' + insteadApproach;\n\n if (!deprecatedLogs[key]) {\n console.warn(\"[ECharts] DEPRECATED: \\\"\" + deprecated + \"\\\" has been deprecated. \" + insteadApproach);\n deprecatedLogs[key] = true;\n }\n }\n}","import PathProxy from '../core/PathProxy';\nimport { cubicSubdivide } from '../core/curve';\nimport { defaults, assert, noop, clone } from '../core/util';\nimport { lerp } from '../core/vector';\nimport Rect from '../graphic/shape/Rect';\nimport Sector from '../graphic/shape/Sector';\nvar CMD = PathProxy.CMD;\nvar PI2 = Math.PI * 2;\nvar PROP_XY = ['x', 'y'];\nvar PROP_WH = ['width', 'height'];\nvar tmpArr = [];\nfunction aroundEqual(a, b) {\n return Math.abs(a - b) < 1e-5;\n}\nexport function pathToBezierCurves(path) {\n var data = path.data;\n var len = path.len();\n var bezierArray = [];\n var currentSubpath;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n function createNewSubpath(x, y) {\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArray.push(currentSubpath);\n }\n currentSubpath = [x, y];\n }\n function addLine(x0, y0, x1, y1) {\n if (!(aroundEqual(x0, x1) && aroundEqual(y0, y1))) {\n currentSubpath.push(x0, y0, x1, y1, x1, y1);\n }\n }\n function addArc(startAngle, endAngle, cx, cy, rx, ry) {\n var delta = Math.abs(endAngle - startAngle);\n var len = Math.tan(delta / 4) * 4 / 3;\n var dir = endAngle < startAngle ? -1 : 1;\n var c1 = Math.cos(startAngle);\n var s1 = Math.sin(startAngle);\n var c2 = Math.cos(endAngle);\n var s2 = Math.sin(endAngle);\n var x1 = c1 * rx + cx;\n var y1 = s1 * ry + cy;\n var x4 = c2 * rx + cx;\n var y4 = s2 * ry + cy;\n var hx = rx * len * dir;\n var hy = ry * len * dir;\n currentSubpath.push(x1 - hx * s1, y1 + hy * c1, x4 + hx * s2, y4 - hy * c2, x4, y4);\n }\n var x1;\n var y1;\n var x2;\n var y2;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n if (cmd === CMD.L || cmd === CMD.C || cmd === CMD.Q) {\n currentSubpath = [x0, y0];\n }\n }\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n createNewSubpath(x0, y0);\n break;\n case CMD.L:\n x1 = data[i++];\n y1 = data[i++];\n addLine(xi, yi, x1, y1);\n xi = x1;\n yi = y1;\n break;\n case CMD.C:\n currentSubpath.push(data[i++], data[i++], data[i++], data[i++], xi = data[i++], yi = data[i++]);\n break;\n case CMD.Q:\n x1 = data[i++];\n y1 = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n currentSubpath.push(xi + 2 / 3 * (x1 - xi), yi + 2 / 3 * (y1 - yi), x2 + 2 / 3 * (x1 - x2), y2 + 2 / 3 * (y1 - y2), x2, y2);\n xi = x2;\n yi = y2;\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var endAngle = data[i++] + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n x1 = Math.cos(startAngle) * rx + cx;\n y1 = Math.sin(startAngle) * ry + cy;\n if (isFirst) {\n x0 = x1;\n y0 = y1;\n createNewSubpath(x0, y0);\n }\n else {\n addLine(xi, yi, x1, y1);\n }\n xi = Math.cos(endAngle) * rx + cx;\n yi = Math.sin(endAngle) * ry + cy;\n var step = (anticlockwise ? -1 : 1) * Math.PI / 2;\n for (var angle = startAngle; anticlockwise ? angle > endAngle : angle < endAngle; angle += step) {\n var nextAngle = anticlockwise ? Math.max(angle + step, endAngle)\n : Math.min(angle + step, endAngle);\n addArc(angle, nextAngle, cx, cy, rx, ry);\n }\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n x1 = x0 + data[i++];\n y1 = y0 + data[i++];\n createNewSubpath(x1, y0);\n addLine(x1, y0, x1, y1);\n addLine(x1, y1, x0, y1);\n addLine(x0, y1, x0, y0);\n addLine(x0, y0, x1, y0);\n break;\n case CMD.Z:\n currentSubpath && addLine(xi, yi, x0, y0);\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArray.push(currentSubpath);\n }\n return bezierArray;\n}\nfunction alignSubpath(subpath1, subpath2) {\n var len1 = subpath1.length;\n var len2 = subpath2.length;\n if (len1 === len2) {\n return [subpath1, subpath2];\n }\n var shorterPath = len1 < len2 ? subpath1 : subpath2;\n var shorterLen = Math.min(len1, len2);\n var diff = Math.abs(len2 - len1) / 6;\n var shorterBezierCount = (shorterLen - 2) / 6;\n var eachCurveSubDivCount = Math.ceil(diff / shorterBezierCount) + 1;\n var newSubpath = [shorterPath[0], shorterPath[1]];\n var remained = diff;\n var tmpSegX = [];\n var tmpSegY = [];\n for (var i = 2; i < shorterLen;) {\n var x0 = shorterPath[i - 2];\n var y0 = shorterPath[i - 1];\n var x1 = shorterPath[i++];\n var y1 = shorterPath[i++];\n var x2 = shorterPath[i++];\n var y2 = shorterPath[i++];\n var x3 = shorterPath[i++];\n var y3 = shorterPath[i++];\n if (remained <= 0) {\n newSubpath.push(x1, y1, x2, y2, x3, y3);\n continue;\n }\n var actualSubDivCount = Math.min(remained, eachCurveSubDivCount - 1) + 1;\n for (var k = 1; k <= actualSubDivCount; k++) {\n var p = k / actualSubDivCount;\n cubicSubdivide(x0, x1, x2, x3, p, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, p, tmpSegY);\n x0 = tmpSegX[3];\n y0 = tmpSegY[3];\n newSubpath.push(tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], x0, y0);\n x1 = tmpSegX[5];\n y1 = tmpSegY[5];\n x2 = tmpSegX[6];\n y2 = tmpSegY[6];\n }\n remained -= actualSubDivCount - 1;\n }\n return shorterPath === subpath1 ? [newSubpath, subpath2] : [subpath1, newSubpath];\n}\nfunction createSubpath(lastSubpathSubpath, otherSubpath) {\n var len = lastSubpathSubpath.length;\n var lastX = lastSubpathSubpath[len - 2];\n var lastY = lastSubpathSubpath[len - 1];\n var newSubpath = [];\n for (var i = 0; i < otherSubpath.length;) {\n newSubpath[i++] = lastX;\n newSubpath[i++] = lastY;\n }\n return newSubpath;\n}\nexport function alignBezierCurves(array1, array2) {\n var _a;\n var lastSubpath1;\n var lastSubpath2;\n var newArray1 = [];\n var newArray2 = [];\n for (var i = 0; i < Math.max(array1.length, array2.length); i++) {\n var subpath1 = array1[i];\n var subpath2 = array2[i];\n var newSubpath1 = void 0;\n var newSubpath2 = void 0;\n if (!subpath1) {\n newSubpath1 = createSubpath(lastSubpath1 || subpath2, subpath2);\n newSubpath2 = subpath2;\n }\n else if (!subpath2) {\n newSubpath2 = createSubpath(lastSubpath2 || subpath1, subpath1);\n newSubpath1 = subpath1;\n }\n else {\n _a = alignSubpath(subpath1, subpath2), newSubpath1 = _a[0], newSubpath2 = _a[1];\n lastSubpath1 = newSubpath1;\n lastSubpath2 = newSubpath2;\n }\n newArray1.push(newSubpath1);\n newArray2.push(newSubpath2);\n }\n return [newArray1, newArray2];\n}\nexport function centroid(array) {\n var signedArea = 0;\n var cx = 0;\n var cy = 0;\n var len = array.length;\n for (var i = 0, j = len - 2; i < len; j = i, i += 2) {\n var x0 = array[j];\n var y0 = array[j + 1];\n var x1 = array[i];\n var y1 = array[i + 1];\n var a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n }\n if (signedArea === 0) {\n return [array[0] || 0, array[1] || 0];\n }\n return [cx / signedArea / 3, cy / signedArea / 3, signedArea];\n}\nfunction findBestRingOffset(fromSubBeziers, toSubBeziers, fromCp, toCp) {\n var bezierCount = (fromSubBeziers.length - 2) / 6;\n var bestScore = Infinity;\n var bestOffset = 0;\n var len = fromSubBeziers.length;\n var len2 = len - 2;\n for (var offset = 0; offset < bezierCount; offset++) {\n var cursorOffset = offset * 6;\n var score = 0;\n for (var k = 0; k < len; k += 2) {\n var idx = k === 0 ? cursorOffset : ((cursorOffset + k - 2) % len2 + 2);\n var x0 = fromSubBeziers[idx] - fromCp[0];\n var y0 = fromSubBeziers[idx + 1] - fromCp[1];\n var x1 = toSubBeziers[k] - toCp[0];\n var y1 = toSubBeziers[k + 1] - toCp[1];\n var dx = x1 - x0;\n var dy = y1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestOffset = offset;\n }\n }\n return bestOffset;\n}\nfunction reverse(array) {\n var newArr = [];\n var len = array.length;\n for (var i = 0; i < len; i += 2) {\n newArr[i] = array[len - i - 2];\n newArr[i + 1] = array[len - i - 1];\n }\n return newArr;\n}\nfunction findBestMorphingRotation(fromArr, toArr, searchAngleIteration, searchAngleRange) {\n var result = [];\n var fromNeedsReverse;\n for (var i = 0; i < fromArr.length; i++) {\n var fromSubpathBezier = fromArr[i];\n var toSubpathBezier = toArr[i];\n var fromCp = centroid(fromSubpathBezier);\n var toCp = centroid(toSubpathBezier);\n if (fromNeedsReverse == null) {\n fromNeedsReverse = fromCp[2] < 0 !== toCp[2] < 0;\n }\n var newFromSubpathBezier = [];\n var newToSubpathBezier = [];\n var bestAngle = 0;\n var bestScore = Infinity;\n var tmpArr_1 = [];\n var len = fromSubpathBezier.length;\n if (fromNeedsReverse) {\n fromSubpathBezier = reverse(fromSubpathBezier);\n }\n var offset = findBestRingOffset(fromSubpathBezier, toSubpathBezier, fromCp, toCp) * 6;\n var len2 = len - 2;\n for (var k = 0; k < len2; k += 2) {\n var idx = (offset + k) % len2 + 2;\n newFromSubpathBezier[k + 2] = fromSubpathBezier[idx] - fromCp[0];\n newFromSubpathBezier[k + 3] = fromSubpathBezier[idx + 1] - fromCp[1];\n }\n newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];\n newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];\n if (searchAngleIteration > 0) {\n var step = searchAngleRange / searchAngleIteration;\n for (var angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {\n var sa = Math.sin(angle);\n var ca = Math.cos(angle);\n var score = 0;\n for (var k = 0; k < fromSubpathBezier.length; k += 2) {\n var x0 = newFromSubpathBezier[k];\n var y0 = newFromSubpathBezier[k + 1];\n var x1 = toSubpathBezier[k] - toCp[0];\n var y1 = toSubpathBezier[k + 1] - toCp[1];\n var newX1 = x1 * ca - y1 * sa;\n var newY1 = x1 * sa + y1 * ca;\n tmpArr_1[k] = newX1;\n tmpArr_1[k + 1] = newY1;\n var dx = newX1 - x0;\n var dy = newY1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestAngle = angle;\n for (var m = 0; m < tmpArr_1.length; m++) {\n newToSubpathBezier[m] = tmpArr_1[m];\n }\n }\n }\n }\n else {\n for (var i_1 = 0; i_1 < len; i_1 += 2) {\n newToSubpathBezier[i_1] = toSubpathBezier[i_1] - toCp[0];\n newToSubpathBezier[i_1 + 1] = toSubpathBezier[i_1 + 1] - toCp[1];\n }\n }\n result.push({\n from: newFromSubpathBezier,\n to: newToSubpathBezier,\n fromCp: fromCp,\n toCp: toCp,\n rotation: -bestAngle\n });\n }\n return result;\n}\nexport function morphPath(fromPath, toPath, animationOpts) {\n var fromPathProxy;\n var toPathProxy;\n if (!fromPath || !toPath) {\n return toPath;\n }\n !fromPath.path && fromPath.createPathProxy();\n fromPathProxy = fromPath.path;\n fromPathProxy.beginPath();\n fromPath.buildPath(fromPathProxy, fromPath.shape);\n !toPath.path && toPath.createPathProxy();\n toPathProxy = toPath.path;\n toPathProxy === fromPathProxy && (toPathProxy = new PathProxy(false));\n toPathProxy.beginPath();\n if (isIndividualMorphingPath(toPath)) {\n toPath.__oldBuildPath(toPathProxy, toPath.shape);\n }\n else {\n toPath.buildPath(toPathProxy, toPath.shape);\n }\n var _a = alignBezierCurves(pathToBezierCurves(fromPathProxy), pathToBezierCurves(toPathProxy)), fromBezierCurves = _a[0], toBezierCurves = _a[1];\n var morphingData = findBestMorphingRotation(fromBezierCurves, toBezierCurves, 10, Math.PI);\n becomeIndividualMorphingPath(toPath, morphingData, 0);\n var oldDone = animationOpts && animationOpts.done;\n var oldAborted = animationOpts && animationOpts.aborted;\n var oldDuring = animationOpts && animationOpts.during;\n toPath.animateTo({\n __morphT: 1\n }, defaults({\n during: function (p) {\n toPath.dirtyShape();\n oldDuring && oldDuring(p);\n },\n done: function () {\n restoreIndividualMorphingPath(toPath);\n toPath.createPathProxy();\n toPath.dirtyShape();\n oldDone && oldDone();\n },\n aborted: function () {\n oldAborted && oldAborted();\n }\n }, animationOpts));\n return toPath;\n}\nfunction morphingPathBuildPath(path) {\n var morphingData = this.__morphingData;\n var t = this.__morphT;\n var onet = 1 - t;\n var newCp = [];\n for (var i = 0; i < morphingData.length; i++) {\n var item = morphingData[i];\n var from = item.from;\n var to = item.to;\n var angle = item.rotation * t;\n var fromCp = item.fromCp;\n var toCp = item.toCp;\n var sa = Math.sin(angle);\n var ca = Math.cos(angle);\n lerp(newCp, fromCp, toCp, t);\n for (var m = 0; m < from.length; m += 2) {\n var x0 = from[m];\n var y0 = from[m + 1];\n var x1 = to[m];\n var y1 = to[m + 1];\n var x = x0 * onet + x1 * t;\n var y = y0 * onet + y1 * t;\n tmpArr[m] = (x * ca - y * sa) + newCp[0];\n tmpArr[m + 1] = (x * sa + y * ca) + newCp[1];\n }\n for (var m = 0; m < from.length;) {\n if (m === 0) {\n path.moveTo(tmpArr[m++], tmpArr[m++]);\n }\n path.bezierCurveTo(tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++]);\n }\n }\n}\n;\nfunction becomeIndividualMorphingPath(path, morphingData, morphT) {\n if (isIndividualMorphingPath(path)) {\n updateIndividualMorphingPath(path, morphingData, morphT);\n return;\n }\n var morphingPath = path;\n morphingPath.__oldBuildPath = morphingPath.buildPath;\n morphingPath.buildPath = morphingPathBuildPath;\n updateIndividualMorphingPath(morphingPath, morphingData, morphT);\n}\nfunction updateIndividualMorphingPath(morphingPath, morphingData, morphT) {\n morphingPath.__morphingData = morphingData;\n morphingPath.__morphT = morphT;\n}\nfunction restoreIndividualMorphingPath(path) {\n if (isIndividualMorphingPath(path)) {\n path.buildPath = path.__oldBuildPath;\n path.__oldBuildPath = path.__morphingData = null;\n }\n}\nfunction isIndividualMorphingPath(path) {\n return path.__oldBuildPath != null;\n}\nexport function isCombiningPath(path) {\n return !!path.__combiningSubList;\n}\nexport function isInAnyMorphing(path) {\n return isIndividualMorphingPath(path) || isCombiningPath(path);\n}\nexport function combine(fromPathList, toPath, animationOpts, copyPropsIfDivided) {\n var fromIndividuals = [];\n var separateCount = 0;\n for (var i = 0; i < fromPathList.length; i++) {\n var fromPath = fromPathList[i];\n if (isCombiningPath(fromPath)) {\n var fromCombiningSubList = fromPath.__combiningSubList;\n for (var j = 0; j < fromCombiningSubList.length; j++) {\n fromIndividuals.push(fromCombiningSubList[j]);\n }\n separateCount += fromCombiningSubList.length;\n }\n else {\n fromIndividuals.push(fromPath);\n separateCount++;\n }\n }\n if (!separateCount) {\n return;\n }\n var dividingMethod = animationOpts ? animationOpts.dividingMethod : null;\n var toPathSplittedList = divideShape(toPath, separateCount, dividingMethod);\n assert(toPathSplittedList.length === separateCount);\n var oldDone = animationOpts && animationOpts.done;\n var oldAborted = animationOpts && animationOpts.aborted;\n var oldDuring = animationOpts && animationOpts.during;\n var doneCount = 0;\n var abortedCalled = false;\n var morphAnimationOpts = defaults({\n during: function (p) {\n oldDuring && oldDuring(p);\n },\n done: function () {\n doneCount++;\n if (doneCount === toPathSplittedList.length) {\n restoreCombiningPath(toPath);\n oldDone && oldDone();\n }\n },\n aborted: function () {\n if (!abortedCalled) {\n abortedCalled = true;\n oldAborted && oldAborted();\n }\n }\n }, animationOpts);\n for (var i = 0; i < separateCount; i++) {\n var from = fromIndividuals[i];\n var to = toPathSplittedList[i];\n copyPropsIfDivided && copyPropsIfDivided(toPath, to, true);\n morphPath(from, to, morphAnimationOpts);\n }\n becomeCombiningPath(toPath, toPathSplittedList);\n return {\n fromIndividuals: fromIndividuals,\n toIndividuals: toPathSplittedList,\n count: separateCount\n };\n}\nfunction becomeCombiningPath(path, combiningSubList) {\n if (isCombiningPath(path)) {\n updateCombiningPathSubList(path, combiningSubList);\n return;\n }\n var combiningPath = path;\n updateCombiningPathSubList(combiningPath, combiningSubList);\n combiningPath.__oldAddSelfToZr = path.addSelfToZr;\n combiningPath.__oldRemoveSelfFromZr = path.removeSelfFromZr;\n combiningPath.addSelfToZr = combiningAddSelfToZr;\n combiningPath.removeSelfFromZr = combiningRemoveSelfFromZr;\n combiningPath.__oldBuildPath = combiningPath.buildPath;\n combiningPath.buildPath = noop;\n combiningPath.childrenRef = combiningChildrenRef;\n}\nfunction restoreCombiningPath(path) {\n if (!isCombiningPath(path)) {\n return;\n }\n var combiningPath = path;\n updateCombiningPathSubList(combiningPath, null);\n combiningPath.addSelfToZr = combiningPath.__oldAddSelfToZr;\n combiningPath.removeSelfFromZr = combiningPath.__oldRemoveSelfFromZr;\n combiningPath.buildPath = combiningPath.__oldBuildPath;\n combiningPath.childrenRef =\n combiningPath.__combiningSubList =\n combiningPath.__oldAddSelfToZr =\n combiningPath.__oldRemoveSelfFromZr =\n combiningPath.__oldBuildPath = null;\n}\nfunction updateCombiningPathSubList(combiningPath, combiningSubList) {\n if (combiningPath.__combiningSubList !== combiningSubList) {\n combiningPathSubListAddRemoveWithZr(combiningPath, 'removeSelfFromZr');\n combiningPath.__combiningSubList = combiningSubList;\n if (combiningSubList) {\n for (var i = 0; i < combiningSubList.length; i++) {\n combiningSubList[i].parent = combiningPath;\n }\n }\n combiningPathSubListAddRemoveWithZr(combiningPath, 'addSelfToZr');\n }\n}\nfunction combiningAddSelfToZr(zr) {\n this.__oldAddSelfToZr(zr);\n combiningPathSubListAddRemoveWithZr(this, 'addSelfToZr');\n}\nfunction combiningPathSubListAddRemoveWithZr(path, method) {\n var combiningSubList = path.__combiningSubList;\n var zr = path.__zr;\n if (combiningSubList && zr) {\n for (var i = 0; i < combiningSubList.length; i++) {\n var child = combiningSubList[i];\n child[method](zr);\n }\n }\n}\nfunction combiningRemoveSelfFromZr(zr) {\n this.__oldRemoveSelfFromZr(zr);\n var combiningSubList = this.__combiningSubList;\n for (var i = 0; i < combiningSubList.length; i++) {\n var child = combiningSubList[i];\n child.removeSelfFromZr(zr);\n }\n}\nfunction combiningChildrenRef() {\n return this.__combiningSubList;\n}\nexport function separate(fromPath, toPathList, animationOpts, copyPropsIfDivided) {\n var toPathListLen = toPathList.length;\n var fromPathList;\n var dividingMethod = animationOpts ? animationOpts.dividingMethod : null;\n var copyProps = false;\n if (isCombiningPath(fromPath)) {\n var fromCombiningSubList = fromPath.__combiningSubList;\n if (fromCombiningSubList.length === toPathListLen) {\n fromPathList = fromCombiningSubList;\n }\n else {\n fromPathList = divideShape(fromPath, toPathListLen, dividingMethod);\n copyProps = true;\n }\n }\n else {\n fromPathList = divideShape(fromPath, toPathListLen, dividingMethod);\n copyProps = true;\n }\n assert(fromPathList.length === toPathListLen);\n for (var i = 0; i < toPathListLen; i++) {\n if (copyProps && copyPropsIfDivided) {\n copyPropsIfDivided(fromPath, fromPathList[i], false);\n }\n morphPath(fromPathList[i], toPathList[i], animationOpts);\n }\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toPathList,\n count: toPathListLen\n };\n}\nfunction divideShape(path, separateCount, dividingMethod) {\n return dividingMethod === 'duplicate'\n ? duplicateShape(path, separateCount)\n : splitShape(path, separateCount);\n}\nfunction splitShape(path, separateCount) {\n var resultPaths = [];\n if (separateCount <= 0) {\n return resultPaths;\n }\n if (separateCount === 1) {\n return duplicateShape(path, separateCount);\n }\n if (path instanceof Rect) {\n var toPathShape = path.shape;\n var splitPropIdx = toPathShape.height > toPathShape.width ? 1 : 0;\n var propWH = PROP_WH[splitPropIdx];\n var propXY = PROP_XY[splitPropIdx];\n var subWH = toPathShape[propWH] / separateCount;\n var xyCurr = toPathShape[propXY];\n for (var i = 0; i < separateCount; i++, xyCurr += subWH) {\n var subShape = {\n x: toPathShape.x,\n y: toPathShape.y,\n width: toPathShape.width,\n height: toPathShape.height\n };\n subShape[propXY] = xyCurr;\n subShape[propWH] = i < separateCount - 1\n ? subWH\n : toPathShape[propXY] + toPathShape[propWH] - xyCurr;\n var splitted = new Rect({ shape: subShape });\n resultPaths.push(splitted);\n }\n }\n else if (path instanceof Sector) {\n var toPathShape = path.shape;\n var clockwise = toPathShape.clockwise;\n var startAngle = toPathShape.startAngle;\n var endAngle = toPathShape.endAngle;\n var endAngleNormalized = normalizeRadian(startAngle, toPathShape.endAngle, clockwise);\n var step = (endAngleNormalized - startAngle) / separateCount;\n var angleCurr = startAngle;\n for (var i = 0; i < separateCount; i++, angleCurr += step) {\n var splitted = new Sector({\n shape: {\n cx: toPathShape.cx,\n cy: toPathShape.cy,\n r: toPathShape.r,\n r0: toPathShape.r0,\n clockwise: clockwise,\n startAngle: angleCurr,\n endAngle: i === separateCount - 1 ? endAngle : angleCurr + step\n }\n });\n resultPaths.push(splitted);\n }\n }\n else {\n return duplicateShape(path, separateCount);\n }\n return resultPaths;\n}\nfunction duplicateShape(path, separateCount) {\n var resultPaths = [];\n if (separateCount <= 0) {\n return resultPaths;\n }\n var ctor = path.constructor;\n for (var i = 0; i < separateCount; i++) {\n var sub = new ctor({\n shape: clone(path.shape)\n });\n resultPaths.push(sub);\n }\n return resultPaths;\n}\nfunction normalizeRadian(start, end, clockwise) {\n return end + PI2 * (Math[clockwise ? 'ceil' : 'floor']((start - end) / PI2));\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { hasOwn, assert, isString, retrieve2, retrieve3, defaults, each, keys, isArrayLike, bind, isFunction, eqNaN, indexOf, clone } from 'zrender/lib/core/util';\nimport * as graphicUtil from '../../util/graphic';\nimport { setDefaultStateProxy, enableHoverEmphasis } from '../../util/states';\nimport * as labelStyleHelper from '../../label/labelStyle';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport createListFromArray from '../helper/createListFromArray';\nimport { getLayoutOnAxis } from '../../layout/barGrid';\nimport DataDiffer from '../../data/DataDiffer';\nimport SeriesModel from '../../model/Series';\nimport ChartView from '../../view/Chart';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport prepareCartesian2d from '../../coord/cartesian/prepareCustom';\nimport prepareGeo from '../../coord/geo/prepareCustom';\nimport prepareSingleAxis from '../../coord/single/prepareCustom';\nimport preparePolar from '../../coord/polar/prepareCustom';\nimport prepareCalendar from '../../coord/calendar/prepareCustom';\nimport { makeInner, normalizeToArray } from '../../util/model';\nimport { convertToEC4StyleForCustomSerise, isEC4CompatibleStyle, convertFromEC4CompatibleStyle, warnDeprecated } from '../../util/styleCompat';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport { cloneValue } from 'zrender/lib/animation/Animator';\nimport { warn, throwError } from '../../util/log';\nimport { combine, isInAnyMorphing, morphPath, isCombiningPath, separate } from 'zrender/lib/tool/morphPath';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nvar inner = makeInner();\nvar TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n};\nvar transformPropNamesStr = keys(TRANSFORM_PROPS).join(', ');\n; // Also compat with ec4, where\n// `visual('color') visual('borderColor')` is supported.\n\nvar STYLE_VISUAL_TYPE = {\n color: 'fill',\n borderColor: 'stroke'\n};\nvar NON_STYLE_VISUAL_PROPS = {\n symbol: 1,\n symbolSize: 1,\n symbolKeepAspect: 1,\n legendIcon: 1,\n visualMeta: 1,\n liftZ: 1,\n decal: 1\n};\nvar EMPHASIS = 'emphasis';\nvar NORMAL = 'normal';\nvar BLUR = 'blur';\nvar SELECT = 'select';\nvar STATES = [NORMAL, EMPHASIS, BLUR, SELECT];\nvar PATH_ITEM_STYLE = {\n normal: ['itemStyle'],\n emphasis: [EMPHASIS, 'itemStyle'],\n blur: [BLUR, 'itemStyle'],\n select: [SELECT, 'itemStyle']\n};\nvar PATH_LABEL = {\n normal: ['label'],\n emphasis: [EMPHASIS, 'label'],\n blur: [BLUR, 'label'],\n select: [SELECT, 'label']\n}; // Use prefix to avoid index to be the same as el.name,\n// which will cause weird update animation.\n\nvar GROUP_DIFF_PREFIX = 'e\\0\\0';\nvar attachedTxInfoTmp = {\n normal: {},\n emphasis: {},\n blur: {},\n select: {}\n};\nvar LEGACY_TRANSFORM_PROPS = {\n position: ['x', 'y'],\n scale: ['scaleX', 'scaleY'],\n origin: ['originX', 'originY']\n};\nvar tmpTransformable = new Transformable();\n/**\n * To reduce total package size of each coordinate systems, the modules `prepareCustom`\n * of each coordinate systems are not required by each coordinate systems directly, but\n * required by the module `custom`.\n *\n * prepareInfoForCustomSeries {Function}: optional\n * @return {Object} {coordSys: {...}, api: {\n * coord: function (data, clamp) {}, // return point in global.\n * size: function (dataSize, dataItem) {} // return size of each axis in coordSys.\n * }}\n */\n\nvar prepareCustoms = {\n cartesian2d: prepareCartesian2d,\n geo: prepareGeo,\n singleAxis: prepareSingleAxis,\n polar: preparePolar,\n calendar: prepareCalendar\n};\n\nvar CustomSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(CustomSeriesModel, _super);\n\n function CustomSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CustomSeriesModel.type;\n return _this;\n }\n\n CustomSeriesModel.prototype.optionUpdated = function () {\n this.currentZLevel = this.get('zlevel', true);\n this.currentZ = this.get('z', true);\n };\n\n CustomSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this);\n };\n\n CustomSeriesModel.prototype.getDataParams = function (dataIndex, dataType, el) {\n var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);\n\n el && (params.info = inner(el).info);\n return params;\n };\n\n CustomSeriesModel.type = 'series.custom';\n CustomSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n CustomSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // Custom series will not clip by default.\n // Some case will use custom series to draw label\n // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight\n clip: false // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Polar coordinate system\n // polarIndex: 0,\n // Geo coordinate system\n // geoIndex: 0,\n\n };\n return CustomSeriesModel;\n}(SeriesModel);\n\nvar CustomSeriesView =\n/** @class */\nfunction (_super) {\n __extends(CustomSeriesView, _super);\n\n function CustomSeriesView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CustomSeriesView.type;\n return _this;\n }\n\n CustomSeriesView.prototype.render = function (customSeries, ecModel, api, payload) {\n var oldData = this._data;\n var data = customSeries.getData();\n var group = this.group;\n var renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n if (!oldData) {\n // Previous render is incremental render or first render.\n // Needs remove the incremental rendered elements.\n group.removeAll();\n } // By default, merge mode is applied. In most cases, custom series is\n // used in the scenario that data amount is not large but graphic elements\n // is complicated, where merge mode is probably necessary for optimization.\n // For example, reuse graphic elements and only update the transform when\n // roam or data zoom according to `actionType`.\n\n\n var transOpt = customSeries.__transientTransitionOpt; // Enable user to disable transition animation by both set\n // `from` and `to` dimension as `null`/`undefined`.\n\n if (transOpt && (transOpt.from == null || transOpt.to == null)) {\n oldData && oldData.each(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n });\n data.each(function (newIdx) {\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, null);\n });\n } else {\n var morphPreparation_1 = new MorphPreparation(customSeries, transOpt);\n var diffMode = transOpt ? 'multiple' : 'oneToOne';\n new DataDiffer(oldData ? oldData.getIndices() : [], data.getIndices(), createGetKey(oldData, diffMode, transOpt && transOpt.from), createGetKey(data, diffMode, transOpt && transOpt.to), null, diffMode).add(function (newIdx) {\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, null);\n }).remove(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n }).update(function (newIdx, oldIdx) {\n morphPreparation_1.reset('oneToOne');\n var oldEl = oldData.getItemGraphicEl(oldIdx);\n morphPreparation_1.findAndAddFrom(oldEl); // PENDING:\n // if may morph, currently we alway recreate the whole el.\n // because if reuse some of the el in the group tree, the old el has to\n // be removed from the group, and consequently we can not calculate\n // the \"global transition\" of the old element.\n // But is there performance issue?\n\n if (morphPreparation_1.hasFrom()) {\n removeElementDirectly(oldEl, group);\n oldEl = null;\n }\n\n createOrUpdateItem(api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group, data, morphPreparation_1);\n morphPreparation_1.applyMorphing();\n }).updateManyToOne(function (newIdx, oldIndices) {\n morphPreparation_1.reset('manyToOne');\n\n for (var i = 0; i < oldIndices.length; i++) {\n var oldEl = oldData.getItemGraphicEl(oldIndices[i]);\n morphPreparation_1.findAndAddFrom(oldEl);\n removeElementDirectly(oldEl, group);\n }\n\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, morphPreparation_1);\n morphPreparation_1.applyMorphing();\n }).updateOneToMany(function (newIndices, oldIdx) {\n morphPreparation_1.reset('oneToMany');\n var newLen = newIndices.length;\n var oldEl = oldData.getItemGraphicEl(oldIdx);\n morphPreparation_1.findAndAddFrom(oldEl);\n removeElementDirectly(oldEl, group);\n\n for (var i = 0; i < newLen; i++) {\n createOrUpdateItem(api, null, newIndices[i], renderItem(newIndices[i], payload), customSeries, group, data, morphPreparation_1);\n }\n\n morphPreparation_1.applyMorphing();\n }).execute();\n } // Do clipping\n\n\n var clipPath = customSeries.get('clip', true) ? createClipPath(customSeries.coordinateSystem, false, customSeries) : null;\n\n if (clipPath) {\n group.setClipPath(clipPath);\n } else {\n group.removeClipPath();\n }\n\n this._data = data;\n };\n\n CustomSeriesView.prototype.incrementalPrepareRender = function (customSeries, ecModel, api) {\n this.group.removeAll();\n this._data = null;\n };\n\n CustomSeriesView.prototype.incrementalRender = function (params, customSeries, ecModel, api, payload) {\n var data = customSeries.getData();\n var renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n function setIncrementalAndHoverLayer(el) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = params.start; idx < params.end; idx++) {\n var el = createOrUpdateItem(null, null, idx, renderItem(idx, payload), customSeries, this.group, data, null);\n el && el.traverse(setIncrementalAndHoverLayer);\n }\n };\n\n CustomSeriesView.prototype.filterForExposedEvent = function (eventType, query, targetEl, packedEvent) {\n var elementName = query.element;\n\n if (elementName == null || targetEl.name === elementName) {\n return true;\n } // Enable to give a name on a group made by `renderItem`, and listen\n // events that triggerd by its descendents.\n\n\n while ((targetEl = targetEl.__hostTarget || targetEl.parent) && targetEl !== this.group) {\n if (targetEl.name === elementName) {\n return true;\n }\n }\n\n return false;\n };\n\n CustomSeriesView.type = 'custom';\n return CustomSeriesView;\n}(ChartView);\n\nfunction createGetKey(data, diffMode, dimension) {\n if (!data) {\n return;\n }\n\n if (diffMode === 'oneToOne') {\n return function (rawIdx, dataIndex) {\n return data.getId(dataIndex);\n };\n }\n\n var diffByDimName = data.getDimension(dimension);\n var dimInfo = data.getDimensionInfo(diffByDimName);\n\n if (!dimInfo) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = dimension + \" is not a valid dimension.\";\n }\n\n throwError(errMsg);\n }\n\n var ordinalMeta = dimInfo.ordinalMeta;\n return function (rawIdx, dataIndex) {\n var key = data.get(diffByDimName, dataIndex);\n\n if (ordinalMeta) {\n key = ordinalMeta.categories[key];\n }\n\n return key == null || eqNaN(key) ? rawIdx + '' : '_ec_' + key;\n };\n}\n\nfunction createEl(elOption) {\n var graphicType = elOption.type;\n var el; // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n\n if (graphicType === 'path') {\n var shape = elOption.shape; // Using pathRect brings convenience to users sacle svg path.\n\n var pathRect = shape.width != null && shape.height != null ? {\n x: shape.x || 0,\n y: shape.y || 0,\n width: shape.width,\n height: shape.height\n } : null;\n var pathData = getPathData(shape); // Path is also used for icon, so layout 'center' by default.\n\n el = graphicUtil.makePath(pathData, null, pathRect, shape.layout || 'center');\n inner(el).customPathData = pathData;\n } else if (graphicType === 'image') {\n el = new graphicUtil.Image({});\n inner(el).customImagePath = elOption.style.image;\n } else if (graphicType === 'text') {\n el = new graphicUtil.Text({}); // inner(el).customText = (elOption.style as TextStyleProps).text;\n } else if (graphicType === 'group') {\n el = new graphicUtil.Group();\n } else if (graphicType === 'compoundPath') {\n throw new Error('\"compoundPath\" is not supported yet.');\n } else {\n var Clz = graphicUtil.getShapeClass(graphicType);\n\n if (!Clz) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'graphic type \"' + graphicType + '\" can not be found.';\n }\n\n throwError(errMsg);\n }\n\n el = new Clz();\n }\n\n inner(el).customGraphicType = graphicType;\n el.name = elOption.name; // Compat ec4: the default z2 lift is 1. If changing the number,\n // some cases probably be broken: hierarchy layout along z, like circle packing,\n // where emphasis only intending to modify color/border rather than lift z2.\n\n el.z2EmphasisLift = 1;\n el.z2SelectLift = 1;\n return el;\n}\n/**\n * ----------------------------------------------------------\n * [STRATEGY_MERGE] Merge properties or erase all properties:\n *\n * Based on the fact that the existing zr element probably be reused, we now consider whether\n * merge or erase all properties to the exsiting elements.\n * That is, if a certain props is not specified in the lastest return of `renderItem`:\n * + \"Merge\" means that do not modify the value on the existing element.\n * + \"Erase all\" means that use a default value to the existing element.\n *\n * \"Merge\" might bring some unexpected state retaining for users and \"erase all\" seams to be\n * more safe. \"erase all\" force users to specify all of the props each time, which is recommanded\n * in most cases.\n * But \"erase all\" theoretically disables the chance of performance optimization (e.g., just\n * generete shape and style at the first time rather than always do that).\n * So we still use \"merge\" rather than \"erase all\". If users need \"erase all\", they can\n * simple always set all of the props each time.\n * Some \"object-like\" config like `textConfig`, `textContent`, `style` which are not needed for\n * every elment, so we replace them only when user specify them. And the that is a total replace.\n *\n * TODO: there is no hint of 'isFirst' to users. So the performance enhancement can not be\n * performed yet. Consider the case:\n * (1) setOption to \"mergeChildren\" with a smaller children count\n * (2) Use dataZoom to make an item disappear.\n * (3) User dataZoom to make the item display again. At that time, renderItem need to return the\n * full option rather than partial option to recreate the element.\n *\n * ----------------------------------------------\n * [STRATEGY_NULL] `hasOwnProperty` or `== null`:\n *\n * Ditinguishing \"own property\" probably bring little trouble to user when make el options.\n * So we trade a {xx: null} or {xx: undefined} as \"not specified\" if possible rather than\n * \"set them to null/undefined\". In most cases, props can not be cleared. Some typicall\n * clearable props like `style`/`textConfig`/`textContent` we enable `false` to means\n * \"clear\". In some othere special cases that the prop is able to set as null/undefined,\n * but not suitable to use `false`, `hasOwnProperty` is checked.\n *\n * ---------------------------------------------\n * [STRATEGY_TRANSITION] The rule of transition:\n * + For props on the root level of a element:\n * If there is no `transition` specified, tansform props will be transitioned by default,\n * which is the same as the previous setting in echarts4 and suitable for the scenario\n * of dataZoom change.\n * If `transition` specified, only the specified props will be transitioned.\n * + For props in `shape` and `style`:\n * Only props specified in `transition` will be transitioned.\n * + Break:\n * Since ec5, do not make transition to shape by default, because it might result in\n * performance issue (especially `points` of polygon) and do not necessary in most cases.\n *\n * @return if `isMorphTo`, return `allPropsFinal`.\n */\n\n\nfunction updateElNormal( // Can be null/undefined\napi, el, // Whether be a morph target.\nisMorphTo, dataIndex, elOption, styleOpt, attachedTxInfo, seriesModel, isInit, isTextContent) {\n var transFromProps = {};\n var allPropsFinal = {};\n var elDisplayable = el.isGroup ? null : el; // If be \"morph to\", delay the `updateElNormal` when all of the els in\n // this data item processed. Because at that time we can get all of the\n // \"morph from\" and make correct separate/combine.\n\n !isMorphTo && prepareShapeOrExtraTransitionFrom('shape', el, null, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('shape', elOption, allPropsFinal);\n !isMorphTo && prepareShapeOrExtraTransitionFrom('extra', el, null, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('extra', elOption, allPropsFinal);\n !isMorphTo && prepareTransformTransitionFrom(el, null, elOption, transFromProps, isInit);\n prepareTransformAllPropsFinal(elOption, allPropsFinal);\n var txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg;\n\n if (txCfgOpt) {\n // PENDING: whether use user object directly rather than clone?\n // TODO:5.0 textConfig transition animation?\n el.setTextConfig(txCfgOpt);\n }\n\n if (el.type === 'text' && styleOpt) {\n var textOptionStyle = styleOpt; // Compatible with ec4: if `textFill` or `textStroke` exists use them.\n\n hasOwn(textOptionStyle, 'textFill') && (textOptionStyle.fill = textOptionStyle.textFill);\n hasOwn(textOptionStyle, 'textStroke') && (textOptionStyle.stroke = textOptionStyle.textStroke);\n }\n\n if (styleOpt) {\n var decalPattern = void 0;\n var decalObj = isPath(el) ? styleOpt.decal : null;\n\n if (api && decalObj) {\n decalObj.dirty = true;\n decalPattern = createOrUpdatePatternFromDecal(decalObj, api);\n } // Always overwrite in case user specify this prop.\n\n\n styleOpt.__decalPattern = decalPattern;\n }\n\n !isMorphTo && prepareStyleTransitionFrom(el, null, elOption, styleOpt, transFromProps, isInit);\n\n if (elDisplayable) {\n hasOwn(elOption, 'invisible') && (elDisplayable.invisible = elOption.invisible);\n } // If `isMorphTo`, we should not update these props to el directly, otherwise,\n // when applying morph finally, the original prop are missing for making \"animation from\".\n\n\n if (!isMorphTo) {\n applyPropsFinal(el, allPropsFinal, styleOpt);\n applyTransitionFrom(el, dataIndex, elOption, seriesModel, transFromProps, isInit);\n } // Merge by default.\n\n\n hasOwn(elOption, 'silent') && (el.silent = elOption.silent);\n hasOwn(elOption, 'ignore') && (el.ignore = elOption.ignore);\n\n if (!isTextContent) {\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n // Update them only when user specified, otherwise, remain.\n hasOwn(elOption, 'info') && (inner(el).info = elOption.info);\n }\n\n styleOpt ? el.dirty() : el.markRedraw();\n return isMorphTo ? allPropsFinal : null;\n}\n\nfunction applyPropsFinal(el, // Can be null/undefined\nallPropsFinal, styleOpt) {\n var elDisplayable = el.isGroup ? null : el;\n\n if (elDisplayable && styleOpt) {\n var decalPattern = styleOpt.__decalPattern;\n var originalDecalObj = void 0;\n\n if (decalPattern) {\n originalDecalObj = styleOpt.decal;\n styleOpt.decal = decalPattern;\n } // PENDING: here the input style object is used directly.\n // Good for performance but bad for compatibility control.\n\n\n elDisplayable.useStyle(styleOpt);\n\n if (decalPattern) {\n styleOpt.decal = originalDecalObj;\n } // When style object changed, how to trade the existing animation?\n // It is probably conplicated and not needed to cover all the cases.\n // But still need consider the case:\n // (1) When using init animation on `style.opacity`, and before the animation\n // ended users triggers an update by mousewhell. At that time the init\n // animation should better be continued rather than terminated.\n // So after `useStyle` called, we should change the animation target manually\n // to continue the effect of the init animation.\n // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need\n // to update the value to `val2` and no animation declared, should be terminate\n // the previous animation or just modify the target of the animation?\n // Therotically That will happen not only on `style` but also on `shape` and\n // `transfrom` props. But we haven't handle this case at present yet.\n // (3) PENDING: Is it proper to visit `animators` and `targetName`?\n\n\n var animators = elDisplayable.animators;\n\n for (var i = 0; i < animators.length; i++) {\n var animator = animators[i]; // targetName is the \"topKey\".\n\n if (animator.targetName === 'style') {\n animator.changeTarget(elDisplayable.style);\n }\n }\n } // Set el to the final state firstly.\n\n\n allPropsFinal && el.attr(allPropsFinal);\n}\n\nfunction applyTransitionFrom(el, dataIndex, elOption, seriesModel, // Can be null/undefined\ntransFromProps, isInit) {\n if (transFromProps) {\n // Do not use `el.updateDuringAnimation` here becuase `el.updateDuringAnimation` will\n // be called mutiple time in each animation frame. For example, if both \"transform\" props\n // and shape props and style props changed, it will generate three animator and called\n // one-by-one in each animation frame.\n // We use the during in `animateTo/From` params.\n var userDuring = elOption.during; // For simplicity, if during not specified, the previous during will not work any more.\n\n inner(el).userDuring = userDuring;\n var cfgDuringCall = userDuring ? bind(duringCall, {\n el: el,\n userDuring: userDuring\n }) : null;\n var cfg = {\n dataIndex: dataIndex,\n isFrom: true,\n during: cfgDuringCall\n };\n isInit ? graphicUtil.initProps(el, transFromProps, seriesModel, cfg) : graphicUtil.updateProps(el, transFromProps, seriesModel, cfg);\n }\n} // See [STRATEGY_TRANSITION]\n\n\nfunction prepareShapeOrExtraTransitionFrom(mainAttr, el, morphFromEl, elOption, transFromProps, isInit) {\n var attrOpt = elOption[mainAttr];\n\n if (!attrOpt) {\n return;\n }\n\n var elPropsInAttr = el[mainAttr];\n var transFromPropsInAttr;\n var enterFrom = attrOpt.enterFrom;\n\n if (isInit && enterFrom) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var enterFromKeys = keys(enterFrom);\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n // `enterFrom` props are not necessarily also declared in `shape`/`style`/...,\n // for example, `opacity` can only declared in `enterFrom` but not in `style`.\n var key = enterFromKeys[i]; // Do not clone, animator will perform that clone.\n\n transFromPropsInAttr[key] = enterFrom[key];\n }\n }\n\n if (!isInit && elPropsInAttr // Just ignore shape animation in morphing.\n && !(morphFromEl != null && mainAttr === 'shape')) {\n if (attrOpt.transition) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var transitionKeys = normalizeToArray(attrOpt.transition);\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n var elVal = elPropsInAttr[key];\n\n if (process.env.NODE_ENV !== 'production') {\n checkNonStyleTansitionRefer(key, attrOpt[key], elVal);\n } // Do not clone, see `checkNonStyleTansitionRefer`.\n\n\n transFromPropsInAttr[key] = elVal;\n }\n } else if (indexOf(elOption.transition, mainAttr) >= 0) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var elPropsInAttrKeys = keys(elPropsInAttr);\n\n for (var i = 0; i < elPropsInAttrKeys.length; i++) {\n var key = elPropsInAttrKeys[i];\n var elVal = elPropsInAttr[key];\n\n if (isNonStyleTransitionEnabled(attrOpt[key], elVal)) {\n transFromPropsInAttr[key] = elVal;\n }\n }\n }\n }\n\n var leaveTo = attrOpt.leaveTo;\n\n if (leaveTo) {\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToPropsInAttr = leaveToProps[mainAttr] || (leaveToProps[mainAttr] = {});\n var leaveToKeys = keys(leaveTo);\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n leaveToPropsInAttr[key] = leaveTo[key];\n }\n }\n}\n\nfunction prepareShapeOrExtraAllPropsFinal(mainAttr, elOption, allProps) {\n var attrOpt = elOption[mainAttr];\n\n if (!attrOpt) {\n return;\n }\n\n var allPropsInAttr = allProps[mainAttr] = {};\n var keysInAttr = keys(attrOpt);\n\n for (var i = 0; i < keysInAttr.length; i++) {\n var key = keysInAttr[i]; // To avoid share one object with different element, and\n // to avoid user modify the object inexpectedly, have to clone.\n\n allPropsInAttr[key] = cloneValue(attrOpt[key]);\n }\n} // See [STRATEGY_TRANSITION].\n\n\nfunction prepareTransformTransitionFrom(el, morphFromEl, elOption, transFromProps, isInit) {\n var enterFrom = elOption.enterFrom;\n\n if (isInit && enterFrom) {\n var enterFromKeys = keys(enterFrom);\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n var key = enterFromKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.enterFrom');\n } // Do not clone, animator will perform that clone.\n\n\n transFromProps[key] = enterFrom[key];\n }\n }\n\n if (!isInit) {\n // If morphing, force transition all transform props.\n // otherwise might have incorrect morphing animation.\n if (morphFromEl) {\n var fromTransformable = calcOldElLocalTransformBasedOnNewElParent(morphFromEl, el);\n setTransformPropToTransitionFrom(transFromProps, 'x', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'y', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'scaleX', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'scaleY', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'originX', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'originY', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'rotation', fromTransformable);\n } else if (elOption.transition) {\n var transitionKeys = normalizeToArray(elOption.transition);\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n\n if (key === 'style' || key === 'shape' || key === 'extra') {\n continue;\n }\n\n var elVal = el[key];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.transition');\n checkNonStyleTansitionRefer(key, elOption[key], elVal);\n } // Do not clone, see `checkNonStyleTansitionRefer`.\n\n\n transFromProps[key] = elVal;\n }\n } // This default transition see [STRATEGY_TRANSITION]\n else {\n setTransformPropToTransitionFrom(transFromProps, 'x', el);\n setTransformPropToTransitionFrom(transFromProps, 'y', el);\n }\n }\n\n var leaveTo = elOption.leaveTo;\n\n if (leaveTo) {\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToKeys = keys(leaveTo);\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.leaveTo');\n }\n\n leaveToProps[key] = leaveTo[key];\n }\n }\n}\n\nfunction prepareTransformAllPropsFinal(elOption, allProps) {\n setLagecyTransformProp(elOption, allProps, 'position');\n setLagecyTransformProp(elOption, allProps, 'scale');\n setLagecyTransformProp(elOption, allProps, 'origin');\n setTransformProp(elOption, allProps, 'x');\n setTransformProp(elOption, allProps, 'y');\n setTransformProp(elOption, allProps, 'scaleX');\n setTransformProp(elOption, allProps, 'scaleY');\n setTransformProp(elOption, allProps, 'originX');\n setTransformProp(elOption, allProps, 'originY');\n setTransformProp(elOption, allProps, 'rotation');\n} // See [STRATEGY_TRANSITION].\n\n\nfunction prepareStyleTransitionFrom(el, morphFromEl, elOption, styleOpt, transFromProps, isInit) {\n if (!styleOpt) {\n return;\n } // At present in \"many-to-one\"/\"one-to-many\" case, to not support \"many\" have\n // different styles and make style transitions. That might be a rare case.\n\n\n var fromEl = morphFromEl || el;\n var fromElStyle = fromEl.style;\n var transFromStyleProps;\n var enterFrom = styleOpt.enterFrom;\n\n if (isInit && enterFrom) {\n var enterFromKeys = keys(enterFrom);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n var key = enterFromKeys[i]; // Do not clone, animator will perform that clone.\n\n transFromStyleProps[key] = enterFrom[key];\n }\n }\n\n if (!isInit && fromElStyle) {\n if (styleOpt.transition) {\n var transitionKeys = normalizeToArray(styleOpt.transition);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n var elVal = fromElStyle[key]; // Do not clone, see `checkNonStyleTansitionRefer`.\n\n transFromStyleProps[key] = elVal;\n }\n } else if (el.getAnimationStyleProps && indexOf(elOption.transition, 'style') >= 0) {\n var animationProps = el.getAnimationStyleProps();\n var animationStyleProps = animationProps ? animationProps.style : null;\n\n if (animationStyleProps) {\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n var styleKeys = keys(styleOpt);\n\n for (var i = 0; i < styleKeys.length; i++) {\n var key = styleKeys[i];\n\n if (animationStyleProps[key]) {\n var elVal = fromElStyle[key];\n transFromStyleProps[key] = elVal;\n }\n }\n }\n }\n }\n\n var leaveTo = styleOpt.leaveTo;\n\n if (leaveTo) {\n var leaveToKeys = keys(leaveTo);\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToStyleProps = leaveToProps.style || (leaveToProps.style = {});\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n leaveToStyleProps[key] = leaveTo[key];\n }\n }\n}\n/**\n * If make \"transform\"(x/y/scaleX/scaleY/orient/originX/originY) transition between\n * two path elements that have different hierarchy, before we retrieve the \"from\" props,\n * we have to calculate the local transition of the \"oldPath\" based on the parent of\n * the \"newPath\".\n * At present, the case only happend in \"morphing\". Without morphing, the transform\n * transition are all between elements in the same hierarchy, where this kind of process\n * is not needed.\n *\n * [CAVEAT]:\n * This method makes sense only if: (very tricky)\n * (1) \"newEl\" has been added to its final parent.\n * (2) Local transform props of \"newPath.parent\" are not at their final value but already\n * have been at the \"from value\".\n * This is currently ensured by:\n * (2.1) \"graphicUtil.animationFrom\", which will set the element to the \"from value\"\n * immediately.\n * (2.2) \"morph\" option is not allowed to be set on Group, so all of the groups have\n * been finished their \"updateElNormal\" when calling this method in morphing process.\n */\n\n\nfunction calcOldElLocalTransformBasedOnNewElParent(oldEl, newEl) {\n if (!oldEl || oldEl === newEl || oldEl.parent === newEl.parent) {\n return oldEl;\n } // Not sure oldEl is rendered (may have \"lazyUpdate\"),\n // so always call `getComputedTransform`.\n\n\n var tmpM = tmpTransformable.transform || (tmpTransformable.transform = matrix.identity([]));\n var oldGlobalTransform = oldEl.getComputedTransform();\n oldGlobalTransform ? matrix.copy(tmpM, oldGlobalTransform) : matrix.identity(tmpM);\n var newParent = newEl.parent;\n\n if (newParent) {\n newParent.getComputedTransform();\n }\n\n tmpTransformable.originX = oldEl.originX;\n tmpTransformable.originY = oldEl.originY;\n tmpTransformable.parent = newParent;\n tmpTransformable.decomposeTransform();\n return tmpTransformable;\n}\n\nvar checkNonStyleTansitionRefer;\n\nif (process.env.NODE_ENV !== 'production') {\n checkNonStyleTansitionRefer = function (propName, optVal, elVal) {\n if (!isArrayLike(optVal)) {\n assert(optVal != null && isFinite(optVal), 'Prop `' + propName + '` must refer to a finite number or ArrayLike for transition.');\n } else {\n // Try not to copy array for performance, but if user use the same object in different\n // call of `renderItem`, it will casue animation transition fail.\n assert(optVal !== elVal, 'Prop `' + propName + '` must use different Array object each time for transition.');\n }\n };\n}\n\nfunction isNonStyleTransitionEnabled(optVal, elVal) {\n // The same as `checkNonStyleTansitionRefer`.\n return !isArrayLike(optVal) ? optVal != null && isFinite(optVal) : optVal !== elVal;\n}\n\nvar checkTransformPropRefer;\n\nif (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer = function (key, usedIn) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Prop `' + key + '` is not a permitted in `' + usedIn + '`. ' + 'Only `' + keys(TRANSFORM_PROPS).join('`, `') + '` are permitted.');\n };\n}\n\nfunction getOrCreateLeaveToPropsFromEl(el) {\n var innerEl = inner(el);\n return innerEl.leaveToProps || (innerEl.leaveToProps = {});\n} // Use it to avoid it be exposed to user.\n\n\nvar tmpDuringScope = {};\nvar customDuringAPI = {\n // Usually other props do not need to be changed in animation during.\n setTransform: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `setTransform`.');\n }\n\n tmpDuringScope.el[key] = val;\n return this;\n },\n getTransform: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `getTransform`.');\n }\n\n return tmpDuringScope.el[key];\n },\n setShape: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var shape = tmpDuringScope.el.shape || (tmpDuringScope.el.shape = {});\n shape[key] = val;\n tmpDuringScope.isShapeDirty = true;\n return this;\n },\n getShape: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var shape = tmpDuringScope.el.shape;\n\n if (shape) {\n return shape[key];\n }\n },\n setStyle: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var style = tmpDuringScope.el.style;\n\n if (style) {\n if (process.env.NODE_ENV !== 'production') {\n if (eqNaN(val)) {\n warn('style.' + key + ' must not be assigned with NaN.');\n }\n }\n\n style[key] = val;\n tmpDuringScope.isStyleDirty = true;\n }\n\n return this;\n },\n getStyle: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var style = tmpDuringScope.el.style;\n\n if (style) {\n return style[key];\n }\n },\n setExtra: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var extra = tmpDuringScope.el.extra || (tmpDuringScope.el.extra = {});\n extra[key] = val;\n return this;\n },\n getExtra: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var extra = tmpDuringScope.el.extra;\n\n if (extra) {\n return extra[key];\n }\n }\n};\n\nfunction assertNotReserved(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (key === 'transition' || key === 'enterFrom' || key === 'leaveTo') {\n throw new Error('key must not be \"' + key + '\"');\n }\n }\n}\n\nfunction duringCall() {\n // Do not provide \"percent\" until some requirements come.\n // Because consider thies case:\n // enterFrom: {x: 100, y: 30}, transition: 'x'.\n // And enter duration is different from update duration.\n // Thus it might be confused about the meaning of \"percent\" in during callback.\n var scope = this;\n var el = scope.el;\n\n if (!el) {\n return;\n } // If el is remove from zr by reason like legend, during still need to called,\n // becuase el will be added back to zr and the prop value should not be incorrect.\n\n\n var newstUserDuring = inner(el).userDuring;\n var scopeUserDuring = scope.userDuring; // Ensured a during is only called once in each animation frame.\n // If a during is called multiple times in one frame, maybe some users' calulation logic\n // might be wrong (not sure whether this usage exists).\n // The case of a during might be called twice can be: by default there is a animator for\n // 'x', 'y' when init. Before the init animation finished, call `setOption` to start\n // another animators for 'style'/'shape'/'extra'.\n\n if (newstUserDuring !== scopeUserDuring) {\n // release\n scope.el = scope.userDuring = null;\n return;\n }\n\n tmpDuringScope.el = el;\n tmpDuringScope.isShapeDirty = false;\n tmpDuringScope.isStyleDirty = false; // Give no `this` to user in \"during\" calling.\n\n scopeUserDuring(customDuringAPI);\n\n if (tmpDuringScope.isShapeDirty && el.dirtyShape) {\n el.dirtyShape();\n }\n\n if (tmpDuringScope.isStyleDirty && el.dirtyStyle) {\n el.dirtyStyle();\n } // markRedraw() will be called by default in during.\n // FIXME `this.markRedraw();` directly ?\n // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`,\n // consider the issue that the prop might be incorrect when return to \"normal\" state.\n\n}\n\nfunction updateElOnState(state, el, elStateOpt, styleOpt, attachedTxInfo, isRoot, isTextContent) {\n var elDisplayable = el.isGroup ? null : el;\n var txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg; // PENDING:5.0 support customize scale change and transition animation?\n\n if (elDisplayable) {\n // By default support auto lift color when hover whether `emphasis` specified.\n var stateObj = elDisplayable.ensureState(state);\n\n if (styleOpt === false) {\n var existingEmphasisState = elDisplayable.getState(state);\n\n if (existingEmphasisState) {\n existingEmphasisState.style = null;\n }\n } else {\n // style is needed to enable defaut emphasis.\n stateObj.style = styleOpt || null;\n } // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,\n // remove hover style.\n // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not\n // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.\n\n\n if (txCfgOpt) {\n stateObj.textConfig = txCfgOpt;\n }\n\n setDefaultStateProxy(elDisplayable);\n }\n}\n\nfunction updateZ(el, elOption, seriesModel, attachedTxInfo) {\n // Group not support textContent and not support z yet.\n if (el.isGroup) {\n return;\n }\n\n var elDisplayable = el;\n var currentZ = seriesModel.currentZ;\n var currentZLevel = seriesModel.currentZLevel; // Always erase.\n\n elDisplayable.z = currentZ;\n elDisplayable.zlevel = currentZLevel; // z2 must not be null/undefined, otherwise sort error may occur.\n\n var optZ2 = elOption.z2;\n optZ2 != null && (elDisplayable.z2 = optZ2 || 0);\n\n for (var i = 0; i < STATES.length; i++) {\n updateZForEachState(elDisplayable, elOption, STATES[i]);\n }\n}\n\nfunction updateZForEachState(elDisplayable, elOption, state) {\n var isNormal = state === NORMAL;\n var elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state);\n var optZ2 = elStateOpt ? elStateOpt.z2 : null;\n var stateObj;\n\n if (optZ2 != null) {\n // Do not `ensureState` until required.\n stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);\n stateObj.z2 = optZ2 || 0;\n }\n}\n\nfunction setLagecyTransformProp(elOption, targetProps, legacyName, fromTransformable // If provided, retrieve from the element.\n) {\n var legacyArr = elOption[legacyName];\n var xyName = LEGACY_TRANSFORM_PROPS[legacyName];\n\n if (legacyArr) {\n if (fromTransformable) {\n targetProps[xyName[0]] = fromTransformable[xyName[0]];\n targetProps[xyName[1]] = fromTransformable[xyName[1]];\n } else {\n targetProps[xyName[0]] = legacyArr[0];\n targetProps[xyName[1]] = legacyArr[1];\n }\n }\n}\n\nfunction setTransformProp(elOption, allProps, name, fromTransformable // If provided, retrieve from the element.\n) {\n if (elOption[name] != null) {\n allProps[name] = fromTransformable ? fromTransformable[name] : elOption[name];\n }\n}\n\nfunction setTransformPropToTransitionFrom(transitionFrom, name, fromTransformable // If provided, retrieve from the element.\n) {\n if (fromTransformable) {\n transitionFrom[name] = fromTransformable[name];\n }\n}\n\nfunction makeRenderItem(customSeries, data, ecModel, api) {\n var renderItem = customSeries.get('renderItem');\n var coordSys = customSeries.coordinateSystem;\n var prepareResult = {};\n\n if (coordSys) {\n if (process.env.NODE_ENV !== 'production') {\n assert(renderItem, 'series.render is required.');\n assert(coordSys.prepareCustoms || prepareCustoms[coordSys.type], 'This coordSys does not support custom series.');\n } // `coordSys.prepareCustoms` is used for external coord sys like bmap.\n\n\n prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms(coordSys) : prepareCustoms[coordSys.type](coordSys);\n }\n\n var userAPI = defaults({\n getWidth: api.getWidth,\n getHeight: api.getHeight,\n getZr: api.getZr,\n getDevicePixelRatio: api.getDevicePixelRatio,\n value: value,\n style: style,\n ordinalRawValue: ordinalRawValue,\n styleEmphasis: styleEmphasis,\n visual: visual,\n barLayout: barLayout,\n currentSeriesIndices: currentSeriesIndices,\n font: font\n }, prepareResult.api || {});\n var userParams = {\n // The life cycle of context: current round of rendering.\n // The global life cycle is probably not necessary, because\n // user can store global status by themselves.\n context: {},\n seriesId: customSeries.id,\n seriesName: customSeries.name,\n seriesIndex: customSeries.seriesIndex,\n coordSys: prepareResult.coordSys,\n dataInsideLength: data.count(),\n encode: wrapEncodeDef(customSeries.getData())\n }; // If someday intending to refactor them to a class, should consider do not\n // break change: currently these attribute member are encapsulated in a closure\n // so that do not need to force user to call these method with a scope.\n // Do not support call `api` asynchronously without dataIndexInside input.\n\n var currDataIndexInside;\n var currItemModel;\n var currItemStyleModels = {};\n var currLabelModels = {};\n var seriesItemStyleModels = {};\n var seriesLabelModels = {};\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n seriesItemStyleModels[stateName] = customSeries.getModel(PATH_ITEM_STYLE[stateName]);\n seriesLabelModels[stateName] = customSeries.getModel(PATH_LABEL[stateName]);\n }\n\n function getItemModel(dataIndexInside) {\n return dataIndexInside === currDataIndexInside ? currItemModel || (currItemModel = data.getItemModel(dataIndexInside)) : data.getItemModel(dataIndexInside);\n }\n\n function getItemStyleModel(dataIndexInside, state) {\n return !data.hasItemOption ? seriesItemStyleModels[state] : dataIndexInside === currDataIndexInside ? currItemStyleModels[state] || (currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])) : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);\n }\n\n function getLabelModel(dataIndexInside, state) {\n return !data.hasItemOption ? seriesLabelModels[state] : dataIndexInside === currDataIndexInside ? currLabelModels[state] || (currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])) : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);\n }\n\n return function (dataIndexInside, payload) {\n currDataIndexInside = dataIndexInside;\n currItemModel = null;\n currItemStyleModels = {};\n currLabelModels = {};\n return renderItem && renderItem(defaults({\n dataIndexInside: dataIndexInside,\n dataIndex: data.getRawIndex(dataIndexInside),\n // Can be used for optimization when zoom or roam.\n actionType: payload ? payload.type : null\n }, userParams), userAPI);\n };\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n function value(dim, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n return data.get(data.getDimension(dim || 0), dataIndexInside);\n }\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function ordinalRawValue(dim, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var dimInfo = data.getDimensionInfo(dim || 0);\n\n if (!dimInfo) {\n return;\n }\n\n var val = data.get(dimInfo.name, dataIndexInside);\n var ordinalMeta = dimInfo && dimInfo.ordinalMeta;\n return ordinalMeta ? ordinalMeta.categories[val] : val;\n }\n /**\n * @deprecated The orgininal intention of `api.style` is enable to set itemStyle\n * like other series. But it not necessary and not easy to give a strict definition\n * of what it return. And since echarts5 it needs to be make compat work. So\n * deprecates it since echarts5.\n *\n * By default, `visual` is applied to style (to support visualMap).\n * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,\n * it can be implemented as:\n * `api.style({stroke: api.visual('color'), fill: null})`;\n *\n * [Compat]: since ec5, RectText has been separated from its hosts el.\n * so `api.style()` will only return the style from `itemStyle` but not handle `label`\n * any more. But `series.label` config is never published in doc.\n * We still compat it in `api.style()`. But not encourage to use it and will still not\n * to pulish it to doc.\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function style(userProps, dataIndexInside) {\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecated('api.style', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var style = data.getItemVisual(dataIndexInside, 'style');\n var visualColor = style && style.fill;\n var opacity = style && style.opacity;\n var itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle();\n visualColor != null && (itemStyle.fill = visualColor);\n opacity != null && (itemStyle.opacity = opacity);\n var opt = {\n inheritColor: isString(visualColor) ? visualColor : '#000'\n };\n var labelModel = getLabelModel(dataIndexInside, NORMAL); // Now that the feture of \"auto adjust text fill/stroke\" has been migrated to zrender\n // since ec5, we should set `isAttached` as `false` here and make compat in\n // `convertToEC4StyleForCustomSerise`.\n\n var textStyle = labelStyleHelper.createTextStyle(labelModel, null, opt, false, true);\n textStyle.text = labelModel.getShallow('show') ? retrieve2(customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;\n var textConfig = labelStyleHelper.createTextConfig(labelModel, opt, false);\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n userProps && applyUserPropsAfter(itemStyle, userProps);\n itemStyle.legacy = true;\n return itemStyle;\n }\n /**\n * @deprecated The reason see `api.style()`\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function styleEmphasis(userProps, dataIndexInside) {\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecated('api.styleEmphasis', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();\n var labelModel = getLabelModel(dataIndexInside, EMPHASIS);\n var textStyle = labelStyleHelper.createTextStyle(labelModel, null, null, true, true);\n textStyle.text = labelModel.getShallow('show') ? retrieve3(customSeries.getFormattedLabel(dataIndexInside, EMPHASIS), customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;\n var textConfig = labelStyleHelper.createTextConfig(labelModel, null, true);\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n userProps && applyUserPropsAfter(itemStyle, userProps);\n itemStyle.legacy = true;\n return itemStyle;\n }\n\n function applyUserPropsAfter(itemStyle, extra) {\n for (var key in extra) {\n if (hasOwn(extra, key)) {\n itemStyle[key] = extra[key];\n }\n }\n }\n\n function preFetchFromExtra(extra, itemStyle) {\n // A trick to retrieve those props firstly, which are used to\n // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.\n // (It's not reasonable but only for a degree of compat)\n if (extra) {\n extra.textFill && (itemStyle.textFill = extra.textFill);\n extra.textPosition && (itemStyle.textPosition = extra.textPosition);\n }\n }\n /**\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function visual(visualType, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (hasOwn(STYLE_VISUAL_TYPE, visualType)) {\n var style_1 = data.getItemVisual(dataIndexInside, 'style');\n return style_1 ? style_1[STYLE_VISUAL_TYPE[visualType]] : null;\n } // Only support these visuals. Other visual might be inner tricky\n // for performance (like `style`), do not expose to users.\n\n\n if (hasOwn(NON_STYLE_VISUAL_PROPS, visualType)) {\n return data.getItemVisual(dataIndexInside, visualType);\n }\n }\n /**\n * @public\n * @return If not support, return undefined.\n */\n\n\n function barLayout(opt) {\n if (coordSys.type === 'cartesian2d') {\n var baseAxis = coordSys.getBaseAxis();\n return getLayoutOnAxis(defaults({\n axis: baseAxis\n }, opt));\n }\n }\n /**\n * @public\n */\n\n\n function currentSeriesIndices() {\n return ecModel.getCurrentSeriesIndices();\n }\n /**\n * @public\n * @return font string\n */\n\n\n function font(opt) {\n return labelStyleHelper.getFont(opt, ecModel);\n }\n}\n\nfunction wrapEncodeDef(data) {\n var encodeDef = {};\n each(data.dimensions, function (dimName, dataDimIndex) {\n var dimInfo = data.getDimensionInfo(dimName);\n\n if (!dimInfo.isExtraCoord) {\n var coordDim = dimInfo.coordDim;\n var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];\n dataDims[dimInfo.coordDimIndex] = dataDimIndex;\n }\n });\n return encodeDef;\n}\n\nfunction createOrUpdateItem(api, el, dataIndex, elOption, seriesModel, group, data, morphPreparation) {\n // [Rule]\n // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.\n // (It seems that violate the \"merge\" principle, but most of users probably intuitively\n // regard \"return;\" as \"show nothing element whatever\", so make a exception to meet the\n // most cases.)\n // The rule or \"merge\" see [STRATEGY_MERGE].\n // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).\n if (!elOption) {\n removeElementDirectly(el, group);\n return;\n }\n\n el = doCreateOrUpdateEl(api, el, dataIndex, elOption, seriesModel, group, true, morphPreparation);\n el && data.setItemGraphicEl(dataIndex, el);\n el && enableHoverEmphasis(el, elOption.focus, elOption.blurScope);\n return el;\n}\n\nfunction doCreateOrUpdateEl(api, el, dataIndex, elOption, seriesModel, group, isRoot, morphPreparation) {\n if (process.env.NODE_ENV !== 'production') {\n assert(elOption, 'should not have an null/undefined element setting');\n }\n\n var toBeReplacedIdx = -1;\n\n if (el && doesElNeedRecreate(el, elOption) // || (\n // // PENDING: even in one-to-one mapping case, if el is marked as morph,\n // // do not sure whether the el will be mapped to another el with different\n // // hierarchy in Group tree. So always recreate el rather than reuse the el.\n // morphPreparation && morphPreparation.isOneToOneFrom(el)\n // )\n ) {\n // Should keep at the original index, otherwise \"merge by index\" will be incorrect.\n toBeReplacedIdx = group.childrenRef().indexOf(el);\n el = null;\n }\n\n var elIsNewCreated = !el;\n\n if (!el) {\n el = createEl(elOption);\n } else {\n // FIMXE:NEXT unified clearState?\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n el.clearStates();\n }\n\n var canMorph = inner(el).canMorph = elOption.morph && isPath(el);\n var thisElIsMorphTo = canMorph && morphPreparation && morphPreparation.hasFrom(); // Use update animation when morph is enabled.\n\n var isInit = elIsNewCreated && !thisElIsMorphTo;\n attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt = attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt = attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt = attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null;\n attachedTxInfoTmp.isLegacy = false;\n doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp);\n doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit);\n var pendingAllPropsFinal = updateElNormal(api, el, thisElIsMorphTo, dataIndex, elOption, elOption.style, attachedTxInfoTmp, seriesModel, isInit, false);\n\n if (thisElIsMorphTo) {\n morphPreparation.addTo(el, elOption, dataIndex, pendingAllPropsFinal);\n }\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n\n if (stateName !== NORMAL) {\n var otherStateOpt = retrieveStateOption(elOption, stateName);\n var otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName);\n updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp, isRoot, false);\n }\n }\n\n updateZ(el, elOption, seriesModel, attachedTxInfoTmp);\n\n if (elOption.type === 'group') {\n mergeChildren(api, el, dataIndex, elOption, seriesModel, morphPreparation);\n }\n\n if (toBeReplacedIdx >= 0) {\n group.replaceAt(el, toBeReplacedIdx);\n } else {\n group.add(el);\n }\n\n return el;\n} // `el` must not be null/undefined.\n\n\nfunction doesElNeedRecreate(el, elOption) {\n var elInner = inner(el);\n var elOptionType = elOption.type;\n var elOptionShape = elOption.shape;\n var elOptionStyle = elOption.style;\n return (// If `elOptionType` is `null`, follow the merge principle.\n elOptionType != null && elOptionType !== elInner.customGraphicType || elOptionType === 'path' && hasOwnPathData(elOptionShape) && getPathData(elOptionShape) !== elInner.customPathData || elOptionType === 'image' && hasOwn(elOptionStyle, 'image') && elOptionStyle.image !== elInner.customImagePath // // FIXME test and remove this restriction?\n // || (elOptionType === 'text'\n // && hasOwn(elOptionStyle, 'text')\n // && (elOptionStyle as TextStyleProps).text !== elInner.customText\n // )\n\n );\n}\n\nfunction doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit) {\n // Based on the \"merge\" principle, if no clipPath provided,\n // do nothing. The exists clip will be totally removed only if\n // `el.clipPath` is `false`. Otherwise it will be merged/replaced.\n var clipPathOpt = elOption.clipPath;\n\n if (clipPathOpt === false) {\n if (el && el.getClipPath()) {\n el.removeClipPath();\n }\n } else if (clipPathOpt) {\n var clipPath = el.getClipPath();\n\n if (clipPath && doesElNeedRecreate(clipPath, clipPathOpt)) {\n clipPath = null;\n }\n\n if (!clipPath) {\n clipPath = createEl(clipPathOpt);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(clipPath instanceof graphicUtil.Path, 'Only any type of `path` can be used in `clipPath`, rather than ' + clipPath.type + '.');\n }\n\n el.setClipPath(clipPath);\n }\n\n updateElNormal(null, clipPath, null, dataIndex, clipPathOpt, null, null, seriesModel, isInit, false);\n } // If not define `clipPath` in option, do nothing unnecessary.\n\n}\n\nfunction doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfo) {\n // group do not support textContent temporarily untill necessary.\n if (el.isGroup) {\n return;\n } // Normal must be called before emphasis, for `isLegacy` detection.\n\n\n processTxInfo(elOption, null, attachedTxInfo);\n processTxInfo(elOption, EMPHASIS, attachedTxInfo); // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sence.\n // So for simplicity, if \"elOption hasOwnProperty of them but be null/undefined\", we do not\n // trade them as set to null to el.\n // Especially:\n // `elOption.textContent: false` means remove textContent.\n // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.\n\n var txConOptNormal = attachedTxInfo.normal.conOpt;\n var txConOptEmphasis = attachedTxInfo.emphasis.conOpt;\n var txConOptBlur = attachedTxInfo.blur.conOpt;\n var txConOptSelect = attachedTxInfo.select.conOpt;\n\n if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) {\n var textContent = el.getTextContent();\n\n if (txConOptNormal === false) {\n textContent && el.removeTextContent();\n } else {\n txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || {\n type: 'text'\n };\n\n if (!textContent) {\n textContent = createEl(txConOptNormal);\n el.setTextContent(textContent);\n } else {\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n textContent.clearStates();\n }\n\n var txConStlOptNormal = txConOptNormal && txConOptNormal.style;\n updateElNormal(null, textContent, null, dataIndex, txConOptNormal, txConStlOptNormal, null, seriesModel, isInit, true);\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n\n if (stateName !== NORMAL) {\n var txConOptOtherState = attachedTxInfo[stateName].conOpt;\n updateElOnState(stateName, textContent, txConOptOtherState, retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName), null, false, true);\n }\n }\n\n txConStlOptNormal ? textContent.dirty() : textContent.markRedraw();\n }\n }\n}\n\nfunction processTxInfo(elOption, state, attachedTxInfo) {\n var stateOpt = !state ? elOption : retrieveStateOption(elOption, state);\n var styleOpt = !state ? elOption.style : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS);\n var elType = elOption.type;\n var txCfg = stateOpt ? stateOpt.textConfig : null;\n var txConOptNormal = elOption.textContent;\n var txConOpt = !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state);\n\n if (styleOpt && ( // Because emphasis style has little info to detect legacy,\n // if normal is legacy, emphasis is trade as legacy.\n attachedTxInfo.isLegacy || isEC4CompatibleStyle(styleOpt, elType, !!txCfg, !!txConOpt))) {\n attachedTxInfo.isLegacy = true;\n var convertResult = convertFromEC4CompatibleStyle(styleOpt, elType, !state); // Explicitly specified `textConfig` and `textContent` has higher priority than\n // the ones generated by legacy style. Otherwise if users use them and `api.style`\n // at the same time, they not both work and hardly to known why.\n\n if (!txCfg && convertResult.textConfig) {\n txCfg = convertResult.textConfig;\n }\n\n if (!txConOpt && convertResult.textContent) {\n txConOpt = convertResult.textContent;\n }\n }\n\n if (!state && txConOpt) {\n var txConOptNormal_1 = txConOpt; // `textContent: {type: 'text'}`, the \"type\" is easy to be missing. So we tolerate it.\n\n !txConOptNormal_1.type && (txConOptNormal_1.type = 'text');\n\n if (process.env.NODE_ENV !== 'production') {\n // Do not tolerate incorret type for forward compat.\n txConOptNormal_1.type !== 'text' && assert(txConOptNormal_1.type === 'text', 'textContent.type must be \"text\"');\n }\n }\n\n var info = !state ? attachedTxInfo.normal : attachedTxInfo[state];\n info.cfg = txCfg;\n info.conOpt = txConOpt;\n}\n\nfunction retrieveStateOption(elOption, state) {\n return !state ? elOption : elOption ? elOption[state] : null;\n}\n\nfunction retrieveStyleOptionOnState(stateOptionNormal, stateOption, state) {\n var style = stateOption && stateOption.style;\n\n if (style == null && state === EMPHASIS && stateOptionNormal) {\n style = stateOptionNormal.styleEmphasis;\n }\n\n return style;\n} // Usage:\n// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates that\n// the existing children will not be removed, and enables the feature that\n// update some of the props of some of the children simply by construct\n// the returned children of `renderItem` like:\n// `var children = group.children = []; children[3] = {opacity: 0.5};`\n// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children\n// by child.name. But that might be lower performance.\n// (3) If `elOption.$mergeChildren` is `false`, the existing children will be\n// replaced totally.\n// (4) If `!elOption.children`, following the \"merge\" principle, nothing will happen.\n//\n// For implementation simpleness, do not provide a direct way to remove sinlge\n// child (otherwise the total indicies of the children array have to be modified).\n// User can remove a single child by set its `ignore` as `true`.\n\n\nfunction mergeChildren(api, el, dataIndex, elOption, seriesModel, morphPreparation) {\n var newChildren = elOption.children;\n var newLen = newChildren ? newChildren.length : 0;\n var mergeChildren = elOption.$mergeChildren; // `diffChildrenByName` has been deprecated.\n\n var byName = mergeChildren === 'byName' || elOption.diffChildrenByName;\n var notMerge = mergeChildren === false; // For better performance on roam update, only enter if necessary.\n\n if (!newLen && !byName && !notMerge) {\n return;\n }\n\n if (byName) {\n diffGroupChildren({\n api: api,\n oldChildren: el.children() || [],\n newChildren: newChildren || [],\n dataIndex: dataIndex,\n seriesModel: seriesModel,\n group: el,\n morphPreparation: morphPreparation\n });\n return;\n }\n\n notMerge && el.removeAll(); // Mapping children of a group simply by index, which\n // might be better performance.\n\n var index = 0;\n\n for (; index < newLen; index++) {\n newChildren[index] && doCreateOrUpdateEl(api, el.childAt(index), dataIndex, newChildren[index], seriesModel, el, false, morphPreparation);\n }\n\n for (var i = el.childCount() - 1; i >= index; i--) {\n // Do not supprot leave elements that are not mentioned in the latest\n // `renderItem` return. Otherwise users may not have a clear and simple\n // concept that how to contorl all of the elements.\n doRemoveEl(el.childAt(i), seriesModel, el);\n }\n}\n\nfunction diffGroupChildren(context) {\n new DataDiffer(context.oldChildren, context.newChildren, getKey, getKey, context).add(processAddUpdate).update(processAddUpdate).remove(processRemove).execute();\n}\n\nfunction getKey(item, idx) {\n var name = item && item.name;\n return name != null ? name : GROUP_DIFF_PREFIX + idx;\n}\n\nfunction processAddUpdate(newIndex, oldIndex) {\n var context = this.context;\n var childOption = newIndex != null ? context.newChildren[newIndex] : null;\n var child = oldIndex != null ? context.oldChildren[oldIndex] : null;\n doCreateOrUpdateEl(context.api, child, context.dataIndex, childOption, context.seriesModel, context.group, false, context.morphPreparation);\n}\n\nfunction processRemove(oldIndex) {\n var context = this.context;\n var child = context.oldChildren[oldIndex];\n doRemoveEl(child, context.seriesModel, context.group);\n}\n\nfunction doRemoveEl(el, seriesModel, group) {\n if (el) {\n var leaveToProps = inner(el).leaveToProps;\n leaveToProps ? graphicUtil.updateProps(el, leaveToProps, seriesModel, {\n cb: function () {\n group.remove(el);\n }\n }) : group.remove(el);\n }\n}\n/**\n * @return SVG Path data.\n */\n\n\nfunction getPathData(shape) {\n // \"d\" follows the SVG convention.\n return shape && (shape.pathData || shape.d);\n}\n\nfunction hasOwnPathData(shape) {\n return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd'));\n}\n\nfunction isPath(el) {\n return el && el instanceof graphicUtil.Path;\n}\n\nfunction removeElementDirectly(el, group) {\n el && group.remove(el);\n}\n/**\n * Any morph-potential el should added by `morphPreparation.addTo(el)`.\n * And they may apply morph or not when `morphPreparation.applyMorphing()`.\n * But at least, all of the \"to\" elements will apply all of the updates\n * as `doCreateOrUpdateItem` did.\n */\n\n\nvar MorphPreparation =\n/** @class */\nfunction () {\n function MorphPreparation(seriesModel, transOpt) {\n this._fromList = [];\n this._toList = [];\n this._toElOptionList = [];\n this._allPropsFinalList = [];\n this._toDataIndices = []; // Key: `toDataIndex`, not `toIdx`\n\n this._morphConfigList = [];\n this._seriesModel = seriesModel;\n this._transOpt = transOpt;\n }\n\n MorphPreparation.prototype.hasFrom = function () {\n return !!this._fromList.length;\n }; // isOneToOneFrom(el: Element): boolean {\n // if (el && inner(el).canMorph) {\n // const fromList = this._fromList;\n // for (let i = 0; i < fromList.length; i++) {\n // if (fromList[i] === el) {\n // return true;\n // }\n // }\n // }\n // }\n\n\n MorphPreparation.prototype.findAndAddFrom = function (el) {\n if (!el) {\n return;\n }\n\n if (inner(el).canMorph) {\n this._fromList.push(el);\n }\n\n if (el.isGroup) {\n var children = el.childrenRef();\n\n for (var i = 0; i < children.length; i++) {\n this.findAndAddFrom(children[i]);\n }\n }\n };\n\n MorphPreparation.prototype.addTo = function (path, elOption, dataIndex, allPropsFinal) {\n if (path) {\n this._toList.push(path);\n\n this._toElOptionList.push(elOption);\n\n this._toDataIndices.push(dataIndex);\n\n this._allPropsFinalList.push(allPropsFinal);\n }\n };\n\n MorphPreparation.prototype.applyMorphing = function () {\n // [MORPHING_LOGIC_HINT]\n // Pay attention to the order:\n // (A) Apply `allPropsFinal` and `styleOption` to \"to\".\n // (Then \"to\" becomes to the final state.)\n // (B) Apply `morphPath`/`combine`/`separate`.\n // (Based on the current state of \"from\" and the final state of \"to\".)\n // (Then we may get \"from.subList\" or \"to.subList\".)\n // (C) Copy the related props from \"from\" to \"from.subList\", from \"to\" to \"to.subList\".\n // (D) Collect `transitionFromProps` for \"to\" and \"to.subList\"\n // (Based on \"from\" or \"from.subList\".)\n // (E) Apply `transitionFromProps` to \"to\" and \"to.subList\"\n // (It might change the prop values to the first frame value.)\n // Case_I:\n // If (D) should be after (C), we use sequence: A - B - C - D - E\n // Case_II:\n // If (A) should be after (D), we use sequence: D - A - B - C - E\n // [MORPHING_LOGIC_HINT]\n // zrender `morphPath`/`combine`/`separate` only manages the shape animation.\n // Other props (like transfrom, style transition) will handled in echarts).\n // [MORPHING_LOGIC_HINT]\n // Make sure `applyPropsFinal` always be called for \"to\".\n var type = this._type;\n var fromList = this._fromList;\n var toList = this._toList;\n var toListLen = toList.length;\n var fromListLen = fromList.length;\n\n if (!fromListLen || !toListLen) {\n return;\n }\n\n if (type === 'oneToOne') {\n // In one-to-one case, we by default apply a simple rule:\n // map \"from\" and \"to\" one by one.\n // For this case: old_data_item_el and new_data_item_el\n // has the same hierarchy of group tree but only some path type changed.\n for (var toIdx = 0; toIdx < toListLen; toIdx++) {\n this._oneToOneForSingleTo(toIdx, toIdx);\n }\n } else if (type === 'manyToOne') {\n // A rough strategy: if there are more than one \"to\", we simply divide \"fromList\" equally.\n var fromSingleSegLen = Math.max(1, Math.floor(fromListLen / toListLen));\n\n for (var toIdx = 0, fromIdxStart = 0; toIdx < toListLen; toIdx++, fromIdxStart += fromSingleSegLen) {\n var fromCount = toIdx + 1 >= toListLen ? fromListLen - fromIdxStart : fromSingleSegLen;\n\n this._manyToOneForSingleTo(toIdx, fromIdxStart >= fromListLen ? null : fromIdxStart, fromCount);\n }\n } else if (type === 'oneToMany') {\n // A rough strategy: if there are more than one \"from\", we simply divide \"toList\" equally.\n var toSingleSegLen = Math.max(1, Math.floor(toListLen / fromListLen));\n\n for (var toIdxStart = 0, fromIdx = 0; toIdxStart < toListLen; toIdxStart += toSingleSegLen, fromIdx++) {\n var toCount = toIdxStart + toSingleSegLen >= toListLen ? toListLen - toIdxStart : toSingleSegLen;\n\n this._oneToManyForSingleFrom(toIdxStart, toCount, fromIdx >= fromListLen ? null : fromIdx);\n }\n }\n };\n\n MorphPreparation.prototype._oneToOneForSingleTo = function ( // \"to\" must NOT be null/undefined.\n toIdx, // May `fromIdx >= this._fromList.length`\n fromIdx) {\n var to = this._toList[toIdx];\n var toElOption = this._toElOptionList[toIdx];\n var toDataIndex = this._toDataIndices[toIdx];\n var allPropsFinal = this._allPropsFinalList[toIdx];\n var from = this._fromList[fromIdx];\n\n var elAnimationConfig = this._getOrCreateMorphConfig(toDataIndex);\n\n var morphDuration = elAnimationConfig.duration;\n\n if (from && isCombiningPath(from)) {\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n if (morphDuration) {\n var combineResult = combine([from], to, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(combineResult, toIdx, null);\n } // The target el will not be displayed and transition from multiple path.\n // transition on the target el does not make sense.\n\n } else {\n var morphFrom = morphDuration // from === to usually happen in scenarios where internal update like\n // \"dataZoom\", \"legendToggle\" happen. If from is not in any morphing,\n // we do not need to call `morphPath`.\n && from && (from !== to || isInAnyMorphing(from)) ? from : null; // See [Case_II] above.\n // In this case, there is probably `from === to`. And the `transitionFromProps` collecting\n // does not depends on morphing. So we collect `transitionFromProps` first.\n\n var transFromProps = {};\n prepareShapeOrExtraTransitionFrom('shape', to, morphFrom, toElOption, transFromProps, false);\n prepareShapeOrExtraTransitionFrom('extra', to, morphFrom, toElOption, transFromProps, false);\n prepareTransformTransitionFrom(to, morphFrom, toElOption, transFromProps, false);\n prepareStyleTransitionFrom(to, morphFrom, toElOption, toElOption.style, transFromProps, false);\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n if (morphFrom) {\n morphPath(morphFrom, to, elAnimationConfig);\n }\n\n applyTransitionFrom(to, toDataIndex, toElOption, this._seriesModel, transFromProps, false);\n }\n };\n\n MorphPreparation.prototype._manyToOneForSingleTo = function ( // \"to\" must NOT be null/undefined.\n toIdx, // May be null.\n fromIdxStart, fromCount) {\n var to = this._toList[toIdx];\n var toElOption = this._toElOptionList[toIdx];\n var allPropsFinal = this._allPropsFinalList[toIdx];\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n var elAnimationConfig = this._getOrCreateMorphConfig(this._toDataIndices[toIdx]);\n\n if (elAnimationConfig.duration && fromIdxStart != null) {\n var combineFromList = [];\n\n for (var fromIdx = fromIdxStart; fromIdx < fromCount; fromIdx++) {\n combineFromList.push(this._fromList[fromIdx]);\n }\n\n var combineResult = combine(combineFromList, to, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(combineResult, toIdx, null);\n }\n };\n\n MorphPreparation.prototype._oneToManyForSingleFrom = function ( // \"to\" must NOT be null/undefined.\n toIdxStart, toCount, // May be null\n fromIdx) {\n var from = fromIdx == null ? null : this._fromList[fromIdx];\n var toList = this._toList;\n var separateToList = [];\n\n for (var toIdx = toIdxStart; toIdx < toCount; toIdx++) {\n var to = toList[toIdx];\n applyPropsFinal(to, this._allPropsFinalList[toIdx], this._toElOptionList[toIdx].style);\n separateToList.push(to);\n }\n\n var elAnimationConfig = this._getOrCreateMorphConfig(this._toDataIndices[toIdxStart]);\n\n if (elAnimationConfig.duration && from) {\n var separateResult = separate(from, separateToList, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(separateResult, toIdxStart, toCount);\n }\n };\n\n MorphPreparation.prototype._processResultIndividuals = function (combineSeparateResult, toIdxStart, toCount) {\n var isSeparate = toCount != null;\n\n for (var i = 0; i < combineSeparateResult.count; i++) {\n var fromIndividual = combineSeparateResult.fromIndividuals[i];\n var toIndividual = combineSeparateResult.toIndividuals[i]; // Here it's a trick:\n // For \"combine\" case, all of the `toIndividuals` map to the same `toIdx`.\n // For \"separate\" case, the `toIndividuals` map to some certain segment of `_toList` accurately.\n\n var toIdx = toIdxStart + (isSeparate ? i : 0);\n var toElOption = this._toElOptionList[toIdx];\n var dataIndex = this._toDataIndices[toIdx];\n var transFromProps = {};\n prepareTransformTransitionFrom(toIndividual, fromIndividual, toElOption, transFromProps, false);\n prepareStyleTransitionFrom(toIndividual, fromIndividual, toElOption, toElOption.style, transFromProps, false);\n applyTransitionFrom(toIndividual, dataIndex, toElOption, this._seriesModel, transFromProps, false);\n }\n };\n\n MorphPreparation.prototype._getOrCreateMorphConfig = function (dataIndex) {\n var morphConfigList = this._morphConfigList;\n var config = morphConfigList[dataIndex];\n\n if (config) {\n return config;\n }\n\n var duration;\n var easing;\n var delay;\n var seriesModel = this._seriesModel;\n var transOpt = this._transOpt;\n\n if (seriesModel.isAnimationEnabled()) {\n // PENDING: refactor? this is the same logic as `src/util/graphic.ts#animateOrSetProps`.\n var animationPayload = void 0;\n\n if (seriesModel && seriesModel.ecModel) {\n var updatePayload = seriesModel.ecModel.getUpdatePayload();\n animationPayload = updatePayload && updatePayload.animation;\n }\n\n if (animationPayload) {\n duration = animationPayload.duration || 0;\n easing = animationPayload.easing || 'cubicOut';\n delay = animationPayload.delay || 0;\n } else {\n easing = seriesModel.get('animationEasingUpdate');\n var delayOption = seriesModel.get('animationDelayUpdate');\n delay = isFunction(delayOption) ? delayOption(dataIndex) : delayOption;\n var durationOption = seriesModel.get('animationDurationUpdate');\n duration = isFunction(durationOption) ? durationOption(dataIndex) : durationOption;\n }\n }\n\n config = {\n duration: duration || 0,\n delay: delay,\n easing: easing,\n dividingMethod: transOpt ? transOpt.dividingMethod : null\n };\n morphConfigList[dataIndex] = config;\n return config;\n };\n\n MorphPreparation.prototype.reset = function (type) {\n // `this._morphConfigList` can be kept. It only related to `dataIndex`.\n this._type = type;\n this._fromList.length = this._toList.length = this._toElOptionList.length = this._allPropsFinalList.length = this._toDataIndices.length = 0;\n };\n\n return MorphPreparation;\n}();\n\nfunction copyPropsWhenDivided(srcPath, tarPath, willClone) {\n // Do not copy transform props.\n // Sub paths are transfrom based on their host path.\n // tarPath.x = srcPath.x;\n // tarPath.y = srcPath.y;\n // tarPath.scaleX = srcPath.scaleX;\n // tarPath.scaleY = srcPath.scaleY;\n // tarPath.originX = srcPath.originX;\n // tarPath.originY = srcPath.originY;\n // If just carry the style, will not be modifed, so do not copy.\n tarPath.style = willClone ? clone(srcPath.style) : srcPath.style;\n tarPath.zlevel = srcPath.zlevel;\n tarPath.z = srcPath.z;\n tarPath.z2 = srcPath.z2;\n}\n\nexport function install(registers) {\n registers.registerChartView(CustomSeriesView);\n registers.registerSeriesModel(CustomSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as axisPointerModelHelper from './modelHelper';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nvar clone = zrUtil.clone;\nvar bind = zrUtil.bind;\n/**\n * Base axis pointer class in 2D.\n */\n\nvar BaseAxisPointer =\n/** @class */\nfunction () {\n function BaseAxisPointer() {\n this._dragging = false;\n /**\n * In px, arbitrary value. Do not set too small,\n * no animation is ok for most cases.\n */\n\n this.animationThreshold = 15;\n }\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.render = function (axisModel, axisPointerModel, api, forceRender) {\n var value = axisPointerModel.get('value');\n var status = axisPointerModel.get('status'); // Bind them to `this`, not in closure, otherwise they will not\n // be replaced when user calling setOption in not merge mode.\n\n this._axisModel = axisModel;\n this._axisPointerModel = axisPointerModel;\n this._api = api; // Optimize: `render` will be called repeatly during mouse move.\n // So it is power consuming if performing `render` each time,\n // especially on mobile device.\n\n if (!forceRender && this._lastValue === value && this._lastStatus === status) {\n return;\n }\n\n this._lastValue = value;\n this._lastStatus = status;\n var group = this._group;\n var handle = this._handle;\n\n if (!status || status === 'hide') {\n // Do not clear here, for animation better.\n group && group.hide();\n handle && handle.hide();\n return;\n }\n\n group && group.show();\n handle && handle.show(); // Otherwise status is 'show'\n\n var elOption = {};\n this.makeElOption(elOption, value, axisModel, axisPointerModel, api); // Enable change axis pointer type.\n\n var graphicKey = elOption.graphicKey;\n\n if (graphicKey !== this._lastGraphicKey) {\n this.clear(api);\n }\n\n this._lastGraphicKey = graphicKey;\n var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel);\n\n if (!group) {\n group = this._group = new graphic.Group();\n this.createPointerEl(group, elOption, axisModel, axisPointerModel);\n this.createLabelEl(group, elOption, axisModel, axisPointerModel);\n api.getZr().add(group);\n } else {\n var doUpdateProps = zrUtil.curry(updateProps, axisPointerModel, moveAnimation);\n this.updatePointerEl(group, elOption, doUpdateProps);\n this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);\n }\n\n updateMandatoryProps(group, axisPointerModel, true);\n\n this._renderHandle(value);\n };\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.remove = function (api) {\n this.clear(api);\n };\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.dispose = function (api) {\n this.clear(api);\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.determineAnimation = function (axisModel, axisPointerModel) {\n var animation = axisPointerModel.get('animation');\n var axis = axisModel.axis;\n var isCategoryAxis = axis.type === 'category';\n var useSnap = axisPointerModel.get('snap'); // Value axis without snap always do not snap.\n\n if (!useSnap && !isCategoryAxis) {\n return false;\n }\n\n if (animation === 'auto' || animation == null) {\n var animationThreshold = this.animationThreshold;\n\n if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {\n return true;\n } // It is important to auto animation when snap used. Consider if there is\n // a dataZoom, animation will be disabled when too many points exist, while\n // it will be enabled for better visual effect when little points exist.\n\n\n if (useSnap) {\n var seriesDataCount = axisPointerModelHelper.getAxisInfo(axisModel).seriesDataCount;\n var axisExtent = axis.getExtent(); // Approximate band width\n\n return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;\n }\n\n return false;\n }\n\n return animation === true;\n };\n /**\n * add {pointer, label, graphicKey} to elOption\n * @protected\n */\n\n\n BaseAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {// Shoule be implemenented by sub-class.\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.createPointerEl = function (group, elOption, axisModel, axisPointerModel) {\n var pointerOption = elOption.pointer;\n\n if (pointerOption) {\n var pointerEl = inner(group).pointerEl = new graphic[pointerOption.type](clone(elOption.pointer));\n group.add(pointerEl);\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.createLabelEl = function (group, elOption, axisModel, axisPointerModel) {\n if (elOption.label) {\n var labelEl = inner(group).labelEl = new graphic.Text(clone(elOption.label));\n group.add(labelEl);\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.updatePointerEl = function (group, elOption, updateProps) {\n var pointerEl = inner(group).pointerEl;\n\n if (pointerEl && elOption.pointer) {\n pointerEl.setStyle(elOption.pointer.style);\n updateProps(pointerEl, {\n shape: elOption.pointer.shape\n });\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.updateLabelEl = function (group, elOption, updateProps, axisPointerModel) {\n var labelEl = inner(group).labelEl;\n\n if (labelEl) {\n labelEl.setStyle(elOption.label.style);\n updateProps(labelEl, {\n // Consider text length change in vertical axis, animation should\n // be used on shape, otherwise the effect will be weird.\n // TODOTODO\n // shape: elOption.label.shape,\n x: elOption.label.x,\n y: elOption.label.y\n });\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n };\n /**\n * @private\n */\n\n\n BaseAxisPointer.prototype._renderHandle = function (value) {\n if (this._dragging || !this.updateHandleTransform) {\n return;\n }\n\n var axisPointerModel = this._axisPointerModel;\n\n var zr = this._api.getZr();\n\n var handle = this._handle;\n var handleModel = axisPointerModel.getModel('handle');\n var status = axisPointerModel.get('status');\n\n if (!handleModel.get('show') || !status || status === 'hide') {\n handle && zr.remove(handle);\n this._handle = null;\n return;\n }\n\n var isInit;\n\n if (!this._handle) {\n isInit = true;\n handle = this._handle = graphic.createIcon(handleModel.get('icon'), {\n cursor: 'move',\n draggable: true,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n onmousedown: bind(this._onHandleDragMove, this, 0, 0),\n drift: bind(this._onHandleDragMove, this),\n ondragend: bind(this._onHandleDragEnd, this)\n });\n zr.add(handle);\n }\n\n updateMandatoryProps(handle, axisPointerModel, false); // update style\n\n handle.setStyle(handleModel.getItemStyle(null, ['color', 'borderColor', 'borderWidth', 'opacity', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'])); // update position\n\n var handleSize = handleModel.get('size');\n\n if (!zrUtil.isArray(handleSize)) {\n handleSize = [handleSize, handleSize];\n }\n\n handle.scaleX = handleSize[0] / 2;\n handle.scaleY = handleSize[1] / 2;\n throttleUtil.createOrUpdate(this, '_doDispatchAxisPointer', handleModel.get('throttle') || 0, 'fixRate');\n\n this._moveHandleToValue(value, isInit);\n };\n\n BaseAxisPointer.prototype._moveHandleToValue = function (value, isInit) {\n updateProps(this._axisPointerModel, !isInit && this._moveAnimation, this._handle, getHandleTransProps(this.getHandleTransform(value, this._axisModel, this._axisPointerModel)));\n };\n\n BaseAxisPointer.prototype._onHandleDragMove = function (dx, dy) {\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n this._dragging = true; // Persistent for throttle.\n\n var trans = this.updateHandleTransform(getHandleTransProps(handle), [dx, dy], this._axisModel, this._axisPointerModel);\n this._payloadInfo = trans;\n handle.stopAnimation();\n handle.attr(getHandleTransProps(trans));\n inner(handle).lastProp = null;\n\n this._doDispatchAxisPointer();\n };\n /**\n * Throttled method.\n */\n\n\n BaseAxisPointer.prototype._doDispatchAxisPointer = function () {\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n var payloadInfo = this._payloadInfo;\n var axisModel = this._axisModel;\n\n this._api.dispatchAction({\n type: 'updateAxisPointer',\n x: payloadInfo.cursorPoint[0],\n y: payloadInfo.cursorPoint[1],\n tooltipOption: payloadInfo.tooltipOption,\n axesInfo: [{\n axisDim: axisModel.axis.dim,\n axisIndex: axisModel.componentIndex\n }]\n });\n };\n\n BaseAxisPointer.prototype._onHandleDragEnd = function () {\n this._dragging = false;\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n var value = this._axisPointerModel.get('value'); // Consider snap or categroy axis, handle may be not consistent with\n // axisPointer. So move handle to align the exact value position when\n // drag ended.\n\n\n this._moveHandleToValue(value); // For the effect: tooltip will be shown when finger holding on handle\n // button, and will be hidden after finger left handle button.\n\n\n this._api.dispatchAction({\n type: 'hideTip'\n });\n };\n /**\n * @private\n */\n\n\n BaseAxisPointer.prototype.clear = function (api) {\n this._lastValue = null;\n this._lastStatus = null;\n var zr = api.getZr();\n var group = this._group;\n var handle = this._handle;\n\n if (zr && group) {\n this._lastGraphicKey = null;\n group && zr.remove(group);\n handle && zr.remove(handle);\n this._group = null;\n this._handle = null;\n this._payloadInfo = null;\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.doClear = function () {// Implemented by sub-class if necessary.\n };\n\n BaseAxisPointer.prototype.buildLabel = function (xy, wh, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n };\n\n return BaseAxisPointer;\n}();\n\nfunction updateProps(animationModel, moveAnimation, el, props) {\n // Animation optimize.\n if (!propsEqual(inner(el).lastProp, props)) {\n inner(el).lastProp = props;\n moveAnimation ? graphic.updateProps(el, props, animationModel) : (el.stopAnimation(), el.attr(props));\n }\n}\n\nfunction propsEqual(lastProps, newProps) {\n if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {\n var equals_1 = true;\n zrUtil.each(newProps, function (item, key) {\n equals_1 = equals_1 && propsEqual(lastProps[key], item);\n });\n return !!equals_1;\n } else {\n return lastProps === newProps;\n }\n}\n\nfunction updateLabelShowHide(labelEl, axisPointerModel) {\n labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();\n}\n\nfunction getHandleTransProps(trans) {\n return {\n x: trans.x || 0,\n y: trans.y || 0,\n rotation: trans.rotation || 0\n };\n}\n\nfunction updateMandatoryProps(group, axisPointerModel, silent) {\n var z = axisPointerModel.get('z');\n var zlevel = axisPointerModel.get('zlevel');\n group && group.traverse(function (el) {\n if (el.type !== 'group') {\n z != null && (el.z = z);\n zlevel != null && (el.zlevel = zlevel);\n el.silent = silent;\n }\n });\n}\n\nexport default BaseAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as textContain from 'zrender/lib/contain/text';\nimport * as formatUtil from '../../util/format';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as axisHelper from '../../coord/axisHelper';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport { createTextStyle } from '../../label/labelStyle';\nexport function buildElStyle(axisPointerModel) {\n var axisPointerType = axisPointerModel.get('type');\n var styleModel = axisPointerModel.getModel(axisPointerType + 'Style');\n var style;\n\n if (axisPointerType === 'line') {\n style = styleModel.getLineStyle();\n style.fill = null;\n } else if (axisPointerType === 'shadow') {\n style = styleModel.getAreaStyle();\n style.stroke = null;\n }\n\n return style;\n}\n/**\n * @param {Function} labelPos {align, verticalAlign, position}\n */\n\nexport function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos) {\n var value = axisPointerModel.get('value');\n var text = getValueLabel(value, axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n });\n var labelModel = axisPointerModel.getModel('label');\n var paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0);\n var font = labelModel.getFont();\n var textRect = textContain.getBoundingRect(text, font);\n var position = labelPos.position;\n var width = textRect.width + paddings[1] + paddings[3];\n var height = textRect.height + paddings[0] + paddings[2]; // Adjust by align.\n\n var align = labelPos.align;\n align === 'right' && (position[0] -= width);\n align === 'center' && (position[0] -= width / 2);\n var verticalAlign = labelPos.verticalAlign;\n verticalAlign === 'bottom' && (position[1] -= height);\n verticalAlign === 'middle' && (position[1] -= height / 2); // Not overflow ec container\n\n confineInContainer(position, width, height, api);\n var bgColor = labelModel.get('backgroundColor');\n\n if (!bgColor || bgColor === 'auto') {\n bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']);\n }\n\n elOption.label = {\n // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},\n x: position[0],\n y: position[1],\n style: createTextStyle(labelModel, {\n text: text,\n font: font,\n fill: labelModel.getTextColor(),\n padding: paddings,\n backgroundColor: bgColor\n }),\n // Lable should be over axisPointer.\n z2: 10\n };\n} // Do not overflow ec container\n\nfunction confineInContainer(position, width, height, api) {\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n position[0] = Math.min(position[0] + width, viewWidth) - width;\n position[1] = Math.min(position[1] + height, viewHeight) - height;\n position[0] = Math.max(position[0], 0);\n position[1] = Math.max(position[1], 0);\n}\n\nexport function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {\n value = axis.scale.parse(value);\n var text = axis.scale.getLabel({\n value: value\n }, {\n // If `precision` is set, width can be fixed (like '12.00500'), which\n // helps to debounce when when moving label.\n precision: opt.precision\n });\n var formatter = opt.formatter;\n\n if (formatter) {\n var params_1 = {\n value: axisHelper.getAxisRawValue(axis, {\n value: value\n }),\n axisDimension: axis.dim,\n axisIndex: axis.index,\n seriesData: []\n };\n zrUtil.each(seriesDataIndices, function (idxItem) {\n var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n var dataIndex = idxItem.dataIndexInside;\n var dataParams = series && series.getDataParams(dataIndex);\n dataParams && params_1.seriesData.push(dataParams);\n });\n\n if (zrUtil.isString(formatter)) {\n text = formatter.replace('{value}', text);\n } else if (zrUtil.isFunction(formatter)) {\n text = formatter(params_1);\n }\n }\n\n return text;\n}\nexport function getTransformedPosition(axis, value, layoutInfo) {\n var transform = matrix.create();\n matrix.rotate(transform, transform, layoutInfo.rotation);\n matrix.translate(transform, transform, layoutInfo.position);\n return graphic.applyTransform([axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)], transform);\n}\nexport function buildCartesianSingleLabelElOption(value, elOption, layoutInfo, axisModel, axisPointerModel, api) {\n // @ts-ignore\n var textLayout = AxisBuilder.innerTextLayout(layoutInfo.rotation, 0, layoutInfo.labelDirection);\n layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);\n buildLabelElOption(elOption, axisModel, axisPointerModel, api, {\n position: getTransformedPosition(axisModel.axis, value, layoutInfo),\n align: textLayout.textAlign,\n verticalAlign: textLayout.textVerticalAlign\n });\n}\nexport function makeLineShape(p1, p2, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x1: p1[xDimIndex],\n y1: p1[1 - xDimIndex],\n x2: p2[xDimIndex],\n y2: p2[1 - xDimIndex]\n };\n}\nexport function makeRectShape(xy, wh, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n}\nexport function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) {\n return {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: true\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\n\nvar CartesianAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisPointer, _super);\n\n function CartesianAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n var grid = axis.grid;\n var axisPointerType = axisPointerModel.get('type');\n var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var layoutInfo = cartesianAxisHelper.layout(grid.model, axisModel);\n viewHelper.buildCartesianSingleLabelElOption( // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api);\n };\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {\n var layoutInfo = cartesianAxisHelper.layout(axisModel.axis.grid.model, axisModel, {\n labelInside: false\n }); // @ts-ignore\n\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n var pos = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: pos[0],\n y: pos[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n };\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {\n var axis = axisModel.axis;\n var grid = axis.grid;\n var axisExtent = axis.getGlobalExtent(true);\n var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n var dimIndex = axis.dim === 'x' ? 0 : 1;\n var currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n var cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex]; // Make tooltip do not overlap axisPointer and in the middle of the grid.\n\n var tooltipOptions = [{\n verticalAlign: 'middle'\n }, {\n align: 'center'\n }];\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: tooltipOptions[dimIndex]\n };\n };\n\n return CartesianAxisPointer;\n}(BaseAxisPointer);\n\nfunction getCartesian(grid, axis) {\n var opt = {};\n opt[axis.dim + 'AxisIndex'] = axis.index;\n return grid.getCartesian(opt);\n}\n\nvar pointerShapeBuilder = {\n line: function (axis, pixelValue, otherExtent) {\n var targetShape = viewHelper.makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getAxisDimIndex(axis));\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n shadow: function (axis, pixelValue, otherExtent) {\n var bandWidth = Math.max(1, axis.getBandWidth());\n var span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getAxisDimIndex(axis))\n };\n }\n};\n\nfunction getAxisDimIndex(axis) {\n return axis.dim === 'x' ? 0 : 1;\n}\n\nexport default CartesianAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar AxisPointerModel =\n/** @class */\nfunction (_super) {\n __extends(AxisPointerModel, _super);\n\n function AxisPointerModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisPointerModel.type;\n return _this;\n }\n\n AxisPointerModel.type = 'axisPointer';\n AxisPointerModel.defaultOption = {\n // 'auto' means that show when triggered by tooltip or handle.\n show: 'auto',\n zlevel: 0,\n z: 50,\n type: 'line',\n // axispointer triggered by tootip determine snap automatically,\n // see `modelHelper`.\n snap: false,\n triggerTooltip: true,\n value: null,\n status: null,\n link: [],\n // Do not set 'auto' here, otherwise global animation: false\n // will not effect at this axispointer.\n animation: null,\n animationDurationUpdate: 200,\n lineStyle: {\n color: '#B9BEC9',\n width: 1,\n type: 'dashed'\n },\n shadowStyle: {\n color: 'rgba(210,219,238,0.2)'\n },\n label: {\n show: true,\n formatter: null,\n precision: 'auto',\n margin: 3,\n color: '#fff',\n padding: [5, 7, 5, 7],\n backgroundColor: 'auto',\n borderColor: null,\n borderWidth: 0,\n borderRadius: 3\n },\n handle: {\n show: false,\n // eslint-disable-next-line\n icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',\n size: 45,\n // handle margin is from symbol center to axis, which is stable when circular move.\n margin: 50,\n // color: '#1b8bbd'\n // color: '#2f4554'\n color: '#333',\n shadowBlur: 3,\n shadowColor: '#aaa',\n shadowOffsetX: 0,\n shadowOffsetY: 2,\n // For mobile performance\n throttle: 40\n }\n };\n return AxisPointerModel;\n}(ComponentModel);\n\nexport default AxisPointerModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nvar each = zrUtil.each;\n/**\n * @param {string} key\n * @param {module:echarts/ExtensionAPI} api\n * @param {Function} handler\n * param: {string} currTrigger\n * param: {Array.} point\n */\n\nexport function register(key, api, handler) {\n if (env.node) {\n return;\n }\n\n var zr = api.getZr();\n inner(zr).records || (inner(zr).records = {});\n initGlobalListeners(zr, api);\n var record = inner(zr).records[key] || (inner(zr).records[key] = {});\n record.handler = handler;\n}\n\nfunction initGlobalListeners(zr, api) {\n if (inner(zr).initialized) {\n return;\n }\n\n inner(zr).initialized = true;\n useHandler('click', zrUtil.curry(doEnter, 'click'));\n useHandler('mousemove', zrUtil.curry(doEnter, 'mousemove')); // useHandler('mouseout', onLeave);\n\n useHandler('globalout', onLeave);\n\n function useHandler(eventType, cb) {\n zr.on(eventType, function (e) {\n var dis = makeDispatchAction(api);\n each(inner(zr).records, function (record) {\n record && cb(record, e, dis.dispatchAction);\n });\n dispatchTooltipFinally(dis.pendings, api);\n });\n }\n}\n\nfunction dispatchTooltipFinally(pendings, api) {\n var showLen = pendings.showTip.length;\n var hideLen = pendings.hideTip.length;\n var actuallyPayload;\n\n if (showLen) {\n actuallyPayload = pendings.showTip[showLen - 1];\n } else if (hideLen) {\n actuallyPayload = pendings.hideTip[hideLen - 1];\n }\n\n if (actuallyPayload) {\n actuallyPayload.dispatchAction = null;\n api.dispatchAction(actuallyPayload);\n }\n}\n\nfunction onLeave(record, e, dispatchAction) {\n record.handler('leave', null, dispatchAction);\n}\n\nfunction doEnter(currTrigger, record, e, dispatchAction) {\n record.handler(currTrigger, e, dispatchAction);\n}\n\nfunction makeDispatchAction(api) {\n var pendings = {\n showTip: [],\n hideTip: []\n }; // FIXME\n // better approach?\n // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,\n // which may be conflict, (axisPointer call showTip but tooltip call hideTip);\n // So we have to add \"final stage\" to merge those dispatched actions.\n\n var dispatchAction = function (payload) {\n var pendingList = pendings[payload.type];\n\n if (pendingList) {\n pendingList.push(payload);\n } else {\n payload.dispatchAction = dispatchAction;\n api.dispatchAction(payload);\n }\n };\n\n return {\n dispatchAction: dispatchAction,\n pendings: pendings\n };\n}\n\nexport function unregister(key, api) {\n if (env.node) {\n return;\n }\n\n var zr = api.getZr();\n var record = (inner(zr).records || {})[key];\n\n if (record) {\n inner(zr).records[key] = null;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as globalListener from './globalListener';\nimport ComponentView from '../../view/Component';\n\nvar AxisPointerView =\n/** @class */\nfunction (_super) {\n __extends(AxisPointerView, _super);\n\n function AxisPointerView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisPointerView.type;\n return _this;\n }\n\n AxisPointerView.prototype.render = function (globalAxisPointerModel, ecModel, api) {\n var globalTooltipModel = ecModel.getComponent('tooltip');\n var triggerOn = globalAxisPointerModel.get('triggerOn') || globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click'; // Register global listener in AxisPointerView to enable\n // AxisPointerView to be independent to Tooltip.\n\n globalListener.register('axisPointer', api, function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none' && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)) {\n dispatchAction({\n type: 'updateAxisPointer',\n currTrigger: currTrigger,\n x: e && e.offsetX,\n y: e && e.offsetY\n });\n }\n });\n };\n\n AxisPointerView.prototype.remove = function (ecModel, api) {\n globalListener.unregister('axisPointer', api);\n };\n\n AxisPointerView.prototype.dispose = function (ecModel, api) {\n globalListener.unregister('axisPointer', api);\n };\n\n AxisPointerView.type = 'axisPointer';\n return AxisPointerView;\n}(ComponentView);\n\nexport default AxisPointerView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\n/**\n * @param finder contains {seriesIndex, dataIndex, dataIndexInside}\n * @param ecModel\n * @return {point: [x, y], el: ...} point Will not be null.\n */\n\nexport default function findPointFromSeries(finder, ecModel) {\n var point = [];\n var seriesIndex = finder.seriesIndex;\n var seriesModel;\n\n if (seriesIndex == null || !(seriesModel = ecModel.getSeriesByIndex(seriesIndex))) {\n return {\n point: []\n };\n }\n\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, finder);\n\n if (dataIndex == null || dataIndex < 0 || zrUtil.isArray(dataIndex)) {\n return {\n point: []\n };\n }\n\n var el = data.getItemGraphicEl(dataIndex);\n var coordSys = seriesModel.coordinateSystem;\n\n if (seriesModel.getTooltipPosition) {\n point = seriesModel.getTooltipPosition(dataIndex) || [];\n } else if (coordSys && coordSys.dataToPoint) {\n if (finder.isStacked) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var valueAxisDim = valueAxis.dim;\n var baseAxisDim = baseAxis.dim;\n var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n var baseDim = data.mapDimension(baseAxisDim);\n var stackedData = [];\n stackedData[baseDataOffset] = data.get(baseDim, dataIndex);\n stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex);\n point = coordSys.dataToPoint(stackedData) || [];\n } else {\n point = coordSys.dataToPoint(data.getValues(zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex)) || [];\n }\n } else if (el) {\n // Use graphic bounding rect\n var rect = el.getBoundingRect().clone();\n rect.applyTransform(el.transform);\n point = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n }\n\n return {\n point: point,\n el: el\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from '../../util/model';\nimport * as modelHelper from './modelHelper';\nimport findPointFromSeries from './findPointFromSeries';\nimport { each, curry, bind, extend } from 'zrender/lib/core/util';\nvar inner = makeInner();\n/**\n * Basic logic: check all axis, if they do not demand show/highlight,\n * then hide/downplay them.\n *\n * @return content of event obj for echarts.connect.\n */\n\nexport default function axisTrigger(payload, ecModel, api) {\n var currTrigger = payload.currTrigger;\n var point = [payload.x, payload.y];\n var finder = payload;\n var dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api);\n var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; // Pending\n // See #6121. But we are not able to reproduce it yet.\n\n if (!coordSysAxesInfo) {\n return;\n }\n\n if (illegalPoint(point)) {\n // Used in the default behavior of `connection`: use the sample seriesIndex\n // and dataIndex. And also used in the tooltipView trigger.\n point = findPointFromSeries({\n seriesIndex: finder.seriesIndex,\n // Do not use dataIndexInside from other ec instance.\n // FIXME: auto detect it?\n dataIndex: finder.dataIndex\n }, ecModel).point;\n }\n\n var isIllegalPoint = illegalPoint(point); // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).\n // Notice: In this case, it is difficult to get the `point` (which is necessary to show\n // tooltip, so if point is not given, we just use the point found by sample seriesIndex\n // and dataIndex.\n\n var inputAxesInfo = finder.axesInfo;\n var axesInfo = coordSysAxesInfo.axesInfo;\n var shouldHide = currTrigger === 'leave' || illegalPoint(point);\n var outputPayload = {};\n var showValueMap = {};\n var dataByCoordSys = {\n list: [],\n map: {}\n };\n var updaters = {\n showPointer: curry(showPointer, showValueMap),\n showTooltip: curry(showTooltip, dataByCoordSys)\n }; // Process for triggered axes.\n\n each(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {\n // If a point given, it must be contained by the coordinate system.\n var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);\n each(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {\n var axis = axisInfo.axis;\n var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo); // If no inputAxesInfo, no axis is restricted.\n\n if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {\n var val = inputAxisInfo && inputAxisInfo.value;\n\n if (val == null && !isIllegalPoint) {\n val = axis.pointToData(point);\n }\n\n val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload);\n }\n });\n }); // Process for linked axes.\n\n var linkTriggers = {};\n each(axesInfo, function (tarAxisInfo, tarKey) {\n var linkGroup = tarAxisInfo.linkGroup; // If axis has been triggered in the previous stage, it should not be triggered by link.\n\n if (linkGroup && !showValueMap[tarKey]) {\n each(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {\n var srcValItem = showValueMap[srcKey]; // If srcValItem exist, source axis is triggered, so link to target axis.\n\n if (srcAxisInfo !== tarAxisInfo && srcValItem) {\n var val = srcValItem.value;\n linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo))));\n linkTriggers[tarAxisInfo.key] = val;\n }\n });\n }\n });\n each(linkTriggers, function (val, tarKey) {\n processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);\n });\n updateModelActually(showValueMap, axesInfo, outputPayload);\n dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);\n dispatchHighDownActually(axesInfo, dispatchAction, api);\n return outputPayload;\n}\n\nfunction processOnAxis(axisInfo, newValue, updaters, noSnap, outputFinder) {\n var axis = axisInfo.axis;\n\n if (axis.scale.isBlank() || !axis.containData(newValue)) {\n return;\n }\n\n if (!axisInfo.involveSeries) {\n updaters.showPointer(axisInfo, newValue);\n return;\n } // Heavy calculation. So put it after axis.containData checking.\n\n\n var payloadInfo = buildPayloadsBySeries(newValue, axisInfo);\n var payloadBatch = payloadInfo.payloadBatch;\n var snapToValue = payloadInfo.snapToValue; // Fill content of event obj for echarts.connect.\n // By default use the first involved series data as a sample to connect.\n\n if (payloadBatch[0] && outputFinder.seriesIndex == null) {\n extend(outputFinder, payloadBatch[0]);\n } // If no linkSource input, this process is for collecting link\n // target, where snap should not be accepted.\n\n\n if (!noSnap && axisInfo.snap) {\n if (axis.containData(snapToValue) && snapToValue != null) {\n newValue = snapToValue;\n }\n }\n\n updaters.showPointer(axisInfo, newValue, payloadBatch); // Tooltip should always be snapToValue, otherwise there will be\n // incorrect \"axis value ~ series value\" mapping displayed in tooltip.\n\n updaters.showTooltip(axisInfo, payloadInfo, snapToValue);\n}\n\nfunction buildPayloadsBySeries(value, axisInfo) {\n var axis = axisInfo.axis;\n var dim = axis.dim;\n var snapToValue = value;\n var payloadBatch = [];\n var minDist = Number.MAX_VALUE;\n var minDiff = -1;\n each(axisInfo.seriesModels, function (series, idx) {\n var dataDim = series.getData().mapDimensionsAll(dim);\n var seriesNestestValue;\n var dataIndices;\n\n if (series.getAxisTooltipData) {\n var result = series.getAxisTooltipData(dataDim, value, axis);\n dataIndices = result.dataIndices;\n seriesNestestValue = result.nestestValue;\n } else {\n dataIndices = series.getData().indicesOfNearest(dataDim[0], value, // Add a threshold to avoid find the wrong dataIndex\n // when data length is not same.\n // false,\n axis.type === 'category' ? 0.5 : null);\n\n if (!dataIndices.length) {\n return;\n }\n\n seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);\n }\n\n if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {\n return;\n }\n\n var diff = value - seriesNestestValue;\n var dist = Math.abs(diff); // Consider category case\n\n if (dist <= minDist) {\n if (dist < minDist || diff >= 0 && minDiff < 0) {\n minDist = dist;\n minDiff = diff;\n snapToValue = seriesNestestValue;\n payloadBatch.length = 0;\n }\n\n each(dataIndices, function (dataIndex) {\n payloadBatch.push({\n seriesIndex: series.seriesIndex,\n dataIndexInside: dataIndex,\n dataIndex: series.getData().getRawIndex(dataIndex)\n });\n });\n }\n });\n return {\n payloadBatch: payloadBatch,\n snapToValue: snapToValue\n };\n}\n\nfunction showPointer(showValueMap, axisInfo, value, payloadBatch) {\n showValueMap[axisInfo.key] = {\n value: value,\n payloadBatch: payloadBatch\n };\n}\n\nfunction showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) {\n var payloadBatch = payloadInfo.payloadBatch;\n var axis = axisInfo.axis;\n var axisModel = axis.model;\n var axisPointerModel = axisInfo.axisPointerModel; // If no data, do not create anything in dataByCoordSys,\n // whose length will be used to judge whether dispatch action.\n\n if (!axisInfo.triggerTooltip || !payloadBatch.length) {\n return;\n }\n\n var coordSysModel = axisInfo.coordSys.model;\n var coordSysKey = modelHelper.makeKey(coordSysModel);\n var coordSysItem = dataByCoordSys.map[coordSysKey];\n\n if (!coordSysItem) {\n coordSysItem = dataByCoordSys.map[coordSysKey] = {\n coordSysId: coordSysModel.id,\n coordSysIndex: coordSysModel.componentIndex,\n coordSysType: coordSysModel.type,\n coordSysMainType: coordSysModel.mainType,\n dataByAxis: []\n };\n dataByCoordSys.list.push(coordSysItem);\n }\n\n coordSysItem.dataByAxis.push({\n axisDim: axis.dim,\n axisIndex: axisModel.componentIndex,\n axisType: axisModel.type,\n axisId: axisModel.id,\n value: value,\n // Caustion: viewHelper.getValueLabel is actually on \"view stage\", which\n // depends that all models have been updated. So it should not be performed\n // here. Considering axisPointerModel used here is volatile, which is hard\n // to be retrieve in TooltipView, we prepare parameters here.\n valueLabelOpt: {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n },\n seriesDataIndices: payloadBatch.slice()\n });\n}\n\nfunction updateModelActually(showValueMap, axesInfo, outputPayload) {\n var outputAxesInfo = outputPayload.axesInfo = []; // Basic logic: If no 'show' required, 'hide' this axisPointer.\n\n each(axesInfo, function (axisInfo, key) {\n var option = axisInfo.axisPointerModel.option;\n var valItem = showValueMap[key];\n\n if (valItem) {\n !axisInfo.useHandle && (option.status = 'show');\n option.value = valItem.value; // For label formatter param and highlight.\n\n option.seriesDataIndices = (valItem.payloadBatch || []).slice();\n } // When always show (e.g., handle used), remain\n // original value and status.\n else {\n // If hide, value still need to be set, consider\n // click legend to toggle axis blank.\n !axisInfo.useHandle && (option.status = 'hide');\n } // If status is 'hide', should be no info in payload.\n\n\n option.status === 'show' && outputAxesInfo.push({\n axisDim: axisInfo.axis.dim,\n axisIndex: axisInfo.axis.model.componentIndex,\n value: option.value\n });\n });\n}\n\nfunction dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) {\n // Basic logic: If no showTip required, hideTip will be dispatched.\n if (illegalPoint(point) || !dataByCoordSys.list.length) {\n dispatchAction({\n type: 'hideTip'\n });\n return;\n } // In most case only one axis (or event one series is used). It is\n // convinient to fetch payload.seriesIndex and payload.dataIndex\n // dirtectly. So put the first seriesIndex and dataIndex of the first\n // axis on the payload.\n\n\n var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};\n dispatchAction({\n type: 'showTip',\n escapeConnect: true,\n x: point[0],\n y: point[1],\n tooltipOption: payload.tooltipOption,\n position: payload.position,\n dataIndexInside: sampleItem.dataIndexInside,\n dataIndex: sampleItem.dataIndex,\n seriesIndex: sampleItem.seriesIndex,\n dataByCoordSys: dataByCoordSys.list\n });\n}\n\nfunction dispatchHighDownActually(axesInfo, dispatchAction, api) {\n // FIXME\n // highlight status modification shoule be a stage of main process?\n // (Consider confilct (e.g., legend and axisPointer) and setOption)\n var zr = api.getZr();\n var highDownKey = 'axisPointerLastHighlights';\n var lastHighlights = inner(zr)[highDownKey] || {};\n var newHighlights = inner(zr)[highDownKey] = {}; // Update highlight/downplay status according to axisPointer model.\n // Build hash map and remove duplicate incidentally.\n\n each(axesInfo, function (axisInfo, key) {\n var option = axisInfo.axisPointerModel.option;\n option.status === 'show' && each(option.seriesDataIndices, function (batchItem) {\n var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;\n newHighlights[key] = batchItem;\n });\n }); // Diff.\n\n var toHighlight = [];\n var toDownplay = [];\n each(lastHighlights, function (batchItem, key) {\n !newHighlights[key] && toDownplay.push(batchItem);\n });\n each(newHighlights, function (batchItem, key) {\n !lastHighlights[key] && toHighlight.push(batchItem);\n });\n toDownplay.length && api.dispatchAction({\n type: 'downplay',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toDownplay\n });\n toHighlight.length && api.dispatchAction({\n type: 'highlight',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toHighlight\n });\n}\n\nfunction findInputAxisInfo(inputAxesInfo, axisInfo) {\n for (var i = 0; i < (inputAxesInfo || []).length; i++) {\n var inputAxisInfo = inputAxesInfo[i];\n\n if (axisInfo.axis.dim === inputAxisInfo.axisDim && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex) {\n return inputAxisInfo;\n }\n }\n}\n\nfunction makeMapperParam(axisInfo) {\n var axisModel = axisInfo.axis.model;\n var item = {};\n var dim = item.axisDim = axisInfo.axis.dim;\n item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex;\n item.axisName = item[dim + 'AxisName'] = axisModel.name;\n item.axisId = item[dim + 'AxisId'] = axisModel.id;\n return item;\n}\n\nfunction illegalPoint(point) {\n return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport AxisView from '../axis/AxisView';\nimport CartesianAxisPointer from './CartesianAxisPointer';\nimport AxisPointerModel from './AxisPointerModel';\nimport AxisPointerView from './AxisPointerView';\nimport { isArray } from 'zrender/lib/core/util';\nimport { collect } from './modelHelper';\nimport axisTrigger from './axisTrigger';\nexport function install(registers) {\n // CartesianAxisPointer is not supposed to be required here. But consider\n // echarts.simple.js and online build tooltip, which only require gridSimple,\n // CartesianAxisPointer should be able to required somewhere.\n AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer);\n registers.registerComponentModel(AxisPointerModel);\n registers.registerComponentView(AxisPointerView);\n registers.registerPreprocessor(function (option) {\n // Always has a global axisPointerModel for default setting.\n if (option) {\n (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {});\n var link = option.axisPointer.link; // Normalize to array to avoid object mergin. But if link\n // is not set, remain null/undefined, otherwise it will\n // override existent link setting.\n\n if (link && !isArray(link)) {\n option.axisPointer.link = [link];\n }\n }\n }); // This process should proformed after coordinate systems created\n // and series data processed. So put it on statistic processing stage.\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {\n // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n // allAxesInfo should be updated when setOption performed.\n ecModel.getComponent('axisPointer').coordSysAxesInfo = collect(ecModel, api);\n }); // Broadcast to all views.\n\n registers.registerAction({\n type: 'updateAxisPointer',\n event: 'updateAxisPointer',\n update: ':updateAxisPointer'\n }, axisTrigger);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { install as installSimple } from './installSimple';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport { use } from '../../extension';\nexport function install(registers) {\n use(installSimple);\n use(installAxisPointer);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as graphic from '../../util/graphic';\nimport * as viewHelper from './viewHelper';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport AxisBuilder from '../axis/AxisBuilder';\n\nvar PolarAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(PolarAxisPointer, _super);\n\n function PolarAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n PolarAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n\n if (axis.dim === 'angle') {\n this.animationThreshold = Math.PI / 18;\n }\n\n var polar = axis.polar;\n var otherAxis = polar.getOtherAxis(axis);\n var otherExtent = otherAxis.getExtent();\n var coordValue = axis.dataToCoord(value);\n var axisPointerType = axisPointerModel.get('type');\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, polar, coordValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var labelMargin = axisPointerModel.get(['label', 'margin']);\n var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);\n viewHelper.buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);\n };\n\n return PolarAxisPointer;\n}(BaseAxisPointer);\n\n;\n\nfunction getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) {\n var axis = axisModel.axis;\n var coord = axis.dataToCoord(value);\n var axisAngle = polar.getAngleAxis().getExtent()[0];\n axisAngle = axisAngle / 180 * Math.PI;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var position;\n var align;\n var verticalAlign;\n\n if (axis.dim === 'radius') {\n var transform = matrix.create();\n matrix.rotate(transform, transform, axisAngle);\n matrix.translate(transform, transform, [polar.cx, polar.cy]);\n position = graphic.applyTransform([coord, -labelMargin], transform);\n var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0; // @ts-ignore\n\n var labelLayout = AxisBuilder.innerTextLayout(axisAngle, labelRotation * Math.PI / 180, -1);\n align = labelLayout.textAlign;\n verticalAlign = labelLayout.textVerticalAlign;\n } else {\n // angle axis\n var r = radiusExtent[1];\n position = polar.coordToPoint([r + labelMargin, coord]);\n var cx = polar.cx;\n var cy = polar.cy;\n align = Math.abs(position[0] - cx) / r < 0.3 ? 'center' : position[0] > cx ? 'left' : 'right';\n verticalAlign = Math.abs(position[1] - cy) / r < 0.3 ? 'middle' : position[1] > cy ? 'top' : 'bottom';\n }\n\n return {\n position: position,\n align: align,\n verticalAlign: verticalAlign\n };\n}\n\nvar pointerShapeBuilder = {\n line: function (axis, polar, coordValue, otherExtent) {\n return axis.dim === 'angle' ? {\n type: 'Line',\n shape: viewHelper.makeLineShape(polar.coordToPoint([otherExtent[0], coordValue]), polar.coordToPoint([otherExtent[1], coordValue]))\n } : {\n type: 'Circle',\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: coordValue\n }\n };\n },\n shadow: function (axis, polar, coordValue, otherExtent) {\n var bandWidth = Math.max(1, axis.getBandWidth());\n var radian = Math.PI / 180;\n return axis.dim === 'angle' ? {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(polar.cx, polar.cy, otherExtent[0], otherExtent[1], // In ECharts y is negative if angle is positive\n (-coordValue - bandWidth / 2) * radian, (-coordValue + bandWidth / 2) * radian)\n } : {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(polar.cx, polar.cy, coordValue - bandWidth / 2, coordValue + bandWidth / 2, 0, Math.PI * 2)\n };\n }\n};\nexport default PolarAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar PolarModel =\n/** @class */\nfunction (_super) {\n __extends(PolarModel, _super);\n\n function PolarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PolarModel.type;\n return _this;\n }\n\n PolarModel.prototype.findAxisModel = function (axisType) {\n var foundAxisModel;\n var ecModel = this.ecModel;\n ecModel.eachComponent(axisType, function (axisModel) {\n if (axisModel.getCoordSysModel() === this) {\n foundAxisModel = axisModel;\n }\n }, this);\n return foundAxisModel;\n };\n\n PolarModel.type = 'polar';\n PolarModel.dependencies = ['radiusAxis', 'angleAxis'];\n PolarModel.defaultOption = {\n zlevel: 0,\n z: 0,\n center: ['50%', '50%'],\n radius: '80%'\n };\n return PolarModel;\n}(ComponentModel);\n\nexport default PolarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nvar PolarAxisModel =\n/** @class */\nfunction (_super) {\n __extends(PolarAxisModel, _super);\n\n function PolarAxisModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PolarAxisModel.prototype.getCoordSysModel = function () {\n return this.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n };\n\n PolarAxisModel.type = 'polarAxis';\n return PolarAxisModel;\n}(ComponentModel);\n\nzrUtil.mixin(PolarAxisModel, AxisModelCommonMixin);\nexport { PolarAxisModel };\n\nvar AngleAxisModel =\n/** @class */\nfunction (_super) {\n __extends(AngleAxisModel, _super);\n\n function AngleAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AngleAxisModel.type;\n return _this;\n }\n\n AngleAxisModel.type = 'angleAxis';\n return AngleAxisModel;\n}(PolarAxisModel);\n\nexport { AngleAxisModel };\n\nvar RadiusAxisModel =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxisModel, _super);\n\n function RadiusAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadiusAxisModel.type;\n return _this;\n }\n\n RadiusAxisModel.type = 'radiusAxis';\n return RadiusAxisModel;\n}(PolarAxisModel);\n\nexport { RadiusAxisModel };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar RadiusAxis =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxis, _super);\n\n function RadiusAxis(scale, radiusExtent) {\n return _super.call(this, 'radius', scale, radiusExtent) || this;\n }\n\n RadiusAxis.prototype.pointToData = function (point, clamp) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n };\n\n return RadiusAxis;\n}(Axis);\n\nRadiusAxis.prototype.dataToRadius = Axis.prototype.dataToCoord;\nRadiusAxis.prototype.radiusToData = Axis.prototype.coordToData;\nexport default RadiusAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as textContain from 'zrender/lib/contain/text';\nimport Axis from '../Axis';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\n\nvar AngleAxis =\n/** @class */\nfunction (_super) {\n __extends(AngleAxis, _super);\n\n function AngleAxis(scale, angleExtent) {\n return _super.call(this, 'angle', scale, angleExtent || [0, 360]) || this;\n }\n\n AngleAxis.prototype.pointToData = function (point, clamp) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n };\n /**\n * Only be called in category axis.\n * Angle axis uses text height to decide interval\n *\n * @override\n * @return {number} Auto interval for cateogry axis tick and label\n */\n\n\n AngleAxis.prototype.calculateCategoryInterval = function () {\n var axis = this;\n var labelModel = axis.getLabelModel();\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n\n var tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n var tickValue = ordinalExtent[0];\n var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n var unitH = Math.abs(unitSpan); // Not precise, just use height as text width\n // and each distance from axis line yet.\n\n var rect = textContain.getBoundingRect(tickValue == null ? '' : tickValue + '', labelModel.getFont(), 'center', 'top');\n var maxH = Math.max(rect.height, 7);\n var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity.\n\n isNaN(dh) && (dh = Infinity);\n var interval = Math.max(0, Math.floor(dh));\n var cache = inner(axis.model);\n var lastAutoInterval = cache.lastAutoInterval;\n var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n\n if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval) {\n interval = lastAutoInterval;\n } // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n }\n\n return interval;\n };\n\n return AngleAxis;\n}(Axis);\n\nAngleAxis.prototype.dataToAngle = Axis.prototype.dataToCoord;\nAngleAxis.prototype.angleToData = Axis.prototype.coordToData;\nexport default AngleAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\n\nvar Polar =\n/** @class */\nfunction () {\n function Polar(name) {\n this.dimensions = ['radius', 'angle'];\n this.type = 'polar';\n /**\n * x of polar center\n */\n\n this.cx = 0;\n /**\n * y of polar center\n */\n\n this.cy = 0;\n this._radiusAxis = new RadiusAxis();\n this._angleAxis = new AngleAxis();\n this.axisPointerEnabled = true;\n this.name = name || '';\n this._radiusAxis.polar = this._angleAxis.polar = this;\n }\n /**\n * If contain coord\n */\n\n\n Polar.prototype.containPoint = function (point) {\n var coord = this.pointToCoord(point);\n return this._radiusAxis.contain(coord[0]) && this._angleAxis.contain(coord[1]);\n };\n /**\n * If contain data\n */\n\n\n Polar.prototype.containData = function (data) {\n return this._radiusAxis.containData(data[0]) && this._angleAxis.containData(data[1]);\n };\n\n Polar.prototype.getAxis = function (dim) {\n var key = '_' + dim + 'Axis';\n return this[key];\n };\n\n Polar.prototype.getAxes = function () {\n return [this._radiusAxis, this._angleAxis];\n };\n /**\n * Get axes by type of scale\n */\n\n\n Polar.prototype.getAxesByScale = function (scaleType) {\n var axes = [];\n var angleAxis = this._angleAxis;\n var radiusAxis = this._radiusAxis;\n angleAxis.scale.type === scaleType && axes.push(angleAxis);\n radiusAxis.scale.type === scaleType && axes.push(radiusAxis);\n return axes;\n };\n\n Polar.prototype.getAngleAxis = function () {\n return this._angleAxis;\n };\n\n Polar.prototype.getRadiusAxis = function () {\n return this._radiusAxis;\n };\n\n Polar.prototype.getOtherAxis = function (axis) {\n var angleAxis = this._angleAxis;\n return axis === angleAxis ? this._radiusAxis : angleAxis;\n };\n /**\n * Base axis will be used on stacking.\n *\n */\n\n\n Polar.prototype.getBaseAxis = function () {\n return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAngleAxis();\n };\n\n Polar.prototype.getTooltipAxes = function (dim) {\n var baseAxis = dim != null && dim !== 'auto' ? this.getAxis(dim) : this.getBaseAxis();\n return {\n baseAxes: [baseAxis],\n otherAxes: [this.getOtherAxis(baseAxis)]\n };\n };\n /**\n * Convert a single data item to (x, y) point.\n * Parameter data is an array which the first element is radius and the second is angle\n */\n\n\n Polar.prototype.dataToPoint = function (data, clamp) {\n return this.coordToPoint([this._radiusAxis.dataToRadius(data[0], clamp), this._angleAxis.dataToAngle(data[1], clamp)]);\n };\n /**\n * Convert a (x, y) point to data\n */\n\n\n Polar.prototype.pointToData = function (point, clamp) {\n var coord = this.pointToCoord(point);\n return [this._radiusAxis.radiusToData(coord[0], clamp), this._angleAxis.angleToData(coord[1], clamp)];\n };\n /**\n * Convert a (x, y) point to (radius, angle) coord\n */\n\n\n Polar.prototype.pointToCoord = function (point) {\n var dx = point[0] - this.cx;\n var dy = point[1] - this.cy;\n var angleAxis = this.getAngleAxis();\n var extent = angleAxis.getExtent();\n var minAngle = Math.min(extent[0], extent[1]);\n var maxAngle = Math.max(extent[0], extent[1]); // Fix fixed extent in polarCreator\n // FIXME\n\n angleAxis.inverse ? minAngle = maxAngle - 360 : maxAngle = minAngle + 360;\n var radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n var radian = Math.atan2(-dy, dx) / Math.PI * 180; // move to angleExtent\n\n var dir = radian < minAngle ? 1 : -1;\n\n while (radian < minAngle || radian > maxAngle) {\n radian += dir * 360;\n }\n\n return [radius, radian];\n };\n /**\n * Convert a (radius, angle) coord to (x, y) point\n */\n\n\n Polar.prototype.coordToPoint = function (coord) {\n var radius = coord[0];\n var radian = coord[1] / 180 * Math.PI;\n var x = Math.cos(radian) * radius + this.cx; // Inverse the y\n\n var y = -Math.sin(radian) * radius + this.cy;\n return [x, y];\n };\n /**\n * Get ring area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n\n\n Polar.prototype.getArea = function () {\n var angleAxis = this.getAngleAxis();\n var radiusAxis = this.getRadiusAxis();\n var radiusExtent = radiusAxis.getExtent().slice();\n radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse();\n var angleExtent = angleAxis.getExtent();\n var RADIAN = Math.PI / 180;\n return {\n cx: this.cx,\n cy: this.cy,\n r0: radiusExtent[0],\n r: radiusExtent[1],\n startAngle: -angleExtent[0] * RADIAN,\n endAngle: -angleExtent[1] * RADIAN,\n clockwise: angleAxis.inverse,\n contain: function (x, y) {\n // It's a ring shape.\n // Start angle and end angle don't matter\n var dx = x - this.cx;\n var dy = y - this.cy;\n var d2 = dx * dx + dy * dy;\n var r = this.r;\n var r0 = this.r0;\n return d2 <= r * r && d2 >= r0 * r0;\n }\n };\n };\n\n Polar.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n };\n\n Polar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n };\n\n return Polar;\n}();\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n var polarModel = finder.polarModel;\n return polarModel && polarModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;\n}\n\nexport default Polar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO Axis scale\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Polar from './Polar';\nimport { parsePercent } from '../../util/number';\nimport { createScaleByModel, niceScaleExtent, getDataDimensionsOnAxis } from '../../coord/axisHelper';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Resize method bound to the polar\n */\n\nfunction resizePolar(polar, polarModel, api) {\n var center = polarModel.get('center');\n var width = api.getWidth();\n var height = api.getHeight();\n polar.cx = parsePercent(center[0], width);\n polar.cy = parsePercent(center[1], height);\n var radiusAxis = polar.getRadiusAxis();\n var size = Math.min(width, height) / 2;\n var radius = polarModel.get('radius');\n\n if (radius == null) {\n radius = [0, '100%'];\n } else if (!zrUtil.isArray(radius)) {\n // r0 = 0\n radius = [0, radius];\n }\n\n var parsedRadius = [parsePercent(radius[0], size), parsePercent(radius[1], size)];\n radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]);\n}\n/**\n * Update polar\n */\n\n\nfunction updatePolarScale(ecModel, api) {\n var polar = this;\n var angleAxis = polar.getAngleAxis();\n var radiusAxis = polar.getRadiusAxis(); // Reset scale\n\n angleAxis.scale.setExtent(Infinity, -Infinity);\n radiusAxis.scale.setExtent(Infinity, -Infinity);\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === polar) {\n var data_1 = seriesModel.getData();\n zrUtil.each(getDataDimensionsOnAxis(data_1, 'radius'), function (dim) {\n radiusAxis.scale.unionExtentFromData(data_1, dim);\n });\n zrUtil.each(getDataDimensionsOnAxis(data_1, 'angle'), function (dim) {\n angleAxis.scale.unionExtentFromData(data_1, dim);\n });\n }\n });\n niceScaleExtent(angleAxis.scale, angleAxis.model);\n niceScaleExtent(radiusAxis.scale, radiusAxis.model); // Fix extent of category angle axis\n\n if (angleAxis.type === 'category' && !angleAxis.onBand) {\n var extent = angleAxis.getExtent();\n var diff = 360 / angleAxis.scale.count();\n angleAxis.inverse ? extent[1] += diff : extent[1] -= diff;\n angleAxis.setExtent(extent[0], extent[1]);\n }\n}\n\nfunction isAngleAxisModel(axisModel) {\n return axisModel.mainType === 'angleAxis';\n}\n/**\n * Set common axis properties\n */\n\n\nfunction setAxis(axis, axisModel) {\n axis.type = axisModel.get('type');\n axis.scale = createScaleByModel(axisModel);\n axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';\n axis.inverse = axisModel.get('inverse');\n\n if (isAngleAxisModel(axisModel)) {\n axis.inverse = axis.inverse !== axisModel.get('clockwise');\n var startAngle = axisModel.get('startAngle');\n axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));\n } // Inject axis instance\n\n\n axisModel.axis = axis;\n axis.model = axisModel;\n}\n\nvar polarCreator = {\n dimensions: Polar.prototype.dimensions,\n create: function (ecModel, api) {\n var polarList = [];\n ecModel.eachComponent('polar', function (polarModel, idx) {\n var polar = new Polar(idx + ''); // Inject resize and update method\n\n polar.update = updatePolarScale;\n var radiusAxis = polar.getRadiusAxis();\n var angleAxis = polar.getAngleAxis();\n var radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n var angleAxisModel = polarModel.findAxisModel('angleAxis');\n setAxis(radiusAxis, radiusAxisModel);\n setAxis(angleAxis, angleAxisModel);\n resizePolar(polar, polarModel, api);\n polarList.push(polar);\n polarModel.coordinateSystem = polar;\n polar.model = polarModel;\n }); // Inject coordinateSystem to series\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'polar') {\n var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!polarModel) {\n throw new Error('Polar \"' + zrUtil.retrieve(seriesModel.get('polarIndex'), seriesModel.get('polarId'), 0) + '\" not found');\n }\n }\n\n seriesModel.coordinateSystem = polarModel.coordinateSystem;\n }\n });\n return polarList;\n }\n};\nexport default polarCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport AxisView from './AxisView';\nimport AxisBuilder from './AxisBuilder';\nimport { getECData } from '../../util/innerStore';\nvar elementList = ['axisLine', 'axisLabel', 'axisTick', 'minorTick', 'splitLine', 'minorSplitLine', 'splitArea'];\n\nfunction getAxisLineShape(polar, rExtent, angle) {\n rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());\n var start = polar.coordToPoint([rExtent[0], angle]);\n var end = polar.coordToPoint([rExtent[1], angle]);\n return {\n x1: start[0],\n y1: start[1],\n x2: end[0],\n y2: end[1]\n };\n}\n\nfunction getRadiusIdx(polar) {\n var radiusAxis = polar.getRadiusAxis();\n return radiusAxis.inverse ? 0 : 1;\n} // Remove the last tick which will overlap the first tick\n\n\nfunction fixAngleOverlap(list) {\n var firstItem = list[0];\n var lastItem = list[list.length - 1];\n\n if (firstItem && lastItem && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4) {\n list.pop();\n }\n}\n\nvar AngleAxisView =\n/** @class */\nfunction (_super) {\n __extends(AngleAxisView, _super);\n\n function AngleAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AngleAxisView.type;\n _this.axisPointerClass = 'PolarAxisPointer';\n return _this;\n }\n\n AngleAxisView.prototype.render = function (angleAxisModel, ecModel) {\n this.group.removeAll();\n\n if (!angleAxisModel.get('show')) {\n return;\n }\n\n var angleAxis = angleAxisModel.axis;\n var polar = angleAxis.polar;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var ticksAngles = angleAxis.getTicksCoords();\n var minorTickAngles = angleAxis.getMinorTicksCoords();\n var labels = zrUtil.map(angleAxis.getViewLabels(), function (labelItem) {\n labelItem = zrUtil.clone(labelItem);\n var scale = angleAxis.scale;\n var tickValue = scale.type === 'ordinal' ? scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;\n labelItem.coord = angleAxis.dataToCoord(tickValue);\n return labelItem;\n });\n fixAngleOverlap(labels);\n fixAngleOverlap(ticksAngles);\n zrUtil.each(elementList, function (name) {\n if (angleAxisModel.get([name, 'show']) && (!angleAxis.scale.isBlank() || name === 'axisLine')) {\n angelAxisElementsBuilders[name](this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels);\n }\n }, this);\n };\n\n AngleAxisView.type = 'angleAxis';\n return AngleAxisView;\n}(AxisView);\n\nvar angelAxisElementsBuilders = {\n axisLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']); // extent id of the axis radius (r0 and r)\n\n var rId = getRadiusIdx(polar);\n var r0Id = rId ? 0 : 1;\n var shape;\n\n if (radiusExtent[r0Id] === 0) {\n shape = new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n } else {\n shape = new graphic.Ring({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId],\n r0: radiusExtent[r0Id]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n\n shape.style.fill = null;\n group.add(shape);\n },\n axisTick: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var tickModel = angleAxisModel.getModel('axisTick');\n var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');\n var radius = radiusExtent[getRadiusIdx(polar)];\n var lines = zrUtil.map(ticksAngles, function (tickAngleItem) {\n return new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)\n });\n });\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults(tickModel.getModel('lineStyle').getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n })\n }));\n },\n minorTick: function (group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n var tickModel = angleAxisModel.getModel('axisTick');\n var minorTickModel = angleAxisModel.getModel('minorTick');\n var tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length');\n var radius = radiusExtent[getRadiusIdx(polar)];\n var lines = [];\n\n for (var i = 0; i < minorTickAngles.length; i++) {\n for (var k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults(minorTickModel.getModel('lineStyle').getLineStyle(), zrUtil.defaults(tickModel.getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }))\n }));\n },\n axisLabel: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) {\n var rawCategoryData = angleAxisModel.getCategories(true);\n var commonLabelModel = angleAxisModel.getModel('axisLabel');\n var labelMargin = commonLabelModel.get('margin');\n var triggerEvent = angleAxisModel.get('triggerEvent'); // Use length of ticksAngles because it may remove the last tick to avoid overlapping\n\n zrUtil.each(labels, function (labelItem, idx) {\n var labelModel = commonLabelModel;\n var tickValue = labelItem.tickValue;\n var r = radiusExtent[getRadiusIdx(polar)];\n var p = polar.coordToPoint([r + labelMargin, labelItem.coord]);\n var cx = polar.cx;\n var cy = polar.cy;\n var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3 ? 'center' : p[0] > cx ? 'left' : 'right';\n var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3 ? 'middle' : p[1] > cy ? 'top' : 'bottom';\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n var rawCategoryItem = rawCategoryData[tickValue];\n\n if (zrUtil.isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n labelModel = new Model(rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel);\n }\n }\n\n var textEl = new graphic.Text({\n silent: AxisBuilder.isLabelSilent(angleAxisModel),\n style: createTextStyle(labelModel, {\n x: p[0],\n y: p[1],\n fill: labelModel.getTextColor() || angleAxisModel.get(['axisLine', 'lineStyle', 'color']),\n text: labelItem.formattedLabel,\n align: labelTextAlign,\n verticalAlign: labelTextVerticalAlign\n })\n });\n group.add(textEl); // Pack data for mouse event\n\n if (triggerEvent) {\n var eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = labelItem.rawLabel;\n getECData(textEl).eventData = eventData;\n }\n }, this);\n },\n splitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var splitLineModel = angleAxisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n var lineCount = 0;\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var splitLines = [];\n\n for (var i = 0; i < ticksAngles.length; i++) {\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)\n }));\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyleModel.getLineStyle()),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n }\n },\n minorSplitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n var minorSplitLineModel = angleAxisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var lines = [];\n\n for (var i = 0; i < minorTickAngles.length; i++) {\n for (var k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: lineStyleModel.getLineStyle(),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n },\n splitArea: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!ticksAngles.length) {\n return;\n }\n\n var splitAreaModel = angleAxisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var lineCount = 0;\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n var splitAreas = [];\n var RADIAN = Math.PI / 180;\n var prevAngle = -ticksAngles[0].coord * RADIAN;\n var r0 = Math.min(radiusExtent[0], radiusExtent[1]);\n var r1 = Math.max(radiusExtent[0], radiusExtent[1]);\n var clockwise = angleAxisModel.get('clockwise');\n\n for (var i = 1, len = ticksAngles.length; i <= len; i++) {\n var coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;\n var colorIndex = lineCount++ % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: r0,\n r: r1,\n startAngle: prevAngle,\n endAngle: -coord * RADIAN,\n clockwise: clockwise\n },\n silent: true\n }));\n prevAngle = -coord * RADIAN;\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\nexport default AngleAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitLine', 'splitArea', 'minorSplitLine'];\n\nvar RadiusAxisView =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxisView, _super);\n\n function RadiusAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadiusAxisView.type;\n _this.axisPointerClass = 'PolarAxisPointer';\n return _this;\n }\n\n RadiusAxisView.prototype.render = function (radiusAxisModel, ecModel) {\n this.group.removeAll();\n\n if (!radiusAxisModel.get('show')) {\n return;\n }\n\n var oldAxisGroup = this._axisGroup;\n var newAxisGroup = this._axisGroup = new graphic.Group();\n this.group.add(newAxisGroup);\n var radiusAxis = radiusAxisModel.axis;\n var polar = radiusAxis.polar;\n var angleAxis = polar.getAngleAxis();\n var ticksCoords = radiusAxis.getTicksCoords();\n var minorTicksCoords = radiusAxis.getMinorTicksCoords();\n var axisAngle = angleAxis.getExtent()[0];\n var radiusExtent = radiusAxis.getExtent();\n var layout = layoutAxis(polar, radiusAxisModel, axisAngle);\n var axisBuilder = new AxisBuilder(radiusAxisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n newAxisGroup.add(axisBuilder.getGroup());\n graphic.groupTransition(oldAxisGroup, newAxisGroup, radiusAxisModel);\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) {\n axisElementBuilders[name](this.group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords);\n }\n }, this);\n };\n\n RadiusAxisView.type = 'radiusAxis';\n return RadiusAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n var splitLineModel = radiusAxisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n var lineCount = 0;\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var splitLines = [];\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: ticksCoords[i].coord\n }\n }));\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length],\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n }\n },\n minorSplitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) {\n if (!minorTicksCoords.length) {\n return;\n }\n\n var minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var lines = [];\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n for (var k = 0; k < minorTicksCoords[i].length; k++) {\n lines.push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: minorTicksCoords[i][k].coord\n }\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults({\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n },\n splitArea: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n if (!ticksCoords.length) {\n return;\n }\n\n var splitAreaModel = radiusAxisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var lineCount = 0;\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n var splitAreas = [];\n var prevRadius = ticksCoords[0].coord;\n\n for (var i = 1; i < ticksCoords.length; i++) {\n var colorIndex = lineCount++ % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: prevRadius,\n r: ticksCoords[i].coord,\n startAngle: 0,\n endAngle: Math.PI * 2\n },\n silent: true\n }));\n prevRadius = ticksCoords[i].coord;\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n/**\n * @inner\n */\n\nfunction layoutAxis(polar, radiusAxisModel, axisAngle) {\n return {\n position: [polar.cx, polar.cy],\n rotation: axisAngle / 180 * Math.PI,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1,\n labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),\n // Over splitLine and splitArea\n z2: 1\n };\n}\n\nexport default RadiusAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../util/number';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\n\nfunction getSeriesStackId(seriesModel) {\n return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(polar, axis) {\n return axis.dim + polar.model.componentIndex;\n}\n\nfunction barLayoutPolar(seriesType, ecModel, api) {\n var lastStackCoords = {};\n var barWidthAndOffset = calRadialBar(zrUtil.filter(ecModel.getSeriesByType(seriesType), function (seriesModel) {\n return !ecModel.isSeriesFiltered(seriesModel) && seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'polar';\n }));\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n // Check series coordinate, do layout for polar only\n if (seriesModel.coordinateSystem.type !== 'polar') {\n return;\n }\n\n var data = seriesModel.getData();\n var polar = seriesModel.coordinateSystem;\n var baseAxis = polar.getBaseAxis();\n var axisKey = getAxisKey(polar, baseAxis);\n var stackId = getSeriesStackId(seriesModel);\n var columnLayoutInfo = barWidthAndOffset[axisKey][stackId];\n var columnOffset = columnLayoutInfo.offset;\n var columnWidth = columnLayoutInfo.width;\n var valueAxis = polar.getOtherAxis(baseAxis);\n var cx = seriesModel.coordinateSystem.cx;\n var cy = seriesModel.coordinateSystem.cy;\n var barMinHeight = seriesModel.get('barMinHeight') || 0;\n var barMinAngle = seriesModel.get('barMinAngle') || 0;\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var stacked = isDimensionStacked(data, valueDim\n /*, baseDim*/\n );\n var clampLayout = baseAxis.dim !== 'radius' || !seriesModel.get('roundCap', true);\n var valueAxisStart = valueAxis.dataToCoord(0);\n\n for (var idx = 0, len = data.count(); idx < len; idx++) {\n var value = data.get(valueDim, idx);\n var baseValue = data.get(baseDim, idx);\n var sign = value >= 0 ? 'p' : 'n';\n var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n // Only ordinal axis can be stacked.\n\n if (stacked) {\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart,\n n: valueAxisStart // Negative stack\n\n };\n } // Should also consider #4243\n\n\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n var r0 = void 0;\n var r = void 0;\n var startAngle = void 0;\n var endAngle = void 0; // radial sector\n\n if (valueAxis.dim === 'radius') {\n var radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart;\n var angle = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(radiusSpan) < barMinHeight) {\n radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;\n }\n\n r0 = baseCoord;\n r = baseCoord + radiusSpan;\n startAngle = angle - columnOffset;\n endAngle = startAngle - columnWidth;\n stacked && (lastStackCoords[stackId][baseValue][sign] = r);\n } // tangential sector\n else {\n var angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart;\n var radius = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(angleSpan) < barMinAngle) {\n angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;\n }\n\n r0 = radius + columnOffset;\n r = r0 + columnWidth;\n startAngle = baseCoord;\n endAngle = baseCoord + angleSpan; // if the previous stack is at the end of the ring,\n // add a round to differentiate it from origin\n // let extent = angleAxis.getExtent();\n // let stackCoord = angle;\n // if (stackCoord === extent[0] && value > 0) {\n // stackCoord = extent[1];\n // }\n // else if (stackCoord === extent[1] && value < 0) {\n // stackCoord = extent[0];\n // }\n\n stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);\n }\n\n data.setItemLayout(idx, {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n // Consider that positive angle is anti-clockwise,\n // while positive radian of sector is clockwise\n startAngle: -startAngle * Math.PI / 180,\n endAngle: -endAngle * Math.PI / 180\n });\n }\n });\n}\n/**\n * Calculate bar width and offset for radial bar charts\n */\n\n\nfunction calRadialBar(barSeries) {\n // Columns info on each category axis. Key is polar name\n var columnsMap = {};\n zrUtil.each(barSeries, function (seriesModel, idx) {\n var data = seriesModel.getData();\n var polar = seriesModel.coordinateSystem;\n var baseAxis = polar.getBaseAxis();\n var axisKey = getAxisKey(polar, baseAxis);\n var axisExtent = baseAxis.getExtent();\n var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n var columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: '20%',\n gap: '30%',\n stacks: {}\n };\n var stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n var stackId = getSeriesStackId(seriesModel);\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n var barWidth = parsePercent(seriesModel.get('barWidth'), bandWidth);\n var barMaxWidth = parsePercent(seriesModel.get('barMaxWidth'), bandWidth);\n var barGap = seriesModel.get('barGap');\n var barCategoryGap = seriesModel.get('barCategoryGap');\n\n if (barWidth && !stacks[stackId].width) {\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n stacks[stackId].width = barWidth;\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n barGap != null && (columnsOnAxis.gap = barGap);\n barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n var result = {};\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n result[coordSysName] = {};\n var stacks = columnsOnAxis.stacks;\n var bandWidth = columnsOnAxis.bandWidth;\n var categoryGap = parsePercent(columnsOnAxis.categoryGap, bandWidth);\n var barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n var remainedWidth = columnsOnAxis.remainedWidth;\n var autoWidthCount = columnsOnAxis.autoWidthCount;\n var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth\n\n zrUtil.each(stacks, function (column, stack) {\n var maxWidth = column.maxWidth;\n\n if (maxWidth && maxWidth < autoWidth) {\n maxWidth = Math.min(maxWidth, remainedWidth);\n\n if (column.width) {\n maxWidth = Math.min(maxWidth, column.width);\n }\n\n remainedWidth -= maxWidth;\n column.width = maxWidth;\n autoWidthCount--;\n }\n }); // Recalculate width again\n\n autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n var widthSum = 0;\n var lastColumn;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n var offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n offset: offset,\n width: column.width\n };\n offset += column.width * (1 + barGapPercent);\n });\n });\n return result;\n}\n\nexport default barLayoutPolar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { use } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport PolarAxisPointer from '../axisPointer/PolarAxisPointer';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport PolarModel from '../../coord/polar/PolarModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport { AngleAxisModel, RadiusAxisModel } from '../../coord/polar/AxisModel';\nimport polarCreator from '../../coord/polar/polarCreator';\nimport AngleAxisView from '../axis/AngleAxisView';\nimport RadiusAxisView from '../axis/RadiusAxisView';\nimport ComponentView from '../../view/Component';\nimport { curry } from 'zrender/lib/core/util';\nimport barLayoutPolar from '../../layout/barPolar';\nvar angleAxisExtraOption = {\n startAngle: 90,\n clockwise: true,\n splitNumber: 12,\n axisLabel: {\n rotate: 0\n }\n};\nvar radiusAxisExtraOption = {\n splitNumber: 5\n};\n\nvar PolarView =\n/** @class */\nfunction (_super) {\n __extends(PolarView, _super);\n\n function PolarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PolarView.type;\n return _this;\n }\n\n PolarView.type = 'polar';\n return PolarView;\n}(ComponentView);\n\nexport function install(registers) {\n use(installAxisPointer);\n AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer);\n registers.registerCoordinateSystem('polar', polarCreator);\n registers.registerComponentModel(PolarModel);\n registers.registerComponentView(PolarView); // Model and view for angleAxis and radiusAxis\n\n axisModelCreator(registers, 'angle', AngleAxisModel, angleAxisExtraOption);\n axisModelCreator(registers, 'radius', RadiusAxisModel, radiusAxisExtraOption);\n registers.registerComponentView(AngleAxisView);\n registers.registerComponentView(RadiusAxisView);\n registers.registerLayout(curry(barLayoutPolar, 'bar'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport function layout(axisModel, opt) {\n opt = opt || {};\n var single = axisModel.coordinateSystem;\n var axis = axisModel.axis;\n var layout = {};\n var axisPosition = axis.position;\n var orient = axis.orient;\n var rect = single.getRect();\n var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n var positionMap = {\n horizontal: {\n top: rectBound[2],\n bottom: rectBound[3]\n },\n vertical: {\n left: rectBound[0],\n right: rectBound[1]\n }\n };\n layout.position = [orient === 'vertical' ? positionMap.vertical[axisPosition] : rectBound[0], orient === 'horizontal' ? positionMap.horizontal[axisPosition] : rectBound[3]];\n var r = {\n horizontal: 0,\n vertical: 1\n };\n layout.rotation = Math.PI / 2 * r[orient];\n var directionMap = {\n top: -1,\n bottom: 1,\n right: 1,\n left: -1\n };\n layout.labelDirection = layout.tickDirection = layout.nameDirection = directionMap[axisPosition];\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n }\n\n var labelRotation = opt.rotate;\n labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate']));\n layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;\n layout.z2 = 1;\n return layout;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport AxisView from './AxisView';\nimport { rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove } from './axisSplitHelper';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitArea', 'splitLine'];\n\nvar SingleAxisView =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisView, _super);\n\n function SingleAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleAxisView.type;\n _this.axisPointerClass = 'SingleAxisPointer';\n return _this;\n }\n\n SingleAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n var group = this.group;\n group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n var layout = singleAxisHelper.layout(axisModel);\n var axisBuilder = new AxisBuilder(axisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n group.add(this._axisGroup);\n group.add(axisBuilder.getGroup());\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this.group, this._axisGroup, axisModel);\n }\n }, this);\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n _super.prototype.render.call(this, axisModel, ecModel, api, payload);\n };\n\n SingleAxisView.prototype.remove = function () {\n rectCoordAxisHandleRemove(this);\n };\n\n SingleAxisView.type = 'singleAxis';\n return SingleAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (axisView, group, axisGroup, axisModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n var splitLineModel = axisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var gridRect = axisModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var splitLines = [];\n var lineCount = 0;\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n var p1 = [];\n var p2 = [];\n\n for (var i = 0; i < ticksCoords.length; ++i) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n silent: true\n }));\n }\n\n var lineStyle = lineStyleModel.getLineStyle(['color']);\n\n for (var i = 0; i < splitLines.length; ++i) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyle),\n silent: true\n }));\n }\n },\n splitArea: function (axisView, group, axisGroup, axisModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, axisModel);\n }\n};\nexport default SingleAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar SingleAxisModel =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisModel, _super);\n\n function SingleAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleAxisModel.type;\n return _this;\n }\n\n SingleAxisModel.prototype.getCoordSysModel = function () {\n return this;\n };\n\n SingleAxisModel.type = 'singleAxis';\n SingleAxisModel.layoutMode = 'box';\n SingleAxisModel.defaultOption = {\n left: '5%',\n top: '5%',\n right: '5%',\n bottom: '5%',\n type: 'value',\n position: 'bottom',\n orient: 'horizontal',\n axisLine: {\n show: true,\n lineStyle: {\n width: 1,\n type: 'solid'\n }\n },\n // Single coordinate system and single axis is the,\n // which is used as the parent tooltip model.\n // same model, so we set default tooltip show as true.\n tooltip: {\n show: true\n },\n axisTick: {\n show: true,\n length: 6,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n interval: 'auto'\n },\n splitLine: {\n show: true,\n lineStyle: {\n type: 'dashed',\n opacity: 0.2\n }\n }\n };\n return SingleAxisModel;\n}(ComponentModel);\n\nmixin(SingleAxisModel, AxisModelCommonMixin.prototype);\nexport default SingleAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar SingleAxis =\n/** @class */\nfunction (_super) {\n __extends(SingleAxis, _super);\n\n function SingleAxis(dim, scale, coordExtent, axisType, position) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n _this.position = position || 'bottom';\n return _this;\n }\n /**\n * Judge the orient of the axis.\n */\n\n\n SingleAxis.prototype.isHorizontal = function () {\n var position = this.position;\n return position === 'top' || position === 'bottom';\n };\n\n SingleAxis.prototype.pointToData = function (point, clamp) {\n return this.coordinateSystem.pointToData(point)[0];\n };\n\n return SingleAxis;\n}(Axis);\n\nexport default SingleAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinates system.\n */\nimport SingleAxis from './SingleAxis';\nimport * as axisHelper from '../axisHelper';\nimport { getLayoutRect } from '../../util/layout';\nimport { each } from 'zrender/lib/core/util';\n/**\n * Create a single coordinates system.\n */\n\nvar Single =\n/** @class */\nfunction () {\n function Single(axisModel, ecModel, api) {\n this.type = 'single';\n this.dimension = 'single';\n /**\n * Add it just for draw tooltip.\n */\n\n this.dimensions = ['single'];\n this.axisPointerEnabled = true;\n this.model = axisModel;\n\n this._init(axisModel, ecModel, api);\n }\n /**\n * Initialize single coordinate system.\n */\n\n\n Single.prototype._init = function (axisModel, ecModel, api) {\n var dim = this.dimension;\n var axis = new SingleAxis(dim, axisHelper.createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisModel.get('position'));\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n axis.orient = axisModel.get('orient');\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = this;\n this._axis = axis;\n };\n /**\n * Update axis scale after data processed\n */\n\n\n Single.prototype.update = function (ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === this) {\n var data_1 = seriesModel.getData();\n each(data_1.mapDimensionsAll(this.dimension), function (dim) {\n this._axis.scale.unionExtentFromData(data_1, dim);\n }, this);\n axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);\n }\n }, this);\n };\n /**\n * Resize the single coordinate system.\n */\n\n\n Single.prototype.resize = function (axisModel, api) {\n this._rect = getLayoutRect({\n left: axisModel.get('left'),\n top: axisModel.get('top'),\n right: axisModel.get('right'),\n bottom: axisModel.get('bottom'),\n width: axisModel.get('width'),\n height: axisModel.get('height')\n }, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._adjustAxis();\n };\n\n Single.prototype.getRect = function () {\n return this._rect;\n };\n\n Single.prototype._adjustAxis = function () {\n var rect = this._rect;\n var axis = this._axis;\n var isHorizontal = axis.isHorizontal();\n var extent = isHorizontal ? [0, rect.width] : [0, rect.height];\n var idx = axis.reverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n\n this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);\n };\n\n Single.prototype._updateAxisTransform = function (axis, coordBase) {\n var axisExtent = axis.getExtent();\n var extentSum = axisExtent[0] + axisExtent[1];\n var isHorizontal = axis.isHorizontal();\n axis.toGlobalCoord = isHorizontal ? function (coord) {\n return coord + coordBase;\n } : function (coord) {\n return extentSum - coord + coordBase;\n };\n axis.toLocalCoord = isHorizontal ? function (coord) {\n return coord - coordBase;\n } : function (coord) {\n return extentSum - coord + coordBase;\n };\n };\n /**\n * Get axis.\n */\n\n\n Single.prototype.getAxis = function () {\n return this._axis;\n };\n /**\n * Get axis, add it just for draw tooltip.\n */\n\n\n Single.prototype.getBaseAxis = function () {\n return this._axis;\n };\n\n Single.prototype.getAxes = function () {\n return [this._axis];\n };\n\n Single.prototype.getTooltipAxes = function () {\n return {\n baseAxes: [this.getAxis()],\n // Empty otherAxes\n otherAxes: []\n };\n };\n /**\n * If contain point.\n */\n\n\n Single.prototype.containPoint = function (point) {\n var rect = this.getRect();\n var axis = this.getAxis();\n var orient = axis.orient;\n\n if (orient === 'horizontal') {\n return axis.contain(axis.toLocalCoord(point[0])) && point[1] >= rect.y && point[1] <= rect.y + rect.height;\n } else {\n return axis.contain(axis.toLocalCoord(point[1])) && point[0] >= rect.y && point[0] <= rect.y + rect.height;\n }\n };\n\n Single.prototype.pointToData = function (point) {\n var axis = this.getAxis();\n return [axis.coordToData(axis.toLocalCoord(point[axis.orient === 'horizontal' ? 0 : 1]))];\n };\n /**\n * Convert the series data to concrete point.\n * Can be [val] | val\n */\n\n\n Single.prototype.dataToPoint = function (val) {\n var axis = this.getAxis();\n var rect = this.getRect();\n var pt = [];\n var idx = axis.orient === 'horizontal' ? 0 : 1;\n\n if (val instanceof Array) {\n val = val[0];\n }\n\n pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));\n pt[1 - idx] = idx === 0 ? rect.y + rect.height / 2 : rect.x + rect.width / 2;\n return pt;\n };\n\n Single.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n };\n\n Single.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n };\n\n return Single;\n}();\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n var singleModel = finder.singleAxisModel;\n return singleModel && singleModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;\n}\n\nexport default Single;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinate system creator.\n */\nimport Single from './Single';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Create single coordinate system and inject it into seriesModel.\n */\n\nfunction create(ecModel, api) {\n var singles = [];\n ecModel.eachComponent('singleAxis', function (axisModel, idx) {\n var single = new Single(axisModel, ecModel, api);\n single.name = 'single_' + idx;\n single.resize(axisModel, api);\n axisModel.coordinateSystem = single;\n singles.push(single);\n });\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'singleAxis') {\n var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;\n }\n });\n return singles;\n}\n\nvar singleCreator = {\n create: create,\n dimensions: Single.prototype.dimensions\n};\nexport default singleCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nvar XY = ['x', 'y'];\nvar WH = ['width', 'height'];\n\nvar SingleAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisPointer, _super);\n\n function SingleAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n var coordSys = axis.coordinateSystem;\n var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));\n var pixelValue = coordSys.dataToPoint(value)[0];\n var axisPointerType = axisPointerModel.get('type');\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var layoutInfo = singleAxisHelper.layout(axisModel);\n viewHelper.buildCartesianSingleLabelElOption( // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api);\n };\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {\n var layoutInfo = singleAxisHelper.layout(axisModel, {\n labelInside: false\n }); // @ts-ignore\n\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n var position = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: position[0],\n y: position[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n };\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {\n var axis = axisModel.axis;\n var coordSys = axis.coordinateSystem;\n var dimIndex = getPointDimIndex(axis);\n var axisExtent = getGlobalExtent(coordSys, dimIndex);\n var currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);\n var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n var cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: {\n verticalAlign: 'middle'\n }\n };\n };\n\n return SingleAxisPointer;\n}(BaseAxisPointer);\n\nvar pointerShapeBuilder = {\n line: function (axis, pixelValue, otherExtent) {\n var targetShape = viewHelper.makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getPointDimIndex(axis));\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n shadow: function (axis, pixelValue, otherExtent) {\n var bandWidth = axis.getBandWidth();\n var span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getPointDimIndex(axis))\n };\n }\n};\n\nfunction getPointDimIndex(axis) {\n return axis.isHorizontal() ? 0 : 1;\n}\n\nfunction getGlobalExtent(coordSys, dimIndex) {\n var rect = coordSys.getRect();\n return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];\n}\n\nexport default SingleAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { use } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport SingleAxisView from '../axis/SingleAxisView';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport singleCreator from '../../coord/single/singleCreator';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport AxisView from '../axis/AxisView';\nimport SingleAxisPointer from '../axisPointer/SingleAxisPointer';\n\nvar SingleView =\n/** @class */\nfunction (_super) {\n __extends(SingleView, _super);\n\n function SingleView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleView.type;\n return _this;\n }\n\n SingleView.type = 'single';\n return SingleView;\n}(ComponentView);\n\nexport function install(registers) {\n use(installAxisPointer);\n AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer);\n registers.registerComponentView(SingleView); // Axis\n\n registers.registerComponentView(SingleAxisView);\n registers.registerComponentModel(SingleAxisModel);\n axisModelCreator(registers, 'single', SingleAxisModel, SingleAxisModel.defaultOption);\n registers.registerCoordinateSystem('single', singleCreator);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { getLayoutParams, sizeCalculable, mergeLayoutParam } from '../../util/layout';\n\nvar CalendarModel =\n/** @class */\nfunction (_super) {\n __extends(CalendarModel, _super);\n\n function CalendarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CalendarModel.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n CalendarModel.prototype.init = function (option, parentModel, ecModel) {\n var inputPositionParams = getLayoutParams(option);\n\n _super.prototype.init.apply(this, arguments);\n\n mergeAndNormalizeLayoutParams(option, inputPositionParams);\n };\n /**\n * @override\n */\n\n\n CalendarModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n mergeAndNormalizeLayoutParams(this.option, option);\n };\n\n CalendarModel.prototype.getCellSize = function () {\n // Has been normalized\n return this.option.cellSize;\n };\n\n CalendarModel.type = 'calendar';\n CalendarModel.defaultOption = {\n zlevel: 0,\n z: 2,\n left: 80,\n top: 60,\n cellSize: 20,\n // horizontal vertical\n orient: 'horizontal',\n // month separate line style\n splitLine: {\n show: true,\n lineStyle: {\n color: '#000',\n width: 1,\n type: 'solid'\n }\n },\n // rect style temporarily unused emphasis\n itemStyle: {\n color: '#fff',\n borderWidth: 1,\n borderColor: '#ccc'\n },\n // week text style\n dayLabel: {\n show: true,\n firstDay: 0,\n // start end\n position: 'start',\n margin: '50%',\n nameMap: 'en',\n color: '#000'\n },\n // month text style\n monthLabel: {\n show: true,\n // start end\n position: 'start',\n margin: 5,\n // center or left\n align: 'center',\n // cn en []\n nameMap: 'en',\n formatter: null,\n color: '#000'\n },\n // year text style\n yearLabel: {\n show: true,\n // top bottom left right\n position: null,\n margin: 30,\n formatter: null,\n color: '#ccc',\n fontFamily: 'sans-serif',\n fontWeight: 'bolder',\n fontSize: 20\n }\n };\n return CalendarModel;\n}(ComponentModel);\n\nfunction mergeAndNormalizeLayoutParams(target, raw) {\n // Normalize cellSize\n var cellSize = target.cellSize;\n var cellSizeArr;\n\n if (!zrUtil.isArray(cellSize)) {\n cellSizeArr = target.cellSize = [cellSize, cellSize];\n } else {\n cellSizeArr = cellSize;\n }\n\n if (cellSizeArr.length === 1) {\n cellSizeArr[1] = cellSizeArr[0];\n }\n\n var ignoreSize = zrUtil.map([0, 1], function (hvIdx) {\n // If user have set `width` or both `left` and `right`, cellSizeArr\n // will be automatically set to 'auto', otherwise the default\n // setting of cellSizeArr will make `width` setting not work.\n if (sizeCalculable(raw, hvIdx)) {\n cellSizeArr[hvIdx] = 'auto';\n }\n\n return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto';\n });\n mergeLayoutParam(target, raw, {\n type: 'box',\n ignoreSize: ignoreSize\n });\n}\n\nexport default CalendarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport ComponentView from '../../view/Component';\nvar MONTH_TEXT = {\n EN: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n CN: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']\n};\nvar WEEK_TEXT = {\n EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n CN: ['日', '一', '二', '三', '四', '五', '六']\n};\n\nvar CalendarView =\n/** @class */\nfunction (_super) {\n __extends(CalendarView, _super);\n\n function CalendarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CalendarView.type;\n return _this;\n }\n\n CalendarView.prototype.render = function (calendarModel, ecModel, api) {\n var group = this.group;\n group.removeAll();\n var coordSys = calendarModel.coordinateSystem; // range info\n\n var rangeData = coordSys.getRangeInfo();\n var orient = coordSys.getOrient();\n\n this._renderDayRect(calendarModel, rangeData, group); // _renderLines must be called prior to following function\n\n\n this._renderLines(calendarModel, rangeData, orient, group);\n\n this._renderYearText(calendarModel, rangeData, orient, group);\n\n this._renderMonthText(calendarModel, orient, group);\n\n this._renderWeekText(calendarModel, rangeData, orient, group);\n }; // render day rect\n\n\n CalendarView.prototype._renderDayRect = function (calendarModel, rangeData, group) {\n var coordSys = calendarModel.coordinateSystem;\n var itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle();\n var sw = coordSys.getCellWidth();\n var sh = coordSys.getCellHeight();\n\n for (var i = rangeData.start.time; i <= rangeData.end.time; i = coordSys.getNextNDay(i, 1).time) {\n var point = coordSys.dataToRect([i], false).tl; // every rect\n\n var rect = new graphic.Rect({\n shape: {\n x: point[0],\n y: point[1],\n width: sw,\n height: sh\n },\n cursor: 'default',\n style: itemRectStyleModel\n });\n group.add(rect);\n }\n }; // render separate line\n\n\n CalendarView.prototype._renderLines = function (calendarModel, rangeData, orient, group) {\n var self = this;\n var coordSys = calendarModel.coordinateSystem;\n var lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle();\n var show = calendarModel.get(['splitLine', 'show']);\n var lineWidth = lineStyleModel.lineWidth;\n this._tlpoints = [];\n this._blpoints = [];\n this._firstDayOfMonth = [];\n this._firstDayPoints = [];\n var firstDay = rangeData.start;\n\n for (var i = 0; firstDay.time <= rangeData.end.time; i++) {\n addPoints(firstDay.formatedDate);\n\n if (i === 0) {\n firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);\n }\n\n var date = firstDay.date;\n date.setMonth(date.getMonth() + 1);\n firstDay = coordSys.getDateInfo(date);\n }\n\n addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);\n\n function addPoints(date) {\n self._firstDayOfMonth.push(coordSys.getDateInfo(date));\n\n self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);\n\n var points = self._getLinePointsOfOneWeek(calendarModel, date, orient);\n\n self._tlpoints.push(points[0]);\n\n self._blpoints.push(points[points.length - 1]);\n\n show && self._drawSplitline(points, lineStyleModel, group);\n } // render top/left line\n\n\n show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group); // render bottom/right line\n\n show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);\n }; // get points at both ends\n\n\n CalendarView.prototype._getEdgesPoints = function (points, lineWidth, orient) {\n var rs = [points[0].slice(), points[points.length - 1].slice()];\n var idx = orient === 'horizontal' ? 0 : 1; // both ends of the line are extend half lineWidth\n\n rs[0][idx] = rs[0][idx] - lineWidth / 2;\n rs[1][idx] = rs[1][idx] + lineWidth / 2;\n return rs;\n }; // render split line\n\n\n CalendarView.prototype._drawSplitline = function (points, lineStyle, group) {\n var poyline = new graphic.Polyline({\n z2: 20,\n shape: {\n points: points\n },\n style: lineStyle\n });\n group.add(poyline);\n }; // render month line of one week points\n\n\n CalendarView.prototype._getLinePointsOfOneWeek = function (calendarModel, date, orient) {\n var coordSys = calendarModel.coordinateSystem;\n var parsedDate = coordSys.getDateInfo(date);\n var points = [];\n\n for (var i = 0; i < 7; i++) {\n var tmpD = coordSys.getNextNDay(parsedDate.time, i);\n var point = coordSys.dataToRect([tmpD.time], false);\n points[2 * tmpD.day] = point.tl;\n points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];\n }\n\n return points;\n };\n\n CalendarView.prototype._formatterLabel = function (formatter, params) {\n if (typeof formatter === 'string' && formatter) {\n return formatUtil.formatTplSimple(formatter, params);\n }\n\n if (typeof formatter === 'function') {\n return formatter(params);\n }\n\n return params.nameMap;\n };\n\n CalendarView.prototype._yearTextPositionControl = function (textEl, point, orient, position, margin) {\n var x = point[0];\n var y = point[1];\n var aligns = ['center', 'bottom'];\n\n if (position === 'bottom') {\n y += margin;\n aligns = ['center', 'top'];\n } else if (position === 'left') {\n x -= margin;\n } else if (position === 'right') {\n x += margin;\n aligns = ['center', 'top'];\n } else {\n // top\n y -= margin;\n }\n\n var rotate = 0;\n\n if (position === 'left' || position === 'right') {\n rotate = Math.PI / 2;\n }\n\n return {\n rotation: rotate,\n x: x,\n y: y,\n style: {\n align: aligns[0],\n verticalAlign: aligns[1]\n }\n };\n }; // render year\n\n\n CalendarView.prototype._renderYearText = function (calendarModel, rangeData, orient, group) {\n var yearLabel = calendarModel.getModel('yearLabel');\n\n if (!yearLabel.get('show')) {\n return;\n }\n\n var margin = yearLabel.get('margin');\n var pos = yearLabel.get('position');\n\n if (!pos) {\n pos = orient !== 'horizontal' ? 'top' : 'left';\n }\n\n var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];\n var xc = (points[0][0] + points[1][0]) / 2;\n var yc = (points[0][1] + points[1][1]) / 2;\n var idx = orient === 'horizontal' ? 0 : 1;\n var posPoints = {\n top: [xc, points[idx][1]],\n bottom: [xc, points[1 - idx][1]],\n left: [points[1 - idx][0], yc],\n right: [points[idx][0], yc]\n };\n var name = rangeData.start.y;\n\n if (+rangeData.end.y > +rangeData.start.y) {\n name = name + '-' + rangeData.end.y;\n }\n\n var formatter = yearLabel.get('formatter');\n var params = {\n start: rangeData.start.y,\n end: rangeData.end.y,\n nameMap: name\n };\n\n var content = this._formatterLabel(formatter, params);\n\n var yearText = new graphic.Text({\n z2: 30,\n style: createTextStyle(yearLabel, {\n text: content\n })\n });\n yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));\n group.add(yearText);\n };\n\n CalendarView.prototype._monthTextPositionControl = function (point, isCenter, orient, position, margin) {\n var align = 'left';\n var vAlign = 'top';\n var x = point[0];\n var y = point[1];\n\n if (orient === 'horizontal') {\n y = y + margin;\n\n if (isCenter) {\n align = 'center';\n }\n\n if (position === 'start') {\n vAlign = 'bottom';\n }\n } else {\n x = x + margin;\n\n if (isCenter) {\n vAlign = 'middle';\n }\n\n if (position === 'start') {\n align = 'right';\n }\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }; // render month and year text\n\n\n CalendarView.prototype._renderMonthText = function (calendarModel, orient, group) {\n var monthLabel = calendarModel.getModel('monthLabel');\n\n if (!monthLabel.get('show')) {\n return;\n }\n\n var nameMap = monthLabel.get('nameMap');\n var margin = monthLabel.get('margin');\n var pos = monthLabel.get('position');\n var align = monthLabel.get('align');\n var termPoints = [this._tlpoints, this._blpoints];\n\n if (zrUtil.isString(nameMap)) {\n nameMap = MONTH_TEXT[nameMap.toUpperCase()] || [];\n }\n\n var idx = pos === 'start' ? 0 : 1;\n var axis = orient === 'horizontal' ? 0 : 1;\n margin = pos === 'start' ? -margin : margin;\n var isCenter = align === 'center';\n\n for (var i = 0; i < termPoints[idx].length - 1; i++) {\n var tmp = termPoints[idx][i].slice();\n var firstDay = this._firstDayOfMonth[i];\n\n if (isCenter) {\n var firstDayPoints = this._firstDayPoints[i];\n tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;\n }\n\n var formatter = monthLabel.get('formatter');\n var name_1 = nameMap[+firstDay.m - 1];\n var params = {\n yyyy: firstDay.y,\n yy: (firstDay.y + '').slice(2),\n MM: firstDay.m,\n M: +firstDay.m,\n nameMap: name_1\n };\n\n var content = this._formatterLabel(formatter, params);\n\n var monthText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(createTextStyle(monthLabel, {\n text: content\n }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin))\n });\n group.add(monthText);\n }\n };\n\n CalendarView.prototype._weekTextPositionControl = function (point, orient, position, margin, cellSize) {\n var align = 'center';\n var vAlign = 'middle';\n var x = point[0];\n var y = point[1];\n var isStart = position === 'start';\n\n if (orient === 'horizontal') {\n x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;\n align = isStart ? 'right' : 'left';\n } else {\n y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;\n vAlign = isStart ? 'bottom' : 'top';\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }; // render weeks\n\n\n CalendarView.prototype._renderWeekText = function (calendarModel, rangeData, orient, group) {\n var dayLabel = calendarModel.getModel('dayLabel');\n\n if (!dayLabel.get('show')) {\n return;\n }\n\n var coordSys = calendarModel.coordinateSystem;\n var pos = dayLabel.get('position');\n var nameMap = dayLabel.get('nameMap');\n var margin = dayLabel.get('margin');\n var firstDayOfWeek = coordSys.getFirstDayOfWeek();\n\n if (zrUtil.isString(nameMap)) {\n nameMap = WEEK_TEXT[nameMap.toUpperCase()] || [];\n }\n\n var start = coordSys.getNextNDay(rangeData.end.time, 7 - rangeData.lweek).time;\n var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];\n margin = numberUtil.parsePercent(margin, Math.min(cellSize[1], cellSize[0]));\n\n if (pos === 'start') {\n start = coordSys.getNextNDay(rangeData.start.time, -(7 + rangeData.fweek)).time;\n margin = -margin;\n }\n\n for (var i = 0; i < 7; i++) {\n var tmpD = coordSys.getNextNDay(start, i);\n var point = coordSys.dataToRect([tmpD.time], false).center;\n var day = i;\n day = Math.abs((i + firstDayOfWeek) % 7);\n var weekText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(createTextStyle(dayLabel, {\n text: nameMap[day]\n }), this._weekTextPositionControl(point, orient, pos, margin, cellSize))\n });\n group.add(weekText);\n }\n };\n\n CalendarView.type = 'calendar';\n return CalendarView;\n}(ComponentView);\n\nexport default CalendarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number'; // (24*60*60*1000)\n\nvar PROXIMATE_ONE_DAY = 86400000;\n\nvar Calendar =\n/** @class */\nfunction () {\n function Calendar(calendarModel, ecModel, api) {\n this.type = 'calendar';\n this.dimensions = Calendar.dimensions; // Required in createListFromData\n\n this.getDimensionsInfo = Calendar.getDimensionsInfo;\n this._model = calendarModel;\n }\n\n Calendar.getDimensionsInfo = function () {\n return [{\n name: 'time',\n type: 'time'\n }, 'value'];\n };\n\n Calendar.prototype.getRangeInfo = function () {\n return this._rangeInfo;\n };\n\n Calendar.prototype.getModel = function () {\n return this._model;\n };\n\n Calendar.prototype.getRect = function () {\n return this._rect;\n };\n\n Calendar.prototype.getCellWidth = function () {\n return this._sw;\n };\n\n Calendar.prototype.getCellHeight = function () {\n return this._sh;\n };\n\n Calendar.prototype.getOrient = function () {\n return this._orient;\n };\n /**\n * getFirstDayOfWeek\n *\n * @example\n * 0 : start at Sunday\n * 1 : start at Monday\n *\n * @return {number}\n */\n\n\n Calendar.prototype.getFirstDayOfWeek = function () {\n return this._firstDayOfWeek;\n };\n /**\n * get date info\n * }\n */\n\n\n Calendar.prototype.getDateInfo = function (date) {\n date = numberUtil.parseDate(date);\n var y = date.getFullYear();\n var m = date.getMonth() + 1;\n var mStr = m < 10 ? '0' + m : '' + m;\n var d = date.getDate();\n var dStr = d < 10 ? '0' + d : '' + d;\n var day = date.getDay();\n day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);\n return {\n y: y + '',\n m: mStr,\n d: dStr,\n day: day,\n time: date.getTime(),\n formatedDate: y + '-' + mStr + '-' + dStr,\n date: date\n };\n };\n\n Calendar.prototype.getNextNDay = function (date, n) {\n n = n || 0;\n\n if (n === 0) {\n return this.getDateInfo(date);\n }\n\n date = new Date(this.getDateInfo(date).time);\n date.setDate(date.getDate() + n);\n return this.getDateInfo(date);\n };\n\n Calendar.prototype.update = function (ecModel, api) {\n this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');\n this._orient = this._model.get('orient');\n this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0;\n this._rangeInfo = this._getRangeInfo(this._initRangeOption());\n var weeks = this._rangeInfo.weeks || 1;\n var whNames = ['width', 'height'];\n\n var cellSize = this._model.getCellSize().slice();\n\n var layoutParams = this._model.getBoxLayoutParams();\n\n var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];\n zrUtil.each([0, 1], function (idx) {\n if (cellSizeSpecified(cellSize, idx)) {\n layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];\n }\n });\n var whGlobal = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var calendarRect = this._rect = layout.getLayoutRect(layoutParams, whGlobal);\n zrUtil.each([0, 1], function (idx) {\n if (!cellSizeSpecified(cellSize, idx)) {\n cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];\n }\n });\n\n function cellSizeSpecified(cellSize, idx) {\n return cellSize[idx] != null && cellSize[idx] !== 'auto';\n } // Has been calculated out number.\n\n\n this._sw = cellSize[0];\n this._sh = cellSize[1];\n };\n /**\n * Convert a time data(time, value) item to (x, y) point.\n */\n // TODO Clamp of calendar is not same with cartesian coordinate systems.\n // It will return NaN if data exceeds.\n\n\n Calendar.prototype.dataToPoint = function (data, clamp) {\n zrUtil.isArray(data) && (data = data[0]);\n clamp == null && (clamp = true);\n var dayInfo = this.getDateInfo(data);\n var range = this._rangeInfo;\n var date = dayInfo.formatedDate; // if not in range return [NaN, NaN]\n\n if (clamp && !(dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY)) {\n return [NaN, NaN];\n }\n\n var week = dayInfo.day;\n\n var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;\n\n if (this._orient === 'vertical') {\n return [this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2];\n }\n\n return [this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2];\n };\n /**\n * Convert a (x, y) point to time data\n */\n\n\n Calendar.prototype.pointToData = function (point) {\n var date = this.pointToDate(point);\n return date && date.time;\n };\n /**\n * Convert a time date item to (x, y) four point.\n */\n\n\n Calendar.prototype.dataToRect = function (data, clamp) {\n var point = this.dataToPoint(data, clamp);\n return {\n contentShape: {\n x: point[0] - (this._sw - this._lineWidth) / 2,\n y: point[1] - (this._sh - this._lineWidth) / 2,\n width: this._sw - this._lineWidth,\n height: this._sh - this._lineWidth\n },\n center: point,\n tl: [point[0] - this._sw / 2, point[1] - this._sh / 2],\n tr: [point[0] + this._sw / 2, point[1] - this._sh / 2],\n br: [point[0] + this._sw / 2, point[1] + this._sh / 2],\n bl: [point[0] - this._sw / 2, point[1] + this._sh / 2]\n };\n };\n /**\n * Convert a (x, y) point to time date\n *\n * @param {Array} point point\n * @return {Object} date\n */\n\n\n Calendar.prototype.pointToDate = function (point) {\n var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;\n var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;\n var range = this._rangeInfo.range;\n\n if (this._orient === 'vertical') {\n return this._getDateByWeeksAndDay(nthY, nthX - 1, range);\n }\n\n return this._getDateByWeeksAndDay(nthX, nthY - 1, range);\n };\n\n Calendar.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n Calendar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n\n Calendar.prototype.containPoint = function (point) {\n console.warn('Not implemented.');\n return false;\n };\n /**\n * initRange\n * Normalize to an [start, end] array\n */\n\n\n Calendar.prototype._initRangeOption = function () {\n var range = this._model.get('range');\n\n var normalizedRange; // Convert [1990] to 1990\n\n if (zrUtil.isArray(range) && range.length === 1) {\n range = range[0];\n }\n\n if (!zrUtil.isArray(range)) {\n var rangeStr = range.toString(); // One year.\n\n if (/^\\d{4}$/.test(rangeStr)) {\n normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31'];\n } // One month\n\n\n if (/^\\d{4}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n var start = this.getDateInfo(rangeStr);\n var firstDay = start.date;\n firstDay.setMonth(firstDay.getMonth() + 1);\n var end = this.getNextNDay(firstDay, -1);\n normalizedRange = [start.formatedDate, end.formatedDate];\n } // One day\n\n\n if (/^\\d{4}[\\/|-]\\d{1,2}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n normalizedRange = [rangeStr, rangeStr];\n }\n } else {\n normalizedRange = range;\n }\n\n if (!normalizedRange) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.logError('Invalid date range.');\n } // Not handling it.\n\n\n return range;\n }\n\n var tmp = this._getRangeInfo(normalizedRange);\n\n if (tmp.start.time > tmp.end.time) {\n normalizedRange.reverse();\n }\n\n return normalizedRange;\n };\n /**\n * range info\n *\n * @private\n * @param {Array} range range ['2017-01-01', '2017-07-08']\n * If range[0] > range[1], they will not be reversed.\n * @return {Object} obj\n */\n\n\n Calendar.prototype._getRangeInfo = function (range) {\n var parsedRange = [this.getDateInfo(range[0]), this.getDateInfo(range[1])];\n var reversed;\n\n if (parsedRange[0].time > parsedRange[1].time) {\n reversed = true;\n parsedRange.reverse();\n }\n\n var allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY) - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1; // Consider case1 (#11677 #10430):\n // Set the system timezone as \"UK\", set the range to `['2016-07-01', '2016-12-31']`\n // Consider case2:\n // Firstly set system timezone as \"Time Zone: America/Toronto\",\n // ```\n // let first = new Date(1478412000000 - 3600 * 1000 * 2.5);\n // let second = new Date(1478412000000);\n // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;\n // ```\n // will get wrong result because of DST. So we should fix it.\n\n var date = new Date(parsedRange[0].time);\n var startDateNum = date.getDate();\n var endDateNum = parsedRange[1].date.getDate();\n date.setDate(startDateNum + allDay - 1); // The bias can not over a month, so just compare date.\n\n var dateNum = date.getDate();\n\n if (dateNum !== endDateNum) {\n var sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;\n\n while ((dateNum = date.getDate()) !== endDateNum && (date.getTime() - parsedRange[1].time) * sign > 0) {\n allDay -= sign;\n date.setDate(dateNum - sign);\n }\n }\n\n var weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);\n var nthWeek = reversed ? -weeks + 1 : weeks - 1;\n reversed && parsedRange.reverse();\n return {\n range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate],\n start: parsedRange[0],\n end: parsedRange[1],\n allDay: allDay,\n weeks: weeks,\n // From 0.\n nthWeek: nthWeek,\n fweek: parsedRange[0].day,\n lweek: parsedRange[1].day\n };\n };\n /**\n * get date by nthWeeks and week day in range\n *\n * @private\n * @param {number} nthWeek the week\n * @param {number} day the week day\n * @param {Array} range [d1, d2]\n * @return {Object}\n */\n\n\n Calendar.prototype._getDateByWeeksAndDay = function (nthWeek, day, range) {\n var rangeInfo = this._getRangeInfo(range);\n\n if (nthWeek > rangeInfo.weeks || nthWeek === 0 && day < rangeInfo.fweek || nthWeek === rangeInfo.weeks && day > rangeInfo.lweek) {\n return null;\n }\n\n var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;\n var date = new Date(rangeInfo.start.time);\n date.setDate(+rangeInfo.start.d + nthDay);\n return this.getDateInfo(date);\n };\n\n Calendar.create = function (ecModel, api) {\n var calendarList = [];\n ecModel.eachComponent('calendar', function (calendarModel) {\n var calendar = new Calendar(calendarModel, ecModel, api);\n calendarList.push(calendar);\n calendarModel.coordinateSystem = calendar;\n });\n ecModel.eachSeries(function (calendarSeries) {\n if (calendarSeries.get('coordinateSystem') === 'calendar') {\n // Inject coordinate system\n calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];\n }\n });\n return calendarList;\n };\n\n Calendar.dimensions = ['time', 'value'];\n return Calendar;\n}();\n\nfunction getCoordSys(finder) {\n var calendarModel = finder.calendarModel;\n var seriesModel = finder.seriesModel;\n var coordSys = calendarModel ? calendarModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem : null;\n return coordSys;\n}\n\nexport default Calendar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport CalendarView from './CalendarView';\nimport Calendar from '../../coord/calendar/Calendar';\nexport function install(registers) {\n registers.registerComponentModel(CalendarModel);\n registers.registerComponentView(CalendarView);\n registers.registerCoordinateSystem('calendar', Calendar);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport * as graphicUtil from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport { parsePercent } from '../../util/number';\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { getECData } from '../../util/innerStore';\nimport { isEC4CompatibleStyle, convertFromEC4CompatibleStyle } from '../../util/styleCompat';\nvar TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n};\n;\nvar inner = modelUtil.makeInner();\nvar _nonShapeGraphicElements = {\n // Reserved but not supported in graphic component.\n path: null,\n compoundPath: null,\n // Supported in graphic component.\n group: graphicUtil.Group,\n image: graphicUtil.Image,\n text: graphicUtil.Text\n}; // ------------------------\n// Preprocessor\n// ------------------------\n\nvar preprocessor = function (option) {\n var graphicOption = option.graphic; // Convert\n // {graphic: [{left: 10, type: 'circle'}, ...]}\n // or\n // {graphic: {left: 10, type: 'circle'}}\n // to\n // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}\n\n if (zrUtil.isArray(graphicOption)) {\n if (!graphicOption[0] || !graphicOption[0].elements) {\n option.graphic = [{\n elements: graphicOption\n }];\n } else {\n // Only one graphic instance can be instantiated. (We dont\n // want that too many views are created in echarts._viewMap)\n option.graphic = [option.graphic[0]];\n }\n } else if (graphicOption && !graphicOption.elements) {\n option.graphic = [{\n elements: [graphicOption]\n }];\n }\n};\n\n;\n\nvar GraphicComponentModel =\n/** @class */\nfunction (_super) {\n __extends(GraphicComponentModel, _super);\n\n function GraphicComponentModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphicComponentModel.type;\n _this.preventAutoZ = true;\n return _this;\n }\n\n GraphicComponentModel.prototype.mergeOption = function (option, ecModel) {\n // Prevent default merge to elements\n var elements = this.option.elements;\n this.option.elements = null;\n\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n this.option.elements = elements;\n };\n\n GraphicComponentModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option;\n var newList = (isInit ? thisOption : newOption).elements;\n var existList = thisOption.elements = isInit ? [] : thisOption.elements;\n var flattenedList = [];\n\n this._flatten(newList, flattenedList, null);\n\n var mappingResult = modelUtil.mappingToExists(existList, flattenedList, 'normalMerge'); // Clear elOptionsToUpdate\n\n var elOptionsToUpdate = this._elOptionsToUpdate = [];\n zrUtil.each(mappingResult, function (resultItem, index) {\n var newElOption = resultItem.newOption;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(zrUtil.isObject(newElOption) || resultItem.existing, 'Empty graphic option definition');\n }\n\n if (!newElOption) {\n return;\n }\n\n elOptionsToUpdate.push(newElOption);\n setKeyInfoToNewElOption(resultItem, newElOption);\n mergeNewElOptionToExist(existList, index, newElOption);\n setLayoutInfoToExist(existList[index], newElOption);\n }, this); // Clean\n\n for (var i = existList.length - 1; i >= 0; i--) {\n if (existList[i] == null) {\n existList.splice(i, 1);\n } else {\n // $action should be volatile, otherwise option gotten from\n // `getOption` will contain unexpected $action.\n delete existList[i].$action;\n }\n }\n };\n /**\n * Convert\n * [{\n * type: 'group',\n * id: 'xx',\n * children: [{type: 'circle'}, {type: 'polygon'}]\n * }]\n * to\n * [\n * {type: 'group', id: 'xx'},\n * {type: 'circle', parentId: 'xx'},\n * {type: 'polygon', parentId: 'xx'}\n * ]\n */\n\n\n GraphicComponentModel.prototype._flatten = function (optionList, result, parentOption) {\n zrUtil.each(optionList, function (option) {\n if (!option) {\n return;\n }\n\n if (parentOption) {\n option.parentOption = parentOption;\n }\n\n result.push(option);\n var children = option.children;\n\n if (option.type === 'group' && children) {\n this._flatten(children, result, option);\n } // Deleting for JSON output, and for not affecting group creation.\n\n\n delete option.children;\n }, this);\n }; // FIXME\n // Pass to view using payload? setOption has a payload?\n\n\n GraphicComponentModel.prototype.useElOptionsToUpdate = function () {\n var els = this._elOptionsToUpdate; // Clear to avoid render duplicately when zooming.\n\n this._elOptionsToUpdate = null;\n return els;\n };\n\n GraphicComponentModel.type = 'graphic';\n GraphicComponentModel.defaultOption = {\n elements: [] // parentId: null\n\n };\n return GraphicComponentModel;\n}(ComponentModel); // ------------------------\n// View\n// ------------------------\n\n\nvar GraphicComponentView =\n/** @class */\nfunction (_super) {\n __extends(GraphicComponentView, _super);\n\n function GraphicComponentView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphicComponentView.type;\n return _this;\n }\n\n GraphicComponentView.prototype.init = function () {\n this._elMap = zrUtil.createHashMap();\n };\n\n GraphicComponentView.prototype.render = function (graphicModel, ecModel, api) {\n // Having leveraged between use cases and algorithm complexity, a very\n // simple layout mechanism is used:\n // The size(width/height) can be determined by itself or its parent (not\n // implemented yet), but can not by its children. (Top-down travel)\n // The location(x/y) can be determined by the bounding rect of itself\n // (can including its descendants or not) and the size of its parent.\n // (Bottom-up travel)\n // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,\n // view will be reused.\n if (graphicModel !== this._lastGraphicModel) {\n this._clear();\n }\n\n this._lastGraphicModel = graphicModel;\n\n this._updateElements(graphicModel);\n\n this._relocate(graphicModel, api);\n };\n /**\n * Update graphic elements.\n */\n\n\n GraphicComponentView.prototype._updateElements = function (graphicModel) {\n var elOptionsToUpdate = graphicModel.useElOptionsToUpdate();\n\n if (!elOptionsToUpdate) {\n return;\n }\n\n var elMap = this._elMap;\n var rootGroup = this.group; // Top-down tranverse to assign graphic settings to each elements.\n\n zrUtil.each(elOptionsToUpdate, function (elOption) {\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var elExisting = id != null ? elMap.get(id) : null;\n var parentId = modelUtil.convertOptionIdName(elOption.parentId, null);\n var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup;\n var elType = elOption.type;\n var elOptionStyle = elOption.style;\n\n if (elType === 'text' && elOptionStyle) {\n // In top/bottom mode, textVerticalAlign should not be used, which cause\n // inaccurately locating.\n if (elOption.hv && elOption.hv[1]) {\n elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = elOptionStyle.verticalAlign = elOptionStyle.align = null;\n }\n }\n\n var textContentOption = elOption.textContent;\n var textConfig = elOption.textConfig;\n\n if (elOptionStyle && isEC4CompatibleStyle(elOptionStyle, elType, !!textConfig, !!textContentOption)) {\n var convertResult = convertFromEC4CompatibleStyle(elOptionStyle, elType, true);\n\n if (!textConfig && convertResult.textConfig) {\n textConfig = elOption.textConfig = convertResult.textConfig;\n }\n\n if (!textContentOption && convertResult.textContent) {\n textContentOption = convertResult.textContent;\n }\n } // Remove unnecessary props to avoid potential problems.\n\n\n var elOptionCleaned = getCleanedElOption(elOption); // For simple, do not support parent change, otherwise reorder is needed.\n\n if (process.env.NODE_ENV !== 'production') {\n elExisting && zrUtil.assert(targetElParent === elExisting.parent, 'Changing parent is not supported.');\n }\n\n var $action = elOption.$action || 'merge';\n\n if ($action === 'merge') {\n elExisting ? elExisting.attr(elOptionCleaned) : createEl(id, targetElParent, elOptionCleaned, elMap);\n } else if ($action === 'replace') {\n removeEl(elExisting, elMap);\n createEl(id, targetElParent, elOptionCleaned, elMap);\n } else if ($action === 'remove') {\n removeEl(elExisting, elMap);\n }\n\n var el = elMap.get(id);\n\n if (el && textContentOption) {\n if ($action === 'merge') {\n var textContentExisting = el.getTextContent();\n textContentExisting ? textContentExisting.attr(textContentOption) : el.setTextContent(new graphicUtil.Text(textContentOption));\n } else if ($action === 'replace') {\n el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n }\n\n if (el) {\n var elInner = inner(el);\n elInner.__ecGraphicWidthOption = elOption.width;\n elInner.__ecGraphicHeightOption = elOption.height;\n setEventData(el, graphicModel, elOption);\n graphicUtil.setTooltipConfig({\n el: el,\n componentModel: graphicModel,\n itemName: el.name,\n itemTooltipOption: elOption.tooltip\n });\n }\n });\n };\n /**\n * Locate graphic elements.\n */\n\n\n GraphicComponentView.prototype._relocate = function (graphicModel, api) {\n var elOptions = graphicModel.option.elements;\n var rootGroup = this.group;\n var elMap = this._elMap;\n var apiWidth = api.getWidth();\n var apiHeight = api.getHeight(); // Top-down to calculate percentage width/height of group\n\n for (var i = 0; i < elOptions.length; i++) {\n var elOption = elOptions[i];\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var el = id != null ? elMap.get(id) : null;\n\n if (!el || !el.isGroup) {\n continue;\n }\n\n var parentEl = el.parent;\n var isParentRoot = parentEl === rootGroup; // Like 'position:absolut' in css, default 0.\n\n var elInner = inner(el);\n var parentElInner = inner(parentEl);\n elInner.__ecGraphicWidth = parsePercent(elInner.__ecGraphicWidthOption, isParentRoot ? apiWidth : parentElInner.__ecGraphicWidth) || 0;\n elInner.__ecGraphicHeight = parsePercent(elInner.__ecGraphicHeightOption, isParentRoot ? apiHeight : parentElInner.__ecGraphicHeight) || 0;\n } // Bottom-up tranvese all elements (consider ec resize) to locate elements.\n\n\n for (var i = elOptions.length - 1; i >= 0; i--) {\n var elOption = elOptions[i];\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var el = id != null ? elMap.get(id) : null;\n\n if (!el) {\n continue;\n }\n\n var parentEl = el.parent;\n var parentElInner = inner(parentEl);\n var containerInfo = parentEl === rootGroup ? {\n width: apiWidth,\n height: apiHeight\n } : {\n width: parentElInner.__ecGraphicWidth,\n height: parentElInner.__ecGraphicHeight\n }; // PENDING\n // Currently, when `bounding: 'all'`, the union bounding rect of the group\n // does not include the rect of [0, 0, group.width, group.height], which\n // is probably weird for users. Should we make a break change for it?\n\n layoutUtil.positionElement(el, elOption, containerInfo, null, {\n hv: elOption.hv,\n boundingMode: elOption.bounding\n });\n }\n };\n /**\n * Clear all elements.\n */\n\n\n GraphicComponentView.prototype._clear = function () {\n var elMap = this._elMap;\n elMap.each(function (el) {\n removeEl(el, elMap);\n });\n this._elMap = zrUtil.createHashMap();\n };\n\n GraphicComponentView.prototype.dispose = function () {\n this._clear();\n };\n\n GraphicComponentView.type = 'graphic';\n return GraphicComponentView;\n}(ComponentView);\n\nfunction createEl(id, targetElParent, elOption, elMap) {\n var graphicType = elOption.type;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(graphicType, 'graphic type MUST be set');\n }\n\n var Clz = zrUtil.hasOwn(_nonShapeGraphicElements, graphicType) // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n ? _nonShapeGraphicElements[graphicType] : graphicUtil.getShapeClass(graphicType);\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(Clz, 'graphic type can not be found');\n }\n\n var el = new Clz(elOption);\n targetElParent.add(el);\n elMap.set(id, el);\n inner(el).__ecGraphicId = id;\n}\n\nfunction removeEl(elExisting, elMap) {\n var existElParent = elExisting && elExisting.parent;\n\n if (existElParent) {\n elExisting.type === 'group' && elExisting.traverse(function (el) {\n removeEl(el, elMap);\n });\n elMap.removeKey(inner(elExisting).__ecGraphicId);\n existElParent.remove(elExisting);\n }\n} // Remove unnecessary props to avoid potential problems.\n\n\nfunction getCleanedElOption(elOption) {\n elOption = zrUtil.extend({}, elOption);\n zrUtil.each(['id', 'parentId', '$action', 'hv', 'bounding', 'textContent'].concat(layoutUtil.LOCATION_PARAMS), function (name) {\n delete elOption[name];\n });\n return elOption;\n}\n\nfunction isSetLoc(obj, props) {\n var isSet;\n zrUtil.each(props, function (prop) {\n obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);\n });\n return isSet;\n}\n\nfunction setKeyInfoToNewElOption(resultItem, newElOption) {\n var existElOption = resultItem.existing; // Set id and type after id assigned.\n\n newElOption.id = resultItem.keyInfo.id;\n !newElOption.type && existElOption && (newElOption.type = existElOption.type); // Set parent id if not specified\n\n if (newElOption.parentId == null) {\n var newElParentOption = newElOption.parentOption;\n\n if (newElParentOption) {\n newElOption.parentId = newElParentOption.id;\n } else if (existElOption) {\n newElOption.parentId = existElOption.parentId;\n }\n } // Clear\n\n\n newElOption.parentOption = null;\n}\n\nfunction mergeNewElOptionToExist(existList, index, newElOption) {\n // Update existing options, for `getOption` feature.\n var newElOptCopy = zrUtil.extend({}, newElOption);\n var existElOption = existList[index];\n var $action = newElOption.$action || 'merge';\n\n if ($action === 'merge') {\n if (existElOption) {\n if (process.env.NODE_ENV !== 'production') {\n var newType = newElOption.type;\n zrUtil.assert(!newType || existElOption.type === newType, 'Please set $action: \"replace\" to change `type`');\n } // We can ensure that newElOptCopy and existElOption are not\n // the same object, so `merge` will not change newElOptCopy.\n\n\n zrUtil.merge(existElOption, newElOptCopy, true); // Rigid body, use ignoreSize.\n\n layoutUtil.mergeLayoutParam(existElOption, newElOptCopy, {\n ignoreSize: true\n }); // Will be used in render.\n\n layoutUtil.copyLayoutParams(newElOption, existElOption);\n } else {\n existList[index] = newElOptCopy;\n }\n } else if ($action === 'replace') {\n existList[index] = newElOptCopy;\n } else if ($action === 'remove') {\n // null will be cleaned later.\n existElOption && (existList[index] = null);\n }\n}\n\nfunction setLayoutInfoToExist(existItem, newElOption) {\n if (!existItem) {\n return;\n }\n\n existItem.hv = newElOption.hv = [// Rigid body, dont care `width`.\n isSetLoc(newElOption, ['left', 'right']), // Rigid body, dont care `height`.\n isSetLoc(newElOption, ['top', 'bottom'])]; // Give default group size. Otherwise layout error may occur.\n\n if (existItem.type === 'group') {\n var existingGroupOpt = existItem;\n var newGroupOpt = newElOption;\n existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0);\n existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0);\n }\n}\n\nfunction setEventData(el, graphicModel, elOption) {\n var eventData = getECData(el).eventData; // Simple optimize for large amount of elements that no need event.\n\n if (!el.silent && !el.ignore && !eventData) {\n eventData = getECData(el).eventData = {\n componentType: 'graphic',\n componentIndex: graphicModel.componentIndex,\n name: el.name\n };\n } // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n\n\n if (eventData) {\n eventData.info = elOption.info;\n }\n}\n\nexport function install(registers) {\n registers.registerComponentModel(GraphicComponentModel);\n registers.registerComponentView(GraphicComponentView);\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { indexOf, createHashMap, assert } from 'zrender/lib/core/util';\nexport var DATA_ZOOM_AXIS_DIMENSIONS = ['x', 'y', 'radius', 'angle', 'single']; // Supported coords.\n// FIXME: polar has been broken (but rarely used).\n\nvar SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis'];\nexport function isCoordSupported(seriesModel) {\n var coordType = seriesModel.get('coordinateSystem');\n return indexOf(SERIES_COORDS, coordType) >= 0;\n}\nexport function getAxisMainType(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'Axis';\n}\nexport function getAxisIndexPropName(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'AxisIndex';\n}\nexport function getAxisIdPropName(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'AxisId';\n}\n/**\n * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.\n * This function finds all linked dataZoomModels start from the given payload.\n */\n\nexport function findEffectedDataZooms(ecModel, payload) {\n // Key: `DataZoomAxisDimension`\n var axisRecords = createHashMap();\n var effectedModels = []; // Key: uid of dataZoomModel\n\n var effectedModelMap = createHashMap(); // Find the dataZooms specified by payload.\n\n ecModel.eachComponent({\n mainType: 'dataZoom',\n query: payload\n }, function (dataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid)) {\n addToEffected(dataZoomModel);\n }\n }); // Start from the given dataZoomModels, travel the graph to find\n // all of the linked dataZoom models.\n\n var foundNewLink;\n\n do {\n foundNewLink = false;\n ecModel.eachComponent('dataZoom', processSingle);\n } while (foundNewLink);\n\n function processSingle(dataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) {\n addToEffected(dataZoomModel);\n foundNewLink = true;\n }\n }\n\n function addToEffected(dataZoom) {\n effectedModelMap.set(dataZoom.uid, true);\n effectedModels.push(dataZoom);\n markAxisControlled(dataZoom);\n }\n\n function isLinked(dataZoomModel) {\n var isLink = false;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisIdxArr = axisRecords.get(axisDim);\n\n if (axisIdxArr && axisIdxArr[axisIndex]) {\n isLink = true;\n }\n });\n return isLink;\n }\n\n function markAxisControlled(dataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n (axisRecords.get(axisDim) || axisRecords.set(axisDim, []))[axisIndex] = true;\n });\n }\n\n return effectedModels;\n}\n/**\n * Find the first target coordinate system.\n * Available after model built.\n *\n * @return Like {\n * grid: [\n * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},\n * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},\n * ...\n * ], // cartesians must not be null/undefined.\n * polar: [\n * {model: coord0, axisModels: [axis4], coordIndex: 0},\n * ...\n * ], // polars must not be null/undefined.\n * singleAxis: [\n * {model: coord0, axisModels: [], coordIndex: 0}\n * ]\n * }\n */\n\nexport function collectReferCoordSysModelInfo(dataZoomModel) {\n var ecModel = dataZoomModel.ecModel;\n var coordSysInfoWrap = {\n infoList: [],\n infoMap: createHashMap()\n };\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n\n if (!axisModel) {\n return;\n }\n\n var coordSysModel = axisModel.getCoordSysModel();\n\n if (!coordSysModel) {\n return;\n }\n\n var coordSysUid = coordSysModel.uid;\n var coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid);\n\n if (!coordSysInfo) {\n coordSysInfo = {\n model: coordSysModel,\n axisModels: []\n };\n coordSysInfoWrap.infoList.push(coordSysInfo);\n coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo);\n }\n\n coordSysInfo.axisModels.push(axisModel);\n });\n return coordSysInfoWrap;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { each, createHashMap, merge, assert } from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { getAxisMainType, DATA_ZOOM_AXIS_DIMENSIONS } from './helper';\nimport { MULTIPLE_REFERRING, SINGLE_REFERRING } from '../../util/model';\n\nvar DataZoomAxisInfo =\n/** @class */\nfunction () {\n function DataZoomAxisInfo() {\n this.indexList = [];\n this.indexMap = [];\n }\n\n DataZoomAxisInfo.prototype.add = function (axisCmptIdx) {\n // Remove duplication.\n if (!this.indexMap[axisCmptIdx]) {\n this.indexList.push(axisCmptIdx);\n this.indexMap[axisCmptIdx] = true;\n }\n };\n\n return DataZoomAxisInfo;\n}();\n\nvar DataZoomModel =\n/** @class */\nfunction (_super) {\n __extends(DataZoomModel, _super);\n\n function DataZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = DataZoomModel.type;\n _this._autoThrottle = true;\n _this._noTarget = true;\n /**\n * It is `[rangeModeForMin, rangeModeForMax]`.\n * The optional values for `rangeMode`:\n * + `'value'` mode: the axis extent will always be determined by\n * `dataZoom.startValue` and `dataZoom.endValue`, despite\n * how data like and how `axis.min` and `axis.max` are.\n * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,\n * where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,\n * and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.\n * Axis extent will be determined by the result of the percent of `[dMin, dMax]`.\n *\n * For example, when users are using dynamic data (update data periodically via `setOption`),\n * if in `'value`' mode, the window will be kept in a fixed value range despite how\n * data are appended, while if in `'percent'` mode, whe window range will be changed alone with\n * the appended data (suppose `axis.min` and `axis.max` are not specified).\n */\n\n _this._rangePropMode = ['percent', 'percent'];\n return _this;\n }\n\n DataZoomModel.prototype.init = function (option, parentModel, ecModel) {\n var inputRawOption = retrieveRawOption(option);\n /**\n * Suppose a \"main process\" start at the point that model prepared (that is,\n * model initialized or merged or method called in `action`).\n * We should keep the `main process` idempotent, that is, given a set of values\n * on `option`, we get the same result.\n *\n * But sometimes, values on `option` will be updated for providing users\n * a \"final calculated value\" (`dataZoomProcessor` will do that). Those value\n * should not be the base/input of the `main process`.\n *\n * So in that case we should save and keep the input of the `main process`\n * separately, called `settledOption`.\n *\n * For example, consider the case:\n * (Step_1) brush zoom the grid by `toolbox.dataZoom`,\n * where the original input `option.startValue`, `option.endValue` are earsed by\n * calculated value.\n * (Step)2) click the legend to hide and show a series,\n * where the new range is calculated by the earsed `startValue` and `endValue`,\n * which brings incorrect result.\n */\n\n this.settledOption = inputRawOption;\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._doInit(inputRawOption);\n };\n\n DataZoomModel.prototype.mergeOption = function (newOption) {\n var inputRawOption = retrieveRawOption(newOption); //FIX #2591\n\n merge(this.option, newOption, true);\n merge(this.settledOption, inputRawOption, true);\n\n this._doInit(inputRawOption);\n };\n\n DataZoomModel.prototype._doInit = function (inputRawOption) {\n var thisOption = this.option; // if (!env.canvasSupported) {\n // thisOption.realtime = false;\n // }\n\n this._setDefaultThrottle(inputRawOption);\n\n this._updateRangeUse(inputRawOption);\n\n var settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']], function (names, index) {\n // start/end has higher priority over startValue/endValue if they\n // both set, but we should make chart.setOption({endValue: 1000})\n // effective, rather than chart.setOption({endValue: 1000, end: null}).\n if (this._rangePropMode[index] === 'value') {\n thisOption[names[0]] = settledOption[names[0]] = null;\n } // Otherwise do nothing and use the merge result.\n\n }, this);\n\n this._resetTarget();\n };\n\n DataZoomModel.prototype._resetTarget = function () {\n var optionOrient = this.get('orient', true);\n var targetAxisIndexMap = this._targetAxisInfoMap = createHashMap();\n\n var hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap);\n\n if (hasAxisSpecified) {\n this._orient = optionOrient || this._makeAutoOrientByTargetAxis();\n } else {\n this._orient = optionOrient || 'horizontal';\n\n this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient);\n }\n\n this._noTarget = true;\n targetAxisIndexMap.each(function (axisInfo) {\n if (axisInfo.indexList.length) {\n this._noTarget = false;\n }\n }, this);\n };\n\n DataZoomModel.prototype._fillSpecifiedTargetAxis = function (targetAxisIndexMap) {\n var hasAxisSpecified = false;\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n var refering = this.getReferringComponents(getAxisMainType(axisDim), MULTIPLE_REFERRING); // When user set axisIndex as a empty array, we think that user specify axisIndex\n // but do not want use auto mode. Because empty array may be encountered when\n // some error occured.\n\n if (!refering.specified) {\n return;\n }\n\n hasAxisSpecified = true;\n var axisInfo = new DataZoomAxisInfo();\n each(refering.models, function (axisModel) {\n axisInfo.add(axisModel.componentIndex);\n });\n targetAxisIndexMap.set(axisDim, axisInfo);\n }, this);\n return hasAxisSpecified;\n };\n\n DataZoomModel.prototype._fillAutoTargetAxisByOrient = function (targetAxisIndexMap, orient) {\n var ecModel = this.ecModel;\n var needAuto = true; // Find axis that parallel to dataZoom as default.\n\n if (needAuto) {\n var axisDim = orient === 'vertical' ? 'y' : 'x';\n var axisModels = ecModel.findComponents({\n mainType: axisDim + 'Axis'\n });\n setParallelAxis(axisModels, axisDim);\n } // Find axis that parallel to dataZoom as default.\n\n\n if (needAuto) {\n var axisModels = ecModel.findComponents({\n mainType: 'singleAxis',\n filter: function (axisModel) {\n return axisModel.get('orient', true) === orient;\n }\n });\n setParallelAxis(axisModels, 'single');\n }\n\n function setParallelAxis(axisModels, axisDim) {\n // At least use the first parallel axis as the target axis.\n var axisModel = axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModel.componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false; // Find parallel axes in the same grid.\n\n if (axisDim === 'x' || axisDim === 'y') {\n var gridModel_1 = axisModel.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n gridModel_1 && each(axisModels, function (axModel) {\n if (axisModel.componentIndex !== axModel.componentIndex && gridModel_1 === axModel.getReferringComponents('grid', SINGLE_REFERRING).models[0]) {\n axisInfo.add(axModel.componentIndex);\n }\n });\n }\n }\n\n if (needAuto) {\n // If no parallel axis, find the first category axis as default. (Also consider polar).\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n if (!needAuto) {\n return;\n }\n\n var axisModels = ecModel.findComponents({\n mainType: getAxisMainType(axisDim),\n filter: function (axisModel) {\n return axisModel.get('type', true) === 'category';\n }\n });\n\n if (axisModels[0]) {\n var axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModels[0].componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n }\n }, this);\n }\n };\n\n DataZoomModel.prototype._makeAutoOrientByTargetAxis = function () {\n var dim; // Find the first axis\n\n this.eachTargetAxis(function (axisDim) {\n !dim && (dim = axisDim);\n }, this);\n return dim === 'y' ? 'vertical' : 'horizontal';\n };\n\n DataZoomModel.prototype._setDefaultThrottle = function (inputRawOption) {\n // When first time user set throttle, auto throttle ends.\n if (inputRawOption.hasOwnProperty('throttle')) {\n this._autoThrottle = false;\n }\n\n if (this._autoThrottle) {\n var globalOption = this.ecModel.option;\n this.option.throttle = globalOption.animation && globalOption.animationDurationUpdate > 0 ? 100 : 20;\n }\n };\n\n DataZoomModel.prototype._updateRangeUse = function (inputRawOption) {\n var rangePropMode = this._rangePropMode;\n var rangeModeInOption = this.get('rangeMode');\n each([['start', 'startValue'], ['end', 'endValue']], function (names, index) {\n var percentSpecified = inputRawOption[names[0]] != null;\n var valueSpecified = inputRawOption[names[1]] != null;\n\n if (percentSpecified && !valueSpecified) {\n rangePropMode[index] = 'percent';\n } else if (!percentSpecified && valueSpecified) {\n rangePropMode[index] = 'value';\n } else if (rangeModeInOption) {\n rangePropMode[index] = rangeModeInOption[index];\n } else if (percentSpecified) {\n // percentSpecified && valueSpecified\n rangePropMode[index] = 'percent';\n } // else remain its original setting.\n\n });\n };\n\n DataZoomModel.prototype.noTarget = function () {\n return this._noTarget;\n };\n\n DataZoomModel.prototype.getFirstTargetAxisModel = function () {\n var firstAxisModel;\n this.eachTargetAxis(function (axisDim, axisIndex) {\n if (firstAxisModel == null) {\n firstAxisModel = this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n }\n }, this);\n return firstAxisModel;\n };\n /**\n * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel\n */\n\n\n DataZoomModel.prototype.eachTargetAxis = function (callback, context) {\n this._targetAxisInfoMap.each(function (axisInfo, axisDim) {\n each(axisInfo.indexList, function (axisIndex) {\n callback.call(context, axisDim, axisIndex);\n });\n });\n };\n /**\n * @return If not found, return null/undefined.\n */\n\n\n DataZoomModel.prototype.getAxisProxy = function (axisDim, axisIndex) {\n var axisModel = this.getAxisModel(axisDim, axisIndex);\n\n if (axisModel) {\n return axisModel.__dzAxisProxy;\n }\n };\n /**\n * @return If not found, return null/undefined.\n */\n\n\n DataZoomModel.prototype.getAxisModel = function (axisDim, axisIndex) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim && axisIndex != null);\n }\n\n var axisInfo = this._targetAxisInfoMap.get(axisDim);\n\n if (axisInfo && axisInfo.indexMap[axisIndex]) {\n return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n }\n };\n /**\n * If not specified, set to undefined.\n */\n\n\n DataZoomModel.prototype.setRawRange = function (opt) {\n var thisOption = this.option;\n var settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']], function (names) {\n // Consider the pair :\n // If one has value and the other one is `null/undefined`, we both set them\n // to `settledOption`. This strategy enables the feature to clear the original\n // value in `settledOption` to `null/undefined`.\n // But if both of them are `null/undefined`, we do not set them to `settledOption`\n // and keep `settledOption` with the original value. This strategy enables users to\n // only set but not set when calling\n // `dispatchAction`.\n // The pair is treated in the same way.\n if (opt[names[0]] != null || opt[names[1]] != null) {\n thisOption[names[0]] = settledOption[names[0]] = opt[names[0]];\n thisOption[names[1]] = settledOption[names[1]] = opt[names[1]];\n }\n }, this);\n\n this._updateRangeUse(opt);\n };\n\n DataZoomModel.prototype.setCalculatedRange = function (opt) {\n var option = this.option;\n each(['start', 'startValue', 'end', 'endValue'], function (name) {\n option[name] = opt[name];\n });\n };\n\n DataZoomModel.prototype.getPercentRange = function () {\n var axisProxy = this.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n return axisProxy.getDataPercentWindow();\n }\n };\n /**\n * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);\n *\n * @return [startValue, endValue] value can only be '-' or finite number.\n */\n\n\n DataZoomModel.prototype.getValueRange = function (axisDim, axisIndex) {\n if (axisDim == null && axisIndex == null) {\n var axisProxy = this.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n return axisProxy.getDataValueWindow();\n }\n } else {\n return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();\n }\n };\n /**\n * @param axisModel If axisModel given, find axisProxy\n * corresponding to the axisModel\n */\n\n\n DataZoomModel.prototype.findRepresentativeAxisProxy = function (axisModel) {\n if (axisModel) {\n return axisModel.__dzAxisProxy;\n } // Find the first hosted axisProxy\n\n\n var firstProxy;\n\n var axisDimList = this._targetAxisInfoMap.keys();\n\n for (var i = 0; i < axisDimList.length; i++) {\n var axisDim = axisDimList[i];\n\n var axisInfo = this._targetAxisInfoMap.get(axisDim);\n\n for (var j = 0; j < axisInfo.indexList.length; j++) {\n var proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]);\n\n if (proxy.hostedBy(this)) {\n return proxy;\n }\n\n if (!firstProxy) {\n firstProxy = proxy;\n }\n }\n } // If no hosted proxy found, still need to return a proxy.\n // This case always happens in toolbox dataZoom, where axes are all hosted by\n // other dataZooms.\n\n\n return firstProxy;\n };\n\n DataZoomModel.prototype.getRangePropMode = function () {\n return this._rangePropMode.slice();\n };\n\n DataZoomModel.prototype.getOrient = function () {\n if (process.env.NODE_ENV !== 'production') {\n // Should not be called before initialized.\n assert(this._orient);\n }\n\n return this._orient;\n };\n\n DataZoomModel.type = 'dataZoom';\n DataZoomModel.dependencies = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox'];\n DataZoomModel.defaultOption = {\n zlevel: 0,\n z: 4,\n filterMode: 'filter',\n start: 0,\n end: 100\n };\n return DataZoomModel;\n}(ComponentModel);\n/**\n * Retrieve the those raw params from option, which will be cached separately.\n * becasue they will be overwritten by normalized/calculated values in the main\n * process.\n */\n\n\nfunction retrieveRawOption(option) {\n var ret = {};\n each(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) {\n option.hasOwnProperty(name) && (ret[name] = option[name]);\n });\n return ret;\n}\n\nexport default DataZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\n\nvar SelectDataZoomModel =\n/** @class */\nfunction (_super) {\n __extends(SelectDataZoomModel, _super);\n\n function SelectDataZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SelectDataZoomModel.type;\n return _this;\n }\n\n SelectDataZoomModel.type = 'dataZoom.select';\n return SelectDataZoomModel;\n}(DataZoomModel);\n\nexport default SelectDataZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\n\nvar DataZoomView =\n/** @class */\nfunction (_super) {\n __extends(DataZoomView, _super);\n\n function DataZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = DataZoomView.type;\n return _this;\n }\n\n DataZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {\n this.dataZoomModel = dataZoomModel;\n this.ecModel = ecModel;\n this.api = api;\n };\n\n DataZoomView.type = 'dataZoom';\n return DataZoomView;\n}(ComponentView);\n\nexport default DataZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomView from './DataZoomView';\n\nvar SelectDataZoomView =\n/** @class */\nfunction (_super) {\n __extends(SelectDataZoomView, _super);\n\n function SelectDataZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SelectDataZoomView.type;\n return _this;\n }\n\n SelectDataZoomView.type = 'dataZoom.select';\n return SelectDataZoomView;\n}(DataZoomView);\n\nexport default SelectDataZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport { unionAxisExtentFromData } from '../../coord/axisHelper';\nimport { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo';\nimport { getAxisMainType, isCoordSupported } from './helper';\nimport { SINGLE_REFERRING } from '../../util/model';\nvar each = zrUtil.each;\nvar asc = numberUtil.asc;\n/**\n * Operate single axis.\n * One axis can only operated by one axis operator.\n * Different dataZoomModels may be defined to operate the same axis.\n * (i.e. 'inside' data zoom and 'slider' data zoom components)\n * So dataZoomModels share one axisProxy in that case.\n */\n\nvar AxisProxy =\n/** @class */\nfunction () {\n function AxisProxy(dimName, axisIndex, dataZoomModel, ecModel) {\n this._dimName = dimName;\n this._axisIndex = axisIndex;\n this.ecModel = ecModel;\n this._dataZoomModel = dataZoomModel; // /**\n // * @readOnly\n // * @private\n // */\n // this.hasSeriesStacked;\n }\n /**\n * Whether the axisProxy is hosted by dataZoomModel.\n */\n\n\n AxisProxy.prototype.hostedBy = function (dataZoomModel) {\n return this._dataZoomModel === dataZoomModel;\n };\n /**\n * @return Value can only be NaN or finite value.\n */\n\n\n AxisProxy.prototype.getDataValueWindow = function () {\n return this._valueWindow.slice();\n };\n /**\n * @return {Array.}\n */\n\n\n AxisProxy.prototype.getDataPercentWindow = function () {\n return this._percentWindow.slice();\n };\n\n AxisProxy.prototype.getTargetSeriesModels = function () {\n var seriesModels = [];\n this.ecModel.eachSeries(function (seriesModel) {\n if (isCoordSupported(seriesModel)) {\n var axisMainType = getAxisMainType(this._dimName);\n var axisModel = seriesModel.getReferringComponents(axisMainType, SINGLE_REFERRING).models[0];\n\n if (axisModel && this._axisIndex === axisModel.componentIndex) {\n seriesModels.push(seriesModel);\n }\n }\n }, this);\n return seriesModels;\n };\n\n AxisProxy.prototype.getAxisModel = function () {\n return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex);\n };\n\n AxisProxy.prototype.getMinMaxSpan = function () {\n return zrUtil.clone(this._minMaxSpan);\n };\n /**\n * Only calculate by given range and this._dataExtent, do not change anything.\n */\n\n\n AxisProxy.prototype.calculateDataWindow = function (opt) {\n var dataExtent = this._dataExtent;\n var axisModel = this.getAxisModel();\n var scale = axisModel.axis.scale;\n\n var rangePropMode = this._dataZoomModel.getRangePropMode();\n\n var percentExtent = [0, 100];\n var percentWindow = [];\n var valueWindow = [];\n var hasPropModeValue;\n each(['start', 'end'], function (prop, idx) {\n var boundPercent = opt[prop];\n var boundValue = opt[prop + 'Value']; // Notice: dataZoom is based either on `percentProp` ('start', 'end') or\n // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent\n // but not min/max of axis, which will be calculated by data window then).\n // The former one is suitable for cases that a dataZoom component controls multiple\n // axes with different unit or extent, and the latter one is suitable for accurate\n // zoom by pixel (e.g., in dataZoomSelect).\n // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated\n // only when setOption or dispatchAction, otherwise it remains its original value.\n // (Why not only record `percentProp` and always map to `valueProp`? Because\n // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original\n // `valueProp`. consider two axes constrolled by one dataZoom. They have different\n // data extent. All of values that are overflow the `dataExtent` will be calculated\n // to percent '100%').\n\n if (rangePropMode[idx] === 'percent') {\n boundPercent == null && (boundPercent = percentExtent[idx]); // Use scale.parse to math round for category or time axis.\n\n boundValue = scale.parse(numberUtil.linearMap(boundPercent, percentExtent, dataExtent));\n } else {\n hasPropModeValue = true;\n boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue); // Calculating `percent` from `value` may be not accurate, because\n // This calculation can not be inversed, because all of values that\n // are overflow the `dataExtent` will be calculated to percent '100%'\n\n boundPercent = numberUtil.linearMap(boundValue, dataExtent, percentExtent);\n } // valueWindow[idx] = round(boundValue);\n // percentWindow[idx] = round(boundPercent);\n\n\n valueWindow[idx] = boundValue;\n percentWindow[idx] = boundPercent;\n });\n asc(valueWindow);\n asc(percentWindow); // The windows from user calling of `dispatchAction` might be out of the extent,\n // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window\n // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,\n // where API is able to initialize/modify the window size even though `zoomLock`\n // specified.\n\n var spans = this._minMaxSpan;\n hasPropModeValue ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false) : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true);\n\n function restrictSet(fromWindow, toWindow, fromExtent, toExtent, toValue) {\n var suffix = toValue ? 'Span' : 'ValueSpan';\n sliderMove(0, fromWindow, fromExtent, 'all', spans['min' + suffix], spans['max' + suffix]);\n\n for (var i = 0; i < 2; i++) {\n toWindow[i] = numberUtil.linearMap(fromWindow[i], fromExtent, toExtent, true);\n toValue && (toWindow[i] = scale.parse(toWindow[i]));\n }\n }\n\n return {\n valueWindow: valueWindow,\n percentWindow: percentWindow\n };\n };\n /**\n * Notice: reset should not be called before series.restoreData() called,\n * so it is recommanded to be called in \"process stage\" but not \"model init\n * stage\".\n */\n\n\n AxisProxy.prototype.reset = function (dataZoomModel) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n var targetSeries = this.getTargetSeriesModels(); // Culculate data window and data extent, and record them.\n\n this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); // this.hasSeriesStacked = false;\n // each(targetSeries, function (series) {\n // let data = series.getData();\n // let dataDim = data.mapDimension(this._dimName);\n // let stackedDimension = data.getCalculationInfo('stackedDimension');\n // if (stackedDimension && stackedDimension === dataDim) {\n // this.hasSeriesStacked = true;\n // }\n // }, this);\n // `calculateDataWindow` uses min/maxSpan.\n\n this._updateMinMaxSpan();\n\n var dataWindow = this.calculateDataWindow(dataZoomModel.settledOption);\n this._valueWindow = dataWindow.valueWindow;\n this._percentWindow = dataWindow.percentWindow; // Update axis setting then.\n\n this._setAxisModel();\n };\n\n AxisProxy.prototype.filterData = function (dataZoomModel, api) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n var axisDim = this._dimName;\n var seriesModels = this.getTargetSeriesModels();\n var filterMode = dataZoomModel.get('filterMode');\n var valueWindow = this._valueWindow;\n\n if (filterMode === 'none') {\n return;\n } // FIXME\n // Toolbox may has dataZoom injected. And if there are stacked bar chart\n // with NaN data, NaN will be filtered and stack will be wrong.\n // So we need to force the mode to be set empty.\n // In fect, it is not a big deal that do not support filterMode-'filter'\n // when using toolbox#dataZoom, utill tooltip#dataZoom support \"single axis\n // selection\" some day, which might need \"adapt to data extent on the\n // otherAxis\", which is disabled by filterMode-'empty'.\n // But currently, stack has been fixed to based on value but not index,\n // so this is not an issue any more.\n // let otherAxisModel = this.getOtherAxisModel();\n // if (dataZoomModel.get('$fromToolbox')\n // && otherAxisModel\n // && otherAxisModel.hasSeriesStacked\n // ) {\n // filterMode = 'empty';\n // }\n // TODO\n // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.\n\n\n each(seriesModels, function (seriesModel) {\n var seriesData = seriesModel.getData();\n var dataDims = seriesData.mapDimensionsAll(axisDim);\n\n if (!dataDims.length) {\n return;\n }\n\n if (filterMode === 'weakFilter') {\n seriesData.filterSelf(function (dataIndex) {\n var leftOut;\n var rightOut;\n var hasValue;\n\n for (var i = 0; i < dataDims.length; i++) {\n var value = seriesData.get(dataDims[i], dataIndex);\n var thisHasValue = !isNaN(value);\n var thisLeftOut = value < valueWindow[0];\n var thisRightOut = value > valueWindow[1];\n\n if (thisHasValue && !thisLeftOut && !thisRightOut) {\n return true;\n }\n\n thisHasValue && (hasValue = true);\n thisLeftOut && (leftOut = true);\n thisRightOut && (rightOut = true);\n } // If both left out and right out, do not filter.\n\n\n return hasValue && leftOut && rightOut;\n });\n } else {\n each(dataDims, function (dim) {\n if (filterMode === 'empty') {\n seriesModel.setData(seriesData = seriesData.map(dim, function (value) {\n return !isInWindow(value) ? NaN : value;\n }));\n } else {\n var range = {};\n range[dim] = valueWindow; // console.time('select');\n\n seriesData.selectRange(range); // console.timeEnd('select');\n }\n });\n }\n\n each(dataDims, function (dim) {\n seriesData.setApproximateExtent(valueWindow, dim);\n });\n });\n\n function isInWindow(value) {\n return value >= valueWindow[0] && value <= valueWindow[1];\n }\n };\n\n AxisProxy.prototype._updateMinMaxSpan = function () {\n var minMaxSpan = this._minMaxSpan = {};\n var dataZoomModel = this._dataZoomModel;\n var dataExtent = this._dataExtent;\n each(['min', 'max'], function (minMax) {\n var percentSpan = dataZoomModel.get(minMax + 'Span');\n var valueSpan = dataZoomModel.get(minMax + 'ValueSpan');\n valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan)); // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan\n\n if (valueSpan != null) {\n percentSpan = numberUtil.linearMap(dataExtent[0] + valueSpan, dataExtent, [0, 100], true);\n } else if (percentSpan != null) {\n valueSpan = numberUtil.linearMap(percentSpan, [0, 100], dataExtent, true) - dataExtent[0];\n }\n\n minMaxSpan[minMax + 'Span'] = percentSpan;\n minMaxSpan[minMax + 'ValueSpan'] = valueSpan;\n }, this);\n };\n\n AxisProxy.prototype._setAxisModel = function () {\n var axisModel = this.getAxisModel();\n var percentWindow = this._percentWindow;\n var valueWindow = this._valueWindow;\n\n if (!percentWindow) {\n return;\n } // [0, 500]: arbitrary value, guess axis extent.\n\n\n var precision = numberUtil.getPixelPrecision(valueWindow, [0, 500]);\n precision = Math.min(precision, 20); // For value axis, if min/max/scale are not set, we just use the extent obtained\n // by series data, which may be a little different from the extent calculated by\n // `axisHelper.getScaleExtent`. But the different just affects the experience a\n // little when zooming. So it will not be fixed until some users require it strongly.\n\n var rawExtentInfo = axisModel.axis.scale.rawExtentInfo;\n\n if (percentWindow[0] !== 0) {\n rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision));\n }\n\n if (percentWindow[1] !== 100) {\n rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision));\n }\n\n rawExtentInfo.freeze();\n };\n\n return AxisProxy;\n}();\n\nfunction calculateDataExtent(axisProxy, axisDim, seriesModels) {\n var dataExtent = [Infinity, -Infinity];\n each(seriesModels, function (seriesModel) {\n unionAxisExtentFromData(dataExtent, seriesModel.getData(), axisDim);\n }); // It is important to get \"consistent\" extent when more then one axes is\n // controlled by a `dataZoom`, otherwise those axes will not be synchronized\n // when zooming. But it is difficult to know what is \"consistent\", considering\n // axes have different type or even different meanings (For example, two\n // time axes are used to compare data of the same date in different years).\n // So basically dataZoom just obtains extent by series.data (in category axis\n // extent can be obtained from axis.data).\n // Nevertheless, user can set min/max/scale on axes to make extent of axes\n // consistent.\n\n var axisModel = axisProxy.getAxisModel();\n var rawExtentResult = ensureScaleRawExtentInfo(axisModel.axis.scale, axisModel, dataExtent).calculate();\n return [rawExtentResult.min, rawExtentResult.max];\n}\n\nexport default AxisProxy;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport { getAxisMainType } from './helper';\nimport AxisProxy from './AxisProxy';\nvar dataZoomProcessor = {\n // `dataZoomProcessor` will only be performed in needed series. Consider if\n // there is a line series and a pie series, it is better not to update the\n // line series if only pie series is needed to be updated.\n getTargetSeries: function (ecModel) {\n function eachAxisModel(cb) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n cb(axisDim, axisIndex, axisModel, dataZoomModel);\n });\n });\n } // FIXME: it brings side-effect to `getTargetSeries`.\n // Prepare axis proxies.\n\n\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // dispose all last axis proxy, in case that some axis are deleted.\n axisModel.__dzAxisProxy = null;\n });\n var proxyList = [];\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // Different dataZooms may constrol the same axis. In that case,\n // an axisProxy serves both of them.\n if (!axisModel.__dzAxisProxy) {\n // Use the first dataZoomModel as the main model of axisProxy.\n axisModel.__dzAxisProxy = new AxisProxy(axisDim, axisIndex, dataZoomModel, ecModel);\n proxyList.push(axisModel.__dzAxisProxy);\n }\n });\n var seriesModelMap = createHashMap();\n each(proxyList, function (axisProxy) {\n each(axisProxy.getTargetSeriesModels(), function (seriesModel) {\n seriesModelMap.set(seriesModel.uid, seriesModel);\n });\n });\n return seriesModelMap;\n },\n // Consider appendData, where filter should be performed. Because data process is\n // in block mode currently, it is not need to worry about that the overallProgress\n // execute every frame.\n overallReset: function (ecModel, api) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n // We calculate window and reset axis here but not in model\n // init stage and not after action dispatch handler, because\n // reset should be called after seriesData.restoreData.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel);\n }); // Caution: data zoom filtering is order sensitive when using\n // percent range and no min/max/scale set on axis.\n // For example, we have dataZoom definition:\n // [\n // {xAxisIndex: 0, start: 30, end: 70},\n // {yAxisIndex: 0, start: 20, end: 80}\n // ]\n // In this case, [20, 80] of y-dataZoom should be based on data\n // that have filtered by x-dataZoom using range of [30, 70],\n // but should not be based on full raw data. Thus sliding\n // x-dataZoom will change both ranges of xAxis and yAxis,\n // while sliding y-dataZoom will only change the range of yAxis.\n // So we should filter x-axis after reset x-axis immediately,\n // and then reset y-axis and filter y-axis.\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api);\n });\n });\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n // Fullfill all of the range props so that user\n // is able to get them from chart.getOption().\n var axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n var percentRange = axisProxy.getDataPercentWindow();\n var valueRange = axisProxy.getDataValueWindow();\n dataZoomModel.setCalculatedRange({\n start: percentRange[0],\n end: percentRange[1],\n startValue: valueRange[0],\n endValue: valueRange[1]\n });\n }\n });\n }\n};\nexport default dataZoomProcessor;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { findEffectedDataZooms } from './helper';\nimport { each } from 'zrender/lib/core/util';\nexport default function installDataZoomAction(registers) {\n registers.registerAction('dataZoom', function (payload, ecModel) {\n var effectedModels = findEffectedDataZooms(ecModel, payload);\n each(effectedModels, function (dataZoomModel) {\n dataZoomModel.setRawRange({\n start: payload.start,\n end: payload.end,\n startValue: payload.startValue,\n endValue: payload.endValue\n });\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport dataZoomProcessor from './dataZoomProcessor';\nimport installDataZoomAction from './dataZoomAction';\nvar installed = false;\nexport default function installCommon(registers) {\n if (installed) {\n return;\n }\n\n installed = true;\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoomProcessor);\n installDataZoomAction(registers);\n registers.registerSubTypeDefaulter('dataZoom', function () {\n // Default 'slider' when no type specified.\n return 'slider';\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SelectZoomModel from './SelectZoomModel';\nimport SelectZoomView from './SelectZoomView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(SelectZoomModel);\n registers.registerComponentView(SelectZoomView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nvar ToolboxFeature =\n/** @class */\nfunction () {\n function ToolboxFeature() {}\n\n return ToolboxFeature;\n}();\n\nexport { ToolboxFeature };\nvar features = {};\nexport function registerFeature(name, ctor) {\n features[name] = ctor;\n}\nexport function getFeature(name) {\n return features[name];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as featureManager from './featureManager';\nimport ComponentModel from '../../model/Component';\n\nvar ToolboxModel =\n/** @class */\nfunction (_super) {\n __extends(ToolboxModel, _super);\n\n function ToolboxModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ToolboxModel.type;\n return _this;\n }\n\n ToolboxModel.prototype.optionUpdated = function () {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n var ecModel = this.ecModel;\n zrUtil.each(this.option.feature, function (featureOpt, featureName) {\n var Feature = featureManager.getFeature(featureName);\n\n if (Feature) {\n if (Feature.getDefaultOption) {\n Feature.defaultOption = Feature.getDefaultOption(ecModel);\n }\n\n zrUtil.merge(featureOpt, Feature.defaultOption);\n }\n });\n };\n\n ToolboxModel.type = 'toolbox';\n ToolboxModel.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n ToolboxModel.defaultOption = {\n show: true,\n z: 6,\n zlevel: 0,\n orient: 'horizontal',\n left: 'right',\n top: 'top',\n // right\n // bottom\n backgroundColor: 'transparent',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemSize: 15,\n itemGap: 8,\n showTitle: true,\n iconStyle: {\n borderColor: '#666',\n color: 'none'\n },\n emphasis: {\n iconStyle: {\n borderColor: '#3E98C5'\n }\n },\n // textStyle: {},\n // feature\n tooltip: {\n show: false,\n position: 'bottom'\n }\n };\n return ToolboxModel;\n}(ComponentModel);\n\nexport default ToolboxModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport { getLayoutRect, box as layoutBox, positionElement } from '../../util/layout';\nimport * as formatUtil from '../../util/format';\nimport * as graphic from '../../util/graphic';\n/**\n * Layout list like component.\n * It will box layout each items in group of component and then position the whole group in the viewport\n * @param {module:zrender/group/Group} group\n * @param {module:echarts/model/Component} componentModel\n * @param {module:echarts/ExtensionAPI}\n */\n\nexport function layout(group, componentModel, api) {\n var boxLayoutParams = componentModel.getBoxLayoutParams();\n var padding = componentModel.get('padding');\n var viewportSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var rect = getLayoutRect(boxLayoutParams, viewportSize, padding);\n layoutBox(componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height);\n positionElement(group, boxLayoutParams, viewportSize, padding);\n}\nexport function makeBackground(rect, componentModel) {\n var padding = formatUtil.normalizeCssArray(componentModel.get('padding'));\n var style = componentModel.getItemStyle(['color', 'opacity']);\n style.fill = componentModel.get('backgroundColor');\n rect = new graphic.Rect({\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[1] + padding[3],\n height: rect.height + padding[0] + padding[2],\n r: componentModel.get('borderRadius')\n },\n style: style,\n silent: true,\n z2: -1\n }); // FIXME\n // `subPixelOptimizeRect` may bring some gap between edge of viewpart\n // and background rect when setting like `left: 0`, `top: 0`.\n // graphic.subPixelOptimizeRect(rect);\n\n return rect;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as textContain from 'zrender/lib/contain/text';\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis } from '../../util/states';\nimport Model from '../../model/Model';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as listComponentHelper from '../helper/listComponent';\nimport ComponentView from '../../view/Component';\nimport { ToolboxFeature, getFeature } from './featureManager';\nimport { getUID } from '../../util/component';\nimport ZRText from 'zrender/lib/graphic/Text';\n\nvar ToolboxView =\n/** @class */\nfunction (_super) {\n __extends(ToolboxView, _super);\n\n function ToolboxView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ToolboxView.prototype.render = function (toolboxModel, ecModel, api, payload) {\n var group = this.group;\n group.removeAll();\n\n if (!toolboxModel.get('show')) {\n return;\n }\n\n var itemSize = +toolboxModel.get('itemSize');\n var featureOpts = toolboxModel.get('feature') || {};\n var features = this._features || (this._features = {});\n var featureNames = [];\n zrUtil.each(featureOpts, function (opt, name) {\n featureNames.push(name);\n });\n new DataDiffer(this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(zrUtil.curry(processFeature, null)).execute(); // Keep for diff.\n\n this._featureNames = featureNames;\n\n function processFeature(newIndex, oldIndex) {\n var featureName = featureNames[newIndex];\n var oldName = featureNames[oldIndex];\n var featureOpt = featureOpts[featureName];\n var featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel);\n var feature; // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?\n\n if (payload && payload.newTitle != null && payload.featureName === featureName) {\n featureOpt.title = payload.newTitle;\n }\n\n if (featureName && !oldName) {\n // Create\n if (isUserFeatureName(featureName)) {\n feature = {\n onclick: featureModel.option.onclick,\n featureName: featureName\n };\n } else {\n var Feature = getFeature(featureName);\n\n if (!Feature) {\n return;\n }\n\n feature = new Feature();\n }\n\n features[featureName] = feature;\n } else {\n feature = features[oldName]; // If feature does not exsit.\n\n if (!feature) {\n return;\n }\n }\n\n feature.uid = getUID('toolbox-feature');\n feature.model = featureModel;\n feature.ecModel = ecModel;\n feature.api = api;\n var isToolboxFeature = feature instanceof ToolboxFeature;\n\n if (!featureName && oldName) {\n isToolboxFeature && feature.dispose && feature.dispose(ecModel, api);\n return;\n }\n\n if (!featureModel.get('show') || isToolboxFeature && feature.unusable) {\n isToolboxFeature && feature.remove && feature.remove(ecModel, api);\n return;\n }\n\n createIconPaths(featureModel, feature, featureName);\n\n featureModel.setIconStatus = function (iconName, status) {\n var option = this.option;\n var iconPaths = this.iconPaths;\n option.iconStatus = option.iconStatus || {};\n option.iconStatus[iconName] = status;\n\n if (iconPaths[iconName]) {\n (status === 'emphasis' ? enterEmphasis : leaveEmphasis)(iconPaths[iconName]);\n }\n };\n\n if (feature instanceof ToolboxFeature) {\n if (feature.render) {\n feature.render(featureModel, ecModel, api, payload);\n }\n }\n }\n\n function createIconPaths(featureModel, feature, featureName) {\n var iconStyleModel = featureModel.getModel('iconStyle');\n var iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']); // If one feature has mutiple icon. they are orginaized as\n // {\n // icon: {\n // foo: '',\n // bar: ''\n // },\n // title: {\n // foo: '',\n // bar: ''\n // }\n // }\n\n var icons = feature instanceof ToolboxFeature && feature.getIcons ? feature.getIcons() : featureModel.get('icon');\n var titles = featureModel.get('title') || {};\n var iconsMap;\n var titlesMap;\n\n if (typeof icons === 'string') {\n iconsMap = {};\n iconsMap[featureName] = icons;\n } else {\n iconsMap = icons;\n }\n\n if (typeof titles === 'string') {\n titlesMap = {};\n titlesMap[featureName] = titles;\n } else {\n titlesMap = titles;\n }\n\n var iconPaths = featureModel.iconPaths = {};\n zrUtil.each(iconsMap, function (iconStr, iconName) {\n var path = graphic.createIcon(iconStr, {}, {\n x: -itemSize / 2,\n y: -itemSize / 2,\n width: itemSize,\n height: itemSize\n }); // TODO handling image\n\n path.setStyle(iconStyleModel.getItemStyle());\n var pathEmphasisState = path.ensureState('emphasis');\n pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle(); // Text position calculation\n\n var textContent = new ZRText({\n style: {\n text: titlesMap[iconName],\n align: iconStyleEmphasisModel.get('textAlign'),\n borderRadius: iconStyleEmphasisModel.get('textBorderRadius'),\n padding: iconStyleEmphasisModel.get('textPadding'),\n fill: null\n },\n ignore: true\n });\n path.setTextContent(textContent);\n graphic.setTooltipConfig({\n el: path,\n componentModel: toolboxModel,\n itemName: iconName,\n formatterParamsExtra: {\n title: titlesMap[iconName]\n }\n }); // graphic.enableHoverEmphasis(path);\n\n path.__title = titlesMap[iconName];\n path.on('mouseover', function () {\n // Should not reuse above hoverStyle, which might be modified.\n var hoverStyle = iconStyleEmphasisModel.getItemStyle();\n var defaultTextPosition = toolboxModel.get('orient') === 'vertical' ? toolboxModel.get('right') == null ? 'right' : 'left' : toolboxModel.get('bottom') == null ? 'bottom' : 'top';\n textContent.setStyle({\n fill: iconStyleEmphasisModel.get('textFill') || hoverStyle.fill || hoverStyle.stroke || '#000',\n backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor')\n });\n path.setTextConfig({\n position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition\n });\n textContent.ignore = !toolboxModel.get('showTitle'); // Use enterEmphasis and leaveEmphasis provide by ec.\n // There are flags managed by the echarts.\n\n enterEmphasis(this);\n }).on('mouseout', function () {\n if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') {\n leaveEmphasis(this);\n }\n\n textContent.hide();\n });\n (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? enterEmphasis : leaveEmphasis)(path);\n group.add(path);\n path.on('click', zrUtil.bind(feature.onclick, feature, ecModel, api, iconName));\n iconPaths[iconName] = path;\n });\n }\n\n listComponentHelper.layout(group, toolboxModel, api); // Render background after group is layout\n // FIXME\n\n group.add(listComponentHelper.makeBackground(group.getBoundingRect(), toolboxModel)); // Adjust icon title positions to avoid them out of screen\n\n group.eachChild(function (icon) {\n var titleText = icon.__title; // const hoverStyle = icon.hoverStyle;\n // TODO simplify code?\n\n var emphasisState = icon.ensureState('emphasis');\n var emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {});\n var textContent = icon.getTextContent();\n var emphasisTextState = textContent && textContent.states.emphasis; // May be background element\n\n if (emphasisTextState && !zrUtil.isFunction(emphasisTextState) && titleText) {\n var emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {});\n var rect = textContain.getBoundingRect(titleText, ZRText.makeFont(emphasisTextStyle));\n var offsetX = icon.x + group.x;\n var offsetY = icon.y + group.y + itemSize;\n var needPutOnTop = false;\n\n if (offsetY + rect.height > api.getHeight()) {\n emphasisTextConfig.position = 'top';\n needPutOnTop = true;\n }\n\n var topOffset = needPutOnTop ? -5 - rect.height : itemSize + 8;\n\n if (offsetX + rect.width / 2 > api.getWidth()) {\n emphasisTextConfig.position = ['100%', topOffset];\n emphasisTextStyle.align = 'right';\n } else if (offsetX - rect.width / 2 < 0) {\n emphasisTextConfig.position = [0, topOffset];\n emphasisTextStyle.align = 'left';\n }\n }\n });\n };\n\n ToolboxView.prototype.updateView = function (toolboxModel, ecModel, api, payload) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.updateView && feature.updateView(feature.model, ecModel, api, payload);\n });\n }; // updateLayout(toolboxModel, ecModel, api, payload) {\n // zrUtil.each(this._features, function (feature) {\n // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);\n // });\n // },\n\n\n ToolboxView.prototype.remove = function (ecModel, api) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.remove && feature.remove(ecModel, api);\n });\n this.group.removeAll();\n };\n\n ToolboxView.prototype.dispose = function (ecModel, api) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.dispose && feature.dispose(ecModel, api);\n });\n };\n\n ToolboxView.type = 'toolbox';\n return ToolboxView;\n}(ComponentView);\n\nfunction isUserFeatureName(featureName) {\n return featureName.indexOf('my') === 0;\n}\n\nexport default ToolboxView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Uint8Array */\n\nimport env from 'zrender/lib/core/env';\nimport { ToolboxFeature } from '../featureManager';\n/* global window, document */\n\nvar SaveAsImage =\n/** @class */\nfunction (_super) {\n __extends(SaveAsImage, _super);\n\n function SaveAsImage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SaveAsImage.prototype.onclick = function (ecModel, api) {\n var model = this.model;\n var title = model.get('name') || ecModel.get('title.0.text') || 'echarts';\n var isSvg = api.getZr().painter.getType() === 'svg';\n var type = isSvg ? 'svg' : model.get('type', true) || 'png';\n var url = api.getConnectedDataURL({\n type: type,\n backgroundColor: model.get('backgroundColor', true) || ecModel.get('backgroundColor') || '#fff',\n connectedBackgroundColor: model.get('connectedBackgroundColor'),\n excludeComponents: model.get('excludeComponents'),\n pixelRatio: model.get('pixelRatio')\n }); // Chrome, Firefox, New Edge\n\n if (typeof MouseEvent === 'function' && (env.browser.newEdge || !env.browser.ie && !env.browser.edge)) {\n var $a = document.createElement('a');\n $a.download = title + '.' + type;\n $a.target = '_blank';\n $a.href = url;\n var evt = new MouseEvent('click', {\n // some micro front-end framework, window maybe is a Proxy\n view: document.defaultView,\n bubbles: true,\n cancelable: false\n });\n $a.dispatchEvent(evt);\n } // IE or old Edge\n else {\n if (window.navigator.msSaveOrOpenBlob || isSvg) {\n var parts = url.split(','); // data:[][;charset=][;base64],\n\n var base64Encoded = parts[0].indexOf('base64') > -1;\n var bstr = isSvg // should decode the svg data uri first\n ? decodeURIComponent(parts[1]) : parts[1]; // only `atob` when the data uri is encoded with base64\n // otherwise, like `svg` data uri exported by zrender,\n // there will be an error, for it's not encoded with base64.\n // (just a url-encoded string through `encodeURIComponent`)\n\n base64Encoded && (bstr = window.atob(bstr));\n var filename = title + '.' + type;\n\n if (window.navigator.msSaveOrOpenBlob) {\n var n = bstr.length;\n var u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n\n var blob = new Blob([u8arr]);\n window.navigator.msSaveOrOpenBlob(blob, filename);\n } else {\n var frame = document.createElement('iframe');\n document.body.appendChild(frame);\n var cw = frame.contentWindow;\n var doc = cw.document;\n doc.open('image/svg+xml', 'replace');\n doc.write(bstr);\n doc.close();\n cw.focus();\n doc.execCommand('SaveAs', true, filename);\n document.body.removeChild(frame);\n }\n } else {\n var lang = model.get('lang');\n var html = '' + '' + '' + '';\n var tab = window.open();\n tab.document.write(html);\n tab.document.title = title;\n }\n }\n };\n\n SaveAsImage.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',\n title: ecModel.getLocale(['toolbox', 'saveAsImage', 'title']),\n type: 'png',\n // Default use option.backgroundColor\n // backgroundColor: '#fff',\n connectedBackgroundColor: '#fff',\n name: '',\n excludeComponents: ['toolbox'],\n // use current pixel ratio of device by default\n // pixelRatio: 1,\n lang: ecModel.getLocale(['toolbox', 'saveAsImage', 'lang'])\n };\n return defaultOption;\n };\n\n return SaveAsImage;\n}(ToolboxFeature);\n\nSaveAsImage.prototype.unusable = !env.canvasSupported;\nexport default SaveAsImage;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nimport { SINGLE_REFERRING } from '../../../util/model';\nvar INNER_STACK_KEYWORD = '__ec_magicType_stack__';\nvar ICON_TYPES = ['line', 'bar', 'stack']; // stack and tiled appears in pair for the title\n\nvar TITLE_TYPES = ['line', 'bar', 'stack', 'tiled'];\nvar radioTypes = [['line', 'bar'], ['stack']];\n\nvar MagicType =\n/** @class */\nfunction (_super) {\n __extends(MagicType, _super);\n\n function MagicType() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n MagicType.prototype.getIcons = function () {\n var model = this.model;\n var availableIcons = model.get('icon');\n var icons = {};\n zrUtil.each(model.get('type'), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n MagicType.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n type: [],\n // Icon group\n icon: {\n line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',\n bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',\n // eslint-disable-next-line\n stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line\n\n },\n // `line`, `bar`, `stack`, `tiled`\n title: ecModel.getLocale(['toolbox', 'magicType', 'title']),\n option: {},\n seriesIndex: {}\n };\n return defaultOption;\n };\n\n MagicType.prototype.onclick = function (ecModel, api, type) {\n var model = this.model;\n var seriesIndex = model.get(['seriesIndex', type]); // Not supported magicType\n\n if (!seriesOptGenreator[type]) {\n return;\n }\n\n var newOption = {\n series: []\n };\n\n var generateNewSeriesTypes = function (seriesModel) {\n var seriesType = seriesModel.subType;\n var seriesId = seriesModel.id;\n var newSeriesOpt = seriesOptGenreator[type](seriesType, seriesId, seriesModel, model);\n\n if (newSeriesOpt) {\n // PENDING If merge original option?\n zrUtil.defaults(newSeriesOpt, seriesModel.option);\n newOption.series.push(newSeriesOpt);\n } // Modify boundaryGap\n\n\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {\n var categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n\n if (categoryAxis) {\n var axisDim = categoryAxis.dim;\n var axisType = axisDim + 'Axis';\n var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n var axisIndex = axisModel.componentIndex;\n newOption[axisType] = newOption[axisType] || [];\n\n for (var i = 0; i <= axisIndex; i++) {\n newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {};\n }\n\n newOption[axisType][axisIndex].boundaryGap = type === 'bar';\n }\n }\n };\n\n zrUtil.each(radioTypes, function (radio) {\n if (zrUtil.indexOf(radio, type) >= 0) {\n zrUtil.each(radio, function (item) {\n model.setIconStatus(item, 'normal');\n });\n }\n });\n model.setIconStatus(type, 'emphasis');\n ecModel.eachComponent({\n mainType: 'series',\n query: seriesIndex == null ? null : {\n seriesIndex: seriesIndex\n }\n }, generateNewSeriesTypes);\n var newTitle;\n var currentType = type; // Change title of stack\n\n if (type === 'stack') {\n // use titles in model instead of ecModel\n // as stack and tiled appears in pair, just flip them\n // no need of checking stack state\n newTitle = zrUtil.merge({\n stack: model.option.title.tiled,\n tiled: model.option.title.stack\n }, model.option.title);\n\n if (model.get(['iconStatus', type]) !== 'emphasis') {\n currentType = 'tiled';\n }\n }\n\n api.dispatchAction({\n type: 'changeMagicType',\n currentType: currentType,\n newOption: newOption,\n newTitle: newTitle,\n featureName: 'magicType'\n });\n };\n\n return MagicType;\n}(ToolboxFeature);\n\nvar seriesOptGenreator = {\n 'line': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'bar') {\n return zrUtil.merge({\n id: seriesId,\n type: 'line',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'line']) || {}, true);\n }\n },\n 'bar': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'line') {\n return zrUtil.merge({\n id: seriesId,\n type: 'bar',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'bar']) || {}, true);\n }\n },\n 'stack': function (seriesType, seriesId, seriesModel, model) {\n var isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD;\n\n if (seriesType === 'line' || seriesType === 'bar') {\n model.setIconStatus('stack', isStack ? 'normal' : 'emphasis');\n return zrUtil.merge({\n id: seriesId,\n stack: isStack ? '' : INNER_STACK_KEYWORD\n }, model.get(['option', 'stack']) || {}, true);\n }\n }\n}; // TODO: SELF REGISTERED.\n\necharts.registerAction({\n type: 'changeMagicType',\n event: 'magicTypeChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.mergeOption(payload.newOption);\n});\nexport default MagicType;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nimport { addEventListener } from 'zrender/lib/core/event';\n/* global document */\n\nvar BLOCK_SPLITER = new Array(60).join('-');\nvar ITEM_SPLITER = '\\t';\n/**\n * Group series into two types\n * 1. on category axis, like line, bar\n * 2. others, like scatter, pie\n */\n\nfunction groupSeries(ecModel) {\n var seriesGroupByCategoryAxis = {};\n var otherSeries = [];\n var meta = [];\n ecModel.eachRawSeries(function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n var baseAxis = coordSys.getBaseAxis();\n\n if (baseAxis.type === 'category') {\n var key = baseAxis.dim + '_' + baseAxis.index;\n\n if (!seriesGroupByCategoryAxis[key]) {\n seriesGroupByCategoryAxis[key] = {\n categoryAxis: baseAxis,\n valueAxis: coordSys.getOtherAxis(baseAxis),\n series: []\n };\n meta.push({\n axisDim: baseAxis.dim,\n axisIndex: baseAxis.index\n });\n }\n\n seriesGroupByCategoryAxis[key].series.push(seriesModel);\n } else {\n otherSeries.push(seriesModel);\n }\n } else {\n otherSeries.push(seriesModel);\n }\n });\n return {\n seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n other: otherSeries,\n meta: meta\n };\n}\n/**\n * Assemble content of series on cateogory axis\n * @inner\n */\n\n\nfunction assembleSeriesWithCategoryAxis(groups) {\n var tables = [];\n zrUtil.each(groups, function (group, key) {\n var categoryAxis = group.categoryAxis;\n var valueAxis = group.valueAxis;\n var valueAxisDim = valueAxis.dim;\n var headers = [' '].concat(zrUtil.map(group.series, function (series) {\n return series.name;\n })); // @ts-ignore TODO Polar\n\n var columns = [categoryAxis.model.getCategories()];\n zrUtil.each(group.series, function (series) {\n var rawData = series.getRawData();\n columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n return val;\n }));\n }); // Assemble table content\n\n var lines = [headers.join(ITEM_SPLITER)];\n\n for (var i = 0; i < columns[0].length; i++) {\n var items = [];\n\n for (var j = 0; j < columns.length; j++) {\n items.push(columns[j][i]);\n }\n\n lines.push(items.join(ITEM_SPLITER));\n }\n\n tables.push(lines.join('\\n'));\n });\n return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n/**\n * Assemble content of other series\n */\n\n\nfunction assembleOtherSeries(series) {\n return zrUtil.map(series, function (series) {\n var data = series.getRawData();\n var lines = [series.name];\n var vals = [];\n data.each(data.dimensions, function () {\n var argLen = arguments.length;\n var dataIndex = arguments[argLen - 1];\n var name = data.getName(dataIndex);\n\n for (var i = 0; i < argLen - 1; i++) {\n vals[i] = arguments[i];\n }\n\n lines.push((name ? name + ITEM_SPLITER : '') + vals.join(ITEM_SPLITER));\n });\n return lines.join('\\n');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\nfunction getContentFromModel(ecModel) {\n var result = groupSeries(ecModel);\n return {\n value: zrUtil.filter([assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis), assembleOtherSeries(result.other)], function (str) {\n return !!str.replace(/[\\n\\t\\s]/g, '');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n'),\n meta: result.meta\n };\n}\n\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n/**\n * If a block is tsv format\n */\n\n\nfunction isTSVFormat(block) {\n // Simple method to find out if a block is tsv format\n var firstLine = block.slice(0, block.indexOf('\\n'));\n\n if (firstLine.indexOf(ITEM_SPLITER) >= 0) {\n return true;\n }\n}\n\nvar itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');\n/**\n * @param {string} tsv\n * @return {Object}\n */\n\nfunction parseTSVContents(tsv) {\n var tsvLines = tsv.split(/\\n+/g);\n var headers = trim(tsvLines.shift()).split(itemSplitRegex);\n var categories = [];\n var series = zrUtil.map(headers, function (header) {\n return {\n name: header,\n data: []\n };\n });\n\n for (var i = 0; i < tsvLines.length; i++) {\n var items = trim(tsvLines[i]).split(itemSplitRegex);\n categories.push(items.shift());\n\n for (var j = 0; j < items.length; j++) {\n series[j] && (series[j].data[i] = items[j]);\n }\n }\n\n return {\n series: series,\n categories: categories\n };\n}\n\nfunction parseListContents(str) {\n var lines = str.split(/\\n+/g);\n var seriesName = trim(lines.shift());\n var data = [];\n\n for (var i = 0; i < lines.length; i++) {\n // if line is empty, ignore it.\n // there is a case that a user forgot to delete `\\n`.\n var line = trim(lines[i]);\n\n if (!line) {\n continue;\n }\n\n var items = line.split(itemSplitRegex);\n var name_1 = '';\n var value = void 0;\n var hasName = false;\n\n if (isNaN(items[0])) {\n // First item is name\n hasName = true;\n name_1 = items[0];\n items = items.slice(1);\n data[i] = {\n name: name_1,\n value: []\n };\n value = data[i].value;\n } else {\n value = data[i] = [];\n }\n\n for (var j = 0; j < items.length; j++) {\n value.push(+items[j]);\n }\n\n if (value.length === 1) {\n hasName ? data[i].value = value[0] : data[i] = value[0];\n }\n }\n\n return {\n name: seriesName,\n data: data\n };\n}\n\nfunction parseContents(str, blockMetaList) {\n var blocks = str.split(new RegExp('\\n*' + BLOCK_SPLITER + '\\n*', 'g'));\n var newOption = {\n series: []\n };\n zrUtil.each(blocks, function (block, idx) {\n if (isTSVFormat(block)) {\n var result = parseTSVContents(block);\n var blockMeta = blockMetaList[idx];\n var axisKey = blockMeta.axisDim + 'Axis';\n\n if (blockMeta) {\n newOption[axisKey] = newOption[axisKey] || [];\n newOption[axisKey][blockMeta.axisIndex] = {\n data: result.categories\n };\n newOption.series = newOption.series.concat(result.series);\n }\n } else {\n var result = parseListContents(block);\n newOption.series.push(result);\n }\n });\n return newOption;\n}\n\nvar DataView =\n/** @class */\nfunction (_super) {\n __extends(DataView, _super);\n\n function DataView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DataView.prototype.onclick = function (ecModel, api) {\n var container = api.getDom();\n var model = this.model;\n\n if (this._dom) {\n container.removeChild(this._dom);\n }\n\n var root = document.createElement('div');\n root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';\n root.style.backgroundColor = model.get('backgroundColor') || '#fff'; // Create elements\n\n var header = document.createElement('h4');\n var lang = model.get('lang') || [];\n header.innerHTML = lang[0] || model.get('title');\n header.style.cssText = 'margin: 10px 20px;';\n header.style.color = model.get('textColor');\n var viewMain = document.createElement('div');\n var textarea = document.createElement('textarea');\n viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';\n var optionToContent = model.get('optionToContent');\n var contentToOption = model.get('contentToOption');\n var result = getContentFromModel(ecModel);\n\n if (typeof optionToContent === 'function') {\n var htmlOrDom = optionToContent(api.getOption());\n\n if (typeof htmlOrDom === 'string') {\n viewMain.innerHTML = htmlOrDom;\n } else if (zrUtil.isDom(htmlOrDom)) {\n viewMain.appendChild(htmlOrDom);\n }\n } else {\n // Use default textarea\n viewMain.appendChild(textarea);\n textarea.readOnly = model.get('readOnly');\n textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';\n textarea.style.color = model.get('textColor');\n textarea.style.borderColor = model.get('textareaBorderColor');\n textarea.style.backgroundColor = model.get('textareaColor');\n textarea.value = result.value;\n }\n\n var blockMetaList = result.meta;\n var buttonContainer = document.createElement('div');\n buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';\n var buttonStyle = 'float:right;margin-right:20px;border:none;' + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';\n var closeButton = document.createElement('div');\n var refreshButton = document.createElement('div');\n buttonStyle += ';background-color:' + model.get('buttonColor');\n buttonStyle += ';color:' + model.get('buttonTextColor');\n var self = this;\n\n function close() {\n container.removeChild(root);\n self._dom = null;\n }\n\n addEventListener(closeButton, 'click', close);\n addEventListener(refreshButton, 'click', function () {\n if (contentToOption == null && optionToContent != null || contentToOption != null && optionToContent == null) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n console.warn('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.');\n }\n\n close();\n return;\n }\n\n var newOption;\n\n try {\n if (typeof contentToOption === 'function') {\n newOption = contentToOption(viewMain, api.getOption());\n } else {\n newOption = parseContents(textarea.value, blockMetaList);\n }\n } catch (e) {\n close();\n throw new Error('Data view format error ' + e);\n }\n\n if (newOption) {\n api.dispatchAction({\n type: 'changeDataView',\n newOption: newOption\n });\n }\n\n close();\n });\n closeButton.innerHTML = lang[1];\n refreshButton.innerHTML = lang[2];\n refreshButton.style.cssText = buttonStyle;\n closeButton.style.cssText = buttonStyle;\n !model.get('readOnly') && buttonContainer.appendChild(refreshButton);\n buttonContainer.appendChild(closeButton);\n root.appendChild(header);\n root.appendChild(viewMain);\n root.appendChild(buttonContainer);\n viewMain.style.height = container.clientHeight - 80 + 'px';\n container.appendChild(root);\n this._dom = root;\n };\n\n DataView.prototype.remove = function (ecModel, api) {\n this._dom && api.getDom().removeChild(this._dom);\n };\n\n DataView.prototype.dispose = function (ecModel, api) {\n this.remove(ecModel, api);\n };\n\n DataView.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n readOnly: false,\n optionToContent: null,\n contentToOption: null,\n // eslint-disable-next-line\n icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',\n title: ecModel.getLocale(['toolbox', 'dataView', 'title']),\n lang: ecModel.getLocale(['toolbox', 'dataView', 'lang']),\n backgroundColor: '#fff',\n textColor: '#000',\n textareaColor: '#fff',\n textareaBorderColor: '#333',\n buttonColor: '#c23531',\n buttonTextColor: '#fff'\n };\n return defaultOption;\n };\n\n return DataView;\n}(ToolboxFeature);\n/**\n * @inner\n */\n\n\nfunction tryMergeDataOption(newData, originalData) {\n return zrUtil.map(newData, function (newVal, idx) {\n var original = originalData && originalData[idx];\n\n if (zrUtil.isObject(original) && !zrUtil.isArray(original)) {\n var newValIsObject = zrUtil.isObject(newVal) && !zrUtil.isArray(newVal);\n\n if (!newValIsObject) {\n newVal = {\n value: newVal\n };\n } // original data has name but new data has no name\n\n\n var shouldDeleteName = original.name != null && newVal.name == null; // Original data has option\n\n newVal = zrUtil.defaults(newVal, original);\n shouldDeleteName && delete newVal.name;\n return newVal;\n } else {\n return newVal;\n }\n });\n} // TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'changeDataView',\n event: 'dataViewChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n var newSeriesOptList = [];\n zrUtil.each(payload.newOption.series, function (seriesOpt) {\n var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];\n\n if (!seriesModel) {\n // New created series\n // Geuss the series type\n newSeriesOptList.push(zrUtil.extend({\n // Default is scatter\n type: 'scatter'\n }, seriesOpt));\n } else {\n var originalData = seriesModel.get('data');\n newSeriesOptList.push({\n name: seriesOpt.name,\n data: tryMergeDataOption(seriesOpt.data, originalData)\n });\n }\n });\n ecModel.mergeOption(zrUtil.defaults({\n series: newSeriesOptList\n }, payload.newOption));\n});\nexport default DataView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nvar each = zrUtil.each;\nvar inner = makeInner();\n/**\n * @param ecModel\n * @param newSnapshot key is dataZoomId\n */\n\nexport function push(ecModel, newSnapshot) {\n var storedSnapshots = getStoreSnapshots(ecModel); // If previous dataZoom can not be found,\n // complete an range with current range.\n\n each(newSnapshot, function (batchItem, dataZoomId) {\n var i = storedSnapshots.length - 1;\n\n for (; i >= 0; i--) {\n var snapshot = storedSnapshots[i];\n\n if (snapshot[dataZoomId]) {\n break;\n }\n }\n\n if (i < 0) {\n // No origin range set, create one by current range.\n var dataZoomModel = ecModel.queryComponents({\n mainType: 'dataZoom',\n subType: 'select',\n id: dataZoomId\n })[0];\n\n if (dataZoomModel) {\n var percentRange = dataZoomModel.getPercentRange();\n storedSnapshots[0][dataZoomId] = {\n dataZoomId: dataZoomId,\n start: percentRange[0],\n end: percentRange[1]\n };\n }\n }\n });\n storedSnapshots.push(newSnapshot);\n}\nexport function pop(ecModel) {\n var storedSnapshots = getStoreSnapshots(ecModel);\n var head = storedSnapshots[storedSnapshots.length - 1];\n storedSnapshots.length > 1 && storedSnapshots.pop(); // Find top for all dataZoom.\n\n var snapshot = {};\n each(head, function (batchItem, dataZoomId) {\n for (var i = storedSnapshots.length - 1; i >= 0; i--) {\n batchItem = storedSnapshots[i][dataZoomId];\n\n if (batchItem) {\n snapshot[dataZoomId] = batchItem;\n break;\n }\n }\n });\n return snapshot;\n}\nexport function clear(ecModel) {\n inner(ecModel).snapshots = null;\n}\nexport function count(ecModel) {\n return getStoreSnapshots(ecModel).length;\n}\n/**\n * History length of each dataZoom may be different.\n * this._history[0] is used to store origin range.\n */\n\nfunction getStoreSnapshots(ecModel) {\n var store = inner(ecModel);\n\n if (!store.snapshots) {\n store.snapshots = [{}];\n }\n\n return store.snapshots;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as history from '../../dataZoom/history';\nimport { ToolboxFeature } from '../featureManager';\n\nvar RestoreOption =\n/** @class */\nfunction (_super) {\n __extends(RestoreOption, _super);\n\n function RestoreOption() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n RestoreOption.prototype.onclick = function (ecModel, api) {\n history.clear(ecModel);\n api.dispatchAction({\n type: 'restore',\n from: this.uid\n });\n };\n\n RestoreOption.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n // eslint-disable-next-line\n icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',\n title: ecModel.getLocale(['toolbox', 'restore', 'title'])\n };\n return defaultOption;\n };\n\n return RestoreOption;\n}(ToolboxFeature); // TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'restore',\n event: 'restore',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.resetOption('recreate');\n});\nexport default RestoreOption;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, indexOf, curry, assert, map, createHashMap } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as brushHelper from './brushHelper';\nimport { parseFinder as modelUtilParseFinder } from '../../util/model'; // FIXME\n// how to genarialize to more coordinate systems.\n\nvar INCLUDE_FINDER_MAIN_TYPES = ['grid', 'xAxis', 'yAxis', 'geo', 'graph', 'polar', 'radiusAxis', 'angleAxis', 'bmap'];\n\nvar BrushTargetManager =\n/** @class */\nfunction () {\n /**\n * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid\n * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]}\n * @param opt.include include coordinate system types.\n */\n function BrushTargetManager(finder, ecModel, opt) {\n var _this = this;\n\n this._targetInfoList = [];\n var foundCpts = parseFinder(ecModel, finder);\n each(targetInfoBuilders, function (builder, type) {\n if (!opt || !opt.include || indexOf(opt.include, type) >= 0) {\n builder(foundCpts, _this._targetInfoList);\n }\n });\n }\n\n BrushTargetManager.prototype.setOutputRanges = function (areas, ecModel) {\n this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {\n (area.coordRanges || (area.coordRanges = [])).push(coordRange); // area.coordRange is the first of area.coordRanges\n\n if (!area.coordRange) {\n area.coordRange = coordRange; // In 'category' axis, coord to pixel is not reversible, so we can not\n // rebuild range by coordRange accrately, which may bring trouble when\n // brushing only one item. So we use __rangeOffset to rebuilding range\n // by coordRange. And this it only used in brush component so it is no\n // need to be adapted to coordRanges.\n\n var result = coordConvert[area.brushType](0, coordSys, coordRange);\n area.__rangeOffset = {\n offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),\n xyMinMax: result.xyMinMax\n };\n }\n });\n return areas;\n };\n\n BrushTargetManager.prototype.matchOutputRanges = function (areas, ecModel, cb) {\n each(areas, function (area) {\n var targetInfo = this.findTargetInfo(area, ecModel);\n\n if (targetInfo && targetInfo !== true) {\n each(targetInfo.coordSyses, function (coordSys) {\n var result = coordConvert[area.brushType](1, coordSys, area.range, true);\n cb(area, result.values, coordSys, ecModel);\n });\n }\n }, this);\n };\n /**\n * the `areas` is `BrushModel.areas`.\n * Called in layout stage.\n * convert `area.coordRange` to global range and set panelId to `area.range`.\n */\n\n\n BrushTargetManager.prototype.setInputRanges = function (areas, ecModel) {\n each(areas, function (area) {\n var targetInfo = this.findTargetInfo(area, ecModel);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!targetInfo || targetInfo === true || area.coordRange, 'coordRange must be specified when coord index specified.');\n assert(!targetInfo || targetInfo !== true || area.range, 'range must be specified in global brush.');\n }\n\n area.range = area.range || []; // convert coordRange to global range and set panelId.\n\n if (targetInfo && targetInfo !== true) {\n area.panelId = targetInfo.panelId; // (1) area.range shoule always be calculate from coordRange but does\n // not keep its original value, for the sake of the dataZoom scenario,\n // where area.coordRange remains unchanged but area.range may be changed.\n // (2) Only support converting one coordRange to pixel range in brush\n // component. So do not consider `coordRanges`.\n // (3) About __rangeOffset, see comment above.\n\n var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);\n var rangeOffset = area.__rangeOffset;\n area.range = rangeOffset ? diffProcessor[area.brushType](result.values, rangeOffset.offset, getScales(result.xyMinMax, rangeOffset.xyMinMax)) : result.values;\n }\n }, this);\n };\n\n BrushTargetManager.prototype.makePanelOpts = function (api, getDefaultBrushType) {\n return map(this._targetInfoList, function (targetInfo) {\n var rect = targetInfo.getPanelRect();\n return {\n panelId: targetInfo.panelId,\n defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null,\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, targetInfo.coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect)\n };\n });\n };\n\n BrushTargetManager.prototype.controlSeries = function (area, seriesModel, ecModel) {\n // Check whether area is bound in coord, and series do not belong to that coord.\n // If do not do this check, some brush (like lineX) will controll all axes.\n var targetInfo = this.findTargetInfo(area, ecModel);\n return targetInfo === true || targetInfo && indexOf(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0;\n };\n /**\n * If return Object, a coord found.\n * If reutrn true, global found.\n * Otherwise nothing found.\n */\n\n\n BrushTargetManager.prototype.findTargetInfo = function (area, ecModel) {\n var targetInfoList = this._targetInfoList;\n var foundCpts = parseFinder(ecModel, area);\n\n for (var i = 0; i < targetInfoList.length; i++) {\n var targetInfo = targetInfoList[i];\n var areaPanelId = area.panelId;\n\n if (areaPanelId) {\n if (targetInfo.panelId === areaPanelId) {\n return targetInfo;\n }\n } else {\n for (var j = 0; j < targetInfoMatchers.length; j++) {\n if (targetInfoMatchers[j](foundCpts, targetInfo)) {\n return targetInfo;\n }\n }\n }\n }\n\n return true;\n };\n\n return BrushTargetManager;\n}();\n\nfunction formatMinMax(minMax) {\n minMax[0] > minMax[1] && minMax.reverse();\n return minMax;\n}\n\nfunction parseFinder(ecModel, finder) {\n return modelUtilParseFinder(ecModel, finder, {\n includeMainTypes: INCLUDE_FINDER_MAIN_TYPES\n });\n}\n\nvar targetInfoBuilders = {\n grid: function (foundCpts, targetInfoList) {\n var xAxisModels = foundCpts.xAxisModels;\n var yAxisModels = foundCpts.yAxisModels;\n var gridModels = foundCpts.gridModels; // Remove duplicated.\n\n var gridModelMap = createHashMap();\n var xAxesHas = {};\n var yAxesHas = {};\n\n if (!xAxisModels && !yAxisModels && !gridModels) {\n return;\n }\n\n each(xAxisModels, function (axisModel) {\n var gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n });\n each(yAxisModels, function (axisModel) {\n var gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n yAxesHas[gridModel.id] = true;\n });\n each(gridModels, function (gridModel) {\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n yAxesHas[gridModel.id] = true;\n });\n gridModelMap.each(function (gridModel) {\n var grid = gridModel.coordinateSystem;\n var cartesians = [];\n each(grid.getCartesians(), function (cartesian, index) {\n if (indexOf(xAxisModels, cartesian.getAxis('x').model) >= 0 || indexOf(yAxisModels, cartesian.getAxis('y').model) >= 0) {\n cartesians.push(cartesian);\n }\n });\n targetInfoList.push({\n panelId: 'grid--' + gridModel.id,\n gridModel: gridModel,\n coordSysModel: gridModel,\n // Use the first one as the representitive coordSys.\n coordSys: cartesians[0],\n coordSyses: cartesians,\n getPanelRect: panelRectBuilders.grid,\n xAxisDeclared: xAxesHas[gridModel.id],\n yAxisDeclared: yAxesHas[gridModel.id]\n });\n });\n },\n geo: function (foundCpts, targetInfoList) {\n each(foundCpts.geoModels, function (geoModel) {\n var coordSys = geoModel.coordinateSystem;\n targetInfoList.push({\n panelId: 'geo--' + geoModel.id,\n geoModel: geoModel,\n coordSysModel: geoModel,\n coordSys: coordSys,\n coordSyses: [coordSys],\n getPanelRect: panelRectBuilders.geo\n });\n });\n }\n};\nvar targetInfoMatchers = [// grid\nfunction (foundCpts, targetInfo) {\n var xAxisModel = foundCpts.xAxisModel;\n var yAxisModel = foundCpts.yAxisModel;\n var gridModel = foundCpts.gridModel;\n !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);\n !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);\n return gridModel && gridModel === targetInfo.gridModel;\n}, // geo\nfunction (foundCpts, targetInfo) {\n var geoModel = foundCpts.geoModel;\n return geoModel && geoModel === targetInfo.geoModel;\n}];\nvar panelRectBuilders = {\n grid: function () {\n // grid is not Transformable.\n return this.coordSys.master.getRect().clone();\n },\n geo: function () {\n var coordSys = this.coordSys;\n var rect = coordSys.getBoundingRect().clone(); // geo roam and zoom transform\n\n rect.applyTransform(graphic.getTransform(coordSys));\n return rect;\n }\n};\nvar coordConvert = {\n lineX: curry(axisConvert, 0),\n lineY: curry(axisConvert, 1),\n rect: function (to, coordSys, rangeOrCoordRange, clamp) {\n var xminymin = to ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp);\n var xmaxymax = to ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp);\n var values = [formatMinMax([xminymin[0], xmaxymax[0]]), formatMinMax([xminymin[1], xmaxymax[1]])];\n return {\n values: values,\n xyMinMax: values\n };\n },\n polygon: function (to, coordSys, rangeOrCoordRange, clamp) {\n var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];\n var values = map(rangeOrCoordRange, function (item) {\n var p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp);\n xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);\n xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);\n xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);\n xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);\n return p;\n });\n return {\n values: values,\n xyMinMax: xyMinMax\n };\n }\n};\n\nfunction axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) {\n if (process.env.NODE_ENV !== 'production') {\n assert(coordSys.type === 'cartesian2d', 'lineX/lineY brush is available only in cartesian2d.');\n }\n\n var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);\n var values = formatMinMax(map([0, 1], function (i) {\n return to ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true) : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));\n }));\n var xyMinMax = [];\n xyMinMax[axisNameIndex] = values;\n xyMinMax[1 - axisNameIndex] = [NaN, NaN];\n return {\n values: values,\n xyMinMax: xyMinMax\n };\n}\n\nvar diffProcessor = {\n lineX: curry(axisDiffProcessor, 0),\n lineY: curry(axisDiffProcessor, 1),\n rect: function (values, refer, scales) {\n return [[values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]], [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]];\n },\n polygon: function (values, refer, scales) {\n return map(values, function (item, idx) {\n return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];\n });\n }\n};\n\nfunction axisDiffProcessor(axisNameIndex, values, refer, scales) {\n return [values[0] - scales[axisNameIndex] * refer[0], values[1] - scales[axisNameIndex] * refer[1]];\n} // We have to process scale caused by dataZoom manually,\n// although it might be not accurate.\n// Return [0~1, 0~1]\n\n\nfunction getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}\n\nfunction getSize(xyMinMax) {\n return xyMinMax ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]] : [NaN, NaN];\n}\n\nexport default BrushTargetManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO depends on DataZoom and Brush\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BrushController from '../../helper/BrushController';\nimport BrushTargetManager from '../../helper/BrushTargetManager';\nimport * as history from '../../dataZoom/history';\nimport sliderMove from '../../helper/sliderMove';\nimport { ToolboxFeature } from '../featureManager';\nimport { makeInternalComponentId, parseFinder } from '../../../util/model';\nimport { registerInternalOptionCreator } from '../../../model/internalComponentCreator';\nvar each = zrUtil.each;\nvar DATA_ZOOM_ID_BASE = makeInternalComponentId('toolbox-dataZoom_');\nvar ICON_TYPES = ['zoom', 'back'];\n\nvar DataZoomFeature =\n/** @class */\nfunction (_super) {\n __extends(DataZoomFeature, _super);\n\n function DataZoomFeature() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DataZoomFeature.prototype.render = function (featureModel, ecModel, api, payload) {\n if (!this._brushController) {\n this._brushController = new BrushController(api.getZr());\n\n this._brushController.on('brush', zrUtil.bind(this._onBrush, this)).mount();\n }\n\n updateZoomBtnStatus(featureModel, ecModel, this, payload, api);\n updateBackBtnStatus(featureModel, ecModel);\n };\n\n DataZoomFeature.prototype.onclick = function (ecModel, api, type) {\n handlers[type].call(this);\n };\n\n DataZoomFeature.prototype.remove = function (ecModel, api) {\n this._brushController && this._brushController.unmount();\n };\n\n DataZoomFeature.prototype.dispose = function (ecModel, api) {\n this._brushController && this._brushController.dispose();\n };\n\n DataZoomFeature.prototype._onBrush = function (eventParam) {\n var areas = eventParam.areas;\n\n if (!eventParam.isEnd || !areas.length) {\n return;\n }\n\n var snapshot = {};\n var ecModel = this.ecModel;\n\n this._brushController.updateCovers([]); // remove cover\n\n\n var brushTargetManager = new BrushTargetManager(makeAxisFinder(this.model), ecModel, {\n include: ['grid']\n });\n brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {\n if (coordSys.type !== 'cartesian2d') {\n return;\n }\n\n var brushType = area.brushType;\n\n if (brushType === 'rect') {\n setBatch('x', coordSys, coordRange[0]);\n setBatch('y', coordSys, coordRange[1]);\n } else {\n setBatch({\n lineX: 'x',\n lineY: 'y'\n }[brushType], coordSys, coordRange);\n }\n });\n history.push(ecModel, snapshot);\n\n this._dispatchZoomAction(snapshot);\n\n function setBatch(dimName, coordSys, minMax) {\n var axis = coordSys.getAxis(dimName);\n var axisModel = axis.model;\n var dataZoomModel = findDataZoom(dimName, axisModel, ecModel); // Restrict range.\n\n var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();\n\n if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {\n minMax = sliderMove(0, minMax.slice(), axis.scale.getExtent(), 0, minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan);\n }\n\n dataZoomModel && (snapshot[dataZoomModel.id] = {\n dataZoomId: dataZoomModel.id,\n startValue: minMax[0],\n endValue: minMax[1]\n });\n }\n\n function findDataZoom(dimName, axisModel, ecModel) {\n var found;\n ecModel.eachComponent({\n mainType: 'dataZoom',\n subType: 'select'\n }, function (dzModel) {\n var has = dzModel.getAxisModel(dimName, axisModel.componentIndex);\n has && (found = dzModel);\n });\n return found;\n }\n };\n\n ;\n\n DataZoomFeature.prototype._dispatchZoomAction = function (snapshot) {\n var batch = []; // Convert from hash map to array.\n\n each(snapshot, function (batchItem, dataZoomId) {\n batch.push(zrUtil.clone(batchItem));\n });\n batch.length && this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n batch: batch\n });\n };\n\n DataZoomFeature.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n filterMode: 'filter',\n // Icon group\n icon: {\n zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',\n back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'\n },\n // `zoom`, `back`\n title: ecModel.getLocale(['toolbox', 'dataZoom', 'title']),\n brushStyle: {\n borderWidth: 0,\n color: 'rgba(210,219,238,0.2)'\n }\n };\n return defaultOption;\n };\n\n return DataZoomFeature;\n}(ToolboxFeature);\n\nvar handlers = {\n zoom: function () {\n var nextActive = !this._isZoomActive;\n this.api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'dataZoomSelect',\n dataZoomSelectActive: nextActive\n });\n },\n back: function () {\n this._dispatchZoomAction(history.pop(this.ecModel));\n }\n};\n\nfunction makeAxisFinder(dzFeatureModel) {\n var setting = {\n xAxisIndex: dzFeatureModel.get('xAxisIndex', true),\n yAxisIndex: dzFeatureModel.get('yAxisIndex', true),\n xAxisId: dzFeatureModel.get('xAxisId', true),\n yAxisId: dzFeatureModel.get('yAxisId', true)\n }; // If both `xAxisIndex` `xAxisId` not set, it means 'all'.\n // If both `yAxisIndex` `yAxisId` not set, it means 'all'.\n // Some old cases set like this below to close yAxis control but leave xAxis control:\n // `{ feature: { dataZoom: { yAxisIndex: false } }`.\n\n if (setting.xAxisIndex == null && setting.xAxisId == null) {\n setting.xAxisIndex = 'all';\n }\n\n if (setting.yAxisIndex == null && setting.yAxisId == null) {\n setting.yAxisIndex = 'all';\n }\n\n return setting;\n}\n\nfunction updateBackBtnStatus(featureModel, ecModel) {\n featureModel.setIconStatus('back', history.count(ecModel) > 1 ? 'emphasis' : 'normal');\n}\n\nfunction updateZoomBtnStatus(featureModel, ecModel, view, payload, api) {\n var zoomActive = view._isZoomActive;\n\n if (payload && payload.type === 'takeGlobalCursor') {\n zoomActive = payload.key === 'dataZoomSelect' ? payload.dataZoomSelectActive : false;\n }\n\n view._isZoomActive = zoomActive;\n featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');\n var brushTargetManager = new BrushTargetManager(makeAxisFinder(featureModel), ecModel, {\n include: ['grid']\n });\n var panels = brushTargetManager.makePanelOpts(api, function (targetInfo) {\n return targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared ? 'lineX' : !targetInfo.xAxisDeclared && targetInfo.yAxisDeclared ? 'lineY' : 'rect';\n });\n\n view._brushController.setPanels(panels).enableBrush(zoomActive && panels.length ? {\n brushType: 'auto',\n brushStyle: featureModel.getModel('brushStyle').getItemStyle()\n } : false);\n}\n\nregisterInternalOptionCreator('dataZoom', function (ecModel) {\n var toolboxModel = ecModel.getComponent('toolbox', 0);\n var featureDataZoomPath = ['feature', 'dataZoom'];\n\n if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) {\n return;\n }\n\n var dzFeatureModel = toolboxModel.getModel(featureDataZoomPath);\n var dzOptions = [];\n var finder = makeAxisFinder(dzFeatureModel);\n var finderResult = parseFinder(ecModel, finder);\n each(finderResult.xAxisModels, function (axisModel) {\n return buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex');\n });\n each(finderResult.yAxisModels, function (axisModel) {\n return buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex');\n });\n\n function buildInternalOptions(axisModel, axisMainType, axisIndexPropName) {\n var axisIndex = axisModel.componentIndex;\n var newOpt = {\n type: 'select',\n $fromToolbox: true,\n // Default to be filter\n filterMode: dzFeatureModel.get('filterMode', true) || 'filter',\n // Id for merge mapping.\n id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex\n };\n newOpt[axisIndexPropName] = axisIndex;\n dzOptions.push(newOpt);\n }\n\n return dzOptions;\n});\nexport default DataZoomFeature;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installDataZoomSelect } from '../../component/dataZoom/installDataZoomSelect';\nimport ToolboxModel from './ToolboxModel';\nimport ToolboxView from './ToolboxView'; // TODOD: REGISTER IN INSTALL\n\nimport { registerFeature } from './featureManager';\nimport SaveAsImage from './feature/SaveAsImage';\nimport MagicType from './feature/MagicType';\nimport DataView from './feature/DataView';\nimport Restore from './feature/Restore';\nimport DataZoom from './feature/DataZoom';\nexport function install(registers) {\n registers.registerComponentModel(ToolboxModel);\n registers.registerComponentView(ToolboxView);\n registerFeature('saveAsImage', SaveAsImage);\n registerFeature('magicType', MagicType);\n registerFeature('dataView', DataView);\n registerFeature('dataZoom', DataZoom);\n registerFeature('restore', Restore);\n use(installDataZoomSelect);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar TooltipModel =\n/** @class */\nfunction (_super) {\n __extends(TooltipModel, _super);\n\n function TooltipModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TooltipModel.type;\n return _this;\n }\n\n TooltipModel.type = 'tooltip';\n TooltipModel.dependencies = ['axisPointer'];\n TooltipModel.defaultOption = {\n zlevel: 0,\n z: 60,\n show: true,\n // tooltip main content\n showContent: true,\n // 'trigger' only works on coordinate system.\n // 'item' | 'axis' | 'none'\n trigger: 'item',\n // 'click' | 'mousemove' | 'none'\n triggerOn: 'mousemove|click',\n alwaysShowContent: false,\n displayMode: 'single',\n renderMode: 'auto',\n // whether restraint content inside viewRect.\n // If renderMode: 'richText', default true.\n // If renderMode: 'html', defaut false (for backward compat).\n confine: null,\n showDelay: 0,\n hideDelay: 100,\n // Animation transition time, unit is second\n transitionDuration: 0.4,\n enterable: false,\n backgroundColor: '#fff',\n // box shadow\n shadowBlur: 10,\n shadowColor: 'rgba(0, 0, 0, .2)',\n shadowOffsetX: 1,\n shadowOffsetY: 2,\n // tooltip border radius, unit is px, default is 4\n borderRadius: 4,\n // tooltip border width, unit is px, default is 0 (no border)\n borderWidth: 1,\n // Tooltip inside padding, default is 5 for all direction\n // Array is allowed to set up, right, bottom, left, same with css\n // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.\n padding: null,\n // Extra css text\n extraCssText: '',\n // axis indicator, trigger by axis\n axisPointer: {\n // default is line\n // legal values: 'line' | 'shadow' | 'cross'\n type: 'line',\n // Valid when type is line, appoint tooltip line locate on which line. Optional\n // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'\n // default is 'auto', chose the axis which type is category.\n // for multiply y axis, cartesian coord chose x axis, polar chose angle axis\n axis: 'auto',\n animation: 'auto',\n animationDurationUpdate: 200,\n animationEasingUpdate: 'exponentialOut',\n crossStyle: {\n color: '#999',\n width: 1,\n type: 'dashed',\n // TODO formatter\n textStyle: {}\n } // lineStyle and shadowStyle should not be specified here,\n // otherwise it will always override those styles on option.axisPointer.\n\n },\n textStyle: {\n color: '#666',\n fontSize: 14\n }\n };\n return TooltipModel;\n}(ComponentModel);\n\nexport default TooltipModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { toCamelCase } from '../../util/format';\nimport env from 'zrender/lib/core/env';\n/* global document */\n\nexport function shouldTooltipConfine(tooltipModel) {\n var confineOption = tooltipModel.get('confine');\n return confineOption != null ? !!confineOption // In richText mode, the outside part can not be visible.\n : tooltipModel.get('renderMode') === 'richText';\n}\n\nfunction testStyle(styleProps) {\n if (!env.domSupported) {\n return;\n }\n\n var style = document.documentElement.style;\n\n for (var i = 0, len = styleProps.length; i < len; i++) {\n if (styleProps[i] in style) {\n return styleProps[i];\n }\n }\n}\n\nexport var TRANSFORM_VENDOR = testStyle(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']);\nexport var TRANSITION_VENDOR = testStyle(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);\nexport function toCSSVendorPrefix(styleVendor, styleProp) {\n if (!styleVendor) {\n return styleProp;\n }\n\n styleProp = toCamelCase(styleProp, true);\n var idx = styleVendor.indexOf(styleProp);\n styleVendor = idx === -1 ? styleProp : \"-\" + styleVendor.slice(0, idx) + \"-\" + styleProp;\n return styleVendor.toLowerCase();\n}\nexport function getComputedStyle(el, style) {\n var stl = el.currentStyle || document.defaultView && document.defaultView.getComputedStyle(el);\n return stl ? style ? stl[style] : stl : null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isString, indexOf, each, bind, isArray, isDom } from 'zrender/lib/core/util';\nimport { toHex } from 'zrender/lib/tool/color';\nimport { normalizeEvent } from 'zrender/lib/core/event';\nimport { transformLocalCoord } from 'zrender/lib/core/dom';\nimport env from 'zrender/lib/core/env';\nimport { convertToColorString, toCamelCase, normalizeCssArray } from '../../util/format';\nimport { shouldTooltipConfine, toCSSVendorPrefix, getComputedStyle, TRANSFORM_VENDOR, TRANSITION_VENDOR } from './helper';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\n/* global document, window */\n\nvar CSS_TRANSITION_VENDOR = toCSSVendorPrefix(TRANSITION_VENDOR, 'transition');\nvar CSS_TRANSFORM_VENDOR = toCSSVendorPrefix(TRANSFORM_VENDOR, 'transform'); // eslint-disable-next-line\n\nvar gCssText = \"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\" + (env.transform3dSupported ? 'will-change:transform;' : '');\n\nfunction mirrorPos(pos) {\n pos = pos === 'left' ? 'right' : pos === 'right' ? 'left' : pos === 'top' ? 'bottom' : 'top';\n return pos;\n}\n\nfunction assembleArrow(backgroundColor, borderColor, arrowPosition) {\n if (!isString(arrowPosition) || arrowPosition === 'inside') {\n return '';\n }\n\n borderColor = convertToColorString(borderColor);\n var arrowPos = mirrorPos(arrowPosition);\n var positionStyle = arrowPos + \":-6px;\";\n var transformStyle = CSS_TRANSFORM_VENDOR + ':';\n\n if (indexOf(['left', 'right'], arrowPos) > -1) {\n positionStyle += 'top:50%';\n transformStyle += \"translateY(-50%) rotate(\" + (arrowPos === 'left' ? -225 : -45) + \"deg)\";\n } else {\n positionStyle += 'left:50%';\n transformStyle += \"translateX(-50%) rotate(\" + (arrowPos === 'top' ? 225 : 45) + \"deg)\";\n }\n\n var borderStyle = borderColor + \" solid 1px;\";\n var styleCss = ['position:absolute;width:10px;height:10px;', positionStyle + \";\" + transformStyle + \";\", \"border-bottom:\" + borderStyle, \"border-right:\" + borderStyle, \"background-color:\" + backgroundColor + \";\", 'box-shadow:8px 8px 16px -3px #000;'];\n return \"
\";\n}\n\nfunction assembleTransition(duration, onlyFade) {\n var transitionCurve = 'cubic-bezier(0.23,1,0.32,1)';\n var transitionOption = \" \" + duration / 2 + \"s \" + transitionCurve;\n var transitionText = \"opacity\" + transitionOption + \",visibility\" + transitionOption;\n\n if (!onlyFade) {\n transitionOption = \" \" + duration + \"s \" + transitionCurve;\n transitionText += env.transformSupported ? \",\" + CSS_TRANSFORM_VENDOR + transitionOption : \",left\" + transitionOption + \",top\" + transitionOption;\n }\n\n return CSS_TRANSITION_VENDOR + ':' + transitionText;\n}\n\nfunction assembleTransform(x, y, toString) {\n // If using float on style, the final width of the dom might\n // keep changing slightly while mouse move. So `toFixed(0)` them.\n var x0 = x.toFixed(0) + 'px';\n var y0 = y.toFixed(0) + 'px'; // not support transform, use `left` and `top` instead.\n\n if (!env.transformSupported) {\n return toString ? \"top:\" + y0 + \";left:\" + x0 + \";\" : [['top', y0], ['left', x0]];\n } // support transform\n\n\n var is3d = env.transform3dSupported;\n var translate = \"translate\" + (is3d ? '3d' : '') + \"(\" + x0 + \",\" + y0 + (is3d ? ',0' : '') + \")\";\n return toString ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';' : [['top', 0], ['left', 0], [TRANSFORM_VENDOR, translate]];\n}\n/**\n * @param {Object} textStyle\n * @return {string}\n * @inner\n */\n\n\nfunction assembleFont(textStyleModel) {\n var cssText = [];\n var fontSize = textStyleModel.get('fontSize');\n var color = textStyleModel.getTextColor();\n color && cssText.push('color:' + color);\n cssText.push('font:' + textStyleModel.getFont());\n fontSize // @ts-ignore, leave it to the tooltip refactor.\n && cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');\n var shadowColor = textStyleModel.get('textShadowColor');\n var shadowBlur = textStyleModel.get('textShadowBlur') || 0;\n var shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;\n var shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;\n shadowColor && shadowBlur && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px ' + shadowBlur + 'px ' + shadowColor);\n each(['decoration', 'align'], function (name) {\n var val = textStyleModel.get(name);\n val && cssText.push('text-' + name + ':' + val);\n });\n return cssText.join(';');\n}\n\nfunction assembleCssText(tooltipModel, enableTransition, onlyFade) {\n var cssText = [];\n var transitionDuration = tooltipModel.get('transitionDuration');\n var backgroundColor = tooltipModel.get('backgroundColor');\n var shadowBlur = tooltipModel.get('shadowBlur');\n var shadowColor = tooltipModel.get('shadowColor');\n var shadowOffsetX = tooltipModel.get('shadowOffsetX');\n var shadowOffsetY = tooltipModel.get('shadowOffsetY');\n var textStyleModel = tooltipModel.getModel('textStyle');\n var padding = getPaddingFromTooltipModel(tooltipModel, 'html');\n var boxShadow = shadowOffsetX + \"px \" + shadowOffsetY + \"px \" + shadowBlur + \"px \" + shadowColor;\n cssText.push('box-shadow:' + boxShadow); // Animation transition. Do not animate when transitionDuration is 0.\n\n enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade));\n\n if (backgroundColor) {\n if (env.canvasSupported) {\n cssText.push('background-color:' + backgroundColor);\n } else {\n // for ie\n cssText.push('background-color:#' + toHex(backgroundColor));\n cssText.push('filter:alpha(opacity=70)');\n }\n } // Border style\n\n\n each(['width', 'color', 'radius'], function (name) {\n var borderName = 'border-' + name;\n var camelCase = toCamelCase(borderName);\n var val = tooltipModel.get(camelCase);\n val != null && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));\n }); // Text style\n\n cssText.push(assembleFont(textStyleModel)); // Padding\n\n if (padding != null) {\n cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px');\n }\n\n return cssText.join(';') + ';';\n} // If not able to make, do not modify the input `out`.\n\n\nfunction makeStyleCoord(out, zr, appendToBody, zrX, zrY) {\n var zrPainter = zr && zr.painter;\n\n if (appendToBody) {\n var zrViewportRoot = zrPainter && zrPainter.getViewportRoot();\n\n if (zrViewportRoot) {\n // Some APPs might use scale on body, so we support CSS transform here.\n transformLocalCoord(out, zrViewportRoot, document.body, zrX, zrY);\n }\n } else {\n out[0] = zrX;\n out[1] = zrY; // xy should be based on canvas root. But tooltipContent is\n // the sibling of canvas root. So padding of ec container\n // should be considered here.\n\n var viewportRootOffset = zrPainter && zrPainter.getViewportRootOffset();\n\n if (viewportRootOffset) {\n out[0] += viewportRootOffset.offsetLeft;\n out[1] += viewportRootOffset.offsetTop;\n }\n }\n\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nvar TooltipHTMLContent =\n/** @class */\nfunction () {\n function TooltipHTMLContent(container, api, opt) {\n this._show = false;\n this._styleCoord = [0, 0, 0, 0];\n this._enterable = true;\n this._firstShow = true;\n this._longHide = true;\n\n if (env.wxa) {\n return null;\n }\n\n var el = document.createElement('div'); // TODO: TYPE\n\n el.domBelongToZr = true;\n this.el = el;\n var zr = this._zr = api.getZr();\n var appendToBody = this._appendToBody = opt && opt.appendToBody;\n makeStyleCoord(this._styleCoord, zr, appendToBody, api.getWidth() / 2, api.getHeight() / 2);\n\n if (appendToBody) {\n document.body.appendChild(el);\n } else {\n container.appendChild(el);\n }\n\n this._container = container; // FIXME\n // Is it needed to trigger zr event manually if\n // the browser do not support `pointer-events: none`.\n\n var self = this;\n\n el.onmouseenter = function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n\n self._inContent = true;\n };\n\n el.onmousemove = function (e) {\n e = e || window.event;\n\n if (!self._enterable) {\n // `pointer-events: none` is set to tooltip content div\n // if `enterable` is set as `false`, and `el.onmousemove`\n // can not be triggered. But in browser that do not\n // support `pointer-events`, we need to do this:\n // Try trigger zrender event to avoid mouse\n // in and out shape too frequently\n var handler = zr.handler;\n var zrViewportRoot = zr.painter.getViewportRoot();\n normalizeEvent(zrViewportRoot, e, true);\n handler.dispatch('mousemove', e);\n }\n };\n\n el.onmouseleave = function () {\n // set `_inContent` to `false` before `hideLater`\n self._inContent = false;\n\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n };\n }\n /**\n * Update when tooltip is rendered\n */\n\n\n TooltipHTMLContent.prototype.update = function (tooltipModel) {\n // FIXME\n // Move this logic to ec main?\n var container = this._container;\n var position = getComputedStyle(container, 'position');\n var domStyle = container.style;\n\n if (domStyle.position !== 'absolute' && position !== 'absolute') {\n domStyle.position = 'relative';\n } // move tooltip if chart resized\n\n\n var alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized(); // update className\n\n this.el.className = tooltipModel.get('className') || ''; // Hide the tooltip\n // PENDING\n // this.hide();\n };\n\n TooltipHTMLContent.prototype.show = function (tooltipModel, nearPointColor) {\n clearTimeout(this._hideTimeout);\n clearTimeout(this._longHideTimeout);\n var el = this.el;\n var style = el.style;\n var styleCoord = this._styleCoord;\n\n if (!el.innerHTML) {\n style.display = 'none';\n } else {\n style.cssText = gCssText + assembleCssText(tooltipModel, !this._firstShow, this._longHide) // initial transform\n + assembleTransform(styleCoord[0], styleCoord[1], true) + (\"border-color:\" + convertToColorString(nearPointColor) + \";\") + (tooltipModel.get('extraCssText') || '') // If mouse occasionally move over the tooltip, a mouseout event will be\n // triggered by canvas, and cause some unexpectable result like dragging\n // stop, \"unfocusAdjacency\". Here `pointer-events: none` is used to solve\n // it. Although it is not supported by IE8~IE10, fortunately it is a rare\n // scenario.\n + (\";pointer-event:\" + (this._enterable ? 'auto' : 'none'));\n }\n\n this._show = true;\n this._firstShow = false;\n this._longHide = false;\n };\n\n TooltipHTMLContent.prototype.setContent = function (content, markers, tooltipModel, borderColor, arrowPosition) {\n if (content == null) {\n return;\n }\n\n var el = this.el;\n\n if (isString(arrowPosition) && tooltipModel.get('trigger') === 'item' && !shouldTooltipConfine(tooltipModel)) {\n content += assembleArrow(tooltipModel.get('backgroundColor'), borderColor, arrowPosition);\n }\n\n if (isString(content)) {\n el.innerHTML = content;\n } else if (content) {\n // Clear previous\n el.innerHTML = '';\n\n if (!isArray(content)) {\n content = [content];\n }\n\n for (var i = 0; i < content.length; i++) {\n if (isDom(content[i]) && content[i].parentNode !== el) {\n el.appendChild(content[i]);\n }\n }\n }\n };\n\n TooltipHTMLContent.prototype.setEnterable = function (enterable) {\n this._enterable = enterable;\n };\n\n TooltipHTMLContent.prototype.getSize = function () {\n var el = this.el;\n return [el.clientWidth, el.clientHeight];\n };\n\n TooltipHTMLContent.prototype.moveTo = function (zrX, zrY) {\n var styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, this._appendToBody, zrX, zrY);\n\n if (styleCoord[0] != null && styleCoord[1] != null) {\n var style_1 = this.el.style;\n var transforms = assembleTransform(styleCoord[0], styleCoord[1]);\n each(transforms, function (transform) {\n style_1[transform[0]] = transform[1];\n });\n }\n };\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n\n\n TooltipHTMLContent.prototype._moveIfResized = function () {\n // The ratio of left to width\n var ratioX = this._styleCoord[2]; // The ratio of top to height\n\n var ratioY = this._styleCoord[3];\n this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());\n };\n\n TooltipHTMLContent.prototype.hide = function () {\n var _this = this;\n\n var style = this.el.style;\n style.visibility = 'hidden';\n style.opacity = '0';\n env.transform3dSupported && (style.willChange = '');\n this._show = false;\n this._longHideTimeout = setTimeout(function () {\n return _this._longHide = true;\n }, 500);\n };\n\n TooltipHTMLContent.prototype.hideLater = function (time) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times\n\n this._show = false;\n this._hideTimeout = setTimeout(bind(this.hide, this), time);\n } else {\n this.hide();\n }\n }\n };\n\n TooltipHTMLContent.prototype.isShow = function () {\n return this._show;\n };\n\n TooltipHTMLContent.prototype.dispose = function () {\n this.el.parentNode.removeChild(this.el);\n };\n\n TooltipHTMLContent.prototype.getOuterSize = function () {\n var width = this.el.clientWidth;\n var height = this.el.clientHeight; // Consider browser compatibility.\n // IE8 does not support getComputedStyle.\n\n var stl = getComputedStyle(this.el);\n\n if (stl) {\n width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10);\n height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10);\n }\n\n return {\n width: width,\n height: height\n };\n };\n\n return TooltipHTMLContent;\n}();\n\nexport default TooltipHTMLContent;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ZRText from 'zrender/lib/graphic/Text';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\nimport { throwError } from '../../util/log';\n\nvar TooltipRichContent =\n/** @class */\nfunction () {\n function TooltipRichContent(api) {\n this._show = false;\n this._styleCoord = [0, 0, 0, 0];\n this._enterable = true;\n this._zr = api.getZr();\n makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2);\n }\n /**\n * Update when tooltip is rendered\n */\n\n\n TooltipRichContent.prototype.update = function (tooltipModel) {\n var alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n };\n\n TooltipRichContent.prototype.show = function () {\n if (this._hideTimeout) {\n clearTimeout(this._hideTimeout);\n }\n\n this.el.show();\n this._show = true;\n };\n /**\n * Set tooltip content\n */\n\n\n TooltipRichContent.prototype.setContent = function (content, markupStyleCreator, tooltipModel, borderColor, arrowPosition) {\n if (zrUtil.isObject(content)) {\n throwError(process.env.NODE_ENV !== 'production' ? 'Passing DOM nodes as content is not supported in richText tooltip!' : '');\n }\n\n if (this.el) {\n this._zr.remove(this.el);\n }\n\n var textStyleModel = tooltipModel.getModel('textStyle');\n this.el = new ZRText({\n style: {\n rich: markupStyleCreator.richTextStyles,\n text: content,\n lineHeight: 22,\n backgroundColor: tooltipModel.get('backgroundColor'),\n borderRadius: tooltipModel.get('borderRadius'),\n borderWidth: 1,\n borderColor: borderColor,\n shadowColor: tooltipModel.get('shadowColor'),\n shadowBlur: tooltipModel.get('shadowBlur'),\n shadowOffsetX: tooltipModel.get('shadowOffsetX'),\n shadowOffsetY: tooltipModel.get('shadowOffsetY'),\n textShadowColor: textStyleModel.get('textShadowColor'),\n textShadowBlur: textStyleModel.get('textShadowBlur') || 0,\n textShadowOffsetX: textStyleModel.get('textShadowOffsetX') || 0,\n textShadowOffsetY: textStyleModel.get('textShadowOffsetY') || 0,\n fill: tooltipModel.get(['textStyle', 'color']),\n padding: getPaddingFromTooltipModel(tooltipModel, 'richText'),\n verticalAlign: 'top',\n align: 'left'\n },\n z: tooltipModel.get('z')\n });\n\n this._zr.add(this.el);\n\n var self = this;\n this.el.on('mouseover', function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n\n self._inContent = true;\n });\n this.el.on('mouseout', function () {\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n\n self._inContent = false;\n });\n };\n\n TooltipRichContent.prototype.setEnterable = function (enterable) {\n this._enterable = enterable;\n };\n\n TooltipRichContent.prototype.getSize = function () {\n var el = this.el;\n var bounding = this.el.getBoundingRect(); // bounding rect does not include shadow. For renderMode richText,\n // if overflow, it will be cut. So calculate them accurately.\n\n var shadowOuterSize = calcShadowOuterSize(el.style);\n return [bounding.width + shadowOuterSize.left + shadowOuterSize.right, bounding.height + shadowOuterSize.top + shadowOuterSize.bottom];\n };\n\n TooltipRichContent.prototype.moveTo = function (x, y) {\n var el = this.el;\n\n if (el) {\n var styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, x, y);\n x = styleCoord[0];\n y = styleCoord[1];\n var style = el.style;\n var borderWidth = mathMaxWith0(style.borderWidth || 0);\n var shadowOuterSize = calcShadowOuterSize(style); // rich text x, y do not include border.\n\n el.x = x + borderWidth + shadowOuterSize.left;\n el.y = y + borderWidth + shadowOuterSize.top;\n el.markRedraw();\n }\n };\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n\n\n TooltipRichContent.prototype._moveIfResized = function () {\n // The ratio of left to width\n var ratioX = this._styleCoord[2]; // The ratio of top to height\n\n var ratioY = this._styleCoord[3];\n this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());\n };\n\n TooltipRichContent.prototype.hide = function () {\n if (this.el) {\n this.el.hide();\n }\n\n this._show = false;\n };\n\n TooltipRichContent.prototype.hideLater = function (time) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times\n\n this._show = false;\n this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time);\n } else {\n this.hide();\n }\n }\n };\n\n TooltipRichContent.prototype.isShow = function () {\n return this._show;\n };\n\n TooltipRichContent.prototype.getOuterSize = function () {\n var size = this.getSize();\n return {\n width: size[0],\n height: size[1]\n };\n };\n\n TooltipRichContent.prototype.dispose = function () {\n this._zr.remove(this.el);\n };\n\n return TooltipRichContent;\n}();\n\nfunction mathMaxWith0(val) {\n return Math.max(0, val);\n}\n\nfunction calcShadowOuterSize(style) {\n var shadowBlur = mathMaxWith0(style.shadowBlur || 0);\n var shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0);\n var shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0);\n return {\n left: mathMaxWith0(shadowBlur - shadowOffsetX),\n right: mathMaxWith0(shadowBlur + shadowOffsetX),\n top: mathMaxWith0(shadowBlur - shadowOffsetY),\n bottom: mathMaxWith0(shadowBlur + shadowOffsetY)\n };\n}\n\nfunction makeStyleCoord(out, zr, zrX, zrY) {\n out[0] = zrX;\n out[1] = zrY;\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nexport default TooltipRichContent;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport { __extends } from \"tslib\";\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport TooltipHTMLContent from './TooltipHTMLContent';\nimport TooltipRichContent from './TooltipRichContent';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport findPointFromSeries from '../axisPointer/findPointFromSeries';\nimport * as layoutUtil from '../../util/layout';\nimport Model from '../../model/Model';\nimport * as globalListener from '../axisPointer/globalListener';\nimport * as axisHelper from '../../coord/axisHelper';\nimport * as axisPointerViewHelper from '../axisPointer/viewHelper';\nimport { getTooltipRenderMode, preParseFinder, queryReferringComponents } from '../../util/model';\nimport ComponentView from '../../view/Component';\nimport { format as timeFormat } from '../../util/time'; // import { isDimensionStacked } from '../../data/helper/dataStackHelper';\n\nimport { getECData } from '../../util/innerStore';\nimport { shouldTooltipConfine } from './helper';\nimport { normalizeTooltipFormatResult } from '../../model/mixin/dataFormat';\nimport { createTooltipMarkup, buildTooltipMarkup, TooltipMarkupStyleCreator } from './tooltipMarkup';\nimport { findEventDispatcher } from '../../util/event';\nvar bind = zrUtil.bind;\nvar each = zrUtil.each;\nvar parsePercent = numberUtil.parsePercent;\nvar proxyRect = new graphic.Rect({\n shape: {\n x: -1,\n y: -1,\n width: 2,\n height: 2\n }\n});\n\nvar TooltipView =\n/** @class */\nfunction (_super) {\n __extends(TooltipView, _super);\n\n function TooltipView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TooltipView.type;\n return _this;\n }\n\n TooltipView.prototype.init = function (ecModel, api) {\n if (env.node) {\n return;\n }\n\n var tooltipModel = ecModel.getComponent('tooltip');\n var renderMode = tooltipModel.get('renderMode');\n this._renderMode = getTooltipRenderMode(renderMode);\n this._tooltipContent = this._renderMode === 'richText' ? new TooltipRichContent(api) : new TooltipHTMLContent(api.getDom(), api, {\n appendToBody: tooltipModel.get('appendToBody', true)\n });\n };\n\n TooltipView.prototype.render = function (tooltipModel, ecModel, api) {\n if (env.node) {\n return;\n } // Reset\n\n\n this.group.removeAll();\n this._tooltipModel = tooltipModel;\n this._ecModel = ecModel;\n this._api = api;\n /**\n * @private\n * @type {boolean}\n */\n\n this._alwaysShowContent = tooltipModel.get('alwaysShowContent');\n var tooltipContent = this._tooltipContent;\n tooltipContent.update(tooltipModel);\n tooltipContent.setEnterable(tooltipModel.get('enterable'));\n\n this._initGlobalListener();\n\n this._keepShow();\n };\n\n TooltipView.prototype._initGlobalListener = function () {\n var tooltipModel = this._tooltipModel;\n var triggerOn = tooltipModel.get('triggerOn');\n globalListener.register('itemTooltip', this._api, bind(function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none') {\n if (triggerOn.indexOf(currTrigger) >= 0) {\n this._tryShow(e, dispatchAction);\n } else if (currTrigger === 'leave') {\n this._hide(dispatchAction);\n }\n }\n }, this));\n };\n\n TooltipView.prototype._keepShow = function () {\n var tooltipModel = this._tooltipModel;\n var ecModel = this._ecModel;\n var api = this._api; // Try to keep the tooltip show when refreshing\n\n if (this._lastX != null && this._lastY != null // When user is willing to control tooltip totally using API,\n // self.manuallyShowTip({x, y}) might cause tooltip hide,\n // which is not expected.\n && tooltipModel.get('triggerOn') !== 'none') {\n var self_1 = this;\n clearTimeout(this._refreshUpdateTimeout);\n this._refreshUpdateTimeout = setTimeout(function () {\n // Show tip next tick after other charts are rendered\n // In case highlight action has wrong result\n // FIXME\n !api.isDisposed() && self_1.manuallyShowTip(tooltipModel, ecModel, api, {\n x: self_1._lastX,\n y: self_1._lastY,\n dataByCoordSys: self_1._lastDataByCoordSys\n });\n });\n }\n };\n /**\n * Show tip manually by\n * dispatchAction({\n * type: 'showTip',\n * x: 10,\n * y: 10\n * });\n * Or\n * dispatchAction({\n * type: 'showTip',\n * seriesIndex: 0,\n * dataIndex or dataIndexInside or name\n * });\n *\n * TODO Batch\n */\n\n\n TooltipView.prototype.manuallyShowTip = function (tooltipModel, ecModel, api, payload) {\n if (payload.from === this.uid || env.node) {\n return;\n }\n\n var dispatchAction = makeDispatchAction(payload, api); // Reset ticket\n\n this._ticket = ''; // When triggered from axisPointer.\n\n var dataByCoordSys = payload.dataByCoordSys;\n var cmptRef = findComponentReference(payload, ecModel, api);\n\n if (cmptRef) {\n var rect = cmptRef.el.getBoundingRect().clone();\n rect.applyTransform(cmptRef.el.transform);\n\n this._tryShow({\n offsetX: rect.x + rect.width / 2,\n offsetY: rect.y + rect.height / 2,\n target: cmptRef.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n } else if (payload.tooltip && payload.x != null && payload.y != null) {\n var el = proxyRect;\n el.x = payload.x;\n el.y = payload.y;\n el.update();\n getECData(el).tooltipConfig = {\n name: null,\n option: payload.tooltip\n }; // Manually show tooltip while view is not using zrender elements.\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n target: el\n }, dispatchAction);\n } else if (dataByCoordSys) {\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n dataByCoordSys: dataByCoordSys,\n tooltipOption: payload.tooltipOption\n }, dispatchAction);\n } else if (payload.seriesIndex != null) {\n if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {\n return;\n }\n\n var pointInfo = findPointFromSeries(payload, ecModel);\n var cx = pointInfo.point[0];\n var cy = pointInfo.point[1];\n\n if (cx != null && cy != null) {\n this._tryShow({\n offsetX: cx,\n offsetY: cy,\n target: pointInfo.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n } else if (payload.x != null && payload.y != null) {\n // FIXME\n // should wrap dispatchAction like `axisPointer/globalListener` ?\n api.dispatchAction({\n type: 'updateAxisPointer',\n x: payload.x,\n y: payload.y\n });\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n target: api.getZr().findHover(payload.x, payload.y).target\n }, dispatchAction);\n }\n };\n\n TooltipView.prototype.manuallyHideTip = function (tooltipModel, ecModel, api, payload) {\n var tooltipContent = this._tooltipContent;\n\n if (!this._alwaysShowContent && this._tooltipModel) {\n tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));\n }\n\n this._lastX = this._lastY = this._lastDataByCoordSys = null;\n\n if (payload.from !== this.uid) {\n this._hide(makeDispatchAction(payload, api));\n }\n }; // Be compatible with previous design, that is, when tooltip.type is 'axis' and\n // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer\n // and tooltip.\n\n\n TooltipView.prototype._manuallyAxisShowTip = function (tooltipModel, ecModel, api, payload) {\n var seriesIndex = payload.seriesIndex;\n var dataIndex = payload.dataIndex; // @ts-ignore\n\n var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;\n\n if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {\n return;\n }\n\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n if (!seriesModel) {\n return;\n }\n\n var data = seriesModel.getData();\n var tooltipCascadedModel = buildTooltipModel([data.getItemModel(dataIndex), seriesModel, (seriesModel.coordinateSystem || {}).model], this._tooltipModel);\n\n if (tooltipCascadedModel.get('trigger') !== 'axis') {\n return;\n }\n\n api.dispatchAction({\n type: 'updateAxisPointer',\n seriesIndex: seriesIndex,\n dataIndex: dataIndex,\n position: payload.position\n });\n return true;\n };\n\n TooltipView.prototype._tryShow = function (e, dispatchAction) {\n var el = e.target;\n var tooltipModel = this._tooltipModel;\n\n if (!tooltipModel) {\n return;\n } // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed\n\n\n this._lastX = e.offsetX;\n this._lastY = e.offsetY;\n var dataByCoordSys = e.dataByCoordSys;\n\n if (dataByCoordSys && dataByCoordSys.length) {\n this._showAxisTooltip(dataByCoordSys, e);\n } else if (el) {\n this._lastDataByCoordSys = null;\n var seriesDispatcher_1;\n var cmptDispatcher_1;\n findEventDispatcher(el, function (target) {\n // Always show item tooltip if mouse is on the element with dataIndex\n if (getECData(target).dataIndex != null) {\n seriesDispatcher_1 = target;\n return true;\n } // Tooltip provided directly. Like legend.\n\n\n if (getECData(target).tooltipConfig != null) {\n cmptDispatcher_1 = target;\n return true;\n }\n }, true);\n\n if (seriesDispatcher_1) {\n this._showSeriesItemTooltip(e, seriesDispatcher_1, dispatchAction);\n } else if (cmptDispatcher_1) {\n this._showComponentItemTooltip(e, cmptDispatcher_1, dispatchAction);\n } else {\n this._hide(dispatchAction);\n }\n } else {\n this._lastDataByCoordSys = null;\n\n this._hide(dispatchAction);\n }\n };\n\n TooltipView.prototype._showOrMove = function (tooltipModel, cb) {\n // showDelay is used in this case: tooltip.enterable is set\n // as true. User intent to move mouse into tooltip and click\n // something. `showDelay` makes it easier to enter the content\n // but tooltip do not move immediately.\n var delay = tooltipModel.get('showDelay');\n cb = zrUtil.bind(cb, this);\n clearTimeout(this._showTimout);\n delay > 0 ? this._showTimout = setTimeout(cb, delay) : cb();\n };\n\n TooltipView.prototype._showAxisTooltip = function (dataByCoordSys, e) {\n var ecModel = this._ecModel;\n var globalTooltipModel = this._tooltipModel;\n var point = [e.offsetX, e.offsetY];\n var singleTooltipModel = buildTooltipModel([e.tooltipOption], globalTooltipModel);\n var renderMode = this._renderMode;\n var cbParamsList = [];\n var articleMarkup = createTooltipMarkup('section', {\n blocks: [],\n noHeader: true\n }); // Only for legacy: `Serise['formatTooltip']` returns a string.\n\n var markupTextArrLegacy = [];\n var markupStyleCreator = new TooltipMarkupStyleCreator();\n each(dataByCoordSys, function (itemCoordSys) {\n each(itemCoordSys.dataByAxis, function (axisItem) {\n var axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex);\n var axisValue = axisItem.value;\n\n if (!axisModel || axisValue == null) {\n return;\n }\n\n var axisValueLabel = axisPointerViewHelper.getValueLabel(axisValue, axisModel.axis, ecModel, axisItem.seriesDataIndices, axisItem.valueLabelOpt);\n var axisSectionMarkup = createTooltipMarkup('section', {\n header: axisValueLabel,\n noHeader: !zrUtil.trim(axisValueLabel),\n sortBlocks: true,\n blocks: []\n });\n articleMarkup.blocks.push(axisSectionMarkup);\n zrUtil.each(axisItem.seriesDataIndices, function (idxItem) {\n var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n var dataIndex = idxItem.dataIndexInside;\n var cbParams = series.getDataParams(dataIndex);\n cbParams.axisDim = axisItem.axisDim;\n cbParams.axisIndex = axisItem.axisIndex;\n cbParams.axisType = axisItem.axisType;\n cbParams.axisId = axisItem.axisId;\n cbParams.axisValue = axisHelper.getAxisRawValue(axisModel.axis, {\n value: axisValue\n });\n cbParams.axisValueLabel = axisValueLabel; // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n\n cbParams.marker = markupStyleCreator.makeTooltipMarker('item', formatUtil.convertToColorString(cbParams.color), renderMode);\n var seriesTooltipResult = normalizeTooltipFormatResult(series.formatTooltip(dataIndex, true, null));\n\n if (seriesTooltipResult.markupFragment) {\n axisSectionMarkup.blocks.push(seriesTooltipResult.markupFragment);\n }\n\n if (seriesTooltipResult.markupText) {\n markupTextArrLegacy.push(seriesTooltipResult.markupText);\n }\n\n cbParamsList.push(cbParams);\n });\n });\n }); // In most cases, the second axis is displays upper on the first one.\n // So we reverse it to look better.\n\n articleMarkup.blocks.reverse();\n markupTextArrLegacy.reverse();\n var positionExpr = e.position;\n var orderMode = singleTooltipModel.get('order');\n var builtMarkupText = buildTooltipMarkup(articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), singleTooltipModel.get('textStyle'));\n builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText);\n var blockBreak = renderMode === 'richText' ? '\\n\\n' : '
';\n var allMarkupText = markupTextArrLegacy.join(blockBreak);\n\n this._showOrMove(singleTooltipModel, function () {\n if (this._updateContentNotChangedOnAxis(dataByCoordSys)) {\n this._updatePosition(singleTooltipModel, positionExpr, point[0], point[1], this._tooltipContent, cbParamsList);\n } else {\n this._showTooltipContent(singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '', point[0], point[1], positionExpr, null, markupStyleCreator);\n }\n }); // Do not trigger events here, because this branch only be entered\n // from dispatchAction.\n\n };\n\n TooltipView.prototype._showSeriesItemTooltip = function (e, dispatcher, dispatchAction) {\n var ecModel = this._ecModel;\n var ecData = getECData(dispatcher); // Use dataModel in element if possible\n // Used when mouseover on a element like markPoint or edge\n // In which case, the data is not main data in series.\n\n var seriesIndex = ecData.seriesIndex;\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex); // For example, graph link.\n\n var dataModel = ecData.dataModel || seriesModel;\n var dataIndex = ecData.dataIndex;\n var dataType = ecData.dataType;\n var data = dataModel.getData(dataType);\n var renderMode = this._renderMode;\n var positionDefault = e.positionDefault;\n var tooltipModel = buildTooltipModel([data.getItemModel(dataIndex), dataModel, seriesModel && (seriesModel.coordinateSystem || {}).model], this._tooltipModel, positionDefault ? {\n position: positionDefault\n } : null);\n var tooltipTrigger = tooltipModel.get('trigger');\n\n if (tooltipTrigger != null && tooltipTrigger !== 'item') {\n return;\n }\n\n var params = dataModel.getDataParams(dataIndex, dataType);\n var markupStyleCreator = new TooltipMarkupStyleCreator(); // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n\n params.marker = markupStyleCreator.makeTooltipMarker('item', formatUtil.convertToColorString(params.color), renderMode);\n var seriesTooltipResult = normalizeTooltipFormatResult(dataModel.formatTooltip(dataIndex, false, dataType));\n var orderMode = tooltipModel.get('order');\n var markupText = seriesTooltipResult.markupFragment ? buildTooltipMarkup(seriesTooltipResult.markupFragment, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), tooltipModel.get('textStyle')) : seriesTooltipResult.markupText;\n var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;\n\n this._showOrMove(tooltipModel, function () {\n this._showTooltipContent(tooltipModel, markupText, params, asyncTicket, e.offsetX, e.offsetY, e.position, e.target, markupStyleCreator);\n }); // FIXME\n // duplicated showtip if manuallyShowTip is called from dispatchAction.\n\n\n dispatchAction({\n type: 'showTip',\n dataIndexInside: dataIndex,\n dataIndex: data.getRawIndex(dataIndex),\n seriesIndex: seriesIndex,\n from: this.uid\n });\n };\n\n TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {\n var ecData = getECData(el);\n var tooltipConfig = ecData.tooltipConfig;\n var tooltipOpt = tooltipConfig.option || {};\n\n if (zrUtil.isString(tooltipOpt)) {\n var content = tooltipOpt;\n tooltipOpt = {\n content: content,\n // Fixed formatter\n formatter: content\n };\n }\n\n var tooltipModelCascade = [tooltipOpt];\n\n var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);\n\n if (cmpt) {\n tooltipModelCascade.push(cmpt);\n } // In most cases, component tooltip formatter has different params with series tooltip formatter,\n // so that they can not share the same formatter. Since the global tooltip formatter is used for series\n // by convension, we do not use it as the default formatter for component.\n\n\n tooltipModelCascade.push({\n formatter: tooltipOpt.content\n });\n var positionDefault = e.positionDefault;\n var subTooltipModel = buildTooltipModel(tooltipModelCascade, this._tooltipModel, positionDefault ? {\n position: positionDefault\n } : null);\n var defaultHtml = subTooltipModel.get('content');\n var asyncTicket = Math.random() + ''; // PENDING: this case do not support richText style yet.\n\n var markupStyleCreator = new TooltipMarkupStyleCreator(); // Do not check whether `trigger` is 'none' here, because `trigger`\n // only works on coordinate system. In fact, we have not found case\n // that requires setting `trigger` nothing on component yet.\n\n this._showOrMove(subTooltipModel, function () {\n // Use formatterParams from element defined in component\n // Avoid users modify it.\n var formatterParams = zrUtil.clone(subTooltipModel.get('formatterParams') || {});\n\n this._showTooltipContent(subTooltipModel, defaultHtml, formatterParams, asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator);\n }); // If not dispatch showTip, tip may be hide triggered by axis.\n\n\n dispatchAction({\n type: 'showTip',\n from: this.uid\n });\n };\n\n TooltipView.prototype._showTooltipContent = function ( // Use Model insteadof TooltipModel because this model may be from series or other options.\n // Instead of top level tooltip.\n tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el, markupStyleCreator) {\n // Reset ticket\n this._ticket = '';\n\n if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {\n return;\n }\n\n var tooltipContent = this._tooltipContent;\n var formatter = tooltipModel.get('formatter');\n positionExpr = positionExpr || tooltipModel.get('position');\n var html = defaultHtml;\n\n var nearPoint = this._getNearestPoint([x, y], params, tooltipModel.get('trigger'), tooltipModel.get('borderColor'));\n\n var nearPointColor = nearPoint.color;\n\n if (formatter && zrUtil.isString(formatter)) {\n var useUTC = tooltipModel.ecModel.get('useUTC');\n var params0 = zrUtil.isArray(params) ? params[0] : params;\n var isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0;\n html = formatter;\n\n if (isTimeAxis) {\n html = timeFormat(params0.axisValue, html, useUTC);\n }\n\n html = formatUtil.formatTpl(html, params, true);\n } else if (zrUtil.isFunction(formatter)) {\n var callback = bind(function (cbTicket, html) {\n if (cbTicket === this._ticket) {\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n\n this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);\n }\n }, this);\n this._ticket = asyncTicket;\n html = formatter(params, asyncTicket, callback);\n }\n\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n tooltipContent.show(tooltipModel, nearPointColor);\n\n this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);\n };\n\n TooltipView.prototype._getNearestPoint = function (point, tooltipDataParams, trigger, borderColor) {\n if (trigger === 'axis' || zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none')\n };\n }\n\n if (!zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor\n };\n }\n };\n\n TooltipView.prototype._updatePosition = function (tooltipModel, positionExpr, x, // Mouse x\n y, // Mouse y\n content, params, el) {\n var viewWidth = this._api.getWidth();\n\n var viewHeight = this._api.getHeight();\n\n positionExpr = positionExpr || tooltipModel.get('position');\n var contentSize = content.getSize();\n var align = tooltipModel.get('align');\n var vAlign = tooltipModel.get('verticalAlign');\n var rect = el && el.getBoundingRect().clone();\n el && rect.applyTransform(el.transform);\n\n if (zrUtil.isFunction(positionExpr)) {\n // Callback of position can be an array or a string specify the position\n positionExpr = positionExpr([x, y], params, content.el, rect, {\n viewSize: [viewWidth, viewHeight],\n contentSize: contentSize.slice()\n });\n }\n\n if (zrUtil.isArray(positionExpr)) {\n x = parsePercent(positionExpr[0], viewWidth);\n y = parsePercent(positionExpr[1], viewHeight);\n } else if (zrUtil.isObject(positionExpr)) {\n var boxLayoutPosition = positionExpr;\n boxLayoutPosition.width = contentSize[0];\n boxLayoutPosition.height = contentSize[1];\n var layoutRect = layoutUtil.getLayoutRect(boxLayoutPosition, {\n width: viewWidth,\n height: viewHeight\n });\n x = layoutRect.x;\n y = layoutRect.y;\n align = null; // When positionExpr is left/top/right/bottom,\n // align and verticalAlign will not work.\n\n vAlign = null;\n } // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element\n else if (zrUtil.isString(positionExpr) && el) {\n var pos = calcTooltipPosition(positionExpr, rect, contentSize);\n x = pos[0];\n y = pos[1];\n } else {\n var pos = refixTooltipPosition(x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20);\n x = pos[0];\n y = pos[1];\n }\n\n align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);\n vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);\n\n if (shouldTooltipConfine(tooltipModel)) {\n var pos = confineTooltipPosition(x, y, content, viewWidth, viewHeight);\n x = pos[0];\n y = pos[1];\n }\n\n content.moveTo(x, y);\n }; // FIXME\n // Should we remove this but leave this to user?\n\n\n TooltipView.prototype._updateContentNotChangedOnAxis = function (dataByCoordSys) {\n var lastCoordSys = this._lastDataByCoordSys;\n var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length;\n contentNotChanged && each(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {\n var lastDataByAxis = lastItemCoordSys.dataByAxis || [];\n var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {};\n var thisDataByAxis = thisItemCoordSys.dataByAxis || [];\n contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;\n contentNotChanged && each(lastDataByAxis, function (lastItem, indexAxis) {\n var thisItem = thisDataByAxis[indexAxis] || {};\n var lastIndices = lastItem.seriesDataIndices || [];\n var newIndices = thisItem.seriesDataIndices || [];\n contentNotChanged = contentNotChanged && lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length;\n contentNotChanged && each(lastIndices, function (lastIdxItem, j) {\n var newIdxItem = newIndices[j];\n contentNotChanged = contentNotChanged && lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex;\n });\n });\n });\n this._lastDataByCoordSys = dataByCoordSys;\n return !!contentNotChanged;\n };\n\n TooltipView.prototype._hide = function (dispatchAction) {\n // Do not directly hideLater here, because this behavior may be prevented\n // in dispatchAction when showTip is dispatched.\n // FIXME\n // duplicated hideTip if manuallyHideTip is called from dispatchAction.\n this._lastDataByCoordSys = null;\n dispatchAction({\n type: 'hideTip',\n from: this.uid\n });\n };\n\n TooltipView.prototype.dispose = function (ecModel, api) {\n if (env.node) {\n return;\n }\n\n this._tooltipContent.dispose();\n\n globalListener.unregister('itemTooltip', api);\n };\n\n TooltipView.type = 'tooltip';\n return TooltipView;\n}(ComponentView);\n/**\n * From top to bottom. (the last one should be globalTooltipModel);\n */\n\n\nfunction buildTooltipModel(modelCascade, globalTooltipModel, defaultTooltipOption) {\n // Last is always tooltip model.\n var ecModel = globalTooltipModel.ecModel;\n var resultModel;\n\n if (defaultTooltipOption) {\n resultModel = new Model(defaultTooltipOption, ecModel, ecModel);\n resultModel = new Model(globalTooltipModel.option, resultModel, ecModel);\n } else {\n resultModel = globalTooltipModel;\n }\n\n for (var i = modelCascade.length - 1; i >= 0; i--) {\n var tooltipOpt = modelCascade[i];\n\n if (tooltipOpt) {\n if (tooltipOpt instanceof Model) {\n tooltipOpt = tooltipOpt.get('tooltip', true);\n } // In each data item tooltip can be simply write:\n // {\n // value: 10,\n // tooltip: 'Something you need to know'\n // }\n\n\n if (zrUtil.isString(tooltipOpt)) {\n tooltipOpt = {\n formatter: tooltipOpt\n };\n }\n\n if (tooltipOpt) {\n resultModel = new Model(tooltipOpt, resultModel, ecModel);\n }\n }\n }\n\n return resultModel;\n}\n\nfunction makeDispatchAction(payload, api) {\n return payload.dispatchAction || zrUtil.bind(api.dispatchAction, api);\n}\n\nfunction refixTooltipPosition(x, y, content, viewWidth, viewHeight, gapH, gapV) {\n var size = content.getOuterSize();\n var width = size.width;\n var height = size.height;\n\n if (gapH != null) {\n // Add extra 2 pixels for this case:\n // At present the \"values\" in defaut tooltip are using CSS `float: right`.\n // When the right edge of the tooltip box is on the right side of the\n // viewport, the `float` layout might push the \"values\" to the second line.\n if (x + width + gapH + 2 > viewWidth) {\n x -= width + gapH;\n } else {\n x += gapH;\n }\n }\n\n if (gapV != null) {\n if (y + height + gapV > viewHeight) {\n y -= height + gapV;\n } else {\n y += gapV;\n }\n }\n\n return [x, y];\n}\n\nfunction confineTooltipPosition(x, y, content, viewWidth, viewHeight) {\n var size = content.getOuterSize();\n var width = size.width;\n var height = size.height;\n x = Math.min(x + width, viewWidth) - width;\n y = Math.min(y + height, viewHeight) - height;\n x = Math.max(x, 0);\n y = Math.max(y, 0);\n return [x, y];\n}\n\nfunction calcTooltipPosition(position, rect, contentSize) {\n var domWidth = contentSize[0];\n var domHeight = contentSize[1];\n var gap = 10;\n var offset = 5;\n var x = 0;\n var y = 0;\n var rectWidth = rect.width;\n var rectHeight = rect.height;\n\n switch (position) {\n case 'inside':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n\n case 'top':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y - domHeight - gap;\n break;\n\n case 'bottom':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight + gap;\n break;\n\n case 'left':\n x = rect.x - domWidth - gap - offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n\n case 'right':\n x = rect.x + rectWidth + gap + offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n }\n\n return [x, y];\n}\n\nfunction isCenterAlign(align) {\n return align === 'center' || align === 'middle';\n}\n/**\n * Find target component by payload like:\n * ```js\n * { legendId: 'some_id', name: 'xxx' }\n * { toolboxIndex: 1, name: 'xxx' }\n * { geoName: 'some_name', name: 'xxx' }\n * ```\n * PENDING: at present only\n *\n * If not found, return null/undefined.\n */\n\n\nfunction findComponentReference(payload, ecModel, api) {\n var queryOptionMap = preParseFinder(payload).queryOptionMap;\n var componentMainType = queryOptionMap.keys()[0];\n\n if (!componentMainType || componentMainType === 'series') {\n return;\n }\n\n var queryResult = queryReferringComponents(ecModel, componentMainType, queryOptionMap.get(componentMainType), {\n useDefault: false,\n enableAll: false,\n enableNone: false\n });\n var model = queryResult.models[0];\n\n if (!model) {\n return;\n }\n\n var view = api.getViewOfComponentModel(model);\n var el;\n view.group.traverse(function (subEl) {\n var tooltipConfig = getECData(subEl).tooltipConfig;\n\n if (tooltipConfig && tooltipConfig.name === payload.name) {\n el = subEl;\n return true; // stop\n }\n });\n\n if (el) {\n return {\n componentMainType: componentMainType,\n componentIndex: model.componentIndex,\n el: el\n };\n }\n}\n\nexport default TooltipView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport { use } from '../../extension';\nimport TooltipModel from './TooltipModel';\nimport TooltipView from './TooltipView';\nexport function install(registers) {\n use(installAxisPointer);\n registers.registerComponentModel(TooltipModel);\n registers.registerComponentView(TooltipView);\n /**\n * @action\n * @property {string} type\n * @property {number} seriesIndex\n * @property {number} dataIndex\n * @property {number} [x]\n * @property {number} [y]\n */\n\n registers.registerAction({\n type: 'showTip',\n event: 'showTip',\n update: 'tooltip:manuallyShowTip'\n }, // noop\n function () {});\n registers.registerAction({\n type: 'hideTip',\n event: 'hideTip',\n update: 'tooltip:manuallyHideTip'\n }, // noop\n function () {});\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nvar DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear'];\nexport default function brushPreprocessor(option, isNew) {\n var brushComponents = normalizeToArray(option ? option.brush : []);\n\n if (!brushComponents.length) {\n return;\n }\n\n var brushComponentSpecifiedBtns = [];\n zrUtil.each(brushComponents, function (brushOpt) {\n var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : [];\n\n if (tbs instanceof Array) {\n brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);\n }\n });\n var toolbox = option && option.toolbox;\n\n if (zrUtil.isArray(toolbox)) {\n toolbox = toolbox[0];\n }\n\n if (!toolbox) {\n toolbox = {\n feature: {}\n };\n option.toolbox = [toolbox];\n }\n\n var toolboxFeature = toolbox.feature || (toolbox.feature = {});\n var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {});\n var brushTypes = toolboxBrush.type || (toolboxBrush.type = []);\n brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);\n removeDuplicate(brushTypes);\n\n if (isNew && !brushTypes.length) {\n brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);\n }\n}\n\nfunction removeDuplicate(arr) {\n var map = {};\n zrUtil.each(arr, function (val) {\n map[val] = 1;\n });\n arr.length = 0;\n zrUtil.each(map, function (flag, val) {\n arr.push(val);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual solution, for consistent option specification.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapping from './VisualMapping';\nimport { getItemVisualFromData, setItemVisualFromData } from './helper';\nvar each = zrUtil.each;\n\nfunction hasKeys(obj) {\n if (obj) {\n for (var name_1 in obj) {\n if (obj.hasOwnProperty(name_1)) {\n return true;\n }\n }\n }\n}\n\nexport function createVisualMappings(option, stateList, supplementVisualOption) {\n var visualMappings = {};\n each(stateList, function (state) {\n var mappings = visualMappings[state] = createMappings();\n each(option[state], function (visualData, visualType) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n var mappingOption = {\n type: visualType,\n visual: visualData\n };\n supplementVisualOption && supplementVisualOption(mappingOption, state);\n mappings[visualType] = new VisualMapping(mappingOption); // Prepare a alpha for opacity, for some case that opacity\n // is not supported, such as rendering using gradient color.\n\n if (visualType === 'opacity') {\n mappingOption = zrUtil.clone(mappingOption);\n mappingOption.type = 'colorAlpha';\n mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption);\n }\n });\n });\n return visualMappings;\n\n function createMappings() {\n var Creater = function () {}; // Make sure hidden fields will not be visited by\n // object iteration (with hasOwnProperty checking).\n\n\n Creater.prototype.__hidden = Creater.prototype;\n var obj = new Creater();\n return obj;\n }\n}\nexport function replaceVisualOption(thisOption, newOption, keys) {\n // Visual attributes merge is not supported, otherwise it\n // brings overcomplicated merge logic. See #2853. So if\n // newOption has anyone of these keys, all of these keys\n // will be reset. Otherwise, all keys remain.\n var has;\n zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n has = true;\n }\n });\n has && zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n thisOption[key] = zrUtil.clone(newOption[key]);\n } else {\n delete thisOption[key];\n }\n });\n}\n/**\n * @param stateList\n * @param visualMappings\n * @param list\n * @param getValueState param: valueOrIndex, return: state.\n * @param scope Scope for getValueState\n * @param dimension Concrete dimension, if used.\n */\n// ???! handle brush?\n\nexport function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) {\n var visualTypesMap = {};\n zrUtil.each(stateList, function (state) {\n var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n var dataIndex;\n\n function getVisual(key) {\n return getItemVisualFromData(data, dataIndex, key);\n }\n\n function setVisual(key, value) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n if (dimension == null) {\n data.each(eachItem);\n } else {\n data.each([dimension], eachItem);\n }\n\n function eachItem(valueOrIndex, index) {\n dataIndex = dimension == null ? valueOrIndex // First argument is index\n : index;\n var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance\n // @ts-ignore\n\n if (rawDataItem && rawDataItem.visualMap === false) {\n return;\n }\n\n var valueState = getValueState.call(scope, valueOrIndex);\n var mappings = visualMappings[valueState];\n var visualTypes = visualTypesMap[valueState];\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(valueOrIndex, getVisual, setVisual);\n }\n }\n}\n/**\n * @param data\n * @param stateList\n * @param visualMappings >\n * @param getValueState param: valueOrIndex, return: state.\n * @param dim dimension or dimension index.\n */\n\nexport function incrementalApplyVisual(stateList, visualMappings, getValueState, dim) {\n var visualTypesMap = {};\n zrUtil.each(stateList, function (state) {\n var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n return {\n progress: function progress(params, data) {\n var dimName;\n\n if (dim != null) {\n dimName = data.getDimension(dim);\n }\n\n function getVisual(key) {\n return getItemVisualFromData(data, dataIndex, key);\n }\n\n function setVisual(key, value) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance\n // @ts-ignore\n\n if (rawDataItem && rawDataItem.visualMap === false) {\n continue;\n }\n\n var value = dim != null ? data.get(dimName, dataIndex) : dataIndex;\n var valueState = getValueState(value);\n var mappings = visualMappings[valueState];\n var visualTypes = visualTypesMap[valueState];\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);\n }\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as polygonContain from 'zrender/lib/contain/polygon';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { linePolygonIntersect } from '../../util/graphic';\nexport function makeBrushCommonSelectorForSeries(area) {\n var brushType = area.brushType; // Do not use function binding or curry for performance.\n\n var selectors = {\n point: function (itemLayout) {\n return selector[brushType].point(itemLayout, selectors, area);\n },\n rect: function (itemLayout) {\n return selector[brushType].rect(itemLayout, selectors, area);\n }\n };\n return selectors;\n}\nvar selector = {\n lineX: getLineSelectors(0),\n lineY: getLineSelectors(1),\n rect: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.intersect(itemLayout);\n }\n },\n polygon: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]) && polygonContain.contain(area.range, itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n var points = area.range;\n\n if (!itemLayout || points.length <= 1) {\n return false;\n }\n\n var x = itemLayout.x;\n var y = itemLayout.y;\n var width = itemLayout.width;\n var height = itemLayout.height;\n var p = points[0];\n\n if (polygonContain.contain(points, x, y) || polygonContain.contain(points, x + width, y) || polygonContain.contain(points, x, y + height) || polygonContain.contain(points, x + width, y + height) || BoundingRect.create(itemLayout).contain(p[0], p[1]) || linePolygonIntersect(x, y, x + width, y, points) || linePolygonIntersect(x, y, x, y + height, points) || linePolygonIntersect(x + width, y, x + width, y + height, points) || linePolygonIntersect(x, y + height, x + width, y + height, points)) {\n return true;\n }\n }\n }\n};\n\nfunction getLineSelectors(xyIndex) {\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n return {\n point: function (itemLayout, selectors, area) {\n if (itemLayout) {\n var range = area.range;\n var p = itemLayout[xyIndex];\n return inLineRange(p, range);\n }\n },\n rect: function (itemLayout, selectors, area) {\n if (itemLayout) {\n var range = area.range;\n var layoutRange = [itemLayout[xy[xyIndex]], itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]];\n layoutRange[1] < layoutRange[0] && layoutRange.reverse();\n return inLineRange(layoutRange[0], range) || inLineRange(layoutRange[1], range) || inLineRange(range[0], layoutRange) || inLineRange(range[1], layoutRange);\n }\n }\n };\n}\n\nfunction inLineRange(p, range) {\n return range[0] <= p && p <= range[1];\n}\n\nexport default selector;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as visualSolution from '../../visual/visualSolution';\nimport { makeBrushCommonSelectorForSeries } from './selector';\nimport * as throttleUtil from '../../util/throttle';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nvar STATE_LIST = ['inBrush', 'outOfBrush'];\nvar DISPATCH_METHOD = '__ecBrushSelect';\nvar DISPATCH_FLAG = '__ecInBrushSelectEvent';\n;\nexport function layoutCovers(ecModel) {\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n var brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel);\n brushTargetManager.setInputRanges(brushModel.areas, ecModel);\n });\n}\n/**\n * Register the visual encoding if this modules required.\n */\n\nexport default function brushVisual(ecModel, api, payload) {\n var brushSelected = [];\n var throttleType;\n var throttleDelay;\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(payload.key === 'brush' ? payload.brushOption : {\n brushType: false\n });\n });\n layoutCovers(ecModel);\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel, brushIndex) {\n var thisBrushSelected = {\n brushId: brushModel.id,\n brushIndex: brushIndex,\n brushName: brushModel.name,\n areas: zrUtil.clone(brushModel.areas),\n selected: []\n }; // Every brush component exists in event params, convenient\n // for user to find by index.\n\n brushSelected.push(thisBrushSelected);\n var brushOption = brushModel.option;\n var brushLink = brushOption.brushLink;\n var linkedSeriesMap = [];\n var selectedDataIndexForLink = [];\n var rangeInfoBySeries = [];\n var hasBrushExists = false;\n\n if (!brushIndex) {\n // Only the first throttle setting works.\n throttleType = brushOption.throttleType;\n throttleDelay = brushOption.throttleDelay;\n } // Add boundingRect and selectors to range.\n\n\n var areas = zrUtil.map(brushModel.areas, function (area) {\n var builder = boundingRectBuilders[area.brushType];\n var selectableArea = zrUtil.defaults({\n boundingRect: builder ? builder(area) : void 0\n }, area);\n selectableArea.selectors = makeBrushCommonSelectorForSeries(selectableArea);\n return selectableArea;\n });\n var visualMappings = visualSolution.createVisualMappings(brushModel.option, STATE_LIST, function (mappingOption) {\n mappingOption.mappingMethod = 'fixed';\n });\n zrUtil.isArray(brushLink) && zrUtil.each(brushLink, function (seriesIndex) {\n linkedSeriesMap[seriesIndex] = 1;\n });\n\n function linkOthers(seriesIndex) {\n return brushLink === 'all' || !!linkedSeriesMap[seriesIndex];\n } // If no supported brush or no brush on the series,\n // all visuals should be in original state.\n\n\n function brushed(rangeInfoList) {\n return !!rangeInfoList.length;\n }\n /**\n * Logic for each series: (If the logic has to be modified one day, do it carefully!)\n *\n * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers ) => StepA: ┬record, ┬ StepB: ┬visualByRecord.\n * !brushed┘ ├hasBrushExist ┤ └nothing,┘ ├visualByRecord.\n * └!hasBrushExist┘ └nothing.\n * ( !brushed && ┬hasBrushExist ┬ && linkOthers ) => StepA: nothing, StepB: ┬visualByRecord.\n * └!hasBrushExist┘ └nothing.\n * ( brushed ┬ && !linkOthers ) => StepA: nothing, StepB: ┬visualByCheck.\n * !brushed┘ └nothing.\n * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing.\n */\n // Step A\n\n\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n var rangeInfoList = rangeInfoBySeries[seriesIndex] = [];\n seriesModel.subType === 'parallel' ? stepAParallel(seriesModel, seriesIndex) : stepAOthers(seriesModel, seriesIndex, rangeInfoList);\n });\n\n function stepAParallel(seriesModel, seriesIndex) {\n var coordSys = seriesModel.coordinateSystem;\n hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed();\n linkOthers(seriesIndex) && coordSys.eachActiveState(seriesModel.getData(), function (activeState, dataIndex) {\n activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);\n });\n }\n\n function stepAOthers(seriesModel, seriesIndex, rangeInfoList) {\n if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) {\n return;\n }\n\n zrUtil.each(areas, function (area) {\n if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) {\n rangeInfoList.push(area);\n }\n\n hasBrushExists = hasBrushExists || brushed(rangeInfoList);\n });\n\n if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {\n var data_1 = seriesModel.getData();\n data_1.each(function (dataIndex) {\n if (checkInRange(seriesModel, rangeInfoList, data_1, dataIndex)) {\n selectedDataIndexForLink[dataIndex] = 1;\n }\n });\n }\n } // Step B\n\n\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n var seriesBrushSelected = {\n seriesId: seriesModel.id,\n seriesIndex: seriesIndex,\n seriesName: seriesModel.name,\n dataIndex: []\n }; // Every series exists in event params, convenient\n // for user to find series by seriesIndex.\n\n thisBrushSelected.selected.push(seriesBrushSelected);\n var rangeInfoList = rangeInfoBySeries[seriesIndex];\n var data = seriesModel.getData();\n var getValueState = linkOthers(seriesIndex) ? function (dataIndex) {\n return selectedDataIndexForLink[dataIndex] ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';\n } : function (dataIndex) {\n return checkInRange(seriesModel, rangeInfoList, data, dataIndex) ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';\n }; // If no supported brush or no brush, all visuals are in original state.\n\n (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList)) && visualSolution.applyVisual(STATE_LIST, visualMappings, data, getValueState);\n });\n });\n dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);\n}\n;\n\nfunction dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) {\n // This event will not be triggered when `setOpion`, otherwise dead lock may\n // triggered when do `setOption` in event listener, which we do not find\n // satisfactory way to solve yet. Some considered resolutions:\n // (a) Diff with prevoius selected data ant only trigger event when changed.\n // But store previous data and diff precisely (i.e., not only by dataIndex, but\n // also detect value changes in selected data) might bring complexity or fragility.\n // (b) Use spectial param like `silent` to suppress event triggering.\n // But such kind of volatile param may be weird in `setOption`.\n if (!payload) {\n return;\n }\n\n var zr = api.getZr();\n\n if (zr[DISPATCH_FLAG]) {\n return;\n }\n\n if (!zr[DISPATCH_METHOD]) {\n zr[DISPATCH_METHOD] = doDispatch;\n }\n\n var fn = throttleUtil.createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);\n fn(api, brushSelected);\n}\n\nfunction doDispatch(api, brushSelected) {\n if (!api.isDisposed()) {\n var zr = api.getZr();\n zr[DISPATCH_FLAG] = true;\n api.dispatchAction({\n type: 'brushSelect',\n batch: brushSelected\n });\n zr[DISPATCH_FLAG] = false;\n }\n}\n\nfunction checkInRange(seriesModel, rangeInfoList, data, dataIndex) {\n for (var i = 0, len = rangeInfoList.length; i < len; i++) {\n var area = rangeInfoList[i];\n\n if (seriesModel.brushSelector(dataIndex, data, area.selectors, area)) {\n return true;\n }\n }\n}\n\nfunction brushModelNotControll(brushModel, seriesIndex) {\n var seriesIndices = brushModel.option.seriesIndex;\n return seriesIndices != null && seriesIndices !== 'all' && (zrUtil.isArray(seriesIndices) ? zrUtil.indexOf(seriesIndices, seriesIndex) < 0 : seriesIndex !== seriesIndices);\n}\n\nvar boundingRectBuilders = {\n rect: function (area) {\n return getBoundingRectFromMinMax(area.range);\n },\n polygon: function (area) {\n var minMax;\n var range = area.range;\n\n for (var i = 0, len = range.length; i < len; i++) {\n minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];\n var rg = range[i];\n rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);\n rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);\n rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);\n rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);\n }\n\n return minMax && getBoundingRectFromMinMax(minMax);\n }\n};\n\nfunction getBoundingRectFromMinMax(minMax) {\n return new BoundingRect(minMax[0][0], minMax[1][0], minMax[0][1] - minMax[0][0], minMax[1][1] - minMax[1][0]);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BrushController from '../helper/BrushController';\nimport { layoutCovers } from './visualEncoding';\nimport ComponentView from '../../view/Component';\n\nvar BrushView =\n/** @class */\nfunction (_super) {\n __extends(BrushView, _super);\n\n function BrushView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BrushView.type;\n return _this;\n }\n\n BrushView.prototype.init = function (ecModel, api) {\n this.ecModel = ecModel;\n this.api = api;\n this.model;\n (this._brushController = new BrushController(api.getZr())).on('brush', zrUtil.bind(this._onBrush, this)).mount();\n };\n\n BrushView.prototype.render = function (brushModel, ecModel, api, payload) {\n this.model = brushModel;\n\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateTransform = function (brushModel, ecModel, api, payload) {\n // PENDING: `updateTransform` is a little tricky, whose layout need\n // to be calculate mandatorily and other stages will not be performed.\n // Take care the correctness of the logic. See #11754 .\n layoutCovers(ecModel);\n\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateVisual = function (brushModel, ecModel, api, payload) {\n this.updateTransform(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateView = function (brushModel, ecModel, api, payload) {\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype._updateController = function (brushModel, ecModel, api, payload) {\n // Do not update controller when drawing.\n (!payload || payload.$from !== brushModel.id) && this._brushController.setPanels(brushModel.brushTargetManager.makePanelOpts(api)).enableBrush(brushModel.brushOption).updateCovers(brushModel.areas.slice());\n }; // updateLayout: updateController,\n // updateVisual: updateController,\n\n\n BrushView.prototype.dispose = function () {\n this._brushController.dispose();\n };\n\n BrushView.prototype._onBrush = function (eventParam) {\n var modelId = this.model.id;\n var areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel); // Action is not dispatched on drag end, because the drag end\n // emits the same params with the last drag move event, and\n // may have some delay when using touch pad, which makes\n // animation not smooth (when using debounce).\n\n (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({\n type: 'brush',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n eventParam.isEnd && this.api.dispatchAction({\n type: 'brushEnd',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n };\n\n BrushView.type = 'brush';\n return BrushView;\n}(ComponentView);\n\nexport default BrushView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport Model from '../../model/Model';\nimport ComponentModel from '../../model/Component';\nvar DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd';\n\nvar BrushModel =\n/** @class */\nfunction (_super) {\n __extends(BrushModel, _super);\n\n function BrushModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BrushModel.type;\n /**\n * @readOnly\n */\n\n _this.areas = [];\n /**\n * Current brush painting area settings.\n * @readOnly\n */\n\n _this.brushOption = {};\n return _this;\n }\n\n BrushModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option;\n !isInit && visualSolution.replaceVisualOption(thisOption, newOption, ['inBrush', 'outOfBrush']);\n var inBrush = thisOption.inBrush = thisOption.inBrush || {}; // Always give default visual, consider setOption at the second time.\n\n thisOption.outOfBrush = thisOption.outOfBrush || {\n color: DEFAULT_OUT_OF_BRUSH_COLOR\n };\n\n if (!inBrush.hasOwnProperty('liftZ')) {\n // Bigger than the highlight z lift, otherwise it will\n // be effected by the highlight z when brush.\n inBrush.liftZ = 5;\n }\n };\n /**\n * If `areas` is null/undefined, range state remain.\n */\n\n\n BrushModel.prototype.setAreas = function (areas) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(zrUtil.isArray(areas));\n zrUtil.each(areas, function (area) {\n zrUtil.assert(area.brushType, 'Illegal areas');\n });\n } // If areas is null/undefined, range state remain.\n // This helps user to dispatchAction({type: 'brush'}) with no areas\n // set but just want to get the current brush select info from a `brush` event.\n\n\n if (!areas) {\n return;\n }\n\n this.areas = zrUtil.map(areas, function (area) {\n return generateBrushOption(this.option, area);\n }, this);\n };\n /**\n * Set the current painting brush option.\n */\n\n\n BrushModel.prototype.setBrushOption = function (brushOption) {\n this.brushOption = generateBrushOption(this.option, brushOption);\n this.brushType = this.brushOption.brushType;\n };\n\n BrushModel.type = 'brush';\n BrushModel.dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'];\n BrushModel.defaultOption = {\n seriesIndex: 'all',\n brushType: 'rect',\n brushMode: 'single',\n transformable: true,\n brushStyle: {\n borderWidth: 1,\n color: 'rgba(210,219,238,0.3)',\n borderColor: '#D2DBEE'\n },\n throttleType: 'fixRate',\n throttleDelay: 0,\n removeOnClick: true,\n z: 10000\n };\n return BrushModel;\n}(ComponentModel);\n\nfunction generateBrushOption(option, brushOption) {\n return zrUtil.merge({\n brushType: option.brushType,\n brushMode: option.brushMode,\n transformable: option.transformable,\n brushStyle: new Model(option.brushStyle).getItemStyle(),\n removeOnClick: option.removeOnClick,\n z: option.z\n }, brushOption, true);\n}\n\nexport default BrushModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nvar ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'];\n\nvar BrushFeature =\n/** @class */\nfunction (_super) {\n __extends(BrushFeature, _super);\n\n function BrushFeature() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n BrushFeature.prototype.render = function (featureModel, ecModel, api) {\n var brushType;\n var brushMode;\n var isBrushed;\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n brushType = brushModel.brushType;\n brushMode = brushModel.brushOption.brushMode || 'single';\n isBrushed = isBrushed || !!brushModel.areas.length;\n });\n this._brushType = brushType;\n this._brushMode = brushMode;\n zrUtil.each(featureModel.get('type', true), function (type) {\n featureModel.setIconStatus(type, (type === 'keep' ? brushMode === 'multiple' : type === 'clear' ? isBrushed : type === brushType) ? 'emphasis' : 'normal');\n });\n };\n\n BrushFeature.prototype.updateView = function (featureModel, ecModel, api) {\n this.render(featureModel, ecModel, api);\n };\n\n BrushFeature.prototype.getIcons = function () {\n var model = this.model;\n var availableIcons = model.get('icon', true);\n var icons = {};\n zrUtil.each(model.get('type', true), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n ;\n\n BrushFeature.prototype.onclick = function (ecModel, api, type) {\n var brushType = this._brushType;\n var brushMode = this._brushMode;\n\n if (type === 'clear') {\n // Trigger parallel action firstly\n api.dispatchAction({\n type: 'axisAreaSelect',\n intervals: []\n });\n api.dispatchAction({\n type: 'brush',\n command: 'clear',\n // Clear all areas of all brush components.\n areas: []\n });\n } else {\n api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'brush',\n brushOption: {\n brushType: type === 'keep' ? brushType : brushType === type ? false : type,\n brushMode: type === 'keep' ? brushMode === 'multiple' ? 'single' : 'multiple' : brushMode\n }\n });\n }\n };\n\n ;\n\n BrushFeature.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n type: ICON_TYPES.slice(),\n icon: {\n /* eslint-disable */\n rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13',\n polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2',\n lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4',\n lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4',\n keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z',\n clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line\n\n /* eslint-enable */\n\n },\n // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`\n title: ecModel.getLocale(['toolbox', 'brush', 'title'])\n };\n return defaultOption;\n };\n\n return BrushFeature;\n}(ToolboxFeature);\n\nexport default BrushFeature;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport brushPreprocessor from './preprocessor';\nimport BrushView from './BrushView';\nimport BrushModel from './BrushModel';\nimport brushVisual from './visualEncoding'; // TODO\n\nimport BrushFeature from '../toolbox/feature/Brush';\nimport { registerFeature } from '../toolbox/featureManager';\nexport function install(registers) {\n registers.registerComponentView(BrushView);\n registers.registerComponentModel(BrushModel);\n registers.registerPreprocessor(brushPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, brushVisual);\n registers.registerAction({\n type: 'brush',\n event: 'brush',\n update: 'updateVisual'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'brush',\n query: payload\n }, function (brushModel) {\n brushModel.setAreas(payload.areas);\n });\n });\n /**\n * payload: {\n * brushComponents: [\n * {\n * brushId,\n * brushIndex,\n * brushName,\n * series: [\n * {\n * seriesId,\n * seriesIndex,\n * seriesName,\n * rawIndices: [21, 34, ...]\n * },\n * ...\n * ]\n * },\n * ...\n * ]\n * }\n */\n\n registers.registerAction({\n type: 'brushSelect',\n event: 'brushSelected',\n update: 'none'\n }, function () {});\n registers.registerAction({\n type: 'brushEnd',\n event: 'brushEnd',\n update: 'none'\n }, function () {});\n registerFeature('brush', BrushFeature);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle } from '../../label/labelStyle';\nimport { getLayoutRect } from '../../util/layout';\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { windowOpen } from '../../util/format';\n\nvar TitleModel =\n/** @class */\nfunction (_super) {\n __extends(TitleModel, _super);\n\n function TitleModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TitleModel.type;\n _this.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n return _this;\n }\n\n TitleModel.type = 'title';\n TitleModel.defaultOption = {\n zlevel: 0,\n z: 6,\n show: true,\n text: '',\n target: 'blank',\n subtext: '',\n subtarget: 'blank',\n left: 0,\n top: 0,\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n textStyle: {\n fontSize: 18,\n fontWeight: 'bold',\n color: '#464646'\n },\n subtextStyle: {\n fontSize: 12,\n color: '#6E7079'\n }\n };\n return TitleModel;\n}(ComponentModel); // View\n\n\nvar TitleView =\n/** @class */\nfunction (_super) {\n __extends(TitleView, _super);\n\n function TitleView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TitleView.type;\n return _this;\n }\n\n TitleView.prototype.render = function (titleModel, ecModel, api) {\n this.group.removeAll();\n\n if (!titleModel.get('show')) {\n return;\n }\n\n var group = this.group;\n var textStyleModel = titleModel.getModel('textStyle');\n var subtextStyleModel = titleModel.getModel('subtextStyle');\n var textAlign = titleModel.get('textAlign');\n var textVerticalAlign = zrUtil.retrieve2(titleModel.get('textBaseline'), titleModel.get('textVerticalAlign'));\n var textEl = new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: titleModel.get('text'),\n fill: textStyleModel.getTextColor()\n }, {\n disableBox: true\n }),\n z2: 10\n });\n var textRect = textEl.getBoundingRect();\n var subText = titleModel.get('subtext');\n var subTextEl = new graphic.Text({\n style: createTextStyle(subtextStyleModel, {\n text: subText,\n fill: subtextStyleModel.getTextColor(),\n y: textRect.height + titleModel.get('itemGap'),\n verticalAlign: 'top'\n }, {\n disableBox: true\n }),\n z2: 10\n });\n var link = titleModel.get('link');\n var sublink = titleModel.get('sublink');\n var triggerEvent = titleModel.get('triggerEvent', true);\n textEl.silent = !link && !triggerEvent;\n subTextEl.silent = !sublink && !triggerEvent;\n\n if (link) {\n textEl.on('click', function () {\n windowOpen(link, '_' + titleModel.get('target'));\n });\n }\n\n if (sublink) {\n subTextEl.on('click', function () {\n windowOpen(sublink, '_' + titleModel.get('subtarget'));\n });\n }\n\n getECData(textEl).eventData = getECData(subTextEl).eventData = triggerEvent ? {\n componentType: 'title',\n componentIndex: titleModel.componentIndex\n } : null;\n group.add(textEl);\n subText && group.add(subTextEl); // If no subText, but add subTextEl, there will be an empty line.\n\n var groupRect = group.getBoundingRect();\n var layoutOption = titleModel.getBoxLayoutParams();\n layoutOption.width = groupRect.width;\n layoutOption.height = groupRect.height;\n var layoutRect = getLayoutRect(layoutOption, {\n width: api.getWidth(),\n height: api.getHeight()\n }, titleModel.get('padding')); // Adjust text align based on position\n\n if (!textAlign) {\n // Align left if title is on the left. center and right is same\n textAlign = titleModel.get('left') || titleModel.get('right'); // @ts-ignore\n\n if (textAlign === 'middle') {\n textAlign = 'center';\n } // Adjust layout by text align\n\n\n if (textAlign === 'right') {\n layoutRect.x += layoutRect.width;\n } else if (textAlign === 'center') {\n layoutRect.x += layoutRect.width / 2;\n }\n }\n\n if (!textVerticalAlign) {\n textVerticalAlign = titleModel.get('top') || titleModel.get('bottom'); // @ts-ignore\n\n if (textVerticalAlign === 'center') {\n textVerticalAlign = 'middle';\n }\n\n if (textVerticalAlign === 'bottom') {\n layoutRect.y += layoutRect.height;\n } else if (textVerticalAlign === 'middle') {\n layoutRect.y += layoutRect.height / 2;\n }\n\n textVerticalAlign = textVerticalAlign || 'top';\n }\n\n group.x = layoutRect.x;\n group.y = layoutRect.y;\n group.markRedraw();\n var alignStyle = {\n align: textAlign,\n verticalAlign: textVerticalAlign\n };\n textEl.setStyle(alignStyle);\n subTextEl.setStyle(alignStyle); // Render background\n // Get groupRect again because textAlign has been changed\n\n groupRect = group.getBoundingRect();\n var padding = layoutRect.margin;\n var style = titleModel.getItemStyle(['color', 'opacity']);\n style.fill = titleModel.get('backgroundColor');\n var rect = new graphic.Rect({\n shape: {\n x: groupRect.x - padding[3],\n y: groupRect.y - padding[0],\n width: groupRect.width + padding[1] + padding[3],\n height: groupRect.height + padding[0] + padding[2],\n r: titleModel.get('borderRadius')\n },\n style: style,\n subPixelOptimize: true,\n silent: true\n });\n group.add(rect);\n };\n\n TitleView.type = 'title';\n return TitleView;\n}(ComponentView);\n\nexport function install(registers) {\n registers.registerComponentModel(TitleModel);\n registers.registerComponentView(TitleView);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\nimport List from '../../data/List';\nimport { each, isObject, clone } from 'zrender/lib/core/util';\nimport { convertOptionIdName, getDataItemValue } from '../../util/model';\n\nvar TimelineModel =\n/** @class */\nfunction (_super) {\n __extends(TimelineModel, _super);\n\n function TimelineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TimelineModel.type;\n _this.layoutMode = 'box';\n return _this;\n }\n /**\n * @override\n */\n\n\n TimelineModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._initData();\n };\n /**\n * @override\n */\n\n\n TimelineModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n this._initData();\n };\n\n TimelineModel.prototype.setCurrentIndex = function (currentIndex) {\n if (currentIndex == null) {\n currentIndex = this.option.currentIndex;\n }\n\n var count = this._data.count();\n\n if (this.option.loop) {\n currentIndex = (currentIndex % count + count) % count;\n } else {\n currentIndex >= count && (currentIndex = count - 1);\n currentIndex < 0 && (currentIndex = 0);\n }\n\n this.option.currentIndex = currentIndex;\n };\n /**\n * @return {number} currentIndex\n */\n\n\n TimelineModel.prototype.getCurrentIndex = function () {\n return this.option.currentIndex;\n };\n /**\n * @return {boolean}\n */\n\n\n TimelineModel.prototype.isIndexMax = function () {\n return this.getCurrentIndex() >= this._data.count() - 1;\n };\n /**\n * @param {boolean} state true: play, false: stop\n */\n\n\n TimelineModel.prototype.setPlayState = function (state) {\n this.option.autoPlay = !!state;\n };\n /**\n * @return {boolean} true: play, false: stop\n */\n\n\n TimelineModel.prototype.getPlayState = function () {\n return !!this.option.autoPlay;\n };\n /**\n * @private\n */\n\n\n TimelineModel.prototype._initData = function () {\n var thisOption = this.option;\n var dataArr = thisOption.data || [];\n var axisType = thisOption.axisType;\n var names = this._names = [];\n var processedDataArr;\n\n if (axisType === 'category') {\n processedDataArr = [];\n each(dataArr, function (item, index) {\n var value = convertOptionIdName(getDataItemValue(item), '');\n var newItem;\n\n if (isObject(item)) {\n newItem = clone(item);\n newItem.value = index;\n } else {\n newItem = index;\n }\n\n processedDataArr.push(newItem);\n names.push(value);\n });\n } else {\n processedDataArr = dataArr;\n }\n\n var dimType = {\n category: 'ordinal',\n time: 'time',\n value: 'number'\n }[axisType] || 'number';\n var data = this._data = new List([{\n name: 'value',\n type: dimType\n }], this);\n data.initData(processedDataArr, names);\n };\n\n TimelineModel.prototype.getData = function () {\n return this._data;\n };\n /**\n * @public\n * @return {Array.} categoreis\n */\n\n\n TimelineModel.prototype.getCategories = function () {\n if (this.get('axisType') === 'category') {\n return this._names.slice();\n }\n };\n\n TimelineModel.type = 'timeline';\n /**\n * @protected\n */\n\n TimelineModel.defaultOption = {\n zlevel: 0,\n z: 4,\n show: true,\n axisType: 'time',\n realtime: true,\n left: '20%',\n top: null,\n right: '20%',\n bottom: 0,\n width: null,\n height: 40,\n padding: 5,\n controlPosition: 'left',\n autoPlay: false,\n rewind: false,\n loop: true,\n playInterval: 2000,\n currentIndex: 0,\n itemStyle: {},\n label: {\n color: '#000'\n },\n data: []\n };\n return TimelineModel;\n}(ComponentModel);\n\nexport default TimelineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport TimelineModel from './TimelineModel';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport { mixin } from 'zrender/lib/core/util';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar SliderTimelineModel =\n/** @class */\nfunction (_super) {\n __extends(SliderTimelineModel, _super);\n\n function SliderTimelineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderTimelineModel.type;\n return _this;\n }\n\n SliderTimelineModel.type = 'timeline.slider';\n /**\n * @protected\n */\n\n SliderTimelineModel.defaultOption = inheritDefaultOption(TimelineModel.defaultOption, {\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderWidth: 0,\n orient: 'horizontal',\n inverse: false,\n tooltip: {\n trigger: 'item' // data item may also have tootip attr.\n\n },\n symbol: 'circle',\n symbolSize: 12,\n lineStyle: {\n show: true,\n width: 2,\n color: '#DAE1F5'\n },\n label: {\n position: 'auto',\n // When using number, label position is not\n // restricted by viewRect.\n // positive: right/bottom, negative: left/top\n show: true,\n interval: 'auto',\n rotate: 0,\n // formatter: null,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#A4B1D7'\n },\n itemStyle: {\n color: '#A4B1D7',\n borderWidth: 1\n },\n checkpointStyle: {\n symbol: 'circle',\n symbolSize: 15,\n color: '#316bf3',\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n // borderColor: 'rgba(194,53,49, 0.5)',\n animation: true,\n animationDuration: 300,\n animationEasing: 'quinticInOut'\n },\n controlStyle: {\n show: true,\n showPlayBtn: true,\n showPrevBtn: true,\n showNextBtn: true,\n itemSize: 24,\n itemGap: 12,\n position: 'left',\n playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z',\n stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z',\n // eslint-disable-next-line max-len\n nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z',\n // eslint-disable-next-line max-len\n prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z',\n prevBtnSize: 18,\n nextBtnSize: 18,\n color: '#A4B1D7',\n borderColor: '#A4B1D7',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#6f778d'\n },\n itemStyle: {\n color: '#316BF3'\n },\n controlStyle: {\n color: '#316BF3',\n borderColor: '#316BF3',\n borderWidth: 2\n }\n },\n progress: {\n lineStyle: {\n color: '#316BF3'\n },\n itemStyle: {\n color: '#316BF3'\n },\n label: {\n color: '#6f778d'\n }\n },\n data: []\n });\n return SliderTimelineModel;\n}(TimelineModel);\n\nmixin(SliderTimelineModel, DataFormatMixin.prototype);\nexport default SliderTimelineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\n\nvar TimelineView =\n/** @class */\nfunction (_super) {\n __extends(TimelineView, _super);\n\n function TimelineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TimelineView.type;\n return _this;\n }\n\n TimelineView.type = 'timeline';\n return TimelineView;\n}(ComponentView);\n\nexport default TimelineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../../coord/Axis';\n/**\n * Extend axis 2d\n */\n\nvar TimelineAxis =\n/** @class */\nfunction (_super) {\n __extends(TimelineAxis, _super);\n\n function TimelineAxis(dim, scale, coordExtent, axisType) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n return _this;\n }\n /**\n * @override\n */\n\n\n TimelineAxis.prototype.getLabelModel = function () {\n // Force override\n return this.model.getModel('label');\n };\n /**\n * @override\n */\n\n\n TimelineAxis.prototype.isHorizontal = function () {\n return this.model.get('orient') === 'horizontal';\n };\n\n return TimelineAxis;\n}(Axis);\n\nexport default TimelineAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as layout from '../../util/layout';\nimport TimelineView from './TimelineView';\nimport TimelineAxis from './TimelineAxis';\nimport { createSymbol } from '../../util/symbol';\nimport * as numberUtil from '../../util/number';\nimport { merge, each, extend, isString, bind, defaults, retrieve2 } from 'zrender/lib/core/util';\nimport OrdinalScale from '../../scale/Ordinal';\nimport TimeScale from '../../scale/Time';\nimport IntervalScale from '../../scale/Interval';\nimport { parsePercent } from 'zrender/lib/contain/text';\nimport { makeInner } from '../../util/model';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\nvar PI = Math.PI;\nvar labelDataIndexStore = makeInner();\n\nvar SliderTimelineView =\n/** @class */\nfunction (_super) {\n __extends(SliderTimelineView, _super);\n\n function SliderTimelineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderTimelineView.type;\n return _this;\n }\n\n SliderTimelineView.prototype.init = function (ecModel, api) {\n this.api = api;\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.render = function (timelineModel, ecModel, api) {\n this.model = timelineModel;\n this.api = api;\n this.ecModel = ecModel;\n this.group.removeAll();\n\n if (timelineModel.get('show', true)) {\n var layoutInfo_1 = this._layout(timelineModel, api);\n\n var mainGroup_1 = this._createGroup('_mainGroup');\n\n var labelGroup = this._createGroup('_labelGroup');\n\n var axis_1 = this._axis = this._createAxis(layoutInfo_1, timelineModel);\n\n timelineModel.formatTooltip = function (dataIndex) {\n var name = axis_1.scale.getLabel({\n value: dataIndex\n });\n return createTooltipMarkup('nameValue', {\n noName: true,\n value: name\n });\n };\n\n each(['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'], function (name) {\n this['_render' + name](layoutInfo_1, mainGroup_1, axis_1, timelineModel);\n }, this);\n\n this._renderAxisLabel(layoutInfo_1, labelGroup, axis_1, timelineModel);\n\n this._position(layoutInfo_1, timelineModel);\n }\n\n this._doPlayStop();\n\n this._updateTicksStatus();\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.remove = function () {\n this._clearTimer();\n\n this.group.removeAll();\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.dispose = function () {\n this._clearTimer();\n };\n\n SliderTimelineView.prototype._layout = function (timelineModel, api) {\n var labelPosOpt = timelineModel.get(['label', 'position']);\n var orient = timelineModel.get('orient');\n var viewRect = getViewRect(timelineModel, api);\n var parsedLabelPos; // Auto label offset.\n\n if (labelPosOpt == null || labelPosOpt === 'auto') {\n parsedLabelPos = orient === 'horizontal' ? viewRect.y + viewRect.height / 2 < api.getHeight() / 2 ? '-' : '+' : viewRect.x + viewRect.width / 2 < api.getWidth() / 2 ? '+' : '-';\n } else if (isString(labelPosOpt)) {\n parsedLabelPos = {\n horizontal: {\n top: '-',\n bottom: '+'\n },\n vertical: {\n left: '-',\n right: '+'\n }\n }[orient][labelPosOpt];\n } else {\n // is number\n parsedLabelPos = labelPosOpt;\n }\n\n var labelAlignMap = {\n horizontal: 'center',\n vertical: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'left' : 'right'\n };\n var labelBaselineMap = {\n horizontal: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'top' : 'bottom',\n vertical: 'middle'\n };\n var rotationMap = {\n horizontal: 0,\n vertical: PI / 2\n }; // Position\n\n var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;\n var controlModel = timelineModel.getModel('controlStyle');\n var showControl = controlModel.get('show', true);\n var controlSize = showControl ? controlModel.get('itemSize') : 0;\n var controlGap = showControl ? controlModel.get('itemGap') : 0;\n var sizePlusGap = controlSize + controlGap; // Special label rotate.\n\n var labelRotation = timelineModel.get(['label', 'rotate']) || 0;\n labelRotation = labelRotation * PI / 180; // To radian.\n\n var playPosition;\n var prevBtnPosition;\n var nextBtnPosition;\n var controlPosition = controlModel.get('position', true);\n var showPlayBtn = showControl && controlModel.get('showPlayBtn', true);\n var showPrevBtn = showControl && controlModel.get('showPrevBtn', true);\n var showNextBtn = showControl && controlModel.get('showNextBtn', true);\n var xLeft = 0;\n var xRight = mainLength; // position[0] means left, position[1] means middle.\n\n if (controlPosition === 'left' || controlPosition === 'bottom') {\n showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);\n showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n } else {\n // 'top' 'right'\n showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n\n var axisExtent = [xLeft, xRight];\n\n if (timelineModel.get('inverse')) {\n axisExtent.reverse();\n }\n\n return {\n viewRect: viewRect,\n mainLength: mainLength,\n orient: orient,\n rotation: rotationMap[orient],\n labelRotation: labelRotation,\n labelPosOpt: parsedLabelPos,\n labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient],\n labelBaseline: timelineModel.get(['label', 'verticalAlign']) || timelineModel.get(['label', 'baseline']) || labelBaselineMap[orient],\n // Based on mainGroup.\n playPosition: playPosition,\n prevBtnPosition: prevBtnPosition,\n nextBtnPosition: nextBtnPosition,\n axisExtent: axisExtent,\n controlSize: controlSize,\n controlGap: controlGap\n };\n };\n\n SliderTimelineView.prototype._position = function (layoutInfo, timelineModel) {\n // Position is be called finally, because bounding rect is needed for\n // adapt content to fill viewRect (auto adapt offset).\n // Timeline may be not all in the viewRect when 'offset' is specified\n // as a number, because it is more appropriate that label aligns at\n // 'offset' but not the other edge defined by viewRect.\n var mainGroup = this._mainGroup;\n var labelGroup = this._labelGroup;\n var viewRect = layoutInfo.viewRect;\n\n if (layoutInfo.orient === 'vertical') {\n // transform to horizontal, inverse rotate by left-top point.\n var m = matrix.create();\n var rotateOriginX = viewRect.x;\n var rotateOriginY = viewRect.y + viewRect.height;\n matrix.translate(m, m, [-rotateOriginX, -rotateOriginY]);\n matrix.rotate(m, m, -PI / 2);\n matrix.translate(m, m, [rotateOriginX, rotateOriginY]);\n viewRect = viewRect.clone();\n viewRect.applyTransform(m);\n }\n\n var viewBound = getBound(viewRect);\n var mainBound = getBound(mainGroup.getBoundingRect());\n var labelBound = getBound(labelGroup.getBoundingRect());\n var mainPosition = [mainGroup.x, mainGroup.y];\n var labelsPosition = [labelGroup.x, labelGroup.y];\n labelsPosition[0] = mainPosition[0] = viewBound[0][0];\n var labelPosOpt = layoutInfo.labelPosOpt;\n\n if (labelPosOpt == null || isString(labelPosOpt)) {\n // '+' or '-'\n var mainBoundIdx = labelPosOpt === '+' ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);\n } else {\n var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n labelsPosition[1] = mainPosition[1] + labelPosOpt;\n }\n\n mainGroup.setPosition(mainPosition);\n labelGroup.setPosition(labelsPosition);\n mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;\n setOrigin(mainGroup);\n setOrigin(labelGroup);\n\n function setOrigin(targetGroup) {\n targetGroup.originX = viewBound[0][0] - targetGroup.x;\n targetGroup.originY = viewBound[1][0] - targetGroup.y;\n }\n\n function getBound(rect) {\n // [[xmin, xmax], [ymin, ymax]]\n return [[rect.x, rect.x + rect.width], [rect.y, rect.y + rect.height]];\n }\n\n function toBound(fromPos, from, to, dimIdx, boundIdx) {\n fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];\n }\n };\n\n SliderTimelineView.prototype._createAxis = function (layoutInfo, timelineModel) {\n var data = timelineModel.getData();\n var axisType = timelineModel.get('axisType');\n var scale = createScaleByModel(timelineModel, axisType); // Customize scale. The `tickValue` is `dataIndex`.\n\n scale.getTicks = function () {\n return data.mapArray(['value'], function (value) {\n return {\n value: value\n };\n });\n };\n\n var dataExtent = data.getDataExtent('value');\n scale.setExtent(dataExtent[0], dataExtent[1]);\n scale.niceTicks();\n var axis = new TimelineAxis('value', scale, layoutInfo.axisExtent, axisType);\n axis.model = timelineModel;\n return axis;\n };\n\n SliderTimelineView.prototype._createGroup = function (key) {\n var newGroup = this[key] = new graphic.Group();\n this.group.add(newGroup);\n return newGroup;\n };\n\n SliderTimelineView.prototype._renderAxisLine = function (layoutInfo, group, axis, timelineModel) {\n var axisExtent = axis.getExtent();\n\n if (!timelineModel.get(['lineStyle', 'show'])) {\n return;\n }\n\n var line = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n y1: 0,\n x2: axisExtent[1],\n y2: 0\n },\n style: extend({\n lineCap: 'round'\n }, timelineModel.getModel('lineStyle').getLineStyle()),\n silent: true,\n z2: 1\n });\n group.add(line);\n var progressLine = this._progressLine = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n x2: this._currentPointer ? this._currentPointer.x : axisExtent[0],\n y1: 0,\n y2: 0\n },\n style: defaults({\n lineCap: 'round',\n lineWidth: line.style.lineWidth\n }, timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()),\n silent: true,\n z2: 1\n });\n group.add(progressLine);\n };\n\n SliderTimelineView.prototype._renderAxisTick = function (layoutInfo, group, axis, timelineModel) {\n var _this = this;\n\n var data = timelineModel.getData(); // Show all ticks, despite ignoring strategy.\n\n var ticks = axis.scale.getTicks();\n this._tickSymbols = []; // The value is dataIndex, see the costomized scale.\n\n each(ticks, function (tick) {\n var tickCoord = axis.dataToCoord(tick.value);\n var itemModel = data.getItemModel(tick.value);\n var itemStyleModel = itemModel.getModel('itemStyle');\n var hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']);\n var progressStyleModel = itemModel.getModel(['progress', 'itemStyle']);\n var symbolOpt = {\n x: tickCoord,\n y: 0,\n onclick: bind(_this._changeTimeline, _this, tick.value)\n };\n var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);\n el.ensureState('emphasis').style = hoverStyleModel.getItemStyle();\n el.ensureState('progress').style = progressStyleModel.getItemStyle();\n enableHoverEmphasis(el);\n var ecData = getECData(el);\n\n if (itemModel.get('tooltip')) {\n ecData.dataIndex = tick.value;\n ecData.dataModel = timelineModel;\n } else {\n ecData.dataIndex = ecData.dataModel = null;\n }\n\n _this._tickSymbols.push(el);\n });\n };\n\n SliderTimelineView.prototype._renderAxisLabel = function (layoutInfo, group, axis, timelineModel) {\n var _this = this;\n\n var labelModel = axis.getLabelModel();\n\n if (!labelModel.get('show')) {\n return;\n }\n\n var data = timelineModel.getData();\n var labels = axis.getViewLabels();\n this._tickLabels = [];\n each(labels, function (labelItem) {\n // The tickValue is dataIndex, see the costomized scale.\n var dataIndex = labelItem.tickValue;\n var itemModel = data.getItemModel(dataIndex);\n var normalLabelModel = itemModel.getModel('label');\n var hoverLabelModel = itemModel.getModel(['emphasis', 'label']);\n var progressLabelModel = itemModel.getModel(['progress', 'label']);\n var tickCoord = axis.dataToCoord(labelItem.tickValue);\n var textEl = new graphic.Text({\n x: tickCoord,\n y: 0,\n rotation: layoutInfo.labelRotation - layoutInfo.rotation,\n onclick: bind(_this._changeTimeline, _this, dataIndex),\n silent: false,\n style: createTextStyle(normalLabelModel, {\n text: labelItem.formattedLabel,\n align: layoutInfo.labelAlign,\n verticalAlign: layoutInfo.labelBaseline\n })\n });\n textEl.ensureState('emphasis').style = createTextStyle(hoverLabelModel);\n textEl.ensureState('progress').style = createTextStyle(progressLabelModel);\n group.add(textEl);\n enableHoverEmphasis(textEl);\n labelDataIndexStore(textEl).dataIndex = dataIndex;\n\n _this._tickLabels.push(textEl);\n });\n };\n\n SliderTimelineView.prototype._renderControl = function (layoutInfo, group, axis, timelineModel) {\n var controlSize = layoutInfo.controlSize;\n var rotation = layoutInfo.rotation;\n var itemStyle = timelineModel.getModel('controlStyle').getItemStyle();\n var hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle();\n var playState = timelineModel.getPlayState();\n var inverse = timelineModel.get('inverse', true);\n makeBtn(layoutInfo.nextBtnPosition, 'next', bind(this._changeTimeline, this, inverse ? '-' : '+'));\n makeBtn(layoutInfo.prevBtnPosition, 'prev', bind(this._changeTimeline, this, inverse ? '+' : '-'));\n makeBtn(layoutInfo.playPosition, playState ? 'stop' : 'play', bind(this._handlePlayClick, this, !playState), true);\n\n function makeBtn(position, iconName, onclick, willRotate) {\n if (!position) {\n return;\n }\n\n var iconSize = parsePercent(retrieve2(timelineModel.get(['controlStyle', iconName + 'BtnSize']), controlSize), controlSize);\n var rect = [0, -iconSize / 2, iconSize, iconSize];\n var btn = makeControlIcon(timelineModel, iconName + 'Icon', rect, {\n x: position[0],\n y: position[1],\n originX: controlSize / 2,\n originY: 0,\n rotation: willRotate ? -rotation : 0,\n rectHover: true,\n style: itemStyle,\n onclick: onclick\n });\n btn.ensureState('emphasis').style = hoverStyle;\n group.add(btn);\n enableHoverEmphasis(btn);\n }\n };\n\n SliderTimelineView.prototype._renderCurrentPointer = function (layoutInfo, group, axis, timelineModel) {\n var data = timelineModel.getData();\n var currentIndex = timelineModel.getCurrentIndex();\n var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle');\n var me = this;\n var callback = {\n onCreate: function (pointer) {\n pointer.draggable = true;\n pointer.drift = bind(me._handlePointerDrag, me);\n pointer.ondragend = bind(me._handlePointerDragend, me);\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true);\n },\n onUpdate: function (pointer) {\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel);\n }\n }; // Reuse when exists, for animation and drag.\n\n this._currentPointer = giveSymbol(pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback);\n };\n\n SliderTimelineView.prototype._handlePlayClick = function (nextState) {\n this._clearTimer();\n\n this.api.dispatchAction({\n type: 'timelinePlayChange',\n playState: nextState,\n from: this.uid\n });\n };\n\n SliderTimelineView.prototype._handlePointerDrag = function (dx, dy, e) {\n this._clearTimer();\n\n this._pointerChangeTimeline([e.offsetX, e.offsetY]);\n };\n\n SliderTimelineView.prototype._handlePointerDragend = function (e) {\n this._pointerChangeTimeline([e.offsetX, e.offsetY], true);\n };\n\n SliderTimelineView.prototype._pointerChangeTimeline = function (mousePos, trigger) {\n var toCoord = this._toAxisCoord(mousePos)[0];\n\n var axis = this._axis;\n var axisExtent = numberUtil.asc(axis.getExtent().slice());\n toCoord > axisExtent[1] && (toCoord = axisExtent[1]);\n toCoord < axisExtent[0] && (toCoord = axisExtent[0]);\n this._currentPointer.x = toCoord;\n\n this._currentPointer.markRedraw();\n\n this._progressLine.shape.x2 = toCoord;\n\n this._progressLine.dirty();\n\n var targetDataIndex = this._findNearestTick(toCoord);\n\n var timelineModel = this.model;\n\n if (trigger || targetDataIndex !== timelineModel.getCurrentIndex() && timelineModel.get('realtime')) {\n this._changeTimeline(targetDataIndex);\n }\n };\n\n SliderTimelineView.prototype._doPlayStop = function () {\n var _this = this;\n\n this._clearTimer();\n\n if (this.model.getPlayState()) {\n this._timer = setTimeout(function () {\n // Do not cache\n var timelineModel = _this.model;\n\n _this._changeTimeline(timelineModel.getCurrentIndex() + (timelineModel.get('rewind', true) ? -1 : 1));\n }, this.model.get('playInterval'));\n }\n };\n\n SliderTimelineView.prototype._toAxisCoord = function (vertex) {\n var trans = this._mainGroup.getLocalTransform();\n\n return graphic.applyTransform(vertex, trans, true);\n };\n\n SliderTimelineView.prototype._findNearestTick = function (axisCoord) {\n var data = this.model.getData();\n var dist = Infinity;\n var targetDataIndex;\n var axis = this._axis;\n data.each(['value'], function (value, dataIndex) {\n var coord = axis.dataToCoord(value);\n var d = Math.abs(coord - axisCoord);\n\n if (d < dist) {\n dist = d;\n targetDataIndex = dataIndex;\n }\n });\n return targetDataIndex;\n };\n\n SliderTimelineView.prototype._clearTimer = function () {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n };\n\n SliderTimelineView.prototype._changeTimeline = function (nextIndex) {\n var currentIndex = this.model.getCurrentIndex();\n\n if (nextIndex === '+') {\n nextIndex = currentIndex + 1;\n } else if (nextIndex === '-') {\n nextIndex = currentIndex - 1;\n }\n\n this.api.dispatchAction({\n type: 'timelineChange',\n currentIndex: nextIndex,\n from: this.uid\n });\n };\n\n SliderTimelineView.prototype._updateTicksStatus = function () {\n var currentIndex = this.model.getCurrentIndex();\n var tickSymbols = this._tickSymbols;\n var tickLabels = this._tickLabels;\n\n if (tickSymbols) {\n for (var i = 0; i < tickSymbols.length; i++) {\n tickSymbols && tickSymbols[i] && tickSymbols[i].toggleState('progress', i < currentIndex);\n }\n }\n\n if (tickLabels) {\n for (var i = 0; i < tickLabels.length; i++) {\n tickLabels && tickLabels[i] && tickLabels[i].toggleState('progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex);\n }\n }\n };\n\n SliderTimelineView.type = 'timeline.slider';\n return SliderTimelineView;\n}(TimelineView);\n\nfunction createScaleByModel(model, axisType) {\n axisType = axisType || model.get('type');\n\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n\n default:\n // default to be value\n return new IntervalScale();\n }\n }\n}\n\nfunction getViewRect(model, api) {\n return layout.getLayoutRect(model.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }, model.get('padding'));\n}\n\nfunction makeControlIcon(timelineModel, objPath, rect, opts) {\n var style = opts.style;\n var icon = graphic.createIcon(timelineModel.get(['controlStyle', objPath]), opts || {}, new BoundingRect(rect[0], rect[1], rect[2], rect[3])); // TODO createIcon won't use style in opt.\n\n if (style) {\n icon.setStyle(style);\n }\n\n return icon;\n}\n/**\n * Create symbol or update symbol\n * opt: basic position and event handlers\n */\n\n\nfunction giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n opt.scaleX = symbolSize[0] / 2;\n opt.scaleY = symbolSize[1] / 2;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n opt.x = opt.x || 0;\n opt.y = opt.y || 0;\n opt.x += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n opt.y += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}\n\nfunction pointerMoveTo(pointer, progressLine, dataIndex, axis, timelineModel, noAnimation) {\n if (pointer.dragging) {\n return;\n }\n\n var pointerModel = timelineModel.getModel('checkpointStyle');\n var toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex));\n\n if (noAnimation || !pointerModel.get('animation', true)) {\n pointer.attr({\n x: toCoord,\n y: 0\n });\n progressLine && progressLine.attr({\n shape: {\n x2: toCoord\n }\n });\n } else {\n var animationCfg = {\n duration: pointerModel.get('animationDuration', true),\n easing: pointerModel.get('animationEasing', true)\n };\n pointer.stopAnimation(null, true);\n pointer.animateTo({\n x: toCoord,\n y: 0\n }, animationCfg);\n progressLine && progressLine.animateTo({\n shape: {\n x2: toCoord\n }\n }, animationCfg);\n }\n}\n\nexport default SliderTimelineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { defaults } from 'zrender/lib/core/util';\nexport function installTimelineAction(registers) {\n registers.registerAction({\n type: 'timelineChange',\n event: 'timelineChanged',\n update: 'prepareAndUpdate'\n }, function (payload, ecModel) {\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel && payload.currentIndex != null) {\n timelineModel.setCurrentIndex(payload.currentIndex);\n\n if (!timelineModel.get('loop', true) && timelineModel.isIndexMax()) {\n timelineModel.setPlayState(false);\n }\n } // Set normalized currentIndex to payload.\n\n\n ecModel.resetOption('timeline', {\n replaceMerge: timelineModel.get('replaceMerge', true)\n });\n return defaults({\n currentIndex: timelineModel.option.currentIndex\n }, payload);\n });\n registers.registerAction({\n type: 'timelinePlayChange',\n event: 'timelinePlayChanged',\n update: 'update'\n }, function (payload, ecModel) {\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel && payload.playState != null) {\n timelineModel.setPlayState(payload.playState);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function timelinePreprocessor(option) {\n var timelineOpt = option && option.timeline;\n\n if (!zrUtil.isArray(timelineOpt)) {\n timelineOpt = timelineOpt ? [timelineOpt] : [];\n }\n\n zrUtil.each(timelineOpt, function (opt) {\n if (!opt) {\n return;\n }\n\n compatibleEC2(opt);\n });\n}\n\nfunction compatibleEC2(opt) {\n var type = opt.type;\n var ec2Types = {\n 'number': 'value',\n 'time': 'time'\n }; // Compatible with ec2\n\n if (ec2Types[type]) {\n opt.axisType = ec2Types[type];\n delete opt.type;\n }\n\n transferItem(opt);\n\n if (has(opt, 'controlPosition')) {\n var controlStyle = opt.controlStyle || (opt.controlStyle = {});\n\n if (!has(controlStyle, 'position')) {\n controlStyle.position = opt.controlPosition;\n }\n\n if (controlStyle.position === 'none' && !has(controlStyle, 'show')) {\n controlStyle.show = false;\n delete controlStyle.position;\n }\n\n delete opt.controlPosition;\n }\n\n zrUtil.each(opt.data || [], function (dataItem) {\n if (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem)) {\n if (!has(dataItem, 'value') && has(dataItem, 'name')) {\n // In ec2, using name as value.\n dataItem.value = dataItem.name;\n }\n\n transferItem(dataItem);\n }\n });\n}\n\nfunction transferItem(opt) {\n var itemStyle = opt.itemStyle || (opt.itemStyle = {});\n var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {}); // Transfer label out\n\n var label = opt.label || opt.label || {};\n var labelNormal = label.normal || (label.normal = {});\n var excludeLabelAttr = {\n normal: 1,\n emphasis: 1\n };\n zrUtil.each(label, function (value, name) {\n if (!excludeLabelAttr[name] && !has(labelNormal, name)) {\n labelNormal[name] = value;\n }\n });\n\n if (itemStyleEmphasis.label && !has(label, 'emphasis')) {\n label.emphasis = itemStyleEmphasis.label;\n delete itemStyleEmphasis.label;\n }\n}\n\nfunction has(obj, attr) {\n return obj.hasOwnProperty(attr);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport SliderTimelineModel from './SliderTimelineModel';\nimport SliderTimelineView from './SliderTimelineView';\nimport { installTimelineAction } from './timelineAction';\nimport preprocessor from './preprocessor';\nexport function install(registers) {\n registers.registerComponentModel(SliderTimelineModel);\n registers.registerComponentView(SliderTimelineView);\n registers.registerSubTypeDefaulter('timeline', function () {\n // Only slider now.\n return 'slider';\n });\n installTimelineAction(registers);\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\nexport default function checkMarkerInSeries(seriesOpts, markerType) {\n if (!seriesOpts) {\n return false;\n }\n\n var seriesOptArr = isArray(seriesOpts) ? seriesOpts : [seriesOpts];\n\n for (var idx = 0; idx < seriesOptArr.length; idx++) {\n if (seriesOptArr[idx] && seriesOptArr[idx][markerType]) {\n return true;\n }\n }\n\n return false;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport ComponentModel from '../../model/Component';\nimport { makeInner, defaultEmphasis } from '../../util/model';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\n\nfunction fillLabel(opt) {\n defaultEmphasis(opt, 'label', ['show']);\n} // { [componentType]: MarkerModel }\n\n\nvar inner = makeInner();\n\nvar MarkerModel =\n/** @class */\nfunction (_super) {\n __extends(MarkerModel, _super);\n\n function MarkerModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkerModel.type;\n /**\n * If marker model is created by self from series\n */\n\n _this.createdBySelf = false;\n return _this;\n }\n /**\n * @overrite\n */\n\n\n MarkerModel.prototype.init = function (option, parentModel, ecModel) {\n if (process.env.NODE_ENV !== 'production') {\n if (this.type === 'marker') {\n throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.');\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._mergeOption(option, ecModel, false, true);\n };\n\n MarkerModel.prototype.isAnimationEnabled = function () {\n if (env.node) {\n return false;\n }\n\n var hostSeries = this.__hostSeries;\n return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();\n };\n /**\n * @overrite\n */\n\n\n MarkerModel.prototype.mergeOption = function (newOpt, ecModel) {\n this._mergeOption(newOpt, ecModel, false, false);\n };\n\n MarkerModel.prototype._mergeOption = function (newOpt, ecModel, createdBySelf, isInit) {\n var componentType = this.mainType;\n\n if (!createdBySelf) {\n ecModel.eachSeries(function (seriesModel) {\n // mainType can be markPoint, markLine, markArea\n var markerOpt = seriesModel.get(this.mainType, true);\n var markerModel = inner(seriesModel)[componentType];\n\n if (!markerOpt || !markerOpt.data) {\n inner(seriesModel)[componentType] = null;\n return;\n }\n\n if (!markerModel) {\n if (isInit) {\n // Default label emphasis `position` and `show`\n fillLabel(markerOpt);\n }\n\n zrUtil.each(markerOpt.data, function (item) {\n // FIXME Overwrite fillLabel method ?\n if (item instanceof Array) {\n fillLabel(item[0]);\n fillLabel(item[1]);\n } else {\n fillLabel(item);\n }\n });\n markerModel = this.createMarkerModelFromSeries(markerOpt, this, ecModel); // markerModel = new ImplementedMarkerModel(\n // markerOpt, this, ecModel\n // );\n\n zrUtil.extend(markerModel, {\n mainType: this.mainType,\n // Use the same series index and name\n seriesIndex: seriesModel.seriesIndex,\n name: seriesModel.name,\n createdBySelf: true\n });\n markerModel.__hostSeries = seriesModel;\n } else {\n markerModel._mergeOption(markerOpt, ecModel, true);\n }\n\n inner(seriesModel)[componentType] = markerModel;\n }, this);\n }\n };\n\n MarkerModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var itemName = data.getName(dataIndex);\n return createTooltipMarkup('section', {\n header: this.name,\n blocks: [createTooltipMarkup('nameValue', {\n name: itemName,\n value: value,\n noName: !itemName,\n noValue: value == null\n })]\n });\n };\n\n MarkerModel.prototype.getData = function () {\n return this._data;\n };\n\n MarkerModel.prototype.setData = function (data) {\n this._data = data;\n };\n\n MarkerModel.getMarkerModelFromSeries = function (seriesModel, // Support three types of markers. Strict check.\n componentType) {\n return inner(seriesModel)[componentType];\n };\n\n MarkerModel.type = 'marker';\n MarkerModel.dependencies = ['series', 'grid', 'polar', 'geo'];\n return MarkerModel;\n}(ComponentModel);\n\nzrUtil.mixin(MarkerModel, DataFormatMixin.prototype);\nexport default MarkerModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkPointModel =\n/** @class */\nfunction (_super) {\n __extends(MarkPointModel, _super);\n\n function MarkPointModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkPointModel.type;\n return _this;\n }\n\n MarkPointModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkPointModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkPointModel.type = 'markPoint';\n MarkPointModel.defaultOption = {\n zlevel: 0,\n z: 5,\n symbol: 'pin',\n symbolSize: 50,\n //symbolRotate: 0,\n //symbolOffset: [0, 0]\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'inside'\n },\n itemStyle: {\n borderWidth: 2\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n return MarkPointModel;\n}(MarkerModel);\n\nexport default MarkPointModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as numberUtil from '../../util/number';\nimport { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { indexOf, curry, clone, isArray } from 'zrender/lib/core/util';\n\nfunction hasXOrY(item) {\n return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y)));\n}\n\nfunction hasXAndY(item) {\n return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y));\n} // Make it simple, do not visit all stacked value to count precision.\n// function getPrecision(data, valueAxisDim, dataIndex) {\n// let precision = -1;\n// let stackedDim = data.mapDimension(valueAxisDim);\n// do {\n// precision = Math.max(\n// numberUtil.getPrecision(data.get(stackedDim, dataIndex)),\n// precision\n// );\n// let stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n// if (stackedOnSeries) {\n// let byValue = data.get(data.getCalculationInfo('stackedByDimension'), dataIndex);\n// data = stackedOnSeries.getData();\n// dataIndex = data.indexOf(data.getCalculationInfo('stackedByDimension'), byValue);\n// stackedDim = data.getCalculationInfo('stackedDimension');\n// }\n// else {\n// data = null;\n// }\n// } while (data);\n// return precision;\n// }\n\n\nfunction markerTypeCalculatorWithExtent(markerType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex) {\n var coordArr = [];\n var stacked = isDimensionStacked(data, targetDataDim\n /*, otherDataDim*/\n );\n var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim;\n var value = numCalculate(data, calcDataDim, markerType);\n var dataIndex = data.indicesOfNearest(calcDataDim, value)[0];\n coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);\n coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex);\n var coordArrValue = data.get(targetDataDim, dataIndex); // Make it simple, do not visit all stacked value to count precision.\n\n var precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));\n precision = Math.min(precision, 20);\n\n if (precision >= 0) {\n coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);\n }\n\n return [coordArr, coordArrValue];\n} // TODO Specified percent\n\n\nvar markerTypeCalculator = {\n min: curry(markerTypeCalculatorWithExtent, 'min'),\n max: curry(markerTypeCalculatorWithExtent, 'max'),\n average: curry(markerTypeCalculatorWithExtent, 'average'),\n median: curry(markerTypeCalculatorWithExtent, 'median')\n};\n/**\n * Transform markPoint data item to format used in List by do the following\n * 1. Calculate statistic like `max`, `min`, `average`\n * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array\n * @param {module:echarts/model/Series} seriesModel\n * @param {module:echarts/coord/*} [coordSys]\n * @param {Object} item\n * @return {Object}\n */\n\nexport function dataTransform(seriesModel, item) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem; // 1. If not specify the position with pixel directly\n // 2. If `coord` is not a data array. Which uses `xAxis`,\n // `yAxis` to specify the coord on each dimension\n // parseFloat first because item.x and item.y can be percent string like '20%'\n\n if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {\n var dims = coordSys.dimensions;\n var axisInfo = getAxisInfo(item, data, coordSys, seriesModel); // Clone the option\n // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value\n\n item = clone(item);\n\n if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) {\n var otherCoordIndex = indexOf(dims, axisInfo.baseAxis.dim);\n var targetCoordIndex = indexOf(dims, axisInfo.valueAxis.dim);\n var coordInfo = markerTypeCalculator[item.type](data, axisInfo.baseDataDim, axisInfo.valueDataDim, otherCoordIndex, targetCoordIndex);\n item.coord = coordInfo[0]; // Force to use the value of calculated value.\n // let item use the value without stack.\n\n item.value = coordInfo[1];\n } else {\n // FIXME Only has one of xAxis and yAxis.\n var coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis]; // Each coord support max, min, average\n\n for (var i = 0; i < 2; i++) {\n if (markerTypeCalculator[coord[i]]) {\n coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]);\n }\n }\n\n item.coord = coord;\n }\n }\n\n return item;\n}\nexport function getAxisInfo(item, data, coordSys, seriesModel) {\n var ret = {};\n\n if (item.valueIndex != null || item.valueDim != null) {\n ret.valueDataDim = item.valueIndex != null ? data.getDimension(item.valueIndex) : item.valueDim;\n ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim));\n ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n } else {\n ret.baseAxis = seriesModel.getBaseAxis();\n ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n ret.valueDataDim = data.mapDimension(ret.valueAxis.dim);\n }\n\n return ret;\n}\n\nfunction dataDimToCoordDim(seriesModel, dataDim) {\n var data = seriesModel.getData();\n var dimensions = data.dimensions;\n dataDim = data.getDimension(dataDim);\n\n for (var i = 0; i < dimensions.length; i++) {\n var dimItem = data.getDimensionInfo(dimensions[i]);\n\n if (dimItem.name === dataDim) {\n return dimItem.coordDim;\n }\n }\n}\n/**\n * Filter data which is out of coordinateSystem range\n * [dataFilter description]\n */\n\n\nexport function dataFilter( // Currently only polar and cartesian has containData.\ncoordSys, item) {\n // Alwalys return true if there is no coordSys\n return coordSys && coordSys.containData && item.coord && !hasXOrY(item) ? coordSys.containData(item.coord) : true;\n}\nexport function dimValueGetter(item, dimName, dataIndex, dimIndex) {\n // x, y, radius, angle\n if (dimIndex < 2) {\n return item.coord && item.coord[dimIndex];\n }\n\n return item.value;\n}\nexport function numCalculate(data, valueDataDim, type) {\n if (type === 'average') {\n var sum_1 = 0;\n var count_1 = 0;\n data.each(valueDataDim, function (val, idx) {\n if (!isNaN(val)) {\n sum_1 += val;\n count_1++;\n }\n });\n return sum_1 / count_1;\n } else if (type === 'median') {\n return data.getMedian(valueDataDim);\n } else {\n // max & min\n return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { enterBlur } from '../../util/states';\nvar inner = makeInner();\n\nvar MarkerView =\n/** @class */\nfunction (_super) {\n __extends(MarkerView, _super);\n\n function MarkerView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkerView.type;\n return _this;\n }\n\n MarkerView.prototype.init = function () {\n this.markerGroupMap = createHashMap();\n };\n\n MarkerView.prototype.render = function (markerModel, ecModel, api) {\n var _this = this;\n\n var markerGroupMap = this.markerGroupMap;\n markerGroupMap.each(function (item) {\n inner(item).keep = false;\n });\n ecModel.eachSeries(function (seriesModel) {\n var markerModel = MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);\n markerModel && _this.renderSeries(seriesModel, markerModel, ecModel, api);\n });\n markerGroupMap.each(function (item) {\n !inner(item).keep && _this.group.remove(item.group);\n });\n };\n\n MarkerView.prototype.markKeep = function (drawGroup) {\n inner(drawGroup).keep = true;\n };\n\n MarkerView.prototype.blurSeries = function (seriesModelList) {\n var _this = this;\n\n each(seriesModelList, function (seriesModel) {\n var markerModel = MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);\n\n if (markerModel) {\n var data = markerModel.getData();\n data.eachItemGraphicEl(function (el) {\n if (el) {\n enterBlur(el);\n }\n });\n }\n });\n };\n\n MarkerView.type = 'marker';\n return MarkerView;\n}(ComponentView);\n\nexport default MarkerView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../../chart/helper/SymbolDraw';\nimport * as numberUtil from '../../util/number';\nimport List from '../../data/List';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport MarkerModel from './MarkerModel';\nimport { isFunction, map, defaults, filter, curry } from 'zrender/lib/core/util';\nimport { getECData } from '../../util/innerStore';\nimport { getVisualFromData } from '../../visual/helper';\n\nfunction updateMarkerLayout(mpData, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n mpData.each(function (idx) {\n var itemModel = mpData.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } // Chart like bar may have there own marker positioning logic\n else if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(mpData.getValues(mpData.dimensions, idx));\n } else if (coordSys) {\n var x = mpData.get(coordSys.dimensions[0], idx);\n var y = mpData.get(coordSys.dimensions[1], idx);\n point = coordSys.dataToPoint([x, y]);\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n\n mpData.setItemLayout(idx, point);\n });\n}\n\nvar MarkPointView =\n/** @class */\nfunction (_super) {\n __extends(MarkPointView, _super);\n\n function MarkPointView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkPointView.type;\n return _this;\n }\n\n MarkPointView.prototype.updateTransform = function (markPointModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var mpModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markPoint');\n\n if (mpModel) {\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n };\n\n MarkPointView.prototype.renderSeries = function (seriesModel, mpModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var symbolDrawMap = this.markerGroupMap;\n var symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw());\n var mpData = createList(coordSys, seriesModel, mpModel); // FIXME\n\n mpModel.setData(mpData);\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n mpData.each(function (idx) {\n var itemModel = mpData.getItemModel(idx);\n var symbol = itemModel.getShallow('symbol');\n var symbolSize = itemModel.getShallow('symbolSize');\n var symbolRotate = itemModel.getShallow('symbolRotate');\n\n if (isFunction(symbol) || isFunction(symbolSize) || isFunction(symbolRotate)) {\n var rawIdx = mpModel.getRawValue(idx);\n var dataParams = mpModel.getDataParams(idx);\n\n if (isFunction(symbol)) {\n symbol = symbol(rawIdx, dataParams);\n }\n\n if (isFunction(symbolSize)) {\n // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据?\n symbolSize = symbolSize(rawIdx, dataParams);\n }\n\n if (isFunction(symbolRotate)) {\n symbolRotate = symbolRotate(rawIdx, dataParams);\n }\n }\n\n var style = itemModel.getModel('itemStyle').getItemStyle();\n var color = getVisualFromData(seriesData, 'color');\n\n if (!style.fill) {\n style.fill = color;\n }\n\n mpData.setItemVisual(idx, {\n symbol: symbol,\n symbolSize: symbolSize,\n symbolRotate: symbolRotate,\n style: style\n });\n }); // TODO Text are wrong\n\n symbolDraw.updateData(mpData);\n this.group.add(symbolDraw.group); // Set host model for tooltip\n // FIXME\n\n mpData.eachItemGraphicEl(function (el) {\n el.traverse(function (child) {\n getECData(child).dataModel = mpModel;\n });\n });\n this.markKeep(symbolDraw);\n symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkPointView.type = 'markPoint';\n return MarkPointView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, mpModel) {\n var coordDimsInfos;\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n var mpData = new List(coordDimsInfos, mpModel);\n var dataOpt = map(mpModel.get('data'), curry(markerHelper.dataTransform, seriesModel));\n\n if (coordSys) {\n dataOpt = filter(dataOpt, curry(markerHelper.dataFilter, coordSys));\n }\n\n mpData.initData(dataOpt, null, coordSys ? markerHelper.dimValueGetter : function (item) {\n return item.value;\n });\n return mpData;\n}\n\nexport default MarkPointView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkPointModel from './MarkPointModel';\nimport MarkPointView from './MarkPointView';\nexport function install(registers) {\n registers.registerComponentModel(MarkPointModel);\n registers.registerComponentView(MarkPointView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markPoint')) {\n // Make sure markPoint component is enabled\n opt.markPoint = opt.markPoint || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkLineModel =\n/** @class */\nfunction (_super) {\n __extends(MarkLineModel, _super);\n\n function MarkLineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkLineModel.type;\n return _this;\n }\n\n MarkLineModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkLineModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkLineModel.type = 'markLine';\n MarkLineModel.defaultOption = {\n zlevel: 0,\n z: 5,\n symbol: ['circle', 'arrow'],\n symbolSize: [8, 16],\n //symbolRotate: 0,\n symbolOffset: 0,\n precision: 2,\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'end',\n distance: 5\n },\n lineStyle: {\n type: 'dashed'\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n width: 3\n }\n },\n animationEasing: 'linear'\n };\n return MarkLineModel;\n}(MarkerModel);\n\nexport default MarkLineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport List from '../../data/List';\nimport * as numberUtil from '../../util/number';\nimport * as markerHelper from './markerHelper';\nimport LineDraw from '../../chart/helper/LineDraw';\nimport MarkerView from './MarkerView';\nimport { getStackedDimension } from '../../data/helper/dataStackHelper';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getECData } from '../../util/innerStore';\nimport MarkerModel from './MarkerModel';\nimport { isArray, retrieve, retrieve2, clone, extend, logError, merge, map, defaults, curry, filter } from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nvar inner = makeInner();\n\nvar markLineTransform = function (seriesModel, coordSys, mlModel, item) {\n var data = seriesModel.getData();\n var itemArray;\n\n if (!isArray(item)) {\n // Special type markLine like 'min', 'max', 'average', 'median'\n var mlType = item.type;\n\n if (mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median' // In case\n // data: [{\n // yAxis: 10\n // }]\n || item.xAxis != null || item.yAxis != null) {\n var valueAxis = void 0;\n var value = void 0;\n\n if (item.yAxis != null || item.xAxis != null) {\n valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x');\n value = retrieve(item.yAxis, item.xAxis);\n } else {\n var axisInfo = markerHelper.getAxisInfo(item, data, coordSys, seriesModel);\n valueAxis = axisInfo.valueAxis;\n var valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);\n value = markerHelper.numCalculate(data, valueDataDim, mlType);\n }\n\n var valueIndex = valueAxis.dim === 'x' ? 0 : 1;\n var baseIndex = 1 - valueIndex; // Normized to 2d data with start and end point\n\n var mlFrom = clone(item);\n var mlTo = {\n coord: []\n };\n mlFrom.type = null;\n mlFrom.coord = [];\n mlFrom.coord[baseIndex] = -Infinity;\n mlTo.coord[baseIndex] = Infinity;\n var precision = mlModel.get('precision');\n\n if (precision >= 0 && typeof value === 'number') {\n value = +value.toFixed(Math.min(precision, 20));\n }\n\n mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;\n itemArray = [mlFrom, mlTo, {\n type: mlType,\n valueIndex: item.valueIndex,\n // Force to use the value of calculated value.\n value: value\n }];\n } else {\n // Invalid data\n if (process.env.NODE_ENV !== 'production') {\n logError('Invalid markLine data.');\n }\n\n itemArray = [];\n }\n } else {\n itemArray = item;\n }\n\n var normalizedItem = [markerHelper.dataTransform(seriesModel, itemArray[0]), markerHelper.dataTransform(seriesModel, itemArray[1]), extend({}, itemArray[2])]; // Avoid line data type is extended by from(to) data type\n\n normalizedItem[2].type = normalizedItem[2].type || null; // Merge from option and to option into line option\n\n merge(normalizedItem[2], normalizedItem[0]);\n merge(normalizedItem[2], normalizedItem[1]);\n return normalizedItem;\n};\n\nfunction isInifinity(val) {\n return !isNaN(val) && !isFinite(val);\n} // If a markLine has one dim\n\n\nfunction ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {\n var otherDimIndex = 1 - dimIndex;\n var dimName = coordSys.dimensions[dimIndex];\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);\n}\n\nfunction markLineFilter(coordSys, item) {\n if (coordSys.type === 'cartesian2d') {\n var fromCoord = item[0].coord;\n var toCoord = item[1].coord; // In case\n // {\n // markLine: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n\n if (fromCoord && toCoord && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))) {\n return true;\n }\n }\n\n return markerHelper.dataFilter(coordSys, item[0]) && markerHelper.dataFilter(coordSys, item[1]);\n}\n\nfunction updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var itemModel = data.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(data.getValues(data.dimensions, idx));\n } else {\n var dims = coordSys.dimensions;\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n point = coordSys.dataToPoint([x, y]);\n } // Expand line to the edge of grid if value on one axis is Inifnity\n // In case\n // markLine: {\n // data: [{\n // yAxis: 2\n // // or\n // type: 'average'\n // }]\n // }\n\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n var dims = coordSys.dimensions;\n\n if (isInifinity(data.get(dims[0], idx))) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);\n } else if (isInifinity(data.get(dims[1], idx))) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);\n }\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n data.setItemLayout(idx, point);\n}\n\nvar MarkLineView =\n/** @class */\nfunction (_super) {\n __extends(MarkLineView, _super);\n\n function MarkLineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkLineView.type;\n return _this;\n }\n\n MarkLineView.prototype.updateTransform = function (markLineModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var mlModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine');\n\n if (mlModel) {\n var mlData_1 = mlModel.getData();\n var fromData_1 = inner(mlModel).from;\n var toData_1 = inner(mlModel).to; // Update visual and layout of from symbol and to symbol\n\n fromData_1.each(function (idx) {\n updateSingleMarkerEndLayout(fromData_1, idx, true, seriesModel, api);\n updateSingleMarkerEndLayout(toData_1, idx, false, seriesModel, api);\n }); // Update layout of line\n\n mlData_1.each(function (idx) {\n mlData_1.setItemLayout(idx, [fromData_1.getItemLayout(idx), toData_1.getItemLayout(idx)]);\n });\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n };\n\n MarkLineView.prototype.renderSeries = function (seriesModel, mlModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var lineDrawMap = this.markerGroupMap;\n var lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new LineDraw());\n this.group.add(lineDraw.group);\n var mlData = createList(coordSys, seriesModel, mlModel);\n var fromData = mlData.from;\n var toData = mlData.to;\n var lineData = mlData.line;\n inner(mlModel).from = fromData;\n inner(mlModel).to = toData; // Line data for tooltip and formatter\n\n mlModel.setData(lineData);\n var symbolType = mlModel.get('symbol');\n var symbolSize = mlModel.get('symbolSize');\n var symbolRotate = mlModel.get('symbolRotate');\n var symbolOffset = mlModel.get('symbolOffset');\n\n if (!isArray(symbolType)) {\n symbolType = [symbolType, symbolType];\n }\n\n if (!isArray(symbolSize)) {\n symbolSize = [symbolSize, symbolSize];\n }\n\n if (!isArray(symbolRotate)) {\n symbolRotate = [symbolRotate, symbolRotate];\n }\n\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n } // Update visual and layout of from symbol and to symbol\n\n\n mlData.from.each(function (idx) {\n updateDataVisualAndLayout(fromData, idx, true);\n updateDataVisualAndLayout(toData, idx, false);\n }); // Update visual and layout of line\n\n lineData.each(function (idx) {\n var lineStyle = lineData.getItemModel(idx).getModel('lineStyle').getLineStyle(); // lineData.setItemVisual(idx, {\n // color: lineColor || fromData.getItemVisual(idx, 'color')\n // });\n\n lineData.setItemLayout(idx, [fromData.getItemLayout(idx), toData.getItemLayout(idx)]);\n\n if (lineStyle.stroke == null) {\n lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill;\n }\n\n lineData.setItemVisual(idx, {\n fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'),\n fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'),\n fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'),\n fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize'),\n fromSymbol: fromData.getItemVisual(idx, 'symbol'),\n toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'),\n toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'),\n toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'),\n toSymbolSize: toData.getItemVisual(idx, 'symbolSize'),\n toSymbol: toData.getItemVisual(idx, 'symbol'),\n style: lineStyle\n });\n });\n lineDraw.updateData(lineData); // Set host model for tooltip\n // FIXME\n\n mlData.line.eachItemGraphicEl(function (el, idx) {\n el.traverse(function (child) {\n getECData(child).dataModel = mlModel;\n });\n });\n\n function updateDataVisualAndLayout(data, idx, isFrom) {\n var itemModel = data.getItemModel(idx);\n updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api);\n var style = itemModel.getModel('itemStyle').getItemStyle();\n\n if (style.fill == null) {\n style.fill = getVisualFromData(seriesData, 'color');\n }\n\n data.setItemVisual(idx, {\n symbolKeepAspect: itemModel.get('symbolKeepAspect'),\n // `0` should be considered as a valid value, so use `retrieve2` instead of `||`\n symbolOffset: retrieve2(itemModel.get('symbolOffset'), symbolOffset[isFrom ? 0 : 1]),\n symbolRotate: retrieve2(itemModel.get('symbolRotate', true), symbolRotate[isFrom ? 0 : 1]),\n symbolSize: retrieve2(itemModel.get('symbolSize'), symbolSize[isFrom ? 0 : 1]),\n symbol: retrieve2(itemModel.get('symbol', true), symbolType[isFrom ? 0 : 1]),\n style: style\n });\n }\n\n this.markKeep(lineDraw);\n lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkLineView.type = 'markLine';\n return MarkLineView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, mlModel) {\n var coordDimsInfos;\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n var fromData = new List(coordDimsInfos, mlModel);\n var toData = new List(coordDimsInfos, mlModel); // No dimensions\n\n var lineData = new List([], mlModel);\n var optData = map(mlModel.get('data'), curry(markLineTransform, seriesModel, coordSys, mlModel));\n\n if (coordSys) {\n optData = filter(optData, curry(markLineFilter, coordSys));\n }\n\n var dimValueGetter = coordSys ? markerHelper.dimValueGetter : function (item) {\n return item.value;\n };\n fromData.initData(map(optData, function (item) {\n return item[0];\n }), null, dimValueGetter);\n toData.initData(map(optData, function (item) {\n return item[1];\n }), null, dimValueGetter);\n lineData.initData(map(optData, function (item) {\n return item[2];\n }));\n lineData.hasItemOption = true;\n return {\n from: fromData,\n to: toData,\n line: lineData\n };\n}\n\nexport default MarkLineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkLineModel from './MarkLineModel';\nimport MarkLineView from './MarkLineView';\nexport function install(registers) {\n registers.registerComponentModel(MarkLineModel);\n registers.registerComponentView(MarkLineView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markLine')) {\n // Make sure markLine component is enabled\n opt.markLine = opt.markLine || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkAreaModel =\n/** @class */\nfunction (_super) {\n __extends(MarkAreaModel, _super);\n\n function MarkAreaModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkAreaModel.type;\n return _this;\n }\n\n MarkAreaModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkAreaModel.type = 'markArea';\n MarkAreaModel.defaultOption = {\n zlevel: 0,\n // PENDING\n z: 1,\n tooltip: {\n trigger: 'item'\n },\n // markArea should fixed on the coordinate system\n animation: false,\n label: {\n show: true,\n position: 'top'\n },\n itemStyle: {\n // color and borderColor default to use color from series\n // color: 'auto'\n // borderColor: 'auto'\n borderWidth: 0\n },\n emphasis: {\n label: {\n show: true,\n position: 'top'\n }\n }\n };\n return MarkAreaModel;\n}(MarkerModel);\n\nexport default MarkAreaModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO Optimize on polar\n\nimport * as colorUtil from 'zrender/lib/tool/color';\nimport List from '../../data/List';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { retrieve, mergeAll, map, defaults, curry, filter } from 'zrender/lib/core/util';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nvar inner = makeInner();\n\nvar markAreaTransform = function (seriesModel, coordSys, maModel, item) {\n var lt = markerHelper.dataTransform(seriesModel, item[0]);\n var rb = markerHelper.dataTransform(seriesModel, item[1]); // FIXME make sure lt is less than rb\n\n var ltCoord = lt.coord;\n var rbCoord = rb.coord;\n ltCoord[0] = retrieve(ltCoord[0], -Infinity);\n ltCoord[1] = retrieve(ltCoord[1], -Infinity);\n rbCoord[0] = retrieve(rbCoord[0], Infinity);\n rbCoord[1] = retrieve(rbCoord[1], Infinity); // Merge option into one\n\n var result = mergeAll([{}, lt, rb]);\n result.coord = [lt.coord, rb.coord];\n result.x0 = lt.x;\n result.y0 = lt.y;\n result.x1 = rb.x;\n result.y1 = rb.y;\n return result;\n};\n\nfunction isInifinity(val) {\n return !isNaN(val) && !isFinite(val);\n} // If a markArea has one dim\n\n\nfunction ifMarkAreaHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {\n var otherDimIndex = 1 - dimIndex;\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]);\n}\n\nfunction markAreaFilter(coordSys, item) {\n var fromCoord = item.coord[0];\n var toCoord = item.coord[1];\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // In case\n // {\n // markArea: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (fromCoord && toCoord && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))) {\n return true;\n }\n }\n\n return markerHelper.dataFilter(coordSys, {\n coord: fromCoord,\n x: item.x0,\n y: item.y0\n }) || markerHelper.dataFilter(coordSys, {\n coord: toCoord,\n x: item.x1,\n y: item.y1\n });\n} // dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']\n\n\nfunction getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var itemModel = data.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(data.getValues(dims, idx));\n } else {\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n var pt = [x, y];\n coordSys.clampData && coordSys.clampData(pt, pt);\n point = coordSys.dataToPoint(pt, true);\n }\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n\n if (isInifinity(x)) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n } else if (isInifinity(y)) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n }\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n return point;\n}\n\nvar dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];\n\nvar MarkAreaView =\n/** @class */\nfunction (_super) {\n __extends(MarkAreaView, _super);\n\n function MarkAreaView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkAreaView.type;\n return _this;\n }\n\n MarkAreaView.prototype.updateTransform = function (markAreaModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var maModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markArea');\n\n if (maModel) {\n var areaData_1 = maModel.getData();\n areaData_1.each(function (idx) {\n var points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData_1, idx, dim, seriesModel, api);\n }); // Layout\n\n areaData_1.setItemLayout(idx, points);\n var el = areaData_1.getItemGraphicEl(idx);\n el.setShape('points', points);\n });\n }\n }, this);\n };\n\n MarkAreaView.prototype.renderSeries = function (seriesModel, maModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var areaGroupMap = this.markerGroupMap;\n var polygonGroup = areaGroupMap.get(seriesId) || areaGroupMap.set(seriesId, {\n group: new graphic.Group()\n });\n this.group.add(polygonGroup.group);\n this.markKeep(polygonGroup);\n var areaData = createList(coordSys, seriesModel, maModel); // Line data for tooltip and formatter\n\n maModel.setData(areaData); // Update visual and layout of line\n\n areaData.each(function (idx) {\n // Layout\n var points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n var xAxisScale = coordSys.getAxis('x').scale;\n var yAxisScale = coordSys.getAxis('y').scale;\n var xAxisExtent = xAxisScale.getExtent();\n var yAxisExtent = yAxisScale.getExtent();\n var xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))];\n var yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))];\n numberUtil.asc(xPointExtent);\n numberUtil.asc(yPointExtent);\n var overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0] || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]); // If none of the area is inside coordSys, allClipped is set to be true\n // in layout so that label will not be displayed. See #12591\n\n var allClipped = !overlapped;\n areaData.setItemLayout(idx, {\n points: points,\n allClipped: allClipped\n });\n var style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle();\n var color = getVisualFromData(seriesData, 'color');\n\n if (!style.fill) {\n style.fill = color;\n\n if (typeof style.fill === 'string') {\n style.fill = colorUtil.modifyAlpha(style.fill, 0.4);\n }\n }\n\n if (!style.stroke) {\n style.stroke = color;\n } // Visual\n\n\n areaData.setItemVisual(idx, 'style', style);\n });\n areaData.diff(inner(polygonGroup).data).add(function (idx) {\n var layout = areaData.getItemLayout(idx);\n\n if (!layout.allClipped) {\n var polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n areaData.setItemGraphicEl(idx, polygon);\n polygonGroup.group.add(polygon);\n }\n }).update(function (newIdx, oldIdx) {\n var polygon = inner(polygonGroup).data.getItemGraphicEl(oldIdx);\n var layout = areaData.getItemLayout(newIdx);\n\n if (!layout.allClipped) {\n if (polygon) {\n graphic.updateProps(polygon, {\n shape: {\n points: layout.points\n }\n }, maModel, newIdx);\n } else {\n polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n }\n\n areaData.setItemGraphicEl(newIdx, polygon);\n polygonGroup.group.add(polygon);\n } else if (polygon) {\n polygonGroup.group.remove(polygon);\n }\n }).remove(function (idx) {\n var polygon = inner(polygonGroup).data.getItemGraphicEl(idx);\n polygonGroup.group.remove(polygon);\n }).execute();\n areaData.eachItemGraphicEl(function (polygon, idx) {\n var itemModel = areaData.getItemModel(idx);\n var style = areaData.getItemVisual(idx, 'style');\n polygon.useStyle(areaData.getItemVisual(idx, 'style'));\n setLabelStyle(polygon, getLabelStatesModels(itemModel), {\n labelFetcher: maModel,\n labelDataIndex: idx,\n defaultText: areaData.getName(idx) || '',\n inheritColor: typeof style.fill === 'string' ? colorUtil.modifyAlpha(style.fill, 1) : '#000'\n });\n setStatesStylesFromModel(polygon, itemModel);\n enableHoverEmphasis(polygon);\n getECData(polygon).dataModel = maModel;\n });\n inner(polygonGroup).data = areaData;\n polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkAreaView.type = 'markArea';\n return MarkAreaView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, maModel) {\n var coordDimsInfos;\n var areaData;\n var dims = ['x0', 'y0', 'x1', 'y1'];\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var data = seriesModel.getData();\n var info = data.getDimensionInfo(data.mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n areaData = new List(map(dims, function (dim, idx) {\n return {\n name: dim,\n type: coordDimsInfos[idx % 2].type\n };\n }), maModel);\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n areaData = new List(coordDimsInfos, maModel);\n }\n\n var optData = map(maModel.get('data'), curry(markAreaTransform, seriesModel, coordSys, maModel));\n\n if (coordSys) {\n optData = filter(optData, curry(markAreaFilter, coordSys));\n }\n\n var dimValueGetter = coordSys ? function (item, dimName, dataIndex, dimIndex) {\n // TODO should convert to ParsedValue?\n return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2];\n } : function (item) {\n return item.value;\n };\n areaData.initData(optData, null, dimValueGetter);\n areaData.hasItemOption = true;\n return areaData;\n}\n\nexport default MarkAreaView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkAreaModel from './MarkAreaModel';\nimport MarkAreaView from './MarkAreaView';\nexport function install(registers) {\n registers.registerComponentModel(MarkAreaModel);\n registers.registerComponentView(MarkAreaView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markArea')) {\n // Make sure markArea component is enabled\n opt.markArea = opt.markArea || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from '../../model/Model';\nimport { isNameSpecified } from '../../util/model';\nimport ComponentModel from '../../model/Component';\n\nvar getDefaultSelectorOptions = function (ecModel, type) {\n if (type === 'all') {\n return {\n type: 'all',\n title: ecModel.getLocale(['legend', 'selector', 'all'])\n };\n } else if (type === 'inverse') {\n return {\n type: 'inverse',\n title: ecModel.getLocale(['legend', 'selector', 'inverse'])\n };\n }\n};\n\nvar LegendModel =\n/** @class */\nfunction (_super) {\n __extends(LegendModel, _super);\n\n function LegendModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LegendModel.type;\n _this.layoutMode = {\n type: 'box',\n // legend.width/height are maxWidth/maxHeight actually,\n // whereas realy width/height is calculated by its content.\n // (Setting {left: 10, right: 10} does not make sense).\n // So consider the case:\n // `setOption({legend: {left: 10});`\n // then `setOption({legend: {right: 10});`\n // The previous `left` should be cleared by setting `ignoreSize`.\n ignoreSize: true\n };\n return _this;\n }\n\n LegendModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n option.selected = option.selected || {};\n\n this._updateSelector(option);\n };\n\n LegendModel.prototype.mergeOption = function (option, ecModel) {\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n this._updateSelector(option);\n };\n\n LegendModel.prototype._updateSelector = function (option) {\n var selector = option.selector;\n var ecModel = this.ecModel;\n\n if (selector === true) {\n selector = option.selector = ['all', 'inverse'];\n }\n\n if (zrUtil.isArray(selector)) {\n zrUtil.each(selector, function (item, index) {\n zrUtil.isString(item) && (item = {\n type: item\n });\n selector[index] = zrUtil.merge(item, getDefaultSelectorOptions(ecModel, item.type));\n });\n }\n };\n\n LegendModel.prototype.optionUpdated = function () {\n this._updateData(this.ecModel);\n\n var legendData = this._data; // If selectedMode is single, try to select one\n\n if (legendData[0] && this.get('selectedMode') === 'single') {\n var hasSelected = false; // If has any selected in option.selected\n\n for (var i = 0; i < legendData.length; i++) {\n var name_1 = legendData[i].get('name');\n\n if (this.isSelected(name_1)) {\n // Force to unselect others\n this.select(name_1);\n hasSelected = true;\n break;\n }\n } // Try select the first if selectedMode is single\n\n\n !hasSelected && this.select(legendData[0].get('name'));\n }\n };\n\n LegendModel.prototype._updateData = function (ecModel) {\n var potentialData = [];\n var availableNames = [];\n ecModel.eachRawSeries(function (seriesModel) {\n var seriesName = seriesModel.name;\n availableNames.push(seriesName);\n var isPotential;\n\n if (seriesModel.legendVisualProvider) {\n var provider = seriesModel.legendVisualProvider;\n var names = provider.getAllNames();\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n availableNames = availableNames.concat(names);\n }\n\n if (names.length) {\n potentialData = potentialData.concat(names);\n } else {\n isPotential = true;\n }\n } else {\n isPotential = true;\n }\n\n if (isPotential && isNameSpecified(seriesModel)) {\n potentialData.push(seriesModel.name);\n }\n });\n /**\n * @type {Array.}\n * @private\n */\n\n this._availableNames = availableNames; // If legend.data not specified in option, use availableNames as data,\n // which is convinient for user preparing option.\n\n var rawData = this.get('data') || potentialData;\n var legendData = zrUtil.map(rawData, function (dataItem) {\n // Can be string or number\n if (typeof dataItem === 'string' || typeof dataItem === 'number') {\n dataItem = {\n name: dataItem\n };\n }\n\n return new Model(dataItem, this, this.ecModel);\n }, this);\n /**\n * @type {Array.}\n * @private\n */\n\n this._data = legendData;\n };\n\n LegendModel.prototype.getData = function () {\n return this._data;\n };\n\n LegendModel.prototype.select = function (name) {\n var selected = this.option.selected;\n var selectedMode = this.get('selectedMode');\n\n if (selectedMode === 'single') {\n var data = this._data;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name')] = false;\n });\n }\n\n selected[name] = true;\n };\n\n LegendModel.prototype.unSelect = function (name) {\n if (this.get('selectedMode') !== 'single') {\n this.option.selected[name] = false;\n }\n };\n\n LegendModel.prototype.toggleSelected = function (name) {\n var selected = this.option.selected; // Default is true\n\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n\n this[selected[name] ? 'unSelect' : 'select'](name);\n };\n\n LegendModel.prototype.allSelect = function () {\n var data = this._data;\n var selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name', true)] = true;\n });\n };\n\n LegendModel.prototype.inverseSelect = function () {\n var data = this._data;\n var selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n var name = dataItem.get('name', true); // Initially, default value is true\n\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n\n selected[name] = !selected[name];\n });\n };\n\n LegendModel.prototype.isSelected = function (name) {\n var selected = this.option.selected;\n return !(selected.hasOwnProperty(name) && !selected[name]) && zrUtil.indexOf(this._availableNames, name) >= 0;\n };\n\n LegendModel.prototype.getOrient = function () {\n return this.get('orient') === 'vertical' ? {\n index: 1,\n name: 'vertical'\n } : {\n index: 0,\n name: 'horizontal'\n };\n };\n\n LegendModel.type = 'legend.plain';\n LegendModel.dependencies = ['series'];\n LegendModel.defaultOption = {\n zlevel: 0,\n z: 4,\n show: true,\n orient: 'horizontal',\n left: 'center',\n // right: 'center',\n top: 0,\n // bottom: null,\n align: 'auto',\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n itemWidth: 25,\n itemHeight: 14,\n symbolRotate: 'inherit',\n inactiveColor: '#ccc',\n inactiveBorderColor: '#ccc',\n inactiveBorderWidth: 'auto',\n itemStyle: {\n color: 'inherit',\n opacity: 'inherit',\n decal: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n borderColor: 'inherit',\n borderWidth: 'auto',\n borderCap: 'inherit',\n borderJoin: 'inherit',\n borderDashOffset: 'inherit',\n borderMiterLimit: 'inherit'\n },\n lineStyle: {\n width: 'auto',\n color: 'inherit',\n inactiveColor: '#ccc',\n inactiveWidth: 2,\n opacity: 'inherit',\n type: 'inherit',\n cap: 'inherit',\n join: 'inherit',\n dashOffset: 'inherit',\n miterLimit: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0\n },\n textStyle: {\n color: '#333'\n },\n selectedMode: true,\n selector: false,\n selectorLabel: {\n show: true,\n borderRadius: 10,\n padding: [3, 5, 3, 5],\n fontSize: 12,\n fontFamily: ' sans-serif',\n color: '#666',\n borderWidth: 1,\n borderColor: '#666'\n },\n emphasis: {\n selectorLabel: {\n show: true,\n color: '#eee',\n backgroundColor: '#666'\n }\n },\n selectorPosition: 'auto',\n selectorItemGap: 7,\n selectorButtonGap: 10,\n tooltip: {\n show: false\n }\n };\n return LegendModel;\n}(ComponentModel);\n\nexport default LegendModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parse, stringify } from 'zrender/lib/tool/color';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, createTextStyle } from '../../label/labelStyle';\nimport { makeBackground } from '../helper/listComponent';\nimport * as layoutUtil from '../../util/layout';\nimport ComponentView from '../../view/Component';\nimport { LINE_STYLE_KEY_MAP } from '../../model/mixin/lineStyle';\nimport { ITEM_STYLE_KEY_MAP } from '../../model/mixin/itemStyle';\nimport { createSymbol } from '../../util/symbol';\nvar curry = zrUtil.curry;\nvar each = zrUtil.each;\nvar Group = graphic.Group;\n\nvar LegendView =\n/** @class */\nfunction (_super) {\n __extends(LegendView, _super);\n\n function LegendView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LegendView.type;\n _this.newlineDisabled = false;\n return _this;\n }\n\n LegendView.prototype.init = function () {\n this.group.add(this._contentGroup = new Group());\n this.group.add(this._selectorGroup = new Group());\n this._isFirstRender = true;\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.getContentGroup = function () {\n return this._contentGroup;\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.getSelectorGroup = function () {\n return this._selectorGroup;\n };\n /**\n * @override\n */\n\n\n LegendView.prototype.render = function (legendModel, ecModel, api) {\n var isFirstRender = this._isFirstRender;\n this._isFirstRender = false;\n this.resetInner();\n\n if (!legendModel.get('show', true)) {\n return;\n }\n\n var itemAlign = legendModel.get('align');\n var orient = legendModel.get('orient');\n\n if (!itemAlign || itemAlign === 'auto') {\n itemAlign = legendModel.get('left') === 'right' && orient === 'vertical' ? 'right' : 'left';\n } // selector has been normalized to an array in model\n\n\n var selector = legendModel.get('selector', true);\n var selectorPosition = legendModel.get('selectorPosition', true);\n\n if (selector && (!selectorPosition || selectorPosition === 'auto')) {\n selectorPosition = orient === 'horizontal' ? 'end' : 'start';\n }\n\n this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition); // Perform layout.\n\n var positionInfo = legendModel.getBoxLayoutParams();\n var viewportSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var padding = legendModel.get('padding');\n var maxSize = layoutUtil.getLayoutRect(positionInfo, viewportSize, padding);\n var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition); // Place mainGroup, based on the calculated `mainRect`.\n\n var layoutRect = layoutUtil.getLayoutRect(zrUtil.defaults({\n width: mainRect.width,\n height: mainRect.height\n }, positionInfo), viewportSize, padding);\n this.group.x = layoutRect.x - mainRect.x;\n this.group.y = layoutRect.y - mainRect.y;\n this.group.markRedraw(); // Render background after group is layout.\n\n this.group.add(this._backgroundEl = makeBackground(mainRect, legendModel));\n };\n\n LegendView.prototype.resetInner = function () {\n this.getContentGroup().removeAll();\n this._backgroundEl && this.group.remove(this._backgroundEl);\n this.getSelectorGroup().removeAll();\n };\n\n LegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {\n var contentGroup = this.getContentGroup();\n var legendDrawnMap = zrUtil.createHashMap();\n var selectMode = legendModel.get('selectedMode');\n var excludeSeriesId = [];\n ecModel.eachRawSeries(function (seriesModel) {\n !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);\n });\n each(legendModel.getData(), function (legendItemModel, dataIndex) {\n var name = legendItemModel.get('name'); // Use empty string or \\n as a newline string\n\n if (!this.newlineDisabled && (name === '' || name === '\\n')) {\n var g = new Group(); // @ts-ignore\n\n g.newline = true;\n contentGroup.add(g);\n return;\n } // Representitive series.\n\n\n var seriesModel = ecModel.getSeriesByName(name)[0];\n\n if (legendDrawnMap.get(name)) {\n // Have been drawed\n return;\n } // Legend to control series.\n\n\n if (seriesModel) {\n var data = seriesModel.getData();\n var lineVisualStyle = data.getVisual('legendLineStyle') || {};\n var legendIcon = data.getVisual('legendIcon');\n /**\n * `data.getVisual('style')` may be the color from the register\n * in series. For example, for line series,\n */\n\n var style = data.getVisual('style');\n\n var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, style, legendIcon, selectMode);\n\n itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId)).on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));\n legendDrawnMap.set(name, true);\n } else {\n // Legend to control data. In pie and funnel.\n ecModel.eachRawSeries(function (seriesModel) {\n // In case multiple series has same data name\n if (legendDrawnMap.get(name)) {\n return;\n }\n\n if (seriesModel.legendVisualProvider) {\n var provider = seriesModel.legendVisualProvider;\n\n if (!provider.containName(name)) {\n return;\n }\n\n var idx = provider.indexOfName(name);\n var style = provider.getItemVisual(idx, 'style');\n var legendIcon = provider.getItemVisual(idx, 'legendIcon');\n var colorArr = parse(style.fill); // Color may be set to transparent in visualMap when data is out of range.\n // Do not show nothing.\n\n if (colorArr && colorArr[3] === 0) {\n colorArr[3] = 0.2; // TODO color is set to 0, 0, 0, 0. Should show correct RGBA\n\n style.fill = stringify(colorArr, 'rgba');\n }\n\n var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, {}, style, legendIcon, selectMode); // FIXME: consider different series has items with the same name.\n\n\n itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId)) // Should not specify the series name, consider legend controls\n // more than one pie series.\n .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));\n legendDrawnMap.set(name, true);\n }\n }, this);\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!legendDrawnMap.get(name)) {\n console.warn(name + ' series not exists. Legend data should be same with series name or data name.');\n }\n }\n }, this);\n\n if (selector) {\n this._createSelector(selector, legendModel, api, orient, selectorPosition);\n }\n };\n\n LegendView.prototype._createSelector = function (selector, legendModel, api, orient, selectorPosition) {\n var selectorGroup = this.getSelectorGroup();\n each(selector, function createSelectorButton(selectorItem) {\n var type = selectorItem.type;\n var labelText = new graphic.Text({\n style: {\n x: 0,\n y: 0,\n align: 'center',\n verticalAlign: 'middle'\n },\n onclick: function () {\n api.dispatchAction({\n type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect'\n });\n }\n });\n selectorGroup.add(labelText);\n var labelModel = legendModel.getModel('selectorLabel');\n var emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);\n setLabelStyle(labelText, {\n normal: labelModel,\n emphasis: emphasisLabelModel\n }, {\n defaultText: selectorItem.title\n });\n enableHoverEmphasis(labelText);\n });\n };\n\n LegendView.prototype._createItem = function (seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, itemVisualStyle, legendIcon, selectMode) {\n var drawType = seriesModel.visualDrawType;\n var itemWidth = legendModel.get('itemWidth');\n var itemHeight = legendModel.get('itemHeight');\n var isSelected = legendModel.isSelected(name);\n var iconRotate = legendItemModel.get('symbolRotate');\n var legendIconType = legendItemModel.get('icon');\n legendIcon = legendIconType || legendIcon || 'roundRect';\n var legendLineStyle = legendModel.getModel('lineStyle');\n var style = getLegendStyle(legendIcon, legendItemModel, legendLineStyle, lineVisualStyle, itemVisualStyle, drawType, isSelected);\n var itemGroup = new Group();\n var textStyleModel = legendItemModel.getModel('textStyle');\n\n if (typeof seriesModel.getLegendIcon === 'function' && (!legendIconType || legendIconType === 'inherit')) {\n // Series has specific way to define legend icon\n itemGroup.add(seriesModel.getLegendIcon({\n itemWidth: itemWidth,\n itemHeight: itemHeight,\n icon: legendIcon,\n iconRotate: iconRotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n } else {\n // Use default legend icon policy for most series\n var rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol') ? iconRotate === 'inherit' ? seriesModel.getData().getVisual('symbolRotate') : iconRotate : 0; // No rotation for no icon\n\n itemGroup.add(getDefaultLegendIcon({\n itemWidth: itemWidth,\n itemHeight: itemHeight,\n icon: legendIcon,\n iconRotate: rotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n\n var textX = itemAlign === 'left' ? itemWidth + 5 : -5;\n var textAlign = itemAlign;\n var formatter = legendModel.get('formatter');\n var content = name;\n\n if (typeof formatter === 'string' && formatter) {\n content = formatter.replace('{name}', name != null ? name : '');\n } else if (typeof formatter === 'function') {\n content = formatter(name);\n }\n\n var inactiveColor = legendItemModel.get('inactiveColor');\n itemGroup.add(new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: content,\n x: textX,\n y: itemHeight / 2,\n fill: isSelected ? textStyleModel.getTextColor() : inactiveColor,\n align: textAlign,\n verticalAlign: 'middle'\n })\n })); // Add a invisible rect to increase the area of mouse hover\n\n var hitRect = new graphic.Rect({\n shape: itemGroup.getBoundingRect(),\n invisible: true\n });\n var tooltipModel = legendItemModel.getModel('tooltip');\n\n if (tooltipModel.get('show')) {\n graphic.setTooltipConfig({\n el: hitRect,\n componentModel: legendModel,\n itemName: name,\n itemTooltipOption: tooltipModel.option\n });\n }\n\n itemGroup.add(hitRect);\n itemGroup.eachChild(function (child) {\n child.silent = true;\n });\n hitRect.silent = !selectMode;\n this.getContentGroup().add(itemGroup);\n enableHoverEmphasis(itemGroup); // @ts-ignore\n\n itemGroup.__legendDataIndex = dataIndex;\n return itemGroup;\n };\n\n LegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {\n var contentGroup = this.getContentGroup();\n var selectorGroup = this.getSelectorGroup(); // Place items in contentGroup.\n\n layoutUtil.box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height);\n var contentRect = contentGroup.getBoundingRect();\n var contentPos = [-contentRect.x, -contentRect.y];\n selectorGroup.markRedraw();\n contentGroup.markRedraw();\n\n if (selector) {\n // Place buttons in selectorGroup\n layoutUtil.box( // Buttons in selectorGroup always layout horizontally\n 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));\n var selectorRect = selectorGroup.getBoundingRect();\n var selectorPos = [-selectorRect.x, -selectorRect.y];\n var selectorButtonGap = legendModel.get('selectorButtonGap', true);\n var orientIdx = legendModel.getOrient().index;\n var wh = orientIdx === 0 ? 'width' : 'height';\n var hw = orientIdx === 0 ? 'height' : 'width';\n var yx = orientIdx === 0 ? 'y' : 'x';\n\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;\n } else {\n contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;\n } //Always align selector to content as 'middle'\n\n\n selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n var mainRect = {\n x: 0,\n y: 0\n };\n mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);\n return mainRect;\n } else {\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n return this.group.getBoundingRect();\n }\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.remove = function () {\n this.getContentGroup().removeAll();\n this._isFirstRender = true;\n };\n\n LegendView.type = 'legend.plain';\n return LegendView;\n}(ComponentView);\n\nfunction getLegendStyle(iconType, legendModel, legendLineStyle, lineVisualStyle, itemVisualStyle, drawType, isSelected) {\n /**\n * Use series style if is inherit;\n * elsewise, use legend style\n */\n // itemStyle\n var legendItemModel = legendModel.getModel('itemStyle');\n var itemProperties = ITEM_STYLE_KEY_MAP.concat([['decal']]);\n var itemStyle = {};\n\n for (var i = 0; i < itemProperties.length; ++i) {\n var propName = itemProperties[i][itemProperties[i].length - 1];\n var visualName = itemProperties[i][0];\n var value = legendItemModel.getShallow(propName);\n\n if (value === 'inherit') {\n switch (visualName) {\n case 'fill':\n /**\n * Series with visualDrawType as 'stroke' should have\n * series stroke as legend fill\n */\n itemStyle.fill = itemVisualStyle[drawType];\n break;\n\n case 'stroke':\n /**\n * icon type with \"emptyXXX\" should use fill color\n * in visual style\n */\n itemStyle.stroke = itemVisualStyle[iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke'];\n break;\n\n case 'opacity':\n /**\n * Use lineStyle.opacity if drawType is stroke\n */\n itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;\n break;\n\n default:\n itemStyle[visualName] = itemVisualStyle[visualName];\n }\n } else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n itemStyle.lineWidth = itemVisualStyle.lineWidth > 0 ? 2 : 0;\n } else {\n itemStyle[visualName] = value;\n }\n } // lineStyle\n\n\n var legendLineModel = legendModel.getModel('lineStyle');\n var lineProperties = LINE_STYLE_KEY_MAP.concat([['inactiveColor'], ['inactiveWidth']]);\n var lineStyle = {};\n\n for (var i = 0; i < lineProperties.length; ++i) {\n var propName = lineProperties[i][1];\n var visualName = lineProperties[i][0];\n var value = legendLineModel.getShallow(propName);\n\n if (value === 'inherit') {\n lineStyle[visualName] = lineVisualStyle[visualName];\n } else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n lineStyle.lineWidth = lineVisualStyle.lineWidth > 0 ? 2 : 0;\n } else {\n lineStyle[visualName] = value;\n }\n } // Fix auto color to real color\n\n\n itemStyle.fill === 'auto' && (itemStyle.fill = itemVisualStyle.fill);\n itemStyle.stroke === 'auto' && (itemStyle.stroke = itemVisualStyle.fill);\n lineStyle.stroke === 'auto' && (lineStyle.stroke = itemVisualStyle.fill);\n\n if (!isSelected) {\n var borderWidth = legendModel.get('inactiveBorderWidth');\n /**\n * Since stroke is set to be inactiveBorderColor, it may occur that\n * there is no border in series but border in legend, so we need to\n * use border only when series has border if is set to be auto\n */\n\n var visualHasBorder = itemStyle[iconType.indexOf('empty') > -1 ? 'fill' : 'stroke'];\n itemStyle.lineWidth = borderWidth === 'auto' ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth;\n itemStyle.fill = legendModel.get('inactiveColor');\n itemStyle.stroke = legendModel.get('inactiveBorderColor');\n lineStyle.stroke = legendLineStyle.get('inactiveColor');\n lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');\n }\n\n return {\n itemStyle: itemStyle,\n lineStyle: lineStyle\n };\n}\n\nfunction getDefaultLegendIcon(opt) {\n var symboType = opt.icon || 'roundRect';\n var icon = createSymbol(symboType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill);\n icon.setStyle(opt.itemStyle);\n icon.rotation = (opt.iconRotate || 0) * Math.PI / 180;\n icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symboType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n}\n\nfunction dispatchSelectAction(seriesName, dataName, api, excludeSeriesId) {\n // downplay before unselect\n dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);\n api.dispatchAction({\n type: 'legendToggleSelect',\n name: seriesName != null ? seriesName : dataName\n }); // highlight after select\n // TODO higlight immediately may cause animation loss.\n\n dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);\n}\n\nfunction isUseHoverLayer(api) {\n var list = api.getZr().storage.getDisplayList();\n var emphasisState;\n var i = 0;\n var len = list.length;\n\n while (i < len && !(emphasisState = list[i].states.emphasis)) {\n i++;\n }\n\n return emphasisState && emphasisState.hoverLayer;\n}\n\nfunction dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'highlight',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nfunction dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'downplay',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nexport default LegendView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function legendFilter(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport { curry, each } from 'zrender/lib/core/util';\n\nfunction legendSelectActionHandler(methodName, payload, ecModel) {\n var selectedMap = {};\n var isToggleSelect = methodName === 'toggleSelected';\n var isSelected; // Update all legend components\n\n ecModel.eachComponent('legend', function (legendModel) {\n if (isToggleSelect && isSelected != null) {\n // Force other legend has same selected status\n // Or the first is toggled to true and other are toggled to false\n // In the case one legend has some item unSelected in option. And if other legend\n // doesn't has the item, they will assume it is selected.\n legendModel[isSelected ? 'select' : 'unSelect'](payload.name);\n } else if (methodName === 'allSelect' || methodName === 'inverseSelect') {\n legendModel[methodName]();\n } else {\n legendModel[methodName](payload.name);\n isSelected = legendModel.isSelected(payload.name);\n }\n\n var legendData = legendModel.getData();\n each(legendData, function (model) {\n var name = model.get('name'); // Wrap element\n\n if (name === '\\n' || name === '') {\n return;\n }\n\n var isItemSelected = legendModel.isSelected(name);\n\n if (selectedMap.hasOwnProperty(name)) {\n // Unselected if any legend is unselected\n selectedMap[name] = selectedMap[name] && isItemSelected;\n } else {\n selectedMap[name] = isItemSelected;\n }\n });\n }); // Return the event explicitly\n\n return methodName === 'allSelect' || methodName === 'inverseSelect' ? {\n selected: selectedMap\n } : {\n name: payload.name,\n selected: selectedMap\n };\n}\n\nexport function installLegendAction(registers) {\n /**\n * @event legendToggleSelect\n * @type {Object}\n * @property {string} type 'legendToggleSelect'\n * @property {string} [from]\n * @property {string} name Series name or data item name\n */\n registers.registerAction('legendToggleSelect', 'legendselectchanged', curry(legendSelectActionHandler, 'toggleSelected'));\n registers.registerAction('legendAllSelect', 'legendselectall', curry(legendSelectActionHandler, 'allSelect'));\n registers.registerAction('legendInverseSelect', 'legendinverseselect', curry(legendSelectActionHandler, 'inverseSelect'));\n /**\n * @event legendSelect\n * @type {Object}\n * @property {string} type 'legendSelect'\n * @property {string} name Series name or data item name\n */\n\n registers.registerAction('legendSelect', 'legendselected', curry(legendSelectActionHandler, 'select'));\n /**\n * @event legendUnSelect\n * @type {Object}\n * @property {string} type 'legendUnSelect'\n * @property {string} name Series name or data item name\n */\n\n registers.registerAction('legendUnSelect', 'legendunselected', curry(legendSelectActionHandler, 'unSelect'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LegendModel from './LegendModel';\nimport LegendView from './LegendView';\nimport legendFilter from './legendFilter';\nimport { installLegendAction } from './legendAction';\nexport function install(registers) {\n registers.registerComponentModel(LegendModel);\n registers.registerComponentView(LegendView);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);\n registers.registerSubTypeDefaulter('legend', function () {\n return 'plain';\n });\n installLegendAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport LegendModel from './LegendModel';\nimport { mergeLayoutParam, getLayoutParams } from '../../util/layout';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar ScrollableLegendModel =\n/** @class */\nfunction (_super) {\n __extends(ScrollableLegendModel, _super);\n\n function ScrollableLegendModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScrollableLegendModel.type;\n return _this;\n }\n /**\n * @param {number} scrollDataIndex\n */\n\n\n ScrollableLegendModel.prototype.setScrollDataIndex = function (scrollDataIndex) {\n this.option.scrollDataIndex = scrollDataIndex;\n };\n\n ScrollableLegendModel.prototype.init = function (option, parentModel, ecModel) {\n var inputPositionParams = getLayoutParams(option);\n\n _super.prototype.init.call(this, option, parentModel, ecModel);\n\n mergeAndNormalizeLayoutParams(this, option, inputPositionParams);\n };\n /**\n * @override\n */\n\n\n ScrollableLegendModel.prototype.mergeOption = function (option, ecModel) {\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n mergeAndNormalizeLayoutParams(this, this.option, option);\n };\n\n ScrollableLegendModel.type = 'legend.scroll';\n ScrollableLegendModel.defaultOption = inheritDefaultOption(LegendModel.defaultOption, {\n scrollDataIndex: 0,\n pageButtonItemGap: 5,\n pageButtonGap: null,\n pageButtonPosition: 'end',\n pageFormatter: '{current}/{total}',\n pageIcons: {\n horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],\n vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']\n },\n pageIconColor: '#2f4554',\n pageIconInactiveColor: '#aaa',\n pageIconSize: 15,\n pageTextStyle: {\n color: '#333'\n },\n animationDurationUpdate: 800\n });\n return ScrollableLegendModel;\n}(LegendModel);\n\n; // Do not `ignoreSize` to enable setting {left: 10, right: 10}.\n\nfunction mergeAndNormalizeLayoutParams(legendModel, target, raw) {\n var orient = legendModel.getOrient();\n var ignoreSize = [1, 1];\n ignoreSize[orient.index] = 0;\n mergeLayoutParam(target, raw, {\n type: 'box',\n ignoreSize: !!ignoreSize\n });\n}\n\nexport default ScrollableLegendModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Separate legend and scrollable legend to reduce package size.\n */\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport LegendView from './LegendView';\nvar Group = graphic.Group;\nvar WH = ['width', 'height'];\nvar XY = ['x', 'y'];\n\nvar ScrollableLegendView =\n/** @class */\nfunction (_super) {\n __extends(ScrollableLegendView, _super);\n\n function ScrollableLegendView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScrollableLegendView.type;\n _this.newlineDisabled = true;\n _this._currentIndex = 0;\n return _this;\n }\n\n ScrollableLegendView.prototype.init = function () {\n _super.prototype.init.call(this);\n\n this.group.add(this._containerGroup = new Group());\n\n this._containerGroup.add(this.getContentGroup());\n\n this.group.add(this._controllerGroup = new Group());\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.resetInner = function () {\n _super.prototype.resetInner.call(this);\n\n this._controllerGroup.removeAll();\n\n this._containerGroup.removeClipPath();\n\n this._containerGroup.__rectSize = null;\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {\n var self = this; // Render content items.\n\n _super.prototype.renderInner.call(this, itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n var controllerGroup = this._controllerGroup; // FIXME: support be 'auto' adapt to size number text length,\n // e.g., '3/12345' should not overlap with the control arrow button.\n\n var pageIconSize = legendModel.get('pageIconSize', true);\n var pageIconSizeArr = zrUtil.isArray(pageIconSize) ? pageIconSize : [pageIconSize, pageIconSize];\n createPageButton('pagePrev', 0);\n var pageTextStyleModel = legendModel.getModel('pageTextStyle');\n controllerGroup.add(new graphic.Text({\n name: 'pageText',\n style: {\n // Placeholder to calculate a proper layout.\n text: 'xx/xx',\n fill: pageTextStyleModel.getTextColor(),\n font: pageTextStyleModel.getFont(),\n verticalAlign: 'middle',\n align: 'center'\n },\n silent: true\n }));\n createPageButton('pageNext', 1);\n\n function createPageButton(name, iconIdx) {\n var pageDataIndexName = name + 'DataIndex';\n var icon = graphic.createIcon(legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], {\n // Buttons will be created in each render, so we do not need\n // to worry about avoiding using legendModel kept in scope.\n onclick: zrUtil.bind(self._pageGo, self, pageDataIndexName, legendModel, api)\n }, {\n x: -pageIconSizeArr[0] / 2,\n y: -pageIconSizeArr[1] / 2,\n width: pageIconSizeArr[0],\n height: pageIconSizeArr[1]\n });\n icon.name = name;\n controllerGroup.add(icon);\n }\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {\n var selectorGroup = this.getSelectorGroup();\n var orientIdx = legendModel.getOrient().index;\n var wh = WH[orientIdx];\n var xy = XY[orientIdx];\n var hw = WH[1 - orientIdx];\n var yx = XY[1 - orientIdx];\n selector && layoutUtil.box( // Buttons in selectorGroup always layout horizontally\n 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));\n var selectorButtonGap = legendModel.get('selectorButtonGap', true);\n var selectorRect = selectorGroup.getBoundingRect();\n var selectorPos = [-selectorRect.x, -selectorRect.y];\n var processMaxSize = zrUtil.clone(maxSize);\n selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);\n\n var mainRect = this._layoutContentAndController(legendModel, isFirstRender, processMaxSize, orientIdx, wh, hw, yx, xy);\n\n if (selector) {\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;\n } else {\n var offset = selectorRect[wh] + selectorButtonGap;\n selectorPos[orientIdx] -= offset;\n mainRect[xy] -= offset;\n }\n\n mainRect[wh] += selectorRect[wh] + selectorButtonGap;\n selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;\n mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n selectorGroup.markRedraw();\n }\n\n return mainRect;\n };\n\n ScrollableLegendView.prototype._layoutContentAndController = function (legendModel, isFirstRender, maxSize, orientIdx, wh, hw, yx, xy) {\n var contentGroup = this.getContentGroup();\n var containerGroup = this._containerGroup;\n var controllerGroup = this._controllerGroup; // Place items in contentGroup.\n\n layoutUtil.box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height);\n layoutUtil.box( // Buttons in controller are layout always horizontally.\n 'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true));\n var contentRect = contentGroup.getBoundingRect();\n var controllerRect = controllerGroup.getBoundingRect();\n var showController = this._showController = contentRect[wh] > maxSize[wh]; // In case that the inner elements of contentGroup layout do not based on [0, 0]\n\n var contentPos = [-contentRect.x, -contentRect.y]; // Remain contentPos when scroll animation perfroming.\n // If first rendering, `contentGroup.position` is [0, 0], which\n // does not make sense and may cause unexepcted animation if adopted.\n\n if (!isFirstRender) {\n contentPos[orientIdx] = contentGroup[xy];\n } // Layout container group based on 0.\n\n\n var containerPos = [0, 0];\n var controllerPos = [-controllerRect.x, -controllerRect.y];\n var pageButtonGap = zrUtil.retrieve2(legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)); // Place containerGroup and controllerGroup and contentGroup.\n\n if (showController) {\n var pageButtonPosition = legendModel.get('pageButtonPosition', true); // controller is on the right / bottom.\n\n if (pageButtonPosition === 'end') {\n controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];\n } // controller is on the left / top.\n else {\n containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;\n }\n } // Always align controller to content as 'middle'.\n\n\n controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;\n contentGroup.setPosition(contentPos);\n containerGroup.setPosition(containerPos);\n controllerGroup.setPosition(controllerPos); // Calculate `mainRect` and set `clipPath`.\n // mainRect should not be calculated by `this.group.getBoundingRect()`\n // for sake of the overflow.\n\n var mainRect = {\n x: 0,\n y: 0\n }; // Consider content may be overflow (should be clipped).\n\n mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]); // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.\n\n mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);\n containerGroup.__rectSize = maxSize[wh];\n\n if (showController) {\n var clipShape = {\n x: 0,\n y: 0\n };\n clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);\n clipShape[hw] = mainRect[hw];\n containerGroup.setClipPath(new graphic.Rect({\n shape: clipShape\n })); // Consider content may be larger than container, container rect\n // can not be obtained from `containerGroup.getBoundingRect()`.\n\n containerGroup.__rectSize = clipShape[wh];\n } else {\n // Do not remove or ignore controller. Keep them set as placeholders.\n controllerGroup.eachChild(function (child) {\n child.attr({\n invisible: true,\n silent: true\n });\n });\n } // Content translate animation.\n\n\n var pageInfo = this._getPageInfo(legendModel);\n\n pageInfo.pageIndex != null && graphic.updateProps(contentGroup, {\n x: pageInfo.contentPosition[0],\n y: pageInfo.contentPosition[1]\n }, // When switch from \"show controller\" to \"not show controller\", view should be\n // updated immediately without animation, otherwise causes weird effect.\n showController ? legendModel : null);\n\n this._updatePageInfoView(legendModel, pageInfo);\n\n return mainRect;\n };\n\n ScrollableLegendView.prototype._pageGo = function (to, legendModel, api) {\n var scrollDataIndex = this._getPageInfo(legendModel)[to];\n\n scrollDataIndex != null && api.dispatchAction({\n type: 'legendScroll',\n scrollDataIndex: scrollDataIndex,\n legendId: legendModel.id\n });\n };\n\n ScrollableLegendView.prototype._updatePageInfoView = function (legendModel, pageInfo) {\n var controllerGroup = this._controllerGroup;\n zrUtil.each(['pagePrev', 'pageNext'], function (name) {\n var key = name + 'DataIndex';\n var canJump = pageInfo[key] != null;\n var icon = controllerGroup.childOfName(name);\n\n if (icon) {\n icon.setStyle('fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true));\n icon.cursor = canJump ? 'pointer' : 'default';\n }\n });\n var pageText = controllerGroup.childOfName('pageText');\n var pageFormatter = legendModel.get('pageFormatter');\n var pageIndex = pageInfo.pageIndex;\n var current = pageIndex != null ? pageIndex + 1 : 0;\n var total = pageInfo.pageCount;\n pageText && pageFormatter && pageText.setStyle('text', zrUtil.isString(pageFormatter) ? pageFormatter.replace('{current}', current == null ? '' : current + '').replace('{total}', total == null ? '' : total + '') : pageFormatter({\n current: current,\n total: total\n }));\n };\n /**\n * contentPosition: Array., null when data item not found.\n * pageIndex: number, null when data item not found.\n * pageCount: number, always be a number, can be 0.\n * pagePrevDataIndex: number, null when no previous page.\n * pageNextDataIndex: number, null when no next page.\n * }\n */\n\n\n ScrollableLegendView.prototype._getPageInfo = function (legendModel) {\n var scrollDataIndex = legendModel.get('scrollDataIndex', true);\n var contentGroup = this.getContentGroup();\n var containerRectSize = this._containerGroup.__rectSize;\n var orientIdx = legendModel.getOrient().index;\n var wh = WH[orientIdx];\n var xy = XY[orientIdx];\n\n var targetItemIndex = this._findTargetItemIndex(scrollDataIndex);\n\n var children = contentGroup.children();\n var targetItem = children[targetItemIndex];\n var itemCount = children.length;\n var pCount = !itemCount ? 0 : 1;\n var result = {\n contentPosition: [contentGroup.x, contentGroup.y],\n pageCount: pCount,\n pageIndex: pCount - 1,\n pagePrevDataIndex: null,\n pageNextDataIndex: null\n };\n\n if (!targetItem) {\n return result;\n }\n\n var targetItemInfo = getItemInfo(targetItem);\n result.contentPosition[orientIdx] = -targetItemInfo.s; // Strategy:\n // (1) Always align based on the left/top most item.\n // (2) It is user-friendly that the last item shown in the\n // current window is shown at the begining of next window.\n // Otherwise if half of the last item is cut by the window,\n // it will have no chance to display entirely.\n // (3) Consider that item size probably be different, we\n // have calculate pageIndex by size rather than item index,\n // and we can not get page index directly by division.\n // (4) The window is to narrow to contain more than\n // one item, we should make sure that the page can be fliped.\n\n for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i) {\n currItemInfo = getItemInfo(children[i]);\n\n if ( // Half of the last item is out of the window.\n !currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize || // If the current item does not intersect with the window, the new page\n // can be started at the current item or the last item.\n currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) {\n if (winEndItemInfo.i > winStartItemInfo.i) {\n winStartItemInfo = winEndItemInfo;\n } else {\n // e.g., when page size is smaller than item size.\n winStartItemInfo = currItemInfo;\n }\n\n if (winStartItemInfo) {\n if (result.pageNextDataIndex == null) {\n result.pageNextDataIndex = winStartItemInfo.i;\n }\n\n ++result.pageCount;\n }\n }\n\n winEndItemInfo = currItemInfo;\n }\n\n for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i) {\n currItemInfo = getItemInfo(children[i]);\n\n if ( // If the the end item does not intersect with the window started\n // from the current item, a page can be settled.\n (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s)) && // e.g., when page size is smaller than item size.\n winStartItemInfo.i < winEndItemInfo.i) {\n winEndItemInfo = winStartItemInfo;\n\n if (result.pagePrevDataIndex == null) {\n result.pagePrevDataIndex = winStartItemInfo.i;\n }\n\n ++result.pageCount;\n ++result.pageIndex;\n }\n\n winStartItemInfo = currItemInfo;\n }\n\n return result;\n\n function getItemInfo(el) {\n if (el) {\n var itemRect = el.getBoundingRect();\n var start = itemRect[xy] + el[xy];\n return {\n s: start,\n e: start + itemRect[wh],\n i: el.__legendDataIndex\n };\n }\n }\n\n function intersect(itemInfo, winStart) {\n return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;\n }\n };\n\n ScrollableLegendView.prototype._findTargetItemIndex = function (targetDataIndex) {\n if (!this._showController) {\n return 0;\n }\n\n var index;\n var contentGroup = this.getContentGroup();\n var defaultIndex;\n contentGroup.eachChild(function (child, idx) {\n var legendDataIdx = child.__legendDataIndex; // FIXME\n // If the given targetDataIndex (from model) is illegal,\n // we use defaultIndex. But the index on the legend model and\n // action payload is still illegal. That case will not be\n // changed until some scenario requires.\n\n if (defaultIndex == null && legendDataIdx != null) {\n defaultIndex = idx;\n }\n\n if (legendDataIdx === targetDataIndex) {\n index = idx;\n }\n });\n return index != null ? index : defaultIndex;\n };\n\n ScrollableLegendView.type = 'legend.scroll';\n return ScrollableLegendView;\n}(LegendView);\n\nexport default ScrollableLegendView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function installScrollableLegendAction(registers) {\n /**\n * @event legendScroll\n * @type {Object}\n * @property {string} type 'legendScroll'\n * @property {string} scrollDataIndex\n */\n registers.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) {\n var scrollDataIndex = payload.scrollDataIndex;\n scrollDataIndex != null && ecModel.eachComponent({\n mainType: 'legend',\n subType: 'scroll',\n query: payload\n }, function (legendModel) {\n legendModel.setScrollDataIndex(scrollDataIndex);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installLegendPlain } from './installLegendPlain';\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport ScrollableLegendView from './ScrollableLegendView';\nimport installScrollableLegendAction from './scrollableLegendAction';\nexport function install(registers) {\n use(installLegendPlain);\n registers.registerComponentModel(ScrollableLegendModel);\n registers.registerComponentView(ScrollableLegendView);\n installScrollableLegendAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installLegendPlain } from './installLegendPlain';\nimport { install as installLegendScroll } from './installLegendScroll';\nexport function install(registers) {\n use(installLegendPlain);\n use(installLegendScroll);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar InsideZoomModel =\n/** @class */\nfunction (_super) {\n __extends(InsideZoomModel, _super);\n\n function InsideZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = InsideZoomModel.type;\n return _this;\n }\n\n InsideZoomModel.type = 'dataZoom.inside';\n InsideZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n disabled: false,\n zoomLock: false,\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n return InsideZoomModel;\n}(DataZoomModel);\n\nexport default InsideZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Only create one roam controller for each coordinate system.\n// one roam controller might be refered by two inside data zoom\n// components (for example, one for x and one for y). When user\n// pan or zoom, only dispatch one action for those data zoom\n// components.\nimport RoamController from '../../component/helper/RoamController';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nimport { each, curry, createHashMap } from 'zrender/lib/core/util';\nimport { collectReferCoordSysModelInfo } from './helper';\nvar inner = makeInner();\nexport function setViewInfoToCoordSysRecord(api, dataZoomModel, getRange) {\n inner(api).coordSysRecordMap.each(function (coordSysRecord) {\n var dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid);\n\n if (dzInfo) {\n dzInfo.getRange = getRange;\n }\n });\n}\nexport function disposeCoordSysRecordIfNeeded(api, dataZoomModel) {\n var coordSysRecordMap = inner(api).coordSysRecordMap;\n var coordSysKeyArr = coordSysRecordMap.keys();\n\n for (var i = 0; i < coordSysKeyArr.length; i++) {\n var coordSysKey = coordSysKeyArr[i];\n var coordSysRecord = coordSysRecordMap.get(coordSysKey);\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n var dzUid = dataZoomModel.uid;\n var dzInfo = dataZoomInfoMap.get(dzUid);\n\n if (dzInfo) {\n dataZoomInfoMap.removeKey(dzUid);\n\n if (!dataZoomInfoMap.keys().length) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n }\n }\n }\n }\n}\n\nfunction disposeCoordSysRecord(coordSysRecordMap, coordSysRecord) {\n if (coordSysRecord) {\n coordSysRecordMap.removeKey(coordSysRecord.model.uid);\n var controller = coordSysRecord.controller;\n controller && controller.dispose();\n }\n}\n\nfunction createCoordSysRecord(api, coordSysModel) {\n // These init props will never change after record created.\n var coordSysRecord = {\n model: coordSysModel,\n containsPoint: curry(containsPoint, coordSysModel),\n dispatchAction: curry(dispatchAction, api),\n dataZoomInfoMap: null,\n controller: null\n }; // Must not do anything depends on coordSysRecord outside the event handler here,\n // because coordSysRecord not completed yet.\n\n var controller = coordSysRecord.controller = new RoamController(api.getZr());\n each(['pan', 'zoom', 'scrollMove'], function (eventName) {\n controller.on(eventName, function (event) {\n var batch = [];\n coordSysRecord.dataZoomInfoMap.each(function (dzInfo) {\n // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,\n // moveOnMouseWheel, ...) enabled.\n if (!event.isAvailableBehavior(dzInfo.model.option)) {\n return;\n }\n\n var method = (dzInfo.getRange || {})[eventName];\n var range = method && method(dzInfo.dzReferCoordSysInfo, coordSysRecord.model.mainType, coordSysRecord.controller, event);\n !dzInfo.model.get('disabled', true) && range && batch.push({\n dataZoomId: dzInfo.model.id,\n start: range[0],\n end: range[1]\n });\n });\n batch.length && coordSysRecord.dispatchAction(batch);\n });\n });\n return coordSysRecord;\n}\n/**\n * This action will be throttled.\n */\n\n\nfunction dispatchAction(api, batch) {\n api.dispatchAction({\n type: 'dataZoom',\n animation: {\n easing: 'cubicOut',\n duration: 100\n },\n batch: batch\n });\n}\n\nfunction containsPoint(coordSysModel, e, x, y) {\n return coordSysModel.coordinateSystem.containPoint([x, y]);\n}\n/**\n * Merge roamController settings when multiple dataZooms share one roamController.\n */\n\n\nfunction mergeControllerParams(dataZoomInfoMap) {\n var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated\n // as string, it is probably revert to reserved word by compress tool. See #7411.\n\n var prefix = 'type_';\n var typePriority = {\n 'type_true': 2,\n 'type_move': 1,\n 'type_false': 0,\n 'type_undefined': -1\n };\n var preventDefaultMouseMove = true;\n dataZoomInfoMap.each(function (dataZoomInfo) {\n var dataZoomModel = dataZoomInfo.model;\n var oneType = dataZoomModel.get('disabled', true) ? false : dataZoomModel.get('zoomLock', true) ? 'move' : true;\n\n if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) {\n controlType = oneType;\n } // Prevent default move event by default. If one false, do not prevent. Otherwise\n // users may be confused why it does not work when multiple insideZooms exist.\n\n\n preventDefaultMouseMove = preventDefaultMouseMove && dataZoomModel.get('preventDefaultMouseMove', true);\n });\n return {\n controlType: controlType,\n opt: {\n // RoamController will enable all of these functionalities,\n // and the final behavior is determined by its event listener\n // provided by each inside zoom.\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: true,\n preventDefaultMouseMove: !!preventDefaultMouseMove\n }\n };\n}\n\nexport function installDataZoomRoamProcessor(registers) {\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, function (ecModel, api) {\n var apiInner = inner(api);\n var coordSysRecordMap = apiInner.coordSysRecordMap || (apiInner.coordSysRecordMap = createHashMap());\n coordSysRecordMap.each(function (coordSysRecord) {\n // `coordSysRecordMap` always exists (becuase it hold the `roam controller`, which should\n // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.\n coordSysRecord.dataZoomInfoMap = null;\n });\n ecModel.eachComponent({\n mainType: 'dataZoom',\n subType: 'inside'\n }, function (dataZoomModel) {\n var dzReferCoordSysWrap = collectReferCoordSysModelInfo(dataZoomModel);\n each(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) {\n var coordSysUid = dzCoordSysInfo.model.uid;\n var coordSysRecord = coordSysRecordMap.get(coordSysUid) || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model));\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap || (coordSysRecord.dataZoomInfoMap = createHashMap()); // Notice these props might be changed each time for a single dataZoomModel.\n\n dataZoomInfoMap.set(dataZoomModel.uid, {\n dzReferCoordSysInfo: dzCoordSysInfo,\n model: dataZoomModel,\n getRange: null\n });\n });\n }); // (1) Merge dataZoom settings for each coord sys and set to the roam controller.\n // (2) Clear coord sys if not refered by any dataZoom.\n\n coordSysRecordMap.each(function (coordSysRecord) {\n var controller = coordSysRecord.controller;\n var firstDzInfo;\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n var firstDzKey = dataZoomInfoMap.keys()[0];\n\n if (firstDzKey != null) {\n firstDzInfo = dataZoomInfoMap.get(firstDzKey);\n }\n }\n\n if (!firstDzInfo) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n return;\n }\n\n var controllerParams = mergeControllerParams(dataZoomInfoMap);\n controller.enable(controllerParams.controlType, controllerParams.opt);\n controller.setPointerChecker(coordSysRecord.containsPoint);\n throttleUtil.createOrUpdate(coordSysRecord, 'dispatchAction', firstDzInfo.model.get('throttle', true), 'fixRate');\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomView from './DataZoomView';\nimport sliderMove from '../helper/sliderMove';\nimport * as roams from './roams';\nimport { bind } from 'zrender/lib/core/util';\n\nvar InsideZoomView =\n/** @class */\nfunction (_super) {\n __extends(InsideZoomView, _super);\n\n function InsideZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataZoom.inside';\n return _this;\n }\n\n InsideZoomView.prototype.render = function (dataZoomModel, ecModel, api) {\n _super.prototype.render.apply(this, arguments);\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n\n return;\n } // Hence the `throttle` util ensures to preserve command order,\n // here simply updating range all the time will not cause missing\n // any of the the roam change.\n\n\n this.range = dataZoomModel.getPercentRange(); // Reset controllers.\n\n roams.setViewInfoToCoordSysRecord(api, dataZoomModel, {\n pan: bind(getRangeHandlers.pan, this),\n zoom: bind(getRangeHandlers.zoom, this),\n scrollMove: bind(getRangeHandlers.scrollMove, this)\n });\n };\n\n InsideZoomView.prototype.dispose = function () {\n this._clear();\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n InsideZoomView.prototype._clear = function () {\n roams.disposeCoordSysRecordIfNeeded(this.api, this.dataZoomModel);\n this.range = null;\n };\n\n InsideZoomView.type = 'dataZoom.inside';\n return InsideZoomView;\n}(DataZoomView);\n\nvar getRangeHandlers = {\n zoom: function (coordSysInfo, coordSysMainType, controller, e) {\n var lastRange = this.range;\n var range = lastRange.slice(); // Calculate transform by the first axis.\n\n var axisModel = coordSysInfo.axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var directionInfo = getDirectionInfo[coordSysMainType](null, [e.originX, e.originY], axisModel, controller, coordSysInfo);\n var percentPoint = (directionInfo.signal > 0 ? directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel : directionInfo.pixel - directionInfo.pixelStart) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];\n var scale = Math.max(1 / e.scale, 0);\n range[0] = (range[0] - percentPoint) * scale + percentPoint;\n range[1] = (range[1] - percentPoint) * scale + percentPoint; // Restrict range.\n\n var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n },\n pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {\n var directionInfo = getDirectionInfo[coordSysMainType]([e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo);\n return directionInfo.signal * (range[1] - range[0]) * directionInfo.pixel / directionInfo.pixelLength;\n }),\n scrollMove: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {\n var directionInfo = getDirectionInfo[coordSysMainType]([0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo);\n return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta;\n })\n};\n\nfunction makeMover(getPercentDelta) {\n return function (coordSysInfo, coordSysMainType, controller, e) {\n var lastRange = this.range;\n var range = lastRange.slice(); // Calculate transform by the first axis.\n\n var axisModel = coordSysInfo.axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var percentDelta = getPercentDelta(range, axisModel, coordSysInfo, coordSysMainType, controller, e);\n sliderMove(percentDelta, range, [0, 100], 'all');\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n };\n}\n\nvar getDirectionInfo = {\n grid: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var ret = {};\n var rect = coordSysInfo.model.coordinateSystem.getRect();\n oldPoint = oldPoint || [0, 0];\n\n if (axis.dim === 'x') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // axis.dim === 'y'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n polar: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var ret = {};\n var polar = coordSysInfo.model.coordinateSystem;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var angleExtent = polar.getAngleAxis().getExtent();\n oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];\n newPoint = polar.pointToCoord(newPoint);\n\n if (axisModel.mainType === 'radiusAxis') {\n ret.pixel = newPoint[0] - oldPoint[0]; // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);\n // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);\n\n ret.pixelLength = radiusExtent[1] - radiusExtent[0];\n ret.pixelStart = radiusExtent[0];\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // 'angleAxis'\n ret.pixel = newPoint[1] - oldPoint[1]; // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);\n // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);\n\n ret.pixelLength = angleExtent[1] - angleExtent[0];\n ret.pixelStart = angleExtent[0];\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n singleAxis: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var rect = coordSysInfo.model.coordinateSystem.getRect();\n var ret = {};\n oldPoint = oldPoint || [0, 0];\n\n if (axis.orient === 'horizontal') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // 'vertical'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n }\n};\nexport default InsideZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport InsideZoomModel from './InsideZoomModel';\nimport InsideZoomView from './InsideZoomView';\nimport { installDataZoomRoamProcessor } from './roams';\nimport installCommon from './installCommon';\nexport function install(registers) {\n installCommon(registers);\n registers.registerComponentModel(InsideZoomModel);\n registers.registerComponentView(InsideZoomView);\n installDataZoomRoamProcessor(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar SliderZoomModel =\n/** @class */\nfunction (_super) {\n __extends(SliderZoomModel, _super);\n\n function SliderZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderZoomModel.type;\n return _this;\n }\n\n SliderZoomModel.type = 'dataZoom.slider';\n SliderZoomModel.layoutMode = 'box';\n SliderZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n show: true,\n // deault value can only be drived in view stage.\n right: 'ph',\n top: 'ph',\n width: 'ph',\n height: 'ph',\n left: null,\n bottom: null,\n borderColor: '#d2dbee',\n borderRadius: 3,\n backgroundColor: 'rgba(47,69,84,0)',\n // dataBackgroundColor: '#ddd',\n dataBackground: {\n lineStyle: {\n color: '#d2dbee',\n width: 0.5\n },\n areaStyle: {\n color: '#d2dbee',\n opacity: 0.2\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#8fb0f7',\n width: 0.5\n },\n areaStyle: {\n color: '#8fb0f7',\n opacity: 0.2\n }\n },\n // Color of selected window.\n fillerColor: 'rgba(135,175,274,0.2)',\n handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',\n // Percent of the slider height\n handleSize: '100%',\n handleStyle: {\n color: '#fff',\n borderColor: '#ACB8D1'\n },\n moveHandleSize: 7,\n moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',\n moveHandleStyle: {\n color: '#D2DBEE',\n opacity: 0.7\n },\n showDetail: true,\n showDataShadow: 'auto',\n realtime: true,\n zoomLock: false,\n textStyle: {\n color: '#6E7079'\n },\n brushSelect: true,\n brushStyle: {\n color: 'rgba(135,175,274,0.15)'\n },\n emphasis: {\n handleStyle: {\n borderColor: '#8FB0F7'\n },\n moveHandleStyle: {\n color: '#8FB0F7'\n }\n }\n });\n return SliderZoomModel;\n}(DataZoomModel);\n\nexport default SliderZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { bind, each, isFunction, isString, indexOf } from 'zrender/lib/core/util';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as graphic from '../../util/graphic';\nimport * as throttle from '../../util/throttle';\nimport DataZoomView from './DataZoomView';\nimport { linearMap, asc, parsePercent } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport sliderMove from '../helper/sliderMove';\nimport { getAxisMainType, collectReferCoordSysModelInfo } from './helper';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol, symbolBuildProxies } from '../../util/symbol';\nimport { deprecateLog } from '../../util/log';\nimport { createTextStyle } from '../../label/labelStyle';\nvar Rect = graphic.Rect; // Constants\n\nvar DEFAULT_LOCATION_EDGE_GAP = 7;\nvar DEFAULT_FRAME_BORDER_WIDTH = 1;\nvar DEFAULT_FILLER_SIZE = 30;\nvar DEFAULT_MOVE_HANDLE_SIZE = 7;\nvar HORIZONTAL = 'horizontal';\nvar VERTICAL = 'vertical';\nvar LABEL_GAP = 5;\nvar SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];\nvar REALTIME_ANIMATION_CONFIG = {\n easing: 'cubicOut',\n duration: 100\n};\n\nvar SliderZoomView =\n/** @class */\nfunction (_super) {\n __extends(SliderZoomView, _super);\n\n function SliderZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderZoomView.type;\n _this._displayables = {};\n return _this;\n }\n\n SliderZoomView.prototype.init = function (ecModel, api) {\n this.api = api; // A unique handler for each dataZoom component\n\n this._onBrush = bind(this._onBrush, this);\n this._onBrushEnd = bind(this._onBrushEnd, this);\n };\n\n SliderZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {\n _super.prototype.render.apply(this, arguments);\n\n throttle.createOrUpdate(this, '_dispatchZoomAction', dataZoomModel.get('throttle'), 'fixRate');\n this._orient = dataZoomModel.getOrient();\n\n if (dataZoomModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n\n this.group.removeAll();\n return;\n } // Notice: this._resetInterval() should not be executed when payload.type\n // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'\n // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,\n\n\n if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {\n this._buildView();\n }\n\n this._updateView();\n };\n\n SliderZoomView.prototype.dispose = function () {\n this._clear();\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n SliderZoomView.prototype._clear = function () {\n throttle.clear(this, '_dispatchZoomAction');\n var zr = this.api.getZr();\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n };\n\n SliderZoomView.prototype._buildView = function () {\n var thisGroup = this.group;\n thisGroup.removeAll();\n this._brushing = false;\n this._displayables.brushRect = null;\n\n this._resetLocation();\n\n this._resetInterval();\n\n var barGroup = this._displayables.sliderGroup = new graphic.Group();\n\n this._renderBackground();\n\n this._renderHandle();\n\n this._renderDataShadow();\n\n thisGroup.add(barGroup);\n\n this._positionGroup();\n };\n\n SliderZoomView.prototype._resetLocation = function () {\n var dataZoomModel = this.dataZoomModel;\n var api = this.api;\n var showMoveHandle = dataZoomModel.get('brushSelect');\n var moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0; // If some of x/y/width/height are not specified,\n // auto-adapt according to target grid.\n\n var coordRect = this._findCoordRect();\n\n var ecSize = {\n width: api.getWidth(),\n height: api.getHeight()\n }; // Default align by coordinate system rect.\n\n var positionInfo = this._orient === HORIZONTAL ? {\n // Why using 'right', because right should be used in vertical,\n // and it is better to be consistent for dealing with position param merge.\n right: ecSize.width - coordRect.x - coordRect.width,\n top: ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize,\n width: coordRect.width,\n height: DEFAULT_FILLER_SIZE\n } : {\n right: DEFAULT_LOCATION_EDGE_GAP,\n top: coordRect.y,\n width: DEFAULT_FILLER_SIZE,\n height: coordRect.height\n }; // Do not write back to option and replace value 'ph', because\n // the 'ph' value should be recalculated when resize.\n\n var layoutParams = layout.getLayoutParams(dataZoomModel.option); // Replace the placeholder value.\n\n each(['right', 'top', 'width', 'height'], function (name) {\n if (layoutParams[name] === 'ph') {\n layoutParams[name] = positionInfo[name];\n }\n });\n var layoutRect = layout.getLayoutRect(layoutParams, ecSize);\n this._location = {\n x: layoutRect.x,\n y: layoutRect.y\n };\n this._size = [layoutRect.width, layoutRect.height];\n this._orient === VERTICAL && this._size.reverse();\n };\n\n SliderZoomView.prototype._positionGroup = function () {\n var thisGroup = this.group;\n var location = this._location;\n var orient = this._orient; // Just use the first axis to determine mapping.\n\n var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();\n var inverse = targetAxisModel && targetAxisModel.get('inverse');\n var sliderGroup = this._displayables.sliderGroup;\n var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse; // Transform barGroup.\n\n sliderGroup.attr(orient === HORIZONTAL && !inverse ? {\n scaleY: otherAxisInverse ? 1 : -1,\n scaleX: 1\n } : orient === HORIZONTAL && inverse ? {\n scaleY: otherAxisInverse ? 1 : -1,\n scaleX: -1\n } : orient === VERTICAL && !inverse ? {\n scaleY: otherAxisInverse ? -1 : 1,\n scaleX: 1,\n rotation: Math.PI / 2\n } // Dont use Math.PI, considering shadow direction.\n : {\n scaleY: otherAxisInverse ? -1 : 1,\n scaleX: -1,\n rotation: Math.PI / 2\n }); // Position barGroup\n\n var rect = thisGroup.getBoundingRect([sliderGroup]);\n thisGroup.x = location.x - rect.x;\n thisGroup.y = location.y - rect.y;\n thisGroup.markRedraw();\n };\n\n SliderZoomView.prototype._getViewExtent = function () {\n return [0, this._size[0]];\n };\n\n SliderZoomView.prototype._renderBackground = function () {\n var dataZoomModel = this.dataZoomModel;\n var size = this._size;\n var barGroup = this._displayables.sliderGroup;\n var brushSelect = dataZoomModel.get('brushSelect');\n barGroup.add(new Rect({\n silent: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1]\n },\n style: {\n fill: dataZoomModel.get('backgroundColor')\n },\n z2: -40\n })); // Click panel, over shadow, below handles.\n\n var clickPanel = new Rect({\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1]\n },\n style: {\n fill: 'transparent'\n },\n z2: 0,\n onclick: bind(this._onClickPanel, this)\n });\n var zr = this.api.getZr();\n\n if (brushSelect) {\n clickPanel.on('mousedown', this._onBrushStart, this);\n clickPanel.cursor = 'crosshair';\n zr.on('mousemove', this._onBrush);\n zr.on('mouseup', this._onBrushEnd);\n } else {\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n barGroup.add(clickPanel);\n };\n\n SliderZoomView.prototype._renderDataShadow = function () {\n var info = this._dataShadowInfo = this._prepareDataShadowInfo();\n\n this._displayables.dataShadowSegs = [];\n\n if (!info) {\n return;\n }\n\n var size = this._size;\n var seriesModel = info.series;\n var data = seriesModel.getRawData();\n var otherDim = seriesModel.getShadowDim ? seriesModel.getShadowDim() // @see candlestick\n : info.otherDim;\n\n if (otherDim == null) {\n return;\n }\n\n var otherDataExtent = data.getDataExtent(otherDim); // Nice extent.\n\n var otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;\n otherDataExtent = [otherDataExtent[0] - otherOffset, otherDataExtent[1] + otherOffset];\n var otherShadowExtent = [0, size[1]];\n var thisShadowExtent = [0, size[0]];\n var areaPoints = [[size[0], 0], [0, 0]];\n var linePoints = [];\n var step = thisShadowExtent[1] / (data.count() - 1);\n var thisCoord = 0; // Optimize for large data shadow\n\n var stride = Math.round(data.count() / size[0]);\n var lastIsEmpty;\n data.each([otherDim], function (value, index) {\n if (stride > 0 && index % stride) {\n thisCoord += step;\n return;\n } // FIXME\n // Should consider axis.min/axis.max when drawing dataShadow.\n // FIXME\n // 应该使用统一的空判断?还是在list里进行空判断?\n\n\n var isEmpty = value == null || isNaN(value) || value === ''; // See #4235.\n\n var otherCoord = isEmpty ? 0 : linearMap(value, otherDataExtent, otherShadowExtent, true); // Attempt to draw data shadow precisely when there are empty value.\n\n if (isEmpty && !lastIsEmpty && index) {\n areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]);\n linePoints.push([linePoints[linePoints.length - 1][0], 0]);\n } else if (!isEmpty && lastIsEmpty) {\n areaPoints.push([thisCoord, 0]);\n linePoints.push([thisCoord, 0]);\n }\n\n areaPoints.push([thisCoord, otherCoord]);\n linePoints.push([thisCoord, otherCoord]);\n thisCoord += step;\n lastIsEmpty = isEmpty;\n });\n var dataZoomModel = this.dataZoomModel;\n\n function createDataShadowGroup(isSelectedArea) {\n var model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground');\n var group = new graphic.Group();\n var polygon = new graphic.Polygon({\n shape: {\n points: areaPoints\n },\n segmentIgnoreThreshold: 1,\n style: model.getModel('areaStyle').getAreaStyle(),\n silent: true,\n z2: -20\n });\n var polyline = new graphic.Polyline({\n shape: {\n points: linePoints\n },\n segmentIgnoreThreshold: 1,\n style: model.getModel('lineStyle').getLineStyle(),\n silent: true,\n z2: -19\n });\n group.add(polygon);\n group.add(polyline);\n return group;\n } // let dataBackgroundModel = dataZoomModel.getModel('dataBackground');\n\n\n for (var i = 0; i < 3; i++) {\n var group = createDataShadowGroup(i === 1);\n\n this._displayables.sliderGroup.add(group);\n\n this._displayables.dataShadowSegs.push(group);\n }\n };\n\n SliderZoomView.prototype._prepareDataShadowInfo = function () {\n var dataZoomModel = this.dataZoomModel;\n var showDataShadow = dataZoomModel.get('showDataShadow');\n\n if (showDataShadow === false) {\n return;\n } // Find a representative series.\n\n\n var result;\n var ecModel = this.ecModel;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var seriesModels = dataZoomModel.getAxisProxy(axisDim, axisIndex).getTargetSeriesModels();\n each(seriesModels, function (seriesModel) {\n if (result) {\n return;\n }\n\n if (showDataShadow !== true && indexOf(SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')) < 0) {\n return;\n }\n\n var thisAxis = ecModel.getComponent(getAxisMainType(axisDim), axisIndex).axis;\n var otherDim = getOtherDim(axisDim);\n var otherAxisInverse;\n var coordSys = seriesModel.coordinateSystem;\n\n if (otherDim != null && coordSys.getOtherAxis) {\n otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;\n }\n\n otherDim = seriesModel.getData().mapDimension(otherDim);\n result = {\n thisAxis: thisAxis,\n series: seriesModel,\n thisDim: axisDim,\n otherDim: otherDim,\n otherAxisInverse: otherAxisInverse\n };\n }, this);\n }, this);\n return result;\n };\n\n SliderZoomView.prototype._renderHandle = function () {\n var thisGroup = this.group;\n var displayables = this._displayables;\n var handles = displayables.handles = [null, null];\n var handleLabels = displayables.handleLabels = [null, null];\n var sliderGroup = this._displayables.sliderGroup;\n var size = this._size;\n var dataZoomModel = this.dataZoomModel;\n var api = this.api;\n var borderRadius = dataZoomModel.get('borderRadius') || 0;\n var brushSelect = dataZoomModel.get('brushSelect');\n var filler = displayables.filler = new Rect({\n silent: brushSelect,\n style: {\n fill: dataZoomModel.get('fillerColor')\n },\n textConfig: {\n position: 'inside'\n }\n });\n sliderGroup.add(filler); // Frame border.\n\n sliderGroup.add(new Rect({\n silent: true,\n subPixelOptimize: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1],\n r: borderRadius\n },\n style: {\n stroke: dataZoomModel.get('dataBackgroundColor') // deprecated option\n || dataZoomModel.get('borderColor'),\n lineWidth: DEFAULT_FRAME_BORDER_WIDTH,\n fill: 'rgba(0,0,0,0)'\n }\n })); // Left and right handle to resize\n\n each([0, 1], function (handleIndex) {\n var iconStr = dataZoomModel.get('handleIcon');\n\n if (!symbolBuildProxies[iconStr] && iconStr.indexOf('path://') < 0 && iconStr.indexOf('image://') < 0) {\n // Compatitable with the old icon parsers. Which can use a path string without path://\n iconStr = 'path://' + iconStr;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('handleIcon now needs \\'path://\\' prefix when using a path string');\n }\n }\n\n var path = createSymbol(iconStr, -1, 0, 2, 2, null, true);\n path.attr({\n cursor: getCursor(this._orient),\n draggable: true,\n drift: bind(this._onDragMove, this, handleIndex),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false),\n z2: 5\n });\n var bRect = path.getBoundingRect();\n var handleSize = dataZoomModel.get('handleSize');\n this._handleHeight = parsePercent(handleSize, this._size[1]);\n this._handleWidth = bRect.width / bRect.height * this._handleHeight;\n path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());\n path.style.strokeNoScale = true;\n path.rectHover = true;\n path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n enableHoverEmphasis(path);\n var handleColor = dataZoomModel.get('handleColor'); // deprecated option\n // Compatitable with previous version\n\n if (handleColor != null) {\n path.style.fill = handleColor;\n }\n\n sliderGroup.add(handles[handleIndex] = path);\n var textStyleModel = dataZoomModel.getModel('textStyle');\n thisGroup.add(handleLabels[handleIndex] = new graphic.Text({\n silent: true,\n invisible: true,\n style: createTextStyle(textStyleModel, {\n x: 0,\n y: 0,\n text: '',\n verticalAlign: 'middle',\n align: 'center',\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }),\n z2: 10\n }));\n }, this); // Handle to move. Only visible when brushSelect is set true.\n\n var actualMoveZone = filler;\n\n if (brushSelect) {\n var moveHandleHeight = parsePercent(dataZoomModel.get('moveHandleSize'), size[1]);\n var moveHandle_1 = displayables.moveHandle = new graphic.Rect({\n style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(),\n silent: true,\n shape: {\n r: [0, 0, 2, 2],\n y: size[1] - 0.5,\n height: moveHandleHeight\n }\n });\n var iconSize = moveHandleHeight * 0.8;\n var moveHandleIcon = displayables.moveHandleIcon = createSymbol(dataZoomModel.get('moveHandleIcon'), -iconSize / 2, -iconSize / 2, iconSize, iconSize, '#fff', true);\n moveHandleIcon.silent = true;\n moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5;\n moveHandle_1.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'moveHandleStyle']).getItemStyle();\n var moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10));\n actualMoveZone = displayables.moveZone = new graphic.Rect({\n invisible: true,\n shape: {\n y: size[1] - moveZoneExpandSize,\n height: moveHandleHeight + moveZoneExpandSize\n }\n });\n actualMoveZone.on('mouseover', function () {\n api.enterEmphasis(moveHandle_1);\n }).on('mouseout', function () {\n api.leaveEmphasis(moveHandle_1);\n });\n sliderGroup.add(moveHandle_1);\n sliderGroup.add(moveHandleIcon);\n sliderGroup.add(actualMoveZone);\n }\n\n actualMoveZone.attr({\n draggable: true,\n cursor: getCursor(this._orient),\n drift: bind(this._onDragMove, this, 'all'),\n ondragstart: bind(this._showDataInfo, this, true),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false)\n });\n };\n\n SliderZoomView.prototype._resetInterval = function () {\n var range = this._range = this.dataZoomModel.getPercentRange();\n\n var viewExtent = this._getViewExtent();\n\n this._handleEnds = [linearMap(range[0], [0, 100], viewExtent, true), linearMap(range[1], [0, 100], viewExtent, true)];\n };\n\n SliderZoomView.prototype._updateInterval = function (handleIndex, delta) {\n var dataZoomModel = this.dataZoomModel;\n var handleEnds = this._handleEnds;\n\n var viewExtend = this._getViewExtent();\n\n var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n var percentExtent = [0, 100];\n sliderMove(delta, handleEnds, viewExtend, dataZoomModel.get('zoomLock') ? 'all' : handleIndex, minMaxSpan.minSpan != null ? linearMap(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null, minMaxSpan.maxSpan != null ? linearMap(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null);\n var lastRange = this._range;\n var range = this._range = asc([linearMap(handleEnds[0], viewExtend, percentExtent, true), linearMap(handleEnds[1], viewExtend, percentExtent, true)]);\n return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1];\n };\n\n SliderZoomView.prototype._updateView = function (nonRealtime) {\n var displaybles = this._displayables;\n var handleEnds = this._handleEnds;\n var handleInterval = asc(handleEnds.slice());\n var size = this._size;\n each([0, 1], function (handleIndex) {\n // Handles\n var handle = displaybles.handles[handleIndex];\n var handleHeight = this._handleHeight;\n handle.attr({\n scaleX: handleHeight / 2,\n scaleY: handleHeight / 2,\n // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.\n // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.\n x: handleEnds[handleIndex] + (handleIndex ? -1 : 1),\n y: size[1] / 2 - handleHeight / 2\n });\n }, this); // Filler\n\n displaybles.filler.setShape({\n x: handleInterval[0],\n y: 0,\n width: handleInterval[1] - handleInterval[0],\n height: size[1]\n });\n var viewExtent = {\n x: handleInterval[0],\n width: handleInterval[1] - handleInterval[0]\n }; // Move handle\n\n if (displaybles.moveHandle) {\n displaybles.moveHandle.setShape(viewExtent);\n displaybles.moveZone.setShape(viewExtent); // Force update path on the invisible object\n\n displaybles.moveZone.getBoundingRect();\n displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2);\n } // update clip path of shadow.\n\n\n var dataShadowSegs = displaybles.dataShadowSegs;\n var segIntervals = [0, handleInterval[0], handleInterval[1], size[0]];\n\n for (var i = 0; i < dataShadowSegs.length; i++) {\n var segGroup = dataShadowSegs[i];\n var clipPath = segGroup.getClipPath();\n\n if (!clipPath) {\n clipPath = new graphic.Rect();\n segGroup.setClipPath(clipPath);\n }\n\n clipPath.setShape({\n x: segIntervals[i],\n y: 0,\n width: segIntervals[i + 1] - segIntervals[i],\n height: size[1]\n });\n }\n\n this._updateDataInfo(nonRealtime);\n };\n\n SliderZoomView.prototype._updateDataInfo = function (nonRealtime) {\n var dataZoomModel = this.dataZoomModel;\n var displaybles = this._displayables;\n var handleLabels = displaybles.handleLabels;\n var orient = this._orient;\n var labelTexts = ['', '']; // FIXME\n // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter)\n\n if (dataZoomModel.get('showDetail')) {\n var axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n var axis = axisProxy.getAxisModel().axis;\n var range = this._range;\n var dataInterval = nonRealtime // See #4434, data and axis are not processed and reset yet in non-realtime mode.\n ? axisProxy.calculateDataWindow({\n start: range[0],\n end: range[1]\n }).valueWindow : axisProxy.getDataValueWindow();\n labelTexts = [this._formatLabel(dataInterval[0], axis), this._formatLabel(dataInterval[1], axis)];\n }\n }\n\n var orderedHandleEnds = asc(this._handleEnds.slice());\n setLabel.call(this, 0);\n setLabel.call(this, 1);\n\n function setLabel(handleIndex) {\n // Label\n // Text should not transform by barGroup.\n // Ignore handlers transform\n var barTransform = graphic.getTransform(displaybles.handles[handleIndex].parent, this.group);\n var direction = graphic.transformDirection(handleIndex === 0 ? 'right' : 'left', barTransform);\n var offset = this._handleWidth / 2 + LABEL_GAP;\n var textPoint = graphic.applyTransform([orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset), this._size[1] / 2], barTransform);\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n verticalAlign: orient === HORIZONTAL ? 'middle' : direction,\n align: orient === HORIZONTAL ? direction : 'center',\n text: labelTexts[handleIndex]\n });\n }\n };\n\n SliderZoomView.prototype._formatLabel = function (value, axis) {\n var dataZoomModel = this.dataZoomModel;\n var labelFormatter = dataZoomModel.get('labelFormatter');\n var labelPrecision = dataZoomModel.get('labelPrecision');\n\n if (labelPrecision == null || labelPrecision === 'auto') {\n labelPrecision = axis.getPixelPrecision();\n }\n\n var valueStr = value == null || isNaN(value) ? '' // FIXME Glue code\n : axis.type === 'category' || axis.type === 'time' ? axis.scale.getLabel({\n value: Math.round(value)\n }) // param of toFixed should less then 20.\n : value.toFixed(Math.min(labelPrecision, 20));\n return isFunction(labelFormatter) ? labelFormatter(value, valueStr) : isString(labelFormatter) ? labelFormatter.replace('{value}', valueStr) : valueStr;\n };\n /**\n * @param showOrHide true: show, false: hide\n */\n\n\n SliderZoomView.prototype._showDataInfo = function (showOrHide) {\n // Always show when drgging.\n showOrHide = this._dragging || showOrHide;\n var displayables = this._displayables;\n var handleLabels = displayables.handleLabels;\n handleLabels[0].attr('invisible', !showOrHide);\n handleLabels[1].attr('invisible', !showOrHide); // Highlight move handle\n\n displayables.moveHandle && this.api[showOrHide ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1);\n };\n\n SliderZoomView.prototype._onDragMove = function (handleIndex, dx, dy, event) {\n this._dragging = true; // For mobile device, prevent screen slider on the button.\n\n eventTool.stop(event.event); // Transform dx, dy to bar coordination.\n\n var barTransform = this._displayables.sliderGroup.getLocalTransform();\n\n var vertex = graphic.applyTransform([dx, dy], barTransform, true);\n\n var changed = this._updateInterval(handleIndex, vertex[0]);\n\n var realtime = this.dataZoomModel.get('realtime');\n\n this._updateView(!realtime); // Avoid dispatch dataZoom repeatly but range not changed,\n // which cause bad visual effect when progressive enabled.\n\n\n changed && realtime && this._dispatchZoomAction(true);\n };\n\n SliderZoomView.prototype._onDragEnd = function () {\n this._dragging = false;\n\n this._showDataInfo(false); // While in realtime mode and stream mode, dispatch action when\n // drag end will cause the whole view rerender, which is unnecessary.\n\n\n var realtime = this.dataZoomModel.get('realtime');\n !realtime && this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onClickPanel = function (e) {\n var size = this._size;\n\n var localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);\n\n if (localPoint[0] < 0 || localPoint[0] > size[0] || localPoint[1] < 0 || localPoint[1] > size[1]) {\n return;\n }\n\n var handleEnds = this._handleEnds;\n var center = (handleEnds[0] + handleEnds[1]) / 2;\n\n var changed = this._updateInterval('all', localPoint[0] - center);\n\n this._updateView();\n\n changed && this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onBrushStart = function (e) {\n var x = e.offsetX;\n var y = e.offsetY;\n this._brushStart = new graphic.Point(x, y);\n this._brushing = true;\n this._brushStartTime = +new Date(); // this._updateBrushRect(x, y);\n };\n\n SliderZoomView.prototype._onBrushEnd = function (e) {\n if (!this._brushing) {\n return;\n }\n\n var brushRect = this._displayables.brushRect;\n this._brushing = false;\n\n if (!brushRect) {\n return;\n }\n\n brushRect.attr('ignore', true);\n var brushShape = brushRect.shape;\n var brushEndTime = +new Date(); // console.log(brushEndTime - this._brushStartTime);\n\n if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) {\n // Will treat it as a click\n return;\n }\n\n var viewExtend = this._getViewExtent();\n\n var percentExtent = [0, 100];\n this._range = asc([linearMap(brushShape.x, viewExtend, percentExtent, true), linearMap(brushShape.x + brushShape.width, viewExtend, percentExtent, true)]);\n this._handleEnds = [brushShape.x, brushShape.x + brushShape.width];\n\n this._updateView();\n\n this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onBrush = function (e) {\n if (this._brushing) {\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(e.event);\n\n this._updateBrushRect(e.offsetX, e.offsetY);\n }\n };\n\n SliderZoomView.prototype._updateBrushRect = function (mouseX, mouseY) {\n var displayables = this._displayables;\n var dataZoomModel = this.dataZoomModel;\n var brushRect = displayables.brushRect;\n\n if (!brushRect) {\n brushRect = displayables.brushRect = new Rect({\n silent: true,\n style: dataZoomModel.getModel('brushStyle').getItemStyle()\n });\n displayables.sliderGroup.add(brushRect);\n }\n\n brushRect.attr('ignore', false);\n var brushStart = this._brushStart;\n var sliderGroup = this._displayables.sliderGroup;\n var endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY);\n var startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y);\n var size = this._size;\n endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0);\n brushRect.setShape({\n x: startPoint[0],\n y: 0,\n width: endPoint[0] - startPoint[0],\n height: size[1]\n });\n };\n /**\n * This action will be throttled.\n */\n\n\n SliderZoomView.prototype._dispatchZoomAction = function (realtime) {\n var range = this._range;\n this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n dataZoomId: this.dataZoomModel.id,\n animation: realtime ? REALTIME_ANIMATION_CONFIG : null,\n start: range[0],\n end: range[1]\n });\n };\n\n SliderZoomView.prototype._findCoordRect = function () {\n // Find the grid coresponding to the first axis referred by dataZoom.\n var rect;\n var coordSysInfoList = collectReferCoordSysModelInfo(this.dataZoomModel).infoList;\n\n if (!rect && coordSysInfoList.length) {\n var coordSys = coordSysInfoList[0].model.coordinateSystem;\n rect = coordSys.getRect && coordSys.getRect();\n }\n\n if (!rect) {\n var width = this.api.getWidth();\n var height = this.api.getHeight();\n rect = {\n x: width * 0.2,\n y: height * 0.2,\n width: width * 0.6,\n height: height * 0.6\n };\n }\n\n return rect;\n };\n\n SliderZoomView.type = 'dataZoom.slider';\n return SliderZoomView;\n}(DataZoomView);\n\nfunction getOtherDim(thisDim) {\n // FIXME\n // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好\n var map = {\n x: 'y',\n y: 'x',\n radius: 'angle',\n angle: 'radius'\n };\n return map[thisDim];\n}\n\nfunction getCursor(orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default SliderZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SliderZoomModel from './SliderZoomModel';\nimport SliderZoomView from './SliderZoomView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(SliderZoomModel);\n registers.registerComponentView(SliderZoomView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installDataZoomInside } from './installDataZoomInside';\nimport { install as installDataZoomSlider } from './installDataZoomSlider';\nexport function install(registers) {\n use(installDataZoomInside);\n use(installDataZoomSlider); // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual mapping.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nvar visualDefault = {\n /**\n * @public\n */\n get: function (visualType, key, isCategory) {\n var value = zrUtil.clone((defaultOption[visualType] || {})[key]);\n return isCategory ? zrUtil.isArray(value) ? value[value.length - 1] : value : value;\n }\n};\nvar defaultOption = {\n color: {\n active: ['#006edd', '#e0ffff'],\n inactive: ['rgba(0,0,0,0)']\n },\n colorHue: {\n active: [0, 360],\n inactive: [0, 0]\n },\n colorSaturation: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n colorLightness: {\n active: [0.9, 0.5],\n inactive: [0, 0]\n },\n colorAlpha: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n opacity: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n symbol: {\n active: ['circle', 'roundRect', 'diamond'],\n inactive: ['none']\n },\n symbolSize: {\n active: [10, 50],\n inactive: [0, 0]\n }\n};\nexport default visualDefault;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport visualDefault from '../../visual/visualDefault';\nimport VisualMapping from '../../visual/VisualMapping';\nimport * as visualSolution from '../../visual/visualSolution';\nimport * as modelUtil from '../../util/model';\nimport * as numberUtil from '../../util/number';\nimport ComponentModel from '../../model/Component';\nvar mapVisual = VisualMapping.mapVisual;\nvar eachVisual = VisualMapping.eachVisual;\nvar isArray = zrUtil.isArray;\nvar each = zrUtil.each;\nvar asc = numberUtil.asc;\nvar linearMap = numberUtil.linearMap;\n\nvar VisualMapModel =\n/** @class */\nfunction (_super) {\n __extends(VisualMapModel, _super);\n\n function VisualMapModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = VisualMapModel.type;\n _this.stateList = ['inRange', 'outOfRange'];\n _this.replacableOptionKeys = ['inRange', 'outOfRange', 'target', 'controller', 'color'];\n _this.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n /**\n * [lowerBound, upperBound]\n */\n\n _this.dataBound = [-Infinity, Infinity];\n _this.targetVisuals = {};\n _this.controllerVisuals = {};\n return _this;\n }\n\n VisualMapModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option; // FIXME\n // necessary?\n // Disable realtime view update if canvas is not supported.\n\n if (!env.canvasSupported) {\n thisOption.realtime = false;\n }\n\n !isInit && visualSolution.replaceVisualOption(thisOption, newOption, this.replacableOptionKeys);\n this.textStyleModel = this.getModel('textStyle');\n this.resetItemSize();\n this.completeVisualOption();\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.resetVisual = function (supplementVisualOption) {\n var stateList = this.stateList;\n supplementVisualOption = zrUtil.bind(supplementVisualOption, this);\n this.controllerVisuals = visualSolution.createVisualMappings(this.option.controller, stateList, supplementVisualOption);\n this.targetVisuals = visualSolution.createVisualMappings(this.option.target, stateList, supplementVisualOption);\n };\n /**\n * @public\n */\n\n\n VisualMapModel.prototype.getItemSymbol = function () {\n return null;\n };\n /**\n * @protected\n * @return {Array.} An array of series indices.\n */\n\n\n VisualMapModel.prototype.getTargetSeriesIndices = function () {\n var optionSeriesIndex = this.option.seriesIndex;\n var seriesIndices = [];\n\n if (optionSeriesIndex == null || optionSeriesIndex === 'all') {\n this.ecModel.eachSeries(function (seriesModel, index) {\n seriesIndices.push(index);\n });\n } else {\n seriesIndices = modelUtil.normalizeToArray(optionSeriesIndex);\n }\n\n return seriesIndices;\n };\n /**\n * @public\n */\n\n\n VisualMapModel.prototype.eachTargetSeries = function (callback, context) {\n zrUtil.each(this.getTargetSeriesIndices(), function (seriesIndex) {\n var seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);\n\n if (seriesModel) {\n callback.call(context, seriesModel);\n }\n }, this);\n };\n /**\n * @pubilc\n */\n\n\n VisualMapModel.prototype.isTargetSeries = function (seriesModel) {\n var is = false;\n this.eachTargetSeries(function (model) {\n model === seriesModel && (is = true);\n });\n return is;\n };\n /**\n * @example\n * this.formatValueText(someVal); // format single numeric value to text.\n * this.formatValueText(someVal, true); // format single category value to text.\n * this.formatValueText([min, max]); // format numeric min-max to text.\n * this.formatValueText([this.dataBound[0], max]); // using data lower bound.\n * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.\n *\n * @param value Real value, or this.dataBound[0 or 1].\n * @param isCategory Only available when value is number.\n * @param edgeSymbols Open-close symbol when value is interval.\n * @protected\n */\n\n\n VisualMapModel.prototype.formatValueText = function (value, isCategory, edgeSymbols) {\n var option = this.option;\n var precision = option.precision;\n var dataBound = this.dataBound;\n var formatter = option.formatter;\n var isMinMax;\n edgeSymbols = edgeSymbols || ['<', '>'];\n\n if (zrUtil.isArray(value)) {\n value = value.slice();\n isMinMax = true;\n }\n\n var textValue = isCategory ? value // Value is string when isCategory\n : isMinMax ? [toFixed(value[0]), toFixed(value[1])] : toFixed(value);\n\n if (zrUtil.isString(formatter)) {\n return formatter.replace('{value}', isMinMax ? textValue[0] : textValue).replace('{value2}', isMinMax ? textValue[1] : textValue);\n } else if (zrUtil.isFunction(formatter)) {\n return isMinMax ? formatter(value[0], value[1]) : formatter(value);\n }\n\n if (isMinMax) {\n if (value[0] === dataBound[0]) {\n return edgeSymbols[0] + ' ' + textValue[1];\n } else if (value[1] === dataBound[1]) {\n return edgeSymbols[1] + ' ' + textValue[0];\n } else {\n return textValue[0] + ' - ' + textValue[1];\n }\n } else {\n // Format single value (includes category case).\n return textValue;\n }\n\n function toFixed(val) {\n return val === dataBound[0] ? 'min' : val === dataBound[1] ? 'max' : (+val).toFixed(Math.min(precision, 20));\n }\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.resetExtent = function () {\n var thisOption = this.option; // Can not calculate data extent by data here.\n // Because series and data may be modified in processing stage.\n // So we do not support the feature \"auto min/max\".\n\n var extent = asc([thisOption.min, thisOption.max]);\n this._dataExtent = extent;\n };\n /**\n * Return Concrete dimention. If return null/undefined, no dimension used.\n */\n\n\n VisualMapModel.prototype.getDataDimension = function (list) {\n var optDim = this.option.dimension;\n var listDimensions = list.dimensions;\n\n if (optDim == null && !listDimensions.length) {\n return;\n }\n\n if (optDim != null) {\n return list.getDimension(optDim);\n }\n\n var dimNames = list.dimensions;\n\n for (var i = dimNames.length - 1; i >= 0; i--) {\n var dimName = dimNames[i];\n var dimInfo = list.getDimensionInfo(dimName);\n\n if (!dimInfo.isCalculationCoord) {\n return dimName;\n }\n }\n };\n\n VisualMapModel.prototype.getExtent = function () {\n return this._dataExtent.slice();\n };\n\n VisualMapModel.prototype.completeVisualOption = function () {\n var ecModel = this.ecModel;\n var thisOption = this.option;\n var base = {\n inRange: thisOption.inRange,\n outOfRange: thisOption.outOfRange\n };\n var target = thisOption.target || (thisOption.target = {});\n var controller = thisOption.controller || (thisOption.controller = {});\n zrUtil.merge(target, base); // Do not override\n\n zrUtil.merge(controller, base); // Do not override\n\n var isCategory = this.isCategory();\n completeSingle.call(this, target);\n completeSingle.call(this, controller);\n completeInactive.call(this, target, 'inRange', 'outOfRange'); // completeInactive.call(this, target, 'outOfRange', 'inRange');\n\n completeController.call(this, controller);\n\n function completeSingle(base) {\n // Compatible with ec2 dataRange.color.\n // The mapping order of dataRange.color is: [high value, ..., low value]\n // whereas inRange.color and outOfRange.color is [low value, ..., high value]\n // Notice: ec2 has no inverse.\n if (isArray(thisOption.color) // If there has been inRange: {symbol: ...}, adding color is a mistake.\n // So adding color only when no inRange defined.\n && !base.inRange) {\n base.inRange = {\n color: thisOption.color.slice().reverse()\n };\n } // Compatible with previous logic, always give a defautl color, otherwise\n // simple config with no inRange and outOfRange will not work.\n // Originally we use visualMap.color as the default color, but setOption at\n // the second time the default color will be erased. So we change to use\n // constant DEFAULT_COLOR.\n // If user do not want the default color, set inRange: {color: null}.\n\n\n base.inRange = base.inRange || {\n color: ecModel.get('gradientColor')\n };\n }\n\n function completeInactive(base, stateExist, stateAbsent) {\n var optExist = base[stateExist];\n var optAbsent = base[stateAbsent];\n\n if (optExist && !optAbsent) {\n optAbsent = base[stateAbsent] = {};\n each(optExist, function (visualData, visualType) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n var defa = visualDefault.get(visualType, 'inactive', isCategory);\n\n if (defa != null) {\n optAbsent[visualType] = defa; // Compatibable with ec2:\n // Only inactive color to rgba(0,0,0,0) can not\n // make label transparent, so use opacity also.\n\n if (visualType === 'color' && !optAbsent.hasOwnProperty('opacity') && !optAbsent.hasOwnProperty('colorAlpha')) {\n optAbsent.opacity = [0, 0];\n }\n }\n });\n }\n }\n\n function completeController(controller) {\n var symbolExists = (controller.inRange || {}).symbol || (controller.outOfRange || {}).symbol;\n var symbolSizeExists = (controller.inRange || {}).symbolSize || (controller.outOfRange || {}).symbolSize;\n var inactiveColor = this.get('inactiveColor');\n var itemSymbol = this.getItemSymbol();\n var defaultSymbol = itemSymbol || 'roundRect';\n each(this.stateList, function (state) {\n var itemSize = this.itemSize;\n var visuals = controller[state]; // Set inactive color for controller if no other color\n // attr (like colorAlpha) specified.\n\n if (!visuals) {\n visuals = controller[state] = {\n color: isCategory ? inactiveColor : [inactiveColor]\n };\n } // Consistent symbol and symbolSize if not specified.\n\n\n if (visuals.symbol == null) {\n visuals.symbol = symbolExists && zrUtil.clone(symbolExists) || (isCategory ? defaultSymbol : [defaultSymbol]);\n }\n\n if (visuals.symbolSize == null) {\n visuals.symbolSize = symbolSizeExists && zrUtil.clone(symbolSizeExists) || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);\n } // Filter none\n\n\n visuals.symbol = mapVisual(visuals.symbol, function (symbol) {\n return symbol === 'none' ? defaultSymbol : symbol;\n }); // Normalize symbolSize\n\n var symbolSize = visuals.symbolSize;\n\n if (symbolSize != null) {\n var max_1 = -Infinity; // symbolSize can be object when categories defined.\n\n eachVisual(symbolSize, function (value) {\n value > max_1 && (max_1 = value);\n });\n visuals.symbolSize = mapVisual(symbolSize, function (value) {\n return linearMap(value, [0, max_1], [0, itemSize[0]], true);\n });\n }\n }, this);\n }\n };\n\n VisualMapModel.prototype.resetItemSize = function () {\n this.itemSize = [parseFloat(this.get('itemWidth')), parseFloat(this.get('itemHeight'))];\n };\n\n VisualMapModel.prototype.isCategory = function () {\n return !!this.option.categories;\n };\n /**\n * @public\n * @abstract\n */\n\n\n VisualMapModel.prototype.setSelected = function (selected) {};\n\n VisualMapModel.prototype.getSelected = function () {\n return null;\n };\n /**\n * @public\n * @abstract\n */\n\n\n VisualMapModel.prototype.getValueState = function (value) {\n return null;\n };\n /**\n * FIXME\n * Do not publish to thirt-part-dev temporarily\n * util the interface is stable. (Should it return\n * a function but not visual meta?)\n *\n * @pubilc\n * @abstract\n * @param getColorVisual\n * params: value, valueState\n * return: color\n * @return {Object} visualMeta\n * should includes {stops, outerColors}\n * outerColor means [colorBeyondMinValue, colorBeyondMaxValue]\n */\n\n\n VisualMapModel.prototype.getVisualMeta = function (getColorVisual) {\n return null;\n };\n\n VisualMapModel.type = 'visualMap';\n VisualMapModel.dependencies = ['series'];\n VisualMapModel.defaultOption = {\n show: true,\n zlevel: 0,\n z: 4,\n seriesIndex: 'all',\n min: 0,\n max: 200,\n left: 0,\n right: null,\n top: null,\n bottom: 0,\n itemWidth: null,\n itemHeight: null,\n inverse: false,\n orient: 'vertical',\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n contentColor: '#5793f3',\n inactiveColor: '#aaa',\n borderWidth: 0,\n padding: 5,\n // 接受数组分别设定上右下左边距,同css\n textGap: 10,\n precision: 0,\n textStyle: {\n color: '#333' // 值域文字颜色\n\n }\n };\n return VisualMapModel;\n}(ComponentModel);\n\nexport default VisualMapModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapModel from './VisualMapModel';\nimport * as numberUtil from '../../util/number';\nimport { inheritDefaultOption } from '../../util/component'; // Constant\n\nvar DEFAULT_BAR_BOUND = [20, 140];\n\nvar ContinuousModel =\n/** @class */\nfunction (_super) {\n __extends(ContinuousModel, _super);\n\n function ContinuousModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ContinuousModel.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.optionUpdated = function (newOption, isInit) {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n this.resetExtent();\n this.resetVisual(function (mappingOption) {\n mappingOption.mappingMethod = 'linear';\n mappingOption.dataExtent = this.getExtent();\n });\n\n this._resetRange();\n };\n /**\n * @protected\n * @override\n */\n\n\n ContinuousModel.prototype.resetItemSize = function () {\n _super.prototype.resetItemSize.apply(this, arguments);\n\n var itemSize = this.itemSize;\n (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);\n (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);\n };\n /**\n * @private\n */\n\n\n ContinuousModel.prototype._resetRange = function () {\n var dataExtent = this.getExtent();\n var range = this.option.range;\n\n if (!range || range.auto) {\n // `range` should always be array (so we dont use other\n // value like 'auto') for user-friend. (consider getOption).\n dataExtent.auto = 1;\n this.option.range = dataExtent;\n } else if (zrUtil.isArray(range)) {\n if (range[0] > range[1]) {\n range.reverse();\n }\n\n range[0] = Math.max(range[0], dataExtent[0]);\n range[1] = Math.min(range[1], dataExtent[1]);\n }\n };\n /**\n * @protected\n * @override\n */\n\n\n ContinuousModel.prototype.completeVisualOption = function () {\n _super.prototype.completeVisualOption.apply(this, arguments);\n\n zrUtil.each(this.stateList, function (state) {\n var symbolSize = this.option.controller[state].symbolSize;\n\n if (symbolSize && symbolSize[0] !== symbolSize[1]) {\n symbolSize[0] = symbolSize[1] / 3; // For good looking.\n }\n }, this);\n };\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.setSelected = function (selected) {\n this.option.range = selected.slice();\n\n this._resetRange();\n };\n /**\n * @public\n */\n\n\n ContinuousModel.prototype.getSelected = function () {\n var dataExtent = this.getExtent();\n var dataInterval = numberUtil.asc((this.get('range') || []).slice()); // Clamp\n\n dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);\n dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);\n dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);\n dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);\n return dataInterval;\n };\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.getValueState = function (value) {\n var range = this.option.range;\n var dataExtent = this.getExtent(); // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.\n // range[1] is processed likewise.\n\n return (range[0] <= dataExtent[0] || range[0] <= value) && (range[1] >= dataExtent[1] || value <= range[1]) ? 'inRange' : 'outOfRange';\n };\n\n ContinuousModel.prototype.findTargetDataIndices = function (range) {\n var result = [];\n this.eachTargetSeries(function (seriesModel) {\n var dataIndices = [];\n var data = seriesModel.getData();\n data.each(this.getDataDimension(data), function (value, dataIndex) {\n range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);\n }, this);\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n return result;\n };\n /**\n * @implement\n */\n\n\n ContinuousModel.prototype.getVisualMeta = function (getColorVisual) {\n var oVals = getColorStopValues(this, 'outOfRange', this.getExtent());\n var iVals = getColorStopValues(this, 'inRange', this.option.range.slice());\n var stops = [];\n\n function setStop(value, valueState) {\n stops.push({\n value: value,\n color: getColorVisual(value, valueState)\n });\n } // Format to: outOfRange -- inRange -- outOfRange.\n\n\n var iIdx = 0;\n var oIdx = 0;\n var iLen = iVals.length;\n var oLen = oVals.length;\n\n for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {\n // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.\n if (oVals[oIdx] < iVals[iIdx]) {\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n for (var first = 1; iIdx < iLen; iIdx++, first = 0) {\n // If range is full, value beyond min, max will be clamped.\n // make a singularity\n first && stops.length && setStop(iVals[iIdx], 'outOfRange');\n setStop(iVals[iIdx], 'inRange');\n }\n\n for (var first = 1; oIdx < oLen; oIdx++) {\n if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {\n // make a singularity\n if (first) {\n stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');\n first = 0;\n }\n\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n var stopsLen = stops.length;\n return {\n stops: stops,\n outerColors: [stopsLen ? stops[0].color : 'transparent', stopsLen ? stops[stopsLen - 1].color : 'transparent']\n };\n };\n\n ContinuousModel.type = 'visualMap.continuous';\n ContinuousModel.defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n align: 'auto',\n calculable: false,\n hoverLink: true,\n realtime: true,\n handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z',\n handleSize: '120%',\n handleStyle: {\n borderColor: '#fff',\n borderWidth: 1\n },\n indicatorIcon: 'circle',\n indicatorSize: '50%',\n indicatorStyle: {\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n } // emphasis: {\n // handleStyle: {\n // shadowBlur: 3,\n // shadowOffsetX: 1,\n // shadowOffsetY: 1,\n // shadowColor: 'rgba(0,0,0,0.2)'\n // }\n // }\n\n });\n return ContinuousModel;\n}(VisualMapModel);\n\nfunction getColorStopValues(visualMapModel, valueState, dataExtent) {\n if (dataExtent[0] === dataExtent[1]) {\n return dataExtent.slice();\n } // When using colorHue mapping, it is not linear color any more.\n // Moreover, canvas gradient seems not to be accurate linear.\n // FIXME\n // Should be arbitrary value 100? or based on pixel size?\n\n\n var count = 200;\n var step = (dataExtent[1] - dataExtent[0]) / count;\n var value = dataExtent[0];\n var stopValues = [];\n\n for (var i = 0; i <= count && value < dataExtent[1]; i++) {\n stopValues.push(value);\n value += step;\n }\n\n stopValues.push(dataExtent[1]);\n return stopValues;\n}\n\nexport default ContinuousModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { Rect } from '../../util/graphic';\nimport * as formatUtil from '../../util/format';\nimport * as layout from '../../util/layout';\nimport VisualMapping from '../../visual/VisualMapping';\nimport ComponentView from '../../view/Component';\n\nvar VisualMapView =\n/** @class */\nfunction (_super) {\n __extends(VisualMapView, _super);\n\n function VisualMapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = VisualMapView.type;\n _this.autoPositionValues = {\n left: 1,\n right: 1,\n top: 1,\n bottom: 1\n };\n return _this;\n }\n\n VisualMapView.prototype.init = function (ecModel, api) {\n this.ecModel = ecModel;\n this.api = api;\n };\n /**\n * @protected\n */\n\n\n VisualMapView.prototype.render = function (visualMapModel, ecModel, api, payload // TODO: TYPE\n ) {\n this.visualMapModel = visualMapModel;\n\n if (visualMapModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n this.doRender(visualMapModel, ecModel, api, payload);\n };\n /**\n * @protected\n */\n\n\n VisualMapView.prototype.renderBackground = function (group) {\n var visualMapModel = this.visualMapModel;\n var padding = formatUtil.normalizeCssArray(visualMapModel.get('padding') || 0);\n var rect = group.getBoundingRect();\n group.add(new Rect({\n z2: -1,\n silent: true,\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[3] + padding[1],\n height: rect.height + padding[0] + padding[2]\n },\n style: {\n fill: visualMapModel.get('backgroundColor'),\n stroke: visualMapModel.get('borderColor'),\n lineWidth: visualMapModel.get('borderWidth')\n }\n }));\n };\n /**\n * @protected\n * @param targetValue can be Infinity or -Infinity\n * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'\n * @param opts\n * @param opts.forceState Specify state, instead of using getValueState method.\n * @param opts.convertOpacityToAlpha For color gradient in controller widget.\n * @return {*} Visual value.\n */\n\n\n VisualMapView.prototype.getControllerVisual = function (targetValue, visualCluster, opts) {\n opts = opts || {};\n var forceState = opts.forceState;\n var visualMapModel = this.visualMapModel;\n var visualObj = {}; // Default values.\n\n if (visualCluster === 'color') {\n var defaultColor = visualMapModel.get('contentColor');\n visualObj.color = defaultColor;\n }\n\n function getter(key) {\n return visualObj[key];\n }\n\n function setter(key, value) {\n visualObj[key] = value;\n }\n\n var mappings = visualMapModel.controllerVisuals[forceState || visualMapModel.getValueState(targetValue)];\n var visualTypes = VisualMapping.prepareVisualTypes(mappings);\n zrUtil.each(visualTypes, function (type) {\n var visualMapping = mappings[type];\n\n if (opts.convertOpacityToAlpha && type === 'opacity') {\n type = 'colorAlpha';\n visualMapping = mappings.__alphaForOpacity;\n }\n\n if (VisualMapping.dependsOn(type, visualCluster)) {\n visualMapping && visualMapping.applyVisual(targetValue, getter, setter);\n }\n });\n return visualObj[visualCluster];\n };\n\n VisualMapView.prototype.positionGroup = function (group) {\n var model = this.visualMapModel;\n var api = this.api;\n layout.positionElement(group, model.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n\n VisualMapView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {};\n\n VisualMapView.type = 'visualMap';\n return VisualMapView;\n}(ComponentView);\n\nexport default VisualMapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getLayoutRect } from '../../util/layout';\nvar paramsSet = [['left', 'right', 'width'], ['top', 'bottom', 'height']];\n/**\n * @param visualMapModel\n * @param api\n * @param itemSize always [short, long]\n * @return {string} 'left' or 'right' or 'top' or 'bottom'\n */\n\nexport function getItemAlign(visualMapModel, api, itemSize) {\n var modelOption = visualMapModel.option;\n var itemAlign = modelOption.align;\n\n if (itemAlign != null && itemAlign !== 'auto') {\n return itemAlign;\n } // Auto decision align.\n\n\n var ecSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var realIndex = modelOption.orient === 'horizontal' ? 1 : 0;\n var reals = paramsSet[realIndex];\n var fakeValue = [0, null, 10];\n var layoutInput = {};\n\n for (var i = 0; i < 3; i++) {\n layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];\n layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];\n }\n\n var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex];\n var rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);\n return reals[(rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5 < ecSize[rParam[1]] * 0.5 ? 0 : 1];\n}\n/**\n * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and\n * dataIndexInside means filtered index.\n */\n// TODO: TYPE more specified payload types.\n\nexport function makeHighDownBatch(batch, visualMapModel) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batchItem.dataIndex != null) {\n batchItem.dataIndexInside = batchItem.dataIndex;\n batchItem.dataIndex = null;\n }\n\n batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : '');\n });\n return batch;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport LinearGradient from 'zrender/lib/graphic/LinearGradient';\nimport * as eventTool from 'zrender/lib/core/event';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport * as helper from './helper';\nimport * as modelUtil from '../../util/model';\nimport { parsePercent } from 'zrender/lib/contain/text';\nimport { setAsHighDownDispatcher } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { getECData } from '../../util/innerStore';\nvar linearMap = numberUtil.linearMap;\nvar each = zrUtil.each;\nvar mathMin = Math.min;\nvar mathMax = Math.max; // Arbitrary value\n\nvar HOVER_LINK_SIZE = 12;\nvar HOVER_LINK_OUT = 6; // Notice:\n// Any \"interval\" should be by the order of [low, high].\n// \"handle0\" (handleIndex === 0) maps to\n// low data value: this._dataInterval[0] and has low coord.\n// \"handle1\" (handleIndex === 1) maps to\n// high data value: this._dataInterval[1] and has high coord.\n// The logic of transform is implemented in this._createBarGroup.\n\nvar ContinuousView =\n/** @class */\nfunction (_super) {\n __extends(ContinuousView, _super);\n\n function ContinuousView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ContinuousView.type;\n _this._shapes = {};\n _this._dataInterval = [];\n _this._handleEnds = [];\n _this._hoverLinkDataIndices = [];\n return _this;\n }\n\n ContinuousView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {\n this._api = api;\n\n if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {\n this._buildView();\n }\n };\n\n ContinuousView.prototype._buildView = function () {\n this.group.removeAll();\n var visualMapModel = this.visualMapModel;\n var thisGroup = this.group;\n this._orient = visualMapModel.get('orient');\n this._useHandle = visualMapModel.get('calculable');\n\n this._resetInterval();\n\n this._renderBar(thisGroup);\n\n var dataRangeText = visualMapModel.get('text');\n\n this._renderEndsText(thisGroup, dataRangeText, 0);\n\n this._renderEndsText(thisGroup, dataRangeText, 1); // Do this for background size calculation.\n\n\n this._updateView(true); // After updating view, inner shapes is built completely,\n // and then background can be rendered.\n\n\n this.renderBackground(thisGroup); // Real update view\n\n this._updateView();\n\n this._enableHoverLinkToSeries();\n\n this._enableHoverLinkFromSeries();\n\n this.positionGroup(thisGroup);\n };\n\n ContinuousView.prototype._renderEndsText = function (group, dataRangeText, endsIndex) {\n if (!dataRangeText) {\n return;\n } // Compatible with ec2, text[0] map to high value, text[1] map low value.\n\n\n var text = dataRangeText[1 - endsIndex];\n text = text != null ? text + '' : '';\n var visualMapModel = this.visualMapModel;\n var textGap = visualMapModel.get('textGap');\n var itemSize = visualMapModel.itemSize;\n var barGroup = this._shapes.mainGroup;\n\n var position = this._applyTransform([itemSize[0] / 2, endsIndex === 0 ? -textGap : itemSize[1] + textGap], barGroup);\n\n var align = this._applyTransform(endsIndex === 0 ? 'bottom' : 'top', barGroup);\n\n var orient = this._orient;\n var textStyleModel = this.visualMapModel.textStyleModel;\n this.group.add(new graphic.Text({\n style: {\n x: position[0],\n y: position[1],\n verticalAlign: orient === 'horizontal' ? 'middle' : align,\n align: orient === 'horizontal' ? align : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n };\n\n ContinuousView.prototype._renderBar = function (targetGroup) {\n var visualMapModel = this.visualMapModel;\n var shapes = this._shapes;\n var itemSize = visualMapModel.itemSize;\n var orient = this._orient;\n var useHandle = this._useHandle;\n var itemAlign = helper.getItemAlign(visualMapModel, this.api, itemSize);\n\n var mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign);\n\n var gradientBarGroup = new graphic.Group();\n mainGroup.add(gradientBarGroup); // Bar\n\n gradientBarGroup.add(shapes.outOfRange = createPolygon());\n gradientBarGroup.add(shapes.inRange = createPolygon(null, useHandle ? getCursor(this._orient) : null, zrUtil.bind(this._dragHandle, this, 'all', false), zrUtil.bind(this._dragHandle, this, 'all', true))); // A border radius clip.\n\n gradientBarGroup.setClipPath(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: itemSize[0],\n height: itemSize[1],\n r: 3\n }\n }));\n var textRect = visualMapModel.textStyleModel.getTextRect('国');\n var textSize = mathMax(textRect.width, textRect.height); // Handle\n\n if (useHandle) {\n shapes.handleThumbs = [];\n shapes.handleLabels = [];\n shapes.handleLabelPoints = [];\n\n this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient);\n\n this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient);\n }\n\n this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient);\n\n targetGroup.add(mainGroup);\n };\n\n ContinuousView.prototype._createHandle = function (visualMapModel, mainGroup, handleIndex, itemSize, textSize, orient) {\n var onDrift = zrUtil.bind(this._dragHandle, this, handleIndex, false);\n var onDragEnd = zrUtil.bind(this._dragHandle, this, handleIndex, true);\n var handleSize = parsePercent(visualMapModel.get('handleSize'), itemSize[0]);\n var handleThumb = createSymbol(visualMapModel.get('handleIcon'), -handleSize / 2, -handleSize / 2, handleSize, handleSize, null, true);\n var cursor = getCursor(this._orient);\n handleThumb.attr({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n ondragend: onDragEnd,\n onmousemove: function (e) {\n eventTool.stop(e.event);\n }\n });\n handleThumb.x = itemSize[0] / 2;\n handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle());\n handleThumb.setStyle({\n strokeNoScale: true,\n strokeFirst: true\n });\n handleThumb.style.lineWidth *= 2;\n handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n setAsHighDownDispatcher(handleThumb, true);\n mainGroup.add(handleThumb); // Text is always horizontal layout but should not be effected by\n // transform (orient/inverse). So label is built separately but not\n // use zrender/graphic/helper/RectText, and is located based on view\n // group (according to handleLabelPoint) but not barGroup.\n\n var textStyleModel = this.visualMapModel.textStyleModel;\n var handleLabel = new graphic.Text({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd,\n style: {\n x: 0,\n y: 0,\n text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n handleLabel.ensureState('blur').style = {\n opacity: 0.1\n };\n handleLabel.stateTransition = {\n duration: 200\n };\n this.group.add(handleLabel);\n var handleLabelPoint = [handleSize, 0];\n var shapes = this._shapes;\n shapes.handleThumbs[handleIndex] = handleThumb;\n shapes.handleLabelPoints[handleIndex] = handleLabelPoint;\n shapes.handleLabels[handleIndex] = handleLabel;\n };\n\n ContinuousView.prototype._createIndicator = function (visualMapModel, mainGroup, itemSize, textSize, orient) {\n var scale = parsePercent(visualMapModel.get('indicatorSize'), itemSize[0]);\n var indicator = createSymbol(visualMapModel.get('indicatorIcon'), -scale / 2, -scale / 2, scale, scale, null, true);\n indicator.attr({\n cursor: 'move',\n invisible: true,\n silent: true,\n x: itemSize[0] / 2\n });\n var indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();\n\n if (indicator instanceof ZRImage) {\n var pathStyle = indicator.style;\n indicator.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, indicatorStyle));\n } else {\n indicator.useStyle(indicatorStyle);\n }\n\n mainGroup.add(indicator);\n var textStyleModel = this.visualMapModel.textStyleModel;\n var indicatorLabel = new graphic.Text({\n silent: true,\n invisible: true,\n style: {\n x: 0,\n y: 0,\n text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n this.group.add(indicatorLabel);\n var indicatorLabelPoint = [(orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2, 0];\n var shapes = this._shapes;\n shapes.indicator = indicator;\n shapes.indicatorLabel = indicatorLabel;\n shapes.indicatorLabelPoint = indicatorLabelPoint;\n this._firstShowIndicator = true;\n };\n\n ContinuousView.prototype._dragHandle = function (handleIndex, isEnd, // dx is event from ondragend if isEnd is true. It's not used\n dx, dy) {\n if (!this._useHandle) {\n return;\n }\n\n this._dragging = !isEnd;\n\n if (!isEnd) {\n // Transform dx, dy to bar coordination.\n var vertex = this._applyTransform([dx, dy], this._shapes.mainGroup, true);\n\n this._updateInterval(handleIndex, vertex[1]);\n\n this._hideIndicator(); // Considering realtime, update view should be executed\n // before dispatch action.\n\n\n this._updateView();\n } // dragEnd do not dispatch action when realtime.\n\n\n if (isEnd === !this.visualMapModel.get('realtime')) {\n // jshint ignore:line\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: this._dataInterval.slice()\n });\n }\n\n if (isEnd) {\n !this._hovering && this._clearHoverLinkToSeries();\n } else if (useHoverLinkOnHandle(this.visualMapModel)) {\n this._doHoverLinkToSeries(this._handleEnds[handleIndex], false);\n }\n };\n\n ContinuousView.prototype._resetInterval = function () {\n var visualMapModel = this.visualMapModel;\n var dataInterval = this._dataInterval = visualMapModel.getSelected();\n var dataExtent = visualMapModel.getExtent();\n var sizeExtent = [0, visualMapModel.itemSize[1]];\n this._handleEnds = [linearMap(dataInterval[0], dataExtent, sizeExtent, true), linearMap(dataInterval[1], dataExtent, sizeExtent, true)];\n };\n /**\n * @private\n * @param {(number|string)} handleIndex 0 or 1 or 'all'\n * @param {number} dx\n * @param {number} dy\n */\n\n\n ContinuousView.prototype._updateInterval = function (handleIndex, delta) {\n delta = delta || 0;\n var visualMapModel = this.visualMapModel;\n var handleEnds = this._handleEnds;\n var sizeExtent = [0, visualMapModel.itemSize[1]];\n sliderMove(delta, handleEnds, sizeExtent, handleIndex, // cross is forbiden\n 0);\n var dataExtent = visualMapModel.getExtent(); // Update data interval.\n\n this._dataInterval = [linearMap(handleEnds[0], sizeExtent, dataExtent, true), linearMap(handleEnds[1], sizeExtent, dataExtent, true)];\n };\n\n ContinuousView.prototype._updateView = function (forSketch) {\n var visualMapModel = this.visualMapModel;\n var dataExtent = visualMapModel.getExtent();\n var shapes = this._shapes;\n var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];\n var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;\n\n var visualInRange = this._createBarVisual(this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange');\n\n var visualOutOfRange = this._createBarVisual(dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange');\n\n shapes.inRange.setStyle({\n fill: visualInRange.barColor // opacity: visualInRange.opacity\n\n }).setShape('points', visualInRange.barPoints);\n shapes.outOfRange.setStyle({\n fill: visualOutOfRange.barColor // opacity: visualOutOfRange.opacity\n\n }).setShape('points', visualOutOfRange.barPoints);\n\n this._updateHandle(inRangeHandleEnds, visualInRange);\n };\n\n ContinuousView.prototype._createBarVisual = function (dataInterval, dataExtent, handleEnds, forceState) {\n var opts = {\n forceState: forceState,\n convertOpacityToAlpha: true\n };\n\n var colorStops = this._makeColorGradient(dataInterval, opts);\n\n var symbolSizes = [this.getControllerVisual(dataInterval[0], 'symbolSize', opts), this.getControllerVisual(dataInterval[1], 'symbolSize', opts)];\n\n var barPoints = this._createBarPoints(handleEnds, symbolSizes);\n\n return {\n barColor: new LinearGradient(0, 0, 0, 1, colorStops),\n barPoints: barPoints,\n handlesColor: [colorStops[0].color, colorStops[colorStops.length - 1].color]\n };\n };\n\n ContinuousView.prototype._makeColorGradient = function (dataInterval, opts) {\n // Considering colorHue, which is not linear, so we have to sample\n // to calculate gradient color stops, but not only caculate head\n // and tail.\n var sampleNumber = 100; // Arbitrary value.\n\n var colorStops = [];\n var step = (dataInterval[1] - dataInterval[0]) / sampleNumber;\n colorStops.push({\n color: this.getControllerVisual(dataInterval[0], 'color', opts),\n offset: 0\n });\n\n for (var i = 1; i < sampleNumber; i++) {\n var currValue = dataInterval[0] + step * i;\n\n if (currValue > dataInterval[1]) {\n break;\n }\n\n colorStops.push({\n color: this.getControllerVisual(currValue, 'color', opts),\n offset: i / sampleNumber\n });\n }\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[1], 'color', opts),\n offset: 1\n });\n return colorStops;\n };\n\n ContinuousView.prototype._createBarPoints = function (handleEnds, symbolSizes) {\n var itemSize = this.visualMapModel.itemSize;\n return [[itemSize[0] - symbolSizes[0], handleEnds[0]], [itemSize[0], handleEnds[0]], [itemSize[0], handleEnds[1]], [itemSize[0] - symbolSizes[1], handleEnds[1]]];\n };\n\n ContinuousView.prototype._createBarGroup = function (itemAlign) {\n var orient = this._orient;\n var inverse = this.visualMapModel.get('inverse');\n return new graphic.Group(orient === 'horizontal' && !inverse ? {\n scaleX: itemAlign === 'bottom' ? 1 : -1,\n rotation: Math.PI / 2\n } : orient === 'horizontal' && inverse ? {\n scaleX: itemAlign === 'bottom' ? -1 : 1,\n rotation: -Math.PI / 2\n } : orient === 'vertical' && !inverse ? {\n scaleX: itemAlign === 'left' ? 1 : -1,\n scaleY: -1\n } : {\n scaleX: itemAlign === 'left' ? 1 : -1\n });\n };\n\n ContinuousView.prototype._updateHandle = function (handleEnds, visualInRange) {\n if (!this._useHandle) {\n return;\n }\n\n var shapes = this._shapes;\n var visualMapModel = this.visualMapModel;\n var handleThumbs = shapes.handleThumbs;\n var handleLabels = shapes.handleLabels;\n var itemSize = visualMapModel.itemSize;\n var dataExtent = visualMapModel.getExtent();\n each([0, 1], function (handleIndex) {\n var handleThumb = handleThumbs[handleIndex];\n handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);\n handleThumb.y = handleEnds[handleIndex];\n var val = linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true);\n var symbolSize = this.getControllerVisual(val, 'symbolSize');\n handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0];\n handleThumb.x = itemSize[0] - symbolSize / 2; // Update handle label position.\n\n var textPoint = graphic.applyTransform(shapes.handleLabelPoints[handleIndex], graphic.getTransform(handleThumb, this.group));\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),\n verticalAlign: 'middle',\n align: this._orient === 'vertical' ? this._applyTransform('left', shapes.mainGroup) : 'center'\n });\n }, this);\n };\n\n ContinuousView.prototype._showIndicator = function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) {\n var visualMapModel = this.visualMapModel;\n var dataExtent = visualMapModel.getExtent();\n var itemSize = visualMapModel.itemSize;\n var sizeExtent = [0, itemSize[1]];\n var shapes = this._shapes;\n var indicator = shapes.indicator;\n\n if (!indicator) {\n return;\n }\n\n indicator.attr('invisible', false);\n var opts = {\n convertOpacityToAlpha: true\n };\n var color = this.getControllerVisual(cursorValue, 'color', opts);\n var symbolSize = this.getControllerVisual(cursorValue, 'symbolSize');\n var y = linearMap(cursorValue, dataExtent, sizeExtent, true);\n var x = itemSize[0] - symbolSize / 2;\n var oldIndicatorPos = {\n x: indicator.x,\n y: indicator.y\n }; // Update handle label position.\n\n indicator.y = y;\n indicator.x = x;\n var textPoint = graphic.applyTransform(shapes.indicatorLabelPoint, graphic.getTransform(indicator, this.group));\n var indicatorLabel = shapes.indicatorLabel;\n indicatorLabel.attr('invisible', false);\n\n var align = this._applyTransform('left', shapes.mainGroup);\n\n var orient = this._orient;\n var isHorizontal = orient === 'horizontal';\n indicatorLabel.setStyle({\n text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),\n verticalAlign: isHorizontal ? align : 'middle',\n align: isHorizontal ? 'center' : align\n });\n var indicatorNewProps = {\n x: x,\n y: y,\n style: {\n fill: color\n }\n };\n var labelNewProps = {\n style: {\n x: textPoint[0],\n y: textPoint[1]\n }\n };\n\n if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {\n var animationCfg = {\n duration: 100,\n easing: 'cubicInOut',\n additive: true\n };\n indicator.x = oldIndicatorPos.x;\n indicator.y = oldIndicatorPos.y;\n indicator.animateTo(indicatorNewProps, animationCfg);\n indicatorLabel.animateTo(labelNewProps, animationCfg);\n } else {\n indicator.attr(indicatorNewProps);\n indicatorLabel.attr(labelNewProps);\n }\n\n this._firstShowIndicator = false;\n var handleLabels = this._shapes.handleLabels;\n\n if (handleLabels) {\n for (var i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.enterBlur(handleLabels[i]);\n }\n }\n };\n\n ContinuousView.prototype._enableHoverLinkToSeries = function () {\n var self = this;\n\n this._shapes.mainGroup.on('mousemove', function (e) {\n self._hovering = true;\n\n if (!self._dragging) {\n var itemSize = self.visualMapModel.itemSize;\n\n var pos = self._applyTransform([e.offsetX, e.offsetY], self._shapes.mainGroup, true, true); // For hover link show when hover handle, which might be\n // below or upper than sizeExtent.\n\n\n pos[1] = mathMin(mathMax(0, pos[1]), itemSize[1]);\n\n self._doHoverLinkToSeries(pos[1], 0 <= pos[0] && pos[0] <= itemSize[0]);\n }\n }).on('mouseout', function () {\n // When mouse is out of handle, hoverLink still need\n // to be displayed when realtime is set as false.\n self._hovering = false;\n !self._dragging && self._clearHoverLinkToSeries();\n });\n };\n\n ContinuousView.prototype._enableHoverLinkFromSeries = function () {\n var zr = this.api.getZr();\n\n if (this.visualMapModel.option.hoverLink) {\n zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);\n zr.on('mouseout', this._hideIndicator, this);\n } else {\n this._clearHoverLinkFromSeries();\n }\n };\n\n ContinuousView.prototype._doHoverLinkToSeries = function (cursorPos, hoverOnBar) {\n var visualMapModel = this.visualMapModel;\n var itemSize = visualMapModel.itemSize;\n\n if (!visualMapModel.option.hoverLink) {\n return;\n }\n\n var sizeExtent = [0, itemSize[1]];\n var dataExtent = visualMapModel.getExtent(); // For hover link show when hover handle, which might be below or upper than sizeExtent.\n\n cursorPos = mathMin(mathMax(sizeExtent[0], cursorPos), sizeExtent[1]);\n var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);\n var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];\n var cursorValue = linearMap(cursorPos, sizeExtent, dataExtent, true);\n var valueRange = [linearMap(hoverRange[0], sizeExtent, dataExtent, true), linearMap(hoverRange[1], sizeExtent, dataExtent, true)]; // Consider data range is out of visualMap range, see test/visualMap-continuous.html,\n // where china and india has very large population.\n\n hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);\n hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity); // Do not show indicator when mouse is over handle,\n // otherwise labels overlap, especially when dragging.\n\n if (hoverOnBar) {\n if (valueRange[0] === -Infinity) {\n this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);\n } else if (valueRange[1] === Infinity) {\n this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);\n } else {\n this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize);\n }\n } // When realtime is set as false, handles, which are in barGroup,\n // also trigger hoverLink, which help user to realize where they\n // focus on when dragging. (see test/heatmap-large.html)\n // When realtime is set as true, highlight will not show when hover\n // handle, because the label on handle, which displays a exact value\n // but not range, might mislead users.\n\n\n var oldBatch = this._hoverLinkDataIndices;\n var newBatch = [];\n\n if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {\n newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);\n }\n\n var resultBatches = modelUtil.compressBatches(oldBatch, newBatch);\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(resultBatches[0], visualMapModel));\n\n this._dispatchHighDown('highlight', helper.makeHighDownBatch(resultBatches[1], visualMapModel));\n };\n\n ContinuousView.prototype._hoverLinkFromSeriesMouseOver = function (e) {\n var el = e.target;\n var visualMapModel = this.visualMapModel;\n\n if (!el || getECData(el).dataIndex == null) {\n return;\n }\n\n var ecData = getECData(el);\n var dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex);\n\n if (!visualMapModel.isTargetSeries(dataModel)) {\n return;\n }\n\n var data = dataModel.getData(ecData.dataType);\n var value = data.get(visualMapModel.getDataDimension(data), ecData.dataIndex);\n\n if (!isNaN(value)) {\n this._showIndicator(value, value);\n }\n };\n\n ContinuousView.prototype._hideIndicator = function () {\n var shapes = this._shapes;\n shapes.indicator && shapes.indicator.attr('invisible', true);\n shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);\n var handleLabels = this._shapes.handleLabels;\n\n if (handleLabels) {\n for (var i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.leaveBlur(handleLabels[i]);\n }\n }\n };\n\n ContinuousView.prototype._clearHoverLinkToSeries = function () {\n this._hideIndicator();\n\n var indices = this._hoverLinkDataIndices;\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(indices, this.visualMapModel));\n\n indices.length = 0;\n };\n\n ContinuousView.prototype._clearHoverLinkFromSeries = function () {\n this._hideIndicator();\n\n var zr = this.api.getZr();\n zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);\n zr.off('mouseout', this._hideIndicator);\n };\n\n ContinuousView.prototype._applyTransform = function (vertex, element, inverse, global) {\n var transform = graphic.getTransform(element, global ? null : this.group);\n return zrUtil.isArray(vertex) ? graphic.applyTransform(vertex, transform, inverse) : graphic.transformDirection(vertex, transform, inverse);\n }; // TODO: TYPE more specified payload types.\n\n\n ContinuousView.prototype._dispatchHighDown = function (type, batch) {\n batch && batch.length && this.api.dispatchAction({\n type: type,\n batch: batch\n });\n };\n /**\n * @override\n */\n\n\n ContinuousView.prototype.dispose = function () {\n this._clearHoverLinkFromSeries();\n\n this._clearHoverLinkToSeries();\n };\n /**\n * @override\n */\n\n\n ContinuousView.prototype.remove = function () {\n this._clearHoverLinkFromSeries();\n\n this._clearHoverLinkToSeries();\n };\n\n ContinuousView.type = 'visualMap.continuous';\n return ContinuousView;\n}(VisualMapView);\n\nfunction createPolygon(points, cursor, onDrift, onDragEnd) {\n return new graphic.Polygon({\n shape: {\n points: points\n },\n draggable: !!onDrift,\n cursor: cursor,\n drift: onDrift,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd\n });\n}\n\nfunction getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) {\n var halfHoverLinkSize = HOVER_LINK_SIZE / 2;\n var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');\n\n if (hoverLinkDataSize) {\n halfHoverLinkSize = linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;\n }\n\n return halfHoverLinkSize;\n}\n\nfunction useHoverLinkOnHandle(visualMapModel) {\n var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');\n return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);\n}\n\nfunction getCursor(orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default ContinuousView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport var visualMapActionInfo = {\n type: 'selectDataRange',\n event: 'dataRangeSelected',\n // FIXME use updateView appears wrong\n update: 'update'\n};\nexport var visualMapActionHander = function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'visualMap',\n query: payload\n }, function (model) {\n model.setSelected(payload.selected);\n });\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport VisualMapping from '../../visual/VisualMapping';\nimport { getVisualFromData } from '../../visual/helper';\nexport var visualMapEncodingHandlers = [{\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n var resetDefines = [];\n ecModel.eachComponent('visualMap', function (visualMapModel) {\n var pipelineContext = seriesModel.pipelineContext;\n\n if (!visualMapModel.isTargetSeries(seriesModel) || pipelineContext && pipelineContext.large) {\n return;\n }\n\n resetDefines.push(visualSolution.incrementalApplyVisual(visualMapModel.stateList, visualMapModel.targetVisuals, zrUtil.bind(visualMapModel.getValueState, visualMapModel), visualMapModel.getDataDimension(seriesModel.getData())));\n });\n return resetDefines;\n }\n}, // Only support color.\n{\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n var visualMetaList = [];\n ecModel.eachComponent('visualMap', function (visualMapModel) {\n if (visualMapModel.isTargetSeries(seriesModel)) {\n var visualMeta = visualMapModel.getVisualMeta(zrUtil.bind(getColorVisual, null, seriesModel, visualMapModel)) || {\n stops: [],\n outerColors: []\n };\n var concreteDim = visualMapModel.getDataDimension(data);\n var dimInfo = data.getDimensionInfo(concreteDim);\n\n if (dimInfo != null) {\n // visualMeta.dimension should be dimension index, but not concrete dimension.\n visualMeta.dimension = dimInfo.index;\n visualMetaList.push(visualMeta);\n }\n }\n }); // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));\n\n seriesModel.getData().setVisual('visualMeta', visualMetaList);\n }\n}]; // FIXME\n// performance and export for heatmap?\n// value can be Infinity or -Infinity\n\nfunction getColorVisual(seriesModel, visualMapModel, value, valueState) {\n var mappings = visualMapModel.targetVisuals[valueState];\n var visualTypes = VisualMapping.prepareVisualTypes(mappings);\n var resultVisual = {\n color: getVisualFromData(seriesModel.getData(), 'color') // default color.\n\n };\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n var mapping = mappings[type === 'opacity' ? '__alphaForOpacity' : type];\n mapping && mapping.applyVisual(value, getVisual, setVisual);\n }\n\n return resultVisual.color;\n\n function getVisual(key) {\n return resultVisual[key];\n }\n\n function setVisual(key, value) {\n resultVisual[key] = value;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nvar each = zrUtil.each;\nexport default function visualMapPreprocessor(option) {\n var visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n } // rename splitList to pieces\n\n\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n var pieces = opt.pieces;\n\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj, name) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { visualMapActionInfo, visualMapActionHander } from './visualMapAction';\nimport { visualMapEncodingHandlers } from './visualEncoding';\nimport { each } from 'zrender/lib/core/util';\nimport preprocessor from './preprocessor';\nvar installed = false;\nexport default function installCommon(registers) {\n if (installed) {\n return;\n }\n\n installed = true;\n registers.registerSubTypeDefaulter('visualMap', function (option) {\n // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.\n return !option.categories && (!(option.pieces ? option.pieces.length > 0 : option.splitNumber > 0) || option.calculable) ? 'continuous' : 'piecewise';\n });\n registers.registerAction(visualMapActionInfo, visualMapActionHander);\n each(visualMapEncodingHandlers, function (handler) {\n registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler);\n });\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ContinuousModel from './ContinuousModel';\nimport ContinuousView from './ContinuousView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(ContinuousModel);\n registers.registerComponentView(ContinuousView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapModel from './VisualMapModel';\nimport VisualMapping from '../../visual/VisualMapping';\nimport visualDefault from '../../visual/visualDefault';\nimport { reformIntervals } from '../../util/number';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar PiecewiseModel =\n/** @class */\nfunction (_super) {\n __extends(PiecewiseModel, _super);\n\n function PiecewiseModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PiecewiseModel.type;\n /**\n * The order is always [low, ..., high].\n * [{text: string, interval: Array.}, ...]\n */\n\n _this._pieceList = [];\n return _this;\n }\n\n PiecewiseModel.prototype.optionUpdated = function (newOption, isInit) {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n this.resetExtent();\n\n var mode = this._mode = this._determineMode();\n\n this._pieceList = [];\n\n resetMethods[this._mode].call(this, this._pieceList);\n\n this._resetSelected(newOption, isInit);\n\n var categories = this.option.categories;\n this.resetVisual(function (mappingOption, state) {\n if (mode === 'categories') {\n mappingOption.mappingMethod = 'category';\n mappingOption.categories = zrUtil.clone(categories);\n } else {\n mappingOption.dataExtent = this.getExtent();\n mappingOption.mappingMethod = 'piecewise';\n mappingOption.pieceList = zrUtil.map(this._pieceList, function (piece) {\n piece = zrUtil.clone(piece);\n\n if (state !== 'inRange') {\n // FIXME\n // outOfRange do not support special visual in pieces.\n piece.visual = null;\n }\n\n return piece;\n });\n }\n });\n };\n /**\n * @protected\n * @override\n */\n\n\n PiecewiseModel.prototype.completeVisualOption = function () {\n // Consider this case:\n // visualMap: {\n // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]\n // }\n // where no inRange/outOfRange set but only pieces. So we should make\n // default inRange/outOfRange for this case, otherwise visuals that only\n // appear in `pieces` will not be taken into account in visual encoding.\n var option = this.option;\n var visualTypesInPieces = {};\n var visualTypes = VisualMapping.listVisualTypes();\n var isCategory = this.isCategory();\n zrUtil.each(option.pieces, function (piece) {\n zrUtil.each(visualTypes, function (visualType) {\n if (piece.hasOwnProperty(visualType)) {\n visualTypesInPieces[visualType] = 1;\n }\n });\n });\n zrUtil.each(visualTypesInPieces, function (v, visualType) {\n var exists = false;\n zrUtil.each(this.stateList, function (state) {\n exists = exists || has(option, state, visualType) || has(option.target, state, visualType);\n }, this);\n !exists && zrUtil.each(this.stateList, function (state) {\n (option[state] || (option[state] = {}))[visualType] = visualDefault.get(visualType, state === 'inRange' ? 'active' : 'inactive', isCategory);\n });\n }, this);\n\n function has(obj, state, visualType) {\n return obj && obj[state] && obj[state].hasOwnProperty(visualType);\n }\n\n _super.prototype.completeVisualOption.apply(this, arguments);\n };\n\n PiecewiseModel.prototype._resetSelected = function (newOption, isInit) {\n var thisOption = this.option;\n var pieceList = this._pieceList; // Selected do not merge but all override.\n\n var selected = (isInit ? thisOption : newOption).selected || {};\n thisOption.selected = selected; // Consider 'not specified' means true.\n\n zrUtil.each(pieceList, function (piece, index) {\n var key = this.getSelectedMapKey(piece);\n\n if (!selected.hasOwnProperty(key)) {\n selected[key] = true;\n }\n }, this);\n\n if (thisOption.selectedMode === 'single') {\n // Ensure there is only one selected.\n var hasSel_1 = false;\n zrUtil.each(pieceList, function (piece, index) {\n var key = this.getSelectedMapKey(piece);\n\n if (selected[key]) {\n hasSel_1 ? selected[key] = false : hasSel_1 = true;\n }\n }, this);\n } // thisOption.selectedMode === 'multiple', default: all selected.\n\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getItemSymbol = function () {\n return this.get('itemSymbol');\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getSelectedMapKey = function (piece) {\n return this._mode === 'categories' ? piece.value + '' : piece.index + '';\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getPieceList = function () {\n return this._pieceList;\n };\n /**\n * @return {string}\n */\n\n\n PiecewiseModel.prototype._determineMode = function () {\n var option = this.option;\n return option.pieces && option.pieces.length > 0 ? 'pieces' : this.option.categories ? 'categories' : 'splitNumber';\n };\n /**\n * @override\n */\n\n\n PiecewiseModel.prototype.setSelected = function (selected) {\n this.option.selected = zrUtil.clone(selected);\n };\n /**\n * @override\n */\n\n\n PiecewiseModel.prototype.getValueState = function (value) {\n var index = VisualMapping.findPieceIndex(value, this._pieceList);\n return index != null ? this.option.selected[this.getSelectedMapKey(this._pieceList[index])] ? 'inRange' : 'outOfRange' : 'outOfRange';\n };\n /**\n * @public\n * @param pieceIndex piece index in visualMapModel.getPieceList()\n */\n\n\n PiecewiseModel.prototype.findTargetDataIndices = function (pieceIndex) {\n var result = [];\n var pieceList = this._pieceList;\n this.eachTargetSeries(function (seriesModel) {\n var dataIndices = [];\n var data = seriesModel.getData();\n data.each(this.getDataDimension(data), function (value, dataIndex) {\n // Should always base on model pieceList, because it is order sensitive.\n var pIdx = VisualMapping.findPieceIndex(value, pieceList);\n pIdx === pieceIndex && dataIndices.push(dataIndex);\n }, this);\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n return result;\n };\n /**\n * @private\n * @param piece piece.value or piece.interval is required.\n * @return Can be Infinity or -Infinity\n */\n\n\n PiecewiseModel.prototype.getRepresentValue = function (piece) {\n var representValue;\n\n if (this.isCategory()) {\n representValue = piece.value;\n } else {\n if (piece.value != null) {\n representValue = piece.value;\n } else {\n var pieceInterval = piece.interval || [];\n representValue = pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity ? 0 : (pieceInterval[0] + pieceInterval[1]) / 2;\n }\n }\n\n return representValue;\n };\n\n PiecewiseModel.prototype.getVisualMeta = function (getColorVisual) {\n // Do not support category. (category axis is ordinal, numerical)\n if (this.isCategory()) {\n return;\n }\n\n var stops = [];\n var outerColors = ['', ''];\n var visualMapModel = this;\n\n function setStop(interval, valueState) {\n var representValue = visualMapModel.getRepresentValue({\n interval: interval\n }); // Not category\n\n if (!valueState) {\n valueState = visualMapModel.getValueState(representValue);\n }\n\n var color = getColorVisual(representValue, valueState);\n\n if (interval[0] === -Infinity) {\n outerColors[0] = color;\n } else if (interval[1] === Infinity) {\n outerColors[1] = color;\n } else {\n stops.push({\n value: interval[0],\n color: color\n }, {\n value: interval[1],\n color: color\n });\n }\n } // Suplement\n\n\n var pieceList = this._pieceList.slice();\n\n if (!pieceList.length) {\n pieceList.push({\n interval: [-Infinity, Infinity]\n });\n } else {\n var edge = pieceList[0].interval[0];\n edge !== -Infinity && pieceList.unshift({\n interval: [-Infinity, edge]\n });\n edge = pieceList[pieceList.length - 1].interval[1];\n edge !== Infinity && pieceList.push({\n interval: [edge, Infinity]\n });\n }\n\n var curr = -Infinity;\n zrUtil.each(pieceList, function (piece) {\n var interval = piece.interval;\n\n if (interval) {\n // Fulfill gap.\n interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');\n setStop(interval.slice());\n curr = interval[1];\n }\n }, this);\n return {\n stops: stops,\n outerColors: outerColors\n };\n };\n\n PiecewiseModel.type = 'visualMap.piecewise';\n PiecewiseModel.defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n selected: null,\n minOpen: false,\n maxOpen: false,\n align: 'auto',\n itemWidth: 20,\n itemHeight: 14,\n itemSymbol: 'roundRect',\n pieces: null,\n categories: null,\n splitNumber: 5,\n selectedMode: 'multiple',\n itemGap: 10,\n hoverLink: true // Enable hover highlight.\n\n });\n return PiecewiseModel;\n}(VisualMapModel);\n\n;\n/**\n * Key is this._mode\n * @type {Object}\n * @this {module:echarts/component/viusalMap/PiecewiseMode}\n */\n\nvar resetMethods = {\n splitNumber: function (outPieceList) {\n var thisOption = this.option;\n var precision = Math.min(thisOption.precision, 20);\n var dataExtent = this.getExtent();\n var splitNumber = thisOption.splitNumber;\n splitNumber = Math.max(parseInt(splitNumber, 10), 1);\n thisOption.splitNumber = splitNumber;\n var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber; // Precision auto-adaption\n\n while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {\n precision++;\n }\n\n thisOption.precision = precision;\n splitStep = +splitStep.toFixed(precision);\n\n if (thisOption.minOpen) {\n outPieceList.push({\n interval: [-Infinity, dataExtent[0]],\n close: [0, 0]\n });\n }\n\n for (var index = 0, curr = dataExtent[0]; index < splitNumber; curr += splitStep, index++) {\n var max = index === splitNumber - 1 ? dataExtent[1] : curr + splitStep;\n outPieceList.push({\n interval: [curr, max],\n close: [1, 1]\n });\n }\n\n if (thisOption.maxOpen) {\n outPieceList.push({\n interval: [dataExtent[1], Infinity],\n close: [0, 0]\n });\n }\n\n reformIntervals(outPieceList);\n zrUtil.each(outPieceList, function (piece, index) {\n piece.index = index;\n piece.text = this.formatValueText(piece.interval);\n }, this);\n },\n categories: function (outPieceList) {\n var thisOption = this.option;\n zrUtil.each(thisOption.categories, function (cate) {\n // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。\n // 是否改一致。\n outPieceList.push({\n text: this.formatValueText(cate, true),\n value: cate\n });\n }, this); // See \"Order Rule\".\n\n normalizeReverse(thisOption, outPieceList);\n },\n pieces: function (outPieceList) {\n var thisOption = this.option;\n zrUtil.each(thisOption.pieces, function (pieceListItem, index) {\n if (!zrUtil.isObject(pieceListItem)) {\n pieceListItem = {\n value: pieceListItem\n };\n }\n\n var item = {\n text: '',\n index: index\n };\n\n if (pieceListItem.label != null) {\n item.text = pieceListItem.label;\n }\n\n if (pieceListItem.hasOwnProperty('value')) {\n var value = item.value = pieceListItem.value;\n item.interval = [value, value];\n item.close = [1, 1];\n } else {\n // `min` `max` is legacy option.\n // `lt` `gt` `lte` `gte` is recommanded.\n var interval = item.interval = [];\n var close_1 = item.close = [0, 0];\n var closeList = [1, 0, 1];\n var infinityList = [-Infinity, Infinity];\n var useMinMax = [];\n\n for (var lg = 0; lg < 2; lg++) {\n var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg];\n\n for (var i = 0; i < 3 && interval[lg] == null; i++) {\n interval[lg] = pieceListItem[names[i]];\n close_1[lg] = closeList[i];\n useMinMax[lg] = i === 2;\n }\n\n interval[lg] == null && (interval[lg] = infinityList[lg]);\n }\n\n useMinMax[0] && interval[1] === Infinity && (close_1[0] = 0);\n useMinMax[1] && interval[0] === -Infinity && (close_1[1] = 0);\n\n if (process.env.NODE_ENV !== 'production') {\n if (interval[0] > interval[1]) {\n console.warn('Piece ' + index + 'is illegal: ' + interval + ' lower bound should not greater then uppper bound.');\n }\n }\n\n if (interval[0] === interval[1] && close_1[0] && close_1[1]) {\n // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],\n // we use value to lift the priority when min === max\n item.value = interval[0];\n }\n }\n\n item.visual = VisualMapping.retrieveVisuals(pieceListItem);\n outPieceList.push(item);\n }, this); // See \"Order Rule\".\n\n normalizeReverse(thisOption, outPieceList); // Only pieces\n\n reformIntervals(outPieceList);\n zrUtil.each(outPieceList, function (piece) {\n var close = piece.close;\n var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]];\n piece.text = piece.text || this.formatValueText(piece.value != null ? piece.value : piece.interval, false, edgeSymbols);\n }, this);\n }\n};\n\nfunction normalizeReverse(thisOption, pieceList) {\n var inverse = thisOption.inverse;\n\n if (thisOption.orient === 'vertical' ? !inverse : inverse) {\n pieceList.reverse();\n }\n}\n\nexport default PiecewiseModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport * as layout from '../../util/layout';\nimport * as helper from './helper';\n\nvar PiecewiseVisualMapView =\n/** @class */\nfunction (_super) {\n __extends(PiecewiseVisualMapView, _super);\n\n function PiecewiseVisualMapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PiecewiseVisualMapView.type;\n return _this;\n }\n\n PiecewiseVisualMapView.prototype.doRender = function () {\n var thisGroup = this.group;\n thisGroup.removeAll();\n var visualMapModel = this.visualMapModel;\n var textGap = visualMapModel.get('textGap');\n var textStyleModel = visualMapModel.textStyleModel;\n var textFont = textStyleModel.getFont();\n var textFill = textStyleModel.getTextColor();\n\n var itemAlign = this._getItemAlign();\n\n var itemSize = visualMapModel.itemSize;\n\n var viewData = this._getViewData();\n\n var endsText = viewData.endsText;\n var showLabel = zrUtil.retrieve(visualMapModel.get('showLabel', true), !endsText);\n endsText && this._renderEndsText(thisGroup, endsText[0], itemSize, showLabel, itemAlign);\n zrUtil.each(viewData.viewPieceList, function (item) {\n var piece = item.piece;\n var itemGroup = new graphic.Group();\n itemGroup.onclick = zrUtil.bind(this._onItemClick, this, piece);\n\n this._enableHoverLink(itemGroup, item.indexInModelPieceList); // TODO Category\n\n\n var representValue = visualMapModel.getRepresentValue(piece);\n\n this._createItemSymbol(itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]]);\n\n if (showLabel) {\n var visualState = this.visualMapModel.getValueState(representValue);\n itemGroup.add(new graphic.Text({\n style: {\n x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,\n y: itemSize[1] / 2,\n text: piece.text,\n verticalAlign: 'middle',\n align: itemAlign,\n font: textFont,\n fill: textFill,\n opacity: visualState === 'outOfRange' ? 0.5 : 1\n }\n }));\n }\n\n thisGroup.add(itemGroup);\n }, this);\n endsText && this._renderEndsText(thisGroup, endsText[1], itemSize, showLabel, itemAlign);\n layout.box(visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap'));\n this.renderBackground(thisGroup);\n this.positionGroup(thisGroup);\n };\n\n PiecewiseVisualMapView.prototype._enableHoverLink = function (itemGroup, pieceIndex) {\n var _this = this;\n\n itemGroup.on('mouseover', function () {\n return onHoverLink('highlight');\n }).on('mouseout', function () {\n return onHoverLink('downplay');\n });\n\n var onHoverLink = function (method) {\n var visualMapModel = _this.visualMapModel; // TODO: TYPE More detailed action types\n\n visualMapModel.option.hoverLink && _this.api.dispatchAction({\n type: method,\n batch: helper.makeHighDownBatch(visualMapModel.findTargetDataIndices(pieceIndex), visualMapModel)\n });\n };\n };\n\n PiecewiseVisualMapView.prototype._getItemAlign = function () {\n var visualMapModel = this.visualMapModel;\n var modelOption = visualMapModel.option;\n\n if (modelOption.orient === 'vertical') {\n return helper.getItemAlign(visualMapModel, this.api, visualMapModel.itemSize);\n } else {\n // horizontal, most case left unless specifying right.\n var align = modelOption.align;\n\n if (!align || align === 'auto') {\n align = 'left';\n }\n\n return align;\n }\n };\n\n PiecewiseVisualMapView.prototype._renderEndsText = function (group, text, itemSize, showLabel, itemAlign) {\n if (!text) {\n return;\n }\n\n var itemGroup = new graphic.Group();\n var textStyleModel = this.visualMapModel.textStyleModel;\n itemGroup.add(new graphic.Text({\n style: {\n x: showLabel ? itemAlign === 'right' ? itemSize[0] : 0 : itemSize[0] / 2,\n y: itemSize[1] / 2,\n verticalAlign: 'middle',\n align: showLabel ? itemAlign : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n group.add(itemGroup);\n };\n /**\n * @private\n * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.\n */\n\n\n PiecewiseVisualMapView.prototype._getViewData = function () {\n var visualMapModel = this.visualMapModel;\n var viewPieceList = zrUtil.map(visualMapModel.getPieceList(), function (piece, index) {\n return {\n piece: piece,\n indexInModelPieceList: index\n };\n });\n var endsText = visualMapModel.get('text'); // Consider orient and inverse.\n\n var orient = visualMapModel.get('orient');\n var inverse = visualMapModel.get('inverse'); // Order of model pieceList is always [low, ..., high]\n\n if (orient === 'horizontal' ? inverse : !inverse) {\n viewPieceList.reverse();\n } // Origin order of endsText is [high, low]\n else if (endsText) {\n endsText = endsText.slice().reverse();\n }\n\n return {\n viewPieceList: viewPieceList,\n endsText: endsText\n };\n };\n\n PiecewiseVisualMapView.prototype._createItemSymbol = function (group, representValue, shapeParam) {\n group.add(createSymbol( // symbol will be string\n this.getControllerVisual(representValue, 'symbol'), shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3], // color will be string\n this.getControllerVisual(representValue, 'color')));\n };\n\n PiecewiseVisualMapView.prototype._onItemClick = function (piece) {\n var visualMapModel = this.visualMapModel;\n var option = visualMapModel.option;\n var selected = zrUtil.clone(option.selected);\n var newKey = visualMapModel.getSelectedMapKey(piece);\n\n if (option.selectedMode === 'single') {\n selected[newKey] = true;\n zrUtil.each(selected, function (o, key) {\n selected[key] = key === newKey;\n });\n } else {\n selected[newKey] = !selected[newKey];\n }\n\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: selected\n });\n };\n\n PiecewiseVisualMapView.type = 'visualMap.piecewise';\n return PiecewiseVisualMapView;\n}(VisualMapView);\n\nexport default PiecewiseVisualMapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport PiecewiseModel from './PiecewiseModel';\nimport PiecewiseView from './PiecewiseView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(PiecewiseModel);\n registers.registerComponentView(PiecewiseView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installVisualMapContinuous } from './installVisualMapContinuous';\nimport { install as installVisualMapPiecewise } from './installVisualMapPiecewise';\nexport function install(registers) {\n use(installVisualMapContinuous);\n use(installVisualMapPiecewise); // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { retrieveRawValue } from '../data/helper/dataProvider';\nimport { makeInner } from '../util/model';\nimport { getDecalFromPalette } from '../model/mixin/palette';\nvar DEFAULT_OPTION = {\n label: {\n enabled: true\n },\n decal: {\n show: false\n }\n};\nvar inner = makeInner();\nvar decalPaletteScope = {};\nexport default function ariaVisual(ecModel, api) {\n var ariaModel = ecModel.getModel('aria'); // See \"area enabled\" detection code in `GlobalModel.ts`.\n\n if (!ariaModel.get('enabled')) {\n return;\n }\n\n var defaultOption = zrUtil.clone(DEFAULT_OPTION);\n zrUtil.merge(defaultOption.label, ecModel.getLocaleModel().get('aria'), false);\n zrUtil.merge(ariaModel.option, defaultOption, false);\n setDecal();\n setLabel();\n\n function setDecal() {\n var decalModel = ariaModel.getModel('decal');\n var useDecal = decalModel.get('show');\n\n if (useDecal) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n var paletteScopeGroupByType_1 = zrUtil.createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData) {\n return;\n }\n\n var decalScope = paletteScopeGroupByType_1.get(seriesModel.type);\n\n if (!decalScope) {\n decalScope = {};\n paletteScopeGroupByType_1.set(seriesModel.type, decalScope);\n }\n\n inner(seriesModel).scope = decalScope;\n });\n ecModel.eachRawSeries(function (seriesModel) {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n if (typeof seriesModel.enableAriaDecal === 'function') {\n // Let series define how to use decal palette on data\n seriesModel.enableAriaDecal();\n return;\n }\n\n var data = seriesModel.getData();\n\n if (seriesModel.useColorPaletteOnData) {\n var dataAll_1 = seriesModel.getRawData();\n var idxMap_1 = {};\n var decalScope_1 = inner(seriesModel).scope;\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap_1[rawIdx] = idx;\n });\n var dataCount_1 = dataAll_1.count();\n dataAll_1.each(function (rawIdx) {\n var idx = idxMap_1[rawIdx];\n var name = dataAll_1.getName(rawIdx) || rawIdx + '';\n var paletteDecal = getDecalFromPalette(seriesModel.ecModel, name, decalScope_1, dataCount_1);\n var specifiedDecal = data.getItemVisual(idx, 'decal');\n data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal));\n });\n } else {\n var paletteDecal = getDecalFromPalette(seriesModel.ecModel, seriesModel.name, decalPaletteScope, ecModel.getSeriesCount());\n var specifiedDecal = data.getVisual('decal');\n data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal));\n }\n\n function mergeDecal(specifiedDecal, paletteDecal) {\n // Merge decal from palette to decal from itemStyle.\n // User do not need to specify all of the decal props.\n var resultDecal = specifiedDecal ? zrUtil.extend(zrUtil.extend({}, paletteDecal), specifiedDecal) : paletteDecal;\n resultDecal.dirty = true;\n return resultDecal;\n }\n });\n }\n }\n\n function setLabel() {\n var labelLocale = ecModel.getLocaleModel().get('aria');\n var labelModel = ariaModel.getModel('label');\n labelModel.option = zrUtil.defaults(labelModel.option, labelLocale);\n\n if (!labelModel.get('enabled')) {\n return;\n }\n\n var dom = api.getZr().dom;\n\n if (labelModel.get('description')) {\n dom.setAttribute('aria-label', labelModel.get('description'));\n return;\n }\n\n var seriesCnt = ecModel.getSeriesCount();\n var maxDataCnt = labelModel.get(['data', 'maxCount']) || 10;\n var maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10;\n var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt);\n var ariaLabel;\n\n if (seriesCnt < 1) {\n // No series, no aria label\n return;\n } else {\n var title = getTitle();\n\n if (title) {\n var withTitle = labelModel.get(['general', 'withTitle']);\n ariaLabel = replace(withTitle, {\n title: title\n });\n } else {\n ariaLabel = labelModel.get(['general', 'withoutTitle']);\n }\n\n var seriesLabels_1 = [];\n var prefix = seriesCnt > 1 ? labelModel.get(['series', 'multiple', 'prefix']) : labelModel.get(['series', 'single', 'prefix']);\n ariaLabel += replace(prefix, {\n seriesCount: seriesCnt\n });\n ecModel.eachSeries(function (seriesModel, idx) {\n if (idx < displaySeriesCnt) {\n var seriesLabel = void 0;\n var seriesName = seriesModel.get('name');\n var withName = seriesName ? 'withName' : 'withoutName';\n seriesLabel = seriesCnt > 1 ? labelModel.get(['series', 'multiple', withName]) : labelModel.get(['series', 'single', withName]);\n seriesLabel = replace(seriesLabel, {\n seriesId: seriesModel.seriesIndex,\n seriesName: seriesModel.get('name'),\n seriesType: getSeriesTypeName(seriesModel.subType)\n });\n var data = seriesModel.getData();\n\n if (data.count() > maxDataCnt) {\n // Show part of data\n var partialLabel = labelModel.get(['data', 'partialData']);\n seriesLabel += replace(partialLabel, {\n displayCnt: maxDataCnt\n });\n } else {\n seriesLabel += labelModel.get(['data', 'allData']);\n }\n\n var dataLabels = [];\n\n for (var i = 0; i < data.count(); i++) {\n if (i < maxDataCnt) {\n var name_1 = data.getName(i);\n var value = retrieveRawValue(data, i);\n var dataLabel = labelModel.get(['data', name_1 ? 'withName' : 'withoutName']);\n dataLabels.push(replace(dataLabel, {\n name: name_1,\n value: value\n }));\n }\n }\n\n var middleSeparator_1 = labelModel.get(['data', 'separator', 'middle']);\n var endSeparator_1 = labelModel.get(['data', 'separator', 'end']);\n seriesLabel += dataLabels.join(middleSeparator_1) + endSeparator_1;\n seriesLabels_1.push(seriesLabel);\n }\n });\n var separatorModel = labelModel.getModel(['series', 'multiple', 'separator']);\n var middleSeparator = separatorModel.get('middle');\n var endSeparator = separatorModel.get('end');\n ariaLabel += seriesLabels_1.join(middleSeparator) + endSeparator;\n dom.setAttribute('aria-label', ariaLabel);\n }\n }\n\n function replace(str, keyValues) {\n if (typeof str !== 'string') {\n return str;\n }\n\n var result = str;\n zrUtil.each(keyValues, function (value, key) {\n result = result.replace(new RegExp('\\\\{\\\\s*' + key + '\\\\s*\\\\}', 'g'), value);\n });\n return result;\n }\n\n function getTitle() {\n var title = ecModel.get('title');\n\n if (title && title.length) {\n title = title[0];\n }\n\n return title && title.text;\n }\n\n function getSeriesTypeName(type) {\n return ecModel.getLocaleModel().get(['series', 'typeNames'])[type] || '自定义图';\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function ariaPreprocessor(option) {\n if (!option || !option.aria) {\n return;\n }\n\n var aria = option.aria; // aria.show is deprecated and should use aria.enabled instead\n\n if (aria.show != null) {\n aria.enabled = aria.show;\n }\n\n aria.label = aria.label || {}; // move description, general, series, data to be under aria.label\n\n zrUtil.each(['description', 'general', 'series', 'data'], function (name) {\n if (aria[name] != null) {\n aria.label[name] = aria[name];\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ariaVisual from '../../visual/aria';\nimport ariaPreprocessor from './preprocessor';\nexport function install(registers) {\n registers.registerPreprocessor(ariaPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { keys, isArray, map, isObject, isString, isRegExp, isArrayLike, hasOwn } from 'zrender/lib/core/util';\nimport { throwError, makePrintable } from './log';\nimport { getRawValueParser, createFilterComparator } from '../data/helper/dataValueHelper';\n;\nvar RELATIONAL_EXPRESSION_OP_ALIAS_MAP = {\n value: 'eq',\n // PENDING: not good for literal semantic?\n '<': 'lt',\n '<=': 'lte',\n '>': 'gt',\n '>=': 'gte',\n '=': 'eq',\n '!=': 'ne',\n '<>': 'ne' // Might mileading for sake of the different between '==' and '===',\n // So dont support them.\n // '==': 'eq',\n // '===': 'seq',\n // '!==': 'sne'\n // PENDING: Whether support some common alias \"ge\", \"le\", \"neq\"?\n // ge: 'gte',\n // le: 'lte',\n // neq: 'ne',\n\n};\n\nvar RegExpEvaluator =\n/** @class */\nfunction () {\n function RegExpEvaluator(rVal) {\n // Support condVal: RegExp | string\n var condValue = this._condVal = isString(rVal) ? new RegExp(rVal) : isRegExp(rVal) ? rVal : null;\n\n if (condValue == null) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal regexp', rVal, 'in');\n }\n\n throwError(errMsg);\n }\n }\n\n RegExpEvaluator.prototype.evaluate = function (lVal) {\n var type = typeof lVal;\n return type === 'string' ? this._condVal.test(lVal) : type === 'number' ? this._condVal.test(lVal + '') : false;\n };\n\n return RegExpEvaluator;\n}();\n\nvar ConstConditionInternal =\n/** @class */\nfunction () {\n function ConstConditionInternal() {}\n\n ConstConditionInternal.prototype.evaluate = function () {\n return this.value;\n };\n\n return ConstConditionInternal;\n}();\n\nvar AndConditionInternal =\n/** @class */\nfunction () {\n function AndConditionInternal() {}\n\n AndConditionInternal.prototype.evaluate = function () {\n var children = this.children;\n\n for (var i = 0; i < children.length; i++) {\n if (!children[i].evaluate()) {\n return false;\n }\n }\n\n return true;\n };\n\n return AndConditionInternal;\n}();\n\nvar OrConditionInternal =\n/** @class */\nfunction () {\n function OrConditionInternal() {}\n\n OrConditionInternal.prototype.evaluate = function () {\n var children = this.children;\n\n for (var i = 0; i < children.length; i++) {\n if (children[i].evaluate()) {\n return true;\n }\n }\n\n return false;\n };\n\n return OrConditionInternal;\n}();\n\nvar NotConditionInternal =\n/** @class */\nfunction () {\n function NotConditionInternal() {}\n\n NotConditionInternal.prototype.evaluate = function () {\n return !this.child.evaluate();\n };\n\n return NotConditionInternal;\n}();\n\nvar RelationalConditionInternal =\n/** @class */\nfunction () {\n function RelationalConditionInternal() {}\n\n RelationalConditionInternal.prototype.evaluate = function () {\n var needParse = !!this.valueParser; // Call getValue with no `this`.\n\n var getValue = this.getValue;\n var tarValRaw = getValue(this.valueGetterParam);\n var tarValParsed = needParse ? this.valueParser(tarValRaw) : null; // Relational cond follow \"and\" logic internally.\n\n for (var i = 0; i < this.subCondList.length; i++) {\n if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {\n return false;\n }\n }\n\n return true;\n };\n\n return RelationalConditionInternal;\n}();\n\nfunction parseOption(exprOption, getters) {\n if (exprOption === true || exprOption === false) {\n var cond = new ConstConditionInternal();\n cond.value = exprOption;\n return cond;\n }\n\n var errMsg = '';\n\n if (!isObjectNotArray(exprOption)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal config. Expect a plain object but actually', exprOption);\n }\n\n throwError(errMsg);\n }\n\n if (exprOption.and) {\n return parseAndOrOption('and', exprOption, getters);\n } else if (exprOption.or) {\n return parseAndOrOption('or', exprOption, getters);\n } else if (exprOption.not) {\n return parseNotOption(exprOption, getters);\n }\n\n return parseRelationalOption(exprOption, getters);\n}\n\nfunction parseAndOrOption(op, exprOption, getters) {\n var subOptionArr = exprOption[op];\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('\"and\"/\"or\" condition should only be `' + op + ': [...]` and must not be empty array.', 'Illegal condition:', exprOption);\n }\n\n if (!isArray(subOptionArr)) {\n throwError(errMsg);\n }\n\n if (!subOptionArr.length) {\n throwError(errMsg);\n }\n\n var cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal();\n cond.children = map(subOptionArr, function (subOption) {\n return parseOption(subOption, getters);\n });\n\n if (!cond.children.length) {\n throwError(errMsg);\n }\n\n return cond;\n}\n\nfunction parseNotOption(exprOption, getters) {\n var subOption = exprOption.not;\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('\"not\" condition should only be `not: {}`.', 'Illegal condition:', exprOption);\n }\n\n if (!isObjectNotArray(subOption)) {\n throwError(errMsg);\n }\n\n var cond = new NotConditionInternal();\n cond.child = parseOption(subOption, getters);\n\n if (!cond.child) {\n throwError(errMsg);\n }\n\n return cond;\n}\n\nfunction parseRelationalOption(exprOption, getters) {\n var errMsg = '';\n var valueGetterParam = getters.prepareGetValue(exprOption);\n var subCondList = [];\n var exprKeys = keys(exprOption);\n var parserName = exprOption.parser;\n var valueParser = parserName ? getRawValueParser(parserName) : null;\n\n for (var i = 0; i < exprKeys.length; i++) {\n var keyRaw = exprKeys[i];\n\n if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) {\n continue;\n }\n\n var op = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw;\n var condValueRaw = exprOption[keyRaw];\n var condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw;\n var evaluator = createFilterComparator(op, condValueParsed) || op === 'reg' && new RegExpEvaluator(condValueParsed);\n\n if (!evaluator) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal relational operation: \"' + keyRaw + '\" in condition:', exprOption);\n }\n\n throwError(errMsg);\n }\n\n subCondList.push(evaluator);\n }\n\n if (!subCondList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Relational condition must have at least one operator.', 'Illegal condition:', exprOption);\n } // No relational operator always disabled in case of dangers result.\n\n\n throwError(errMsg);\n }\n\n var cond = new RelationalConditionInternal();\n cond.valueGetterParam = valueGetterParam;\n cond.valueParser = valueParser;\n cond.getValue = getters.getValue;\n cond.subCondList = subCondList;\n return cond;\n}\n\nfunction isObjectNotArray(val) {\n return isObject(val) && !isArrayLike(val);\n}\n\nvar ConditionalExpressionParsed =\n/** @class */\nfunction () {\n function ConditionalExpressionParsed(exprOption, getters) {\n this._cond = parseOption(exprOption, getters);\n }\n\n ConditionalExpressionParsed.prototype.evaluate = function () {\n return this._cond.evaluate();\n };\n\n return ConditionalExpressionParsed;\n}();\n\n;\nexport function parseConditionalExpression(exprOption, getters) {\n return new ConditionalExpressionParsed(exprOption, getters);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseConditionalExpression } from '../../util/conditionalExpression';\nimport { hasOwn, createHashMap } from 'zrender/lib/core/util';\nimport { makePrintable, throwError } from '../../util/log';\nexport var filterTransform = {\n type: 'echarts:filter',\n // PEDING: enhance to filter by index rather than create new data\n transform: function (params) {\n // [Caveat] Fail-Fast:\n // Do not return the whole dataset unless user config indicate it explicitly.\n // For example, if no condition specified by mistake, return an empty result\n // is better than return the entire raw soruce for user to find the mistake.\n var upstream = params.upstream;\n var rawItem;\n var condition = parseConditionalExpression(params.config, {\n valueGetterAttrMap: createHashMap({\n dimension: true\n }),\n prepareGetValue: function (exprOption) {\n var errMsg = '';\n var dimLoose = exprOption.dimension;\n\n if (!hasOwn(exprOption, 'dimension')) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Relation condition must has prop \"dimension\" specified.', 'Illegal condition:', exprOption);\n }\n\n throwError(errMsg);\n }\n\n var dimInfo = upstream.getDimensionInfo(dimLoose);\n\n if (!dimInfo) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal condition:', exprOption, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n return {\n dimIdx: dimInfo.index\n };\n },\n getValue: function (param) {\n return upstream.retrieveValueFromItem(rawItem, param.dimIdx);\n }\n });\n var resultData = [];\n\n for (var i = 0, len = upstream.count(); i < len; i++) {\n rawItem = upstream.getRawDataItem(i);\n\n if (condition.evaluate()) {\n resultData.push(rawItem);\n }\n }\n\n return {\n data: resultData\n };\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS } from '../../util/types';\nimport { makePrintable, throwError } from '../../util/log';\nimport { each } from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport { getRawValueParser, SortOrderComparator } from '../../data/helper/dataValueHelper';\nvar sampleLog = '';\n\nif (process.env.NODE_ENV !== 'production') {\n sampleLog = ['Valid config is like:', '{ dimension: \"age\", order: \"asc\" }', 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'].join(' ');\n}\n\nexport var sortTransform = {\n type: 'echarts:sort',\n transform: function (params) {\n var upstream = params.upstream;\n var config = params.config;\n var errMsg = ''; // Normalize\n // const orderExprList: OrderExpression[] = isArray(config[0])\n // ? config as OrderExpression[]\n // : [config as OrderExpression];\n\n var orderExprList = normalizeToArray(config);\n\n if (!orderExprList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Empty `config` in sort transform.';\n }\n\n throwError(errMsg);\n }\n\n var orderDefList = [];\n each(orderExprList, function (orderExpr) {\n var dimLoose = orderExpr.dimension;\n var order = orderExpr.order;\n var parserName = orderExpr.parser;\n var incomparable = orderExpr.incomparable;\n\n if (dimLoose == null) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (incomparable && incomparable !== 'min' && incomparable !== 'max') {\n var errMsg_1 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_1 = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\n }\n\n throwError(errMsg_1);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n var errMsg_2 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_2 = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\n }\n\n throwError(errMsg_2);\n }\n\n var dimInfo = upstream.getDimensionInfo(dimLoose);\n\n if (!dimInfo) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n var parser = parserName ? getRawValueParser(parserName) : null;\n\n if (parserName && !parser) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Invalid parser name ' + parserName + '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n orderDefList.push({\n dimIdx: dimInfo.index,\n parser: parser,\n comparator: new SortOrderComparator(order, incomparable)\n });\n }); // TODO: support it?\n\n var sourceFormat = upstream.sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\n }\n\n throwError(errMsg);\n } // Other upstream format are all array.\n\n\n var resultData = [];\n\n for (var i = 0, len = upstream.count(); i < len; i++) {\n resultData.push(upstream.getRawDataItem(i));\n }\n\n resultData.sort(function (item0, item1) {\n for (var i = 0; i < orderDefList.length; i++) {\n var orderDef = orderDefList[i];\n var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\n var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\n\n if (orderDef.parser) {\n val0 = orderDef.parser(val0);\n val1 = orderDef.parser(val1);\n }\n\n var result = orderDef.comparator.evaluate(val0, val1);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n });\n return {\n data: resultData\n };\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { filterTransform } from './filterTransform';\nimport { sortTransform } from './sortTransform';\nexport function install(registers) {\n registers.registerTransform(filterTransform);\n registers.registerTransform(sortTransform);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * This module is imported by echarts directly.\n *\n * Notice:\n * Always keep this file exists for backward compatibility.\n * Because before 4.1.0, dataset is an optional component,\n * some users may import this module manually.\n */\n\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { SERIES_LAYOUT_BY_COLUMN } from '../../util/types';\nimport { disableTransformOptionMerge, SourceManager } from '../../data/helper/sourceManager';\n\nvar DatasetModel =\n/** @class */\nfunction (_super) {\n __extends(DatasetModel, _super);\n\n function DatasetModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataset';\n return _this;\n }\n\n DatasetModel.prototype.init = function (option, parentModel, ecModel) {\n _super.prototype.init.call(this, option, parentModel, ecModel);\n\n this._sourceManager = new SourceManager(this);\n disableTransformOptionMerge(this);\n };\n\n DatasetModel.prototype.mergeOption = function (newOption, ecModel) {\n _super.prototype.mergeOption.call(this, newOption, ecModel);\n\n disableTransformOptionMerge(this);\n };\n\n DatasetModel.prototype.optionUpdated = function () {\n this._sourceManager.dirty();\n };\n\n DatasetModel.prototype.getSourceManager = function () {\n return this._sourceManager;\n };\n\n DatasetModel.type = 'dataset';\n DatasetModel.defaultOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN\n };\n return DatasetModel;\n}(ComponentModel);\n\nexport { DatasetModel };\n\nvar DatasetView =\n/** @class */\nfunction (_super) {\n __extends(DatasetView, _super);\n\n function DatasetView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataset';\n return _this;\n }\n\n DatasetView.type = 'dataset';\n return DatasetView;\n}(ComponentView);\n\nexport function install(registers) {\n registers.registerComponentModel(DatasetModel);\n registers.registerComponentView(DatasetView);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from './lib/extension';\nexport * from './lib/export/core'; // ----------------------------------------------\n// All of the modules that are allowed to be\n// imported are listed below.\n//\n// Users MUST NOT import other modules that are\n// not included in this list.\n// ----------------------------------------------\n\nimport { SVGRenderer, CanvasRenderer } from './lib/export/renderers';\nimport { LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart } from './lib/export/charts';\nimport { GridComponent, PolarComponent, GeoComponent, SingleAxisComponent, ParallelComponent, CalendarComponent, GraphicComponent, ToolboxComponent, TooltipComponent, AxisPointerComponent, BrushComponent, TitleComponent, TimelineComponent, MarkPointComponent, MarkLineComponent, MarkAreaComponent, LegendComponent, DataZoomComponent, DataZoomInsideComponent, DataZoomSliderComponent, VisualMapComponent, VisualMapContinuousComponent, VisualMapPiecewiseComponent, AriaComponent, DatasetComponent, TransformComponent } from './lib/export/components'; // -----------------\n// Render engines\n// -----------------\n// Render via Canvas.\n// echarts.init(dom, null, { renderer: 'canvas' })\n\nuse([CanvasRenderer]); // Render via SVG.\n// echarts.init(dom, null, { renderer: 'svg' })\n\nuse([SVGRenderer]); // ----------------\n// Charts (series)\n// ----------------\n// All of the series types, for example:\n// chart.setOption({\n// series: [{\n// type: 'line' // or 'bar', 'pie', ...\n// }]\n// });\n\nuse([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]); // -------------------\n// Coordinate systems\n// -------------------\n// All of the axis modules have been included in the\n// coordinate system module below, do not need to\n// make extra import.\n// `cartesian` coordinate system. For some historical\n// reasons, it is named as grid, for example:\n// chart.setOption({\n// grid: {...},\n// xAxis: {...},\n// yAxis: {...},\n// series: [{...}]\n// });\n\nuse(GridComponent); // `polar` coordinate system, for example:\n// chart.setOption({\n// polar: {...},\n// radiusAxis: {...},\n// angleAxis: {...},\n// series: [{\n// coordinateSystem: 'polar'\n// }]\n// });\n\nuse(PolarComponent); // `geo` coordinate system, for example:\n// chart.setOption({\n// geo: {...},\n// series: [{\n// coordinateSystem: 'geo'\n// }]\n// });\n\nuse(GeoComponent); // `singleAxis` coordinate system (notice, it is a coordinate system\n// with only one axis, work for chart like theme river), for example:\n// chart.setOption({\n// singleAxis: {...}\n// series: [{type: 'themeRiver', ...}]\n// });\n\nuse(SingleAxisComponent); // `parallel` coordinate system, only work for parallel series, for example:\n// chart.setOption({\n// parallel: {...},\n// parallelAxis: [{...}, ...],\n// series: [{\n// type: 'parallel'\n// }]\n// });\n\nuse(ParallelComponent); // `calendar` coordinate system. for example,\n// chart.setOptionp({\n// calendar: {...},\n// series: [{\n// coordinateSystem: 'calendar'\n// }]\n// );\n\nuse(CalendarComponent); // ------------------\n// Other components\n// ------------------\n// `graphic` component, for example:\n// chart.setOption({\n// graphic: {...}\n// });\n\nuse(GraphicComponent); // `toolbox` component, for example:\n// chart.setOption({\n// toolbox: {...}\n// });\n\nuse(ToolboxComponent); // `tooltip` component, for example:\n// chart.setOption({\n// tooltip: {...}\n// });\n\nuse(TooltipComponent); // `axisPointer` component, for example:\n// chart.setOption({\n// tooltip: {axisPointer: {...}, ...}\n// });\n// Or\n// chart.setOption({\n// axisPointer: {...}\n// });\n\nuse(AxisPointerComponent); // `brush` component, for example:\n// chart.setOption({\n// brush: {...}\n// });\n// Or\n// chart.setOption({\n// tooltip: {feature: {brush: {...}}\n// })\n\nuse(BrushComponent); // `title` component, for example:\n// chart.setOption({\n// title: {...}\n// });\n\nuse(TitleComponent); // `timeline` component, for example:\n// chart.setOption({\n// timeline: {...}\n// });\n\nuse(TimelineComponent); // `markPoint` component, for example:\n// chart.setOption({\n// series: [{markPoint: {...}}]\n// });\n\nuse(MarkPointComponent); // `markLine` component, for example:\n// chart.setOption({\n// series: [{markLine: {...}}]\n// });\n\nuse(MarkLineComponent); // `markArea` component, for example:\n// chart.setOption({\n// series: [{markArea: {...}}]\n// });\n\nuse(MarkAreaComponent); // `legend` component not scrollable. for example:\n// chart.setOption({\n// legend: {...}\n// });\n\nuse(LegendComponent); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.\n\nuse(DataZoomComponent); // `dataZoom` component providing drag, pinch, wheel behaviors\n// inside coodinate system, for example:\n// chart.setOption({\n// dataZoom: {type: 'inside'}\n// });\n\nuse(DataZoomInsideComponent); // `dataZoom` component providing a slider bar, for example:\n// chart.setOption({\n// dataZoom: {type: 'slider'}\n// });\n\nuse(DataZoomSliderComponent); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.\n\nuse(VisualMapComponent); // `visualMap` component providing continuous bar, for example:\n// chart.setOption({\n// visualMap: {type: 'continuous'}\n// });\n\nuse(VisualMapContinuousComponent); // `visualMap` component providing pieces bar, for example:\n// chart.setOption({\n// visualMap: {type: 'piecewise'}\n// });\n\nuse(VisualMapPiecewiseComponent); // `aria` component providing aria, for example:\n// chart.setOption({\n// aria: {...}\n// });\n\nuse(AriaComponent); // dataset transform\n// chart.setOption({\n// dataset: {\n// transform: []\n// }\n// });\n\nuse(TransformComponent);\nuse(DatasetComponent);"],"names":["clone","_calcOut","eventUtil.clientToLocal","dist","eventTool.stop","util.each","vec2.dist","timsort","util.indexOf","easing","easingFuncs","lerp","color.parse","requestAnimationFrame","zrUtil.map","zrUtil.noop","zrUtil.each","create","copy","mul","scale","matrix.identity","matrix.create","matrix.mul","matrix.copy","matrix.invert","vector.applyTransform","matrix.rotate","matrix.translate","matrix.scale","methods","zrUtil.indexOf","zrUtil.keys","HandlerProxy","zrUtil.guid","parsePercent","zrUtil.reduce","zrUtil.assert","zrUtil.createObject","zrUtil.extend","zrUtil.inherits","imageHelper.findExistImage","imageHelper.isImageReady","PRIMARY_STATES_KEYS","EPSILON","v2Create","isNotAroundZero","v2DistSquare","mathMin","mathMax","vec2.create","cubicExtrema","curve.cubicExtrema","cubicAt","curve.cubicAt","quadraticExtremum","curve.quadraticExtremum","quadraticAt","curve.quadraticAt","min","max","vec2.min","vec2.max","mathCos","mathSin","mathSqrt","PI2","dpr","containStroke","curve.cubicProjectPoint","CMD","curve.cubicRootAt","curve.quadraticRootAt","line.containStroke","cubic.containStroke","quadratic.containStroke","arc.containStroke","pathContain.containStroke","pathContain.contain","round","roundRectHelper.buildPath","color","colorTool.lift","v2ApplyTransform","PI","mathAbs","buildPath","roundSectorHelper.buildPath","distance","v2Distance","v2Min","v2Max","v2Clone","v2Sub","v2Scale","v2Add","polyHelper.buildPath","subPixelOptimizeOutputShape","vec2.normalize","minTv","maxTv","Displayble","pathTool.extendFromString","pathTool.createFromString","mergePath","pathTool.mergePath","subPixelOptimizeLine","subPixelOptimizeUtil.subPixelOptimizeLine","subPixelOptimizeRect","subPixelOptimizeUtil.subPixelOptimizeRect","subPixelOptimize","subPixelOptimizeUtil.subPixelOptimize","applyTransform","invert","zrUtil.merge","numberUtil.parseDate","defaults","zrUtil.defaults","zrUtil.isArray","Text","zrUtil.isString","normalizeCssArray","zrUtil.normalizeCssArray","zrUtil.trim","timeFormat","zrUtil.isStringSafe","zrUtil.isNumber","zrUtil.isObject","each","zrUtil.curry","formatUtil.normalizeCssArray","componentUtil.getUID","layout.fetchLayoutMode","layout.getLayoutParams","layout.mergeLayoutParam","componentUtil.enableSubTypeDefaulter","componentUtil.enableTopologicalTravel","modelUtil.normalizeToArray","modelUtil.mappingToExists","modelUtil.setComponentTypeToKeyInfo","modelUtil.isComponentIdInternal","modelUtil.convertOptionIdName","zrUtil.bind","isObject","modelUtil.TEXT_STYLE_OPTIONS","zrUtil.isTypedArray","set","compatStyle","inner","modelUtil.makeInner","modelUtil.defaultEmphasis","zrUtil.mixin","modelUtil.isNameSpecified","clazzUtil.enableClassExtend","clazzUtil.enableClassManagement","modelUtil.queryDataIndex","graphic.Group","graphic.Rect","graphic.Text","graphic.Arc","vector.dist","vector.lerp","graphic.Path","graphic.Line","graphic.Circle","graphic.makeImage","graphic.makePath","numberReg","isAroundEqual","contain","bbox.fromPoints","polygonContain.contain","vec2.applyTransform","zrUtil.filter","points","parseGeoJson","fixTextCoord","fixGeoCoord","assert","isFunction","zrUtil.isFunction","indexOf","version","zrender.init","zrUtil.clone","backwardCompat","zrUtil.setAsPrimitive","instances","zrUtil.createCanvas","graphic.Image","modelUtil.parseFinder","modelUtil.setAttribute","zrUtil.createHashMap","colorTool.parse","colorTool.stringify","modelUtil.preParseFinder","graphic.isElementRemoved","init","zrUtil.isDom","dispose","modelUtil.getAttribute","zrUtil.$override","decal","loadingDefault","darkTheme","map","zrUtil.isArrayLike","zrUtil.slice","CoordinateSystem","numberUtil.round","numberUtil.nice","numberUtil.getPrecision","normalize","scaleHelper.contain","scaleHelper.normalize","scaleHelper.scale","roundNumber","helper.contain","helper.normalize","helper.scale","helper.getIntervalPrecision","formatUtil.addCommas","helper.intervalScaleNiceTicks","mathFloor","mathPow","numberUtil.quantity","dataStack","axisHelper.createScaleByModel","axisHelper.niceScaleExtent","createTextStyle","innerCreateTextStyle","textContain.getBoundingRect","isAroundZero","adjustTextY","zrUtil.logError","colorTool.toHex","util.extend","util.logError","util.createCanvas","util.isObject","util.isGradientObject","util.isImagePatternObject","parseInt10","util.merge","install","graphic.updateProps","graphic.initProps","graphic.removeElement","SymbolClz","graphic.Sector","graphic.LinearGradient","isPointNull","modelUtil.interpolateRawValues","LineSeries","layoutPoints","Sausage","BarSeries","layout.getLayoutRect","RADIAN","graphic.Polyline","graphic.removeElementWithFadeOut","labelLayout","layout","zrUtil.retrieve","zrUtil.retrieve3","graphic.setTooltipConfig","matrixUtil.identity","matrixUtil.rotate","matrixUtil.mul","axisPointerModelHelper.fixValue","axisPointerModelHelper.getAxisPointerModel","cartesianAxisHelper.layout","graphic.groupTransition","installGridSimple","zrUtil.find","createSymbol","symbolUtil.createSymbol","graphic.Polygon","axisBuilderAttrs","RadarView","graphic.Ring","graphic.mergePath","numberUtil.parsePercent","installRadarComponent","echarts.registerAction","eventTool.isMiddleOrRightButtonOnMouseUpDown","interactionMutex.isTaken","graphic.CompoundPath","roamHelper.updateViewOnPan","roamHelper.updateViewOnZoom","vector.copy","zrUtil.retrieve2","getCoordSys","zrUtil.mergeAll","installGeo","getViewRect","symbolNeedsDraw","graphic.BezierCurve","separation","sep","noop","helper.retrieveTargetInfo","helper.aboveViewRoot","layout.positionElement","layout.getAvailableSize","Group","Rect","animationUtil.createWrap","zrColor.fastLerp","zrColor.stringify","zrColor.modifyHSL","zrColor.modifyAlpha","zrColor.parse","helper.getPathToRoot","sort","vec2.clone","scaleAndAdd","vec2.scaleAndAdd","vec2.sub","vec2.len","vec2.set","vec2.copy","Line","vector.sub","vector.normalize","LineGroup","makeSeriesScope","curveTool.quadraticAt","vec2.distSquare","quadraticSubdivide","curveTool.quadraticSubdivide","edgeVisual","simpleLayout","circularLayout","forceLayout","createView","graphic.Point","opacityAccessPath","ParallelView","mathCeil","layoutUtil.getLayoutRect","restrict","graphic.applyTransform","numberUtil.asc","interactionMutex.take","interactionMutex.release","trigger","getTransform","graphic.getTransform","graphic.transformDirection","graphicUtil.clipPointsByRect","graphic.BoundingRect","brushHelper.makeRectPanelClipPath","brushHelper.makeRectIsTargetByCursor","brushHelper.makeLinearBrushOtherExtent","actionInfo","installParallelComponent","createGridClipShape","center","createNormalBox","createLarge","transInit","setLargeStyle","LargeArr","preprocessor","normalizeSymbolSize","matrix.clone","curveUtil.quadraticAt","quadraticDerivativeAt","curveUtil.quadraticDerivativeAt","Polyline","lineContain.containStroke","quadraticContain.containStroke","updateCommon","completeTreeValue","initChildren","dataToCoordSize","tmpArr","normalizeRadian","prepareCartesian2d","prepareGeo","prepareSingleAxis","preparePolar","prepareCalendar","graphicUtil.makePath","graphicUtil.Image","graphicUtil.Text","graphicUtil.Group","graphicUtil.getShapeClass","isPath","graphicUtil.initProps","graphicUtil.updateProps","updateZ","labelStyleHelper.createTextStyle","labelStyleHelper.createTextConfig","labelStyleHelper.getFont","graphicUtil.Path","bind","updateProps","axisPointerModelHelper.getAxisInfo","graphic.createIcon","throttleUtil.createOrUpdate","axisHelper.getAxisRawValue","viewHelper.buildElStyle","viewHelper.buildCartesianSingleLabelElOption","viewHelper.getTransformedPosition","viewHelper.makeLineShape","viewHelper.makeRectShape","globalListener.register","globalListener.unregister","modelHelper.makeKey","installSimple","installAxisPointer","pointerShapeBuilder","viewHelper.buildLabelElOption","viewHelper.makeSectorShape","elementList","selfBuilderAttrs","axisElementBuilders","getSeriesStackId","getAxisKey","singleAxisHelper.layout","formatUtil.formatTplSimple","createEl","graphicUtil.setTooltipConfig","layoutUtil.positionElement","zrUtil.hasOwn","layoutUtil.LOCATION_PARAMS","layoutUtil.mergeLayoutParam","layoutUtil.copyLayoutParams","asc","numberUtil.linearMap","numberUtil.getPixelPrecision","SelectZoomModel","SelectZoomView","featureManager.getFeature","layoutBox","listComponentHelper.layout","listComponentHelper.makeBackground","trim","clear","history.clear","parseFinder","modelUtilParseFinder","handlers","history.push","history.pop","history.count","DataZoom","Restore","installDataZoomSelect","makeStyleCoord","makeDispatchAction","axisPointerViewHelper.getValueLabel","formatUtil.convertToColorString","formatUtil.formatTpl","visualSolution.createVisualMappings","visualSolution.applyVisual","visualSolution.replaceVisualOption","createScaleByModel","getAxisInfo","dataFilter","createList","markerHelper.dataTransform","markerHelper.dataFilter","markerHelper.dimValueGetter","markerHelper.getAxisInfo","markerHelper.numCalculate","dimValueGetter","isInifinity","colorUtil.modifyAlpha","curry","layoutUtil.box","mergeAndNormalizeLayoutParams","WH","XY","installLegendPlain","installLegendScroll","dispatchAction","roams.setViewInfoToCoordSysRecord","roams.disposeCoordSysRecordIfNeeded","throttle.createOrUpdate","throttle.clear","installDataZoomInside","installDataZoomSlider","defaultOption","mapVisual","isArray","linearMap","helper.getItemAlign","getCursor","modelUtil.compressBatches","helper.makeHighDownBatch","visualSolution.incrementalApplyVisual","has","installed","installCommon","layout.box","PiecewiseView","installVisualMapContinuous","installVisualMapPiecewise","CanvasRenderer","SVGRenderer","LineChart","BarChart","PieChart","ScatterChart","RadarChart","MapChart","TreeChart","TreemapChart","GraphChart","GaugeChart","FunnelChart","ParallelChart","SankeyChart","BoxplotChart","CandlestickChart","EffectScatterChart","LinesChart","HeatmapChart","PictorialBarChart","ThemeRiverChart","SunburstChart","CustomChart","GridComponent","PolarComponent","GeoComponent","SingleAxisComponent","ParallelComponent","CalendarComponent","GraphicComponent","ToolboxComponent","TooltipComponent","AxisPointerComponent","BrushComponent","TitleComponent","TimelineComponent","MarkPointComponent","MarkLineComponent","MarkAreaComponent","LegendComponent","DataZoomComponent","DataZoomInsideComponent","DataZoomSliderComponent","VisualMapComponent","VisualMapContinuousComponent","VisualMapPiecewiseComponent","AriaComponent","TransformComponent","DatasetComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC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QAAQ,YAAY,EAAE,CAAC;IACvB,QAAQ,UAAU,EAAE,MAAM,CAAC,UAAU;IACrC,OAAO,CAAC;IACR,KAAK;AACL;IACA,IAAI,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtE,GAAG,CAAC,CAAC;IACL,CAAC;AACD;IACA,SAAS,uBAAuB,CAAC,YAAY,EAAE;IAC/C,EAAE,OAAO,YAAY,KAAK,wBAAwB,IAAI,YAAY,KAAK,yBAAyB,CAAC;IACjG;;IClcA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa;IACjB;IACA,YAAY;IACZ,EAAE,SAAS,aAAa,CAAC,UAAU,EAAE;IACrC;IACA,IAAI,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;AAC1B;IACA,IAAI,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAChC,IAAI,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;IAC9B,IAAI,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAClC,GAAG;IACH;IACA;IACA;AACA;AACA;IACA,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,GAAG,YAAY;IAC9C,IAAI,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,CAAC,C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AqB,CAAC,WAAW,CAAC,CAAC;IAC/C;;IChEA;IACA;IACA;IACA;AACA;IACA,GAAG,CAAC,CAACiQ,SAAc,CAAC,CAAC,CAAC;IACtB;AACA;IACA,GAAG,CAAC,CAACC,OAAW,CAAC,CAAC,CAAC;IACnB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAAC,CAACC,SAAS,EAAEC,SAAQ,EAAEC,SAAQ,EAAEC,SAAY,EAAEC,SAAU,EAAEC,SAAQ,EAAEC,SAAS,EAAEC,SAAY,EAAEC,SAAU,EAAEC,SAAU,EAAEC,SAAW,EAAEC,SAAa,EAAEC,SAAW,EAAEC,SAAY,EAAEC,SAAgB,EAAEC,SAAkB,EAAEC,SAAU,EAAEC,SAAY,EAAEC,SAAiB,EAAEC,SAAe,EAAEC,SAAa,EAAEC,SAAW,CAAC,CAAC,CAAC;IACjT;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAa,CAAC,CAAC;IACnB;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAc,CAAC,CAAC;IACpB;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAY,CAAC,CAAC;IAClB;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAmB,CAAC,CAAC;IACzB;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAoB,CAAC,CAAC;IAC1B;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAc,CAAC,CAAC;IACpB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAc,CAAC,CAAC;IACpB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAe,CAAC,CAAC;AACrB;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAuB,CAAC,CAAC;IAC7B;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAuB,CAAC,CAAC;AAC7B;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAA4B,CAAC,CAAC;IAClC;IACA;IACA;AACA;IACA,GAAG,CAACC,SAA2B,CAAC,CAAC;IACjC;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAa,CAAC,CAAC;IACnB;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB,GAAG,CAACC,SAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{ + "version": 3, + "sources": ["../src/echarts.all.ts", "../node_modules/zrender/src/zrender.ts", "../node_modules/zrender/src/core/env.ts", "../node_modules/zrender/src/core/util.ts", "../node_modules/zrender/src/core/vector.ts", "../node_modules/zrender/src/mixin/Draggable.ts", "../node_modules/zrender/src/core/Eventful.ts", "../node_modules/zrender/src/core/fourPointsTransform.ts", "../node_modules/zrender/src/core/dom.ts", "../node_modules/zrender/src/core/event.ts", "../node_modules/zrender/src/core/GestureMgr.ts", "../node_modules/zrender/src/Handler.ts", "../node_modules/zrender/src/core/timsort.ts", "../node_modules/zrender/src/graphic/constants.ts", "../node_modules/zrender/src/Storage.ts", "../node_modules/zrender/src/animation/requestAnimationFrame.ts", "../node_modules/zrender/src/animation/easing.ts", "../node_modules/zrender/src/animation/Clip.ts", "../node_modules/zrender/src/tool/color.ts", "../node_modules/zrender/src/core/LRU.ts", "../node_modules/zrender/src/animation/Animator.ts", "../node_modules/zrender/src/animation/Animation.ts", "../node_modules/zrender/src/dom/HandlerProxy.ts", "../node_modules/zrender/src/config.ts", "../node_modules/zrender/src/core/matrix.ts", "../node_modules/zrender/src/core/Transformable.ts", "../node_modules/zrender/src/core/Point.ts", "../node_modules/zrender/src/core/BoundingRect.ts", "../node_modules/zrender/src/contain/text.ts", "../node_modules/zrender/src/Element.ts", "../node_modules/zrender/src/graphic/Group.ts", "../src/util/number.ts", "../src/util/log.ts", "../src/util/model.ts", "../src/util/clazz.ts", "../src/model/mixin/makeStyleMapper.ts", "../src/model/mixin/areaStyle.ts", "../node_modules/zrender/src/graphic/helper/image.ts", "../node_modules/zrender/src/graphic/helper/parseText.ts", "../node_modules/zrender/src/graphic/Displayable.ts", "../node_modules/zrender/src/core/curve.ts", "../node_modules/zrender/src/core/bbox.ts", "../node_modules/zrender/src/core/PathProxy.ts", "../node_modules/zrender/src/contain/line.ts", "../node_modules/zrender/src/contain/cubic.ts", "../node_modules/zrender/src/contain/quadratic.ts", "../node_modules/zrender/src/contain/util.ts", "../node_modules/zrender/src/contain/arc.ts", "../node_modules/zrender/src/contain/windingLine.ts", "../node_modules/zrender/src/contain/path.ts", "../node_modules/zrender/src/graphic/Path.ts", "../node_modules/zrender/src/graphic/TSpan.ts", "../node_modules/zrender/src/graphic/Image.ts", "../node_modules/zrender/src/graphic/helper/roundRect.ts", "../node_modules/zrender/src/graphic/helper/subPixelOptimize.ts", "../node_modules/zrender/src/graphic/shape/Rect.ts", "../node_modules/zrender/src/graphic/Text.ts", "../src/util/innerStore.ts", "../src/util/states.ts", "../src/util/graphic.ts", "../node_modules/zrender/src/tool/transformPath.ts", "../node_modules/zrender/src/tool/path.ts", "../node_modules/zrender/src/graphic/shape/Circle.ts", "../node_modules/zrender/src/graphic/shape/Ellipse.ts", "../node_modules/zrender/src/graphic/helper/roundSector.ts", "../node_modules/zrender/src/graphic/shape/Sector.ts", "../node_modules/zrender/src/graphic/shape/Ring.ts", "../node_modules/zrender/src/graphic/helper/smoothSpline.ts", "../node_modules/zrender/src/graphic/helper/smoothBezier.ts", "../node_modules/zrender/src/graphic/helper/poly.ts", "../node_modules/zrender/src/graphic/shape/Polygon.ts", "../node_modules/zrender/src/graphic/shape/Polyline.ts", "../node_modules/zrender/src/graphic/shape/Line.ts", "../node_modules/zrender/src/graphic/shape/BezierCurve.ts", "../node_modules/zrender/src/graphic/shape/Arc.ts", "../node_modules/zrender/src/graphic/CompoundPath.ts", "../node_modules/zrender/src/graphic/Gradient.ts", "../node_modules/zrender/src/graphic/LinearGradient.ts", "../node_modules/zrender/src/graphic/RadialGradient.ts", "../node_modules/zrender/src/core/OrientedBoundingRect.ts", "../node_modules/zrender/src/graphic/IncrementalDisplayable.ts", "../src/animation/basicTrasition.ts", "../src/label/labelStyle.ts", "../src/model/mixin/textStyle.ts", "../src/model/mixin/lineStyle.ts", "../src/model/mixin/itemStyle.ts", "../src/model/Model.ts", "../src/util/component.ts", "../src/i18n/langEN.ts", "../src/i18n/langZH.ts", "../src/core/locale.ts", "../src/util/time.ts", "../src/legacy/getTextRect.ts", "../src/util/format.ts", "../src/util/layout.ts", "../src/model/Component.ts", "../src/model/globalDefault.ts", "../src/util/types.ts", "../src/data/helper/sourceHelper.ts", "../src/model/internalComponentCreator.ts", "../src/model/mixin/palette.ts", "../src/model/Global.ts", "../src/core/ExtensionAPI.ts", "../src/core/CoordinateSystem.ts", "../src/model/OptionManager.ts", "../src/preprocessor/helper/compatStyle.ts", "../src/preprocessor/backwardCompat.ts", "../src/processor/dataStack.ts", "../src/data/Source.ts", "../src/data/helper/dataProvider.ts", "../src/model/mixin/dataFormat.ts", "../src/core/task.ts", "../src/data/helper/dataValueHelper.ts", "../src/data/helper/transform.ts", "../src/data/DataStorage.ts", "../src/data/helper/sourceManager.ts", "../src/component/tooltip/tooltipMarkup.ts", "../src/component/tooltip/seriesFormatTooltip.ts", "../src/model/Series.ts", "../src/view/Component.ts", "../src/chart/helper/createRenderPlanner.ts", "../src/view/Chart.ts", "../src/util/throttle.ts", "../src/visual/style.ts", "../src/loading/default.ts", "../src/core/Scheduler.ts", "../src/theme/light.ts", "../src/theme/dark.ts", "../src/util/ECEventProcessor.ts", "../src/visual/symbol.ts", "../src/visual/helper.ts", "../src/legacy/dataSelectAction.ts", "../src/util/event.ts", "../node_modules/zrender/src/core/WeakMap.ts", "../src/util/symbol.ts", "../node_modules/zrender/src/canvas/helper.ts", "../node_modules/zrender/src/graphic/helper/dashStyle.ts", "../node_modules/zrender/src/canvas/graphic.ts", "../src/util/decal.ts", "../src/visual/decal.ts", "../node_modules/zrender/src/tool/parseXML.ts", "../node_modules/zrender/src/tool/parseSVG.ts", "../node_modules/zrender/src/contain/polygon.ts", "../src/coord/geo/Region.ts", "../src/coord/geo/GeoSVGResource.ts", "../src/coord/geo/parseGeoJson.ts", "../src/coord/geo/fix/nanhai.ts", "../src/coord/geo/fix/textCoord.ts", "../src/coord/geo/fix/geoCoord.ts", "../src/coord/geo/fix/diaoyuIsland.ts", "../src/coord/geo/GeoJSONResource.ts", "../src/coord/geo/geoSourceManager.ts", "../src/core/lifecycle.ts", "../src/core/echarts.ts", "../src/extension.ts", "../src/data/DataDiffer.ts", "../src/data/helper/dimensionHelper.ts", "../src/data/SeriesDimensionDefine.ts", "../src/data/helper/SeriesDataSchema.ts", "../src/data/SeriesData.ts", "../src/export/api/helper.ts", "../src/data/helper/createDimensions.ts", "../src/model/referHelper.ts", "../src/data/helper/dataStackHelper.ts", "../src/chart/helper/createSeriesData.ts", "../src/scale/Scale.ts", "../src/data/OrdinalMeta.ts", "../src/scale/helper.ts", "../src/scale/Ordinal.ts", "../src/scale/Interval.ts", "../src/layout/barGrid.ts", "../src/scale/Time.ts", "../src/scale/Log.ts", "../src/coord/scaleRawExtentInfo.ts", "../src/coord/axisHelper.ts", "../src/coord/axisModelCommonMixin.ts", "../src/export/api/number.ts", "../src/export/api/time.ts", "../src/export/api/graphic.ts", "../src/export/api/format.ts", "../src/export/api/util.ts", "../src/coord/axisTickLabelBuilder.ts", "../src/coord/Axis.ts", "../src/export/api.ts", "../src/label/labelGuideHelper.ts", "../src/label/labelLayoutHelper.ts", "../src/label/LabelManager.ts", "../src/label/installLabelLayout.ts", "../node_modules/zrender/src/svg/core.ts", "../node_modules/zrender/src/core/arrayDiff.ts", "../node_modules/zrender/src/svg/graphic.ts", "../node_modules/zrender/src/svg/helper/Definable.ts", "../node_modules/zrender/src/svg/helper/GradientManager.ts", "../node_modules/zrender/src/svg/helper/PatternManager.ts", "../node_modules/zrender/src/svg/helper/ClippathManager.ts", "../node_modules/zrender/src/svg/helper/ShadowManager.ts", "../node_modules/zrender/src/svg/Painter.ts", "../src/renderer/installSVGRenderer.ts", "../node_modules/zrender/src/canvas/Layer.ts", "../node_modules/zrender/src/canvas/Painter.ts", "../src/renderer/installCanvasRenderer.ts", "../src/chart/line/LineSeries.ts", "../src/chart/helper/labelHelper.ts", "../src/chart/helper/Symbol.ts", "../src/chart/helper/SymbolDraw.ts", "../src/chart/line/helper.ts", "../src/util/vendor.ts", "../src/chart/line/lineAnimationDiff.ts", "../src/chart/line/poly.ts", "../src/chart/helper/createClipPathFromCoordSys.ts", "../src/coord/CoordinateSystem.ts", "../src/chart/line/LineView.ts", "../src/layout/points.ts", "../src/processor/dataSample.ts", "../src/chart/line/install.ts", "../src/chart/bar/BaseBarSeries.ts", "../src/chart/bar/BarSeries.ts", "../src/util/shape/sausage.ts", "../src/label/sectorLabel.ts", "../src/chart/bar/BarView.ts", "../src/chart/bar/install.ts", "../src/chart/pie/pieLayout.ts", "../src/processor/dataFilter.ts", "../src/chart/pie/labelLayout.ts", "../src/chart/helper/pieHelper.ts", "../src/chart/pie/PieView.ts", "../src/chart/helper/createSeriesDataSimply.ts", "../src/visual/LegendVisualProvider.ts", "../src/chart/pie/PieSeries.ts", "../src/processor/negativeDataFilter.ts", "../src/chart/pie/install.ts", "../src/chart/scatter/ScatterSeries.ts", "../src/chart/helper/LargeSymbolDraw.ts", "../src/chart/scatter/ScatterView.ts", "../src/coord/cartesian/GridModel.ts", "../src/coord/cartesian/AxisModel.ts", "../src/coord/axisDefault.ts", "../src/coord/axisCommonTypes.ts", "../src/coord/axisModelCreator.ts", "../src/coord/cartesian/Cartesian.ts", "../src/coord/cartesian/Cartesian2D.ts", "../src/coord/cartesian/Axis2D.ts", "../src/coord/cartesian/cartesianAxisHelper.ts", "../src/coord/cartesian/Grid.ts", "../src/component/axis/AxisBuilder.ts", "../src/component/axisPointer/modelHelper.ts", "../src/component/axis/AxisView.ts", "../src/component/axis/axisSplitHelper.ts", "../src/component/axis/CartesianAxisView.ts", "../src/component/grid/installSimple.ts", "../src/chart/scatter/install.ts", "../src/chart/radar/radarLayout.ts", "../src/chart/radar/backwardCompat.ts", "../src/chart/radar/RadarView.ts", "../src/chart/radar/RadarSeries.ts", "../src/coord/radar/RadarModel.ts", "../src/component/radar/RadarView.ts", "../src/coord/radar/IndicatorAxis.ts", "../src/coord/radar/Radar.ts", "../src/component/radar/install.ts", "../src/chart/radar/install.ts", "../src/component/helper/interactionMutex.ts", "../src/component/helper/RoamController.ts", "../src/component/helper/roamHelper.ts", "../src/component/helper/cursorHelper.ts", "../src/component/helper/MapDraw.ts", "../src/chart/map/MapView.ts", "../src/chart/map/MapSeries.ts", "../src/chart/map/mapDataStatistic.ts", "../src/chart/map/mapSymbolLayout.ts", "../src/coord/View.ts", "../src/coord/geo/Geo.ts", "../src/coord/geo/geoCreator.ts", "../src/coord/geo/GeoModel.ts", "../src/action/roamHelper.ts", "../src/component/geo/GeoView.ts", "../src/component/geo/install.ts", "../src/chart/map/install.ts", "../src/chart/tree/layoutHelper.ts", "../src/chart/tree/TreeView.ts", "../src/data/helper/linkSeriesData.ts", "../src/data/Tree.ts", "../src/chart/helper/treeHelper.ts", "../src/chart/tree/TreeSeries.ts", "../src/chart/tree/traversalHelper.ts", "../src/chart/tree/treeLayout.ts", "../src/chart/tree/treeVisual.ts", "../src/chart/tree/treeAction.ts", "../src/chart/tree/install.ts", "../src/chart/treemap/treemapAction.ts", "../src/chart/helper/enableAriaDecalForTree.ts", "../src/chart/treemap/TreemapSeries.ts", "../src/chart/treemap/Breadcrumb.ts", "../src/util/animation.ts", "../src/chart/treemap/TreemapView.ts", "../src/visual/VisualMapping.ts", "../src/chart/treemap/treemapVisual.ts", "../src/chart/treemap/treemapLayout.ts", "../src/chart/treemap/install.ts", "../src/chart/graph/categoryFilter.ts", "../src/chart/graph/categoryVisual.ts", "../src/chart/graph/edgeVisual.ts", "../src/chart/helper/multipleGraphEdgeHelper.ts", "../src/chart/graph/simpleLayoutHelper.ts", "../src/chart/graph/simpleLayout.ts", "../src/chart/graph/graphHelper.ts", "../src/chart/graph/circularLayoutHelper.ts", "../src/chart/graph/circularLayout.ts", "../src/chart/graph/forceHelper.ts", "../src/chart/graph/forceLayout.ts", "../src/chart/graph/createView.ts", "../src/chart/helper/LinePath.ts", "../src/chart/helper/Line.ts", "../src/chart/helper/LineDraw.ts", "../src/chart/graph/adjustEdge.ts", "../src/chart/graph/GraphView.ts", "../src/data/Graph.ts", "../src/chart/helper/createGraphFromNodeEdge.ts", "../src/chart/graph/GraphSeries.ts", "../src/chart/graph/install.ts", "../src/chart/gauge/PointerPath.ts", "../src/chart/gauge/GaugeView.ts", "../src/chart/gauge/GaugeSeries.ts", "../src/chart/gauge/install.ts", "../src/chart/funnel/FunnelView.ts", "../src/chart/funnel/FunnelSeries.ts", "../src/chart/funnel/funnelLayout.ts", "../src/chart/funnel/install.ts", "../src/chart/parallel/ParallelView.ts", "../src/chart/parallel/ParallelSeries.ts", "../src/chart/parallel/parallelVisual.ts", "../src/coord/parallel/parallelPreprocessor.ts", "../src/component/parallel/ParallelView.ts", "../src/coord/parallel/ParallelModel.ts", "../src/coord/parallel/ParallelAxis.ts", "../src/component/helper/sliderMove.ts", "../src/coord/parallel/Parallel.ts", "../src/coord/parallel/parallelCreator.ts", "../src/coord/parallel/AxisModel.ts", "../src/component/helper/BrushController.ts", "../src/component/helper/brushHelper.ts", "../src/component/axis/ParallelAxisView.ts", "../src/component/axis/parallelAxisAction.ts", "../src/component/parallel/install.ts", "../src/chart/parallel/install.ts", "../src/chart/sankey/SankeyView.ts", "../src/chart/sankey/SankeySeries.ts", "../src/chart/sankey/sankeyLayout.ts", "../src/chart/sankey/sankeyVisual.ts", "../src/chart/sankey/install.ts", "../src/chart/helper/whiskerBoxCommon.ts", "../src/chart/boxplot/BoxplotSeries.ts", "../src/chart/boxplot/BoxplotView.ts", "../src/chart/boxplot/boxplotVisual.ts", "../src/chart/boxplot/boxplotLayout.ts", "../src/chart/boxplot/prepareBoxplotData.ts", "../src/chart/boxplot/boxplotTransform.ts", "../src/chart/boxplot/install.ts", "../src/chart/candlestick/CandlestickView.ts", "../src/chart/candlestick/CandlestickSeries.ts", "../src/chart/candlestick/preprocessor.ts", "../src/chart/candlestick/candlestickVisual.ts", "../src/chart/candlestick/candlestickLayout.ts", "../src/chart/candlestick/install.ts", "../src/chart/helper/EffectSymbol.ts", "../src/chart/effectScatter/EffectScatterView.ts", "../src/chart/effectScatter/EffectScatterSeries.ts", "../src/chart/effectScatter/install.ts", "../src/chart/helper/EffectLine.ts", "../src/chart/helper/Polyline.ts", "../src/chart/helper/EffectPolyline.ts", "../src/chart/helper/LargeLineDraw.ts", "../src/chart/lines/linesLayout.ts", "../src/chart/lines/LinesView.ts", "../src/chart/lines/LinesSeries.ts", "../src/chart/lines/linesVisual.ts", "../src/chart/lines/install.ts", "../src/chart/heatmap/HeatmapLayer.ts", "../src/chart/heatmap/HeatmapView.ts", "../src/chart/heatmap/HeatmapSeries.ts", "../src/chart/heatmap/install.ts", "../src/chart/bar/PictorialBarView.ts", "../src/chart/bar/PictorialBarSeries.ts", "../src/chart/bar/installPictorialBar.ts", "../src/chart/themeRiver/ThemeRiverView.ts", "../src/chart/themeRiver/ThemeRiverSeries.ts", "../src/chart/themeRiver/themeRiverLayout.ts", "../src/chart/themeRiver/install.ts", "../src/chart/sunburst/SunburstPiece.ts", "../src/chart/sunburst/sunburstAction.ts", "../src/chart/sunburst/SunburstView.ts", "../src/chart/sunburst/SunburstSeries.ts", "../src/chart/sunburst/sunburstLayout.ts", "../src/chart/sunburst/sunburstVisual.ts", "../src/chart/sunburst/install.ts", "../src/chart/custom/CustomSeries.ts", "../src/coord/cartesian/prepareCustom.ts", "../src/coord/geo/prepareCustom.ts", "../src/coord/single/prepareCustom.ts", "../src/coord/polar/prepareCustom.ts", "../src/coord/calendar/prepareCustom.ts", "../src/util/styleCompat.ts", "../src/chart/custom/prepare.ts", "../src/chart/custom/CustomView.ts", "../src/chart/custom/install.ts", "../src/component/axisPointer/BaseAxisPointer.ts", "../src/component/axisPointer/viewHelper.ts", "../src/component/axisPointer/CartesianAxisPointer.ts", "../src/component/axisPointer/AxisPointerModel.ts", "../src/component/axisPointer/globalListener.ts", "../src/component/axisPointer/AxisPointerView.ts", "../src/component/axisPointer/findPointFromSeries.ts", "../src/component/axisPointer/axisTrigger.ts", "../src/component/axisPointer/install.ts", "../src/component/grid/install.ts", "../src/component/axisPointer/PolarAxisPointer.ts", "../src/coord/polar/PolarModel.ts", "../src/coord/polar/AxisModel.ts", "../src/coord/polar/RadiusAxis.ts", "../src/coord/polar/AngleAxis.ts", "../src/coord/polar/Polar.ts", "../src/coord/polar/polarCreator.ts", "../src/component/axis/AngleAxisView.ts", "../src/component/axis/RadiusAxisView.ts", "../src/layout/barPolar.ts", "../src/component/polar/install.ts", "../src/coord/single/singleAxisHelper.ts", "../src/component/axis/SingleAxisView.ts", "../src/coord/single/AxisModel.ts", "../src/coord/single/SingleAxis.ts", "../src/coord/single/Single.ts", "../src/coord/single/singleCreator.ts", "../src/component/axisPointer/SingleAxisPointer.ts", "../src/component/singleAxis/install.ts", "../src/coord/calendar/CalendarModel.ts", "../src/component/calendar/CalendarView.ts", "../src/coord/calendar/Calendar.ts", "../src/component/calendar/install.ts", "../src/component/graphic/install.ts", "../src/component/dataZoom/helper.ts", "../src/component/dataZoom/DataZoomModel.ts", "../src/component/dataZoom/SelectZoomModel.ts", "../src/component/dataZoom/DataZoomView.ts", "../src/component/dataZoom/SelectZoomView.ts", "../src/component/dataZoom/AxisProxy.ts", "../src/component/dataZoom/dataZoomProcessor.ts", "../src/component/dataZoom/dataZoomAction.ts", "../src/component/dataZoom/installCommon.ts", "../src/component/dataZoom/installDataZoomSelect.ts", "../src/component/toolbox/featureManager.ts", "../src/component/toolbox/ToolboxModel.ts", "../src/component/helper/listComponent.ts", "../src/component/toolbox/ToolboxView.ts", "../src/component/toolbox/feature/SaveAsImage.ts", "../src/component/toolbox/feature/MagicType.ts", "../src/component/toolbox/feature/DataView.ts", "../src/component/dataZoom/history.ts", "../src/component/toolbox/feature/Restore.ts", "../src/component/helper/BrushTargetManager.ts", "../src/component/toolbox/feature/DataZoom.ts", "../src/component/toolbox/install.ts", "../src/component/tooltip/TooltipModel.ts", "../src/component/tooltip/helper.ts", "../src/component/tooltip/TooltipHTMLContent.ts", "../src/component/tooltip/TooltipRichContent.ts", "../src/component/tooltip/TooltipView.ts", "../src/component/tooltip/install.ts", "../src/component/brush/preprocessor.ts", "../src/visual/visualSolution.ts", "../src/component/brush/selector.ts", "../src/component/brush/visualEncoding.ts", "../src/component/brush/BrushView.ts", "../src/component/brush/BrushModel.ts", "../src/component/toolbox/feature/Brush.ts", "../src/component/brush/install.ts", "../src/component/title/install.ts", "../src/component/timeline/TimelineModel.ts", "../src/component/timeline/SliderTimelineModel.ts", "../src/component/timeline/TimelineView.ts", "../src/component/timeline/TimelineAxis.ts", "../src/component/timeline/SliderTimelineView.ts", "../src/component/timeline/timelineAction.ts", "../src/component/timeline/preprocessor.ts", "../src/component/timeline/install.ts", "../src/component/marker/checkMarkerInSeries.ts", "../src/component/marker/MarkerModel.ts", "../src/component/marker/MarkPointModel.ts", "../src/component/marker/markerHelper.ts", "../src/component/marker/MarkerView.ts", "../src/component/marker/MarkPointView.ts", "../src/component/marker/installMarkPoint.ts", "../src/component/marker/MarkLineModel.ts", "../src/component/marker/MarkLineView.ts", "../src/component/marker/installMarkLine.ts", "../src/component/marker/MarkAreaModel.ts", "../src/component/marker/MarkAreaView.ts", "../src/component/marker/installMarkArea.ts", "../src/component/legend/LegendModel.ts", "../src/component/legend/LegendView.ts", "../src/component/legend/legendFilter.ts", "../src/component/legend/legendAction.ts", "../src/component/legend/installLegendPlain.ts", "../src/component/legend/ScrollableLegendModel.ts", "../src/component/legend/ScrollableLegendView.ts", "../src/component/legend/scrollableLegendAction.ts", "../src/component/legend/installLegendScroll.ts", "../src/component/legend/install.ts", "../src/component/dataZoom/InsideZoomModel.ts", "../src/component/dataZoom/roams.ts", "../src/component/dataZoom/InsideZoomView.ts", "../src/component/dataZoom/installDataZoomInside.ts", "../src/component/dataZoom/SliderZoomModel.ts", "../src/component/dataZoom/SliderZoomView.ts", "../src/component/dataZoom/installDataZoomSlider.ts", "../src/component/dataZoom/install.ts", "../src/visual/visualDefault.ts", "../src/component/visualMap/VisualMapModel.ts", "../src/component/visualMap/ContinuousModel.ts", "../src/component/visualMap/VisualMapView.ts", "../src/component/visualMap/helper.ts", "../src/component/visualMap/ContinuousView.ts", "../src/component/visualMap/visualMapAction.ts", "../src/component/visualMap/visualEncoding.ts", "../src/component/visualMap/preprocessor.ts", "../src/component/visualMap/installCommon.ts", "../src/component/visualMap/installVisualMapContinuous.ts", "../src/component/visualMap/PiecewiseModel.ts", "../src/component/visualMap/PiecewiseView.ts", "../src/component/visualMap/installVisualMapPiecewise.ts", "../src/component/visualMap/install.ts", "../src/visual/aria.ts", "../src/component/aria/preprocessor.ts", "../src/component/aria/install.ts", "../src/util/conditionalExpression.ts", "../src/component/transform/filterTransform.ts", "../src/component/transform/sortTransform.ts", "../src/component/transform/install.ts", "../src/component/dataset/install.ts", "../node_modules/zrender/src/tool/convertPath.ts", "../node_modules/zrender/src/tool/dividePath.ts", "../node_modules/zrender/src/tool/morphPath.ts", "../src/animation/morphTransitionHelper.ts", "../src/animation/universalTransition.ts"], + "sourcesContent": ["/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {use} from './extension';\n\nexport * from './export/core';\n// ----------------------------------------------\n// All of the modules that are allowed to be\n// imported are listed below.\n//\n// Users MUST NOT import other modules that are\n// not included in this list.\n// ----------------------------------------------\n\nimport {\n SVGRenderer,\n CanvasRenderer\n} from './export/renderers';\n\nimport {\n LineChart,\n BarChart,\n PieChart,\n ScatterChart,\n RadarChart,\n MapChart,\n TreeChart,\n TreemapChart,\n GraphChart,\n GaugeChart,\n FunnelChart,\n ParallelChart,\n SankeyChart,\n BoxplotChart,\n CandlestickChart,\n EffectScatterChart,\n LinesChart,\n HeatmapChart,\n PictorialBarChart,\n ThemeRiverChart,\n SunburstChart,\n CustomChart\n} from './export/charts';\n\nimport {\n GridComponent,\n PolarComponent,\n GeoComponent,\n SingleAxisComponent,\n ParallelComponent,\n CalendarComponent,\n GraphicComponent,\n ToolboxComponent,\n TooltipComponent,\n AxisPointerComponent,\n BrushComponent,\n TitleComponent,\n TimelineComponent,\n MarkPointComponent,\n MarkLineComponent,\n MarkAreaComponent,\n LegendComponent,\n DataZoomComponent,\n DataZoomInsideComponent,\n DataZoomSliderComponent,\n VisualMapComponent,\n VisualMapContinuousComponent,\n VisualMapPiecewiseComponent,\n AriaComponent,\n DatasetComponent,\n TransformComponent\n} from './export/components';\n\nimport {\n UniversalTransition,\n LabelLayout\n} from './export/features';\n\n\n// -----------------\n// Render engines\n// -----------------\n\n\n// Render via Canvas.\n// echarts.init(dom, null, { renderer: 'canvas' })\nuse([CanvasRenderer]);\n// Render via SVG.\n// echarts.init(dom, null, { renderer: 'svg' })\nuse([SVGRenderer]);\n\n// ----------------\n// Charts (series)\n// ----------------\n\n// All of the series types, for example:\n// chart.setOption({\n// series: [{\n// type: 'line' // or 'bar', 'pie', ...\n// }]\n// });\n\n\nuse([\n LineChart,\n BarChart,\n PieChart,\n ScatterChart,\n RadarChart,\n MapChart,\n TreeChart,\n TreemapChart,\n GraphChart,\n GaugeChart,\n FunnelChart,\n ParallelChart,\n SankeyChart,\n BoxplotChart,\n CandlestickChart,\n EffectScatterChart,\n LinesChart,\n HeatmapChart,\n PictorialBarChart,\n ThemeRiverChart,\n SunburstChart,\n CustomChart\n]);\n\n// -------------------\n// Coordinate systems\n// -------------------\n\n\n\n// All of the axis modules have been included in the\n// coordinate system module below, do not need to\n// make extra import.\n\n// `cartesian` coordinate system. For some historical\n// reasons, it is named as grid, for example:\n// chart.setOption({\n// grid: {...},\n// xAxis: {...},\n// yAxis: {...},\n// series: [{...}]\n// });\nuse(GridComponent);\n\n// `polar` coordinate system, for example:\n// chart.setOption({\n// polar: {...},\n// radiusAxis: {...},\n// angleAxis: {...},\n// series: [{\n// coordinateSystem: 'polar'\n// }]\n// });\nuse(PolarComponent);\n\n// `geo` coordinate system, for example:\n// chart.setOption({\n// geo: {...},\n// series: [{\n// coordinateSystem: 'geo'\n// }]\n// });\nuse(GeoComponent);\n\n// `singleAxis` coordinate system (notice, it is a coordinate system\n// with only one axis, work for chart like theme river), for example:\n// chart.setOption({\n// singleAxis: {...}\n// series: [{type: 'themeRiver', ...}]\n// });\nuse(SingleAxisComponent);\n\n// `parallel` coordinate system, only work for parallel series, for example:\n// chart.setOption({\n// parallel: {...},\n// parallelAxis: [{...}, ...],\n// series: [{\n// type: 'parallel'\n// }]\n// });\nuse(ParallelComponent);\n\n// `calendar` coordinate system. for example,\n// chart.setOptionp({\n// calendar: {...},\n// series: [{\n// coordinateSystem: 'calendar'\n// }]\n// );\nuse(CalendarComponent);\n\n\n\n// ------------------\n// Other components\n// ------------------\n\n\n\n// `graphic` component, for example:\n// chart.setOption({\n// graphic: {...}\n// });\nuse(GraphicComponent);\n\n// `toolbox` component, for example:\n// chart.setOption({\n// toolbox: {...}\n// });\nuse(ToolboxComponent);\n\n// `tooltip` component, for example:\n// chart.setOption({\n// tooltip: {...}\n// });\nuse(TooltipComponent);\n\n// `axisPointer` component, for example:\n// chart.setOption({\n// tooltip: {axisPointer: {...}, ...}\n// });\n// Or\n// chart.setOption({\n// axisPointer: {...}\n// });\nuse(AxisPointerComponent);\n\n// `brush` component, for example:\n// chart.setOption({\n// brush: {...}\n// });\n// Or\n// chart.setOption({\n// tooltip: {feature: {brush: {...}}\n// })\nuse(BrushComponent);\n\n// `title` component, for example:\n// chart.setOption({\n// title: {...}\n// });\nuse(TitleComponent);\n\n// `timeline` component, for example:\n// chart.setOption({\n// timeline: {...}\n// });\nuse(TimelineComponent);\n\n// `markPoint` component, for example:\n// chart.setOption({\n// series: [{markPoint: {...}}]\n// });\nuse(MarkPointComponent);\n\n// `markLine` component, for example:\n// chart.setOption({\n// series: [{markLine: {...}}]\n// });\nuse(MarkLineComponent);\n\n// `markArea` component, for example:\n// chart.setOption({\n// series: [{markArea: {...}}]\n// });\nuse(MarkAreaComponent);\n\n// `legend` component not scrollable. for example:\n// chart.setOption({\n// legend: {...}\n// });\nuse(LegendComponent);\n\n// `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.\nuse(DataZoomComponent);\n\n// `dataZoom` component providing drag, pinch, wheel behaviors\n// inside coodinate system, for example:\n// chart.setOption({\n// dataZoom: {type: 'inside'}\n// });\nuse(DataZoomInsideComponent);\n\n// `dataZoom` component providing a slider bar, for example:\n// chart.setOption({\n// dataZoom: {type: 'slider'}\n// });\nuse(DataZoomSliderComponent);\n\n// `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.\nuse(VisualMapComponent);\n\n// `visualMap` component providing continuous bar, for example:\n// chart.setOption({\n// visualMap: {type: 'continuous'}\n// });\nuse(VisualMapContinuousComponent);\n\n// `visualMap` component providing pieces bar, for example:\n// chart.setOption({\n// visualMap: {type: 'piecewise'}\n// });\nuse(VisualMapPiecewiseComponent);\n\n// `aria` component providing aria, for example:\n// chart.setOption({\n// aria: {...}\n// });\nuse(AriaComponent);\n\n\n// dataset transform\n// chart.setOption({\n// dataset: {\n// transform: []\n// }\n// });\nuse(TransformComponent);\n\nuse(DatasetComponent);\n\n// universal transition\n// chart.setOption({\n// series: {\n// universalTransition: { enabled: true }\n// }\n// })\nuse(UniversalTransition);\n\n// label layout\n// chart.setOption({\n// series: {\n// labelLayout: { hideOverlap: true }\n// }\n// })\nuse(LabelLayout);", "/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt\n*/\n\nimport env from './core/env';\nimport * as zrUtil from './core/util';\nimport Handler from './Handler';\nimport Storage from './Storage';\nimport {PainterBase} from './PainterBase';\nimport Animation from './animation/Animation';\nimport HandlerProxy from './dom/HandlerProxy';\nimport Element, {ElementEventCallback, ElementEvent} from './Element';\nimport { Dictionary, ElementEventName, RenderedEvent, WithThisType } from './core/types';\nimport { LayerConfig } from './canvas/Layer';\nimport { GradientObject } from './graphic/Gradient';\nimport { PatternObject } from './graphic/Pattern';\nimport { EventCallback } from './core/Eventful';\nimport TSpan from './graphic/TSpan';\nimport ZRImage from './graphic/Image';\nimport Displayable from './graphic/Displayable';\nimport { lum } from './tool/color';\nimport { DARK_MODE_THRESHOLD } from './config';\nimport Path from './graphic/Path';\nimport Group from './graphic/Group';\n\n\nconst useVML = !env.canvasSupported;\n\ntype PainterBaseCtor = {\n new(dom: HTMLElement, storage: Storage, ...args: any[]): PainterBase\n}\n\nconst painterCtors: Dictionary = {};\n\nlet instances: { [key: number]: ZRender } = {};\n\nfunction delInstance(id: number) {\n delete instances[id];\n}\n\nfunction isDarkMode(backgroundColor: string | GradientObject | PatternObject): boolean {\n if (!backgroundColor) {\n return false;\n }\n if (typeof backgroundColor === 'string') {\n return lum(backgroundColor, 1) < DARK_MODE_THRESHOLD;\n }\n else if ((backgroundColor as GradientObject).colorStops) {\n const colorStops = (backgroundColor as GradientObject).colorStops;\n let totalLum = 0;\n const len = colorStops.length;\n // Simply do the math of average the color. Not consider the offset\n for (let i = 0; i < len; i++) {\n totalLum += lum(colorStops[i].color, 1);\n }\n totalLum /= len;\n\n return totalLum < DARK_MODE_THRESHOLD;\n }\n // Can't determine\n return false;\n}\n\nclass ZRender {\n\n dom: HTMLElement\n\n id: number\n\n storage: Storage\n painter: PainterBase\n handler: Handler\n animation: Animation\n\n private _sleepAfterStill = 10;\n\n private _stillFrameAccum = 0;\n\n private _needsRefresh = true\n private _needsRefreshHover = true\n\n /**\n * If theme is dark mode. It will determine the color strategy for labels.\n */\n private _darkMode = false;\n\n private _backgroundColor: string | GradientObject | PatternObject;\n\n constructor(id: number, dom: HTMLElement, opts?: ZRenderInitOpt) {\n opts = opts || {};\n\n /**\n * @type {HTMLDomElement}\n */\n this.dom = dom;\n\n this.id = id;\n\n const storage = new Storage();\n\n let rendererType = opts.renderer || 'canvas';\n\n // TODO WebGL\n if (useVML) {\n throw new Error('IE8 support has been dropped since 5.0');\n }\n\n if (!painterCtors[rendererType]) {\n // Use the first registered renderer.\n rendererType = zrUtil.keys(painterCtors)[0];\n }\n if (!painterCtors[rendererType]) {\n throw new Error(`Renderer '${rendererType}' is not imported. Please import it first.`);\n }\n\n opts.useDirtyRect = opts.useDirtyRect == null\n ? false\n : opts.useDirtyRect;\n\n const painter = new painterCtors[rendererType](dom, storage, opts, id);\n\n this.storage = storage;\n this.painter = painter;\n\n const handerProxy = (!env.node && !env.worker)\n ? new HandlerProxy(painter.getViewportRoot(), painter.root)\n : null;\n this.handler = new Handler(storage, painter, handerProxy, painter.root);\n\n this.animation = new Animation({\n stage: {\n update: () => this._flush(true)\n }\n });\n this.animation.start();\n }\n\n /**\n * \u6DFB\u52A0\u5143\u7D20\n */\n add(el: Element) {\n if (!el) {\n return;\n }\n this.storage.addRoot(el);\n el.addSelfToZr(this);\n this.refresh();\n }\n\n /**\n * \u5220\u9664\u5143\u7D20\n */\n remove(el: Element) {\n if (!el) {\n return;\n }\n this.storage.delRoot(el);\n el.removeSelfFromZr(this);\n this.refresh();\n }\n\n /**\n * Change configuration of layer\n */\n configLayer(zLevel: number, config: LayerConfig) {\n if (this.painter.configLayer) {\n this.painter.configLayer(zLevel, config);\n }\n this.refresh();\n }\n\n /**\n * Set background color\n */\n setBackgroundColor(backgroundColor: string | GradientObject | PatternObject) {\n if (this.painter.setBackgroundColor) {\n this.painter.setBackgroundColor(backgroundColor);\n }\n this.refresh();\n this._backgroundColor = backgroundColor;\n this._darkMode = isDarkMode(backgroundColor);\n }\n\n getBackgroundColor() {\n return this._backgroundColor;\n }\n\n /**\n * Force to set dark mode\n */\n setDarkMode(darkMode: boolean) {\n this._darkMode = darkMode;\n }\n\n isDarkMode() {\n return this._darkMode;\n }\n\n /**\n * Repaint the canvas immediately\n */\n refreshImmediately(fromInside?: boolean) {\n // const start = new Date();\n\n if (!fromInside) {\n // Update animation if refreshImmediately is invoked from outside.\n // Not trigger stage update to call flush again. Which may refresh twice\n this.animation.update(true);\n }\n\n // Clear needsRefresh ahead to avoid something wrong happens in refresh\n // Or it will cause zrender refreshes again and again.\n this._needsRefresh = false;\n this.painter.refresh();\n // Avoid trigger zr.refresh in Element#beforeUpdate hook\n this._needsRefresh = false;\n\n // const end = new Date();\n // const log = document.getElementById('log');\n // if (log) {\n // log.innerHTML = log.innerHTML + '
' + (end - start);\n // }\n }\n\n /**\n * Mark and repaint the canvas in the next frame of browser\n */\n refresh() {\n this._needsRefresh = true;\n // Active the animation again.\n this.animation.start();\n }\n\n /**\n * Perform all refresh\n */\n flush() {\n this._flush(false);\n }\n\n private _flush(fromInside?: boolean) {\n let triggerRendered;\n\n const start = new Date().getTime();\n if (this._needsRefresh) {\n triggerRendered = true;\n this.refreshImmediately(fromInside);\n }\n\n if (this._needsRefreshHover) {\n triggerRendered = true;\n this.refreshHoverImmediately();\n }\n const end = new Date().getTime();\n\n if (triggerRendered) {\n this._stillFrameAccum = 0;\n this.trigger('rendered', {\n elapsedTime: end - start\n } as RenderedEvent);\n }\n else if (this._sleepAfterStill > 0) {\n this._stillFrameAccum++;\n // Stop the animiation after still for 10 frames.\n if (this._stillFrameAccum > this._sleepAfterStill) {\n this.animation.stop();\n }\n }\n }\n\n /**\n * Set sleep after still for frames.\n * Disable auto sleep when it's 0.\n */\n setSleepAfterStill(stillFramesCount: number) {\n this._sleepAfterStill = stillFramesCount;\n }\n\n /**\n * Wake up animation loop. But not render.\n */\n wakeUp() {\n this.animation.start();\n // Reset the frame count.\n this._stillFrameAccum = 0;\n }\n\n /**\n * Add element to hover layer\n */\n addHover(el: Displayable) {\n // deprecated.\n }\n\n /**\n * Add element from hover layer\n */\n removeHover(el: Path | TSpan | ZRImage) {\n // deprecated.\n }\n\n /**\n * Clear all hover elements in hover layer\n */\n clearHover() {\n // deprecated.\n }\n\n /**\n * Refresh hover in next frame\n */\n refreshHover() {\n this._needsRefreshHover = true;\n }\n\n /**\n * Refresh hover immediately\n */\n refreshHoverImmediately() {\n this._needsRefreshHover = false;\n if (this.painter.refreshHover && this.painter.getType() === 'canvas') {\n this.painter.refreshHover();\n }\n }\n\n /**\n * Resize the canvas.\n * Should be invoked when container size is changed\n */\n resize(opts?: {\n width?: number| string\n height?: number | string\n }) {\n opts = opts || {};\n this.painter.resize(opts.width, opts.height);\n this.handler.resize();\n }\n\n /**\n * Stop and clear all animation immediately\n */\n clearAnimation() {\n this.animation.clear();\n }\n\n /**\n * Get container width\n */\n getWidth(): number {\n return this.painter.getWidth();\n }\n\n /**\n * Get container height\n */\n getHeight(): number {\n return this.painter.getHeight();\n }\n\n /**\n * Export the canvas as Base64 URL\n * @param {string} type\n * @param {string} [backgroundColor='#fff']\n * @return {string} Base64 URL\n */\n // toDataURL: function(type, backgroundColor) {\n // return this.painter.getRenderedCanvas({\n // backgroundColor: backgroundColor\n // }).toDataURL(type);\n // },\n\n /**\n * Converting a path to image.\n * It has much better performance of drawing image rather than drawing a vector path.\n */\n pathToImage(e: Path, dpr: number) {\n if (this.painter.pathToImage) {\n return this.painter.pathToImage(e, dpr);\n }\n }\n\n /**\n * Set default cursor\n * @param cursorStyle='default' \u4F8B\u5982 crosshair\n */\n setCursorStyle(cursorStyle: string) {\n this.handler.setCursorStyle(cursorStyle);\n }\n\n /**\n * Find hovered element\n * @param x\n * @param y\n * @return {target, topTarget}\n */\n findHover(x: number, y: number): {\n target: Displayable\n topTarget: Displayable\n } {\n return this.handler.findHover(x, y);\n }\n\n on(eventName: ElementEventName, eventHandler: ElementEventCallback, context?: Ctx): this\n on(eventName: string, eventHandler: WithThisType, unknown extends Ctx ? ZRenderType : Ctx>, context?: Ctx): this\n // eslint-disable-next-line max-len\n on(eventName: string, eventHandler: (...args: any) => any, context?: Ctx): this {\n this.handler.on(eventName, eventHandler, context);\n return this;\n }\n\n /**\n * Unbind event\n * @param eventName Event name\n * @param eventHandler Handler function\n */\n // eslint-disable-next-line max-len\n off(eventName?: string, eventHandler?: EventCallback) {\n this.handler.off(eventName, eventHandler);\n }\n\n /**\n * Trigger event manually\n *\n * @param eventName Event name\n * @param event Event object\n */\n trigger(eventName: string, event?: unknown) {\n this.handler.trigger(eventName, event);\n }\n\n\n /**\n * Clear all objects and the canvas.\n */\n clear() {\n const roots = this.storage.getRoots();\n for (let i = 0; i < roots.length; i++) {\n if (roots[i] instanceof Group) {\n roots[i].removeSelfFromZr(this);\n }\n }\n this.storage.delAllRoots();\n this.painter.clear();\n }\n\n /**\n * Dispose self.\n */\n dispose() {\n this.animation.stop();\n\n this.clear();\n this.storage.dispose();\n this.painter.dispose();\n this.handler.dispose();\n\n this.animation =\n this.storage =\n this.painter =\n this.handler = null;\n\n delInstance(this.id);\n }\n}\n\n\nexport interface ZRenderInitOpt {\n renderer?: string // 'canvas' or 'svg\n devicePixelRatio?: number\n width?: number | string // 10, 10px, 'auto'\n height?: number | string\n useDirtyRect?: boolean\n}\n\n/**\n * Initializing a zrender instance\n */\nexport function init(dom: HTMLElement, opts?: ZRenderInitOpt) {\n const zr = new ZRender(zrUtil.guid(), dom, opts);\n instances[zr.id] = zr;\n return zr;\n}\n\n/**\n * Dispose zrender instance\n */\nexport function dispose(zr: ZRender) {\n zr.dispose();\n}\n\n/**\n * Dispose all zrender instances\n */\nexport function disposeAll() {\n for (let key in instances) {\n if (instances.hasOwnProperty(key)) {\n instances[key].dispose();\n }\n }\n instances = {};\n}\n\n/**\n * Get zrender instance by id\n */\nexport function getInstance(id: number): ZRender {\n return instances[id];\n}\n\nexport function registerPainter(name: string, Ctor: PainterBaseCtor) {\n painterCtors[name] = Ctor;\n}\n\n/**\n * @type {string}\n */\nexport const version = '5.1.1';\n\n\nexport interface ZRenderType extends ZRender {};", "declare const wx: {\n getSystemInfoSync: Function\n};\n\nclass Browser {\n firefox = false\n ie = false\n edge = false\n newEdge = false\n weChat = false\n version: string | number\n}\n\nclass Env {\n browser = new Browser()\n node = false\n wxa = false\n worker = false\n\n canvasSupported = false\n svgSupported = false\n touchEventsSupported = false\n pointerEventsSupported = false\n domSupported = false\n transformSupported = false\n transform3dSupported = false\n}\n\nconst env = new Env();\n\nif (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {\n env.wxa = true;\n env.canvasSupported = true;\n env.touchEventsSupported = true;\n}\nelse if (typeof document === 'undefined' && typeof self !== 'undefined') {\n // In worker\n env.worker = true;\n env.canvasSupported = true;\n}\nelse if (typeof navigator === 'undefined') {\n // In node\n env.node = true;\n env.canvasSupported = true;\n env.svgSupported = true;\n}\nelse {\n detect(navigator.userAgent, env);\n}\n\n// Zepto.js\n// (c) 2010-2013 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n\nfunction detect(ua: string, env: Env) {\n const browser = env.browser;\n const firefox = ua.match(/Firefox\\/([\\d.]+)/);\n const ie = ua.match(/MSIE\\s([\\d.]+)/)\n // IE 11 Trident/7.0; rv:11.0\n || ua.match(/Trident\\/.+?rv:(([\\d.]+))/);\n const edge = ua.match(/Edge?\\/([\\d.]+)/); // IE 12 and 12+\n\n const weChat = (/micromessenger/i).test(ua);\n\n if (firefox) {\n browser.firefox = true;\n browser.version = firefox[1];\n }\n if (ie) {\n browser.ie = true;\n browser.version = ie[1];\n }\n\n if (edge) {\n browser.edge = true;\n browser.version = edge[1];\n browser.newEdge = +edge[1].split('.')[0] > 18; \n }\n\n // It is difficult to detect WeChat in Win Phone precisely, because ua can\n // not be set on win phone. So we do not consider Win Phone.\n if (weChat) {\n browser.weChat = true;\n }\n\n env.canvasSupported = !!document.createElement('canvas').getContext;\n env.svgSupported = typeof SVGRect !== 'undefined';\n env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;\n env.pointerEventsSupported = 'onpointerdown' in window\n && (browser.edge || (browser.ie && +browser.version >= 11));\n env.domSupported = typeof document !== 'undefined';\n\n const style = document.documentElement.style;\n\n env.transform3dSupported = (\n // IE9 only supports transform 2D\n // transform 3D supported since IE10\n // we detect it by whether 'transition' is in style\n (browser.ie && 'transition' in style)\n // edge\n || browser.edge\n // webkit\n || (('WebKitCSSMatrix' in window) && ('m11' in new WebKitCSSMatrix()))\n // gecko-based browsers\n || 'MozPerspective' in style\n ) // Opera supports CSS transforms after version 12\n && !('OTransition' in style);\n\n // except IE 6-8 and very old firefox 2-3 & opera 10.1\n // other browsers all support `transform`\n env.transformSupported = env.transform3dSupported \n // transform 2D is supported in IE9\n || (browser.ie && +browser.version >= 9);\n\n}\n\n\nexport default env;\n", "import { Dictionary, ArrayLike, KeyOfDistributive } from './types';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject } from '../graphic/Pattern';\n\n\n// \u7528\u4E8E\u5904\u7406merge\u65F6\u65E0\u6CD5\u904D\u5386Date\u7B49\u5BF9\u8C61\u7684\u95EE\u9898\nconst BUILTIN_OBJECT: {[key: string]: boolean} = {\n '[object Function]': true,\n '[object RegExp]': true,\n '[object Date]': true,\n '[object Error]': true,\n '[object CanvasGradient]': true,\n '[object CanvasPattern]': true,\n // For node-canvas\n '[object Image]': true,\n '[object Canvas]': true\n};\n\nconst TYPED_ARRAY: {[key: string]: boolean} = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true\n};\n\nconst objToString = Object.prototype.toString;\n\nconst arrayProto = Array.prototype;\nconst nativeForEach = arrayProto.forEach;\nconst nativeFilter = arrayProto.filter;\nconst nativeSlice = arrayProto.slice;\nconst nativeMap = arrayProto.map;\n// In case some env may redefine the global variable `Function`.\nconst ctorFunction = function () {}.constructor;\nconst protoFunction = ctorFunction ? ctorFunction.prototype : null;\n\n// Avoid assign to an exported constiable, for transforming to cjs.\nconst methods: {[key: string]: Function} = {};\n\nexport function $override(name: string, fn: Function) {\n methods[name] = fn;\n}\n\nlet idStart = 0x0907;\n/**\n * Generate unique id\n */\nexport function guid(): number {\n return idStart++;\n}\n\nexport function logError(...args: any[]) {\n if (typeof console !== 'undefined') {\n console.error.apply(console, args);\n }\n}\n/**\n * Those data types can be cloned:\n * Plain object, Array, TypedArray, number, string, null, undefined.\n * Those data types will be assgined using the orginal data:\n * BUILTIN_OBJECT\n * Instance of user defined class will be cloned to a plain object, without\n * properties in prototype.\n * Other data types is not supported (not sure what will happen).\n *\n * Caution: do not support clone Date, for performance consideration.\n * (There might be a large number of date in `series.data`).\n * So date should not be modified in and out of echarts.\n */\nexport function clone(source: T): T {\n if (source == null || typeof source !== 'object') {\n return source;\n }\n\n let result = source as any;\n const typeStr = objToString.call(source);\n\n if (typeStr === '[object Array]') {\n if (!isPrimitive(source)) {\n result = [] as any;\n for (let i = 0, len = (source as any[]).length; i < len; i++) {\n result[i] = clone((source as any[])[i]);\n }\n }\n }\n else if (TYPED_ARRAY[typeStr]) {\n if (!isPrimitive(source)) {\n /* eslint-disable-next-line */\n const Ctor = source.constructor as typeof Float32Array;\n if (Ctor.from) {\n result = Ctor.from(source as Float32Array);\n }\n else {\n result = new Ctor((source as Float32Array).length);\n for (let i = 0, len = (source as Float32Array).length; i < len; i++) {\n result[i] = clone((source as Float32Array)[i]);\n }\n }\n }\n }\n else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {\n result = {} as any;\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n result[key] = clone(source[key]);\n }\n }\n }\n\n return result;\n}\n\nexport function merge<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S, overwrite?: boolean): T & S;\nexport function merge<\n T extends any,\n S extends any\n>(target: T, source: S, overwrite?: boolean): T | S;\nexport function merge(target: any, source: any, overwrite?: boolean): any {\n // We should escapse that source is string\n // and enter for ... in ...\n if (!isObject(source) || !isObject(target)) {\n return overwrite ? clone(source) : target;\n }\n\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n const targetProp = target[key];\n const sourceProp = source[key];\n\n if (isObject(sourceProp)\n && isObject(targetProp)\n && !isArray(sourceProp)\n && !isArray(targetProp)\n && !isDom(sourceProp)\n && !isDom(targetProp)\n && !isBuiltInObject(sourceProp)\n && !isBuiltInObject(targetProp)\n && !isPrimitive(sourceProp)\n && !isPrimitive(targetProp)\n ) {\n // \u5982\u679C\u9700\u8981\u9012\u5F52\u8986\u76D6\uFF0C\u5C31\u9012\u5F52\u8C03\u7528merge\n merge(targetProp, sourceProp, overwrite);\n }\n else if (overwrite || !(key in target)) {\n // \u5426\u5219\u53EA\u5904\u7406overwrite\u4E3Atrue\uFF0C\u6216\u8005\u5728\u76EE\u6807\u5BF9\u8C61\u4E2D\u6CA1\u6709\u6B64\u5C5E\u6027\u7684\u60C5\u51B5\n // NOTE\uFF0C\u5728 target[key] \u4E0D\u5B58\u5728\u7684\u65F6\u5019\u4E5F\u662F\u76F4\u63A5\u8986\u76D6\n target[key] = clone(source[key]);\n }\n }\n }\n\n return target;\n}\n\n/**\n * @param targetAndSources The first item is target, and the rests are source.\n * @param overwrite\n * @return Merged result\n */\nexport function mergeAll(targetAndSources: any[], overwrite?: boolean): any {\n let result = targetAndSources[0];\n for (let i = 1, len = targetAndSources.length; i < len; i++) {\n result = merge(result, targetAndSources[i], overwrite);\n }\n return result;\n}\n\nexport function extend<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S): T & S {\n // @ts-ignore\n if (Object.assign) {\n // @ts-ignore\n Object.assign(target, source);\n }\n else {\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n (target as S & T)[key] = (source as T & S)[key];\n }\n }\n }\n return target as T & S;\n}\n\nexport function defaults<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S, overlay?: boolean): T & S {\n const keysArr = keys(source);\n for (let i = 0; i < keysArr.length; i++) {\n let key = keysArr[i];\n if ((overlay ? source[key] != null : (target as T & S)[key] == null)) {\n (target as S & T)[key] = (source as T & S)[key];\n }\n }\n return target as T & S;\n}\n\nexport const createCanvas = function (): HTMLCanvasElement {\n return methods.createCanvas();\n};\n\nmethods.createCanvas = function (): HTMLCanvasElement {\n return document.createElement('canvas');\n};\n\n/**\n * \u67E5\u8BE2\u6570\u7EC4\u4E2D\u5143\u7D20\u7684index\n */\nexport function indexOf(array: T[] | readonly T[] | ArrayLike, value: T): number {\n if (array) {\n if ((array as T[]).indexOf) {\n return (array as T[]).indexOf(value);\n }\n for (let i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n }\n return -1;\n}\n\n/**\n * \u6784\u9020\u7C7B\u7EE7\u627F\u5173\u7CFB\n *\n * @param clazz \u6E90\u7C7B\n * @param baseClazz \u57FA\u7C7B\n */\nexport function inherits(clazz: Function, baseClazz: Function) {\n const clazzPrototype = clazz.prototype;\n function F() {}\n F.prototype = baseClazz.prototype;\n clazz.prototype = new (F as any)();\n\n for (let prop in clazzPrototype) {\n if (clazzPrototype.hasOwnProperty(prop)) {\n clazz.prototype[prop] = clazzPrototype[prop];\n }\n }\n clazz.prototype.constructor = clazz;\n (clazz as any).superClass = baseClazz;\n}\n\nexport function mixin(target: T | Function, source: S | Function, override?: boolean) {\n target = 'prototype' in target ? target.prototype : target;\n source = 'prototype' in source ? source.prototype : source;\n // If build target is ES6 class. prototype methods is not enumerable. Use getOwnPropertyNames instead\n // TODO: Determine if source is ES6 class?\n if (Object.getOwnPropertyNames) {\n const keyList = Object.getOwnPropertyNames(source);\n for (let i = 0; i < keyList.length; i++) {\n const key = keyList[i];\n if (key !== 'constructor') {\n if ((override ? (source as any)[key] != null : (target as any)[key] == null)) {\n (target as any)[key] = (source as any)[key];\n }\n }\n }\n }\n else {\n defaults(target, source, override);\n }\n}\n\n/**\n * Consider typed array.\n * @param data\n */\nexport function isArrayLike(data: any): data is ArrayLike {\n if (!data) {\n return false;\n }\n if (typeof data === 'string') {\n return false;\n }\n return typeof data.length === 'number';\n}\n\n/**\n * \u6570\u7EC4\u6216\u5BF9\u8C61\u904D\u5386\n */\nexport function each | any[] | readonly any[] | ArrayLike, Context>(\n arr: I,\n cb: (\n this: Context,\n // Use unknown to avoid to infer to \"any\", which may disable typo check.\n value: I extends (infer T)[] | readonly (infer T)[] | ArrayLike ? T\n // Use Dictionary may cause infer fail when I is an interface.\n // So here use a Record to infer type.\n : I extends Dictionary ? I extends Record ? T : unknown : unknown,\n index?: I extends any[] | readonly any[] | ArrayLike ? number : keyof I & string, // keyof Dictionary will return number | string\n arr?: I\n ) => void,\n context?: Context\n) {\n if (!(arr && cb)) {\n return;\n }\n if ((arr as any).forEach && (arr as any).forEach === nativeForEach) {\n (arr as any).forEach(cb, context);\n }\n else if (arr.length === +arr.length) {\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided item be travelled? like `[33,,55]`.\n cb.call(context, (arr as any[])[i], i as any, arr);\n }\n }\n else {\n for (let key in arr) {\n if (arr.hasOwnProperty(key)) {\n cb.call(context, (arr as Dictionary)[key], key as any, arr);\n }\n }\n }\n}\n\n/**\n * Array mapping.\n * @typeparam T Type in Array\n * @typeparam R Type Returned\n * @return Must be an array.\n */\nexport function map(\n arr: readonly T[],\n cb: (this: Context, val: T, index?: number, arr?: readonly T[]) => R,\n context?: Context\n): R[] {\n // Take the same behavior with lodash when !arr and !cb,\n // which might be some common sense.\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr) as unknown[] as R[];\n }\n if (arr.map && arr.map === nativeMap) {\n return arr.map(cb, context);\n }\n else {\n const result = [];\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided item be travelled, like `[33,,55]`.\n result.push(cb.call(context, arr[i], i, arr));\n }\n return result;\n }\n}\n\nexport function reduce(\n arr: readonly T[],\n cb: (this: Context, previousValue: S, currentValue: T, currentIndex?: number, arr?: readonly T[]) => S,\n memo?: S,\n context?: Context\n): S {\n if (!(arr && cb)) {\n return;\n }\n for (let i = 0, len = arr.length; i < len; i++) {\n memo = cb.call(context, memo, arr[i], i, arr);\n }\n return memo;\n}\n\n/**\n * Array filtering.\n * @return Must be an array.\n */\nexport function filter(\n arr: readonly T[],\n cb: (this: Context, value: T, index: number, arr: readonly T[]) => boolean,\n context?: Context\n): T[] {\n // Take the same behavior with lodash when !arr and !cb,\n // which might be some common sense.\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.filter && arr.filter === nativeFilter) {\n return arr.filter(cb, context);\n }\n else {\n const result = [];\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided items be travelled? like `[33,,55]`.\n if (cb.call(context, arr[i], i, arr)) {\n result.push(arr[i]);\n }\n }\n return result;\n }\n}\n\n/**\n * \u6570\u7EC4\u9879\u67E5\u627E\n */\nexport function find(\n arr: readonly T[],\n cb: (this: Context, value: T, index?: number, arr?: readonly T[]) => boolean,\n context?: Context\n): T {\n if (!(arr && cb)) {\n return;\n }\n for (let i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n return arr[i];\n }\n }\n}\n\n/**\n * Get all object keys\n *\n * Will return an empty array if obj is null/undefined\n */\nexport function keys(obj: T): (KeyOfDistributive & string)[] {\n if (!obj) {\n return [];\n }\n // Return type should be `keyof T` but exclude `number`, becuase\n // `Object.keys` only return string rather than `number | string`.\n type TKeys = KeyOfDistributive & string;\n if (Object.keys) {\n return Object.keys(obj) as TKeys[];\n }\n let keyList: TKeys[] = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n keyList.push(key as any);\n }\n }\n return keyList;\n}\n\n\n// Remove this type in returned function. Or it will conflicts wicth callback with given context. Like Eventful.\n// According to lib.es5.d.ts\n/* eslint-disable max-len*/\nexport type Bind1 = F extends (this: Ctx, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind2 = F extends (this: Ctx, a: T1, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind3 = F extends (this: Ctx, a: T1, b: T2, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind4 = F extends (this: Ctx, a: T1, b: T2, c: T3, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind5 = F extends (this: Ctx, a: T1, b: T2, c: T3, d: T4, ...args: infer A) => infer R ? (...args: A) => R : unknown;\ntype BindFunc = (this: Ctx, ...arg: any[]) => any\n\ninterface FunctionBind {\n , Ctx>(func: F, ctx: Ctx): Bind1\n , Ctx, T1 extends Parameters[0]>(func: F, ctx: Ctx, a: T1): Bind2\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1]>(func: F, ctx: Ctx, a: T1, b: T2): Bind3\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1], T3 extends Parameters[2]>(func: F, ctx: Ctx, a: T1, b: T2, c: T3): Bind4\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1], T3 extends Parameters[2], T4 extends Parameters[3]>(func: F, ctx: Ctx, a: T1, b: T2, c: T3, d: T4): Bind5\n}\nfunction bindPolyfill any>(\n func: Fn, context: Ctx, ...args: any[]\n): (...args: Parameters) => ReturnType {\n return function (this: Ctx) {\n return func.apply(context, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport const bind: FunctionBind = (protoFunction && isFunction(protoFunction.bind))\n ? protoFunction.call.bind(protoFunction.bind)\n : bindPolyfill;\n\nexport type Curry1 = F extends (a: T1, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry2 = F extends (a: T1, b: T2, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry3 = F extends (a: T1, b: T2, c: T3, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry4 = F extends (a: T1, b: T2, c: T3, d: T4, ...args: infer A) => infer R ? (...args: A) => R : unknown;\ntype CurryFunc = (...arg: any[]) => any\n\nfunction curry[0]>(func: F, a: T1): Curry1\nfunction curry[0], T2 extends Parameters[1]>(func: F, a: T1, b: T2): Curry2\nfunction curry[0], T2 extends Parameters[1], T3 extends Parameters[2]>(func: F, a: T1, b: T2, c: T3): Curry3\nfunction curry[0], T2 extends Parameters[1], T3 extends Parameters[2], T4 extends Parameters[3]>(func: F, a: T1, b: T2, c: T3, d: T4): Curry4\nfunction curry(func: Function, ...args: any[]): Function {\n return function (this: any) {\n return func.apply(this, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport {curry};\n/* eslint-enable max-len*/\n\nexport function isArray(value: any): value is any[] {\n if (Array.isArray) {\n return Array.isArray(value);\n }\n return objToString.call(value) === '[object Array]';\n}\n\nexport function isFunction(value: any): value is Function {\n return typeof value === 'function';\n}\n\nexport function isString(value: any): value is string {\n // Faster than `objToString.call` several times in chromium and webkit.\n // And `new String()` is rarely used.\n return typeof value === 'string';\n}\n\nexport function isStringSafe(value: any): value is string {\n return objToString.call(value) === '[object String]';\n}\n\nexport function isNumber(value: any): value is number {\n // Faster than `objToString.call` several times in chromium and webkit.\n // And `new Number()` is rarely used.\n return typeof value === 'number';\n}\n\n// Usage: `isObject(xxx)` or `isObject(SomeType)(xxx)`\n// Generic T can be used to avoid \"ts type gruards\" casting the `value` from its original\n// type `Object` implicitly so that loose its original type info in the subsequent code.\nexport function isObject(value: T): value is (object & T) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n const type = typeof value;\n return type === 'function' || (!!value && type === 'object');\n}\n\nexport function isBuiltInObject(value: any): boolean {\n return !!BUILTIN_OBJECT[objToString.call(value)];\n}\n\nexport function isTypedArray(value: any): boolean {\n return !!TYPED_ARRAY[objToString.call(value)];\n}\n\nexport function isDom(value: any): value is HTMLElement {\n return typeof value === 'object'\n && typeof value.nodeType === 'number'\n && typeof value.ownerDocument === 'object';\n}\n\nexport function isGradientObject(value: any): value is GradientObject {\n return (value as GradientObject).colorStops != null;\n}\n\nexport function isImagePatternObject(value: any): value is ImagePatternObject {\n return (value as ImagePatternObject).image != null;\n}\n\nexport function isRegExp(value: unknown): value is RegExp {\n return objToString.call(value) === '[object RegExp]';\n}\n\n/**\n * Whether is exactly NaN. Notice isNaN('a') returns true.\n */\nexport function eqNaN(value: any): boolean {\n /* eslint-disable-next-line no-self-compare */\n return value !== value;\n}\n\n/**\n * If value1 is not null, then return value1, otherwise judget rest of values.\n * Low performance.\n * @return Final value\n */\nexport function retrieve(...args: T[]): T {\n for (let i = 0, len = args.length; i < len; i++) {\n if (args[i] != null) {\n return args[i];\n }\n }\n}\n\nexport function retrieve2(value0: T, value1: R): T | R {\n return value0 != null\n ? value0\n : value1;\n}\n\nexport function retrieve3(value0: T, value1: R, value2: W): T | R | W {\n return value0 != null\n ? value0\n : value1 != null\n ? value1\n : value2;\n}\n\ntype SliceParams = Parameters;\nexport function slice(arr: ArrayLike, ...args: SliceParams): T[] {\n return nativeSlice.apply(arr, args as any[]);\n}\n\n/**\n * Normalize css liked array configuration\n * e.g.\n * 3 => [3, 3, 3, 3]\n * [4, 2] => [4, 2, 4, 2]\n * [4, 3, 2] => [4, 3, 2, 3]\n */\nexport function normalizeCssArray(val: number | number[]) {\n if (typeof (val) === 'number') {\n return [val, val, val, val];\n }\n const len = val.length;\n if (len === 2) {\n // vertical | horizontal\n return [val[0], val[1], val[0], val[1]];\n }\n else if (len === 3) {\n // top | horizontal | bottom\n return [val[0], val[1], val[2], val[1]];\n }\n return val;\n}\n\nexport function assert(condition: any, message?: string) {\n if (!condition) {\n throw new Error(message);\n }\n}\n\n/**\n * @param str string to be trimed\n * @return trimed string\n */\nexport function trim(str: string): string {\n if (str == null) {\n return null;\n }\n else if (typeof str.trim === 'function') {\n return str.trim();\n }\n else {\n return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n }\n}\n\nconst primitiveKey = '__ec_primitive__';\n/**\n * Set an object as primitive to be ignored traversing children in clone or merge\n */\nexport function setAsPrimitive(obj: any) {\n obj[primitiveKey] = true;\n}\n\nexport function isPrimitive(obj: any): boolean {\n return obj[primitiveKey];\n}\n\n\n/**\n * @constructor\n * @param {Object} obj Only apply `ownProperty`.\n */\nexport class HashMap {\n\n data: {[key in KEY]: T} = {} as {[key in KEY]: T};\n\n constructor(obj?: HashMap | { [key in KEY]?: T } | KEY[]) {\n const isArr = isArray(obj);\n // Key should not be set on this, otherwise\n // methods get/set/... may be overrided.\n this.data = {} as {[key in KEY]: T};\n const thisMap = this;\n\n (obj instanceof HashMap)\n ? obj.each(visit)\n : (obj && each(obj, visit));\n\n function visit(value: any, key: any) {\n isArr ? thisMap.set(value, key) : thisMap.set(key, value);\n }\n }\n\n // Do not provide `has` method to avoid defining what is `has`.\n // (We usually treat `null` and `undefined` as the same, different\n // from ES6 Map).\n get(key: KEY): T {\n return this.data.hasOwnProperty(key) ? this.data[key] : null;\n }\n set(key: KEY, value: T): T {\n // Comparing with invocation chaining, `return value` is more commonly\n // used in this case: `const someVal = map.set('a', genVal());`\n return (this.data[key] = value);\n }\n // Although util.each can be performed on this hashMap directly, user\n // should not use the exposed keys, who are prefixed.\n each(\n cb: (this: Context, value?: T, key?: KEY) => void,\n context?: Context\n ) {\n for (let key in this.data) {\n if (this.data.hasOwnProperty(key)) {\n cb.call(context, this.data[key], key);\n }\n }\n }\n keys(): KEY[] {\n return keys(this.data);\n }\n // Do not use this method if performance sensitive.\n removeKey(key: KEY) {\n delete this.data[key];\n }\n}\n\nexport function createHashMap(\n obj?: HashMap | { [key in KEY]?: T } | KEY[]\n) {\n return new HashMap(obj);\n}\n\nexport function concatArray(a: ArrayLike, b: ArrayLike): ArrayLike {\n const newArray = new (a as any).constructor(a.length + b.length);\n for (let i = 0; i < a.length; i++) {\n newArray[i] = a[i];\n }\n const offset = a.length;\n for (let i = 0; i < b.length; i++) {\n newArray[i + offset] = b[i];\n }\n return newArray;\n}\n\nexport function createObject(proto?: object, properties?: T): T {\n // Performance of Object.create\n // https://jsperf.com/style-strategy-proto-or-others\n let obj: T;\n if (Object.create) {\n obj = Object.create(proto);\n }\n else {\n const StyleCtor = function () {};\n StyleCtor.prototype = proto;\n obj = new (StyleCtor as any)();\n }\n if (properties) {\n extend(obj, properties);\n }\n\n return obj;\n}\n\nexport function hasOwn(own: object, prop: string): boolean {\n return own.hasOwnProperty(prop);\n}\n\nexport function noop() {}\n", "/**\n * @deprecated\n * Use zrender.Point class instead\n */\nimport { MatrixArray } from './matrix';\n\n/* global Float32Array */\n\n// const ArrayCtor = typeof Float32Array === 'undefined'\n// ? Array\n// : Float32Array;\n\nexport type VectorArray = number[]\n/**\n * \u521B\u5EFA\u4E00\u4E2A\u5411\u91CF\n */\nexport function create(x?: number, y?: number): VectorArray {\n if (x == null) {\n x = 0;\n }\n if (y == null) {\n y = 0;\n }\n return [x, y];\n}\n\n/**\n * \u590D\u5236\u5411\u91CF\u6570\u636E\n */\nexport function copy(out: T, v: VectorArray): T {\n out[0] = v[0];\n out[1] = v[1];\n return out;\n}\n\n/**\n * \u514B\u9686\u4E00\u4E2A\u5411\u91CF\n */\nexport function clone(v: VectorArray): VectorArray {\n return [v[0], v[1]];\n}\n\n/**\n * \u8BBE\u7F6E\u5411\u91CF\u7684\u4E24\u4E2A\u9879\n */\nexport function set(out: T, a: number, b: number): T {\n out[0] = a;\n out[1] = b;\n return out;\n}\n\n/**\n * \u5411\u91CF\u76F8\u52A0\n */\nexport function add(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] + v2[0];\n out[1] = v1[1] + v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u7F29\u653E\u540E\u76F8\u52A0\n */\nexport function scaleAndAdd(out: T, v1: VectorArray, v2: VectorArray, a: number): T {\n out[0] = v1[0] + v2[0] * a;\n out[1] = v1[1] + v2[1] * a;\n return out;\n}\n\n/**\n * \u5411\u91CF\u76F8\u51CF\n */\nexport function sub(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] - v2[0];\n out[1] = v1[1] - v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u957F\u5EA6\n */\nexport function len(v: VectorArray): number {\n return Math.sqrt(lenSquare(v));\n}\nexport const length = len;\n\n/**\n * \u5411\u91CF\u957F\u5EA6\u5E73\u65B9\n */\nexport function lenSquare(v: VectorArray): number {\n return v[0] * v[0] + v[1] * v[1];\n}\nexport const lengthSquare = lenSquare;\n\n/**\n * \u5411\u91CF\u4E58\u6CD5\n */\nexport function mul(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] * v2[0];\n out[1] = v1[1] * v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u9664\u6CD5\n */\nexport function div(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] / v2[0];\n out[1] = v1[1] / v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u70B9\u4E58\n */\nexport function dot(v1: VectorArray, v2: VectorArray) {\n return v1[0] * v2[0] + v1[1] * v2[1];\n}\n\n/**\n * \u5411\u91CF\u7F29\u653E\n */\nexport function scale(out: T, v: VectorArray, s: number): T {\n out[0] = v[0] * s;\n out[1] = v[1] * s;\n return out;\n}\n\n/**\n * \u5411\u91CF\u5F52\u4E00\u5316\n */\nexport function normalize(out: T, v: VectorArray): T {\n const d = len(v);\n if (d === 0) {\n out[0] = 0;\n out[1] = 0;\n }\n else {\n out[0] = v[0] / d;\n out[1] = v[1] / d;\n }\n return out;\n}\n\n/**\n * \u8BA1\u7B97\u5411\u91CF\u95F4\u8DDD\u79BB\n */\nexport function distance(v1: VectorArray, v2: VectorArray): number {\n return Math.sqrt(\n (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1])\n );\n}\nexport const dist = distance;\n\n/**\n * \u5411\u91CF\u8DDD\u79BB\u5E73\u65B9\n */\nexport function distanceSquare(v1: VectorArray, v2: VectorArray): number {\n return (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]);\n}\nexport const distSquare = distanceSquare;\n\n/**\n * \u6C42\u8D1F\u5411\u91CF\n */\nexport function negate(out: T, v: VectorArray): T {\n out[0] = -v[0];\n out[1] = -v[1];\n return out;\n}\n\n/**\n * \u63D2\u503C\u4E24\u4E2A\u70B9\n */\nexport function lerp(out: T, v1: VectorArray, v2: VectorArray, t: number): T {\n out[0] = v1[0] + t * (v2[0] - v1[0]);\n out[1] = v1[1] + t * (v2[1] - v1[1]);\n return out;\n}\n\n/**\n * \u77E9\u9635\u5DE6\u4E58\u5411\u91CF\n */\nexport function applyTransform(out: T, v: VectorArray, m: MatrixArray): T {\n const x = v[0];\n const y = v[1];\n out[0] = m[0] * x + m[2] * y + m[4];\n out[1] = m[1] * x + m[3] * y + m[5];\n return out;\n}\n\n/**\n * \u6C42\u4E24\u4E2A\u5411\u91CF\u6700\u5C0F\u503C\n */\nexport function min(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = Math.min(v1[0], v2[0]);\n out[1] = Math.min(v1[1], v2[1]);\n return out;\n}\n\n/**\n * \u6C42\u4E24\u4E2A\u5411\u91CF\u6700\u5927\u503C\n */\nexport function max(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = Math.max(v1[0], v2[0]);\n out[1] = Math.max(v1[1], v2[1]);\n return out;\n}\n", "import Handler from '../Handler';\nimport Element, { ElementEvent } from '../Element';\nimport Displayable from '../graphic/Displayable';\n\nclass Param {\n\n target: Element\n topTarget: Element\n\n constructor(target: Element, e?: ElementEvent) {\n this.target = target;\n this.topTarget = e && e.topTarget;\n }\n}\n\n// FIXME Draggable on element which has parent rotation or scale\nexport default class Draggable {\n\n handler: Handler\n\n _draggingTarget: Element\n _dropTarget: Element\n\n _x: number\n _y: number\n\n constructor(handler: Handler) {\n this.handler = handler;\n\n handler.on('mousedown', this._dragStart, this);\n handler.on('mousemove', this._drag, this);\n handler.on('mouseup', this._dragEnd, this);\n // `mosuemove` and `mouseup` can be continue to fire when dragging.\n // See [DRAG_OUTSIDE] in `Handler.js`. So we do not need to trigger\n // `_dragEnd` when globalout. That would brings better user experience.\n // this.on('globalout', this._dragEnd, this);\n\n // this._dropTarget = null;\n // this._draggingTarget = null;\n\n // this._x = 0;\n // this._y = 0;\n }\n\n _dragStart(e: ElementEvent) {\n let draggingTarget = e.target;\n // Find if there is draggable in the ancestor\n while (draggingTarget && !draggingTarget.draggable) {\n draggingTarget = draggingTarget.parent;\n }\n if (draggingTarget) {\n this._draggingTarget = draggingTarget;\n draggingTarget.dragging = true;\n this._x = e.offsetX;\n this._y = e.offsetY;\n\n this.handler.dispatchToElement(\n new Param(draggingTarget, e), 'dragstart', e.event\n );\n }\n }\n\n _drag(e: ElementEvent) {\n const draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const dx = x - this._x;\n const dy = y - this._y;\n this._x = x;\n this._y = y;\n\n draggingTarget.drift(dx, dy, e);\n this.handler.dispatchToElement(\n new Param(draggingTarget, e), 'drag', e.event\n );\n\n const dropTarget = this.handler.findHover(\n x, y, draggingTarget as Displayable // PENDING\n ).target;\n const lastDropTarget = this._dropTarget;\n this._dropTarget = dropTarget;\n\n if (draggingTarget !== dropTarget) {\n if (lastDropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(\n new Param(lastDropTarget, e), 'dragleave', e.event\n );\n }\n if (dropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(\n new Param(dropTarget, e), 'dragenter', e.event\n );\n }\n }\n }\n }\n\n _dragEnd(e: ElementEvent) {\n const draggingTarget = this._draggingTarget;\n\n if (draggingTarget) {\n draggingTarget.dragging = false;\n }\n\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragend', e.event);\n\n if (this._dropTarget) {\n this.handler.dispatchToElement(new Param(this._dropTarget, e), 'drop', e.event);\n }\n\n this._draggingTarget = null;\n this._dropTarget = null;\n }\n\n}", "import { Dictionary, WithThisType } from './types';\n\n// Return true to cancel bubble\nexport type EventCallbackSingleParam = EvtParam extends any\n ? (params: EvtParam) => boolean | void\n : never\n\nexport type EventCallback = EvtParams extends any[]\n ? (...args: EvtParams) => boolean | void\n : never\nexport type EventQuery = string | Object\n\ntype CbThis = unknown extends Ctx ? Impl : Ctx;\n\ntype EventHandler = {\n h: EventCallback\n ctx: CbThis\n query: EventQuery\n\n callAtLast: boolean\n}\n\ntype DefaultEventDefinition = Dictionary>;\n\nexport interface EventProcessor {\n normalizeQuery?: (query: EventQuery) => EventQuery\n filter?: (eventType: keyof EvtDef, query: EventQuery) => boolean\n afterTrigger?: (eventType: keyof EvtDef) => void\n}\n\n/**\n * Event dispatcher.\n *\n * Event can be defined in EvtDef to enable type check. For example:\n * ```ts\n * interface FooEvents {\n * // key: event name, value: the first event param in `trigger` and `callback`.\n * myevent: {\n * aa: string;\n * bb: number;\n * };\n * }\n * class Foo extends Eventful {\n * fn() {\n * // Type check of event name and the first event param is enabled here.\n * this.trigger('myevent', {aa: 'xx', bb: 3});\n * }\n * }\n * let foo = new Foo();\n * // Type check of event name and the first event param is enabled here.\n * foo.on('myevent', (eventParam) => { ... });\n * ```\n *\n * @param eventProcessor The object eventProcessor is the scope when\n * `eventProcessor.xxx` called.\n * @param eventProcessor.normalizeQuery\n * param: {string|Object} Raw query.\n * return: {string|Object} Normalized query.\n * @param eventProcessor.filter Event will be dispatched only\n * if it returns `true`.\n * param: {string} eventType\n * param: {string|Object} query\n * return: {boolean}\n * @param eventProcessor.afterTrigger Called after all handlers called.\n * param: {string} eventType\n */\nexport default class Eventful {\n\n private _$handlers: Dictionary[]>\n\n protected _$eventProcessor: EventProcessor\n\n constructor(eventProcessors?: EventProcessor) {\n if (eventProcessors) {\n this._$eventProcessor = eventProcessors;\n }\n }\n\n on(\n event: EvtNm,\n handler: WithThisType>,\n context?: Ctx\n ): this\n on(\n event: EvtNm,\n query: EventQuery,\n handler: WithThisType>,\n context?: Ctx\n ): this\n /**\n * Bind a handler.\n *\n * @param event The event name.\n * @param Condition used on event filter.\n * @param handler The event handler.\n * @param context\n */\n on(\n event: EvtNm,\n query: EventQuery | WithThisType, CbThis>,\n handler?: WithThisType, CbThis> | Ctx,\n context?: Ctx\n ): this {\n if (!this._$handlers) {\n this._$handlers = {};\n }\n\n const _h = this._$handlers;\n\n if (typeof query === 'function') {\n context = handler as Ctx;\n handler = query as (...args: any) => any;\n query = null;\n }\n\n if (!handler || !event) {\n return this;\n }\n\n const eventProcessor = this._$eventProcessor;\n if (query != null && eventProcessor && eventProcessor.normalizeQuery) {\n query = eventProcessor.normalizeQuery(query);\n }\n\n if (!_h[event as string]) {\n _h[event as string] = [];\n }\n\n for (let i = 0; i < _h[event as string].length; i++) {\n if (_h[event as string][i].h === handler) {\n return this;\n }\n }\n\n const wrap: EventHandler = {\n h: handler as EventCallback,\n query: query,\n ctx: (context || this) as CbThis,\n // FIXME\n // Do not publish this feature util it is proved that it makes sense.\n callAtLast: (handler as any).zrEventfulCallAtLast\n };\n\n const lastIndex = _h[event as string].length - 1;\n const lastWrap = _h[event as string][lastIndex];\n (lastWrap && lastWrap.callAtLast)\n ? _h[event as string].splice(lastIndex, 0, wrap)\n : _h[event as string].push(wrap);\n\n return this;\n }\n\n /**\n * Whether any handler has bound.\n */\n isSilent(eventName: keyof EvtDef): boolean {\n const _h = this._$handlers;\n return !_h || !_h[eventName as string] || !_h[eventName as string].length;\n }\n\n /**\n * Unbind a event.\n *\n * @param eventType The event name.\n * If no `event` input, \"off\" all listeners.\n * @param handler The event handler.\n * If no `handler` input, \"off\" all listeners of the `event`.\n */\n off(eventType?: keyof EvtDef, handler?: Function): this {\n const _h = this._$handlers;\n\n if (!_h) {\n return this;\n }\n\n if (!eventType) {\n this._$handlers = {};\n return this;\n }\n\n if (handler) {\n if (_h[eventType as string]) {\n const newList = [];\n for (let i = 0, l = _h[eventType as string].length; i < l; i++) {\n if (_h[eventType as string][i].h !== handler) {\n newList.push(_h[eventType as string][i]);\n }\n }\n _h[eventType as string] = newList;\n }\n\n if (_h[eventType as string] && _h[eventType as string].length === 0) {\n delete _h[eventType as string];\n }\n }\n else {\n delete _h[eventType as string];\n }\n\n return this;\n }\n\n /**\n * Dispatch a event.\n *\n * @param {string} eventType The event name.\n */\n trigger(\n eventType: EvtNm,\n ...args: Parameters\n ): this {\n if (!this._$handlers) {\n return this;\n }\n\n const _h = this._$handlers[eventType as string];\n const eventProcessor = this._$eventProcessor;\n\n if (_h) {\n const argLen = args.length;\n\n const len = _h.length;\n for (let i = 0; i < len; i++) {\n const hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(eventType, hItem.query)\n ) {\n continue;\n }\n\n // Optimize advise from backbone\n switch (argLen) {\n case 0:\n hItem.h.call(hItem.ctx);\n break;\n case 1:\n hItem.h.call(hItem.ctx, args[0]);\n break;\n case 2:\n hItem.h.call(hItem.ctx, args[0], args[1]);\n break;\n default:\n // have more than 2 given arguments\n hItem.h.apply(hItem.ctx, args);\n break;\n }\n }\n }\n\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(eventType);\n\n return this;\n }\n\n /**\n * Dispatch a event with context, which is specified at the last parameter.\n *\n * @param {string} type The event name.\n */\n triggerWithContext(type: keyof EvtDef, ...args: any[]): this {\n if (!this._$handlers) {\n return this;\n }\n\n const _h = this._$handlers[type as string];\n const eventProcessor = this._$eventProcessor;\n\n if (_h) {\n const argLen = args.length;\n const ctx = args[argLen - 1];\n\n const len = _h.length;\n for (let i = 0; i < len; i++) {\n const hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(type, hItem.query)\n ) {\n continue;\n }\n\n // Optimize advise from backbone\n switch (argLen) {\n case 0:\n hItem.h.call(ctx);\n break;\n case 1:\n hItem.h.call(ctx, args[0]);\n break;\n case 2:\n hItem.h.call(ctx, args[0], args[1]);\n break;\n default:\n // have more than 2 given arguments\n hItem.h.apply(ctx, args.slice(1, argLen - 1));\n break;\n }\n }\n }\n\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(type);\n\n return this;\n }\n\n}\n", "/**\n * The algoritm is learnt from\n * https://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/\n * And we made some optimization for matrix inversion.\n * Other similar approaches:\n * \"cv::getPerspectiveTransform\", \"Direct Linear Transformation\".\n */\n\nconst LN2 = Math.log(2);\n\nfunction determinant(\n rows: number[][],\n rank: number,\n rowStart: number,\n rowMask: number,\n colMask: number,\n detCache: {[key: string]: number}\n) {\n const cacheKey = rowMask + '-' + colMask;\n const fullRank = rows.length;\n\n if (detCache.hasOwnProperty(cacheKey)) {\n return detCache[cacheKey];\n }\n\n if (rank === 1) {\n // In this case the colMask must be like: `11101111`. We can find the place of `0`.\n const colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);\n return rows[rowStart][colStart];\n }\n\n const subRowMask = rowMask | (1 << rowStart);\n let subRowStart = rowStart + 1;\n while (rowMask & (1 << subRowStart)) {\n subRowStart++;\n }\n\n let sum = 0;\n for (let j = 0, colLocalIdx = 0; j < fullRank; j++) {\n const colTag = 1 << j;\n if (!(colTag & colMask)) {\n sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]\n // det(subMatrix(0, j))\n * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);\n colLocalIdx++;\n }\n }\n\n detCache[cacheKey] = sum;\n\n return sum;\n}\n\n/**\n * Usage:\n * ```js\n * const transformer = buildTransformer(\n * [10, 44, 100, 44, 100, 300, 10, 300],\n * [50, 54, 130, 14, 140, 330, 14, 220]\n * );\n * const out = [];\n * transformer && transformer([11, 33], out);\n * ```\n *\n * Notice: `buildTransformer` may take more than 10ms in some Android device.\n *\n * @param src source four points, [x0, y0, x1, y1, x2, y2, x3, y3]\n * @param dest destination four points, [x0, y0, x1, y1, x2, y2, x3, y3]\n * @return transformer If fail, return null/undefined.\n */\nexport function buildTransformer(src: number[], dest: number[]) {\n const mA = [\n [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],\n [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],\n [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],\n [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],\n [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],\n [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],\n [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],\n [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]\n ];\n\n const detCache = {};\n const det = determinant(mA, 8, 0, 0, 0, detCache);\n if (det === 0) {\n // can not make transformer when and only when\n // any three of the markers are collinear.\n return;\n }\n\n // `invert(mA) * dest`, that is, `adj(mA) / det * dest`.\n const vh: number[] = [];\n for (let i = 0; i < 8; i++) {\n for (let j = 0; j < 8; j++) {\n vh[j] == null && (vh[j] = 0);\n vh[j] += ((i + j) % 2 ? -1 : 1)\n // det(subMatrix(i, j))\n * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)\n / det * dest[i];\n }\n }\n\n return function (out: number[], srcPointX: number, srcPointY: number) {\n const pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;\n out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;\n out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;\n };\n}\n", "\nimport env from './env';\nimport {buildTransformer} from './fourPointsTransform';\n\nconst EVENT_SAVED_PROP = '___zrEVENTSAVED';\nconst _calcOut: number[] = [];\n\ntype SavedInfo = {\n markers?: HTMLDivElement[]\n trans?: ReturnType\n invTrans?: ReturnType\n srcCoords?: number[]\n}\n\n/**\n * Transform \"local coord\" from `elFrom` to `elTarget`.\n * \"local coord\": the coord based on the input `el`. The origin point is at\n * the position of \"left: 0; top: 0;\" in the `el`.\n *\n * Support when CSS transform is used.\n *\n * Having the `out` (that is, `[outX, outY]`), we can create an DOM element\n * and set the CSS style as \"left: outX; top: outY;\" and append it to `elTarge`\n * to locate the element.\n *\n * For example, this code below positions a child of `document.body` on the event\n * point, no matter whether `body` has `margin`/`paddin`/`transfrom`/... :\n * ```js\n * transformLocalCoord(out, container, document.body, event.offsetX, event.offsetY);\n * if (!eqNaN(out[0])) {\n * // Then locate the tip element on the event point.\n * var tipEl = document.createElement('div');\n * tipEl.style.cssText = 'position: absolute; left:' + out[0] + ';top:' + out[1] + ';';\n * document.body.appendChild(tipEl);\n * }\n * ```\n *\n * Notice: In some env this method is not supported. If called, `out` will be `[NaN, NaN]`.\n *\n * @param {Array.} out [inX: number, inY: number] The output..\n * If can not transform, `out` will not be modified but return `false`.\n * @param {HTMLElement} elFrom The `[inX, inY]` is based on elFrom.\n * @param {HTMLElement} elTarget The `out` is based on elTarget.\n * @param {number} inX\n * @param {number} inY\n * @return {boolean} Whether transform successfully.\n */\nexport function transformLocalCoord(\n out: number[],\n elFrom: HTMLElement,\n elTarget: HTMLElement,\n inX: number,\n inY: number\n) {\n return transformCoordWithViewport(_calcOut, elFrom, inX, inY, true)\n && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]);\n}\n\n/**\n * Transform between a \"viewport coord\" and a \"local coord\".\n * \"viewport coord\": the coord based on the left-top corner of the viewport\n * of the browser.\n * \"local coord\": the coord based on the input `el`. The origin point is at\n * the position of \"left: 0; top: 0;\" in the `el`.\n *\n * Support the case when CSS transform is used on el.\n *\n * @param out [inX: number, inY: number] The output. If `inverse: false`,\n * it represents \"local coord\", otherwise \"vireport coord\".\n * If can not transform, `out` will not be modified but return `false`.\n * @param el The \"local coord\" is based on the `el`, see comment above.\n * @param inX If `inverse: false`,\n * it represents \"vireport coord\", otherwise \"local coord\".\n * @param inY If `inverse: false`,\n * it represents \"vireport coord\", otherwise \"local coord\".\n * @param inverse\n * `true`: from \"viewport coord\" to \"local coord\".\n * `false`: from \"local coord\" to \"viewport coord\".\n * @return {boolean} Whether transform successfully.\n */\nexport function transformCoordWithViewport(\n out: number[],\n el: HTMLElement,\n inX: number,\n inY: number,\n inverse?: boolean\n) {\n if (el.getBoundingClientRect && env.domSupported && !isCanvasEl(el)) {\n const saved = (el as any)[EVENT_SAVED_PROP] || ((el as any)[EVENT_SAVED_PROP] = {});\n const markers = prepareCoordMarkers(el, saved);\n const transformer = preparePointerTransformer(markers, saved, inverse);\n if (transformer) {\n transformer(out, inX, inY);\n return true;\n }\n }\n return false;\n}\n\nfunction prepareCoordMarkers(el: HTMLElement, saved: SavedInfo) {\n let markers = saved.markers;\n if (markers) {\n return markers;\n }\n\n markers = saved.markers = [];\n const propLR = ['left', 'right'];\n const propTB = ['top', 'bottom'];\n\n for (let i = 0; i < 4; i++) {\n const marker = document.createElement('div');\n const stl = marker.style;\n const idxLR = i % 2;\n const idxTB = (i >> 1) % 2;\n stl.cssText = [\n 'position: absolute',\n 'visibility: hidden',\n 'padding: 0',\n 'margin: 0',\n 'border-width: 0',\n 'user-select: none',\n 'width:0',\n 'height:0',\n // 'width: 5px',\n // 'height: 5px',\n propLR[idxLR] + ':0',\n propTB[idxTB] + ':0',\n propLR[1 - idxLR] + ':auto',\n propTB[1 - idxTB] + ':auto',\n ''\n ].join('!important;');\n el.appendChild(marker);\n markers.push(marker);\n }\n\n return markers;\n}\n\nfunction preparePointerTransformer(markers: HTMLDivElement[], saved: SavedInfo, inverse?: boolean) {\n const transformerName: 'invTrans' | 'trans' = inverse ? 'invTrans' : 'trans';\n const transformer = saved[transformerName];\n const oldSrcCoords = saved.srcCoords;\n const srcCoords = [];\n const destCoords = [];\n let oldCoordTheSame = true;\n\n for (let i = 0; i < 4; i++) {\n const rect = markers[i].getBoundingClientRect();\n const ii = 2 * i;\n const x = rect.left;\n const y = rect.top;\n srcCoords.push(x, y);\n oldCoordTheSame = oldCoordTheSame && oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];\n destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);\n }\n // Cache to avoid time consuming of `buildTransformer`.\n return (oldCoordTheSame && transformer)\n ? transformer\n : (\n saved.srcCoords = srcCoords,\n saved[transformerName] = inverse\n ? buildTransformer(destCoords, srcCoords)\n : buildTransformer(srcCoords, destCoords)\n );\n}\n\nexport function isCanvasEl(el: HTMLElement): el is HTMLCanvasElement {\n return el.nodeName.toUpperCase() === 'CANVAS';\n}\n", "/**\n * Utilities for mouse or touch events.\n */\n\nimport Eventful from './Eventful';\nimport env from './env';\nimport { ZRRawEvent } from './types';\nimport {isCanvasEl, transformCoordWithViewport} from './dom';\n\nconst isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;\n\nconst MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;\nconst _calcOut: number[] = [];\n\ntype FirefoxMouseEvent = {\n layerX: number\n layerY: number\n}\n\n\n/**\n * Get the `zrX` and `zrY`, which are relative to the top-left of\n * the input `el`.\n * CSS transform (2D & 3D) is supported.\n *\n * The strategy to fetch the coords:\n * + If `calculate` is not set as `true`, users of this method should\n * ensure that `el` is the same or the same size & location as `e.target`.\n * Otherwise the result coords are probably not expected. Because we\n * firstly try to get coords from e.offsetX/e.offsetY.\n * + If `calculate` is set as `true`, the input `el` can be any element\n * and we force to calculate the coords based on `el`.\n * + The input `el` should be positionable (not position:static).\n *\n * The force `calculate` can be used in case like:\n * When mousemove event triggered on ec tooltip, `e.target` is not `el`(zr painter.dom).\n *\n * @param el DOM element.\n * @param e Mouse event or touch event.\n * @param out Get `out.zrX` and `out.zrY` as the result.\n * @param calculate Whether to force calculate\n * the coordinates but not use ones provided by browser.\n */\nexport function clientToLocal(\n el: HTMLElement,\n e: ZRRawEvent | FirefoxMouseEvent | Touch,\n out: {zrX?: number, zrY?: number},\n calculate?: boolean\n) {\n out = out || {};\n\n // According to the W3C Working Draft, offsetX and offsetY should be relative\n // to the padding edge of the target element. The only browser using this convention\n // is IE. Webkit uses the border edge, Opera uses the content edge, and FireFox does\n // not support the properties.\n // (see http://www.jacklmoore.com/notes/mouse-position/)\n // In zr painter.dom, padding edge equals to border edge.\n\n if (calculate || !env.canvasSupported) {\n calculateZrXY(el, e as ZRRawEvent, out);\n }\n // Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned\n // ancestor element, so we should make sure el is positioned (e.g., not position:static).\n // BTW1, Webkit don't return the same results as FF in non-simple cases (like add\n // zoom-factor, overflow / opacity layers, transforms ...)\n // BTW2, (ev.offsetY || ev.pageY - $(ev.target).offset().top) is not correct in preserve-3d.\n // \n // BTW3, In ff, offsetX/offsetY is always 0.\n else if (env.browser.firefox\n && (e as FirefoxMouseEvent).layerX != null\n && (e as FirefoxMouseEvent).layerX !== (e as MouseEvent).offsetX\n ) {\n out.zrX = (e as FirefoxMouseEvent).layerX;\n out.zrY = (e as FirefoxMouseEvent).layerY;\n }\n // For IE6+, chrome, safari, opera. (When will ff support offsetX?)\n else if ((e as MouseEvent).offsetX != null) {\n out.zrX = (e as MouseEvent).offsetX;\n out.zrY = (e as MouseEvent).offsetY;\n }\n // For some other device, e.g., IOS safari.\n else {\n calculateZrXY(el, e as ZRRawEvent, out);\n }\n\n return out;\n}\n\nfunction calculateZrXY(\n el: HTMLElement,\n e: ZRRawEvent,\n out: {zrX?: number, zrY?: number}\n) {\n // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect.\n if (env.domSupported && el.getBoundingClientRect) {\n const ex = (e as MouseEvent).clientX;\n const ey = (e as MouseEvent).clientY;\n\n if (isCanvasEl(el)) {\n // Original approach, which do not support CSS transform.\n // marker can not be locationed in a canvas container\n // (getBoundingClientRect is always 0). We do not support\n // that input a pre-created canvas to zr while using css\n // transform in iOS.\n const box = el.getBoundingClientRect();\n out.zrX = ex - box.left;\n out.zrY = ey - box.top;\n return;\n }\n else {\n if (transformCoordWithViewport(_calcOut, el, ex, ey)) {\n out.zrX = _calcOut[0];\n out.zrY = _calcOut[1];\n return;\n }\n }\n }\n out.zrX = out.zrY = 0;\n}\n\n/**\n * Find native event compat for legency IE.\n * Should be called at the begining of a native event listener.\n *\n * @param e Mouse event or touch event or pointer event.\n * For lagency IE, we use `window.event` is used.\n * @return The native event.\n */\nexport function getNativeEvent(e: ZRRawEvent): ZRRawEvent {\n return e\n || (window.event as any); // For IE\n}\n\n/**\n * Normalize the coordinates of the input event.\n *\n * Get the `e.zrX` and `e.zrY`, which are relative to the top-left of\n * the input `el`.\n * Get `e.zrDelta` if using mouse wheel.\n * Get `e.which`, see the comment inside this function.\n *\n * Do not calculate repeatly if `zrX` and `zrY` already exist.\n *\n * Notice: see comments in `clientToLocal`. check the relationship\n * between the result coords and the parameters `el` and `calculate`.\n *\n * @param el DOM element.\n * @param e See `getNativeEvent`.\n * @param calculate Whether to force calculate\n * the coordinates but not use ones provided by browser.\n * @return The normalized native UIEvent.\n */\nexport function normalizeEvent(\n el: HTMLElement,\n e: ZRRawEvent,\n calculate?: boolean\n) {\n\n e = getNativeEvent(e);\n\n if (e.zrX != null) {\n return e;\n }\n\n const eventType = e.type;\n const isTouch = eventType && eventType.indexOf('touch') >= 0;\n\n if (!isTouch) {\n clientToLocal(el, e, e, calculate);\n const wheelDelta = getWheelDeltaMayPolyfill(e);\n // FIXME: IE8- has \"wheelDeta\" in event \"mousewheel\" but hat different value (120 times)\n // with Chrome and Safari. It's not correct for zrender event but we left it as it was.\n e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;\n }\n else {\n const touch = eventType !== 'touchend'\n ? (e).targetTouches[0]\n : (e).changedTouches[0];\n touch && clientToLocal(el, touch, e, calculate);\n }\n\n // Add which for click: 1 === left; 2 === middle; 3 === right; otherwise: 0;\n // See jQuery: https://github.com/jquery/jquery/blob/master/src/event.js\n // If e.which has been defined, it may be readonly,\n // see: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which\n const button = (e).button;\n if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {\n (e as any).which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));\n }\n // [Caution]: `e.which` from browser is not always reliable. For example,\n // when press left button and `mousemove (pointermove)` in Edge, the `e.which`\n // is 65536 and the `e.button` is -1. But the `mouseup (pointerup)` and\n // `mousedown (pointerdown)` is the same as Chrome does.\n\n return e;\n}\n\n// TODO: also provide prop \"deltaX\" \"deltaY\" in zrender \"mousewheel\" event.\nfunction getWheelDeltaMayPolyfill(e: ZRRawEvent): number {\n // Although event \"wheel\" do not has the prop \"wheelDelta\" in spec,\n // agent like Chrome and Safari still provide \"wheelDelta\" like\n // event \"mousewheel\" did (perhaps for backward compat).\n // Since zrender has been using \"wheelDeta\" in zrender event \"mousewheel\".\n // we currently do not break it.\n // But event \"wheel\" in firefox do not has \"wheelDelta\", so we calculate\n // \"wheelDeta\" from \"deltaX\", \"deltaY\" (which is the props in spec).\n\n const rawWheelDelta = (e as any).wheelDelta;\n // Theroetically `e.wheelDelta` won't be 0 unless some day it has been deprecated\n // by agent like Chrome or Safari. So we also calculate it if rawWheelDelta is 0.\n if (rawWheelDelta) {\n return rawWheelDelta;\n }\n\n const deltaX = (e as any).deltaX;\n const deltaY = (e as any).deltaY;\n if (deltaX == null || deltaY == null) {\n return rawWheelDelta;\n }\n\n // Test in Chrome and Safari (MacOS):\n // The sign is corrent.\n // The abs value is 99% corrent (inconsist case only like 62~63, 125~126 ...)\n const delta = deltaY !== 0 ? Math.abs(deltaY) : Math.abs(deltaX);\n const sign = deltaY > 0 ? -1\n : deltaY < 0 ? 1\n : deltaX > 0 ? -1\n : 1;\n return 3 * delta * sign;\n}\n\n\ntype AddEventListenerParams = Parameters\ntype RemoveEventListenerParams = Parameters\n/**\n * @param el\n * @param name\n * @param handler\n * @param opt If boolean, means `opt.capture`\n * @param opt.capture\n * @param opt.passive\n */\nexport function addEventListener(\n el: HTMLElement | HTMLDocument,\n name: AddEventListenerParams[0],\n handler: AddEventListenerParams[1],\n opt?: AddEventListenerParams[2]\n) {\n if (isDomLevel2) {\n // Reproduct the console warning:\n // [Violation] Added non-passive event listener to a scroll-blocking event.\n // Consider marking event handler as 'passive' to make the page more responsive.\n // Just set console log level: verbose in chrome dev tool.\n // then the warning log will be printed when addEventListener called.\n // See https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n // We have not yet found a neat way to using passive. Because in zrender the dom event\n // listener delegate all of the upper events of element. Some of those events need\n // to prevent default. For example, the feature `preventDefaultMouseMove` of echarts.\n // Before passive can be adopted, these issues should be considered:\n // (1) Whether and how a zrender user specifies an event listener passive. And by default,\n // passive or not.\n // (2) How to tread that some zrender event listener is passive, and some is not. If\n // we use other way but not preventDefault of mousewheel and touchmove, browser\n // compatibility should be handled.\n\n // const opts = (env.passiveSupported && name === 'mousewheel')\n // ? {passive: true}\n // // By default, the third param of el.addEventListener is `capture: false`.\n // : void 0;\n // el.addEventListener(name, handler /* , opts */);\n el.addEventListener(name, handler, opt);\n }\n else {\n // For simplicity, do not implement `setCapture` for IE9-.\n (el as any).attachEvent('on' + name, handler);\n }\n}\n\n/**\n * Parameter are the same as `addEventListener`.\n *\n * Notice that if a listener is registered twice, one with capture and one without,\n * remove each one separately. Removal of a capturing listener does not affect a\n * non-capturing version of the same listener, and vice versa.\n */\nexport function removeEventListener(\n el: HTMLElement | HTMLDocument,\n name: RemoveEventListenerParams[0],\n handler: RemoveEventListenerParams[1],\n opt: RemoveEventListenerParams[2]\n) {\n if (isDomLevel2) {\n el.removeEventListener(name, handler, opt);\n }\n else {\n (el as any).detachEvent('on' + name, handler);\n }\n}\n\n/**\n * preventDefault and stopPropagation.\n * Notice: do not use this method in zrender. It can only be\n * used by upper applications if necessary.\n *\n * @param {Event} e A mouse or touch event.\n */\nexport const stop = isDomLevel2\n ? function (e: MouseEvent | TouchEvent | PointerEvent) {\n e.preventDefault();\n e.stopPropagation();\n e.cancelBubble = true;\n }\n : function (e: MouseEvent | TouchEvent | PointerEvent) {\n e.returnValue = false;\n e.cancelBubble = true;\n };\n\n/**\n * This method only works for mouseup and mousedown. The functionality is restricted\n * for fault tolerance, See the `e.which` compatibility above.\n *\n * params can be MouseEvent or ElementEvent\n */\nexport function isMiddleOrRightButtonOnMouseUpDown(e: { which: number }) {\n return e.which === 2 || e.which === 3;\n}\n\n/**\n * To be removed.\n * @deprecated\n */\nexport function notLeftMouse(e: MouseEvent) {\n // If e.which is undefined, considered as left mouse event.\n return e.which > 1;\n}\n\n\n// For backward compatibility\nexport {Eventful as Dispatcher};\n", "/**\n * Only implements needed gestures for mobile.\n */\n\nimport * as eventUtil from './event';\nimport { ZRRawTouchEvent, ZRPinchEvent, Dictionary } from './types';\nimport Displayable from '../graphic/Displayable';\n\ninterface TrackItem {\n points: number[][]\n touches: Touch[]\n target: Displayable,\n event: ZRRawTouchEvent\n}\n\nexport class GestureMgr {\n\n private _track: TrackItem[] = []\n\n constructor() {}\n\n recognize(event: ZRRawTouchEvent, target: Displayable, root: HTMLElement) {\n this._doTrack(event, target, root);\n return this._recognize(event);\n }\n\n clear() {\n this._track.length = 0;\n return this;\n }\n\n _doTrack(event: ZRRawTouchEvent, target: Displayable, root: HTMLElement) {\n const touches = event.touches;\n\n if (!touches) {\n return;\n }\n\n const trackItem: TrackItem = {\n points: [],\n touches: [],\n target: target,\n event: event\n };\n\n for (let i = 0, len = touches.length; i < len; i++) {\n const touch = touches[i];\n const pos = eventUtil.clientToLocal(root, touch, {});\n trackItem.points.push([pos.zrX, pos.zrY]);\n trackItem.touches.push(touch);\n }\n\n this._track.push(trackItem);\n }\n\n _recognize(event: ZRRawTouchEvent) {\n for (let eventName in recognizers) {\n if (recognizers.hasOwnProperty(eventName)) {\n const gestureInfo = recognizers[eventName](this._track, event);\n if (gestureInfo) {\n return gestureInfo;\n }\n }\n }\n }\n}\n\nfunction dist(pointPair: number[][]): number {\n const dx = pointPair[1][0] - pointPair[0][0];\n const dy = pointPair[1][1] - pointPair[0][1];\n\n return Math.sqrt(dx * dx + dy * dy);\n}\n\nfunction center(pointPair: number[][]): number[] {\n return [\n (pointPair[0][0] + pointPair[1][0]) / 2,\n (pointPair[0][1] + pointPair[1][1]) / 2\n ];\n}\n\ntype Recognizer = (tracks: TrackItem[], event: ZRRawTouchEvent) => {\n type: string\n target: Displayable\n event: ZRRawTouchEvent\n}\n\nconst recognizers: Dictionary = {\n\n pinch: function (tracks: TrackItem[], event: ZRRawTouchEvent) {\n const trackLen = tracks.length;\n\n if (!trackLen) {\n return;\n }\n\n const pinchEnd = (tracks[trackLen - 1] || {}).points;\n const pinchPre = (tracks[trackLen - 2] || {}).points || pinchEnd;\n\n if (pinchPre\n && pinchPre.length > 1\n && pinchEnd\n && pinchEnd.length > 1\n ) {\n let pinchScale = dist(pinchEnd) / dist(pinchPre);\n !isFinite(pinchScale) && (pinchScale = 1);\n\n (event as ZRPinchEvent).pinchScale = pinchScale;\n\n const pinchCenter = center(pinchEnd);\n (event as ZRPinchEvent).pinchX = pinchCenter[0];\n (event as ZRPinchEvent).pinchY = pinchCenter[1];\n\n return {\n type: 'pinch',\n target: tracks[0].target,\n event: event\n };\n }\n }\n\n // Only pinch currently.\n};", "import * as util from './core/util';\nimport * as vec2 from './core/vector';\nimport Draggable from './mixin/Draggable';\nimport Eventful from './core/Eventful';\nimport * as eventTool from './core/event';\nimport {GestureMgr} from './core/GestureMgr';\nimport Displayable from './graphic/Displayable';\nimport {PainterBase} from './PainterBase';\nimport HandlerDomProxy, { HandlerProxyInterface } from './dom/HandlerProxy';\nimport { ZRRawEvent, ZRPinchEvent, ElementEventName, ElementEventNameWithOn, ZRRawTouchEvent } from './core/types';\nimport Storage from './Storage';\nimport Element, {ElementEvent} from './Element';\nimport CanvasPainter from './canvas/Painter';\n\n\n/**\n * [The interface between `Handler` and `HandlerProxy`]:\n *\n * The default `HandlerProxy` only support the common standard web environment\n * (e.g., standalone browser, headless browser, embed browser in mobild APP, ...).\n * But `HandlerProxy` can be replaced to support more non-standard environment\n * (e.g., mini app), or to support more feature that the default `HandlerProxy`\n * not provided (like echarts-gl did).\n * So the interface between `Handler` and `HandlerProxy` should be stable. Do not\n * make break changes util inevitable. The interface include the public methods\n * of `Handler` and the events listed in `handlerNames` below, by which `HandlerProxy`\n * drives `Handler`.\n */\n\n/**\n * [DRAG_OUTSIDE]:\n *\n * That is, triggering `mousemove` and `mouseup` event when the pointer is out of the\n * zrender area when dragging. That is important for the improvement of the user experience\n * when dragging something near the boundary without being terminated unexpectedly.\n *\n * We originally consider to introduce new events like `pagemovemove` and `pagemouseup`\n * to resolve this issue. But some drawbacks of it is described in\n * https://github.com/ecomfe/zrender/pull/536#issuecomment-560286899\n *\n * Instead, we referenced the specifications:\n * https://www.w3.org/TR/touch-events/#the-touchmove-event\n * https://www.w3.org/TR/2014/WD-DOM-Level-3-Events-20140925/#event-type-mousemove\n * where the the mousemove/touchmove can be continue to fire if the user began a drag\n * operation and the pointer has left the boundary. (for the mouse event, browsers\n * only do it on `document` and when the pointer has left the boundary of the browser.)\n *\n * So the default `HandlerProxy` supports this feature similarly: if it is in the dragging\n * state (see `pointerCapture` in `HandlerProxy`), the `mousemove` and `mouseup` continue\n * to fire until release the pointer. That is implemented by listen to those event on\n * `document`.\n * If we implement some other `HandlerProxy` only for touch device, that would be easier.\n * The touch event support this feature by default.\n * The term \"pointer capture\" is from the spec:\n * https://www.w3.org/TR/pointerevents2/#idl-def-element-setpointercapture-pointerid\n *\n * Note:\n * There might be some cases that the mouse event can not be received on `document`.\n * For example,\n * (A) When `useCapture` is not supported and some user defined event listeners on the ancestor\n * of zr dom throw Error.\n * (B) When `useCapture` is not supported and some user defined event listeners on the ancestor of\n * zr dom call `stopPropagation`.\n * In these cases, the `mousemove` event might be keep triggering event when the mouse is released.\n * We try to reduce the side-effect in those cases, that is, use `isOutsideBoundary` to prevent\n * it from do anything (especially, `findHover`).\n * (`useCapture` mean, `addEvnetListener(listener, {capture: true})`, althought it may not be\n * suppported in some environments.)\n *\n * Note:\n * If `HandlerProxy` listens to `document` with `useCapture`, `HandlerProxy` needs to\n * prevent user-registered-handler from calling `stopPropagation` and `preventDefault`\n * when the `event.target` is not a zrender dom element. Otherwise the user-registered-handler\n * may be able to prevent other elements (that not relevant to zrender) in the web page from receiving\n * dom events.\n */\n\nconst SILENT = 'silent';\n\nfunction makeEventPacket(eveType: ElementEventName, targetInfo: {\n target?: Element\n topTarget?: Element\n}, event: ZRRawEvent): ElementEvent {\n return {\n type: eveType,\n event: event,\n // target can only be an element that is not silent.\n target: targetInfo.target,\n // topTarget can be a silent element.\n topTarget: targetInfo.topTarget,\n cancelBubble: false,\n offsetX: event.zrX,\n offsetY: event.zrY,\n gestureEvent: (event as ZRPinchEvent).gestureEvent,\n pinchX: (event as ZRPinchEvent).pinchX,\n pinchY: (event as ZRPinchEvent).pinchY,\n pinchScale: (event as ZRPinchEvent).pinchScale,\n wheelDelta: event.zrDelta,\n zrByTouch: event.zrByTouch,\n which: event.which,\n stop: stopEvent\n };\n}\n\nfunction stopEvent(this: ElementEvent) {\n eventTool.stop(this.event);\n}\n\nclass EmptyProxy extends Eventful {\n handler: Handler = null\n dispose() {}\n setCursor() {}\n}\n\nclass HoveredResult {\n x: number\n y: number\n target: Displayable\n topTarget: Displayable\n constructor(x?: number, y?: number) {\n this.x = x;\n this.y = y;\n }\n}\n\nconst handlerNames = [\n 'click', 'dblclick', 'mousewheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n];\n\ntype HandlerName = 'click' |'dblclick' |'mousewheel' |'mouseout' |\n 'mouseup' |'mousedown' |'mousemove' |'contextmenu';\n\n\n// TODO draggable\nclass Handler extends Eventful {\n\n storage: Storage\n painter: PainterBase\n painterRoot: HTMLElement\n\n proxy: HandlerProxyInterface\n\n private _hovered = new HoveredResult(0, 0)\n\n private _gestureMgr: GestureMgr\n\n private _draggingMgr: Draggable\n\n _downEl: Element\n _upEl: Element\n _downPoint: [number, number]\n\n constructor(\n storage: Storage,\n painter: PainterBase,\n proxy: HandlerProxyInterface,\n painterRoot: HTMLElement\n ) {\n super();\n\n this.storage = storage;\n\n this.painter = painter;\n\n this.painterRoot = painterRoot;\n\n proxy = proxy || new EmptyProxy();\n\n /**\n * Proxy of event. can be Dom, WebGLSurface, etc.\n */\n this.proxy = null;\n\n this.setHandlerProxy(proxy);\n\n this._draggingMgr = new Draggable(this);\n }\n\n setHandlerProxy(proxy: HandlerProxyInterface) {\n if (this.proxy) {\n this.proxy.dispose();\n }\n\n if (proxy) {\n util.each(handlerNames, function (name) {\n proxy.on && proxy.on(name, this[name as HandlerName], this);\n }, this);\n // Attach handler\n proxy.handler = this;\n }\n this.proxy = proxy;\n }\n\n mousemove(event: ZRRawEvent) {\n const x = event.zrX;\n const y = event.zrY;\n\n const isOutside = isOutsideBoundary(this, x, y);\n\n let lastHovered = this._hovered;\n let lastHoveredTarget = lastHovered.target;\n\n // If lastHoveredTarget is removed from zr (detected by '__zr') by some API call\n // (like 'setOption' or 'dispatchAction') in event handlers, we should find\n // lastHovered again here. Otherwise 'mouseout' can not be triggered normally.\n // See #6198.\n if (lastHoveredTarget && !lastHoveredTarget.__zr) {\n lastHovered = this.findHover(lastHovered.x, lastHovered.y);\n lastHoveredTarget = lastHovered.target;\n }\n\n const hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);\n const hoveredTarget = hovered.target;\n\n const proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');\n\n // Mouse out on previous hovered element\n if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(lastHovered, 'mouseout', event);\n }\n\n // Mouse moving on one element\n this.dispatchToElement(hovered, 'mousemove', event);\n\n // Mouse over on a new element\n if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(hovered, 'mouseover', event);\n }\n }\n\n mouseout(event: ZRRawEvent) {\n const eventControl = event.zrEventControl;\n\n if (eventControl !== 'only_globalout') {\n this.dispatchToElement(this._hovered, 'mouseout', event);\n }\n\n if (eventControl !== 'no_globalout') {\n // FIXME: if the pointer moving from the extra doms to realy \"outside\",\n // the `globalout` should have been triggered. But currently not.\n this.trigger('globalout', {type: 'globalout', event: event});\n }\n }\n\n /**\n * Resize\n */\n resize() {\n this._hovered = new HoveredResult(0, 0);\n }\n\n /**\n * Dispatch event\n */\n dispatch(eventName: HandlerName, eventArgs?: any) {\n const handler = this[eventName];\n handler && handler.call(this, eventArgs);\n }\n\n /**\n * Dispose\n */\n dispose() {\n\n this.proxy.dispose();\n\n this.storage = null;\n this.proxy = null;\n this.painter = null;\n }\n\n /**\n * \u8BBE\u7F6E\u9ED8\u8BA4\u7684cursor style\n * @param cursorStyle \u4F8B\u5982 crosshair\uFF0C\u9ED8\u8BA4\u4E3A 'default'\n */\n setCursorStyle(cursorStyle: string) {\n const proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(cursorStyle);\n }\n\n /**\n * \u4E8B\u4EF6\u5206\u53D1\u4EE3\u7406\n *\n * @private\n * @param {Object} targetInfo {target, topTarget} \u76EE\u6807\u56FE\u5F62\u5143\u7D20\n * @param {string} eventName \u4E8B\u4EF6\u540D\u79F0\n * @param {Object} event \u4E8B\u4EF6\u5BF9\u8C61\n */\n dispatchToElement(targetInfo: {\n target?: Element\n topTarget?: Element\n }, eventName: ElementEventName, event: ZRRawEvent) {\n\n targetInfo = targetInfo || {};\n\n let el = targetInfo.target as Element;\n if (el && el.silent) {\n return;\n }\n const eventKey = ('on' + eventName) as ElementEventNameWithOn;\n const eventPacket = makeEventPacket(eventName, targetInfo, event);\n\n while (el) {\n el[eventKey]\n && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket));\n\n el.trigger(eventName, eventPacket);\n\n // Bubble to the host if on the textContent.\n // PENDING\n el = el.__hostTarget ? el.__hostTarget : el.parent;\n\n if (eventPacket.cancelBubble) {\n break;\n }\n }\n\n if (!eventPacket.cancelBubble) {\n // \u5192\u6CE1\u5230\u9876\u7EA7 zrender \u5BF9\u8C61\n this.trigger(eventName, eventPacket);\n // \u5206\u53D1\u4E8B\u4EF6\u5230\u7528\u6237\u81EA\u5B9A\u4E49\u5C42\n // \u7528\u6237\u6709\u53EF\u80FD\u5728\u5168\u5C40 click \u4E8B\u4EF6\u4E2D dispose\uFF0C\u6240\u4EE5\u9700\u8981\u5224\u65AD\u4E0B painter \u662F\u5426\u5B58\u5728\n if (this.painter && (this.painter as CanvasPainter).eachOtherLayer) {\n (this.painter as CanvasPainter).eachOtherLayer(function (layer) {\n if (typeof (layer[eventKey]) === 'function') {\n layer[eventKey].call(layer, eventPacket);\n }\n if (layer.trigger) {\n layer.trigger(eventName, eventPacket);\n }\n });\n }\n }\n }\n\n findHover(x: number, y: number, exclude?: Displayable): HoveredResult {\n const list = this.storage.getDisplayList();\n const out = new HoveredResult(x, y);\n\n for (let i = list.length - 1; i >= 0; i--) {\n let hoverCheckResult;\n if (list[i] !== exclude\n // getDisplayList may include ignored item in VML mode\n && !list[i].ignore\n && (hoverCheckResult = isHover(list[i], x, y))\n ) {\n !out.topTarget && (out.topTarget = list[i]);\n if (hoverCheckResult !== SILENT) {\n out.target = list[i];\n break;\n }\n }\n }\n\n return out;\n }\n\n processGesture(event: ZRRawEvent, stage?: 'start' | 'end' | 'change') {\n if (!this._gestureMgr) {\n this._gestureMgr = new GestureMgr();\n }\n const gestureMgr = this._gestureMgr;\n\n stage === 'start' && gestureMgr.clear();\n\n const gestureInfo = gestureMgr.recognize(\n event as ZRRawTouchEvent,\n this.findHover(event.zrX, event.zrY, null).target,\n (this.proxy as HandlerDomProxy).dom\n );\n\n stage === 'end' && gestureMgr.clear();\n\n // Do not do any preventDefault here. Upper application do that if necessary.\n if (gestureInfo) {\n const type = gestureInfo.type;\n (event as ZRPinchEvent).gestureEvent = type;\n\n let res = new HoveredResult();\n res.target = gestureInfo.target;\n this.dispatchToElement(res, type as ElementEventName, gestureInfo.event as ZRRawEvent);\n }\n }\n\n click: (event: ZRRawEvent) => void\n mousedown: (event: ZRRawEvent) => void\n mouseup: (event: ZRRawEvent) => void\n mousewheel: (event: ZRRawEvent) => void\n dblclick: (event: ZRRawEvent) => void\n contextmenu: (event: ZRRawEvent) => void\n}\n\n// Common handlers\nutil.each(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name: HandlerName) {\n Handler.prototype[name] = function (event) {\n const x = event.zrX;\n const y = event.zrY;\n const isOutside = isOutsideBoundary(this, x, y);\n\n let hovered;\n let hoveredTarget;\n\n if (name !== 'mouseup' || !isOutside) {\n // Find hover again to avoid click event is dispatched manually. Or click is triggered without mouseover\n hovered = this.findHover(x, y);\n hoveredTarget = hovered.target;\n }\n\n if (name === 'mousedown') {\n this._downEl = hoveredTarget;\n this._downPoint = [event.zrX, event.zrY];\n // In case click triggered before mouseup\n this._upEl = hoveredTarget;\n }\n else if (name === 'mouseup') {\n this._upEl = hoveredTarget;\n }\n else if (name === 'click') {\n if (this._downEl !== this._upEl\n // Original click event is triggered on the whole canvas element,\n // including the case that `mousedown` - `mousemove` - `mouseup`,\n // which should be filtered, otherwise it will bring trouble to\n // pan and zoom.\n || !this._downPoint\n // Arbitrary value\n || vec2.dist(this._downPoint, [event.zrX, event.zrY]) > 4\n ) {\n return;\n }\n this._downPoint = null;\n }\n\n this.dispatchToElement(hovered, name, event);\n };\n});\n\nfunction isHover(displayable: Displayable, x: number, y: number) {\n if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {\n let el: Element = displayable;\n let isSilent;\n let ignoreClip = false;\n while (el) {\n // Ignore clip on any ancestors.\n if (el.ignoreClip) {\n ignoreClip = true;\n }\n if (!ignoreClip) {\n let clipPath = el.getClipPath();\n // If clipped by ancestor.\n // FIXME: If clipPath has neither stroke nor fill,\n // el.clipPath.contain(x, y) will always return false.\n if (clipPath && !clipPath.contain(x, y)) {\n return false;\n }\n if (el.silent) {\n isSilent = true;\n }\n }\n // Consider when el is textContent, also need to be silent\n // if any of its host el and its ancestors is silent.\n const hostEl = el.__hostTarget;\n el = hostEl ? hostEl : el.parent;\n }\n return isSilent ? SILENT : true;\n }\n\n return false;\n}\n\n/**\n * See [DRAG_OUTSIDE].\n */\nfunction isOutsideBoundary(handlerInstance: Handler, x: number, y: number) {\n const painter = handlerInstance.painter;\n return x < 0 || x > painter.getWidth() || y < 0 || y > painter.getHeight();\n}\n\nexport default Handler;\n", "// https://github.com/mziccard/node-timsort\nconst DEFAULT_MIN_MERGE = 32;\n\nconst DEFAULT_MIN_GALLOPING = 7;\n\nconst DEFAULT_TMP_STORAGE_LENGTH = 256;\n\ntype CompareFunc =(a: T, b: T) => number\n\nfunction minRunLength(n: number): number {\n var r = 0;\n\n while (n >= DEFAULT_MIN_MERGE) {\n r |= n & 1;\n n >>= 1;\n }\n\n return n + r;\n}\n\nfunction makeAscendingRun(array: T[], lo: number, hi: number, compare: CompareFunc) {\n var runHi = lo + 1;\n\n if (runHi === hi) {\n return 1;\n }\n\n if (compare(array[runHi++], array[lo]) < 0) {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n runHi++;\n }\n\n reverseRun(array, lo, runHi);\n }\n else {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n runHi++;\n }\n }\n\n return runHi - lo;\n}\n\nfunction reverseRun(array: T[], lo: number, hi: number) {\n hi--;\n\n while (lo < hi) {\n var t = array[lo];\n array[lo++] = array[hi];\n array[hi--] = t;\n }\n}\n\nfunction binaryInsertionSort(array: T[], lo: number, hi: number, start: number, compare: CompareFunc) {\n if (start === lo) {\n start++;\n }\n\n for (; start < hi; start++) {\n var pivot = array[start];\n\n var left = lo;\n var right = start;\n var mid;\n\n while (left < right) {\n mid = left + right >>> 1;\n\n if (compare(pivot, array[mid]) < 0) {\n right = mid;\n }\n else {\n left = mid + 1;\n }\n }\n\n var n = start - left;\n\n switch (n) {\n case 3:\n array[left + 3] = array[left + 2];\n\n case 2:\n array[left + 2] = array[left + 1];\n\n case 1:\n array[left + 1] = array[left];\n break;\n default:\n while (n > 0) {\n array[left + n] = array[left + n - 1];\n n--;\n }\n }\n\n array[left] = pivot;\n }\n}\n\nfunction gallopLeft(value: T, array: T[], start: number, length: number, hint: number, compare: CompareFunc) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n\n if (compare(value, array[start + hint]) > 0) {\n maxOffset = length - hint;\n\n while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n lastOffset += hint;\n offset += hint;\n }\n else {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n\n if (compare(value, array[start + m]) > 0) {\n lastOffset = m + 1;\n }\n else {\n offset = m;\n }\n }\n return offset;\n}\n\nfunction gallopRight(value: T, array: T[], start: number, length: number, hint: number, compare: CompareFunc) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n\n if (compare(value, array[start + hint]) < 0) {\n maxOffset = hint + 1;\n\n while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n else {\n maxOffset = length - hint;\n\n while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n lastOffset += hint;\n offset += hint;\n }\n\n lastOffset++;\n\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n\n if (compare(value, array[start + m]) < 0) {\n offset = m;\n }\n else {\n lastOffset = m + 1;\n }\n }\n\n return offset;\n}\n\nfunction TimSort(array: T[], compare: CompareFunc) {\n let minGallop = DEFAULT_MIN_GALLOPING;\n let length = 0;\n let tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n let stackLength = 0;\n let runStart: number[];\n let runLength: number[];\n let stackSize = 0;\n\n length = array.length;\n\n if (length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n tmpStorageLength = length >>> 1;\n }\n\n var tmp: T[] = [];\n\n stackLength = length < 120 ? 5 : length < 1542 ? 10 : length < 119151 ? 19 : 40;\n\n runStart = [];\n runLength = [];\n\n function pushRun(_runStart: number, _runLength: number) {\n runStart[stackSize] = _runStart;\n runLength[stackSize] = _runLength;\n stackSize += 1;\n }\n\n function mergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n\n if (\n (n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1])\n || (n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1])\n ) {\n if (runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n }\n else if (runLength[n] > runLength[n + 1]) {\n break;\n }\n mergeAt(n);\n }\n }\n\n function forceMergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n\n if (n > 0 && runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n\n mergeAt(n);\n }\n }\n\n function mergeAt(i: number) {\n var start1 = runStart[i];\n var length1 = runLength[i];\n var start2 = runStart[i + 1];\n var length2 = runLength[i + 1];\n\n runLength[i] = length1 + length2;\n\n if (i === stackSize - 3) {\n runStart[i + 1] = runStart[i + 2];\n runLength[i + 1] = runLength[i + 2];\n }\n\n stackSize--;\n\n var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n start1 += k;\n length1 -= k;\n\n if (length1 === 0) {\n return;\n }\n\n length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n\n if (length2 === 0) {\n return;\n }\n\n if (length1 <= length2) {\n mergeLow(start1, length1, start2, length2);\n }\n else {\n mergeHigh(start1, length1, start2, length2);\n }\n }\n\n function mergeLow(start1: number, length1: number, start2: number, length2: number) {\n var i = 0;\n\n for (i = 0; i < length1; i++) {\n tmp[i] = array[start1 + i];\n }\n\n var cursor1 = 0;\n var cursor2 = start2;\n var dest = start1;\n\n array[dest++] = array[cursor2++];\n\n if (--length2 === 0) {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n return;\n }\n\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n return;\n }\n\n var _minGallop = minGallop;\n var count1;\n var count2;\n var exit;\n\n while (1) {\n count1 = 0;\n count2 = 0;\n exit = false;\n\n do {\n if (compare(array[cursor2], tmp[cursor1]) < 0) {\n array[dest++] = array[cursor2++];\n count2++;\n count1 = 0;\n\n if (--length2 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest++] = tmp[cursor1++];\n count1++;\n count2 = 0;\n if (--length1 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n\n if (exit) {\n break;\n }\n\n do {\n count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n\n if (count1 !== 0) {\n for (i = 0; i < count1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n\n dest += count1;\n cursor1 += count1;\n length1 -= count1;\n if (length1 <= 1) {\n exit = true;\n break;\n }\n }\n\n array[dest++] = array[cursor2++];\n\n if (--length2 === 0) {\n exit = true;\n break;\n }\n\n count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n\n if (count2 !== 0) {\n for (i = 0; i < count2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n\n dest += count2;\n cursor2 += count2;\n length2 -= count2;\n\n if (length2 === 0) {\n exit = true;\n break;\n }\n }\n array[dest++] = tmp[cursor1++];\n\n if (--length1 === 1) {\n exit = true;\n break;\n }\n\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n if (exit) {\n break;\n }\n\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n\n _minGallop += 2;\n }\n\n minGallop = _minGallop;\n\n minGallop < 1 && (minGallop = 1);\n\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n }\n else if (length1 === 0) {\n throw new Error();\n // throw new Error('mergeLow preconditions were not respected');\n }\n else {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n }\n }\n\n function mergeHigh(start1: number, length1: number, start2: number, length2: number) {\n var i = 0;\n\n for (i = 0; i < length2; i++) {\n tmp[i] = array[start2 + i];\n }\n\n var cursor1 = start1 + length1 - 1;\n var cursor2 = length2 - 1;\n var dest = start2 + length2 - 1;\n var customCursor = 0;\n var customDest = 0;\n\n array[dest--] = array[cursor1--];\n\n if (--length1 === 0) {\n customCursor = dest - (length2 - 1);\n\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n\n return;\n }\n\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n array[dest] = tmp[cursor2];\n return;\n }\n\n var _minGallop = minGallop;\n\n while (true) {\n var count1 = 0;\n var count2 = 0;\n var exit = false;\n\n do {\n if (compare(tmp[cursor2], array[cursor1]) < 0) {\n array[dest--] = array[cursor1--];\n count1++;\n count2 = 0;\n if (--length1 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest--] = tmp[cursor2--];\n count2++;\n count1 = 0;\n if (--length2 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n\n if (exit) {\n break;\n }\n\n do {\n count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n\n if (count1 !== 0) {\n dest -= count1;\n cursor1 -= count1;\n length1 -= count1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = count1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n if (length1 === 0) {\n exit = true;\n break;\n }\n }\n\n array[dest--] = tmp[cursor2--];\n\n if (--length2 === 1) {\n exit = true;\n break;\n }\n\n count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n\n if (count2 !== 0) {\n dest -= count2;\n cursor2 -= count2;\n length2 -= count2;\n customDest = dest + 1;\n customCursor = cursor2 + 1;\n\n for (i = 0; i < count2; i++) {\n array[customDest + i] = tmp[customCursor + i];\n }\n\n if (length2 <= 1) {\n exit = true;\n break;\n }\n }\n\n array[dest--] = array[cursor1--];\n\n if (--length1 === 0) {\n exit = true;\n break;\n }\n\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n if (exit) {\n break;\n }\n\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n\n _minGallop += 2;\n }\n\n minGallop = _minGallop;\n\n if (minGallop < 1) {\n minGallop = 1;\n }\n\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n array[dest] = tmp[cursor2];\n }\n else if (length2 === 0) {\n throw new Error();\n // throw new Error('mergeHigh preconditions were not respected');\n }\n else {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n }\n }\n\n return {\n mergeRuns,\n forceMergeRuns,\n pushRun\n };\n}\n\nexport default function sort(\n array: T[],\n compare: CompareFunc,\n lo?: number, hi?: number\n) {\n if (!lo) {\n lo = 0;\n }\n if (!hi) {\n hi = array.length;\n }\n\n var remaining = hi - lo;\n\n if (remaining < 2) {\n return;\n }\n\n var runLength = 0;\n\n if (remaining < DEFAULT_MIN_MERGE) {\n runLength = makeAscendingRun(array, lo, hi, compare);\n binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n return;\n }\n\n var ts = TimSort(array, compare);\n\n var minRun = minRunLength(remaining);\n\n do {\n runLength = makeAscendingRun(array, lo, hi, compare);\n if (runLength < minRun) {\n var force = remaining;\n if (force > minRun) {\n force = minRun;\n }\n\n binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n runLength = force;\n }\n\n ts.pushRun(lo, runLength);\n ts.mergeRuns();\n\n remaining -= runLength;\n lo += runLength;\n } while (remaining !== 0);\n\n ts.forceMergeRuns();\n}\n", "// Bit masks to check which parts of element needs to be updated.\nexport const REDARAW_BIT = 1;\nexport const STYLE_CHANGED_BIT = 2;\nexport const SHAPE_CHANGED_BIT = 4;\n", "import * as util from './core/util';\nimport env from './core/env';\nimport Group, { GroupLike } from './graphic/Group';\nimport Element from './Element';\n\n// Use timsort because in most case elements are partially sorted\n// https://jsfiddle.net/pissang/jr4x7mdm/8/\nimport timsort from './core/timsort';\nimport Displayable from './graphic/Displayable';\nimport Path from './graphic/Path';\nimport { REDARAW_BIT } from './graphic/constants';\n\nlet invalidZErrorLogged = false;\nfunction logInvalidZError() {\n if (invalidZErrorLogged) {\n return;\n }\n invalidZErrorLogged = true;\n console.warn('z / z2 / zlevel of displayable is invalid, which may cause unexpected errors');\n}\n\nfunction shapeCompareFunc(a: Displayable, b: Displayable) {\n if (a.zlevel === b.zlevel) {\n if (a.z === b.z) {\n // if (a.z2 === b.z2) {\n // // FIXME Slow has renderidx compare\n // // http://stackoverflow.com/questions/20883421/sorting-in-javascript-should-every-compare-function-have-a-return-0-statement\n // // https://github.com/v8/v8/blob/47cce544a31ed5577ffe2963f67acb4144ee0232/src/js/array.js#L1012\n // return a.__renderidx - b.__renderidx;\n // }\n return a.z2 - b.z2;\n }\n return a.z - b.z;\n }\n return a.zlevel - b.zlevel;\n}\n\nexport default class Storage {\n\n private _roots: Element[] = []\n\n private _displayList: Displayable[] = []\n\n private _displayListLen = 0\n\n traverse(\n cb: (this: T, el: Element) => void,\n context?: T\n ) {\n for (let i = 0; i < this._roots.length; i++) {\n this._roots[i].traverse(cb, context);\n }\n }\n\n /**\n * get a list of elements to be rendered\n *\n * @param {boolean} update whether to update elements before return\n * @param {DisplayParams} params options\n * @return {Displayable[]} a list of elements\n */\n getDisplayList(update?: boolean, includeIgnore?: boolean): Displayable[] {\n includeIgnore = includeIgnore || false;\n const displayList = this._displayList;\n // If displaylist is not created yet. Update force\n if (update || !displayList.length) {\n this.updateDisplayList(includeIgnore);\n }\n return displayList;\n }\n\n /**\n * \u66F4\u65B0\u56FE\u5F62\u7684\u7ED8\u5236\u961F\u5217\u3002\n * \u6BCF\u6B21\u7ED8\u5236\u524D\u90FD\u4F1A\u8C03\u7528\uFF0C\u8BE5\u65B9\u6CD5\u4F1A\u5148\u6DF1\u5EA6\u4F18\u5148\u904D\u5386\u6574\u4E2A\u6811\uFF0C\u66F4\u65B0\u6240\u6709Group\u548CShape\u7684\u53D8\u6362\u5E76\u4E14\u628A\u6240\u6709\u53EF\u89C1\u7684Shape\u4FDD\u5B58\u5230\u6570\u7EC4\u4E2D\uFF0C\n * \u6700\u540E\u6839\u636E\u7ED8\u5236\u7684\u4F18\u5148\u7EA7\uFF08zlevel > z > \u63D2\u5165\u987A\u5E8F\uFF09\u6392\u5E8F\u5F97\u5230\u7ED8\u5236\u961F\u5217\n */\n updateDisplayList(includeIgnore?: boolean) {\n this._displayListLen = 0;\n\n const roots = this._roots;\n const displayList = this._displayList;\n for (let i = 0, len = roots.length; i < len; i++) {\n this._updateAndAddDisplayable(roots[i], null, includeIgnore);\n }\n\n displayList.length = this._displayListLen;\n\n env.canvasSupported && timsort(displayList, shapeCompareFunc);\n }\n\n private _updateAndAddDisplayable(\n el: Element,\n clipPaths: Path[],\n includeIgnore?: boolean\n ) {\n if (el.ignore && !includeIgnore) {\n return;\n }\n\n el.beforeUpdate();\n el.update();\n el.afterUpdate();\n\n const userSetClipPath = el.getClipPath();\n\n if (el.ignoreClip) {\n clipPaths = null;\n }\n else if (userSetClipPath) {\n\n // FIXME \u6548\u7387\u5F71\u54CD\n if (clipPaths) {\n clipPaths = clipPaths.slice();\n }\n else {\n clipPaths = [];\n }\n\n let currentClipPath = userSetClipPath;\n let parentClipPath = el;\n // Recursively add clip path\n while (currentClipPath) {\n // clipPath \u7684\u53D8\u6362\u662F\u57FA\u4E8E\u4F7F\u7528\u8FD9\u4E2A clipPath \u7684\u5143\u7D20\n // TODO: parent should be group type.\n currentClipPath.parent = parentClipPath as Group;\n currentClipPath.updateTransform();\n\n clipPaths.push(currentClipPath);\n\n parentClipPath = currentClipPath;\n currentClipPath = currentClipPath.getClipPath();\n }\n }\n\n // ZRText and Group and combining morphing Path may use children\n if ((el as GroupLike).childrenRef) {\n const children = (el as GroupLike).childrenRef();\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n\n // Force to mark as dirty if group is dirty\n if (el.__dirty) {\n child.__dirty |= REDARAW_BIT;\n }\n\n this._updateAndAddDisplayable(child, clipPaths, includeIgnore);\n }\n\n // Mark group clean here\n el.__dirty = 0;\n\n }\n else {\n const disp = el as Displayable;\n // Element is displayable\n if (clipPaths && clipPaths.length) {\n disp.__clipPaths = clipPaths;\n }\n else if (disp.__clipPaths && disp.__clipPaths.length > 0) {\n disp.__clipPaths = [];\n }\n\n // Avoid invalid z, z2, zlevel cause sorting error.\n if (isNaN(disp.z)) {\n logInvalidZError();\n disp.z = 0;\n }\n if (isNaN(disp.z2)) {\n logInvalidZError();\n disp.z2 = 0;\n }\n if (isNaN(disp.zlevel)) {\n logInvalidZError();\n disp.zlevel = 0;\n }\n\n this._displayList[this._displayListLen++] = disp;\n }\n\n // Add decal\n const decalEl = (el as Path).getDecalElement && (el as Path).getDecalElement();\n if (decalEl) {\n this._updateAndAddDisplayable(decalEl, clipPaths, includeIgnore);\n }\n\n // Add attached text element and guide line.\n const textGuide = el.getTextGuideLine();\n if (textGuide) {\n this._updateAndAddDisplayable(textGuide, clipPaths, includeIgnore);\n }\n\n const textEl = el.getTextContent();\n if (textEl) {\n this._updateAndAddDisplayable(textEl, clipPaths, includeIgnore);\n }\n }\n\n /**\n * \u6DFB\u52A0\u56FE\u5F62(Displayable)\u6216\u8005\u7EC4(Group)\u5230\u6839\u8282\u70B9\n */\n addRoot(el: Element) {\n if (el.__zr && el.__zr.storage === this) {\n return;\n }\n\n this._roots.push(el);\n }\n\n /**\n * \u5220\u9664\u6307\u5B9A\u7684\u56FE\u5F62(Displayable)\u6216\u8005\u7EC4(Group)\n * @param el\n */\n delRoot(el: Element | Element[]) {\n\n if (el instanceof Array) {\n for (let i = 0, l = el.length; i < l; i++) {\n this.delRoot(el[i]);\n }\n return;\n }\n\n const idx = util.indexOf(this._roots, el);\n if (idx >= 0) {\n this._roots.splice(idx, 1);\n }\n }\n\n delAllRoots() {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n\n return;\n }\n\n getRoots() {\n return this._roots;\n }\n\n /**\n * \u6E05\u7A7A\u5E76\u4E14\u91CA\u653EStorage\n */\n dispose() {\n this._displayList = null;\n this._roots = null;\n }\n\n displayableSortFunc = shapeCompareFunc\n}", "type RequestAnimationFrameType = typeof window.requestAnimationFrame\n\nlet requestAnimationFrame: RequestAnimationFrameType;\n\nrequestAnimationFrame = (\n\ttypeof window !== 'undefined'\n\t\t&& (\n\t\t\t(window.requestAnimationFrame && window.requestAnimationFrame.bind(window))\n\t\t\t// https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809\n\t\t\t|| ((window as any).msRequestAnimationFrame && (window as any).msRequestAnimationFrame.bind(window))\n\t\t\t|| (window as any).mozRequestAnimationFrame\n\t\t\t|| window.webkitRequestAnimationFrame\n\t\t)\n) || function (func: Parameters[0]): number {\n\treturn setTimeout(func, 16) as any;\n};\n\nexport default requestAnimationFrame;\n", "/**\n * \u7F13\u52A8\u4EE3\u7801\u6765\u81EA https://github.com/sole/tween.js/blob/master/src/Tween.js\n * @see http://sole.github.io/tween.js/examples/03_graphs.html\n * @exports zrender/animation/easing\n */\n\ntype easingFunc = (percent: number) => number;\n\nexport type AnimationEasing = keyof typeof easing | easingFunc | 'spline';\n\nconst easing = {\n /**\n * @param {number} k\n * @return {number}\n */\n linear(k: number) {\n return k;\n },\n\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticIn(k: number) {\n return k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticOut(k: number) {\n return k * (2 - k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k;\n }\n return -0.5 * (--k * (k - 2) - 1);\n },\n\n // \u4E09\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^3\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n cubicIn(k: number) {\n return k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n cubicOut(k: number) {\n return --k * k * k + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n cubicInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k + 2);\n },\n\n // \u56DB\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^4\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n quarticIn(k: number) {\n return k * k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quarticOut(k: number) {\n return 1 - (--k * k * k * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quarticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k;\n }\n return -0.5 * ((k -= 2) * k * k * k - 2);\n },\n\n // \u4E94\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^5\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n quinticIn(k: number) {\n return k * k * k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quinticOut(k: number) {\n return --k * k * k * k * k + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quinticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k * k * k + 2);\n },\n\n // \u6B63\u5F26\u66F2\u7EBF\u7684\u7F13\u52A8\uFF08sin(t)\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalIn(k: number) {\n return 1 - Math.cos(k * Math.PI / 2);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalOut(k: number) {\n return Math.sin(k * Math.PI / 2);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalInOut(k: number) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n },\n\n // \u6307\u6570\u66F2\u7EBF\u7684\u7F13\u52A8\uFF082^t\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialIn(k: number) {\n return k === 0 ? 0 : Math.pow(1024, k - 1);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialOut(k: number) {\n return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialInOut(k: number) {\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if ((k *= 2) < 1) {\n return 0.5 * Math.pow(1024, k - 1);\n }\n return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);\n },\n\n // \u5706\u5F62\u66F2\u7EBF\u7684\u7F13\u52A8\uFF08sqrt(1-t^2)\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n circularIn(k: number) {\n return 1 - Math.sqrt(1 - k * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n circularOut(k: number) {\n return Math.sqrt(1 - (--k * k));\n },\n /**\n * @param {number} k\n * @return {number}\n */\n circularInOut(k: number) {\n if ((k *= 2) < 1) {\n return -0.5 * (Math.sqrt(1 - k * k) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);\n },\n\n // \u521B\u5EFA\u7C7B\u4F3C\u4E8E\u5F39\u7C27\u5728\u505C\u6B62\u524D\u6765\u56DE\u632F\u8361\u7684\u52A8\u753B\n /**\n * @param {number} k\n * @return {number}\n */\n elasticIn(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return -(a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n },\n /**\n * @param {number} k\n * @return {number}\n */\n elasticOut(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return (a * Math.pow(2, -10 * k)\n * Math.sin((k - s) * (2 * Math.PI) / p) + 1);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n elasticInOut(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n if ((k *= 2) < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n }\n return a * Math.pow(2, -10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;\n\n },\n\n // \u5728\u67D0\u4E00\u52A8\u753B\u5F00\u59CB\u6CBF\u6307\u793A\u7684\u8DEF\u5F84\u8FDB\u884C\u52A8\u753B\u5904\u7406\u524D\u7A0D\u7A0D\u6536\u56DE\u8BE5\u52A8\u753B\u7684\u79FB\u52A8\n /**\n * @param {number} k\n * @return {number}\n */\n backIn(k: number) {\n let s = 1.70158;\n return k * k * ((s + 1) * k - s);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n backOut(k: number) {\n let s = 1.70158;\n return --k * k * ((s + 1) * k + s) + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n backInOut(k: number) {\n let s = 1.70158 * 1.525;\n if ((k *= 2) < 1) {\n return 0.5 * (k * k * ((s + 1) * k - s));\n }\n return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);\n },\n\n // \u521B\u5EFA\u5F39\u8DF3\u6548\u679C\n /**\n * @param {number} k\n * @return {number}\n */\n bounceIn(k: number) {\n return 1 - easing.bounceOut(1 - k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n bounceOut(k: number) {\n if (k < (1 / 2.75)) {\n return 7.5625 * k * k;\n }\n else if (k < (2 / 2.75)) {\n return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;\n }\n else if (k < (2.5 / 2.75)) {\n return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;\n }\n else {\n return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;\n }\n },\n /**\n * @param {number} k\n * @return {number}\n */\n bounceInOut(k: number) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n }\n};\n\nexport default easing;", "/**\n * \u52A8\u753B\u4E3B\u63A7\u5236\u5668\n * @config target \u52A8\u753B\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u662F\u6570\u7EC4\uFF0C\u5982\u679C\u662F\u6570\u7EC4\u7684\u8BDD\u4F1A\u6279\u91CF\u5206\u53D1onframe\u7B49\u4E8B\u4EF6\n * @config life(1000) \u52A8\u753B\u65F6\u957F\n * @config delay(0) \u52A8\u753B\u5EF6\u8FDF\u65F6\u95F4\n * @config loop(true)\n * @config gap(0) \u5FAA\u73AF\u7684\u95F4\u9694\u65F6\u95F4\n * @config onframe\n * @config easing(optional)\n * @config ondestroy(optional)\n * @config onrestart(optional)\n *\n * TODO pause\n */\n\nimport easingFuncs, {AnimationEasing} from './easing';\nimport type Animation from './Animation';\n\ntype OnframeCallback = (percent: number) => void;\ntype ondestroyCallback = () => void\ntype onrestartCallback = () => void\n\nexport type DeferredEventTypes = 'destroy' | 'restart'\ntype DeferredEventKeys = 'ondestroy' | 'onrestart'\n\nexport interface ClipProps {\n life?: number\n delay?: number\n loop?: boolean\n gap?: number\n easing?: AnimationEasing\n\n onframe?: OnframeCallback\n ondestroy?: ondestroyCallback\n onrestart?: onrestartCallback\n}\n\nexport default class Clip {\n\n // \u751F\u547D\u5468\u671F\n private _life: number\n // \u5EF6\u65F6\n private _delay: number\n\n private _initialized: boolean = false\n // \u5F00\u59CB\u65F6\u95F4\n private _startTime = 0 // \u5F00\u59CB\u65F6\u95F4\u5355\u4F4D\u6BEB\u79D2\n\n private _pausedTime = 0\n private _paused = false\n\n animation: Animation\n\n loop: boolean\n gap: number\n easing: AnimationEasing\n\n // For linked list. Readonly\n next: Clip\n prev: Clip\n\n onframe: OnframeCallback\n ondestroy: ondestroyCallback\n onrestart: onrestartCallback\n\n constructor(opts: ClipProps) {\n\n this._life = opts.life || 1000;\n\n this._delay = opts.delay || 0;\n\n // this._startTime = new Date().getTime() + this._delay;\n\n // \u662F\u5426\u5FAA\u73AF\n this.loop = opts.loop == null ? false : opts.loop;\n\n this.gap = opts.gap || 0;\n\n this.easing = opts.easing || 'linear';\n\n this.onframe = opts.onframe;\n this.ondestroy = opts.ondestroy;\n this.onrestart = opts.onrestart;\n }\n\n step(globalTime: number, deltaTime: number): boolean {\n // Set startTime on first step, or _startTime may has milleseconds different between clips\n // PENDING\n if (!this._initialized) {\n this._startTime = globalTime + this._delay;\n this._initialized = true;\n }\n\n if (this._paused) {\n this._pausedTime += deltaTime;\n return;\n }\n\n let percent = (globalTime - this._startTime - this._pausedTime) / this._life;\n\n // PENDING: Not begin yet. Still run the loop.\n // In the case callback needs to be invoked.\n // Or want to update to the begin state at next frame when `setToFinal` and `delay` are both used.\n // To avoid the unexpected blink.\n if (percent < 0) {\n percent = 0;\n }\n\n percent = Math.min(percent, 1);\n\n const easing = this.easing;\n const easingFunc = typeof easing === 'string'\n ? easingFuncs[easing as keyof typeof easingFuncs] : easing;\n const schedule = typeof easingFunc === 'function'\n ? easingFunc(percent)\n : percent;\n\n this.onframe && this.onframe(schedule);\n\n // \u7ED3\u675F\n if (percent === 1) {\n if (this.loop) {\n this._restart(globalTime);\n this.onrestart && this.onrestart();\n }\n else {\n return true;\n }\n }\n\n return false;\n }\n\n private _restart(globalTime: number) {\n const remainder = (globalTime - this._startTime - this._pausedTime) % this._life;\n this._startTime = globalTime - remainder + this.gap;\n this._pausedTime = 0;\n }\n\n pause() {\n this._paused = true;\n }\n\n resume() {\n this._paused = false;\n }\n}", "import LRU from '../core/LRU';\n\nconst kCSSColorTable = {\n 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],\n 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],\n 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],\n 'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1],\n 'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1],\n 'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1],\n 'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1],\n 'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1],\n 'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1],\n 'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1],\n 'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1],\n 'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1],\n 'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1],\n 'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1],\n 'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1],\n 'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1],\n 'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1],\n 'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1],\n 'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1],\n 'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1],\n 'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1],\n 'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1],\n 'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1],\n 'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1],\n 'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1],\n 'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1],\n 'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1],\n 'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1],\n 'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1],\n 'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1],\n 'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1],\n 'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1],\n 'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1],\n 'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1],\n 'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1],\n 'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1],\n 'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1],\n 'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1],\n 'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1],\n 'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1],\n 'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1],\n 'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1],\n 'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1],\n 'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1],\n 'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1],\n 'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1],\n 'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1],\n 'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1],\n 'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1],\n 'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1],\n 'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1],\n 'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1],\n 'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1],\n 'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1],\n 'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1],\n 'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1],\n 'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1],\n 'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1],\n 'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1],\n 'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1],\n 'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1],\n 'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1],\n 'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1],\n 'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1],\n 'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1],\n 'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1],\n 'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1],\n 'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1],\n 'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1],\n 'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1],\n 'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1],\n 'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1],\n 'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1],\n 'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1]\n};\n\nfunction clampCssByte(i: number): number { // Clamp to integer 0 .. 255.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\n\nfunction clampCssAngle(i: number): number { // Clamp to integer 0 .. 360.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i < 0 ? 0 : i > 360 ? 360 : i;\n}\n\nfunction clampCssFloat(f: number): number { // Clamp to float 0.0 .. 1.0.\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\n\nfunction parseCssInt(val: string | number): number { // int or percentage.\n let str = val as string;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssByte(parseFloat(str) / 100 * 255);\n }\n return clampCssByte(parseInt(str, 10));\n}\n\nfunction parseCssFloat(val: string | number): number { // float or percentage.\n let str = val as string;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssFloat(parseFloat(str) / 100);\n }\n return clampCssFloat(parseFloat(str));\n}\n\nfunction cssHueToRgb(m1: number, m2: number, h: number): number {\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n\n if (h * 6 < 1) {\n return m1 + (m2 - m1) * h * 6;\n }\n if (h * 2 < 1) {\n return m2;\n }\n if (h * 3 < 2) {\n return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n }\n return m1;\n}\n\nfunction lerpNumber(a: number, b: number, p: number): number {\n return a + (b - a) * p;\n}\n\nfunction setRgba(out: number[], r: number, g: number, b: number, a: number): number[] {\n out[0] = r;\n out[1] = g;\n out[2] = b;\n out[3] = a;\n return out;\n}\nfunction copyRgba(out: number[], a: number[]) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n return out;\n}\n\nconst colorCache = new LRU(20);\nlet lastRemovedArr: number[] = null;\n\nfunction putToCache(colorStr: string, rgbaArr: number[]) {\n // Reuse removed array\n if (lastRemovedArr) {\n copyRgba(lastRemovedArr, rgbaArr);\n }\n lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));\n}\n\nexport function parse(colorStr: string, rgbaArr?: number[]): number[] {\n if (!colorStr) {\n return;\n }\n rgbaArr = rgbaArr || [];\n\n let cached = colorCache.get(colorStr);\n if (cached) {\n return copyRgba(rgbaArr, cached);\n }\n\n // colorStr may be not string\n colorStr = colorStr + '';\n // Remove all whitespace, not compliant, but should just be more accepting.\n let str = colorStr.replace(/ /g, '').toLowerCase();\n\n // Color keywords (and transparent) lookup.\n if (str in kCSSColorTable) {\n copyRgba(rgbaArr, kCSSColorTable[str as keyof typeof kCSSColorTable]);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n\n // supports the forms #rgb, #rrggbb, #rgba, #rrggbbaa\n // #rrggbbaa(use the last pair of digits as alpha)\n // see https://drafts.csswg.org/css-color/#hex-notation\n const strLen = str.length;\n if (str.charAt(0) === '#') {\n if (strLen === 4 || strLen === 5) {\n const iv = parseInt(str.slice(1, 4), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xfff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return; // Covers NaN.\n }\n // interpret values of the form #rgb as #rrggbb and #rgba as #rrggbbaa\n setRgba(rgbaArr,\n ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),\n (iv & 0xf0) | ((iv & 0xf0) >> 4),\n (iv & 0xf) | ((iv & 0xf) << 4),\n strLen === 5 ? parseInt(str.slice(4), 16) / 0xf : 1\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n else if (strLen === 7 || strLen === 9) {\n const iv = parseInt(str.slice(1, 7), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xffffff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return; // Covers NaN.\n }\n setRgba(rgbaArr,\n (iv & 0xff0000) >> 16,\n (iv & 0xff00) >> 8,\n iv & 0xff,\n strLen === 9 ? parseInt(str.slice(7), 16) / 0xff : 1\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n\n return;\n }\n let op = str.indexOf('(');\n let ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === strLen) {\n let fname = str.substr(0, op);\n let params: (number | string)[] = str.substr(op + 1, ep - (op + 1)).split(',');\n let alpha = 1; // To allow case fallthrough.\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) {\n return params.length === 3\n // to be compatible with rgb\n ? setRgba(rgbaArr, +params[0], +params[1], +params[2], 1)\n : setRgba(rgbaArr, 0, 0, 0, 1);\n }\n alpha = parseCssFloat(params.pop() as string); // jshint ignore:line\n // Fall through.\n case 'rgb':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr,\n parseCssInt(params[0]),\n parseCssInt(params[1]),\n parseCssInt(params[2]),\n alpha\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsla':\n if (params.length !== 4) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n params[3] = parseCssFloat(params[3] as string);\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsl':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n default:\n return;\n }\n }\n\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n}\n\nfunction hsla2rgba(hsla: (number | string) [], rgba?: number[]): number[] {\n const h = (((parseFloat(hsla[0] as string) % 360) + 360) % 360) / 360; // 0 .. 1\n // NOTE(deanm): According to the CSS spec s/l should only be\n // percentages, but we don't bother and let float or percentage.\n const s = parseCssFloat(hsla[1]);\n const l = parseCssFloat(hsla[2]);\n const m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n const m1 = l * 2 - m2;\n\n rgba = rgba || [];\n setRgba(rgba,\n clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255),\n clampCssByte(cssHueToRgb(m1, m2, h) * 255),\n clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255),\n 1\n );\n\n if (hsla.length === 4) {\n rgba[3] = hsla[3] as number;\n }\n\n return rgba;\n}\n\nfunction rgba2hsla(rgba: number[]): number[] {\n if (!rgba) {\n return;\n }\n\n // RGB from 0 to 255\n const R = rgba[0] / 255;\n const G = rgba[1] / 255;\n const B = rgba[2] / 255;\n\n const vMin = Math.min(R, G, B); // Min. value of RGB\n const vMax = Math.max(R, G, B); // Max. value of RGB\n const delta = vMax - vMin; // Delta RGB value\n\n const L = (vMax + vMin) / 2;\n let H;\n let S;\n // HSL results from 0 to 1\n if (delta === 0) {\n H = 0;\n S = 0;\n }\n else {\n if (L < 0.5) {\n S = delta / (vMax + vMin);\n }\n else {\n S = delta / (2 - vMax - vMin);\n }\n\n const deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;\n const deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;\n const deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;\n\n if (R === vMax) {\n H = deltaB - deltaG;\n }\n else if (G === vMax) {\n H = (1 / 3) + deltaR - deltaB;\n }\n else if (B === vMax) {\n H = (2 / 3) + deltaG - deltaR;\n }\n\n if (H < 0) {\n H += 1;\n }\n\n if (H > 1) {\n H -= 1;\n }\n }\n\n const hsla = [H * 360, S, L];\n\n if (rgba[3] != null) {\n hsla.push(rgba[3]);\n }\n\n return hsla;\n}\n\nexport function lift(color: string, level: number) {\n const colorArr = parse(color);\n if (colorArr) {\n for (let i = 0; i < 3; i++) {\n if (level < 0) {\n colorArr[i] = colorArr[i] * (1 - level) | 0;\n }\n else {\n colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;\n }\n if (colorArr[i] > 255) {\n colorArr[i] = 255;\n }\n else if (colorArr[i] < 0) {\n colorArr[i] = 0;\n }\n }\n return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');\n }\n}\n\nexport function toHex(color: string): string {\n const colorArr = parse(color);\n if (colorArr) {\n return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);\n }\n}\n\n/**\n * Map value to color. Faster than lerp methods because color is represented by rgba array.\n * @param normalizedValue A float between 0 and 1.\n * @param colors List of rgba color array\n * @param out Mapped gba color array\n * @return will be null/undefined if input illegal.\n */\nexport function fastLerp(\n normalizedValue: number,\n colors: number[][],\n out?: number[]\n): number[] {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)\n ) {\n return;\n }\n\n out = out || [];\n\n const value = normalizedValue * (colors.length - 1);\n const leftIndex = Math.floor(value);\n const rightIndex = Math.ceil(value);\n const leftColor = colors[leftIndex];\n const rightColor = colors[rightIndex];\n const dv = value - leftIndex;\n out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));\n out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));\n out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));\n out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));\n\n return out;\n}\n\n/**\n * @deprecated\n */\nexport const fastMapToColor = fastLerp;\n\ntype LerpFullOutput = {\n color: string\n leftIndex: number\n rightIndex: number\n value: number\n}\n/**\n * @param normalizedValue A float between 0 and 1.\n * @param colors Color list.\n * @param fullOutput Default false.\n * @return Result color. If fullOutput,\n return {color: ..., leftIndex: ..., rightIndex: ..., value: ...},\n */\nexport function lerp(\n normalizedValue: number,\n colors: string[],\n fullOutput?: boolean\n): string | LerpFullOutput {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)\n ) {\n return;\n }\n\n const value = normalizedValue * (colors.length - 1);\n const leftIndex = Math.floor(value);\n const rightIndex = Math.ceil(value);\n const leftColor = parse(colors[leftIndex]);\n const rightColor = parse(colors[rightIndex]);\n const dv = value - leftIndex;\n\n const color = stringify(\n [\n clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),\n clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),\n clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),\n clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))\n ],\n 'rgba'\n );\n\n return fullOutput\n ? {\n color: color,\n leftIndex: leftIndex,\n rightIndex: rightIndex,\n value: value\n }\n : color;\n}\n\n/**\n * @deprecated\n */\nexport const mapToColor = lerp;\n\n/**\n * @param color\n * @param h 0 ~ 360, ignore when null.\n * @param s 0 ~ 1, ignore when null.\n * @param l 0 ~ 1, ignore when null.\n * @return Color string in rgba format.\n * @memberOf module:zrender/util/color\n */\nexport function modifyHSL(color: string, h?: number, s?: number, l?: number): string {\n let colorArr = parse(color);\n\n if (color) {\n colorArr = rgba2hsla(colorArr);\n h != null && (colorArr[0] = clampCssAngle(h));\n s != null && (colorArr[1] = parseCssFloat(s));\n l != null && (colorArr[2] = parseCssFloat(l));\n\n return stringify(hsla2rgba(colorArr), 'rgba');\n }\n}\n\n/**\n * @param color\n * @param alpha 0 ~ 1\n * @return Color string in rgba format.\n * @memberOf module:zrender/util/color\n */\nexport function modifyAlpha(color: string, alpha?: number): string {\n const colorArr = parse(color);\n\n if (colorArr && alpha != null) {\n colorArr[3] = clampCssFloat(alpha);\n return stringify(colorArr, 'rgba');\n }\n}\n\n/**\n * @param arrColor like [12,33,44,0.4]\n * @param type 'rgba', 'hsva', ...\n * @return Result color. (If input illegal, return undefined).\n */\nexport function stringify(arrColor: number[], type: string): string {\n if (!arrColor || !arrColor.length) {\n return;\n }\n let colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];\n if (type === 'rgba' || type === 'hsva' || type === 'hsla') {\n colorStr += ',' + arrColor[3];\n }\n return type + '(' + colorStr + ')';\n}\n\n/**\n * Calculate luminance. It will include alpha.\n */\nexport function lum(color: string, backgroundLum: number) {\n const arr = parse(color);\n return arr\n ? (0.299 * arr[0] + 0.587 * arr[1] + 0.114 * arr[2]) * arr[3] / 255\n + (1 - arr[3]) * backgroundLum // Blending with assumed white background.\n : 0;\n}\n\n/**\n * Generate a random color\n */\nexport function random(): string {\n let r = Math.round(Math.random() * 255);\n let g = Math.round(Math.random() * 255);\n let b = Math.round(Math.random() * 255);\n\n return 'rgb(' + r + ',' + g + ',' + b + ')';\n}", "import { Dictionary } from './types';\n\n// Simple LRU cache use doubly linked list\n// @module zrender/core/LRU\n\nexport class Entry {\n\n value: T\n\n key: string | number\n\n next: Entry\n\n prev: Entry\n\n constructor(val: T) {\n this.value = val;\n }\n}\n/**\n * Simple double linked list. Compared with array, it has O(1) remove operation.\n * @constructor\n */\nexport class LinkedList {\n\n head: Entry\n tail: Entry\n\n private _len = 0\n\n /**\n * Insert a new value at the tail\n */\n insert(val: T): Entry {\n const entry = new Entry(val);\n this.insertEntry(entry);\n return entry;\n }\n\n /**\n * Insert an entry at the tail\n */\n insertEntry(entry: Entry) {\n if (!this.head) {\n this.head = this.tail = entry;\n }\n else {\n this.tail.next = entry;\n entry.prev = this.tail;\n entry.next = null;\n this.tail = entry;\n }\n this._len++;\n }\n\n /**\n * Remove entry.\n */\n remove(entry: Entry) {\n const prev = entry.prev;\n const next = entry.next;\n if (prev) {\n prev.next = next;\n }\n else {\n // Is head\n this.head = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n // Is tail\n this.tail = prev;\n }\n entry.next = entry.prev = null;\n this._len--;\n }\n\n /**\n * Get length\n */\n len(): number {\n return this._len;\n }\n\n /**\n * Clear list\n */\n clear() {\n this.head = this.tail = null;\n this._len = 0;\n }\n\n}\n\n/**\n * LRU Cache\n */\nexport default class LRU {\n\n private _list = new LinkedList()\n\n private _maxSize = 10\n\n private _lastRemovedEntry: Entry\n\n private _map: Dictionary> = {}\n\n constructor(maxSize: number) {\n this._maxSize = maxSize;\n }\n\n /**\n * @return Removed value\n */\n put(key: string | number, value: T): T {\n const list = this._list;\n const map = this._map;\n let removed = null;\n if (map[key] == null) {\n const len = list.len();\n // Reuse last removed entry\n let entry = this._lastRemovedEntry;\n\n if (len >= this._maxSize && len > 0) {\n // Remove the least recently used\n const leastUsedEntry = list.head;\n list.remove(leastUsedEntry);\n delete map[leastUsedEntry.key];\n\n removed = leastUsedEntry.value;\n this._lastRemovedEntry = leastUsedEntry;\n }\n\n if (entry) {\n entry.value = value;\n }\n else {\n entry = new Entry(value);\n }\n entry.key = key;\n list.insertEntry(entry);\n map[key] = entry;\n }\n\n return removed;\n }\n\n get(key: string | number): T {\n const entry = this._map[key];\n const list = this._list;\n if (entry != null) {\n // Put the latest used entry in the tail\n if (entry !== list.tail) {\n list.remove(entry);\n list.insertEntry(entry);\n }\n\n return entry.value;\n }\n }\n\n /**\n * Clear the cache\n */\n clear() {\n this._list.clear();\n this._map = {};\n }\n\n len() {\n return this._list.len();\n }\n}", "/**\n * @module echarts/animation/Animator\n */\n\nimport Clip from './Clip';\nimport * as color from '../tool/color';\nimport {isArrayLike, keys, logError} from '../core/util';\nimport {ArrayLike, Dictionary} from '../core/types';\nimport { AnimationEasing } from './easing';\nimport Animation from './Animation';\n\ntype NumberArray = ArrayLike\ntype InterpolatableType = string | number | NumberArray | NumberArray[];\n\nconst arraySlice = Array.prototype.slice;\n\nexport function interpolateNumber(p0: number, p1: number, percent: number): number {\n return (p1 - p0) * percent + p0;\n}\n\nexport function step(p0: any, p1: any, percent: number): any {\n return percent > 0.5 ? p1 : p0;\n}\n\nexport function interpolate1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n percent: number\n) {\n // TODO Handling different length TypedArray\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = interpolateNumber(p0[i], p1[i], percent);\n }\n}\n\nexport function interpolate2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n percent: number\n) {\n const len = p0.length;\n // TODO differnt length on each item?\n const len2 = len && p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = interpolateNumber(p0[i][j], p1[i][j], percent);\n }\n }\n}\n\nfunction add1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n sign: 1 | -1\n) {\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = p0[i] + p1[i] * sign;\n }\n return out;\n}\n\nfunction add2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n sign: 1 | -1\n) {\n const len = p0.length;\n const len2 = len && p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = p0[i][j] + p1[i][j] * sign;\n }\n }\n return out;\n}\n// arr0 is source array, arr1 is target array.\n// Do some preprocess to avoid error happened when interpolating from arr0 to arr1\nfunction fillArray(\n val0: NumberArray | NumberArray[],\n val1: NumberArray | NumberArray[],\n arrDim: number\n) {\n // TODO Handling different length TypedArray\n let arr0 = val0 as (number | number[])[];\n let arr1 = val1 as (number | number[])[];\n if (!arr0.push || !arr1.push) {\n return;\n }\n const arr0Len = arr0.length;\n const arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n // FIXME Not work for TypedArray\n const isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n // Cut the previous\n arr0.length = arr1Len;\n }\n else {\n // Fill the previous\n for (let i = arr0Len; i < arr1Len; i++) {\n arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n }\n }\n }\n // Handling NaN value\n const len2 = arr0[0] && (arr0[0] as number[]).length;\n for (let i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i] as number)) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (let j = 0; j < len2; j++) {\n if (isNaN((arr0 as number[][])[i][j])) {\n (arr0 as number[][])[i][j] = (arr1 as number[][])[i][j];\n }\n }\n }\n }\n}\n\nfunction is1DArraySame(arr0: NumberArray, arr1: NumberArray) {\n const len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (arr0[i] !== arr1[i]) {\n return false;\n }\n }\n return true;\n}\n\n\n/**\n * Catmull Rom interpolate number\n */\nfunction catmullRomInterpolate(\n p0: number, p1: number, p2: number, p3: number, t: number, t2: number, t3: number\n) {\n const v0 = (p2 - p0) * 0.5;\n const v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\n/**\n * Catmull Rom interpolate 1D array\n */\nfunction catmullRomInterpolate1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n p2: NumberArray,\n p3: NumberArray,\n t: number,\n t2: number,\n t3: number\n) {\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = catmullRomInterpolate(\n p0[i], p1[i], p2[i], p3[i], t, t2, t3\n );\n }\n}\n\n/**\n * Catmull Rom interpolate 2D array\n */\nfunction catmullRomInterpolate2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n p2: NumberArray[],\n p3: NumberArray[],\n t: number,\n t2: number,\n t3: number\n) {\n const len = p0.length;\n const len2 = p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[1] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = catmullRomInterpolate(\n p0[i][j], p1[i][j], p2[i][j], p3[i][j],\n t, t2, t3\n );\n }\n }\n}\n\n\nexport function cloneValue(value: InterpolatableType) {\n if (isArrayLike(value)) {\n const len = value.length;\n if (isArrayLike(value[0])) {\n const ret = [];\n for (let i = 0; i < len; i++) {\n ret.push(arraySlice.call(value[i]));\n }\n return ret;\n }\n\n return arraySlice.call(value);\n }\n\n return value;\n}\n\nfunction rgba2String(rgba: number[]): string {\n rgba[0] = Math.floor(rgba[0]);\n rgba[1] = Math.floor(rgba[1]);\n rgba[2] = Math.floor(rgba[2]);\n\n return 'rgba(' + rgba.join(',') + ')';\n}\n\nfunction guessArrayDim(value: ArrayLike): number {\n return isArrayLike(value && (value as ArrayLike)[0]) ? 2 : 1;\n}\n\ntype Keyframe = {\n time: number\n value: unknown\n percent: number\n\n additiveValue?: unknown\n}\n\nlet tmpRgba: number[] = [0, 0, 0, 0];\nclass Track {\n\n keyframes: Keyframe[] = []\n maxTime: number = 0\n\n propName: string\n\n /**\n * If use spline interpolate\n */\n useSpline: boolean\n\n // Larger than 0 if value is array\n arrDim: number = 0\n isValueColor: boolean\n\n interpolable: boolean = true\n\n private _finished: boolean\n\n private _needsSort: boolean = false\n\n private _isAllValueEqual = true\n\n private _additiveTrack: Track\n // Temporal storage for interpolated additive value.\n private _additiveValue: unknown\n\n // Info for run\n private _lastFrame = 0\n private _lastFramePercent = 0\n\n constructor(propName: string) {\n this.propName = propName;\n }\n\n isFinished() {\n return this._finished;\n }\n\n setFinished() {\n this._finished = true;\n // Also set additive track to finished.\n // Make sure the final value stopped on the latest track\n if (this._additiveTrack) {\n this._additiveTrack.setFinished();\n }\n }\n\n needsAnimate() {\n return !this._isAllValueEqual\n && this.keyframes.length >= 2\n && this.interpolable\n && this.maxTime > 0;\n }\n\n getAdditiveTrack() {\n return this._additiveTrack;\n }\n\n addKeyframe(time: number, value: unknown) {\n if (time >= this.maxTime) {\n this.maxTime = time;\n }\n else {\n this._needsSort = true;\n }\n\n let keyframes = this.keyframes;\n\n let len = keyframes.length;\n\n if (this.interpolable) {\n // Handling values only if it's possible to be interpolated.\n if (isArrayLike(value)) {\n let arrayDim = guessArrayDim(value);\n if (len > 0 && this.arrDim !== arrayDim) { // Two values has differnt dimension.\n this.interpolable = false;\n return;\n }\n // Not a number array.\n if (arrayDim === 1 && typeof value[0] !== 'number'\n || arrayDim === 2 && typeof value[0][0] !== 'number') {\n this.interpolable = false;\n return;\n }\n if (len > 0) {\n let lastFrame = keyframes[len - 1];\n\n // For performance consideration. only check 1d array\n if (this._isAllValueEqual) {\n if (arrayDim === 1) {\n if (!is1DArraySame(value, lastFrame.value as number[])) {\n this._isAllValueEqual = false;\n }\n }\n else {\n this._isAllValueEqual = false;\n }\n }\n }\n this.arrDim = arrayDim;\n }\n else {\n if (this.arrDim > 0) { // Previous value is array.\n this.interpolable = false;\n return;\n }\n\n if (typeof value === 'string') {\n const colorArray = color.parse(value);\n if (colorArray) {\n value = colorArray;\n this.isValueColor = true;\n }\n else {\n this.interpolable = false;\n }\n }\n else if (typeof value !== 'number' || isNaN(value)) {\n this.interpolable = false;\n return;\n }\n\n if (this._isAllValueEqual && len > 0) {\n let lastFrame = keyframes[len - 1];\n if (this.isValueColor && !is1DArraySame(lastFrame.value as number[], value as number[])) {\n this._isAllValueEqual = false;\n }\n else if (lastFrame.value !== value) {\n this._isAllValueEqual = false;\n }\n }\n }\n }\n\n const kf = {\n time,\n value,\n percent: 0\n };\n // Not check if value equal here.\n this.keyframes.push(kf);\n return kf;\n }\n\n prepare(additiveTrack?: Track) {\n let kfs = this.keyframes;\n if (this._needsSort) {\n // Sort keyframe as ascending\n kfs.sort(function (a: Keyframe, b: Keyframe) {\n return a.time - b.time;\n });\n }\n\n const arrDim = this.arrDim;\n const kfsLen = kfs.length;\n const lastKf = kfs[kfsLen - 1];\n\n for (let i = 0; i < kfsLen; i++) {\n kfs[i].percent = kfs[i].time / this.maxTime;\n\n if (arrDim > 0 && i !== kfsLen - 1) {\n // Align array with target frame.\n fillArray(kfs[i].value as NumberArray, lastKf.value as NumberArray, arrDim);\n }\n }\n\n // Only apply additive animaiton on INTERPOLABLE SAME TYPE values.\n if (additiveTrack\n // If two track both will be animated and have same value format.\n && this.needsAnimate()\n && additiveTrack.needsAnimate()\n && arrDim === additiveTrack.arrDim\n && this.isValueColor === additiveTrack.isValueColor\n && !additiveTrack._finished\n ) {\n this._additiveTrack = additiveTrack;\n\n const startValue = kfs[0].value;\n // Calculate difference\n for (let i = 0; i < kfsLen; i++) {\n if (arrDim === 0) {\n if (this.isValueColor) {\n kfs[i].additiveValue\n = add1DArray([], kfs[i].value as NumberArray, startValue as NumberArray, -1);\n }\n else {\n kfs[i].additiveValue = kfs[i].value as number - (startValue as number);\n }\n }\n else if (arrDim === 1) {\n kfs[i].additiveValue = add1DArray(\n [],\n kfs[i].value as NumberArray,\n startValue as NumberArray,\n -1\n );\n }\n else if (arrDim === 2) {\n kfs[i].additiveValue = add2DArray(\n [],\n kfs[i].value as NumberArray[],\n startValue as NumberArray[],\n -1\n );\n }\n }\n }\n }\n\n step(target: any, percent: number) {\n if (this._finished) { // Track may be set to finished.\n return;\n }\n\n if (this._additiveTrack && this._additiveTrack._finished) {\n // Remove additive track if it's finished.\n this._additiveTrack = null;\n }\n const isAdditive = this._additiveTrack != null;\n const valueKey = isAdditive ? 'additiveValue' : 'value';\n\n const keyframes = this.keyframes;\n const kfsNum = this.keyframes.length;\n const propName = this.propName;\n const arrDim = this.arrDim;\n const isValueColor = this.isValueColor;\n // Find the range keyframes\n // kf1-----kf2---------current--------kf3\n // find kf2 and kf3 and do interpolation\n let frameIdx;\n // In the easing function like elasticOut, percent may less than 0\n if (percent < 0) {\n frameIdx = 0;\n }\n else if (percent < this._lastFramePercent) {\n // Start from next key\n // PENDING start from lastFrame ?\n const start = Math.min(this._lastFrame + 1, kfsNum - 1);\n for (frameIdx = start; frameIdx >= 0; frameIdx--) {\n if (keyframes[frameIdx].percent <= percent) {\n break;\n }\n }\n // PENDING really need to do this ?\n frameIdx = Math.min(frameIdx, kfsNum - 2);\n }\n else {\n for (frameIdx = this._lastFrame; frameIdx < kfsNum; frameIdx++) {\n if (keyframes[frameIdx].percent > percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx - 1, kfsNum - 2);\n }\n let nextFrame = keyframes[frameIdx + 1];\n let frame = keyframes[frameIdx];\n\n // Defensive coding.\n if (!(frame && nextFrame)) {\n return;\n }\n\n this._lastFrame = frameIdx;\n this._lastFramePercent = percent;\n\n\n const range = (nextFrame.percent - frame.percent);\n if (range === 0) {\n return;\n }\n const w = (percent - frame.percent) / range;\n\n // If value is arr\n let targetArr = isAdditive ? this._additiveValue\n : (isValueColor ? tmpRgba : target[propName]);\n\n if ((arrDim > 0 || isValueColor) && !targetArr) {\n targetArr = this._additiveValue = [];\n }\n if (this.useSpline) {\n const p1 = keyframes[frameIdx][valueKey];\n const p0 = keyframes[frameIdx === 0 ? frameIdx : frameIdx - 1][valueKey];\n const p2 = keyframes[frameIdx > kfsNum - 2 ? kfsNum - 1 : frameIdx + 1][valueKey];\n const p3 = keyframes[frameIdx > kfsNum - 3 ? kfsNum - 1 : frameIdx + 2][valueKey];\n\n if (arrDim > 0) {\n arrDim === 1\n ? catmullRomInterpolate1DArray(\n targetArr as NumberArray,\n p0 as NumberArray,\n p1 as NumberArray,\n p2 as NumberArray,\n p3 as NumberArray,\n w, w * w, w * w * w\n )\n : catmullRomInterpolate2DArray(\n targetArr as NumberArray[],\n p0 as NumberArray[], p1 as NumberArray[], p2 as NumberArray[], p3 as NumberArray[],\n w, w * w, w * w * w\n );\n }\n else if (isValueColor) {\n catmullRomInterpolate1DArray(\n targetArr,\n p0 as NumberArray, p1 as NumberArray, p2 as NumberArray, p3 as NumberArray,\n w, w * w, w * w * w\n );\n if (!isAdditive) { // Convert to string later:)\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n let value;\n if (!this.interpolable) {\n // String is step(0.5)\n // value = step(p1, p2, w);\n value = p2;\n }\n else {\n value = catmullRomInterpolate(\n p0 as number, p1 as number, p2 as number, p3 as number,\n w, w * w, w * w * w\n );\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n else {\n if (arrDim > 0) {\n arrDim === 1\n ? interpolate1DArray(\n targetArr as NumberArray,\n frame[valueKey] as NumberArray,\n nextFrame[valueKey] as NumberArray,\n w\n )\n : interpolate2DArray(\n targetArr as NumberArray[],\n frame[valueKey] as NumberArray[],\n nextFrame[valueKey] as NumberArray[],\n w\n );\n }\n else if (isValueColor) {\n interpolate1DArray(\n targetArr,\n frame[valueKey] as NumberArray,\n nextFrame[valueKey] as NumberArray,\n w\n );\n if (!isAdditive) { // Convert to string later:)\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n let value;\n if (!this.interpolable) {\n // String is step(0.5)\n value = step(frame[valueKey], nextFrame[valueKey], w);\n }\n else {\n value = interpolateNumber(frame[valueKey] as number, nextFrame[valueKey] as number, w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n\n // Add additive to target\n if (isAdditive) {\n this._addToTarget(target);\n }\n }\n\n private _addToTarget(target: any) {\n const arrDim = this.arrDim;\n const propName = this.propName;\n const additiveValue = this._additiveValue;\n\n if (arrDim === 0) {\n if (this.isValueColor) {\n // TODO reduce unnecessary parse\n color.parse(target[propName], tmpRgba);\n add1DArray(tmpRgba, tmpRgba, additiveValue as NumberArray, 1);\n target[propName] = rgba2String(tmpRgba);\n }\n else {\n // Add a difference value based on the change of previous frame.\n target[propName] = target[propName] + additiveValue;\n }\n }\n else if (arrDim === 1) {\n add1DArray(target[propName], target[propName], additiveValue as NumberArray, 1);\n }\n else if (arrDim === 2) {\n add2DArray(target[propName], target[propName], additiveValue as NumberArray[], 1);\n }\n }\n}\n\n\ntype DoneCallback = () => void;\ntype AbortCallback = () => void;\nexport type OnframeCallback = (target: T, percent: number) => void;\n\nexport type AnimationPropGetter = (target: T, key: string) => InterpolatableType;\nexport type AnimationPropSetter = (target: T, key: string, value: InterpolatableType) => void;\n\nexport default class Animator {\n\n animation?: Animation\n\n targetName?: string\n\n scope?: string\n\n __fromStateTransition?: string\n\n private _tracks: Dictionary = {}\n private _trackKeys: string[] = []\n\n private _target: T\n\n private _loop: boolean\n private _delay = 0\n private _maxTime = 0\n\n // Some status\n private _paused = false\n // 0: Not started\n // 1: Invoked started\n // 2: Has been run for at least one frame.\n private _started = 0\n\n private _additiveAnimators: Animator[]\n\n private _doneCbs: DoneCallback[]\n private _onframeCbs: OnframeCallback[]\n\n private _abortedCbs: AbortCallback[]\n\n private _clip: Clip = null\n\n constructor(target: T, loop: boolean, additiveTo?: Animator[]) {\n this._target = target;\n this._loop = loop;\n if (loop && additiveTo) {\n logError('Can\\' use additive animation on looped animation.');\n return;\n }\n this._additiveAnimators = additiveTo;\n }\n\n getTarget() {\n return this._target;\n }\n\n /**\n * Target can be changed during animation\n * For example if style is changed during state change.\n * We need to change target to the new style object.\n */\n changeTarget(target: T) {\n this._target = target;\n }\n\n /**\n * Set Animation keyframe\n * @param time \u5173\u952E\u5E27\u65F6\u95F4\uFF0C\u5355\u4F4D\u662Fms\n * @param props \u5173\u952E\u5E27\u7684\u5C5E\u6027\u503C\uFF0Ckey-value\u8868\u793A\n */\n when(time: number, props: Dictionary) {\n return this.whenWithKeys(time, props, keys(props) as string[]);\n }\n\n\n // Fast path for add keyframes of aniamteTo\n whenWithKeys(time: number, props: Dictionary, propNames: string[]) {\n const tracks = this._tracks;\n for (let i = 0; i < propNames.length; i++) {\n const propName = propNames[i];\n\n let track = tracks[propName];\n if (!track) {\n track = tracks[propName] = new Track(propName);\n\n let initialValue;\n const additiveTrack = this._getAdditiveTrack(propName);\n if (additiveTrack) {\n const lastFinalKf = additiveTrack.keyframes[additiveTrack.keyframes.length - 1];\n // Use the last state of additived animator.\n initialValue = lastFinalKf && lastFinalKf.value;\n if (additiveTrack.isValueColor && initialValue) {\n // Convert to rgba string\n initialValue = rgba2String(initialValue as number[]);\n }\n }\n else {\n initialValue = (this._target as any)[propName];\n }\n // Invalid value\n if (initialValue == null) {\n // zrLog('Invalid property ' + propName);\n continue;\n }\n // If time is 0\n // Then props is given initialize value\n // Else\n // Initialize value from current prop value\n if (time !== 0) {\n track.addKeyframe(0, cloneValue(initialValue));\n }\n\n this._trackKeys.push(propName);\n }\n // PENDING\n track.addKeyframe(time, cloneValue(props[propName]));\n }\n this._maxTime = Math.max(this._maxTime, time);\n return this;\n }\n\n pause() {\n this._clip.pause();\n this._paused = true;\n }\n\n resume() {\n this._clip.resume();\n this._paused = false;\n }\n\n isPaused(): boolean {\n return !!this._paused;\n }\n\n private _doneCallback() {\n this._setTracksFinished();\n // Clear clip\n this._clip = null;\n\n const doneList = this._doneCbs;\n if (doneList) {\n const len = doneList.length;\n for (let i = 0; i < len; i++) {\n doneList[i].call(this);\n }\n }\n }\n private _abortedCallback() {\n this._setTracksFinished();\n\n const animation = this.animation;\n const abortedList = this._abortedCbs;\n\n if (animation) {\n animation.removeClip(this._clip);\n }\n this._clip = null;\n\n if (abortedList) {\n for (let i = 0; i < abortedList.length; i++) {\n abortedList[i].call(this);\n }\n }\n }\n private _setTracksFinished() {\n const tracks = this._tracks;\n const tracksKeys = this._trackKeys;\n for (let i = 0; i < tracksKeys.length; i++) {\n tracks[tracksKeys[i]].setFinished();\n }\n }\n\n private _getAdditiveTrack(trackName: string): Track {\n let additiveTrack;\n const additiveAnimators = this._additiveAnimators;\n if (additiveAnimators) {\n for (let i = 0; i < additiveAnimators.length; i++) {\n const track = additiveAnimators[i].getTrack(trackName);\n if (track) {\n // Use the track of latest animator.\n additiveTrack = track;\n }\n }\n }\n return additiveTrack;\n }\n\n /**\n * Start the animation\n * @param easing\n * @param forceAnimate\n * @return\n */\n start(easing?: AnimationEasing, forceAnimate?: boolean) {\n if (this._started > 0) {\n return;\n }\n this._started = 1;\n\n const self = this;\n\n let tracks: Track[] = [];\n for (let i = 0; i < this._trackKeys.length; i++) {\n const propName = this._trackKeys[i];\n const track = this._tracks[propName];\n const additiveTrack = this._getAdditiveTrack(propName);\n const kfs = track.keyframes;\n track.prepare(additiveTrack);\n if (track.needsAnimate()) {\n tracks.push(track);\n }\n else if (!track.interpolable) {\n const lastKf = kfs[kfs.length - 1];\n // Set final value.\n if (lastKf) {\n (self._target as any)[track.propName] = lastKf.value;\n }\n }\n }\n // Add during callback on the last clip\n if (tracks.length || forceAnimate) {\n const clip = new Clip({\n life: this._maxTime,\n loop: this._loop,\n delay: this._delay,\n onframe(percent: number) {\n self._started = 2;\n // Remove additived animator if it's finished.\n // For the purpose of memory effeciency.\n const additiveAnimators = self._additiveAnimators;\n if (additiveAnimators) {\n let stillHasAdditiveAnimator = false;\n for (let i = 0; i < additiveAnimators.length; i++) {\n if (additiveAnimators[i]._clip) {\n stillHasAdditiveAnimator = true;\n break;\n }\n }\n if (!stillHasAdditiveAnimator) {\n self._additiveAnimators = null;\n }\n }\n\n for (let i = 0; i < tracks.length; i++) {\n // NOTE: don't cache target outside.\n // Because target may be changed.\n tracks[i].step(self._target, percent);\n }\n const onframeList = self._onframeCbs;\n if (onframeList) {\n for (let i = 0; i < onframeList.length; i++) {\n onframeList[i](self._target, percent);\n }\n }\n },\n ondestroy() {\n self._doneCallback();\n }\n });\n this._clip = clip;\n\n if (this.animation) {\n this.animation.addClip(clip);\n }\n\n if (easing && easing !== 'spline') {\n clip.easing = easing;\n }\n }\n else {\n // This optimization will help the case that in the upper application\n // the view may be refreshed frequently, where animation will be\n // called repeatly but nothing changed.\n this._doneCallback();\n }\n\n return this;\n }\n /**\n * Stop animation\n * @param {boolean} forwardToLast If move to last frame before stop\n */\n stop(forwardToLast?: boolean) {\n if (!this._clip) {\n return;\n }\n const clip = this._clip;\n if (forwardToLast) {\n // Move to last frame before stop\n clip.onframe(1);\n }\n\n this._abortedCallback();\n }\n /**\n * Set when animation delay starts\n * @param time \u5355\u4F4Dms\n */\n delay(time: number) {\n this._delay = time;\n return this;\n }\n /**\n * \u6DFB\u52A0\u52A8\u753B\u6BCF\u4E00\u5E27\u7684\u56DE\u8C03\u51FD\u6570\n * @param callback\n */\n during(cb: OnframeCallback) {\n if (cb) {\n if (!this._onframeCbs) {\n this._onframeCbs = [];\n }\n this._onframeCbs.push(cb);\n }\n return this;\n }\n /**\n * Add callback for animation end\n * @param cb\n */\n done(cb: DoneCallback) {\n if (cb) {\n if (!this._doneCbs) {\n this._doneCbs = [];\n }\n this._doneCbs.push(cb);\n }\n return this;\n }\n\n aborted(cb: AbortCallback) {\n if (cb) {\n if (!this._abortedCbs) {\n this._abortedCbs = [];\n }\n this._abortedCbs.push(cb);\n }\n return this;\n }\n\n getClip() {\n return this._clip;\n }\n\n getTrack(propName: string) {\n return this._tracks[propName];\n }\n\n /**\n * Return true if animator is not available anymore.\n */\n stopTracks(propNames: string[], forwardToLast?: boolean): boolean {\n if (!propNames.length || !this._clip) {\n return true;\n }\n const tracks = this._tracks;\n const tracksKeys = this._trackKeys;\n\n for (let i = 0; i < propNames.length; i++) {\n const track = tracks[propNames[i]];\n if (track) {\n if (forwardToLast) {\n track.step(this._target, 1);\n }\n // If the track has not been run for at least wrong frame.\n // The property may be stayed at the final state. when setToFinal is set true.\n // For example:\n // Animate x from 0 to 100, then animate to 150 immediately.\n // We want the x is translated from 0 to 150, not 100 to 150.\n else if (this._started === 1) {\n track.step(this._target, 0);\n }\n // Set track to finished\n track.setFinished();\n }\n }\n let allAborted = true;\n for (let i = 0; i < tracksKeys.length; i++) {\n if (!tracks[tracksKeys[i]].isFinished()) {\n allAborted = false;\n break;\n }\n }\n // Remove clip if all tracks has been aborted.\n if (allAborted) {\n this._abortedCallback();\n }\n\n return allAborted;\n }\n\n /**\n * Save values of final state to target.\n * It is mainly used in state mangement. When state is switching during animation.\n * We need to save final state of animation to the normal state. Not interpolated value.\n */\n saveFinalToTarget(target: T, trackKeys?: readonly string[]) {\n if (!target) { // DO nothing if target is not given.\n return;\n }\n\n trackKeys = trackKeys || this._trackKeys;\n\n for (let i = 0; i < trackKeys.length; i++) {\n const propName = trackKeys[i];\n const track = this._tracks[propName];\n if (!track || track.isFinished()) { // Ignore finished track.\n continue;\n }\n const kfs = track.keyframes;\n const lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n // TODO CLONE?\n let val: unknown = cloneValue(lastKf.value as any);\n if (track.isValueColor) {\n val = rgba2String(val as number[]);\n }\n\n (target as any)[propName] = val;\n }\n }\n }\n\n // Change final value after animator has been started.\n // NOTE: Be careful to use it.\n __changeFinalValue(finalProps: Dictionary, trackKeys?: readonly string[]) {\n trackKeys = trackKeys || keys(finalProps);\n\n for (let i = 0; i < trackKeys.length; i++) {\n const propName = trackKeys[i];\n\n const track = this._tracks[propName];\n if (!track) {\n continue;\n }\n\n const kfs = track.keyframes;\n if (kfs.length > 1) {\n // Remove the original last kf and add again.\n const lastKf = kfs.pop();\n\n track.addKeyframe(lastKf.time, finalProps[propName]);\n // Prepare again.\n track.prepare(track.getAdditiveTrack());\n }\n }\n }\n\n}", "/**\n * Animation main class, dispatch and manage all animation controllers\n *\n */\n// TODO Additive animation\n// http://iosoteric.com/additive-animations-animatewithduration-in-ios-8/\n// https://developer.apple.com/videos/wwdc2014/#236\n\nimport Eventful from '../core/Eventful';\nimport requestAnimationFrame from './requestAnimationFrame';\nimport Animator from './Animator';\nimport Clip from './Clip';\n\n\ninterface Stage {\n update?: () => void\n}\ntype OnframeCallback = (deltaTime: number) => void\n\ninterface AnimationOption {\n stage?: Stage\n onframe?: OnframeCallback\n}\n/**\n * @example\n * const animation = new Animation();\n * const obj = {\n * x: 100,\n * y: 100\n * };\n * animation.animate(node.position)\n * .when(1000, {\n * x: 500,\n * y: 500\n * })\n * .when(2000, {\n * x: 100,\n * y: 100\n * })\n * .start('spline');\n */\n\nexport default class Animation extends Eventful {\n\n stage: Stage\n\n onframe: OnframeCallback\n\n // Use linked list to store clip\n private _clipsHead: Clip\n private _clipsTail: Clip\n\n private _running: boolean = false\n\n private _time: number = 0\n private _pausedTime: number = 0\n private _pauseStart: number = 0\n\n private _paused = false;\n\n constructor(opts?: AnimationOption) {\n super();\n\n opts = opts || {};\n\n this.stage = opts.stage || {};\n\n this.onframe = opts.onframe || function () {};\n }\n\n /**\n * Add clip\n */\n addClip(clip: Clip) {\n if (clip.animation) {\n // Clip has been added\n this.removeClip(clip);\n }\n\n if (!this._clipsHead) {\n this._clipsHead = this._clipsTail = clip;\n }\n else {\n this._clipsTail.next = clip;\n clip.prev = this._clipsTail;\n clip.next = null;\n this._clipsTail = clip;\n }\n clip.animation = this;\n }\n /**\n * Add animator\n */\n addAnimator(animator: Animator) {\n animator.animation = this;\n const clip = animator.getClip();\n if (clip) {\n this.addClip(clip);\n }\n }\n /**\n * Delete animation clip\n */\n removeClip(clip: Clip) {\n if (!clip.animation) {\n return;\n }\n const prev = clip.prev;\n const next = clip.next;\n if (prev) {\n prev.next = next;\n }\n else {\n // Is head\n this._clipsHead = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n // Is tail\n this._clipsTail = prev;\n }\n clip.next = clip.prev = clip.animation = null;\n }\n\n /**\n * Delete animation clip\n */\n removeAnimator(animator: Animator) {\n const clip = animator.getClip();\n if (clip) {\n this.removeClip(clip);\n }\n animator.animation = null;\n }\n\n update(notTriggerFrameAndStageUpdate?: boolean) {\n const time = new Date().getTime() - this._pausedTime;\n const delta = time - this._time;\n let clip = this._clipsHead;\n\n while (clip) {\n // Save the nextClip before step.\n // So the loop will not been affected if the clip is removed in the callback\n const nextClip = clip.next;\n let finished = clip.step(time, delta);\n if (finished) {\n clip.ondestroy && clip.ondestroy();\n this.removeClip(clip);\n clip = nextClip;\n }\n else {\n clip = nextClip;\n }\n }\n\n this._time = time;\n\n if (!notTriggerFrameAndStageUpdate) {\n this.onframe(delta);\n\n // 'frame' should be triggered before stage, because upper application\n // depends on the sequence (e.g., echarts-stream and finish\n // event judge)\n this.trigger('frame', delta);\n\n this.stage.update && this.stage.update();\n }\n }\n\n _startLoop() {\n const self = this;\n\n this._running = true;\n\n function step() {\n if (self._running) {\n\n requestAnimationFrame(step);\n\n !self._paused && self.update();\n }\n }\n\n requestAnimationFrame(step);\n }\n\n /**\n * Start animation.\n */\n start() {\n if (this._running) {\n return;\n }\n\n this._time = new Date().getTime();\n this._pausedTime = 0;\n\n this._startLoop();\n }\n\n /**\n * Stop animation.\n */\n stop() {\n this._running = false;\n }\n\n /**\n * Pause animation.\n */\n pause() {\n if (!this._paused) {\n this._pauseStart = new Date().getTime();\n this._paused = true;\n }\n }\n\n /**\n * Resume animation.\n */\n resume() {\n if (this._paused) {\n this._pausedTime += (new Date().getTime()) - this._pauseStart;\n this._paused = false;\n }\n }\n\n /**\n * Clear animation.\n */\n clear() {\n let clip = this._clipsHead;\n\n while (clip) {\n let nextClip = clip.next;\n clip.prev = clip.next = clip.animation = null;\n clip = nextClip;\n }\n\n this._clipsHead = this._clipsTail = null;\n }\n\n /**\n * Whether animation finished.\n */\n isFinished() {\n return this._clipsHead == null;\n }\n\n /**\n * Creat animator for a target, whose props can be animated.\n */\n // TODO Gap\n animate(target: T, options: {\n loop?: boolean // Whether loop animation.\n }) {\n options = options || {};\n\n // Start animation loop\n this.start();\n\n const animator = new Animator(\n target,\n options.loop\n );\n\n this.addAnimator(animator);\n\n return animator;\n }\n}", "\n/* global document */\n\nimport {\n addEventListener,\n removeEventListener,\n normalizeEvent,\n getNativeEvent\n} from '../core/event';\nimport * as zrUtil from '../core/util';\nimport Eventful from '../core/Eventful';\nimport env from '../core/env';\nimport { Dictionary, ZRRawEvent, ZRRawMouseEvent } from '../core/types';\nimport { VectorArray } from '../core/vector';\nimport Handler from '../Handler';\n\ntype DomHandlersMap = Dictionary<(this: HandlerDomProxy, event: ZRRawEvent) => void>\n\ntype DomExtended = Node & {\n domBelongToZr: boolean\n}\n\nconst TOUCH_CLICK_DELAY = 300;\n\nconst globalEventSupported = env.domSupported;\n\n\nconst localNativeListenerNames = (function () {\n const mouseHandlerNames = [\n 'click', 'dblclick', 'mousewheel', 'wheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n ];\n const touchHandlerNames = [\n 'touchstart', 'touchend', 'touchmove'\n ];\n const pointerEventNameMap = {\n pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1\n };\n const pointerHandlerNames = zrUtil.map(mouseHandlerNames, function (name) {\n const nm = name.replace('mouse', 'pointer');\n return pointerEventNameMap.hasOwnProperty(nm) ? nm : name;\n });\n\n return {\n mouse: mouseHandlerNames,\n touch: touchHandlerNames,\n pointer: pointerHandlerNames\n };\n})();\n\nconst globalNativeListenerNames = {\n mouse: ['mousemove', 'mouseup'],\n pointer: ['pointermove', 'pointerup']\n};\n\nlet wheelEventSupported = false;\n\n\n// Although firfox has 'DOMMouseScroll' event and do not has 'mousewheel' event,\n// the 'DOMMouseScroll' event do not performe the same behavior on touch pad device\n// (like on Mac) ('DOMMouseScroll' will be triggered only if a big wheel delta).\n// So we should not use it.\n// function eventNameFix(name: string) {\n// return (name === 'mousewheel' && env.browser.firefox) ? 'DOMMouseScroll' : name;\n// }\n\nfunction isPointerFromTouch(event: ZRRawEvent) {\n const pointerType = (event as any).pointerType;\n return pointerType === 'pen' || pointerType === 'touch';\n}\n\n// function useMSGuesture(handlerProxy, event) {\n// return isPointerFromTouch(event) && !!handlerProxy._msGesture;\n// }\n\n// function onMSGestureChange(proxy, event) {\n// if (event.translationX || event.translationY) {\n// // mousemove is carried by MSGesture to reduce the sensitivity.\n// proxy.handler.dispatchToElement(event.target, 'mousemove', event);\n// }\n// if (event.scale !== 1) {\n// event.pinchX = event.offsetX;\n// event.pinchY = event.offsetY;\n// event.pinchScale = event.scale;\n// proxy.handler.dispatchToElement(event.target, 'pinch', event);\n// }\n// }\n\n/**\n * Prevent mouse event from being dispatched after Touch Events action\n * @see \n * 1. Mobile browsers dispatch mouse events 300ms after touchend.\n * 2. Chrome for Android dispatch mousedown for long-touch about 650ms\n * Result: Blocking Mouse Events for 700ms.\n *\n * @param {DOMHandlerScope} scope\n */\nfunction setTouchTimer(scope: DOMHandlerScope) {\n scope.touching = true;\n if (scope.touchTimer != null) {\n clearTimeout(scope.touchTimer);\n scope.touchTimer = null;\n }\n scope.touchTimer = setTimeout(function () {\n scope.touching = false;\n scope.touchTimer = null;\n }, 700);\n}\n\n// Mark touch, which is useful in distinguish touch and\n// mouse event in upper applicatoin.\nfunction markTouch(event: ZRRawEvent) {\n event && (event.zrByTouch = true);\n}\n\n\n// function markTriggeredFromLocal(event) {\n// event && (event.__zrIsFromLocal = true);\n// }\n\n// function isTriggeredFromLocal(instance, event) {\n// return !!(event && event.__zrIsFromLocal);\n// }\n\nfunction normalizeGlobalEvent(instance: HandlerDomProxy, event: ZRRawEvent) {\n // offsetX, offsetY still need to be calculated. They are necessary in the event\n // handlers of the upper applications. Set `true` to force calculate them.\n return normalizeEvent(\n instance.dom,\n // TODO ANY TYPE\n new FakeGlobalEvent(instance, event) as any as ZRRawEvent,\n true\n );\n}\n\n/**\n * Detect whether the given el is in `painterRoot`.\n */\nfunction isLocalEl(instance: HandlerDomProxy, el: Node) {\n let elTmp = el;\n let isLocal = false;\n while (elTmp && elTmp.nodeType !== 9\n && !(\n isLocal = (elTmp as DomExtended).domBelongToZr\n || (elTmp !== el && elTmp === instance.painterRoot)\n )\n ) {\n elTmp = elTmp.parentNode;\n }\n return isLocal;\n}\n\n/**\n * Make a fake event but not change the original event,\n * becuase the global event probably be used by other\n * listeners not belonging to zrender.\n * @class\n */\nclass FakeGlobalEvent {\n type: string\n target: HTMLElement\n currentTarget: HTMLElement\n\n pointerType: string\n clientX: number\n clientY: number\n\n constructor(instance: HandlerDomProxy, event: ZRRawEvent) {\n this.type = event.type;\n this.target = this.currentTarget = instance.dom;\n this.pointerType = (event as any).pointerType;\n // Necessray for the force calculation of zrX, zrY\n this.clientX = (event as ZRRawMouseEvent).clientX;\n this.clientY = (event as ZRRawMouseEvent).clientY;\n // Because we do not mount global listeners to touch events,\n // we do not copy `targetTouches` and `changedTouches` here.\n }\n\n // we make the default methods on the event do nothing,\n // otherwise it is dangerous. See more details in\n // [DRAG_OUTSIDE] in `Handler.js`.\n stopPropagation = zrUtil.noop\n stopImmediatePropagation = zrUtil.noop\n preventDefault = zrUtil.noop\n}\n\n\n/**\n * Local DOM Handlers\n * @this {HandlerProxy}\n */\nconst localDOMHandlers: DomHandlersMap = {\n\n mousedown(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n this.__mayPointerCapture = [event.zrX, event.zrY];\n\n this.trigger('mousedown', event);\n },\n\n mousemove(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n const downPoint = this.__mayPointerCapture;\n if (downPoint && (event.zrX !== downPoint[0] || event.zrY !== downPoint[1])) {\n this.__togglePointerCapture(true);\n }\n\n this.trigger('mousemove', event);\n },\n\n mouseup(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n this.__togglePointerCapture(false);\n\n this.trigger('mouseup', event);\n },\n\n mouseout(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n // There might be some doms created by upper layer application\n // at the same level of painter.getViewportRoot() (e.g., tooltip\n // dom created by echarts), where 'globalout' event should not\n // be triggered when mouse enters these doms. (But 'mouseout'\n // should be triggered at the original hovered element as usual).\n const element = (event as any).toElement || (event as ZRRawMouseEvent).relatedTarget;\n\n // For SVG rendering, there are SVG elements inside `this.dom`.\n // (especially in decal case). Should not to handle those \"mouseout\"..\n if (!isLocalEl(this, element)) {\n // Similarly to the browser did on `document` and touch event,\n // `globalout` will be delayed to final pointer cature release.\n if (this.__pointerCapturing) {\n event.zrEventControl = 'no_globalout';\n }\n\n this.trigger('mouseout', event);\n }\n },\n\n wheel(event: ZRRawEvent) {\n // Morden agent has supported event `wheel` instead of `mousewheel`.\n // About the polyfill of the props \"delta\", see \"arc/core/event.ts\".\n\n // Firefox only support `wheel` rather than `mousewheel`. Although firfox has been supporting\n // event `DOMMouseScroll`, it do not act the same behavior as `wheel` on touch pad device\n // like on Mac, where `DOMMouseScroll` will be triggered only if a big wheel delta occurs,\n // and it results in no chance to \"preventDefault\". So we should not use `DOMMouseScroll`.\n\n wheelEventSupported = true;\n event = normalizeEvent(this.dom, event);\n // Follow the definition of the previous version, the zrender event name is still 'mousewheel'.\n this.trigger('mousewheel', event);\n },\n\n mousewheel(event: ZRRawEvent) {\n // IE8- and some other lagacy agent do not support event `wheel`, so we still listen\n // to the legacy event `mouseevent`.\n // Typically if event `wheel` is suppored and the handler has been mounted on a\n // DOM element, the lagecy `mousewheel` event will not be triggered (Chrome and Safari).\n // But we still do this guard to avoid to duplicated handle.\n if (wheelEventSupported) {\n return;\n }\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n\n touchstart(event: ZRRawEvent) {\n // Default mouse behaviour should not be disabled here.\n // For example, page may needs to be slided.\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.__lastTouchMoment = new Date();\n\n this.handler.processGesture(event, 'start');\n\n // For consistent event listener for both touch device and mouse device,\n // we simulate \"mouseover-->mousedown\" in touch device. So we trigger\n // `mousemove` here (to trigger `mouseover` inside), and then trigger\n // `mousedown`.\n localDOMHandlers.mousemove.call(this, event);\n localDOMHandlers.mousedown.call(this, event);\n },\n\n touchmove(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.handler.processGesture(event, 'change');\n\n // Mouse move should always be triggered no matter whether\n // there is gestrue event, because mouse move and pinch may\n // be used at the same time.\n localDOMHandlers.mousemove.call(this, event);\n },\n\n touchend(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.handler.processGesture(event, 'end');\n\n localDOMHandlers.mouseup.call(this, event);\n\n // Do not trigger `mouseout` here, in spite of `mousemove`(`mouseover`) is\n // triggered in `touchstart`. This seems to be illogical, but by this mechanism,\n // we can conveniently implement \"hover style\" in both PC and touch device just\n // by listening to `mouseover` to add \"hover style\" and listening to `mouseout`\n // to remove \"hover style\" on an element, without any additional code for\n // compatibility. (`mouseout` will not be triggered in `touchend`, so \"hover\n // style\" will remain for user view)\n\n // click event should always be triggered no matter whether\n // there is gestrue event. System click can not be prevented.\n if (+new Date() - (+this.__lastTouchMoment) < TOUCH_CLICK_DELAY) {\n localDOMHandlers.click.call(this, event);\n }\n },\n\n pointerdown(event: ZRRawEvent) {\n localDOMHandlers.mousedown.call(this, event);\n\n // if (useMSGuesture(this, event)) {\n // this._msGesture.addPointer(event.pointerId);\n // }\n },\n\n pointermove(event: ZRRawEvent) {\n // FIXME\n // pointermove is so sensitive that it always triggered when\n // tap(click) on touch screen, which affect some judgement in\n // upper application. So, we dont support mousemove on MS touch\n // device yet.\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mousemove.call(this, event);\n }\n },\n\n pointerup(event: ZRRawEvent) {\n localDOMHandlers.mouseup.call(this, event);\n },\n\n pointerout(event: ZRRawEvent) {\n // pointerout will be triggered when tap on touch screen\n // (IE11+/Edge on MS Surface) after click event triggered,\n // which is inconsistent with the mousout behavior we defined\n // in touchend. So we unify them.\n // (check localDOMHandlers.touchend for detailed explanation)\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mouseout.call(this, event);\n }\n }\n\n};\n\n/**\n * Othere DOM UI Event handlers for zr dom.\n * @this {HandlerProxy}\n */\nzrUtil.each(['click', 'dblclick', 'contextmenu'], function (name) {\n localDOMHandlers[name] = function (event) {\n event = normalizeEvent(this.dom, event);\n this.trigger(name, event);\n };\n});\n\n\n/**\n * DOM UI Event handlers for global page.\n *\n * [Caution]:\n * those handlers should both support in capture phase and bubble phase!\n */\nconst globalDOMHandlers: DomHandlersMap = {\n\n pointermove: function (event: ZRRawEvent) {\n // FIXME\n // pointermove is so sensitive that it always triggered when\n // tap(click) on touch screen, which affect some judgement in\n // upper application. So, we dont support mousemove on MS touch\n // device yet.\n if (!isPointerFromTouch(event)) {\n globalDOMHandlers.mousemove.call(this, event);\n }\n },\n\n pointerup: function (event: ZRRawEvent) {\n globalDOMHandlers.mouseup.call(this, event);\n },\n\n mousemove: function (event: ZRRawEvent) {\n this.trigger('mousemove', event);\n },\n\n mouseup: function (event: ZRRawEvent) {\n const pointerCaptureReleasing = this.__pointerCapturing;\n\n this.__togglePointerCapture(false);\n\n this.trigger('mouseup', event);\n\n if (pointerCaptureReleasing) {\n event.zrEventControl = 'only_globalout';\n this.trigger('mouseout', event);\n }\n }\n\n};\n\n\nfunction mountLocalDOMEventListeners(instance: HandlerDomProxy, scope: DOMHandlerScope) {\n const domHandlers = scope.domHandlers;\n\n if (env.pointerEventsSupported) { // Only IE11+/Edge\n // 1. On devices that both enable touch and mouse (e.g., MS Surface and lenovo X240),\n // IE11+/Edge do not trigger touch event, but trigger pointer event and mouse event\n // at the same time.\n // 2. On MS Surface, it probablely only trigger mousedown but no mouseup when tap on\n // screen, which do not occurs in pointer event.\n // So we use pointer event to both detect touch gesture and mouse behavior.\n zrUtil.each(localNativeListenerNames.pointer, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n });\n });\n\n // FIXME\n // Note: MS Gesture require CSS touch-action set. But touch-action is not reliable,\n // which does not prevent defuault behavior occasionally (which may cause view port\n // zoomed in but use can not zoom it back). And event.preventDefault() does not work.\n // So we have to not to use MSGesture and not to support touchmove and pinch on MS\n // touch screen. And we only support click behavior on MS touch screen now.\n\n // MS Gesture Event is only supported on IE11+/Edge and on Windows 8+.\n // We dont support touch on IE on win7.\n // See \n // if (typeof MSGesture === 'function') {\n // (this._msGesture = new MSGesture()).target = dom; // jshint ignore:line\n // dom.addEventListener('MSGestureChange', onMSGestureChange);\n // }\n }\n else {\n if (env.touchEventsSupported) {\n zrUtil.each(localNativeListenerNames.touch, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n setTouchTimer(scope);\n });\n });\n // Handler of 'mouseout' event is needed in touch mode, which will be mounted below.\n // addEventListener(root, 'mouseout', this._mouseoutHandler);\n }\n\n // 1. Considering some devices that both enable touch and mouse event (like on MS Surface\n // and lenovo X240, @see #2350), we make mouse event be always listened, otherwise\n // mouse event can not be handle in those devices.\n // 2. On MS Surface, Chrome will trigger both touch event and mouse event. How to prevent\n // mouseevent after touch event triggered, see `setTouchTimer`.\n zrUtil.each(localNativeListenerNames.mouse, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event: ZRRawEvent) {\n event = getNativeEvent(event);\n if (!scope.touching) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n }\n });\n });\n }\n}\n\nfunction mountGlobalDOMEventListeners(instance: HandlerDomProxy, scope: DOMHandlerScope) {\n // Only IE11+/Edge. See the comment in `mountLocalDOMEventListeners`.\n if (env.pointerEventsSupported) {\n zrUtil.each(globalNativeListenerNames.pointer, mount);\n }\n // Touch event has implemented \"drag outside\" so we do not mount global listener for touch event.\n // (see https://www.w3.org/TR/touch-events/#the-touchmove-event) (see also `DRAG_OUTSIDE`).\n // We do not consider \"both-support-touch-and-mouse device\" for this feature (see the comment of\n // `mountLocalDOMEventListeners`) to avoid bugs util some requirements come.\n else if (!env.touchEventsSupported) {\n zrUtil.each(globalNativeListenerNames.mouse, mount);\n }\n\n function mount(nativeEventName: string) {\n function nativeEventListener(event: ZRRawEvent) {\n event = getNativeEvent(event);\n // See the reason in [DRAG_OUTSIDE] in `Handler.js`\n // This checking supports both `useCapture` or not.\n // PENDING: if there is performance issue in some devices,\n // we probably can not use `useCapture` and change a easier\n // to judes whether local (mark).\n if (!isLocalEl(instance, event.target as Node)) {\n event = normalizeGlobalEvent(instance, event);\n scope.domHandlers[nativeEventName].call(instance, event);\n }\n }\n mountSingleDOMEventListener(\n scope, nativeEventName, nativeEventListener,\n {capture: true} // See [DRAG_OUTSIDE] in `Handler.js`\n );\n }\n}\n\nfunction mountSingleDOMEventListener(\n scope: DOMHandlerScope,\n nativeEventName: string,\n listener: EventListener,\n opt?: boolean | AddEventListenerOptions\n) {\n scope.mounted[nativeEventName] = listener;\n scope.listenerOpts[nativeEventName] = opt;\n addEventListener(scope.domTarget, nativeEventName, listener, opt);\n}\n\nfunction unmountDOMEventListeners(scope: DOMHandlerScope) {\n const mounted = scope.mounted;\n for (let nativeEventName in mounted) {\n if (mounted.hasOwnProperty(nativeEventName)) {\n removeEventListener(\n scope.domTarget, nativeEventName, mounted[nativeEventName],\n scope.listenerOpts[nativeEventName]\n );\n }\n }\n scope.mounted = {};\n}\n\n\nclass DOMHandlerScope {\n domTarget: HTMLElement | HTMLDocument\n domHandlers: DomHandlersMap\n\n // Key: eventName, value: mounted handler funcitons.\n // Used for unmount.\n mounted: Dictionary = {};\n\n listenerOpts: Dictionary = {};\n\n touchTimer: ReturnType;\n touching = false;\n\n constructor(\n domTarget: HTMLElement | HTMLDocument,\n domHandlers: DomHandlersMap\n ) {\n this.domTarget = domTarget;\n this.domHandlers = domHandlers;\n\n }\n}\n\n\nexport default class HandlerDomProxy extends Eventful {\n\n dom: HTMLElement\n painterRoot: HTMLElement\n\n handler: Handler\n\n private _localHandlerScope: DOMHandlerScope\n private _globalHandlerScope: DOMHandlerScope\n\n __lastTouchMoment: Date\n\n // See [DRAG_OUTSIDE] in `Handler.ts`.\n __pointerCapturing = false\n // [x, y]\n __mayPointerCapture: VectorArray\n\n\n constructor(dom: HTMLElement, painterRoot: HTMLElement) {\n super();\n\n this.dom = dom;\n this.painterRoot = painterRoot;\n\n this._localHandlerScope = new DOMHandlerScope(dom, localDOMHandlers);\n\n if (globalEventSupported) {\n this._globalHandlerScope = new DOMHandlerScope(document, globalDOMHandlers);\n }\n\n mountLocalDOMEventListeners(this, this._localHandlerScope);\n }\n\n dispose() {\n unmountDOMEventListeners(this._localHandlerScope);\n if (globalEventSupported) {\n unmountDOMEventListeners(this._globalHandlerScope);\n }\n }\n\n setCursor(cursorStyle: string) {\n this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');\n }\n\n /**\n * See [DRAG_OUTSIDE] in `Handler.js`.\n * @implement\n * @param isPointerCapturing Should never be `null`/`undefined`.\n * `true`: start to capture pointer if it is not capturing.\n * `false`: end the capture if it is capturing.\n */\n __togglePointerCapture(isPointerCapturing?: boolean) {\n this.__mayPointerCapture = null;\n\n if (globalEventSupported\n && ((+this.__pointerCapturing) ^ (+isPointerCapturing))\n ) {\n this.__pointerCapturing = isPointerCapturing;\n\n const globalHandlerScope = this._globalHandlerScope;\n isPointerCapturing\n ? mountGlobalDOMEventListeners(this, globalHandlerScope)\n : unmountDOMEventListeners(globalHandlerScope);\n }\n }\n}\n\nexport interface HandlerProxyInterface extends Eventful {\n handler: Handler\n dispose: () => void\n setCursor: (cursorStyle?: string) => void\n}", "let dpr = 1;\n\n// If in browser environment\nif (typeof window !== 'undefined') {\n dpr = Math.max(window.devicePixelRatio \n \t|| (window.screen && (window.screen as any).deviceXDPI / (window.screen as any).logicalXDPI) \n \t|| 1, 1);\n}\n\n/**\n * Debug log mode:\n * 0: Do nothing, for release.\n * 1: console.error, for debug.\n */\nexport const debugMode = 0;\n\n// retina \u5C4F\u5E55\u4F18\u5316\nexport const devicePixelRatio = dpr;\n\n\n/**\n * Determine when to turn on dark mode based on the luminance of backgroundColor\n */\nexport const DARK_MODE_THRESHOLD = 0.4;\n\n/**\n * Color of default dark label.\n */\nexport const DARK_LABEL_COLOR = '#333';\n\n/**\n * Color of default light label.\n */\nexport const LIGHT_LABEL_COLOR = '#ccc';\n\n/**\n * Color of default light label.\n */\nexport const LIGHTER_LABEL_COLOR = '#eee';\n", "/**\n * 3x2\u77E9\u9635\u64CD\u4F5C\u7C7B\n * @exports zrender/tool/matrix\n */\n\n/* global Float32Array */\n\nimport {VectorArray} from './vector';\n\nexport type MatrixArray = number[]\n/**\n * Create a identity matrix.\n */\nexport function create(): MatrixArray {\n return [1, 0, 0, 1, 0, 0];\n}\n\n/**\n * \u8BBE\u7F6E\u77E9\u9635\u4E3A\u5355\u4F4D\u77E9\u9635\n */\nexport function identity(out: MatrixArray): MatrixArray {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 1;\n out[4] = 0;\n out[5] = 0;\n return out;\n}\n\n/**\n * \u590D\u5236\u77E9\u9635\n */\nexport function copy(out: MatrixArray, m: MatrixArray): MatrixArray {\n out[0] = m[0];\n out[1] = m[1];\n out[2] = m[2];\n out[3] = m[3];\n out[4] = m[4];\n out[5] = m[5];\n return out;\n}\n\n/**\n * \u77E9\u9635\u76F8\u4E58\n */\nexport function mul(out: MatrixArray, m1: MatrixArray, m2: MatrixArray): MatrixArray {\n // Consider matrix.mul(m, m2, m);\n // where out is the same as m2.\n // So use temp constiable to escape error.\n const out0 = m1[0] * m2[0] + m1[2] * m2[1];\n const out1 = m1[1] * m2[0] + m1[3] * m2[1];\n const out2 = m1[0] * m2[2] + m1[2] * m2[3];\n const out3 = m1[1] * m2[2] + m1[3] * m2[3];\n const out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];\n const out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];\n out[0] = out0;\n out[1] = out1;\n out[2] = out2;\n out[3] = out3;\n out[4] = out4;\n out[5] = out5;\n return out;\n}\n\n/**\n * \u5E73\u79FB\u53D8\u6362\n */\nexport function translate(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4] + v[0];\n out[5] = a[5] + v[1];\n return out;\n}\n\n/**\n * \u65CB\u8F6C\u53D8\u6362\n */\nexport function rotate(out: MatrixArray, a: MatrixArray, rad: number): MatrixArray {\n const aa = a[0];\n const ac = a[2];\n const atx = a[4];\n const ab = a[1];\n const ad = a[3];\n const aty = a[5];\n const st = Math.sin(rad);\n const ct = Math.cos(rad);\n\n out[0] = aa * ct + ab * st;\n out[1] = -aa * st + ab * ct;\n out[2] = ac * ct + ad * st;\n out[3] = -ac * st + ct * ad;\n out[4] = ct * atx + st * aty;\n out[5] = ct * aty - st * atx;\n return out;\n}\n\n/**\n * \u7F29\u653E\u53D8\u6362\n */\nexport function scale(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray {\n const vx = v[0];\n const vy = v[1];\n out[0] = a[0] * vx;\n out[1] = a[1] * vy;\n out[2] = a[2] * vx;\n out[3] = a[3] * vy;\n out[4] = a[4] * vx;\n out[5] = a[5] * vy;\n return out;\n}\n\n/**\n * \u6C42\u9006\u77E9\u9635\n */\nexport function invert(out: MatrixArray, a: MatrixArray): MatrixArray {\n\n const aa = a[0];\n const ac = a[2];\n const atx = a[4];\n const ab = a[1];\n const ad = a[3];\n const aty = a[5];\n\n let det = aa * ad - ab * ac;\n if (!det) {\n return null;\n }\n det = 1.0 / det;\n\n out[0] = ad * det;\n out[1] = -ab * det;\n out[2] = -ac * det;\n out[3] = aa * det;\n out[4] = (ac * aty - ad * atx) * det;\n out[5] = (ab * atx - aa * aty) * det;\n return out;\n}\n\n/**\n * Clone a new matrix.\n */\nexport function clone(a: MatrixArray): MatrixArray {\n const b = create();\n copy(b, a);\n return b;\n}", "import * as matrix from './matrix';\nimport * as vector from './vector';\n\nconst mIdentity = matrix.identity;\n\nconst EPSILON = 5e-5;\n\nfunction isNotAroundZero(val: number) {\n return val > EPSILON || val < -EPSILON;\n}\n\nconst scaleTmp: vector.VectorArray = [];\nconst tmpTransform: matrix.MatrixArray = [];\nconst originTransform = matrix.create();\nconst abs = Math.abs;\n\nclass Transformable {\n\n parent: Transformable\n\n x: number\n y: number\n\n scaleX: number\n scaleY: number\n\n skewX: number\n skewY: number\n\n rotation: number\n /**\n * Origin of scale, rotation, skew\n */\n originX: number\n originY: number\n\n /**\n * Scale ratio\n */\n globalScaleRatio: number\n\n transform: matrix.MatrixArray\n invTransform: matrix.MatrixArray\n\n /**\n * Get computed local transform\n */\n getLocalTransform(m?: matrix.MatrixArray) {\n return Transformable.getLocalTransform(this, m);\n }\n\n /**\n * Set position from array\n */\n setPosition(arr: number[]) {\n this.x = arr[0];\n this.y = arr[1];\n }\n /**\n * Set scale from array\n */\n setScale(arr: number[]) {\n this.scaleX = arr[0];\n this.scaleY = arr[1];\n }\n\n /**\n * Set skew from array\n */\n setSkew(arr: number[]) {\n this.skewX = arr[0];\n this.skewY = arr[1];\n }\n\n /**\n * Set origin from array\n */\n setOrigin(arr: number[]) {\n this.originX = arr[0];\n this.originY = arr[1];\n }\n\n /**\n * If needs to compute transform\n */\n needLocalTransform(): boolean {\n return isNotAroundZero(this.rotation)\n || isNotAroundZero(this.x)\n || isNotAroundZero(this.y)\n || isNotAroundZero(this.scaleX - 1)\n || isNotAroundZero(this.scaleY - 1);\n }\n\n /**\n * Update global transform\n */\n updateTransform() {\n const parentTransform = this.parent && this.parent.transform;\n const needLocalTransform = this.needLocalTransform();\n\n let m = this.transform;\n if (!(needLocalTransform || parentTransform)) {\n m && mIdentity(m);\n return;\n }\n\n m = m || matrix.create();\n\n if (needLocalTransform) {\n this.getLocalTransform(m);\n }\n else {\n mIdentity(m);\n }\n\n // \u5E94\u7528\u7236\u8282\u70B9\u53D8\u6362\n if (parentTransform) {\n if (needLocalTransform) {\n matrix.mul(m, parentTransform, m);\n }\n else {\n matrix.copy(m, parentTransform);\n }\n }\n // \u4FDD\u5B58\u8FD9\u4E2A\u53D8\u6362\u77E9\u9635\n this.transform = m;\n\n this._resolveGlobalScaleRatio(m);\n }\n\n private _resolveGlobalScaleRatio(m: matrix.MatrixArray) {\n const globalScaleRatio = this.globalScaleRatio;\n if (globalScaleRatio != null && globalScaleRatio !== 1) {\n this.getGlobalScale(scaleTmp);\n const relX = scaleTmp[0] < 0 ? -1 : 1;\n const relY = scaleTmp[1] < 0 ? -1 : 1;\n const sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0;\n const sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0;\n\n m[0] *= sx;\n m[1] *= sx;\n m[2] *= sy;\n m[3] *= sy;\n }\n\n this.invTransform = this.invTransform || matrix.create();\n matrix.invert(this.invTransform, m);\n }\n\n /**\n * Get computed global transform\n * NOTE: this method will force update transform on all ancestors.\n * Please be aware of the potential performance cost.\n */\n getComputedTransform() {\n let transformNode: Transformable = this;\n const ancestors: Transformable[] = [];\n while (transformNode) {\n ancestors.push(transformNode);\n transformNode = transformNode.parent;\n }\n\n // Update from topdown.\n while (transformNode = ancestors.pop()) {\n transformNode.updateTransform();\n }\n\n return this.transform;\n }\n\n setLocalTransform(m: vector.VectorArray) {\n if (!m) {\n // TODO return or set identity?\n return;\n }\n let sx = m[0] * m[0] + m[1] * m[1];\n let sy = m[2] * m[2] + m[3] * m[3];\n\n const rotation = Math.atan2(m[1], m[0]);\n\n const shearX = Math.PI / 2 + rotation - Math.atan2(m[3], m[2]);\n sy = Math.sqrt(sy) * Math.cos(shearX);\n sx = Math.sqrt(sx);\n\n this.skewX = shearX;\n this.skewY = 0;\n this.rotation = -rotation;\n\n this.x = +m[4];\n this.y = +m[5];\n this.scaleX = sx;\n this.scaleY = sy;\n\n this.originX = 0;\n this.originY = 0;\n }\n /**\n * \u5206\u89E3`transform`\u77E9\u9635\u5230`position`, `rotation`, `scale`\n */\n decomposeTransform() {\n if (!this.transform) {\n return;\n }\n const parent = this.parent;\n let m = this.transform;\n if (parent && parent.transform) {\n // Get local transform and decompose them to position, scale, rotation\n matrix.mul(tmpTransform, parent.invTransform, m);\n m = tmpTransform;\n }\n const ox = this.originX;\n const oy = this.originY;\n if (ox || oy) {\n originTransform[4] = ox;\n originTransform[5] = oy;\n matrix.mul(tmpTransform, m, originTransform);\n tmpTransform[4] -= ox;\n tmpTransform[5] -= oy;\n m = tmpTransform;\n }\n\n this.setLocalTransform(m);\n }\n\n /**\n * Get global scale\n */\n getGlobalScale(out?: vector.VectorArray): vector.VectorArray {\n const m = this.transform;\n out = out || [];\n if (!m) {\n out[0] = 1;\n out[1] = 1;\n return out;\n }\n out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]);\n out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]);\n if (m[0] < 0) {\n out[0] = -out[0];\n }\n if (m[3] < 0) {\n out[1] = -out[1];\n }\n return out;\n }\n /**\n * \u53D8\u6362\u5750\u6807\u4F4D\u7F6E\u5230 shape \u7684\u5C40\u90E8\u5750\u6807\u7A7A\u95F4\n */\n transformCoordToLocal(x: number, y: number): number[] {\n const v2 = [x, y];\n const invTransform = this.invTransform;\n if (invTransform) {\n vector.applyTransform(v2, v2, invTransform);\n }\n return v2;\n }\n\n /**\n * \u53D8\u6362\u5C40\u90E8\u5750\u6807\u4F4D\u7F6E\u5230\u5168\u5C40\u5750\u6807\u7A7A\u95F4\n */\n transformCoordToGlobal(x: number, y: number): number[] {\n const v2 = [x, y];\n const transform = this.transform;\n if (transform) {\n vector.applyTransform(v2, v2, transform);\n }\n return v2;\n }\n\n\n getLineScale() {\n const m = this.transform;\n // Get the line scale.\n // Determinant of `m` means how much the area is enlarged by the\n // transformation. So its square root can be used as a scale factor\n // for width.\n return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10\n ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))\n : 1;\n }\n\n copyTransform(source: Transformable) {\n const target = this;\n\n for (let i = 0; i < TRANSFORMABLE_PROPS.length; i++) {\n const propName = TRANSFORMABLE_PROPS[i];\n target[propName] = source[propName];\n }\n }\n\n\n static getLocalTransform(target: Transformable, m?: matrix.MatrixArray): matrix.MatrixArray {\n m = m || [];\n\n const ox = target.originX || 0;\n const oy = target.originY || 0;\n const sx = target.scaleX;\n const sy = target.scaleY;\n const rotation = target.rotation || 0;\n const x = target.x;\n const y = target.y;\n const skewX = target.skewX ? Math.tan(target.skewX) : 0;\n // TODO: zrender use different hand in coordinate system and y axis is inversed.\n const skewY = target.skewY ? Math.tan(-target.skewY) : 0;\n\n // The order of transform (-origin * scale * skew * rotate * origin * translate).\n // We merge (-origin * scale * skew) into one. Also did identity in these operations.\n // origin\n if (ox || oy) {\n m[4] = -ox * sx - skewX * oy * sy;\n m[5] = -oy * sy - skewY * ox * sx;\n }\n else {\n m[4] = m[5] = 0;\n }\n // scale\n m[0] = sx;\n m[3] = sy;\n // skew\n m[1] = skewY * sx;\n m[2] = skewX * sy;\n\n // Apply rotation\n rotation && matrix.rotate(m, m, rotation);\n\n // Translate back from origin and apply translation\n m[4] += ox + x;\n m[5] += oy + y;\n\n return m;\n }\n\n private static initDefaultProps = (function () {\n const proto = Transformable.prototype;\n proto.x = 0;\n proto.y = 0;\n proto.scaleX = 1;\n proto.scaleY = 1;\n proto.originX = 0;\n proto.originY = 0;\n proto.skewX = 0;\n proto.skewY = 0;\n proto.rotation = 0;\n proto.globalScaleRatio = 1;\n })()\n};\n\nexport const TRANSFORMABLE_PROPS = [\n 'x', 'y', 'originX', 'originY', 'rotation', 'scaleX', 'scaleY', 'skewX', 'skewY'\n] as const;\n\nexport default Transformable;", "import { MatrixArray } from './matrix';\n\nexport interface PointLike {\n x: number\n y: number\n}\nexport default class Point {\n\n x: number\n\n y: number\n\n constructor(x?: number, y?: number) {\n this.x = x || 0;\n this.y = y || 0;\n }\n\n /**\n * Copy from another point\n */\n copy(other: PointLike) {\n this.x = other.x;\n this.y = other.y;\n return this;\n }\n\n /**\n * Clone a point\n */\n clone() {\n return new Point(this.x, this.y);\n }\n\n /**\n * Set x and y\n */\n set(x: number, y: number) {\n this.x = x;\n this.y = y;\n return this;\n }\n\n /**\n * If equal to another point\n */\n equal(other: PointLike) {\n return other.x === this.x && other.y === this.y;\n }\n\n /**\n * Add another point\n */\n add(other: PointLike) {\n this.x += other.x;\n this.y += other.y;\n return this;\n }\n\n scale(scalar: number) {\n this.x *= scalar;\n this.y *= scalar;\n }\n\n scaleAndAdd(other: PointLike, scalar: number) {\n this.x += other.x * scalar;\n this.y += other.y * scalar;\n }\n\n /**\n * Sub another point\n */\n sub(other: PointLike) {\n this.x -= other.x;\n this.y -= other.y;\n return this;\n }\n\n /**\n * Dot product with other point\n */\n dot(other: PointLike) {\n return this.x * other.x + this.y * other.y;\n }\n\n /**\n * Get length of point\n */\n len() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }\n\n /**\n * Get squared length\n */\n lenSquare() {\n return this.x * this.x + this.y * this.y;\n }\n\n /**\n * Normalize\n */\n normalize() {\n const len = this.len();\n this.x /= len;\n this.y /= len;\n return this;\n }\n\n /**\n * Distance to another point\n */\n distance(other: PointLike) {\n const dx = this.x - other.x;\n const dy = this.y - other.y;\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n /**\n * Square distance to another point\n */\n distanceSquare(other: Point) {\n const dx = this.x - other.x;\n const dy = this.y - other.y;\n return dx * dx + dy * dy;\n }\n\n /**\n * Negate\n */\n negate() {\n this.x = -this.x;\n this.y = -this.y;\n return this;\n }\n\n /**\n * Apply a transform matrix array.\n */\n transform(m: MatrixArray) {\n if (!m) {\n return;\n }\n const x = this.x;\n const y = this.y;\n this.x = m[0] * x + m[2] * y + m[4];\n this.y = m[1] * x + m[3] * y + m[5];\n return this;\n }\n\n toArray(out: number[]) {\n out[0] = this.x;\n out[1] = this.y;\n return out;\n }\n\n fromArray(input: number[]) {\n this.x = input[0];\n this.y = input[1];\n }\n\n static set(p: PointLike, x: number, y: number) {\n p.x = x;\n p.y = y;\n }\n\n static copy(p: PointLike, p2: PointLike) {\n p.x = p2.x;\n p.y = p2.y;\n }\n\n static len(p: PointLike) {\n return Math.sqrt(p.x * p.x + p.y * p.y);\n }\n\n static lenSquare(p: PointLike) {\n return p.x * p.x + p.y * p.y;\n }\n\n static dot(p0: PointLike, p1: PointLike) {\n return p0.x * p1.x + p0.y * p1.y;\n }\n\n static add(out: PointLike, p0: PointLike, p1: PointLike) {\n out.x = p0.x + p1.x;\n out.y = p0.y + p1.y;\n }\n\n static sub(out: PointLike, p0: PointLike, p1: PointLike) {\n out.x = p0.x - p1.x;\n out.y = p0.y - p1.y;\n }\n\n static scale(out: PointLike, p0: PointLike, scalar: number) {\n out.x = p0.x * scalar;\n out.y = p0.y * scalar;\n }\n\n static scaleAndAdd(out: PointLike, p0: PointLike, p1: PointLike, scalar: number) {\n out.x = p0.x + p1.x * scalar;\n out.y = p0.y + p1.y * scalar;\n }\n\n static lerp(out: PointLike, p0: PointLike, p1: PointLike, t: number) {\n const onet = 1 - t;\n out.x = onet * p0.x + t * p1.x;\n out.y = onet * p0.y + t * p1.y;\n }\n}", "/**\n * @module echarts/core/BoundingRect\n */\n\nimport * as matrix from './matrix';\nimport Point, { PointLike } from './Point';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\nconst lt = new Point();\nconst rb = new Point();\nconst lb = new Point();\nconst rt = new Point();\n\nconst minTv = new Point();\nconst maxTv = new Point();\n\nclass BoundingRect {\n\n x: number\n y: number\n width: number\n height: number\n\n constructor(x: number, y: number, width: number, height: number) {\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n union(other: BoundingRect) {\n const x = mathMin(other.x, this.x);\n const y = mathMin(other.y, this.y);\n\n // If x is -Infinity and width is Infinity (like in the case of\n // IncrementalDisplayble), x + width would be NaN\n if (isFinite(this.x) && isFinite(this.width)) {\n this.width = mathMax(\n other.x + other.width,\n this.x + this.width\n ) - x;\n }\n else {\n this.width = other.width;\n }\n\n if (isFinite(this.y) && isFinite(this.height)) {\n this.height = mathMax(\n other.y + other.height,\n this.y + this.height\n ) - y;\n }\n else {\n this.height = other.height;\n }\n\n this.x = x;\n this.y = y;\n }\n\n applyTransform(m: matrix.MatrixArray) {\n BoundingRect.applyTransform(this, this, m);\n }\n\n calculateTransform(b: RectLike): matrix.MatrixArray {\n const a = this;\n const sx = b.width / a.width;\n const sy = b.height / a.height;\n\n const m = matrix.create();\n\n // \u77E9\u9635\u53F3\u4E58\n matrix.translate(m, m, [-a.x, -a.y]);\n matrix.scale(m, m, [sx, sy]);\n matrix.translate(m, m, [b.x, b.y]);\n\n return m;\n }\n\n intersect(b: RectLike, mtv?: PointLike): boolean {\n if (!b) {\n return false;\n }\n\n if (!(b instanceof BoundingRect)) {\n // Normalize negative width/height.\n b = BoundingRect.create(b);\n }\n\n const a = this;\n const ax0 = a.x;\n const ax1 = a.x + a.width;\n const ay0 = a.y;\n const ay1 = a.y + a.height;\n\n const bx0 = b.x;\n const bx1 = b.x + b.width;\n const by0 = b.y;\n const by1 = b.y + b.height;\n\n let overlap = !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);\n if (mtv) {\n let dMin = Infinity;\n let dMax = 0;\n const d0 = Math.abs(ax1 - bx0);\n const d1 = Math.abs(bx1 - ax0);\n const d2 = Math.abs(ay1 - by0);\n const d3 = Math.abs(by1 - ay0);\n const dx = Math.min(d0, d1);\n const dy = Math.min(d2, d3);\n // On x axis\n if (ax1 < bx0 || bx1 < ax0) {\n if (dx > dMax) {\n dMax = dx;\n if (d0 < d1) {\n Point.set(maxTv, -d0, 0); // b is on the right\n }\n else {\n Point.set(maxTv, d1, 0); // b is on the left\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d0 < d1) {\n Point.set(minTv, d0, 0); // b is on the right\n }\n else {\n Point.set(minTv, -d1, 0); // b is on the left\n }\n }\n }\n\n // On y axis\n if (ay1 < by0 || by1 < ay0) {\n if (dy > dMax) {\n dMax = dy;\n if (d2 < d3) {\n Point.set(maxTv, 0, -d2); // b is on the bottom(larger y)\n }\n else {\n Point.set(maxTv, 0, d3); // b is on the top(smaller y)\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d2 < d3) {\n Point.set(minTv, 0, d2); // b is on the bottom\n }\n else {\n Point.set(minTv, 0, -d3); // b is on the top\n }\n }\n }\n }\n\n if (mtv) {\n Point.copy(mtv, overlap ? minTv : maxTv);\n }\n return overlap;\n }\n\n contain(x: number, y: number): boolean {\n const rect = this;\n return x >= rect.x\n && x <= (rect.x + rect.width)\n && y >= rect.y\n && y <= (rect.y + rect.height);\n }\n\n clone() {\n return new BoundingRect(this.x, this.y, this.width, this.height);\n }\n\n /**\n * Copy from another rect\n */\n copy(other: RectLike) {\n BoundingRect.copy(this, other);\n }\n\n plain(): RectLike {\n return {\n x: this.x,\n y: this.y,\n width: this.width,\n height: this.height\n };\n }\n\n /**\n * If not having NaN or Infinity with attributes\n */\n isFinite(): boolean {\n return isFinite(this.x)\n && isFinite(this.y)\n && isFinite(this.width)\n && isFinite(this.height);\n }\n\n isZero(): boolean {\n return this.width === 0 || this.height === 0;\n }\n\n static create(rect: RectLike): BoundingRect {\n return new BoundingRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n static copy(target: RectLike, source: RectLike) {\n target.x = source.x;\n target.y = source.y;\n target.width = source.width;\n target.height = source.height;\n }\n\n static applyTransform(target: RectLike, source: RectLike, m: matrix.MatrixArray) {\n // In case usage like this\n // el.getBoundingRect().applyTransform(el.transform)\n // And element has no transform\n if (!m) {\n if (target !== source) {\n BoundingRect.copy(target, source);\n }\n return;\n }\n // Fast path when there is no rotation in matrix.\n if (m[1] < 1e-5 && m[1] > -1e-5 && m[2] < 1e-5 && m[2] > -1e-5) {\n const sx = m[0];\n const sy = m[3];\n const tx = m[4];\n const ty = m[5];\n target.x = source.x * sx + tx;\n target.y = source.y * sy + ty;\n target.width = source.width * sx;\n target.height = source.height * sy;\n if (target.width < 0) {\n target.x += target.width;\n target.width = -target.width;\n }\n if (target.height < 0) {\n target.y += target.height;\n target.height = -target.height;\n }\n return;\n }\n\n // source and target can be same instance.\n lt.x = lb.x = source.x;\n lt.y = rt.y = source.y;\n rb.x = rt.x = source.x + source.width;\n rb.y = lb.y = source.y + source.height;\n\n lt.transform(m);\n rt.transform(m);\n rb.transform(m);\n lb.transform(m);\n\n target.x = mathMin(lt.x, rb.x, lb.x, rt.x);\n target.y = mathMin(lt.y, rb.y, lb.y, rt.y);\n const maxX = mathMax(lt.x, rb.x, lb.x, rt.x);\n const maxY = mathMax(lt.y, rb.y, lb.y, rt.y);\n target.width = maxX - target.x;\n target.height = maxY - target.y;\n }\n}\n\n\nexport type RectLike = {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport default BoundingRect;", "import BoundingRect, { RectLike } from '../core/BoundingRect';\nimport { createCanvas } from '../core/util';\nimport { Dictionary, PropType, TextAlign, TextVerticalAlign, BuiltinTextPosition } from '../core/types';\nimport LRU from '../core/LRU';\n\nlet textWidthCache: Dictionary> = {};\n\nexport const DEFAULT_FONT = '12px sans-serif';\n\nlet _ctx: CanvasRenderingContext2D;\nlet _cachedFont: string;\n\nfunction defaultMeasureText(text: string, font?: string): { width: number } {\n if (!_ctx) {\n _ctx = createCanvas().getContext('2d');\n }\n if (_cachedFont !== font) {\n _cachedFont = _ctx.font = font || DEFAULT_FONT;\n }\n return _ctx.measureText(text);\n}\n\nlet methods: {\n measureText: (text: string, font?: string) => { width: number }\n} = {\n measureText: defaultMeasureText\n};\n\nexport function $override(\n name: keyof typeof methods,\n fn: PropType\n) {\n methods[name] = fn;\n}\n\n// let cacheMissCount = 0;\n// let totalCount = 0;\n\nexport function getWidth(text: string, font: string): number {\n font = font || DEFAULT_FONT;\n let cacheOfFont = textWidthCache[font];\n if (!cacheOfFont) {\n cacheOfFont = textWidthCache[font] = new LRU(500);\n }\n let width = cacheOfFont.get(text);\n if (width == null) {\n width = methods.measureText(text, font).width;\n cacheOfFont.put(text, width);\n // cacheMissCount++;\n }\n // totalCount++;\n\n return width;\n}\n\n/**\n *\n * Get bounding rect for inner usage(TSpan)\n * Which not include text newline.\n */\nexport function innerGetBoundingRect(\n text: string,\n font: string,\n textAlign?: TextAlign,\n textBaseline?: TextVerticalAlign\n): BoundingRect {\n const width = getWidth(text, font);\n const height = getLineHeight(font);\n\n const x = adjustTextX(0, width, textAlign);\n const y = adjustTextY(0, height, textBaseline);\n\n const rect = new BoundingRect(x, y, width, height);\n\n return rect;\n}\n\n/**\n *\n * Get bounding rect for outer usage. Compatitable with old implementation\n * Which includes text newline.\n */\nexport function getBoundingRect(\n text: string,\n font: string,\n textAlign?: TextAlign,\n textBaseline?: TextVerticalAlign\n) {\n const textLines = ((text || '') + '').split('\\n');\n const len = textLines.length;\n if (len === 1) {\n return innerGetBoundingRect(textLines[0], font, textAlign, textBaseline);\n }\n else {\n const uniondRect = new BoundingRect(0, 0, 0, 0);\n for (let i = 0; i < textLines.length; i++) {\n const rect = innerGetBoundingRect(textLines[i], font, textAlign, textBaseline);\n i === 0 ? uniondRect.copy(rect) : uniondRect.union(rect);\n }\n return uniondRect;\n }\n}\n\nexport function adjustTextX(x: number, width: number, textAlign: TextAlign): number {\n // TODO Right to left language\n if (textAlign === 'right') {\n x -= width;\n }\n else if (textAlign === 'center') {\n x -= width / 2;\n }\n return x;\n}\n\nexport function adjustTextY(y: number, height: number, verticalAlign: TextVerticalAlign): number {\n if (verticalAlign === 'middle') {\n y -= height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y -= height;\n }\n return y;\n}\n\n\nexport function getLineHeight(font?: string): number {\n // FIXME A rough approach.\n return getWidth('\u56FD', font);\n}\n\nexport function measureText(text: string, font?: string): {\n width: number\n} {\n return methods.measureText(text, font);\n}\n\n\nexport function parsePercent(value: number | string, maxValue: number): number {\n if (typeof value === 'string') {\n if (value.lastIndexOf('%') >= 0) {\n return parseFloat(value) / 100 * maxValue;\n }\n return parseFloat(value);\n }\n return value;\n}\n\nexport interface TextPositionCalculationResult {\n x: number\n y: number\n align: TextAlign\n verticalAlign: TextVerticalAlign\n}\n/**\n * Follow same interface to `Displayable.prototype.calculateTextPosition`.\n * @public\n * @param out Prepared out object. If not input, auto created in the method.\n * @param style where `textPosition` and `textDistance` are visited.\n * @param rect {x, y, width, height} Rect of the host elment, according to which the text positioned.\n * @return The input `out`. Set: {x, y, textAlign, textVerticalAlign}\n */\nexport function calculateTextPosition(\n out: TextPositionCalculationResult,\n opts: {\n position?: BuiltinTextPosition | (number | string)[]\n distance?: number // Default 5\n global?: boolean\n },\n rect: RectLike\n): TextPositionCalculationResult {\n const textPosition = opts.position || 'inside';\n const distance = opts.distance != null ? opts.distance : 5;\n\n const height = rect.height;\n const width = rect.width;\n const halfHeight = height / 2;\n\n let x = rect.x;\n let y = rect.y;\n\n let textAlign: TextAlign = 'left';\n let textVerticalAlign: TextVerticalAlign = 'top';\n\n if (textPosition instanceof Array) {\n x += parsePercent(textPosition[0], rect.width);\n y += parsePercent(textPosition[1], rect.height);\n // Not use textAlign / textVerticalAlign\n textAlign = null;\n textVerticalAlign = null;\n }\n else {\n switch (textPosition) {\n case 'left':\n x -= distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'right':\n x += distance + width;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'top':\n x += width / 2;\n y -= distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'bottom':\n x += width / 2;\n y += height + distance;\n textAlign = 'center';\n break;\n case 'inside':\n x += width / 2;\n y += halfHeight;\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n case 'insideLeft':\n x += distance;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'insideRight':\n x += width - distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'insideTop':\n x += width / 2;\n y += distance;\n textAlign = 'center';\n break;\n case 'insideBottom':\n x += width / 2;\n y += height - distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'insideTopLeft':\n x += distance;\n y += distance;\n break;\n case 'insideTopRight':\n x += width - distance;\n y += distance;\n textAlign = 'right';\n break;\n case 'insideBottomLeft':\n x += distance;\n y += height - distance;\n textVerticalAlign = 'bottom';\n break;\n case 'insideBottomRight':\n x += width - distance;\n y += height - distance;\n textAlign = 'right';\n textVerticalAlign = 'bottom';\n break;\n }\n }\n\n out = out || {} as TextPositionCalculationResult;\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n\n return out;\n}\n", "import Transformable from './core/Transformable';\nimport { AnimationEasing } from './animation/easing';\nimport Animator, {cloneValue} from './animation/Animator';\nimport { ZRenderType } from './zrender';\nimport {\n Dictionary, ElementEventName, ZRRawEvent, BuiltinTextPosition, AllPropTypes,\n TextVerticalAlign, TextAlign, MapToType\n} from './core/types';\nimport Path from './graphic/Path';\nimport BoundingRect, { RectLike } from './core/BoundingRect';\nimport Eventful from './core/Eventful';\nimport ZRText, { DefaultTextStyle } from './graphic/Text';\nimport { calculateTextPosition, TextPositionCalculationResult, parsePercent } from './contain/text';\nimport {\n guid,\n isObject,\n keys,\n extend,\n indexOf,\n logError,\n mixin,\n isArrayLike,\n isTypedArray\n} from './core/util';\nimport Polyline from './graphic/shape/Polyline';\nimport Group from './graphic/Group';\nimport Point from './core/Point';\nimport { LIGHT_LABEL_COLOR, DARK_LABEL_COLOR } from './config';\nimport { parse, stringify } from './tool/color';\nimport env from './core/env';\nimport { REDARAW_BIT } from './graphic/constants';\n\nexport interface ElementAnimateConfig {\n duration?: number\n delay?: number\n easing?: AnimationEasing\n during?: (percent: number) => void\n\n // `done` will be called when all of the animations of the target props are\n // \"done\" or \"aborted\", and at least one \"done\" happened.\n // Common cases: animations declared, but some of them are aborted (e.g., by state change).\n // The calling of `animationTo` done rather than aborted if at least one done happened.\n done?: Function\n // `aborted` will be called when all of the animations of the target props are \"aborted\".\n aborted?: Function\n\n scope?: string\n /**\n * If force animate\n * Prevent stop animation and callback\n * immediently when target values are the same as current values.\n */\n force?: boolean\n /**\n * If use additive animation.\n */\n additive?: boolean\n /**\n * If set to final state before animation started.\n * It can be useful if something you want to calcuate depends on the final state of element.\n * Like bounding rect for text layouting.\n *\n * Only available in animateTo\n */\n setToFinal?: boolean\n}\n\nexport interface ElementTextConfig {\n /**\n * Position relative to the element bounding rect\n * @default 'inside'\n */\n position?: BuiltinTextPosition | (number | string)[]\n\n /**\n * Rotation of the label.\n */\n rotation?: number\n\n /**\n * Rect that text will be positioned.\n * Default to be the rect of element.\n */\n layoutRect?: RectLike\n\n /**\n * Offset of the label.\n * The difference of offset and position is that it will be applied\n * in the rotation\n */\n offset?: number[]\n\n /**\n * Origin or rotation. Which is relative to the bounding box of the attached element.\n * Can be percent value. Relative to the bounding box.\n * If specified center. It will be center of the bounding box.\n *\n * Only available when position and rotation are both set.\n */\n origin?: (number | string)[] | 'center'\n\n /**\n * Distance to the rect\n * @default 5\n */\n distance?: number\n\n /**\n * If use local user space. Which will apply host's transform\n * @default false\n */\n local?: boolean\n\n /**\n * `insideFill` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `fill` will be picked by this priority:\n * `textContent.style.fill` > `textConfig.insideFill` > \"auto-calculated-fill\"\n * In most cases, \"auto-calculated-fill\" is white.\n */\n insideFill?: string\n\n /**\n * `insideStroke` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `stroke` will be picked by this priority:\n * `textContent.style.stroke` > `textConfig.insideStroke` > \"auto-calculated-stroke\"\n *\n * The rule of getting \"auto-calculated-stroke\":\n * If (A) the `fill` is specified in style (either in `textContent.style` or `textContent.style.rich`)\n * or (B) needed to draw text background (either defined in `textContent.style` or `textContent.style.rich`)\n * \"auto-calculated-stroke\" will be null.\n * Otherwise, \"auto-calculated-stroke\" will be the same as `fill` of this element if possible, or null.\n *\n * The reason of (A) is not decisive:\n * 1. If users specify `fill` in style and still use \"auto-calculated-stroke\", the effect\n * is not good and unexpected in some cases. It not easy and seams uncessary to auto calculate\n * a proper `stroke` for the given `fill`, since they can specify `stroke` themselve.\n * 2. Backward compat.\n */\n insideStroke?: string\n\n /**\n * `outsideFill` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `fill` will be picked by this priority:\n * `textContent.style.fill` > `textConfig.outsideFill` > #000\n */\n outsideFill?: string\n\n /**\n * `outsideStroke` is a color string or left empth.\n * If a `textContent` is not \"inside\", its final `stroke` will be picked by this priority:\n * `textContent.style.stroke` > `textConfig.outsideStroke` > \"auto-calculated-stroke\"\n *\n * The rule of getting \"auto-calculated-stroke\":\n * If (A) the `fill` is specified in style (either in `textContent.style` or `textContent.style.rich`)\n * or (B) needed to draw text background (either defined in `textContent.style` or `textContent.style.rich`)\n * \"auto-calculated-stroke\" will be null.\n * Otherwise, \"auto-calculated-stroke\" will be a neer white color to distinguish \"front end\"\n * label with messy background (like other text label, line or other graphic).\n */\n outsideStroke?: string\n\n /**\n * Tell zrender I can sure this text is inside or not.\n * In case position is not using builtin `inside` hints.\n */\n inside?: boolean\n}\nexport interface ElementTextGuideLineConfig {\n /**\n * Anchor for text guide line.\n * Notice: Won't work\n */\n anchor?: Point\n\n /**\n * If above the target element.\n */\n showAbove?: boolean\n\n /**\n * Candidates of connectors. Used when autoCalculate is true and anchor is not specified.\n */\n candidates?: ('left' | 'top' | 'right' | 'bottom')[]\n}\n\nexport interface ElementEvent {\n type: ElementEventName,\n event: ZRRawEvent,\n // target can only be an element that is not silent.\n target: Element,\n // topTarget can be a silent element.\n topTarget: Element,\n cancelBubble: boolean,\n offsetX: number,\n offsetY: number,\n gestureEvent: string,\n pinchX: number,\n pinchY: number,\n pinchScale: number,\n wheelDelta: number,\n zrByTouch: boolean,\n which: number,\n stop: (this: ElementEvent) => void\n}\n\nexport type ElementEventCallback = (\n this: CbThis, e: ElementEvent\n) => boolean | void\ntype CbThis = unknown extends Ctx ? Impl : Ctx;\n\ninterface ElementEventHandlerProps {\n // Events\n onclick: ElementEventCallback\n ondblclick: ElementEventCallback\n onmouseover: ElementEventCallback\n onmouseout: ElementEventCallback\n onmousemove: ElementEventCallback\n onmousewheel: ElementEventCallback\n onmousedown: ElementEventCallback\n onmouseup: ElementEventCallback\n oncontextmenu: ElementEventCallback\n\n ondrag: ElementEventCallback\n ondragstart: ElementEventCallback\n ondragend: ElementEventCallback\n ondragenter: ElementEventCallback\n ondragleave: ElementEventCallback\n ondragover: ElementEventCallback\n ondrop: ElementEventCallback\n}\n\nexport interface ElementProps extends Partial {\n name?: string\n ignore?: boolean\n isGroup?: boolean\n draggable?: boolean | 'horizontal' | 'vertical'\n\n silent?: boolean\n\n ignoreClip?: boolean\n // From transform\n x?: number\n y?: number\n scaleX?: number\n scaleY?: number\n originX?: number\n originY?: number\n rotation?: number\n\n globalScaleRatio?: number\n\n textConfig?: ElementTextConfig\n textContent?: ZRText\n\n clipPath?: Path\n drift?: Element['drift']\n\n extra?: Dictionary\n\n // For echarts animation.\n anid?: string\n}\n\n// Properties can be used in state.\nexport const PRESERVED_NORMAL_STATE = '__zr_normal__';\n// export const PRESERVED_MERGED_STATE = '__zr_merged__';\n\nconst PRIMARY_STATES_KEYS = ['x', 'y', 'scaleX', 'scaleY', 'originX', 'originY', 'rotation', 'ignore'] as const;\nconst DEFAULT_ANIMATABLE_MAP: Partial> = {\n x: true,\n y: true,\n scaleX: true,\n scaleY: true,\n originX: true,\n originY: true,\n rotation: true,\n ignore: false\n};\n\nexport type ElementStatePropNames = (typeof PRIMARY_STATES_KEYS)[number] | 'textConfig';\nexport type ElementState = Pick & ElementCommonState\n\nexport type ElementCommonState = {\n hoverLayer?: boolean\n}\n\nexport type ElementCalculateTextPosition = (\n out: TextPositionCalculationResult,\n style: ElementTextConfig,\n rect: RectLike\n) => TextPositionCalculationResult;\n\nlet tmpTextPosCalcRes = {} as TextPositionCalculationResult;\nlet tmpBoundingRect = new BoundingRect(0, 0, 0, 0);\n\ninterface Element extends Transformable,\n Eventful<{\n [key in ElementEventName]: (e: ElementEvent) => void | boolean\n } & {\n [key in string]: (...args: any) => void | boolean\n }>,\n ElementEventHandlerProps {\n}\n\nclass Element {\n\n id: number = guid()\n /**\n * Element type\n */\n type: string\n\n /**\n * Element name\n */\n name: string\n\n /**\n * If ignore drawing and events of the element object\n */\n ignore: boolean\n\n /**\n * Whether to respond to mouse events.\n */\n silent: boolean\n\n /**\n * \u662F\u5426\u662F Group\n */\n isGroup: boolean\n\n /**\n * Whether it can be dragged.\n */\n draggable: boolean | 'horizontal' | 'vertical'\n\n /**\n * Whether is it dragging.\n */\n dragging: boolean\n\n parent: Group\n\n animators: Animator[] = []\n\n /**\n * If ignore clip from it's parent or hosts.\n * Applied on itself and all it's children.\n *\n * NOTE: It won't affect the clipPath set on the children.\n */\n ignoreClip: boolean\n\n /**\n * If element is used as a component of other element.\n */\n __hostTarget: Element\n\n /**\n * ZRender instance will be assigned when element is associated with zrender\n */\n __zr: ZRenderType\n\n /**\n * Dirty bits.\n * From which painter will determine if this displayable object needs brush.\n */\n __dirty: number\n\n /**\n * If element was painted on the screen\n */\n __isRendered: boolean;\n\n /**\n * If element has been moved to the hover layer.\n *\n * If so, dirty will only trigger the zrender refresh hover layer\n */\n __inHover: boolean\n\n /**\n * path to clip the elements and its children, if it is a group.\n * @see http://www.w3.org/TR/2dcontext/#clipping-region\n */\n private _clipPath?: Path\n\n /**\n * Attached text element.\n * `position`, `style.textAlign`, `style.textVerticalAlign`\n * of element will be ignored if textContent.position is set\n */\n private _textContent?: ZRText\n\n /**\n * Text guide line.\n */\n private _textGuide?: Polyline\n\n /**\n * Config of textContent. Inlcuding layout, color, ...etc.\n */\n textConfig?: ElementTextConfig\n\n /**\n * Config for guide line calculating.\n *\n * NOTE: This is just a property signature. READ and WRITE are all done in echarts.\n */\n textGuideLineConfig?: ElementTextGuideLineConfig\n\n // FOR ECHARTS\n /**\n * Id for mapping animation\n */\n anid: string\n\n extra: Dictionary\n\n currentStates?: string[] = []\n // prevStates is for storager in echarts.\n prevStates?: string[]\n /**\n * Store of element state.\n * '__normal__' key is preserved for default properties.\n */\n states: Dictionary = {}\n\n /**\n * Animation config applied on state switching.\n */\n stateTransition: ElementAnimateConfig\n\n /**\n * Proxy function for getting state with given stateName.\n * ZRender will first try to get with stateProxy. Then find from states if stateProxy returns nothing\n *\n * targetStates will be given in useStates\n */\n stateProxy?: (stateName: string, targetStates?: string[]) => ElementState\n\n protected _normalState: ElementState\n\n // Temporary storage for inside text color configuration.\n private _innerTextDefaultStyle: DefaultTextStyle\n\n constructor(props?: Props) {\n this._init(props);\n }\n\n protected _init(props?: Props) {\n // Init default properties\n this.attr(props);\n }\n\n /**\n * Drift element\n * @param {number} dx dx on the global space\n * @param {number} dy dy on the global space\n */\n drift(dx: number, dy: number, e?: ElementEvent) {\n switch (this.draggable) {\n case 'horizontal':\n dy = 0;\n break;\n case 'vertical':\n dx = 0;\n break;\n }\n\n let m = this.transform;\n if (!m) {\n m = this.transform = [1, 0, 0, 1, 0, 0];\n }\n m[4] += dx;\n m[5] += dy;\n\n this.decomposeTransform();\n this.markRedraw();\n }\n\n /**\n * Hook before update\n */\n beforeUpdate() {}\n /**\n * Hook after update\n */\n afterUpdate() {}\n /**\n * Update each frame\n */\n update() {\n this.updateTransform();\n\n if (this.__dirty) {\n this.updateInnerText();\n }\n }\n\n updateInnerText(forceUpdate?: boolean) {\n // Update textContent\n const textEl = this._textContent;\n if (textEl && (!textEl.ignore || forceUpdate)) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n const textConfig = this.textConfig;\n const isLocal = textConfig.local;\n const innerTransformable = textEl.innerTransformable;\n\n let textAlign: TextAlign;\n let textVerticalAlign: TextVerticalAlign;\n\n let textStyleChanged = false;\n\n // Apply host's transform.\n innerTransformable.parent = isLocal ? this as unknown as Group : null;\n\n let innerOrigin = false;\n\n // Reset x/y/rotation\n innerTransformable.copyTransform(textEl);\n\n // Force set attached text's position if `position` is in config.\n if (textConfig.position != null) {\n let layoutRect = tmpBoundingRect;\n if (textConfig.layoutRect) {\n layoutRect.copy(textConfig.layoutRect);\n }\n else {\n layoutRect.copy(this.getBoundingRect());\n }\n if (!isLocal) {\n layoutRect.applyTransform(this.transform);\n }\n\n if (this.calculateTextPosition) {\n this.calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n else {\n calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n\n // TODO Should modify back if textConfig.position is set to null again.\n // Or textContent is detached.\n innerTransformable.x = tmpTextPosCalcRes.x;\n innerTransformable.y = tmpTextPosCalcRes.y;\n\n // User specified align/verticalAlign has higher priority, which is\n // useful in the case that attached text is rotated 90 degree.\n textAlign = tmpTextPosCalcRes.align;\n textVerticalAlign = tmpTextPosCalcRes.verticalAlign;\n\n const textOrigin = textConfig.origin;\n if (textOrigin && textConfig.rotation != null) {\n let relOriginX;\n let relOriginY;\n if (textOrigin === 'center') {\n relOriginX = layoutRect.width * 0.5;\n relOriginY = layoutRect.height * 0.5;\n }\n else {\n relOriginX = parsePercent(textOrigin[0], layoutRect.width);\n relOriginY = parsePercent(textOrigin[1], layoutRect.height);\n }\n\n innerOrigin = true;\n innerTransformable.originX = -innerTransformable.x + relOriginX + (isLocal ? 0 : layoutRect.x);\n innerTransformable.originY = -innerTransformable.y + relOriginY + (isLocal ? 0 : layoutRect.y);\n }\n }\n\n\n if (textConfig.rotation != null) {\n innerTransformable.rotation = textConfig.rotation;\n }\n\n // TODO\n const textOffset = textConfig.offset;\n if (textOffset) {\n innerTransformable.x += textOffset[0];\n innerTransformable.y += textOffset[1];\n\n // Not change the user set origin.\n if (!innerOrigin) {\n innerTransformable.originX = -textOffset[0];\n innerTransformable.originY = -textOffset[1];\n }\n }\n\n // Calculate text color\n const isInside = textConfig.inside == null // Force to be inside or not.\n ? (typeof textConfig.position === 'string' && textConfig.position.indexOf('inside') >= 0)\n : textConfig.inside;\n const innerTextDefaultStyle = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {});\n\n let textFill;\n let textStroke;\n let autoStroke;\n if (isInside && this.canBeInsideText()) {\n // In most cases `textContent` need this \"auto\" strategy.\n // So by default be 'auto'. Otherwise users need to literally\n // set `insideFill: 'auto', insideStroke: 'auto'` each time.\n textFill = textConfig.insideFill;\n textStroke = textConfig.insideStroke;\n\n if (textFill == null || textFill === 'auto') {\n textFill = this.getInsideTextFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getInsideTextStroke(textFill);\n autoStroke = true;\n }\n }\n else {\n textFill = textConfig.outsideFill;\n textStroke = textConfig.outsideStroke;\n\n if (textFill == null || textFill === 'auto') {\n textFill = this.getOutsideFill();\n }\n // By default give a stroke to distinguish \"front end\" label with\n // messy background (like other text label, line or other graphic).\n // If textContent.style.fill specified, this auto stroke will not be used.\n if (textStroke == null || textStroke === 'auto') {\n // If some time need to customize the default stroke getter,\n // add some kind of override method.\n textStroke = this.getOutsideStroke(textFill);\n autoStroke = true;\n }\n }\n // Default `textFill` should must have a value to ensure text can be displayed.\n textFill = textFill || '#000';\n\n if (textFill !== innerTextDefaultStyle.fill\n || textStroke !== innerTextDefaultStyle.stroke\n || autoStroke !== innerTextDefaultStyle.autoStroke\n || textAlign !== innerTextDefaultStyle.align\n || textVerticalAlign !== innerTextDefaultStyle.verticalAlign\n ) {\n\n textStyleChanged = true;\n\n innerTextDefaultStyle.fill = textFill;\n innerTextDefaultStyle.stroke = textStroke;\n innerTextDefaultStyle.autoStroke = autoStroke;\n innerTextDefaultStyle.align = textAlign;\n innerTextDefaultStyle.verticalAlign = textVerticalAlign;\n\n textEl.setDefaultTextStyle(innerTextDefaultStyle);\n }\n\n // Mark textEl to update transform.\n // DON'T use markRedraw. It will cause Element itself to dirty again.\n textEl.__dirty |= REDARAW_BIT;\n\n if (textStyleChanged) {\n // Only mark style dirty if necessary. Update ZRText is costly.\n textEl.dirtyStyle(true);\n }\n }\n }\n\n protected canBeInsideText() {\n return true;\n }\n\n protected getInsideTextFill(): string | undefined {\n return '#fff';\n }\n\n protected getInsideTextStroke(textFill: string): string | undefined {\n return '#000';\n }\n\n protected getOutsideFill(): string | undefined {\n return this.__zr && this.__zr.isDarkMode() ? LIGHT_LABEL_COLOR : DARK_LABEL_COLOR;\n }\n\n protected getOutsideStroke(textFill: string): string {\n const backgroundColor = this.__zr && this.__zr.getBackgroundColor();\n let colorArr = typeof backgroundColor === 'string' && parse(backgroundColor as string);\n if (!colorArr) {\n colorArr = [255, 255, 255, 1];\n }\n // Assume blending on a white / black(dark) background.\n const alpha = colorArr[3];\n const isDark = this.__zr.isDarkMode();\n for (let i = 0; i < 3; i++) {\n colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);\n }\n colorArr[3] = 1;\n return stringify(colorArr, 'rgba');\n }\n\n traverse(\n cb: (this: Context, el: Element) => void,\n context?: Context\n ) {}\n\n protected attrKV(key: string, value: unknown) {\n if (key === 'textConfig') {\n this.setTextConfig(value as ElementTextConfig);\n }\n else if (key === 'textContent') {\n this.setTextContent(value as ZRText);\n }\n else if (key === 'clipPath') {\n this.setClipPath(value as Path);\n }\n else if (key === 'extra') {\n this.extra = this.extra || {};\n extend(this.extra, value);\n }\n else {\n (this as any)[key] = value;\n }\n }\n\n /**\n * Hide the element\n */\n hide() {\n this.ignore = true;\n this.markRedraw();\n }\n\n /**\n * Show the element\n */\n show() {\n this.ignore = false;\n this.markRedraw();\n }\n\n attr(keyOrObj: Props): this\n attr(keyOrObj: T, value: Props[T]): this\n attr(keyOrObj: keyof Props | Props, value?: unknown): this {\n if (typeof keyOrObj === 'string') {\n this.attrKV(keyOrObj as keyof ElementProps, value as AllPropTypes);\n }\n else if (isObject(keyOrObj)) {\n let obj = keyOrObj as object;\n let keysArr = keys(obj);\n for (let i = 0; i < keysArr.length; i++) {\n let key = keysArr[i];\n this.attrKV(key as keyof ElementProps, keyOrObj[key]);\n }\n }\n this.markRedraw();\n return this;\n }\n\n // Save current state to normal\n saveCurrentToNormalState(toState: ElementState) {\n this._innerSaveToNormal(toState);\n\n // If we are switching from normal to other state during animation.\n // We need to save final value of animation to the normal state. Not interpolated value.\n const normalState = this._normalState;\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n const fromStateTransition = animator.__fromStateTransition;\n // Ignore animation from state transition(except normal).\n if (fromStateTransition && fromStateTransition !== PRESERVED_NORMAL_STATE) {\n continue;\n }\n\n const targetName = animator.targetName;\n // Respecting the order of animation if multiple animator is\n // animating on the same property(If additive animation is used)\n const target = targetName\n ? (normalState as any)[targetName] : normalState;\n // Only save keys that are changed by the states.\n animator.saveFinalToTarget(target);\n }\n }\n\n protected _innerSaveToNormal(toState: ElementState) {\n let normalState = this._normalState;\n if (!normalState) {\n // Clear previous stored normal states when switching from normalState to otherState.\n normalState = this._normalState = {};\n }\n if (toState.textConfig && !normalState.textConfig) {\n normalState.textConfig = this.textConfig;\n }\n\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n }\n\n protected _savePrimaryToNormal(\n toState: Dictionary, normalState: Dictionary, primaryKeys: readonly string[]\n ) {\n for (let i = 0; i < primaryKeys.length; i++) {\n let key = primaryKeys[i];\n // Only save property that will be changed by toState\n // and has not been saved to normalState yet.\n if (toState[key] != null && !(key in normalState)) {\n (normalState as any)[key] = (this as any)[key];\n }\n }\n }\n\n /**\n * If has any state.\n */\n hasState() {\n return this.currentStates.length > 0;\n }\n\n /**\n * Get state object\n */\n getState(name: string) {\n return this.states[name];\n }\n\n\n /**\n * Ensure state exists. If not, will create one and return.\n */\n ensureState(name: string) {\n const states = this.states;\n if (!states[name]) {\n states[name] = {};\n }\n return states[name];\n }\n\n /**\n * Clear all states.\n */\n clearStates(noAnimation?: boolean) {\n this.useState(PRESERVED_NORMAL_STATE, false, noAnimation);\n // TODO set _normalState to null?\n }\n /**\n * Use state. State is a collection of properties.\n * Will return current state object if state exists and stateName has been changed.\n *\n * @param stateName State name to be switched to\n * @param keepCurrentState If keep current states.\n * If not, it will inherit from the normal state.\n */\n useState(stateName: string, keepCurrentStates?: boolean, noAnimation?: boolean, forceUseHoverLayer?: boolean) {\n // Use preserved word __normal__\n // TODO: Only restore changed properties when restore to normal???\n const toNormalState = stateName === PRESERVED_NORMAL_STATE;\n const hasStates = this.hasState();\n\n if (!hasStates && toNormalState) {\n // If switched from normal to normal.\n return;\n }\n\n const currentStates = this.currentStates;\n const animationCfg = this.stateTransition;\n\n // No need to change in following cases:\n // 1. Keep current states. and already being applied before.\n // 2. Don't keep current states. And new state is same with the only one exists state.\n if (indexOf(currentStates, stateName) >= 0 && (keepCurrentStates || currentStates.length === 1)) {\n return;\n }\n\n let state;\n if (this.stateProxy && !toNormalState) {\n state = this.stateProxy(stateName);\n }\n\n if (!state) {\n state = (this.states && this.states[stateName]);\n }\n\n if (!state && !toNormalState) {\n logError(`State ${stateName} not exists.`);\n return;\n }\n\n if (!toNormalState) {\n this.saveCurrentToNormalState(state);\n }\n\n const useHoverLayer = !!((state && state.hoverLayer) || forceUseHoverLayer);\n\n if (useHoverLayer) {\n // Enter hover layer before states update.\n this._toggleHoverLayerFlag(true);\n }\n\n this._applyStateObj(\n stateName,\n state,\n this._normalState,\n keepCurrentStates,\n !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0,\n animationCfg\n );\n\n // Also set text content.\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n // Force textContent use hover layer if self is using it.\n textContent.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n\n if (toNormalState) {\n // Clear state\n this.currentStates = [];\n // Reset normal state.\n this._normalState = {};\n }\n else {\n if (!keepCurrentStates) {\n this.currentStates = [stateName];\n }\n else {\n this.currentStates.push(stateName);\n }\n }\n\n // Update animating target to the new object after state changed.\n this._updateAnimationTargets();\n\n this.markRedraw();\n\n if (!useHoverLayer && this.__inHover) {\n // Leave hover layer after states update and markRedraw.\n this._toggleHoverLayerFlag(false);\n // NOTE: avoid unexpected refresh when moving out from hover layer!!\n // Only clear from hover layer.\n this.__dirty &= ~REDARAW_BIT;\n }\n\n // Return used state.\n return state;\n }\n\n /**\n * Apply multiple states.\n * @param states States list.\n */\n useStates(states: string[], noAnimation?: boolean, forceUseHoverLayer?: boolean) {\n if (!states.length) {\n this.clearStates();\n }\n else {\n const stateObjects: ElementState[] = [];\n const currentStates = this.currentStates;\n const len = states.length;\n let notChange = len === currentStates.length;\n if (notChange) {\n for (let i = 0; i < len; i++) {\n if (states[i] !== currentStates[i]) {\n notChange = false;\n break;\n }\n }\n }\n if (notChange) {\n return;\n }\n\n for (let i = 0; i < len; i++) {\n const stateName = states[i];\n let stateObj: ElementState;\n if (this.stateProxy) {\n stateObj = this.stateProxy(stateName, states);\n }\n if (!stateObj) {\n stateObj = this.states[stateName];\n }\n if (stateObj) {\n stateObjects.push(stateObj);\n }\n }\n\n const lastStateObj = stateObjects[len - 1];\n const useHoverLayer = !!((lastStateObj && lastStateObj.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n // Enter hover layer before states update.\n this._toggleHoverLayerFlag(true);\n }\n\n const mergedState = this._mergeStates(stateObjects);\n const animationCfg = this.stateTransition;\n\n this.saveCurrentToNormalState(mergedState);\n\n this._applyStateObj(\n states.join(','),\n mergedState,\n this._normalState,\n false,\n !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0,\n animationCfg\n );\n\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n textContent.useStates(states, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useStates(states, noAnimation, useHoverLayer);\n }\n\n this._updateAnimationTargets();\n\n // Create a copy\n this.currentStates = states.slice();\n this.markRedraw();\n\n if (!useHoverLayer && this.__inHover) {\n // Leave hover layer after states update and markRedraw.\n this._toggleHoverLayerFlag(false);\n // NOTE: avoid unexpected refresh when moving out from hover layer!!\n // Only clear from hover layer.\n this.__dirty &= ~REDARAW_BIT;\n }\n }\n }\n\n /**\n * Update animation targets when reference is changed.\n */\n private _updateAnimationTargets() {\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n if (animator.targetName) {\n animator.changeTarget((this as any)[animator.targetName]);\n }\n }\n }\n\n /**\n * Remove state\n * @param state State to remove\n */\n removeState(state: string) {\n const idx = indexOf(this.currentStates, state);\n if (idx >= 0) {\n const currentStates = this.currentStates.slice();\n currentStates.splice(idx, 1);\n this.useStates(currentStates);\n }\n }\n\n /**\n * Replace exists state.\n * @param oldState\n * @param newState\n * @param forceAdd If still add when even if replaced target not exists.\n */\n replaceState(oldState: string, newState: string, forceAdd: boolean) {\n const currentStates = this.currentStates.slice();\n const idx = indexOf(currentStates, oldState);\n const newStateExists = indexOf(currentStates, newState) >= 0;\n if (idx >= 0) {\n if (!newStateExists) {\n // Replace the old with the new one.\n currentStates[idx] = newState;\n }\n else {\n // Only remove the old one.\n currentStates.splice(idx, 1);\n }\n }\n else if (forceAdd && !newStateExists) {\n currentStates.push(newState);\n }\n this.useStates(currentStates);\n }\n\n /**\n * Toogle state.\n */\n toggleState(state: string, enable: boolean) {\n if (enable) {\n this.useState(state, true);\n }\n else {\n this.removeState(state);\n }\n }\n\n protected _mergeStates(states: ElementState[]) {\n const mergedState: ElementState = {};\n let mergedTextConfig: ElementTextConfig;\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n extend(mergedState, state);\n\n if (state.textConfig) {\n mergedTextConfig = mergedTextConfig || {};\n extend(mergedTextConfig, state.textConfig);\n }\n }\n if (mergedTextConfig) {\n mergedState.textConfig = mergedTextConfig;\n }\n\n return mergedState;\n }\n\n protected _applyStateObj(\n stateName: string,\n state: ElementState,\n normalState: ElementState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n const needsRestoreToNormal = !(state && keepCurrentStates);\n\n // TODO: Save current state to normal?\n // TODO: Animation\n if (state && state.textConfig) {\n // Inherit from current state or normal state.\n this.textConfig = extend(\n {},\n keepCurrentStates ? this.textConfig : normalState.textConfig\n );\n extend(this.textConfig, state.textConfig);\n }\n else if (needsRestoreToNormal) {\n if (normalState.textConfig) { // Only restore if changed and saved.\n this.textConfig = normalState.textConfig;\n }\n }\n\n const transitionTarget: Dictionary = {};\n let hasTransition = false;\n\n for (let i = 0; i < PRIMARY_STATES_KEYS.length; i++) {\n const key = PRIMARY_STATES_KEYS[i];\n const propNeedsTransition = transition && DEFAULT_ANIMATABLE_MAP[key];\n\n if (state && state[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = state[key];\n }\n else {\n // Replace if it exist in target state\n (this as any)[key] = state[key];\n }\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = normalState[key];\n }\n else {\n // Restore to normal state\n (this as any)[key] = normalState[key];\n }\n }\n }\n }\n\n if (!transition) {\n // Keep the running animation to the new values after states changed.\n // Not simply stop animation. Or it may have jump effect.\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n const targetName = animator.targetName;\n animator.__changeFinalValue(targetName\n ? ((state || normalState) as any)[targetName]\n : (state || normalState)\n );\n }\n }\n\n if (hasTransition) {\n this._transitionState(\n stateName,\n transitionTarget as Props,\n animationCfg\n );\n }\n }\n\n /**\n * Component is some elements attached on this element for specific purpose.\n * Like clipPath, textContent\n */\n private _attachComponent(componentEl: Element) {\n if (componentEl.__zr && !componentEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n\n if (componentEl === this) {\n throw new Error('Recursive component attachment.');\n }\n\n const zr = this.__zr;\n if (zr) {\n // Needs to add self to zrender. For rerender triggering, or animation.\n componentEl.addSelfToZr(zr);\n }\n\n componentEl.__zr = zr;\n componentEl.__hostTarget = this as unknown as Element;\n }\n\n private _detachComponent(componentEl: Element) {\n if (componentEl.__zr) {\n componentEl.removeSelfFromZr(componentEl.__zr);\n }\n\n componentEl.__zr = null;\n componentEl.__hostTarget = null;\n }\n\n /**\n * Get clip path\n */\n getClipPath() {\n return this._clipPath;\n }\n\n /**\n * Set clip path\n *\n * clipPath can't be shared between two elements.\n */\n setClipPath(clipPath: Path) {\n // Remove previous clip path\n if (this._clipPath && this._clipPath !== clipPath) {\n this.removeClipPath();\n }\n\n this._attachComponent(clipPath);\n\n this._clipPath = clipPath;\n this.markRedraw();\n }\n\n /**\n * Remove clip path\n */\n removeClipPath() {\n const clipPath = this._clipPath;\n if (clipPath) {\n this._detachComponent(clipPath);\n this._clipPath = null;\n this.markRedraw();\n }\n }\n\n /**\n * Get attached text content.\n */\n getTextContent(): ZRText {\n return this._textContent;\n }\n\n /**\n * Attach text on element\n */\n setTextContent(textEl: ZRText) {\n const previousTextContent = this._textContent;\n if (previousTextContent === textEl) {\n return;\n }\n // Remove previous textContent\n if (previousTextContent && previousTextContent !== textEl) {\n this.removeTextContent();\n }\n\n if (textEl.__zr && !textEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n\n textEl.innerTransformable = new Transformable();\n\n this._attachComponent(textEl);\n\n this._textContent = textEl;\n\n this.markRedraw();\n }\n\n /**\n * Set layout of attached text. Will merge with the previous.\n */\n setTextConfig(cfg: ElementTextConfig) {\n // TODO hide cfg property?\n if (!this.textConfig) {\n this.textConfig = {};\n }\n extend(this.textConfig, cfg);\n this.markRedraw();\n }\n\n /**\n * Remove text config\n */\n removeTextConfig() {\n this.textConfig = null;\n this.markRedraw();\n }\n\n /**\n * Remove attached text element.\n */\n removeTextContent() {\n const textEl = this._textContent;\n if (textEl) {\n textEl.innerTransformable = null;\n this._detachComponent(textEl);\n this._textContent = null;\n this._innerTextDefaultStyle = null;\n this.markRedraw();\n }\n }\n\n getTextGuideLine(): Polyline {\n return this._textGuide;\n }\n\n setTextGuideLine(guideLine: Polyline) {\n // Remove previous clip path\n if (this._textGuide && this._textGuide !== guideLine) {\n this.removeTextGuideLine();\n }\n\n this._attachComponent(guideLine);\n\n this._textGuide = guideLine;\n\n this.markRedraw();\n }\n\n removeTextGuideLine() {\n const textGuide = this._textGuide;\n if (textGuide) {\n this._detachComponent(textGuide);\n this._textGuide = null;\n this.markRedraw();\n }\n }\n /**\n * Mark element needs to be repainted\n */\n markRedraw() {\n this.__dirty |= REDARAW_BIT;\n const zr = this.__zr;\n if (zr) {\n if (this.__inHover) {\n zr.refreshHover();\n }\n else {\n zr.refresh();\n }\n }\n\n // Used as a clipPath or textContent\n if (this.__hostTarget) {\n this.__hostTarget.markRedraw();\n }\n }\n\n /**\n * Besides marking elements to be refreshed.\n * It will also invalid all cache and doing recalculate next frame.\n */\n dirty() {\n this.markRedraw();\n }\n\n private _toggleHoverLayerFlag(inHover: boolean) {\n this.__inHover = inHover;\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n textContent.__inHover = inHover;\n }\n if (textGuide) {\n textGuide.__inHover = inHover;\n }\n }\n\n /**\n * Add self from zrender instance.\n * Not recursively because it will be invoked when element added to storage.\n */\n addSelfToZr(zr: ZRenderType) {\n if (this.__zr === zr) {\n return;\n }\n\n this.__zr = zr;\n // \u6DFB\u52A0\u52A8\u753B\n const animators = this.animators;\n if (animators) {\n for (let i = 0; i < animators.length; i++) {\n zr.animation.addAnimator(animators[i]);\n }\n }\n\n if (this._clipPath) {\n this._clipPath.addSelfToZr(zr);\n }\n if (this._textContent) {\n this._textContent.addSelfToZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.addSelfToZr(zr);\n }\n }\n\n /**\n * Remove self from zrender instance.\n * Not recursively because it will be invoked when element added to storage.\n */\n removeSelfFromZr(zr: ZRenderType) {\n if (!this.__zr) {\n return;\n }\n\n this.__zr = null;\n // Remove animation\n const animators = this.animators;\n if (animators) {\n for (let i = 0; i < animators.length; i++) {\n zr.animation.removeAnimator(animators[i]);\n }\n }\n\n if (this._clipPath) {\n this._clipPath.removeSelfFromZr(zr);\n }\n if (this._textContent) {\n this._textContent.removeSelfFromZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.removeSelfFromZr(zr);\n }\n }\n\n /**\n * \u52A8\u753B\n *\n * @param path The key to fetch value from object. Mostly style or shape.\n * @param loop Whether to loop animation.\n * @example:\n * el.animate('style', false)\n * .when(1000, {x: 10} )\n * .done(function(){ // Animation done })\n * .start()\n */\n animate(key?: string, loop?: boolean) {\n let target = key ? (this as any)[key] : this;\n\n if (!target) {\n logError(\n 'Property \"'\n + key\n + '\" is not existed in element '\n + this.id\n );\n return;\n }\n\n const animator = new Animator(target, loop);\n this.addAnimator(animator, key);\n return animator;\n }\n\n addAnimator(animator: Animator, key: string): void {\n const zr = this.__zr;\n\n const el = this;\n\n animator.during(function () {\n el.updateDuringAnimation(key as string);\n }).done(function () {\n const animators = el.animators;\n // FIXME Animator will not be removed if use `Animator#stop` to stop animation\n const idx = indexOf(animators, animator);\n if (idx >= 0) {\n animators.splice(idx, 1);\n }\n });\n\n this.animators.push(animator);\n\n // If animate after added to the zrender\n if (zr) {\n zr.animation.addAnimator(animator);\n }\n\n // Wake up zrender to start the animation loop.\n zr && zr.wakeUp();\n }\n\n updateDuringAnimation(key: string) {\n this.markRedraw();\n }\n\n /**\n * \u505C\u6B62\u52A8\u753B\n * @param {boolean} forwardToLast If move to last frame before stop\n */\n stopAnimation(scope?: string, forwardToLast?: boolean) {\n const animators = this.animators;\n const len = animators.length;\n const leftAnimators: Animator[] = [];\n for (let i = 0; i < len; i++) {\n const animator = animators[i];\n if (!scope || scope === animator.scope) {\n animator.stop(forwardToLast);\n }\n else {\n leftAnimators.push(animator);\n }\n }\n this.animators = leftAnimators;\n\n return this;\n }\n\n /**\n * @param animationProps A map to specify which property to animate. If not specified, will animate all.\n * @example\n * // Animate position\n * el.animateTo({\n * position: [10, 10]\n * }, { done: () => { // done } })\n *\n * // Animate shape, style and position in 100ms, delayed 100ms, with cubicOut easing\n * el.animateTo({\n * shape: {\n * width: 500\n * },\n * style: {\n * fill: 'red'\n * }\n * position: [10, 10]\n * }, {\n * duration: 100,\n * delay: 100,\n * easing: 'cubicOut',\n * done: () => { // done }\n * })\n */\n animateTo(target: Props, cfg?: ElementAnimateConfig, animationProps?: MapToType) {\n animateTo(this, target, cfg, animationProps);\n }\n\n /**\n * Animate from the target state to current state.\n * The params and the value are the same as `this.animateTo`.\n */\n\n // Overload definitions\n animateFrom(\n target: Props, cfg: ElementAnimateConfig, animationProps?: MapToType\n ) {\n animateTo(this, target, cfg, animationProps, true);\n }\n\n protected _transitionState(\n stateName: string, target: Props, cfg?: ElementAnimateConfig, animationProps?: MapToType\n ) {\n const animators = animateTo(this, target, cfg, animationProps);\n for (let i = 0; i < animators.length; i++) {\n animators[i].__fromStateTransition = stateName;\n }\n }\n\n /**\n * Interface of getting the minimum bounding box.\n */\n getBoundingRect(): BoundingRect {\n return null;\n }\n\n getPaintRect(): BoundingRect {\n return null;\n }\n\n /**\n * The string value of `textPosition` needs to be calculated to a real postion.\n * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]`\n * by default. See `contain/text.js#calculateTextPosition` for more details.\n * But some coutom shapes like \"pin\", \"flag\" have center that is not exactly\n * `[width/2, height/2]`. So we provide this hook to customize the calculation\n * for those shapes. It will be called if the `style.textPosition` is a string.\n * @param {Obejct} [out] Prepared out object. If not provided, this method should\n * be responsible for creating one.\n * @param {module:zrender/graphic/Style} style\n * @param {Object} rect {x, y, width, height}\n * @return {Obejct} out The same as the input out.\n * {\n * x: number. mandatory.\n * y: number. mandatory.\n * align: string. optional. use style.textAlign by default.\n * verticalAlign: string. optional. use style.textVerticalAlign by default.\n * }\n */\n calculateTextPosition: ElementCalculateTextPosition;\n\n protected static initDefaultProps = (function () {\n const elProto = Element.prototype;\n elProto.type = 'element';\n elProto.name = '';\n elProto.ignore = false;\n elProto.silent = false;\n elProto.isGroup = false;\n elProto.draggable = false;\n elProto.dragging = false;\n elProto.ignoreClip = false;\n elProto.__inHover = false;\n elProto.__dirty = REDARAW_BIT;\n\n\n const logs: Dictionary = {};\n function logDeprecatedError(key: string, xKey: string, yKey: string) {\n if (!logs[key + xKey + yKey]) {\n console.warn(`DEPRECATED: '${key}' has been deprecated. use '${xKey}', '${yKey}' instead`);\n logs[key + xKey + yKey] = true;\n }\n }\n // Legacy transform properties. position and scale\n function createLegacyProperty(\n key: string,\n privateKey: string,\n xKey: string,\n yKey: string\n ) {\n Object.defineProperty(elProto, key, {\n get() {\n logDeprecatedError(key, xKey, yKey);\n if (!this[privateKey]) {\n const pos: number[] = this[privateKey] = [];\n enhanceArray(this, pos);\n }\n return this[privateKey];\n },\n set(pos: number[]) {\n logDeprecatedError(key, xKey, yKey);\n this[xKey] = pos[0];\n this[yKey] = pos[1];\n this[privateKey] = pos;\n enhanceArray(this, pos);\n }\n });\n function enhanceArray(self: any, pos: number[]) {\n Object.defineProperty(pos, 0, {\n get() {\n return self[xKey];\n },\n set(val: number) {\n self[xKey] = val;\n }\n });\n Object.defineProperty(pos, 1, {\n get() {\n return self[yKey];\n },\n set(val: number) {\n self[yKey] = val;\n }\n });\n }\n }\n if (Object.defineProperty && (!(env as any).browser.ie || (env as any).browser.version > 8)) {\n createLegacyProperty('position', '_legacyPos', 'x', 'y');\n createLegacyProperty('scale', '_legacyScale', 'scaleX', 'scaleY');\n createLegacyProperty('origin', '_legacyOrigin', 'originX', 'originY');\n }\n })()\n}\n\nmixin(Element, Eventful);\nmixin(Element, Transformable);\n\nfunction animateTo(\n animatable: Element,\n target: Dictionary,\n cfg: ElementAnimateConfig,\n animationProps: Dictionary,\n reverse?: boolean\n) {\n cfg = cfg || {};\n const animators: Animator[] = [];\n animateToShallow(\n animatable,\n '',\n animatable,\n target,\n cfg,\n animationProps,\n animators,\n reverse\n );\n\n let finishCount = animators.length;\n let doneHappened = false;\n const cfgDone = cfg.done;\n const cfgAborted = cfg.aborted;\n\n const doneCb = () => {\n doneHappened = true;\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n\n const abortedCb = () => {\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n\n // No animators. This should be checked before animators[i].start(),\n // because 'done' may be executed immediately if no need to animate.\n if (!finishCount) {\n cfgDone && cfgDone();\n }\n\n // Adding during callback to the first animator\n if (animators.length > 0 && cfg.during) {\n // TODO If there are two animators in animateTo, and the first one is stopped by other animator.\n animators[0].during((target, percent) => {\n cfg.during(percent);\n });\n }\n\n // Start after all animators created\n // Incase any animator is done immediately when all animation properties are not changed\n for (let i = 0; i < animators.length; i++) {\n const animator = animators[i];\n if (doneCb) {\n animator.done(doneCb);\n }\n if (abortedCb) {\n animator.aborted(abortedCb);\n }\n animator.start(cfg.easing, cfg.force);\n }\n\n return animators;\n}\n\nfunction copyArrShallow(source: number[], target: number[], len: number) {\n for (let i = 0; i < len; i++) {\n source[i] = target[i];\n }\n}\n\nfunction is2DArray(value: any[]): value is number[][] {\n return isArrayLike(value[0]);\n}\n\nfunction copyValue(target: Dictionary, source: Dictionary, key: string) {\n if (isArrayLike(source[key])) {\n if (!isArrayLike(target[key])) {\n target[key] = [];\n }\n\n if (isTypedArray(source[key])) {\n const len = source[key].length;\n if (target[key].length !== len) {\n target[key] = new (source[key].constructor)(len);\n copyArrShallow(target[key], source[key], len);\n }\n }\n else {\n const sourceArr = source[key] as any[];\n const targetArr = target[key] as any[];\n\n const len0 = sourceArr.length;\n if (is2DArray(sourceArr)) {\n // NOTE: each item should have same length\n const len1 = sourceArr[0].length;\n\n for (let i = 0; i < len0; i++) {\n if (!targetArr[i]) {\n targetArr[i] = Array.prototype.slice.call(sourceArr[i]);\n }\n else {\n copyArrShallow(targetArr[i], sourceArr[i], len1);\n }\n }\n }\n else {\n copyArrShallow(targetArr, sourceArr, len0);\n }\n\n targetArr.length = sourceArr.length;\n }\n }\n else {\n target[key] = source[key];\n }\n}\n\nfunction animateToShallow(\n animatable: Element,\n topKey: string,\n source: Dictionary,\n target: Dictionary,\n cfg: ElementAnimateConfig,\n animationProps: Dictionary | true,\n animators: Animator[],\n reverse: boolean // If `true`, animate from the `target` to current state.\n) {\n const animatableKeys: string[] = [];\n const changedKeys: string[] = [];\n const targetKeys = keys(target);\n const duration = cfg.duration;\n const delay = cfg.delay;\n const additive = cfg.additive;\n const setToFinal = cfg.setToFinal;\n const animateAll = !isObject(animationProps);\n for (let k = 0; k < targetKeys.length; k++) {\n const innerKey = targetKeys[k] as string;\n\n if (source[innerKey] != null\n && target[innerKey] != null // Can't animate between null value. assign directly. For example. stroke animate from #fff to null.\n && (animateAll || (animationProps as Dictionary)[innerKey])\n ) {\n if (isObject(target[innerKey]) && !isArrayLike(target[innerKey])) {\n if (topKey) {\n // logError('Only support 1 depth nest object animation.');\n // Assign directly.\n // TODO richText?\n if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n }\n continue;\n }\n animateToShallow(\n animatable,\n innerKey,\n source[innerKey],\n target[innerKey],\n cfg,\n animationProps && (animationProps as Dictionary)[innerKey],\n animators,\n reverse\n );\n }\n else {\n animatableKeys.push(innerKey);\n changedKeys.push(innerKey);\n }\n }\n else if (!reverse) {\n // Assign target value directly.\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n // Previous animation will be stopped on the changed keys.\n // So direct assign is also included.\n changedKeys.push(innerKey);\n }\n }\n\n const keyLen = animatableKeys.length;\n\n if (keyLen > 0\n // cfg.force is mainly for keep invoking onframe and ondone callback even if animation is not necessary.\n // So if there is already has animators. There is no need to create another animator if not necessary.\n // Or it will always add one more with empty target.\n || (cfg.force && !animators.length)\n ) {\n // Find last animator animating same prop.\n const existsAnimators = animatable.animators;\n let existsAnimatorsOnSameTarget: Animator[] = [];\n for (let i = 0; i < existsAnimators.length; i++) {\n // Use key string instead object reference because ref may be changed.\n if (existsAnimators[i].targetName === topKey) {\n existsAnimatorsOnSameTarget.push(existsAnimators[i]);\n }\n }\n\n if (!additive && existsAnimatorsOnSameTarget.length) {\n // Stop exists animation on specific tracks. Only one animator available for each property.\n // TODO Should invoke previous animation callback?\n for (let i = 0; i < existsAnimatorsOnSameTarget.length; i++) {\n const allAborted = existsAnimatorsOnSameTarget[i].stopTracks(changedKeys);\n if (allAborted) { // This animator can't be used.\n const idx = indexOf(existsAnimators, existsAnimatorsOnSameTarget[i]);\n existsAnimators.splice(idx, 1);\n }\n }\n }\n\n let revertedSource: Dictionary;\n let reversedTarget: Dictionary;\n let sourceClone: Dictionary;\n if (reverse) {\n reversedTarget = {};\n if (setToFinal) {\n revertedSource = {};\n }\n for (let i = 0; i < keyLen; i++) {\n const innerKey = animatableKeys[i];\n reversedTarget[innerKey] = source[innerKey];\n if (setToFinal) {\n revertedSource[innerKey] = target[innerKey];\n }\n else {\n // The usage of \"animateFrom\" expects that the element props has been updated dirctly to\n // \"final\" values outside, and input the \"from\" values here (i.e., in variable `target` here).\n // So here we assign the \"from\" values directly to element here (rather that in the next frame)\n // to prevent the \"final\" values from being read in any other places (like other running\n // animator during callbacks).\n // But if `setToFinal: true` this feature can not be satisfied.\n source[innerKey] = target[innerKey];\n }\n }\n }\n else if (setToFinal) {\n sourceClone = {};\n for (let i = 0; i < keyLen; i++) {\n const innerKey = animatableKeys[i];\n // NOTE: Must clone source after the stopTracks. The property may be modified in stopTracks.\n sourceClone[innerKey] = cloneValue(source[innerKey]);\n // Use copy, not change the original reference\n // Copy from target to source.\n copyValue(source, target, innerKey);\n }\n }\n\n const animator = new Animator(source, false, additive ? existsAnimatorsOnSameTarget : null);\n animator.targetName = topKey;\n if (cfg.scope) {\n animator.scope = cfg.scope;\n }\n\n if (setToFinal && revertedSource) {\n animator.whenWithKeys(0, revertedSource, animatableKeys);\n }\n if (sourceClone) {\n animator.whenWithKeys(0, sourceClone, animatableKeys);\n }\n\n animator.whenWithKeys(\n duration == null ? 500 : duration,\n reverse ? reversedTarget : target,\n animatableKeys\n ).delay(delay || 0);\n\n animatable.addAnimator(animator, topKey);\n animators.push(animator);\n }\n}\n\n\nexport default Element;\n", "/**\n * Group\u662F\u4E00\u4E2A\u5BB9\u5668\uFF0C\u53EF\u4EE5\u63D2\u5165\u5B50\u8282\u70B9\uFF0CGroup\u7684\u53D8\u6362\u4E5F\u4F1A\u88AB\u5E94\u7528\u5230\u5B50\u8282\u70B9\u4E0A\n * @module zrender/graphic/Group\n * @example\n * const Group = require('zrender/graphic/Group');\n * const Circle = require('zrender/graphic/shape/Circle');\n * const g = new Group();\n * g.position[0] = 100;\n * g.position[1] = 100;\n * g.add(new Circle({\n * style: {\n * x: 100,\n * y: 100,\n * r: 20,\n * }\n * }));\n * zr.add(g);\n */\n\nimport * as zrUtil from '../core/util';\nimport Element, { ElementProps } from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Displayable from './Displayable';\nimport { ZRenderType } from '../zrender';\n\nexport interface GroupProps extends ElementProps {\n}\n\nclass Group extends Element {\n\n readonly isGroup = true\n\n private _children: Element[] = []\n\n\n constructor(opts?: GroupProps) {\n super();\n\n this.attr(opts);\n }\n\n /**\n * Get children reference.\n */\n childrenRef() {\n return this._children;\n }\n\n /**\n * Get children copy.\n */\n children() {\n return this._children.slice();\n }\n\n /**\n * \u83B7\u53D6\u6307\u5B9A index \u7684\u513F\u5B50\u8282\u70B9\n */\n childAt(idx: number): Element {\n return this._children[idx];\n }\n\n /**\n * \u83B7\u53D6\u6307\u5B9A\u540D\u5B57\u7684\u513F\u5B50\u8282\u70B9\n */\n childOfName(name: string): Element {\n const children = this._children;\n for (let i = 0; i < children.length; i++) {\n if (children[i].name === name) {\n return children[i];\n }\n }\n }\n\n childCount(): number {\n return this._children.length;\n }\n\n /**\n * \u6DFB\u52A0\u5B50\u8282\u70B9\u5230\u6700\u540E\n */\n add(child: Element): Group {\n if (child) {\n if (child !== this && child.parent !== this) {\n this._children.push(child);\n this._doAdd(child);\n }\n if (child.__hostTarget) {\n throw 'This elemenet has been used as an attachment';\n }\n }\n\n return this;\n }\n\n /**\n * \u6DFB\u52A0\u5B50\u8282\u70B9\u5728 nextSibling \u4E4B\u524D\n */\n addBefore(child: Element, nextSibling: Element) {\n if (child && child !== this && child.parent !== this\n && nextSibling && nextSibling.parent === this) {\n\n const children = this._children;\n const idx = children.indexOf(nextSibling);\n\n if (idx >= 0) {\n children.splice(idx, 0, child);\n this._doAdd(child);\n }\n }\n\n return this;\n }\n\n replace(oldChild: Element, newChild: Element) {\n const idx = zrUtil.indexOf(this._children, oldChild);\n if (idx >= 0) {\n this.replaceAt(newChild, idx);\n }\n return this;\n }\n\n replaceAt(child: Element, index: number) {\n const children = this._children;\n const old = children[index];\n\n if (child && child !== this && child.parent !== this && child !== old) {\n children[index] = child;\n\n old.parent = null;\n const zr = this.__zr;\n if (zr) {\n old.removeSelfFromZr(zr);\n }\n\n this._doAdd(child);\n }\n\n return this;\n }\n\n _doAdd(child: Element) {\n if (child.parent) {\n // Parent must be a group\n (child.parent as Group).remove(child);\n }\n\n child.parent = this;\n\n const zr = this.__zr;\n if (zr && zr !== (child as Group).__zr) { // Only group has __storage\n\n child.addSelfToZr(zr);\n }\n\n zr && zr.refresh();\n }\n\n /**\n * Remove child\n * @param child\n */\n remove(child: Element) {\n const zr = this.__zr;\n const children = this._children;\n\n const idx = zrUtil.indexOf(children, child);\n if (idx < 0) {\n return this;\n }\n children.splice(idx, 1);\n\n child.parent = null;\n\n if (zr) {\n\n child.removeSelfFromZr(zr);\n }\n\n zr && zr.refresh();\n\n return this;\n }\n\n /**\n * Remove all children\n */\n removeAll() {\n const children = this._children;\n const zr = this.__zr;\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n child.parent = null;\n }\n children.length = 0;\n\n return this;\n }\n\n /**\n * \u904D\u5386\u6240\u6709\u5B50\u8282\u70B9\n */\n eachChild(\n cb: (this: Context, el: Element, index?: number) => void,\n context?: Context\n ) {\n const children = this._children;\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n cb.call(context, child, i);\n }\n return this;\n }\n\n /**\n * Visit all descendants.\n * Return false in callback to stop visit descendants of current node\n */\n // TODO Group itself should also invoke the callback.\n traverse(\n cb: (this: T, el: Element) => boolean | void,\n context?: T\n ) {\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n const stopped = cb.call(context, child);\n\n if (child.isGroup && !stopped) {\n child.traverse(cb, context);\n }\n }\n return this;\n }\n\n addSelfToZr(zr: ZRenderType) {\n super.addSelfToZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n child.addSelfToZr(zr);\n }\n }\n\n removeSelfFromZr(zr: ZRenderType) {\n super.removeSelfFromZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n child.removeSelfFromZr(zr);\n }\n }\n\n getBoundingRect(includeChildren?: Element[]): BoundingRect {\n // TODO Caching\n const tmpRect = new BoundingRect(0, 0, 0, 0);\n const children = includeChildren || this._children;\n const tmpMat: MatrixArray = [];\n let rect = null;\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n // TODO invisible?\n if (child.ignore || (child as Displayable).invisible) {\n continue;\n }\n\n const childRect = child.getBoundingRect();\n const transform = child.getLocalTransform(tmpMat);\n // TODO\n // The boundingRect cacluated by transforming original\n // rect may be bigger than the actual bundingRect when rotation\n // is used. (Consider a circle rotated aginst its center, where\n // the actual boundingRect should be the same as that not be\n // rotated.) But we can not find better approach to calculate\n // actual boundingRect yet, considering performance.\n if (transform) {\n BoundingRect.applyTransform(tmpRect, childRect, transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n return rect || tmpRect;\n }\n}\n\nGroup.prototype.type = 'group';\n// Storage will use childrenRef to get children to render.\nexport interface GroupLike extends Element {\n childrenRef(): Element[]\n}\n\nexport default Group;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The method \"quantile\" was copied from \"d3.js\".\n* (See more details in the comment of the method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst RADIAN_EPSILON = 1e-4;\n// Although chrome already enlarge this number to 100 for `toFixed`, but\n// we sill follow the spec for compatibility.\nconst ROUND_SUPPORTED_PRECISION_MAX = 20;\n\nfunction _trim(str: string): string {\n return str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Linear mapping a value from domain to range\n * @param val\n * @param domain Domain extent domain[0] can be bigger than domain[1]\n * @param range Range extent range[0] can be bigger than range[1]\n * @param clamp Default to be false\n */\nexport function linearMap(\n val: number,\n domain: number[],\n range: number[],\n clamp?: boolean\n): number {\n const d0 = domain[0];\n const d1 = domain[1];\n const r0 = range[0];\n const r1 = range[1];\n\n const subDomain = d1 - d0;\n const subRange = r1 - r0;\n\n if (subDomain === 0) {\n return subRange === 0\n ? r0\n : (r0 + r1) / 2;\n }\n\n // Avoid accuracy problem in edge, such as\n // 146.39 - 62.83 === 83.55999999999999.\n // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError\n // It is a little verbose for efficiency considering this method\n // is a hotspot.\n if (clamp) {\n if (subDomain > 0) {\n if (val <= d0) {\n return r0;\n }\n else if (val >= d1) {\n return r1;\n }\n }\n else {\n if (val >= d0) {\n return r0;\n }\n else if (val <= d1) {\n return r1;\n }\n }\n }\n else {\n if (val === d0) {\n return r0;\n }\n if (val === d1) {\n return r1;\n }\n }\n\n return (val - d0) / subDomain * subRange + r0;\n}\n\n/**\n * Convert a percent string to absolute number.\n * Returns NaN if percent is not a valid string or number\n */\nexport function parsePercent(percent: number | string, all: number): number {\n switch (percent) {\n case 'center':\n case 'middle':\n percent = '50%';\n break;\n case 'left':\n case 'top':\n percent = '0%';\n break;\n case 'right':\n case 'bottom':\n percent = '100%';\n break;\n }\n if (typeof percent === 'string') {\n if (_trim(percent).match(/%$/)) {\n return parseFloat(percent) / 100 * all;\n }\n\n return parseFloat(percent);\n }\n\n return percent == null ? NaN : +percent;\n}\n\n/**\n * (1) Fix rounding error of float numbers.\n * (2) Support return string to avoid scientific notation like '3.5e-7'.\n */\nexport function round(x: number | string, precision?: number): number;\nexport function round(x: number | string, precision: number, returnStr: false): number;\nexport function round(x: number | string, precision: number, returnStr: true): string;\nexport function round(x: number | string, precision?: number, returnStr?: boolean): string | number {\n if (precision == null) {\n precision = 10;\n }\n // Avoid range error\n precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX);\n // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'\n x = (+x).toFixed(precision);\n return (returnStr ? x : +x);\n}\n\n/**\n * Inplacd asc sort arr.\n * The input arr will be modified.\n */\nexport function asc(arr: T): T {\n arr.sort(function (a, b) {\n return a - b;\n });\n return arr;\n}\n\n/**\n * Get precision.\n */\nexport function getPrecision(val: string | number): number {\n val = +val;\n if (isNaN(val)) {\n return 0;\n }\n\n // It is much faster than methods converting number to string as follows\n // let tmp = val.toString();\n // return tmp.length - 1 - tmp.indexOf('.');\n // especially when precision is low\n // Notice:\n // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.\n // (see https://jsbench.me/2vkpcekkvw/1)\n // (2) If the val is less than for example 1e-15, the result may be incorrect.\n // (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)\n if (val > 1e-14) {\n let e = 1;\n for (let i = 0; i < 15; i++, e *= 10) {\n if (Math.round(val * e) / e === val) {\n return i;\n }\n }\n }\n\n return getPrecisionSafe(val);\n}\n\n/**\n * Get precision with slow but safe method\n */\nexport function getPrecisionSafe(val: string | number): number {\n // toLowerCase for: '3.4E-12'\n const str = val.toString().toLowerCase();\n\n // Consider scientific notation: '3.4e-12' '3.4e+12'\n const eIndex = str.indexOf('e');\n const exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0;\n const significandPartLen = eIndex > 0 ? eIndex : str.length;\n const dotIndex = str.indexOf('.');\n const decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex;\n return Math.max(0, decimalPartLen - exp);\n}\n\n/**\n * Minimal dicernible data precisioin according to a single pixel.\n */\nexport function getPixelPrecision(dataExtent: [number, number], pixelExtent: [number, number]): number {\n const log = Math.log;\n const LN10 = Math.LN10;\n const dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);\n const sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10);\n // toFixed() digits argument must be between 0 and 20.\n const precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);\n return !isFinite(precision) ? 20 : precision;\n}\n\n/**\n * Get a data of given precision, assuring the sum of percentages\n * in valueList is 1.\n * The largest remainer method is used.\n * https://en.wikipedia.org/wiki/Largest_remainder_method\n *\n * @param valueList a list of all data\n * @param idx index of the data to be processed in valueList\n * @param precision integer number showing digits of precision\n * @return percent ranging from 0 to 100\n */\nexport function getPercentWithPrecision(valueList: number[], idx: number, precision: number): number {\n if (!valueList[idx]) {\n return 0;\n }\n\n const sum = zrUtil.reduce(valueList, function (acc, val) {\n return acc + (isNaN(val) ? 0 : val);\n }, 0);\n if (sum === 0) {\n return 0;\n }\n\n const digits = Math.pow(10, precision);\n const votesPerQuota = zrUtil.map(valueList, function (val) {\n return (isNaN(val) ? 0 : val) / sum * digits * 100;\n });\n const targetSeats = digits * 100;\n\n const seats = zrUtil.map(votesPerQuota, function (votes) {\n // Assign automatic seats.\n return Math.floor(votes);\n });\n let currentSum = zrUtil.reduce(seats, function (acc, val) {\n return acc + val;\n }, 0);\n\n const remainder = zrUtil.map(votesPerQuota, function (votes, idx) {\n return votes - seats[idx];\n });\n\n // Has remainding votes.\n while (currentSum < targetSeats) {\n // Find next largest remainder.\n let max = Number.NEGATIVE_INFINITY;\n let maxId = null;\n for (let i = 0, len = remainder.length; i < len; ++i) {\n if (remainder[i] > max) {\n max = remainder[i];\n maxId = i;\n }\n }\n\n // Add a vote to max remainder.\n ++seats[maxId];\n remainder[maxId] = 0;\n ++currentSum;\n }\n\n return seats[idx] / digits;\n}\n\n/**\n * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004\n * See \n */\nexport function addSafe(val0: number, val1: number): number {\n const maxPrecision = Math.max(getPrecision(val0), getPrecision(val1));\n // const multiplier = Math.pow(10, maxPrecision);\n // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;\n const sum = val0 + val1;\n // // PENDING: support more?\n return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX\n ? sum : round(sum, maxPrecision);\n}\n\n// Number.MAX_SAFE_INTEGER, ie do not support.\nexport const MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * To 0 - 2 * PI, considering negative radian.\n */\nexport function remRadian(radian: number): number {\n const pi2 = Math.PI * 2;\n return (radian % pi2 + pi2) % pi2;\n}\n\n/**\n * @param {type} radian\n * @return {boolean}\n */\nexport function isRadianAroundZero(val: number): boolean {\n return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;\n}\n\n// eslint-disable-next-line\nconst TIME_REG = /^(?:(\\d{4})(?:[-\\/](\\d{1,2})(?:[-\\/](\\d{1,2})(?:[T ](\\d{1,2})(?::(\\d{1,2})(?::(\\d{1,2})(?:[.,](\\d+))?)?)?(Z|[\\+\\-]\\d\\d:?\\d\\d)?)?)?)?)?$/; // jshint ignore:line\n\n/**\n * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`\n * These values can be accepted:\n * + An instance of Date, represent a time in its own time zone.\n * + Or string in a subset of ISO 8601, only including:\n * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',\n * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',\n * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',\n * all of which will be treated as local time if time zone is not specified\n * (see ).\n * + Or other string format, including (all of which will be treated as loacal time):\n * '2012', '2012-3-1', '2012/3/1', '2012/03/01',\n * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'\n * + a timestamp, which represent a time in UTC.\n * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.\n */\nexport function parseDate(value: unknown): Date {\n if (value instanceof Date) {\n return value;\n }\n else if (typeof value === 'string') {\n // Different browsers parse date in different way, so we parse it manually.\n // Some other issues:\n // new Date('1970-01-01') is UTC,\n // new Date('1970/01/01') and new Date('1970-1-01') is local.\n // See issue #3623\n const match = TIME_REG.exec(value);\n\n if (!match) {\n // return Invalid Date.\n return new Date(NaN);\n }\n\n // Use local time when no timezone offset specifed.\n if (!match[8]) {\n // match[n] can only be string or undefined.\n // But take care of '12' + 1 => '121'.\n return new Date(\n +match[1],\n +(match[2] || 1) - 1,\n +match[3] || 1,\n +match[4] || 0,\n +(match[5] || 0),\n +match[6] || 0,\n match[7] ? +match[7].substring(0, 3) : 0\n );\n }\n // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,\n // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).\n // For example, system timezone is set as \"Time Zone: America/Toronto\",\n // then these code will get different result:\n // `new Date(1478411999999).getTimezoneOffset(); // get 240`\n // `new Date(1478412000000).getTimezoneOffset(); // get 300`\n // So we should not use `new Date`, but use `Date.UTC`.\n else {\n let hour = +match[4] || 0;\n if (match[8].toUpperCase() !== 'Z') {\n hour -= +match[8].slice(0, 3);\n }\n return new Date(Date.UTC(\n +match[1],\n +(match[2] || 1) - 1,\n +match[3] || 1,\n hour,\n +(match[5] || 0),\n +match[6] || 0,\n match[7] ? +match[7].substring(0, 3) : 0\n ));\n }\n }\n else if (value == null) {\n return new Date(NaN);\n }\n\n return new Date(Math.round(value as number));\n}\n\n/**\n * Quantity of a number. e.g. 0.1, 1, 10, 100\n *\n * @param val\n * @return\n */\nexport function quantity(val: number): number {\n return Math.pow(10, quantityExponent(val));\n}\n\n/**\n * Exponent of the quantity of a number\n * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3\n *\n * @param val non-negative value\n * @return\n */\nexport function quantityExponent(val: number): number {\n if (val === 0) {\n return 0;\n }\n\n let exp = Math.floor(Math.log(val) / Math.LN10);\n /**\n * exp is expected to be the rounded-down result of the base-10 log of val.\n * But due to the precision loss with Math.log(val), we need to restore it\n * using 10^exp to make sure we can get val back from exp. #11249\n */\n if (val / Math.pow(10, exp) >= 10) {\n exp++;\n }\n return exp;\n}\n\n/**\n * find a \u201Cnice\u201D number approximately equal to x. Round the number if round = true,\n * take ceiling if round = false. The primary observation is that the \u201Cnicest\u201D\n * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.\n *\n * See \"Nice Numbers for Graph Labels\" of Graphic Gems.\n *\n * @param val Non-negative value.\n * @param round\n * @return Niced number\n */\nexport function nice(val: number, round?: boolean): number {\n const exponent = quantityExponent(val);\n const exp10 = Math.pow(10, exponent);\n const f = val / exp10; // 1 <= f < 10\n let nf;\n if (round) {\n if (f < 1.5) {\n nf = 1;\n }\n else if (f < 2.5) {\n nf = 2;\n }\n else if (f < 4) {\n nf = 3;\n }\n else if (f < 7) {\n nf = 5;\n }\n else {\n nf = 10;\n }\n }\n else {\n if (f < 1) {\n nf = 1;\n }\n else if (f < 2) {\n nf = 2;\n }\n else if (f < 3) {\n nf = 3;\n }\n else if (f < 5) {\n nf = 5;\n }\n else {\n nf = 10;\n }\n }\n val = nf * exp10;\n\n // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).\n // 20 is the uppper bound of toFixed.\n return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;\n}\n\n/**\n * This code was copied from \"d3.js\"\n * .\n * See the license statement at the head of this file.\n * @param ascArr\n */\nexport function quantile(ascArr: number[], p: number): number {\n const H = (ascArr.length - 1) * p + 1;\n const h = Math.floor(H);\n const v = +ascArr[h - 1];\n const e = H - h;\n return e ? v + e * (ascArr[h] - v) : v;\n}\n\ntype IntervalItem = {\n interval: [number, number]\n close: [0 | 1, 0 | 1]\n};\n/**\n * Order intervals asc, and split them when overlap.\n * expect(numberUtil.reformIntervals([\n * {interval: [18, 62], close: [1, 1]},\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [1, 1]},\n * {interval: [62, 150], close: [1, 1]},\n * {interval: [106, 150], close: [1, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ])).toEqual([\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [0, 1]},\n * {interval: [18, 62], close: [0, 1]},\n * {interval: [62, 150], close: [0, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ]);\n * @param list, where `close` mean open or close\n * of the interval, and Infinity can be used.\n * @return The origin list, which has been reformed.\n */\nexport function reformIntervals(list: IntervalItem[]): IntervalItem[] {\n list.sort(function (a, b) {\n return littleThan(a, b, 0) ? -1 : 1;\n });\n\n let curr = -Infinity;\n let currClose = 1;\n for (let i = 0; i < list.length;) {\n const interval = list[i].interval;\n const close = list[i].close;\n\n for (let lg = 0; lg < 2; lg++) {\n if (interval[lg] <= curr) {\n interval[lg] = curr;\n close[lg] = (!lg ? 1 - currClose : 1) as 0 | 1;\n }\n curr = interval[lg];\n currClose = close[lg];\n }\n\n if (interval[0] === interval[1] && close[0] * close[1] !== 1) {\n list.splice(i, 1);\n }\n else {\n i++;\n }\n }\n\n return list;\n\n function littleThan(a: IntervalItem, b: IntervalItem, lg: number): boolean {\n return a.interval[lg] < b.interval[lg]\n || (\n a.interval[lg] === b.interval[lg]\n && (\n (a.close[lg] - b.close[lg] === (!lg ? 1 : -1))\n || (!lg && littleThan(a, b, 1))\n )\n );\n }\n}\n\n/**\n * [Numberic is defined as]:\n * `parseFloat(val) == val`\n * For example:\n * numeric:\n * typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,\n * and they rounded by white-spaces or line-terminal like ' -123 \\n ' (see es spec)\n * not-numeric:\n * null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',\n * empty string, string with only white-spaces or line-terminal (see es spec),\n * 0x12, '0x12', '-0x12', 012, '012', '-012',\n * non-string, ...\n *\n * @test See full test cases in `test/ut/spec/util/number.js`.\n * @return Must be a typeof number. If not numeric, return NaN.\n */\nexport function numericToNumber(val: unknown): number {\n const valFloat = parseFloat(val as string);\n return (\n valFloat == val // eslint-disable-line eqeqeq\n && (valFloat !== 0 || typeof val !== 'string' || val.indexOf('x') <= 0) // For case ' 0x0 '.\n ) ? valFloat : NaN;\n}\n\n/**\n * Definition of \"numeric\": see `numericToNumber`.\n */\nexport function isNumeric(val: unknown): val is number {\n return !isNaN(numericToNumber(val));\n}\n\n/**\n * Use random base to prevent users hard code depending on\n * this auto generated marker id.\n * @return An positive integer.\n */\nexport function getRandomIdBase(): number {\n return Math.round(Math.random() * 9);\n}\n\n/**\n * Get the greatest common dividor\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\nexport function getGreatestCommonDividor(a: number, b: number): number {\n if (b === 0) {\n return a;\n }\n return getGreatestCommonDividor(b, a % b);\n}\n\n/**\n * Get the least common multiple\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\nexport function getLeastCommonMultiple(a: number, b: number) {\n if (a == null) {\n return b;\n }\n if (b == null) {\n return a;\n }\n return a * b / getGreatestCommonDividor(a, b);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from './types';\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/src/core/util';\n\nconst ECHARTS_PREFIX = '[ECharts] ';\nconst storedLogs: Dictionary = {};\n\nconst hasConsole = typeof console !== 'undefined'\n // eslint-disable-next-line\n && console.warn && console.log;\n\nexport function log(str: string) {\n if (hasConsole) {\n // eslint-disable-next-line\n console.log(ECHARTS_PREFIX + str);\n }\n}\n\nexport function warn(str: string) {\n if (hasConsole) {\n console.warn(ECHARTS_PREFIX + str);\n }\n}\n\nexport function error(str: string) {\n if (hasConsole) {\n console.error(ECHARTS_PREFIX + str);\n }\n}\n\nexport function deprecateLog(str: string) {\n if (__DEV__) {\n if (storedLogs[str]) { // Not display duplicate message.\n return;\n }\n if (hasConsole) {\n storedLogs[str] = true;\n console.warn(ECHARTS_PREFIX + 'DEPRECATED: ' + str);\n }\n }\n}\n\nexport function deprecateReplaceLog(oldOpt: string, newOpt: string, scope?: string) {\n if (__DEV__) {\n deprecateLog((scope ? `[${scope}]` : '') + `${oldOpt} is deprecated, use ${newOpt} instead.`);\n }\n}\n\nexport function consoleLog(...args: unknown[]) {\n if (__DEV__) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && console.log) {\n console.log.apply(console, args);\n }\n /* eslint-enable no-console */\n }\n}\n\n/**\n * If in __DEV__ environment, get console printable message for users hint.\n * Parameters are separated by ' '.\n * @usuage\n * makePrintable('This is an error on', someVar, someObj);\n *\n * @param hintInfo anything about the current execution context to hint users.\n * @throws Error\n */\nexport function makePrintable(...hintInfo: unknown[]): string {\n let msg = '';\n\n if (__DEV__) {\n // Fuzzy stringify for print.\n // This code only exist in dev environment.\n const makePrintableStringIfPossible = (val: unknown): string => {\n return val === void 0 ? 'undefined'\n : val === Infinity ? 'Infinity'\n : val === -Infinity ? '-Infinity'\n : eqNaN(val) ? 'NaN'\n : val instanceof Date ? 'Date(' + val.toISOString() + ')'\n : isFunction(val) ? 'function () { ... }'\n : isRegExp(val) ? val + ''\n : null;\n };\n msg = map(hintInfo, arg => {\n if (isString(arg)) {\n // Print without quotation mark for some statement.\n return arg;\n }\n else {\n const printableStr = makePrintableStringIfPossible(arg);\n if (printableStr != null) {\n return printableStr;\n }\n else if (typeof JSON !== 'undefined' && JSON.stringify) {\n try {\n return JSON.stringify(arg, function (n, val) {\n const printableStr = makePrintableStringIfPossible(val);\n return printableStr == null ? val : printableStr;\n });\n // In most cases the info object is small, so do not line break.\n }\n catch (err) {\n return '?';\n }\n }\n else {\n return '?';\n }\n }\n }).join(' ');\n }\n\n return msg;\n}\n\n/**\n * @throws Error\n */\nexport function throwError(msg?: string) {\n throw new Error(msg);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n each,\n isObject,\n isArray,\n createHashMap,\n HashMap,\n map,\n assert,\n isString,\n indexOf,\n isStringSafe\n} from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport GlobalModel from '../model/Global';\nimport ComponentModel, {ComponentModelConstructor} from '../model/Component';\nimport SeriesData from '../data/SeriesData';\nimport {\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n DisplayStateHostOption,\n OptionDataItem,\n OptionDataValue,\n TooltipRenderMode,\n Payload,\n OptionId,\n OptionName,\n InterpolatableValue\n} from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesModel from '../model/Series';\nimport CartesianAxisModel from '../coord/cartesian/AxisModel';\nimport GridModel from '../coord/cartesian/GridModel';\nimport { isNumeric, getRandomIdBase, getPrecision, round } from './number';\nimport { interpolateNumber } from 'zrender/src/animation/Animator';\nimport { warn } from './log';\n\n/**\n * Make the name displayable. But we should\n * make sure it is not duplicated with user\n * specified name, so use '\\0';\n */\nconst DUMMY_COMPONENT_NAME_PREFIX = 'series\\0';\n\nconst INTERNAL_COMPONENT_ID_PREFIX = '\\0_ec_\\0';\n\n/**\n * If value is not array, then translate it to array.\n * @param {*} value\n * @return {Array} [value] or value\n */\nexport function normalizeToArray(value?: T | T[]): T[] {\n return value instanceof Array\n ? value\n : value == null\n ? []\n : [value];\n}\n\n/**\n * Sync default option between normal and emphasis like `position` and `show`\n * In case some one will write code like\n * label: {\n * show: false,\n * position: 'outside',\n * fontSize: 18\n * },\n * emphasis: {\n * label: { show: true }\n * }\n */\nexport function defaultEmphasis(\n opt: DisplayStateHostOption,\n key: string,\n subOpts: string[]\n): void {\n // Caution: performance sensitive.\n if (opt) {\n opt[key] = opt[key] || {};\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[key] = opt.emphasis[key] || {};\n\n // Default emphasis option from normal\n for (let i = 0, len = subOpts.length; i < len; i++) {\n const subOptName = subOpts[i];\n if (!opt.emphasis[key].hasOwnProperty(subOptName)\n && opt[key].hasOwnProperty(subOptName)\n ) {\n opt.emphasis[key][subOptName] = opt[key][subOptName];\n }\n }\n }\n}\n\nexport const TEXT_STYLE_OPTIONS = [\n 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth',\n 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY',\n 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY',\n 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding'\n] as const;\n\n// modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([\n// 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',\n// 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n// // FIXME: deprecated, check and remove it.\n// 'textStyle'\n// ]);\n\n/**\n * The method do not ensure performance.\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method retieves value from data.\n */\nexport function getDataItemValue(\n dataItem: OptionDataItem\n): OptionDataValue | OptionDataValue[] {\n return (isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date))\n ? (dataItem as Dictionary).value : dataItem;\n}\n\n/**\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method determine if dataItem has extra option besides value\n */\nexport function isDataItemOption(dataItem: OptionDataItem): boolean {\n return isObject(dataItem)\n && !(dataItem instanceof Array);\n // // markLine data can be array\n // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));\n}\n\n// Compatible with previous definition: id could be number (but not recommanded).\n// number and string are trade the same when compare.\n// number id will not be converted to string in option.\n// number id will be converted to string in component instance id.\nexport interface MappingExistingItem {\n id?: OptionId;\n name?: string;\n};\n/**\n * The array `MappingResult[]` exactly represents the content of the result\n * components array after merge.\n * The indices are the same as the `existings`.\n * Items will not be `null`/`undefined` even if the corresponding `existings` will be removed.\n */\ntype MappingResult = MappingResultItem[];\ninterface MappingResultItem {\n // Existing component instance.\n existing: T;\n // The mapped new component option.\n newOption: ComponentOption;\n // Mark that the new component has nothing to do with any of the old components.\n // So they won't share view. Also see `__requireNewView`.\n brandNew: boolean;\n // keyInfo for new component.\n // All of them will be assigned to a created component instance.\n keyInfo: {\n name: string,\n id: string,\n mainType: ComponentMainType,\n subType: ComponentSubType\n };\n}\n\ntype MappingToExistsMode = 'normalMerge' | 'replaceMerge' | 'replaceAll';\n\n/**\n * Mapping to existings for merge.\n *\n * Mode \"normalMege\":\n * The mapping result (merge result) will keep the order of the existing\n * component, rather than the order of new option. Because we should ensure\n * some specified index reference (like xAxisIndex) keep work.\n * And in most cases, \"merge option\" is used to update partial option but not\n * be expected to change the order.\n *\n * Mode \"replaceMege\":\n * (1) Only the id mapped components will be merged.\n * (2) Other existing components (except internal compoonets) will be removed.\n * (3) Other new options will be used to create new component.\n * (4) The index of the existing compoents will not be modified.\n * That means their might be \"hole\" after the removal.\n * The new components are created first at those available index.\n *\n * Mode \"replaceAll\":\n * This mode try to support that reproduce an echarts instance from another\n * echarts instance (via `getOption`) in some simple cases.\n * In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,\n * which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,\n * the \"hole\" in `newCmptOptions` will also be kept.\n * On the contrary, other modes try best to eliminate holes.\n * PENDING: This is an experimental mode yet.\n *\n * @return See the comment of .\n */\nexport function mappingToExists(\n existings: T[],\n newCmptOptions: ComponentOption[],\n mode: MappingToExistsMode\n): MappingResult {\n\n const isNormalMergeMode = mode === 'normalMerge';\n const isReplaceMergeMode = mode === 'replaceMerge';\n const isReplaceAllMode = mode === 'replaceAll';\n existings = existings || [];\n newCmptOptions = (newCmptOptions || []).slice();\n const existingIdIdxMap = createHashMap();\n\n // Validate id and name on user input option.\n each(newCmptOptions, function (cmptOption, index) {\n if (!isObject(cmptOption)) {\n newCmptOptions[index] = null;\n return;\n }\n\n if (__DEV__) {\n // There is some legacy case that name is set as `false`.\n // But should work normally rather than throw error.\n if (cmptOption.id != null && !isValidIdOrName(cmptOption.id)) {\n warnInvalidateIdOrName(cmptOption.id);\n }\n if (cmptOption.name != null && !isValidIdOrName(cmptOption.name)) {\n warnInvalidateIdOrName(cmptOption.name);\n }\n }\n });\n\n const result = prepareResult(existings, existingIdIdxMap, mode);\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingById(result, existings, existingIdIdxMap, newCmptOptions);\n }\n\n if (isNormalMergeMode) {\n mappingByName(result, newCmptOptions);\n }\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingByIndex(result, newCmptOptions, isReplaceMergeMode);\n }\n else if (isReplaceAllMode) {\n mappingInReplaceAllMode(result, newCmptOptions);\n }\n\n makeIdAndName(result);\n\n // The array `result` MUST NOT contain elided items, otherwise the\n // forEach will ommit those items and result in incorrect result.\n return result;\n}\n\nfunction prepareResult(\n existings: T[],\n existingIdIdxMap: HashMap,\n mode: MappingToExistsMode\n): MappingResultItem[] {\n const result: MappingResultItem[] = [];\n\n if (mode === 'replaceAll') {\n return result;\n }\n\n // Do not use native `map` to in case that the array `existings`\n // contains elided items, which will be ommited.\n for (let index = 0; index < existings.length; index++) {\n const existing = existings[index];\n // Because of replaceMerge, `existing` may be null/undefined.\n if (existing && existing.id != null) {\n existingIdIdxMap.set(existing.id, index);\n }\n // For non-internal-componnets:\n // Mode \"normalMerge\": all existings kept.\n // Mode \"replaceMerge\": all existing removed unless mapped by id.\n // For internal-components:\n // go with \"replaceMerge\" approach in both mode.\n result.push({\n existing: (mode === 'replaceMerge' || isComponentIdInternal(existing))\n ? null\n : existing,\n newOption: null,\n keyInfo: null,\n brandNew: null\n });\n }\n return result;\n}\n\nfunction mappingById(\n result: MappingResult,\n existings: T[],\n existingIdIdxMap: HashMap,\n newCmptOptions: ComponentOption[]\n): void {\n // Mapping by id if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.id == null) {\n return;\n }\n const optionId = makeComparableKey(cmptOption.id);\n const existingIdx = existingIdIdxMap.get(optionId);\n if (existingIdx != null) {\n const resultItem = result[existingIdx];\n assert(\n !resultItem.newOption,\n 'Duplicated option on id \"' + optionId + '\".'\n );\n resultItem.newOption = cmptOption;\n // In both mode, if id matched, new option will be merged to\n // the existings rather than creating new component model.\n resultItem.existing = existings[existingIdx];\n newCmptOptions[index] = null;\n }\n });\n}\n\nfunction mappingByName(\n result: MappingResult,\n newCmptOptions: ComponentOption[]\n): void {\n // Mapping by name if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.name == null) {\n return;\n }\n for (let i = 0; i < result.length; i++) {\n const existing = result[i].existing;\n if (!result[i].newOption // Consider name: two map to one.\n // Can not match when both ids existing but different.\n && existing\n && (existing.id == null || cmptOption.id == null)\n && !isComponentIdInternal(cmptOption)\n && !isComponentIdInternal(existing)\n && keyExistAndEqual('name', existing, cmptOption)\n ) {\n result[i].newOption = cmptOption;\n newCmptOptions[index] = null;\n return;\n }\n }\n });\n}\n\nfunction mappingByIndex(\n result: MappingResult,\n newCmptOptions: ComponentOption[],\n brandNew: boolean\n): void {\n each(newCmptOptions, function (cmptOption) {\n if (!cmptOption) {\n return;\n }\n\n // Find the first place that not mapped by id and not internal component (consider the \"hole\").\n let resultItem;\n let nextIdx = 0;\n while (\n // Be `!resultItem` only when `nextIdx >= result.length`.\n (resultItem = result[nextIdx])\n // (1) Existing models that already have id should be able to mapped to. Because\n // after mapping performed, model will always be assigned with an id if user not given.\n // After that all models have id.\n // (2) If new option has id, it can only set to a hole or append to the last. It should\n // not be merged to the existings with different id. Because id should not be overwritten.\n // (3) Name can be overwritten, because axis use name as 'show label text'.\n && (\n resultItem.newOption\n || isComponentIdInternal(resultItem.existing)\n || (\n // In mode \"replaceMerge\", here no not-mapped-non-internal-existing.\n resultItem.existing\n && cmptOption.id != null\n && !keyExistAndEqual('id', cmptOption, resultItem.existing)\n )\n )\n ) {\n nextIdx++;\n }\n\n if (resultItem) {\n resultItem.newOption = cmptOption;\n resultItem.brandNew = brandNew;\n }\n else {\n result.push({\n newOption: cmptOption,\n brandNew: brandNew,\n existing: null,\n keyInfo: null\n });\n }\n nextIdx++;\n });\n}\n\nfunction mappingInReplaceAllMode(\n result: MappingResult,\n newCmptOptions: ComponentOption[]\n): void {\n each(newCmptOptions, function (cmptOption) {\n // The feature \"reproduce\" requires \"hole\" will also reproduced\n // in case that compoennt index referring are broken.\n result.push({\n newOption: cmptOption,\n brandNew: true,\n existing: null,\n keyInfo: null\n });\n });\n}\n\n/**\n * Make id and name for mapping result (result of mappingToExists)\n * into `keyInfo` field.\n */\nfunction makeIdAndName(\n mapResult: MappingResult\n): void {\n // We use this id to hash component models and view instances\n // in echarts. id can be specified by user, or auto generated.\n\n // The id generation rule ensures new view instance are able\n // to mapped to old instance when setOption are called in\n // no-merge mode. So we generate model id by name and plus\n // type in view id.\n\n // name can be duplicated among components, which is convenient\n // to specify multi components (like series) by one name.\n\n // Ensure that each id is distinct.\n const idMap = createHashMap();\n\n each(mapResult, function (item) {\n const existing = item.existing;\n existing && idMap.set(existing.id, item);\n });\n\n each(mapResult, function (item) {\n const opt = item.newOption;\n\n // Force ensure id not duplicated.\n assert(\n !opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item,\n 'id duplicates: ' + (opt && opt.id)\n );\n\n opt && opt.id != null && idMap.set(opt.id, item);\n !item.keyInfo && (item.keyInfo = {} as MappingResultItem['keyInfo']);\n });\n\n // Make name and id.\n each(mapResult, function (item, index) {\n const existing = item.existing;\n const opt = item.newOption;\n const keyInfo = item.keyInfo;\n\n if (!isObject(opt)) {\n return;\n }\n\n // name can be overwitten. Consider case: axis.name = '20km'.\n // But id generated by name will not be changed, which affect\n // only in that case: setOption with 'not merge mode' and view\n // instance will be recreated, which can be accepted.\n keyInfo.name = opt.name != null\n ? makeComparableKey(opt.name)\n : existing\n ? existing.name\n // Avoid diffferent series has the same name,\n // because name may be used like in color pallet.\n : DUMMY_COMPONENT_NAME_PREFIX + index;\n\n if (existing) {\n keyInfo.id = makeComparableKey(existing.id);\n }\n else if (opt.id != null) {\n keyInfo.id = makeComparableKey(opt.id);\n }\n else {\n // Consider this situatoin:\n // optionA: [{name: 'a'}, {name: 'a'}, {..}]\n // optionB [{..}, {name: 'a'}, {name: 'a'}]\n // Series with the same name between optionA and optionB\n // should be mapped.\n let idNum = 0;\n do {\n keyInfo.id = '\\0' + keyInfo.name + '\\0' + idNum++;\n }\n while (idMap.get(keyInfo.id));\n }\n\n idMap.set(keyInfo.id, item);\n });\n}\n\nfunction keyExistAndEqual(\n attr: 'id' | 'name',\n obj1: { id?: OptionId, name?: OptionName },\n obj2: { id?: OptionId, name?: OptionName }\n): boolean {\n const key1 = convertOptionIdName(obj1[attr], null);\n const key2 = convertOptionIdName(obj2[attr], null);\n // See `MappingExistingItem`. `id` and `name` trade string equals to number.\n return key1 != null && key2 != null && key1 === key2;\n}\n\n/**\n * @return return null if not exist.\n */\nfunction makeComparableKey(val: unknown): string {\n if (__DEV__) {\n if (val == null) {\n throw new Error();\n }\n }\n return convertOptionIdName(val, '');\n}\n\nexport function convertOptionIdName(idOrName: unknown, defaultValue: string): string {\n if (idOrName == null) {\n return defaultValue;\n }\n const type = typeof idOrName;\n return type === 'string'\n ? idOrName as string\n : (type === 'number' || isStringSafe(idOrName))\n ? idOrName + ''\n : defaultValue;\n}\n\nfunction warnInvalidateIdOrName(idOrName: unknown) {\n if (__DEV__) {\n warn('`' + idOrName + '` is invalid id or name. Must be a string or number.');\n }\n}\n\nfunction isValidIdOrName(idOrName: unknown): boolean {\n return isStringSafe(idOrName) || isNumeric(idOrName);\n}\n\nexport function isNameSpecified(componentModel: ComponentModel): boolean {\n const name = componentModel.name;\n // Is specified when `indexOf` get -1 or > 0.\n return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX));\n}\n\n/**\n * @public\n * @param {Object} cmptOption\n * @return {boolean}\n */\nexport function isComponentIdInternal(cmptOption: { id?: MappingExistingItem['id'] }): boolean {\n return cmptOption\n && cmptOption.id != null\n && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0;\n}\n\nexport function makeInternalComponentId(idSuffix: string) {\n return INTERNAL_COMPONENT_ID_PREFIX + idSuffix;\n}\n\nexport function setComponentTypeToKeyInfo(\n mappingResult: MappingResult,\n mainType: ComponentMainType,\n componentModelCtor: ComponentModelConstructor\n): void {\n // Set mainType and complete subType.\n each(mappingResult, function (item) {\n const newOption = item.newOption;\n if (isObject(newOption)) {\n item.keyInfo.mainType = mainType;\n item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor);\n }\n });\n}\n\nfunction determineSubType(\n mainType: ComponentMainType,\n newCmptOption: ComponentOption,\n existComponent: { subType?: ComponentSubType },\n componentModelCtor: ComponentModelConstructor\n): ComponentSubType {\n const subType = newCmptOption.type\n ? newCmptOption.type\n : existComponent\n ? existComponent.subType\n // Use determineSubType only when there is no existComponent.\n : (componentModelCtor as ComponentModelConstructor).determineSubType(mainType, newCmptOption);\n\n // tooltip, markline, markpoint may always has no subType\n return subType;\n}\n\n\ntype BatchItem = {\n seriesId: OptionId,\n dataIndex: number | number[]\n};\n/**\n * A helper for removing duplicate items between batchA and batchB,\n * and in themselves, and categorize by series.\n *\n * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @return result: [resultBatchA, resultBatchB]\n */\nexport function compressBatches(\n batchA: BatchItem[],\n batchB: BatchItem[]\n): [BatchItem[], BatchItem[]] {\n\n type InnerMap = {\n [seriesId: string]: {\n [dataIndex: string]: 1\n }\n };\n const mapA = {} as InnerMap;\n const mapB = {} as InnerMap;\n\n makeMap(batchA || [], mapA);\n makeMap(batchB || [], mapB, mapA);\n\n return [mapToArray(mapA), mapToArray(mapB)];\n\n function makeMap(sourceBatch: BatchItem[], map: InnerMap, otherMap?: InnerMap): void {\n for (let i = 0, len = sourceBatch.length; i < len; i++) {\n const seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);\n if (seriesId == null) {\n return;\n }\n const dataIndices = normalizeToArray(sourceBatch[i].dataIndex);\n const otherDataIndices = otherMap && otherMap[seriesId];\n\n for (let j = 0, lenj = dataIndices.length; j < lenj; j++) {\n const dataIndex = dataIndices[j];\n\n if (otherDataIndices && otherDataIndices[dataIndex]) {\n otherDataIndices[dataIndex] = null;\n }\n else {\n (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;\n }\n }\n }\n }\n\n function mapToArray(map: Dictionary, isData?: boolean): any[] {\n const result = [];\n for (const i in map) {\n if (map.hasOwnProperty(i) && map[i] != null) {\n if (isData) {\n result.push(+i);\n }\n else {\n const dataIndices = mapToArray(map[i], true);\n dataIndices.length && result.push({seriesId: i, dataIndex: dataIndices});\n }\n }\n }\n return result;\n }\n}\n\n/**\n * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name\n * each of which can be Array or primary type.\n * @return dataIndex If not found, return undefined/null.\n */\nexport function queryDataIndex(data: SeriesData, payload: Payload & {\n dataIndexInside?: number | number[]\n dataIndex?: number | number[]\n name?: string | string[]\n}): number | number[] {\n if (payload.dataIndexInside != null) {\n return payload.dataIndexInside;\n }\n else if (payload.dataIndex != null) {\n return isArray(payload.dataIndex)\n ? map(payload.dataIndex, function (value) {\n return data.indexOfRawIndex(value);\n })\n : data.indexOfRawIndex(payload.dataIndex);\n }\n else if (payload.name != null) {\n return isArray(payload.name)\n ? map(payload.name, function (value) {\n return data.indexOfName(value);\n })\n : data.indexOfName(payload.name);\n }\n}\n\n/**\n * Enable property storage to any host object.\n * Notice: Serialization is not supported.\n *\n * For example:\n * let inner = zrUitl.makeInner();\n *\n * function some1(hostObj) {\n * inner(hostObj).someProperty = 1212;\n * ...\n * }\n * function some2() {\n * let fields = inner(this);\n * fields.someProperty1 = 1212;\n * fields.someProperty2 = 'xx';\n * ...\n * }\n *\n * @return {Function}\n */\nexport function makeInner() {\n const key = '__ec_inner_' + innerUniqueIndex++;\n return function (hostObj: Host): T {\n return (hostObj as any)[key] || ((hostObj as any)[key] = {});\n };\n}\nlet innerUniqueIndex = getRandomIdBase();\n\n/**\n * If string, e.g., 'geo', means {geoIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex, seriesId, seriesName,\n * geoIndex, geoId, geoName,\n * bmapIndex, bmapId, bmapName,\n * xAxisIndex, xAxisId, xAxisName,\n * yAxisIndex, yAxisId, yAxisName,\n * gridIndex, gridId, gridName,\n * ... (can be extended)\n * }\n * Each properties can be number|string|Array.|Array.\n * For example, a finder could be\n * {\n * seriesIndex: 3,\n * geoId: ['aa', 'cc'],\n * gridName: ['xx', 'rr']\n * }\n * xxxIndex can be set as 'all' (means all xxx) or 'none' (means not specify)\n * If nothing or null/undefined specified, return nothing.\n * If both `abcIndex`, `abcId`, `abcName` specified, only one work.\n * The priority is: index > id > name, the same with `ecModel.queryComponents`.\n */\nexport type ModelFinderIndexQuery = number | number[] | 'all' | 'none' | false;\nexport type ModelFinderIdQuery = OptionId | OptionId[];\nexport type ModelFinderNameQuery = OptionId | OptionId[];\n// If string, like 'series', means { seriesIndex: 0 }.\nexport type ModelFinder = string | ModelFinderObject;\nexport type ModelFinderObject = {\n seriesIndex?: ModelFinderIndexQuery, seriesId?: ModelFinderIdQuery, seriesName?: ModelFinderNameQuery\n geoIndex?: ModelFinderIndexQuery, geoId?: ModelFinderIdQuery, geoName?: ModelFinderNameQuery\n bmapIndex?: ModelFinderIndexQuery, bmapId?: ModelFinderIdQuery, bmapName?: ModelFinderNameQuery\n xAxisIndex?: ModelFinderIndexQuery, xAxisId?: ModelFinderIdQuery, xAxisName?: ModelFinderNameQuery\n yAxisIndex?: ModelFinderIndexQuery, yAxisId?: ModelFinderIdQuery, yAxisName?: ModelFinderNameQuery\n gridIndex?: ModelFinderIndexQuery, gridId?: ModelFinderIdQuery, gridName?: ModelFinderNameQuery\n dataIndex?: number, dataIndexInside?: number\n // ... (can be extended)\n};\n/**\n * {\n * seriesModels: [seriesModel1, seriesModel2],\n * seriesModel: seriesModel1, // The first model\n * geoModels: [geoModel1, geoModel2],\n * geoModel: geoModel1, // The first model\n * ...\n * }\n */\nexport type ParsedModelFinder = {\n // other components\n [key: string]: ComponentModel | ComponentModel[] | undefined;\n};\n\nexport type ParsedModelFinderKnown = ParsedModelFinder & {\n seriesModels?: SeriesModel[];\n seriesModel?: SeriesModel;\n xAxisModels?: CartesianAxisModel[];\n xAxisModel?: CartesianAxisModel;\n yAxisModels?: CartesianAxisModel[];\n yAxisModel?: CartesianAxisModel;\n gridModels?: GridModel[];\n gridModel?: GridModel;\n dataIndex?: number;\n dataIndexInside?: number;\n};\n\n/**\n * The same behavior as `component.getReferringComponents`.\n */\nexport function parseFinder(\n ecModel: GlobalModel,\n finderInput: ModelFinder,\n opt?: {\n // If no main type specified, use this main type.\n defaultMainType?: ComponentMainType;\n // If pervided, types out of this list will be ignored.\n includeMainTypes?: ComponentMainType[];\n enableAll?: boolean;\n enableNone?: boolean;\n }\n): ParsedModelFinder {\n const { mainTypeSpecified, queryOptionMap, others } = preParseFinder(finderInput, opt);\n const result = others as ParsedModelFinderKnown;\n\n const defaultMainType = opt ? opt.defaultMainType : null;\n if (!mainTypeSpecified && defaultMainType) {\n queryOptionMap.set(defaultMainType, {});\n }\n\n queryOptionMap.each(function (queryOption, mainType) {\n const queryResult = queryReferringComponents(\n ecModel,\n mainType,\n queryOption,\n {\n useDefault: defaultMainType === mainType,\n enableAll: (opt && opt.enableAll != null) ? opt.enableAll : true,\n enableNone: (opt && opt.enableNone != null) ? opt.enableNone : true\n }\n );\n result[mainType + 'Models'] = queryResult.models;\n result[mainType + 'Model'] = queryResult.models[0];\n });\n\n return result;\n}\n\nexport function preParseFinder(\n finderInput: ModelFinder,\n opt?: {\n // If pervided, types out of this list will be ignored.\n includeMainTypes?: ComponentMainType[];\n }\n): {\n mainTypeSpecified: boolean;\n queryOptionMap: HashMap;\n others: Partial>\n} {\n let finder: ModelFinderObject;\n if (isString(finderInput)) {\n const obj = {};\n (obj as any)[finderInput + 'Index'] = 0;\n finder = obj;\n }\n else {\n finder = finderInput;\n }\n\n const queryOptionMap = createHashMap();\n const others = {} as Partial>;\n let mainTypeSpecified = false;\n\n each(finder, function (value, key) {\n // Exclude 'dataIndex' and other illgal keys.\n if (key === 'dataIndex' || key === 'dataIndexInside') {\n others[key] = value as number;\n return;\n }\n\n const parsedKey = key.match(/^(\\w+)(Index|Id|Name)$/) || [];\n const mainType = parsedKey[1];\n const queryType = (parsedKey[2] || '').toLowerCase() as keyof QueryReferringUserOption;\n\n if (\n !mainType\n || !queryType\n || (opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0)\n ) {\n return;\n }\n\n mainTypeSpecified = mainTypeSpecified || !!mainType;\n\n const queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {});\n queryOption[queryType] = value as any;\n });\n\n return { mainTypeSpecified, queryOptionMap, others };\n}\n\n\nexport type QueryReferringUserOption = {\n index?: ModelFinderIndexQuery,\n id?: ModelFinderIdQuery,\n name?: ModelFinderNameQuery,\n};\n\nexport const SINGLE_REFERRING: QueryReferringOpt = { useDefault: true, enableAll: false, enableNone: false };\nexport const MULTIPLE_REFERRING: QueryReferringOpt = { useDefault: false, enableAll: true, enableNone: true };\n\nexport type QueryReferringOpt = {\n // Whether to use the first componet as the default if none of index/id/name are specified.\n useDefault?: boolean;\n // Whether to enable `'all'` on index option.\n enableAll?: boolean;\n // Whether to enable `'none'`/`false` on index option.\n enableNone?: boolean;\n};\n\nexport function queryReferringComponents(\n ecModel: GlobalModel,\n mainType: ComponentMainType,\n userOption: QueryReferringUserOption,\n opt?: QueryReferringOpt\n): {\n // Always be array rather than null/undefined, which is convenient to use.\n models: ComponentModel[];\n // Whether there is indexOption/id/name specified\n specified: boolean;\n} {\n opt = opt || SINGLE_REFERRING as QueryReferringOpt;\n let indexOption = userOption.index;\n let idOption = userOption.id;\n let nameOption = userOption.name;\n\n const result = {\n models: null as ComponentModel[],\n specified: indexOption != null || idOption != null || nameOption != null\n };\n\n if (!result.specified) {\n // Use the first as default if `useDefault`.\n let firstCmpt;\n result.models = (\n opt.useDefault && (firstCmpt = ecModel.getComponent(mainType))\n ) ? [firstCmpt] : [];\n return result;\n }\n\n if (indexOption === 'none' || indexOption === false) {\n assert(opt.enableNone, '`\"none\"` or `false` is not a valid value on index option.');\n result.models = [];\n return result;\n }\n\n // `queryComponents` will return all components if\n // both all of index/id/name are null/undefined.\n if (indexOption === 'all') {\n assert(opt.enableAll, '`\"all\"` is not a valid value on index option.');\n indexOption = idOption = nameOption = null;\n }\n result.models = ecModel.queryComponents({\n mainType: mainType,\n index: indexOption as number | number[],\n id: idOption,\n name: nameOption\n });\n return result;\n}\n\nexport function setAttribute(dom: HTMLElement, key: string, value: any) {\n dom.setAttribute\n ? dom.setAttribute(key, value)\n : ((dom as any)[key] = value);\n}\n\nexport function getAttribute(dom: HTMLElement, key: string): any {\n return dom.getAttribute\n ? dom.getAttribute(key)\n : (dom as any)[key];\n}\n\nexport function getTooltipRenderMode(renderModeOption: TooltipRenderMode | 'auto'): TooltipRenderMode {\n if (renderModeOption === 'auto') {\n // Using html when `document` exists, use richText otherwise\n return env.domSupported ? 'html' : 'richText';\n }\n else {\n return renderModeOption || 'html';\n }\n}\n\n/**\n * Group a list by key.\n */\nexport function groupData(\n array: T[],\n getKey: (item: T) => R // return key\n): {\n keys: R[],\n buckets: HashMap // hasmap key: the key returned by `getKey`.\n} {\n const buckets = createHashMap();\n const keys: R[] = [];\n\n each(array, function (item) {\n const key = getKey(item);\n (buckets.get(key)\n || (keys.push(key), buckets.set(key, []))\n ).push(item);\n });\n\n return {\n keys: keys,\n buckets: buckets\n };\n}\n\n\n/**\n * Interpolate raw values of a series with percent\n *\n * @param data data\n * @param labelModel label model of the text element\n * @param sourceValue start value. May be null/undefined when init.\n * @param targetValue end value\n * @param percent 0~1 percentage; 0 uses start value while 1 uses end value\n * @return interpolated values\n * If `sourceValue` and `targetValue` are `number`, return `number`.\n * If `sourceValue` and `targetValue` are `string`, return `string`.\n * If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.\n * Other cases do not supported.\n */\nexport function interpolateRawValues(\n data: SeriesData,\n precision: number | 'auto',\n sourceValue: InterpolatableValue,\n targetValue: InterpolatableValue,\n percent: number\n): InterpolatableValue {\n const isAutoPrecision = precision == null || precision === 'auto';\n\n if (targetValue == null) {\n return targetValue;\n }\n\n if (typeof targetValue === 'number') {\n const value = interpolateNumber(\n sourceValue as number || 0,\n targetValue as number,\n percent\n );\n return round(\n value,\n isAutoPrecision ? Math.max(\n getPrecision(sourceValue as number || 0),\n getPrecision(targetValue as number)\n )\n : precision as number\n );\n }\n else if (typeof targetValue === 'string') {\n return percent < 1 ? sourceValue : targetValue;\n }\n else {\n const interpolated = [];\n const leftArr = sourceValue as (string | number)[];\n const rightArr = targetValue as (string | number[]);\n const length = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n for (let i = 0; i < length; ++i) {\n const info = data.getDimensionInfo(i);\n // Don't interpolate ordinal dims\n if (info && info.type === 'ordinal') {\n // In init, there is no `sourceValue`, but should better not to get undefined result.\n interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i] as number;\n }\n else {\n const leftVal = leftArr && leftArr[i] ? leftArr[i] as number : 0;\n const rightVal = rightArr[i] as number;\n const value = interpolateNumber(leftVal, rightVal, percent);\n interpolated[i] = round(\n value,\n isAutoPrecision ? Math.max(\n getPrecision(leftVal),\n getPrecision(rightVal)\n )\n : precision as number\n );\n }\n }\n return interpolated;\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { ComponentFullType, ComponentTypeInfo, ComponentMainType, ComponentSubType } from './types';\n\nconst TYPE_DELIMITER = '.';\nconst IS_CONTAINER = '___EC__COMPONENT__CONTAINER___' as const;\nconst IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___' as const;\n\n/**\n * Notice, parseClassType('') should returns {main: '', sub: ''}\n * @public\n */\nexport function parseClassType(componentType: ComponentFullType): ComponentTypeInfo {\n const ret = {main: '', sub: ''};\n if (componentType) {\n const typeArr = componentType.split(TYPE_DELIMITER);\n ret.main = typeArr[0] || '';\n ret.sub = typeArr[1] || '';\n }\n return ret;\n}\n\n/**\n * @public\n */\nfunction checkClassType(componentType: ComponentFullType): void {\n zrUtil.assert(\n /^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType),\n 'componentType \"' + componentType + '\" illegal'\n );\n}\n\nexport function isExtendedClass(clz: any): boolean {\n return !!(clz && clz[IS_EXTENDED_CLASS]);\n}\n\n\nexport interface ExtendableConstructor {\n new (...args: any): any;\n $constructor?: new (...args: any) => any;\n extend: (proto: {[name: string]: any}) => ExtendableConstructor;\n superCall: (context: any, methodName: string, ...args: any) => any;\n superApply: (context: any, methodName: string, args: []) => any;\n superClass?: ExtendableConstructor;\n [IS_EXTENDED_CLASS]?: boolean;\n}\n\n/**\n * Implements `ExtendableConstructor` for `rootClz`.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ExtendableConstructor\n * enableClassExtend(Xxx as XxxConstructor);\n * ```\n */\nexport function enableClassExtend(rootClz: ExtendableConstructor, mandatoryMethods?: string[]): void {\n\n rootClz.$constructor = rootClz; // FIXME: not necessary?\n\n rootClz.extend = function (proto: Dictionary) {\n if (__DEV__) {\n zrUtil.each(mandatoryMethods, function (method) {\n if (!proto[method]) {\n console.warn(\n 'Method `' + method + '` should be implemented'\n + (proto.type ? ' in ' + proto.type : '') + '.'\n );\n }\n });\n }\n\n const superClass = this;\n // For backward compat, we both support ts class inheritance and this\n // \"extend\" approach.\n // The constructor should keep the same behavior as ts class inheritance:\n // If this constructor/$constructor is not declared, auto invoke the super\n // constructor.\n // If this constructor/$constructor is declared, it is responsible for\n // calling the super constructor.\n function ExtendedClass(this: any, ...args: any[]) {\n if (!proto.$constructor) {\n\n if (!isESClass(superClass)) {\n // Will throw error if superClass is an es6 native class.\n superClass.apply(this, arguments);\n }\n else {\n const ins = zrUtil.createObject(\n // @ts-ignore\n ExtendedClass.prototype, new superClass(...args)\n );\n return ins;\n }\n }\n else {\n proto.$constructor.apply(this, arguments);\n }\n }\n ExtendedClass[IS_EXTENDED_CLASS] = true;\n\n zrUtil.extend(ExtendedClass.prototype, proto);\n\n ExtendedClass.extend = this.extend;\n ExtendedClass.superCall = superCall;\n ExtendedClass.superApply = superApply;\n zrUtil.inherits(ExtendedClass, this);\n ExtendedClass.superClass = superClass;\n\n return ExtendedClass as unknown as ExtendableConstructor;\n };\n}\n\nfunction isESClass(fn: unknown): boolean {\n return typeof fn === 'function'\n && /^class\\s/.test(Function.prototype.toString.call(fn));\n}\n\n/**\n * A work around to both support ts extend and this extend mechanism.\n * on sub-class.\n * @usage\n * ```ts\n * class Component { ... }\n * classUtil.enableClassExtend(Component);\n * classUtil.enableClassManagement(Component, {registerWhenExtend: true});\n *\n * class Series extends Component { ... }\n * // Without calling `markExtend`, `registerWhenExtend` will not work.\n * Component.markExtend(Series);\n * ```\n */\nexport function mountExtend(SubClz: any, SupperClz: any): void {\n SubClz.extend = SupperClz.extend;\n}\n\n\nexport interface CheckableConstructor {\n new (...args: any): any;\n isInstance: (ins: any) => boolean;\n}\n\n// A random offset.\nlet classBase = Math.round(Math.random() * 10);\n\n/**\n * Implements `CheckableConstructor` for `target`.\n * Can not use instanceof, consider different scope by\n * cross domain or es module import in ec extensions.\n * Mount a method \"isInstance()\" to Clz.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & CheckableConstructor;\n * enableClassCheck(Xxx as XxxConstructor)\n * ```\n */\nexport function enableClassCheck(target: CheckableConstructor): void {\n const classAttr = ['__\\0is_clz', classBase++].join('_');\n target.prototype[classAttr] = true;\n\n if (__DEV__) {\n zrUtil.assert(!target.isInstance, 'The method \"is\" can not be defined.');\n }\n\n target.isInstance = function (obj) {\n return !!(obj && obj[classAttr]);\n };\n}\n\n// superCall should have class info, which can not be fetch from 'this'.\n// Consider this case:\n// class A has method f,\n// class B inherits class A, overrides method f, f call superApply('f'),\n// class C inherits class B, do not overrides method f,\n// then when method of class C is called, dead loop occured.\nfunction superCall(this: any, context: any, methodName: string, ...args: any): any {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nfunction superApply(this: any, context: any, methodName: string, args: any): any {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nexport type Constructor = new (...args: any) => any;\ntype SubclassContainer = {[subType: string]: Constructor} & {[IS_CONTAINER]?: true};\n\nexport interface ClassManager {\n registerClass: (clz: Constructor) => Constructor;\n getClass: (\n componentMainType: ComponentMainType, subType?: ComponentSubType, throwWhenNotFound?: boolean\n ) => Constructor;\n getClassesByMainType: (componentType: ComponentMainType) => Constructor[];\n hasClass: (componentType: ComponentFullType) => boolean;\n getAllClassMainTypes: () => ComponentMainType[];\n hasSubTypes: (componentType: ComponentFullType) => boolean;\n}\n\n/**\n * Implements `ClassManager` for `target`\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ClassManager\n * enableClassManagement(Xxx as XxxConstructor);\n * ```\n */\nexport function enableClassManagement(\n target: ClassManager\n): void {\n\n /**\n * Component model classes\n * key: componentType,\n * value:\n * componentClass, when componentType is 'xxx'\n * or Object., when componentType is 'xxx.yy'\n */\n const storage: {\n [componentMainType: string]: (Constructor | SubclassContainer)\n } = {};\n\n target.registerClass = function (\n clz: Constructor\n ): Constructor {\n\n // `type` should not be a \"instance memeber\".\n // If using TS class, should better declared as `static type = 'series.pie'`.\n // otherwise users have to mount `type` on prototype manually.\n // For backward compat and enable instance visit type via `this.type`,\n // we stil support fetch `type` from prototype.\n const componentFullType = (clz as any).type || clz.prototype.type;\n\n if (componentFullType) {\n checkClassType(componentFullType);\n\n // If only static type declared, we assign it to prototype mandatorily.\n clz.prototype.type = componentFullType;\n\n const componentTypeInfo = parseClassType(componentFullType);\n\n if (!componentTypeInfo.sub) {\n if (__DEV__) {\n if (storage[componentTypeInfo.main]) {\n console.warn(componentTypeInfo.main + ' exists.');\n }\n }\n storage[componentTypeInfo.main] = clz;\n }\n else if (componentTypeInfo.sub !== IS_CONTAINER) {\n const container = makeContainer(componentTypeInfo);\n container[componentTypeInfo.sub] = clz;\n }\n }\n return clz;\n };\n\n target.getClass = function (\n mainType: ComponentMainType,\n subType?: ComponentSubType,\n throwWhenNotFound?: boolean\n ): Constructor {\n let clz = storage[mainType];\n\n if (clz && (clz as SubclassContainer)[IS_CONTAINER]) {\n clz = subType ? (clz as SubclassContainer)[subType] : null;\n }\n\n if (throwWhenNotFound && !clz) {\n throw new Error(\n !subType\n ? mainType + '.' + 'type should be specified.'\n : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.'\n );\n }\n\n return clz as Constructor;\n };\n\n target.getClassesByMainType = function (componentType: ComponentFullType): Constructor[] {\n const componentTypeInfo = parseClassType(componentType);\n\n const result: Constructor[] = [];\n const obj = storage[componentTypeInfo.main];\n\n if (obj && (obj as SubclassContainer)[IS_CONTAINER]) {\n zrUtil.each(obj as SubclassContainer, function (o, type) {\n type !== IS_CONTAINER && result.push(o as Constructor);\n });\n }\n else {\n result.push(obj as Constructor);\n }\n\n return result;\n };\n\n target.hasClass = function (componentType: ComponentFullType): boolean {\n // Just consider componentType.main.\n const componentTypeInfo = parseClassType(componentType);\n return !!storage[componentTypeInfo.main];\n };\n\n /**\n * @return Like ['aa', 'bb'], but can not be ['aa.xx']\n */\n target.getAllClassMainTypes = function (): ComponentMainType[] {\n const types: string[] = [];\n zrUtil.each(storage, function (obj, type) {\n types.push(type);\n });\n return types;\n };\n\n /**\n * If a main type is container and has sub types\n */\n target.hasSubTypes = function (componentType: ComponentFullType): boolean {\n const componentTypeInfo = parseClassType(componentType);\n const obj = storage[componentTypeInfo.main];\n return obj && (obj as SubclassContainer)[IS_CONTAINER];\n };\n\n function makeContainer(componentTypeInfo: ComponentTypeInfo): SubclassContainer {\n let container = storage[componentTypeInfo.main];\n if (!container || !(container as SubclassContainer)[IS_CONTAINER]) {\n container = storage[componentTypeInfo.main] = {};\n container[IS_CONTAINER] = true;\n }\n return container as SubclassContainer;\n }\n}\n\n// /**\n// * @param {string|Array.} properties\n// */\n// export function setReadOnly(obj, properties) {\n // FIXME It seems broken in IE8 simulation of IE11\n // if (!zrUtil.isArray(properties)) {\n // properties = properties != null ? [properties] : [];\n // }\n // zrUtil.each(properties, function (prop) {\n // let value = obj[prop];\n\n // Object.defineProperty\n // && Object.defineProperty(obj, prop, {\n // value: value, writable: false\n // });\n // zrUtil.isArray(obj[prop])\n // && Object.freeze\n // && Object.freeze(obj[prop]);\n // });\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Parse shadow style\n// TODO Only shallow path support\nimport * as zrUtil from 'zrender/src/core/util';\nimport {Dictionary} from 'zrender/src/core/types';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\nimport Model from '../Model';\n\nexport default function makeStyleMapper(properties: readonly string[][], ignoreParent?: boolean) {\n // Normalize\n for (let i = 0; i < properties.length; i++) {\n if (!properties[i][1]) {\n properties[i][1] = properties[i][0];\n }\n }\n\n ignoreParent = ignoreParent || false;\n\n return function (model: Model, excludes?: readonly string[], includes?: readonly string[]) {\n const style: Dictionary = {};\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i][1];\n if ((excludes && zrUtil.indexOf(excludes, propName) >= 0)\n || (includes && zrUtil.indexOf(includes, propName) < 0)\n ) {\n continue;\n }\n const val = model.getShallow(propName, ignoreParent);\n if (val != null) {\n style[properties[i][0]] = val;\n }\n }\n // TODO Text or image?\n return style as PathStyleProps;\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { AreaStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const AREA_STYLE_KEY_MAP = [\n ['fill', 'color'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['opacity'],\n ['shadowColor']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\nconst getAreaStyle = makeStyleMapper(AREA_STYLE_KEY_MAP);\n\ntype AreaStyleProps = Pick;\n\nclass AreaStyleMixin {\n getAreaStyle(\n this: Model,\n excludes?: readonly (keyof AreaStyleOption)[],\n includes?: readonly (keyof AreaStyleOption)[]\n ): AreaStyleProps {\n return getAreaStyle(this, excludes, includes);\n }\n};\n\nexport {AreaStyleMixin};\n", "\nimport LRU from '../../core/LRU';\nimport { ImageLike } from '../../core/types';\n\nconst globalImageCache = new LRU(50);\n\ntype PendingWrap = {\n hostEl: {dirty: () => void}\n cb: (image: ImageLike, payload: any) => void\n cbPayload: any\n}\n\ntype CachedImageObj = {\n image: ImageLike\n pending: PendingWrap[]\n}\n\nexport function findExistImage(newImageOrSrc: string | ImageLike): ImageLike {\n if (typeof newImageOrSrc === 'string') {\n const cachedImgObj = globalImageCache.get(newImageOrSrc);\n return cachedImgObj && cachedImgObj.image;\n }\n else {\n return newImageOrSrc;\n }\n}\n\n/**\n * Caution: User should cache loaded images, but not just count on LRU.\n * Consider if required images more than LRU size, will dead loop occur?\n *\n * @param newImageOrSrc\n * @param image Existent image.\n * @param hostEl For calling `dirty`.\n * @param onload params: (image, cbPayload)\n * @param cbPayload Payload on cb calling.\n * @return image\n */\nexport function createOrUpdateImage(\n newImageOrSrc: string | ImageLike,\n image: ImageLike,\n hostEl: { dirty: () => void },\n onload?: (image: ImageLike, payload: T) => void,\n cbPayload?: T\n) {\n if (!newImageOrSrc) {\n return image;\n }\n else if (typeof newImageOrSrc === 'string') {\n\n // Image should not be loaded repeatly.\n if ((image && (image as any).__zrImageSrc === newImageOrSrc) || !hostEl) {\n return image;\n }\n\n // Only when there is no existent image or existent image src\n // is different, this method is responsible for load.\n const cachedImgObj = globalImageCache.get(newImageOrSrc);\n\n const pendingWrap = {hostEl: hostEl, cb: onload, cbPayload: cbPayload};\n\n if (cachedImgObj) {\n image = cachedImgObj.image;\n !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);\n }\n else {\n image = new Image();\n image.onload = image.onerror = imageOnLoad;\n\n globalImageCache.put(\n newImageOrSrc,\n (image as any).__cachedImgObj = {\n image: image,\n pending: [pendingWrap]\n }\n );\n\n image.src = (image as any).__zrImageSrc = newImageOrSrc;\n }\n\n return image;\n }\n // newImageOrSrc is an HTMLImageElement or HTMLCanvasElement or Canvas\n else {\n return newImageOrSrc;\n }\n}\n\nfunction imageOnLoad(this: any) {\n const cachedImgObj = this.__cachedImgObj;\n this.onload = this.onerror = this.__cachedImgObj = null;\n\n for (let i = 0; i < cachedImgObj.pending.length; i++) {\n const pendingWrap = cachedImgObj.pending[i];\n const cb = pendingWrap.cb;\n cb && cb(this, pendingWrap.cbPayload);\n pendingWrap.hostEl.dirty();\n }\n cachedImgObj.pending.length = 0;\n}\n\nexport function isImageReady(image: ImageLike) {\n return image && image.width && image.height;\n}\n\n", "import * as imageHelper from '../helper/image';\nimport {\n extend,\n retrieve2,\n retrieve3,\n reduce\n} from '../../core/util';\nimport { TextAlign, TextVerticalAlign, ImageLike, Dictionary } from '../../core/types';\nimport { TextStyleProps } from '../Text';\nimport { getLineHeight, getWidth, parsePercent } from '../../contain/text';\n\nconst STYLE_REG = /\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;\n\ninterface InnerTruncateOption {\n maxIteration?: number\n // If truncate result are less than minChar, ellipsis will not show\n // which is better for user hint in some cases\n minChar?: number\n // When all truncated, use the placeholder\n placeholder?: string\n\n maxIterations?: number\n}\n\ninterface InnerPreparedTruncateOption extends Required {\n font: string\n\n ellipsis: string\n ellipsisWidth: number\n contentWidth: number\n\n containerWidth: number\n cnCharWidth: number\n ascCharWidth: number\n}\n\n/**\n * Show ellipsis if overflow.\n */\nexport function truncateText(\n text: string,\n containerWidth: number,\n font: string,\n ellipsis: string,\n options: InnerTruncateOption\n): string {\n if (!containerWidth) {\n return '';\n }\n\n const textLines = (text + '').split('\\n');\n options = prepareTruncateOptions(containerWidth, font, ellipsis, options);\n\n // FIXME\n // It is not appropriate that every line has '...' when truncate multiple lines.\n for (let i = 0, len = textLines.length; i < len; i++) {\n textLines[i] = truncateSingleLine(textLines[i], options as InnerPreparedTruncateOption);\n }\n\n return textLines.join('\\n');\n}\n\nfunction prepareTruncateOptions(\n containerWidth: number,\n font: string,\n ellipsis: string,\n options: InnerTruncateOption\n): InnerPreparedTruncateOption {\n options = options || {};\n let preparedOpts = extend({}, options) as InnerPreparedTruncateOption;\n\n preparedOpts.font = font;\n ellipsis = retrieve2(ellipsis, '...');\n preparedOpts.maxIterations = retrieve2(options.maxIterations, 2);\n const minChar = preparedOpts.minChar = retrieve2(options.minChar, 0);\n // FIXME\n // Other languages?\n preparedOpts.cnCharWidth = getWidth('\u56FD', font);\n // FIXME\n // Consider proportional font?\n const ascCharWidth = preparedOpts.ascCharWidth = getWidth('a', font);\n preparedOpts.placeholder = retrieve2(options.placeholder, '');\n\n // Example 1: minChar: 3, text: 'asdfzxcv', truncate result: 'asdf', but not: 'a...'.\n // Example 2: minChar: 3, text: '\u7EF4\u5EA6', truncate result: '\u7EF4', but not: '...'.\n let contentWidth = containerWidth = Math.max(0, containerWidth - 1); // Reserve some gap.\n for (let i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {\n contentWidth -= ascCharWidth;\n }\n\n let ellipsisWidth = getWidth(ellipsis, font);\n if (ellipsisWidth > contentWidth) {\n ellipsis = '';\n ellipsisWidth = 0;\n }\n\n contentWidth = containerWidth - ellipsisWidth;\n\n preparedOpts.ellipsis = ellipsis;\n preparedOpts.ellipsisWidth = ellipsisWidth;\n preparedOpts.contentWidth = contentWidth;\n preparedOpts.containerWidth = containerWidth;\n\n return preparedOpts;\n}\n\nfunction truncateSingleLine(textLine: string, options: InnerPreparedTruncateOption): string {\n const containerWidth = options.containerWidth;\n const font = options.font;\n const contentWidth = options.contentWidth;\n\n if (!containerWidth) {\n return '';\n }\n\n let lineWidth = getWidth(textLine, font);\n\n if (lineWidth <= containerWidth) {\n return textLine;\n }\n\n for (let j = 0; ; j++) {\n if (lineWidth <= contentWidth || j >= options.maxIterations) {\n textLine += options.ellipsis;\n break;\n }\n\n const subLength = j === 0\n ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)\n : lineWidth > 0\n ? Math.floor(textLine.length * contentWidth / lineWidth)\n : 0;\n\n textLine = textLine.substr(0, subLength);\n lineWidth = getWidth(textLine, font);\n }\n\n if (textLine === '') {\n textLine = options.placeholder;\n }\n\n return textLine;\n}\n\nfunction estimateLength(\n text: string, contentWidth: number, ascCharWidth: number, cnCharWidth: number\n): number {\n let width = 0;\n let i = 0;\n for (let len = text.length; i < len && width < contentWidth; i++) {\n const charCode = text.charCodeAt(i);\n width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;\n }\n return i;\n}\n\nexport interface PlainTextContentBlock {\n lineHeight: number\n contentHeight: number\n // Line height of actual content.\n calculatedLineHeight: number\n\n height: number\n outerHeight: number\n\n width: number\n\n lines: string[]\n}\n\nexport function parsePlainText(\n text: string,\n style?: TextStyleProps\n): PlainTextContentBlock {\n text != null && (text += '');\n\n // textPadding has been normalized\n const overflow = style.overflow;\n const padding = style.padding as number[];\n const font = style.font;\n const truncate = overflow === 'truncate';\n const calculatedLineHeight = getLineHeight(font);\n const lineHeight = retrieve2(style.lineHeight, calculatedLineHeight);\n\n const truncateLineOverflow = style.lineOverflow === 'truncate';\n\n let width = style.width;\n let lines: string[];\n\n if (width != null && overflow === 'break' || overflow === 'breakAll') {\n lines = text ? wrapText(text, style.font, width, overflow === 'breakAll', 0).lines : [];\n }\n else {\n lines = text ? text.split('\\n') : [];\n }\n\n const contentHeight = lines.length * lineHeight;\n const height = retrieve2(style.height, contentHeight);\n\n // Truncate lines.\n if (contentHeight > height && truncateLineOverflow) {\n const lineCount = Math.floor(height / lineHeight);\n\n lines = lines.slice(0, lineCount);\n\n // TODO If show ellipse for line truncate\n // if (style.ellipsis) {\n // const options = prepareTruncateOptions(width, font, style.ellipsis, {\n // minChar: style.truncateMinChar,\n // placeholder: style.placeholder\n // });\n // lines[lineCount - 1] = truncateSingleLine(lastLine, options);\n // }\n }\n\n let outerHeight = height;\n let outerWidth = width;\n if (padding) {\n outerHeight += padding[0] + padding[2];\n if (outerWidth != null) {\n outerWidth += padding[1] + padding[3];\n }\n }\n\n\n if (text && truncate && outerWidth != null) {\n const options = prepareTruncateOptions(width, font, style.ellipsis, {\n minChar: style.truncateMinChar,\n placeholder: style.placeholder\n });\n // Having every line has '...' when truncate multiple lines.\n for (let i = 0; i < lines.length; i++) {\n lines[i] = truncateSingleLine(lines[i], options);\n }\n }\n\n if (width == null) {\n let maxWidth = 0;\n // Calculate width\n for (let i = 0; i < lines.length; i++) {\n maxWidth = Math.max(getWidth(lines[i], font), maxWidth);\n }\n width = maxWidth;\n }\n\n return {\n lines: lines,\n height: height,\n outerHeight: outerHeight,\n lineHeight: lineHeight,\n calculatedLineHeight: calculatedLineHeight,\n contentHeight: contentHeight,\n width: width\n };\n}\n\nclass RichTextToken {\n styleName: string\n text: string\n width: number\n height: number\n\n // Inner height exclude padding\n innerHeight: number\n\n // Width and height of actual text content.\n contentHeight: number\n contentWidth: number\n\n lineHeight: number\n font: string\n align: TextAlign\n verticalAlign: TextVerticalAlign\n\n textPadding: number[]\n percentWidth?: string\n\n isLineHolder: boolean\n}\nclass RichTextLine {\n lineHeight: number\n width: number\n tokens: RichTextToken[] = []\n\n constructor(tokens?: RichTextToken[]) {\n if (tokens) {\n this.tokens = tokens;\n }\n }\n}\nexport class RichTextContentBlock {\n // width/height of content\n width: number = 0\n height: number = 0\n // Calculated text height\n contentWidth: number = 0\n contentHeight: number = 0\n // outerWidth/outerHeight with padding\n outerWidth: number = 0\n outerHeight: number = 0\n lines: RichTextLine[] = []\n}\n\ntype WrapInfo = {\n width: number,\n accumWidth: number,\n breakAll: boolean\n}\n/**\n * For example: 'some text {a|some text}other text{b|some text}xxx{c|}xxx'\n * Also consider 'bbbb{a|xxx\\nzzz}xxxx\\naaaa'.\n * If styleName is undefined, it is plain text.\n */\nexport function parseRichText(text: string, style: TextStyleProps) {\n const contentBlock = new RichTextContentBlock();\n\n text != null && (text += '');\n if (!text) {\n return contentBlock;\n }\n\n const topWidth = style.width;\n const topHeight = style.height;\n const overflow = style.overflow;\n let wrapInfo: WrapInfo = (overflow === 'break' || overflow === 'breakAll') && topWidth != null\n ? {width: topWidth, accumWidth: 0, breakAll: overflow === 'breakAll'}\n : null;\n\n let lastIndex = STYLE_REG.lastIndex = 0;\n let result;\n while ((result = STYLE_REG.exec(text)) != null) {\n const matchedIndex = result.index;\n if (matchedIndex > lastIndex) {\n pushTokens(contentBlock, text.substring(lastIndex, matchedIndex), style, wrapInfo);\n }\n pushTokens(contentBlock, result[2], style, wrapInfo, result[1]);\n lastIndex = STYLE_REG.lastIndex;\n }\n\n if (lastIndex < text.length) {\n pushTokens(contentBlock, text.substring(lastIndex, text.length), style, wrapInfo);\n }\n\n // For `textWidth: xx%`\n let pendingList = [];\n\n let calculatedHeight = 0;\n let calculatedWidth = 0;\n\n const stlPadding = style.padding as number[];\n\n const truncate = overflow === 'truncate';\n const truncateLine = style.lineOverflow === 'truncate';\n\n // let prevToken: RichTextToken;\n\n function finishLine(line: RichTextLine, lineWidth: number, lineHeight: number) {\n line.width = lineWidth;\n line.lineHeight = lineHeight;\n calculatedHeight += lineHeight;\n calculatedWidth = Math.max(calculatedWidth, lineWidth);\n }\n // Calculate layout info of tokens.\n outer: for (let i = 0; i < contentBlock.lines.length; i++) {\n const line = contentBlock.lines[i];\n let lineHeight = 0;\n let lineWidth = 0;\n\n for (let j = 0; j < line.tokens.length; j++) {\n const token = line.tokens[j];\n const tokenStyle = token.styleName && style.rich[token.styleName] || {};\n // textPadding should not inherit from style.\n const textPadding = token.textPadding = tokenStyle.padding as number[];\n const paddingH = textPadding ? textPadding[1] + textPadding[3] : 0;\n\n const font = token.font = tokenStyle.font || style.font;\n\n token.contentHeight = getLineHeight(font);\n // textHeight can be used when textVerticalAlign is specified in token.\n let tokenHeight = retrieve2(\n // textHeight should not be inherited, consider it can be specified\n // as box height of the block.\n tokenStyle.height, token.contentHeight\n );\n token.innerHeight = tokenHeight;\n\n textPadding && (tokenHeight += textPadding[0] + textPadding[2]);\n token.height = tokenHeight;\n // Inlcude padding in lineHeight.\n token.lineHeight = retrieve3(\n tokenStyle.lineHeight, style.lineHeight, tokenHeight\n );\n\n token.align = tokenStyle && tokenStyle.align || style.align;\n token.verticalAlign = tokenStyle && tokenStyle.verticalAlign || 'middle';\n\n if (truncateLine && topHeight != null && calculatedHeight + token.lineHeight > topHeight) {\n // TODO Add ellipsis on the previous token.\n // prevToken.text =\n if (j > 0) {\n line.tokens = line.tokens.slice(0, j);\n finishLine(line, lineWidth, lineHeight);\n contentBlock.lines = contentBlock.lines.slice(0, i + 1);\n }\n else {\n contentBlock.lines = contentBlock.lines.slice(0, i);\n }\n break outer;\n }\n\n let styleTokenWidth = tokenStyle.width;\n let tokenWidthNotSpecified = styleTokenWidth == null || styleTokenWidth === 'auto';\n\n // Percent width, can be `100%`, can be used in drawing separate\n // line when box width is needed to be auto.\n if (typeof styleTokenWidth === 'string' && styleTokenWidth.charAt(styleTokenWidth.length - 1) === '%') {\n token.percentWidth = styleTokenWidth;\n pendingList.push(token);\n\n token.contentWidth = getWidth(token.text, font);\n // Do not truncate in this case, because there is no user case\n // and it is too complicated.\n }\n else {\n if (tokenWidthNotSpecified) {\n // FIXME: If image is not loaded and textWidth is not specified, calling\n // `getBoundingRect()` will not get correct result.\n const textBackgroundColor = tokenStyle.backgroundColor;\n let bgImg = textBackgroundColor && (textBackgroundColor as { image: ImageLike }).image;\n\n if (bgImg) {\n bgImg = imageHelper.findExistImage(bgImg);\n if (imageHelper.isImageReady(bgImg)) {\n // Update token width from image size.\n token.width = Math.max(token.width, bgImg.width * tokenHeight / bgImg.height);\n }\n }\n }\n\n const remainTruncWidth = truncate && topWidth != null\n ? topWidth - lineWidth : null;\n\n if (remainTruncWidth != null && remainTruncWidth < token.width) {\n if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {\n token.text = '';\n token.width = token.contentWidth = 0;\n }\n else {\n token.text = truncateText(\n token.text, remainTruncWidth - paddingH, font, style.ellipsis,\n {minChar: style.truncateMinChar}\n );\n token.width = token.contentWidth = getWidth(token.text, font);\n }\n }\n else {\n token.contentWidth = getWidth(token.text, font);\n }\n }\n\n token.width += paddingH;\n\n lineWidth += token.width;\n tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));\n\n // prevToken = token;\n }\n\n finishLine(line, lineWidth, lineHeight);\n }\n\n contentBlock.outerWidth = contentBlock.width = retrieve2(topWidth, calculatedWidth);\n contentBlock.outerHeight = contentBlock.height = retrieve2(topHeight, calculatedHeight);\n contentBlock.contentHeight = calculatedHeight;\n contentBlock.contentWidth = calculatedWidth;\n\n if (stlPadding) {\n contentBlock.outerWidth += stlPadding[1] + stlPadding[3];\n contentBlock.outerHeight += stlPadding[0] + stlPadding[2];\n }\n\n for (let i = 0; i < pendingList.length; i++) {\n const token = pendingList[i];\n const percentWidth = token.percentWidth;\n // Should not base on outerWidth, because token can not be placed out of padding.\n token.width = parseInt(percentWidth, 10) / 100 * contentBlock.width;\n }\n\n return contentBlock;\n}\n\ntype TokenStyle = TextStyleProps['rich'][string];\n\nfunction pushTokens(\n block: RichTextContentBlock,\n str: string,\n style: TextStyleProps,\n wrapInfo: WrapInfo,\n styleName?: string\n) {\n const isEmptyStr = str === '';\n const tokenStyle: TokenStyle = styleName && style.rich[styleName] || {};\n const lines = block.lines;\n const font = tokenStyle.font || style.font;\n let newLine = false;\n let strLines;\n let linesWidths;\n\n if (wrapInfo) {\n const tokenPadding = tokenStyle.padding as number[];\n let tokenPaddingH = tokenPadding ? tokenPadding[1] + tokenPadding[3] : 0;\n if (tokenStyle.width != null && tokenStyle.width !== 'auto') {\n // Wrap the whole token if tokenWidth if fixed.\n const outerWidth = parsePercent(tokenStyle.width, wrapInfo.width) + tokenPaddingH;\n if (lines.length > 0) { // Not first line\n if (outerWidth + wrapInfo.accumWidth > wrapInfo.width) {\n // TODO Support wrap text in token.\n strLines = str.split('\\n');\n newLine = true;\n }\n }\n\n wrapInfo.accumWidth = outerWidth;\n }\n else {\n const res = wrapText(str, font, wrapInfo.width, wrapInfo.breakAll, wrapInfo.accumWidth);\n wrapInfo.accumWidth = res.accumWidth + tokenPaddingH;\n linesWidths = res.linesWidths;\n strLines = res.lines;\n }\n }\n else {\n strLines = str.split('\\n');\n }\n\n for (let i = 0; i < strLines.length; i++) {\n const text = strLines[i];\n const token = new RichTextToken();\n token.styleName = styleName;\n token.text = text;\n token.isLineHolder = !text && !isEmptyStr;\n\n if (typeof tokenStyle.width === 'number') {\n token.width = tokenStyle.width;\n }\n else {\n token.width = linesWidths\n ? linesWidths[i] // Caculated width in the wrap\n : getWidth(text, font);\n }\n\n // The first token should be appended to the last line if not new line.\n if (!i && !newLine) {\n const tokens = (lines[lines.length - 1] || (lines[0] = new RichTextLine())).tokens;\n\n // Consider cases:\n // (1) ''.split('\\n') => ['', '\\n', ''], the '' at the first item\n // (which is a placeholder) should be replaced by new token.\n // (2) A image backage, where token likes {a|}.\n // (3) A redundant '' will affect textAlign in line.\n // (4) tokens with the same tplName should not be merged, because\n // they should be displayed in different box (with border and padding).\n const tokensLen = tokens.length;\n (tokensLen === 1 && tokens[0].isLineHolder)\n ? (tokens[0] = token)\n // Consider text is '', only insert when it is the \"lineHolder\" or\n // \"emptyStr\". Otherwise a redundant '' will affect textAlign in line.\n : ((text || !tokensLen || isEmptyStr) && tokens.push(token));\n }\n // Other tokens always start a new line.\n else {\n // If there is '', insert it as a placeholder.\n lines.push(new RichTextLine([token]));\n }\n }\n}\n\n\nfunction isLatin(ch: string) {\n let code = ch.charCodeAt(0);\n return code >= 0x21 && code <= 0xFF;\n}\n\nconst breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {\n obj[ch] = true;\n return obj;\n}, {} as Dictionary);\n/**\n * If break by word. For latin languages.\n */\nfunction isWordBreakChar(ch: string) {\n if (isLatin(ch)) {\n if (breakCharMap[ch]) {\n return true;\n }\n return false;\n }\n return true;\n}\n\nfunction wrapText(\n text: string,\n font: string,\n lineWidth: number,\n isBreakAll: boolean,\n lastAccumWidth: number\n) {\n let lines: string[] = [];\n let linesWidths: number[] = [];\n let line = '';\n let currentWord = '';\n let currentWordWidth = 0;\n let accumWidth = 0;\n\n for (let i = 0; i < text.length; i++) {\n\n const ch = text.charAt(i);\n if (ch === '\\n') {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n // Reset\n line = '';\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = 0;\n continue;\n }\n\n const chWidth = getWidth(ch, font);\n const inWord = isBreakAll ? false : !isWordBreakChar(ch);\n\n if (!lines.length\n ? lastAccumWidth + accumWidth + chWidth > lineWidth\n : accumWidth + chWidth > lineWidth\n ) {\n if (!accumWidth) { // If nothing appended yet.\n if (inWord) {\n // The word length is still too long for one line\n // Force break the word\n lines.push(currentWord);\n linesWidths.push(currentWordWidth);\n\n currentWord = ch;\n currentWordWidth = chWidth;\n }\n else {\n // lineWidth is too small for ch\n lines.push(ch);\n linesWidths.push(chWidth);\n }\n }\n else if (line || currentWord) {\n if (inWord) {\n if (!line) {\n // The one word is still too long for one line\n // Force break the word\n // TODO Keep the word?\n line = currentWord;\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = currentWordWidth;\n }\n\n lines.push(line);\n linesWidths.push(accumWidth - currentWordWidth);\n\n // Break the whole word\n currentWord += ch;\n currentWordWidth += chWidth;\n line = '';\n accumWidth = currentWordWidth;\n }\n else {\n // Append lastWord if have\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n currentWord = '';\n currentWordWidth = 0;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n\n line = ch;\n accumWidth = chWidth;\n }\n }\n\n continue;\n }\n\n accumWidth += chWidth;\n\n if (inWord) {\n currentWord += ch;\n currentWordWidth += chWidth;\n }\n else {\n // Append whole word\n if (currentWord) {\n line += currentWord;\n // Reset\n currentWord = '';\n currentWordWidth = 0;\n }\n\n // Append character\n line += ch;\n }\n }\n\n if (!lines.length && !line) {\n line = text;\n currentWord = '';\n currentWordWidth = 0;\n }\n\n // Append last line.\n if (currentWord) {\n line += currentWord;\n }\n if (line) {\n lines.push(line);\n linesWidths.push(accumWidth);\n }\n\n if (lines.length === 1) {\n // No new line.\n accumWidth += lastAccumWidth;\n }\n\n return {\n // Accum width of last line\n accumWidth,\n lines: lines,\n linesWidths\n };\n}", "/**\n * Base class of all displayable graphic objects\n */\n\nimport Element, {ElementProps, ElementStatePropNames, ElementAnimateConfig, ElementCommonState} from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { PropType, Dictionary, MapToType } from '../core/types';\nimport Path from './Path';\nimport { keys, extend, createObject } from '../core/util';\nimport Animator from '../animation/Animator';\nimport { REDARAW_BIT, STYLE_CHANGED_BIT } from './constants';\n\n// type CalculateTextPositionResult = ReturnType\n\nconst STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));\n\nexport interface CommonStyleProps {\n shadowBlur?: number\n shadowOffsetX?: number\n shadowOffsetY?: number\n shadowColor?: string\n\n opacity?: number\n /**\n * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n */\n blend?: string\n}\n\nexport const DEFAULT_COMMON_STYLE: CommonStyleProps = {\n shadowBlur: 0,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n shadowColor: '#000',\n opacity: 1,\n blend: 'source-over'\n};\n\nexport const DEFAULT_COMMON_ANIMATION_PROPS: MapToType = {\n style: {\n shadowBlur: true,\n shadowOffsetX: true,\n shadowOffsetY: true,\n shadowColor: true,\n opacity: true\n }\n };\n\n(DEFAULT_COMMON_STYLE as any)[STYLE_MAGIC_KEY] = true;\n\nexport interface DisplayableProps extends ElementProps {\n style?: Dictionary\n\n zlevel?: number\n z?: number\n z2?: number\n\n culling?: boolean\n\n // TODO list all cursors\n cursor?: string\n\n rectHover?: boolean\n\n progressive?: boolean\n\n incremental?: boolean\n\n batch?: boolean\n invisible?: boolean\n}\n\ntype DisplayableKey = keyof DisplayableProps\ntype DisplayablePropertyType = PropType\n\nexport type DisplayableStatePropNames = ElementStatePropNames | 'style' | 'z' | 'z2' | 'invisible';\nexport type DisplayableState = Pick & ElementCommonState;\n\nconst PRIMARY_STATES_KEYS = ['z', 'z2', 'invisible'] as const;\nconst PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ['invisible'] as const;\n\ninterface Displayable {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n\n getState(stateName: string): DisplayableState\n ensureState(stateName: string): DisplayableState\n\n states: Dictionary\n stateProxy: (stateName: string) => DisplayableState\n}\n\nclass Displayable extends Element {\n\n /**\n * Whether the displayable object is visible. when it is true, the displayable object\n * is not drawn, but the mouse event can still trigger the object.\n */\n invisible: boolean\n\n z: number\n\n z2: number\n\n /**\n * The z level determines the displayable object can be drawn in which layer canvas.\n */\n zlevel: number\n\n /**\n * If enable culling\n */\n culling: boolean\n\n /**\n * Mouse cursor when hovered\n */\n cursor: string\n\n /**\n * If hover area is bounding rect\n */\n rectHover: boolean\n /**\n * For increamental rendering\n */\n incremental: boolean\n\n style: Dictionary\n\n protected _normalState: DisplayableState\n\n protected _rect: BoundingRect\n protected _paintRect: BoundingRect\n protected _prevPaintRect: BoundingRect\n\n dirtyRectTolerance: number\n\n /************* Properties will be inejected in other modules. *******************/\n\n // @deprecated.\n useHoverLayer?: boolean\n\n __hoverStyle?: CommonStyleProps\n\n // TODO use WeakMap?\n\n // Shapes for cascade clipping.\n // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array.\n // because it is easy to only using null to check whether clipPaths changed.\n __clipPaths?: Path[]\n\n // FOR CANVAS PAINTER\n __canvasFillGradient: CanvasGradient\n __canvasStrokeGradient: CanvasGradient\n __canvasFillPattern: CanvasPattern\n __canvasStrokePattern: CanvasPattern\n\n // FOR SVG PAINTER\n __svgEl: SVGElement\n\n constructor(props?: Props) {\n super(props);\n }\n\n protected _init(props?: Props) {\n // Init default properties\n const keysArr = keys(props);\n for (let i = 0; i < keysArr.length; i++) {\n const key = keysArr[i];\n if (key === 'style') {\n this.useStyle(props[key] as Props['style']);\n }\n else {\n super.attrKV(key as any, props[key]);\n }\n }\n // Give a empty style\n if (!this.style) {\n this.useStyle({});\n }\n }\n\n // Hook provided to developers.\n beforeBrush() {}\n afterBrush() {}\n\n // Hook provided to inherited classes.\n // Executed between beforeBrush / afterBrush\n innerBeforeBrush() {}\n innerAfterBrush() {}\n\n shouldBePainted(\n viewWidth: number,\n viewHeight: number,\n considerClipPath: boolean,\n considerAncestors: boolean\n ) {\n const m = this.transform;\n if (\n this.ignore\n // Ignore invisible element\n || this.invisible\n // Ignore transparent element\n || this.style.opacity === 0\n // Ignore culled element\n || (this.culling\n && isDisplayableCulled(this, viewWidth, viewHeight)\n )\n // Ignore scale 0 element, in some environment like node-canvas\n // Draw a scale 0 element can cause all following draw wrong\n // And setTransform with scale 0 will cause set back transform failed.\n || (m && !m[0] && !m[3])\n ) {\n return false;\n }\n\n if (considerClipPath && this.__clipPaths) {\n for (let i = 0; i < this.__clipPaths.length; ++i) {\n if (this.__clipPaths[i].isZeroArea()) {\n return false;\n }\n }\n }\n\n if (considerAncestors && this.parent) {\n let parent = this.parent;\n while (parent) {\n if (parent.ignore) {\n return false;\n }\n parent = parent.parent;\n }\n }\n\n return true;\n }\n\n /**\n * If displayable element contain coord x, y\n */\n contain(x: number, y: number) {\n return this.rectContain(x, y);\n }\n\n traverse(\n cb: (this: Context, el: this) => void,\n context?: Context\n ) {\n cb.call(context, this);\n }\n\n /**\n * If bounding rect of element contain coord x, y\n */\n rectContain(x: number, y: number) {\n const coord = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n return rect.contain(coord[0], coord[1]);\n }\n\n getPaintRect(): BoundingRect {\n let rect = this._paintRect;\n if (!this._paintRect || this.__dirty) {\n const transform = this.transform;\n const elRect = this.getBoundingRect();\n\n const style = this.style;\n const shadowSize = style.shadowBlur || 0;\n const shadowOffsetX = style.shadowOffsetX || 0;\n const shadowOffsetY = style.shadowOffsetY || 0;\n\n rect = this._paintRect || (this._paintRect = new BoundingRect(0, 0, 0, 0));\n if (transform) {\n BoundingRect.applyTransform(rect, elRect, transform);\n }\n else {\n rect.copy(elRect);\n }\n\n if (shadowSize || shadowOffsetX || shadowOffsetY) {\n rect.width += shadowSize * 2 + Math.abs(shadowOffsetX);\n rect.height += shadowSize * 2 + Math.abs(shadowOffsetY);\n rect.x = Math.min(rect.x, rect.x + shadowOffsetX - shadowSize);\n rect.y = Math.min(rect.y, rect.y + shadowOffsetY - shadowSize);\n\n }\n\n // For the accuracy tolerance of text height or line joint point\n const tolerance = this.dirtyRectTolerance;\n if (!rect.isZero()) {\n rect.x = Math.floor(rect.x - tolerance);\n rect.y = Math.floor(rect.y - tolerance);\n rect.width = Math.ceil(rect.width + 1 + tolerance * 2);\n rect.height = Math.ceil(rect.height + 1 + tolerance * 2);\n }\n }\n return rect;\n }\n\n setPrevPaintRect(paintRect: BoundingRect) {\n if (paintRect) {\n this._prevPaintRect = this._prevPaintRect || new BoundingRect(0, 0, 0, 0);\n this._prevPaintRect.copy(paintRect);\n }\n else {\n this._prevPaintRect = null;\n }\n }\n\n getPrevPaintRect(): BoundingRect {\n return this._prevPaintRect;\n }\n\n /**\n * Alias for animate('style')\n * @param loop\n */\n animateStyle(loop: boolean) {\n return this.animate('style', loop);\n }\n\n // Override updateDuringAnimation\n updateDuringAnimation(targetKey: string) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else {\n this.markRedraw();\n }\n }\n\n attrKV(key: DisplayableKey, value: DisplayablePropertyType) {\n if (key !== 'style') {\n super.attrKV(key as keyof DisplayableProps, value);\n }\n else {\n if (!this.style) {\n this.useStyle(value as Dictionary);\n }\n else {\n this.setStyle(value as Dictionary);\n }\n }\n }\n\n setStyle(obj: Props['style']): this\n setStyle(obj: T, value: Props['style'][T]): this\n setStyle(keyOrObj: keyof Props['style'] | Props['style'], value?: unknown): this {\n if (typeof keyOrObj === 'string') {\n this.style[keyOrObj] = value;\n }\n else {\n extend(this.style, keyOrObj as Props['style']);\n }\n this.dirtyStyle();\n return this;\n }\n\n // getDefaultStyleValue(key: T): Props['style'][T] {\n // // Default value is on the prototype.\n // return this.style.prototype[key];\n // }\n\n dirtyStyle(notRedraw?: boolean) {\n if (!notRedraw) {\n this.markRedraw();\n }\n this.__dirty |= STYLE_CHANGED_BIT;\n // Clear bounding rect.\n if (this._rect) {\n this._rect = null;\n }\n }\n\n dirty() {\n this.dirtyStyle();\n }\n\n /**\n * Is style changed. Used with dirtyStyle.\n */\n styleChanged() {\n return !!(this.__dirty & STYLE_CHANGED_BIT);\n }\n\n /**\n * Mark style updated. Only useful when style is used for caching. Like in the text.\n */\n styleUpdated() {\n this.__dirty &= ~STYLE_CHANGED_BIT;\n }\n\n /**\n * Create a style object with default values in it's prototype.\n */\n createStyle(obj?: Props['style']) {\n return createObject(DEFAULT_COMMON_STYLE, obj);\n }\n\n /**\n * Replace style property.\n * It will create a new style if given obj is not a valid style object.\n */\n // PENDING should not createStyle if it's an style object.\n useStyle(obj: Props['style']) {\n if (!obj[STYLE_MAGIC_KEY]) {\n obj = this.createStyle(obj);\n }\n if (this.__inHover) {\n this.__hoverStyle = obj; // Not affect exists style.\n }\n else {\n this.style = obj;\n }\n this.dirtyStyle();\n }\n\n /**\n * Determine if an object is a valid style object.\n * Which means it is created by `createStyle.`\n *\n * A valid style object will have all default values in it's prototype.\n * To avoid get null/undefined values.\n */\n isStyleObject(obj: Props['style']) {\n return obj[STYLE_MAGIC_KEY];\n }\n\n protected _innerSaveToNormal(toState: DisplayableState) {\n super._innerSaveToNormal(toState);\n\n const normalState = this._normalState;\n if (toState.style && !normalState.style) {\n // Clone style object.\n // TODO: Only save changed style.\n normalState.style = this._mergeStyle(this.createStyle(), this.style);\n }\n\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n }\n\n protected _applyStateObj(\n stateName: string,\n state: DisplayableState,\n normalState: DisplayableState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n super._applyStateObj(stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n\n const needsRestoreToNormal = !(state && keepCurrentStates);\n let targetStyle: Props['style'];\n if (state && state.style) {\n // Only animate changed properties.\n if (transition) {\n if (keepCurrentStates) {\n targetStyle = state.style;\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else {\n targetStyle = this._mergeStyle(\n this.createStyle(),\n keepCurrentStates ? this.style : normalState.style\n );\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else if (needsRestoreToNormal) {\n targetStyle = normalState.style;\n }\n\n if (targetStyle) {\n if (transition) {\n // Clone a new style. Not affect the original one.\n const sourceStyle = this.style;\n\n this.style = this.createStyle(needsRestoreToNormal ? {} : sourceStyle);\n // const sourceStyle = this.style = this.createStyle(this.style);\n\n if (needsRestoreToNormal) {\n const changedKeys = keys(sourceStyle);\n for (let i = 0; i < changedKeys.length; i++) {\n const key = changedKeys[i];\n if (key in targetStyle) { // Not use `key == null` because == null may means no stroke/fill.\n // Pick out from prototype. Or the property won't be animated.\n (targetStyle as any)[key] = targetStyle[key];\n // Omit the property has no default value.\n (this.style as any)[key] = sourceStyle[key];\n }\n }\n }\n\n // If states is switched twice in ONE FRAME, for example:\n // one property(for example shadowBlur) changed from default value to a specifed value,\n // then switched back in immediately. this.style may don't set this property yet when switching back.\n // It won't treat it as an changed property when switching back. And it won't be animated.\n // So here we make sure the properties will be animated from default value to a specifed value are set.\n const targetKeys = keys(targetStyle);\n for (let i = 0; i < targetKeys.length; i++) {\n const key = targetKeys[i];\n this.style[key] = this.style[key];\n }\n\n this._transitionState(stateName, {\n style: targetStyle\n } as Props, animationCfg, this.getAnimationStyleProps() as MapToType);\n }\n else {\n this.useStyle(targetStyle);\n }\n }\n\n // Don't change z, z2 for element moved into hover layer.\n // It's not necessary and will cause paint list order changed.\n const statesKeys = this.__inHover ? PRIMARY_STATES_KEYS_IN_HOVER_LAYER : PRIMARY_STATES_KEYS;\n for (let i = 0; i < statesKeys.length; i++) {\n let key = statesKeys[i];\n if (state && state[key] != null) {\n // Replace if it exist in target state\n (this as any)[key] = state[key];\n }\n else if (needsRestoreToNormal) {\n // Restore to normal state\n if (normalState[key] != null) {\n (this as any)[key] = normalState[key];\n }\n }\n }\n }\n\n protected _mergeStates(states: DisplayableState[]) {\n const mergedState = super._mergeStates(states) as DisplayableState;\n let mergedStyle: Props['style'];\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n if (state.style) {\n mergedStyle = mergedStyle || {};\n this._mergeStyle(mergedStyle, state.style);\n }\n }\n if (mergedStyle) {\n mergedState.style = mergedStyle;\n }\n return mergedState;\n }\n\n protected _mergeStyle(\n targetStyle: CommonStyleProps,\n sourceStyle: CommonStyleProps\n ) {\n extend(targetStyle, sourceStyle);\n return targetStyle;\n }\n\n getAnimationStyleProps() {\n return DEFAULT_COMMON_ANIMATION_PROPS;\n }\n\n /**\n * The string value of `textPosition` needs to be calculated to a real postion.\n * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]`\n * by default. See `contain/text.js#calculateTextPosition` for more details.\n * But some coutom shapes like \"pin\", \"flag\" have center that is not exactly\n * `[width/2, height/2]`. So we provide this hook to customize the calculation\n * for those shapes. It will be called if the `style.textPosition` is a string.\n * @param out Prepared out object. If not provided, this method should\n * be responsible for creating one.\n * @param style\n * @param rect {x, y, width, height}\n * @return out The same as the input out.\n * {\n * x: number. mandatory.\n * y: number. mandatory.\n * textAlign: string. optional. use style.textAlign by default.\n * textVerticalAlign: string. optional. use style.textVerticalAlign by default.\n * }\n */\n // calculateTextPosition: (out: CalculateTextPositionResult, style: Dictionary, rect: RectLike) => CalculateTextPositionResult\n\n protected static initDefaultProps = (function () {\n const dispProto = Displayable.prototype;\n dispProto.type = 'displayable';\n dispProto.invisible = false;\n dispProto.z = 0;\n dispProto.z2 = 0;\n dispProto.zlevel = 0;\n dispProto.culling = false;\n dispProto.cursor = 'pointer';\n dispProto.rectHover = false;\n dispProto.incremental = false;\n dispProto._rect = null;\n dispProto.dirtyRectTolerance = 0;\n\n dispProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT;\n })()\n}\n\nconst tmpRect = new BoundingRect(0, 0, 0, 0);\nconst viewRect = new BoundingRect(0, 0, 0, 0);\nfunction isDisplayableCulled(el: Displayable, width: number, height: number) {\n tmpRect.copy(el.getBoundingRect());\n if (el.transform) {\n tmpRect.applyTransform(el.transform);\n }\n viewRect.width = width;\n viewRect.height = height;\n return !tmpRect.intersect(viewRect);\n}\n\nexport default Displayable;", "/**\n * \u66F2\u7EBF\u8F85\u52A9\u6A21\u5757\n */\n\nimport {\n create as v2Create,\n distSquare as v2DistSquare,\n VectorArray\n} from './vector';\n\nconst mathPow = Math.pow;\nconst mathSqrt = Math.sqrt;\n\nconst EPSILON = 1e-8;\nconst EPSILON_NUMERIC = 1e-4;\n\nconst THREE_SQRT = mathSqrt(3);\nconst ONE_THIRD = 1 / 3;\n\n// \u4E34\u65F6\u53D8\u91CF\nconst _v0 = v2Create();\nconst _v1 = v2Create();\nconst _v2 = v2Create();\n\nfunction isAroundZero(val: number) {\n return val > -EPSILON && val < EPSILON;\n}\nfunction isNotAroundZero(val: number) {\n return val > EPSILON || val < -EPSILON;\n}\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u503C\n */\nexport function cubicAt(p0: number, p1: number, p2: number, p3: number, t: number): number {\n const onet = 1 - t;\n return onet * onet * (onet * p0 + 3 * t * p1)\n + t * t * (t * p3 + 3 * onet * p2);\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u5BFC\u6570\u503C\n */\nexport function cubicDerivativeAt(p0: number, p1: number, p2: number, p3: number, t: number): number {\n const onet = 1 - t;\n return 3 * (\n ((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet\n + (p3 - p2) * t * t\n );\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6839\uFF0C\u4F7F\u7528\u76DB\u91D1\u516C\u5F0F\n */\nexport function cubicRootAt(p0: number, p1: number, p2: number, p3: number, val: number, roots: number[]): number {\n // Evaluate roots of cubic functions\n const a = p3 + 3 * (p1 - p2) - p0;\n const b = 3 * (p2 - p1 * 2 + p0);\n const c = 3 * (p1 - p0);\n const d = p0 - val;\n\n const A = b * b - 3 * a * c;\n const B = b * c - 9 * a * d;\n const C = c * c - 3 * b * d;\n\n let n = 0;\n\n if (isAroundZero(A) && isAroundZero(B)) {\n if (isAroundZero(b)) {\n roots[0] = 0;\n }\n else {\n const t1 = -c / b; //t1, t2, t3, b is not zero\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n const disc = B * B - 4 * A * C;\n\n if (isAroundZero(disc)) {\n const K = B / A;\n const t1 = -b / a + K; // t1, a is not zero\n const t2 = -K / 2; // t2, t3\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n let Y1 = A * b + 1.5 * a * (-B + discSqrt);\n let Y2 = A * b + 1.5 * a * (-B - discSqrt);\n if (Y1 < 0) {\n Y1 = -mathPow(-Y1, ONE_THIRD);\n }\n else {\n Y1 = mathPow(Y1, ONE_THIRD);\n }\n if (Y2 < 0) {\n Y2 = -mathPow(-Y2, ONE_THIRD);\n }\n else {\n Y2 = mathPow(Y2, ONE_THIRD);\n }\n const t1 = (-b - (Y1 + Y2)) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else {\n const T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));\n const theta = Math.acos(T) / 3;\n const ASqrt = mathSqrt(A);\n const tmp = Math.cos(theta);\n\n const t1 = (-b - 2 * ASqrt * tmp) / (3 * a);\n const t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);\n const t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n if (t3 >= 0 && t3 <= 1) {\n roots[n++] = t3;\n }\n }\n }\n return n;\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6781\u9650\u503C\u7684\u4F4D\u7F6E\n * @return \u6709\u6548\u6570\u76EE\n */\nexport function cubicExtrema(p0: number, p1: number, p2: number, p3: number, extrema: number[]): number {\n const b = 6 * p2 - 12 * p1 + 6 * p0;\n const a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;\n const c = 3 * p1 - 3 * p0;\n\n let n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n const t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n }\n }\n else {\n const disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n extrema[0] = -b / (2 * a);\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n const t1 = (-b + discSqrt) / (2 * a);\n const t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n extrema[n++] = t2;\n }\n }\n }\n return n;\n}\n\n/**\n * \u7EC6\u5206\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n */\nexport function cubicSubdivide(p0: number, p1: number, p2: number, p3: number, t: number, out: number[]) {\n const p01 = (p1 - p0) * t + p0;\n const p12 = (p2 - p1) * t + p1;\n const p23 = (p3 - p2) * t + p2;\n\n const p012 = (p12 - p01) * t + p01;\n const p123 = (p23 - p12) * t + p12;\n\n const p0123 = (p123 - p012) * t + p012;\n // Seg0\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p0123;\n // Seg1\n out[4] = p0123;\n out[5] = p123;\n out[6] = p23;\n out[7] = p3;\n}\n\n/**\n * \u6295\u5C04\u70B9\u5230\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u4E0A\uFF0C\u8FD4\u56DE\u6295\u5C04\u8DDD\u79BB\u3002\n * \u6295\u5C04\u70B9\u6709\u53EF\u80FD\u4F1A\u6709\u4E00\u4E2A\u6216\u8005\u591A\u4E2A\uFF0C\u8FD9\u91CC\u53EA\u8FD4\u56DE\u5176\u4E2D\u8DDD\u79BB\u6700\u77ED\u7684\u4E00\u4E2A\u3002\n */\nexport function cubicProjectPoint(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n x: number, y: number, out: VectorArray\n): number {\n // http://pomax.github.io/bezierinfo/#projections\n let t;\n let interval = 0.005;\n let d = Infinity;\n let prev;\n let next;\n let d1;\n let d2;\n\n _v0[0] = x;\n _v0[1] = y;\n\n // \u5148\u7C97\u7565\u4F30\u8BA1\u4E00\u4E0B\u53EF\u80FD\u7684\u6700\u5C0F\u8DDD\u79BB\u7684 t \u503C\n // PENDING\n for (let _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = cubicAt(x0, x1, x2, x3, _t);\n _v1[1] = cubicAt(y0, y1, y2, y3, _t);\n d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n prev = t - interval;\n next = t + interval;\n // t - interval\n _v1[0] = cubicAt(x0, x1, x2, x3, prev);\n _v1[1] = cubicAt(y0, y1, y2, y3, prev);\n\n d1 = v2DistSquare(_v1, _v0);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n // t + interval\n _v2[0] = cubicAt(x0, x1, x2, x3, next);\n _v2[1] = cubicAt(y0, y1, y2, y3, next);\n d2 = v2DistSquare(_v2, _v0);\n\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n // t\n if (out) {\n out[0] = cubicAt(x0, x1, x2, x3, t);\n out[1] = cubicAt(y0, y1, y2, y3, t);\n }\n // console.log(interval, i);\n return mathSqrt(d);\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u957F\u5EA6\n */\nexport function cubicLength(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n iteration: number\n) {\n let px = x0;\n let py = y0;\n\n let d = 0;\n\n const step = 1 / iteration;\n\n for (let i = 1; i <= iteration; i++) {\n let t = i * step;\n const x = cubicAt(x0, x1, x2, x3, t);\n const y = cubicAt(y0, y1, y2, y3, t);\n\n const dx = x - px;\n const dy = y - py;\n\n d += Math.sqrt(dx * dx + dy * dy);\n\n px = x;\n py = y;\n }\n\n return d;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u503C\n */\nexport function quadraticAt(p0: number, p1: number, p2: number, t: number): number {\n const onet = 1 - t;\n return onet * (onet * p0 + 2 * t * p1) + t * t * p2;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u5BFC\u6570\u503C\n */\nexport function quadraticDerivativeAt(p0: number, p1: number, p2: number, t: number): number {\n return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u65B9\u7A0B\u6839\n * @return \u6709\u6548\u6839\u6570\u76EE\n */\nexport function quadraticRootAt(p0: number, p1: number, p2: number, val: number, roots: number[]): number {\n const a = p0 - 2 * p1 + p2;\n const b = 2 * (p1 - p0);\n const c = p0 - val;\n\n let n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n const t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n const disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n const t1 = -b / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n const t1 = (-b + discSqrt) / (2 * a);\n const t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n }\n return n;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6781\u9650\u503C\n */\nexport function quadraticExtremum(p0: number, p1: number, p2: number): number {\n const divider = p0 + p2 - 2 * p1;\n if (divider === 0) {\n // p1 is center of p0 and p2\n return 0.5;\n }\n else {\n return (p0 - p1) / divider;\n }\n}\n\n/**\n * \u7EC6\u5206\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n */\nexport function quadraticSubdivide(p0: number, p1: number, p2: number, t: number, out: number[]) {\n const p01 = (p1 - p0) * t + p0;\n const p12 = (p2 - p1) * t + p1;\n const p012 = (p12 - p01) * t + p01;\n\n // Seg0\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n\n // Seg1\n out[3] = p012;\n out[4] = p12;\n out[5] = p2;\n}\n\n/**\n * \u6295\u5C04\u70B9\u5230\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u4E0A\uFF0C\u8FD4\u56DE\u6295\u5C04\u8DDD\u79BB\u3002\n * \u6295\u5C04\u70B9\u6709\u53EF\u80FD\u4F1A\u6709\u4E00\u4E2A\u6216\u8005\u591A\u4E2A\uFF0C\u8FD9\u91CC\u53EA\u8FD4\u56DE\u5176\u4E2D\u8DDD\u79BB\u6700\u77ED\u7684\u4E00\u4E2A\u3002\n * @param {number} x0\n * @param {number} y0\n * @param {number} x1\n * @param {number} y1\n * @param {number} x2\n * @param {number} y2\n * @param {number} x\n * @param {number} y\n * @param {Array.} out \u6295\u5C04\u70B9\n * @return {number}\n */\nexport function quadraticProjectPoint(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n x: number, y: number, out: VectorArray\n): number {\n // http://pomax.github.io/bezierinfo/#projections\n let t: number;\n let interval = 0.005;\n let d = Infinity;\n\n _v0[0] = x;\n _v0[1] = y;\n\n // \u5148\u7C97\u7565\u4F30\u8BA1\u4E00\u4E0B\u53EF\u80FD\u7684\u6700\u5C0F\u8DDD\u79BB\u7684 t \u503C\n // PENDING\n for (let _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = quadraticAt(x0, x1, x2, _t);\n _v1[1] = quadraticAt(y0, y1, y2, _t);\n const d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n const prev = t - interval;\n const next = t + interval;\n // t - interval\n _v1[0] = quadraticAt(x0, x1, x2, prev);\n _v1[1] = quadraticAt(y0, y1, y2, prev);\n\n const d1 = v2DistSquare(_v1, _v0);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n // t + interval\n _v2[0] = quadraticAt(x0, x1, x2, next);\n _v2[1] = quadraticAt(y0, y1, y2, next);\n const d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n // t\n if (out) {\n out[0] = quadraticAt(x0, x1, x2, t);\n out[1] = quadraticAt(y0, y1, y2, t);\n }\n // console.log(interval, i);\n return mathSqrt(d);\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u957F\u5EA6\n */\nexport function quadraticLength(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n iteration: number\n) {\n let px = x0;\n let py = y0;\n\n let d = 0;\n\n const step = 1 / iteration;\n\n for (let i = 1; i <= iteration; i++) {\n let t = i * step;\n const x = quadraticAt(x0, x1, x2, t);\n const y = quadraticAt(y0, y1, y2, t);\n\n const dx = x - px;\n const dy = y - py;\n\n d += Math.sqrt(dx * dx + dy * dy);\n\n px = x;\n py = y;\n }\n\n return d;\n}\n", "/**\n * @author Yi Shen(https://github.com/pissang)\n */\n\nimport * as vec2 from './vector';\nimport * as curve from './curve';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI2 = Math.PI * 2;\n\nconst start = vec2.create();\nconst end = vec2.create();\nconst extremity = vec2.create();\n\n/**\n * \u4ECE\u9876\u70B9\u6570\u7EC4\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromPoints(points: ArrayLike[], min: vec2.VectorArray, max: vec2.VectorArray) {\n if (points.length === 0) {\n return;\n }\n let p = points[0];\n let left = p[0];\n let right = p[0];\n let top = p[1];\n let bottom = p[1];\n\n for (let i = 1; i < points.length; i++) {\n p = points[i];\n left = mathMin(left, p[0]);\n right = mathMax(right, p[0]);\n top = mathMin(top, p[1]);\n bottom = mathMax(bottom, p[1]);\n }\n\n min[0] = left;\n min[1] = top;\n max[0] = right;\n max[1] = bottom;\n}\n\nexport function fromLine(\n x0: number, y0: number, x1: number, y1: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n min[0] = mathMin(x0, x1);\n min[1] = mathMin(y0, y1);\n max[0] = mathMax(x0, x1);\n max[1] = mathMax(y0, y1);\n}\n\nconst xDim: number[] = [];\nconst yDim: number[] = [];\n/**\n * \u4ECE\u4E09\u9636\u8D1D\u585E\u5C14\u66F2\u7EBF(p0, p1, p2, p3)\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromCubic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const cubicExtrema = curve.cubicExtrema;\n const cubicAt = curve.cubicAt;\n let n = cubicExtrema(x0, x1, x2, x3, xDim);\n min[0] = Infinity;\n min[1] = Infinity;\n max[0] = -Infinity;\n max[1] = -Infinity;\n\n for (let i = 0; i < n; i++) {\n const x = cubicAt(x0, x1, x2, x3, xDim[i]);\n min[0] = mathMin(x, min[0]);\n max[0] = mathMax(x, max[0]);\n }\n n = cubicExtrema(y0, y1, y2, y3, yDim);\n for (let i = 0; i < n; i++) {\n const y = cubicAt(y0, y1, y2, y3, yDim[i]);\n min[1] = mathMin(y, min[1]);\n max[1] = mathMax(y, max[1]);\n }\n\n min[0] = mathMin(x0, min[0]);\n max[0] = mathMax(x0, max[0]);\n min[0] = mathMin(x3, min[0]);\n max[0] = mathMax(x3, max[0]);\n\n min[1] = mathMin(y0, min[1]);\n max[1] = mathMax(y0, max[1]);\n min[1] = mathMin(y3, min[1]);\n max[1] = mathMax(y3, max[1]);\n}\n\n/**\n * \u4ECE\u4E8C\u9636\u8D1D\u585E\u5C14\u66F2\u7EBF(p0, p1, p2)\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromQuadratic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const quadraticExtremum = curve.quadraticExtremum;\n const quadraticAt = curve.quadraticAt;\n // Find extremities, where derivative in x dim or y dim is zero\n const tx =\n mathMax(\n mathMin(quadraticExtremum(x0, x1, x2), 1), 0\n );\n const ty =\n mathMax(\n mathMin(quadraticExtremum(y0, y1, y2), 1), 0\n );\n\n const x = quadraticAt(x0, x1, x2, tx);\n const y = quadraticAt(y0, y1, y2, ty);\n\n min[0] = mathMin(x0, x2, x);\n min[1] = mathMin(y0, y2, y);\n max[0] = mathMax(x0, x2, x);\n max[1] = mathMax(y0, y2, y);\n}\n\n/**\n * \u4ECE\u5706\u5F27\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromArc(\n x: number, y: number, rx: number, ry: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const vec2Min = vec2.min;\n const vec2Max = vec2.max;\n\n const diff = Math.abs(startAngle - endAngle);\n\n\n if (diff % PI2 < 1e-4 && diff > 1e-4) {\n // Is a circle\n min[0] = x - rx;\n min[1] = y - ry;\n max[0] = x + rx;\n max[1] = y + ry;\n return;\n }\n\n start[0] = mathCos(startAngle) * rx + x;\n start[1] = mathSin(startAngle) * ry + y;\n\n end[0] = mathCos(endAngle) * rx + x;\n end[1] = mathSin(endAngle) * ry + y;\n\n vec2Min(min, start, end);\n vec2Max(max, start, end);\n\n // Thresh to [0, Math.PI * 2]\n startAngle = startAngle % (PI2);\n if (startAngle < 0) {\n startAngle = startAngle + PI2;\n }\n endAngle = endAngle % (PI2);\n if (endAngle < 0) {\n endAngle = endAngle + PI2;\n }\n\n if (startAngle > endAngle && !anticlockwise) {\n endAngle += PI2;\n }\n else if (startAngle < endAngle && anticlockwise) {\n startAngle += PI2;\n }\n if (anticlockwise) {\n const tmp = endAngle;\n endAngle = startAngle;\n startAngle = tmp;\n }\n\n // const number = 0;\n // const step = (anticlockwise ? -Math.PI : Math.PI) / 2;\n for (let angle = 0; angle < endAngle; angle += Math.PI / 2) {\n if (angle > startAngle) {\n extremity[0] = mathCos(angle) * rx + x;\n extremity[1] = mathSin(angle) * ry + y;\n\n vec2Min(min, extremity, min);\n vec2Max(max, extremity, max);\n }\n }\n}\n", "/**\n * Path \u4EE3\u7406\uFF0C\u53EF\u4EE5\u5728`buildPath`\u4E2D\u7528\u4E8E\u66FF\u4EE3`ctx`, \u4F1A\u4FDD\u5B58\u6BCF\u4E2Apath\u64CD\u4F5C\u7684\u547D\u4EE4\u5230pathCommands\u5C5E\u6027\u4E2D\n * \u53EF\u4EE5\u7528\u4E8E isInsidePath \u5224\u65AD\u4EE5\u53CA\u83B7\u53D6boundingRect\n */\n\n// TODO getTotalLength, getPointAtLength, arcTo\n\n/* global Float32Array */\n\nimport * as vec2 from './vector';\nimport BoundingRect from './BoundingRect';\nimport {devicePixelRatio as dpr} from '../config';\nimport { fromLine, fromCubic, fromQuadratic, fromArc } from './bbox';\nimport { cubicAt, cubicLength, cubicSubdivide, quadraticLength, quadraticSubdivide } from './curve';\n\nconst CMD = {\n M: 1,\n L: 2,\n C: 3,\n Q: 4,\n A: 5,\n Z: 6,\n // Rect\n R: 7\n};\n\n// const CMD_MEM_SIZE = {\n// M: 3,\n// L: 3,\n// C: 7,\n// Q: 5,\n// A: 9,\n// R: 5,\n// Z: 1\n// };\n\ninterface ExtendedCanvasRenderingContext2D extends CanvasRenderingContext2D {\n dpr?: number\n}\n\nconst tmpOutX: number[] = [];\nconst tmpOutY: number[] = [];\n\nconst min: number[] = [];\nconst max: number[] = [];\nconst min2: number[] = [];\nconst max2: number[] = [];\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathCos = Math.cos;\nconst mathSin = Math.sin;\nconst mathSqrt = Math.sqrt;\nconst mathAbs = Math.abs;\n\nconst PI = Math.PI;\nconst PI2 = PI * 2;\n\nconst hasTypedArray = typeof Float32Array !== 'undefined';\n\nconst tmpAngles: number[] = [];\n\nfunction modPI2(radian: number) {\n // It's much more stable to mod N instedof PI\n const n = Math.round(radian / PI * 1e8) / 1e8;\n return (n % 2) * PI;\n}\n/**\n * Normalize start and end angles.\n * startAngle will be normalized to 0 ~ PI*2\n * sweepAngle(endAngle - startAngle) will be normalized to 0 ~ PI*2 if clockwise.\n * -PI*2 ~ 0 if anticlockwise.\n */\nexport function normalizeArcAngles(angles: number[], anticlockwise: boolean): void {\n let newStartAngle = modPI2(angles[0]);\n if (newStartAngle < 0) {\n // Normlize to 0 - PI2\n newStartAngle += PI2;\n }\n\n let delta = newStartAngle - angles[0];\n let newEndAngle = angles[1];\n newEndAngle += delta;\n\n // https://github.com/chromium/chromium/blob/c20d681c9c067c4e15bb1408f17114b9e8cba294/third_party/blink/renderer/modules/canvas/canvas2d/canvas_path.cc#L184\n // Is circle\n if (!anticlockwise && newEndAngle - newStartAngle >= PI2) {\n newEndAngle = newStartAngle + PI2;\n }\n else if (anticlockwise && newStartAngle - newEndAngle >= PI2) {\n newEndAngle = newStartAngle - PI2;\n }\n // Make startAngle < endAngle when clockwise, otherwise endAngle < startAngle.\n // The sweep angle can never been larger than P2.\n else if (!anticlockwise && newStartAngle > newEndAngle) {\n newEndAngle = newStartAngle + (PI2 - modPI2(newStartAngle - newEndAngle));\n }\n else if (anticlockwise && newStartAngle < newEndAngle) {\n newEndAngle = newStartAngle - (PI2 - modPI2(newEndAngle - newStartAngle));\n }\n\n angles[0] = newStartAngle;\n angles[1] = newEndAngle;\n}\n\n\nexport default class PathProxy {\n\n dpr = 1\n\n data: number[] | Float32Array\n\n /**\n * Version is for tracking if the path has been changed.\n */\n private _version: number\n\n /**\n * If save path data.\n */\n private _saveData: boolean\n\n /**\n * If the line segment is too small to draw. It will be added to the pending pt.\n * It will be added if the subpath needs to be finished before stroke, fill, or starting a new subpath.\n */\n private _pendingPtX: number;\n private _pendingPtY: number;\n // Distance of pending pt to previous point.\n // 0 if there is no pending point.\n // Only update the pending pt when distance is larger.\n private _pendingPtDist: number;\n\n private _ctx: ExtendedCanvasRenderingContext2D\n\n private _xi = 0\n private _yi = 0\n\n private _x0 = 0\n private _y0 = 0\n\n private _len = 0\n\n // Calculating path len and seg len.\n private _pathSegLen: number[]\n private _pathLen: number\n // Unit x, Unit y. Provide for avoiding drawing that too short line segment\n private _ux: number\n private _uy: number\n\n // For dash shim.\n private _lineDash: number[]\n private _needsDash: boolean\n private _dashOffset: number\n private _dashIdx: number\n private _dashSum: number\n\n static CMD = CMD\n\n constructor(notSaveData?: boolean) {\n if (notSaveData) {\n this._saveData = false;\n }\n\n if (this._saveData) {\n this.data = [];\n }\n }\n\n increaseVersion() {\n this._version++;\n }\n\n /**\n * Version can be used outside for compare if the path is changed.\n * For example to determine if need to update svg d str in svg renderer.\n */\n getVersion() {\n return this._version;\n }\n\n /**\n * @readOnly\n */\n setScale(sx: number, sy: number, segmentIgnoreThreshold?: number) {\n // Compat. Previously there is no segmentIgnoreThreshold.\n segmentIgnoreThreshold = segmentIgnoreThreshold || 0;\n if (segmentIgnoreThreshold > 0) {\n this._ux = mathAbs(segmentIgnoreThreshold / dpr / sx) || 0;\n this._uy = mathAbs(segmentIgnoreThreshold / dpr / sy) || 0;\n }\n }\n\n setDPR(dpr: number) {\n this.dpr = dpr;\n }\n\n setContext(ctx: ExtendedCanvasRenderingContext2D) {\n this._ctx = ctx;\n }\n\n getContext(): ExtendedCanvasRenderingContext2D {\n return this._ctx;\n }\n\n beginPath() {\n this._ctx && this._ctx.beginPath();\n this.reset();\n return this;\n }\n\n /**\n * Reset path data.\n */\n reset() {\n // Reset\n if (this._saveData) {\n this._len = 0;\n }\n\n if (this._lineDash) {\n this._lineDash = null;\n this._dashOffset = 0;\n }\n\n if (this._pathSegLen) {\n this._pathSegLen = null;\n this._pathLen = 0;\n }\n\n // Update version\n this._version++;\n }\n\n moveTo(x: number, y: number) {\n // Add pending point for previous path.\n this._drawPendingPt();\n\n this.addData(CMD.M, x, y);\n this._ctx && this._ctx.moveTo(x, y);\n\n // x0, y0, xi, yi \u662F\u8BB0\u5F55\u5728 _dashedXXXXTo \u65B9\u6CD5\u4E2D\u4F7F\u7528\n // xi, yi \u8BB0\u5F55\u5F53\u524D\u70B9, x0, y0 \u5728 closePath \u7684\u65F6\u5019\u56DE\u5230\u8D77\u59CB\u70B9\u3002\n // \u6709\u53EF\u80FD\u5728 beginPath \u4E4B\u540E\u76F4\u63A5\u8C03\u7528 lineTo\uFF0C\u8FD9\u65F6\u5019 x0, y0 \u9700\u8981\n // \u5728 lineTo \u65B9\u6CD5\u4E2D\u8BB0\u5F55\uFF0C\u8FD9\u91CC\u5148\u4E0D\u8003\u8651\u8FD9\u79CD\u60C5\u51B5\uFF0Cdashed line \u4E5F\u53EA\u5728 IE10- \u4E2D\u4E0D\u652F\u6301\n this._x0 = x;\n this._y0 = y;\n\n this._xi = x;\n this._yi = y;\n\n return this;\n }\n\n lineTo(x: number, y: number) {\n const dx = mathAbs(x - this._xi);\n const dy = mathAbs(y - this._yi);\n const exceedUnit = dx > this._ux || dy > this._uy;\n\n this.addData(CMD.L, x, y);\n\n if (this._ctx && exceedUnit) {\n this._needsDash ? this._dashedLineTo(x, y)\n : this._ctx.lineTo(x, y);\n }\n if (exceedUnit) {\n this._xi = x;\n this._yi = y;\n this._pendingPtDist = 0;\n }\n else {\n const d2 = dx * dx + dy * dy;\n // Only use the farthest pending point.\n if (d2 > this._pendingPtDist) {\n this._pendingPtX = x;\n this._pendingPtY = y;\n this._pendingPtDist = d2;\n }\n }\n\n return this;\n }\n\n bezierCurveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) {\n this._drawPendingPt();\n\n this.addData(CMD.C, x1, y1, x2, y2, x3, y3);\n if (this._ctx) {\n this._needsDash ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)\n : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n this._xi = x3;\n this._yi = y3;\n return this;\n }\n\n quadraticCurveTo(x1: number, y1: number, x2: number, y2: number) {\n this._drawPendingPt();\n\n this.addData(CMD.Q, x1, y1, x2, y2);\n if (this._ctx) {\n this._needsDash ? this._dashedQuadraticTo(x1, y1, x2, y2)\n : this._ctx.quadraticCurveTo(x1, y1, x2, y2);\n }\n this._xi = x2;\n this._yi = y2;\n return this;\n }\n\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise?: boolean) {\n this._drawPendingPt();\n\n tmpAngles[0] = startAngle;\n tmpAngles[1] = endAngle;\n normalizeArcAngles(tmpAngles, anticlockwise);\n\n startAngle = tmpAngles[0];\n endAngle = tmpAngles[1];\n\n let delta = endAngle - startAngle;\n\n this.addData(\n CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1\n );\n\n this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n\n this._xi = mathCos(endAngle) * r + cx;\n this._yi = mathSin(endAngle) * r + cy;\n return this;\n }\n\n // TODO\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number) {\n this._drawPendingPt();\n\n if (this._ctx) {\n this._ctx.arcTo(x1, y1, x2, y2, radius);\n }\n return this;\n }\n\n // TODO\n rect(x: number, y: number, w: number, h: number) {\n this._drawPendingPt();\n\n this._ctx && this._ctx.rect(x, y, w, h);\n this.addData(CMD.R, x, y, w, h);\n return this;\n }\n\n closePath() {\n // Add pending point for previous path.\n this._drawPendingPt();\n\n this.addData(CMD.Z);\n\n const ctx = this._ctx;\n const x0 = this._x0;\n const y0 = this._y0;\n if (ctx) {\n this._needsDash && this._dashedLineTo(x0, y0);\n ctx.closePath();\n }\n\n this._xi = x0;\n this._yi = y0;\n return this;\n }\n\n fill(ctx: CanvasRenderingContext2D) {\n ctx && ctx.fill();\n this.toStatic();\n }\n\n stroke(ctx: CanvasRenderingContext2D) {\n ctx && ctx.stroke();\n this.toStatic();\n }\n\n /**\n * \u5FC5\u987B\u5728\u5176\u5B83\u7ED8\u5236\u547D\u4EE4\u524D\u8C03\u7528\n * Must be invoked before all other path drawing methods\n */\n setLineDash(lineDash: number[] | false) {\n if (lineDash instanceof Array) {\n this._lineDash = lineDash;\n\n this._dashIdx = 0;\n\n let lineDashSum = 0;\n for (let i = 0; i < lineDash.length; i++) {\n lineDashSum += lineDash[i];\n }\n this._dashSum = lineDashSum;\n\n this._needsDash = true;\n }\n else {\n // Clear\n this._lineDash = null;\n this._needsDash = false;\n }\n return this;\n }\n\n /**\n * \u5FC5\u987B\u5728\u5176\u5B83\u7ED8\u5236\u547D\u4EE4\u524D\u8C03\u7528\n * Must be invoked before all other path drawing methods\n */\n setLineDashOffset(offset: number) {\n this._dashOffset = offset;\n return this;\n }\n\n len() {\n return this._len;\n }\n\n setData(data: Float32Array | number[]) {\n\n const len = data.length;\n\n if (!(this.data && this.data.length === len) && hasTypedArray) {\n this.data = new Float32Array(len);\n }\n\n for (let i = 0; i < len; i++) {\n this.data[i] = data[i];\n }\n\n this._len = len;\n }\n\n appendPath(path: PathProxy | PathProxy[]) {\n if (!(path instanceof Array)) {\n path = [path];\n }\n const len = path.length;\n let appendSize = 0;\n let offset = this._len;\n for (let i = 0; i < len; i++) {\n appendSize += path[i].len();\n }\n if (hasTypedArray && (this.data instanceof Float32Array)) {\n this.data = new Float32Array(offset + appendSize);\n }\n for (let i = 0; i < len; i++) {\n const appendPathData = path[i].data;\n for (let k = 0; k < appendPathData.length; k++) {\n this.data[offset++] = appendPathData[k];\n }\n }\n this._len = offset;\n }\n\n /**\n * \u586B\u5145 Path \u6570\u636E\u3002\n * \u5C3D\u91CF\u590D\u7528\u800C\u4E0D\u7533\u660E\u65B0\u7684\u6570\u7EC4\u3002\u5927\u90E8\u5206\u56FE\u5F62\u91CD\u7ED8\u7684\u6307\u4EE4\u6570\u636E\u957F\u5EA6\u90FD\u662F\u4E0D\u53D8\u7684\u3002\n */\n addData(\n cmd: number,\n a?: number,\n b?: number,\n c?: number,\n d?: number,\n e?: number,\n f?: number,\n g?: number,\n h?: number\n ) {\n if (!this._saveData) {\n return;\n }\n\n let data = this.data;\n if (this._len + arguments.length > data.length) {\n // \u56E0\u4E3A\u4E4B\u524D\u7684\u6570\u7EC4\u5DF2\u7ECF\u8F6C\u6362\u6210\u9759\u6001\u7684 Float32Array\n // \u6240\u4EE5\u4E0D\u591F\u7528\u65F6\u9700\u8981\u6269\u5C55\u4E00\u4E2A\u65B0\u7684\u52A8\u6001\u6570\u7EC4\n this._expandData();\n data = this.data;\n }\n for (let i = 0; i < arguments.length; i++) {\n data[this._len++] = arguments[i];\n }\n }\n\n private _drawPendingPt() {\n if (this._pendingPtDist > 0) {\n this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY);\n this._pendingPtDist = 0;\n }\n }\n\n private _expandData() {\n // Only if data is Float32Array\n if (!(this.data instanceof Array)) {\n const newData = [];\n for (let i = 0; i < this._len; i++) {\n newData[i] = this.data[i];\n }\n this.data = newData;\n }\n }\n\n private _dashedLineTo(x1: number, y1: number) {\n const dashSum = this._dashSum;\n const lineDash = this._lineDash;\n const ctx = this._ctx;\n let offset = this._dashOffset;\n\n let x0 = this._xi;\n let y0 = this._yi;\n let dx = x1 - x0;\n let dy = y1 - y0;\n let dist = mathSqrt(dx * dx + dy * dy);\n let x = x0;\n let y = y0;\n let nDash = lineDash.length;\n let dash;\n let idx;\n dx /= dist;\n dy /= dist;\n\n if (offset < 0) {\n // Convert to positive offset\n offset = dashSum + offset;\n }\n offset %= dashSum;\n x -= offset * dx;\n y -= offset * dy;\n\n while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1)\n || (dx === 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) {\n idx = this._dashIdx;\n dash = lineDash[idx];\n x += dx * dash;\n y += dy * dash;\n this._dashIdx = (idx + 1) % nDash;\n // Skip positive offset\n if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) {\n continue;\n }\n ctx[idx % 2 ? 'moveTo' : 'lineTo'](\n dx >= 0 ? mathMin(x, x1) : mathMax(x, x1),\n dy >= 0 ? mathMin(y, y1) : mathMax(y, y1)\n );\n }\n // Offset for next lineTo\n dx = x - x1;\n dy = y - y1;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n }\n\n // Not accurate dashed line to\n private _dashedBezierTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) {\n const ctx = this._ctx;\n\n let dashSum = this._dashSum;\n let offset = this._dashOffset;\n let lineDash = this._lineDash;\n\n let x0 = this._xi;\n let y0 = this._yi;\n let bezierLen = 0;\n let idx = this._dashIdx;\n let nDash = lineDash.length;\n\n let t;\n let dx;\n let dy;\n\n let x;\n let y;\n\n let tmpLen = 0;\n\n if (offset < 0) {\n // Convert to positive offset\n offset = dashSum + offset;\n }\n offset %= dashSum;\n // Bezier approx length\n for (t = 0; t < 1; t += 0.1) {\n dx = cubicAt(x0, x1, x2, x3, t + 0.1)\n - cubicAt(x0, x1, x2, x3, t);\n dy = cubicAt(y0, y1, y2, y3, t + 0.1)\n - cubicAt(y0, y1, y2, y3, t);\n bezierLen += mathSqrt(dx * dx + dy * dy);\n }\n\n // Find idx after add offset\n for (; idx < nDash; idx++) {\n tmpLen += lineDash[idx];\n if (tmpLen > offset) {\n break;\n }\n }\n t = (tmpLen - offset) / bezierLen;\n\n while (t <= 1) {\n\n x = cubicAt(x0, x1, x2, x3, t);\n y = cubicAt(y0, y1, y2, y3, t);\n\n // Use line to approximate dashed bezier\n // Bad result if dash is long\n idx % 2 ? ctx.moveTo(x, y)\n : ctx.lineTo(x, y);\n\n t += lineDash[idx] / bezierLen;\n\n idx = (idx + 1) % nDash;\n }\n\n // Finish the last segment and calculate the new offset\n (idx % 2 !== 0) && ctx.lineTo(x3, y3);\n dx = x3 - x;\n dy = y3 - y;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n }\n\n private _dashedQuadraticTo(x1: number, y1: number, x2: number, y2: number) {\n // Convert quadratic to cubic using degree elevation\n const x3 = x2;\n const y3 = y2;\n x2 = (x2 + 2 * x1) / 3;\n y2 = (y2 + 2 * y1) / 3;\n x1 = (this._xi + 2 * x1) / 3;\n y1 = (this._yi + 2 * y1) / 3;\n\n this._dashedBezierTo(x1, y1, x2, y2, x3, y3);\n }\n\n /**\n * Convert dynamic array to static Float32Array\n *\n * It will still use a normal array if command buffer length is less than 10\n * Because Float32Array itself may take more memory than a normal array.\n *\n * 10 length will make sure at least one M command and one A(arc) command.\n */\n toStatic() {\n if (!this._saveData) {\n return;\n }\n\n this._drawPendingPt();\n\n const data = this.data;\n if (data instanceof Array) {\n data.length = this._len;\n if (hasTypedArray && this._len > 11) {\n this.data = new Float32Array(data);\n }\n }\n }\n\n\n getBoundingRect() {\n min[0] = min[1] = min2[0] = min2[1] = Number.MAX_VALUE;\n max[0] = max[1] = max2[0] = max2[1] = -Number.MAX_VALUE;\n\n const data = this.data;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n let i;\n for (i = 0; i < this._len;) {\n const cmd = data[i++] as number;\n\n const isFirst = i === 1;\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n min2[0] = x0;\n min2[1] = y0;\n max2[0] = x0;\n max2[1] = y0;\n break;\n case CMD.L:\n fromLine(xi, yi, data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n fromCubic(\n xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n min2, max2\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n fromQuadratic(\n xi, yi, data[i++], data[i++], data[i], data[i + 1],\n min2, max2\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n const endAngle = data[i++] + startAngle;\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !data[i++];\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n\n fromArc(\n cx, cy, rx, ry, startAngle, endAngle,\n anticlockwise, min2, max2\n );\n\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n // Use fromLine\n fromLine(x0, y0, x0 + width, y0 + height, min2, max2);\n break;\n case CMD.Z:\n xi = x0;\n yi = y0;\n break;\n }\n\n // Union\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n\n // No data\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n );\n }\n\n private _calculateLength(): number {\n const data = this.data;\n const len = this._len;\n const ux = this._ux;\n const uy = this._uy;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n if (!this._pathSegLen) {\n this._pathSegLen = [];\n }\n const pathSegLen = this._pathSegLen;\n let pathTotalLen = 0;\n let segCount = 0;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++] as number;\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n let l = -1;\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n break;\n case CMD.L: {\n const x2 = data[i++];\n const y2 = data[i++];\n const dx = x2 - xi;\n const dy = y2 - yi;\n if (mathAbs(dx) > ux || mathAbs(dy) > uy || i === len - 1) {\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x2;\n yi = y2;\n }\n break;\n }\n case CMD.C: {\n const x1 = data[i++];\n const y1 = data[i++];\n const x2 = data[i++];\n const y2 = data[i++];\n const x3 = data[i++];\n const y3 = data[i++];\n // TODO adaptive iteration\n l = cubicLength(xi, yi, x1, y1, x2, y2, x3, y3, 10);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n const x1 = data[i++];\n const y1 = data[i++];\n const x2 = data[i++];\n const y2 = data[i++];\n l = quadraticLength(xi, yi, x1, y1, x2, y2, 10);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n let delta = data[i++];\n const endAngle = delta + startAngle;\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !data[i++];\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n\n // TODO Ellipse\n l = mathMax(rx, ry) * mathMin(PI2, Math.abs(delta));\n\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R: {\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n l = width * 2 + height * 2;\n break;\n }\n case CMD.Z: {\n const dx = x0 - xi;\n const dy = y0 - yi;\n l = Math.sqrt(dx * dx + dy * dy);\n\n xi = x0;\n yi = y0;\n break;\n }\n }\n\n if (l >= 0) {\n pathSegLen[segCount++] = l;\n pathTotalLen += l;\n }\n }\n\n // TODO Optimize memory cost.\n this._pathLen = pathTotalLen;\n\n return pathTotalLen;\n }\n /**\n * Rebuild path from current data\n * Rebuild path will not consider javascript implemented line dash.\n * @param {CanvasRenderingContext2D} ctx\n */\n rebuildPath(ctx: PathRebuilder, percent: number) {\n const d = this.data;\n const ux = this._ux;\n const uy = this._uy;\n const len = this._len;\n let x0;\n let y0;\n let xi;\n let yi;\n let x;\n let y;\n\n const drawPart = percent < 1;\n let pathSegLen;\n let pathTotalLen;\n let accumLength = 0;\n let segCount = 0;\n let displayedLength;\n\n let pendingPtDist = 0;\n let pendingPtX: number;\n let pendingPtY: number;\n\n\n if (drawPart) {\n if (!this._pathSegLen) {\n this._calculateLength();\n }\n pathSegLen = this._pathSegLen;\n pathTotalLen = this._pathLen;\n displayedLength = percent * pathTotalLen;\n\n if (!displayedLength) {\n return;\n }\n }\n\n lo: for (let i = 0; i < len;) {\n const cmd = d[i++];\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = d[i];\n yi = d[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n // Only lineTo support ignoring small segments.\n // Otherwise if the pending point should always been flushed.\n if (cmd !== CMD.L && pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n switch (cmd) {\n case CMD.M:\n x0 = xi = d[i++];\n y0 = yi = d[i++];\n ctx.moveTo(xi, yi);\n break;\n case CMD.L: {\n x = d[i++];\n y = d[i++];\n const dx = mathAbs(x - xi);\n const dy = mathAbs(y - yi);\n // Not draw too small seg between\n if (dx > ux || dy > uy) {\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x * t, yi * (1 - t) + y * t);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.lineTo(x, y);\n xi = x;\n yi = y;\n pendingPtDist = 0;\n }\n else {\n const d2 = dx * dx + dy * dy;\n // Only use the farthest pending point.\n if (d2 > pendingPtDist) {\n pendingPtX = x;\n pendingPtY = y;\n pendingPtDist = d2;\n }\n }\n break;\n }\n case CMD.C: {\n const x1 = d[i++];\n const y1 = d[i++];\n const x2 = d[i++];\n const y2 = d[i++];\n const x3 = d[i++];\n const y3 = d[i++];\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n cubicSubdivide(xi, x1, x2, x3, t, tmpOutX);\n cubicSubdivide(yi, y1, y2, y3, t, tmpOutY);\n ctx.bezierCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2], tmpOutX[3], tmpOutY[3]);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n const x1 = d[i++];\n const y1 = d[i++];\n const x2 = d[i++];\n const y2 = d[i++];\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n quadraticSubdivide(xi, x1, x2, t, tmpOutX);\n quadraticSubdivide(yi, y1, y2, t, tmpOutY);\n ctx.quadraticCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2]);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.quadraticCurveTo(x1, y1, x2, y2);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n const cx = d[i++];\n const cy = d[i++];\n const rx = d[i++];\n const ry = d[i++];\n let startAngle = d[i++];\n let delta = d[i++];\n const psi = d[i++];\n const anticlockwise = !d[i++];\n const r = (rx > ry) ? rx : ry;\n const scaleX = (rx > ry) ? 1 : rx / ry;\n const scaleY = (rx > ry) ? ry / rx : 1;\n const isEllipse = mathAbs(rx - ry) > 1e-3;\n let endAngle = startAngle + delta;\n let breakBuild = false;\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n endAngle = startAngle + delta * (displayedLength - accumLength) / l;\n breakBuild = true;\n }\n accumLength += l;\n }\n if (isEllipse && ctx.ellipse) {\n ctx.ellipse(cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise);\n }\n else {\n ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n }\n\n if (breakBuild) {\n break lo;\n }\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = d[i];\n y0 = yi = d[i + 1];\n\n x = d[i++];\n y = d[i++];\n const width = d[i++];\n const height = d[i++];\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n let d = displayedLength - accumLength;\n ctx.moveTo(x, y);\n ctx.lineTo(x + mathMin(d, width), y);\n d -= width;\n if (d > 0) {\n ctx.lineTo(x + width, y + mathMin(d, height));\n }\n d -= height;\n if (d > 0) {\n ctx.lineTo(x + mathMax(width - d, 0), y + height);\n }\n d -= width;\n if (d > 0) {\n ctx.lineTo(x, y + mathMax(height - d, 0));\n }\n break lo;\n }\n accumLength += l;\n }\n ctx.rect(x, y, width, height);\n break;\n case CMD.Z:\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x0 * t, yi * (1 - t) + y0 * t);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.closePath();\n xi = x0;\n yi = y0;\n }\n }\n }\n\n clone() {\n const newProxy = new PathProxy();\n const data = this.data;\n newProxy.data = data.slice ? data.slice()\n : Array.prototype.slice.call(data);\n newProxy._len = this._len;\n return newProxy;\n }\n\n private static initDefaultProps = (function () {\n const proto = PathProxy.prototype;\n proto._saveData = true;\n proto._needsDash = false;\n proto._dashOffset = 0;\n proto._dashIdx = 0;\n proto._dashSum = 0;\n proto._ux = 0;\n proto._uy = 0;\n proto._pendingPtDist = 0;\n proto._version = 0;\n })()\n}\n\n\nexport interface PathRebuilder {\n moveTo(x: number, y: number): void\n lineTo(x: number, y: number): void\n bezierCurveTo(x: number, y: number, x2: number, y2: number, x3: number, y3: number): void\n quadraticCurveTo(x: number, y: number, x2: number, y2: number): void\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean): void\n ellipse(cx: number, cy: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise: boolean): void\n rect(x: number, y: number, width: number, height: number): void\n closePath(): void\n}", "\n/**\n * \u7EBF\u6BB5\u5305\u542B\u5224\u65AD\n * @param {number} x0\n * @param {number} y0\n * @param {number} x1\n * @param {number} y1\n * @param {number} lineWidth\n * @param {number} x\n * @param {number} y\n * @return {boolean}\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n let _a = 0;\n let _b = x0;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l)\n || (y < y0 - _l && y < y1 - _l)\n || (x > x0 + _l && x > x1 + _l)\n || (x < x0 - _l && x < x1 - _l)\n ) {\n return false;\n }\n\n if (x0 !== x1) {\n _a = (y0 - y1) / (x0 - x1);\n _b = (x0 * y1 - x1 * y0) / (x0 - x1);\n }\n else {\n return Math.abs(x - x0) <= _l / 2;\n }\n const tmp = _a * x - y + _b;\n const _s = tmp * tmp / (_a * _a + 1);\n return _s <= _l / 2 * _l / 2;\n}", "\nimport * as curve from '../core/curve';\n\n/**\n * \u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number,\n x2: number, y2: number, x3: number, y3: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)\n ) {\n return false;\n }\n const d = curve.cubicProjectPoint(\n x0, y0, x1, y1, x2, y2, x3, y3,\n x, y, null\n );\n return d <= _l / 2;\n}", "import {quadraticProjectPoint} from '../core/curve';\n\n/**\n * \u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l && y > y2 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l)\n ) {\n return false;\n }\n const d = quadraticProjectPoint(\n x0, y0, x1, y1, x2, y2,\n x, y, null\n );\n return d <= _l / 2;\n}\n", "\nconst PI2 = Math.PI * 2;\n\nexport function normalizeRadian(angle: number): number {\n angle %= PI2;\n if (angle < 0) {\n angle += PI2;\n }\n return angle;\n}", "\nimport {normalizeRadian} from './util';\n\nconst PI2 = Math.PI * 2;\n\n/**\n * \u5706\u5F27\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number,\n anticlockwise: boolean,\n lineWidth: number, x: number, y: number\n): boolean {\n\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n\n x -= cx;\n y -= cy;\n const d = Math.sqrt(x * x + y * y);\n\n if ((d - _l > r) || (d + _l < r)) {\n return false;\n }\n // TODO\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n return true;\n }\n if (anticlockwise) {\n const tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n let angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n return (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle);\n}", "\nexport default function windingLine(\n x0: number, y0: number, x1: number, y1: number, x: number, y: number\n): number {\n if ((y > y0 && y > y1) || (y < y0 && y < y1)) {\n return 0;\n }\n // Ignore horizontal line\n if (y1 === y0) {\n return 0;\n }\n const t = (y - y0) / (y1 - y0);\n\n let dir = y1 < y0 ? 1 : -1;\n // Avoid winding error when intersection point is the connect point of two line of polygon\n if (t === 1 || t === 0) {\n dir = y1 < y0 ? 0.5 : -0.5;\n }\n\n const x_ = t * (x1 - x0) + x0;\n\n // If (x, y) on the line, considered as \"contain\".\n return x_ === x ? Infinity : x_ > x ? dir : 0;\n}", "import PathProxy from '../core/PathProxy';\nimport * as line from './line';\nimport * as cubic from './cubic';\nimport * as quadratic from './quadratic';\nimport * as arc from './arc';\nimport * as curve from '../core/curve';\nimport windingLine from './windingLine';\n\nconst CMD = PathProxy.CMD;\nconst PI2 = Math.PI * 2;\n\nconst EPSILON = 1e-4;\n\nfunction isAroundEqual(a: number, b: number) {\n return Math.abs(a - b) < EPSILON;\n}\n\n// \u4E34\u65F6\u6570\u7EC4\nconst roots = [-1, -1, -1];\nconst extrema = [-1, -1];\n\nfunction swapExtrema() {\n const tmp = extrema[0];\n extrema[0] = extrema[1];\n extrema[1] = tmp;\n}\n\nfunction windingCubic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n x: number, y: number\n): number {\n // Quick reject\n if (\n (y > y0 && y > y1 && y > y2 && y > y3)\n || (y < y0 && y < y1 && y < y2 && y < y3)\n ) {\n return 0;\n }\n const nRoots = curve.cubicRootAt(y0, y1, y2, y3, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n let w = 0;\n let nExtrema = -1;\n let y0_;\n let y1_;\n for (let i = 0; i < nRoots; i++) {\n let t = roots[i];\n\n // Avoid winding error when intersection point is the connect point of two line of polygon\n let unit = (t === 0 || t === 1) ? 0.5 : 1;\n\n let x_ = curve.cubicAt(x0, x1, x2, x3, t);\n if (x_ < x) { // Quick reject\n continue;\n }\n if (nExtrema < 0) {\n nExtrema = curve.cubicExtrema(y0, y1, y2, y3, extrema);\n if (extrema[1] < extrema[0] && nExtrema > 1) {\n swapExtrema();\n }\n y0_ = curve.cubicAt(y0, y1, y2, y3, extrema[0]);\n if (nExtrema > 1) {\n y1_ = curve.cubicAt(y0, y1, y2, y3, extrema[1]);\n }\n }\n if (nExtrema === 2) {\n // \u5206\u6210\u4E09\u6BB5\u5355\u8C03\u51FD\u6570\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else if (t < extrema[1]) {\n w += y1_ < y0_ ? unit : -unit;\n }\n else {\n w += y3 < y1_ ? unit : -unit;\n }\n }\n else {\n // \u5206\u6210\u4E24\u6BB5\u5355\u8C03\u51FD\u6570\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else {\n w += y3 < y0_ ? unit : -unit;\n }\n }\n }\n return w;\n }\n}\n\nfunction windingQuadratic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n x: number, y: number\n): number {\n // Quick reject\n if (\n (y > y0 && y > y1 && y > y2)\n || (y < y0 && y < y1 && y < y2)\n ) {\n return 0;\n }\n const nRoots = curve.quadraticRootAt(y0, y1, y2, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n const t = curve.quadraticExtremum(y0, y1, y2);\n if (t >= 0 && t <= 1) {\n let w = 0;\n let y_ = curve.quadraticAt(y0, y1, y2, t);\n for (let i = 0; i < nRoots; i++) {\n // Remove one endpoint.\n let unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1;\n\n let x_ = curve.quadraticAt(x0, x1, x2, roots[i]);\n if (x_ < x) { // Quick reject\n continue;\n }\n if (roots[i] < t) {\n w += y_ < y0 ? unit : -unit;\n }\n else {\n w += y2 < y_ ? unit : -unit;\n }\n }\n return w;\n }\n else {\n // Remove one endpoint.\n const unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1;\n\n const x_ = curve.quadraticAt(x0, x1, x2, roots[0]);\n if (x_ < x) { // Quick reject\n return 0;\n }\n return y2 < y0 ? unit : -unit;\n }\n }\n}\n// TODO\n// Arc \u65CB\u8F6C\n// startAngle, endAngle has been normalized by normalizeArcAngles\nfunction windingArc(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n x: number, y: number\n) {\n y -= cy;\n if (y > r || y < -r) {\n return 0;\n }\n const tmp = Math.sqrt(r * r - y * y);\n roots[0] = -tmp;\n roots[1] = tmp;\n\n const dTheta = Math.abs(startAngle - endAngle);\n if (dTheta < 1e-4) {\n return 0;\n }\n if (dTheta >= PI2 - 1e-4) {\n // Is a circle\n startAngle = 0;\n endAngle = PI2;\n const dir = anticlockwise ? 1 : -1;\n if (x >= roots[0] + cx && x <= roots[1] + cx) {\n return dir;\n }\n else {\n return 0;\n }\n }\n\n if (startAngle > endAngle) {\n // Swap, make sure startAngle is smaller than endAngle.\n const tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n // endAngle - startAngle is normalized to 0 - 2*PI.\n // So following will normalize them to 0 - 4*PI\n if (startAngle < 0) {\n startAngle += PI2;\n endAngle += PI2;\n }\n\n let w = 0;\n for (let i = 0; i < 2; i++) {\n const x_ = roots[i];\n if (x_ + cx > x) {\n let angle = Math.atan2(y, x_);\n let dir = anticlockwise ? 1 : -1;\n if (angle < 0) {\n angle = PI2 + angle;\n }\n if (\n (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)\n ) {\n if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {\n dir = -dir;\n }\n w += dir;\n }\n }\n }\n return w;\n}\n\n\nfunction containPath(\n path: PathProxy, lineWidth: number, isStroke: boolean, x: number, y: number\n): boolean {\n const data = path.data;\n const len = path.len();\n let w = 0;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n let x1;\n let y1;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++];\n const isFirst = i === 1;\n // Begin a new subpath\n if (cmd === CMD.M && i > 1) {\n // Close previous subpath\n if (!isStroke) {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n // \u5982\u679C\u88AB\u4EFB\u4F55\u4E00\u4E2A subpath \u5305\u542B\n // if (w !== 0) {\n // return true;\n // }\n }\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n //\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n if (isStroke) {\n if (line.containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n // NOTE \u5728\u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A L, C, Q \u7684\u65F6\u5019\u4F1A\u8BA1\u7B97\u51FA NaN\n w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n if (isStroke) {\n if (cubic.containStroke(xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n w += windingCubic(\n xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n x, y\n ) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n if (isStroke) {\n if (quadratic.containStroke(xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n w += windingQuadratic(\n xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n x, y\n ) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const theta = data[i++];\n const dTheta = data[i++];\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n // \u4E0D\u662F\u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n if (!isFirst) {\n w += windingLine(xi, yi, x1, y1, x, y);\n }\n else {\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n }\n // zr \u4F7F\u7528scale\u6765\u6A21\u62DF\u692D\u5706, \u8FD9\u91CC\u4E5F\u5BF9x\u505A\u4E00\u5B9A\u7684\u7F29\u653E\n const _x = (x - cx) * ry / rx + cx;\n if (isStroke) {\n if (arc.containStroke(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n lineWidth, _x, y\n )) {\n return true;\n }\n }\n else {\n w += windingArc(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n _x, y\n );\n }\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n x1 = x0 + width;\n y1 = y0 + height;\n if (isStroke) {\n if (line.containStroke(x0, y0, x1, y0, lineWidth, x, y)\n || line.containStroke(x1, y0, x1, y1, lineWidth, x, y)\n || line.containStroke(x1, y1, x0, y1, lineWidth, x, y)\n || line.containStroke(x0, y1, x0, y0, lineWidth, x, y)\n ) {\n return true;\n }\n }\n else {\n // FIXME Clockwise ?\n w += windingLine(x1, y0, x1, y1, x, y);\n w += windingLine(x0, y1, x0, y0, x, y);\n }\n break;\n case CMD.Z:\n if (isStroke) {\n if (line.containStroke(\n xi, yi, x0, y0, lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n // Close a subpath\n w += windingLine(xi, yi, x0, y0, x, y);\n // \u5982\u679C\u88AB\u4EFB\u4F55\u4E00\u4E2A subpath \u5305\u542B\n // FIXME subpaths may overlap\n // if (w !== 0) {\n // return true;\n // }\n }\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (!isStroke && !isAroundEqual(yi, y0)) {\n w += windingLine(xi, yi, x0, y0, x, y) || 0;\n }\n return w !== 0;\n}\n\nexport function contain(pathProxy: PathProxy, x: number, y: number): boolean {\n return containPath(pathProxy, 0, false, x, y);\n}\n\nexport function containStroke(pathProxy: PathProxy, lineWidth: number, x: number, y: number): boolean {\n return containPath(pathProxy, lineWidth, true, x, y);\n}", "import Displayable, { DisplayableProps,\n CommonStyleProps,\n DEFAULT_COMMON_STYLE,\n DisplayableStatePropNames,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport Element, { ElementAnimateConfig } from '../Element';\nimport PathProxy from '../core/PathProxy';\nimport * as pathContain from '../contain/path';\nimport { PatternObject } from './Pattern';\nimport { Dictionary, PropType, MapToType } from '../core/types';\nimport BoundingRect from '../core/BoundingRect';\nimport { LinearGradientObject } from './LinearGradient';\nimport { RadialGradientObject } from './RadialGradient';\nimport { defaults, keys, extend, clone, isString, createObject } from '../core/util';\nimport Animator from '../animation/Animator';\nimport { lum } from '../tool/color';\nimport { DARK_LABEL_COLOR, LIGHT_LABEL_COLOR, DARK_MODE_THRESHOLD, LIGHTER_LABEL_COLOR } from '../config';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT, STYLE_CHANGED_BIT } from './constants';\n\n\nexport interface PathStyleProps extends CommonStyleProps {\n fill?: string | PatternObject | LinearGradientObject | RadialGradientObject\n stroke?: string | PatternObject | LinearGradientObject | RadialGradientObject\n decal?: PatternObject\n\n /**\n * Still experimental, not works weel on arc with edge cases(large angle).\n */\n strokePercent?: number\n strokeNoScale?: boolean\n fillOpacity?: number\n strokeOpacity?: number\n\n /**\n * `true` is not supported.\n * `false`/`null`/`undefined` are the same.\n * `false` is used to remove lineDash in some\n * case that `null`/`undefined` can not be set.\n * (e.g., emphasis.lineStyle in echarts)\n */\n lineDash?: false | number[] | 'solid' | 'dashed' | 'dotted'\n lineDashOffset?: number\n\n lineWidth?: number\n lineCap?: CanvasLineCap\n lineJoin?: CanvasLineJoin\n\n miterLimit?: number\n /**\n * Paint order, if do stroke first. Similar to SVG paint-order\n * https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/paint-order\n */\n strokeFirst?: boolean\n}\n\nexport const DEFAULT_PATH_STYLE: PathStyleProps = defaults({\n fill: '#000',\n stroke: null,\n strokePercent: 1,\n fillOpacity: 1,\n strokeOpacity: 1,\n\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n miterLimit: 10,\n\n strokeNoScale: false,\n strokeFirst: false\n} as PathStyleProps, DEFAULT_COMMON_STYLE);\n\n\nexport const DEFAULT_PATH_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n fill: true,\n stroke: true,\n strokePercent: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineDashOffset: true,\n lineWidth: true,\n miterLimit: true\n } as MapToType, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\nexport interface PathProps extends DisplayableProps {\n strokeContainThreshold?: number\n segmentIgnoreThreshold?: number\n subPixelOptimize?: boolean\n\n style?: PathStyleProps\n shape?: Dictionary\n\n autoBatch?: boolean\n\n __value?: (string | number)[] | (string | number)\n\n buildPath?: (\n ctx: PathProxy | CanvasRenderingContext2D,\n shapeCfg: Dictionary,\n inBatch?: boolean\n ) => void\n}\n\n\ntype PathKey = keyof PathProps\ntype PathPropertyType = PropType\n\ninterface Path {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n animate(key: 'shape', loop?: boolean): Animator\n\n getState(stateName: string): PathState\n ensureState(stateName: string): PathState\n\n states: Dictionary\n stateProxy: (stateName: string) => PathState\n}\n\nexport type PathStatePropNames = DisplayableStatePropNames | 'shape';\nexport type PathState = Pick & {\n hoverLayer?: boolean\n}\n\nconst pathCopyParams = [\n 'x', 'y', 'rotation', 'scaleX', 'scaleY', 'originX', 'originY', 'invisible',\n 'culling', 'z', 'z2', 'zlevel', 'parent'\n] as const;\n\nclass Path extends Displayable {\n\n path: PathProxy\n\n strokeContainThreshold: number\n\n // This item default to be false. But in map series in echarts,\n // in order to improve performance, it should be set to true,\n // so the shorty segment won't draw.\n segmentIgnoreThreshold: number\n\n subPixelOptimize: boolean\n\n style: PathStyleProps\n /**\n * If element can be batched automatically\n */\n autoBatch: boolean\n\n private _rectWithStroke: BoundingRect\n\n protected _normalState: PathState\n\n protected _decalEl: Path\n\n // Must have an initial value on shape.\n // It will be assigned by default value.\n shape: Dictionary\n\n constructor(opts?: Props) {\n super(opts);\n }\n\n update() {\n super.update();\n\n const style = this.style;\n if (style.decal) {\n const decalEl: Path = this._decalEl = this._decalEl || new Path();\n if (decalEl.buildPath === Path.prototype.buildPath) {\n decalEl.buildPath = ctx => {\n this.buildPath(ctx, this.shape);\n };\n }\n\n decalEl.silent = true;\n\n const decalElStyle = decalEl.style;\n\n for (let key in style) {\n if ((decalElStyle as any)[key] !== (style as any)[key]) {\n (decalElStyle as any)[key] = (style as any)[key];\n }\n }\n decalElStyle.fill = style.fill ? style.decal : null;\n decalElStyle.decal = null;\n decalElStyle.shadowColor = null;\n style.strokeFirst && (decalElStyle.stroke = null);\n\n for (let i = 0; i < pathCopyParams.length; ++i) {\n (decalEl as any)[pathCopyParams[i]] = this[pathCopyParams[i]];\n }\n\n decalEl.__dirty |= REDARAW_BIT;\n }\n else if (this._decalEl) {\n this._decalEl = null;\n }\n }\n\n getDecalElement() {\n return this._decalEl;\n }\n\n protected _init(props?: Props) {\n // Init default properties\n const keysArr = keys(props);\n\n this.shape = this.getDefaultShape();\n const defaultStyle = this.getDefaultStyle();\n if (defaultStyle) {\n this.useStyle(defaultStyle);\n }\n\n for (let i = 0; i < keysArr.length; i++) {\n const key = keysArr[i];\n const value = props[key];\n if (key === 'style') {\n if (!this.style) {\n // PENDING Reuse style object if possible?\n this.useStyle(value as Props['style']);\n }\n else {\n extend(this.style, value as Props['style']);\n }\n }\n else if (key === 'shape') {\n // this.shape = value;\n extend(this.shape, value as Props['shape']);\n }\n else {\n super.attrKV(key as any, value);\n }\n }\n\n // Create an empty one if no style object exists.\n if (!this.style) {\n this.useStyle({});\n }\n // const defaultShape = this.getDefaultShape();\n // if (!this.shape) {\n // this.shape = defaultShape;\n // }\n // else {\n // defaults(this.shape, defaultShape);\n // }\n }\n\n protected getDefaultStyle(): Props['style'] {\n return null;\n }\n\n // Needs to override\n protected getDefaultShape() {\n return {};\n }\n\n protected canBeInsideText() {\n return this.hasFill();\n }\n\n protected getInsideTextFill() {\n const pathFill = this.style.fill;\n if (pathFill !== 'none') {\n if (isString(pathFill)) {\n const fillLum = lum(pathFill, 0);\n // Determin text color based on the lum of path fill.\n // TODO use (1 - DARK_MODE_THRESHOLD)?\n if (fillLum > 0.5) { // TODO Consider background lum?\n return DARK_LABEL_COLOR;\n }\n else if (fillLum > 0.2) {\n return LIGHTER_LABEL_COLOR;\n }\n return LIGHT_LABEL_COLOR;\n }\n else if (pathFill) {\n return LIGHT_LABEL_COLOR;\n }\n\n }\n return DARK_LABEL_COLOR;\n }\n\n protected getInsideTextStroke(textFill?: string) {\n const pathFill = this.style.fill;\n // Not stroke on none fill object or gradient object\n if (isString(pathFill)) {\n const zr = this.__zr;\n const isDarkMode = !!(zr && zr.isDarkMode());\n const isDarkLabel = lum(textFill, 0) < DARK_MODE_THRESHOLD;\n // All dark or all light.\n if (isDarkMode === isDarkLabel) {\n return pathFill;\n }\n }\n }\n\n // When bundling path, some shape may decide if use moveTo to begin a new subpath or closePath\n // Like in circle\n buildPath(\n ctx: PathProxy | CanvasRenderingContext2D,\n shapeCfg: Dictionary,\n inBatch?: boolean\n ) {}\n\n pathUpdated() {\n this.__dirty &= ~SHAPE_CHANGED_BIT;\n }\n\n getUpdatedPathProxy(inBatch?: boolean) {\n // Update path proxy data to latest.\n !this.path && this.createPathProxy();\n this.path.beginPath();\n this.buildPath(this.path, this.shape, inBatch);\n return this.path;\n }\n\n createPathProxy() {\n this.path = new PathProxy(false);\n }\n\n hasStroke() {\n const style = this.style;\n const stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n }\n\n hasFill() {\n const style = this.style;\n const fill = style.fill;\n return fill != null && fill !== 'none';\n }\n\n getBoundingRect(): BoundingRect {\n let rect = this._rect;\n const style = this.style;\n const needsUpdateRect = !rect;\n if (needsUpdateRect) {\n let firstInvoke = false;\n if (!this.path) {\n firstInvoke = true;\n // Create path on demand.\n this.createPathProxy();\n }\n let path = this.path;\n if (firstInvoke || (this.__dirty & SHAPE_CHANGED_BIT)) {\n path.beginPath();\n this.buildPath(path, this.shape, false);\n this.pathUpdated();\n }\n rect = path.getBoundingRect();\n }\n this._rect = rect;\n\n if (this.hasStroke() && this.path && this.path.len() > 0) {\n // Needs update rect with stroke lineWidth when\n // 1. Element changes scale or lineWidth\n // 2. Shape is changed\n const rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone());\n if (this.__dirty || needsUpdateRect) {\n rectWithStroke.copy(rect);\n // PENDING, Min line width is needed when line is horizontal or vertical\n const lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n // FIXME Must after updateTransform\n let w = style.lineWidth;\n\n // Only add extra hover lineWidth when there are no fill\n if (!this.hasFill()) {\n const strokeContainThreshold = this.strokeContainThreshold;\n w = Math.max(w, strokeContainThreshold == null ? 4 : strokeContainThreshold);\n }\n // Consider line width\n // Line scale can't be 0;\n if (lineScale > 1e-10) {\n rectWithStroke.width += w / lineScale;\n rectWithStroke.height += w / lineScale;\n rectWithStroke.x -= w / lineScale / 2;\n rectWithStroke.y -= w / lineScale / 2;\n }\n }\n\n // Return rect with stroke\n return rectWithStroke;\n }\n\n return rect;\n }\n\n contain(x: number, y: number): boolean {\n const localPos = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n const style = this.style;\n x = localPos[0];\n y = localPos[1];\n\n if (rect.contain(x, y)) {\n const pathProxy = this.path;\n if (this.hasStroke()) {\n let lineWidth = style.lineWidth;\n let lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n // Line scale can't be 0;\n if (lineScale > 1e-10) {\n // Only add extra hover lineWidth when there are no fill\n if (!this.hasFill()) {\n lineWidth = Math.max(lineWidth, this.strokeContainThreshold);\n }\n if (pathContain.containStroke(\n pathProxy, lineWidth / lineScale, x, y\n )) {\n return true;\n }\n }\n }\n if (this.hasFill()) {\n return pathContain.contain(pathProxy, x, y);\n }\n }\n return false;\n }\n\n /**\n * Shape changed\n */\n dirtyShape() {\n this.__dirty |= SHAPE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n if (this._decalEl) {\n this._decalEl.dirtyShape();\n }\n this.markRedraw();\n }\n\n dirty() {\n this.dirtyStyle();\n this.dirtyShape();\n }\n\n /**\n * Alias for animate('shape')\n * @param {boolean} loop\n */\n animateShape(loop: boolean) {\n return this.animate('shape', loop);\n }\n\n // Override updateDuringAnimation\n updateDuringAnimation(targetKey: string) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else if (targetKey === 'shape') {\n this.dirtyShape();\n }\n else {\n this.markRedraw();\n }\n }\n\n // Overwrite attrKV\n attrKV(key: PathKey, value: PathPropertyType) {\n // FIXME\n if (key === 'shape') {\n this.setShape(value as Props['shape']);\n }\n else {\n super.attrKV(key as keyof DisplayableProps, value);\n }\n }\n\n setShape(obj: Props['shape']): this\n setShape(obj: T, value: Props['shape'][T]): this\n setShape(keyOrObj: keyof Props['shape'] | Props['shape'], value?: unknown): this {\n let shape = this.shape;\n if (!shape) {\n shape = this.shape = {};\n }\n // Path from string may not have shape\n if (typeof keyOrObj === 'string') {\n shape[keyOrObj] = value;\n }\n else {\n extend(shape, keyOrObj as Props['shape']);\n }\n this.dirtyShape();\n\n return this;\n }\n\n /**\n * If shape changed. used with dirtyShape\n */\n shapeChanged() {\n return !!(this.__dirty & SHAPE_CHANGED_BIT);\n }\n\n /**\n * Create a path style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: Props['style']) {\n return createObject(DEFAULT_PATH_STYLE, obj);\n }\n\n protected _innerSaveToNormal(toState: PathState) {\n super._innerSaveToNormal(toState);\n\n const normalState = this._normalState;\n // Clone a new one. DON'T share object reference between states and current using.\n // TODO: Clone array in shape?.\n // TODO: Only save changed shape.\n if (toState.shape && !normalState.shape) {\n normalState.shape = extend({}, this.shape);\n }\n }\n\n protected _applyStateObj(\n stateName: string,\n state: PathState,\n normalState: PathState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n super._applyStateObj(stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n const needsRestoreToNormal = !(state && keepCurrentStates);\n let targetShape: Props['shape'];\n if (state && state.shape) {\n // Only animate changed properties.\n if (transition) {\n if (keepCurrentStates) {\n targetShape = state.shape;\n }\n else {\n // Inherits from normal state.\n targetShape = extend({}, normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else {\n // Because the shape will be replaced. So inherits from current shape.\n targetShape = extend({}, keepCurrentStates ? this.shape : normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else if (needsRestoreToNormal) {\n targetShape = normalState.shape;\n }\n\n if (targetShape) {\n if (transition) {\n // Clone a new shape.\n this.shape = extend({}, this.shape);\n // Only supports transition on primary props. Because shape is not deep cloned.\n const targetShapePrimaryProps: Props['shape'] = {};\n const shapeKeys = keys(targetShape);\n for (let i = 0; i < shapeKeys.length; i++) {\n const key = shapeKeys[i];\n if (typeof targetShape[key] === 'object') {\n (this.shape as Props['shape'])[key] = targetShape[key];\n }\n else {\n targetShapePrimaryProps[key] = targetShape[key];\n }\n }\n this._transitionState(stateName, {\n shape: targetShapePrimaryProps\n } as Props, animationCfg);\n }\n else {\n this.shape = targetShape;\n this.dirtyShape();\n }\n }\n }\n\n protected _mergeStates(states: PathState[]) {\n const mergedState = super._mergeStates(states) as PathState;\n let mergedShape: Props['shape'];\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n if (state.shape) {\n mergedShape = mergedShape || {};\n this._mergeStyle(mergedShape, state.shape);\n }\n }\n if (mergedShape) {\n mergedState.shape = mergedShape;\n }\n return mergedState;\n }\n\n getAnimationStyleProps() {\n return DEFAULT_PATH_ANIMATION_PROPS;\n }\n /**\n * If path shape is zero area\n */\n isZeroArea(): boolean {\n return false;\n }\n /**\n * \u6269\u5C55\u4E00\u4E2A Path element, \u6BD4\u5982\u661F\u5F62\uFF0C\u5706\u7B49\u3002\n * Extend a path element\n * @DEPRECATED Use class extends\n * @param props\n * @param props.type Path type\n * @param props.init Initialize\n * @param props.buildPath Overwrite buildPath method\n * @param props.style Extended default style config\n * @param props.shape Extended default shape config\n */\n static extend>(defaultProps: {\n type?: string\n shape?: Shape\n style?: PathStyleProps\n beforeBrush?: Displayable['beforeBrush']\n afterBrush?: Displayable['afterBrush']\n getBoundingRect?: Displayable['getBoundingRect']\n\n calculateTextPosition?: Element['calculateTextPosition']\n buildPath(this: Path, ctx: CanvasRenderingContext2D | PathProxy, shape: Shape, inBatch?: boolean): void\n init?(this: Path, opts: PathProps): void // TODO Should be SubPathOption\n }): {\n new(opts?: PathProps & {shape: Shape}): Path\n } {\n interface SubPathOption extends PathProps {\n shape: Shape\n }\n\n class Sub extends Path {\n\n shape: Shape\n\n getDefaultStyle() {\n return clone(defaultProps.style);\n }\n\n getDefaultShape() {\n return clone(defaultProps.shape);\n }\n\n constructor(opts?: SubPathOption) {\n super(opts);\n defaultProps.init && defaultProps.init.call(this as any, opts);\n }\n }\n\n // TODO Legacy usage. Extend functions\n for (let key in defaultProps) {\n if (typeof (defaultProps as any)[key] === 'function') {\n (Sub.prototype as any)[key] = (defaultProps as any)[key];\n }\n }\n // Sub.prototype.buildPath = defaultProps.buildPath;\n // Sub.prototype.beforeBrush = defaultProps.beforeBrush;\n // Sub.prototype.afterBrush = defaultProps.afterBrush;\n\n return Sub as any;\n }\n\n protected static initDefaultProps = (function () {\n const pathProto = Path.prototype;\n pathProto.type = 'path';\n pathProto.strokeContainThreshold = 5;\n pathProto.segmentIgnoreThreshold = 0;\n pathProto.subPixelOptimize = false;\n pathProto.autoBatch = false;\n pathProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT | SHAPE_CHANGED_BIT;\n })()\n}\n\nexport default Path;", "import Displayable, { DisplayableProps, DisplayableStatePropNames } from './Displayable';\nimport { getBoundingRect, DEFAULT_FONT } from '../contain/text';\nimport BoundingRect from '../core/BoundingRect';\nimport { PathStyleProps, DEFAULT_PATH_STYLE } from './Path';\nimport { createObject, defaults } from '../core/util';\nimport { TextAlign, TextVerticalAlign } from '../core/types';\n\nexport interface TSpanStyleProps extends PathStyleProps {\n\n x?: number\n y?: number\n\n // TODO Text is assigned inside zrender\n text?: string\n\n font?: string\n\n textAlign?: CanvasTextAlign\n\n textBaseline?: CanvasTextBaseline\n}\n\nexport const DEFAULT_TSPAN_STYLE: TSpanStyleProps = defaults({\n strokeFirst: true,\n font: DEFAULT_FONT,\n x: 0,\n y: 0,\n textAlign: 'left',\n textBaseline: 'top',\n miterLimit: 2\n} as TSpanStyleProps, DEFAULT_PATH_STYLE);\n\n\nexport interface TSpanProps extends DisplayableProps {\n style?: TSpanStyleProps\n}\n\nexport type TSpanState = Pick\n\nclass TSpan extends Displayable {\n\n style: TSpanStyleProps\n\n hasStroke() {\n const style = this.style;\n const stroke = style.stroke;\n return stroke != null && stroke !== 'none' && style.lineWidth > 0;\n }\n\n hasFill() {\n const style = this.style;\n const fill = style.fill;\n return fill != null && fill !== 'none';\n }\n\n /**\n * Create an image style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: TSpanStyleProps) {\n return createObject(DEFAULT_TSPAN_STYLE, obj);\n }\n\n /**\n * Set bounding rect calculated from Text\n * For reducing time of calculating bounding rect.\n */\n setBoundingRect(rect: BoundingRect) {\n this._rect = rect;\n }\n\n getBoundingRect(): BoundingRect {\n const style = this.style;\n\n if (!this._rect) {\n let text = style.text;\n text != null ? (text += '') : (text = '');\n\n const rect = getBoundingRect(\n text,\n style.font,\n style.textAlign as TextAlign,\n style.textBaseline as TextVerticalAlign\n );\n\n rect.x += style.x || 0;\n rect.y += style.y || 0;\n\n if (this.hasStroke()) {\n const w = style.lineWidth;\n rect.x -= w / 2;\n rect.y -= w / 2;\n rect.width += w;\n rect.height += w;\n }\n\n this._rect = rect;\n }\n\n return this._rect;\n }\n\n protected static initDefaultProps = (function () {\n const tspanProto = TSpan.prototype;\n // TODO Calculate tolerance smarter\n tspanProto.dirtyRectTolerance = 10;\n })()\n}\n\nTSpan.prototype.type = 'tspan';\n\nexport default TSpan;", "import Displayable, { DisplayableProps,\n CommonStyleProps,\n DEFAULT_COMMON_STYLE,\n DisplayableStatePropNames,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { ImageLike, MapToType } from '../core/types';\nimport { defaults, createObject } from '../core/util';\nimport { ElementCommonState } from '../Element';\n\nexport interface ImageStyleProps extends CommonStyleProps {\n image?: string | ImageLike\n x?: number\n y?: number\n width?: number\n height?: number\n sx?: number\n sy?: number\n sWidth?: number\n sHeight?: number\n}\n\nexport const DEFAULT_IMAGE_STYLE: CommonStyleProps = defaults({\n x: 0,\n y: 0\n}, DEFAULT_COMMON_STYLE);\n\nexport const DEFAULT_IMAGE_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n x: true,\n y: true,\n width: true,\n height: true,\n sx: true,\n sy: true,\n sWidth: true,\n sHeight: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\nexport interface ImageProps extends DisplayableProps {\n style?: ImageStyleProps\n\n onload?: (image: ImageLike) => void\n}\n\nexport type ImageState = Pick & ElementCommonState\n\nfunction isImageLike(source: unknown): source is HTMLImageElement {\n return !!(source\n && typeof source !== 'string'\n // Image source is an image, canvas, video.\n && (source as HTMLImageElement).width && (source as HTMLImageElement).height);\n}\n\nclass ZRImage extends Displayable {\n\n style: ImageStyleProps\n\n // FOR CANVAS RENDERER\n __image: ImageLike\n // FOR SVG RENDERER\n __imageSrc: string\n\n onload: (image: ImageLike) => void\n\n /**\n * Create an image style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: ImageStyleProps) {\n return createObject(DEFAULT_IMAGE_STYLE, obj);\n }\n\n private _getSize(dim: 'width' | 'height') {\n const style = this.style;\n\n let size = style[dim];\n if (size != null) {\n return size;\n }\n\n const imageSource = isImageLike(style.image)\n ? style.image : this.__image;\n\n if (!imageSource) {\n return 0;\n }\n\n const otherDim = dim === 'width' ? 'height' : 'width';\n let otherDimSize = style[otherDim];\n if (otherDimSize == null) {\n return imageSource[dim];\n }\n else {\n return imageSource[dim] / imageSource[otherDim] * otherDimSize;\n }\n }\n\n getWidth(): number {\n return this._getSize('width');\n }\n\n getHeight(): number {\n return this._getSize('height');\n }\n\n getAnimationStyleProps() {\n return DEFAULT_IMAGE_ANIMATION_PROPS;\n }\n\n getBoundingRect(): BoundingRect {\n const style = this.style;\n if (!this._rect) {\n this._rect = new BoundingRect(\n style.x || 0, style.y || 0, this.getWidth(), this.getHeight()\n );\n }\n return this._rect;\n }\n}\n\nZRImage.prototype.type = 'image';\n\nexport default ZRImage;", "import PathProxy from '../../core/PathProxy';\n\nexport function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n x: number\n y: number\n width: number\n height: number\n r?: number | number[]\n}) {\n let x = shape.x;\n let y = shape.y;\n let width = shape.width;\n let height = shape.height;\n let r = shape.r;\n let r1;\n let r2;\n let r3;\n let r4;\n\n // Convert width and height to positive for better borderRadius\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n\n if (typeof r === 'number') {\n r1 = r2 = r3 = r4 = r;\n }\n else if (r instanceof Array) {\n if (r.length === 1) {\n r1 = r2 = r3 = r4 = r[0];\n }\n else if (r.length === 2) {\n r1 = r3 = r[0];\n r2 = r4 = r[1];\n }\n else if (r.length === 3) {\n r1 = r[0];\n r2 = r4 = r[1];\n r3 = r[2];\n }\n else {\n r1 = r[0];\n r2 = r[1];\n r3 = r[2];\n r4 = r[3];\n }\n }\n else {\n r1 = r2 = r3 = r4 = 0;\n }\n\n let total;\n if (r1 + r2 > width) {\n total = r1 + r2;\n r1 *= width / total;\n r2 *= width / total;\n }\n if (r3 + r4 > width) {\n total = r3 + r4;\n r3 *= width / total;\n r4 *= width / total;\n }\n if (r2 + r3 > height) {\n total = r2 + r3;\n r2 *= height / total;\n r3 *= height / total;\n }\n if (r1 + r4 > height) {\n total = r1 + r4;\n r1 *= height / total;\n r4 *= height / total;\n }\n ctx.moveTo(x + r1, y);\n ctx.lineTo(x + width - r2, y);\n r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0);\n ctx.lineTo(x + width, y + height - r3);\n r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2);\n ctx.lineTo(x + r4, y + height);\n r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);\n ctx.lineTo(x, y + r1);\n r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);\n}\n", "import { PathStyleProps } from '../Path';\n\n/**\n * Sub-pixel optimize for canvas rendering, prevent from blur\n * when rendering a thin vertical/horizontal line.\n */\n\nconst round = Math.round;\n\ntype LineShape = {\n x1: number\n y1: number\n x2: number\n y2: number\n}\n\ntype RectShape = {\n x: number\n y: number\n width: number\n height: number\n r?: number | number[]\n}\n/**\n * Sub pixel optimize line for canvas\n *\n * @param outputShape The modification will be performed on `outputShape`.\n * `outputShape` and `inputShape` can be the same object.\n * `outputShape` object can be used repeatly, because all of\n * the `x1`, `x2`, `y1`, `y2` will be assigned in this method.\n */\nexport function subPixelOptimizeLine(\n outputShape: Partial,\n inputShape: LineShape,\n style: Pick // DO not optimize when lineWidth is 0\n): LineShape {\n if (!inputShape) {\n return;\n }\n\n const x1 = inputShape.x1;\n const x2 = inputShape.x2;\n const y1 = inputShape.y1;\n const y2 = inputShape.y2;\n\n outputShape.x1 = x1;\n outputShape.x2 = x2;\n outputShape.y1 = y1;\n outputShape.y2 = y2;\n\n const lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape as LineShape;\n }\n\n if (round(x1 * 2) === round(x2 * 2)) {\n outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);\n }\n if (round(y1 * 2) === round(y2 * 2)) {\n outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);\n }\n\n return outputShape as LineShape;\n}\n\n/**\n * Sub pixel optimize rect for canvas\n *\n * @param outputShape The modification will be performed on `outputShape`.\n * `outputShape` and `inputShape` can be the same object.\n * `outputShape` object can be used repeatly, because all of\n * the `x`, `y`, `width`, `height` will be assigned in this method.\n */\nexport function subPixelOptimizeRect(\n outputShape: Partial,\n inputShape: RectShape,\n style: Pick // DO not optimize when lineWidth is 0\n): RectShape {\n if (!inputShape) {\n return;\n }\n\n const originX = inputShape.x;\n const originY = inputShape.y;\n const originWidth = inputShape.width;\n const originHeight = inputShape.height;\n\n outputShape.x = originX;\n outputShape.y = originY;\n outputShape.width = originWidth;\n outputShape.height = originHeight;\n\n const lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape as RectShape;\n }\n\n outputShape.x = subPixelOptimize(originX, lineWidth, true);\n outputShape.y = subPixelOptimize(originY, lineWidth, true);\n outputShape.width = Math.max(\n subPixelOptimize(originX + originWidth, lineWidth, false) - outputShape.x,\n originWidth === 0 ? 0 : 1\n );\n outputShape.height = Math.max(\n subPixelOptimize(originY + originHeight, lineWidth, false) - outputShape.y,\n originHeight === 0 ? 0 : 1\n );\n\n return outputShape as RectShape;\n}\n\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth If `null`/`undefined`/`0`, do not optimize.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\nexport function subPixelOptimize(\n position: number,\n lineWidth?: number,\n positiveOrNegative?: boolean\n) {\n if (!lineWidth) {\n return position;\n }\n // Assure that (position + lineWidth / 2) is near integer edge,\n // otherwise line will be fuzzy in canvas.\n const doubledPosition = round(position * 2);\n return (doubledPosition + round(lineWidth)) % 2 === 0\n ? doubledPosition / 2\n : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;\n}\n", "/**\n * \u77E9\u5F62\n * @module zrender/graphic/shape/Rect\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as roundRectHelper from '../helper/roundRect';\nimport {subPixelOptimizeRect} from '../helper/subPixelOptimize';\n\nexport class RectShape {\n // \u5DE6\u4E0A\u3001\u53F3\u4E0A\u3001\u53F3\u4E0B\u3001\u5DE6\u4E0B\u89D2\u7684\u534A\u5F84\u4F9D\u6B21\u4E3Ar1\u3001r2\u3001r3\u3001r4\n // r\u7F29\u5199\u4E3A1 \u76F8\u5F53\u4E8E [1, 1, 1, 1]\n // r\u7F29\u5199\u4E3A[1] \u76F8\u5F53\u4E8E [1, 1, 1, 1]\n // r\u7F29\u5199\u4E3A[1, 2] \u76F8\u5F53\u4E8E [1, 2, 1, 2]\n // r\u7F29\u5199\u4E3A[1, 2, 3] \u76F8\u5F53\u4E8E [1, 2, 3, 2]\n r?: number | number[]\n\n x = 0\n y = 0\n width = 0\n height = 0\n}\n\nexport interface RectProps extends PathProps {\n shape?: Partial\n}\n// Avoid create repeatly.\nconst subPixelOptimizeOutputShape = {};\n\nclass Rect extends Path {\n\n shape: RectShape\n\n constructor(opts?: RectProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new RectShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: RectShape) {\n let x: number;\n let y: number;\n let width: number;\n let height: number;\n\n if (this.subPixelOptimize) {\n const optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);\n x = optimizedShape.x;\n y = optimizedShape.y;\n width = optimizedShape.width;\n height = optimizedShape.height;\n optimizedShape.r = shape.r;\n shape = optimizedShape;\n }\n else {\n x = shape.x;\n y = shape.y;\n width = shape.width;\n height = shape.height;\n }\n\n if (!shape.r) {\n ctx.rect(x, y, width, height);\n }\n else {\n roundRectHelper.buildPath(ctx, shape);\n }\n }\n\n isZeroArea() {\n return !this.shape.width || !this.shape.height;\n }\n}\n\nRect.prototype.type = 'rect';\n\nexport default Rect;", "/**\n * RichText is a container that manages complex text label.\n * It will parse text string and create sub displayble elements respectively.\n */\nimport { TextAlign, TextVerticalAlign, ImageLike, Dictionary, MapToType } from '../core/types';\nimport { parseRichText, parsePlainText } from './helper/parseText';\nimport TSpan, { TSpanStyleProps } from './TSpan';\nimport { retrieve2, each, normalizeCssArray, trim, retrieve3, extend, keys, defaults } from '../core/util';\nimport { DEFAULT_FONT, adjustTextX, adjustTextY } from '../contain/text';\nimport ZRImage from './Image';\nimport Rect from './shape/Rect';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Displayable, {\n DisplayableStatePropNames,\n DisplayableProps,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport { ZRenderType } from '../zrender';\nimport Animator from '../animation/Animator';\nimport Transformable from '../core/Transformable';\nimport { ElementCommonState } from '../Element';\nimport { GroupLike } from './Group';\n\ntype TextContentBlock = ReturnType\ntype TextLine = TextContentBlock['lines'][0]\ntype TextToken = TextLine['tokens'][0]\n\n// TODO Default value?\nexport interface TextStylePropsPart {\n // TODO Text is assigned inside zrender\n text?: string\n\n fill?: string\n stroke?: string\n\n opacity?: number\n fillOpacity?: number\n strokeOpacity?: number\n /**\n * textStroke may be set as some color as a default\n * value in upper applicaion, where the default value\n * of lineWidth should be 0 to make sure that\n * user can choose to do not use text stroke.\n */\n lineWidth?: number\n lineDash?: false | number[]\n lineDashOffset?: number\n borderDash?: false | number[]\n borderDashOffset?: number\n\n /**\n * If `fontSize` or `fontFamily` exists, `font` will be reset by\n * `fontSize`, `fontStyle`, `fontWeight`, `fontFamily`.\n * So do not visit it directly in upper application (like echarts),\n * but use `contain/text#makeFont` instead.\n */\n font?: string\n /**\n * The same as font. Use font please.\n * @deprecated\n */\n textFont?: string\n\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontStyle?: 'normal' | 'italic' | 'oblique'\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontFamily?: string\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n * Should be 12 but not '12px'.\n */\n fontSize?: number | string\n\n align?: TextAlign\n verticalAlign?: TextVerticalAlign\n\n /**\n * Line height. Default to be text height of '\u56FD'\n */\n lineHeight?: number\n /**\n * Width of text block. Not include padding\n * Used for background, truncate, wrap\n */\n width?: number | string\n /**\n * Height of text block. Not include padding\n * Used for background, truncate\n */\n height?: number\n /**\n * Reserved for special functinality, like 'hr'.\n */\n tag?: string\n\n textShadowColor?: string\n textShadowBlur?: number\n textShadowOffsetX?: number\n textShadowOffsetY?: number\n\n // Shadow, background, border of text box.\n backgroundColor?: string | {\n image: ImageLike | string\n }\n\n /**\n * Can be `2` or `[2, 4]` or `[2, 3, 4, 5]`\n */\n padding?: number | number[]\n /**\n * Margin of label. Used when layouting the label.\n */\n margin?: number\n\n borderColor?: string\n borderWidth?: number\n borderRadius?: number | number[]\n\n /**\n * Shadow color for background box.\n */\n shadowColor?: string\n /**\n * Shadow blur for background box.\n */\n shadowBlur?: number\n /**\n * Shadow offset x for background box.\n */\n shadowOffsetX?: number\n /**\n * Shadow offset y for background box.\n */\n shadowOffsetY?: number\n}\nexport interface TextStyleProps extends TextStylePropsPart {\n\n text?: string\n\n x?: number\n y?: number\n\n /**\n * Only support number in the top block.\n */\n width?: number\n /**\n * Text styles for rich text.\n */\n rich?: Dictionary\n\n /**\n * Strategy when calculated text width exceeds textWidth.\n * break: break by word\n * break: will break inside the word\n * truncate: truncate the text and show ellipsis\n * Do nothing if not set\n */\n overflow?: 'break' | 'breakAll' | 'truncate' | 'none'\n\n /**\n * Strategy when text lines exceeds textHeight.\n * Do nothing if not set\n */\n lineOverflow?: 'truncate'\n\n /**\n * Epllipsis used if text is truncated\n */\n ellipsis?: string\n /**\n * Placeholder used if text is truncated to empty\n */\n placeholder?: string\n /**\n * Min characters for truncating\n */\n truncateMinChar?: number\n}\n\nexport interface TextProps extends DisplayableProps {\n style?: TextStyleProps\n\n zlevel?: number\n z?: number\n z2?: number\n\n culling?: boolean\n cursor?: string\n}\n\nexport type TextState = Pick & ElementCommonState\n\nexport type DefaultTextStyle = Pick & {\n autoStroke?: boolean\n};\n\nconst DEFAULT_RICH_TEXT_COLOR = {\n fill: '#000'\n};\nconst DEFAULT_STROKE_LINE_WIDTH = 2;\n\n// const DEFAULT_TEXT_STYLE: TextStyleProps = {\n// x: 0,\n// y: 0,\n// fill: '#000',\n// stroke: null,\n// opacity: 0,\n// fillOpacity:\n// }\n\nexport const DEFAULT_TEXT_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n fill: true,\n stroke: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineWidth: true,\n fontSize: true,\n lineHeight: true,\n width: true,\n height: true,\n textShadowColor: true,\n textShadowBlur: true,\n textShadowOffsetX: true,\n textShadowOffsetY: true,\n backgroundColor: true,\n padding: true, // TODO needs normalize padding before animate\n borderColor: true,\n borderWidth: true,\n borderRadius: true // TODO needs normalize radius before animate\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\n\ninterface ZRText {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n\n getState(stateName: string): TextState\n ensureState(stateName: string): TextState\n\n states: Dictionary\n stateProxy: (stateName: string) => TextState\n}\n\nclass ZRText extends Displayable implements GroupLike {\n\n type = 'text'\n\n style: TextStyleProps\n\n /**\n * How to handling label overlap\n *\n * hidden:\n */\n overlap: 'hidden' | 'show' | 'blur'\n\n /**\n * Will use this to calculate transform matrix\n * instead of Element itseelf if it's give.\n * Not exposed to developers\n */\n innerTransformable: Transformable\n\n private _children: (ZRImage | Rect | TSpan)[] = []\n\n private _childCursor: 0\n\n private _defaultStyle: DefaultTextStyle = DEFAULT_RICH_TEXT_COLOR\n\n constructor(opts?: TextProps) {\n super();\n this.attr(opts);\n }\n\n childrenRef() {\n return this._children;\n }\n\n update() {\n\n super.update();\n\n // Update children\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n // Set common properties.\n child.zlevel = this.zlevel;\n child.z = this.z;\n child.z2 = this.z2;\n child.culling = this.culling;\n child.cursor = this.cursor;\n child.invisible = this.invisible;\n }\n }\n\n updateTransform() {\n const innerTransformable = this.innerTransformable;\n if (innerTransformable) {\n innerTransformable.updateTransform();\n if (innerTransformable.transform) {\n this.transform = innerTransformable.transform;\n }\n }\n else {\n super.updateTransform();\n }\n }\n\n getLocalTransform(m?: MatrixArray): MatrixArray {\n const innerTransformable = this.innerTransformable;\n return innerTransformable\n ? innerTransformable.getLocalTransform(m)\n : super.getLocalTransform(m);\n }\n\n // TODO override setLocalTransform?\n getComputedTransform() {\n if (this.__hostTarget) {\n // Update host target transform\n this.__hostTarget.getComputedTransform();\n // Update text position.\n this.__hostTarget.updateInnerText(true);\n }\n\n return super.getComputedTransform();\n }\n\n private _updateSubTexts() {\n // Reset child visit cursor\n this._childCursor = 0;\n\n normalizeTextStyle(this.style);\n this.style.rich\n ? this._updateRichTexts()\n : this._updatePlainTexts();\n\n this._children.length = this._childCursor;\n\n this.styleUpdated();\n }\n\n addSelfToZr(zr: ZRenderType) {\n super.addSelfToZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n // Also need mount __zr for case like hover detection.\n // The case: hover on a label (position: 'top') causes host el\n // scaled and label Y position lifts a bit so that out of the\n // pointer, then mouse move should be able to trigger \"mouseout\".\n this._children[i].__zr = zr;\n }\n }\n\n removeSelfFromZr(zr: ZRenderType) {\n super.removeSelfFromZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n this._children[i].__zr = null;\n }\n }\n\n getBoundingRect(): BoundingRect {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n if (!this._rect) {\n // TODO: Optimize when using width and overflow: wrap/truncate\n const tmpRect = new BoundingRect(0, 0, 0, 0);\n const children = this._children;\n const tmpMat: MatrixArray = [];\n let rect = null;\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n const childRect = child.getBoundingRect();\n const transform = child.getLocalTransform(tmpMat);\n\n if (transform) {\n tmpRect.copy(childRect);\n tmpRect.applyTransform(transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n this._rect = rect || tmpRect;\n }\n return this._rect;\n }\n\n // Can be set in Element. To calculate text fill automatically when textContent is inside element\n setDefaultTextStyle(defaultTextStyle: DefaultTextStyle) {\n // Use builtin if defaultTextStyle is not given.\n this._defaultStyle = defaultTextStyle || DEFAULT_RICH_TEXT_COLOR;\n }\n\n setTextContent(textContent: never) {\n throw new Error('Can\\'t attach text on another text');\n }\n\n // getDefaultStyleValue(key: T): TextStyleProps[T] {\n // // Default value is on the prototype.\n // return this.style.prototype[key];\n // }\n\n protected _mergeStyle(targetStyle: TextStyleProps, sourceStyle: TextStyleProps) {\n if (!sourceStyle) {\n return targetStyle;\n }\n\n // DO deep merge on rich configurations.\n const sourceRich = sourceStyle.rich;\n const targetRich = targetStyle.rich || (sourceRich && {}); // Create a new one if source have rich but target don't\n\n extend(targetStyle, sourceStyle);\n\n if (sourceRich && targetRich) {\n // merge rich and assign rich again.\n this._mergeRich(targetRich, sourceRich);\n targetStyle.rich = targetRich;\n }\n else if (targetRich) {\n // If source rich not exists. DON'T override the target rich\n targetStyle.rich = targetRich;\n }\n\n return targetStyle;\n }\n\n private _mergeRich(targetRich: TextStyleProps['rich'], sourceRich: TextStyleProps['rich']) {\n const richNames = keys(sourceRich);\n // Merge by rich names.\n for (let i = 0; i < richNames.length; i++) {\n const richName = richNames[i];\n targetRich[richName] = targetRich[richName] || {};\n extend(targetRich[richName], sourceRich[richName]);\n }\n }\n\n getAnimationStyleProps() {\n return DEFAULT_TEXT_ANIMATION_PROPS;\n }\n\n\n private _getOrCreateChild(Ctor: {new(): TSpan}): TSpan\n private _getOrCreateChild(Ctor: {new(): ZRImage}): ZRImage\n private _getOrCreateChild(Ctor: {new(): Rect}): Rect\n private _getOrCreateChild(Ctor: {new(): TSpan | Rect | ZRImage}): TSpan | Rect | ZRImage {\n let child = this._children[this._childCursor];\n if (!child || !(child instanceof Ctor)) {\n child = new Ctor();\n }\n this._children[this._childCursor++] = child;\n child.__zr = this.__zr;\n // TODO to users parent can only be group.\n child.parent = this as any;\n return child;\n }\n\n private _updatePlainTexts() {\n const style = this.style;\n const textFont = style.font || DEFAULT_FONT;\n const textPadding = style.padding as number[];\n\n const text = getStyleText(style);\n const contentBlock = parsePlainText(text, style);\n const needDrawBg = needDrawBackground(style);\n const bgColorDrawn = !!(style.backgroundColor);\n\n let outerHeight = contentBlock.outerHeight;\n\n const textLines = contentBlock.lines;\n const lineHeight = contentBlock.lineHeight;\n\n const defaultStyle = this._defaultStyle;\n\n const baseX = style.x || 0;\n const baseY = style.y || 0;\n const textAlign = style.align || defaultStyle.align || 'left';\n const verticalAlign = style.verticalAlign || defaultStyle.verticalAlign || 'top';\n\n let textX = baseX;\n let textY = adjustTextY(baseY, contentBlock.contentHeight, verticalAlign);\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n let outerWidth = contentBlock.width;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n const boxX = adjustTextX(baseX, outerWidth, textAlign);\n const boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n\n needDrawBg && this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n\n // `textBaseline` is set as 'middle'.\n textY += lineHeight / 2;\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n if (verticalAlign === 'top') {\n textY += textPadding[0];\n }\n else if (verticalAlign === 'bottom') {\n textY -= textPadding[2];\n }\n }\n\n let defaultLineWidth = 0;\n let useDefaultFill = false;\n const textFill = getFill(\n 'fill' in style\n ? style.fill\n : (useDefaultFill = true, defaultStyle.fill)\n );\n const textStroke = getStroke(\n 'stroke' in style\n ? style.stroke\n : (!bgColorDrawn\n // If we use \"auto lineWidth\" widely, it probably bring about some bad case.\n // So the current strategy is:\n // If `style.fill` is specified (i.e., `useDefaultFill` is `false`)\n // (A) And if `textConfig.insideStroke/outsideStroke` is not specified as a color\n // (i.e., `defaultStyle.autoStroke` is `true`), we do not actually display\n // the auto stroke because we can not make sure wether the stoke is approperiate to\n // the given `fill`.\n // (B) But if `textConfig.insideStroke/outsideStroke` is specified as a color,\n // we give the auto lineWidth to display the given stoke color.\n && (!defaultStyle.autoStroke || useDefaultFill)\n )\n ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null\n );\n\n const hasShadow = style.textShadowBlur > 0;\n\n const fixedBoundingRect = style.width != null\n && (style.overflow === 'truncate' || style.overflow === 'break' || style.overflow === 'breakAll');\n const calculatedLineHeight = contentBlock.calculatedLineHeight;\n\n for (let i = 0; i < textLines.length; i++) {\n const el = this._getOrCreateChild(TSpan);\n // Always create new style.\n const subElStyle: TSpanStyleProps = el.createStyle();\n el.useStyle(subElStyle);\n subElStyle.text = textLines[i];\n subElStyle.x = textX;\n subElStyle.y = textY;\n // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n if (textAlign) {\n subElStyle.textAlign = textAlign;\n }\n // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n subElStyle.textBaseline = 'middle';\n subElStyle.opacity = style.opacity;\n // Fill after stroke so the outline will not cover the main part.\n subElStyle.strokeFirst = true;\n\n if (hasShadow) {\n subElStyle.shadowBlur = style.textShadowBlur || 0;\n subElStyle.shadowColor = style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = style.textShadowOffsetY || 0;\n }\n\n if (textStroke) {\n subElStyle.stroke = textStroke as string;\n subElStyle.lineWidth = style.lineWidth || defaultLineWidth;\n subElStyle.lineDash = style.lineDash;\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n }\n if (textFill) {\n subElStyle.fill = textFill as string;\n }\n\n subElStyle.font = textFont;\n\n textY += lineHeight;\n\n if (fixedBoundingRect) {\n el.setBoundingRect(new BoundingRect(\n adjustTextX(subElStyle.x, style.width, subElStyle.textAlign as TextAlign),\n adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline as TextVerticalAlign),\n style.width,\n calculatedLineHeight\n ));\n }\n }\n }\n\n\n private _updateRichTexts() {\n const style = this.style;\n\n // TODO Only parse when text changed?\n const text = getStyleText(style);\n const contentBlock = parseRichText(text, style);\n\n const contentWidth = contentBlock.width;\n const outerWidth = contentBlock.outerWidth;\n const outerHeight = contentBlock.outerHeight;\n const textPadding = style.padding as number[];\n\n const baseX = style.x || 0;\n const baseY = style.y || 0;\n const defaultStyle = this._defaultStyle;\n const textAlign = style.align || defaultStyle.align;\n const verticalAlign = style.verticalAlign || defaultStyle.verticalAlign;\n\n const boxX = adjustTextX(baseX, outerWidth, textAlign);\n const boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n let xLeft = boxX;\n let lineTop = boxY;\n\n if (textPadding) {\n xLeft += textPadding[3];\n lineTop += textPadding[0];\n }\n\n let xRight = xLeft + contentWidth;\n\n if (needDrawBackground(style)) {\n this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n const bgColorDrawn = !!(style.backgroundColor);\n\n for (let i = 0; i < contentBlock.lines.length; i++) {\n const line = contentBlock.lines[i];\n const tokens = line.tokens;\n const tokenCount = tokens.length;\n const lineHeight = line.lineHeight;\n\n let remainedWidth = line.width;\n let leftIndex = 0;\n let lineXLeft = xLeft;\n let lineXRight = xRight;\n let rightIndex = tokenCount - 1;\n let token;\n\n while (\n leftIndex < tokenCount\n && (token = tokens[leftIndex], !token.align || token.align === 'left')\n ) {\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft, 'left', bgColorDrawn);\n remainedWidth -= token.width;\n lineXLeft += token.width;\n leftIndex++;\n }\n\n while (\n rightIndex >= 0\n && (token = tokens[rightIndex], token.align === 'right')\n ) {\n this._placeToken(token, style, lineHeight, lineTop, lineXRight, 'right', bgColorDrawn);\n remainedWidth -= token.width;\n lineXRight -= token.width;\n rightIndex--;\n }\n\n // The other tokens are placed as textAlign 'center' if there is enough space.\n lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - remainedWidth) / 2;\n while (leftIndex <= rightIndex) {\n token = tokens[leftIndex];\n // Consider width specified by user, use 'center' rather than 'left'.\n this._placeToken(\n token, style, lineHeight, lineTop,\n lineXLeft + token.width / 2, 'center', bgColorDrawn\n );\n lineXLeft += token.width;\n leftIndex++;\n }\n\n lineTop += lineHeight;\n }\n }\n\n private _placeToken(\n token: TextToken,\n style: TextStyleProps,\n lineHeight: number,\n lineTop: number,\n x: number,\n textAlign: string,\n parentBgColorDrawn: boolean\n ) {\n const tokenStyle = style.rich[token.styleName] || {};\n tokenStyle.text = token.text;\n\n // 'ctx.textBaseline' is always set as 'middle', for sake of\n // the bias of \"Microsoft YaHei\".\n const verticalAlign = token.verticalAlign;\n let y = lineTop + lineHeight / 2;\n if (verticalAlign === 'top') {\n y = lineTop + token.height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y = lineTop + lineHeight - token.height / 2;\n }\n\n const needDrawBg = !token.isLineHolder && needDrawBackground(tokenStyle);\n needDrawBg && this._renderBackground(\n tokenStyle,\n style,\n textAlign === 'right'\n ? x - token.width\n : textAlign === 'center'\n ? x - token.width / 2\n : x,\n y - token.height / 2,\n token.width,\n token.height\n );\n const bgColorDrawn = !!tokenStyle.backgroundColor;\n\n const textPadding = token.textPadding;\n if (textPadding) {\n x = getTextXForPadding(x, textAlign, textPadding);\n y -= token.height / 2 - textPadding[0] - token.innerHeight / 2;\n }\n\n const el = this._getOrCreateChild(TSpan);\n const subElStyle: TSpanStyleProps = el.createStyle();\n // Always create new style.\n el.useStyle(subElStyle);\n\n const defaultStyle = this._defaultStyle;\n let useDefaultFill = false;\n let defaultLineWidth = 0;\n const textFill = getFill(\n 'fill' in tokenStyle ? tokenStyle.fill\n : 'fill' in style ? style.fill\n : (useDefaultFill = true, defaultStyle.fill)\n );\n const textStroke = getStroke(\n 'stroke' in tokenStyle ? tokenStyle.stroke\n : 'stroke' in style ? style.stroke\n : (\n !bgColorDrawn\n && !parentBgColorDrawn\n // See the strategy explained above.\n && (!defaultStyle.autoStroke || useDefaultFill)\n ) ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null\n );\n\n const hasShadow = tokenStyle.textShadowBlur > 0\n || style.textShadowBlur > 0;\n\n subElStyle.text = token.text;\n subElStyle.x = x;\n subElStyle.y = y;\n if (hasShadow) {\n subElStyle.shadowBlur = tokenStyle.textShadowBlur || style.textShadowBlur || 0;\n subElStyle.shadowColor = tokenStyle.textShadowColor || style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = tokenStyle.textShadowOffsetX || style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = tokenStyle.textShadowOffsetY || style.textShadowOffsetY || 0;\n }\n\n subElStyle.textAlign = textAlign as CanvasTextAlign;\n // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n subElStyle.textBaseline = 'middle';\n subElStyle.font = token.font || DEFAULT_FONT;\n subElStyle.opacity = retrieve3(tokenStyle.opacity, style.opacity, 1);\n\n if (textStroke) {\n subElStyle.lineWidth = retrieve3(tokenStyle.lineWidth, style.lineWidth, defaultLineWidth);\n subElStyle.lineDash = retrieve2(tokenStyle.lineDash, style.lineDash);\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n subElStyle.stroke = textStroke;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n\n const textWidth = token.contentWidth;\n const textHeight = token.contentHeight;\n // NOTE: Should not call dirtyStyle after setBoundingRect. Or it will be cleared.\n el.setBoundingRect(new BoundingRect(\n adjustTextX(subElStyle.x, textWidth, subElStyle.textAlign as TextAlign),\n adjustTextY(subElStyle.y, textHeight, subElStyle.textBaseline as TextVerticalAlign),\n textWidth,\n textHeight\n ));\n }\n\n private _renderBackground(\n style: TextStylePropsPart,\n topStyle: TextStylePropsPart,\n x: number,\n y: number,\n width: number,\n height: number\n ) {\n const textBackgroundColor = style.backgroundColor;\n const textBorderWidth = style.borderWidth;\n const textBorderColor = style.borderColor;\n const isImageBg = textBackgroundColor && (textBackgroundColor as {image: ImageLike}).image;\n const isPlainOrGradientBg = textBackgroundColor && !isImageBg;\n const textBorderRadius = style.borderRadius;\n const self = this;\n\n let rectEl: Rect;\n let imgEl: ZRImage;\n if (isPlainOrGradientBg || style.lineHeight || (textBorderWidth && textBorderColor)) {\n // Background is color\n rectEl = this._getOrCreateChild(Rect);\n rectEl.useStyle(rectEl.createStyle()); // Create an empty style.\n rectEl.style.fill = null;\n const rectShape = rectEl.shape;\n rectShape.x = x;\n rectShape.y = y;\n rectShape.width = width;\n rectShape.height = height;\n rectShape.r = textBorderRadius;\n rectEl.dirtyShape();\n }\n\n if (isPlainOrGradientBg) {\n const rectStyle = rectEl.style;\n rectStyle.fill = textBackgroundColor as string || null;\n rectStyle.fillOpacity = retrieve2(style.fillOpacity, 1);\n }\n else if (isImageBg) {\n imgEl = this._getOrCreateChild(ZRImage);\n imgEl.onload = function () {\n // Refresh and relayout after image loaded.\n self.dirtyStyle();\n };\n const imgStyle = imgEl.style;\n imgStyle.image = (textBackgroundColor as {image: ImageLike}).image;\n imgStyle.x = x;\n imgStyle.y = y;\n imgStyle.width = width;\n imgStyle.height = height;\n }\n\n if (textBorderWidth && textBorderColor) {\n const rectStyle = rectEl.style;\n rectStyle.lineWidth = textBorderWidth;\n rectStyle.stroke = textBorderColor;\n rectStyle.strokeOpacity = retrieve2(style.strokeOpacity, 1);\n rectStyle.lineDash = style.borderDash;\n rectStyle.lineDashOffset = style.borderDashOffset || 0;\n rectEl.strokeContainThreshold = 0;\n\n // Making shadow looks better.\n if (rectEl.hasFill() && rectEl.hasStroke()) {\n rectStyle.strokeFirst = true;\n rectStyle.lineWidth *= 2;\n }\n }\n\n const commonStyle = (rectEl || imgEl).style;\n commonStyle.shadowBlur = style.shadowBlur || 0;\n commonStyle.shadowColor = style.shadowColor || 'transparent';\n commonStyle.shadowOffsetX = style.shadowOffsetX || 0;\n commonStyle.shadowOffsetY = style.shadowOffsetY || 0;\n commonStyle.opacity = retrieve3(style.opacity, topStyle.opacity, 1);\n }\n\n static makeFont(style: TextStylePropsPart): string {\n // FIXME in node-canvas fontWeight is before fontStyle\n // Use `fontSize` `fontFamily` to check whether font properties are defined.\n let font = '';\n if (style.fontSize || style.fontFamily || style.fontWeight) {\n let fontSize = '';\n if (\n typeof style.fontSize === 'string'\n && (\n style.fontSize.indexOf('px') !== -1\n || style.fontSize.indexOf('rem') !== -1\n || style.fontSize.indexOf('em') !== -1\n )\n ) {\n fontSize = style.fontSize;\n }\n else if (!isNaN(+style.fontSize)) {\n fontSize = style.fontSize + 'px';\n }\n else {\n fontSize = '12px';\n }\n font = [\n style.fontStyle,\n style.fontWeight,\n fontSize,\n // If font properties are defined, `fontFamily` should not be ignored.\n style.fontFamily || 'sans-serif'\n ].join(' ');\n }\n return font && trim(font) || style.textFont || style.font;\n }\n}\n\n\nconst VALID_TEXT_ALIGN = {left: true, right: 1, center: 1};\nconst VALID_TEXT_VERTICAL_ALIGN = {top: 1, bottom: 1, middle: 1};\n\nexport function normalizeTextStyle(style: TextStyleProps): TextStyleProps {\n normalizeStyle(style);\n each(style.rich, normalizeStyle);\n return style;\n}\n\nfunction normalizeStyle(style: TextStylePropsPart) {\n if (style) {\n style.font = ZRText.makeFont(style);\n let textAlign = style.align;\n // 'middle' is invalid, convert it to 'center'\n (textAlign as string) === 'middle' && (textAlign = 'center');\n style.align = (\n textAlign == null || VALID_TEXT_ALIGN[textAlign]\n ) ? textAlign : 'left';\n\n // Compatible with textBaseline.\n let verticalAlign = style.verticalAlign;\n (verticalAlign as string) === 'center' && (verticalAlign = 'middle');\n style.verticalAlign = (\n verticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[verticalAlign]\n ) ? verticalAlign : 'top';\n\n // TODO Should not change the orignal value.\n const textPadding = style.padding;\n if (textPadding) {\n style.padding = normalizeCssArray(style.padding);\n }\n }\n}\n\n/**\n * @param stroke If specified, do not check style.textStroke.\n * @param lineWidth If specified, do not check style.textStroke.\n */\nfunction getStroke(\n stroke?: TextStylePropsPart['stroke'],\n lineWidth?: number\n) {\n return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')\n ? null\n : ((stroke as any).image || (stroke as any).colorStops)\n ? '#000'\n : stroke;\n}\n\nfunction getFill(\n fill?: TextStylePropsPart['fill']\n) {\n return (fill == null || fill === 'none')\n ? null\n // TODO pattern and gradient?\n : ((fill as any).image || (fill as any).colorStops)\n ? '#000'\n : fill;\n}\n\nfunction getTextXForPadding(x: number, textAlign: string, textPadding: number[]): number {\n return textAlign === 'right'\n ? (x - textPadding[1])\n : textAlign === 'center'\n ? (x + textPadding[3] / 2 - textPadding[1] / 2)\n : (x + textPadding[3]);\n}\n\nfunction getStyleText(style: TextStylePropsPart): string {\n // Compat: set number to text is supported.\n // set null/undefined to text is supported.\n let text = style.text;\n text != null && (text += '');\n return text;\n}\n\n/**\n * If needs draw background\n * @param style Style of element\n */\nfunction needDrawBackground(style: TextStylePropsPart): boolean {\n return !!(\n style.backgroundColor\n || style.lineHeight\n || (style.borderWidth && style.borderColor)\n );\n}\n\nexport default ZRText;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\nimport {\n DataModel, ECEventData, BlurScope, InnerFocus, SeriesDataType,\n ComponentMainType, ComponentItemTooltipOption\n} from './types';\nimport { makeInner } from './model';\n/**\n * ECData stored on graphic element\n */\nexport interface ECData {\n dataIndex?: number;\n dataModel?: DataModel;\n eventData?: ECEventData;\n seriesIndex?: number;\n dataType?: SeriesDataType;\n focus?: InnerFocus;\n blurScope?: BlurScope;\n\n // Required by `tooltipConfig` and `focus`.\n componentMainType?: ComponentMainType;\n componentIndex?: number;\n componentHighDownName?: string;\n\n // To make a tooltipConfig, seach `setTooltipConfig`.\n // Used to find component tooltip option, which is used as\n // the parent of tooltipConfig.option for cascading.\n // If not provided, do not use component as its parent.\n // (Set manatary to make developers not to forget them).\n tooltipConfig?: {\n // Target item name to locate tooltip.\n name: string;\n option: ComponentItemTooltipOption;\n };\n}\n\nexport const getECData = makeInner();\n\nexport const setCommonECData = (seriesIndex: number, dataType: SeriesDataType, dataIdx: number, el: Element) => {\n if (el) {\n const ecData = getECData(el);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n ecData.dataIndex = dataIdx;\n ecData.dataType = dataType;\n ecData.seriesIndex = seriesIndex;\n\n // TODO: not store dataIndex on children.\n if (el.type === 'group') {\n el.traverse(function (child: Element): void {\n const childECData = getECData(child);\n childECData.seriesIndex = seriesIndex;\n childECData.dataIndex = dataIdx;\n childECData.dataType = dataType;\n });\n }\n }\n};\n", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from 'zrender/src/core/types';\nimport LRU from 'zrender/src/core/LRU';\nimport Displayable, { DisplayableState } from 'zrender/src/graphic/Displayable';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\nimport { GradientObject } from 'zrender/src/graphic/Gradient';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n SeriesDataType,\n DisplayState,\n ECElement,\n ColorString,\n BlurScope,\n InnerFocus,\n Payload,\n ZRColor,\n HighlightPayload,\n DownplayPayload,\n ComponentMainType\n} from './types';\nimport { extend, indexOf, isArrayLike, isObject, keys, isArray, each } from 'zrender/src/core/util';\nimport { getECData } from './innerStore';\nimport * as colorTool from 'zrender/src/tool/color';\nimport SeriesData from '../data/SeriesData';\nimport SeriesModel from '../model/Series';\nimport { CoordinateSystemMaster, CoordinateSystem } from '../coord/CoordinateSystem';\nimport { queryDataIndex, makeInner } from './model';\nimport Path, { PathStyleProps } from 'zrender/src/graphic/Path';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport ComponentModel from '../model/Component';\nimport { error } from './log';\n\n\n// Reserve 0 as default.\nlet _highlightNextDigit = 1;\n\nconst _highlightKeyMap: Dictionary = {};\n\nconst getSavedStates = makeInner<{\n normalFill: ZRColor\n normalStroke: ZRColor\n selectFill?: ZRColor\n selectStroke?: ZRColor\n}, Path>();\n\nexport const HOVER_STATE_NORMAL: 0 = 0;\nexport const HOVER_STATE_BLUR: 1 = 1;\nexport const HOVER_STATE_EMPHASIS: 2 = 2;\n\nexport const SPECIAL_STATES = ['emphasis', 'blur', 'select'] as const;\nexport const DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select'] as const;\n\nexport const Z2_EMPHASIS_LIFT = 10;\nexport const Z2_SELECT_LIFT = 9;\n\nexport const HIGHLIGHT_ACTION_TYPE = 'highlight';\nexport const DOWNPLAY_ACTION_TYPE = 'downplay';\n\nexport const SELECT_ACTION_TYPE = 'select';\nexport const UNSELECT_ACTION_TYPE = 'unselect';\nexport const TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect';\n\ntype ExtendedProps = {\n __highByOuter: number\n\n __highDownSilentOnTouch: boolean\n\n __highDownDispatcher: boolean\n};\ntype ExtendedElement = Element & ExtendedProps;\ntype ExtendedDisplayable = Displayable & ExtendedProps;\n\nfunction hasFillOrStroke(fillOrStroke: string | PatternObject | GradientObject) {\n return fillOrStroke != null && fillOrStroke !== 'none';\n}\n// Most lifted color are duplicated.\nconst liftedColorCache = new LRU(100);\nfunction liftColor(color: string): string {\n if (typeof color !== 'string') {\n return color;\n }\n let liftedColor = liftedColorCache.get(color);\n if (!liftedColor) {\n liftedColor = colorTool.lift(color, -0.1);\n liftedColorCache.put(color, liftedColor);\n }\n return liftedColor;\n}\n\nfunction doChangeHoverState(el: ECElement, stateName: DisplayState, hoverStateEnum: 0 | 1 | 2) {\n if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) {\n el.onHoverStateChange(stateName);\n }\n el.hoverState = hoverStateEnum;\n}\n\nfunction singleEnterEmphasis(el: ECElement) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS);\n}\n\nfunction singleLeaveEmphasis(el: ECElement) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n if (el.hoverState === HOVER_STATE_EMPHASIS) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterBlur(el: ECElement) {\n doChangeHoverState(el, 'blur', HOVER_STATE_BLUR);\n}\n\nfunction singleLeaveBlur(el: ECElement) {\n if (el.hoverState === HOVER_STATE_BLUR) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterSelect(el: ECElement) {\n el.selected = true;\n}\nfunction singleLeaveSelect(el: ECElement) {\n el.selected = false;\n}\n\nfunction updateElementState(\n el: ExtendedElement,\n updater: (this: void, el: Element, commonParam?: T) => void,\n commonParam?: T\n) {\n updater(el, commonParam);\n}\n\nfunction traverseUpdateState(\n el: ExtendedElement,\n updater: (this: void, el: Element, commonParam?: T) => void,\n commonParam?: T\n) {\n updateElementState(el, updater, commonParam);\n el.isGroup && el.traverse(function (child: ExtendedElement) {\n updateElementState(child, updater, commonParam);\n });\n}\n\nexport function setStatesFlag(el: ECElement, stateName: DisplayState) {\n switch (stateName) {\n case 'emphasis':\n el.hoverState = HOVER_STATE_EMPHASIS;\n break;\n case 'normal':\n el.hoverState = HOVER_STATE_NORMAL;\n break;\n case 'blur':\n el.hoverState = HOVER_STATE_BLUR;\n break;\n case 'select':\n el.selected = true;\n }\n}\n\n/**\n * If we reuse elements when rerender.\n * DONT forget to clearStates before we update the style and shape.\n * Or we may update on the wrong state instead of normal state.\n */\nexport function clearStates(el: Element) {\n if (el.isGroup) {\n el.traverse(function (child) {\n child.clearStates();\n });\n }\n else {\n el.clearStates();\n }\n}\n\nfunction getFromStateStyle(\n el: Displayable,\n props: (keyof PathStyleProps)[],\n toStateName: string,\n defaultValue?: PathStyleProps\n): PathStyleProps {\n const style = el.style;\n const fromState: PathStyleProps = {};\n for (let i = 0; i < props.length; i++) {\n const propName = props[i];\n const val = style[propName];\n (fromState as any)[propName] = val == null ? (defaultValue && defaultValue[propName]) : val;\n }\n for (let i = 0; i < el.animators.length; i++) {\n const animator = el.animators[i];\n if (animator.__fromStateTransition\n // Dont consider the animation to emphasis state.\n && animator.__fromStateTransition.indexOf(toStateName) < 0\n && animator.targetName === 'style') {\n animator.saveFinalToTarget(fromState, props);\n }\n }\n return fromState;\n}\n\nfunction createEmphasisDefaultState(\n el: Displayable,\n stateName: 'emphasis',\n targetStates: string[],\n state: Displayable['states'][number]\n): DisplayableState {\n const hasSelect = targetStates && indexOf(targetStates, 'select') >= 0;\n let cloned = false;\n if (el instanceof Path) {\n const store = getSavedStates(el);\n const fromFill = hasSelect ? (store.selectFill || store.normalFill) : store.normalFill;\n const fromStroke = hasSelect ? (store.selectStroke || store.normalStroke) : store.normalStroke;\n if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) {\n state = state || {};\n let emphasisStyle = state.style || {};\n\n // inherit case\n if (emphasisStyle.fill === 'inherit') {\n cloned = true;\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n emphasisStyle.fill = fromFill;\n }\n // Apply default color lift\n else if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) {\n cloned = true;\n // Not modify the original value.\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n // Already being applied 'emphasis'. DON'T lift color multiple times.\n emphasisStyle.fill = liftColor(fromFill as ColorString);\n }\n // Not highlight stroke if fill has been highlighted.\n else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) {\n if (!cloned) {\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n }\n emphasisStyle.stroke = liftColor(fromStroke as ColorString);\n }\n state.style = emphasisStyle;\n }\n }\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n if (!cloned) {\n state = extend({}, state);\n }\n const z2EmphasisLift = (el as ECElement).z2EmphasisLift;\n state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT);\n }\n }\n return state;\n}\n\nfunction createSelectDefaultState(\n el: Displayable,\n stateName: 'select',\n state: Displayable['states'][number]\n): DisplayableState {\n // const hasSelect = indexOf(el.currentStates, stateName) >= 0;\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n state = extend({}, state);\n const z2SelectLift = (el as ECElement).z2SelectLift;\n state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT);\n }\n }\n return state;\n}\n\nfunction createBlurDefaultState(\n el: Displayable,\n stateName: 'blur',\n state: Displayable['states'][number]\n): DisplayableState {\n const hasBlur = indexOf(el.currentStates, stateName) >= 0;\n const currentOpacity = el.style.opacity;\n\n const fromState = !hasBlur\n ? getFromStateStyle(el, ['opacity'], stateName, {\n opacity: 1\n })\n : null;\n\n state = state || {};\n let blurStyle = state.style || {};\n if (blurStyle.opacity == null) {\n // clone state\n state = extend({}, state);\n blurStyle = extend({\n // Already being applied 'emphasis'. DON'T mul opacity multiple times.\n opacity: hasBlur ? currentOpacity : (fromState.opacity * 0.1)\n }, blurStyle);\n state.style = blurStyle;\n }\n\n return state;\n}\n\nfunction elementStateProxy(this: Displayable, stateName: string, targetStates?: string[]): DisplayableState {\n const state = this.states[stateName];\n if (this.style) {\n if (stateName === 'emphasis') {\n return createEmphasisDefaultState(this, stateName, targetStates, state);\n }\n else if (stateName === 'blur') {\n return createBlurDefaultState(this, stateName, state);\n }\n else if (stateName === 'select') {\n return createSelectDefaultState(this, stateName, state);\n }\n }\n return state;\n}\n/**FI\n * Set hover style (namely \"emphasis style\") of element.\n * @param el Should not be `zrender/graphic/Group`.\n * @param focus 'self' | 'selfInSeries' | 'series'\n */\nexport function setDefaultStateProxy(el: Displayable) {\n el.stateProxy = elementStateProxy;\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n if (textContent) {\n textContent.stateProxy = elementStateProxy;\n }\n if (textGuide) {\n textGuide.stateProxy = elementStateProxy;\n }\n}\n\nexport function enterEmphasisWhenMouseOver(el: Element, e: ElementEvent) {\n !shouldSilent(el, e)\n // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !(el as ExtendedElement).__highByOuter\n && traverseUpdateState((el as ExtendedElement), singleEnterEmphasis);\n}\n\nexport function leaveEmphasisWhenMouseOut(el: Element, e: ElementEvent) {\n !shouldSilent(el, e)\n // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !(el as ExtendedElement).__highByOuter\n && traverseUpdateState((el as ExtendedElement), singleLeaveEmphasis);\n}\n\nexport function enterEmphasis(el: Element, highlightDigit?: number) {\n (el as ExtendedElement).__highByOuter |= 1 << (highlightDigit || 0);\n traverseUpdateState((el as ExtendedElement), singleEnterEmphasis);\n}\n\nexport function leaveEmphasis(el: Element, highlightDigit?: number) {\n !((el as ExtendedElement).__highByOuter &= ~(1 << (highlightDigit || 0)))\n && traverseUpdateState((el as ExtendedElement), singleLeaveEmphasis);\n}\n\nexport function enterBlur(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleEnterBlur);\n}\n\nexport function leaveBlur(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleLeaveBlur);\n}\n\nexport function enterSelect(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleEnterSelect);\n}\n\nexport function leaveSelect(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleLeaveSelect);\n}\n\nfunction shouldSilent(el: Element, e: ElementEvent) {\n return (el as ExtendedElement).__highDownSilentOnTouch && e.zrByTouch;\n}\n\nexport function allLeaveBlur(api: ExtensionAPI) {\n const model = api.getModel();\n model.eachComponent(function (componentType, componentModel) {\n const view = componentType === 'series'\n ? api.getViewOfSeriesModel(componentModel as SeriesModel)\n : api.getViewOfComponentModel(componentModel);\n // Leave blur anyway\n view.group.traverse(function (child) {\n singleLeaveBlur(child);\n });\n });\n}\n\nexport function blurSeries(\n targetSeriesIndex: number,\n focus: InnerFocus,\n blurScope: BlurScope,\n api: ExtensionAPI\n) {\n const ecModel = api.getModel();\n blurScope = blurScope || 'coordinateSystem';\n\n function leaveBlurOfIndices(data: SeriesData, dataIndices: ArrayLike) {\n for (let i = 0; i < dataIndices.length; i++) {\n const itemEl = data.getItemGraphicEl(dataIndices[i]);\n itemEl && leaveBlur(itemEl);\n }\n }\n\n if (targetSeriesIndex == null) {\n return;\n }\n\n if (!focus || focus === 'none') {\n return;\n }\n\n const targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex);\n let targetCoordSys: CoordinateSystemMaster | CoordinateSystem = targetSeriesModel.coordinateSystem;\n if (targetCoordSys && (targetCoordSys as CoordinateSystem).master) {\n targetCoordSys = (targetCoordSys as CoordinateSystem).master;\n }\n\n const blurredSeries: SeriesModel[] = [];\n\n ecModel.eachSeries(function (seriesModel) {\n\n const sameSeries = targetSeriesModel === seriesModel;\n let coordSys: CoordinateSystemMaster | CoordinateSystem = seriesModel.coordinateSystem;\n if (coordSys && (coordSys as CoordinateSystem).master) {\n coordSys = (coordSys as CoordinateSystem).master;\n }\n const sameCoordSys = coordSys && targetCoordSys\n ? coordSys === targetCoordSys\n : sameSeries; // If there is no coordinate system. use sameSeries instead.\n if (!(\n // Not blur other series if blurScope series\n blurScope === 'series' && !sameSeries\n // Not blur other coordinate system if blurScope is coordinateSystem\n || blurScope === 'coordinateSystem' && !sameCoordSys\n // Not blur self series if focus is series.\n || focus === 'series' && sameSeries\n // TODO blurScope: coordinate system\n )) {\n const view = api.getViewOfSeriesModel(seriesModel);\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n\n if (isArrayLike(focus)) {\n leaveBlurOfIndices(seriesModel.getData(), focus as ArrayLike);\n }\n else if (isObject(focus)) {\n const dataTypes = keys(focus);\n for (let d = 0; d < dataTypes.length; d++) {\n leaveBlurOfIndices(seriesModel.getData(dataTypes[d] as SeriesDataType), focus[dataTypes[d]]);\n }\n }\n\n blurredSeries.push(seriesModel);\n }\n });\n\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n const view = api.getViewOfComponentModel(componentModel);\n if (view && view.blurSeries) {\n view.blurSeries(blurredSeries, ecModel);\n }\n });\n}\n\nexport function blurComponent(\n componentMainType: ComponentMainType,\n componentIndex: number,\n api: ExtensionAPI\n) {\n if (componentMainType == null || componentIndex == null) {\n return;\n }\n\n const componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n if (!componentModel) {\n return;\n }\n\n const view = api.getViewOfComponentModel(componentModel);\n if (!view || !view.focusBlurEnabled) {\n return;\n }\n\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n}\n\nexport function blurSeriesFromHighlightPayload(\n seriesModel: SeriesModel,\n payload: HighlightPayload,\n api: ExtensionAPI\n) {\n const seriesIndex = seriesModel.seriesIndex;\n const data = seriesModel.getData(payload.dataType);\n let dataIndex = queryDataIndex(data, payload);\n // Pick the first one if there is multiple/none exists.\n dataIndex = (isArray(dataIndex) ? dataIndex[0] : dataIndex) || 0;\n let el = data.getItemGraphicEl(dataIndex as number);\n if (!el) {\n const count = data.count();\n let current = 0;\n // If data on dataIndex is NaN.\n while (!el && current < count) {\n el = data.getItemGraphicEl(current++);\n }\n }\n\n if (el) {\n const ecData = getECData(el);\n blurSeries(\n seriesIndex, ecData.focus, ecData.blurScope, api\n );\n }\n else {\n // If there is no element put on the data. Try getting it from raw option\n // TODO Should put it on seriesModel?\n const focus = seriesModel.get(['emphasis', 'focus']);\n const blurScope = seriesModel.get(['emphasis', 'blurScope']);\n if (focus != null) {\n blurSeries(seriesIndex, focus, blurScope, api);\n }\n }\n}\n\nexport function findComponentHighDownDispatchers(\n componentMainType: ComponentMainType,\n componentIndex: number,\n name: string,\n api: ExtensionAPI\n): {\n focusSelf: boolean;\n // If return null/undefined, do not support this feature.\n dispatchers: Element[];\n} {\n const ret = {\n focusSelf: false,\n dispatchers: null as Element[]\n };\n if (componentMainType == null\n || componentMainType === 'series'\n || componentIndex == null\n || name == null\n ) {\n return ret;\n }\n\n const componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n if (!componentModel) {\n return ret;\n }\n\n const view = api.getViewOfComponentModel(componentModel);\n if (!view || !view.findHighDownDispatchers) {\n return ret;\n }\n\n const dispatchers = view.findHighDownDispatchers(name);\n\n // At presnet, the component (like Geo) only blur inside itself.\n // So we do not use `blurScope` in component.\n let focusSelf: boolean;\n for (let i = 0; i < dispatchers.length; i++) {\n if (__DEV__ && !isHighDownDispatcher(dispatchers[i])) {\n error('param should be highDownDispatcher');\n }\n if (getECData(dispatchers[i]).focus === 'self') {\n focusSelf = true;\n break;\n }\n }\n\n return { focusSelf, dispatchers };\n}\n\nexport function handleGlobalMouseOverForHighDown(\n dispatcher: Element,\n e: ElementEvent,\n api: ExtensionAPI\n): void {\n if (__DEV__ && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n const ecData = getECData(dispatcher);\n\n const { dispatchers, focusSelf } = findComponentHighDownDispatchers(\n ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api\n );\n // If `findHighDownDispatchers` is supported on the component,\n // highlight/downplay elements with the same name.\n if (dispatchers) {\n if (focusSelf) {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n each(dispatchers, dispatcher => enterEmphasisWhenMouseOver(dispatcher, e));\n }\n else {\n // Try blur all in the related series. Then emphasis the hoverred.\n // TODO. progressive mode.\n blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api);\n if (ecData.focus === 'self') {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n // Other than series, component that not support `findHighDownDispatcher` will\n // also use it. But in this case, highlight/downplay are only supported in\n // mouse hover but not in dispatchAction.\n enterEmphasisWhenMouseOver(dispatcher, e);\n }\n}\n\nexport function handleGlboalMouseOutForHighDown(\n dispatcher: Element,\n e: ElementEvent,\n api: ExtensionAPI\n): void {\n if (__DEV__ && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n allLeaveBlur(api);\n\n const ecData = getECData(dispatcher);\n const { dispatchers } = findComponentHighDownDispatchers(\n ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api\n );\n if (dispatchers) {\n each(dispatchers, dispatcher => leaveEmphasisWhenMouseOut(dispatcher, e));\n }\n else {\n leaveEmphasisWhenMouseOut(dispatcher, e);\n }\n}\n\n\nexport function toggleSelectionFromPayload(\n seriesModel: SeriesModel,\n payload: Payload,\n api: ExtensionAPI\n) {\n if (!(isSelectChangePayload(payload))) {\n return;\n }\n const dataType = payload.dataType;\n const data = seriesModel.getData(dataType);\n let dataIndex = queryDataIndex(data, payload);\n if (!isArray(dataIndex)) {\n dataIndex = [dataIndex];\n }\n\n seriesModel[\n payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect'\n : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'\n ](dataIndex, dataType);\n}\n\n\nexport function updateSeriesElementSelection(seriesModel: SeriesModel) {\n const allData = seriesModel.getAllData();\n each(allData, function ({ data, type }) {\n data.eachItemGraphicEl(function (el, idx) {\n seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el);\n });\n });\n}\n\nexport function getAllSelectedIndices(ecModel: GlobalModel) {\n const ret: {\n seriesIndex: number\n dataType?: SeriesDataType\n dataIndex: number[]\n }[] = [];\n ecModel.eachSeries(function (seriesModel) {\n const allData = seriesModel.getAllData();\n each(allData, function ({ data, type }) {\n const dataIndices = seriesModel.getSelectedDataIndices();\n if (dataIndices.length > 0) {\n const item: typeof ret[number] = {\n dataIndex: dataIndices,\n seriesIndex: seriesModel.seriesIndex\n };\n if (type != null) {\n item.dataType = type;\n }\n ret.push(item);\n\n }\n });\n });\n return ret;\n}\n\n/**\n * Enable the function that mouseover will trigger the emphasis state.\n *\n * NOTE:\n * This function should be used on the element with dataIndex, seriesIndex.\n *\n */\nexport function enableHoverEmphasis(el: Element, focus?: InnerFocus, blurScope?: BlurScope) {\n setAsHighDownDispatcher(el, true);\n traverseUpdateState(el as ExtendedElement, setDefaultStateProxy);\n\n enableHoverFocus(el, focus, blurScope);\n}\n\nexport function enableHoverFocus(el: Element, focus: InnerFocus, blurScope: BlurScope) {\n const ecData = getECData(el);\n if (focus != null) {\n // TODO dataIndex may be set after this function. This check is not useful.\n // if (ecData.dataIndex == null) {\n // if (__DEV__) {\n // console.warn('focus can only been set on element with dataIndex');\n // }\n // }\n // else {\n ecData.focus = focus;\n ecData.blurScope = blurScope;\n // }\n }\n else if (ecData.focus) {\n ecData.focus = null;\n }\n}\n\nconst OTHER_STATES = ['emphasis', 'blur', 'select'] as const;\nconst defaultStyleGetterMap: Dictionary<'getItemStyle' | 'getLineStyle' | 'getAreaStyle'> = {\n itemStyle: 'getItemStyle',\n lineStyle: 'getLineStyle',\n areaStyle: 'getAreaStyle'\n};\n/**\n * Set emphasis/blur/selected states of element.\n */\nexport function setStatesStylesFromModel(\n el: Displayable,\n itemModel: Model>>,\n styleType?: string, // default itemStyle\n getter?: (model: Model) => Dictionary\n) {\n styleType = styleType || 'itemStyle';\n for (let i = 0; i < OTHER_STATES.length; i++) {\n const stateName = OTHER_STATES[i];\n const model = itemModel.getModel([stateName, styleType]);\n const state = el.ensureState(stateName);\n // Let it throw error if getterType is not found.\n state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]]();\n }\n}\n\n\n/**\n * @parame el\n * @param el.highDownSilentOnTouch\n * In touch device, mouseover event will be trigger on touchstart event\n * (see module:zrender/dom/HandlerProxy). By this mechanism, we can\n * conveniently use hoverStyle when tap on touch screen without additional\n * code for compatibility.\n * But if the chart/component has select feature, which usually also use\n * hoverStyle, there might be conflict between 'select-highlight' and\n * 'hover-highlight' especially when roam is enabled (see geo for example).\n * In this case, `highDownSilentOnTouch` should be used to disable\n * hover-highlight on touch device.\n * @param asDispatcher If `false`, do not set as \"highDownDispatcher\".\n */\nexport function setAsHighDownDispatcher(el: Element, asDispatcher: boolean) {\n const disable = asDispatcher === false;\n const extendedEl = el as ExtendedElement;\n // Make `highDownSilentOnTouch` and `onStateChange` only work after\n // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.\n if ((el as ECElement).highDownSilentOnTouch) {\n extendedEl.__highDownSilentOnTouch = (el as ECElement).highDownSilentOnTouch;\n }\n // Simple optimize, since this method might be\n // called for each elements of a group in some cases.\n if (!disable || extendedEl.__highDownDispatcher) {\n // Emphasis, normal can be triggered manually by API or other components like hover link.\n // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);\n // Also keep previous record.\n extendedEl.__highByOuter = extendedEl.__highByOuter || 0;\n extendedEl.__highDownDispatcher = !disable;\n }\n}\n\nexport function isHighDownDispatcher(el: Element): boolean {\n return !!(el && (el as ExtendedDisplayable).__highDownDispatcher);\n}\n\n/**\n * Enable component highlight/downplay features:\n * + hover link (within the same name)\n * + focus blur in component\n */\nexport function enableComponentHighDownFeatures(\n el: Element,\n componentModel: ComponentModel,\n componentHighDownName: string\n): void {\n const ecData = getECData(el);\n ecData.componentMainType = componentModel.mainType;\n ecData.componentIndex = componentModel.componentIndex;\n ecData.componentHighDownName = componentHighDownName;\n}\n\n/**\n * Support hightlight/downplay record on each elements.\n * For the case: hover highlight/downplay (legend, visualMap, ...) and\n * user triggerred hightlight/downplay should not conflict.\n * Only all of the highlightDigit cleared, return to normal.\n * @param {string} highlightKey\n * @return {number} highlightDigit\n */\nexport function getHighlightDigit(highlightKey: number) {\n let highlightDigit = _highlightKeyMap[highlightKey];\n if (highlightDigit == null && _highlightNextDigit <= 32) {\n highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;\n }\n return highlightDigit;\n}\n\nexport function isSelectChangePayload(payload: Payload) {\n const payloadType = payload.type;\n return payloadType === SELECT_ACTION_TYPE\n || payloadType === UNSELECT_ACTION_TYPE\n || payloadType === TOGGLE_SELECT_ACTION_TYPE;\n}\n\nexport function isHighDownPayload(payload: Payload): payload is HighlightPayload | DownplayPayload {\n const payloadType = payload.type;\n return payloadType === HIGHLIGHT_ACTION_TYPE\n || payloadType === DOWNPLAY_ACTION_TYPE;\n}\n\nexport function savePathStates(el: Path) {\n const store = getSavedStates(el);\n store.normalFill = el.style.fill;\n store.normalStroke = el.style.stroke;\n\n const selectState = el.states.select || {};\n store.selectFill = (selectState.style && selectState.style.fill) || null;\n store.selectStroke = (selectState.style && selectState.style.stroke) || null;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as pathTool from 'zrender/src/tool/path';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as vector from 'zrender/src/core/vector';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport Transformable from 'zrender/src/core/Transformable';\nimport ZRImage, { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport Group from 'zrender/src/graphic/Group';\nimport ZRText from 'zrender/src/graphic/Text';\nimport Circle from 'zrender/src/graphic/shape/Circle';\nimport Ellipse from 'zrender/src/graphic/shape/Ellipse';\nimport Sector from 'zrender/src/graphic/shape/Sector';\nimport Ring from 'zrender/src/graphic/shape/Ring';\nimport Polygon from 'zrender/src/graphic/shape/Polygon';\nimport Polyline from 'zrender/src/graphic/shape/Polyline';\nimport Rect from 'zrender/src/graphic/shape/Rect';\nimport Line from 'zrender/src/graphic/shape/Line';\nimport BezierCurve from 'zrender/src/graphic/shape/BezierCurve';\nimport Arc from 'zrender/src/graphic/shape/Arc';\nimport CompoundPath from 'zrender/src/graphic/CompoundPath';\nimport LinearGradient from 'zrender/src/graphic/LinearGradient';\nimport RadialGradient from 'zrender/src/graphic/RadialGradient';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport OrientedBoundingRect from 'zrender/src/core/OrientedBoundingRect';\nimport Point from 'zrender/src/core/Point';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport * as subPixelOptimizeUtil from 'zrender/src/graphic/helper/subPixelOptimize';\nimport { Dictionary } from 'zrender/src/core/types';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n AnimationOptionMixin,\n ZRRectLike,\n ZRStyleProps,\n CommonTooltipOption,\n ComponentItemTooltipLabelFormatterParams\n} from './types';\nimport {\n extend,\n isArrayLike,\n map,\n defaults,\n isString,\n keys,\n each,\n hasOwn\n} from 'zrender/src/core/util';\nimport { getECData } from './innerStore';\nimport ComponentModel from '../model/Component';\n\n\nimport {\n updateProps,\n initProps,\n removeElement,\n removeElementWithFadeOut,\n isElementRemoved\n} from '../animation/basicTrasition';\n\n/**\n * @deprecated export for compatitable reason\n */\nexport {updateProps, initProps, removeElement, removeElementWithFadeOut, isElementRemoved};\n\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\n\nconst _customShapeMap: Dictionary<{ new(): Path }> = {};\n\ntype ExtendShapeOpt = Parameters[0];\ntype ExtendShapeReturn = ReturnType;\n\n/**\n * Extend shape with parameters\n */\nexport function extendShape(opts: ExtendShapeOpt): ExtendShapeReturn {\n return Path.extend(opts);\n}\n\nconst extendPathFromString = pathTool.extendFromString;\ntype SVGPathOption = Parameters[1];\ntype SVGPathCtor = ReturnType;\ntype SVGPath = InstanceType;\n/**\n * Extend path\n */\nexport function extendPath(pathData: string, opts: SVGPathOption): SVGPathCtor {\n return extendPathFromString(pathData, opts);\n}\n\n/**\n * Register a user defined shape.\n * The shape class can be fetched by `getShapeClass`\n * This method will overwrite the registered shapes, including\n * the registered built-in shapes, if using the same `name`.\n * The shape can be used in `custom series` and\n * `graphic component` by declaring `{type: name}`.\n *\n * @param name\n * @param ShapeClass Can be generated by `extendShape`.\n */\nexport function registerShape(name: string, ShapeClass: {new(): Path}) {\n _customShapeMap[name] = ShapeClass;\n}\n\n/**\n * Find shape class registered by `registerShape`. Usually used in\n * fetching user defined shape.\n *\n * [Caution]:\n * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared\n * to use user registered shapes.\n * Because the built-in shape (see `getBuiltInShape`) will be registered by\n * `registerShape` by default. That enables users to get both built-in\n * shapes as well as the shapes belonging to themsleves. But users can overwrite\n * the built-in shapes by using names like 'circle', 'rect' via calling\n * `registerShape`. So the echarts inner featrues should not fetch shapes from here\n * in case that it is overwritten by users, except that some features, like\n * `custom series`, `graphic component`, do it deliberately.\n *\n * (2) In the features like `custom series`, `graphic component`, the user input\n * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic\n * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names\n * are reserved names, that is, if some user register a shape named `'image'`,\n * the shape will not be used. If we intending to add some more reserved names\n * in feature, that might bring break changes (disable some existing user shape\n * names). But that case probably rearly happen. So we dont make more mechanism\n * to resolve this issue here.\n *\n * @param name\n * @return The shape class. If not found, return nothing.\n */\nexport function getShapeClass(name: string): {new(): Path} {\n if (_customShapeMap.hasOwnProperty(name)) {\n return _customShapeMap[name];\n }\n}\n\n/**\n * Create a path element from path data string\n * @param pathData\n * @param opts\n * @param rect\n * @param layout 'center' or 'cover' default to be cover\n */\nexport function makePath(\n pathData: string,\n opts: SVGPathOption,\n rect: ZRRectLike,\n layout?: 'center' | 'cover'\n): SVGPath {\n const path = pathTool.createFromString(pathData, opts);\n if (rect) {\n if (layout === 'center') {\n rect = centerGraphic(rect, path.getBoundingRect());\n }\n resizePath(path, rect);\n }\n return path;\n}\n\n/**\n * Create a image element from image url\n * @param imageUrl image url\n * @param opts options\n * @param rect constrain rect\n * @param layout 'center' or 'cover'. Default to be 'cover'\n */\nexport function makeImage(\n imageUrl: string,\n rect: ZRRectLike,\n layout?: 'center' | 'cover'\n) {\n const zrImg = new ZRImage({\n style: {\n image: imageUrl,\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n onload(img) {\n if (layout === 'center') {\n const boundingRect = {\n width: img.width,\n height: img.height\n };\n zrImg.setStyle(centerGraphic(rect, boundingRect));\n }\n }\n });\n return zrImg;\n}\n\n/**\n * Get position of centered element in bounding box.\n *\n * @param rect element local bounding box\n * @param boundingRect constraint bounding box\n * @return element position containing x, y, width, and height\n */\nfunction centerGraphic(rect: ZRRectLike, boundingRect: {\n width: number\n height: number\n}): ZRRectLike {\n // Set rect to center, keep width / height ratio.\n const aspect = boundingRect.width / boundingRect.height;\n let width = rect.height * aspect;\n let height;\n if (width <= rect.width) {\n height = rect.height;\n }\n else {\n width = rect.width;\n height = width / aspect;\n }\n const cx = rect.x + rect.width / 2;\n const cy = rect.y + rect.height / 2;\n\n return {\n x: cx - width / 2,\n y: cy - height / 2,\n width: width,\n height: height\n };\n}\n\nexport const mergePath = pathTool.mergePath;\n\n/**\n * Resize a path to fit the rect\n * @param path\n * @param rect\n */\nexport function resizePath(path: SVGPath, rect: ZRRectLike): void {\n if (!path.applyTransform) {\n return;\n }\n\n const pathRect = path.getBoundingRect();\n\n const m = pathRect.calculateTransform(rect);\n\n path.applyTransform(m);\n}\n\n/**\n * Sub pixel optimize line for canvas\n */\nexport function subPixelOptimizeLine(param: {\n shape: {\n x1: number, y1: number, x2: number, y2: number\n },\n style: {\n lineWidth: number\n }\n}) {\n subPixelOptimizeUtil.subPixelOptimizeLine(param.shape, param.shape, param.style);\n return param;\n}\n\n/**\n * Sub pixel optimize rect for canvas\n */\nexport function subPixelOptimizeRect(param: {\n shape: {\n x: number, y: number, width: number, height: number\n },\n style: {\n lineWidth: number\n }\n}) {\n subPixelOptimizeUtil.subPixelOptimizeRect(param.shape, param.shape, param.style);\n return param;\n}\n\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth Should be nonnegative integer.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\nexport const subPixelOptimize = subPixelOptimizeUtil.subPixelOptimize;\n\n\n/**\n * Get transform matrix of target (param target),\n * in coordinate of its ancestor (param ancestor)\n *\n * @param target\n * @param [ancestor]\n */\nexport function getTransform(target: Transformable, ancestor?: Transformable): matrix.MatrixArray {\n const mat = matrix.identity([]);\n\n while (target && target !== ancestor) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n return mat;\n}\n\n/**\n * Apply transform to an vertex.\n * @param target [x, y]\n * @param transform Can be:\n * + Transform matrix: like [1, 0, 0, 1, 0, 0]\n * + {position, rotation, scale}, the same as `zrender/Transformable`.\n * @param invert Whether use invert matrix.\n * @return [x, y]\n */\nexport function applyTransform(\n target: vector.VectorArray,\n transform: Transformable | matrix.MatrixArray,\n invert?: boolean\n): number[] {\n if (transform && !isArrayLike(transform)) {\n transform = Transformable.getLocalTransform(transform);\n }\n\n if (invert) {\n transform = matrix.invert([], transform as matrix.MatrixArray);\n }\n return vector.applyTransform([], target, transform as matrix.MatrixArray);\n}\n\n/**\n * @param direction 'left' 'right' 'top' 'bottom'\n * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]\n * @param invert Whether use invert matrix.\n * @return Transformed direction. 'left' 'right' 'top' 'bottom'\n */\nexport function transformDirection(\n direction: 'left' | 'right' | 'top' | 'bottom',\n transform: matrix.MatrixArray,\n invert?: boolean\n): 'left' | 'right' | 'top' | 'bottom' {\n\n // Pick a base, ensure that transform result will not be (0, 0).\n const hBase = (transform[4] === 0 || transform[5] === 0 || transform[0] === 0)\n ? 1 : Math.abs(2 * transform[4] / transform[0]);\n const vBase = (transform[4] === 0 || transform[5] === 0 || transform[2] === 0)\n ? 1 : Math.abs(2 * transform[4] / transform[2]);\n\n let vertex: vector.VectorArray = [\n direction === 'left' ? -hBase : direction === 'right' ? hBase : 0,\n direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0\n ];\n\n vertex = applyTransform(vertex, transform, invert);\n\n return Math.abs(vertex[0]) > Math.abs(vertex[1])\n ? (vertex[0] > 0 ? 'right' : 'left')\n : (vertex[1] > 0 ? 'bottom' : 'top');\n}\n\nfunction isNotGroup(el: Element): el is Displayable {\n return !el.isGroup;\n}\nfunction isPath(el: Displayable): el is Path {\n return (el as Path).shape != null;\n}\n/**\n * Apply group transition animation from g1 to g2.\n * If no animatableModel, no animation.\n */\nexport function groupTransition(\n g1: Group,\n g2: Group,\n animatableModel: Model\n) {\n if (!g1 || !g2) {\n return;\n }\n\n function getElMap(g: Group) {\n const elMap: Dictionary = {};\n g.traverse(function (el: Element) {\n if (isNotGroup(el) && el.anid) {\n elMap[el.anid] = el;\n }\n });\n return elMap;\n }\n function getAnimatableProps(el: Displayable) {\n const obj: PathProps = {\n x: el.x,\n y: el.y,\n rotation: el.rotation\n };\n if (isPath(el)) {\n obj.shape = extend({}, el.shape);\n }\n return obj;\n }\n const elMap1 = getElMap(g1);\n\n g2.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n const oldEl = elMap1[el.anid];\n if (oldEl) {\n const newProp = getAnimatableProps(el);\n el.attr(getAnimatableProps(oldEl));\n updateProps(el, newProp, animatableModel, getECData(el).dataIndex);\n }\n }\n });\n}\n\nexport function clipPointsByRect(points: vector.VectorArray[], rect: ZRRectLike): number[][] {\n // FIXME: this way migth be incorrect when grpahic clipped by a corner.\n // and when element have border.\n return map(points, function (point) {\n let x = point[0];\n x = mathMax(x, rect.x);\n x = mathMin(x, rect.x + rect.width);\n let y = point[1];\n y = mathMax(y, rect.y);\n y = mathMin(y, rect.y + rect.height);\n return [x, y];\n });\n}\n\n/**\n * Return a new clipped rect. If rect size are negative, return undefined.\n */\nexport function clipRectByRect(targetRect: ZRRectLike, rect: ZRRectLike): ZRRectLike {\n const x = mathMax(targetRect.x, rect.x);\n const x2 = mathMin(targetRect.x + targetRect.width, rect.x + rect.width);\n const y = mathMax(targetRect.y, rect.y);\n const y2 = mathMin(targetRect.y + targetRect.height, rect.y + rect.height);\n\n // If the total rect is cliped, nothing, including the border,\n // should be painted. So return undefined.\n if (x2 >= x && y2 >= y) {\n return {\n x: x,\n y: y,\n width: x2 - x,\n height: y2 - y\n };\n }\n}\n\nexport function createIcon(\n iconStr: string, // Support 'image://' or 'path://' or direct svg path.\n opt?: Omit,\n rect?: ZRRectLike\n): SVGPath | ZRImage {\n const innerOpts: DisplayableProps = extend({rectHover: true}, opt);\n const style: ZRStyleProps = innerOpts.style = {strokeNoScale: true};\n rect = rect || {x: -1, y: -1, width: 2, height: 2};\n\n if (iconStr) {\n return iconStr.indexOf('image://') === 0\n ? (\n (style as ImageStyleProps).image = iconStr.slice(8),\n defaults(style, rect),\n new ZRImage(innerOpts)\n )\n : (\n makePath(\n iconStr.replace('path://', ''),\n innerOpts,\n rect,\n 'center'\n )\n );\n }\n}\n\n/**\n * Return `true` if the given line (line `a`) and the given polygon\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\nexport function linePolygonIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number,\n points: vector.VectorArray[]\n): boolean {\n for (let i = 0, p2 = points[points.length - 1]; i < points.length; i++) {\n const p = points[i];\n if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {\n return true;\n }\n p2 = p;\n }\n}\n\n/**\n * Return `true` if the given two lines (line `a` and line `b`)\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\nexport function lineLineIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number,\n b1x: number, b1y: number, b2x: number, b2y: number\n): boolean {\n // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.\n const mx = a2x - a1x;\n const my = a2y - a1y;\n const nx = b2x - b1x;\n const ny = b2y - b1y;\n\n // `vec_m` and `vec_n` are parallel iff\n // exising `k` such that `vec_m = k \u00B7 vec_n`, equivalent to `vec_m X vec_n = 0`.\n const nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n if (nearZero(nmCrossProduct)) {\n return false;\n }\n\n // `vec_m` and `vec_n` are intersect iff\n // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,\n // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`\n // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.\n const b1a1x = a1x - b1x;\n const b1a1y = a1y - b1y;\n const q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;\n if (q < 0 || q > 1) {\n return false;\n }\n const p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n if (p < 0 || p > 1) {\n return false;\n }\n\n return true;\n}\n\n/**\n * Cross product of 2-dimension vector.\n */\nfunction crossProduct2d(x1: number, y1: number, x2: number, y2: number) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction nearZero(val: number) {\n return val <= (1e-6) && val >= -(1e-6);\n}\n\n\nexport function setTooltipConfig(opt: {\n el: Element,\n componentModel: ComponentModel,\n itemName: string,\n itemTooltipOption?: string | CommonTooltipOption\n formatterParamsExtra?: Dictionary\n}): void {\n const itemTooltipOption = opt.itemTooltipOption;\n const componentModel = opt.componentModel;\n const itemName = opt.itemName;\n\n const itemTooltipOptionObj = isString(itemTooltipOption)\n ? { formatter: itemTooltipOption }\n : itemTooltipOption;\n const mainType = componentModel.mainType;\n const componentIndex = componentModel.componentIndex;\n\n const formatterParams = {\n componentType: mainType,\n name: itemName,\n $vars: ['name']\n } as ComponentItemTooltipLabelFormatterParams;\n (formatterParams as any)[mainType + 'Index'] = componentIndex;\n\n const formatterParamsExtra = opt.formatterParamsExtra;\n if (formatterParamsExtra) {\n each(keys(formatterParamsExtra), key => {\n if (!hasOwn(formatterParams, key)) {\n formatterParams[key] = formatterParamsExtra[key];\n formatterParams.$vars.push(key);\n }\n });\n }\n\n const ecData = getECData(opt.el);\n ecData.componentMainType = mainType;\n ecData.componentIndex = componentIndex;\n ecData.tooltipConfig = {\n name: itemName,\n option: defaults({\n content: itemName,\n formatterParams: formatterParams\n }, itemTooltipOptionObj)\n };\n}\n\n// Register built-in shapes. These shapes might be overwirtten\n// by users, although we do not recommend that.\nregisterShape('circle', Circle);\nregisterShape('ellipse', Ellipse);\nregisterShape('sector', Sector);\nregisterShape('ring', Ring);\nregisterShape('polygon', Polygon);\nregisterShape('polyline', Polyline);\nregisterShape('rect', Rect);\nregisterShape('line', Line);\nregisterShape('bezierCurve', BezierCurve);\nregisterShape('arc', Arc);\n\nexport {\n Group,\n ZRImage as Image,\n ZRText as Text,\n Circle,\n Ellipse,\n Sector,\n Ring,\n Polygon,\n Polyline,\n Rect,\n Line,\n BezierCurve,\n Arc,\n IncrementalDisplayable,\n CompoundPath,\n LinearGradient,\n RadialGradient,\n BoundingRect,\n OrientedBoundingRect,\n Point,\n Path\n};", "import PathProxy from '../core/PathProxy';\nimport {applyTransform as v2ApplyTransform, VectorArray} from '../core/vector';\nimport { MatrixArray } from '../core/matrix';\n\nconst CMD = PathProxy.CMD;\n\nconst points: VectorArray[] = [[], [], []];\nconst mathSqrt = Math.sqrt;\nconst mathAtan2 = Math.atan2;\n\nexport default function transformPath(path: PathProxy, m: MatrixArray) {\n if (!m) {\n return;\n }\n\n let data = path.data;\n const len = path.len();\n let cmd;\n let nPoint: number;\n let i: number;\n let j: number;\n let k: number;\n let p: VectorArray;\n\n const M = CMD.M;\n const C = CMD.C;\n const L = CMD.L;\n const R = CMD.R;\n const A = CMD.A;\n const Q = CMD.Q;\n\n for (i = 0, j = 0; i < len;) {\n cmd = data[i++];\n j = i;\n nPoint = 0;\n\n switch (cmd) {\n case M:\n nPoint = 1;\n break;\n case L:\n nPoint = 1;\n break;\n case C:\n nPoint = 3;\n break;\n case Q:\n nPoint = 2;\n break;\n case A:\n const x = m[4];\n const y = m[5];\n const sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);\n const sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);\n const angle = mathAtan2(-m[1] / sy, m[0] / sx);\n // cx\n data[i] *= sx;\n data[i++] += x;\n // cy\n data[i] *= sy;\n data[i++] += y;\n // Scale rx and ry\n // FIXME Assume psi is 0 here\n data[i++] *= sx;\n data[i++] *= sy;\n\n // Start angle\n data[i++] += angle;\n // end angle\n data[i++] += angle;\n // FIXME psi\n i += 2;\n j = i;\n break;\n case R:\n // x0, y0\n p[0] = data[i++];\n p[1] = data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n // x1, y1\n p[0] += data[i++];\n p[1] += data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n }\n\n for (k = 0; k < nPoint; k++) {\n let p = points[k];\n p[0] = data[i++];\n p[1] = data[i++];\n\n v2ApplyTransform(p, p, m);\n // Write back\n data[j++] = p[0];\n data[j++] = p[1];\n }\n }\n\n path.increaseVersion();\n}\n", "import Path, { PathProps } from '../graphic/Path';\nimport PathProxy from '../core/PathProxy';\nimport transformPath from './transformPath';\nimport { VectorArray } from '../core/vector';\nimport { MatrixArray } from '../core/matrix';\nimport { extend } from '../core/util';\n\n// command chars\n// const cc = [\n// 'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z',\n// 'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A'\n// ];\n\nconst mathSqrt = Math.sqrt;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI = Math.PI;\n\nfunction vMag(v: VectorArray): number {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n};\nfunction vRatio(u: VectorArray, v: VectorArray): number {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n};\nfunction vAngle(u: VectorArray, v: VectorArray): number {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)\n * Math.acos(vRatio(u, v));\n};\n\nfunction processArc(\n x1: number, y1: number, x2: number, y2: number, fa: number, fs: number,\n rx: number, ry: number, psiDeg: number, cmd: number, path: PathProxy\n) {\n // https://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n const psi = psiDeg * (PI / 180.0);\n const xp = mathCos(psi) * (x1 - x2) / 2.0\n + mathSin(psi) * (y1 - y2) / 2.0;\n const yp = -1 * mathSin(psi) * (x1 - x2) / 2.0\n + mathCos(psi) * (y1 - y2) / 2.0;\n\n const lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);\n\n if (lambda > 1) {\n rx *= mathSqrt(lambda);\n ry *= mathSqrt(lambda);\n }\n\n const f = (fa === fs ? -1 : 1)\n * mathSqrt((((rx * rx) * (ry * ry))\n - ((rx * rx) * (yp * yp))\n - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)\n + (ry * ry) * (xp * xp))\n ) || 0;\n\n const cxp = f * rx * yp / ry;\n const cyp = f * -ry * xp / rx;\n\n const cx = (x1 + x2) / 2.0\n + mathCos(psi) * cxp\n - mathSin(psi) * cyp;\n const cy = (y1 + y2) / 2.0\n + mathSin(psi) * cxp\n + mathCos(psi) * cyp;\n\n const theta = vAngle([ 1, 0 ], [ (xp - cxp) / rx, (yp - cyp) / ry ]);\n const u = [ (xp - cxp) / rx, (yp - cyp) / ry ];\n const v = [ (-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry ];\n let dTheta = vAngle(u, v);\n\n if (vRatio(u, v) <= -1) {\n dTheta = PI;\n }\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n\n if (dTheta < 0) {\n const n = Math.round(dTheta / PI * 1e6) / 1e6;\n // Convert to positive\n dTheta = PI * 2 + (n % 2) * PI;\n }\n\n path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);\n}\n\n\nconst commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;\n// Consider case:\n// (1) delimiter can be comma or space, where continuous commas\n// or spaces should be seen as one comma.\n// (2) value can be like:\n// '2e-4', 'l.5.9' (ignore 0), 'M-10-10', 'l-2.43e-1,34.9983',\n// 'l-.5E1,54', '121-23-44-11' (no delimiter)\nconst numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\n// const valueSplitReg = /[\\s,]+/;\n\nfunction createPathProxyFromString(data: string) {\n const path = new PathProxy();\n\n if (!data) {\n return path;\n }\n\n // const data = data.replace(/-/g, ' -')\n // .replace(/ /g, ' ')\n // .replace(/ /g, ',')\n // .replace(/,,/g, ',');\n\n // const n;\n // create pipes so that we can split the data\n // for (n = 0; n < cc.length; n++) {\n // cs = cs.replace(new RegExp(cc[n], 'g'), '|' + cc[n]);\n // }\n\n // data = data.replace(/-/g, ',-');\n\n // create array\n // const arr = cs.split('|');\n // init context point\n let cpx = 0;\n let cpy = 0;\n let subpathX = cpx;\n let subpathY = cpy;\n let prevCmd;\n\n const CMD = PathProxy.CMD;\n\n // commandReg.lastIndex = 0;\n // const cmdResult;\n // while ((cmdResult = commandReg.exec(data)) != null) {\n // const cmdStr = cmdResult[1];\n // const cmdContent = cmdResult[2];\n\n const cmdList = data.match(commandReg);\n if (!cmdList) {\n // Invalid svg path.\n return path;\n }\n\n for (let l = 0; l < cmdList.length; l++) {\n const cmdText = cmdList[l];\n let cmdStr = cmdText.charAt(0);\n\n let cmd;\n\n // String#split is faster a little bit than String#replace or RegExp#exec.\n // const p = cmdContent.split(valueSplitReg);\n // const pLen = 0;\n // for (let i = 0; i < p.length; i++) {\n // // '' and other invalid str => NaN\n // const val = parseFloat(p[i]);\n // !isNaN(val) && (p[pLen++] = val);\n // }\n\n\n // Following code will convert string to number. So convert type to number here\n const p = cmdText.match(numberReg) as any[] as number[] || [];\n const pLen = p.length;\n for (let i = 0; i < pLen; i++) {\n p[i] = parseFloat(p[i] as any as string);\n }\n\n let off = 0;\n while (off < pLen) {\n let ctlPtx;\n let ctlPty;\n\n let rx;\n let ry;\n let psi;\n let fa;\n let fs;\n\n let x1 = cpx;\n let y1 = cpy;\n\n let len: number;\n let pathData: number[] | Float32Array;\n // convert l, H, h, V, and v to L\n switch (cmdStr) {\n case 'l':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'L':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'm':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'l';\n break;\n case 'M':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'L';\n break;\n case 'h':\n cpx += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'H':\n cpx = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'v':\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'V':\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'C':\n cmd = CMD.C;\n path.addData(\n cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]\n );\n cpx = p[off - 2];\n cpy = p[off - 1];\n break;\n case 'c':\n cmd = CMD.C;\n path.addData(\n cmd,\n p[off++] + cpx, p[off++] + cpy,\n p[off++] + cpx, p[off++] + cpy,\n p[off++] + cpx, p[off++] + cpy\n );\n cpx += p[off - 2];\n cpy += p[off - 1];\n break;\n case 'S':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 's':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = cpx + p[off++];\n y1 = cpy + p[off++];\n cpx += p[off++];\n cpy += p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 'Q':\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'q':\n x1 = p[off++] + cpx;\n y1 = p[off++] + cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'T':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 't':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 'A':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n\n x1 = cpx, y1 = cpy;\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.A;\n processArc(\n x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path\n );\n break;\n case 'a':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n\n x1 = cpx, y1 = cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.A;\n processArc(\n x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path\n );\n break;\n }\n }\n\n if (cmdStr === 'z' || cmdStr === 'Z') {\n cmd = CMD.Z;\n path.addData(cmd);\n // z may be in the middle of the path.\n cpx = subpathX;\n cpy = subpathY;\n }\n\n prevCmd = cmd;\n }\n\n path.toStatic();\n\n return path;\n}\n\ntype SVGPathOption = Omit\ninterface InnerSVGPathOption extends PathProps {\n applyTransform?: (m: MatrixArray) => void\n}\nclass SVGPath extends Path {\n applyTransform(m: MatrixArray) {}\n}\n\nfunction isPathProxy(path: PathProxy | CanvasRenderingContext2D): path is PathProxy {\n return (path as PathProxy).setData != null;\n}\n// TODO Optimize double memory cost problem\nfunction createPathOptions(str: string, opts: SVGPathOption): InnerSVGPathOption {\n const pathProxy = createPathProxyFromString(str);\n const innerOpts: InnerSVGPathOption = extend({}, opts);\n innerOpts.buildPath = function (path: PathProxy | CanvasRenderingContext2D) {\n if (isPathProxy(path)) {\n path.setData(pathProxy.data);\n // Svg and vml renderer don't have context\n const ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n else {\n const ctx = path;\n pathProxy.rebuildPath(ctx, 1);\n }\n };\n\n innerOpts.applyTransform = function (this: SVGPath, m: MatrixArray) {\n transformPath(pathProxy, m);\n this.dirtyShape();\n };\n\n return innerOpts;\n}\n\n/**\n * Create a Path object from path string data\n * http://www.w3.org/TR/SVG/paths.html#PathData\n * @param opts Other options\n */\nexport function createFromString(str: string, opts?: SVGPathOption): SVGPath {\n // PENDING\n return new SVGPath(createPathOptions(str, opts));\n}\n\n/**\n * Create a Path class from path string data\n * @param str\n * @param opts Other options\n */\nexport function extendFromString(str: string, defaultOpts?: SVGPathOption): typeof SVGPath {\n const innerOpts = createPathOptions(str, defaultOpts);\n class Sub extends SVGPath {\n constructor(opts: InnerSVGPathOption) {\n super(opts);\n this.applyTransform = innerOpts.applyTransform;\n this.buildPath = innerOpts.buildPath;\n }\n }\n return Sub;\n}\n\n/**\n * Merge multiple paths\n */\n// TODO Apply transform\n// TODO stroke dash\n// TODO Optimize double memory cost problem\nexport function mergePath(pathEls: Path[], opts: PathProps) {\n const pathList: PathProxy[] = [];\n const len = pathEls.length;\n for (let i = 0; i < len; i++) {\n const pathEl = pathEls[i];\n pathList.push(pathEl.getUpdatedPathProxy(true));\n }\n\n const pathBundle = new Path(opts);\n // Need path proxy.\n pathBundle.createPathProxy();\n pathBundle.buildPath = function (path: PathProxy | CanvasRenderingContext2D) {\n if (isPathProxy(path)) {\n path.appendPath(pathList);\n // Svg and vml renderer don't have context\n const ctx = path.getContext();\n if (ctx) {\n // Path bundle not support percent draw.\n path.rebuildPath(ctx, 1);\n }\n }\n };\n\n return pathBundle;\n}\n\n/**\n * Clone a path.\n */\nexport function clonePath(sourcePath: Path, opts?: {\n /**\n * If bake global transform to path.\n */\n bakeTransform?: boolean\n /**\n * Convert global transform to local.\n */\n toLocal?: boolean\n}) {\n opts = opts || {};\n const path = new Path();\n if (sourcePath.shape) {\n path.setShape(sourcePath.shape);\n }\n path.setStyle(sourcePath.style);\n\n if (opts.bakeTransform) {\n transformPath(path.path, sourcePath.getComputedTransform());\n }\n else {\n // TODO Copy getLocalTransform, updateTransform since they can be changed.\n if (opts.toLocal) {\n path.setLocalTransform(sourcePath.getComputedTransform());\n }\n else {\n path.copyTransform(sourcePath);\n }\n }\n\n // These methods may be overridden\n path.buildPath = sourcePath.buildPath;\n (path as SVGPath).applyTransform = (path as SVGPath).applyTransform;\n\n path.z = sourcePath.z;\n path.z2 = sourcePath.z2;\n path.zlevel = sourcePath.zlevel;\n\n return path;\n}\n", "/**\n * \u5706\u5F62\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class CircleShape {\n cx = 0\n cy = 0\n r = 0\n}\n\nexport interface CircleProps extends PathProps {\n shape?: Partial\n}\nclass Circle extends Path {\n\n shape: CircleShape\n\n constructor(opts?: CircleProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new CircleShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: CircleShape, inBundle: boolean) {\n // Better stroking in ShapeBundle\n // Always do it may have performence issue ( fill may be 2x more cost)\n if (inBundle) {\n ctx.moveTo(shape.cx + shape.r, shape.cy);\n }\n // else {\n // if (ctx.allocate && !ctx.data.length) {\n // ctx.allocate(ctx.CMD_MEM_SIZE.A);\n // }\n // }\n // Better stroking in ShapeBundle\n // ctx.moveTo(shape.cx + shape.r, shape.cy);\n ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2);\n }\n};\n\nCircle.prototype.type = 'circle';\n\nexport default Circle;", "/**\n * \u692D\u5706\u5F62\u72B6\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class EllipseShape {\n cx = 0\n cy = 0\n rx = 0\n ry = 0\n}\n\nexport interface EllipseProps extends PathProps {\n shape?: Partial\n}\nclass Ellipse extends Path {\n\n shape: EllipseShape\n\n constructor(opts?: EllipseProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new EllipseShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: EllipseShape) {\n const k = 0.5522848;\n const x = shape.cx;\n const y = shape.cy;\n const a = shape.rx;\n const b = shape.ry;\n const ox = a * k; // \u6C34\u5E73\u63A7\u5236\u70B9\u504F\u79FB\u91CF\n const oy = b * k; // \u5782\u76F4\u63A7\u5236\u70B9\u504F\u79FB\u91CF\n // \u4ECE\u692D\u5706\u7684\u5DE6\u7AEF\u70B9\u5F00\u59CB\u987A\u65F6\u9488\u7ED8\u5236\u56DB\u6761\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n ctx.moveTo(x - a, y);\n ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b);\n ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y);\n ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b);\n ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y);\n ctx.closePath();\n }\n}\n\nEllipse.prototype.type = 'ellipse';\n\nexport default Ellipse;", "import PathProxy, { normalizeArcAngles } from '../../core/PathProxy';\n\nconst PI = Math.PI;\nconst PI2 = PI * 2;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst mathACos = Math.acos;\nconst mathATan2 = Math.atan2;\nconst mathAbs = Math.abs;\nconst mathSqrt = Math.sqrt;\nconst mathMax = Math.max;\nconst mathMin = Math.min;\nconst e = 1e-4;\n\ntype CornerTangents = {\n cx: number\n cy: number\n x01: number\n y01: number\n x11: number\n y11: number\n};\n\nfunction intersect(\n x0: number, y0: number, \n x1: number, y1: number, \n x2: number, y2: number, \n x3: number, y3: number\n): [number, number] {\n const x10 = x1 - x0;\n const y10 = y1 - y0;\n const x32 = x3 - x2;\n const y32 = y3 - y2;\n let t = y32 * x10 - x32 * y10;\n if (t * t < e) {\n return;\n }\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\nfunction computeCornerTangents(\n x0: number, y0: number, \n x1: number, y1: number, \n radius: number, cr: number, \n clockwise: boolean\n): CornerTangents {\n const x01 = x0 - x1;\n const y01 = y0 - y1;\n const lo = (clockwise ? cr : -cr) / mathSqrt(x01 * x01 + y01 * y01);\n const ox = lo * y01;\n const oy = -lo * x01;\n const x11 = x0 + ox;\n const y11 = y0 + oy;\n const x10 = x1 + ox;\n const y10 = y1 + oy;\n const x00 = (x11 + x10) / 2;\n const y00 = (y11 + y10) / 2;\n const dx = x10 - x11;\n const dy = y10 - y11;\n const d2 = dx * dx + dy * dy;\n const r = radius - cr;\n const s = x11 * y10 - x10 * y11;\n const d = (dy < 0 ? -1 : 1) * mathSqrt(mathMax(0, r * r * d2 - s * s));\n let cx0 = (s * dy - dx * d) / d2;\n let cy0 = (-s * dx - dy * d) / d2;\n const cx1 = (s * dy + dx * d) / d2;\n const cy1 = (-s * dx + dy * d) / d2;\n const dx0 = cx0 - x00;\n const dy0 = cy0 - y00;\n const dx1 = cx1 - x00;\n const dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points\n // TODO: Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) {\n cx0 = cx1;\n cy0 = cy1;\n }\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (radius / r - 1),\n y11: cy0 * (radius / r - 1)\n };\n}\n\nexport function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n cx: number\n cy: number\n startAngle: number\n endAngle: number\n clockwise?: boolean,\n r?: number,\n r0?: number,\n cornerRadius?: number,\n innerCornerRadius?: number\n}) {\n let radius = mathMax(shape.r, 0);\n let innerRadius = mathMax(shape.r0 || 0, 0);\n const hasRadius = radius > 0;\n const hasInnerRadius = innerRadius > 0;\n\n if (!hasRadius && !hasInnerRadius) {\n return;\n }\n\n if (!hasRadius) {\n // use innerRadius as radius if no radius\n radius = innerRadius;\n innerRadius = 0;\n }\n\n if (innerRadius > radius) {\n // swap, ensure that radius is always larger than innerRadius\n const tmp = radius;\n radius = innerRadius;\n innerRadius = tmp;\n }\n\n const clockwise = !!shape.clockwise;\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n\n // PENDING: whether normalizing angles is required?\n let arc: number;\n // FIXME: there may be a precision issue in `normalizeArcAngles`\n if (startAngle === endAngle) {\n arc = 0;\n }\n else {\n const tmpAngles = [startAngle, endAngle];\n normalizeArcAngles(tmpAngles, !clockwise);\n arc = mathAbs(tmpAngles[0] - tmpAngles[1]);\n }\n\n const x = shape.cx;\n const y = shape.cy;\n const cornerRadius = shape.cornerRadius || 0;\n const innerCornerRadius = shape.innerCornerRadius || 0;\n\n // is a point\n if (!(radius > e)) {\n ctx.moveTo(x, y);\n }\n // is a circle or annulus\n else if (arc > PI2 - e) {\n ctx.moveTo(\n x + radius * mathCos(startAngle), \n y + radius * mathSin(startAngle)\n );\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n\n if (innerRadius > e) {\n ctx.moveTo(\n x + innerRadius * mathCos(endAngle), \n y + innerRadius * mathSin(endAngle)\n );\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n // is a circular or annular sector\n else {\n const halfRd = mathAbs(radius - innerRadius) / 2;\n const cr = mathMin(halfRd, cornerRadius);\n const icr = mathMin(halfRd, innerCornerRadius);\n let cr0 = icr;\n let cr1 = cr;\n\n const xrs = radius * mathCos(startAngle);\n const yrs = radius * mathSin(startAngle);\n const xire = innerRadius * mathCos(endAngle);\n const yire = innerRadius * mathSin(endAngle);\n\n let xre;\n let yre;\n let xirs;\n let yirs;\n\n // draw corner radius\n if (cr > e || icr > e) {\n xre = radius * mathCos(endAngle);\n yre = radius * mathSin(endAngle);\n xirs = innerRadius * mathCos(startAngle);\n yirs = innerRadius * mathSin(startAngle);\n\n // restrict the max value of corner radius\n if (arc < PI) {\n const it = intersect(xrs, yrs, xirs, yirs, xre, yre, xire, yire);\n if (it) {\n const x0 = xrs - it[0];\n const y0 = yrs - it[1];\n const x1 = xre - it[0];\n const y1 = yre - it[1];\n const a = 1 / mathSin(\n mathACos((x0 * x1 + y0 * y1) / (mathSqrt(x0 * x0 + y0 * y0) * mathSqrt(x1 * x1 + y1 * y1))) / 2\n );\n const b = mathSqrt(it[0] * it[0] + it[1] * it[1]);\n cr0 = mathMin(icr, (innerRadius - b) / (a - 1));\n cr1 = mathMin(cr, (radius - b) / (a + 1));\n }\n }\n }\n\n // the sector is collapsed to a line\n if (!(arc > e)) {\n ctx.moveTo(x + xrs, y + yrs);\n }\n // the outer ring has corners\n else if (cr1 > e) {\n const ct0 = computeCornerTangents(xirs, yirs, xrs, yrs, radius, cr1, clockwise);\n const ct1 = computeCornerTangents(xre, yre, xire, yire, radius, cr1, clockwise);\n\n ctx.moveTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n\n // Have the corners merged?\n if (cr1 < cr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n // draw the two corners and the ring\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n\n ctx.arc(x, y, radius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), !clockwise);\n\n ctx.arc(x + ct1.cx, y + ct1.cy, cr1, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n // the outer ring is a circular arc\n else {\n ctx.moveTo(x + xrs, y + yrs);\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n }\n\n // no inner ring, is a circular sector\n if (!(innerRadius > e) || !(arc > e)) {\n ctx.lineTo(x + xire, y + yire);\n }\n // the inner ring has corners\n else if (cr0 > e) {\n const ct0 = computeCornerTangents(xire, yire, xre, yre, innerRadius, -cr0, clockwise);\n const ct1 = computeCornerTangents(xrs, yrs, xirs, yirs, innerRadius, -cr0, clockwise);\n ctx.lineTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n\n // Have the corners merged?\n if (cr0 < icr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n // draw the two corners and the ring\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n\n ctx.arc(x, y, innerRadius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), clockwise);\n\n ctx.arc(x + ct1.cx, y + ct1.cy, cr0, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n // the inner ring is just a circular arc\n else {\n // FIXME: if no lineTo, svg renderer will perform an abnormal drawing behavior.\n ctx.lineTo(x + xire, y + yire);\n\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n\n ctx.closePath();\n}\n", "import Path, { PathProps } from '../Path';\nimport * as roundSectorHelper from '../helper/roundSector';\n\nexport class SectorShape {\n cx = 0\n cy = 0\n r0 = 0\n r = 0\n startAngle = 0\n endAngle = Math.PI * 2\n clockwise = true\n cornerRadius = 0\n innerCornerRadius = 0\n}\n\nexport interface SectorProps extends PathProps {\n shape?: Partial\n}\n\nclass Sector extends Path {\n\n shape: SectorShape\n\n constructor(opts?: SectorProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SectorShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SectorShape) {\n roundSectorHelper.buildPath(ctx, shape)\n }\n\n isZeroArea() {\n return this.shape.startAngle === this.shape.endAngle\n || this.shape.r === this.shape.r0;\n }\n}\n\nSector.prototype.type = 'sector';\n\nexport default Sector;\n", "/**\n * \u5706\u73AF\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class RingShape {\n cx = 0\n cy = 0\n r = 0\n r0 = 0\n}\n\nexport interface RingProps extends PathProps {\n shape?: Partial\n}\nclass Ring extends Path {\n\n shape: RingShape\n\n constructor(opts?: RingProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new RingShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: RingShape) {\n const x = shape.cx;\n const y = shape.cy;\n const PI2 = Math.PI * 2;\n ctx.moveTo(x + shape.r, y);\n ctx.arc(x, y, shape.r, 0, PI2, false);\n ctx.moveTo(x + shape.r0, y);\n ctx.arc(x, y, shape.r0, 0, PI2, true);\n }\n}\n\nRing.prototype.type = 'ring';\nexport default Ring;", "/**\n * Catmull-Rom spline \u63D2\u503C\u6298\u7EBF\n */\n\nimport {distance as v2Distance, VectorArray} from '../../core/vector';\n\nfunction interpolate(\n p0: number, p1: number, p2: number, p3: number, t: number, t2: number, t3: number\n) {\n const v0 = (p2 - p0) * 0.5;\n const v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\n\nexport default function smoothSpline(points: VectorArray[], isLoop?: boolean): VectorArray[] {\n const len = points.length;\n const ret = [];\n\n let distance = 0;\n for (let i = 1; i < len; i++) {\n distance += v2Distance(points[i - 1], points[i]);\n }\n\n let segs = distance / 2;\n segs = segs < len ? len : segs;\n for (let i = 0; i < segs; i++) {\n const pos = i / (segs - 1) * (isLoop ? len : len - 1);\n const idx = Math.floor(pos);\n\n const w = pos - idx;\n\n let p0;\n let p1 = points[idx % len];\n let p2;\n let p3;\n if (!isLoop) {\n p0 = points[idx === 0 ? idx : idx - 1];\n p2 = points[idx > len - 2 ? len - 1 : idx + 1];\n p3 = points[idx > len - 3 ? len - 1 : idx + 2];\n }\n else {\n p0 = points[(idx - 1 + len) % len];\n p2 = points[(idx + 1) % len];\n p3 = points[(idx + 2) % len];\n }\n\n const w2 = w * w;\n const w3 = w * w2;\n\n ret.push([\n interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),\n interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)\n ]);\n }\n return ret;\n}", "/**\n * \u8D1D\u585E\u5C14\u5E73\u6ED1\u66F2\u7EBF\n */\n\nimport {\n min as v2Min,\n max as v2Max,\n scale as v2Scale,\n distance as v2Distance,\n add as v2Add,\n clone as v2Clone,\n sub as v2Sub,\n VectorArray\n} from '../../core/vector';\n\n/**\n * \u8D1D\u585E\u5C14\u5E73\u6ED1\u66F2\u7EBF\n * @param points \u7EBF\u6BB5\u9876\u70B9\u6570\u7EC4\n * @param smooth \u5E73\u6ED1\u7B49\u7EA7, 0-1\n * @param isLoop\n * @param constraint \u5C06\u8BA1\u7B97\u51FA\u6765\u7684\u63A7\u5236\u70B9\u7EA6\u675F\u5728\u4E00\u4E2A\u5305\u56F4\u76D2\u5185\n * \u6BD4\u5982 [[0, 0], [100, 100]], \u8FD9\u4E2A\u5305\u56F4\u76D2\u4F1A\u4E0E\n * \u6574\u4E2A\u6298\u7EBF\u7684\u5305\u56F4\u76D2\u505A\u4E00\u4E2A\u5E76\u96C6\u7528\u6765\u7EA6\u675F\u63A7\u5236\u70B9\u3002\n * @param \u8BA1\u7B97\u51FA\u6765\u7684\u63A7\u5236\u70B9\u6570\u7EC4\n */\nexport default function smoothBezier(\n points: VectorArray[],\n smooth?: number,\n isLoop?: boolean,\n constraint?: VectorArray[]\n) {\n const cps = [];\n\n const v: VectorArray = [];\n const v1: VectorArray = [];\n const v2: VectorArray = [];\n let prevPoint;\n let nextPoint;\n\n let min;\n let max;\n if (constraint) {\n min = [Infinity, Infinity];\n max = [-Infinity, -Infinity];\n for (let i = 0, len = points.length; i < len; i++) {\n v2Min(min, min, points[i]);\n v2Max(max, max, points[i]);\n }\n // \u4E0E\u6307\u5B9A\u7684\u5305\u56F4\u76D2\u505A\u5E76\u96C6\n v2Min(min, min, constraint[0]);\n v2Max(max, max, constraint[1]);\n }\n\n for (let i = 0, len = points.length; i < len; i++) {\n const point = points[i];\n\n if (isLoop) {\n prevPoint = points[i ? i - 1 : len - 1];\n nextPoint = points[(i + 1) % len];\n }\n else {\n if (i === 0 || i === len - 1) {\n cps.push(v2Clone(points[i]));\n continue;\n }\n else {\n prevPoint = points[i - 1];\n nextPoint = points[i + 1];\n }\n }\n\n v2Sub(v, nextPoint, prevPoint);\n\n // use degree to scale the handle length\n v2Scale(v, v, smooth);\n\n let d0 = v2Distance(point, prevPoint);\n let d1 = v2Distance(point, nextPoint);\n const sum = d0 + d1;\n if (sum !== 0) {\n d0 /= sum;\n d1 /= sum;\n }\n\n v2Scale(v1, v, -d0);\n v2Scale(v2, v, d1);\n const cp0 = v2Add([], point, v1);\n const cp1 = v2Add([], point, v2);\n if (constraint) {\n v2Max(cp0, cp0, min);\n v2Min(cp0, cp0, max);\n v2Max(cp1, cp1, min);\n v2Min(cp1, cp1, max);\n }\n cps.push(cp0);\n cps.push(cp1);\n }\n\n if (isLoop) {\n cps.push(cps.shift());\n }\n\n return cps;\n}", "\nimport smoothSpline from './smoothSpline';\nimport smoothBezier from './smoothBezier';\nimport { VectorArray } from '../../core/vector';\nimport PathProxy from '../../core/PathProxy';\n\nexport function buildPath(\n ctx: CanvasRenderingContext2D | PathProxy,\n shape: {\n points: VectorArray[],\n smooth?: number | 'spline'\n smoothConstraint?: VectorArray[]\n },\n closePath: boolean\n) {\n const smooth = shape.smooth;\n let points = shape.points;\n if (points && points.length >= 2) {\n if (smooth && smooth !== 'spline') {\n const controlPoints = smoothBezier(\n points, smooth, closePath, shape.smoothConstraint\n );\n\n ctx.moveTo(points[0][0], points[0][1]);\n const len = points.length;\n for (let i = 0; i < (closePath ? len : len - 1); i++) {\n const cp1 = controlPoints[i * 2];\n const cp2 = controlPoints[i * 2 + 1];\n const p = points[(i + 1) % len];\n ctx.bezierCurveTo(\n cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]\n );\n }\n }\n else {\n if (smooth === 'spline') {\n points = smoothSpline(points, closePath);\n }\n\n ctx.moveTo(points[0][0], points[0][1]);\n for (let i = 1, l = points.length; i < l; i++) {\n ctx.lineTo(points[i][0], points[i][1]);\n }\n }\n\n closePath && ctx.closePath();\n }\n}\n", "/**\n * \u591A\u8FB9\u5F62\n * @module zrender/shape/Polygon\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as polyHelper from '../helper/poly';\nimport { VectorArray } from '../../core/vector';\n\nexport class PolygonShape {\n points: VectorArray[] = null\n smooth?: number | 'spline' = 0\n smoothConstraint?: VectorArray[] = null\n}\n\nexport interface PolygonProps extends PathProps {\n shape?: Partial\n}\nclass Polygon extends Path {\n\n shape: PolygonShape\n\n constructor(opts?: PolygonProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new PolygonShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PolygonShape) {\n polyHelper.buildPath(ctx, shape, true);\n }\n};\n\nPolygon.prototype.type = 'polygon';\n\nexport default Polygon;", "/**\n * @module zrender/graphic/shape/Polyline\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as polyHelper from '../helper/poly';\nimport { VectorArray } from '../../core/vector';\n\nexport class PolylineShape {\n points: VectorArray[] = null\n // Percent of displayed polyline. For animating purpose\n percent?: number = 1\n smooth?: number | 'spline' = 0\n smoothConstraint?: VectorArray[] = null\n}\n\nexport interface PolylineProps extends PathProps {\n shape?: Partial\n}\nclass Polyline extends Path {\n\n shape: PolylineShape\n\n constructor(opts?: PolylineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new PolylineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PolylineShape) {\n polyHelper.buildPath(ctx, shape, false);\n }\n}\n\nPolyline.prototype.type = 'polyline';\nexport default Polyline;", "/**\n * \u76F4\u7EBF\n * @module zrender/graphic/shape/Line\n */\n\nimport Path, { PathProps } from '../Path';\nimport {subPixelOptimizeLine} from '../helper/subPixelOptimize';\nimport { VectorArray } from '../../core/vector';\n\n// Avoid create repeatly.\nconst subPixelOptimizeOutputShape = {};\n\nexport class LineShape {\n // Start point\n x1 = 0\n y1 = 0\n // End point\n x2 = 0\n y2 = 0\n\n percent = 1\n}\n\nexport interface LineProps extends PathProps {\n shape?: Partial\n}\nclass Line extends Path {\n\n shape: LineShape\n\n constructor(opts?: LineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new LineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LineShape) {\n let x1;\n let y1;\n let x2;\n let y2;\n\n if (this.subPixelOptimize) {\n const optimizedShape = subPixelOptimizeLine(\n subPixelOptimizeOutputShape, shape, this.style\n );\n x1 = optimizedShape.x1;\n y1 = optimizedShape.y1;\n x2 = optimizedShape.x2;\n y2 = optimizedShape.y2;\n }\n else {\n x1 = shape.x1;\n y1 = shape.y1;\n x2 = shape.x2;\n y2 = shape.y2;\n }\n\n const percent = shape.percent;\n\n if (percent === 0) {\n return;\n }\n\n ctx.moveTo(x1, y1);\n\n if (percent < 1) {\n x2 = x1 * (1 - percent) + x2 * percent;\n y2 = y1 * (1 - percent) + y2 * percent;\n }\n ctx.lineTo(x2, y2);\n }\n\n /**\n * Get point at percent\n */\n pointAt(p: number): VectorArray {\n const shape = this.shape;\n return [\n shape.x1 * (1 - p) + shape.x2 * p,\n shape.y1 * (1 - p) + shape.y2 * p\n ];\n }\n}\n\nLine.prototype.type = 'line';\nexport default Line;", "/**\n * \u8D1D\u585E\u5C14\u66F2\u7EBF\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as vec2 from '../../core/vector';\nimport {\n quadraticSubdivide,\n cubicSubdivide,\n quadraticAt,\n cubicAt,\n quadraticDerivativeAt,\n cubicDerivativeAt\n} from '../../core/curve';\n\nconst out: number[] = [];\n\nexport class BezierCurveShape {\n x1 = 0\n y1 = 0\n x2 = 0\n y2 = 0\n cpx1 = 0\n cpy1 = 0\n cpx2?: number\n cpy2?: number\n // Curve show percent, for animating\n percent = 1\n}\n\nfunction someVectorAt(shape: BezierCurveShape, t: number, isTangent: boolean) {\n const cpx2 = shape.cpx2;\n const cpy2 = shape.cpy2;\n if (cpx2 === null || cpy2 === null) {\n return [\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)\n ];\n }\n else {\n return [\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)\n ];\n }\n}\n\nexport interface BezierCurveProps extends PathProps {\n shape?: Partial\n}\nclass BezierCurve extends Path {\n\n shape: BezierCurveShape\n\n constructor(opts?: BezierCurveProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new BezierCurveShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: BezierCurveShape) {\n let x1 = shape.x1;\n let y1 = shape.y1;\n let x2 = shape.x2;\n let y2 = shape.y2;\n let cpx1 = shape.cpx1;\n let cpy1 = shape.cpy1;\n let cpx2 = shape.cpx2;\n let cpy2 = shape.cpy2;\n let percent = shape.percent;\n if (percent === 0) {\n return;\n }\n\n ctx.moveTo(x1, y1);\n\n if (cpx2 == null || cpy2 == null) {\n if (percent < 1) {\n quadraticSubdivide(x1, cpx1, x2, percent, out);\n cpx1 = out[1];\n x2 = out[2];\n quadraticSubdivide(y1, cpy1, y2, percent, out);\n cpy1 = out[1];\n y2 = out[2];\n }\n\n ctx.quadraticCurveTo(\n cpx1, cpy1,\n x2, y2\n );\n }\n else {\n if (percent < 1) {\n cubicSubdivide(x1, cpx1, cpx2, x2, percent, out);\n cpx1 = out[1];\n cpx2 = out[2];\n x2 = out[3];\n cubicSubdivide(y1, cpy1, cpy2, y2, percent, out);\n cpy1 = out[1];\n cpy2 = out[2];\n y2 = out[3];\n }\n ctx.bezierCurveTo(\n cpx1, cpy1,\n cpx2, cpy2,\n x2, y2\n );\n }\n }\n\n /**\n * Get point at percent\n */\n pointAt(t: number) {\n return someVectorAt(this.shape, t, false);\n }\n\n /**\n * Get tangent at percent\n */\n tangentAt(t: number) {\n const p = someVectorAt(this.shape, t, true);\n return vec2.normalize(p, p);\n }\n};\n\nBezierCurve.prototype.type = 'bezier-curve';\n\nexport default BezierCurve;\n", "/**\n * \u5706\u5F27\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class ArcShape {\n cx = 0;\n cy = 0;\n r = 0;\n startAngle = 0;\n endAngle = Math.PI * 2\n clockwise? = true\n}\n\nexport interface ArcProps extends PathProps {\n shape?: Partial\n}\n\nclass Arc extends Path {\n\n shape: ArcShape\n\n constructor(opts?: ArcProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new ArcShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: ArcShape) {\n\n const x = shape.cx;\n const y = shape.cy;\n const r = Math.max(shape.r, 0);\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n const clockwise = shape.clockwise;\n\n const unitX = Math.cos(startAngle);\n const unitY = Math.sin(startAngle);\n\n ctx.moveTo(unitX * r + x, unitY * r + y);\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n }\n}\n\nArc.prototype.type = 'arc';\n\nexport default Arc;", "// CompoundPath to improve performance\n\nimport Path from './Path';\nimport PathProxy from '../core/PathProxy';\n\nexport interface CompoundPathShape {\n paths: Path[]\n}\n\nexport default class CompoundPath extends Path {\n\n type = 'compound'\n\n shape: CompoundPathShape\n\n private _updatePathDirty() {\n const paths = this.shape.paths;\n let dirtyPath = this.shapeChanged();\n for (let i = 0; i < paths.length; i++) {\n // Mark as dirty if any subpath is dirty\n dirtyPath = dirtyPath || paths[i].shapeChanged();\n }\n if (dirtyPath) {\n this.dirtyShape();\n }\n }\n\n beforeBrush() {\n this._updatePathDirty();\n const paths = this.shape.paths || [];\n const scale = this.getGlobalScale();\n // Update path scale\n for (let i = 0; i < paths.length; i++) {\n if (!paths[i].path) {\n paths[i].createPathProxy();\n }\n paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);\n }\n }\n\n buildPath(ctx: PathProxy | CanvasRenderingContext2D, shape: CompoundPathShape) {\n const paths = shape.paths || [];\n for (let i = 0; i < paths.length; i++) {\n paths[i].buildPath(ctx, paths[i].shape, true);\n }\n }\n\n afterBrush() {\n const paths = this.shape.paths || [];\n for (let i = 0; i < paths.length; i++) {\n paths[i].pathUpdated();\n }\n }\n\n getBoundingRect() {\n this._updatePathDirty.call(this);\n return Path.prototype.getBoundingRect.call(this);\n }\n}", "// TODO Should GradientObject been LinearGradientObject | RadialGradientObject\nexport interface GradientObject {\n\n id?: number\n\n type: string\n\n colorStops: GradientColorStop[]\n\n global: boolean\n}\n\nexport interface InnerGradientObject extends GradientObject {\n __canvasGradient: CanvasGradient\n}\n\nexport interface GradientColorStop {\n offset: number\n color: string\n}\n\nexport default class Gradient {\n\n id?: number\n\n type: string\n\n colorStops: GradientColorStop[]\n\n global: boolean\n\n constructor(colorStops: GradientColorStop[]) {\n this.colorStops = colorStops || [];\n }\n\n addColorStop(offset: number, color: string) {\n this.colorStops.push({\n offset,\n color\n });\n }\n}", "import Gradient, {GradientObject, GradientColorStop} from './Gradient';\n\nexport interface LinearGradientObject extends GradientObject {\n type: 'linear'\n\n x: number\n y: number\n x2: number\n y2: number\n}\n/**\n * x, y, x2, y2 are all percent from 0 to 1 when globalCoord is false\n */\n\nexport default class LinearGradient extends Gradient {\n\n type: 'linear'\n\n x: number\n y: number\n x2: number\n y2: number\n\n constructor(\n x: number, y: number, x2: number, y2: number,\n colorStops?: GradientColorStop[], globalCoord?: boolean\n ) {\n\n super(colorStops);\n\n // Should do nothing more in this constructor. Because gradient can be\n // declard by `color: {type: 'linear', colorStops: ...}`, where\n // this constructor will not be called.\n\n this.x = x == null ? 0 : x;\n\n this.y = y == null ? 0 : y;\n\n this.x2 = x2 == null ? 1 : x2;\n\n this.y2 = y2 == null ? 0 : y2;\n\n // Can be cloned\n this.type = 'linear';\n\n // If use global coord\n this.global = globalCoord || false;\n }\n};\n", "import Gradient, {GradientColorStop, GradientObject} from './Gradient';\n\nexport interface RadialGradientObject extends GradientObject {\n type: 'radial'\n\n x: number\n y: number\n r: number\n}\n/**\n * x, y, r are all percent from 0 to 1 when globalCoord is false\n */\nclass RadialGradient extends Gradient {\n\n type: 'radial'\n\n x: number\n y: number\n r: number\n\n constructor(\n x: number, y: number, r: number,\n colorStops?: GradientColorStop[], globalCoord?: boolean\n ) {\n super(colorStops);\n // Should do nothing more in this constructor. Because gradient can be\n // declard by `color: {type: 'radial', colorStops: ...}`, where\n // this constructor will not be called.\n this.x = x == null ? 0.5 : x;\n\n this.y = y == null ? 0.5 : y;\n\n this.r = r == null ? 0.5 : r;\n\n // Can be cloned\n this.type = 'radial';\n\n // If use global coord\n this.global = globalCoord || false;\n }\n}\n\nexport default RadialGradient;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Point, { PointLike } from './Point';\nimport BoundingRect from './BoundingRect';\nimport { MatrixArray } from './matrix';\n\nconst extent = [0, 0];\nconst extent2 = [0, 0];\n\nconst minTv = new Point();\nconst maxTv = new Point();\n\nclass OrientedBoundingRect {\n\n // lt, rt, rb, lb\n private _corners: Point[] = [];\n\n private _axes: Point[] = [];\n\n private _origin: number[] = [0, 0];\n\n constructor(rect?: BoundingRect, transform?: MatrixArray) {\n for (let i = 0; i < 4; i++) {\n this._corners[i] = new Point();\n }\n for (let i = 0; i < 2; i++) {\n this._axes[i] = new Point();\n }\n\n if (rect) {\n this.fromBoundingRect(rect, transform);\n }\n }\n\n fromBoundingRect(rect: BoundingRect, transform?: MatrixArray) {\n const corners = this._corners;\n const axes = this._axes;\n const x = rect.x;\n const y = rect.y;\n const x2 = x + rect.width;\n const y2 = y + rect.height;\n corners[0].set(x, y);\n corners[1].set(x2, y);\n corners[2].set(x2, y2);\n corners[3].set(x, y2);\n\n if (transform) {\n for (let i = 0; i < 4; i++) {\n corners[i].transform(transform);\n }\n }\n\n // Calculate axes\n Point.sub(axes[0], corners[1], corners[0]);\n Point.sub(axes[1], corners[3], corners[0]);\n axes[0].normalize();\n axes[1].normalize();\n\n // Calculate projected origin\n for (let i = 0; i < 2; i++) {\n this._origin[i] = axes[i].dot(corners[0]);\n }\n }\n\n /**\n * If intersect with another OBB\n * @param other Bounding rect to be intersected with\n * @param mtv Calculated .\n * If it's not overlapped. it means needs to move given rect with Maximum Translation Vector to be overlapped.\n * Else it means needs to move given rect with Minimum Translation Vector to be not overlapped.\n */\n intersect(other: OrientedBoundingRect, mtv?: PointLike): boolean {\n // OBB collision with SAT method\n\n let overlapped = true;\n const noMtv = !mtv;\n minTv.set(Infinity, Infinity);\n maxTv.set(0, 0);\n // Check two axes for both two obb.\n if (!this._intersectCheckOneSide(this, other, minTv, maxTv, noMtv, 1)) {\n overlapped = false;\n if (noMtv) {\n // Early return if no need to calculate mtv\n return overlapped;\n }\n }\n if (!this._intersectCheckOneSide(other, this, minTv, maxTv, noMtv, -1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n\n if (!noMtv) {\n Point.copy(mtv, overlapped ? minTv : maxTv);\n }\n\n return overlapped;\n }\n\n\n private _intersectCheckOneSide(\n self: OrientedBoundingRect,\n other: OrientedBoundingRect,\n minTv: Point,\n maxTv: Point,\n noMtv: boolean,\n inverse: 1 | -1\n ): boolean {\n let overlapped = true;\n for (let i = 0; i < 2; i++) {\n const axis = this._axes[i];\n this._getProjMinMaxOnAxis(i, self._corners, extent);\n this._getProjMinMaxOnAxis(i, other._corners, extent2);\n\n // Not overlap on the any axis.\n if (extent[1] < extent2[0] || extent[0] > extent2[1]) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n const dist0 = Math.abs(extent2[0] - extent[1]);\n const dist1 = Math.abs(extent[0] - extent2[1]);\n\n // Find longest distance of all axes.\n if (Math.min(dist0, dist1) > maxTv.len()) {\n if (dist0 < dist1) {\n Point.scale(maxTv, axis, -dist0 * inverse);\n }\n else {\n Point.scale(maxTv, axis, dist1 * inverse);\n }\n }\n }\n else if (minTv) {\n const dist0 = Math.abs(extent2[0] - extent[1]);\n const dist1 = Math.abs(extent[0] - extent2[1]);\n\n if (Math.min(dist0, dist1) < minTv.len()) {\n if (dist0 < dist1) {\n Point.scale(minTv, axis, dist0 * inverse);\n }\n else {\n Point.scale(minTv, axis, -dist1 * inverse);\n }\n }\n }\n }\n return overlapped;\n }\n\n private _getProjMinMaxOnAxis(dim: number, corners: Point[], out: number[]) {\n const axis = this._axes[dim];\n const origin = this._origin;\n const proj = corners[0].dot(axis) + origin[dim];\n let min = proj;\n let max = proj;\n\n for (let i = 1; i < corners.length; i++) {\n const proj = corners[i].dot(axis) + origin[dim];\n min = Math.min(proj, min);\n max = Math.max(proj, max);\n }\n\n out[0] = min;\n out[1] = max;\n }\n}\n\nexport default OrientedBoundingRect;", "/**\n * Displayable for incremental rendering. It will be rendered in a separate layer\n * IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables`\n * addDisplayables will render the added displayables incremetally.\n *\n * It use a notClear flag to tell the painter don't clear the layer if it's the first element.\n *\n * It's not available for SVG rendering.\n */\nimport Displayble from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Group from './Group';\n\nconst m: MatrixArray = [];\n// TODO Style override ?\n\nexport default class IncrementalDisplayable extends Displayble {\n\n notClear: boolean = true\n\n incremental = true\n\n private _displayables: Displayble[] = []\n private _temporaryDisplayables: Displayble[] = []\n\n private _cursor = 0\n\n traverse(\n cb: (this: T, el: this) => void,\n context: T\n ) {\n cb.call(context, this);\n }\n\n useStyle() {\n // Use an empty style\n // PENDING\n this.style = {};\n }\n // getCurrentCursor / updateCursorAfterBrush\n // is used in graphic.ts. It's not provided for developers\n getCursor() {\n return this._cursor;\n }\n // Update cursor after brush.\n innerAfterBrush() {\n this._cursor = this._displayables.length;\n }\n\n clearDisplaybles() {\n this._displayables = [];\n this._temporaryDisplayables = [];\n this._cursor = 0;\n this.markRedraw();\n\n this.notClear = false;\n }\n\n clearTemporalDisplayables() {\n this._temporaryDisplayables = [];\n }\n\n addDisplayable(displayable: Displayble, notPersistent?: boolean) {\n if (notPersistent) {\n this._temporaryDisplayables.push(displayable);\n }\n else {\n this._displayables.push(displayable);\n }\n this.markRedraw();\n }\n\n addDisplayables(displayables: Displayble[], notPersistent?: boolean) {\n notPersistent = notPersistent || false;\n for (let i = 0; i < displayables.length; i++) {\n this.addDisplayable(displayables[i], notPersistent);\n }\n }\n\n getDisplayables(): Displayble[] {\n return this._displayables;\n }\n\n getTemporalDisplayables(): Displayble[] {\n return this._temporaryDisplayables;\n }\n\n eachPendingDisplayable(cb: (displayable: Displayble) => void) {\n for (let i = this._cursor; i < this._displayables.length; i++) {\n cb && cb(this._displayables[i]);\n }\n for (let i = 0; i < this._temporaryDisplayables.length; i++) {\n cb && cb(this._temporaryDisplayables[i]);\n }\n }\n\n update() {\n this.updateTransform();\n for (let i = this._cursor; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n // PENDING\n displayable.parent = this as unknown as Group;\n displayable.update();\n displayable.parent = null;\n }\n for (let i = 0; i < this._temporaryDisplayables.length; i++) {\n const displayable = this._temporaryDisplayables[i];\n // PENDING\n displayable.parent = this as unknown as Group;\n displayable.update();\n displayable.parent = null;\n }\n }\n\n getBoundingRect() {\n if (!this._rect) {\n const rect = new BoundingRect(Infinity, Infinity, -Infinity, -Infinity);\n for (let i = 0; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n const childRect = displayable.getBoundingRect().clone();\n if (displayable.needLocalTransform()) {\n childRect.applyTransform(displayable.getLocalTransform(m));\n }\n rect.union(childRect);\n }\n this._rect = rect;\n }\n return this._rect;\n }\n\n contain(x: number, y: number): boolean {\n const localPos = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n\n if (rect.contain(localPos[0], localPos[1])) {\n for (let i = 0; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n if (displayable.contain(x, y)) {\n return true;\n }\n }\n }\n return false;\n }\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Basic transitions in the same series when shapes are the same.\n\nimport {\n AnimationOptionMixin,\n AnimationDelayCallbackParam,\n PayloadAnimationPart,\n AnimationOption\n} from '../util/types';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n isObject,\n retrieve2\n} from 'zrender/src/core/util';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Group from 'zrender/src/graphic/Group';\nimport { makeInner } from '../util/model';\n\n// Stored properties for further transition.\n\nexport const transitionStore = makeInner<{\n oldStyle: Displayable['style']\n}, Displayable>();\n\n\ntype AnimateOrSetPropsOption = {\n dataIndex?: number;\n cb?: () => void;\n during?: (percent: number) => void;\n removeOpt?: AnimationOption\n isFrom?: boolean;\n};\n\n/**\n * Return null if animation is disabled.\n */\nexport function getAnimationConfig(\n animationType: 'init' | 'update' | 'remove',\n animatableModel: Model,\n dataIndex: number,\n // Extra opts can override the option in animatable model.\n extraOpts?: Pick,\n // TODO It's only for pictorial bar now.\n extraDelayParams?: unknown\n): Pick | null {\n let animationPayload: PayloadAnimationPart;\n // Check if there is global animation configuration from dataZoom/resize can override the config in option.\n // If animation is enabled. Will use this animation config in payload.\n // If animation is disabled. Just ignore it.\n if (animatableModel && animatableModel.ecModel) {\n const updatePayload = animatableModel.ecModel.getUpdatePayload();\n animationPayload = (updatePayload && updatePayload.animation) as PayloadAnimationPart;\n }\n const animationEnabled = animatableModel && animatableModel.isAnimationEnabled();\n\n const isUpdate = animationType === 'update';\n\n if (animationEnabled) {\n let duration: number | Function;\n let easing: AnimationEasing;\n let delay: number | Function;\n if (extraOpts) {\n duration = retrieve2(extraOpts.duration, 200);\n easing = retrieve2(extraOpts.easing, 'cubicOut');\n delay = 0;\n }\n else {\n duration = animatableModel.getShallow(\n isUpdate ? 'animationDurationUpdate' : 'animationDuration'\n );\n easing = animatableModel.getShallow(\n isUpdate ? 'animationEasingUpdate' : 'animationEasing'\n );\n delay = animatableModel.getShallow(\n isUpdate ? 'animationDelayUpdate' : 'animationDelay'\n );\n }\n // animation from payload has highest priority.\n if (animationPayload) {\n animationPayload.duration != null && (duration = animationPayload.duration);\n animationPayload.easing != null && (easing = animationPayload.easing);\n animationPayload.delay != null && (delay = animationPayload.delay);\n }\n if (typeof delay === 'function') {\n delay = delay(\n dataIndex as number,\n extraDelayParams\n );\n }\n if (typeof duration === 'function') {\n duration = duration(dataIndex as number);\n }\n const config = {\n duration: duration as number || 0,\n delay: delay as number,\n easing\n };\n\n return config;\n }\n else {\n return null;\n }\n}\n\nfunction animateOrSetProps(\n animationType: 'init' | 'update' | 'remove',\n el: Element,\n props: Props,\n animatableModel?: Model & {\n getAnimationDelayParams?: (el: Element, dataIndex: number) => AnimationDelayCallbackParam\n },\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n let isFrom = false;\n let removeOpt: AnimationOption;\n if (typeof dataIndex === 'function') {\n during = cb;\n cb = dataIndex;\n dataIndex = null;\n }\n else if (isObject(dataIndex)) {\n cb = dataIndex.cb;\n during = dataIndex.during;\n isFrom = dataIndex.isFrom;\n removeOpt = dataIndex.removeOpt;\n dataIndex = dataIndex.dataIndex;\n }\n\n const isRemove = (animationType === 'remove');\n\n if (!isRemove) {\n // Must stop the remove animation.\n el.stopAnimation('remove');\n }\n\n const animationConfig = getAnimationConfig(\n animationType,\n animatableModel,\n dataIndex as number,\n isRemove ? (removeOpt || {}) : null,\n (animatableModel && animatableModel.getAnimationDelayParams)\n ? animatableModel.getAnimationDelayParams(el, dataIndex as number)\n : null\n );\n if (animationConfig && animationConfig.duration > 0) {\n const duration = animationConfig.duration;\n const animationDelay = animationConfig.delay;\n const animationEasing = animationConfig.easing;\n\n const animateConfig: ElementAnimateConfig = {\n duration: duration as number,\n delay: animationDelay as number || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n // Set to final state in update/init animation.\n // So the post processing based on the path shape can be done correctly.\n setToFinal: !isRemove,\n scope: animationType,\n during: during\n };\n\n isFrom\n ? el.animateFrom(props, animateConfig)\n : el.animateTo(props, animateConfig);\n }\n else {\n el.stopAnimation();\n // If `isFrom`, the props is the \"from\" props.\n !isFrom && el.attr(props);\n // Call during at least once.\n during && during(1);\n cb && (cb as AnimateOrSetPropsOption['cb'])();\n }\n}\n\n\n\n/**\n * Update graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n * @example\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, dataIndex, function () { console.log('Animation done!'); });\n * // Or\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, function () { console.log('Animation done!'); });\n */\n function updateProps(\n el: Element,\n props: Props,\n // TODO: TYPE AnimatableModel\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);\n}\n\nexport {updateProps};\n\n/**\n * Init graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n */\nexport function initProps(\n el: Element,\n props: Props,\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n animateOrSetProps('init', el, props, animatableModel, dataIndex, cb, during);\n}\n\n/**\n * If element is removed.\n * It can determine if element is having remove animation.\n */\n export function isElementRemoved(el: Element) {\n if (!el.__zr) {\n return true;\n }\n for (let i = 0; i < el.animators.length; i++) {\n const animator = el.animators[i];\n if (animator.scope === 'remove') {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Remove graphic element\n */\nexport function removeElement(\n el: Element,\n props: Props,\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n // Don't do remove animation twice.\n if (isElementRemoved(el)) {\n return;\n }\n\n animateOrSetProps('remove', el, props, animatableModel, dataIndex, cb, during);\n}\n\nfunction fadeOutDisplayable(\n el: Displayable,\n animatableModel?: Model,\n dataIndex?: number,\n done?: AnimateOrSetPropsOption['cb']\n) {\n el.removeTextContent();\n el.removeTextGuideLine();\n removeElement(el, {\n style: {\n opacity: 0\n }\n }, animatableModel, dataIndex, done);\n}\n\nexport function removeElementWithFadeOut(\n el: Element,\n animatableModel?: Model,\n dataIndex?: number\n) {\n function doRemove() {\n el.parent && el.parent.remove(el);\n }\n // Hide label and labelLine first\n // TODO Also use fade out animation?\n if (!el.isGroup) {\n fadeOutDisplayable(el as Displayable, animatableModel, dataIndex, doRemove);\n }\n else {\n (el as Group).traverse(function (disp: Displayable) {\n if (!disp.isGroup) {\n // Can invoke doRemove multiple times.\n fadeOutDisplayable(disp as Displayable, animatableModel, dataIndex, doRemove);\n }\n });\n }\n}\n\n/**\n * Save old style for style transition in universalTransition module.\n * It's used when element will be reused in each render.\n * For chart like map, heatmap, which will always create new element.\n * We don't need to save this because universalTransition can get old style from the old element\n */\nexport function saveOldStyle(el: Displayable) {\n transitionStore(el).oldStyle = el.style;\n}\n\nexport function getOldStyle(el: Displayable) {\n return transitionStore(el).oldStyle;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { Dictionary } from 'zrender/src/core/types';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n LabelOption,\n DisplayState,\n TextCommonOption,\n StatesOptionMixin,\n DisplayStateNonNormal,\n ColorString,\n ZRStyleProps,\n AnimationOptionMixin,\n InterpolatableValue,\n SeriesDataType\n} from '../util/types';\nimport GlobalModel from '../model/Global';\nimport { isFunction, retrieve2, extend, keys, trim } from 'zrender/src/core/util';\nimport { SPECIAL_STATES, DISPLAY_STATES } from '../util/states';\nimport { deprecateReplaceLog } from '../util/log';\nimport { makeInner, interpolateRawValues } from '../util/model';\nimport SeriesData from '../data/SeriesData';\nimport { initProps, updateProps } from '../util/graphic';\nimport { getECData } from '../util/innerStore';\n\ntype TextCommonParams = {\n /**\n * Whether disable drawing box of block (outer most).\n */\n disableBox?: boolean\n /**\n * Specify a color when color is 'inherit',\n * If inheritColor specified, it is used as default textFill.\n */\n inheritColor?: ColorString\n\n /**\n * Specify a opacity when opacity is not given.\n */\n defaultOpacity?: number\n\n defaultOutsidePosition?: LabelOption['position']\n\n /**\n * If support legacy 'auto' for 'inherit' usage.\n */\n // supportLegacyAuto?: boolean\n\n textStyle?: ZRStyleProps\n};\nconst EMPTY_OBJ = {};\n\ninterface SetLabelStyleOpt extends TextCommonParams {\n defaultText?: string | ((\n labelDataIndex: TLabelDataIndex,\n opt: SetLabelStyleOpt,\n interpolatedValue?: InterpolatableValue\n ) => string);\n // Fetch text by:\n // opt.labelFetcher.getFormattedLabel(\n // opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex, opt.labelProp\n // )\n labelFetcher?: {\n getFormattedLabel: (\n // In MapDraw case it can be string (region name)\n labelDataIndex: TLabelDataIndex,\n status: DisplayState,\n dataType?: string,\n labelDimIndex?: number,\n formatter?: string | ((params: object) => string),\n // If provided, the implementation of `getFormattedLabel` can use it\n // to generate the final label text.\n extendParams?: {\n interpolatedValue: InterpolatableValue\n }\n ) => string;\n };\n labelDataIndex?: TLabelDataIndex;\n labelDimIndex?: number;\n\n /**\n * Inject a setter of text for the text animation case.\n */\n enableTextSetter?: boolean\n}\ntype LabelModel = Model string);\n showDuringLabel?: boolean // Currently only supported by line charts\n}>;\ntype LabelModelForText = Model & {\n formatter?: string | ((params: any) => string);\n }>;\n\ntype LabelStatesModels = Partial> & {normal: LabelModel};\n\nexport function setLabelText(label: ZRText, labelTexts: Record) {\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const text = labelTexts[stateName];\n const state = label.ensureState(stateName);\n state.style = state.style || {};\n state.style.text = text;\n }\n\n const oldStates = label.currentStates.slice();\n label.clearStates(true);\n label.setStyle({ text: labelTexts.normal });\n label.useStates(oldStates, true);\n}\n\nfunction getLabelText(\n opt: SetLabelStyleOpt,\n stateModels: LabelStatesModels,\n interpolatedValue?: InterpolatableValue\n): Record {\n const labelFetcher = opt.labelFetcher;\n const labelDataIndex = opt.labelDataIndex;\n const labelDimIndex = opt.labelDimIndex;\n const normalModel = stateModels.normal;\n let baseText;\n if (labelFetcher) {\n baseText = labelFetcher.getFormattedLabel(\n labelDataIndex, 'normal',\n null,\n labelDimIndex,\n normalModel && normalModel.get('formatter'),\n interpolatedValue != null ? {\n interpolatedValue: interpolatedValue\n } : null\n );\n }\n if (baseText == null) {\n baseText = isFunction(opt.defaultText)\n ? opt.defaultText(labelDataIndex, opt, interpolatedValue)\n : opt.defaultText;\n }\n\n const statesText = {\n normal: baseText\n } as Record;\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const stateModel = stateModels[stateName];\n statesText[stateName] = retrieve2(labelFetcher\n ? labelFetcher.getFormattedLabel(\n labelDataIndex,\n stateName,\n null,\n labelDimIndex,\n stateModel && stateModel.get('formatter')\n )\n : null, baseText);\n }\n return statesText;\n}\n/**\n * Set normal styles and emphasis styles about text on target element\n * If target is a ZRText. It will create a new style object.\n * If target is other Element. It will create or reuse ZRText which is attached on the target.\n * And create a new style object.\n *\n * NOTICE: Because the style on ZRText will be replaced with new(only x, y are keeped).\n * So please update the style on ZRText after use this method.\n */\n// eslint-disable-next-line\nfunction setLabelStyle(\n targetEl: ZRText,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n): void;\n// eslint-disable-next-line\nfunction setLabelStyle(\n targetEl: Element,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n): void;\nfunction setLabelStyle(\n targetEl: Element,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n // TODO specified position?\n) {\n opt = opt || EMPTY_OBJ;\n const isSetOnText = targetEl instanceof ZRText;\n let needsCreateText = false;\n for (let i = 0; i < DISPLAY_STATES.length; i++) {\n const stateModel = labelStatesModels[DISPLAY_STATES[i]];\n if (stateModel && stateModel.getShallow('show')) {\n needsCreateText = true;\n break;\n }\n }\n let textContent = isSetOnText ? targetEl as ZRText : targetEl.getTextContent();\n if (needsCreateText) {\n if (!isSetOnText) {\n // Reuse the previous\n if (!textContent) {\n textContent = new ZRText();\n targetEl.setTextContent(textContent);\n }\n // Use same state proxy\n if (targetEl.stateProxy) {\n textContent.stateProxy = targetEl.stateProxy;\n }\n }\n const labelStatesTexts = getLabelText(opt, labelStatesModels);\n\n const normalModel = labelStatesModels.normal;\n const showNormal = !!normalModel.getShallow('show');\n const normalStyle = createTextStyle(\n normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText\n );\n normalStyle.text = labelStatesTexts.normal;\n if (!isSetOnText) {\n // Always create new\n targetEl.setTextConfig(createTextConfig(normalModel, opt, false));\n }\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const stateModel = labelStatesModels[stateName];\n\n if (stateModel) {\n const stateObj = textContent.ensureState(stateName);\n const stateShow = !!retrieve2(stateModel.getShallow('show'), showNormal);\n if (stateShow !== showNormal) {\n stateObj.ignore = !stateShow;\n }\n stateObj.style = createTextStyle(\n stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText\n );\n stateObj.style.text = labelStatesTexts[stateName];\n\n if (!isSetOnText) {\n const targetElEmphasisState = targetEl.ensureState(stateName);\n targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true);\n }\n }\n }\n\n // PENDING: if there is many requirements that emphasis position\n // need to be different from normal position, we might consider\n // auto slient is those cases.\n textContent.silent = !!normalModel.getShallow('silent');\n // Keep x and y\n if (textContent.style.x != null) {\n normalStyle.x = textContent.style.x;\n }\n if (textContent.style.y != null) {\n normalStyle.y = textContent.style.y;\n }\n textContent.ignore = !showNormal;\n // Always create new style.\n textContent.useStyle(normalStyle);\n textContent.dirty();\n\n if (opt.enableTextSetter) {\n labelInner(textContent).setLabelText = function (interpolatedValue: InterpolatableValue) {\n const labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue);\n setLabelText(textContent, labelStatesTexts);\n };\n }\n }\n else if (textContent) {\n // Not display rich text.\n textContent.ignore = true;\n }\n targetEl.dirty();\n}\nexport { setLabelStyle };\n\nexport function getLabelStatesModels(\n itemModel: Model & Partial>>,\n labelName?: LabelName\n): Record {\n labelName = (labelName || 'label') as LabelName;\n const statesModels = {\n normal: itemModel.getModel(labelName) as LabelModel\n } as Record;\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelName]);\n }\n return statesModels;\n}\n/**\n * Set basic textStyle properties.\n */\nexport function createTextStyle(\n textStyleModel: Model,\n specifiedTextStyle?: TextStyleProps, // Fixed style in the code. Can't be set by model.\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.\n) {\n const textStyle: TextStyleProps = {};\n setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n specifiedTextStyle && extend(textStyle, specifiedTextStyle);\n // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n return textStyle;\n}\nexport function createTextConfig(\n textStyleModel: Model,\n opt?: Pick,\n isNotNormal?: boolean\n) {\n opt = opt || {};\n const textConfig: ElementTextConfig = {};\n let labelPosition;\n let labelRotate = textStyleModel.getShallow('rotate');\n const labelDistance = retrieve2(textStyleModel.getShallow('distance'), isNotNormal ? null : 5);\n const labelOffset = textStyleModel.getShallow('offset');\n labelPosition = textStyleModel.getShallow('position')\n || (isNotNormal ? null : 'inside');\n // 'outside' is not a valid zr textPostion value, but used\n // in bar series, and magric type should be considered.\n labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top');\n if (labelPosition != null) {\n textConfig.position = labelPosition;\n }\n if (labelOffset != null) {\n textConfig.offset = labelOffset;\n }\n if (labelRotate != null) {\n labelRotate *= Math.PI / 180;\n textConfig.rotation = labelRotate;\n }\n if (labelDistance != null) {\n textConfig.distance = labelDistance;\n }\n // fill and auto is determined by the color of path fill if it's not specified by developers.\n textConfig.outsideFill = textStyleModel.get('color') === 'inherit'\n ? (opt.inheritColor || null)\n : 'auto';\n return textConfig;\n}\n/**\n * The uniform entry of set text style, that is, retrieve style definitions\n * from `model` and set to `textStyle` object.\n *\n * Never in merge mode, but in overwrite mode, that is, all of the text style\n * properties will be set. (Consider the states of normal and emphasis and\n * default value can be adopted, merge would make the logic too complicated\n * to manage.)\n */\nfunction setTextStyleCommon(\n textStyle: TextStyleProps,\n textStyleModel: Model,\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean\n) {\n // Consider there will be abnormal when merge hover style to normal style if given default value.\n opt = opt || EMPTY_OBJ;\n const ecModel = textStyleModel.ecModel;\n const globalTextStyle = ecModel && ecModel.option.textStyle;\n // Consider case:\n // {\n // data: [{\n // value: 12,\n // label: {\n // rich: {\n // // no 'a' here but using parent 'a'.\n // }\n // }\n // }],\n // rich: {\n // a: { ... }\n // }\n // }\n const richItemNames = getRichItemNames(textStyleModel);\n let richResult: TextStyleProps['rich'];\n if (richItemNames) {\n richResult = {};\n for (const name in richItemNames) {\n if (richItemNames.hasOwnProperty(name)) {\n // Cascade is supported in rich.\n const richTextStyle = textStyleModel.getModel(['rich', name]);\n // In rich, never `disableBox`.\n // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n // the default color `'blue'` will not be adopted if no color declared in `rich`.\n // That might confuses users. So probably we should put `textStyleModel` as the\n // root ancestor of the `richTextStyle`. But that would be a break change.\n setTokenTextStyle(\n richResult[name] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true\n );\n }\n }\n }\n if (richResult) {\n textStyle.rich = richResult;\n }\n const overflow = textStyleModel.get('overflow');\n if (overflow) {\n textStyle.overflow = overflow;\n }\n const margin = textStyleModel.get('minMargin');\n if (margin != null) {\n textStyle.margin = margin;\n }\n setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n}\n// Consider case:\n// {\n// data: [{\n// value: 12,\n// label: {\n// rich: {\n// // no 'a' here but using parent 'a'.\n// }\n// }\n// }],\n// rich: {\n// a: { ... }\n// }\n// }\n// TODO TextStyleModel\nfunction getRichItemNames(textStyleModel: Model) {\n // Use object to remove duplicated names.\n let richItemNameMap: Dictionary;\n while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {\n const rich = (textStyleModel.option || EMPTY_OBJ as LabelOption).rich;\n if (rich) {\n richItemNameMap = richItemNameMap || {};\n const richKeys = keys(rich);\n for (let i = 0; i < richKeys.length; i++) {\n const richKey = richKeys[i];\n richItemNameMap[richKey] = 1;\n }\n }\n textStyleModel = textStyleModel.parentModel;\n }\n return richItemNameMap;\n}\nconst TEXT_PROPS_WITH_GLOBAL = [\n 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'\n] as const;\nconst TEXT_PROPS_SELF = [\n 'align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign'\n] as const;\nconst TEXT_PROPS_BOX = [\n 'padding', 'borderWidth', 'borderRadius', 'borderDashOffset',\n 'backgroundColor', 'borderColor',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'\n] as const;\n\nfunction setTokenTextStyle(\n textStyle: TextStyleProps['rich'][string],\n textStyleModel: Model,\n globalTextStyle: LabelOption,\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean,\n isBlock?: boolean,\n inRich?: boolean\n) {\n // In merge mode, default value should not be given.\n globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ;\n const inheritColor = opt && opt.inheritColor;\n let fillColor = textStyleModel.getShallow('color');\n let strokeColor = textStyleModel.getShallow('textBorderColor');\n let opacity = retrieve2(textStyleModel.getShallow('opacity'), globalTextStyle.opacity);\n if (fillColor === 'inherit' || fillColor === 'auto') {\n if (__DEV__) {\n if (fillColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n if (inheritColor) {\n fillColor = inheritColor;\n }\n else {\n fillColor = null;\n }\n }\n if (strokeColor === 'inherit' || (strokeColor === 'auto')) {\n if (__DEV__) {\n if (strokeColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n if (inheritColor) {\n strokeColor = inheritColor;\n }\n else {\n strokeColor = null;\n }\n }\n if (!isAttached) {\n // Only use default global textStyle.color if text is individual.\n // Otherwise it will use the strategy of attached text color because text may be on a path.\n fillColor = fillColor || globalTextStyle.color;\n strokeColor = strokeColor || globalTextStyle.textBorderColor;\n }\n if (fillColor != null) {\n textStyle.fill = fillColor;\n }\n if (strokeColor != null) {\n textStyle.stroke = strokeColor;\n }\n const textBorderWidth = retrieve2(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth);\n if (textBorderWidth != null) {\n textStyle.lineWidth = textBorderWidth;\n }\n const textBorderType = retrieve2(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType);\n if (textBorderType != null) {\n textStyle.lineDash = textBorderType as any;\n }\n const textBorderDashOffset = retrieve2(\n textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset\n );\n if (textBorderDashOffset != null) {\n textStyle.lineDashOffset = textBorderDashOffset;\n }\n\n if (!isNotNormal && (opacity == null) && !inRich) {\n opacity = opt && opt.defaultOpacity;\n }\n if (opacity != null) {\n textStyle.opacity = opacity;\n }\n\n // TODO\n if (!isNotNormal && !isAttached) {\n // Set default finally.\n if (textStyle.fill == null && opt.inheritColor) {\n textStyle.fill = opt.inheritColor;\n }\n }\n // Do not use `getFont` here, because merge should be supported, where\n // part of these properties may be changed in emphasis style, and the\n // others should remain their original value got from normal style.\n for (let i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) {\n const key = TEXT_PROPS_WITH_GLOBAL[i];\n const val = retrieve2(textStyleModel.getShallow(key), globalTextStyle[key]);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n for (let i = 0; i < TEXT_PROPS_SELF.length; i++) {\n const key = TEXT_PROPS_SELF[i];\n const val = textStyleModel.getShallow(key);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n if (textStyle.verticalAlign == null) {\n const baseline = textStyleModel.getShallow('baseline');\n if (baseline != null) {\n textStyle.verticalAlign = baseline;\n }\n }\n if (!isBlock || !opt.disableBox) {\n for (let i = 0; i < TEXT_PROPS_BOX.length; i++) {\n const key = TEXT_PROPS_BOX[i];\n const val = textStyleModel.getShallow(key);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n\n const borderType = textStyleModel.getShallow('borderType');\n if (borderType != null) {\n textStyle.borderDash = borderType as any;\n }\n\n if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) {\n if (__DEV__) {\n if (textStyle.backgroundColor === 'auto') {\n deprecateReplaceLog('backgroundColor: \\'auto\\'', 'backgroundColor: \\'inherit\\'');\n }\n }\n textStyle.backgroundColor = inheritColor;\n }\n if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) {\n if (__DEV__) {\n if (textStyle.borderColor === 'auto') {\n deprecateReplaceLog('borderColor: \\'auto\\'', 'borderColor: \\'inherit\\'');\n }\n }\n textStyle.borderColor = inheritColor;\n }\n }\n}\n\nexport function getFont(\n opt: Pick,\n ecModel: GlobalModel\n) {\n const gTextStyleModel = ecModel && ecModel.getModel('textStyle');\n return trim([\n // FIXME in node-canvas fontWeight is before fontStyle\n opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '',\n opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '',\n (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px',\n opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'\n ].join(' '));\n}\n\nexport const labelInner = makeInner<{\n /**\n * Previous target value stored used for label.\n * It's mainly for text animation\n */\n prevValue?: InterpolatableValue\n /**\n * Target value stored used for label.\n */\n value?: InterpolatableValue\n /**\n * Current value in text animation.\n */\n interpolatedValue?: InterpolatableValue\n /**\n * If enable value animation\n */\n valueAnimation?: boolean\n /**\n * Label value precision during animation.\n */\n precision?: number | 'auto'\n\n /**\n * If enable value animation\n */\n statesModels?: LabelStatesModels\n /**\n * Default text getter during interpolation\n */\n defaultInterpolatedText?: (value: InterpolatableValue) => string\n /**\n * Change label text from interpolated text during animation\n */\n setLabelText?: (interpolatedValue?: InterpolatableValue) => void\n\n}, ZRText>();\n\nexport function setLabelValueAnimation(\n label: ZRText,\n labelStatesModels: LabelStatesModels,\n value: InterpolatableValue,\n getDefaultText: (value: InterpolatableValue) => string\n) {\n if (!label) {\n return;\n }\n\n const obj = labelInner(label);\n obj.prevValue = obj.value;\n obj.value = value;\n const normalLabelModel = labelStatesModels.normal;\n\n obj.valueAnimation = normalLabelModel.get('valueAnimation');\n\n if (obj.valueAnimation) {\n obj.precision = normalLabelModel.get('precision');\n obj.defaultInterpolatedText = getDefaultText;\n obj.statesModels = labelStatesModels;\n }\n}\n\nexport function animateLabelValue(\n textEl: ZRText,\n dataIndex: number,\n data: SeriesData,\n animatableModel: Model,\n labelFetcher: SetLabelStyleOpt['labelFetcher']\n) {\n const labelInnerStore = labelInner(textEl);\n if (!labelInnerStore.valueAnimation) {\n return;\n }\n const defaultInterpolatedText = labelInnerStore.defaultInterpolatedText;\n // Consider the case that being animating, do not use the `obj.value`,\n // Otherwise it will jump to the `obj.value` when this new animation started.\n const currValue = retrieve2(labelInnerStore.interpolatedValue, labelInnerStore.prevValue);\n const targetValue = labelInnerStore.value;\n\n function during(percent: number) {\n const interpolated = interpolateRawValues(\n data,\n labelInnerStore.precision,\n currValue,\n targetValue,\n percent\n );\n\n labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated;\n\n const labelText = getLabelText({\n labelDataIndex: dataIndex,\n labelFetcher: labelFetcher,\n defaultText: defaultInterpolatedText\n ? defaultInterpolatedText(interpolated)\n : interpolated + ''\n }, labelInnerStore.statesModels, interpolated);\n\n setLabelText(textEl, labelText);\n }\n\n (labelInnerStore.prevValue == null\n ? initProps\n : updateProps\n )(textEl, {}, animatableModel, dataIndex, null, during);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphicUtil from '../../util/graphic';\nimport {getFont} from '../../label/labelStyle';\nimport Model from '../Model';\nimport { LabelOption, ColorString } from '../../util/types';\nimport ZRText from 'zrender/src/graphic/Text';\n\nconst PATH_COLOR = ['textStyle', 'color'] as const;\n\nexport type LabelFontOption = Pick;\ntype LabelRectRelatedOption = Pick & LabelFontOption;\n\n// TODO Performance improvement?\nconst tmpRichText = new ZRText();\nclass TextStyleMixin {\n /**\n * Get color property or get color from option.textStyle.color\n */\n // TODO Callback\n getTextColor(this: Model, isEmphasis?: boolean): ColorString {\n const ecModel = this.ecModel;\n return this.getShallow('color')\n || (\n (!isEmphasis && ecModel) ? ecModel.get(PATH_COLOR) : null\n );\n }\n\n /**\n * Create font string from fontStyle, fontWeight, fontSize, fontFamily\n * @return {string}\n */\n getFont(this: Model) {\n return getFont({\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily')\n }, this.ecModel);\n }\n\n getTextRect(this: Model & TextStyleMixin, text: string): graphicUtil.BoundingRect {\n tmpRichText.useStyle({\n text,\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily'),\n verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline'),\n padding: this.getShallow('padding') as number[],\n lineHeight: this.getShallow('lineHeight'),\n rich: this.getShallow('rich')\n });\n tmpRichText.update();\n return tmpRichText.getBoundingRect();\n }\n};\n\nexport default TextStyleMixin;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { LineStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const LINE_STYLE_KEY_MAP = [\n ['lineWidth', 'width'],\n ['stroke', 'color'],\n ['opacity'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor'],\n ['lineDash', 'type'],\n ['lineDashOffset', 'dashOffset'],\n ['lineCap', 'cap'],\n ['lineJoin', 'join'],\n ['miterLimit']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\n\nconst getLineStyle = makeStyleMapper(LINE_STYLE_KEY_MAP);\n\ntype LineStyleKeys = 'lineWidth'\n | 'stroke'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor'\n | 'lineDash'\n | 'lineDashOffset'\n | 'lineCap'\n | 'lineJoin'\n | 'miterLimit';\n\nexport type LineStyleProps = Pick;\n\nclass LineStyleMixin {\n\n getLineStyle(\n this: Model,\n excludes?: readonly (keyof LineStyleOption)[]\n ): LineStyleProps {\n return getLineStyle(this, excludes);\n }\n\n};\n\nexport {LineStyleMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { ItemStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const ITEM_STYLE_KEY_MAP = [\n ['fill', 'color'],\n ['stroke', 'borderColor'],\n ['lineWidth', 'borderWidth'],\n ['opacity'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor'],\n ['lineDash', 'borderType'],\n ['lineDashOffset', 'borderDashOffset'],\n ['lineCap', 'borderCap'],\n ['lineJoin', 'borderJoin'],\n ['miterLimit', 'borderMiterLimit']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\n\nconst getItemStyle = makeStyleMapper(ITEM_STYLE_KEY_MAP);\n\ntype ItemStyleKeys = 'fill'\n | 'stroke'\n | 'decal'\n | 'lineWidth'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor'\n | 'lineDash'\n | 'lineDashOffset'\n | 'lineCap'\n | 'lineJoin'\n | 'miterLimit';\n\nexport type ItemStyleProps = Pick;\n\nclass ItemStyleMixin {\n\n getItemStyle(\n this: Model,\n excludes?: readonly (keyof ItemStyleOption)[],\n includes?: readonly (keyof ItemStyleOption)[]\n ): ItemStyleProps {\n return getItemStyle(this, excludes, includes);\n }\n\n}\n\nexport {ItemStyleMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport env from 'zrender/src/core/env';\nimport {\n enableClassExtend,\n ExtendableConstructor,\n enableClassCheck,\n CheckableConstructor\n} from '../util/clazz';\n\nimport {AreaStyleMixin} from './mixin/areaStyle';\nimport TextStyleMixin from './mixin/textStyle';\nimport {LineStyleMixin} from './mixin/lineStyle';\nimport {ItemStyleMixin} from './mixin/itemStyle';\nimport GlobalModel from './Global';\nimport { AnimationOptionMixin, ModelOption } from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { mixin, clone, merge } from 'zrender/src/core/util';\n\n// Since model.option can be not only `Dictionary` but also primary types,\n// we do this conditional type to avoid getting type 'never';\ntype Key = Opt extends Dictionary\n ? keyof Opt : string;\ntype Value = Opt extends Dictionary\n ? (R extends keyof Opt ? Opt[R] : ModelOption)\n : ModelOption;\n\ninterface Model\n extends LineStyleMixin, ItemStyleMixin, TextStyleMixin, AreaStyleMixin {}\nclass Model { // TODO: TYPE use unkown insteadof any?\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n parentModel: Model;\n\n ecModel: GlobalModel;\n\n option: Opt; // TODO Opt should only be object.\n\n constructor(option?: Opt, parentModel?: Model, ecModel?: GlobalModel) {\n this.parentModel = parentModel;\n this.ecModel = ecModel;\n this.option = option;\n\n // Simple optimization\n // if (this.init) {\n // if (arguments.length <= 4) {\n // this.init(option, parentModel, ecModel, extraOpt);\n // }\n // else {\n // this.init.apply(this, arguments);\n // }\n // }\n }\n\n init(option: Opt, parentModel?: Model, ecModel?: GlobalModel, ...rest: any): void {}\n\n /**\n * Merge the input option to me.\n */\n mergeOption(option: Opt, ecModel?: GlobalModel): void {\n merge(this.option, option, true);\n }\n\n // FIXME:TS consider there is parentModel,\n // return type have to be ModelOption or can be Option?\n // (Is there any chance that parentModel value type is different?)\n get(\n path: R, ignoreParent?: boolean\n ): Opt[R];\n get(\n path: readonly [R], ignoreParent?: boolean\n ): Opt[R];\n get(\n path: readonly [R, S], ignoreParent?: boolean\n ): Opt[R][S];\n get(\n path: readonly [R, S, T], ignoreParent?: boolean\n ): Opt[R][S][T];\n // `path` can be 'xxx.yyy.zzz', so the return value type have to be `ModelOption`\n // TODO: TYPE strict key check?\n // get(path: string | string[], ignoreParent?: boolean): ModelOption;\n get(path: string | readonly string[], ignoreParent?: boolean): ModelOption {\n if (path == null) {\n return this.option;\n }\n\n return this._doGet(\n this.parsePath(path),\n !ignoreParent && this.parentModel\n );\n }\n\n getShallow(\n key: R, ignoreParent?: boolean\n ): Opt[R] {\n const option = this.option;\n\n let val = option == null ? option : option[key];\n if (val == null && !ignoreParent) {\n const parentModel = this.parentModel;\n if (parentModel) {\n // FIXME:TS do not know how to make it works\n val = parentModel.getShallow(key);\n }\n }\n return val as Opt[R];\n }\n\n // TODO At most 3 depth?\n getModel(\n path: R, parentModel?: Model\n ): Model;\n getModel(\n path: readonly [R], parentModel?: Model\n ): Model;\n getModel(\n path: readonly [R, S], parentModel?: Model\n ): Model;\n getModel(\n path: readonly [Ra] | readonly [Rb, S], parentModel?: Model\n ): Model | Model;\n getModel(\n path: readonly [R, S, T], parentModel?: Model\n ): Model;\n // `path` can be 'xxx.yyy.zzz', so the return value type have to be `Model`\n // getModel(path: string | string[], parentModel?: Model): Model;\n // TODO 'xxx.yyy.zzz' is deprecated\n getModel(path: string | readonly string[], parentModel?: Model): Model {\n const hasPath = path != null;\n const pathFinal = hasPath ? this.parsePath(path) : null;\n const obj = hasPath\n ? this._doGet(pathFinal)\n : this.option;\n\n parentModel = parentModel || (\n this.parentModel\n && this.parentModel.getModel(this.resolveParentPath(pathFinal) as [string])\n );\n\n return new Model(obj, parentModel, this.ecModel);\n }\n\n /**\n * Squash option stack into one.\n * parentModel will be removed after squashed.\n *\n * NOTE: resolveParentPath will not be applied here for simplicity. DON'T use this function\n * if resolveParentPath is modified.\n *\n * @param deepMerge If do deep merge. Default to be false.\n */\n // squash(\n // deepMerge?: boolean,\n // handleCallback?: (func: () => object) => object\n // ) {\n // const optionStack = [];\n // let model: Model = this;\n // while (model) {\n // if (model.option) {\n // optionStack.push(model.option);\n // }\n // model = model.parentModel;\n // }\n\n // const newOption = {} as Opt;\n // let option;\n // while (option = optionStack.pop()) { // Top down merge\n // if (isFunction(option) && handleCallback) {\n // option = handleCallback(option);\n // }\n // if (deepMerge) {\n // merge(newOption, option);\n // }\n // else {\n // extend(newOption, option);\n // }\n // }\n\n // // Remove parentModel\n // this.option = newOption;\n // this.parentModel = null;\n // }\n\n /**\n * If model has option\n */\n isEmpty(): boolean {\n return this.option == null;\n }\n\n restoreData(): void {}\n\n // Pending\n clone(): Model {\n const Ctor = this.constructor;\n return new (Ctor as any)(clone(this.option));\n }\n\n // setReadOnly(properties): void {\n // clazzUtil.setReadOnly(this, properties);\n // }\n\n // If path is null/undefined, return null/undefined.\n parsePath(path: string | readonly string[]): readonly string[] {\n if (typeof path === 'string') {\n return path.split('.');\n }\n return path;\n }\n\n // Resolve path for parent. Perhaps useful when parent use a different property.\n // Default to be a identity resolver.\n // Can be modified to a different resolver.\n resolveParentPath(path: readonly string[]): string[] {\n return path as string[];\n }\n\n // FIXME:TS check whether put this method here\n isAnimationEnabled(): boolean {\n if (!env.node && this.option) {\n if ((this.option as AnimationOptionMixin).animation != null) {\n return !!(this.option as AnimationOptionMixin).animation;\n }\n else if (this.parentModel) {\n return this.parentModel.isAnimationEnabled();\n }\n }\n }\n\n private _doGet(pathArr: readonly string[], parentModel?: Model>) {\n let obj = this.option;\n if (!pathArr) {\n return obj;\n }\n\n for (let i = 0; i < pathArr.length; i++) {\n // Ignore empty\n if (!pathArr[i]) {\n continue;\n }\n // obj could be number/string/... (like 0)\n obj = (obj && typeof obj === 'object')\n ? (obj as ModelOption)[pathArr[i] as keyof ModelOption] : null;\n if (obj == null) {\n break;\n }\n }\n if (obj == null && parentModel) {\n obj = parentModel._doGet(\n this.resolveParentPath(pathArr) as [string],\n parentModel.parentModel\n ) as any;\n }\n\n return obj;\n }\n};\n\ntype ModelConstructor = typeof Model\n & ExtendableConstructor\n & CheckableConstructor;\n\n// Enable Model.extend.\nenableClassExtend(Model as ModelConstructor);\nenableClassCheck(Model as ModelConstructor);\n\n\nmixin(Model, LineStyleMixin);\nmixin(Model, ItemStyleMixin);\nmixin(Model, AreaStyleMixin);\nmixin(Model, TextStyleMixin);\n\nexport default Model;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parseClassType, ClassManager} from './clazz';\nimport { ComponentOption, ComponentMainType, ComponentSubType, ComponentFullType } from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { makePrintable } from './log';\n\n// A random offset\nlet base = Math.round(Math.random() * 10);\n\n\n/**\n * @public\n * @param {string} type\n * @return {string}\n */\nexport function getUID(type: string): string {\n // Considering the case of crossing js context,\n // use Math.random to make id as unique as possible.\n return [(type || ''), base++].join('_');\n}\n\nexport interface SubTypeDefaulter {\n // return subType.\n (option: ComponentOption): ComponentSubType;\n}\n\nexport interface SubTypeDefaulterManager {\n registerSubTypeDefaulter: (componentType: string, defaulter: SubTypeDefaulter) => void;\n determineSubType: (componentType: string, option: ComponentOption) => string;\n}\n\n/**\n * Implements `SubTypeDefaulterManager` for `target`.\n */\nexport function enableSubTypeDefaulter(target: SubTypeDefaulterManager & ClassManager): void {\n const subTypeDefaulters: Dictionary = {};\n\n target.registerSubTypeDefaulter = function (\n componentType: ComponentFullType,\n defaulter: SubTypeDefaulter\n ): void {\n const componentTypeInfo = parseClassType(componentType);\n subTypeDefaulters[componentTypeInfo.main] = defaulter;\n };\n\n target.determineSubType = function (\n componentType: ComponentFullType,\n option: ComponentOption\n ): string {\n let type = option.type;\n if (!type) {\n const componentTypeMain = parseClassType(componentType).main;\n if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {\n type = subTypeDefaulters[componentTypeMain](option);\n }\n }\n return type;\n };\n}\n\nexport interface TopologicalTravelable {\n topologicalTravel: (\n targetNameList: ComponentMainType[],\n fullNameList: ComponentMainType[],\n callback: (this: T, mainType: string, dependencies: string[]) => void,\n context?: T\n ) => void;\n}\n\n\n// ComponentMainType can be 'bb' or 'aa.xx'.\ntype DepGraphItem = {\n predecessor: ComponentMainType[],\n successor: ComponentMainType[],\n originalDeps: ComponentMainType[],\n entryCount: number\n};\ntype DepGraph = {[cmptMainType: string]: DepGraphItem};\n\n/**\n * Implements `TopologicalTravelable` for `entity`.\n *\n * Topological travel on Activity Network (Activity On Vertices).\n * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].\n * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.\n * If there is circular dependencey, Error will be thrown.\n */\nexport function enableTopologicalTravel(\n entity: TopologicalTravelable,\n dependencyGetter: (name: ComponentMainType) => ComponentMainType[]\n): void {\n\n /**\n * @param targetNameList Target Component type list.\n * Can be ['aa', 'bb', 'aa.xx']\n * @param fullNameList By which we can build dependency graph.\n * @param callback Params: componentType, dependencies.\n * @param context Scope of callback.\n */\n entity.topologicalTravel = function (\n targetNameList: ComponentMainType[],\n fullNameList: ComponentMainType[],\n callback: (this: Ctx, mainType: ComponentMainType, dependencies: ComponentMainType[]) => void,\n context?: Ctx\n ) {\n if (!targetNameList.length) {\n return;\n }\n\n const result = makeDepndencyGraph(fullNameList);\n const graph = result.graph;\n const noEntryList = result.noEntryList;\n\n const targetNameSet: {[cmtpMainType: string]: boolean} = {};\n zrUtil.each(targetNameList, function (name) {\n targetNameSet[name] = true;\n });\n\n while (noEntryList.length) {\n const currComponentType = noEntryList.pop();\n const currVertex = graph[currComponentType];\n const isInTargetNameSet = !!targetNameSet[currComponentType];\n if (isInTargetNameSet) {\n callback.call(context, currComponentType, currVertex.originalDeps.slice());\n delete targetNameSet[currComponentType];\n }\n zrUtil.each(\n currVertex.successor,\n isInTargetNameSet ? removeEdgeAndAdd : removeEdge\n );\n }\n\n zrUtil.each(targetNameSet, function () {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable('Circular dependency may exists: ', targetNameSet, targetNameList, fullNameList);\n }\n throw new Error(errMsg);\n });\n\n function removeEdge(succComponentType: ComponentMainType): void {\n graph[succComponentType].entryCount--;\n if (graph[succComponentType].entryCount === 0) {\n noEntryList.push(succComponentType);\n }\n }\n\n // Consider this case: legend depends on series, and we call\n // chart.setOption({series: [...]}), where only series is in option.\n // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will\n // not be called, but only sereis.mergeOption is called. Thus legend\n // have no chance to update its local record about series (like which\n // name of series is available in legend).\n function removeEdgeAndAdd(succComponentType: ComponentMainType): void {\n targetNameSet[succComponentType] = true;\n removeEdge(succComponentType);\n }\n };\n\n function makeDepndencyGraph(fullNameList: ComponentMainType[]) {\n const graph: DepGraph = {};\n const noEntryList: ComponentMainType[] = [];\n\n zrUtil.each(fullNameList, function (name: ComponentMainType) {\n\n const thisItem = createDependencyGraphItem(graph, name);\n const originalDeps = thisItem.originalDeps = dependencyGetter(name);\n\n const availableDeps = getAvailableDependencies(originalDeps, fullNameList);\n thisItem.entryCount = availableDeps.length;\n if (thisItem.entryCount === 0) {\n noEntryList.push(name);\n }\n\n zrUtil.each(availableDeps, function (dependentName) {\n if (zrUtil.indexOf(thisItem.predecessor, dependentName) < 0) {\n thisItem.predecessor.push(dependentName);\n }\n const thatItem = createDependencyGraphItem(graph, dependentName);\n if (zrUtil.indexOf(thatItem.successor, dependentName) < 0) {\n thatItem.successor.push(name);\n }\n });\n });\n\n return {graph: graph, noEntryList: noEntryList};\n }\n\n function createDependencyGraphItem(graph: DepGraph, name: ComponentMainType) {\n if (!graph[name]) {\n graph[name] = {predecessor: [], successor: []} as DepGraphItem;\n }\n return graph[name];\n }\n\n function getAvailableDependencies(\n originalDeps: ComponentMainType[], fullNameList: ComponentMainType[]\n ): ComponentMainType[] {\n const availableDeps = [] as ComponentMainType[];\n zrUtil.each(originalDeps, function (dep) {\n zrUtil.indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);\n });\n return availableDeps;\n }\n\n}\n\nexport function inheritDefaultOption(superOption: T, subOption: K): K {\n // See also `model/Component.ts#getDefaultOption`\n return zrUtil.merge(zrUtil.merge({}, superOption, true), subOption, true);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Language: English.\n */\n\nexport default {\n time: {\n month: [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'\n ],\n monthAbbr: [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ],\n dayOfWeek: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'\n ],\n dayOfWeekAbbr: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ]\n },\n legend: {\n selector: {\n all: 'All',\n inverse: 'Inv'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: 'Box Select',\n polygon: 'Lasso Select',\n lineX: 'Horizontally Select',\n lineY: 'Vertically Select',\n keep: 'Keep Selections',\n clear: 'Clear Selections'\n }\n },\n dataView: {\n title: 'Data View',\n lang: ['Data View', 'Close', 'Refresh']\n },\n dataZoom: {\n title: {\n zoom: 'Zoom',\n back: 'Zoom Reset'\n }\n },\n magicType: {\n title: {\n line: 'Switch to Line Chart',\n bar: 'Switch to Bar Chart',\n stack: 'Stack',\n tiled: 'Tile'\n }\n },\n restore: {\n title: 'Restore'\n },\n saveAsImage: {\n title: 'Save as Image',\n lang: ['Right Click to Save Image']\n }\n },\n series: {\n typeNames: {\n pie: 'Pie chart',\n bar: 'Bar chart',\n line: 'Line chart',\n scatter: 'Scatter plot',\n effectScatter: 'Ripple scatter plot',\n radar: 'Radar chart',\n tree: 'Tree',\n treemap: 'Treemap',\n boxplot: 'Boxplot',\n candlestick: 'Candlestick',\n k: 'K line chart',\n heatmap: 'Heat map',\n map: 'Map',\n parallel: 'Parallel coordinate map',\n lines: 'Line graph',\n graph: 'Relationship graph',\n sankey: 'Sankey diagram',\n funnel: 'Funnel chart',\n gauge: 'Gauge',\n pictorialBar: 'Pictorial bar',\n themeRiver: 'Theme River Map',\n sunburst: 'Sunburst'\n }\n },\n aria: {\n general: {\n withTitle: 'This is a chart about \"{title}\"',\n withoutTitle: 'This is a chart'\n },\n series: {\n single: {\n prefix: '',\n withName: ' with type {seriesType} named {seriesName}.',\n withoutName: ' with type {seriesType}.'\n },\n multiple: {\n prefix: '. It consists of {seriesCount} series count.',\n withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',\n withoutName: ' The {seriesId} series is a {seriesType}.',\n separator: {\n middle: '',\n end: ''\n }\n }\n },\n data: {\n allData: 'The data is as follows: ',\n partialData: 'The first {displayCnt} items are: ',\n withName: 'the data for {name} is {value}',\n withoutName: '{value}',\n separator: {\n middle: ', ',\n end: '. '\n }\n }\n }\n};\n", "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nexport default {\n time: {\n month: [\n '\u4E00\u6708', '\u4E8C\u6708', '\u4E09\u6708', '\u56DB\u6708', '\u4E94\u6708', '\u516D\u6708',\n '\u4E03\u6708', '\u516B\u6708', '\u4E5D\u6708', '\u5341\u6708', '\u5341\u4E00\u6708', '\u5341\u4E8C\u6708'\n ],\n monthAbbr: [\n '1\u6708', '2\u6708', '3\u6708', '4\u6708', '5\u6708', '6\u6708',\n '7\u6708', '8\u6708', '9\u6708', '10\u6708', '11\u6708', '12\u6708'\n ],\n dayOfWeek: [\n '\u661F\u671F\u65E5', '\u661F\u671F\u4E00', '\u661F\u671F\u4E8C', '\u661F\u671F\u4E09', '\u661F\u671F\u56DB', '\u661F\u671F\u4E94', '\u661F\u671F\u516D'\n ],\n dayOfWeekAbbr: [\n '\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D'\n ]\n },\n legend: {\n selector: {\n all: '\u5168\u9009',\n inverse: '\u53CD\u9009'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: '\u77E9\u5F62\u9009\u62E9',\n polygon: '\u5708\u9009',\n lineX: '\u6A2A\u5411\u9009\u62E9',\n lineY: '\u7EB5\u5411\u9009\u62E9',\n keep: '\u4FDD\u6301\u9009\u62E9',\n clear: '\u6E05\u9664\u9009\u62E9'\n }\n },\n dataView: {\n title: '\u6570\u636E\u89C6\u56FE',\n lang: ['\u6570\u636E\u89C6\u56FE', '\u5173\u95ED', '\u5237\u65B0']\n },\n dataZoom: {\n title: {\n zoom: '\u533A\u57DF\u7F29\u653E',\n back: '\u533A\u57DF\u7F29\u653E\u8FD8\u539F'\n }\n },\n magicType: {\n title: {\n line: '\u5207\u6362\u4E3A\u6298\u7EBF\u56FE',\n bar: '\u5207\u6362\u4E3A\u67F1\u72B6\u56FE',\n stack: '\u5207\u6362\u4E3A\u5806\u53E0',\n tiled: '\u5207\u6362\u4E3A\u5E73\u94FA'\n }\n },\n restore: {\n title: '\u8FD8\u539F'\n },\n saveAsImage: {\n title: '\u4FDD\u5B58\u4E3A\u56FE\u7247',\n lang: ['\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247']\n }\n },\n series: {\n typeNames: {\n pie: '\u997C\u56FE',\n bar: '\u67F1\u72B6\u56FE',\n line: '\u6298\u7EBF\u56FE',\n scatter: '\u6563\u70B9\u56FE',\n effectScatter: '\u6D9F\u6F2A\u6563\u70B9\u56FE',\n radar: '\u96F7\u8FBE\u56FE',\n tree: '\u6811\u56FE',\n treemap: '\u77E9\u5F62\u6811\u56FE',\n boxplot: '\u7BB1\u578B\u56FE',\n candlestick: 'K\u7EBF\u56FE',\n k: 'K\u7EBF\u56FE',\n heatmap: '\u70ED\u529B\u56FE',\n map: '\u5730\u56FE',\n parallel: '\u5E73\u884C\u5750\u6807\u56FE',\n lines: '\u7EBF\u56FE',\n graph: '\u5173\u7CFB\u56FE',\n sankey: '\u6851\u57FA\u56FE',\n funnel: '\u6F0F\u6597\u56FE',\n gauge: '\u4EEA\u8868\u76D8\u56FE',\n pictorialBar: '\u8C61\u5F62\u67F1\u56FE',\n themeRiver: '\u4E3B\u9898\u6CB3\u6D41\u56FE',\n sunburst: '\u65ED\u65E5\u56FE'\n }\n },\n aria: {\n general: {\n withTitle: '\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002',\n withoutTitle: '\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C'\n },\n series: {\n single: {\n prefix: '',\n withName: '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002',\n withoutName: '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002'\n },\n multiple: {\n prefix: '\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002',\n withName: '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C',\n withoutName: '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C',\n separator: {\n middle: '\uFF1B',\n end: '\u3002'\n }\n }\n },\n data: {\n allData: '\u5176\u6570\u636E\u662F\u2014\u2014',\n partialData: '\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014',\n withName: '{name}\u7684\u6570\u636E\u662F{value}',\n withoutName: '{value}',\n separator: {\n middle: '\uFF0C',\n end: ''\n }\n }\n }\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from '../util/types';\nimport Model from '../model/Model';\nimport env from 'zrender/src/core/env';\n// default import ZH and EN lang\nimport langEN from '../i18n/langEN';\nimport langZH from '../i18n/langZH';\nimport { isString, clone, merge } from 'zrender/src/core/util';\n\nexport type LocaleOption = typeof langEN;\n\nconst LOCALE_ZH = 'ZH';\nconst LOCALE_EN = 'EN';\nconst DEFAULT_LOCALE = LOCALE_EN;\n\nconst localeStorage: Dictionary = {};\nconst localeModels: Dictionary = {};\n\nexport const SYSTEM_LANG = !env.domSupported ? DEFAULT_LOCALE : (function () {\n const langStr = (\n /* eslint-disable-next-line */\n document.documentElement.lang || navigator.language || (navigator as any).browserLanguage\n ).toUpperCase();\n return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE;\n})();\n\nexport function registerLocale(locale: string, localeObj: LocaleOption) {\n locale = locale.toUpperCase();\n localeModels[locale] = new Model(localeObj);\n localeStorage[locale] = localeObj;\n}\n\n// export function getLocale(locale: string) {\n// return localeStorage[locale];\n// }\n\nexport function createLocaleObject(locale: string | LocaleOption): LocaleOption {\n if (isString(locale)) {\n const localeObj = localeStorage[locale.toUpperCase()] || {} as LocaleOption;\n if (locale === LOCALE_ZH || locale === LOCALE_EN) {\n return clone(localeObj);\n }\n else {\n return merge(clone(localeObj), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n }\n else {\n return merge(clone(locale), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n}\n\nexport function getLocaleModel(lang: string): Model {\n return localeModels[lang];\n}\n\nexport function getDefaultLocaleModel(): Model {\n return localeModels[DEFAULT_LOCALE];\n}\n\n// Default locale\nregisterLocale(LOCALE_EN, langEN);\nregisterLocale(LOCALE_ZH, langZH);\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {TimeAxisLabelFormatterOption} from './../coord/axisCommonTypes';\nimport * as numberUtil from './number';\nimport {TimeScaleTick} from './types';\nimport { getDefaultLocaleModel, getLocaleModel, SYSTEM_LANG, LocaleOption } from '../core/locale';\nimport Model from '../model/Model';\n\nexport const ONE_SECOND = 1000;\nexport const ONE_MINUTE = ONE_SECOND * 60;\nexport const ONE_HOUR = ONE_MINUTE * 60;\nexport const ONE_DAY = ONE_HOUR * 24;\nexport const ONE_YEAR = ONE_DAY * 365;\n\nexport const defaultLeveledFormatter = {\n year: '{yyyy}',\n month: '{MMM}',\n day: '{d}',\n hour: '{HH}:{mm}',\n minute: '{HH}:{mm}',\n second: '{HH}:{mm}:{ss}',\n millisecond: '{HH}:{mm}:{ss} {SSS}',\n none: '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}'\n};\n\nconst fullDayFormatter = '{yyyy}-{MM}-{dd}';\n\nexport const fullLeveledFormatter = {\n year: '{yyyy}',\n month: '{yyyy}-{MM}',\n day: fullDayFormatter,\n hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour,\n minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute,\n second: fullDayFormatter + ' ' + defaultLeveledFormatter.second,\n millisecond: defaultLeveledFormatter.none\n};\n\nexport type PrimaryTimeUnit = 'millisecond' | 'second' | 'minute' | 'hour'\n | 'day' | 'month' | 'year';\nexport type TimeUnit = PrimaryTimeUnit | 'half-year' | 'quarter' | 'week'\n | 'half-week' | 'half-day' | 'quarter-day';\n\nexport const primaryTimeUnits: PrimaryTimeUnit[] = [\n 'year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'\n];\nexport const timeUnits: TimeUnit[] = [\n 'year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day',\n 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond'\n];\n\nexport function pad(str: string | number, len: number): string {\n str += '';\n return '0000'.substr(0, len - (str as string).length) + str;\n}\n\nexport function getPrimaryTimeUnit(timeUnit: TimeUnit): PrimaryTimeUnit {\n switch (timeUnit) {\n case 'half-year':\n case 'quarter':\n return 'month';\n case 'week':\n case 'half-week':\n return 'day';\n case 'half-day':\n case 'quarter-day':\n return 'hour';\n default:\n // year, minutes, second, milliseconds\n return timeUnit;\n }\n}\n\nexport function isPrimaryTimeUnit(timeUnit: TimeUnit): boolean {\n return timeUnit === getPrimaryTimeUnit(timeUnit);\n}\n\nexport function getDefaultFormatPrecisionOfInterval(timeUnit: PrimaryTimeUnit): PrimaryTimeUnit {\n switch (timeUnit) {\n case 'year':\n case 'month':\n return 'day';\n case 'millisecond':\n return 'millisecond';\n default:\n // Also for day, hour, minute, second\n return 'second';\n }\n}\n\nexport function format(\n // Note: The result based on `isUTC` are totally different, which can not be just simply\n // substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.\n time: unknown, template: string, isUTC: boolean, lang?: string | Model\n): string {\n const date = numberUtil.parseDate(time);\n const y = date[fullYearGetterName(isUTC)]();\n const M = date[monthGetterName(isUTC)]() + 1;\n const q = Math.floor((M - 1) / 4) + 1;\n const d = date[dateGetterName(isUTC)]();\n const e = date['get' + (isUTC ? 'UTC' : '') + 'Day' as 'getDay' | 'getUTCDay']();\n const H = date[hoursGetterName(isUTC)]();\n const h = (H - 1) % 12 + 1;\n const m = date[minutesGetterName(isUTC)]();\n const s = date[secondsGetterName(isUTC)]();\n const S = date[millisecondsGetterName(isUTC)]();\n\n\n const localeModel = lang instanceof Model ? lang\n : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();\n const timeModel = localeModel.getModel('time');\n const month = timeModel.get('month');\n const monthAbbr = timeModel.get('monthAbbr');\n const dayOfWeek = timeModel.get('dayOfWeek');\n const dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');\n\n return (template || '')\n .replace(/{yyyy}/g, y + '')\n .replace(/{yy}/g, y % 100 + '')\n .replace(/{Q}/g, q + '')\n .replace(/{MMMM}/g, month[M - 1])\n .replace(/{MMM}/g, monthAbbr[M - 1])\n .replace(/{MM}/g, pad(M, 2))\n .replace(/{M}/g, M + '')\n .replace(/{dd}/g, pad(d, 2))\n .replace(/{d}/g, d + '')\n .replace(/{eeee}/g, dayOfWeek[e])\n .replace(/{ee}/g, dayOfWeekAbbr[e])\n .replace(/{e}/g, e + '')\n .replace(/{HH}/g, pad(H, 2))\n .replace(/{H}/g, H + '')\n .replace(/{hh}/g, pad(h + '', 2))\n .replace(/{h}/g, h + '')\n .replace(/{mm}/g, pad(m, 2))\n .replace(/{m}/g, m + '')\n .replace(/{ss}/g, pad(s, 2))\n .replace(/{s}/g, s + '')\n .replace(/{SSS}/g, pad(S, 3))\n .replace(/{S}/g, S + '');\n}\n\nexport function leveledFormat(\n tick: TimeScaleTick,\n idx: number,\n formatter: TimeAxisLabelFormatterOption,\n lang: string | Model,\n isUTC: boolean\n) {\n let template = null;\n if (typeof formatter === 'string') {\n // Single formatter for all units at all levels\n template = formatter;\n }\n else if (typeof formatter === 'function') {\n // Callback formatter\n template = formatter(tick.value, idx, {\n level: tick.level\n });\n }\n else {\n const defaults = zrUtil.extend({}, defaultLeveledFormatter);\n if (tick.level > 0) {\n for (let i = 0; i < primaryTimeUnits.length; ++i) {\n defaults[primaryTimeUnits[i]] = `{primary|${defaults[primaryTimeUnits[i]]}}`;\n }\n }\n\n const mergedFormatter = (formatter\n ? (formatter.inherit === false\n ? formatter // Use formatter with bigger units\n : zrUtil.defaults(formatter, defaults)\n )\n : defaults) as any;\n\n const unit = getUnitFromValue(tick.value, isUTC);\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n }\n else if (mergedFormatter.inherit) {\n // Unit formatter is not defined and should inherit from bigger units\n const targetId = timeUnits.indexOf(unit);\n for (let i = targetId - 1; i >= 0; --i) {\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n break;\n }\n }\n template = template || defaults.none;\n }\n\n if (zrUtil.isArray(template)) {\n let levelId = tick.level == null\n ? 0\n : (tick.level >= 0 ? tick.level : template.length + tick.level);\n levelId = Math.min(levelId, template.length - 1);\n template = template[levelId];\n }\n }\n\n return format(new Date(tick.value), template, isUTC, lang);\n}\n\nexport function getUnitFromValue(\n value: number | string | Date,\n isUTC: boolean\n): PrimaryTimeUnit {\n const date = numberUtil.parseDate(value);\n const M = (date as any)[monthGetterName(isUTC)]() + 1;\n const d = (date as any)[dateGetterName(isUTC)]();\n const h = (date as any)[hoursGetterName(isUTC)]();\n const m = (date as any)[minutesGetterName(isUTC)]();\n const s = (date as any)[secondsGetterName(isUTC)]();\n const S = (date as any)[millisecondsGetterName(isUTC)]();\n\n const isSecond = S === 0;\n const isMinute = isSecond && s === 0;\n const isHour = isMinute && m === 0;\n const isDay = isHour && h === 0;\n const isMonth = isDay && d === 1;\n const isYear = isMonth && M === 1;\n\n if (isYear) {\n return 'year';\n }\n else if (isMonth) {\n return 'month';\n }\n else if (isDay) {\n return 'day';\n }\n else if (isHour) {\n return 'hour';\n }\n else if (isMinute) {\n return 'minute';\n }\n else if (isSecond) {\n return 'second';\n }\n else {\n return 'millisecond';\n }\n}\n\nexport function getUnitValue(\n value: number | Date,\n unit: TimeUnit,\n isUTC: boolean\n) : number {\n const date = typeof value === 'number'\n ? numberUtil.parseDate(value)\n : value;\n unit = unit || getUnitFromValue(value, isUTC);\n\n switch (unit) {\n case 'year':\n return date[fullYearGetterName(isUTC)]();\n case 'half-year':\n return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;\n case 'quarter':\n return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);\n case 'month':\n return date[monthGetterName(isUTC)]();\n case 'day':\n return date[dateGetterName(isUTC)]();\n case 'half-day':\n return date[hoursGetterName(isUTC)]() / 24;\n case 'hour':\n return date[hoursGetterName(isUTC)]();\n case 'minute':\n return date[minutesGetterName(isUTC)]();\n case 'second':\n return date[secondsGetterName(isUTC)]();\n case 'millisecond':\n return date[millisecondsGetterName(isUTC)]();\n }\n}\n\nexport function fullYearGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCFullYear' : 'getFullYear';\n}\n\nexport function monthGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMonth' : 'getMonth';\n}\n\nexport function dateGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCDate' : 'getDate';\n}\n\nexport function hoursGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCHours' : 'getHours';\n}\n\nexport function minutesGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMinutes' : 'getMinutes';\n}\n\nexport function secondsGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\n\nexport function millisecondsGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMilliseconds' : 'getMilliseconds';\n}\n\nexport function fullYearSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCFullYear' : 'setFullYear';\n}\n\nexport function monthSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMonth' : 'setMonth';\n}\n\nexport function dateSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCDate' : 'setDate';\n}\n\nexport function hoursSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCHours' : 'setHours';\n}\n\nexport function minutesSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMinutes' : 'setMinutes';\n}\n\nexport function secondsSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}\n\nexport function millisecondsSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMilliseconds' : 'setMilliseconds';\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Text } from '../util/graphic';\nimport { deprecateLog } from '../util/log';\n\ntype TextStyleProps = Text['style'];\nexport function getTextRect(\n text: TextStyleProps['text'],\n font?: TextStyleProps['font'],\n align?: TextStyleProps['align'],\n verticalAlign?: TextStyleProps['verticalAlign'],\n padding?: TextStyleProps['padding'],\n rich?: TextStyleProps['rich'],\n truncate?: boolean,\n lineHeight?: number\n) {\n deprecateLog('getTextRect is deprecated.');\n\n const textEl = new Text({\n style: {\n text,\n font,\n align,\n verticalAlign,\n padding,\n rich,\n overflow: truncate ? 'truncate' : null,\n lineHeight\n }\n });\n\n return textEl.getBoundingRect();\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { parseDate, isNumeric, numericToNumber } from './number';\nimport { TooltipRenderMode, ColorString, ZRColor, DimensionType } from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { GradientObject } from 'zrender/src/graphic/Gradient';\nimport { format as timeFormat, pad } from './time';\nimport { deprecateReplaceLog } from './log';\n\n/**\n * Add a comma each three digit.\n */\nexport function addCommas(x: string | number): string {\n if (!isNumeric(x)) {\n return zrUtil.isString(x) ? x : '-';\n }\n const parts = (x + '').split('.');\n return parts[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, '$1,')\n + (parts.length > 1 ? ('.' + parts[1]) : '');\n}\n\nexport function toCamelCase(str: string, upperCaseFirst?: boolean): string {\n str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {\n return group1.toUpperCase();\n });\n\n if (upperCaseFirst && str) {\n str = str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n return str;\n}\n\nexport const normalizeCssArray = zrUtil.normalizeCssArray;\n\n\nconst replaceReg = /([&<>\"'])/g;\nconst replaceMap: Dictionary = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n};\n\nexport function encodeHTML(source: string): string {\n return source == null\n ? ''\n : (source + '').replace(replaceReg, function (str, c) {\n return replaceMap[c];\n });\n}\n\n\n/**\n * Make value user readable for tooltip and label.\n * \"User readable\":\n * Try to not print programmer-specific text like NaN, Infinity, null, undefined.\n * Avoid to display an empty string, which users can not recognize there is\n * a value and it might look like a bug.\n */\nexport function makeValueReadable(\n value: unknown,\n valueType: DimensionType,\n useUTC: boolean\n): string {\n const USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';\n\n function stringToUserReadable(str: string): string {\n return (str && zrUtil.trim(str)) ? str : '-';\n }\n function isNumberUserReadable(num: number): boolean {\n return !!(num != null && !isNaN(num) && isFinite(num));\n }\n\n const isTypeTime = valueType === 'time';\n const isValueDate = value instanceof Date;\n if (isTypeTime || isValueDate) {\n const date = isTypeTime ? parseDate(value) : value;\n if (!isNaN(+date)) {\n return timeFormat(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);\n }\n else if (isValueDate) {\n return '-';\n }\n // In other cases, continue to try to display the value in the following code.\n }\n\n if (valueType === 'ordinal') {\n return zrUtil.isStringSafe(value)\n ? stringToUserReadable(value)\n : zrUtil.isNumber(value)\n ? (isNumberUserReadable(value) ? value + '' : '-')\n : '-';\n }\n // By default.\n const numericResult = numericToNumber(value);\n return isNumberUserReadable(numericResult)\n ? addCommas(numericResult)\n : zrUtil.isStringSafe(value)\n ? stringToUserReadable(value)\n : '-';\n}\n\n\nconst TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];\n\nconst wrapVar = function (varName: string, seriesIdx?: number): string {\n return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';\n};\n\nexport interface TplFormatterParam extends Dictionary {\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: string[];\n}\n/**\n * Template formatter\n * @param {Array.|Object} paramsList\n */\nexport function formatTpl(\n tpl: string,\n paramsList: TplFormatterParam | TplFormatterParam[],\n encode?: boolean\n): string {\n if (!zrUtil.isArray(paramsList)) {\n paramsList = [paramsList];\n }\n const seriesLen = paramsList.length;\n if (!seriesLen) {\n return '';\n }\n\n const $vars = paramsList[0].$vars || [];\n for (let i = 0; i < $vars.length; i++) {\n const alias = TPL_VAR_ALIAS[i];\n tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));\n }\n for (let seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {\n for (let k = 0; k < $vars.length; k++) {\n const val = paramsList[seriesIdx][$vars[k]];\n tpl = tpl.replace(\n wrapVar(TPL_VAR_ALIAS[k], seriesIdx),\n encode ? encodeHTML(val) : val\n );\n }\n }\n\n return tpl;\n}\n\n/**\n * simple Template formatter\n */\nexport function formatTplSimple(tpl: string, param: Dictionary, encode?: boolean) {\n zrUtil.each(param, function (value, key) {\n tpl = tpl.replace(\n '{' + key + '}',\n encode ? encodeHTML(value) : value\n );\n });\n return tpl;\n}\n\ninterface RichTextTooltipMarker {\n renderMode: TooltipRenderMode;\n content: string;\n style: Dictionary;\n}\nexport type TooltipMarker = string | RichTextTooltipMarker;\nexport type TooltipMarkerType = 'item' | 'subItem';\ninterface GetTooltipMarkerOpt {\n color?: ColorString;\n extraCssText?: string;\n // By default: 'item'\n type?: TooltipMarkerType;\n renderMode?: TooltipRenderMode;\n // id name for marker. If only one marker is in a rich text, this can be omitted.\n // By default: 'markerX'\n markerId?: string;\n}\n// Only support color string\nexport function getTooltipMarker(color: ColorString, extraCssText?: string): TooltipMarker;\nexport function getTooltipMarker(opt: GetTooltipMarkerOpt): TooltipMarker;\nexport function getTooltipMarker(inOpt: ColorString | GetTooltipMarkerOpt, extraCssText?: string): TooltipMarker {\n const opt = zrUtil.isString(inOpt) ? {\n color: inOpt,\n extraCssText: extraCssText\n } : (inOpt || {}) as GetTooltipMarkerOpt;\n const color = opt.color;\n const type = opt.type;\n extraCssText = opt.extraCssText;\n const renderMode = opt.renderMode || 'html';\n\n if (!color) {\n return '';\n }\n\n if (renderMode === 'html') {\n return type === 'subItem'\n ? ''\n : '';\n }\n else {\n // Should better not to auto generate style name by auto-increment number here.\n // Because this util is usually called in tooltip formatter, which is probably\n // called repeatly when mouse move and the auto-increment number increases fast.\n // Users can make their own style name by theirselves, make it unique and readable.\n const markerId = opt.markerId || 'markerX';\n return {\n renderMode: renderMode,\n content: '{' + markerId + '|} ',\n style: type === 'subItem'\n ? {\n width: 4,\n height: 4,\n borderRadius: 2,\n backgroundColor: color\n }\n : {\n width: 10,\n height: 10,\n borderRadius: 5,\n backgroundColor: color\n }\n };\n }\n}\n\n\n/**\n * @deprecated Use `time/format` instead.\n * ISO Date format\n * @param {string} tpl\n * @param {number} value\n * @param {boolean} [isUTC=false] Default in local time.\n * see `module:echarts/scale/Time`\n * and `module:echarts/util/number#parseDate`.\n * @inner\n */\nexport function formatTime(tpl: string, value: unknown, isUTC: boolean) {\n if (__DEV__) {\n deprecateReplaceLog('echarts.format.formatTime', 'echarts.time.format');\n }\n\n if (tpl === 'week'\n || tpl === 'month'\n || tpl === 'quarter'\n || tpl === 'half-year'\n || tpl === 'year'\n ) {\n tpl = 'MM-dd\\nyyyy';\n }\n\n const date = parseDate(value);\n const utc = isUTC ? 'UTC' : '';\n const y = (date as any)['get' + utc + 'FullYear']();\n const M = (date as any)['get' + utc + 'Month']() + 1;\n const d = (date as any)['get' + utc + 'Date']();\n const h = (date as any)['get' + utc + 'Hours']();\n const m = (date as any)['get' + utc + 'Minutes']();\n const s = (date as any)['get' + utc + 'Seconds']();\n const S = (date as any)['get' + utc + 'Milliseconds']();\n\n tpl = tpl.replace('MM', pad(M, 2))\n .replace('M', M)\n .replace('yyyy', y)\n .replace('yy', y % 100 + '')\n .replace('dd', pad(d, 2))\n .replace('d', d)\n .replace('hh', pad(h, 2))\n .replace('h', h)\n .replace('mm', pad(m, 2))\n .replace('m', m)\n .replace('ss', pad(s, 2))\n .replace('s', s)\n .replace('SSS', pad(S, 3));\n\n return tpl;\n}\n\n/**\n * Capital first\n * @param {string} str\n * @return {string}\n */\nexport function capitalFirst(str: string): string {\n return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;\n}\n\n/**\n * @return Never be null/undefined.\n */\nexport function convertToColorString(color: ZRColor, defaultColor?: ColorString): ColorString {\n defaultColor = defaultColor || 'transparent';\n return zrUtil.isString(color)\n ? color\n : zrUtil.isObject(color)\n ? (\n (color as GradientObject).colorStops\n && ((color as GradientObject).colorStops[0] || {}).color\n || defaultColor\n )\n : defaultColor;\n}\n\nexport {truncateText} from 'zrender/src/graphic/helper/parseText';\n\n/**\n * open new tab\n * @param link url\n * @param target blank or self\n */\nexport function windowOpen(link: string, target: string): void {\n /* global window */\n if (target === '_blank' || target === 'blank') {\n const blank = window.open();\n blank.opener = null;\n blank.location.href = link;\n }\n else {\n window.open(link, target);\n }\n}\n\n\nexport {getTextRect} from '../legacy/getTextRect';\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Layout helpers for each component positioning\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport {parsePercent} from './number';\nimport * as formatUtil from './format';\nimport { BoxLayoutOptionMixin, ComponentLayoutMode } from './types';\nimport Group from 'zrender/src/graphic/Group';\nimport Element from 'zrender/src/Element';\nimport { Dictionary } from 'zrender/src/core/types';\n\nconst each = zrUtil.each;\n\nexport interface LayoutRect extends BoundingRect {\n margin: number[]\n}\n\nexport interface NewlineElement extends Element {\n newline: boolean\n}\n\ntype BoxLayoutKeys = keyof BoxLayoutOptionMixin;\n/**\n * @public\n */\nexport const LOCATION_PARAMS = [\n 'left', 'right', 'top', 'bottom', 'width', 'height'\n] as const;\n\n/**\n * @public\n */\nexport const HV_NAMES = [\n ['width', 'left', 'right'],\n ['height', 'top', 'bottom']\n] as const;\n\nfunction boxLayout(\n orient: 'horizontal' | 'vertical',\n group: Group,\n gap: number,\n maxWidth?: number,\n maxHeight?: number\n) {\n let x = 0;\n let y = 0;\n\n if (maxWidth == null) {\n maxWidth = Infinity;\n }\n if (maxHeight == null) {\n maxHeight = Infinity;\n }\n let currentLineMaxSize = 0;\n\n group.eachChild(function (child, idx) {\n const rect = child.getBoundingRect();\n const nextChild = group.childAt(idx + 1);\n const nextChildRect = nextChild && nextChild.getBoundingRect();\n let nextX: number;\n let nextY: number;\n\n if (orient === 'horizontal') {\n const moveX = rect.width + (nextChildRect ? (-nextChildRect.x + rect.x) : 0);\n nextX = x + moveX;\n // Wrap when width exceeds maxWidth or meet a `newline` group\n // FIXME compare before adding gap?\n if (nextX > maxWidth || (child as NewlineElement).newline) {\n x = 0;\n nextX = moveX;\n y += currentLineMaxSize + gap;\n currentLineMaxSize = rect.height;\n }\n else {\n // FIXME: consider rect.y is not `0`?\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);\n }\n }\n else {\n const moveY = rect.height + (nextChildRect ? (-nextChildRect.y + rect.y) : 0);\n nextY = y + moveY;\n // Wrap when width exceeds maxHeight or meet a `newline` group\n if (nextY > maxHeight || (child as NewlineElement).newline) {\n x += currentLineMaxSize + gap;\n y = 0;\n nextY = moveY;\n currentLineMaxSize = rect.width;\n }\n else {\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);\n }\n }\n\n if ((child as NewlineElement).newline) {\n return;\n }\n\n child.x = x;\n child.y = y;\n child.markRedraw();\n\n orient === 'horizontal'\n ? (x = nextX + gap)\n : (y = nextY + gap);\n });\n}\n\n/**\n * VBox or HBox layouting\n * @param {string} orient\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const box = boxLayout;\n\n/**\n * VBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const vbox = zrUtil.curry(boxLayout, 'vertical');\n\n/**\n * HBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const hbox = zrUtil.curry(boxLayout, 'horizontal');\n\n/**\n * If x or x2 is not specified or 'center' 'left' 'right',\n * the width would be as long as possible.\n * If y or y2 is not specified or 'middle' 'top' 'bottom',\n * the height would be as long as possible.\n */\nexport function getAvailableSize(\n positionInfo: {\n left?: number | string\n top?: number | string\n right?: number | string\n bottom?: number | string\n },\n containerRect: { width: number, height: number },\n margin?: number[] | number\n) {\n const containerWidth = containerRect.width;\n const containerHeight = containerRect.height;\n\n let x = parsePercent(positionInfo.left, containerWidth);\n let y = parsePercent(positionInfo.top, containerHeight);\n let x2 = parsePercent(positionInfo.right, containerWidth);\n let y2 = parsePercent(positionInfo.bottom, containerHeight);\n\n (isNaN(x) || isNaN(parseFloat(positionInfo.left as string))) && (x = 0);\n (isNaN(x2) || isNaN(parseFloat(positionInfo.right as string))) && (x2 = containerWidth);\n (isNaN(y) || isNaN(parseFloat(positionInfo.top as string))) && (y = 0);\n (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom as string))) && (y2 = containerHeight);\n\n margin = formatUtil.normalizeCssArray(margin || 0);\n\n return {\n width: Math.max(x2 - x - margin[1] - margin[3], 0),\n height: Math.max(y2 - y - margin[0] - margin[2], 0)\n };\n}\n\n/**\n * Parse position info.\n */\nexport function getLayoutRect(\n positionInfo: BoxLayoutOptionMixin & {\n aspect?: number // aspect is width / height\n },\n containerRect: {width: number, height: number},\n margin?: number | number[]\n): LayoutRect {\n margin = formatUtil.normalizeCssArray(margin || 0);\n\n const containerWidth = containerRect.width;\n const containerHeight = containerRect.height;\n\n let left = parsePercent(positionInfo.left, containerWidth);\n let top = parsePercent(positionInfo.top, containerHeight);\n const right = parsePercent(positionInfo.right, containerWidth);\n const bottom = parsePercent(positionInfo.bottom, containerHeight);\n let width = parsePercent(positionInfo.width, containerWidth);\n let height = parsePercent(positionInfo.height, containerHeight);\n\n const verticalMargin = margin[2] + margin[0];\n const horizontalMargin = margin[1] + margin[3];\n const aspect = positionInfo.aspect;\n\n // If width is not specified, calculate width from left and right\n if (isNaN(width)) {\n width = containerWidth - right - horizontalMargin - left;\n }\n if (isNaN(height)) {\n height = containerHeight - bottom - verticalMargin - top;\n }\n\n if (aspect != null) {\n // If width and height are not given\n // 1. Graph should not exceeds the container\n // 2. Aspect must be keeped\n // 3. Graph should take the space as more as possible\n // FIXME\n // Margin is not considered, because there is no case that both\n // using margin and aspect so far.\n if (isNaN(width) && isNaN(height)) {\n if (aspect > containerWidth / containerHeight) {\n width = containerWidth * 0.8;\n }\n else {\n height = containerHeight * 0.8;\n }\n }\n\n // Calculate width or height with given aspect\n if (isNaN(width)) {\n width = aspect * height;\n }\n if (isNaN(height)) {\n height = width / aspect;\n }\n }\n\n // If left is not specified, calculate left from right and width\n if (isNaN(left)) {\n left = containerWidth - right - width - horizontalMargin;\n }\n if (isNaN(top)) {\n top = containerHeight - bottom - height - verticalMargin;\n }\n\n // Align left and top\n switch (positionInfo.left || positionInfo.right) {\n case 'center':\n left = containerWidth / 2 - width / 2 - margin[3];\n break;\n case 'right':\n left = containerWidth - width - horizontalMargin;\n break;\n }\n switch (positionInfo.top || positionInfo.bottom) {\n case 'middle':\n case 'center':\n top = containerHeight / 2 - height / 2 - margin[0];\n break;\n case 'bottom':\n top = containerHeight - height - verticalMargin;\n break;\n }\n // If something is wrong and left, top, width, height are calculated as NaN\n left = left || 0;\n top = top || 0;\n if (isNaN(width)) {\n // Width may be NaN if only one value is given except width\n width = containerWidth - horizontalMargin - left - (right || 0);\n }\n if (isNaN(height)) {\n // Height may be NaN if only one value is given except height\n height = containerHeight - verticalMargin - top - (bottom || 0);\n }\n\n const rect = new BoundingRect(left + margin[3], top + margin[0], width, height) as LayoutRect;\n rect.margin = margin;\n return rect;\n}\n\n\n/**\n * Position a zr element in viewport\n * Group position is specified by either\n * {left, top}, {right, bottom}\n * If all properties exists, right and bottom will be igonred.\n *\n * Logic:\n * 1. Scale (against origin point in parent coord)\n * 2. Rotate (against origin point in parent coord)\n * 3. Traslate (with el.position by this method)\n * So this method only fixes the last step 'Traslate', which does not affect\n * scaling and rotating.\n *\n * If be called repeatly with the same input el, the same result will be gotten.\n *\n * @param el Should have `getBoundingRect` method.\n * @param positionInfo\n * @param positionInfo.left\n * @param positionInfo.top\n * @param positionInfo.right\n * @param positionInfo.bottom\n * @param positionInfo.width Only for opt.boundingModel: 'raw'\n * @param positionInfo.height Only for opt.boundingModel: 'raw'\n * @param containerRect\n * @param margin\n * @param opt\n * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]\n * @param opt.boundingMode\n * Specify how to calculate boundingRect when locating.\n * 'all': Position the boundingRect that is transformed and uioned\n * both itself and its descendants.\n * This mode simplies confine the elements in the bounding\n * of their container (e.g., using 'right: 0').\n * 'raw': Position the boundingRect that is not transformed and only itself.\n * This mode is useful when you want a element can overflow its\n * container. (Consider a rotated circle needs to be located in a corner.)\n * In this mode positionInfo.width/height can only be number.\n */\nexport function positionElement(\n el: Element,\n positionInfo: BoxLayoutOptionMixin,\n containerRect: {width: number, height: number},\n margin?: number[] | number,\n opt?: {\n hv: [1 | 0 | boolean, 1 | 0 | boolean],\n boundingMode: 'all' | 'raw'\n }\n) {\n const h = !opt || !opt.hv || opt.hv[0];\n const v = !opt || !opt.hv || opt.hv[1];\n const boundingMode = opt && opt.boundingMode || 'all';\n\n if (!h && !v) {\n return;\n }\n\n let rect;\n if (boundingMode === 'raw') {\n rect = el.type === 'group'\n ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0)\n : el.getBoundingRect();\n }\n else {\n rect = el.getBoundingRect();\n if (el.needLocalTransform()) {\n const transform = el.getLocalTransform();\n // Notice: raw rect may be inner object of el,\n // which should not be modified.\n rect = rect.clone();\n rect.applyTransform(transform);\n }\n }\n\n // The real width and height can not be specified but calculated by the given el.\n const layoutRect = getLayoutRect(\n zrUtil.defaults(\n {width: rect.width, height: rect.height},\n positionInfo\n ),\n containerRect,\n margin\n );\n\n // Because 'tranlate' is the last step in transform\n // (see zrender/core/Transformable#getLocalTransform),\n // we can just only modify el.position to get final result.\n const dx = h ? layoutRect.x - rect.x : 0;\n const dy = v ? layoutRect.y - rect.y : 0;\n\n if (boundingMode === 'raw') {\n el.x = dx;\n el.y = dy;\n }\n else {\n el.x += dx;\n el.y += dy;\n }\n el.markRedraw();\n}\n\n/**\n * @param option Contains some of the properties in HV_NAMES.\n * @param hvIdx 0: horizontal; 1: vertical.\n */\nexport function sizeCalculable(option: BoxLayoutOptionMixin, hvIdx: number): boolean {\n return option[HV_NAMES[hvIdx][0]] != null\n || (option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null);\n}\n\nexport function fetchLayoutMode(ins: any): ComponentLayoutMode {\n const layoutMode = ins.layoutMode || ins.constructor.layoutMode;\n return zrUtil.isObject(layoutMode)\n ? layoutMode\n : layoutMode\n ? {type: layoutMode}\n : null;\n}\n\n/**\n * Consider Case:\n * When default option has {left: 0, width: 100}, and we set {right: 0}\n * through setOption or media query, using normal zrUtil.merge will cause\n * {right: 0} does not take effect.\n *\n * @example\n * ComponentModel.extend({\n * init: function () {\n * ...\n * let inputPositionParams = layout.getLayoutParams(option);\n * this.mergeOption(inputPositionParams);\n * },\n * mergeOption: function (newOption) {\n * newOption && zrUtil.merge(thisOption, newOption, true);\n * layout.mergeLayoutParam(thisOption, newOption);\n * }\n * });\n *\n * @param targetOption\n * @param newOption\n * @param opt\n */\nexport function mergeLayoutParam(\n targetOption: T,\n newOption: T,\n opt?: ComponentLayoutMode\n) {\n let ignoreSize = opt && opt.ignoreSize;\n !zrUtil.isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);\n\n const hResult = merge(HV_NAMES[0], 0);\n const vResult = merge(HV_NAMES[1], 1);\n\n copy(HV_NAMES[0], targetOption, hResult);\n copy(HV_NAMES[1], targetOption, vResult);\n\n function merge(names: typeof HV_NAMES[number], hvIdx: number) {\n const newParams: BoxLayoutOptionMixin = {};\n let newValueCount = 0;\n const merged: BoxLayoutOptionMixin = {};\n let mergedValueCount = 0;\n const enoughParamNumber = 2;\n\n each(names, function (name: BoxLayoutKeys) {\n merged[name] = targetOption[name];\n });\n each(names, function (name: BoxLayoutKeys) {\n // Consider case: newOption.width is null, which is\n // set by user for removing width setting.\n hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);\n hasValue(newParams, name) && newValueCount++;\n hasValue(merged, name) && mergedValueCount++;\n });\n\n if ((ignoreSize as [boolean, boolean])[hvIdx]) {\n // Only one of left/right is premitted to exist.\n if (hasValue(newOption, names[1])) {\n merged[names[2]] = null;\n }\n else if (hasValue(newOption, names[2])) {\n merged[names[1]] = null;\n }\n return merged;\n }\n\n // Case: newOption: {width: ..., right: ...},\n // or targetOption: {right: ...} and newOption: {width: ...},\n // There is no conflict when merged only has params count\n // little than enoughParamNumber.\n if (mergedValueCount === enoughParamNumber || !newValueCount) {\n return merged;\n }\n // Case: newOption: {width: ..., right: ...},\n // Than we can make sure user only want those two, and ignore\n // all origin params in targetOption.\n else if (newValueCount >= enoughParamNumber) {\n return newParams;\n }\n else {\n // Chose another param from targetOption by priority.\n for (let i = 0; i < names.length; i++) {\n const name = names[i];\n if (!hasProp(newParams, name) && hasProp(targetOption, name)) {\n newParams[name] = targetOption[name];\n break;\n }\n }\n return newParams;\n }\n }\n\n function hasProp(obj: object, name: string): boolean {\n return obj.hasOwnProperty(name);\n }\n\n function hasValue(obj: Dictionary, name: string): boolean {\n return obj[name] != null && obj[name] !== 'auto';\n }\n\n function copy(names: readonly string[], target: Dictionary, source: Dictionary) {\n each(names, function (name) {\n target[name] = source[name];\n });\n }\n}\n\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n */\nexport function getLayoutParams(source: BoxLayoutOptionMixin): BoxLayoutOptionMixin {\n return copyLayoutParams({}, source);\n}\n\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n * @param {Object} source\n * @return {Object} Result contains those props.\n */\nexport function copyLayoutParams(target: BoxLayoutOptionMixin, source: BoxLayoutOptionMixin): BoxLayoutOptionMixin {\n source && target && each(LOCATION_PARAMS, function (name: BoxLayoutKeys) {\n source.hasOwnProperty(name) && (target[name] = source[name]);\n });\n return target;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from './Model';\nimport * as componentUtil from '../util/component';\nimport {\n enableClassManagement,\n parseClassType,\n isExtendedClass,\n ExtendableConstructor,\n ClassManager,\n mountExtend\n} from '../util/clazz';\nimport {\n makeInner, ModelFinderIndexQuery, queryReferringComponents, ModelFinderIdQuery, QueryReferringOpt\n} from '../util/model';\nimport * as layout from '../util/layout';\nimport GlobalModel from './Global';\nimport {\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n ComponentFullType,\n ComponentLayoutMode,\n BoxLayoutOptionMixin\n} from '../util/types';\n\nconst inner = makeInner<{\n defaultOption: ComponentOption\n}, ComponentModel>();\n\n\nclass ComponentModel extends Model {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n /**\n * @readonly\n */\n type: ComponentFullType;\n\n /**\n * @readonly\n */\n id: string;\n\n /**\n * Because simplified concept is probably better, series.name (or component.name)\n * has been having too many resposibilities:\n * (1) Generating id (which requires name in option should not be modified).\n * (2) As an index to mapping series when merging option or calling API (a name\n * can refer to more then one components, which is convinient is some case).\n * (3) Display.\n * @readOnly But injected\n */\n name: string;\n\n /**\n * @readOnly\n */\n mainType: ComponentMainType;\n\n /**\n * @readOnly\n */\n subType: ComponentSubType;\n\n /**\n * @readOnly\n */\n componentIndex: number;\n\n /**\n * @readOnly\n */\n protected defaultOption: ComponentOption;\n\n /**\n * @readOnly\n */\n ecModel: GlobalModel;\n\n /**\n * @readOnly\n */\n static dependencies: string[];\n\n\n readonly uid: string;\n\n // // No common coordinateSystem needed. Each sub class implement\n // // `CoordinateSystemHostModel` itself.\n // coordinateSystem: CoordinateSystemMaster | CoordinateSystemExecutive;\n\n /**\n * Support merge layout params.\n * Only support 'box' now (left/right/top/bottom/width/height).\n */\n static layoutMode: ComponentLayoutMode | ComponentLayoutMode['type'];\n\n /**\n * Prevent from auto set z, zlevel, z2 by the framework.\n */\n preventAutoZ: boolean;\n\n // Injectable properties:\n __viewId: string;\n __requireNewView: boolean;\n\n static protoInitialize = (function () {\n const proto = ComponentModel.prototype;\n proto.type = 'component';\n proto.id = '';\n proto.name = '';\n proto.mainType = '';\n proto.subType = '';\n proto.componentIndex = 0;\n })();\n\n\n constructor(option: Opt, parentModel: Model, ecModel: GlobalModel) {\n super(option, parentModel, ecModel);\n this.uid = componentUtil.getUID('ec_cpt_model');\n }\n\n init(option: Opt, parentModel: Model, ecModel: GlobalModel): void {\n this.mergeDefaultAndTheme(option, ecModel);\n }\n\n mergeDefaultAndTheme(option: Opt, ecModel: GlobalModel): void {\n const layoutMode = layout.fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? layout.getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n const themeModel = ecModel.getTheme();\n zrUtil.merge(option, themeModel.get(this.mainType));\n zrUtil.merge(option, this.getDefaultOption());\n\n if (layoutMode) {\n layout.mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n mergeOption(option: Opt, ecModel: GlobalModel): void {\n zrUtil.merge(this.option, option, true);\n\n const layoutMode = layout.fetchLayoutMode(this);\n if (layoutMode) {\n layout.mergeLayoutParam(\n this.option as BoxLayoutOptionMixin,\n option as BoxLayoutOptionMixin,\n layoutMode\n );\n }\n }\n\n /**\n * Called immediately after `init` or `mergeOption` of this instance called.\n */\n optionUpdated(newCptOption: Opt, isInit: boolean): void {}\n\n /**\n * [How to declare defaultOption]:\n *\n * (A) If using class declaration in typescript (since echarts 5):\n * ```ts\n * import {ComponentOption} from '../model/option';\n * export interface XxxOption extends ComponentOption {\n * aaa: number\n * }\n * export class XxxModel extends Component {\n * static type = 'xxx';\n * static defaultOption: XxxOption = {\n * aaa: 123\n * }\n * }\n * Component.registerClass(XxxModel);\n * ```\n * ```ts\n * import {inheritDefaultOption} from '../util/component';\n * import {XxxModel, XxxOption} from './XxxModel';\n * export interface XxxSubOption extends XxxOption {\n * bbb: number\n * }\n * class XxxSubModel extends XxxModel {\n * static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {\n * bbb: 456\n * })\n * fn() {\n * let opt = this.getDefaultOption();\n * // opt is {aaa: 123, bbb: 456}\n * }\n * }\n * ```\n *\n * (B) If using class extend (previous approach in echarts 3 & 4):\n * ```js\n * let XxxComponent = Component.extend({\n * defaultOption: {\n * xx: 123\n * }\n * })\n * ```\n * ```js\n * let XxxSubComponent = XxxComponent.extend({\n * defaultOption: {\n * yy: 456\n * },\n * fn: function () {\n * let opt = this.getDefaultOption();\n * // opt is {xx: 123, yy: 456}\n * }\n * })\n * ```\n */\n getDefaultOption(): Opt {\n const ctor = this.constructor;\n\n // If using class declaration, it is different to travel super class\n // in legacy env and auto merge defaultOption. So if using class\n // declaration, defaultOption should be merged manually.\n if (!isExtendedClass(ctor)) {\n // When using ts class, defaultOption must be declared as static.\n return (ctor as any).defaultOption;\n }\n\n // FIXME: remove this approach?\n const fields = inner(this);\n if (!fields.defaultOption) {\n const optList = [];\n let clz = ctor as ExtendableConstructor;\n while (clz) {\n const opt = clz.prototype.defaultOption;\n opt && optList.push(opt);\n clz = clz.superClass;\n }\n\n let defaultOption = {};\n for (let i = optList.length - 1; i >= 0; i--) {\n defaultOption = zrUtil.merge(defaultOption, optList[i], true);\n }\n fields.defaultOption = defaultOption;\n }\n return fields.defaultOption as Opt;\n }\n\n /**\n * Notice: always force to input param `useDefault` in case that forget to consider it.\n * The same behavior as `modelUtil.parseFinder`.\n *\n * @param useDefault In many cases like series refer axis and axis refer grid,\n * If axis index / axis id not specified, use the first target as default.\n * In other cases like dataZoom refer axis, if not specified, measn no refer.\n */\n getReferringComponents(mainType: ComponentMainType, opt: QueryReferringOpt): {\n // Always be array rather than null/undefined, which is convenient to use.\n models: ComponentModel[];\n // Whether target compoent specified\n specified: boolean;\n } {\n const indexKey = (mainType + 'Index') as keyof Opt;\n const idKey = (mainType + 'Id') as keyof Opt;\n\n return queryReferringComponents(\n this.ecModel,\n mainType,\n {\n index: this.get(indexKey, true) as unknown as ModelFinderIndexQuery,\n id: this.get(idKey, true) as unknown as ModelFinderIdQuery\n },\n opt\n );\n }\n\n getBoxLayoutParams() {\n // Consider itself having box layout configs.\n const boxLayoutModel = this as Model;\n return {\n left: boxLayoutModel.get('left'),\n top: boxLayoutModel.get('top'),\n right: boxLayoutModel.get('right'),\n bottom: boxLayoutModel.get('bottom'),\n width: boxLayoutModel.get('width'),\n height: boxLayoutModel.get('height')\n };\n }\n\n // // Interfaces for component / series with select ability.\n // select(dataIndex?: number[], dataType?: string): void {}\n\n // unSelect(dataIndex?: number[], dataType?: string): void {}\n\n // getSelectedDataIndices(): number[] {\n // return [];\n // }\n\n\n static registerClass: ClassManager['registerClass'];\n\n static hasClass: ClassManager['hasClass'];\n\n static registerSubTypeDefaulter: componentUtil.SubTypeDefaulterManager['registerSubTypeDefaulter'];\n\n}\n\nexport type ComponentModelConstructor = typeof ComponentModel\n & ClassManager\n & componentUtil.SubTypeDefaulterManager\n & ExtendableConstructor\n & componentUtil.TopologicalTravelable;\n\nmountExtend(ComponentModel, Model);\nenableClassManagement(ComponentModel as ComponentModelConstructor);\ncomponentUtil.enableSubTypeDefaulter(ComponentModel as ComponentModelConstructor);\ncomponentUtil.enableTopologicalTravel(ComponentModel as ComponentModelConstructor, getDependencies);\n\n\nfunction getDependencies(componentType: string): string[] {\n let deps: string[] = [];\n zrUtil.each((ComponentModel as ComponentModelConstructor).getClassesByMainType(componentType), function (clz) {\n deps = deps.concat((clz as any).dependencies || (clz as any).prototype.dependencies || []);\n });\n\n // Ensure main type.\n deps = zrUtil.map(deps, function (type) {\n return parseClassType(type).main;\n });\n\n // Hack dataset for convenience.\n if (componentType !== 'dataset' && zrUtil.indexOf(deps, 'dataset') <= 0) {\n deps.unshift('dataset');\n }\n\n return deps;\n}\n\n\nexport default ComponentModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nlet platform = '';\n// Navigator not exists in node\nif (typeof navigator !== 'undefined') {\n /* global navigator */\n platform = navigator.platform || '';\n}\n\nconst decalColor = 'rgba(0, 0, 0, 0.2)';\n\nexport default {\n\n darkMode: 'auto',\n // backgroundColor: 'rgba(0,0,0,0)',\n\n colorBy: 'series',\n\n color: [\n '#5470c6',\n '#91cc75',\n '#fac858',\n '#ee6666',\n '#73c0de',\n '#3ba272',\n '#fc8452',\n '#9a60b4',\n '#ea7ccc'\n ],\n\n gradientColor: ['#f6efa6', '#d88273', '#bf444c'],\n\n aria: {\n decal: {\n decals: [{\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [2, 5],\n symbolSize: 1,\n rotation: Math.PI / 6\n }, {\n color: decalColor,\n symbol: 'circle',\n dashArrayX: [[8, 8], [0, 8, 8, 0]],\n dashArrayY: [6, 0],\n symbolSize: 0.8\n }, {\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [4, 3],\n rotation: -Math.PI / 4\n }, {\n color: decalColor,\n dashArrayX: [[6, 6], [0, 6, 6, 0]],\n dashArrayY: [6, 0]\n }, {\n color: decalColor,\n dashArrayX: [[1, 0], [1, 6]],\n dashArrayY: [1, 0, 6, 0],\n rotation: Math.PI / 4\n }, {\n color: decalColor,\n symbol: 'triangle',\n dashArrayX: [[9, 9], [0, 9, 9, 0]],\n dashArrayY: [7, 2],\n symbolSize: 0.75\n }]\n }\n },\n\n // If xAxis and yAxis declared, grid is created by default.\n // grid: {},\n\n textStyle: {\n // color: '#000',\n // decoration: 'none',\n // PENDING\n fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',\n // fontFamily: 'Arial, Verdana, sans-serif',\n fontSize: 12,\n fontStyle: 'normal',\n fontWeight: 'normal'\n },\n\n // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/\n // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n // Default is source-over\n blendMode: null,\n\n stateAnimation: {\n duration: 300,\n easing: 'cubicOut'\n },\n\n animation: 'auto',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut',\n animationEasingUpdate: 'cubicInOut',\n\n animationThreshold: 2000,\n\n // Configuration for progressive/incremental rendering\n progressiveThreshold: 3000,\n progressive: 400,\n\n // Threshold of if use single hover layer to optimize.\n // It is recommended that `hoverLayerThreshold` is equivalent to or less than\n // `progressiveThreshold`, otherwise hover will cause restart of progressive,\n // which is unexpected.\n // see example .\n hoverLayerThreshold: 3000,\n\n // See: module:echarts/scale/Time\n useUTC: false\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * [Notice]:\n * Consider custom bundle on demand, chart specified\n * or component specified types and constants should\n * not put here. Only common types and constants can\n * be put in this file.\n */\n\nimport Group from 'zrender/src/graphic/Group';\nimport Element, {ElementEvent, ElementTextConfig} from 'zrender/src/Element';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport SeriesModel from '../model/Series';\nimport { createHashMap, HashMap } from 'zrender/src/core/util';\nimport { TaskPlanCallbackReturn, TaskProgressParams } from '../core/task';\nimport SeriesData from '../data/SeriesData';\nimport { Dictionary, ElementEventName, ImageLike, TextAlign, TextVerticalAlign } from 'zrender/src/core/types';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\nimport { TooltipMarker } from './format';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\nimport { LinearGradientObject } from 'zrender/src/graphic/LinearGradient';\nimport { RadialGradientObject } from 'zrender/src/graphic/RadialGradient';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { TSpanStyleProps } from 'zrender/src/graphic/TSpan';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { Source } from '../data/Source';\nimport Model from '../model/Model';\nimport { DataStorageDimensionType } from '../data/DataStorage';\nimport { DimensionUserOuputEncode } from '../data/helper/dimensionHelper';\n\n\n\n// ---------------------------\n// Common types and constants\n// ---------------------------\n\nexport {Dictionary};\n\nexport type RendererType = 'canvas' | 'svg';\n\nexport type LayoutOrient = 'vertical' | 'horizontal';\nexport type HorizontalAlign = 'left' | 'center' | 'right';\nexport type VerticalAlign = 'top' | 'middle' | 'bottom';\n\n// Types from zrender\nexport type ColorString = string;\nexport type ZRColor = ColorString | LinearGradientObject | RadialGradientObject | PatternObject;\nexport type ZRLineType = 'solid' | 'dotted' | 'dashed' | number | number[];\n\nexport type ZRFontStyle = 'normal' | 'italic' | 'oblique';\nexport type ZRFontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | number;\n\nexport type ZREasing = AnimationEasing;\n\nexport type ZRTextAlign = TextAlign;\nexport type ZRTextVerticalAlign = TextVerticalAlign;\n\nexport type ZRElementEvent = ElementEvent;\n\nexport type ZRRectLike = RectLike;\n\nexport type ZRStyleProps = PathStyleProps | ImageStyleProps | TSpanStyleProps | TextStyleProps;\n\nexport type ZRElementEventName = ElementEventName | 'globalout';\n\n// ComponentFullType can be:\n// 'xxx.yyy': means ComponentMainType.ComponentSubType.\n// 'xxx': means ComponentMainType.\n// See `checkClassType` check the restict definition.\nexport type ComponentFullType = string;\nexport type ComponentMainType = keyof ECUnitOption & string;\nexport type ComponentSubType = Exclude;\n/**\n * Use `parseClassType` to parse componentType declaration to componentTypeInfo.\n * For example:\n * componentType declaration: 'xxx.yyy', get componentTypeInfo {main: 'xxx', sub: 'yyy'}.\n * componentType declaration: '', get componentTypeInfo {main: '', sub: ''}.\n */\nexport interface ComponentTypeInfo {\n main: ComponentMainType; // Never null/undefined. `''` represents absence.\n sub: ComponentSubType; // Never null/undefined. `''` represents absence.\n}\n\nexport interface ECElement extends Element {\n highDownSilentOnTouch?: boolean;\n onHoverStateChange?: (toState: DisplayState) => void;\n\n // 0: normal\n // 1: blur\n // 2: emphasis\n hoverState?: 0 | 1 | 2;\n selected?: boolean;\n\n z2EmphasisLift?: number;\n z2SelectLift?: number;\n /**\n * Force disable animation on any condition\n */\n disableLabelAnimation?: boolean\n /**\n * Force disable overall layout\n */\n disableLabelLayout?: boolean\n /**\n * Force disable morphing\n */\n disableMorphing?: boolean\n}\n\nexport interface DataHost {\n getData(dataType?: SeriesDataType): SeriesData;\n}\n\nexport interface DataModel extends Model, DataHost, DataFormatMixin {}\n // Pick,\n // Pick {}\n\ninterface PayloadItem {\n excludeSeriesId?: OptionId | OptionId[];\n animation?: PayloadAnimationPart\n // TODO use unknown\n [other: string]: any;\n}\n\nexport interface Payload extends PayloadItem {\n type: string;\n escapeConnect?: boolean;\n batch?: PayloadItem[];\n}\n\nexport interface HighlightPayload extends Payload {\n type: 'highlight';\n notBlur?: boolean\n}\n\nexport interface DownplayPayload extends Payload {\n type: 'downplay';\n notBlur?: boolean\n}\n\n// Payload includes override anmation info\nexport interface PayloadAnimationPart {\n duration?: number\n easing?: AnimationEasing\n delay?: number\n}\n\nexport interface SelectChangedPayload extends Payload {\n type: 'selectchanged'\n escapeConnect: boolean\n isFromClick: boolean\n fromAction: 'select' | 'unselect' | 'toggleSelected'\n fromActionPayload: Payload\n selected: {\n seriesIndex: number\n dataType?: SeriesDataType\n dataIndex: number[]\n }[]\n}\n\nexport interface ViewRootGroup extends Group {\n __ecComponentInfo?: {\n mainType: string,\n index: number\n };\n}\n\nexport interface ECElementEvent extends\n ECEventData,\n CallbackDataParams {\n\n type: ZRElementEventName;\n event?: ElementEvent;\n\n}\n/**\n * The echarts event type to user.\n * Also known as packedEvent.\n */\nexport interface ECActionEvent extends ECEventData {\n // event type\n type: string;\n componentType?: string;\n componentIndex?: number;\n seriesIndex?: number;\n escapeConnect?: boolean;\n batch?: ECEventData;\n}\nexport interface ECEventData {\n // TODO use unknown\n [key: string]: any;\n}\n\nexport interface EventQueryItem {\n // TODO use unknown\n [key: string]: any;\n}\nexport interface NormalizedEventQuery {\n cptQuery: EventQueryItem;\n dataQuery: EventQueryItem;\n otherQuery: EventQueryItem;\n}\n\nexport interface ActionInfo {\n // action type\n type: string;\n // If not provided, use the same string of `type`.\n event?: string;\n // update method\n update?: string;\n}\nexport interface ActionHandler {\n (payload: Payload, ecModel: GlobalModel, api: ExtensionAPI): void | ECEventData;\n}\n\nexport interface OptionPreprocessor {\n (option: ECUnitOption, isTheme: boolean): void\n}\n\nexport interface PostUpdater {\n (ecModel: GlobalModel, api: ExtensionAPI): void;\n}\n\nexport interface StageHandlerReset {\n (seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload):\n StageHandlerProgressExecutor | StageHandlerProgressExecutor[] | void\n}\nexport interface StageHandlerOverallReset {\n (ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload): void\n}\nexport interface StageHandler {\n /**\n * Indicate that the task will be piped all series\n * (`performRawSeries` indicate whether includes filtered series).\n */\n createOnAllSeries?: boolean;\n /**\n * Indicate that the task will be only piped in the pipeline of this type of series.\n * (`performRawSeries` indicate whether includes filtered series).\n */\n seriesType?: string;\n /**\n * Indicate that the task will be only piped in the pipeline of the returned series.\n */\n getTargetSeries?: (ecModel: GlobalModel, api: ExtensionAPI) => HashMap;\n\n /**\n * If `true`, filtered series will also be \"performed\".\n */\n performRawSeries?: boolean;\n\n /**\n * Called only when this task in a pipeline.\n */\n plan?: StageHandlerPlan;\n /**\n * If `overallReset` specified, an \"overall task\" will be created.\n * \"overall task\" does not belong to a certain pipeline.\n * They always be \"performed\" in certain phase (depends on when they declared).\n * They has \"stub\"s to connect with pipelines (one stub for one pipeline),\n * delivering info like \"dirty\" and \"output end\".\n */\n overallReset?: StageHandlerOverallReset;\n /**\n * Called only when this task in a pipeline, and \"dirty\".\n */\n reset?: StageHandlerReset;\n}\n\nexport interface StageHandlerInternal extends StageHandler {\n uid: string;\n visualType?: 'layout' | 'visual';\n // modifyOutputEnd?: boolean;\n __prio: number;\n __raw: StageHandler | StageHandlerOverallReset;\n isVisual?: boolean; // PENDING: not used\n isLayout?: boolean; // PENDING: not used\n}\n\n\nexport type StageHandlerProgressParams = TaskProgressParams;\nexport interface StageHandlerProgressExecutor {\n dataEach?: (data: SeriesData, idx: number) => void;\n progress?: (params: StageHandlerProgressParams, data: SeriesData) => void;\n}\nexport type StageHandlerPlanReturn = TaskPlanCallbackReturn;\nexport interface StageHandlerPlan {\n (seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload):\n StageHandlerPlanReturn\n}\n\nexport interface LoadingEffectCreator {\n (api: ExtensionAPI, cfg: object): LoadingEffect;\n}\nexport interface LoadingEffect extends Element {\n resize: () => void;\n}\n\n/**\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n */\nexport type TooltipRenderMode = 'html' | 'richText';\n\nexport type TooltipOrderMode = 'valueAsc' | 'valueDesc' | 'seriesAsc' | 'seriesDesc';\n\n\n// ---------------------------------\n// Data and dimension related types\n// ---------------------------------\n\n// Finally the user data will be parsed and stored in `list._storage`.\n// `NaN` represents \"no data\" (raw data `null`/`undefined`/`NaN`/`'-'`).\n// `Date` will be parsed to timestamp.\n// Ordinal/category data will be parsed to its index if possible, otherwise\n// keep its original string in list._storage.\n// Check `convertValue` for more details.\nexport type OrdinalRawValue = string | number;\nexport type OrdinalNumber = number; // The number mapped from each OrdinalRawValue.\n\n/**\n * @usage For example,\n * ```js\n * { ordinalNumbers: [2, 5, 3, 4] }\n * ```\n * means that ordinal 2 should be diplayed on tick 0,\n * ordinal 5 should be displayed on tick 1, ...\n */\nexport type OrdinalSortInfo = {\n ordinalNumbers: OrdinalNumber[];\n};\n\n/**\n * `OptionDataValue` is the primitive value in `series.data` or `dataset.source`.\n * `OptionDataValue` are parsed (see `src/data/helper/dataValueHelper.parseDataValue`)\n * into `ParsedValue` and stored into `data/SeriesData` storage.\n * Note:\n * (1) The term \"parse\" does not mean `src/scale/Scale['parse']`.\n * (2) If a category dimension is not mapped to any axis, its raw value will NOT be\n * parsed to `OrdinalNumber` but keep the original `OrdinalRawValue` in `src/data/SeriesData` storage.\n */\nexport type ParsedValue = ParsedValueNumeric | OrdinalRawValue;\nexport type ParsedValueNumeric = number | OrdinalNumber;\n\n/**\n * `ScaleDataValue` means that the user input primitive value to `src/scale/Scale`.\n * (For example, used in `axis.min`, `axis.max`, `convertToPixel`).\n * Note:\n * `ScaleDataValue` is a little different from `OptionDataValue`, because it will not go through\n * `src/data/helper/dataValueHelper.parseDataValue`, but go through `src/scale/Scale['parse']`.\n */\nexport type ScaleDataValue = ParsedValueNumeric | OrdinalRawValue | Date;\n\nexport interface ScaleTick {\n value: number\n};\nexport interface TimeScaleTick extends ScaleTick {\n /**\n * Level information is used for label formatting.\n * For example, a time axis may contain labels like: Jan, 8th, 16th, 23th,\n * Feb, and etc. In this case, month labels like Jan and Feb should be\n * displayed in a more significant way than days.\n * `level` is set to be 0 when it's the most significant level, like month\n * labels in the above case.\n */\n level?: number\n};\nexport interface OrdinalScaleTick extends ScaleTick {\n /**\n * Represents where the tick will be placed visually.\n * Notice:\n * The value is not the raw ordinal value. And do not changed\n * after ordinal scale sorted.\n * We need to:\n * ```js\n * const coord = dataToCoord(ordinalScale.getRawOrdinalNumber(tick.value)).\n * ```\n * Why place the tick value here rather than the raw ordinal value (like LogScale did)?\n * Becuase ordinal scale sort is the different case from LogScale, where\n * axis tick, splitArea should better not to be sorted, especially in\n * anid(animation id) when `boundaryGap: true`.\n * Only axis label are sorted.\n */\n value: number\n};\n\n// Can only be string or index, because it is used in object key in some code.\n// Making the type alias here just intending to show the meaning clearly in code.\nexport type DimensionIndex = number;\n// If being a number-like string but not being defined a dimension name.\n// See `List.js#getDimension` for more details.\nexport type DimensionIndexLoose = DimensionIndex | string;\nexport type DimensionName = string;\nexport type DimensionLoose = DimensionName | DimensionIndexLoose;\nexport type DimensionType = DataStorageDimensionType;\n\nexport const VISUAL_DIMENSIONS = createHashMap([\n 'tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'seriesName'\n]);\n// The key is VISUAL_DIMENSIONS\nexport interface DataVisualDimensions {\n // can be set as false to directly to prevent this data\n // dimension from displaying in the default tooltip.\n // see `Series.ts#formatTooltip`.\n tooltip?: DimensionIndex | false;\n label?: DimensionIndex;\n itemName?: DimensionIndex;\n itemId?: DimensionIndex;\n itemGroupId?: DimensionIndex;\n seriesName?: DimensionIndex;\n}\n\nexport type DimensionDefinition = {\n type?: DataStorageDimensionType,\n name?: DimensionName,\n displayName?: string\n};\nexport type DimensionDefinitionLoose = DimensionDefinition['name'] | DimensionDefinition;\n\nexport const SOURCE_FORMAT_ORIGINAL = 'original' as const;\nexport const SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows' as const;\nexport const SOURCE_FORMAT_OBJECT_ROWS = 'objectRows' as const;\nexport const SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns' as const;\nexport const SOURCE_FORMAT_TYPED_ARRAY = 'typedArray' as const;\nexport const SOURCE_FORMAT_UNKNOWN = 'unknown' as const;\n\nexport type SourceFormat =\n typeof SOURCE_FORMAT_ORIGINAL\n | typeof SOURCE_FORMAT_ARRAY_ROWS\n | typeof SOURCE_FORMAT_OBJECT_ROWS\n | typeof SOURCE_FORMAT_KEYED_COLUMNS\n | typeof SOURCE_FORMAT_TYPED_ARRAY\n | typeof SOURCE_FORMAT_UNKNOWN;\n\nexport const SERIES_LAYOUT_BY_COLUMN = 'column' as const;\nexport const SERIES_LAYOUT_BY_ROW = 'row' as const;\n\nexport type SeriesLayoutBy = typeof SERIES_LAYOUT_BY_COLUMN | typeof SERIES_LAYOUT_BY_ROW;\n// null/undefined/'auto': auto detect header, see \"src/data/helper/sourceHelper\".\n// If number, means header lines count, or say, `startIndex`.\n// Like `sourceHeader: 2`, means line 0 and line 1 are header, data start from line 2.\nexport type OptionSourceHeader = boolean | 'auto' | number;\n\nexport type SeriesDataType = 'main' | 'node' | 'edge';\n\n\n// --------------------------------------------\n// echarts option types (base and common part)\n// --------------------------------------------\n\n/**\n * [ECUnitOption]:\n * An object that contains definitions of components\n * and other properties. For example:\n *\n * ```ts\n * let option: ECUnitOption = {\n *\n * // Single `title` component:\n * title: {...},\n *\n * // Two `visualMap` components:\n * visualMap: [{...}, {...}],\n *\n * // Two `series.bar` components\n * // and one `series.pie` component:\n * series: [\n * {type: 'bar', data: [...]},\n * {type: 'bar', data: [...]},\n * {type: 'pie', data: [...]}\n * ],\n *\n * // A property:\n * backgroundColor: '#421ae4'\n *\n * // A property object:\n * textStyle: {\n * color: 'red',\n * fontSize: 20\n * }\n * };\n * ```\n */\nexport type ECUnitOption = {\n // Exclude these reserverd word for `ECOption` to avoid to infer to \"any\".\n baseOption?: unknown\n options?: unknown\n media?: unknown\n\n timeline?: ComponentOption | ComponentOption[]\n backgroundColor?: ZRColor\n darkMode?: boolean | 'auto'\n textStyle?: Pick\n useUTC?: boolean\n\n [key: string]: ComponentOption | ComponentOption[] | Dictionary | unknown\n\n stateAnimation?: AnimationOption\n} & AnimationOptionMixin & ColorPaletteOptionMixin;\n\n/**\n * [ECOption]:\n * An object input to echarts.setOption(option).\n * May be an 'option: ECUnitOption',\n * or may be an object contains multi-options. For example:\n *\n * ```ts\n * let option: ECOption = {\n * baseOption: {\n * title: {...},\n * legend: {...},\n * series: [\n * {data: [...]},\n * {data: [...]},\n * ...\n * ]\n * },\n * timeline: {...},\n * options: [\n * {title: {...}, series: {data: [...]}},\n * {title: {...}, series: {data: [...]}},\n * ...\n * ],\n * media: [\n * {\n * query: {maxWidth: 320},\n * option: {series: {x: 20}, visualMap: {show: false}}\n * },\n * {\n * query: {minWidth: 320, maxWidth: 720},\n * option: {series: {x: 500}, visualMap: {show: true}}\n * },\n * {\n * option: {series: {x: 1200}, visualMap: {show: true}}\n * }\n * ]\n * };\n * ```\n */\nexport interface ECBasicOption extends ECUnitOption {\n baseOption?: ECUnitOption;\n timeline?: ComponentOption | ComponentOption[];\n options?: ECUnitOption[];\n media?: MediaUnit[];\n};\n\n// series.data or dataset.source\nexport type OptionSourceData<\n VAL extends OptionDataValue = OptionDataValue,\n ORIITEM extends OptionDataItemOriginal = OptionDataItemOriginal\n> =\n OptionSourceDataOriginal\n | OptionSourceDataObjectRows\n | OptionSourceDataArrayRows\n | OptionSourceDataKeyedColumns\n | OptionSourceDataTypedArray;\nexport type OptionDataItemOriginal<\n VAL extends OptionDataValue = OptionDataValue\n> = VAL | VAL[] | OptionDataItemObject;\nexport type OptionSourceDataOriginal<\n VAL extends OptionDataValue = OptionDataValue,\n ORIITEM extends OptionDataItemOriginal = OptionDataItemOriginal\n> = ArrayLike;\nexport type OptionSourceDataObjectRows =\n Array>;\nexport type OptionSourceDataArrayRows =\n Array>;\nexport type OptionSourceDataKeyedColumns =\n Dictionary>;\nexport type OptionSourceDataTypedArray = ArrayLike;\n\n// See also `model.js#getDataItemValue`.\nexport type OptionDataItem =\n OptionDataValue\n | Dictionary\n | OptionDataValue[]\n // FIXME: In some case (markpoint in geo (geo-map.html)), dataItem is {coord: [...]}\n | OptionDataItemObject;\n// Only for `SOURCE_FORMAT_KEYED_ORIGINAL`\nexport type OptionDataItemObject = {\n id?: OptionId;\n name?: OptionName;\n groupId?: OptionId;\n value?: T[] | T;\n selected?: boolean;\n};\n// Compat number because it is usually used and not easy to\n// restrict it in practise.\nexport type OptionId = string | number;\nexport type OptionName = string | number;\nexport interface GraphEdgeItemObject<\n VAL extends OptionDataValue\n> extends OptionDataItemObject {\n /**\n * Name or index of source node.\n */\n source?: string | number\n /**\n * Name or index of target node.\n */\n target?: string | number\n}\nexport type OptionDataValue = string | number | Date;\n\nexport type OptionDataValueNumeric = number | '-';\nexport type OptionDataValueCategory = string;\nexport type OptionDataValueDate = Date | string | number;\n\n// export type ModelOption = Dictionary | any[] | string | number | boolean | ((...args: any) => any);\nexport type ModelOption = any;\nexport type ThemeOption = Dictionary;\n\nexport type DisplayState = 'normal' | 'emphasis' | 'blur' | 'select';\nexport type DisplayStateNonNormal = Exclude;\nexport type DisplayStateHostOption = {\n emphasis?: Dictionary,\n [key: string]: any\n};\n\n// The key is VISUAL_DIMENSIONS\nexport interface OptionEncodeVisualDimensions {\n tooltip?: OptionEncodeValue;\n label?: OptionEncodeValue;\n itemName?: OptionEncodeValue;\n itemId?: OptionEncodeValue;\n seriesName?: OptionEncodeValue;\n // Notice: `value` is coordDim, not nonCoordDim.\n\n // Group id is used for linking the aggregate relationship between two set of data.\n // Which is useful in prepresenting the transition key of drilldown/up animation.\n // Or hover linking.\n itemGroupId?: OptionEncodeValue;\n}\nexport interface OptionEncode extends OptionEncodeVisualDimensions {\n [coordDim: string]: OptionEncodeValue | undefined\n}\nexport type OptionEncodeValue = DimensionLoose | DimensionLoose[];\nexport type EncodeDefaulter = (source: Source, dimCount: number) => OptionEncode;\n\n// TODO: TYPE Different callback param for different series\nexport interface CallbackDataParams {\n // component main type\n componentType: string;\n // component sub type\n componentSubType: string;\n componentIndex: number;\n // series component sub type\n seriesType?: string;\n // series component index (the alias of `componentIndex` for series)\n seriesIndex?: number;\n seriesId?: string;\n seriesName?: string;\n name: string;\n dataIndex: number;\n data: OptionDataItem;\n dataType?: SeriesDataType;\n value: OptionDataItem | OptionDataValue;\n color?: ZRColor;\n borderColor?: string;\n dimensionNames?: DimensionName[];\n encode?: DimensionUserOuputEncode;\n marker?: TooltipMarker;\n status?: DisplayState;\n dimensionIndex?: number;\n percent?: number; // Only for chart like 'pie'\n\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: string[];\n}\nexport type InterpolatableValue = ParsedValue | ParsedValue[];\n\nexport type DecalDashArrayX = number | (number | number[])[];\nexport type DecalDashArrayY = number | number[];\nexport interface DecalObject {\n // 'image', 'triangle', 'diamond', 'pin', 'arrow', 'line', 'rect', 'roundRect', 'square', 'circle'\n symbol?: string | string[]\n\n // size relative to the dash bounding box; valued from 0 to 1\n symbolSize?: number\n // keep the aspect ratio and use the smaller one of width and height as bounding box size\n symbolKeepAspect?: boolean\n\n // foreground color of the pattern\n color?: string\n // background color of the pattern; default value is 'none' (same as 'transparent') so that the underlying series color is displayed\n backgroundColor?: string\n\n // dash-gap pattern on x\n dashArrayX?: DecalDashArrayX\n // dash-gap pattern on y\n dashArrayY?: DecalDashArrayY\n\n // in radians; valued from -Math.PI to Math.PI\n rotation?: number\n\n // boundary of largest tile width\n maxTileWidth?: number\n // boundary of largest tile height\n maxTileHeight?: number\n};\n\nexport interface InnerDecalObject extends DecalObject {\n // Mark dirty when object may be changed.\n // The record in WeakMap will be deleted.\n dirty?: boolean\n}\n\nexport interface MediaQuery {\n minWidth?: number;\n maxWidth?: number;\n minHeight?: number;\n maxHeight?: number;\n minAspectRatio?: number;\n maxAspectRatio?: number;\n};\nexport type MediaUnit = {\n query?: MediaQuery,\n option: ECUnitOption\n};\n\nexport type ComponentLayoutMode = {\n // Only support 'box' now.\n type?: 'box',\n ignoreSize?: boolean | boolean[]\n};\n/******************* Mixins for Common Option Properties ********************** */\nexport type PaletteOptionMixin = ColorPaletteOptionMixin;\n\nexport interface ColorPaletteOptionMixin {\n color?: ZRColor | ZRColor[]\n colorLayer?: ZRColor[][]\n}\n\nexport interface AriaLabelOption {\n enabled?: boolean;\n description?: string;\n general?: {\n withTitle?: string;\n withoutTitle?: string;\n };\n series?: {\n maxCount?: number;\n single?: {\n prefix?: string;\n withName?: string;\n withoutName?: string;\n };\n multiple?: {\n prefix?: string;\n withName?: string;\n withoutName?: string;\n separator?: {\n middle?: string;\n end?: string;\n }\n }\n };\n data?: {\n maxCount?: number;\n allData?: string;\n partialData?: string;\n withName?: string;\n withoutName?: string;\n separator?: {\n middle?: string;\n end?: string;\n }\n }\n}\n\n// Extending is for compating ECharts 4\nexport interface AriaOption extends AriaLabelOption {\n mainType?: 'aria';\n\n enabled?: boolean;\n label?: AriaLabelOption;\n decal?: {\n show?: boolean;\n decals?: DecalObject | DecalObject[];\n };\n}\n\nexport interface AriaOptionMixin {\n aria?: AriaOption\n}\n\n/**\n * Mixin of option set to control the box layout of each component.\n */\nexport interface BoxLayoutOptionMixin {\n width?: number | string;\n height?: number | string;\n top?: number | string;\n right?: number | string;\n bottom?: number | string;\n left?: number | string;\n}\n\nexport interface CircleLayoutOptionMixin {\n // Can be percent\n center?: (number | string)[]\n // Can specify [innerRadius, outerRadius]\n radius?: (number | string)[] | number | string\n}\n\nexport interface ShadowOptionMixin {\n shadowBlur?: number\n shadowColor?: ColorString\n shadowOffsetX?: number\n shadowOffsetY?: number\n}\n\nexport interface BorderOptionMixin {\n borderColor?: ZRColor\n borderWidth?: number\n borderType?: ZRLineType\n borderCap?: CanvasLineCap\n borderJoin?: CanvasLineJoin\n borderDashOffset?: number\n borderMiterLimit?: number\n}\n\nexport type ColorBy = 'series' | 'data';\n\nexport interface SunburstColorByMixin {\n colorBy?: ColorBy\n}\n\nexport type AnimationDelayCallbackParam = {\n count: number\n index: number\n};\nexport type AnimationDurationCallback = (idx: number) => number;\nexport type AnimationDelayCallback = (idx: number, params?: AnimationDelayCallbackParam) => number;\n\nexport interface AnimationOption {\n duration?: number\n easing?: AnimationEasing\n delay?: number\n // additive?: boolean\n}\n/**\n * Mixin of option set to control the animation of series.\n */\nexport interface AnimationOptionMixin {\n /**\n * If enable animation\n */\n animation?: boolean\n /**\n * Disable animation when the number of elements exceeds the threshold\n */\n animationThreshold?: number\n // For init animation\n /**\n * Duration of initialize animation.\n * Can be a callback to specify duration of each element\n */\n animationDuration?: number | AnimationDurationCallback\n /**\n * Easing of initialize animation\n */\n animationEasing?: AnimationEasing\n /**\n * Delay of initialize animation\n * Can be a callback to specify duration of each element\n */\n animationDelay?: number | AnimationDelayCallback\n // For update animation\n /**\n * Delay of data update animation.\n * Can be a callback to specify duration of each element\n */\n animationDurationUpdate?: number | AnimationDurationCallback\n /**\n * Easing of data update animation.\n */\n animationEasingUpdate?: AnimationEasing\n /**\n * Delay of data update animation.\n * Can be a callback to specify duration of each element\n */\n animationDelayUpdate?: number | AnimationDelayCallback\n}\n\nexport interface RoamOptionMixin {\n /**\n * If enable roam. can be specified 'scale' or 'move'\n */\n roam?: boolean | 'pan' | 'move' | 'zoom' | 'scale'\n /**\n * Current center position.\n */\n center?: number[]\n /**\n * Current zoom level. Default is 1\n */\n zoom?: number\n\n scaleLimit?: {\n min?: number\n max?: number\n }\n}\n\n// TODO: TYPE value type?\nexport type SymbolSizeCallback = (rawValue: any, params: T) => number | number[];\nexport type SymbolCallback = (rawValue: any, params: T) => string;\nexport type SymbolRotateCallback = (rawValue: any, params: T) => number;\nexport type SymbolOffsetCallback = (rawValue: any, params: T) => string | number | (string | number)[];\n/**\n * Mixin of option set to control the element symbol.\n * Include type of symbol, and size of symbol.\n */\nexport interface SymbolOptionMixin {\n /**\n * type of symbol, like `cirlce`, `rect`, or custom path and image.\n */\n symbol?: string | (unknown extends T ? never : SymbolCallback)\n /**\n * Size of symbol.\n */\n symbolSize?: number | number[] | (unknown extends T ? never : SymbolSizeCallback)\n\n symbolRotate?: number | (unknown extends T ? never : SymbolRotateCallback)\n\n symbolKeepAspect?: boolean\n\n symbolOffset?: string | number | (string | number)[] | (unknown extends T ? never : SymbolOffsetCallback)\n}\n\n/**\n * ItemStyleOption is a most common used set to config element styles.\n * It includes both fill and stroke style.\n */\nexport interface ItemStyleOption extends ShadowOptionMixin, BorderOptionMixin {\n color?: ZRColor\n opacity?: number\n decal?: DecalObject | 'none'\n}\n\n/**\n * ItemStyleOption is a option set to control styles on lines.\n * Used in the components or series like `line`, `axis`\n * It includes stroke style.\n */\nexport interface LineStyleOption extends ShadowOptionMixin {\n width?: number\n color?: Clr\n opacity?: number\n type?: ZRLineType\n cap?: CanvasLineCap\n join?: CanvasLineJoin\n dashOffset?: number\n miterLimit?: number\n}\n\n/**\n * ItemStyleOption is a option set to control styles on an area, like polygon, rectangle.\n * It only include fill style.\n */\nexport interface AreaStyleOption extends ShadowOptionMixin {\n color?: Clr\n opacity?: number\n}\n\ntype Arrayable> = { [key in keyof T]: T[key] | T[key][] };\ntype Dictionaryable> = { [key in keyof T]: T[key] | Dictionary};\n\nexport interface VisualOptionUnit {\n symbol?: string\n // TODO Support [number, number]?\n symbolSize?: number\n color?: ColorString\n colorAlpha?: number\n opacity?: number\n colorLightness?: number\n colorSaturation?: number\n colorHue?: number\n decal?: DecalObject\n\n // Not exposed?\n liftZ?: number\n}\nexport type VisualOptionFixed = VisualOptionUnit;\n/**\n * Option about visual properties used in piecewise mapping\n * Used in each piece.\n */\nexport type VisualOptionPiecewise = VisualOptionUnit;\n/**\n * Option about visual properties used in linear mapping\n */\nexport type VisualOptionLinear = Arrayable;\n\n/**\n * Option about visual properties can be encoded from ordinal categories.\n * Each value can either be a dictonary to lookup with category name, or\n * be an array to lookup with category index. In this case the array length should\n * be same with categories\n */\nexport type VisualOptionCategory = Arrayable | Dictionaryable;\n\n/**\n * All visual properties can be encoded.\n */\nexport type BuiltinVisualProperty = keyof VisualOptionUnit;\n\nexport interface TextCommonOption extends ShadowOptionMixin {\n color?: string\n fontStyle?: ZRFontStyle\n fontWeight?: ZRFontWeight\n fontFamily?: string\n fontSize?: number | string\n align?: HorizontalAlign\n verticalAlign?: VerticalAlign\n // @deprecated\n baseline?: VerticalAlign\n\n opacity?: number\n\n lineHeight?: number\n backgroundColor?: ColorString | {\n image: ImageLike | string\n }\n borderColor?: string\n borderWidth?: number\n borderType?: ZRLineType\n borderDashOffset?: number\n borderRadius?: number | number[]\n padding?: number | number[]\n\n width?: number | string// Percent\n height?: number\n textBorderColor?: string\n textBorderWidth?: number\n textBorderType?: ZRLineType\n textBorderDashOffset?: number\n\n textShadowBlur?: number\n textShadowColor?: string\n textShadowOffsetX?: number\n textShadowOffsetY?: number\n\n tag?: string\n}\n\nexport interface LabelFormatterCallback {\n (params: T): string\n}\n/**\n * LabelOption is an option set to control the style of labels.\n * Include color, background, shadow, truncate, rotation, distance, etc..\n */\nexport interface LabelOption extends TextCommonOption {\n /**\n * If show label\n */\n show?: boolean\n // TODO: TYPE More specified 'inside', 'insideTop'....\n // x, y can be both percent string or number px.\n position?: ElementTextConfig['position']\n distance?: number\n rotate?: number\n offset?: number[]\n\n /**\n * Min margin between labels. Used when label has layout.\n */\n // It's minMargin instead of margin is for not breaking the previous code using margin.\n minMargin?: number\n\n overflow?: TextStyleProps['overflow']\n silent?: boolean\n precision?: number | 'auto'\n valueAnimation?: boolean\n\n // TODO: TYPE not all label support formatter\n // formatter?: string | ((params: CallbackDataParams) => string)\n\n rich?: Dictionary\n}\n\nexport interface SeriesLabelOption extends LabelOption {\n formatter?: string | LabelFormatterCallback\n}\n\n/**\n * Option for labels on line, like markLine, lines\n */\nexport interface LineLabelOption extends Omit {\n position?: 'start'\n | 'middle'\n | 'end'\n | 'insideStart'\n | 'insideStartTop'\n | 'insideStartBottom'\n | 'insideMiddle'\n | 'insideMiddleTop'\n | 'insideMiddleBottom'\n | 'insideEnd'\n | 'insideEndTop'\n | 'insideEndBottom'\n | 'insideMiddleBottom'\n /**\n * Distance can be an array.\n * Which will specify horizontal and vertical distance respectively\n */\n distance?: number | number[]\n}\n\nexport interface LabelLineOption {\n show?: boolean\n /**\n * If displayed above other elements\n */\n showAbove?: boolean\n length?: number\n length2?: number\n smooth?: boolean | number\n minTurnAngle?: number,\n lineStyle?: LineStyleOption\n}\n\nexport interface SeriesLineLabelOption extends LineLabelOption {\n formatter?: string | LabelFormatterCallback\n}\n\n\n\nexport interface LabelLayoutOptionCallbackParams {\n /**\n * Index of data which the label represents.\n * It can be null if label does't represent any data.\n */\n dataIndex?: number,\n /**\n * Type of data which the label represents.\n * It can be null if label does't represent any data.\n */\n dataType?: SeriesDataType,\n seriesIndex: number,\n text: string\n align: ZRTextAlign\n verticalAlign: ZRTextVerticalAlign\n rect: RectLike\n labelRect: RectLike\n // Points of label line in pie/funnel\n labelLinePoints?: number[][]\n // x: number\n // y: number\n};\n\nexport interface LabelLayoutOption {\n /**\n * If move the overlapped label. If label is still overlapped after moved.\n * It will determine if to hide this label with `hideOverlap` policy.\n *\n * shiftX/Y will keep the order on x/y\n * shuffleX/y will move the label around the original position randomly.\n */\n moveOverlap?: 'shiftX'\n | 'shiftY'\n | 'shuffleX'\n | 'shuffleY'\n /**\n * If hide the overlapped label. It will be handled after move.\n * @default 'none'\n */\n hideOverlap?: boolean\n /**\n * If label is draggable.\n */\n draggable?: boolean\n /**\n * Can be absolute px number or percent string.\n */\n x?: number | string\n y?: number | string\n /**\n * offset on x based on the original position.\n */\n dx?: number\n /**\n * offset on y based on the original position.\n */\n dy?: number\n rotate?: number\n\n align?: ZRTextAlign\n verticalAlign?: ZRTextVerticalAlign\n width?: number\n height?: number\n fontSize?: number\n\n labelLinePoints?: number[][]\n}\n\nexport type LabelLayoutOptionCallback = (params: LabelLayoutOptionCallbackParams) => LabelLayoutOption;\n\n\nexport interface TooltipFormatterCallback {\n /**\n * For sync callback\n * params will be an array on axis trigger.\n */\n (params: T, asyncTicket: string): string | HTMLElement | HTMLElement[]\n /**\n * For async callback.\n * Returned html string will be a placeholder when callback is not invoked.\n */\n (\n params: T, asyncTicket: string,\n callback: (cbTicket: string, htmlOrDomNodes: string | HTMLElement | HTMLElement[]) => void\n ) : string | HTMLElement | HTMLElement[]\n}\n\ntype TooltipBuiltinPosition = 'inside' | 'top' | 'left' | 'right' | 'bottom';\ntype TooltipBoxLayoutOption = Pick<\n BoxLayoutOptionMixin, 'top' | 'left' | 'right' | 'bottom'\n>;\n\nexport type TooltipPositionCallbackParams = CallbackDataParams | CallbackDataParams[];\n\n/**\n * Position relative to the hoverred element. Only available when trigger is item.\n */\nexport interface TooltipPositionCallback {\n (\n point: [number, number],\n /**\n * params will be an array on axis trigger.\n */\n params: TooltipPositionCallbackParams,\n /**\n * Will be HTMLDivElement when renderMode is html\n * Otherwise it's graphic.Text\n */\n el: HTMLDivElement | ZRText | null,\n /**\n * Rect of hover elements. Will be null if not hovered\n */\n rect: RectLike | null,\n size: {\n /**\n * Size of popup content\n */\n contentSize: [number, number]\n /**\n * Size of the chart view\n */\n viewSize: [number, number]\n }\n ): Array | TooltipBuiltinPosition | TooltipBoxLayoutOption\n}\n/**\n * Common tooltip option\n * Can be configured on series, graphic elements\n */\nexport interface CommonTooltipOption {\n\n show?: boolean\n\n /**\n * When to trigger\n */\n triggerOn?: 'mousemove' | 'click' | 'none' | 'mousemove|click'\n /**\n * Whether to not hide popup content automatically\n */\n alwaysShowContent?: boolean\n\n formatter?: string | TooltipFormatterCallback\n /**\n * Absolution pixel [x, y] array. Or relative percent string [x, y] array.\n * If trigger is 'item'. position can be set to 'inside' / 'top' / 'left' / 'right' / 'bottom',\n * which is relative to the hovered element.\n *\n * Support to be a callback\n */\n position?: (number | string)[] | TooltipBuiltinPosition | TooltipPositionCallback | TooltipBoxLayoutOption\n\n confine?: boolean\n\n /**\n * Consider triggered from axisPointer handle, verticalAlign should be 'middle'\n */\n align?: HorizontalAlign\n\n verticalAlign?: VerticalAlign\n /**\n * Delay of show. milesecond.\n */\n showDelay?: number\n\n /**\n * Delay of hide. milesecond.\n */\n hideDelay?: number\n\n transitionDuration?: number\n /**\n * Whether mouse is allowed to enter the floating layer of tooltip\n * If you need to interact in the tooltip like with links or buttons, it can be set as true.\n */\n enterable?: boolean\n\n backgroundColor?: ColorString\n borderColor?: ColorString\n borderRadius?: number\n borderWidth?: number\n shadowBlur?: number\n shadowColor?: string\n shadowOffsetX?: number\n shadowOffsetY?: number\n\n /**\n * Padding between tooltip content and tooltip border.\n */\n padding?: number | number[]\n\n /**\n * Available when renderMode is 'html'\n */\n extraCssText?: string\n\n textStyle?: Pick & {\n\n // Available when renderMode is html\n decoration?: string\n }\n}\n\nexport type ComponentItemTooltipOption = CommonTooltipOption & {\n // Default content HTML.\n content?: string;\n formatterParams?: ComponentItemTooltipLabelFormatterParams;\n};\nexport type ComponentItemTooltipLabelFormatterParams = {\n componentType: string\n name: string\n // properies key array like ['name']\n $vars: string[]\n} & {\n // Other properties\n [key in string]: unknown\n};\n\n\n/**\n * Tooltip option configured on each series\n */\nexport type SeriesTooltipOption = CommonTooltipOption & {\n trigger?: 'item' | 'axis' | boolean | 'none'\n};\n\n\n\n\ntype LabelFormatterParams = {\n value: ScaleDataValue\n axisDimension: string\n axisIndex: number\n seriesData: CallbackDataParams[]\n};\n/**\n * Common axis option. can be configured on each axis\n */\nexport interface CommonAxisPointerOption {\n show?: boolean | 'auto'\n\n z?: number;\n zlevel?: number;\n\n triggerOn?: 'click' | 'mousemove' | 'none' | 'mousemove|click'\n\n type?: 'line' | 'shadow' | 'none'\n\n snap?: boolean\n\n triggerTooltip?: boolean\n\n /**\n * current value. When using axisPointer.handle, value can be set to define the initail position of axisPointer.\n */\n value?: ScaleDataValue\n\n status?: 'show' | 'hide'\n\n // [group0, group1, ...]\n // Each group can be: {\n // mapper: function () {},\n // singleTooltip: 'multiple', // 'multiple' or 'single'\n // xAxisId: ...,\n // yAxisName: ...,\n // angleAxisIndex: ...\n // }\n // mapper: can be ignored.\n // input: {axisInfo, value}\n // output: {axisInfo, value}\n\n label?: LabelOption & {\n precision?: 'auto' | number\n margin?: number\n /**\n * String template include variable {value} or callback function\n */\n formatter?: string | ((params: LabelFormatterParams) => string)\n }\n animation?: boolean | 'auto'\n animationDurationUpdate?: number\n animationEasingUpdate?: ZREasing\n\n /**\n * Available when type is 'line'\n */\n lineStyle?: LineStyleOption\n /**\n * Available when type is 'shadow'\n */\n shadowStyle?: AreaStyleOption\n\n handle?: {\n show?: boolean\n icon?: string\n /**\n * The size of the handle\n */\n size?: number | number[]\n /**\n * Distance from handle center to axis.\n */\n margin?: number\n\n color?: ColorString\n\n /**\n * Throttle for mobile performance\n */\n throttle?: number\n } & ShadowOptionMixin\n\n\n seriesDataIndices?: {\n seriesIndex: number\n dataIndex: number\n dataIndexInside: number\n }[]\n\n}\n\nexport interface ComponentOption {\n mainType?: string;\n\n type?: string;\n\n id?: OptionId;\n name?: OptionName;\n\n z?: number;\n zlevel?: number;\n}\n\nexport type BlurScope = 'coordinateSystem' | 'series' | 'global';\n\n/**\n * can be array of data indices.\n * Or may be an dictionary if have different types of data like in graph.\n */\nexport type InnerFocus = DefaultEmphasisFocus | ArrayLike | Dictionary>;\n\nexport interface DefaultExtraStateOpts {\n emphasis: any\n select: any\n blur: any\n}\n\nexport type DefaultEmphasisFocus = 'none' | 'self' | 'series';\n\nexport interface DefaultExtraEmpasisState {\n /**\n * self: Focus self and blur all others.\n * series: Focus series and blur all other series.\n */\n focus?: DefaultEmphasisFocus\n}\n\ninterface ExtraStateOptsBase {\n emphasis?: {\n focus?: string\n },\n select?: any\n blur?: any\n}\n\nexport interface StatesOptionMixin {\n /**\n * Emphasis states\n */\n emphasis?: StateOption & ExtraStateOpts['emphasis'] & {\n /**\n * Scope of blurred element when focus.\n *\n * coordinateSystem: blur others in the same coordinateSystem\n * series: blur others in the same series\n * global: blur all others\n *\n * Default to be coordinate system.\n */\n blurScope?: BlurScope\n }\n /**\n * Select states\n */\n select?: StateOption & ExtraStateOpts['select']\n /**\n * Blur states.\n */\n blur?: StateOption & ExtraStateOpts['blur']\n}\n\nexport interface UniversalTransitionOption {\n enabled?: boolean\n /**\n * Animation delay of each divided element\n */\n delay?: (index: number, count: number) => number\n /**\n * How to divide the shape in combine and split animation.\n */\n divideShape?: 'clone' | 'split'\n /**\n * Series will have transition between if they have same seriesKey.\n * Usually it is a string. It can also be an array,\n * which means it can be transition from or to multiple series with each key in this array item.\n *\n * Note:\n * If two series have both array seriesKey. They will be compared after concated to a string(which is order independent)\n * Transition between string key has higher priority.\n *\n * Default to use series id.\n */\n seriesKey?: string | string[]\n}\n\nexport interface SeriesOption<\n StateOption=any, ExtraStateOpts extends ExtraStateOptsBase = DefaultExtraStateOpts> extends\n ComponentOption,\n AnimationOptionMixin,\n ColorPaletteOptionMixin,\n StatesOptionMixin\n{\n mainType?: 'series'\n\n silent?: boolean\n\n blendMode?: string\n\n /**\n * Cursor when mouse on the elements\n */\n cursor?: string\n\n /**\n * groupId of data. can be used for doing drilldown / up animation\n * It will be ignored if:\n * - groupId is specified in each data\n * - encode.itemGroupId is given.\n */\n dataGroupId?: OptionId\n // Needs to be override\n data?: unknown\n\n colorBy?: ColorBy\n\n legendHoverLink?: boolean\n\n /**\n * Configurations about progressive rendering\n */\n progressive?: number | false\n progressiveThreshold?: number\n progressiveChunkMode?: 'mod'\n /**\n * Not available on every series\n */\n coordinateSystem?: string\n\n hoverLayerThreshold?: number\n\n /**\n * When dataset is used, seriesLayoutBy specifies whether the column or the row of dataset is mapped to the series\n * namely, the series is \"layout\" on columns or rows\n * @default 'column'\n */\n seriesLayoutBy?: 'column' | 'row'\n\n labelLine?: LabelLineOption\n\n /**\n * Overall label layout option in label layout stage.\n */\n labelLayout?: LabelLayoutOption | LabelLayoutOptionCallback\n\n /**\n * Animation config for state transition.\n */\n stateAnimation?: AnimationOption\n\n /**\n * If enabled universal transition cross series.\n * @example\n * universalTransition: true\n * universalTransition: { enabled: true }\n */\n universalTransition?: boolean | UniversalTransitionOption\n\n /**\n * Map of selected data\n * key is name or index of data.\n */\n selectedMap?: Dictionary\n selectedMode?: 'single' | 'multiple' | boolean\n}\n\nexport interface SeriesOnCartesianOptionMixin {\n xAxisIndex?: number\n yAxisIndex?: number\n\n xAxisId?: string\n yAxisId?: string\n}\n\nexport interface SeriesOnPolarOptionMixin {\n polarIndex?: number\n polarId?: string;\n}\n\nexport interface SeriesOnSingleOptionMixin {\n singleAxisIndex?: number\n singleAxisId?: string\n}\n\nexport interface SeriesOnGeoOptionMixin {\n geoIndex?: number;\n geoId?: string\n}\n\nexport interface SeriesOnCalendarOptionMixin {\n calendarIndex?: number\n calendarId?: string\n}\n\nexport interface SeriesLargeOptionMixin {\n large?: boolean\n largeThreshold?: number\n}\nexport interface SeriesStackOptionMixin {\n stack?: string\n}\n\ntype SamplingFunc = (frame: ArrayLike) => number;\n\nexport interface SeriesSamplingOptionMixin {\n sampling?: 'none' | 'average' | 'min' | 'max' | 'sum' | 'lttb' | SamplingFunc\n}\n\nexport interface SeriesEncodeOptionMixin {\n datasetIndex?: number;\n datasetId?: string | number;\n seriesLayoutBy?: SeriesLayoutBy;\n sourceHeader?: OptionSourceHeader;\n dimensions?: DimensionDefinitionLoose[];\n encode?: OptionEncode\n}\n\nexport type SeriesEncodableModel = SeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {makeInner, getDataItemValue, queryReferringComponents, SINGLE_REFERRING} from '../../util/model';\nimport {\n createHashMap,\n each,\n isArray,\n isString,\n isObject,\n isTypedArray,\n HashMap\n} from 'zrender/src/core/util';\nimport { Source } from '../Source';\n\nimport {\n SOURCE_FORMAT_ORIGINAL,\n SOURCE_FORMAT_ARRAY_ROWS,\n SOURCE_FORMAT_OBJECT_ROWS,\n SERIES_LAYOUT_BY_ROW,\n SOURCE_FORMAT_KEYED_COLUMNS,\n DimensionName,\n OptionSourceDataArrayRows,\n OptionDataValue,\n OptionSourceDataKeyedColumns,\n OptionSourceDataOriginal,\n OptionSourceDataObjectRows,\n OptionEncode,\n DimensionIndex,\n SeriesEncodableModel\n} from '../../util/types';\nimport { DatasetModel } from '../../component/dataset/install';\nimport SeriesModel from '../../model/Series';\nimport GlobalModel from '../../model/Global';\nimport { CoordDimensionDefinition } from './createDimensions';\n\n// The result of `guessOrdinal`.\nexport const BE_ORDINAL = {\n Must: 1, // Encounter string but not '-' and not number-like.\n Might: 2, // Encounter string but number-like.\n Not: 3 // Other cases\n};\ntype BeOrdinalValue = (typeof BE_ORDINAL)[keyof typeof BE_ORDINAL];\n\nconst innerGlobalModel = makeInner<{\n datasetMap: HashMap\n}, GlobalModel>();\n\n\ninterface DatasetRecord {\n categoryWayDim: number;\n valueWayDim: number;\n}\n\ntype SeriesEncodeInternal = {\n [key in keyof OptionEncode]: DimensionIndex[];\n};\n\n/**\n * MUST be called before mergeOption of all series.\n */\nexport function resetSourceDefaulter(ecModel: GlobalModel): void {\n // `datasetMap` is used to make default encode.\n innerGlobalModel(ecModel).datasetMap = createHashMap();\n}\n\n/**\n * [The strategy of the arrengment of data dimensions for dataset]:\n * \"value way\": all axes are non-category axes. So series one by one take\n * several (the number is coordSysDims.length) dimensions from dataset.\n * The result of data arrengment of data dimensions like:\n * | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |\n * \"category way\": at least one axis is category axis. So the the first data\n * dimension is always mapped to the first category axis and shared by\n * all of the series. The other data dimensions are taken by series like\n * \"value way\" does.\n * The result of data arrengment of data dimensions like:\n * | ser_shared_x | ser0_y | ser1_y | ser2_y |\n *\n * @return encode Never be `null/undefined`.\n */\nexport function makeSeriesEncodeForAxisCoordSys(\n coordDimensions: (DimensionName | CoordDimensionDefinition)[],\n seriesModel: SeriesModel,\n source: Source\n): SeriesEncodeInternal {\n const encode: SeriesEncodeInternal = {};\n\n const datasetModel = querySeriesUpstreamDatasetModel(seriesModel);\n // Currently only make default when using dataset, util more reqirements occur.\n if (!datasetModel || !coordDimensions) {\n return encode;\n }\n\n const encodeItemName: DimensionIndex[] = [];\n const encodeSeriesName: DimensionIndex[] = [];\n\n const ecModel = seriesModel.ecModel;\n const datasetMap = innerGlobalModel(ecModel).datasetMap;\n const key = datasetModel.uid + '_' + source.seriesLayoutBy;\n\n let baseCategoryDimIndex: number;\n let categoryWayValueDimStart;\n coordDimensions = coordDimensions.slice();\n each(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n const coordDimInfo: CoordDimensionDefinition = isObject(coordDimInfoLoose)\n ? coordDimInfoLoose\n : (coordDimensions[coordDimIdx] = { name: coordDimInfoLoose as DimensionName });\n if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n baseCategoryDimIndex = coordDimIdx;\n categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n }\n encode[coordDimInfo.name] = [];\n });\n\n const datasetRecord = datasetMap.get(key)\n || datasetMap.set(key, {categoryWayDim: categoryWayValueDimStart, valueWayDim: 0});\n\n // TODO\n // Auto detect first time axis and do arrangement.\n each(coordDimensions, function (coordDimInfo: CoordDimensionDefinition, coordDimIdx) {\n const coordDimName = coordDimInfo.name;\n const count = getDataDimCountOnCoordDim(coordDimInfo);\n\n // In value way.\n if (baseCategoryDimIndex == null) {\n const start = datasetRecord.valueWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.valueWayDim += count;\n\n // ??? TODO give a better default series name rule?\n // especially when encode x y specified.\n // consider: when mutiple series share one dimension\n // category axis, series name should better use\n // the other dimsion name. On the other hand, use\n // both dimensions name.\n }\n // In category way, the first category axis.\n else if (baseCategoryDimIndex === coordDimIdx) {\n pushDim(encode[coordDimName], 0, count);\n pushDim(encodeItemName, 0, count);\n }\n // In category way, the other axis.\n else {\n const start = datasetRecord.categoryWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.categoryWayDim += count;\n }\n });\n\n function pushDim(dimIdxArr: DimensionIndex[], idxFrom: number, idxCount: number) {\n for (let i = 0; i < idxCount; i++) {\n dimIdxArr.push(idxFrom + i);\n }\n }\n\n function getDataDimCountOnCoordDim(coordDimInfo: CoordDimensionDefinition) {\n const dimsDef = coordDimInfo.dimsDef;\n return dimsDef ? dimsDef.length : 1;\n }\n\n encodeItemName.length && (encode.itemName = encodeItemName);\n encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n\n return encode;\n}\n\n/**\n * Work for data like [{name: ..., value: ...}, ...].\n *\n * @return encode Never be `null/undefined`.\n */\nexport function makeSeriesEncodeForNameBased(\n seriesModel: SeriesModel,\n source: Source,\n dimCount: number\n): SeriesEncodeInternal {\n const encode: SeriesEncodeInternal = {};\n\n const datasetModel = querySeriesUpstreamDatasetModel(seriesModel);\n // Currently only make default when using dataset, util more reqirements occur.\n if (!datasetModel) {\n return encode;\n }\n\n const sourceFormat = source.sourceFormat;\n const dimensionsDefine = source.dimensionsDefine;\n\n let potentialNameDimIndex;\n if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n each(dimensionsDefine, function (dim, idx) {\n if ((isObject(dim) ? dim.name : dim) === 'name') {\n potentialNameDimIndex = idx;\n }\n });\n }\n\n type IdxResult = { v: number, n: number };\n\n const idxResult = (function () {\n\n const idxRes0 = {} as IdxResult;\n const idxRes1 = {} as IdxResult;\n const guessRecords = [];\n\n // 5 is an experience value.\n for (let i = 0, len = Math.min(5, dimCount); i < len; i++) {\n const guessResult = doGuessOrdinal(\n source.data, sourceFormat, source.seriesLayoutBy,\n dimensionsDefine, source.startIndex, i\n );\n guessRecords.push(guessResult);\n const isPureNumber = guessResult === BE_ORDINAL.Not;\n\n // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,\n // and then find a name dim with the priority:\n // \"BE_ORDINAL.Might|BE_ORDINAL.Must\" > \"other dim\" > \"the value dim itself\".\n if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {\n idxRes0.v = i;\n }\n if (idxRes0.n == null\n || (idxRes0.n === idxRes0.v)\n || (!isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not)\n ) {\n idxRes0.n = i;\n }\n if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {\n return idxRes0;\n }\n\n // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),\n // find the first BE_ORDINAL.Might as the value dim,\n // and then find a name dim with the priority:\n // \"other dim\" > \"the value dim itself\".\n // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be\n // treated as number.\n if (!isPureNumber) {\n if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {\n idxRes1.v = i;\n }\n if (idxRes1.n == null || (idxRes1.n === idxRes1.v)) {\n idxRes1.n = i;\n }\n }\n }\n\n function fulfilled(idxResult: IdxResult) {\n return idxResult.v != null && idxResult.n != null;\n }\n\n return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;\n })();\n\n if (idxResult) {\n encode.value = [idxResult.v];\n // `potentialNameDimIndex` has highest priority.\n const nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n;\n // By default, label use itemName in charts.\n // So we dont set encodeLabel here.\n encode.itemName = [nameDimIndex];\n encode.seriesName = [nameDimIndex];\n }\n\n return encode;\n}\n\n/**\n * @return If return null/undefined, indicate that should not use datasetModel.\n */\nexport function querySeriesUpstreamDatasetModel(\n seriesModel: SeriesEncodableModel\n): DatasetModel {\n // Caution: consider the scenario:\n // A dataset is declared and a series is not expected to use the dataset,\n // and at the beginning `setOption({series: { noData })` (just prepare other\n // option but no data), then `setOption({series: {data: [...]}); In this case,\n // the user should set an empty array to avoid that dataset is used by default.\n const thisData = seriesModel.get('data', true);\n if (!thisData) {\n return queryReferringComponents(\n seriesModel.ecModel,\n 'dataset',\n {\n index: seriesModel.get('datasetIndex', true),\n id: seriesModel.get('datasetId', true)\n },\n SINGLE_REFERRING\n ).models[0] as DatasetModel;\n }\n}\n\n/**\n * @return Always return an array event empty.\n */\nexport function queryDatasetUpstreamDatasetModels(\n datasetModel: DatasetModel\n): DatasetModel[] {\n // Only these attributes declared, we by defualt reference to `datasetIndex: 0`.\n // Otherwise, no reference.\n if (!datasetModel.get('transform', true)\n && !datasetModel.get('fromTransformResult', true)\n ) {\n return [];\n }\n\n return queryReferringComponents(\n datasetModel.ecModel,\n 'dataset',\n {\n index: datasetModel.get('fromDatasetIndex', true),\n id: datasetModel.get('fromDatasetId', true)\n },\n SINGLE_REFERRING\n ).models as DatasetModel[];\n}\n\n/**\n * The rule should not be complex, otherwise user might not\n * be able to known where the data is wrong.\n * The code is ugly, but how to make it neat?\n */\nexport function guessOrdinal(source: Source, dimIndex: DimensionIndex): BeOrdinalValue {\n return doGuessOrdinal(\n source.data,\n source.sourceFormat,\n source.seriesLayoutBy,\n source.dimensionsDefine,\n source.startIndex,\n dimIndex\n );\n}\n\n// dimIndex may be overflow source data.\n// return {BE_ORDINAL}\nfunction doGuessOrdinal(\n data: Source['data'],\n sourceFormat: Source['sourceFormat'],\n seriesLayoutBy: Source['seriesLayoutBy'],\n dimensionsDefine: Source['dimensionsDefine'],\n startIndex: Source['startIndex'],\n dimIndex: DimensionIndex\n): BeOrdinalValue {\n let result;\n // Experience value.\n const maxLoop = 5;\n\n if (isTypedArray(data)) {\n return BE_ORDINAL.Not;\n }\n\n // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine\n // always exists in source.\n let dimName;\n let dimType;\n if (dimensionsDefine) {\n const dimDefItem = dimensionsDefine[dimIndex];\n if (isObject(dimDefItem)) {\n dimName = dimDefItem.name;\n dimType = dimDefItem.type;\n }\n else if (isString(dimDefItem)) {\n dimName = dimDefItem;\n }\n }\n\n if (dimType != null) {\n return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not;\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const dataArrayRows = data as OptionSourceDataArrayRows;\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n const sample = dataArrayRows[dimIndex];\n for (let i = 0; i < (sample || []).length && i < maxLoop; i++) {\n if ((result = detectValue(sample[startIndex + i])) != null) {\n return result;\n }\n }\n }\n else {\n for (let i = 0; i < dataArrayRows.length && i < maxLoop; i++) {\n const row = dataArrayRows[startIndex + i];\n if (row && (result = detectValue(row[dimIndex])) != null) {\n return result;\n }\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n const dataObjectRows = data as OptionSourceDataObjectRows;\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n for (let i = 0; i < dataObjectRows.length && i < maxLoop; i++) {\n const item = dataObjectRows[i];\n if (item && (result = detectValue(item[dimName])) != null) {\n return result;\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n const dataKeyedColumns = data as OptionSourceDataKeyedColumns;\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n const sample = dataKeyedColumns[dimName];\n if (!sample || isTypedArray(sample)) {\n return BE_ORDINAL.Not;\n }\n for (let i = 0; i < sample.length && i < maxLoop; i++) {\n if ((result = detectValue(sample[i])) != null) {\n return result;\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const dataOriginal = data as OptionSourceDataOriginal;\n for (let i = 0; i < dataOriginal.length && i < maxLoop; i++) {\n const item = dataOriginal[i];\n const val = getDataItemValue(item);\n if (!isArray(val)) {\n return BE_ORDINAL.Not;\n }\n if ((result = detectValue(val[dimIndex])) != null) {\n return result;\n }\n }\n }\n\n function detectValue(val: OptionDataValue): BeOrdinalValue {\n const beStr = isString(val);\n // Consider usage convenience, '1', '2' will be treated as \"number\".\n // `isFinit('')` get `true`.\n if (val != null && isFinite(val as number) && val !== '') {\n return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;\n }\n else if (beStr && val !== '-') {\n return BE_ORDINAL.Must;\n }\n }\n\n return BE_ORDINAL.Not;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from './Global';\nimport { ComponentOption, ComponentMainType } from '../util/types';\nimport { createHashMap, assert } from 'zrender/src/core/util';\nimport { isComponentIdInternal } from '../util/model';\n\n// PNEDING:\n// (1) Only Internal usage at present, do not export to uses.\n// (2) \"Internal components\" are generated internally during the `Global.ts#_mergeOption`.\n// It is added since echarts 3.\n// (3) Why keep supporting \"internal component\" in global model rather than\n// make each type components manage their models themselves?\n// Because a protential feature that reproduce a chart from a diffferent chart instance\n// might be useful in some BI analysis scenario, where the entire state need to be\n// retrieved from the current chart instance. So we'd bettern manage the all of the\n// state universally.\n// (4) Internal component always merged in \"replaceMerge\" approach, that is, if the existing\n// internal components does not matched by a new option with the same id, it will be\n// removed.\n// (5) In `InternalOptionCreator`, only the previous component models (dependencies) can be read.\n\ninterface InternalOptionCreator {\n (ecModel: GlobalModel): ComponentOption[]\n}\n\nconst internalOptionCreatorMap = createHashMap();\n\n\nexport function registerInternalOptionCreator(\n mainType: ComponentMainType, creator: InternalOptionCreator\n) {\n assert(internalOptionCreatorMap.get(mainType) == null && creator);\n internalOptionCreatorMap.set(mainType, creator);\n}\n\n\nexport function concatInternalOptions(\n ecModel: GlobalModel,\n mainType: ComponentMainType,\n newCmptOptionList: ComponentOption[]\n): ComponentOption[] {\n const internalOptionCreator = internalOptionCreatorMap.get(mainType);\n if (!internalOptionCreator) {\n return newCmptOptionList;\n }\n const internalOptions = internalOptionCreator(ecModel);\n if (!internalOptions) {\n return newCmptOptionList;\n }\n if (__DEV__) {\n for (let i = 0; i < internalOptions.length; i++) {\n assert(isComponentIdInternal(internalOptions[i]));\n }\n }\n return newCmptOptionList.concat(internalOptions);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {Dictionary} from 'zrender/src/core/types';\nimport {makeInner, normalizeToArray} from '../../util/model';\nimport Model from '../Model';\nimport {ZRColor, PaletteOptionMixin, DecalObject, AriaOptionMixin} from '../../util/types';\nimport GlobalModel from '../Global';\n\ntype Inner = (hostObj: PaletteMixin) => {\n paletteIdx: number;\n paletteNameMap: Dictionary;\n};\n\nconst innerColor: Inner = makeInner<{\n paletteIdx: number\n paletteNameMap: Dictionary\n}, PaletteMixin>();\n\nconst innerDecal: Inner = makeInner<{\n paletteIdx: number\n paletteNameMap: Dictionary\n}, PaletteMixin>();\n\n\n\ninterface PaletteMixin\n extends Pick, 'get'> {}\n\nclass PaletteMixin {\n getColorFromPalette(\n this: PaletteMixin,\n name: string,\n scope?: any,\n requestNum?: number\n ): ZRColor {\n const defaultPalette = normalizeToArray(this.get('color', true));\n const layeredPalette = this.get('colorLayer', true);\n return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum);\n }\n\n clearColorPalette(this: PaletteMixin) {\n clearPalette(this, innerColor);\n }\n}\n\nexport function getDecalFromPalette(\n ecModel: GlobalModel,\n name: string,\n scope?: any,\n requestNum?: number\n): DecalObject {\n const defaultDecals = normalizeToArray((ecModel as Model).get(['aria', 'decal', 'decals']));\n return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum);\n}\n\n\nfunction getNearestPalette(\n palettes: T[][], requestColorNum: number\n): T[] {\n const paletteNum = palettes.length;\n // TODO palettes must be in order\n for (let i = 0; i < paletteNum; i++) {\n if (palettes[i].length > requestColorNum) {\n return palettes[i];\n }\n }\n return palettes[paletteNum - 1];\n}\n\n/**\n * @param name MUST NOT be null/undefined. Otherwise call this function\n * twise with the same parameters will get different result.\n * @param scope default this.\n * @return Can be null/undefined\n */\nfunction getFromPalette(\n that: PaletteMixin,\n inner: Inner,\n defaultPalette: T[],\n layeredPalette: T[][],\n name: string,\n scope?: any,\n requestNum?: number\n): T {\n scope = scope || that;\n const scopeFields = inner(scope);\n const paletteIdx = scopeFields.paletteIdx || 0;\n const paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {};\n // Use `hasOwnProperty` to avoid conflict with Object.prototype.\n if (paletteNameMap.hasOwnProperty(name)) {\n return paletteNameMap[name];\n }\n let palette = ((requestNum == null || !layeredPalette)\n ? defaultPalette : getNearestPalette(layeredPalette, requestNum));\n\n // In case can't find in layered color palette.\n palette = palette || defaultPalette;\n\n if (!palette || !palette.length) {\n return;\n }\n\n const pickedPaletteItem = palette[paletteIdx];\n if (name) {\n paletteNameMap[name] = pickedPaletteItem;\n }\n scopeFields.paletteIdx = (paletteIdx + 1) % palette.length;\n\n return pickedPaletteItem;\n}\n\nfunction clearPalette(that: PaletteMixin, inner: Inner) {\n inner(that).paletteIdx = 0;\n inner(that).paletteNameMap = {};\n}\n\nexport {PaletteMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Caution: If the mechanism should be changed some day, these cases\n * should be considered:\n *\n * (1) In `merge option` mode, if using the same option to call `setOption`\n * many times, the result should be the same (try our best to ensure that).\n * (2) In `merge option` mode, if a component has no id/name specified, it\n * will be merged by index, and the result sequence of the components is\n * consistent to the original sequence.\n * (3) In `replaceMerge` mode, keep the result sequence of the components is\n * consistent to the original sequence, even though there might result in \"hole\".\n * (4) `reset` feature (in toolbox). Find detailed info in comments about\n * `mergeOption` in module:echarts/model/OptionManager.\n */\n\nimport {\n each, filter, isArray, isObject, isString,\n createHashMap, assert, clone, merge, extend, mixin, HashMap, isFunction\n} from 'zrender/src/core/util';\nimport * as modelUtil from '../util/model';\nimport Model from './Model';\nimport ComponentModel, {ComponentModelConstructor} from './Component';\nimport globalDefault from './globalDefault';\nimport {resetSourceDefaulter} from '../data/helper/sourceHelper';\nimport SeriesModel from './Series';\nimport {\n Payload,\n OptionPreprocessor,\n ECBasicOption,\n ECUnitOption,\n ThemeOption,\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n OptionId,\n OptionName,\n AriaOptionMixin\n} from '../util/types';\nimport OptionManager from './OptionManager';\nimport Scheduler from '../core/Scheduler';\nimport { concatInternalOptions } from './internalComponentCreator';\nimport { LocaleOption } from '../core/locale';\nimport {PaletteMixin} from './mixin/palette';\nimport { error } from '../util/log';\n\nexport interface GlobalModelSetOptionOpts {\n replaceMerge: ComponentMainType | ComponentMainType[];\n}\nexport interface InnerSetOptionOpts {\n replaceMergeMainTypeMap: HashMap;\n}\n\n// -----------------------\n// Internal method names:\n// -----------------------\nlet reCreateSeriesIndices: (ecModel: GlobalModel) => void;\nlet assertSeriesInitialized: (ecModel: GlobalModel) => void;\nlet initBase: (ecModel: GlobalModel, baseOption: ECUnitOption) => void;\n\nconst OPTION_INNER_KEY = '\\0_ec_inner';\nconst OPTION_INNER_VALUE = 1;\n\nconst BUITIN_COMPONENTS_MAP = {\n grid: 'GridComponent',\n polar: 'PolarComponent',\n geo: 'GeoComponent',\n singleAxis: 'SingleAxisComponent',\n parallel: 'ParallelComponent',\n calendar: 'CalendarComponent',\n graphic: 'GraphicComponent',\n toolbox: 'ToolboxComponent',\n tooltip: 'TooltipComponent',\n axisPointer: 'AxisPointerComponent',\n brush: 'BrushComponent',\n title: 'TitleComponent',\n timeline: 'TimelineComponent',\n markPoint: 'MarkPointComponent',\n markLine: 'MarkLineComponent',\n markArea: 'MarkAreaComponent',\n legend: 'LegendComponent',\n dataZoom: 'DataZoomComponent',\n visualMap: 'VisualMapComponent',\n // aria: 'AriaComponent',\n // dataset: 'DatasetComponent',\n\n // Dependencies\n xAxis: 'GridComponent',\n yAxis: 'GridComponent',\n angleAxis: 'PolarComponent',\n radiusAxis: 'PolarComponent'\n} as const;\n\nconst BUILTIN_CHARTS_MAP = {\n line: 'LineChart',\n bar: 'BarChart',\n pie: 'PieChart',\n scatter: 'ScatterChart',\n radar: 'RadarChart',\n map: 'MapChart',\n tree: 'TreeChart',\n treemap: 'TreemapChart',\n graph: 'GraphChart',\n gauge: 'GaugeChart',\n funnel: 'FunnelChart',\n parallel: 'ParallelChart',\n sankey: 'SankeyChart',\n boxplot: 'BoxplotChart',\n candlestick: 'CandlestickChart',\n effectScatter: 'EffectScatterChart',\n lines: 'LinesChart',\n heatmap: 'HeatmapChart',\n pictorialBar: 'PictorialBarChart',\n themeRiver: 'ThemeRiverChart',\n sunburst: 'SunburstChart',\n custom: 'CustomChart'\n} as const;\n\nconst componetsMissingLogPrinted: Record = {};\n\nfunction checkMissingComponents(option: ECUnitOption) {\n each(option, function (componentOption, mainType: ComponentMainType) {\n if (!ComponentModel.hasClass(mainType)) {\n const componentImportName = BUITIN_COMPONENTS_MAP[mainType as keyof typeof BUITIN_COMPONENTS_MAP];\n if (componentImportName && !componetsMissingLogPrinted[componentImportName]) {\n error(`Component ${mainType} is used but not imported.\nimport { ${componentImportName} } from 'echarts/components';\necharts.use([${componentImportName}]);`);\n componetsMissingLogPrinted[componentImportName] = true;\n }\n }\n });\n}\n\nclass GlobalModel extends Model {\n // @readonly\n option: ECUnitOption;\n\n private _theme: Model;\n\n private _locale: Model;\n\n private _optionManager: OptionManager;\n\n private _componentsMap: HashMap;\n\n /**\n * `_componentsMap` might have \"hole\" becuase of remove.\n * So save components count for a certain mainType here.\n */\n private _componentsCount: HashMap;\n\n /**\n * Mapping between filtered series list and raw series list.\n * key: filtered series indices, value: raw series indices.\n * Items of `_seriesIndices` never be null/empty/-1.\n * If series has been removed by `replaceMerge`, those series\n * also won't be in `_seriesIndices`, just like be filtered.\n */\n private _seriesIndices: number[];\n\n /**\n * Key: seriesIndex.\n * Keep consistent with `_seriesIndices`.\n */\n private _seriesIndicesMap: HashMap;\n\n /**\n * Model for store update payload\n */\n private _payload: Payload;\n\n // Injectable properties:\n scheduler: Scheduler;\n\n\n init(\n option: ECBasicOption,\n parentModel: Model,\n ecModel: GlobalModel,\n theme: object,\n locale: object,\n optionManager: OptionManager\n ): void {\n theme = theme || {};\n this.option = null; // Mark as not initialized.\n this._theme = new Model(theme);\n this._locale = new Model(locale);\n this._optionManager = optionManager;\n }\n\n setOption(\n option: ECBasicOption,\n opts: GlobalModelSetOptionOpts,\n optionPreprocessorFuncs: OptionPreprocessor[]\n ): void {\n\n if (__DEV__) {\n assert(option != null, 'option is null/undefined');\n assert(\n option[OPTION_INNER_KEY] !== OPTION_INNER_VALUE,\n 'please use chart.getOption()'\n );\n }\n\n const innerOpt = normalizeSetOptionInput(opts);\n\n this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt);\n\n this._resetOption(null, innerOpt);\n }\n\n /**\n * @param type null/undefined: reset all.\n * 'recreate': force recreate all.\n * 'timeline': only reset timeline option\n * 'media': only reset media query option\n * @return Whether option changed.\n */\n resetOption(\n type: 'recreate' | 'timeline' | 'media',\n opt?: Pick\n ): boolean {\n return this._resetOption(type, normalizeSetOptionInput(opt));\n }\n\n private _resetOption(\n type: 'recreate' | 'timeline' | 'media',\n opt: InnerSetOptionOpts\n ): boolean {\n let optionChanged = false;\n const optionManager = this._optionManager;\n\n if (!type || type === 'recreate') {\n const baseOption = optionManager.mountOption(type === 'recreate');\n if (__DEV__) {\n checkMissingComponents(baseOption);\n }\n\n if (!this.option || type === 'recreate') {\n initBase(this, baseOption);\n }\n else {\n this.restoreData();\n this._mergeOption(baseOption, opt);\n }\n optionChanged = true;\n }\n\n if (type === 'timeline' || type === 'media') {\n this.restoreData();\n }\n\n // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,\n // it should better not have the same props with `MediaUnit['option']`.\n // Becuase either `option2` or `MediaUnit['option']` will be always merged to \"current option\"\n // rather than original \"baseOption\". If they both override a prop, the result might be\n // unexpected when media state changed after `setOption` called.\n // If we really need to modify a props in each `MediaUnit['option']`, use the full version\n // (`{baseOption, media}`) in `setOption`.\n // For `timeline`, the case is the same.\n\n if (!type || type === 'recreate' || type === 'timeline') {\n const timelineOption = optionManager.getTimelineOption(this);\n if (timelineOption) {\n optionChanged = true;\n this._mergeOption(timelineOption, opt);\n }\n }\n\n if (!type || type === 'recreate' || type === 'media') {\n const mediaOptions = optionManager.getMediaOption(this);\n if (mediaOptions.length) {\n each(mediaOptions, function (mediaOption) {\n optionChanged = true;\n this._mergeOption(mediaOption, opt);\n }, this);\n }\n }\n\n return optionChanged;\n }\n\n public mergeOption(option: ECUnitOption): void {\n this._mergeOption(option, null);\n }\n\n private _mergeOption(\n newOption: ECUnitOption,\n opt: InnerSetOptionOpts\n ): void {\n const option = this.option;\n const componentsMap = this._componentsMap;\n const componentsCount = this._componentsCount;\n const newCmptTypes: ComponentMainType[] = [];\n const newCmptTypeMap = createHashMap();\n const replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap;\n\n resetSourceDefaulter(this);\n\n // If no component class, merge directly.\n // For example: color, animaiton options, etc.\n each(newOption, function (componentOption, mainType: ComponentMainType) {\n if (componentOption == null) {\n return;\n }\n\n if (!ComponentModel.hasClass(mainType)) {\n // globalSettingTask.dirty();\n option[mainType] = option[mainType] == null\n ? clone(componentOption)\n : merge(option[mainType], componentOption, true);\n }\n else if (mainType) {\n newCmptTypes.push(mainType);\n newCmptTypeMap.set(mainType, true);\n }\n });\n\n if (replaceMergeMainTypeMap) {\n // If there is a mainType `xxx` in `replaceMerge` but not declared in option,\n // we trade it as it is declared in option as `{xxx: []}`. Because:\n // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.\n // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.\n replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) {\n if (ComponentModel.hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) {\n newCmptTypes.push(mainTypeInReplaceMerge);\n newCmptTypeMap.set(mainTypeInReplaceMerge, true);\n }\n });\n }\n\n (ComponentModel as ComponentModelConstructor).topologicalTravel(\n newCmptTypes,\n (ComponentModel as ComponentModelConstructor).getAllClassMainTypes(),\n visitComponent,\n this\n );\n\n function visitComponent(\n this: GlobalModel,\n mainType: ComponentMainType\n ): void {\n const newCmptOptionList = concatInternalOptions(\n this, mainType, modelUtil.normalizeToArray(newOption[mainType])\n );\n\n const oldCmptList = componentsMap.get(mainType);\n const mergeMode =\n // `!oldCmptList` means init. See the comment in `mappingToExists`\n !oldCmptList ? 'replaceAll'\n : (replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge'\n : 'normalMerge';\n const mappingResult = modelUtil.mappingToExists(oldCmptList, newCmptOptionList, mergeMode);\n\n // Set mainType and complete subType.\n modelUtil.setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n\n // Empty it before the travel, in order to prevent `this._componentsMap`\n // from being used in the `init`/`mergeOption`/`optionUpdated` of some\n // components, which is probably incorrect logic.\n option[mainType] = null;\n componentsMap.set(mainType, null);\n componentsCount.set(mainType, 0);\n\n const optionsByMainType = [] as ComponentOption[];\n const cmptsByMainType = [] as ComponentModel[];\n let cmptsCountByMainType = 0;\n\n each(mappingResult, function (resultItem, index) {\n let componentModel = resultItem.existing;\n const newCmptOption = resultItem.newOption;\n\n if (!newCmptOption) {\n if (componentModel) {\n // Consider where is no new option and should be merged using {},\n // see removeEdgeAndAdd in topologicalTravel and\n // ComponentModel.getAllClassMainTypes.\n componentModel.mergeOption({}, this);\n componentModel.optionUpdated({}, false);\n }\n // If no both `resultItem.exist` and `resultItem.option`,\n // either it is in `replaceMerge` and not matched by any id,\n // or it has been removed in previous `replaceMerge` and left a \"hole\" in this component index.\n }\n else {\n const isSeriesType = mainType === 'series';\n const ComponentModelClass = (ComponentModel as ComponentModelConstructor).getClass(\n mainType, resultItem.keyInfo.subType,\n !isSeriesType // Give a more detailed warn later if series don't exists\n );\n\n if (!ComponentModelClass) {\n if (__DEV__) {\n const subType = resultItem.keyInfo.subType;\n const seriesImportName = BUILTIN_CHARTS_MAP[subType as keyof typeof BUILTIN_CHARTS_MAP];\n if (!componetsMissingLogPrinted[subType]) {\n componetsMissingLogPrinted[subType] = true;\n if (seriesImportName) {\n error(`Series ${subType} is used but not imported.\nimport { ${seriesImportName} } from 'echarts/charts';\necharts.use([${seriesImportName}]);`);\n }\n else {\n error(`Unkown series ${subType}`);\n }\n }\n }\n return;\n }\n\n if (componentModel && componentModel.constructor === ComponentModelClass) {\n componentModel.name = resultItem.keyInfo.name;\n // componentModel.settingTask && componentModel.settingTask.dirty();\n componentModel.mergeOption(newCmptOption, this);\n componentModel.optionUpdated(newCmptOption, false);\n }\n else {\n // PENDING Global as parent ?\n const extraOpt = extend(\n {\n componentIndex: index\n },\n resultItem.keyInfo\n );\n componentModel = new ComponentModelClass(\n newCmptOption, this, this, extraOpt\n );\n // Assign `keyInfo`\n extend(componentModel, extraOpt);\n if (resultItem.brandNew) {\n componentModel.__requireNewView = true;\n }\n componentModel.init(newCmptOption, this, this);\n\n // Call optionUpdated after init.\n // newCmptOption has been used as componentModel.option\n // and may be merged with theme and default, so pass null\n // to avoid confusion.\n componentModel.optionUpdated(null, true);\n }\n }\n\n if (componentModel) {\n optionsByMainType.push(componentModel.option);\n cmptsByMainType.push(componentModel);\n cmptsCountByMainType++;\n }\n else {\n // Always do assign to avoid elided item in array.\n optionsByMainType.push(void 0);\n cmptsByMainType.push(void 0);\n }\n }, this);\n\n option[mainType] = optionsByMainType;\n componentsMap.set(mainType, cmptsByMainType);\n componentsCount.set(mainType, cmptsCountByMainType);\n\n // Backup series for filtering.\n if (mainType === 'series') {\n reCreateSeriesIndices(this);\n }\n }\n\n // If no series declared, ensure `_seriesIndices` initialized.\n if (!this._seriesIndices) {\n reCreateSeriesIndices(this);\n }\n }\n\n /**\n * Get option for output (cloned option and inner info removed)\n */\n getOption(): ECUnitOption {\n const option = clone(this.option);\n\n each(option, function (optInMainType, mainType) {\n if (ComponentModel.hasClass(mainType)) {\n const opts = modelUtil.normalizeToArray(optInMainType);\n // Inner cmpts need to be removed.\n // Inner cmpts might not be at last since ec5.0, but still\n // compatible for users: if inner cmpt at last, splice the returned array.\n let realLen = opts.length;\n let metNonInner = false;\n for (let i = realLen - 1; i >= 0; i--) {\n // Remove options with inner id.\n if (opts[i] && !modelUtil.isComponentIdInternal(opts[i])) {\n metNonInner = true;\n }\n else {\n opts[i] = null;\n !metNonInner && realLen--;\n }\n }\n opts.length = realLen;\n option[mainType] = opts;\n }\n });\n\n delete option[OPTION_INNER_KEY];\n\n return option;\n }\n\n getTheme(): Model {\n return this._theme;\n }\n\n getLocaleModel(): Model {\n return this._locale;\n }\n\n setUpdatePayload(payload: Payload) {\n this._payload = payload;\n }\n\n getUpdatePayload(): Payload {\n return this._payload;\n }\n\n /**\n * @param idx If not specified, return the first one.\n */\n getComponent(mainType: ComponentMainType, idx?: number): ComponentModel {\n const list = this._componentsMap.get(mainType);\n if (list) {\n const cmpt = list[idx || 0];\n if (cmpt) {\n return cmpt;\n }\n else if (idx == null) {\n for (let i = 0; i < list.length; i++) {\n if (list[i]) {\n return list[i];\n }\n }\n }\n }\n }\n\n /**\n * @return Never be null/undefined.\n */\n queryComponents(condition: QueryConditionKindB): ComponentModel[] {\n const mainType = condition.mainType;\n if (!mainType) {\n return [];\n }\n\n const index = condition.index;\n const id = condition.id;\n const name = condition.name;\n const cmpts = this._componentsMap.get(mainType);\n\n if (!cmpts || !cmpts.length) {\n return [];\n }\n\n let result: ComponentModel[];\n\n if (index != null) {\n result = [];\n each(modelUtil.normalizeToArray(index), function (idx) {\n cmpts[idx] && result.push(cmpts[idx]);\n });\n }\n else if (id != null) {\n result = queryByIdOrName('id', id, cmpts);\n }\n else if (name != null) {\n result = queryByIdOrName('name', name, cmpts);\n }\n else {\n // Return all non-empty components in that mainType\n result = filter(cmpts, cmpt => !!cmpt);\n }\n\n return filterBySubType(result, condition);\n }\n\n /**\n * The interface is different from queryComponents,\n * which is convenient for inner usage.\n *\n * @usage\n * let result = findComponents(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}\n * );\n * let result = findComponents(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}\n * );\n * let result = findComponents(\n * {mainType: 'series',\n * filter: function (model, index) {...}}\n * );\n * // result like [component0, componnet1, ...]\n */\n findComponents(condition: QueryConditionKindA): ComponentModel[] {\n const query = condition.query;\n const mainType = condition.mainType;\n\n const queryCond = getQueryCond(query);\n const result = queryCond\n ? this.queryComponents(queryCond)\n // Retrieve all non-empty components.\n : filter(this._componentsMap.get(mainType), cmpt => !!cmpt);\n\n return doFilter(filterBySubType(result, condition));\n\n function getQueryCond(q: QueryConditionKindA['query']): QueryConditionKindB {\n const indexAttr = mainType + 'Index';\n const idAttr = mainType + 'Id';\n const nameAttr = mainType + 'Name';\n return q && (\n q[indexAttr] != null\n || q[idAttr] != null\n || q[nameAttr] != null\n )\n ? {\n mainType: mainType,\n // subType will be filtered finally.\n index: q[indexAttr] as (number | number[]),\n id: q[idAttr] as (OptionId | OptionId[]),\n name: q[nameAttr] as (OptionName | OptionName[])\n }\n : null;\n }\n\n function doFilter(res: ComponentModel[]) {\n return condition.filter\n ? filter(res, condition.filter)\n : res;\n }\n }\n\n /**\n * Travel components (before filtered).\n *\n * @usage\n * eachComponent('legend', function (legendModel, index) {\n * ...\n * });\n * eachComponent(function (componentType, model, index) {\n * // componentType does not include subType\n * // (componentType is 'xxx' but not 'xxx.aa')\n * });\n * eachComponent(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}},\n * function (model, index) {...}\n * );\n * eachComponent(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}},\n * function (model, index) {...}\n * );\n */\n eachComponent(\n cb: EachComponentAllCallback,\n context?: T\n ): void\n eachComponent(\n mainType: string,\n cb: EachComponentInMainTypeCallback,\n context?: T\n ): void\n eachComponent(\n mainType: QueryConditionKindA,\n cb: EachComponentInMainTypeCallback,\n context?: T\n ): void\n eachComponent(\n mainType: string | QueryConditionKindA | EachComponentAllCallback,\n cb?: EachComponentInMainTypeCallback | T,\n context?: T\n ) {\n const componentsMap = this._componentsMap;\n\n if (isFunction(mainType)) {\n const ctxForAll = cb as T;\n const cbForAll = mainType as EachComponentAllCallback;\n componentsMap.each(function (cmpts, componentType) {\n for (let i = 0; cmpts && i < cmpts.length; i++) {\n const cmpt = cmpts[i];\n cmpt && cbForAll.call(ctxForAll, componentType, cmpt, cmpt.componentIndex);\n }\n });\n }\n else {\n const cmpts = isString(mainType)\n ? componentsMap.get(mainType)\n : isObject(mainType)\n ? this.findComponents(mainType)\n : null;\n for (let i = 0; cmpts && i < cmpts.length; i++) {\n const cmpt = cmpts[i];\n cmpt && (cb as EachComponentInMainTypeCallback).call(\n context, cmpt, cmpt.componentIndex\n );\n }\n }\n }\n\n /**\n * Get series list before filtered by name.\n */\n getSeriesByName(name: OptionName): SeriesModel[] {\n const nameStr = modelUtil.convertOptionIdName(name, null);\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries && nameStr != null && oneSeries.name === nameStr\n );\n }\n\n /**\n * Get series list before filtered by index.\n */\n getSeriesByIndex(seriesIndex: number): SeriesModel {\n return this._componentsMap.get('series')[seriesIndex] as SeriesModel;\n }\n\n /**\n * Get series list before filtered by type.\n * FIXME: rename to getRawSeriesByType?\n */\n getSeriesByType(subType: ComponentSubType): SeriesModel[] {\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries && oneSeries.subType === subType\n );\n }\n\n /**\n * Get all series before filtered.\n */\n getSeries(): SeriesModel[] {\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries\n );\n }\n\n /**\n * Count series before filtered.\n */\n getSeriesCount(): number {\n return this._componentsCount.get('series');\n }\n\n /**\n * After filtering, series may be different\n * frome raw series.\n */\n eachSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n const series = this._componentsMap.get('series')[rawSeriesIndex] as SeriesModel;\n cb.call(context, series, rawSeriesIndex);\n }, this);\n }\n\n /**\n * Iterate raw series before filtered.\n *\n * @param {Function} cb\n * @param {*} context\n */\n eachRawSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n each(this._componentsMap.get('series'), function (series) {\n series && cb.call(context, series, series.componentIndex);\n });\n }\n\n /**\n * After filtering, series may be different.\n * frome raw series.\n */\n eachSeriesByType(\n subType: ComponentSubType,\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n const series = this._componentsMap.get('series')[rawSeriesIndex] as SeriesModel;\n if (series.subType === subType) {\n cb.call(context, series, rawSeriesIndex);\n }\n }, this);\n }\n\n /**\n * Iterate raw series before filtered of given type.\n */\n eachRawSeriesByType(\n subType: ComponentSubType,\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n return each(this.getSeriesByType(subType), cb, context);\n }\n\n isSeriesFiltered(seriesModel: SeriesModel): boolean {\n assertSeriesInitialized(this);\n return this._seriesIndicesMap.get(seriesModel.componentIndex) == null;\n }\n\n getCurrentSeriesIndices(): number[] {\n return (this._seriesIndices || []).slice();\n }\n\n filterSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => boolean,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n\n const newSeriesIndices: number[] = [];\n each(this._seriesIndices, function (seriesRawIdx) {\n const series = this._componentsMap.get('series')[seriesRawIdx] as SeriesModel;\n cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);\n }, this);\n\n this._seriesIndices = newSeriesIndices;\n this._seriesIndicesMap = createHashMap(newSeriesIndices);\n }\n\n restoreData(payload?: Payload): void {\n\n reCreateSeriesIndices(this);\n\n const componentsMap = this._componentsMap;\n const componentTypes: string[] = [];\n componentsMap.each(function (components, componentType) {\n if (ComponentModel.hasClass(componentType)) {\n componentTypes.push(componentType);\n }\n });\n\n (ComponentModel as ComponentModelConstructor).topologicalTravel(\n componentTypes,\n (ComponentModel as ComponentModelConstructor).getAllClassMainTypes(),\n function (componentType) {\n each(componentsMap.get(componentType), function (component) {\n if (component\n && (\n componentType !== 'series'\n || !isNotTargetSeries(component as SeriesModel, payload)\n )\n ) {\n component.restoreData();\n }\n });\n }\n );\n }\n\n private static internalField = (function () {\n\n reCreateSeriesIndices = function (ecModel: GlobalModel): void {\n const seriesIndices: number[] = ecModel._seriesIndices = [];\n each(ecModel._componentsMap.get('series'), function (series) {\n // series may have been removed by `replaceMerge`.\n series && seriesIndices.push(series.componentIndex);\n });\n ecModel._seriesIndicesMap = createHashMap(seriesIndices);\n };\n\n assertSeriesInitialized = function (ecModel: GlobalModel): void {\n // Components that use _seriesIndices should depends on series component,\n // which make sure that their initialization is after series.\n if (__DEV__) {\n if (!ecModel._seriesIndices) {\n throw new Error('Option should contains series.');\n }\n }\n };\n\n initBase = function (ecModel: GlobalModel, baseOption: ECUnitOption & AriaOptionMixin): void {\n // Using OPTION_INNER_KEY to mark that this option can not be used outside,\n // i.e. `chart.setOption(chart.getModel().option);` is forbiden.\n ecModel.option = {} as ECUnitOption;\n ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE;\n\n // Init with series: [], in case of calling findSeries method\n // before series initialized.\n ecModel._componentsMap = createHashMap({series: []});\n ecModel._componentsCount = createHashMap();\n\n // If user spefied `option.aria`, aria will be enable. This detection should be\n // performed before theme and globalDefault merge.\n const airaOption = baseOption.aria;\n if (isObject(airaOption) && airaOption.enabled == null) {\n airaOption.enabled = true;\n }\n\n mergeTheme(baseOption, ecModel._theme.option);\n\n // TODO Needs clone when merging to the unexisted property\n merge(baseOption, globalDefault, false);\n\n ecModel._mergeOption(baseOption, null);\n };\n\n })();\n}\n\n\n/**\n * @param condition.mainType Mandatory.\n * @param condition.subType Optional.\n * @param condition.query like {xxxIndex, xxxId, xxxName},\n * where xxx is mainType.\n * If query attribute is null/undefined or has no index/id/name,\n * do not filtering by query conditions, which is convenient for\n * no-payload situations or when target of action is global.\n * @param condition.filter parameter: component, return boolean.\n */\nexport interface QueryConditionKindA {\n mainType: ComponentMainType;\n subType?: ComponentSubType;\n query?: {\n [k: string]: number | number[] | string | string[]\n };\n filter?: (cmpt: ComponentModel) => boolean;\n}\n\n/**\n * If none of index and id and name used, return all components with mainType.\n * @param condition.mainType\n * @param condition.subType If ignore, only query by mainType\n * @param condition.index Either input index or id or name.\n * @param condition.id Either input index or id or name.\n * @param condition.name Either input index or id or name.\n */\nexport interface QueryConditionKindB {\n mainType: ComponentMainType;\n subType?: ComponentSubType;\n index?: number | number[];\n id?: OptionId | OptionId[];\n name?: OptionName | OptionName[];\n}\nexport interface EachComponentAllCallback {\n (mainType: string, model: ComponentModel, componentIndex: number): void;\n}\ninterface EachComponentInMainTypeCallback {\n (model: ComponentModel, componentIndex: number): void;\n}\n\n\nfunction isNotTargetSeries(seriesModel: SeriesModel, payload: Payload): boolean {\n if (payload) {\n const index = payload.seriesIndex;\n const id = payload.seriesId;\n const name = payload.seriesName;\n return (index != null && seriesModel.componentIndex !== index)\n || (id != null && seriesModel.id !== id)\n || (name != null && seriesModel.name !== name);\n }\n}\n\nfunction mergeTheme(option: ECUnitOption, theme: ThemeOption): void {\n // PENDING\n // NOT use `colorLayer` in theme if option has `color`\n const notMergeColorLayer = option.color && !option.colorLayer;\n\n each(theme, function (themeItem, name) {\n if (name === 'colorLayer' && notMergeColorLayer) {\n return;\n }\n\n // If it is component model mainType, the model handles that merge later.\n // otherwise, merge them here.\n if (!ComponentModel.hasClass(name)) {\n if (typeof themeItem === 'object') {\n option[name] = !option[name]\n ? clone(themeItem)\n : merge(option[name], themeItem, false);\n }\n else {\n if (option[name] == null) {\n option[name] = themeItem;\n }\n }\n }\n });\n}\n\nfunction queryByIdOrName(\n attr: 'id' | 'name',\n idOrName: string | number | (string | number)[],\n cmpts: T[]\n): T[] {\n // Here is a break from echarts4: string and number are\n // treated as equal.\n if (isArray(idOrName)) {\n const keyMap = createHashMap();\n each(idOrName, function (idOrNameItem) {\n if (idOrNameItem != null) {\n const idName = modelUtil.convertOptionIdName(idOrNameItem, null);\n idName != null && keyMap.set(idOrNameItem, true);\n }\n });\n return filter(cmpts, cmpt => cmpt && keyMap.get(cmpt[attr]));\n }\n else {\n const idName = modelUtil.convertOptionIdName(idOrName, null);\n return filter(cmpts, cmpt => cmpt && idName != null && cmpt[attr] === idName);\n }\n}\n\nfunction filterBySubType(\n components: ComponentModel[],\n condition: QueryConditionKindA | QueryConditionKindB\n): ComponentModel[] {\n // Using hasOwnProperty for restrict. Consider\n // subType is undefined in user payload.\n return condition.hasOwnProperty('subType')\n ? filter(components, cmpt => cmpt && cmpt.subType === condition.subType)\n : components;\n}\n\nfunction normalizeSetOptionInput(opts: GlobalModelSetOptionOpts): InnerSetOptionOpts {\n const replaceMergeMainTypeMap = createHashMap();\n opts && each(modelUtil.normalizeToArray(opts.replaceMerge), function (mainType) {\n if (__DEV__) {\n assert(\n ComponentModel.hasClass(mainType),\n '\"' + mainType + '\" is not valid component main type in \"replaceMerge\"'\n );\n }\n replaceMergeMainTypeMap.set(mainType, true);\n });\n return {\n replaceMergeMainTypeMap: replaceMergeMainTypeMap\n };\n}\n\ninterface GlobalModel extends PaletteMixin {}\nmixin(GlobalModel, PaletteMixin);\n\nexport default GlobalModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {EChartsType} from './echarts';\n\nimport type {CoordinateSystemMaster} from '../coord/CoordinateSystem';\nimport type Element from 'zrender/src/Element';\nimport type ComponentModel from '../model/Component';\nimport type ComponentView from '../view/Component';\nimport type ChartView from '../view/Chart';\nimport type SeriesModel from '../model/Series';\nimport type GlobalModel from '../model/Global';\n\nconst availableMethods: (keyof EChartsType)[] = [\n 'getDom',\n 'getZr',\n 'getWidth',\n 'getHeight',\n 'getDevicePixelRatio',\n 'dispatchAction',\n 'isDisposed',\n 'on',\n 'off',\n 'getDataURL',\n 'getConnectedDataURL',\n // 'getModel',\n 'getOption',\n // 'getViewOfComponentModel',\n // 'getViewOfSeriesModel',\n 'getId',\n 'updateLabelLayout'\n];\n\ninterface ExtensionAPI extends Pick {}\n\nabstract class ExtensionAPI {\n\n constructor(ecInstance: EChartsType) {\n zrUtil.each(availableMethods, function (methodName: string) {\n (this as any)[methodName] = zrUtil.bind((ecInstance as any)[methodName], ecInstance);\n }, this);\n }\n\n // Implemented in echarts.js\n abstract getCoordinateSystems(): CoordinateSystemMaster[];\n abstract getComponentByElement(el: Element): ComponentModel;\n abstract enterEmphasis(el: Element, highlightDigit?: number): void;\n abstract leaveEmphasis(el: Element, highlightDigit?: number): void;\n abstract enterSelect(el: Element): void;\n abstract leaveSelect(el: Element): void;\n abstract enterBlur(el: Element): void;\n abstract leaveBlur(el: Element): void;\n // These methods are not planned to be exposed to outside.\n abstract getViewOfComponentModel(componentModel: ComponentModel): ComponentView;\n abstract getViewOfSeriesModel(seriesModel: SeriesModel): ChartView;\n abstract getModel(): GlobalModel;\n}\n\nexport default ExtensionAPI;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nimport type GlobalModel from '../model/Global';\nimport type ExtensionAPI from './ExtensionAPI';\nimport type { CoordinateSystemCreator, CoordinateSystemMaster } from '../coord/CoordinateSystem';\n\nconst coordinateSystemCreators: {[type: string]: CoordinateSystemCreator} = {};\n\nclass CoordinateSystemManager {\n\n private _coordinateSystems: CoordinateSystemMaster[] = [];\n\n create(ecModel: GlobalModel, api: ExtensionAPI): void {\n let coordinateSystems: CoordinateSystemMaster[] = [];\n zrUtil.each(coordinateSystemCreators, function (creater, type) {\n const list = creater.create(ecModel, api);\n coordinateSystems = coordinateSystems.concat(list || []);\n });\n\n this._coordinateSystems = coordinateSystems;\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n zrUtil.each(this._coordinateSystems, function (coordSys) {\n coordSys.update && coordSys.update(ecModel, api);\n });\n }\n\n getCoordinateSystems(): CoordinateSystemMaster[] {\n return this._coordinateSystems.slice();\n }\n\n static register = function (type: string, creator: CoordinateSystemCreator): void {\n coordinateSystemCreators[type] = creator;\n };\n\n static get = function (type: string): CoordinateSystemCreator {\n return coordinateSystemCreators[type];\n };\n\n}\n\nexport default CoordinateSystemManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * ECharts option manager\n */\n\n\n// import ComponentModel, { ComponentModelConstructor } from './Component';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {\n OptionPreprocessor, MediaQuery, ECUnitOption, MediaUnit, ECBasicOption, SeriesOption\n} from '../util/types';\nimport GlobalModel, { InnerSetOptionOpts } from './Global';\nimport {\n normalizeToArray\n // , MappingExistingItem, setComponentTypeToKeyInfo, mappingToExists\n} from '../util/model';\nimport {\n each, clone, map, isTypedArray, setAsPrimitive, isArray, isObject\n // , HashMap , createHashMap, extend, merge,\n} from 'zrender/src/core/util';\nimport { DatasetOption } from '../component/dataset/install';\nimport { error } from '../util/log';\n\nconst QUERY_REG = /^(min|max)?(.+)$/;\n\ninterface ParsedRawOption {\n baseOption: ECUnitOption;\n timelineOptions: ECUnitOption[];\n mediaDefault: MediaUnit;\n mediaList: MediaUnit[];\n}\n\n// Key: mainType\n// type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>;\n\n/**\n * TERM EXPLANATIONS:\n * See `ECOption` and `ECUnitOption` in `src/util/types.ts`.\n */\nclass OptionManager {\n\n private _api: ExtensionAPI;\n\n private _timelineOptions: ECUnitOption[] = [];\n\n private _mediaList: MediaUnit[] = [];\n\n private _mediaDefault: MediaUnit;\n\n /**\n * -1, means default.\n * empty means no media.\n */\n private _currentMediaIndices: number[] = [];\n\n private _optionBackup: ParsedRawOption;\n\n // private _fakeCmptsMap: FakeComponentsMap;\n\n private _newBaseOption: ECUnitOption;\n\n // timeline.notMerge is not supported in ec3. Firstly there is rearly\n // case that notMerge is needed. Secondly supporting 'notMerge' requires\n // rawOption cloned and backuped when timeline changed, which does no\n // good to performance. What's more, that both timeline and setOption\n // method supply 'notMerge' brings complex and some problems.\n // Consider this case:\n // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);\n // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);\n\n constructor(api: ExtensionAPI) {\n this._api = api;\n }\n\n setOption(\n rawOption: ECBasicOption,\n optionPreprocessorFuncs: OptionPreprocessor[],\n opt: InnerSetOptionOpts\n ): void {\n if (rawOption) {\n // That set dat primitive is dangerous if user reuse the data when setOption again.\n each(normalizeToArray((rawOption as ECUnitOption).series), function (series: SeriesOption) {\n series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data);\n });\n each(normalizeToArray((rawOption as ECUnitOption).dataset), function (dataset: DatasetOption) {\n dataset && dataset.source && isTypedArray(dataset.source) && setAsPrimitive(dataset.source);\n });\n }\n\n // Caution: some series modify option data, if do not clone,\n // it should ensure that the repeat modify correctly\n // (create a new object when modify itself).\n rawOption = clone(rawOption);\n\n // FIXME\n // If some property is set in timeline options or media option but\n // not set in baseOption, a warning should be given.\n\n const optionBackup = this._optionBackup;\n const newParsedOption = parseRawOption(\n rawOption, optionPreprocessorFuncs, !optionBackup\n );\n this._newBaseOption = newParsedOption.baseOption;\n\n // For setOption at second time (using merge mode);\n if (optionBackup) {\n // FIXME\n // the restore merge solution is essentially incorrect.\n // the mapping can not be 100% consistent with ecModel, which probably brings\n // potential bug!\n\n // The first merge is delayed, becuase in most cases, users do not call `setOption` twice.\n // let fakeCmptsMap = this._fakeCmptsMap;\n // if (!fakeCmptsMap) {\n // fakeCmptsMap = this._fakeCmptsMap = createHashMap();\n // mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);\n // }\n\n // mergeToBackupOption(\n // fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt\n // );\n\n // For simplicity, timeline options and media options do not support merge,\n // that is, if you `setOption` twice and both has timeline options, the latter\n // timeline opitons will not be merged to the formers, but just substitude them.\n if (newParsedOption.timelineOptions.length) {\n optionBackup.timelineOptions = newParsedOption.timelineOptions;\n }\n if (newParsedOption.mediaList.length) {\n optionBackup.mediaList = newParsedOption.mediaList;\n }\n if (newParsedOption.mediaDefault) {\n optionBackup.mediaDefault = newParsedOption.mediaDefault;\n }\n }\n else {\n this._optionBackup = newParsedOption;\n }\n }\n\n mountOption(isRecreate: boolean): ECUnitOption {\n const optionBackup = this._optionBackup;\n\n this._timelineOptions = optionBackup.timelineOptions;\n this._mediaList = optionBackup.mediaList;\n this._mediaDefault = optionBackup.mediaDefault;\n this._currentMediaIndices = [];\n\n return clone(isRecreate\n // this._optionBackup.baseOption, which is created at the first `setOption`\n // called, and is merged into every new option by inner method `mergeToBackupOption`\n // each time `setOption` called, can be only used in `isRecreate`, because\n // its reliability is under suspicion. In other cases option merge is\n // performed by `model.mergeOption`.\n ? optionBackup.baseOption : this._newBaseOption\n );\n }\n\n getTimelineOption(ecModel: GlobalModel): ECUnitOption {\n let option;\n const timelineOptions = this._timelineOptions;\n\n if (timelineOptions.length) {\n // getTimelineOption can only be called after ecModel inited,\n // so we can get currentIndex from timelineModel.\n const timelineModel = ecModel.getComponent('timeline');\n if (timelineModel) {\n option = clone(\n // FIXME:TS as TimelineModel or quivlant interface\n timelineOptions[(timelineModel as any).getCurrentIndex()]\n );\n }\n }\n\n return option;\n }\n\n getMediaOption(ecModel: GlobalModel): ECUnitOption[] {\n const ecWidth = this._api.getWidth();\n const ecHeight = this._api.getHeight();\n const mediaList = this._mediaList;\n const mediaDefault = this._mediaDefault;\n let indices = [];\n let result: ECUnitOption[] = [];\n\n // No media defined.\n if (!mediaList.length && !mediaDefault) {\n return result;\n }\n\n // Multi media may be applied, the latter defined media has higher priority.\n for (let i = 0, len = mediaList.length; i < len; i++) {\n if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {\n indices.push(i);\n }\n }\n\n // FIXME\n // Whether mediaDefault should force users to provide? Otherwise\n // the change by media query can not be recorvered.\n if (!indices.length && mediaDefault) {\n indices = [-1];\n }\n\n if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {\n result = map(indices, function (index) {\n return clone(\n index === -1 ? mediaDefault.option : mediaList[index].option\n );\n });\n }\n // Otherwise return nothing.\n\n this._currentMediaIndices = indices;\n\n return result;\n }\n\n}\n\n/**\n * [RAW_OPTION_PATTERNS]\n * (Note: \"series: []\" represents all other props in `ECUnitOption`)\n *\n * (1) No prop \"baseOption\" declared:\n * Root option is used as \"baseOption\" (except prop \"options\" and \"media\").\n * ```js\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * };\n * option = {\n * series: [],\n * media: {},\n * };\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * media: {},\n * }\n * ```\n *\n * (2) Prop \"baseOption\" declared:\n * If \"baseOption\" declared, `ECUnitOption` props can only be declared\n * inside \"baseOption\" except prop \"timeline\" (compat ec2).\n * ```js\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * };\n * option = {\n * baseOption: {\n * series: [],\n * },\n * media: []\n * };\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * media: []\n * };\n * option = {\n * // ec3 compat ec2: allow (only) `timeline` declared\n * // outside baseOption. Keep this setting for compat.\n * timeline: {},\n * baseOption: {\n * series: [],\n * },\n * options: [],\n * media: []\n * };\n * ```\n */\nfunction parseRawOption(\n // `rawOption` May be modified\n rawOption: ECBasicOption,\n optionPreprocessorFuncs: OptionPreprocessor[],\n isNew: boolean\n): ParsedRawOption {\n const mediaList: MediaUnit[] = [];\n let mediaDefault: MediaUnit;\n let baseOption: ECUnitOption;\n\n const declaredBaseOption = rawOption.baseOption;\n // Compatible with ec2, [RAW_OPTION_PATTERNS] above.\n const timelineOnRoot = rawOption.timeline;\n const timelineOptionsOnRoot = rawOption.options;\n const mediaOnRoot = rawOption.media;\n const hasMedia = !!rawOption.media;\n const hasTimeline = !!(\n timelineOptionsOnRoot || timelineOnRoot || (declaredBaseOption && declaredBaseOption.timeline)\n );\n\n if (declaredBaseOption) {\n baseOption = declaredBaseOption;\n // For merge option.\n if (!baseOption.timeline) {\n baseOption.timeline = timelineOnRoot;\n }\n }\n // For convenience, enable to use the root option as the `baseOption`:\n // `{ ...normalOptionProps, media: [{ ... }, { ... }] }`\n else {\n if (hasTimeline || hasMedia) {\n rawOption.options = rawOption.media = null;\n }\n baseOption = rawOption;\n }\n\n if (hasMedia) {\n if (isArray(mediaOnRoot)) {\n each(mediaOnRoot, function (singleMedia) {\n if (__DEV__) {\n // Real case of wrong config.\n if (singleMedia\n && !singleMedia.option\n && isObject(singleMedia.query)\n && isObject((singleMedia.query as any).option)\n ) {\n error('Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }');\n }\n }\n if (singleMedia && singleMedia.option) {\n if (singleMedia.query) {\n mediaList.push(singleMedia);\n }\n else if (!mediaDefault) {\n // Use the first media default.\n mediaDefault = singleMedia;\n }\n }\n });\n }\n else {\n if (__DEV__) {\n // Real case of wrong config.\n error('Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }');\n }\n }\n }\n\n doPreprocess(baseOption);\n each(timelineOptionsOnRoot, option => doPreprocess(option));\n each(mediaList, media => doPreprocess(media.option));\n\n function doPreprocess(option: ECUnitOption) {\n each(optionPreprocessorFuncs, function (preProcess) {\n preProcess(option, isNew);\n });\n }\n\n return {\n baseOption: baseOption,\n timelineOptions: timelineOptionsOnRoot || [],\n mediaDefault: mediaDefault,\n mediaList: mediaList\n };\n}\n\n/**\n * @see \n * Support: width, height, aspectRatio\n * Can use max or min as prefix.\n */\nfunction applyMediaQuery(query: MediaQuery, ecWidth: number, ecHeight: number): boolean {\n const realMap = {\n width: ecWidth,\n height: ecHeight,\n aspectratio: ecWidth / ecHeight // lowser case for convenientce.\n };\n\n let applicatable = true;\n\n each(query, function (value: number, attr) {\n const matched = attr.match(QUERY_REG);\n\n if (!matched || !matched[1] || !matched[2]) {\n return;\n }\n\n const operator = matched[1];\n const realAttr = matched[2].toLowerCase();\n\n if (!compare(realMap[realAttr as keyof typeof realMap], value, operator)) {\n applicatable = false;\n }\n });\n\n return applicatable;\n}\n\nfunction compare(real: number, expect: number, operator: string): boolean {\n if (operator === 'min') {\n return real >= expect;\n }\n else if (operator === 'max') {\n return real <= expect;\n }\n else { // Equals\n return real === expect;\n }\n}\n\nfunction indicesEquals(indices1: number[], indices2: number[]): boolean {\n // indices is always order by asc and has only finite number.\n return indices1.join(',') === indices2.join(',');\n}\n\n/**\n * Consider case:\n * `chart.setOption(opt1);`\n * Then user do some interaction like dataZoom, dataView changing.\n * `chart.setOption(opt2);`\n * Then user press 'reset button' in toolbox.\n *\n * After doing that all of the interaction effects should be reset, the\n * chart should be the same as the result of invoke\n * `chart.setOption(opt1); chart.setOption(opt2);`.\n *\n * Although it is not able ensure that\n * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to\n * `chart.setOption(merge(opt1, opt2));` exactly,\n * this might be the only simple way to implement that feature.\n *\n * MEMO: We've considered some other approaches:\n * 1. Each model handle its self restoration but not uniform treatment.\n * (Too complex in logic and error-prone)\n * 2. Use a shadow ecModel. (Performace expensive)\n *\n * FIXME: A possible solution:\n * Add a extra level of model for each component model. The inheritance chain would be:\n * ecModel <- componentModel <- componentActionModel <- dataItemModel\n * And all of the actions can only modify the `componentActionModel` rather than\n * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.\n * When \"resotre\" action triggered, model from `componentActionModel` will be discarded\n * instead of recreating the \"ecModel\" from the \"_optionBackup\".\n */\n// function mergeToBackupOption(\n// fakeCmptsMap: FakeComponentsMap,\n// // `tarOption` Can be null/undefined, means init\n// tarOption: ECUnitOption,\n// newOption: ECUnitOption,\n// // Can be null/undefined\n// opt: InnerSetOptionOpts\n// ): void {\n// newOption = newOption || {} as ECUnitOption;\n// const notInit = !!tarOption;\n\n// each(newOption, function (newOptsInMainType, mainType) {\n// if (newOptsInMainType == null) {\n// return;\n// }\n\n// if (!ComponentModel.hasClass(mainType)) {\n// if (tarOption) {\n// tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);\n// }\n// }\n// else {\n// const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;\n// const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];\n// const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;\n// const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);\n\n// const mappingResult = mappingToExists(\n// oldFakeCmptsInMainType,\n// normalizeToArray(newOptsInMainType),\n// (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'\n// );\n// setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n\n// each(mappingResult, function (resultItem, index) {\n// // The same logic as `Global.ts#_mergeOption`.\n// let fakeCmpt = resultItem.existing;\n// const newOption = resultItem.newOption;\n// const keyInfo = resultItem.keyInfo;\n// let fakeCmptOpt;\n\n// if (!newOption) {\n// fakeCmptOpt = oldTarOptsInMainType[index];\n// }\n// else {\n// if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {\n// fakeCmpt.name = keyInfo.name;\n// if (notInit) {\n// fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);\n// }\n// }\n// else {\n// fakeCmpt = extend({}, keyInfo);\n// if (notInit) {\n// fakeCmptOpt = clone(newOption);\n// }\n// }\n// }\n\n// if (fakeCmpt) {\n// notInit && resultTarOptsInMainType.push(fakeCmptOpt);\n// resultFakeCmptsInMainType.push(fakeCmpt);\n// }\n// else {\n// notInit && resultTarOptsInMainType.push(void 0);\n// resultFakeCmptsInMainType.push(void 0);\n// }\n// });\n// }\n// });\n// }\n\nexport default OptionManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { deprecateLog, deprecateReplaceLog } from '../../util/log';\n\nconst each = zrUtil.each;\nconst isObject = zrUtil.isObject;\n\nconst POSSIBLE_STYLES = [\n 'areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle',\n 'chordStyle', 'label', 'labelLine'\n];\n\n\nfunction compatEC2ItemStyle(opt: Dictionary) {\n const itemStyleOpt = opt && opt.itemStyle;\n if (!itemStyleOpt) {\n return;\n }\n for (let i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {\n const styleName = POSSIBLE_STYLES[i];\n const normalItemStyleOpt = itemStyleOpt.normal;\n const emphasisItemStyleOpt = itemStyleOpt.emphasis;\n if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {\n if (__DEV__) {\n deprecateReplaceLog(`itemStyle.normal.${styleName}`, styleName);\n }\n opt[styleName] = opt[styleName] || {};\n if (!opt[styleName].normal) {\n opt[styleName].normal = normalItemStyleOpt[styleName];\n }\n else {\n zrUtil.merge(opt[styleName].normal, normalItemStyleOpt[styleName]);\n }\n normalItemStyleOpt[styleName] = null;\n }\n if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {\n if (__DEV__) {\n deprecateReplaceLog(`itemStyle.emphasis.${styleName}`, `emphasis.${styleName}`);\n }\n opt[styleName] = opt[styleName] || {};\n if (!opt[styleName].emphasis) {\n opt[styleName].emphasis = emphasisItemStyleOpt[styleName];\n }\n else {\n zrUtil.merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);\n }\n emphasisItemStyleOpt[styleName] = null;\n }\n }\n}\n\nfunction convertNormalEmphasis(opt: Dictionary, optType: string, useExtend?: boolean) {\n if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {\n const normalOpt = opt[optType].normal;\n const emphasisOpt = opt[optType].emphasis;\n\n if (normalOpt) {\n if (__DEV__) {\n // eslint-disable-next-line max-len\n deprecateLog(`'normal' hierarchy in ${optType} has been removed since 4.0. All style properties are configured in ${optType} directly now.`);\n }\n // Timeline controlStyle has other properties besides normal and emphasis\n if (useExtend) {\n opt[optType].normal = opt[optType].emphasis = null;\n zrUtil.defaults(opt[optType], normalOpt);\n }\n else {\n opt[optType] = normalOpt;\n }\n }\n if (emphasisOpt) {\n if (__DEV__) {\n deprecateLog(`${optType}.emphasis has been changed to emphasis.${optType} since 4.0`);\n }\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[optType] = emphasisOpt;\n\n // Also compat the case user mix the style and focus together in ec3 style\n // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }\n if (emphasisOpt.focus) {\n opt.emphasis.focus = emphasisOpt.focus;\n }\n if (emphasisOpt.blurScope) {\n opt.emphasis.blurScope = emphasisOpt.blurScope;\n }\n }\n }\n}\n\nfunction removeEC3NormalStatus(opt: Dictionary) {\n convertNormalEmphasis(opt, 'itemStyle');\n convertNormalEmphasis(opt, 'lineStyle');\n convertNormalEmphasis(opt, 'areaStyle');\n convertNormalEmphasis(opt, 'label');\n convertNormalEmphasis(opt, 'labelLine');\n // treemap\n convertNormalEmphasis(opt, 'upperLabel');\n // graph\n convertNormalEmphasis(opt, 'edgeLabel');\n}\n\nfunction compatTextStyle(opt: any, propName: string) {\n // Check whether is not object (string\\null\\undefined ...)\n const labelOptSingle = isObject(opt) && opt[propName];\n const textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle;\n if (textStyle) {\n if (__DEV__) {\n // eslint-disable-next-line max-len\n deprecateLog(`textStyle hierarchy in ${propName} has been removed since 4.0. All textStyle properties are configured in ${propName} directly now.`);\n }\n for (let i = 0, len = modelUtil.TEXT_STYLE_OPTIONS.length; i < len; i++) {\n const textPropName = modelUtil.TEXT_STYLE_OPTIONS[i];\n if (textStyle.hasOwnProperty(textPropName)) {\n labelOptSingle[textPropName] = textStyle[textPropName];\n }\n }\n }\n}\n\nfunction compatEC3CommonStyles(opt: Dictionary) {\n if (opt) {\n removeEC3NormalStatus(opt);\n compatTextStyle(opt, 'label');\n opt.emphasis && compatTextStyle(opt.emphasis, 'label');\n }\n}\n\nfunction processSeries(seriesOpt: any) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n compatEC2ItemStyle(seriesOpt);\n removeEC3NormalStatus(seriesOpt);\n\n compatTextStyle(seriesOpt, 'label');\n // treemap\n compatTextStyle(seriesOpt, 'upperLabel');\n // graph\n compatTextStyle(seriesOpt, 'edgeLabel');\n if (seriesOpt.emphasis) {\n compatTextStyle(seriesOpt.emphasis, 'label');\n // treemap\n compatTextStyle(seriesOpt.emphasis, 'upperLabel');\n // graph\n compatTextStyle(seriesOpt.emphasis, 'edgeLabel');\n }\n\n let markPoint = seriesOpt.markPoint;\n if (markPoint) {\n compatEC2ItemStyle(markPoint);\n compatEC3CommonStyles(markPoint);\n }\n\n let markLine = seriesOpt.markLine;\n if (markLine) {\n compatEC2ItemStyle(markLine);\n compatEC3CommonStyles(markLine);\n }\n\n const markArea = seriesOpt.markArea;\n if (markArea) {\n compatEC3CommonStyles(markArea);\n }\n\n let data = seriesOpt.data;\n\n // Break with ec3: if `setOption` again, there may be no `type` in option,\n // then the backward compat based on option type will not be performed.\n\n if (seriesOpt.type === 'graph') {\n data = data || seriesOpt.nodes;\n const edgeData = seriesOpt.links || seriesOpt.edges;\n if (edgeData && !zrUtil.isTypedArray(edgeData)) {\n for (let i = 0; i < edgeData.length; i++) {\n compatEC3CommonStyles(edgeData[i]);\n }\n }\n zrUtil.each(seriesOpt.categories, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n\n if (data && !zrUtil.isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n compatEC3CommonStyles(data[i]);\n }\n }\n\n // mark point data\n markPoint = seriesOpt.markPoint;\n if (markPoint && markPoint.data) {\n const mpData = markPoint.data;\n for (let i = 0; i < mpData.length; i++) {\n compatEC3CommonStyles(mpData[i]);\n }\n }\n // mark line data\n markLine = seriesOpt.markLine;\n if (markLine && markLine.data) {\n const mlData = markLine.data;\n for (let i = 0; i < mlData.length; i++) {\n if (zrUtil.isArray(mlData[i])) {\n compatEC3CommonStyles(mlData[i][0]);\n compatEC3CommonStyles(mlData[i][1]);\n }\n else {\n compatEC3CommonStyles(mlData[i]);\n }\n }\n }\n\n // Series\n if (seriesOpt.type === 'gauge') {\n compatTextStyle(seriesOpt, 'axisLabel');\n compatTextStyle(seriesOpt, 'title');\n compatTextStyle(seriesOpt, 'detail');\n }\n else if (seriesOpt.type === 'treemap') {\n convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');\n zrUtil.each(seriesOpt.levels, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n else if (seriesOpt.type === 'tree') {\n removeEC3NormalStatus(seriesOpt.leaves);\n }\n // sunburst starts from ec4, so it does not need to compat levels.\n}\n\nfunction toArr(o: any) {\n return zrUtil.isArray(o) ? o : o ? [o] : [];\n}\n\nfunction toObj(o: any) {\n return (zrUtil.isArray(o) ? o[0] : o) || {};\n}\n\nexport default function globalCompatStyle(option: any, isTheme?: boolean) {\n each(toArr(option.series), function (seriesOpt) {\n isObject(seriesOpt) && processSeries(seriesOpt);\n });\n\n const axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];\n isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');\n\n each(\n axes,\n function (axisName) {\n each(toArr(option[axisName]), function (axisOpt) {\n if (axisOpt) {\n compatTextStyle(axisOpt, 'axisLabel');\n compatTextStyle(axisOpt.axisPointer, 'label');\n }\n });\n }\n );\n\n each(toArr(option.parallel), function (parallelOpt) {\n const parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;\n compatTextStyle(parallelAxisDefault, 'axisLabel');\n compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');\n });\n\n each(toArr(option.calendar), function (calendarOpt) {\n convertNormalEmphasis(calendarOpt, 'itemStyle');\n compatTextStyle(calendarOpt, 'dayLabel');\n compatTextStyle(calendarOpt, 'monthLabel');\n compatTextStyle(calendarOpt, 'yearLabel');\n });\n\n // radar.name.textStyle\n each(toArr(option.radar), function (radarOpt) {\n compatTextStyle(radarOpt, 'name');\n // Use axisName instead of name because component has name property\n if (radarOpt.name && radarOpt.axisName == null) {\n radarOpt.axisName = radarOpt.name;\n delete radarOpt.name;\n if (__DEV__) {\n deprecateLog('name property in radar component has been changed to axisName');\n }\n }\n if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) {\n radarOpt.axisNameGap = radarOpt.nameGap;\n delete radarOpt.nameGap;\n if (__DEV__) {\n deprecateLog('nameGap property in radar component has been changed to axisNameGap');\n }\n }\n });\n\n each(toArr(option.geo), function (geoOpt) {\n if (isObject(geoOpt)) {\n compatEC3CommonStyles(geoOpt);\n each(toArr(geoOpt.regions), function (regionObj) {\n compatEC3CommonStyles(regionObj);\n });\n }\n });\n\n each(toArr(option.timeline), function (timelineOpt) {\n compatEC3CommonStyles(timelineOpt);\n convertNormalEmphasis(timelineOpt, 'label');\n convertNormalEmphasis(timelineOpt, 'itemStyle');\n convertNormalEmphasis(timelineOpt, 'controlStyle', true);\n\n const data = timelineOpt.data;\n zrUtil.isArray(data) && zrUtil.each(data, function (item) {\n if (zrUtil.isObject(item)) {\n convertNormalEmphasis(item, 'label');\n convertNormalEmphasis(item, 'itemStyle');\n }\n });\n });\n\n each(toArr(option.toolbox), function (toolboxOpt) {\n convertNormalEmphasis(toolboxOpt, 'iconStyle');\n each(toolboxOpt.feature, function (featureOpt) {\n convertNormalEmphasis(featureOpt, 'iconStyle');\n });\n });\n\n compatTextStyle(toObj(option.axisPointer), 'label');\n compatTextStyle(toObj(option.tooltip).axisPointer, 'label');\n\n // Clean logs\n // storedLogs = {};\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, isArray, isObject, isTypedArray, defaults} from 'zrender/src/core/util';\nimport compatStyle from './helper/compatStyle';\nimport {normalizeToArray} from '../util/model';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { ECUnitOption } from '../util/types';\nimport type { BarSeriesOption } from '../chart/bar/BarSeries';\nimport type { PieSeriesOption } from '../chart/pie/PieSeries';\nimport { deprecateLog, deprecateReplaceLog } from '../util/log';\n\nfunction get(opt: Dictionary, path: string): any {\n const pathArr = path.split(',');\n let obj = opt;\n for (let i = 0; i < pathArr.length; i++) {\n obj = obj && obj[pathArr[i]];\n if (obj == null) {\n break;\n }\n }\n return obj;\n}\n\nfunction set(opt: Dictionary, path: string, val: any, overwrite?: boolean) {\n const pathArr = path.split(',');\n let obj = opt;\n let key;\n let i = 0;\n for (; i < pathArr.length - 1; i++) {\n key = pathArr[i];\n if (obj[key] == null) {\n obj[key] = {};\n }\n obj = obj[key];\n }\n if (overwrite || obj[pathArr[i]] == null) {\n obj[pathArr[i]] = val;\n }\n}\n\nfunction compatLayoutProperties(option: Dictionary) {\n option && each(LAYOUT_PROPERTIES, function (prop) {\n if (prop[0] in option && !(prop[1] in option)) {\n option[prop[1]] = option[prop[0]];\n }\n });\n}\n\nconst LAYOUT_PROPERTIES = [\n ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']\n];\n\nconst COMPATITABLE_COMPONENTS = [\n 'grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'\n];\n\nconst BAR_ITEM_STYLE_MAP = [\n ['borderRadius', 'barBorderRadius'],\n ['borderColor', 'barBorderColor'],\n ['borderWidth', 'barBorderWidth']\n];\n\nfunction compatBarItemStyle(option: Dictionary) {\n const itemStyle = option && option.itemStyle;\n if (itemStyle) {\n for (let i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {\n const oldName = BAR_ITEM_STYLE_MAP[i][1];\n const newName = BAR_ITEM_STYLE_MAP[i][0];\n if (itemStyle[oldName] != null) {\n itemStyle[newName] = itemStyle[oldName];\n if (__DEV__) {\n deprecateReplaceLog(oldName, newName);\n }\n }\n }\n }\n}\n\nfunction compatPieLabel(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {\n if (__DEV__) {\n deprecateReplaceLog('label.margin', 'label.edgeDistance', 'pie');\n }\n option.edgeDistance = option.margin;\n }\n}\n\nfunction compatSunburstState(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.downplay && !option.blur) {\n option.blur = option.downplay;\n if (__DEV__) {\n deprecateReplaceLog('downplay', 'blur', 'sunburst');\n }\n }\n}\n\nfunction compatGraphFocus(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.focusNodeAdjacency != null) {\n option.emphasis = option.emphasis || {};\n if (option.emphasis.focus == null) {\n if (__DEV__) {\n deprecateReplaceLog('focusNodeAdjacency', 'emphasis: { focus: \\'adjacency\\'}', 'graph/sankey');\n }\n option.emphasis.focus = 'adjacency';\n }\n }\n}\n\nfunction traverseTree(data: any[], cb: Function) {\n if (data) {\n for (let i = 0; i < data.length; i++) {\n cb(data[i]);\n data[i] && traverseTree(data[i].children, cb);\n }\n }\n}\n\nexport default function globalBackwardCompat(option: ECUnitOption, isTheme?: boolean) {\n compatStyle(option, isTheme);\n\n // Make sure series array for model initialization.\n option.series = normalizeToArray(option.series);\n\n each(option.series, function (seriesOpt: any) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n const seriesType = seriesOpt.type;\n\n if (seriesType === 'line') {\n if (seriesOpt.clipOverflow != null) {\n seriesOpt.clip = seriesOpt.clipOverflow;\n if (__DEV__) {\n deprecateReplaceLog('clipOverflow', 'clip', 'line');\n }\n }\n }\n else if (seriesType === 'pie' || seriesType === 'gauge') {\n if (seriesOpt.clockWise != null) {\n seriesOpt.clockwise = seriesOpt.clockWise;\n if (__DEV__) {\n deprecateReplaceLog('clockWise', 'clockwise');\n }\n }\n compatPieLabel((seriesOpt as PieSeriesOption).label);\n const data = seriesOpt.data;\n if (data && !isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n compatPieLabel(data[i]);\n }\n }\n\n if (seriesOpt.hoverOffset != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (seriesOpt.emphasis.scaleSize = null) {\n if (__DEV__) {\n deprecateReplaceLog('hoverOffset', 'emphasis.scaleSize');\n }\n seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset;\n }\n }\n }\n else if (seriesType === 'gauge') {\n const pointerColor = get(seriesOpt, 'pointer.color');\n pointerColor != null\n && set(seriesOpt, 'itemStyle.color', pointerColor);\n }\n else if (seriesType === 'bar') {\n compatBarItemStyle(seriesOpt);\n compatBarItemStyle((seriesOpt as BarSeriesOption).backgroundStyle);\n compatBarItemStyle(seriesOpt.emphasis);\n const data = seriesOpt.data;\n if (data && !isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n if (typeof data[i] === 'object') {\n compatBarItemStyle(data[i]);\n compatBarItemStyle(data[i] && data[i].emphasis);\n }\n }\n }\n }\n else if (seriesType === 'sunburst') {\n const highlightPolicy = seriesOpt.highlightPolicy;\n if (highlightPolicy) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (!seriesOpt.emphasis.focus) {\n seriesOpt.emphasis.focus = highlightPolicy;\n if (__DEV__) {\n deprecateReplaceLog('highlightPolicy', 'emphasis.focus', 'sunburst');\n }\n }\n }\n\n compatSunburstState(seriesOpt);\n\n traverseTree(seriesOpt.data, compatSunburstState);\n }\n else if (seriesType === 'graph' || seriesType === 'sankey') {\n compatGraphFocus(seriesOpt);\n // TODO nodes, edges?\n }\n else if (seriesType === 'map') {\n if (seriesOpt.mapType && !seriesOpt.map) {\n if (__DEV__) {\n deprecateReplaceLog('mapType', 'map', 'map');\n }\n seriesOpt.map = seriesOpt.mapType;\n }\n if (seriesOpt.mapLocation) {\n if (__DEV__) {\n deprecateLog('`mapLocation` is not used anymore.');\n }\n defaults(seriesOpt, seriesOpt.mapLocation);\n }\n }\n\n if (seriesOpt.hoverAnimation != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) {\n if (__DEV__) {\n deprecateReplaceLog('hoverAnimation', 'emphasis.scale');\n }\n seriesOpt.emphasis.scale = seriesOpt.hoverAnimation;\n }\n }\n\n compatLayoutProperties(seriesOpt);\n });\n\n // dataRange has changed to visualMap\n if (option.dataRange) {\n option.visualMap = option.dataRange;\n }\n\n each(COMPATITABLE_COMPONENTS, function (componentName) {\n let options = option[componentName];\n if (options) {\n if (!isArray(options)) {\n options = [options];\n }\n each(options, function (option) {\n compatLayoutProperties(option);\n });\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, each} from 'zrender/src/core/util';\nimport GlobalModel from '../model/Global';\nimport SeriesModel from '../model/Series';\nimport { SeriesOption, SeriesStackOptionMixin } from '../util/types';\nimport SeriesData, { DataCalculationInfo } from '../data/SeriesData';\nimport { addSafe } from '../util/number';\n\ntype StackInfo = Pick<\n DataCalculationInfo,\n 'stackedDimension'\n | 'isStackedByIndex'\n | 'stackedByDimension'\n | 'stackResultDimension'\n | 'stackedOverDimension'\n> & {\n data: SeriesData\n seriesModel: SeriesModel\n};\n\n// (1) [Caution]: the logic is correct based on the premises:\n// data processing stage is blocked in stream.\n// See \n// (2) Only register once when import repeatly.\n// Should be executed after series filtered and before stack calculation.\nexport default function dataStack(ecModel: GlobalModel) {\n const stackInfoMap = createHashMap();\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n const stack = seriesModel.get('stack');\n // Compatibal: when `stack` is set as '', do not stack.\n if (stack) {\n const stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n const data = seriesModel.getData();\n\n const stackInfo: StackInfo = {\n // Used for calculate axis extent automatically.\n // TODO: Type getCalculationInfo return more specific type?\n stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n stackedDimension: data.getCalculationInfo('stackedDimension'),\n stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n data: data,\n seriesModel: seriesModel\n };\n\n // If stacked on axis that do not support data stack.\n if (!stackInfo.stackedDimension\n || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)\n ) {\n return;\n }\n\n stackInfoList.length && data.setCalculationInfo(\n 'stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel\n );\n\n stackInfoList.push(stackInfo);\n }\n });\n\n stackInfoMap.each(calculateStack);\n}\n\nfunction calculateStack(stackInfoList: StackInfo[]) {\n each(stackInfoList, function (targetStackInfo, idxInStack) {\n const resultVal: number[] = [];\n const resultNaN = [NaN, NaN];\n const dims: [string, string] = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];\n const targetData = targetStackInfo.data;\n const isStackedByIndex = targetStackInfo.isStackedByIndex;\n\n // Should not write on raw data, because stack series model list changes\n // depending on legend selection.\n targetData.modify(dims, function (v0, v1, dataIndex) {\n let sum = targetData.get(targetStackInfo.stackedDimension, dataIndex) as number;\n\n // Consider `connectNulls` of line area, if value is NaN, stackedOver\n // should also be NaN, to draw a appropriate belt area.\n if (isNaN(sum)) {\n return resultNaN;\n }\n\n let byValue: number;\n let stackedDataRawIndex;\n\n if (isStackedByIndex) {\n stackedDataRawIndex = targetData.getRawIndex(dataIndex);\n }\n else {\n byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex) as number;\n }\n\n // If stackOver is NaN, chart view will render point on value start.\n let stackedOver = NaN;\n\n for (let j = idxInStack - 1; j >= 0; j--) {\n const stackInfo = stackInfoList[j];\n\n // Has been optimized by inverted indices on `stackedByDimension`.\n if (!isStackedByIndex) {\n stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue);\n }\n\n if (stackedDataRawIndex >= 0) {\n const val = stackInfo.data.getByRawIndex(\n stackInfo.stackResultDimension, stackedDataRawIndex\n ) as number;\n\n // Considering positive stack, negative stack and empty data\n if ((sum >= 0 && val > 0) // Positive stack\n || (sum <= 0 && val < 0) // Negative stack\n ) {\n // The sum should be as less as possible to be effected\n // by floating arithmetic problem. A wrong result probably\n // filtered incorrectly by axis min/max.\n sum = addSafe(sum, val);\n stackedOver = val;\n break;\n }\n }\n }\n\n resultVal[0] = sum;\n resultVal[1] = stackedOver;\n\n return resultVal;\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n isTypedArray, HashMap, clone, createHashMap, isArray, isObject, isArrayLike,\n hasOwn, assert, each, map, isNumber, isString\n} from 'zrender/src/core/util';\nimport {\n SourceFormat, SeriesLayoutBy, DimensionDefinition,\n OptionEncodeValue, OptionSourceData,\n SOURCE_FORMAT_ORIGINAL,\n SERIES_LAYOUT_BY_COLUMN,\n SOURCE_FORMAT_UNKNOWN,\n SOURCE_FORMAT_KEYED_COLUMNS,\n SOURCE_FORMAT_TYPED_ARRAY,\n DimensionName,\n OptionSourceHeader,\n DimensionDefinitionLoose,\n SOURCE_FORMAT_ARRAY_ROWS,\n SOURCE_FORMAT_OBJECT_ROWS,\n Dictionary,\n OptionSourceDataObjectRows,\n OptionDataValue,\n OptionSourceDataArrayRows,\n SERIES_LAYOUT_BY_ROW,\n OptionSourceDataOriginal,\n OptionSourceDataKeyedColumns\n} from '../util/types';\nimport { DatasetOption } from '../component/dataset/install';\nimport { getDataItemValue } from '../util/model';\nimport { BE_ORDINAL, guessOrdinal } from './helper/sourceHelper';\n\n/**\n * [sourceFormat]\n *\n * + \"original\":\n * This format is only used in series.data, where\n * itemStyle can be specified in data item.\n *\n * + \"arrayRows\":\n * [\n * ['product', 'score', 'amount'],\n * ['Matcha Latte', 89.3, 95.8],\n * ['Milk Tea', 92.1, 89.4],\n * ['Cheese Cocoa', 94.4, 91.2],\n * ['Walnut Brownie', 85.4, 76.9]\n * ]\n *\n * + \"objectRows\":\n * [\n * {product: 'Matcha Latte', score: 89.3, amount: 95.8},\n * {product: 'Milk Tea', score: 92.1, amount: 89.4},\n * {product: 'Cheese Cocoa', score: 94.4, amount: 91.2},\n * {product: 'Walnut Brownie', score: 85.4, amount: 76.9}\n * ]\n *\n * + \"keyedColumns\":\n * {\n * 'product': ['Matcha Latte', 'Milk Tea', 'Cheese Cocoa', 'Walnut Brownie'],\n * 'count': [823, 235, 1042, 988],\n * 'score': [95.8, 81.4, 91.2, 76.9]\n * }\n *\n * + \"typedArray\"\n *\n * + \"unknown\"\n */\n\nexport interface SourceMetaRawOption {\n seriesLayoutBy: SeriesLayoutBy;\n sourceHeader: OptionSourceHeader;\n dimensions: DimensionDefinitionLoose[];\n}\n\n// Prevent from `new Source()` external and circular reference.\nexport interface Source extends SourceImpl {};\n// @inner\nclass SourceImpl {\n\n /**\n * Not null/undefined.\n */\n readonly data: OptionSourceData;\n\n /**\n * See also \"detectSourceFormat\".\n * Not null/undefined.\n */\n readonly sourceFormat: SourceFormat;\n\n /**\n * 'row' or 'column'\n * Not null/undefined.\n */\n readonly seriesLayoutBy: SeriesLayoutBy;\n\n /**\n * dimensions definition from:\n * (1) standalone defined in option prop `dimensions: [...]`\n * (2) detected from option data. See `determineSourceDimensions`.\n * If can not be detected (e.g., there is only pure data `[[11, 33], ...]`\n * `dimensionsDefine` will be null/undefined.\n */\n readonly dimensionsDefine: DimensionDefinition[];\n\n /**\n * Only make sense in `SOURCE_FORMAT_ARRAY_ROWS`.\n * That is the same as `sourceHeader: number`,\n * which means from which line the real data start.\n * Not null/undefined, uint.\n */\n readonly startIndex: number;\n\n /**\n * Dimension count detected from data. Only works when `dimensionDefine`\n * does not exists.\n * Can be null/undefined (when unknown), uint.\n */\n readonly dimensionsDetectedCount: number;\n\n /**\n * Raw props from user option.\n */\n readonly metaRawOption: SourceMetaRawOption;\n\n\n constructor(fields: {\n data: OptionSourceData,\n sourceFormat: SourceFormat, // default: SOURCE_FORMAT_UNKNOWN\n\n // Visit config are optional:\n seriesLayoutBy?: SeriesLayoutBy, // default: 'column'\n dimensionsDefine?: DimensionDefinition[],\n startIndex?: number, // default: 0\n dimensionsDetectedCount?: number,\n\n metaRawOption?: SourceMetaRawOption,\n\n // [Caveat]\n // This is the raw user defined `encode` in `series`.\n // If user not defined, DO NOT make a empty object or hashMap here.\n // An empty object or hashMap will prevent from auto generating encode.\n encodeDefine?: HashMap\n }) {\n\n this.data = fields.data || (\n fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : []\n );\n this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN;\n\n // Visit config\n this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN;\n this.startIndex = fields.startIndex || 0;\n this.dimensionsDetectedCount = fields.dimensionsDetectedCount;\n this.metaRawOption = fields.metaRawOption;\n\n const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine;\n\n if (dimensionsDefine) {\n for (let i = 0; i < dimensionsDefine.length; i++) {\n const dim = dimensionsDefine[i];\n if (dim.type == null) {\n if (guessOrdinal(this, i) === BE_ORDINAL.Must) {\n dim.type = 'ordinal';\n }\n }\n }\n }\n }\n\n}\n\nexport function isSourceInstance(val: unknown): val is Source {\n return val instanceof SourceImpl;\n}\n\n/**\n * Create a source from option.\n * NOTE: Created source is immutable. Don't change any properties in it.\n */\nexport function createSource(\n sourceData: OptionSourceData,\n thisMetaRawOption: SourceMetaRawOption,\n // can be null. If not provided, auto detect it from `sourceData`.\n sourceFormat: SourceFormat\n): Source {\n sourceFormat = sourceFormat || detectSourceFormat(sourceData);\n const seriesLayoutBy = thisMetaRawOption.seriesLayoutBy;\n const determined = determineSourceDimensions(\n sourceData,\n sourceFormat,\n seriesLayoutBy,\n thisMetaRawOption.sourceHeader,\n thisMetaRawOption.dimensions\n );\n const source = new SourceImpl({\n data: sourceData,\n sourceFormat: sourceFormat,\n\n seriesLayoutBy: seriesLayoutBy,\n dimensionsDefine: determined.dimensionsDefine,\n startIndex: determined.startIndex,\n dimensionsDetectedCount: determined.dimensionsDetectedCount,\n metaRawOption: clone(thisMetaRawOption)\n });\n\n return source;\n}\n\n/**\n * Wrap original series data for some compatibility cases.\n */\nexport function createSourceFromSeriesDataOption(data: OptionSourceData): Source {\n return new SourceImpl({\n data: data,\n sourceFormat: isTypedArray(data)\n ? SOURCE_FORMAT_TYPED_ARRAY\n : SOURCE_FORMAT_ORIGINAL\n });\n}\n\n/**\n * Clone source but excludes source data.\n */\nexport function cloneSourceShallow(source: Source): Source {\n return new SourceImpl({\n data: source.data,\n sourceFormat: source.sourceFormat,\n\n seriesLayoutBy: source.seriesLayoutBy,\n dimensionsDefine: clone(source.dimensionsDefine),\n startIndex: source.startIndex,\n dimensionsDetectedCount: source.dimensionsDetectedCount\n });\n}\n\n/**\n * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.\n */\nexport function detectSourceFormat(data: DatasetOption['source']): SourceFormat {\n let sourceFormat: SourceFormat = SOURCE_FORMAT_UNKNOWN;\n\n if (isTypedArray(data)) {\n sourceFormat = SOURCE_FORMAT_TYPED_ARRAY;\n }\n else if (isArray(data)) {\n // FIXME Whether tolerate null in top level array?\n if (data.length === 0) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n }\n\n for (let i = 0, len = data.length; i < len; i++) {\n const item = data[i];\n\n if (item == null) {\n continue;\n }\n else if (isArray(item)) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n break;\n }\n else if (isObject(item)) {\n sourceFormat = SOURCE_FORMAT_OBJECT_ROWS;\n break;\n }\n }\n }\n else if (isObject(data)) {\n for (const key in data) {\n if (hasOwn(data, key) && isArrayLike((data as Dictionary)[key])) {\n sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS;\n break;\n }\n }\n }\n\n return sourceFormat;\n}\n\n/**\n * Determine the source definitions from data standalone dimensions definitions\n * are not specified.\n */\nfunction determineSourceDimensions(\n data: OptionSourceData,\n sourceFormat: SourceFormat,\n seriesLayoutBy: SeriesLayoutBy,\n sourceHeader: OptionSourceHeader,\n // standalone raw dimensions definition, like:\n // {\n // dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]\n // }\n // in `dataset` or `series`\n dimensionsDefine: DimensionDefinitionLoose[]\n): {\n // If the input `dimensionsDefine` is specified, return it.\n // Else determine dimensions from the input `data`.\n // If not determined, `dimensionsDefine` will be null/undefined.\n dimensionsDefine: Source['dimensionsDefine'];\n startIndex: Source['startIndex'];\n dimensionsDetectedCount: Source['dimensionsDetectedCount'];\n} {\n let dimensionsDetectedCount;\n let startIndex: number;\n\n // PEDING: could data be null/undefined here?\n // currently, if `dataset.source` not specified, error thrown.\n // if `series.data` not specified, nothing rendered without error thrown.\n // Should test these cases.\n if (!data) {\n return {\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n startIndex,\n dimensionsDetectedCount\n };\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const dataArrayRows = data as OptionSourceDataArrayRows;\n // Rule: Most of the first line are string: it is header.\n // Caution: consider a line with 5 string and 1 number,\n // it still can not be sure it is a head, because the\n // 5 string may be 5 values of category columns.\n if (sourceHeader === 'auto' || sourceHeader == null) {\n arrayRowsTravelFirst(function (val) {\n // '-' is regarded as null/undefined.\n if (val != null && val !== '-') {\n if (isString(val)) {\n startIndex == null && (startIndex = 1);\n }\n else {\n startIndex = 0;\n }\n }\n // 10 is an experience number, avoid long loop.\n }, seriesLayoutBy, dataArrayRows, 10);\n }\n else {\n startIndex = isNumber(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;\n }\n\n if (!dimensionsDefine && startIndex === 1) {\n dimensionsDefine = [];\n arrayRowsTravelFirst(function (val, index) {\n dimensionsDefine[index] = (val != null ? val + '' : '') as DimensionName;\n }, seriesLayoutBy, dataArrayRows, Infinity);\n }\n\n dimensionsDetectedCount = dimensionsDefine\n ? dimensionsDefine.length\n : seriesLayoutBy === SERIES_LAYOUT_BY_ROW\n ? dataArrayRows.length\n : dataArrayRows[0]\n ? dataArrayRows[0].length\n : null;\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n if (!dimensionsDefine) {\n dimensionsDefine = objectRowsCollectDimensions(data as OptionSourceDataObjectRows);\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n if (!dimensionsDefine) {\n dimensionsDefine = [];\n each(data as OptionSourceDataKeyedColumns, function (colArr, key) {\n dimensionsDefine.push(key);\n });\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const value0 = getDataItemValue((data as OptionSourceDataOriginal)[0]);\n dimensionsDetectedCount = isArray(value0) && value0.length || 1;\n }\n else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (__DEV__) {\n assert(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.');\n }\n }\n\n return {\n startIndex: startIndex,\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n}\n\nfunction objectRowsCollectDimensions(data: OptionSourceDataObjectRows): DimensionDefinitionLoose[] {\n let firstIndex = 0;\n let obj;\n while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line\n if (obj) {\n const dimensions: DimensionDefinitionLoose[] = [];\n each(obj, function (value, key) {\n dimensions.push(key);\n });\n return dimensions;\n }\n}\n\n// Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],\n// which is reasonable. But dimension name is duplicated.\n// Returns undefined or an array contains only object without null/undefiend or string.\nfunction normalizeDimensionsOption(dimensionsDefine: DimensionDefinitionLoose[]): DimensionDefinition[] {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n const nameMap = createHashMap<{ count: number }, string>();\n return map(dimensionsDefine, function (rawItem, index) {\n rawItem = isObject(rawItem) ? rawItem : { name: rawItem };\n // Other fields will be discarded.\n const item: DimensionDefinition = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n };\n\n // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n if (item.name == null) {\n return item;\n }\n\n // Also consider number form like 2012.\n item.name += '';\n // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n const exist = nameMap.get(item.name);\n if (!exist) {\n nameMap.set(item.name, {count: 1});\n }\n else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}\n\nfunction arrayRowsTravelFirst(\n cb: (val: OptionDataValue, idx: number) => void,\n seriesLayoutBy: SeriesLayoutBy,\n data: OptionSourceDataArrayRows,\n maxLoop: number\n): void {\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n for (let i = 0; i < data.length && i < maxLoop; i++) {\n cb(data[i] ? data[i][0] : null, i);\n }\n }\n else {\n const value0 = data[0] || [];\n for (let i = 0; i < value0.length && i < maxLoop; i++) {\n cb(value0[i], i);\n }\n }\n}\n\nexport function shouldRetrieveDataByName(source: Source): boolean {\n const sourceFormat = source.sourceFormat;\n return sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO\n// ??? refactor? check the outer usage of data provider.\n// merge with defaultDimValueGetter?\n\nimport {isTypedArray, extend, assert, each, isObject, bind} from 'zrender/src/core/util';\nimport {getDataItemValue} from '../../util/model';\nimport { createSourceFromSeriesDataOption, Source, isSourceInstance } from '../Source';\nimport {ArrayLike, Dictionary} from 'zrender/src/core/types';\nimport {\n SOURCE_FORMAT_ORIGINAL,\n SOURCE_FORMAT_OBJECT_ROWS,\n SOURCE_FORMAT_KEYED_COLUMNS,\n SOURCE_FORMAT_TYPED_ARRAY,\n SOURCE_FORMAT_ARRAY_ROWS,\n SERIES_LAYOUT_BY_COLUMN,\n SERIES_LAYOUT_BY_ROW,\n DimensionName, DimensionIndex, OptionSourceData,\n OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue, DimensionLoose\n} from '../../util/types';\nimport SeriesData from '../SeriesData';\n\nexport interface DataProvider {\n /**\n * true: all of the value are in primitive type (in type `OptionDataValue`).\n * false: Not sure whether any of them is non primitive type (in type `OptionDataItemObject`).\n * Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n * At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n */\n pure?: boolean;\n /**\n * If data is persistent and will not be released after use.\n */\n persistent?: boolean;\n\n getSource(): Source;\n count(): number;\n getItem(idx: number, out?: OptionDataItem): OptionDataItem;\n fillStorage?(\n start: number,\n end: number,\n out: ArrayLike[],\n extent: number[][]\n ): void\n appendData?(newData: ArrayLike): void;\n clean?(): void;\n}\n\n\nlet providerMethods: Dictionary;\nlet mountMethods: (provider: DefaultDataProvider, data: OptionSourceData, source: Source) => void;\n\nexport interface DefaultDataProvider {\n fillStorage?(\n start: number,\n end: number,\n out: ArrayLike[],\n extent: number[][]\n ): void\n}\n/**\n * If normal array used, mutable chunk size is supported.\n * If typed array used, chunk size must be fixed.\n */\nexport class DefaultDataProvider implements DataProvider {\n\n private _source: Source;\n\n private _data: OptionSourceData;\n\n private _offset: number;\n\n private _dimSize: number;\n\n pure: boolean;\n\n persistent: boolean;\n\n static protoInitialize = (function () {\n // PENDING: To avoid potential incompat (e.g., prototype\n // is visited somewhere), still init them on prototype.\n const proto = DefaultDataProvider.prototype;\n proto.pure = false;\n proto.persistent = true;\n })();\n\n\n constructor(sourceParam: Source | OptionSourceData, dimSize?: number) {\n // let source: Source;\n const source: Source = !isSourceInstance(sourceParam)\n ? createSourceFromSeriesDataOption(sourceParam as OptionSourceData)\n : sourceParam as Source;\n\n // declare source is Source;\n this._source = source;\n const data = this._data = source.data;\n\n // Typed array. TODO IE10+?\n if (source.sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (__DEV__) {\n if (dimSize == null) {\n throw new Error('Typed array data must specify dimension size');\n }\n }\n this._offset = 0;\n this._dimSize = dimSize;\n this._data = data;\n }\n\n mountMethods(this, data, source);\n }\n\n getSource(): Source {\n return this._source;\n }\n\n count(): number {\n return 0;\n }\n\n getItem(idx: number, out?: ArrayLike): OptionDataItem {\n return;\n }\n\n appendData(newData: OptionSourceData): void {\n }\n\n clean(): void {\n }\n\n private static internalField = (function () {\n\n mountMethods = function (provider, data, source) {\n const sourceFormat = source.sourceFormat;\n const seriesLayoutBy = source.seriesLayoutBy;\n const startIndex = source.startIndex;\n const dimsDef = source.dimensionsDefine;\n\n const methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(methods, 'Invalide sourceFormat: ' + sourceFormat);\n }\n\n extend(provider, methods);\n\n if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n provider.getItem = getItemForTypedArray;\n provider.count = countForTypedArray;\n provider.fillStorage = fillStorageForTypedArray;\n }\n else {\n const rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy);\n provider.getItem = bind(rawItemGetter, null, data, startIndex, dimsDef);\n const rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy);\n provider.count = bind(rawCounter, null, data, startIndex, dimsDef);\n }\n };\n\n const getItemForTypedArray: DefaultDataProvider['getItem'] = function (\n this: DefaultDataProvider, idx: number, out: ArrayLike\n ): ArrayLike {\n idx = idx - this._offset;\n out = out || [];\n const data = this._data;\n const dimSize = this._dimSize;\n const offset = dimSize * idx;\n for (let i = 0; i < dimSize; i++) {\n out[i] = (data as ArrayLike)[offset + i];\n }\n return out;\n };\n\n const fillStorageForTypedArray: DefaultDataProvider['fillStorage'] = function (\n this: DefaultDataProvider, start: number, end: number, storage: ArrayLike[], extent: number[][]\n ) {\n const data = this._data as ArrayLike;\n const dimSize = this._dimSize;\n\n for (let dim = 0; dim < dimSize; dim++) {\n const dimExtent = extent[dim];\n let min = dimExtent[0] == null ? Infinity : dimExtent[0];\n let max = dimExtent[1] == null ? -Infinity : dimExtent[1];\n const count = end - start;\n const arr = storage[dim];\n for (let i = 0; i < count; i++) {\n // appendData with TypedArray will always do replace in provider.\n const val = data[i * dimSize + dim];\n arr[start + i] = val;\n val < min && (min = val);\n val > max && (max = val);\n }\n dimExtent[0] = min;\n dimExtent[1] = max;\n }\n };\n\n const countForTypedArray: DefaultDataProvider['count'] = function (\n this: DefaultDataProvider\n ) {\n return this._data ? ((this._data as ArrayLike).length / this._dimSize) : 0;\n };\n\n providerMethods = {\n\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: {\n pure: true,\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: {\n pure: true,\n appendData: function () {\n throw new Error('Do not support appendData when set seriesLayoutBy: \"row\".');\n }\n },\n\n [SOURCE_FORMAT_OBJECT_ROWS]: {\n pure: true,\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_KEYED_COLUMNS]: {\n pure: true,\n appendData: function (this: DefaultDataProvider, newData: Dictionary) {\n const data = this._data as Dictionary;\n each(newData, function (newCol, key) {\n const oldCol = data[key] || (data[key] = []);\n for (let i = 0; i < (newCol || []).length; i++) {\n oldCol.push(newCol[i]);\n }\n });\n }\n },\n\n [SOURCE_FORMAT_ORIGINAL]: {\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_TYPED_ARRAY]: {\n persistent: false,\n pure: true,\n appendData: function (this: DefaultDataProvider, newData: ArrayLike): void {\n if (__DEV__) {\n assert(\n isTypedArray(newData),\n 'Added data must be TypedArray if data in initialization is TypedArray'\n );\n }\n this._data = newData;\n },\n\n // Clean self if data is already used.\n clean: function (this: DefaultDataProvider): void {\n // PENDING\n this._offset += this.count();\n this._data = null;\n }\n }\n };\n\n function appendDataSimply(this: DefaultDataProvider, newData: ArrayLike): void {\n for (let i = 0; i < newData.length; i++) {\n (this._data as any[]).push(newData[i]);\n }\n }\n\n })();\n}\n\n\n\ntype RawSourceItemGetter = (\n rawData: OptionSourceData,\n startIndex: number,\n dimsDef: { name?: DimensionName }[],\n idx: number\n) => OptionDataItem;\n\nconst getItemSimply: RawSourceItemGetter = function (\n rawData, startIndex, dimsDef, idx\n): OptionDataItem {\n return (rawData as [])[idx];\n};\n\nconst rawSourceItemGetterMap: Dictionary = {\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n return (rawData as OptionDataValue[][])[idx + startIndex];\n },\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n idx += startIndex;\n const item = [];\n const data = rawData as OptionDataValue[][];\n for (let i = 0; i < data.length; i++) {\n const row = data[i];\n item.push(row ? row[idx] : null);\n }\n return item;\n },\n [SOURCE_FORMAT_OBJECT_ROWS]: getItemSimply,\n [SOURCE_FORMAT_KEYED_COLUMNS]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n const item = [];\n for (let i = 0; i < dimsDef.length; i++) {\n const dimName = dimsDef[i].name;\n if (__DEV__) {\n if (dimName == null) {\n throw new Error();\n }\n }\n const col = (rawData as Dictionary)[dimName];\n item.push(col ? col[idx] : null);\n }\n return item;\n },\n [SOURCE_FORMAT_ORIGINAL]: getItemSimply\n};\n\nexport function getRawSourceItemGetter(\n sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy\n): RawSourceItemGetter {\n const method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(method, 'Do not support get item on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n return method;\n}\n\n\n\n\ntype RawSourceDataCounter = (\n rawData: OptionSourceData,\n startIndex: number,\n dimsDef: { name?: DimensionName }[]\n) => number;\n\nconst countSimply: RawSourceDataCounter = function (\n rawData, startIndex, dimsDef\n) {\n return (rawData as []).length;\n};\n\nconst rawSourceDataCounterMap: Dictionary = {\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: function (\n rawData, startIndex, dimsDef\n ) {\n return Math.max(0, (rawData as OptionDataItem[][]).length - startIndex);\n },\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: function (\n rawData, startIndex, dimsDef\n ) {\n const row = (rawData as OptionDataValue[][])[0];\n return row ? Math.max(0, row.length - startIndex) : 0;\n },\n [SOURCE_FORMAT_OBJECT_ROWS]: countSimply,\n [SOURCE_FORMAT_KEYED_COLUMNS]: function (\n rawData, startIndex, dimsDef\n ) {\n const dimName = dimsDef[0].name;\n if (__DEV__) {\n if (dimName == null) {\n throw new Error();\n }\n }\n const col = (rawData as Dictionary)[dimName];\n return col ? col.length : 0;\n },\n [SOURCE_FORMAT_ORIGINAL]: countSimply\n};\n\nexport function getRawSourceDataCounter(\n sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy\n): RawSourceDataCounter {\n const method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(method, 'Do not suppport count on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n return method;\n}\n\n\n\n// TODO\n// merge it to dataProvider?\ntype RawSourceValueGetter = (\n dataItem: OptionDataItem,\n dimIndex: DimensionIndex,\n dimName: DimensionName\n // If dimIndex is null/undefined, return OptionDataItem.\n // Otherwise, return OptionDataValue.\n) => OptionDataValue | OptionDataItem;\n\nconst getRawValueSimply = function (\n dataItem: ArrayLike, dimIndex: number, dimName: string\n): OptionDataValue | ArrayLike {\n return dimIndex != null ? dataItem[dimIndex] : dataItem;\n};\n\nconst rawSourceValueGetterMap: {[sourceFormat: string]: RawSourceValueGetter} = {\n\n [SOURCE_FORMAT_ARRAY_ROWS]: getRawValueSimply,\n\n [SOURCE_FORMAT_OBJECT_ROWS]: function (\n dataItem: Dictionary, dimIndex: number, dimName: string\n ): OptionDataValue | Dictionary {\n return dimIndex != null ? dataItem[dimName] : dataItem;\n },\n\n [SOURCE_FORMAT_KEYED_COLUMNS]: getRawValueSimply,\n\n [SOURCE_FORMAT_ORIGINAL]: function (\n dataItem: OptionDataItem, dimIndex: number, dimName: string\n ): OptionDataValue | OptionDataItem {\n // FIXME: In some case (markpoint in geo (geo-map.html)),\n // dataItem is {coord: [...]}\n const value = getDataItemValue(dataItem);\n return (dimIndex == null || !(value instanceof Array))\n ? value\n : value[dimIndex];\n },\n\n [SOURCE_FORMAT_TYPED_ARRAY]: getRawValueSimply\n};\n\nexport function getRawSourceValueGetter(sourceFormat: SourceFormat): RawSourceValueGetter {\n const method = rawSourceValueGetterMap[sourceFormat];\n if (__DEV__) {\n assert(method, 'Do not suppport get value on \"' + sourceFormat + '\".');\n }\n return method;\n}\n\n\nfunction getMethodMapKey(sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy): string {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS\n ? sourceFormat + '_' + seriesLayoutBy\n : sourceFormat;\n}\n\n\n// ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,\n// Consider persistent.\n// Caution: why use raw value to display on label or tooltip?\n// A reason is to avoid format. For example time value we do not know\n// how to format is expected. More over, if stack is used, calculated\n// value may be 0.91000000001, which have brings trouble to display.\n// TODO: consider how to treat null/undefined/NaN when display?\nexport function retrieveRawValue(\n data: SeriesData, dataIndex: number, dim?: DimensionLoose\n // If dimIndex is null/undefined, return OptionDataItem.\n // Otherwise, return OptionDataValue.\n): OptionDataValue | OptionDataItem {\n if (!data) {\n return;\n }\n\n // Consider data may be not persistent.\n const dataItem = data.getRawDataItem(dataIndex);\n\n if (dataItem == null) {\n return;\n }\n\n const storage = data.getStorage();\n const sourceFormat = storage.getSource().sourceFormat;\n const dimIndex = data.getDimensionIndex(dim);\n const property = storage.getDimensionProperty(dimIndex);\n\n return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property);\n}\n\n\n/**\n * Compatible with some cases (in pie, map) like:\n * data: [{name: 'xx', value: 5, selected: true}, ...]\n * where only sourceFormat is 'original' and 'objectRows' supported.\n *\n * // TODO\n * Supported detail options in data item when using 'arrayRows'.\n *\n * @param data\n * @param dataIndex\n * @param attr like 'selected'\n */\nexport function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: string): any {\n if (!data) {\n return;\n }\n\n const sourceFormat = data.getStorage().getSource().sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ORIGINAL\n && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS\n ) {\n return;\n }\n\n let dataItem = data.getRawDataItem(dataIndex);\n if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !isObject(dataItem)) {\n dataItem = null;\n }\n if (dataItem) {\n return (dataItem as Dictionary)[attr];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {retrieveRawValue} from '../../data/helper/dataProvider';\nimport {formatTpl} from '../../util/format';\nimport {\n DataHost,\n DisplayState,\n CallbackDataParams,\n ColorString,\n ZRColor,\n OptionDataValue,\n SeriesDataType,\n ComponentMainType,\n ComponentSubType,\n DimensionLoose,\n InterpolatableValue\n} from '../../util/types';\nimport GlobalModel from '../Global';\nimport { TooltipMarkupBlockFragment } from '../../component/tooltip/tooltipMarkup';\nimport { error, makePrintable } from '../../util/log';\n\nconst DIMENSION_LABEL_REG = /\\{@(.+?)\\}/g;\n\n\nexport interface DataFormatMixin extends DataHost {\n ecModel: GlobalModel;\n mainType: ComponentMainType;\n subType: ComponentSubType;\n componentIndex: number;\n id: string;\n name: string;\n animatedValue: OptionDataValue[];\n}\n\nexport class DataFormatMixin {\n\n /**\n * Get params for formatter\n */\n getDataParams(\n dataIndex: number,\n dataType?: SeriesDataType\n ): CallbackDataParams {\n\n const data = this.getData(dataType);\n const rawValue = this.getRawValue(dataIndex, dataType);\n const rawDataIndex = data.getRawIndex(dataIndex);\n const name = data.getName(dataIndex);\n const itemOpt = data.getRawDataItem(dataIndex);\n const style = data.getItemVisual(dataIndex, 'style');\n const color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill'] as ZRColor;\n const borderColor = style && style.stroke as ColorString;\n const mainType = this.mainType;\n const isSeries = mainType === 'series';\n const userOutput = data.userOutput && data.userOutput.get();\n\n return {\n componentType: mainType,\n componentSubType: this.subType,\n componentIndex: this.componentIndex,\n seriesType: isSeries ? this.subType : null,\n seriesIndex: (this as any).seriesIndex,\n seriesId: isSeries ? this.id : null,\n seriesName: isSeries ? this.name : null,\n name: name,\n dataIndex: rawDataIndex,\n data: itemOpt,\n dataType: dataType,\n value: rawValue,\n color: color,\n borderColor: borderColor,\n dimensionNames: userOutput ? userOutput.fullDimensions : null,\n encode: userOutput ? userOutput.encode : null,\n\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: ['seriesName', 'name', 'value']\n };\n }\n\n /**\n * Format label\n * @param dataIndex\n * @param status 'normal' by default\n * @param dataType\n * @param labelDimIndex Only used in some chart that\n * use formatter in different dimensions, like radar.\n * @param formatter Formatter given outside.\n * @return return null/undefined if no formatter\n */\n getFormattedLabel(\n dataIndex: number,\n status?: DisplayState,\n dataType?: SeriesDataType,\n labelDimIndex?: number,\n formatter?: string | ((params: object) => string),\n extendParams?: {\n interpolatedValue: InterpolatableValue\n }\n ): string {\n status = status || 'normal';\n const data = this.getData(dataType);\n\n const params = this.getDataParams(dataIndex, dataType);\n\n if (extendParams) {\n params.value = extendParams.interpolatedValue;\n }\n\n if (labelDimIndex != null && zrUtil.isArray(params.value)) {\n params.value = params.value[labelDimIndex];\n }\n\n if (!formatter) {\n const itemModel = data.getItemModel(dataIndex);\n // @ts-ignore\n formatter = itemModel.get(status === 'normal'\n ? ['label', 'formatter']\n : [status, 'label', 'formatter']\n );\n }\n\n if (typeof formatter === 'function') {\n params.status = status;\n params.dimensionIndex = labelDimIndex;\n return formatter(params);\n }\n else if (typeof formatter === 'string') {\n const str = formatTpl(formatter, params);\n\n // Support 'aaa{@[3]}bbb{@product}ccc'.\n // Do not support '}' in dim name util have to.\n return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr: string) {\n const len = dimStr.length;\n\n let dimLoose: DimensionLoose = dimStr;\n if (dimLoose.charAt(0) === '[' && dimLoose.charAt(len - 1) === ']') {\n dimLoose = +dimLoose.slice(1, len - 1); // Also support: '[]' => 0\n if (__DEV__) {\n if (isNaN(dimLoose)) {\n error(`Invalide label formatter: @${dimStr}, only support @[0], @[1], @[2], ...`);\n }\n }\n }\n\n let val = retrieveRawValue(data, dataIndex, dimLoose) as OptionDataValue;\n\n if (extendParams && zrUtil.isArray(extendParams.interpolatedValue)) {\n const dimIndex = data.getDimensionIndex(dimLoose);\n if (dimIndex >= 0) {\n val = extendParams.interpolatedValue[dimIndex];\n }\n }\n\n return val != null ? val + '' : '';\n });\n }\n }\n\n /**\n * Get raw value in option\n */\n getRawValue(\n idx: number,\n dataType?: SeriesDataType\n ): unknown {\n return retrieveRawValue(this.getData(dataType), idx);\n }\n\n /**\n * Should be implemented.\n * @param {number} dataIndex\n * @param {boolean} [multipleSeries=false]\n * @param {string} [dataType]\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: string\n ): TooltipFormatResult {\n // Empty function\n return;\n }\n};\n\ntype TooltipFormatResult =\n // If `string`, means `TooltipFormatResultLegacyObject['html']`\n string\n // | TooltipFormatResultLegacyObject\n | TooltipMarkupBlockFragment;\n\n// PENDING: previously we accept this type when calling `formatTooltip`,\n// but guess little chance has been used outside. Do we need to backward\n// compat it?\n// type TooltipFormatResultLegacyObject = {\n// // `html` means the markup language text, either in 'html' or 'richText'.\n// // The name `html` is not appropriate becuase in 'richText' it is not a HTML\n// // string. But still support it for backward compat.\n// html: string;\n// markers: Dictionary;\n// };\n\n/**\n * For backward compat, normalize the return from `formatTooltip`.\n */\nexport function normalizeTooltipFormatResult(\n result: TooltipFormatResult\n // markersExisting: Dictionary\n): {\n // If `markupFragment` exists, `markupText` should be ignored.\n markupFragment: TooltipMarkupBlockFragment;\n // Can be `null`/`undefined`, means no tooltip.\n markupText: string;\n // Merged with `markersExisting`.\n // markers: Dictionary;\n} {\n let markupText;\n // let markers: Dictionary;\n let markupFragment: TooltipMarkupBlockFragment;\n if (zrUtil.isObject(result)) {\n if ((result as TooltipMarkupBlockFragment).type) {\n markupFragment = result as TooltipMarkupBlockFragment;\n }\n else {\n if (__DEV__) {\n console.warn('The return type of `formatTooltip` is not supported: ' + makePrintable(result));\n }\n }\n // else {\n // markupText = (result as TooltipFormatResultLegacyObject).html;\n // markers = (result as TooltipFormatResultLegacyObject).markers;\n // if (markersExisting) {\n // markers = zrUtil.merge(markersExisting, markers);\n // }\n // }\n }\n else {\n markupText = result;\n }\n\n return {\n markupText: markupText,\n // markers: markers || markersExisting,\n markupFragment: markupFragment\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {assert, isArray} from 'zrender/src/core/util';\nimport SeriesModel from '../model/Series';\nimport { Pipeline } from './Scheduler';\nimport { Payload } from '../util/types';\nimport SeriesData from '../data/SeriesData';\n\n\nexport interface TaskContext {\n outputData?: SeriesData;\n data?: SeriesData;\n payload?: Payload;\n model?: SeriesModel;\n};\n\nexport type TaskResetCallback = (\n this: Task, context: Ctx\n) => TaskResetCallbackReturn;\nexport type TaskResetCallbackReturn =\n void\n | (TaskProgressCallback | TaskProgressCallback[])\n | {\n forceFirstProgress?: boolean\n progress: TaskProgressCallback | TaskProgressCallback[]\n };\nexport type TaskProgressCallback = (\n this: Task, params: TaskProgressParams, context: Ctx\n) => void;\nexport type TaskProgressParams = {\n start: number, end: number, count: number, next?: TaskDataIteratorNext\n};\nexport type TaskPlanCallback = (\n this: Task, context: Ctx\n) => TaskPlanCallbackReturn;\nexport type TaskPlanCallbackReturn = 'reset' | false | null | undefined;\nexport type TaskCountCallback = (\n this: Task, context: Ctx\n) => number;\nexport type TaskOnDirtyCallback = (\n this: Task, context: Ctx\n) => void;\n\ntype TaskDataIteratorNext = () => number;\ntype TaskDataIterator = {\n reset: (s: number, e: number, sStep: number, sCount: number) => void,\n next?: TaskDataIteratorNext\n};\n\ntype TaskDefineParam = {\n reset?: TaskResetCallback,\n // Returns 'reset' indicate reset immediately\n plan?: TaskPlanCallback,\n // count is used to determine data task.\n count?: TaskCountCallback,\n onDirty?: TaskOnDirtyCallback\n};\nexport type PerformArgs = {\n step?: number,\n skip?: boolean,\n modBy?: number,\n modDataCount?: number\n};\n\n/**\n * @param {Object} define\n * @return See the return of `createTask`.\n */\nexport function createTask(\n define: TaskDefineParam\n): Task {\n return new Task(define);\n}\n\nexport class Task {\n\n private _reset: TaskResetCallback;\n private _plan: TaskPlanCallback;\n private _count: TaskCountCallback;\n private _onDirty: TaskOnDirtyCallback;\n private _progress: TaskProgressCallback | TaskProgressCallback[];\n private _callingProgress: TaskProgressCallback;\n\n private _dirty: boolean;\n private _modBy: number;\n private _modDataCount: number;\n private _upstream: Task;\n private _downstream: Task;\n private _dueEnd: number;\n private _outputDueEnd: number;\n private _settedOutputEnd: number;\n private _dueIndex: number;\n private _disposed: boolean;\n\n // Injected in schedular\n __pipeline: Pipeline;\n __idxInPipeline: number;\n __block: boolean;\n\n // Context must be specified implicitly, to\n // avoid miss update context when model changed.\n context: Ctx;\n\n constructor(define: TaskDefineParam) {\n define = define || {};\n\n this._reset = define.reset;\n this._plan = define.plan;\n this._count = define.count;\n this._onDirty = define.onDirty;\n\n this._dirty = true;\n }\n\n /**\n * @param step Specified step.\n * @param skip Skip customer perform call.\n * @param modBy Sampling window size.\n * @param modDataCount Sampling count.\n * @return whether unfinished.\n */\n perform(performArgs?: PerformArgs): boolean {\n const upTask = this._upstream;\n const skip = performArgs && performArgs.skip;\n\n // TODO some refactor.\n // Pull data. Must pull data each time, because context.data\n // may be updated by Series.setData.\n if (this._dirty && upTask) {\n const context = this.context;\n context.data = context.outputData = upTask.context.outputData;\n }\n\n if (this.__pipeline) {\n this.__pipeline.currentTask = this;\n }\n\n let planResult;\n if (this._plan && !skip) {\n planResult = this._plan(this.context);\n }\n\n // Support sharding by mod, which changes the render sequence and makes the rendered graphic\n // elements uniformed distributed when progress, especially when moving or zooming.\n const lastModBy = normalizeModBy(this._modBy);\n const lastModDataCount = this._modDataCount || 0;\n const modBy = normalizeModBy(performArgs && performArgs.modBy);\n const modDataCount = performArgs && performArgs.modDataCount || 0;\n if (lastModBy !== modBy || lastModDataCount !== modDataCount) {\n planResult = 'reset';\n }\n\n function normalizeModBy(val: number) {\n !(val >= 1) && (val = 1); // jshint ignore:line\n return val;\n }\n\n let forceFirstProgress;\n if (this._dirty || planResult === 'reset') {\n this._dirty = false;\n forceFirstProgress = this._doReset(skip);\n }\n\n this._modBy = modBy;\n this._modDataCount = modDataCount;\n\n const step = performArgs && performArgs.step;\n\n if (upTask) {\n if (__DEV__) {\n assert(upTask._outputDueEnd != null);\n }\n this._dueEnd = upTask._outputDueEnd;\n }\n // DataTask or overallTask\n else {\n if (__DEV__) {\n assert(!this._progress || this._count);\n }\n this._dueEnd = this._count ? this._count(this.context) : Infinity;\n }\n\n // Note: Stubs, that its host overall task let it has progress, has progress.\n // If no progress, pass index from upstream to downstream each time plan called.\n if (this._progress) {\n const start = this._dueIndex;\n const end = Math.min(\n step != null ? this._dueIndex + step : Infinity,\n this._dueEnd\n );\n\n if (!skip && (forceFirstProgress || start < end)) {\n const progress = this._progress;\n if (isArray(progress)) {\n for (let i = 0; i < progress.length; i++) {\n this._doProgress(progress[i], start, end, modBy, modDataCount);\n }\n }\n else {\n this._doProgress(progress, start, end, modBy, modDataCount);\n }\n }\n\n this._dueIndex = end;\n // If no `outputDueEnd`, assume that output data and\n // input data is the same, so use `dueIndex` as `outputDueEnd`.\n const outputDueEnd = this._settedOutputEnd != null\n ? this._settedOutputEnd : end;\n\n if (__DEV__) {\n // ??? Can not rollback.\n assert(outputDueEnd >= this._outputDueEnd);\n }\n\n this._outputDueEnd = outputDueEnd;\n }\n else {\n // (1) Some overall task has no progress.\n // (2) Stubs, that its host overall task do not let it has progress, has no progress.\n // This should always be performed so it can be passed to downstream.\n this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null\n ? this._settedOutputEnd : this._dueEnd;\n }\n\n return this.unfinished();\n }\n\n dirty(): void {\n this._dirty = true;\n this._onDirty && this._onDirty(this.context);\n }\n\n private _doProgress(\n progress: TaskProgressCallback,\n start: number,\n end: number,\n modBy: number,\n modDataCount: number\n ): void {\n iterator.reset(start, end, modBy, modDataCount);\n this._callingProgress = progress;\n this._callingProgress({\n start: start, end: end, count: end - start, next: iterator.next\n }, this.context);\n }\n\n private _doReset(skip: boolean): boolean {\n this._dueIndex = this._outputDueEnd = this._dueEnd = 0;\n this._settedOutputEnd = null;\n\n let progress: TaskResetCallbackReturn;\n let forceFirstProgress: boolean;\n\n if (!skip && this._reset) {\n progress = this._reset(this.context);\n if (progress && (progress as any).progress) {\n forceFirstProgress = (progress as any).forceFirstProgress;\n progress = (progress as any).progress;\n }\n // To simplify no progress checking, array must has item.\n if (isArray(progress) && !progress.length) {\n progress = null;\n }\n }\n\n this._progress = progress as TaskProgressCallback;\n this._modBy = this._modDataCount = null;\n\n const downstream = this._downstream;\n downstream && downstream.dirty();\n\n return forceFirstProgress;\n }\n\n unfinished(): boolean {\n return this._progress && this._dueIndex < this._dueEnd;\n }\n\n /**\n * @param downTask The downstream task.\n * @return The downstream task.\n */\n pipe(downTask: Task): void {\n if (__DEV__) {\n assert(downTask && !downTask._disposed && downTask !== this);\n }\n\n // If already downstream, do not dirty downTask.\n if (this._downstream !== downTask || this._dirty) {\n this._downstream = downTask;\n downTask._upstream = this;\n downTask.dirty();\n }\n }\n\n dispose(): void {\n if (this._disposed) {\n return;\n }\n\n this._upstream && (this._upstream._downstream = null);\n this._downstream && (this._downstream._upstream = null);\n\n this._dirty = false;\n this._disposed = true;\n }\n\n getUpstream(): Task {\n return this._upstream;\n }\n\n getDownstream(): Task {\n return this._downstream;\n }\n\n setOutputEnd(end: number): void {\n // This only happend in dataTask, dataZoom, map, currently.\n // where dataZoom do not set end each time, but only set\n // when reset. So we should record the setted end, in case\n // that the stub of dataZoom perform again and earse the\n // setted end by upstream.\n this._outputDueEnd = this._settedOutputEnd = end;\n }\n\n}\n\nconst iterator: TaskDataIterator = (function () {\n\n let end: number;\n let current: number;\n let modBy: number;\n let modDataCount: number;\n let winCount: number;\n\n const it: TaskDataIterator = {\n reset: function (s: number, e: number, sStep: number, sCount: number): void {\n current = s;\n end = e;\n\n modBy = sStep;\n modDataCount = sCount;\n winCount = Math.ceil(modDataCount / modBy);\n\n it.next = (modBy > 1 && modDataCount > 0) ? modNext : sequentialNext;\n }\n };\n\n return it;\n\n function sequentialNext(): number {\n return current < end ? current++ : null;\n }\n\n function modNext(): number {\n const dataIndex = (current % winCount) * modBy + Math.ceil(current / winCount);\n const result = current >= end\n ? null\n : dataIndex < modDataCount\n ? dataIndex\n // If modDataCount is smaller than data.count() (consider `appendData` case),\n // Use normal linear rendering mode.\n : current;\n current++;\n return result;\n }\n})();\n\n\n\n///////////////////////////////////////////////////////////\n// For stream debug (Should be commented out after used!)\n// @usage: printTask(this, 'begin');\n// @usage: printTask(this, null, {someExtraProp});\n// @usage: Use `__idxInPipeline` as conditional breakpiont.\n//\n// window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void {\n// window.ecTaskUID == null && (window.ecTaskUID = 0);\n// task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`);\n// task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`);\n// let props = [];\n// if (task.__pipeline) {\n// let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`;\n// props.push({text: '__idxInPipeline/total', value: val});\n// } else {\n// let stubCount = 0;\n// task.agentStubMap.each(() => stubCount++);\n// props.push({text: 'idx', value: `overall (stubs: ${stubCount})`});\n// }\n// props.push({text: 'uid', value: task.uidDebug});\n// if (task.__pipeline) {\n// props.push({text: 'pipelineId', value: task.__pipeline.id});\n// task.agent && props.push(\n// {text: 'stubFor', value: task.agent.uidDebug}\n// );\n// }\n// props.push(\n// {text: 'dirty', value: task._dirty},\n// {text: 'dueIndex', value: task._dueIndex},\n// {text: 'dueEnd', value: task._dueEnd},\n// {text: 'outputDueEnd', value: task._outputDueEnd}\n// );\n// if (extra) {\n// Object.keys(extra).forEach(key => {\n// props.push({text: key, value: extra[key]});\n// });\n// }\n// let args = ['color: blue'];\n// let msg = `%c[${prefix || 'T'}] %c` + props.map(item => (\n// args.push('color: green', 'color: red'),\n// `${item.text}: %c${item.value}`\n// )).join('%c, ');\n// console.log.apply(console, [msg].concat(args));\n// // console.log(this);\n// };\n// window.printPipeline = function (task: any, prefix: string) {\n// const pipeline = task.__pipeline;\n// let currTask = pipeline.head;\n// while (currTask) {\n// window.printTask(currTask, prefix);\n// currTask = currTask._downstream;\n// }\n// };\n// window.showChain = function (chainHeadTask) {\n// var chain = [];\n// var task = chainHeadTask;\n// while (task) {\n// chain.push({\n// task: task,\n// up: task._upstream,\n// down: task._downstream,\n// idxInPipeline: task.__idxInPipeline\n// });\n// task = task._downstream;\n// }\n// return chain;\n// };\n// window.findTaskInChain = function (task, chainHeadTask) {\n// let chain = window.showChain(chainHeadTask);\n// let result = [];\n// for (let i = 0; i < chain.length; i++) {\n// let chainItem = chain[i];\n// if (chainItem.task === task) {\n// result.push(i);\n// }\n// }\n// return result;\n// };\n// window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) {\n// let chainA = window.showChain(chainHeadTaskA);\n// for (let i = 0; i < chainA.length; i++) {\n// console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB));\n// }\n// };\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { ParsedValue, DimensionType } from '../../util/types';\nimport { parseDate, numericToNumber } from '../../util/number';\nimport { createHashMap, trim, hasOwn } from 'zrender/src/core/util';\nimport { throwError } from '../../util/log';\n\n\n/**\n * Convert raw the value in to inner value in List.\n *\n * [Performance sensitive]\n *\n * [Caution]: this is the key logic of user value parser.\n * For backward compatibiliy, do not modify it until have to!\n */\nexport function parseDataValue(\n value: any,\n // For high performance, do not omit the second param.\n opt: {\n // Default type: 'number'. There is no 'unknown' type. That is, a string\n // will be parsed to NaN if do not set `type` as 'ordinal'. It has been\n // the logic in `List.ts` for long time. Follow the same way if you need\n // to get same result as List did from a raw value.\n type?: DimensionType\n }\n): ParsedValue {\n // Performance sensitive.\n const dimType = opt && opt.type;\n if (dimType === 'ordinal') {\n // If given value is a category string\n return value;\n }\n\n if (dimType === 'time'\n // spead up when using timestamp\n && typeof value !== 'number'\n && value != null\n && value !== '-'\n ) {\n value = +parseDate(value);\n }\n\n // dimType defaults 'number'.\n // If dimType is not ordinal and value is null or undefined or NaN or '-',\n // parse to NaN.\n // number-like string (like ' 123 ') can be converted to a number.\n // where null/undefined or other string will be converted to NaN.\n return (value == null || value === '')\n ? NaN\n // If string (like '-'), using '+' parse to NaN\n // If object, also parse to NaN\n : +value;\n};\n\n\n\n\nexport type RawValueParserType = 'number' | 'time' | 'trim';\ntype RawValueParser = (val: unknown) => unknown;\nconst valueParserMap = createHashMap({\n 'number': function (val): number {\n // Do not use `numericToNumber` here. We have by defualt `numericToNumber`.\n // Here the number parser can have loose rule:\n // enable to cut suffix: \"120px\" => 120, \"14%\" => 14.\n return parseFloat(val as string);\n },\n 'time': function (val): number {\n // return timestamp.\n return +parseDate(val);\n },\n 'trim': function (val) {\n return typeof val === 'string' ? trim(val) : val;\n }\n});\n\nexport function getRawValueParser(type: RawValueParserType): RawValueParser {\n return valueParserMap.get(type);\n}\n\n\n\n\nexport interface FilterComparator {\n evaluate(val: unknown): boolean;\n}\n\nconst ORDER_COMPARISON_OP_MAP: {\n [key in OrderRelationOperator]: ((lval: unknown, rval: unknown) => boolean)\n} = {\n lt: (lval, rval) => lval < rval,\n lte: (lval, rval) => lval <= rval,\n gt: (lval, rval) => lval > rval,\n gte: (lval, rval) => lval >= rval\n};\n\nclass FilterOrderComparator implements FilterComparator {\n private _rvalFloat: number;\n private _opFn: (lval: unknown, rval: unknown) => boolean;\n constructor(op: OrderRelationOperator, rval: unknown) {\n if (typeof rval !== 'number') {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'rvalue of \"<\", \">\", \"<=\", \">=\" can only be number in filter.';\n }\n throwError(errMsg);\n }\n this._opFn = ORDER_COMPARISON_OP_MAP[op];\n this._rvalFloat = numericToNumber(rval);\n }\n // Performance sensitive.\n evaluate(lval: unknown): boolean {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n return typeof lval === 'number'\n ? this._opFn(lval, this._rvalFloat)\n : this._opFn(numericToNumber(lval), this._rvalFloat);\n }\n}\n\nexport class SortOrderComparator {\n private _incomparable: number;\n private _resultLT: -1 | 1;\n /**\n * @param order by defualt: 'asc'\n * @param incomparable by defualt: Always on the tail.\n * That is, if 'asc' => 'max', if 'desc' => 'min'\n * See the definition of \"incomparable\" in [SORT_COMPARISON_RULE]\n */\n constructor(order: 'asc' | 'desc', incomparable: 'min' | 'max') {\n const isDesc = order === 'desc';\n this._resultLT = isDesc ? 1 : -1;\n if (incomparable == null) {\n incomparable = isDesc ? 'min' : 'max';\n }\n this._incomparable = incomparable === 'min' ? -Infinity : Infinity;\n }\n // See [SORT_COMPARISON_RULE].\n // Performance sensitive.\n evaluate(lval: unknown, rval: unknown): -1 | 0 | 1 {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n const lvalTypeof = typeof lval;\n const rvalTypeof = typeof rval;\n let lvalFloat = lvalTypeof === 'number' ? lval : numericToNumber(lval);\n let rvalFloat = rvalTypeof === 'number' ? rval : numericToNumber(rval);\n const lvalNotNumeric = isNaN(lvalFloat as number);\n const rvalNotNumeric = isNaN(rvalFloat as number);\n\n if (lvalNotNumeric) {\n lvalFloat = this._incomparable;\n }\n if (rvalNotNumeric) {\n rvalFloat = this._incomparable;\n }\n if (lvalNotNumeric && rvalNotNumeric) {\n const lvalIsStr = lvalTypeof === 'string';\n const rvalIsStr = rvalTypeof === 'string';\n if (lvalIsStr) {\n lvalFloat = rvalIsStr ? lval : 0;\n }\n if (rvalIsStr) {\n rvalFloat = lvalIsStr ? rval : 0;\n }\n }\n\n return lvalFloat < rvalFloat ? this._resultLT\n : lvalFloat > rvalFloat ? (-this._resultLT as -1 | 1)\n : 0;\n }\n}\n\nclass FilterEqualityComparator implements FilterComparator {\n private _isEQ: boolean;\n private _rval: unknown;\n private _rvalTypeof: string;\n private _rvalFloat: number;\n constructor(isEq: boolean, rval: unknown) {\n this._rval = rval;\n this._isEQ = isEq;\n this._rvalTypeof = typeof rval;\n this._rvalFloat = numericToNumber(rval);\n }\n // Performance sensitive.\n evaluate(lval: unknown): boolean {\n let eqResult = lval === this._rval;\n if (!eqResult) {\n const lvalTypeof = typeof lval;\n if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {\n eqResult = numericToNumber(lval) === this._rvalFloat;\n }\n }\n return this._isEQ ? eqResult : !eqResult;\n }\n}\n\ntype OrderRelationOperator = 'lt' | 'lte' | 'gt' | 'gte';\nexport type RelationalOperator = OrderRelationOperator | 'eq' | 'ne';\n\n/**\n * [FILTER_COMPARISON_RULE]\n * `lt`|`lte`|`gt`|`gte`:\n * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.\n * `eq`:\n * + If same type, compare with `===`.\n * + If there is one number, convert to number (`numericToNumber`) to compare.\n * + Else return `false`.\n * `ne`:\n * + Not `eq`.\n *\n *\n * [SORT_COMPARISON_RULE]\n * All the values are grouped into three categories:\n * + \"numeric\" (number and numeric string)\n * + \"non-numeric-string\" (string that excluding numeric string)\n * + \"others\"\n * \"numeric\" vs \"numeric\": values are ordered by number order.\n * \"non-numeric-string\" vs \"non-numeric-string\": values are ordered by ES spec (#sec-abstract-relational-comparison).\n * \"others\" vs \"others\": do not change order (always return 0).\n * \"numeric\" vs \"non-numeric-string\": \"non-numeric-string\" is treated as \"incomparable\".\n * \"number\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"non-numeric-string\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"incomparable\" will be seen as -Infinity or Infinity (depends on the settings).\n * MEMO:\n * non-numeric string sort make sence when need to put the items with the same tag together.\n * But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,\n * So we treat \"numeric-string\" sorted by number order rather than string comparison.\n *\n *\n * [CHECK_LIST_OF_THE_RULE_DESIGN]\n * + Do not support string comparison until required. And also need to\n * void the misleading of \"2\" > \"12\".\n * + Should avoid the misleading case:\n * `\" 22 \" gte \"22\"` is `true` but `\" 22 \" eq \"22\"` is `false`.\n * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...\n * + Only \"numeric\" can be converted to comparable number, otherwise converted to NaN.\n * See `util/number.ts#numericToNumber`.\n *\n * @return If `op` is not `RelationalOperator`, return null;\n */\nexport function createFilterComparator(\n op: string,\n rval?: unknown\n): FilterComparator {\n return (op === 'eq' || op === 'ne')\n ? new FilterEqualityComparator(op === 'eq', rval)\n : hasOwn(ORDER_COMPARISON_OP_MAP, op)\n ? new FilterOrderComparator(op as OrderRelationOperator, rval)\n : null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Dictionary, DimensionDefinitionLoose,\n SourceFormat, DimensionDefinition, DimensionIndex,\n OptionDataValue, DimensionLoose, DimensionName, ParsedValue,\n SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_ARRAY_ROWS,\n OptionSourceDataObjectRows, OptionSourceDataArrayRows\n} from '../../util/types';\nimport { normalizeToArray } from '../../util/model';\nimport {\n createHashMap, bind, each, hasOwn, map, clone, isObject, extend\n} from 'zrender/src/core/util';\nimport {\n getRawSourceItemGetter, getRawSourceDataCounter, getRawSourceValueGetter\n} from './dataProvider';\nimport { parseDataValue } from './dataValueHelper';\nimport { consoleLog, makePrintable, throwError } from '../../util/log';\nimport { createSource, Source, SourceMetaRawOption, detectSourceFormat } from '../Source';\n\n\nexport type PipedDataTransformOption = DataTransformOption[];\nexport type DataTransformType = string;\nexport type DataTransformConfig = unknown;\n\nexport interface DataTransformOption {\n type: DataTransformType;\n config: DataTransformConfig;\n // Print the result via `console.log` when transform performed. Only work in dev mode for debug.\n print?: boolean;\n}\n\nexport interface ExternalDataTransform {\n // Must include namespace like: 'ecStat:regression'\n type: string;\n __isBuiltIn?: boolean;\n transform: (\n param: ExternalDataTransformParam\n ) => ExternalDataTransformResultItem | ExternalDataTransformResultItem[];\n}\n\ninterface ExternalDataTransformParam {\n // This is the first source in upstreamList. In most cases,\n // there is only one upstream source.\n upstream: ExternalSource;\n upstreamList: ExternalSource[];\n config: TO['config'];\n}\nexport interface ExternalDataTransformResultItem {\n /**\n * If `data` is null/undefined, inherit upstream data.\n */\n data: OptionSourceDataArrayRows | OptionSourceDataObjectRows;\n /**\n * A `transform` can optionally return a dimensions definition.\n * The rule:\n * If this `transform result` have different dimensions from the upstream, it should return\n * a new dimension definition. For example, this transform inherit the upstream data totally\n * but add a extra dimension.\n * Otherwise, do not need to return that dimension definition. echarts will inherit dimension\n * definition from the upstream.\n */\n dimensions?: DimensionDefinitionLoose[];\n}\nexport type DataTransformDataItem = ExternalDataTransformResultItem['data'][number];\nexport interface ExternalDimensionDefinition extends Partial {\n // Mandatory\n index: DimensionIndex;\n}\n\n/**\n * TODO: disable writable.\n * This structure will be exposed to users.\n */\nexport class ExternalSource {\n /**\n * [Caveat]\n * This instance is to be exposed to users.\n * (1) DO NOT mount private members on this instance directly.\n * If we have to use private members, we can make them in closure or use `makeInner`.\n * (2) \"soruce header count\" is not provided to transform, because it's complicated to manage\n * header and dimensions definition in each transfrom. Source header are all normalized to\n * dimensions definitions in transforms and their downstreams.\n */\n\n sourceFormat: SourceFormat;\n\n getRawData(): Source['data'] {\n // Only built-in transform available.\n throw new Error('not supported');\n }\n\n getRawDataItem(dataIndex: number): DataTransformDataItem {\n // Only built-in transform available.\n throw new Error('not supported');\n }\n\n cloneRawData(): Source['data'] {\n return;\n }\n\n /**\n * @return If dimension not found, return null/undefined.\n */\n getDimensionInfo(dim: DimensionLoose): ExternalDimensionDefinition {\n return;\n }\n\n /**\n * dimensions defined if and only if either:\n * (a) dataset.dimensions are declared.\n * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).\n * If dimensions are defined, `dimensionInfoAll` is corresponding to\n * the defined dimensions.\n * Otherwise, `dimensionInfoAll` is determined by data columns.\n * @return Always return an array (even empty array).\n */\n cloneAllDimensionInfo(): ExternalDimensionDefinition[] {\n return;\n }\n\n count(): number {\n return;\n }\n\n /**\n * Only support by dimension index.\n * No need to support by dimension name in transform function,\n * becuase transform function is not case-specific, no need to use name literally.\n */\n retrieveValue(dataIndex: number, dimIndex: DimensionIndex): OptionDataValue {\n return;\n }\n\n retrieveValueFromItem(dataItem: DataTransformDataItem, dimIndex: DimensionIndex): OptionDataValue {\n return;\n }\n\n convertValue(rawVal: unknown, dimInfo: ExternalDimensionDefinition): ParsedValue {\n return parseDataValue(rawVal, dimInfo);\n }\n}\n\n\nfunction createExternalSource(internalSource: Source, externalTransform: ExternalDataTransform): ExternalSource {\n const extSource = new ExternalSource();\n\n const data = internalSource.data;\n const sourceFormat = extSource.sourceFormat = internalSource.sourceFormat;\n const sourceHeaderCount = internalSource.startIndex;\n\n let errMsg = '';\n if (internalSource.seriesLayoutBy !== SERIES_LAYOUT_BY_COLUMN) {\n // For the logic simplicity in transformer, only 'culumn' is\n // supported in data transform. Otherwise, the `dimensionsDefine`\n // might be detected by 'row', which probably confuses users.\n if (__DEV__) {\n errMsg = '`seriesLayoutBy` of upstream dataset can only be \"column\" in data transform.';\n }\n throwError(errMsg);\n }\n\n // [MEMO]\n // Create a new dimensions structure for exposing.\n // Do not expose all dimension info to users directly.\n // Becuase the dimension is probably auto detected from data and not might reliable.\n // Should not lead the transformers to think that is relialbe and return it.\n // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n const dimensions = [] as ExternalDimensionDefinition[];\n const dimsByName = {} as Dictionary;\n\n const dimsDef = internalSource.dimensionsDefine;\n if (dimsDef) {\n each(dimsDef, function (dimDef, idx) {\n const name = dimDef.name;\n const dimDefExt = {\n index: idx,\n name: name,\n displayName: dimDef.displayName\n };\n dimensions.push(dimDefExt);\n // Users probably not sepcify dimension name. For simplicity, data transform\n // do not generate dimension name.\n if (name != null) {\n // Dimension name should not be duplicated.\n // For simplicity, data transform forbid name duplication, do not generate\n // new name like module `completeDimensions.ts` did, but just tell users.\n let errMsg = '';\n if (hasOwn(dimsByName, name)) {\n if (__DEV__) {\n errMsg = 'dimension name \"' + name + '\" duplicated.';\n }\n throwError(errMsg);\n }\n dimsByName[name] = dimDefExt;\n }\n });\n }\n // If dimension definitions are not defined and can not be detected.\n // e.g., pure data `[[11, 22], ...]`.\n else {\n for (let i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) {\n // Do not generete name or anything others. The consequence process in\n // `transform` or `series` probably have there own name generation strategry.\n dimensions.push({ index: i });\n }\n }\n\n // Implement public methods:\n const rawItemGetter = getRawSourceItemGetter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n if (externalTransform.__isBuiltIn) {\n extSource.getRawDataItem = function (dataIndex) {\n return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex) as DataTransformDataItem;\n };\n extSource.getRawData = bind(getRawData, null, internalSource);\n }\n\n extSource.cloneRawData = bind(cloneRawData, null, internalSource);\n\n const rawCounter = getRawSourceDataCounter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n extSource.count = bind(rawCounter, null, data, sourceHeaderCount, dimensions);\n\n const rawValueGetter = getRawSourceValueGetter(sourceFormat);\n extSource.retrieveValue = function (dataIndex, dimIndex) {\n const rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex) as DataTransformDataItem;\n return retrieveValueFromItem(rawItem, dimIndex);\n };\n const retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) {\n if (dataItem == null) {\n return;\n }\n const dimDef = dimensions[dimIndex];\n // When `dimIndex` is `null`, `rawValueGetter` return the whole item.\n if (dimDef) {\n return rawValueGetter(dataItem, dimIndex, dimDef.name) as OptionDataValue;\n }\n };\n\n extSource.getDimensionInfo = bind(getDimensionInfo, null, dimensions, dimsByName);\n extSource.cloneAllDimensionInfo = bind(cloneAllDimensionInfo, null, dimensions);\n\n return extSource;\n}\n\nfunction getRawData(upstream: Source): Source['data'] {\n const sourceFormat = upstream.sourceFormat;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = '`getRawData` is not supported in source format ' + sourceFormat;\n }\n throwError(errMsg);\n }\n\n return upstream.data;\n}\n\nfunction cloneRawData(upstream: Source): Source['data'] {\n const sourceFormat = upstream.sourceFormat;\n const data = upstream.data;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = '`cloneRawData` is not supported in source format ' + sourceFormat;\n }\n throwError(errMsg);\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const result = [];\n for (let i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push((data as OptionSourceDataArrayRows)[i].slice());\n }\n return result;\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n const result = [];\n for (let i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(extend({}, (data as OptionSourceDataObjectRows)[i]));\n }\n return result;\n }\n}\n\nfunction getDimensionInfo(\n dimensions: ExternalDimensionDefinition[],\n dimsByName: Dictionary,\n dim: DimensionLoose\n): ExternalDimensionDefinition {\n if (dim == null) {\n return;\n }\n // Keep the same logic as `List::getDimension` did.\n if (typeof dim === 'number'\n // If being a number-like string but not being defined a dimension name.\n || (!isNaN(dim as any) && !hasOwn(dimsByName, dim))\n ) {\n return dimensions[dim as DimensionIndex];\n }\n else if (hasOwn(dimsByName, dim)) {\n return dimsByName[dim as DimensionName];\n }\n}\n\nfunction cloneAllDimensionInfo(dimensions: ExternalDimensionDefinition[]): ExternalDimensionDefinition[] {\n return clone(dimensions);\n}\n\n\nconst externalTransformMap = createHashMap();\n\nexport function registerExternalTransform(\n externalTransform: ExternalDataTransform\n): void {\n externalTransform = clone(externalTransform);\n let type = externalTransform.type;\n let errMsg = '';\n if (!type) {\n if (__DEV__) {\n errMsg = 'Must have a `type` when `registerTransform`.';\n }\n throwError(errMsg);\n }\n const typeParsed = type.split(':');\n if (typeParsed.length !== 2) {\n if (__DEV__) {\n errMsg = 'Name must include namespace like \"ns:regression\".';\n }\n throwError(errMsg);\n }\n // Namespace 'echarts:xxx' is official namespace, where the transforms should\n // be called directly via 'xxx' rather than 'echarts:xxx'.\n let isBuiltIn = false;\n if (typeParsed[0] === 'echarts') {\n type = typeParsed[1];\n isBuiltIn = true;\n }\n externalTransform.__isBuiltIn = isBuiltIn;\n externalTransformMap.set(type, externalTransform);\n}\n\nexport function applyDataTransform(\n rawTransOption: DataTransformOption | PipedDataTransformOption,\n sourceList: Source[],\n infoForPrint: { datasetIndex: number }\n): Source[] {\n const pipedTransOption: PipedDataTransformOption = normalizeToArray(rawTransOption);\n const pipeLen = pipedTransOption.length;\n\n let errMsg = '';\n if (!pipeLen) {\n if (__DEV__) {\n errMsg = 'If `transform` declared, it should at least contain one transform.';\n }\n throwError(errMsg);\n }\n\n for (let i = 0, len = pipeLen; i < len; i++) {\n const transOption = pipedTransOption[i];\n sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i);\n // piped transform only support single input, except the fist one.\n // piped transform only support single output, except the last one.\n if (i !== len - 1) {\n sourceList.length = Math.max(sourceList.length, 1);\n }\n }\n\n return sourceList;\n}\n\nfunction applySingleDataTransform(\n transOption: DataTransformOption,\n upSourceList: Source[],\n infoForPrint: { datasetIndex: number },\n // If `pipeIndex` is null/undefined, no piped transform.\n pipeIndex: number\n): Source[] {\n let errMsg = '';\n if (!upSourceList.length) {\n if (__DEV__) {\n errMsg = 'Must have at least one upstream dataset.';\n }\n throwError(errMsg);\n }\n if (!isObject(transOption)) {\n if (__DEV__) {\n errMsg = 'transform declaration must be an object rather than ' + typeof transOption + '.';\n }\n throwError(errMsg);\n }\n\n const transType = transOption.type;\n const externalTransform = externalTransformMap.get(transType);\n\n if (!externalTransform) {\n if (__DEV__) {\n errMsg = 'Can not find transform on type \"' + transType + '\".';\n }\n throwError(errMsg);\n }\n\n // Prepare source\n const extUpSourceList = map(upSourceList, upSource => createExternalSource(upSource, externalTransform));\n\n const resultList = normalizeToArray(\n externalTransform.transform({\n upstream: extUpSourceList[0],\n upstreamList: extUpSourceList,\n config: clone(transOption.config)\n })\n );\n\n if (__DEV__) {\n if (transOption.print) {\n const printStrArr = map(resultList, extSource => {\n const pipeIndexStr = pipeIndex != null ? ' === pipe index: ' + pipeIndex : '';\n return [\n '=== dataset index: ' + infoForPrint.datasetIndex + pipeIndexStr + ' ===',\n '- transform result data:',\n makePrintable(extSource.data),\n '- transform result dimensions:',\n makePrintable(extSource.dimensions)\n ].join('\\n');\n }).join('\\n');\n consoleLog(printStrArr);\n }\n }\n\n return map(resultList, function (result, resultIndex) {\n let errMsg = '';\n\n if (!isObject(result)) {\n if (__DEV__) {\n errMsg = 'A transform should not return some empty results.';\n }\n throwError(errMsg);\n }\n\n if (!result.data) {\n if (__DEV__) {\n errMsg = 'Transform result data should be not be null or undefined';\n }\n throwError(errMsg);\n }\n\n const sourceFormat = detectSourceFormat(result.data);\n if (!isSupportedSourceFormat(sourceFormat)) {\n if (__DEV__) {\n errMsg = 'Transform result data should be array rows or object rows.';\n }\n throwError(errMsg);\n }\n\n let resultMetaRawOption: SourceMetaRawOption;\n const firstUpSource = upSourceList[0];\n\n /**\n * Intuitively, the end users known the content of the original `dataset.source`,\n * calucating the transform result in mind.\n * Suppose the original `dataset.source` is:\n * ```js\n * [\n * ['product', '2012', '2013', '2014', '2015'],\n * ['AAA', 41.1, 30.4, 65.1, 53.3],\n * ['BBB', 86.5, 92.1, 85.7, 83.1],\n * ['CCC', 24.1, 67.2, 79.5, 86.4]\n * ]\n * ```\n * The dimension info have to be detected from the source data.\n * Some of the transformers (like filter, sort) will follow the dimension info\n * of upstream, while others use new dimensions (like aggregate).\n * Transformer can output a field `dimensions` to define the its own output dimensions.\n * We also allow transformers to ignore the output `dimensions` field, and\n * inherit the upstream dimensions definition. It can reduce the burden of handling\n * dimensions in transformers.\n *\n * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n */\n if (\n firstUpSource\n && resultIndex === 0\n // If transformer returns `dimensions`, it means that the transformer has different\n // dimensions definitions. We do not inherit anything from upstream.\n && !result.dimensions\n ) {\n const startIndex = firstUpSource.startIndex;\n // We copy the header of upstream to the result becuase:\n // (1) The returned data always does not contain header line and can not be used\n // as dimension-detection. In this case we can not use \"detected dimensions\" of\n // upstream directly, because it might be detected based on different `seriesLayoutBy`.\n // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.\n // So the original detected header should be add to the result, otherwise they can not be read.\n if (startIndex) {\n result.data = (firstUpSource.data as []).slice(0, startIndex)\n .concat(result.data as []);\n }\n\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: startIndex,\n dimensions: firstUpSource.metaRawOption.dimensions\n };\n }\n else {\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: 0,\n dimensions: result.dimensions\n };\n }\n\n return createSource(\n result.data,\n resultMetaRawOption,\n null\n );\n });\n}\n\nfunction isSupportedSourceFormat(sourceFormat: SourceFormat): boolean {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS || sourceFormat === SOURCE_FORMAT_OBJECT_ROWS;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { assert, clone, createHashMap, isFunction, keys, map, reduce } from 'zrender/src/core/util';\nimport {\n DimensionIndex,\n DimensionName,\n OptionDataItem,\n ParsedValue,\n ParsedValueNumeric\n} from '../util/types';\nimport { DataProvider } from './helper/dataProvider';\nimport { parseDataValue } from './helper/dataValueHelper';\nimport OrdinalMeta from './OrdinalMeta';\nimport { Source } from './Source';\n\nconst UNDEFINED = 'undefined';\n/* global Float64Array, Int32Array, Uint32Array, Uint16Array */\n\n// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is\n// different from the Ctor of typed array.\nexport const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array;\nexport const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array;\nexport const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array;\nexport const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array;\n/**\n * Multi dimensional data storage\n */\nconst dataCtors = {\n 'float': CtorFloat64Array,\n 'int': CtorInt32Array,\n // Ordinal data type can be string or int\n 'ordinal': Array,\n 'number': Array,\n 'time': CtorFloat64Array\n} as const;\n\nexport type DataStorageDimensionType = keyof typeof dataCtors;\n\ntype DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array;\ntype DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array;\ntype DataArrayLikeConstructor = typeof Array | DataTypedArrayConstructor;\n\n\ntype DataValueChunk = ArrayLike;\n\n// If Ctx not specified, use List as Ctx\ntype EachCb0 = (idx: number) => void;\ntype EachCb1 = (x: ParsedValue, idx: number) => void;\ntype EachCb2 = (x: ParsedValue, y: ParsedValue, idx: number) => void;\ntype EachCb = (...args: any) => void;\ntype FilterCb0 = (idx: number) => boolean;\ntype FilterCb1 = (x: ParsedValue, idx: number) => boolean;\ntype FilterCb = (...args: any) => boolean;\n// type MapArrayCb = (...args: any) => any;\ntype MapCb = (...args: any) => ParsedValue | ParsedValue[];\n\nexport type DimValueGetter = (\n this: DataStorage,\n dataItem: any,\n property: string,\n dataIndex: number,\n dimIndex: DimensionIndex\n) => ParsedValue;\n\nexport interface DataStorageDimensionDefine {\n /**\n * Default to be float.\n */\n type?: DataStorageDimensionType;\n\n /**\n * Only used in SOURCE_FORMAT_OBJECT_ROWS and SOURCE_FORMAT_KEYED_COLUMNS to retrieve value\n * by \"object property\".\n * For example, in `[{bb: 124, aa: 543}, ...]`, \"aa\" and \"bb\" is \"object property\".\n *\n * Deliberately name it as \"property\" rather than \"name\" to prevent it from been used in\n * SOURCE_FORMAT_ARRAY_ROWS, becuase if it comes from series, it probably\n * can not be shared by different series.\n */\n property?: string;\n\n /**\n * When using category axis.\n * Category strings will be collected and stored in ordinalMeta.categories.\n * And storage will store the index of categories.\n */\n ordinalMeta?: OrdinalMeta,\n\n /**\n * Offset for ordinal parsing and collect\n */\n ordinalOffset?: number\n}\n\nlet defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter};\n\nfunction getIndicesCtor(rawCount: number): DataArrayLikeConstructor {\n // The possible max value in this._indicies is always this._rawCount despite of filtering.\n return rawCount > 65535 ? CtorUint32Array : CtorUint16Array;\n};\nfunction getInitialExtent(): [number, number] {\n return [Infinity, -Infinity];\n};\nfunction cloneChunk(originalChunk: DataValueChunk): DataValueChunk {\n const Ctor = originalChunk.constructor;\n // Only shallow clone is enough when Array.\n return Ctor === Array\n ? (originalChunk as Array).slice()\n : new (Ctor as DataTypedArrayConstructor)(originalChunk as DataTypedArray);\n}\n\nfunction prepareStorage(\n storage: DataValueChunk[],\n dimIdx: number,\n dimType: DataStorageDimensionType,\n end: number,\n append?: boolean\n): void {\n const DataCtor = dataCtors[dimType || 'float'];\n\n if (append) {\n const oldStore = storage[dimIdx];\n const oldLen = oldStore && oldStore.length;\n if (!(oldLen === end)) {\n const newStore = new DataCtor(end);\n // The cost of the copy is probably inconsiderable\n // within the initial chunkSize.\n for (let j = 0; j < oldLen; j++) {\n newStore[j] = oldStore[j];\n }\n storage[dimIdx] = newStore;\n }\n }\n else {\n storage[dimIdx] = new DataCtor(end);\n }\n};\n\n/**\n * Basically, DataStorage API keep immutable.\n */\nclass DataStorage {\n private _chunks: DataValueChunk[] = [];\n\n private _provider: DataProvider;\n\n // It will not be calculated util needed.\n private _rawExtent: [number, number][] = [];\n\n private _extent: [number, number][] = [];\n\n // Indices stores the indices of data subset after filtered.\n // This data subset will be used in chart.\n private _indices: ArrayLike;\n\n private _count: number = 0;\n private _rawCount: number = 0;\n\n private _dimensions: DataStorageDimensionDefine[];\n private _dimValueGetter: DimValueGetter;\n\n private _calcDimNameToIdx = createHashMap();\n\n defaultDimValueGetter: DimValueGetter;\n /**\n * Initialize from data\n * @param data source or data or data provider.\n */\n initData(\n provider: DataProvider,\n inputDimensions: DataStorageDimensionDefine[],\n dimValueGetter?: DimValueGetter\n ): void {\n if (__DEV__) {\n assert(\n isFunction(provider.getItem) && isFunction(provider.count),\n 'Inavlid data provider.'\n );\n }\n\n this._provider = provider;\n\n // Clear\n this._chunks = [];\n this._indices = null;\n this.getRawIndex = this._getRawIdxIdentity;\n\n const defaultGetter = this.defaultDimValueGetter =\n defaultDimValueGetters[provider.getSource().sourceFormat];\n // Default dim value getter\n this._dimValueGetter = dimValueGetter || defaultGetter;\n\n // Reset raw extent.\n this._rawExtent = [];\n this._dimensions = map(inputDimensions, dim => ({\n // Only pick these two props. Not leak other properties like orderMeta.\n type: dim.type,\n property: dim.property\n }));\n\n this._initDataFromProvider(0, provider.count());\n }\n\n getProvider(): DataProvider {\n return this._provider;\n }\n\n /**\n * Caution: even when a `source` instance owned by a series, the created data storage\n * may still be shared by different sereis (the source hash does not use all `source`\n * props, see `sourceManager`). In this case, the `source` props that are not used in\n * hash (like `source.dimensionDefine`) probably only belongs to a certain series and\n * thus should not be fetch here.\n */\n getSource(): Source {\n return this._provider.getSource();\n }\n\n /**\n * @caution Only used in dataStack.\n */\n ensureCalculationDimension(dimName: DimensionName, type: DataStorageDimensionType): DimensionIndex {\n const calcDimNameToIdx = this._calcDimNameToIdx;\n const dimensions = this._dimensions;\n\n let calcDimIdx = calcDimNameToIdx.get(dimName);\n if (calcDimIdx != null) {\n if (dimensions[calcDimIdx].type === type) {\n return calcDimIdx;\n }\n }\n else {\n calcDimIdx = dimensions.length;\n }\n\n dimensions[calcDimIdx] = { type: type };\n calcDimNameToIdx.set(dimName, calcDimIdx);\n\n this._chunks[calcDimIdx] = new dataCtors[type || 'float'](this._rawCount);\n this._rawExtent[calcDimIdx] = getInitialExtent();\n\n return calcDimIdx;\n }\n\n collectOrdinalMeta(\n dimIdx: number,\n ordinalMeta: OrdinalMeta\n ): void {\n const chunk = this._chunks[dimIdx];\n const dim = this._dimensions[dimIdx];\n const rawExtents = this._rawExtent;\n\n const offset = dim.ordinalOffset || 0;\n const len = chunk.length;\n\n if (offset === 0) {\n // We need to reset the rawExtent if collect is from start.\n // Because this dimension may be guessed as number and calcuating a wrong extent.\n rawExtents[dimIdx] = getInitialExtent();\n }\n\n const dimRawExtent = rawExtents[dimIdx];\n\n // Parse from previous data offset. len may be changed after appendData\n for (let i = offset; i < len; i++) {\n const val = (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]);\n dimRawExtent[0] = Math.min(val, dimRawExtent[0]);\n dimRawExtent[1] = Math.max(val, dimRawExtent[1]);\n }\n\n dim.ordinalMeta = ordinalMeta;\n dim.ordinalOffset = len;\n dim.type = 'ordinal'; // Force to be ordinal\n }\n\n getOrdinalMeta(dimIdx: number): OrdinalMeta {\n const dimInfo = this._dimensions[dimIdx];\n const ordinalMeta = dimInfo.ordinalMeta;\n return ordinalMeta;\n }\n\n getDimensionProperty(dimIndex: DimensionIndex): DataStorageDimensionDefine['property'] {\n const item = this._dimensions[dimIndex];\n return item && item.property;\n }\n\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n appendData(data: ArrayLike): number[] {\n if (__DEV__) {\n assert(!this._indices, 'appendData can only be called on raw data.');\n }\n\n const provider = this._provider;\n const start = this.count();\n provider.appendData(data);\n let end = provider.count();\n if (!provider.persistent) {\n end += start;\n }\n\n if (start < end) {\n this._initDataFromProvider(start, end, true);\n }\n\n return [start, end];\n }\n\n appendValues(values: any[][], minFillLen?: number): { start: number; end: number } {\n const storage = this._chunks;\n const dimensions = this._dimensions;\n const dimLen = dimensions.length;\n const rawExtent = this._rawExtent;\n\n const start = this.count();\n const end = start + Math.max(values.length, minFillLen || 0);\n\n for (let i = 0; i < dimLen; i++) {\n const dim = dimensions[i];\n prepareStorage(storage, i, dim.type, end, true);\n }\n\n const emptyDataItem: number[] = [];\n for (let idx = start; idx < end; idx++) {\n const sourceIdx = idx - start;\n // Store the data by dimensions\n for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n const dim = dimensions[dimIdx];\n const val = defaultDimValueGetters.arrayRows.call(\n this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx\n ) as ParsedValueNumeric;\n (storage[dimIdx] as any)[idx] = val;\n\n const dimRawExtent = rawExtent[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n }\n\n this._rawCount = this._count = end;\n\n return {start, end};\n }\n\n private _initDataFromProvider(\n start: number,\n end: number,\n append?: boolean\n ): void {\n const provider = this._provider;\n const chunks = this._chunks;\n const dimensions = this._dimensions;\n const dimLen = dimensions.length;\n const rawExtent = this._rawExtent;\n const dimNames = map(dimensions, dim => dim.property);\n\n for (let i = 0; i < dimLen; i++) {\n const dim = dimensions[i];\n if (!rawExtent[i]) {\n rawExtent[i] = getInitialExtent();\n }\n prepareStorage(chunks, i, dim.type, end, append);\n }\n\n\n if (provider.fillStorage) {\n provider.fillStorage(start, end, chunks, rawExtent);\n }\n else {\n let dataItem = [] as OptionDataItem;\n for (let idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n dataItem = provider.getItem(idx, dataItem);\n // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n\n // Store the data by dimensions\n for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n const dimStorage = chunks[dimIdx];\n // PENDING NULL is empty or zero\n const val = this._dimValueGetter(\n dataItem, dimNames[dimIdx], idx, dimIdx\n ) as ParsedValueNumeric;\n (dimStorage as ParsedValue[])[idx] = val;\n\n const dimRawExtent = rawExtent[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n }\n }\n\n if (!provider.persistent && provider.clean) {\n // Clean unused data if data source is typed array.\n provider.clean();\n }\n\n this._rawCount = this._count = end;\n // Reset data extent\n this._extent = [];\n }\n\n count(): number {\n return this._count;\n }\n\n /**\n * Get value. Return NaN if idx is out of range.\n */\n get(dim: DimensionIndex, idx: number): ParsedValue {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n const dimStore = this._chunks[dim];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n }\n\n getValues(idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[]\n getValues(dimensions: readonly DimensionIndex[] | number, idx?: number): ParsedValue[] {\n const values = [];\n let dimArr: DimensionIndex[] = [];\n if (idx == null) {\n idx = dimensions as number;\n // TODO get all from store?\n dimensions = [];\n // All dimensions\n for (let i = 0; i < this._dimensions.length; i++) {\n dimArr.push(i);\n }\n }\n else {\n dimArr = dimensions as DimensionIndex[];\n }\n\n for (let i = 0, len = dimArr.length; i < len; i++) {\n values.push(this.get(dimArr[i], idx));\n }\n\n return values;\n }\n\n /**\n * @param dim concrete dim\n */\n getByRawIndex(dim: DimensionIndex, rawIdx: number): ParsedValue {\n if (!(rawIdx >= 0 && rawIdx < this._rawCount)) {\n return NaN;\n }\n const dimStore = this._chunks[dim];\n return dimStore ? dimStore[rawIdx] : NaN;\n }\n\n /**\n * Get sum of data in one dimension\n */\n getSum(dim: DimensionIndex): number {\n const dimData = this._chunks[dim];\n let sum = 0;\n if (dimData) {\n for (let i = 0, len = this.count(); i < len; i++) {\n const value = this.get(dim, i) as number;\n if (!isNaN(value)) {\n sum += value;\n }\n }\n }\n return sum;\n }\n\n /**\n * Get median of data in one dimension\n */\n getMedian(dim: DimensionIndex): number {\n const dimDataArray: ParsedValue[] = [];\n // map all data of one dimension\n this.each([dim], function (val) {\n if (!isNaN(val as number)) {\n dimDataArray.push(val);\n }\n });\n\n // TODO\n // Use quick select?\n const sortedDimDataArray = dimDataArray.sort(function (a: number, b: number) {\n return a - b;\n }) as number[];\n const len = this.count();\n // calculate median\n return len === 0\n ? 0\n : len % 2 === 1\n ? sortedDimDataArray[(len - 1) / 2]\n : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2;\n }\n\n /**\n * Retreive the index with given raw data index\n */\n indexOfRawIndex(rawIndex: number): number {\n if (rawIndex >= this._rawCount || rawIndex < 0) {\n return -1;\n }\n\n if (!this._indices) {\n return rawIndex;\n }\n\n // Indices are ascending\n const indices = this._indices;\n\n // If rawIndex === dataIndex\n const rawDataIndex = indices[rawIndex];\n if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {\n return rawIndex;\n }\n\n let left = 0;\n let right = this._count - 1;\n while (left <= right) {\n const mid = (left + right) / 2 | 0;\n if (indices[mid] < rawIndex) {\n left = mid + 1;\n }\n else if (indices[mid] > rawIndex) {\n right = mid - 1;\n }\n else {\n return mid;\n }\n }\n return -1;\n }\n\n\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n indicesOfNearest(\n dim: DimensionIndex, value: number, maxDistance?: number\n ): number[] {\n const chunks = this._chunks;\n const dimData = chunks[dim];\n const nearestIndices: number[] = [];\n\n if (!dimData) {\n return nearestIndices;\n }\n\n if (maxDistance == null) {\n maxDistance = Infinity;\n }\n\n let minDist = Infinity;\n let minDiff = -1;\n let nearestIndicesLen = 0;\n\n // Check the test case of `test/ut/spec/data/SeriesData.js`.\n for (let i = 0, len = this.count(); i < len; i++) {\n const dataIndex = this.getRawIndex(i);\n const diff = value - (dimData[dataIndex] as number);\n const dist = Math.abs(diff);\n if (dist <= maxDistance) {\n // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,\n // we'd better not push both of them to `nearestIndices`, otherwise it is easy to\n // get more than one item in `nearestIndices` (more specifically, in `tooltip`).\n // So we chose the one that `diff >= 0` in this csae.\n // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them\n // should be push to `nearestIndices`.\n if (dist < minDist\n || (dist === minDist && diff >= 0 && minDiff < 0)\n ) {\n minDist = dist;\n minDiff = diff;\n nearestIndicesLen = 0;\n }\n if (diff === minDiff) {\n nearestIndices[nearestIndicesLen++] = i;\n }\n }\n }\n nearestIndices.length = nearestIndicesLen;\n\n return nearestIndices;\n }\n\n getIndices(): ArrayLike {\n let newIndices;\n\n const indices = this._indices;\n if (indices) {\n const Ctor = indices.constructor as DataArrayLikeConstructor;\n const thisCount = this._count;\n // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.\n if (Ctor === Array) {\n newIndices = new Ctor(thisCount);\n for (let i = 0; i < thisCount; i++) {\n newIndices[i] = indices[i];\n }\n }\n else {\n newIndices = new (Ctor as DataTypedArrayConstructor)(\n (indices as DataTypedArray).buffer, 0, thisCount\n );\n }\n }\n else {\n const Ctor = getIndicesCtor(this._rawCount);\n newIndices = new Ctor(this.count());\n for (let i = 0; i < newIndices.length; i++) {\n newIndices[i] = i;\n }\n }\n\n return newIndices;\n }\n\n /**\n * Data filter.\n */\n filter(\n dims: DimensionIndex[],\n cb: FilterCb\n ): DataStorage {\n if (!this._count) {\n return this;\n }\n\n const newStore = this.clone();\n\n const count = newStore.count();\n const Ctor = getIndicesCtor(newStore._rawCount);\n const newIndices = new Ctor(count);\n const value = [];\n const dimSize = dims.length;\n\n let offset = 0;\n const dim0 = dims[0];\n const chunks = newStore._chunks;\n\n for (let i = 0; i < count; i++) {\n let keep;\n const rawIdx = newStore.getRawIndex(i);\n // Simple optimization\n if (dimSize === 0) {\n keep = (cb as FilterCb0)(i);\n }\n else if (dimSize === 1) {\n const val = chunks[dim0][rawIdx];\n keep = (cb as FilterCb1)(val, i);\n }\n else {\n let k = 0;\n for (; k < dimSize; k++) {\n value[k] = chunks[dims[k]][rawIdx];\n }\n value[k] = i;\n keep = (cb as FilterCb).apply(null, value);\n }\n if (keep) {\n newIndices[offset++] = rawIdx;\n }\n }\n\n // Set indices after filtered.\n if (offset < count) {\n newStore._indices = newIndices;\n }\n newStore._count = offset;\n // Reset data extent\n newStore._extent = [];\n\n newStore._updateGetRawIdx();\n\n return newStore;\n }\n\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n selectRange(range: {[dimIdx: number]: [number, number]}): DataStorage {\n const newStore = this.clone();\n\n const len = newStore._count;\n\n if (!len) {\n return;\n }\n\n const dims = keys(range);\n const dimSize = dims.length;\n if (!dimSize) {\n return;\n }\n\n const originalCount = newStore.count();\n const Ctor = getIndicesCtor(newStore._rawCount);\n const newIndices = new Ctor(originalCount);\n\n let offset = 0;\n const dim0 = dims[0];\n\n const min = range[dim0][0];\n const max = range[dim0][1];\n const storeArr = newStore._chunks;\n\n let quickFinished = false;\n if (!newStore._indices) {\n // Extreme optimization for common case. About 2x faster in chrome.\n let idx = 0;\n if (dimSize === 1) {\n const dimStorage = storeArr[dims[0]];\n for (let i = 0; i < len; i++) {\n const val = dimStorage[i];\n // NaN will not be filtered. Consider the case, in line chart, empty\n // value indicates the line should be broken. But for the case like\n // scatter plot, a data item with empty value will not be rendered,\n // but the axis extent may be effected if some other dim of the data\n // item has value. Fortunately it is not a significant negative effect.\n if (\n (val >= min && val <= max) || isNaN(val as any)\n ) {\n newIndices[offset++] = idx;\n }\n idx++;\n }\n quickFinished = true;\n }\n else if (dimSize === 2) {\n const dimStorage = storeArr[dims[0]];\n const dimStorage2 = storeArr[dims[1]];\n const min2 = range[dims[1]][0];\n const max2 = range[dims[1]][1];\n for (let i = 0; i < len; i++) {\n const val = dimStorage[i];\n const val2 = dimStorage2[i];\n // Do not filter NaN, see comment above.\n if ((\n (val >= min && val <= max) || isNaN(val as any)\n )\n && (\n (val2 >= min2 && val2 <= max2) || isNaN(val2 as any)\n )\n ) {\n newIndices[offset++] = idx;\n }\n idx++;\n }\n quickFinished = true;\n }\n }\n if (!quickFinished) {\n if (dimSize === 1) {\n for (let i = 0; i < originalCount; i++) {\n const rawIndex = newStore.getRawIndex(i);\n const val = storeArr[dims[0]][rawIndex];\n // Do not filter NaN, see comment above.\n if (\n (val >= min && val <= max) || isNaN(val as any)\n ) {\n newIndices[offset++] = rawIndex;\n }\n }\n }\n else {\n for (let i = 0; i < originalCount; i++) {\n let keep = true;\n const rawIndex = newStore.getRawIndex(i);\n for (let k = 0; k < dimSize; k++) {\n const dimk = dims[k];\n const val = storeArr[dimk][rawIndex];\n // Do not filter NaN, see comment above.\n if (val < range[dimk][0] || val > range[dimk][1]) {\n keep = false;\n }\n }\n if (keep) {\n newIndices[offset++] = newStore.getRawIndex(i);\n }\n }\n }\n }\n\n // Set indices after filtered.\n if (offset < originalCount) {\n newStore._indices = newIndices;\n }\n newStore._count = offset;\n // Reset data extent\n newStore._extent = [];\n\n newStore._updateGetRawIdx();\n\n return newStore;\n }\n\n // /**\n // * Data mapping to a plain array\n // */\n // mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] {\n // const result: any[] = [];\n // this.each(dims, function () {\n // result.push(cb && (cb as MapArrayCb).apply(null, arguments));\n // });\n // return result;\n // }\n\n /**\n * Data mapping to a new List with given dimensions\n */\n map(dims: DimensionIndex[], cb: MapCb): DataStorage {\n // TODO only clone picked chunks.\n const target = this.clone(dims);\n this._updateDims(target, dims, cb);\n return target;\n }\n\n /**\n * @caution Danger!! Only used in dataStack.\n */\n modify(dims: DimensionIndex[], cb: MapCb) {\n this._updateDims(this, dims, cb);\n }\n\n private _updateDims(\n target: DataStorage,\n dims: DimensionIndex[],\n cb: MapCb\n ) {\n const targetChunks = target._chunks;\n\n const tmpRetValue = [];\n const dimSize = dims.length;\n const dataCount = target.count();\n const values = [];\n const rawExtent = target._rawExtent;\n\n for (let i = 0; i < dims.length; i++) {\n rawExtent[dims[i]] = getInitialExtent();\n }\n\n for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) {\n const rawIndex = target.getRawIndex(dataIndex);\n\n for (let k = 0; k < dimSize; k++) {\n values[k] = targetChunks[dims[k]][rawIndex];\n }\n values[dimSize] = dataIndex;\n\n let retValue = cb && cb.apply(null, values);\n if (retValue != null) {\n // a number or string (in oridinal dimension)?\n if (typeof retValue !== 'object') {\n tmpRetValue[0] = retValue;\n retValue = tmpRetValue;\n }\n\n for (let i = 0; i < retValue.length; i++) {\n const dim = dims[i];\n const val = retValue[i];\n const rawExtentOnDim = rawExtent[dim];\n\n const dimStore = targetChunks[dim];\n if (dimStore) {\n (dimStore as ParsedValue[])[rawIndex] = val;\n }\n\n if (val < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = val as number;\n }\n if (val > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = val as number;\n }\n }\n }\n }\n }\n\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n lttbDownSample(\n valueDimension: DimensionIndex,\n rate: number\n ): DataStorage {\n const target = this.clone([valueDimension], true);\n const targetStorage = target._chunks;\n const dimStore = targetStorage[valueDimension];\n const len = this.count();\n\n let sampledIndex = 0;\n\n const frameSize = Math.floor(1 / rate);\n\n let currentRawIndex = this.getRawIndex(0);\n let maxArea;\n let area;\n let nextRawIndex;\n\n const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 2);\n\n // First frame use the first data.\n newIndices[sampledIndex++] = currentRawIndex;\n for (let i = 1; i < len - 1; i += frameSize) {\n const nextFrameStart = Math.min(i + frameSize, len - 1);\n const nextFrameEnd = Math.min(i + frameSize * 2, len);\n\n const avgX = (nextFrameEnd + nextFrameStart) / 2;\n let avgY = 0;\n\n for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) {\n const rawIndex = this.getRawIndex(idx);\n const y = dimStore[rawIndex] as number;\n if (isNaN(y)) {\n continue;\n }\n avgY += y as number;\n }\n avgY /= (nextFrameEnd - nextFrameStart);\n\n const frameStart = i;\n const frameEnd = Math.min(i + frameSize, len);\n\n const pointAX = i - 1;\n const pointAY = dimStore[currentRawIndex] as number;\n\n maxArea = -1;\n\n nextRawIndex = frameStart;\n // Find a point from current frame that construct a triangel with largest area with previous selected point\n // And the average of next frame.\n for (let idx = frameStart; idx < frameEnd; idx++) {\n const rawIndex = this.getRawIndex(idx);\n const y = dimStore[rawIndex] as number;\n if (isNaN(y)) {\n continue;\n }\n // Calculate triangle area over three buckets\n area = Math.abs((pointAX - avgX) * (y - pointAY)\n - (pointAX - idx) * (avgY - pointAY)\n );\n if (area > maxArea) {\n maxArea = area;\n nextRawIndex = rawIndex; // Next a is this b\n }\n }\n\n newIndices[sampledIndex++] = nextRawIndex;\n\n currentRawIndex = nextRawIndex; // This a is the next a (chosen b)\n }\n\n // First frame use the last data.\n newIndices[sampledIndex++] = this.getRawIndex(len - 1);\n target._count = sampledIndex;\n target._indices = newIndices;\n\n target.getRawIndex = this._getRawIdx;\n return target;\n }\n\n\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n downSample(\n dimension: DimensionIndex,\n rate: number,\n sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric,\n sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number\n ): DataStorage {\n const target = this.clone([dimension], true);\n const targetStorage = target._chunks;\n\n const frameValues = [];\n let frameSize = Math.floor(1 / rate);\n\n const dimStore = targetStorage[dimension];\n const len = this.count();\n const rawExtentOnDim = target._rawExtent[dimension] = getInitialExtent();\n\n const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize));\n\n let offset = 0;\n for (let i = 0; i < len; i += frameSize) {\n // Last frame\n if (frameSize > len - i) {\n frameSize = len - i;\n frameValues.length = frameSize;\n }\n for (let k = 0; k < frameSize; k++) {\n const dataIdx = this.getRawIndex(i + k);\n frameValues[k] = dimStore[dataIdx];\n }\n const value = sampleValue(frameValues);\n const sampleFrameIdx = this.getRawIndex(\n Math.min(i + sampleIndex(frameValues, value) || 0, len - 1)\n );\n // Only write value on the filtered data\n (dimStore as number[])[sampleFrameIdx] = value;\n\n if (value < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = value;\n }\n if (value > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = value;\n }\n\n newIndices[offset++] = sampleFrameIdx;\n }\n\n target._count = offset;\n target._indices = newIndices;\n\n target._updateGetRawIdx();\n\n return target;\n }\n\n /**\n * Data iteration\n * @param ctx default this\n * @example\n * list.each('x', function (x, idx) {});\n * list.each(['x', 'y'], function (x, y, idx) {});\n * list.each(function (idx) {})\n */\n each(dims: DimensionIndex[], cb: EachCb): void {\n if (!this._count) {\n return;\n }\n const dimSize = dims.length;\n const chunks = this._chunks;\n\n for (let i = 0, len = this.count(); i < len; i++) {\n const rawIdx = this.getRawIndex(i);\n // Simple optimization\n switch (dimSize) {\n case 0:\n (cb as EachCb0)(i);\n break;\n case 1:\n (cb as EachCb1)(chunks[dims[0]][rawIdx], i);\n break;\n case 2:\n (cb as EachCb2)(\n chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i\n );\n break;\n default:\n let k = 0;\n const value = [];\n for (; k < dimSize; k++) {\n value[k] = chunks[dims[k]][rawIdx];\n }\n // Index\n value[k] = i;\n (cb as EachCb).apply(null, value);\n }\n }\n }\n\n /**\n * Get extent of data in one dimension\n */\n getDataExtent(dim: DimensionIndex): [number, number] {\n // Make sure use concrete dim as cache name.\n const dimData = this._chunks[dim];\n const initialExtent = getInitialExtent();\n\n if (!dimData) {\n return initialExtent;\n }\n\n // Make more strict checkings to ensure hitting cache.\n const currEnd = this.count();\n\n // Consider the most cases when using data zoom, `getDataExtent`\n // happened before filtering. We cache raw extent, which is not\n // necessary to be cleared and recalculated when restore data.\n const useRaw = !this._indices;\n let dimExtent: [number, number];\n\n if (useRaw) {\n return this._rawExtent[dim].slice() as [number, number];\n }\n dimExtent = this._extent[dim];\n if (dimExtent) {\n return dimExtent.slice() as [number, number];\n }\n dimExtent = initialExtent;\n\n let min = dimExtent[0];\n let max = dimExtent[1];\n\n for (let i = 0; i < currEnd; i++) {\n const rawIdx = this.getRawIndex(i);\n const value = dimData[rawIdx] as ParsedValueNumeric;\n value < min && (min = value);\n value > max && (max = value);\n }\n\n dimExtent = [min, max];\n\n this._extent[dim] = dimExtent;\n\n return dimExtent;\n }\n\n /**\n * Get raw data index.\n * Do not initialize.\n * Default `getRawIndex`. And it can be changed.\n */\n getRawIndex: (idx: number) => number;\n\n /**\n * Get raw data item\n */\n getRawDataItem(idx: number): OptionDataItem {\n const rawIdx = this.getRawIndex(idx);\n if (!this._provider.persistent) {\n const val = [];\n const chunks = this._chunks;\n for (let i = 0; i < chunks.length; i++) {\n val.push(chunks[i][rawIdx]);\n }\n return val;\n }\n else {\n return this._provider.getItem(this.getRawIndex(idx));\n }\n }\n\n /**\n * Clone shallow.\n *\n * @param clonedDims Determine which dims to clone. Will share the data if not specified.\n */\n clone(clonedDims?: DimensionIndex[], ignoreIndices?: boolean): DataStorage {\n const target = new DataStorage();\n const chunks = this._chunks;\n const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => {\n obj[dimIdx] = true;\n return obj;\n }, {} as Record);\n\n if (clonedDimsMap) {\n for (let i = 0; i < chunks.length; i++) {\n // Not clone if dim is not picked.\n target._chunks[i] = !clonedDimsMap[i] ? chunks[i] : cloneChunk(chunks[i]);\n }\n }\n else {\n target._chunks = chunks;\n }\n this._copyCommonProps(target);\n\n if (!ignoreIndices) {\n target._indices = this._cloneIndices();\n }\n target._updateGetRawIdx();\n return target;\n }\n\n private _copyCommonProps(target: DataStorage): void {\n target._count = this._count;\n target._rawCount = this._rawCount;\n target._provider = this._provider;\n target._dimensions = this._dimensions;\n\n target._extent = clone(this._extent);\n target._rawExtent = clone(this._rawExtent);\n }\n\n private _cloneIndices(): DataStorage['_indices'] {\n if (this._indices) {\n const Ctor = this._indices.constructor as DataArrayLikeConstructor;\n let indices;\n if (Ctor === Array) {\n const thisCount = this._indices.length;\n indices = new Ctor(thisCount);\n for (let i = 0; i < thisCount; i++) {\n indices[i] = this._indices[i];\n }\n }\n else {\n indices = new (Ctor as DataTypedArrayConstructor)(this._indices);\n }\n return indices;\n }\n return null;\n }\n\n private _getRawIdxIdentity(idx: number): number {\n return idx;\n }\n private _getRawIdx(idx: number): number {\n if (idx < this._count && idx >= 0) {\n return this._indices[idx];\n }\n return -1;\n }\n\n private _updateGetRawIdx(): void {\n this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity;\n }\n\n private static internalField = (function () {\n\n function getDimValueSimply(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]);\n }\n\n defaultDimValueGetters = {\n\n arrayRows: getDimValueSimply,\n\n objectRows(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return parseDataValue(dataItem[property], this._dimensions[dimIndex]);\n },\n\n keyedColumns: getDimValueSimply,\n\n original(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n // Performance sensitive, do not use modelUtil.getDataItemValue.\n // If dataItem is an plain object with no value field, the let `value`\n // will be assigned with the object, but it will be tread correctly\n // in the `convertValue`.\n const value = dataItem && (dataItem.value == null ? dataItem : dataItem.value);\n\n return parseDataValue(\n (value instanceof Array)\n ? value[dimIndex]\n // If value is a single number or something else not array.\n : value,\n this._dimensions[dimIndex]\n );\n },\n\n typedArray: function (\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return dataItem[dimIndex];\n }\n\n };\n\n })();\n}\n\nexport default DataStorage;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { DatasetModel } from '../../component/dataset/install';\nimport SeriesModel from '../../model/Series';\nimport {\n setAsPrimitive, map, isTypedArray, assert, each, retrieve2\n} from 'zrender/src/core/util';\nimport { SourceMetaRawOption, Source, createSource, cloneSourceShallow, shouldRetrieveDataByName } from '../Source';\nimport {\n SeriesEncodableModel, OptionSourceData,\n SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL,\n SourceFormat, SeriesLayoutBy, OptionSourceHeader,\n DimensionDefinitionLoose, Dictionary\n} from '../../util/types';\nimport {\n querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels\n} from './sourceHelper';\nimport { applyDataTransform } from './transform';\nimport DataStorage, { DataStorageDimensionDefine } from '../DataStorage';\nimport { DefaultDataProvider } from './dataProvider';\nimport { SeriesDataSchema, shouldOmitUnusedDimensions } from './SeriesDataSchema';\n\ntype DataStorageMap = Dictionary;\n\n/**\n * [REQUIREMENT_MEMO]:\n * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option.\n * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and\n * `root-dataset`. Them on `series` has higher priority.\n * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might\n * confuse users: whether those props indicate how to visit the upstream source or visit\n * the transform result source, and some transforms has nothing to do with these props,\n * and some transforms might have multiple upstream.\n * (3) Transforms should specify `metaRawOption` in each output, just like they can be\n * declared in `root-dataset`.\n * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.\n * That is for reducing complexity in transfroms.\n * PENDING: Whether to provide transposition transform?\n *\n * [IMPLEMENTAION_MEMO]:\n * \"sourceVisitConfig\" are calculated from `metaRawOption` and `data`.\n * They will not be calculated until `source` is about to be visited (to prevent from\n * duplicate calcuation). `source` is visited only in series and input to transforms.\n *\n * [DIMENSION_INHERIT_RULE]:\n * By default the dimensions are inherited from ancestors, unless a transform return\n * a new dimensions definition.\n * Consider the case:\n * ```js\n * dataset: [{\n * source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * dataset: [{\n * dimension: ['Product', 'Sales', 'Prise'],\n * source: [ ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * ```\n * The two types of option should have the same behavior after transform.\n *\n *\n * [SCENARIO]:\n * (1) Provide source data directly:\n * ```js\n * series: {\n * encode: {...},\n * dimensions: [...]\n * seriesLayoutBy: 'row',\n * data: [[...]]\n * }\n * ```\n * (2) Series refer to dataset.\n * ```js\n * series: [{\n * encode: {...}\n * // Ignore datasetIndex means `datasetIndex: 0`\n * // and the dimensions defination in dataset is used\n * }, {\n * encode: {...},\n * seriesLayoutBy: 'column',\n * datasetIndex: 1\n * }]\n * ```\n * (3) dataset transform\n * ```js\n * dataset: [{\n * source: [...]\n * }, {\n * source: [...]\n * }, {\n * // By default from 0.\n * transform: { type: 'filter', config: {...} }\n * }, {\n * // Piped.\n * transform: [\n * { type: 'filter', config: {...} },\n * { type: 'sort', config: {...} }\n * ]\n * }, {\n * id: 'regressionData',\n * fromDatasetIndex: 1,\n * // Third-party transform\n * transform: { type: 'ecStat:regression', config: {...} }\n * }, {\n * // retrieve the extra result.\n * id: 'regressionFormula',\n * fromDatasetId: 'regressionData',\n * fromTransformResult: 1\n * }]\n * ```\n */\n\nexport class SourceManager {\n\n // Currently only datasetModel can host `transform`\n private _sourceHost: DatasetModel | SeriesModel;\n\n // Cached source. Do not repeat calculating if not dirty.\n private _sourceList: Source[] = [];\n\n private _storeList: DataStorageMap[] = [];\n\n // version sign of each upstream source manager.\n private _upstreamSignList: string[] = [];\n\n private _versionSignBase = 0;\n\n private _dirty = true;\n\n constructor(sourceHost: DatasetModel | SeriesModel) {\n this._sourceHost = sourceHost;\n }\n\n /**\n * Mark dirty.\n */\n dirty() {\n this._setLocalSource([], []);\n this._storeList = [];\n this._dirty = true;\n }\n\n private _setLocalSource(\n sourceList: Source[],\n upstreamSignList: string[]\n ): void {\n this._sourceList = sourceList;\n this._upstreamSignList = upstreamSignList;\n this._versionSignBase++;\n if (this._versionSignBase > 9e10) {\n this._versionSignBase = 0;\n }\n }\n\n /**\n * For detecting whether the upstream source is dirty, so that\n * the local cached source (in `_sourceList`) should be discarded.\n */\n private _getVersionSign(): string {\n return this._sourceHost.uid + '_' + this._versionSignBase;\n }\n\n /**\n * Always return a source instance. Otherwise throw error.\n */\n prepareSource(): void {\n // For the case that call `setOption` multiple time but no data changed,\n // cache the result source to prevent from repeating transform.\n if (this._isDirty()) {\n this._createSource();\n this._dirty = false;\n }\n }\n\n private _createSource(): void {\n this._setLocalSource([], []);\n\n const sourceHost = this._sourceHost;\n\n const upSourceMgrList = this._getUpstreamSourceManagers();\n const hasUpstream = !!upSourceMgrList.length;\n let resultSourceList: Source[];\n let upstreamSignList: string[];\n\n if (isSeries(sourceHost)) {\n const seriesModel = sourceHost as SeriesEncodableModel;\n let data;\n let sourceFormat: SourceFormat;\n let upSource: Source;\n\n // Has upstream dataset\n if (hasUpstream) {\n const upSourceMgr = upSourceMgrList[0];\n upSourceMgr.prepareSource();\n upSource = upSourceMgr.getSource();\n data = upSource.data;\n sourceFormat = upSource.sourceFormat;\n upstreamSignList = [upSourceMgr._getVersionSign()];\n }\n // Series data is from own.\n else {\n data = seriesModel.get('data', true) as OptionSourceData;\n sourceFormat = isTypedArray(data)\n ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL;\n upstreamSignList = [];\n }\n\n // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.\n const newMetaRawOption = this._getSourceMetaRawOption() || {} as SourceMetaRawOption;\n const upMetaRawOption = upSource && upSource.metaRawOption || {} as SourceMetaRawOption;\n const seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null;\n const sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader) || null;\n // Note here we should not use `upSource.dimensionsDefine`. Consider the case:\n // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`,\n // but series need `seriesLayoutBy: 'row'`.\n const dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption.dimensions);\n\n // We share source with dataset as much as possible\n // to avoid extra memroy cost of high dimensional data.\n const needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy\n || !!sourceHeader !== !!upMetaRawOption.sourceHeader\n || dimensions;\n resultSourceList = needsCreateSource ? [createSource(\n data,\n { seriesLayoutBy, sourceHeader, dimensions },\n sourceFormat\n )] : [];\n }\n else {\n const datasetModel = sourceHost as DatasetModel;\n\n // Has upstream dataset.\n if (hasUpstream) {\n const result = this._applyTransform(upSourceMgrList);\n resultSourceList = result.sourceList;\n upstreamSignList = result.upstreamSignList;\n }\n // Is root dataset.\n else {\n const sourceData = datasetModel.get('source', true);\n resultSourceList = [createSource(\n sourceData,\n this._getSourceMetaRawOption(),\n null\n )];\n upstreamSignList = [];\n }\n }\n\n if (__DEV__) {\n assert(resultSourceList && upstreamSignList);\n }\n\n this._setLocalSource(resultSourceList, upstreamSignList);\n }\n\n private _applyTransform(\n upMgrList: SourceManager[]\n ): {\n sourceList: Source[],\n upstreamSignList: string[]\n } {\n const datasetModel = this._sourceHost as DatasetModel;\n const transformOption = datasetModel.get('transform', true);\n const fromTransformResult = datasetModel.get('fromTransformResult', true);\n\n if (__DEV__) {\n assert(fromTransformResult != null || transformOption != null);\n }\n\n if (fromTransformResult != null) {\n let errMsg = '';\n if (upMgrList.length !== 1) {\n if (__DEV__) {\n errMsg = 'When using `fromTransformResult`, there should be only one upstream dataset';\n }\n doThrow(errMsg);\n }\n }\n\n let sourceList: Source[];\n const upSourceList: Source[] = [];\n const upstreamSignList: string[] = [];\n each(upMgrList, upMgr => {\n upMgr.prepareSource();\n const upSource = upMgr.getSource(fromTransformResult || 0);\n let errMsg = '';\n if (fromTransformResult != null && !upSource) {\n if (__DEV__) {\n errMsg = 'Can not retrieve result by `fromTransformResult`: ' + fromTransformResult;\n }\n doThrow(errMsg);\n }\n upSourceList.push(upSource);\n upstreamSignList.push(upMgr._getVersionSign());\n });\n\n if (transformOption) {\n sourceList = applyDataTransform(\n transformOption,\n upSourceList,\n { datasetIndex: datasetModel.componentIndex }\n );\n }\n else if (fromTransformResult != null) {\n sourceList = [cloneSourceShallow(upSourceList[0])];\n }\n\n return { sourceList, upstreamSignList };\n }\n\n private _isDirty(): boolean {\n if (this._dirty) {\n return true;\n }\n\n // All sourceList is from the some upsteam.\n const upSourceMgrList = this._getUpstreamSourceManagers();\n for (let i = 0; i < upSourceMgrList.length; i++) {\n const upSrcMgr = upSourceMgrList[i];\n if (\n // Consider the case that there is ancestor diry, call it recursively.\n // The performance is probably not an issue because usually the chain is not long.\n upSrcMgr._isDirty()\n || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()\n ) {\n return true;\n }\n }\n }\n\n /**\n * @param sourceIndex By defualt 0, means \"main source\".\n * Most cases there is only one source.\n */\n getSource(sourceIndex?: number): Source {\n sourceIndex = sourceIndex || 0;\n const source = this._sourceList[sourceIndex];\n if (!source) {\n // Series may share source instance with dataset.\n const upSourceMgrList = this._getUpstreamSourceManagers();\n return upSourceMgrList[0]\n && upSourceMgrList[0].getSource(sourceIndex);\n }\n return source;\n }\n\n /**\n *\n * Get a data storage which can be shared across series.\n * Only available for series.\n *\n * @param seriesDimRequest Dimensions that are generated in series.\n * Should have been sorted by `storageDimensionIndex` asc.\n */\n getSharedDataStorage(seriesDimRequest: SeriesDataSchema): DataStorage {\n if (__DEV__) {\n assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.');\n }\n const schema = seriesDimRequest.makeStorageSchema();\n return this._innerGetDataStorage(\n schema.dimensions, seriesDimRequest.source, schema.hash\n );\n }\n\n private _innerGetDataStorage(\n storageDims: DataStorageDimensionDefine[],\n seriesSource: Source,\n sourceReadKey: string\n ): DataStorage | undefined {\n // TODO Can use other sourceIndex?\n const sourceIndex = 0;\n\n const storeList = this._storeList;\n\n let cachedStoreMap = storeList[sourceIndex];\n\n if (!cachedStoreMap) {\n cachedStoreMap = storeList[sourceIndex] = {};\n }\n\n let cachedStore = cachedStoreMap[sourceReadKey];\n if (!cachedStore) {\n const upSourceMgr = this._getUpstreamSourceManagers()[0];\n\n if (isSeries(this._sourceHost) && upSourceMgr) {\n cachedStore = upSourceMgr._innerGetDataStorage(\n storageDims, seriesSource, sourceReadKey\n );\n }\n else {\n cachedStore = new DataStorage();\n // Always create storage from source of series.\n cachedStore.initData(\n new DefaultDataProvider(seriesSource, storageDims.length),\n storageDims\n );\n }\n cachedStoreMap[sourceReadKey] = cachedStore;\n }\n\n return cachedStore;\n }\n\n /**\n * PEDING: Is it fast enough?\n * If no upstream, return empty array.\n */\n private _getUpstreamSourceManagers(): SourceManager[] {\n // Always get the relationship from the raw option.\n // Do not cache the link of the dependency graph, so that\n // no need to update them when change happen.\n const sourceHost = this._sourceHost;\n\n if (isSeries(sourceHost)) {\n const datasetModel = querySeriesUpstreamDatasetModel(sourceHost);\n return !datasetModel ? [] : [datasetModel.getSourceManager()];\n }\n else {\n return map(\n queryDatasetUpstreamDatasetModels(sourceHost as DatasetModel),\n datasetModel => datasetModel.getSourceManager()\n );\n }\n }\n\n private _getSourceMetaRawOption(): SourceMetaRawOption {\n const sourceHost = this._sourceHost;\n let seriesLayoutBy: SeriesLayoutBy;\n let sourceHeader: OptionSourceHeader;\n let dimensions: DimensionDefinitionLoose[];\n if (isSeries(sourceHost)) {\n seriesLayoutBy = sourceHost.get('seriesLayoutBy', true);\n sourceHeader = sourceHost.get('sourceHeader', true);\n dimensions = sourceHost.get('dimensions', true);\n }\n // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them.\n else if (!this._getUpstreamSourceManagers().length) {\n const model = sourceHost as DatasetModel;\n seriesLayoutBy = model.get('seriesLayoutBy', true);\n sourceHeader = model.get('sourceHeader', true);\n dimensions = model.get('dimensions', true);\n }\n return { seriesLayoutBy, sourceHeader, dimensions };\n }\n\n}\n\n// Call this method after `super.init` and `super.mergeOption` to\n// disable the transform merge, but do not disable transfrom clone from rawOption.\nexport function disableTransformOptionMerge(datasetModel: DatasetModel): void {\n const transformOption = datasetModel.option.transform;\n transformOption && setAsPrimitive(datasetModel.option.transform);\n}\n\nfunction isSeries(sourceHost: SourceManager['_sourceHost']): sourceHost is SeriesEncodableModel {\n // Avoid circular dependency with Series.ts\n return (sourceHost as SeriesModel).mainType === 'series';\n}\n\nfunction doThrow(errMsg: string): void {\n throw new Error(errMsg);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Dictionary, TooltipRenderMode, ColorString,\n TooltipOrderMode, DimensionType\n} from '../../util/types';\nimport {\n TooltipMarkerType, getTooltipMarker, encodeHTML,\n makeValueReadable, convertToColorString\n} from '../../util/format';\nimport { isString, each, hasOwn, isArray, map, assert, extend } from 'zrender/src/core/util';\nimport { SortOrderComparator } from '../../data/helper/dataValueHelper';\nimport SeriesModel from '../../model/Series';\nimport { getRandomIdBase } from '../../util/number';\nimport Model from '../../model/Model';\nimport { TooltipOption } from './TooltipModel';\n\ntype RichTextStyle = {\n fontSize: number | string,\n fill: string,\n fontWeight?: number | string\n};\n\ntype TextStyle = string | RichTextStyle;\n\nconst TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1';\n\n// TODO: more textStyle option\nfunction getTooltipTextStyle(\n textStyle: TooltipOption['textStyle'],\n renderMode: TooltipRenderMode\n): {\n nameStyle: TextStyle\n valueStyle: TextStyle\n} {\n const nameFontColor = textStyle.color || '#6e7079';\n const nameFontSize = textStyle.fontSize || 12;\n const nameFontWeight = textStyle.fontWeight || '400';\n const valueFontColor = textStyle.color || '#464646';\n const valueFontSize = textStyle.fontSize || 14;\n const valueFontWeight = textStyle.fontWeight || '900';\n\n if (renderMode === 'html') {\n // `textStyle` is probably from user input, should be encoded to reduce security risk.\n return {\n // eslint-disable-next-line max-len\n nameStyle: `font-size:${encodeHTML(nameFontSize + '')}px;color:${encodeHTML(nameFontColor)};font-weight:${encodeHTML(nameFontWeight + '')}`,\n // eslint-disable-next-line max-len\n valueStyle: `font-size:${encodeHTML(valueFontSize + '')}px;color:${encodeHTML(valueFontColor)};font-weight:${encodeHTML(valueFontWeight + '')}`\n };\n }\n else {\n return {\n nameStyle: {\n fontSize: nameFontSize,\n fill: nameFontColor,\n fontWeight: nameFontWeight\n },\n valueStyle: {\n fontSize: valueFontSize,\n fill: valueFontColor,\n fontWeight: valueFontWeight\n }\n };\n }\n}\n\n// 0: no gap in this block.\n// 1: has max gap in level 1 in this block.\n// ...\ntype GapLevel = number;\n// See `TooltipMarkupLayoutIntent['innerGapLevel']`.\n// (value from UI design)\nconst HTML_GAPS: { [key in GapLevel]: number } = [0, 10, 20, 30];\nconst RICH_TEXT_GAPS: { [key in GapLevel]: string } = ['', '\\n', '\\n\\n', '\\n\\n\\n'];\n\n/**\n * This is an abstract layer to insulate the upper usage of tooltip content\n * from the different backends according to different `renderMode` ('html' or 'richText').\n * With the help of the abstract layer, it does not need to consider how to create and\n * assemble html or richText snippets when making tooltip content.\n *\n * @usage\n *\n * ```ts\n * class XxxSeriesModel {\n * formatTooltip(\n * dataIndex: number,\n * multipleSeries: boolean,\n * dataType: string\n * ) {\n * ...\n * return createTooltipMarkup('section', {\n * header: header,\n * blocks: [\n * createTooltipMarkup('nameValue', {\n * name: name,\n * value: value,\n * noValue: value == null\n * })\n * ]\n * });\n * }\n * }\n * ```\n */\nexport type TooltipMarkupBlockFragment =\n TooltipMarkupSection\n | TooltipMarkupNameValueBlock;\n\ninterface TooltipMarkupBlock {\n // Use to make comparison when `sortBlocks: true`.\n sortParam?: unknown;\n __gapLevelBetweenSubBlocks?: number;\n}\n\nexport interface TooltipMarkupSection extends TooltipMarkupBlock {\n type: 'section';\n header?: unknown;\n // If `noHeader` is `true`, do not display header.\n // Otherwise, always display it even if it is\n // null/undefined/NaN/''... (displayed as '-').\n noHeader?: boolean;\n blocks?: TooltipMarkupBlockFragment[];\n // Enable to sort blocks when making final html or richText.\n sortBlocks?: boolean;\n}\n\nexport interface TooltipMarkupNameValueBlock extends TooltipMarkupBlock {\n type: 'nameValue';\n // If `!markerType`, tooltip marker is not used.\n markerType?: TooltipMarkerType;\n markerColor?: ColorString;\n name?: string;\n // Also support value is `[121, 555, 94.2]`.\n value?: unknown | unknown[];\n // If not specified, treat value as normal string or numeric.\n // If needs to display formatted time, set as 'time'.\n // If needs to display original string with numeric guessing, set as 'ordinal'.\n // If both `value` and `valueType` are array, each valueType[i] cooresponds to value[i].\n valueType?: DimensionType | DimensionType[];\n // If `noName` or `noValue` is `true`, do not display name or value.\n // Otherwise, always display them even if they are\n // null/undefined/NaN/''... (displayed as '-').\n noName?: boolean;\n noValue?: boolean;\n}\n\n/**\n * Create tooltip markup by this function, we can get TS type check.\n */\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: 'section', option: Omit): TooltipMarkupSection;\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: 'nameValue', option: Omit): TooltipMarkupNameValueBlock;\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: TooltipMarkupBlockFragment['type'], option: Omit): TooltipMarkupBlockFragment {\n (option as TooltipMarkupBlockFragment).type = type;\n return option as TooltipMarkupBlockFragment;\n}\n\n\n// Can be null/undefined, which means generate nothing markup text.\ntype MarkupText = string;\ninterface TooltipMarkupFragmentBuilder {\n planLayout(\n fragment: TooltipMarkupBlockFragment\n ): void;\n build(\n ctx: TooltipMarkupBuildContext,\n fragment: TooltipMarkupBlockFragment,\n topMarginForOuterGap: number,\n toolTipTextStyle: TooltipOption['textStyle']\n ): MarkupText;\n}\n\nfunction getBuilder(fragment: TooltipMarkupBlockFragment): TooltipMarkupFragmentBuilder {\n return hasOwn(builderMap, fragment.type) && builderMap[fragment.type];\n}\n\nconst builderMap: { [key in TooltipMarkupBlockFragment['type']]: TooltipMarkupFragmentBuilder } = {\n\n /**\n * A `section` block is like:\n * ```\n * header\n * subBlock\n * subBlock\n * ...\n * ```\n */\n section: {\n planLayout: function (fragment: TooltipMarkupSection) {\n const subBlockLen = fragment.blocks.length;\n const thisBlockHasInnerGap = subBlockLen > 1 || (subBlockLen > 0 && !fragment.noHeader);\n\n let thisGapLevelBetweenSubBlocks = 0;\n each(fragment.blocks, function (subBlock) {\n getBuilder(subBlock).planLayout(subBlock);\n const subGapLevel = subBlock.__gapLevelBetweenSubBlocks;\n\n // If the some of the sub-blocks have some gaps (like 10px) inside, this block\n // should use a larger gap (like 20px) to distinguish those sub-blocks.\n if (subGapLevel >= thisGapLevelBetweenSubBlocks) {\n thisGapLevelBetweenSubBlocks = subGapLevel + (\n (\n thisBlockHasInnerGap && (\n // 0 always can not be readable gap level.\n !subGapLevel\n // If no header, always keep the sub gap level. Otherwise\n // look weird in case `multipleSeries`.\n || (subBlock.type === 'section' && !subBlock.noHeader)\n )\n ) ? 1 : 0\n );\n }\n });\n fragment.__gapLevelBetweenSubBlocks = thisGapLevelBetweenSubBlocks;\n },\n\n build(\n ctx,\n fragment: TooltipMarkupSection,\n topMarginForOuterGap,\n toolTipTextStyle\n ): string {\n const noHeader = fragment.noHeader;\n const gaps = getGap(fragment);\n\n const subMarkupText = buildSubBlocks(\n ctx,\n fragment,\n noHeader ? topMarginForOuterGap : gaps.html,\n toolTipTextStyle\n );\n\n if (noHeader) {\n return subMarkupText;\n }\n\n const displayableHeader = makeValueReadable(fragment.header, 'ordinal', ctx.useUTC);\n const {nameStyle} = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode);\n if (ctx.renderMode === 'richText') {\n return wrapInlineNameRichText(ctx, displayableHeader, nameStyle as RichTextStyle) + gaps.richText\n + subMarkupText;\n }\n else {\n return wrapBlockHTML(\n `
`\n + encodeHTML(displayableHeader)\n + '
'\n + subMarkupText,\n topMarginForOuterGap\n );\n }\n }\n },\n\n /**\n * A `nameValue` block is like:\n * ```\n * marker name value\n * ```\n */\n nameValue: {\n planLayout: function (fragment: TooltipMarkupNameValueBlock) {\n fragment.__gapLevelBetweenSubBlocks = 0;\n },\n\n build(ctx, fragment: TooltipMarkupNameValueBlock, topMarginForOuterGap, toolTipTextStyle) {\n const renderMode = ctx.renderMode;\n const noName = fragment.noName;\n const noValue = fragment.noValue;\n const noMarker = !fragment.markerType;\n const name = fragment.name;\n const value = fragment.value;\n const useUTC = ctx.useUTC;\n\n if (noName && noValue) {\n return;\n }\n\n const markerStr = noMarker\n ? ''\n : ctx.markupStyleCreator.makeTooltipMarker(\n fragment.markerType,\n fragment.markerColor || '#333',\n renderMode\n );\n const readableName = noName\n ? ''\n : makeValueReadable(name, 'ordinal', useUTC);\n const valueTypeOption = fragment.valueType;\n const readableValueList = noValue\n ? []\n : (isArray(value)\n ? map(value, (val, idx) => makeValueReadable(\n val, isArray(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC\n ))\n : [makeValueReadable(\n value, isArray(valueTypeOption) ? valueTypeOption[0] : valueTypeOption, useUTC\n )]\n );\n const valueAlignRight = !noMarker || !noName;\n // It little weird if only value next to marker but far from marker.\n const valueCloseToMarker = !noMarker && noName;\n\n const {nameStyle, valueStyle} = getTooltipTextStyle(toolTipTextStyle, renderMode);\n\n return renderMode === 'richText'\n ? (\n (noMarker ? '' : markerStr)\n + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle as RichTextStyle))\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n + (noValue ? '' : wrapInlineValueRichText(\n ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle as RichTextStyle\n ))\n )\n : wrapBlockHTML(\n (noMarker ? '' : markerStr)\n + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle as string))\n + (noValue ? '' : wrapInlineValueHTML(\n readableValueList, valueAlignRight, valueCloseToMarker, valueStyle as string\n )),\n topMarginForOuterGap\n );\n }\n }\n};\n\n\nfunction buildSubBlocks(\n ctx: TooltipMarkupBuildContext,\n fragment: TooltipMarkupSection,\n topMarginForOuterGap: number,\n tooltipTextStyle: TooltipOption['textStyle']\n): MarkupText {\n const subMarkupTextList: string[] = [];\n let subBlocks = fragment.blocks || [];\n assert(!subBlocks || isArray(subBlocks));\n subBlocks = subBlocks || [];\n\n const orderMode = ctx.orderMode;\n if (fragment.sortBlocks && orderMode) {\n subBlocks = subBlocks.slice();\n const orderMap = { valueAsc: 'asc', valueDesc: 'desc' } as const;\n if (hasOwn(orderMap, orderMode)) {\n const comparator = new SortOrderComparator(orderMap[orderMode as 'valueAsc' | 'valueDesc'], null);\n subBlocks.sort((a, b) => comparator.evaluate(a.sortParam, b.sortParam));\n }\n // FIXME 'seriesDesc' necessary?\n else if (orderMode === 'seriesDesc') {\n subBlocks.reverse();\n }\n }\n\n const gaps = getGap(fragment);\n each(subBlocks, function (subBlock, idx) {\n const subMarkupText = getBuilder(subBlock).build(\n ctx,\n subBlock,\n idx > 0 ? gaps.html : 0,\n tooltipTextStyle\n );\n subMarkupText != null && subMarkupTextList.push(subMarkupText);\n });\n\n if (!subMarkupTextList.length) {\n return;\n }\n\n return ctx.renderMode === 'richText'\n ? subMarkupTextList.join(gaps.richText)\n : wrapBlockHTML(\n subMarkupTextList.join(''),\n topMarginForOuterGap\n );\n}\n\ninterface TooltipMarkupBuildContext {\n useUTC: boolean;\n renderMode: TooltipRenderMode;\n orderMode: TooltipOrderMode;\n markupStyleCreator: TooltipMarkupStyleCreator;\n}\n\n/**\n * @return markupText. null/undefined means no content.\n */\nexport function buildTooltipMarkup(\n fragment: TooltipMarkupBlockFragment,\n markupStyleCreator: TooltipMarkupStyleCreator,\n renderMode: TooltipRenderMode,\n orderMode: TooltipOrderMode,\n useUTC: boolean,\n toolTipTextStyle: TooltipOption['textStyle']\n): MarkupText {\n if (!fragment) {\n return;\n }\n\n const builder = getBuilder(fragment);\n builder.planLayout(fragment);\n const ctx: TooltipMarkupBuildContext = {\n useUTC: useUTC,\n renderMode: renderMode,\n orderMode: orderMode,\n markupStyleCreator: markupStyleCreator\n };\n return builder.build(ctx, fragment, 0, toolTipTextStyle);\n}\n\n\nfunction getGap(fragment: TooltipMarkupBlock): {\n html: number;\n richText: string\n} {\n const gapLevelBetweenSubBlocks = fragment.__gapLevelBetweenSubBlocks;\n return {\n html: HTML_GAPS[gapLevelBetweenSubBlocks],\n richText: RICH_TEXT_GAPS[gapLevelBetweenSubBlocks]\n };\n}\n\nfunction wrapBlockHTML(\n encodedContent: string,\n topGap: number\n): string {\n const clearfix = '
';\n const marginCSS = `margin: ${topGap}px 0 0`;\n return `
`\n + encodedContent + clearfix\n + '
';\n}\n\nfunction wrapInlineNameHTML(\n name: string,\n leftHasMarker: boolean,\n style: string\n): string {\n const marginCss = leftHasMarker ? 'margin-left:2px' : '';\n return ``\n + encodeHTML(name)\n + '';\n}\n\nfunction wrapInlineValueHTML(\n valueList: string[],\n alignRight: boolean,\n valueCloseToMarker: boolean,\n style: string\n): string {\n // Do not too close to marker, considering there are multiple values separated by spaces.\n const paddingStr = valueCloseToMarker ? '10px' : '20px';\n const alignCSS = alignRight ? `float:right;margin-left:${paddingStr}` : '';\n return (\n ``\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n + map(valueList, value => encodeHTML(value)).join('  ')\n + ''\n );\n}\n\nfunction wrapInlineNameRichText(ctx: TooltipMarkupBuildContext, name: string, style: RichTextStyle): string {\n return ctx.markupStyleCreator.wrapRichTextStyle(name, style as Dictionary);\n}\n\nfunction wrapInlineValueRichText(\n ctx: TooltipMarkupBuildContext,\n valueList: string[],\n alignRight: boolean,\n valueCloseToMarker: boolean,\n style: RichTextStyle\n): string {\n const styles: Dictionary[] = [style];\n const paddingLeft = valueCloseToMarker ? 10 : 20;\n alignRight && styles.push({ padding: [0, 0, 0, paddingLeft], align: 'right' });\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n return ctx.markupStyleCreator.wrapRichTextStyle(valueList.join(' '), styles);\n}\n\n\nexport function retrieveVisualColorForTooltipMarker(\n series: SeriesModel,\n dataIndex: number\n): ColorString {\n const style = series.getData().getItemVisual(dataIndex, 'style');\n const color = style[series.visualDrawType];\n return convertToColorString(color);\n}\n\nexport function getPaddingFromTooltipModel(\n model: Model,\n renderMode: TooltipRenderMode\n): number | number[] {\n const padding = model.get('padding');\n return padding != null\n ? padding\n // We give slightly different to look pretty.\n : renderMode === 'richText'\n ? [8, 10]\n : 10;\n}\n\n/**\n * The major feature is generate styles for `renderMode: 'richText'`.\n * But it also serves `renderMode: 'html'` to provide\n * \"renderMode-independent\" API.\n */\nexport class TooltipMarkupStyleCreator {\n readonly richTextStyles: Dictionary> = {};\n\n // Notice that \"generate a style name\" usuall happens repeatly when mouse moving and\n // displaying a tooltip. So we put the `_nextStyleNameId` as a member of each creator\n // rather than static shared by all creators (which will cause it increase to fast).\n private _nextStyleNameId: number = getRandomIdBase();\n\n private _generateStyleName() {\n return '__EC_aUTo_' + this._nextStyleNameId++;\n }\n\n makeTooltipMarker(\n markerType: TooltipMarkerType,\n colorStr: ColorString,\n renderMode: TooltipRenderMode\n ): string {\n const markerId = renderMode === 'richText'\n ? this._generateStyleName()\n : null;\n const marker = getTooltipMarker({\n color: colorStr,\n type: markerType,\n renderMode,\n markerId: markerId\n });\n if (isString(marker)) {\n return marker;\n }\n else {\n if (__DEV__) {\n assert(markerId);\n }\n this.richTextStyles[markerId] = marker.style;\n return marker.content;\n }\n }\n\n /**\n * @usage\n * ```ts\n * const styledText = markupStyleCreator.wrapRichTextStyle([\n * // The styles will be auto merged.\n * {\n * fontSize: 12,\n * color: 'blue'\n * },\n * {\n * padding: 20\n * }\n * ]);\n * ```\n */\n wrapRichTextStyle(text: string, styles: Dictionary | Dictionary[]): string {\n const finalStl = {};\n if (isArray(styles)) {\n each(styles, stl => extend(finalStl, stl));\n }\n else {\n extend(finalStl, styles);\n }\n const styleName = this._generateStyleName();\n this.richTextStyles[styleName] = finalStl;\n return `{${styleName}|${text}}`;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport { trim, isArray, each, reduce } from 'zrender/src/core/util';\nimport { DimensionName, DimensionType, ColorString } from '../../util/types';\nimport {\n retrieveVisualColorForTooltipMarker,\n TooltipMarkupBlockFragment,\n createTooltipMarkup,\n TooltipMarkupSection\n} from './tooltipMarkup';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isNameSpecified } from '../../util/model';\n\n\nexport function defaultSeriesFormatTooltip(opt: {\n series: SeriesModel;\n dataIndex: number;\n // `multipleSeries` means multiple series displayed in one tooltip,\n // and this method only return the part of one series.\n multipleSeries: boolean;\n}): TooltipMarkupSection {\n const series = opt.series;\n const dataIndex = opt.dataIndex;\n const multipleSeries = opt.multipleSeries;\n\n const data = series.getData();\n const tooltipDims = data.mapDimensionsAll('defaultedTooltip');\n const tooltipDimLen = tooltipDims.length;\n const value = series.getRawValue(dataIndex) as any;\n const isValueArr = isArray(value);\n const markerColor = retrieveVisualColorForTooltipMarker(series, dataIndex);\n\n // Complicated rule for pretty tooltip.\n let inlineValue;\n let inlineValueType: DimensionType | DimensionType[];\n let subBlocks: TooltipMarkupBlockFragment[];\n let sortParam: unknown;\n if (tooltipDimLen > 1 || (isValueArr && !tooltipDimLen)) {\n const formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor);\n inlineValue = formatArrResult.inlineValues;\n inlineValueType = formatArrResult.inlineValueTypes;\n subBlocks = formatArrResult.blocks;\n // Only support tooltip sort by the first inline value. It's enough in most cases.\n sortParam = formatArrResult.inlineValues[0];\n }\n else if (tooltipDimLen) {\n const dimInfo = data.getDimensionInfo(tooltipDims[0]);\n sortParam = inlineValue = retrieveRawValue(data, dataIndex, tooltipDims[0]);\n inlineValueType = dimInfo.type;\n }\n else {\n sortParam = inlineValue = isValueArr ? value[0] : value;\n }\n\n // Do not show generated series name. It might not be readable.\n const seriesNameSpecified = isNameSpecified(series);\n const seriesName = seriesNameSpecified && series.name || '';\n const itemName = data.getName(dataIndex);\n const inlineName = multipleSeries ? seriesName : itemName;\n\n return createTooltipMarkup('section', {\n header: seriesName,\n // When series name not specified, do not show a header line with only '-'.\n // This case alway happen in tooltip.trigger: 'item'.\n noHeader: multipleSeries || !seriesNameSpecified,\n sortParam: sortParam,\n blocks: [\n createTooltipMarkup('nameValue', {\n markerType: 'item',\n markerColor: markerColor,\n // Do not mix display seriesName and itemName in one tooltip,\n // which might confuses users.\n name: inlineName,\n // name dimension might be auto assigned, where the name might\n // be not readable. So we check trim here.\n noName: !trim(inlineName),\n value: inlineValue,\n valueType: inlineValueType\n })\n ].concat(subBlocks || [] as any)\n });\n}\n\nfunction formatTooltipArrayValue(\n value: unknown[],\n series: SeriesModel,\n dataIndex: number,\n tooltipDims: DimensionName[],\n colorStr: ColorString\n): {\n inlineValues: unknown[];\n inlineValueTypes: DimensionType[];\n blocks: TooltipMarkupBlockFragment[];\n} {\n // check: category-no-encode-has-axis-data in dataset.html\n const data = series.getData();\n const isValueMultipleLine = reduce(value, function (isValueMultipleLine, val, idx) {\n const dimItem = data.getDimensionInfo(idx);\n return isValueMultipleLine = isValueMultipleLine\n || (dimItem && dimItem.tooltip !== false && dimItem.displayName != null);\n }, false);\n\n const inlineValues: unknown[] = [];\n const inlineValueTypes: DimensionType[] = [];\n const blocks: TooltipMarkupBlockFragment[] = [];\n\n tooltipDims.length\n ? each(tooltipDims, function (dim) {\n setEachItem(retrieveRawValue(data, dataIndex, dim), dim);\n })\n // By default, all dims is used on tooltip.\n : each(value, setEachItem);\n\n function setEachItem(val: unknown, dim: DimensionName | number): void {\n const dimInfo = data.getDimensionInfo(dim);\n // If `dimInfo.tooltip` is not set, show tooltip.\n if (!dimInfo || dimInfo.otherDims.tooltip === false) {\n return;\n }\n if (isValueMultipleLine) {\n blocks.push(createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: colorStr,\n name: dimInfo.displayName,\n value: val,\n valueType: dimInfo.type\n }));\n }\n else {\n inlineValues.push(val);\n inlineValueTypes.push(dimInfo.type);\n }\n }\n\n return { inlineValues, inlineValueTypes, blocks };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport * as modelUtil from '../util/model';\nimport {\n DataHost, DimensionName, StageHandlerProgressParams,\n SeriesOption, ZRColor, BoxLayoutOptionMixin,\n ScaleDataValue,\n Dictionary,\n OptionDataItemObject,\n SeriesDataType,\n SeriesEncodeOptionMixin,\n OptionEncodeValue,\n ColorBy\n} from '../util/types';\nimport ComponentModel, { ComponentModelConstructor } from './Component';\nimport {PaletteMixin} from './mixin/palette';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport Model from '../model/Model';\nimport {\n getLayoutParams,\n mergeLayoutParam,\n fetchLayoutMode\n} from '../util/layout';\nimport {createTask} from '../core/task';\nimport GlobalModel from './Global';\nimport { CoordinateSystem } from '../coord/CoordinateSystem';\nimport { ExtendableConstructor, mountExtend, Constructor } from '../util/clazz';\nimport { PipelineContext, SeriesTaskContext, GeneralTask, OverallTask, SeriesTask } from '../core/Scheduler';\nimport LegendVisualProvider from '../visual/LegendVisualProvider';\nimport SeriesData from '../data/SeriesData';\nimport Axis from '../coord/Axis';\nimport type { BrushCommonSelectorsForSeries, BrushSelectableArea } from '../component/brush/selector';\nimport makeStyleMapper from './mixin/makeStyleMapper';\nimport { SourceManager } from '../data/helper/sourceManager';\nimport { Source } from '../data/Source';\nimport { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatTooltip';\nimport {ECSymbol} from '../util/symbol';\nimport {Group} from '../util/graphic';\nimport {LegendIconParams} from '../component/legend/LegendModel';\n\nconst inner = modelUtil.makeInner<{\n data: SeriesData\n dataBeforeProcessed: SeriesData\n sourceManager: SourceManager\n}, SeriesModel>();\n\nfunction getSelectionKey(data: SeriesData, dataIndex: number): string {\n return data.getName(dataIndex) || data.getId(dataIndex);\n}\n\nexport const SERIES_UNIVERSAL_TRANSITION_PROP = '__universalTransitionEnabled';\n\ninterface SeriesModel {\n /**\n * Convinient for override in extended class.\n * Implement it if needed.\n */\n preventIncremental(): boolean;\n /**\n * See tooltip.\n * Implement it if needed.\n * @return Point of tooltip. null/undefined can be returned.\n */\n getTooltipPosition(dataIndex: number): number[];\n\n /**\n * Get data indices for show tooltip content. See tooltip.\n * Implement it if needed.\n */\n getAxisTooltipData(\n dim: DimensionName[],\n value: ScaleDataValue,\n baseAxis: Axis\n ): {\n dataIndices: number[],\n nestestValue: any\n };\n\n /**\n * Get position for marker\n */\n getMarkerPosition(value: ScaleDataValue[]): number[];\n\n /**\n * Get legend icon symbol according to each series type\n */\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group;\n\n /**\n * See `component/brush/selector.js`\n * Defined the brush selector for this series.\n */\n brushSelector(\n dataIndex: number,\n data: SeriesData,\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n\n enableAriaDecal(): void;\n}\n\nclass SeriesModel extends ComponentModel {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n // @readonly\n type: string;\n\n // Should be implenented in subclass.\n defaultOption: SeriesOption;\n\n // @readonly\n seriesIndex: number;\n\n // coodinateSystem will be injected in the echarts/CoordinateSystem\n coordinateSystem: CoordinateSystem;\n\n // Injected outside\n dataTask: SeriesTask;\n // Injected outside\n pipelineContext: PipelineContext;\n\n // ---------------------------------------\n // Props to tell visual/style.ts about how to do visual encoding.\n // ---------------------------------------\n // legend visual provider to the legend component\n legendVisualProvider: LegendVisualProvider;\n\n // Access path of style for visual\n visualStyleAccessPath: string;\n // Which property is treated as main color. Which can get from the palette.\n visualDrawType: 'fill' | 'stroke';\n // Style mapping rules.\n visualStyleMapper: ReturnType;\n // If ignore style on data. It's only for global visual/style.ts\n // Enabled when series it self will handle it.\n ignoreStyleOnData: boolean;\n // If do symbol visual encoding\n hasSymbolVisual: boolean;\n // Default symbol type.\n defaultSymbol: string;\n // Symbol provide to legend.\n legendIcon: string;\n\n // It will be set temporary when cross series transition setting is from setOption.\n // TODO if deprecate further?\n [SERIES_UNIVERSAL_TRANSITION_PROP]: boolean;\n\n // ---------------------------------------\n // Props about data selection\n // ---------------------------------------\n private _selectedDataIndicesMap: Dictionary = {};\n\n readonly preventUsingHoverLayer: boolean;\n\n static protoInitialize = (function () {\n const proto = SeriesModel.prototype;\n proto.type = 'series.__base__';\n proto.seriesIndex = 0;\n proto.ignoreStyleOnData = false;\n proto.hasSymbolVisual = false;\n proto.defaultSymbol = 'circle';\n // Make sure the values can be accessed!\n proto.visualStyleAccessPath = 'itemStyle';\n proto.visualDrawType = 'fill';\n })();\n\n\n init(option: Opt, parentModel: Model, ecModel: GlobalModel) {\n\n this.seriesIndex = this.componentIndex;\n\n this.dataTask = createTask({\n count: dataTaskCount,\n reset: dataTaskReset\n });\n this.dataTask.context = {model: this};\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n const sourceManager = inner(this).sourceManager = new SourceManager(this);\n sourceManager.prepareSource();\n\n const data = this.getInitialData(option, ecModel);\n wrapData(data, this);\n this.dataTask.context.data = data;\n\n if (__DEV__) {\n zrUtil.assert(data, 'getInitialData returned invalid data.');\n }\n\n inner(this).dataBeforeProcessed = data;\n\n // If we reverse the order (make data firstly, and then make\n // dataBeforeProcessed by cloneShallow), cloneShallow will\n // cause data.graph.data !== data when using\n // module:echarts/data/Graph or module:echarts/data/Tree.\n // See module:echarts/data/helper/linkSeriesData\n\n // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model\n // init or merge stage, because the data can be restored. So we do not `restoreData`\n // and `setData` here, which forbids calling `seriesModel.getData()` in this stage.\n // Call `seriesModel.getRawData()` instead.\n // this.restoreData();\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n }\n\n /**\n * Util for merge default and theme to option\n */\n mergeDefaultAndTheme(option: Opt, ecModel: GlobalModel): void {\n const layoutMode = fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n // Backward compat: using subType on theme.\n // But if name duplicate between series subType\n // (for example: parallel) add component mainType,\n // add suffix 'Series'.\n let themeSubType = this.subType;\n if ((ComponentModel as ComponentModelConstructor).hasClass(themeSubType)) {\n themeSubType += 'Series';\n }\n zrUtil.merge(\n option,\n ecModel.getTheme().get(this.subType)\n );\n zrUtil.merge(option, this.getDefaultOption());\n\n // Default label emphasis `show`\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n\n this.fillDataTextStyle(option.data as ArrayLike);\n\n if (layoutMode) {\n mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n mergeOption(newSeriesOption: Opt, ecModel: GlobalModel) {\n // this.settingTask.dirty();\n\n newSeriesOption = zrUtil.merge(this.option, newSeriesOption, true);\n this.fillDataTextStyle(newSeriesOption.data as ArrayLike);\n\n const layoutMode = fetchLayoutMode(this);\n if (layoutMode) {\n mergeLayoutParam(\n this.option as BoxLayoutOptionMixin,\n newSeriesOption as BoxLayoutOptionMixin,\n layoutMode\n );\n }\n\n const sourceManager = inner(this).sourceManager;\n sourceManager.dirty();\n sourceManager.prepareSource();\n\n const data = this.getInitialData(newSeriesOption, ecModel);\n wrapData(data, this);\n this.dataTask.dirty();\n this.dataTask.context.data = data;\n\n inner(this).dataBeforeProcessed = data;\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n }\n\n fillDataTextStyle(data: ArrayLike): void {\n // Default data label emphasis `show`\n // FIXME Tree structure data ?\n // FIXME Performance ?\n if (data && !zrUtil.isTypedArray(data)) {\n const props = ['show'];\n for (let i = 0; i < data.length; i++) {\n if (data[i] && data[i].label) {\n modelUtil.defaultEmphasis(data[i], 'label', props);\n }\n }\n }\n }\n\n /**\n * Init a data structure from data related option in series\n * Must be overriden.\n */\n getInitialData(option: Opt, ecModel: GlobalModel): SeriesData {\n return;\n }\n\n /**\n * Append data to list\n */\n appendData(params: {data: ArrayLike}): void {\n // FIXME ???\n // (1) If data from dataset, forbidden append.\n // (2) support append data of dataset.\n const data = this.getRawData();\n data.appendData(params.data);\n }\n\n /**\n * Consider some method like `filter`, `map` need make new data,\n * We should make sure that `seriesModel.getData()` get correct\n * data in the stream procedure. So we fetch data from upstream\n * each time `task.perform` called.\n */\n getData(dataType?: SeriesDataType): SeriesData {\n const task = getCurrentTask(this);\n if (task) {\n const data = task.context.data;\n return (dataType == null ? data : data.getLinkedData(dataType)) as SeriesData;\n }\n else {\n // When series is not alive (that may happen when click toolbox\n // restore or setOption with not merge mode), series data may\n // be still need to judge animation or something when graphic\n // elements want to know whether fade out.\n return inner(this).data as SeriesData;\n }\n }\n\n getAllData(): ({\n data: SeriesData,\n type?: SeriesDataType\n })[] {\n const mainData = this.getData();\n return (mainData && mainData.getLinkedDataAll)\n ? mainData.getLinkedDataAll()\n : [{ data: mainData }];\n }\n\n setData(data: SeriesData): void {\n const task = getCurrentTask(this);\n if (task) {\n const context = task.context;\n // Consider case: filter, data sample.\n // FIXME:TS never used, so comment it\n // if (context.data !== data && task.modifyOutputEnd) {\n // task.setOutputEnd(data.count());\n // }\n context.outputData = data;\n // Caution: setData should update context.data,\n // Because getData may be called multiply in a\n // single stage and expect to get the data just\n // set. (For example, AxisProxy, x y both call\n // getData and setDate sequentially).\n // So the context.data should be fetched from\n // upstream each time when a stage starts to be\n // performed.\n if (task !== this.dataTask) {\n context.data = data;\n }\n }\n inner(this).data = data;\n }\n\n getEncode() {\n const encode = (this as Model).get('encode', true);\n if (encode) {\n return zrUtil.createHashMap(encode);\n }\n }\n\n getSourceManager(): SourceManager {\n return inner(this).sourceManager;\n }\n\n getSource(): Source {\n return this.getSourceManager().getSource();\n }\n\n /**\n * Get data before processed\n */\n getRawData(): SeriesData {\n return inner(this).dataBeforeProcessed;\n }\n\n getColorBy(): ColorBy {\n const colorBy = this.get('colorBy');\n return colorBy || 'series';\n }\n\n isColorBySeries(): boolean {\n return this.getColorBy() === 'series';\n }\n\n /**\n * Get base axis if has coordinate system and has axis.\n * By default use coordSys.getBaseAxis();\n * Can be overrided for some chart.\n * @return {type} description\n */\n getBaseAxis(): Axis {\n const coordSys = this.coordinateSystem;\n // @ts-ignore\n return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();\n }\n\n /**\n * Default tooltip formatter\n *\n * @param dataIndex\n * @param multipleSeries\n * @param dataType\n * @param renderMode valid values: 'html'(by default) and 'richText'.\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n * @return formatted tooltip with `html` and `markers`\n * Notice: The override method can also return string\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: SeriesDataType\n ): ReturnType {\n return defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n }\n\n isAnimationEnabled(): boolean {\n if (env.node) {\n return false;\n }\n let animationEnabled = this.getShallow('animation');\n if (animationEnabled) {\n if (this.getData().count() > this.getShallow('animationThreshold')) {\n animationEnabled = false;\n }\n }\n return !!animationEnabled;\n }\n\n restoreData() {\n this.dataTask.dirty();\n }\n\n getColorFromPalette(name: string, scope: any, requestColorNum?: number): ZRColor {\n const ecModel = this.ecModel;\n // PENDING\n let color = PaletteMixin.prototype.getColorFromPalette.call(this, name, scope, requestColorNum);\n if (!color) {\n color = ecModel.getColorFromPalette(name, scope, requestColorNum);\n }\n return color;\n }\n\n /**\n * Use `data.mapDimensionsAll(coordDim)` instead.\n * @deprecated\n */\n coordDimToDataDim(coordDim: DimensionName): DimensionName[] {\n return this.getRawData().mapDimensionsAll(coordDim);\n }\n\n /**\n * Get progressive rendering count each step\n */\n getProgressive(): number | false {\n return this.get('progressive');\n }\n\n /**\n * Get progressive rendering count each step\n */\n getProgressiveThreshold(): number {\n return this.get('progressiveThreshold');\n }\n\n // PENGING If selectedMode is null ?\n select(innerDataIndices: number[], dataType?: SeriesDataType): void {\n this._innerSelect(this.getData(dataType), innerDataIndices);\n }\n\n unselect(innerDataIndices: number[], dataType?: SeriesDataType): void {\n const selectedMap = this.option.selectedMap;\n if (!selectedMap) {\n return;\n }\n const data = this.getData(dataType);\n for (let i = 0; i < innerDataIndices.length; i++) {\n const dataIndex = innerDataIndices[i];\n const nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = false;\n this._selectedDataIndicesMap[nameOrId] = -1;\n }\n }\n\n toggleSelect(innerDataIndices: number[], dataType?: SeriesDataType): void {\n const tmpArr: number[] = [];\n for (let i = 0; i < innerDataIndices.length; i++) {\n tmpArr[0] = innerDataIndices[i];\n this.isSelected(innerDataIndices[i], dataType)\n ? this.unselect(tmpArr, dataType)\n : this.select(tmpArr, dataType);\n }\n }\n\n getSelectedDataIndices(): number[] {\n const selectedDataIndicesMap = this._selectedDataIndicesMap;\n const nameOrIds = zrUtil.keys(selectedDataIndicesMap);\n const dataIndices = [];\n for (let i = 0; i < nameOrIds.length; i++) {\n const dataIndex = selectedDataIndicesMap[nameOrIds[i]];\n if (dataIndex >= 0) {\n dataIndices.push(dataIndex);\n }\n }\n return dataIndices;\n }\n\n isSelected(dataIndex: number, dataType?: SeriesDataType): boolean {\n const selectedMap = this.option.selectedMap;\n if (!selectedMap) {\n return false;\n }\n\n const data = this.getData(dataType);\n const nameOrId = getSelectionKey(data, dataIndex);\n return selectedMap[nameOrId] || false;\n }\n\n isUniversalTransitionEnabled(): boolean {\n if (this[SERIES_UNIVERSAL_TRANSITION_PROP]) {\n return true;\n }\n\n const universalTransitionOpt = this.option.universalTransition;\n // Quick reject\n if (!universalTransitionOpt) {\n return false;\n }\n\n if (universalTransitionOpt === true) {\n return true;\n }\n\n // Can be simply 'universalTransition: true'\n return universalTransitionOpt && universalTransitionOpt.enabled;\n }\n\n private _innerSelect(data: SeriesData, innerDataIndices: number[]) {\n const selectedMode = this.option.selectedMode;\n const len = innerDataIndices.length;\n if (!selectedMode || !len) {\n return;\n }\n\n if (selectedMode === 'multiple') {\n const selectedMap = this.option.selectedMap || (this.option.selectedMap = {});\n for (let i = 0; i < len; i++) {\n const dataIndex = innerDataIndices[i];\n // TODO diffrent types of data share same object.\n const nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = true;\n this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex);\n }\n }\n else if (selectedMode === 'single' || selectedMode === true) {\n const lastDataIndex = innerDataIndices[len - 1];\n const nameOrId = getSelectionKey(data, lastDataIndex);\n this.option.selectedMap = {\n [nameOrId]: true\n };\n this._selectedDataIndicesMap = {\n [nameOrId]: data.getRawIndex(lastDataIndex)\n };\n }\n }\n\n private _initSelectedMapFromData(data: SeriesData) {\n // Ignore select info in data if selectedMap exists.\n // NOTE It's only for legacy usage. edge data is not supported.\n if (this.option.selectedMap) {\n return;\n }\n\n const dataIndices: number[] = [];\n if (data.hasItemOption) {\n data.each(function (idx) {\n const rawItem = data.getRawDataItem(idx);\n if (rawItem && (rawItem as OptionDataItemObject).selected) {\n dataIndices.push(idx);\n }\n });\n }\n\n if (dataIndices.length > 0) {\n this._innerSelect(data, dataIndices);\n }\n }\n\n // /**\n // * @see {module:echarts/stream/Scheduler}\n // */\n // abstract pipeTask: null\n\n static registerClass(clz: Constructor): Constructor {\n return ComponentModel.registerClass(clz);\n }\n}\n\ninterface SeriesModel\n extends DataFormatMixin, PaletteMixin, DataHost {\n\n // methods that can be implemented optionally to provide to components\n /**\n * Get dimension to render shadow in dataZoom component\n */\n getShadowDim?(): string\n}\nzrUtil.mixin(SeriesModel, DataFormatMixin);\nzrUtil.mixin(SeriesModel, PaletteMixin);\n\nexport type SeriesModelConstructor = typeof SeriesModel & ExtendableConstructor;\nmountExtend(SeriesModel, ComponentModel as SeriesModelConstructor);\n\n\n/**\n * MUST be called after `prepareSource` called\n * Here we need to make auto series, especially for auto legend. But we\n * do not modify series.name in option to avoid side effects.\n */\nfunction autoSeriesName(seriesModel: SeriesModel): void {\n // User specified name has higher priority, otherwise it may cause\n // series can not be queried unexpectedly.\n const name = seriesModel.name;\n if (!modelUtil.isNameSpecified(seriesModel)) {\n seriesModel.name = getSeriesAutoName(seriesModel) || name;\n }\n}\n\nfunction getSeriesAutoName(seriesModel: SeriesModel): string {\n const data = seriesModel.getRawData();\n const dataDims = data.mapDimensionsAll('seriesName');\n const nameArr: string[] = [];\n zrUtil.each(dataDims, function (dataDim) {\n const dimInfo = data.getDimensionInfo(dataDim);\n dimInfo.displayName && nameArr.push(dimInfo.displayName);\n });\n return nameArr.join(' ');\n}\n\nfunction dataTaskCount(context: SeriesTaskContext): number {\n return context.model.getRawData().count();\n}\n\nfunction dataTaskReset(context: SeriesTaskContext) {\n const seriesModel = context.model;\n seriesModel.setData(seriesModel.getRawData().cloneShallow());\n return dataTaskProgress;\n}\n\nfunction dataTaskProgress(param: StageHandlerProgressParams, context: SeriesTaskContext): void {\n // Avoid repead cloneShallow when data just created in reset.\n if (context.outputData && param.end > context.outputData.count()) {\n context.model.getRawData().cloneShallow(context.outputData);\n }\n}\n\n// TODO refactor\nfunction wrapData(data: SeriesData, seriesModel: SeriesModel): void {\n zrUtil.each([...data.CHANGABLE_METHODS, ...data.DOWNSAMPLE_METHODS], function (methodName) {\n data.wrapMethod(methodName as any, zrUtil.curry(onDataChange, seriesModel));\n });\n}\n\nfunction onDataChange(this: SeriesData, seriesModel: SeriesModel, newList: SeriesData): SeriesData {\n const task = getCurrentTask(seriesModel);\n if (task) {\n // Consider case: filter, selectRange\n task.setOutputEnd((newList || this).count());\n }\n return newList;\n}\n\nfunction getCurrentTask(seriesModel: SeriesModel): GeneralTask {\n const scheduler = (seriesModel.ecModel || {}).scheduler;\n const pipeline = scheduler && scheduler.getPipeline(seriesModel.uid);\n\n if (pipeline) {\n // When pipline finished, the currrentTask keep the last\n // task (renderTask).\n let task = pipeline.currentTask;\n if (task) {\n const agentStubMap = (task as OverallTask).agentStubMap;\n if (agentStubMap) {\n task = agentStubMap.get(seriesModel.uid);\n }\n }\n return task;\n }\n}\n\n\nexport default SeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Group from 'zrender/src/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport ComponentModel from '../model/Component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {Payload, ViewRootGroup, ECActionEvent, EventQueryItem, ECElementEvent} from '../util/types';\nimport Element from 'zrender/src/Element';\nimport SeriesModel from '../model/Series';\n\ninterface ComponentView {\n /**\n * Implement it if needed.\n */\n updateTransform?(\n model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload\n ): void | {update: true};\n\n /**\n * Pass only when return `true`.\n * Implement it if needed.\n */\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent | ECElementEvent\n ): boolean;\n\n /**\n * Find dispatchers for highlight/downplay by name.\n * If this methods provided, hover link (within the same name) is enabled in component.\n * That is, in component, a name can correspond to multiple dispatchers.\n * Those dispatchers can have no common ancestor.\n * The highlight/downplay state change will be applied on the\n * dispatchers and their descendents.\n *\n * @return Must return an array but not null/undefined.\n */\n findHighDownDispatchers?(\n name: string\n ): Element[];\n\n focusBlurEnabled?: boolean;\n}\n\nclass ComponentView {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n readonly group: ViewRootGroup;\n\n readonly uid: string;\n\n // ----------------------\n // Injectable properties\n // ----------------------\n __model: ComponentModel;\n __alive: boolean;\n __id: string;\n\n constructor() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewComponent');\n }\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n render(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {}\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n updateView(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n updateLayout(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n updateVisual(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n /**\n * Hook for blur target series.\n * Can be used in marker for blur the markers\n */\n blurSeries(seriesModels: SeriesModel[], ecModel: GlobalModel): void {\n // Do nothing;\n }\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n};\n\n\nexport type ComponentViewConstructor = typeof ComponentView\n & clazzUtil.ExtendableConstructor\n & clazzUtil.ClassManager;\n\nclazzUtil.enableClassExtend(ComponentView as ComponentViewConstructor);\nclazzUtil.enableClassManagement(ComponentView as ComponentViewConstructor);\n\nexport default ComponentView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {makeInner} from '../../util/model';\nimport SeriesModel from '../../model/Series';\nimport { StageHandlerPlanReturn } from '../../util/types';\n\n/**\n * @return {string} If large mode changed, return string 'reset';\n */\nexport default function createRenderPlanner() {\n const inner = makeInner<{\n large: boolean\n progressiveRender: boolean\n }, SeriesModel>();\n\n return function (seriesModel: SeriesModel): StageHandlerPlanReturn {\n const fields = inner(seriesModel);\n const pipelineContext = seriesModel.pipelineContext;\n\n const originalLarge = !!fields.large;\n const originalProgressive = !!fields.progressiveRender;\n\n // FIXME: if the planner works on a filtered series, `pipelineContext` does not\n // exists. See #11611 . Probably we need to modify this structure, see the comment\n // on `performRawSeries` in `Schedular.js`.\n const large = fields.large = !!(pipelineContext && pipelineContext.large);\n const progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender);\n\n return (\n !!((originalLarge !== large) || (originalProgressive !== progressive)) && 'reset'\n ) as StageHandlerPlanReturn;\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each} from 'zrender/src/core/util';\nimport Group from 'zrender/src/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport * as modelUtil from '../util/model';\nimport { enterEmphasis, leaveEmphasis, getHighlightDigit } from '../util/states';\nimport {createTask, TaskResetCallbackReturn} from '../core/task';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport Element from 'zrender/src/Element';\nimport {\n Payload, ViewRootGroup, ECActionEvent, EventQueryItem,\n StageHandlerPlanReturn, DisplayState, StageHandlerProgressParams, ECElementEvent\n} from '../util/types';\nimport { SeriesTaskContext, SeriesTask } from '../core/Scheduler';\nimport SeriesData from '../data/SeriesData';\n\nconst inner = modelUtil.makeInner<{\n updateMethod: keyof ChartView\n}, Payload>();\nconst renderPlanner = createRenderPlanner();\n\ninterface ChartView {\n /**\n * Rendering preparation in progressive mode.\n * Implement it if needed.\n */\n incrementalPrepareRender(\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void;\n\n /**\n * Render in progressive mode.\n * Implement it if needed.\n * @param params See taskParams in `stream/task.js`\n */\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void;\n\n /**\n * Update transform directly.\n * Implement it if needed.\n */\n updateTransform(\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void | {update: true};\n\n /**\n * The view contains the given point.\n * Implement it if needed.\n */\n containPoint(\n point: number[], seriesModel: SeriesModel\n ): boolean;\n\n /**\n * Pass only when return `true`.\n * Implement it if needed.\n */\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent | ECElementEvent\n ): boolean;\n}\nclass ChartView {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n // @readonly\n type: string;\n\n readonly group: ViewRootGroup;\n\n readonly uid: string;\n\n readonly renderTask: SeriesTask;\n\n /**\n * Ignore label line update in global stage. Will handle it in chart itself.\n * Used in pie / funnel\n */\n ignoreLabelLineUpdate: boolean;\n\n // ----------------------\n // Injectable properties\n // ----------------------\n __alive: boolean;\n __model: SeriesModel;\n __id: string;\n\n static protoInitialize = (function () {\n const proto = ChartView.prototype;\n proto.type = 'chart';\n })();\n\n\n constructor() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewChart');\n\n this.renderTask = createTask({\n plan: renderTaskPlan,\n reset: renderTaskReset\n });\n this.renderTask.context = {view: this} as SeriesTaskContext;\n }\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n render(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {}\n\n /**\n * Highlight series or specified data item.\n */\n highlight(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n toggleHighlight(seriesModel.getData(), payload, 'emphasis');\n }\n\n /**\n * Downplay series or specified data item.\n */\n downplay(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n toggleHighlight(seriesModel.getData(), payload, 'normal');\n }\n\n /**\n * Remove self.\n */\n remove(ecModel: GlobalModel, api: ExtensionAPI): void {\n this.group.removeAll();\n }\n\n /**\n * Dispose self.\n */\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n\n updateView(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n // FIXME never used?\n updateLayout(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n // FIXME never used?\n updateVisual(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n static markUpdateMethod(payload: Payload, methodName: keyof ChartView): void {\n inner(payload).updateMethod = methodName;\n }\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n};\n\n\n/**\n * Set state of single element\n */\nfunction elSetState(el: Element, state: DisplayState, highlightDigit: number) {\n if (el) {\n (state === 'emphasis' ? enterEmphasis : leaveEmphasis)(el, highlightDigit);\n }\n}\n\nfunction toggleHighlight(data: SeriesData, payload: Payload, state: DisplayState) {\n const dataIndex = modelUtil.queryDataIndex(data, payload);\n\n const highlightDigit = (payload && payload.highlightKey != null)\n ? getHighlightDigit(payload.highlightKey)\n : null;\n\n if (dataIndex != null) {\n each(modelUtil.normalizeToArray(dataIndex), function (dataIdx) {\n elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);\n });\n }\n else {\n data.eachItemGraphicEl(function (el) {\n elSetState(el, state, highlightDigit);\n });\n }\n}\n\nexport type ChartViewConstructor = typeof ChartView\n & clazzUtil.ExtendableConstructor\n & clazzUtil.ClassManager;\n\nclazzUtil.enableClassExtend(ChartView as ChartViewConstructor, ['dispose']);\nclazzUtil.enableClassManagement(ChartView as ChartViewConstructor);\n\n\nfunction renderTaskPlan(context: SeriesTaskContext): StageHandlerPlanReturn {\n return renderPlanner(context.model);\n}\n\nfunction renderTaskReset(context: SeriesTaskContext): TaskResetCallbackReturn {\n const seriesModel = context.model;\n const ecModel = context.ecModel;\n const api = context.api;\n const payload = context.payload;\n // FIXME: remove updateView updateVisual\n const progressiveRender = seriesModel.pipelineContext.progressiveRender;\n const view = context.view;\n\n const updateMethod = payload && inner(payload).updateMethod;\n const methodName: keyof ChartView = progressiveRender\n ? 'incrementalPrepareRender'\n : (updateMethod && view[updateMethod])\n ? updateMethod\n // `appendData` is also supported when data amount\n // is less than progressive threshold.\n : 'render';\n\n if (methodName !== 'render') {\n (view[methodName] as any)(seriesModel, ecModel, api, payload);\n }\n\n return progressMethodMap[methodName];\n}\n\nconst progressMethodMap: {[method: string]: TaskResetCallbackReturn} = {\n incrementalPrepareRender: {\n progress: function (params: StageHandlerProgressParams, context: SeriesTaskContext): void {\n context.view.incrementalRender(\n params, context.model, context.ecModel, context.api, context.payload\n );\n }\n },\n render: {\n // Put view.render in `progress` to support appendData. But in this case\n // view.render should not be called in reset, otherwise it will be called\n // twise. Use `forceFirstProgress` to make sure that view.render is called\n // in any cases.\n forceFirstProgress: true,\n progress: function (params: StageHandlerProgressParams, context: SeriesTaskContext): void {\n context.view.render(\n context.model, context.ecModel, context.api, context.payload\n );\n }\n }\n};\n\nexport default ChartView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nconst ORIGIN_METHOD = '\\0__throttleOriginMethod' as const;\nconst RATE = '\\0__throttleRate' as const;\nconst THROTTLE_TYPE = '\\0__throttleType' as const;\n\ntype ThrottleFunction = (this: unknown, ...args: unknown[]) => void;\nexport type ThrottleType = 'fixRate' | 'debounce';\n\nexport interface ThrottleController {\n clear(): void;\n debounceNextCall(debounceDelay: number): void;\n};\n\n/**\n * @public\n * @param {(Function)} fn\n * @param {number} [delay=0] Unit: ms.\n * @param {boolean} [debounce=false]\n * true: If call interval less than `delay`, only the last call works.\n * false: If call interval less than `delay, call works on fixed rate.\n * @return {(Function)} throttled fn.\n */\nexport function throttle(\n fn: T,\n delay?: number,\n debounce?: boolean\n): T & ThrottleController {\n\n let currCall;\n let lastCall = 0;\n let lastExec = 0;\n let timer: ReturnType = null;\n let diff;\n let scope: unknown;\n let args: unknown[];\n let debounceNextCall: number;\n\n delay = delay || 0;\n\n function exec(): void {\n lastExec = (new Date()).getTime();\n timer = null;\n fn.apply(scope, args || []);\n }\n\n const cb = function (this: unknown, ...cbArgs: unknown[]): void {\n currCall = (new Date()).getTime();\n scope = this;\n args = cbArgs;\n const thisDelay = debounceNextCall || delay;\n const thisDebounce = debounceNextCall || debounce;\n debounceNextCall = null;\n diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;\n\n clearTimeout(timer);\n\n // Here we should make sure that: the `exec` SHOULD NOT be called later\n // than a new call of `cb`, that is, preserving the command order. Consider\n // calculating \"scale rate\" when roaming as an example. When a call of `cb`\n // happens, either the `exec` is called dierectly, or the call is delayed.\n // But the delayed call should never be later than next call of `cb`. Under\n // this assurance, we can simply update view state each time `dispatchAction`\n // triggered by user roaming, but not need to add extra code to avoid the\n // state being \"rolled-back\".\n if (thisDebounce) {\n timer = setTimeout(exec, thisDelay);\n }\n else {\n if (diff >= 0) {\n exec();\n }\n else {\n timer = setTimeout(exec, -diff);\n }\n }\n\n lastCall = currCall;\n } as T & ThrottleController;\n\n /**\n * Clear throttle.\n * @public\n */\n cb.clear = function (): void {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n };\n\n /**\n * Enable debounce once.\n */\n cb.debounceNextCall = function (debounceDelay: number): void {\n debounceNextCall = debounceDelay;\n };\n\n return cb;\n}\n\n/**\n * Create throttle method or update throttle rate.\n *\n * @example\n * ComponentView.prototype.render = function () {\n * ...\n * throttle.createOrUpdate(\n * this,\n * '_dispatchAction',\n * this.model.get('throttle'),\n * 'fixRate'\n * );\n * };\n * ComponentView.prototype.remove = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n * ComponentView.prototype.dispose = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n *\n */\nexport function createOrUpdate(\n obj: T,\n fnAttr: S,\n rate: number,\n throttleType: ThrottleType\n): P extends ThrottleFunction ? P & ThrottleController : never {\n let fn = obj[fnAttr];\n\n if (!fn) {\n return;\n }\n\n const originFn = (fn as any)[ORIGIN_METHOD] || fn;\n const lastThrottleType = (fn as any)[THROTTLE_TYPE];\n const lastRate = (fn as any)[RATE];\n\n if (lastRate !== rate || lastThrottleType !== throttleType) {\n if (rate == null || !throttleType) {\n return (obj[fnAttr] = originFn);\n }\n\n fn = obj[fnAttr] = throttle(\n originFn, rate, throttleType === 'debounce'\n );\n (fn as any)[ORIGIN_METHOD] = originFn;\n (fn as any)[THROTTLE_TYPE] = throttleType;\n (fn as any)[RATE] = rate;\n }\n\n return fn as ReturnType;\n}\n\n/**\n * Clear throttle. Example see throttle.createOrUpdate.\n */\nexport function clear(obj: T, fnAttr: S): void {\n const fn = obj[fnAttr];\n if (fn && (fn as any)[ORIGIN_METHOD]) {\n obj[fnAttr] = (fn as any)[ORIGIN_METHOD];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isFunction, extend, createHashMap } from 'zrender/src/core/util';\nimport { StageHandler, CallbackDataParams, ZRColor, Dictionary, InnerDecalObject, SeriesOption }\n from '../util/types';\nimport makeStyleMapper from '../model/mixin/makeStyleMapper';\nimport { ITEM_STYLE_KEY_MAP } from '../model/mixin/itemStyle';\nimport { LINE_STYLE_KEY_MAP } from '../model/mixin/lineStyle';\nimport SeriesModel from '../model/Series';\nimport Model from '../model/Model';\nimport { makeInner } from '../util/model';\n\nconst inner = makeInner<{scope: object}, SeriesModel>();\n\nconst defaultStyleMappers = {\n itemStyle: makeStyleMapper(ITEM_STYLE_KEY_MAP, true),\n lineStyle: makeStyleMapper(LINE_STYLE_KEY_MAP, true)\n};\n\nconst defaultColorKey = {\n lineStyle: 'stroke',\n itemStyle: 'fill'\n} as const;\n\nfunction getStyleMapper(seriesModel: SeriesModel, stylePath: string) {\n const styleMapper = seriesModel.visualStyleMapper\n || defaultStyleMappers[stylePath as 'itemStyle' | 'lineStyle'];\n if (!styleMapper) {\n console.warn(`Unkown style type '${stylePath}'.`);\n return defaultStyleMappers.itemStyle;\n }\n return styleMapper;\n}\n\nfunction getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' {\n // return defaultColorKey[stylePath] ||\n const colorKey = seriesModel.visualDrawType\n || defaultColorKey[stylePath as 'itemStyle' | 'lineStyle'];\n\n if (!colorKey) {\n console.warn(`Unkown style type '${stylePath}'.`);\n return 'fill';\n }\n\n return colorKey;\n}\n\ntype ColorCallback = (params: CallbackDataParams) => ZRColor;\n\nconst seriesStyleTask: StageHandler = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset(seriesModel, ecModel) {\n const data = seriesModel.getData();\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n // Set in itemStyle\n const styleModel = seriesModel.getModel(stylePath as any);\n const getStyle = getStyleMapper(seriesModel, stylePath);\n\n const globalStyle = getStyle(styleModel);\n\n const decalOption = styleModel.getShallow('decal') as InnerDecalObject;\n if (decalOption) {\n data.setVisual('decal', decalOption);\n decalOption.dirty = true;\n }\n\n // TODO\n const colorKey = getDefaultColorKey(seriesModel, stylePath);\n const color = globalStyle[colorKey];\n\n // TODO style callback\n const colorCallback = isFunction(color) ? color as unknown as ColorCallback : null;\n const hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto';\n // Get from color palette by default.\n if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {\n // Note: if some series has color specified (e.g., by itemStyle.color), we DO NOT\n // make it effect palette. Bacause some scenarios users need to make some series\n // transparent or as background, which should better not effect the palette.\n const colorPalette = seriesModel.getColorFromPalette(\n // TODO series count changed.\n seriesModel.name, null, ecModel.getSeriesCount()\n );\n if (!globalStyle[colorKey]) {\n globalStyle[colorKey] = colorPalette;\n data.setVisual('colorFromPalette', true);\n }\n globalStyle.fill = (globalStyle.fill === 'auto' || typeof globalStyle.fill === 'function')\n ? colorPalette\n : globalStyle.fill;\n globalStyle.stroke = (globalStyle.stroke === 'auto' || typeof globalStyle.stroke === 'function')\n ? colorPalette\n : globalStyle.stroke;\n }\n\n data.setVisual('style', globalStyle);\n data.setVisual('drawType', colorKey);\n\n // Only visible series has each data be visual encoded\n if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) {\n data.setVisual('colorFromPalette', false);\n\n return {\n dataEach(data, idx) {\n const dataParams = seriesModel.getDataParams(idx);\n const itemStyle = extend({}, globalStyle);\n itemStyle[colorKey] = colorCallback(dataParams);\n data.setItemVisual(idx, 'style', itemStyle);\n }\n };\n }\n }\n};\n\nconst sharedModel = new Model();\nconst dataStyleTask: StageHandler = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset(seriesModel, ecModel) {\n if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n // Set in itemStyle\n const getStyle = getStyleMapper(seriesModel, stylePath);\n\n const colorKey = data.getVisual('drawType');\n\n return {\n dataEach: data.hasItemOption ? function (data, idx) {\n // Not use getItemModel for performance considuration\n const rawItem = data.getRawDataItem(idx) as any;\n if (rawItem && rawItem[stylePath]) {\n sharedModel.option = rawItem[stylePath];\n const style = getStyle(sharedModel);\n\n const existsStyle = data.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n if (sharedModel.option.decal) {\n data.setItemVisual(idx, 'decal', sharedModel.option.decal);\n sharedModel.option.decal.dirty = true;\n }\n\n if (colorKey in style) {\n data.setItemVisual(idx, 'colorFromPalette', false);\n }\n }\n } : null\n };\n }\n};\n\n// Pick color from palette for the data which has not been set with color yet.\n// Note: do not support stream rendering. No such cases yet.\nconst dataColorPaletteTask: StageHandler = {\n performRawSeries: true,\n overallReset(ecModel) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n const paletteScopeGroupByType = createHashMap();\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n const colorBy = seriesModel.getColorBy();\n if (seriesModel.isColorBySeries()) {\n return;\n }\n const key = seriesModel.type + '-' + colorBy;\n let colorScope = paletteScopeGroupByType.get(key);\n if (!colorScope) {\n colorScope = {};\n paletteScopeGroupByType.set(key, colorScope);\n }\n inner(seriesModel).scope = colorScope;\n });\n\n\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n if (seriesModel.isColorBySeries() || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const dataAll = seriesModel.getRawData();\n const idxMap: Dictionary = {};\n const data = seriesModel.getData();\n const colorScope = inner(seriesModel).scope;\n\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n const colorKey = getDefaultColorKey(seriesModel, stylePath);\n\n data.each(function (idx) {\n const rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n\n // Iterate on data before filtered. To make sure color from palette can be\n // Consistent when toggling legend.\n dataAll.each(function (rawIdx) {\n const idx = idxMap[rawIdx];\n const fromPalette = data.getItemVisual(idx, 'colorFromPalette');\n // Get color from palette for each data only when the color is inherited from series color, which is\n // also picked from color palette. So following situation is not in the case:\n // 1. series.itemStyle.color is set\n // 2. color is encoded by visualMap\n if (fromPalette) {\n const itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n const name = dataAll.getName(rawIdx) || (rawIdx + '');\n const dataCount = dataAll.count();\n itemStyle[colorKey] = seriesModel.getColorFromPalette(name, colorScope, dataCount);\n }\n });\n });\n }\n};\n\nexport {\n seriesStyleTask,\n dataStyleTask,\n dataColorPaletteTask\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../util/graphic';\nimport { LoadingEffect } from '../util/types';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\nconst PI = Math.PI;\n\n/**\n * @param {module:echarts/ExtensionAPI} api\n * @param {Object} [opts]\n * @param {string} [opts.text]\n * @param {string} [opts.color]\n * @param {string} [opts.textColor]\n * @return {module:zrender/Element}\n */\nexport default function defaultLoading(\n api: ExtensionAPI,\n opts?: {\n text?: string;\n color?: string;\n textColor?: string;\n maskColor?: string;\n zlevel?: number;\n showSpinner?: boolean;\n spinnerRadius?: number;\n lineWidth?: number;\n fontSize?: number;\n fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;\n fontStyle?: 'normal' | 'italic' | 'oblique';\n fontFamily?: string\n }\n): LoadingEffect {\n opts = opts || {};\n zrUtil.defaults(opts, {\n text: 'loading',\n textColor: '#000',\n fontSize: 12,\n fontWeight: 'normal',\n fontStyle: 'normal',\n fontFamily: 'sans-serif',\n maskColor: 'rgba(255, 255, 255, 0.8)',\n showSpinner: true,\n color: '#5470c6',\n spinnerRadius: 10,\n lineWidth: 5,\n zlevel: 0\n });\n const group = new graphic.Group() as (graphic.Group & LoadingEffect);\n const mask = new graphic.Rect({\n style: {\n fill: opts.maskColor\n },\n zlevel: opts.zlevel,\n z: 10000\n });\n group.add(mask);\n\n const textContent = new graphic.Text({\n style: {\n text: opts.text,\n fill: opts.textColor,\n fontSize: opts.fontSize,\n fontWeight: opts.fontWeight,\n fontStyle: opts.fontStyle,\n fontFamily: opts.fontFamily\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n\n const labelRect = new graphic.Rect({\n style: {\n fill: 'none'\n },\n textContent: textContent,\n textConfig: {\n position: 'right',\n distance: 10\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n group.add(labelRect);\n let arc: graphic.Arc;\n\n if (opts.showSpinner) {\n arc = new graphic.Arc({\n shape: {\n startAngle: -PI / 2,\n endAngle: -PI / 2 + 0.1,\n r: opts.spinnerRadius\n },\n style: {\n stroke: opts.color,\n lineCap: 'round',\n lineWidth: opts.lineWidth\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n arc.animateShape(true)\n .when(1000, {\n endAngle: PI * 3 / 2\n })\n .start('circularInOut');\n arc.animateShape(true)\n .when(1000, {\n startAngle: PI * 3 / 2\n })\n .delay(300)\n .start('circularInOut');\n\n group.add(arc);\n }\n\n // Inject resize\n group.resize = function () {\n const textWidth = textContent.getBoundingRect().width;\n const r = opts.showSpinner ? opts.spinnerRadius : 0;\n // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2\n // textDistance needs to be calculated when both animation and text exist\n const cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2\n - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2)\n // only show the text\n + (opts.showSpinner ? 0 : textWidth / 2)\n // only show the spinner\n + (textWidth ? 0 : r);\n const cy = api.getHeight() / 2;\n opts.showSpinner && arc.setShape({\n cx: cx,\n cy: cy\n });\n labelRect.setShape({\n x: cx - r,\n y: cy - r,\n width: r * 2,\n height: r * 2\n });\n\n mask.setShape({\n x: 0,\n y: 0,\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n group.resize();\n return group;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, map, isFunction, createHashMap, noop, HashMap, assert} from 'zrender/src/core/util';\nimport {\n createTask, Task, TaskContext,\n TaskProgressCallback, TaskProgressParams, TaskPlanCallbackReturn, PerformArgs\n} from './task';\nimport {getUID} from '../util/component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport {normalizeToArray} from '../util/model';\nimport {\n StageHandlerInternal, StageHandlerOverallReset, StageHandler,\n Payload, StageHandlerReset, StageHandlerPlan, StageHandlerProgressExecutor, SeriesLargeOptionMixin, SeriesOption\n} from '../util/types';\nimport { EChartsType } from './echarts';\nimport SeriesModel from '../model/Series';\nimport ChartView from '../view/Chart';\nimport SeriesData from '../data/SeriesData';\n\nexport type GeneralTask = Task;\nexport type SeriesTask = Task;\nexport type OverallTask = Task & {\n agentStubMap?: HashMap\n};\nexport type StubTask = Task & {\n agent?: OverallTask;\n};\n\nexport type Pipeline = {\n id: string\n head: GeneralTask,\n tail: GeneralTask,\n threshold: number,\n progressiveEnabled: boolean,\n blockIndex: number,\n step: number,\n count: number,\n currentTask?: GeneralTask,\n context?: PipelineContext\n};\nexport type PipelineContext = {\n progressiveRender: boolean,\n modDataCount: number,\n large: boolean\n};\n\ntype TaskRecord = {\n // key: seriesUID\n seriesTaskMap?: HashMap,\n overallTask?: OverallTask\n};\ntype PerformStageTaskOpt = {\n block?: boolean,\n setDirty?: boolean,\n visualType?: StageHandlerInternal['visualType'],\n dirtyMap?: HashMap\n};\n\nexport interface SeriesTaskContext extends TaskContext {\n model?: SeriesModel;\n data?: SeriesData;\n view?: ChartView;\n ecModel?: GlobalModel;\n api?: ExtensionAPI;\n useClearVisual?: boolean;\n plan?: StageHandlerPlan;\n reset?: StageHandlerReset;\n scheduler?: Scheduler;\n payload?: Payload;\n resetDefines?: StageHandlerProgressExecutor[]\n}\ninterface OverallTaskContext extends TaskContext {\n ecModel: GlobalModel;\n api: ExtensionAPI;\n overallReset: StageHandlerOverallReset;\n scheduler: Scheduler;\n payload?: Payload;\n}\ninterface StubTaskContext extends TaskContext {\n model: SeriesModel;\n overallProgress: boolean;\n};\n\nclass Scheduler {\n\n readonly ecInstance: EChartsType;\n readonly api: ExtensionAPI;\n\n // Shared with echarts.js, should only be modified by\n // this file and echarts.js\n unfinished: boolean;\n\n private _dataProcessorHandlers: StageHandlerInternal[];\n private _visualHandlers: StageHandlerInternal[];\n private _allHandlers: StageHandlerInternal[];\n\n // key: handlerUID\n private _stageTaskMap: HashMap = createHashMap();\n // key: pipelineId\n private _pipelineMap: HashMap;\n\n\n constructor(\n ecInstance: EChartsType,\n api: ExtensionAPI,\n dataProcessorHandlers: StageHandlerInternal[],\n visualHandlers: StageHandlerInternal[]\n ) {\n this.ecInstance = ecInstance;\n this.api = api;\n\n // Fix current processors in case that in some rear cases that\n // processors might be registered after echarts instance created.\n // Register processors incrementally for a echarts instance is\n // not supported by this stream architecture.\n dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice();\n visualHandlers = this._visualHandlers = visualHandlers.slice();\n this._allHandlers = dataProcessorHandlers.concat(visualHandlers);\n }\n\n restoreData(ecModel: GlobalModel, payload: Payload): void {\n // TODO: Only restore needed series and components, but not all components.\n // Currently `restoreData` of all of the series and component will be called.\n // But some independent components like `title`, `legend`, `graphic`, `toolbox`,\n // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,\n // and some components like coordinate system, axes, dataZoom, visualMap only\n // need their target series refresh.\n // (1) If we are implementing this feature some day, we should consider these cases:\n // if a data processor depends on a component (e.g., dataZoomProcessor depends\n // on the settings of `dataZoom`), it should be re-performed if the component\n // is modified by `setOption`.\n // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,\n // it should be re-performed when the result array of `getTargetSeries` changed.\n // We use `dependencies` to cover these issues.\n // (3) How to update target series when coordinate system related components modified.\n\n // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,\n // and this case all of the tasks will be set as dirty.\n\n ecModel.restoreData(payload);\n\n // Theoretically an overall task not only depends on each of its target series, but also\n // depends on all of the series.\n // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks\n // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure\n // that the overall task is set as dirty and to be performed, otherwise it probably cause\n // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it\n // probably cause state chaos (consider `dataZoomProcessor`).\n this._stageTaskMap.each(function (taskRecord) {\n const overallTask = taskRecord.overallTask;\n overallTask && overallTask.dirty();\n });\n }\n\n // If seriesModel provided, incremental threshold is check by series data.\n getPerformArgs(task: GeneralTask, isBlock?: boolean): {\n step: number, modBy: number, modDataCount: number\n } {\n // For overall task\n if (!task.__pipeline) {\n return;\n }\n\n const pipeline = this._pipelineMap.get(task.__pipeline.id);\n const pCtx = pipeline.context;\n const incremental = !isBlock\n && pipeline.progressiveEnabled\n && (!pCtx || pCtx.progressiveRender)\n && task.__idxInPipeline > pipeline.blockIndex;\n\n const step = incremental ? pipeline.step : null;\n const modDataCount = pCtx && pCtx.modDataCount;\n const modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null;\n\n return {step: step, modBy: modBy, modDataCount: modDataCount};\n }\n\n getPipeline(pipelineId: string) {\n return this._pipelineMap.get(pipelineId);\n }\n\n /**\n * Current, progressive rendering starts from visual and layout.\n * Always detect render mode in the same stage, avoiding that incorrect\n * detection caused by data filtering.\n * Caution:\n * `updateStreamModes` use `seriesModel.getData()`.\n */\n updateStreamModes(seriesModel: SeriesModel, view: ChartView): void {\n const pipeline = this._pipelineMap.get(seriesModel.uid);\n const data = seriesModel.getData();\n const dataLen = data.count();\n\n // `progressiveRender` means that can render progressively in each\n // animation frame. Note that some types of series do not provide\n // `view.incrementalPrepareRender` but support `chart.appendData`. We\n // use the term `incremental` but not `progressive` to describe the\n // case that `chart.appendData`.\n const progressiveRender = pipeline.progressiveEnabled\n && view.incrementalPrepareRender\n && dataLen >= pipeline.threshold;\n\n const large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold');\n\n // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint.\n // see `test/candlestick-large3.html`\n const modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null;\n\n seriesModel.pipelineContext = pipeline.context = {\n progressiveRender: progressiveRender,\n modDataCount: modDataCount,\n large: large\n };\n }\n\n restorePipelines(ecModel: GlobalModel): void {\n const scheduler = this;\n const pipelineMap = scheduler._pipelineMap = createHashMap();\n\n ecModel.eachSeries(function (seriesModel) {\n const progressive = seriesModel.getProgressive();\n const pipelineId = seriesModel.uid;\n\n pipelineMap.set(pipelineId, {\n id: pipelineId,\n head: null,\n tail: null,\n threshold: seriesModel.getProgressiveThreshold(),\n progressiveEnabled: progressive\n && !(seriesModel.preventIncremental && seriesModel.preventIncremental()),\n blockIndex: -1,\n step: Math.round(progressive || 700),\n count: 0\n });\n\n scheduler._pipe(seriesModel, seriesModel.dataTask);\n });\n }\n\n prepareStageTasks(): void {\n const stageTaskMap = this._stageTaskMap;\n const ecModel = this.api.getModel();\n const api = this.api;\n\n each(this._allHandlers, function (handler) {\n const record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});\n\n let errMsg = '';\n if (__DEV__) {\n // Currently do not need to support to sepecify them both.\n errMsg = '\"reset\" and \"overallReset\" must not be both specified.';\n }\n assert(!(handler.reset && handler.overallReset), errMsg);\n\n handler.reset && this._createSeriesStageTask(handler, record, ecModel, api);\n handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api);\n }, this);\n }\n\n prepareView(view: ChartView, model: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n const renderTask = view.renderTask;\n const context = renderTask.context;\n\n context.model = model;\n context.ecModel = ecModel;\n context.api = api;\n\n renderTask.__block = !view.incrementalPrepareRender;\n\n this._pipe(model, renderTask);\n }\n\n performDataProcessorTasks(ecModel: GlobalModel, payload?: Payload): void {\n // If we do not use `block` here, it should be considered when to update modes.\n this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, {block: true});\n }\n\n performVisualTasks(\n ecModel: GlobalModel,\n payload?: Payload,\n opt?: PerformStageTaskOpt\n ): void {\n this._performStageTasks(this._visualHandlers, ecModel, payload, opt);\n }\n\n private _performStageTasks(\n stageHandlers: StageHandlerInternal[],\n ecModel: GlobalModel,\n payload: Payload,\n opt?: PerformStageTaskOpt\n ): void {\n opt = opt || {};\n let unfinished: boolean = false;\n const scheduler = this;\n\n each(stageHandlers, function (stageHandler, idx) {\n if (opt.visualType && opt.visualType !== stageHandler.visualType) {\n return;\n }\n\n const stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid);\n const seriesTaskMap = stageHandlerRecord.seriesTaskMap;\n const overallTask = stageHandlerRecord.overallTask;\n\n if (overallTask) {\n let overallNeedDirty;\n const agentStubMap = overallTask.agentStubMap;\n agentStubMap.each(function (stub) {\n if (needSetDirty(opt, stub)) {\n stub.dirty();\n overallNeedDirty = true;\n }\n });\n overallNeedDirty && overallTask.dirty();\n scheduler.updatePayload(overallTask, payload);\n const performArgs = scheduler.getPerformArgs(overallTask, opt.block);\n // Execute stubs firstly, which may set the overall task dirty,\n // then execute the overall task. And stub will call seriesModel.setData,\n // which ensures that in the overallTask seriesModel.getData() will not\n // return incorrect data.\n agentStubMap.each(function (stub) {\n stub.perform(performArgs);\n });\n if (overallTask.perform(performArgs)) {\n unfinished = true;\n }\n }\n else if (seriesTaskMap) {\n seriesTaskMap.each(function (task, pipelineId) {\n if (needSetDirty(opt, task)) {\n task.dirty();\n }\n const performArgs: PerformArgs = scheduler.getPerformArgs(task, opt.block);\n // FIXME\n // if intending to decalare `performRawSeries` in handlers, only\n // stream-independent (specifically, data item independent) operations can be\n // performed. Because is a series is filtered, most of the tasks will not\n // be performed. A stream-dependent operation probably cause wrong biz logic.\n // Perhaps we should not provide a separate callback for this case instead\n // of providing the config `performRawSeries`. The stream-dependent operaions\n // and stream-independent operations should better not be mixed.\n performArgs.skip = !stageHandler.performRawSeries\n && ecModel.isSeriesFiltered(task.context.model);\n scheduler.updatePayload(task, payload);\n\n if (task.perform(performArgs)) {\n unfinished = true;\n }\n });\n }\n });\n\n function needSetDirty(opt: PerformStageTaskOpt, task: GeneralTask): boolean {\n return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id));\n }\n\n this.unfinished = unfinished || this.unfinished;\n }\n\n performSeriesTasks(ecModel: GlobalModel): void {\n let unfinished: boolean;\n\n ecModel.eachSeries(function (seriesModel) {\n // Progress to the end for dataInit and dataRestore.\n unfinished = seriesModel.dataTask.perform() || unfinished;\n });\n\n this.unfinished = unfinished || this.unfinished;\n }\n\n plan(): void {\n // Travel pipelines, check block.\n this._pipelineMap.each(function (pipeline) {\n let task = pipeline.tail;\n do {\n if (task.__block) {\n pipeline.blockIndex = task.__idxInPipeline;\n break;\n }\n task = task.getUpstream();\n }\n while (task);\n });\n }\n\n updatePayload(\n task: Task,\n payload: Payload | 'remain'\n ): void {\n payload !== 'remain' && (task.context.payload = payload);\n }\n\n private _createSeriesStageTask(\n stageHandler: StageHandlerInternal,\n stageHandlerRecord: TaskRecord,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n const scheduler = this;\n const oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap;\n // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n const newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = createHashMap();\n const seriesType = stageHandler.seriesType;\n const getTargetSeries = stageHandler.getTargetSeries;\n\n // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,\n // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,\n // it works but it may cause other irrelevant charts blocked.\n if (stageHandler.createOnAllSeries) {\n ecModel.eachRawSeries(create);\n }\n else if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, create);\n }\n else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(create);\n }\n\n function create(seriesModel: SeriesModel): void {\n const pipelineId = seriesModel.uid;\n\n // Init tasks for each seriesModel only once.\n // Reuse original task instance.\n const task = newSeriesTaskMap.set(\n pipelineId,\n oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId)\n || createTask({\n plan: seriesTaskPlan,\n reset: seriesTaskReset,\n count: seriesTaskCount\n })\n );\n task.context = {\n model: seriesModel,\n ecModel: ecModel,\n api: api,\n // PENDING: `useClearVisual` not used?\n useClearVisual: stageHandler.isVisual && !stageHandler.isLayout,\n plan: stageHandler.plan,\n reset: stageHandler.reset,\n scheduler: scheduler\n };\n scheduler._pipe(seriesModel, task);\n }\n }\n\n private _createOverallStageTask(\n stageHandler: StageHandlerInternal,\n stageHandlerRecord: TaskRecord,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n const scheduler = this;\n const overallTask: OverallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask\n // For overall task, the function only be called on reset stage.\n || createTask({reset: overallTaskReset});\n\n overallTask.context = {\n ecModel: ecModel,\n api: api,\n overallReset: stageHandler.overallReset,\n scheduler: scheduler\n };\n\n const oldAgentStubMap = overallTask.agentStubMap;\n // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n const newAgentStubMap = overallTask.agentStubMap = createHashMap();\n\n const seriesType = stageHandler.seriesType;\n const getTargetSeries = stageHandler.getTargetSeries;\n let overallProgress = true;\n let shouldOverallTaskDirty = false;\n // FIXME:TS never used, so comment it\n // let modifyOutputEnd = stageHandler.modifyOutputEnd;\n\n // An overall task with seriesType detected or has `getTargetSeries`, we add\n // stub in each pipelines, it will set the overall task dirty when the pipeline\n // progress. Moreover, to avoid call the overall task each frame (too frequent),\n // we set the pipeline block.\n let errMsg = '';\n if (__DEV__) {\n errMsg = '\"createOnAllSeries\" do not supported for \"overallReset\", '\n + 'becuase it will block all streams.';\n }\n assert(!stageHandler.createOnAllSeries, errMsg);\n if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, createStub);\n }\n else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(createStub);\n }\n // Otherwise, (usually it is legancy case), the overall task will only be\n // executed when upstream dirty. Otherwise the progressive rendering of all\n // pipelines will be disabled unexpectedly. But it still needs stubs to receive\n // dirty info from upsteam.\n else {\n overallProgress = false;\n each(ecModel.getSeries(), createStub);\n }\n\n function createStub(seriesModel: SeriesModel): void {\n const pipelineId = seriesModel.uid;\n const stub = newAgentStubMap.set(\n pipelineId,\n oldAgentStubMap && oldAgentStubMap.get(pipelineId)\n || (\n // When the result of `getTargetSeries` changed, the overallTask\n // should be set as dirty and re-performed.\n shouldOverallTaskDirty = true,\n createTask(\n {reset: stubReset, onDirty: stubOnDirty}\n )\n )\n );\n stub.context = {\n model: seriesModel,\n overallProgress: overallProgress\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: modifyOutputEnd\n };\n stub.agent = overallTask;\n stub.__block = overallProgress;\n\n scheduler._pipe(seriesModel, stub);\n }\n\n if (shouldOverallTaskDirty) {\n overallTask.dirty();\n }\n }\n\n private _pipe(seriesModel: SeriesModel, task: GeneralTask) {\n const pipelineId = seriesModel.uid;\n const pipeline = this._pipelineMap.get(pipelineId);\n !pipeline.head && (pipeline.head = task);\n pipeline.tail && pipeline.tail.pipe(task);\n pipeline.tail = task;\n task.__idxInPipeline = pipeline.count++;\n task.__pipeline = pipeline;\n }\n\n static wrapStageHandler(\n stageHandler: StageHandler | StageHandlerOverallReset,\n visualType: StageHandlerInternal['visualType']\n ): StageHandlerInternal {\n if (isFunction(stageHandler)) {\n stageHandler = {\n overallReset: stageHandler,\n seriesType: detectSeriseType(stageHandler)\n } as StageHandlerInternal;\n }\n\n (stageHandler as StageHandlerInternal).uid = getUID('stageHandler');\n visualType && ((stageHandler as StageHandlerInternal).visualType = visualType);\n\n return stageHandler as StageHandlerInternal;\n };\n\n}\n\n\nfunction overallTaskReset(context: OverallTaskContext): void {\n context.overallReset(\n context.ecModel, context.api, context.payload\n );\n}\n\nfunction stubReset(context: StubTaskContext): TaskProgressCallback {\n return context.overallProgress && stubProgress;\n}\n\nfunction stubProgress(this: StubTask): void {\n this.agent.dirty();\n this.getDownstream().dirty();\n}\n\nfunction stubOnDirty(this: StubTask): void {\n this.agent && this.agent.dirty();\n}\n\nfunction seriesTaskPlan(context: SeriesTaskContext): TaskPlanCallbackReturn {\n return context.plan ? context.plan(\n context.model, context.ecModel, context.api, context.payload\n ) : null;\n}\n\nfunction seriesTaskReset(\n context: SeriesTaskContext\n): TaskProgressCallback | TaskProgressCallback[] {\n if (context.useClearVisual) {\n context.data.clearAllVisual();\n }\n const resetDefines = context.resetDefines = normalizeToArray(\n context.reset(context.model, context.ecModel, context.api, context.payload)\n ) as StageHandlerProgressExecutor[];\n return resetDefines.length > 1\n ? map(resetDefines, function (v, idx) {\n return makeSeriesTaskProgress(idx);\n })\n : singleSeriesTaskProgress;\n}\n\nconst singleSeriesTaskProgress = makeSeriesTaskProgress(0);\n\nfunction makeSeriesTaskProgress(resetDefineIdx: number): TaskProgressCallback {\n return function (params: TaskProgressParams, context: SeriesTaskContext): void {\n const data = context.data;\n const resetDefine = context.resetDefines[resetDefineIdx];\n\n if (resetDefine && resetDefine.dataEach) {\n for (let i = params.start; i < params.end; i++) {\n resetDefine.dataEach(data, i);\n }\n }\n else if (resetDefine && resetDefine.progress) {\n resetDefine.progress(params, data);\n }\n };\n}\n\nfunction seriesTaskCount(context: SeriesTaskContext): number {\n return context.data.count();\n}\n\n\n\n/**\n * Only some legacy stage handlers (usually in echarts extensions) are pure function.\n * To ensure that they can work normally, they should work in block mode, that is,\n * they should not be started util the previous tasks finished. So they cause the\n * progressive rendering disabled. We try to detect the series type, to narrow down\n * the block range to only the series type they concern, but not all series.\n */\nfunction detectSeriseType(legacyFunc: StageHandlerOverallReset): string {\n seriesType = null;\n try {\n // Assume there is no async when calling `eachSeriesByType`.\n legacyFunc(ecModelMock, apiMock);\n }\n catch (e) {\n }\n return seriesType;\n}\n\nconst ecModelMock: GlobalModel = {} as GlobalModel;\nconst apiMock: ExtensionAPI = {} as ExtensionAPI;\nlet seriesType;\n\nmockMethods(ecModelMock, GlobalModel);\nmockMethods(apiMock, ExtensionAPI);\necModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) {\n seriesType = type;\n};\necModelMock.eachComponent = function (cond: any): void {\n if (cond.mainType === 'series' && cond.subType) {\n seriesType = cond.subType;\n }\n};\n\nfunction mockMethods(target: any, Clz: any): void {\n /* eslint-disable */\n for (let name in Clz.prototype) {\n // Do not use hasOwnProperty\n target[name] = noop;\n }\n /* eslint-enable */\n}\n\nexport default Scheduler;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nconst colorAll = [\n '#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f',\n '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'\n];\n\nexport default {\n\n color: colorAll,\n\n colorLayer: [\n ['#37A2DA', '#ffd85c', '#fd7b5f'],\n ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'],\n ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'],\n colorAll\n ]\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nconst contrastColor = '#B9B8CE';\nconst backgroundColor = '#100C2A';\nconst axisCommon = function () {\n return {\n axisLine: {\n lineStyle: {\n color: contrastColor\n }\n },\n splitLine: {\n lineStyle: {\n color: '#484753'\n }\n },\n splitArea: {\n areaStyle: {\n color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']\n }\n },\n minorSplitLine: {\n lineStyle: {\n color: '#20203B'\n }\n }\n };\n};\n\nconst colorPalette = [\n '#4992ff',\n '#7cffb2',\n '#fddd60',\n '#ff6e76',\n '#58d9f9',\n '#05c091',\n '#ff8a45',\n '#8d48e3',\n '#dd79ff'\n];\nconst theme = {\n darkMode: true,\n\n color: colorPalette,\n backgroundColor: backgroundColor,\n axisPointer: {\n lineStyle: {\n color: '#817f91'\n },\n crossStyle: {\n color: '#817f91'\n },\n label: {\n // TODO Contrast of label backgorundColor\n color: '#fff'\n }\n },\n legend: {\n textStyle: {\n color: contrastColor\n }\n },\n textStyle: {\n color: contrastColor\n },\n title: {\n textStyle: {\n color: '#EEF1FA'\n },\n subtextStyle: {\n color: '#B9B8CE'\n }\n },\n toolbox: {\n iconStyle: {\n borderColor: contrastColor\n }\n },\n dataZoom: {\n borderColor: '#71708A',\n textStyle: {\n color: contrastColor\n },\n brushStyle: {\n color: 'rgba(135,163,206,0.3)'\n },\n handleStyle: {\n color: '#353450',\n borderColor: '#C5CBE3'\n },\n moveHandleStyle: {\n color: '#B0B6C3',\n opacity: 0.3\n },\n fillerColor: 'rgba(135,163,206,0.2)',\n emphasis: {\n handleStyle: {\n borderColor: '#91B7F2',\n color: '#4D587D'\n },\n moveHandleStyle: {\n color: '#636D9A',\n opacity: 0.7\n }\n },\n dataBackground: {\n lineStyle: {\n color: '#71708A',\n width: 1\n },\n areaStyle: {\n color: '#71708A'\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#87A3CE'\n },\n areaStyle: {\n color: '#87A3CE'\n }\n }\n },\n visualMap: {\n textStyle: {\n color: contrastColor\n }\n },\n timeline: {\n lineStyle: {\n color: contrastColor\n },\n label: {\n color: contrastColor\n },\n controlStyle: {\n color: contrastColor,\n borderColor: contrastColor\n }\n },\n calendar: {\n itemStyle: {\n color: backgroundColor\n },\n dayLabel: {\n color: contrastColor\n },\n monthLabel: {\n color: contrastColor\n },\n yearLabel: {\n color: contrastColor\n }\n },\n timeAxis: axisCommon(),\n logAxis: axisCommon(),\n valueAxis: axisCommon(),\n categoryAxis: axisCommon(),\n\n line: {\n symbol: 'circle'\n },\n graph: {\n color: colorPalette\n },\n gauge: {\n title: {\n color: contrastColor\n },\n axisLine: {\n lineStyle: {\n color: [[1, 'rgba(207,212,219,0.2)']]\n }\n },\n axisLabel: {\n color: contrastColor\n },\n detail: {\n color: '#EEF1FA'\n }\n },\n candlestick: {\n itemStyle: {\n color: '#f64e56',\n color0: '#54ea92',\n borderColor: '#f64e56',\n borderColor0: '#54ea92'\n // borderColor: '#ca2824',\n // borderColor0: '#09a443'\n }\n }\n};\n(theme.categoryAxis.splitLine as any).show = false;\n\nexport default theme;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { EventProcessor, EventQuery } from 'zrender/src/core/Eventful';\nimport { ECActionEvent, NormalizedEventQuery, EventQueryItem, ECElementEvent } from './types';\nimport ComponentModel from '../model/Component';\nimport ComponentView from '../view/Component';\nimport ChartView from '../view/Chart';\nimport * as zrUtil from 'zrender/src/core/util';\nimport { parseClassType } from './clazz';\nimport Element from 'zrender/src/Element';\n\n/**\n * Usage of query:\n * `chart.on('click', query, handler);`\n * The `query` can be:\n * + The component type query string, only `mainType` or `mainType.subType`,\n * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'.\n * + The component query object, like:\n * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`,\n * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`.\n * + The data query object, like:\n * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`.\n * + The other query object (cmponent customized query), like:\n * `{element: 'some'}` (only available in custom series).\n *\n * Caveat: If a prop in the `query` object is `null/undefined`, it is the\n * same as there is no such prop in the `query` object.\n */\nexport class ECEventProcessor implements EventProcessor {\n\n // These info required: targetEl, packedEvent, model, view\n eventInfo: {\n targetEl: Element;\n packedEvent: ECActionEvent | ECElementEvent;\n model: ComponentModel;\n view: ComponentView | ChartView;\n };\n\n normalizeQuery(query: EventQuery): NormalizedEventQuery {\n const cptQuery: EventQueryItem = {};\n const dataQuery: EventQueryItem = {};\n const otherQuery: EventQueryItem = {};\n\n // `query` is `mainType` or `mainType.subType` of component.\n if (zrUtil.isString(query)) {\n const condCptType = parseClassType(query);\n // `.main` and `.sub` may be ''.\n cptQuery.mainType = condCptType.main || null;\n cptQuery.subType = condCptType.sub || null;\n }\n // `query` is an object, convert to {mainType, index, name, id}.\n else {\n // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,\n // can not be used in `compomentModel.filterForExposedEvent`.\n const suffixes = ['Index', 'Name', 'Id'];\n const dataKeys = {name: 1, dataIndex: 1, dataType: 1};\n zrUtil.each(query, function (val, key) {\n let reserved = false;\n for (let i = 0; i < suffixes.length; i++) {\n const propSuffix = suffixes[i];\n const suffixPos = key.lastIndexOf(propSuffix);\n if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {\n const mainType = key.slice(0, suffixPos);\n // Consider `dataIndex`.\n if (mainType !== 'data') {\n cptQuery.mainType = mainType;\n cptQuery[propSuffix.toLowerCase()] = val;\n reserved = true;\n }\n }\n }\n if (dataKeys.hasOwnProperty(key)) {\n dataQuery[key] = val;\n reserved = true;\n }\n if (!reserved) {\n otherQuery[key] = val;\n }\n });\n }\n\n return {\n cptQuery: cptQuery,\n dataQuery: dataQuery,\n otherQuery: otherQuery\n };\n }\n\n filter(eventType: string, query: NormalizedEventQuery): boolean {\n // They should be assigned before each trigger call.\n const eventInfo = this.eventInfo;\n\n if (!eventInfo) {\n return true;\n }\n\n const targetEl = eventInfo.targetEl;\n const packedEvent = eventInfo.packedEvent;\n const model = eventInfo.model;\n const view = eventInfo.view;\n\n // For event like 'globalout'.\n if (!model || !view) {\n return true;\n }\n\n const cptQuery = query.cptQuery;\n const dataQuery = query.dataQuery;\n\n return check(cptQuery, model, 'mainType')\n && check(cptQuery, model, 'subType')\n && check(cptQuery, model, 'index', 'componentIndex')\n && check(cptQuery, model, 'name')\n && check(cptQuery, model, 'id')\n && check(dataQuery, packedEvent, 'name')\n && check(dataQuery, packedEvent, 'dataIndex')\n && check(dataQuery, packedEvent, 'dataType')\n && (!view.filterForExposedEvent || view.filterForExposedEvent(\n eventType, query.otherQuery, targetEl, packedEvent\n ));\n\n function check(\n query: EventQueryItem, host: any, prop: string, propOnHost?: string\n ): boolean {\n return query[prop] == null || host[propOnHost || prop] === query[prop];\n }\n }\n\n afterTrigger() {\n // Make sure the eventInfo wont be used in next trigger.\n this.eventInfo = null;\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {isFunction} from 'zrender/src/core/util';\nimport {\n StageHandler,\n SeriesOption,\n SymbolOptionMixin,\n SymbolSizeCallback,\n SymbolCallback,\n CallbackDataParams,\n SymbolRotateCallback,\n SymbolOffsetCallback\n} from '../util/types';\nimport SeriesData from '../data/SeriesData';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\n\n// Encoding visual for all series include which is filtered for legend drawing\nconst seriesSymbolTask: StageHandler = {\n\n createOnAllSeries: true,\n\n // For legend.\n performRawSeries: true,\n\n reset: function (\n seriesModel: SeriesModel>,\n ecModel: GlobalModel\n ) {\n const data = seriesModel.getData();\n\n if (seriesModel.legendIcon) {\n data.setVisual('legendIcon', seriesModel.legendIcon);\n }\n\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n\n const symbolType = seriesModel.get('symbol');\n const symbolSize = seriesModel.get('symbolSize');\n const keepAspect = seriesModel.get('symbolKeepAspect');\n const symbolRotate = seriesModel.get('symbolRotate');\n const symbolOffset = seriesModel.get('symbolOffset');\n\n const hasSymbolTypeCallback = isFunction(symbolType);\n const hasSymbolSizeCallback = isFunction(symbolSize);\n const hasSymbolRotateCallback = isFunction(symbolRotate);\n const hasSymbolOffsetCallback = isFunction(symbolOffset);\n const hasCallback = hasSymbolTypeCallback\n || hasSymbolSizeCallback\n || hasSymbolRotateCallback\n || hasSymbolOffsetCallback;\n const seriesSymbol = (!hasSymbolTypeCallback && symbolType) ? symbolType : seriesModel.defaultSymbol;\n const seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n const seriesSymbolRotate = !hasSymbolRotateCallback ? symbolRotate : null;\n const seriesSymbolOffset = !hasSymbolOffsetCallback ? symbolOffset : null;\n\n data.setVisual({\n legendIcon: seriesModel.legendIcon || seriesSymbol as string,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol as string,\n symbolSize: seriesSymbolSize as number | number[],\n symbolKeepAspect: keepAspect,\n symbolRotate: seriesSymbolRotate as number,\n symbolOffset: seriesSymbolOffset as string | number | (string | number)[]\n });\n\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data: SeriesData, idx: number) {\n const rawValue = seriesModel.getRawValue(idx);\n const params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(\n idx, 'symbol', (symbolType as SymbolCallback)(rawValue, params)\n );\n hasSymbolSizeCallback && data.setItemVisual(\n idx, 'symbolSize', (symbolSize as SymbolSizeCallback)(rawValue, params)\n );\n hasSymbolRotateCallback && data.setItemVisual(\n idx, 'symbolRotate', (symbolRotate as SymbolRotateCallback)(rawValue, params)\n );\n hasSymbolOffsetCallback && data.setItemVisual(\n idx, 'symbolOffset', (symbolOffset as SymbolOffsetCallback)(rawValue, params)\n );\n }\n\n return { dataEach: hasCallback ? dataEach : null };\n }\n};\n\nconst dataSymbolTask: StageHandler = {\n\n createOnAllSeries: true,\n\n // For legend.\n performRawSeries: true,\n\n reset: function (\n seriesModel: SeriesModel>,\n ecModel: GlobalModel\n ) {\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n function dataEach(data: SeriesData, idx: number) {\n const itemModel = data.getItemModel(idx);\n const itemSymbolType = itemModel.getShallow('symbol', true);\n const itemSymbolSize = itemModel.getShallow('symbolSize', true);\n const itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n const itemSymbolOffset = itemModel.getShallow('symbolOffset', true);\n const itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true);\n\n // If has item symbol\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n if (itemSymbolOffset != null) {\n data.setItemVisual(idx, 'symbolOffset', itemSymbolOffset);\n }\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n\n return { dataEach: data.hasItemOption ? dataEach : null };\n }\n};\n\nexport {seriesSymbolTask, dataSymbolTask};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * A mapping of visual provided to deverloper and visual stored in the List module.\n * To developer:\n * 'color', 'opacity', 'symbol', 'symbolSize'...\n * In the List module storage:\n * 'style', 'symbol', 'symbolSize'...\n */\nimport SeriesData from '../data/SeriesData';\n\n\nexport function getItemVisualFromData(data: SeriesData, dataIndex: number, key: string) {\n switch (key) {\n case 'color':\n const style = data.getItemVisual(dataIndex, 'style');\n return style[data.getVisual('drawType')];\n case 'opacity':\n return data.getItemVisual(dataIndex, 'style').opacity;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getItemVisual(dataIndex, key);\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}\n\nexport function getVisualFromData(data: SeriesData, key: string) {\n switch (key) {\n case 'color':\n const style = data.getVisual('style');\n return style[data.getVisual('drawType')];\n case 'opacity':\n return data.getVisual('style').opacity;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getVisual(key);\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}\n\nexport function setItemVisualFromData(data: SeriesData, dataIndex: number, key: string, value: any) {\n switch (key) {\n case 'color':\n // Make sure not sharing style object.\n const style = data.ensureUniqueItemVisual(dataIndex, 'style');\n style[data.getVisual('drawType')] = value;\n // Mark the color has been changed, not from palette anymore\n data.setItemVisual(dataIndex, 'colorFromPalette', false);\n break;\n case 'opacity':\n data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value;\n break;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n data.setItemVisual(dataIndex, key, value);\n break;\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Payload, SelectChangedPayload } from '../util/types';\nimport SeriesModel from '../model/Series';\nimport { extend, each, isArray } from 'zrender/src/core/util';\nimport GlobalModel from '../model/Global';\nimport { deprecateReplaceLog, deprecateLog } from '../util/log';\nimport Eventful from 'zrender/src/core/Eventful';\nimport type { EChartsType, registerAction } from '../core/echarts';\nimport { queryDataIndex } from '../util/model';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\n// Legacy data selection action.\n// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect\nexport function createLegacyDataSelectAction(seriesType: string, ecRegisterAction: typeof registerAction) {\n\n function getSeriesIndices(ecModel: GlobalModel, payload: Payload) {\n const seriesIndices: number[] = [];\n ecModel.eachComponent({\n mainType: 'series', subType: seriesType, query: payload\n }, function (seriesModel: SeriesModel) {\n seriesIndices.push(seriesModel.seriesIndex);\n });\n return seriesIndices;\n }\n\n each([\n [seriesType + 'ToggleSelect', 'toggleSelect'],\n [seriesType + 'Select', 'select'],\n [seriesType + 'UnSelect', 'unselect']\n ], function (eventsMap) {\n ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (__DEV__) {\n deprecateReplaceLog(payload.type, eventsMap[1]);\n }\n\n api.dispatchAction(extend(payload, {\n type: eventsMap[1],\n seriesIndex: getSeriesIndices(ecModel, payload)\n }));\n });\n });\n}\n\nfunction handleSeriesLegacySelectEvents(\n type: 'map' | 'pie',\n eventPostfix: 'selectchanged' | 'selected' | 'unselected',\n ecIns: EChartsType,\n ecModel: GlobalModel,\n payload: SelectChangedPayload\n) {\n const legacyEventName = type + eventPostfix;\n if (!ecIns.isSilent(legacyEventName)) {\n if (__DEV__) {\n deprecateLog(`event ${legacyEventName} is deprecated.`);\n }\n ecModel.eachComponent({\n mainType: 'series', subType: 'pie'\n }, function (seriesModel: SeriesModel) {\n const seriesIndex = seriesModel.seriesIndex;\n const selected = payload.selected;\n for (let i = 0; i < selected.length; i++) {\n if (selected[i].seriesIndex === seriesIndex) {\n const data = seriesModel.getData();\n const dataIndex = queryDataIndex(data, payload.fromActionPayload);\n ecIns.trigger(legacyEventName, {\n type: legacyEventName,\n seriesId: seriesModel.id,\n name: isArray(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex),\n selected: extend({}, seriesModel.option.selectedMap)\n });\n }\n }\n });\n }\n}\n\nexport function handleLegacySelectEvents(messageCenter: Eventful, ecIns: EChartsType, api: ExtensionAPI) {\n messageCenter.on('selectchanged', function (params: SelectChangedPayload) {\n const ecModel = api.getModel();\n if (params.isFromClick) {\n handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params);\n }\n else if (params.fromAction === 'select') {\n handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params);\n }\n else if (params.fromAction === 'unselect') {\n handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params);\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\n\nexport function findEventDispatcher(\n target: Element,\n det: (target: Element) => boolean,\n returnFirstMatch?: boolean\n) {\n let found;\n while (target) {\n if (det(target)) {\n found = target;\n if (returnFirstMatch) {\n break;\n }\n }\n\n target = target.__hostTarget || target.parent;\n }\n return found;\n}", "let wmUniqueIndex = Math.round(Math.random() * 9);\n\nconst supportDefineProperty = typeof Object.defineProperty === 'function';\n\nexport default class WeakMap {\n\n protected _id: string;\n\n constructor() {\n this._id = '__ec_inner_' + wmUniqueIndex++;\n }\n\n get(key: K): V {\n return (this._guard(key) as any)[this._id];\n }\n\n set(key: K, value: V): WeakMap {\n const target = this._guard(key) as any;\n if (supportDefineProperty) {\n Object.defineProperty(target, this._id, {\n value: value,\n enumerable: false,\n configurable: true\n });\n }\n else {\n target[this._id] = value;\n }\n return this;\n }\n\n delete(key: K): boolean {\n if (this.has(key)) {\n delete (this._guard(key) as any)[this._id];\n return true;\n }\n return false;\n }\n\n has(key: K): boolean {\n return !!(this._guard(key) as any)[this._id];\n }\n\n protected _guard(key: K): K {\n if (key !== Object(key)) {\n throw TypeError('Value of WeakMap is not a non-null object.');\n }\n return key;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Symbol factory\n\nimport { each, isArray, retrieve2 } from 'zrender/src/core/util';\nimport * as graphic from './graphic';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { calculateTextPosition } from 'zrender/src/contain/text';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { SymbolOptionMixin, ZRColor } from './types';\nimport { parsePercent } from './number';\n\nexport type ECSymbol = graphic.Path & {\n __isEmptyBrush?: boolean\n setColor: (color: ZRColor, innerColor?: ZRColor) => void\n getColor: () => ZRColor\n};\ntype SymbolCtor = { new(): ECSymbol };\ntype SymbolShapeMaker = (x: number, y: number, w: number, h: number, shape: Dictionary) => void;\n\n/**\n * Triangle shape\n * @inner\n */\nconst Triangle = graphic.Path.extend({\n type: 'triangle',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n const cx = shape.cx;\n const cy = shape.cy;\n const width = shape.width / 2;\n const height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy + height);\n path.lineTo(cx - width, cy + height);\n path.closePath();\n }\n});\n\n/**\n * Diamond shape\n * @inner\n */\nconst Diamond = graphic.Path.extend({\n type: 'diamond',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n const cx = shape.cx;\n const cy = shape.cy;\n const width = shape.width / 2;\n const height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy);\n path.lineTo(cx, cy + height);\n path.lineTo(cx - width, cy);\n path.closePath();\n }\n});\n\n/**\n * Pin shape\n * @inner\n */\nconst Pin = graphic.Path.extend({\n type: 'pin',\n shape: {\n // x, y on the cusp\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n buildPath: function (path, shape) {\n const x = shape.x;\n const y = shape.y;\n const w = shape.width / 5 * 3;\n // Height must be larger than width\n const h = Math.max(w, shape.height);\n const r = w / 2;\n\n // Dist on y with tangent point and circle center\n const dy = r * r / (h - r);\n const cy = y - h + r + dy;\n const angle = Math.asin(dy / r);\n // Dist on x with tangent point and circle center\n const dx = Math.cos(angle) * r;\n\n const tanX = Math.sin(angle);\n const tanY = Math.cos(angle);\n\n const cpLen = r * 0.6;\n const cpLen2 = r * 0.7;\n\n path.moveTo(x - dx, cy + dy);\n\n path.arc(\n x, cy, r,\n Math.PI - angle,\n Math.PI * 2 + angle\n );\n path.bezierCurveTo(\n x + dx - tanX * cpLen, cy + dy + tanY * cpLen,\n x, y - cpLen2,\n x, y\n );\n path.bezierCurveTo(\n x, y - cpLen2,\n x - dx + tanX * cpLen, cy + dy + tanY * cpLen,\n x - dx, cy + dy\n );\n path.closePath();\n }\n});\n\n/**\n * Arrow shape\n * @inner\n */\nconst Arrow = graphic.Path.extend({\n\n type: 'arrow',\n\n shape: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n buildPath: function (ctx, shape) {\n const height = shape.height;\n const width = shape.width;\n const x = shape.x;\n const y = shape.y;\n const dx = width / 3 * 2;\n ctx.moveTo(x, y);\n ctx.lineTo(x + dx, y + height);\n ctx.lineTo(x, y + height / 4 * 3);\n ctx.lineTo(x - dx, y + height);\n ctx.lineTo(x, y);\n ctx.closePath();\n }\n});\n\n/**\n * Map of path contructors\n */\n// TODO Use function to build symbol path.\nconst symbolCtors: Dictionary = {\n line: graphic.Line as unknown as SymbolCtor,\n\n rect: graphic.Rect as unknown as SymbolCtor,\n\n roundRect: graphic.Rect as unknown as SymbolCtor,\n\n square: graphic.Rect as unknown as SymbolCtor,\n\n circle: graphic.Circle as unknown as SymbolCtor,\n\n diamond: Diamond as unknown as SymbolCtor,\n\n pin: Pin as unknown as SymbolCtor,\n\n arrow: Arrow as unknown as SymbolCtor,\n\n triangle: Triangle as unknown as SymbolCtor\n};\n\n\nconst symbolShapeMakers: Dictionary = {\n\n line: function (x, y, w, h, shape: graphic.Line['shape']) {\n shape.x1 = x;\n shape.y1 = y + h / 2;\n shape.x2 = x + w;\n shape.y2 = y + h / 2;\n },\n\n rect: function (x, y, w, h, shape: graphic.Rect['shape']) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n },\n\n roundRect: function (x, y, w, h, shape: graphic.Rect['shape']) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n shape.r = Math.min(w, h) / 4;\n },\n\n square: function (x, y, w, h, shape: graphic.Rect['shape']) {\n const size = Math.min(w, h);\n shape.x = x;\n shape.y = y;\n shape.width = size;\n shape.height = size;\n },\n\n circle: function (x, y, w, h, shape: graphic.Circle['shape']) {\n // Put circle in the center of square\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.r = Math.min(w, h) / 2;\n },\n\n diamond: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n pin: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n arrow: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n triangle: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n }\n};\n\nexport const symbolBuildProxies: Dictionary = {};\neach(symbolCtors, function (Ctor, name) {\n symbolBuildProxies[name] = new Ctor();\n});\n\nconst SymbolClz = graphic.Path.extend({\n\n type: 'symbol',\n\n shape: {\n symbolType: '',\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n calculateTextPosition(out, config, rect) {\n const res = calculateTextPosition(out, config, rect);\n const shape = this.shape;\n if (shape && shape.symbolType === 'pin' && config.position === 'inside') {\n res.y = rect.y + rect.height * 0.4;\n }\n return res;\n },\n\n buildPath(ctx, shape, inBundle) {\n let symbolType = shape.symbolType;\n if (symbolType !== 'none') {\n let proxySymbol = symbolBuildProxies[symbolType];\n if (!proxySymbol) {\n // Default rect\n symbolType = 'rect';\n proxySymbol = symbolBuildProxies[symbolType];\n }\n symbolShapeMakers[symbolType](\n shape.x, shape.y, shape.width, shape.height, proxySymbol.shape\n );\n proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);\n }\n }\n});\n\n// Provide setColor helper method to avoid determine if set the fill or stroke outside\nfunction symbolPathSetColor(this: ECSymbol, color: ZRColor, innerColor?: ZRColor) {\n if (this.type !== 'image') {\n const symbolStyle = this.style;\n if (this.__isEmptyBrush) {\n symbolStyle.stroke = color;\n symbolStyle.fill = innerColor || '#fff';\n // TODO Same width with lineStyle in LineView\n symbolStyle.lineWidth = 2;\n }\n else if (this.shape.symbolType === 'line') {\n symbolStyle.stroke = color;\n }\n else {\n symbolStyle.fill = color;\n }\n this.markRedraw();\n }\n}\n\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n */\nexport function createSymbol(\n symbolType: string,\n x: number,\n y: number,\n w: number,\n h: number,\n color?: ZRColor,\n // whether to keep the ratio of w/h,\n keepAspect?: boolean\n) {\n // TODO Support image object, DynamicImage.\n\n const isEmpty = symbolType.indexOf('empty') === 0;\n if (isEmpty) {\n symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);\n }\n let symbolPath: ECSymbol | graphic.Image;\n\n if (symbolType.indexOf('image://') === 0) {\n symbolPath = graphic.makeImage(\n symbolType.slice(8),\n new BoundingRect(x, y, w, h),\n keepAspect ? 'center' : 'cover'\n );\n }\n else if (symbolType.indexOf('path://') === 0) {\n symbolPath = graphic.makePath(\n symbolType.slice(7),\n {},\n new BoundingRect(x, y, w, h),\n keepAspect ? 'center' : 'cover'\n ) as unknown as ECSymbol;\n }\n else {\n symbolPath = new SymbolClz({\n shape: {\n symbolType: symbolType,\n x: x,\n y: y,\n width: w,\n height: h\n }\n }) as unknown as ECSymbol;\n }\n\n (symbolPath as ECSymbol).__isEmptyBrush = isEmpty;\n\n // TODO Should deprecate setColor\n (symbolPath as ECSymbol).setColor = symbolPathSetColor;\n\n if (color) {\n (symbolPath as ECSymbol).setColor(color);\n }\n\n return symbolPath as ECSymbol;\n}\n\nexport function normalizeSymbolSize(symbolSize: number | number[]): [number, number] {\n if (!isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n return [symbolSize[0] || 0, symbolSize[1] || 0];\n}\n\nexport function normalizeSymbolOffset(\n symbolOffset: SymbolOptionMixin['symbolOffset'],\n symbolSize: number[]\n): [number, number] {\n if (symbolOffset == null) {\n return;\n }\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n return [\n parsePercent(symbolOffset[0], symbolSize[0]) || 0,\n parsePercent(retrieve2(symbolOffset[1], symbolOffset[0]), symbolSize[1]) || 0\n ];\n}\n", "import { LinearGradientObject } from '../graphic/LinearGradient';\nimport { RadialGradientObject } from '../graphic/RadialGradient';\nimport { GradientObject } from '../graphic/Gradient';\nimport { RectLike } from '../core/BoundingRect';\nimport Path from '../graphic/Path';\n\nexport function createLinearGradient(\n this: void,\n ctx: CanvasRenderingContext2D,\n obj: LinearGradientObject,\n rect: RectLike\n) {\n let x = obj.x == null ? 0 : obj.x;\n let x2 = obj.x2 == null ? 1 : obj.x2;\n let y = obj.y == null ? 0 : obj.y;\n let y2 = obj.y2 == null ? 0 : obj.y2;\n\n if (!obj.global) {\n x = x * rect.width + rect.x;\n x2 = x2 * rect.width + rect.x;\n y = y * rect.height + rect.y;\n y2 = y2 * rect.height + rect.y;\n }\n\n // Fix NaN when rect is Infinity\n x = isNaN(x) ? 0 : x;\n x2 = isNaN(x2) ? 1 : x2;\n y = isNaN(y) ? 0 : y;\n y2 = isNaN(y2) ? 0 : y2;\n\n const canvasGradient = ctx.createLinearGradient(x, y, x2, y2);\n\n return canvasGradient;\n}\n\nexport function createRadialGradient(\n this: void,\n ctx: CanvasRenderingContext2D,\n obj: RadialGradientObject,\n rect: RectLike\n) {\n const width = rect.width;\n const height = rect.height;\n const min = Math.min(width, height);\n\n let x = obj.x == null ? 0.5 : obj.x;\n let y = obj.y == null ? 0.5 : obj.y;\n let r = obj.r == null ? 0.5 : obj.r;\n if (!obj.global) {\n x = x * width + rect.x;\n y = y * height + rect.y;\n r = r * min;\n }\n\n const canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);\n\n return canvasGradient;\n}\n\nexport function getCanvasGradient(this: void, ctx: CanvasRenderingContext2D, obj: GradientObject, rect: RectLike) {\n // TODO Cache?\n const canvasGradient = obj.type === 'radial'\n ? createRadialGradient(ctx, obj as RadialGradientObject, rect)\n : createLinearGradient(ctx, obj as LinearGradientObject, rect);\n\n const colorStops = obj.colorStops;\n for (let i = 0; i < colorStops.length; i++) {\n canvasGradient.addColorStop(\n colorStops[i].offset, colorStops[i].color\n );\n }\n return canvasGradient;\n}\n\nexport function isClipPathChanged(clipPaths: Path[], prevClipPaths: Path[]): boolean {\n // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array.\n if (clipPaths === prevClipPaths || (!clipPaths && !prevClipPaths)) {\n return false;\n }\n if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {\n return true;\n }\n for (let i = 0; i < clipPaths.length; i++) {\n if (clipPaths[i] !== prevClipPaths[i]) {\n return true;\n }\n }\n return false;\n}", "import { isArray, isNumber } from '../../core/util';\n\nexport function normalizeLineDash(lineType: any, lineWidth?: number): number[] | false {\n if (!lineType || lineType === 'solid' || !(lineWidth > 0)) {\n return null;\n }\n lineWidth = lineWidth || 1;\n return lineType === 'dashed' \n ? [4 * lineWidth, 2 * lineWidth]\n : lineType === 'dotted' \n ? [lineWidth]\n : isNumber(lineType)\n ? [lineType] : isArray(lineType) ? lineType : null;\n}", "import Displayable, { DEFAULT_COMMON_STYLE } from '../graphic/Displayable';\nimport PathProxy from '../core/PathProxy';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject, InnerImagePatternObject } from '../graphic/Pattern';\nimport { LinearGradientObject } from '../graphic/LinearGradient';\nimport { RadialGradientObject } from '../graphic/RadialGradient';\nimport { ZRCanvasRenderingContext } from '../core/types';\nimport { createOrUpdateImage, isImageReady } from '../graphic/helper/image';\nimport { getCanvasGradient, isClipPathChanged } from './helper';\nimport Path, { PathStyleProps } from '../graphic/Path';\nimport ZRImage, { ImageStyleProps } from '../graphic/Image';\nimport TSpan, {TSpanStyleProps} from '../graphic/TSpan';\nimport { DEFAULT_FONT } from '../contain/text';\nimport { MatrixArray } from '../core/matrix';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT } from '../graphic/constants';\n\nconst pathProxyForDraw = new PathProxy(true);\n\n// Not use el#hasStroke because style may be different.\nfunction styleHasStroke(style: PathStyleProps) {\n const stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n}\n\n// ignore lineWidth and must be string\n// Expected color but found '[' when color is gradient\nfunction isValidStrokeFillStyle(\n strokeOrFill: PathStyleProps['stroke'] | PathStyleProps['fill']\n): strokeOrFill is string {\n return typeof strokeOrFill === 'string' && strokeOrFill !== 'none';\n}\n\nfunction styleHasFill(style: PathStyleProps) {\n const fill = style.fill;\n return fill != null && fill !== 'none';\n}\nfunction doFillPath(ctx: CanvasRenderingContext2D, style: PathStyleProps) {\n if (style.fillOpacity != null && style.fillOpacity !== 1) {\n const originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.fillOpacity * style.opacity;\n ctx.fill();\n // Set back globalAlpha\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.fill();\n }\n}\n\nfunction doStrokePath(ctx: CanvasRenderingContext2D, style: PathStyleProps) {\n if (style.strokeOpacity != null && style.strokeOpacity !== 1) {\n const originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.strokeOpacity * style.opacity;\n ctx.stroke();\n // Set back globalAlpha\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.stroke();\n }\n}\n\nexport function createCanvasPattern(\n this: void,\n ctx: CanvasRenderingContext2D,\n pattern: ImagePatternObject,\n el: {dirty: () => void}\n): CanvasPattern {\n const image = createOrUpdateImage(pattern.image, (pattern as InnerImagePatternObject).__image, el);\n if (isImageReady(image)) {\n const canvasPattern = ctx.createPattern(image, pattern.repeat || 'repeat');\n if (\n typeof DOMMatrix === 'function'\n && canvasPattern.setTransform // setTransform may not be supported in some old devices.\n ) {\n const matrix = new DOMMatrix();\n matrix.rotateSelf(0, 0, (pattern.rotation || 0) / Math.PI * 180);\n matrix.scaleSelf((pattern.scaleX || 1), (pattern.scaleY || 1));\n matrix.translateSelf((pattern.x || 0), (pattern.y || 0));\n canvasPattern.setTransform(matrix);\n }\n return canvasPattern;\n }\n}\n\n// Draw Path Elements\nfunction brushPath(ctx: CanvasRenderingContext2D, el: Path, style: PathStyleProps, inBatch: boolean) {\n let hasStroke = styleHasStroke(style);\n let hasFill = styleHasFill(style);\n\n const strokePercent = style.strokePercent;\n const strokePart = strokePercent < 1;\n\n // TODO Reduce path memory cost.\n const firstDraw = !el.path;\n // Create path for each element when:\n // 1. Element has interactions.\n // 2. Element draw part of the line.\n if ((!el.silent || strokePart) && firstDraw) {\n el.createPathProxy();\n }\n\n const path = el.path || pathProxyForDraw;\n\n if (!inBatch) {\n const fill = style.fill;\n const stroke = style.stroke;\n\n const hasFillGradient = hasFill && !!(fill as GradientObject).colorStops;\n const hasStrokeGradient = hasStroke && !!(stroke as GradientObject).colorStops;\n const hasFillPattern = hasFill && !!(fill as ImagePatternObject).image;\n const hasStrokePattern = hasStroke && !!(stroke as ImagePatternObject).image;\n\n let fillGradient;\n let strokeGradient;\n let fillPattern;\n let strokePattern;\n let rect;\n if (hasFillGradient || hasStrokeGradient) {\n rect = el.getBoundingRect();\n }\n // Update gradient because bounding rect may changed\n if (hasFillGradient) {\n fillGradient = el.__dirty\n ? getCanvasGradient(ctx, fill as (LinearGradientObject | RadialGradientObject), rect)\n : el.__canvasFillGradient;\n // No need to clear cache when fill is not gradient.\n // It will always been updated when fill changed back to gradient.\n el.__canvasFillGradient = fillGradient;\n }\n if (hasStrokeGradient) {\n strokeGradient = el.__dirty\n ? getCanvasGradient(ctx, stroke as (LinearGradientObject | RadialGradientObject), rect)\n : el.__canvasStrokeGradient;\n el.__canvasStrokeGradient = strokeGradient;\n }\n if (hasFillPattern) {\n // Pattern might be null if image not ready (even created from dataURI)\n fillPattern = (el.__dirty || !el.__canvasFillPattern)\n ? createCanvasPattern(ctx, fill as ImagePatternObject, el)\n : el.__canvasFillPattern;\n el.__canvasFillPattern = fillPattern;\n }\n if (hasStrokePattern) {\n // Pattern might be null if image not ready (even created from dataURI)\n strokePattern = (el.__dirty || !el.__canvasStrokePattern)\n ? createCanvasPattern(ctx, stroke as ImagePatternObject, el)\n : el.__canvasStrokePattern;\n el.__canvasStrokePattern = fillPattern;\n }\n // Use the gradient or pattern\n if (hasFillGradient) {\n // PENDING If may have affect the state\n ctx.fillStyle = fillGradient;\n }\n else if (hasFillPattern) {\n if (fillPattern) { // createCanvasPattern may return false if image is not ready.\n ctx.fillStyle = fillPattern;\n }\n else {\n // Don't fill if image is not ready\n hasFill = false;\n }\n }\n if (hasStrokeGradient) {\n ctx.strokeStyle = strokeGradient;\n }\n else if (hasStrokePattern) {\n if (strokePattern) {\n ctx.strokeStyle = strokePattern;\n }\n else {\n // Don't stroke if image is not ready\n hasStroke = false;\n }\n }\n }\n\n let lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n let lineDashOffset = style.lineDashOffset;\n\n const ctxLineDash = !!ctx.setLineDash;\n\n // Update path sx, sy\n const scale = el.getGlobalScale();\n path.setScale(scale[0], scale[1], el.segmentIgnoreThreshold);\n\n if (lineDash) {\n const lineScale = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale && lineScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale;\n });\n lineDashOffset /= lineScale;\n }\n }\n\n let needsRebuild = true;\n // Proxy context\n // Rebuild path in following 2 cases\n // 1. Path is dirty\n // 2. Path needs javascript implemented lineDash stroking.\n // In this case, lineDash information will not be saved in PathProxy\n if (firstDraw || (el.__dirty & SHAPE_CHANGED_BIT)\n || (lineDash && !ctxLineDash && hasStroke)\n ) {\n path.setDPR((ctx as any).dpr);\n if (strokePart) {\n // Use rebuildPath for percent stroke, so no context.\n path.setContext(null);\n }\n else {\n path.setContext(ctx);\n needsRebuild = false;\n }\n path.reset();\n\n // Setting line dash before build path\n if (lineDash && !ctxLineDash) {\n path.setLineDash(lineDash);\n path.setLineDashOffset(lineDashOffset);\n }\n\n el.buildPath(path, el.shape, inBatch);\n path.toStatic();\n\n // Clear path dirty flag\n el.pathUpdated();\n }\n\n // Not support separate fill and stroke. For the compatibility of SVG\n if (needsRebuild) {\n path.rebuildPath(ctx, strokePart ? strokePercent : 1);\n }\n\n if (lineDash && ctxLineDash) {\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (!inBatch) {\n if (style.strokeFirst) {\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n if (hasFill) {\n doFillPath(ctx, style);\n }\n }\n else {\n if (hasFill) {\n doFillPath(ctx, style);\n }\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n }\n }\n\n if (lineDash && ctxLineDash) {\n // PENDING\n // Remove lineDash\n ctx.setLineDash([]);\n }\n}\n\n// Draw Image Elements\nfunction brushImage(ctx: CanvasRenderingContext2D, el: ZRImage, style: ImageStyleProps) {\n const image = el.__image = createOrUpdateImage(\n style.image,\n el.__image,\n el,\n el.onload\n );\n\n if (!image || !isImageReady(image)) {\n return;\n }\n\n const x = style.x || 0;\n const y = style.y || 0;\n let width = el.getWidth();\n let height = el.getHeight();\n const aspect = image.width / image.height;\n if (width == null && height != null) {\n // Keep image/height ratio\n width = height * aspect;\n }\n else if (height == null && width != null) {\n height = width / aspect;\n }\n else if (width == null && height == null) {\n width = image.width;\n height = image.height;\n }\n\n if (style.sWidth && style.sHeight) {\n const sx = style.sx || 0;\n const sy = style.sy || 0;\n ctx.drawImage(\n image,\n sx, sy, style.sWidth, style.sHeight,\n x, y, width, height\n );\n }\n else if (style.sx && style.sy) {\n const sx = style.sx;\n const sy = style.sy;\n const sWidth = width - sx;\n const sHeight = height - sy;\n ctx.drawImage(\n image,\n sx, sy, sWidth, sHeight,\n x, y, width, height\n );\n }\n else {\n ctx.drawImage(image, x, y, width, height);\n }\n}\n\n// Draw Text Elements\nfunction brushText(ctx: CanvasRenderingContext2D, el: TSpan, style: TSpanStyleProps) {\n\n let text = style.text;\n // Convert to string\n text != null && (text += '');\n\n if (text) {\n ctx.font = style.font || DEFAULT_FONT;\n ctx.textAlign = style.textAlign;\n ctx.textBaseline = style.textBaseline;\n\n let hasLineDash;\n if (ctx.setLineDash) {\n let lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n let lineDashOffset = style.lineDashOffset;\n if (lineDash) {\n const lineScale = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale && lineScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale;\n });\n lineDashOffset /= lineScale;\n }\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n\n hasLineDash = true;\n }\n }\n\n if (style.strokeFirst) {\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n }\n else {\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n }\n\n if (hasLineDash) {\n // Remove lineDash\n ctx.setLineDash([]);\n }\n }\n\n}\n\nconst SHADOW_NUMBER_PROPS = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'] as const;\nconst STROKE_PROPS = [\n ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]\n] as const;\n\ntype AllStyleOption = PathStyleProps | TSpanStyleProps | ImageStyleProps;\n// type ShadowPropNames = typeof SHADOW_PROPS[number][0];\n// type StrokePropNames = typeof STROKE_PROPS[number][0];\n// type DrawPropNames = typeof DRAW_PROPS[number][0];\n\nfunction bindCommonProps(\n ctx: CanvasRenderingContext2D,\n style: AllStyleOption,\n prevStyle: AllStyleOption,\n forceSetAll: boolean,\n scope: BrushScope\n): boolean {\n let styleChanged = false;\n\n if (!forceSetAll) {\n prevStyle = prevStyle || {};\n\n // Shared same style.\n if (style === prevStyle) {\n return false;\n }\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // Ensure opacity is between 0 ~ 1. Invalid opacity will lead to a failure set and use the leaked opacity from the previous.\n const opacity = Math.max(Math.min(style.opacity, 1), 0);\n ctx.globalAlpha = isNaN(opacity) ? DEFAULT_COMMON_STYLE.opacity : opacity;\n }\n\n if (forceSetAll || style.blend !== prevStyle.blend) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;\n }\n for (let i = 0; i < SHADOW_NUMBER_PROPS.length; i++) {\n const propName = SHADOW_NUMBER_PROPS[i];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // FIXME Invalid property value will cause style leak from previous element.\n ctx[propName] = (ctx as ZRCanvasRenderingContext).dpr * (style[propName] || 0);\n }\n }\n if (forceSetAll || style.shadowColor !== prevStyle.shadowColor) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.shadowColor = style.shadowColor || DEFAULT_COMMON_STYLE.shadowColor;\n }\n return styleChanged;\n}\n\nfunction bindPathAndTextCommonStyle(\n ctx: CanvasRenderingContext2D,\n el: TSpan | Path,\n prevEl: TSpan | Path,\n forceSetAll: boolean,\n scope: BrushScope\n) {\n const style = getStyle(el, scope.inHover);\n const prevStyle = forceSetAll\n ? null\n : (prevEl && getStyle(prevEl, scope.inHover) || {});\n // Shared same style. prevStyle will be null if forceSetAll.\n if (style === prevStyle) {\n return false;\n }\n\n let styleChanged = bindCommonProps(ctx, style, prevStyle, forceSetAll, scope);\n\n if (forceSetAll || style.fill !== prevStyle.fill) {\n if (!styleChanged) {\n // Flush before set\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n isValidStrokeFillStyle(style.fill) && (ctx.fillStyle = style.fill);\n }\n if (forceSetAll || style.stroke !== prevStyle.stroke) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n isValidStrokeFillStyle(style.stroke) && (ctx.strokeStyle = style.stroke);\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;\n }\n if (el.hasStroke()) {\n const lineWidth = style.lineWidth;\n const newLineWidth = lineWidth / (\n (style.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1\n );\n if (ctx.lineWidth !== newLineWidth) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.lineWidth = newLineWidth;\n }\n }\n\n for (let i = 0; i < STROKE_PROPS.length; i++) {\n const prop = STROKE_PROPS[i];\n const propName = prop[0];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // FIXME Invalid property value will cause style leak from previous element.\n (ctx as any)[propName] = style[propName] || prop[1];\n }\n }\n\n return styleChanged;\n}\n\nfunction bindImageStyle(\n ctx: CanvasRenderingContext2D,\n el: ZRImage,\n prevEl: ZRImage,\n // forceSetAll must be true if prevEl is null\n forceSetAll: boolean,\n scope: BrushScope\n) {\n return bindCommonProps(\n ctx,\n getStyle(el, scope.inHover),\n prevEl && getStyle(prevEl, scope.inHover),\n forceSetAll,\n scope\n );\n}\n\nfunction setContextTransform(ctx: CanvasRenderingContext2D, el: Displayable) {\n const m = el.transform;\n const dpr = (ctx as ZRCanvasRenderingContext).dpr || 1;\n if (m) {\n ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);\n }\n else {\n ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n}\n\nfunction updateClipStatus(clipPaths: Path[], ctx: CanvasRenderingContext2D, scope: BrushScope) {\n let allClipped = false;\n for (let i = 0; i < clipPaths.length; i++) {\n const clipPath = clipPaths[i];\n // Ignore draw following elements if clipPath has zero area.\n allClipped = allClipped || clipPath.isZeroArea();\n\n setContextTransform(ctx, clipPath);\n ctx.beginPath();\n clipPath.buildPath(ctx, clipPath.shape);\n ctx.clip();\n }\n scope.allClipped = allClipped;\n}\n\nfunction isTransformChanged(m0: MatrixArray, m1: MatrixArray): boolean {\n if (m0 && m1) {\n return m0[0] !== m1[0]\n || m0[1] !== m1[1]\n || m0[2] !== m1[2]\n || m0[3] !== m1[3]\n || m0[4] !== m1[4]\n || m0[5] !== m1[5];\n }\n else if (!m0 && !m1) { // All identity matrix.\n return false;\n }\n\n return true;\n}\n\nconst DRAW_TYPE_PATH = 1;\nconst DRAW_TYPE_IMAGE = 2;\nconst DRAW_TYPE_TEXT = 3;\nconst DRAW_TYPE_INCREMENTAL = 4;\n\nexport type BrushScope = {\n inHover: boolean\n\n // width / height of viewport\n viewWidth: number\n viewHeight: number\n\n // Status for clipping\n prevElClipPaths?: Path[]\n prevEl?: Displayable\n allClipped?: boolean // If the whole element can be clipped\n\n // Status for batching\n batchFill?: string\n batchStroke?: string\n\n lastDrawType?: number\n}\n\n// If path can be batched\nfunction canPathBatch(style: PathStyleProps) {\n\n const hasFill = styleHasFill(style);\n const hasStroke = styleHasStroke(style);\n\n return !(\n // Line dash is dynamically set in brush function.\n style.lineDash\n // Can't batch if element is both set fill and stroke. Or both not set\n || !(+hasFill ^ +hasStroke)\n // Can't batch if element is drawn with gradient or pattern.\n || (hasFill && typeof style.fill !== 'string')\n || (hasStroke && typeof style.stroke !== 'string')\n // Can't batch if element only stroke part of line.\n || style.strokePercent < 1\n // Has stroke or fill opacity\n || style.strokeOpacity < 1\n || style.fillOpacity < 1\n );\n}\n\nfunction flushPathDrawn(ctx: CanvasRenderingContext2D, scope: BrushScope) {\n // Force flush all after drawn last element\n scope.batchFill && ctx.fill();\n scope.batchStroke && ctx.stroke();\n scope.batchFill = '';\n scope.batchStroke = '';\n}\n\nfunction getStyle(el: Displayable, inHover?: boolean) {\n return inHover ? (el.__hoverStyle || el.style) : el.style;\n}\n\nexport function brushSingle(ctx: CanvasRenderingContext2D, el: Displayable) {\n brush(ctx, el, { inHover: false, viewWidth: 0, viewHeight: 0 }, true);\n}\n\n// Brush different type of elements.\nexport function brush(\n ctx: CanvasRenderingContext2D,\n el: Displayable,\n scope: BrushScope,\n isLast: boolean\n) {\n const m = el.transform;\n\n if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, false, false)) {\n // Needs to mark el rendered.\n // Or this element will always been rendered in progressive rendering.\n // But other dirty bit should not be cleared, otherwise it cause the shape\n // can not be updated in this case.\n el.__dirty &= ~REDARAW_BIT;\n el.__isRendered = false;\n return;\n }\n\n // HANDLE CLIPPING\n const clipPaths = el.__clipPaths;\n const prevElClipPaths = scope.prevElClipPaths;\n\n let forceSetTransform = false;\n let forceSetStyle = false;\n // Optimize when clipping on group with several elements\n if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {\n // If has previous clipping state, restore from it\n if (prevElClipPaths && prevElClipPaths.length) {\n // Flush restore\n flushPathDrawn(ctx, scope);\n\n ctx.restore();\n // Must set all style and transform because context changed by restore\n forceSetStyle = forceSetTransform = true;\n\n scope.prevElClipPaths = null;\n scope.allClipped = false;\n // Reset prevEl since context has been restored\n scope.prevEl = null;\n }\n // New clipping state\n if (clipPaths && clipPaths.length) {\n // Flush before clip\n flushPathDrawn(ctx, scope);\n\n ctx.save();\n updateClipStatus(clipPaths, ctx, scope);\n // Must set transform because it's changed when clip.\n forceSetTransform = true;\n }\n scope.prevElClipPaths = clipPaths;\n }\n\n // Not rendering elements if it's clipped by a zero area path.\n // Or it may cause bug on some version of IE11 (like 11.0.9600.178**),\n // where exception \"unexpected call to method or property access\"\n // might be thrown when calling ctx.fill or ctx.stroke after a path\n // whose area size is zero is drawn and ctx.clip() is called and\n // shadowBlur is set. See #4572, #3112, #5777.\n // (e.g.,\n // ctx.moveTo(10, 10);\n // ctx.lineTo(20, 10);\n // ctx.closePath();\n // ctx.clip();\n // ctx.shadowBlur = 10;\n // ...\n // ctx.fill();\n // )\n if (scope.allClipped) {\n el.__isRendered = false;\n return;\n }\n\n // START BRUSH\n el.beforeBrush && el.beforeBrush();\n el.innerBeforeBrush();\n\n const prevEl = scope.prevEl;\n // TODO el type changed.\n if (!prevEl) {\n forceSetStyle = forceSetTransform = true;\n }\n\n let canBatchPath = el instanceof Path // Only path supports batch\n && el.autoBatch\n && canPathBatch(el.style);\n\n if (forceSetTransform || isTransformChanged(m, prevEl.transform)) {\n // Flush\n flushPathDrawn(ctx, scope);\n setContextTransform(ctx, el);\n }\n else if (!canBatchPath) {\n // Flush\n flushPathDrawn(ctx, scope);\n }\n\n const style = getStyle(el, scope.inHover);\n if (el instanceof Path) {\n // PENDING do we need to rebind all style if displayable type changed?\n if (scope.lastDrawType !== DRAW_TYPE_PATH) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_PATH;\n }\n\n bindPathAndTextCommonStyle(ctx, el as Path, prevEl as Path, forceSetStyle, scope);\n // Begin path at start\n if (!canBatchPath || (!scope.batchFill && !scope.batchStroke)) {\n ctx.beginPath();\n }\n brushPath(ctx, el as Path, style, canBatchPath);\n\n if (canBatchPath) {\n scope.batchFill = style.fill as string || '';\n scope.batchStroke = style.stroke as string || '';\n }\n }\n else {\n if (el instanceof TSpan) {\n if (scope.lastDrawType !== DRAW_TYPE_TEXT) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_TEXT;\n }\n\n bindPathAndTextCommonStyle(ctx, el as TSpan, prevEl as TSpan, forceSetStyle, scope);\n brushText(ctx, el as TSpan, style);\n }\n else if (el instanceof ZRImage) {\n if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_IMAGE;\n }\n\n bindImageStyle(ctx, el as ZRImage, prevEl as ZRImage, forceSetStyle, scope);\n brushImage(ctx, el as ZRImage, style);\n }\n else if (el instanceof IncrementalDisplayable) {\n if (scope.lastDrawType !== DRAW_TYPE_INCREMENTAL) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_INCREMENTAL;\n }\n\n brushIncremental(ctx, el, scope);\n }\n\n }\n\n if (canBatchPath && isLast) {\n flushPathDrawn(ctx, scope);\n }\n\n el.innerAfterBrush();\n el.afterBrush && el.afterBrush();\n\n scope.prevEl = el;\n\n // Mark as painted.\n el.__dirty = 0;\n el.__isRendered = true;\n}\n\nfunction brushIncremental(\n ctx: CanvasRenderingContext2D,\n el: IncrementalDisplayable,\n scope: BrushScope\n) {\n let displayables = el.getDisplayables();\n let temporalDisplayables = el.getTemporalDisplayables();\n // Provide an inner scope.\n // Save current context and restore after brushed.\n ctx.save();\n let innerScope: BrushScope = {\n prevElClipPaths: null,\n prevEl: null,\n allClipped: false,\n viewWidth: scope.viewWidth,\n viewHeight: scope.viewHeight,\n inHover: scope.inHover\n };\n let i;\n let len;\n // Render persistant displayables.\n for (i = el.getCursor(), len = displayables.length; i < len; i++) {\n const displayable = displayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n // Render temporary displayables.\n for (let i = 0, len = temporalDisplayables.length; i < len; i++) {\n const displayable = temporalDisplayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n el.clearTemporalDisplayables();\n el.notClear = true;\n\n ctx.restore();\n}", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport WeakMap from 'zrender/src/core/WeakMap';\nimport { ImagePatternObject, PatternObject, SVGPatternObject } from 'zrender/src/graphic/Pattern';\nimport LRU from 'zrender/src/core/LRU';\nimport {defaults, createCanvas, map, isArray} from 'zrender/src/core/util';\nimport {getLeastCommonMultiple} from './number';\nimport {createSymbol} from './symbol';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport type SVGPainter from 'zrender/src/svg/Painter';\nimport { brushSingle } from 'zrender/src/canvas/graphic';\nimport {DecalDashArrayX, DecalDashArrayY, InnerDecalObject, DecalObject} from './types';\n\nconst decalMap = new WeakMap();\n\nconst decalCache = new LRU(100);\n\nconst decalKeys = [\n 'symbol', 'symbolSize', 'symbolKeepAspect',\n 'color', 'backgroundColor',\n 'dashArrayX', 'dashArrayY',\n 'maxTileWidth', 'maxTileHeight'\n];\n\n/**\n * Create or update pattern image from decal options\n *\n * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal\n * @return {Pattern} pattern with generated image, null if no decal\n */\nexport function createOrUpdatePatternFromDecal(\n decalObject: InnerDecalObject | 'none',\n api: ExtensionAPI\n): PatternObject {\n if (decalObject === 'none') {\n return null;\n }\n\n const dpr = api.getDevicePixelRatio();\n const zr = api.getZr();\n const isSVG = zr.painter.type === 'svg';\n\n if (decalObject.dirty) {\n decalMap.delete(decalObject);\n }\n\n const oldPattern = decalMap.get(decalObject);\n if (oldPattern) {\n return oldPattern;\n }\n\n const decalOpt = defaults(decalObject, {\n symbol: 'rect',\n symbolSize: 1,\n symbolKeepAspect: true,\n color: 'rgba(0, 0, 0, 0.2)',\n backgroundColor: null,\n dashArrayX: 5,\n dashArrayY: 5,\n rotation: 0,\n maxTileWidth: 512,\n maxTileHeight: 512\n } as DecalObject);\n if (decalOpt.backgroundColor === 'none') {\n decalOpt.backgroundColor = null;\n }\n\n const pattern: PatternObject = { repeat: 'repeat' } as PatternObject;\n setPatternnSource(pattern);\n pattern.rotation = decalOpt.rotation;\n pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr;\n\n decalMap.set(decalObject, pattern);\n\n decalObject.dirty = false;\n\n return pattern;\n\n function setPatternnSource(pattern: PatternObject) {\n const keys = [dpr];\n let isValidKey = true;\n for (let i = 0; i < decalKeys.length; ++i) {\n const value = (decalOpt as any)[decalKeys[i]];\n const valueType = typeof value;\n if (value != null\n && !isArray(value)\n && valueType !== 'string'\n && valueType !== 'number'\n && valueType !== 'boolean'\n ) {\n isValidKey = false;\n break;\n }\n keys.push(value);\n }\n\n let cacheKey;\n if (isValidKey) {\n cacheKey = keys.join(',') + (isSVG ? '-svg' : '');\n const cache = decalCache.get(cacheKey);\n if (cache) {\n isSVG ? (pattern as SVGPatternObject).svgElement = cache as SVGElement\n : (pattern as ImagePatternObject).image = cache as HTMLCanvasElement;\n }\n }\n\n const dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX);\n const dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY);\n const symbolArray = normalizeSymbolArray(decalOpt.symbol);\n const lineBlockLengthsX = getLineBlockLengthX(dashArrayX);\n const lineBlockLengthY = getLineBlockLengthY(dashArrayY);\n\n const canvas = !isSVG && createCanvas();\n const svgRoot = isSVG && (zr.painter as SVGPainter).createSVGElement('g');\n const pSize = getPatternSize();\n let ctx: CanvasRenderingContext2D;\n if (canvas) {\n canvas.width = pSize.width * dpr;\n canvas.height = pSize.height * dpr;\n ctx = canvas.getContext('2d');\n }\n brushDecal();\n\n if (isValidKey) {\n decalCache.put(cacheKey, canvas || svgRoot);\n }\n\n (pattern as ImagePatternObject).image = canvas;\n (pattern as SVGPatternObject).svgElement = svgRoot;\n (pattern as SVGPatternObject).svgWidth = pSize.width;\n (pattern as SVGPatternObject).svgHeight = pSize.height;\n\n /**\n * Get minumum length that can make a repeatable pattern.\n *\n * @return {Object} pattern width and height\n */\n function getPatternSize(): {\n width: number,\n height: number\n } {\n /**\n * For example, if dash is [[3, 2], [2, 1]] for X, it looks like\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * So the minumum length of X is 15,\n * which is the least common multiple of `3 + 2` and `2 + 1`\n * |--- --- --- |--- --- ...\n * |-- -- -- -- -- |-- -- -- ...\n */\n let width = 1;\n for (let i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) {\n width = getLeastCommonMultiple(width, lineBlockLengthsX[i]);\n }\n\n let symbolRepeats = 1;\n for (let i = 0, xlen = symbolArray.length; i < xlen; ++i) {\n symbolRepeats = getLeastCommonMultiple(symbolRepeats, symbolArray[i].length);\n }\n width *= symbolRepeats;\n\n const height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length;\n\n if (__DEV__) {\n const warn = (attrName: string) => {\n /* eslint-disable-next-line */\n console.warn(`Calculated decal size is greater than ${attrName} due to decal option settings so ${attrName} is used for the decal size. Please consider changing the decal option to make a smaller decal or set ${attrName} to be larger to avoid incontinuity.`);\n };\n if (width > decalOpt.maxTileWidth) {\n warn('maxTileWidth');\n }\n if (height > decalOpt.maxTileHeight) {\n warn('maxTileHeight');\n }\n }\n\n return {\n width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)),\n height: Math.max(1, Math.min(height, decalOpt.maxTileHeight))\n };\n }\n\n function brushDecal() {\n if (ctx) {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (decalOpt.backgroundColor) {\n ctx.fillStyle = decalOpt.backgroundColor;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n }\n }\n\n let ySum = 0;\n for (let i = 0; i < dashArrayY.length; ++i) {\n ySum += dashArrayY[i];\n }\n if (ySum <= 0) {\n // dashArrayY is 0, draw nothing\n return;\n }\n\n let y = -lineBlockLengthY;\n let yId = 0;\n let yIdTotal = 0;\n let xId0 = 0;\n while (y < pSize.height) {\n if (yId % 2 === 0) {\n const symbolYId = (yIdTotal / 2) % symbolArray.length;\n let x = 0;\n let xId1 = 0;\n let xId1Total = 0;\n while (x < pSize.width * 2) {\n let xSum = 0;\n for (let i = 0; i < dashArrayX[xId0].length; ++i) {\n xSum += dashArrayX[xId0][i];\n }\n if (xSum <= 0) {\n // Skip empty line\n break;\n }\n\n // E.g., [15, 5, 20, 5] draws only for 15 and 20\n if (xId1 % 2 === 0) {\n const size = (1 - decalOpt.symbolSize) * 0.5;\n const left = x + dashArrayX[xId0][xId1] * size;\n const top = y + dashArrayY[yId] * size;\n const width = dashArrayX[xId0][xId1] * decalOpt.symbolSize;\n const height = dashArrayY[yId] * decalOpt.symbolSize;\n const symbolXId = (xId1Total / 2) % symbolArray[symbolYId].length;\n\n brushSymbol(left, top, width, height, symbolArray[symbolYId][symbolXId]);\n }\n\n x += dashArrayX[xId0][xId1];\n ++xId1Total;\n ++xId1;\n if (xId1 === dashArrayX[xId0].length) {\n xId1 = 0;\n }\n }\n\n ++xId0;\n if (xId0 === dashArrayX.length) {\n xId0 = 0;\n }\n }\n y += dashArrayY[yId];\n\n ++yIdTotal;\n ++yId;\n if (yId === dashArrayY.length) {\n yId = 0;\n }\n }\n\n function brushSymbol(x: number, y: number, width: number, height: number, symbolType: string) {\n const scale = isSVG ? 1 : dpr;\n const symbol = createSymbol(\n symbolType,\n x * scale,\n y * scale,\n width * scale,\n height * scale,\n decalOpt.color,\n decalOpt.symbolKeepAspect\n );\n if (isSVG) {\n svgRoot.appendChild((zr.painter as SVGPainter).paintOne(symbol));\n }\n else {\n // Paint to canvas for all other renderers.\n brushSingle(ctx, symbol);\n }\n }\n }\n }\n\n}\n\n/**\n * Convert symbol array into normalized array\n *\n * @param {string | (string | string[])[]} symbol symbol input\n * @return {string[][]} normolized symbol array\n */\nfunction normalizeSymbolArray(symbol: string | (string | string[])[]): string[][] {\n if (!symbol || (symbol as string[]).length === 0) {\n return [['rect']];\n }\n if (typeof symbol === 'string') {\n return [[symbol]];\n }\n\n let isAllString = true;\n for (let i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] !== 'string') {\n isAllString = false;\n break;\n }\n }\n if (isAllString) {\n return normalizeSymbolArray([symbol as string[]]);\n }\n\n const result: string[][] = [];\n for (let i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] === 'string') {\n result.push([symbol[i] as string]);\n }\n else {\n result.push(symbol[i] as string[]);\n }\n }\n return result;\n}\n\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayX} dash dash input\n * @return {number[][]} normolized dash array\n */\nfunction normalizeDashArrayX(dash: DecalDashArrayX): number[][] {\n if (!dash || (dash as number[]).length === 0) {\n return [[0, 0]];\n }\n if (typeof dash === 'number') {\n const dashValue = Math.ceil(dash);\n return [[dashValue, dashValue]];\n }\n\n /**\n * [20, 5] should be normalized into [[20, 5]],\n * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]\n */\n let isAllNumber = true;\n for (let i = 0; i < dash.length; ++i) {\n if (typeof dash[i] !== 'number') {\n isAllNumber = false;\n break;\n }\n }\n if (isAllNumber) {\n return normalizeDashArrayX([dash as number[]]);\n }\n\n const result: number[][] = [];\n for (let i = 0; i < dash.length; ++i) {\n if (typeof dash[i] === 'number') {\n const dashValue = Math.ceil(dash[i] as number);\n result.push([dashValue, dashValue]);\n }\n else {\n const dashValue = map(dash[i] as number[], n => Math.ceil(n));\n if (dashValue.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // so normalize it to be [4, 2, 1, 4, 2, 1]\n result.push(dashValue.concat(dashValue));\n }\n else {\n result.push(dashValue);\n }\n }\n }\n return result;\n}\n\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayY} dash dash input\n * @return {number[]} normolized dash array\n */\nfunction normalizeDashArrayY(dash: DecalDashArrayY): number[] {\n if (!dash || typeof dash === 'object' && dash.length === 0) {\n return [0, 0];\n }\n if (typeof dash === 'number') {\n const dashValue = Math.ceil(dash);\n return [dashValue, dashValue];\n }\n\n const dashValue = map(dash as number[], n => Math.ceil(n));\n return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;\n}\n\n/**\n * Get block length of each line. A block is the length of dash line and space.\n * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after\n * that, so the block length of this line is 5.\n *\n * @param {number[][]} dash dash arrary of X or Y\n * @return {number[]} block length of each line\n */\nfunction getLineBlockLengthX(dash: number[][]): number[] {\n return map(dash, function (line) {\n return getLineBlockLengthY(line);\n });\n}\n\nfunction getLineBlockLengthY(dash: number[]): number {\n let blockLength = 0;\n for (let i = 0; i < dash.length; ++i) {\n blockLength += dash[i];\n }\n if (dash.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // So total length is (4 + 2 + 1) * 2\n return blockLength * 2;\n }\n return blockLength;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport GlobalModel from '../model/Global';\nimport {createOrUpdatePatternFromDecal} from '../util/decal';\n\nexport default function decalVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachRawSeries(seriesModel => {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n if (data.hasItemVisual()) {\n data.each(idx => {\n const decal = data.getItemVisual(idx, 'decal');\n if (decal) {\n const itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n }\n const decal = data.getVisual('decal');\n if (decal) {\n const style = data.getVisual('style');\n style.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n}\n", "import { isString } from '../core/util';\n\n/**\n * For big svg string, this method might be time consuming.\n */\nexport function parseXML(svg: Document | string | SVGElement): SVGElement {\n if (isString(svg)) {\n const parser = new DOMParser();\n svg = parser.parseFromString(svg, 'text/xml');\n }\n let svgNode: Node = svg;\n // Document node. If using $.get, doc node may be input.\n if (svgNode.nodeType === 9) {\n svgNode = svgNode.firstChild;\n }\n // nodeName of is also 'svg'.\n while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) {\n svgNode = svgNode.nextSibling;\n }\n\n return svgNode as SVGElement;\n}\n", "import Group from '../graphic/Group';\nimport ZRImage from '../graphic/Image';\nimport Circle from '../graphic/shape/Circle';\nimport Rect from '../graphic/shape/Rect';\nimport Ellipse from '../graphic/shape/Ellipse';\nimport Line from '../graphic/shape/Line';\nimport Polygon from '../graphic/shape/Polygon';\nimport Polyline from '../graphic/shape/Polyline';\nimport * as matrix from '../core/matrix';\nimport { createFromString } from './path';\nimport { defaults, trim, each, map, keys, hasOwn } from '../core/util';\nimport Displayable from '../graphic/Displayable';\nimport Element from '../Element';\nimport { RectLike } from '../core/BoundingRect';\nimport { Dictionary } from '../core/types';\nimport { PatternObject } from '../graphic/Pattern';\nimport LinearGradient, { LinearGradientObject } from '../graphic/LinearGradient';\nimport RadialGradient, { RadialGradientObject } from '../graphic/RadialGradient';\nimport Gradient, { GradientObject } from '../graphic/Gradient';\nimport TSpan, { TSpanStyleProps } from '../graphic/TSpan';\nimport { parseXML } from './parseXML';\n\n\ninterface SVGParserOption {\n // Default width if svg width not specified or is a percent value.\n width?: number;\n // Default height if svg height not specified or is a percent value.\n height?: number;\n ignoreViewBox?: boolean;\n ignoreRootClip?: boolean;\n}\n\nexport interface SVGParserResult {\n // Group, The root of the the result tree of zrender shapes\n root: Group;\n // number, the viewport width of the SVG\n width: number;\n // number, the viewport height of the SVG\n height: number;\n // {x, y, width, height}, the declared viewBox rect of the SVG, if exists\n viewBoxRect: RectLike;\n // the {scale, position} calculated by viewBox and viewport, is exists\n viewBoxTransform: {\n x: number;\n y: number;\n scale: number;\n };\n named: SVGParserResultNamedItem[];\n}\nexport interface SVGParserResultNamedItem {\n name: string;\n // If a tag has no name attribute but its ancester is named,\n // `namedFrom` is set to the named item of the ancester .\n // Otherwise null/undefined\n namedFrom: SVGParserResultNamedItem;\n svgNodeTagLower: SVGNodeTagLower;\n el: Element;\n};\n\nexport type SVGNodeTagLower =\n 'g' | 'rect' | 'circle' | 'line' | 'ellipse' | 'polygon'\n | 'polyline' | 'image' | 'text' | 'tspan' | 'path' | 'defs' | 'switch';\n\n\ntype DefsId = string;\ntype DefsMap = { [id in DefsId]: LinearGradientObject | RadialGradientObject | PatternObject };\ntype DefsUsePending = [Displayable, 'fill' | 'stroke', DefsId][];\n\ntype ElementExtended = Element & {\n __inheritedStyle?: InheritedStyleByZRKey;\n __selfStyle?: SelfStyleByZRKey;\n}\ntype DisplayableExtended = Displayable & {\n __inheritedStyle?: InheritedStyleByZRKey;\n __selfStyle?: SelfStyleByZRKey;\n}\n\ntype TextStyleOptionExtended = TSpanStyleProps & {\n fontSize: number;\n fontFamily: string;\n fontWeight: string;\n fontStyle: string;\n}\nlet nodeParsers: {[name in SVGNodeTagLower]?: (\n this: SVGParser, xmlNode: SVGElement, parentGroup: Group\n) => Element};\n\ntype InheritedStyleByZRKey = {[name in InheritableStyleZRKey]?: string};\ntype InheritableStyleZRKey =\n typeof INHERITABLE_STYLE_ATTRIBUTES_MAP[keyof typeof INHERITABLE_STYLE_ATTRIBUTES_MAP];\nconst INHERITABLE_STYLE_ATTRIBUTES_MAP = {\n 'fill': 'fill',\n 'stroke': 'stroke',\n 'stroke-width': 'lineWidth',\n 'opacity': 'opacity',\n 'fill-opacity': 'fillOpacity',\n 'stroke-opacity': 'strokeOpacity',\n 'stroke-dasharray': 'lineDash',\n 'stroke-dashoffset': 'lineDashOffset',\n 'stroke-linecap': 'lineCap',\n 'stroke-linejoin': 'lineJoin',\n 'stroke-miterlimit': 'miterLimit',\n 'font-family': 'fontFamily',\n 'font-size': 'fontSize',\n 'font-style': 'fontStyle',\n 'font-weight': 'fontWeight',\n 'text-anchor': 'textAlign',\n 'visibility': 'visibility',\n 'display': 'display'\n} as const;\nconst INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS = keys(INHERITABLE_STYLE_ATTRIBUTES_MAP);\n\ntype SelfStyleByZRKey = {[name in SelfStyleZRKey]?: string};\ntype SelfStyleZRKey =\n typeof SELF_STYLE_ATTRIBUTES_MAP[keyof typeof SELF_STYLE_ATTRIBUTES_MAP];\nconst SELF_STYLE_ATTRIBUTES_MAP = {\n 'alignment-baseline': 'textBaseline',\n 'stop-color': 'stopColor'\n};\nconst SELF_STYLE_ATTRIBUTES_MAP_KEYS = keys(SELF_STYLE_ATTRIBUTES_MAP);\n\n\nclass SVGParser {\n\n private _defs: DefsMap = {};\n // The use of can be in front of declared.\n // So save them temporarily in `_defsUsePending`.\n private _defsUsePending: DefsUsePending;\n private _root: Group = null;\n\n private _textX: number;\n private _textY: number;\n\n parse(xml: string | Document | SVGElement, opt: SVGParserOption): SVGParserResult {\n opt = opt || {};\n\n const svg = parseXML(xml);\n\n if (!svg) {\n throw new Error('Illegal svg');\n }\n\n this._defsUsePending = [];\n let root = new Group();\n this._root = root;\n const named: SVGParserResult['named'] = [];\n // parse view port\n const viewBox = svg.getAttribute('viewBox') || '';\n\n // If width/height not specified, means \"100%\" of `opt.width/height`.\n // TODO: Other percent value not supported yet.\n let width = parseFloat((svg.getAttribute('width') || opt.width) as string);\n let height = parseFloat((svg.getAttribute('height') || opt.height) as string);\n // If width/height not specified, set as null for output.\n isNaN(width) && (width = null);\n isNaN(height) && (height = null);\n\n // Apply inline style on svg element.\n parseAttributes(svg, root, null, true, false);\n\n let child = svg.firstChild as SVGElement;\n while (child) {\n this._parseNode(child, root, named, null, false, false);\n child = child.nextSibling as SVGElement;\n }\n\n applyDefs(this._defs, this._defsUsePending);\n this._defsUsePending = [];\n\n let viewBoxRect;\n let viewBoxTransform;\n\n if (viewBox) {\n const viewBoxArr = splitNumberSequence(viewBox);\n // Some invalid case like viewBox: 'none'.\n if (viewBoxArr.length >= 4) {\n viewBoxRect = {\n x: parseFloat((viewBoxArr[0] || 0) as string),\n y: parseFloat((viewBoxArr[1] || 0) as string),\n width: parseFloat(viewBoxArr[2]),\n height: parseFloat(viewBoxArr[3])\n };\n }\n }\n\n if (viewBoxRect && width != null && height != null) {\n viewBoxTransform = makeViewBoxTransform(viewBoxRect, { x: 0, y: 0, width: width, height: height });\n\n if (!opt.ignoreViewBox) {\n // If set transform on the output group, it probably bring trouble when\n // some users only intend to show the clipped content inside the viewBox,\n // but not intend to transform the output group. So we keep the output\n // group no transform. If the user intend to use the viewBox as a\n // camera, just set `opt.ignoreViewBox` as `true` and set transfrom\n // manually according to the viewBox info in the output of this method.\n const elRoot = root;\n root = new Group();\n root.add(elRoot);\n elRoot.scaleX = elRoot.scaleY = viewBoxTransform.scale;\n elRoot.x = viewBoxTransform.x;\n elRoot.y = viewBoxTransform.y;\n }\n }\n\n // Some shapes might be overflow the viewport, which should be\n // clipped despite whether the viewBox is used, as the SVG does.\n if (!opt.ignoreRootClip && width != null && height != null) {\n root.setClipPath(new Rect({\n shape: {x: 0, y: 0, width: width, height: height}\n }));\n }\n\n // Set width/height on group just for output the viewport size.\n return {\n root: root,\n width: width,\n height: height,\n viewBoxRect: viewBoxRect,\n viewBoxTransform: viewBoxTransform,\n named: named\n };\n }\n\n private _parseNode(\n xmlNode: SVGElement,\n parentGroup: Group,\n named: SVGParserResultNamedItem[],\n namedFrom: SVGParserResultNamedItem['namedFrom'],\n isInDefs: boolean,\n isInText: boolean\n ): void {\n\n const nodeName = xmlNode.nodeName.toLowerCase() as SVGNodeTagLower;\n\n // TODO:\n // support in svg, where nodeName is 'style',\n // CSS classes is defined globally wherever the style tags are declared.\n\n let el;\n let namedFromForSub = namedFrom;\n\n if (nodeName === 'defs') {\n isInDefs = true;\n }\n if (nodeName === 'text') {\n isInText = true;\n }\n\n if (nodeName === 'defs' || nodeName === 'switch') {\n // Just make displayable. Do not support\n // the full feature of it.\n el = parentGroup;\n }\n else {\n // In , elments will not be rendered.\n // TODO:\n // do not support elements in yet, until requirement come.\n // other graphic elements can also be in and referenced by\n // \n // multiple times\n if (!isInDefs) {\n const parser = nodeParsers[nodeName];\n if (parser && hasOwn(nodeParsers, nodeName)) {\n\n el = parser.call(this, xmlNode, parentGroup);\n\n // Do not support empty string;\n const nameAttr = xmlNode.getAttribute('name');\n if (nameAttr) {\n const newNamed: SVGParserResultNamedItem = {\n name: nameAttr,\n namedFrom: null,\n svgNodeTagLower: nodeName,\n el: el\n };\n named.push(newNamed);\n if (nodeName === 'g') {\n namedFromForSub = newNamed;\n }\n }\n else if (namedFrom) {\n named.push({\n name: namedFrom.name,\n namedFrom: namedFrom,\n svgNodeTagLower: nodeName,\n el: el\n });\n }\n\n parentGroup.add(el);\n }\n }\n\n // Whether gradients/patterns are declared in or not,\n // they all work.\n const parser = paintServerParsers[nodeName];\n if (parser && hasOwn(paintServerParsers, nodeName)) {\n const def = parser.call(this, xmlNode);\n const id = xmlNode.getAttribute('id');\n if (id) {\n this._defs[id] = def;\n }\n }\n }\n\n // If xmlNode is , , , , ,\n // el will be a group, and traverse the children.\n if (el && el.isGroup) {\n let child = xmlNode.firstChild as SVGElement;\n while (child) {\n if (child.nodeType === 1) {\n this._parseNode(child, el as Group, named, namedFromForSub, isInDefs, isInText);\n }\n // Is plain text rather than a tagged node.\n else if (child.nodeType === 3 && isInText) {\n this._parseText(child, el as Group);\n }\n child = child.nextSibling as SVGElement;\n }\n }\n\n }\n\n private _parseText(xmlNode: SVGElement, parentGroup: Group): TSpan {\n const text = new TSpan({\n style: {\n text: xmlNode.textContent\n },\n silent: true,\n x: this._textX || 0,\n y: this._textY || 0\n });\n\n inheritStyle(parentGroup, text);\n\n parseAttributes(xmlNode, text, this._defsUsePending, false, false);\n\n applyTextAlignment(text, parentGroup);\n\n const textStyle = text.style as TextStyleOptionExtended;\n const fontSize = textStyle.fontSize;\n if (fontSize && fontSize < 9) {\n // PENDING\n textStyle.fontSize = 9;\n text.scaleX *= fontSize / 9;\n text.scaleY *= fontSize / 9;\n }\n\n const font = (textStyle.fontSize || textStyle.fontFamily) && [\n textStyle.fontStyle,\n textStyle.fontWeight,\n (textStyle.fontSize || 12) + 'px',\n // If font properties are defined, `fontFamily` should not be ignored.\n textStyle.fontFamily || 'sans-serif'\n ].join(' ');\n // Make font\n textStyle.font = font;\n\n const rect = text.getBoundingRect();\n this._textX += rect.width;\n\n parentGroup.add(text);\n\n return text;\n }\n\n static internalField = (function () {\n\n nodeParsers = {\n 'g': function (xmlNode, parentGroup) {\n const g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, false);\n\n return g;\n },\n 'rect': function (xmlNode, parentGroup) {\n const rect = new Rect();\n inheritStyle(parentGroup, rect);\n parseAttributes(xmlNode, rect, this._defsUsePending, false, false);\n\n rect.setShape({\n x: parseFloat(xmlNode.getAttribute('x') || '0'),\n y: parseFloat(xmlNode.getAttribute('y') || '0'),\n width: parseFloat(xmlNode.getAttribute('width') || '0'),\n height: parseFloat(xmlNode.getAttribute('height') || '0')\n });\n\n rect.silent = true;\n\n return rect;\n },\n 'circle': function (xmlNode, parentGroup) {\n const circle = new Circle();\n inheritStyle(parentGroup, circle);\n parseAttributes(xmlNode, circle, this._defsUsePending, false, false);\n\n circle.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n r: parseFloat(xmlNode.getAttribute('r') || '0')\n });\n\n circle.silent = true;\n\n return circle;\n },\n 'line': function (xmlNode, parentGroup) {\n const line = new Line();\n inheritStyle(parentGroup, line);\n parseAttributes(xmlNode, line, this._defsUsePending, false, false);\n\n line.setShape({\n x1: parseFloat(xmlNode.getAttribute('x1') || '0'),\n y1: parseFloat(xmlNode.getAttribute('y1') || '0'),\n x2: parseFloat(xmlNode.getAttribute('x2') || '0'),\n y2: parseFloat(xmlNode.getAttribute('y2') || '0')\n });\n\n line.silent = true;\n\n return line;\n },\n 'ellipse': function (xmlNode, parentGroup) {\n const ellipse = new Ellipse();\n inheritStyle(parentGroup, ellipse);\n parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);\n\n ellipse.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n rx: parseFloat(xmlNode.getAttribute('rx') || '0'),\n ry: parseFloat(xmlNode.getAttribute('ry') || '0')\n });\n\n ellipse.silent = true;\n\n return ellipse;\n },\n 'polygon': function (xmlNode, parentGroup) {\n const pointsStr = xmlNode.getAttribute('points');\n let pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n const polygon = new Polygon({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n\n inheritStyle(parentGroup, polygon);\n parseAttributes(xmlNode, polygon, this._defsUsePending, false, false);\n\n return polygon;\n },\n 'polyline': function (xmlNode, parentGroup) {\n const pointsStr = xmlNode.getAttribute('points');\n let pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n const polyline = new Polyline({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n\n inheritStyle(parentGroup, polyline);\n parseAttributes(xmlNode, polyline, this._defsUsePending, false, false);\n\n return polyline;\n },\n 'image': function (xmlNode, parentGroup) {\n const img = new ZRImage();\n inheritStyle(parentGroup, img);\n parseAttributes(xmlNode, img, this._defsUsePending, false, false);\n\n img.setStyle({\n image: xmlNode.getAttribute('xlink:href'),\n x: +xmlNode.getAttribute('x'),\n y: +xmlNode.getAttribute('y'),\n width: +xmlNode.getAttribute('width'),\n height: +xmlNode.getAttribute('height')\n });\n img.silent = true;\n\n return img;\n },\n 'text': function (xmlNode, parentGroup) {\n const x = xmlNode.getAttribute('x') || '0';\n const y = xmlNode.getAttribute('y') || '0';\n const dx = xmlNode.getAttribute('dx') || '0';\n const dy = xmlNode.getAttribute('dy') || '0';\n\n this._textX = parseFloat(x) + parseFloat(dx);\n this._textY = parseFloat(y) + parseFloat(dy);\n\n const g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n\n return g;\n },\n 'tspan': function (xmlNode, parentGroup) {\n const x = xmlNode.getAttribute('x');\n const y = xmlNode.getAttribute('y');\n if (x != null) {\n // new offset x\n this._textX = parseFloat(x);\n }\n if (y != null) {\n // new offset y\n this._textY = parseFloat(y);\n }\n const dx = xmlNode.getAttribute('dx') || '0';\n const dy = xmlNode.getAttribute('dy') || '0';\n\n const g = new Group();\n\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n\n this._textX += parseFloat(dx);\n this._textY += parseFloat(dy);\n\n return g;\n },\n 'path': function (xmlNode, parentGroup) {\n // TODO svg fill rule\n // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule\n // path.style.globalCompositeOperation = 'xor';\n const d = xmlNode.getAttribute('d') || '';\n\n // Performance sensitive.\n\n const path = createFromString(d);\n\n inheritStyle(parentGroup, path);\n parseAttributes(xmlNode, path, this._defsUsePending, false, false);\n\n path.silent = true;\n\n return path;\n }\n };\n\n\n })();\n}\n\nconst paintServerParsers: Dictionary<(xmlNode: SVGElement) => any> = {\n\n 'lineargradient': function (xmlNode: SVGElement) {\n // TODO:\n // Support that x1,y1,x2,y2 are not declared lineargradient but in node.\n const x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10);\n const y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10);\n const x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10);\n const y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10);\n\n const gradient = new LinearGradient(x1, y1, x2, y2);\n\n parsePaintServerUnit(xmlNode, gradient);\n\n parseGradientColorStops(xmlNode, gradient);\n\n return gradient;\n },\n\n 'radialgradient': function (xmlNode) {\n // TODO:\n // Support that x1,y1,x2,y2 are not declared radialgradient but in node.\n // TODO:\n // Support fx, fy, fr.\n const cx = parseInt(xmlNode.getAttribute('cx') || '0', 10);\n const cy = parseInt(xmlNode.getAttribute('cy') || '0', 10);\n const r = parseInt(xmlNode.getAttribute('r') || '0', 10);\n\n const gradient = new RadialGradient(cx, cy, r);\n\n parsePaintServerUnit(xmlNode, gradient);\n\n parseGradientColorStops(xmlNode, gradient);\n\n return gradient;\n }\n\n // TODO\n // 'pattern': function (xmlNode: SVGElement) {\n // }\n};\n\nfunction parsePaintServerUnit(xmlNode: SVGElement, gradient: Gradient) {\n const gradientUnits = xmlNode.getAttribute('gradientUnits');\n if (gradientUnits === 'userSpaceOnUse') {\n gradient.global = true;\n }\n}\n\nfunction parseGradientColorStops(xmlNode: SVGElement, gradient: GradientObject): void {\n\n let stop = xmlNode.firstChild as SVGStopElement;\n\n while (stop) {\n if (stop.nodeType === 1\n // there might be some other irrelevant tags used by editor.\n && stop.nodeName.toLocaleLowerCase() === 'stop'\n ) {\n const offsetStr = stop.getAttribute('offset');\n let offset: number;\n if (offsetStr && offsetStr.indexOf('%') > 0) { // percentage\n offset = parseInt(offsetStr, 10) / 100;\n }\n else if (offsetStr) { // number from 0 to 1\n offset = parseFloat(offsetStr);\n }\n else {\n offset = 0;\n }\n\n // has higher priority than\n // \n const styleVals = {} as Dictionary;\n parseInlineStyle(stop, styleVals, styleVals);\n const stopColor = styleVals.stopColor\n || stop.getAttribute('stop-color')\n || '#000000';\n\n gradient.colorStops.push({\n offset: offset,\n color: stopColor\n });\n }\n stop = stop.nextSibling as SVGStopElement;\n }\n}\n\nfunction inheritStyle(parent: Element, child: Element): void {\n if (parent && (parent as ElementExtended).__inheritedStyle) {\n if (!(child as ElementExtended).__inheritedStyle) {\n (child as ElementExtended).__inheritedStyle = {};\n }\n defaults((child as ElementExtended).__inheritedStyle, (parent as ElementExtended).__inheritedStyle);\n }\n}\n\nfunction parsePoints(pointsString: string): number[][] {\n const list = splitNumberSequence(pointsString);\n const points = [];\n\n for (let i = 0; i < list.length; i += 2) {\n const x = parseFloat(list[i]);\n const y = parseFloat(list[i + 1]);\n points.push([x, y]);\n }\n return points;\n}\n\nfunction parseAttributes(\n xmlNode: SVGElement,\n el: Element,\n defsUsePending: DefsUsePending,\n onlyInlineStyle: boolean,\n isTextGroup: boolean\n): void {\n const disp = el as DisplayableExtended;\n const inheritedStyle = disp.__inheritedStyle = disp.__inheritedStyle || {};\n const selfStyle: SelfStyleByZRKey = {};\n\n // TODO Shadow\n if (xmlNode.nodeType === 1) {\n parseTransformAttribute(xmlNode, el);\n\n parseInlineStyle(xmlNode, inheritedStyle, selfStyle);\n\n if (!onlyInlineStyle) {\n parseAttributeStyle(xmlNode, inheritedStyle, selfStyle);\n }\n }\n\n disp.style = disp.style || {};\n\n if (inheritedStyle.fill != null) {\n disp.style.fill = getFillStrokeStyle(disp, 'fill', inheritedStyle.fill, defsUsePending);\n }\n if (inheritedStyle.stroke != null) {\n disp.style.stroke = getFillStrokeStyle(disp, 'stroke', inheritedStyle.stroke, defsUsePending);\n }\n\n each([\n 'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize'\n ] as const, function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = parseFloat(inheritedStyle[propName]);\n }\n });\n\n each([\n 'lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign'\n ] as const, function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = inheritedStyle[propName];\n }\n });\n\n // Because selfStyle only support textBaseline, so only text group need it.\n // in other cases selfStyle can be released.\n if (isTextGroup) {\n disp.__selfStyle = selfStyle;\n }\n\n if (inheritedStyle.lineDash) {\n disp.style.lineDash = map(splitNumberSequence(inheritedStyle.lineDash), function (str) {\n return parseFloat(str);\n });\n }\n\n if (inheritedStyle.visibility === 'hidden' || inheritedStyle.visibility === 'collapse') {\n disp.invisible = true;\n }\n\n if (inheritedStyle.display === 'none') {\n disp.ignore = true;\n }\n}\n\nfunction applyTextAlignment(\n text: TSpan,\n parentGroup: Group\n): void {\n const parentSelfStyle = (parentGroup as ElementExtended).__selfStyle;\n if (parentSelfStyle) {\n const textBaseline = parentSelfStyle.textBaseline;\n let zrTextBaseline = textBaseline as CanvasTextBaseline;\n if (!textBaseline || textBaseline === 'auto') {\n // FIXME: 'auto' means the value is the dominant-baseline of the script to\n // which the character belongs - i.e., use the dominant-baseline of the parent.\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'baseline') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'before-edge' || textBaseline === 'text-before-edge') {\n zrTextBaseline = 'top';\n }\n else if (textBaseline === 'after-edge' || textBaseline === 'text-after-edge') {\n zrTextBaseline = 'bottom';\n }\n else if (textBaseline === 'central' || textBaseline === 'mathematical') {\n zrTextBaseline = 'middle';\n }\n text.style.textBaseline = zrTextBaseline;\n }\n\n const parentInheritedStyle = (parentGroup as ElementExtended).__inheritedStyle;\n if (parentInheritedStyle) {\n // PENDING:\n // canvas `direction` is an experimental attribute.\n // so we do not support SVG direction \"rtl\" for text-anchor yet.\n const textAlign = parentInheritedStyle.textAlign;\n let zrTextAlign = textAlign as CanvasTextAlign;\n if (textAlign) {\n if (textAlign === 'middle') {\n zrTextAlign = 'center';\n }\n text.style.textAlign = zrTextAlign;\n }\n }\n}\n\n// Support `fill:url(#someId)`.\nconst urlRegex = /^url\\(\\s*#(.*?)\\)/;\nfunction getFillStrokeStyle(\n el: Displayable,\n method: 'fill' | 'stroke',\n str: string,\n defsUsePending: DefsUsePending\n): string {\n const urlMatch = str && str.match(urlRegex);\n if (urlMatch) {\n const url = trim(urlMatch[1]);\n defsUsePending.push([el, method, url]);\n return;\n }\n // SVG fill and stroke can be 'none'.\n if (str === 'none') {\n str = null;\n }\n return str;\n}\n\nfunction applyDefs(\n defs: DefsMap,\n defsUsePending: DefsUsePending\n): void {\n for (let i = 0; i < defsUsePending.length; i++) {\n const item = defsUsePending[i];\n item[0].style[item[1]] = defs[item[2]];\n }\n}\n\n// value can be like:\n// '2e-4', 'l.5.9' (ignore 0), 'M-10-10', 'l-2.43e-1,34.9983',\n// 'l-.5E1,54', '121-23-44-11' (no delimiter)\n// PENDING: here continuous commas are treat as one comma, but the\n// browser SVG parser treats this by printing error.\nconst numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction splitNumberSequence(rawStr: string): string[] {\n return rawStr.match(numberReg) || [];\n}\n// Most of the values can be separated by comma and/or white space.\n// const DILIMITER_REG = /[\\s,]+/;\n\n\nconst transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.eE,]*)\\)/g;\nconst DEGREE_TO_ANGLE = Math.PI / 180;\n\nfunction parseTransformAttribute(xmlNode: SVGElement, node: Element): void {\n let transform = xmlNode.getAttribute('transform');\n if (transform) {\n transform = transform.replace(/,/g, ' ');\n const transformOps: string[] = [];\n let mt = null;\n transform.replace(transformRegex, function (str: string, type: string, value: string) {\n transformOps.push(type, value);\n return '';\n });\n\n for (let i = transformOps.length - 1; i > 0; i -= 2) {\n const value = transformOps[i];\n const type = transformOps[i - 1];\n const valueArr: string[] = splitNumberSequence(value);\n mt = mt || matrix.create();\n switch (type) {\n case 'translate':\n matrix.translate(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || '0')]);\n break;\n case 'scale':\n matrix.scale(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || valueArr[0])]);\n break;\n case 'rotate':\n // TODO: zrender use different hand in coordinate system.\n matrix.rotate(mt, mt, -parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n break;\n case 'skewX':\n const sx = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, 0, sx, 1, 0, 0], mt);\n break;\n case 'skewY':\n const sy = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, sy, 0, 1, 0, 0], mt);\n break;\n case 'matrix':\n mt[0] = parseFloat(valueArr[0]);\n mt[1] = parseFloat(valueArr[1]);\n mt[2] = parseFloat(valueArr[2]);\n mt[3] = parseFloat(valueArr[3]);\n mt[4] = parseFloat(valueArr[4]);\n mt[5] = parseFloat(valueArr[5]);\n break;\n }\n }\n node.setLocalTransform(mt);\n }\n}\n\n// Value may contain space.\nconst styleRegex = /([^\\s:;]+)\\s*:\\s*([^:;]+)/g;\nfunction parseInlineStyle(\n xmlNode: SVGElement,\n inheritableStyleResult: Dictionary,\n selfStyleResult: Dictionary\n): void {\n const style = xmlNode.getAttribute('style');\n\n if (!style) {\n return;\n }\n\n styleRegex.lastIndex = 0;\n let styleRegResult;\n while ((styleRegResult = styleRegex.exec(style)) != null) {\n const svgStlAttr = styleRegResult[1];\n\n const zrInheritableStlAttr = hasOwn(INHERITABLE_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? INHERITABLE_STYLE_ATTRIBUTES_MAP[svgStlAttr as keyof typeof INHERITABLE_STYLE_ATTRIBUTES_MAP]\n : null;\n if (zrInheritableStlAttr) {\n inheritableStyleResult[zrInheritableStlAttr] = styleRegResult[2];\n }\n\n const zrSelfStlAttr = hasOwn(SELF_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? SELF_STYLE_ATTRIBUTES_MAP[svgStlAttr as keyof typeof SELF_STYLE_ATTRIBUTES_MAP]\n : null;\n if (zrSelfStlAttr) {\n selfStyleResult[zrSelfStlAttr] = styleRegResult[2];\n }\n }\n}\n\nfunction parseAttributeStyle(\n xmlNode: SVGElement,\n inheritableStyleResult: Dictionary,\n selfStyleResult: Dictionary\n): void {\n for (let i = 0; i < INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n const svgAttrName = INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[i];\n const attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n inheritableStyleResult[INHERITABLE_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n for (let i = 0; i < SELF_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n const svgAttrName = SELF_STYLE_ATTRIBUTES_MAP_KEYS[i];\n const attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n selfStyleResult[SELF_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n}\n\nexport function makeViewBoxTransform(viewBoxRect: RectLike, boundingRect: RectLike): {\n scale: number;\n x: number;\n y: number;\n} {\n const scaleX = boundingRect.width / viewBoxRect.width;\n const scaleY = boundingRect.height / viewBoxRect.height;\n const scale = Math.min(scaleX, scaleY);\n // preserveAspectRatio 'xMidYMid'\n\n return {\n scale,\n x: -(viewBoxRect.x + viewBoxRect.width / 2) * scale + (boundingRect.x + boundingRect.width / 2),\n y: -(viewBoxRect.y + viewBoxRect.height / 2) * scale + (boundingRect.y + boundingRect.height / 2)\n };\n}\n\nexport function parseSVG(xml: string | Document | SVGElement, opt: SVGParserOption): SVGParserResult {\n const parser = new SVGParser();\n return parser.parse(xml, opt);\n}\n\n\n// Also export parseXML to avoid breaking change.\nexport {parseXML};\n", "import windingLine from './windingLine';\nimport { VectorArray } from '../core/vector';\n\nconst EPSILON = 1e-8;\n\nfunction isAroundEqual(a: number, b: number): boolean {\n return Math.abs(a - b) < EPSILON;\n}\n\nexport function contain(points: VectorArray[], x: number, y: number) {\n let w = 0;\n let p = points[0];\n\n if (!p) {\n return false;\n }\n\n for (let i = 1; i < points.length; i++) {\n const p2 = points[i];\n w += windingLine(p[0], p[1], p2[0], p2[1], x, y);\n p = p2;\n }\n\n // Close polygon\n const p0 = points[0];\n if (!isAroundEqual(p[0], p0[0]) || !isAroundEqual(p[1], p0[1])) {\n w += windingLine(p[0], p[1], p0[0], p0[1], x, y);\n }\n\n return w !== 0;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport * as bbox from 'zrender/src/core/bbox';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as polygonContain from 'zrender/src/contain/polygon';\nimport { GeoJSON, GeoSVGGraphicRoot } from './geoTypes';\nimport * as matrix from 'zrender/src/core/matrix';\nimport Element from 'zrender/src/Element';\n\nconst TMP_TRANSFORM = [] as number[];\n\nexport class Region {\n\n readonly name: string;\n readonly type: 'geoJSON' | 'geoSVG';\n\n constructor(\n name: string\n ) {\n this.name = name;\n }\n\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n getCenter(): number[] {\n return;\n }\n\n}\n\n\nexport class GeoJSONRegion extends Region {\n\n readonly type = 'geoJSON';\n\n readonly geometries: {\n type: 'polygon'; // FIXME:TS Is there other types?\n exterior: number[][];\n interiors?: number[][][];\n }[];\n\n private _center: number[];\n\n // Injected outside.\n properties: GeoJSON['features'][0]['properties'];\n\n private _rect: BoundingRect;\n\n\n constructor(\n name: string,\n geometries: GeoJSONRegion['geometries'],\n cp: GeoJSON['features'][0]['properties']['cp']\n ) {\n super(name);\n\n this.geometries = geometries;\n\n if (!cp) {\n const rect = this.getBoundingRect();\n cp = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n else {\n cp = [cp[0], cp[1]];\n }\n this._center = cp;\n }\n\n getBoundingRect(): BoundingRect {\n const rect = this._rect;\n if (rect) {\n return rect;\n }\n\n const MAX_NUMBER = Number.MAX_VALUE;\n const min = [MAX_NUMBER, MAX_NUMBER];\n const max = [-MAX_NUMBER, -MAX_NUMBER];\n const min2 = [] as number[];\n const max2 = [] as number[];\n const geometries = this.geometries;\n let i = 0;\n for (; i < geometries.length; i++) {\n // Only support polygon\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n // Doesn't consider hole\n const exterior = geometries[i].exterior;\n bbox.fromPoints(exterior, min2, max2);\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n // No data\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return (this._rect = new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n ));\n }\n\n contain(coord: number[]): boolean {\n const rect = this.getBoundingRect();\n const geometries = this.geometries;\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n loopGeo: for (let i = 0, len = geometries.length; i < len; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n const exterior = geometries[i].exterior;\n const interiors = geometries[i].interiors;\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (let k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n return true;\n }\n }\n return false;\n }\n\n transformTo(x: number, y: number, width: number, height: number): void {\n let rect = this.getBoundingRect();\n const aspect = rect.width / rect.height;\n if (!width) {\n width = aspect * height;\n }\n else if (!height) {\n height = width / aspect;\n }\n const target = new BoundingRect(x, y, width, height);\n const transform = rect.calculateTransform(target);\n const geometries = this.geometries;\n for (let i = 0; i < geometries.length; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n const exterior = geometries[i].exterior;\n const interiors = geometries[i].interiors;\n for (let p = 0; p < exterior.length; p++) {\n vec2.applyTransform(exterior[p], exterior[p], transform);\n }\n for (let h = 0; h < (interiors ? interiors.length : 0); h++) {\n for (let p = 0; p < interiors[h].length; p++) {\n vec2.applyTransform(interiors[h][p], interiors[h][p], transform);\n }\n }\n }\n rect = this._rect;\n rect.copy(target);\n // Update center\n this._center = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n\n cloneShallow(name: string): GeoJSONRegion {\n name == null && (name = this.name);\n const newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n return newRegion;\n }\n\n getCenter() {\n return this._center;\n }\n\n setCenter(center: number[]) {\n this._center = center;\n }\n\n}\n\nexport class GeoSVGRegion extends Region {\n\n readonly type = 'geoSVG';\n\n private _center: number[];\n\n // Can only be used to calculate, but not be modified.\n // Becuase this el may not belongs to this view,\n // but been displaying on some other view.\n private _elOnlyForCalculate: Element;\n\n constructor(\n name: string,\n elOnlyForCalculate: Element\n ) {\n super(name);\n this._elOnlyForCalculate = elOnlyForCalculate;\n }\n\n getCenter() {\n let center = this._center;\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this._calculateCenter();\n }\n return center;\n }\n\n private _calculateCenter(): number[] {\n const el = this._elOnlyForCalculate;\n const rect = el.getBoundingRect();\n const center = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n\n const mat = matrix.identity(TMP_TRANSFORM);\n\n let target = el;\n while (target && !(target as GeoSVGGraphicRoot).isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n\n vec2.applyTransform(center, center, mat);\n\n return center;\n }\n\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parseSVG, makeViewBoxTransform, SVGNodeTagLower, SVGParserResultNamedItem } from 'zrender/src/tool/parseSVG';\nimport Group from 'zrender/src/graphic/Group';\nimport Rect from 'zrender/src/graphic/shape/Rect';\nimport {assert, createHashMap, each, HashMap} from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { GeoResource, GeoSVGGraphicRoot, GeoSVGSourceInput } from './geoTypes';\nimport { parseXML } from 'zrender/src/tool/parseXML';\nimport { GeoSVGRegion } from './Region';\nimport Element from 'zrender/src/Element';\n\nexport interface GeoSVGGraphicRecord {\n root: Group;\n boundingRect: BoundingRect;\n named: SVGParserResultNamedItem[];\n}\n\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\nconst REGION_AVAILABLE_SVG_TAG_MAP = createHashMap([\n 'rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path',\n // are also enabled becuase some SVG might paint text itself,\n // but still need to trigger events or tooltip.\n 'text', 'tspan',\n // is also enabled because this case: if multiple tags share one name\n // and need label displayed, every tags will display the name, which is not\n // expected. So we can put them into a . Thereby only one label\n // displayed and located based on the bounding rect of the .\n 'g'\n]);\n\nexport class GeoSVGResource implements GeoResource {\n\n readonly type = 'geoSVG';\n private _mapName: string;\n private _parsedXML: SVGElement;\n\n private _firstGraphic: GeoSVGGraphicRecord;\n private _boundingRect: BoundingRect;\n private _regions: GeoSVGRegion[];\n // Key: region.name\n private _regionsMap: HashMap;\n\n // All used graphics. key: hostKey, value: root\n private _usedGraphicMap: HashMap = createHashMap();\n // All unused graphics.\n private _freedGraphics: GeoSVGGraphicRecord[] = [];\n\n constructor(\n mapName: string,\n svg: GeoSVGSourceInput\n ) {\n this._mapName = mapName;\n\n // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n this._parsedXML = parseXML(svg);\n }\n\n load(/* nameMap: NameMap */) {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n let firstGraphic = this._firstGraphic;\n\n // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone();\n\n // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n const { regions, regionsMap } = createRegions(firstGraphic.named);\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n }\n\n private _buildGraphic(\n svgXML: SVGElement\n ): GeoSVGGraphicRecord {\n let result;\n let rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n }\n catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n }\n\n // Note: we keep the covenant that the root has no transform. So always add an extra root.\n const root = new Group();\n root.add(rootFromParse);\n (root as GeoSVGGraphicRoot).isGeoSVGGraphicRoot = true;\n\n // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: ``\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n const svgWidth = result.width;\n const svgHeight = result.height;\n const viewBoxRect = result.viewBoxRect;\n\n let boundingRect = this._boundingRect;\n if (!boundingRect) {\n let bRectX;\n let bRectY;\n let bRectWidth;\n let bRectHeight;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n }\n else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n }\n else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n }\n\n // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n if (bRectX == null || bRectY == null) {\n const calculatedBoundingRect = rootFromParse.getBoundingRect();\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n const viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect);\n // Only support `preserveAspectRatio 'xMidYMid'`\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n }\n\n // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n\n const named = [] as GeoSVGGraphicRecord['named'];\n each(result.named, namedItem => {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n\n return { root, boundingRect, named };\n }\n\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n useGraphic(hostKey: string /*, nameMap: NameMap */): GeoSVGGraphicRecord {\n const usedRootMap = this._usedGraphicMap;\n\n let svgGraphic = usedRootMap.get(hostKey);\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop()\n // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n\n usedRootMap.set(hostKey, svgGraphic);\n\n // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n }\n\n freeGraphic(hostKey: string): void {\n const usedRootMap = this._usedGraphicMap;\n\n const svgGraphic = usedRootMap.get(hostKey);\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n this._freedGraphics.push(svgGraphic);\n }\n }\n\n}\n\n\nfunction setSilent(el: Element): void {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false;\n // text|tspan will be converted to group.\n if (el.isGroup) {\n el.traverse(child => {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(\n named: SVGParserResultNamedItem[]\n): {\n regions: GeoSVGRegion[];\n regionsMap: HashMap;\n} {\n\n const regions: GeoSVGRegion[] = [];\n const regionsMap = createHashMap();\n\n // Create resions only for the first graphic.\n each(named, namedItem => {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a , the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n const region = new GeoSVGRegion(namedItem.name, namedItem.el);\n // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n regions.push(region);\n // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n regionsMap.set(namedItem.name, region);\n });\n\n return { regions, regionsMap };\n}\n\n\n// PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { GeoJSONRegion } from './Region';\nimport { GeoJSONCompressed, GeoJSON } from './geoTypes';\n\n\nfunction decode(json: GeoJSONCompressed | GeoJSON): GeoJSON {\n if (!(json as GeoJSONCompressed).UTF8Encoding) {\n return json as GeoJSON;\n }\n const jsonCompressed = json as GeoJSONCompressed;\n let encodeScale = jsonCompressed.UTF8Scale;\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n const features = jsonCompressed.features;\n\n for (let f = 0; f < features.length; f++) {\n const feature = features[f];\n const geometry = feature.geometry;\n\n if (geometry.type === 'Polygon') {\n const coordinates = geometry.coordinates;\n for (let c = 0; c < coordinates.length; c++) {\n coordinates[c] = decodePolygon(\n coordinates[c],\n geometry.encodeOffsets[c],\n encodeScale\n ) as any;\n }\n }\n else if (geometry.type === 'MultiPolygon') {\n const coordinates = geometry.coordinates;\n for (let c = 0; c < coordinates.length; c++) {\n const coordinate = coordinates[c];\n for (let c2 = 0; c2 < coordinate.length; c2++) {\n coordinate[c2] = decodePolygon(\n coordinate[c2],\n geometry.encodeOffsets[c][c2],\n encodeScale\n ) as any;\n }\n }\n }\n }\n // Has been decoded\n jsonCompressed.UTF8Encoding = false;\n\n return jsonCompressed as GeoJSON;\n}\n\nfunction decodePolygon(\n coordinate: string,\n encodeOffsets: number[],\n encodeScale: number\n): number[][] {\n const result = [];\n let prevX = encodeOffsets[0];\n let prevY = encodeOffsets[1];\n\n for (let i = 0; i < coordinate.length; i += 2) {\n let x = coordinate.charCodeAt(i) - 64;\n let y = coordinate.charCodeAt(i + 1) - 64;\n // ZigZag decoding\n x = (x >> 1) ^ (-(x & 1));\n y = (y >> 1) ^ (-(y & 1));\n // Delta deocding\n x += prevX;\n y += prevY;\n\n prevX = x;\n prevY = y;\n // Dequantize\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson: GeoJSON | GeoJSONCompressed, nameProperty: string): GeoJSONRegion[] {\n\n geoJson = decode(geoJson);\n\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry\n && featureObj.properties\n && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n const properties = featureObj.properties;\n const geo = featureObj.geometry;\n\n const geometries = [] as GeoJSONRegion['geometries'];\n if (geo.type === 'Polygon') {\n const coordinates = geo.coordinates;\n geometries.push({\n type: 'polygon',\n // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n exterior: coordinates[0],\n interiors: coordinates.slice(1)\n });\n }\n if (geo.type === 'MultiPolygon') {\n const coordinates = geo.coordinates;\n zrUtil.each(coordinates, function (item) {\n if (item[0]) {\n geometries.push({\n type: 'polygon',\n exterior: item[0],\n interiors: item.slice(1)\n });\n }\n });\n }\n\n const region = new GeoJSONRegion(\n properties[nameProperty || 'name'],\n geometries,\n properties.cp\n );\n region.properties = properties;\n return region;\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Fix for \u5357\u6D77\u8BF8\u5C9B\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { GeoJSONRegion } from '../Region';\n\nconst geoCoord = [126, 25];\nconst nanhaiName = '\u5357\u6D77\u8BF8\u5C9B';\n\nconst points = [\n [[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7],\n [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]],\n [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]],\n [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]],\n [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]],\n [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]],\n [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]],\n [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]],\n [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]],\n [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]],\n [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]],\n [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]],\n [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4],\n [1, 92.4], [1, 3.5], [0, 3.5]]\n];\n\nfor (let i = 0; i < points.length; i++) {\n for (let k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType: string, regions: GeoJSONRegion[]) {\n if (mapType === 'china') {\n for (let i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(\n nanhaiName,\n zrUtil.map(points, function (exterior) {\n return {\n type: 'polygon',\n exterior: exterior\n };\n }), geoCoord\n ));\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { GeoJSONRegion } from '../Region';\nimport { Dictionary } from 'zrender/src/core/types';\n\nconst coordsOffsetMap = {\n '\u5357\u6D77\u8BF8\u5C9B': [32, 80],\n // \u5168\u56FD\n '\u5E7F\u4E1C': [0, -10],\n '\u9999\u6E2F': [10, 5],\n '\u6FB3\u95E8': [-10, 10],\n //'\u5317\u4EAC': [-10, 0],\n '\u5929\u6D25': [5, 5]\n} as Dictionary;\n\nexport default function fixTextCoords(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'china') {\n const coordFix = coordsOffsetMap[region.name];\n if (coordFix) {\n const cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from 'zrender/src/core/types';\nimport { GeoJSONRegion } from '../Region';\n\nconst geoCoordMap = {\n 'Russia': [100, 60],\n 'United States': [-99, 38],\n 'United States of America': [-99, 38]\n} as Dictionary;\n\nexport default function fixGeoCoords(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'world') {\n const geoCoord = geoCoordMap[region.name];\n if (geoCoord) {\n const cp = [\n geoCoord[0],\n geoCoord[1]\n ];\n region.setCenter(cp);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { GeoJSONRegion } from '../Region';\n\n// Fix for \u9493\u9C7C\u5C9B\n\n// let Region = require('../Region');\n// let zrUtil = require('zrender/src/core/util');\n\n// let geoCoord = [126, 25];\n\nconst points = [\n [\n [123.45165252685547, 25.73527164402261],\n [123.49731445312499, 25.73527164402261],\n [123.49731445312499, 25.750734064600884],\n [123.45165252685547, 25.750734064600884],\n [123.45165252685547, 25.73527164402261]\n ]\n];\n\nexport default function fixDiaoyuIsland(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'china' && region.name === '\u53F0\u6E7E') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { each, isString, createHashMap } from 'zrender/src/core/util';\nimport parseGeoJson from './parseGeoJson';\n// Built-in GEO fixer.\nimport fixNanhai from './fix/nanhai';\nimport fixTextCoord from './fix/textCoord';\nimport fixGeoCoord from './fix/geoCoord';\nimport fixDiaoyuIsland from './fix/diaoyuIsland';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { GeoJSONRegion } from './Region';\nimport { GeoJSON, GeoJSONCompressed, GeoJSONSourceInput, GeoResource, GeoSpecialAreas, NameMap } from './geoTypes';\n\n\nconst DEFAULT_NAME_PROPERTY = 'name' as const;\n\nexport class GeoJSONResource implements GeoResource {\n\n readonly type = 'geoJSON';\n private _geoJSON: GeoJSON | GeoJSONCompressed;\n private _specialAreas: GeoSpecialAreas;\n private _mapName: string;\n\n private _parsedMap = createHashMap<{\n regions: GeoJSONRegion[];\n boundingRect: BoundingRect;\n }, string>();\n\n constructor(\n mapName: string,\n geoJSON: GeoJSONSourceInput,\n specialAreas: GeoSpecialAreas\n ) {\n this._mapName = mapName;\n this._specialAreas = specialAreas;\n\n // PENDING: delay the parse to the first usage to rapid up the FMP?\n this._geoJSON = parseInput(geoJSON);\n }\n\n /**\n * @param nameMap can be null/undefined\n * @param nameProperty can be null/undefined\n */\n load(nameMap: NameMap, nameProperty: string) {\n\n nameProperty = nameProperty || DEFAULT_NAME_PROPERTY;\n\n let parsed = this._parsedMap.get(nameProperty);\n if (!parsed) {\n const rawRegions = this._parseToRegions(nameProperty);\n parsed = this._parsedMap.set(nameProperty, {\n regions: rawRegions,\n boundingRect: calculateBoundingRect(rawRegions)\n });\n }\n\n const regionsMap = createHashMap();\n\n const finalRegions: GeoJSONRegion[] = [];\n each(parsed.regions, function (region) {\n let regionName = region.name;\n\n // Try use the alias in geoNameMap\n if (nameMap && nameMap.hasOwnProperty(regionName)) {\n region = region.cloneShallow(regionName = nameMap[regionName]);\n }\n\n finalRegions.push(region);\n regionsMap.set(regionName, region);\n });\n\n return {\n regions: finalRegions,\n boundingRect: parsed.boundingRect || new BoundingRect(0, 0, 0, 0),\n regionsMap: regionsMap\n };\n }\n\n private _parseToRegions(nameProperty: string): GeoJSONRegion[] {\n const mapName = this._mapName;\n const geoJSON = this._geoJSON;\n let rawRegions;\n\n // https://jsperf.com/try-catch-performance-overhead\n try {\n rawRegions = geoJSON ? parseGeoJson(geoJSON, nameProperty) : [];\n }\n catch (e) {\n throw new Error('Invalid geoJson format\\n' + e.message);\n }\n\n fixNanhai(mapName, rawRegions);\n\n each(rawRegions, function (region) {\n const regionName = region.name;\n\n fixTextCoord(mapName, region);\n fixGeoCoord(mapName, region);\n fixDiaoyuIsland(mapName, region);\n\n // Some area like Alaska in USA map needs to be tansformed\n // to look better\n const specialArea = this._specialAreas && this._specialAreas[regionName];\n if (specialArea) {\n region.transformTo(\n specialArea.left, specialArea.top, specialArea.width, specialArea.height\n );\n }\n }, this);\n\n return rawRegions;\n }\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser(): {\n // backward compat.\n geoJson: GeoJSON | GeoJSONCompressed;\n geoJSON: GeoJSON | GeoJSONCompressed;\n specialAreas: GeoSpecialAreas;\n } {\n return {\n // For backward compatibility, use geoJson\n // PENDING: it has been returning them without clone.\n // do we need to avoid outsite modification?\n geoJson: this._geoJSON,\n geoJSON: this._geoJSON,\n specialAreas: this._specialAreas\n };\n }\n\n}\n\nfunction calculateBoundingRect(regions: GeoJSONRegion[]): BoundingRect {\n let rect;\n for (let i = 0; i < regions.length; i++) {\n const regionRect = regions[i].getBoundingRect();\n rect = rect || regionRect.clone();\n rect.union(regionRect);\n }\n return rect;\n}\n\nfunction parseInput(source: GeoJSONSourceInput): GeoJSON | GeoJSONCompressed {\n return !isString(source)\n ? source\n : (typeof JSON !== 'undefined' && JSON.parse)\n ? JSON.parse(source)\n : (new Function('return (' + source + ');'))();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { createHashMap } from 'zrender/src/core/util';\nimport { GeoSVGResource } from './GeoSVGResource';\nimport {\n GeoJSON,\n GeoJSONSourceInput,\n GeoResource,\n GeoSpecialAreas,\n NameMap,\n GeoSVGSourceInput\n} from './geoTypes';\nimport { GeoJSONResource } from './GeoJSONResource';\n\n\ntype MapInput = GeoJSONMapInput | SVGMapInput;\ninterface GeoJSONMapInput {\n geoJSON: GeoJSONSourceInput;\n specialAreas: GeoSpecialAreas;\n}\ninterface GeoJSONMapInputCompat extends GeoJSONMapInput {\n geoJson: GeoJSONSourceInput;\n}\ninterface SVGMapInput {\n svg: GeoSVGSourceInput;\n}\n\n\nconst storage = createHashMap();\n\n\nexport default {\n\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (\n mapName: string,\n rawDef: MapInput | GeoJSONSourceInput,\n rawSpecialAreas?: GeoSpecialAreas\n ): void {\n\n if ((rawDef as SVGMapInput).svg) {\n const resource = new GeoSVGResource(\n mapName,\n (rawDef as SVGMapInput).svg\n );\n\n storage.set(mapName, resource);\n }\n else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n let geoJSON = (rawDef as GeoJSONMapInputCompat).geoJson\n || (rawDef as GeoJSONMapInput).geoJSON;\n if (geoJSON && !(rawDef as GeoJSON).features) {\n rawSpecialAreas = (rawDef as GeoJSONMapInput).specialAreas;\n }\n else {\n geoJSON = rawDef as GeoJSONSourceInput;\n }\n const resource = new GeoJSONResource(\n mapName,\n geoJSON,\n rawSpecialAreas\n );\n\n storage.set(mapName, resource);\n }\n },\n\n getGeoResource(mapName: string): GeoResource {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName: string): ReturnType {\n const resource = storage.get(mapName);\n // Do not support return SVG until some real requirement come.\n return resource && resource.type === 'geoJSON'\n && (resource as GeoJSONResource).getMapForUser();\n },\n\n load: function (mapName: string, nameMap: NameMap, nameProperty: string): ReturnType {\n const resource = storage.get(mapName);\n\n if (!resource) {\n if (__DEV__) {\n console.error(\n 'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'\n );\n }\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Eventful, { EventCallback } from 'zrender/src/core/Eventful';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\nimport { EChartsType } from './echarts';\nimport ExtensionAPI from './ExtensionAPI';\nimport { ModelFinderIdQuery, ModelFinderIndexQuery } from '../util/model';\nimport { DimensionLoose } from '../util/types';\n\nexport interface UpdateLifecycleTransitionSeriesFinder {\n seriesIndex?: ModelFinderIndexQuery,\n seriesId?: ModelFinderIdQuery\n dimension: DimensionLoose;\n}\n\nexport interface UpdateLifecycleTransitionItem {\n // If `from` not given, it means that do not make series transition mandatorily.\n // There might be transition mapping dy default. Sometimes we do not need them,\n // which might bring about misleading.\n from?: UpdateLifecycleTransitionSeriesFinder | UpdateLifecycleTransitionSeriesFinder[];\n to: UpdateLifecycleTransitionSeriesFinder | UpdateLifecycleTransitionSeriesFinder[];\n};\n\nexport type UpdateLifecycleTransitionOpt = UpdateLifecycleTransitionItem | UpdateLifecycleTransitionItem[];\n\nexport interface UpdateLifecycleParams {\n updatedSeries?: SeriesModel[]\n\n /**\n * If this update is from setOption and option is changed.\n */\n optionChanged?: boolean\n\n // Specify series to transition in this setOption.\n seriesTransition?: UpdateLifecycleTransitionOpt\n}\ninterface LifecycleEvents {\n 'afterinit': [EChartsType],\n 'series:beforeupdate': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:layoutlabels': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:transition': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:afterupdate': [GlobalModel, ExtensionAPI, UpdateLifecycleParams]\n // 'series:beforeeachupdate': [GlobalModel, ExtensionAPI, SeriesModel]\n // 'series:aftereachupdate': [GlobalModel, ExtensionAPI, SeriesModel]\n 'afterupdate': [GlobalModel, ExtensionAPI]\n}\n\nconst lifecycle = new Eventful<{\n [key in keyof LifecycleEvents]: EventCallback\n}>();\n\n\nexport default lifecycle;\n\nexport {LifecycleEvents};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrender from 'zrender/src/zrender';\nimport {\n assert,\n each,\n isFunction,\n isObject,\n indexOf,\n bind,\n clone,\n setAsPrimitive,\n createCanvas,\n extend,\n HashMap,\n createHashMap,\n map,\n defaults,\n isDom,\n isArray,\n $override,\n noop\n} from 'zrender/src/core/util';\nimport * as colorTool from 'zrender/src/tool/color';\nimport env from 'zrender/src/core/env';\nimport timsort from 'zrender/src/core/timsort';\nimport Eventful, { EventCallbackSingleParam } from 'zrender/src/core/Eventful';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport GlobalModel, {QueryConditionKindA, GlobalModelSetOptionOpts} from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport CoordinateSystemManager from './CoordinateSystem';\nimport OptionManager from '../model/OptionManager';\nimport backwardCompat from '../preprocessor/backwardCompat';\nimport dataStack from '../processor/dataStack';\nimport ComponentModel from '../model/Component';\nimport SeriesModel from '../model/Series';\nimport ComponentView, {ComponentViewConstructor} from '../view/Component';\nimport ChartView, {ChartViewConstructor} from '../view/Chart';\nimport * as graphic from '../util/graphic';\nimport {getECData} from '../util/innerStore';\nimport {\n isHighDownDispatcher,\n HOVER_STATE_EMPHASIS,\n HOVER_STATE_BLUR,\n blurSeriesFromHighlightPayload,\n toggleSelectionFromPayload,\n updateSeriesElementSelection,\n getAllSelectedIndices,\n isSelectChangePayload,\n isHighDownPayload,\n HIGHLIGHT_ACTION_TYPE,\n DOWNPLAY_ACTION_TYPE,\n SELECT_ACTION_TYPE,\n UNSELECT_ACTION_TYPE,\n TOGGLE_SELECT_ACTION_TYPE,\n savePathStates,\n enterEmphasis,\n leaveEmphasis,\n leaveBlur,\n enterSelect,\n leaveSelect,\n enterBlur,\n allLeaveBlur,\n findComponentHighDownDispatchers,\n blurComponent,\n handleGlobalMouseOverForHighDown,\n handleGlboalMouseOutForHighDown\n} from '../util/states';\nimport * as modelUtil from '../util/model';\nimport {throttle} from '../util/throttle';\nimport {seriesStyleTask, dataStyleTask, dataColorPaletteTask} from '../visual/style';\nimport loadingDefault from '../loading/default';\nimport Scheduler from './Scheduler';\nimport lightTheme from '../theme/light';\nimport darkTheme from '../theme/dark';\nimport {CoordinateSystemMaster, CoordinateSystemCreator, CoordinateSystemHostModel} from '../coord/CoordinateSystem';\nimport { parseClassType } from '../util/clazz';\nimport {ECEventProcessor} from '../util/ECEventProcessor';\nimport {\n Payload, ECElement, RendererType, ECActionEvent,\n ActionHandler, ActionInfo, OptionPreprocessor, PostUpdater,\n LoadingEffect, LoadingEffectCreator, StageHandlerInternal,\n StageHandlerOverallReset, StageHandler,\n ViewRootGroup, DimensionDefinitionLoose, ECEventData, ThemeOption,\n ECBasicOption,\n ECUnitOption,\n ZRColor,\n ComponentMainType,\n ComponentSubType,\n ColorString,\n SelectChangedPayload,\n ScaleDataValue,\n ZRElementEventName,\n ECElementEvent,\n AnimationOption\n} from '../util/types';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport { seriesSymbolTask, dataSymbolTask } from '../visual/symbol';\nimport { getVisualFromData, getItemVisualFromData } from '../visual/helper';\nimport { deprecateLog } from '../util/log';\nimport { handleLegacySelectEvents } from '../legacy/dataSelectAction';\n\nimport { registerExternalTransform } from '../data/helper/transform';\nimport { createLocaleObject, SYSTEM_LANG, LocaleOption } from './locale';\n\nimport type {EChartsOption} from '../export/option';\nimport { findEventDispatcher } from '../util/event';\nimport decal from '../visual/decal';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\nimport SVGPainter from 'zrender/src/svg/Painter';\nimport geoSourceManager from '../coord/geo/geoSourceManager';\nimport lifecycle, {\n LifecycleEvents,\n UpdateLifecycleTransitionItem,\n UpdateLifecycleParams,\n UpdateLifecycleTransitionOpt\n} from './lifecycle';\n\ndeclare let global: any;\n\ntype ModelFinder = modelUtil.ModelFinder;\n\nconst hasWindow = typeof window !== 'undefined';\n\nexport const version = '5.1.2';\n\nexport const dependencies = {\n zrender: '5.1.1'\n};\n\nconst TEST_FRAME_REMAIN_TIME = 1;\n\nconst PRIORITY_PROCESSOR_SERIES_FILTER = 800;\n// Some data processors depends on the stack result dimension (to calculate data extent).\n// So data stack stage should be in front of data processing stage.\nconst PRIORITY_PROCESSOR_DATASTACK = 900;\n// \"Data filter\" will block the stream, so it should be\n// put at the begining of data processing.\nconst PRIORITY_PROCESSOR_FILTER = 1000;\nconst PRIORITY_PROCESSOR_DEFAULT = 2000;\nconst PRIORITY_PROCESSOR_STATISTIC = 5000;\n\nconst PRIORITY_VISUAL_LAYOUT = 1000;\nconst PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;\nconst PRIORITY_VISUAL_GLOBAL = 2000;\nconst PRIORITY_VISUAL_CHART = 3000;\nconst PRIORITY_VISUAL_COMPONENT = 4000;\n// Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to\n// overwrite the viusal result of component (like `visualMap`)\n// using data item specific setting (like itemStyle.xxx on data item)\nconst PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500;\n// Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on\n// visual result like `symbolSize`.\nconst PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;\nconst PRIORITY_VISUAL_BRUSH = 5000;\nconst PRIORITY_VISUAL_ARIA = 6000;\nconst PRIORITY_VISUAL_DECAL = 7000;\n\nexport const PRIORITY = {\n PROCESSOR: {\n FILTER: PRIORITY_PROCESSOR_FILTER,\n SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,\n STATISTIC: PRIORITY_PROCESSOR_STATISTIC\n },\n VISUAL: {\n LAYOUT: PRIORITY_VISUAL_LAYOUT,\n PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,\n GLOBAL: PRIORITY_VISUAL_GLOBAL,\n CHART: PRIORITY_VISUAL_CHART,\n POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,\n COMPONENT: PRIORITY_VISUAL_COMPONENT,\n BRUSH: PRIORITY_VISUAL_BRUSH,\n CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,\n ARIA: PRIORITY_VISUAL_ARIA,\n DECAL: PRIORITY_VISUAL_DECAL\n }\n};\n\n// Main process have three entries: `setOption`, `dispatchAction` and `resize`,\n// where they must not be invoked nestedly, except the only case: invoke\n// dispatchAction with updateMethod \"none\" in main process.\n// This flag is used to carry out this rule.\n// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).\nconst IN_MAIN_PROCESS_KEY = '__flagInMainProcess' as const;\nconst PENDING_UPDATE = '__pendingUpdate' as const;\nconst STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus' as const;\nconst ACTION_REG = /^[a-zA-Z0-9_]+$/;\n\nconst CONNECT_STATUS_KEY = '__connectUpdateStatus' as const;\nconst CONNECT_STATUS_PENDING = 0 as const;\nconst CONNECT_STATUS_UPDATING = 1 as const;\nconst CONNECT_STATUS_UPDATED = 2 as const;\ntype ConnectStatus =\n typeof CONNECT_STATUS_PENDING\n | typeof CONNECT_STATUS_UPDATING\n | typeof CONNECT_STATUS_UPDATED;\n\nexport type SetOptionTransitionOpt = UpdateLifecycleTransitionOpt;\nexport type SetOptionTransitionOptItem = UpdateLifecycleTransitionItem;\n\nexport interface SetOptionOpts {\n notMerge?: boolean;\n lazyUpdate?: boolean;\n silent?: boolean;\n // Rule: only `id` mapped will be merged,\n // other components of the certain `mainType` will be removed.\n replaceMerge?: GlobalModelSetOptionOpts['replaceMerge'];\n transition?: SetOptionTransitionOpt\n};\n\n\nexport interface ResizeOpts {\n width?: number | 'auto', // Can be 'auto' (the same as null/undefined)\n height?: number | 'auto', // Can be 'auto' (the same as null/undefined)\n animation?: AnimationOption\n silent?: boolean // by default false.\n};\n\ninterface PostIniter {\n (chart: EChartsType): void\n}\n\ntype EventMethodName = 'on' | 'off';\nfunction createRegisterEventWithLowercaseECharts(method: EventMethodName) {\n return function (this: ECharts, ...args: any): ECharts {\n if (this.isDisposed()) {\n disposedWarning(this.id);\n return;\n }\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\nfunction createRegisterEventWithLowercaseMessageCenter(method: EventMethodName) {\n return function (this: MessageCenter, ...args: any): MessageCenter {\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\nfunction toLowercaseNameAndCallEventful(host: T, method: EventMethodName, args: any): T {\n // `args[0]` is event name. Event name is all lowercase.\n args[0] = args[0] && args[0].toLowerCase();\n return Eventful.prototype[method].apply(host, args) as any;\n}\n\n\nclass MessageCenter extends Eventful {}\nconst messageCenterProto = MessageCenter.prototype;\nmessageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');\nmessageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off');\n\n// ---------------------------------------\n// Internal method names for class ECharts\n// ---------------------------------------\nlet prepare: (ecIns: ECharts) => void;\nlet prepareView: (ecIns: ECharts, isComponent: boolean) => void;\nlet updateDirectly: (\n ecIns: ECharts, method: string, payload: Payload, mainType: ComponentMainType, subType?: ComponentSubType\n) => void;\ntype UpdateMethod = (this: ECharts, payload?: Payload, renderParams?: UpdateLifecycleParams) => void;\nlet updateMethods: {\n prepareAndUpdate: UpdateMethod,\n update: UpdateMethod,\n updateTransform: UpdateMethod,\n updateView: UpdateMethod,\n updateVisual: UpdateMethod,\n updateLayout: UpdateMethod\n};\nlet doConvertPixel: (\n ecIns: ECharts,\n methodName: string,\n finder: ModelFinder,\n value: (number | number[]) | (ScaleDataValue | ScaleDataValue[])\n) => (number | number[]);\nlet updateStreamModes: (ecIns: ECharts, ecModel: GlobalModel) => void;\nlet doDispatchAction: (this: ECharts, payload: Payload, silent: boolean) => void;\nlet flushPendingActions: (this: ECharts, silent: boolean) => void;\nlet triggerUpdatedEvent: (this: ECharts, silent: boolean) => void;\nlet bindRenderedEvent: (zr: zrender.ZRenderType, ecIns: ECharts) => void;\nlet bindMouseEvent: (zr: zrender.ZRenderType, ecIns: ECharts) => void;\nlet clearColorPalette: (ecModel: GlobalModel) => void;\nlet render: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload, updateParams: UpdateLifecycleParams\n) => void;\nlet renderComponents: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams, dirtyList?: ComponentView[]\n) => void;\nlet renderSeries: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload | 'remain',\n updateParams: UpdateLifecycleParams,\n dirtyMap?: {[uid: string]: any}\n) => void;\nlet createExtensionAPI: (ecIns: ECharts) => ExtensionAPI;\nlet enableConnect: (ecIns: ECharts) => void;\n\nlet markStatusToUpdate: (ecIns: ECharts) => void;\nlet applyChangedStates: (ecIns: ECharts) => void;\n\ntype RenderedEventParam = { elapsedTime: number };\ntype ECEventDefinition = {\n [key in ZRElementEventName]: EventCallbackSingleParam\n} & {\n rendered: EventCallbackSingleParam\n finished: () => void | boolean\n} & {\n // TODO: Use ECActionEvent\n [key: string]: (...args: unknown[]) => void | boolean\n};\ntype EChartsInitOpts = {\n locale?: string | LocaleOption,\n renderer?: RendererType,\n devicePixelRatio?: number,\n useDirtyRect?: boolean,\n width?: number,\n height?: number\n};\nclass ECharts extends Eventful {\n\n /**\n * @readonly\n */\n id: string;\n\n /**\n * Group id\n * @readonly\n */\n group: string;\n\n private _zr: zrender.ZRenderType;\n\n private _dom: HTMLElement;\n\n private _model: GlobalModel;\n\n private _throttledZrFlush: zrender.ZRenderType extends {flush: infer R} ? R : never;\n\n private _theme: ThemeOption;\n\n private _locale: LocaleOption;\n\n private _chartsViews: ChartView[] = [];\n\n private _chartsMap: {[viewId: string]: ChartView} = {};\n\n private _componentsViews: ComponentView[] = [];\n\n private _componentsMap: {[viewId: string]: ComponentView} = {};\n\n private _coordSysMgr: CoordinateSystemManager;\n\n private _api: ExtensionAPI;\n\n private _scheduler: Scheduler;\n\n private _messageCenter: MessageCenter;\n\n // Can't dispatch action during rendering procedure\n private _pendingActions: Payload[] = [];\n\n // We use never here so ECEventProcessor will not been exposed.\n // which may include many unexpected types won't be exposed in the types to developers.\n protected _$eventProcessor: never;\n\n private _disposed: boolean;\n\n private _loadingFX: LoadingEffect;\n\n\n private [PENDING_UPDATE]: {\n silent: boolean\n updateParams: UpdateLifecycleParams\n };\n private [IN_MAIN_PROCESS_KEY]: boolean;\n private [CONNECT_STATUS_KEY]: ConnectStatus;\n private [STATUS_NEEDS_UPDATE_KEY]: boolean;\n\n constructor(\n dom: HTMLElement,\n // Theme name or themeOption.\n theme?: string | ThemeOption,\n opts?: EChartsInitOpts\n ) {\n super(new ECEventProcessor());\n\n opts = opts || {};\n\n // Get theme by name\n if (typeof theme === 'string') {\n theme = themeStorage[theme] as object;\n }\n\n this._dom = dom;\n\n let defaultRenderer = 'canvas';\n let defaultUseDirtyRect = false;\n if (__DEV__) {\n const root = (\n /* eslint-disable-next-line */\n hasWindow ? window : global\n ) as any;\n\n defaultRenderer = root.__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;\n\n const devUseDirtyRect = root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;\n defaultUseDirtyRect = devUseDirtyRect == null\n ? defaultUseDirtyRect\n : devUseDirtyRect;\n }\n\n const zr = this._zr = zrender.init(dom, {\n renderer: opts.renderer || defaultRenderer,\n devicePixelRatio: opts.devicePixelRatio,\n width: opts.width,\n height: opts.height,\n useDirtyRect: opts.useDirtyRect == null ? defaultUseDirtyRect : opts.useDirtyRect\n });\n\n // Expect 60 fps.\n this._throttledZrFlush = throttle(bind(zr.flush, zr), 17);\n\n theme = clone(theme);\n theme && backwardCompat(theme as ECUnitOption, true);\n\n this._theme = theme;\n\n this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);\n\n this._coordSysMgr = new CoordinateSystemManager();\n\n const api = this._api = createExtensionAPI(this);\n\n // Sort on demand\n function prioritySortFunc(a: StageHandlerInternal, b: StageHandlerInternal): number {\n return a.__prio - b.__prio;\n }\n timsort(visualFuncs, prioritySortFunc);\n timsort(dataProcessorFuncs, prioritySortFunc);\n\n this._scheduler = new Scheduler(this, api, dataProcessorFuncs, visualFuncs);\n\n this._messageCenter = new MessageCenter();\n\n // Init mouse events\n this._initEvents();\n\n // In case some people write `window.onresize = chart.resize`\n this.resize = bind(this.resize, this);\n\n zr.animation.on('frame', this._onframe, this);\n\n bindRenderedEvent(zr, this);\n\n bindMouseEvent(zr, this);\n\n // ECharts instance can be used as value.\n setAsPrimitive(this);\n }\n\n private _onframe(): void {\n if (this._disposed) {\n return;\n }\n\n applyChangedStates(this);\n\n const scheduler = this._scheduler;\n\n // Lazy update\n if (this[PENDING_UPDATE]) {\n const silent = (this[PENDING_UPDATE] as any).silent;\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n prepare(this);\n updateMethods.update.call(this, null, this[PENDING_UPDATE].updateParams);\n\n // At present, in each frame, zrender performs:\n // (1) animation step forward.\n // (2) trigger('frame') (where this `_onframe` is called)\n // (3) zrender flush (render).\n // If we do nothing here, since we use `setToFinal: true`, the step (3) above\n // will render the final state of the elements before the real animation started.\n this._zr.flush();\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n this[PENDING_UPDATE] = null;\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n // Avoid do both lazy update and progress in one frame.\n else if (scheduler.unfinished) {\n // Stream progress.\n let remainTime = TEST_FRAME_REMAIN_TIME;\n const ecModel = this._model;\n const api = this._api;\n scheduler.unfinished = false;\n do {\n const startTime = +new Date();\n\n scheduler.performSeriesTasks(ecModel);\n\n // Currently dataProcessorFuncs do not check threshold.\n scheduler.performDataProcessorTasks(ecModel);\n\n updateStreamModes(this, ecModel);\n\n // Do not update coordinate system here. Because that coord system update in\n // each frame is not a good user experience. So we follow the rule that\n // the extent of the coordinate system is determin in the first frame (the\n // frame is executed immedietely after task reset.\n // this._coordSysMgr.update(ecModel, api);\n\n // console.log('--- ec frame visual ---', remainTime);\n scheduler.performVisualTasks(ecModel);\n\n renderSeries(this, this._model, api, 'remain', {});\n\n remainTime -= (+new Date() - startTime);\n }\n while (remainTime > 0 && scheduler.unfinished);\n\n // Call flush explicitly for trigger finished event.\n if (!scheduler.unfinished) {\n this._zr.flush();\n }\n // Else, zr flushing be ensue within the same frame,\n // because zr flushing is after onframe event.\n }\n }\n\n getDom(): HTMLElement {\n return this._dom;\n }\n\n getId(): string {\n return this.id;\n }\n\n getZr(): zrender.ZRenderType {\n return this._zr;\n }\n\n /**\n * Usage:\n * chart.setOption(option, notMerge, lazyUpdate);\n * chart.setOption(option, {\n * notMerge: ...,\n * lazyUpdate: ...,\n * silent: ...\n * });\n *\n * @param opts opts or notMerge.\n * @param opts.notMerge Default `false`.\n * @param opts.lazyUpdate Default `false`. Useful when setOption frequently.\n * @param opts.silent Default `false`.\n * @param opts.replaceMerge Default undefined.\n */\n // Expose to user full option.\n setOption(option: Opt, notMerge?: boolean, lazyUpdate?: boolean): void;\n setOption(option: Opt, opts?: SetOptionOpts): void;\n /* eslint-disable-next-line */\n setOption(option: Opt, notMerge?: boolean | SetOptionOpts, lazyUpdate?: boolean): void {\n if (__DEV__) {\n assert(!this[IN_MAIN_PROCESS_KEY], '`setOption` should not be called during main process.');\n }\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n let silent;\n let replaceMerge;\n let transitionOpt: SetOptionTransitionOpt;\n if (isObject(notMerge)) {\n lazyUpdate = notMerge.lazyUpdate;\n silent = notMerge.silent;\n replaceMerge = notMerge.replaceMerge;\n transitionOpt = notMerge.transition;\n notMerge = notMerge.notMerge;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n if (!this._model || notMerge) {\n const optionManager = new OptionManager(this._api);\n const theme = this._theme;\n const ecModel = this._model = new GlobalModel();\n ecModel.scheduler = this._scheduler;\n ecModel.init(null, null, null, theme, this._locale, optionManager);\n }\n\n this._model.setOption(option as ECBasicOption, { replaceMerge }, optionPreprocessorFuncs);\n\n const updateParams = {\n seriesTransition: transitionOpt,\n optionChanged: true\n } as UpdateLifecycleParams;\n\n if (lazyUpdate) {\n this[PENDING_UPDATE] = {\n silent: silent,\n updateParams: updateParams\n };\n this[IN_MAIN_PROCESS_KEY] = false;\n\n // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.\n // It should wake it up to make sure zrender start to render at the next frame.\n this.getZr().wakeUp();\n }\n else {\n prepare(this);\n\n updateMethods.update.call(this, null, updateParams);\n\n // Ensure zr refresh sychronously, and then pixel in canvas can be\n // fetched after `setOption`.\n this._zr.flush();\n\n this[PENDING_UPDATE] = null;\n this[IN_MAIN_PROCESS_KEY] = false;\n\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n }\n }\n\n /**\n * @DEPRECATED\n */\n private setTheme(): void {\n console.error('ECharts#setTheme() is DEPRECATED in ECharts 3.0');\n }\n\n // We don't want developers to use getModel directly.\n private getModel(): GlobalModel {\n return this._model;\n }\n\n getOption(): ECBasicOption {\n return this._model && this._model.getOption() as ECBasicOption;\n }\n\n getWidth(): number {\n return this._zr.getWidth();\n }\n\n getHeight(): number {\n return this._zr.getHeight();\n }\n\n getDevicePixelRatio(): number {\n return (this._zr.painter as CanvasPainter).dpr\n /* eslint-disable-next-line */\n || (hasWindow && window.devicePixelRatio) || 1;\n }\n\n /**\n * Get canvas which has all thing rendered\n */\n getRenderedCanvas(opts?: {\n backgroundColor?: ZRColor\n pixelRatio?: number\n }): HTMLCanvasElement {\n if (!env.canvasSupported) {\n return;\n }\n opts = opts || {};\n return (this._zr.painter as CanvasPainter).getRenderedCanvas({\n backgroundColor: (opts.backgroundColor || this._model.get('backgroundColor')) as ColorString,\n pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()\n });\n }\n\n /**\n * Get svg data url\n */\n getSvgDataURL(): string {\n if (!env.svgSupported) {\n return;\n }\n\n const zr = this._zr;\n const list = zr.storage.getDisplayList();\n // Stop animations\n each(list, function (el: Element) {\n el.stopAnimation(null, true);\n });\n\n return (zr.painter as SVGPainter).toDataURL();\n }\n\n getDataURL(opts?: {\n // file type 'png' by default\n type?: 'png' | 'jpg' | 'svg',\n pixelRatio?: number,\n backgroundColor?: ZRColor,\n // component type array\n excludeComponents?: ComponentMainType[]\n }): string {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n opts = opts || {};\n const excludeComponents = opts.excludeComponents;\n const ecModel = this._model;\n const excludesComponentViews: ComponentView[] = [];\n const self = this;\n\n each(excludeComponents, function (componentType) {\n ecModel.eachComponent({\n mainType: componentType\n }, function (component) {\n const view = self._componentsMap[component.__viewId];\n if (!view.group.ignore) {\n excludesComponentViews.push(view);\n view.group.ignore = true;\n }\n });\n });\n\n const url = this._zr.painter.getType() === 'svg'\n ? this.getSvgDataURL()\n : this.getRenderedCanvas(opts).toDataURL(\n 'image/' + (opts && opts.type || 'png')\n );\n\n each(excludesComponentViews, function (view) {\n view.group.ignore = false;\n });\n\n return url;\n }\n\n getConnectedDataURL(opts?: {\n // file type 'png' by default\n type?: 'png' | 'jpg' | 'svg',\n pixelRatio?: number,\n backgroundColor?: ZRColor,\n connectedBackgroundColor?: ZRColor\n excludeComponents?: string[]\n }): string {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!env.canvasSupported) {\n return;\n }\n const isSvg = opts.type === 'svg';\n const groupId = this.group;\n const mathMin = Math.min;\n const mathMax = Math.max;\n const MAX_NUMBER = Infinity;\n if (connectedGroups[groupId]) {\n let left = MAX_NUMBER;\n let top = MAX_NUMBER;\n let right = -MAX_NUMBER;\n let bottom = -MAX_NUMBER;\n const canvasList: {dom: HTMLCanvasElement | string, left: number, top: number}[] = [];\n const dpr = (opts && opts.pixelRatio) || this.getDevicePixelRatio();\n\n each(instances, function (chart, id) {\n if (chart.group === groupId) {\n const canvas = isSvg\n ? (chart.getZr().painter as SVGPainter).getSvgDom().innerHTML\n : chart.getRenderedCanvas(clone(opts));\n const boundingRect = chart.getDom().getBoundingClientRect();\n left = mathMin(boundingRect.left, left);\n top = mathMin(boundingRect.top, top);\n right = mathMax(boundingRect.right, right);\n bottom = mathMax(boundingRect.bottom, bottom);\n canvasList.push({\n dom: canvas,\n left: boundingRect.left,\n top: boundingRect.top\n });\n }\n });\n\n left *= dpr;\n top *= dpr;\n right *= dpr;\n bottom *= dpr;\n const width = right - left;\n const height = bottom - top;\n const targetCanvas = createCanvas();\n const zr = zrender.init(targetCanvas, {\n renderer: isSvg ? 'svg' : 'canvas'\n });\n zr.resize({\n width: width,\n height: height\n });\n\n if (isSvg) {\n let content = '';\n each(canvasList, function (item) {\n const x = item.left - left;\n const y = item.top - top;\n content += '' + item.dom + '';\n });\n (zr.painter as SVGPainter).getSvgRoot().innerHTML = content;\n\n if (opts.connectedBackgroundColor) {\n (zr.painter as SVGPainter).setBackgroundColor(opts.connectedBackgroundColor as string);\n }\n\n zr.refreshImmediately();\n return (zr.painter as SVGPainter).toDataURL();\n }\n else {\n // Background between the charts\n if (opts.connectedBackgroundColor) {\n zr.add(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: width,\n height: height\n },\n style: {\n fill: opts.connectedBackgroundColor\n }\n }));\n }\n\n each(canvasList, function (item) {\n const img = new graphic.Image({\n style: {\n x: item.left * dpr - left,\n y: item.top * dpr - top,\n image: item.dom\n }\n });\n zr.add(img);\n });\n zr.refreshImmediately();\n\n return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));\n }\n }\n else {\n return this.getDataURL(opts);\n }\n }\n\n /**\n * Convert from logical coordinate system to pixel coordinate system.\n * See CoordinateSystem#convertToPixel.\n */\n convertToPixel(finder: ModelFinder, value: ScaleDataValue): number;\n convertToPixel(finder: ModelFinder, value: ScaleDataValue[]): number[];\n convertToPixel(finder: ModelFinder, value: ScaleDataValue | ScaleDataValue[]): number | number[] {\n return doConvertPixel(this, 'convertToPixel', finder, value);\n }\n\n /**\n * Convert from pixel coordinate system to logical coordinate system.\n * See CoordinateSystem#convertFromPixel.\n */\n convertFromPixel(finder: ModelFinder, value: number): number;\n convertFromPixel(finder: ModelFinder, value: number[]): number[];\n convertFromPixel(finder: ModelFinder, value: number | number[]): number | number[] {\n return doConvertPixel(this, 'convertFromPixel', finder, value);\n }\n\n /**\n * Is the specified coordinate systems or components contain the given pixel point.\n * @param {Array|number} value\n * @return {boolean} result\n */\n containPixel(finder: ModelFinder, value: number[]): boolean {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n const ecModel = this._model;\n let result: boolean;\n\n const findResult = modelUtil.parseFinder(ecModel, finder);\n\n each(findResult, function (models, key) {\n key.indexOf('Models') >= 0 && each(models as ComponentModel[], function (model) {\n const coordSys = (model as CoordinateSystemHostModel).coordinateSystem;\n if (coordSys && coordSys.containPoint) {\n result = result || !!coordSys.containPoint(value);\n }\n else if (key === 'seriesModels') {\n const view = this._chartsMap[model.__viewId];\n if (view && view.containPoint) {\n result = result || view.containPoint(value, model as SeriesModel);\n }\n else {\n if (__DEV__) {\n console.warn(key + ': ' + (view\n ? 'The found component do not support containPoint.'\n : 'No view mapping to the found component.'\n ));\n }\n }\n }\n else {\n if (__DEV__) {\n console.warn(key + ': containPoint is not supported');\n }\n }\n }, this);\n }, this);\n\n return !!result;\n }\n\n /**\n * Get visual from series or data.\n * @param finder\n * If string, e.g., 'series', means {seriesIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex / seriesId / seriesName,\n * dataIndex / dataIndexInside\n * }\n * If dataIndex is not specified, series visual will be fetched,\n * but not data item visual.\n * If all of seriesIndex, seriesId, seriesName are not specified,\n * visual will be fetched from first series.\n * @param visualType 'color', 'symbol', 'symbolSize'\n */\n getVisual(finder: ModelFinder, visualType: string) {\n const ecModel = this._model;\n\n const parsedFinder = modelUtil.parseFinder(ecModel, finder, {\n defaultMainType: 'series'\n }) as modelUtil.ParsedModelFinderKnown;\n\n const seriesModel = parsedFinder.seriesModel;\n\n if (__DEV__) {\n if (!seriesModel) {\n console.warn('There is no specified seires model');\n }\n }\n\n const data = seriesModel.getData();\n\n const dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside')\n ? parsedFinder.dataIndexInside\n : parsedFinder.hasOwnProperty('dataIndex')\n ? data.indexOfRawIndex(parsedFinder.dataIndex)\n : null;\n\n return dataIndexInside != null\n ? getItemVisualFromData(data, dataIndexInside, visualType)\n : getVisualFromData(data, visualType);\n }\n\n /**\n * Get view of corresponding component model\n */\n private getViewOfComponentModel(componentModel: ComponentModel): ComponentView {\n return this._componentsMap[componentModel.__viewId];\n }\n\n /**\n * Get view of corresponding series model\n */\n private getViewOfSeriesModel(seriesModel: SeriesModel): ChartView {\n return this._chartsMap[seriesModel.__viewId];\n }\n\n\n private _initEvents(): void {\n each(MOUSE_EVENT_NAMES, (eveName) => {\n const handler = (e: ElementEvent) => {\n const ecModel = this.getModel();\n const el = e.target;\n let params: ECElementEvent;\n const isGlobalOut = eveName === 'globalout';\n // no e.target when 'globalout'.\n if (isGlobalOut) {\n params = {} as ECElementEvent;\n }\n else {\n el && findEventDispatcher(el, (parent) => {\n const ecData = getECData(parent);\n if (ecData && ecData.dataIndex != null) {\n const dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);\n params = (\n dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {}\n ) as ECElementEvent;\n return true;\n }\n // If element has custom eventData of components\n else if (ecData.eventData) {\n params = extend({}, ecData.eventData) as ECElementEvent;\n return true;\n }\n }, true);\n }\n\n // Contract: if params prepared in mouse event,\n // these properties must be specified:\n // {\n // componentType: string (component main type)\n // componentIndex: number\n // }\n // Otherwise event query can not work.\n\n if (params) {\n let componentType = params.componentType;\n let componentIndex = params.componentIndex;\n // Special handling for historic reason: when trigger by\n // markLine/markPoint/markArea, the componentType is\n // 'markLine'/'markPoint'/'markArea', but we should better\n // enable them to be queried by seriesIndex, since their\n // option is set in each series.\n if (componentType === 'markLine'\n || componentType === 'markPoint'\n || componentType === 'markArea'\n ) {\n componentType = 'series';\n componentIndex = params.seriesIndex;\n }\n const model = componentType && componentIndex != null\n && ecModel.getComponent(componentType, componentIndex);\n const view = model && this[\n model.mainType === 'series' ? '_chartsMap' : '_componentsMap'\n ][model.__viewId];\n\n if (__DEV__) {\n // `event.componentType` and `event[componentTpype + 'Index']` must not\n // be missed, otherwise there is no way to distinguish source component.\n // See `dataFormat.getDataParams`.\n if (!isGlobalOut && !(model && view)) {\n console.warn('model or view can not be found by params');\n }\n }\n\n params.event = e;\n params.type = eveName;\n\n (this._$eventProcessor as ECEventProcessor).eventInfo = {\n targetEl: el,\n packedEvent: params,\n model: model,\n view: view\n };\n\n this.trigger(eveName, params);\n }\n };\n // Consider that some component (like tooltip, brush, ...)\n // register zr event handler, but user event handler might\n // do anything, such as call `setOption` or `dispatchAction`,\n // which probably update any of the content and probably\n // cause problem if it is called previous other inner handlers.\n (handler as any).zrEventfulCallAtLast = true;\n this._zr.on(eveName, handler, this);\n });\n\n each(eventActionMap, (actionType, eventType) => {\n this._messageCenter.on(eventType, function (event: Payload) {\n (this as any).trigger(eventType, event);\n }, this);\n });\n\n // Extra events\n // TODO register?\n each(\n ['selectchanged'],\n (eventType) => {\n this._messageCenter.on(eventType, function (event: Payload) {\n (this as any).trigger(eventType, event);\n }, this);\n }\n );\n\n handleLegacySelectEvents(this._messageCenter, this, this._api);\n }\n\n isDisposed(): boolean {\n return this._disposed;\n }\n\n clear(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n this.setOption({ series: [] } as EChartsOption, true);\n }\n\n dispose(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n this._disposed = true;\n\n modelUtil.setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');\n\n const chart = this;\n const api = chart._api;\n const ecModel = chart._model;\n\n each(chart._componentsViews, function (component) {\n component.dispose(ecModel, api);\n });\n each(chart._chartsViews, function (chart) {\n chart.dispose(ecModel, api);\n });\n\n // Dispose after all views disposed\n chart._zr.dispose();\n\n // Set properties to null.\n // To reduce the memory cost in case the top code still holds this instance unexpectedly.\n chart._dom =\n chart._model =\n chart._chartsMap =\n chart._componentsMap =\n chart._chartsViews =\n chart._componentsViews =\n chart._scheduler =\n chart._api =\n chart._zr =\n chart._throttledZrFlush =\n chart._theme =\n chart._coordSysMgr =\n chart._messageCenter = null;\n\n delete instances[chart.id];\n }\n\n /**\n * Resize the chart\n */\n resize(opts?: ResizeOpts): void {\n if (__DEV__) {\n assert(!this[IN_MAIN_PROCESS_KEY], '`resize` should not be called during main process.');\n }\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._zr.resize(opts);\n\n const ecModel = this._model;\n\n // Resize loading effect\n this._loadingFX && this._loadingFX.resize();\n\n if (!ecModel) {\n return;\n }\n\n let needPrepare = ecModel.resetOption('media');\n\n let silent = opts && opts.silent;\n\n // There is some real cases that:\n // chart.setOption(option, { lazyUpdate: true });\n // chart.resize();\n if (this[PENDING_UPDATE]) {\n if (silent == null) {\n silent = (this[PENDING_UPDATE] as any).silent;\n }\n needPrepare = true;\n this[PENDING_UPDATE] = null;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n needPrepare && prepare(this);\n\n updateMethods.update.call(this, {\n type: 'resize',\n animation: extend({\n // Disable animation\n duration: 0\n }, opts && opts.animation)\n });\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n\n /**\n * Show loading effect\n * @param name 'default' by default\n * @param cfg cfg of registered loading effect\n */\n showLoading(cfg?: object): void;\n showLoading(name?: string, cfg?: object): void;\n showLoading(name?: string | object, cfg?: object): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (isObject(name)) {\n cfg = name as object;\n name = '';\n }\n name = name || 'default';\n\n this.hideLoading();\n if (!loadingEffects[name]) {\n if (__DEV__) {\n console.warn('Loading effects ' + name + ' not exists.');\n }\n return;\n }\n const el = loadingEffects[name](this._api, cfg);\n const zr = this._zr;\n this._loadingFX = el;\n\n zr.add(el);\n }\n\n /**\n * Hide loading effect\n */\n hideLoading(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._loadingFX && this._zr.remove(this._loadingFX);\n this._loadingFX = null;\n }\n\n makeActionFromEvent(eventObj: ECActionEvent): Payload {\n const payload = extend({}, eventObj) as Payload;\n payload.type = eventActionMap[eventObj.type];\n return payload;\n }\n\n /**\n * @param opt If pass boolean, means opt.silent\n * @param opt.silent Default `false`. Whether trigger events.\n * @param opt.flush Default `undefined`.\n * true: Flush immediately, and then pixel in canvas can be fetched\n * immediately. Caution: it might affect performance.\n * false: Not flush.\n * undefined: Auto decide whether perform flush.\n */\n dispatchAction(\n payload: Payload,\n opt?: boolean | {\n silent?: boolean,\n flush?: boolean | undefined\n }\n ): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!isObject(opt)) {\n opt = {silent: !!opt};\n }\n\n if (!actions[payload.type]) {\n return;\n }\n\n // Avoid dispatch action before setOption. Especially in `connect`.\n if (!this._model) {\n return;\n }\n\n // May dispatchAction in rendering procedure\n if (this[IN_MAIN_PROCESS_KEY]) {\n this._pendingActions.push(payload);\n return;\n }\n\n const silent = opt.silent;\n doDispatchAction.call(this, payload, silent);\n\n const flush = opt.flush;\n if (flush) {\n this._zr.flush();\n }\n else if (flush !== false && env.browser.weChat) {\n // In WeChat embeded browser, `requestAnimationFrame` and `setInterval`\n // hang when sliding page (on touch event), which cause that zr does not\n // refresh util user interaction finished, which is not expected.\n // But `dispatchAction` may be called too frequently when pan on touch\n // screen, which impacts performance if do not throttle them.\n this._throttledZrFlush();\n }\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n\n updateLabelLayout() {\n lifecycle.trigger('series:layoutlabels', this._model, this._api, {\n // Not adding series labels.\n // TODO\n updatedSeries: []\n });\n }\n\n appendData(params: {\n seriesIndex: number,\n data: any\n }): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n const seriesIndex = params.seriesIndex;\n const ecModel = this.getModel();\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex) as SeriesModel;\n\n if (__DEV__) {\n assert(params.data && seriesModel);\n }\n\n seriesModel.appendData(params);\n\n // Note: `appendData` does not support that update extent of coordinate\n // system, util some scenario require that. In the expected usage of\n // `appendData`, the initial extent of coordinate system should better\n // be fixed by axis `min`/`max` setting or initial data, otherwise if\n // the extent changed while `appendData`, the location of the painted\n // graphic elements have to be changed, which make the usage of\n // `appendData` meaningless.\n\n this._scheduler.unfinished = true;\n\n this.getZr().wakeUp();\n }\n\n\n // A work around for no `internal` modifier in ts yet but\n // need to strictly hide private methods to JS users.\n private static internalField = (function () {\n\n prepare = function (ecIns: ECharts): void {\n const scheduler = ecIns._scheduler;\n\n scheduler.restorePipelines(ecIns._model);\n scheduler.prepareStageTasks();\n\n prepareView(ecIns, true);\n prepareView(ecIns, false);\n\n scheduler.plan();\n };\n\n /**\n * Prepare view instances of charts and components\n */\n prepareView = function (ecIns: ECharts, isComponent: boolean): void {\n const ecModel = ecIns._model;\n const scheduler = ecIns._scheduler;\n const viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;\n const viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;\n const zr = ecIns._zr;\n const api = ecIns._api;\n\n for (let i = 0; i < viewList.length; i++) {\n viewList[i].__alive = false;\n }\n\n isComponent\n ? ecModel.eachComponent(function (componentType, model) {\n componentType !== 'series' && doPrepare(model);\n })\n : ecModel.eachSeries(doPrepare);\n\n function doPrepare(model: ComponentModel): void {\n // By defaut view will be reused if possible for the case that `setOption` with \"notMerge\"\n // mode and need to enable transition animation. (Usually, when they have the same id, or\n // especially no id but have the same type & name & index. See the `model.id` generation\n // rule in `makeIdAndName` and `viewId` generation rule here).\n // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that\n // the new model has nothing to do with the old model.\n const requireNewView = model.__requireNewView;\n // This command should not work twice.\n model.__requireNewView = false;\n // Consider: id same and type changed.\n const viewId = '_ec_' + model.id + '_' + model.type;\n let view = !requireNewView && viewMap[viewId];\n if (!view) {\n const classType = parseClassType(model.type);\n const Clazz = isComponent\n ? (ComponentView as ComponentViewConstructor).getClass(classType.main, classType.sub)\n : (\n // FIXME:TS\n // (ChartView as ChartViewConstructor).getClass('series', classType.sub)\n // For backward compat, still support a chart type declared as only subType\n // like \"liquidfill\", but recommend \"series.liquidfill\"\n // But need a base class to make a type series.\n (ChartView as ChartViewConstructor).getClass(classType.sub)\n );\n\n if (__DEV__) {\n assert(Clazz, classType.sub + ' does not exist.');\n }\n\n view = new Clazz();\n view.init(ecModel, api);\n viewMap[viewId] = view;\n viewList.push(view as any);\n zr.add(view.group);\n }\n\n model.__viewId = view.__id = viewId;\n view.__alive = true;\n view.__model = model;\n view.group.__ecComponentInfo = {\n mainType: model.mainType,\n index: model.componentIndex\n };\n !isComponent && scheduler.prepareView(\n view as ChartView, model as SeriesModel, ecModel, api\n );\n }\n\n for (let i = 0; i < viewList.length;) {\n const view = viewList[i];\n if (!view.__alive) {\n !isComponent && (view as ChartView).renderTask.dispose();\n zr.remove(view.group);\n view.dispose(ecModel, api);\n viewList.splice(i, 1);\n if (viewMap[view.__id] === view) {\n delete viewMap[view.__id];\n }\n view.__id = view.group.__ecComponentInfo = null;\n }\n else {\n i++;\n }\n }\n };\n\n updateDirectly = function (\n ecIns: ECharts,\n method: string,\n payload: Payload,\n mainType: ComponentMainType,\n subType?: ComponentSubType\n ): void {\n const ecModel = ecIns._model;\n\n ecModel.setUpdatePayload(payload);\n\n // broadcast\n if (!mainType) {\n // FIXME\n // Chart will not be update directly here, except set dirty.\n // But there is no such scenario now.\n each([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);\n return;\n }\n\n const query: QueryConditionKindA['query'] = {};\n query[mainType + 'Id'] = payload[mainType + 'Id'];\n query[mainType + 'Index'] = payload[mainType + 'Index'];\n query[mainType + 'Name'] = payload[mainType + 'Name'];\n\n const condition = {mainType: mainType, query: query} as QueryConditionKindA;\n subType && (condition.subType = subType); // subType may be '' by parseClassType;\n\n const excludeSeriesId = payload.excludeSeriesId;\n let excludeSeriesIdMap: HashMap;\n if (excludeSeriesId != null) {\n excludeSeriesIdMap = createHashMap();\n each(modelUtil.normalizeToArray(excludeSeriesId), id => {\n const modelId = modelUtil.convertOptionIdName(id, null);\n if (modelId != null) {\n excludeSeriesIdMap.set(modelId, true);\n }\n });\n }\n\n if (isHighDownPayload(payload)) {\n allLeaveBlur(ecIns._api);\n }\n\n // If dispatchAction before setOption, do nothing.\n ecModel && ecModel.eachComponent(condition, function (model) {\n const isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) !== null;\n if (isExcluded) {\n return;\n };\n if (isHighDownPayload(payload)) {\n if (model instanceof SeriesModel) {\n if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur) {\n blurSeriesFromHighlightPayload(model, payload, ecIns._api);\n }\n }\n else {\n const { focusSelf, dispatchers } = findComponentHighDownDispatchers(\n model.mainType, model.componentIndex, payload.name, ecIns._api\n );\n if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {\n blurComponent(model.mainType, model.componentIndex, ecIns._api);\n }\n // PENDING:\n // Whether to put this \"enter emphasis\" code in `ComponentView`,\n // which will be the same as `ChartView` but might be not necessary\n // and will be far from this logic.\n if (dispatchers) {\n each(dispatchers, dispatcher => {\n payload.type === HIGHLIGHT_ACTION_TYPE\n ? enterEmphasis(dispatcher)\n : leaveEmphasis(dispatcher);\n });\n }\n }\n }\n else if (isSelectChangePayload(payload)) {\n // TODO geo\n if (model instanceof SeriesModel) {\n toggleSelectionFromPayload(model, payload, ecIns._api);\n updateSeriesElementSelection(model);\n markStatusToUpdate(ecIns);\n }\n }\n }, ecIns);\n\n ecModel && ecModel.eachComponent(condition, function (model) {\n const isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) !== null;\n if (isExcluded) {\n return;\n };\n callView(ecIns[\n mainType === 'series' ? '_chartsMap' : '_componentsMap'\n ][model.__viewId]);\n }, ecIns);\n\n function callView(view: ComponentView | ChartView) {\n view && view.__alive && (view as any)[method] && (view as any)[method](\n view.__model, ecModel, ecIns._api, payload\n );\n }\n };\n\n updateMethods = {\n\n prepareAndUpdate(this: ECharts, payload: Payload): void {\n prepare(this);\n updateMethods.update.call(this, payload, {\n // Needs to mark option changed if newOption is given.\n // It's from MagicType.\n // TODO If use a separate flag optionChanged in payload?\n optionChanged: payload.newOption != null\n });\n },\n\n update(this: ECharts, payload: Payload, updateParams: UpdateLifecycleParams): void {\n const ecModel = this._model;\n const api = this._api;\n const zr = this._zr;\n const coordSysMgr = this._coordSysMgr;\n const scheduler = this._scheduler;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n scheduler.restoreData(ecModel, payload);\n\n scheduler.performSeriesTasks(ecModel);\n\n // TODO\n // Save total ecModel here for undo/redo (after restoring data and before processing data).\n // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.\n\n // Create new coordinate system each update\n // In LineView may save the old coordinate system and use it to get the orignal point\n coordSysMgr.create(ecModel, api);\n\n scheduler.performDataProcessorTasks(ecModel, payload);\n\n // Current stream render is not supported in data process. So we can update\n // stream modes after data processing, where the filtered data is used to\n // deteming whether use progressive rendering.\n updateStreamModes(this, ecModel);\n\n // We update stream modes before coordinate system updated, then the modes info\n // can be fetched when coord sys updating (consider the barGrid extent fix). But\n // the drawback is the full coord info can not be fetched. Fortunately this full\n // coord is not requied in stream mode updater currently.\n coordSysMgr.update(ecModel, api);\n\n clearColorPalette(ecModel);\n scheduler.performVisualTasks(ecModel, payload);\n\n render(this, ecModel, api, payload, updateParams);\n\n // Set background\n let backgroundColor = ecModel.get('backgroundColor') || 'transparent';\n const darkMode = ecModel.get('darkMode');\n\n // In IE8\n if (!env.canvasSupported) {\n const colorArr = colorTool.parse(backgroundColor as ColorString);\n backgroundColor = colorTool.stringify(colorArr, 'rgb');\n if (colorArr[3] === 0) {\n backgroundColor = 'transparent';\n }\n }\n else {\n zr.setBackgroundColor(backgroundColor);\n\n // Force set dark mode.\n if (darkMode != null && darkMode !== 'auto') {\n zr.setDarkMode(darkMode);\n }\n }\n\n lifecycle.trigger('afterupdate', ecModel, api);\n },\n\n updateTransform(this: ECharts, payload: Payload): void {\n const ecModel = this._model;\n const api = this._api;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n // ChartView.markUpdateMethod(payload, 'updateTransform');\n\n const componentDirtyList = [];\n ecModel.eachComponent((componentType, componentModel) => {\n if (componentType === 'series') {\n return;\n }\n\n const componentView = this.getViewOfComponentModel(componentModel);\n if (componentView && componentView.__alive) {\n if (componentView.updateTransform) {\n const result = componentView.updateTransform(componentModel, ecModel, api, payload);\n result && result.update && componentDirtyList.push(componentView);\n }\n else {\n componentDirtyList.push(componentView);\n }\n }\n });\n\n const seriesDirtyMap = createHashMap();\n ecModel.eachSeries((seriesModel) => {\n const chartView = this._chartsMap[seriesModel.__viewId];\n if (chartView.updateTransform) {\n const result = chartView.updateTransform(seriesModel, ecModel, api, payload);\n result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);\n }\n else {\n seriesDirtyMap.set(seriesModel.uid, 1);\n }\n });\n\n clearColorPalette(ecModel);\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);\n this._scheduler.performVisualTasks(\n ecModel, payload, {setDirty: true, dirtyMap: seriesDirtyMap}\n );\n\n // Currently, not call render of components. Geo render cost a lot.\n // renderComponents(ecIns, ecModel, api, payload, componentDirtyList);\n renderSeries(this, ecModel, api, payload, {}, seriesDirtyMap);\n\n lifecycle.trigger('afterupdate', ecModel, api);\n },\n\n updateView(this: ECharts, payload: Payload): void {\n const ecModel = this._model;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n ChartView.markUpdateMethod(payload, 'updateView');\n\n clearColorPalette(ecModel);\n\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n this._scheduler.performVisualTasks(ecModel, payload, {setDirty: true});\n\n render(this, ecModel, this._api, payload, {});\n\n lifecycle.trigger('afterupdate', ecModel, this._api);\n },\n\n updateVisual(this: ECharts, payload: Payload): void {\n // updateMethods.update.call(this, payload);\n\n const ecModel = this._model;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n // clear all visual\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.getData().clearAllVisual();\n });\n\n // Perform visual\n ChartView.markUpdateMethod(payload, 'updateVisual');\n\n clearColorPalette(ecModel);\n\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n this._scheduler.performVisualTasks(ecModel, payload, {visualType: 'visual', setDirty: true});\n\n ecModel.eachComponent((componentType, componentModel) => { // TODO componentType may be series.\n if (componentType !== 'series') {\n const componentView = this.getViewOfComponentModel(componentModel);\n componentView && componentView.__alive\n && componentView.updateVisual(componentModel, ecModel, this._api, payload);\n }\n });\n\n ecModel.eachSeries((seriesModel) => {\n const chartView = this._chartsMap[seriesModel.__viewId];\n chartView.updateVisual(seriesModel, ecModel, this._api, payload);\n });\n\n lifecycle.trigger('afterupdate', ecModel, this._api);\n },\n\n updateLayout(this: ECharts, payload: Payload): void {\n updateMethods.update.call(this, payload);\n }\n };\n\n doConvertPixel = function (\n ecIns: ECharts,\n methodName: 'convertFromPixel' | 'convertToPixel',\n finder: ModelFinder,\n value: (number | number[]) | (ScaleDataValue | ScaleDataValue[])\n ): (number | number[]) {\n if (ecIns._disposed) {\n disposedWarning(ecIns.id);\n return;\n }\n const ecModel = ecIns._model;\n const coordSysList = ecIns._coordSysMgr.getCoordinateSystems();\n let result;\n\n const parsedFinder = modelUtil.parseFinder(ecModel, finder);\n\n for (let i = 0; i < coordSysList.length; i++) {\n const coordSys = coordSysList[i];\n if (coordSys[methodName]\n && (result = coordSys[methodName](ecModel, parsedFinder, value as any)) != null\n ) {\n return result;\n }\n }\n\n if (__DEV__) {\n console.warn(\n 'No coordinate system that supports ' + methodName + ' found by the given finder.'\n );\n }\n };\n\n updateStreamModes = function (ecIns: ECharts, ecModel: GlobalModel): void {\n const chartsMap = ecIns._chartsMap;\n const scheduler = ecIns._scheduler;\n ecModel.eachSeries(function (seriesModel) {\n scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);\n });\n };\n\n doDispatchAction = function (this: ECharts, payload: Payload, silent: boolean): void {\n const ecModel = this.getModel();\n const payloadType = payload.type;\n const escapeConnect = payload.escapeConnect;\n const actionWrap = actions[payloadType];\n const actionInfo = actionWrap.actionInfo;\n\n const cptTypeTmp = (actionInfo.update || 'update').split(':');\n const updateMethod = cptTypeTmp.pop();\n const cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n let payloads: Payload[] = [payload];\n let batched = false;\n // Batch action\n if (payload.batch) {\n batched = true;\n payloads = map(payload.batch, function (item) {\n item = defaults(extend({}, item), payload);\n item.batch = null;\n return item as Payload;\n });\n }\n\n const eventObjBatch: ECEventData[] = [];\n let eventObj: ECActionEvent;\n\n const isSelectChange = isSelectChangePayload(payload);\n const isHighDown = isHighDownPayload(payload);\n\n each(payloads, (batchItem) => {\n // Action can specify the event by return it.\n eventObj = actionWrap.action(batchItem, this._model, this._api) as ECActionEvent;\n // Emit event outside\n eventObj = eventObj || extend({} as ECActionEvent, batchItem);\n // Convert type to eventType\n eventObj.type = actionInfo.event || eventObj.type;\n eventObjBatch.push(eventObj);\n\n // light update does not perform data process, layout and visual.\n if (isHighDown) {\n const { queryOptionMap, mainTypeSpecified } = modelUtil.preParseFinder(payload as ModelFinder);\n const componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';\n updateDirectly(this, updateMethod, batchItem as Payload, componentMainType);\n markStatusToUpdate(this);\n }\n else if (isSelectChange) {\n // At present `dispatchAction({ type: 'select', ... })` is not supported on components.\n // geo still use 'geoselect'.\n updateDirectly(this, updateMethod, batchItem as Payload, 'series');\n markStatusToUpdate(this);\n }\n else if (cptType) {\n updateDirectly(this, updateMethod, batchItem as Payload, cptType.main, cptType.sub);\n }\n });\n\n if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {\n // Still dirty\n if (this[PENDING_UPDATE]) {\n prepare(this);\n updateMethods.update.call(this, payload);\n this[PENDING_UPDATE] = null;\n }\n else {\n updateMethods[updateMethod as keyof typeof updateMethods].call(this, payload);\n }\n }\n\n // Follow the rule of action batch\n if (batched) {\n eventObj = {\n type: actionInfo.event || payloadType,\n escapeConnect: escapeConnect,\n batch: eventObjBatch\n };\n }\n else {\n eventObj = eventObjBatch[0] as ECActionEvent;\n }\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n if (!silent) {\n const messageCenter = this._messageCenter;\n messageCenter.trigger(eventObj.type, eventObj);\n // Extra triggered 'selectchanged' event\n if (isSelectChange) {\n const newObj: SelectChangedPayload = {\n type: 'selectchanged',\n escapeConnect: escapeConnect,\n selected: getAllSelectedIndices(ecModel),\n isFromClick: payload.isFromClick || false,\n fromAction: payload.type as 'select' | 'unselect' | 'toggleSelected',\n fromActionPayload: payload\n };\n messageCenter.trigger(newObj.type, newObj);\n }\n }\n };\n\n flushPendingActions = function (this: ECharts, silent: boolean): void {\n const pendingActions = this._pendingActions;\n while (pendingActions.length) {\n const payload = pendingActions.shift();\n doDispatchAction.call(this, payload, silent);\n }\n };\n\n triggerUpdatedEvent = function (this: ECharts, silent): void {\n !silent && this.trigger('updated');\n };\n\n /**\n * Event `rendered` is triggered when zr\n * rendered. It is useful for realtime\n * snapshot (reflect animation).\n *\n * Event `finished` is triggered when:\n * (1) zrender rendering finished.\n * (2) initial animation finished.\n * (3) progressive rendering finished.\n * (4) no pending action.\n * (5) no delayed setOption needs to be processed.\n */\n bindRenderedEvent = function (zr: zrender.ZRenderType, ecIns: ECharts): void {\n zr.on('rendered', function (params: RenderedEventParam) {\n\n ecIns.trigger('rendered', params);\n\n // The `finished` event should not be triggered repeatly,\n // so it should only be triggered when rendering indeed happend\n // in zrender. (Consider the case that dipatchAction is keep\n // triggering when mouse move).\n if (\n // Although zr is dirty if initial animation is not finished\n // and this checking is called on frame, we also check\n // animation finished for robustness.\n zr.animation.isFinished()\n && !ecIns[PENDING_UPDATE]\n && !ecIns._scheduler.unfinished\n && !ecIns._pendingActions.length\n ) {\n ecIns.trigger('finished');\n }\n });\n };\n\n bindMouseEvent = function (zr: zrender.ZRenderType, ecIns: ECharts): void {\n zr.on('mouseover', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n if (dispatcher) {\n handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('mouseout', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n if (dispatcher) {\n handleGlboalMouseOutForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('click', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(\n el, (target) => getECData(target).dataIndex != null, true\n );\n if (dispatcher) {\n const actionType = (dispatcher as ECElement).selected ? 'unselect' : 'select';\n const ecData = getECData(dispatcher);\n ecIns._api.dispatchAction({\n type: actionType,\n dataType: ecData.dataType,\n dataIndexInside: ecData.dataIndex,\n seriesIndex: ecData.seriesIndex,\n isFromClick: true\n });\n }\n });\n };\n\n clearColorPalette = function (ecModel: GlobalModel): void {\n ecModel.clearColorPalette();\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.clearColorPalette();\n });\n };\n\n render = (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams\n ) => {\n\n renderComponents(ecIns, ecModel, api, payload, updateParams);\n\n each(ecIns._chartsViews, function (chart: ChartView) {\n chart.__alive = false;\n });\n\n renderSeries(ecIns, ecModel, api, payload, updateParams);\n\n // Remove groups of unrendered charts\n each(ecIns._chartsViews, function (chart: ChartView) {\n if (!chart.__alive) {\n chart.remove(ecModel, api);\n }\n });\n };\n\n renderComponents = (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams, dirtyList?: ComponentView[]\n ) => {\n each(dirtyList || ecIns._componentsViews, function (componentView: ComponentView) {\n const componentModel = componentView.__model;\n clearStates(componentModel, componentView);\n\n componentView.render(componentModel, ecModel, api, payload);\n\n updateZ(componentModel, componentView);\n\n updateStates(componentModel, componentView);\n });\n\n };\n\n /**\n * Render each chart and component\n */\n renderSeries = (\n ecIns: ECharts,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload | 'remain',\n updateParams: UpdateLifecycleParams,\n dirtyMap?: {[uid: string]: any}\n ) => {\n // Render all charts\n const scheduler = ecIns._scheduler;\n\n updateParams = extend(updateParams || {}, {\n updatedSeries: ecModel.getSeries()\n });\n\n // TODO progressive?\n lifecycle.trigger('series:beforeupdate', ecModel, api, updateParams);\n\n let unfinished: boolean = false;\n ecModel.eachSeries(function (seriesModel) {\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n\n const renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n // TODO states on marker.\n clearStates(seriesModel, chartView);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {\n unfinished = true;\n }\n\n chartView.group.silent = !!seriesModel.get('silent');\n // Should not call markRedraw on group, because it will disable zrender\n // increamental render (alway render from the __startIndex each frame)\n // chartView.group.markRedraw();\n\n updateBlend(seriesModel, chartView);\n\n updateSeriesElementSelection(seriesModel);\n });\n\n scheduler.unfinished = unfinished || scheduler.unfinished;\n\n lifecycle.trigger('series:layoutlabels', ecModel, api, updateParams);\n\n // transition after label is layouted.\n lifecycle.trigger('series:transition', ecModel, api, updateParams);\n\n ecModel.eachSeries(function (seriesModel) {\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n // Update Z after labels updated. Before applying states.\n updateZ(seriesModel, chartView);\n\n // NOTE: Update states after label is updated.\n // label should be in normal status when layouting.\n updateStates(seriesModel, chartView);\n });\n\n // If use hover layer\n updateHoverLayerStatus(ecIns, ecModel);\n\n lifecycle.trigger('series:afterupdate', ecModel, api, updateParams);\n };\n\n markStatusToUpdate = function (ecIns: ECharts): void {\n ecIns[STATUS_NEEDS_UPDATE_KEY] = true;\n // Wake up zrender if it's sleep. Let it update states in the next frame.\n ecIns.getZr().wakeUp();\n };\n\n applyChangedStates = function (ecIns: ECharts): void {\n if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {\n return;\n }\n\n ecIns.getZr().storage.traverse(function (el: ECElement) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n applyElementStates(el);\n });\n\n ecIns[STATUS_NEEDS_UPDATE_KEY] = false;\n };\n\n function applyElementStates(el: ECElement) {\n const newStates = [];\n\n const oldStates = el.currentStates;\n // Keep other states.\n for (let i = 0; i < oldStates.length; i++) {\n const stateName = oldStates[i];\n if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {\n newStates.push(stateName);\n }\n }\n\n // Only use states when it's exists.\n if (el.selected && el.states.select) {\n newStates.push('select');\n }\n if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {\n newStates.push('emphasis');\n }\n else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {\n newStates.push('blur');\n }\n el.useStates(newStates);\n }\n\n function updateHoverLayerStatus(ecIns: ECharts, ecModel: GlobalModel): void {\n const zr = ecIns._zr;\n const storage = zr.storage;\n let elCount = 0;\n\n storage.traverse(function (el) {\n if (!el.isGroup) {\n elCount++;\n }\n });\n\n if (elCount > ecModel.get('hoverLayerThreshold') && !env.node && !env.worker) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.preventUsingHoverLayer) {\n return;\n }\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n if (chartView.__alive) {\n chartView.group.traverse(function (el: ECElement) {\n if (el.states.emphasis) {\n el.states.emphasis.hoverLayer = true;\n }\n });\n }\n });\n }\n };\n\n /**\n * Update chart and blend.\n */\n function updateBlend(seriesModel: SeriesModel, chartView: ChartView): void {\n const blendMode = seriesModel.get('blendMode') || null;\n if (__DEV__) {\n if (!env.canvasSupported && blendMode && blendMode !== 'source-over') {\n console.warn('Only canvas support blendMode');\n }\n }\n chartView.group.traverse(function (el: Displayable) {\n // FIXME marker and other components\n if (!el.isGroup) {\n // DONT mark the element dirty. In case element is incremental and don't wan't to rerender.\n el.style.blend = blendMode;\n }\n if ((el as IncrementalDisplayable).eachPendingDisplayable) {\n (el as IncrementalDisplayable).eachPendingDisplayable(function (displayable) {\n displayable.style.blend = blendMode;\n });\n }\n });\n };\n\n function updateZ(model: ComponentModel, view: ComponentView | ChartView): void {\n if (model.preventAutoZ) {\n return;\n }\n // Set z and zlevel\n _updateZ(\n view.group,\n model.get('z') || 0,\n model.get('zlevel') || 0,\n -Infinity\n );\n };\n\n function _updateZ(el: Element, z: number, zlevel: number, maxZ2: number): number {\n // Group may also have textContent\n const label = el.getTextContent();\n const labelLine = el.getTextGuideLine();\n const isGroup = el.isGroup;\n\n if (isGroup) {\n // set z & zlevel of children elements of Group\n // el.traverse((childEl: Element) => _updateZ(childEl, z, zlevel));\n const children = (el as graphic.Group).childrenRef();\n for (let i = 0; i < children.length; i++) {\n maxZ2 = Math.max(_updateZ(children[i], z, zlevel, maxZ2), maxZ2);\n }\n }\n else {\n // not Group\n (el as Displayable).z = z;\n (el as Displayable).zlevel = zlevel;\n\n maxZ2 = Math.max((el as Displayable).z2, maxZ2);\n }\n\n // always set z and zlevel if label/labelLine exists\n if (label) {\n label.z = z;\n label.zlevel = zlevel;\n // lift z2 of text content\n // TODO if el.emphasis.z2 is spcefied, what about textContent.\n isFinite(maxZ2) && (label.z2 = maxZ2 + 2);\n }\n if (labelLine) {\n const textGuideLineConfig = el.textGuideLineConfig;\n labelLine.z = z;\n labelLine.zlevel = zlevel;\n isFinite(maxZ2)\n && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));\n }\n return maxZ2;\n }\n\n // Clear states without animation.\n // TODO States on component.\n function clearStates(model: ComponentModel, view: ComponentView | ChartView): void {\n view.group.traverse(function (el: Displayable) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n if (el.stateTransition) {\n el.stateTransition = null;\n }\n if (textContent && textContent.stateTransition) {\n textContent.stateTransition = null;\n }\n if (textGuide && textGuide.stateTransition) {\n textGuide.stateTransition = null;\n }\n\n // TODO If el is incremental.\n if (el.hasState()) {\n el.prevStates = el.currentStates;\n el.clearStates();\n }\n else if (el.prevStates) {\n el.prevStates = null;\n }\n });\n }\n\n function updateStates(model: ComponentModel, view: ComponentView | ChartView): void {\n const stateAnimationModel = (model as SeriesModel).getModel('stateAnimation');\n const enableAnimation = model.isAnimationEnabled();\n const duration = stateAnimationModel.get('duration');\n const stateTransition = duration > 0 ? {\n duration,\n delay: stateAnimationModel.get('delay'),\n easing: stateAnimationModel.get('easing')\n // additive: stateAnimationModel.get('additive')\n } : null;\n view.group.traverse(function (el: Displayable) {\n if (el.states && el.states.emphasis) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n if (el instanceof graphic.Path) {\n savePathStates(el);\n }\n\n // Only updated on changed element. In case element is incremental and don't wan't to rerender.\n // TODO, a more proper way?\n if (el.__dirty) {\n const prevStates = el.prevStates;\n // Restore states without animation\n if (prevStates) {\n el.useStates(prevStates);\n }\n }\n\n // Update state transition and enable animation again.\n if (enableAnimation) {\n el.stateTransition = stateTransition;\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n // TODO Is it necessary to animate label?\n if (textContent) {\n textContent.stateTransition = stateTransition;\n }\n if (textGuide) {\n textGuide.stateTransition = stateTransition;\n }\n }\n\n // The use higlighted and selected flag to toggle states.\n if (el.__dirty) {\n applyElementStates(el);\n }\n }\n });\n };\n\n createExtensionAPI = function (ecIns: ECharts): ExtensionAPI {\n return new (class extends ExtensionAPI {\n getCoordinateSystems(): CoordinateSystemMaster[] {\n return ecIns._coordSysMgr.getCoordinateSystems();\n }\n getComponentByElement(el: Element) {\n while (el) {\n const modelInfo = (el as ViewRootGroup).__ecComponentInfo;\n if (modelInfo != null) {\n return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);\n }\n el = el.parent;\n }\n }\n enterEmphasis(el: Element, highlightDigit?: number) {\n enterEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n }\n leaveEmphasis(el: Element, highlightDigit?: number) {\n leaveEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n }\n enterBlur(el: Element) {\n enterBlur(el);\n markStatusToUpdate(ecIns);\n }\n leaveBlur(el: Element) {\n leaveBlur(el);\n markStatusToUpdate(ecIns);\n }\n enterSelect(el: Element) {\n enterSelect(el);\n markStatusToUpdate(ecIns);\n }\n leaveSelect(el: Element) {\n leaveSelect(el);\n markStatusToUpdate(ecIns);\n }\n getModel(): GlobalModel {\n return ecIns.getModel();\n }\n getViewOfComponentModel(componentModel: ComponentModel): ComponentView {\n return ecIns.getViewOfComponentModel(componentModel);\n }\n getViewOfSeriesModel(seriesModel: SeriesModel): ChartView {\n return ecIns.getViewOfSeriesModel(seriesModel);\n }\n })(ecIns);\n };\n\n enableConnect = function (chart: ECharts): void {\n\n function updateConnectedChartsStatus(charts: ECharts[], status: ConnectStatus) {\n for (let i = 0; i < charts.length; i++) {\n const otherChart = charts[i];\n otherChart[CONNECT_STATUS_KEY] = status;\n }\n }\n\n each(eventActionMap, function (actionType, eventType) {\n chart._messageCenter.on(eventType, function (event: ECActionEvent) {\n if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {\n if (event && event.escapeConnect) {\n return;\n }\n\n const action = chart.makeActionFromEvent(event);\n const otherCharts: ECharts[] = [];\n\n each(instances, function (otherChart) {\n if (otherChart !== chart && otherChart.group === chart.group) {\n otherCharts.push(otherChart);\n }\n });\n\n updateConnectedChartsStatus(otherCharts, CONNECT_STATUS_PENDING);\n each(otherCharts, function (otherChart) {\n if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {\n otherChart.dispatchAction(action);\n }\n });\n updateConnectedChartsStatus(otherCharts, CONNECT_STATUS_UPDATED);\n }\n });\n });\n };\n })();\n}\n\n\nconst echartsProto = ECharts.prototype;\nechartsProto.on = createRegisterEventWithLowercaseECharts('on');\nechartsProto.off = createRegisterEventWithLowercaseECharts('off');\n/**\n * @deprecated\n */\n// @ts-ignore\nechartsProto.one = function (eventName: string, cb: Function, ctx?: any) {\n const self = this;\n deprecateLog('ECharts#one is deprecated.');\n function wrapped(this: unknown, ...args2: any) {\n cb && cb.apply && cb.apply(this, args2);\n // @ts-ignore\n self.off(eventName, wrapped);\n };\n // @ts-ignore\n this.on.call(this, eventName, wrapped, ctx);\n};\n\n// /**\n// * Encode visual infomation from data after data processing\n// *\n// * @param {module:echarts/model/Global} ecModel\n// * @param {object} layout\n// * @param {boolean} [layoutFilter] `true`: only layout,\n// * `false`: only not layout,\n// * `null`/`undefined`: all.\n// * @param {string} taskBaseTag\n// * @private\n// */\n// function startVisualEncoding(ecIns, ecModel, api, payload, layoutFilter) {\n// each(visualFuncs, function (visual, index) {\n// let isLayout = visual.isLayout;\n// if (layoutFilter == null\n// || (layoutFilter === false && !isLayout)\n// || (layoutFilter === true && isLayout)\n// ) {\n// visual.func(ecModel, api, payload);\n// }\n// });\n// }\n\n\nconst MOUSE_EVENT_NAMES: ZRElementEventName[] = [\n 'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove',\n 'mousedown', 'mouseup', 'globalout', 'contextmenu'\n];\n\nfunction disposedWarning(id: string): void {\n if (__DEV__) {\n console.warn('Instance ' + id + ' has been disposed');\n }\n}\n\n\nconst actions: {\n [actionType: string]: {\n action: ActionHandler,\n actionInfo: ActionInfo\n }\n} = {};\n\n/**\n * Map eventType to actionType\n */\nconst eventActionMap: {[eventType: string]: string} = {};\n\nconst dataProcessorFuncs: StageHandlerInternal[] = [];\n\nconst optionPreprocessorFuncs: OptionPreprocessor[] = [];\n\nconst visualFuncs: StageHandlerInternal[] = [];\n\nconst themeStorage: {[themeName: string]: ThemeOption} = {};\n\nconst loadingEffects: {[effectName: string]: LoadingEffectCreator} = {};\n\nconst instances: {[id: string]: ECharts} = {};\nconst connectedGroups: {[groupId: string]: boolean} = {};\n\nlet idBase: number = +(new Date()) - 0;\nlet groupIdBase: number = +(new Date()) - 0;\nconst DOM_ATTRIBUTE_KEY = '_echarts_instance_';\n\n\n/**\n * @param opts.devicePixelRatio Use window.devicePixelRatio by default\n * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.\n * @param opts.width Use clientWidth of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.height Use clientHeight of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.locale Specify the locale.\n * @param opts.useDirtyRect Enable dirty rectangle rendering or not.\n */\nexport function init(\n dom: HTMLElement,\n theme?: string | object,\n opts?: EChartsInitOpts\n): EChartsType {\n if (__DEV__) {\n if (!dom) {\n throw new Error('Initialize failed: invalid dom.');\n }\n }\n\n const existInstance = getInstanceByDom(dom);\n if (existInstance) {\n if (__DEV__) {\n console.warn('There is a chart instance already initialized on the dom.');\n }\n return existInstance;\n }\n\n if (__DEV__) {\n if (isDom(dom)\n && dom.nodeName.toUpperCase() !== 'CANVAS'\n && (\n (!dom.clientWidth && (!opts || opts.width == null))\n || (!dom.clientHeight && (!opts || opts.height == null))\n )\n ) {\n console.warn('Can\\'t get DOM width or height. Please check '\n + 'dom.clientWidth and dom.clientHeight. They should not be 0.'\n + 'For example, you may need to call this in the callback '\n + 'of window.onload.');\n }\n }\n\n const chart = new ECharts(dom, theme, opts);\n chart.id = 'ec_' + idBase++;\n instances[chart.id] = chart;\n\n modelUtil.setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);\n\n enableConnect(chart);\n\n lifecycle.trigger('afterinit', chart);\n\n return chart;\n}\n\n/**\n * @usage\n * (A)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * chart1.group = 'xxx';\n * chart2.group = 'xxx';\n * echarts.connect('xxx');\n * ```\n * (B)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * echarts.connect('xxx', [chart1, chart2]);\n * ```\n */\nexport function connect(groupId: string | EChartsType[]): string {\n // Is array of charts\n if (isArray(groupId)) {\n const charts = groupId;\n groupId = null;\n // If any chart has group\n each(charts, function (chart) {\n if (chart.group != null) {\n groupId = chart.group;\n }\n });\n groupId = groupId || ('g_' + groupIdBase++);\n each(charts, function (chart) {\n chart.group = groupId as string;\n });\n }\n connectedGroups[groupId as string] = true;\n return groupId as string;\n}\n\n/**\n * @deprecated\n */\nexport function disConnect(groupId: string): void {\n connectedGroups[groupId] = false;\n}\n\n/**\n * Alias and backword compat\n */\nexport const disconnect = disConnect;\n\n/**\n * Dispose a chart instance\n */\nexport function dispose(chart: EChartsType | HTMLElement | string): void {\n if (typeof chart === 'string') {\n chart = instances[chart];\n }\n else if (!(chart instanceof ECharts)) {\n // Try to treat as dom\n chart = getInstanceByDom(chart);\n }\n if ((chart instanceof ECharts) && !chart.isDisposed()) {\n chart.dispose();\n }\n}\n\nexport function getInstanceByDom(dom: HTMLElement): EChartsType {\n return instances[modelUtil.getAttribute(dom, DOM_ATTRIBUTE_KEY)];\n}\n\nexport function getInstanceById(key: string): EChartsType {\n return instances[key];\n}\n\n/**\n * Register theme\n */\nexport function registerTheme(name: string, theme: ThemeOption): void {\n themeStorage[name] = theme;\n}\n\n/**\n * Register option preprocessor\n */\nexport function registerPreprocessor(preprocessorFunc: OptionPreprocessor): void {\n if (indexOf(optionPreprocessorFuncs, preprocessorFunc) < 0) {\n optionPreprocessorFuncs.push(preprocessorFunc);\n }\n}\n\nexport function registerProcessor(\n priority: number | StageHandler | StageHandlerOverallReset,\n processor?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);\n}\n\n\n/**\n * Register postIniter\n * @param {Function} postInitFunc\n */\nexport function registerPostInit(postInitFunc: PostIniter): void {\n registerUpdateLifecycle('afterinit', postInitFunc);\n}\n\n/**\n * Register postUpdater\n * @param {Function} postUpdateFunc\n */\nexport function registerPostUpdate(postUpdateFunc: PostUpdater): void {\n registerUpdateLifecycle('afterupdate', postUpdateFunc);\n}\n\nexport function registerUpdateLifecycle(\n name: T, cb: (...args: LifecycleEvents[T]) => void\n): void {\n (lifecycle as any).on(name, cb);\n}\n\n/**\n * @usage\n * registerAction('someAction', 'someEvent', function () { ... });\n * registerAction('someAction', function () { ... });\n * registerAction(\n * {type: 'someAction', event: 'someEvent', update: 'updateView'},\n * function () { ... }\n * );\n *\n * @param {(string|Object)} actionInfo\n * @param {string} actionInfo.type\n * @param {string} [actionInfo.event]\n * @param {string} [actionInfo.update]\n * @param {string} [eventName]\n * @param {Function} action\n */\nexport function registerAction(type: string, eventName: string, action: ActionHandler): void;\nexport function registerAction(type: string, action: ActionHandler): void;\nexport function registerAction(actionInfo: ActionInfo, action: ActionHandler): void;\nexport function registerAction(\n actionInfo: string | ActionInfo,\n eventName: string | ActionHandler,\n action?: ActionHandler\n): void {\n if (typeof eventName === 'function') {\n action = eventName;\n eventName = '';\n }\n const actionType = isObject(actionInfo)\n ? (actionInfo as ActionInfo).type\n : ([actionInfo, actionInfo = {\n event: eventName\n } as ActionInfo][0]);\n\n // Event name is all lowercase\n (actionInfo as ActionInfo).event = (\n (actionInfo as ActionInfo).event || actionType as string\n ).toLowerCase();\n eventName = (actionInfo as ActionInfo).event;\n\n if (eventActionMap[eventName as string]) {\n // Already registered.\n return;\n }\n\n // Validate action type and event name.\n assert(ACTION_REG.test(actionType as string) && ACTION_REG.test(eventName));\n\n if (!actions[actionType as string]) {\n actions[actionType as string] = {action: action, actionInfo: actionInfo as ActionInfo};\n }\n eventActionMap[eventName as string] = actionType as string;\n}\n\nexport function registerCoordinateSystem(\n type: string,\n coordSysCreator: CoordinateSystemCreator\n): void {\n CoordinateSystemManager.register(type, coordSysCreator);\n}\n\n/**\n * Get dimensions of specified coordinate system.\n * @param {string} type\n * @return {Array.}\n */\nexport function getCoordinateSystemDimensions(type: string): DimensionDefinitionLoose[] {\n const coordSysCreator = CoordinateSystemManager.get(type);\n if (coordSysCreator) {\n return coordSysCreator.getDimensionsInfo\n ? coordSysCreator.getDimensionsInfo()\n : coordSysCreator.dimensions.slice();\n }\n}\n\nexport {registerLocale} from './locale';\n\n/**\n * Layout is a special stage of visual encoding\n * Most visual encoding like color are common for different chart\n * But each chart has it's own layout algorithm\n */\nfunction registerLayout(priority: number, layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerLayout(layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerLayout(\n priority: number | StageHandler | StageHandlerOverallReset,\n layoutTask?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');\n}\n\nfunction registerVisual(priority: number, layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerVisual(layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerVisual(\n priority: number | StageHandler | StageHandlerOverallReset,\n visualTask?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');\n}\n\nexport {registerLayout, registerVisual};\n\nconst registeredTasks: (StageHandler | StageHandlerOverallReset)[] = [];\n\nfunction normalizeRegister(\n targetList: StageHandler[],\n priority: number | StageHandler | StageHandlerOverallReset,\n fn: StageHandler | StageHandlerOverallReset,\n defaultPriority: number,\n visualType?: StageHandlerInternal['visualType']\n): void {\n if (isFunction(priority) || isObject(priority)) {\n fn = priority as (StageHandler | StageHandlerOverallReset);\n priority = defaultPriority;\n }\n\n if (__DEV__) {\n if (isNaN(priority) || priority == null) {\n throw new Error('Illegal priority');\n }\n // Check duplicate\n each(targetList, function (wrap) {\n assert((wrap as StageHandlerInternal).__raw !== fn);\n });\n }\n\n // Already registered\n if (indexOf(registeredTasks, fn) >= 0) {\n return;\n }\n registeredTasks.push(fn);\n\n const stageHandler = Scheduler.wrapStageHandler(fn, visualType);\n\n stageHandler.__prio = priority;\n stageHandler.__raw = fn;\n targetList.push(stageHandler);\n}\n\nexport function registerLoading(\n name: string,\n loadingFx: LoadingEffectCreator\n): void {\n loadingEffects[name] = loadingFx;\n}\n\n/**\n * ZRender need a canvas context to do measureText.\n * But in node environment canvas may be created by node-canvas.\n * So we need to specify how to create a canvas instead of using document.createElement('canvas')\n *\n * Be careful of using it in the browser.\n *\n * @example\n * let Canvas = require('canvas');\n * let echarts = require('echarts');\n * echarts.setCanvasCreator(function () {\n * // Small size is enough.\n * return new Canvas(32, 32);\n * });\n */\nexport function setCanvasCreator(creator: () => HTMLCanvasElement): void {\n $override('createCanvas', creator);\n}\n\n/**\n * The parameters and usage: see `geoSourceManager.registerMap`.\n * Compatible with previous `echarts.registerMap`.\n */\nexport function registerMap(\n mapName: Parameters[0],\n geoJson: Parameters[1],\n specialAreas?: Parameters[2]\n): void {\n geoSourceManager.registerMap(mapName, geoJson, specialAreas);\n}\n\nexport function getMap(mapName: string) {\n return geoSourceManager.getMapForUser(mapName);\n}\n\nexport const registerTransform = registerExternalTransform;\n\n/**\n * Globa dispatchAction to a specified chart instance.\n */\n// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters[1]) {\n// if (!payload || !payload.chartId) {\n// // Must have chartId to find chart\n// return;\n// }\n// const chart = instances[payload.chartId];\n// if (chart) {\n// chart.dispatchAction(payload, opt);\n// }\n// }\n\n\n\n// Buitlin global visual\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);\n\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);\n\nregisterVisual(PRIORITY_VISUAL_DECAL, decal);\n\nregisterPreprocessor(backwardCompat);\nregisterProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);\nregisterLoading('default', loadingDefault);\n\n// Default actions\n\nregisterAction({\n type: HIGHLIGHT_ACTION_TYPE,\n event: HIGHLIGHT_ACTION_TYPE,\n update: HIGHLIGHT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: DOWNPLAY_ACTION_TYPE,\n event: DOWNPLAY_ACTION_TYPE,\n update: DOWNPLAY_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: SELECT_ACTION_TYPE,\n event: SELECT_ACTION_TYPE,\n update: SELECT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: UNSELECT_ACTION_TYPE,\n event: UNSELECT_ACTION_TYPE,\n update: UNSELECT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: TOGGLE_SELECT_ACTION_TYPE,\n event: TOGGLE_SELECT_ACTION_TYPE,\n update: TOGGLE_SELECT_ACTION_TYPE\n}, noop);\n\n// Default theme\nregisterTheme('light', lightTheme);\nregisterTheme('dark', darkTheme);\n\n// For backward compatibility, where the namespace `dataTool` will\n// be mounted on `echarts` is the extension `dataTool` is imported.\nexport const dataTool = {};\n\nexport interface EChartsType extends ECharts {}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n registerPreprocessor,\n registerProcessor,\n registerPostInit,\n registerPostUpdate,\n registerAction,\n registerCoordinateSystem,\n registerLayout,\n registerVisual,\n registerTransform,\n registerLoading,\n registerMap,\n registerUpdateLifecycle,\n PRIORITY\n} from './core/echarts';\nimport ComponentView from './view/Component';\nimport ChartView from './view/Chart';\nimport ComponentModel from './model/Component';\nimport SeriesModel from './model/Series';\nimport { isFunction, indexOf, isArray, each } from 'zrender/src/core/util';\nimport { Constructor } from './util/clazz';\nimport { SubTypeDefaulter } from './util/component';\nimport { registerPainter } from 'zrender/src/zrender';\n\nconst extensions: (EChartsExtensionInstaller | EChartsExtension)[] = [];\n\nconst extensionRegisters = {\n registerPreprocessor,\n registerProcessor,\n registerPostInit,\n registerPostUpdate,\n registerUpdateLifecycle,\n registerAction,\n registerCoordinateSystem,\n registerLayout,\n registerVisual,\n registerTransform,\n registerLoading,\n registerMap,\n PRIORITY,\n\n ComponentModel,\n ComponentView,\n SeriesModel,\n ChartView,\n // TODO Use ComponentModel and SeriesModel instead of Constructor\n registerComponentModel(ComponentModelClass: Constructor) {\n ComponentModel.registerClass(ComponentModelClass);\n },\n registerComponentView(ComponentViewClass: typeof ComponentView) {\n ComponentView.registerClass(ComponentViewClass);\n },\n registerSeriesModel(SeriesModelClass: Constructor) {\n SeriesModel.registerClass(SeriesModelClass);\n },\n registerChartView(ChartViewClass: typeof ChartView) {\n ChartView.registerClass(ChartViewClass);\n },\n registerSubTypeDefaulter(componentType: string, defaulter: SubTypeDefaulter) {\n ComponentModel.registerSubTypeDefaulter(componentType, defaulter);\n },\n registerPainter(painterType: string, PainterCtor: Parameters[1]) {\n registerPainter(painterType, PainterCtor);\n }\n};\n\nexport type EChartsExtensionInstallRegisters = typeof extensionRegisters;\n\nexport type EChartsExtensionInstaller = (ec: EChartsExtensionInstallRegisters) => void;\nexport interface EChartsExtension {\n install: EChartsExtensionInstaller\n}\n\nexport function use(\n ext: EChartsExtensionInstaller | EChartsExtension | (EChartsExtensionInstaller | EChartsExtension)[]\n) {\n if (isArray(ext)) {\n // use([ChartLine, ChartBar]);\n each(ext, (singleExt) => {\n use(singleExt);\n });\n return;\n }\n\n if (indexOf(extensions, ext) >= 0) {\n return;\n }\n extensions.push(ext);\n\n if (isFunction(ext)) {\n ext = {\n install: ext\n };\n }\n ext.install(extensionRegisters);\n}\n\n// A simpler use type for exporting to reduce exported inner modules.\nexport type EChartsExtensionInstallerSimple = (registers: any) => void;\ntype SimpleEChartsExtensionType = EChartsExtensionInstallerSimple | { install: EChartsExtensionInstallerSimple };\nexport declare function useSimple(ext: SimpleEChartsExtensionType | (SimpleEChartsExtensionType)[]): void;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {ArrayLike} from 'zrender/src/core/types';\n\n// return key.\ntype DiffKeyGetter =\n (this: DataDiffer, value: unknown, index: number) => string;\n\ntype DiffCallbackAdd = (newIndex: number) => void;\ntype DiffCallbackUpdate = (newIndex: number, oldIndex: number) => void;\ntype DiffCallbackRemove = (oldIndex: number) => void;\ntype DiffCallbackUpdateManyToOne = (newIndex: number, oldIndex: number[]) => void;\ntype DiffCallbackUpdateOneToMany = (newIndex: number[], oldIndex: number) => void;\ntype DiffCallbackUpdateManyToMany = (newIndex: number[], oldIndex: number[]) => void;\n\n/**\n * The value of `DataIndexMap` can only be:\n * + a number\n * + a number[] that length >= 2.\n * + null/undefined\n */\ntype DataIndexMap = {[key: string]: number | number[]};\n\nfunction dataIndexMapValueLength(\n valNumOrArrLengthMoreThan2: number | number[]\n): number {\n return valNumOrArrLengthMoreThan2 == null\n ? 0\n : ((valNumOrArrLengthMoreThan2 as number[]).length || 1);\n}\n\nfunction defaultKeyGetter(item: string): string {\n return item;\n}\n\nexport type DataDiffMode = 'oneToOne' | 'multiple';\n\nclass DataDiffer {\n\n private _old: ArrayLike;\n private _new: ArrayLike;\n private _oldKeyGetter: DiffKeyGetter;\n private _newKeyGetter: DiffKeyGetter;\n private _add: DiffCallbackAdd;\n private _update: DiffCallbackUpdate;\n private _updateManyToOne: DiffCallbackUpdateManyToOne;\n private _updateOneToMany: DiffCallbackUpdateOneToMany;\n private _updateManyToMany: DiffCallbackUpdateManyToMany;\n private _remove: DiffCallbackRemove;\n private _diffModeMultiple: boolean;\n\n readonly context: CTX;\n\n /**\n * @param context Can be visited by this.context in callback.\n */\n constructor(\n oldArr: ArrayLike,\n newArr: ArrayLike,\n oldKeyGetter?: DiffKeyGetter,\n newKeyGetter?: DiffKeyGetter,\n context?: CTX,\n // By default: 'oneToOne'.\n diffMode?: DataDiffMode\n ) {\n this._old = oldArr;\n this._new = newArr;\n\n this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;\n this._newKeyGetter = newKeyGetter || defaultKeyGetter;\n\n // Visible in callback via `this.context`;\n this.context = context;\n\n this._diffModeMultiple = diffMode === 'multiple';\n }\n\n /**\n * Callback function when add a data\n */\n add(func: DiffCallbackAdd): this {\n this._add = func;\n return this;\n }\n\n /**\n * Callback function when update a data\n */\n update(func: DiffCallbackUpdate): this {\n this._update = func;\n return this;\n }\n\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateManyToOne(func: DiffCallbackUpdateManyToOne): this {\n this._updateManyToOne = func;\n return this;\n }\n\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateOneToMany(func: DiffCallbackUpdateOneToMany): this {\n this._updateOneToMany = func;\n return this;\n }\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateManyToMany(func: DiffCallbackUpdateManyToMany): this {\n this._updateManyToMany = func;\n return this;\n }\n\n /**\n * Callback function when remove a data\n */\n remove(func: DiffCallbackRemove): this {\n this._remove = func;\n return this;\n }\n\n execute(): void {\n this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']();\n }\n\n private _executeOneToOne(): void {\n const oldArr = this._old;\n const newArr = this._new;\n const newDataIndexMap: DataIndexMap = {};\n const oldDataKeyArr: string[] = new Array(oldArr.length);\n const newDataKeyArr: string[] = new Array(newArr.length);\n\n this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter');\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (let i = 0; i < oldArr.length; i++) {\n const oldKey = oldDataKeyArr[i];\n const newIdxMapVal = newDataIndexMap[oldKey];\n const newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n // idx can never be empty array here. see 'set null' logic below.\n if (newIdxMapValLen > 1) {\n // Consider there is duplicate key (for example, use dataItem.name as key).\n // We should make sure every item in newArr and oldArr can be visited.\n const newIdx = (newIdxMapVal as number[]).shift();\n if ((newIdxMapVal as number[]).length === 1) {\n newDataIndexMap[oldKey] = (newIdxMapVal as number[])[0];\n }\n this._update && this._update(newIdx as number, i);\n }\n else if (newIdxMapValLen === 1) {\n newDataIndexMap[oldKey] = null;\n this._update && this._update(newIdxMapVal as number, i);\n }\n else {\n this._remove && this._remove(i);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n }\n\n /**\n * For example, consider the case:\n * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],\n * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],\n * Where:\n * o0, o1, n0 has key 'a' (many to one)\n * o5, n4, n5, n6 has key 'b' (one to many)\n * o2, n1 has key 'c' (one to one)\n * n2, n3 has key 'd' (add)\n * o3, o4 has key 'e' (remove)\n * o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)\n * Then:\n * (The order of the following directives are not ensured.)\n * this._updateManyToOne(n0, [o0, o1]);\n * this._updateOneToMany([n4, n5, n6], o5);\n * this._update(n1, o2);\n * this._remove(o3);\n * this._remove(o4);\n * this._remove(o6);\n * this._remove(o7);\n * this._add(n2);\n * this._add(n3);\n * this._add(n7);\n * this._add(n8);\n */\n private _executeMultiple(): void {\n const oldArr = this._old;\n const newArr = this._new;\n const oldDataIndexMap: DataIndexMap = {};\n const newDataIndexMap: DataIndexMap = {};\n const oldDataKeyArr: string[] = [];\n const newDataKeyArr: string[] = [];\n\n this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter');\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (let i = 0; i < oldDataKeyArr.length; i++) {\n const oldKey = oldDataKeyArr[i];\n const oldIdxMapVal = oldDataIndexMap[oldKey];\n const newIdxMapVal = newDataIndexMap[oldKey];\n const oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal);\n const newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) {\n this._updateManyToOne && this._updateManyToOne(newIdxMapVal as number, oldIdxMapVal as number[]);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) {\n this._updateOneToMany && this._updateOneToMany(newIdxMapVal as number[], oldIdxMapVal as number);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) {\n this._update && this._update(newIdxMapVal as number, oldIdxMapVal as number);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen > 1 && newIdxMapValLen > 1) {\n this._updateManyToMany && this._updateManyToMany(newIdxMapVal as number[], oldIdxMapVal as number[]);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen > 1) {\n for (let i = 0; i < oldIdxMapValLen; i++) {\n this._remove && this._remove((oldIdxMapVal as number[])[i]);\n }\n }\n else {\n this._remove && this._remove(oldIdxMapVal as number);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n }\n\n private _performRestAdd(newDataKeyArr: string[], newDataIndexMap: DataIndexMap) {\n for (let i = 0; i < newDataKeyArr.length; i++) {\n const newKey = newDataKeyArr[i];\n const newIdxMapVal = newDataIndexMap[newKey];\n const idxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n if (idxMapValLen > 1) {\n for (let j = 0; j < idxMapValLen; j++) {\n this._add && this._add((newIdxMapVal as number[])[j]);\n }\n }\n else if (idxMapValLen === 1) {\n this._add && this._add(newIdxMapVal as number);\n }\n // Support both `newDataKeyArr` are duplication removed or not removed.\n newDataIndexMap[newKey] = null;\n }\n }\n\n private _initIndexMap(\n arr: ArrayLike,\n // Can be null.\n map: DataIndexMap,\n // In 'byKey', the output `keyArr` is duplication removed.\n // In 'byIndex', the output `keyArr` is not duplication removed and\n // its indices are accurately corresponding to `arr`.\n keyArr: string[],\n keyGetterName: '_oldKeyGetter' | '_newKeyGetter'\n ): void {\n const cbModeMultiple = this._diffModeMultiple;\n\n for (let i = 0; i < arr.length; i++) {\n // Add prefix to avoid conflict with Object.prototype.\n const key = '_ec_' + this[keyGetterName](arr[i], i);\n if (!cbModeMultiple) {\n keyArr[i] = key;\n }\n if (!map) {\n continue;\n }\n\n const idxMapVal = map[key];\n const idxMapValLen = dataIndexMapValueLength(idxMapVal);\n\n if (idxMapValLen === 0) {\n // Simple optimize: in most cases, one index has one key,\n // do not need array.\n map[key] = i;\n if (cbModeMultiple) {\n keyArr.push(key);\n }\n }\n else if (idxMapValLen === 1) {\n map[key] = [idxMapVal as number, i];\n }\n else {\n (idxMapVal as number[]).push(i);\n }\n }\n }\n\n}\n\nexport default DataDiffer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {each, createHashMap, assert, map} from 'zrender/src/core/util';\nimport SeriesData from '../SeriesData';\nimport {\n DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionIndex\n} from '../../util/types';\nimport { DataStorageDimensionType } from '../DataStorage';\nimport { SeriesDataSchema } from './SeriesDataSchema';\n\nexport type DimensionSummaryEncode = {\n defaultedLabel: DimensionName[],\n defaultedTooltip: DimensionName[],\n [coordOrVisualDimName: string]:\n // index: coordDimIndex, value: dataDimName\n DimensionName[]\n};\nexport type DimensionSummary = {\n encode: DimensionSummaryEncode,\n // Those details that can be expose to users are put int `userOutput`.\n userOutput: DimensionUserOuput,\n // All of the data dim names that mapped by coordDim.\n dataDimsOnCoord: DimensionName[],\n dataDimIndicesOnCoord: DimensionIndex[],\n encodeFirstDimNotExtra: {[coordDim: string]: DimensionName},\n};\n\nexport type DimensionUserOuputEncode = {\n // index: coordDimIndex, value: dataDimIndex\n [coordOrVisualDimName: string]: DimensionIndex[]\n};\n\nclass DimensionUserOuput {\n private _encode: DimensionUserOuputEncode;\n private _cachedDimNames: DimensionName[];\n private _schema?: SeriesDataSchema;\n\n constructor(\n encode: DimensionUserOuputEncode,\n dimRequest?: SeriesDataSchema\n ) {\n this._encode = encode;\n this._schema = dimRequest;\n }\n\n get(): {\n fullDimensions: DimensionName[];\n encode: DimensionUserOuputEncode;\n } {\n return {\n // Do not generate full dimension name until fist used.\n fullDimensions: this._getFullDimensionNames(),\n encode: this._encode\n };\n }\n\n /**\n * Get all storage dimension names.\n * Theoretically a series storage is defined both by series and used dataset (if any).\n * If some dimensions are omitted for performance reason in `this.dimensions`,\n * the dimension name may not be auto-generated if user does not specify a dimension name.\n * In this case, the dimension name is `null`/`undefined`.\n */\n private _getFullDimensionNames(): DimensionName[] {\n if (!this._cachedDimNames) {\n this._cachedDimNames = this._schema\n ? this._schema.makeOutputDimensionNames()\n : [];\n }\n return this._cachedDimNames;\n }\n};\n\n\nexport function summarizeDimensions(\n data: SeriesData,\n schema?: SeriesDataSchema\n): DimensionSummary {\n const summary: DimensionSummary = {} as DimensionSummary;\n const encode = summary.encode = {} as DimensionSummaryEncode;\n const notExtraCoordDimMap = createHashMap<1, DimensionName>();\n let defaultedLabel = [] as DimensionName[];\n let defaultedTooltip = [] as DimensionName[];\n\n const userOutputEncode = {} as DimensionUserOuputEncode;\n\n each(data.dimensions, function (dimName) {\n const dimItem = data.getDimensionInfo(dimName);\n\n const coordDim = dimItem.coordDim;\n if (coordDim) {\n if (__DEV__) {\n assert(VISUAL_DIMENSIONS.get(coordDim as any) == null);\n }\n\n const coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1);\n\n // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n }\n\n // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n getOrCreateEncodeArr(userOutputEncode, coordDim)[coordDimIndex] =\n data.getDimensionIndex(dimItem.name);\n }\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n VISUAL_DIMENSIONS.each(function (v, otherDim) {\n const encodeArr = getOrCreateEncodeArr(encode, otherDim);\n\n const dimIndex = dimItem.otherDims[otherDim];\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n\n let dataDimsOnCoord = [] as DimensionName[];\n const encodeFirstDimNotExtra = {} as {[coordDim: string]: DimensionName};\n\n notExtraCoordDimMap.each(function (v, coordDim) {\n const dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0];\n // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.dataDimIndicesOnCoord = map(\n dataDimsOnCoord, dimName => data.getDimensionInfo(dimName).storageDimensionIndex\n );\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n\n const encodeLabel = encode.label;\n // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n const encodeTooltip = encode.tooltip;\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n }\n else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n\n summary.userOutput = new DimensionUserOuput(userOutputEncode, schema);\n\n return summary;\n}\n\nfunction getOrCreateEncodeArr(\n encode: DimensionSummaryEncode | DimensionUserOuputEncode, dim: DimensionName\n): (DimensionIndex | DimensionName)[] {\n if (!encode.hasOwnProperty(dim)) {\n encode[dim] = [];\n }\n return encode[dim];\n}\n\n// FIXME:TS should be type `AxisType`\nexport function getDimensionTypeByAxis(axisType: string): DataStorageDimensionType {\n return axisType === 'category'\n ? 'ordinal'\n : axisType === 'time'\n ? 'time'\n : 'float';\n}\n\nfunction mayLabelDimType(dimType: DimensionType): boolean {\n // In most cases, ordinal and time do not suitable for label.\n // Ordinal info can be displayed on axis. Time is too long.\n return !(dimType === 'ordinal' || dimType === 'time');\n}\n\n// function findTheLastDimMayLabel(data) {\n// // Get last value dim\n// let dimensions = data.dimensions.slice();\n// let valueType;\n// let valueDim;\n// while (dimensions.length && (\n// valueDim = dimensions.pop(),\n// valueType = data.getDimensionInfo(valueDim).type,\n// valueType === 'ordinal' || valueType === 'time'\n// )) {} // jshint ignore:line\n// return valueDim;\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport OrdinalMeta from './OrdinalMeta';\nimport { DataVisualDimensions, DimensionType } from '../util/types';\n\nclass SeriesDimensionDefine {\n\n /**\n * Dimension type. The enumerable values are the key of\n * Optional.\n */\n type?: DimensionType;\n\n /**\n * Dimension name.\n * Mandatory.\n */\n name: string;\n /**\n * The origin name in dimsDef, see source helper.\n * If displayName given, the tooltip will displayed vertically.\n * Optional.\n */\n displayName?: string;\n\n // FIXME: check whether it is still used.\n // See Series.ts#formatArrayValue\n tooltip?: boolean;\n\n /**\n * This dimension maps to the the dimension in dataStorage by `storageDimensionIndex`.\n * Notice the facts:\n * 1. When there are too many dimensions in storage, seriesData only save the\n * used storage dimensions.\n * 2. We use dimensionIndex but not name to reference storage dimension\n * becuause the dataset dimension definition might has no name specified by users,\n * or names in sereis dimension definition might be different from dataset.\n */\n storageDimensionIndex?: number;\n\n /**\n * Which coordSys dimension this dimension mapped to.\n * A `coordDim` can be a \"coordSysDim\" that the coordSys required\n * (for example, an item in `coordSysDims` of `model/referHelper#CoordSysInfo`),\n * or an generated \"extra coord name\" if does not mapped to any \"coordSysDim\"\n * (That is determined by whether `isExtraCoord` is `true`).\n * Mandatory.\n */\n coordDim?: string;\n\n /**\n * The index of this dimension in `series.encode[coordDim]`.\n * Mandatory.\n */\n coordDimIndex?: number;\n /**\n * The format of `otherDims` is:\n * ```js\n * {\n * tooltip?: number\n * label?: number\n * itemName?: number\n * seriesName?: number\n * }\n * ```\n *\n * A `series.encode` can specified these fields:\n * ```js\n * encode: {\n * // \"3, 1, 5\" is the index of data dimension.\n * tooltip: [3, 1, 5],\n * label: [0, 3],\n * ...\n * }\n * ```\n * `otherDims` is the parse result of the `series.encode` above, like:\n * ```js\n * // Suppose the index of this data dimension is `3`.\n * this.otherDims = {\n * // `3` is at the index `0` of the `encode.tooltip`\n * tooltip: 0,\n * // `3` is at the index `1` of the `encode.label`\n * label: 1\n * };\n * ```\n *\n * This prop should never be `null`/`undefined` after initialized.\n */\n otherDims?: DataVisualDimensions = {};\n\n /**\n * Be `true` if this dimension is not mapped to any \"coordSysDim\" that the\n * \"coordSys\" required.\n * Mandatory.\n */\n isExtraCoord?: boolean;\n /**\n * If this dimension if for calculated value like stacking\n */\n isCalculationCoord?: boolean;\n\n defaultTooltip?: boolean;\n\n ordinalMeta?: OrdinalMeta;\n\n /**\n * Whether to create inverted indices.\n */\n createInvertedIndices?: boolean;\n\n /**\n * @param opt All of the fields will be shallow copied.\n */\n constructor(opt?: object | SeriesDimensionDefine) {\n if (opt != null) {\n zrUtil.extend(this, opt);\n }\n }\n\n};\n\nexport default SeriesDimensionDefine;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { createHashMap, HashMap, isObject, retrieve2 } from 'zrender/src/core/util';\nimport { makeInner } from '../../util/model';\nimport {\n DimensionDefinition, DimensionDefinitionLoose, DimensionIndex, DimensionName, DimensionType\n} from '../../util/types';\nimport { DataStorageDimensionDefine } from '../DataStorage';\nimport OrdinalMeta from '../OrdinalMeta';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport { shouldRetrieveDataByName, Source } from '../Source';\n\nconst inner = makeInner<{\n dimNameMap: HashMap;\n}, Source>();\n\nconst dimTypeShort = {\n float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't'\n} as const;\n\n/**\n * Represents the dimension requirement of a series.\n *\n * NOTICE:\n * When there are too many dimensions in dataset and many series, only the used dimensions\n * (i.e., used by coord sys and declared in `series.encode`) are add to `dimensionDefineList`.\n * But users may query data by other unused dimension names.\n * In this case, users can only query data if and only if they have defined dimension names\n * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from\n * `source` dimensions.\n */\nexport class SeriesDataSchema {\n\n /**\n * When there are too many dimensions, `dimensionDefineList` might only contain\n * used dimensions.\n *\n * CAUTION:\n * Should have been sorted by `storageDimensionIndex` asc.\n *\n * PENDING:\n * The item can still be modified outsite.\n * But MUST NOT add/remove item of this array.\n */\n readonly dimensionList: SeriesDimensionDefine[];\n\n readonly source: Source;\n\n private _fullDimensionCount: number;\n private _dimNameMap: ReturnType['dimNameMap'];\n private _dimensionOmitted: boolean;\n\n constructor(opt: {\n source: Source,\n dimensionList: SeriesDimensionDefine[],\n fullDimensionCount: number,\n dimensionOmitted: boolean\n }) {\n this.dimensionList = opt.dimensionList;\n this._dimensionOmitted = opt.dimensionOmitted;\n this.source = opt.source;\n this._fullDimensionCount = opt.fullDimensionCount;\n\n this._updateDimensionOmitted(opt.dimensionOmitted);\n }\n\n isDimensionOmitted(): boolean {\n return this._dimensionOmitted;\n }\n\n private _updateDimensionOmitted(dimensionOmitted: boolean): void {\n this._dimensionOmitted = dimensionOmitted;\n if (!dimensionOmitted) {\n return;\n }\n if (!this._dimNameMap) {\n this._dimNameMap = ensureSourceDimNameMap(this.source);\n }\n }\n\n /**\n * @caution Can only be used when `dimensionOmitted: true`.\n *\n * Get index by user defined dimension name (i.e., not internal generate name).\n * That is, get index from `dimensionsDefine`.\n * If no `dimensionsDefine`, or no name get, return -1.\n */\n getDimensionIndexFromSource(dimName: DimensionName): DimensionIndex {\n return retrieve2(this._dimNameMap.get(dimName), -1);\n }\n\n /**\n * @caution Can only be used when `dimensionOmitted: true`.\n *\n * Notice: may return `null`/`undefined` if user not specify dimension names.\n */\n getDimensionFromSource(dimIndex: DimensionIndex): DimensionDefinition {\n const dimensionsDefine = this.source.dimensionsDefine;\n if (dimensionsDefine) {\n return dimensionsDefine[dimIndex];\n }\n }\n\n makeStorageSchema(): {\n dimensions: DataStorageDimensionDefine[];\n hash: string\n } {\n const dimCount = this._fullDimensionCount;\n const willRetrieveDataByName = shouldRetrieveDataByName(this.source);\n const makeHashStrict = !shouldOmitUnusedDimensions(dimCount);\n\n // If source don't have dimensions or series don't omit unsed dimensions.\n // Generate from seriesDimList directly\n let dimHash = '';\n const dims: DataStorageDimensionDefine[] = [];\n\n for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) {\n let property: string;\n let type: DimensionType;\n let ordinalMeta: OrdinalMeta;\n\n const seriesDimDef = this.dimensionList[seriesDimIdx];\n // The list has been sorted by `storageDimensionIndex` asc.\n if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) {\n property = willRetrieveDataByName ? seriesDimDef.name : null;\n type = seriesDimDef.type;\n ordinalMeta = seriesDimDef.ordinalMeta;\n\n seriesDimIdx++;\n }\n else {\n const sourceDimDef = this.getDimensionFromSource(fullDimIdx);\n if (sourceDimDef) {\n property = willRetrieveDataByName ? sourceDimDef.name : null;\n type = sourceDimDef.type;\n }\n }\n\n dims.push({ property, type, ordinalMeta });\n\n // If retrieving data by index,\n // use to determine whether data can be shared.\n // (Becuase in this case there might be no dimension name defined in dataset, but indices always exists).\n // (indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).\n // Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`),\n // use in hash.\n if (willRetrieveDataByName\n && property != null\n // For data stack, we have make sure each series has its own dim on this storage.\n // So we do not add property to hash to make sure they can share this storage.\n && (!seriesDimDef || !seriesDimDef.isCalculationCoord)\n ) {\n dimHash += (makeHashStrict\n // Use escape character '`' in case that property name contains '$'.\n ? property.replace(/\\`/g, '`1').replace(/\\$/g, '`2')\n // For better performance, when there are large dimensions, tolerant this defects that hardly meet.\n : property\n );\n }\n dimHash += '$';\n dimHash += dimTypeShort[type] || 'f';\n\n if (ordinalMeta) {\n dimHash += ordinalMeta.uid;\n }\n\n dimHash += '$';\n }\n\n // Source from endpoint(usually series) will be read differently\n // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different.\n // So we use this three props as key.\n const source = this.source;\n const hash = [\n source.seriesLayoutBy,\n source.startIndex,\n dimHash\n ].join('$$');\n\n return {\n dimensions: dims,\n hash: hash\n };\n }\n\n makeOutputDimensionNames(): DimensionName[] {\n const result = [] as DimensionName[];\n\n for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimensionCount; fullDimIdx++) {\n let name: DimensionName;\n const seriesDimDef = this.dimensionList[seriesDimIdx];\n // The list has been sorted by `storageDimensionIndex` asc.\n if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) {\n if (!seriesDimDef.isCalculationCoord) {\n name = seriesDimDef.name;\n }\n seriesDimIdx++;\n }\n else {\n const sourceDimDef = this.getDimensionFromSource(fullDimIdx);\n if (sourceDimDef) {\n name = sourceDimDef.name;\n }\n }\n result.push(name);\n }\n\n return result;\n }\n\n appendCalculationDimension(dimDef: SeriesDimensionDefine): void {\n this.dimensionList.push(dimDef);\n dimDef.isCalculationCoord = true;\n this._fullDimensionCount++;\n // If append dimension on a data storage, consider the storage\n // might be shared by different series, series dimensions not\n // really map to storage dimensions.\n this._updateDimensionOmitted(true);\n }\n}\n\nexport function isSeriesDataSchema(\n schema: any\n): schema is SeriesDataSchema {\n return schema instanceof SeriesDataSchema;\n}\n\n\nexport function createDimNameMap(dimsDef: DimensionDefinitionLoose[]): HashMap {\n const dataDimNameMap = createHashMap();\n for (let i = 0; i < (dimsDef || []).length; i++) {\n const dimDefItemRaw = dimsDef[i];\n const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw;\n if (userDimName != null && dataDimNameMap.get(userDimName) == null) {\n dataDimNameMap.set(userDimName, i);\n }\n }\n return dataDimNameMap;\n}\n\nexport function ensureSourceDimNameMap(source: Source): HashMap {\n const innerSource = inner(source);\n return innerSource.dimNameMap || (\n innerSource.dimNameMap = createDimNameMap(source.dimensionsDefine)\n );\n}\n\nexport function shouldOmitUnusedDimensions(dimCount: number): boolean {\n return dimCount > 30;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Int32Array */\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\nimport Model from '../model/Model';\nimport DataDiffer from './DataDiffer';\nimport {DataProvider, DefaultDataProvider} from './helper/dataProvider';\nimport {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper';\nimport SeriesDimensionDefine from './SeriesDimensionDefine';\nimport {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types';\nimport Element from 'zrender/src/Element';\nimport {\n DimensionIndex, DimensionName, DimensionLoose, OptionDataItem,\n ParsedValue, ParsedValueNumeric,\n ModelOption, SeriesDataType, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL,\n DecalObject,\n OrdinalNumber,\n OrdinalRawValue\n} from '../util/types';\nimport {convertOptionIdName, isDataItemOption} from '../util/model';\nimport { setCommonECData } from '../util/innerStore';\nimport type Graph from './Graph';\nimport type Tree from './Tree';\nimport type { VisualMeta } from '../component/visualMap/VisualMapModel';\nimport {isSourceInstance, Source} from './Source';\nimport { LineStyleProps } from '../model/mixin/lineStyle';\nimport DataStorage, { DimValueGetter } from './DataStorage';\nimport { isSeriesDataSchema, SeriesDataSchema } from './helper/SeriesDataSchema';\n\nconst isObject = zrUtil.isObject;\nconst map = zrUtil.map;\n\nconst CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array;\n\n// Use prefix to avoid index to be the same as otherIdList[idx],\n// which will cause weird udpate animation.\nconst ID_PREFIX = 'e\\0\\0';\n\nconst INDEX_NOT_FOUND = -1;\n\ntype NameRepeatCount = {[name: string]: number};\ntype ItrParamDims = DimensionLoose | Array;\n// If Ctx not specified, use List as Ctx\ntype CtxOrList = unknown extends Ctx ? SeriesData : Ctx;\ntype EachCb0 = (this: CtxOrList, idx: number) => void;\ntype EachCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => void;\ntype EachCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => void;\ntype EachCb = (this: CtxOrList, ...args: any) => void;\ntype FilterCb0 = (this: CtxOrList, idx: number) => boolean;\ntype FilterCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => boolean;\ntype FilterCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => boolean;\ntype FilterCb = (this: CtxOrList, ...args: any) => boolean;\ntype MapArrayCb0 = (this: CtxOrList, idx: number) => any;\ntype MapArrayCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => any;\ntype MapArrayCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => any;\ntype MapArrayCb = (this: CtxOrList, ...args: any) => any;\ntype MapCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => ParsedValue | ParsedValue[];\ntype MapCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) =>\n ParsedValue | ParsedValue[];\ntype MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedValue[];\n\ntype SeriesDimensionDefineLoose = string | object | SeriesDimensionDefine;\n\n// `SeriesDimensionLoose` and `SeriesDimensionName` is the dimension that is used by coordinate\n// system or declared in `series.encode`, which will be saved in `SeriesData`. Other dimension\n// might not be saved in `SeriesData` for performance consideration. See `createDimension` for\n// more details.\ntype SeriesDimensionLoose = DimensionLoose;\ntype SeriesDimensionName = DimensionName;\n// type SeriesDimensionIndex = DimensionIndex;\n\n\nconst TRANSFERABLE_PROPERTIES = [\n 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap',\n '_dimensionsSummary', 'userOutput',\n '_rawData', '_dimValueGetter',\n '_nameDimIdx', '_idDimIdx', '_nameRepeatCount'\n];\nconst CLONE_PROPERTIES = [\n '_approximateExtent'\n];\n\nexport interface DefaultDataVisual {\n style: PathStyleProps\n // Draw type determined which prop should be set with encoded color.\n // It's only available on the global visual. Use getVisual('drawType') to access it.\n // It will be set in visual/style.ts module in the first priority.\n drawType: 'fill' | 'stroke'\n\n symbol?: string\n symbolSize?: number | number[]\n symbolRotate?: number\n symbolKeepAspect?: boolean\n symbolOffset?: string | number | (string | number)[]\n\n liftZ?: number\n // For legend.\n legendIcon?: string\n legendLineStyle?: LineStyleProps\n\n // visualMap will inject visualMeta data\n visualMeta?: VisualMeta[]\n\n // If color is encoded from palette\n colorFromPalette?: boolean\n\n decal?: DecalObject\n}\n\nexport interface DataCalculationInfo {\n stackedDimension: DimensionName;\n stackedByDimension: DimensionName;\n isStackedByIndex: boolean;\n stackedOverDimension: DimensionName;\n stackResultDimension: DimensionName;\n stackedOnSeries?: SERIES_MODEL;\n}\n\n// -----------------------------\n// Internal method declarations:\n// -----------------------------\nlet prepareInvertedIndex: (data: SeriesData) => void;\nlet getId: (data: SeriesData, rawIndex: number) => string;\nlet getIdNameFromStore: (data: SeriesData, dimIdx: number, dataIdx: number) => string;\nlet normalizeDimensions: (dimensions: ItrParamDims) => Array;\nlet transferProperties: (target: SeriesData, source: SeriesData) => void;\nlet cloneListForMapAndSample: (original: SeriesData) => SeriesData;\nlet makeIdFromName: (data: SeriesData, idx: number) => void;\n\nclass SeriesData<\n HostModel extends Model = Model,\n Visual extends DefaultDataVisual = DefaultDataVisual\n> {\n\n readonly type = 'list';\n\n /**\n * Name of dimensions list of SeriesData.\n *\n * @caution Carefully use the index of this array.\n * Becuase when DataStorage is an extra high dimension(>30) dataset. We will only pick\n * the used dimensions from DataStorage to avoid performance issue.\n */\n readonly dimensions: SeriesDimensionName[];\n\n // Infomation of each data dimension, like data type.\n private _dimensionInfos: Record;\n\n private _dimensionOmitted = false;\n private _schema?: SeriesDataSchema;\n /**\n * @pending\n * Actually we do not really need to convert dimensionIndex to dimensionName\n * and do not need `_dimIdxToName` if we do everything internally based on dimension\n * index rather than dimension name.\n */\n private _dimIdxToName?: zrUtil.HashMap;\n\n readonly hostModel: HostModel;\n\n /**\n * @readonly\n */\n dataType: SeriesDataType;\n\n /**\n * @readonly\n * Host graph if List is used to store graph nodes / edges.\n */\n graph?: Graph;\n\n /**\n * @readonly\n * Host tree if List is used to store tree ndoes.\n */\n tree?: Tree;\n\n private _store: DataStorage;\n\n private _nameList: string[] = [];\n private _idList: string[] = [];\n\n // Models of data option is stored sparse for optimizing memory cost\n // Never used yet (not used yet).\n // private _optionModels: Model[] = [];\n\n // Global visual properties after visual coding\n private _visual: Dictionary = {};\n\n // Globel layout properties.\n private _layout: Dictionary = {};\n\n // Item visual properties after visual coding\n private _itemVisuals: Dictionary[] = [];\n\n // Item layout properties after layout\n private _itemLayouts: any[] = [];\n\n // Graphic elemnents\n private _graphicEls: Element[] = [];\n\n // key: dim, value: extent\n private _approximateExtent: Record = {};\n\n private _dimensionsSummary: DimensionSummary;\n\n private _invertedIndicesMap: Record>;\n\n private _calculationInfo: DataCalculationInfo = {} as DataCalculationInfo;\n\n // User output info of this data.\n // DO NOT use it in other places!\n // When preparing user params for user callbacks, we have\n // to clone these inner data structures to prevent users\n // from modifying them to effect built-in logic. And for\n // performance consideration we make this `userOutput` to\n // avoid clone them too many times.\n userOutput: DimensionSummary['userOutput'];\n\n // Having detected that there is data item is non primitive type\n // (in type `OptionDataItemObject`).\n // Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n // At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n hasItemOption: boolean = false;\n\n // id or name is used on dynamic data, mapping old and new items.\n // When generating id from name, avoid repeat.\n private _nameRepeatCount: NameRepeatCount;\n private _nameDimIdx: number;\n private _idDimIdx: number;\n\n private __wrappedMethods: string[];\n\n // Methods that create a new list based on this list should be listed here.\n // Notice that those method should `RETURN` the new list.\n TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map'] as const;\n // Methods that change indices of this list should be listed here.\n CHANGABLE_METHODS = ['filterSelf', 'selectRange'] as const;\n DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'] as const;\n\n /**\n * @param dimensionsInput.dimensions\n * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].\n * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius\n */\n constructor(\n dimensionsInput: SeriesDataSchema | SeriesDimensionDefineLoose[],\n hostModel: HostModel\n ) {\n let dimensions: SeriesDimensionDefineLoose[];\n let assignStorageDimIdx = false;\n if (isSeriesDataSchema(dimensionsInput)) {\n dimensions = dimensionsInput.dimensionList;\n this._dimensionOmitted = dimensionsInput.isDimensionOmitted();\n this._schema = dimensionsInput;\n }\n else {\n assignStorageDimIdx = true;\n dimensions = dimensionsInput as SeriesDimensionDefineLoose[];\n }\n\n dimensions = dimensions || ['x', 'y'];\n\n const dimensionInfos: Dictionary = {};\n const dimensionNames = [];\n const invertedIndicesMap: Dictionary = {};\n let needsHasOwn = false;\n const emptyObj = {};\n\n for (let i = 0; i < dimensions.length; i++) {\n // Use the original dimensions[i], where other flag props may exists.\n const dimInfoInput = dimensions[i];\n\n const dimensionInfo: SeriesDimensionDefine =\n zrUtil.isString(dimInfoInput)\n ? new SeriesDimensionDefine({name: dimInfoInput})\n : !(dimInfoInput instanceof SeriesDimensionDefine)\n ? new SeriesDimensionDefine(dimInfoInput)\n : dimInfoInput;\n\n const dimensionName = dimensionInfo.name;\n dimensionInfo.type = dimensionInfo.type || 'float';\n if (!dimensionInfo.coordDim) {\n dimensionInfo.coordDim = dimensionName;\n dimensionInfo.coordDimIndex = 0;\n }\n\n const otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {};\n dimensionNames.push(dimensionName);\n dimensionInfos[dimensionName] = dimensionInfo;\n if ((emptyObj as any)[dimensionName] != null) {\n needsHasOwn = true;\n }\n\n if (dimensionInfo.createInvertedIndices) {\n invertedIndicesMap[dimensionName] = [];\n }\n if (otherDims.itemName === 0) {\n this._nameDimIdx = i;\n }\n if (otherDims.itemId === 0) {\n this._idDimIdx = i;\n }\n\n if (__DEV__) {\n zrUtil.assert(assignStorageDimIdx || dimensionInfo.storageDimensionIndex >= 0);\n }\n if (assignStorageDimIdx) {\n dimensionInfo.storageDimensionIndex = i;\n }\n }\n\n this.dimensions = dimensionNames;\n this._dimensionInfos = dimensionInfos;\n this._initGetDimensionInfo(needsHasOwn);\n\n this.hostModel = hostModel;\n\n this._invertedIndicesMap = invertedIndicesMap;\n\n if (this._dimensionOmitted) {\n const dimIdxToName = this._dimIdxToName = zrUtil.createHashMap();\n zrUtil.each(dimensionNames, dimName => {\n dimIdxToName.set(dimensionInfos[dimName].storageDimensionIndex, dimName);\n });\n }\n }\n\n /**\n *\n * Get concrete dimension name by dimension name or dimension index.\n * If input a dimension name, do not validate whether the dimension name exits.\n *\n * @caution\n * @param dim Must make sure the dimension is `SeriesDimensionLoose`.\n * Because only those dimensions will have auto-generated dimension names if not\n * have a user-specified name, and other dimensions will get a return of null/undefined.\n * @deprecated\n * Becuause of this reason, should better use `getDimensionIndex` instead, for examples:\n * ```js\n * const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx);\n * ```\n *\n * @return Concrete dim name.\n */\n getDimension(dim: SeriesDimensionLoose): DimensionName {\n let dimIdx = this._recognizeDimensionIndex(dim);\n if (dimIdx == null) {\n return dim as DimensionName;\n }\n dimIdx = dim as DimensionIndex;\n\n if (!this._dimensionOmitted) {\n return this.dimensions[dimIdx];\n }\n\n // Retrieve from series dimension definition becuase it probably contains\n // generated dimension name (like 'x', 'y').\n const dimName = this._dimIdxToName.get(dimIdx);\n if (dimName != null) {\n return dimName;\n }\n\n const sourceDimDef = this._schema.getDimensionFromSource(dimIdx);\n if (sourceDimDef) {\n return sourceDimDef.name;\n }\n }\n\n /**\n * Get dimension index in the storage. Return -1 if not found.\n * Can be used to index value from getRawValue.\n */\n getDimensionIndex(dim: DimensionLoose): DimensionIndex {\n const dimIdx = this._recognizeDimensionIndex(dim);\n if (dimIdx != null) {\n return dimIdx;\n }\n\n const dimInfo = this._getDimensionInfo(dim as DimensionName);\n return dimInfo\n ? dimInfo.storageDimensionIndex\n : this._dimensionOmitted\n ? this._schema.getDimensionIndexFromSource(dim as DimensionName)\n : -1;\n }\n\n /**\n * The meanings of the input parameter `dim`:\n *\n * + If dim is a number (e.g., `1`), it means the index of the dimension.\n * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.\n * + If dim is a number-like string (e.g., `\"1\"`):\n * + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`,\n * it means that concrete name.\n * + If not, it will be converted to a number, which means the index of the dimension.\n * (why? because of the backward compatbility. We have been tolerating number-like string in\n * dimension setting, although now it seems that it is not a good idea.)\n * For example, `visualMap[i].dimension: \"1\"` is the same meaning as `visualMap[i].dimension: 1`,\n * if no dimension name is defined as `\"1\"`.\n * + If dim is a not-number-like string, it means the concrete dim name.\n * For example, it can be be default name `\"x\"`, `\"y\"`, `\"z\"`, `\"lng\"`, `\"lat\"`, `\"angle\"`, `\"radius\"`,\n * or customized in `dimensions` property of option like `\"age\"`.\n *\n * @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).\n */\n private _recognizeDimensionIndex(dim: DimensionLoose): DimensionIndex {\n if (typeof dim === 'number'\n // If being a number-like string but not being defined as a dimension name.\n || (\n dim != null\n && !isNaN(dim as any)\n && !this._getDimensionInfo(dim)\n && (!this._dimensionOmitted || this._schema.getDimensionIndexFromSource(dim) < 0)\n )\n ) {\n return +dim;\n }\n }\n\n private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex {\n const dimIdx = this.getDimensionIndex(dim);\n if (__DEV__) {\n if (dimIdx == null) {\n throw new Error('Unkown dimension ' + dim);\n }\n }\n return dimIdx;\n }\n\n /**\n * Get type and calculation info of particular dimension\n * @param dim\n * Dimension can be concrete names like x, y, z, lng, lat, angle, radius\n * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'\n */\n getDimensionInfo(dim: SeriesDimensionLoose): SeriesDimensionDefine {\n // Do not clone, because there may be categories in dimInfo.\n return this._getDimensionInfo(this.getDimension(dim));\n }\n\n /**\n * If `dimName` if from outside of `SeriesData`,\n * use this method other than visit `this._dimensionInfos` directly.\n */\n private _getDimensionInfo: (dimName: SeriesDimensionName) => SeriesDimensionDefine;\n\n private _initGetDimensionInfo(needsHasOwn: boolean): void {\n const dimensionInfos = this._dimensionInfos;\n this._getDimensionInfo = needsHasOwn\n ? dimName => (dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined)\n : dimName => dimensionInfos[dimName];\n }\n\n /**\n * concrete dimension name list on coord.\n */\n getDimensionsOnCoord(): SeriesDimensionName[] {\n return this._dimensionsSummary.dataDimsOnCoord.slice();\n }\n\n /**\n * @param coordDim\n * @param idx A coordDim may map to more than one data dim.\n * If not specified, return the first dim not extra.\n * @return concrete data dim. If not found, return null/undefined\n */\n mapDimension(coordDim: SeriesDimensionName): SeriesDimensionName;\n mapDimension(coordDim: SeriesDimensionName, idx: number): SeriesDimensionName;\n mapDimension(coordDim: SeriesDimensionName, idx?: number): SeriesDimensionName {\n const dimensionsSummary = this._dimensionsSummary;\n\n if (idx == null) {\n return dimensionsSummary.encodeFirstDimNotExtra[coordDim] as any;\n }\n\n const dims = dimensionsSummary.encode[coordDim];\n return dims ? dims[idx as number] as any : null;\n }\n\n mapDimensionsAll(coordDim: SeriesDimensionName): SeriesDimensionName[] {\n const dimensionsSummary = this._dimensionsSummary;\n const dims = dimensionsSummary.encode[coordDim];\n return (dims || []).slice();\n }\n\n getStorage() {\n return this._store;\n }\n\n /**\n * Initialize from data\n * @param data source or data or data storage.\n * @param nameList The name of a datum is used on data diff and\n * default label/tooltip.\n * A name can be specified in encode.itemName,\n * or dataItem.name (only for series option data),\n * or provided in nameList from outside.\n */\n initData(\n data: Source | OptionSourceData | DataStorage | DataProvider,\n nameList?: string[],\n dimValueGetter?: DimValueGetter\n ): void {\n let store: DataStorage;\n const dimensions = this.dimensions;\n const dimensionInfos = map(dimensions, this._getDimensionInfo, this);\n if (data instanceof DataStorage) {\n store = data;\n }\n\n if (!store) {\n const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data))\n ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length)\n : data as DataProvider;\n store = new DataStorage();\n store.initData(provider, dimensionInfos, dimValueGetter);\n }\n\n this._store = store;\n\n // Reset\n this._nameList = (nameList || []).slice();\n this._idList = [];\n this._nameRepeatCount = {};\n\n this._doInit(0, store.count());\n\n // Cache summary info for fast visit. See \"dimensionHelper\".\n // Needs to be initialized after store is prepared.\n this._dimensionsSummary = summarizeDimensions(this, this._schema);\n this.userOutput = this._dimensionsSummary.userOutput;\n }\n\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n appendData(data: ArrayLike): void {\n const range = this._store.appendData(data);\n this._doInit(range[0], range[1]);\n }\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n * This method does not modify `rawData` (`dataProvider`), but only\n * add values to storage.\n *\n * The final count will be increased by `Math.max(values.length, names.length)`.\n *\n * @param values That is the SourceType: 'arrayRows', like\n * [\n * [12, 33, 44],\n * [NaN, 43, 1],\n * ['-', 'asdf', 0]\n * ]\n * Each item is exaclty cooresponding to a dimension.\n */\n appendValues(values: any[][], names?: string[]): void {\n const {start, end} = this._store.appendValues(values, names.length);\n const shouldMakeIdFromName = this._shouldMakeIdFromName();\n\n this._updateOrdinalMeta();\n\n if (names) {\n for (let idx = start; idx < end; idx++) {\n const sourceIdx = idx - start;\n this._nameList[idx] = names[sourceIdx];\n if (shouldMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n }\n\n private _updateOrdinalMeta(): void {\n const store = this._store;\n const dimensions = this.dimensions;\n for (let i = 0; i < dimensions.length; i++) {\n const dimInfo = this._dimensionInfos[dimensions[i]];\n if (dimInfo.ordinalMeta) {\n store.collectOrdinalMeta(dimInfo.storageDimensionIndex, dimInfo.ordinalMeta);\n }\n }\n }\n\n private _shouldMakeIdFromName(): boolean {\n const provider = this._store.getProvider();\n return this._idDimIdx == null\n && provider.getSource().sourceFormat !== SOURCE_FORMAT_TYPED_ARRAY\n && !provider.fillStorage;\n }\n\n private _doInit(start: number, end: number): void {\n if (start >= end) {\n return;\n }\n\n const store = this._store;\n const provider = store.getProvider();\n\n this._updateOrdinalMeta();\n\n const nameList = this._nameList;\n const idList = this._idList;\n const sourceFormat = provider.getSource().sourceFormat;\n const isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL;\n\n // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n // If dataItem is {name: ...} or {id: ...}, it has highest priority.\n // This kind of ids and names are always stored `_nameList` and `_idList`.\n if (isFormatOriginal && !provider.pure) {\n const sharedDataItem = [] as OptionDataItem;\n for (let idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n const dataItem = provider.getItem(idx, sharedDataItem);\n if (!this.hasItemOption && isDataItemOption(dataItem)) {\n this.hasItemOption = true;\n }\n if (dataItem) {\n const itemName = (dataItem as any).name;\n if (nameList[idx] == null && itemName != null) {\n nameList[idx] = convertOptionIdName(itemName, null);\n }\n const itemId = (dataItem as any).id;\n if (idList[idx] == null && itemId != null) {\n idList[idx] = convertOptionIdName(itemId, null);\n }\n }\n }\n }\n\n if (this._shouldMakeIdFromName()) {\n for (let idx = start; idx < end; idx++) {\n makeIdFromName(this, idx);\n }\n }\n\n prepareInvertedIndex(this);\n }\n\n /**\n * PENDING: In fact currently this function is only used to short-circuit\n * the calling of `scale.unionExtentFromData` when data have been filtered by modules\n * like \"dataZoom\". `scale.unionExtentFromData` is used to calculate data extent for series on\n * an axis, but if a \"axis related data filter module\" is used, the extent of the axis have\n * been fixed and no need to calling `scale.unionExtentFromData` actually.\n * But if we add \"custom data filter\" in future, which is not \"axis related\", this method may\n * be still needed.\n *\n * Optimize for the scenario that data is filtered by a given extent.\n * Consider that if data amount is more than hundreds of thousand,\n * extent calculation will cost more than 10ms and the cache will\n * be erased because of the filtering.\n */\n getApproximateExtent(dim: SeriesDimensionLoose): [number, number] {\n return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim));\n }\n\n /**\n * Calculate extent on a filtered data might be time consuming.\n * Approximate extent is only used for: calculte extent of filtered data outside.\n */\n setApproximateExtent(extent: [number, number], dim: SeriesDimensionLoose): void {\n dim = this.getDimension(dim);\n this._approximateExtent[dim] = extent.slice() as [number, number];\n }\n\n getCalculationInfo>(\n key: CALC_INFO_KEY\n ): DataCalculationInfo[CALC_INFO_KEY] {\n return this._calculationInfo[key];\n }\n\n /**\n * @param key or k-v object\n */\n setCalculationInfo(\n key: DataCalculationInfo\n ): void;\n setCalculationInfo>(\n key: CALC_INFO_KEY,\n value: DataCalculationInfo[CALC_INFO_KEY]\n ): void;\n setCalculationInfo(\n key: (keyof DataCalculationInfo) | DataCalculationInfo,\n value?: DataCalculationInfo[keyof DataCalculationInfo]\n ): void {\n isObject(key)\n ? zrUtil.extend(this._calculationInfo, key as object)\n : ((this._calculationInfo as any)[key] = value);\n }\n\n /**\n * @return Never be null/undefined. `number` will be converted to string. Becuase:\n * In most cases, name is used in display, where returning a string is more convenient.\n * In other cases, name is used in query (see `indexOfName`), where we can keep the\n * rule that name `2` equals to name `'2'`.\n */\n getName(idx: number): string {\n const rawIndex = this.getRawIndex(idx);\n let name = this._nameList[rawIndex];\n if (name == null && this._nameDimIdx != null) {\n name = getIdNameFromStore(this, this._nameDimIdx, rawIndex);\n }\n if (name == null) {\n name = '';\n }\n return name;\n }\n\n private _getCategory(dimIdx: number, idx: number): OrdinalRawValue {\n const ordinal = this._store.get(dimIdx, idx);\n const ordinalMeta = this._store.getOrdinalMeta(dimIdx);\n if (ordinalMeta) {\n return ordinalMeta.categories[ordinal as OrdinalNumber];\n }\n return ordinal;\n }\n\n /**\n * @return Never null/undefined. `number` will be converted to string. Becuase:\n * In all cases having encountered at present, id is used in making diff comparison, which\n * are usually based on hash map. We can keep the rule that the internal id are always string\n * (treat `2` is the same as `'2'`) to make the related logic simple.\n */\n getId(idx: number): string {\n return getId(this, this.getRawIndex(idx));\n }\n\n count(): number {\n return this._store.count();\n }\n\n /**\n * Get value. Return NaN if idx is out of range.\n *\n * @deprecated Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead.\n */\n get(dim: SeriesDimensionName, idx: number): ParsedValue {\n const store = this._store;\n const dimInfo = this._dimensionInfos[dim];\n if (dimInfo) {\n return store.get(dimInfo.storageDimensionIndex, idx);\n }\n }\n\n /**\n * @deprecated Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead.\n */\n getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue {\n const store = this._store;\n const dimInfo = this._dimensionInfos[dim];\n if (dimInfo) {\n return store.getByRawIndex(dimInfo.storageDimensionIndex, rawIdx);\n }\n }\n\n getIndices() {\n return this._store.getIndices();\n }\n\n getDataExtent(dim: DimensionLoose): [number, number] {\n return this._store.getDataExtent(this._getStoreDimIndex(dim));\n }\n\n getSum(dim: DimensionLoose): number {\n return this._store.getSum(this._getStoreDimIndex(dim));\n }\n\n getMedian(dim: DimensionLoose): number {\n return this._store.getMedian(this._getStoreDimIndex(dim));\n }\n /**\n * Get value for multi dimensions.\n * @param dimensions If ignored, using all dimensions.\n */\n getValues(idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionName[], idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] {\n const store = this._store;\n return zrUtil.isArray(dimensions)\n ? store.getValues(map(dimensions, dim => this._getStoreDimIndex(dim)), idx)\n : store.getValues(dimensions as number);\n }\n\n /**\n * If value is NaN. Inlcuding '-'\n * Only check the coord dimensions.\n */\n hasValue(idx: number): boolean {\n const dataDimIndicesOnCoord = this._dimensionsSummary.dataDimIndicesOnCoord;\n for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) {\n // Ordinal type originally can be string or number.\n // But when an ordinal type is used on coord, it can\n // not be string but only number. So we can also use isNaN.\n if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx) as any)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Retreive the index with given name\n */\n indexOfName(name: string): number {\n for (let i = 0, len = this._store.count(); i < len; i++) {\n if (this.getName(i) === name) {\n return i;\n }\n }\n return -1;\n }\n\n getRawIndex(idx: number): number {\n return this._store.getRawIndex(idx);\n }\n\n indexOfRawIndex(rawIndex: number): number {\n return this._store.indexOfRawIndex(rawIndex);\n }\n\n /**\n * Only support the dimension which inverted index created.\n * Do not support other cases until required.\n * @param dim concrete dim\n * @param value ordinal index\n * @return rawIndex\n */\n rawIndexOf(dim: SeriesDimensionName, value: OrdinalNumber): number {\n const invertedIndices = dim && this._invertedIndicesMap[dim];\n if (__DEV__) {\n if (!invertedIndices) {\n throw new Error('Do not supported yet');\n }\n }\n const rawIndex = invertedIndices[value];\n if (rawIndex == null || isNaN(rawIndex)) {\n return INDEX_NOT_FOUND;\n }\n return rawIndex;\n }\n\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n indicesOfNearest(dim: DimensionLoose, value: number, maxDistance?: number): number[] {\n return this._store.indicesOfNearest(\n this._getStoreDimIndex(dim),\n value, maxDistance\n );\n }\n /**\n * Data iteration\n * @param ctx default this\n * @example\n * list.each('x', function (x, idx) {});\n * list.each(['x', 'y'], function (x, y, idx) {});\n * list.each(function (idx) {})\n */\n each(cb: EachCb0, ctx?: Ctx, ctxCompat?: Ctx): void;\n each(dims: DimensionLoose, cb: EachCb1, ctx?: Ctx): void;\n each(dims: [DimensionLoose], cb: EachCb1, ctx?: Ctx): void;\n each(dims: [DimensionLoose, DimensionLoose], cb: EachCb2, ctx?: Ctx): void;\n each(dims: ItrParamDims, cb: EachCb, ctx?: Ctx): void;\n each(\n dims: ItrParamDims | EachCb,\n cb: EachCb | Ctx,\n ctx?: Ctx\n ): void {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || this) as CtxOrList;\n\n const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this);\n\n this._store.each(dimIndices, (fCtx\n ? zrUtil.bind(cb as any, fCtx as any)\n : cb) as any\n );\n }\n /**\n * Data filter\n */\n filterSelf(cb: FilterCb0, ctx?: Ctx, ctxCompat?: Ctx): this;\n filterSelf(dims: DimensionLoose, cb: FilterCb1, ctx?: Ctx): this;\n filterSelf(dims: [DimensionLoose], cb: FilterCb1, ctx?: Ctx): this;\n filterSelf(dims: [DimensionLoose, DimensionLoose], cb: FilterCb2, ctx?: Ctx): this;\n filterSelf(dims: ItrParamDims, cb: FilterCb, ctx?: Ctx): this;\n filterSelf(\n dims: ItrParamDims | FilterCb,\n cb: FilterCb | Ctx,\n ctx?: Ctx\n ): SeriesData {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || this) as CtxOrList;\n\n const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this);\n\n this._store = this._store.filter(dimIndices, (fCtx\n ? zrUtil.bind(cb as any, fCtx as any)\n : cb) as any\n );\n\n return this;\n }\n\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n selectRange(range: Record): SeriesData {\n 'use strict';\n\n const innerRange: Record = {};\n const dims = zrUtil.keys(range);\n const dimIndices: number[] = [];\n zrUtil.each(dims, (dim) => {\n const dimIdx = this._getStoreDimIndex(dim);\n innerRange[dimIdx] = range[dim];\n dimIndices.push(dimIdx);\n });\n\n this._store = this._store.selectRange(innerRange);\n return this;\n }\n\n /**\n * Data mapping to a plain array\n */\n mapArray>(cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n /* eslint-disable max-len */\n mapArray>(dims: DimensionLoose, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: [DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: [DimensionLoose, DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: ItrParamDims, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n /* eslint-enable max-len */\n mapArray(\n dims: ItrParamDims | MapArrayCb,\n cb: MapArrayCb | Ctx,\n ctx?: Ctx\n ): unknown[] {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n ctx = (ctx || this) as Ctx;\n\n const result: unknown[] = [];\n this.each(dims, function () {\n result.push(cb && (cb as MapArrayCb).apply(this, arguments));\n }, ctx);\n return result;\n }\n\n /**\n * Data mapping to a new List with given dimensions\n */\n map(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n map(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n // eslint-disable-next-line max-len\n map(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n map(\n dims: ItrParamDims,\n cb: MapCb,\n ctx?: Ctx,\n ctxCompat?: Ctx\n ): SeriesData {\n 'use strict';\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || ctxCompat || this) as CtxOrList;\n\n const dimIndices = map(\n normalizeDimensions(dims), this._getStoreDimIndex, this\n );\n\n const list = cloneListForMapAndSample(this);\n list._store = this._store.map(\n dimIndices,\n fCtx ? zrUtil.bind(cb, fCtx) : cb\n );\n return list;\n }\n\n /**\n * !!Danger: used on stack dimension only.\n */\n modify(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(\n dims: ItrParamDims,\n cb: MapCb,\n ctx?: Ctx,\n ctxCompat?: Ctx\n ): void {\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || ctxCompat || this) as CtxOrList;\n\n if (__DEV__) {\n zrUtil.each(normalizeDimensions(dims), dim => {\n const dimInfo = this.getDimensionInfo(dim);\n if (!dimInfo.isCalculationCoord) {\n console.error('Danger: only stack dimension can be modified');\n }\n });\n }\n\n const dimIndices = map(\n normalizeDimensions(dims), this._getStoreDimIndex, this\n );\n\n // If do shallow clone here, if there are too many stacked series,\n // it still cost lots of memory, becuase `storage.dimensions` are not shared.\n // We should consider there probably be shallow clone happen in each sereis\n // in consequent filter/map.\n this._store.modify(\n dimIndices,\n fCtx ? zrUtil.bind(cb, fCtx) : cb\n );\n }\n\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n downSample(\n dimension: DimensionLoose,\n rate: number,\n sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric,\n sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number\n ): SeriesData {\n const list = cloneListForMapAndSample(this);\n list._store = this._store.downSample(\n this._getStoreDimIndex(dimension),\n rate,\n sampleValue,\n sampleIndex\n );\n return list as SeriesData;\n }\n\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n lttbDownSample(\n valueDimension: DimensionLoose,\n rate: number\n ): SeriesData {\n const list = cloneListForMapAndSample(this);\n list._store = this._store.lttbDownSample(\n this._getStoreDimIndex(valueDimension),\n rate\n );\n return list as SeriesData;\n }\n\n getRawDataItem(idx: number) {\n return this._store.getRawDataItem(idx);\n }\n\n /**\n * Get model of one data item.\n */\n // TODO: Type of data item\n getItemModel(idx: number): Model\n > {\n const hostModel = this.hostModel;\n const dataItem = this.getRawDataItem(idx) as ModelOption;\n return new Model(dataItem, hostModel, hostModel && hostModel.ecModel);\n }\n\n /**\n * Create a data differ\n */\n diff(otherList: SeriesData): DataDiffer {\n const thisList = this;\n\n return new DataDiffer(\n otherList ? otherList.getStorage().getIndices() : [],\n this.getStorage().getIndices(),\n function (idx: number) {\n return getId(otherList, idx);\n },\n function (idx: number) {\n return getId(thisList, idx);\n }\n );\n }\n\n /**\n * Get visual property.\n */\n getVisual(key: K): Visual[K] {\n const visual = this._visual as Visual;\n return visual && visual[key];\n }\n\n /**\n * Set visual property\n *\n * @example\n * setVisual('color', color);\n * setVisual({\n * 'color': color\n * });\n */\n setVisual(key: K, val: Visual[K]): void;\n setVisual(kvObj: Partial): void;\n setVisual(kvObj: string | Partial, val?: any): void {\n this._visual = this._visual || {};\n if (isObject(kvObj)) {\n zrUtil.extend(this._visual, kvObj);\n }\n else {\n this._visual[kvObj as string] = val;\n }\n }\n\n /**\n * Get visual property of single data item\n */\n // eslint-disable-next-line\n getItemVisual(idx: number, key: K): Visual[K] {\n const itemVisual = this._itemVisuals[idx] as Visual;\n const val = itemVisual && itemVisual[key];\n if (val == null) {\n // Use global visual property\n return this.getVisual(key);\n }\n return val;\n }\n\n /**\n * If exists visual property of single data item\n */\n hasItemVisual() {\n return this._itemVisuals.length > 0;\n }\n\n /**\n * Make sure itemVisual property is unique\n */\n // TODO: use key to save visual to reduce memory.\n ensureUniqueItemVisual(idx: number, key: K): Visual[K] {\n const itemVisuals = this._itemVisuals;\n let itemVisual = itemVisuals[idx] as Visual;\n if (!itemVisual) {\n itemVisual = itemVisuals[idx] = {} as Visual;\n }\n let val = itemVisual[key];\n if (val == null) {\n val = this.getVisual(key);\n\n // TODO Performance?\n if (zrUtil.isArray(val)) {\n val = val.slice() as unknown as Visual[K];\n }\n else if (isObject(val)) {\n val = zrUtil.extend({}, val);\n }\n\n itemVisual[key] = val;\n }\n return val;\n }\n /**\n * Set visual property of single data item\n *\n * @param {number} idx\n * @param {string|Object} key\n * @param {*} [value]\n *\n * @example\n * setItemVisual(0, 'color', color);\n * setItemVisual(0, {\n * 'color': color\n * });\n */\n // eslint-disable-next-line\n setItemVisual(idx: number, key: K, value: Visual[K]): void;\n setItemVisual(idx: number, kvObject: Partial): void;\n // eslint-disable-next-line\n setItemVisual(idx: number, key: K | Partial, value?: Visual[K]): void {\n const itemVisual = this._itemVisuals[idx] || {};\n this._itemVisuals[idx] = itemVisual;\n\n if (isObject(key)) {\n zrUtil.extend(itemVisual, key);\n }\n else {\n itemVisual[key as string] = value;\n }\n }\n\n /**\n * Clear itemVisuals and list visual.\n */\n clearAllVisual(): void {\n this._visual = {};\n this._itemVisuals = [];\n }\n\n /**\n * Set layout property.\n */\n setLayout(key: string, val: any): void;\n setLayout(kvObj: Dictionary): void;\n setLayout(key: string | Dictionary, val?: any): void {\n if (isObject(key)) {\n for (const name in key) {\n if (key.hasOwnProperty(name)) {\n this.setLayout(name, key[name]);\n }\n }\n return;\n }\n this._layout[key] = val;\n }\n\n /**\n * Get layout property.\n */\n getLayout(key: string): any {\n return this._layout[key];\n }\n\n /**\n * Get layout of single data item\n */\n getItemLayout(idx: number): any {\n return this._itemLayouts[idx];\n }\n\n /**\n * Set layout of single data item\n */\n setItemLayout(\n idx: number,\n layout: (M extends true ? Dictionary : any),\n merge?: M\n ): void {\n this._itemLayouts[idx] = merge\n ? zrUtil.extend(this._itemLayouts[idx] || {}, layout)\n : layout;\n }\n\n /**\n * Clear all layout of single data item\n */\n clearItemLayouts(): void {\n this._itemLayouts.length = 0;\n }\n\n /**\n * Set graphic element relative to data. It can be set as null\n */\n setItemGraphicEl(idx: number, el: Element): void {\n const seriesIndex = this.hostModel && (this.hostModel as any).seriesIndex;\n\n setCommonECData(seriesIndex, this.dataType, idx, el);\n\n this._graphicEls[idx] = el;\n }\n\n getItemGraphicEl(idx: number): Element {\n return this._graphicEls[idx];\n }\n\n eachItemGraphicEl(\n cb: (this: Ctx, el: Element, idx: number) => void,\n context?: Ctx\n ): void {\n zrUtil.each(this._graphicEls, function (el, idx) {\n if (el) {\n cb && cb.call(context, el, idx);\n }\n });\n }\n\n /**\n * Shallow clone a new list except visual and layout properties, and graph elements.\n * New list only change the indices.\n */\n cloneShallow(list?: SeriesData): SeriesData {\n if (!list) {\n list = new SeriesData(\n this._schema\n ? this._schema\n : map(this.dimensions, this._getDimensionInfo, this),\n this.hostModel\n );\n }\n\n transferProperties(list, this);\n list._store = this._store;\n\n return list;\n }\n\n /**\n * Wrap some method to add more feature\n */\n wrapMethod(\n methodName: FunctionPropertyNames,\n injectFunction: (...args: any) => any\n ): void {\n const originalMethod = this[methodName];\n if (typeof originalMethod !== 'function') {\n return;\n }\n this.__wrappedMethods = this.__wrappedMethods || [];\n this.__wrappedMethods.push(methodName);\n this[methodName] = function () {\n const res = (originalMethod as any).apply(this, arguments);\n return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments)));\n };\n }\n\n\n // ----------------------------------------------------------\n // A work around for internal method visiting private member.\n // ----------------------------------------------------------\n private static internalField = (function () {\n\n prepareInvertedIndex = function (data: SeriesData): void {\n const invertedIndicesMap = data._invertedIndicesMap;\n zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) {\n const dimInfo = data._dimensionInfos[dim];\n // Currently, only dimensions that has ordinalMeta can create inverted indices.\n const ordinalMeta = dimInfo.ordinalMeta;\n const store = data._store;\n if (ordinalMeta) {\n invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array(\n ordinalMeta.categories.length\n );\n // The default value of TypedArray is 0. To avoid miss\n // mapping to 0, we should set it as INDEX_NOT_FOUND.\n for (let i = 0; i < invertedIndices.length; i++) {\n invertedIndices[i] = INDEX_NOT_FOUND;\n }\n for (let i = 0; i < store.count(); i++) {\n // Only support the case that all values are distinct.\n invertedIndices[store.get(dimInfo.storageDimensionIndex, i) as number] = i;\n }\n }\n });\n };\n\n getIdNameFromStore = function (\n data: SeriesData, dimIdx: number, idx: number\n ): string {\n return convertOptionIdName(data._getCategory(dimIdx, idx), null);\n };\n\n /**\n * @see the comment of `List['getId']`.\n */\n getId = function (data: SeriesData, rawIndex: number): string {\n let id = data._idList[rawIndex];\n if (id == null && data._idDimIdx != null) {\n id = getIdNameFromStore(data, data._idDimIdx, rawIndex);\n }\n if (id == null) {\n id = ID_PREFIX + rawIndex;\n }\n return id;\n };\n\n normalizeDimensions = function (\n dimensions: ItrParamDims\n ): Array {\n if (!zrUtil.isArray(dimensions)) {\n dimensions = dimensions != null ? [dimensions] : [];\n }\n return dimensions;\n };\n\n /**\n * Data in excludeDimensions is copied, otherwise transfered.\n */\n cloneListForMapAndSample = function (original: SeriesData): SeriesData {\n const list = new SeriesData(\n original._schema\n ? original._schema\n : map(original.dimensions, original._getDimensionInfo, original),\n original.hostModel\n );\n // FIXME If needs stackedOn, value may already been stacked\n transferProperties(list, original);\n return list;\n };\n\n transferProperties = function (target: SeriesData, source: SeriesData): void {\n zrUtil.each(\n TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []),\n function (propName) {\n if (source.hasOwnProperty(propName)) {\n (target as any)[propName] = (source as any)[propName];\n }\n }\n );\n\n target.__wrappedMethods = source.__wrappedMethods;\n\n zrUtil.each(CLONE_PROPERTIES, function (propName) {\n (target as any)[propName] = zrUtil.clone((source as any)[propName]);\n });\n\n target._calculationInfo = zrUtil.extend({}, source._calculationInfo);\n };\n makeIdFromName = function (data: SeriesData, idx: number): void {\n const nameList = data._nameList;\n const idList = data._idList;\n const nameDimIdx = data._nameDimIdx;\n const idDimIdx = data._idDimIdx;\n\n let name = nameList[idx];\n let id = idList[idx];\n\n if (name == null && nameDimIdx != null) {\n nameList[idx] = name = getIdNameFromStore(data, nameDimIdx, idx);\n }\n if (id == null && idDimIdx != null) {\n idList[idx] = id = getIdNameFromStore(data, idDimIdx, idx);\n }\n if (id == null && name != null) {\n const nameRepeatCount = data._nameRepeatCount;\n const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1;\n id = name;\n if (nmCnt > 1) {\n id += '__ec__' + nmCnt;\n }\n idList[idx] = id;\n }\n };\n })();\n\n}\n\ninterface SeriesData {\n getLinkedData(dataType?: SeriesDataType): SeriesData;\n getLinkedDataAll(): { data: SeriesData, type?: SeriesDataType }[];\n}\n\nexport default SeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module exposes helper functions for developing extensions.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesData from '../../chart/helper/createSeriesData';\n// import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge';\nimport * as axisHelper from '../../coord/axisHelper';\nimport {AxisModelCommonMixin} from '../../coord/axisModelCommonMixin';\nimport Model from '../../model/Model';\nimport {getLayoutRect} from '../../util/layout';\nimport {\n enableDataStack,\n isDimensionStacked,\n getStackedDimension\n} from '../../data/helper/dataStackHelper';\nimport SeriesModel from '../../model/Series';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle as innerCreateTextStyle } from '../../label/labelStyle';\nimport { DisplayState, TextCommonOption } from '../../util/types';\n\n/**\n * Create a muti dimension List structure from seriesModel.\n */\nexport function createList(seriesModel: SeriesModel) {\n return createSeriesData(null, seriesModel);\n}\n\n// export function createGraph(seriesModel) {\n// let nodes = seriesModel.get('data');\n// let links = seriesModel.get('links');\n// return createGraphFromNodeEdge(nodes, links, seriesModel);\n// }\n\nexport {getLayoutRect};\n\nexport {legacyCreateDimensions as createDimensions} from '../../data/helper/createDimensions';\n\nexport const dataStack = {\n isDimensionStacked: isDimensionStacked,\n enableDataStack: enableDataStack,\n getStackedDimension: getStackedDimension\n};\n\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n * @param {string} symbolDesc\n * @param {number} x\n * @param {number} y\n * @param {number} w\n * @param {number} h\n * @param {string} color\n */\nexport {createSymbol} from '../../util/symbol';\n\n/**\n * Create scale\n * @param {Array.} dataExtent\n * @param {Object|module:echarts/Model} option If `optoin.type`\n * is secified, it can only be `'value'` currently.\n */\nexport function createScale(dataExtent: number[], option: object | AxisBaseModel) {\n let axisModel = option;\n if (!(option instanceof Model)) {\n axisModel = new Model(option);\n // FIXME\n // Currently AxisModelCommonMixin has nothing to do with the\n // the requirements of `axisHelper.createScaleByModel`. For\n // example the method `getCategories` and `getOrdinalMeta`\n // are required for `'category'` axis, and ecModel are required\n // for `'time'` axis. But occationally echarts-gl happened\n // to only use `'value'` axis.\n // zrUtil.mixin(axisModel, AxisModelCommonMixin);\n }\n\n const scale = axisHelper.createScaleByModel(axisModel as AxisBaseModel);\n scale.setExtent(dataExtent[0], dataExtent[1]);\n\n axisHelper.niceScaleExtent(scale, axisModel as AxisBaseModel);\n return scale;\n}\n\n/**\n * Mixin common methods to axis model,\n *\n * Inlcude methods\n * `getFormattedLabels() => Array.`\n * `getCategories() => Array.`\n * `getMin(origin: boolean) => number`\n * `getMax(origin: boolean) => number`\n * `getNeedCrossZero() => boolean`\n */\nexport function mixinAxisModelCommonMethods(Model: Model) {\n zrUtil.mixin(Model, AxisModelCommonMixin);\n}\n\nexport {getECData};\n\nexport {enableHoverEmphasis} from '../../util/states';\n\nexport function createTextStyle(\n textStyleModel: Model,\n opts?: {\n // For which state this textStyle is for.\n state?: DisplayState\n }\n) {\n opts = opts || {};\n return innerCreateTextStyle(textStyleModel, null, null, opts.state !== 'normal');\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DimensionDefinitionLoose, OptionEncode, OptionEncodeValue,\n EncodeDefaulter,\n OptionSourceData,\n DimensionName,\n DimensionDefinition,\n DataVisualDimensions,\n DimensionIndex,\n VISUAL_DIMENSIONS\n} from '../../util/types';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport {\n createHashMap, defaults, each, extend, HashMap, isObject, isString\n} from 'zrender/src/core/util';\nimport OrdinalMeta from '../OrdinalMeta';\nimport { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source';\nimport { CtorInt32Array } from '../DataStorage';\nimport { normalizeToArray } from '../../util/model';\nimport { BE_ORDINAL, guessOrdinal } from './sourceHelper';\nimport {\n createDimNameMap, ensureSourceDimNameMap, SeriesDataSchema, shouldOmitUnusedDimensions\n} from './SeriesDataSchema';\n\n\nexport interface CoordDimensionDefinition extends DimensionDefinition {\n dimsDef?: (DimensionName | { name: DimensionName, defaultTooltip?: boolean })[];\n otherDims?: DataVisualDimensions;\n ordinalMeta?: OrdinalMeta;\n coordDim?: DimensionName;\n coordDimIndex?: DimensionIndex;\n}\nexport type CoordDimensionDefinitionLoose = CoordDimensionDefinition['name'] | CoordDimensionDefinition;\n\nexport type CreateDimensionsParams = {\n coordDimensions?: CoordDimensionDefinitionLoose[],\n /**\n * Will use `source.dimensionsDefine` if not given.\n */\n dimensionsDefine?: DimensionDefinitionLoose[],\n /**\n * Will use `source.encodeDefine` if not given.\n */\n encodeDefine?: HashMap | OptionEncode,\n dimensionsCount?: number,\n /**\n * Make default encode if user not specified.\n */\n encodeDefaulter?: EncodeDefaulter,\n generateCoord?: string,\n generateCoordCount?: number,\n\n /**\n * If be able to omit unused dimension\n * Used to improve the performance on high dimension data.\n */\n canOmitUnusedDimensions?: boolean\n};\n\n/**\n * For outside usage compat (like echarts-gl are using it).\n */\nexport function legacyCreateDimensions(\n source: Source | OptionSourceData,\n opt?: CreateDimensionsParams\n): SeriesDimensionDefine[] {\n return createDimensions(source, opt).dimensionList;\n}\n\n/**\n * This method builds the relationship between:\n * + \"what the coord sys or series requires (see `coordDimensions`)\",\n * + \"what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)\"\n * + \"what the data source provids (see `source`)\".\n *\n * Some guess strategy will be adapted if user does not define something.\n * If no 'value' dimension specified, the first no-named dimension will be\n * named as 'value'.\n *\n * @return The results are always sorted by `storageDimensionIndex` asc.\n */\nexport default function createDimensions(\n // TODO: TYPE completeDimensions type\n source: Source | OptionSourceData,\n opt?: CreateDimensionsParams\n): SeriesDataSchema {\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source as OptionSourceData);\n }\n\n opt = opt || {};\n\n const sysDims = opt.coordDimensions || [];\n const dimsDef = opt.dimensionsDefine || source.dimensionsDefine || [];\n const coordDimNameMap = createHashMap();\n const resultList: SeriesDimensionDefine[] = [];\n const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount);\n\n // Try to ignore unsed dimensions if sharing a high dimension datastorage\n // 30 is an experience value.\n const omitUnusedDimensions = opt.canOmitUnusedDimensions && shouldOmitUnusedDimensions(dimCount);\n\n const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine;\n const dataDimNameMap = isUsingSourceDimensionsDef\n ? ensureSourceDimNameMap(source) : createDimNameMap(dimsDef);\n\n let encodeDef = opt.encodeDefine;\n if (!encodeDef && opt.encodeDefaulter) {\n encodeDef = opt.encodeDefaulter(source, dimCount);\n }\n const encodeDefMap = createHashMap(encodeDef as any);\n\n const indicesMap = new CtorInt32Array(dimCount);\n for (let i = 0; i < indicesMap.length; i++) {\n indicesMap[i] = -1;\n }\n\n function getResultItem(dimIdx: number) {\n const idx = indicesMap[dimIdx];\n if (idx < 0) {\n const dimDefItemRaw = dimsDef[dimIdx];\n const dimDefItem = isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw };\n const resultItem = new SeriesDimensionDefine();\n const userDimName = dimDefItem.name;\n if (userDimName != null && dataDimNameMap.get(userDimName) != null) {\n // Only if `series.dimensions` is defined in option\n // displayName, will be set, and dimension will be diplayed vertically in\n // tooltip by default.\n resultItem.name = resultItem.displayName = userDimName;\n }\n dimDefItem.type != null && (resultItem.type = dimDefItem.type);\n dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName);\n const newIdx = resultList.length;\n indicesMap[dimIdx] = newIdx;\n resultItem.storageDimensionIndex = dimIdx;\n resultList.push(resultItem);\n return resultItem;\n }\n return resultList[idx];\n }\n\n if (!omitUnusedDimensions) {\n for (let i = 0; i < dimCount; i++) {\n getResultItem(i);\n }\n }\n\n // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.\n encodeDefMap.each(function (dataDimsRaw, coordDim) {\n const dataDims = normalizeToArray(dataDimsRaw as []).slice();\n\n // Note: It is allowed that `dataDims.length` is `0`, e.g., options is\n // `{encode: {x: -1, y: 1}}`. Should not filter anything in\n // this case.\n if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {\n encodeDefMap.set(coordDim, false);\n return;\n }\n\n const validDataDims = encodeDefMap.set(coordDim, []) as DimensionIndex[];\n each(dataDims, function (resultDimIdxOrName, idx) {\n // The input resultDimIdx can be dim name or index.\n const resultDimIdx = isString(resultDimIdxOrName)\n ? dataDimNameMap.get(resultDimIdxOrName)\n : resultDimIdxOrName;\n if (resultDimIdx != null && resultDimIdx < dimCount) {\n validDataDims[idx] = resultDimIdx;\n applyDim(getResultItem(resultDimIdx), coordDim, idx);\n }\n });\n });\n\n // Apply templetes and default order from `sysDims`.\n let availDimIdx = 0;\n each(sysDims, function (sysDimItemRaw) {\n let coordDim: DimensionName;\n let sysDimItemDimsDef: CoordDimensionDefinition['dimsDef'];\n let sysDimItemOtherDims: CoordDimensionDefinition['otherDims'];\n let sysDimItem: CoordDimensionDefinition;\n if (isString(sysDimItemRaw)) {\n coordDim = sysDimItemRaw;\n sysDimItem = {} as CoordDimensionDefinition;\n }\n else {\n sysDimItem = sysDimItemRaw;\n coordDim = sysDimItem.name;\n const ordinalMeta = sysDimItem.ordinalMeta;\n sysDimItem.ordinalMeta = null;\n sysDimItem = extend({}, sysDimItem);\n sysDimItem.ordinalMeta = ordinalMeta;\n // `coordDimIndex` should not be set directly.\n sysDimItemDimsDef = sysDimItem.dimsDef;\n sysDimItemOtherDims = sysDimItem.otherDims;\n sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex =\n sysDimItem.dimsDef = sysDimItem.otherDims = null;\n }\n\n let dataDims = encodeDefMap.get(coordDim);\n\n // negative resultDimIdx means no need to mapping.\n if (dataDims === false) {\n return;\n }\n\n dataDims = normalizeToArray(dataDims);\n\n // dimensions provides default dim sequences.\n if (!dataDims.length) {\n for (let i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {\n while (availDimIdx < dimCount && getResultItem(availDimIdx).coordDim != null) {\n availDimIdx++;\n }\n availDimIdx < dimCount && dataDims.push(availDimIdx++);\n }\n }\n\n // Apply templates.\n each(dataDims, function (resultDimIdx, coordDimIndex) {\n const resultItem = getResultItem(resultDimIdx);\n // Coordinate system has a higher priority on dim type than source.\n if (isUsingSourceDimensionsDef && sysDimItem.type != null) {\n resultItem.type = sysDimItem.type;\n }\n applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex);\n if (resultItem.name == null && sysDimItemDimsDef) {\n let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex];\n !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {\n name: sysDimItemDimsDefItem\n });\n resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name;\n resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip;\n }\n // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}\n sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims);\n });\n });\n\n function applyDim(resultItem: SeriesDimensionDefine, coordDim: DimensionName, coordDimIndex: DimensionIndex) {\n if (VISUAL_DIMENSIONS.get(coordDim as keyof DataVisualDimensions) != null) {\n resultItem.otherDims[coordDim as keyof DataVisualDimensions] = coordDimIndex;\n }\n else {\n resultItem.coordDim = coordDim;\n resultItem.coordDimIndex = coordDimIndex;\n coordDimNameMap.set(coordDim, true);\n }\n }\n\n // Make sure the first extra dim is 'value'.\n const generateCoord = opt.generateCoord;\n let generateCoordCount = opt.generateCoordCount;\n const fromZero = generateCoordCount != null;\n generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0;\n const extra = generateCoord || 'value';\n\n function ifNoNameFillWithCoordName(resultItem: SeriesDimensionDefine): void {\n if (resultItem.name == null) {\n // Duplication will be removed in the next step.\n resultItem.name = resultItem.coordDim;\n }\n }\n\n // Set dim `name` and other `coordDim` and other props.\n if (!omitUnusedDimensions) {\n for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {\n const resultItem = getResultItem(resultDimIdx);\n const coordDim = resultItem.coordDim;\n\n if (coordDim == null) {\n // TODO no need to generate coordDim for isExtraCoord?\n resultItem.coordDim = genCoordDimName(\n extra, coordDimNameMap, fromZero\n );\n\n resultItem.coordDimIndex = 0;\n // Series specified generateCoord is using out.\n if (!generateCoord || generateCoordCount <= 0) {\n resultItem.isExtraCoord = true;\n }\n generateCoordCount--;\n }\n\n ifNoNameFillWithCoordName(resultItem);\n\n if (resultItem.type == null\n && (\n guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must\n // Consider the case:\n // {\n // dataset: {source: [\n // ['2001', 123],\n // ['2002', 456],\n // ...\n // ['The others', 987],\n // ]},\n // series: {type: 'pie'}\n // }\n // The first colum should better be treated as a \"ordinal\" although it\n // might not able to be detected as an \"ordinal\" by `guessOrdinal`.\n || (resultItem.isExtraCoord\n && (resultItem.otherDims.itemName != null\n || resultItem.otherDims.seriesName != null\n )\n )\n )\n ) {\n resultItem.type = 'ordinal';\n }\n }\n }\n else {\n each(resultList, resultItem => {\n // PENDING: guessOrdinal or let user specify type: 'ordinal' manually?\n ifNoNameFillWithCoordName(resultItem);\n });\n // Sort dimensions: there are some rule that use the last dim as label,\n // and for some latter travel process easier.\n resultList.sort((item0, item1) => item0.storageDimensionIndex - item1.storageDimensionIndex);\n }\n\n removeDuplication(resultList);\n\n return new SeriesDataSchema({\n source,\n dimensionList: resultList,\n fullDimensionCount: dimCount,\n dimensionOmitted: omitUnusedDimensions\n });\n}\n\nfunction removeDuplication(result: SeriesDimensionDefine[]) {\n const duplicationMap = createHashMap();\n for (let i = 0; i < result.length; i++) {\n const dim = result[i];\n const dimOriginalName = dim.name;\n let count = duplicationMap.get(dimOriginalName) || 0;\n if (count > 0) {\n // Starts from 0.\n dim.name = dimOriginalName + (count - 1);\n }\n count++;\n duplicationMap.set(dimOriginalName, count);\n }\n}\n\n// ??? TODO\n// Originally detect dimCount by data[0]. Should we\n// optimize it to only by sysDims and dimensions and encode.\n// So only necessary dims will be initialized.\n// But\n// (1) custom series should be considered. where other dims\n// may be visited.\n// (2) sometimes user need to calcualte bubble size or use visualMap\n// on other dimensions besides coordSys needed.\n// So, dims that is not used by system, should be shared in storage?\nfunction getDimCount(\n source: Source,\n sysDims: CoordDimensionDefinitionLoose[],\n dimsDef: DimensionDefinitionLoose[],\n optDimCount?: number\n): number {\n // Note that the result dimCount should not small than columns count\n // of data, otherwise `dataDimNameMap` checking will be incorrect.\n let dimCount = Math.max(\n source.dimensionsDetectedCount || 1,\n sysDims.length,\n dimsDef.length,\n optDimCount || 0\n );\n each(sysDims, function (sysDimItem) {\n let sysDimItemDimsDef;\n if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {\n dimCount = Math.max(dimCount, sysDimItemDimsDef.length);\n }\n });\n return dimCount;\n}\n\nfunction genCoordDimName(\n name: DimensionName,\n map: HashMap,\n fromZero: boolean\n) {\n const mapData = map.data;\n if (fromZero || mapData.hasOwnProperty(name)) {\n let i = 0;\n while (mapData.hasOwnProperty(name + i)) {\n i++;\n }\n name += i;\n }\n map.set(name, true);\n return name;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Helper for model references.\n * There are many manners to refer axis/coordSys.\n */\n\n// TODO\n// merge relevant logic to this file?\n// check: \"modelHelper\" of tooltip and \"BrushTargetManager\".\n\nimport {createHashMap, retrieve, each, HashMap} from 'zrender/src/core/util';\nimport SeriesModel from './Series';\nimport type PolarModel from '../coord/polar/PolarModel';\nimport type { SeriesOption, SeriesOnCartesianOptionMixin } from '../util/types';\nimport type { AxisBaseModel } from '../coord/AxisBaseModel';\nimport { SINGLE_REFERRING } from '../util/model';\nimport { ParallelSeriesOption } from '../chart/parallel/ParallelSeries';\nimport ParallelModel from '../coord/parallel/ParallelModel';\nimport ParallelAxisModel from '../coord/parallel/AxisModel';\n\n/**\n * @class\n * For example:\n * {\n * coordSysName: 'cartesian2d',\n * coordSysDims: ['x', 'y', ...],\n * axisMap: HashMap({\n * x: xAxisModel,\n * y: yAxisModel\n * }),\n * categoryAxisMap: HashMap({\n * x: xAxisModel,\n * y: undefined\n * }),\n * // The index of the first category axis in `coordSysDims`.\n * // `null/undefined` means no category axis exists.\n * firstCategoryDimIndex: 1,\n * // To replace user specified encode.\n * }\n */\n\nclass CoordSysInfo {\n\n coordSysName: string;\n\n coordSysDims: string[] = [];\n\n axisMap = createHashMap();\n\n categoryAxisMap = createHashMap();\n\n firstCategoryDimIndex: number;\n\n constructor(coordSysName: string) {\n this.coordSysName = coordSysName;\n }\n}\n\ntype SupportedCoordSys = 'cartesian2d' | 'polar' | 'singleAxis' | 'geo' | 'parallel';\ntype Fetcher = (\n seriesModel: SeriesModel,\n result: CoordSysInfo,\n axisMap: HashMap,\n categoryAxisMap: HashMap\n) => void;\n\nexport function getCoordSysInfoBySeries(seriesModel: SeriesModel) {\n const coordSysName = seriesModel.get('coordinateSystem') as SupportedCoordSys;\n const result = new CoordSysInfo(coordSysName);\n const fetch = fetchers[coordSysName];\n if (fetch) {\n fetch(seriesModel, result, result.axisMap, result.categoryAxisMap);\n return result;\n }\n}\n\nconst fetchers: Record = {\n\n cartesian2d: function (\n seriesModel: SeriesModel, result, axisMap, categoryAxisMap\n ) {\n const xAxisModel = seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0] as AxisBaseModel;\n const yAxisModel = seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0] as AxisBaseModel;\n\n if (__DEV__) {\n if (!xAxisModel) {\n throw new Error('xAxis \"' + retrieve(\n seriesModel.get('xAxisIndex'),\n seriesModel.get('xAxisId'),\n 0\n ) + '\" not found');\n }\n if (!yAxisModel) {\n throw new Error('yAxis \"' + retrieve(\n seriesModel.get('xAxisIndex'),\n seriesModel.get('yAxisId'),\n 0\n ) + '\" not found');\n }\n }\n\n result.coordSysDims = ['x', 'y'];\n axisMap.set('x', xAxisModel);\n axisMap.set('y', yAxisModel);\n\n if (isCategory(xAxisModel)) {\n categoryAxisMap.set('x', xAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n if (isCategory(yAxisModel)) {\n categoryAxisMap.set('y', yAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n\n singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) {\n const singleAxisModel = seriesModel.getReferringComponents(\n 'singleAxis', SINGLE_REFERRING\n ).models[0] as AxisBaseModel;\n\n if (__DEV__) {\n if (!singleAxisModel) {\n throw new Error('singleAxis should be specified.');\n }\n }\n\n result.coordSysDims = ['single'];\n axisMap.set('single', singleAxisModel);\n\n if (isCategory(singleAxisModel)) {\n categoryAxisMap.set('single', singleAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n },\n\n polar: function (seriesModel, result, axisMap, categoryAxisMap) {\n const polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0] as PolarModel;\n const radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n const angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n if (__DEV__) {\n if (!angleAxisModel) {\n throw new Error('angleAxis option not found');\n }\n if (!radiusAxisModel) {\n throw new Error('radiusAxis option not found');\n }\n }\n\n result.coordSysDims = ['radius', 'angle'];\n axisMap.set('radius', radiusAxisModel);\n axisMap.set('angle', angleAxisModel);\n\n if (isCategory(radiusAxisModel)) {\n categoryAxisMap.set('radius', radiusAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n if (isCategory(angleAxisModel)) {\n categoryAxisMap.set('angle', angleAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n\n geo: function (seriesModel, result, axisMap, categoryAxisMap) {\n result.coordSysDims = ['lng', 'lat'];\n },\n\n parallel: function (seriesModel, result, axisMap, categoryAxisMap) {\n const ecModel = seriesModel.ecModel;\n const parallelModel = ecModel.getComponent(\n 'parallel', (seriesModel as SeriesModel).get('parallelIndex')\n ) as ParallelModel;\n const coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();\n\n each(parallelModel.parallelAxisIndex, function (axisIndex, index) {\n const axisModel = ecModel.getComponent('parallelAxis', axisIndex) as ParallelAxisModel;\n const axisDim = coordSysDims[index];\n axisMap.set(axisDim, axisModel);\n\n if (isCategory(axisModel)) {\n categoryAxisMap.set(axisDim, axisModel);\n if (result.firstCategoryDimIndex == null) {\n result.firstCategoryDimIndex = index;\n }\n }\n });\n }\n};\n\nfunction isCategory(axisModel: AxisBaseModel) {\n return axisModel.get('type') === 'category';\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, isString} from 'zrender/src/core/util';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport SeriesModel from '../../model/Series';\nimport SeriesData, { DataCalculationInfo } from '../SeriesData';\nimport type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types';\nimport { isSeriesDataSchema, SeriesDataSchema } from './SeriesDataSchema';\nimport DataStorage from '../DataStorage';\n\ntype EnableDataStackDimensionsInput = {\n schema: SeriesDataSchema;\n // If given, stack dimension will be ensured on this storage.\n // Otherwise, stack dimesnion will be appended at the tail, and should not\n // be used on a shared storage, but should create a brand new stroage later.\n storage?: DataStorage;\n};\ntype EnableDataStackDimensionsInputLegacy = (SeriesDimensionDefine | string)[];\n\n/**\n * Note that it is too complicated to support 3d stack by value\n * (have to create two-dimension inverted index), so in 3d case\n * we just support that stacked by index.\n *\n * @param seriesModel\n * @param dimensionsInput The same as the input of .\n * The input will be modified.\n * @param opt\n * @param opt.stackedCoordDimension Specify a coord dimension if needed.\n * @param opt.byIndex=false\n * @return calculationInfo\n * {\n * stackedDimension: string\n * stackedByDimension: string\n * isStackedByIndex: boolean\n * stackedOverDimension: string\n * stackResultDimension: string\n * }\n */\nexport function enableDataStack(\n seriesModel: SeriesModel,\n dimensionsInput: EnableDataStackDimensionsInput | EnableDataStackDimensionsInputLegacy,\n opt?: {\n // Backward compat\n stackedCoordDimension?: string\n byIndex?: boolean\n }\n): Pick<\n DataCalculationInfo,\n 'stackedDimension'\n | 'stackedByDimension'\n | 'isStackedByIndex'\n | 'stackedOverDimension'\n | 'stackResultDimension'\n> {\n opt = opt || {};\n let byIndex = opt.byIndex;\n const stackedCoordDimension = opt.stackedCoordDimension;\n\n let dimensionDefineList: EnableDataStackDimensionsInputLegacy;\n let schema: SeriesDataSchema;\n let storage: DataStorage;\n\n if (isLegacyDimensionsInput(dimensionsInput)) {\n dimensionDefineList = dimensionsInput;\n }\n else {\n schema = dimensionsInput.schema;\n dimensionDefineList = schema.dimensionList;\n storage = dimensionsInput.storage;\n }\n\n // Compatibal: when `stack` is set as '', do not stack.\n const mayStack = !!(seriesModel && seriesModel.get('stack'));\n let stackedByDimInfo: SeriesDimensionDefine;\n let stackedDimInfo: SeriesDimensionDefine;\n let stackResultDimension: string;\n let stackedOverDimension: string;\n\n each(dimensionDefineList, function (dimensionInfo, index) {\n if (isString(dimensionInfo)) {\n dimensionDefineList[index] = dimensionInfo = {\n name: dimensionInfo as string\n } as SeriesDimensionDefine;\n }\n\n if (mayStack && !dimensionInfo.isExtraCoord) {\n // Find the first ordinal dimension as the stackedByDimInfo.\n if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) {\n stackedByDimInfo = dimensionInfo;\n }\n // Find the first stackable dimension as the stackedDimInfo.\n if (!stackedDimInfo\n && dimensionInfo.type !== 'ordinal'\n && dimensionInfo.type !== 'time'\n && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)\n ) {\n stackedDimInfo = dimensionInfo;\n }\n }\n });\n\n if (stackedDimInfo && !byIndex && !stackedByDimInfo) {\n // Compatible with previous design, value axis (time axis) only stack by index.\n // It may make sense if the user provides elaborately constructed data.\n byIndex = true;\n }\n\n // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.\n // That put stack logic in List is for using conveniently in echarts extensions, but it\n // might not be a good way.\n if (stackedDimInfo) {\n // Use a weird name that not duplicated with other names.\n // Also need to use seriesModel.id as postfix because different\n // series may share same data storage. The stack dimension needs to be distinguished.\n stackResultDimension = '__\\0ecstackresult_' + seriesModel.id;\n stackedOverDimension = '__\\0ecstackedover_' + seriesModel.id;\n\n // Create inverted index to fast query index by value.\n if (stackedByDimInfo) {\n stackedByDimInfo.createInvertedIndices = true;\n }\n\n const stackedDimCoordDim = stackedDimInfo.coordDim;\n const stackedDimType = stackedDimInfo.type;\n let stackedDimCoordIndex = 0;\n\n each(dimensionDefineList, function (dimensionInfo: SeriesDimensionDefine) {\n if (dimensionInfo.coordDim === stackedDimCoordDim) {\n stackedDimCoordIndex++;\n }\n });\n\n const stackedOverDimensionDefine: SeriesDimensionDefine = {\n name: stackResultDimension,\n coordDim: stackedDimCoordDim,\n coordDimIndex: stackedDimCoordIndex,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true,\n storageDimensionIndex: dimensionDefineList.length\n };\n\n const stackResultDimensionDefine: SeriesDimensionDefine = {\n name: stackedOverDimension,\n // This dimension contains stack base (generally, 0), so do not set it as\n // `stackedDimCoordDim` to avoid extent calculation, consider log scale.\n coordDim: stackedOverDimension,\n coordDimIndex: stackedDimCoordIndex + 1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true,\n storageDimensionIndex: dimensionDefineList.length + 1\n };\n\n if (schema) {\n if (storage) {\n stackedOverDimensionDefine.storageDimensionIndex =\n storage.ensureCalculationDimension(stackedOverDimension, stackedDimType);\n stackResultDimensionDefine.storageDimensionIndex =\n storage.ensureCalculationDimension(stackResultDimension, stackedDimType);\n }\n\n schema.appendCalculationDimension(stackedOverDimensionDefine);\n schema.appendCalculationDimension(stackResultDimensionDefine);\n }\n else {\n dimensionDefineList.push(stackedOverDimensionDefine);\n dimensionDefineList.push(stackResultDimensionDefine);\n }\n }\n\n return {\n stackedDimension: stackedDimInfo && stackedDimInfo.name,\n stackedByDimension: stackedByDimInfo && stackedByDimInfo.name,\n isStackedByIndex: byIndex,\n stackedOverDimension: stackedOverDimension,\n stackResultDimension: stackResultDimension\n };\n}\n\nfunction isLegacyDimensionsInput(\n dimensionsInput: Parameters[1]\n): dimensionsInput is EnableDataStackDimensionsInputLegacy {\n return !isSeriesDataSchema((dimensionsInput as EnableDataStackDimensionsInput).schema);\n}\n\nexport function isDimensionStacked(data: SeriesData, stackedDim: string): boolean {\n // Each single series only maps to one pair of axis. So we do not need to\n // check stackByDim, whatever stacked by a dimension or stacked by index.\n return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension');\n}\n\nexport function getStackedDimension(data: SeriesData, targetDim: string): DimensionName {\n return isDimensionStacked(data, targetDim)\n ? data.getCalculationInfo('stackResultDimension')\n : targetDim;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport createDimensions from '../../data/helper/createDimensions';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport {getDataItemValue} from '../../util/model';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {getCoordSysInfoBySeries} from '../../model/referHelper';\nimport { createSourceFromSeriesDataOption, Source } from '../../data/Source';\nimport {enableDataStack} from '../../data/helper/dataStackHelper';\nimport {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper';\nimport {\n SOURCE_FORMAT_ORIGINAL,\n DimensionDefinitionLoose,\n DimensionDefinition,\n OptionSourceData,\n EncodeDefaulter\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport DataStorage from '../../data/DataStorage';\nimport SeriesDimensionDefine from '../../data/SeriesDimensionDefine';\n\nfunction getCoordSysDimDefs(\n seriesModel: SeriesModel,\n coordSysInfo: ReturnType\n) {\n const coordSysName = seriesModel.get('coordinateSystem');\n const registeredCoordSys = CoordinateSystem.get(coordSysName);\n\n let coordSysDimDefs: DimensionDefinitionLoose[];\n\n if (coordSysInfo && coordSysInfo.coordSysDims) {\n coordSysDimDefs = zrUtil.map(coordSysInfo.coordSysDims, function (dim) {\n const dimInfo = {\n name: dim\n } as DimensionDefinition;\n const axisModel = coordSysInfo.axisMap.get(dim);\n if (axisModel) {\n const axisType = axisModel.get('type');\n dimInfo.type = getDimensionTypeByAxis(axisType);\n }\n return dimInfo;\n });\n }\n\n if (!coordSysDimDefs) {\n // Get dimensions from registered coordinate system\n coordSysDimDefs = (registeredCoordSys && (\n registeredCoordSys.getDimensionsInfo\n ? registeredCoordSys.getDimensionsInfo()\n : registeredCoordSys.dimensions.slice()\n )) || ['x', 'y'];\n }\n\n return coordSysDimDefs;\n}\n\nfunction injectOrdinalMeta(\n dimInfoList: SeriesDimensionDefine[],\n createInvertedIndices: boolean,\n coordSysInfo: ReturnType\n) {\n let firstCategoryDimIndex: number;\n let hasNameEncode: boolean;\n coordSysInfo && zrUtil.each(dimInfoList, function (dimInfo, dimIndex) {\n const coordDim = dimInfo.coordDim;\n const categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);\n if (categoryAxisModel) {\n if (firstCategoryDimIndex == null) {\n firstCategoryDimIndex = dimIndex;\n }\n dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();\n if (createInvertedIndices) {\n dimInfo.createInvertedIndices = true;\n }\n }\n if (dimInfo.otherDims.itemName != null) {\n hasNameEncode = true;\n }\n });\n if (!hasNameEncode && firstCategoryDimIndex != null) {\n dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;\n }\n return firstCategoryDimIndex;\n}\n\n/**\n * Caution: there are side effects to `sourceManager` in this method.\n * Should better only be called in `Series['getInitialData']`.\n */\nfunction createSeriesData(\n sourceRaw: OptionSourceData | null | undefined,\n seriesModel: SeriesModel,\n opt?: {\n generateCoord?: string\n useEncodeDefaulter?: boolean | EncodeDefaulter\n // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys.\n createInvertedIndices?: boolean\n }\n): SeriesData {\n opt = opt || {};\n\n const sourceManager = seriesModel.getSourceManager();\n let source;\n let isOriginalSource = false;\n if (sourceRaw) {\n isOriginalSource = true;\n source = createSourceFromSeriesDataOption(sourceRaw);\n }\n else {\n source = sourceManager.getSource();\n // Is series.data. not dataset.\n isOriginalSource = source.sourceFormat === SOURCE_FORMAT_ORIGINAL;\n }\n const coordSysInfo = getCoordSysInfoBySeries(seriesModel);\n const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo);\n const useEncodeDefaulter = opt.useEncodeDefaulter;\n\n const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter)\n ? useEncodeDefaulter\n : useEncodeDefaulter\n ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel)\n : null;\n const createDimensionOptions = {\n coordDimensions: coordSysDimDefs,\n generateCoord: opt.generateCoord,\n encodeDefine: seriesModel.getEncode(),\n encodeDefaulter: encodeDefaulter,\n canOmitUnusedDimensions: !isOriginalSource\n };\n const schema = createDimensions(source, createDimensionOptions);\n const firstCategoryDimIndex = injectOrdinalMeta(\n schema.dimensionList, opt.createInvertedIndices, coordSysInfo\n );\n\n const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(schema) : null;\n\n const stackCalculationInfo = enableDataStack(seriesModel, { schema, storage });\n\n const data = new SeriesData(schema, seriesModel);\n data.setCalculationInfo(stackCalculationInfo);\n\n const dimValueGetter =\n firstCategoryDimIndex != null\n && isNeedCompleteOrdinalData(source)\n ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) {\n // Use dataIndex as ordinal value in categoryAxis\n return dimIndex === firstCategoryDimIndex\n ? dataIndex\n : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);\n }\n : null;\n\n data.hasItemOption = false;\n data.initData(\n // Try to reuse the data storage in sourceManager if using dataset.\n isOriginalSource ? source : storage,\n null,\n dimValueGetter\n );\n\n return data;\n}\n\nfunction isNeedCompleteOrdinalData(source: Source) {\n if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const sampleItem = firstDataNotNull(source.data as ArrayLike || []);\n return sampleItem != null\n && !zrUtil.isArray(getDataItemValue(sampleItem));\n }\n}\n\nfunction firstDataNotNull(arr: ArrayLike) {\n let i = 0;\n while (i < arr.length && arr[i] == null) {\n i++;\n }\n return arr[i];\n}\n\nexport default createSeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as clazzUtil from '../util/clazz';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesData from '../data/SeriesData';\nimport {\n DimensionName,\n ScaleDataValue,\n OptionDataValue,\n DimensionLoose,\n ScaleTick\n} from '../util/types';\nimport { ScaleRawExtentInfo } from '../coord/scaleRawExtentInfo';\n\n\nabstract class Scale = Dictionary> {\n\n type: string;\n\n private _setting: SETTING;\n\n protected _extent: [number, number];\n\n private _isBlank: boolean;\n\n // Inject\n readonly rawExtentInfo: ScaleRawExtentInfo;\n\n constructor(setting?: SETTING) {\n this._setting = setting || {} as SETTING;\n this._extent = [Infinity, -Infinity];\n }\n\n getSetting(name: KEY): SETTING[KEY] {\n return this._setting[name];\n }\n\n /**\n * Parse input val to valid inner number.\n * Notice: This would be a trap here, If the implementation\n * of this method depends on extent, and this method is used\n * before extent set (like in dataZoom), it would be wrong.\n * Nevertheless, parse does not depend on extent generally.\n */\n abstract parse(val: OptionDataValue): number;\n\n /**\n * Whether contain the given value.\n */\n abstract contain(val: ScaleDataValue): boolean;\n\n /**\n * Normalize value to linear [0, 1], return 0.5 if extent span is 0.\n */\n abstract normalize(val: ScaleDataValue): number;\n\n /**\n * Scale normalized value to extent.\n */\n abstract scale(val: number): number;\n\n /**\n * Set extent from data\n */\n unionExtent(other: [number, number]): void {\n const extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]);\n // not setExtent because in log axis it may transformed to power\n // this.setExtent(extent[0], extent[1]);\n }\n\n /**\n * Set extent from data\n */\n unionExtentFromData(data: SeriesData, dim: DimensionName | DimensionLoose): void {\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * Get extent\n *\n * Extent is always in increase order.\n */\n getExtent(): [number, number] {\n return this._extent.slice() as [number, number];\n }\n\n /**\n * Set extent\n */\n setExtent(start: number, end: number): void {\n const thisExtent = this._extent;\n if (!isNaN(start)) {\n thisExtent[0] = start;\n }\n if (!isNaN(end)) {\n thisExtent[1] = end;\n }\n }\n\n /**\n * If value is in extent range\n */\n isInExtentRange(value: number): boolean {\n return this._extent[0] <= value && this._extent[1] >= value;\n }\n\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n isBlank(): boolean {\n return this._isBlank;\n }\n\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n setBlank(isBlank: boolean) {\n this._isBlank = isBlank;\n }\n\n /**\n * Update interval and extent of intervals for nice ticks\n *\n * @param splitNumber Approximated tick numbers. Optional.\n * The implementation of `niceTicks` should decide tick numbers\n * whether `splitNumber` is given.\n * @param minInterval Optional.\n * @param maxInterval Optional.\n */\n abstract niceTicks(\n // FIXME:TS make them in a \"opt\", the same with `niceExtent`?\n splitNumber?: number,\n minInterval?: number,\n maxInterval?: number\n ): void;\n\n abstract niceExtent(\n opt?: {\n splitNumber?: number,\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }\n ): void;\n\n /**\n * @return label of the tick.\n */\n abstract getLabel(tick: ScaleTick): string;\n\n abstract getTicks(expandToNicedExtent?: boolean): ScaleTick[];\n\n abstract getMinorTicks(splitNumber: number): number[][];\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n\n static getClass: clazzUtil.ClassManager['getClass'];\n}\n\ntype ScaleConstructor = typeof Scale & clazzUtil.ClassManager;\nclazzUtil.enableClassManagement(Scale as ScaleConstructor);\n\nexport default Scale;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, isObject, map, HashMap} from 'zrender/src/core/util';\nimport Model from '../model/Model';\nimport { OrdinalNumber, OrdinalRawValue } from '../util/types';\n\nlet uidBase = 0;\n\nclass OrdinalMeta {\n\n readonly categories: OrdinalRawValue[];\n\n private _needCollect: boolean;\n\n private _deduplication: boolean;\n\n private _map: HashMap;\n\n readonly uid: number;\n\n\n constructor(opt: {\n categories?: OrdinalRawValue[],\n needCollect?: boolean\n deduplication?: boolean\n }) {\n this.categories = opt.categories || [];\n this._needCollect = opt.needCollect;\n this._deduplication = opt.deduplication;\n this.uid = ++uidBase;\n }\n\n static createByAxisModel(axisModel: Model): OrdinalMeta {\n const option = axisModel.option;\n const data = option.data;\n const categories = data && map(data, getName);\n\n return new OrdinalMeta({\n categories: categories,\n needCollect: !categories,\n // deduplication is default in axis.\n deduplication: option.dedplication !== false\n });\n };\n\n getOrdinal(category: OrdinalRawValue): OrdinalNumber {\n // @ts-ignore\n return this._getOrCreateMap().get(category);\n }\n\n /**\n * @return The ordinal. If not found, return NaN.\n */\n parseAndCollect(category: OrdinalRawValue | OrdinalNumber): OrdinalNumber {\n let index;\n const needCollect = this._needCollect;\n\n // The value of category dim can be the index of the given category set.\n // This feature is only supported when !needCollect, because we should\n // consider a common case: a value is 2017, which is a number but is\n // expected to be tread as a category. This case usually happen in dataset,\n // where it happent to be no need of the index feature.\n if (typeof category !== 'string' && !needCollect) {\n return category;\n }\n\n // Optimize for the scenario:\n // category is ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // Notice, if a dataset dimension provide categroies, usually echarts\n // should remove duplication except user tell echarts dont do that\n // (set axis.deduplication = false), because echarts do not know whether\n // the values in the category dimension has duplication (consider the\n // parallel-aqi example)\n if (needCollect && !this._deduplication) {\n index = this.categories.length;\n this.categories[index] = category;\n return index;\n }\n\n const map = this._getOrCreateMap();\n // @ts-ignore\n index = map.get(category);\n\n if (index == null) {\n if (needCollect) {\n index = this.categories.length;\n this.categories[index] = category;\n // @ts-ignore\n map.set(category, index);\n }\n else {\n index = NaN;\n }\n }\n\n return index;\n }\n\n // Consider big data, do not create map until needed.\n private _getOrCreateMap(): HashMap {\n return this._map || (\n this._map = createHashMap(this.categories)\n );\n }\n}\n\nfunction getName(obj: any): string {\n if (isObject(obj) && obj.value != null) {\n return obj.value;\n }\n else {\n return obj + '';\n }\n}\n\nexport default OrdinalMeta;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as numberUtil from '../util/number';\n\nconst roundNumber = numberUtil.round;\n\ntype intervalScaleNiceTicksResult = {\n interval: number,\n intervalPrecision: number,\n niceTickExtent: [number, number]\n};\n/**\n * @param extent Both extent[0] and extent[1] should be valid number.\n * Should be extent[0] < extent[1].\n * @param splitNumber splitNumber should be >= 1.\n */\nexport function intervalScaleNiceTicks(\n extent: [number, number],\n splitNumber: number,\n minInterval?: number,\n maxInterval?: number\n): intervalScaleNiceTicksResult {\n\n const result = {} as intervalScaleNiceTicksResult;\n\n const span = extent[1] - extent[0];\n let interval = result.interval = numberUtil.nice(span / splitNumber, true);\n if (minInterval != null && interval < minInterval) {\n interval = result.interval = minInterval;\n }\n if (maxInterval != null && interval > maxInterval) {\n interval = result.interval = maxInterval;\n }\n // Tow more digital for tick.\n const precision = result.intervalPrecision = getIntervalPrecision(interval);\n // Niced extent inside original extent\n const niceTickExtent = result.niceTickExtent = [\n roundNumber(Math.ceil(extent[0] / interval) * interval, precision),\n roundNumber(Math.floor(extent[1] / interval) * interval, precision)\n ];\n\n fixExtent(niceTickExtent, extent);\n\n return result;\n}\n\n/**\n * @return interval precision\n */\nexport function getIntervalPrecision(interval: number): number {\n // Tow more digital for tick.\n return numberUtil.getPrecision(interval) + 2;\n}\n\nfunction clamp(\n niceTickExtent: [number, number], idx: number, extent: [number, number]\n): void {\n niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);\n}\n\n// In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.\nexport function fixExtent(\n niceTickExtent: [number, number], extent: [number, number]\n): void {\n !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);\n !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);\n clamp(niceTickExtent, 0, extent);\n clamp(niceTickExtent, 1, extent);\n if (niceTickExtent[0] > niceTickExtent[1]) {\n niceTickExtent[0] = niceTickExtent[1];\n }\n}\n\nexport function contain(val: number, extent: [number, number]): boolean {\n return val >= extent[0] && val <= extent[1];\n}\n\nexport function normalize(val: number, extent: [number, number]): number {\n if (extent[1] === extent[0]) {\n return 0.5;\n }\n return (val - extent[0]) / (extent[1] - extent[0]);\n}\n\nexport function scale(val: number, extent: [number, number]): number {\n return val * (extent[1] - extent[0]) + extent[0];\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Linear continuous scale\n * http://en.wikipedia.org/wiki/Level_of_measurement\n */\n\n// FIXME only one data\n\nimport Scale from './Scale';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport SeriesData from '../data/SeriesData';\nimport * as scaleHelper from './helper';\nimport {\n OrdinalRawValue,\n OrdinalNumber,\n DimensionLoose,\n OrdinalSortInfo,\n OrdinalScaleTick,\n ScaleTick\n} from '../util/types';\nimport { AxisBaseOption } from '../coord/axisCommonTypes';\nimport { isArray, map, isObject } from 'zrender/src/core/util';\n\ntype OrdinalScaleSetting = {\n ordinalMeta?: OrdinalMeta | AxisBaseOption['data'];\n extent?: [number, number];\n};\n\nclass OrdinalScale extends Scale {\n\n static type = 'ordinal';\n readonly type = 'ordinal';\n\n private _ordinalMeta: OrdinalMeta;\n\n /**\n * For example:\n * Given original ordinal data:\n * ```js\n * option = {\n * xAxis: {\n * // Their raw ordinal numbers are:\n * // 0 1 2 3 4 5\n * data: ['a', 'b', 'c', 'd', 'e', 'f']\n * },\n * yAxis: {}\n * series: {\n * type: 'bar',\n * data: [\n * ['d', 110], // ordinalNumber: 3\n * ['c', 660], // ordinalNumber: 2\n * ['f', 220], // ordinalNumber: 5\n * ['e', 550] // ordinalNumber: 4\n * ],\n * realtimeSort: true\n * }\n * };\n * ```\n * After realtime sorted (order by yValue desc):\n * ```js\n * _ordinalNumbersByTick: [\n * 2, // tick: 0, yValue: 660\n * 5, // tick: 1, yValue: 220\n * 3, // tick: 2, yValue: 110\n * 4, // tick: 3, yValue: 550\n * 0, // tick: 4, yValue: -\n * 1, // tick: 5, yValue: -\n * ],\n * _ticksByOrdinalNumber: [\n * 4, // ordinalNumber: 0, yValue: -\n * 5, // ordinalNumber: 1, yValue: -\n * 0, // ordinalNumber: 2, yValue: 660\n * 2, // ordinalNumber: 3, yValue: 110\n * 3, // ordinalNumber: 4, yValue: 550\n * 1, // ordinalNumber: 5, yValue: 220\n * ]\n * ```\n * The index of this array is from `0` to `ordinalMeta.categories.length`.\n *\n * @see `Ordinal['getRawOrdinalNumber']`\n * @see `OrdinalSortInfo`\n */\n private _ordinalNumbersByTick: OrdinalNumber[];\n\n /**\n * This is the inverted map of `_ordinalNumbersByTick`.\n * The index of this array is from `0` to `ordinalMeta.categories.length`.\n *\n * @see `Ordinal['_ordinalNumbersByTick']`\n * @see `Ordinal['_getTickNumber']`\n * @see `OrdinalSortInfo`\n */\n private _ticksByOrdinalNumber: number[];\n\n\n constructor(setting?: OrdinalScaleSetting) {\n super(setting);\n\n let ordinalMeta = this.getSetting('ordinalMeta');\n // Caution: Should not use instanceof, consider ec-extensions using\n // import approach to get OrdinalMeta class.\n if (!ordinalMeta) {\n ordinalMeta = new OrdinalMeta({});\n }\n if (isArray(ordinalMeta)) {\n ordinalMeta = new OrdinalMeta({\n categories: map(ordinalMeta, item => (isObject(item) ? item.value : item))\n });\n }\n this._ordinalMeta = ordinalMeta as OrdinalMeta;\n this._extent = this.getSetting('extent') || [0, ordinalMeta.categories.length - 1];\n }\n\n parse(val: OrdinalRawValue | OrdinalNumber): OrdinalNumber {\n return typeof val === 'string'\n ? this._ordinalMeta.getOrdinal(val)\n // val might be float.\n : Math.round(val);\n }\n\n contain(rank: OrdinalRawValue | OrdinalNumber): boolean {\n rank = this.parse(rank);\n return scaleHelper.contain(rank, this._extent)\n && this._ordinalMeta.categories[rank] != null;\n }\n\n /**\n * Normalize given rank or name to linear [0, 1]\n * @param val raw ordinal number.\n * @return normalized value in [0, 1].\n */\n normalize(val: OrdinalRawValue | OrdinalNumber): number {\n val = this._getTickNumber(this.parse(val));\n return scaleHelper.normalize(val, this._extent);\n }\n\n /**\n * @param val normalized value in [0, 1].\n * @return raw ordinal number.\n */\n scale(val: number): OrdinalNumber {\n val = Math.round(scaleHelper.scale(val, this._extent));\n return this.getRawOrdinalNumber(val);\n }\n\n getTicks(): OrdinalScaleTick[] {\n const ticks = [];\n const extent = this._extent;\n let rank = extent[0];\n\n while (rank <= extent[1]) {\n ticks.push({\n value: rank\n });\n rank++;\n }\n\n return ticks;\n }\n\n getMinorTicks(splitNumber: number): number[][] {\n // Not support.\n return;\n }\n\n /**\n * @see `Ordinal['_ordinalNumbersByTick']`\n */\n setSortInfo(info: OrdinalSortInfo): void {\n if (info == null) {\n this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;\n return;\n }\n\n const infoOrdinalNumbers = info.ordinalNumbers;\n const ordinalsByTick = this._ordinalNumbersByTick = [] as OrdinalNumber[];\n const ticksByOrdinal = this._ticksByOrdinalNumber = [] as number[];\n\n // Unnecessary support negative tick in `realtimeSort`.\n let tickNum = 0;\n const allCategoryLen = this._ordinalMeta.categories.length;\n for (const len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) {\n const ordinalNumber = infoOrdinalNumbers[tickNum];\n ordinalsByTick[tickNum] = ordinalNumber;\n ticksByOrdinal[ordinalNumber] = tickNum;\n }\n // Handle that `series.data` only covers part of the `axis.category.data`.\n let unusedOrdinal = 0;\n for (; tickNum < allCategoryLen; ++tickNum) {\n while (ticksByOrdinal[unusedOrdinal] != null) {\n unusedOrdinal++;\n };\n ordinalsByTick.push(unusedOrdinal);\n ticksByOrdinal[unusedOrdinal] = tickNum;\n }\n }\n\n private _getTickNumber(ordinal: OrdinalNumber): number {\n const ticksByOrdinalNumber = this._ticksByOrdinalNumber;\n // also support ordinal out of range of `ordinalMeta.categories.length`,\n // where ordinal numbers are used as tick value directly.\n return (ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length)\n ? ticksByOrdinalNumber[ordinal]\n : ordinal;\n }\n\n /**\n * @usage\n * ```js\n * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);\n *\n * // case0\n * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];\n * // case1\n * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];\n * // case2\n * const coord = axis.dataToCoord(ordinalNumber);\n * ```\n *\n * @param {OrdinalNumber} tickNumber index of display\n */\n getRawOrdinalNumber(tickNumber: number): OrdinalNumber {\n const ordinalNumbersByTick = this._ordinalNumbersByTick;\n // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,\n // where ordinal numbers are used as tick value directly.\n return (ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length)\n ? ordinalNumbersByTick[tickNumber]\n : tickNumber;\n }\n\n /**\n * Get item on tick\n */\n getLabel(tick: ScaleTick): string {\n if (!this.isBlank()) {\n const ordinalNumber = this.getRawOrdinalNumber(tick.value);\n const cateogry = this._ordinalMeta.categories[ordinalNumber];\n // Note that if no data, ordinalMeta.categories is an empty array.\n // Return empty if it's not exist.\n return cateogry == null ? '' : cateogry + '';\n }\n }\n\n count(): number {\n return this._extent[1] - this._extent[0] + 1;\n }\n\n unionExtentFromData(data: SeriesData, dim: DimensionLoose) {\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * @override\n * If value is in extent range\n */\n isInExtentRange(value: OrdinalNumber): boolean {\n value = this._getTickNumber(value);\n return this._extent[0] <= value && this._extent[1] >= value;\n }\n\n getOrdinalMeta(): OrdinalMeta {\n return this._ordinalMeta;\n }\n\n niceTicks() {}\n\n niceExtent() {}\n\n}\n\nScale.registerClass(OrdinalScale);\n\nexport default OrdinalScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as numberUtil from '../util/number';\nimport * as formatUtil from '../util/format';\nimport Scale from './Scale';\nimport * as helper from './helper';\nimport {ScaleTick, Dictionary} from '../util/types';\n\nconst roundNumber = numberUtil.round;\n\nclass IntervalScale = Dictionary> extends Scale {\n\n static type = 'interval';\n type = 'interval';\n\n // Step is calculated in adjustExtent.\n protected _interval: number = 0;\n protected _niceExtent: [number, number];\n private _intervalPrecision: number = 2;\n\n\n parse(val: number): number {\n return val;\n }\n\n contain(val: number): boolean {\n return helper.contain(val, this._extent);\n }\n\n normalize(val: number): number {\n return helper.normalize(val, this._extent);\n }\n\n scale(val: number): number {\n return helper.scale(val, this._extent);\n }\n\n setExtent(start: number | string, end: number | string): void {\n const thisExtent = this._extent;\n // start,end may be a Number like '25',so...\n if (!isNaN(start as any)) {\n thisExtent[0] = parseFloat(start as any);\n }\n if (!isNaN(end as any)) {\n thisExtent[1] = parseFloat(end as any);\n }\n }\n\n unionExtent(other: [number, number]): void {\n const extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]);\n\n // unionExtent may called by it's sub classes\n this.setExtent(extent[0], extent[1]);\n }\n\n getInterval(): number {\n return this._interval;\n }\n\n setInterval(interval: number): void {\n this._interval = interval;\n // Dropped auto calculated niceExtent and use user setted extent\n // We assume user wan't to set both interval, min, max to get a better result\n this._niceExtent = this._extent.slice() as [number, number];\n\n this._intervalPrecision = helper.getIntervalPrecision(interval);\n }\n\n /**\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent?: boolean): ScaleTick[] {\n const interval = this._interval;\n const extent = this._extent;\n const niceTickExtent = this._niceExtent;\n const intervalPrecision = this._intervalPrecision;\n\n const ticks = [] as ScaleTick[];\n // If interval is 0, return [];\n if (!interval) {\n return ticks;\n }\n\n // Consider this case: using dataZoom toolbox, zoom and zoom.\n const safeLimit = 10000;\n\n if (extent[0] < niceTickExtent[0]) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(niceTickExtent[0] - interval, intervalPrecision)\n });\n }\n else {\n ticks.push({\n value: extent[0]\n });\n }\n }\n let tick = niceTickExtent[0];\n\n while (tick <= niceTickExtent[1]) {\n ticks.push({\n value: tick\n });\n // Avoid rounding error\n tick = roundNumber(tick + interval, intervalPrecision);\n if (tick === ticks[ticks.length - 1].value) {\n // Consider out of safe float point, e.g.,\n // -3711126.9907707 + 2e-10 === -3711126.9907707\n break;\n }\n if (ticks.length > safeLimit) {\n return [];\n }\n }\n // Consider this case: the last item of ticks is smaller\n // than niceTickExtent[1] and niceTickExtent[1] === extent[1].\n const lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1];\n if (extent[1] > lastNiceTick) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(lastNiceTick + interval, intervalPrecision)\n });\n }\n else {\n ticks.push({\n value: extent[1]\n });\n }\n }\n\n return ticks;\n }\n\n getMinorTicks(splitNumber: number): number[][] {\n const ticks = this.getTicks(true);\n const minorTicks = [];\n const extent = this.getExtent();\n\n for (let i = 1; i < ticks.length; i++) {\n const nextTick = ticks[i];\n const prevTick = ticks[i - 1];\n let count = 0;\n const minorTicksGroup = [];\n const interval = nextTick.value - prevTick.value;\n const minorInterval = interval / splitNumber;\n\n while (count < splitNumber - 1) {\n const minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval);\n\n // For the first and last interval. The count may be less than splitNumber.\n if (minorTick > extent[0] && minorTick < extent[1]) {\n minorTicksGroup.push(minorTick);\n }\n count++;\n }\n minorTicks.push(minorTicksGroup);\n }\n\n return minorTicks;\n }\n\n /**\n * @param opt.precision If 'auto', use nice presision.\n * @param opt.pad returns 1.50 but not 1.5 if precision is 2.\n */\n getLabel(\n data: ScaleTick,\n opt?: {\n precision?: 'auto' | number,\n pad?: boolean\n }\n ): string {\n if (data == null) {\n return '';\n }\n\n let precision = opt && opt.precision;\n\n if (precision == null) {\n precision = numberUtil.getPrecision(data.value) || 0;\n }\n else if (precision === 'auto') {\n // Should be more precise then tick.\n precision = this._intervalPrecision;\n }\n\n // (1) If `precision` is set, 12.005 should be display as '12.00500'.\n // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.\n const dataNum = roundNumber(data.value, precision as number, true);\n\n return formatUtil.addCommas(dataNum);\n }\n\n /**\n * @param splitNumber By default `5`.\n */\n niceTicks(splitNumber?: number, minInterval?: number, maxInterval?: number): void {\n splitNumber = splitNumber || 5;\n const extent = this._extent;\n let span = extent[1] - extent[0];\n if (!isFinite(span)) {\n return;\n }\n // User may set axis min 0 and data are all negative\n // FIXME If it needs to reverse ?\n if (span < 0) {\n span = -span;\n extent.reverse();\n }\n\n const result = helper.intervalScaleNiceTicks(\n extent, splitNumber, minInterval, maxInterval\n );\n\n this._intervalPrecision = result.intervalPrecision;\n this._interval = result.interval;\n this._niceExtent = result.niceTickExtent;\n }\n\n niceExtent(opt: {\n splitNumber: number, // By default 5.\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }): void {\n const extent = this._extent;\n // If extent start and end are same, expand them\n if (extent[0] === extent[1]) {\n if (extent[0] !== 0) {\n // Expand extent\n const expandSize = extent[0];\n // In the fowllowing case\n // Axis has been fixed max 100\n // Plus data are all 100 and axis extent are [100, 100].\n // Extend to the both side will cause expanded max is larger than fixed max.\n // So only expand to the smaller side.\n if (!opt.fixMax) {\n extent[1] += expandSize / 2;\n extent[0] -= expandSize / 2;\n }\n else {\n extent[0] -= expandSize / 2;\n }\n }\n else {\n extent[1] = 1;\n }\n }\n const span = extent[1] - extent[0];\n // If there are no data and extent are [Infinity, -Infinity]\n if (!isFinite(span)) {\n extent[0] = 0;\n extent[1] = 1;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n\n // let extent = this._extent;\n const interval = this._interval;\n\n if (!opt.fixMin) {\n extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);\n }\n if (!opt.fixMax) {\n extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);\n }\n }\n\n}\n\nScale.registerClass(IntervalScale);\n\nexport default IntervalScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../util/number';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport BarSeriesModel from '../chart/bar/BarSeries';\nimport Axis2D from '../coord/cartesian/Axis2D';\nimport GlobalModel from '../model/Global';\nimport type Cartesian2D from '../coord/cartesian/Cartesian2D';\nimport { StageHandler, Dictionary } from '../util/types';\n\nconst STACK_PREFIX = '__ec_stack_';\nconst LARGE_BAR_MIN_WIDTH = 0.5;\n\nconst LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\n\nfunction getSeriesStackId(seriesModel: BarSeriesModel): string {\n return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(axis: Axis2D): string {\n return axis.dim + axis.index;\n}\n\ninterface LayoutSeriesInfo {\n bandWidth: number\n barWidth: number\n barMaxWidth: number\n barMinWidth: number\n barGap: number | string\n barCategoryGap: number | string\n axisKey: string\n stackId: string\n}\n\ninterface StackInfo {\n width: number\n maxWidth: number\n minWidth?: number\n}\n\n/**\n * {\n * [coordSysId]: {\n * [stackId]: {bandWidth, offset, width}\n * }\n * }\n */\ntype BarWidthAndOffset = Dictionary>;\n\nexport interface BarGridLayoutOptionForCustomSeries {\n count: number\n\n barWidth?: number\n barMaxWidth?: number\n barMinWidth?: number\n barGap?: number\n barCategoryGap?: number\n}\ninterface LayoutOption extends BarGridLayoutOptionForCustomSeries {\n axis: Axis2D\n}\n\nexport type BarGridLayoutResult = BarWidthAndOffset[string][string][];\n/**\n * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.\n */\nexport function getLayoutOnAxis(opt: LayoutOption): BarGridLayoutResult {\n const params: LayoutSeriesInfo[] = [];\n const baseAxis = opt.axis;\n const axisKey = 'axis0';\n\n if (baseAxis.type !== 'category') {\n return;\n }\n const bandWidth = baseAxis.getBandWidth();\n\n for (let i = 0; i < opt.count || 0; i++) {\n params.push(zrUtil.defaults({\n bandWidth: bandWidth,\n axisKey: axisKey,\n stackId: STACK_PREFIX + i\n }, opt) as LayoutSeriesInfo);\n }\n const widthAndOffsets = doCalBarWidthAndOffset(params);\n\n const result = [];\n for (let i = 0; i < opt.count; i++) {\n const item = widthAndOffsets[axisKey][STACK_PREFIX + i];\n item.offsetCenter = item.offset + item.width / 2;\n result.push(item);\n }\n\n return result;\n}\n\nexport function prepareLayoutBarSeries(seriesType: string, ecModel: GlobalModel): BarSeriesModel[] {\n const seriesModels: BarSeriesModel[] = [];\n ecModel.eachSeriesByType(seriesType, function (seriesModel: BarSeriesModel) {\n // Check series coordinate, do layout for cartesian2d only\n if (isOnCartesian(seriesModel) && !isInLargeMode(seriesModel)) {\n seriesModels.push(seriesModel);\n }\n });\n return seriesModels;\n}\n\n\n/**\n * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent\n * values.\n * This works for time axes, value axes, and log axes.\n * For a single time axis, return value is in the form like\n * {'x_0': [1000000]}.\n * The value of 1000000 is in milliseconds.\n */\nfunction getValueAxesMinGaps(barSeries: BarSeriesModel[]) {\n /**\n * Map from axis.index to values.\n * For a single time axis, axisValues is in the form like\n * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.\n * Items in axisValues[x], e.g. 1495555200000, are time values of all\n * series.\n */\n const axisValues: Dictionary = {};\n zrUtil.each(barSeries, function (seriesModel) {\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n if (baseAxis.type !== 'time' && baseAxis.type !== 'value') {\n return;\n }\n\n const data = seriesModel.getData();\n const key = baseAxis.dim + '_' + baseAxis.index;\n const dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim));\n const storage = data.getStorage();\n for (let i = 0, cnt = storage.count(); i < cnt; ++i) {\n const value = storage.get(dimIdx, i) as number;\n if (!axisValues[key]) {\n // No previous data for the axis\n axisValues[key] = [value];\n }\n else {\n // No value in previous series\n axisValues[key].push(value);\n }\n // Ignore duplicated time values in the same axis\n }\n });\n\n const axisMinGaps: Dictionary = {};\n for (const key in axisValues) {\n if (axisValues.hasOwnProperty(key)) {\n const valuesInAxis = axisValues[key];\n if (valuesInAxis) {\n // Sort axis values into ascending order to calculate gaps\n valuesInAxis.sort(function (a, b) {\n return a - b;\n });\n\n let min = null;\n for (let j = 1; j < valuesInAxis.length; ++j) {\n const delta = valuesInAxis[j] - valuesInAxis[j - 1];\n if (delta > 0) {\n // Ignore 0 delta because they are of the same axis value\n min = min === null ? delta : Math.min(min, delta);\n }\n }\n // Set to null if only have one data\n axisMinGaps[key] = min;\n }\n }\n }\n return axisMinGaps;\n}\n\nexport function makeColumnLayout(barSeries: BarSeriesModel[]) {\n const axisMinGaps = getValueAxesMinGaps(barSeries);\n\n const seriesInfoList: LayoutSeriesInfo[] = [];\n zrUtil.each(barSeries, function (seriesModel) {\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n const axisExtent = baseAxis.getExtent();\n\n let bandWidth;\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n }\n else if (baseAxis.type === 'value' || baseAxis.type === 'time') {\n const key = baseAxis.dim + '_' + baseAxis.index;\n const minGap = axisMinGaps[key];\n const extentSpan = Math.abs(axisExtent[1] - axisExtent[0]);\n const scale = baseAxis.scale.getExtent();\n const scaleSpan = Math.abs(scale[1] - scale[0]);\n bandWidth = minGap\n ? extentSpan / scaleSpan * minGap\n : extentSpan; // When there is only one data value\n }\n else {\n const data = seriesModel.getData();\n bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n }\n\n const barWidth = parsePercent(\n seriesModel.get('barWidth'), bandWidth\n );\n const barMaxWidth = parsePercent(\n seriesModel.get('barMaxWidth'), bandWidth\n );\n const barMinWidth = parsePercent(\n // barMinWidth by default is 1 in cartesian. Because in value axis,\n // the auto-calculated bar width might be less than 1.\n seriesModel.get('barMinWidth') || 1, bandWidth\n );\n const barGap = seriesModel.get('barGap');\n const barCategoryGap = seriesModel.get('barCategoryGap');\n\n seriesInfoList.push({\n bandWidth: bandWidth,\n barWidth: barWidth,\n barMaxWidth: barMaxWidth,\n barMinWidth: barMinWidth,\n barGap: barGap,\n barCategoryGap: barCategoryGap,\n axisKey: getAxisKey(baseAxis),\n stackId: getSeriesStackId(seriesModel)\n });\n });\n\n return doCalBarWidthAndOffset(seriesInfoList);\n}\n\nfunction doCalBarWidthAndOffset(seriesInfoList: LayoutSeriesInfo[]) {\n interface ColumnOnAxisInfo {\n bandWidth: number\n remainedWidth: number\n autoWidthCount: number\n categoryGap: number | string\n gap: number | string\n stacks: Dictionary\n }\n\n // Columns info on each category axis. Key is cartesian name\n const columnsMap: Dictionary = {};\n\n zrUtil.each(seriesInfoList, function (seriesInfo, idx) {\n const axisKey = seriesInfo.axisKey;\n const bandWidth = seriesInfo.bandWidth;\n const columnsOnAxis: ColumnOnAxisInfo = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: null,\n gap: '20%',\n stacks: {}\n };\n const stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n\n const stackId = seriesInfo.stackId;\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n\n // Caution: In a single coordinate system, these barGrid attributes\n // will be shared by series. Consider that they have default values,\n // only the attributes set on the last series will work.\n // Do not change this fact unless there will be a break change.\n\n let barWidth = seriesInfo.barWidth;\n if (barWidth && !stacks[stackId].width) {\n // See #6312, do not restrict width.\n stacks[stackId].width = barWidth;\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n const barMaxWidth = seriesInfo.barMaxWidth;\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n const barMinWidth = seriesInfo.barMinWidth;\n barMinWidth && (stacks[stackId].minWidth = barMinWidth);\n const barGap = seriesInfo.barGap;\n (barGap != null) && (columnsOnAxis.gap = barGap);\n const barCategoryGap = seriesInfo.barCategoryGap;\n (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n\n const result: BarWidthAndOffset = {};\n\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n\n result[coordSysName] = {};\n\n const stacks = columnsOnAxis.stacks;\n const bandWidth = columnsOnAxis.bandWidth;\n let categoryGapPercent = columnsOnAxis.categoryGap;\n if (categoryGapPercent == null) {\n const columnCount = zrUtil.keys(stacks).length;\n // More columns in one group\n // the spaces between group is smaller. Or the column will be too thin.\n categoryGapPercent = Math.max((35 - columnCount * 4), 15) + '%';\n }\n\n const categoryGap = parsePercent(categoryGapPercent, bandWidth);\n const barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n\n let remainedWidth = columnsOnAxis.remainedWidth;\n let autoWidthCount = columnsOnAxis.autoWidthCount;\n let autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n // Find if any auto calculated bar exceeded maxBarWidth\n zrUtil.each(stacks, function (column) {\n const maxWidth = column.maxWidth;\n const minWidth = column.minWidth;\n\n if (!column.width) {\n let finalWidth = autoWidth;\n if (maxWidth && maxWidth < finalWidth) {\n finalWidth = Math.min(maxWidth, remainedWidth);\n }\n // `minWidth` has higher priority. `minWidth` decide that wheter the\n // bar is able to be visible. So `minWidth` should not be restricted\n // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In\n // the extreme cases for `value` axis, bars are allowed to overlap\n // with each other if `minWidth` specified.\n if (minWidth && minWidth > finalWidth) {\n finalWidth = minWidth;\n }\n if (finalWidth !== autoWidth) {\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n }\n else {\n // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as\n // CSS does. Becuase barWidth can be a percent value, where\n // `barMaxWidth` can be used to restrict the final width.\n let finalWidth = column.width;\n if (maxWidth) {\n finalWidth = Math.min(finalWidth, maxWidth);\n }\n // `minWidth` has higher priority, as described above\n if (minWidth) {\n finalWidth = Math.max(finalWidth, minWidth);\n }\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n });\n\n // Recalculate width again\n autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n\n autoWidth = Math.max(autoWidth, 0);\n\n\n let widthSum = 0;\n let lastColumn: StackInfo;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n let offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n bandWidth: bandWidth,\n offset: offset,\n width: column.width\n } as BarWidthAndOffset[string][string];\n\n offset += column.width * (1 + barGapPercent);\n });\n });\n\n return result;\n}\n\n/**\n * @param barWidthAndOffset The result of makeColumnLayout\n * @param seriesModel If not provided, return all.\n * @return {stackId: {offset, width}} or {offset, width} if seriesModel provided.\n */\nfunction retrieveColumnLayout(barWidthAndOffset: BarWidthAndOffset, axis: Axis2D): typeof barWidthAndOffset[string];\n// eslint-disable-next-line max-len\nfunction retrieveColumnLayout(barWidthAndOffset: BarWidthAndOffset, axis: Axis2D, seriesModel: BarSeriesModel): typeof barWidthAndOffset[string][string];\nfunction retrieveColumnLayout(\n barWidthAndOffset: BarWidthAndOffset,\n axis: Axis2D,\n seriesModel?: BarSeriesModel\n) {\n if (barWidthAndOffset && axis) {\n const result = barWidthAndOffset[getAxisKey(axis)];\n if (result != null && seriesModel != null) {\n return result[getSeriesStackId(seriesModel)];\n }\n return result;\n }\n}\nexport {retrieveColumnLayout};\n\nexport function layout(seriesType: string, ecModel: GlobalModel) {\n\n const seriesModels = prepareLayoutBarSeries(seriesType, ecModel);\n const barWidthAndOffset = makeColumnLayout(seriesModels);\n\n const lastStackCoords: Dictionary<{p: number, n: number}[]> = {};\n\n zrUtil.each(seriesModels, function (seriesModel) {\n\n const data = seriesModel.getData();\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n\n const stackId = getSeriesStackId(seriesModel);\n const columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];\n const columnOffset = columnLayoutInfo.offset;\n const columnWidth = columnLayoutInfo.width;\n const valueAxis = cartesian.getOtherAxis(baseAxis);\n\n const barMinHeight = seriesModel.get('barMinHeight') || 0;\n\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n\n data.setLayout({\n bandWidth: columnLayoutInfo.bandWidth,\n offset: columnOffset,\n size: columnWidth\n });\n\n const valueDim = data.mapDimension(valueAxis.dim);\n const baseDim = data.mapDimension(baseAxis.dim);\n const stacked = isDimensionStacked(data, valueDim);\n const isValueAxisH = valueAxis.isHorizontal();\n\n const valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked);\n\n const storage = data.getStorage();\n const valueDimIdx = data.getDimensionIndex(valueDim);\n const baseDimIdx = data.getDimensionIndex(baseDim);\n for (let idx = 0, len = storage.count(); idx < len; idx++) {\n const value = storage.get(valueDimIdx, idx);\n const baseValue = storage.get(baseDimIdx, idx) as number;\n\n const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n';\n let baseCoord = valueAxisStart;\n\n // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n if (stacked) {\n // Only ordinal axis can be stacked.\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart, // Positive stack\n n: valueAxisStart // Negative stack\n };\n }\n // Should also consider #4243\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n let x;\n let y;\n let width;\n let height;\n\n if (isValueAxisH) {\n const coord = cartesian.dataToPoint([value, baseValue]);\n x = baseCoord;\n y = coord[1] + columnOffset;\n width = coord[0] - valueAxisStart;\n height = columnWidth;\n\n if (Math.abs(width) < barMinHeight) {\n width = (width < 0 ? -1 : 1) * barMinHeight;\n }\n // Ignore stack from NaN value\n if (!isNaN(width)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += width);\n }\n }\n else {\n const coord = cartesian.dataToPoint([baseValue, value]);\n x = coord[0] + columnOffset;\n y = baseCoord;\n width = columnWidth;\n height = coord[1] - valueAxisStart;\n\n if (Math.abs(height) < barMinHeight) {\n // Include zero to has a positive bar\n height = (height <= 0 ? -1 : 1) * barMinHeight;\n }\n // Ignore stack from NaN value\n if (!isNaN(height)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += height);\n }\n }\n\n data.setItemLayout(idx, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n }\n\n });\n}\n\n// TODO: Do not support stack in large mode yet.\nexport const largeLayout: StageHandler = {\n\n seriesType: 'bar',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: BarSeriesModel) {\n if (!isOnCartesian(seriesModel) || !isInLargeMode(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const coordLayout = cartesian.master.getRect();\n const baseAxis = cartesian.getBaseAxis();\n const valueAxis = cartesian.getOtherAxis(baseAxis);\n const valueDimI = data.getDimensionIndex(data.mapDimension(valueAxis.dim));\n const baseDimI = data.getDimensionIndex(data.mapDimension(baseAxis.dim));\n const valueAxisHorizontal = valueAxis.isHorizontal();\n const valueDimIdx = valueAxisHorizontal ? 0 : 1;\n\n let barWidth = retrieveColumnLayout(\n makeColumnLayout([seriesModel]), baseAxis, seriesModel\n ).width;\n if (!(barWidth > LARGE_BAR_MIN_WIDTH)) { // jshint ignore:line\n barWidth = LARGE_BAR_MIN_WIDTH;\n }\n\n return {\n progress: function (params, data) {\n const count = params.count;\n const largePoints = new LargeArr(count * 2);\n const largeBackgroundPoints = new LargeArr(count * 2);\n const largeDataIndices = new LargeArr(count);\n let dataIndex;\n let coord: number[] = [];\n const valuePair = [];\n let pointsOffset = 0;\n let idxOffset = 0;\n const storage = data.getStorage();\n\n while ((dataIndex = params.next()) != null) {\n valuePair[valueDimIdx] = storage.get(valueDimI, dataIndex);\n valuePair[1 - valueDimIdx] = storage.get(baseDimI, dataIndex);\n\n coord = cartesian.dataToPoint(valuePair, null);\n // Data index might not be in order, depends on `progressiveChunkMode`.\n largeBackgroundPoints[pointsOffset] =\n valueAxisHorizontal ? coordLayout.x + coordLayout.width : coord[0];\n largePoints[pointsOffset++] = coord[0];\n largeBackgroundPoints[pointsOffset] =\n valueAxisHorizontal ? coord[1] : coordLayout.y + coordLayout.height;\n largePoints[pointsOffset++] = coord[1];\n largeDataIndices[idxOffset++] = dataIndex;\n }\n\n data.setLayout({\n largePoints: largePoints,\n largeDataIndices: largeDataIndices,\n largeBackgroundPoints: largeBackgroundPoints,\n barWidth: barWidth,\n valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false),\n backgroundStart: valueAxisHorizontal ? coordLayout.x : coordLayout.y,\n valueAxisHorizontal: valueAxisHorizontal\n });\n }\n };\n }\n};\n\nfunction isOnCartesian(seriesModel: BarSeriesModel) {\n return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d';\n}\n\nfunction isInLargeMode(seriesModel: BarSeriesModel) {\n return seriesModel.pipelineContext && seriesModel.pipelineContext.large;\n}\n\n// See cases in `test/bar-start.html` and `#7412`, `#8747`.\nfunction getValueAxisStart(baseAxis: Axis2D, valueAxis: Axis2D, stacked?: boolean) {\n return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The \"scaleLevels\" was originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment on the definition of \"scaleLevels\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n\n// [About UTC and local time zone]:\n// In most cases, `number.parseDate` will treat input data string as local time\n// (except time zone is specified in time string). And `format.formateTime` returns\n// local time by default. option.useUTC is false by default. This design have\n// concidered these common case:\n// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed\n// in local time by default.\n// (2) By default, the input data string (e.g., '2011-01-02') should be displayed\n// as its original time, without any time difference.\n\nimport * as numberUtil from '../util/number';\nimport {\n ONE_SECOND,\n ONE_MINUTE,\n ONE_HOUR,\n ONE_DAY,\n ONE_YEAR,\n format,\n leveledFormat,\n PrimaryTimeUnit,\n TimeUnit,\n getUnitValue,\n timeUnits,\n fullLeveledFormatter,\n getPrimaryTimeUnit,\n isPrimaryTimeUnit,\n getDefaultFormatPrecisionOfInterval,\n fullYearGetterName,\n monthSetterName,\n fullYearSetterName,\n dateSetterName,\n hoursGetterName,\n hoursSetterName,\n minutesSetterName,\n secondsSetterName,\n millisecondsSetterName,\n monthGetterName,\n dateGetterName,\n minutesGetterName,\n secondsGetterName,\n millisecondsGetterName\n} from '../util/time';\nimport * as scaleHelper from './helper';\nimport IntervalScale from './Interval';\nimport Scale from './Scale';\nimport {TimeScaleTick, ScaleTick} from '../util/types';\nimport {TimeAxisLabelFormatterOption} from '../coord/axisCommonTypes';\nimport { warn } from '../util/log';\nimport { LocaleOption } from '../core/locale';\nimport Model from '../model/Model';\nimport { filter, map } from 'zrender/src/core/util';\n\n// FIXME \u516C\u7528\uFF1F\nconst bisect = function (\n a: [string | number, number][],\n x: number,\n lo: number,\n hi: number\n): number {\n while (lo < hi) {\n const mid = lo + hi >>> 1;\n if (a[mid][1] < x) {\n lo = mid + 1;\n }\n else {\n hi = mid;\n }\n }\n return lo;\n};\n\ntype TimeScaleSetting = {\n locale: Model;\n useUTC: boolean;\n};\n\nclass TimeScale extends IntervalScale {\n\n static type = 'time';\n readonly type = 'time';\n\n _approxInterval: number;\n\n _minLevelUnit: TimeUnit;\n\n constructor(settings?: TimeScaleSetting) {\n super(settings);\n }\n\n /**\n * Get label is mainly for other components like dataZoom, tooltip.\n */\n getLabel(tick: TimeScaleTick): string {\n const useUTC = this.getSetting('useUTC');\n return format(\n tick.value,\n fullLeveledFormatter[\n getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))\n ] || fullLeveledFormatter.second,\n useUTC,\n this.getSetting('locale')\n );\n }\n\n getFormattedLabel(\n tick: TimeScaleTick,\n idx: number,\n labelFormatter: TimeAxisLabelFormatterOption\n ): string {\n const isUTC = this.getSetting('useUTC');\n const lang = this.getSetting('locale');\n return leveledFormat(tick, idx, labelFormatter, lang, isUTC);\n }\n\n /**\n * @override\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent?: boolean): TimeScaleTick[] {\n const interval = this._interval;\n const extent = this._extent;\n\n let ticks = [] as TimeScaleTick[];\n // If interval is 0, return [];\n if (!interval) {\n return ticks;\n }\n\n ticks.push({\n value: extent[0],\n level: 0\n });\n\n const useUTC = this.getSetting('useUTC');\n\n const innerTicks = getIntervalTicks(\n this._minLevelUnit,\n this._approxInterval,\n useUTC,\n extent\n );\n\n ticks = ticks.concat(innerTicks);\n\n ticks.push({\n value: extent[1],\n level: 0\n });\n\n return ticks;\n }\n\n niceExtent(\n opt?: {\n splitNumber?: number,\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }\n ): void {\n const extent = this._extent;\n // If extent start and end are same, expand them\n if (extent[0] === extent[1]) {\n // Expand extent\n extent[0] -= ONE_DAY;\n extent[1] += ONE_DAY;\n }\n // If there are no data and extent are [Infinity, -Infinity]\n if (extent[1] === -Infinity && extent[0] === Infinity) {\n const d = new Date();\n extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());\n extent[0] = extent[1] - ONE_DAY;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n }\n\n niceTicks(approxTickNum: number, minInterval: number, maxInterval: number): void {\n approxTickNum = approxTickNum || 10;\n\n const extent = this._extent;\n const span = extent[1] - extent[0];\n this._approxInterval = span / approxTickNum;\n\n if (minInterval != null && this._approxInterval < minInterval) {\n this._approxInterval = minInterval;\n }\n if (maxInterval != null && this._approxInterval > maxInterval) {\n this._approxInterval = maxInterval;\n }\n\n const scaleIntervalsLen = scaleIntervals.length;\n const idx = Math.min(\n bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen),\n scaleIntervalsLen - 1\n );\n\n // Interval that can be used to calculate ticks\n this._interval = scaleIntervals[idx][1];\n // Min level used when picking ticks from top down.\n // We check one more level to avoid the ticks are to sparse in some case.\n this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0];\n }\n\n parse(val: number | string | Date): number {\n // val might be float.\n return typeof val === 'number' ? val : +numberUtil.parseDate(val);\n }\n\n contain(val: number): boolean {\n return scaleHelper.contain(this.parse(val), this._extent);\n }\n\n normalize(val: number): number {\n return scaleHelper.normalize(this.parse(val), this._extent);\n }\n\n scale(val: number): number {\n return scaleHelper.scale(val, this._extent);\n }\n\n}\n\n\n/**\n * This implementation was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nconst scaleIntervals: [TimeUnit, number][] = [\n // Format interval\n ['second', ONE_SECOND], // 1s\n ['minute', ONE_MINUTE], // 1m\n ['hour', ONE_HOUR], // 1h\n ['quarter-day', ONE_HOUR * 6], // 6h\n ['half-day', ONE_HOUR * 12], // 12h\n ['day', ONE_DAY * 1.2], // 1d\n ['half-week', ONE_DAY * 3.5], // 3.5d\n ['week', ONE_DAY * 7], // 7d\n ['month', ONE_DAY * 31], // 1M\n ['quarter', ONE_DAY * 95], // 3M\n ['half-year', ONE_YEAR / 2], // 6M\n ['year', ONE_YEAR] // 1Y\n];\n\nfunction isUnitValueSame(\n unit: PrimaryTimeUnit,\n valueA: number,\n valueB: number,\n isUTC: boolean\n): boolean {\n const dateA = numberUtil.parseDate(valueA) as any;\n const dateB = numberUtil.parseDate(valueB) as any;\n\n const isSame = (unit: PrimaryTimeUnit) => {\n return getUnitValue(dateA, unit, isUTC)\n === getUnitValue(dateB, unit, isUTC);\n };\n const isSameYear = () => isSame('year');\n // const isSameHalfYear = () => isSameYear() && isSame('half-year');\n // const isSameQuater = () => isSameYear() && isSame('quarter');\n const isSameMonth = () => isSameYear() && isSame('month');\n const isSameDay = () => isSameMonth() && isSame('day');\n // const isSameHalfDay = () => isSameDay() && isSame('half-day');\n const isSameHour = () => isSameDay() && isSame('hour');\n const isSameMinute = () => isSameHour() && isSame('minute');\n const isSameSecond = () => isSameMinute() && isSame('second');\n const isSameMilliSecond = () => isSameSecond() && isSame('millisecond');\n\n switch (unit) {\n case 'year':\n return isSameYear();\n case 'month':\n return isSameMonth();\n case 'day':\n return isSameDay();\n case 'hour':\n return isSameHour();\n case 'minute':\n return isSameMinute();\n case 'second':\n return isSameSecond();\n case 'millisecond':\n return isSameMilliSecond();\n }\n}\n\n// const primaryUnitGetters = {\n// year: fullYearGetterName(),\n// month: monthGetterName(),\n// day: dateGetterName(),\n// hour: hoursGetterName(),\n// minute: minutesGetterName(),\n// second: secondsGetterName(),\n// millisecond: millisecondsGetterName()\n// };\n\n// const primaryUnitUTCGetters = {\n// year: fullYearGetterName(true),\n// month: monthGetterName(true),\n// day: dateGetterName(true),\n// hour: hoursGetterName(true),\n// minute: minutesGetterName(true),\n// second: secondsGetterName(true),\n// millisecond: millisecondsGetterName(true)\n// };\n\n// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {\n// step = step || 1;\n// switch (getPrimaryTimeUnit(unitName)) {\n// case 'year':\n// date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);\n// break;\n// case 'month':\n// date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);\n// break;\n// case 'day':\n// date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);\n// break;\n// case 'hour':\n// date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);\n// break;\n// case 'minute':\n// date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);\n// break;\n// case 'second':\n// date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);\n// break;\n// case 'millisecond':\n// date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);\n// break;\n// }\n// return date.getTime();\n// }\n\n// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];\n// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];\n// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];\n\nfunction getDateInterval(approxInterval: number, daysInMonth: number) {\n approxInterval /= ONE_DAY;\n return approxInterval > 16 ? 16\n // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick betwen two month.\n : approxInterval > 7.5 ? 7 // TODO week 7 or day 8?\n : approxInterval > 3.5 ? 4\n : approxInterval > 1.5 ? 2 : 1;\n}\n\nfunction getMonthInterval(approxInterval: number) {\n const APPROX_ONE_MONTH = 30 * ONE_DAY;\n approxInterval /= APPROX_ONE_MONTH;\n return approxInterval > 6 ? 6\n : approxInterval > 3 ? 3\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getHourInterval(approxInterval: number) {\n approxInterval /= ONE_HOUR;\n return approxInterval > 12 ? 12\n : approxInterval > 6 ? 6\n : approxInterval > 3.5 ? 4\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMinutesAndSecondsInterval(approxInterval: number, isMinutes?: boolean) {\n approxInterval /= isMinutes ? ONE_MINUTE : ONE_SECOND;\n return approxInterval > 30 ? 30\n : approxInterval > 20 ? 20\n : approxInterval > 15 ? 15\n : approxInterval > 10 ? 10\n : approxInterval > 5 ? 5\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMillisecondsInterval(approxInterval: number) {\n return numberUtil.nice(approxInterval, true);\n}\n\nfunction getFirstTimestampOfUnit(date: Date, unitName: TimeUnit, isUTC: boolean) {\n const outDate = new Date(date);\n switch (getPrimaryTimeUnit(unitName)) {\n case 'year':\n case 'month':\n outDate[monthSetterName(isUTC)](0);\n case 'day':\n outDate[dateSetterName(isUTC)](1);\n case 'hour':\n outDate[hoursSetterName(isUTC)](0);\n case 'minute':\n outDate[minutesSetterName(isUTC)](0);\n case 'second':\n outDate[secondsSetterName(isUTC)](0);\n outDate[millisecondsSetterName(isUTC)](0);\n }\n return outDate.getTime();\n}\n\nfunction getIntervalTicks(\n bottomUnitName: TimeUnit,\n approxInterval: number,\n isUTC: boolean,\n extent: number[]\n): TimeScaleTick[] {\n const safeLimit = 10000;\n const unitNames = timeUnits;\n // const bottomPrimaryUnitName = getPrimaryTimeUnit(bottomUnitName);\n\n interface InnerTimeTick extends TimeScaleTick {\n notAdd?: boolean\n }\n\n let iter = 0;\n\n function addTicksInSpan(\n interval: number,\n minTimestamp: number, maxTimestamp: number,\n getMethodName: string,\n setMethodName: string,\n isDate: boolean,\n out: InnerTimeTick[]\n ) {\n const date = new Date(minTimestamp) as any;\n let dateTime = minTimestamp;\n let d = date[getMethodName]();\n\n // if (isDate) {\n // d -= 1; // Starts with 0; PENDING\n // }\n\n while (dateTime < maxTimestamp && dateTime <= extent[1]) {\n out.push({\n value: dateTime\n });\n\n d += interval;\n date[setMethodName](d);\n dateTime = date.getTime();\n }\n\n // This extra tick is for calcuating ticks of next level. Will not been added to the final result\n out.push({\n value: dateTime,\n notAdd: true\n });\n }\n\n function addLevelTicks(\n unitName: TimeUnit,\n lastLevelTicks: InnerTimeTick[],\n levelTicks: InnerTimeTick[]\n ) {\n const newAddedTicks: ScaleTick[] = [];\n const isFirstLevel = !lastLevelTicks.length;\n\n if (isUnitValueSame(getPrimaryTimeUnit(unitName), extent[0], extent[1], isUTC)) {\n return;\n }\n\n if (isFirstLevel) {\n lastLevelTicks = [{\n // TODO Optimize. Not include so may ticks.\n value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC)\n }, {\n value: extent[1]\n }];\n }\n\n for (let i = 0; i < lastLevelTicks.length - 1; i++) {\n const startTick = lastLevelTicks[i].value;\n const endTick = lastLevelTicks[i + 1].value;\n if (startTick === endTick) {\n continue;\n }\n\n let interval: number;\n let getterName;\n let setterName;\n let isDate = false;\n\n switch (unitName) {\n case 'year':\n interval = Math.max(1, Math.round(approxInterval / ONE_DAY / 365));\n getterName = fullYearGetterName(isUTC);\n setterName = fullYearSetterName(isUTC);\n break;\n case 'half-year':\n case 'quarter':\n case 'month':\n interval = getMonthInterval(approxInterval);\n getterName = monthGetterName(isUTC);\n setterName = monthSetterName(isUTC);\n break;\n case 'week': // PENDING If week is added. Ignore day.\n case 'half-week':\n case 'day':\n interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16\n getterName = dateGetterName(isUTC);\n setterName = dateSetterName(isUTC);\n isDate = true;\n break;\n case 'half-day':\n case 'quarter-day':\n case 'hour':\n interval = getHourInterval(approxInterval);\n getterName = hoursGetterName(isUTC);\n setterName = hoursSetterName(isUTC);\n break;\n case 'minute':\n interval = getMinutesAndSecondsInterval(approxInterval, true);\n getterName = minutesGetterName(isUTC);\n setterName = minutesSetterName(isUTC);\n break;\n case 'second':\n interval = getMinutesAndSecondsInterval(approxInterval, false);\n getterName = secondsGetterName(isUTC);\n setterName = secondsSetterName(isUTC);\n break;\n case 'millisecond':\n interval = getMillisecondsInterval(approxInterval);\n getterName = millisecondsGetterName(isUTC);\n setterName = millisecondsSetterName(isUTC);\n break;\n }\n\n addTicksInSpan(\n interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks\n );\n\n if (unitName === 'year' && levelTicks.length > 1 && i === 0) {\n // Add nearest years to the left extent.\n levelTicks.unshift({\n value: levelTicks[0].value - interval\n });\n }\n }\n\n for (let i = 0; i < newAddedTicks.length; i++) {\n levelTicks.push(newAddedTicks[i]);\n }\n // newAddedTicks.length && console.log(unitName, newAddedTicks);\n return newAddedTicks;\n }\n\n const levelsTicks: InnerTimeTick[][] = [];\n let currentLevelTicks: InnerTimeTick[] = [];\n\n let tickCount = 0;\n let lastLevelTickCount = 0;\n for (let i = 0; i < unitNames.length && iter++ < safeLimit; ++i) {\n const primaryTimeUnit = getPrimaryTimeUnit(unitNames[i]);\n if (!isPrimaryTimeUnit(unitNames[i])) { // TODO\n continue;\n }\n addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks);\n\n const nextPrimaryTimeUnit: PrimaryTimeUnit = unitNames[i + 1] ? getPrimaryTimeUnit(unitNames[i + 1]) : null;\n if (primaryTimeUnit !== nextPrimaryTimeUnit) {\n if (currentLevelTicks.length) {\n lastLevelTickCount = tickCount;\n // Remove the duplicate so the tick count can be precisely.\n currentLevelTicks.sort((a, b) => a.value - b.value);\n const levelTicksRemoveDuplicated = [];\n for (let i = 0; i < currentLevelTicks.length; ++i) {\n const tickValue = currentLevelTicks[i].value;\n if (i === 0 || currentLevelTicks[i - 1].value !== tickValue) {\n levelTicksRemoveDuplicated.push(currentLevelTicks[i]);\n if (tickValue >= extent[0] && tickValue <= extent[1]) {\n tickCount++;\n }\n }\n }\n\n const targetTickNum = (extent[1] - extent[0]) / approxInterval;\n // Added too much in this level and not too less in last level\n if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) {\n break;\n }\n\n // Only treat primary time unit as one level.\n levelsTicks.push(levelTicksRemoveDuplicated);\n\n if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) {\n break;\n }\n\n }\n // Reset if next unitName is primary\n currentLevelTicks = [];\n }\n\n }\n\n if (__DEV__) {\n if (iter >= safeLimit) {\n warn('Exceed safe limit.');\n }\n }\n\n const levelsTicksInExtent = filter(map(levelsTicks, levelTicks => {\n return filter(levelTicks, tick => tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd);\n }), levelTicks => levelTicks.length > 0);\n\n const ticks: TimeScaleTick[] = [];\n const maxLevel = levelsTicksInExtent.length - 1;\n for (let i = 0; i < levelsTicksInExtent.length; ++i) {\n const levelTicks = levelsTicksInExtent[i];\n for (let k = 0; k < levelTicks.length; ++k) {\n ticks.push({\n value: levelTicks[k].value,\n level: maxLevel - i\n });\n }\n }\n\n ticks.sort((a, b) => a.value - b.value);\n // Remove duplicates\n const result: TimeScaleTick[] = [];\n for (let i = 0; i < ticks.length; ++i) {\n if (i === 0 || ticks[i].value !== ticks[i - 1].value) {\n result.push(ticks[i]);\n }\n }\n\n return result;\n}\n\n\nScale.registerClass(TimeScale);\n\nexport default TimeScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Scale from './Scale';\nimport * as numberUtil from '../util/number';\nimport * as scaleHelper from './helper';\n\n// Use some method of IntervalScale\nimport IntervalScale from './Interval';\nimport SeriesData from '../data/SeriesData';\nimport { DimensionName, ScaleTick } from '../util/types';\n\nconst scaleProto = Scale.prototype;\n// FIXME:TS refactor: not good to call it directly with `this`?\nconst intervalScaleProto = IntervalScale.prototype;\n\nconst roundingErrorFix = numberUtil.round;\n\nconst mathFloor = Math.floor;\nconst mathCeil = Math.ceil;\nconst mathPow = Math.pow;\n\nconst mathLog = Math.log;\n\nclass LogScale extends Scale {\n static type = 'log';\n readonly type = 'log';\n\n base = 10;\n\n private _originalScale: IntervalScale = new IntervalScale();\n\n private _fixMin: boolean;\n private _fixMax: boolean;\n\n // FIXME:TS actually used by `IntervalScale`\n private _interval: number = 0;\n // FIXME:TS actually used by `IntervalScale`\n private _niceExtent: [number, number];\n\n\n /**\n * @param Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent: boolean): ScaleTick[] {\n const originalScale = this._originalScale;\n const extent = this._extent;\n const originalExtent = originalScale.getExtent();\n\n const ticks = intervalScaleProto.getTicks.call(this, expandToNicedExtent);\n\n return zrUtil.map(ticks, function (tick) {\n const val = tick.value;\n let powVal = numberUtil.round(mathPow(this.base, val));\n\n // Fix #4158\n powVal = (val === extent[0] && this._fixMin)\n ? fixRoundingError(powVal, originalExtent[0])\n : powVal;\n powVal = (val === extent[1] && this._fixMax)\n ? fixRoundingError(powVal, originalExtent[1])\n : powVal;\n\n return {\n value: powVal\n };\n }, this);\n }\n\n setExtent(start: number, end: number): void {\n const base = this.base;\n start = mathLog(start) / mathLog(base);\n end = mathLog(end) / mathLog(base);\n intervalScaleProto.setExtent.call(this, start, end);\n }\n\n /**\n * @return {number} end\n */\n getExtent() {\n const base = this.base;\n const extent = scaleProto.getExtent.call(this);\n extent[0] = mathPow(base, extent[0]);\n extent[1] = mathPow(base, extent[1]);\n\n // Fix #4158\n const originalScale = this._originalScale;\n const originalExtent = originalScale.getExtent();\n this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));\n this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));\n\n return extent;\n }\n\n unionExtent(extent: [number, number]): void {\n this._originalScale.unionExtent(extent);\n\n const base = this.base;\n extent[0] = mathLog(extent[0]) / mathLog(base);\n extent[1] = mathLog(extent[1]) / mathLog(base);\n scaleProto.unionExtent.call(this, extent);\n }\n\n unionExtentFromData(data: SeriesData, dim: DimensionName): void {\n // TODO\n // filter value that <= 0\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * Update interval and extent of intervals for nice ticks\n * @param approxTickNum default 10 Given approx tick number\n */\n niceTicks(approxTickNum: number): void {\n approxTickNum = approxTickNum || 10;\n const extent = this._extent;\n const span = extent[1] - extent[0];\n if (span === Infinity || span <= 0) {\n return;\n }\n\n let interval = numberUtil.quantity(span);\n const err = approxTickNum / span * interval;\n\n // Filter ticks to get closer to the desired count.\n if (err <= 0.5) {\n interval *= 10;\n }\n\n // Interval should be integer\n while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {\n interval *= 10;\n }\n\n const niceExtent = [\n numberUtil.round(mathCeil(extent[0] / interval) * interval),\n numberUtil.round(mathFloor(extent[1] / interval) * interval)\n ] as [number, number];\n\n this._interval = interval;\n this._niceExtent = niceExtent;\n }\n\n niceExtent(opt: {\n splitNumber: number, // By default 5.\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }): void {\n intervalScaleProto.niceExtent.call(this, opt);\n\n this._fixMin = opt.fixMin;\n this._fixMax = opt.fixMax;\n }\n\n parse(val: any): number {\n return val;\n }\n\n contain(val: number): boolean {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.contain(val, this._extent);\n }\n\n normalize(val: number): number {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.normalize(val, this._extent);\n }\n\n scale(val: number): number {\n val = scaleHelper.scale(val, this._extent);\n return mathPow(this.base, val);\n }\n\n getMinorTicks: IntervalScale['getMinorTicks'];\n getLabel: IntervalScale['getLabel'];\n}\n\nconst proto = LogScale.prototype;\nproto.getMinorTicks = intervalScaleProto.getMinorTicks;\nproto.getLabel = intervalScaleProto.getLabel;\n\n\nfunction fixRoundingError(val: number, originalVal: number): number {\n return roundingErrorFix(val, numberUtil.getPrecision(originalVal));\n}\n\n\nScale.registerClass(LogScale);\n\nexport default LogScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/src/core/util';\nimport Scale from '../scale/Scale';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport { ScaleDataValue } from '../util/types';\n\n\nexport interface ScaleRawExtentResult {\n // `min`/`max` defines data available range, determined by\n // `dataMin`/`dataMax` and explicit specified min max related option.\n // The final extent will be based on the `min`/`max` and may be enlarge\n // a little (say, \"nice strategy\", e.g., niceScale, boundaryGap).\n // Ensure `min`/`max` be finite number or NaN here.\n // (not to be null/undefined) `NaN` means min/max axis is blank.\n readonly min: number;\n readonly max: number;\n // `minFixed`/`maxFixed` marks that `min`/`max` should be used\n // in the final extent without other \"nice strategy\".\n readonly minFixed: boolean;\n readonly maxFixed: boolean;\n // Mark that the axis should be blank.\n readonly isBlank: boolean;\n}\n\nexport class ScaleRawExtentInfo {\n\n private _needCrossZero: boolean;\n private _isOrdinal: boolean;\n private _axisDataLen: number;\n private _boundaryGapInner: number[];\n\n // Accurate raw value get from model.\n private _modelMinRaw: AxisBaseOption['min'];\n private _modelMaxRaw: AxisBaseOption['max'];\n\n // Can be `finite number`/`null`/`undefined`/`NaN`\n private _modelMinNum: number;\n private _modelMaxNum: number;\n\n // Range union by series data on this axis.\n // May be modified if data is filtered.\n private _dataMin: number;\n private _dataMax: number;\n\n // Highest priority if specified.\n private _determinedMin: number;\n private _determinedMax: number;\n\n // Make that the `rawExtentInfo` can not be modified any more.\n readonly frozen: boolean;\n\n\n constructor(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n originalExtent: number[]\n ) {\n this._prepareParams(scale, model, originalExtent);\n }\n\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n private _prepareParams(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n dataExtent: number[]\n ) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n\n const isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = model.getNeedCrossZero && model.getNeedCrossZero();\n\n const modelMinRaw = this._modelMinRaw = model.get('min', true);\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n }\n else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n const modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n }\n else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n }\n else {\n const boundaryGap = model.get('boundaryGap');\n const boundaryGapArr = isArray(boundaryGap)\n ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (__DEV__) {\n console.warn('Boolean type for boundaryGap is only '\n + 'allowed for ordinal axis. Please use string in '\n + 'percentage instead, e.g., \"20%\". Currently, '\n + 'boundaryGap is set to be 0.');\n }\n this._boundaryGapInner = [0, 0];\n }\n else {\n this._boundaryGapInner = [\n parsePercent(boundaryGapArr[0], 1),\n parsePercent(boundaryGapArr[1], 1)\n ];\n }\n }\n }\n\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n calculate(): ScaleRawExtentResult {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n\n const isOrdinal = this._isOrdinal;\n const dataMin = this._dataMin;\n const dataMax = this._dataMax;\n const axisDataLen = this._axisDataLen;\n const boundaryGapInner = this._boundaryGapInner;\n\n const span = !isOrdinal\n ? ((dataMax - dataMin) || Math.abs(dataMin))\n : null;\n\n // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n let min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n let max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum;\n\n // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n let minFixed = min != null;\n let maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal\n ? (axisDataLen ? 0 : NaN)\n : dataMin - boundaryGapInner[0] * span;\n }\n if (max == null) {\n max = isOrdinal\n ? (axisDataLen ? axisDataLen - 1 : NaN)\n : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n\n if (min > max) {\n min = NaN;\n max = NaN;\n }\n\n const isBlank = eqNaN(min)\n || eqNaN(max)\n || (isOrdinal && !axisDataLen);\n\n // If data extent modified, need to recalculated to ensure cross zero.\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0;\n // minFixed = true;\n }\n // Axis is under zero and max is not set\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0;\n // maxFixed = true;\n }\n // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n }\n\n const determinedMin = this._determinedMin;\n const determinedMax = this._determinedMax;\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n }\n\n // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n }\n\n modifyDataMinMax(minMaxName: 'min' | 'max', val: number): void {\n if (__DEV__) {\n assert(!this.frozen);\n }\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n }\n\n setDeterminedMinMax(minMaxName: 'min' | 'max', val: number): void {\n const attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n if (__DEV__) {\n assert(\n !this.frozen\n // Earse them usually means logic flaw.\n && (this[attr] == null)\n );\n }\n this[attr] = val;\n }\n\n freeze() {\n // @ts-ignore\n this.frozen = true;\n }\n}\n\nconst DETERMINED_MIN_MAX_ATTR = { min: '_determinedMin', max: '_determinedMax' } as const;\nconst DATA_MIN_MAX_ATTR = { min: '_dataMin', max: '_dataMax' } as const;\n\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\nexport function ensureScaleRawExtentInfo(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n originalExtent: number[]\n): ScaleRawExtentInfo {\n\n // Do not permit to recreate.\n let rawExtentInfo = scale.rawExtentInfo;\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent);\n // @ts-ignore\n scale.rawExtentInfo = rawExtentInfo;\n\n return rawExtentInfo;\n}\n\nexport function parseAxisModelMinMax(scale: Scale, minMax: ScaleDataValue): number {\n return minMax == null ? null\n : eqNaN(minMax) ? NaN\n : scale.parse(minMax);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport OrdinalScale from '../scale/Ordinal';\nimport IntervalScale from '../scale/Interval';\nimport Scale from '../scale/Scale';\nimport {\n prepareLayoutBarSeries,\n makeColumnLayout,\n retrieveColumnLayout\n} from '../layout/barGrid';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\n\nimport TimeScale from '../scale/Time';\nimport Model from '../model/Model';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport LogScale from '../scale/Log';\nimport Axis from './Axis';\nimport { AxisBaseOption, TimeAxisLabelFormatterOption } from './axisCommonTypes';\nimport type CartesianAxisModel from './cartesian/AxisModel';\nimport SeriesData from '../data/SeriesData';\nimport { getStackedDimension } from '../data/helper/dataStackHelper';\nimport { Dictionary, DimensionName, ScaleTick, TimeScaleTick } from '../util/types';\nimport { ensureScaleRawExtentInfo } from './scaleRawExtentInfo';\n\n\ntype BarWidthAndOffset = ReturnType;\n\n/**\n * Get axis scale extent before niced.\n * Item of returned array can only be number (including Infinity and NaN).\n *\n * Caution:\n * Precondition of calling this method:\n * The scale extent has been initialized using series data extent via\n * `scale.setExtent` or `scale.unionExtentFromData`;\n */\nexport function getScaleExtent(scale: Scale, model: AxisBaseModel) {\n const scaleType = scale.type;\n const rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n\n scale.setBlank(rawExtentResult.isBlank);\n\n let min = rawExtentResult.min;\n let max = rawExtentResult.max;\n\n // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n const ecModel = model.ecModel;\n if (ecModel && (scaleType === 'time' /*|| scaleType === 'interval' */)) {\n const barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n let isBaseAxisAndHasBarSeries = false;\n\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries = isBaseAxisAndHasBarSeries || seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries) {\n // Calculate placement of bars on axis. TODO should be decoupled\n // with barLayout\n const barWidthAndOffset = makeColumnLayout(barSeriesModels);\n\n // Adjust axis min and max to account for overflow\n const adjustedScale = adjustScaleForOverflow(min, max, model as CartesianAxisModel, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return {\n extent: [min, max],\n // \"fix\" means \"fixed\", the value should not be\n // changed in the subsequent steps.\n fixMin: rawExtentResult.minFixed,\n fixMax: rawExtentResult.maxFixed\n };\n}\n\nfunction adjustScaleForOverflow(\n min: number,\n max: number,\n model: CartesianAxisModel, // Only support cartesian coord yet.\n barWidthAndOffset: BarWidthAndOffset\n) {\n\n // Get Axis Length\n const axisExtent = model.axis.getExtent();\n const axisLength = axisExtent[1] - axisExtent[0];\n\n // Get bars on current base axis and calculate min and max overflow\n const barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);\n if (barsOnCurrentAxis === undefined) {\n return {min: min, max: max};\n }\n\n let minOverflow = Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n minOverflow = Math.min(item.offset, minOverflow);\n });\n let maxOverflow = -Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n maxOverflow = Math.max(item.offset + item.width, maxOverflow);\n });\n minOverflow = Math.abs(minOverflow);\n maxOverflow = Math.abs(maxOverflow);\n const totalOverFlow = minOverflow + maxOverflow;\n\n // Calculate required buffer based on old range and overflow\n const oldRange = max - min;\n const oldRangePercentOfNew = (1 - (minOverflow + maxOverflow) / axisLength);\n const overflowBuffer = ((oldRange / oldRangePercentOfNew) - oldRange);\n\n max += overflowBuffer * (maxOverflow / totalOverFlow);\n min -= overflowBuffer * (minOverflow / totalOverFlow);\n\n return {min: min, max: max};\n}\n\n// Precondition of calling this method:\n// The scale extent has been initailized using series data extent via\n// `scale.setExtent` or `scale.unionExtentFromData`;\nexport function niceScaleExtent(scale: Scale, model: AxisBaseModel) {\n const extentInfo = getScaleExtent(scale, model);\n const extent = extentInfo.extent;\n const splitNumber = model.get('splitNumber');\n\n if (scale instanceof LogScale) {\n scale.base = model.get('logBase');\n }\n\n const scaleType = scale.type;\n scale.setExtent(extent[0], extent[1]);\n scale.niceExtent({\n splitNumber: splitNumber,\n fixMin: extentInfo.fixMin,\n fixMax: extentInfo.fixMax,\n minInterval: (scaleType === 'interval' || scaleType === 'time')\n ? model.get('minInterval') : null,\n maxInterval: (scaleType === 'interval' || scaleType === 'time')\n ? model.get('maxInterval') : null\n });\n\n // If some one specified the min, max. And the default calculated interval\n // is not good enough. He can specify the interval. It is often appeared\n // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n // to be 60.\n // FIXME\n const interval = model.get('interval');\n if (interval != null) {\n (scale as IntervalScale).setInterval && (scale as IntervalScale).setInterval(interval);\n }\n}\n\n/**\n * @param axisType Default retrieve from model.type\n */\nexport function createScaleByModel(model: AxisBaseModel, axisType?: string): Scale {\n axisType = axisType || model.get('type');\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getOrdinalMeta\n ? model.getOrdinalMeta()\n : model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n default:\n // case 'value'/'interval', 'log', or others.\n return new (Scale.getClass(axisType) || IntervalScale)();\n }\n }\n}\n\n/**\n * Check if the axis cross 0\n */\nexport function ifAxisCrossZero(axis: Axis) {\n const dataExtent = axis.scale.getExtent();\n const min = dataExtent[0];\n const max = dataExtent[1];\n return !((min > 0 && max > 0) || (min < 0 && max < 0));\n}\n\n/**\n * @param axis\n * @return Label formatter function.\n * param: {number} tickValue,\n * param: {number} idx, the index in all ticks.\n * If category axis, this param is not required.\n * return: {string} label string.\n */\nexport function makeLabelFormatter(axis: Axis): (tick: ScaleTick, idx?: number) => string {\n const labelFormatter = axis.getLabelModel().get('formatter');\n const categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null;\n\n if (axis.scale.type === 'time') {\n return (function (tpl) {\n return function (tick: ScaleTick, idx: number) {\n return (axis.scale as TimeScale).getFormattedLabel(tick, idx, tpl);\n };\n })(labelFormatter as TimeAxisLabelFormatterOption);\n }\n else if (typeof labelFormatter === 'string') {\n return (function (tpl) {\n return function (tick: ScaleTick) {\n // For category axis, get raw value; for numeric axis,\n // get formatted label like '1,333,444'.\n const label = axis.scale.getLabel(tick);\n const text = tpl.replace('{value}', label != null ? label : '');\n\n return text;\n };\n })(labelFormatter);\n }\n else if (typeof labelFormatter === 'function') {\n return (function (cb) {\n return function (tick: ScaleTick, idx: number) {\n // The original intention of `idx` is \"the index of the tick in all ticks\".\n // But the previous implementation of category axis do not consider the\n // `axisLabel.interval`, which cause that, for example, the `interval` is\n // `1`, then the ticks \"name5\", \"name7\", \"name9\" are displayed, where the\n // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep\n // the definition here for back compatibility.\n if (categoryTickStart != null) {\n idx = tick.value - categoryTickStart;\n }\n return cb(\n getAxisRawValue(axis, tick) as number,\n idx,\n (tick as TimeScaleTick).level != null ? {\n level: (tick as TimeScaleTick).level\n } : null\n );\n };\n })(labelFormatter);\n }\n else {\n return function (tick: ScaleTick) {\n return axis.scale.getLabel(tick);\n };\n }\n}\n\nexport function getAxisRawValue(axis: Axis, tick: ScaleTick): number | string {\n // In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value;\n}\n\n/**\n * @param axis\n * @return Be null/undefined if no labels.\n */\nexport function estimateLabelUnionRect(axis: Axis) {\n const axisModel = axis.model;\n const scale = axis.scale;\n\n if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) {\n return;\n }\n\n let realNumberScaleTicks: ScaleTick[];\n let tickCount;\n const categoryScaleExtent = scale.getExtent();\n\n // Optimize for large category data, avoid call `getTicks()`.\n if (scale instanceof OrdinalScale) {\n tickCount = scale.count();\n }\n else {\n realNumberScaleTicks = scale.getTicks();\n tickCount = realNumberScaleTicks.length;\n }\n\n const axisLabelModel = axis.getLabelModel();\n const labelFormatter = makeLabelFormatter(axis);\n\n let rect;\n let step = 1;\n // Simple optimization for large amount of labels\n if (tickCount > 40) {\n step = Math.ceil(tickCount / 40);\n }\n for (let i = 0; i < tickCount; i += step) {\n const tick = realNumberScaleTicks\n ? realNumberScaleTicks[i]\n : {\n value: categoryScaleExtent[0] + i\n };\n const label = labelFormatter(tick, i);\n const unrotatedSingleRect = axisLabelModel.getTextRect(label);\n const singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);\n\n rect ? rect.union(singleRect) : (rect = singleRect);\n }\n\n return rect;\n}\n\nfunction rotateTextRect(textRect: RectLike, rotate: number) {\n const rotateRadians = rotate * Math.PI / 180;\n const beforeWidth = textRect.width;\n const beforeHeight = textRect.height;\n const afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians))\n + Math.abs(beforeHeight * Math.sin(rotateRadians));\n const afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians))\n + Math.abs(beforeHeight * Math.cos(rotateRadians));\n const rotatedRect = new BoundingRect(textRect.x, textRect.y, afterWidth, afterHeight);\n\n return rotatedRect;\n}\n\n/**\n * @param model axisLabelModel or axisTickModel\n * @return {number|String} Can be null|'auto'|number|function\n */\nexport function getOptionCategoryInterval(model: Model) {\n const interval = model.get('interval');\n return interval == null ? 'auto' : interval;\n}\n\n/**\n * Set `categoryInterval` as 0 implicitly indicates that\n * show all labels reguardless of overlap.\n * @param {Object} axis axisModel.axis\n */\nexport function shouldShowAllLabels(axis: Axis): boolean {\n return axis.type === 'category'\n && getOptionCategoryInterval(axis.getLabelModel()) === 0;\n}\n\nexport function getDataDimensionsOnAxis(data: SeriesData, axisDim: string): DimensionName[] {\n // Remove duplicated dat dimensions caused by `getStackedDimension`.\n const dataDimMap = {} as Dictionary;\n // Currently `mapDimensionsAll` will contain stack result dimension ('__\\0ecstackresult').\n // PENDING: is it reasonable? Do we need to remove the original dim from \"coord dim\" since\n // there has been stacked result dim?\n zrUtil.each(data.mapDimensionsAll(axisDim), function (dataDim) {\n // For example, the extent of the original dimension\n // is [0.1, 0.5], the extent of the `stackResultDimension`\n // is [7, 9], the final extent should NOT include [0.1, 0.5],\n // because there is no graphic corresponding to [0.1, 0.5].\n // See the case in `test/area-stack.html` `main1`, where area line\n // stack needs `yAxis` not start from 0.\n dataDimMap[getStackedDimension(data, dataDim)] = true;\n });\n return zrUtil.keys(dataDimMap);\n}\n\nexport function unionAxisExtentFromData(dataExtent: number[], data: SeriesData, axisDim: string): void {\n if (data) {\n zrUtil.each(getDataDimensionsOnAxis(data, axisDim), function (dim) {\n const seriesExtent = data.getApproximateExtent(dim);\n seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);\n seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);\n });\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../model/Model';\nimport Axis from './Axis';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport { CoordinateSystemHostModel } from './CoordinateSystem';\n\n\ninterface AxisModelCommonMixin extends Pick, 'option'> {\n axis: Axis;\n}\n\nclass AxisModelCommonMixin {\n\n getNeedCrossZero(): boolean {\n const option = this.option;\n return !option.scale;\n }\n\n /**\n * Should be implemented by each axis model if necessary.\n * @return coordinate system model\n */\n getCoordSysModel(): CoordinateSystemHostModel {\n return;\n }\n\n}\n\nexport {AxisModelCommonMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n linearMap,\n round,\n asc,\n getPrecision,\n getPrecisionSafe,\n getPixelPrecision,\n getPercentWithPrecision,\n MAX_SAFE_INTEGER,\n remRadian,\n isRadianAroundZero,\n parseDate,\n quantity,\n quantityExponent,\n nice,\n quantile,\n reformIntervals,\n isNumeric,\n numericToNumber\n} from '../../util/number';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {parseDate as parse} from '../../util/number';\n\nexport {format} from '../../util/time';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n extendShape, extendPath, makePath, makeImage,\n mergePath, resizePath, createIcon,\n updateProps, initProps, getTransform,\n clipPointsByRect, clipRectByRect,\n registerShape, getShapeClass,\n Group,\n Image,\n Text,\n Circle,\n Ellipse,\n Sector,\n Ring,\n Polygon,\n Polyline,\n Rect,\n Line,\n BezierCurve,\n Arc,\n IncrementalDisplayable,\n CompoundPath,\n LinearGradient,\n RadialGradient,\n BoundingRect\n} from '../../util/graphic';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n addCommas,\n toCamelCase,\n normalizeCssArray,\n encodeHTML,\n formatTpl,\n getTooltipMarker,\n formatTime,\n capitalFirst,\n truncateText,\n getTextRect\n} from '../../util/format';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n map, each, indexOf, inherits, reduce, filter,\n bind, curry, isArray, isString, isObject, isFunction,\n extend, defaults, clone, merge\n} from 'zrender/src/core/util';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as textContain from 'zrender/src/contain/text';\nimport {makeInner} from '../util/model';\nimport {\n makeLabelFormatter,\n getOptionCategoryInterval,\n shouldShowAllLabels\n} from './axisHelper';\nimport Axis from './Axis';\nimport Model from '../model/Model';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport OrdinalScale from '../scale/Ordinal';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport type Axis2D from './cartesian/Axis2D';\n\ntype CacheKey = string | number;\n\ntype InnerTickLabelCache = {\n key: CacheKey\n value: T\n}[];\n\ninterface InnerLabelCachedVal {\n labels: MakeLabelsResultObj[]\n labelCategoryInterval?: number\n}\ninterface InnerTickCachedVal {\n ticks: number[]\n tickCategoryInterval?: number\n}\n\ntype InnerStore = {\n labels: InnerTickLabelCache\n ticks: InnerTickLabelCache\n autoInterval: number\n lastAutoInterval: number\n lastTickCount: number\n axisExtent0: number\n axisExtent1: number\n};\n\nconst inner = makeInner();\n\nexport function createAxisLabels(axis: Axis): {\n labels: {\n formattedLabel: string,\n rawLabel: string,\n tickValue: number\n }[],\n labelCategoryInterval?: number\n} {\n // Only ordinal scale support tick interval\n return axis.type === 'category'\n ? makeCategoryLabels(axis)\n : makeRealNumberLabels(axis);\n}\n\n/**\n * @param {module:echats/coord/Axis} axis\n * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.\n * @return {Object} {\n * ticks: Array.\n * tickCategoryInterval: number\n * }\n */\nexport function createAxisTicks(axis: Axis, tickModel: AxisBaseModel): {\n ticks: number[],\n tickCategoryInterval?: number\n} {\n // Only ordinal scale support tick interval\n return axis.type === 'category'\n ? makeCategoryTicks(axis, tickModel)\n : {ticks: zrUtil.map(axis.scale.getTicks(), tick => tick.value) };\n}\n\nfunction makeCategoryLabels(axis: Axis) {\n const labelModel = axis.getLabelModel();\n const result = makeCategoryLabelsActually(axis, labelModel);\n\n return (!labelModel.get('show') || axis.scale.isBlank())\n ? {labels: [], labelCategoryInterval: result.labelCategoryInterval}\n : result;\n}\n\nfunction makeCategoryLabelsActually(axis: Axis, labelModel: Model) {\n const labelsCache = getListCache(axis, 'labels');\n const optionLabelInterval = getOptionCategoryInterval(labelModel);\n const result = listCacheGet(labelsCache, optionLabelInterval as CacheKey);\n\n if (result) {\n return result;\n }\n\n let labels;\n let numericLabelInterval;\n\n if (zrUtil.isFunction(optionLabelInterval)) {\n labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);\n }\n else {\n numericLabelInterval = optionLabelInterval === 'auto'\n ? makeAutoCategoryInterval(axis) : optionLabelInterval;\n labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);\n }\n\n // Cache to avoid calling interval function repeatly.\n return listCacheSet(labelsCache, optionLabelInterval as CacheKey, {\n labels: labels, labelCategoryInterval: numericLabelInterval\n });\n}\n\nfunction makeCategoryTicks(axis: Axis, tickModel: AxisBaseModel) {\n const ticksCache = getListCache(axis, 'ticks');\n const optionTickInterval = getOptionCategoryInterval(tickModel);\n const result = listCacheGet(ticksCache, optionTickInterval as CacheKey);\n\n if (result) {\n return result;\n }\n\n let ticks: number[];\n let tickCategoryInterval;\n\n // Optimize for the case that large category data and no label displayed,\n // we should not return all ticks.\n if (!tickModel.get('show') || axis.scale.isBlank()) {\n ticks = [];\n }\n\n if (zrUtil.isFunction(optionTickInterval)) {\n ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);\n }\n // Always use label interval by default despite label show. Consider this\n // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows\n // labels. `splitLine` and `axisTick` should be consistent in this case.\n else if (optionTickInterval === 'auto') {\n const labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());\n tickCategoryInterval = labelsResult.labelCategoryInterval;\n ticks = zrUtil.map(labelsResult.labels, function (labelItem) {\n return labelItem.tickValue;\n });\n }\n else {\n tickCategoryInterval = optionTickInterval;\n ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);\n }\n\n // Cache to avoid calling interval function repeatly.\n return listCacheSet(ticksCache, optionTickInterval as CacheKey, {\n ticks: ticks, tickCategoryInterval: tickCategoryInterval\n });\n}\n\nfunction makeRealNumberLabels(axis: Axis) {\n const ticks = axis.scale.getTicks();\n const labelFormatter = makeLabelFormatter(axis);\n return {\n labels: zrUtil.map(ticks, function (tick, idx) {\n return {\n formattedLabel: labelFormatter(tick, idx),\n rawLabel: axis.scale.getLabel(tick),\n tickValue: tick.value\n };\n })\n };\n}\n\n// Large category data calculation is performence sensitive, and ticks and label\n// probably be fetched by multiple times. So we cache the result.\n// axis is created each time during a ec process, so we do not need to clear cache.\nfunction getListCache(axis: Axis, prop: 'ticks'): InnerStore['ticks'];\nfunction getListCache(axis: Axis, prop: 'labels'): InnerStore['labels'];\nfunction getListCache(axis: Axis, prop: 'ticks' | 'labels') {\n // Because key can be funciton, and cache size always be small, we use array cache.\n return inner(axis)[prop] || (inner(axis)[prop] = []);\n}\n\nfunction listCacheGet(cache: InnerTickLabelCache, key: CacheKey): T {\n for (let i = 0; i < cache.length; i++) {\n if (cache[i].key === key) {\n return cache[i].value;\n }\n }\n}\n\nfunction listCacheSet(cache: InnerTickLabelCache, key: CacheKey, value: T): T {\n cache.push({key: key, value: value});\n return value;\n}\n\nfunction makeAutoCategoryInterval(axis: Axis) {\n const result = inner(axis).autoInterval;\n return result != null\n ? result\n : (inner(axis).autoInterval = axis.calculateCategoryInterval());\n}\n\n/**\n * Calculate interval for category axis ticks and labels.\n * To get precise result, at least one of `getRotate` and `isHorizontal`\n * should be implemented in axis.\n */\nexport function calculateCategoryInterval(axis: Axis) {\n const params = fetchAutoCategoryIntervalCalculationParams(axis);\n const labelFormatter = makeLabelFormatter(axis);\n const rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;\n\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n const tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n let step = 1;\n // Simple optimization. Empirical value: tick count should less than 40.\n if (tickCount > 40) {\n step = Math.max(1, Math.floor(tickCount / 40));\n }\n let tickValue = ordinalExtent[0];\n const unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n const unitW = Math.abs(unitSpan * Math.cos(rotation));\n const unitH = Math.abs(unitSpan * Math.sin(rotation));\n\n let maxW = 0;\n let maxH = 0;\n\n // Caution: Performance sensitive for large category data.\n // Consider dataZoom, we should make appropriate step to avoid O(n) loop.\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n let width = 0;\n let height = 0;\n\n // Not precise, do not consider align and vertical align\n // and each distance from axis line yet.\n const rect = textContain.getBoundingRect(\n labelFormatter({ value: tickValue }), params.font, 'center', 'top'\n );\n // Magic number\n width = rect.width * 1.3;\n height = rect.height * 1.3;\n\n // Min size, void long loop.\n maxW = Math.max(maxW, width, 7);\n maxH = Math.max(maxH, height, 7);\n }\n\n let dw = maxW / unitW;\n let dh = maxH / unitH;\n // 0/0 is NaN, 1/0 is Infinity.\n isNaN(dw) && (dw = Infinity);\n isNaN(dh) && (dh = Infinity);\n let interval = Math.max(0, Math.floor(Math.min(dw, dh)));\n\n const cache = inner(axis.model);\n const axisExtent = axis.getExtent();\n const lastAutoInterval = cache.lastAutoInterval;\n const lastTickCount = cache.lastTickCount;\n\n // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n // For example, if all of the axis labels are `a, b, c, d, e, f, g`.\n // The jitter will cause that sometimes the displayed labels are\n // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).\n if (lastAutoInterval != null\n && lastTickCount != null\n && Math.abs(lastAutoInterval - interval) <= 1\n && Math.abs(lastTickCount - tickCount) <= 1\n // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval\n // If the axis change is caused by chart resize, the cache should not\n // be used. Otherwise some hiden labels might not be shown again.\n && cache.axisExtent0 === axisExtent[0]\n && cache.axisExtent1 === axisExtent[1]\n ) {\n interval = lastAutoInterval;\n }\n // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n cache.axisExtent0 = axisExtent[0];\n cache.axisExtent1 = axisExtent[1];\n }\n\n return interval;\n}\n\nfunction fetchAutoCategoryIntervalCalculationParams(axis: Axis) {\n const labelModel = axis.getLabelModel();\n return {\n axisRotate: axis.getRotate\n ? axis.getRotate()\n : ((axis as Axis2D).isHorizontal && !(axis as Axis2D).isHorizontal())\n ? 90\n : 0,\n labelRotate: labelModel.get('rotate') || 0,\n font: labelModel.getFont()\n };\n}\n\ninterface MakeLabelsResultObj {\n formattedLabel: string\n rawLabel: string\n tickValue: number\n}\n\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick: false): MakeLabelsResultObj[];\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick: true): number[];\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick?: boolean) {\n const labelFormatter = makeLabelFormatter(axis);\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n const labelModel = axis.getLabelModel();\n const result: (MakeLabelsResultObj | number)[] = [];\n\n // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...\n\n const step = Math.max((categoryInterval || 0) + 1, 1);\n let startTick = ordinalExtent[0];\n const tickCount = ordinalScale.count();\n\n // Calculate start tick based on zero if possible to keep label consistent\n // while zooming and moving while interval > 0. Otherwise the selection\n // of displayable ticks and symbols probably keep changing.\n // 3 is empirical value.\n if (startTick !== 0 && step > 1 && tickCount / step > 2) {\n startTick = Math.round(Math.ceil(startTick / step) * step);\n }\n\n // (1) Only add min max label here but leave overlap checking\n // to render stage, which also ensure the returned list\n // suitable for splitLine and splitArea rendering.\n // (2) Scales except category always contain min max label so\n // do not need to perform this process.\n const showAllLabel = shouldShowAllLabels(axis);\n const includeMinLabel = labelModel.get('showMinLabel') || showAllLabel;\n const includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel;\n\n if (includeMinLabel && startTick !== ordinalExtent[0]) {\n addItem(ordinalExtent[0]);\n }\n\n // Optimize: avoid generating large array by `ordinalScale.getTicks()`.\n let tickValue = startTick;\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n addItem(tickValue);\n }\n\n if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {\n addItem(ordinalExtent[1]);\n }\n\n function addItem(tickValue: number) {\n const tickObj = { value: tickValue };\n result.push(onlyTick\n ? tickValue\n : {\n formattedLabel: labelFormatter(tickObj),\n rawLabel: ordinalScale.getLabel(tickObj),\n tickValue: tickValue\n }\n );\n }\n\n return result;\n}\n\ntype CategoryIntervalCb = (tickVal: number, rawLabel: string) => boolean;\n\n// When interval is function, the result `false` means ignore the tick.\n// It is time consuming for large category data.\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick: false): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick: true): number[];\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick?: boolean) {\n const ordinalScale = axis.scale;\n const labelFormatter = makeLabelFormatter(axis);\n const result: (MakeLabelsResultObj | number)[] = [];\n\n zrUtil.each(ordinalScale.getTicks(), function (tick) {\n const rawLabel = ordinalScale.getLabel(tick);\n const tickValue = tick.value;\n if (categoryInterval(tick.value, rawLabel)) {\n result.push(\n onlyTick\n ? tickValue\n : {\n formattedLabel: labelFormatter(tick),\n rawLabel: rawLabel,\n tickValue: tickValue\n }\n );\n }\n });\n\n return result;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, map} from 'zrender/src/core/util';\nimport {linearMap, getPixelPrecision, round} from '../util/number';\nimport {\n createAxisTicks,\n createAxisLabels,\n calculateCategoryInterval\n} from './axisTickLabelBuilder';\nimport Scale from '../scale/Scale';\nimport { DimensionName, ScaleDataValue, ScaleTick } from '../util/types';\nimport OrdinalScale from '../scale/Ordinal';\nimport Model from '../model/Model';\nimport { AxisBaseOption, OptionAxisType } from './axisCommonTypes';\nimport { AxisBaseModel } from './AxisBaseModel';\n\nconst NORMALIZED_EXTENT = [0, 1] as [number, number];\n\ninterface TickCoord {\n coord: number;\n // That is `scaleTick.value`.\n tickValue?: ScaleTick['value'];\n}\n\n/**\n * Base class of Axis.\n */\nclass Axis {\n\n /**\n * Axis type\n * - 'category'\n * - 'value'\n * - 'time'\n * - 'log'\n */\n type: OptionAxisType;\n\n // Axis dimension. Such as 'x', 'y', 'z', 'angle', 'radius'.\n readonly dim: DimensionName;\n\n // Axis scale\n scale: Scale;\n\n private _extent: [number, number];\n\n // Injected outside\n model: AxisBaseModel;\n onBand: AxisBaseOption['boundaryGap'] = false;\n inverse: AxisBaseOption['inverse'] = false;\n\n\n constructor(dim: DimensionName, scale: Scale, extent: [number, number]) {\n this.dim = dim;\n this.scale = scale;\n this._extent = extent || [0, 0];\n }\n\n /**\n * If axis extent contain given coord\n */\n contain(coord: number): boolean {\n const extent = this._extent;\n const min = Math.min(extent[0], extent[1]);\n const max = Math.max(extent[0], extent[1]);\n return coord >= min && coord <= max;\n }\n\n /**\n * If axis extent contain given data\n */\n containData(data: ScaleDataValue): boolean {\n return this.scale.contain(data);\n }\n\n /**\n * Get coord extent.\n */\n getExtent(): [number, number] {\n return this._extent.slice() as [number, number];\n }\n\n /**\n * Get precision used for formatting\n */\n getPixelPrecision(dataExtent?: [number, number]): number {\n return getPixelPrecision(\n dataExtent || this.scale.getExtent(),\n this._extent\n );\n }\n\n /**\n * Set coord extent\n */\n setExtent(start: number, end: number): void {\n const extent = this._extent;\n extent[0] = start;\n extent[1] = end;\n }\n\n /**\n * Convert data to coord. Data is the rank if it has an ordinal scale\n */\n dataToCoord(data: ScaleDataValue, clamp?: boolean): number {\n let extent = this._extent;\n const scale = this.scale;\n data = scale.normalize(data);\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice() as [number, number];\n fixExtentWithBands(extent, (scale as OrdinalScale).count());\n }\n\n return linearMap(data, NORMALIZED_EXTENT, extent, clamp);\n }\n\n /**\n * Convert coord to data. Data is the rank if it has an ordinal scale\n */\n coordToData(coord: number, clamp?: boolean): number {\n let extent = this._extent;\n const scale = this.scale;\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice() as [number, number];\n fixExtentWithBands(extent, (scale as OrdinalScale).count());\n }\n\n const t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp);\n\n return this.scale.scale(t);\n }\n\n /**\n * Convert pixel point to data in axis\n */\n pointToData(point: number[], clamp?: boolean): number {\n // Should be implemented in derived class if necessary.\n return;\n }\n\n /**\n * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,\n * `axis.getTicksCoords` considers `onBand`, which is used by\n * `boundaryGap:true` of category axis and splitLine and splitArea.\n * @param opt.tickModel default: axis.model.getModel('axisTick')\n * @param opt.clamp If `true`, the first and the last\n * tick must be at the axis end points. Otherwise, clip ticks\n * that outside the axis extent.\n */\n getTicksCoords(opt?: {\n tickModel?: Model,\n clamp?: boolean\n }): TickCoord[] {\n opt = opt || {};\n\n const tickModel = opt.tickModel || this.getTickModel();\n const result = createAxisTicks(this, tickModel as AxisBaseModel);\n const ticks = result.ticks;\n\n const ticksCoords = map(ticks, function (tickVal) {\n return {\n coord: this.dataToCoord(\n this.scale.type === 'ordinal'\n ? (this.scale as OrdinalScale).getRawOrdinalNumber(tickVal)\n : tickVal\n ),\n tickValue: tickVal\n };\n }, this);\n\n const alignWithLabel = tickModel.get('alignWithLabel');\n\n fixOnBandTicksCoords(\n this, ticksCoords, alignWithLabel, opt.clamp\n );\n\n return ticksCoords;\n }\n\n getMinorTicksCoords(): TickCoord[][] {\n if (this.scale.type === 'ordinal') {\n // Category axis doesn't support minor ticks\n return [];\n }\n\n const minorTickModel = this.model.getModel('minorTick');\n let splitNumber = minorTickModel.get('splitNumber');\n // Protection.\n if (!(splitNumber > 0 && splitNumber < 100)) {\n splitNumber = 5;\n }\n const minorTicks = this.scale.getMinorTicks(splitNumber);\n const minorTicksCoords = map(minorTicks, function (minorTicksGroup) {\n return map(minorTicksGroup, function (minorTick) {\n return {\n coord: this.dataToCoord(minorTick),\n tickValue: minorTick\n };\n }, this);\n }, this);\n return minorTicksCoords;\n }\n\n getViewLabels(): ReturnType['labels'] {\n return createAxisLabels(this).labels;\n }\n\n getLabelModel(): Model {\n return this.model.getModel('axisLabel');\n }\n\n /**\n * Notice here we only get the default tick model. For splitLine\n * or splitArea, we should pass the splitLineModel or splitAreaModel\n * manually when calling `getTicksCoords`.\n * In GL, this method may be overrided to:\n * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`\n */\n getTickModel(): Model {\n return this.model.getModel('axisTick');\n }\n\n /**\n * Get width of band\n */\n getBandWidth(): number {\n const axisExtent = this._extent;\n const dataExtent = this.scale.getExtent();\n\n let len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);\n // Fix #2728, avoid NaN when only one data.\n len === 0 && (len = 1);\n\n const size = Math.abs(axisExtent[1] - axisExtent[0]);\n\n return Math.abs(size) / len;\n }\n\n /**\n * Get axis rotate, by degree.\n */\n getRotate: () => number;\n\n /**\n * Only be called in category axis.\n * Can be overrided, consider other axes like in 3D.\n * @return Auto interval for cateogry axis tick and label\n */\n calculateCategoryInterval(): ReturnType {\n return calculateCategoryInterval(this);\n }\n\n}\n\nfunction fixExtentWithBands(extent: [number, number], nTick: number): void {\n const size = extent[1] - extent[0];\n const len = nTick;\n const margin = size / len / 2;\n extent[0] += margin;\n extent[1] -= margin;\n}\n\n// If axis has labels [1, 2, 3, 4]. Bands on the axis are\n// |---1---|---2---|---3---|---4---|.\n// So the displayed ticks and splitLine/splitArea should between\n// each data item, otherwise cause misleading (e.g., split tow bars\n// of a single data item when there are two bar series).\n// Also consider if tickCategoryInterval > 0 and onBand, ticks and\n// splitLine/spliteArea should layout appropriately corresponding\n// to displayed labels. (So we should not use `getBandWidth` in this\n// case).\nfunction fixOnBandTicksCoords(\n axis: Axis, ticksCoords: TickCoord[], alignWithLabel: boolean, clamp: boolean\n) {\n const ticksLen = ticksCoords.length;\n\n if (!axis.onBand || alignWithLabel || !ticksLen) {\n return;\n }\n\n const axisExtent = axis.getExtent();\n let last;\n let diffSize;\n if (ticksLen === 1) {\n ticksCoords[0].coord = axisExtent[0];\n last = ticksCoords[1] = {coord: axisExtent[0]};\n }\n else {\n const crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;\n const shift = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;\n\n each(ticksCoords, function (ticksItem) {\n ticksItem.coord -= shift / 2;\n });\n\n const dataExtent = axis.scale.getExtent();\n diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue;\n\n last = {coord: ticksCoords[ticksLen - 1].coord + shift * diffSize};\n\n ticksCoords.push(last);\n }\n\n const inverse = axisExtent[0] > axisExtent[1];\n\n // Handling clamp.\n if (littleThan(ticksCoords[0].coord, axisExtent[0])) {\n clamp ? (ticksCoords[0].coord = axisExtent[0]) : ticksCoords.shift();\n }\n if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) {\n ticksCoords.unshift({coord: axisExtent[0]});\n }\n if (littleThan(axisExtent[1], last.coord)) {\n clamp ? (last.coord = axisExtent[1]) : ticksCoords.pop();\n }\n if (clamp && littleThan(last.coord, axisExtent[1])) {\n ticksCoords.push({coord: axisExtent[1]});\n }\n\n function littleThan(a: number, b: number): boolean {\n // Avoid rounding error cause calculated tick coord different with extent.\n // It may cause an extra unecessary tick added.\n a = round(a);\n b = round(b);\n return inverse ? a > b : a < b;\n }\n}\n\nexport default Axis;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// These APIs are for more advanced usages\n// For example extend charts and components, creating graphic elements, formatting.\nimport ComponentModel, { ComponentModelConstructor } from '../model/Component';\nimport ComponentView, { ComponentViewConstructor } from '../view/Component';\nimport SeriesModel, { SeriesModelConstructor } from '../model/Series';\nimport ChartView, { ChartViewConstructor } from '../view/Chart';\n\nimport SeriesData from '../data/SeriesData';\n\n// Provide utilities API in echarts. It will be in echarts namespace.\n// Like echarts.util, echarts.graphic\nexport * as zrender from 'zrender/src/zrender';\n\nexport * as matrix from 'zrender/src/core/matrix';\nexport * as vector from 'zrender/src/core/vector';\nexport * as zrUtil from 'zrender/src/core/util';\nexport * as color from 'zrender/src/tool/color';\nexport {throttle} from '../util/throttle';\nexport * as helper from './api/helper';\n\nexport {use} from '../extension';\n\n//////////////// Helper Methods /////////////////////\nexport {default as parseGeoJSON} from '../coord/geo/parseGeoJson';\nexport {default as parseGeoJson} from '../coord/geo/parseGeoJson';\n\nexport * as number from './api/number';\nexport * as time from './api/time';\nexport * as graphic from './api/graphic';\n\nexport * as format from './api/format';\n\nexport * as util from './api/util';\n\nexport {default as env} from 'zrender/src/core/env';\n\n//////////////// Export for Exension Usage ////////////////\n// export {SeriesData};\nexport {SeriesData as List}; // TODO: Compatitable with exists echarts-gl code\nexport {default as Model} from '../model/Model';\nexport {default as Axis} from '../coord/Axis';\n\nexport {\n ComponentModel,\n ComponentView,\n SeriesModel,\n ChartView\n};\n\n// Only for GL\nexport {brushSingle as innerDrawElementOnCanvas} from 'zrender/src/canvas/graphic';\n\n\n//////////////// Deprecated Extension Methods ////////////////\n\n// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.\n// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:\n// class Bar3DModel extends ComponentModel {}\n// export function install(registers) { regsiters.registerComponentModel(Bar3DModel); }\n// echarts.use(install);\nexport function extendComponentModel(proto: object): ComponentModel {\n const Model = (ComponentModel as ComponentModelConstructor).extend(proto) as any;\n ComponentModel.registerClass(Model);\n return Model;\n}\n\nexport function extendComponentView(proto: object): ChartView {\n const View = (ComponentView as ComponentViewConstructor).extend(proto) as any;\n ComponentView.registerClass(View);\n return View;\n}\n\nexport function extendSeriesModel(proto: object): SeriesModel {\n const Model = (SeriesModel as SeriesModelConstructor).extend(proto) as any;\n SeriesModel.registerClass(Model);\n return Model;\n}\n\nexport function extendChartView(proto: object): ChartView {\n const View = (ChartView as ChartViewConstructor).extend(proto) as any;\n ChartView.registerClass(View);\n return View;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Point,\n Path,\n Polyline\n} from '../util/graphic';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { normalizeRadian } from 'zrender/src/contain/util';\nimport { cubicProjectPoint, quadraticProjectPoint } from 'zrender/src/core/curve';\nimport Element from 'zrender/src/Element';\nimport { defaults, retrieve2 } from 'zrender/src/core/util';\nimport { LabelLineOption, DisplayState, StatesOptionMixin } from '../util/types';\nimport Model from '../model/Model';\nimport { invert } from 'zrender/src/core/matrix';\nimport * as vector from 'zrender/src/core/vector';\nimport { DISPLAY_STATES, SPECIAL_STATES } from '../util/states';\n\nconst PI2 = Math.PI * 2;\nconst CMD = PathProxy.CMD;\n\nconst DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left'] as const;\n\ntype CandidatePosition = typeof DEFAULT_SEARCH_SPACE[number];\n\nfunction getCandidateAnchor(\n pos: CandidatePosition,\n distance: number,\n rect: RectLike,\n outPt: Point,\n outDir: Point\n) {\n const width = rect.width;\n const height = rect.height;\n switch (pos) {\n case 'top':\n outPt.set(\n rect.x + width / 2,\n rect.y - distance\n );\n outDir.set(0, -1);\n break;\n case 'bottom':\n outPt.set(\n rect.x + width / 2,\n rect.y + height + distance\n );\n outDir.set(0, 1);\n break;\n case 'left':\n outPt.set(\n rect.x - distance,\n rect.y + height / 2\n );\n outDir.set(-1, 0);\n break;\n case 'right':\n outPt.set(\n rect.x + width + distance,\n rect.y + height / 2\n );\n outDir.set(1, 0);\n break;\n }\n}\n\n\nfunction projectPointToArc(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n x: number, y: number, out: number[]\n): number {\n x -= cx;\n y -= cy;\n const d = Math.sqrt(x * x + y * y);\n x /= d;\n y /= d;\n\n // Intersect point.\n const ox = x * r + cx;\n const oy = y * r + cy;\n\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n if (anticlockwise) {\n const tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n let angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n if ((angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)) {\n // Project point is on the arc.\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n const x1 = r * Math.cos(startAngle) + cx;\n const y1 = r * Math.sin(startAngle) + cy;\n\n const x2 = r * Math.cos(endAngle) + cx;\n const y2 = r * Math.sin(endAngle) + cy;\n\n const d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y);\n const d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y);\n\n if (d1 < d2) {\n out[0] = x1;\n out[1] = y1;\n return Math.sqrt(d1);\n }\n else {\n out[0] = x2;\n out[1] = y2;\n return Math.sqrt(d2);\n }\n}\n\nfunction projectPointToLine(\n x1: number, y1: number, x2: number, y2: number, x: number, y: number, out: number[], limitToEnds: boolean\n) {\n const dx = x - x1;\n const dy = y - y1;\n\n let dx1 = x2 - x1;\n let dy1 = y2 - y1;\n\n const lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n dx1 /= lineLen;\n dy1 /= lineLen;\n\n // dot product\n const projectedLen = dx * dx1 + dy * dy1;\n let t = projectedLen / lineLen;\n if (limitToEnds) {\n t = Math.min(Math.max(t, 0), 1);\n }\n t *= lineLen;\n const ox = out[0] = x1 + t * dx1;\n const oy = out[1] = y1 + t * dy1;\n\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nfunction projectPointToRect(\n x1: number, y1: number, width: number, height: number, x: number, y: number, out: number[]\n): number {\n if (width < 0) {\n x1 = x1 + width;\n width = -width;\n }\n if (height < 0) {\n y1 = y1 + height;\n height = -height;\n }\n const x2 = x1 + width;\n const y2 = y1 + height;\n\n const ox = out[0] = Math.min(Math.max(x, x1), x2);\n const oy = out[1] = Math.min(Math.max(y, y1), y2);\n\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nconst tmpPt: number[] = [];\n\nfunction nearestPointOnRect(pt: Point, rect: RectLike, out: Point) {\n const dist = projectPointToRect(\n rect.x, rect.y, rect.width, rect.height,\n pt.x, pt.y, tmpPt\n );\n out.set(tmpPt[0], tmpPt[1]);\n return dist;\n}\n/**\n * Calculate min distance corresponding point.\n * This method won't evaluate if point is in the path.\n */\nfunction nearestPointOnPath(pt: Point, path: PathProxy, out: Point) {\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n let x1;\n let y1;\n\n let minDist = Infinity;\n\n const data = path.data;\n const x = pt.x;\n const y = pt.y;\n\n for (let i = 0; i < data.length;) {\n const cmd = data[i++];\n\n if (i === 1) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n\n let d = minDist;\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n d = cubicProjectPoint(\n xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n x, y, tmpPt\n );\n\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n d = quadraticProjectPoint(\n xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n x, y, tmpPt\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const theta = data[i++];\n const dTheta = data[i++];\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n // \u4E0D\u662F\u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n if (i <= 1) {\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n }\n // zr \u4F7F\u7528scale\u6765\u6A21\u62DF\u692D\u5706, \u8FD9\u91CC\u4E5F\u5BF9x\u505A\u4E00\u5B9A\u7684\u7F29\u653E\n const _x = (x - cx) * ry / rx + cx;\n d = projectPointToArc(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n _x, y, tmpPt\n );\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n d = projectPointToRect(x0, y0, width, height, x, y, tmpPt);\n break;\n case CMD.Z:\n d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true);\n\n xi = x0;\n yi = y0;\n break;\n }\n\n if (d < minDist) {\n minDist = d;\n out.set(tmpPt[0], tmpPt[1]);\n }\n }\n\n return minDist;\n}\n\n// Temporal varible for intermediate usage.\nconst pt0 = new Point();\nconst pt1 = new Point();\nconst pt2 = new Point();\nconst dir = new Point();\nconst dir2 = new Point();\n\n/**\n * Calculate a proper guide line based on the label position and graphic element definition\n * @param label\n * @param labelRect\n * @param target\n * @param targetRect\n */\nexport function updateLabelLinePoints(\n target: Element,\n labelLineModel: Model\n) {\n if (!target) {\n return;\n }\n\n const labelLine = target.getTextGuideLine();\n const label = target.getTextContent();\n // Needs to create text guide in each charts.\n if (!(label && labelLine)) {\n return;\n }\n\n const labelGuideConfig = target.textGuideLineConfig || {};\n\n const points = [[0, 0], [0, 0], [0, 0]];\n\n const searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n const labelRect = label.getBoundingRect().clone();\n labelRect.applyTransform(label.getComputedTransform());\n\n let minDist = Infinity;\n const anchorPoint = labelGuideConfig.anchor;\n const targetTransform = target.getComputedTransform();\n const targetInversedTransform = targetTransform && invert([], targetTransform);\n const len = labelLineModel.get('length2') || 0;\n\n if (anchorPoint) {\n pt2.copy(anchorPoint);\n }\n for (let i = 0; i < searchSpace.length; i++) {\n const candidate = searchSpace[i];\n getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n Point.scaleAndAdd(pt1, pt0, dir, len);\n\n // Transform to target coord space.\n pt1.transform(targetInversedTransform);\n\n // Note: getBoundingRect will ensure the `path` being created.\n const boundingRect = target.getBoundingRect();\n const dist = anchorPoint ? anchorPoint.distance(pt1)\n : (target instanceof Path\n ? nearestPointOnPath(pt1, target.path, pt2)\n : nearestPointOnRect(pt1, boundingRect, pt2));\n\n // TODO pt2 is in the path\n if (dist < minDist) {\n minDist = dist;\n // Transform back to global space.\n pt1.transform(targetTransform);\n pt2.transform(targetTransform);\n\n pt2.toArray(points[0]);\n pt1.toArray(points[1]);\n pt0.toArray(points[2]);\n }\n }\n\n limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n\n labelLine.setShape({ points });\n}\n\n// Temporal variable for the limitTurnAngle function\nconst tmpArr: number[] = [];\nconst tmpProjPoint = new Point();\n/**\n * Reduce the line segment attached to the label to limit the turn angle between two segments.\n * @param linePoints\n * @param minTurnAngle Radian of minimum turn angle. 0 - 180\n */\nexport function limitTurnAngle(linePoints: number[][], minTurnAngle: number) {\n if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {\n return;\n }\n minTurnAngle = minTurnAngle / 180 * Math.PI;\n // The line points can be\n // /pt1----pt2 (label)\n // /\n // pt0/\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n\n Point.sub(dir, pt0, pt1);\n Point.sub(dir2, pt2, pt1);\n\n const len1 = dir.len();\n const len2 = dir2.len();\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n\n const angleCos = dir.dot(dir2);\n const minTurnAngleCos = Math.cos(minTurnAngle);\n if (minTurnAngleCos < angleCos) { // Smaller than minTurnAngle\n // Calculate project point of pt0 on pt1-pt2\n const d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle));\n // Limit the new calculated connect point between pt1 and pt2.\n const t = pt2.x !== pt1.x\n ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x)\n : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n }\n else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\n/**\n * Limit the angle of line and the surface\n * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite\n */\nexport function limitSurfaceAngle(linePoints: vector.VectorArray[], surfaceNormal: Point, maxSurfaceAngle: number) {\n if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {\n return;\n }\n maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;\n\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n\n Point.sub(dir, pt1, pt0);\n Point.sub(dir2, pt2, pt1);\n\n const len1 = dir.len();\n const len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n\n const angleCos = dir.dot(surfaceNormal);\n const maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);\n\n if (angleCos < maxSurfaceAngleCos) {\n // Calculate project point of pt0 on pt1-pt2\n const d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n\n const HALF_PI = Math.PI / 2;\n const angle2 = Math.acos(dir2.dot(surfaceNormal));\n const newAngle = HALF_PI + angle2 - maxSurfaceAngle;\n if (newAngle >= HALF_PI) {\n // parallel\n Point.copy(tmpProjPoint, pt2);\n }\n else {\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle));\n // Limit the new calculated connect point between pt1 and pt2.\n const t = pt2.x !== pt1.x\n ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x)\n : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n }\n else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\n\ntype LabelLineModel = Model;\n\nfunction setLabelLineState(\n labelLine: Polyline,\n ignore: boolean,\n stateName: string,\n stateModel: Model\n) {\n const isNormal = stateName === 'normal';\n const stateObj = isNormal ? labelLine : labelLine.ensureState(stateName);\n // Make sure display.\n stateObj.ignore = ignore;\n // Set smooth\n let smooth = stateModel.get('smooth');\n if (smooth && smooth === true) {\n smooth = 0.3;\n }\n stateObj.shape = stateObj.shape || {};\n if (smooth > 0) {\n (stateObj.shape as Polyline['shape']).smooth = smooth as number;\n }\n\n const styleObj = stateModel.getModel('lineStyle').getLineStyle();\n isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;\n}\n\nfunction buildLabelLinePath(path: CanvasRenderingContext2D, shape: Polyline['shape']) {\n const smooth = shape.smooth as number;\n const points = shape.points;\n if (!points) {\n return;\n }\n path.moveTo(points[0][0], points[0][1]);\n if (smooth > 0 && points.length >= 3) {\n const len1 = vector.dist(points[0], points[1]);\n const len2 = vector.dist(points[1], points[2]);\n if (!len1 || !len2) {\n path.lineTo(points[1][0], points[1][1]);\n path.lineTo(points[2][0], points[2][1]);\n return;\n }\n\n const moveLen = Math.min(len1, len2) * smooth;\n\n const midPoint0 = vector.lerp([], points[1], points[0], moveLen / len1);\n const midPoint2 = vector.lerp([], points[1], points[2], moveLen / len2);\n\n const midPoint1 = vector.lerp([], midPoint0, midPoint2, 0.5);\n path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);\n path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);\n }\n else {\n for (let i = 1; i < points.length; i++) {\n path.lineTo(points[i][0], points[i][1]);\n }\n }\n}\n\n/**\n * Create a label line if necessary and set it's style.\n */\nexport function setLabelLineStyle(\n targetEl: Element,\n statesModels: Record,\n defaultStyle?: Polyline['style']\n) {\n let labelLine = targetEl.getTextGuideLine();\n const label = targetEl.getTextContent();\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n return;\n }\n\n const normalModel = statesModels.normal;\n const showNormal = normalModel.get('show');\n const labelIgnoreNormal = label.ignore;\n\n for (let i = 0; i < DISPLAY_STATES.length; i++) {\n const stateName = DISPLAY_STATES[i];\n const stateModel = statesModels[stateName];\n const isNormal = stateName === 'normal';\n if (stateModel) {\n const stateShow = stateModel.get('show');\n const isLabelIgnored = isNormal\n ? labelIgnoreNormal\n : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !retrieve2(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n const stateObj = isNormal ? labelLine : (labelLine && labelLine.states.normal);\n if (stateObj) {\n stateObj.ignore = true;\n }\n continue;\n }\n // Create labelLine if not exists\n if (!labelLine) {\n labelLine = new Polyline();\n targetEl.setTextGuideLine(labelLine);\n // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n }\n\n // Use same state proxy.\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n defaults(labelLine.style, defaultStyle);\n // Not fill.\n labelLine.style.fill = null;\n\n const showAbove = normalModel.get('showAbove');\n\n const labelLineConfig = (targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {});\n labelLineConfig.showAbove = showAbove || false;\n\n // Custom the buildPath.\n labelLine.buildPath = buildLabelLinePath;\n }\n}\n\n\nexport function getLabelLineStatesModels(\n itemModel: Model & Partial>>,\n labelLineName?: LabelName\n): Record {\n labelLineName = (labelLineName || 'labelLine') as LabelName;\n const statesModels = {\n normal: itemModel.getModel(labelLineName) as LabelLineModel\n } as Record;\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);\n }\n return statesModels;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ZRText from 'zrender/src/graphic/Text';\nimport { LabelLayoutOption } from '../util/types';\nimport { BoundingRect, OrientedBoundingRect, Polyline } from '../util/graphic';\nimport type Element from 'zrender/src/Element';\n\ninterface LabelLayoutListPrepareInput {\n label: ZRText\n labelLine: Polyline\n computedLayoutOption: LabelLayoutOption\n priority: number\n defaultAttr: {\n ignore: boolean\n labelGuideIgnore: boolean\n }\n}\n\nexport interface LabelLayoutInfo {\n label: ZRText\n labelLine: Polyline\n priority: number\n rect: BoundingRect // Global rect\n localRect: BoundingRect\n obb?: OrientedBoundingRect // Only available when axisAligned is true\n axisAligned: boolean\n layoutOption: LabelLayoutOption\n defaultAttr: {\n ignore: boolean\n labelGuideIgnore: boolean\n }\n transform: number[]\n}\n\nexport function prepareLayoutList(input: LabelLayoutListPrepareInput[]): LabelLayoutInfo[] {\n const list: LabelLayoutInfo[] = [];\n\n for (let i = 0; i < input.length; i++) {\n const rawItem = input[i];\n if (rawItem.defaultAttr.ignore) {\n continue;\n }\n\n const label = rawItem.label;\n const transform = label.getComputedTransform();\n // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el.\n const localRect = label.getBoundingRect();\n const isAxisAligned = !transform || (transform[1] < 1e-5 && transform[2] < 1e-5);\n\n const minMargin = label.style.margin || 0;\n const globalRect = localRect.clone();\n globalRect.applyTransform(transform);\n globalRect.x -= minMargin / 2;\n globalRect.y -= minMargin / 2;\n globalRect.width += minMargin;\n globalRect.height += minMargin;\n\n const obb = isAxisAligned ? new OrientedBoundingRect(localRect, transform) : null;\n\n list.push({\n label,\n labelLine: rawItem.labelLine,\n rect: globalRect,\n localRect,\n obb,\n priority: rawItem.priority,\n defaultAttr: rawItem.defaultAttr,\n layoutOption: rawItem.computedLayoutOption,\n axisAligned: isAxisAligned,\n transform\n });\n }\n return list;\n}\n\nfunction shiftLayout(\n list: Pick[],\n xyDim: 'x' | 'y',\n sizeDim: 'width' | 'height',\n minBound: number,\n maxBound: number,\n balanceShift: boolean\n) {\n const len = list.length;\n\n if (len < 2) {\n return;\n }\n\n list.sort(function (a, b) {\n return a.rect[xyDim] - b.rect[xyDim];\n });\n\n let lastPos = 0;\n let delta;\n let adjusted = false;\n\n const shifts = [];\n let totalShifts = 0;\n for (let i = 0; i < len; i++) {\n const item = list[i];\n const rect = item.rect;\n delta = rect[xyDim] - lastPos;\n if (delta < 0) {\n // shiftForward(i, len, -delta);\n rect[xyDim] -= delta;\n item.label[xyDim] -= delta;\n adjusted = true;\n }\n const shift = Math.max(-delta, 0);\n shifts.push(shift);\n totalShifts += shift;\n\n lastPos = rect[xyDim] + rect[sizeDim];\n }\n if (totalShifts > 0 && balanceShift) {\n // Shift back to make the distribution more equally.\n shiftList(-totalShifts / len, 0, len);\n }\n\n // TODO bleedMargin?\n const first = list[0];\n const last = list[len - 1];\n let minGap: number;\n let maxGap: number;\n updateMinMaxGap();\n\n // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.\n minGap < 0 && squeezeGaps(-minGap, 0.8);\n maxGap < 0 && squeezeGaps(maxGap, 0.8);\n updateMinMaxGap();\n takeBoundsGap(minGap, maxGap, 1);\n takeBoundsGap(maxGap, minGap, -1);\n\n // Handle bailout when there is not enough space.\n updateMinMaxGap();\n\n if (minGap < 0) {\n squeezeWhenBailout(-minGap);\n }\n if (maxGap < 0) {\n squeezeWhenBailout(maxGap);\n }\n\n function updateMinMaxGap() {\n minGap = first.rect[xyDim] - minBound;\n maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];\n }\n\n function takeBoundsGap(gapThisBound: number, gapOtherBound: number, moveDir: 1 | -1) {\n if (gapThisBound < 0) {\n // Move from other gap if can.\n const moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);\n if (moveFromMaxGap > 0) {\n shiftList(moveFromMaxGap * moveDir, 0, len);\n const remained = moveFromMaxGap + gapThisBound;\n if (remained < 0) {\n squeezeGaps(-remained * moveDir, 1);\n }\n }\n else {\n squeezeGaps(-gapThisBound * moveDir, 1);\n }\n }\n }\n\n function shiftList(delta: number, start: number, end: number) {\n if (delta !== 0) {\n adjusted = true;\n }\n for (let i = start; i < end; i++) {\n const item = list[i];\n const rect = item.rect;\n rect[xyDim] += delta;\n item.label[xyDim] += delta;\n }\n }\n\n // Squeeze gaps if the labels exceed margin.\n function squeezeGaps(delta: number, maxSqeezePercent: number) {\n const gaps: number[] = [];\n let totalGaps = 0;\n for (let i = 1; i < len; i++) {\n const prevItemRect = list[i - 1].rect;\n const gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);\n gaps.push(gap);\n totalGaps += gap;\n }\n if (!totalGaps) {\n return;\n }\n\n const squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);\n\n if (delta > 0) {\n for (let i = 0; i < len - 1; i++) {\n // Distribute the shift delta to all gaps.\n const movement = gaps[i] * squeezePercent;\n // Forward\n shiftList(movement, 0, i + 1);\n }\n }\n else {\n // Backward\n for (let i = len - 1; i > 0; i--) {\n // Distribute the shift delta to all gaps.\n const movement = gaps[i - 1] * squeezePercent;\n shiftList(-movement, i, len);\n }\n }\n }\n\n /**\n * Squeeze to allow overlap if there is no more space available.\n * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.\n */\n function squeezeWhenBailout(delta: number) {\n const dir = delta < 0 ? -1 : 1;\n delta = Math.abs(delta);\n const moveForEachLabel = Math.ceil(delta / (len - 1));\n\n for (let i = 0; i < len - 1; i++) {\n if (dir > 0) {\n // Forward\n shiftList(moveForEachLabel, 0, i + 1);\n }\n else {\n // Backward\n shiftList(-moveForEachLabel, len - i - 1, len);\n }\n\n delta -= moveForEachLabel;\n\n if (delta <= 0) {\n return;\n }\n }\n }\n\n return adjusted;\n}\n\n/**\n * Adjust labels on x direction to avoid overlap.\n */\nexport function shiftLayoutOnX(\n list: Pick[],\n leftBound: number,\n rightBound: number,\n // If average the shifts on all labels and add them to 0\n // TODO: Not sure if should enable it.\n // Pros: The angle of lines will distribute more equally\n // Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.\n balanceShift?: boolean\n): boolean {\n return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift);\n}\n\n/**\n * Adjust labels on y direction to avoid overlap.\n */\nexport function shiftLayoutOnY(\n list: Pick[],\n topBound: number,\n bottomBound: number,\n // If average the shifts on all labels and add them to 0\n balanceShift?: boolean\n): boolean {\n return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);\n}\n\nexport function hideOverlap(labelList: LabelLayoutInfo[]) {\n const displayedLabels: LabelLayoutInfo[] = [];\n\n // TODO, render overflow visible first, put in the displayedLabels.\n labelList.sort(function (a, b) {\n return b.priority - a.priority;\n });\n\n const globalRect = new BoundingRect(0, 0, 0, 0);\n\n function hideEl(el: Element) {\n if (!el.ignore) {\n // Show on emphasis.\n const emphasisState = el.ensureState('emphasis');\n if (emphasisState.ignore == null) {\n emphasisState.ignore = false;\n }\n }\n\n el.ignore = true;\n }\n\n for (let i = 0; i < labelList.length; i++) {\n const labelItem = labelList[i];\n const isAxisAligned = labelItem.axisAligned;\n const localRect = labelItem.localRect;\n const transform = labelItem.transform;\n const label = labelItem.label;\n const labelLine = labelItem.labelLine;\n globalRect.copy(labelItem.rect);\n // Add a threshold because layout may be aligned precisely.\n globalRect.width -= 0.1;\n globalRect.height -= 0.1;\n globalRect.x += 0.05;\n globalRect.y += 0.05;\n\n let obb = labelItem.obb;\n let overlapped = false;\n for (let j = 0; j < displayedLabels.length; j++) {\n const existsTextCfg = displayedLabels[j];\n // Fast rejection.\n if (!globalRect.intersect(existsTextCfg.rect)) {\n continue;\n }\n\n if (isAxisAligned && existsTextCfg.axisAligned) { // Is overlapped\n overlapped = true;\n break;\n }\n\n if (!existsTextCfg.obb) { // If self is not axis aligned. But other is.\n existsTextCfg.obb = new OrientedBoundingRect(existsTextCfg.localRect, existsTextCfg.transform);\n }\n\n if (!obb) { // If self is axis aligned. But other is not.\n obb = new OrientedBoundingRect(localRect, transform);\n }\n\n if (obb.intersect(existsTextCfg.obb)) {\n overlapped = true;\n break;\n }\n }\n\n // TODO Callback to determine if this overlap should be handled?\n if (overlapped) {\n hideEl(label);\n labelLine && hideEl(labelLine);\n }\n else {\n label.attr('ignore', labelItem.defaultAttr.ignore);\n labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore);\n\n displayedLabels.push(labelItem);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO: move labels out of viewport.\n\nimport {\n Text as ZRText,\n BoundingRect,\n Polyline,\n updateProps,\n initProps,\n isElementRemoved\n} from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {\n ZRTextAlign,\n ZRTextVerticalAlign,\n LabelLayoutOption,\n LabelLayoutOptionCallback,\n LabelLayoutOptionCallbackParams,\n LabelLineOption,\n Dictionary,\n ECElement,\n SeriesDataType\n} from '../util/types';\nimport { parsePercent } from '../util/number';\nimport ChartView from '../view/Chart';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport Transformable from 'zrender/src/core/Transformable';\nimport { updateLabelLinePoints, setLabelLineStyle, getLabelLineStatesModels } from './labelGuideHelper';\nimport SeriesModel from '../model/Series';\nimport { makeInner } from '../util/model';\nimport { retrieve2, each, keys, isFunction, filter, indexOf } from 'zrender/src/core/util';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport Model from '../model/Model';\nimport { prepareLayoutList, hideOverlap, shiftLayoutOnX, shiftLayoutOnY } from './labelLayoutHelper';\nimport { labelInner, animateLabelValue } from './labelStyle';\n\ninterface LabelDesc {\n label: ZRText\n labelLine: Polyline\n\n seriesModel: SeriesModel\n // Can be null if label doesn't represent any data.\n dataIndex?: number\n // Can be null if label doesn't represent any data.\n dataType?: SeriesDataType\n\n layoutOption: LabelLayoutOptionCallback | LabelLayoutOption\n computedLayoutOption: LabelLayoutOption\n\n hostRect: RectLike\n rect: RectLike\n\n priority: number\n\n defaultAttr: SavedLabelAttr\n}\n\ninterface SavedLabelAttr {\n ignore: boolean\n labelGuideIgnore: boolean\n\n x: number\n y: number\n scaleX: number\n scaleY: number\n rotation: number\n\n style: {\n align: ZRTextAlign\n verticalAlign: ZRTextVerticalAlign\n width: number\n height: number\n fontSize: number | string\n\n x: number\n y: number\n }\n\n cursor: string\n\n // Configuration in attached element\n attachedPos: ElementTextConfig['position']\n attachedRot: ElementTextConfig['rotation']\n\n}\n\nfunction cloneArr(points: number[][]) {\n if (points) {\n const newPoints = [];\n for (let i = 0; i < points.length; i++) {\n newPoints.push(points[i].slice());\n }\n return newPoints;\n }\n}\n\nfunction prepareLayoutCallbackParams(labelItem: LabelDesc, hostEl?: Element): LabelLayoutOptionCallbackParams {\n const label = labelItem.label;\n const labelLine = hostEl && hostEl.getTextGuideLine();\n return {\n dataIndex: labelItem.dataIndex,\n dataType: labelItem.dataType,\n seriesIndex: labelItem.seriesModel.seriesIndex,\n text: labelItem.label.style.text,\n rect: labelItem.hostRect,\n labelRect: labelItem.rect,\n // x: labelAttr.x,\n // y: labelAttr.y,\n align: label.style.align,\n verticalAlign: label.style.verticalAlign,\n labelLinePoints: cloneArr(labelLine && labelLine.shape.points)\n };\n}\n\nconst LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize'] as const;\n\nconst dummyTransformable = new Transformable();\n\nconst labelLayoutInnerStore = makeInner<{\n oldLayout: {\n x: number,\n y: number,\n rotation: number\n },\n oldLayoutSelect?: {\n x?: number,\n y?: number,\n rotation?: number\n },\n oldLayoutEmphasis?: {\n x?: number,\n y?: number,\n rotation?: number\n },\n\n needsUpdateLabelLine?: boolean\n}, ZRText>();\n\nconst labelLineAnimationStore = makeInner<{\n oldLayout: {\n points: number[][]\n }\n}, Polyline>();\n\ntype LabelLineOptionMixin = {\n labelLine: LabelLineOption,\n emphasis: { labelLine: LabelLineOption }\n};\n\nfunction extendWithKeys(target: Dictionary, source: Dictionary, keys: string[]) {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (source[key] != null) {\n target[key] = source[key];\n }\n }\n}\n\nconst LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation'];\n\nclass LabelManager {\n\n private _labelList: LabelDesc[] = [];\n private _chartViewList: ChartView[] = [];\n\n constructor() {}\n\n clearLabels() {\n this._labelList = [];\n this._chartViewList = [];\n }\n\n /**\n * Add label to manager\n */\n private _addLabel(\n dataIndex: number | null | undefined,\n dataType: SeriesDataType | null | undefined,\n seriesModel: SeriesModel,\n label: ZRText,\n layoutOption: LabelDesc['layoutOption']\n ) {\n const labelStyle = label.style;\n const hostEl = label.__hostTarget;\n const textConfig = hostEl.textConfig || {};\n\n // TODO: If label is in other state.\n const labelTransform = label.getComputedTransform();\n const labelRect = label.getBoundingRect().plain();\n BoundingRect.applyTransform(labelRect, labelRect, labelTransform);\n\n if (labelTransform) {\n dummyTransformable.setLocalTransform(labelTransform);\n }\n else {\n // Identity transform.\n dummyTransformable.x = dummyTransformable.y = dummyTransformable.rotation =\n dummyTransformable.originX = dummyTransformable.originY = 0;\n dummyTransformable.scaleX = dummyTransformable.scaleY = 1;\n }\n\n const host = label.__hostTarget;\n let hostRect;\n if (host) {\n hostRect = host.getBoundingRect().plain();\n const transform = host.getComputedTransform();\n BoundingRect.applyTransform(hostRect, hostRect, transform);\n }\n\n const labelGuide = hostRect && host.getTextGuideLine();\n\n this._labelList.push({\n label,\n labelLine: labelGuide,\n\n seriesModel,\n dataIndex,\n dataType,\n\n layoutOption,\n computedLayoutOption: null,\n\n rect: labelRect,\n\n hostRect,\n\n // Label with lower priority will be hidden when overlapped\n // Use rect size as default priority\n priority: hostRect ? hostRect.width * hostRect.height : 0,\n\n // Save default label attributes.\n // For restore if developers want get back to default value in callback.\n defaultAttr: {\n ignore: label.ignore,\n labelGuideIgnore: labelGuide && labelGuide.ignore,\n\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY,\n rotation: dummyTransformable.rotation,\n\n style: {\n x: labelStyle.x,\n y: labelStyle.y,\n\n align: labelStyle.align,\n verticalAlign: labelStyle.verticalAlign,\n width: labelStyle.width,\n height: labelStyle.height,\n\n fontSize: labelStyle.fontSize\n },\n\n cursor: label.cursor,\n\n attachedPos: textConfig.position,\n attachedRot: textConfig.rotation\n }\n });\n }\n\n addLabelsOfSeries(chartView: ChartView) {\n this._chartViewList.push(chartView);\n\n const seriesModel = chartView.__model;\n\n const layoutOption = seriesModel.get('labelLayout');\n\n /**\n * Ignore layouting if it's not specified anything.\n */\n if (!(isFunction(layoutOption) || keys(layoutOption).length)) {\n return;\n }\n\n chartView.group.traverse((child) => {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n // Only support label being hosted on graphic elements.\n const textEl = child.getTextContent();\n const ecData = getECData(child);\n // Can only attach the text on the element with dataIndex\n if (textEl && !(textEl as ECElement).disableLabelLayout) {\n this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption);\n }\n });\n }\n\n updateLayoutConfig(api: ExtensionAPI) {\n const width = api.getWidth();\n const height = api.getHeight();\n\n function createDragHandler(el: Element, labelLineModel: Model) {\n return function () {\n updateLabelLinePoints(el, labelLineModel);\n };\n }\n for (let i = 0; i < this._labelList.length; i++) {\n const labelItem = this._labelList[i];\n const label = labelItem.label;\n const hostEl = label.__hostTarget;\n const defaultLabelAttr = labelItem.defaultAttr;\n let layoutOption;\n // TODO A global layout option?\n if (typeof labelItem.layoutOption === 'function') {\n layoutOption = labelItem.layoutOption(\n prepareLayoutCallbackParams(labelItem, hostEl)\n );\n }\n else {\n layoutOption = labelItem.layoutOption;\n }\n\n layoutOption = layoutOption || {};\n labelItem.computedLayoutOption = layoutOption;\n\n const degreeToRadian = Math.PI / 180;\n // TODO hostEl should always exists.\n // Or label should not have parent because the x, y is all in global space.\n if (hostEl) {\n hostEl.setTextConfig({\n // Force to set local false.\n local: false,\n // Ignore position and rotation config on the host el if x or y is changed.\n position: (layoutOption.x != null || layoutOption.y != null)\n ? null : defaultLabelAttr.attachedPos,\n // Ignore rotation config on the host el if rotation is changed.\n rotation: layoutOption.rotate != null\n ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot,\n offset: [layoutOption.dx || 0, layoutOption.dy || 0]\n });\n }\n let needsUpdateLabelLine = false;\n if (layoutOption.x != null) {\n // TODO width of chart view.\n label.x = parsePercent(layoutOption.x, width);\n label.setStyle('x', 0); // Ignore movement in style. TODO: origin.\n needsUpdateLabelLine = true;\n }\n else {\n label.x = defaultLabelAttr.x;\n label.setStyle('x', defaultLabelAttr.style.x);\n }\n\n if (layoutOption.y != null) {\n // TODO height of chart view.\n label.y = parsePercent(layoutOption.y, height);\n label.setStyle('y', 0); // Ignore movement in style.\n needsUpdateLabelLine = true;\n }\n else {\n label.y = defaultLabelAttr.y;\n label.setStyle('y', defaultLabelAttr.style.y);\n }\n\n if (layoutOption.labelLinePoints) {\n const guideLine = hostEl.getTextGuideLine();\n if (guideLine) {\n guideLine.setShape({ points: layoutOption.labelLinePoints });\n // Not update\n needsUpdateLabelLine = false;\n }\n }\n\n const labelLayoutStore = labelLayoutInnerStore(label);\n labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine;\n\n label.rotation = layoutOption.rotate != null\n ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation;\n\n label.scaleX = defaultLabelAttr.scaleX;\n label.scaleY = defaultLabelAttr.scaleY;\n\n for (let k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) {\n const key = LABEL_OPTION_TO_STYLE_KEYS[k];\n label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]);\n }\n\n\n if (layoutOption.draggable) {\n label.draggable = true;\n label.cursor = 'move';\n if (hostEl) {\n let hostModel: Model =\n labelItem.seriesModel as SeriesModel;\n if (labelItem.dataIndex != null) {\n const data = labelItem.seriesModel.getData(labelItem.dataType);\n hostModel = data.getItemModel(labelItem.dataIndex);\n }\n label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine')));\n }\n }\n else {\n // TODO Other drag functions?\n label.off('drag');\n label.cursor = defaultLabelAttr.cursor;\n }\n }\n }\n\n layout(api: ExtensionAPI) {\n const width = api.getWidth();\n const height = api.getHeight();\n\n const labelList = prepareLayoutList(this._labelList);\n const labelsNeedsAdjustOnX = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftX';\n });\n const labelsNeedsAdjustOnY = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftY';\n });\n\n shiftLayoutOnX(labelsNeedsAdjustOnX, 0, width);\n shiftLayoutOnY(labelsNeedsAdjustOnY, 0, height);\n\n const labelsNeedsHideOverlap = filter(labelList, function (item) {\n return item.layoutOption.hideOverlap;\n });\n\n hideOverlap(labelsNeedsHideOverlap);\n }\n\n /**\n * Process all labels. Not only labels with layoutOption.\n */\n processLabelsOverall() {\n each(this._chartViewList, (chartView) => {\n const seriesModel = chartView.__model;\n const ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate;\n const animationEnabled = seriesModel.isAnimationEnabled();\n\n chartView.group.traverse((child) => {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n let needsUpdateLabelLine = !ignoreLabelLineUpdate;\n const label = child.getTextContent();\n if (!needsUpdateLabelLine && label) {\n needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine;\n }\n if (needsUpdateLabelLine) {\n this._updateLabelLine(child, seriesModel);\n }\n\n if (animationEnabled) {\n this._animateLabels(child, seriesModel);\n }\n });\n });\n }\n\n private _updateLabelLine(el: Element, seriesModel: SeriesModel) {\n // Only support label being hosted on graphic elements.\n const textEl = el.getTextContent();\n // Update label line style.\n const ecData = getECData(el);\n const dataIndex = ecData.dataIndex;\n\n // Only support labelLine on the labels represent data.\n if (textEl && dataIndex != null) {\n const data = seriesModel.getData(ecData.dataType);\n const itemModel = data.getItemModel(dataIndex);\n\n const defaultStyle: PathStyleProps = {};\n const visualStyle = data.getItemVisual(dataIndex, 'style');\n const visualType = data.getVisual('drawType');\n // Default to be same with main color\n defaultStyle.stroke = visualStyle[visualType];\n\n const labelLineModel = itemModel.getModel('labelLine');\n\n setLabelLineStyle(el, getLabelLineStatesModels(itemModel), defaultStyle);\n\n updateLabelLinePoints(el, labelLineModel);\n }\n }\n\n private _animateLabels(el: Element, seriesModel: SeriesModel) {\n const textEl = el.getTextContent();\n const guideLine = el.getTextGuideLine();\n // Animate\n if (textEl\n && !textEl.ignore\n && !textEl.invisible\n && !(el as ECElement).disableLabelAnimation\n && !isElementRemoved(el)\n ) {\n const layoutStore = labelLayoutInnerStore(textEl);\n const oldLayout = layoutStore.oldLayout;\n const ecData = getECData(el);\n const dataIndex = ecData.dataIndex;\n const newProps = {\n x: textEl.x,\n y: textEl.y,\n rotation: textEl.rotation\n };\n const data = seriesModel.getData(ecData.dataType);\n\n if (!oldLayout) {\n textEl.attr(newProps);\n // Disable fade in animation if value animation is enabled.\n if (!labelInner(textEl).valueAnimation) {\n const oldOpacity = retrieve2(textEl.style.opacity, 1);\n // Fade in animation\n textEl.style.opacity = 0;\n initProps(textEl, {\n style: { opacity: oldOpacity }\n }, seriesModel, dataIndex);\n }\n }\n else {\n textEl.attr(oldLayout);\n\n // Make sure the animation from is in the right status.\n const prevStates = el.prevStates;\n if (prevStates) {\n if (indexOf(prevStates, 'select') >= 0) {\n textEl.attr(layoutStore.oldLayoutSelect);\n }\n if (indexOf(prevStates, 'emphasis') >= 0) {\n textEl.attr(layoutStore.oldLayoutEmphasis);\n }\n }\n updateProps(textEl, newProps, seriesModel, dataIndex);\n }\n layoutStore.oldLayout = newProps;\n\n if (textEl.states.select) {\n const layoutSelect = layoutStore.oldLayoutSelect = {};\n extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS);\n }\n\n if (textEl.states.emphasis) {\n const layoutEmphasis = layoutStore.oldLayoutEmphasis = {};\n extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS);\n }\n\n animateLabelValue(textEl, dataIndex, data, seriesModel, seriesModel);\n }\n\n if (guideLine && !guideLine.ignore && !guideLine.invisible) {\n const layoutStore = labelLineAnimationStore(guideLine);\n const oldLayout = layoutStore.oldLayout;\n const newLayout = { points: guideLine.shape.points };\n if (!oldLayout) {\n guideLine.setShape(newLayout);\n guideLine.style.strokePercent = 0;\n initProps(guideLine, {\n style: { strokePercent: 1 }\n }, seriesModel);\n }\n else {\n guideLine.attr({ shape: oldLayout });\n updateProps(guideLine, {\n shape: newLayout\n }, seriesModel);\n }\n\n layoutStore.oldLayout = newLayout;\n }\n }\n}\n\n\nexport default LabelManager;", "import { EChartsExtensionInstallRegisters } from '../extension';\nimport { makeInner } from '../util/model';\nimport LabelManager from './LabelManager';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\nconst getLabelManager = makeInner<{ labelManager: LabelManager }, ExtensionAPI>();\nexport function installLabelLayout(registers: EChartsExtensionInstallRegisters) {\n registers.registerUpdateLifecycle('series:beforeupdate', (ecModel, api, params) => {\n // TODO api provide an namespace that can save stuff per instance\n let labelManager = getLabelManager(api).labelManager;\n if (!labelManager) {\n labelManager = getLabelManager(api).labelManager = new LabelManager();\n }\n labelManager.clearLabels();\n });\n\n registers.registerUpdateLifecycle('series:layoutlabels', (ecModel, api, params) => {\n const labelManager = getLabelManager(api).labelManager;\n\n params.updatedSeries.forEach(series => {\n labelManager.addLabelsOfSeries(api.getViewOfSeriesModel(series));\n });\n labelManager.updateLayoutConfig(api);\n labelManager.layout(api);\n labelManager.processLabelsOverall();\n });\n}", "import { parse } from '../tool/color';\n\nexport function createElement(name: string) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\nexport function normalizeColor(color: string): { color: string, opacity: number } {\n let opacity;\n if (!color || color === 'transparent') {\n color = 'none';\n }\n else if (typeof color === 'string' && color.indexOf('rgba') > -1) {\n const arr = parse(color);\n if (arr) {\n color = 'rgb(' + arr[0] + ',' + arr[1] + ',' + arr[2] + ')';\n opacity = arr[3];\n }\n }\n return {\n color,\n opacity: opacity == null ? 1 : opacity\n };\n}\n", "// Myers' Diff Algorithm\n// Modified from https://github.com/kpdecker/jsdiff/blob/master/src/diff/base.js\ntype EqualFunc = (a: T, b: T) => boolean;\n\ntype DiffComponent = {\n count: number\n added: boolean\n removed: boolean,\n indices: number[]\n}\n\ntype DiffPath = {\n components: DiffComponent[],\n newPos: number\n}\n\nfunction diff(oldArr: T[], newArr: T[], equals: EqualFunc): DiffComponent[] {\n if (!equals) {\n equals = function (a, b) {\n return a === b;\n };\n }\n\n oldArr = oldArr.slice();\n newArr = newArr.slice();\n // Allow subclasses to massage the input prior to running\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath: DiffPath[] = [{ newPos: -1, components: [] }];\n\n // Seed editLength = 0, i.e. the content starts with the same values\n var oldPos = extractCommon(bestPath[0], newArr, oldArr, 0, equals);\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n var indices = [];\n for (let i = 0; i < newArr.length; i++) {\n indices.push(i);\n }\n // Identity per the equality and tokenizer\n return [{\n indices: indices,\n count: newArr.length,\n added: false,\n removed: false\n }];\n }\n\n // Main worker method. checks all permutations of a given edit length for acceptance.\n function execEditLength() {\n for (let diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath;\n var addPath = bestPath[diagonalPath - 1];\n var removePath = bestPath[diagonalPath + 1];\n var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen;\n var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {\n basePath = clonePath(removePath);\n pushComponent(basePath.components, false, true);\n }\n else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n pushComponent(basePath.components, true, false);\n }\n\n oldPos = extractCommon(basePath, newArr, oldArr, diagonalPath, equals);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n return buildValues(basePath.components);\n }\n else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }\n\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n if (ret) {\n return ret;\n }\n }\n}\n\nfunction extractCommon(basePath: DiffPath, newArr: T[], oldArr: T[], diagonalPath: number, equals: EqualFunc) {\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var newPos = basePath.newPos;\n var oldPos = newPos - diagonalPath;\n var commonCount = 0;\n\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && equals(newArr[newPos + 1], oldArr[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n\n if (commonCount) {\n basePath.components.push({\n count: commonCount,\n added: false,\n removed: false,\n indices: []\n });\n }\n\n basePath.newPos = newPos;\n return oldPos;\n}\n\nfunction pushComponent(components: DiffComponent[], added: boolean, removed: boolean) {\n var last = components[components.length - 1];\n if (last && last.added === added && last.removed === removed) {\n // We need to clone here as the component clone operation is just\n // as shallow array clone\n components[components.length - 1] = {\n count: last.count + 1,\n added,\n removed,\n indices: []\n };\n }\n else {\n components.push({\n count: 1,\n added,\n removed,\n indices: []\n });\n }\n}\n\nfunction buildValues(components: DiffComponent[]) {\n var componentPos = 0;\n var componentLen = components.length;\n var newPos = 0;\n var oldPos = 0;\n\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n if (!component.removed) {\n var indices = [];\n for (let i = newPos; i < newPos + component.count; i++) {\n indices.push(i);\n }\n component.indices = indices;\n newPos += component.count;\n // Common case\n if (!component.added) {\n oldPos += component.count;\n }\n }\n else {\n for (let i = oldPos; i < oldPos + component.count; i++) {\n component.indices.push(i);\n }\n oldPos += component.count;\n }\n }\n\n return components;\n}\n\nfunction clonePath(path: DiffPath) {\n return { newPos: path.newPos, components: path.components.slice(0) };\n}\n\nexport default function arrayDiff (oldArr: T[], newArr: T[], equal?: EqualFunc): DiffComponent[] {\n return diff(oldArr, newArr, equal);\n}", "// TODO\n// 1. shadow\n// 2. Image: sx, sy, sw, sh\n\nimport {createElement, normalizeColor} from './core';\nimport { PathRebuilder } from '../core/PathProxy';\nimport * as matrix from '../core/matrix';\nimport Path, { PathStyleProps } from '../graphic/Path';\nimport ZRImage, { ImageStyleProps } from '../graphic/Image';\nimport { DEFAULT_FONT, getLineHeight } from '../contain/text';\nimport TSpan, { TSpanStyleProps } from '../graphic/TSpan';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\n\nexport interface SVGProxy {\n brush(el: T): void\n}\n\nconst NONE = 'none';\nconst mathRound = Math.round;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI = Math.PI;\nconst PI2 = Math.PI * 2;\nconst degree = 180 / PI;\n\nconst EPSILON = 1e-4;\n\ntype AllStyleOption = PathStyleProps | TSpanStyleProps | ImageStyleProps;\n\nfunction round3(val: number) {\n return mathRound(val * 1e3) / 1e3;\n}\nfunction round4(val: number) {\n return mathRound(val * 1e4) / 1e4;\n}\n\nfunction isAroundZero(val: number) {\n return val < EPSILON && val > -EPSILON;\n}\n\nfunction pathHasFill(style: AllStyleOption): style is PathStyleProps {\n const fill = (style as PathStyleProps).fill;\n return fill != null && fill !== NONE;\n}\n\nfunction pathHasStroke(style: AllStyleOption): style is PathStyleProps {\n const stroke = (style as PathStyleProps).stroke;\n return stroke != null && stroke !== NONE;\n}\n\nfunction setTransform(svgEl: SVGElement, m: matrix.MatrixArray) {\n if (m) {\n attr(svgEl, 'transform', 'matrix('\n // Avoid large string of matrix\n // PENDING If have precision issue when scaled\n + round3(m[0]) + ','\n + round3(m[1]) + ','\n + round3(m[2]) + ','\n + round3(m[3]) + ','\n + round4(m[4]) + ','\n + round4(m[5])\n + ')');\n }\n}\n\nfunction attr(el: SVGElement, key: string, val: string) {\n if (!val || (val as any).type !== 'linear' && (val as any).type !== 'radial') {\n // Don't set attribute for gradient, since it need new dom nodes\n el.setAttribute(key, val);\n }\n}\n\nfunction attrXLink(el: SVGElement, key: string, val: string) {\n el.setAttributeNS('http://www.w3.org/1999/xlink', key, val);\n}\n\nfunction attrXML(el: SVGElement, key: string, val: string) {\n el.setAttributeNS('http://www.w3.org/XML/1998/namespace', key, val);\n}\n\nfunction bindStyle(svgEl: SVGElement, style: PathStyleProps, el?: Path): void\nfunction bindStyle(svgEl: SVGElement, style: TSpanStyleProps, el?: TSpan): void\nfunction bindStyle(svgEl: SVGElement, style: ImageStyleProps, el?: ZRImage): void\nfunction bindStyle(svgEl: SVGElement, style: AllStyleOption, el?: Path | TSpan | ZRImage) {\n const opacity = style.opacity == null ? 1 : style.opacity;\n\n // only set opacity. stroke and fill cannot be applied to svg image\n if (el instanceof ZRImage) {\n svgEl.style.opacity = opacity + '';\n return;\n }\n\n if (pathHasFill(style)) {\n const fill = normalizeColor(style.fill as string);\n attr(svgEl, 'fill', fill.color);\n attr(svgEl,\n 'fill-opacity',\n (style.fillOpacity != null\n ? style.fillOpacity * fill.opacity * opacity\n : fill.opacity * opacity\n ) + ''\n );\n }\n else {\n attr(svgEl, 'fill', NONE);\n }\n\n if (pathHasStroke(style)) {\n const stroke = normalizeColor(style.stroke as string);\n attr(svgEl, 'stroke', stroke.color);\n const strokeWidth = style.lineWidth;\n const strokeScale = style.strokeNoScale\n ? (el as Path).getLineScale()\n : 1;\n attr(svgEl, 'stroke-width', (strokeScale ? strokeWidth / strokeScale : 0) + '');\n // stroke then fill for text; fill then stroke for others\n attr(svgEl, 'paint-order', style.strokeFirst ? 'stroke' : 'fill');\n attr(svgEl, 'stroke-opacity', (\n style.strokeOpacity != null\n ? style.strokeOpacity * stroke.opacity * opacity\n : stroke.opacity * opacity\n ) + '');\n let lineDash = style.lineDash && strokeWidth > 0 && normalizeLineDash(style.lineDash, strokeWidth);\n if (lineDash) {\n let lineDashOffset = style.lineDashOffset;\n if (strokeScale && strokeScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / strokeScale;\n });\n if (lineDashOffset) {\n lineDashOffset /= strokeScale;\n lineDashOffset = mathRound(lineDashOffset);\n }\n }\n attr(svgEl, 'stroke-dasharray', lineDash.join(','));\n attr(svgEl, 'stroke-dashoffset', (lineDashOffset || 0) + '');\n }\n else {\n attr(svgEl, 'stroke-dasharray', '');\n }\n\n // PENDING\n style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap);\n style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin);\n style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit + '');\n }\n else {\n attr(svgEl, 'stroke', NONE);\n }\n}\n\nclass SVGPathRebuilder implements PathRebuilder {\n _d: (string | number)[]\n _str: string\n _invalid: boolean\n\n reset() {\n this._d = [];\n this._str = '';\n }\n moveTo(x: number, y: number) {\n this._add('M', x, y);\n }\n lineTo(x: number, y: number) {\n this._add('L', x, y);\n }\n bezierCurveTo(x: number, y: number, x2: number, y2: number, x3: number, y3: number) {\n this._add('C', x, y, x2, y2, x3, y3);\n }\n quadraticCurveTo(x: number, y: number, x2: number, y2: number) {\n this._add('Q', x, y, x2, y2);\n }\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean) {\n this.ellipse(cx, cy, r, r, 0, startAngle, endAngle, anticlockwise);\n }\n ellipse(\n cx: number, cy: number,\n rx: number, ry: number,\n psi: number,\n startAngle: number,\n endAngle: number,\n anticlockwise: boolean\n ) {\n\n const firstCmd = this._d.length === 0;\n\n let dTheta = endAngle - startAngle;\n const clockwise = !anticlockwise;\n\n const dThetaPositive = Math.abs(dTheta);\n const isCircle = isAroundZero(dThetaPositive - PI2)\n || (clockwise ? dTheta >= PI2 : -dTheta >= PI2);\n\n // Mapping to 0~2PI\n const unifiedTheta = dTheta > 0 ? dTheta % PI2 : (dTheta % PI2 + PI2);\n\n let large = false;\n if (isCircle) {\n large = true;\n }\n else if (isAroundZero(dThetaPositive)) {\n large = false;\n }\n else {\n large = (unifiedTheta >= PI) === !!clockwise;\n }\n\n const x0 = round4(cx + rx * mathCos(startAngle));\n const y0 = round4(cy + ry * mathSin(startAngle));\n\n // It will not draw if start point and end point are exactly the same\n // We need to shift the end point with a small value\n // FIXME A better way to draw circle ?\n if (isCircle) {\n if (clockwise) {\n dTheta = PI2 - 1e-4;\n }\n else {\n dTheta = -PI2 + 1e-4;\n }\n\n large = true;\n\n if (firstCmd) {\n // Move to (x0, y0) only when CMD.A comes at the\n // first position of a shape.\n // For instance, when drawing a ring, CMD.A comes\n // after CMD.M, so it's unnecessary to move to\n // (x0, y0).\n this._d.push('M', x0, y0);\n }\n }\n\n const x = round4(cx + rx * mathCos(startAngle + dTheta));\n const y = round4(cy + ry * mathSin(startAngle + dTheta));\n\n if (isNaN(x0) || isNaN(y0) || isNaN(rx) || isNaN(ry) || isNaN(psi) || isNaN(degree) || isNaN(x) || isNaN(y)) {\n return '';\n }\n\n // FIXME Ellipse\n this._d.push('A', round4(rx), round4(ry),\n mathRound(psi * degree), +large, +clockwise, x, y);\n }\n rect(x: number, y: number, w: number, h: number) {\n this._add('M', x, y);\n this._add('L', x + w, y);\n this._add('L', x + w, y + h);\n this._add('L', x, y + h);\n this._add('L', x, y);\n this._add('Z');\n }\n closePath() {\n // Not use Z as first command\n if (this._d.length > 0) {\n this._add('Z');\n }\n }\n\n _add(cmd: string, a?: number, b?: number, c?: number, d?: number, e?: number, f?: number, g?: number, h?: number) {\n this._d.push(cmd);\n for (let i = 1; i < arguments.length; i++) {\n const val = arguments[i];\n if (isNaN(val)) {\n this._invalid = true;\n return;\n }\n this._d.push(round4(val));\n }\n }\n\n generateStr() {\n this._str = this._invalid ? '' : this._d.join(' ');\n this._d = [];\n }\n getStr() {\n return this._str;\n }\n}\n\ninterface PathWithSVGBuildPath extends Path {\n __svgPathVersion: number\n __svgPathBuilder: SVGPathRebuilder\n}\n\nconst svgPath: SVGProxy = {\n brush(el: Path) {\n const style = el.style;\n\n let svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('path');\n el.__svgEl = svgEl;\n }\n\n if (!el.path) {\n el.createPathProxy();\n }\n const path = el.path;\n\n if (el.shapeChanged()) {\n path.beginPath();\n el.buildPath(path, el.shape);\n el.pathUpdated();\n }\n\n const pathVersion = path.getVersion();\n const elExt = el as PathWithSVGBuildPath;\n let svgPathBuilder = elExt.__svgPathBuilder;\n if (elExt.__svgPathVersion !== pathVersion || !svgPathBuilder || el.style.strokePercent < 1) {\n if (!svgPathBuilder) {\n svgPathBuilder = elExt.__svgPathBuilder = new SVGPathRebuilder();\n }\n svgPathBuilder.reset();\n path.rebuildPath(svgPathBuilder, el.style.strokePercent);\n svgPathBuilder.generateStr();\n elExt.__svgPathVersion = pathVersion;\n }\n\n attr(svgEl, 'd', svgPathBuilder.getStr());\n\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\n\nexport {svgPath as path};\n\n/***************************************************\n * IMAGE\n **************************************************/\nconst svgImage: SVGProxy = {\n brush(el: ZRImage) {\n const style = el.style;\n let image = style.image;\n\n if (image instanceof HTMLImageElement) {\n image = image.src;\n }\n // heatmap layer in geo may be a canvas\n else if (image instanceof HTMLCanvasElement) {\n image = image.toDataURL();\n }\n if (!image) {\n return;\n }\n\n const x = style.x || 0;\n const y = style.y || 0;\n\n const dw = style.width;\n const dh = style.height;\n\n let svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('image');\n el.__svgEl = svgEl;\n }\n\n if (image !== el.__imageSrc) {\n attrXLink(svgEl, 'href', image as string);\n // Caching image src\n el.__imageSrc = image as string;\n }\n\n attr(svgEl, 'width', dw + '');\n attr(svgEl, 'height', dh + '');\n\n attr(svgEl, 'x', x + '');\n attr(svgEl, 'y', y + '');\n\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport {svgImage as image};\n\n/***************************************************\n * TEXT\n **************************************************/\nconst TEXT_ALIGN_TO_ANCHOR = {\n left: 'start',\n right: 'end',\n center: 'middle',\n middle: 'middle'\n};\n\nfunction adjustTextY(y: number, lineHeight: number, textBaseline: CanvasTextBaseline): number {\n // TODO Other values.\n if (textBaseline === 'top') {\n y += lineHeight / 2;\n }\n else if (textBaseline === 'bottom') {\n y -= lineHeight / 2;\n }\n return y;\n}\n\nconst svgText: SVGProxy = {\n brush(el: TSpan) {\n const style = el.style;\n\n let text = style.text;\n // Convert to string\n text != null && (text += '');\n if (!text || isNaN(style.x) || isNaN(style.y)) {\n return;\n }\n\n let textSvgEl = el.__svgEl as SVGTextElement;\n if (!textSvgEl) {\n textSvgEl = createElement('text') as SVGTextElement;\n attrXML(textSvgEl, 'xml:space', 'preserve');\n el.__svgEl = textSvgEl;\n }\n\n const font = style.font || DEFAULT_FONT;\n\n // style.font has been normalized by `normalizeTextStyle`.\n const textSvgElStyle = textSvgEl.style;\n textSvgElStyle.font = font;\n\n textSvgEl.textContent = text;\n\n bindStyle(textSvgEl, style, el);\n setTransform(textSvgEl, el.transform);\n\n // Consider different font display differently in vertial align, we always\n // set vertialAlign as 'middle', and use 'y' to locate text vertically.\n const x = style.x || 0;\n const y = adjustTextY(style.y || 0, getLineHeight(font), style.textBaseline);\n const textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign as keyof typeof TEXT_ALIGN_TO_ANCHOR]\n || style.textAlign;\n\n attr(textSvgEl, 'dominant-baseline', 'central');\n attr(textSvgEl, 'text-anchor', textAlign);\n attr(textSvgEl, 'x', x + '');\n attr(textSvgEl, 'y', y + '');\n }\n};\nexport {svgText as text};\n", "/**\n * @file Manages elements that can be defined in in SVG,\n * e.g., gradients, clip path, etc.\n * @author Zhang Wenli\n */\n\nimport {createElement} from '../core';\nimport * as zrUtil from '../../core/util';\nimport Path from '../../graphic/Path';\nimport ZRImage from '../../graphic/Image';\nimport TSpan from '../../graphic/TSpan';\nimport {\n path as svgPath,\n image as svgImage,\n text as svgText\n} from '../graphic';\nimport Displayable from '../../graphic/Displayable';\n\n\nconst MARK_UNUSED = '0';\nconst MARK_USED = '1';\n\n/**\n * Manages elements that can be defined in in SVG,\n * e.g., gradients, clip path, etc.\n */\nexport default class Definable {\n\n nextId = 0\n\n protected _zrId: number\n protected _svgRoot: SVGElement\n protected _tagNames: string[]\n protected _markLabel: string\n protected _domName: string = '_dom'\n\n constructor(\n zrId: number, // zrender instance id\n svgRoot: SVGElement, // root of SVG document\n tagNames: string | string[], // possible tag names\n markLabel: string, // label name to make if the element\n domName?: string\n ) {\n this._zrId = zrId;\n this._svgRoot = svgRoot;\n this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames;\n this._markLabel = markLabel;\n\n if (domName) {\n this._domName = domName;\n }\n }\n\n createElement = createElement\n\n\n /**\n * Get the tag for svgRoot; optionally creates one if not exists.\n *\n * @param isForceCreating if need to create when not exists\n * @return SVG element, null if it doesn't\n * exist and isForceCreating is false\n */\n getDefs(isForceCreating?: boolean): SVGDefsElement {\n let svgRoot = this._svgRoot;\n let defs = this._svgRoot.getElementsByTagName('defs');\n if (defs.length === 0) {\n // Not exist\n if (isForceCreating) {\n let defs = svgRoot.insertBefore(\n this.createElement('defs'), // Create new tag\n svgRoot.firstChild // Insert in the front of svg\n ) as SVGDefsElement;\n if (!defs.contains) {\n // IE doesn't support contains method\n defs.contains = function (el) {\n const children = defs.children;\n if (!children) {\n return false;\n }\n for (let i = children.length - 1; i >= 0; --i) {\n if (children[i] === el) {\n return true;\n }\n }\n return false;\n };\n }\n return defs;\n }\n else {\n return null;\n }\n }\n else {\n return defs[0];\n }\n }\n\n\n /**\n * Update DOM element if necessary.\n *\n * @param element style element. e.g., for gradient,\n * it may be '#ccc' or {type: 'linear', ...}\n * @param onUpdate update callback\n */\n doUpdate(target: T, onUpdate?: (target: T) => void) {\n if (!target) {\n return;\n }\n\n const defs = this.getDefs(false);\n if ((target as any)[this._domName] && defs.contains((target as any)[this._domName])) {\n // Update DOM\n if (typeof onUpdate === 'function') {\n onUpdate(target);\n }\n }\n else {\n // No previous dom, create new\n const dom = this.add(target);\n if (dom) {\n (target as any)[this._domName] = dom;\n }\n }\n }\n\n add(target: any): SVGElement {\n return null;\n }\n\n /**\n * Add gradient dom to defs\n *\n * @param dom DOM to be added to \n */\n addDom(dom: SVGElement) {\n const defs = this.getDefs(true);\n if (dom.parentNode !== defs) {\n defs.appendChild(dom);\n }\n }\n\n\n /**\n * Remove DOM of a given element.\n *\n * @param target Target where to attach the dom\n */\n removeDom(target: T) {\n const defs = this.getDefs(false);\n if (defs && (target as any)[this._domName]) {\n defs.removeChild((target as any)[this._domName]);\n (target as any)[this._domName] = null;\n }\n }\n\n\n /**\n * Get DOMs of this element.\n *\n * @return doms of this defineable elements in \n */\n getDoms() {\n const defs = this.getDefs(false);\n if (!defs) {\n // No dom when defs is not defined\n return [];\n }\n\n let doms: SVGElement[] = [];\n zrUtil.each(this._tagNames, function (tagName) {\n const tags = defs.getElementsByTagName(tagName) as HTMLCollectionOf;\n // Note that tags is HTMLCollection, which is array-like\n // rather than real array.\n // So `doms.concat(tags)` add tags as one object.\n for (let i = 0; i < tags.length; i++) {\n doms.push(tags[i]);\n }\n });\n\n return doms;\n }\n\n\n /**\n * Mark DOMs to be unused before painting, and clear unused ones at the end\n * of the painting.\n */\n markAllUnused() {\n const doms = this.getDoms();\n const that = this;\n zrUtil.each(doms, function (dom) {\n (dom as any)[that._markLabel] = MARK_UNUSED;\n });\n }\n\n\n /**\n * Mark a single DOM to be used.\n *\n * @param dom DOM to mark\n */\n markDomUsed(dom: SVGElement) {\n dom && ((dom as any)[this._markLabel] = MARK_USED);\n };\n\n markDomUnused(dom: SVGElement) {\n dom && ((dom as any)[this._markLabel] = MARK_UNUSED);\n };\n\n isDomUnused(dom: SVGElement) {\n return dom && (dom as any)[this._markLabel] !== MARK_USED;\n }\n\n /**\n * Remove unused DOMs defined in \n */\n removeUnused() {\n const defs = this.getDefs(false);\n if (!defs) {\n // Nothing to remove\n return;\n }\n\n const doms = this.getDoms();\n zrUtil.each(doms, (dom) => {\n if (this.isDomUnused(dom)) {\n // Remove gradient\n defs.removeChild(dom);\n }\n });\n }\n\n\n /**\n * Get SVG proxy.\n *\n * @param displayable displayable element\n * @return svg proxy of given element\n */\n getSvgProxy(displayable: Displayable) {\n if (displayable instanceof Path) {\n return svgPath;\n }\n else if (displayable instanceof ZRImage) {\n return svgImage;\n }\n else if (displayable instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n }\n\n\n /**\n * Get SVG element.\n *\n * @param displayable displayable element\n * @return SVG element\n */\n getSvgElement(displayable: Displayable): SVGElement {\n return displayable.__svgEl;\n }\n\n}", "/**\n * @file Manages SVG gradient elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport * as colorTool from '../../tool/color';\nimport Displayable from '../../graphic/Displayable';\nimport { GradientObject } from '../../graphic/Gradient';\nimport { LinearGradientObject } from '../../graphic/LinearGradient';\nimport { RadialGradientObject } from '../../graphic/RadialGradient';\n\nfunction isLinearGradient(value: GradientObject): value is LinearGradientObject {\n return value.type === 'linear';\n}\n\nfunction isRadialGradient(value: GradientObject): value is RadialGradientObject {\n return value.type === 'radial';\n}\n\nfunction isGradient(value: GradientObject | string): value is GradientObject {\n return value && (\n (value as GradientObject).type === 'linear'\n || (value as GradientObject).type === 'radial'\n );\n}\n\n\ntype GradientObjectExtended = GradientObject & {\n __dom: SVGElement\n}\n\n/**\n * Manages SVG gradient elements.\n *\n * @param zrId zrender instance id\n * @param svgRoot root of SVG document\n */\nexport default class GradientManager extends Definable {\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['linearGradient', 'radialGradient'], '__gradient_in_use__');\n }\n\n\n /**\n * Create new gradient DOM for fill or stroke if not exist,\n * but will not update gradient if exists.\n *\n * @param svgElement SVG element to paint\n * @param displayable zrender displayable element\n */\n addWithoutUpdate(\n svgElement: SVGElement,\n displayable: Displayable\n ) {\n if (displayable && displayable.style) {\n const that = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke: 'fill' | 'stroke') {\n let value = displayable.style[fillOrStroke] as GradientObject;\n if (isGradient(value)) {\n const gradient = value as GradientObjectExtended;\n const defs = that.getDefs(true);\n\n // Create dom in if not exists\n let dom;\n if (gradient.__dom) {\n // Gradient exists\n dom = gradient.__dom;\n if (!defs.contains(gradient.__dom)) {\n // __dom is no longer in defs, recreate\n that.addDom(dom);\n }\n }\n else {\n // New dom\n dom = that.add(gradient);\n }\n\n that.markUsed(displayable);\n\n const id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n }\n\n\n /**\n * Add a new gradient tag in \n *\n * @param gradient zr gradient instance\n */\n add(gradient: GradientObject): SVGElement {\n let dom;\n if (isLinearGradient(gradient)) {\n dom = this.createElement('linearGradient');\n }\n else if (isRadialGradient(gradient)) {\n dom = this.createElement('radialGradient');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return null;\n }\n\n // Set dom id with gradient id, since each gradient instance\n // will have no more than one dom element.\n // id may exists before for those dirty elements, in which case\n // id should remain the same, and other attributes should be\n // updated.\n gradient.id = gradient.id || this.nextId++;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-gradient-' + gradient.id);\n\n this.updateDom(gradient, dom);\n this.addDom(dom);\n\n return dom;\n }\n\n\n /**\n * Update gradient.\n *\n * @param gradient zr gradient instance or color string\n */\n update(gradient: GradientObject | string) {\n if (!isGradient(gradient)) {\n return;\n }\n\n const that = this;\n this.doUpdate(gradient, function () {\n const dom = (gradient as GradientObjectExtended).__dom;\n if (!dom) {\n return;\n }\n\n const tagName = dom.tagName;\n const type = gradient.type;\n if (type === 'linear' && tagName === 'linearGradient'\n || type === 'radial' && tagName === 'radialGradient'\n ) {\n // Gradient type is not changed, update gradient\n that.updateDom(gradient, (gradient as GradientObjectExtended).__dom);\n }\n else {\n // Remove and re-create if type is changed\n that.removeDom(gradient);\n that.add(gradient);\n }\n });\n }\n\n\n /**\n * Update gradient dom\n *\n * @param gradient zr gradient instance\n * @param dom DOM to update\n */\n updateDom(gradient: GradientObject, dom: SVGElement) {\n if (isLinearGradient(gradient)) {\n dom.setAttribute('x1', gradient.x + '');\n dom.setAttribute('y1', gradient.y + '');\n dom.setAttribute('x2', gradient.x2 + '');\n dom.setAttribute('y2', gradient.y2 + '');\n }\n else if (isRadialGradient(gradient)) {\n dom.setAttribute('cx', gradient.x + '');\n dom.setAttribute('cy', gradient.y + '');\n dom.setAttribute('r', gradient.r + '');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return;\n }\n\n if (gradient.global) {\n // x1, x2, y1, y2 in range of 0 to canvas width or height\n dom.setAttribute('gradientUnits', 'userSpaceOnUse');\n }\n else {\n // x1, x2, y1, y2 in range of 0 to 1\n dom.setAttribute('gradientUnits', 'objectBoundingBox');\n }\n\n // Remove color stops if exists\n dom.innerHTML = '';\n\n // Add color stops\n const colors = gradient.colorStops;\n for (let i = 0, len = colors.length; i < len; ++i) {\n const stop = this.createElement('stop');\n stop.setAttribute('offset', colors[i].offset * 100 + '%');\n\n const color = colors[i].color;\n if (color.indexOf('rgba') > -1) {\n // Fix Safari bug that stop-color not recognizing alpha #9014\n const opacity = colorTool.parse(color)[3];\n const hex = colorTool.toHex(color);\n\n // stop-color cannot be color, since:\n // The opacity value used for the gradient calculation is the\n // *product* of the value of stop-opacity and the opacity of the\n // value of stop-color.\n // See https://www.w3.org/TR/SVG2/pservers.html#StopOpacityProperty\n stop.setAttribute('stop-color', '#' + hex);\n stop.setAttribute('stop-opacity', opacity + '');\n }\n else {\n stop.setAttribute('stop-color', colors[i].color);\n }\n\n dom.appendChild(stop);\n }\n\n // Store dom element in gradient, to avoid creating multiple\n // dom instances for the same gradient element\n (gradient as GradientObject as GradientObjectExtended).__dom = dom;\n }\n\n /**\n * Mark a single gradient to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n if (displayable.style) {\n let gradient = displayable.style.fill as GradientObject as GradientObjectExtended;\n if (gradient && gradient.__dom) {\n super.markDomUsed(gradient.__dom);\n }\n\n gradient = displayable.style.stroke as GradientObject as GradientObjectExtended;\n if (gradient && gradient.__dom) {\n super.markDomUsed(gradient.__dom);\n }\n }\n }\n\n\n}", "/**\n * @file Manages SVG pattern elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport Displayable from '../../graphic/Displayable';\nimport {PatternObject, ImagePatternObject, SVGPatternObject} from '../../graphic/Pattern';\nimport {createOrUpdateImage} from '../../graphic/helper/image';\nimport WeakMap from '../../core/WeakMap';\n\nfunction isPattern(value: PatternObject | string): value is PatternObject {\n return value && (!!(value as ImagePatternObject).image || !!(value as SVGPatternObject).svgElement);\n}\n\nconst patternDomMap = new WeakMap();\n\n/**\n * Manages SVG pattern elements.\n *\n * @param zrId zrender instance id\n * @param svgRoot root of SVG document\n */\nexport default class PatternManager extends Definable {\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['pattern'], '__pattern_in_use__');\n }\n\n\n /**\n * Create new pattern DOM for fill or stroke if not exist,\n * but will not update pattern if exists.\n *\n * @param svgElement SVG element to paint\n * @param displayable zrender displayable element\n */\n addWithoutUpdate(\n svgElement: SVGElement,\n displayable: Displayable\n ) {\n if (displayable && displayable.style) {\n const that = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke: 'fill' | 'stroke') {\n const pattern = displayable.style[fillOrStroke] as PatternObject;\n if (isPattern(pattern)) {\n const defs = that.getDefs(true);\n\n // Create dom in if not exists\n let dom = patternDomMap.get(pattern);\n if (dom) {\n // Pattern exists\n if (!defs.contains(dom)) {\n // __dom is no longer in defs, recreate\n that.addDom(dom);\n }\n }\n else {\n // New dom\n dom = that.add(pattern);\n }\n\n that.markUsed(displayable);\n\n const id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n }\n\n\n /**\n * Add a new pattern tag in \n *\n * @param pattern zr pattern instance\n */\n add(pattern: PatternObject): SVGElement {\n if (!isPattern(pattern)) {\n return;\n }\n\n let dom = this.createElement('pattern');\n\n pattern.id = pattern.id == null ? this.nextId++ : pattern.id;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-pattern-' + pattern.id);\n\n dom.setAttribute('x', '0');\n dom.setAttribute('y', '0');\n dom.setAttribute('patternUnits', 'userSpaceOnUse');\n\n this.updateDom(pattern, dom);\n this.addDom(dom);\n\n return dom;\n }\n\n\n /**\n * Update pattern.\n *\n * @param pattern zr pattern instance or color string\n */\n update(pattern: PatternObject | string) {\n if (!isPattern(pattern)) {\n return;\n }\n\n const that = this;\n this.doUpdate(pattern, function () {\n const dom = patternDomMap.get(pattern);\n that.updateDom(pattern, dom);\n });\n }\n\n\n /**\n * Update pattern dom\n *\n * @param pattern zr pattern instance\n * @param patternDom DOM to update\n */\n updateDom(pattern: PatternObject, patternDom: SVGElement) {\n const svgElement = (pattern as SVGPatternObject).svgElement;\n\n if (svgElement instanceof SVGElement) {\n if (svgElement.parentNode !== patternDom) {\n patternDom.innerHTML = '';\n patternDom.appendChild(svgElement);\n\n patternDom.setAttribute('width', (pattern as SVGPatternObject).svgWidth + '');\n patternDom.setAttribute('height', (pattern as SVGPatternObject).svgHeight + '');\n }\n }\n else {\n let img: SVGElement;\n const prevImage = patternDom.getElementsByTagName('image');\n if (prevImage.length) {\n if ((pattern as ImagePatternObject).image) {\n // Update\n img = prevImage[0];\n }\n else {\n // Remove\n patternDom.removeChild(prevImage[0]);\n return;\n }\n }\n else if ((pattern as ImagePatternObject).image) {\n // Create\n img = this.createElement('image');\n }\n\n if (img) {\n let imageSrc;\n const patternImage = (pattern as ImagePatternObject).image;\n if (typeof patternImage === 'string') {\n imageSrc = patternImage;\n }\n else if (patternImage instanceof HTMLImageElement) {\n imageSrc = patternImage.src;\n }\n else if (patternImage instanceof HTMLCanvasElement) {\n imageSrc = patternImage.toDataURL();\n }\n\n if (imageSrc) {\n img.setAttribute('href', imageSrc);\n img.setAttribute('x', '0');\n img.setAttribute('y', '0');\n\n // No need to re-render so dirty is empty\n const hostEl = {\n dirty: () => {}\n };\n const createdImage = createOrUpdateImage(imageSrc, img as any, hostEl, img => {\n patternDom.setAttribute('width', img.width + '');\n patternDom.setAttribute('height', img.height + '');\n });\n if (createdImage && createdImage.width && createdImage.height) {\n // Loaded before\n patternDom.setAttribute('width', createdImage.width + '');\n patternDom.setAttribute('height', createdImage.height + '');\n }\n\n patternDom.appendChild(img);\n }\n }\n }\n\n const x = pattern.x || 0;\n const y = pattern.y || 0;\n const rotation = (pattern.rotation || 0) / Math.PI * 180;\n const scaleX = pattern.scaleX || 1;\n const scaleY = pattern.scaleY || 1;\n const transform = `translate(${x}, ${y}) rotate(${rotation}) scale(${scaleX}, ${scaleY})`;\n patternDom.setAttribute('patternTransform', transform);\n patternDomMap.set(pattern, patternDom);\n }\n\n /**\n * Mark a single pattern to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n if (displayable.style) {\n if (isPattern(displayable.style.fill)) {\n super.markDomUsed(patternDomMap.get(displayable.style.fill));\n }\n if (isPattern(displayable.style.stroke)) {\n super.markDomUsed(patternDomMap.get(displayable.style.stroke));\n }\n }\n }\n\n}\n", "/**\n * @file Manages SVG clipPath elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport Displayable from '../../graphic/Displayable';\nimport Path from '../../graphic/Path';\nimport {SVGProxy} from '../graphic';\nimport { Dictionary } from '../../core/types';\nimport { isClipPathChanged } from '../../canvas/helper';\n\ntype PathExtended = Path & {\n _dom: SVGElement\n}\n\nfunction generateClipPathsKey(clipPaths: Path[]) {\n let key: number[] = [];\n if (clipPaths) {\n for (let i = 0; i < clipPaths.length; i++) {\n const clipPath = clipPaths[i];\n key.push(clipPath.id);\n }\n }\n return key.join(',');\n}\n\nexport function hasClipPath(displayable: Displayable) {\n const clipPaths = displayable.__clipPaths;\n return clipPaths && clipPaths.length > 0;\n}\n/**\n * Manages SVG clipPath elements.\n */\nexport default class ClippathManager extends Definable {\n\n private _refGroups: Dictionary = {};\n private _keyDuplicateCount: Dictionary = {};\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, 'clipPath', '__clippath_in_use__');\n }\n\n markAllUnused() {\n super.markAllUnused();\n const refGroups = this._refGroups;\n for (let key in refGroups) {\n if (refGroups.hasOwnProperty(key)) {\n this.markDomUnused(refGroups[key]);\n }\n }\n this._keyDuplicateCount = {};\n }\n\n\n private _getClipPathGroup(displayable: Displayable, prevDisplayable: Displayable) {\n if (!hasClipPath(displayable)) {\n return;\n }\n const clipPaths = displayable.__clipPaths;\n\n const keyDuplicateCount = this._keyDuplicateCount;\n let clipPathKey = generateClipPathsKey(clipPaths);\n if (isClipPathChanged(clipPaths, prevDisplayable && prevDisplayable.__clipPaths)) {\n keyDuplicateCount[clipPathKey] = keyDuplicateCount[clipPathKey] || 0;\n keyDuplicateCount[clipPathKey] && (clipPathKey += '-' + keyDuplicateCount[clipPathKey]);\n keyDuplicateCount[clipPathKey]++;\n }\n\n return this._refGroups[clipPathKey]\n || (this._refGroups[clipPathKey] = this.createElement('g'));\n }\n\n /**\n * Update clipPath.\n *\n * @param displayable displayable element\n */\n update(displayable: Displayable, prevDisplayable: Displayable) {\n const clipGroup = this._getClipPathGroup(displayable, prevDisplayable);\n if (clipGroup) {\n this.markDomUsed(clipGroup);\n this.updateDom(clipGroup, displayable.__clipPaths);\n }\n return clipGroup;\n };\n\n\n /**\n * Create an SVGElement of displayable and create a of its\n * clipPath\n */\n updateDom(parentEl: SVGElement, clipPaths: Path[]) {\n if (clipPaths && clipPaths.length > 0) {\n // Has clipPath, create with the first clipPath\n const defs = this.getDefs(true);\n const clipPath = clipPaths[0] as PathExtended;\n let clipPathEl;\n let id;\n\n if (clipPath._dom) {\n // Use a dom that is already in \n id = clipPath._dom.getAttribute('id');\n clipPathEl = clipPath._dom;\n\n // Use a dom that is already in \n if (!defs.contains(clipPathEl)) {\n // This happens when set old clipPath that has\n // been previously removed\n defs.appendChild(clipPathEl);\n }\n }\n else {\n // New \n id = 'zr' + this._zrId + '-clip-' + this.nextId;\n ++this.nextId;\n clipPathEl = this.createElement('clipPath');\n clipPathEl.setAttribute('id', id);\n defs.appendChild(clipPathEl);\n\n clipPath._dom = clipPathEl;\n }\n\n // Build path and add to \n const svgProxy = this.getSvgProxy(clipPath);\n (svgProxy as SVGProxy).brush(clipPath);\n\n const pathEl = this.getSvgElement(clipPath);\n\n clipPathEl.innerHTML = '';\n clipPathEl.appendChild(pathEl);\n\n parentEl.setAttribute('clip-path', 'url(#' + id + ')');\n\n if (clipPaths.length > 1) {\n // Make the other clipPaths recursively\n this.updateDom(clipPathEl, clipPaths.slice(1));\n }\n }\n else {\n // No clipPath\n if (parentEl) {\n parentEl.setAttribute('clip-path', 'none');\n }\n }\n };\n\n /**\n * Mark a single clipPath to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array.\n if (displayable.__clipPaths) {\n zrUtil.each(displayable.__clipPaths, (clipPath: PathExtended) => {\n if (clipPath._dom) {\n super.markDomUsed(clipPath._dom);\n }\n });\n }\n };\n\n removeUnused() {\n super.removeUnused();\n\n const newRefGroupsMap: Dictionary = {};\n const refGroups = this._refGroups;\n for (let key in refGroups) {\n if (refGroups.hasOwnProperty(key)) {\n const group = refGroups[key];\n if (!this.isDomUnused(group)) {\n newRefGroupsMap[key] = group;\n }\n else if (group.parentNode) {\n group.parentNode.removeChild(group);\n }\n }\n }\n this._refGroups = newRefGroupsMap;\n }\n}\n", "/**\n * @file Manages SVG shadow elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport Displayable from '../../graphic/Displayable';\nimport { PathStyleProps } from '../../graphic/Path';\nimport { Dictionary } from '../../core/types';\nimport { normalizeColor } from '../core';\n\ntype DisplayableExtended = Displayable & {\n _shadowDom: SVGElement\n}\n/**\n * Manages SVG shadow elements.\n *\n */\nexport default class ShadowManager extends Definable {\n\n private _shadowDomMap: Dictionary = {}\n private _shadowDomPool: SVGFilterElement[] = []\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['filter'], '__filter_in_use__', '_shadowDom');\n }\n\n /**\n * Add a new shadow tag in \n *\n * @param displayable zrender displayable element\n * @return created DOM\n */\n private _getFromPool(): SVGFilterElement {\n let shadowDom = this._shadowDomPool.pop(); // Try to get one from trash.\n if (!shadowDom) {\n shadowDom = this.createElement('filter') as SVGFilterElement;\n shadowDom.setAttribute('id', 'zr' + this._zrId + '-shadow-' + this.nextId++);\n const domChild = this.createElement('feDropShadow');\n shadowDom.appendChild(domChild);\n this.addDom(shadowDom);\n }\n\n return shadowDom;\n }\n\n\n /**\n * Update shadow.\n */\n update(svgElement: SVGElement, displayable: Displayable) {\n const style = displayable.style;\n if (hasShadow(style)) {\n // Try getting shadow from cache.\n const shadowKey = getShadowKey(displayable);\n let shadowDom = (displayable as DisplayableExtended)._shadowDom = this._shadowDomMap[shadowKey];\n if (!shadowDom) {\n shadowDom = this._getFromPool();\n this._shadowDomMap[shadowKey] = shadowDom;\n }\n this.updateDom(svgElement, displayable, shadowDom);\n }\n else {\n // Remove shadow\n this.remove(svgElement, displayable);\n }\n }\n\n\n /**\n * Remove DOM and clear parent filter\n */\n remove(svgElement: SVGElement, displayable: Displayable) {\n if ((displayable as DisplayableExtended)._shadowDom != null) {\n (displayable as DisplayableExtended)._shadowDom = null;\n svgElement.style.filter = '';\n }\n }\n\n\n /**\n * Update shadow dom\n *\n * @param displayable zrender displayable element\n * @param shadowDom DOM to update\n */\n updateDom(svgElement: SVGElement, displayable: Displayable, shadowDom: SVGElement) {\n let domChild = shadowDom.children[0];\n\n const style = displayable.style;\n const globalScale = displayable.getGlobalScale();\n const scaleX = globalScale[0];\n const scaleY = globalScale[1];\n if (!scaleX || !scaleY) {\n return;\n }\n\n // TODO: textBoxShadowBlur is not supported yet\n let offsetX = style.shadowOffsetX || 0;\n let offsetY = style.shadowOffsetY || 0;\n let blur = style.shadowBlur;\n const normalizedColor = normalizeColor(style.shadowColor);\n\n domChild.setAttribute('dx', offsetX / scaleX + '');\n domChild.setAttribute('dy', offsetY / scaleY + '');\n domChild.setAttribute('flood-color', normalizedColor.color);\n domChild.setAttribute('flood-opacity', normalizedColor.opacity + '');\n\n // Divide by two here so that it looks the same as in canvas\n // See: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-shadowblur\n const stdDx = blur / 2 / scaleX;\n const stdDy = blur / 2 / scaleY;\n const stdDeviation = stdDx + ' ' + stdDy;\n domChild.setAttribute('stdDeviation', stdDeviation);\n\n // Fix filter clipping problem\n shadowDom.setAttribute('x', '-100%');\n shadowDom.setAttribute('y', '-100%');\n shadowDom.setAttribute('width', '300%');\n shadowDom.setAttribute('height', '300%');\n\n // Store dom element in shadow, to avoid creating multiple\n // dom instances for the same shadow element\n (displayable as DisplayableExtended)._shadowDom = shadowDom;\n\n const id = shadowDom.getAttribute('id');\n svgElement.style.filter = 'url(#' + id + ')';\n }\n\n removeUnused() {\n const defs = this.getDefs(false);\n if (!defs) {\n // Nothing to remove\n return;\n }\n let shadowDomsPool = this._shadowDomPool;\n\n // let currentUsedShadow = 0;\n const shadowDomMap = this._shadowDomMap;\n for (let key in shadowDomMap) {\n if (shadowDomMap.hasOwnProperty(key)) {\n shadowDomsPool.push(shadowDomMap[key]);\n }\n // currentUsedShadow++;\n }\n\n // Reset the map.\n this._shadowDomMap = {};\n }\n}\n\n\nfunction hasShadow(style: PathStyleProps) {\n // TODO: textBoxShadowBlur is not supported yet\n return style\n && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY);\n}\n\nfunction getShadowKey(displayable: Displayable) {\n const style = displayable.style;\n const globalScale = displayable.getGlobalScale();\n return [\n style.shadowColor,\n (style.shadowBlur || 0).toFixed(2), // Reduce the precision\n (style.shadowOffsetX || 0).toFixed(2),\n (style.shadowOffsetY || 0).toFixed(2),\n globalScale[0],\n globalScale[1]\n ].join(',');\n}", "/**\n * SVG Painter\n * @module zrender/svg/Painter\n */\n\nimport {createElement, normalizeColor} from './core';\nimport * as util from '../core/util';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport arrayDiff from '../core/arrayDiff';\nimport GradientManager from './helper/GradientManager';\nimport PatternManager from './helper/PatternManager';\nimport ClippathManager, {hasClipPath} from './helper/ClippathManager';\nimport ShadowManager from './helper/ShadowManager';\nimport {\n path as svgPath,\n image as svgImage,\n text as svgText,\n SVGProxy\n} from './graphic';\nimport Displayable from '../graphic/Displayable';\nimport Storage from '../Storage';\nimport { PainterBase } from '../PainterBase';\n\nfunction parseInt10(val: string) {\n return parseInt(val, 10);\n}\n\nfunction getSvgProxy(el: Displayable) {\n if (el instanceof Path) {\n return svgPath;\n }\n else if (el instanceof ZRImage) {\n return svgImage;\n }\n else if (el instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n}\n\nfunction checkParentAvailable(parent: SVGElement, child: SVGElement) {\n return child && parent && child.parentNode !== parent;\n}\n\nfunction insertAfter(parent: SVGElement, child: SVGElement, prevSibling: SVGElement) {\n if (checkParentAvailable(parent, child) && prevSibling) {\n const nextSibling = prevSibling.nextSibling;\n nextSibling ? parent.insertBefore(child, nextSibling)\n : parent.appendChild(child);\n }\n}\n\nfunction prepend(parent: SVGElement, child: SVGElement) {\n if (checkParentAvailable(parent, child)) {\n const firstChild = parent.firstChild;\n firstChild ? parent.insertBefore(child, firstChild)\n : parent.appendChild(child);\n }\n}\n\nfunction remove(parent: SVGElement, child: SVGElement) {\n if (child && parent && child.parentNode === parent) {\n parent.removeChild(child);\n }\n}\nfunction removeFromMyParent(child: SVGElement) {\n if (child && child.parentNode) {\n child.parentNode.removeChild(child);\n }\n}\n\nfunction getSvgElement(displayable: Displayable) {\n return displayable.__svgEl;\n}\n\ninterface SVGPainterOption {\n width?: number | string\n height?: number | string\n}\n\nclass SVGPainter implements PainterBase {\n\n type = 'svg'\n\n root: HTMLElement\n\n storage: Storage\n\n private _opts: SVGPainterOption\n\n private _svgDom: SVGElement\n private _svgRoot: SVGGElement\n private _backgroundRoot: SVGGElement\n private _backgroundNode: SVGRectElement\n\n private _gradientManager: GradientManager\n private _patternManager: PatternManager\n private _clipPathManager: ClippathManager\n private _shadowManager: ShadowManager\n\n private _viewport: HTMLDivElement\n private _visibleList: Displayable[]\n\n private _width: number\n private _height: number\n\n constructor(root: HTMLElement, storage: Storage, opts: SVGPainterOption, zrId: number) {\n this.root = root;\n this.storage = storage;\n this._opts = opts = util.extend({}, opts || {});\n\n const svgDom = createElement('svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.w3.org/2000/svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDom.setAttribute('version', '1.1');\n svgDom.setAttribute('baseProfile', 'full');\n svgDom.style.cssText = 'user-select:none;position:absolute;left:0;top:0;';\n\n const bgRoot = createElement('g') as SVGGElement;\n svgDom.appendChild(bgRoot);\n const svgRoot = createElement('g') as SVGGElement;\n svgDom.appendChild(svgRoot);\n\n this._gradientManager = new GradientManager(zrId, svgRoot);\n this._patternManager = new PatternManager(zrId, svgRoot);\n this._clipPathManager = new ClippathManager(zrId, svgRoot);\n this._shadowManager = new ShadowManager(zrId, svgRoot);\n\n const viewport = document.createElement('div');\n viewport.style.cssText = 'overflow:hidden;position:relative';\n\n this._svgDom = svgDom;\n this._svgRoot = svgRoot;\n this._backgroundRoot = bgRoot;\n this._viewport = viewport;\n\n root.appendChild(viewport);\n viewport.appendChild(svgDom);\n\n this.resize(opts.width, opts.height);\n\n this._visibleList = [];\n }\n\n getType() {\n return 'svg';\n }\n\n getViewportRoot() {\n return this._viewport;\n }\n\n getSvgDom() {\n return this._svgDom;\n }\n\n getSvgRoot() {\n return this._svgRoot;\n }\n\n getViewportRootOffset() {\n const viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n }\n\n refresh() {\n\n const list = this.storage.getDisplayList(true);\n\n this._paintList(list);\n }\n\n setBackgroundColor(backgroundColor: string) {\n // TODO gradient\n // Insert a bg rect instead of setting background to viewport.\n // Otherwise, the exported SVG don't have background.\n if (this._backgroundRoot && this._backgroundNode) {\n this._backgroundRoot.removeChild(this._backgroundNode);\n }\n\n const bgNode = createElement('rect') as SVGRectElement;\n bgNode.setAttribute('width', this.getWidth() as any);\n bgNode.setAttribute('height', this.getHeight() as any);\n bgNode.setAttribute('x', 0 as any);\n bgNode.setAttribute('y', 0 as any);\n bgNode.setAttribute('id', 0 as any);\n const { color, opacity } = normalizeColor(backgroundColor);\n bgNode.setAttribute('fill', color);\n bgNode.setAttribute('fill-opacity', opacity as any);\n\n this._backgroundRoot.appendChild(bgNode);\n this._backgroundNode = bgNode;\n }\n\n createSVGElement(tag: string): SVGElement {\n return createElement(tag);\n }\n\n paintOne(el: Displayable): SVGElement {\n const svgProxy = getSvgProxy(el);\n svgProxy && (svgProxy as SVGProxy).brush(el);\n return getSvgElement(el);\n }\n\n _paintList(list: Displayable[]) {\n const gradientManager = this._gradientManager;\n const patternManager = this._patternManager;\n const clipPathManager = this._clipPathManager;\n const shadowManager = this._shadowManager;\n\n gradientManager.markAllUnused();\n patternManager.markAllUnused();\n clipPathManager.markAllUnused();\n shadowManager.markAllUnused();\n\n const svgRoot = this._svgRoot;\n const visibleList = this._visibleList;\n const listLen = list.length;\n\n const newVisibleList = [];\n\n for (let i = 0; i < listLen; i++) {\n const displayable = list[i];\n const svgProxy = getSvgProxy(displayable);\n let svgElement = getSvgElement(displayable);\n if (!displayable.invisible) {\n if (displayable.__dirty || !svgElement) {\n svgProxy && (svgProxy as SVGProxy).brush(displayable);\n svgElement = getSvgElement(displayable);\n // Update gradient and shadow\n if (svgElement && displayable.style) {\n gradientManager.update(displayable.style.fill);\n gradientManager.update(displayable.style.stroke);\n patternManager.update(displayable.style.fill);\n patternManager.update(displayable.style.stroke);\n shadowManager.update(svgElement, displayable);\n }\n\n displayable.__dirty = 0;\n }\n\n // May have optimizations and ignore brush(like empty string in TSpan)\n if (svgElement) {\n newVisibleList.push(displayable);\n }\n\n }\n }\n\n const diff = arrayDiff(visibleList, newVisibleList);\n let prevSvgElement;\n let topPrevSvgElement;\n\n // NOTE: First do remove, in case element moved to the head and do remove\n // after add\n for (let i = 0; i < diff.length; i++) {\n const item = diff[i];\n if (item.removed) {\n for (let k = 0; k < item.count; k++) {\n const displayable = visibleList[item.indices[k]];\n const svgElement = getSvgElement(displayable);\n hasClipPath(displayable) ? removeFromMyParent(svgElement)\n : remove(svgRoot, svgElement);\n }\n }\n }\n\n let prevDisplayable;\n let currentClipGroup;\n for (let i = 0; i < diff.length; i++) {\n const item = diff[i];\n // const isAdd = item.added;\n if (item.removed) {\n continue;\n }\n for (let k = 0; k < item.count; k++) {\n const displayable = newVisibleList[item.indices[k]];\n // Update clipPath\n const clipGroup = clipPathManager.update(displayable, prevDisplayable);\n if (clipGroup !== currentClipGroup) {\n // First pop to top level.\n prevSvgElement = topPrevSvgElement;\n if (clipGroup) {\n // Enter second level of clipping group.\n prevSvgElement ? insertAfter(svgRoot, clipGroup, prevSvgElement)\n : prepend(svgRoot, clipGroup);\n topPrevSvgElement = clipGroup;\n // Reset prevSvgElement in second level.\n prevSvgElement = null;\n }\n currentClipGroup = clipGroup;\n }\n\n const svgElement = getSvgElement(displayable);\n // if (isAdd) {\n prevSvgElement\n ? insertAfter(currentClipGroup || svgRoot, svgElement, prevSvgElement)\n : prepend(currentClipGroup || svgRoot, svgElement);\n // }\n\n prevSvgElement = svgElement || prevSvgElement;\n if (!currentClipGroup) {\n topPrevSvgElement = prevSvgElement;\n }\n\n gradientManager.markUsed(displayable);\n gradientManager.addWithoutUpdate(svgElement, displayable);\n\n patternManager.markUsed(displayable);\n patternManager.addWithoutUpdate(svgElement, displayable);\n\n clipPathManager.markUsed(displayable);\n\n prevDisplayable = displayable;\n }\n }\n\n gradientManager.removeUnused();\n patternManager.removeUnused();\n clipPathManager.removeUnused();\n shadowManager.removeUnused();\n\n this._visibleList = newVisibleList;\n }\n\n // Not used any more\n // _getDefs(isForceCreating?: boolean) {\n // let svgRoot = this._svgDom;\n // let defs = svgRoot.getElementsByTagName('defs');\n // if (defs.length === 0) {\n // // Not exist\n // if (isForceCreating) {\n // let defs = svgRoot.insertBefore(\n // createElement('defs'), // Create new tag\n // svgRoot.firstChild // Insert in the front of svg\n // );\n // if (!defs.contains) {\n // // IE doesn't support contains method\n // defs.contains = function (el) {\n // const children = defs.children;\n // if (!children) {\n // return false;\n // }\n // for (let i = children.length - 1; i >= 0; --i) {\n // if (children[i] === el) {\n // return true;\n // }\n // }\n // return false;\n // };\n // }\n // return defs;\n // }\n // else {\n // return null;\n // }\n // }\n // else {\n // return defs[0];\n // }\n // }\n\n resize(width: number | string, height: number | string) {\n const viewport = this._viewport;\n // FIXME Why ?\n viewport.style.display = 'none';\n\n // Save input w/h\n const opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n\n width = this._getSize(0);\n height = this._getSize(1);\n\n viewport.style.display = '';\n\n if (this._width !== width || this._height !== height) {\n this._width = width;\n this._height = height;\n\n const viewportStyle = viewport.style;\n viewportStyle.width = width + 'px';\n viewportStyle.height = height + 'px';\n\n const svgRoot = this._svgDom;\n // Set width by 'svgRoot.width = width' is invalid\n svgRoot.setAttribute('width', width + '');\n svgRoot.setAttribute('height', height + '');\n }\n\n if (this._backgroundNode) {\n this._backgroundNode.setAttribute('width', width as any);\n this._backgroundNode.setAttribute('height', height as any);\n }\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u5BBD\u5EA6\n */\n getWidth() {\n return this._width;\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u9AD8\u5EA6\n */\n getHeight() {\n return this._height;\n }\n\n _getSize(whIdx: number) {\n const opts = this._opts;\n const wh = ['width', 'height'][whIdx] as 'width' | 'height';\n const cwh = ['clientWidth', 'clientHeight'][whIdx] as 'clientWidth' | 'clientHeight';\n const plt = ['paddingLeft', 'paddingTop'][whIdx] as 'paddingLeft' | 'paddingTop';\n const prb = ['paddingRight', 'paddingBottom'][whIdx] as 'paddingRight' | 'paddingBottom';\n\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh] as string);\n }\n\n const root = this.root;\n // IE8 does not support getComputedStyle, but it use VML.\n const stl = document.defaultView.getComputedStyle(root);\n\n return (\n (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)\n ) | 0;\n }\n\n dispose() {\n this.root.innerHTML = '';\n\n this._svgRoot\n = this._backgroundRoot\n = this._svgDom\n = this._backgroundNode\n = this._viewport\n = this.storage\n = null;\n }\n\n clear() {\n const viewportNode = this._viewport;\n if (viewportNode && viewportNode.parentNode) {\n viewportNode.parentNode.removeChild(viewportNode);\n }\n }\n\n toDataURL() {\n this.refresh();\n const svgDom = this._svgDom;\n const outerHTML = svgDom.outerHTML\n // outerHTML of `svg` tag is not supported in IE, use `parentNode.innerHTML` instead\n // PENDING: Or use `new XMLSerializer().serializeToString(svg)`?\n || (svgDom.parentNode && svgDom.parentNode as HTMLElement).innerHTML;\n const html = encodeURIComponent(outerHTML.replace(/>\\n\\r<'));\n return 'data:image/svg+xml;charset=UTF-8,' + html;\n }\n refreshHover = createMethodNotSupport('refreshHover') as PainterBase['refreshHover'];\n pathToImage = createMethodNotSupport('pathToImage') as PainterBase['pathToImage'];\n configLayer = createMethodNotSupport('configLayer') as PainterBase['configLayer'];\n}\n\n\n// Not supported methods\nfunction createMethodNotSupport(method: string): any {\n return function () {\n util.logError('In SVG mode painter not support method \"' + method + '\"');\n };\n}\n\n\nexport default SVGPainter;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport SVGPainter from 'zrender/src/svg/Painter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPainter('svg', SVGPainter);\n}", "import * as util from '../core/util';\nimport {devicePixelRatio} from '../config';\nimport { ImagePatternObject } from '../graphic/Pattern';\nimport CanvasPainter from './Painter';\nimport { GradientObject, InnerGradientObject } from '../graphic/Gradient';\nimport { ZRCanvasRenderingContext } from '../core/types';\nimport Eventful from '../core/Eventful';\nimport { ElementEventCallback } from '../Element';\nimport { getCanvasGradient } from './helper';\nimport { createCanvasPattern } from './graphic';\nimport Displayable from '../graphic/Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { REDARAW_BIT } from '../graphic/constants';\n\nfunction returnFalse() {\n return false;\n}\n\nfunction createDom(id: string, painter: CanvasPainter, dpr: number) {\n const newDom = util.createCanvas();\n const width = painter.getWidth();\n const height = painter.getHeight();\n\n const newDomStyle = newDom.style;\n if (newDomStyle) { // In node or some other non-browser environment\n newDomStyle.position = 'absolute';\n newDomStyle.left = '0';\n newDomStyle.top = '0';\n newDomStyle.width = width + 'px';\n newDomStyle.height = height + 'px';\n\n newDom.setAttribute('data-zr-dom-id', id);\n }\n\n newDom.width = width * dpr;\n newDom.height = height * dpr;\n\n return newDom;\n}\n\nexport interface LayerConfig {\n // \u6BCF\u6B21\u6E05\u7A7A\u753B\u5E03\u7684\u989C\u8272\n clearColor?: string | GradientObject | ImagePatternObject\n // \u662F\u5426\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\n motionBlur?: boolean\n // \u5728\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\u7684\u65F6\u5019\u4F7F\u7528\uFF0C\u4E0E\u4E0A\u4E00\u5E27\u6DF7\u5408\u7684alpha\u503C\uFF0C\u503C\u8D8A\u5927\u5C3E\u8FF9\u8D8A\u660E\u663E\n lastFrameAlpha?: number\n};\n\nexport default class Layer extends Eventful {\n\n id: string\n\n dom: HTMLCanvasElement\n domBack: HTMLCanvasElement\n\n ctx: CanvasRenderingContext2D\n ctxBack: CanvasRenderingContext2D\n\n painter: CanvasPainter\n\n // Configs\n /**\n * \u6BCF\u6B21\u6E05\u7A7A\u753B\u5E03\u7684\u989C\u8272\n */\n clearColor: string | GradientObject | ImagePatternObject\n /**\n * \u662F\u5426\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\n */\n motionBlur = false\n /**\n * \u5728\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\u7684\u65F6\u5019\u4F7F\u7528\uFF0C\u4E0E\u4E0A\u4E00\u5E27\u6DF7\u5408\u7684alpha\u503C\uFF0C\u503C\u8D8A\u5927\u5C3E\u8FF9\u8D8A\u660E\u663E\n */\n lastFrameAlpha = 0.7\n /**\n * Layer dpr\n */\n dpr = 1\n\n /**\n * Virtual layer will not be inserted into dom.\n */\n virtual = false\n\n config = {}\n\n incremental = false\n\n zlevel = 0\n\n maxRepaintRectCount = 5\n\n private _paintRects: BoundingRect[]\n\n __painter: CanvasPainter\n\n __dirty = true\n __firstTimePaint = true\n\n __used = false\n\n __drawIndex = 0\n __startIndex = 0\n __endIndex = 0\n\n // indices in the previous frame\n __prevStartIndex: number = null\n __prevEndIndex: number = null\n\n __builtin__: boolean\n\n constructor(id: string | HTMLCanvasElement, painter: CanvasPainter, dpr?: number) {\n super();\n\n let dom;\n dpr = dpr || devicePixelRatio;\n if (typeof id === 'string') {\n dom = createDom(id, painter, dpr);\n }\n // Not using isDom because in node it will return false\n else if (util.isObject(id)) {\n dom = id;\n id = dom.id;\n }\n this.id = id as string;\n this.dom = dom;\n\n const domStyle = dom.style;\n if (domStyle) { // Not in node\n dom.onselectstart = returnFalse; // \u907F\u514D\u9875\u9762\u9009\u4E2D\u7684\u5C34\u5C2C\n domStyle.webkitUserSelect = 'none';\n domStyle.userSelect = 'none';\n domStyle.webkitTapHighlightColor = 'rgba(0,0,0,0)';\n (domStyle as any)['-webkit-touch-callout'] = 'none';\n domStyle.padding = '0';\n domStyle.margin = '0';\n domStyle.borderWidth = '0';\n }\n\n this.domBack = null;\n this.ctxBack = null;\n\n this.painter = painter;\n\n this.config = null;\n\n this.dpr = dpr;\n }\n\n getElementCount() {\n return this.__endIndex - this.__startIndex;\n }\n\n afterBrush() {\n this.__prevStartIndex = this.__startIndex;\n this.__prevEndIndex = this.__endIndex;\n }\n\n initContext() {\n this.ctx = this.dom.getContext('2d');\n (this.ctx as ZRCanvasRenderingContext).dpr = this.dpr;\n }\n\n setUnpainted() {\n this.__firstTimePaint = true;\n }\n\n createBackBuffer() {\n const dpr = this.dpr;\n\n this.domBack = createDom('back-' + this.id, this.painter, dpr);\n this.ctxBack = this.domBack.getContext('2d');\n\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n\n /**\n * Create repaint list when using dirty rect rendering.\n *\n * @param displayList current rendering list\n * @param prevList last frame rendering list\n * @return repaint rects. null for the first frame, [] for no element dirty\n */\n createRepaintRects(\n displayList: Displayable[],\n prevList: Displayable[],\n viewWidth: number,\n viewHeight: number\n ) {\n if (this.__firstTimePaint) {\n this.__firstTimePaint = false;\n return null;\n }\n\n const mergedRepaintRects: BoundingRect[] = [];\n const maxRepaintRectCount = this.maxRepaintRectCount;\n let full = false;\n const pendingRect = new BoundingRect(0, 0, 0, 0);\n\n function addRectToMergePool(rect: BoundingRect) {\n if (!rect.isFinite() || rect.isZero()) {\n return;\n }\n\n if (mergedRepaintRects.length === 0) {\n // First rect, create new merged rect\n const boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n else {\n let isMerged = false;\n let minDeltaArea = Infinity;\n let bestRectToMergeIdx = 0;\n for (let i = 0; i < mergedRepaintRects.length; ++i) {\n const mergedRect = mergedRepaintRects[i];\n\n // Merge if has intersection\n if (mergedRect.intersect(rect)) {\n const pendingRect = new BoundingRect(0, 0, 0, 0);\n pendingRect.copy(mergedRect);\n pendingRect.union(rect);\n mergedRepaintRects[i] = pendingRect;\n isMerged = true;\n break;\n }\n else if (full) {\n // Merged to exists rectangles if full\n pendingRect.copy(rect);\n pendingRect.union(mergedRect);\n const aArea = rect.width * rect.height;\n const bArea = mergedRect.width * mergedRect.height;\n const pendingArea = pendingRect.width * pendingRect.height;\n const deltaArea = pendingArea - aArea - bArea;\n if (deltaArea < minDeltaArea) {\n minDeltaArea = deltaArea;\n bestRectToMergeIdx = i;\n }\n }\n }\n\n if (full) {\n mergedRepaintRects[bestRectToMergeIdx].union(rect);\n isMerged = true;\n }\n\n if (!isMerged) {\n // Create new merged rect if cannot merge with current\n const boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n if (!full) {\n full = mergedRepaintRects.length >= maxRepaintRectCount;\n }\n }\n }\n\n /**\n * Loop the paint list of this frame and get the dirty rects of elements\n * in this frame.\n */\n for (let i = this.__startIndex; i < this.__endIndex; ++i) {\n const el = displayList[i];\n if (el) {\n /**\n * `shouldPaint` is true only when the element is not ignored or\n * invisible and all its ancestors are not ignored.\n * `shouldPaint` being true means it will be brushed this frame.\n *\n * `__isRendered` being true means the element is currently on\n * the canvas.\n *\n * `__dirty` being true means the element should be brushed this\n * frame.\n *\n * We only need to repaint the element's previous painting rect\n * if it's currently on the canvas and needs repaint this frame\n * or not painted this frame.\n */\n const shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n const prevRect = el.__isRendered && ((el.__dirty & REDARAW_BIT) || !shouldPaint)\n ? el.getPrevPaintRect()\n : null;\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n\n /**\n * On the other hand, we only need to paint the current rect\n * if the element should be brushed this frame and either being\n * dirty or not rendered before.\n */\n const curRect = shouldPaint && ((el.__dirty & REDARAW_BIT) || !el.__isRendered)\n ? el.getPaintRect()\n : null;\n if (curRect) {\n addRectToMergePool(curRect);\n }\n }\n }\n\n /**\n * The above loop calculates the dirty rects of elements that are in the\n * paint list this frame, which does not include those elements removed\n * in this frame. So we loop the `prevList` to get the removed elements.\n */\n for (let i = this.__prevStartIndex; i < this.__prevEndIndex; ++i) {\n const el = prevList[i];\n /**\n * Consider the elements whose ancestors are invisible, they should\n * not be painted and their previous painting rects should be\n * cleared if they are rendered on the canvas (`__isRendered` being\n * true). `!shouldPaint` means the element is not brushed in this\n * frame.\n *\n * `!el.__zr` means it's removed from the storage.\n *\n * In conclusion, an element needs to repaint the previous painting\n * rect if and only if it's not painted this frame and was\n * previously painted on the canvas.\n */\n const shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n if (el && (!shouldPaint || !el.__zr) && el.__isRendered) {\n // el was removed\n const prevRect = el.getPrevPaintRect();\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n }\n }\n\n // Merge intersected rects in the result\n let hasIntersections;\n do {\n hasIntersections = false;\n for (let i = 0; i < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].isZero()) {\n mergedRepaintRects.splice(i, 1);\n continue;\n }\n for (let j = i + 1; j < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].intersect(mergedRepaintRects[j])) {\n hasIntersections = true;\n mergedRepaintRects[i].union(mergedRepaintRects[j]);\n mergedRepaintRects.splice(j, 1);\n }\n else {\n j++;\n }\n }\n i++;\n }\n } while (hasIntersections);\n\n this._paintRects = mergedRepaintRects;\n\n return mergedRepaintRects;\n }\n\n /**\n * Get paint rects for debug usage.\n */\n debugGetPaintRects() {\n return (this._paintRects || []).slice();\n }\n\n resize(width: number, height: number) {\n const dpr = this.dpr;\n\n const dom = this.dom;\n const domStyle = dom.style;\n const domBack = this.domBack;\n\n if (domStyle) {\n domStyle.width = width + 'px';\n domStyle.height = height + 'px';\n }\n\n dom.width = width * dpr;\n dom.height = height * dpr;\n\n if (domBack) {\n domBack.width = width * dpr;\n domBack.height = height * dpr;\n\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n }\n\n /**\n * \u6E05\u7A7A\u8BE5\u5C42\u753B\u5E03\n */\n clear(\n clearAll?: boolean,\n clearColor?: string | GradientObject | ImagePatternObject,\n repaintRects?: BoundingRect[]\n ) {\n const dom = this.dom;\n const ctx = this.ctx;\n const width = dom.width;\n const height = dom.height;\n\n clearColor = clearColor || this.clearColor;\n const haveMotionBLur = this.motionBlur && !clearAll;\n const lastFrameAlpha = this.lastFrameAlpha;\n\n const dpr = this.dpr;\n const self = this;\n\n if (haveMotionBLur) {\n if (!this.domBack) {\n this.createBackBuffer();\n }\n\n this.ctxBack.globalCompositeOperation = 'copy';\n this.ctxBack.drawImage(\n dom, 0, 0,\n width / dpr,\n height / dpr\n );\n }\n\n const domBack = this.domBack;\n\n function doClear(x: number, y: number, width: number, height: number) {\n ctx.clearRect(x, y, width, height);\n if (clearColor && clearColor !== 'transparent') {\n let clearColorGradientOrPattern;\n // Gradient\n if (util.isGradientObject(clearColor)) {\n // Cache canvas gradient\n clearColorGradientOrPattern = (clearColor as InnerGradientObject).__canvasGradient\n || getCanvasGradient(ctx, clearColor, {\n x: 0,\n y: 0,\n width: width,\n height: height\n });\n\n (clearColor as InnerGradientObject).__canvasGradient = clearColorGradientOrPattern;\n }\n // Pattern\n else if (util.isImagePatternObject(clearColor)) {\n clearColorGradientOrPattern = createCanvasPattern(\n ctx, clearColor, {\n dirty() {\n // TODO\n self.setUnpainted();\n self.__painter.refresh();\n }\n }\n );\n }\n ctx.save();\n ctx.fillStyle = clearColorGradientOrPattern || (clearColor as string);\n ctx.fillRect(x, y, width, height);\n ctx.restore();\n }\n\n if (haveMotionBLur) {\n ctx.save();\n ctx.globalAlpha = lastFrameAlpha;\n ctx.drawImage(domBack, x, y, width, height);\n ctx.restore();\n }\n };\n\n if (!repaintRects || haveMotionBLur) {\n // Clear the full canvas\n doClear(0, 0, width, height);\n }\n else if (repaintRects.length) {\n // Clear the repaint areas\n util.each(repaintRects, rect => {\n doClear(\n rect.x * dpr,\n rect.y * dpr,\n rect.width * dpr,\n rect.height * dpr\n );\n });\n }\n }\n\n // Iterface of refresh\n refresh: (clearColor?: string | GradientObject | ImagePatternObject) => void\n\n // Interface of renderToCanvas in getRenderedCanvas\n renderToCanvas: (ctx: CanvasRenderingContext2D) => void\n\n // Events\n onclick: ElementEventCallback\n ondblclick: ElementEventCallback\n onmouseover: ElementEventCallback\n onmouseout: ElementEventCallback\n onmousemove: ElementEventCallback\n onmousewheel: ElementEventCallback\n onmousedown: ElementEventCallback\n onmouseup: ElementEventCallback\n oncontextmenu: ElementEventCallback\n\n ondrag: ElementEventCallback\n ondragstart: ElementEventCallback\n ondragend: ElementEventCallback\n ondragenter: ElementEventCallback\n ondragleave: ElementEventCallback\n ondragover: ElementEventCallback\n ondrop: ElementEventCallback\n}", "import {devicePixelRatio} from '../config';\nimport * as util from '../core/util';\nimport Layer, { LayerConfig } from './Layer';\nimport requestAnimationFrame from '../animation/requestAnimationFrame';\nimport ZRImage from '../graphic/Image';\nimport env from '../core/env';\nimport Displayable from '../graphic/Displayable';\nimport { WXCanvasRenderingContext, ZRCanvasRenderingContext } from '../core/types';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject } from '../graphic/Pattern';\nimport Storage from '../Storage';\nimport { brush, BrushScope, brushSingle } from './graphic';\nimport { PainterBase } from '../PainterBase';\nimport BoundingRect from '../core/BoundingRect';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport Path from '../graphic/Path';\nimport { REDARAW_BIT } from '../graphic/constants';\n\nconst HOVER_LAYER_ZLEVEL = 1e5;\nconst CANVAS_ZLEVEL = 314159;\n\nconst EL_AFTER_INCREMENTAL_INC = 0.01;\nconst INCREMENTAL_INC = 0.001;\n\nfunction parseInt10(val: string) {\n return parseInt(val, 10);\n}\n\nfunction isLayerValid(layer: Layer) {\n if (!layer) {\n return false;\n }\n\n if (layer.__builtin__) {\n return true;\n }\n\n if (typeof (layer.resize) !== 'function'\n || typeof (layer.refresh) !== 'function'\n ) {\n return false;\n }\n\n return true;\n}\n\nfunction createRoot(width: number, height: number) {\n const domRoot = document.createElement('div');\n\n // domRoot.onselectstart = returnFalse; // Avoid page selected\n domRoot.style.cssText = [\n 'position:relative',\n // IOS13 safari probably has a compositing bug (z order of the canvas and the consequent\n // dom does not act as expected) when some of the parent dom has\n // `-webkit-overflow-scrolling: touch;` and the webpage is longer than one screen and\n // the canvas is not at the top part of the page.\n // Check `https://bugs.webkit.org/show_bug.cgi?id=203681` for more details. We remove\n // this `overflow:hidden` to avoid the bug.\n // 'overflow:hidden',\n 'width:' + width + 'px',\n 'height:' + height + 'px',\n 'padding:0',\n 'margin:0',\n 'border-width:0'\n ].join(';') + ';';\n\n return domRoot;\n}\n\ninterface CanvasPainterOption {\n devicePixelRatio?: number\n width?: number | string // Can be 10 / 10px / auto\n height?: number | string,\n useDirtyRect?: boolean\n}\n\nexport default class CanvasPainter implements PainterBase {\n\n type = 'canvas'\n\n root: HTMLElement\n\n dpr: number\n\n storage: Storage\n\n private _singleCanvas: boolean\n\n private _opts: CanvasPainterOption\n\n private _zlevelList: number[] = []\n\n private _prevDisplayList: Displayable[] = []\n\n private _layers: {[key: number]: Layer} = {} // key is zlevel\n\n private _layerConfig: {[key: number]: LayerConfig} = {} // key is zlevel\n\n /**\n * zrender will do compositing when root is a canvas and have multiple zlevels.\n */\n private _needsManuallyCompositing = false\n\n private _width: number\n private _height: number\n\n private _domRoot: HTMLElement\n\n private _hoverlayer: Layer\n\n private _redrawId: number\n\n private _backgroundColor: string | GradientObject | ImagePatternObject\n\n\n constructor(root: HTMLElement, storage: Storage, opts: CanvasPainterOption, id: number) {\n\n this.type = 'canvas';\n\n // In node environment using node-canvas\n const singleCanvas = !root.nodeName // In node ?\n || root.nodeName.toUpperCase() === 'CANVAS';\n\n this._opts = opts = util.extend({}, opts || {}) as CanvasPainterOption;\n\n /**\n * @type {number}\n */\n this.dpr = opts.devicePixelRatio || devicePixelRatio;\n /**\n * @type {boolean}\n * @private\n */\n this._singleCanvas = singleCanvas;\n /**\n * \u7ED8\u56FE\u5BB9\u5668\n * @type {HTMLElement}\n */\n this.root = root;\n\n const rootStyle = root.style;\n\n if (rootStyle) {\n rootStyle.webkitTapHighlightColor = 'transparent';\n rootStyle.webkitUserSelect = 'none';\n rootStyle.userSelect = 'none';\n (rootStyle as any)['-webkit-touch-callout'] = 'none';\n\n root.innerHTML = '';\n }\n\n /**\n * @type {module:zrender/Storage}\n */\n this.storage = storage;\n\n const zlevelList: number[] = this._zlevelList;\n\n this._prevDisplayList = [];\n\n const layers = this._layers;\n\n if (!singleCanvas) {\n this._width = this._getSize(0);\n this._height = this._getSize(1);\n\n const domRoot = this._domRoot = createRoot(\n this._width, this._height\n );\n root.appendChild(domRoot);\n }\n else {\n const rootCanvas = root as HTMLCanvasElement;\n let width = rootCanvas.width;\n let height = rootCanvas.height;\n\n if (opts.width != null) {\n // TODO sting?\n width = opts.width as number;\n }\n if (opts.height != null) {\n // TODO sting?\n height = opts.height as number;\n }\n this.dpr = opts.devicePixelRatio || 1;\n\n // Use canvas width and height directly\n rootCanvas.width = width * this.dpr;\n rootCanvas.height = height * this.dpr;\n\n this._width = width;\n this._height = height;\n\n // Create layer if only one given canvas\n // Device can be specified to create a high dpi image.\n const mainLayer = new Layer(rootCanvas, this, this.dpr);\n mainLayer.__builtin__ = true;\n mainLayer.initContext();\n // FIXME Use canvas width and height\n // mainLayer.resize(width, height);\n layers[CANVAS_ZLEVEL] = mainLayer;\n mainLayer.zlevel = CANVAS_ZLEVEL;\n // Not use common zlevel.\n zlevelList.push(CANVAS_ZLEVEL);\n\n this._domRoot = root;\n }\n }\n\n\n getType() {\n return 'canvas';\n }\n\n /**\n * If painter use a single canvas\n */\n isSingleCanvas() {\n return this._singleCanvas;\n }\n\n getViewportRoot() {\n return this._domRoot;\n }\n\n getViewportRootOffset() {\n const viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n }\n\n /**\n * \u5237\u65B0\n * @param paintAll \u5F3A\u5236\u7ED8\u5236\u6240\u6709displayable\n */\n refresh(paintAll?: boolean) {\n const list = this.storage.getDisplayList(true);\n const prevList = this._prevDisplayList;\n\n const zlevelList = this._zlevelList;\n\n this._redrawId = Math.random();\n\n this._paintList(list, prevList, paintAll, this._redrawId);\n\n // Paint custum layers\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (!layer.__builtin__ && layer.refresh) {\n const clearColor = i === 0 ? this._backgroundColor : null;\n layer.refresh(clearColor);\n }\n }\n\n if (this._opts.useDirtyRect) {\n this._prevDisplayList = list.slice();\n }\n\n return this;\n }\n\n\n refreshHover() {\n this._paintHoverList(this.storage.getDisplayList(false));\n }\n\n private _paintHoverList(list: Displayable[]) {\n let len = list.length;\n let hoverLayer = this._hoverlayer;\n hoverLayer && hoverLayer.clear();\n\n if (!len) {\n return;\n }\n\n const scope: BrushScope = {\n inHover: true,\n viewWidth: this._width,\n viewHeight: this._height\n };\n\n let ctx;\n for (let i = 0; i < len; i++) {\n const el = list[i];\n if (el.__inHover) {\n // Use a extream large zlevel\n // FIXME?\n if (!hoverLayer) {\n hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n\n if (!ctx) {\n ctx = hoverLayer.ctx;\n ctx.save();\n }\n\n brush(ctx, el, scope, i === len - 1);\n }\n }\n if (ctx) {\n ctx.restore();\n }\n }\n\n getHoverLayer() {\n return this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n\n paintOne(ctx: CanvasRenderingContext2D, el: Displayable) {\n brushSingle(ctx, el);\n }\n\n private _paintList(list: Displayable[], prevList: Displayable[], paintAll: boolean, redrawId?: number) {\n if (this._redrawId !== redrawId) {\n return;\n }\n\n paintAll = paintAll || false;\n\n this._updateLayerStatus(list);\n\n const {finished, needsRefreshHover} = this._doPaintList(list, prevList, paintAll);\n\n if (this._needsManuallyCompositing) {\n this._compositeManually();\n }\n\n if (needsRefreshHover) {\n this._paintHoverList(list);\n }\n\n if (!finished) {\n const self = this;\n requestAnimationFrame(function () {\n self._paintList(list, prevList, paintAll, redrawId);\n });\n }\n else {\n this.eachLayer(layer => {\n layer.afterBrush && layer.afterBrush();\n });\n }\n }\n\n private _compositeManually() {\n const ctx = this.getLayer(CANVAS_ZLEVEL).ctx;\n const width = (this._domRoot as HTMLCanvasElement).width;\n const height = (this._domRoot as HTMLCanvasElement).height;\n ctx.clearRect(0, 0, width, height);\n // PENDING, If only builtin layer?\n this.eachBuiltinLayer(function (layer) {\n if (layer.virtual) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n });\n }\n\n private _doPaintList(\n list: Displayable[],\n prevList: Displayable[],\n paintAll?: boolean\n ): {\n finished: boolean\n needsRefreshHover: boolean\n } {\n const layerList = [];\n const useDirtyRect = this._opts.useDirtyRect;\n for (let zi = 0; zi < this._zlevelList.length; zi++) {\n const zlevel = this._zlevelList[zi];\n const layer = this._layers[zlevel];\n if (layer.__builtin__\n && layer !== this._hoverlayer\n && (layer.__dirty || paintAll)\n // Layer with hover elements can't be redrawn.\n // && !layer.__hasHoverLayerELement\n ) {\n layerList.push(layer);\n }\n }\n\n let finished = true;\n let needsRefreshHover = false;\n\n for (let k = 0; k < layerList.length; k++) {\n const layer = layerList[k];\n const ctx = layer.ctx;\n\n const repaintRects = useDirtyRect\n && layer.createRepaintRects(list, prevList, this._width, this._height);\n\n let start = paintAll ? layer.__startIndex : layer.__drawIndex;\n\n const useTimer = !paintAll && layer.incremental && Date.now;\n const startTime = useTimer && Date.now();\n\n const clearColor = layer.zlevel === this._zlevelList[0]\n ? this._backgroundColor : null;\n\n // All elements in this layer are cleared.\n if (layer.__startIndex === layer.__endIndex) {\n layer.clear(false, clearColor, repaintRects);\n }\n else if (start === layer.__startIndex) {\n const firstEl = list[start];\n if (!firstEl.incremental || !(firstEl as IncrementalDisplayable).notClear || paintAll) {\n layer.clear(false, clearColor, repaintRects);\n }\n }\n if (start === -1) {\n console.error('For some unknown reason. drawIndex is -1');\n start = layer.__startIndex;\n }\n let i: number;\n /* eslint-disable-next-line */\n const repaint = (repaintRect?: BoundingRect) => {\n const scope: BrushScope = {\n inHover: false,\n allClipped: false,\n prevEl: null,\n viewWidth: this._width,\n viewHeight: this._height\n };\n\n for (i = start; i < layer.__endIndex; i++) {\n const el = list[i];\n\n if (el.__inHover) {\n needsRefreshHover = true;\n }\n\n this._doPaintEl(el, layer, useDirtyRect, repaintRect, scope, i === layer.__endIndex - 1);\n\n if (useTimer) {\n // Date.now can be executed in 13,025,305 ops/second.\n const dTime = Date.now() - startTime;\n // Give 15 millisecond to draw.\n // The rest elements will be drawn in the next frame.\n if (dTime > 15) {\n break;\n }\n }\n }\n\n if (scope.prevElClipPaths) {\n // Needs restore the state. If last drawn element is in the clipping area.\n ctx.restore();\n }\n };\n\n if (repaintRects) {\n if (repaintRects.length === 0) {\n // Nothing to repaint, mark as finished\n i = layer.__endIndex;\n }\n else {\n const dpr = this.dpr;\n // Set repaintRect as clipPath\n for (var r = 0; r < repaintRects.length; ++r) {\n const rect = repaintRects[r];\n\n ctx.save();\n ctx.beginPath();\n ctx.rect(\n rect.x * dpr,\n rect.y * dpr,\n rect.width * dpr,\n rect.height * dpr\n );\n ctx.clip();\n\n repaint(rect);\n ctx.restore();\n }\n }\n }\n else {\n // Paint all once\n ctx.save();\n repaint();\n ctx.restore();\n }\n\n layer.__drawIndex = i;\n\n if (layer.__drawIndex < layer.__endIndex) {\n finished = false;\n }\n }\n\n if (env.wxa) {\n // Flush for weixin application\n util.each(this._layers, function (layer) {\n if (layer && layer.ctx && (layer.ctx as WXCanvasRenderingContext).draw) {\n (layer.ctx as WXCanvasRenderingContext).draw();\n }\n });\n }\n\n return {\n finished,\n needsRefreshHover\n };\n }\n\n private _doPaintEl(\n el: Displayable,\n currentLayer: Layer,\n useDirtyRect: boolean,\n repaintRect: BoundingRect,\n scope: BrushScope,\n isLast: boolean\n ) {\n const ctx = currentLayer.ctx;\n if (useDirtyRect) {\n const paintRect = el.getPaintRect();\n if (!repaintRect || paintRect && paintRect.intersect(repaintRect)) {\n brush(ctx, el, scope, isLast);\n el.setPrevPaintRect(paintRect);\n }\n }\n else {\n brush(ctx, el, scope, isLast);\n }\n }\n\n /**\n * \u83B7\u53D6 zlevel \u6240\u5728\u5C42\uFF0C\u5982\u679C\u4E0D\u5B58\u5728\u5219\u4F1A\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u5C42\n * @param zlevel\n * @param virtual Virtual layer will not be inserted into dom.\n */\n getLayer(zlevel: number, virtual?: boolean) {\n if (this._singleCanvas && !this._needsManuallyCompositing) {\n zlevel = CANVAS_ZLEVEL;\n }\n let layer = this._layers[zlevel];\n if (!layer) {\n // Create a new layer\n layer = new Layer('zr_' + zlevel, this, this.dpr);\n layer.zlevel = zlevel;\n layer.__builtin__ = true;\n\n if (this._layerConfig[zlevel]) {\n util.merge(layer, this._layerConfig[zlevel], true);\n }\n // TODO Remove EL_AFTER_INCREMENTAL_INC magic number\n else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {\n util.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);\n }\n\n if (virtual) {\n layer.virtual = virtual;\n }\n\n this.insertLayer(zlevel, layer);\n\n // Context is created after dom inserted to document\n // Or excanvas will get 0px clientWidth and clientHeight\n layer.initContext();\n }\n\n return layer;\n }\n\n insertLayer(zlevel: number, layer: Layer) {\n\n const layersMap = this._layers;\n const zlevelList = this._zlevelList;\n const len = zlevelList.length;\n const domRoot = this._domRoot;\n let prevLayer = null;\n let i = -1;\n\n if (layersMap[zlevel]) {\n util.logError('ZLevel ' + zlevel + ' has been used already');\n return;\n }\n // Check if is a valid layer\n if (!isLayerValid(layer)) {\n util.logError('Layer of zlevel ' + zlevel + ' is not valid');\n return;\n }\n\n if (len > 0 && zlevel > zlevelList[0]) {\n for (i = 0; i < len - 1; i++) {\n if (\n zlevelList[i] < zlevel\n && zlevelList[i + 1] > zlevel\n ) {\n break;\n }\n }\n prevLayer = layersMap[zlevelList[i]];\n }\n zlevelList.splice(i + 1, 0, zlevel);\n\n layersMap[zlevel] = layer;\n\n // Vitual layer will not directly show on the screen.\n // (It can be a WebGL layer and assigned to a ZRImage element)\n // But it still under management of zrender.\n if (!layer.virtual) {\n if (prevLayer) {\n const prevDom = prevLayer.dom;\n if (prevDom.nextSibling) {\n domRoot.insertBefore(\n layer.dom,\n prevDom.nextSibling\n );\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n else {\n if (domRoot.firstChild) {\n domRoot.insertBefore(layer.dom, domRoot.firstChild);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n }\n\n layer.__painter = this;\n }\n\n // Iterate each layer\n eachLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n cb.call(context, this._layers[z], z);\n }\n }\n\n // Iterate each buildin layer\n eachBuiltinLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n }\n\n // Iterate each other layer except buildin layer\n eachOtherLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (!layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n }\n\n /**\n * \u83B7\u53D6\u6240\u6709\u5DF2\u521B\u5EFA\u7684\u5C42\n * @param prevLayer\n */\n getLayers() {\n return this._layers;\n }\n\n _updateLayerStatus(list: Displayable[]) {\n\n this.eachBuiltinLayer(function (layer, z) {\n layer.__dirty = layer.__used = false;\n });\n\n function updatePrevLayer(idx: number) {\n if (prevLayer) {\n if (prevLayer.__endIndex !== idx) {\n prevLayer.__dirty = true;\n }\n prevLayer.__endIndex = idx;\n }\n }\n\n if (this._singleCanvas) {\n for (let i = 1; i < list.length; i++) {\n const el = list[i];\n if (el.zlevel !== list[i - 1].zlevel || el.incremental) {\n this._needsManuallyCompositing = true;\n break;\n }\n }\n }\n\n let prevLayer: Layer = null;\n let incrementalLayerCount = 0;\n let prevZlevel;\n let i;\n\n for (i = 0; i < list.length; i++) {\n const el = list[i];\n const zlevel = el.zlevel;\n let layer;\n\n if (prevZlevel !== zlevel) {\n prevZlevel = zlevel;\n incrementalLayerCount = 0;\n }\n\n // TODO Not use magic number on zlevel.\n\n // Each layer with increment element can be separated to 3 layers.\n // (Other Element drawn after incremental element)\n // -----------------zlevel + EL_AFTER_INCREMENTAL_INC--------------------\n // (Incremental element)\n // ----------------------zlevel + INCREMENTAL_INC------------------------\n // (Element drawn before incremental element)\n // --------------------------------zlevel--------------------------------\n if (el.incremental) {\n layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);\n layer.incremental = true;\n incrementalLayerCount = 1;\n }\n else {\n layer = this.getLayer(\n zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0),\n this._needsManuallyCompositing\n );\n }\n\n if (!layer.__builtin__) {\n util.logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id);\n }\n\n if (layer !== prevLayer) {\n layer.__used = true;\n if (layer.__startIndex !== i) {\n layer.__dirty = true;\n }\n layer.__startIndex = i;\n if (!layer.incremental) {\n layer.__drawIndex = i;\n }\n else {\n // Mark layer draw index needs to update.\n layer.__drawIndex = -1;\n }\n updatePrevLayer(i);\n prevLayer = layer;\n }\n if ((el.__dirty & REDARAW_BIT) && !el.__inHover) { // Ignore dirty elements in hover layer.\n layer.__dirty = true;\n if (layer.incremental && layer.__drawIndex < 0) {\n // Start draw from the first dirty element.\n layer.__drawIndex = i;\n }\n }\n }\n\n updatePrevLayer(i);\n\n this.eachBuiltinLayer(function (layer, z) {\n // Used in last frame but not in this frame. Needs clear\n if (!layer.__used && layer.getElementCount() > 0) {\n layer.__dirty = true;\n layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0;\n }\n // For incremental layer. In case start index changed and no elements are dirty.\n if (layer.__dirty && layer.__drawIndex < 0) {\n layer.__drawIndex = layer.__startIndex;\n }\n });\n }\n\n /**\n * \u6E05\u9664hover\u5C42\u5916\u6240\u6709\u5185\u5BB9\n */\n clear() {\n this.eachBuiltinLayer(this._clearLayer);\n return this;\n }\n\n _clearLayer(layer: Layer) {\n layer.clear();\n }\n\n setBackgroundColor(backgroundColor: string | GradientObject | ImagePatternObject) {\n this._backgroundColor = backgroundColor;\n\n util.each(this._layers, layer => {\n layer.setUnpainted();\n });\n }\n\n /**\n * \u4FEE\u6539\u6307\u5B9Azlevel\u7684\u7ED8\u5236\u53C2\u6570\n */\n configLayer(zlevel: number, config: LayerConfig) {\n if (config) {\n const layerConfig = this._layerConfig;\n if (!layerConfig[zlevel]) {\n layerConfig[zlevel] = config;\n }\n else {\n util.merge(layerConfig[zlevel], config, true);\n }\n\n for (let i = 0; i < this._zlevelList.length; i++) {\n const _zlevel = this._zlevelList[i];\n // TODO Remove EL_AFTER_INCREMENTAL_INC magic number\n if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {\n const layer = this._layers[_zlevel];\n util.merge(layer, layerConfig[zlevel], true);\n }\n }\n }\n }\n\n /**\n * \u5220\u9664\u6307\u5B9A\u5C42\n * @param zlevel \u5C42\u6240\u5728\u7684zlevel\n */\n delLayer(zlevel: number) {\n const layers = this._layers;\n const zlevelList = this._zlevelList;\n const layer = layers[zlevel];\n if (!layer) {\n return;\n }\n layer.dom.parentNode.removeChild(layer.dom);\n delete layers[zlevel];\n\n zlevelList.splice(util.indexOf(zlevelList, zlevel), 1);\n }\n\n /**\n * \u533A\u57DF\u5927\u5C0F\u53D8\u5316\u540E\u91CD\u7ED8\n */\n resize(\n width?: number | string,\n height?: number | string\n ) {\n if (!this._domRoot.style) { // Maybe in node or worker\n if (width == null || height == null) {\n return;\n }\n // TODO width / height may be string\n this._width = width as number;\n this._height = height as number;\n\n this.getLayer(CANVAS_ZLEVEL).resize(width as number, height as number);\n }\n else {\n const domRoot = this._domRoot;\n // FIXME Why ?\n domRoot.style.display = 'none';\n\n // Save input w/h\n const opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n\n width = this._getSize(0);\n height = this._getSize(1);\n\n domRoot.style.display = '';\n\n // \u4F18\u5316\u6CA1\u6709\u5B9E\u9645\u6539\u53D8\u7684resize\n if (this._width !== width || height !== this._height) {\n domRoot.style.width = width + 'px';\n domRoot.style.height = height + 'px';\n\n for (let id in this._layers) {\n if (this._layers.hasOwnProperty(id)) {\n this._layers[id].resize(width, height);\n }\n }\n\n this.refresh(true);\n }\n\n this._width = width;\n this._height = height;\n\n }\n return this;\n }\n\n /**\n * \u6E05\u9664\u5355\u72EC\u7684\u4E00\u4E2A\u5C42\n * @param {number} zlevel\n */\n clearLayer(zlevel: number) {\n const layer = this._layers[zlevel];\n if (layer) {\n layer.clear();\n }\n }\n\n /**\n * \u91CA\u653E\n */\n dispose() {\n this.root.innerHTML = '';\n\n this.root =\n this.storage =\n\n this._domRoot =\n this._layers = null;\n }\n\n /**\n * Get canvas which has all thing rendered\n */\n getRenderedCanvas(opts?: {\n backgroundColor?: string | GradientObject | ImagePatternObject\n pixelRatio?: number\n }) {\n opts = opts || {};\n if (this._singleCanvas && !this._compositeManually) {\n return this._layers[CANVAS_ZLEVEL].dom;\n }\n\n const imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);\n imageLayer.initContext();\n imageLayer.clear(false, opts.backgroundColor || this._backgroundColor);\n\n const ctx = imageLayer.ctx;\n\n if (opts.pixelRatio <= this.dpr) {\n this.refresh();\n\n const width = imageLayer.dom.width;\n const height = imageLayer.dom.height;\n this.eachLayer(function (layer) {\n if (layer.__builtin__) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n else if (layer.renderToCanvas) {\n ctx.save();\n layer.renderToCanvas(ctx);\n ctx.restore();\n }\n });\n }\n else {\n // PENDING, echarts-gl and incremental rendering.\n const scope = {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n };\n const displayList = this.storage.getDisplayList(true);\n for (let i = 0, len = displayList.length; i < len; i++) {\n const el = displayList[i];\n brush(ctx, el, scope, i === len - 1);\n }\n }\n\n return imageLayer.dom;\n }\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u5BBD\u5EA6\n */\n getWidth() {\n return this._width;\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u9AD8\u5EA6\n */\n getHeight() {\n return this._height;\n }\n\n _getSize(whIdx: number) {\n const opts = this._opts;\n const wh = ['width', 'height'][whIdx] as 'width' | 'height';\n const cwh = ['clientWidth', 'clientHeight'][whIdx] as 'clientWidth' | 'clientHeight';\n const plt = ['paddingLeft', 'paddingTop'][whIdx] as 'paddingLeft' | 'paddingTop';\n const prb = ['paddingRight', 'paddingBottom'][whIdx] as 'paddingRight' | 'paddingBottom';\n\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh] as string);\n }\n\n const root = this.root;\n // IE8 does not support getComputedStyle, but it use VML.\n const stl = document.defaultView.getComputedStyle(root);\n\n return (\n (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)\n ) | 0;\n }\n\n pathToImage(path: Path, dpr?: number): ZRImage {\n dpr = dpr || this.dpr;\n\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n const rect = path.getBoundingRect();\n const style = path.style;\n const shadowBlurSize = style.shadowBlur * dpr;\n const shadowOffsetX = style.shadowOffsetX * dpr;\n const shadowOffsetY = style.shadowOffsetY * dpr;\n const lineWidth = path.hasStroke() ? style.lineWidth : 0;\n\n const leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize);\n const rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize);\n const topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize);\n const bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize);\n const width = rect.width + leftMargin + rightMargin;\n const height = rect.height + topMargin + bottomMargin;\n\n canvas.width = width * dpr;\n canvas.height = height * dpr;\n\n ctx.scale(dpr, dpr);\n ctx.clearRect(0, 0, width, height);\n (ctx as ZRCanvasRenderingContext).dpr = dpr;\n\n const pathTransform = {\n x: path.x,\n y: path.y,\n scaleX: path.scaleX,\n scaleY: path.scaleY,\n rotation: path.rotation,\n originX: path.originX,\n originY: path.originY\n };\n path.x = leftMargin - rect.x;\n path.y = topMargin - rect.y;\n path.rotation = 0;\n path.scaleX = 1;\n path.scaleY = 1;\n path.updateTransform();\n if (path) {\n brush(ctx, path, {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n }, true);\n }\n\n const imgShape = new ZRImage({\n style: {\n x: 0,\n y: 0,\n image: canvas\n }\n });\n\n util.extend(path, pathTransform);\n\n return imgShape;\n }\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPainter('canvas', CanvasPainter);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOnCartesianOptionMixin,\n SeriesOption,\n SeriesOnPolarOptionMixin,\n SeriesStackOptionMixin,\n SeriesLabelOption,\n LineStyleOption,\n ItemStyleOption,\n AreaStyleOption,\n OptionDataValue,\n SymbolOptionMixin,\n SeriesSamplingOptionMixin,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport {Group} from '../../util/graphic';\nimport {LegendIconParams} from '../../component/legend/LegendModel';\n\ntype LineDataValue = OptionDataValue | OptionDataValue[];\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface LineStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n endLabel?: LineEndLabelOption\n}\n\nexport interface LineDataItemOption extends SymbolOptionMixin,\n LineStateOption, StatesOptionMixin {\n name?: string\n\n value?: LineDataValue\n}\n\nexport interface LineEndLabelOption extends SeriesLabelOption {\n valueAnimation?: boolean\n}\n\n\nexport interface LineSeriesOption extends SeriesOption, LineStateOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesStackOptionMixin,\n SeriesSamplingOptionMixin,\n SymbolOptionMixin,\n SeriesEncodeOptionMixin {\n type?: 'line'\n\n coordinateSystem?: 'cartesian2d' | 'polar'\n\n // If clip the overflow value\n clip?: boolean\n\n label?: SeriesLabelOption\n endLabel?: LineEndLabelOption\n\n lineStyle?: LineStyleOption\n\n areaStyle?: AreaStyleOption & {\n origin?: 'auto' | 'start' | 'end'\n }\n\n step?: false | 'start' | 'end' | 'middle'\n\n smooth?: boolean | number\n\n smoothMonotone?: 'x' | 'y' | 'none'\n\n connectNulls?: boolean\n\n showSymbol?: boolean\n // false | 'auto': follow the label interval strategy.\n // true: show all symbols.\n showAllSymbol?: 'auto'\n\n data?: (LineDataValue | LineDataItemOption)[]\n}\n\nclass LineSeriesModel extends SeriesModel {\n static readonly type = 'series.line';\n type = LineSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar'];\n\n coordinateSystem: Cartesian2D | Polar;\n\n hasSymbolVisual = true;\n\n getInitialData(option: LineSeriesOption): SeriesData {\n if (__DEV__) {\n const coordSys = option.coordinateSystem;\n if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {\n throw new Error('Line not support coordinateSystem besides cartesian and polar');\n }\n }\n return createSeriesData(null, this, {\n useEncodeDefaulter: true\n });\n }\n\n static defaultOption: LineSeriesOption = {\n zlevel: 0,\n z: 3,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n clip: true,\n\n label: {\n position: 'top'\n },\n\n // itemStyle: {\n // },\n\n endLabel: {\n show: false,\n valueAnimation: true,\n distance: 8\n },\n\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n\n emphasis: {\n scale: true,\n lineStyle: {\n width: 'bolder'\n }\n },\n // areaStyle: {\n // origin of areaStyle. Valid values:\n // `'auto'/null/undefined`: from axisLine to data\n // `'start'`: from min to data\n // `'end'`: from data to max\n // origin: 'auto'\n // },\n // false, 'start', 'end', 'middle'\n step: false,\n\n // Disabled if step is true\n smooth: false,\n smoothMonotone: null,\n symbol: 'emptyCircle',\n symbolSize: 4,\n symbolRotate: null,\n\n showSymbol: true,\n // `false`: follow the label interval strategy.\n // `true`: show all symbols.\n // `'auto'`: If possible, show all symbols, otherwise\n // follow the label interval strategy.\n showAllSymbol: 'auto',\n\n // Whether to connect break point.\n connectNulls: false,\n\n // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.\n sampling: 'none',\n\n animationEasing: 'linear',\n\n // Disable progressive\n progressive: 0,\n hoverLayerThreshold: Infinity,\n\n universalTransition: {\n divideShape: 'clone'\n }\n };\n\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group {\n const group = new Group();\n\n const line = createSymbol(\n 'line',\n 0,\n opt.itemHeight / 2,\n opt.itemWidth,\n 0,\n opt.lineStyle.stroke,\n false\n );\n group.add(line);\n line.setStyle(opt.lineStyle);\n\n const visualType = this.getData().getVisual('symbol');\n const visualRotate = this.getData().getVisual('symbolRotate');\n const symbolType = visualType === 'none' ? 'circle' : visualType;\n\n // Symbol size is 80% when there is a line\n const size = opt.itemHeight * 0.8;\n const symbol = createSymbol(\n symbolType,\n (opt.itemWidth - size) / 2,\n (opt.itemHeight - size) / 2,\n size,\n size,\n opt.itemStyle.fill\n );\n group.add(symbol);\n\n symbol.setStyle(opt.itemStyle);\n\n const symbolRotate = opt.iconRotate === 'inherit'\n ? visualRotate\n : (opt.iconRotate || 0);\n symbol.rotation = symbolRotate * Math.PI / 180;\n symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symbolType.indexOf('empty') > -1) {\n symbol.style.stroke = symbol.style.fill;\n symbol.style.fill = '#fff';\n symbol.style.lineWidth = 2;\n }\n\n return group;\n }\n}\n\nexport default LineSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {retrieveRawValue} from '../../data/helper/dataProvider';\nimport SeriesData from '../../data/SeriesData';\nimport { InterpolatableValue } from '../../util/types';\nimport { isArray } from 'zrender/src/core/util';\n\n/**\n * @return label string. Not null/undefined\n */\nexport function getDefaultLabel(\n data: SeriesData,\n dataIndex: number\n): string {\n const labelDims = data.mapDimensionsAll('defaultedLabel');\n const len = labelDims.length;\n\n // Simple optimization (in lots of cases, label dims length is 1)\n if (len === 1) {\n const rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\n return rawVal != null ? rawVal + '' : null;\n }\n else if (len) {\n const vals = [];\n for (let i = 0; i < labelDims.length; i++) {\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\n }\n return vals.join(' ');\n }\n}\n\nexport function getDefaultInterpolatedLabel(\n data: SeriesData,\n interpolatedValue: InterpolatableValue\n): string {\n const labelDims = data.mapDimensionsAll('defaultedLabel');\n if (!isArray(interpolatedValue)) {\n return interpolatedValue + '';\n }\n\n const vals = [];\n for (let i = 0; i < labelDims.length; i++) {\n const dimIndex = data.getDimensionIndex(labelDims[i]);\n if (dimIndex >= 0) {\n vals.push(interpolatedValue[dimIndex]);\n }\n }\n return vals.join(' ');\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport {getDefaultLabel} from './labelHelper';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString, BlurScope, AnimationOption, ZRColor } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { SymbolDrawSeriesScope, SymbolDrawItemModelOption } from './SymbolDraw';\nimport { extend } from 'zrender/src/core/util';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype ECSymbol = ReturnType;\n\ninterface SymbolOpts {\n disableAnimation?: boolean\n\n useNameLabel?: boolean\n symbolInnerColor?: ZRColor\n}\n\nclass Symbol extends graphic.Group {\n\n private _seriesModel: SeriesModel;\n\n private _symbolType: string;\n\n /**\n * Original scale\n */\n private _sizeX: number;\n private _sizeY: number;\n\n private _z2: number;\n\n constructor(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) {\n super();\n this.updateData(data, idx, seriesScope, opts);\n }\n\n _createSymbol(\n symbolType: string,\n data: SeriesData,\n idx: number,\n symbolSize: number[],\n keepAspect: boolean\n ) {\n // Remove paths created before\n this.removeAll();\n\n // let symbolPath = createSymbol(\n // symbolType, -0.5, -0.5, 1, 1, color\n // );\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4150.\n const symbolPath = createSymbol(\n symbolType, -1, -1, 2, 2, null, keepAspect\n );\n\n symbolPath.attr({\n z2: 100,\n culling: true,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n });\n // Rewrite drift method\n symbolPath.drift = driftSymbol;\n\n this._symbolType = symbolType;\n\n this.add(symbolPath);\n }\n\n /**\n * Stop animation\n * @param {boolean} toLastFrame\n */\n stopSymbolAnimation(toLastFrame: boolean) {\n this.childAt(0).stopAnimation(null, toLastFrame);\n }\n\n getSymbolType() {\n return this._symbolType;\n }\n /**\n * FIXME:\n * Caution: This method breaks the encapsulation of this module,\n * but it indeed brings convenience. So do not use the method\n * unless you detailedly know all the implements of `Symbol`,\n * especially animation.\n *\n * Get symbol path element.\n */\n getSymbolPath() {\n return this.childAt(0) as ECSymbol;\n }\n\n /**\n * Highlight symbol\n */\n highlight() {\n enterEmphasis(this.childAt(0));\n }\n\n /**\n * Downplay symbol\n */\n downplay() {\n leaveEmphasis(this.childAt(0));\n }\n\n /**\n * @param {number} zlevel\n * @param {number} z\n */\n setZ(zlevel: number, z: number) {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.zlevel = zlevel;\n symbolPath.z = z;\n }\n\n setDraggable(draggable: boolean) {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.draggable = draggable;\n symbolPath.cursor = draggable ? 'move' : symbolPath.cursor;\n }\n\n /**\n * Update symbol properties\n */\n updateData(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) {\n this.silent = false;\n\n const symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n const seriesModel = data.hostModel as SeriesModel;\n const symbolSize = Symbol.getSymbolSize(data, idx);\n const isInit = symbolType !== this._symbolType;\n const disableAnimation = opts && opts.disableAnimation;\n\n if (isInit) {\n const keepAspect = data.getItemVisual(idx, 'symbolKeepAspect');\n this._createSymbol(symbolType as string, data, idx, symbolSize, keepAspect);\n }\n else {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.silent = false;\n const target = {\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n };\n disableAnimation ? symbolPath.attr(target)\n : graphic.updateProps(symbolPath, target, seriesModel, idx);\n\n saveOldStyle(symbolPath);\n }\n\n this._updateCommon(data, idx, symbolSize, seriesScope, opts);\n\n if (isInit) {\n const symbolPath = this.childAt(0) as ECSymbol;\n\n if (!disableAnimation) {\n const target: PathProps = {\n scaleX: this._sizeX,\n scaleY: this._sizeY,\n style: {\n // Always fadeIn. Because it has fadeOut animation when symbol is removed..\n opacity: symbolPath.style.opacity\n }\n };\n symbolPath.scaleX = symbolPath.scaleY = 0;\n symbolPath.style.opacity = 0;\n graphic.initProps(symbolPath, target, seriesModel, idx);\n }\n }\n\n if (disableAnimation) {\n // Must stop remove animation manually if don't call initProps or updateProps.\n this.childAt(0).stopAnimation('remove');\n }\n\n this._seriesModel = seriesModel;\n }\n\n _updateCommon(\n data: SeriesData,\n idx: number,\n symbolSize: number[],\n seriesScope?: SymbolDrawSeriesScope,\n opts?: SymbolOpts\n ) {\n const symbolPath = this.childAt(0) as ECSymbol;\n const seriesModel = data.hostModel as SeriesModel;\n\n let emphasisItemStyle;\n let blurItemStyle;\n let selectItemStyle;\n let focus;\n let blurScope: BlurScope;\n\n let labelStatesModels;\n\n let hoverScale;\n let cursorStyle;\n\n if (seriesScope) {\n emphasisItemStyle = seriesScope.emphasisItemStyle;\n blurItemStyle = seriesScope.blurItemStyle;\n selectItemStyle = seriesScope.selectItemStyle;\n focus = seriesScope.focus;\n blurScope = seriesScope.blurScope;\n\n labelStatesModels = seriesScope.labelStatesModels;\n\n hoverScale = seriesScope.hoverScale;\n cursorStyle = seriesScope.cursorStyle;\n }\n\n if (!seriesScope || data.hasItemOption) {\n const itemModel = (seriesScope && seriesScope.itemModel)\n ? seriesScope.itemModel : data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n\n emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n\n labelStatesModels = getLabelStatesModels(itemModel);\n\n hoverScale = emphasisModel.getShallow('scale');\n cursorStyle = itemModel.getShallow('cursor');\n }\n\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);\n\n const symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);\n if (symbolOffset) {\n symbolPath.x = symbolOffset[0];\n symbolPath.y = symbolOffset[1];\n }\n\n cursorStyle && symbolPath.attr('cursor', cursorStyle);\n\n const symbolStyle = data.getItemVisual(idx, 'style');\n const visualColor = symbolStyle.fill;\n\n if (symbolPath instanceof ZRImage) {\n const pathStyle = symbolPath.style;\n symbolPath.useStyle(extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolStyle));\n }\n else {\n if (symbolPath.__isEmptyBrush) {\n // fill and stroke will be swapped if it's empty.\n // So we cloned a new style to avoid it affecting the original style in visual storage.\n // TODO Better implementation. No empty logic!\n symbolPath.useStyle(extend({}, symbolStyle));\n }\n else {\n symbolPath.useStyle(symbolStyle);\n }\n // Disable decal because symbol scale will been applied on the decal.\n symbolPath.style.decal = null;\n symbolPath.setColor(visualColor, opts && opts.symbolInnerColor);\n symbolPath.style.strokeNoScale = true;\n\n }\n const liftZ = data.getItemVisual(idx, 'liftZ');\n const z2Origin = this._z2;\n if (liftZ != null) {\n if (z2Origin == null) {\n this._z2 = symbolPath.z2;\n symbolPath.z2 += liftZ;\n }\n }\n else if (z2Origin != null) {\n symbolPath.z2 = z2Origin;\n this._z2 = null;\n }\n\n const useNameLabel = opts && opts.useNameLabel;\n\n setLabelStyle(\n symbolPath, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultText: getLabelDefaultText,\n inheritColor: visualColor as ColorString,\n defaultOpacity: symbolStyle.opacity\n }\n );\n\n // Do not execute util needed.\n function getLabelDefaultText(idx: number) {\n return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);\n }\n\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n\n const emphasisState = symbolPath.ensureState('emphasis');\n\n emphasisState.style = emphasisItemStyle;\n symbolPath.ensureState('select').style = selectItemStyle;\n symbolPath.ensureState('blur').style = blurItemStyle;\n\n if (hoverScale) {\n const scaleRatio = Math.max(1.1, 3 / this._sizeY);\n emphasisState.scaleX = this._sizeX * scaleRatio;\n emphasisState.scaleY = this._sizeY * scaleRatio;\n }\n this.setSymbolScale(1);\n\n enableHoverEmphasis(this, focus, blurScope);\n }\n\n setSymbolScale(scale: number) {\n this.scaleX = this.scaleY = scale;\n }\n\n fadeOut(cb: () => void, opt?: {\n fadeLabel: boolean,\n animation?: AnimationOption\n }) {\n const symbolPath = this.childAt(0) as ECSymbol;\n const seriesModel = this._seriesModel;\n const dataIndex = getECData(this).dataIndex;\n const animationOpt = opt && opt.animation;\n // Avoid mistaken hover when fading out\n this.silent = symbolPath.silent = true;\n // Not show text when animating\n if (opt && opt.fadeLabel) {\n const textContent = symbolPath.getTextContent();\n if (textContent) {\n graphic.removeElement(textContent, {\n style: {\n opacity: 0\n }\n }, seriesModel, {\n dataIndex,\n removeOpt: animationOpt,\n cb() {\n symbolPath.removeTextContent();\n }\n });\n }\n }\n else {\n symbolPath.removeTextContent();\n }\n\n graphic.removeElement(\n symbolPath,\n {\n style: {\n opacity: 0\n },\n scaleX: 0,\n scaleY: 0\n },\n seriesModel,\n { dataIndex, cb, removeOpt: animationOpt}\n );\n }\n\n static getSymbolSize(data: SeriesData, idx: number) {\n return normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n }\n}\n\n\nfunction driftSymbol(this: ECSymbol, dx: number, dy: number) {\n this.parent.drift(dx, dy);\n}\n\nexport default Symbol;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport SymbolClz from './Symbol';\nimport { isObject } from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport {\n StageHandlerProgressParams,\n LabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n ZRColor,\n AnimationOptionMixin,\n ZRStyleProps,\n StatesOptionMixin,\n BlurScope,\n DisplayState,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport Model from '../../model/Model';\nimport { ScatterSeriesOption } from '../scatter/ScatterSeries';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\ninterface UpdateOpt {\n isIgnore?(idx: number): boolean\n clipShape?: CoordinateSystemClipArea,\n getSymbolPoint?(idx: number): number[]\n\n disableAnimation?: boolean\n}\n\ninterface SymbolLike extends graphic.Group {\n updateData(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): void\n fadeOut?(cb: () => void): void\n}\n\ninterface SymbolLikeCtor {\n new(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): SymbolLike\n}\n\nfunction symbolNeedsDraw(data: SeriesData, point: number[], idx: number, opt: UpdateOpt) {\n return point && !isNaN(point[0]) && !isNaN(point[1])\n && !(opt.isIgnore && opt.isIgnore(idx))\n // We do not set clipShape on group, because it will cut part of\n // the symbol element shape. We use the same clip shape here as\n // the line clip.\n && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1]))\n && data.getItemVisual(idx, 'symbol') !== 'none';\n}\n\nfunction normalizeUpdateOpt(opt: UpdateOpt) {\n if (opt != null && !isObject(opt)) {\n opt = {isIgnore: opt};\n }\n return opt || {};\n}\n\ninterface RippleEffectOption {\n period?: number\n /**\n * Scale of ripple\n */\n scale?: number\n\n brushType?: 'fill' | 'stroke'\n\n color?: ZRColor,\n\n /**\n * ripple number\n */\n number?: number\n}\n\ninterface SymbolDrawStateOption {\n itemStyle?: ItemStyleOption\n label?: LabelOption\n}\n\n// TODO Separate series and item?\nexport interface SymbolDrawItemModelOption extends SymbolOptionMixin,\n StatesOptionMixin,\n SymbolDrawStateOption {\n\n cursor?: string\n\n // If has ripple effect\n rippleEffect?: RippleEffectOption\n}\n\nexport interface SymbolDrawSeriesScope {\n emphasisItemStyle?: ZRStyleProps\n blurItemStyle?: ZRStyleProps\n selectItemStyle?: ZRStyleProps\n\n focus?: DefaultEmphasisFocus\n blurScope?: BlurScope\n\n labelStatesModels: Record>\n\n itemModel?: Model\n\n hoverScale?: boolean\n\n cursorStyle?: string\n fadeIn?: boolean\n}\n\nfunction makeSeriesScope(data: SeriesData): SymbolDrawSeriesScope {\n const seriesModel = data.hostModel as Model;\n const emphasisModel = seriesModel.getModel('emphasis');\n return {\n emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(),\n blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(),\n selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(),\n\n focus: emphasisModel.get('focus'),\n blurScope: emphasisModel.get('blurScope'),\n\n hoverScale: emphasisModel.get('scale'),\n\n labelStatesModels: getLabelStatesModels(seriesModel),\n\n cursorStyle: seriesModel.get('cursor')\n };\n}\n\nexport type ListForSymbolDraw = SeriesData>;\n\nclass SymbolDraw {\n group = new graphic.Group();\n\n private _data: ListForSymbolDraw;\n\n private _SymbolCtor: SymbolLikeCtor;\n\n private _seriesScope: SymbolDrawSeriesScope;\n\n private _getSymbolPoint: UpdateOpt['getSymbolPoint'];\n\n constructor(SymbolCtor?: SymbolLikeCtor) {\n this._SymbolCtor = SymbolCtor || SymbolClz as SymbolLikeCtor;\n }\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: ListForSymbolDraw, opt?: UpdateOpt) {\n opt = normalizeUpdateOpt(opt);\n\n const group = this.group;\n const seriesModel = data.hostModel;\n const oldData = this._data;\n const SymbolCtor = this._SymbolCtor;\n const disableAnimation = opt.disableAnimation;\n\n const seriesScope = makeSeriesScope(data);\n\n const symbolUpdateOpt = { disableAnimation };\n\n const getSymbolPoint = opt.getSymbolPoint || function (idx: number) {\n return data.getItemLayout(idx);\n };\n\n\n // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!oldData) {\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n const point = getSymbolPoint(newIdx);\n if (symbolNeedsDraw(data, point, newIdx, opt)) {\n const symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n })\n .update(function (newIdx, oldIdx) {\n let symbolEl = oldData.getItemGraphicEl(oldIdx) as SymbolLike;\n\n const point = getSymbolPoint(newIdx) as number[];\n if (!symbolNeedsDraw(data, point, newIdx, opt)) {\n group.remove(symbolEl);\n return;\n }\n const newSymbolType = data.getItemVisual(newIdx, 'symbol') || 'circle';\n const oldSymbolType = symbolEl\n && (symbolEl as SymbolClz).getSymbolType\n && (symbolEl as SymbolClz).getSymbolType();\n\n if (!symbolEl\n // Create a new if symbol type changed.\n || (oldSymbolType && oldSymbolType !== newSymbolType)\n ) {\n group.remove(symbolEl);\n symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n }\n else {\n symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt);\n const target = {\n x: point[0],\n y: point[1]\n };\n disableAnimation\n ? symbolEl.attr(target)\n : graphic.updateProps(symbolEl, target, seriesModel);\n }\n\n // Add back\n group.add(symbolEl);\n\n data.setItemGraphicEl(newIdx, symbolEl);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx) as SymbolLike;\n el && el.fadeOut(function () {\n group.remove(el);\n });\n })\n .execute();\n\n this._getSymbolPoint = getSymbolPoint;\n this._data = data;\n };\n\n isPersistent() {\n return true;\n };\n\n updateLayout() {\n const data = this._data;\n if (data) {\n // Not use animation\n data.eachItemGraphicEl((el, idx) => {\n const point = this._getSymbolPoint(idx);\n el.setPosition(point);\n el.markRedraw();\n });\n }\n };\n\n incrementalPrepareUpdate(data: ListForSymbolDraw) {\n this._seriesScope = makeSeriesScope(data);\n this._data = null;\n this.group.removeAll();\n };\n\n /**\n * Update symbols draw by new data\n */\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: ListForSymbolDraw, opt?: UpdateOpt) {\n opt = normalizeUpdateOpt(opt);\n\n function updateIncrementalAndHover(el: Displayable) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n for (let idx = taskParams.start; idx < taskParams.end; idx++) {\n const point = data.getItemLayout(idx) as number[];\n if (symbolNeedsDraw(data, point, idx, opt)) {\n const el = new this._SymbolCtor(data, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n el.setPosition(point);\n this.group.add(el);\n data.setItemGraphicEl(idx, el);\n }\n }\n };\n\n remove(enableAnimation?: boolean) {\n const group = this.group;\n const data = this._data;\n // Incremental model do not have this._data.\n if (data && enableAnimation) {\n data.eachItemGraphicEl(function (el: SymbolLike) {\n el.fadeOut(function () {\n group.remove(el);\n });\n });\n }\n else {\n group.removeAll();\n }\n };\n\n}\n\nexport default SymbolDraw;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {isDimensionStacked} from '../../data/helper/dataStackHelper';\nimport {map} from 'zrender/src/core/util';\nimport type Polar from '../../coord/polar/Polar';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesData from '../../data/SeriesData';\nimport Axis from '../../coord/Axis';\nimport type { LineSeriesOption } from './LineSeries';\n\ninterface CoordInfo {\n dataDimsForPoint: string[]\n valueStart: number\n valueAxisDim: string\n baseAxisDim: string\n stacked: boolean\n valueDim: string\n baseDim: string\n baseDataOffset: number\n stackedOverDimension: string\n}\n\nexport function prepareDataCoordInfo(\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n valueOrigin?: LineSeriesOption['areaStyle']['origin']\n): CoordInfo {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis as any);\n const valueStart = getValueStart(valueAxis, valueOrigin);\n\n const baseAxisDim = baseAxis.dim;\n const valueAxisDim = valueAxis.dim;\n const valueDim = data.mapDimension(valueAxisDim);\n const baseDim = data.mapDimension(baseAxisDim);\n const baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n\n const dims = map(coordSys.dimensions, function (coordDim) {\n return data.mapDimension(coordDim);\n });\n\n let stacked = false;\n const stackResultDim = data.getCalculationInfo('stackResultDimension');\n if (isDimensionStacked(data, dims[0] /*, dims[1]*/)) { // jshint ignore:line\n stacked = true;\n dims[0] = stackResultDim;\n }\n if (isDimensionStacked(data, dims[1] /*, dims[0]*/)) { // jshint ignore:line\n stacked = true;\n dims[1] = stackResultDim;\n }\n\n return {\n dataDimsForPoint: dims,\n valueStart: valueStart,\n valueAxisDim: valueAxisDim,\n baseAxisDim: baseAxisDim,\n stacked: !!stacked,\n valueDim: valueDim,\n baseDim: baseDim,\n baseDataOffset: baseDataOffset,\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension')\n };\n}\n\nfunction getValueStart(valueAxis: Axis, valueOrigin: LineSeriesOption['areaStyle']['origin']) {\n let valueStart = 0;\n const extent = valueAxis.scale.getExtent();\n\n if (valueOrigin === 'start') {\n valueStart = extent[0];\n }\n else if (valueOrigin === 'end') {\n valueStart = extent[1];\n }\n // auto\n else {\n // Both positive\n if (extent[0] > 0) {\n valueStart = extent[0];\n }\n // Both negative\n else if (extent[1] < 0) {\n valueStart = extent[1];\n }\n // If is one positive, and one negative, onZero shall be true\n }\n\n return valueStart;\n}\n\nexport function getStackedOnPoint(\n dataCoordInfo: CoordInfo,\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n idx: number\n) {\n let value = NaN;\n if (dataCoordInfo.stacked) {\n value = data.get(data.getCalculationInfo('stackedOverDimension'), idx) as number;\n }\n if (isNaN(value)) {\n value = dataCoordInfo.valueStart;\n }\n\n const baseDataOffset = dataCoordInfo.baseDataOffset;\n const stackedData = [];\n stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx);\n stackedData[1 - baseDataOffset] = value;\n\n return coordSys.dataToPoint(stackedData);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray } from 'zrender/src/core/util';\n\n/* global Float32Array */\nconst supportFloat32Array = typeof Float32Array !== 'undefined';\n\nconst Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array;\n\nexport function createFloat32Array(arg: number | number[]): number[] | Float32Array {\n if (isArray(arg)) {\n // Return self directly if don't support TypedArray.\n return supportFloat32Array ? new Float32Array(arg) : arg;\n }\n // Else is number\n return new Float32ArrayCtor(arg);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {prepareDataCoordInfo, getStackedOnPoint} from './helper';\nimport SeriesData from '../../data/SeriesData';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport { LineSeriesOption } from './LineSeries';\nimport { createFloat32Array } from '../../util/vendor';\n\ninterface DiffItem {\n cmd: '+' | '=' | '-'\n idx: number\n idx1?: number\n}\n\nfunction diffData(oldData: SeriesData, newData: SeriesData) {\n const diffResult: DiffItem[] = [];\n\n newData.diff(oldData)\n .add(function (idx) {\n diffResult.push({cmd: '+', idx: idx});\n })\n .update(function (newIdx, oldIdx) {\n diffResult.push({cmd: '=', idx: oldIdx, idx1: newIdx});\n })\n .remove(function (idx) {\n diffResult.push({cmd: '-', idx: idx});\n })\n .execute();\n\n return diffResult;\n}\n\nexport default function lineAnimationDiff(\n oldData: SeriesData, newData: SeriesData,\n oldStackedOnPoints: ArrayLike, newStackedOnPoints: ArrayLike,\n oldCoordSys: Cartesian2D | Polar, newCoordSys: Cartesian2D | Polar,\n oldValueOrigin: LineSeriesOption['areaStyle']['origin'],\n newValueOrigin: LineSeriesOption['areaStyle']['origin']\n) {\n const diff = diffData(oldData, newData);\n\n // let newIdList = newData.mapArray(newData.getId);\n // let oldIdList = oldData.mapArray(oldData.getId);\n\n // convertToIntId(newIdList, oldIdList);\n\n // // FIXME One data ?\n // diff = arrayDiff(oldIdList, newIdList);\n\n const currPoints: number[] = [];\n const nextPoints: number[] = [];\n // Points for stacking base line\n const currStackedPoints: number[] = [];\n const nextStackedPoints: number[] = [];\n\n const status = [];\n const sortedIndices: number[] = [];\n const rawIndices: number[] = [];\n\n const newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin);\n // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin);\n\n const oldPoints = oldData.getLayout('points') as number[] || [];\n const newPoints = newData.getLayout('points') as number[] || [];\n\n for (let i = 0; i < diff.length; i++) {\n const diffItem = diff[i];\n let pointAdded = true;\n\n let oldIdx2: number;\n let newIdx2: number;\n\n // FIXME, animation is not so perfect when dataZoom window moves fast\n // Which is in case remvoing or add more than one data in the tail or head\n switch (diffItem.cmd) {\n case '=':\n oldIdx2 = diffItem.idx * 2;\n newIdx2 = diffItem.idx1 * 2;\n let currentX = oldPoints[oldIdx2];\n let currentY = oldPoints[oldIdx2 + 1];\n const nextX = newPoints[newIdx2];\n const nextY = newPoints[newIdx2 + 1];\n\n // If previous data is NaN, use next point directly\n if (isNaN(currentX) || isNaN(currentY)) {\n currentX = nextX;\n currentY = nextY;\n }\n currPoints.push(currentX, currentY);\n nextPoints.push(nextX, nextY);\n\n currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n\n rawIndices.push(newData.getRawIndex(diffItem.idx1));\n break;\n case '+':\n const newIdx = diffItem.idx;\n const newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint;\n const oldPt = oldCoordSys.dataToPoint([\n newData.get(newDataDimsForPoint[0], newIdx),\n newData.get(newDataDimsForPoint[1], newIdx)\n ]);\n newIdx2 = newIdx * 2;\n currPoints.push(oldPt[0], oldPt[1]);\n\n nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]);\n\n const stackedOnPoint = getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, newIdx);\n\n currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n\n rawIndices.push(newData.getRawIndex(newIdx));\n break;\n case '-':\n pointAdded = false;\n }\n\n // Original indices\n if (pointAdded) {\n status.push(diffItem);\n sortedIndices.push(sortedIndices.length);\n }\n }\n\n // Diff result may be crossed if all items are changed\n // Sort by data index\n sortedIndices.sort(function (a, b) {\n return rawIndices[a] - rawIndices[b];\n });\n\n const len = currPoints.length;\n const sortedCurrPoints = createFloat32Array(len);\n const sortedNextPoints = createFloat32Array(len);\n\n const sortedCurrStackedPoints = createFloat32Array(len);\n const sortedNextStackedPoints = createFloat32Array(len);\n\n const sortedStatus = [];\n for (let i = 0; i < sortedIndices.length; i++) {\n const idx = sortedIndices[i];\n const i2 = i * 2;\n const idx2 = idx * 2;\n sortedCurrPoints[i2] = currPoints[idx2];\n sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1];\n sortedNextPoints[i2] = nextPoints[idx2];\n sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1];\n\n sortedCurrStackedPoints[i2] = currStackedPoints[idx2];\n sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1];\n sortedNextStackedPoints[i2] = nextStackedPoints[idx2];\n sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1];\n\n sortedStatus[i] = status[idx];\n }\n\n return {\n current: sortedCurrPoints,\n next: sortedNextPoints,\n\n stackedOnCurrent: sortedCurrStackedPoints,\n stackedOnNext: sortedNextStackedPoints,\n\n status: sortedStatus\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Poly path support NaN point\n\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport { cubicRootAt, cubicAt } from 'zrender/src/core/curve';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\nfunction isPointNull(x: number, y: number) {\n return isNaN(x) || isNaN(y);\n}\n\n/**\n * Draw smoothed line in non-monotone, in may cause undesired curve in extreme\n * situations. This should be used when points are non-monotone neither in x or\n * y dimension.\n */\nfunction drawSegment(\n ctx: PathProxy,\n points: ArrayLike,\n start: number,\n segLen: number,\n allLen: number,\n dir: number,\n smooth: number,\n smoothMonotone: 'x' | 'y' | 'none',\n connectNulls: boolean\n) {\n let prevX: number;\n let prevY: number;\n let cpx0: number;\n let cpy0: number;\n let cpx1: number;\n let cpy1: number;\n let idx = start;\n let k = 0;\n for (; k < segLen; k++) {\n\n const x = points[idx * 2];\n const y = points[idx * 2 + 1];\n\n if (idx >= allLen || idx < 0) {\n break;\n }\n if (isPointNull(x, y)) {\n if (connectNulls) {\n idx += dir;\n continue;\n }\n break;\n }\n\n if (idx === start) {\n ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y);\n cpx0 = x;\n cpy0 = y;\n }\n else {\n const dx = x - prevX;\n const dy = y - prevY;\n\n // Ignore tiny segment.\n if ((dx * dx + dy * dy) < 0.5) {\n idx += dir;\n continue;\n }\n\n if (smooth > 0) {\n let nextIdx = idx + dir;\n let nextX = points[nextIdx * 2];\n let nextY = points[nextIdx * 2 + 1];\n let tmpK = k + 1;\n if (connectNulls) {\n // Find next point not null\n while (isPointNull(nextX, nextY) && tmpK < segLen) {\n tmpK++;\n nextIdx += dir;\n nextX = points[nextIdx * 2];\n nextY = points[nextIdx * 2 + 1];\n }\n }\n\n let ratioNextSeg = 0.5;\n let vx: number = 0;\n let vy: number = 0;\n let nextCpx0;\n let nextCpy0;\n // Is last point\n if (tmpK >= segLen || isPointNull(nextX, nextY)) {\n cpx1 = x;\n cpy1 = y;\n }\n else {\n vx = nextX - prevX;\n vy = nextY - prevY;\n\n const dx0 = x - prevX;\n const dx1 = nextX - x;\n const dy0 = y - prevY;\n const dy1 = nextY - y;\n let lenPrevSeg;\n let lenNextSeg;\n if (smoothMonotone === 'x') {\n lenPrevSeg = Math.abs(dx0);\n lenNextSeg = Math.abs(dx1);\n cpx1 = x - lenPrevSeg * smooth;\n cpy1 = y;\n nextCpx0 = x + lenPrevSeg * smooth;\n nextCpy0 = y;\n }\n else if (smoothMonotone === 'y') {\n lenPrevSeg = Math.abs(dy0);\n lenNextSeg = Math.abs(dy1);\n cpx1 = x;\n cpy1 = y - lenPrevSeg * smooth;\n nextCpx0 = x;\n nextCpy0 = y + lenPrevSeg * smooth;\n }\n else {\n lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0);\n lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n\n // Use ratio of seg length\n ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);\n\n cpx1 = x - vx * smooth * (1 - ratioNextSeg);\n cpy1 = y - vy * smooth * (1 - ratioNextSeg);\n\n // cp0 of next segment\n nextCpx0 = x + vx * smooth * ratioNextSeg;\n nextCpy0 = y + vy * smooth * ratioNextSeg;\n\n // Smooth constraint between point and next point.\n // Avoid exceeding extreme after smoothing.\n nextCpx0 = mathMin(nextCpx0, mathMax(nextX, x));\n nextCpy0 = mathMin(nextCpy0, mathMax(nextY, y));\n nextCpx0 = mathMax(nextCpx0, mathMin(nextX, x));\n nextCpy0 = mathMax(nextCpy0, mathMin(nextY, y));\n // Reclaculate cp1 based on the adjusted cp0 of next seg.\n vx = nextCpx0 - x;\n vy = nextCpy0 - y;\n\n cpx1 = x - vx * lenPrevSeg / lenNextSeg;\n cpy1 = y - vy * lenPrevSeg / lenNextSeg;\n\n // Smooth constraint between point and prev point.\n // Avoid exceeding extreme after smoothing.\n cpx1 = mathMin(cpx1, mathMax(prevX, x));\n cpy1 = mathMin(cpy1, mathMax(prevY, y));\n cpx1 = mathMax(cpx1, mathMin(prevX, x));\n cpy1 = mathMax(cpy1, mathMin(prevY, y));\n\n // Adjust next cp0 again.\n vx = x - cpx1;\n vy = y - cpy1;\n nextCpx0 = x + vx * lenNextSeg / lenPrevSeg;\n nextCpy0 = y + vy * lenNextSeg / lenPrevSeg;\n }\n }\n\n ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y);\n\n cpx0 = nextCpx0;\n cpy0 = nextCpy0;\n }\n else {\n ctx.lineTo(x, y);\n }\n }\n\n prevX = x;\n prevY = y;\n idx += dir;\n }\n\n return k;\n}\n\nclass ECPolylineShape {\n points: ArrayLike;\n smooth = 0;\n smoothConstraint = true;\n smoothMonotone: 'x' | 'y' | 'none';\n connectNulls: boolean;\n}\n\ninterface ECPolylineProps extends PathProps {\n shape?: Partial\n}\n\nexport class ECPolyline extends Path {\n\n readonly type = 'ec-polyline';\n\n shape: ECPolylineShape;\n\n constructor(opts?: ECPolylineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new ECPolylineShape();\n }\n\n buildPath(ctx: PathProxy, shape: ECPolylineShape) {\n const points = shape.points;\n\n let i = 0;\n let len = points.length / 2;\n\n // const result = getBoundingBox(points, shape.smoothConstraint);\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n while (i < len) {\n i += drawSegment(\n ctx, points, i, len, len,\n 1,\n shape.smooth,\n shape.smoothMonotone, shape.connectNulls\n ) + 1;\n }\n }\n\n getPointOn(xOrY: number, dim: 'x' | 'y'): number[] {\n if (!this.path) {\n this.createPathProxy();\n this.buildPath(this.path, this.shape);\n }\n const path = this.path;\n const data = path.data;\n const CMD = PathProxy.CMD;\n\n let x0;\n let y0;\n\n const isDimX = dim === 'x';\n const roots: number[] = [];\n\n for (let i = 0; i < data.length;) {\n const cmd = data[i++];\n let x;\n let y;\n let x2;\n let y2;\n let x3;\n let y3;\n let t;\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n break;\n case CMD.L:\n x = data[i++];\n y = data[i++];\n t = isDimX ? (xOrY - x0) / (x - x0)\n : (xOrY - y0) / (y - y0);\n if (t <= 1 && t >= 0) {\n const val = isDimX ? (y - y0) * t + y0\n : (x - x0) * t + x0;\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n x0 = x;\n y0 = y;\n break;\n case CMD.C:\n x = data[i++];\n y = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n x3 = data[i++];\n y3 = data[i++];\n\n const nRoot = isDimX ? cubicRootAt(x0, x, x2, x3, xOrY, roots)\n : cubicRootAt(y0, y, y2, y3, xOrY, roots);\n if (nRoot > 0) {\n for (let i = 0; i < nRoot; i++) {\n const t = roots[i];\n if (t <= 1 && t >= 0) {\n const val = isDimX ? cubicAt(y0, y, y2, y3, t)\n : cubicAt(x0, x, x2, x3, t);\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n }\n }\n\n x0 = x3;\n y0 = y3;\n break;\n }\n }\n }\n}\nclass ECPolygonShape extends ECPolylineShape {\n // Offset between stacked base points and points\n stackedOnPoints: ArrayLike;\n stackedOnSmooth: number;\n}\n\ninterface ECPolygonProps extends PathProps {\n shape?: Partial\n}\nexport class ECPolygon extends Path {\n\n readonly type = 'ec-polygon';\n\n shape: ECPolygonShape;\n\n constructor(opts?: ECPolygonProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new ECPolygonShape();\n }\n\n buildPath(ctx: PathProxy, shape: ECPolygonShape) {\n const points = shape.points;\n const stackedOnPoints = shape.stackedOnPoints;\n\n let i = 0;\n let len = points.length / 2;\n const smoothMonotone = shape.smoothMonotone;\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n while (i < len) {\n const k = drawSegment(\n ctx, points, i, len, len,\n 1,\n shape.smooth,\n smoothMonotone, shape.connectNulls\n );\n drawSegment(\n ctx, stackedOnPoints, i + k - 1, k, len,\n -1,\n shape.stackedOnSmooth,\n smoothMonotone, shape.connectNulls\n );\n i += k + 1;\n\n ctx.closePath();\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport {round} from '../../util/number';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\n\ntype SeriesModelWithLineWidth = SeriesModel;\nfunction createGridClipPath(\n cartesian: Cartesian2D,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth,\n done?: () => void,\n during?: (percent: number, clipRect: graphic.Rect) => void\n) {\n const rect = cartesian.getArea();\n\n let x = rect.x;\n let y = rect.y;\n let width = rect.width;\n let height = rect.height;\n\n const lineWidth = seriesModel.get(['lineStyle', 'width']) || 2;\n // Expand the clip path a bit to avoid the border is clipped and looks thinner\n x -= lineWidth / 2;\n y -= lineWidth / 2;\n width += lineWidth;\n height += lineWidth;\n\n // fix: https://github.com/apache/incubator-echarts/issues/11369\n x = Math.floor(x);\n width = Math.round(width);\n\n const clipPath = new graphic.Rect({\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n }\n });\n\n if (hasAnimation) {\n const baseAxis = cartesian.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isAxisInversed = baseAxis.inverse;\n\n if (isHorizontal) {\n if (isAxisInversed) {\n clipPath.shape.x += width;\n }\n clipPath.shape.width = 0;\n }\n else {\n if (!isAxisInversed) {\n clipPath.shape.y += height;\n }\n clipPath.shape.height = 0;\n }\n\n const duringCb = typeof during === 'function'\n ? (percent: number) => {\n during(percent, clipPath);\n }\n : null;\n\n graphic.initProps(clipPath, {\n shape: {\n width: width,\n height: height,\n x: x,\n y: y\n }\n }, seriesModel, null, done, duringCb);\n }\n\n return clipPath;\n}\n\nfunction createPolarClipPath(\n polar: Polar,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth\n) {\n const sectorArea = polar.getArea();\n // Avoid float number rounding error for symbol on the edge of axis extent.\n\n const r0 = round(sectorArea.r0, 1);\n const r = round(sectorArea.r, 1);\n const clipPath = new graphic.Sector({\n shape: {\n cx: round(polar.cx, 1),\n cy: round(polar.cy, 1),\n r0: r0,\n r: r,\n startAngle: sectorArea.startAngle,\n endAngle: sectorArea.endAngle,\n clockwise: sectorArea.clockwise\n }\n });\n\n if (hasAnimation) {\n const isRadial = polar.getBaseAxis().dim === 'angle';\n\n if (isRadial) {\n clipPath.shape.endAngle = sectorArea.startAngle;\n }\n else {\n clipPath.shape.r = r0;\n }\n\n graphic.initProps(clipPath, {\n shape: {\n endAngle: sectorArea.endAngle,\n r: r\n }\n }, seriesModel);\n }\n return clipPath;\n}\n\nfunction createClipPath(\n coordSys: CoordinateSystem,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth,\n done?: () => void,\n during?: (percent: number) => void\n) {\n if (!coordSys) {\n return null;\n }\n else if (coordSys.type === 'polar') {\n return createPolarClipPath(coordSys as Polar, hasAnimation, seriesModel);\n }\n else if (coordSys.type === 'cartesian2d') {\n return createGridClipPath(coordSys as Cartesian2D, hasAnimation, seriesModel, done, during);\n }\n return null;\n}\n\nexport {\n createGridClipPath,\n createPolarClipPath,\n createClipPath\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../model/Global';\nimport {ParsedModelFinder} from '../util/model';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { DimensionDefinitionLoose, ScaleDataValue, DimensionName } from '../util/types';\nimport Axis from './Axis';\nimport { BoundingRect } from '../util/graphic';\nimport { MatrixArray } from 'zrender/src/core/matrix';\nimport ComponentModel from '../model/Component';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport type { PrepareCustomInfo } from '../chart/custom/CustomSeries';\n\n\nexport interface CoordinateSystemCreator {\n\n create: (ecModel: GlobalModel, api: ExtensionAPI) => CoordinateSystemMaster[];\n\n // FIXME current dimensions must be string[].\n // check and unify the definition.\n // FIXME:TS check where used (seams only HeatmapSeries used?)\n // Some coordinate system do not have static dimensions (like parallel)\n dimensions?: DimensionName[];\n\n // dimensionsInfo like [{name: ..., type: ...}, 'xxx', ...]\n getDimensionsInfo?: () => DimensionDefinitionLoose[];\n}\n\n/**\n * The instance get from `CoordinateSystemManger` is `CoordinateSystemMaster`.\n */\nexport interface CoordinateSystemMaster {\n\n // FIXME current dimensions must be string[].\n // check and unify the definition.\n // Should be the same as its coordinateSystemCreator.\n dimensions: DimensionName[];\n\n model?: ComponentModel;\n\n update?: (ecModel: GlobalModel, api: ExtensionAPI) => void;\n\n // This methods is also responsible for determine whether this\n // coodinate system is applicable to the given `finder`.\n // Each coordinate system will be tried, util one returns none\n // null/undefined value.\n convertToPixel?(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]\n ): number | number[];\n\n // This methods is also responsible for determine whether this\n // coodinate system is applicable to the given `finder`.\n // Each coordinate system will be tried, util one returns none\n // null/undefined value.\n convertFromPixel?(\n ecModel: GlobalModel, finder: ParsedModelFinder, pixelValue: number | number[]\n ): number | number[];\n\n // @param point Point in global pixel coordinate system.\n // The signature of this method should be the same as `CoordinateSystemExecutive`\n containPoint(point: number[]): boolean;\n\n // Must be implemented when `axisPointerEnabled` is `true`.\n getAxes?: () => Axis[];\n\n axisPointerEnabled?: boolean;\n\n getTooltipAxes?: (dim: DimensionName | 'auto') => {baseAxes: Axis[], otherAxes: Axis[]};\n\n /**\n * Get layout rect or coordinate system\n */\n getRect?: () => RectLike\n\n}\n\n/**\n * For example: cartesian is CoordinateSystem.\n * series.coordinateSystem is CoordinateSystem.\n */\nexport interface CoordinateSystem {\n\n type: string\n\n /**\n * Master of coordinate system. For example:\n * Grid is master of cartesian.\n */\n master?: CoordinateSystemMaster\n\n // Should be the same as its coordinateSystemCreator.\n dimensions: DimensionName[];\n\n model?: ComponentModel;\n\n /**\n * @param data\n * @param reserved Defined by the coordinate system itself\n * @param out\n * @return {Array.} point Point in global pixel coordinate system.\n */\n dataToPoint(\n data: ScaleDataValue | ScaleDataValue[],\n reserved?: any,\n out?: number[]\n ): number[];\n\n /**\n * Some coord sys (like Parallel) might do not have `pointToData`,\n * or the meaning of this kind of features is not clear yet.\n * @param point point Point in global pixel coordinate system.\n * @param clamp Clamp range\n * @return data\n */\n pointToData?(\n point: number[],\n clamp?: boolean\n ): number | number[];\n\n // @param point Point in global pixel coordinate system.\n containPoint(point: number[]): boolean;\n\n getAxis?: (dim?: DimensionName) => Axis;\n\n getBaseAxis?: () => Axis;\n\n getOtherAxis?: (baseAxis: Axis) => Axis;\n\n clampData?: (data: ScaleDataValue[], out?: number[]) => number[];\n\n getRoamTransform?: () => MatrixArray;\n\n getArea?: () => CoordinateSystemClipArea\n\n // Only `coord/View.js` implements `getBoundingRect`.\n // But if other coord sys implement it, should follow this signature.\n getBoundingRect?: () => BoundingRect;\n\n // Currently only Cartesian2D implements it.\n // But if other coordinate systems implement it, should follow this signature.\n getAxesByScale?: (scaleType: string) => Axis[];\n\n prepareCustoms?: PrepareCustomInfo;\n}\n\n/**\n * Like GridModel, PolarModel, ...\n */\nexport interface CoordinateSystemHostModel extends ComponentModel {\n coordinateSystem?: CoordinateSystemMaster\n}\n\n/**\n * Clip area will be returned by getArea of CoordinateSystem.\n * It is used to clip the graphic elements with the contain methods.\n */\nexport interface CoordinateSystemClipArea {\n contain(x: number, y: number): boolean\n}\n\nexport function isCoordinateSystemType(\n coordSys: CoordinateSystem, type: S\n): coordSys is T {\n return (coordSys.type as unknown as S) === type;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME step not support polar\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport SymbolClz from '../helper/Symbol';\nimport lineAnimationDiff from './lineAnimationDiff';\nimport * as graphic from '../../util/graphic';\nimport * as modelUtil from '../../util/model';\nimport {ECPolyline, ECPolygon} from './poly';\nimport ChartView from '../../view/Chart';\nimport {prepareDataCoordInfo, getStackedOnPoint} from './helper';\nimport {createGridClipPath, createPolarClipPath} from '../helper/createClipPathFromCoordSys';\nimport LineSeriesModel, { LineSeriesOption } from './LineSeries';\nimport type GlobalModel from '../../model/Global';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\n// TODO\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\nimport type SeriesData from '../../data/SeriesData';\nimport type {\n Payload,\n Dictionary,\n ColorString,\n ECElement,\n DisplayState,\n LabelOption,\n ParsedValue\n} from '../../util/types';\nimport type OrdinalScale from '../../scale/Ordinal';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport { CoordinateSystemClipArea, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setStatesStylesFromModel, setStatesFlag, enableHoverEmphasis, SPECIAL_STATES } from '../../util/states';\nimport Model from '../../model/Model';\nimport {setLabelStyle, getLabelStatesModels, labelInner} from '../../label/labelStyle';\nimport {getDefaultLabel, getDefaultInterpolatedLabel} from '../helper/labelHelper';\n\nimport { getECData } from '../../util/innerStore';\nimport { createFloat32Array } from '../../util/vendor';\nimport { convertToColorString } from '../../util/format';\n\ntype PolarArea = ReturnType;\ntype Cartesian2DArea = ReturnType;\ninterface SymbolExtended extends SymbolClz {\n __temp: boolean\n}\n\ninterface ColorStop {\n offset: number\n coord?: number\n color: ColorString\n}\n\nfunction isPointsSame(points1: ArrayLike, points2: ArrayLike) {\n if (points1.length !== points2.length) {\n return;\n }\n for (let i = 0; i < points1.length; i++) {\n if (points1[i] !== points2[i]) {\n return;\n }\n }\n return true;\n}\n\nfunction bboxFromPoints(points: ArrayLike) {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n if (!isNaN(x)) {\n minX = Math.min(x, minX);\n maxX = Math.max(x, maxX);\n }\n if (!isNaN(y)) {\n minY = Math.min(y, minY);\n maxY = Math.max(y, maxY);\n }\n }\n return [\n [minX, minY],\n [maxX, maxY]\n ];\n}\n\nfunction getBoundingDiff(points1: ArrayLike, points2: ArrayLike): number {\n\n const [min1, max1] = bboxFromPoints(points1);\n const [min2, max2] = bboxFromPoints(points2);\n\n // Get a max value from each corner of two boundings.\n return Math.max(\n Math.abs(min1[0] - min2[0]),\n Math.abs(min1[1] - min2[1]),\n\n Math.abs(max1[0] - max2[0]),\n Math.abs(max1[1] - max2[1])\n );\n}\n\nfunction getSmooth(smooth: number | boolean) {\n return typeof smooth === 'number' ? smooth : (smooth ? 0.5 : 0);\n}\n\nfunction getStackedOnPoints(\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n dataCoordInfo: ReturnType\n) {\n if (!dataCoordInfo.valueDim) {\n return [];\n }\n\n const len = data.count();\n const points = createFloat32Array(len * 2);\n for (let idx = 0; idx < len; idx++) {\n const pt = getStackedOnPoint(dataCoordInfo, coordSys, data, idx);\n points[idx * 2] = pt[0];\n points[idx * 2 + 1] = pt[1];\n }\n\n return points;\n}\n\nfunction turnPointsIntoStep(\n points: ArrayLike,\n coordSys: Cartesian2D | Polar,\n stepTurnAt: 'start' | 'end' | 'middle'\n): number[] {\n const baseAxis = coordSys.getBaseAxis();\n const baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;\n\n const stepPoints: number[] = [];\n let i = 0;\n const stepPt: number[] = [];\n const pt: number[] = [];\n const nextPt: number[] = [];\n for (; i < points.length - 2; i += 2) {\n nextPt[0] = points[i + 2];\n nextPt[1] = points[i + 3];\n pt[0] = points[i];\n pt[1] = points[i + 1];\n stepPoints.push(pt[0], pt[1]);\n\n switch (stepTurnAt) {\n case 'end':\n stepPt[baseIndex] = nextPt[baseIndex];\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n break;\n case 'middle':\n const middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;\n const stepPt2 = [];\n stepPt[baseIndex] = stepPt2[baseIndex] = middle;\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n stepPoints.push(stepPt2[0], stepPt2[1]);\n break;\n default:\n // default is start\n stepPt[baseIndex] = pt[baseIndex];\n stepPt[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n }\n }\n // Last points\n stepPoints.push(points[i++], points[i++]);\n return stepPoints;\n}\n\nfunction getVisualGradient(\n data: SeriesData,\n coordSys: Cartesian2D | Polar\n) {\n const visualMetaList = data.getVisual('visualMeta');\n if (!visualMetaList || !visualMetaList.length || !data.count()) {\n // When data.count() is 0, gradient range can not be calculated.\n return;\n }\n\n if (coordSys.type !== 'cartesian2d') {\n if (__DEV__) {\n console.warn('Visual map on line style is only supported on cartesian2d.');\n }\n return;\n }\n\n let coordDim: 'x' | 'y';\n let visualMeta;\n\n for (let i = visualMetaList.length - 1; i >= 0; i--) {\n const dimInfo = data.getDimensionInfo(visualMetaList[i].dimension);\n coordDim = (dimInfo && dimInfo.coordDim) as 'x' | 'y';\n // Can only be x or y\n if (coordDim === 'x' || coordDim === 'y') {\n visualMeta = visualMetaList[i];\n break;\n }\n }\n\n if (!visualMeta) {\n if (__DEV__) {\n console.warn('Visual map on line style only support x or y dimension.');\n }\n return;\n }\n\n // If the area to be rendered is bigger than area defined by LinearGradient,\n // the canvas spec prescribes that the color of the first stop and the last\n // stop should be used. But if two stops are added at offset 0, in effect\n // browsers use the color of the second stop to render area outside\n // LinearGradient. So we can only infinitesimally extend area defined in\n // LinearGradient to render `outerColors`.\n\n const axis = coordSys.getAxis(coordDim);\n const axisScaleExtent = axis.scale.getExtent();\n\n // dataToCoord mapping may not be linear, but must be monotonic.\n const colorStops: ColorStop[] = zrUtil.map(visualMeta.stops, function (stop) {\n let coord = axis.toGlobalCoord(axis.dataToCoord(stop.value));\n // normalize the infinite value\n isNaN(coord) || isFinite(coord)\n || (coord = axis.toGlobalCoord(axis.dataToCoord(axisScaleExtent[+(coord < 0)])));\n return {\n offset: 0,\n coord,\n color: stop.color\n };\n });\n const stopLen = colorStops.length;\n const outerColors = visualMeta.outerColors.slice();\n\n if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {\n colorStops.reverse();\n outerColors.reverse();\n }\n\n const tinyExtent = 10; // Arbitrary value: 10px\n const minCoord = colorStops[0].coord - tinyExtent;\n const maxCoord = colorStops[stopLen - 1].coord + tinyExtent;\n const coordSpan = maxCoord - minCoord;\n\n if (coordSpan < 1e-3) {\n return 'transparent';\n }\n\n zrUtil.each(colorStops, function (stop) {\n stop.offset = (stop.coord - minCoord) / coordSpan;\n });\n colorStops.push({\n offset: stopLen ? colorStops[stopLen - 1].offset : 0.5,\n color: outerColors[1] || 'transparent'\n });\n colorStops.unshift({ // notice colorStops.length have been changed.\n offset: stopLen ? colorStops[0].offset : 0.5,\n color: outerColors[0] || 'transparent'\n });\n\n // zrUtil.each(colorStops, function (colorStop) {\n // // Make sure each offset has rounded px to avoid not sharp edge\n // colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start);\n // });\n\n const gradient = new graphic.LinearGradient(0, 0, 0, 0, colorStops, true);\n gradient[coordDim] = minCoord;\n gradient[coordDim + '2' as 'x2' | 'y2'] = maxCoord;\n\n return gradient;\n}\n\nfunction getIsIgnoreFunc(\n seriesModel: LineSeriesModel,\n data: SeriesData,\n coordSys: Cartesian2D\n) {\n const showAllSymbol = seriesModel.get('showAllSymbol');\n const isAuto = showAllSymbol === 'auto';\n\n if (showAllSymbol && !isAuto) {\n return;\n }\n\n const categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n if (!categoryAxis) {\n return;\n }\n\n // Note that category label interval strategy might bring some weird effect\n // in some scenario: users may wonder why some of the symbols are not\n // displayed. So we show all symbols as possible as we can.\n if (isAuto\n // Simplify the logic, do not determine label overlap here.\n && canShowAllSymbolForCategory(categoryAxis, data)\n ) {\n return;\n }\n\n // Otherwise follow the label interval strategy on category axis.\n const categoryDataDim = data.mapDimension(categoryAxis.dim);\n const labelMap: Dictionary<1> = {};\n\n zrUtil.each(categoryAxis.getViewLabels(), function (labelItem) {\n const ordinalNumber = (categoryAxis.scale as OrdinalScale)\n .getRawOrdinalNumber(labelItem.tickValue);\n labelMap[ordinalNumber] = 1;\n });\n\n return function (dataIndex: number) {\n return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex));\n };\n}\n\nfunction canShowAllSymbolForCategory(\n categoryAxis: Axis2D,\n data: SeriesData\n) {\n // In mose cases, line is monotonous on category axis, and the label size\n // is close with each other. So we check the symbol size and some of the\n // label size alone with the category axis to estimate whether all symbol\n // can be shown without overlap.\n const axisExtent = categoryAxis.getExtent();\n let availSize = Math.abs(axisExtent[1] - axisExtent[0]) / (categoryAxis.scale as OrdinalScale).count();\n isNaN(availSize) && (availSize = 0); // 0/0 is NaN.\n\n // Sampling some points, max 5.\n const dataLen = data.count();\n const step = Math.max(1, Math.round(dataLen / 5));\n for (let dataIndex = 0; dataIndex < dataLen; dataIndex += step) {\n if (SymbolClz.getSymbolSize(\n data, dataIndex\n // Only for cartesian, where `isHorizontal` exists.\n )[categoryAxis.isHorizontal() ? 1 : 0]\n // Empirical number\n * 1.5 > availSize\n ) {\n return false;\n }\n }\n\n return true;\n}\n\n\nfunction isPointNull(x: number, y: number) {\n return isNaN(x) || isNaN(y);\n}\n\nfunction getLastIndexNotNull(points: ArrayLike) {\n let len = points.length / 2;\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n return len - 1;\n}\n\nfunction getPointAtIndex(points: ArrayLike, idx: number) {\n return [points[idx * 2], points[idx * 2 + 1]];\n}\n\nfunction getIndexRange(points: ArrayLike, xOrY: number, dim: 'x' | 'y') {\n const len = points.length / 2;\n\n const dimIdx = dim === 'x' ? 0 : 1;\n let a;\n let b;\n let prevIndex = 0;\n let nextIndex = -1;\n for (let i = 0; i < len; i++) {\n b = points[i * 2 + dimIdx];\n if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) {\n continue;\n }\n if (i === 0) {\n a = b;\n continue;\n }\n if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) {\n nextIndex = i;\n break;\n }\n\n prevIndex = i;\n a = b;\n }\n\n return {\n range: [prevIndex, nextIndex],\n t: (xOrY - a) / (b - a)\n };\n}\n\nfunction anyStateShowEndLabel(\n seriesModel: LineSeriesModel\n) {\n if (seriesModel.get(['endLabel', 'show'])) {\n return true;\n }\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n if (seriesModel.get([SPECIAL_STATES[i], 'endLabel', 'show'])) {\n return true;\n }\n }\n return false;\n}\n\n\ninterface EndLabelAnimationRecord {\n lastFrameIndex: number\n originalX?: number\n originalY?: number\n}\n\nfunction createLineClipPath(\n lineView: LineView,\n coordSys: Cartesian2D | Polar,\n hasAnimation: boolean,\n seriesModel: LineSeriesModel\n) {\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const endLabelModel = seriesModel.getModel('endLabel');\n const valueAnimation = endLabelModel.get('valueAnimation');\n const data = seriesModel.getData();\n\n const labelAnimationRecord: EndLabelAnimationRecord = { lastFrameIndex: 0 };\n\n const during = anyStateShowEndLabel(seriesModel)\n ? (percent: number, clipRect: graphic.Rect) => {\n lineView._endLabelOnDuring(\n percent,\n clipRect,\n data,\n labelAnimationRecord,\n valueAnimation,\n endLabelModel,\n coordSys\n );\n }\n : null;\n\n const isHorizontal = coordSys.getBaseAxis().isHorizontal();\n const clipPath = createGridClipPath(coordSys, hasAnimation, seriesModel, () => {\n const endLabel = lineView._endLabel;\n if (endLabel && hasAnimation) {\n if (labelAnimationRecord.originalX != null) {\n endLabel.attr({\n x: labelAnimationRecord.originalX,\n y: labelAnimationRecord.originalY\n });\n }\n }\n }, during);\n // Expand clip shape to avoid clipping when line value exceeds axis\n if (!seriesModel.get('clip', true)) {\n const rectShape = clipPath.shape;\n const expandSize = Math.max(rectShape.width, rectShape.height);\n if (isHorizontal) {\n rectShape.y -= expandSize;\n rectShape.height += expandSize * 2;\n }\n else {\n rectShape.x -= expandSize;\n rectShape.width += expandSize * 2;\n }\n }\n\n // Set to the final frame. To make sure label layout is right.\n if (during) {\n during(1, clipPath);\n }\n return clipPath;\n }\n else {\n if (__DEV__) {\n if (seriesModel.get(['endLabel', 'show'])) {\n console.warn('endLabel is not supported for lines in polar systems.');\n }\n }\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n }\n\n}\n\nfunction getEndLabelStateSpecified(endLabelModel: Model, coordSys: Cartesian2D) {\n const baseAxis = coordSys.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isBaseInversed = baseAxis.inverse;\n const align = isHorizontal\n ? (isBaseInversed ? 'right' : 'left')\n : 'center';\n const verticalAlign = isHorizontal\n ? 'middle'\n : (isBaseInversed ? 'top' : 'bottom');\n\n return {\n normal: {\n align: endLabelModel.get('align') || align,\n verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign\n }\n };\n}\n\nclass LineView extends ChartView {\n\n static readonly type = 'line';\n\n _symbolDraw: SymbolDraw;\n\n _lineGroup: graphic.Group;\n _coordSys: Cartesian2D | Polar;\n\n _endLabel: graphic.Text;\n\n _polyline: ECPolyline;\n _polygon: ECPolygon;\n\n _stackedOnPoints: ArrayLike;\n _points: ArrayLike;\n\n _step: LineSeriesOption['step'];\n _valueOrigin: LineSeriesOption['areaStyle']['origin'];\n\n _clipShapeForSymbol: CoordinateSystemClipArea;\n\n _data: SeriesData;\n\n init() {\n const lineGroup = new graphic.Group();\n\n const symbolDraw = new SymbolDraw();\n this.group.add(symbolDraw.group);\n\n this._symbolDraw = symbolDraw;\n this._lineGroup = lineGroup;\n }\n\n render(seriesModel: LineSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const coordSys = seriesModel.coordinateSystem;\n const group = this.group;\n const data = seriesModel.getData();\n const lineStyleModel = seriesModel.getModel('lineStyle');\n const areaStyleModel = seriesModel.getModel('areaStyle');\n\n let points = data.getLayout('points') as number[] || [];\n\n const isCoordSysPolar = coordSys.type === 'polar';\n const prevCoordSys = this._coordSys;\n\n const symbolDraw = this._symbolDraw;\n let polyline = this._polyline;\n let polygon = this._polygon;\n\n const lineGroup = this._lineGroup;\n\n const hasAnimation = seriesModel.get('animation');\n\n const isAreaChart = !areaStyleModel.isEmpty();\n\n const valueOrigin = areaStyleModel.get('origin');\n const dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);\n\n let stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo);\n\n const showSymbol = seriesModel.get('showSymbol');\n\n const isIgnoreFunc = showSymbol && !isCoordSysPolar\n && getIsIgnoreFunc(seriesModel, data, coordSys as Cartesian2D);\n\n // Remove temporary symbols\n const oldData = this._data;\n oldData && oldData.eachItemGraphicEl(function (el: SymbolExtended, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n\n // Remove previous created symbols if showSymbol changed to false\n if (!showSymbol) {\n symbolDraw.remove();\n }\n\n group.add(lineGroup);\n\n // FIXME step not support polar\n const step = !isCoordSysPolar ? seriesModel.get('step') : false;\n let clipShapeForSymbol: PolarArea | Cartesian2DArea;\n if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) {\n clipShapeForSymbol = coordSys.getArea();\n // Avoid float number rounding error for symbol on the edge of axis extent.\n // See #7913 and `test/dataZoom-clip.html`.\n if ((clipShapeForSymbol as Cartesian2DArea).width != null) {\n (clipShapeForSymbol as Cartesian2DArea).x -= 0.1;\n (clipShapeForSymbol as Cartesian2DArea).y -= 0.1;\n (clipShapeForSymbol as Cartesian2DArea).width += 0.2;\n (clipShapeForSymbol as Cartesian2DArea).height += 0.2;\n }\n else if ((clipShapeForSymbol as PolarArea).r0) {\n (clipShapeForSymbol as PolarArea).r0 -= 0.5;\n (clipShapeForSymbol as PolarArea).r += 0.5;\n }\n }\n this._clipShapeForSymbol = clipShapeForSymbol;\n const visualColor = getVisualGradient(data, coordSys)\n || data.getVisual('style')[data.getVisual('drawType')];\n // Initialization animation or coordinate system changed\n if (\n !(polyline && prevCoordSys.type === coordSys.type && step === this._step)\n ) {\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint(idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n\n hasAnimation && this._initSymbolLabelAnimation(\n data,\n coordSys,\n clipShapeForSymbol\n );\n\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline = this._newPolyline(points);\n if (isAreaChart) {\n polygon = this._newPolygon(\n points, stackedOnPoints\n );\n }\n\n // NOTE: Must update _endLabel before setClipPath.\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys as Cartesian2D, convertToColorString(visualColor));\n }\n\n lineGroup.setClipPath(\n createLineClipPath(this, coordSys, true, seriesModel)\n );\n }\n else {\n if (isAreaChart && !polygon) {\n // If areaStyle is added\n polygon = this._newPolygon(\n points, stackedOnPoints\n );\n }\n else if (polygon && !isAreaChart) {\n // If areaStyle is removed\n lineGroup.remove(polygon);\n polygon = this._polygon = null;\n }\n\n // NOTE: Must update _endLabel before setClipPath.\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys as Cartesian2D, convertToColorString(visualColor));\n }\n\n // Update clipPath\n lineGroup.setClipPath(\n createLineClipPath(this, coordSys, false, seriesModel)\n );\n\n // Always update, or it is wrong in the case turning on legend\n // because points are not changed\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint(idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n\n // In the case data zoom triggerred refreshing frequently\n // Data may not change if line has a category axis. So it should animate nothing\n if (!isPointsSame(this._stackedOnPoints, stackedOnPoints)\n || !isPointsSame(this._points, points)\n ) {\n if (hasAnimation) {\n this._doUpdateAnimation(\n data, stackedOnPoints, coordSys, api, step, valueOrigin\n );\n }\n else {\n // Not do it in update with animation\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline.setShape({\n points: points\n });\n polygon && polygon.setShape({\n points: points,\n stackedOnPoints: stackedOnPoints\n });\n }\n }\n }\n\n const focus = seriesModel.get(['emphasis', 'focus']);\n const blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n polyline.useStyle(zrUtil.defaults(\n // Use color in lineStyle first\n lineStyleModel.getLineStyle(),\n {\n fill: 'none',\n stroke: visualColor,\n lineJoin: 'bevel' as CanvasLineJoin\n }\n ));\n\n setStatesStylesFromModel(polyline, seriesModel, 'lineStyle');\n\n if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') {\n const emphasisLineStyle = polyline.getState('emphasis').style;\n emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1;\n }\n\n // Needs seriesIndex for focus\n getECData(polyline).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polyline, focus, blurScope);\n\n const smooth = getSmooth(seriesModel.get('smooth'));\n const smoothMonotone = seriesModel.get('smoothMonotone');\n const connectNulls = seriesModel.get('connectNulls');\n polyline.setShape({\n smooth,\n smoothMonotone,\n connectNulls\n });\n\n if (polygon) {\n const stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n let stackedOnSmooth = 0;\n\n polygon.useStyle(zrUtil.defaults(\n areaStyleModel.getAreaStyle(),\n {\n fill: visualColor,\n opacity: 0.7,\n lineJoin: 'bevel' as CanvasLineJoin,\n decal: data.getVisual('style').decal\n }\n ));\n\n if (stackedOnSeries) {\n stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));\n }\n\n polygon.setShape({\n smooth,\n stackedOnSmooth,\n smoothMonotone,\n connectNulls\n });\n\n setStatesStylesFromModel(polygon, seriesModel, 'areaStyle');\n // Needs seriesIndex for focus\n getECData(polygon).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polygon, focus, blurScope);\n }\n\n const changePolyState = (toState: DisplayState) => {\n this._changePolyState(toState);\n };\n\n data.eachItemGraphicEl(function (el) {\n // Switch polyline / polygon state if element changed its state.\n el && ((el as ECElement).onHoverStateChange = changePolyState);\n });\n\n (this._polyline as ECElement).onHoverStateChange = changePolyState;\n\n this._data = data;\n // Save the coordinate system for transition animation when data changed\n this._coordSys = coordSys;\n this._stackedOnPoints = stackedOnPoints;\n this._points = points;\n this._step = step;\n this._valueOrigin = valueOrigin;\n }\n\n dispose() {}\n\n highlight(\n seriesModel: LineSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('emphasis');\n\n if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {\n const points = data.getLayout('points');\n let symbol = data.getItemGraphicEl(dataIndex) as SymbolClz;\n if (!symbol) {\n // Create a temporary symbol if it is not exists\n const x = points[dataIndex * 2];\n const y = points[dataIndex * 2 + 1];\n if (isNaN(x) || isNaN(y)) {\n // Null data\n return;\n }\n // fix #11360: should't draw symbol outside clipShapeForSymbol\n if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) {\n return;\n }\n const zlevel = seriesModel.get('zlevel');\n const z = seriesModel.get('z');\n symbol = new SymbolClz(data, dataIndex);\n symbol.x = x;\n symbol.y = y;\n symbol.setZ(zlevel, z);\n\n // ensure label text of the temporary symbol is in front of line and area polygon\n const symbolLabel = symbol.getSymbolPath().getTextContent();\n if (symbolLabel) {\n symbolLabel.zlevel = zlevel;\n symbolLabel.z = z;\n symbolLabel.z2 = this._polyline.z2 + 1;\n }\n\n (symbol as SymbolExtended).__temp = true;\n data.setItemGraphicEl(dataIndex, symbol);\n\n // Stop scale animation\n symbol.stopSymbolAnimation(true);\n\n this.group.add(symbol);\n }\n symbol.highlight();\n }\n else {\n // Highlight whole series\n ChartView.prototype.highlight.call(\n this, seriesModel, ecModel, api, payload\n );\n }\n }\n\n downplay(\n seriesModel: LineSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, payload) as number;\n\n this._changePolyState('normal');\n\n if (dataIndex != null && dataIndex >= 0) {\n const symbol = data.getItemGraphicEl(dataIndex) as SymbolExtended;\n if (symbol) {\n if (symbol.__temp) {\n data.setItemGraphicEl(dataIndex, null);\n this.group.remove(symbol);\n }\n else {\n symbol.downplay();\n }\n }\n }\n else {\n // FIXME\n // can not downplay completely.\n // Downplay whole series\n ChartView.prototype.downplay.call(\n this, seriesModel, ecModel, api, payload\n );\n }\n }\n\n _changePolyState(toState: DisplayState) {\n const polygon = this._polygon;\n setStatesFlag(this._polyline, toState);\n polygon && setStatesFlag(polygon, toState);\n }\n\n _newPolyline(points: ArrayLike) {\n let polyline = this._polyline;\n // Remove previous created polyline\n if (polyline) {\n this._lineGroup.remove(polyline);\n }\n\n polyline = new ECPolyline({\n shape: {\n points\n },\n segmentIgnoreThreshold: 2,\n z2: 10\n });\n\n this._lineGroup.add(polyline);\n\n this._polyline = polyline;\n\n return polyline;\n }\n\n _newPolygon(points: ArrayLike, stackedOnPoints: ArrayLike) {\n let polygon = this._polygon;\n // Remove previous created polygon\n if (polygon) {\n this._lineGroup.remove(polygon);\n }\n\n polygon = new ECPolygon({\n shape: {\n points,\n stackedOnPoints: stackedOnPoints\n },\n segmentIgnoreThreshold: 2\n });\n\n this._lineGroup.add(polygon);\n\n this._polygon = polygon;\n return polygon;\n }\n\n _initSymbolLabelAnimation(\n data: SeriesData,\n coordSys: Polar | Cartesian2D,\n clipShape: PolarArea | Cartesian2DArea\n ) {\n let isHorizontalOrRadial: boolean;\n let isCoordSysPolar: boolean;\n const baseAxis = coordSys.getBaseAxis();\n const isAxisInverse = baseAxis.inverse;\n if (coordSys.type === 'cartesian2d') {\n isHorizontalOrRadial = (baseAxis as Axis2D).isHorizontal();\n isCoordSysPolar = false;\n }\n else if (coordSys.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n isCoordSysPolar = true;\n }\n\n const seriesModel = data.hostModel;\n let seriesDuration = seriesModel.get('animationDuration');\n if (typeof seriesDuration === 'function') {\n seriesDuration = seriesDuration(null);\n }\n const seriesDalay = seriesModel.get('animationDelay') || 0;\n const seriesDalayValue = typeof seriesDalay === 'function'\n ? seriesDalay(null)\n : seriesDalay;\n\n data.eachItemGraphicEl(function (symbol: SymbolExtended, idx) {\n const el = symbol;\n if (el) {\n const point = [symbol.x, symbol.y];\n let start;\n let end;\n let current;\n if (clipShape) {\n if (isCoordSysPolar) {\n const polarClip = clipShape as PolarArea;\n const coord = (coordSys as Polar).pointToCoord(point);\n if (isHorizontalOrRadial) {\n start = polarClip.startAngle;\n end = polarClip.endAngle;\n current = -coord[1] / 180 * Math.PI;\n }\n else {\n start = polarClip.r0;\n end = polarClip.r;\n current = coord[0];\n }\n }\n else {\n const gridClip = clipShape as Cartesian2DArea;\n if (isHorizontalOrRadial) {\n start = gridClip.x;\n end = gridClip.x + gridClip.width;\n current = symbol.x;\n }\n else {\n start = gridClip.y + gridClip.height;\n end = gridClip.y;\n current = symbol.y;\n }\n }\n }\n let ratio = end === start ? 0 : (current - start) / (end - start);\n if (isAxisInverse) {\n ratio = 1 - ratio;\n }\n\n const delay = typeof seriesDalay === 'function' ? seriesDalay(idx)\n : (seriesDuration * ratio) + seriesDalayValue;\n\n const symbolPath = el.getSymbolPath();\n const text = symbolPath.getTextContent();\n\n el.attr({ scaleX: 0, scaleY: 0});\n el.animateTo({\n scaleX: 1,\n scaleY: 1\n }, {\n duration: 200,\n setToFinal: true,\n delay: delay\n });\n\n if (text) {\n text.animateFrom({\n style: {\n opacity: 0\n }\n }, {\n duration: 300,\n delay: delay\n });\n }\n\n (symbolPath as ECElement).disableLabelAnimation = true;\n }\n });\n }\n\n _initOrUpdateEndLabel(\n seriesModel: LineSeriesModel,\n coordSys: Cartesian2D,\n inheritColor: string\n ) {\n const endLabelModel = seriesModel.getModel('endLabel');\n\n if (anyStateShowEndLabel(seriesModel)) {\n const data = seriesModel.getData();\n const polyline = this._polyline;\n let endLabel = this._endLabel;\n if (!endLabel) {\n endLabel = this._endLabel = new graphic.Text({\n z2: 200 // should be higher than item symbol\n });\n endLabel.ignoreClip = true;\n polyline.setTextContent(this._endLabel);\n (polyline as ECElement).disableLabelAnimation = true;\n }\n\n // Find last non-NaN data to display data\n const dataIndex = getLastIndexNotNull(data.getLayout('points'));\n if (dataIndex >= 0) {\n setLabelStyle(\n polyline,\n getLabelStatesModels(seriesModel, 'endLabel'),\n {\n inheritColor,\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText(dataIndex, opt, interpolatedValue) {\n return interpolatedValue != null\n ? getDefaultInterpolatedLabel(data, interpolatedValue)\n : getDefaultLabel(data, dataIndex);\n },\n enableTextSetter: true\n },\n getEndLabelStateSpecified(endLabelModel, coordSys)\n );\n polyline.textConfig.position = null;\n }\n }\n else if (this._endLabel) {\n this._polyline.removeTextContent();\n this._endLabel = null;\n }\n }\n\n _endLabelOnDuring(\n percent: number,\n clipRect: graphic.Rect,\n data: SeriesData,\n animationRecord: EndLabelAnimationRecord,\n valueAnimation: boolean,\n endLabelModel: Model,\n coordSys: Cartesian2D\n ) {\n const endLabel = this._endLabel;\n const polyline = this._polyline;\n\n if (endLabel) {\n // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.\n // The label is not prepared at this time.\n if (percent < 1 && animationRecord.originalX == null) {\n animationRecord.originalX = endLabel.x;\n animationRecord.originalY = endLabel.y;\n }\n\n const points = data.getLayout('points');\n const seriesModel = data.hostModel as LineSeriesModel;\n const connectNulls = seriesModel.get('connectNulls');\n const precision = endLabelModel.get('precision');\n const distance = endLabelModel.get('distance') || 0;\n\n const baseAxis = coordSys.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isBaseInversed = baseAxis.inverse;\n const clipShape = clipRect.shape;\n\n const xOrY = isBaseInversed\n ? isHorizontal ? clipShape.x : (clipShape.y + clipShape.height)\n : isHorizontal ? (clipShape.x + clipShape.width) : clipShape.y;\n const distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1);\n const distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1);\n const dim = isHorizontal ? 'x' : 'y';\n\n const dataIndexRange = getIndexRange(points, xOrY, dim);\n const indices = dataIndexRange.range;\n\n const diff = indices[1] - indices[0];\n let value: ParsedValue;\n if (diff >= 1) {\n // diff > 1 && connectNulls, which is on the null data.\n if (diff > 1 && !connectNulls) {\n const pt = getPointAtIndex(points, indices[0]);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n valueAnimation && (value = seriesModel.getRawValue(indices[0]) as ParsedValue);\n }\n else {\n const pt = polyline.getPointOn(xOrY, dim);\n pt && endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n\n const startValue = seriesModel.getRawValue(indices[0]) as ParsedValue;\n const endValue = seriesModel.getRawValue(indices[1]) as ParsedValue;\n valueAnimation && (value = modelUtil.interpolateRawValues(\n data, precision, startValue, endValue, dataIndexRange.t\n ) as ParsedValue);\n }\n animationRecord.lastFrameIndex = indices[0];\n }\n else {\n // If diff <= 0, which is the range is not found(Include NaN)\n // Choose the first point or last point.\n const idx = (percent === 1 || animationRecord.lastFrameIndex > 0) ? indices[0] : 0;\n const pt = getPointAtIndex(points, idx);\n valueAnimation && (value = seriesModel.getRawValue(idx) as ParsedValue);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n }\n if (valueAnimation) {\n labelInner(endLabel).setLabelText(value);\n }\n }\n }\n\n /**\n * @private\n */\n // FIXME Two value axis\n _doUpdateAnimation(\n data: SeriesData,\n stackedOnPoints: ArrayLike,\n coordSys: Cartesian2D | Polar,\n api: ExtensionAPI,\n step: LineSeriesOption['step'],\n valueOrigin: LineSeriesOption['areaStyle']['origin']\n ) {\n const polyline = this._polyline;\n const polygon = this._polygon;\n const seriesModel = data.hostModel;\n\n const diff = lineAnimationDiff(\n this._data, data,\n this._stackedOnPoints, stackedOnPoints,\n this._coordSys, coordSys,\n this._valueOrigin, valueOrigin\n );\n\n let current = diff.current;\n let stackedOnCurrent = diff.stackedOnCurrent;\n let next = diff.next;\n let stackedOnNext = diff.stackedOnNext;\n if (step) {\n // TODO If stacked series is not step\n current = turnPointsIntoStep(diff.current, coordSys, step);\n stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step);\n next = turnPointsIntoStep(diff.next, coordSys, step);\n stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step);\n }\n\n // Don't apply animation if diff is large.\n // For better result and avoid memory explosion problems like\n // https://github.com/apache/incubator-echarts/issues/12229\n if (getBoundingDiff(current, next) > 3000\n || (polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000)\n ) {\n polyline.setShape({\n points: next\n });\n if (polygon) {\n polygon.setShape({\n points: next,\n stackedOnPoints: stackedOnNext\n });\n }\n return;\n }\n\n (polyline.shape as any).__points = diff.current;\n polyline.shape.points = current;\n\n const target = {\n shape: {\n points: next\n }\n };\n // Also animate the original points.\n // If points reference is changed when turning into step line.\n if (diff.current !== current) {\n (target.shape as any).__points = diff.next;\n }\n\n // Stop previous animation.\n polyline.stopAnimation();\n graphic.updateProps(polyline, target, seriesModel);\n\n if (polygon) {\n polygon.setShape({\n // Reuse the points with polyline.\n points: current,\n stackedOnPoints: stackedOnCurrent\n });\n polygon.stopAnimation();\n graphic.updateProps(polygon, {\n shape: {\n stackedOnPoints: stackedOnNext\n }\n }, seriesModel);\n // If use attr directly in updateProps.\n if (polyline.shape.points !== polygon.shape.points) {\n polygon.shape.points = polyline.shape.points;\n }\n }\n\n\n const updatedDataInfo: {\n el: SymbolExtended,\n ptIdx: number\n }[] = [];\n const diffStatus = diff.status;\n\n for (let i = 0; i < diffStatus.length; i++) {\n const cmd = diffStatus[i].cmd;\n if (cmd === '=') {\n const el = data.getItemGraphicEl(diffStatus[i].idx1) as SymbolExtended;\n if (el) {\n updatedDataInfo.push({\n el: el,\n ptIdx: i // Index of points\n });\n }\n }\n }\n\n if (polyline.animators && polyline.animators.length) {\n polyline.animators[0].during(function () {\n polygon && polygon.dirtyShape();\n const points = (polyline.shape as any).__points;\n for (let i = 0; i < updatedDataInfo.length; i++) {\n const el = updatedDataInfo[i].el;\n const offset = updatedDataInfo[i].ptIdx * 2;\n el.x = points[offset];\n el.y = points[offset + 1];\n el.markRedraw();\n }\n });\n }\n }\n\n remove(ecModel: GlobalModel) {\n const group = this.group;\n const oldData = this._data;\n this._lineGroup.removeAll();\n this._symbolDraw.remove(true);\n // Remove temporary created elements when highlighting\n oldData && oldData.eachItemGraphicEl(function (el: SymbolExtended, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n\n this._polyline =\n this._polygon =\n this._coordSys =\n this._points =\n this._stackedOnPoints =\n this._endLabel =\n this._data = null;\n }\n}\n\nexport default LineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport {map} from 'zrender/src/core/util';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport SeriesModel from '../model/Series';\nimport { StageHandler, ParsedValueNumeric } from '../util/types';\nimport { createFloat32Array } from '../util/vendor';\n\n\nexport default function pointsLayout(seriesType: string, forceStoreInTypedArray?: boolean): StageHandler {\n return {\n seriesType: seriesType,\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: SeriesModel) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n const pipelineContext = seriesModel.pipelineContext;\n const useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n const dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n const dimLen = dims.length;\n\n const stackResultDim = data.getCalculationInfo('stackResultDimension');\n if (isDimensionStacked(data, dims[0] /*, dims[1]*/)) {\n dims[0] = stackResultDim;\n }\n if (isDimensionStacked(data, dims[1] /*, dims[0]*/)) {\n dims[1] = stackResultDim;\n }\n\n const store = data.getStorage();\n const dimIdx0 = data.getDimensionIndex(dims[0]);\n const dimIdx1 = data.getDimensionIndex(dims[1]);\n\n return dimLen && {\n progress(params, data) {\n const segCount = params.end - params.start;\n const points = useTypedArray && createFloat32Array(segCount * dimLen);\n\n const tmpIn: ParsedValueNumeric[] = [];\n const tmpOut: number[] = [];\n\n for (let i = params.start, offset = 0; i < params.end; i++) {\n let point;\n\n if (dimLen === 1) {\n const x = store.get(dimIdx0, i) as ParsedValueNumeric;\n // NOTE: Make sure the second parameter is null to use default strategy.\n point = coordSys.dataToPoint(x, null, tmpOut);\n }\n else {\n tmpIn[0] = store.get(dimIdx0, i) as ParsedValueNumeric;\n tmpIn[1] = store.get(dimIdx1, i) as ParsedValueNumeric;\n // Let coordinate system to handle the NaN data.\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n }\n else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler, SeriesOption, SeriesSamplingOptionMixin } from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesModel from '../model/Series';\n\n\ntype Sampler = (frame: ArrayLike) => number;\nconst samplers: Dictionary = {\n average: function (frame) {\n let sum = 0;\n let count = 0;\n for (let i = 0; i < frame.length; i++) {\n if (!isNaN(frame[i])) {\n sum += frame[i];\n count++;\n }\n }\n // Return NaN if count is 0\n return count === 0 ? NaN : sum / count;\n },\n sum: function (frame) {\n let sum = 0;\n for (let i = 0; i < frame.length; i++) {\n // Ignore NaN\n sum += frame[i] || 0;\n }\n return sum;\n },\n max: function (frame) {\n let max = -Infinity;\n for (let i = 0; i < frame.length; i++) {\n frame[i] > max && (max = frame[i]);\n }\n // NaN will cause illegal axis extent.\n return isFinite(max) ? max : NaN;\n },\n min: function (frame) {\n let min = Infinity;\n for (let i = 0; i < frame.length; i++) {\n frame[i] < min && (min = frame[i]);\n }\n // NaN will cause illegal axis extent.\n return isFinite(min) ? min : NaN;\n },\n // TODO\n // Median\n nearest: function (frame) {\n return frame[0];\n }\n};\n\nconst indexSampler = function (frame: ArrayLike) {\n return Math.round(frame.length / 2);\n};\n\nexport default function dataSample(seriesType: string): StageHandler {\n return {\n\n seriesType: seriesType,\n\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: true,\n\n reset: function (seriesModel: SeriesModel, ecModel, api) {\n const data = seriesModel.getData();\n const sampling = seriesModel.get('sampling');\n const coordSys = seriesModel.coordinateSystem;\n const count = data.count();\n // Only cartesian2d support down sampling. Disable it when there is few data.\n if (count > 10 && coordSys.type === 'cartesian2d' && sampling) {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis);\n const extent = baseAxis.getExtent();\n const dpr = api.getDevicePixelRatio();\n // Coordinste system has been resized\n const size = Math.abs(extent[1] - extent[0]) * (dpr || 1);\n const rate = Math.round(count / size);\n\n if (rate > 1) {\n if (sampling === 'lttb') {\n seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate));\n }\n let sampler;\n if (typeof sampling === 'string') {\n sampler = samplers[sampling];\n }\n else if (typeof sampling === 'function') {\n sampler = sampling;\n }\n if (sampler) {\n // Only support sample the first dim mapped from value axis.\n seriesModel.setData(data.downSample(\n data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler\n ));\n }\n }\n }\n }\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LineSeries from './LineSeries';\nimport LineView from './LineView';\n\n// In case developer forget to include grid component\n\nimport layoutPoints from '../../layout/points';\nimport dataSample from '../../processor/dataSample';\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(LineView);\n registers.registerSeriesModel(LineSeries);\n\n registers.registerLayout(layoutPoints('line', true));\n\n registers.registerVisual({\n seriesType: 'line',\n reset: function (seriesModel: LineSeries) {\n const data = seriesModel.getData();\n // Visual coding for legend\n const lineStyle = seriesModel.getModel('lineStyle').getLineStyle();\n if (lineStyle && !lineStyle.stroke) {\n // Fill in visual should be palette color if\n // has color callback\n lineStyle.stroke = data.getVisual('style').fill;\n }\n data.setVisual('legendLineStyle', lineStyle);\n }\n });\n\n // Down sample after filter\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.STATISTIC,\n dataSample('line')\n );\n\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n ScaleDataValue,\n DefaultExtraStateOpts\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesData from '../../data/SeriesData';\n\n\nexport interface BaseBarSeriesOption\n extends SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin {\n\n /**\n * Min height of bar\n */\n barMinHeight?: number\n /**\n * Min angle of bar. Avaiable on polar coordinate system\n */\n barMinAngle?: number\n\n /**\n * Max width of bar. Default to be 1 on cartesian coordinate system. Otherwise it's null\n */\n barMaxWidth?: number\n\n barMinWidth?: number\n\n /**\n * Bar width. Will be calculated automatically.\n * Can be pixel width or percent string.\n */\n barWidth?: number | string\n\n /**\n * Gap between each bar inside category. Default to be 30%. Can be an aboslute pixel value\n */\n barGap?: string | number\n\n /**\n * Gap between each category. Default to be 20%. can be an absolute pixel value.\n */\n barCategoryGap?: string | number\n\n large?: boolean\n largeThreshold?: number\n}\n\nclass BaseBarSeriesModel = BaseBarSeriesOption>\n extends SeriesModel {\n\n static type = 'series.__base_bar__';\n type = BaseBarSeriesModel.type;\n\n getInitialData(option: Opts, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {useEncodeDefaulter: true});\n }\n\n getMarkerPosition(value: ScaleDataValue[]) {\n const coordSys = this.coordinateSystem;\n if (coordSys && coordSys.clampData) {\n // PENDING if clamp ?\n const pt = coordSys.dataToPoint(coordSys.clampData(value));\n const data = this.getData();\n const offset = data.getLayout('offset');\n const size = data.getLayout('size');\n const offsetIndex = (coordSys as Cartesian2D).getBaseAxis().isHorizontal() ? 0 : 1;\n pt[offsetIndex] += offset + size / 2;\n return pt;\n }\n return [NaN, NaN];\n }\n\n static defaultOption: BaseBarSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // stack: null\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n barMinHeight: 0,\n barMinAngle: 0,\n // cursor: null,\n\n large: false,\n largeThreshold: 400,\n progressive: 3e3,\n progressiveChunkMode: 'mod'\n };\n}\n\nSeriesModel.registerClass(BaseBarSeriesModel);\n\nexport default BaseBarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseBarSeriesModel, {BaseBarSeriesOption} from './BaseBarSeries';\nimport {\n ItemStyleOption,\n OptionDataValue,\n SeriesStackOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesSamplingOptionMixin,\n SeriesLabelOption,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport createSeriesData from '../helper/createSeriesData';\nimport type Polar from '../../coord/polar/Polar';\nimport { inheritDefaultOption } from '../../util/component';\nimport SeriesData from '../../data/SeriesData';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\nexport type PolarBarLabelPosition = SeriesLabelOption['position']\n | 'start' | 'insideStart' | 'middle' | 'end' | 'insideEnd';\n\nexport type BarSeriesLabelOption = Omit\n & {position?: PolarBarLabelPosition | 'outside'};\n\nexport interface BarStateOption {\n itemStyle?: BarItemStyleOption\n label?: BarSeriesLabelOption\n}\n\nexport interface BarItemStyleOption extends ItemStyleOption {\n // Border radius is not supported for bar on polar\n borderRadius?: number | number[]\n}\nexport interface BarDataItemOption extends BarStateOption, StatesOptionMixin,\n OptionDataItemObject {\n cursor?: string\n}\n\nexport interface BarSeriesOption extends BaseBarSeriesOption, BarStateOption,\n SeriesStackOptionMixin, SeriesSamplingOptionMixin, SeriesEncodeOptionMixin {\n\n type?: 'bar'\n\n coordinateSystem?: 'cartesian2d' | 'polar'\n\n clip?: boolean\n\n /**\n * If use caps on two sides of bars\n * Only available on tangential polar bar\n */\n roundCap?: boolean\n\n showBackground?: boolean\n\n backgroundStyle?: ItemStyleOption & {\n borderRadius?: number | number[]\n }\n\n data?: (BarDataItemOption | OptionDataValue | OptionDataValue[])[]\n\n realtimeSort?: boolean\n}\n\nclass BarSeriesModel extends BaseBarSeriesModel {\n static type = 'series.bar';\n type = BarSeriesModel.type;\n\n static dependencies = ['grid', 'polar'];\n\n coordinateSystem: Cartesian2D | Polar;\n\n getInitialData(): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: true,\n createInvertedIndices: !!this.get('realtimeSort', true) || null\n });\n }\n\n /**\n * @override\n */\n getProgressive() {\n // Do not support progressive in normal mode.\n return this.get('large')\n ? this.get('progressive')\n : false;\n }\n\n /**\n * @override\n */\n getProgressiveThreshold() {\n // Do not support progressive in normal mode.\n let progressiveThreshold = this.get('progressiveThreshold');\n const largeThreshold = this.get('largeThreshold');\n if (largeThreshold > progressiveThreshold) {\n progressiveThreshold = largeThreshold;\n }\n return progressiveThreshold;\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.rect(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: BarSeriesOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n // If clipped\n // Only available on cartesian2d\n clip: true,\n\n roundCap: false,\n\n showBackground: false,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)',\n borderColor: null,\n borderWidth: 0,\n borderType: 'solid',\n borderRadius: 0,\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n realtimeSort: false\n });\n\n}\n\nexport default BarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {Path} from '../graphic';\nimport { PathProps } from 'zrender/src/graphic/Path';\n\n/**\n * Sausage: similar to sector, but have half circle on both sides\n */\n\nclass SausageShape {\n cx = 0;\n cy = 0;\n r0 = 0;\n r = 0;\n startAngle = 0;\n endAngle = Math.PI * 2;\n clockwise = true;\n}\n\ninterface SausagePathProps extends PathProps {\n shape?: SausageShape\n}\n\nclass SausagePath extends Path {\n\n type = 'sausage';\n\n constructor(opts?: SausagePathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SausageShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SausageShape) {\n const x = shape.cx;\n const y = shape.cy;\n const r0 = Math.max(shape.r0 || 0, 0);\n const r = Math.max(shape.r, 0);\n const dr = (r - r0) * 0.5;\n const rCenter = r0 + dr;\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n const clockwise = shape.clockwise;\n\n const unitStartX = Math.cos(startAngle);\n const unitStartY = Math.sin(startAngle);\n const unitEndX = Math.cos(endAngle);\n const unitEndY = Math.sin(endAngle);\n\n const lessThanCircle = clockwise\n ? endAngle - startAngle < Math.PI * 2\n : startAngle - endAngle < Math.PI * 2;\n\n if (lessThanCircle) {\n ctx.moveTo(unitStartX * r0 + x, unitStartY * r0 + y);\n\n ctx.arc(\n unitStartX * rCenter + x, unitStartY * rCenter + y, dr,\n -Math.PI + startAngle, startAngle, !clockwise\n );\n }\n\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n\n ctx.moveTo(unitEndX * r + x, unitEndY * r + y);\n\n ctx.arc(\n unitEndX * rCenter + x, unitEndY * rCenter + y, dr,\n endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise\n );\n\n if (r0 !== 0) {\n ctx.arc(x, y, r0, endAngle, startAngle, clockwise);\n\n ctx.moveTo(unitStartX * r0 + x, unitEndY * r0 + y);\n }\n\n ctx.closePath();\n }\n}\n\nexport default SausagePath;", "import {calculateTextPosition, TextPositionCalculationResult} from 'zrender/src/contain/text';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport {BuiltinTextPosition, TextAlign, TextVerticalAlign} from 'zrender/src/core/types';\nimport {isArray} from 'zrender/src/core/util';\nimport {ElementCalculateTextPosition, ElementTextConfig} from 'zrender/src/Element';\nimport { Sector } from '../util/graphic';\n\nexport type SectorTextPosition = BuiltinTextPosition\n | 'startAngle' | 'insideStartAngle'\n | 'endAngle' | 'insideEndAngle'\n | 'middle'\n | 'startArc' | 'insideStartArc'\n | 'endArc' | 'insideEndArc'\n | (number | string)[];\n\nexport type SectorLike = {\n cx: number\n cy: number\n r0: number\n r: number\n startAngle: number\n endAngle: number\n clockwise: boolean\n};\n\nexport function createSectorCalculateTextPosition(\n positionMapping: (seriesLabelPosition: T) => SectorTextPosition\n): ElementCalculateTextPosition {\n return function (\n this: Sector,\n out: TextPositionCalculationResult,\n opts: {\n position?: SectorTextPosition\n distance?: number\n global?: boolean\n },\n boundingRect: RectLike\n ) {\n const textPosition = opts.position;\n\n if (!textPosition || textPosition instanceof Array) {\n return calculateTextPosition(\n out,\n opts as ElementTextConfig,\n boundingRect\n );\n }\n\n const mappedSectorPosition = positionMapping(textPosition as T);\n const distance = opts.distance != null ? opts.distance : 5;\n const sector = this.shape;\n const cx = sector.cx;\n const cy = sector.cy;\n const r = sector.r;\n const r0 = sector.r0;\n const middleR = (r + r0) / 2;\n const startAngle = sector.startAngle;\n const endAngle = sector.endAngle;\n const middleAngle = (startAngle + endAngle) / 2;\n\n // base position: top-left\n let x = cx + r * Math.cos(startAngle);\n let y = cy + r * Math.sin(startAngle);\n\n let textAlign: TextAlign = 'left';\n let textVerticalAlign: TextVerticalAlign = 'top';\n\n switch (mappedSectorPosition) {\n case 'startArc':\n x = cx + (r0 - distance) * Math.cos(middleAngle);\n y = cy + (r0 - distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'top';\n break;\n\n case 'insideStartArc':\n x = cx + (r0 + distance) * Math.cos(middleAngle);\n y = cy + (r0 + distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n\n case 'startAngle':\n x = cx + middleR * Math.cos(startAngle)\n + adjustAngleDistanceX(startAngle, distance, false);\n y = cy + middleR * Math.sin(startAngle)\n + adjustAngleDistanceY(startAngle, distance, false);\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n\n case 'insideStartAngle':\n x = cx + middleR * Math.cos(startAngle)\n + adjustAngleDistanceX(startAngle, -distance, false);\n y = cy + middleR * Math.sin(startAngle)\n + adjustAngleDistanceY(startAngle, -distance, false);\n textAlign = 'left';\n textVerticalAlign = 'middle';\n break;\n\n case 'middle':\n x = cx + middleR * Math.cos(middleAngle);\n y = cy + middleR * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n\n case 'endArc':\n x = cx + (r + distance) * Math.cos(middleAngle);\n y = cy + (r + distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideEndArc':\n x = cx + (r - distance) * Math.cos(middleAngle);\n y = cy + (r - distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'top';\n break;\n\n case 'endAngle':\n x = cx + middleR * Math.cos(endAngle)\n + adjustAngleDistanceX(endAngle, distance, true);\n y = cy + middleR * Math.sin(endAngle)\n + adjustAngleDistanceY(endAngle, distance, true);\n textAlign = 'left';\n textVerticalAlign = 'middle';\n break;\n\n case 'insideEndAngle':\n x = cx + middleR * Math.cos(endAngle)\n + adjustAngleDistanceX(endAngle, -distance, true);\n y = cy + middleR * Math.sin(endAngle)\n + adjustAngleDistanceY(endAngle, -distance, true);\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n\n default:\n return calculateTextPosition(\n out,\n opts as ElementTextConfig,\n boundingRect\n );\n }\n\n out = out || {} as TextPositionCalculationResult;\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n\n return out;\n };\n}\n\nexport function setSectorTextRotation(\n sector: Sector,\n textPosition: T,\n positionMapping: (seriesLabelPosition: T) => SectorTextPosition,\n rotateType: number | 'auto'\n) {\n if (typeof rotateType === 'number') {\n // user-set rotation\n sector.setTextConfig({\n rotation: rotateType\n });\n return;\n }\n else if (isArray(textPosition)) {\n // user-set position, use 0 as auto rotation\n sector.setTextConfig({\n rotation: 0\n });\n return;\n }\n\n const shape = sector.shape;\n const startAngle = shape.clockwise ? shape.startAngle : shape.endAngle;\n const endAngle = shape.clockwise ? shape.endAngle : shape.startAngle;\n const middleAngle = (startAngle + endAngle) / 2;\n\n let anchorAngle;\n const mappedSectorPosition = positionMapping(textPosition);\n switch (mappedSectorPosition) {\n case 'startArc':\n case 'insideStartArc':\n case 'middle':\n case 'insideEndArc':\n case 'endArc':\n anchorAngle = middleAngle;\n break;\n\n case 'startAngle':\n case 'insideStartAngle':\n anchorAngle = startAngle;\n break;\n\n case 'endAngle':\n case 'insideEndAngle':\n anchorAngle = endAngle;\n break;\n\n default:\n sector.setTextConfig({\n rotation: 0\n });\n return;\n }\n\n let rotate = Math.PI * 1.5 - anchorAngle;\n /**\n * TODO: labels with rotate > Math.PI / 2 should be rotate another\n * half round flipped to increase readability. However, only middle\n * position supports this for now, because in other positions, the\n * anchor point is not at the center of the text, so the positions\n * after rotating is not as expected.\n */\n if (mappedSectorPosition === 'middle' && rotate > Math.PI / 2 && rotate < Math.PI * 1.5) {\n rotate -= Math.PI;\n }\n\n sector.setTextConfig({\n rotation: rotate\n });\n}\n\nfunction adjustAngleDistanceX(angle: number, distance: number, isEnd: boolean) {\n return distance * Math.sin(angle) * (isEnd ? -1 : 1);\n}\n\nfunction adjustAngleDistanceY(angle: number, distance: number, isEnd: boolean) {\n return distance * Math.cos(angle) * (isEnd ? 1 : -1);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Path, {PathProps} from 'zrender/src/graphic/Path';\nimport Group from 'zrender/src/graphic/Group';\nimport {extend, defaults, each, map} from 'zrender/src/core/util';\nimport {BuiltinTextPosition} from 'zrender/src/core/types';\nimport {\n Rect,\n Sector,\n updateProps,\n initProps,\n removeElementWithFadeOut\n} from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, setLabelValueAnimation } from '../../label/labelStyle';\nimport {throttle} from '../../util/throttle';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport Sausage from '../../util/shape/sausage';\nimport ChartView from '../../view/Chart';\nimport SeriesData, {DefaultDataVisual} from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n StageHandlerProgressParams,\n ZRElementEvent,\n ColorString,\n OrdinalSortInfo,\n Payload,\n OrdinalNumber,\n ParsedValue\n} from '../../util/types';\nimport BarSeriesModel, {BarSeriesOption, BarDataItemOption, PolarBarLabelPosition} from './BarSeries';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport type Model from '../../model/Model';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport OrdinalScale from '../../scale/Ordinal';\nimport SeriesModel from '../../model/Series';\nimport {AngleAxisModel, RadiusAxisModel} from '../../coord/polar/AxisModel';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport {LayoutRect} from '../../util/layout';\nimport {EventCallback} from 'zrender/src/core/Eventful';\nimport { warn } from '../../util/log';\nimport {createSectorCalculateTextPosition, SectorTextPosition, setSectorTextRotation} from '../../label/sectorLabel';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst _eventPos = [0, 0];\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\n\ntype CoordSysOfBar = BarSeriesModel['coordinateSystem'];\ntype RectShape = Rect['shape'];\ntype SectorShape = Sector['shape'];\n\ntype SectorLayout = SectorShape;\ntype RectLayout = RectShape;\n\ntype BarPossiblePath = Sector | Rect | Sausage;\n\ntype CartesianCoordArea = ReturnType;\ntype PolarCoordArea = ReturnType;\n\ntype RealtimeSortConfig = {\n baseAxis: Axis2D;\n otherAxis: Axis2D;\n};\n// Return a number, based on which the ordinal sorted.\ntype OrderMapping = (dataIndex: number) => number;\n\nfunction getClipArea(coord: CoordSysOfBar, data: SeriesData) {\n const coordSysClipArea = coord.getArea && coord.getArea();\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n const baseAxis = coord.getBaseAxis();\n // When boundaryGap is false or using time axis. bar may exceed the grid.\n // We should not clip this part.\n // See test/bar2.html\n if (baseAxis.type !== 'category' || !baseAxis.onBand) {\n const expandWidth = data.getLayout('bandWidth');\n if (baseAxis.isHorizontal()) {\n (coordSysClipArea as CartesianCoordArea).x -= expandWidth;\n (coordSysClipArea as CartesianCoordArea).width += expandWidth * 2;\n }\n else {\n (coordSysClipArea as CartesianCoordArea).y -= expandWidth;\n (coordSysClipArea as CartesianCoordArea).height += expandWidth * 2;\n }\n }\n }\n\n return coordSysClipArea as PolarCoordArea | CartesianCoordArea;\n}\n\nclass BarView extends ChartView {\n static type = 'bar' as const;\n type = BarView.type;\n\n private _data: SeriesData;\n\n private _isLargeDraw: boolean;\n\n private _isFirstFrame: boolean; // First frame after series added\n private _onRendered: EventCallback;\n\n private _backgroundGroup: Group;\n\n private _backgroundEls: (Rect | Sector)[];\n\n private _model: BarSeriesModel;\n\n constructor() {\n super();\n this._isFirstFrame = true;\n }\n\n render(seriesModel: BarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this._model = seriesModel;\n\n this._removeOnRenderedListener(api);\n\n this._updateDrawMode(seriesModel);\n\n const coordinateSystemType = seriesModel.get('coordinateSystem');\n\n if (coordinateSystemType === 'cartesian2d'\n || coordinateSystemType === 'polar'\n ) {\n this._isLargeDraw\n ? this._renderLarge(seriesModel, ecModel, api)\n : this._renderNormal(seriesModel, ecModel, api, payload);\n }\n else if (__DEV__) {\n warn('Only cartesian2d and polar supported for bar.');\n }\n }\n\n incrementalPrepareRender(seriesModel: BarSeriesModel): void {\n this._clear();\n this._updateDrawMode(seriesModel);\n // incremental also need to clip, otherwise might be overlow.\n // But must not set clip in each frame, otherwise all of the children will be marked redraw.\n this._updateLargeClip(seriesModel);\n }\n\n incrementalRender(params: StageHandlerProgressParams, seriesModel: BarSeriesModel): void {\n // Do not support progressive in normal mode.\n this._incrementalRenderLarge(params, seriesModel);\n }\n\n private _updateDrawMode(seriesModel: BarSeriesModel): void {\n const isLargeDraw = seriesModel.pipelineContext.large;\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n this._clear();\n }\n }\n\n private _renderNormal(\n seriesModel: BarSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const group = this.group;\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const coord = seriesModel.coordinateSystem;\n const baseAxis = coord.getBaseAxis();\n let isHorizontalOrRadial: boolean;\n\n if (coord.type === 'cartesian2d') {\n isHorizontalOrRadial = (baseAxis as Axis2D).isHorizontal();\n }\n else if (coord.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n }\n\n const animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;\n\n const realtimeSortCfg = shouldRealtimeSort(seriesModel, coord);\n\n if (realtimeSortCfg) {\n this._enableRealtimeSort(realtimeSortCfg, data, api);\n }\n\n const needsClip = seriesModel.get('clip', true) || realtimeSortCfg;\n const coordSysClipArea = getClipArea(coord, data);\n // If there is clipPath created in large mode. Remove it.\n group.removeClipPath();\n // We don't use clipPath in normal mode because we needs a perfect animation\n // And don't want the label are clipped.\n\n const roundCap = seriesModel.get('roundCap', true);\n\n const drawBackground = seriesModel.get('showBackground', true);\n const backgroundModel = seriesModel.getModel('backgroundStyle');\n const barBorderRadius = backgroundModel.get('borderRadius') || 0;\n\n const bgEls: BarView['_backgroundEls'] = [];\n const oldBgEls = this._backgroundEls;\n\n const isInitSort = payload && payload.isInitSort;\n const isChangeOrder = payload && payload.type === 'changeAxisOrder';\n\n function createBackground(dataIndex: number) {\n const bgLayout = getLayout[coord.type](data, dataIndex);\n const bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout);\n bgEl.useStyle(backgroundModel.getItemStyle());\n // Only cartesian2d support borderRadius.\n if (coord.type === 'cartesian2d') {\n (bgEl as Rect).setShape('r', barBorderRadius);\n }\n bgEls[dataIndex] = bgEl;\n return bgEl;\n };\n data.diff(oldData)\n .add(function (dataIndex) {\n const itemModel = data.getItemModel(dataIndex);\n const layout = getLayout[coord.type](data, dataIndex, itemModel);\n\n if (drawBackground) {\n createBackground(dataIndex);\n }\n\n // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in \"axisProxy\".\n if (!data.hasValue(dataIndex) || !isValidLayout[coord.type](layout)) {\n return;\n }\n\n let isClipped = false;\n if (needsClip) {\n // Clip will modify the layout params.\n // And return a boolean to determine if the shape are fully clipped.\n isClipped = clip[coord.type](coordSysClipArea, layout);\n }\n\n const el = elementCreator[coord.type](\n seriesModel,\n data,\n dataIndex,\n layout,\n isHorizontalOrRadial,\n animationModel,\n baseAxis.model,\n false,\n roundCap\n );\n\n updateStyle(\n el, data, dataIndex, itemModel, layout,\n seriesModel, isHorizontalOrRadial, coord.type === 'polar'\n );\n if (isInitSort) {\n (el as Rect).attr({ shape: layout });\n }\n else if (realtimeSortCfg) {\n updateRealtimeAnimation(\n realtimeSortCfg,\n animationModel,\n el as Rect,\n layout as LayoutRect,\n dataIndex,\n isHorizontalOrRadial,\n false,\n false\n );\n }\n else {\n initProps(el, {shape: layout} as any, seriesModel, dataIndex);\n }\n\n data.setItemGraphicEl(dataIndex, el);\n\n group.add(el);\n el.ignore = isClipped;\n })\n .update(function (newIndex, oldIndex) {\n const itemModel = data.getItemModel(newIndex);\n const layout = getLayout[coord.type](data, newIndex, itemModel);\n\n if (drawBackground) {\n let bgEl: Rect | Sector;\n if (oldBgEls.length === 0) {\n bgEl = createBackground(oldIndex);\n }\n else {\n bgEl = oldBgEls[oldIndex];\n bgEl.useStyle(backgroundModel.getItemStyle());\n // Only cartesian2d support borderRadius.\n if (coord.type === 'cartesian2d') {\n (bgEl as Rect).setShape('r', barBorderRadius);\n }\n bgEls[newIndex] = bgEl;\n }\n const bgLayout = getLayout[coord.type](data, newIndex);\n const shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord);\n updateProps(bgEl, { shape }, animationModel, newIndex);\n }\n\n let el = oldData.getItemGraphicEl(oldIndex) as BarPossiblePath;\n if (!data.hasValue(newIndex) || !isValidLayout[coord.type](layout)) {\n group.remove(el);\n return;\n }\n\n let isClipped = false;\n if (needsClip) {\n isClipped = clip[coord.type](coordSysClipArea, layout);\n if (isClipped) {\n group.remove(el);\n }\n }\n\n if (!el) {\n el = elementCreator[coord.type](\n seriesModel,\n data,\n newIndex,\n layout,\n isHorizontalOrRadial,\n animationModel,\n baseAxis.model,\n !!el,\n roundCap\n );\n }\n else {\n saveOldStyle(el);\n }\n\n // Not change anything if only order changed.\n // Especially not change label.\n if (!isChangeOrder) {\n updateStyle(\n el, data, newIndex, itemModel, layout,\n seriesModel, isHorizontalOrRadial, coord.type === 'polar'\n );\n }\n\n if (isInitSort) {\n (el as Rect).attr({ shape: layout });\n }\n else if (realtimeSortCfg) {\n updateRealtimeAnimation(\n realtimeSortCfg,\n animationModel,\n el as Rect,\n layout as LayoutRect,\n newIndex,\n isHorizontalOrRadial,\n true,\n isChangeOrder\n );\n }\n else {\n updateProps(el, {\n shape: layout\n } as any, seriesModel, newIndex, null);\n }\n\n data.setItemGraphicEl(newIndex, el);\n el.ignore = isClipped;\n group.add(el);\n })\n .remove(function (dataIndex) {\n const el = oldData.getItemGraphicEl(dataIndex) as Path;\n el && removeElementWithFadeOut(el, seriesModel, dataIndex);\n })\n .execute();\n\n const bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group());\n bgGroup.removeAll();\n\n for (let i = 0; i < bgEls.length; ++i) {\n bgGroup.add(bgEls[i]);\n }\n group.add(bgGroup);\n this._backgroundEls = bgEls;\n\n this._data = data;\n }\n\n private _renderLarge(seriesModel: BarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n this._clear();\n createLarge(seriesModel, this.group);\n this._updateLargeClip(seriesModel);\n }\n\n private _incrementalRenderLarge(params: StageHandlerProgressParams, seriesModel: BarSeriesModel): void {\n this._removeBackground();\n createLarge(seriesModel, this.group, true);\n }\n\n private _updateLargeClip(seriesModel: BarSeriesModel): void {\n // Use clipPath in large mode.\n const clipPath = seriesModel.get('clip', true)\n ? createClipPath(seriesModel.coordinateSystem, false, seriesModel)\n : null;\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n }\n\n private _enableRealtimeSort(\n realtimeSortCfg: RealtimeSortConfig,\n data: ReturnType,\n api: ExtensionAPI\n ): void {\n // If no data in the first frame, wait for data to initSort\n if (!data.count()) {\n return;\n }\n\n const baseAxis = realtimeSortCfg.baseAxis;\n\n if (this._isFirstFrame) {\n this._dispatchInitSort(data, realtimeSortCfg, api);\n this._isFirstFrame = false;\n }\n else {\n const orderMapping = (idx: number) => {\n const el = (data.getItemGraphicEl(idx) as Rect);\n if (el) {\n const shape = el.shape;\n // If data is NaN, shape.xxx may be NaN, so use || 0 here in case\n return (\n baseAxis.isHorizontal()\n // The result should be consistent with the initial sort by data value.\n // Do not support the case that both positive and negative exist.\n ? Math.abs(shape.height)\n : Math.abs(shape.width)\n ) || 0;\n }\n else {\n return 0;\n }\n };\n this._onRendered = () => {\n this._updateSortWithinSameData(data, orderMapping, baseAxis, api);\n };\n api.getZr().on('rendered', this._onRendered);\n }\n }\n\n private _dataSort(\n data: SeriesData,\n baseAxis: Axis2D,\n orderMapping: OrderMapping\n ): OrdinalSortInfo {\n type SortValueInfo = {\n dataIndex: number,\n mappedValue: number,\n ordinalNumber: OrdinalNumber\n };\n const info: SortValueInfo[] = [];\n data.each(data.mapDimension(baseAxis.dim), (ordinalNumber: OrdinalNumber, dataIdx: number) => {\n let mappedValue = orderMapping(dataIdx);\n mappedValue = mappedValue == null ? NaN : mappedValue;\n info.push({\n dataIndex: dataIdx,\n mappedValue: mappedValue,\n ordinalNumber: ordinalNumber\n });\n });\n\n info.sort((a, b) => {\n // If NaN, it will be treated as min val.\n return b.mappedValue - a.mappedValue;\n });\n\n return {\n ordinalNumbers: map(info, item => item.ordinalNumber)\n };\n }\n\n private _isOrderChangedWithinSameData(\n data: SeriesData,\n orderMapping: OrderMapping,\n baseAxis: Axis2D\n ): boolean {\n const scale = baseAxis.scale as OrdinalScale;\n const ordinalDataDim = data.mapDimension(baseAxis.dim);\n\n let lastValue = Number.MAX_VALUE;\n for (let tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) {\n const rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum));\n const value = rawIdx < 0\n // If some tick have no bar, the tick will be treated as min.\n ? Number.MIN_VALUE\n // PENDING: if dataZoom on baseAxis exits, is it a performance issue?\n : orderMapping(data.indexOfRawIndex(rawIdx));\n if (value > lastValue) {\n return true;\n }\n lastValue = value;\n }\n return false;\n }\n\n /*\n * Consider the case when A and B changed order, whose representing\n * bars are both out of sight, we don't wish to trigger reorder action\n * as long as the order in the view doesn't change.\n */\n private _isOrderDifferentInView(\n orderInfo: OrdinalSortInfo,\n baseAxis: Axis2D\n ): boolean {\n const scale = baseAxis.scale as OrdinalScale;\n const extent = scale.getExtent();\n\n let tickNum = Math.max(0, extent[0]);\n const tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1);\n for (;tickNum <= tickMax; ++tickNum) {\n if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) {\n return true;\n }\n }\n }\n\n private _updateSortWithinSameData(\n data: SeriesData,\n orderMapping: OrderMapping,\n baseAxis: Axis2D,\n api: ExtensionAPI\n ) {\n if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) {\n return;\n }\n\n const sortInfo = this._dataSort(data, baseAxis, orderMapping);\n\n if (this._isOrderDifferentInView(sortInfo, baseAxis)) {\n this._removeOnRenderedListener(api);\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n axisId: baseAxis.index,\n sortInfo: sortInfo\n });\n }\n }\n\n private _dispatchInitSort(\n data: SeriesData,\n realtimeSortCfg: RealtimeSortConfig,\n api: ExtensionAPI\n ) {\n const baseAxis = realtimeSortCfg.baseAxis;\n const sortResult = this._dataSort(\n data,\n baseAxis,\n dataIdx => data.get(\n data.mapDimension(realtimeSortCfg.otherAxis.dim),\n dataIdx\n ) as number\n );\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n isInitSort: true,\n axisId: baseAxis.index,\n sortInfo: sortResult\n });\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._clear(this._model);\n this._removeOnRenderedListener(api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this._removeOnRenderedListener(api);\n }\n\n private _removeOnRenderedListener(api: ExtensionAPI) {\n if (this._onRendered) {\n api.getZr().off('rendered', this._onRendered);\n this._onRendered = null;\n }\n }\n\n private _clear(model?: SeriesModel): void {\n const group = this.group;\n const data = this._data;\n if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) {\n this._removeBackground();\n this._backgroundEls = [];\n\n data.eachItemGraphicEl(function (el: Path) {\n removeElementWithFadeOut(el, model, getECData(el).dataIndex);\n });\n }\n else {\n group.removeAll();\n }\n this._data = null;\n this._isFirstFrame = true;\n }\n\n private _removeBackground(): void {\n this.group.remove(this._backgroundGroup);\n this._backgroundGroup = null;\n }\n}\n\ninterface Clipper {\n (coordSysBoundingRect: PolarCoordArea | CartesianCoordArea, layout: RectLayout | SectorLayout): boolean\n}\nconst clip: {\n [key in 'cartesian2d' | 'polar']: Clipper\n} = {\n cartesian2d(coordSysBoundingRect: CartesianCoordArea, layout: Rect['shape']) {\n const signWidth = layout.width < 0 ? -1 : 1;\n const signHeight = layout.height < 0 ? -1 : 1;\n // Needs positive width and height\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n const coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width;\n const coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height;\n const x = mathMax(layout.x, coordSysBoundingRect.x);\n const x2 = mathMin(layout.x + layout.width, coordSysX2);\n const y = mathMax(layout.y, coordSysBoundingRect.y);\n const y2 = mathMin(layout.y + layout.height, coordSysY2);\n\n const xClipped = x2 < x;\n const yClipped = y2 < y;\n\n // When xClipped or yClipped, the element will be marked as `ignore`.\n // But we should also place the element at the edge of the coord sys bounding rect.\n // Beause if data changed and the bar show again, its transition animaiton\n // will begin at this place.\n layout.x = (xClipped && x > coordSysX2) ? x2 : x;\n layout.y = (yClipped && y > coordSysY2) ? y2 : y;\n layout.width = xClipped ? 0 : x2 - x;\n layout.height = yClipped ? 0 : y2 - y;\n\n // Reverse back\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n return xClipped || yClipped;\n },\n\n polar(coordSysClipArea: PolarCoordArea, layout: Sector['shape']) {\n const signR = layout.r0 <= layout.r ? 1 : -1;\n // Make sure r is larger than r0\n if (signR < 0) {\n const tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n const r = mathMin(layout.r, coordSysClipArea.r);\n const r0 = mathMax(layout.r0, coordSysClipArea.r0);\n\n layout.r = r;\n layout.r0 = r0;\n\n const clipped = r - r0 < 0;\n\n // Reverse back\n if (signR < 0) {\n const tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n return clipped;\n }\n};\n\ninterface ElementCreator {\n (\n seriesModel: BarSeriesModel, data: SeriesData, newIndex: number,\n layout: RectLayout | SectorLayout, isHorizontalOrRadial: boolean,\n animationModel: BarSeriesModel,\n axisModel: CartesianAxisModel | AngleAxisModel | RadiusAxisModel,\n isUpdate: boolean,\n roundCap?: boolean\n ): BarPossiblePath\n}\n\nconst elementCreator: {\n [key in 'polar' | 'cartesian2d']: ElementCreator\n} = {\n\n cartesian2d(\n seriesModel, data, newIndex, layout: RectLayout, isHorizontal,\n animationModel, axisModel, isUpdate, roundCap\n ) {\n const rect = new Rect({\n shape: extend({}, layout),\n z2: 1\n });\n (rect as any).__dataIndex = newIndex;\n\n rect.name = 'item';\n\n if (animationModel) {\n const rectShape = rect.shape;\n const animateProperty = isHorizontal ? 'height' : 'width' as 'width' | 'height';\n rectShape[animateProperty] = 0;\n }\n return rect;\n },\n\n polar(\n seriesModel, data, newIndex, layout: SectorLayout, isRadial: boolean,\n animationModel, axisModel, isUpdate, roundCap\n ) {\n // Keep the same logic with bar in catesion: use end value to control\n // direction. Notice that if clockwise is true (by default), the sector\n // will always draw clockwisely, no matter whether endAngle is greater\n // or less than startAngle.\n const clockwise = layout.startAngle < layout.endAngle;\n\n const ShapeClass = (!isRadial && roundCap) ? Sausage : Sector;\n\n const sector = new ShapeClass({\n shape: defaults({clockwise: clockwise}, layout),\n z2: 1\n });\n\n sector.name = 'item';\n\n const positionMap = createPolarPositionMapping(isRadial);\n sector.calculateTextPosition = createSectorCalculateTextPosition(positionMap);\n\n // Animation\n if (animationModel) {\n const sectorShape = sector.shape;\n const animateProperty = isRadial ? 'r' : 'endAngle' as 'r' | 'endAngle';\n const animateTarget = {} as SectorShape;\n sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;\n animateTarget[animateProperty] = layout[animateProperty];\n (isUpdate ? updateProps : initProps)(sector, {\n shape: animateTarget\n // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue\n }, animationModel);\n }\n\n return sector;\n }\n};\n\nfunction shouldRealtimeSort(\n seriesModel: BarSeriesModel,\n coordSys: Cartesian2D | Polar\n): RealtimeSortConfig {\n const realtimeSortOption = seriesModel.get('realtimeSort', true);\n const baseAxis = coordSys.getBaseAxis() as Axis2D;\n if (__DEV__) {\n if (realtimeSortOption) {\n if (baseAxis.type !== 'category') {\n warn('`realtimeSort` will not work because this bar series is not based on a category axis.');\n }\n if (coordSys.type !== 'cartesian2d') {\n warn('`realtimeSort` will not work because this bar series is not on cartesian2d.');\n }\n }\n }\n if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') {\n return {\n baseAxis: baseAxis as Axis2D,\n otherAxis: coordSys.getOtherAxis(baseAxis)\n };\n }\n}\n\nfunction updateRealtimeAnimation(\n realtimeSortCfg: RealtimeSortConfig,\n seriesAnimationModel: BarSeriesModel,\n el: Rect,\n layout: LayoutRect,\n newIndex: number,\n isHorizontal: boolean,\n isUpdate: boolean,\n isChangeOrder: boolean\n) {\n let seriesTarget;\n let axisTarget;\n if (isHorizontal) {\n axisTarget = {\n x: layout.x,\n width: layout.width\n };\n seriesTarget = {\n y: layout.y,\n height: layout.height\n };\n }\n else {\n axisTarget = {\n y: layout.y,\n height: layout.height\n };\n seriesTarget = {\n x: layout.x,\n width: layout.width\n };\n }\n\n if (!isChangeOrder) {\n // Keep the original growth animation if only axis order changed.\n // Not start a new animation.\n (isUpdate ? updateProps : initProps)(el, {\n shape: seriesTarget\n }, seriesAnimationModel, newIndex, null);\n }\n\n const axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null;\n (isUpdate ? updateProps : initProps)(el, {\n shape: axisTarget\n }, axisAnimationModel, newIndex);\n}\n\nfunction checkPropertiesNotValid>(obj: T, props: readonly (keyof T)[]) {\n for (let i = 0; i < props.length; i++) {\n if (!isFinite(obj[props[i]])) {\n return true;\n }\n }\n return false;\n}\n\n\nconst rectPropties = ['x', 'y', 'width', 'height'] as const;\nconst polarPropties = ['cx', 'cy', 'r', 'startAngle', 'endAngle'] as const;\nconst isValidLayout: Record<'cartesian2d' | 'polar', (layout: RectLayout | SectorLayout) => boolean> = {\n cartesian2d(layout: RectLayout) {\n return !checkPropertiesNotValid(layout, rectPropties);\n },\n\n polar(layout: SectorLayout) {\n return !checkPropertiesNotValid(layout, polarPropties);\n }\n} as const;\n\ninterface GetLayout {\n (data: SeriesData, dataIndex: number, itemModel?: Model): RectLayout | SectorLayout\n}\nconst getLayout: {\n [key in 'cartesian2d' | 'polar']: GetLayout\n} = {\n // itemModel is only used to get borderWidth, which is not needed\n // when calculating bar background layout.\n cartesian2d(data, dataIndex, itemModel?): RectLayout {\n const layout = data.getItemLayout(dataIndex) as RectLayout;\n const fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0;\n\n // fix layout with lineWidth\n const signX = layout.width > 0 ? 1 : -1;\n const signY = layout.height > 0 ? 1 : -1;\n return {\n x: layout.x + signX * fixedLineWidth / 2,\n y: layout.y + signY * fixedLineWidth / 2,\n width: layout.width - signX * fixedLineWidth,\n height: layout.height - signY * fixedLineWidth\n };\n },\n\n polar(data, dataIndex, itemModel?): SectorLayout {\n const layout = data.getItemLayout(dataIndex);\n return {\n cx: layout.cx,\n cy: layout.cy,\n r0: layout.r0,\n r: layout.r,\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n } as SectorLayout;\n }\n};\n\nfunction isZeroOnPolar(layout: SectorLayout) {\n return layout.startAngle != null\n && layout.endAngle != null\n && layout.startAngle === layout.endAngle;\n}\n\nfunction createPolarPositionMapping(isRadial: boolean)\n : (position: PolarBarLabelPosition) => SectorTextPosition {\n return ((isRadial: boolean) => {\n const arcOrAngle = isRadial ? 'Arc' : 'Angle';\n return (position: PolarBarLabelPosition) => {\n switch (position) {\n case 'start':\n case 'insideStart':\n case 'end':\n case 'insideEnd':\n return position + arcOrAngle as SectorTextPosition;\n default:\n return position;\n }\n };\n })(isRadial);\n}\n\nfunction updateStyle(\n el: BarPossiblePath,\n data: SeriesData, dataIndex: number,\n itemModel: Model,\n layout: RectLayout | SectorLayout,\n seriesModel: BarSeriesModel,\n isHorizontalOrRadial: boolean,\n isPolar: boolean\n) {\n const style = data.getItemVisual(dataIndex, 'style');\n\n if (!isPolar) {\n (el as Rect).setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);\n }\n\n el.useStyle(style);\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && (el as Path).attr('cursor', cursorStyle);\n\n const labelPositionOutside = isPolar\n ? (isHorizontalOrRadial\n ? ((layout as SectorLayout).r >= (layout as SectorLayout).r0 ? 'endArc' as const : 'startArc' as const)\n : ((layout as SectorLayout).endAngle >= (layout as SectorLayout).startAngle\n ? 'endAngle' as const\n : 'startAngle' as const\n )\n )\n : (isHorizontalOrRadial\n ? ((layout as RectLayout).height >= 0 ? 'bottom' as const : 'top' as const)\n : ((layout as RectLayout).width >= 0 ? 'right' as const : 'left' as const));\n\n const labelStatesModels = getLabelStatesModels(itemModel);\n\n setLabelStyle(\n el, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(seriesModel.getData(), dataIndex),\n inheritColor: style.fill as ColorString,\n defaultOpacity: style.opacity,\n defaultOutsidePosition: labelPositionOutside as BuiltinTextPosition\n }\n );\n\n const label = el.getTextContent();\n if (isPolar && label) {\n const position = itemModel.get(['label', 'position']);\n el.textConfig.inside = position === 'middle' ? true : null;\n setSectorTextRotation(\n el as Sector,\n position === 'outside' ? labelPositionOutside : position,\n createPolarPositionMapping(isHorizontalOrRadial),\n itemModel.get(['label', 'rotate'])\n );\n }\n\n setLabelValueAnimation(\n label,\n labelStatesModels,\n seriesModel.getRawValue(dataIndex) as ParsedValue,\n (value: number) => getDefaultInterpolatedLabel(data, value)\n );\n\n const emphasisModel = itemModel.getModel(['emphasis']);\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n setStatesStylesFromModel(el, itemModel);\n\n if (isZeroOnPolar(layout as SectorLayout)) {\n el.style.fill = 'none';\n el.style.stroke = 'none';\n each(el.states, (state) => {\n if (state.style) {\n state.style.fill = state.style.stroke = 'none';\n }\n });\n }\n}\n\n// In case width or height are too small.\nfunction getLineWidth(\n itemModel: Model,\n rawLayout: RectLayout\n) {\n // Has no border.\n const borderColor = itemModel.get(['itemStyle', 'borderColor']);\n if (!borderColor || borderColor === 'none') {\n return 0;\n }\n const lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0;\n // width or height may be NaN for empty data\n const width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width);\n const height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height);\n return Math.min(lineWidth, width, height);\n}\n\nclass LagePathShape {\n points: ArrayLike;\n}\ninterface LargePathProps extends PathProps {\n shape?: LagePathShape\n}\nclass LargePath extends Path {\n type = 'largeBar';\n\n shape: LagePathShape;\n;\n __startPoint: number[];\n __baseDimIdx: number;\n __largeDataIndices: ArrayLike;\n __barWidth: number;\n\n constructor(opts?: LargePathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LagePathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LagePathShape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n const points = shape.points;\n const startPoint = this.__startPoint;\n const baseDimIdx = this.__baseDimIdx;\n\n for (let i = 0; i < points.length; i += 2) {\n startPoint[baseDimIdx] = points[i + baseDimIdx];\n ctx.moveTo(startPoint[0], startPoint[1]);\n ctx.lineTo(points[i], points[i + 1]);\n }\n }\n}\n\nfunction createLarge(\n seriesModel: BarSeriesModel,\n group: Group,\n incremental?: boolean\n) {\n // TODO support polar\n const data = seriesModel.getData();\n const startPoint = [];\n const baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;\n startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');\n\n const largeDataIndices = data.getLayout('largeDataIndices');\n const barWidth = data.getLayout('barWidth');\n\n const backgroundModel = seriesModel.getModel('backgroundStyle');\n const drawBackground = seriesModel.get('showBackground', true);\n\n if (drawBackground) {\n const points = data.getLayout('largeBackgroundPoints');\n const backgroundStartPoint: number[] = [];\n backgroundStartPoint[1 - baseDimIdx] = data.getLayout('backgroundStart');\n\n const bgEl = new LargePath({\n shape: {points: points},\n incremental: !!incremental,\n silent: true,\n z2: 0\n });\n bgEl.__startPoint = backgroundStartPoint;\n bgEl.__baseDimIdx = baseDimIdx;\n bgEl.__largeDataIndices = largeDataIndices;\n bgEl.__barWidth = barWidth;\n setLargeBackgroundStyle(bgEl, backgroundModel, data);\n group.add(bgEl);\n }\n\n const el = new LargePath({\n shape: {points: data.getLayout('largePoints')},\n incremental: !!incremental\n });\n el.__startPoint = startPoint;\n el.__baseDimIdx = baseDimIdx;\n el.__largeDataIndices = largeDataIndices;\n el.__barWidth = barWidth;\n group.add(el);\n setLargeStyle(el, seriesModel, data);\n\n // Enable tooltip and user mouse/touch event handlers.\n getECData(el).seriesIndex = seriesModel.seriesIndex;\n\n if (!seriesModel.get('silent')) {\n el.on('mousedown', largePathUpdateDataIndex);\n el.on('mousemove', largePathUpdateDataIndex);\n }\n}\n\n// Use throttle to avoid frequently traverse to find dataIndex.\nconst largePathUpdateDataIndex = throttle(function (this: LargePath, event: ZRElementEvent) {\n const largePath = this;\n const dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);\n getECData(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null;\n}, 30, false);\n\nfunction largePathFindDataIndex(largePath: LargePath, x: number, y: number) {\n const baseDimIdx = largePath.__baseDimIdx;\n const valueDimIdx = 1 - baseDimIdx;\n const points = largePath.shape.points;\n const largeDataIndices = largePath.__largeDataIndices;\n const barWidthHalf = Math.abs(largePath.__barWidth / 2);\n const startValueVal = largePath.__startPoint[valueDimIdx];\n\n _eventPos[0] = x;\n _eventPos[1] = y;\n const pointerBaseVal = _eventPos[baseDimIdx];\n const pointerValueVal = _eventPos[1 - baseDimIdx];\n const baseLowerBound = pointerBaseVal - barWidthHalf;\n const baseUpperBound = pointerBaseVal + barWidthHalf;\n\n for (let i = 0, len = points.length / 2; i < len; i++) {\n const ii = i * 2;\n const barBaseVal = points[ii + baseDimIdx];\n const barValueVal = points[ii + valueDimIdx];\n if (\n barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound\n && (\n startValueVal <= barValueVal\n ? (pointerValueVal >= startValueVal && pointerValueVal <= barValueVal)\n : (pointerValueVal >= barValueVal && pointerValueVal <= startValueVal)\n )\n ) {\n return largeDataIndices[i];\n }\n }\n\n return -1;\n}\n\nfunction setLargeStyle(\n el: LargePath,\n seriesModel: BarSeriesModel,\n data: SeriesData\n) {\n const globalStyle = data.getVisual('style');\n\n el.useStyle(extend({}, globalStyle));\n // Use stroke instead of fill.\n el.style.fill = null;\n el.style.stroke = globalStyle.fill;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction setLargeBackgroundStyle(\n el: LargePath,\n backgroundModel: Model,\n data: SeriesData\n) {\n const borderColor = backgroundModel.get('borderColor') || backgroundModel.get('color');\n const itemStyle = backgroundModel.getItemStyle();\n\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n el.style.lineWidth = data.getLayout('barWidth') as number;\n}\n\nfunction createBackgroundShape(\n isHorizontalOrRadial: boolean,\n layout: SectorLayout | RectLayout,\n coord: CoordSysOfBar\n): SectorShape | RectShape {\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n const rectShape = layout as RectShape;\n const coordLayout = coord.getArea();\n return {\n x: isHorizontalOrRadial ? rectShape.x : coordLayout.x,\n y: isHorizontalOrRadial ? coordLayout.y : rectShape.y,\n width: isHorizontalOrRadial ? rectShape.width : coordLayout.width,\n height: isHorizontalOrRadial ? coordLayout.height : rectShape.height\n } as RectShape;\n }\n else {\n const coordLayout = coord.getArea();\n const sectorShape = layout as SectorShape;\n return {\n cx: coordLayout.cx,\n cy: coordLayout.cy,\n r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0,\n r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r,\n startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0,\n endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2\n } as SectorShape;\n }\n}\n\nfunction createBackgroundEl(\n coord: CoordSysOfBar,\n isHorizontalOrRadial: boolean,\n layout: SectorLayout | RectLayout\n): Rect | Sector {\n const ElementClz = coord.type === 'polar' ? Sector : Rect;\n return new ElementClz({\n shape: createBackgroundShape(isHorizontalOrRadial, layout, coord) as any,\n silent: true,\n z2: 0\n });\n}\n\nexport default BarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {layout, largeLayout} from '../../layout/barGrid';\nimport dataSample from '../../processor/dataSample';\n\nimport BarSeries from './BarSeries';\nimport BarView from './BarView';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(BarView);\n registers.registerSeriesModel(BarSeries);\n\n registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar'));\n // Use higher prority to avoid to be blocked by other overall layout, which do not\n // only exist in this module, but probably also exist in other modules, like `barPolar`.\n registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout);\n\n // Down sample after filter\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.STATISTIC,\n dataSample('bar')\n );\n\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n registers.registerAction({\n type: 'changeAxisOrder',\n event: 'changeAxisOrder',\n update: 'update'\n }, function (payload, ecModel) {\n const componentType = payload.componentType || 'series';\n\n ecModel.eachComponent(\n { mainType: componentType, query: payload },\n function (componentModel) {\n if (payload.sortInfo) {\n (componentModel as CartesianAxisModel).axis.setCategorySortInfo(payload.sortInfo);\n }\n }\n );\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parsePercent, linearMap } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport PieSeriesModel from './PieSeries';\nimport { SectorShape } from 'zrender/src/graphic/shape/Sector';\n\nconst PI2 = Math.PI * 2;\nconst RADIAN = Math.PI / 180;\n\nfunction getViewRect(seriesModel: PieSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nexport function getBasicPieLayout(seriesModel: PieSeriesModel, api: ExtensionAPI):\n Pick {\n const viewRect = getViewRect(seriesModel, api);\n\n let center = seriesModel.get('center');\n let radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n const width = parsePercent(viewRect.width, api.getWidth());\n const height = parsePercent(viewRect.height, api.getHeight());\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], width) + viewRect.x;\n const cy = parsePercent(center[1], height) + viewRect.y;\n const r0 = parsePercent(radius[0], size / 2);\n const r = parsePercent(radius[1], size / 2);\n return {\n cx,\n cy,\n r0,\n r\n };\n}\n\nexport default function pieLayout(\n seriesType: 'pie',\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel: PieSeriesModel) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const viewRect = getViewRect(seriesModel, api);\n\n const { cx, cy, r, r0 } = getBasicPieLayout(seriesModel, api);\n\n const startAngle = -seriesModel.get('startAngle') * RADIAN;\n\n const minAngle = seriesModel.get('minAngle') * RADIAN;\n\n let validDataCount = 0;\n data.each(valueDim, function (value: number) {\n !isNaN(value) && validDataCount++;\n });\n\n const sum = data.getSum(valueDim);\n // Sum may be 0\n let unitRadian = Math.PI / (sum || validDataCount) * 2;\n\n const clockwise = seriesModel.get('clockwise');\n\n const roseType = seriesModel.get('roseType');\n const stillShowZeroSum = seriesModel.get('stillShowZeroSum');\n\n // [0...max]\n const extent = data.getDataExtent(valueDim);\n extent[0] = 0;\n\n // In the case some sector angle is smaller than minAngle\n let restAngle = PI2;\n let valueSumLargerThanMinAngle = 0;\n\n let currentAngle = startAngle;\n const dir = clockwise ? 1 : -1;\n\n data.setLayout({ viewRect, r });\n\n data.each(valueDim, function (value: number, idx: number) {\n let angle;\n if (isNaN(value)) {\n data.setItemLayout(idx, {\n angle: NaN,\n startAngle: NaN,\n endAngle: NaN,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType\n ? NaN\n : r\n });\n return;\n }\n\n // FIXME \u517C\u5BB9 2.0 \u4F46\u662F roseType \u662F area \u7684\u65F6\u5019\u624D\u662F\u8FD9\u6837\uFF1F\n if (roseType !== 'area') {\n angle = (sum === 0 && stillShowZeroSum)\n ? unitRadian : (value * unitRadian);\n }\n else {\n angle = PI2 / validDataCount;\n }\n\n if (angle < minAngle) {\n angle = minAngle;\n restAngle -= minAngle;\n }\n else {\n valueSumLargerThanMinAngle += value;\n }\n\n const endAngle = currentAngle + dir * angle;\n data.setItemLayout(idx, {\n angle: angle,\n startAngle: currentAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType\n ? linearMap(value, extent, [r0, r])\n : r\n });\n\n currentAngle = endAngle;\n });\n\n // Some sector is constrained by minAngle\n // Rest sectors needs recalculate angle\n if (restAngle < PI2 && validDataCount) {\n // Average the angle if rest angle is not enough after all angles is\n // Constrained by minAngle\n if (restAngle <= 1e-3) {\n const angle = PI2 / validDataCount;\n data.each(valueDim, function (value: number, idx: number) {\n if (!isNaN(value)) {\n const layout = data.getItemLayout(idx);\n layout.angle = angle;\n layout.startAngle = startAngle + dir * idx * angle;\n layout.endAngle = startAngle + dir * (idx + 1) * angle;\n }\n });\n }\n else {\n unitRadian = restAngle / valueSumLargerThanMinAngle;\n currentAngle = startAngle;\n data.each(valueDim, function (value: number, idx: number) {\n if (!isNaN(value)) {\n const layout = data.getItemLayout(idx);\n const angle = layout.angle === minAngle\n ? minAngle : value * unitRadian;\n layout.startAngle = currentAngle;\n layout.endAngle = currentAngle + dir * angle;\n currentAngle += dir * angle;\n }\n });\n }\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../util/types';\n\nexport default function dataFilter(seriesType: string): StageHandler {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n if (!legendModels || !legendModels.length) {\n return;\n }\n const data = seriesModel.getData();\n data.filterSelf(function (idx) {\n const name = data.getName(idx);\n // If in any legend component the status is not selected.\n for (let i = 0; i < legendModels.length; i++) {\n // @ts-ignore FIXME: LegendModel\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n return true;\n });\n }\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME emphasis label position is not same with normal label position\nimport {parsePercent} from '../../util/number';\nimport PieSeriesModel, { PieSeriesOption, PieDataItemOption } from './PieSeries';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { HorizontalAlign, ZRTextAlign } from '../../util/types';\nimport { Sector, Polyline, Point } from '../../util/graphic';\nimport ZRText from 'zrender/src/graphic/Text';\nimport BoundingRect, {RectLike} from 'zrender/src/core/BoundingRect';\nimport { each } from 'zrender/src/core/util';\nimport { limitTurnAngle, limitSurfaceAngle } from '../../label/labelGuideHelper';\nimport { shiftLayoutOnY } from '../../label/labelLayoutHelper';\n\nconst RADIAN = Math.PI / 180;\n\ninterface LabelLayout {\n label: ZRText\n labelLine: Polyline\n position: PieSeriesOption['label']['position']\n len: number\n len2: number\n minTurnAngle: number\n maxSurfaceAngle: number\n surfaceNormal: Point\n linePoints: VectorArray[]\n textAlign: HorizontalAlign\n labelDistance: number\n labelAlignTo: PieSeriesOption['label']['alignTo']\n edgeDistance: number\n bleedMargin: PieSeriesOption['label']['bleedMargin']\n rect: BoundingRect\n}\n\nfunction adjustSingleSide(\n list: LabelLayout[],\n cx: number,\n cy: number,\n r: number,\n dir: -1 | 1,\n viewWidth: number,\n viewHeight: number,\n viewLeft: number,\n viewTop: number,\n farthestX: number\n) {\n if (list.length < 2) {\n return;\n }\n\n interface SemiInfo {\n list: LabelLayout[]\n rB: number\n maxY: number\n };\n\n function recalculateXOnSemiToAlignOnEllipseCurve(semi: SemiInfo) {\n const rB = semi.rB;\n const rB2 = rB * rB;\n for (let i = 0; i < semi.list.length; i++) {\n const item = semi.list[i];\n const dy = Math.abs(item.label.y - cy);\n // horizontal r is always same with original r because x is not changed.\n const rA = r + item.len;\n const rA2 = rA * rA;\n // Use ellipse implicit function to calculate x\n const dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);\n item.label.x = cx + (dx + item.len2) * dir;\n }\n }\n\n // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.\n function recalculateX(items: LabelLayout[]) {\n // Extremes of\n const topSemi = { list: [], maxY: 0} as SemiInfo;\n const bottomSemi = { list: [], maxY: 0 } as SemiInfo;\n\n for (let i = 0; i < items.length; i++) {\n if (items[i].labelAlignTo !== 'none') {\n continue;\n }\n const item = items[i];\n const semi = item.label.y > cy ? bottomSemi : topSemi;\n const dy = Math.abs(item.label.y - cy);\n if (dy > semi.maxY) {\n const dx = item.label.x - cx - item.len2 * dir;\n // horizontal r is always same with original r because x is not changed.\n const rA = r + item.len;\n // Canculate rB based on the topest / bottemest label.\n const rB = Math.abs(dx) < rA\n ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA))\n : rA;\n semi.rB = rB;\n semi.maxY = dy;\n }\n semi.list.push(item);\n }\n\n recalculateXOnSemiToAlignOnEllipseCurve(topSemi);\n recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);\n }\n\n const len = list.length;\n for (let i = 0; i < len; i++) {\n if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {\n const dx = list[i].label.x - farthestX;\n list[i].linePoints[1][0] += dx;\n list[i].label.x = farthestX;\n }\n }\n\n if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {\n recalculateX(list);\n }\n}\n\nfunction avoidOverlap(\n labelLayoutList: LabelLayout[],\n cx: number,\n cy: number,\n r: number,\n viewWidth: number,\n viewHeight: number,\n viewLeft: number,\n viewTop: number\n) {\n const leftList = [];\n const rightList = [];\n let leftmostX = Number.MAX_VALUE;\n let rightmostX = -Number.MAX_VALUE;\n for (let i = 0; i < labelLayoutList.length; i++) {\n const label = labelLayoutList[i].label;\n if (isPositionCenter(labelLayoutList[i])) {\n continue;\n }\n if (label.x < cx) {\n leftmostX = Math.min(leftmostX, label.x);\n leftList.push(labelLayoutList[i]);\n }\n else {\n rightmostX = Math.max(rightmostX, label.x);\n rightList.push(labelLayoutList[i]);\n }\n }\n\n adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);\n adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);\n\n for (let i = 0; i < labelLayoutList.length; i++) {\n const layout = labelLayoutList[i];\n const label = layout.label;\n if (isPositionCenter(layout)) {\n continue;\n }\n\n const linePoints = layout.linePoints;\n if (linePoints) {\n const isAlignToEdge = layout.labelAlignTo === 'edge';\n\n let realTextWidth = layout.rect.width;\n let targetTextWidth;\n if (isAlignToEdge) {\n if (label.x < cx) {\n targetTextWidth = linePoints[2][0] - layout.labelDistance\n - viewLeft - layout.edgeDistance;\n }\n else {\n targetTextWidth = viewLeft + viewWidth - layout.edgeDistance\n - linePoints[2][0] - layout.labelDistance;\n }\n }\n else {\n if (label.x < cx) {\n targetTextWidth = label.x - viewLeft - layout.bleedMargin;\n }\n else {\n targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;\n }\n }\n if (targetTextWidth < layout.rect.width) {\n // TODOTODO\n // layout.text = textContain.truncateText(layout.text, targetTextWidth, layout.font);\n layout.label.style.width = targetTextWidth;\n if (layout.labelAlignTo === 'edge') {\n realTextWidth = targetTextWidth;\n // realTextWidth = textContain.getWidth(layout.text, layout.font);\n }\n }\n\n const dist = linePoints[1][0] - linePoints[2][0];\n if (isAlignToEdge) {\n if (label.x < cx) {\n linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;\n }\n else {\n linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance\n - realTextWidth - layout.labelDistance;\n }\n }\n else {\n if (label.x < cx) {\n linePoints[2][0] = label.x + layout.labelDistance;\n }\n else {\n linePoints[2][0] = label.x - layout.labelDistance;\n }\n linePoints[1][0] = linePoints[2][0] + dist;\n }\n linePoints[1][1] = linePoints[2][1] = label.y;\n }\n }\n}\n\nfunction isPositionCenter(sectorShape: LabelLayout) {\n // Not change x for center label\n return sectorShape.position === 'center';\n}\n\nexport default function pieLabelLayout(\n seriesModel: PieSeriesModel\n) {\n const data = seriesModel.getData();\n const labelLayoutList: LabelLayout[] = [];\n let cx;\n let cy;\n let hasLabelRotate = false;\n const minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN;\n\n const viewRect = data.getLayout('viewRect') as RectLike;\n const r = data.getLayout('r') as number;\n const viewWidth = viewRect.width;\n const viewLeft = viewRect.x;\n const viewTop = viewRect.y;\n const viewHeight = viewRect.height;\n\n function setNotShow(el: {ignore: boolean}) {\n el.ignore = true;\n }\n\n function isLabelShown(label: ZRText) {\n if (!label.ignore) {\n return true;\n }\n for (const key in label.states) {\n if (label.states[key].ignore === false) {\n return true;\n }\n }\n return false;\n }\n\n data.each(function (idx) {\n const sector = data.getItemGraphicEl(idx) as Sector;\n const sectorShape = sector.shape;\n const label = sector.getTextContent();\n const labelLine = sector.getTextGuideLine();\n\n const itemModel = data.getItemModel(idx);\n const labelModel = itemModel.getModel('label');\n // Use position in normal or emphasis\n const labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);\n const labelDistance = labelModel.get('distanceToLabelLine');\n const labelAlignTo = labelModel.get('alignTo');\n const edgeDistance = parsePercent(labelModel.get('edgeDistance'), viewWidth);\n const bleedMargin = labelModel.get('bleedMargin');\n\n const labelLineModel = itemModel.getModel('labelLine');\n let labelLineLen = labelLineModel.get('length');\n labelLineLen = parsePercent(labelLineLen, viewWidth);\n let labelLineLen2 = labelLineModel.get('length2');\n labelLineLen2 = parsePercent(labelLineLen2, viewWidth);\n\n if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {\n each(label.states, setNotShow);\n label.ignore = true;\n return;\n }\n\n if (!isLabelShown(label)) {\n return;\n }\n\n const midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;\n const nx = Math.cos(midAngle);\n const ny = Math.sin(midAngle);\n\n let textX;\n let textY;\n let linePoints;\n let textAlign: ZRTextAlign;\n\n cx = sectorShape.cx;\n cy = sectorShape.cy;\n\n\n const isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';\n if (labelPosition === 'center') {\n textX = sectorShape.cx;\n textY = sectorShape.cy;\n textAlign = 'center';\n }\n else {\n const x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;\n const y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;\n\n textX = x1 + nx * 3;\n textY = y1 + ny * 3;\n\n if (!isLabelInside) {\n // For roseType\n const x2 = x1 + nx * (labelLineLen + r - sectorShape.r);\n const y2 = y1 + ny * (labelLineLen + r - sectorShape.r);\n const x3 = x2 + ((nx < 0 ? -1 : 1) * labelLineLen2);\n const y3 = y2;\n\n if (labelAlignTo === 'edge') {\n // Adjust textX because text align of edge is opposite\n textX = nx < 0\n ? viewLeft + edgeDistance\n : viewLeft + viewWidth - edgeDistance;\n }\n else {\n textX = x3 + (nx < 0 ? -labelDistance : labelDistance);\n }\n textY = y3;\n linePoints = [[x1, y1], [x2, y2], [x3, y3]];\n }\n\n textAlign = isLabelInside\n ? 'center'\n : (labelAlignTo === 'edge'\n ? (nx > 0 ? 'right' : 'left')\n : (nx > 0 ? 'left' : 'right'));\n }\n\n let labelRotate;\n const rotate = labelModel.get('rotate');\n if (typeof rotate === 'number') {\n labelRotate = rotate * (Math.PI / 180);\n }\n else if (labelPosition === 'center') {\n labelRotate = 0;\n }\n else {\n const radialAngle = nx < 0 ? -midAngle + Math.PI : -midAngle;\n if (rotate === 'radial' || rotate === true) {\n labelRotate = radialAngle;\n }\n else if (rotate === 'tangential'\n && labelPosition !== 'outside'\n && labelPosition !== 'outer'\n ) {\n labelRotate = radialAngle + Math.PI / 2;\n if (labelRotate > Math.PI / 2) {\n labelRotate -= Math.PI;\n }\n }\n else {\n labelRotate = 0;\n }\n }\n\n hasLabelRotate = !!labelRotate;\n\n label.x = textX;\n label.y = textY;\n label.rotation = labelRotate;\n\n label.setStyle({\n verticalAlign: 'middle'\n });\n\n // Not sectorShape the inside label\n if (!isLabelInside) {\n const textRect = label.getBoundingRect().clone();\n textRect.applyTransform(label.getComputedTransform());\n // Text has a default 1px stroke. Exclude this.\n const margin = (label.style.margin || 0) + 2.1;\n textRect.y -= margin / 2;\n textRect.height += margin;\n\n labelLayoutList.push({\n label,\n labelLine,\n position: labelPosition,\n len: labelLineLen,\n len2: labelLineLen2,\n minTurnAngle: labelLineModel.get('minTurnAngle'),\n maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),\n surfaceNormal: new Point(nx, ny),\n linePoints: linePoints,\n textAlign: textAlign,\n labelDistance: labelDistance,\n labelAlignTo: labelAlignTo,\n edgeDistance: edgeDistance,\n bleedMargin: bleedMargin,\n rect: textRect\n });\n }\n else {\n label.setStyle({\n align: textAlign\n });\n const selectState = label.states.select;\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n sector.setTextConfig({\n inside: isLabelInside\n });\n });\n\n if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {\n avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);\n }\n\n for (let i = 0; i < labelLayoutList.length; i++) {\n const layout = labelLayoutList[i];\n const label = layout.label;\n const labelLine = layout.labelLine;\n const notShowLabel = isNaN(label.x) || isNaN(label.y);\n if (label) {\n label.setStyle({\n align: layout.textAlign\n });\n if (notShowLabel) {\n each(label.states, setNotShow);\n label.ignore = true;\n }\n const selectState = label.states.select;\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n if (labelLine) {\n const linePoints = layout.linePoints;\n if (notShowLabel || !linePoints) {\n each(labelLine.states, setNotShow);\n labelLine.ignore = true;\n }\n else {\n limitTurnAngle(linePoints, layout.minTurnAngle);\n limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);\n\n labelLine.setShape({ points: linePoints });\n\n // Set the anchor to the midpoint of sector\n label.__hostTarget.textGuideLineConfig = {\n anchor: new Point(linePoints[0][0], linePoints[0][1])\n };\n }\n }\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../../model/Model';\nimport Sector from 'zrender/src/graphic/shape/Sector';\nimport { isArray } from 'zrender/src/core/util';\nimport { parsePercent } from 'zrender/src/contain/text';\n\nexport function getSectorCornerRadius(\n model: Model<{ borderRadius?: string | number | (string | number)[] }>,\n shape: Pick,\n zeroIfNull?: boolean\n) {\n let cornerRadius = model.get('borderRadius');\n if (cornerRadius == null) {\n return zeroIfNull ? {innerCornerRadius: 0, cornerRadius: 0} : null;\n }\n if (!isArray(cornerRadius)) {\n cornerRadius = [cornerRadius, cornerRadius];\n }\n return {\n innerCornerRadius: parsePercent(cornerRadius[0], shape.r0),\n cornerRadius: parsePercent(cornerRadius[1], shape.r)\n };\n}\n", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { extend, retrieve3 } from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, ColorString } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport PieSeriesModel, {PieDataItemOption} from './PieSeries';\nimport labelLayout from './labelLayout';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport {saveOldStyle} from '../../animation/basicTrasition';\nimport { getBasicPieLayout } from './pieLayout';\n\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\nclass PiePiece extends graphic.Sector {\n\n constructor(data: SeriesData, idx: number, startAngle: number) {\n super();\n\n this.z2 = 2;\n\n const text = new graphic.Text();\n\n this.setTextContent(text);\n\n this.updateData(data, idx, startAngle, true);\n }\n\n updateData(data: SeriesData, idx: number, startAngle?: number, firstCreate?: boolean): void {\n const sector = this;\n\n const seriesModel = data.hostModel as PieSeriesModel;\n const itemModel = data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n const layout = data.getItemLayout(idx) as graphic.Sector['shape'];\n // cornerRadius & innerCornerRadius doesn't exist in the item layout. Use `0` if null value is specified.\n // see `setItemLayout` in `pieLayout.ts`.\n const sectorShape = extend(\n getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true),\n layout\n );\n\n // Ignore NaN data.\n if (isNaN(sectorShape.startAngle)) {\n // Use NaN shape to avoid drawing shape.\n sector.setShape(sectorShape);\n return;\n }\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n\n const animationType = seriesModel.getShallow('animationType');\n if (animationType === 'scale') {\n sector.shape.r = layout.r0;\n graphic.initProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, idx);\n }\n // Expansion\n else {\n if (startAngle != null) {\n sector.setShape({ startAngle, endAngle: startAngle });\n graphic.initProps(sector, {\n shape: {\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n else {\n sector.shape.endAngle = layout.startAngle;\n graphic.updateProps(sector, {\n shape: {\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n }\n }\n else {\n saveOldStyle(sector);\n // Transition animation from the old shape\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel, idx);\n }\n\n sector.useStyle(data.getItemVisual(idx, 'style'));\n\n setStatesStylesFromModel(sector, itemModel);\n\n const midAngle = (layout.startAngle + layout.endAngle) / 2;\n const offset = seriesModel.get('selectedOffset');\n const dx = Math.cos(midAngle) * offset;\n const dy = Math.sin(midAngle) * offset;\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._updateLabel(seriesModel, data, idx);\n\n sector.ensureState('emphasis').shape = {\n r: layout.r + (emphasisModel.get('scale')\n ? (emphasisModel.get('scaleSize') || 0) : 0),\n ...getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout)\n };\n extend(sector.ensureState('select'), {\n x: dx,\n y: dy,\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n });\n extend(sector.ensureState('blur'), {\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n });\n\n const labelLine = sector.getTextGuideLine();\n const labelText = sector.getTextContent();\n\n labelLine && extend(labelLine.ensureState('select'), {\n x: dx,\n y: dy\n });\n // TODO: needs dx, dy in zrender?\n extend(labelText.ensureState('select'), {\n x: dx,\n y: dy\n });\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n private _updateLabel(seriesModel: PieSeriesModel, data: SeriesData, idx: number): void {\n const sector = this;\n const itemModel = data.getItemModel(idx);\n const labelLineModel = itemModel.getModel('labelLine');\n\n const style = data.getItemVisual(idx, 'style');\n const visualColor = style && style.fill as ColorString;\n const visualOpacity = style && style.opacity;\n\n setLabelStyle(\n sector,\n getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel as PieSeriesModel,\n labelDataIndex: idx,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n defaultText: seriesModel.getFormattedLabel(idx, 'normal')\n || data.getName(idx)\n }\n );\n const labelText = sector.getTextContent();\n\n // Set textConfig on sector.\n sector.setTextConfig({\n // reset position, rotation\n position: null,\n rotation: null\n });\n\n // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n labelText.attr({\n z2: 10\n });\n\n const labelPosition = seriesModel.get(['label', 'position']);\n if (labelPosition !== 'outside' && labelPosition !== 'outer') {\n sector.removeTextGuideLine();\n }\n else {\n let polyline = this.getTextGuideLine();\n if (!polyline) {\n polyline = new graphic.Polyline();\n this.setTextGuideLine(polyline);\n }\n\n // Default use item visual color\n setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {\n stroke: visualColor,\n opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)\n });\n }\n }\n}\n\n\n// Pie view\nclass PieView extends ChartView {\n\n static type = 'pie';\n\n ignoreLabelLineUpdate = true;\n\n private _sectorGroup: graphic.Group;\n private _data: SeriesData;\n private _emptyCircleSector: graphic.Sector;\n\n init(): void {\n const sectorGroup = new graphic.Group();\n this._sectorGroup = sectorGroup;\n }\n\n render(seriesModel: PieSeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n const data = seriesModel.getData();\n\n const oldData = this._data;\n const group = this.group;\n\n let startAngle: number;\n // First render\n if (!oldData && data.count() > 0) {\n let shape = data.getItemLayout(0) as graphic.Sector['shape'];\n for (let s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {\n shape = data.getItemLayout(s);\n }\n if (shape) {\n startAngle = shape.startAngle;\n }\n }\n\n // remove empty-circle if it exists\n if (this._emptyCircleSector) {\n group.remove(this._emptyCircleSector);\n }\n // when all data are filtered, show lightgray empty circle\n if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {\n const sector = new graphic.Sector({\n shape: getBasicPieLayout(seriesModel, api)\n });\n sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());\n this._emptyCircleSector = sector;\n group.add(sector);\n }\n\n data.diff(oldData)\n .add(function (idx) {\n const piePiece = new PiePiece(data, idx, startAngle);\n\n data.setItemGraphicEl(idx, piePiece);\n\n group.add(piePiece);\n })\n .update(function (newIdx, oldIdx) {\n const piePiece = oldData.getItemGraphicEl(oldIdx) as PiePiece;\n\n piePiece.updateData(data, newIdx, startAngle);\n\n piePiece.off('click');\n\n group.add(piePiece);\n data.setItemGraphicEl(newIdx, piePiece);\n })\n .remove(function (idx) {\n const piePiece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piePiece, seriesModel, idx);\n })\n .execute();\n\n labelLayout(seriesModel);\n\n // Always use initial animation.\n if (seriesModel.get('animationTypeUpdate') !== 'expansion') {\n this._data = data;\n }\n }\n\n dispose() {}\n\n containPoint(point: number[], seriesModel: PieSeriesModel): boolean {\n const data = seriesModel.getData();\n const itemLayout = data.getItemLayout(0);\n if (itemLayout) {\n const dx = point[0] - itemLayout.cx;\n const dy = point[1] - itemLayout.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n }\n}\n\nexport default PieView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createDimensions, {CreateDimensionsParams} from '../../data/helper/createDimensions';\nimport SeriesData from '../../data/SeriesData';\nimport {extend, isArray} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\n\n/**\n * [Usage]:\n * (1)\n * createListSimply(seriesModel, ['value']);\n * (2)\n * createListSimply(seriesModel, {\n * coordDimensions: ['value'],\n * dimensionsCount: 5\n * });\n */\nexport default function createSeriesDataSimply(\n seriesModel: SeriesModel,\n opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'],\n nameList?: string[]\n): SeriesData {\n opt = isArray(opt) && {\n coordDimensions: opt\n } || extend({\n encodeDefine: seriesModel.getEncode()\n }, opt);\n\n const source = seriesModel.getSource();\n\n const { dimensionList } = createDimensions(source, opt as CreateDimensionsParams);\n\n const list = new SeriesData(dimensionList, seriesModel);\n list.initData(source, nameList);\n\n return list;\n}\n", "import SeriesData from '../data/SeriesData';\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * LegendVisualProvider is an bridge that pick encoded color from data and\n * provide to the legend component.\n */\nclass LegendVisualProvider {\n\n private _getDataWithEncodedVisual: () => SeriesData;\n private _getRawData: () => SeriesData;\n\n constructor(\n // Function to get data after filtered. It stores all the encoding info\n getDataWithEncodedVisual: () => SeriesData,\n // Function to get raw data before filtered.\n getRawData: () => SeriesData\n ) {\n this._getDataWithEncodedVisual = getDataWithEncodedVisual;\n this._getRawData = getRawData;\n }\n\n getAllNames(): string[] {\n const rawData = this._getRawData();\n // We find the name from the raw data. In case it's filtered by the legend component.\n // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.\n return rawData.mapArray(rawData.getName);\n }\n\n containName(name: string): boolean {\n const rawData = this._getRawData();\n return rawData.indexOfName(name) >= 0;\n }\n\n indexOfName(name: string): number {\n // Only get data when necessary.\n // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.\n // Invoking Series#getData immediately will throw an error.\n const dataWithEncodedVisual = this._getDataWithEncodedVisual();\n return dataWithEncodedVisual.indexOfName(name);\n }\n\n getItemVisual(dataIndex: number, key: string): any {\n // Get encoded visual properties from final filtered data.\n const dataWithEncodedVisual = this._getDataWithEncodedVisual();\n return dataWithEncodedVisual.getItemVisual(dataIndex, key as any);\n }\n}\n\nexport default LegendVisualProvider;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { getPercentWithPrecision } from '../../util/number';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n CallbackDataParams,\n CircleLayoutOptionMixin,\n LabelLineOption,\n ItemStyleOption,\n BoxLayoutOptionMixin,\n OptionDataValueNumeric,\n SeriesEncodeOptionMixin,\n OptionDataItemObject,\n StatesOptionMixin,\n SeriesLabelOption,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\n\ninterface PieItemStyleOption extends ItemStyleOption {\n // can be 10\n // which means that both innerCornerRadius and outerCornerRadius are 10\n // can also be an array [20, 10]\n // which means that innerCornerRadius is 20\n // and outerCornerRadius is 10\n // can also be a string or string array, such as ['20%', '50%']\n // which means that innerCornerRadius is 20% of the innerRadius\n // and outerCornerRadius is half of outerRadius.\n borderRadius?: (number | string)[] | number | string\n}\n\nexport interface PieStateOption {\n // TODO: TYPE Color Callback\n itemStyle?: PieItemStyleOption\n label?: PieLabelOption\n labelLine?: PieLabelLineOption\n}\ninterface PieLabelOption extends Omit {\n rotate?: number | boolean | 'radial' | 'tangential'\n alignTo?: 'none' | 'labelLine' | 'edge'\n edgeDistance?: string | number\n /**\n * @deprecated Use `edgeDistance` instead\n */\n margin?: string | number\n bleedMargin?: number\n distanceToLabelLine?: number\n\n position?: SeriesLabelOption['position'] | 'outer' | 'inner' | 'center' | 'outside'\n}\n\ninterface PieLabelLineOption extends LabelLineOption {\n /**\n * Max angle between labelLine and surface normal.\n * 0 - 180\n */\n maxSurfaceAngle?: number\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n scaleSize?: number\n }\n}\n\nexport interface PieDataItemOption extends\n OptionDataItemObject,\n PieStateOption, StatesOptionMixin {\n\n cursor?: string\n}\nexport interface PieSeriesOption extends\n Omit, 'labelLine'>, PieStateOption,\n CircleLayoutOptionMixin,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'pie'\n\n roseType?: 'radius' | 'area'\n\n clockwise?: boolean\n startAngle?: number\n minAngle?: number\n minShowLabelAngle?: number\n\n selectedOffset?: number\n\n avoidLabelOverlap?: boolean\n percentPrecision?: number\n\n stillShowZeroSum?: boolean\n\n animationType?: 'expansion' | 'scale'\n animationTypeUpdate?: 'transition' | 'expansion'\n\n showEmptyCircle?: boolean;\n emptyCircleStyle?: PieItemStyleOption;\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | PieDataItemOption)[]\n}\n\nclass PieSeriesModel extends SeriesModel {\n\n static type = 'series.pie' as const;\n\n /**\n * @overwrite\n */\n init(option: PieSeriesOption): void {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n\n this._defaultLabelLine(option);\n }\n\n /**\n * @overwrite\n */\n mergeOption(): void {\n super.mergeOption.apply(this, arguments as any);\n }\n\n /**\n * @overwrite\n */\n getInitialData(this: PieSeriesModel): SeriesData {\n return createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n }\n\n /**\n * @overwrite\n */\n getDataParams(dataIndex: number): CallbackDataParams {\n const data = this.getData();\n const params = super.getDataParams(dataIndex);\n // FIXME toFixed?\n\n const valueList: number[] = [];\n data.each(data.mapDimension('value'), function (value: number) {\n valueList.push(value);\n });\n\n params.percent = getPercentWithPrecision(\n valueList,\n dataIndex,\n data.hostModel.get('percentPrecision')\n );\n\n params.$vars.push('percent');\n return params;\n }\n\n private _defaultLabelLine(option: PieSeriesOption): void {\n // Extend labelLine emphasis\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\n\n const labelLineNormalOpt = option.labelLine;\n const labelLineEmphasisOpt = option.emphasis.labelLine;\n // Not show label line if `label.normal.show = false`\n labelLineNormalOpt.show = labelLineNormalOpt.show\n && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show\n && option.emphasis.label.show;\n }\n\n static defaultOption: Omit = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n colorBy: 'data',\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // \u9ED8\u8BA4\u987A\u65F6\u9488\n clockwise: true,\n startAngle: 90,\n // \u6700\u5C0F\u89D2\u5EA6\u6539\u4E3A0\n minAngle: 0,\n\n // If the angle of a sector less than `minShowLabelAngle`,\n // the label will not be displayed.\n minShowLabelAngle: 0,\n\n // \u9009\u4E2D\u65F6\u6247\u533A\u504F\u79FB\u91CF\n selectedOffset: 10,\n\n // \u9009\u62E9\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u53EF\u9009single\uFF0Cmultiple\n // selectedMode: false,\n // \u5357\u4E01\u683C\u5C14\u73AB\u7470\u56FE\u6A21\u5F0F\uFF0C'radius'\uFF08\u534A\u5F84\uFF09 | 'area'\uFF08\u9762\u79EF\uFF09\n // roseType: null,\n\n percentPrecision: 2,\n\n // If still show when all data zero.\n stillShowZeroSum: true,\n\n // cursor: null,\n\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: null,\n height: null,\n\n label: {\n // color: 'inherit',\n // If rotate around circle\n rotate: 0,\n show: true,\n overflow: 'truncate',\n // 'outer', 'inside', 'center'\n position: 'outer',\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\n alignTo: 'none',\n // Closest distance between label and chart edge.\n // Works only position is 'outer' and alignTo is 'edge'.\n edgeDistance: '25%',\n // Works only position is 'outer' and alignTo is not 'edge'.\n bleedMargin: 10,\n // Distance between text and label line.\n distanceToLabelLine: 5\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n // \u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n // distance: \u5F53position\u4E3Ainner\u65F6\u6709\u6548\uFF0C\u4E3Alabel\u4F4D\u7F6E\u5230\u5706\u5FC3\u7684\u8DDD\u79BB\u4E0E\u5706\u534A\u5F84(\u73AF\u72B6\u56FE\u4E3A\u5185\u5916\u534A\u5F84\u548C)\u7684\u6BD4\u4F8B\u7CFB\u6570\n },\n // Enabled when label.normal.position is 'outer'\n labelLine: {\n show: true,\n // \u5F15\u5BFC\u7EBF\u4E24\u6BB5\u4E2D\u7684\u7B2C\u4E00\u6BB5\u957F\u5EA6\n length: 15,\n // \u5F15\u5BFC\u7EBF\u4E24\u6BB5\u4E2D\u7684\u7B2C\u4E8C\u6BB5\u957F\u5EA6\n length2: 15,\n smooth: false,\n minTurnAngle: 90,\n maxSurfaceAngle: 90,\n lineStyle: {\n // color: \u5404\u5F02,\n width: 1,\n type: 'solid'\n }\n },\n itemStyle: {\n borderWidth: 1,\n borderJoin: 'round'\n },\n\n showEmptyCircle: true,\n emptyCircleStyle: {\n color: 'lightgray',\n opacity: 1\n },\n\n labelLayout: {\n // Hide the overlapped label.\n hideOverlap: true\n },\n\n emphasis: {\n scale: true,\n scaleSize: 5\n },\n\n // If use strategy to avoid label overlapping\n avoidLabelOverlap: true,\n\n // Animation type. Valid values: expansion, scale\n animationType: 'expansion',\n\n animationDuration: 1000,\n\n // Animation type when update. Valid values: transition, expansion\n animationTypeUpdate: 'transition',\n\n animationEasingUpdate: 'cubicInOut',\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut'\n };\n\n}\n\nexport default PieSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../util/types';\n\nexport default function negativeDataFilter(seriesType: string): StageHandler {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n const data = seriesModel.getData();\n data.filterSelf(function (idx) {\n // handle negative value condition\n const valueDim = data.mapDimension('value');\n const curValue = data.get(valueDim, idx);\n if (typeof curValue === 'number' && !isNaN(curValue) && curValue < 0) {\n return false;\n }\n return true;\n });\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nimport {createLegacyDataSelectAction} from '../../legacy/dataSelectAction';\nimport pieLayout from '../pie/pieLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/src/core/util';\nimport PieView from './PieView';\nimport PieSeriesModel from './PieSeries';\nimport negativeDataFilter from '../../processor/negativeDataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(PieView);\n registers.registerSeriesModel(PieSeriesModel);\n\n createLegacyDataSelectAction('pie', registers.registerAction);\n\n registers.registerLayout(curry(pieLayout, 'pie'));\n registers.registerProcessor(dataFilter('pie'));\n registers.registerProcessor(negativeDataFilter('pie'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n SeriesLargeOptionMixin,\n SeriesStackOptionMixin,\n SymbolOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesEncodeOptionMixin,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\ninterface ScatterStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface ScatterDataItemOption extends SymbolOptionMixin,\n ScatterStateOption, StatesOptionMixin,\n OptionDataItemObject {\n}\n\nexport interface ScatterSeriesOption extends SeriesOption, ScatterStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin,\n SeriesLargeOptionMixin, SeriesStackOptionMixin,\n SymbolOptionMixin, SeriesEncodeOptionMixin {\n type?: 'scatter'\n\n coordinateSystem?: string\n\n cursor?: string\n clip?: boolean\n\n data?: (ScatterDataItemOption | OptionDataValue | OptionDataValue[])[]\n | ArrayLike // Can be a flattern array\n}\n\n\nclass ScatterSeriesModel extends SeriesModel {\n static readonly type = 'series.scatter';\n type = ScatterSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n hasSymbolVisual = true;\n\n getInitialData(option: ScatterSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: true\n });\n }\n\n\n getProgressive() {\n const progressive = this.option.progressive;\n if (progressive == null) {\n // PENDING\n return this.option.large ? 5e3 : this.get('progressive');\n }\n return progressive;\n }\n\n getProgressiveThreshold() {\n const progressiveThreshold = this.option.progressiveThreshold;\n if (progressiveThreshold == null) {\n // PENDING\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\n }\n return progressiveThreshold;\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.point(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: ScatterSeriesOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n symbolSize: 10, // \u56FE\u5F62\u5927\u5C0F\uFF0C\u534A\u5BBD\uFF08\u534A\u5F84\uFF09\u53C2\u6570\uFF0C\u5F53\u56FE\u5F62\u4E3A\u65B9\u5411\u6216\u83F1\u5F62\u5219\u603B\u5BBD\u5EA6\u4E3AsymbolSize * 2\n // symbolRotate: null, // \u56FE\u5F62\u65CB\u8F6C\u63A7\u5236\n\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n // cursor: null,\n\n itemStyle: {\n opacity: 0.8\n // color: \u5404\u5F02\n },\n\n emphasis: {\n scale: true\n },\n\n // If clip the overflow graphics\n // Works on cartesian / polar series\n clip: true,\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n universalTransition: {\n divideShape: 'clone'\n }\n // progressive: null\n };\n\n}\n\nexport default ScatterSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport {createSymbol} from '../../util/symbol';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport SeriesData from '../../data/SeriesData';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport SeriesModel from '../../model/Series';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport { getECData } from '../../util/innerStore';\n\nconst BOOST_SIZE_THRESHOLD = 4;\n\nclass LargeSymbolPathShape {\n points: ArrayLike;\n size: number[];\n}\n\ntype LargeSymbolPathProps = PathProps & {\n shape?: Partial\n startIndex?: number\n endIndex?: number\n};\n\ntype ECSymbol = ReturnType;\n\nclass LargeSymbolPath extends graphic.Path {\n\n shape: LargeSymbolPathShape;\n\n symbolProxy: ECSymbol;\n\n softClipShape: CoordinateSystemClipArea;\n\n startIndex: number;\n endIndex: number;\n\n private _ctx: CanvasRenderingContext2D;\n\n constructor(opts?: LargeSymbolPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LargeSymbolPathShape();\n }\n\n setColor: ECSymbol['setColor'];\n\n buildPath(path: PathProxy | CanvasRenderingContext2D, shape: LargeSymbolPathShape) {\n const points = shape.points;\n const size = shape.size;\n\n const symbolProxy = this.symbolProxy;\n const symbolProxyShape = symbolProxy.shape;\n const ctx = (path as PathProxy).getContext\n ? (path as PathProxy).getContext()\n : path as CanvasRenderingContext2D;\n const canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD;\n\n // Do draw in afterBrush.\n if (canBoost) {\n this._ctx = ctx;\n return;\n }\n\n this._ctx = null;\n\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n\n symbolProxyShape.x = x - size[0] / 2;\n symbolProxyShape.y = y - size[1] / 2;\n symbolProxyShape.width = size[0];\n symbolProxyShape.height = size[1];\n\n symbolProxy.buildPath(path, symbolProxyShape, true);\n }\n }\n\n afterBrush() {\n const shape = this.shape;\n const points = shape.points;\n const size = shape.size;\n const ctx = this._ctx;\n\n if (!ctx) {\n return;\n }\n\n // PENDING If style or other canvas status changed?\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n // fillRect is faster than building a rect path and draw.\n // And it support light globalCompositeOperation.\n ctx.fillRect(\n x - size[0] / 2, y - size[1] / 2,\n size[0], size[1]\n );\n }\n }\n\n findDataIndex(x: number, y: number) {\n // TODO ???\n // Consider transform\n\n const shape = this.shape;\n const points = shape.points;\n const size = shape.size;\n\n const w = Math.max(size[0], 4);\n const h = Math.max(size[1], 4);\n\n // Not consider transform\n // Treat each element as a rect\n // top down traverse\n for (let idx = points.length / 2 - 1; idx >= 0; idx--) {\n const i = idx * 2;\n const x0 = points[i] - w / 2;\n const y0 = points[i + 1] - h / 2;\n if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) {\n return idx;\n }\n }\n\n return -1;\n }\n}\n\ninterface UpdateOpt {\n clipShape?: CoordinateSystemClipArea\n}\n\nclass LargeSymbolDraw {\n\n group = new graphic.Group();\n\n _incremental: IncrementalDisplayable;\n\n isPersistent() {\n return !this._incremental;\n };\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: SeriesData, opt?: UpdateOpt) {\n this.group.removeAll();\n const symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default'\n });\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n this._setCommon(symbolEl, data, false, opt);\n this.group.add(symbolEl);\n\n this._incremental = null;\n }\n\n updateLayout(data: SeriesData) {\n if (this._incremental) {\n return;\n }\n\n let points = data.getLayout('points');\n this.group.eachChild(function (child: LargeSymbolPath) {\n if (child.startIndex != null) {\n const len = (child.endIndex - child.startIndex) * 2;\n const byteOffset = child.startIndex * 4 * 2;\n points = new Float32Array(points.buffer, byteOffset, len);\n }\n child.setShape('points', points);\n });\n }\n\n incrementalPrepareUpdate(data: SeriesData) {\n this.group.removeAll();\n\n this._clearIncremental();\n // Only use incremental displayables when data amount is larger than 2 million.\n // PENDING Incremental data?\n if (data.count() > 2e6) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n this.group.add(this._incremental);\n }\n else {\n this._incremental = null;\n }\n }\n\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: SeriesData, opt: UpdateOpt) {\n let symbolEl;\n if (this._incremental) {\n symbolEl = new LargeSymbolPath();\n this._incremental.addDisplayable(symbolEl, true);\n }\n else {\n symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default',\n startIndex: taskParams.start,\n endIndex: taskParams.end\n });\n symbolEl.incremental = true;\n this.group.add(symbolEl);\n }\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n this._setCommon(symbolEl, data, !!this._incremental, opt);\n }\n\n _setCommon(\n symbolEl: LargeSymbolPath,\n data: SeriesData,\n isIncremental: boolean,\n opt: UpdateOpt\n ) {\n const hostModel = data.hostModel;\n\n opt = opt || {};\n\n const size = data.getVisual('symbolSize');\n symbolEl.setShape('size', (size instanceof Array) ? size : [size, size]);\n\n symbolEl.softClipShape = opt.clipShape || null;\n // Create symbolProxy to build path for each data\n symbolEl.symbolProxy = createSymbol(\n data.getVisual('symbol'), 0, 0, 0, 0\n );\n // Use symbolProxy setColor method\n symbolEl.setColor = symbolEl.symbolProxy.setColor;\n\n const extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD;\n symbolEl.useStyle(\n // Draw shadow when doing fillRect is extremely slow.\n hostModel.getModel('itemStyle').getItemStyle(\n extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']\n )\n );\n\n const globalStyle = data.getVisual('style');\n const visualColor = globalStyle && globalStyle.fill;\n if (visualColor) {\n symbolEl.setColor(visualColor);\n }\n\n if (!isIncremental) {\n const ecData = getECData(symbolEl);\n // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n ecData.seriesIndex = (hostModel as SeriesModel).seriesIndex;\n symbolEl.on('mousemove', function (e) {\n ecData.dataIndex = null;\n const dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY);\n if (dataIndex >= 0) {\n // Provide dataIndex for tooltip\n ecData.dataIndex = dataIndex + (symbolEl.startIndex || 0);\n }\n });\n }\n }\n\n remove() {\n this._clearIncremental();\n this._incremental = null;\n this.group.removeAll();\n }\n\n _clearIncremental() {\n const incremental = this._incremental;\n if (incremental) {\n incremental.clearDisplaybles();\n }\n }\n}\n\n\nexport default LargeSymbolDraw;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LargeSymbolDraw from '../helper/LargeSymbolDraw';\n\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\nimport ScatterSeriesModel from './ScatterSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { TaskProgressParams } from '../../core/task';\nimport type { StageHandlerProgressExecutor } from '../../util/types';\n\nclass ScatterView extends ChartView {\n static readonly type = 'scatter';\n type = ScatterView.type;\n\n _finished: boolean;\n\n _isLargeDraw: boolean;\n\n _symbolDraw: SymbolDraw | LargeSymbolDraw;\n\n render(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.updateData(data, {\n // TODO\n // If this parameter should be a shape or a bounding volume\n // shape will be more general.\n // But bounding volume like bounding rect will be much faster in the contain calculation\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = true;\n }\n\n incrementalPrepareRender(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.incrementalPrepareUpdate(data);\n\n this._finished = false;\n }\n\n incrementalRender(taskParams: TaskProgressParams, seriesModel: ScatterSeriesModel, ecModel: GlobalModel) {\n this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), {\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = taskParams.end === seriesModel.getData().count();\n }\n\n updateTransform(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void | { update: true } {\n const data = seriesModel.getData();\n // Must mark group dirty and make sure the incremental layer will be cleared\n // PENDING\n this.group.dirty();\n\n if (!this._finished || data.count() > 1e4 || !this._symbolDraw.isPersistent()) {\n return {\n update: true\n };\n }\n else {\n const res = pointsLayout('').reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({ start: 0, end: data.count(), count: data.count() }, data);\n }\n\n this._symbolDraw.updateLayout(data);\n }\n }\n\n _getClipShape(seriesModel: ScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n }\n\n _updateSymbolDraw(data: SeriesData, seriesModel: ScatterSeriesModel) {\n let symbolDraw = this._symbolDraw;\n const pipelineContext = seriesModel.pipelineContext;\n const isLargeDraw = pipelineContext.large;\n\n if (!symbolDraw || isLargeDraw !== this._isLargeDraw) {\n symbolDraw && symbolDraw.remove();\n symbolDraw = this._symbolDraw = isLargeDraw\n ? new LargeSymbolDraw()\n : new SymbolDraw();\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(symbolDraw.group);\n\n return symbolDraw;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove(true);\n this._symbolDraw = null;\n }\n\n dispose() {}\n}\n\nexport default ScatterView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport ComponentModel from '../../model/Component';\nimport { ComponentOption, BoxLayoutOptionMixin, ZRColor, ShadowOptionMixin } from '../../util/types';\nimport Grid from './Grid';\nimport { CoordinateSystemHostModel } from '../CoordinateSystem';\n\nexport interface GridOption extends ComponentOption, BoxLayoutOptionMixin, ShadowOptionMixin {\n mainType?: 'grid';\n\n show?: boolean;\n\n // Whether grid size contain label.\n containLabel?: boolean;\n\n backgroundColor?: ZRColor;\n borderWidth?: number;\n borderColor?: ZRColor;\n\n tooltip?: any; // FIXME:TS add this tooltip type\n}\n\nclass GridModel extends ComponentModel implements CoordinateSystemHostModel {\n\n static type = 'grid';\n\n static dependencies = ['xAxis', 'yAxis'];\n\n static layoutMode = 'box' as const;\n\n coordinateSystem: Grid;\n\n static defaultOption: GridOption = {\n show: false,\n zlevel: 0,\n z: 0,\n left: '10%',\n top: 60,\n right: '10%',\n bottom: 70,\n // If grid size contain label\n containLabel: false,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 1,\n borderColor: '#ccc'\n };\n}\n\nexport default GridModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport Axis2D from './Axis2D';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport GridModel from './GridModel';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport {OrdinalSortInfo} from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n\nexport type CartesianAxisPosition = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface CartesianAxisOption extends AxisBaseOption {\n gridIndex?: number;\n gridId?: string;\n position?: CartesianAxisPosition;\n // Offset is for multiple axis on the same position.\n offset?: number;\n categorySortInfo?: OrdinalSortInfo;\n}\n\nexport interface XAXisOption extends CartesianAxisOption {\n mainType?: 'xAxis'\n}\nexport interface YAXisOption extends CartesianAxisOption {\n mainType?: 'yAxis'\n}\n\nexport class CartesianAxisModel extends ComponentModel\n implements AxisBaseModel {\n\n static type = 'cartesian2dAxis';\n\n axis: Axis2D;\n\n getCoordSysModel(): GridModel {\n return this.getReferringComponents('grid', SINGLE_REFERRING).models[0] as GridModel;\n }\n}\n\nexport interface CartesianAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nzrUtil.mixin(CartesianAxisModel, AxisModelCommonMixin);\n\nexport default CartesianAxisModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { AxisBaseOption } from './axisCommonTypes';\n\n\nconst defaultOption: AxisBaseOption = {\n show: true,\n zlevel: 0,\n z: 0,\n // Inverse the axis.\n inverse: false,\n\n // Axis name displayed.\n name: '',\n // 'start' | 'middle' | 'end'\n nameLocation: 'end',\n // By degree. By default auto rotate by nameLocation.\n nameRotate: null,\n nameTruncate: {\n maxWidth: null,\n ellipsis: '...',\n placeholder: '.'\n },\n // Use global text style by default.\n nameTextStyle: {},\n // The gap between axisName and axisLine.\n nameGap: 15,\n\n // Default `false` to support tooltip.\n silent: false,\n // Default `false` to avoid legacy user event listener fail.\n triggerEvent: false,\n\n tooltip: {\n show: false\n },\n\n axisPointer: {},\n\n axisLine: {\n show: true,\n onZero: true,\n onZeroAxisIndex: null,\n lineStyle: {\n color: '#6E7079',\n width: 1,\n type: 'solid'\n },\n // The arrow at both ends the the axis.\n symbol: ['none', 'none'],\n symbolSize: [10, 15]\n },\n axisTick: {\n show: true,\n // Whether axisTick is inside the grid or outside the grid.\n inside: false,\n // The length of axisTick.\n length: 5,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n // Whether axisLabel is inside the grid or outside the grid.\n inside: false,\n rotate: 0,\n // true | false | null/undefined (auto)\n showMinLabel: null,\n // true | false | null/undefined (auto)\n showMaxLabel: null,\n margin: 8,\n // formatter: null,\n fontSize: 12\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: ['#E0E6F1'],\n width: 1,\n type: 'solid'\n }\n },\n splitArea: {\n show: false,\n areaStyle: {\n color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']\n }\n }\n};\n\n\nconst categoryAxis: AxisBaseOption = zrUtil.merge({\n // The gap at both ends of the axis. For categoryAxis, boolean.\n boundaryGap: true,\n // Set false to faster category collection.\n deduplication: null,\n // splitArea: {\n // show: false\n // },\n splitLine: {\n show: false\n },\n axisTick: {\n // If tick is align with label when boundaryGap is true\n alignWithLabel: false,\n interval: 'auto'\n },\n axisLabel: {\n interval: 'auto'\n }\n}, defaultOption);\n\nconst valueAxis: AxisBaseOption = zrUtil.merge({\n boundaryGap: [0, 0],\n\n axisLine: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n axisTick: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n\n // TODO\n // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]\n\n splitNumber: 5,\n\n minorTick: {\n // Minor tick, not available for cateogry axis.\n show: false,\n // Split number of minor ticks. The value should be in range of (0, 100)\n splitNumber: 5,\n // Lenght of minor tick\n length: 3,\n\n // Line style\n lineStyle: {\n // Default to be same with axisTick\n }\n },\n\n minorSplitLine: {\n show: false,\n\n lineStyle: {\n color: '#F4F7FD',\n width: 1\n }\n }\n}, defaultOption);\n\nconst timeAxis: AxisBaseOption = zrUtil.merge({\n scale: true,\n splitNumber: 6,\n axisLabel: {\n // To eliminate labels that are not nice\n showMinLabel: false,\n showMaxLabel: false,\n rich: {\n primary: {\n fontWeight: 'bold'\n }\n }\n },\n splitLine: {\n show: false\n }\n}, valueAxis);\n\nconst logAxis: AxisBaseOption = zrUtil.defaults({\n scale: true,\n logBase: 10\n}, valueAxis);\n\n\nexport default {\n category: categoryAxis,\n value: valueAxis,\n time: timeAxis,\n log: logAxis\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n TextCommonOption, LineStyleOption, OrdinalRawValue, ZRColor,\n AreaStyleOption, ComponentOption, ColorString,\n AnimationOptionMixin, Dictionary, ScaleDataValue\n} from '../util/types';\n\n\nexport const AXIS_TYPES = {value: 1, category: 1, time: 1, log: 1} as const;\nexport type OptionAxisType = keyof typeof AXIS_TYPES;\n\n\nexport interface AxisBaseOption extends ComponentOption,\n AnimationOptionMixin { // Support transition animation\n type?: OptionAxisType;\n show?: boolean;\n // Inverse the axis.\n inverse?: boolean;\n // Axis name displayed.\n name?: string;\n nameLocation?: 'start' | 'middle' | 'end';\n // By degree.\n nameRotate?: number;\n nameTruncate?: {\n maxWidth?: number;\n ellipsis?: string;\n placeholder?: string;\n };\n nameTextStyle?: AxisNameTextStyleOption;\n // The gap between axisName and axisLine.\n nameGap?: number;\n\n silent?: boolean;\n triggerEvent?: boolean;\n\n tooltip?: {\n show?: boolean;\n };\n\n axisPointer?: any; // FIXME:TS axisPointerOption type?\n axisLine?: AxisLineOption;\n axisTick?: AxisTickOption;\n axisLabel?: AxisLabelOption;\n minorTick?: MinorTickOption;\n splitLine?: SplitLineOption;\n minorSplitLine?: MinorSplitLineOption;\n splitArea?: SplitAreaOption;\n\n // The gap at both ends of the axis.\n // For category axis: boolean.\n // For value axis: [GAP, GAP], where\n // `GAP` can be an absolute pixel number (like `35`), or percent (like `'30%'`)\n boundaryGap?: boolean | [number | string, number | string];\n\n // Min value of the axis. can be:\n // + ScaleDataValue\n // + 'dataMin': use the min value in data.\n // + null/undefined: auto decide min value (consider pretty look and boundaryGap).\n min?: ScaleDataValue | 'dataMin' | ((extent: {min: number, max: number}) => ScaleDataValue);\n // Max value of the axis. can be:\n // + ScaleDataValue\n // + 'dataMax': use the max value in data.\n // + null/undefined: auto decide max value (consider pretty look and boundaryGap).\n max?: ScaleDataValue | 'dataMax' | ((extent: {min: number, max: number}) => ScaleDataValue);\n // Optional value can be:\n // + `false`: always include value 0.\n // + `true`: the extent do not consider value 0.\n scale?: boolean;\n\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n // Set false to faster category collection.\n // Only usefull in the case like: category is\n // ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // null means \"auto\":\n // if axis.data provided, do not deduplication,\n // else do deduplication.\n deduplication?: boolean;\n data?: (OrdinalRawValue | {\n value: OrdinalRawValue;\n textStyle?: TextCommonOption;\n })[];\n\n\n // ------------------------------------------------------\n // [Properties below only for 'value'/'log'/'time' axes]:\n\n // AxisTick and axisLabel and splitLine are caculated based on splitNumber.\n splitNumber?: number;\n // Interval specifies the span of the ticks is mandatorily.\n interval?: number;\n // Specify min interval when auto calculate tick interval.\n minInterval?: number;\n // Specify max interval when auto calculate tick interval.\n maxInterval?: number;\n\n\n // ---------------------------------------\n // [Properties below only for 'log' axis]:\n\n logBase?: number;\n}\n\ninterface AxisNameTextStyleOption extends TextCommonOption {\n rich?: Dictionary\n}\n\ninterface AxisLineOption {\n show?: boolean | 'auto',\n onZero?: boolean,\n onZeroAxisIndex?: number,\n // The arrow at both ends the the axis.\n symbol?: string | [string, string],\n symbolSize?: number[],\n symbolOffset?: string | number | (string | number)[],\n lineStyle?: LineStyleOption,\n}\n\ninterface AxisTickOption {\n show?: boolean | 'auto',\n // Whether axisTick is inside the grid or outside the grid.\n inside?: boolean,\n // The length of axisTick.\n length?: number,\n lineStyle?: LineStyleOption\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n // If tick is align with label when boundaryGap is true\n alignWithLabel?: boolean,\n interval?: 'auto' | number | ((index: number, value: string) => boolean)\n}\n\nexport type AxisLabelFormatterOption = string | ((value: OrdinalRawValue | number, index: number) => string);\n\ntype TimeAxisLabelUnitFormatter = AxisLabelFormatterOption | string[];\n\nexport type TimeAxisLabelFormatterOption = string\n | ((value: number, index: number, extra: {level: number}) => string)\n | {\n year?: TimeAxisLabelUnitFormatter,\n month?: TimeAxisLabelUnitFormatter,\n week?: TimeAxisLabelUnitFormatter,\n day?: TimeAxisLabelUnitFormatter,\n hour?: TimeAxisLabelUnitFormatter,\n minute?: TimeAxisLabelUnitFormatter,\n second?: TimeAxisLabelUnitFormatter,\n millisecond?: TimeAxisLabelUnitFormatter,\n inherit?: boolean\n };\n\ninterface AxisLabelOption extends Omit {\n show?: boolean,\n // Whether axisLabel is inside the grid or outside the grid.\n inside?: boolean,\n rotate?: number,\n // true | false | null/undefined (auto)\n showMinLabel?: boolean,\n // true | false | null/undefined (auto)\n showMaxLabel?: boolean,\n margin?: number,\n // value is supposed to be OptionDataPrimitive but for time axis, it is time stamp.\n formatter?: AxisLabelFormatterOption | TimeAxisLabelFormatterOption,\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n interval?: 'auto' | number | ((index: number, value: string) => boolean)\n\n // Color can be callback\n color?: ColorString | ((value?: string | number, index?: number) => ColorString)\n\n rich?: Dictionary\n}\n\ninterface MinorTickOption {\n show?: boolean,\n splitNumber?: number,\n length?: number,\n lineStyle?: LineStyleOption\n}\n\ninterface SplitLineOption {\n show?: boolean,\n interval?: 'auto' | number | ((index:number, value: string) => boolean)\n // colors will display in turn\n lineStyle?: LineStyleOption\n}\n\ninterface MinorSplitLineOption {\n show?: boolean,\n lineStyle?: LineStyleOption\n}\n\ninterface SplitAreaOption {\n show?: boolean,\n interval?: 'auto' | number | ((index:number, value: string) => boolean)\n // colors will display in turn\n areaStyle?: AreaStyleOption\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport axisDefault from './axisDefault';\nimport ComponentModel from '../model/Component';\nimport {\n getLayoutParams,\n mergeLayoutParam,\n fetchLayoutMode\n} from '../util/layout';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport { DimensionName, BoxLayoutOptionMixin, OrdinalRawValue } from '../util/types';\nimport { AxisBaseOption, AXIS_TYPES } from './axisCommonTypes';\nimport GlobalModel from '../model/Global';\nimport { each, merge } from 'zrender/src/core/util';\nimport { EChartsExtensionInstallRegisters } from '../extension';\n\n\ntype Constructor = new (...args: any[]) => T;\n\nexport interface AxisModelExtendedInCreator {\n getCategories(rawData?: boolean): OrdinalRawValue[] | Opt['data']\n getOrdinalMeta(): OrdinalMeta\n}\n\n/**\n * Generate sub axis model class\n * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...\n */\nexport default function axisModelCreator<\n AxisOptionT extends AxisBaseOption,\n AxisModelCtor extends Constructor>\n>(\n registers: EChartsExtensionInstallRegisters,\n axisName: DimensionName,\n BaseAxisModelClass: AxisModelCtor,\n extraDefaultOption?: AxisOptionT\n) {\n\n each(AXIS_TYPES, function (v, axisType) {\n\n const defaultOption = merge(\n merge({}, axisDefault[axisType], true),\n extraDefaultOption, true\n );\n\n class AxisModel extends BaseAxisModelClass implements AxisModelExtendedInCreator {\n\n static type = axisName + 'Axis.' + axisType;\n type = axisName + 'Axis.' + axisType;\n\n static defaultOption = defaultOption;\n\n private __ordinalMeta: OrdinalMeta;\n\n\n mergeDefaultAndTheme(option: AxisOptionT, ecModel: GlobalModel): void {\n const layoutMode = fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n const themeModel = ecModel.getTheme();\n merge(option, themeModel.get(axisType + 'Axis'));\n merge(option, this.getDefaultOption());\n\n option.type = getAxisType(option);\n\n if (layoutMode) {\n mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n optionUpdated(): void {\n const thisOption = this.option;\n if (thisOption.type === 'category') {\n this.__ordinalMeta = OrdinalMeta.createByAxisModel(this);\n }\n }\n\n /**\n * Should not be called before all of 'getInitailData' finished.\n * Because categories are collected during initializing data.\n */\n getCategories(rawData?: boolean): OrdinalRawValue[] | AxisBaseOption['data'] {\n const option = this.option;\n // FIXME\n // warning if called before all of 'getInitailData' finished.\n if (option.type === 'category') {\n if (rawData) {\n return option.data as AxisBaseOption['data'];\n }\n return this.__ordinalMeta.categories;\n }\n }\n\n getOrdinalMeta(): OrdinalMeta {\n return this.__ordinalMeta;\n }\n }\n\n registers.registerComponentModel(AxisModel);\n });\n\n registers.registerSubTypeDefaulter(\n axisName + 'Axis',\n getAxisType\n );\n}\n\nfunction getAxisType(option: AxisBaseOption) {\n // Default axis with data is category axis\n return option.type || (option.data ? 'category' : 'value');\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { DimensionName } from '../../util/types';\nimport Axis from '../Axis';\n\n\nclass Cartesian {\n\n readonly type: string = 'cartesian';\n\n readonly name: string;\n\n private _dimList: DimensionName[] = [];\n\n private _axes: {[dimName: string]: AxisT} = {};\n\n\n constructor(name: string) {\n this.name = name || '';\n }\n\n getAxis(dim: DimensionName): AxisT {\n return this._axes[dim];\n }\n\n getAxes(): AxisT[] {\n return zrUtil.map(this._dimList, function (dim: DimensionName) {\n return this._axes[dim];\n }, this);\n }\n\n getAxesByScale(scaleType: string): AxisT[] {\n scaleType = scaleType.toLowerCase();\n return zrUtil.filter(\n this.getAxes(),\n function (axis) {\n return axis.scale.type === scaleType;\n }\n );\n }\n\n addAxis(axis: AxisT): void {\n const dim = axis.dim;\n\n this._axes[dim] = axis;\n\n this._dimList.push(dim);\n }\n\n\n // FIXME:TS Never used. So comment `dataToCoord` and `coordToData`.\n // /**\n // * Convert data to coord in nd space\n // * @param {Array.|Object.} val\n // * @return {Array.|Object.}\n // */\n // dataToCoord(val) {\n // return this._dataCoordConvert(val, 'dataToCoord');\n // }\n\n // /**\n // * Convert coord in nd space to data\n // * @param {Array.|Object.} val\n // * @return {Array.|Object.}\n // */\n // coordToData(val) {\n // return this._dataCoordConvert(val, 'coordToData');\n // }\n\n // _dataCoordConvert(input, method) {\n // let dimList = this._dimList;\n\n // let output = input instanceof Array ? [] : {};\n\n // for (let i = 0; i < dimList.length; i++) {\n // let dim = dimList[i];\n // let axis = this._axes[dim];\n\n // output[dim] = axis[method](input[dim]);\n // }\n\n // return output;\n // }\n};\n\nexport default Cartesian;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport Cartesian from './Cartesian';\nimport { ScaleDataValue } from '../../util/types';\nimport Axis2D from './Axis2D';\nimport { CoordinateSystem } from '../CoordinateSystem';\nimport GridModel from './GridModel';\nimport Grid from './Grid';\nimport Scale from '../../scale/Scale';\nimport { invert } from 'zrender/src/core/matrix';\nimport { applyTransform } from 'zrender/src/core/vector';\n\nexport const cartesian2DDimensions = ['x', 'y'];\n\nfunction canCalculateAffineTransform(scale: Scale) {\n return scale.type === 'interval' || scale.type === 'time';\n}\n\nclass Cartesian2D extends Cartesian implements CoordinateSystem {\n\n readonly type = 'cartesian2d';\n\n readonly dimensions = cartesian2DDimensions;\n\n model: GridModel;\n\n master: Grid;\n\n private _transform: number[];\n private _invTransform: number[];\n\n /**\n * Calculate an affine transform matrix if two axes are time or value.\n * It's mainly for accelartion on the large time series data.\n */\n calcAffineTransform() {\n this._transform = this._invTransform = null;\n\n const xAxisScale = this.getAxis('x').scale;\n const yAxisScale = this.getAxis('y').scale;\n\n if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) {\n return;\n }\n\n const xScaleExtent = xAxisScale.getExtent();\n const yScaleExtent = yAxisScale.getExtent();\n\n const start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]);\n const end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]);\n\n const xScaleSpan = xScaleExtent[1] - xScaleExtent[0];\n const yScaleSpan = yScaleExtent[1] - yScaleExtent[0];\n\n if (!xScaleSpan || !yScaleSpan) {\n return;\n }\n // Accelerate data to point calculation on the special large time series data.\n const scaleX = (end[0] - start[0]) / xScaleSpan;\n const scaleY = (end[1] - start[1]) / yScaleSpan;\n const translateX = start[0] - xScaleExtent[0] * scaleX;\n const translateY = start[1] - yScaleExtent[0] * scaleY;\n\n const m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY];\n this._invTransform = invert([], m);\n }\n\n /**\n * Base axis will be used on stacking.\n */\n getBaseAxis(): Axis2D {\n return this.getAxesByScale('ordinal')[0]\n || this.getAxesByScale('time')[0]\n || this.getAxis('x');\n }\n\n containPoint(point: number[]): boolean {\n const axisX = this.getAxis('x');\n const axisY = this.getAxis('y');\n return axisX.contain(axisX.toLocalCoord(point[0]))\n && axisY.contain(axisY.toLocalCoord(point[1]));\n }\n\n containData(data: ScaleDataValue[]): boolean {\n return this.getAxis('x').containData(data[0])\n && this.getAxis('y').containData(data[1]);\n }\n\n dataToPoint(data: ScaleDataValue[], clamp?: boolean, out?: number[]): number[] {\n out = out || [];\n const xVal = data[0];\n const yVal = data[1];\n // Fast path\n if (this._transform\n // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated.\n && xVal != null\n && isFinite(xVal as number)\n && yVal != null\n && isFinite(yVal as number)\n ) {\n return applyTransform(out, data as number[], this._transform);\n }\n const xAxis = this.getAxis('x');\n const yAxis = this.getAxis('y');\n out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp));\n out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp));\n return out;\n }\n\n clampData(data: ScaleDataValue[], out?: number[]): number[] {\n const xScale = this.getAxis('x').scale;\n const yScale = this.getAxis('y').scale;\n const xAxisExtent = xScale.getExtent();\n const yAxisExtent = yScale.getExtent();\n const x = xScale.parse(data[0]);\n const y = yScale.parse(data[1]);\n out = out || [];\n out[0] = Math.min(\n Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x),\n Math.max(xAxisExtent[0], xAxisExtent[1])\n );\n out[1] = Math.min(\n Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y),\n Math.max(yAxisExtent[0], yAxisExtent[1])\n );\n\n return out;\n }\n\n pointToData(point: number[], clamp?: boolean): number[] {\n const out: number[] = [];\n if (this._invTransform) {\n return applyTransform(out, point, this._invTransform);\n }\n const xAxis = this.getAxis('x');\n const yAxis = this.getAxis('y');\n out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp);\n out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp);\n return out;\n }\n\n getOtherAxis(axis: Axis2D): Axis2D {\n return this.getAxis(axis.dim === 'x' ? 'y' : 'x');\n }\n\n /**\n * Get rect area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n getArea(): Cartesian2DArea {\n const xExtent = this.getAxis('x').getGlobalExtent();\n const yExtent = this.getAxis('y').getGlobalExtent();\n const x = Math.min(xExtent[0], xExtent[1]);\n const y = Math.min(yExtent[0], yExtent[1]);\n const width = Math.max(xExtent[0], xExtent[1]) - x;\n const height = Math.max(yExtent[0], yExtent[1]) - y;\n\n return new BoundingRect(x, y, width, height);\n }\n\n};\n\ninterface Cartesian2DArea extends BoundingRect {}\n\nexport default Cartesian2D;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport { DimensionName, OrdinalSortInfo } from '../../util/types';\nimport Scale from '../../scale/Scale';\nimport CartesianAxisModel, { CartesianAxisPosition } from './AxisModel';\nimport Grid from './Grid';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport OrdinalScale from '../../scale/Ordinal';\n\n\ninterface Axis2D {\n /**\n * Transform global coord to local coord,\n * i.e. let localCoord = axis.toLocalCoord(80);\n */\n toLocalCoord(coord: number): number;\n\n /**\n * Transform global coord to local coord,\n * i.e. let globalCoord = axis.toLocalCoord(40);\n */\n toGlobalCoord(coord: number): number;\n}\nclass Axis2D extends Axis {\n\n /**\n * Axis position\n * - 'top'\n * - 'bottom'\n * - 'left'\n * - 'right'\n */\n readonly position: CartesianAxisPosition;\n\n /**\n * Index of axis, can be used as key\n * Injected outside.\n */\n index: number = 0;\n\n /**\n * Axis model. Injected outside\n */\n model: CartesianAxisModel;\n\n /**\n * Injected outside.\n */\n grid: Grid;\n\n\n constructor(\n dim: DimensionName,\n scale: Scale,\n coordExtent: [number, number],\n axisType?: OptionAxisType,\n position?: CartesianAxisPosition\n ) {\n super(dim, scale, coordExtent);\n this.type = axisType || 'value';\n this.position = position || 'bottom';\n }\n\n /**\n * Implemented in .\n * @return If not on zero of other axis, return null/undefined.\n * If no axes, return an empty array.\n */\n getAxesOnZeroOf: () => Axis2D[];\n\n isHorizontal(): boolean {\n const position = this.position;\n return position === 'top' || position === 'bottom';\n }\n\n /**\n * Each item cooresponds to this.getExtent(), which\n * means globalExtent[0] may greater than globalExtent[1],\n * unless `asc` is input.\n *\n * @param {boolean} [asc]\n * @return {Array.}\n */\n getGlobalExtent(asc?: boolean): [number, number] {\n const ret = this.getExtent();\n ret[0] = this.toGlobalCoord(ret[0]);\n ret[1] = this.toGlobalCoord(ret[1]);\n asc && ret[0] > ret[1] && ret.reverse();\n return ret;\n }\n\n pointToData(point: number[], clamp?: boolean): number {\n return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);\n }\n\n /**\n * Set ordinalSortInfo\n * @param info new OrdinalSortInfo\n */\n setCategorySortInfo(info: OrdinalSortInfo): boolean {\n if (this.type !== 'category') {\n return false;\n }\n\n this.model.option.categorySortInfo = info;\n (this.scale as OrdinalScale).setSortInfo(info);\n }\n\n}\n\nexport default Axis2D;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GridModel from './GridModel';\nimport CartesianAxisModel from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SINGLE_REFERRING } from '../../util/model';\n\ninterface CartesianAxisLayout {\n position: [number, number];\n rotation: number;\n labelOffset: number;\n labelDirection: -1 | 1;\n tickDirection: -1 | 1;\n nameDirection: -1 | 1;\n labelRotate: number;\n z2: number;\n}\n\n/**\n * Can only be called after coordinate system creation stage.\n * (Can be called before coordinate system update stage).\n */\nexport function layout(\n gridModel: GridModel, axisModel: CartesianAxisModel, opt?: {labelInside?: boolean}\n): CartesianAxisLayout {\n opt = opt || {};\n const grid = gridModel.coordinateSystem;\n const axis = axisModel.axis;\n const layout = {} as CartesianAxisLayout;\n const otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n\n const rawAxisPosition = axis.position;\n const axisPosition: 'onZero' | typeof axis.position = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n const axisDim = axis.dim;\n\n const rect = grid.getRect();\n const rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n const idx = {left: 0, right: 1, top: 0, bottom: 1, onZero: 2};\n const axisOffset = axisModel.get('offset') || 0;\n\n const posBound = axisDim === 'x'\n ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset]\n : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\n if (otherAxisOnZeroOf) {\n const onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n }\n\n // Axis position\n layout.position = [\n axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0],\n axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]\n ];\n\n // Axis rotation\n layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1);\n\n // Tick and label direction, x y is axisDim\n const dirMap = {top: -1, bottom: 1, left: -1, right: 1} as const;\n\n layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection as 1 | -1;\n }\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection as 1 | -1;\n }\n\n // Special label rotation\n const labelRotate = axisModel.get(['axisLabel', 'rotate']);\n layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate;\n\n // Over splitLine and splitArea\n layout.z2 = 1;\n\n return layout;\n}\n\nexport function isCartesian2DSeries(seriesModel: SeriesModel): boolean {\n return seriesModel.get('coordinateSystem') === 'cartesian2d';\n}\n\nexport function findAxisModels(seriesModel: SeriesModel): {\n xAxisModel: CartesianAxisModel;\n yAxisModel: CartesianAxisModel;\n} {\n const axisModelMap = {\n xAxisModel: null,\n yAxisModel: null\n } as ReturnType;\n zrUtil.each(axisModelMap, function (v, key) {\n const axisType = key.replace(/Model$/, '');\n const axisModel = seriesModel.getReferringComponents(\n axisType, SINGLE_REFERRING\n ).models[0] as CartesianAxisModel;\n\n if (__DEV__) {\n if (!axisModel) {\n throw new Error(axisType + ' \"' + zrUtil.retrieve3(\n seriesModel.get(axisType + 'Index' as any),\n seriesModel.get(axisType + 'Id' as any),\n 0\n ) + '\" not found');\n }\n }\n\n axisModelMap[key] = axisModel;\n });\n\n return axisModelMap;\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Grid is a region which contains at most 4 cartesian systems\n *\n * TODO Default cartesian\n */\n\nimport {isObject, each, indexOf, retrieve3} from 'zrender/src/core/util';\nimport {getLayoutRect, LayoutRect} from '../../util/layout';\nimport {\n createScaleByModel,\n ifAxisCrossZero,\n niceScaleExtent,\n estimateLabelUnionRect,\n getDataDimensionsOnAxis\n} from '../../coord/axisHelper';\nimport Cartesian2D, {cartesian2DDimensions} from './Cartesian2D';\nimport Axis2D from './Axis2D';\nimport {ParsedModelFinder, ParsedModelFinderKnown, SINGLE_REFERRING} from '../../util/model';\n\n// Depends on GridModel, AxisModel, which performs preprocess.\nimport GridModel from './GridModel';\nimport CartesianAxisModel from './AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary } from 'zrender/src/core/types';\nimport {CoordinateSystemMaster} from '../CoordinateSystem';\nimport { ScaleDataValue } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport OrdinalScale from '../../scale/Ordinal';\nimport { isCartesian2DSeries, findAxisModels } from './cartesianAxisHelper';\n\n\ntype Cartesian2DDimensionName = 'x' | 'y';\n\ntype FinderAxisIndex = {xAxisIndex?: number, yAxisIndex?: number};\ntype AxesMap = {x: Axis2D[], y: Axis2D[]};\n\nclass Grid implements CoordinateSystemMaster {\n\n // FIXME:TS where used (different from registered type 'cartesian2d')?\n readonly type: string = 'grid';\n\n private _coordsMap: Dictionary = {};\n private _coordsList: Cartesian2D[] = [];\n private _axesMap: AxesMap = {} as AxesMap;\n private _axesList: Axis2D[] = [];\n private _rect: LayoutRect;\n\n readonly model: GridModel;\n readonly axisPointerEnabled = true;\n\n // Injected:\n name: string;\n\n // For deciding which dimensions to use when creating list data\n static dimensions = cartesian2DDimensions;\n readonly dimensions = cartesian2DDimensions;\n\n constructor(gridModel: GridModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._initCartesian(gridModel, ecModel, api);\n this.model = gridModel;\n }\n\n getRect(): LayoutRect {\n return this._rect;\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n\n const axesMap = this._axesMap;\n\n this._updateScale(ecModel, this.model);\n\n each(axesMap.x, function (xAxis) {\n niceScaleExtent(xAxis.scale, xAxis.model);\n });\n each(axesMap.y, function (yAxis) {\n niceScaleExtent(yAxis.scale, yAxis.model);\n });\n\n // Key: axisDim_axisIndex, value: boolean, whether onZero target.\n const onZeroRecords = {} as Dictionary;\n\n each(axesMap.x, function (xAxis) {\n fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);\n });\n each(axesMap.y, function (yAxis) {\n fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);\n });\n\n // Resize again if containLabel is enabled\n // FIXME It may cause getting wrong grid size in data processing stage\n this.resize(this.model, api);\n }\n\n /**\n * Resize the grid\n */\n resize(gridModel: GridModel, api: ExtensionAPI, ignoreContainLabel?: boolean): void {\n\n const boxLayoutParams = gridModel.getBoxLayoutParams();\n const isContainLabel = !ignoreContainLabel && gridModel.get('containLabel');\n\n const gridRect = getLayoutRect(\n boxLayoutParams, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._rect = gridRect;\n\n const axesList = this._axesList;\n\n adjustAxes();\n\n // Minus label size\n if (isContainLabel) {\n each(axesList, function (axis) {\n if (!axis.model.get(['axisLabel', 'inside'])) {\n const labelUnionRect = estimateLabelUnionRect(axis);\n if (labelUnionRect) {\n const dim: 'height' | 'width' = axis.isHorizontal() ? 'height' : 'width';\n const margin = axis.model.get(['axisLabel', 'margin']);\n gridRect[dim] -= labelUnionRect[dim] + margin;\n if (axis.position === 'top') {\n gridRect.y += labelUnionRect.height + margin;\n }\n else if (axis.position === 'left') {\n gridRect.x += labelUnionRect.width + margin;\n }\n }\n }\n });\n\n adjustAxes();\n }\n\n each(this._coordsList, function (coord) {\n // Calculate affine matrix to accelerate the data to point transform.\n // If all the axes scales are time or value.\n coord.calcAffineTransform();\n });\n\n function adjustAxes() {\n each(axesList, function (axis) {\n const isHorizontal = axis.isHorizontal();\n const extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];\n const idx = axis.inverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y);\n });\n }\n }\n\n getAxis(dim: Cartesian2DDimensionName, axisIndex?: number): Axis2D {\n const axesMapOnDim = this._axesMap[dim];\n if (axesMapOnDim != null) {\n return axesMapOnDim[axisIndex || 0];\n // if (axisIndex == null) {\n // Find first axis\n // for (let name in axesMapOnDim) {\n // if (axesMapOnDim.hasOwnProperty(name)) {\n // return axesMapOnDim[name];\n // }\n // }\n // }\n // return axesMapOnDim[axisIndex];\n }\n }\n\n getAxes(): Axis2D[] {\n return this._axesList.slice();\n }\n\n /**\n * Usage:\n * grid.getCartesian(xAxisIndex, yAxisIndex);\n * grid.getCartesian(xAxisIndex);\n * grid.getCartesian(null, yAxisIndex);\n * grid.getCartesian({xAxisIndex: ..., yAxisIndex: ...});\n *\n * When only xAxisIndex or yAxisIndex given, find its first cartesian.\n */\n getCartesian(finder: FinderAxisIndex): Cartesian2D;\n getCartesian(xAxisIndex?: number, yAxisIndex?: number): Cartesian2D;\n getCartesian(xAxisIndex?: number | FinderAxisIndex, yAxisIndex?: number) {\n if (xAxisIndex != null && yAxisIndex != null) {\n const key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n return this._coordsMap[key];\n }\n\n if (isObject(xAxisIndex)) {\n yAxisIndex = (xAxisIndex as FinderAxisIndex).yAxisIndex;\n xAxisIndex = (xAxisIndex as FinderAxisIndex).xAxisIndex;\n }\n for (let i = 0, coordList = this._coordsList; i < coordList.length; i++) {\n if (coordList[i].getAxis('x').index === xAxisIndex\n || coordList[i].getAxis('y').index === yAxisIndex\n ) {\n return coordList[i];\n }\n }\n }\n\n getCartesians(): Cartesian2D[] {\n return this._coordsList.slice();\n }\n\n /**\n * @implements\n */\n convertToPixel(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]\n ): number | number[] {\n const target = this._findConvertTarget(finder);\n\n return target.cartesian\n ? target.cartesian.dataToPoint(value as ScaleDataValue[])\n : target.axis\n ? target.axis.toGlobalCoord(target.axis.dataToCoord(value as ScaleDataValue))\n : null;\n }\n\n /**\n * @implements\n */\n convertFromPixel(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: number | number[]\n ): number | number[] {\n const target = this._findConvertTarget(finder);\n\n return target.cartesian\n ? target.cartesian.pointToData(value as number[])\n : target.axis\n ? target.axis.coordToData(target.axis.toLocalCoord(value as number))\n : null;\n }\n\n private _findConvertTarget(finder: ParsedModelFinderKnown): {\n cartesian: Cartesian2D,\n axis: Axis2D\n } {\n const seriesModel = finder.seriesModel;\n const xAxisModel = finder.xAxisModel\n || (seriesModel && seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0]);\n const yAxisModel = finder.yAxisModel\n || (seriesModel && seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0]);\n const gridModel = finder.gridModel;\n const coordsList = this._coordsList;\n let cartesian: Cartesian2D;\n let axis;\n\n if (seriesModel) {\n cartesian = seriesModel.coordinateSystem as Cartesian2D;\n indexOf(coordsList, cartesian) < 0 && (cartesian = null);\n }\n else if (xAxisModel && yAxisModel) {\n cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n }\n else if (xAxisModel) {\n axis = this.getAxis('x', xAxisModel.componentIndex);\n }\n else if (yAxisModel) {\n axis = this.getAxis('y', yAxisModel.componentIndex);\n }\n // Lowest priority.\n else if (gridModel) {\n const grid = gridModel.coordinateSystem;\n if (grid === this) {\n cartesian = this._coordsList[0];\n }\n }\n\n return {cartesian: cartesian, axis: axis};\n }\n\n /**\n * @implements\n */\n containPoint(point: number[]): boolean {\n const coord = this._coordsList[0];\n if (coord) {\n return coord.containPoint(point);\n }\n }\n\n /**\n * Initialize cartesian coordinate systems\n */\n private _initCartesian(\n gridModel: GridModel, ecModel: GlobalModel, api: ExtensionAPI\n ): void {\n const grid = this;\n const axisPositionUsed = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n const axesMap = {\n x: {},\n y: {}\n } as AxesMap;\n const axesCount = {\n x: 0,\n y: 0\n };\n\n /// Create axis\n ecModel.eachComponent('xAxis', createAxisCreator('x'), this);\n ecModel.eachComponent('yAxis', createAxisCreator('y'), this);\n\n if (!axesCount.x || !axesCount.y) {\n // Roll back when there no either x or y axis\n this._axesMap = {} as AxesMap;\n this._axesList = [];\n return;\n }\n\n this._axesMap = axesMap;\n\n /// Create cartesian2d\n each(axesMap.x, (xAxis, xAxisIndex) => {\n each(axesMap.y, (yAxis, yAxisIndex) => {\n const key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n const cartesian = new Cartesian2D(key);\n\n cartesian.master = this;\n cartesian.model = gridModel;\n\n this._coordsMap[key] = cartesian;\n this._coordsList.push(cartesian);\n\n cartesian.addAxis(xAxis);\n cartesian.addAxis(yAxis);\n });\n });\n\n function createAxisCreator(dimName: Cartesian2DDimensionName) {\n return function (axisModel: CartesianAxisModel, idx: number): void {\n if (!isAxisUsedInTheGrid(axisModel, gridModel)) {\n return;\n }\n\n let axisPosition = axisModel.get('position');\n if (dimName === 'x') {\n // Fix position\n if (axisPosition !== 'top' && axisPosition !== 'bottom') {\n // Default bottom of X\n axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';\n }\n }\n else {\n // Fix position\n if (axisPosition !== 'left' && axisPosition !== 'right') {\n // Default left of Y\n axisPosition = axisPositionUsed.left ? 'right' : 'left';\n }\n }\n axisPositionUsed[axisPosition] = true;\n\n const axis = new Axis2D(\n dimName,\n createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisPosition\n );\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n\n // Inject axis into axisModel\n axisModel.axis = axis;\n\n // Inject axisModel into axis\n axis.model = axisModel;\n\n // Inject grid info axis\n axis.grid = grid;\n\n // Index of axis, can be used as key\n axis.index = idx;\n\n grid._axesList.push(axis);\n\n axesMap[dimName][idx] = axis;\n axesCount[dimName]++;\n };\n }\n }\n\n /**\n * Update cartesian properties from series.\n */\n private _updateScale(ecModel: GlobalModel, gridModel: GridModel): void {\n // Reset scale\n each(this._axesList, function (axis) {\n axis.scale.setExtent(Infinity, -Infinity);\n if (axis.type === 'category') {\n const categorySortInfo = axis.model.get('categorySortInfo');\n (axis.scale as OrdinalScale).setSortInfo(categorySortInfo);\n }\n });\n\n ecModel.eachSeries(function (seriesModel) {\n if (isCartesian2DSeries(seriesModel)) {\n const axesModelMap = findAxisModels(seriesModel);\n const xAxisModel = axesModelMap.xAxisModel;\n const yAxisModel = axesModelMap.yAxisModel;\n\n if (!isAxisUsedInTheGrid(xAxisModel, gridModel)\n || !isAxisUsedInTheGrid(yAxisModel, gridModel)\n ) {\n return;\n }\n\n const cartesian = this.getCartesian(\n xAxisModel.componentIndex, yAxisModel.componentIndex\n );\n const data = seriesModel.getData();\n const xAxis = cartesian.getAxis('x');\n const yAxis = cartesian.getAxis('y');\n\n if (data.type === 'list') {\n unionExtent(data, xAxis);\n unionExtent(data, yAxis);\n }\n }\n }, this);\n\n function unionExtent(data: SeriesData, axis: Axis2D): void {\n each(getDataDimensionsOnAxis(data, axis.dim), function (dim) {\n axis.scale.unionExtentFromData(data, dim);\n });\n }\n }\n\n /**\n * @param dim 'x' or 'y' or 'auto' or null/undefined\n */\n getTooltipAxes(dim: Cartesian2DDimensionName | 'auto'): {\n baseAxes: Axis2D[], otherAxes: Axis2D[]\n } {\n const baseAxes = [] as Axis2D[];\n const otherAxes = [] as Axis2D[];\n\n each(this.getCartesians(), function (cartesian) {\n const baseAxis = (dim != null && dim !== 'auto')\n ? cartesian.getAxis(dim) : cartesian.getBaseAxis();\n const otherAxis = cartesian.getOtherAxis(baseAxis);\n indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);\n indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);\n });\n\n return {baseAxes: baseAxes, otherAxes: otherAxes};\n }\n\n\n static create(ecModel: GlobalModel, api: ExtensionAPI): Grid[] {\n const grids = [] as Grid[];\n ecModel.eachComponent('grid', function (gridModel: GridModel, idx) {\n const grid = new Grid(gridModel, ecModel, api);\n grid.name = 'grid_' + idx;\n // dataSampling requires axis extent, so resize\n // should be performed in create stage.\n grid.resize(gridModel, api, true);\n\n gridModel.coordinateSystem = grid;\n\n grids.push(grid);\n });\n\n // Inject the coordinateSystems into seriesModel\n ecModel.eachSeries(function (seriesModel) {\n if (!isCartesian2DSeries(seriesModel)) {\n return;\n }\n\n const axesModelMap = findAxisModels(seriesModel);\n const xAxisModel = axesModelMap.xAxisModel;\n const yAxisModel = axesModelMap.yAxisModel;\n\n const gridModel = xAxisModel.getCoordSysModel();\n\n if (__DEV__) {\n if (!gridModel) {\n throw new Error(\n 'Grid \"' + retrieve3(\n xAxisModel.get('gridIndex'),\n xAxisModel.get('gridId'),\n 0\n ) + '\" not found'\n );\n }\n if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) {\n throw new Error('xAxis and yAxis must use the same grid');\n }\n }\n\n const grid = gridModel.coordinateSystem as Grid;\n\n seriesModel.coordinateSystem = grid.getCartesian(\n xAxisModel.componentIndex, yAxisModel.componentIndex\n );\n });\n\n return grids;\n }\n\n}\n\n/**\n * Check if the axis is used in the specified grid.\n */\nfunction isAxisUsedInTheGrid(axisModel: CartesianAxisModel, gridModel: GridModel): boolean {\n return axisModel.getCoordSysModel() === gridModel;\n}\n\nfunction fixAxisOnZero(\n axesMap: AxesMap,\n otherAxisDim: Cartesian2DDimensionName,\n axis: Axis2D,\n // Key: see `getOnZeroRecordKey`\n onZeroRecords: Dictionary\n): void {\n\n axis.getAxesOnZeroOf = function () {\n // TODO: onZero of multiple axes.\n return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : [];\n };\n\n // onZero can not be enabled in these two situations:\n // 1. When any other axis is a category axis.\n // 2. When no axis is cross 0 point.\n const otherAxes = axesMap[otherAxisDim];\n\n let otherAxisOnZeroOf: Axis2D;\n const axisModel = axis.model;\n const onZero = axisModel.get(['axisLine', 'onZero']);\n const onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']);\n\n if (!onZero) {\n return;\n }\n\n // If target axis is specified.\n if (onZeroAxisIndex != null) {\n if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) {\n otherAxisOnZeroOf = otherAxes[onZeroAxisIndex];\n }\n }\n else {\n // Find the first available other axis.\n for (const idx in otherAxes) {\n if (otherAxes.hasOwnProperty(idx)\n && canOnZeroToAxis(otherAxes[idx])\n // Consider that two Y axes on one value axis,\n // if both onZero, the two Y axes overlap.\n && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]\n ) {\n otherAxisOnZeroOf = otherAxes[idx];\n break;\n }\n }\n }\n\n if (otherAxisOnZeroOf) {\n onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true;\n }\n\n function getOnZeroRecordKey(axis: Axis2D) {\n return axis.dim + '_' + axis.index;\n }\n}\n\nfunction canOnZeroToAxis(axis: Axis2D): boolean {\n return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis);\n}\n\nfunction updateAxisTransform(axis: Axis2D, coordBase: number) {\n const axisExtent = axis.getExtent();\n const axisExtentSum = axisExtent[0] + axisExtent[1];\n\n // Fast transform\n axis.toGlobalCoord = axis.dim === 'x'\n ? function (coord) {\n return coord + coordBase;\n }\n : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n axis.toLocalCoord = axis.dim === 'x'\n ? function (coord) {\n return coord - coordBase;\n }\n : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n}\n\nexport default Grid;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {retrieve, defaults, extend, each, isObject} from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {createTextStyle} from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport {isRadianAroundZero, remRadian} from '../../util/number';\nimport {createSymbol, normalizeSymbolOffset} from '../../util/symbol';\nimport * as matrixUtil from 'zrender/src/core/matrix';\nimport {applyTransform as v2ApplyTransform} from 'zrender/src/core/vector';\nimport {shouldShowAllLabels} from '../../coord/axisHelper';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { ZRTextVerticalAlign, ZRTextAlign, ECElement, ColorString } from '../../util/types';\nimport { AxisBaseOption } from '../../coord/axisCommonTypes';\nimport Element from 'zrender/src/Element';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport OrdinalScale from '../../scale/Ordinal';\n\nconst PI = Math.PI;\n\ntype AxisIndexKey = 'xAxisIndex' | 'yAxisIndex' | 'radiusAxisIndex'\n | 'angleAxisIndex' | 'singleAxisIndex';\n\ntype AxisEventData = {\n componentType: string\n componentIndex: number\n targetType: 'axisName' | 'axisLabel'\n name?: string\n value?: string | number\n} & {\n [key in AxisIndexKey]?: number\n};\n\ntype AxisLabelText = graphic.Text & {\n __fullText: string\n __truncatedText: string\n} & ECElement;\n\nexport interface AxisBuilderCfg {\n position?: number[]\n rotation?: number\n /**\n * Used when nameLocation is 'middle' or 'center'.\n * 1 | -1\n */\n nameDirection?: number\n tickDirection?: number\n labelDirection?: number\n /**\n * Usefull when onZero.\n */\n labelOffset?: number\n /**\n * default get from axisModel.\n */\n axisLabelShow?: boolean\n /**\n * default get from axisModel.\n */\n axisName?: string\n\n axisNameAvailableWidth?: number\n /**\n * by degree, default get from axisModel.\n */\n labelRotate?: number\n\n strokeContainThreshold?: number\n\n nameTruncateMaxWidth?: number\n\n silent?: boolean\n\n handleAutoShown?(elementType: 'axisLine' | 'axisTick'): boolean\n}\n\ninterface TickCoord {\n coord: number\n tickValue?: number\n}\n\n/**\n * A final axis is translated and rotated from a \"standard axis\".\n * So opt.position and opt.rotation is required.\n *\n * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],\n * for example: (0, 0) ------------> (0, 50)\n *\n * nameDirection or tickDirection or labelDirection is 1 means tick\n * or label is below the standard axis, whereas is -1 means above\n * the standard axis. labelOffset means offset between label and axis,\n * which is useful when 'onZero', where axisLabel is in the grid and\n * label in outside grid.\n *\n * Tips: like always,\n * positive rotation represents anticlockwise, and negative rotation\n * represents clockwise.\n * The direction of position coordinate is the same as the direction\n * of screen coordinate.\n *\n * Do not need to consider axis 'inverse', which is auto processed by\n * axis extent.\n */\nclass AxisBuilder {\n\n axisModel: AxisBaseModel;\n\n opt: AxisBuilderCfg;\n\n readonly group = new graphic.Group();\n\n private _transformGroup: graphic.Group;\n\n constructor(axisModel: AxisBaseModel, opt?: AxisBuilderCfg) {\n\n this.opt = opt;\n\n this.axisModel = axisModel;\n\n // Default value\n defaults(\n opt,\n {\n labelOffset: 0,\n nameDirection: 1,\n tickDirection: 1,\n labelDirection: 1,\n silent: true,\n handleAutoShown: () => true\n } as AxisBuilderCfg\n );\n\n\n // FIXME Not use a seperate text group?\n const transformGroup = new graphic.Group({\n x: opt.position[0],\n y: opt.position[1],\n rotation: opt.rotation\n });\n\n // this.group.add(transformGroup);\n // this._transformGroup = transformGroup;\n\n transformGroup.updateTransform();\n\n this._transformGroup = transformGroup;\n }\n\n hasBuilder(name: keyof typeof builders) {\n return !!builders[name];\n }\n\n add(name: keyof typeof builders) {\n builders[name](this.opt, this.axisModel, this.group, this._transformGroup);\n }\n\n getGroup() {\n return this.group;\n }\n\n static innerTextLayout(axisRotation: number, textRotation: number, direction: number) {\n const rotationDiff = remRadian(textRotation - axisRotation);\n let textAlign;\n let textVerticalAlign;\n\n if (isRadianAroundZero(rotationDiff)) { // Label is parallel with axis line.\n textVerticalAlign = direction > 0 ? 'top' : 'bottom';\n textAlign = 'center';\n }\n else if (isRadianAroundZero(rotationDiff - PI)) { // Label is inverse parallel with axis line.\n textVerticalAlign = direction > 0 ? 'bottom' : 'top';\n textAlign = 'center';\n }\n else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff > 0 && rotationDiff < PI) {\n textAlign = direction > 0 ? 'right' : 'left';\n }\n else {\n textAlign = direction > 0 ? 'left' : 'right';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign as ZRTextAlign,\n textVerticalAlign: textVerticalAlign as ZRTextVerticalAlign\n };\n }\n\n static makeAxisEventDataBase(axisModel: AxisBaseModel) {\n const eventData = {\n componentType: axisModel.mainType,\n componentIndex: axisModel.componentIndex\n } as AxisEventData;\n eventData[axisModel.mainType + 'Index' as AxisIndexKey] = axisModel.componentIndex;\n return eventData;\n }\n\n static isLabelSilent(axisModel: AxisBaseModel): boolean {\n const tooltipOpt = axisModel.get('tooltip');\n return axisModel.get('silent')\n // Consider mouse cursor, add these restrictions.\n || !(\n axisModel.get('triggerEvent') || (tooltipOpt && tooltipOpt.show)\n );\n }\n};\n\ninterface AxisElementsBuilder {\n (\n opt: AxisBuilderCfg,\n axisModel: AxisBaseModel,\n group: graphic.Group,\n transformGroup: graphic.Group\n ):void\n}\n\nconst builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBuilder> = {\n\n axisLine(opt, axisModel, group, transformGroup) {\n\n let shown = axisModel.get(['axisLine', 'show']);\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisLine');\n }\n if (!shown) {\n return;\n }\n\n const extent = axisModel.axis.getExtent();\n\n const matrix = transformGroup.transform;\n const pt1 = [extent[0], 0];\n const pt2 = [extent[1], 0];\n if (matrix) {\n v2ApplyTransform(pt1, pt1, matrix);\n v2ApplyTransform(pt2, pt2, matrix);\n }\n\n const lineStyle = extend(\n {\n lineCap: 'round'\n },\n axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle()\n );\n\n const line = new graphic.Line({\n // Id for animation\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: lineStyle,\n strokeContainThreshold: opt.strokeContainThreshold || 5,\n silent: true,\n z2: 1\n });\n line.anid = 'line';\n group.add(line);\n\n let arrows = axisModel.get(['axisLine', 'symbol']);\n\n if (arrows != null) {\n let arrowSize = axisModel.get(['axisLine', 'symbolSize']);\n\n if (typeof arrows === 'string') {\n // Use the same arrow for start and end point\n arrows = [arrows, arrows];\n }\n if (typeof arrowSize === 'string'\n || typeof arrowSize === 'number'\n ) {\n // Use the same size for width and height\n arrowSize = [arrowSize, arrowSize];\n }\n\n const arrowOffset = normalizeSymbolOffset(axisModel.get(['axisLine', 'symbolOffset']) || 0, arrowSize);\n\n const symbolWidth = arrowSize[0];\n const symbolHeight = arrowSize[1];\n\n each([{\n rotate: opt.rotation + Math.PI / 2,\n offset: arrowOffset[0],\n r: 0\n }, {\n rotate: opt.rotation - Math.PI / 2,\n offset: arrowOffset[1],\n r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0])\n + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1]))\n }], function (point, index) {\n if (arrows[index] !== 'none' && arrows[index] != null) {\n const symbol = createSymbol(\n arrows[index],\n -symbolWidth / 2,\n -symbolHeight / 2,\n symbolWidth,\n symbolHeight,\n lineStyle.stroke,\n true\n );\n\n // Calculate arrow position with offset\n const r = point.r + point.offset;\n\n symbol.attr({\n rotation: point.rotate,\n x: pt1[0] + r * Math.cos(opt.rotation),\n y: pt1[1] - r * Math.sin(opt.rotation),\n silent: true,\n z2: 11\n });\n group.add(symbol);\n }\n });\n }\n },\n\n axisTickLabel(opt, axisModel, group, transformGroup) {\n\n const ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt);\n const labelEls = buildAxisLabel(group, transformGroup, axisModel, opt);\n\n fixMinMaxLabelShow(axisModel, labelEls, ticksEls);\n\n buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection);\n },\n\n axisName(opt, axisModel, group, transformGroup) {\n const name = retrieve(opt.axisName, axisModel.get('name'));\n\n if (!name) {\n return;\n }\n\n const nameLocation = axisModel.get('nameLocation');\n const nameDirection = opt.nameDirection;\n const textStyleModel = axisModel.getModel('nameTextStyle');\n const gap = axisModel.get('nameGap') || 0;\n\n const extent = axisModel.axis.getExtent();\n const gapSignal = extent[0] > extent[1] ? -1 : 1;\n const pos = [\n nameLocation === 'start'\n ? extent[0] - gapSignal * gap\n : nameLocation === 'end'\n ? extent[1] + gapSignal * gap\n : (extent[0] + extent[1]) / 2, // 'middle'\n // Reuse labelOffset.\n isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0\n ];\n\n let labelLayout;\n\n let nameRotation = axisModel.get('nameRotate');\n if (nameRotation != null) {\n nameRotation = nameRotation * PI / 180; // To radian.\n }\n\n let axisNameAvailableWidth;\n\n if (isNameLocationCenter(nameLocation)) {\n labelLayout = AxisBuilder.innerTextLayout(\n opt.rotation,\n nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis.\n nameDirection\n );\n }\n else {\n labelLayout = endTextLayout(\n opt.rotation, nameLocation, nameRotation || 0, extent\n );\n\n axisNameAvailableWidth = opt.axisNameAvailableWidth;\n if (axisNameAvailableWidth != null) {\n axisNameAvailableWidth = Math.abs(\n axisNameAvailableWidth / Math.sin(labelLayout.rotation)\n );\n !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);\n }\n }\n\n const textFont = textStyleModel.getFont();\n\n const truncateOpt = axisModel.get('nameTruncate', true) || {};\n const ellipsis = truncateOpt.ellipsis;\n const maxWidth = retrieve(\n opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth\n );\n\n const textEl = new graphic.Text({\n x: pos[0],\n y: pos[1],\n rotation: labelLayout.rotation,\n silent: AxisBuilder.isLabelSilent(axisModel),\n style: createTextStyle(textStyleModel, {\n text: name,\n font: textFont,\n overflow: 'truncate',\n width: maxWidth,\n ellipsis,\n fill: textStyleModel.getTextColor()\n || axisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,\n align: textStyleModel.get('align')\n || labelLayout.textAlign,\n verticalAlign: textStyleModel.get('verticalAlign')\n || labelLayout.textVerticalAlign\n }),\n z2: 1\n }) as AxisLabelText;\n\n graphic.setTooltipConfig({\n el: textEl,\n componentModel: axisModel,\n itemName: name\n });\n\n textEl.__fullText = name;\n // Id for animation\n textEl.anid = 'name';\n\n if (axisModel.get('triggerEvent')) {\n const eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisName';\n eventData.name = name;\n getECData(textEl).eventData = eventData;\n }\n\n // FIXME\n transformGroup.add(textEl);\n textEl.updateTransform();\n\n group.add(textEl);\n\n textEl.decomposeTransform();\n }\n\n};\n\nfunction endTextLayout(\n rotation: number, textPosition: 'start' | 'middle' | 'end', textRotate: number, extent: number[]\n) {\n const rotationDiff = remRadian(textRotate - rotation);\n let textAlign: ZRTextAlign;\n let textVerticalAlign: ZRTextVerticalAlign;\n const inverse = extent[0] > extent[1];\n const onLeft = (textPosition === 'start' && !inverse)\n || (textPosition !== 'start' && inverse);\n\n if (isRadianAroundZero(rotationDiff - PI / 2)) {\n textVerticalAlign = onLeft ? 'bottom' : 'top';\n textAlign = 'center';\n }\n else if (isRadianAroundZero(rotationDiff - PI * 1.5)) {\n textVerticalAlign = onLeft ? 'top' : 'bottom';\n textAlign = 'center';\n }\n else {\n textVerticalAlign = 'middle';\n if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) {\n textAlign = onLeft ? 'left' : 'right';\n }\n else {\n textAlign = onLeft ? 'right' : 'left';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n}\n\nfunction fixMinMaxLabelShow(\n axisModel: AxisBaseModel,\n labelEls: graphic.Text[],\n tickEls: graphic.Line[]\n) {\n if (shouldShowAllLabels(axisModel.axis)) {\n return;\n }\n\n // If min or max are user set, we need to check\n // If the tick on min(max) are overlap on their neighbour tick\n // If they are overlapped, we need to hide the min(max) tick label\n const showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']);\n const showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']);\n\n // FIXME\n // Have not consider onBand yet, where tick els is more than label els.\n\n labelEls = labelEls || [];\n tickEls = tickEls || [];\n\n const firstLabel = labelEls[0];\n const nextLabel = labelEls[1];\n const lastLabel = labelEls[labelEls.length - 1];\n const prevLabel = labelEls[labelEls.length - 2];\n\n const firstTick = tickEls[0];\n const nextTick = tickEls[1];\n const lastTick = tickEls[tickEls.length - 1];\n const prevTick = tickEls[tickEls.length - 2];\n\n if (showMinLabel === false) {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {\n if (showMinLabel) {\n ignoreEl(nextLabel);\n ignoreEl(nextTick);\n }\n else {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n }\n\n if (showMaxLabel === false) {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {\n if (showMaxLabel) {\n ignoreEl(prevLabel);\n ignoreEl(prevTick);\n }\n else {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n }\n}\n\nfunction ignoreEl(el: Element) {\n el && (el.ignore = true);\n}\n\nfunction isTwoLabelOverlapped(\n current: graphic.Text,\n next: graphic.Text\n) {\n // current and next has the same rotation.\n const firstRect = current && current.getBoundingRect().clone();\n const nextRect = next && next.getBoundingRect().clone();\n\n if (!firstRect || !nextRect) {\n return;\n }\n\n // When checking intersect of two rotated labels, we use mRotationBack\n // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.\n const mRotationBack = matrixUtil.identity([]);\n matrixUtil.rotate(mRotationBack, mRotationBack, -current.rotation);\n\n firstRect.applyTransform(matrixUtil.mul([], mRotationBack, current.getLocalTransform()));\n nextRect.applyTransform(matrixUtil.mul([], mRotationBack, next.getLocalTransform()));\n\n return firstRect.intersect(nextRect);\n}\n\nfunction isNameLocationCenter(nameLocation: string) {\n return nameLocation === 'middle' || nameLocation === 'center';\n}\n\n\nfunction createTicks(\n ticksCoords: TickCoord[],\n tickTransform: matrixUtil.MatrixArray,\n tickEndCoord: number,\n tickLineStyle: PathStyleProps,\n anidPrefix: string\n) {\n const tickEls = [];\n const pt1: number[] = [];\n const pt2: number[] = [];\n for (let i = 0; i < ticksCoords.length; i++) {\n const tickCoord = ticksCoords[i].coord;\n\n pt1[0] = tickCoord;\n pt1[1] = 0;\n pt2[0] = tickCoord;\n pt2[1] = tickEndCoord;\n\n if (tickTransform) {\n v2ApplyTransform(pt1, pt1, tickTransform);\n v2ApplyTransform(pt2, pt2, tickTransform);\n }\n // Tick line, Not use group transform to have better line draw\n const tickEl = new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: tickLineStyle,\n z2: 2,\n autoBatch: true,\n silent: true\n });\n tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue;\n tickEls.push(tickEl);\n }\n return tickEls;\n}\n\nfunction buildAxisMajorTicks(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n opt: AxisBuilderCfg\n) {\n const axis = axisModel.axis;\n\n const tickModel = axisModel.getModel('axisTick');\n\n let shown = tickModel.get('show');\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisTick');\n }\n if (!shown || axis.scale.isBlank()) {\n return;\n }\n\n const lineStyleModel = tickModel.getModel('lineStyle');\n const tickEndCoord = opt.tickDirection * tickModel.get('length');\n\n const ticksCoords = axis.getTicksCoords();\n\n const ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, defaults(\n lineStyleModel.getLineStyle(),\n {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n ), 'ticks');\n\n for (let i = 0; i < ticksEls.length; i++) {\n group.add(ticksEls[i]);\n }\n\n return ticksEls;\n}\n\nfunction buildAxisMinorTicks(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n tickDirection: number\n) {\n const axis = axisModel.axis;\n\n const minorTickModel = axisModel.getModel('minorTick');\n\n if (!minorTickModel.get('show') || axis.scale.isBlank()) {\n return;\n }\n\n const minorTicksCoords = axis.getMinorTicksCoords();\n if (!minorTicksCoords.length) {\n return;\n }\n\n const lineStyleModel = minorTickModel.getModel('lineStyle');\n const tickEndCoord = tickDirection * minorTickModel.get('length');\n\n const minorTickLineStyle = defaults(\n lineStyleModel.getLineStyle(),\n defaults(\n axisModel.getModel('axisTick').getLineStyle(),\n {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n );\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n const minorTicksEls = createTicks(\n minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i\n );\n for (let k = 0; k < minorTicksEls.length; k++) {\n group.add(minorTicksEls[k]);\n }\n }\n}\n\nfunction buildAxisLabel(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n opt: AxisBuilderCfg\n) {\n const axis = axisModel.axis;\n const show = retrieve(opt.axisLabelShow, axisModel.get(['axisLabel', 'show']));\n\n if (!show || axis.scale.isBlank()) {\n return;\n }\n\n const labelModel = axisModel.getModel('axisLabel');\n const labelMargin = labelModel.get('margin');\n const labels = axis.getViewLabels();\n\n // Special label rotate.\n const labelRotation = (\n retrieve(opt.labelRotate, labelModel.get('rotate')) || 0\n ) * PI / 180;\n\n const labelLayout = AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);\n const rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);\n\n const labelEls: graphic.Text[] = [];\n const silent = AxisBuilder.isLabelSilent(axisModel);\n const triggerEvent = axisModel.get('triggerEvent');\n\n each(labels, function (labelItem, index) {\n const tickValue = axis.scale.type === 'ordinal'\n ? (axis.scale as OrdinalScale).getRawOrdinalNumber(labelItem.tickValue)\n : labelItem.tickValue;\n const formattedLabel = labelItem.formattedLabel;\n const rawLabel = labelItem.rawLabel;\n\n let itemLabelModel = labelModel;\n if (rawCategoryData && rawCategoryData[tickValue]) {\n const rawCategoryItem = rawCategoryData[tickValue];\n if (isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n itemLabelModel = new Model(\n rawCategoryItem.textStyle, labelModel, axisModel.ecModel\n );\n }\n }\n\n const textColor = itemLabelModel.getTextColor() as AxisBaseOption['axisLabel']['color']\n || axisModel.get(['axisLine', 'lineStyle', 'color']);\n\n const tickCoord = axis.dataToCoord(tickValue);\n\n const textEl = new graphic.Text({\n x: tickCoord,\n y: opt.labelOffset + opt.labelDirection * labelMargin,\n rotation: labelLayout.rotation,\n silent: silent,\n z2: 10,\n style: createTextStyle(itemLabelModel, {\n text: formattedLabel,\n align: itemLabelModel.getShallow('align', true)\n || labelLayout.textAlign,\n verticalAlign: itemLabelModel.getShallow('verticalAlign', true)\n || itemLabelModel.getShallow('baseline', true)\n || labelLayout.textVerticalAlign,\n fill: typeof textColor === 'function'\n ? textColor(\n // (1) In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n // (2) Compatible with previous version, which always use formatted label as\n // input. But in interval scale the formatted label is like '223,445', which\n // maked user repalce ','. So we modify it to return original val but remain\n // it as 'string' to avoid error in replacing.\n axis.type === 'category'\n ? rawLabel\n : axis.type === 'value'\n ? tickValue + ''\n : tickValue,\n index\n )\n : textColor as string\n })\n });\n textEl.anid = 'label_' + tickValue;\n\n\n // Pack data for mouse event\n if (triggerEvent) {\n const eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = rawLabel;\n\n getECData(textEl).eventData = eventData;\n }\n\n // FIXME\n transformGroup.add(textEl);\n textEl.updateTransform();\n\n labelEls.push(textEl);\n group.add(textEl);\n\n textEl.decomposeTransform();\n\n });\n\n return labelEls;\n}\n\n\nexport default AxisBuilder;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { each, curry, clone, defaults, isArray, indexOf } from 'zrender/src/core/util';\nimport AxisPointerModel, { AxisPointerOption } from './AxisPointerModel';\nimport Axis from '../../coord/Axis';\nimport { TooltipOption } from '../tooltip/TooltipModel';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesTooltipOption,\n CommonAxisPointerOption,\n Dictionary,\n ComponentOption\n} from '../../util/types';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ComponentModel from '../../model/Component';\nimport { CoordinateSystemMaster } from '../../coord/CoordinateSystem';\n\ninterface LinkGroup {\n mapper: AxisPointerOption['link'][number]['mapper']\n /**\n * { [axisKey]: AxisInfo }\n */\n axesInfo: Dictionary\n}\ninterface AxisInfo {\n axis: Axis\n key: string\n coordSys: CoordinateSystemMaster\n axisPointerModel: Model\n triggerTooltip: boolean\n involveSeries: boolean\n snap: boolean\n useHandle: boolean\n seriesModels: SeriesModel[]\n\n linkGroup?: LinkGroup\n seriesDataCount?: number\n}\n\ninterface CollectionResult {\n /**\n * { [coordSysKey]: { [axisKey]: AxisInfo } }\n */\n coordSysAxesInfo: Dictionary>\n\n /**\n * { [axisKey]: AxisInfo }\n */\n axesInfo: Dictionary\n /**\n * { [coordSysKey]: { CoordinateSystemMaster } }\n */\n coordSysMap: Dictionary\n\n seriesInvolved: boolean\n}\n\n// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n// allAxesInfo should be updated when setOption performed.\nexport function collect(ecModel: GlobalModel, api: ExtensionAPI) {\n const result: CollectionResult = {\n /**\n * key: makeKey(axis.model)\n * value: {\n * axis,\n * coordSys,\n * axisPointerModel,\n * triggerTooltip,\n * involveSeries,\n * snap,\n * seriesModels,\n * seriesDataCount\n * }\n */\n axesInfo: {},\n seriesInvolved: false,\n /**\n * key: makeKey(coordSys.model)\n * value: Object: key makeKey(axis.model), value: axisInfo\n */\n coordSysAxesInfo: {},\n coordSysMap: {}\n };\n\n collectAxesInfo(result, ecModel, api);\n\n // Check seriesInvolved for performance, in case too many series in some chart.\n result.seriesInvolved && collectSeriesInfo(result, ecModel);\n\n return result;\n}\n\nfunction collectAxesInfo(result: CollectionResult, ecModel: GlobalModel, api: ExtensionAPI) {\n const globalTooltipModel = ecModel.getComponent('tooltip');\n const globalAxisPointerModel = ecModel.getComponent('axisPointer') as AxisPointerModel;\n // links can only be set on global.\n const linksOption = globalAxisPointerModel.get('link', true) || [];\n const linkGroups: LinkGroup[] = [];\n\n // Collect axes info.\n each(api.getCoordinateSystems(), function (coordSys) {\n // Some coordinate system do not support axes, like geo.\n if (!coordSys.axisPointerEnabled) {\n return;\n }\n\n const coordSysKey = makeKey(coordSys.model);\n const axesInfoInCoordSys: CollectionResult['coordSysAxesInfo'][string] =\n result.coordSysAxesInfo[coordSysKey] = {};\n result.coordSysMap[coordSysKey] = coordSys;\n\n // Set tooltip (like 'cross') is a convienent way to show axisPointer\n // for user. So we enable seting tooltip on coordSys model.\n const coordSysModel = coordSys.model as ComponentModel;\n const baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);\n\n each(coordSys.getAxes(), curry(saveTooltipAxisInfo, false, null));\n\n // If axis tooltip used, choose tooltip axis for each coordSys.\n // Notice this case: coordSys is `grid` but not `cartesian2D` here.\n if (coordSys.getTooltipAxes\n && globalTooltipModel\n // If tooltip.showContent is set as false, tooltip will not\n // show but axisPointer will show as normal.\n && baseTooltipModel.get('show')\n ) {\n // Compatible with previous logic. But series.tooltip.trigger: 'axis'\n // or series.data[n].tooltip.trigger: 'axis' are not support any more.\n const triggerAxis = baseTooltipModel.get('trigger') === 'axis';\n const cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross';\n const tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));\n if (triggerAxis || cross) {\n each(tooltipAxes.baseAxes, curry(\n saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis\n ));\n }\n if (cross) {\n each(tooltipAxes.otherAxes, curry(saveTooltipAxisInfo, 'cross', false));\n }\n }\n\n // fromTooltip: true | false | 'cross'\n // triggerTooltip: true | false | null\n function saveTooltipAxisInfo(\n fromTooltip: boolean | 'cross',\n triggerTooltip: boolean,\n axis: Axis\n ) {\n let axisPointerModel = axis.model.getModel(\n 'axisPointer', globalAxisPointerModel\n ) as Model;\n\n const axisPointerShow = axisPointerModel.get('show');\n if (!axisPointerShow || (\n axisPointerShow === 'auto'\n && !fromTooltip\n && !isHandleTrigger(axisPointerModel)\n )) {\n return;\n }\n\n if (triggerTooltip == null) {\n triggerTooltip = axisPointerModel.get('triggerTooltip');\n }\n\n axisPointerModel = fromTooltip\n ? makeAxisPointerModel(\n axis, baseTooltipModel, globalAxisPointerModel, ecModel,\n fromTooltip, triggerTooltip\n )\n : axisPointerModel;\n\n const snap = axisPointerModel.get('snap');\n const axisKey = makeKey(axis.model);\n const involveSeries = triggerTooltip || snap || axis.type === 'category';\n\n // If result.axesInfo[key] exist, override it (tooltip has higher priority).\n const axisInfo: AxisInfo = result.axesInfo[axisKey] = {\n key: axisKey,\n axis: axis,\n coordSys: coordSys,\n axisPointerModel: axisPointerModel,\n triggerTooltip: triggerTooltip,\n involveSeries: involveSeries,\n snap: snap,\n useHandle: isHandleTrigger(axisPointerModel),\n seriesModels: [],\n\n linkGroup: null\n };\n axesInfoInCoordSys[axisKey] = axisInfo;\n result.seriesInvolved = result.seriesInvolved || involveSeries;\n\n const groupIndex = getLinkGroupIndex(linksOption, axis);\n if (groupIndex != null) {\n const linkGroup: LinkGroup = linkGroups[groupIndex]\n || (linkGroups[groupIndex] = {axesInfo: {}} as LinkGroup);\n linkGroup.axesInfo[axisKey] = axisInfo;\n linkGroup.mapper = linksOption[groupIndex].mapper;\n axisInfo.linkGroup = linkGroup;\n }\n }\n });\n}\n\nfunction makeAxisPointerModel(\n axis: Axis,\n baseTooltipModel: Model,\n globalAxisPointerModel: AxisPointerModel,\n ecModel: GlobalModel,\n fromTooltip: boolean | 'cross',\n triggerTooltip: boolean\n) {\n const tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');\n const fields = [\n 'type', 'snap', 'lineStyle', 'shadowStyle', 'label',\n 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'\n ] as const;\n const volatileOption = {} as Pick;\n\n each(fields, function (field) {\n (volatileOption as any)[field] = clone(tooltipAxisPointerModel.get(field));\n });\n\n // category axis do not auto snap, otherwise some tick that do not\n // has value can not be hovered. value/time/log axis default snap if\n // triggered from tooltip and trigger tooltip.\n volatileOption.snap = axis.type !== 'category' && !!triggerTooltip;\n\n // Compatibel with previous behavior, tooltip axis do not show label by default.\n // Only these properties can be overrided from tooltip to axisPointer.\n if (tooltipAxisPointerModel.get('type') === 'cross') {\n volatileOption.type = 'line';\n }\n const labelOption = volatileOption.label || (volatileOption.label = {});\n // Follow the convention, do not show label when triggered by tooltip by default.\n labelOption.show == null && (labelOption.show = false);\n\n if (fromTooltip === 'cross') {\n // When 'cross', both axes show labels.\n const tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']);\n labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true;\n // If triggerTooltip, this is a base axis, which should better not use cross style\n // (cross style is dashed by default)\n if (!triggerTooltip) {\n const crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');\n crossStyle && defaults(labelOption, crossStyle.textStyle);\n }\n }\n\n return axis.model.getModel(\n 'axisPointer',\n new Model(volatileOption, globalAxisPointerModel, ecModel)\n );\n}\n\nfunction collectSeriesInfo(result: CollectionResult, ecModel: GlobalModel) {\n // Prepare data for axis trigger\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n\n // Notice this case: this coordSys is `cartesian2D` but not `grid`.\n const coordSys = seriesModel.coordinateSystem;\n const seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true);\n const seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true);\n if (!coordSys\n || seriesTooltipTrigger === 'none'\n || seriesTooltipTrigger === false\n || seriesTooltipTrigger === 'item'\n || seriesTooltipShow === false\n || seriesModel.get(['axisPointer', 'show'], true) === false\n ) {\n return;\n }\n\n each(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {\n const axis = axisInfo.axis;\n if (coordSys.getAxis(axis.dim) === axis) {\n axisInfo.seriesModels.push(seriesModel);\n axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);\n axisInfo.seriesDataCount += seriesModel.getData().count();\n }\n });\n\n });\n}\n\n/**\n * For example:\n * {\n * axisPointer: {\n * links: [{\n * xAxisIndex: [2, 4],\n * yAxisIndex: 'all'\n * }, {\n * xAxisId: ['a5', 'a7'],\n * xAxisName: 'xxx'\n * }]\n * }\n * }\n */\nfunction getLinkGroupIndex(linksOption: AxisPointerOption['link'], axis: Axis): number {\n const axisModel = axis.model;\n const dim = axis.dim;\n for (let i = 0; i < linksOption.length; i++) {\n const linkOption = linksOption[i] || {};\n if (checkPropInLink(linkOption[dim + 'AxisId' as 'xAxisId'], axisModel.id)\n || checkPropInLink(linkOption[dim + 'AxisIndex' as 'xAxisIndex'], axisModel.componentIndex)\n || checkPropInLink(linkOption[dim + 'AxisName' as 'xAxisName'], axisModel.name)\n ) {\n return i;\n }\n }\n}\n\nfunction checkPropInLink(linkPropValue: number[] | number | string | string[] | 'all', axisPropValue: number | string) {\n return linkPropValue === 'all'\n || (isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0)\n || linkPropValue === axisPropValue;\n}\n\nexport function fixValue(axisModel: AxisBaseModel) {\n const axisInfo = getAxisInfo(axisModel);\n if (!axisInfo) {\n return;\n }\n\n const axisPointerModel = axisInfo.axisPointerModel;\n const scale = axisInfo.axis.scale;\n const option = axisPointerModel.option;\n const status = axisPointerModel.get('status');\n let value = axisPointerModel.get('value');\n\n // Parse init value for category and time axis.\n if (value != null) {\n value = scale.parse(value);\n }\n\n const useHandle = isHandleTrigger(axisPointerModel);\n // If `handle` used, `axisPointer` will always be displayed, so value\n // and status should be initialized.\n if (status == null) {\n option.status = useHandle ? 'show' : 'hide';\n }\n\n const extent = scale.getExtent().slice();\n extent[0] > extent[1] && extent.reverse();\n\n if (// Pick a value on axis when initializing.\n value == null\n // If both `handle` and `dataZoom` are used, value may be out of axis extent,\n // where we should re-pick a value to keep `handle` displaying normally.\n || value > extent[1]\n ) {\n // Make handle displayed on the end of the axis when init, which looks better.\n value = extent[1];\n }\n if (value < extent[0]) {\n value = extent[0];\n }\n\n option.value = value;\n\n if (useHandle) {\n option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';\n }\n}\n\nexport function getAxisInfo(axisModel: AxisBaseModel) {\n const coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') as AxisPointerModel || {})\n .coordSysAxesInfo as CollectionResult;\n return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];\n}\n\nexport function getAxisPointerModel(axisModel: AxisBaseModel) {\n const axisInfo = getAxisInfo(axisModel);\n return axisInfo && axisInfo.axisPointerModel;\n}\n\nfunction isHandleTrigger(axisPointerModel: Model) {\n return !!axisPointerModel.get(['handle', 'show']);\n}\n\n/**\n * @param {module:echarts/model/Model} model\n * @return {string} unique key\n */\nexport function makeKey(model: ComponentModel) {\n return model.type + '||' + model.id;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as axisPointerModelHelper from '../axisPointer/modelHelper';\nimport ComponentView from '../../view/Component';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, Dictionary } from '../../util/types';\nimport type BaseAxisPointer from '../axisPointer/BaseAxisPointer';\n\nconst axisPointerClazz: Dictionary = {};\n\ninterface AxisPointerConstructor {\n new(): BaseAxisPointer\n}\n/**\n * Base class of AxisView.\n */\nclass AxisView extends ComponentView {\n\n static type = 'axis';\n type = AxisView.type;\n\n /**\n * @private\n */\n private _axisPointer: BaseAxisPointer;\n\n /**\n * @protected\n */\n axisPointerClass: string;\n\n /**\n * @override\n */\n render(axisModel: AxisBaseModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // FIXME\n // This process should proformed after coordinate systems updated\n // (axis scale updated), and should be performed each time update.\n // So put it here temporarily, although it is not appropriate to\n // put a model-writing procedure in `view`.\n this.axisPointerClass && axisPointerModelHelper.fixValue(axisModel);\n\n super.render.apply(this, arguments as any);\n\n this._doUpdateAxisPointerClass(axisModel, api, true);\n }\n\n /**\n * Action handler.\n */\n updateAxisPointer(\n axisModel: AxisBaseModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n this._doUpdateAxisPointerClass(axisModel, api, false);\n }\n\n /**\n * @override\n */\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n const axisPointer = this._axisPointer;\n axisPointer && axisPointer.remove(api);\n }\n\n /**\n * @override\n */\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this._disposeAxisPointer(api);\n super.dispose.apply(this, arguments as any);\n }\n\n private _doUpdateAxisPointerClass(axisModel: AxisBaseModel, api: ExtensionAPI, forceRender?: boolean) {\n const Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);\n if (!Clazz) {\n return;\n }\n const axisPointerModel = axisPointerModelHelper.getAxisPointerModel(axisModel);\n axisPointerModel\n ? (this._axisPointer || (this._axisPointer = new Clazz()))\n .render(axisModel, axisPointerModel, api, forceRender)\n : this._disposeAxisPointer(api);\n }\n\n private _disposeAxisPointer(api: ExtensionAPI) {\n this._axisPointer && this._axisPointer.dispose(api);\n this._axisPointer = null;\n }\n\n static registerAxisPointerClass(type: string, clazz: AxisPointerConstructor) {\n if (__DEV__) {\n if (axisPointerClazz[type]) {\n throw new Error('axisPointer ' + type + ' exists');\n }\n }\n axisPointerClazz[type] = clazz;\n };\n\n static getAxisPointerClass(type: string) {\n return type && axisPointerClazz[type];\n };\n\n}\n\nexport default AxisView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { makeInner } from '../../util/model';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport type SingleAxisView from './SingleAxisView';\nimport type CartesianAxisView from './CartesianAxisView';\nimport type SingleAxisModel from '../../coord/single/AxisModel';\nimport type CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport AxisView from './AxisView';\n\nconst inner = makeInner<{\n // Hash map of color index\n splitAreaColors: zrUtil.HashMap\n}, AxisView>();\n\nexport function rectCoordAxisBuildSplitArea(\n axisView: SingleAxisView | CartesianAxisView,\n axisGroup: graphic.Group,\n axisModel: SingleAxisModel | CartesianAxisModel,\n gridModel: GridModel | SingleAxisModel\n) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n // TODO: TYPE\n const splitAreaModel = (axisModel as CartesianAxisModel).getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n\n const gridRect = gridModel.coordinateSystem.getRect();\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitAreaModel,\n clamp: true\n });\n\n if (!ticksCoords.length) {\n return;\n }\n\n // For Making appropriate splitArea animation, the color and anid\n // should be corresponding to previous one if possible.\n const areaColorsLen = areaColors.length;\n const lastSplitAreaColors = inner(axisView).splitAreaColors;\n const newSplitAreaColors = zrUtil.createHashMap();\n let colorIndex = 0;\n if (lastSplitAreaColors) {\n for (let i = 0; i < ticksCoords.length; i++) {\n const cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue);\n if (cIndex != null) {\n colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen;\n break;\n }\n }\n }\n\n let prev = axis.toGlobalCoord(ticksCoords[0].coord);\n\n const areaStyle = areaStyleModel.getAreaStyle();\n areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors];\n\n for (let i = 1; i < ticksCoords.length; i++) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n let x;\n let y;\n let width;\n let height;\n if (axis.isHorizontal()) {\n x = prev;\n y = gridRect.y;\n width = tickCoord - x;\n height = gridRect.height;\n prev = x + width;\n }\n else {\n x = gridRect.x;\n y = prev;\n width = gridRect.width;\n height = tickCoord - y;\n prev = y + height;\n }\n\n const tickValue = ticksCoords[i - 1].tickValue;\n tickValue != null && newSplitAreaColors.set(tickValue, colorIndex);\n\n axisGroup.add(new graphic.Rect({\n anid: tickValue != null ? 'area_' + tickValue : null,\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n style: zrUtil.defaults({\n fill: areaColors[colorIndex]\n }, areaStyle),\n autoBatch: true,\n silent: true\n }));\n\n colorIndex = (colorIndex + 1) % areaColorsLen;\n }\n\n inner(axisView).splitAreaColors = newSplitAreaColors;\n}\n\nexport function rectCoordAxisHandleRemove(axisView: SingleAxisView | CartesianAxisView) {\n inner(axisView).splitAreaColors = null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder, {AxisBuilderCfg} from './AxisBuilder';\nimport AxisView from './AxisView';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport {rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove} from './axisSplitHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport { Payload } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\nconst selfBuilderAttrs = [\n 'splitArea', 'splitLine', 'minorSplitLine'\n] as const;\n\nclass CartesianAxisView extends AxisView {\n\n static type = 'cartesianAxis';\n type = CartesianAxisView.type;\n\n axisPointerClass = 'CartesianAxisPointer';\n\n private _axisGroup: graphic.Group;\n\n /**\n * @override\n */\n render(axisModel: CartesianAxisModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n this.group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n const gridModel = axisModel.getCoordSysModel();\n\n const layout = cartesianAxisHelper.layout(gridModel, axisModel);\n\n const axisBuilder = new AxisBuilder(axisModel, zrUtil.extend({\n handleAutoShown(elementType) {\n const cartesians = gridModel.coordinateSystem.getCartesians();\n for (let i = 0; i < cartesians.length; i++) {\n const otherAxisType = cartesians[i].getOtherAxis(axisModel.axis).type;\n if (otherAxisType === 'value' || otherAxisType === 'log') {\n // Still show axis tick or axisLine if other axis is value / log\n return true;\n }\n }\n // Not show axisTick or axisLine if other axis is category / time\n return false;\n }\n } as AxisBuilderCfg, layout));\n\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);\n }\n }, this);\n\n // THIS is a special case for bar racing chart.\n // Update the axis label from the natural initial layout to\n // sorted layout should has no animation.\n const isInitialSortFromBarRacing = payload && payload.type === 'changeAxisOrder' && payload.isInitSort;\n\n if (!isInitialSortFromBarRacing) {\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }\n\n super.render(axisModel, ecModel, api, payload);\n }\n\n remove() {\n rectCoordAxisHandleRemove(this);\n }\n}\n\ninterface AxisElementBuilder {\n (axisView: CartesianAxisView, axisGroup: graphic.Group, axisModel: CartesianAxisModel, gridModel: GridModel): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(axisView, axisGroup, axisModel, gridModel) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n const splitLineModel = axisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n\n lineColors = zrUtil.isArray(lineColors) ? lineColors : [lineColors];\n\n const gridRect = gridModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n let lineCount = 0;\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n\n const p1 = [];\n const p2 = [];\n\n const lineStyle = lineStyleModel.getLineStyle();\n for (let i = 0; i < ticksCoords.length; i++) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n const colorIndex = (lineCount++) % lineColors.length;\n const tickValue = ticksCoords[i].tickValue;\n axisGroup.add(new graphic.Line({\n anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: zrUtil.defaults({\n stroke: lineColors[colorIndex]\n }, lineStyle),\n silent: true\n }));\n }\n },\n\n minorSplitLine(axisView, axisGroup, axisModel, gridModel) {\n const axis = axisModel.axis;\n\n const minorSplitLineModel = axisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const gridRect = gridModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n const minorTicksCoords = axis.getMinorTicksCoords();\n if (!minorTicksCoords.length) {\n return;\n }\n const p1 = [];\n const p2 = [];\n\n const lineStyle = lineStyleModel.getLineStyle();\n\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n for (let k = 0; k < minorTicksCoords[i].length; k++) {\n const tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n axisGroup.add(new graphic.Line({\n anid: 'minor_line_' + minorTicksCoords[i][k].tickValue,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: lineStyle,\n silent: true\n }));\n }\n }\n },\n\n splitArea(axisView, axisGroup, axisModel, gridModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel);\n }\n};\n\nexport class CartesianXAxisView extends CartesianAxisView {\n static type = 'xAxis';\n type = CartesianXAxisView.type;\n}\nexport class CartesianYAxisView extends CartesianAxisView {\n static type = 'yAxis';\n type = CartesianXAxisView.type;\n}\n\nexport default CartesianAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport GlobalModel from '../../model/Global';\nimport { Rect } from '../../util/graphic';\nimport { defaults } from 'zrender/src/core/util';\nimport {CartesianAxisOption, CartesianAxisModel} from '../../coord/cartesian/AxisModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport Grid from '../../coord/cartesian/Grid';\nimport {CartesianXAxisView, CartesianYAxisView} from '../axis/CartesianAxisView';\n\n// Grid view\nclass GridView extends ComponentView {\n static readonly type = 'grid';\n readonly type = 'grid';\n\n render(gridModel: GridModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (gridModel.get('show')) {\n this.group.add(new Rect({\n shape: gridModel.coordinateSystem.getRect(),\n style: defaults({\n fill: gridModel.get('backgroundColor')\n }, gridModel.getItemStyle()),\n silent: true,\n z2: -1\n }));\n }\n }\n\n}\nconst extraOption: CartesianAxisOption = {\n // gridIndex: 0,\n // gridId: '',\n offset: 0\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentView(GridView);\n registers.registerComponentModel(GridModel);\n registers.registerCoordinateSystem('cartesian2d', Grid);\n\n axisModelCreator(\n registers, 'x', CartesianAxisModel, extraOption\n );\n axisModelCreator(\n registers, 'y', CartesianAxisModel, extraOption\n );\n\n registers.registerComponentView(CartesianXAxisView);\n registers.registerComponentView(CartesianYAxisView);\n\n registers.registerPreprocessor(function (option) {\n // Only create grid when need\n if (option.xAxis && option.yAxis && !option.grid) {\n option.grid = {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ScatterSeriesModel from './ScatterSeries';\nimport ScatterView from './ScatterView';\nimport {install as installGridSimple} from '../../component/grid/installSimple';\nimport layoutPoints from '../../layout/points';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n // In case developer forget to include grid component\n use(installGridSimple);\n\n registers.registerSeriesModel(ScatterSeriesModel);\n registers.registerChartView(ScatterView);\n registers.registerLayout(layoutPoints('scatter'));\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport RadarSeriesModel from './RadarSeries';\nimport Radar from '../../coord/radar/Radar';\n\ntype Point = number[];\nexport default function radarLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('radar', function (seriesModel: RadarSeriesModel) {\n const data = seriesModel.getData();\n const points: Point[][] = [];\n const coordSys = seriesModel.coordinateSystem;\n if (!coordSys) {\n return;\n }\n\n const axes = coordSys.getIndicatorAxes();\n\n zrUtil.each(axes, function (axis, axisIndex) {\n data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {\n points[dataIndex] = points[dataIndex] || [];\n const point = coordSys.dataToPoint(val, axisIndex);\n points[dataIndex][axisIndex] = isValidPoint(point)\n ? point : getValueMissingPoint(coordSys);\n });\n });\n\n // Close polygon\n data.each(function (idx) {\n // TODO\n // Is it appropriate to connect to the next data when some data is missing?\n // Or, should trade it like `connectNull` in line chart?\n const firstPoint = zrUtil.find(points[idx], function (point) {\n return isValidPoint(point);\n }) || getValueMissingPoint(coordSys);\n\n // Copy the first actual point to the end of the array\n points[idx].push(firstPoint.slice());\n data.setItemLayout(idx, points[idx]);\n });\n });\n}\n\nfunction isValidPoint(point: Point) {\n return !isNaN(point[0]) && !isNaN(point[1]);\n}\n\nfunction getValueMissingPoint(coordSys: Radar): Point {\n // It is error-prone to input [NaN, NaN] into polygon, polygon.\n // (probably cause problem when refreshing or animating)\n return [coordSys.cx, coordSys.cy];\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\n// Backward compat for radar chart in 2\nimport * as zrUtil from 'zrender/src/core/util';\n\nexport default function radarBackwardCompat(option) {\n let polarOptArr = option.polar;\n if (polarOptArr) {\n if (!zrUtil.isArray(polarOptArr)) {\n polarOptArr = [polarOptArr];\n }\n const polarNotRadar = [];\n zrUtil.each(polarOptArr, function (polarOpt, idx) {\n if (polarOpt.indicator) {\n if (polarOpt.type && !polarOpt.shape) {\n polarOpt.shape = polarOpt.type;\n }\n option.radar = option.radar || [];\n if (!zrUtil.isArray(option.radar)) {\n option.radar = [option.radar];\n }\n option.radar.push(polarOpt);\n }\n else {\n polarNotRadar.push(polarOpt);\n }\n });\n option.polar = polarNotRadar;\n }\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {\n seriesOpt.radarIndex = seriesOpt.polarIndex;\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as symbolUtil from '../../util/symbol';\nimport ChartView from '../../view/Chart';\nimport RadarSeriesModel, { RadarSeriesDataItemOption } from './RadarSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype RadarSymbol = ReturnType & {\n __dimIdx: number\n};\n\nclass RadarView extends ChartView {\n static type = 'radar';\n type = RadarView.type;\n\n private _data: SeriesData;\n\n render(seriesModel: RadarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const polar = seriesModel.coordinateSystem;\n const group = this.group;\n\n const data = seriesModel.getData();\n const oldData = this._data;\n\n function createSymbol(data: SeriesData, idx: number) {\n const symbolType = data.getItemVisual(idx, 'symbol') as string || 'circle';\n if (symbolType === 'none') {\n return;\n }\n const symbolSize = symbolUtil.normalizeSymbolSize(\n data.getItemVisual(idx, 'symbolSize')\n );\n const symbolPath = symbolUtil.createSymbol(\n symbolType, -1, -1, 2, 2\n );\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;\n symbolPath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 100,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2,\n rotation: symbolRotate * Math.PI / 180 || 0\n });\n return symbolPath as RadarSymbol;\n }\n\n function updateSymbols(\n oldPoints: VectorArray[],\n newPoints: VectorArray[],\n symbolGroup: graphic.Group,\n data: SeriesData,\n idx: number,\n isInit?: boolean\n ) {\n // Simply rerender all\n symbolGroup.removeAll();\n for (let i = 0; i < newPoints.length - 1; i++) {\n const symbolPath = createSymbol(data, idx);\n if (symbolPath) {\n symbolPath.__dimIdx = i;\n if (oldPoints[i]) {\n symbolPath.setPosition(oldPoints[i]);\n graphic[isInit ? 'initProps' : 'updateProps'](\n symbolPath, {\n x: newPoints[i][0],\n y: newPoints[i][1]\n }, seriesModel, idx\n );\n }\n else {\n symbolPath.setPosition(newPoints[i]);\n }\n symbolGroup.add(symbolPath);\n }\n }\n }\n\n function getInitialPoints(points: number[][]) {\n return zrUtil.map(points, function (pt) {\n return [polar.cx, polar.cy];\n });\n }\n data.diff(oldData)\n .add(function (idx) {\n const points = data.getItemLayout(idx);\n if (!points) {\n return;\n }\n const polygon = new graphic.Polygon();\n const polyline = new graphic.Polyline();\n const target = {\n shape: {\n points: points\n }\n };\n\n polygon.shape.points = getInitialPoints(points);\n polyline.shape.points = getInitialPoints(points);\n graphic.initProps(polygon, target, seriesModel, idx);\n graphic.initProps(polyline, target, seriesModel, idx);\n\n const itemGroup = new graphic.Group();\n const symbolGroup = new graphic.Group();\n itemGroup.add(polyline);\n itemGroup.add(polygon);\n itemGroup.add(symbolGroup);\n\n updateSymbols(\n polyline.shape.points, points, symbolGroup, data, idx, true\n );\n\n data.setItemGraphicEl(idx, itemGroup);\n })\n .update(function (newIdx, oldIdx) {\n const itemGroup = oldData.getItemGraphicEl(oldIdx) as graphic.Group;\n\n const polyline = itemGroup.childAt(0) as graphic.Polyline;\n const polygon = itemGroup.childAt(1) as graphic.Polygon;\n const symbolGroup = itemGroup.childAt(2) as graphic.Group;\n const target = {\n shape: {\n points: data.getItemLayout(newIdx)\n }\n };\n\n if (!target.shape.points) {\n return;\n }\n updateSymbols(\n polyline.shape.points,\n target.shape.points,\n symbolGroup,\n data,\n newIdx,\n false\n );\n\n saveOldStyle(polygon);\n saveOldStyle(polyline);\n\n graphic.updateProps(polyline, target, seriesModel);\n graphic.updateProps(polygon, target, seriesModel);\n\n data.setItemGraphicEl(newIdx, itemGroup);\n })\n .remove(function (idx) {\n group.remove(oldData.getItemGraphicEl(idx));\n })\n .execute();\n\n data.eachItemGraphicEl(function (itemGroup: graphic.Group, idx) {\n const itemModel = data.getItemModel(idx);\n const polyline = itemGroup.childAt(0) as graphic.Polyline;\n const polygon = itemGroup.childAt(1) as graphic.Polygon;\n const symbolGroup = itemGroup.childAt(2) as graphic.Group;\n // Radar uses the visual encoded from itemStyle.\n const itemStyle = data.getItemVisual(idx, 'style');\n const color = itemStyle.fill;\n\n group.add(itemGroup);\n\n polyline.useStyle(\n zrUtil.defaults(\n itemModel.getModel('lineStyle').getLineStyle(),\n {\n fill: 'none',\n stroke: color\n }\n )\n );\n\n setStatesStylesFromModel(polyline, itemModel, 'lineStyle');\n setStatesStylesFromModel(polygon, itemModel, 'areaStyle');\n\n const areaStyleModel = itemModel.getModel('areaStyle');\n const polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();\n\n polygon.ignore = polygonIgnore;\n\n zrUtil.each(['emphasis', 'select', 'blur'] as const, function (stateName) {\n const stateModel = itemModel.getModel([stateName, 'areaStyle']);\n const stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty();\n // Won't be ignore if normal state is not ignore.\n polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore;\n });\n\n polygon.useStyle(\n zrUtil.defaults(\n areaStyleModel.getAreaStyle(),\n {\n fill: color,\n opacity: 0.7,\n decal: itemStyle.decal\n }\n )\n );\n const emphasisModel = itemModel.getModel('emphasis');\n const itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n symbolGroup.eachChild(function (symbolPath: RadarSymbol) {\n if (symbolPath instanceof ZRImage) {\n const pathStyle = symbolPath.style;\n symbolPath.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, itemStyle));\n }\n else {\n symbolPath.useStyle(itemStyle);\n symbolPath.setColor(color);\n symbolPath.style.strokeNoScale = true;\n }\n\n const pathEmphasisState = symbolPath.ensureState('emphasis');\n pathEmphasisState.style = zrUtil.clone(itemHoverStyle);\n let defaultText = data.getStorage().get(data.getDimensionIndex(symbolPath.__dimIdx), idx);\n (defaultText == null || isNaN(defaultText as number)) && (defaultText = '');\n\n setLabelStyle(\n symbolPath, getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n labelDimIndex: symbolPath.__dimIdx,\n defaultText: defaultText as string,\n inheritColor: color as ColorString,\n defaultOpacity: itemStyle.opacity\n }\n );\n });\n\n enableHoverEmphasis(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n });\n\n this._data = data;\n }\n\n remove() {\n this.group.removeAll();\n this._data = null;\n }\n}\n\nexport default RadarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n LineStyleOption,\n SeriesLabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n AreaStyleOption,\n OptionDataValue,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesEncodeOptionMixin,\n CallbackDataParams\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport Radar from '../../coord/radar/Radar';\nimport {\n createTooltipMarkup, retrieveVisualColorForTooltipMarker\n} from '../../component/tooltip/tooltipMarkup';\n\ntype RadarSeriesDataValue = OptionDataValue[];\n\nexport interface RadarSeriesStateOption {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n label?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n}\nexport interface RadarSeriesDataItemOption extends SymbolOptionMixin,\n RadarSeriesStateOption, StatesOptionMixin,\n OptionDataItemObject {\n}\n\nexport interface RadarSeriesOption extends SeriesOption, RadarSeriesStateOption,\n SymbolOptionMixin, SeriesEncodeOptionMixin {\n type?: 'radar'\n coordinateSystem?: 'radar'\n\n radarIndex?: number\n radarId?: string\n\n data?: (RadarSeriesDataItemOption | RadarSeriesDataValue)[]\n}\n\nclass RadarSeriesModel extends SeriesModel {\n\n static readonly type = 'series.radar';\n readonly type = RadarSeriesModel.type;\n\n static dependencies = ['radar'];\n\n coordinateSystem: Radar;\n\n hasSymbolVisual = true;\n\n // Overwrite\n init(option: RadarSeriesOption) {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n\n }\n\n getInitialData(option: RadarSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, {\n generateCoord: 'indicator_',\n generateCoordCount: Infinity\n });\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: string\n ) {\n const data = this.getData();\n const coordSys = this.coordinateSystem;\n const indicatorAxes = coordSys.getIndicatorAxes();\n const name = this.getData().getName(dataIndex);\n const nameToDisplay = name === '' ? this.name : name;\n const markerColor = retrieveVisualColorForTooltipMarker(this, dataIndex);\n\n return createTooltipMarkup('section', {\n header: nameToDisplay,\n sortBlocks: true,\n blocks: zrUtil.map(indicatorAxes, axis => {\n const val = data.get(data.mapDimension(axis.dim), dataIndex);\n return createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: markerColor,\n name: axis.name,\n value: val,\n sortParam: val\n });\n })\n });\n }\n\n getTooltipPosition(dataIndex: number) {\n if (dataIndex != null) {\n const data = this.getData();\n const coordSys = this.coordinateSystem;\n const values = data.getValues(\n zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex\n );\n\n for (let i = 0, len = values.length; i < len; i++) {\n if (!isNaN(values[i] as number)) {\n const indicatorAxes = coordSys.getIndicatorAxes();\n return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i);\n }\n }\n }\n }\n\n static defaultOption: RadarSeriesOption = {\n zlevel: 0,\n z: 2,\n colorBy: 'data',\n coordinateSystem: 'radar',\n legendHoverLink: true,\n radarIndex: 0,\n lineStyle: {\n width: 2,\n type: 'solid',\n join: 'round'\n },\n label: {\n position: 'top'\n },\n // areaStyle: {\n // },\n // itemStyle: {}\n symbolSize: 8\n // symbolRotate: null\n };\n}\n\nexport default RadarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport axisDefault from '../axisDefault';\nimport Model from '../../model/Model';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n CircleLayoutOptionMixin,\n LabelOption,\n ColorString\n} from '../../util/types';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport Radar from './Radar';\nimport {CoordinateSystemHostModel} from '../../coord/CoordinateSystem';\n\nconst valueAxisDefault = axisDefault.value;\n\nfunction defaultsShow(opt: object, show: boolean) {\n return zrUtil.defaults({\n show: show\n }, opt);\n}\n\nexport interface RadarIndicatorOption {\n text?: string\n min?: number\n max?: number\n color?: ColorString\n\n axisType?: 'value' | 'log'\n}\n\nexport interface RadarOption extends ComponentOption, CircleLayoutOptionMixin {\n mainType?: 'radar'\n\n startAngle?: number\n\n shape?: 'polygon' | 'circle'\n\n // TODO. axisType seems to have issue.\n // axisType?: 'value' | 'log'\n\n axisLine?: AxisBaseOption['axisLine']\n axisTick?: AxisBaseOption['axisTick']\n axisLabel?: AxisBaseOption['axisLabel']\n splitLine?: AxisBaseOption['splitLine']\n splitArea?: AxisBaseOption['splitArea']\n\n // TODO Use axisName?\n axisName?: {\n show?: boolean\n formatter?: string | ((name?: string, indicatorOpt?: InnerIndicatorAxisOption) => string)\n } & LabelOption\n axisNameGap?: number\n\n triggerEvent?: boolean\n\n scale?: boolean\n splitNumber?: number\n\n boundaryGap?: AxisBaseOption['boundaryGap']\n\n indicator?: RadarIndicatorOption[]\n}\n\nexport interface InnerIndicatorAxisOption extends AxisBaseOption {\n // TODO Use type?\n // axisType?: 'value' | 'log'\n}\n\nclass RadarModel extends ComponentModel implements CoordinateSystemHostModel {\n static readonly type = 'radar';\n readonly type = RadarModel.type;\n\n coordinateSystem: Radar;\n\n private _indicatorModels: AxisBaseModel[];\n\n optionUpdated() {\n const boundaryGap = this.get('boundaryGap');\n const splitNumber = this.get('splitNumber');\n const scale = this.get('scale');\n const axisLine = this.get('axisLine');\n const axisTick = this.get('axisTick');\n // let axisType = this.get('axisType');\n const axisLabel = this.get('axisLabel');\n const nameTextStyle = this.get('axisName');\n const showName = this.get(['axisName', 'show']);\n const nameFormatter = this.get(['axisName', 'formatter']);\n const nameGap = this.get('axisNameGap');\n const triggerEvent = this.get('triggerEvent');\n\n const indicatorModels = zrUtil.map(this.get('indicator') || [], function (indicatorOpt) {\n // PENDING\n if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {\n indicatorOpt.min = 0;\n }\n else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {\n indicatorOpt.max = 0;\n }\n let iNameTextStyle = nameTextStyle;\n if (indicatorOpt.color != null) {\n iNameTextStyle = zrUtil.defaults({\n color: indicatorOpt.color\n }, nameTextStyle);\n }\n // Use same configuration\n const innerIndicatorOpt: InnerIndicatorAxisOption = zrUtil.merge(zrUtil.clone(indicatorOpt), {\n boundaryGap: boundaryGap,\n splitNumber: splitNumber,\n scale: scale,\n axisLine: axisLine,\n axisTick: axisTick,\n // axisType: axisType,\n axisLabel: axisLabel,\n // Compatible with 2 and use text\n name: indicatorOpt.text,\n nameLocation: 'end',\n nameGap: nameGap,\n // min: 0,\n nameTextStyle: iNameTextStyle,\n triggerEvent: triggerEvent\n } as InnerIndicatorAxisOption, false);\n if (!showName) {\n innerIndicatorOpt.name = '';\n }\n if (typeof nameFormatter === 'string') {\n const indName = innerIndicatorOpt.name;\n innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');\n }\n else if (typeof nameFormatter === 'function') {\n innerIndicatorOpt.name = nameFormatter(\n innerIndicatorOpt.name, innerIndicatorOpt\n );\n }\n\n const model = new Model(innerIndicatorOpt, null, this.ecModel) as AxisBaseModel;\n zrUtil.mixin(model, AxisModelCommonMixin.prototype);\n // For triggerEvent.\n model.mainType = 'radar';\n model.componentIndex = this.componentIndex;\n\n return model;\n }, this);\n\n this._indicatorModels = indicatorModels;\n }\n\n getIndicatorModels() {\n return this._indicatorModels;\n }\n\n static defaultOption: RadarOption = {\n\n zlevel: 0,\n\n z: 0,\n\n center: ['50%', '50%'],\n\n radius: '75%',\n\n startAngle: 90,\n\n axisName: {\n show: true\n // formatter: null\n // textStyle: {}\n },\n\n boundaryGap: [0, 0],\n\n splitNumber: 5,\n\n axisNameGap: 15,\n\n scale: false,\n\n // Polygon or circle\n shape: 'polygon',\n\n axisLine: zrUtil.merge(\n {\n lineStyle: {\n color: '#bbb'\n }\n },\n valueAxisDefault.axisLine\n ),\n axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),\n axisTick: defaultsShow(valueAxisDefault.axisTick, false),\n // axisType: 'value',\n splitLine: defaultsShow(valueAxisDefault.splitLine, true),\n splitArea: defaultsShow(valueAxisDefault.splitArea, true),\n\n // {text, min, max}\n indicator: []\n };\n}\n\nexport default RadarModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport RadarModel from '../../coord/radar/RadarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRColor } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\n\nclass RadarView extends ComponentView {\n\n static type = 'radar';\n type = RadarView.type;\n\n render(radarModel: RadarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const group = this.group;\n group.removeAll();\n\n this._buildAxes(radarModel);\n this._buildSplitLineAndArea(radarModel);\n }\n\n _buildAxes(radarModel: RadarModel) {\n const radar = radarModel.coordinateSystem;\n const indicatorAxes = radar.getIndicatorAxes();\n const axisBuilders = zrUtil.map(indicatorAxes, function (indicatorAxis) {\n const axisBuilder = new AxisBuilder(indicatorAxis.model, {\n position: [radar.cx, radar.cy],\n rotation: indicatorAxis.angle,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1\n });\n return axisBuilder;\n });\n\n zrUtil.each(axisBuilders, function (axisBuilder) {\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n this.group.add(axisBuilder.getGroup());\n }, this);\n }\n\n _buildSplitLineAndArea(radarModel: RadarModel) {\n const radar = radarModel.coordinateSystem;\n const indicatorAxes = radar.getIndicatorAxes();\n if (!indicatorAxes.length) {\n return;\n }\n const shape = radarModel.get('shape');\n const splitLineModel = radarModel.getModel('splitLine');\n const splitAreaModel = radarModel.getModel('splitArea');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n\n const showSplitLine = splitLineModel.get('show');\n const showSplitArea = splitAreaModel.get('show');\n const splitLineColors = lineStyleModel.get('color');\n const splitAreaColors = areaStyleModel.get('color');\n\n const splitLineColorsArr = zrUtil.isArray(splitLineColors) ? splitLineColors : [splitLineColors];\n const splitAreaColorsArr = zrUtil.isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];\n\n const splitLines: (graphic.Circle | graphic.Polyline)[][] = [];\n const splitAreas: (graphic.Ring | graphic.Polygon)[][] = [];\n\n function getColorIndex(\n areaOrLine: any[][],\n areaOrLineColorList: ZRColor[],\n idx: number\n ) {\n const colorIndex = idx % areaOrLineColorList.length;\n areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];\n return colorIndex;\n }\n\n if (shape === 'circle') {\n const ticksRadius = indicatorAxes[0].getTicksCoords();\n const cx = radar.cx;\n const cy = radar.cy;\n for (let i = 0; i < ticksRadius.length; i++) {\n if (showSplitLine) {\n const colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: cx,\n cy: cy,\n r: ticksRadius[i].coord\n }\n }));\n }\n if (showSplitArea && i < ticksRadius.length - 1) {\n const colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);\n splitAreas[colorIndex].push(new graphic.Ring({\n shape: {\n cx: cx,\n cy: cy,\n r0: ticksRadius[i].coord,\n r: ticksRadius[i + 1].coord\n }\n }));\n }\n }\n }\n // Polyyon\n else {\n let realSplitNumber: number;\n const axesTicksPoints = zrUtil.map(indicatorAxes, function (indicatorAxis, idx) {\n const ticksCoords = indicatorAxis.getTicksCoords();\n realSplitNumber = realSplitNumber == null\n ? ticksCoords.length - 1\n : Math.min(ticksCoords.length - 1, realSplitNumber);\n return zrUtil.map(ticksCoords, function (tickCoord) {\n return radar.coordToPoint(tickCoord.coord, idx);\n });\n });\n\n let prevPoints: number[][] = [];\n for (let i = 0; i <= realSplitNumber; i++) {\n const points: number[][] = [];\n for (let j = 0; j < indicatorAxes.length; j++) {\n points.push(axesTicksPoints[j][i]);\n }\n // Close\n if (points[0]) {\n points.push(points[0].slice());\n }\n else {\n if (__DEV__) {\n console.error('Can\\'t draw value axis ' + i);\n }\n }\n\n if (showSplitLine) {\n const colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Polyline({\n shape: {\n points: points\n }\n }));\n }\n if (showSplitArea && prevPoints) {\n const colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1);\n splitAreas[colorIndex].push(new graphic.Polygon({\n shape: {\n points: points.concat(prevPoints)\n }\n }));\n }\n prevPoints = points.slice().reverse();\n }\n }\n\n const lineStyle = lineStyleModel.getLineStyle();\n const areaStyle = areaStyleModel.getAreaStyle();\n // Add splitArea before splitLine\n zrUtil.each(splitAreas, function (splitAreas, idx) {\n this.group.add(graphic.mergePath(\n splitAreas, {\n style: zrUtil.defaults({\n stroke: 'none',\n fill: splitAreaColorsArr[idx % splitAreaColorsArr.length]\n }, areaStyle),\n silent: true\n }\n ));\n }, this);\n\n zrUtil.each(splitLines, function (splitLines, idx) {\n this.group.add(graphic.mergePath(\n splitLines, {\n style: zrUtil.defaults({\n fill: 'none',\n stroke: splitLineColorsArr[idx % splitLineColorsArr.length]\n }, lineStyle),\n silent: true\n }\n ));\n }, this);\n\n }\n}\n\nexport default RadarView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { InnerIndicatorAxisOption } from './RadarModel';\n\nclass IndicatorAxis extends Axis {\n\n type: OptionAxisType = 'value';\n\n angle = 0;\n\n name = '';\n\n model: AxisBaseModel;\n\n constructor(dim: string, scale: Scale, radiusExtent?: [number, number]) {\n super(dim, scale, radiusExtent);\n }\n}\n\nexport default IndicatorAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO clockwise\n\nimport IndicatorAxis from './IndicatorAxis';\nimport IntervalScale from '../../scale/Interval';\nimport * as numberUtil from '../../util/number';\nimport {\n getScaleExtent,\n niceScaleExtent\n} from '../axisHelper';\nimport { CoordinateSystemMaster, CoordinateSystem } from '../CoordinateSystem';\nimport RadarModel from './RadarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ScaleDataValue } from '../../util/types';\nimport { ParsedModelFinder } from '../../util/model';\nimport { parseAxisModelMinMax } from '../scaleRawExtentInfo';\nimport { map, each } from 'zrender/src/core/util';\n\n\nclass Radar implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly type: 'radar';\n /**\n *\n * Radar dimensions\n */\n readonly dimensions: string[] = [];\n\n cx: number;\n\n cy: number;\n\n r: number;\n\n r0: number;\n\n startAngle: number;\n\n private _model: RadarModel;\n\n private _indicatorAxes: IndicatorAxis[];\n\n constructor(radarModel: RadarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._model = radarModel;\n\n this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {\n const dim = 'indicator_' + idx;\n const indicatorAxis = new IndicatorAxis(dim,\n new IntervalScale()\n // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()\n );\n indicatorAxis.name = indicatorModel.get('name');\n // Inject model and axis\n indicatorAxis.model = indicatorModel;\n indicatorModel.axis = indicatorAxis;\n this.dimensions.push(dim);\n return indicatorAxis;\n }, this);\n\n this.resize(radarModel, api);\n }\n\n getIndicatorAxes() {\n return this._indicatorAxes;\n }\n\n dataToPoint(value: ScaleDataValue, indicatorIndex: number) {\n const indicatorAxis = this._indicatorAxes[indicatorIndex];\n\n return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);\n }\n\n // TODO: API should be coordToPoint([coord, indicatorIndex])\n coordToPoint(coord: number, indicatorIndex: number) {\n const indicatorAxis = this._indicatorAxes[indicatorIndex];\n const angle = indicatorAxis.angle;\n const x = this.cx + coord * Math.cos(angle);\n const y = this.cy - coord * Math.sin(angle);\n return [x, y];\n }\n\n pointToData(pt: number[]) {\n let dx = pt[0] - this.cx;\n let dy = pt[1] - this.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n\n const radian = Math.atan2(-dy, dx);\n\n // Find the closest angle\n // FIXME index can calculated directly\n let minRadianDiff = Infinity;\n let closestAxis;\n let closestAxisIdx = -1;\n for (let i = 0; i < this._indicatorAxes.length; i++) {\n const indicatorAxis = this._indicatorAxes[i];\n const diff = Math.abs(radian - indicatorAxis.angle);\n if (diff < minRadianDiff) {\n closestAxis = indicatorAxis;\n closestAxisIdx = i;\n minRadianDiff = diff;\n }\n }\n\n return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))];\n }\n\n resize(radarModel: RadarModel, api: ExtensionAPI) {\n const center = radarModel.get('center');\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n const viewSize = Math.min(viewWidth, viewHeight) / 2;\n this.cx = numberUtil.parsePercent(center[0], viewWidth);\n this.cy = numberUtil.parsePercent(center[1], viewHeight);\n\n this.startAngle = radarModel.get('startAngle') * Math.PI / 180;\n\n // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`\n let radius = radarModel.get('radius');\n if (typeof radius === 'string' || typeof radius === 'number') {\n radius = [0, radius];\n }\n this.r0 = numberUtil.parsePercent(radius[0], viewSize);\n this.r = numberUtil.parsePercent(radius[1], viewSize);\n\n each(this._indicatorAxes, function (indicatorAxis, idx) {\n indicatorAxis.setExtent(this.r0, this.r);\n let angle = (this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length);\n // Normalize to [-PI, PI]\n angle = Math.atan2(Math.sin(angle), Math.cos(angle));\n indicatorAxis.angle = angle;\n }, this);\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n const indicatorAxes = this._indicatorAxes;\n const radarModel = this._model;\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.setExtent(Infinity, -Infinity);\n });\n ecModel.eachSeriesByType('radar', function (radarSeries, idx) {\n if (radarSeries.get('coordinateSystem') !== 'radar'\n // @ts-ignore\n || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel\n ) {\n return;\n }\n const data = radarSeries.getData();\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim));\n });\n }, this);\n\n const splitNumber = radarModel.get('splitNumber');\n\n function increaseInterval(interval: number) {\n const exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10));\n // Increase interval\n let f = interval / exp10;\n if (f === 2) {\n f = 5;\n }\n else { // f is 2 or 5\n f *= 2;\n }\n return f * exp10;\n }\n // Force all the axis fixing the maxSplitNumber.\n each(indicatorAxes, function (indicatorAxis, idx) {\n const rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model).extent;\n niceScaleExtent(indicatorAxis.scale, indicatorAxis.model);\n\n const axisModel = indicatorAxis.model;\n const scale = indicatorAxis.scale as IntervalScale;\n const fixedMin = parseAxisModelMinMax(scale, axisModel.get('min', true) as ScaleDataValue);\n const fixedMax = parseAxisModelMinMax(scale, axisModel.get('max', true) as ScaleDataValue);\n let interval = scale.getInterval();\n\n if (fixedMin != null && fixedMax != null) {\n // User set min, max, divide to get new interval\n scale.setExtent(+fixedMin, +fixedMax);\n scale.setInterval(\n (fixedMax - fixedMin) / splitNumber\n );\n }\n else if (fixedMin != null) {\n let max;\n // User set min, expand extent on the other side\n do {\n max = fixedMin + interval * splitNumber;\n scale.setExtent(+fixedMin, max);\n // Interval must been set after extent\n // FIXME\n scale.setInterval(interval);\n\n interval = increaseInterval(interval);\n } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));\n }\n else if (fixedMax != null) {\n let min;\n // User set min, expand extent on the other side\n do {\n min = fixedMax - interval * splitNumber;\n scale.setExtent(min, +fixedMax);\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));\n }\n else {\n const nicedSplitNumber = scale.getTicks().length - 1;\n if (nicedSplitNumber > splitNumber) {\n interval = increaseInterval(interval);\n }\n // TODO\n const max = Math.ceil(rawExtent[1] / interval) * interval;\n const min = numberUtil.round(max - interval * splitNumber);\n scale.setExtent(min, max);\n scale.setInterval(interval);\n }\n });\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]): never {\n console.warn('Not implemented.');\n return null as never;\n }\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): never {\n console.warn('Not implemented.');\n return null as never;\n }\n containPoint(point: number[]): boolean {\n console.warn('Not implemented.');\n return false;\n }\n /**\n * Radar dimensions is based on the data\n */\n static dimensions: string[] = [];\n\n static create(ecModel: GlobalModel, api: ExtensionAPI) {\n const radarList: Radar[] = [];\n ecModel.eachComponent('radar', function (radarModel: RadarModel) {\n const radar = new Radar(radarModel, ecModel, api);\n radarList.push(radar);\n radarModel.coordinateSystem = radar;\n });\n ecModel.eachSeriesByType('radar', function (radarSeries) {\n if (radarSeries.get('coordinateSystem') === 'radar') {\n // Inject coordinate system\n // @ts-ignore\n radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];\n }\n });\n return radarList;\n }\n}\n\n\nexport default Radar;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport RadarModel from '../../coord/radar/RadarModel';\nimport RadarView from './RadarView';\nimport Radar from '../../coord/radar/Radar';\nimport RadarSeriesModel from '../../chart/radar/RadarSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerCoordinateSystem('radar', Radar);\n registers.registerComponentModel(RadarModel);\n registers.registerComponentView(RadarView);\n\n registers.registerVisual({\n seriesType: 'radar',\n reset: function (seriesModel: RadarSeriesModel) {\n const data = seriesModel.getData();\n // itemVisual symbol is for selected data\n data.each(function (idx) {\n data.setItemVisual(idx, 'legendIcon', 'roundRect');\n });\n // visual is for unselected data\n data.setVisual('legendIcon', 'roundRect');\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport radarLayout from '../radar/radarLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport backwardCompat from '../radar/backwardCompat';\nimport RadarView from './RadarView';\nimport RadarSeriesModel from './RadarSeries';\nimport { install as installRadarComponent } from '../../component/radar/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installRadarComponent);\n\n registers.registerChartView(RadarView);\n registers.registerSeriesModel(RadarSeriesModel);\n\n registers.registerLayout(radarLayout);\n registers.registerProcessor(dataFilter('radar'));\n registers.registerPreprocessor(backwardCompat);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as echarts from '../../core/echarts';\n\nconst ATTR = '\\0_ec_interaction_mutex';\n\nexport function take(zr, resourceKey, userKey) {\n const store = getStore(zr);\n store[resourceKey] = userKey;\n}\n\nexport function release(zr, resourceKey, userKey) {\n const store = getStore(zr);\n const uKey = store[resourceKey];\n\n if (uKey === userKey) {\n store[resourceKey] = null;\n }\n}\n\nexport function isTaken(zr, resourceKey) {\n return !!getStore(zr)[resourceKey];\n}\n\nfunction getStore(zr) {\n return zr[ATTR] || (zr[ATTR] = {});\n}\n\n/**\n * payload: {\n * type: 'takeGlobalCursor',\n * key: 'dataZoomSelect', or 'brush', or ...,\n * If no userKey, release global cursor.\n * }\n */\n// TODO: SELF REGISTERED.\necharts.registerAction(\n {type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update'},\n function () {}\n);\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Eventful from 'zrender/src/core/Eventful';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as interactionMutex from './interactionMutex';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ZRElementEvent, RoamOptionMixin } from '../../util/types';\nimport { Bind3, isString, bind, defaults, clone } from 'zrender/src/core/util';\nimport Group from 'zrender/src/graphic/Group';\n\n// Can be null/undefined or true/false\n// or 'pan/move' or 'zoom'/'scale'\nexport type RoamType = RoamOptionMixin['roam'];\n\ninterface RoamOption {\n zoomOnMouseWheel?: boolean | 'ctrl' | 'shift' | 'alt'\n moveOnMouseMove?: boolean | 'ctrl' | 'shift' | 'alt'\n moveOnMouseWheel?: boolean | 'ctrl' | 'shift' | 'alt'\n /**\n * If fixed the page when pan\n */\n preventDefaultMouseMove?: boolean\n}\n\ntype RoamEventType = keyof RoamEventParams;\n\ntype RoamBehavior = 'zoomOnMouseWheel' | 'moveOnMouseMove' | 'moveOnMouseWheel';\n\nexport interface RoamEventParams {\n 'zoom': {\n scale: number\n originX: number\n originY: number\n\n isAvailableBehavior: Bind3\n }\n 'scrollMove': {\n scrollDelta: number\n originX: number\n originY: number\n\n isAvailableBehavior: Bind3\n }\n 'pan': {\n dx: number\n dy: number\n oldX: number\n oldY: number\n newX: number\n newY: number\n\n isAvailableBehavior: Bind3\n }\n};\n\nexport interface RoamControllerHost {\n target: Group\n zoom: number\n zoomLimit: {\n min?: number\n max?: number\n }\n}\n\nclass RoamController extends Eventful<{\n [key in keyof RoamEventParams]: (params: RoamEventParams[key]) => void | undefined\n}> {\n\n pointerChecker: (e: ZRElementEvent, x: number, y: number) => boolean;\n\n private _zr: ZRenderType;\n\n private _opt: Required;\n\n private _dragging: boolean;\n\n private _pinching: boolean;\n\n private _x: number;\n\n private _y: number;\n\n readonly enable: (this: this, controlType?: RoamType, opt?: RoamOption) => void;\n\n readonly disable: () => void;\n\n\n constructor(zr: ZRenderType) {\n super();\n\n this._zr = zr;\n\n // Avoid two roamController bind the same handler\n const mousedownHandler = bind(this._mousedownHandler, this);\n const mousemoveHandler = bind(this._mousemoveHandler, this);\n const mouseupHandler = bind(this._mouseupHandler, this);\n const mousewheelHandler = bind(this._mousewheelHandler, this);\n const pinchHandler = bind(this._pinchHandler, this);\n\n /**\n * Notice: only enable needed types. For example, if 'zoom'\n * is not needed, 'zoom' should not be enabled, otherwise\n * default mousewheel behaviour (scroll page) will be disabled.\n */\n this.enable = function (controlType, opt) {\n\n // Disable previous first\n this.disable();\n\n this._opt = defaults(clone(opt) || {}, {\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n // By default, wheel do not trigger move.\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n\n if (controlType == null) {\n controlType = true;\n }\n\n if (controlType === true || (controlType === 'move' || controlType === 'pan')) {\n zr.on('mousedown', mousedownHandler);\n zr.on('mousemove', mousemoveHandler);\n zr.on('mouseup', mouseupHandler);\n }\n if (controlType === true || (controlType === 'scale' || controlType === 'zoom')) {\n zr.on('mousewheel', mousewheelHandler);\n zr.on('pinch', pinchHandler);\n }\n };\n\n this.disable = function () {\n zr.off('mousedown', mousedownHandler);\n zr.off('mousemove', mousemoveHandler);\n zr.off('mouseup', mouseupHandler);\n zr.off('mousewheel', mousewheelHandler);\n zr.off('pinch', pinchHandler);\n };\n }\n\n isDragging() {\n return this._dragging;\n }\n\n isPinching() {\n return this._pinching;\n }\n\n setPointerChecker(pointerChecker: RoamController['pointerChecker']) {\n this.pointerChecker = pointerChecker;\n }\n\n dispose() {\n this.disable();\n }\n\n private _mousedownHandler(e: ZRElementEvent) {\n if (eventTool.isMiddleOrRightButtonOnMouseUpDown(e)\n || (e.target && e.target.draggable)\n ) {\n return;\n }\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n // Only check on mosedown, but not mousemove.\n // Mouse can be out of target when mouse moving.\n if (this.pointerChecker && this.pointerChecker(e, x, y)) {\n this._x = x;\n this._y = y;\n this._dragging = true;\n }\n }\n\n private _mousemoveHandler(e: ZRElementEvent) {\n if (!this._dragging\n || !isAvailableBehavior('moveOnMouseMove', e, this._opt)\n || e.gestureEvent === 'pinch'\n || interactionMutex.isTaken(this._zr, 'globalPan')\n ) {\n return;\n }\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const oldX = this._x;\n const oldY = this._y;\n\n const dx = x - oldX;\n const dy = y - oldY;\n\n this._x = x;\n this._y = y;\n\n this._opt.preventDefaultMouseMove && eventTool.stop(e.event);\n\n trigger(this, 'pan', 'moveOnMouseMove', e, {\n dx: dx, dy: dy, oldX: oldX, oldY: oldY, newX: x, newY: y, isAvailableBehavior: null\n });\n }\n\n private _mouseupHandler(e: ZRElementEvent) {\n if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {\n this._dragging = false;\n }\n }\n\n private _mousewheelHandler(e: ZRElementEvent) {\n const shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt);\n const shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt);\n const wheelDelta = e.wheelDelta;\n const absWheelDeltaDelta = Math.abs(wheelDelta);\n const originX = e.offsetX;\n const originY = e.offsetY;\n\n // wheelDelta maybe -0 in chrome mac.\n if (wheelDelta === 0 || (!shouldZoom && !shouldMove)) {\n return;\n }\n\n // If both `shouldZoom` and `shouldMove` is true, trigger\n // their event both, and the final behavior is determined\n // by event listener themselves.\n\n if (shouldZoom) {\n // Convenience:\n // Mac and VM Windows on Mac: scroll up: zoom out.\n // Windows: scroll up: zoom in.\n\n // FIXME: Should do more test in different environment.\n // wheelDelta is too complicated in difference nvironment\n // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),\n // although it has been normallized by zrender.\n // wheelDelta of mouse wheel is bigger than touch pad.\n const factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1;\n const scale = wheelDelta > 0 ? factor : 1 / factor;\n checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, {\n scale: scale, originX: originX, originY: originY, isAvailableBehavior: null\n });\n }\n\n if (shouldMove) {\n // FIXME: Should do more test in different environment.\n const absDelta = Math.abs(wheelDelta);\n // wheelDelta of mouse wheel is bigger than touch pad.\n const scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05);\n checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, {\n scrollDelta: scrollDelta, originX: originX, originY: originY, isAvailableBehavior: null\n });\n }\n }\n\n private _pinchHandler(e: ZRElementEvent) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n const scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1;\n checkPointerAndTrigger(this, 'zoom', null, e, {\n scale: scale, originX: e.pinchX, originY: e.pinchY, isAvailableBehavior: null\n });\n }\n}\n\n\nfunction checkPointerAndTrigger(\n controller: RoamController,\n eventName: T,\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n contollerEvent: RoamEventParams[T]\n) {\n if (controller.pointerChecker\n && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)\n ) {\n // When mouse is out of roamController rect,\n // default befavoius should not be be disabled, otherwise\n // page sliding is disabled, contrary to expectation.\n eventTool.stop(e.event);\n\n trigger(controller, eventName, behaviorToCheck, e, contollerEvent);\n }\n}\n\nfunction trigger(\n controller: RoamController,\n eventName: T,\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n contollerEvent: RoamEventParams[T]\n) {\n // Also provide behavior checker for event listener, for some case that\n // multiple components share one listener.\n contollerEvent.isAvailableBehavior = bind(isAvailableBehavior, null, behaviorToCheck, e);\n // TODO should not have type issue.\n (controller as any).trigger(eventName, contollerEvent);\n}\n\n// settings: {\n// zoomOnMouseWheel\n// moveOnMouseMove\n// moveOnMouseWheel\n// }\n// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.\nfunction isAvailableBehavior(\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n settings: Pick\n) {\n const setting = settings[behaviorToCheck];\n return !behaviorToCheck || (\n setting && (!isString(setting) || e.event[setting + 'Key' as 'shiftKey' | 'ctrlKey' | 'altKey'])\n );\n}\n\nexport default RoamController;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\n\ninterface ControllerHost {\n target: Element,\n zoom?: number\n zoomLimit?: {min?: number, max?: number}\n}\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnPan(controllerHost: ControllerHost, dx: number, dy: number) {\n const target = controllerHost.target;\n target.x += dx;\n target.y += dy;\n target.dirty();\n}\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnZoom(controllerHost: ControllerHost, zoomDelta: number, zoomX: number, zoomY: number) {\n const target = controllerHost.target;\n const zoomLimit = controllerHost.zoomLimit;\n\n let newZoom = controllerHost.zoom = controllerHost.zoom || 1;\n newZoom *= zoomDelta;\n if (zoomLimit) {\n const zoomMin = zoomLimit.min || 0;\n const zoomMax = zoomLimit.max || Infinity;\n newZoom = Math.max(\n Math.min(zoomMax, newZoom),\n zoomMin\n );\n }\n const zoomScale = newZoom / controllerHost.zoom;\n controllerHost.zoom = newZoom;\n // Keep the mouse center when scaling\n target.x -= (zoomX - target.x) * (zoomScale - 1);\n target.y -= (zoomY - target.y) * (zoomScale - 1);\n target.scaleX *= zoomScale;\n target.scaleY *= zoomScale;\n\n target.dirty();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { ElementEvent } from 'zrender/src/Element';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesModel from '../../model/Series';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\n\nconst IRRELEVANT_EXCLUDES = {'axisPointer': 1, 'tooltip': 1, 'brush': 1};\n\n/**\n * Avoid that: mouse click on a elements that is over geo or graph,\n * but roam is triggered.\n */\nexport function onIrrelevantElement(\n e: ElementEvent, api: ExtensionAPI, targetCoordSysModel: CoordinateSystem['model']\n): boolean {\n const model = api.getComponentByElement(e.topTarget);\n // If model is axisModel, it works only if it is injected with coordinateSystem.\n const coordSys = model && (model as SeriesModel).coordinateSystem;\n return model\n && model !== targetCoordSysModel\n && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType)\n && (coordSys && coordSys.model !== targetCoordSysModel);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport RoamController from './RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport {\n enableHoverEmphasis,\n enableComponentHighDownFeatures,\n setDefaultStateProxy\n} from '../../util/states';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport {getUID} from '../../util/component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption, RegoinOption } from '../../coord/geo/GeoModel';\nimport MapSeries, { MapDataItemOption } from '../../chart/map/MapSeries';\nimport GlobalModel from '../../model/Global';\nimport { Payload, ECElement, LineStyleOption, InnerFocus, DisplayState } from '../../util/types';\nimport GeoView from '../geo/GeoView';\nimport MapView from '../../chart/map/MapView';\nimport Geo from '../../coord/geo/Geo';\nimport Model from '../../model/Model';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport ZRText, {TextStyleProps} from 'zrender/src/graphic/Text';\nimport { ViewCoordSysTransformInfoPart } from '../../coord/View';\nimport { GeoSVGGraphicRecord, GeoSVGResource } from '../../coord/geo/GeoSVGResource';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport SeriesData from '../../data/SeriesData';\nimport { GeoJSONRegion } from '../../coord/geo/Region';\nimport { SVGNodeTagLower } from 'zrender/src/tool/parseSVG';\nimport { makeInner } from '../../util/model';\n\ninterface RegionsGroup extends graphic.Group {\n}\n\ntype RegionModel = ReturnType | ReturnType;\n\ntype MapOrGeoModel = GeoModel | MapSeries;\n\ninterface ViewBuildContext {\n api: ExtensionAPI;\n geo: Geo;\n mapOrGeoModel: GeoModel | MapSeries;\n data: SeriesData;\n isVisualEncodedByVisualMap: boolean;\n isGeo: boolean;\n transformInfoRaw: ViewCoordSysTransformInfoPart;\n}\n\ninterface GeoStyleableOption {\n itemStyle?: GeoItemStyleOption;\n lineStyle?: LineStyleOption;\n}\ntype RegionName = string;\n\n/**\n * Only these tags enable use `itemStyle` if they are named in SVG.\n * Other tags like might not suitable for `itemStyle`.\n * They will not be considered to be styled until some requirements come.\n */\nconst OPTION_STYLE_ENABLED_TAGS: SVGNodeTagLower[] = [\n 'rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path'\n];\nconst OPTION_STYLE_ENABLED_TAG_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS\n);\nconst STATE_TRIGGER_TAG_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS.concat(['g']) as SVGNodeTagLower[]\n);\nconst LABEL_HOST_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS.concat(['g']) as SVGNodeTagLower[]\n);\nconst mapLabelRaw = makeInner<{\n ignore: boolean\n}, ZRText>();\n\n\nfunction getFixedItemStyle(model: Model) {\n const itemStyle = model.getItemStyle();\n const areaColor = model.get('areaColor');\n\n // If user want the color not to be changed when hover,\n // they should both set areaColor and color to be null.\n if (areaColor != null) {\n itemStyle.fill = areaColor;\n }\n\n return itemStyle;\n}\nclass MapDraw {\n\n private uid: string;\n\n private _controller: RoamController;\n\n private _controllerHost: {\n target: graphic.Group;\n zoom?: number;\n zoomLimit?: GeoCommonOptionMixin['scaleLimit'];\n };\n\n readonly group: graphic.Group;\n\n\n /**\n * This flag is used to make sure that only one among\n * `pan`, `zoom`, `click` can occurs, otherwise 'selected'\n * action may be triggered when `pan`, which is unexpected.\n */\n private _mouseDownFlag: boolean;\n\n private _regionsGroup: RegionsGroup;\n\n private _regionsGroupByName: zrUtil.HashMap;\n\n private _svgMapName: string;\n\n private _svgGroup: graphic.Group;\n\n private _svgGraphicRecord: GeoSVGGraphicRecord;\n\n // A name may correspond to multiple graphics.\n // Used as event dispatcher.\n private _svgDispatcherMap: zrUtil.HashMap;\n\n\n constructor(api: ExtensionAPI) {\n const group = new graphic.Group();\n this.uid = getUID('ec_map_draw');\n this._controller = new RoamController(api.getZr());\n this._controllerHost = { target: group };\n this.group = group;\n\n group.add(this._regionsGroup = new graphic.Group() as RegionsGroup);\n group.add(this._svgGroup = new graphic.Group());\n }\n\n draw(\n mapOrGeoModel: GeoModel | MapSeries,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n fromView: MapView | GeoView,\n payload: Payload\n ): void {\n\n const isGeo = mapOrGeoModel.mainType === 'geo';\n\n // Map series has data. GEO model that controlled by map series\n // will be assigned with map data. Other GEO model has no data.\n let data = (mapOrGeoModel as MapSeries).getData && (mapOrGeoModel as MapSeries).getData();\n isGeo && ecModel.eachComponent({mainType: 'series', subType: 'map'}, function (mapSeries: MapSeries) {\n if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {\n data = mapSeries.getData();\n }\n });\n\n const geo = mapOrGeoModel.coordinateSystem;\n\n const regionsGroup = this._regionsGroup;\n const group = this.group;\n\n const transformInfo = geo.getTransformInfo();\n const transformInfoRaw = transformInfo.raw;\n const transformInfoRoam = transformInfo.roam;\n\n // No animation when first draw or in action\n const isFirstDraw = !regionsGroup.childAt(0) || payload;\n\n if (isFirstDraw) {\n group.x = transformInfoRoam.x;\n group.y = transformInfoRoam.y;\n group.scaleX = transformInfoRoam.scaleX;\n group.scaleY = transformInfoRoam.scaleY;\n group.dirty();\n }\n else {\n graphic.updateProps(group, transformInfoRoam, mapOrGeoModel);\n }\n\n const isVisualEncodedByVisualMap = data\n && data.getVisual('visualMeta')\n && data.getVisual('visualMeta').length > 0;\n\n const viewBuildCtx = {\n api,\n geo,\n mapOrGeoModel,\n data,\n isVisualEncodedByVisualMap,\n isGeo,\n transformInfoRaw\n };\n\n if (geo.resourceType === 'geoJSON') {\n this._buildGeoJSON(viewBuildCtx);\n }\n else if (geo.resourceType === 'geoSVG') {\n this._buildSVG(viewBuildCtx);\n }\n\n this._updateController(mapOrGeoModel, ecModel, api);\n\n this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView);\n }\n\n private _buildGeoJSON(viewBuildCtx: ViewBuildContext): void {\n const regionsGroupByName = this._regionsGroupByName = zrUtil.createHashMap();\n const regionsInfoByName = zrUtil.createHashMap<{\n dataIdx: number;\n regionModel: Model | Model;\n }, string>();\n const regionsGroup = this._regionsGroup;\n const transformInfoRaw = viewBuildCtx.transformInfoRaw;\n const mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n const data = viewBuildCtx.data;\n\n const transformPoint = function (point: number[]): number[] {\n return [\n point[0] * transformInfoRaw.scaleX + transformInfoRaw.x,\n point[1] * transformInfoRaw.scaleY + transformInfoRaw.y\n ];\n };\n\n regionsGroup.removeAll();\n\n // Only when the resource is GeoJSON, there is `geo.regions`.\n zrUtil.each(viewBuildCtx.geo.regions, function (region: GeoJSONRegion) {\n const regionName = region.name;\n\n // Consider in GeoJson properties.name may be duplicated, for example,\n // there is multiple region named \"United Kindom\" or \"France\" (so many\n // colonies). And it is not appropriate to merge them in geo, which\n // will make them share the same label and bring trouble in label\n // location calculation.\n let regionGroup = regionsGroupByName.get(regionName);\n let { dataIdx, regionModel } = regionsInfoByName.get(regionName) || {};\n\n if (!regionGroup) {\n regionGroup = regionsGroupByName.set(regionName, new graphic.Group() as RegionsGroup);\n regionsGroup.add(regionGroup);\n\n dataIdx = data ? data.indexOfName(regionName) : null;\n regionModel = viewBuildCtx.isGeo\n ? mapOrGeoModel.getRegionModel(regionName)\n : (data ? data.getItemModel(dataIdx) as Model : null);\n\n regionsInfoByName.set(regionName, { dataIdx, regionModel });\n }\n\n const compoundPath = new graphic.CompoundPath({\n segmentIgnoreThreshold: 1,\n shape: {\n paths: []\n }\n });\n regionGroup.add(compoundPath);\n\n zrUtil.each(region.geometries, function (geometry) {\n if (geometry.type !== 'polygon') {\n return;\n }\n const points = [];\n for (let i = 0; i < geometry.exterior.length; ++i) {\n points.push(transformPoint(geometry.exterior[i]));\n }\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n\n for (let i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); ++i) {\n const interior = geometry.interiors[i];\n const points = [];\n for (let j = 0; j < interior.length; ++j) {\n points.push(transformPoint(interior[j]));\n }\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n }\n });\n\n applyOptionStyleForRegion(\n viewBuildCtx, compoundPath, dataIdx, regionModel\n );\n\n if (compoundPath instanceof Displayable) {\n compoundPath.culling = true;\n }\n\n const centerPt = transformPoint(region.getCenter());\n resetLabelForRegion(\n viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt\n );\n });\n\n // Ensure children have been added to `regionGroup` before calling them.\n regionsGroupByName.each(function (regionGroup, regionName) {\n const { dataIdx, regionModel } = regionsInfoByName.get(regionName);\n\n resetEventTriggerForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx\n );\n resetTooltipForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel\n );\n resetStateTriggerForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel\n );\n\n }, this);\n }\n\n private _buildSVG(viewBuildCtx: ViewBuildContext): void {\n const mapName = viewBuildCtx.geo.map;\n const transformInfoRaw = viewBuildCtx.transformInfoRaw;\n\n this._svgGroup.x = transformInfoRaw.x;\n this._svgGroup.y = transformInfoRaw.y;\n this._svgGroup.scaleX = transformInfoRaw.scaleX;\n this._svgGroup.scaleY = transformInfoRaw.scaleY;\n\n if (this._svgResourceChanged(mapName)) {\n this._freeSVG();\n this._useSVG(mapName);\n }\n\n const svgDispatcherMap = this._svgDispatcherMap = zrUtil.createHashMap();\n\n let focusSelf = false;\n zrUtil.each(this._svgGraphicRecord.named, function (namedItem) {\n // Note that we also allow different elements have the same name.\n // For example, a glyph of a city and the label of the city have\n // the same name and their tooltip info can be defined in a single\n // region option.\n\n const regionName = namedItem.name;\n const mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n const data = viewBuildCtx.data;\n const svgNodeTagLower = namedItem.svgNodeTagLower;\n const el = namedItem.el;\n\n const dataIdx = data ? data.indexOfName(regionName) : null;\n const regionModel = mapOrGeoModel.getRegionModel(regionName);\n\n if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null\n && (el instanceof Displayable)\n ) {\n applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel);\n }\n\n if (el instanceof Displayable) {\n el.culling = true;\n }\n\n // We do not know how the SVG like so we'd better not to change z2.\n // Otherwise it might bring some unexpected result. For example,\n // an area hovered that make some inner city can not be clicked.\n (el as ECElement).z2EmphasisLift = 0;\n\n // If self named:\n if (!namedItem.namedFrom) {\n // label should batter to be displayed based on the center of \n // if it is named rather than displayed on each child.\n if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) {\n resetLabelForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null\n );\n }\n\n resetEventTriggerForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx\n );\n\n resetTooltipForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel\n );\n\n if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) {\n const focus = resetStateTriggerForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel\n );\n if (focus === 'self') {\n focusSelf = true;\n }\n const els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []);\n els.push(el);\n }\n }\n\n }, this);\n\n this._enableBlurEntireSVG(focusSelf, viewBuildCtx);\n }\n\n private _enableBlurEntireSVG(\n focusSelf: boolean,\n viewBuildCtx: ViewBuildContext\n ): void {\n // It's a little complicated to support blurring the entire geoSVG in series-map.\n // So do not suport it until some requirements come.\n // At present, in series-map, only regions can be blurred.\n if (focusSelf && viewBuildCtx.isGeo) {\n const blurStyle = (viewBuildCtx.mapOrGeoModel as GeoModel).getModel(['blur', 'itemStyle']).getItemStyle();\n // Only suport `opacity` here. Because not sure that other props are suitable for\n // all of the elements generated by SVG (especially for Text/TSpan/Image/... ).\n const opacity = blurStyle.opacity;\n this._svgGraphicRecord.root.traverse(el => {\n if (!el.isGroup) {\n // PENDING: clear those settings to SVG elements when `_freeSVG`.\n // (Currently it happen not to be needed.)\n setDefaultStateProxy(el as Displayable);\n const style = (el as Displayable).ensureState('blur').style || {};\n // Do not overwrite the region style that already set from region option.\n if (style.opacity == null && opacity != null) {\n style.opacity = opacity;\n }\n // If `ensureState('blur').style = {}`, there will be default opacity.\n\n // Enable `stateTransition` (animation).\n (el as Displayable).ensureState('emphasis');\n }\n });\n }\n }\n\n remove(): void {\n this._regionsGroup.removeAll();\n this._regionsGroupByName = null;\n this._svgGroup.removeAll();\n this._freeSVG();\n this._controller.dispose();\n this._controllerHost = null;\n }\n\n findHighDownDispatchers(name: string, geoModel: GeoModel): Element[] {\n if (name == null) {\n return [];\n }\n\n const geo = geoModel.coordinateSystem;\n\n if (geo.resourceType === 'geoJSON') {\n const regionsGroupByName = this._regionsGroupByName;\n if (regionsGroupByName) {\n const regionGroup = regionsGroupByName.get(name);\n return regionGroup ? [regionGroup] : [];\n }\n }\n else if (geo.resourceType === 'geoSVG') {\n return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || [];\n }\n }\n\n private _svgResourceChanged(mapName: string): boolean {\n return this._svgMapName !== mapName;\n }\n\n private _useSVG(mapName: string): void {\n const resource = geoSourceManager.getGeoResource(mapName);\n if (resource && resource.type === 'geoSVG') {\n const svgGraphic = (resource as GeoSVGResource).useGraphic(this.uid);\n this._svgGroup.add(svgGraphic.root);\n this._svgGraphicRecord = svgGraphic;\n this._svgMapName = mapName;\n }\n }\n\n private _freeSVG(): void {\n const mapName = this._svgMapName;\n if (mapName == null) {\n return;\n }\n\n const resource = geoSourceManager.getGeoResource(mapName);\n if (resource && resource.type === 'geoSVG') {\n (resource as GeoSVGResource).freeGraphic(this.uid);\n }\n this._svgGraphicRecord = null;\n this._svgDispatcherMap = null;\n this._svgGroup.removeAll();\n this._svgMapName = null;\n }\n\n private _updateController(\n this: MapDraw, mapOrGeoModel: GeoModel | MapSeries, ecModel: GlobalModel, api: ExtensionAPI\n ): void {\n const geo = mapOrGeoModel.coordinateSystem;\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n\n // @ts-ignore FIXME:TS\n controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');\n controllerHost.zoom = geo.getZoom();\n\n // roamType is will be set default true if it is null\n // @ts-ignore FIXME:TS\n controller.enable(mapOrGeoModel.get('roam') || false);\n const mainType = mapOrGeoModel.mainType;\n\n function makeActionBase(): Payload {\n const action = {\n type: 'geoRoam',\n componentType: mainType\n } as Payload;\n action[mainType + 'Id'] = mapOrGeoModel.id;\n return action;\n }\n\n controller.off('pan').on('pan', function (e) {\n this._mouseDownFlag = false;\n\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n dx: e.dx,\n dy: e.dy\n }));\n }, this);\n\n controller.off('zoom').on('zoom', function (e) {\n this._mouseDownFlag = false;\n\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n }));\n\n }, this);\n\n controller.setPointerChecker(function (e, x, y) {\n return geo.containPoint([x, y])\n && !onIrrelevantElement(e, api, mapOrGeoModel);\n });\n }\n\n /**\n * FIXME: this is a temporarily workaround.\n * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like\n * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`\n * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified\n * props will have no chance to be restored.\n * Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in\n * `renderSeries` will cache the modified `ignore` to `el._normalState`.\n * TODO:\n * Use clone/immutable in `LabelManager`?\n */\n resetForLabelLayout() {\n this.group.traverse(el => {\n const label = el.getTextContent();\n if (label) {\n label.ignore = mapLabelRaw(label).ignore;\n }\n });\n }\n\n private _updateMapSelectHandler(\n mapOrGeoModel: GeoModel | MapSeries,\n regionsGroup: RegionsGroup,\n api: ExtensionAPI,\n fromView: MapView | GeoView\n ): void {\n const mapDraw = this;\n\n regionsGroup.off('mousedown');\n regionsGroup.off('click');\n\n // @ts-ignore FIXME:TS resolve type conflict\n if (mapOrGeoModel.get('selectedMode')) {\n\n regionsGroup.on('mousedown', function () {\n mapDraw._mouseDownFlag = true;\n });\n\n regionsGroup.on('click', function (e) {\n if (!mapDraw._mouseDownFlag) {\n return;\n }\n mapDraw._mouseDownFlag = false;\n });\n }\n }\n\n};\n\nfunction applyOptionStyleForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Displayable,\n dataIndex: number,\n regionModel: Model<\n GeoStyleableOption & {\n emphasis?: GeoStyleableOption;\n select?: GeoStyleableOption;\n blur?: GeoStyleableOption;\n }\n >\n): void {\n // All of the path are using `itemStyle`, becuase\n // (1) Some SVG also use fill on polyline (The different between\n // polyline and polygon is \"open\" or \"close\" but not fill or not).\n // (2) For the common props like opacity, if some use itemStyle\n // and some use `lineStyle`, it might confuse users.\n // (3) Most SVG use , where can not detect wether draw a \"line\"\n // or a filled shape, so use `itemStyle` for .\n\n const normalStyleModel = regionModel.getModel('itemStyle');\n const emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']);\n const blurStyleModel = regionModel.getModel(['blur', 'itemStyle']);\n const selectStyleModel = regionModel.getModel(['select', 'itemStyle']);\n\n // NOTE: DONT use 'style' in visual when drawing map.\n // This component is used for drawing underlying map for both geo component and map series.\n const normalStyle = getFixedItemStyle(normalStyleModel);\n const emphasisStyle = getFixedItemStyle(emphasisStyleModel);\n const selectStyle = getFixedItemStyle(selectStyleModel);\n const blurStyle = getFixedItemStyle(blurStyleModel);\n\n // Update the itemStyle if has data visual\n const data = viewBuildCtx.data;\n if (data) {\n // Only visual color of each item will be used. It can be encoded by visualMap\n // But visual color of series is used in symbol drawing\n\n // Visual color for each series is for the symbol draw\n const style = data.getItemVisual(dataIndex, 'style');\n const decal = data.getItemVisual(dataIndex, 'decal');\n if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) {\n normalStyle.fill = style.fill;\n }\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, viewBuildCtx.api);\n }\n }\n\n // SVG text, tspan and image can be named but not supporeted\n // to be styled by region option yet.\n el.setStyle(normalStyle);\n el.style.strokeNoScale = true;\n el.ensureState('emphasis').style = emphasisStyle;\n el.ensureState('select').style = selectStyle;\n el.ensureState('blur').style = blurStyle;\n\n // Enable blur\n setDefaultStateProxy(el);\n}\n\nfunction resetLabelForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel,\n // Exist only if `viewBuildCtx.data` exists.\n dataIdx: number,\n // If labelXY not provided, use `textConfig.position: 'inside'`\n labelXY: number[]\n): void {\n const data = viewBuildCtx.data;\n const isGeo = viewBuildCtx.isGeo;\n\n const isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx) as number);\n const itemLayout = data && data.getItemLayout(dataIdx);\n\n // In the following cases label will be drawn\n // 1. In map series and data value is NaN\n // 2. In geo component\n // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout\n if (\n ((isGeo || isDataNaN))\n || (itemLayout && itemLayout.showLabel)\n ) {\n\n const query = !isGeo ? dataIdx : regionName;\n let labelFetcher;\n\n // Consider dataIdx not found.\n if (!data || dataIdx >= 0) {\n labelFetcher = mapOrGeoModel;\n }\n\n const specifiedTextOpt: Partial> = labelXY ? {\n normal: {\n align: 'center',\n verticalAlign: 'middle'\n }\n } : null;\n\n // Caveat: must be called after `setDefaultStateProxy(el);` called.\n // because textContent will be assign with `el.stateProxy` inside.\n setLabelStyle(\n el,\n getLabelStatesModels(regionModel),\n {\n labelFetcher: labelFetcher,\n labelDataIndex: query,\n defaultText: regionName\n },\n specifiedTextOpt\n );\n\n const textEl = el.getTextContent();\n if (textEl) {\n mapLabelRaw(textEl).ignore = textEl.ignore;\n\n if (el.textConfig && labelXY) {\n // Compute a relative offset based on the el bounding rect.\n const rect = el.getBoundingRect().clone();\n // Need to make sure the percent position base on the same rect in normal and\n // emphasis state. Otherwise if using boundingRect of el, but the emphasis state\n // has borderWidth (even 0.5px), the text position will be changed obviously\n // if the position is very big like ['1234%', '1345%'].\n el.textConfig.layoutRect = rect;\n el.textConfig.position = [\n ((labelXY[0] - rect.x) / rect.width * 100) + '%',\n ((labelXY[1] - rect.y) / rect.height * 100) + '%'\n ];\n }\n }\n\n // PENDING:\n // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.\n // But el.dataIndex is also used to determine whether user event should be triggered,\n // where el.seriesIndex or el.dataModel must be specified. At present for a single el\n // there is not case that \"only label layout enabled but user event disabled\", so here\n // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.\n\n (el as ECElement).disableLabelAnimation = true;\n }\n else {\n el.removeTextContent();\n el.removeTextConfig();\n (el as ECElement).disableLabelAnimation = null;\n }\n}\n\nfunction resetEventTriggerForRegion(\n viewBuildCtx: ViewBuildContext,\n eventTrigger: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel,\n // Exist only if `viewBuildCtx.data` exists.\n dataIdx: number\n): void {\n // setItemGraphicEl, setHoverStyle after all polygons and labels\n // are added to the rigionGroup\n if (viewBuildCtx.data) {\n // FIXME: when series-map use a SVG map, and there are duplicated name specified\n // on different SVG elements, after `data.setItemGraphicEl(...)`:\n // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip\n // can be triggered only mouse hover. That's correct.\n // (2) only the last element will be kept in `data`, so that if trigger tooltip\n // by `dispatchAction`, only the last one can be found and triggered. That might be\n // not correct. We will fix it in future if anyone demanding that.\n viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger);\n }\n // series-map will not trigger \"geoselectchange\" no matter it is\n // based on a declared geo component. Becuause series-map will\n // trigger \"selectchange\". If it trigger both the two events,\n // If users call `chart.dispatchAction({type: 'toggleSelect'})`,\n // it not easy to also fire event \"geoselectchanged\".\n else {\n // Package custom mouse event for geo component\n getECData(eventTrigger).eventData = {\n componentType: 'geo',\n componentIndex: mapOrGeoModel.componentIndex,\n geoIndex: mapOrGeoModel.componentIndex,\n name: regionName,\n region: (regionModel && regionModel.option) || {}\n };\n }\n}\n\nfunction resetTooltipForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel\n): void {\n if (!viewBuildCtx.data) {\n graphic.setTooltipConfig({\n el: el,\n componentModel: mapOrGeoModel,\n itemName: regionName,\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n itemTooltipOption: regionModel.get('tooltip')\n });\n }\n}\n\nfunction resetStateTriggerForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel\n): InnerFocus {\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode');\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n const emphasisModel = regionModel.getModel('emphasis');\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n el, focus, emphasisModel.get('blurScope')\n );\n if (viewBuildCtx.isGeo) {\n enableComponentHighDownFeatures(el, mapOrGeoModel as GeoModel, regionName);\n }\n\n return focus;\n}\n\nexport default MapDraw;\n\n\n// @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as graphic from '../../util/graphic';\nimport MapDraw from '../../component/helper/MapDraw';\nimport ChartView from '../../view/Chart';\nimport MapSeries, { MapDataItemOption } from './MapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, DisplayState, ECElement } from '../../util/types';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { setStatesFlag, Z2_EMPHASIS_LIFT } from '../../util/states';\n\n\nclass MapView extends ChartView {\n\n static type = 'map' as const;\n readonly type = MapView.type;\n\n private _mapDraw: MapDraw;\n\n render(\n mapModel: MapSeries,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n // Not render if it is an toggleSelect action from self\n if (payload && payload.type === 'mapToggleSelect'\n && payload.from === this.uid\n ) {\n return;\n }\n\n const group = this.group;\n group.removeAll();\n\n if (mapModel.getHostGeoModel()) {\n return;\n }\n\n if (this._mapDraw && payload && payload.type === 'geoRoam') {\n this._mapDraw.resetForLabelLayout();\n }\n\n // Not update map if it is an roam action from self\n if (!(payload && payload.type === 'geoRoam'\n && payload.componentType === 'series'\n && payload.seriesId === mapModel.id\n )\n ) {\n if (mapModel.needsDrawMap) {\n const mapDraw = this._mapDraw || new MapDraw(api);\n group.add(mapDraw.group);\n\n mapDraw.draw(mapModel, ecModel, api, this, payload);\n\n this._mapDraw = mapDraw;\n }\n else {\n // Remove drawed map\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n }\n else {\n const mapDraw = this._mapDraw;\n mapDraw && group.add(mapDraw.group);\n }\n\n mapModel.get('showLegendSymbol') && ecModel.getComponent('legend')\n && this._renderSymbols(mapModel, ecModel, api);\n }\n\n remove(): void {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n this.group.removeAll();\n }\n\n dispose(): void {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n\n private _renderSymbols(mapModel: MapSeries, ecModel: GlobalModel, api: ExtensionAPI): void {\n const originalData = mapModel.originalData;\n const group = this.group;\n\n originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) {\n if (isNaN(value as number)) {\n return;\n }\n\n const layout = originalData.getItemLayout(originalDataIndex);\n\n if (!layout || !layout.point) {\n // Not exists in map\n return;\n }\n\n const point = layout.point;\n const offset = layout.offset;\n\n const circle = new graphic.Circle({\n style: {\n // Because the special of map draw.\n // Which needs statistic of multiple series and draw on one map.\n // And each series also need a symbol with legend color\n //\n // Layout and visual are put one the different data\n // TODO\n fill: mapModel.getData().getVisual('style').fill\n },\n shape: {\n cx: point[0] + offset * 9,\n cy: point[1],\n r: 3\n },\n silent: true,\n // Do not overlap the first series, on which labels are displayed.\n z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0)\n });\n\n // Only the series that has the first value on the same region is in charge of rendering the label.\n // But consider the case:\n // series: [\n // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},\n // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}\n // ]\n // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.\n // For backward compatibility, we follow the rule that render label `A` by the\n // settings on series `X` but render label `C` by the settings on series `Y`.\n if (!offset) {\n\n const fullData = mapModel.mainSeries.getData();\n const name = originalData.getName(originalDataIndex);\n\n const fullIndex = fullData.indexOfName(name);\n\n const itemModel = originalData.getItemModel(originalDataIndex);\n const labelModel = itemModel.getModel('label');\n\n const regionGroup = fullData.getItemGraphicEl(fullIndex);\n\n // `getFormattedLabel` needs to use `getData` inside. Here\n // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.\n // FIXME\n // If this is not the `mainSeries`, the item model (like label formatter)\n // set on original data item will never get. But it has been working\n // like that from the begining, and this scenario is rarely encountered.\n // So it won't be fixed until have to.\n\n setLabelStyle(circle, getLabelStatesModels(itemModel), {\n labelFetcher: {\n getFormattedLabel(idx: number, state: DisplayState) {\n return mapModel.getFormattedLabel(fullIndex, state);\n }\n }\n });\n (circle as ECElement).disableLabelAnimation = true;\n if (!labelModel.get('position')) {\n circle.setTextConfig({\n position: 'bottom'\n });\n }\n\n (regionGroup as ECElement).onHoverStateChange = function (toState) {\n setStatesFlag(circle, toState);\n };\n }\n\n group.add(circle);\n });\n }\n}\n\nexport default MapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport SeriesModel from '../../model/Series';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin,\n OptionDataItemObject,\n OptionDataValueNumeric,\n ParsedValue,\n SeriesOnGeoOptionMixin,\n StatesOptionMixin,\n SeriesLabelOption\n} from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption } from '../../coord/geo/GeoModel';\nimport SeriesData from '../../data/SeriesData';\nimport Model from '../../model/Model';\nimport Geo from '../../coord/geo/Geo';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport {LegendIconParams} from '../../component/legend/LegendModel';\nimport {Group} from '../../util/graphic';\n\nexport interface MapStateOption {\n itemStyle?: GeoItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface MapDataItemOption extends MapStateOption, StatesOptionMixin,\n OptionDataItemObject {\n cursor?: string\n}\n\nexport type MapValueCalculationType = 'sum' | 'average' | 'min' | 'max';\n\nexport interface MapSeriesOption extends\n SeriesOption, MapStateOption,\n\n GeoCommonOptionMixin,\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n SeriesOnGeoOptionMixin,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin {\n type?: 'map'\n\n coordinateSystem?: string;\n silent?: boolean;\n\n // FIXME:TS add marker types\n markLine?: any;\n markPoint?: any;\n markArea?: any;\n\n mapValueCalculation?: MapValueCalculationType;\n\n showLegendSymbol?: boolean;\n\n // @deprecated. Only for echarts2 backward compat.\n geoCoord?: Dictionary;\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | MapDataItemOption)[]\n\n\n nameProperty?: string;\n}\n\nclass MapSeries extends SeriesModel {\n\n static type = 'series.map' as const;\n type = MapSeries.type;\n\n static dependencies = ['geo'];\n\n static layoutMode = 'box' as const;\n\n coordinateSystem: Geo;\n\n // -----------------\n // Injected outside\n originalData: SeriesData;\n mainSeries: MapSeries;\n // Only first map series of same mapType will drawMap.\n needsDrawMap: boolean = false;\n // Group of all map series with same mapType\n seriesGroup: MapSeries[] = [];\n\n\n getInitialData(this: MapSeries, option: MapSeriesOption): SeriesData {\n const data = createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n const dataNameMap = zrUtil.createHashMap();\n const toAppendNames = [] as string[];\n\n for (let i = 0, len = data.count(); i < len; i++) {\n const name = data.getName(i);\n dataNameMap.set(name, true);\n }\n\n const geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);\n zrUtil.each(geoSource.regions, function (region) {\n const name = region.name;\n if (!dataNameMap.get(name)) {\n toAppendNames.push(name);\n }\n });\n\n // Complete data with missing regions. The consequent processes (like visual\n // map and render) can not be performed without a \"full data\". For example,\n // find `dataIndex` by name.\n data.appendValues([], toAppendNames);\n\n return data;\n }\n\n /**\n * If no host geo model, return null, which means using a\n * inner exclusive geo model.\n */\n getHostGeoModel(): GeoModel {\n const geoIndex = this.option.geoIndex;\n return geoIndex != null\n ? this.ecModel.getComponent('geo', geoIndex) as GeoModel\n : null;\n }\n\n getMapType(): string {\n return (this.getHostGeoModel() || this).option.map;\n }\n\n // _fillOption(option, mapName) {\n // Shallow clone\n // option = zrUtil.extend({}, option);\n\n // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);\n\n // return option;\n // }\n\n getRawValue(dataIndex: number): ParsedValue {\n // Use value stored in data instead because it is calculated from multiple series\n // FIXME Provide all value of multiple series ?\n const data = this.getData();\n return data.get(data.mapDimension('value'), dataIndex);\n }\n\n /**\n * Get model of region\n */\n getRegionModel(regionName: string): Model {\n const data = this.getData();\n return data.getItemModel(data.indexOfName(regionName));\n }\n\n /**\n * Map tooltip formatter\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n // FIXME orignalData and data is a bit confusing\n const data = this.getData();\n const value = this.getRawValue(dataIndex);\n const name = data.getName(dataIndex);\n\n const seriesGroup = this.seriesGroup;\n const seriesNames = [];\n for (let i = 0; i < seriesGroup.length; i++) {\n const otherIndex = seriesGroup[i].originalData.indexOfName(name);\n const valueDim = data.mapDimension('value');\n if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex) as number)) {\n seriesNames.push(seriesGroup[i].name);\n }\n }\n\n return createTooltipMarkup('section', {\n header: seriesNames.join(', '),\n noHeader: !seriesNames.length,\n blocks: [createTooltipMarkup('nameValue', {\n name: name, value: value\n })]\n });\n }\n\n getTooltipPosition = function (this: MapSeries, dataIndex: number): number[] {\n if (dataIndex != null) {\n const name = this.getData().getName(dataIndex);\n const geo = this.coordinateSystem;\n const region = geo.getRegion(name);\n\n return region && geo.dataToPoint(region.getCenter());\n }\n };\n\n setZoom(zoom: number): void {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]): void {\n this.option.center = center;\n }\n\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group {\n const iconType = opt.icon || 'roundRect';\n const icon = createSymbol(\n iconType,\n 0,\n 0,\n opt.itemWidth,\n opt.itemHeight,\n opt.itemStyle.fill\n );\n\n icon.setStyle(opt.itemStyle);\n // Map do not use itemStyle.borderWidth as border width\n icon.style.stroke = 'none';\n // No rotation because no series visual symbol for map\n\n if (iconType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n return icon;\n }\n\n static defaultOption: MapSeriesOption = {\n // \u4E00\u7EA7\u5C42\u53E0\n zlevel: 0,\n // \u4E8C\u7EA7\u5C42\u53E0\n z: 2,\n\n coordinateSystem: 'geo',\n\n // map should be explicitly specified since ec3.\n map: '',\n\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n // geoIndex: 0,\n\n // 'center' | 'left' | 'right' | 'x%' | {number}\n left: 'center',\n // 'center' | 'top' | 'bottom' | 'x%' | {number}\n top: 'center',\n // right\n // bottom\n // width:\n // height\n\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n\n showLegendSymbol: true,\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ],\n // higher priority than center and zoom\n boundingCoords: null,\n\n // Default on center of map\n center: null,\n\n zoom: 1,\n\n scaleLimit: null,\n\n selectedMode: true,\n\n label: {\n show: false,\n color: '#000'\n },\n // scaleLimit: null,\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444',\n areaColor: '#eee'\n },\n\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n areaColor: 'rgba(255,215,0,0.8)'\n }\n },\n\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n nameProperty: 'name'\n };\n\n}\n\nexport default MapSeries;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport MapSeries, { MapValueCalculationType } from './MapSeries';\nimport GlobalModel from '../../model/Global';\n\n// FIXME \u516C\u7528\uFF1F\nfunction dataStatistics(datas: SeriesData[], statisticType: MapValueCalculationType): SeriesData {\n const dataNameMap = {} as {[mapKey: string]: number[]};\n\n zrUtil.each(datas, function (data) {\n data.each(data.mapDimension('value'), function (value: number, idx) {\n // Add prefix to avoid conflict with Object.prototype.\n const mapKey = 'ec-' + data.getName(idx);\n dataNameMap[mapKey] = dataNameMap[mapKey] || [];\n if (!isNaN(value)) {\n dataNameMap[mapKey].push(value);\n }\n });\n });\n\n return datas[0].map(datas[0].mapDimension('value'), function (value, idx) {\n const mapKey = 'ec-' + datas[0].getName(idx);\n let sum = 0;\n let min = Infinity;\n let max = -Infinity;\n const len = dataNameMap[mapKey].length;\n for (let i = 0; i < len; i++) {\n min = Math.min(min, dataNameMap[mapKey][i]);\n max = Math.max(max, dataNameMap[mapKey][i]);\n sum += dataNameMap[mapKey][i];\n }\n let result;\n if (statisticType === 'min') {\n result = min;\n }\n else if (statisticType === 'max') {\n result = max;\n }\n else if (statisticType === 'average') {\n result = sum / len;\n }\n else {\n result = sum;\n }\n return len === 0 ? NaN : result;\n });\n}\n\nexport default function mapDataStatistic(ecModel: GlobalModel): void {\n const seriesGroups = {} as {[key: string]: MapSeries[]};\n ecModel.eachSeriesByType('map', function (seriesModel: MapSeries) {\n const hostGeoModel = seriesModel.getHostGeoModel();\n const key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();\n (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);\n });\n\n zrUtil.each(seriesGroups, function (seriesList, key) {\n const data = dataStatistics(\n zrUtil.map(seriesList, function (seriesModel) {\n return seriesModel.getData();\n }),\n seriesList[0].get('mapValueCalculation')\n );\n\n for (let i = 0; i < seriesList.length; i++) {\n seriesList[i].originalData = seriesList[i].getData();\n }\n\n // FIXME Put where?\n for (let i = 0; i < seriesList.length; i++) {\n seriesList[i].seriesGroup = seriesList;\n seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();\n\n seriesList[i].setData(data.cloneShallow());\n seriesList[i].mainSeries = seriesList[0];\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport MapSeries from './MapSeries';\nimport { Dictionary } from '../../util/types';\n\nexport default function mapSymbolLayout(ecModel: GlobalModel) {\n\n const processedMapType = {} as {[mapType: string]: boolean};\n\n ecModel.eachSeriesByType('map', function (mapSeries: MapSeries) {\n const mapType = mapSeries.getMapType();\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n const mapSymbolOffsets = {} as Dictionary;\n\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n const geo = subMapSeries.coordinateSystem;\n const data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n const name = data.getName(idx);\n const region = geo.getRegion(name);\n\n // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n if (!region || isNaN(value as number)) {\n return;\n }\n\n const offset = mapSymbolOffsets[name] || 0;\n\n const point = geo.dataToPoint(region.getCenter());\n\n mapSymbolOffsets[name] = offset + 1;\n\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n });\n\n // Show label of those region not has legendIcon (which is offset 0)\n const data = mapSeries.getData();\n data.each(function (idx) {\n const name = data.getName(idx);\n const layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n\n processedMapType[mapType] = true;\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Simple view coordinate system\n * Mapping given x, y to transformd view x, y\n */\n\nimport * as vector from 'zrender/src/core/vector';\nimport * as matrix from 'zrender/src/core/matrix';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport Transformable from 'zrender/src/core/Transformable';\nimport { CoordinateSystemMaster, CoordinateSystem } from './CoordinateSystem';\nimport GlobalModel from '../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../util/model';\n\nconst v2ApplyTransform = vector.applyTransform;\n\nexport type ViewCoordSysTransformInfoPart = Pick;\n\nclass View extends Transformable implements CoordinateSystemMaster, CoordinateSystem {\n\n readonly type: string = 'view';\n\n static dimensions = ['x', 'y'];\n readonly dimensions = ['x', 'y'];\n\n readonly name: string;\n\n zoomLimit: {\n max?: number;\n min?: number;\n };\n\n /**\n * Represents the transform brought by roam/zoom.\n * If `View['_viewRect']` applies roam transform,\n * we can get the final displayed rect.\n */\n private _roamTransformable = new Transformable();\n /**\n * Represents the transform from `View['_rect']` to `View['_viewRect']`.\n */\n protected _rawTransformable = new Transformable();\n private _rawTransform: matrix.MatrixArray;\n\n /**\n * This is a user specified point on the source, which will be\n * located to the center of the `View['_viewRect']`.\n * The unit this the same as `View['_rect']`.\n */\n private _center: number[];\n private _zoom: number;\n\n /**\n * The rect of the source, where the measure is used by \"data\" and \"center\".\n * Has nothing to do with roam/zoom.\n * The unit is defined by the source. For example,\n * for geo source the unit is lat/lng,\n * for SVG source the unit is the same as the width/height defined in SVG.\n */\n private _rect: BoundingRect;\n /**\n * The visible rect on the canvas. Has nothing to do with roam/zoom.\n * The unit of `View['_viewRect']` is pixel of the canvas.\n */\n private _viewRect: BoundingRect;\n\n\n constructor(name?: string) {\n super();\n this.name = name;\n }\n\n setBoundingRect(x: number, y: number, width: number, height: number): BoundingRect {\n this._rect = new BoundingRect(x, y, width, height);\n return this._rect;\n }\n\n /**\n * @return {module:zrender/core/BoundingRect}\n */\n getBoundingRect(): BoundingRect {\n return this._rect;\n }\n\n setViewRect(x: number, y: number, width: number, height: number): void {\n this._transformTo(x, y, width, height);\n this._viewRect = new BoundingRect(x, y, width, height);\n }\n\n /**\n * Transformed to particular position and size\n */\n protected _transformTo(x: number, y: number, width: number, height: number): void {\n const rect = this.getBoundingRect();\n const rawTransform = this._rawTransformable;\n\n rawTransform.transform = rect.calculateTransform(\n new BoundingRect(x, y, width, height)\n );\n\n const rawParent = rawTransform.parent;\n rawTransform.parent = null;\n rawTransform.decomposeTransform();\n rawTransform.parent = rawParent;\n\n this._updateTransform();\n }\n\n /**\n * Set center of view\n */\n setCenter(centerCoord?: number[]): void {\n if (!centerCoord) {\n return;\n }\n this._center = centerCoord;\n\n this._updateCenterAndZoom();\n }\n\n setZoom(zoom: number): void {\n zoom = zoom || 1;\n\n const zoomLimit = this.zoomLimit;\n if (zoomLimit) {\n if (zoomLimit.max != null) {\n zoom = Math.min(zoomLimit.max, zoom);\n }\n if (zoomLimit.min != null) {\n zoom = Math.max(zoomLimit.min, zoom);\n }\n }\n this._zoom = zoom;\n\n this._updateCenterAndZoom();\n }\n\n /**\n * Get default center without roam\n */\n getDefaultCenter(): number[] {\n // Rect before any transform\n const rawRect = this.getBoundingRect();\n const cx = rawRect.x + rawRect.width / 2;\n const cy = rawRect.y + rawRect.height / 2;\n\n return [cx, cy];\n }\n\n getCenter(): number[] {\n return this._center || this.getDefaultCenter();\n }\n\n getZoom(): number {\n return this._zoom || 1;\n }\n\n getRoamTransform(): matrix.MatrixArray {\n return this._roamTransformable.getLocalTransform();\n }\n\n /**\n * Remove roam\n */\n private _updateCenterAndZoom(): void {\n // Must update after view transform updated\n const rawTransformMatrix = this._rawTransformable.getLocalTransform();\n const roamTransform = this._roamTransformable;\n let defaultCenter = this.getDefaultCenter();\n let center = this.getCenter();\n const zoom = this.getZoom();\n\n center = vector.applyTransform([], center, rawTransformMatrix);\n defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);\n\n roamTransform.originX = center[0];\n roamTransform.originY = center[1];\n roamTransform.x = defaultCenter[0] - center[0];\n roamTransform.y = defaultCenter[1] - center[1];\n roamTransform.scaleX = roamTransform.scaleY = zoom;\n\n this._updateTransform();\n }\n\n /**\n * Update transform props on `this` based on the current\n * `this._roamTransformable` and `this._rawTransformable`.\n */\n protected _updateTransform(): void {\n const roamTransformable = this._roamTransformable;\n const rawTransformable = this._rawTransformable;\n\n rawTransformable.parent = roamTransformable;\n roamTransformable.updateTransform();\n rawTransformable.updateTransform();\n\n matrix.copy(this.transform || (this.transform = []), rawTransformable.transform || matrix.create());\n\n this._rawTransform = rawTransformable.getLocalTransform();\n\n this.invTransform = this.invTransform || [];\n matrix.invert(this.invTransform, this.transform);\n\n this.decomposeTransform();\n }\n\n getTransformInfo(): {\n roam: ViewCoordSysTransformInfoPart\n raw: ViewCoordSysTransformInfoPart\n } {\n const rawTransformable = this._rawTransformable;\n\n const roamTransformable = this._roamTransformable;\n // Becuase roamTransformabel has `originX/originY` modified,\n // but the caller of `getTransformInfo` can not handle `originX/originY`,\n // so need to recalcualte them.\n const dummyTransformable = new Transformable();\n dummyTransformable.transform = roamTransformable.transform;\n dummyTransformable.decomposeTransform();\n\n return {\n roam: {\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY\n },\n raw: {\n x: rawTransformable.x,\n y: rawTransformable.y,\n scaleX: rawTransformable.scaleX,\n scaleY: rawTransformable.scaleY\n }\n };\n }\n\n getViewRect(): BoundingRect {\n return this._viewRect;\n }\n\n /**\n * Get view rect after roam transform\n */\n getViewRectAfterRoam(): BoundingRect {\n const rect = this.getBoundingRect().clone();\n rect.applyTransform(this.transform);\n return rect;\n }\n\n /**\n * Convert a single (lon, lat) data item to (x, y) point.\n */\n dataToPoint(data: number[], noRoam?: boolean, out?: number[]): number[] {\n const transform = noRoam ? this._rawTransform : this.transform;\n out = out || [];\n return transform\n ? v2ApplyTransform(out, data, transform)\n : vector.copy(out, data);\n }\n\n /**\n * Convert a (x, y) point to (lon, lat) data\n */\n pointToData(point: number[]): number[] {\n const invTransform = this.invTransform;\n return invTransform\n ? v2ApplyTransform([], point, invTransform)\n : [point[0], point[1]];\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n /**\n * @implements\n */\n containPoint(point: number[]): boolean {\n return this.getViewRectAfterRoam().contain(point[0], point[1]);\n }\n\n /**\n * @return {number}\n */\n // getScalarScale() {\n // // Use determinant square root of transform to mutiply scalar\n // let m = this.transform;\n // let det = Math.sqrt(Math.abs(m[0] * m[3] - m[2] * m[1]));\n // return det;\n // }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): View {\n const seriesModel = finder.seriesModel;\n return seriesModel ? seriesModel.coordinateSystem as View : null; // e.g., graph.\n}\n\nexport default View;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport View from '../View';\nimport geoSourceManager from './geoSourceManager';\nimport { GeoJSONRegion, Region } from './Region';\nimport { GeoResource, NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown, SINGLE_REFERRING } from '../../util/model';\nimport GeoModel from './GeoModel';\nimport { resizeGeoType } from './geoCreator';\n\nconst GEO_DEFAULT_PARAMS: {\n [type in GeoResource['type']]: {\n aspectScale: number;\n invertLongitute: boolean;\n }\n} = {\n 'geoJSON': {\n aspectScale: 0.75,\n invertLongitute: true\n },\n 'geoSVG': {\n aspectScale: 1,\n invertLongitute: false\n }\n} as const;\n\nexport const geo2DDimensions = ['lng', 'lat'];\n\n\nclass Geo extends View {\n\n dimensions = geo2DDimensions;\n\n type = 'geo';\n\n // map type\n readonly map: string;\n readonly resourceType: GeoResource['type'];\n\n // Only store specified name coord via `addGeoCoord`.\n private _nameCoordMap: zrUtil.HashMap = zrUtil.createHashMap();\n private _regionsMap: zrUtil.HashMap;\n private _invertLongitute: boolean;\n readonly regions: Region[];\n readonly aspectScale: number;\n\n // Injected outside\n model: GeoModel;\n resize: resizeGeoType;\n\n constructor(\n name: string,\n map: string,\n opt: {\n // Specify name alias\n nameMap?: NameMap;\n nameProperty?: string;\n aspectScale?: number;\n }\n ) {\n super(name);\n\n this.map = map;\n\n const source = geoSourceManager.load(map, opt.nameMap, opt.nameProperty);\n const resource = geoSourceManager.getGeoResource(map);\n this.resourceType = resource ? resource.type : null;\n\n const defaultParmas = GEO_DEFAULT_PARAMS[resource.type];\n\n this._regionsMap = source.regionsMap;\n this._invertLongitute = defaultParmas.invertLongitute;\n this.regions = source.regions;\n this.aspectScale = zrUtil.retrieve2(opt.aspectScale, defaultParmas.aspectScale);\n\n const boundingRect = source.boundingRect;\n this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height);\n }\n\n /**\n * Whether contain the given [lng, lat] coord.\n */\n // Never used yet.\n // containCoord(coord: number[]) {\n // const regions = this.regions;\n // for (let i = 0; i < regions.length; i++) {\n // const region = regions[i];\n // if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n // return true;\n // }\n // }\n // return false;\n // }\n\n protected _transformTo(x: number, y: number, width: number, height: number): void {\n let rect = this.getBoundingRect();\n const invertLongitute = this._invertLongitute;\n\n rect = rect.clone();\n\n if (invertLongitute) {\n // Longitute is inverted\n rect.y = -rect.y - rect.height;\n }\n\n const rawTransformable = this._rawTransformable;\n\n rawTransformable.transform = rect.calculateTransform(\n new BoundingRect(x, y, width, height)\n );\n\n const rawParent = rawTransformable.parent;\n rawTransformable.parent = null;\n rawTransformable.decomposeTransform();\n rawTransformable.parent = rawParent;\n\n if (invertLongitute) {\n rawTransformable.scaleY = -rawTransformable.scaleY;\n }\n\n this._updateTransform();\n }\n\n getRegion(name: string): Region {\n return this._regionsMap.get(name);\n }\n\n getRegionByCoord(coord: number[]): Region {\n const regions = this.regions;\n for (let i = 0; i < regions.length; i++) {\n const region = regions[i];\n if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n return regions[i];\n }\n }\n }\n\n /**\n * Add geoCoord for indexing by name\n */\n addGeoCoord(name: string, geoCoord: number[]): void {\n this._nameCoordMap.set(name, geoCoord);\n }\n\n /**\n * Get geoCoord by name\n */\n getGeoCoord(name: string): number[] {\n const region = this._regionsMap.get(name);\n // calcualte center only on demand.\n return this._nameCoordMap.get(name) || (region && region.getCenter());\n }\n\n dataToPoint(data: number[] | string, noRoam?: boolean, out?: number[]): number[] {\n if (typeof data === 'string') {\n // Map area name to geoCoord\n data = this.getGeoCoord(data);\n }\n if (data) {\n return View.prototype.dataToPoint.call(this, data, noRoam, out);\n }\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n};\n\nzrUtil.mixin(Geo, View);\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Geo {\n const geoModel = finder.geoModel as GeoModel;\n const seriesModel = finder.seriesModel;\n return geoModel\n ? geoModel.coordinateSystem\n : seriesModel\n ? (\n seriesModel.coordinateSystem as Geo // For map series.\n || (\n (seriesModel.getReferringComponents('geo', SINGLE_REFERRING).models[0] || {}\n ) as GeoModel).coordinateSystem\n )\n : null;\n}\n\nexport default Geo;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Geo, { geo2DDimensions } from './Geo';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport geoSourceManager from './geoSourceManager';\nimport GeoModel, { GeoOption, RegoinOption } from './GeoModel';\nimport MapSeries, { MapSeriesOption } from '../../chart/map/MapSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { CoordinateSystemCreator } from '../CoordinateSystem';\nimport { NameMap } from './geoTypes';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnGeoOptionMixin } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GlobalModel from '../../model/Global';\nimport ComponentModel from '../../model/Component';\n\n\nexport type resizeGeoType = typeof resizeGeo;\n\n/**\n * Resize method bound to the geo\n */\nfunction resizeGeo(this: Geo, geoModel: ComponentModel, api: ExtensionAPI): void {\n\n const boundingCoords = geoModel.get('boundingCoords');\n if (boundingCoords != null) {\n const leftTop = boundingCoords[0];\n const rightBottom = boundingCoords[1];\n if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) {\n if (__DEV__) {\n console.error('Invalid boundingCoords');\n }\n }\n else {\n this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]);\n }\n }\n\n const rect = this.getBoundingRect();\n\n const centerOption = geoModel.get('layoutCenter');\n const sizeOption = geoModel.get('layoutSize');\n\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n\n const aspect = rect.width / rect.height * this.aspectScale;\n\n let useCenterAndSize = false;\n let center: number[];\n let size: number;\n\n if (centerOption && sizeOption) {\n center = [\n numberUtil.parsePercent(centerOption[0], viewWidth),\n numberUtil.parsePercent(centerOption[1], viewHeight)\n ];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n }\n else {\n if (__DEV__) {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n let viewRect: layout.LayoutRect;\n if (useCenterAndSize) {\n viewRect = {} as layout.LayoutRect;\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n }\n else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n }\n else {\n // Use left/top/width/height\n const boxLayoutOption = geoModel.getBoxLayoutParams() as Parameters[0];\n\n boxLayoutOption.aspect = aspect;\n\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n\n this.setCenter(geoModel.get('center'));\n this.setZoom(geoModel.get('zoom'));\n}\n\n// Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\nfunction setGeoCoords(geo: Geo, model: MapSeries) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nclass GeoCreator implements CoordinateSystemCreator {\n\n // For deciding which dimensions to use when creating list data\n dimensions = geo2DDimensions;\n\n create(ecModel: GlobalModel, api: ExtensionAPI): Geo[] {\n const geoList = [] as Geo[];\n\n // FIXME Create each time may be slow\n ecModel.eachComponent('geo', function (geoModel: GeoModel, idx) {\n const name = geoModel.get('map');\n\n const geo = new Geo(name + idx, name, {\n nameMap: geoModel.get('nameMap'),\n nameProperty: geoModel.get('nameProperty'),\n aspectScale: geoModel.get('aspectScale')\n });\n\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo);\n\n // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel;\n\n // Inject resize method\n geo.resize = resizeGeo;\n\n geo.resize(geoModel, api);\n });\n\n ecModel.eachSeries(function (seriesModel) {\n const coordSys = seriesModel.get('coordinateSystem');\n if (coordSys === 'geo') {\n const geoIndex = (\n seriesModel as SeriesModel\n ).get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n });\n\n // If has map series\n const mapModelGroupBySeries = {} as Dictionary;\n\n ecModel.eachSeriesByType('map', function (seriesModel: MapSeries) {\n if (!seriesModel.getHostGeoModel()) {\n const mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n const nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n\n const geo = new Geo(mapType, mapType, {\n nameMap: zrUtil.mergeAll(nameMapList),\n nameProperty: mapSeries[0].get('nameProperty'),\n aspectScale: mapSeries[0].get('aspectScale')\n });\n\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo);\n\n // Inject resize method\n geo.resize = resizeGeo;\n\n geo.resize(mapSeries[0], api);\n\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n\n setGeoCoords(geo, singleMapSeries);\n });\n });\n\n return geoList;\n }\n\n /**\n * Fill given regions array\n */\n getFilledRegions(\n originRegionArr: RegoinOption[],\n mapName: string,\n nameMap: NameMap,\n nameProperty: string\n ): RegoinOption[] {\n // Not use the original\n const regionsArr = (originRegionArr || []).slice();\n\n const dataNameMap = zrUtil.createHashMap();\n for (let i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n const source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n const name = region.name;\n !dataNameMap.get(name) && regionsArr.push({name: name});\n });\n\n return regionsArr;\n }\n}\n\n\nconst geoCreator = new GeoCreator();\n\nexport default geoCreator;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport geoCreator from './geoCreator';\nimport Geo from './Geo';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n ItemStyleOption,\n ZRColor,\n LabelOption,\n DisplayState,\n RoamOptionMixin,\n AnimationOptionMixin,\n StatesOptionMixin,\n Dictionary,\n CommonTooltipOption\n} from '../../util/types';\nimport { NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport geoSourceManager from './geoSourceManager';\n\n\nexport interface GeoItemStyleOption extends ItemStyleOption {\n areaColor?: ZRColor;\n};\ninterface GeoLabelOption extends LabelOption {\n formatter?: string | ((params: GeoLabelFormatterDataParams) => string);\n}\nexport interface GeoStateOption {\n itemStyle?: GeoItemStyleOption\n // FIXME:TS formatter?\n label?: GeoLabelOption\n}\ninterface GeoLabelFormatterDataParams {\n name: string;\n status: DisplayState;\n}\n\nexport interface RegoinOption extends GeoStateOption, StatesOptionMixin {\n name?: string\n selected?: boolean\n tooltip?: CommonTooltipOption\n}\n\nexport interface GeoTooltipFormatterParams {\n componentType: 'geo'\n geoIndex: number\n name: string\n $vars: ['name']\n}\n\nexport interface GeoCommonOptionMixin extends RoamOptionMixin {\n // Map name\n map: string;\n\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n aspectScale?: number;\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // Like: `40` or `'50%'`.\n layoutCenter?: (number | string)[];\n // Like: `40` or `'50%'`.\n layoutSize?: number | string;\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n // higher priority than center and zoom\n boundingCoords?: number[][];\n\n nameMap?: NameMap;\n nameProperty?: string;\n}\n\nexport interface GeoOption extends\n ComponentOption,\n BoxLayoutOptionMixin,\n // For lens animation on geo.\n AnimationOptionMixin,\n GeoCommonOptionMixin,\n StatesOptionMixin, GeoStateOption {\n mainType?: 'geo';\n\n show?: boolean;\n silent?: boolean;\n\n regions?: RegoinOption[];\n\n stateAnimation?: AnimationOptionMixin\n\n selectedMode?: 'single' | 'multiple' | boolean\n selectedMap?: Dictionary\n\n tooltip?: CommonTooltipOption\n}\n\nclass GeoModel extends ComponentModel {\n\n static type = 'geo';\n readonly type = GeoModel.type;\n\n coordinateSystem: Geo;\n\n static layoutMode = 'box' as const;\n\n private _optionModelMap: zrUtil.HashMap>;\n\n static defaultOption: GeoOption = {\n\n zlevel: 0,\n\n z: 0,\n\n show: true,\n\n left: 'center',\n\n top: 'center',\n\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n\n silent: false,\n\n // Map type\n map: '',\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n boundingCoords: null,\n\n // Default on center of map\n center: null,\n\n zoom: 1,\n\n scaleLimit: null,\n\n // selectedMode: false\n\n label: {\n show: false,\n color: '#000'\n },\n\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444'\n // Default color:\n // + geoJSON: #eee\n // + geoSVG: null (use SVG original `fill`)\n // color: '#eee'\n },\n\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n regions: []\n\n // tooltip: {\n // show: false\n // }\n };\n\n init(option: GeoOption, parentModel: Model, ecModel: GlobalModel): void {\n const source = geoSourceManager.getGeoResource(option.map);\n if (source && source.type === 'geoJSON') {\n const itemStyle = option.itemStyle = option.itemStyle || {};\n if (!('color' in itemStyle)) {\n itemStyle.color = '#eee';\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n // Default label emphasis `show`\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n }\n\n optionUpdated(): void {\n const option = this.option;\n\n option.regions = geoCreator.getFilledRegions(\n option.regions, option.map, option.nameMap, option.nameProperty\n );\n\n const selectedMap: Dictionary = {};\n this._optionModelMap = zrUtil.reduce(option.regions || [], (optionModelMap, regionOpt) => {\n const regionName = regionOpt.name;\n if (regionName) {\n optionModelMap.set(regionName, new Model(regionOpt, this, this.ecModel));\n if (regionOpt.selected) {\n selectedMap[regionName] = true;\n }\n }\n return optionModelMap;\n }, zrUtil.createHashMap());\n\n if (!option.selectedMap) {\n option.selectedMap = selectedMap;\n }\n }\n\n /**\n * Get model of region.\n */\n getRegionModel(name: string): Model {\n return this._optionModelMap.get(name) || new Model(null, this, this.ecModel);\n }\n\n /**\n * Format label\n * @param name Region name\n */\n getFormattedLabel(name: string, status?: DisplayState) {\n const regionModel = this.getRegionModel(name);\n const formatter = status === 'normal'\n ? regionModel.get(['label', 'formatter'])\n : regionModel.get(['emphasis', 'label', 'formatter']);\n const params = {\n name: name\n } as GeoLabelFormatterDataParams;\n if (typeof formatter === 'function') {\n params.status = status;\n return formatter(params);\n }\n else if (typeof formatter === 'string') {\n return formatter.replace('{a}', name != null ? name : '');\n }\n }\n\n setZoom(zoom: number): void {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]): void {\n this.option.center = center;\n }\n\n // PENGING If selectedMode is null ?\n select(name?: string): void {\n const option = this.option;\n const selectedMode = option.selectedMode;\n if (!selectedMode) {\n return;\n }\n if (selectedMode !== 'multiple') {\n option.selectedMap = null;\n }\n\n const selectedMap = option.selectedMap || (option.selectedMap = {});\n selectedMap[name] = true;\n }\n\n unSelect(name?: string): void {\n const selectedMap = this.option.selectedMap;\n if (selectedMap) {\n selectedMap[name] = false;\n }\n }\n\n toggleSelected(name?: string): void {\n this[this.isSelected(name) ? 'unSelect' : 'select'](name);\n }\n\n isSelected(name?: string): boolean {\n const selectedMap = this.option.selectedMap;\n return !!(selectedMap && selectedMap[name]);\n }\n\n}\n\nexport default GeoModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport View from '../coord/View';\nimport { Payload } from '../util/types';\n\nexport interface RoamPaylod extends Payload {\n dx: number\n dy: number\n zoom: number\n originX: number\n originY: number\n}\n\nexport function updateCenterAndZoom(\n view: View,\n payload: RoamPaylod,\n zoomLimit?: {\n min?: number,\n max?: number\n }\n) {\n const previousZoom = view.getZoom();\n const center = view.getCenter();\n let zoom = payload.zoom;\n\n const point = view.dataToPoint(center);\n\n if (payload.dx != null && payload.dy != null) {\n point[0] -= payload.dx;\n point[1] -= payload.dy;\n\n view.setCenter(view.pointToData(point));\n }\n if (zoom != null) {\n if (zoomLimit) {\n const zoomMin = zoomLimit.min || 0;\n const zoomMax = zoomLimit.max || Infinity;\n zoom = Math.max(\n Math.min(previousZoom * zoom, zoomMax),\n zoomMin\n ) / previousZoom;\n }\n\n // Zoom on given point(originX, originY)\n view.scaleX *= zoom;\n view.scaleY *= zoom;\n const fixX = (payload.originX - view.x) * (zoom - 1);\n const fixY = (payload.originY - view.y) * (zoom - 1);\n\n view.x -= fixX;\n view.y -= fixY;\n\n view.updateTransform();\n // Get the new center\n view.setCenter(view.pointToData(point));\n view.setZoom(zoom * previousZoom);\n }\n\n return {\n center: view.getCenter(),\n zoom: view.getZoom()\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport MapDraw from '../helper/MapDraw';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport { Payload, ZRElementEvent, ECEventData } from '../../util/types';\nimport { getECData } from '../../util/innerStore';\nimport { findEventDispatcher } from '../../util/event';\nimport Element from 'zrender/src/Element';\n\nclass GeoView extends ComponentView {\n\n static type = 'geo' as const;\n readonly type = GeoView.type;\n\n private _mapDraw: MapDraw;\n\n private _api: ExtensionAPI;\n\n private _model: GeoModel;\n\n focusBlurEnabled = true;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this._api = api;\n }\n\n render(\n geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload\n ): void {\n this._model = geoModel;\n\n if (!geoModel.get('show')) {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n return;\n }\n\n if (!this._mapDraw) {\n this._mapDraw = new MapDraw(api);\n }\n const mapDraw = this._mapDraw;\n mapDraw.draw(geoModel, ecModel, api, this, payload);\n mapDraw.group.on('click', this._handleRegionClick, this);\n mapDraw.group.silent = geoModel.get('silent');\n this.group.add(mapDraw.group);\n this.updateSelectStatus(geoModel, ecModel, api);\n }\n\n private _handleRegionClick(e: ZRElementEvent) {\n let eventData: ECEventData;\n\n findEventDispatcher(e.target, current => {\n return (eventData = getECData(current).eventData) != null;\n }, true);\n\n if (eventData) {\n this._api.dispatchAction({\n type: 'geoToggleSelect',\n geoId: this._model.id,\n name: eventData.name\n });\n }\n }\n\n updateSelectStatus(model: GeoModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._mapDraw.group.traverse((node) => {\n const eventData = getECData(node).eventData;\n if (eventData) {\n this._model.isSelected(eventData.name)\n ? api.enterSelect(node) : api.leaveSelect(node);\n // No need to traverse children.\n return true;\n }\n });\n }\n\n findHighDownDispatchers(name: string): Element[] {\n return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model);\n }\n\n dispose(): void {\n this._mapDraw && this._mapDraw.remove();\n }\n\n}\n\nexport default GeoView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport geoCreator from '../../coord/geo/geoCreator';\nimport { ActionInfo } from '../../util/types';\nimport { each } from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport { updateCenterAndZoom, RoamPaylod } from '../../action/roamHelper';\nimport MapSeries from '../../chart/map/MapSeries';\nimport GeoView from './GeoView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerCoordinateSystem('geo', geoCreator);\n\n registers.registerComponentModel(GeoModel);\n registers.registerComponentView(GeoView);\n\n\n function makeAction(\n method: 'toggleSelected' | 'select' | 'unSelect',\n actionInfo: ActionInfo\n ): void {\n actionInfo.update = 'geo:updateSelectStatus';\n registers.registerAction(actionInfo, function (payload, ecModel) {\n const selected = {} as {[regionName: string]: boolean};\n const allSelected = [] as ({ name: string[], geoIndex: number })[];\n\n ecModel.eachComponent(\n { mainType: 'geo', query: payload},\n function (geoModel: GeoModel) {\n geoModel[method](payload.name);\n const geo = geoModel.coordinateSystem;\n\n each(geo.regions, function (region) {\n selected[region.name] = geoModel.isSelected(region.name) || false;\n });\n\n // Notice: there might be duplicated name in different regions.\n const names = [] as string[];\n each(selected, function (v, name) {\n selected[name] && names.push(name);\n });\n allSelected.push({\n geoIndex: geoModel.componentIndex,\n // Use singular, the same naming convention as the event `selectchanged`.\n name: names\n });\n }\n );\n\n return {\n selected: selected,\n allSelected: allSelected,\n name: payload.name\n };\n });\n }\n\n makeAction('toggleSelected', {\n type: 'geoToggleSelect',\n event: 'geoselectchanged'\n });\n makeAction('select', {\n type: 'geoSelect',\n event: 'geoselected'\n });\n makeAction('unSelect', {\n type: 'geoUnSelect',\n event: 'geounselected'\n });\n\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n registers.registerAction({\n type: 'geoRoam',\n event: 'geoRoam',\n update: 'updateTransform'\n }, function (payload: RoamPaylod, ecModel: GlobalModel) {\n const componentType = payload.componentType || 'series';\n\n ecModel.eachComponent(\n { mainType: componentType, query: payload },\n function (componentModel: GeoModel | MapSeries) {\n const geo = componentModel.coordinateSystem;\n if (geo.type !== 'geo') {\n return;\n }\n\n const res = updateCenterAndZoom(\n geo, payload, (componentModel as GeoModel).get('scaleLimit')\n );\n\n componentModel.setCenter\n && componentModel.setCenter(res.center);\n\n componentModel.setZoom\n && componentModel.setZoom(res.zoom);\n\n // All map series with same `map` use the same geo coordinate system\n // So the center and zoom must be in sync. Include the series not selected by legend\n if (componentType === 'series') {\n each((componentModel as MapSeries).seriesGroup, function (seriesModel) {\n seriesModel.setCenter(res.center);\n seriesModel.setZoom(res.zoom);\n });\n }\n }\n );\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport MapView from './MapView';\nimport MapSeries from './MapSeries';\nimport mapDataStatistic from './mapDataStatistic';\nimport mapSymbolLayout from './mapSymbolLayout';\nimport {createLegacyDataSelectAction} from '../../legacy/dataSelectAction';\nimport {install as installGeo} from '../../component/geo/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installGeo);\n\n registers.registerChartView(MapView);\n registers.registerSeriesModel(MapSeries);\n\n registers.registerLayout(mapSymbolLayout);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);\n\n createLegacyDataSelectAction('map', registers.registerAction);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The tree layoutHelper implementation was originally copied from\n* \"d3.js\"(https://github.com/d3/d3-hierarchy) with\n* some modifications made for this project.\n* (see more details in the comment of the specific method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the licence of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n/**\n * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing\n * the tree.\n */\n\nimport * as layout from '../../util/layout';\nimport { TreeNode } from '../../data/Tree';\nimport TreeSeriesModel from './TreeSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\ninterface HierNode {\n defaultAncestor: TreeLayoutNode,\n ancestor: TreeLayoutNode,\n prelim: number,\n modifier: number,\n change: number,\n shift: number,\n i: number,\n thread: TreeLayoutNode\n}\n\nexport interface TreeLayoutNode extends TreeNode {\n parentNode: TreeLayoutNode\n hierNode: HierNode\n children: TreeLayoutNode[]\n}\n/**\n * Initialize all computational message for following algorithm.\n */\nexport function init(inRoot: TreeNode) {\n const root = inRoot as TreeLayoutNode;\n root.hierNode = {\n defaultAncestor: null,\n ancestor: root,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: 0,\n thread: null\n };\n\n const nodes = [root];\n let node;\n let children;\n\n while (node = nodes.pop()) { // jshint ignore:line\n children = node.children;\n if (node.isExpand && children.length) {\n const n = children.length;\n for (let i = n - 1; i >= 0; i--) {\n const child = children[i];\n child.hierNode = {\n defaultAncestor: null,\n ancestor: child,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: i,\n thread: null\n };\n nodes.push(child);\n }\n }\n }\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes a preliminary x coordinate for node. Before that, this function is\n * applied recursively to the children of node, as well as the function\n * apportion(). After spacing out the children by calling executeShifts(), the\n * node is placed to the midpoint of its outermost children.\n */\nexport function firstWalk(node: TreeLayoutNode, separation: SeparationFunc) {\n const children = node.isExpand ? node.children : [];\n const siblings = node.parentNode.children;\n const subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null;\n if (children.length) {\n executeShifts(node);\n const midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;\n if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n node.hierNode.modifier = node.hierNode.prelim - midPoint;\n }\n else {\n node.hierNode.prelim = midPoint;\n }\n }\n else if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n }\n node.parentNode.hierNode.defaultAncestor = apportion(\n node,\n subtreeW,\n node.parentNode.hierNode.defaultAncestor || siblings[0],\n separation\n );\n}\n\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes all real x-coordinates by summing up the modifiers recursively.\n */\nexport function secondWalk(node: TreeLayoutNode) {\n const nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;\n node.setLayout({x: nodeX}, true);\n node.hierNode.modifier += node.parentNode.hierNode.modifier;\n}\n\n\nexport function separation(cb?: SeparationFunc) {\n return arguments.length ? cb : defaultSeparation;\n}\n\n/**\n * Transform the common coordinate to radial coordinate.\n */\nexport function radialCoordinate(rad: number, r: number) {\n rad -= Math.PI / 2;\n return {\n x: r * Math.cos(rad),\n y: r * Math.sin(rad)\n };\n}\n\n/**\n * Get the layout position of the whole view.\n */\nexport function getViewRect(seriesModel: TreeSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\n/**\n * All other shifts, applied to the smaller subtrees between w- and w+, are\n * performed by this function.\n *\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nfunction executeShifts(node: TreeLayoutNode) {\n const children = node.children;\n let n = children.length;\n let shift = 0;\n let change = 0;\n while (--n >= 0) {\n const child = children[n];\n child.hierNode.prelim += shift;\n child.hierNode.modifier += shift;\n change += child.hierNode.change;\n shift += child.hierNode.shift + change;\n }\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * The core of the algorithm. Here, a new subtree is combined with the\n * previous subtrees. Threads are used to traverse the inside and outside\n * contours of the left and right subtree up to the highest common level.\n * Whenever two nodes of the inside contours conflict, we compute the left\n * one of the greatest uncommon ancestors using the function nextAncestor()\n * and call moveSubtree() to shift the subtree and prepare the shifts of\n * smaller subtrees. Finally, we add a new thread (if necessary).\n */\nfunction apportion(\n subtreeV: TreeLayoutNode,\n subtreeW: TreeLayoutNode,\n ancestor: TreeLayoutNode,\n separation: SeparationFunc\n): TreeLayoutNode {\n\n if (subtreeW) {\n let nodeOutRight = subtreeV;\n let nodeInRight = subtreeV;\n let nodeOutLeft = nodeInRight.parentNode.children[0];\n let nodeInLeft = subtreeW;\n\n let sumOutRight = nodeOutRight.hierNode.modifier;\n let sumInRight = nodeInRight.hierNode.modifier;\n let sumOutLeft = nodeOutLeft.hierNode.modifier;\n let sumInLeft = nodeInLeft.hierNode.modifier;\n\n while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {\n nodeOutRight = nextRight(nodeOutRight);\n nodeOutLeft = nextLeft(nodeOutLeft);\n nodeOutRight.hierNode.ancestor = subtreeV;\n const shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim\n - sumInRight + separation(nodeInLeft, nodeInRight);\n if (shift > 0) {\n moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);\n sumInRight += shift;\n sumOutRight += shift;\n }\n sumInLeft += nodeInLeft.hierNode.modifier;\n sumInRight += nodeInRight.hierNode.modifier;\n sumOutRight += nodeOutRight.hierNode.modifier;\n sumOutLeft += nodeOutLeft.hierNode.modifier;\n }\n if (nodeInLeft && !nextRight(nodeOutRight)) {\n nodeOutRight.hierNode.thread = nodeInLeft;\n nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;\n\n }\n if (nodeInRight && !nextLeft(nodeOutLeft)) {\n nodeOutLeft.hierNode.thread = nodeInRight;\n nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;\n ancestor = subtreeV;\n }\n }\n return ancestor;\n}\n\n/**\n * This function is used to traverse the right contour of a subtree.\n * It returns the rightmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\nfunction nextRight(node: TreeLayoutNode): TreeLayoutNode {\n const children = node.children;\n return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;\n}\n\n/**\n * This function is used to traverse the left contour of a subtree (or a subforest).\n * It returns the leftmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\nfunction nextLeft(node: TreeLayoutNode) {\n const children = node.children;\n return children.length && node.isExpand ? children[0] : node.hierNode.thread;\n}\n\n/**\n * If nodeInLeft\u2019s ancestor is a sibling of node, returns nodeInLeft\u2019s ancestor.\n * Otherwise, returns the specified ancestor.\n */\nfunction nextAncestor(\n nodeInLeft: TreeLayoutNode,\n node: TreeLayoutNode,\n ancestor: TreeLayoutNode\n): TreeLayoutNode {\n return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode\n ? nodeInLeft.hierNode.ancestor : ancestor;\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Shifts the current subtree rooted at wr.\n * This is done by increasing prelim(w+) and modifier(w+) by shift.\n */\nfunction moveSubtree(\n wl: TreeLayoutNode,\n wr: TreeLayoutNode,\n shift: number\n) {\n const change = shift / (wr.hierNode.i - wl.hierNode.i);\n wr.hierNode.change -= change;\n wr.hierNode.shift += shift;\n wr.hierNode.modifier += shift;\n wr.hierNode.prelim += shift;\n wl.hierNode.change += change;\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nfunction defaultSeparation(node1: TreeLayoutNode, node2: TreeLayoutNode): number {\n return node1.parentNode === node2.parentNode ? 1 : 2;\n}\n\ninterface SeparationFunc {\n (node1: TreeLayoutNode, node2: TreeLayoutNode): number\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport SymbolClz from '../helper/Symbol';\nimport {radialCoordinate} from './layoutHelper';\nimport * as bbox from 'zrender/src/core/bbox';\nimport View from '../../coord/View';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport RoamController, { RoamControllerHost } from '../../component/helper/RoamController';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport {parsePercent} from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport TreeSeriesModel, { TreeSeriesOption, TreeSeriesNodeItemOption } from './TreeSeries';\nimport Path, { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport SeriesData from '../../data/SeriesData';\nimport { setStatesStylesFromModel, setStatesFlag, setDefaultStateProxy, HOVER_STATE_BLUR } from '../../util/states';\nimport { AnimationOption, ECElement } from '../../util/types';\n\ntype TreeSymbol = SymbolClz & {\n __edge: graphic.BezierCurve | TreePath\n\n __radialOldRawX: number\n __radialOldRawY: number\n __radialRawX: number\n __radialRawY: number\n\n __oldX: number\n __oldY: number\n};\n\nclass TreeEdgeShape {\n parentPoint: number[] = [];\n childPoints: number[][] = [];\n orient: TreeSeriesOption['orient'];\n forkPosition: TreeSeriesOption['edgeForkPosition'];\n}\n\ninterface TreeEdgePathProps extends PathProps {\n shape?: Partial\n}\n\ninterface TreeNodeLayout {\n x: number\n y: number\n rawX: number\n rawY: number\n}\n\nclass TreePath extends Path {\n shape: TreeEdgeShape;\n constructor(opts?: TreeEdgePathProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new TreeEdgeShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: TreeEdgeShape) {\n const childPoints = shape.childPoints;\n const childLen = childPoints.length;\n const parentPoint = shape.parentPoint;\n const firstChildPos = childPoints[0];\n const lastChildPos = childPoints[childLen - 1];\n\n if (childLen === 1) {\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(firstChildPos[0], firstChildPos[1]);\n return;\n }\n\n const orient = shape.orient;\n const forkDim = (orient === 'TB' || orient === 'BT') ? 0 : 1;\n const otherDim = 1 - forkDim;\n const forkPosition = parsePercent(shape.forkPosition, 1);\n const tmpPoint = [];\n tmpPoint[forkDim] = parentPoint[forkDim];\n tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition;\n\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.moveTo(firstChildPos[0], firstChildPos[1]);\n tmpPoint[forkDim] = firstChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n tmpPoint[forkDim] = lastChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.lineTo(lastChildPos[0], lastChildPos[1]);\n\n for (let i = 1; i < childLen - 1; i++) {\n const point = childPoints[i];\n ctx.moveTo(point[0], point[1]);\n tmpPoint[forkDim] = point[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n }\n }\n}\n\nclass TreeView extends ChartView {\n\n static readonly type = 'tree';\n readonly type = TreeView.type;\n\n private _mainGroup = new graphic.Group();\n\n private _controller: RoamController;\n private _controllerHost: RoamControllerHost;\n\n private _data: SeriesData;\n\n private _nodeScaleRatio: number;\n private _min: number[];\n private _max: number[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n\n\n this._controller = new RoamController(api.getZr());\n\n this._controllerHost = {\n target: this.group\n } as RoamControllerHost;\n\n this.group.add(this._mainGroup);\n }\n\n render(\n seriesModel: TreeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const data = seriesModel.getData();\n\n const layoutInfo = seriesModel.layoutInfo;\n\n const group = this._mainGroup;\n\n const layout = seriesModel.get('layout');\n\n if (layout === 'radial') {\n group.x = layoutInfo.x + layoutInfo.width / 2;\n group.y = layoutInfo.y + layoutInfo.height / 2;\n }\n else {\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n }\n\n this._updateViewCoordSys(seriesModel);\n this._updateController(seriesModel, ecModel, api);\n\n const oldData = this._data;\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (symbolNeedsDraw(data, newIdx)) {\n // Create node and edge\n updateNode(data, newIdx, null, group, seriesModel);\n }\n })\n .update(function (newIdx, oldIdx) {\n const symbolEl = oldData.getItemGraphicEl(oldIdx) as TreeSymbol;\n if (!symbolNeedsDraw(data, newIdx)) {\n symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n return;\n }\n // Update node and edge\n updateNode(data, newIdx, symbolEl, group, seriesModel);\n })\n .remove(function (oldIdx) {\n const symbolEl = oldData.getItemGraphicEl(oldIdx) as TreeSymbol;\n // When remove a collapsed node of subtree, since the collapsed\n // node haven't been initialized with a symbol element,\n // you can't found it's symbol element through index.\n // so if we want to remove the symbol element we should insure\n // that the symbol element is not null.\n if (symbolEl) {\n removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n }\n })\n .execute();\n\n this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');\n\n this._updateNodeAndLinkScale(seriesModel);\n\n if (seriesModel.get('expandAndCollapse') === true) {\n data.eachItemGraphicEl(function (el, dataIndex) {\n el.off('click').on('click', function () {\n api.dispatchAction({\n type: 'treeExpandAndCollapse',\n seriesId: seriesModel.id,\n dataIndex: dataIndex\n });\n });\n });\n }\n this._data = data;\n }\n\n _updateViewCoordSys(seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n const points: number[][] = [];\n data.each(function (idx) {\n const layout = data.getItemLayout(idx);\n if (layout && !isNaN(layout.x) && !isNaN(layout.y)) {\n points.push([+layout.x, +layout.y]);\n }\n });\n const min: number[] = [];\n const max: number[] = [];\n bbox.fromPoints(points, min, max);\n\n // If don't Store min max when collapse the root node after roam,\n // the root node will disappear.\n const oldMin = this._min;\n const oldMax = this._max;\n\n // If width or height is 0\n if (max[0] - min[0] === 0) {\n min[0] = oldMin ? oldMin[0] : min[0] - 1;\n max[0] = oldMax ? oldMax[0] : max[0] + 1;\n }\n if (max[1] - min[1] === 0) {\n min[1] = oldMin ? oldMin[1] : min[1] - 1;\n max[1] = oldMax ? oldMax[1] : max[1] + 1;\n }\n\n const viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n\n viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n\n // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group\n this.group.attr({\n x: viewCoordSys.x,\n y: viewCoordSys.y,\n scaleX: viewCoordSys.scaleX,\n scaleY: viewCoordSys.scaleY\n });\n\n this._min = min;\n this._max = max;\n }\n\n _updateController(\n seriesModel: TreeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n const group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n const rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y)\n && !onIrrelevantElement(e, api, seriesModel);\n });\n\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n\n controller\n .off('pan')\n .off('zoom')\n .on('pan', (e) => {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n dx: e.dx,\n dy: e.dy\n });\n })\n .on('zoom', (e) => {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n this._updateNodeAndLinkScale(seriesModel);\n // Only update label layout on zoom\n api.updateLabelLayout();\n });\n }\n\n _updateNodeAndLinkScale(seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n\n const nodeScale = this._getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el: SymbolClz, idx) {\n el.setSymbolScale(nodeScale);\n });\n }\n\n _getNodeGlobalScale(seriesModel: TreeSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n const nodeScaleRatio = this._nodeScaleRatio;\n\n const groupZoom = coordSys.scaleX || 1;\n // Scale node when zoom changes\n const roamZoom = coordSys.getZoom();\n const nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n\n return nodeScale / groupZoom;\n }\n\n dispose() {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n }\n\n remove() {\n this._mainGroup.removeAll();\n this._data = null;\n }\n\n}\n\nfunction symbolNeedsDraw(data: SeriesData, dataIndex: number) {\n const layout = data.getItemLayout(dataIndex);\n\n return layout\n && !isNaN(layout.x) && !isNaN(layout.y);\n}\n\n\nfunction updateNode(\n data: SeriesData,\n dataIndex: number,\n symbolEl: TreeSymbol,\n group: graphic.Group,\n seriesModel: TreeSeriesModel\n) {\n const isInit = !symbolEl;\n const node = data.tree.getNodeByDataIndex(dataIndex);\n const itemModel = node.getModel();\n const visualColor = (node.getVisual('style') as PathStyleProps).fill;\n const symbolInnerColor = node.isExpand === false && node.children.length !== 0\n ? visualColor : '#fff';\n\n const virtualRoot = data.tree.root;\n\n const source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n const sourceSymbolEl = data.getItemGraphicEl(source.dataIndex) as TreeSymbol;\n const sourceLayout = source.getLayout() as TreeNodeLayout;\n const sourceOldLayout = sourceSymbolEl\n ? {\n x: sourceSymbolEl.__oldX,\n y: sourceSymbolEl.__oldY,\n rawX: sourceSymbolEl.__radialOldRawX,\n rawY: sourceSymbolEl.__radialOldRawY\n }\n : sourceLayout;\n const targetLayout = node.getLayout();\n\n if (isInit) {\n symbolEl = new SymbolClz(data, dataIndex, null, {\n symbolInnerColor,\n useNameLabel: true\n }) as TreeSymbol;\n symbolEl.x = sourceOldLayout.x;\n symbolEl.y = sourceOldLayout.y;\n }\n else {\n symbolEl.updateData(data, dataIndex, null, {\n symbolInnerColor,\n useNameLabel: true\n });\n }\n\n symbolEl.__radialOldRawX = symbolEl.__radialRawX;\n symbolEl.__radialOldRawY = symbolEl.__radialRawY;\n symbolEl.__radialRawX = targetLayout.rawX;\n symbolEl.__radialRawY = targetLayout.rawY;\n\n group.add(symbolEl);\n data.setItemGraphicEl(dataIndex, symbolEl);\n\n symbolEl.__oldX = symbolEl.x;\n symbolEl.__oldY = symbolEl.y;\n\n graphic.updateProps(symbolEl, {\n x: targetLayout.x,\n y: targetLayout.y\n }, seriesModel);\n\n const symbolPath = symbolEl.getSymbolPath();\n\n if (seriesModel.get('layout') === 'radial') {\n const realRoot = virtualRoot.children[0];\n const rootLayout = realRoot.getLayout();\n const length = realRoot.children.length;\n let rad;\n let isLeft;\n\n if (targetLayout.x === rootLayout.x && node.isExpand === true) {\n const center = {\n x: (realRoot.children[0].getLayout().x + realRoot.children[length - 1].getLayout().x) / 2,\n y: (realRoot.children[0].getLayout().y + realRoot.children[length - 1].getLayout().y) / 2\n };\n rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n isLeft = center.x < rootLayout.x;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n }\n else {\n rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n if (node.children.length === 0 || (node.children.length !== 0 && node.isExpand === false)) {\n isLeft = targetLayout.x < rootLayout.x;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n }\n else {\n isLeft = targetLayout.x > rootLayout.x;\n if (!isLeft) {\n rad = rad - Math.PI;\n }\n }\n }\n\n const textPosition = isLeft ? 'left' as const : 'right' as const;\n const normalLabelModel = itemModel.getModel('label');\n const rotate = normalLabelModel.get('rotate');\n const labelRotateRadian = rotate * (Math.PI / 180);\n\n const textContent = symbolPath.getTextContent();\n if (textContent) {\n symbolPath.setTextConfig({\n position: normalLabelModel.get('position') || textPosition,\n rotation: rotate == null ? -rad : labelRotateRadian,\n origin: 'center'\n });\n textContent.setStyle('verticalAlign', 'middle');\n }\n\n }\n\n // Handle status\n const focus = itemModel.get(['emphasis', 'focus']);\n const focusDataIndices: number[] = focus === 'ancestor'\n ? node.getAncestorsIndices()\n : focus === 'descendant' ? node.getDescendantIndices() : null;\n\n if (focusDataIndices) {\n // Modify the focus to data indices.\n getECData(symbolEl).focus = focusDataIndices;\n }\n\n drawEdge(\n seriesModel, node, virtualRoot, symbolEl, sourceOldLayout,\n sourceLayout, targetLayout, group\n );\n\n if (symbolEl.__edge) {\n (symbolEl as ECElement).onHoverStateChange = function (toState) {\n if (toState !== 'blur') {\n // NOTE: Ensure the parent elements will been blurred firstly.\n // According to the return of getAncestorsIndices and getDescendantIndices\n // TODO: A bit tricky.\n const parentEl = node.parentNode\n && data.getItemGraphicEl(node.parentNode.dataIndex);\n if (!(parentEl && (parentEl as ECElement).hoverState === HOVER_STATE_BLUR)) {\n setStatesFlag(symbolEl.__edge, toState);\n }\n }\n };\n }\n}\n\nfunction drawEdge(\n seriesModel: TreeSeriesModel,\n node: TreeNode,\n virtualRoot: TreeNode,\n symbolEl: TreeSymbol,\n sourceOldLayout: TreeNodeLayout,\n sourceLayout: TreeNodeLayout,\n targetLayout: TreeNodeLayout,\n group: graphic.Group\n) {\n const itemModel = node.getModel();\n const edgeShape = seriesModel.get('edgeShape');\n const layout = seriesModel.get('layout');\n const orient = seriesModel.getOrient();\n const curvature = seriesModel.get(['lineStyle', 'curveness']);\n const edgeForkPosition = seriesModel.get('edgeForkPosition');\n const lineStyle = itemModel.getModel('lineStyle').getLineStyle();\n let edge = symbolEl.__edge;\n if (edgeShape === 'curve') {\n if (node.parentNode && node.parentNode !== virtualRoot) {\n if (!edge) {\n edge = symbolEl.__edge = new graphic.BezierCurve({\n shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout)\n });\n }\n\n graphic.updateProps(edge as Path, {\n shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout)\n }, seriesModel);\n }\n }\n else if (edgeShape === 'polyline') {\n if (layout === 'orthogonal') {\n if (node !== virtualRoot && node.children && (node.children.length !== 0) && (node.isExpand === true)) {\n const children = node.children;\n const childPoints = [];\n for (let i = 0; i < children.length; i++) {\n const childLayout = children[i].getLayout();\n childPoints.push([childLayout.x, childLayout.y]);\n }\n\n if (!edge) {\n edge = symbolEl.__edge = new TreePath({\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: [[targetLayout.x, targetLayout.y]],\n orient: orient,\n forkPosition: edgeForkPosition\n }\n });\n }\n graphic.updateProps(edge as Path, {\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: childPoints\n }\n }, seriesModel);\n }\n }\n else {\n if (__DEV__) {\n throw new Error('The polyline edgeShape can only be used in orthogonal layout');\n }\n }\n }\n\n if (edge) {\n edge.useStyle(zrUtil.defaults({\n strokeNoScale: true, fill: null\n }, lineStyle));\n\n setStatesStylesFromModel(edge, itemModel, 'lineStyle');\n setDefaultStateProxy(edge);\n\n group.add(edge);\n }\n}\n\nfunction removeNodeEdge(\n node: TreeNode,\n data: SeriesData,\n group: graphic.Group,\n seriesModel: TreeSeriesModel,\n removeAnimationOpt: AnimationOption\n) {\n const virtualRoot = data.tree.root;\n const { source, sourceLayout } = getSourceNode(virtualRoot, node);\n\n const symbolEl: TreeSymbol = data.getItemGraphicEl(node.dataIndex) as TreeSymbol;\n\n if (!symbolEl) {\n return;\n }\n\n const sourceSymbolEl = data.getItemGraphicEl(source.dataIndex) as TreeSymbol;\n const sourceEdge = sourceSymbolEl.__edge;\n\n // 1. when expand the sub tree, delete the children node should delete the edge of\n // the source at the same time. because the polyline edge shape is only owned by the source.\n // 2.when the node is the only children of the source, delete the node should delete the edge of\n // the source at the same time. the same reason as above.\n const edge = symbolEl.__edge\n || ((source.isExpand === false || source.children.length === 1) ? sourceEdge : undefined);\n\n const edgeShape = seriesModel.get('edgeShape');\n const layoutOpt = seriesModel.get('layout');\n const orient = seriesModel.get('orient');\n const curvature = seriesModel.get(['lineStyle', 'curveness']);\n\n if (edge) {\n if (edgeShape === 'curve') {\n graphic.removeElement(edge as Path, {\n shape: getEdgeShape(\n layoutOpt,\n orient,\n curvature,\n sourceLayout,\n sourceLayout\n ),\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb() {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') {\n graphic.removeElement(edge as Path, {\n shape: {\n parentPoint: [sourceLayout.x, sourceLayout.y],\n childPoints: [[sourceLayout.x, sourceLayout.y]]\n },\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb() {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n }\n}\n\nfunction getSourceNode(virtualRoot: TreeNode, node: TreeNode): { source: TreeNode, sourceLayout: TreeNodeLayout } {\n let source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n let sourceLayout;\n while (sourceLayout = source.getLayout(), sourceLayout == null) {\n source = source.parentNode === virtualRoot ? source : source.parentNode || source;\n }\n return {\n source,\n sourceLayout\n };\n}\n\nfunction removeNode(\n data: SeriesData,\n dataIndex: number,\n symbolEl: TreeSymbol,\n group: graphic.Group,\n seriesModel: TreeSeriesModel\n) {\n const node = data.tree.getNodeByDataIndex(dataIndex);\n const virtualRoot = data.tree.root;\n\n const { sourceLayout } = getSourceNode(virtualRoot, node);\n\n // Use same duration and easing with update to have more consistent animation.\n const removeAnimationOpt = {\n duration: seriesModel.get('animationDurationUpdate') as number,\n easing: seriesModel.get('animationEasingUpdate')\n };\n\n graphic.removeElement(symbolEl, {\n x: sourceLayout.x + 1,\n y: sourceLayout.y + 1\n }, seriesModel, {\n cb() {\n group.remove(symbolEl);\n data.setItemGraphicEl(dataIndex, null);\n },\n removeOpt: removeAnimationOpt\n });\n\n symbolEl.fadeOut(null, {\n fadeLabel: true,\n animation: removeAnimationOpt\n });\n\n // remove edge as parent node\n node.children.forEach(childNode => {\n removeNodeEdge(childNode, data, group, seriesModel, removeAnimationOpt);\n });\n // remove edge as child node\n removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt);\n}\n\nfunction getEdgeShape(\n layoutOpt: TreeSeriesOption['layout'],\n orient: TreeSeriesOption['orient'],\n curvature: number,\n sourceLayout: TreeNodeLayout,\n targetLayout: TreeNodeLayout\n) {\n let cpx1: number;\n let cpy1: number;\n let cpx2: number;\n let cpy2: number;\n let x1: number;\n let x2: number;\n let y1: number;\n let y2: number;\n\n if (layoutOpt === 'radial') {\n x1 = sourceLayout.rawX;\n y1 = sourceLayout.rawY;\n x2 = targetLayout.rawX;\n y2 = targetLayout.rawY;\n\n const radialCoor1 = radialCoordinate(x1, y1);\n const radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * curvature);\n const radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * curvature);\n const radialCoor4 = radialCoordinate(x2, y2);\n\n return {\n x1: radialCoor1.x || 0,\n y1: radialCoor1.y || 0,\n x2: radialCoor4.x || 0,\n y2: radialCoor4.y || 0,\n cpx1: radialCoor2.x || 0,\n cpy1: radialCoor2.y || 0,\n cpx2: radialCoor3.x || 0,\n cpy2: radialCoor3.y || 0\n };\n }\n else {\n x1 = sourceLayout.x;\n y1 = sourceLayout.y;\n x2 = targetLayout.x;\n y2 = targetLayout.y;\n\n if (orient === 'LR' || orient === 'RL') {\n cpx1 = x1 + (x2 - x1) * curvature;\n cpy1 = y1;\n cpx2 = x2 + (x1 - x2) * curvature;\n cpy2 = y2;\n }\n if (orient === 'TB' || orient === 'BT') {\n cpx1 = x1;\n cpy1 = y1 + (y2 - y1) * curvature;\n cpx2 = x2;\n cpy2 = y2 + (y1 - y2) * curvature;\n }\n }\n\n return {\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n };\n}\n\nexport default TreeView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Link lists and struct (graph or tree)\n */\n\nimport { curry, each, assert, extend, map, keys } from 'zrender/src/core/util';\nimport SeriesData from '../SeriesData';\nimport { makeInner } from '../../util/model';\nimport { SeriesDataType } from '../../util/types';\n\n// That is: { dataType: data },\n// like: { node: nodeList, edge: edgeList }.\n// Should contain mainData.\ntype Datas = { [key in SeriesDataType]?: SeriesData };\ntype StructReferDataAttr = 'data' | 'edgeData';\ntype StructAttr = 'tree' | 'graph';\n\nconst inner = makeInner<{\n datas: Datas;\n mainData: SeriesData;\n}, SeriesData>();\n\n\n// Caution:\n// In most case, either seriesData or its shallow clones (see seriesData.cloneShallow)\n// is active in echarts process. So considering heap memory consumption,\n// we do not clone tree or graph, but share them among seriesData and its shallow clones.\n// But in some rare case, we have to keep old seriesData (like do animation in chart). So\n// please take care that both the old seriesData and the new seriesData share the same tree/graph.\n\ntype LinkSeriesDataOpt = {\n mainData: SeriesData;\n // For example, instance of Graph or Tree.\n struct: {\n update: () => void;\n } & {\n [key in StructReferDataAttr]?: SeriesData\n };\n // Will designate: `mainData[structAttr] = struct;`\n structAttr: StructAttr;\n datas?: Datas;\n // { dataType: attr },\n // Will designate: `struct[datasAttr[dataType]] = list;`\n datasAttr?: { [key in SeriesDataType]?: StructReferDataAttr };\n};\n\nfunction linkSeriesData(opt: LinkSeriesDataOpt): void {\n const mainData = opt.mainData;\n let datas = opt.datas;\n\n if (!datas) {\n datas = { main: mainData };\n opt.datasAttr = { main: 'data' };\n }\n opt.datas = opt.mainData = null;\n\n linkAll(mainData, datas, opt);\n\n // Porxy data original methods.\n each(datas, function (data: SeriesData) {\n each(mainData.TRANSFERABLE_METHODS, function (methodName) {\n data.wrapMethod(methodName, curry(transferInjection, opt));\n });\n });\n\n // Beyond transfer, additional features should be added to `cloneShallow`.\n mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt));\n\n // Only mainData trigger change, because struct.update may trigger\n // another changable methods, which may bring about dead lock.\n each(mainData.CHANGABLE_METHODS, function (methodName) {\n mainData.wrapMethod(methodName, curry(changeInjection, opt));\n });\n\n // Make sure datas contains mainData.\n assert(datas[mainData.dataType] === mainData);\n}\n\nfunction transferInjection(this: SeriesData, opt: LinkSeriesDataOpt, res: SeriesData): unknown {\n if (isMainData(this)) {\n // Transfer datas to new main data.\n const datas = extend({}, inner(this).datas);\n datas[this.dataType] = res;\n linkAll(res, datas, opt);\n }\n else {\n // Modify the reference in main data to point newData.\n linkSingle(res, this.dataType, inner(this).mainData, opt);\n }\n return res;\n}\n\nfunction changeInjection(opt: LinkSeriesDataOpt, res: unknown): unknown {\n opt.struct && opt.struct.update();\n return res;\n}\n\nfunction cloneShallowInjection(opt: LinkSeriesDataOpt, res: SeriesData): SeriesData {\n // cloneShallow, which brings about some fragilities, may be inappropriate\n // to be exposed as an API. So for implementation simplicity we can make\n // the restriction that cloneShallow of not-mainData should not be invoked\n // outside, but only be invoked here.\n each(inner(res).datas, function (data: SeriesData, dataType) {\n data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);\n });\n return res;\n}\n\n/**\n * Supplement method to List.\n *\n * @public\n * @param [dataType] If not specified, return mainData.\n */\nfunction getLinkedData(this: SeriesData, dataType?: SeriesDataType): SeriesData {\n const mainData = inner(this).mainData;\n return (dataType == null || mainData == null)\n ? mainData\n : inner(mainData).datas[dataType];\n}\n\n/**\n * Get list of all linked data\n */\nfunction getLinkedDataAll(this: SeriesData): {\n data: SeriesData,\n type?: SeriesDataType\n}[] {\n const mainData = inner(this).mainData;\n return (mainData == null)\n ? [{ data: mainData }]\n : map(keys(inner(mainData).datas), function (type) {\n return {\n type,\n data: inner(mainData).datas[type]\n };\n });\n}\n\nfunction isMainData(data: SeriesData): boolean {\n return inner(data).mainData === data;\n}\n\nfunction linkAll(mainData: SeriesData, datas: Datas, opt: LinkSeriesDataOpt): void {\n inner(mainData).datas = {};\n each(datas, function (data: SeriesData, dataType) {\n linkSingle(data, dataType, mainData, opt);\n });\n}\n\nfunction linkSingle(data: SeriesData, dataType: SeriesDataType, mainData: SeriesData, opt: LinkSeriesDataOpt): void {\n inner(mainData).datas[dataType] = data;\n inner(data).mainData = mainData;\n\n data.dataType = dataType;\n\n if (opt.struct) {\n data[opt.structAttr] = opt.struct as any;\n opt.struct[opt.datasAttr[dataType]] = data;\n }\n\n // Supplement method.\n data.getLinkedData = getLinkedData;\n data.getLinkedDataAll = getLinkedDataAll;\n}\n\nexport default linkSeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Tree data structure\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from '../model/Model';\nimport linkSeriesData from './helper/linkSeriesData';\nimport SeriesData from './SeriesData';\nimport createDimensions from './helper/createDimensions';\nimport {\n DimensionLoose, ParsedValue, OptionDataValue,\n OptionDataItemObject\n} from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { convertOptionIdName } from '../util/model';\n\ntype TreeTraverseOrder = 'preorder' | 'postorder';\ntype TreeTraverseCallback = (this: Ctx, node: TreeNode) => boolean | void;\ntype TreeTraverseOption = {\n order?: TreeTraverseOrder\n attr?: 'children' | 'viewChildren'\n};\n\ninterface TreeNodeOption extends Pick, 'name' | 'value'> {\n children?: TreeNodeOption[];\n}\n\nexport class TreeNode {\n name: string;\n\n depth: number = 0;\n\n height: number = 0;\n\n parentNode: TreeNode;\n /**\n * Reference to list item.\n * Do not persistent dataIndex outside,\n * besause it may be changed by list.\n * If dataIndex -1,\n * this node is logical deleted (filtered) in list.\n */\n dataIndex: number = -1;\n\n children: TreeNode[] = [];\n\n viewChildren: TreeNode[] = [];\n\n isExpand: boolean = false;\n\n readonly hostTree: Tree;\n\n constructor(name: string, hostTree: Tree) {\n this.name = name || '';\n\n this.hostTree = hostTree;\n }\n /**\n * The node is removed.\n */\n isRemoved(): boolean {\n return this.dataIndex < 0;\n }\n\n /**\n * Travel this subtree (include this node).\n * Usage:\n * node.eachNode(function () { ... }); // preorder\n * node.eachNode('preorder', function () { ... }); // preorder\n * node.eachNode('postorder', function () { ... }); // postorder\n * node.eachNode(\n * {order: 'postorder', attr: 'viewChildren'},\n * function () { ... }\n * ); // postorder\n *\n * @param options If string, means order.\n * @param options.order 'preorder' or 'postorder'\n * @param options.attr 'children' or 'viewChildren'\n * @param cb If in preorder and return false,\n * its subtree will not be visited.\n */\n eachNode(options: TreeTraverseOrder, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(options: TreeTraverseOption, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(\n options: TreeTraverseOrder | TreeTraverseOption | TreeTraverseCallback,\n cb?: TreeTraverseCallback | Ctx,\n context?: Ctx\n ) {\n if (typeof options === 'function') {\n context = cb as Ctx;\n cb = options;\n options = null;\n }\n\n options = options || {};\n if (zrUtil.isString(options)) {\n options = {order: options};\n }\n\n const order = (options as TreeTraverseOption).order || 'preorder';\n const children = this[(options as TreeTraverseOption).attr || 'children'];\n\n let suppressVisitSub;\n order === 'preorder' && (suppressVisitSub = (cb as TreeTraverseCallback).call(context as Ctx, this));\n\n for (let i = 0; !suppressVisitSub && i < children.length; i++) {\n children[i].eachNode(\n options as TreeTraverseOption,\n cb as TreeTraverseCallback,\n context\n );\n }\n\n order === 'postorder' && (cb as TreeTraverseCallback).call(context, this);\n }\n\n /**\n * Update depth and height of this subtree.\n */\n updateDepthAndHeight(depth: number) {\n let height = 0;\n this.depth = depth;\n for (let i = 0; i < this.children.length; i++) {\n const child = this.children[i];\n child.updateDepthAndHeight(depth + 1);\n if (child.height > height) {\n height = child.height;\n }\n }\n this.height = height + 1;\n }\n\n getNodeById(id: string): TreeNode {\n if (this.getId() === id) {\n return this;\n }\n for (let i = 0, children = this.children, len = children.length; i < len; i++) {\n const res = children[i].getNodeById(id);\n if (res) {\n return res;\n }\n }\n }\n\n contains(node: TreeNode): boolean {\n if (node === this) {\n return true;\n }\n for (let i = 0, children = this.children, len = children.length; i < len; i++) {\n const res = children[i].contains(node);\n if (res) {\n return res;\n }\n }\n }\n\n /**\n * @param includeSelf Default false.\n * @return order: [root, child, grandchild, ...]\n */\n getAncestors(includeSelf?: boolean): TreeNode[] {\n const ancestors = [];\n let node = includeSelf ? this : this.parentNode;\n while (node) {\n ancestors.push(node);\n node = node.parentNode;\n }\n ancestors.reverse();\n return ancestors;\n }\n\n getAncestorsIndices(): number[] {\n const indices: number[] = [];\n let currNode = this as TreeNode;\n while (currNode) {\n indices.push(currNode.dataIndex);\n currNode = currNode.parentNode;\n }\n indices.reverse();\n return indices;\n }\n\n getDescendantIndices(): number[] {\n const indices: number[] = [];\n this.eachNode(childNode => {\n indices.push(childNode.dataIndex);\n });\n return indices;\n }\n\n getValue(dimension?: DimensionLoose): ParsedValue {\n const data = this.hostTree.data;\n return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);\n }\n\n setLayout(layout: any, merge?: boolean) {\n this.dataIndex >= 0\n && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);\n }\n\n /**\n * @return {Object} layout\n */\n getLayout(): any {\n return this.hostTree.data.getItemLayout(this.dataIndex);\n }\n\n getModel(): Model\n // @depcrecated\n // getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const hostTree = this.hostTree;\n const itemModel = hostTree.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path as any);\n }\n\n // TODO: TYPE More specific model\n getLevelModel(): Model {\n return (this.hostTree.levelModels || [])[this.depth];\n }\n\n /**\n * @example\n * setItemVisual('color', color);\n * setItemVisual({\n * 'color': color\n * });\n */\n // TODO: TYPE\n setVisual(key: string, value: any): void\n setVisual(obj: Dictionary): void\n setVisual(key: string | Dictionary, value?: any) {\n this.dataIndex >= 0\n && this.hostTree.data.setItemVisual(this.dataIndex, key as any, value);\n }\n\n /**\n * Get item visual\n * FIXME: make return type better\n */\n getVisual(key: string): unknown {\n return this.hostTree.data.getItemVisual(this.dataIndex, key as any);\n }\n\n getRawIndex(): number {\n return this.hostTree.data.getRawIndex(this.dataIndex);\n }\n\n getId(): string {\n return this.hostTree.data.getId(this.dataIndex);\n }\n\n /**\n * index in parent's children\n */\n getChildIndex(): number {\n if (this.parentNode) {\n const children = this.parentNode.children;\n for (let i = 0; i < children.length; ++i) {\n if (children[i] === this) {\n return i;\n }\n }\n return -1;\n }\n return -1;\n }\n\n /**\n * if this is an ancestor of another node\n *\n * @param node another node\n * @return if is ancestor\n */\n isAncestorOf(node: TreeNode): boolean {\n let parent = node.parentNode;\n while (parent) {\n if (parent === this) {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n }\n\n /**\n * if this is an descendant of another node\n *\n * @param node another node\n * @return if is descendant\n */\n isDescendantOf(node: TreeNode): boolean {\n return node !== this && node.isAncestorOf(this);\n }\n};\n\nclass Tree {\n\n type: 'tree' = 'tree';\n\n root: TreeNode;\n\n data: SeriesData;\n\n hostModel: HostModel;\n\n levelModels: Model[];\n\n private _nodes: TreeNode[] = [];\n\n constructor(hostModel: HostModel) {\n\n this.hostModel = hostModel;\n }\n /**\n * Travel this subtree (include this node).\n * Usage:\n * node.eachNode(function () { ... }); // preorder\n * node.eachNode('preorder', function () { ... }); // preorder\n * node.eachNode('postorder', function () { ... }); // postorder\n * node.eachNode(\n * {order: 'postorder', attr: 'viewChildren'},\n * function () { ... }\n * ); // postorder\n *\n * @param options If string, means order.\n * @param options.order 'preorder' or 'postorder'\n * @param options.attr 'children' or 'viewChildren'\n * @param cb\n * @param context\n */\n eachNode(options: TreeTraverseOrder, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(options: TreeTraverseOption, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(\n options: TreeTraverseOrder | TreeTraverseOption | TreeTraverseCallback,\n cb?: TreeTraverseCallback | Ctx,\n context?: Ctx\n ) {\n this.root.eachNode(options as TreeTraverseOption, cb as TreeTraverseCallback, context);\n }\n\n getNodeByDataIndex(dataIndex: number): TreeNode {\n const rawIndex = this.data.getRawIndex(dataIndex);\n return this._nodes[rawIndex];\n }\n\n getNodeById(name: string): TreeNode {\n return this.root.getNodeById(name);\n }\n\n /**\n * Update item available by list,\n * when list has been performed options like 'filterSelf' or 'map'.\n */\n update() {\n const data = this.data;\n const nodes = this._nodes;\n\n for (let i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (let i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n }\n\n /**\n * Clear all layouts\n */\n clearLayouts() {\n this.data.clearItemLayouts();\n }\n\n\n /**\n * data node format:\n * {\n * name: ...\n * value: ...\n * children: [\n * {\n * name: ...\n * value: ...\n * children: ...\n * },\n * ...\n * ]\n * }\n */\n static createTree(\n dataRoot: T,\n hostModel: HostModel,\n beforeLink?: (data: SeriesData) => void\n ) {\n\n const tree = new Tree(hostModel);\n const listData: TreeNodeOption[] = [];\n let dimMax = 1;\n\n buildHierarchy(dataRoot);\n\n function buildHierarchy(dataNode: TreeNodeOption, parentNode?: TreeNode) {\n const value = dataNode.value;\n dimMax = Math.max(dimMax, zrUtil.isArray(value) ? value.length : 1);\n\n listData.push(dataNode);\n\n const node = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);\n parentNode\n ? addChild(node, parentNode)\n : (tree.root = node);\n\n tree._nodes.push(node);\n\n const children = dataNode.children;\n if (children) {\n for (let i = 0; i < children.length; i++) {\n buildHierarchy(children[i], node);\n }\n }\n }\n\n tree.root.updateDepthAndHeight(0);\n\n const { dimensionList } = createDimensions(listData, {\n coordDimensions: ['value'],\n dimensionsCount: dimMax\n });\n\n const list = new SeriesData(dimensionList, hostModel);\n list.initData(listData);\n\n beforeLink && beforeLink(list);\n\n linkSeriesData({\n mainData: list,\n struct: tree,\n structAttr: 'tree'\n });\n\n tree.update();\n\n return tree;\n }\n\n}\n\n/**\n * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,\n * so this function is not ready and not necessary to be public.\n */\nfunction addChild(child: TreeNode, node: TreeNode) {\n const children = node.children;\n if (child.parentNode === node) {\n return;\n }\n\n children.push(child);\n child.parentNode = node;\n}\n\nexport default Tree;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport {TreeNode} from '../../data/Tree';\n\nexport function retrieveTargetInfo(\n payload: {\n type?: string,\n targetNode?: string | TreeNode\n targetNodeId?: string\n },\n validPayloadTypes: string[],\n seriesModel: SeriesModel\n) {\n if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) {\n const root = seriesModel.getData().tree.root;\n let targetNode = payload.targetNode;\n\n if (typeof targetNode === 'string') {\n targetNode = root.getNodeById(targetNode);\n }\n\n if (targetNode && root.contains(targetNode)) {\n return {\n node: targetNode\n };\n }\n\n const targetNodeId = payload.targetNodeId;\n if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {\n return {\n node: targetNode\n };\n }\n }\n}\n\n// Not includes the given node at the last item.\nexport function getPathToRoot(node: TreeNode): TreeNode[] {\n const path = [];\n while (node) {\n node = node.parentNode;\n node && path.push(node);\n }\n return path.reverse();\n}\n\nexport function aboveViewRoot(viewRoot: TreeNode, node: TreeNode) {\n const viewPath = getPathToRoot(viewRoot);\n return zrUtil.indexOf(viewPath, node) >= 0;\n}\n\n\n// From root to the input node (the input node will be included).\nexport function wrapTreePathInfo(node: TreeNode, seriesModel: SeriesModel) {\n const treePathInfo = [];\n\n while (node) {\n const nodeDataIndex = node.dataIndex;\n treePathInfo.push({\n name: node.name,\n dataIndex: nodeDataIndex,\n value: seriesModel.getRawValue(nodeDataIndex) as T\n });\n node = node.parentNode;\n }\n\n treePathInfo.reverse();\n\n return treePathInfo;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport {\n SeriesOption,\n SymbolOptionMixin,\n BoxLayoutOptionMixin,\n RoamOptionMixin,\n LineStyleOption,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValue,\n StatesOptionMixin,\n OptionDataItemObject,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport View from '../../coord/View';\nimport { LayoutRect } from '../../util/layout';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\n\ninterface CurveLineStyleOption extends LineStyleOption{\n curveness?: number\n}\n\nexport interface TreeSeriesStateOption {\n itemStyle?: ItemStyleOption\n /**\n * Line style of the edge between node and it's parent.\n */\n lineStyle?: CurveLineStyleOption\n label?: SeriesLabelOption\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'ancestor' | 'descendant'\n scale?: boolean\n }\n}\n\nexport interface TreeSeriesNodeItemOption extends SymbolOptionMixin,\n TreeSeriesStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n children?: TreeSeriesNodeItemOption[]\n\n collapsed?: boolean\n\n link?: string\n target?: string\n}\n\n/**\n * Configuration of leaves nodes.\n */\nexport interface TreeSeriesLeavesOption extends TreeSeriesStateOption, StatesOptionMixin {\n\n}\n\nexport interface TreeSeriesOption extends\n SeriesOption, TreeSeriesStateOption,\n SymbolOptionMixin, BoxLayoutOptionMixin, RoamOptionMixin {\n type?: 'tree'\n\n layout?: 'orthogonal' | 'radial'\n\n edgeShape?: 'polyline' | 'curve'\n\n /**\n * Available when edgeShape is polyline\n */\n edgeForkPosition?: string | number\n\n nodeScaleRatio?: number\n\n /**\n * The orient of orthoginal layout, can be setted to 'LR', 'TB', 'RL', 'BT'.\n * and the backward compatibility configuration 'horizontal = LR', 'vertical = TB'.\n */\n orient?: 'LR' | 'TB' | 'RL' | 'BT' | 'horizontal' | 'vertical'\n\n expandAndCollapse?: boolean\n\n /**\n * The initial expanded depth of tree\n */\n initialTreeDepth?: number\n\n leaves?: TreeSeriesLeavesOption\n\n data?: TreeSeriesNodeItemOption[]\n}\n\nexport interface TreeAncestors {\n name: string\n dataIndex: number\n value: number\n}\n\nexport interface TreeSeriesCallbackDataParams extends CallbackDataParams {\n treeAncestors?: TreeAncestors[]\n}\n\nclass TreeSeriesModel extends SeriesModel {\n static readonly type = 'series.tree';\n\n // can support the position parameters 'left', 'top','right','bottom', 'width',\n // 'height' in the setOption() with 'merge' mode normal.\n static readonly layoutMode = 'box';\n\n coordinateSystem: View;\n\n layoutInfo: LayoutRect;\n\n hasSymbolVisual = true;\n\n // Do it self.\n ignoreStyleOnData = true;\n\n /**\n * Init a tree data structure from data in option series\n * @param option the object used to config echarts view\n * @return storage initial data\n */\n getInitialData(option: TreeSeriesOption): SeriesData {\n\n //create an virtual root\n const root: TreeSeriesNodeItemOption = {\n name: option.name,\n children: option.data\n };\n\n const leaves = option.leaves || {};\n const leavesModel = new Model(leaves, this, this.ecModel);\n\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n if (!(node && node.children.length && node.isExpand)) {\n model.parentModel = leavesModel;\n }\n return model;\n });\n }\n\n let treeDepth = 0;\n\n tree.eachNode('preorder', function (node) {\n if (node.depth > treeDepth) {\n treeDepth = node.depth;\n }\n });\n\n const expandAndCollapse = option.expandAndCollapse;\n const expandTreeDepth = (expandAndCollapse && option.initialTreeDepth >= 0)\n ? option.initialTreeDepth : treeDepth;\n\n tree.root.eachNode('preorder', function (node) {\n const item = node.hostTree.data.getRawDataItem(node.dataIndex) as TreeSeriesNodeItemOption;\n // Add item.collapsed != null, because users can collapse node original in the series.data.\n node.isExpand = (item && item.collapsed != null)\n ? !item.collapsed\n : node.depth <= expandTreeDepth;\n });\n\n return tree.data;\n }\n\n /**\n * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.\n * @returns {string} orient\n */\n getOrient() {\n let orient = this.get('orient');\n if (orient === 'horizontal') {\n orient = 'LR';\n }\n else if (orient === 'vertical') {\n orient = 'TB';\n }\n return orient;\n }\n\n setZoom(zoom: number) {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]) {\n this.option.center = center;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const tree = this.getData().tree;\n const realRoot = tree.root.children[0];\n let node = tree.getNodeByDataIndex(dataIndex);\n const value = node.getValue();\n let name = node.name;\n while (node && (node !== realRoot)) {\n name = node.parentNode.name + '.' + name;\n node = node.parentNode;\n }\n\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value,\n noValue: isNaN(value as number) || value == null\n });\n }\n\n // Add tree path to tooltip param\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as TreeSeriesCallbackDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n\n return params;\n }\n\n static defaultOption: TreeSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n\n // the position of the whole view\n left: '12%',\n top: '12%',\n right: '12%',\n bottom: '12%',\n\n // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'\n layout: 'orthogonal',\n\n // value can be 'polyline'\n edgeShape: 'curve',\n\n edgeForkPosition: '50%',\n\n // true | false | 'move' | 'scale', see module:component/helper/RoamController.\n roam: false,\n\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.4,\n\n // Default on center of graph\n center: null,\n\n zoom: 1,\n\n orient: 'LR',\n\n symbol: 'emptyCircle',\n\n symbolSize: 7,\n\n expandAndCollapse: true,\n\n initialTreeDepth: 2,\n\n lineStyle: {\n color: '#ccc',\n width: 1.5,\n curveness: 0.5\n },\n\n itemStyle: {\n color: 'lightsteelblue',\n // borderColor: '#c23531',\n borderWidth: 1.5\n },\n\n label: {\n show: true\n },\n\n animationEasing: 'linear',\n\n animationDuration: 700,\n\n animationDurationUpdate: 500\n };\n}\n\nexport default TreeSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { TreeNode } from '../../data/Tree';\n\n/**\n * Traverse the tree from bottom to top and do something\n */\nfunction eachAfter(\n root: TreeNode,\n callback: (node: TreeNode, separation: T) => void,\n separation: T\n) {\n const nodes = [root];\n const next = [];\n let node;\n\n while (node = nodes.pop()) { // jshint ignore:line\n next.push(node);\n if (node.isExpand) {\n const children = node.children;\n if (children.length) {\n for (let i = 0; i < children.length; i++) {\n nodes.push(children[i]);\n }\n }\n }\n }\n\n while (node = next.pop()) { // jshint ignore:line\n callback(node, separation);\n }\n}\n\n/**\n * Traverse the tree from top to bottom and do something\n */\nfunction eachBefore(root: TreeNode, callback: (node: TreeNode) => void) {\n const nodes = [root];\n let node;\n while (node = nodes.pop()) { // jshint ignore:line\n callback(node);\n if (node.isExpand) {\n const children = node.children;\n if (children.length) {\n for (let i = children.length - 1; i >= 0; i--) {\n nodes.push(children[i]);\n }\n }\n }\n }\n}\n\nexport { eachAfter, eachBefore };", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n eachAfter,\n eachBefore\n} from './traversalHelper';\nimport {\n init,\n firstWalk,\n secondWalk,\n separation as sep,\n radialCoordinate,\n getViewRect,\n TreeLayoutNode\n} from './layoutHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TreeSeriesModel from './TreeSeries';\n\nexport default function treeLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('tree', function (seriesModel: TreeSeriesModel) {\n commonLayout(seriesModel, api);\n });\n}\n\nfunction commonLayout(seriesModel: TreeSeriesModel, api: ExtensionAPI) {\n const layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n const layout = seriesModel.get('layout');\n let width = 0;\n let height = 0;\n let separation = null;\n\n if (layout === 'radial') {\n width = 2 * Math.PI;\n height = Math.min(layoutInfo.height, layoutInfo.width) / 2;\n separation = sep(function (node1, node2) {\n return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;\n });\n }\n else {\n width = layoutInfo.width;\n height = layoutInfo.height;\n separation = sep();\n }\n\n const virtualRoot = seriesModel.getData().tree.root as TreeLayoutNode;\n const realRoot = virtualRoot.children[0];\n\n if (realRoot) {\n init(virtualRoot);\n eachAfter(realRoot, firstWalk, separation);\n virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim;\n eachBefore(realRoot, secondWalk);\n\n let left = realRoot;\n let right = realRoot;\n let bottom = realRoot;\n eachBefore(realRoot, function (node: TreeLayoutNode) {\n const x = node.getLayout().x;\n if (x < left.getLayout().x) {\n left = node;\n }\n if (x > right.getLayout().x) {\n right = node;\n }\n if (node.depth > bottom.depth) {\n bottom = node;\n }\n });\n\n const delta = left === right ? 1 : separation(left, right) / 2;\n const tx = delta - left.getLayout().x;\n let kx = 0;\n let ky = 0;\n let coorX = 0;\n let coorY = 0;\n if (layout === 'radial') {\n kx = width / (right.getLayout().x + delta + tx);\n // here we use (node.depth - 1), bucause the real root's depth is 1\n ky = height / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorX = (node.getLayout().x + tx) * kx;\n coorY = (node.depth - 1) * ky;\n const finalCoor = radialCoordinate(coorX, coorY);\n node.setLayout({x: finalCoor.x, y: finalCoor.y, rawX: coorX, rawY: coorY}, true);\n });\n }\n else {\n const orient = seriesModel.getOrient();\n if (orient === 'RL' || orient === 'LR') {\n ky = height / (right.getLayout().x + delta + tx);\n kx = width / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorY = (node.getLayout().x + tx) * ky;\n coorX = orient === 'LR'\n ? (node.depth - 1) * kx\n : width - (node.depth - 1) * kx;\n node.setLayout({x: coorX, y: coorY}, true);\n });\n }\n else if (orient === 'TB' || orient === 'BT') {\n kx = width / (right.getLayout().x + delta + tx);\n ky = height / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorX = (node.getLayout().x + tx) * kx;\n coorY = orient === 'TB'\n ? (node.depth - 1) * ky\n : height - (node.depth - 1) * ky;\n node.setLayout({x: coorX, y: coorY}, true);\n });\n }\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport TreeSeriesModel, { TreeSeriesNodeItemOption } from './TreeSeries';\nimport { extend } from 'zrender/src/core/util';\n\nexport default function treeVisual(ecModel: GlobalModel) {\n\n ecModel.eachSeriesByType('tree', function (seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n tree.eachNode(function (node) {\n const model = node.getModel();\n // TODO Optimize\n const style = model.getModel('itemStyle').getItemStyle();\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {updateCenterAndZoom, RoamPaylod} from '../../action/roamHelper';\nimport { Payload } from '../../util/types';\nimport TreeSeriesModel from './TreeSeries';\nimport GlobalModel from '../../model/Global';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport interface TreeExpandAndCollapsePayload extends Payload {\n dataIndex: number\n}\n\nexport function installTreeAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction({\n type: 'treeExpandAndCollapse',\n event: 'treeExpandAndCollapse',\n update: 'update'\n }, function (payload: TreeExpandAndCollapsePayload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series', subType: 'tree', query: payload\n }, function (seriesModel: TreeSeriesModel) {\n const dataIndex = payload.dataIndex;\n const tree = seriesModel.getData().tree;\n const node = tree.getNodeByDataIndex(dataIndex);\n node.isExpand = !node.isExpand;\n });\n });\n\n registers.registerAction({\n type: 'treeRoam',\n event: 'treeRoam',\n // Here we set 'none' instead of 'update', because roam action\n // just need to update the transform matrix without having to recalculate\n // the layout. So don't need to go through the whole update process, such\n // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.\n update: 'none'\n }, function (payload: RoamPaylod, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series', subType: 'tree', query: payload\n }, function (seriesModel: TreeSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const res = updateCenterAndZoom(coordSys, payload);\n\n seriesModel.setCenter\n && seriesModel.setCenter(res.center);\n\n seriesModel.setZoom\n && seriesModel.setZoom(res.zoom);\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport TreeView from './TreeView';\nimport TreeSeriesModel from './TreeSeries';\nimport treeLayout from './treeLayout';\nimport treeVisual from './treeVisual';\nimport {installTreeAction} from './treeAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(TreeView);\n registers.registerSeriesModel(TreeSeriesModel);\n registers.registerLayout(treeLayout);\n registers.registerVisual(treeVisual);\n\n installTreeAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as helper from '../helper/treeHelper';\nimport { Payload } from '../../util/types';\nimport TreemapSeriesModel from './TreemapSeries';\nimport { TreeNode } from '../../data/Tree';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nconst noop = function () {};\n\nconst actionTypes = [\n 'treemapZoomToNode',\n 'treemapRender',\n 'treemapMove'\n];\n\nexport interface TreemapZoomToNodePayload extends Payload {\n type: 'treemapZoomToNode'\n}\nexport interface TreemapRenderPayload extends Payload {\n type: 'treemapRender',\n rootRect?: RectLike\n}\nexport interface TreemapMovePayload extends Payload {\n type: 'treemapMove',\n rootRect?: RectLike\n}\nexport interface TreemapRootToNodePayload extends Payload {\n type: 'treemapRootToNode'\n targetNode?: TreeNode | string\n targetNodeId?: string\n\n direction?: 'rollUp' | 'drillDown'\n}\n\nexport function installTreemapAction(registers: EChartsExtensionInstallRegisters) {\n for (let i = 0; i < actionTypes.length; i++) {\n registers.registerAction({\n type: actionTypes[i],\n update: 'updateView'\n }, noop);\n }\n\n registers.registerAction(\n {type: 'treemapRootToNode', update: 'updateView'},\n function (payload, ecModel) {\n\n ecModel.eachComponent(\n {mainType: 'series', subType: 'treemap', query: payload},\n handleRootToNode\n );\n\n function handleRootToNode(model: TreemapSeriesModel, index: number) {\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper.retrieveTargetInfo(payload, types, model);\n\n if (targetInfo) {\n const originViewRoot = model.getViewRoot();\n if (originViewRoot) {\n payload.direction = helper.aboveViewRoot(originViewRoot, targetInfo.node)\n ? 'rollUp' : 'drillDown';\n }\n model.resetViewRoot(targetInfo.node);\n }\n }\n }\n );\n\n}", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {Dictionary, DecalObject} from '../../util/types';\nimport { getDecalFromPalette } from '../../model/mixin/palette';\n\nexport default function enableAriaDecalForTree(seriesModel: SeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n const decalPaletteScope: Dictionary = {};\n\n tree.eachNode(node => {\n // Use decal of level 1 node\n let current = node;\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n const decal = getDecalFromPalette(\n seriesModel.ecModel,\n current.name || current.dataIndex + '',\n decalPaletteScope\n );\n node.setVisual('decal', decal);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport Model from '../../model/Model';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n ItemStyleOption,\n LabelOption,\n RoamOptionMixin,\n CallbackDataParams,\n ColorString,\n StatesOptionMixin,\n OptionId,\n OptionName,\n DecalObject,\n SeriesLabelOption,\n DefaultEmphasisFocus,\n AriaOptionMixin,\n ColorBy\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { LayoutRect } from '../../util/layout';\nimport SeriesData from '../../data/SeriesData';\nimport { normalizeToArray } from '../../util/model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\n// Only support numberic value.\ntype TreemapSeriesDataValue = number | number[];\n\ninterface BreadcrumbItemStyleOption extends ItemStyleOption {\n // TODO: textStyle should be in breadcrumb.label\n textStyle?: LabelOption\n}\n\ninterface TreemapSeriesLabelOption extends SeriesLabelOption {\n ellipsis?: boolean\n formatter?: string | ((params: CallbackDataParams) => string)\n}\n\ninterface TreemapSeriesItemStyleOption extends ItemStyleOption {\n borderRadius?: number | number[]\n\n colorAlpha?: number\n colorSaturation?: number\n\n borderColorSaturation?: number\n\n gapWidth?: number\n}\n\ninterface TreePathInfo {\n name: string\n dataIndex: number\n value: TreemapSeriesDataValue\n}\n\ninterface TreemapSeriesCallbackDataParams extends CallbackDataParams {\n /**\n * @deprecated\n */\n treePathInfo?: TreePathInfo[]\n\n treeAncestors?: TreePathInfo[]\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'\n }\n}\n\nexport interface TreemapStateOption {\n itemStyle?: TreemapSeriesItemStyleOption\n label?: TreemapSeriesLabelOption\n upperLabel?: TreemapSeriesLabelOption\n}\n\nexport interface TreemapSeriesVisualOption {\n /**\n * Which dimension will be applied with the visual properties.\n */\n visualDimension?: number | string\n\n /**\n * @deprecated Use colorBy instead\n */\n colorMappingBy?: 'value' | 'index' | 'id'\n\n visualMin?: number\n visualMax?: number\n\n colorAlpha?: number[] | 'none'\n colorSaturation?: number[] | 'none'\n // A color list for a level. Each node in the level will obtain a color from the color list.\n // Only suuport ColorString for interpolation\n // color?: ColorString[]\n\n /**\n * A node will not be shown when its area size is smaller than this value (unit: px square).\n */\n visibleMin?: number\n /**\n * Children will not be shown when area size of a node is smaller than this value (unit: px square).\n */\n childrenVisibleMin?: number\n}\n\nexport interface TreemapSeriesLevelOption extends TreemapSeriesVisualOption,\n TreemapStateOption, StatesOptionMixin {\n\n color?: ColorString[] | 'none',\n decal?: DecalObject[] | 'none'\n}\n\nexport interface TreemapSeriesNodeItemOption extends TreemapSeriesVisualOption,\n TreemapStateOption, StatesOptionMixin {\n id?: OptionId\n name?: OptionName\n\n value?: TreemapSeriesDataValue\n\n children?: TreemapSeriesNodeItemOption[]\n\n color?: ColorString[] | 'none'\n\n decal?: DecalObject[] | 'none'\n}\n\nexport interface TreemapSeriesOption\n extends SeriesOption,\n TreemapStateOption,\n BoxLayoutOptionMixin,\n RoamOptionMixin,\n TreemapSeriesVisualOption {\n\n type?: 'treemap'\n\n /**\n * configuration in echarts2\n * @deprecated\n */\n size?: (number | string)[]\n\n /**\n * If sort in desc order.\n * Default to be desc. asc has strange effect\n */\n sort?: boolean | 'asc' | 'desc'\n\n /**\n * Size of clipped window when zooming. 'origin' or 'fullscreen'\n */\n clipWindow?: 'origin' | 'fullscreen'\n\n squareRatio?: number\n /**\n * Nodes on depth from root are regarded as leaves.\n * Count from zero (zero represents only view root).\n */\n leafDepth?: number\n\n drillDownIcon?: string\n\n /**\n * Be effective when using zoomToNode. Specify the proportion of the\n * target node area in the view area.\n */\n zoomToNodeRatio?: number\n /**\n * Leaf node click behaviour: 'zoomToNode', 'link', false.\n * If leafDepth is set and clicking a node which has children but\n * be on left depth, the behaviour would be changing root. Otherwise\n * use behavious defined above.\n */\n nodeClick?: 'zoomToNode' | 'link'\n\n breadcrumb?: BoxLayoutOptionMixin & {\n show?: boolean\n height?: number\n\n emptyItemWidth?: number // With of empty width\n itemStyle?: BreadcrumbItemStyleOption\n\n emphasis?: {\n itemStyle?: BreadcrumbItemStyleOption\n }\n }\n\n levels?: TreemapSeriesLevelOption[]\n\n data?: TreemapSeriesNodeItemOption[]\n}\n\nclass TreemapSeriesModel extends SeriesModel {\n\n static type = 'series.treemap';\n type = TreemapSeriesModel.type;\n\n static layoutMode = 'box' as const;\n\n preventUsingHoverLayer = true;\n\n layoutInfo: LayoutRect;\n\n designatedVisualItemStyle: TreemapSeriesItemStyleOption;\n\n private _viewRoot: TreeNode;\n private _idIndexMap: zrUtil.HashMap;\n private _idIndexMapCount: number;\n\n static defaultOption: TreemapSeriesOption = {\n // Disable progressive rendering\n progressive: 0,\n // size: ['80%', '80%'], // deprecated, compatible with ec2.\n left: 'center',\n top: 'middle',\n width: '80%',\n height: '80%',\n sort: true,\n\n clipWindow: 'origin',\n squareRatio: 0.5 * (1 + Math.sqrt(5)), // golden ratio\n leafDepth: null,\n\n drillDownIcon: '\u25B6', // Use html character temporarily because it is complicated\n // to align specialized icon. \u25B7\u25B6\u2752\u2750\u25BC\u271A\n\n zoomToNodeRatio: 0.32 * 0.32,\n\n roam: true,\n nodeClick: 'zoomToNode',\n animation: true,\n animationDurationUpdate: 900,\n animationEasing: 'quinticInOut',\n breadcrumb: {\n show: true,\n height: 22,\n left: 'center',\n top: 'bottom',\n // right\n // bottom\n emptyItemWidth: 25, // Width of empty node.\n itemStyle: {\n color: 'rgba(0,0,0,0.7)', //'#5793f3',\n textStyle: {\n color: '#fff'\n }\n }\n },\n label: {\n show: true,\n // Do not use textDistance, for ellipsis rect just the same as treemap node rect.\n distance: 0,\n padding: 5,\n position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ...\n // formatter: null,\n color: '#fff',\n overflow: 'truncate'\n // align\n // verticalAlign\n },\n upperLabel: { // Label when node is parent.\n show: false,\n position: [0, '50%'],\n height: 20,\n // formatter: null,\n // color: '#fff',\n overflow: 'truncate',\n // align: null,\n verticalAlign: 'middle'\n },\n itemStyle: {\n color: null, // Can be 'none' if not necessary.\n colorAlpha: null, // Can be 'none' if not necessary.\n colorSaturation: null, // Can be 'none' if not necessary.\n borderWidth: 0,\n gapWidth: 0,\n borderColor: '#fff',\n borderColorSaturation: null // If specified, borderColor will be ineffective, and the\n // border color is evaluated by color of current node and\n // borderColorSaturation.\n },\n emphasis: {\n upperLabel: {\n show: true,\n position: [0, '50%'],\n ellipsis: true,\n verticalAlign: 'middle'\n }\n },\n\n visualDimension: 0, // Can be 0, 1, 2, 3.\n visualMin: null,\n visualMax: null,\n\n color: [], // + treemapSeries.color should not be modified. Please only modified\n // level[n].color (if necessary).\n // + Specify color list of each level. level[0].color would be global\n // color list if not specified. (see method `setDefault`).\n // + But set as a empty array to forbid fetch color from global palette\n // when using nodeModel.get('color'), otherwise nodes on deep level\n // will always has color palette set and are not able to inherit color\n // from parent node.\n // + TreemapSeries.color can not be set as 'none', otherwise effect\n // legend color fetching (see seriesColor.js).\n colorAlpha: null, // Array. Specify color alpha range of each level, like [0.2, 0.8]\n colorSaturation: null, // Array. Specify color saturation of each level, like [0.2, 0.5]\n colorMappingBy: 'index', // 'value' or 'index' or 'id'.\n visibleMin: 10, // If area less than this threshold (unit: pixel^2), node will not\n // be rendered. Only works when sort is 'asc' or 'desc'.\n childrenVisibleMin: null, // If area of a node less than this threshold (unit: pixel^2),\n // grandchildren will not show.\n // Why grandchildren? If not grandchildren but children,\n // some siblings show children and some not,\n // the appearance may be mess and not consistent,\n levels: [] // Each item: {\n // visibleMin, itemStyle, visualDimension, label\n // }\n // data: {\n // value: [],\n // children: [],\n // link: 'http://xxx.xxx.xxx',\n // target: 'blank' or 'self'\n // }\n };\n\n /**\n * @override\n */\n getInitialData(option: TreemapSeriesOption, ecModel: GlobalModel) {\n // Create a virtual root.\n const root: TreemapSeriesNodeItemOption = {\n name: option.name,\n children: option.data\n };\n\n completeTreeValue(root);\n\n let levels = option.levels || [];\n\n // Used in \"visual priority\" in `treemapVisual.js`.\n // This way is a little tricky, must satisfy the precondition:\n // 1. There is no `treeNode.getModel('itemStyle.xxx')` used.\n // 2. The `Model.prototype.getModel()` will not use any clone-like way.\n const designatedVisualItemStyle = this.designatedVisualItemStyle = {};\n const designatedVisualModel = new Model({itemStyle: designatedVisualItemStyle}, this, ecModel);\n\n levels = option.levels = setDefault(levels, ecModel);\n const levelModels = zrUtil.map(levels || [], function (levelDefine) {\n return new Model(levelDefine, designatedVisualModel, ecModel);\n }, this);\n\n // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n const levelModel = node ? levelModels[node.depth] : null;\n // If no levelModel, we also need `designatedVisualModel`.\n model.parentModel = levelModel || designatedVisualModel;\n return model;\n });\n }\n\n return tree.data;\n }\n\n optionUpdated() {\n this.resetViewRoot();\n }\n\n /**\n * @override\n * @param {number} dataIndex\n * @param {boolean} [mutipleSeries=false]\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const value = this.getRawValue(dataIndex) as TreemapSeriesDataValue;\n const name = data.getName(dataIndex);\n\n return createTooltipMarkup('nameValue', { name: name, value: value });\n }\n\n /**\n * Add tree path to tooltip param\n *\n * @override\n * @param {number} dataIndex\n * @return {Object}\n */\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as TreemapSeriesCallbackDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n // compatitable the previous code.\n params.treePathInfo = params.treeAncestors;\n\n return params;\n }\n\n /**\n * @public\n * @param {Object} layoutInfo {\n * x: containerGroup x\n * y: containerGroup y\n * width: containerGroup width\n * height: containerGroup height\n * }\n */\n setLayoutInfo(layoutInfo: LayoutRect) {\n /**\n * @readOnly\n * @type {Object}\n */\n this.layoutInfo = this.layoutInfo || {} as LayoutRect;\n zrUtil.extend(this.layoutInfo, layoutInfo);\n }\n\n /**\n * @param {string} id\n * @return {number} index\n */\n mapIdToIndex(id: string): number {\n // A feature is implemented:\n // index is monotone increasing with the sequence of\n // input id at the first time.\n // This feature can make sure that each data item and its\n // mapped color have the same index between data list and\n // color list at the beginning, which is useful for user\n // to adjust data-color mapping.\n\n /**\n * @private\n * @type {Object}\n */\n let idIndexMap = this._idIndexMap;\n\n if (!idIndexMap) {\n idIndexMap = this._idIndexMap = zrUtil.createHashMap();\n /**\n * @private\n * @type {number}\n */\n this._idIndexMapCount = 0;\n }\n\n let index = idIndexMap.get(id);\n if (index == null) {\n idIndexMap.set(id, index = this._idIndexMapCount++);\n }\n\n return index;\n }\n\n getViewRoot() {\n return this._viewRoot;\n }\n\n resetViewRoot(viewRoot?: TreeNode) {\n viewRoot\n ? (this._viewRoot = viewRoot)\n : (viewRoot = this._viewRoot);\n\n const root = this.getRawData().tree.root;\n\n if (!viewRoot\n || (viewRoot !== root && !root.contains(viewRoot))\n ) {\n this._viewRoot = root;\n }\n }\n\n enableAriaDecal() {\n enableAriaDecalForTree(this);\n }\n}\n\n/**\n * @param {Object} dataNode\n */\nfunction completeTreeValue(dataNode: TreemapSeriesNodeItemOption) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n let sum = 0;\n\n zrUtil.each(dataNode.children, function (child) {\n\n completeTreeValue(child);\n\n let childValue = child.value;\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n\n sum += childValue;\n });\n\n let thisValue = dataNode.value;\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n }\n // Value should not less than 0.\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value)\n ? (dataNode.value[0] = thisValue)\n : (dataNode.value = thisValue);\n}\n\n/**\n * set default to level configuration\n */\nfunction setDefault(levels: TreemapSeriesLevelOption[], ecModel: GlobalModel) {\n const globalColorList = normalizeToArray(ecModel.get('color')) as ColorString[];\n const globalDecalList = normalizeToArray(\n (ecModel as Model).get(['aria', 'decal', 'decals'])\n ) as DecalObject[];\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n let hasColorDefine;\n let hasDecalDefine;\n zrUtil.each(levels, function (levelDefine) {\n const model = new Model(levelDefine);\n const modelColor = model.get('color');\n const modelDecal = model.get('decal');\n\n if (model.get(['itemStyle', 'color'])\n || (modelColor && modelColor !== 'none')\n ) {\n hasColorDefine = true;\n }\n if (model.get(['itemStyle', 'decal'])\n || (modelDecal && modelDecal !== 'none')\n ) {\n hasDecalDefine = true;\n }\n });\n\n const level0 = levels[0] || (levels[0] = {});\n if (!hasColorDefine) {\n level0.color = globalColorList.slice();\n }\n if (!hasDecalDefine && globalDecalList) {\n level0.decal = globalDecalList.slice();\n }\n\n return levels;\n}\n\nexport default TreemapSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport * as layout from '../../util/layout';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption, TreemapSeriesOption } from './TreemapSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { curry, defaults } from 'zrender/src/core/util';\nimport { ZRElementEvent, BoxLayoutOptionMixin, ECElement } from '../../util/types';\nimport Element from 'zrender/src/Element';\nimport Model from '../../model/Model';\nimport { convertOptionIdName } from '../../util/model';\nimport { Z2_EMPHASIS_LIFT } from '../../util/states';\n\nconst TEXT_PADDING = 8;\nconst ITEM_GAP = 8;\nconst ARRAY_LENGTH = 5;\n\ninterface OnSelectCallback {\n (node: TreeNode, e: ZRElementEvent): void\n}\n\ninterface LayoutParam {\n pos: BoxLayoutOptionMixin\n box: {\n width: number,\n height: number\n }\n emptyItemWidth: number\n totalWidth: number\n renderList: {\n node: TreeNode,\n text: string\n width: number\n }[]\n}\n\ntype BreadcrumbItemStyleModel = Model;\ntype BreadcrumbTextStyleModel = Model;\n\nclass Breadcrumb {\n\n group = new graphic.Group();\n\n constructor(containerGroup: graphic.Group) {\n containerGroup.add(this.group);\n }\n\n render(\n seriesModel: TreemapSeriesModel,\n api: ExtensionAPI,\n targetNode: TreeNode,\n onSelect: OnSelectCallback\n ) {\n const model = seriesModel.getModel('breadcrumb');\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n if (!model.get('show') || !targetNode) {\n return;\n }\n\n const normalStyleModel = model.getModel('itemStyle');\n // let emphasisStyleModel = model.getModel('emphasis.itemStyle');\n const textStyleModel = normalStyleModel.getModel('textStyle');\n\n const layoutParam: LayoutParam = {\n pos: {\n left: model.get('left'),\n right: model.get('right'),\n top: model.get('top'),\n bottom: model.get('bottom')\n },\n box: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n emptyItemWidth: model.get('emptyItemWidth'),\n totalWidth: 0,\n renderList: []\n };\n\n this._prepare(targetNode, layoutParam, textStyleModel);\n this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect);\n\n layout.positionElement(thisGroup, layoutParam.pos, layoutParam.box);\n }\n\n /**\n * Prepare render list and total width\n * @private\n */\n _prepare(targetNode: TreeNode, layoutParam: LayoutParam, textStyleModel: BreadcrumbTextStyleModel) {\n for (let node = targetNode; node; node = node.parentNode) {\n const text = convertOptionIdName(node.getModel().get('name'), '');\n const textRect = textStyleModel.getTextRect(text);\n const itemWidth = Math.max(\n textRect.width + TEXT_PADDING * 2,\n layoutParam.emptyItemWidth\n );\n layoutParam.totalWidth += itemWidth + ITEM_GAP;\n layoutParam.renderList.push({\n node: node,\n text: text,\n width: itemWidth\n });\n }\n }\n\n /**\n * @private\n */\n _renderContent(\n seriesModel: TreemapSeriesModel,\n layoutParam: LayoutParam,\n normalStyleModel: BreadcrumbItemStyleModel,\n textStyleModel: BreadcrumbTextStyleModel,\n onSelect: OnSelectCallback\n ) {\n // Start rendering.\n let lastX = 0;\n const emptyItemWidth = layoutParam.emptyItemWidth;\n const height = seriesModel.get(['breadcrumb', 'height']);\n const availableSize = layout.getAvailableSize(layoutParam.pos, layoutParam.box);\n let totalWidth = layoutParam.totalWidth;\n const renderList = layoutParam.renderList;\n\n for (let i = renderList.length - 1; i >= 0; i--) {\n const item = renderList[i];\n const itemNode = item.node;\n let itemWidth = item.width;\n let text = item.text;\n\n // Hdie text and shorten width if necessary.\n if (totalWidth > availableSize.width) {\n totalWidth -= itemWidth - emptyItemWidth;\n itemWidth = emptyItemWidth;\n text = null;\n }\n\n const el = new graphic.Polygon({\n shape: {\n points: makeItemPoints(\n lastX, 0, itemWidth, height,\n i === renderList.length - 1, i === 0\n )\n },\n style: defaults(\n normalStyleModel.getItemStyle(),\n {\n lineJoin: 'bevel'\n }\n ),\n textContent: new graphic.Text({\n style: {\n text,\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }\n }),\n textConfig: {\n position: 'inside'\n },\n z2: Z2_EMPHASIS_LIFT * 1e4, // A very large z2\n onclick: curry(onSelect, itemNode)\n });\n (el as ECElement).disableLabelAnimation = true;\n\n this.group.add(el);\n\n packEventData(el, seriesModel, itemNode);\n\n lastX += itemWidth + ITEM_GAP;\n }\n }\n\n remove() {\n this.group.removeAll();\n }\n}\n\nfunction makeItemPoints(x: number, y: number, itemWidth: number, itemHeight: number, head: boolean, tail: boolean) {\n const points = [\n [head ? x : x - ARRAY_LENGTH, y],\n [x + itemWidth, y],\n [x + itemWidth, y + itemHeight],\n [head ? x : x - ARRAY_LENGTH, y + itemHeight]\n ];\n !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);\n !head && points.push([x, y + itemHeight / 2]);\n return points;\n}\n\n// Package custom mouse event.\nfunction packEventData(el: Element, seriesModel: TreemapSeriesModel, itemNode: TreeNode) {\n getECData(el).eventData = {\n componentType: 'series',\n componentSubType: 'treemap',\n componentIndex: seriesModel.componentIndex,\n seriesIndex: seriesModel.componentIndex,\n seriesName: seriesModel.name,\n seriesType: 'treemap',\n selfType: 'breadcrumb', // Distinguish with click event on treemap node.\n nodeData: {\n dataIndex: itemNode && itemNode.dataIndex,\n name: itemNode && itemNode.name\n },\n treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)\n };\n}\n\nexport default Breadcrumb;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport { ZREasing } from './types';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\n\ninterface AnimationWrapStorage {\n el: Element;\n target: ElementProps;\n duration: number;\n delay: number;\n easing: AnimationEasing\n}\ntype AnimationWrapDoneCallback = () => void;\n\n/**\n * Animate multiple elements with a single done-callback.\n *\n * @example\n * animation\n * .createWrap()\n * .add(el1, {x: 10, y: 10})\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\n * .done(function () { // done })\n * .start('cubicOut');\n */\nclass AnimationWrap {\n\n private _storage = [] as AnimationWrapStorage[];\n private _elExistsMap: { [elId: string]: boolean } = {};\n private _finishedCallback: AnimationWrapDoneCallback;\n\n /**\n * Caution: a el can only be added once, otherwise 'done'\n * might not be called. This method checks this (by el.id),\n * suppresses adding and returns false when existing el found.\n *\n * @return Whether adding succeeded.\n */\n add(\n el: Element,\n target: ElementProps,\n duration?: number,\n delay?: number,\n easing?: ZREasing\n ): boolean {\n if (this._elExistsMap[el.id]) {\n return false;\n }\n this._elExistsMap[el.id] = true;\n\n this._storage.push({\n el: el,\n target: target,\n duration: duration,\n delay: delay,\n easing: easing\n });\n\n return true;\n }\n\n /**\n * Only execute when animation done/aborted.\n */\n finished(callback: AnimationWrapDoneCallback): AnimationWrap {\n this._finishedCallback = callback;\n return this;\n }\n\n /**\n * Will stop exist animation firstly.\n */\n start(): AnimationWrap {\n let count = this._storage.length;\n\n const checkTerminate = () => {\n count--;\n if (count <= 0) { // Guard.\n this._storage.length = 0;\n this._elExistsMap = {};\n this._finishedCallback && this._finishedCallback();\n }\n };\n\n for (let i = 0, len = this._storage.length; i < len; i++) {\n const item = this._storage[i];\n item.el.animateTo(item.target, {\n duration: item.duration,\n delay: item.delay,\n easing: item.easing,\n setToFinal: true,\n done: checkTerminate,\n aborted: checkTerminate\n });\n }\n\n return this;\n }\n}\n\nexport function createWrap(): AnimationWrap {\n return new AnimationWrap();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {bind, each, indexOf, curry, extend, normalizeCssArray, isFunction} from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {\n isHighDownDispatcher,\n setAsHighDownDispatcher,\n setDefaultStateProxy,\n enableHoverFocus,\n Z2_EMPHASIS_LIFT\n} from '../../util/states';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as helper from '../helper/treeHelper';\nimport Breadcrumb from './Breadcrumb';\nimport RoamController, { RoamEventParams } from '../../component/helper/RoamController';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as animationUtil from '../../util/animation';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport ChartView from '../../view/Chart';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption } from './TreemapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Model from '../../model/Model';\nimport { LayoutRect } from '../../util/layout';\nimport { TreemapLayoutNode } from './treemapLayout';\nimport Element from 'zrender/src/Element';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { makeInner, convertOptionIdName } from '../../util/model';\nimport { PathStyleProps, PathProps } from 'zrender/src/graphic/Path';\nimport { TreeSeriesNodeItemOption } from '../tree/TreeSeries';\nimport {\n TreemapRootToNodePayload,\n TreemapMovePayload,\n TreemapRenderPayload,\n TreemapZoomToNodePayload\n} from './treemapAction';\nimport { ColorString, ECElement } from '../../util/types';\nimport { windowOpen } from '../../util/format';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\nconst Group = graphic.Group;\nconst Rect = graphic.Rect;\n\nconst DRAG_THRESHOLD = 3;\nconst PATH_LABEL_NOAMAL = 'label';\nconst PATH_UPPERLABEL_NORMAL = 'upperLabel';\n// Should larger than emphasis states lift z\nconst Z2_BASE = Z2_EMPHASIS_LIFT * 10; // Should bigger than every z2.\nconst Z2_BG = Z2_EMPHASIS_LIFT * 2;\nconst Z2_CONTENT = Z2_EMPHASIS_LIFT * 3;\n\nconst getStateItemStyle = makeStyleMapper([\n ['fill', 'color'],\n // `borderColor` and `borderWidth` has been occupied,\n // so use `stroke` to indicate the stroke of the rect.\n ['stroke', 'strokeColor'],\n ['lineWidth', 'strokeWidth'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n]);\nconst getItemStyleNormal = function (model: Model): PathStyleProps {\n // Normal style props should include emphasis style props.\n const itemStyle = getStateItemStyle(model) as PathStyleProps;\n // Clear styles set by emphasis.\n itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;\n return itemStyle;\n};\n\ninterface RenderElementStorage {\n nodeGroup: graphic.Group[]\n background: graphic.Rect[]\n content: graphic.Rect[]\n}\n\ntype LastCfgStorage = {\n [key in keyof RenderElementStorage]: LastCfg[]\n // nodeGroup: {\n // old: Pick[]\n // fadein: boolean\n // }[]\n // background: {\n // old: Pick\n // fadein: boolean\n // }[]\n // content: {\n // old: Pick\n // fadein: boolean\n // }[]\n};\n\ninterface FoundTargetInfo {\n node: TreeNode\n\n offsetX?: number\n offsetY?: number\n}\n\ninterface RenderResult {\n lastsForAnimation: LastCfgStorage\n willInvisibleEls?: graphic.Rect[]\n willDeleteEls: RenderElementStorage\n renderFinally: () => void\n}\n\ninterface ReRoot {\n rootNodeGroup: graphic.Group\n direction: 'drillDown' | 'rollUp'\n}\n\ninterface LastCfg {\n oldX?: number\n oldY?: number\n oldShape?: graphic.Rect['shape']\n fadein: boolean\n}\n\nconst inner = makeInner<{\n nodeWidth: number\n nodeHeight: number\n willDelete: boolean\n}, Element>();\n\nclass TreemapView extends ChartView {\n\n static type = 'treemap';\n type = TreemapView.type;\n\n private _containerGroup: graphic.Group;\n private _breadcrumb: Breadcrumb;\n private _controller: RoamController;\n\n private _oldTree: Tree;\n\n private _state: 'ready' | 'animating' = 'ready';\n\n private _storage = createStorage() as RenderElementStorage;\n\n seriesModel: TreemapSeriesModel;\n api: ExtensionAPI;\n ecModel: GlobalModel;\n\n /**\n * @override\n */\n render(\n seriesModel: TreemapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: TreemapZoomToNodePayload | TreemapRenderPayload | TreemapMovePayload | TreemapRootToNodePayload\n ) {\n\n const models = ecModel.findComponents({\n mainType: 'series', subType: 'treemap', query: payload\n });\n if (indexOf(models, seriesModel) < 0) {\n return;\n }\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper\n .retrieveTargetInfo(payload, types, seriesModel);\n const payloadType = payload && payload.type;\n const layoutInfo = seriesModel.layoutInfo;\n const isInit = !this._oldTree;\n const thisStorage = this._storage;\n\n // Mark new root when action is treemapRootToNode.\n const reRoot = (payloadType === 'treemapRootToNode' && targetInfo && thisStorage)\n ? {\n rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],\n direction: (payload as TreemapRootToNodePayload).direction\n }\n : null;\n\n const containerGroup = this._giveContainerGroup(layoutInfo);\n const hasAnimation = seriesModel.get('animation');\n\n const renderResult = this._doRender(containerGroup, seriesModel, reRoot);\n (\n hasAnimation &&\n !isInit && (\n !payloadType\n || payloadType === 'treemapZoomToNode'\n || payloadType === 'treemapRootToNode'\n )\n )\n ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot)\n : renderResult.renderFinally();\n\n this._resetController(api);\n\n this._renderBreadcrumb(seriesModel, api, targetInfo);\n }\n\n private _giveContainerGroup(layoutInfo: LayoutRect) {\n let containerGroup = this._containerGroup;\n if (!containerGroup) {\n // FIXME\n // \u52A0\u4E00\u5C42containerGroup\u662F\u4E3A\u4E86clip\uFF0C\u4F46\u662F\u73B0\u5728clip\u529F\u80FD\u5E76\u6CA1\u6709\u5B9E\u73B0\u3002\n containerGroup = this._containerGroup = new Group();\n this._initEvents(containerGroup);\n this.group.add(containerGroup);\n }\n containerGroup.x = layoutInfo.x;\n containerGroup.y = layoutInfo.y;\n\n return containerGroup;\n }\n\n private _doRender(containerGroup: graphic.Group, seriesModel: TreemapSeriesModel, reRoot: ReRoot): RenderResult {\n const thisTree = seriesModel.getData().tree;\n const oldTree = this._oldTree;\n\n // Clear last shape records.\n const lastsForAnimation = createStorage() as LastCfgStorage;\n const thisStorage = createStorage() as RenderElementStorage;\n const oldStorage = this._storage;\n const willInvisibleEls: RenderResult['willInvisibleEls'] = [];\n\n function doRenderNode(thisNode: TreeNode, oldNode: TreeNode, parentGroup: graphic.Group, depth: number) {\n return renderNode(\n seriesModel,\n thisStorage, oldStorage, reRoot,\n lastsForAnimation, willInvisibleEls,\n thisNode, oldNode, parentGroup, depth\n );\n }\n\n // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),\n // the oldTree is actually losted, so we can not find all of the old graphic\n // elements from tree. So we use this stragegy: make element storage, move\n // from old storage to new storage, clear old storage.\n\n dualTravel(\n thisTree.root ? [thisTree.root] : [],\n (oldTree && oldTree.root) ? [oldTree.root] : [],\n containerGroup,\n thisTree === oldTree || !oldTree,\n 0\n );\n\n // Process all removing.\n const willDeleteEls = clearStorage(oldStorage) as RenderElementStorage;\n\n this._oldTree = thisTree;\n this._storage = thisStorage;\n\n return {\n lastsForAnimation,\n willDeleteEls,\n renderFinally\n };\n\n function dualTravel(\n thisViewChildren: TreemapLayoutNode[],\n oldViewChildren: TreemapLayoutNode[],\n parentGroup: graphic.Group,\n sameTree: boolean,\n depth: number\n ) {\n // When 'render' is triggered by action,\n // 'this' and 'old' may be the same tree,\n // we use rawIndex in that case.\n if (sameTree) {\n oldViewChildren = thisViewChildren;\n each(thisViewChildren, function (child, index) {\n !child.isRemoved() && processNode(index, index);\n });\n }\n // Diff hierarchically (diff only in each subtree, but not whole).\n // because, consistency of view is important.\n else {\n (new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey))\n .add(processNode)\n .update(processNode)\n .remove(curry(processNode, null))\n .execute();\n }\n\n function getKey(node: TreeNode) {\n // Identify by name or raw index.\n return node.getId();\n }\n\n function processNode(newIndex: number, oldIndex?: number) {\n const thisNode = newIndex != null ? thisViewChildren[newIndex] : null;\n const oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;\n\n const group = doRenderNode(thisNode, oldNode, parentGroup, depth);\n\n group && dualTravel(\n thisNode && thisNode.viewChildren || [],\n oldNode && oldNode.viewChildren || [],\n group,\n sameTree,\n depth + 1\n );\n }\n }\n\n function clearStorage(storage: RenderElementStorage) {\n const willDeleteEls = createStorage() as RenderElementStorage;\n storage && each(storage, function (store, storageName) {\n const delEls = willDeleteEls[storageName];\n each(store, function (el) {\n el && (delEls.push(el as any), inner(el).willDelete = true);\n });\n });\n return willDeleteEls;\n }\n\n function renderFinally() {\n each(willDeleteEls, function (els) {\n each(els, function (el) {\n el.parent && el.parent.remove(el);\n });\n });\n each(willInvisibleEls, function (el) {\n el.invisible = true;\n // Setting invisible is for optimizing, so no need to set dirty,\n // just mark as invisible.\n el.dirty();\n });\n }\n }\n\n private _doAnimation(\n containerGroup: graphic.Group,\n renderResult: RenderResult,\n seriesModel: TreemapSeriesModel,\n reRoot: ReRoot\n ) {\n const durationOption = seriesModel.get('animationDurationUpdate');\n const easingOption = seriesModel.get('animationEasing');\n // TODO: do not support function until necessary.\n const duration = (isFunction(durationOption) ? 0 : durationOption) || 0;\n const easing = (isFunction(easingOption) ? null : easingOption) || 'cubicOut';\n const animationWrap = animationUtil.createWrap();\n\n // Make delete animations.\n each(renderResult.willDeleteEls, function (store, storageName) {\n each(store, function (el, rawIndex) {\n if ((el as Displayable).invisible) {\n return;\n }\n\n const parent = el.parent; // Always has parent, and parent is nodeGroup.\n let target: PathProps;\n const innerStore = inner(parent);\n\n if (reRoot && reRoot.direction === 'drillDown') {\n target = parent === reRoot.rootNodeGroup\n // This is the content element of view root.\n // Only `content` will enter this branch, because\n // `background` and `nodeGroup` will not be deleted.\n ? {\n shape: {\n x: 0,\n y: 0,\n width: innerStore.nodeWidth,\n height: innerStore.nodeHeight\n },\n style: {\n opacity: 0\n }\n }\n // Others.\n : {style: {opacity: 0}};\n }\n else {\n let targetX = 0;\n let targetY = 0;\n\n if (!innerStore.willDelete) {\n // Let node animate to right-bottom corner, cooperating with fadeout,\n // which is appropriate for user understanding.\n // Divided by 2 for reRoot rolling up effect.\n targetX = innerStore.nodeWidth / 2;\n targetY = innerStore.nodeHeight / 2;\n }\n\n target = storageName === 'nodeGroup'\n ? {x: targetX, y: targetY, style: {opacity: 0}}\n : {\n shape: {x: targetX, y: targetY, width: 0, height: 0},\n style: {opacity: 0}\n };\n }\n\n // TODO: do not support delay until necessary.\n target && animationWrap.add(el, target, duration, 0, easing);\n });\n });\n\n // Make other animations\n each(this._storage, function (store, storageName) {\n each(store, function (el, rawIndex) {\n const last = renderResult.lastsForAnimation[storageName][rawIndex];\n const target: PathProps = {};\n\n if (!last) {\n return;\n }\n\n if (el instanceof graphic.Group) {\n if (last.oldX != null) {\n target.x = el.x;\n target.y = el.y;\n el.x = last.oldX;\n el.y = last.oldY;\n }\n }\n else {\n if (last.oldShape) {\n target.shape = extend({}, el.shape);\n el.setShape(last.oldShape);\n }\n\n if (last.fadein) {\n el.setStyle('opacity', 0);\n target.style = {opacity: 1};\n }\n // When animation is stopped for succedent animation starting,\n // el.style.opacity might not be 1\n else if (el.style.opacity !== 1) {\n target.style = {opacity: 1};\n }\n }\n\n animationWrap.add(el, target, duration, 0, easing);\n });\n }, this);\n\n this._state = 'animating';\n\n animationWrap\n .finished(bind(function () {\n this._state = 'ready';\n renderResult.renderFinally();\n }, this))\n .start();\n }\n\n private _resetController(api: ExtensionAPI) {\n let controller = this._controller;\n\n // Init controller.\n if (!controller) {\n controller = this._controller = new RoamController(api.getZr());\n controller.enable(this.seriesModel.get('roam'));\n controller.on('pan', bind(this._onPan, this));\n controller.on('zoom', bind(this._onZoom, this));\n }\n\n const rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());\n controller.setPointerChecker(function (e, x, y) {\n return rect.contain(x, y);\n });\n }\n\n private _clearController() {\n let controller = this._controller;\n if (controller) {\n controller.dispose();\n controller = null;\n }\n }\n\n private _onPan(e: RoamEventParams['pan']) {\n if (this._state !== 'animating'\n && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)\n ) {\n // These param must not be cached.\n const root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n const rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n this.api.dispatchAction({\n type: 'treemapMove',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rootLayout.x + e.dx, y: rootLayout.y + e.dy,\n width: rootLayout.width, height: rootLayout.height\n }\n } as TreemapMovePayload);\n }\n }\n\n private _onZoom(e: RoamEventParams['zoom']) {\n let mouseX = e.originX;\n let mouseY = e.originY;\n\n if (this._state !== 'animating') {\n // These param must not be cached.\n const root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n const rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n const rect = new BoundingRect(\n rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height\n );\n const layoutInfo = this.seriesModel.layoutInfo;\n\n // Transform mouse coord from global to containerGroup.\n mouseX -= layoutInfo.x;\n mouseY -= layoutInfo.y;\n\n // Scale root bounding rect.\n const m = matrix.create();\n matrix.translate(m, m, [-mouseX, -mouseY]);\n matrix.scale(m, m, [e.scale, e.scale]);\n matrix.translate(m, m, [mouseX, mouseY]);\n\n rect.applyTransform(m);\n\n this.api.dispatchAction({\n type: 'treemapRender',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rect.x, y: rect.y,\n width: rect.width, height: rect.height\n }\n } as TreemapRenderPayload);\n }\n }\n\n private _initEvents(containerGroup: graphic.Group) {\n containerGroup.on('click', (e) => {\n if (this._state !== 'ready') {\n return;\n }\n\n const nodeClick = this.seriesModel.get('nodeClick', true);\n\n if (!nodeClick) {\n return;\n }\n\n const targetInfo = this.findTarget(e.offsetX, e.offsetY);\n\n if (!targetInfo) {\n return;\n }\n\n const node = targetInfo.node;\n if (node.getLayout().isLeafRoot) {\n this._rootToNode(targetInfo);\n }\n else {\n if (nodeClick === 'zoomToNode') {\n this._zoomToNode(targetInfo);\n }\n else if (nodeClick === 'link') {\n const itemModel = node.hostTree.data.getItemModel(node.dataIndex);\n const link = itemModel.get('link', true);\n const linkTarget = itemModel.get('target', true) || 'blank';\n link && windowOpen(link, linkTarget);\n }\n }\n\n }, this);\n }\n\n private _renderBreadcrumb(seriesModel: TreemapSeriesModel, api: ExtensionAPI, targetInfo: FoundTargetInfo) {\n if (!targetInfo) {\n targetInfo = seriesModel.get('leafDepth', true) != null\n ? {node: seriesModel.getViewRoot()}\n // FIXME\n // better way?\n // Find breadcrumb tail on center of containerGroup.\n : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);\n\n if (!targetInfo) {\n targetInfo = {node: seriesModel.getData().tree.root};\n }\n }\n\n (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group)))\n .render(seriesModel, api, targetInfo.node, (node) => {\n if (this._state !== 'animating') {\n helper.aboveViewRoot(seriesModel.getViewRoot(), node)\n ? this._rootToNode({node: node})\n : this._zoomToNode({node: node});\n }\n });\n }\n\n /**\n * @override\n */\n remove() {\n this._clearController();\n this._containerGroup && this._containerGroup.removeAll();\n this._storage = createStorage() as RenderElementStorage;\n this._state = 'ready';\n this._breadcrumb && this._breadcrumb.remove();\n }\n\n dispose() {\n this._clearController();\n }\n\n private _zoomToNode(targetInfo: FoundTargetInfo) {\n this.api.dispatchAction({\n type: 'treemapZoomToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n }\n\n private _rootToNode(targetInfo: FoundTargetInfo) {\n this.api.dispatchAction({\n type: 'treemapRootToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n }\n\n /**\n * @public\n * @param {number} x Global coord x.\n * @param {number} y Global coord y.\n * @return {Object} info If not found, return undefined;\n * @return {number} info.node Target node.\n * @return {number} info.offsetX x refer to target node.\n * @return {number} info.offsetY y refer to target node.\n */\n findTarget(x: number, y: number): FoundTargetInfo {\n let targetInfo;\n const viewRoot = this.seriesModel.getViewRoot();\n\n viewRoot.eachNode({attr: 'viewChildren', order: 'preorder'}, function (node) {\n const bgEl = this._storage.background[node.getRawIndex()];\n // If invisible, there might be no element.\n if (bgEl) {\n const point = bgEl.transformCoordToLocal(x, y);\n const shape = bgEl.shape;\n\n // For performance consideration, dont use 'getBoundingRect'.\n if (shape.x <= point[0]\n && point[0] <= shape.x + shape.width\n && shape.y <= point[1]\n && point[1] <= shape.y + shape.height\n ) {\n targetInfo = {\n node: node,\n offsetX: point[0],\n offsetY: point[1]\n };\n }\n else {\n return false; // Suppress visit subtree.\n }\n }\n }, this);\n\n return targetInfo;\n }\n}\n\n/**\n * @inner\n */\nfunction createStorage(): RenderElementStorage | LastCfgStorage {\n return {\n nodeGroup: [],\n background: [],\n content: []\n };\n}\n\n/**\n * @inner\n * @return Return undefined means do not travel further.\n */\nfunction renderNode(\n seriesModel: TreemapSeriesModel,\n thisStorage: RenderElementStorage,\n oldStorage: RenderElementStorage,\n reRoot: ReRoot,\n lastsForAnimation: RenderResult['lastsForAnimation'],\n willInvisibleEls: RenderResult['willInvisibleEls'],\n thisNode: TreeNode,\n oldNode: TreeNode,\n parentGroup: graphic.Group,\n depth: number\n) {\n // Whether under viewRoot.\n if (!thisNode) {\n // Deleting nodes will be performed finally. This method just find\n // element from old storage, or create new element, set them to new\n // storage, and set styles.\n return;\n }\n\n // -------------------------------------------------------------------\n // Start of closure variables available in \"Procedures in renderNode\".\n\n const thisLayout = thisNode.getLayout();\n const data = seriesModel.getData();\n const nodeModel = thisNode.getModel();\n\n // Only for enabling highlight/downplay. Clear firstly.\n // Because some node will not be rendered.\n data.setItemGraphicEl(thisNode.dataIndex, null);\n\n if (!thisLayout || !thisLayout.isInView) {\n return;\n }\n\n const thisWidth = thisLayout.width;\n const thisHeight = thisLayout.height;\n const borderWidth = thisLayout.borderWidth;\n const thisInvisible = thisLayout.invisible;\n\n const thisRawIndex = thisNode.getRawIndex();\n const oldRawIndex = oldNode && oldNode.getRawIndex();\n\n const thisViewChildren = thisNode.viewChildren;\n const upperHeight = thisLayout.upperHeight;\n const isParent = thisViewChildren && thisViewChildren.length;\n const itemStyleNormalModel = nodeModel.getModel('itemStyle');\n const itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']);\n const itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']);\n const itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']);\n const borderRadius = itemStyleNormalModel.get('borderRadius') || 0;\n\n // End of closure ariables available in \"Procedures in renderNode\".\n // -----------------------------------------------------------------\n\n // Node group\n const group = giveGraphic('nodeGroup', Group);\n\n if (!group) {\n return;\n }\n\n parentGroup.add(group);\n // x,y are not set when el is above view root.\n group.x = thisLayout.x || 0;\n group.y = thisLayout.y || 0;\n group.markRedraw();\n inner(group).nodeWidth = thisWidth;\n inner(group).nodeHeight = thisHeight;\n\n if (thisLayout.isAboveViewRoot) {\n return group;\n }\n\n // Background\n const bg = giveGraphic('background', Rect, depth, Z2_BG);\n bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight);\n\n const focus = nodeModel.get(['emphasis', 'focus']);\n const blurScope = nodeModel.get(['emphasis', 'blurScope']);\n\n const focusOrIndices =\n focus === 'ancestor' ? thisNode.getAncestorsIndices()\n : focus === 'descendant' ? thisNode.getDescendantIndices()\n : focus;\n\n // No children, render content.\n if (isParent) {\n // Because of the implementation about \"traverse\" in graphic hover style, we\n // can not set hover listener on the \"group\" of non-leaf node. Otherwise the\n // hover event from the descendents will be listenered.\n if (isHighDownDispatcher(group)) {\n setAsHighDownDispatcher(group, false);\n }\n if (bg) {\n setAsHighDownDispatcher(bg, true);\n // Only for enabling highlight/downplay.\n data.setItemGraphicEl(thisNode.dataIndex, bg);\n\n enableHoverFocus(bg, focusOrIndices, blurScope);\n }\n }\n else {\n const content = giveGraphic('content', Rect, depth, Z2_CONTENT);\n content && renderContent(group, content);\n\n (bg as ECElement).disableMorphing = true;\n\n if (bg && isHighDownDispatcher(bg)) {\n setAsHighDownDispatcher(bg, false);\n }\n setAsHighDownDispatcher(group, true);\n // Only for enabling highlight/downplay.\n data.setItemGraphicEl(thisNode.dataIndex, group);\n\n enableHoverFocus(group, focusOrIndices, blurScope);\n }\n\n return group;\n\n // ----------------------------\n // | Procedures in renderNode |\n // ----------------------------\n\n function renderBackground(group: graphic.Group, bg: graphic.Rect, useUpperLabel: boolean) {\n const ecData = getECData(bg);\n // For tooltip.\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n\n bg.setShape({x: 0, y: 0, width: thisWidth, height: thisHeight, r: borderRadius});\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(bg);\n }\n else {\n bg.invisible = false;\n const style = thisNode.getVisual('style') as PathStyleProps;\n const visualBorderColor = style.stroke;\n const normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualBorderColor;\n const emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor');\n const blurStyle = getStateItemStyle(itemStyleBlurModel);\n blurStyle.fill = itemStyleBlurModel.get('borderColor');\n const selectStyle = getStateItemStyle(itemStyleSelectModel);\n selectStyle.fill = itemStyleSelectModel.get('borderColor');\n\n if (useUpperLabel) {\n const upperLabelWidth = thisWidth - 2 * borderWidth;\n\n prepareText(\n // PENDING: convert ZRColor to ColorString for text.\n bg, visualBorderColor as ColorString, style.opacity,\n {x: borderWidth, y: 0, width: upperLabelWidth, height: upperHeight}\n );\n }\n // For old bg.\n else {\n bg.removeTextContent();\n }\n\n bg.setStyle(normalStyle);\n\n bg.ensureState('emphasis').style = emphasisStyle;\n bg.ensureState('blur').style = blurStyle;\n bg.ensureState('select').style = selectStyle;\n setDefaultStateProxy(bg);\n }\n\n group.add(bg);\n }\n\n function renderContent(group: graphic.Group, content: graphic.Rect) {\n const ecData = getECData(content);\n // For tooltip.\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n\n const contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);\n const contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);\n\n content.culling = true;\n content.setShape({\n x: borderWidth,\n y: borderWidth,\n width: contentWidth,\n height: contentHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(content);\n }\n else {\n content.invisible = false;\n const nodeStyle = thisNode.getVisual('style') as PathStyleProps;\n const visualColor = nodeStyle.fill;\n const normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualColor;\n normalStyle.decal = nodeStyle.decal;\n const emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n const blurStyle = getStateItemStyle(itemStyleBlurModel);\n const selectStyle = getStateItemStyle(itemStyleSelectModel);\n\n // PENDING: convert ZRColor to ColorString for text.\n prepareText(content, visualColor as ColorString, nodeStyle.opacity, null);\n\n content.setStyle(normalStyle);\n content.ensureState('emphasis').style = emphasisStyle;\n content.ensureState('blur').style = blurStyle;\n content.ensureState('select').style = selectStyle;\n setDefaultStateProxy(content);\n }\n\n group.add(content);\n }\n\n function processInvisible(element: graphic.Rect) {\n // Delay invisible setting utill animation finished,\n // avoid element vanish suddenly before animation.\n !element.invisible && willInvisibleEls.push(element);\n }\n\n function prepareText(\n rectEl: graphic.Rect,\n visualColor: ColorString,\n visualOpacity: number,\n // Can be null/undefined\n upperLabelRect: RectLike\n ) {\n const normalLabelModel = nodeModel.getModel(\n upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL\n );\n\n const defaultText = convertOptionIdName(nodeModel.get('name'), null);\n\n const isShow = normalLabelModel.getShallow('show');\n\n setLabelStyle(\n rectEl,\n getLabelStatesModels(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL),\n {\n defaultText: isShow ? defaultText : null,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n labelFetcher: seriesModel,\n labelDataIndex: thisNode.dataIndex\n }\n );\n\n const textEl = rectEl.getTextContent();\n if (!textEl) {\n return;\n }\n const textStyle = textEl.style;\n const textPadding = normalizeCssArray(textStyle.padding || 0);\n\n if (upperLabelRect) {\n rectEl.setTextConfig({\n layoutRect: upperLabelRect\n });\n (textEl as ECElement).disableLabelLayout = true;\n }\n textEl.beforeUpdate = function () {\n const width = Math.max(\n (upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0\n );\n const height = Math.max(\n (upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0\n );\n if (textStyle.width !== width || textStyle.height !== height) {\n textEl.setStyle({\n width,\n height\n });\n }\n };\n\n textStyle.truncateMinChar = 2;\n textStyle.lineOverflow = 'truncate';\n\n addDrillDownIcon(textStyle, upperLabelRect, thisLayout);\n const textEmphasisState = textEl.getState('emphasis');\n addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout);\n }\n\n function addDrillDownIcon(style: TextStyleProps, upperLabelRect: RectLike, thisLayout: any) {\n const text = style ? style.text : null;\n if (!upperLabelRect && thisLayout.isLeafRoot && text != null) {\n const iconChar = seriesModel.get('drillDownIcon', true);\n style.text = iconChar ? iconChar + ' ' + text : text;\n }\n }\n\n function giveGraphic(\n storageName: keyof RenderElementStorage,\n Ctor: {new(): T},\n depth?: number,\n z?: number\n ): T {\n let element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];\n const lasts = lastsForAnimation[storageName];\n\n if (element) {\n // Remove from oldStorage\n oldStorage[storageName][oldRawIndex] = null;\n prepareAnimationWhenHasOld(lasts, element);\n }\n // If invisible and no old element, do not create new element (for optimizing).\n else if (!thisInvisible) {\n element = new Ctor();\n if (element instanceof Displayable) {\n element.z2 = calculateZ2(depth, z);\n }\n prepareAnimationWhenNoOld(lasts, element);\n }\n\n // Set to thisStorage\n return (thisStorage[storageName][thisRawIndex] = element) as T;\n }\n\n function prepareAnimationWhenHasOld(lasts: LastCfg[], element: graphic.Group | graphic.Rect) {\n const lastCfg = lasts[thisRawIndex] = {} as LastCfg;\n if (element instanceof Group) {\n lastCfg.oldX = element.x;\n lastCfg.oldY = element.y;\n }\n else {\n lastCfg.oldShape = extend({}, element.shape);\n }\n }\n\n // If a element is new, we need to find the animation start point carefully,\n // otherwise it will looks strange when 'zoomToNode'.\n function prepareAnimationWhenNoOld(lasts: LastCfg[], element: graphic.Group | graphic.Rect) {\n const lastCfg = lasts[thisRawIndex] = {} as LastCfg;\n const parentNode = thisNode.parentNode;\n const isGroup = element instanceof graphic.Group;\n\n if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {\n let parentOldX = 0;\n let parentOldY = 0;\n\n // New nodes appear from right-bottom corner in 'zoomToNode' animation.\n // For convenience, get old bounding rect from background.\n const parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];\n if (!reRoot && parentOldBg && parentOldBg.oldShape) {\n parentOldX = parentOldBg.oldShape.width;\n parentOldY = parentOldBg.oldShape.height;\n }\n\n // When no parent old shape found, its parent is new too,\n // so we can just use {x:0, y:0}.\n if (isGroup) {\n lastCfg.oldX = 0;\n lastCfg.oldY = parentOldY;\n }\n else {\n lastCfg.oldShape = {x: parentOldX, y: parentOldY, width: 0, height: 0};\n }\n }\n\n // Fade in, user can be aware that these nodes are new.\n lastCfg.fadein = !isGroup;\n }\n\n}\n\n// We can not set all backgroud with the same z, Because the behaviour of\n// drill down and roll up differ background creation sequence from tree\n// hierarchy sequence, which cause that lowser background element overlap\n// upper ones. So we calculate z based on depth.\n// Moreover, we try to shrink down z interval to [0, 1] to avoid that\n// treemap with large z overlaps other components.\nfunction calculateZ2(depth: number, z2InLevel: number) {\n return depth * Z2_BASE + z2InLevel;\n}\n\nexport default TreemapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as zrColor from 'zrender/src/tool/color';\nimport {linearMap} from '../util/number';\nimport { AllPropTypes, Dictionary } from 'zrender/src/core/types';\nimport {\n ColorString,\n BuiltinVisualProperty,\n VisualOptionPiecewise,\n VisualOptionCategory,\n VisualOptionLinear,\n VisualOptionUnit,\n ParsedValue\n} from '../util/types';\n\nconst each = zrUtil.each;\nconst isObject = zrUtil.isObject;\n\nconst CATEGORY_DEFAULT_VISUAL_INDEX = -1;\n\n// Type of raw value\ntype RawValue = ParsedValue;\n// Type of mapping visual value\ntype VisualValue = AllPropTypes;\n// Type of value after normalized. 0 - 1\ntype NormalizedValue = number;\n\ntype MappingMethod = 'linear' | 'piecewise' | 'category' | 'fixed';\n\n// May include liftZ. wich is not provided to developers.\n\ninterface Normalizer {\n (this: VisualMapping, value?: RawValue): NormalizedValue\n}\ninterface ColorMapper {\n (this: VisualMapping, value: RawValue | NormalizedValue, isNormalized?: boolean, out?: number[])\n : ColorString | number[]\n}\ninterface DoMap {\n (this: VisualMapping, normalzied?: NormalizedValue, value?: RawValue): VisualValue\n}\ninterface VisualValueGetter {\n (key: string): VisualValue\n}\ninterface VisualValueSetter {\n (key: string, value: VisualValue): void\n}\ninterface VisualHandler {\n applyVisual(\n this: VisualMapping,\n value: RawValue,\n getter: VisualValueGetter,\n setter: VisualValueSetter\n ): void\n\n _normalizedToVisual: {\n linear(this: VisualMapping, normalized: NormalizedValue): VisualValue\n category(this: VisualMapping, normalized: NormalizedValue): VisualValue\n piecewise(this: VisualMapping, normalzied: NormalizedValue, value: RawValue): VisualValue\n fixed(this: VisualMapping): VisualValue\n }\n /**\n * Get color mapping for the outside usage.\n * Currently only used in `color` visual.\n *\n * The last parameter out is cached color array.\n */\n getColorMapper?: (this: VisualMapping) => ColorMapper\n}\n\ninterface VisualMappingPiece {\n index?: number\n\n value?: number | string\n interval?: [number, number]\n close?: [0 | 1, 0 | 1]\n\n text?: string\n\n visual?: VisualOptionPiecewise\n}\n\nexport interface VisualMappingOption {\n type?: BuiltinVisualProperty\n\n mappingMethod?: MappingMethod\n\n /**\n * required when mappingMethod is 'linear'\n */\n dataExtent?: [number, number]\n /**\n * required when mappingMethod is 'piecewise'.\n * Visual for only each piece can be specified\n * [\n * {value: someValue},\n * {interval: [min1, max1], visual: {...}},\n * {interval: [min2, max2]}\n * ],.\n */\n pieceList?: VisualMappingPiece[]\n /**\n * required when mappingMethod is 'category'. If no option.categories, categories is set as [0, 1, 2, ...].\n */\n categories?: (string | number)[]\n /**\n * Whether loop mapping when mappingMethod is 'category'.\n * @default false\n */\n loop?: boolean\n /**\n * Visual data\n * when mappingMethod is 'category', visual data can be array or object\n * (like: {cate1: '#222', none: '#fff'})\n * or primary types (which represents default category visual), otherwise visual\n * can be array or primary (which will be normalized to array).\n */\n visual?: VisualValue[] | Dictionary | VisualValue\n}\n\ninterface VisualMappingInnerPiece extends VisualMappingPiece {\n originIndex: number\n}\ninterface VisualMappingInnerOption extends VisualMappingOption {\n hasSpecialVisual: boolean\n pieceList: VisualMappingInnerPiece[]\n /**\n * Map to get category index\n */\n categoryMap: Dictionary\n /**\n * Cached parsed rgba array from string to avoid parse every time.\n */\n parsedVisual: number[][]\n\n // Have converted primary value to array.\n visual?: VisualValue[] | Dictionary\n}\n\nclass VisualMapping {\n\n option: VisualMappingInnerOption;\n\n type: BuiltinVisualProperty;\n\n mappingMethod: MappingMethod;\n\n applyVisual: VisualHandler['applyVisual'];\n\n getColorMapper: VisualHandler['getColorMapper'];\n\n _normalizeData: Normalizer;\n\n _normalizedToVisual: DoMap;\n\n constructor(option: VisualMappingOption) {\n const mappingMethod = option.mappingMethod;\n const visualType = option.type;\n\n const thisOption: VisualMappingInnerOption = this.option = zrUtil.clone(option) as VisualMappingInnerOption;\n\n this.type = visualType;\n this.mappingMethod = mappingMethod;\n\n this._normalizeData = normalizers[mappingMethod];\n const visualHandler = VisualMapping.visualHandlers[visualType];\n\n this.applyVisual = visualHandler.applyVisual;\n\n this.getColorMapper = visualHandler.getColorMapper;\n\n this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod];\n\n if (mappingMethod === 'piecewise') {\n normalizeVisualRange(thisOption);\n preprocessForPiecewise(thisOption);\n }\n else if (mappingMethod === 'category') {\n thisOption.categories\n ? preprocessForSpecifiedCategory(thisOption)\n // categories is ordinal when thisOption.categories not specified,\n // which need no more preprocess except normalize visual.\n : normalizeVisualRange(thisOption, true);\n }\n else { // mappingMethod === 'linear' or 'fixed'\n zrUtil.assert(mappingMethod !== 'linear' || thisOption.dataExtent);\n normalizeVisualRange(thisOption);\n }\n }\n\n mapValueToVisual(value: RawValue): VisualValue {\n const normalized = this._normalizeData(value);\n return this._normalizedToVisual(normalized, value);\n }\n\n getNormalizer() {\n return zrUtil.bind(this._normalizeData, this);\n }\n\n static visualHandlers: {[key in BuiltinVisualProperty]: VisualHandler} = {\n color: {\n applyVisual: makeApplyVisual('color'),\n getColorMapper: function () {\n const thisOption = this.option;\n\n return zrUtil.bind(\n thisOption.mappingMethod === 'category'\n ? function (\n this: VisualMapping,\n value: NormalizedValue | RawValue,\n isNormalized?: boolean\n ): ColorString {\n !isNormalized && (value = this._normalizeData(value));\n return doMapCategory.call(this, value) as ColorString;\n }\n : function (\n this: VisualMapping,\n value: NormalizedValue | RawValue,\n isNormalized?: boolean,\n out?: number[]\n ): number[] | string {\n // If output rgb array\n // which will be much faster and useful in pixel manipulation\n const returnRGBArray = !!out;\n !isNormalized && (value = this._normalizeData(value));\n out = zrColor.fastLerp(value as NormalizedValue, thisOption.parsedVisual, out);\n return returnRGBArray ? out : zrColor.stringify(out, 'rgba');\n },\n this\n );\n },\n\n _normalizedToVisual: {\n linear: function (normalized) {\n return zrColor.stringify(\n zrColor.fastLerp(normalized, this.option.parsedVisual),\n 'rgba'\n );\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = zrColor.stringify(\n zrColor.fastLerp(normalized, this.option.parsedVisual),\n 'rgba'\n );\n }\n return result;\n },\n fixed: doMapFixed\n }\n },\n\n colorHue: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, value);\n }),\n\n colorSaturation: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, null, value);\n }),\n\n colorLightness: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, null, null, value);\n }),\n\n colorAlpha: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyAlpha(color, value);\n }),\n\n decal: {\n applyVisual: makeApplyVisual('decal'),\n _normalizedToVisual: {\n linear: null,\n category: doMapCategory,\n piecewise: null,\n fixed: null\n }\n },\n\n opacity: {\n applyVisual: makeApplyVisual('opacity'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n },\n\n liftZ: {\n applyVisual: makeApplyVisual('liftZ'),\n _normalizedToVisual: {\n linear: doMapFixed,\n category: doMapFixed,\n piecewise: doMapFixed,\n fixed: doMapFixed\n }\n },\n\n symbol: {\n applyVisual: function (value, getter, setter) {\n const symbolCfg = this.mapValueToVisual(value);\n setter('symbol', symbolCfg as string);\n },\n _normalizedToVisual: {\n linear: doMapToArray,\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = doMapToArray.call(this, normalized);\n }\n return result;\n },\n fixed: doMapFixed\n }\n },\n\n symbolSize: {\n applyVisual: makeApplyVisual('symbolSize'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n }\n };\n\n\n /**\n * List available visual types.\n *\n * @public\n * @return {Array.}\n */\n static listVisualTypes() {\n return zrUtil.keys(VisualMapping.visualHandlers);\n }\n\n // /**\n // * @public\n // */\n // static addVisualHandler(name, handler) {\n // visualHandlers[name] = handler;\n // }\n\n /**\n * @public\n */\n static isValidType(visualType: string): boolean {\n return VisualMapping.visualHandlers.hasOwnProperty(visualType);\n }\n\n /**\n * Convinent method.\n * Visual can be Object or Array or primary type.\n */\n static eachVisual(\n visual: T | T[] | Dictionary,\n callback: (visual: T, key?: string | number) => void,\n context?: Ctx\n ) {\n if (zrUtil.isObject(visual)) {\n zrUtil.each(visual as Dictionary, callback, context);\n }\n else {\n callback.call(context, visual);\n }\n }\n\n static mapVisual(visual: T, callback: (visual: T, key?: string | number) => T, context?: Ctx): T\n static mapVisual(visual: T[], callback: (visual: T, key?: string | number) => T[], context?: Ctx): T[]\n static mapVisual(\n visual: Dictionary,\n callback: (visual: T, key?: string | number) => Dictionary,\n context?: Ctx\n ): Dictionary\n static mapVisual(\n visual: T | T[] | Dictionary,\n callback: (visual: T, key?: string | number) => T | T[] | Dictionary,\n context?: Ctx\n ) {\n let isPrimary: boolean;\n let newVisual: T | T[] | Dictionary = zrUtil.isArray(visual)\n ? []\n : zrUtil.isObject(visual)\n ? {}\n : (isPrimary = true, null);\n\n VisualMapping.eachVisual(visual, function (v, key) {\n const newVal = callback.call(context, v, key);\n isPrimary ? (newVisual = newVal) : ((newVisual as Dictionary)[key as string] = newVal as T);\n });\n return newVisual;\n }\n\n /**\n * Retrieve visual properties from given object.\n */\n static retrieveVisuals(obj: Dictionary): VisualOptionPiecewise {\n const ret: VisualOptionPiecewise = {};\n let hasVisual: boolean;\n\n obj && each(VisualMapping.visualHandlers, function (h, visualType: BuiltinVisualProperty) {\n if (obj.hasOwnProperty(visualType)) {\n (ret as any)[visualType] = obj[visualType];\n hasVisual = true;\n }\n });\n\n return hasVisual ? ret : null;\n }\n\n /**\n * Give order to visual types, considering colorSaturation, colorAlpha depends on color.\n *\n * @public\n * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}\n * IF Array, like: ['color', 'symbol', 'colorSaturation']\n * @return {Array.} Sorted visual types.\n */\n static prepareVisualTypes(\n visualTypes: {[key in BuiltinVisualProperty]?: any} | BuiltinVisualProperty[]\n ) {\n if (zrUtil.isArray(visualTypes)) {\n visualTypes = visualTypes.slice();\n }\n else if (isObject(visualTypes)) {\n const types: BuiltinVisualProperty[] = [];\n each(visualTypes, function (item: unknown, type: BuiltinVisualProperty) {\n types.push(type);\n });\n visualTypes = types;\n }\n else {\n return [];\n }\n\n visualTypes.sort(function (type1: BuiltinVisualProperty, type2: BuiltinVisualProperty) {\n // color should be front of colorSaturation, colorAlpha, ...\n // symbol and symbolSize do not matter.\n return (type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0)\n ? 1 : -1;\n });\n\n return visualTypes;\n }\n\n /**\n * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.\n * Other visuals are only depends on themself.\n */\n static dependsOn(visualType1: BuiltinVisualProperty, visualType2: BuiltinVisualProperty) {\n return visualType2 === 'color'\n ? !!(visualType1 && visualType1.indexOf(visualType2) === 0)\n : visualType1 === visualType2;\n }\n\n /**\n * @param value\n * @param pieceList [{value: ..., interval: [min, max]}, ...]\n * Always from small to big.\n * @param findClosestWhenOutside Default to be false\n * @return index\n */\n static findPieceIndex(value: number, pieceList: VisualMappingPiece[], findClosestWhenOutside?: boolean): number {\n let possibleI: number;\n let abs = Infinity;\n\n // value has the higher priority.\n for (let i = 0, len = pieceList.length; i < len; i++) {\n const pieceValue = pieceList[i].value;\n if (pieceValue != null) {\n if (pieceValue === value\n // FIXME\n // It is supposed to compare value according to value type of dimension,\n // but currently value type can exactly be string or number.\n // Compromise for numeric-like string (like '12'), especially\n // in the case that visualMap.categories is ['22', '33'].\n || (typeof pieceValue === 'string' && pieceValue === value + '')\n ) {\n return i;\n }\n findClosestWhenOutside && updatePossible(pieceValue as number, i);\n }\n }\n\n for (let i = 0, len = pieceList.length; i < len; i++) {\n const piece = pieceList[i];\n const interval = piece.interval;\n const close = piece.close;\n\n if (interval) {\n if (interval[0] === -Infinity) {\n if (littleThan(close[1], value, interval[1])) {\n return i;\n }\n }\n else if (interval[1] === Infinity) {\n if (littleThan(close[0], interval[0], value)) {\n return i;\n }\n }\n else if (\n littleThan(close[0], interval[0], value)\n && littleThan(close[1], value, interval[1])\n ) {\n return i;\n }\n findClosestWhenOutside && updatePossible(interval[0], i);\n findClosestWhenOutside && updatePossible(interval[1], i);\n }\n }\n\n if (findClosestWhenOutside) {\n return value === Infinity\n ? pieceList.length - 1\n : value === -Infinity\n ? 0\n : possibleI;\n }\n\n function updatePossible(val: number, index: number) {\n const newAbs = Math.abs(val - value);\n if (newAbs < abs) {\n abs = newAbs;\n possibleI = index;\n }\n }\n\n }\n}\n\nfunction preprocessForPiecewise(thisOption: VisualMappingInnerOption) {\n const pieceList = thisOption.pieceList;\n thisOption.hasSpecialVisual = false;\n\n zrUtil.each(pieceList, function (piece, index) {\n piece.originIndex = index;\n // piece.visual is \"result visual value\" but not\n // a visual range, so it does not need to be normalized.\n if (piece.visual != null) {\n thisOption.hasSpecialVisual = true;\n }\n });\n}\n\nfunction preprocessForSpecifiedCategory(thisOption: VisualMappingInnerOption) {\n // Hash categories.\n const categories = thisOption.categories;\n const categoryMap: VisualMappingInnerOption['categoryMap'] = thisOption.categoryMap = {};\n\n let visual = thisOption.visual;\n each(categories, function (cate, index) {\n categoryMap[cate] = index;\n });\n\n // Process visual map input.\n if (!zrUtil.isArray(visual)) {\n const visualArr: VisualValue[] = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v, cate) {\n const index = categoryMap[cate];\n visualArr[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;\n });\n }\n else { // Is primary type, represents default visual.\n visualArr[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;\n }\n\n visual = setVisualToOption(thisOption, visualArr);\n }\n\n // Remove categories that has no visual,\n // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.\n for (let i = categories.length - 1; i >= 0; i--) {\n if (visual[i] == null) {\n delete categoryMap[categories[i]];\n categories.pop();\n }\n }\n}\n\nfunction normalizeVisualRange(thisOption: VisualMappingInnerOption, isCategory?: boolean) {\n const visual = thisOption.visual;\n const visualArr: VisualValue[] = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v) {\n visualArr.push(v);\n });\n }\n else if (visual != null) {\n visualArr.push(visual);\n }\n\n const doNotNeedPair = {color: 1, symbol: 1};\n\n if (!isCategory\n && visualArr.length === 1\n && !doNotNeedPair.hasOwnProperty(thisOption.type)\n ) {\n // Do not care visualArr.length === 0, which is illegal.\n visualArr[1] = visualArr[0];\n }\n\n setVisualToOption(thisOption, visualArr);\n}\n\nfunction makePartialColorVisualHandler(\n applyValue: (prop: VisualValue, value: NormalizedValue) => VisualValue\n): VisualHandler {\n return {\n applyVisual: function (value, getter, setter) {\n // Only used in HSL\n const colorChannel = this.mapValueToVisual(value);\n // Must not be array value\n setter('color', applyValue(getter('color'), colorChannel as number));\n },\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n };\n}\n\nfunction doMapToArray(this: VisualMapping, normalized: NormalizedValue): VisualValue {\n const visual = this.option.visual as VisualValue[];\n return visual[\n Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))\n ] || {} as any; // TODO {}?\n}\n\nfunction makeApplyVisual(visualType: string): VisualHandler['applyVisual'] {\n return function (value, getter, setter) {\n setter(visualType, this.mapValueToVisual(value));\n };\n}\n\nfunction doMapCategory(this: VisualMapping, normalized: NormalizedValue): VisualValue {\n const visual = this.option.visual as Dictionary;\n return visual[\n (this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX)\n ? normalized % visual.length\n : normalized\n ];\n}\n\nfunction doMapFixed(this: VisualMapping): VisualValue {\n // visual will be convert to array.\n return (this.option.visual as VisualValue[])[0];\n}\n\n/**\n * Create mapped to numeric visual\n */\nfunction createNormalizedToNumericVisual(sourceExtent: [number, number]): VisualHandler['_normalizedToVisual'] {\n return {\n linear: function (normalized) {\n return linearMap(normalized, sourceExtent, this.option.visual as [number, number], true);\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = linearMap(normalized, sourceExtent, this.option.visual as [number, number], true);\n }\n return result;\n },\n fixed: doMapFixed\n };\n}\n\nfunction getSpecifiedVisual(this: VisualMapping, value: number) {\n const thisOption = this.option;\n const pieceList = thisOption.pieceList;\n if (thisOption.hasSpecialVisual) {\n const pieceIndex = VisualMapping.findPieceIndex(value, pieceList);\n const piece = pieceList[pieceIndex];\n if (piece && piece.visual) {\n return piece.visual[this.type];\n }\n }\n}\n\nfunction setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: VisualValue[]) {\n thisOption.visual = visualArr;\n if (thisOption.type === 'color') {\n thisOption.parsedVisual = zrUtil.map(visualArr, function (item: string) {\n return zrColor.parse(item);\n });\n }\n return visualArr;\n}\n\n\n/**\n * Normalizers by mapping methods.\n */\nconst normalizers: { [key in MappingMethod]: Normalizer } = {\n linear: function (value: RawValue): NormalizedValue {\n return linearMap(value as number, this.option.dataExtent, [0, 1], true);\n },\n\n piecewise: function (value: RawValue): NormalizedValue {\n const pieceList = this.option.pieceList;\n const pieceIndex = VisualMapping.findPieceIndex(value as number, pieceList, true);\n if (pieceIndex != null) {\n return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);\n }\n },\n\n category: function (value: RawValue): NormalizedValue {\n const index: number = this.option.categories\n ? this.option.categoryMap[value]\n : value as number; // ordinal value\n return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;\n },\n\n fixed: zrUtil.noop as Normalizer\n};\n\n\nfunction littleThan(close: boolean | 0 | 1, a: number, b: number): boolean {\n return close ? a <= b : a < b;\n}\n\nexport default VisualMapping;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport { each, extend, isArray } from 'zrender/src/core/util';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption, TreemapSeriesOption } from './TreemapSeries';\nimport { TreemapLayoutNode, TreemapItemLayout } from './treemapLayout';\nimport Model from '../../model/Model';\nimport { ColorString, ZRColor } from '../../util/types';\nimport { modifyHSL, modifyAlpha } from 'zrender/src/tool/color';\nimport { makeInner } from '../../util/model';\n\ntype NodeModel = Model;\ntype NodeItemStyleModel = Model;\n\nconst ITEM_STYLE_NORMAL = 'itemStyle';\n\nconst inner = makeInner<{\n drColorMappingBy: TreemapSeriesNodeItemOption['colorMappingBy']\n}, VisualMapping>();\n\ninterface TreemapVisual {\n color?: ZRColor\n colorAlpha?: number\n colorSaturation?: number\n}\n\ntype TreemapLevelItemStyleOption = TreemapSeriesOption['levels'][number]['itemStyle'];\n\nexport default {\n seriesType: 'treemap',\n reset(seriesModel: TreemapSeriesModel) {\n const tree = seriesModel.getData().tree;\n const root = tree.root;\n\n if (root.isRemoved()) {\n return;\n }\n\n travelTree(\n root, // Visual should calculate from tree root but not view root.\n {},\n seriesModel.getViewRoot().getAncestors(),\n seriesModel\n );\n }\n};\n\nfunction travelTree(\n node: TreemapLayoutNode,\n designatedVisual: TreemapVisual,\n viewRootAncestors: TreemapLayoutNode[],\n seriesModel: TreemapSeriesModel\n) {\n const nodeModel = node.getModel();\n const nodeLayout = node.getLayout();\n const data = node.hostTree.data;\n\n // Optimize\n if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {\n return;\n }\n const nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL);\n const visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel);\n\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n // calculate border color\n let borderColor = nodeItemStyleModel.get('borderColor');\n const borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');\n let thisNodeColor;\n if (borderColorSaturation != null) {\n // For performance, do not always execute 'calculateColor'.\n thisNodeColor = calculateColor(visuals);\n borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);\n }\n existsStyle.stroke = borderColor;\n\n const viewChildren = node.viewChildren;\n if (!viewChildren || !viewChildren.length) {\n thisNodeColor = calculateColor(visuals);\n // Apply visual to this node.\n existsStyle.fill = thisNodeColor;\n }\n else {\n const mapping = buildVisualMapping(\n node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren\n );\n\n // Designate visual to children.\n each(viewChildren, function (child, index) {\n // If higher than viewRoot, only ancestors of viewRoot is needed to visit.\n if (child.depth >= viewRootAncestors.length\n || child === viewRootAncestors[child.depth]\n ) {\n const childVisual = mapVisual(\n nodeModel, visuals, child, index, mapping, seriesModel\n );\n travelTree(child, childVisual, viewRootAncestors, seriesModel);\n }\n });\n }\n}\n\nfunction buildVisuals(\n nodeItemStyleModel: Model,\n designatedVisual: TreemapVisual,\n seriesModel: TreemapSeriesModel\n) {\n const visuals = extend({}, designatedVisual);\n const designatedVisualItemStyle = seriesModel.designatedVisualItemStyle;\n\n each(['color', 'colorAlpha', 'colorSaturation'] as const, function (visualName) {\n // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel\n (designatedVisualItemStyle as any)[visualName] = designatedVisual[visualName];\n const val = nodeItemStyleModel.get(visualName);\n designatedVisualItemStyle[visualName] = null;\n\n val != null && ((visuals as any)[visualName] = val);\n });\n\n return visuals;\n}\n\nfunction calculateColor(visuals: TreemapVisual) {\n let color = getValueVisualDefine(visuals, 'color') as ColorString;\n\n if (color) {\n const colorAlpha = getValueVisualDefine(visuals, 'colorAlpha') as number;\n const colorSaturation = getValueVisualDefine(visuals, 'colorSaturation') as number;\n if (colorSaturation) {\n color = modifyHSL(color, null, null, colorSaturation);\n }\n if (colorAlpha) {\n color = modifyAlpha(color, colorAlpha);\n }\n\n return color;\n }\n}\n\nfunction calculateBorderColor(\n borderColorSaturation: number,\n thisNodeColor: ColorString\n) {\n return thisNodeColor != null\n // Can only be string\n ? modifyHSL(thisNodeColor, null, null, borderColorSaturation)\n : null;\n}\n\nfunction getValueVisualDefine(visuals: TreemapVisual, name: keyof TreemapVisual) {\n const value = visuals[name];\n if (value != null && value !== 'none') {\n return value;\n }\n}\n\nfunction buildVisualMapping(\n node: TreemapLayoutNode,\n nodeModel: NodeModel,\n nodeLayout: TreemapItemLayout,\n nodeItemStyleModel: NodeItemStyleModel,\n visuals: TreemapVisual,\n viewChildren: TreemapLayoutNode[]\n) {\n if (!viewChildren || !viewChildren.length) {\n return;\n }\n\n const rangeVisual = getRangeVisual(nodeModel, 'color')\n || (\n visuals.color != null\n && visuals.color !== 'none'\n && (\n getRangeVisual(nodeModel, 'colorAlpha')\n || getRangeVisual(nodeModel, 'colorSaturation')\n )\n );\n\n if (!rangeVisual) {\n return;\n }\n\n const visualMin = nodeModel.get('visualMin');\n const visualMax = nodeModel.get('visualMax');\n const dataExtent = nodeLayout.dataExtent.slice() as [number, number];\n visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);\n visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);\n\n const colorMappingBy = nodeModel.get('colorMappingBy');\n const opt: VisualMappingOption = {\n type: rangeVisual.name,\n dataExtent: dataExtent,\n visual: rangeVisual.range\n };\n if (opt.type === 'color'\n && (colorMappingBy === 'index' || colorMappingBy === 'id')\n ) {\n opt.mappingMethod = 'category';\n opt.loop = true;\n // categories is ordinal, so do not set opt.categories.\n }\n else {\n opt.mappingMethod = 'linear';\n }\n\n const mapping = new VisualMapping(opt);\n inner(mapping).drColorMappingBy = colorMappingBy;\n\n return mapping;\n}\n\n// Notice: If we dont have the attribute 'colorRange', but only use\n// attribute 'color' to represent both concepts of 'colorRange' and 'color',\n// (It means 'colorRange' when 'color' is Array, means 'color' when not array),\n// this problem will be encountered:\n// If a level-1 node dont have children, and its siblings has children,\n// and colorRange is set on level-1, then the node can not be colored.\n// So we separate 'colorRange' and 'color' to different attributes.\nfunction getRangeVisual(nodeModel: NodeModel, name: keyof TreemapVisual) {\n // 'colorRange', 'colorARange', 'colorSRange'.\n // If not exsits on this node, fetch from levels and series.\n const range = nodeModel.get(name);\n return (isArray(range) && range.length) ? {\n name: name,\n range: range\n } : null;\n}\n\nfunction mapVisual(\n nodeModel: NodeModel,\n visuals: TreemapVisual,\n child: TreemapLayoutNode,\n index: number,\n mapping: VisualMapping,\n seriesModel: TreemapSeriesModel\n) {\n const childVisuals = extend({}, visuals);\n\n if (mapping) {\n // Only support color, colorAlpha, colorSaturation.\n const mappingType = mapping.type as keyof TreemapVisual;\n const colorMappingBy = mappingType === 'color' && inner(mapping).drColorMappingBy;\n const value = colorMappingBy === 'index'\n ? index\n : colorMappingBy === 'id'\n ? seriesModel.mapIdToIndex(child.getId())\n : child.getValue(nodeModel.get('visualDimension'));\n\n (childVisuals as any)[mappingType] = mapping.mapValueToVisual(value);\n }\n\n return childVisuals;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The treemap layout implementation was originally copied from\n* \"d3.js\" with some modifications made for this project.\n* (See more details in the comment of the method \"squarify\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {parsePercent, MAX_SAFE_INTEGER} from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as helper from '../helper/treeHelper';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption } from './TreemapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { TreemapRenderPayload, TreemapMovePayload, TreemapZoomToNodePayload } from './treemapAction';\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\nconst retrieveValue = zrUtil.retrieve;\nconst each = zrUtil.each;\n\nconst PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth'] as const;\nconst PATH_GAP_WIDTH = ['itemStyle', 'gapWidth'] as const;\nconst PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show'] as const;\nconst PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height'] as const;\n\nexport interface TreemapLayoutNode extends TreeNode {\n parentNode: TreemapLayoutNode\n children: TreemapLayoutNode[]\n viewChildren: TreemapLayoutNode[]\n}\n\nexport interface TreemapItemLayout extends RectLike {\n area: number\n isLeafRoot: boolean\n dataExtent: [number, number]\n\n borderWidth: number\n upperHeight: number\n upperLabelHeight: number\n\n isInView: boolean\n invisible: boolean\n\n isAboveViewRoot: boolean\n};\n\ntype NodeModel = Model;\n\ntype OrderBy = 'asc' | 'desc' | boolean;\n\ntype LayoutRow = TreemapLayoutNode[] & {\n area: number\n};\n/**\n * @public\n */\nexport default {\n seriesType: 'treemap',\n reset: function (\n seriesModel: TreemapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload?: TreemapZoomToNodePayload | TreemapRenderPayload | TreemapMovePayload\n ) {\n // Layout result in each node:\n // {x, y, width, height, area, borderWidth}\n const ecWidth = api.getWidth();\n const ecHeight = api.getHeight();\n const seriesOption = seriesModel.option;\n\n const layoutInfo = layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n const size = seriesOption.size || []; // Compatible with ec2.\n const containerWidth = parsePercent(\n retrieveValue(layoutInfo.width, size[0]),\n ecWidth\n );\n const containerHeight = parsePercent(\n retrieveValue(layoutInfo.height, size[1]),\n ecHeight\n );\n\n // Fetch payload info.\n const payloadType = payload && payload.type;\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper\n .retrieveTargetInfo(payload, types, seriesModel);\n const rootRect = (payloadType === 'treemapRender' || payloadType === 'treemapMove')\n ? payload.rootRect : null;\n const viewRoot = seriesModel.getViewRoot();\n const viewAbovePath = helper.getPathToRoot(viewRoot) as TreemapLayoutNode[];\n\n if (payloadType !== 'treemapMove') {\n const rootSize = payloadType === 'treemapZoomToNode'\n ? estimateRootSize(\n seriesModel, targetInfo, viewRoot, containerWidth, containerHeight\n )\n : rootRect\n ? [rootRect.width, rootRect.height]\n : [containerWidth, containerHeight];\n\n let sort = seriesOption.sort;\n if (sort && sort !== 'asc' && sort !== 'desc') {\n // Default to be desc order.\n sort = 'desc';\n }\n const options = {\n squareRatio: seriesOption.squareRatio,\n sort: sort,\n leafDepth: seriesOption.leafDepth\n };\n\n // layout should be cleared because using updateView but not update.\n viewRoot.hostTree.clearLayouts();\n\n // TODO\n // optimize: if out of view clip, do not layout.\n // But take care that if do not render node out of view clip,\n // how to calculate start po\n\n let viewRootLayout = {\n x: 0,\n y: 0,\n width: rootSize[0],\n height: rootSize[1],\n area: rootSize[0] * rootSize[1]\n };\n viewRoot.setLayout(viewRootLayout);\n\n squarify(viewRoot, options, false, 0);\n // Supplement layout.\n viewRootLayout = viewRoot.getLayout();\n each(viewAbovePath, function (node, index) {\n const childValue = (viewAbovePath[index + 1] || viewRoot).getValue();\n node.setLayout(zrUtil.extend(\n {\n dataExtent: [childValue, childValue],\n borderWidth: 0,\n upperHeight: 0\n },\n viewRootLayout\n ));\n });\n }\n\n const treeRoot = seriesModel.getData().tree.root;\n\n treeRoot.setLayout(\n calculateRootPosition(layoutInfo, rootRect, targetInfo),\n true\n );\n\n seriesModel.setLayoutInfo(layoutInfo);\n\n // FIXME\n // \u73B0\u5728\u6CA1\u6709clip\u529F\u80FD\uFF0C\u6682\u65F6\u53D6ec\u9AD8\u5BBD\u3002\n prunning(\n treeRoot,\n // Transform to base element coordinate system.\n new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight),\n viewAbovePath,\n viewRoot,\n 0\n );\n }\n};\n\n/**\n * Layout treemap with squarify algorithm.\n * The original presentation of this algorithm\n * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk\n * .\n * The implementation of this algorithm was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * @protected\n * @param {module:echarts/data/Tree~TreeNode} node\n * @param {Object} options\n * @param {string} options.sort 'asc' or 'desc'\n * @param {number} options.squareRatio\n * @param {boolean} hideChildren\n * @param {number} depth\n */\nfunction squarify(\n node: TreemapLayoutNode,\n options: {\n sort?: OrderBy\n squareRatio?: number\n leafDepth?: number\n },\n hideChildren: boolean,\n depth: number\n) {\n let width;\n let height;\n\n if (node.isRemoved()) {\n return;\n }\n\n const thisLayout = node.getLayout();\n width = thisLayout.width;\n height = thisLayout.height;\n\n // Considering border and gap\n const nodeModel = node.getModel();\n const borderWidth = nodeModel.get(PATH_BORDER_WIDTH);\n const halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;\n const upperLabelHeight = getUpperLabelHeight(nodeModel);\n const upperHeight = Math.max(borderWidth, upperLabelHeight);\n const layoutOffset = borderWidth - halfGapWidth;\n const layoutOffsetUpper = upperHeight - halfGapWidth;\n\n node.setLayout({\n borderWidth: borderWidth,\n upperHeight: upperHeight,\n upperLabelHeight: upperLabelHeight\n }, true);\n\n width = mathMax(width - 2 * layoutOffset, 0);\n height = mathMax(height - layoutOffset - layoutOffsetUpper, 0);\n\n const totalArea = width * height;\n const viewChildren = initChildren(\n node, nodeModel, totalArea, options, hideChildren, depth\n );\n\n if (!viewChildren.length) {\n return;\n }\n\n const rect = {x: layoutOffset, y: layoutOffsetUpper, width: width, height: height};\n let rowFixedLength = mathMin(width, height);\n let best = Infinity; // the best row score so far\n const row = [] as LayoutRow;\n row.area = 0;\n\n for (let i = 0, len = viewChildren.length; i < len;) {\n const child = viewChildren[i];\n\n row.push(child);\n row.area += child.getLayout().area;\n const score = worst(row, rowFixedLength, options.squareRatio);\n\n // continue with this orientation\n if (score <= best) {\n i++;\n best = score;\n }\n // abort, and try a different orientation\n else {\n row.area -= row.pop().getLayout().area;\n position(row, rowFixedLength, rect, halfGapWidth, false);\n rowFixedLength = mathMin(rect.width, rect.height);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n\n if (row.length) {\n position(row, rowFixedLength, rect, halfGapWidth, true);\n }\n\n if (!hideChildren) {\n const childrenVisibleMin = nodeModel.get('childrenVisibleMin');\n if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {\n hideChildren = true;\n }\n }\n\n for (let i = 0, len = viewChildren.length; i < len; i++) {\n squarify(viewChildren[i], options, hideChildren, depth + 1);\n }\n}\n\n/**\n * Set area to each child, and calculate data extent for visual coding.\n */\nfunction initChildren(\n node: TreemapLayoutNode,\n nodeModel: NodeModel,\n totalArea: number,\n options: {\n sort?: OrderBy\n leafDepth?: number\n },\n hideChildren: boolean,\n depth: number\n) {\n let viewChildren = node.children || [];\n let orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n const overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n // leafDepth has higher priority.\n if (hideChildren && !overLeafDepth) {\n return (node.viewChildren = []);\n }\n\n // Sort children, order by desc.\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n\n sort(viewChildren, orderBy);\n\n const info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n // Set area to each child.\n for (let i = 0, len = viewChildren.length; i < len; i++) {\n const area = viewChildren[i].getValue() as number / info.sum * totalArea;\n // Do not use setLayout({...}, true), because it is needed to clear last layout.\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n\n return viewChildren;\n}\n\n/**\n * Consider 'visibleMin'. Modify viewChildren and get new sum.\n */\nfunction filterByThreshold(\n nodeModel: NodeModel,\n totalArea: number,\n sum: number,\n orderBy: OrderBy,\n orderedChildren: TreemapLayoutNode[]\n) {\n\n // visibleMin is not supported yet when no option.sort.\n if (!orderBy) {\n return sum;\n }\n\n const visibleMin = nodeModel.get('visibleMin');\n const len = orderedChildren.length;\n let deletePoint = len;\n\n // Always travel from little value to big value.\n for (let i = len - 1; i >= 0; i--) {\n const value = orderedChildren[\n orderBy === 'asc' ? len - i - 1 : i\n ].getValue() as number;\n\n if (value / sum * totalArea < visibleMin) {\n deletePoint = i;\n sum -= value;\n }\n }\n\n orderBy === 'asc'\n ? orderedChildren.splice(0, len - deletePoint)\n : orderedChildren.splice(deletePoint, len - deletePoint);\n\n return sum;\n}\n\n/**\n * Sort\n */\nfunction sort(\n viewChildren: TreemapLayoutNode[],\n orderBy: OrderBy\n) {\n if (orderBy) {\n viewChildren.sort(function (a, b) {\n const diff = orderBy === 'asc'\n ? a.getValue() as number - (b.getValue() as number)\n : b.getValue() as number - (a.getValue() as number);\n return diff === 0\n ? (orderBy === 'asc'\n ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex\n )\n : diff;\n });\n }\n return viewChildren;\n}\n\n/**\n * Statistic\n */\nfunction statistic(\n nodeModel: NodeModel,\n children: TreemapLayoutNode[],\n orderBy: OrderBy\n) {\n // Calculate sum.\n let sum = 0;\n for (let i = 0, len = children.length; i < len; i++) {\n sum += children[i].getValue() as number;\n }\n\n // Statistic data extent for latter visual coding.\n // Notice: data extent should be calculate based on raw children\n // but not filtered view children, otherwise visual mapping will not\n // be stable when zoom (where children is filtered by visibleMin).\n\n const dimension = nodeModel.get('visualDimension');\n let dataExtent: number[];\n\n // The same as area dimension.\n if (!children || !children.length) {\n dataExtent = [NaN, NaN];\n }\n else if (dimension === 'value' && orderBy) {\n dataExtent = [\n children[children.length - 1].getValue() as number,\n children[0].getValue() as number\n ];\n orderBy === 'asc' && dataExtent.reverse();\n }\n // Other dimension.\n else {\n dataExtent = [Infinity, -Infinity];\n each(children, function (child) {\n const value = child.getValue(dimension) as number;\n value < dataExtent[0] && (dataExtent[0] = value);\n value > dataExtent[1] && (dataExtent[1] = value);\n });\n }\n\n return {sum: sum, dataExtent: dataExtent};\n}\n\n/**\n * Computes the score for the specified row,\n * as the worst aspect ratio.\n */\nfunction worst(row: LayoutRow, rowFixedLength: number, ratio: number) {\n let areaMax = 0;\n let areaMin = Infinity;\n\n for (let i = 0, area, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n const squareArea = row.area * row.area;\n const f = rowFixedLength * rowFixedLength * ratio;\n\n return squareArea\n ? mathMax(\n (f * areaMax) / squareArea,\n squareArea / (f * areaMin)\n )\n : Infinity;\n}\n\n/**\n * Positions the specified row of nodes. Modifies `rect`.\n */\nfunction position(\n row: LayoutRow,\n rowFixedLength: number,\n rect: RectLike,\n halfGapWidth: number,\n flush?: boolean\n) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n const idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n const idx1WhenH = 1 - idx0WhenH;\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n\n let last = rect[xy[idx0WhenH]];\n let rowOtherLength = rowFixedLength\n ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n for (let i = 0, rowLen = row.length; i < rowLen; i++) {\n const node = row[i];\n const nodeLayout = {} as TreemapItemLayout;\n const step = rowOtherLength\n ? node.getLayout().area / rowOtherLength : 0;\n\n const wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0);\n\n // We use Math.max/min to avoid negative width/height when considering gap width.\n const remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n const modWH = (i === rowLen - 1 || remain < step) ? remain : step;\n const wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n}\n\n// Return [containerWidth, containerHeight] as default.\nfunction estimateRootSize(\n seriesModel: TreemapSeriesModel,\n targetInfo: { node: TreemapLayoutNode },\n viewRoot: TreemapLayoutNode,\n containerWidth: number,\n containerHeight: number\n) {\n // If targetInfo.node exists, we zoom to the node,\n // so estimate whold width and heigth by target node.\n let currNode = (targetInfo || {}).node;\n const defaultSize = [containerWidth, containerHeight];\n\n if (!currNode || currNode === viewRoot) {\n return defaultSize;\n }\n\n let parent;\n const viewArea = containerWidth * containerHeight;\n let area = viewArea * seriesModel.option.zoomToNodeRatio;\n\n while (parent = currNode.parentNode) { // jshint ignore:line\n let sum = 0;\n const siblings = parent.children;\n\n for (let i = 0, len = siblings.length; i < len; i++) {\n sum += siblings[i].getValue() as number;\n }\n const currNodeValue = currNode.getValue() as number;\n if (currNodeValue === 0) {\n return defaultSize;\n }\n area *= sum / currNodeValue;\n\n // Considering border, suppose aspect ratio is 1.\n const parentModel = parent.getModel();\n const borderWidth = parentModel.get(PATH_BORDER_WIDTH);\n const upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel));\n area += 4 * borderWidth * borderWidth\n + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);\n\n area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);\n\n currNode = parent;\n }\n\n area < viewArea && (area = viewArea);\n const scale = Math.pow(area / viewArea, 0.5);\n\n return [containerWidth * scale, containerHeight * scale];\n}\n\n// Root postion base on coord of containerGroup\nfunction calculateRootPosition(\n layoutInfo: layout.LayoutRect,\n rootRect: RectLike,\n targetInfo: { node: TreemapLayoutNode }\n) {\n if (rootRect) {\n return {x: rootRect.x, y: rootRect.y};\n }\n\n const defaultPosition = {x: 0, y: 0};\n if (!targetInfo) {\n return defaultPosition;\n }\n\n // If targetInfo is fetched by 'retrieveTargetInfo',\n // old tree and new tree are the same tree,\n // so the node still exists and we can visit it.\n\n const targetNode = targetInfo.node;\n const layout = targetNode.getLayout();\n\n if (!layout) {\n return defaultPosition;\n }\n\n // Transform coord from local to container.\n const targetCenter = [layout.width / 2, layout.height / 2];\n let node = targetNode;\n while (node) {\n const nodeLayout = node.getLayout();\n targetCenter[0] += nodeLayout.x;\n targetCenter[1] += nodeLayout.y;\n node = node.parentNode;\n }\n\n return {\n x: layoutInfo.width / 2 - targetCenter[0],\n y: layoutInfo.height / 2 - targetCenter[1]\n };\n}\n\n// Mark nodes visible for prunning when visual coding and rendering.\n// Prunning depends on layout and root position, so we have to do it after layout.\nfunction prunning(\n node: TreemapLayoutNode,\n clipRect: BoundingRect,\n viewAbovePath: TreemapLayoutNode[],\n viewRoot: TreemapLayoutNode,\n depth: number\n) {\n const nodeLayout = node.getLayout();\n const nodeInViewAbovePath = viewAbovePath[depth];\n const isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;\n\n if (\n (nodeInViewAbovePath && !isAboveViewRoot)\n || (depth === viewAbovePath.length && node !== viewRoot)\n ) {\n return;\n }\n\n node.setLayout({\n // isInView means: viewRoot sub tree + viewAbovePath\n isInView: true,\n // invisible only means: outside view clip so that the node can not\n // see but still layout for animation preparation but not render.\n invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),\n isAboveViewRoot\n }, true);\n\n // Transform to child coordinate.\n const childClipRect = new BoundingRect(\n clipRect.x - nodeLayout.x,\n clipRect.y - nodeLayout.y,\n clipRect.width,\n clipRect.height\n );\n\n each(node.viewChildren || [], function (child) {\n prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);\n });\n}\n\nfunction getUpperLabelHeight(model: NodeModel): number {\n return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { installTreemapAction } from './treemapAction';\nimport TreemapSeriesModel from './TreemapSeries';\nimport TreemapView from './TreemapView';\nimport treemapVisual from './treemapVisual';\nimport treemapLayout from './treemapLayout';\n\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerSeriesModel(TreemapSeriesModel);\n registers.registerChartView(TreemapView);\n registers.registerVisual(treemapVisual);\n registers.registerLayout(treemapLayout);\n\n installTreemapAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport type LegendModel from '../../component/legend/LegendModel';\n\nexport default function categoryFilter(ecModel: GlobalModel) {\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n }) as LegendModel[];\n if (!legendModels || !legendModels.length) {\n return;\n }\n ecModel.eachSeriesByType('graph', function (graphSeries: GraphSeriesModel) {\n const categoriesData = graphSeries.getCategoriesData();\n const graph = graphSeries.getGraph();\n const data = graph.data;\n\n const categoryNames = categoriesData.mapArray(categoriesData.getName);\n\n data.filterSelf(function (idx) {\n const model = data.getItemModel(idx);\n let category = model.getShallow('category');\n if (category != null) {\n if (typeof category === 'number') {\n category = categoryNames[category];\n }\n // If in any legend component the status is not selected.\n for (let i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(category)) {\n return false;\n }\n }\n }\n return true;\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport { Dictionary, ColorString } from '../../util/types';\nimport { extend } from 'zrender/src/core/util';\n\nexport default function categoryVisual(ecModel: GlobalModel) {\n\n const paletteScope: Dictionary = {};\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const categoriesData = seriesModel.getCategoriesData();\n const data = seriesModel.getData();\n\n const categoryNameIdxMap: Dictionary = {};\n\n categoriesData.each(function (idx) {\n const name = categoriesData.getName(idx);\n // Add prefix to avoid conflict with Object.prototype.\n categoryNameIdxMap['ec-' + name] = idx;\n const itemModel = categoriesData.getItemModel(idx);\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n if (!style.fill) {\n // Get color from palette.\n style.fill = seriesModel.getColorFromPalette(name, paletteScope);\n }\n categoriesData.setItemVisual(idx, 'style', style);\n\n const symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect'] as const;\n\n for (let i = 0; i < symbolVisualList.length; i++) {\n const symbolVisual = itemModel.getShallow(symbolVisualList[i], true);\n if (symbolVisual != null) {\n categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual);\n }\n }\n });\n\n // Assign category color to visual\n if (categoriesData.count()) {\n data.each(function (idx) {\n const model = data.getItemModel(idx);\n let categoryIdx = model.getShallow('category');\n if (categoryIdx != null) {\n if (typeof categoryIdx === 'string') {\n categoryIdx = categoryNameIdxMap['ec-' + categoryIdx];\n }\n\n const categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style');\n const style = data.ensureUniqueItemVisual(idx, 'style');\n extend(style, categoryStyle);\n\n const visualList = ['symbol', 'symbolSize', 'symbolKeepAspect'] as const;\n\n for (let i = 0; i < visualList.length; i++) {\n data.setItemVisual(\n idx, visualList[i],\n categoriesData.getItemVisual(categoryIdx, visualList[i])\n );\n }\n }\n });\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphEdgeItemOption } from './GraphSeries';\nimport { extend } from 'zrender/src/core/util';\n\nfunction normalize(a: string | string[]): string[];\nfunction normalize(a: number | number[]): number[];\nfunction normalize(a: string | number | (string | number)[]): (string | number)[] {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n return a;\n}\n\nexport default function graphEdgeVisual(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const graph = seriesModel.getGraph();\n const edgeData = seriesModel.getEdgeData();\n const symbolType = normalize(seriesModel.get('edgeSymbol'));\n const symbolSize = normalize(seriesModel.get('edgeSymbolSize'));\n\n // const colorQuery = ['lineStyle', 'color'] as const;\n // const opacityQuery = ['lineStyle', 'opacity'] as const;\n\n edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);\n edgeData.setVisual('toSymbol', symbolType && symbolType[1]);\n edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());\n\n edgeData.each(function (idx) {\n const itemModel = edgeData.getItemModel(idx);\n const edge = graph.getEdgeByIndex(idx);\n const symbolType = normalize(itemModel.getShallow('symbol', true));\n const symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n // Edge visual must after node visual\n const style = itemModel.getModel('lineStyle').getLineStyle();\n\n const existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n switch (existsStyle.stroke) {\n case 'source': {\n const nodeStyle = edge.node1.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n case 'target': {\n const nodeStyle = edge.node2.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n }\n\n symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);\n symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);\n symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);\n symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);\n });\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst KEY_DELIMITER = '-->';\n/**\n * params handler\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {*}\n */\nconst getAutoCurvenessParams = function (seriesModel) {\n return seriesModel.get('autoCurveness') || null;\n};\n\n/**\n * Generate a list of edge curvatures, 20 is the default\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} appendLength\n * @return 20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2]\n */\nconst createCurveness = function (seriesModel, appendLength) {\n const autoCurvenessParmas = getAutoCurvenessParams(seriesModel);\n let length = 20;\n let curvenessList = [];\n\n // handler the function set\n if (typeof autoCurvenessParmas === 'number') {\n length = autoCurvenessParmas;\n }\n else if (zrUtil.isArray(autoCurvenessParmas)) {\n seriesModel.__curvenessList = autoCurvenessParmas;\n return;\n }\n\n // append length\n if (appendLength > length) {\n length = appendLength;\n }\n\n // make sure the length is even\n const len = length % 2 ? length + 2 : length + 3;\n curvenessList = [];\n\n for (let i = 0; i < len; i++) {\n curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1));\n }\n seriesModel.__curvenessList = curvenessList;\n};\n\n/**\n * Create different cache key data in the positive and negative directions, in order to set the curvature later\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {string} key\n */\nconst getKeyOfEdges = function (n1, n2, seriesModel) {\n const source = [n1.id, n1.dataIndex].join('.');\n const target = [n2.id, n2.dataIndex].join('.');\n return [seriesModel.uid, source, target].join(KEY_DELIMITER);\n};\n\n/**\n * get opposite key\n * @param {string} key\n * @returns {string}\n */\nconst getOppositeKey = function (key) {\n const keys = key.split(KEY_DELIMITER);\n return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER);\n};\n\n/**\n * get edgeMap with key\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\nconst getEdgeFromMap = function (edge, seriesModel) {\n const key = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n return seriesModel.__edgeMap[key];\n};\n\n/**\n * calculate all cases total length\n * @param edge\n * @param seriesModel\n * @returns {number}\n */\nconst getTotalLengthBetweenNodes = function (edge, seriesModel) {\n const len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel);\n const lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);\n\n return len + lenV;\n};\n\n/**\n *\n * @param key\n */\nconst getEdgeMapLengthWithKey = function (key, seriesModel) {\n const edgeMap = seriesModel.__edgeMap;\n return edgeMap[key] ? edgeMap[key].length : 0;\n};\n\n/**\n * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge\n * @see /graph/GraphSeries.js@getInitialData\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\nexport function initCurvenessList(seriesModel) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n seriesModel.__curvenessList = [];\n seriesModel.__edgeMap = {};\n // calc the array of curveness List\n createCurveness(seriesModel);\n}\n\n/**\n * set edgeMap with key\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} index\n */\nexport function createEdgeMapForCurveness(n1, n2, seriesModel, index) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n const key = getKeyOfEdges(n1, n2, seriesModel);\n const edgeMap = seriesModel.__edgeMap;\n const oppositeEdges = edgeMap[getOppositeKey(key)];\n // set direction\n if (edgeMap[key] && !oppositeEdges) {\n edgeMap[key].isForward = true;\n }\n else if (oppositeEdges && edgeMap[key]) {\n oppositeEdges.isForward = true;\n edgeMap[key].isForward = false;\n }\n\n edgeMap[key] = edgeMap[key] || [];\n edgeMap[key].push(index);\n}\n\n/**\n * get curvature for edge\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param index\n */\nexport function getCurvenessForEdge(edge, seriesModel, index, needReverse?: boolean) {\n const autoCurvenessParams = getAutoCurvenessParams(seriesModel);\n const isArrayParam = zrUtil.isArray(autoCurvenessParams);\n if (!autoCurvenessParams) {\n return null;\n }\n\n const edgeArray = getEdgeFromMap(edge, seriesModel);\n if (!edgeArray) {\n return null;\n }\n\n let edgeIndex = -1;\n for (let i = 0; i < edgeArray.length; i++) {\n if (edgeArray[i] === index) {\n edgeIndex = i;\n break;\n }\n }\n // if totalLen is Longer createCurveness\n const totalLen = getTotalLengthBetweenNodes(edge, seriesModel);\n createCurveness(seriesModel, totalLen);\n\n edge.lineStyle = edge.lineStyle || {};\n // if is opposite edge, must set curvenss to opposite number\n const curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n const curvenessList = seriesModel.__curvenessList;\n // if pass array no need parity\n const parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;\n\n if (!edgeArray.isForward) {\n // the opposite edge show outside\n const oppositeKey = getOppositeKey(curKey);\n const len = getEdgeMapLengthWithKey(oppositeKey, seriesModel);\n const resValue = curvenessList[edgeIndex + len + parityCorrection];\n // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite\n if (needReverse) {\n // set as array may make the parity handle with the len of opposite\n if (isArrayParam) {\n if (autoCurvenessParams && autoCurvenessParams[0] === 0) {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n else {\n return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue;\n }\n }\n else {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n }\n else {\n return curvenessList[edgeIndex + len + parityCorrection];\n }\n }\n else {\n return curvenessList[parityCorrection + edgeIndex];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport Graph from '../../data/Graph';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\n\nexport function simpleLayout(seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n const graph = seriesModel.getGraph();\n\n graph.eachNode(function (node) {\n const model = node.getModel();\n node.setLayout([+model.get('x'), +model.get('y')]);\n });\n\n simpleLayoutEdge(graph, seriesModel);\n}\n\nexport function simpleLayoutEdge(graph: Graph, seriesModel: GraphSeriesModel) {\n graph.eachEdge(function (edge, index) {\n const curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n -getCurvenessForEdge(edge, seriesModel, index, true),\n 0\n );\n const p1 = vec2.clone(edge.node1.getLayout());\n const p2 = vec2.clone(edge.node2.getLayout());\n const points = [p1, p2];\n if (+curveness) {\n points.push([\n (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness,\n (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness\n ]);\n }\n edge.setLayout(points);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each} from 'zrender/src/core/util';\nimport {simpleLayout, simpleLayoutEdge} from './simpleLayoutHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GraphSeriesModel from './GraphSeries';\n\nexport default function graphSimpleLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const layout = seriesModel.get('layout');\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n const data = seriesModel.getData();\n\n let dimensions: string[] = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimensionsAll(coordDim));\n });\n\n for (let dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n const value = [];\n let hasValue = false;\n for (let i = 0; i < dimensions.length; i++) {\n const val = data.get(dimensions[i], dataIndex) as number;\n if (!isNaN(val)) {\n hasValue = true;\n }\n value.push(val);\n }\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n }\n else {\n // Also {Array.}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph, seriesModel);\n }\n else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GraphSeriesModel from './GraphSeries';\nimport View from '../../coord/View';\nimport { GraphNode } from '../../data/Graph';\n\nexport function getNodeGlobalScale(seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem as View;\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n const nodeScaleRatio = seriesModel.option.nodeScaleRatio;\n\n const groupZoom = coordSys.scaleX;\n // Scale node when zoom changes\n const roamZoom = coordSys.getZoom();\n const nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n\n return nodeScale / groupZoom;\n}\n\nexport function getSymbolSize(node: GraphNode) {\n let symbolSize = node.getVisual('symbolSize');\n if (symbolSize instanceof Array) {\n symbolSize = (symbolSize[0] + symbolSize[1]) / 2;\n }\n return +symbolSize;\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport {getSymbolSize, getNodeGlobalScale} from './graphHelper';\nimport GraphSeriesModel, { GraphEdgeItemOption } from './GraphSeries';\nimport Graph from '../../data/Graph';\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\nconst PI = Math.PI;\n\nconst _symbolRadiansHalf: number[] = [];\n\n/**\n * `basedOn` can be:\n * 'value':\n * This layout is not accurate and have same bad case. For example,\n * if the min value is very smaller than the max value, the nodes\n * with the min value probably overlap even though there is enough\n * space to layout them. So we only use this approach in the as the\n * init layout of the force layout.\n * FIXME\n * Probably we do not need this method any more but use\n * `basedOn: 'symbolSize'` in force layout if\n * delay its init operations to GraphView.\n * 'symbolSize':\n * This approach work only if all of the symbol size calculated.\n * That is, the progressive rendering is not applied to graph.\n * FIXME\n * If progressive rendering is applied to graph some day,\n * probably we have to use `basedOn: 'value'`.\n */\nexport function circularLayout(\n seriesModel: GraphSeriesModel,\n basedOn: 'value' | 'symbolSize'\n) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n const rect = coordSys.getBoundingRect();\n\n const nodeData = seriesModel.getData();\n const graph = nodeData.graph;\n\n const cx = rect.width / 2 + rect.x;\n const cy = rect.height / 2 + rect.y;\n const r = Math.min(rect.width, rect.height) / 2;\n const count = nodeData.count();\n\n nodeData.setLayout({\n cx: cx,\n cy: cy\n });\n\n if (!count) {\n return;\n }\n\n _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);\n\n graph.eachEdge(function (edge, index) {\n let curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n getCurvenessForEdge(edge, seriesModel, index),\n 0\n );\n const p1 = vec2.clone(edge.node1.getLayout());\n const p2 = vec2.clone(edge.node2.getLayout());\n let cp1;\n const x12 = (p1[0] + p2[0]) / 2;\n const y12 = (p1[1] + p2[1]) / 2;\n if (+curveness) {\n curveness *= 3;\n cp1 = [\n cx * curveness + x12 * (1 - curveness),\n cy * curveness + y12 * (1 - curveness)\n ];\n }\n edge.setLayout([p1, p2, cp1]);\n });\n}\n\ninterface LayoutNode {\n (\n seriesModel: GraphSeriesModel,\n graph: Graph,\n nodeData: SeriesData,\n r: number,\n cx: number,\n cy: number,\n count: number\n ): void\n}\n\nconst _layoutNodesBasedOn: Record<'value' | 'symbolSize', LayoutNode> = {\n\n value(seriesModel, graph, nodeData, r, cx, cy, count) {\n let angle = 0;\n const sum = nodeData.getSum('value');\n const unitAngle = Math.PI * 2 / (sum || count);\n\n graph.eachNode(function (node) {\n const value = node.getValue('value') as number;\n const radianHalf = unitAngle * (sum ? value : 1) / 2;\n\n angle += radianHalf;\n node.setLayout([\n r * Math.cos(angle) + cx,\n r * Math.sin(angle) + cy\n ]);\n angle += radianHalf;\n });\n },\n\n symbolSize(seriesModel, graph, nodeData, r, cx, cy, count) {\n let sumRadian = 0;\n _symbolRadiansHalf.length = count;\n\n const nodeScale = getNodeGlobalScale(seriesModel);\n\n graph.eachNode(function (node) {\n let symbolSize = getSymbolSize(node);\n\n // Normally this case will not happen, but we still add\n // some the defensive code (2px is an arbitrary value).\n isNaN(symbolSize) && (symbolSize = 2);\n symbolSize < 0 && (symbolSize = 0);\n\n symbolSize *= nodeScale;\n\n let symbolRadianHalf = Math.asin(symbolSize / 2 / r);\n // when `symbolSize / 2` is bigger than `r`.\n isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2);\n _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;\n sumRadian += symbolRadianHalf * 2;\n });\n\n const halfRemainRadian = (2 * PI - sumRadian) / count / 2;\n\n let angle = 0;\n graph.eachNode(function (node) {\n const radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];\n\n angle += radianHalf;\n node.setLayout([\n r * Math.cos(angle) + cx,\n r * Math.sin(angle) + cy\n ]);\n angle += radianHalf;\n });\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {circularLayout} from './circularLayoutHelper';\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel from './GraphSeries';\n\nexport default function graphCircularLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* Some formulas were originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment of the method \"step\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\n\nconst scaleAndAdd = vec2.scaleAndAdd;\n\ninterface InputNode {\n p?: vec2.VectorArray\n fixed?: boolean\n /**\n * Weight\n */\n w: number\n /**\n * Repulsion\n */\n rep: number\n}\ninterface LayoutNode extends InputNode {\n pp?: vec2.VectorArray\n edges?: LayoutEdge[]\n}\ninterface InputEdge {\n ignoreForceLayout?: boolean\n n1: InputNode\n n2: InputNode\n\n /**\n * Distance\n */\n d: number\n}\ninterface LayoutEdge extends InputEdge {\n n1: LayoutNode\n n2: LayoutNode\n}\ninterface LayoutCfg {\n gravity?: number\n friction?: number\n rect?: RectLike\n}\n// function adjacentNode(n, e) {\n// return e.n1 === n ? e.n2 : e.n1;\n// }\n\nexport function forceLayout(\n inNodes: N[],\n inEdges: E[],\n opts: LayoutCfg\n) {\n const nodes = inNodes as LayoutNode[];\n const edges = inEdges as LayoutEdge[];\n const rect = opts.rect;\n const width = rect.width;\n const height = rect.height;\n const center = [rect.x + width / 2, rect.y + height / 2];\n // let scale = opts.scale || 1;\n const gravity = opts.gravity == null ? 0.1 : opts.gravity;\n\n // for (let i = 0; i < edges.length; i++) {\n // let e = edges[i];\n // let n1 = e.n1;\n // let n2 = e.n2;\n // n1.edges = n1.edges || [];\n // n2.edges = n2.edges || [];\n // n1.edges.push(e);\n // n2.edges.push(e);\n // }\n // Init position\n for (let i = 0; i < nodes.length; i++) {\n const n = nodes[i] as LayoutNode;\n if (!n.p) {\n n.p = vec2.create(\n width * (Math.random() - 0.5) + center[0],\n height * (Math.random() - 0.5) + center[1]\n );\n }\n n.pp = vec2.clone(n.p);\n n.edges = null;\n }\n\n // Formula in 'Graph Drawing by Force-directed Placement'\n // let k = scale * Math.sqrt(width * height / nodes.length);\n // let k2 = k * k;\n\n const initialFriction = opts.friction == null ? 0.6 : opts.friction;\n let friction = initialFriction;\n\n let beforeStepCallback: (nodes: N[], edges: E[]) => void;\n let afterStepCallback: (nodes: N[], edges: E[], finished: boolean) => void;\n\n return {\n warmUp: function () {\n friction = initialFriction * 0.8;\n },\n\n setFixed: function (idx: number) {\n nodes[idx].fixed = true;\n },\n\n setUnfixed: function (idx: number) {\n nodes[idx].fixed = false;\n },\n\n /**\n * Before step hook\n */\n beforeStep: function (cb: typeof beforeStepCallback) {\n beforeStepCallback = cb;\n },\n /**\n * After step hook\n */\n afterStep: function (cb: typeof afterStepCallback) {\n afterStepCallback = cb;\n },\n\n /**\n * Some formulas were originally copied from \"d3.js\"\n * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js\n * with some modifications made for this project.\n * See the license statement at the head of this file.\n */\n step: function (cb?: (finished: boolean) => void) {\n beforeStepCallback && beforeStepCallback(nodes as N[], edges as E[]);\n\n const v12: number[] = [];\n const nLen = nodes.length;\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n if (e.ignoreForceLayout) {\n continue;\n }\n const n1 = e.n1;\n const n2 = e.n2;\n\n vec2.sub(v12, n2.p, n1.p);\n const d = vec2.len(v12) - e.d;\n let w = n2.w / (n1.w + n2.w);\n\n if (isNaN(w)) {\n w = 0;\n }\n\n vec2.normalize(v12, v12);\n\n !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);\n !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);\n }\n // Gravity\n for (let i = 0; i < nLen; i++) {\n const n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v12, center, n.p);\n // let d = vec2.len(v12);\n // vec2.scale(v12, v12, 1 / d);\n // let gravityFactor = gravity;\n scaleAndAdd(n.p, n.p, v12, gravity * friction);\n }\n }\n\n // Repulsive\n // PENDING\n for (let i = 0; i < nLen; i++) {\n const n1 = nodes[i];\n for (let j = i + 1; j < nLen; j++) {\n const n2 = nodes[j];\n vec2.sub(v12, n2.p, n1.p);\n let d = vec2.len(v12);\n if (d === 0) {\n // Random repulse\n vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);\n d = 1;\n }\n const repFact = (n1.rep + n2.rep) / d / d;\n !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);\n !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);\n }\n }\n const v: number[] = [];\n for (let i = 0; i < nLen; i++) {\n const n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v, n.p, n.pp);\n scaleAndAdd(n.p, n.p, v, friction);\n vec2.copy(n.pp, n.p);\n }\n }\n\n friction = friction * 0.992;\n\n const finished = friction < 0.01;\n\n afterStepCallback && afterStepCallback(nodes as N[], edges as E[], finished);\n\n cb && cb(finished);\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {forceLayout} from './forceHelper';\nimport {simpleLayout} from './simpleLayoutHelper';\nimport {circularLayout} from './circularLayoutHelper';\nimport {linearMap} from '../../util/number';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\nexport interface ForceLayoutInstance {\n step(cb: (stopped: boolean) => void): void\n warmUp(): void\n setFixed(idx: number): void\n setUnfixed(idx: number): void\n}\n\n\nexport default function graphForceLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries: GraphSeriesModel) {\n const coordSys = graphSeries.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n if (graphSeries.get('layout') === 'force') {\n const preservedPoints = graphSeries.preservedPoints || {};\n const graph = graphSeries.getGraph();\n const nodeData = graph.data;\n const edgeData = graph.edgeData;\n const forceModel = graphSeries.getModel('force');\n const initLayout = forceModel.get('initLayout');\n if (graphSeries.preservedPoints) {\n nodeData.each(function (idx) {\n const id = nodeData.getId(idx);\n nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);\n });\n }\n else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n }\n else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n const nodeDataExtent = nodeData.getDataExtent('value');\n const edgeDataExtent = edgeData.getDataExtent('value');\n // let edgeDataExtent = edgeData.getDataExtent('value');\n const repulsion = forceModel.get('repulsion');\n const edgeLength = forceModel.get('edgeLength');\n const repulsionArr = zrUtil.isArray(repulsion)\n ? repulsion : [repulsion, repulsion];\n let edgeLengthArr = zrUtil.isArray(edgeLength)\n ? edgeLength : [edgeLength, edgeLength];\n\n // Larger value has smaller length\n edgeLengthArr = [edgeLengthArr[1], edgeLengthArr[0]];\n\n const nodes = nodeData.mapArray('value', function (value: number, idx) {\n const point = nodeData.getItemLayout(idx) as number[];\n let rep = linearMap(value, nodeDataExtent, repulsionArr);\n if (isNaN(rep)) {\n rep = (repulsionArr[0] + repulsionArr[1]) / 2;\n }\n return {\n w: rep,\n rep: rep,\n fixed: nodeData.getItemModel(idx).get('fixed'),\n p: (!point || isNaN(point[0]) || isNaN(point[1])) ? null : point\n };\n });\n const edges = edgeData.mapArray('value', function (value: number, idx) {\n const edge = graph.getEdgeByIndex(idx);\n let d = linearMap(value, edgeDataExtent, edgeLengthArr);\n if (isNaN(d)) {\n d = (edgeLengthArr[0] + edgeLengthArr[1]) / 2;\n }\n const edgeModel = edge.getModel();\n const curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n -getCurvenessForEdge(edge, graphSeries, idx, true),\n 0\n );\n return {\n n1: nodes[edge.node1.dataIndex],\n n2: nodes[edge.node2.dataIndex],\n d: d,\n curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n });\n\n // let coordSys = graphSeries.coordinateSystem;\n const rect = coordSys.getBoundingRect();\n const forceInstance = forceLayout(nodes, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n forceInstance.beforeStep(function (nodes, edges) {\n for (let i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(\n nodes[i].p,\n graph.getNodeByIndex(i).getLayout() as number[]\n );\n }\n }\n });\n forceInstance.afterStep(function (nodes, edges, stopped) {\n for (let i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n preservedPoints[nodeData.getId(i)] = nodes[i].p;\n }\n for (let i = 0, l = edges.length; i < l; i++) {\n const e = edges[i];\n const edge = graph.getEdgeByIndex(i);\n const p1 = e.n1.p;\n const p2 = e.n2.p;\n let points = edge.getLayout() as number[][];\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n if (+e.curveness) {\n points[2] = [\n (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness,\n (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness\n ];\n }\n edge.setLayout(points);\n }\n });\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints;\n\n // Step to get the layout\n forceInstance.step();\n }\n else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME Where to create the simple view coordinate system\nimport View from '../../coord/View';\nimport {getLayoutRect} from '../../util/layout';\nimport * as bbox from 'zrender/src/core/bbox';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport { extend } from 'zrender/src/core/util';\n\nfunction getViewRect(seriesModel: GraphSeriesModel, api: ExtensionAPI, aspect: number) {\n const option = extend(seriesModel.getBoxLayoutParams(), {\n aspect: aspect\n });\n return getLayoutRect(option, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function createViewCoordSys(ecModel: GlobalModel, api: ExtensionAPI) {\n const viewList: View[] = [];\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const coordSysType = seriesModel.get('coordinateSystem');\n if (!coordSysType || coordSysType === 'view') {\n\n const data = seriesModel.getData();\n const positions = data.mapArray(function (idx) {\n const itemModel = data.getItemModel(idx);\n return [+itemModel.get('x'), +itemModel.get('y')];\n });\n\n let min: number[] = [];\n let max: number[] = [];\n\n bbox.fromPoints(positions, min, max);\n\n // If width or height is 0\n if (max[0] - min[0] === 0) {\n max[0] += 1;\n min[0] -= 1;\n }\n if (max[1] - min[1] === 0) {\n max[1] += 1;\n min[1] -= 1;\n }\n const aspect = (max[0] - min[0]) / (max[1] - min[1]);\n // FIXME If get view rect after data processed?\n const viewRect = getViewRect(seriesModel, api, aspect);\n // Position may be NaN, use view rect instead\n if (isNaN(aspect)) {\n min = [viewRect.x, viewRect.y];\n max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];\n }\n\n const bbWidth = max[0] - min[0];\n const bbHeight = max[1] - min[1];\n\n const viewWidth = viewRect.width;\n const viewHeight = viewRect.height;\n\n const viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n\n viewCoordSys.setBoundingRect(\n min[0], min[1], bbWidth, bbHeight\n );\n viewCoordSys.setViewRect(\n viewRect.x, viewRect.y, viewWidth, viewHeight\n );\n\n // Update roam info\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n\n viewList.push(viewCoordSys);\n }\n });\n\n return viewList;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Line path for bezier and straight line draw\n */\n\nimport * as graphic from '../../util/graphic';\nimport * as vec2 from 'zrender/src/core/vector';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ColorString } from '../../util/types';\n\nconst straightLineProto = graphic.Line.prototype;\nconst bezierCurveProto = graphic.BezierCurve.prototype;\n\nclass StraightLineShape {\n // Start point\n x1 = 0;\n y1 = 0;\n // End point\n x2 = 0;\n y2 = 0;\n\n percent = 1;\n}\n\nclass CurveShape extends StraightLineShape {\n cpx1: number;\n cpy1: number;\n}\n\ninterface ECLineProps extends PathProps {\n shape?: Partial\n}\nfunction isStraightLine(shape: StraightLineShape | CurveShape): shape is StraightLineShape {\n return isNaN(+(shape as CurveShape).cpx1) || isNaN(+(shape as CurveShape).cpy1);\n}\n\nclass ECLinePath extends graphic.Path {\n\n type = 'ec-line';\n\n shape: StraightLineShape | CurveShape;\n\n constructor(opts?: ECLineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as ColorString\n };\n }\n\n getDefaultShape() {\n return new StraightLineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: StraightLineShape | CurveShape) {\n if (isStraightLine(shape)) {\n straightLineProto.buildPath.call(this, ctx, shape);\n }\n else {\n bezierCurveProto.buildPath.call(this, ctx, shape);\n }\n }\n\n pointAt(t: number) {\n if (isStraightLine(this.shape)) {\n return straightLineProto.pointAt.call(this, t);\n }\n else {\n return bezierCurveProto.pointAt.call(this, t);\n }\n }\n\n tangentAt(t: number) {\n const shape = this.shape;\n const p = isStraightLine(shape)\n ? [shape.x2 - shape.x1, shape.y2 - shape.y1]\n : bezierCurveProto.tangentAt.call(this, t);\n return vec2.normalize(p, p);\n }\n\n}\n\nexport default ECLinePath;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray, each } from 'zrender/src/core/util';\nimport * as vector from 'zrender/src/core/vector';\nimport * as symbolUtil from '../../util/symbol';\nimport ECLinePath from './LinePath';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enterEmphasis, leaveEmphasis, SPECIAL_STATES } from '../../util/states';\nimport {getLabelStatesModels, setLabelStyle} from '../../label/labelStyle';\nimport {round} from '../../util/number';\nimport SeriesData from '../../data/SeriesData';\nimport { ZRTextAlign, ZRTextVerticalAlign, LineLabelOption, ColorString } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport Model from '../../model/Model';\n\nconst SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'] as const;\n\ntype ECSymbol = ReturnType;\n\ntype LineECSymbol = ECSymbol & {\n __specifiedRotation: number\n};\n\ntype LineList = SeriesData;\n\nexport interface LineLabel extends graphic.Text {\n lineLabelOriginalOpacity: number\n}\n\ninterface InnerLineLabel extends LineLabel {\n __align: TextStyleProps['align']\n __verticalAlign: TextStyleProps['verticalAlign']\n __position: LineLabelOption['position']\n __labelDistance: number[]\n}\n\nfunction makeSymbolTypeKey(symbolCategory: 'fromSymbol' | 'toSymbol') {\n return '_' + symbolCategory + 'Type' as '_fromSymbolType' | '_toSymbolType';\n}\n\n/**\n * @inner\n */\nfunction createSymbol(name: 'fromSymbol' | 'toSymbol', lineData: LineList, idx: number) {\n const symbolType = lineData.getItemVisual(idx, name);\n if (!symbolType || symbolType === 'none') {\n return;\n }\n\n const symbolSize = lineData.getItemVisual(idx, name + 'Size' as 'fromSymbolSize' | 'toSymbolSize');\n const symbolRotate = lineData.getItemVisual(idx, name + 'Rotate' as 'fromSymbolRotate' | 'toSymbolRotate');\n const symbolOffset = lineData.getItemVisual(idx, name + 'Offset' as 'fromSymbolOffset' | 'toSymbolOffset');\n const symbolKeepAspect = lineData.getItemVisual(idx,\n name + 'KeepAspect' as 'fromSymbolKeepAspect' | 'toSymbolKeepAspect');\n\n const symbolSizeArr = symbolUtil.normalizeSymbolSize(symbolSize);\n\n const symbolOffsetArr = symbolUtil.normalizeSymbolOffset(symbolOffset || 0, symbolSizeArr);\n\n const symbolPath = symbolUtil.createSymbol(\n symbolType,\n -symbolSizeArr[0] / 2 + (symbolOffsetArr as number[])[0],\n -symbolSizeArr[1] / 2 + (symbolOffsetArr as number[])[1],\n symbolSizeArr[0],\n symbolSizeArr[1],\n null,\n symbolKeepAspect\n );\n\n (symbolPath as LineECSymbol).__specifiedRotation = symbolRotate == null || isNaN(symbolRotate)\n ? void 0\n : +symbolRotate * Math.PI / 180 || 0;\n\n symbolPath.name = name;\n\n return symbolPath;\n}\n\nfunction createLine(points: number[][]) {\n const line = new ECLinePath({\n name: 'line',\n subPixelOptimize: true\n });\n setLinePoints(line.shape, points);\n return line;\n}\n\nfunction setLinePoints(targetShape: ECLinePath['shape'], points: number[][]) {\n type CurveShape = ECLinePath['shape'] & {\n cpx1: number\n cpy1: number\n };\n\n targetShape.x1 = points[0][0];\n targetShape.y1 = points[0][1];\n targetShape.x2 = points[1][0];\n targetShape.y2 = points[1][1];\n targetShape.percent = 1;\n\n const cp1 = points[2];\n if (cp1) {\n (targetShape as CurveShape).cpx1 = cp1[0];\n (targetShape as CurveShape).cpy1 = cp1[1];\n }\n else {\n (targetShape as CurveShape).cpx1 = NaN;\n (targetShape as CurveShape).cpy1 = NaN;\n }\n}\n\nclass Line extends graphic.Group {\n\n private _fromSymbolType: string;\n private _toSymbolType: string;\n\n constructor(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) {\n super();\n this._createLine(lineData as LineList, idx, seriesScope);\n }\n\n _createLine(lineData: LineList, idx: number, seriesScope?: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n const linePoints = lineData.getItemLayout(idx);\n const line = createLine(linePoints);\n line.shape.percent = 0;\n graphic.initProps(line, {\n shape: {\n percent: 1\n }\n }, seriesModel, idx);\n\n this.add(line);\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbol = createSymbol(symbolCategory, lineData, idx);\n // symbols must added after line to make sure\n // it will be updated after line#update.\n // Or symbol position and rotation update in line#beforeUpdate will be one frame slow\n this.add(symbol);\n this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory);\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n }\n\n // TODO More strict on the List type in parameters?\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n\n const line = this.childOfName('line') as ECLinePath;\n const linePoints = lineData.getItemLayout(idx);\n const target = {\n shape: {} as ECLinePath['shape']\n };\n\n setLinePoints(target.shape, linePoints);\n graphic.updateProps(line, target, seriesModel, idx);\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbolType = (lineData as LineList).getItemVisual(idx, symbolCategory);\n const key = makeSymbolTypeKey(symbolCategory);\n // Symbol changed\n if (this[key] !== symbolType) {\n this.remove(this.childOfName(symbolCategory));\n const symbol = createSymbol(symbolCategory, lineData as LineList, idx);\n this.add(symbol);\n }\n this[key] = symbolType;\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n getLinePath() {\n return this.childAt(0) as graphic.Line;\n }\n\n _updateCommonStl(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel as SeriesModel;\n\n const line = this.childOfName('line') as ECLinePath;\n\n let emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n let blurLineStyle = seriesScope && seriesScope.blurLineStyle;\n let selectLineStyle = seriesScope && seriesScope.selectLineStyle;\n\n let labelStatesModels = seriesScope && seriesScope.labelStatesModels;\n\n // Optimization for large dataset\n if (!seriesScope || lineData.hasItemOption) {\n const itemModel = lineData.getItemModel(idx);\n\n emphasisLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle();\n selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle();\n\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n const lineStyle = lineData.getItemVisual(idx, 'style');\n const visualColor = lineStyle.stroke;\n\n line.useStyle(lineStyle);\n line.style.fill = null;\n line.style.strokeNoScale = true;\n\n line.ensureState('emphasis').style = emphasisLineStyle;\n line.ensureState('blur').style = blurLineStyle;\n line.ensureState('select').style = selectLineStyle;\n\n // Update symbol\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbol = this.childOfName(symbolCategory) as ECSymbol;\n if (symbol) {\n // Share opacity and color with line.\n symbol.setColor(visualColor);\n symbol.style.opacity = lineStyle.opacity;\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const lineState = line.getState(stateName);\n if (lineState) {\n const lineStateStyle = lineState.style || {};\n const state = symbol.ensureState(stateName);\n const stateStyle = state.style || (state.style = {});\n if (lineStateStyle.stroke != null) {\n stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke;\n }\n if (lineStateStyle.opacity != null) {\n stateStyle.opacity = lineStateStyle.opacity;\n }\n }\n }\n\n symbol.markRedraw();\n }\n }, this);\n\n const rawVal = seriesModel.getRawValue(idx) as number;\n setLabelStyle(this, labelStatesModels, {\n labelDataIndex: idx,\n labelFetcher: {\n getFormattedLabel(dataIndex, stateName) {\n return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType);\n }\n },\n inheritColor: visualColor as ColorString || '#000',\n defaultOpacity: lineStyle.opacity,\n defaultText: (rawVal == null\n ? lineData.getName(idx)\n : isFinite(rawVal)\n ? round(rawVal)\n : rawVal) + ''\n });\n const label = this.getTextContent() as InnerLineLabel;\n\n // Always set `textStyle` even if `normalStyle.text` is null, because default\n // values have to be set on `normalStyle`.\n if (label) {\n const labelNormalModel = labelStatesModels.normal as unknown as Model;\n label.__align = label.style.align;\n label.__verticalAlign = label.style.verticalAlign;\n // 'start', 'middle', 'end'\n label.__position = labelNormalModel.get('position') || 'middle';\n\n let distance = labelNormalModel.get('distance');\n if (!isArray(distance)) {\n distance = [distance, distance];\n }\n label.__labelDistance = distance;\n }\n\n this.setTextConfig({\n position: null,\n local: true,\n inside: false // Can't be inside for stroke element.\n });\n\n enableHoverEmphasis(this);\n }\n\n highlight() {\n enterEmphasis(this);\n }\n\n downplay() {\n leaveEmphasis(this);\n }\n\n updateLayout(lineData: SeriesData, idx: number) {\n this.setLinePoints(lineData.getItemLayout(idx));\n }\n\n setLinePoints(points: number[][]) {\n const linePath = this.childOfName('line') as ECLinePath;\n setLinePoints(linePath.shape, points);\n linePath.dirty();\n }\n\n beforeUpdate() {\n const lineGroup = this;\n const symbolFrom = lineGroup.childOfName('fromSymbol') as ECSymbol;\n const symbolTo = lineGroup.childOfName('toSymbol') as ECSymbol;\n const label = lineGroup.getTextContent() as InnerLineLabel;\n // Quick reject\n if (!symbolFrom && !symbolTo && (!label || label.ignore)) {\n return;\n }\n\n let invScale = 1;\n let parentNode = this.parent;\n while (parentNode) {\n if (parentNode.scaleX) {\n invScale /= parentNode.scaleX;\n }\n parentNode = parentNode.parent;\n }\n\n const line = lineGroup.childOfName('line') as ECLinePath;\n // If line not changed\n // FIXME Parent scale changed\n if (!this.__dirty && !line.__dirty) {\n return;\n }\n\n const percent = line.shape.percent;\n const fromPos = line.pointAt(0);\n const toPos = line.pointAt(percent);\n\n const d = vector.sub([], toPos, fromPos);\n vector.normalize(d, d);\n\n function setSymbolRotation(symbol: ECSymbol, percent: 0 | 1) {\n // Fix #12388\n // when symbol is set to be 'arrow' in markLine,\n // symbolRotate value will be ignored, and compulsively use tangent angle.\n // rotate by default if symbol rotation is not specified\n const specifiedRotation = (symbol as LineECSymbol).__specifiedRotation;\n if (specifiedRotation == null) {\n const tangent = line.tangentAt(percent);\n symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(\n tangent[1], tangent[0]\n ));\n }\n else {\n symbol.attr('rotation', specifiedRotation);\n }\n }\n\n if (symbolFrom) {\n symbolFrom.setPosition(fromPos);\n setSymbolRotation(symbolFrom, 0);\n symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent;\n symbolFrom.markRedraw();\n }\n if (symbolTo) {\n symbolTo.setPosition(toPos);\n setSymbolRotation(symbolTo, 1);\n symbolTo.scaleX = symbolTo.scaleY = invScale * percent;\n symbolTo.markRedraw();\n }\n\n if (label && !label.ignore) {\n label.x = label.y = 0;\n label.originX = label.originY = 0;\n\n let textAlign: ZRTextAlign;\n let textVerticalAlign: ZRTextVerticalAlign;\n\n const distance = label.__labelDistance;\n const distanceX = distance[0] * invScale;\n const distanceY = distance[1] * invScale;\n const halfPercent = percent / 2;\n const tangent = line.tangentAt(halfPercent);\n const n = [tangent[1], -tangent[0]];\n const cp = line.pointAt(halfPercent);\n if (n[1] > 0) {\n n[0] = -n[0];\n n[1] = -n[1];\n }\n const dir = tangent[0] < 0 ? -1 : 1;\n\n if (label.__position !== 'start' && label.__position !== 'end') {\n let rotation = -Math.atan2(tangent[1], tangent[0]);\n if (toPos[0] < fromPos[0]) {\n rotation = Math.PI + rotation;\n }\n label.rotation = rotation;\n }\n\n let dy;\n switch (label.__position) {\n case 'insideStartTop':\n case 'insideMiddleTop':\n case 'insideEndTop':\n case 'middle':\n dy = -distanceY;\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideStartBottom':\n case 'insideMiddleBottom':\n case 'insideEndBottom':\n dy = distanceY;\n textVerticalAlign = 'top';\n break;\n\n default:\n dy = 0;\n textVerticalAlign = 'middle';\n }\n\n switch (label.__position) {\n case 'end':\n label.x = d[0] * distanceX + toPos[0];\n label.y = d[1] * distanceY + toPos[1];\n textAlign = d[0] > 0.8 ? 'left' : (d[0] < -0.8 ? 'right' : 'center');\n textVerticalAlign = d[1] > 0.8 ? 'top' : (d[1] < -0.8 ? 'bottom' : 'middle');\n break;\n\n case 'start':\n label.x = -d[0] * distanceX + fromPos[0];\n label.y = -d[1] * distanceY + fromPos[1];\n textAlign = d[0] > 0.8 ? 'right' : (d[0] < -0.8 ? 'left' : 'center');\n textVerticalAlign = d[1] > 0.8 ? 'bottom' : (d[1] < -0.8 ? 'top' : 'middle');\n break;\n\n case 'insideStartTop':\n case 'insideStart':\n case 'insideStartBottom':\n label.x = distanceX * dir + fromPos[0];\n label.y = fromPos[1] + dy;\n textAlign = tangent[0] < 0 ? 'right' : 'left';\n label.originX = -distanceX * dir;\n label.originY = -dy;\n break;\n\n case 'insideMiddleTop':\n case 'insideMiddle':\n case 'insideMiddleBottom':\n case 'middle':\n label.x = cp[0];\n label.y = cp[1] + dy;\n textAlign = 'center';\n label.originY = -dy;\n break;\n\n case 'insideEndTop':\n case 'insideEnd':\n case 'insideEndBottom':\n label.x = -distanceX * dir + toPos[0];\n label.y = toPos[1] + dy;\n textAlign = tangent[0] >= 0 ? 'right' : 'left';\n label.originX = distanceX * dir;\n label.originY = -dy;\n break;\n }\n\n label.scaleX = label.scaleY = invScale;\n label.setStyle({\n // Use the user specified text align and baseline first\n verticalAlign: label.__verticalAlign || textVerticalAlign,\n align: label.__align || textAlign\n });\n }\n }\n}\n\nexport default Line;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport LineGroup from './Line';\nimport SeriesData from '../../data/SeriesData';\nimport {\n StageHandlerProgressParams,\n LineStyleOption,\n LineLabelOption,\n ColorString,\n AnimationOptionMixin,\n ZRStyleProps,\n StatesOptionMixin,\n DisplayState,\n LabelOption\n} from '../../util/types';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Model from '../../model/Model';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\ninterface LineLike extends graphic.Group {\n updateData(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): void\n updateLayout(data: SeriesData, idx: number): void\n fadeOut?(cb: () => void): void\n}\n\ninterface LineLikeCtor {\n new(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): LineLike\n}\n\ninterface LineDrawStateOption {\n lineStyle?: LineStyleOption\n label?: LineLabelOption\n}\n\nexport interface LineDrawModelOption extends LineDrawStateOption, StatesOptionMixin {\n // If has effect\n effect?: {\n show?: boolean\n period?: number\n delay?: number | ((idx: number) => number)\n /**\n * If move with constant speed px/sec\n * period will be ignored if this property is > 0,\n */\n constantSpeed?: number\n\n symbol?: string\n symbolSize?: number | number[]\n loop?: boolean\n /**\n * Length of trail, 0 - 1\n */\n trailLength?: number\n /**\n * Default to be same with lineStyle.color\n */\n color?: ColorString\n }\n}\n\ntype ListForLineDraw = SeriesData>;\n\nexport interface LineDrawSeriesScope {\n lineStyle?: ZRStyleProps\n emphasisLineStyle?: ZRStyleProps\n blurLineStyle?: ZRStyleProps\n selectLineStyle?: ZRStyleProps\n\n labelStatesModels: Record>\n}\n\nclass LineDraw {\n group = new graphic.Group();\n\n private _LineCtor: LineLikeCtor;\n\n private _lineData: ListForLineDraw;\n\n private _seriesScope: LineDrawSeriesScope;\n\n constructor(LineCtor?: LineLikeCtor) {\n this._LineCtor = LineCtor || LineGroup;\n }\n\n isPersistent() {\n return true;\n };\n\n updateData(lineData: ListForLineDraw) {\n const lineDraw = this;\n const group = lineDraw.group;\n\n const oldLineData = lineDraw._lineData;\n lineDraw._lineData = lineData;\n\n // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!oldLineData) {\n group.removeAll();\n }\n\n const seriesScope = makeSeriesScope(lineData);\n\n lineData.diff(oldLineData)\n .add((idx) => {\n this._doAdd(lineData, idx, seriesScope);\n })\n .update((newIdx, oldIdx) => {\n this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope);\n })\n .remove((idx) => {\n group.remove(oldLineData.getItemGraphicEl(idx));\n })\n .execute();\n };\n\n updateLayout() {\n const lineData = this._lineData;\n\n // Do not support update layout in incremental mode.\n if (!lineData) {\n return;\n }\n\n lineData.eachItemGraphicEl(function (el: LineLike, idx) {\n el.updateLayout(lineData, idx);\n }, this);\n };\n\n incrementalPrepareUpdate(lineData: ListForLineDraw) {\n this._seriesScope = makeSeriesScope(lineData);\n this._lineData = null;\n this.group.removeAll();\n };\n\n incrementalUpdate(taskParams: StageHandlerProgressParams, lineData: ListForLineDraw) {\n function updateIncrementalAndHover(el: Displayable) {\n if (!el.isGroup && !isEffectObject(el)) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (let idx = taskParams.start; idx < taskParams.end; idx++) {\n const itemLayout = lineData.getItemLayout(idx);\n\n if (lineNeedsDraw(itemLayout)) {\n const el = new this._LineCtor(lineData, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n\n this.group.add(el);\n lineData.setItemGraphicEl(idx, el);\n }\n }\n };\n\n remove() {\n this.group.removeAll();\n };\n\n private _doAdd(\n lineData: ListForLineDraw,\n idx: number,\n seriesScope: LineDrawSeriesScope\n ) {\n const itemLayout = lineData.getItemLayout(idx);\n\n if (!lineNeedsDraw(itemLayout)) {\n return;\n }\n\n const el = new this._LineCtor(lineData, idx, seriesScope);\n lineData.setItemGraphicEl(idx, el);\n this.group.add(el);\n }\n private _doUpdate(\n oldLineData: ListForLineDraw,\n newLineData: ListForLineDraw,\n oldIdx: number,\n newIdx: number,\n seriesScope: LineDrawSeriesScope\n ) {\n let itemEl = oldLineData.getItemGraphicEl(oldIdx) as LineLike;\n\n if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) {\n this.group.remove(itemEl);\n return;\n }\n\n if (!itemEl) {\n itemEl = new this._LineCtor(newLineData, newIdx, seriesScope);\n }\n else {\n itemEl.updateData(newLineData, newIdx, seriesScope);\n }\n\n newLineData.setItemGraphicEl(newIdx, itemEl);\n\n this.group.add(itemEl);\n }\n}\n\nfunction isEffectObject(el: Displayable) {\n return el.animators && el.animators.length > 0;\n}\n\nfunction makeSeriesScope(lineData: ListForLineDraw): LineDrawSeriesScope {\n const hostModel = lineData.hostModel;\n return {\n lineStyle: hostModel.getModel('lineStyle').getLineStyle(),\n emphasisLineStyle: hostModel.getModel(['emphasis', 'lineStyle']).getLineStyle(),\n blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(),\n selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(),\n\n labelStatesModels: getLabelStatesModels(hostModel)\n };\n}\n\nfunction isPointNaN(pt: number[]) {\n return isNaN(pt[0]) || isNaN(pt[1]);\n}\n\nfunction lineNeedsDraw(pts: number[][]) {\n return !isPointNaN(pts[0]) && !isPointNaN(pts[1]);\n}\n\n\nexport default LineDraw;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as curveTool from 'zrender/src/core/curve';\nimport * as vec2 from 'zrender/src/core/vector';\nimport {getSymbolSize} from './graphHelper';\nimport Graph from '../../data/Graph';\n\nconst v1: number[] = [];\nconst v2: number[] = [];\nconst v3: number[] = [];\nconst quadraticAt = curveTool.quadraticAt;\nconst v2DistSquare = vec2.distSquare;\nconst mathAbs = Math.abs;\nfunction intersectCurveCircle(\n curvePoints: number[][],\n center: number[],\n radius: number\n) {\n const p0 = curvePoints[0];\n const p1 = curvePoints[1];\n const p2 = curvePoints[2];\n\n let d = Infinity;\n let t;\n const radiusSquare = radius * radius;\n let interval = 0.1;\n\n for (let _t = 0.1; _t <= 0.9; _t += 0.1) {\n v1[0] = quadraticAt(p0[0], p1[0], p2[0], _t);\n v1[1] = quadraticAt(p0[1], p1[1], p2[1], _t);\n const diff = mathAbs(v2DistSquare(v1, center) - radiusSquare);\n if (diff < d) {\n d = diff;\n t = _t;\n }\n }\n\n // Assume the segment is monotone\uFF0CFind root through Bisection method\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n // let prev = t - interval;\n const next = t + interval;\n // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);\n // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);\n v2[0] = quadraticAt(p0[0], p1[0], p2[0], t);\n v2[1] = quadraticAt(p0[1], p1[1], p2[1], t);\n v3[0] = quadraticAt(p0[0], p1[0], p2[0], next);\n v3[1] = quadraticAt(p0[1], p1[1], p2[1], next);\n\n const diff = v2DistSquare(v2, center) - radiusSquare;\n if (mathAbs(diff) < 1e-2) {\n break;\n }\n\n // let prevDiff = v2DistSquare(v1, center) - radiusSquare;\n const nextDiff = v2DistSquare(v3, center) - radiusSquare;\n\n interval /= 2;\n if (diff < 0) {\n if (nextDiff >= 0) {\n t = t + interval;\n }\n else {\n t = t - interval;\n }\n }\n else {\n if (nextDiff >= 0) {\n t = t - interval;\n }\n else {\n t = t + interval;\n }\n }\n }\n\n return t;\n}\n\n// Adjust edge to avoid\nexport default function adjustEdge(graph: Graph, scale: number) {\n const tmp0: number[] = [];\n const quadraticSubdivide = curveTool.quadraticSubdivide;\n const pts: number[][] = [[], [], []];\n const pts2: number[][] = [[], []];\n const v: number[] = [];\n scale /= 2;\n\n graph.eachEdge(function (edge, idx) {\n const linePoints = edge.getLayout();\n const fromSymbol = edge.getVisual('fromSymbol');\n const toSymbol = edge.getVisual('toSymbol');\n\n if (!linePoints.__original) {\n linePoints.__original = [\n vec2.clone(linePoints[0]),\n vec2.clone(linePoints[1])\n ];\n if (linePoints[2]) {\n linePoints.__original.push(vec2.clone(linePoints[2]));\n }\n }\n const originalPoints = linePoints.__original;\n // Quadratic curve\n if (linePoints[2] != null) {\n vec2.copy(pts[0], originalPoints[0]);\n vec2.copy(pts[1], originalPoints[2]);\n vec2.copy(pts[2], originalPoints[1]);\n if (fromSymbol && fromSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node1);\n\n const t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale);\n // Subdivide and get the second\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[0][0] = tmp0[3];\n pts[1][0] = tmp0[4];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[0][1] = tmp0[3];\n pts[1][1] = tmp0[4];\n }\n if (toSymbol && toSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node2);\n\n const t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale);\n // Subdivide and get the first\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[1][0] = tmp0[1];\n pts[2][0] = tmp0[2];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[1][1] = tmp0[1];\n pts[2][1] = tmp0[2];\n }\n // Copy back to layout\n vec2.copy(linePoints[0], pts[0]);\n vec2.copy(linePoints[1], pts[2]);\n vec2.copy(linePoints[2], pts[1]);\n }\n // Line\n else {\n vec2.copy(pts2[0], originalPoints[0]);\n vec2.copy(pts2[1], originalPoints[1]);\n\n vec2.sub(v, pts2[1], pts2[0]);\n vec2.normalize(v, v);\n if (fromSymbol && fromSymbol !== 'none') {\n\n const symbolSize = getSymbolSize(edge.node1);\n\n vec2.scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale);\n }\n if (toSymbol && toSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node2);\n\n vec2.scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale);\n }\n vec2.copy(linePoints[0], pts2[0]);\n vec2.copy(linePoints[1], pts2[1]);\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SymbolDraw, { ListForSymbolDraw } from '../helper/SymbolDraw';\nimport LineDraw from '../helper/LineDraw';\nimport RoamController, { RoamControllerHost } from '../../component/helper/RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport adjustEdge from './adjustEdge';\nimport {getNodeGlobalScale} from './graphHelper';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport View from '../../coord/View';\nimport Symbol from '../helper/Symbol';\nimport SeriesData from '../../data/SeriesData';\nimport Line from '../helper/Line';\nimport { getECData } from '../../util/innerStore';\n\nfunction isViewCoordSys(coordSys: CoordinateSystem): coordSys is View {\n return coordSys.type === 'view';\n}\n\nclass GraphView extends ChartView {\n\n static readonly type = 'graph';\n readonly type = GraphView.type;\n\n private _symbolDraw: SymbolDraw;\n private _lineDraw: LineDraw;\n\n private _controller: RoamController;\n private _controllerHost: RoamControllerHost;\n\n private _firstRender: boolean;\n\n private _model: GraphSeriesModel;\n\n private _layoutTimeout: number;\n\n private _layouting: boolean;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n const symbolDraw = new SymbolDraw();\n const lineDraw = new LineDraw();\n const group = this.group;\n\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n } as RoamControllerHost;\n\n group.add(symbolDraw.group);\n group.add(lineDraw.group);\n\n this._symbolDraw = symbolDraw;\n this._lineDraw = lineDraw;\n\n this._firstRender = true;\n }\n\n render(seriesModel: GraphSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const coordSys = seriesModel.coordinateSystem;\n\n this._model = seriesModel;\n\n const symbolDraw = this._symbolDraw;\n const lineDraw = this._lineDraw;\n\n const group = this.group;\n\n if (isViewCoordSys(coordSys)) {\n const groupNewProp = {\n x: coordSys.x, y: coordSys.y,\n scaleX: coordSys.scaleX, scaleY: coordSys.scaleY\n };\n if (this._firstRender) {\n group.attr(groupNewProp);\n }\n else {\n graphic.updateProps(group, groupNewProp, seriesModel);\n }\n }\n // Fix edge contact point with node\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n const data = seriesModel.getData();\n symbolDraw.updateData(data as ListForSymbolDraw);\n\n const edgeData = seriesModel.getEdgeData();\n // TODO: TYPE\n lineDraw.updateData(edgeData as SeriesData);\n\n this._updateNodeAndLinkScale();\n\n this._updateController(seriesModel, ecModel, api);\n\n clearTimeout(this._layoutTimeout);\n const forceLayout = seriesModel.forceLayout;\n const layoutAnimation = seriesModel.get(['force', 'layoutAnimation']);\n if (forceLayout) {\n this._startForceLayoutIteration(forceLayout, layoutAnimation);\n }\n\n data.graph.eachNode((node) => {\n const idx = node.dataIndex;\n const el = node.getGraphicEl() as Symbol;\n const itemModel = node.getModel();\n // Update draggable\n el.off('drag').off('dragend');\n const draggable = itemModel.get('draggable');\n if (draggable) {\n el.on('drag', () => {\n if (forceLayout) {\n forceLayout.warmUp();\n !this._layouting\n && this._startForceLayoutIteration(forceLayout, layoutAnimation);\n forceLayout.setFixed(idx);\n // Write position back to layout\n data.setItemLayout(idx, [el.x, el.y]);\n }\n }).on('dragend', () => {\n if (forceLayout) {\n forceLayout.setUnfixed(idx);\n }\n });\n }\n el.setDraggable(draggable && !!forceLayout);\n\n const focus = itemModel.get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = node.getAdjacentDataIndices();\n }\n });\n\n data.graph.eachEdge(function (edge) {\n const el = edge.getGraphicEl() as Line;\n const focus = edge.getModel().get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = {\n edge: [edge.dataIndex],\n node: [edge.node1.dataIndex, edge.node2.dataIndex]\n };\n }\n });\n\n const circularRotateLabel = seriesModel.get('layout') === 'circular'\n && seriesModel.get(['circular', 'rotateLabel']);\n const cx = data.getLayout('cx');\n const cy = data.getLayout('cy');\n data.eachItemGraphicEl(function (el: Symbol, idx) {\n const itemModel = data.getItemModel(idx);\n let labelRotate = itemModel.get(['label', 'rotate']) || 0;\n const symbolPath = el.getSymbolPath();\n if (circularRotateLabel) {\n const pos = data.getItemLayout(idx);\n let rad = Math.atan2(pos[1] - cy, pos[0] - cx);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n const isLeft = pos[0] < cx;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n const textPosition = isLeft ? 'left' as const : 'right' as const;\n\n symbolPath.setTextConfig({\n rotation: -rad,\n position: textPosition,\n origin: 'center'\n });\n const emphasisState = symbolPath.ensureState('emphasis');\n zrUtil.extend(emphasisState.textConfig || (emphasisState.textConfig = {}), {\n position: textPosition\n });\n }\n else {\n symbolPath.setTextConfig({\n rotation: labelRotate *= Math.PI / 180\n });\n }\n });\n\n this._firstRender = false;\n }\n\n dispose() {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n }\n\n _startForceLayoutIteration(\n forceLayout: GraphSeriesModel['forceLayout'],\n layoutAnimation?: boolean\n ) {\n const self = this;\n (function step() {\n forceLayout.step(function (stopped) {\n self.updateLayout(self._model);\n (self._layouting = !stopped) && (\n layoutAnimation\n ? (self._layoutTimeout = setTimeout(step, 16) as any)\n : step()\n );\n });\n })();\n }\n\n _updateController(\n seriesModel: GraphSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n const group = this.group;\n\n controller.setPointerChecker(function (e, x, y) {\n const rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y)\n && !onIrrelevantElement(e, api, seriesModel);\n });\n\n if (!isViewCoordSys(seriesModel.coordinateSystem)) {\n controller.disable();\n return;\n }\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n\n controller\n .off('pan')\n .off('zoom')\n .on('pan', (e) => {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n dx: e.dx,\n dy: e.dy\n });\n })\n .on('zoom', (e) => {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n this._updateNodeAndLinkScale();\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n this._lineDraw.updateLayout();\n // Only update label layout on zoom\n api.updateLabelLayout();\n });\n }\n\n _updateNodeAndLinkScale() {\n const seriesModel = this._model;\n const data = seriesModel.getData();\n\n const nodeScale = getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el: Symbol, idx) {\n el.setSymbolScale(nodeScale);\n });\n }\n\n updateLayout(seriesModel: GraphSeriesModel) {\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n this._symbolDraw.updateLayout();\n this._lineDraw.updateLayout();\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove();\n this._lineDraw && this._lineDraw.remove();\n }\n}\n\nexport default GraphView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesData from './SeriesData';\nimport Model from '../model/Model';\nimport Element from 'zrender/src/Element';\nimport { DimensionLoose, ParsedValue } from '../util/types';\n\n// id may be function name of Object, add a prefix to avoid this problem.\nfunction generateNodeKey(id: string): string {\n return '_EC_' + id;\n}\n\nclass Graph {\n type: 'graph' = 'graph';\n\n readonly nodes: GraphNode[] = [];\n\n readonly edges: GraphEdge[] = [];\n\n data: SeriesData;\n\n edgeData: SeriesData;\n\n /**\n * Whether directed graph.\n */\n private _directed: boolean;\n\n private _nodesMap: Dictionary = {};\n /**\n * @type {Object.}\n * @private\n */\n private _edgesMap: Dictionary = {};\n\n\n constructor(directed?: boolean) {\n this._directed = directed || false;\n }\n\n /**\n * If is directed graph\n */\n isDirected(): boolean {\n return this._directed;\n };\n\n /**\n * Add a new node\n */\n addNode(id: string | number, dataIndex?: number): GraphNode {\n id = id == null ? ('' + dataIndex) : ('' + id);\n\n const nodesMap = this._nodesMap;\n\n if (nodesMap[generateNodeKey(id)]) {\n if (__DEV__) {\n console.error('Graph nodes have duplicate name or id');\n }\n return;\n }\n\n const node = new GraphNode(id, dataIndex);\n node.hostGraph = this;\n\n this.nodes.push(node);\n\n nodesMap[generateNodeKey(id)] = node;\n return node;\n };\n\n /**\n * Get node by data index\n */\n getNodeByIndex(dataIndex: number): GraphNode {\n const rawIdx = this.data.getRawIndex(dataIndex);\n return this.nodes[rawIdx];\n };\n /**\n * Get node by id\n */\n getNodeById(id: string): GraphNode {\n return this._nodesMap[generateNodeKey(id)];\n };\n\n /**\n * Add a new edge\n */\n addEdge(n1: GraphNode | number | string, n2: GraphNode | number | string, dataIndex?: number) {\n const nodesMap = this._nodesMap;\n const edgesMap = this._edgesMap;\n\n // PNEDING\n if (typeof n1 === 'number') {\n n1 = this.nodes[n1];\n }\n if (typeof n2 === 'number') {\n n2 = this.nodes[n2];\n }\n\n if (!(n1 instanceof GraphNode)) {\n n1 = nodesMap[generateNodeKey(n1)];\n }\n if (!(n2 instanceof GraphNode)) {\n n2 = nodesMap[generateNodeKey(n2)];\n }\n if (!n1 || !n2) {\n return;\n }\n\n const key = n1.id + '-' + n2.id;\n\n const edge = new GraphEdge(n1, n2, dataIndex);\n edge.hostGraph = this;\n\n if (this._directed) {\n n1.outEdges.push(edge);\n n2.inEdges.push(edge);\n }\n n1.edges.push(edge);\n if (n1 !== n2) {\n n2.edges.push(edge);\n }\n\n this.edges.push(edge);\n edgesMap[key] = edge;\n\n return edge;\n };\n\n /**\n * Get edge by data index\n */\n getEdgeByIndex(dataIndex: number): GraphEdge {\n const rawIdx = this.edgeData.getRawIndex(dataIndex);\n return this.edges[rawIdx];\n };\n /**\n * Get edge by two linked nodes\n */\n getEdge(n1: string | GraphNode, n2: string | GraphNode): GraphEdge {\n if (n1 instanceof GraphNode) {\n n1 = n1.id;\n }\n if (n2 instanceof GraphNode) {\n n2 = n2.id;\n }\n\n const edgesMap = this._edgesMap;\n\n if (this._directed) {\n return edgesMap[n1 + '-' + n2];\n }\n else {\n return edgesMap[n1 + '-' + n2]\n || edgesMap[n2 + '-' + n1];\n }\n };\n\n /**\n * Iterate all nodes\n */\n eachNode(\n cb: (this: Ctx, node: GraphNode, idx: number) => void,\n context?: Ctx\n ) {\n const nodes = this.nodes;\n const len = nodes.length;\n for (let i = 0; i < len; i++) {\n if (nodes[i].dataIndex >= 0) {\n cb.call(context, nodes[i], i);\n }\n }\n };\n\n /**\n * Iterate all edges\n */\n eachEdge(\n cb: (this: Ctx, edge: GraphEdge, idx: number) => void,\n context?: Ctx\n ) {\n const edges = this.edges;\n const len = edges.length;\n for (let i = 0; i < len; i++) {\n if (edges[i].dataIndex >= 0\n && edges[i].node1.dataIndex >= 0\n && edges[i].node2.dataIndex >= 0\n ) {\n cb.call(context, edges[i], i);\n }\n }\n };\n\n /**\n * Breadth first traverse\n * Return true to stop traversing\n */\n breadthFirstTraverse(\n cb: (this: Ctx, node: GraphNode, fromNode: GraphNode) => boolean | void,\n startNode: GraphNode | string,\n direction: 'none' | 'in' | 'out',\n context?: Ctx\n ) {\n if (!(startNode instanceof GraphNode)) {\n startNode = this._nodesMap[generateNodeKey(startNode)];\n }\n if (!startNode) {\n return;\n }\n\n const edgeType: 'inEdges' | 'outEdges' | 'edges' = direction === 'out'\n ? 'outEdges' : (direction === 'in' ? 'inEdges' : 'edges');\n\n for (let i = 0; i < this.nodes.length; i++) {\n this.nodes[i].__visited = false;\n }\n\n if (cb.call(context, startNode, null)) {\n return;\n }\n\n const queue = [startNode];\n while (queue.length) {\n const currentNode = queue.shift();\n const edges = currentNode[edgeType];\n\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n const otherNode = e.node1 === currentNode\n ? e.node2 : e.node1;\n if (!otherNode.__visited) {\n if (cb.call(context, otherNode, currentNode)) {\n // Stop traversing\n return;\n }\n queue.push(otherNode);\n otherNode.__visited = true;\n }\n }\n }\n };\n\n // TODO\n // depthFirstTraverse(\n // cb, startNode, direction, context\n // ) {\n\n // };\n\n // Filter update\n update() {\n const data = this.data;\n const edgeData = this.edgeData;\n const nodes = this.nodes;\n const edges = this.edges;\n\n for (let i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n for (let i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n\n edgeData.filterSelf(function (idx) {\n const edge = edges[edgeData.getRawIndex(idx)];\n return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;\n });\n\n // Update edge\n for (let i = 0, len = edges.length; i < len; i++) {\n edges[i].dataIndex = -1;\n }\n for (let i = 0, len = edgeData.count(); i < len; i++) {\n edges[edgeData.getRawIndex(i)].dataIndex = i;\n }\n };\n\n /**\n * @return {module:echarts/data/Graph}\n */\n clone() {\n const graph = new Graph(this._directed);\n const nodes = this.nodes;\n const edges = this.edges;\n for (let i = 0; i < nodes.length; i++) {\n graph.addNode(nodes[i].id, nodes[i].dataIndex);\n }\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);\n }\n return graph;\n };\n\n\n}\n\n\nclass GraphNode {\n\n id: string;\n\n inEdges: GraphEdge[] = [];\n\n outEdges: GraphEdge[] = [];\n\n edges: GraphEdge[] = [];\n\n hostGraph: Graph;\n\n dataIndex: number = -1;\n\n // Used in traverse of Graph\n __visited: boolean;\n\n constructor(id?: string, dataIndex?: number) {\n this.id = id == null ? '' : id;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n /**\n * @return {number}\n */\n degree() {\n return this.edges.length;\n }\n\n /**\n * @return {number}\n */\n inDegree() {\n return this.inEdges.length;\n }\n\n /**\n * @return {number}\n */\n outDegree() {\n return this.outEdges.length;\n }\n\n // TODO: TYPE Same type with Model#getModel\n getModel(): Model\n getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const graph = this.hostGraph;\n const itemModel = graph.data.getItemModel(this.dataIndex);\n\n return itemModel.getModel(path as any);\n }\n\n getAdjacentDataIndices(): {node: number[], edge: number[]} {\n const dataIndices = {\n edge: [] as number[],\n node: [] as number[]\n };\n for (let i = 0; i < this.edges.length; i++) {\n const adjacentEdge = this.edges[i];\n if (adjacentEdge.dataIndex < 0) {\n continue;\n }\n dataIndices.edge.push(adjacentEdge.dataIndex);\n dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex);\n }\n return dataIndices;\n }\n}\n\n\nclass GraphEdge {\n /**\n * The first node. If directed graph, it represents the source node.\n */\n node1: GraphNode;\n /**\n * The second node. If directed graph, it represents the target node.\n */\n node2: GraphNode;\n\n dataIndex: number = -1;\n\n hostGraph: Graph;\n\n constructor(n1: GraphNode, n2: GraphNode, dataIndex?: number) {\n this.node1 = n1;\n this.node2 = n2;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n getModel(): Model\n getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const graph = this.hostGraph;\n const itemModel = graph.edgeData.getItemModel(this.dataIndex);\n\n return itemModel.getModel(path as any);\n }\n\n getAdjacentDataIndices(): {node: number[], edge: number[]} {\n return {\n edge: [this.dataIndex],\n node: [this.node1.dataIndex, this.node2.dataIndex]\n };\n }\n}\n\ntype GetDataName = Host extends GraphEdge ? 'edgeData' : 'data';\n\ninterface GraphDataProxyMixin {\n getValue(dimension?: DimensionLoose): ParsedValue;\n // TODO: TYPE stricter type.\n setVisual(key: string | Dictionary, value?: any): void;\n\n getVisual(key: string): any,\n\n setLayout(layout: any, merge?: boolean): void;\n\n getLayout(): any\n\n getGraphicEl(): Element\n\n getRawIndex(): number\n}\n\nfunction createGraphDataProxyMixin(\n hostName: 'hostGraph',\n dataName: GetDataName\n): GraphDataProxyMixin {\n return {\n /**\n * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.\n */\n getValue(this: Host, dimension?: DimensionLoose): ParsedValue {\n const data = this[hostName][dataName];\n return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);\n },\n // TODO: TYPE stricter type.\n setVisual(this: Host, key: string | Dictionary, value?: any) {\n this.dataIndex >= 0\n && this[hostName][dataName].setItemVisual(this.dataIndex, key as any, value);\n },\n\n getVisual(this: Host, key: string) {\n return this[hostName][dataName].getItemVisual(this.dataIndex, key as any);\n },\n\n setLayout(this: Host, layout: any, merge?: boolean) {\n this.dataIndex >= 0\n && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);\n },\n\n getLayout(this: Host) {\n return this[hostName][dataName].getItemLayout(this.dataIndex);\n },\n\n getGraphicEl(this: Host): Element {\n return this[hostName][dataName].getItemGraphicEl(this.dataIndex);\n },\n\n getRawIndex(this: Host) {\n return this[hostName][dataName].getRawIndex(this.dataIndex);\n }\n };\n};\n\n\ninterface GraphEdge extends GraphDataProxyMixin {};\ninterface GraphNode extends GraphDataProxyMixin {};\n\nzrUtil.mixin(GraphNode, createGraphDataProxyMixin('hostGraph', 'data'));\nzrUtil.mixin(GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData'));\n\nexport default Graph;\n\nexport {GraphNode, GraphEdge};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport Graph from '../../data/Graph';\nimport linkSeriesData from '../../data/helper/linkSeriesData';\nimport createDimensions from '../../data/helper/createDimensions';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport createSeriesData from './createSeriesData';\nimport {\n OptionSourceDataOriginal, GraphEdgeItemObject, OptionDataValue,\n OptionDataItemObject\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { convertOptionIdName } from '../../util/model';\n\nexport default function createGraphFromNodeEdge(\n nodes: OptionSourceDataOriginal>,\n edges: OptionSourceDataOriginal>,\n seriesModel: SeriesModel,\n directed: boolean,\n beforeLink: (nodeData: SeriesData, edgeData: SeriesData) => void\n): Graph {\n // ??? TODO\n // support dataset?\n const graph = new Graph(directed);\n for (let i = 0; i < nodes.length; i++) {\n graph.addNode(zrUtil.retrieve(\n // Id, name, dataIndex\n nodes[i].id, nodes[i].name, i\n ), i);\n }\n\n const linkNameList = [];\n const validEdges = [];\n let linkCount = 0;\n for (let i = 0; i < edges.length; i++) {\n const link = edges[i];\n const source = link.source;\n const target = link.target;\n // addEdge may fail when source or target not exists\n if (graph.addEdge(source, target, linkCount)) {\n validEdges.push(link);\n linkNameList.push(zrUtil.retrieve(\n convertOptionIdName(link.id, null),\n source + ' > ' + target\n ));\n linkCount++;\n }\n }\n\n const coordSys = seriesModel.get('coordinateSystem');\n let nodeData;\n if (coordSys === 'cartesian2d' || coordSys === 'polar') {\n nodeData = createSeriesData(nodes, seriesModel);\n }\n else {\n const coordSysCtor = CoordinateSystem.get(coordSys);\n const coordDimensions = coordSysCtor\n ? (coordSysCtor.dimensions || []) : [];\n // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs\n // `value` dimension, but graph need `value` dimension. It's better to\n // uniform this behavior.\n if (zrUtil.indexOf(coordDimensions, 'value') < 0) {\n coordDimensions.concat(['value']);\n }\n\n const { dimensionList } = createDimensions(nodes, {\n coordDimensions: coordDimensions,\n encodeDefine: seriesModel.getEncode()\n });\n nodeData = new SeriesData(dimensionList, seriesModel);\n nodeData.initData(nodes);\n }\n\n const edgeData = new SeriesData(['value'], seriesModel);\n edgeData.initData(validEdges, linkNameList);\n\n beforeLink && beforeLink(nodeData, edgeData);\n\n linkSeriesData({\n mainData: nodeData,\n struct: graph,\n structAttr: 'graph',\n datas: {node: nodeData, edge: edgeData},\n datasAttr: {node: 'data', edge: 'edgeData'}\n });\n\n // Update dataIndex of nodes and edges because invalid edge may be removed\n graph.update();\n\n return graph;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {defaultEmphasis} from '../../util/model';\nimport Model from '../../model/Model';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n OptionDataValue,\n RoamOptionMixin,\n SeriesLabelOption,\n ItemStyleOption,\n LineStyleOption,\n SymbolOptionMixin,\n BoxLayoutOptionMixin,\n Dictionary,\n SeriesLineLabelOption,\n StatesOptionMixin,\n GraphEdgeItemObject,\n OptionDataValueNumeric,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport Graph from '../../data/Graph';\nimport GlobalModel from '../../model/Global';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { ForceLayoutInstance } from './forceLayout';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { defaultSeriesFormatTooltip } from '../../component/tooltip/seriesFormatTooltip';\nimport {initCurvenessList, createEdgeMapForCurveness} from '../helper/multipleGraphEdgeHelper';\n\n\ntype GraphDataValue = OptionDataValue | OptionDataValue[];\n\ninterface GraphEdgeLineStyleOption extends LineStyleOption {\n curveness?: number\n}\n\nexport interface GraphNodeStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\n\ninterface ExtraEmphasisState {\n focus?: DefaultEmphasisFocus | 'adjacency'\n}\ninterface ExtraNodeStateOption {\n emphasis?: ExtraEmphasisState\n}\n\ninterface ExtraEdgeStateOption {\n emphasis?: ExtraEmphasisState\n}\n\nexport interface GraphNodeItemOption extends SymbolOptionMixin, GraphNodeStateOption,\n GraphNodeStateOption, StatesOptionMixin {\n\n id?: string\n name?: string\n value?: GraphDataValue\n\n /**\n * Fixed x position\n */\n x?: number\n /**\n * Fixed y position\n */\n y?: number\n\n /**\n * If this node is fixed during force layout.\n */\n fixed?: boolean\n\n /**\n * Index or name of category\n */\n category?: number | string\n\n draggable?: boolean\n}\n\nexport interface GraphEdgeStateOption {\n lineStyle?: GraphEdgeLineStyleOption\n label?: SeriesLineLabelOption\n}\nexport interface GraphEdgeItemOption extends\n GraphEdgeStateOption,\n StatesOptionMixin,\n GraphEdgeItemObject {\n\n value?: number\n\n /**\n * Symbol of both line ends\n */\n symbol?: string | string[]\n\n symbolSize?: number | number[]\n\n ignoreForceLayout?: boolean\n}\n\nexport interface GraphCategoryItemOption extends SymbolOptionMixin,\n GraphNodeStateOption, StatesOptionMixin {\n name?: string\n\n value?: OptionDataValue\n}\n\nexport interface GraphSeriesOption extends SeriesOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin,\n SymbolOptionMixin,\n RoamOptionMixin,\n BoxLayoutOptionMixin {\n\n type?: 'graph'\n\n coordinateSystem?: string\n\n legendHoverLink?: boolean\n\n layout?: 'none' | 'force' | 'circular'\n\n data?: (GraphNodeItemOption | GraphDataValue)[]\n nodes?: (GraphNodeItemOption | GraphDataValue)[]\n\n edges?: GraphEdgeItemOption[]\n links?: GraphEdgeItemOption[]\n\n categories?: GraphCategoryItemOption[]\n\n /**\n * @deprecated\n */\n focusNodeAdjacency?: boolean\n\n /**\n * Symbol size scale ratio in roam\n */\n nodeScaleRatio?: 0.6,\n\n draggable?: boolean\n\n edgeSymbol?: string | string[]\n edgeSymbolSize?: number | number[]\n\n edgeLabel?: SeriesLineLabelOption\n label?: SeriesLabelOption\n\n itemStyle?: ItemStyleOption\n lineStyle?: GraphEdgeLineStyleOption\n\n emphasis?: {\n focus?: Exclude['focus']\n scale?: boolean\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n blur?: {\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n select?: {\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n // Configuration of circular layout\n circular?: {\n rotateLabel?: boolean\n }\n\n // Configuration of force directed layout\n force?: {\n initLayout?: 'circular' | 'none'\n // Node repulsion. Can be an array to represent range.\n repulsion?: number | number[]\n gravity?: number\n // Initial friction\n friction?: number\n\n // Edge length. Can be an array to represent range.\n edgeLength?: number | number[]\n\n layoutAnimation?: boolean\n }\n}\n\nclass GraphSeriesModel extends SeriesModel {\n static readonly type = 'series.graph';\n readonly type = GraphSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n private _categoriesData: SeriesData;\n private _categoriesModels: Model[];\n\n /**\n * Preserved points during layouting\n */\n preservedPoints?: Dictionary;\n\n forceLayout?: ForceLayoutInstance;\n\n hasSymbolVisual = true;\n\n init(option: GraphSeriesOption) {\n super.init.apply(this, arguments as any);\n\n const self = this;\n function getCategoriesData() {\n return self._categoriesData;\n }\n // Provide data for legend select\n this.legendVisualProvider = new LegendVisualProvider(\n getCategoriesData, getCategoriesData\n );\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n }\n\n mergeOption(option: GraphSeriesOption) {\n super.mergeOption.apply(this, arguments as any);\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n }\n\n mergeDefaultAndTheme(option: GraphSeriesOption) {\n super.mergeDefaultAndTheme.apply(this, arguments as any);\n defaultEmphasis(option, 'edgeLabel', ['show']);\n }\n\n getInitialData(option: GraphSeriesOption, ecModel: GlobalModel): SeriesData {\n const edges = option.edges || option.links || [];\n const nodes = option.data || option.nodes || [];\n const self = this;\n\n if (nodes && edges) {\n // auto curveness\n initCurvenessList(this);\n const graph = createGraphFromNodeEdge(nodes as GraphNodeItemOption[], edges, this, true, beforeLink);\n zrUtil.each(graph.edges, function (edge) {\n createEdgeMapForCurveness(edge.node1, edge.node2, this, edge.dataIndex);\n }, this);\n return graph.data;\n }\n\n function beforeLink(nodeData: SeriesData, edgeData: SeriesData) {\n // Overwrite nodeData.getItemModel to\n nodeData.wrapMethod('getItemModel', function (model) {\n const categoriesModels = self._categoriesModels;\n const categoryIdx = model.getShallow('category');\n const categoryModel = categoriesModels[categoryIdx];\n if (categoryModel) {\n categoryModel.parentModel = model.parentModel;\n model.parentModel = categoryModel;\n }\n return model;\n });\n\n // TODO Inherit resolveParentPath by default in Model#getModel?\n const oldGetModel = Model.prototype.getModel;\n function newGetModel(this: Model, path: any, parentModel?: Model) {\n const model = oldGetModel.call(this, path, parentModel);\n model.resolveParentPath = resolveParentPath;\n return model;\n }\n\n edgeData.wrapMethod('getItemModel', function (model: Model) {\n model.resolveParentPath = resolveParentPath;\n model.getModel = newGetModel;\n return model;\n });\n\n function resolveParentPath(this: Model, pathArr: readonly string[]): string[] {\n if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) {\n const newPathArr = pathArr.slice();\n if (pathArr[0] === 'label') {\n newPathArr[0] = 'edgeLabel';\n }\n else if (pathArr[1] === 'label') {\n newPathArr[1] = 'edgeLabel';\n }\n return newPathArr;\n }\n return pathArr as string[];\n }\n }\n }\n\n getGraph(): Graph {\n return this.getData().graph;\n }\n\n getEdgeData() {\n return this.getGraph().edgeData as SeriesData;\n }\n\n getCategoriesData(): SeriesData {\n return this._categoriesData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n if (dataType === 'edge') {\n const nodeData = this.getData();\n const params = this.getDataParams(dataIndex, dataType);\n const edge = nodeData.graph.getEdgeByIndex(dataIndex);\n const sourceName = nodeData.getName(edge.node1.dataIndex);\n const targetName = nodeData.getName(edge.node2.dataIndex);\n\n const nameArr = [];\n sourceName != null && nameArr.push(sourceName);\n targetName != null && nameArr.push(targetName);\n\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > '),\n value: params.value,\n noValue: params.value == null\n });\n }\n // dataType === 'node' or empty\n const nodeMarkup = defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n return nodeMarkup;\n }\n\n _updateCategoriesData() {\n const categories = zrUtil.map(this.option.categories || [], function (category) {\n // Data must has value\n return category.value != null ? category : zrUtil.extend({\n value: 0\n }, category);\n });\n const categoriesData = new SeriesData(['value'], this);\n categoriesData.initData(categories);\n\n this._categoriesData = categoriesData;\n\n this._categoriesModels = categoriesData.mapArray(function (idx) {\n return categoriesData.getItemModel(idx);\n });\n }\n\n setZoom(zoom: number) {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]) {\n this.option.center = center;\n }\n\n isAnimationEnabled() {\n return super.isAnimationEnabled()\n // Not enable animation when do force layout\n && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation']));\n }\n\n static defaultOption: GraphSeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'view',\n\n // Default option for all coordinate systems\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // polarIndex: 0,\n // geoIndex: 0,\n\n legendHoverLink: true,\n\n layout: null,\n\n // Configuration of circular layout\n circular: {\n rotateLabel: false\n },\n // Configuration of force directed layout\n force: {\n initLayout: null,\n // Node repulsion. Can be an array to represent range.\n repulsion: [0, 50],\n gravity: 0.1,\n // Initial friction\n friction: 0.6,\n\n // Edge length. Can be an array to represent range.\n edgeLength: 30,\n\n layoutAnimation: true\n },\n\n left: 'center',\n top: 'center',\n // right: null,\n // bottom: null,\n // width: '80%',\n // height: '80%',\n\n symbol: 'circle',\n symbolSize: 10,\n\n edgeSymbol: ['none', 'none'],\n edgeSymbolSize: 10,\n edgeLabel: {\n position: 'middle',\n distance: 5\n },\n\n draggable: false,\n\n roam: false,\n\n // Default on center of graph\n center: null,\n\n zoom: 1,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.6,\n\n // cursor: null,\n\n // categories: [],\n\n // data: []\n // Or\n // nodes: []\n //\n // links: []\n // Or\n // edges: []\n\n label: {\n show: false,\n formatter: '{b}'\n },\n\n itemStyle: {},\n\n lineStyle: {\n color: '#aaa',\n width: 1,\n opacity: 0.5\n },\n emphasis: {\n scale: true,\n label: {\n show: true\n }\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n}\n\nexport default GraphSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nimport categoryFilter from './categoryFilter';\nimport categoryVisual from './categoryVisual';\nimport edgeVisual from './edgeVisual';\nimport simpleLayout from './simpleLayout';\nimport circularLayout from './circularLayout';\nimport forceLayout from './forceLayout';\nimport createView from './createView';\nimport View from '../../coord/View';\nimport GraphView from './GraphView';\nimport GraphSeriesModel from './GraphSeries';\nimport { RoamPaylod, updateCenterAndZoom } from '../../action/roamHelper';\nimport GlobalModel from '../../model/Global';\n\nconst actionInfo = {\n type: 'graphRoam',\n event: 'graphRoam',\n update: 'none'\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(GraphView);\n registers.registerSeriesModel(GraphSeriesModel);\n\n registers.registerProcessor(categoryFilter);\n\n registers.registerVisual(categoryVisual);\n registers.registerVisual(edgeVisual);\n\n registers.registerLayout(simpleLayout);\n registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);\n registers.registerLayout(forceLayout);\n\n registers.registerCoordinateSystem('graphView', {\n dimensions: View.dimensions,\n create: createView\n });\n\n // Register legacy focus actions\n registers.registerAction({\n type: 'focusNodeAdjacency',\n event: 'focusNodeAdjacency',\n update: 'series:focusNodeAdjacency'\n }, function () {});\n\n registers.registerAction({\n type: 'unfocusNodeAdjacency',\n event: 'unfocusNodeAdjacency',\n update: 'series:unfocusNodeAdjacency'\n }, function () {});\n\n // Register roam action.\n registers.registerAction(actionInfo, function (payload: RoamPaylod, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series', query: payload\n }, function (seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem as View;\n\n const res = updateCenterAndZoom(coordSys, payload);\n\n seriesModel.setCenter\n && seriesModel.setCenter(res.center);\n\n seriesModel.setZoom\n && seriesModel.setZoom(res.zoom);\n });\n });\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\n\nclass PointerShape {\n angle = 0;\n width = 10;\n r = 10;\n x = 0;\n y = 0;\n}\n\ninterface PointerPathProps extends PathProps {\n shape?: Partial\n}\n\nexport default class PointerPath extends Path {\n\n readonly type = 'pointer';\n\n shape: PointerShape;\n\n constructor(opts?: PointerPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new PointerShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PointerShape) {\n const mathCos = Math.cos;\n const mathSin = Math.sin;\n\n const r = shape.r;\n const width = shape.width;\n let angle = shape.angle;\n const x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);\n const y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);\n\n angle = shape.angle - Math.PI / 2;\n ctx.moveTo(x, y);\n ctx.lineTo(\n shape.x + mathCos(angle) * width,\n shape.y + mathSin(angle) * width\n );\n ctx.lineTo(\n shape.x + mathCos(shape.angle) * r,\n shape.y + mathSin(shape.angle) * r\n );\n ctx.lineTo(\n shape.x - mathCos(angle) * width,\n shape.y - mathSin(angle) * width\n );\n ctx.lineTo(x, y);\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport PointerPath from './PointerPath';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport {createTextStyle, setLabelValueAnimation, animateLabelValue} from '../../label/labelStyle';\nimport ChartView from '../../view/Chart';\nimport {parsePercent, round, linearMap} from '../../util/number';\nimport GaugeSeriesModel, { GaugeDataItemOption } from './GaugeSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ColorString, ECElement } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport Sausage from '../../util/shape/sausage';\nimport {createSymbol} from '../../util/symbol';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport {extend} from 'zrender/src/core/util';\nimport {setCommonECData} from '../../util/innerStore';\n\ntype ECSymbol = ReturnType;\n\ninterface PosInfo {\n cx: number\n cy: number\n r: number\n}\n\nfunction parsePosition(seriesModel: GaugeSeriesModel, api: ExtensionAPI): PosInfo {\n const center = seriesModel.get('center');\n const width = api.getWidth();\n const height = api.getHeight();\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], api.getWidth());\n const cy = parsePercent(center[1], api.getHeight());\n const r = parsePercent(seriesModel.get('radius'), size / 2);\n\n return {\n cx: cx,\n cy: cy,\n r: r\n };\n}\n\nfunction formatLabel(value: number, labelFormatter: string | ((value: number) => string)): string {\n let label = value == null ? '' : (value + '');\n if (labelFormatter) {\n if (typeof labelFormatter === 'string') {\n label = labelFormatter.replace('{value}', label);\n }\n else if (typeof labelFormatter === 'function') {\n label = labelFormatter(value);\n }\n }\n\n return label;\n}\n\nconst PI2 = Math.PI * 2;\n\nclass GaugeView extends ChartView {\n static type = 'gauge' as const;\n type = GaugeView.type;\n\n private _data: SeriesData;\n private _progressEls: graphic.Path[];\n\n private _titleEls: graphic.Text[];\n private _detailEls: graphic.Text[];\n\n render(seriesModel: GaugeSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n this.group.removeAll();\n\n const colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']);\n const posInfo = parsePosition(seriesModel, api);\n\n this._renderMain(\n seriesModel, ecModel, api, colorList, posInfo\n );\n\n this._data = seriesModel.getData();\n }\n\n dispose() {}\n\n _renderMain(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n colorList: [number, ColorString][],\n posInfo: PosInfo\n ) {\n const group = this.group;\n const clockwise = seriesModel.get('clockwise');\n let startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;\n let endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;\n const axisLineModel = seriesModel.getModel('axisLine');\n\n const roundCap = axisLineModel.get('roundCap');\n const MainPath = roundCap ? Sausage : graphic.Sector;\n\n const showAxis = axisLineModel.get('show');\n const lineStyleModel = axisLineModel.getModel('lineStyle');\n const axisLineWidth = lineStyleModel.get('width');\n const angleRangeSpan = !((endAngle - startAngle) % PI2) && endAngle !== startAngle\n ? PI2 : (endAngle - startAngle) % PI2;\n\n let prevEndAngle = startAngle;\n\n for (let i = 0; showAxis && i < colorList.length; i++) {\n // Clamp\n const percent = Math.min(Math.max(colorList[i][0], 0), 1);\n endAngle = startAngle + angleRangeSpan * percent;\n const sector = new MainPath({\n shape: {\n startAngle: prevEndAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: posInfo.r - axisLineWidth,\n r: posInfo.r\n },\n silent: true\n });\n\n sector.setStyle({\n fill: colorList[i][1]\n });\n\n sector.setStyle(lineStyleModel.getLineStyle(\n // Because we use sector to simulate arc\n // so the properties for stroking are useless\n ['color', 'width']\n ));\n\n group.add(sector);\n\n prevEndAngle = endAngle;\n }\n\n const getColor = function (percent: number) {\n // Less than 0\n if (percent <= 0) {\n return colorList[0][1];\n }\n let i;\n for (i = 0; i < colorList.length; i++) {\n if (colorList[i][0] >= percent\n && (i === 0 ? 0 : colorList[i - 1][0]) < percent\n ) {\n return colorList[i][1];\n }\n }\n // More than 1\n return colorList[i - 1][1];\n };\n\n if (!clockwise) {\n const tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n\n this._renderTicks(\n seriesModel, ecModel, api, getColor, posInfo,\n startAngle, endAngle, clockwise, axisLineWidth\n );\n\n this._renderTitleAndDetail(\n seriesModel, ecModel, api, getColor, posInfo\n );\n\n this._renderAnchor(seriesModel, posInfo);\n\n this._renderPointer(\n seriesModel, ecModel, api, getColor, posInfo,\n startAngle, endAngle, clockwise, axisLineWidth\n );\n }\n\n _renderTicks(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo,\n startAngle: number,\n endAngle: number,\n clockwise: boolean,\n axisLineWidth: number\n ) {\n const group = this.group;\n const cx = posInfo.cx;\n const cy = posInfo.cy;\n const r = posInfo.r;\n\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n\n const splitLineModel = seriesModel.getModel('splitLine');\n const tickModel = seriesModel.getModel('axisTick');\n const labelModel = seriesModel.getModel('axisLabel');\n\n const splitNumber = seriesModel.get('splitNumber');\n const subSplitNumber = tickModel.get('splitNumber');\n\n const splitLineLen = parsePercent(\n splitLineModel.get('length'), r\n );\n const tickLen = parsePercent(\n tickModel.get('length'), r\n );\n\n let angle = startAngle;\n const step = (endAngle - startAngle) / splitNumber;\n const subStep = step / subSplitNumber;\n\n const splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();\n const tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();\n\n const splitLineDistance = splitLineModel.get('distance');\n\n let unitX;\n let unitY;\n\n for (let i = 0; i <= splitNumber; i++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n // Split line\n if (splitLineModel.get('show')) {\n const distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth;\n const splitLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - splitLineLen - distance) + cx,\n y2: unitY * (r - splitLineLen - distance) + cy\n },\n style: splitLineStyle,\n silent: true\n });\n if (splitLineStyle.stroke === 'auto') {\n splitLine.setStyle({\n stroke: getColor(i / splitNumber)\n });\n }\n\n group.add(splitLine);\n }\n\n // Label\n if (labelModel.get('show')) {\n const distance = labelModel.get('distance') + splitLineDistance;\n\n const label = formatLabel(\n round(i / splitNumber * (maxVal - minVal) + minVal),\n labelModel.get('formatter')\n );\n const autoColor = getColor(i / splitNumber);\n\n group.add(new graphic.Text({\n style: createTextStyle(labelModel, {\n text: label,\n x: unitX * (r - splitLineLen - distance) + cx,\n y: unitY * (r - splitLineLen - distance) + cy,\n verticalAlign: unitY < -0.8 ? 'top' : (unitY > 0.8 ? 'bottom' : 'middle'),\n align: unitX < -0.4 ? 'left' : (unitX > 0.4 ? 'right' : 'center')\n }, {\n inheritColor: autoColor\n }),\n silent: true\n }));\n }\n\n // Axis tick\n if (tickModel.get('show') && i !== splitNumber) {\n let distance = tickModel.get('distance');\n distance = distance ? distance + axisLineWidth : axisLineWidth;\n\n for (let j = 0; j <= subSplitNumber; j++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n const tickLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - tickLen - distance) + cx,\n y2: unitY * (r - tickLen - distance) + cy\n },\n silent: true,\n style: tickLineStyle\n });\n\n if (tickLineStyle.stroke === 'auto') {\n tickLine.setStyle({\n stroke: getColor((i + j / subSplitNumber) / splitNumber)\n });\n }\n\n group.add(tickLine);\n angle += subStep;\n }\n angle -= subStep;\n }\n else {\n angle += step;\n }\n }\n }\n\n _renderPointer(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo,\n startAngle: number,\n endAngle: number,\n clockwise: boolean,\n axisLineWidth: number\n ) {\n\n const group = this.group;\n const oldData = this._data;\n const oldProgressData = this._progressEls;\n const progressList = [] as graphic.Path[];\n\n const showPointer = seriesModel.get(['pointer', 'show']);\n const progressModel = seriesModel.getModel('progress');\n const showProgress = progressModel.get('show');\n\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n const valueExtent = [minVal, maxVal];\n const angleExtent = [startAngle, endAngle];\n\n function createPointer(idx: number, angle: number) {\n const itemModel = data.getItemModel(idx);\n const pointerModel = itemModel.getModel('pointer');\n const pointerWidth = parsePercent(pointerModel.get('width'), posInfo.r);\n const pointerLength = parsePercent(pointerModel.get('length'), posInfo.r);\n const pointerStr = seriesModel.get(['pointer', 'icon']);\n const pointerOffset = pointerModel.get('offsetCenter');\n const pointerOffsetX = parsePercent(pointerOffset[0], posInfo.r);\n const pointerOffsetY = parsePercent(pointerOffset[1], posInfo.r);\n const pointerKeepAspect = pointerModel.get('keepAspect');\n\n let pointer;\n // not exist icon type will be set 'rect'\n if (pointerStr) {\n pointer = createSymbol(\n pointerStr,\n pointerOffsetX - pointerWidth / 2,\n pointerOffsetY - pointerLength,\n pointerWidth,\n pointerLength,\n null,\n pointerKeepAspect\n ) as graphic.Path;\n }\n else {\n pointer = new PointerPath({\n shape: {\n angle: -Math.PI / 2,\n width: pointerWidth,\n r: pointerLength,\n x: pointerOffsetX,\n y: pointerOffsetY\n }\n });\n }\n pointer.rotation = -(angle + Math.PI / 2);\n pointer.x = posInfo.cx;\n pointer.y = posInfo.cy;\n return pointer;\n }\n\n function createProgress(idx: number, endAngle: number) {\n const roundCap = progressModel.get('roundCap');\n const ProgressPath = roundCap ? Sausage : graphic.Sector;\n\n const isOverlap = progressModel.get('overlap');\n const progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();\n const r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;\n const r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth;\n const progress = new ProgressPath({\n shape: {\n startAngle: startAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: r0,\n r: r\n }\n });\n isOverlap && (progress.z2 = maxVal - (data.get(valueDim, idx) as number) % maxVal);\n return progress;\n }\n\n if (showProgress || showPointer) {\n data.diff(oldData)\n .add(function (idx) {\n if (showPointer) {\n const pointer = createPointer(idx, startAngle);\n graphic.initProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, idx) as number, valueExtent, angleExtent, true)\n + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(idx, pointer);\n }\n\n if (showProgress) {\n const progress = createProgress(idx, startAngle) as graphic.Sector;\n const isClip = progressModel.get('clip');\n graphic.initProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, idx) as number, valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n setCommonECData(seriesModel.seriesIndex, data.dataType, idx, progress);\n progressList[idx] = progress;\n }\n })\n .update(function (newIdx, oldIdx) {\n if (showPointer) {\n const previousPointer = oldData.getItemGraphicEl(oldIdx) as PointerPath;\n const previousRotate = previousPointer ? previousPointer.rotation : startAngle;\n const pointer = createPointer(newIdx, previousRotate);\n pointer.rotation = previousRotate;\n graphic.updateProps(pointer, {\n rotation: -(\n linearMap(data.get(valueDim, newIdx) as number, valueExtent, angleExtent, true)\n + Math.PI / 2\n )\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(newIdx, pointer);\n }\n\n if (showProgress) {\n const previousProgress = oldProgressData[oldIdx];\n const previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle;\n const progress = createProgress(newIdx, previousEndAngle) as graphic.Sector;\n const isClip = progressModel.get('clip');\n graphic.updateProps(progress, {\n shape: {\n endAngle: linearMap(\n data.get(valueDim, newIdx) as number, valueExtent, angleExtent, isClip\n )\n }\n }, seriesModel);\n group.add(progress);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n setCommonECData(seriesModel.seriesIndex, data.dataType, newIdx, progress);\n progressList[newIdx] = progress;\n }\n })\n .execute();\n\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n if (showPointer) {\n const pointer = data.getItemGraphicEl(idx) as ECSymbol;\n const symbolStyle = data.getItemVisual(idx, 'style');\n const visualColor = symbolStyle.fill;\n if (pointer instanceof ZRImage) {\n const pathStyle = pointer.style;\n pointer.useStyle(extend({\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolStyle));\n }\n else {\n pointer.useStyle(symbolStyle);\n pointer.type !== 'pointer' && pointer.setColor(visualColor);\n }\n\n pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());\n\n\n if (pointer.style.fill === 'auto') {\n pointer.setStyle('fill', getColor(\n linearMap(data.get(valueDim, idx) as number, valueExtent, [0, 1], true)\n ));\n }\n\n (pointer as ECElement).z2EmphasisLift = 0;\n setStatesStylesFromModel(pointer, itemModel);\n enableHoverEmphasis(pointer, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n if (showProgress) {\n const progress = progressList[idx];\n progress.useStyle(data.getItemVisual(idx, 'style'));\n progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle());\n (progress as ECElement).z2EmphasisLift = 0;\n setStatesStylesFromModel(progress, itemModel);\n enableHoverEmphasis(progress, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n });\n\n this._progressEls = progressList;\n }\n }\n\n _renderAnchor(\n seriesModel: GaugeSeriesModel,\n posInfo: PosInfo\n ) {\n const anchorModel = seriesModel.getModel('anchor');\n const showAnchor = anchorModel.get('show');\n if (showAnchor) {\n const anchorSize = anchorModel.get('size');\n const anchorType = anchorModel.get('icon');\n const offsetCenter = anchorModel.get('offsetCenter');\n const anchorKeepAspect = anchorModel.get('keepAspect');\n const anchor = createSymbol(\n anchorType,\n posInfo.cx - anchorSize / 2 + parsePercent(offsetCenter[0], posInfo.r),\n posInfo.cy - anchorSize / 2 + parsePercent(offsetCenter[1], posInfo.r),\n anchorSize,\n anchorSize,\n null,\n anchorKeepAspect\n ) as graphic.Path;\n anchor.z2 = anchorModel.get('showAbove') ? 1 : 0;\n anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle());\n this.group.add(anchor);\n }\n }\n\n _renderTitleAndDetail(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo\n ) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n\n const contentGroup = new graphic.Group();\n\n const newTitleEls: graphic.Text[] = [];\n const newDetailEls: graphic.Text[] = [];\n const hasAnimation = seriesModel.isAnimationEnabled();\n\n const showPointerAbove = seriesModel.get(['pointer', 'showAbove']);\n\n data.diff(this._data)\n .add((idx) => {\n newTitleEls[idx] = new graphic.Text({\n silent: true\n });\n newDetailEls[idx] = new graphic.Text({\n silent: true\n });\n })\n .update((idx, oldIdx) => {\n newTitleEls[idx] = this._titleEls[oldIdx];\n newDetailEls[idx] = this._detailEls[oldIdx];\n })\n .execute();\n\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const value = data.get(valueDim, idx) as number;\n const itemGroup = new graphic.Group();\n const autoColor = getColor(\n linearMap(value, [minVal, maxVal], [0, 1], true)\n );\n\n const itemTitleModel = itemModel.getModel('title');\n if (itemTitleModel.get('show')) {\n const titleOffsetCenter = itemTitleModel.get('offsetCenter');\n const titleX = posInfo.cx + parsePercent(titleOffsetCenter[0], posInfo.r);\n const titleY = posInfo.cy + parsePercent(titleOffsetCenter[1], posInfo.r);\n const labelEl = newTitleEls[idx];\n labelEl.attr({\n z2: showPointerAbove ? 0 : 2,\n style: createTextStyle(itemTitleModel, {\n x: titleX,\n y: titleY,\n text: data.getName(idx),\n align: 'center',\n verticalAlign: 'middle'\n }, {inheritColor: autoColor})\n });\n\n itemGroup.add(labelEl);\n }\n\n const itemDetailModel = itemModel.getModel('detail');\n if (itemDetailModel.get('show')) {\n const detailOffsetCenter = itemDetailModel.get('offsetCenter');\n const detailX = posInfo.cx + parsePercent(detailOffsetCenter[0], posInfo.r);\n const detailY = posInfo.cy + parsePercent(detailOffsetCenter[1], posInfo.r);\n const width = parsePercent(itemDetailModel.get('width'), posInfo.r);\n const height = parsePercent(itemDetailModel.get('height'), posInfo.r);\n const detailColor = (\n seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor\n ) as string;\n const labelEl = newDetailEls[idx];\n const formatter = itemDetailModel.get('formatter');\n labelEl.attr({\n z2: showPointerAbove ? 0 : 2,\n style: createTextStyle(itemDetailModel, {\n x: detailX,\n y: detailY,\n text: formatLabel(value, formatter),\n width: isNaN(width) ? null : width,\n height: isNaN(height) ? null : height,\n align: 'center',\n verticalAlign: 'middle'\n }, {inheritColor: detailColor})\n });\n setLabelValueAnimation(\n labelEl,\n {normal: itemDetailModel},\n value,\n (value: number) => formatLabel(value, formatter)\n );\n hasAnimation && animateLabelValue(labelEl, idx, data, seriesModel, {\n getFormattedLabel(\n labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams\n ) {\n return formatLabel(\n extendParams\n ? extendParams.interpolatedValue as typeof value\n : value,\n formatter\n );\n }\n });\n\n itemGroup.add(labelEl);\n }\n\n contentGroup.add(itemGroup);\n });\n this.group.add(contentGroup);\n\n this._titleEls = newTitleEls;\n this._detailEls = newDetailEls;\n }\n\n}\n\nexport default GaugeView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n CircleLayoutOptionMixin,\n LineStyleOption,\n ColorString,\n LabelOption,\n ItemStyleOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\n\n// [percent, color]\ntype GaugeColorStop = [number, ColorString];\n\ninterface LabelFormatter {\n (value: number): string\n}\n\ninterface PointerOption {\n icon?: string\n show?: boolean\n /**\n * If pointer shows above title and detail\n */\n showAbove?: boolean,\n keepAspect?: boolean\n itemStyle?: ItemStyleOption\n /**\n * Can be percent\n */\n offsetCenter?: (number | string)[]\n length?: number | string\n width?: number\n}\n\ninterface AnchorOption {\n show?: boolean\n showAbove?: boolean\n size?: number\n icon?: string\n offsetCenter?: (number | string)[]\n keepAspect?: boolean\n itemStyle?: ItemStyleOption\n}\n\ninterface ProgressOption {\n show?: boolean\n overlap?: boolean\n width?: number\n roundCap?: boolean\n clip?: boolean\n itemStyle?: ItemStyleOption\n}\n\ninterface TitleOption extends LabelOption {\n /**\n * [x, y] offset\n */\n offsetCenter?: (number | string)[]\n formatter?: LabelFormatter | string\n\n /**\n * If do value animtion.\n */\n valueAnimation?: boolean\n}\n\ninterface DetailOption extends LabelOption {\n /**\n * [x, y] offset\n */\n offsetCenter?: (number | string)[]\n formatter?: LabelFormatter | string\n\n /**\n * If do value animtion.\n */\n valueAnimation?: boolean\n}\n\nexport interface GaugeStateOption {\n itemStyle?: ItemStyleOption\n}\n\nexport interface GaugeDataItemOption extends GaugeStateOption, StatesOptionMixin {\n name?: string\n value?: OptionDataValueNumeric\n pointer?: PointerOption\n progress?: ProgressOption\n title?: TitleOption\n detail?: DetailOption\n}\nexport interface GaugeSeriesOption extends SeriesOption, GaugeStateOption,\n CircleLayoutOptionMixin, SeriesEncodeOptionMixin {\n type?: 'gauge'\n\n // override radius\n radius?: number | string\n\n startAngle?: number\n endAngle?: number\n clockwise?: boolean\n\n min?: number\n max?: number\n\n splitNumber?: number\n\n itemStyle?: ItemStyleOption\n\n axisLine?: {\n show?: boolean\n roundCap?: boolean\n lineStyle?: Omit & {\n color?: GaugeColorStop[]\n }\n },\n\n progress?: ProgressOption\n\n splitLine?: {\n show?: boolean\n /**\n * Can be percent\n */\n length?: number\n distance?: number\n lineStyle?: LineStyleOption\n }\n\n axisTick?: {\n show?: boolean\n splitNumber?: number\n /**\n * Can be percent\n */\n length?: number | string\n distance?: number\n lineStyle?: LineStyleOption\n }\n\n axisLabel?: LabelOption & {\n formatter?: LabelFormatter | string\n }\n\n pointer?: PointerOption\n anchor?: AnchorOption\n\n title?: TitleOption\n detail?: DetailOption\n\n data?: (OptionDataValueNumeric | GaugeDataItemOption)[]\n}\n\nclass GaugeSeriesModel extends SeriesModel {\n\n static type = 'series.gauge' as const;\n type = GaugeSeriesModel.type;\n\n visualStyleAccessPath = 'itemStyle';\n\n getInitialData(option: GaugeSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, ['value']);\n }\n\n static defaultOption: GaugeSeriesOption = {\n zlevel: 0,\n z: 2,\n colorBy: 'data',\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n legendHoverLink: true,\n radius: '75%',\n startAngle: 225,\n endAngle: -45,\n clockwise: true,\n // \u6700\u5C0F\u503C\n min: 0,\n // \u6700\u5927\u503C\n max: 100,\n // \u5206\u5272\u6BB5\u6570\uFF0C\u9ED8\u8BA4\u4E3A10\n splitNumber: 10,\n // \u5750\u6807\u8F74\u7EBF\n axisLine: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: true,\n roundCap: false,\n lineStyle: { // \u5C5E\u6027lineStyle\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n color: [[1, '#E6EBF8']],\n width: 10\n }\n },\n // \u5750\u6807\u8F74\u7EBF\n progress: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: false,\n overlap: true,\n width: 10,\n roundCap: false,\n clip: true\n },\n // \u5206\u9694\u7EBF\n splitLine: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: true,\n // \u5C5E\u6027length\u63A7\u5236\u7EBF\u957F\n length: 10,\n distance: 10,\n // \u5C5E\u6027lineStyle\uFF08\u8BE6\u89C1lineStyle\uFF09\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n lineStyle: {\n color: '#63677A',\n width: 3,\n type: 'solid'\n }\n },\n // \u5750\u6807\u8F74\u5C0F\u6807\u8BB0\n axisTick: {\n // \u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\uFF0C\u9ED8\u8BA4\u4E0D\u663E\u793A\n show: true,\n // \u6BCF\u4EFDsplit\u7EC6\u5206\u591A\u5C11\u6BB5\n splitNumber: 5,\n // \u5C5E\u6027length\u63A7\u5236\u7EBF\u957F\n length: 6,\n distance: 10,\n // \u5C5E\u6027lineStyle\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n lineStyle: {\n color: '#63677A',\n width: 1,\n type: 'solid'\n }\n },\n axisLabel: {\n show: true,\n distance: 15,\n // formatter: null,\n color: '#464646',\n fontSize: 12\n },\n pointer: {\n icon: null,\n offsetCenter: [0, 0],\n show: true,\n showAbove: true,\n length: '60%',\n width: 6,\n keepAspect: false\n },\n anchor: {\n show: false,\n showAbove: false,\n size: 6,\n icon: 'circle',\n offsetCenter: [0, 0],\n keepAspect: false,\n itemStyle: {\n color: '#fff',\n borderWidth: 0,\n borderColor: '#5470c6'\n }\n },\n\n title: {\n show: true,\n // x, y\uFF0C\u5355\u4F4Dpx\n offsetCenter: [0, '20%'],\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#464646',\n fontSize: 16,\n valueAnimation: false\n },\n detail: {\n show: true,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 0,\n borderColor: '#ccc',\n width: 100,\n height: null, // self-adaption\n padding: [5, 10],\n // x, y\uFF0C\u5355\u4F4Dpx\n offsetCenter: [0, '40%'],\n // formatter: null,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#464646',\n fontSize: 30,\n fontWeight: 'bold',\n lineHeight: 30,\n valueAnimation: false\n }\n };\n}\n\n\nexport default GaugeSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport GaugeView from './GaugeView';\nimport GaugeSeriesModel from './GaugeSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(GaugeView);\n registers.registerSeriesModel(GaugeSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport FunnelSeriesModel, {FunnelDataItemOption} from './FunnelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString } from '../../util/types';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst opacityAccessPath = ['itemStyle', 'opacity'] as const;\n\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\nclass FunnelPiece extends graphic.Polygon {\n\n constructor(data: SeriesData, idx: number) {\n super();\n\n const polygon = this;\n const labelLine = new graphic.Polyline();\n const text = new graphic.Text();\n polygon.setTextContent(text);\n this.setTextGuideLine(labelLine);\n\n this.updateData(data, idx, true);\n }\n\n updateData(data: SeriesData, idx: number, firstCreate?: boolean) {\n\n const polygon = this;\n\n const seriesModel = data.hostModel;\n const itemModel = data.getItemModel(idx);\n const layout = data.getItemLayout(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n let opacity = itemModel.get(opacityAccessPath);\n opacity = opacity == null ? 1 : opacity;\n\n if (!firstCreate) {\n saveOldStyle(polygon);\n }\n // Update common style\n polygon.useStyle(data.getItemVisual(idx, 'style'));\n polygon.style.lineJoin = 'round';\n\n if (firstCreate) {\n polygon.setShape({\n points: layout.points\n });\n polygon.style.opacity = 0;\n graphic.initProps(polygon, {\n style: {\n opacity: opacity\n }\n }, seriesModel, idx);\n }\n else {\n graphic.updateProps(polygon, {\n style: {\n opacity: opacity\n },\n shape: {\n points: layout.points\n }\n }, seriesModel, idx);\n }\n\n setStatesStylesFromModel(polygon, itemModel);\n\n this._updateLabel(data, idx);\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n _updateLabel(data: SeriesData, idx: number) {\n const polygon = this;\n const labelLine = this.getTextGuideLine();\n const labelText = polygon.getTextContent();\n\n const seriesModel = data.hostModel;\n const itemModel = data.getItemModel(idx);\n const layout = data.getItemLayout(idx);\n const labelLayout = layout.label;\n const style = data.getItemVisual(idx, 'style');\n const visualColor = style.fill as ColorString;\n\n setLabelStyle(\n // position will not be used in setLabelStyle\n labelText,\n getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel as FunnelSeriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: data.getName(idx)\n },\n { normal: {\n align: labelLayout.textAlign,\n verticalAlign: labelLayout.verticalAlign\n } }\n );\n\n polygon.setTextConfig({\n local: true,\n inside: !!labelLayout.inside,\n insideStroke: visualColor,\n // insideFill: 'auto',\n outsideFill: visualColor\n });\n\n const linePoints = labelLayout.linePoints;\n\n labelLine.setShape({\n points: linePoints\n });\n\n polygon.textGuideLineConfig = {\n anchor: linePoints ? new graphic.Point(linePoints[0][0], linePoints[0][1]) : null\n };\n\n // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n graphic.updateProps(labelText, {\n style: {\n x: labelLayout.x,\n y: labelLayout.y\n }\n }, seriesModel, idx);\n\n labelText.attr({\n rotation: labelLayout.rotation,\n originX: labelLayout.x,\n originY: labelLayout.y,\n z2: 10\n });\n\n setLabelLineStyle(polygon, getLabelLineStatesModels(itemModel), {\n // Default use item visual color\n stroke: visualColor\n });\n }\n}\n\nclass FunnelView extends ChartView {\n static type = 'funnel' as const;\n type = FunnelView.type;\n\n private _data: SeriesData;\n\n ignoreLabelLineUpdate = true;\n\n render(seriesModel: FunnelSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const group = this.group;\n\n data.diff(oldData)\n .add(function (idx) {\n const funnelPiece = new FunnelPiece(data, idx);\n\n data.setItemGraphicEl(idx, funnelPiece);\n\n group.add(funnelPiece);\n })\n .update(function (newIdx, oldIdx) {\n const piece = oldData.getItemGraphicEl(oldIdx) as FunnelPiece;\n\n piece.updateData(data, newIdx);\n\n group.add(piece);\n data.setItemGraphicEl(newIdx, piece);\n })\n .remove(function (idx) {\n const piece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piece, seriesModel, idx);\n })\n .execute();\n\n this._data = data;\n }\n\n remove() {\n this.group.removeAll();\n this._data = null;\n }\n\n dispose() {}\n}\n\n\nexport default FunnelView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport {defaultEmphasis} from '../../util/model';\nimport {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n HorizontalAlign,\n LabelOption,\n LabelLineOption,\n ItemStyleOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n OptionDataItemObject,\n LayoutOrient,\n VerticalAlign,\n SeriesLabelOption,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\n\ntype FunnelLabelOption = Omit & {\n position?: LabelOption['position']\n | 'outer' | 'inner' | 'center' | 'rightTop' | 'rightBottom' | 'leftTop' | 'leftBottom'\n};\n\nexport interface FunnelStateOption {\n itemStyle?: ItemStyleOption\n label?: FunnelLabelOption\n labelLine?: LabelLineOption\n}\n\nexport interface FunnelDataItemOption\n extends FunnelStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n itemStyle?: ItemStyleOption & {\n width?: number | string\n height?: number | string\n }\n}\n\nexport interface FunnelSeriesOption extends SeriesOption, FunnelStateOption,\n BoxLayoutOptionMixin, SeriesEncodeOptionMixin {\n type?: 'funnel'\n\n min?: number\n max?: number\n\n /**\n * Absolute number or percent string\n */\n minSize?: number | string\n maxSize?: number | string\n\n sort?: 'ascending' | 'descending' | 'none'\n\n orient?: LayoutOrient\n\n gap?: number\n\n funnelAlign?: HorizontalAlign | VerticalAlign\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | FunnelDataItemOption)[]\n}\n\nclass FunnelSeriesModel extends SeriesModel {\n static type = 'series.funnel' as const;\n type = FunnelSeriesModel.type;\n\n init(option: FunnelSeriesOption) {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n // Extend labelLine emphasis\n this._defaultLabelLine(option);\n }\n\n getInitialData(this: FunnelSeriesModel, option: FunnelSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n }\n\n _defaultLabelLine(option: FunnelSeriesOption) {\n // Extend labelLine emphasis\n defaultEmphasis(option, 'labelLine', ['show']);\n\n const labelLineNormalOpt = option.labelLine;\n const labelLineEmphasisOpt = option.emphasis.labelLine;\n // Not show label line if `label.normal.show = false`\n labelLineNormalOpt.show = labelLineNormalOpt.show\n && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show\n && option.emphasis.label.show;\n }\n\n // Overwrite\n getDataParams(dataIndex: number) {\n const data = this.getData();\n const params = super.getDataParams(dataIndex);\n const valueDim = data.mapDimension('value');\n const sum = data.getSum(valueDim);\n // Percent is 0 if sum is 0\n params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) as number / sum * 100).toFixed(2);\n\n params.$vars.push('percent');\n return params;\n }\n\n static defaultOption: FunnelSeriesOption = {\n zlevel: 0, // \u4E00\u7EA7\u5C42\u53E0\n z: 2, // \u4E8C\u7EA7\u5C42\u53E0\n legendHoverLink: true,\n colorBy: 'data',\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n\n // \u9ED8\u8BA4\u53D6\u6570\u636E\u6700\u5C0F\u6700\u5927\u503C\n // min: 0,\n // max: 100,\n minSize: '0%',\n maxSize: '100%',\n sort: 'descending', // 'ascending', 'descending'\n orient: 'vertical',\n gap: 0,\n funnelAlign: 'center',\n label: {\n show: true,\n position: 'outer'\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n },\n labelLine: {\n show: true,\n length: 20,\n lineStyle: {\n // color: \u5404\u5F02,\n width: 1\n }\n },\n itemStyle: {\n // color: \u5404\u5F02,\n borderColor: '#fff',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n\n}\n\nexport default FunnelSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as layout from '../../util/layout';\nimport {parsePercent, linearMap} from '../../util/number';\nimport FunnelSeriesModel, { FunnelSeriesOption, FunnelDataItemOption } from './FunnelSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\n\nfunction getViewRect(seriesModel: FunnelSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nfunction getSortedIndices(data: SeriesData, sort: FunnelSeriesOption['sort']) {\n const valueDim = data.mapDimension('value');\n const valueArr = data.mapArray(valueDim, function (val: number) {\n return val;\n });\n const indices: number[] = [];\n const isAscending = sort === 'ascending';\n for (let i = 0, len = data.count(); i < len; i++) {\n indices[i] = i;\n }\n\n // Add custom sortable function & none sortable opetion by \"options.sort\"\n if (typeof sort === 'function') {\n indices.sort(sort);\n }\n else if (sort !== 'none') {\n indices.sort(function (a, b) {\n return isAscending\n ? valueArr[a] - valueArr[b]\n : valueArr[b] - valueArr[a];\n });\n }\n return indices;\n}\n\nfunction labelLayout(data: SeriesData) {\n const seriesModel = data.hostModel;\n const orient = seriesModel.get('orient');\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const labelModel = itemModel.getModel('label');\n let labelPosition = labelModel.get('position');\n\n const labelLineModel = itemModel.getModel('labelLine');\n\n const layout = data.getItemLayout(idx);\n const points = layout.points;\n\n const isLabelInside = labelPosition === 'inner'\n || labelPosition === 'inside' || labelPosition === 'center'\n || labelPosition === 'insideLeft' || labelPosition === 'insideRight';\n\n let textAlign;\n let textX;\n let textY;\n let linePoints;\n\n if (isLabelInside) {\n if (labelPosition === 'insideLeft') {\n textX = (points[0][0] + points[3][0]) / 2 + 5;\n textY = (points[0][1] + points[3][1]) / 2;\n textAlign = 'left';\n }\n else if (labelPosition === 'insideRight') {\n textX = (points[1][0] + points[2][0]) / 2 - 5;\n textY = (points[1][1] + points[2][1]) / 2;\n textAlign = 'right';\n }\n else {\n textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;\n textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;\n textAlign = 'center';\n }\n linePoints = [\n [textX, textY], [textX, textY]\n ];\n }\n else {\n let x1;\n let y1;\n let x2;\n let y2;\n const labelLineLen = labelLineModel.get('length');\n if (__DEV__) {\n if (orient === 'vertical' && ['top', 'bottom'].indexOf(labelPosition as string) > -1) {\n labelPosition = 'left';\n console.warn('Position error: Funnel chart on vertical orient dose not support top and bottom.');\n }\n if (orient === 'horizontal' && ['left', 'right'].indexOf(labelPosition as string) > -1) {\n labelPosition = 'bottom';\n console.warn('Position error: Funnel chart on horizontal orient dose not support left and right.');\n }\n }\n if (labelPosition === 'left') {\n // Left side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n else if (labelPosition === 'right') {\n // Right side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n else if (labelPosition === 'top') {\n // Top side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else if (labelPosition === 'bottom') {\n // Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else if (labelPosition === 'rightTop') {\n // RightTop side\n x1 = orient === 'horizontal' ? points[3][0] : points[1][0];\n y1 = orient === 'horizontal' ? points[3][1] : points[1][1];\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'top';\n }\n }\n else if (labelPosition === 'rightBottom') {\n // RightBottom side\n x1 = points[2][0];\n y1 = points[2][1];\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'bottom';\n }\n }\n else if (labelPosition === 'leftTop') {\n // LeftTop side\n x1 = points[0][0];\n y1 = orient === 'horizontal' ? points[0][1] : points[1][1];\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n }\n else if (labelPosition === 'leftBottom') {\n // LeftBottom side\n x1 = orient === 'horizontal' ? points[1][0] : points[3][0];\n y1 = orient === 'horizontal' ? points[1][1] : points[2][1];\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n }\n else {\n // Right side or Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n }\n if (orient === 'horizontal') {\n x2 = x1;\n textX = x2;\n }\n else {\n y2 = y1;\n textY = y2;\n }\n linePoints = [[x1, y1], [x2, y2]];\n }\n\n layout.label = {\n linePoints: linePoints,\n x: textX,\n y: textY,\n verticalAlign: 'middle',\n textAlign: textAlign,\n inside: isLabelInside\n };\n });\n}\n\nexport default function funnelLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('funnel', function (seriesModel: FunnelSeriesModel) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const sort = seriesModel.get('sort');\n const viewRect = getViewRect(seriesModel, api);\n const orient = seriesModel.get('orient');\n const viewWidth = viewRect.width;\n const viewHeight = viewRect.height;\n let indices = getSortedIndices(data, sort);\n let x = viewRect.x;\n let y = viewRect.y;\n\n const sizeExtent = orient === 'horizontal' ? [\n parsePercent(seriesModel.get('minSize'), viewHeight),\n parsePercent(seriesModel.get('maxSize'), viewHeight)\n ] : [\n parsePercent(seriesModel.get('minSize'), viewWidth),\n parsePercent(seriesModel.get('maxSize'), viewWidth)\n ];\n const dataExtent = data.getDataExtent(valueDim);\n let min = seriesModel.get('min');\n let max = seriesModel.get('max');\n if (min == null) {\n min = Math.min(dataExtent[0], 0);\n }\n if (max == null) {\n max = dataExtent[1];\n }\n\n const funnelAlign = seriesModel.get('funnelAlign');\n let gap = seriesModel.get('gap');\n const viewSize = orient === 'horizontal' ? viewWidth : viewHeight;\n let itemSize = (viewSize - gap * (data.count() - 1)) / data.count();\n\n const getLinePoints = function (idx: number, offset: number) {\n // End point index is data.count() and we assign it 0\n if (orient === 'horizontal') {\n const val = data.get(valueDim, idx) as number || 0;\n const itemHeight = linearMap(val, [min, max], sizeExtent, true);\n let y0;\n switch (funnelAlign) {\n case 'top':\n y0 = y;\n break;\n case 'center':\n y0 = y + (viewHeight - itemHeight) / 2;\n break;\n case 'bottom':\n y0 = y + (viewHeight - itemHeight);\n break;\n }\n\n return [\n [offset, y0],\n [offset, y0 + itemHeight]\n ];\n }\n const val = data.get(valueDim, idx) as number || 0;\n const itemWidth = linearMap(val, [min, max], sizeExtent, true);\n let x0;\n switch (funnelAlign) {\n case 'left':\n x0 = x;\n break;\n case 'center':\n x0 = x + (viewWidth - itemWidth) / 2;\n break;\n case 'right':\n x0 = x + viewWidth - itemWidth;\n break;\n }\n return [\n [x0, offset],\n [x0 + itemWidth, offset]\n ];\n };\n\n if (sort === 'ascending') {\n // From bottom to top\n itemSize = -itemSize;\n gap = -gap;\n if (orient === 'horizontal') {\n x += viewWidth;\n }\n else {\n y += viewHeight;\n }\n indices = indices.reverse();\n }\n\n for (let i = 0; i < indices.length; i++) {\n const idx = indices[i];\n const nextIdx = indices[i + 1];\n const itemModel = data.getItemModel(idx);\n\n if (orient === 'horizontal') {\n let width = itemModel.get(['itemStyle', 'width']);\n if (width == null) {\n width = itemSize;\n }\n else {\n width = parsePercent(width, viewWidth);\n if (sort === 'ascending') {\n width = -width;\n }\n }\n\n const start = getLinePoints(idx, x);\n const end = getLinePoints(nextIdx, x + width);\n\n x += width + gap;\n\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n else {\n let height = itemModel.get(['itemStyle', 'height']);\n if (height == null) {\n height = itemSize;\n }\n else {\n height = parsePercent(height, viewHeight);\n if (sort === 'ascending') {\n height = -height;\n }\n }\n\n const start = getLinePoints(idx, y);\n const end = getLinePoints(nextIdx, y + height);\n\n y += height + gap;\n\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n }\n\n labelLayout(data);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport FunnelView from './FunnelView';\nimport FunnelSeriesModel from './FunnelSeries';\nimport funnelLayout from './funnelLayout';\nimport dataFilter from '../../processor/dataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(FunnelView);\n registers.registerSeriesModel(FunnelSeriesModel);\n registers.registerLayout(funnelLayout);\n registers.registerProcessor(dataFilter('funnel'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport SeriesData from '../../data/SeriesData';\nimport ParallelSeriesModel, { ParallelSeriesDataItemOption } from './ParallelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { StageHandlerProgressParams, ParsedValue, Payload } from '../../util/types';\nimport Parallel from '../../coord/parallel/Parallel';\nimport { OptionAxisType } from '../../coord/axisCommonTypes';\nimport { numericToNumber } from '../../util/number';\nimport { eqNaN } from 'zrender/src/core/util';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst DEFAULT_SMOOTH = 0.3;\n\ninterface ParallelDrawSeriesScope {\n smooth: number\n}\nclass ParallelView extends ChartView {\n static type = 'parallel';\n type = ParallelView.type;\n\n private _dataGroup = new graphic.Group();\n\n private _data: SeriesData;\n\n private _initialized = false;\n\n init() {\n this.group.add(this._dataGroup);\n }\n\n /**\n * @override\n */\n render(\n seriesModel: ParallelSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const dataGroup = this._dataGroup;\n const data = seriesModel.getData();\n const oldData = this._data;\n const coordSys = seriesModel.coordinateSystem;\n const dimensions = coordSys.dimensions;\n const seriesScope = makeSeriesScope(seriesModel);\n\n data.diff(oldData)\n .add(add)\n .update(update)\n .remove(remove)\n .execute();\n\n function add(newDataIndex: number) {\n const line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function update(newDataIndex: number, oldDataIndex: number) {\n const line = oldData.getItemGraphicEl(oldDataIndex) as graphic.Polyline;\n\n const points = createLinePoints(data, newDataIndex, dimensions, coordSys);\n data.setItemGraphicEl(newDataIndex, line);\n\n graphic.updateProps(line, {shape: {points: points}}, seriesModel, newDataIndex);\n\n saveOldStyle(line);\n\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function remove(oldDataIndex: number) {\n const line = oldData.getItemGraphicEl(oldDataIndex);\n dataGroup.remove(line);\n }\n\n // First create\n if (!this._initialized) {\n this._initialized = true;\n const clipPath = createGridClipShape(\n coordSys, seriesModel, function () {\n // Callback will be invoked immediately if there is no animation\n setTimeout(function () {\n dataGroup.removeClipPath();\n });\n }\n );\n dataGroup.setClipPath(clipPath);\n }\n\n this._data = data;\n }\n\n incrementalPrepareRender(seriesModel: ParallelSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._initialized = true;\n this._data = null;\n this._dataGroup.removeAll();\n }\n\n incrementalRender(taskParams: StageHandlerProgressParams, seriesModel: ParallelSeriesModel, ecModel: GlobalModel) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n const dimensions = coordSys.dimensions;\n const seriesScope = makeSeriesScope(seriesModel);\n\n for (let dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) {\n const line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys);\n line.incremental = true;\n updateElCommon(line, data, dataIndex, seriesScope);\n }\n }\n\n remove() {\n this._dataGroup && this._dataGroup.removeAll();\n this._data = null;\n }\n}\n\nfunction createGridClipShape(coordSys: Parallel, seriesModel: ParallelSeriesModel, cb: () => void) {\n const parallelModel = coordSys.model;\n const rect = coordSys.getRect();\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n\n const dim = parallelModel.get('layout') === 'horizontal' ? 'width' as const : 'height' as const;\n rectEl.setShape(dim, 0);\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width,\n height: rect.height\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nfunction createLinePoints(data: SeriesData, dataIndex: number, dimensions: string[], coordSys: Parallel) {\n const points = [];\n for (let i = 0; i < dimensions.length; i++) {\n const dimName = dimensions[i];\n const value = data.get(data.mapDimension(dimName), dataIndex);\n if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {\n points.push(coordSys.dataToPoint(value, dimName));\n }\n }\n return points;\n}\n\nfunction addEl(data: SeriesData, dataGroup: graphic.Group, dataIndex: number, dimensions: string[], coordSys: Parallel) {\n const points = createLinePoints(data, dataIndex, dimensions, coordSys);\n const line = new graphic.Polyline({\n shape: {points: points},\n // silent: true,\n z2: 10\n });\n dataGroup.add(line);\n data.setItemGraphicEl(dataIndex, line);\n return line;\n}\n\nfunction makeSeriesScope(seriesModel: ParallelSeriesModel): ParallelDrawSeriesScope {\n let smooth = seriesModel.get('smooth', true);\n smooth === true && (smooth = DEFAULT_SMOOTH);\n smooth = numericToNumber(smooth);\n eqNaN(smooth) && (smooth = 0);\n\n return { smooth };\n}\n\nfunction updateElCommon(\n el: graphic.Polyline,\n data: SeriesData,\n dataIndex: number,\n seriesScope: ParallelDrawSeriesScope\n) {\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.fill = null;\n el.setShape('smooth', seriesScope.smooth);\n\n const itemModel = data.getItemModel(dataIndex);\n const emphasisModel = itemModel.getModel('emphasis');\n setStatesStylesFromModel(el, itemModel, 'lineStyle');\n\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n}\n\n// function simpleDiff(oldData, newData, dimensions) {\n// let oldLen;\n// if (!oldData\n// || !oldData.__plProgressive\n// || (oldLen = oldData.count()) !== newData.count()\n// ) {\n// return true;\n// }\n\n// let dimLen = dimensions.length;\n// for (let i = 0; i < oldLen; i++) {\n// for (let j = 0; j < dimLen; j++) {\n// if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {\n// return true;\n// }\n// }\n// }\n\n// return false;\n// }\n\n// FIXME put in common util?\nfunction isEmptyValue(val: ParsedValue, axisType: OptionAxisType) {\n return axisType === 'category'\n ? val == null\n : (val == null || isNaN(val as number)); // axisType === 'value'\n}\n\nexport default ParallelView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {each, bind} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport {\n SeriesOption,\n SeriesEncodeOptionMixin,\n LineStyleOption,\n SeriesLabelOption,\n SeriesTooltipOption,\n DimensionName,\n OptionDataValue,\n StatesOptionMixin,\n OptionEncodeValue,\n Dictionary,\n OptionEncode\n } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { ParallelActiveState, ParallelAxisOption } from '../../coord/parallel/AxisModel';\nimport Parallel from '../../coord/parallel/Parallel';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\n\ntype ParallelSeriesDataValue = OptionDataValue[];\n\nexport interface ParallelStateOption {\n lineStyle?: LineStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface ParallelSeriesDataItemOption extends ParallelStateOption, StatesOptionMixin {\n value?: ParallelSeriesDataValue[]\n}\n\nexport interface ParallelSeriesOption extends\n SeriesOption, ParallelStateOption,\n SeriesEncodeOptionMixin {\n\n type?: 'parallel';\n\n coordinateSystem?: string;\n parallelIndex?: number;\n parallelId?: string;\n\n inactiveOpacity?: number;\n activeOpacity?: number;\n\n smooth?: boolean | number;\n realtime?: boolean;\n tooltip?: SeriesTooltipOption;\n\n parallelAxisDefault?: ParallelAxisOption;\n\n emphasis?: {\n label?: SeriesLabelOption;\n lineStyle?: LineStyleOption;\n }\n\n data?: (ParallelSeriesDataValue | ParallelSeriesDataItemOption)[]\n}\n\nclass ParallelSeriesModel extends SeriesModel {\n\n static type = 'series.parallel';\n readonly type = ParallelSeriesModel.type;\n\n static dependencies = ['parallel'];\n\n visualStyleAccessPath = 'lineStyle';\n visualDrawType = 'stroke' as const;\n\n coordinateSystem: Parallel;\n\n\n getInitialData(this: ParallelSeriesModel, option: ParallelSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: bind(makeDefaultEncode, null, this)\n });\n }\n\n /**\n * User can get data raw indices on 'axisAreaSelected' event received.\n *\n * @return Raw indices\n */\n getRawIndicesByActiveState(activeState: ParallelActiveState): number[] {\n const coordSys = this.coordinateSystem;\n const data = this.getData();\n const indices = [] as number[];\n\n coordSys.eachActiveState(data, function (theActiveState, dataIndex) {\n if (activeState === theActiveState) {\n indices.push(data.getRawIndex(dataIndex));\n }\n });\n\n return indices;\n }\n\n static defaultOption: ParallelSeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'parallel',\n parallelIndex: 0,\n\n label: {\n show: false\n },\n\n inactiveOpacity: 0.05,\n activeOpacity: 1,\n\n lineStyle: {\n width: 1,\n opacity: 0.45,\n type: 'solid'\n },\n emphasis: {\n label: {\n show: false\n }\n },\n\n progressive: 500,\n smooth: false, // true | false | number\n\n animationEasing: 'linear'\n };\n\n}\n\nfunction makeDefaultEncode(seriesModel: ParallelSeriesModel): OptionEncode {\n // The mapping of parallelAxis dimension to data dimension can\n // be specified in parallelAxis.option.dim. For example, if\n // parallelAxis.option.dim is 'dim3', it mapping to the third\n // dimension of data. But `data.encode` has higher priority.\n // Moreover, parallelModel.dimension should not be regarded as data\n // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];\n\n const parallelModel = seriesModel.ecModel.getComponent(\n 'parallel', seriesModel.get('parallelIndex')\n ) as ParallelModel;\n if (!parallelModel) {\n return;\n }\n\n const encodeDefine: Dictionary = {};\n each(parallelModel.dimensions, function (axisDim) {\n const dataDimIndex = convertDimNameToNumber(axisDim);\n encodeDefine[axisDim] = dataDimIndex;\n });\n\n return encodeDefine;\n}\n\nfunction convertDimNameToNumber(dimName: DimensionName): number {\n return +dimName.replace('dim', '');\n}\n\nexport default ParallelSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport ParallelSeriesModel, { ParallelSeriesOption } from './ParallelSeries';\nimport { StageHandler } from '../../util/types';\n\n\nconst opacityAccessPath = ['lineStyle', 'opacity'] as const;\n\nconst parallelVisual: StageHandler = {\n\n seriesType: 'parallel',\n\n reset: function (seriesModel: ParallelSeriesModel, ecModel) {\n\n const coordSys = seriesModel.coordinateSystem;\n\n const opacityMap = {\n normal: seriesModel.get(['lineStyle', 'opacity']),\n active: seriesModel.get('activeOpacity'),\n inactive: seriesModel.get('inactiveOpacity')\n };\n\n return {\n progress(params, data) {\n coordSys.eachActiveState(data, function (activeState, dataIndex) {\n let opacity = opacityMap[activeState];\n if (activeState === 'normal' && data.hasItemOption) {\n const itemOpacity = data.getItemModel(dataIndex).get(\n opacityAccessPath, true\n );\n itemOpacity != null && (opacity = itemOpacity);\n }\n const existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n existsStyle.opacity = opacity;\n }, params.start, params.end);\n }\n };\n }\n};\n\nexport default parallelVisual;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { ECUnitOption, SeriesOption } from '../../util/types';\nimport { ParallelAxisOption } from './AxisModel';\nimport { ParallelSeriesOption } from '../../chart/parallel/ParallelSeries';\n\nexport default function parallelPreprocessor(option: ECUnitOption): void {\n createParallelIfNeeded(option);\n mergeAxisOptionFromParallel(option);\n}\n\n/**\n * Create a parallel coordinate if not exists.\n * @inner\n */\nfunction createParallelIfNeeded(option: ECUnitOption): void {\n if (option.parallel) {\n return;\n }\n\n let hasParallelSeries = false;\n\n zrUtil.each(option.series, function (seriesOpt: SeriesOption) {\n if (seriesOpt && seriesOpt.type === 'parallel') {\n hasParallelSeries = true;\n }\n });\n\n if (hasParallelSeries) {\n option.parallel = [{}];\n }\n}\n\n/**\n * Merge aixs definition from parallel option (if exists) to axis option.\n * @inner\n */\nfunction mergeAxisOptionFromParallel(option: ECUnitOption): void {\n const axes = modelUtil.normalizeToArray(option.parallelAxis) as ParallelAxisOption[];\n\n zrUtil.each(axes, function (axisOption) {\n if (!zrUtil.isObject(axisOption)) {\n return;\n }\n\n const parallelIndex = axisOption.parallelIndex || 0;\n const parallelOption = modelUtil.normalizeToArray(option.parallel)[parallelIndex] as ParallelSeriesOption;\n\n if (parallelOption && parallelOption.parallelAxisDefault) {\n zrUtil.merge(axisOption, parallelOption.parallelAxisDefault, false);\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport ParallelModel, { ParallelCoordinateSystemOption } from '../../coord/parallel/ParallelModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ComponentView from '../../view/Component';\nimport { ElementEventName } from 'zrender/src/core/types';\nimport { ElementEvent } from 'zrender/src/Element';\nimport { ParallelAxisExpandPayload } from '../axis/parallelAxisAction';\nimport { each, bind, extend } from 'zrender/src/core/util';\nimport { ThrottleController, createOrUpdate } from '../../util/throttle';\n\nconst CLICK_THRESHOLD = 5; // > 4\n\nclass ParallelView extends ComponentView {\n static type = 'parallel';\n readonly type = ParallelView.type;\n // @internal\n _model: ParallelModel;\n private _api: ExtensionAPI;\n // @internal\n _mouseDownPoint: number[];\n private _handlers: Partial>;\n render(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n this._model = parallelModel;\n this._api = api;\n if (!this._handlers) {\n this._handlers = {};\n each(handlers, function (handler: ElementEventHandler, eventName) {\n api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this) as ElementEventHandler);\n }, this);\n }\n createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');\n }\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {\n each(this._handlers, function (handler: ElementEventHandler, eventName) {\n api.getZr().off(eventName, handler);\n });\n this._handlers = null;\n }\n /**\n * @internal\n * @param {Object} [opt] If null, cancle the last action triggering for debounce.\n */\n _throttledDispatchExpand(this: ParallelView, opt: Omit): void {\n this._dispatchExpand(opt);\n }\n /**\n * @internal\n */\n _dispatchExpand(opt: Omit) {\n opt && this._api.dispatchAction(extend({ type: 'parallelAxisExpand' }, opt));\n }\n}\ntype ElementEventHandler = (this: ParallelView, e: ElementEvent) => void;\nconst handlers: Partial> = {\n mousedown: function (e) {\n if (checkTrigger(this, 'click')) {\n this._mouseDownPoint = [e.offsetX, e.offsetY];\n }\n },\n mouseup: function (e) {\n const mouseDownPoint = this._mouseDownPoint;\n if (checkTrigger(this, 'click') && mouseDownPoint) {\n const point = [e.offsetX, e.offsetY];\n const dist = Math.pow(mouseDownPoint[0] - point[0], 2)\n + Math.pow(mouseDownPoint[1] - point[1], 2);\n if (dist > CLICK_THRESHOLD) {\n return;\n }\n const result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n result.behavior !== 'none' && this._dispatchExpand({\n axisExpandWindow: result.axisExpandWindow\n });\n }\n this._mouseDownPoint = null;\n },\n mousemove: function (e) {\n // Should do nothing when brushing.\n if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {\n return;\n }\n const model = this._model;\n const result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n const behavior = result.behavior;\n behavior === 'jump'\n && (this._throttledDispatchExpand as ParallelView['_throttledDispatchExpand'] & ThrottleController)\n .debounceNextCall(model.get('axisExpandDebounce'));\n this._throttledDispatchExpand(behavior === 'none'\n ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.\n : {\n axisExpandWindow: result.axisExpandWindow,\n // Jumping uses animation, and sliding suppresses animation.\n animation: behavior === 'jump' ? null : {\n duration: 0 // Disable animation.\n }\n });\n }\n};\nfunction checkTrigger(view: ParallelView, triggerOn: ParallelCoordinateSystemOption['axisExpandTriggerOn']): boolean {\n const model = view._model;\n return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;\n}\n\nexport default ParallelView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport Parallel from './Parallel';\nimport { DimensionName, ComponentOption, BoxLayoutOptionMixin } from '../../util/types';\nimport ParallelAxisModel, { ParallelAxisOption } from './AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport SeriesModel from '../../model/Series';\n\n\nexport type ParallelLayoutDirection = 'horizontal' | 'vertical';\n\nexport interface ParallelCoordinateSystemOption extends ComponentOption, BoxLayoutOptionMixin {\n mainType?: 'parallel';\n\n layout?: ParallelLayoutDirection;\n\n axisExpandable?: boolean;\n axisExpandCenter?: number;\n axisExpandCount?: number;\n axisExpandWidth?: number; // TODO '10%' ?\n axisExpandTriggerOn?: 'click' | 'mousemove';\n\n // Not ready to expose to users yet.\n axisExpandRate?: number;\n // Not ready to expose to users yet.\n axisExpandDebounce?: number;\n // Not ready to expose to users yet.\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea?: [number, number, number];\n // Not ready to expose to users yet.\n axisExpandWindow?: number[];\n\n parallelAxisDefault?: ParallelAxisOption\n}\n\nclass ParallelModel extends ComponentModel {\n\n static type = 'parallel';\n readonly type = ParallelModel.type;\n\n static dependencies = ['parallelAxis'];\n\n coordinateSystem: Parallel;\n\n /**\n * Each item like: 'dim0', 'dim1', 'dim2', ...\n */\n dimensions: DimensionName[];\n\n /**\n * Coresponding to dimensions.\n */\n parallelAxisIndex: number[];\n\n static layoutMode = 'box' as const;\n\n static defaultOption: ParallelCoordinateSystemOption = {\n zlevel: 0,\n z: 0,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n\n layout: 'horizontal', // 'horizontal' or 'vertical'\n\n // FIXME\n // naming?\n axisExpandable: false,\n axisExpandCenter: null,\n axisExpandCount: 0,\n axisExpandWidth: 50, // FIXME '10%' ?\n axisExpandRate: 17,\n axisExpandDebounce: 50,\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],\n axisExpandTriggerOn: 'click', // 'mousemove' or 'click'\n\n parallelAxisDefault: null\n };\n\n init() {\n super.init.apply(this, arguments as any);\n this.mergeOption({});\n }\n\n mergeOption(newOption: ParallelCoordinateSystemOption) {\n const thisOption = this.option;\n\n newOption && zrUtil.merge(thisOption, newOption, true);\n\n this._initDimensions();\n }\n\n /**\n * Whether series or axis is in this coordinate system.\n */\n contains(model: SeriesModel | ParallelAxisModel, ecModel: GlobalModel): boolean {\n const parallelIndex = (model as ParallelSeriesModel).get('parallelIndex');\n return parallelIndex != null\n && ecModel.getComponent('parallel', parallelIndex) === this;\n }\n\n setAxisExpand(opt: {\n axisExpandable?: boolean,\n axisExpandCenter?: number,\n axisExpandCount?: number,\n axisExpandWidth?: number,\n axisExpandWindow?: number[]\n }): void {\n zrUtil.each(\n [\n 'axisExpandable',\n 'axisExpandCenter',\n 'axisExpandCount',\n 'axisExpandWidth',\n 'axisExpandWindow'\n ] as const,\n function (name) {\n if (opt.hasOwnProperty(name)) {\n // @ts-ignore FIXME: why \"never\" inferred in this.option[name]?\n this.option[name] = opt[name];\n }\n },\n this\n );\n }\n\n private _initDimensions(): void {\n const dimensions = this.dimensions = [] as DimensionName[];\n const parallelAxisIndex = this.parallelAxisIndex = [] as number[];\n\n const axisModels = zrUtil.filter(\n this.ecModel.queryComponents({ mainType: 'parallelAxis' }),\n function (axisModel: ParallelAxisModel) {\n // Can not use this.contains here, because\n // initialization has not been completed yet.\n return (axisModel.get('parallelIndex') || 0) === this.componentIndex;\n },\n this\n );\n\n zrUtil.each(axisModels, function (axisModel: ParallelAxisModel) {\n dimensions.push('dim' + axisModel.get('dim'));\n parallelAxisIndex.push(axisModel.componentIndex);\n });\n }\n\n}\n\nexport default ParallelModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { DimensionName } from '../../util/types';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport AxisModel from './AxisModel';\nimport Parallel from './Parallel';\n\n\nclass ParallelAxis extends Axis {\n\n readonly axisIndex: number;\n\n // Inject\n model: AxisModel;\n coordinateSystem: Parallel;\n\n constructor(\n dim: DimensionName,\n scale: Scale,\n coordExtent: [number, number],\n axisType: OptionAxisType,\n axisIndex: number\n ) {\n super(dim, scale, coordExtent);\n\n this.type = axisType || 'value';\n this.axisIndex = axisIndex;\n }\n\n isHorizontal(): boolean {\n return this.coordinateSystem.getModel().get('layout') !== 'horizontal';\n }\n\n}\n\nexport default ParallelAxis;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Calculate slider move result.\n * Usage:\n * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as\n * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.\n * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.\n *\n * @param delta Move length.\n * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].\n * handleEnds will be modified in this method.\n * @param extent handleEnds is restricted by extent.\n * extent[0] should less or equals than extent[1].\n * @param handleIndex Can be 'all', means that both move the two handleEnds.\n * @param minSpan The range of dataZoom can not be smaller than that.\n * If not set, handle0 and cross handle1. If set as a non-negative\n * number (including `0`), handles will push each other when reaching\n * the minSpan.\n * @param maxSpan The range of dataZoom can not be larger than that.\n * @return The input handleEnds.\n */\nexport default function sliderMove(\n delta: number,\n handleEnds: number[],\n extent: number[],\n handleIndex: 'all' | 0 | 1,\n minSpan?: number,\n maxSpan?: number\n): number[] {\n\n delta = delta || 0;\n\n const extentSpan = extent[1] - extent[0];\n\n // Notice maxSpan and minSpan can be null/undefined.\n if (minSpan != null) {\n minSpan = restrict(minSpan, [0, extentSpan]);\n }\n if (maxSpan != null) {\n maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);\n }\n if (handleIndex === 'all') {\n let handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);\n handleSpan = restrict(handleSpan, [0, extentSpan]);\n minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]);\n handleIndex = 0;\n }\n\n handleEnds[0] = restrict(handleEnds[0], extent);\n handleEnds[1] = restrict(handleEnds[1], extent);\n\n const originalDistSign = getSpanSign(handleEnds, handleIndex);\n\n handleEnds[handleIndex] += delta;\n\n // Restrict in extent.\n const extentMinSpan = minSpan || 0;\n const realExtent = extent.slice();\n originalDistSign.sign < 0 ? (realExtent[0] += extentMinSpan) : (realExtent[1] -= extentMinSpan);\n handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent);\n\n // Expand span.\n let currDistSign;\n currDistSign = getSpanSign(handleEnds, handleIndex);\n if (minSpan != null && (\n currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan\n )) {\n // If minSpan exists, 'cross' is forbidden.\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;\n }\n\n // Shrink span.\n currDistSign = getSpanSign(handleEnds, handleIndex);\n if (maxSpan != null && currDistSign.span > maxSpan) {\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;\n }\n\n return handleEnds;\n}\n\nfunction getSpanSign(handleEnds: number[], handleIndex: 0 | 1) {\n const dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex];\n // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]\n // is at left of handleEnds[1] for non-cross case.\n return {span: Math.abs(dist), sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1};\n}\n\nfunction restrict(value: number, extend: number[]) {\n return Math.min(\n extend[1] != null ? extend[1] : Infinity,\n Math.max(extend[0] != null ? extend[0] : -Infinity, value)\n );\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Parallel Coordinates\n * \n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as layoutUtil from '../../util/layout';\nimport * as axisHelper from '../../coord/axisHelper';\nimport ParallelAxis from './ParallelAxis';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../../component/helper/sliderMove';\nimport ParallelModel, { ParallelLayoutDirection } from './ParallelModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary, DimensionName, ScaleDataValue } from '../../util/types';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport ParallelAxisModel, { ParallelActiveState } from './AxisModel';\nimport SeriesData from '../../data/SeriesData';\n\nconst each = zrUtil.each;\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathFloor = Math.floor;\nconst mathCeil = Math.ceil;\nconst round = numberUtil.round;\nconst PI = Math.PI;\n\ninterface ParallelCoordinateSystemLayoutInfo {\n layout: ParallelLayoutDirection;\n pixelDimIndex: number;\n layoutBase: number;\n layoutLength: number;\n axisBase: number;\n axisLength: number;\n axisExpandable: boolean;\n axisExpandWidth: number;\n axisCollapseWidth: number;\n axisExpandWindow: number[];\n axisCount: number;\n winInnerIndices: number[];\n axisExpandWindow0Pos: number;\n}\n\nexport interface ParallelAxisLayoutInfo {\n position: number[];\n rotation: number;\n transform: matrix.MatrixArray;\n axisNameAvailableWidth: number;\n axisLabelShow: boolean;\n nameTruncateMaxWidth: number;\n tickDirection: -1 | 1;\n labelDirection: -1 | 1;\n}\n\ntype SlidedAxisExpandBehavior = 'none' | 'slide' | 'jump';\n\nclass Parallel implements CoordinateSystemMaster, CoordinateSystem {\n\n readonly type = 'parallel';\n\n /**\n * key: dimension\n */\n private _axesMap = zrUtil.createHashMap();\n\n /**\n * key: dimension\n * value: {position: [], rotation, }\n */\n private _axesLayout: Dictionary = {};\n\n /**\n * Always follow axis order.\n */\n readonly dimensions: ParallelModel['dimensions'];\n\n private _rect: graphic.BoundingRect;\n\n private _model: ParallelModel;\n\n // Inject\n name: string;\n model: ParallelModel;\n\n\n constructor(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.dimensions = parallelModel.dimensions;\n this._model = parallelModel;\n\n this._init(parallelModel, ecModel, api);\n }\n\n private _init(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n\n const dimensions = parallelModel.dimensions;\n const parallelAxisIndex = parallelModel.parallelAxisIndex;\n\n each(dimensions, function (dim, idx) {\n\n const axisIndex = parallelAxisIndex[idx];\n const axisModel = ecModel.getComponent('parallelAxis', axisIndex) as ParallelAxisModel;\n\n const axis = this._axesMap.set(dim, new ParallelAxis(\n dim,\n axisHelper.createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisIndex\n ));\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n\n // Injection\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = axisModel.coordinateSystem = this;\n\n }, this);\n }\n\n /**\n * Update axis scale after data processed\n */\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n this._updateAxesFromSeries(this._model, ecModel);\n }\n\n containPoint(point: number[]): boolean {\n const layoutInfo = this._makeLayoutInfo();\n const axisBase = layoutInfo.axisBase;\n const layoutBase = layoutInfo.layoutBase;\n const pixelDimIndex = layoutInfo.pixelDimIndex;\n const pAxis = point[1 - pixelDimIndex];\n const pLayout = point[pixelDimIndex];\n\n return pAxis >= axisBase\n && pAxis <= axisBase + layoutInfo.axisLength\n && pLayout >= layoutBase\n && pLayout <= layoutBase + layoutInfo.layoutLength;\n }\n\n getModel(): ParallelModel {\n return this._model;\n }\n\n /**\n * Update properties from series\n */\n private _updateAxesFromSeries(parallelModel: ParallelModel, ecModel: GlobalModel): void {\n ecModel.eachSeries(function (seriesModel) {\n\n if (!parallelModel.contains(seriesModel, ecModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n each(this.dimensions, function (dim) {\n const axis = this._axesMap.get(dim);\n axis.scale.unionExtentFromData(data, data.mapDimension(dim));\n axisHelper.niceScaleExtent(axis.scale, axis.model);\n }, this);\n }, this);\n }\n\n /**\n * Resize the parallel coordinate system.\n */\n resize(parallelModel: ParallelModel, api: ExtensionAPI): void {\n this._rect = layoutUtil.getLayoutRect(\n parallelModel.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n this._layoutAxes();\n }\n\n getRect(): graphic.BoundingRect {\n return this._rect;\n }\n\n private _makeLayoutInfo(): ParallelCoordinateSystemLayoutInfo {\n const parallelModel = this._model;\n const rect = this._rect;\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n const layout = parallelModel.get('layout');\n const pixelDimIndex = layout === 'horizontal' ? 0 : 1;\n const layoutLength = rect[wh[pixelDimIndex]];\n const layoutExtent = [0, layoutLength];\n const axisCount = this.dimensions.length;\n\n const axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent);\n const axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);\n const axisExpandable = parallelModel.get('axisExpandable')\n && axisCount > 3\n && axisCount > axisExpandCount\n && axisExpandCount > 1\n && axisExpandWidth > 0\n && layoutLength > 0;\n\n // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],\n // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),\n // where collapsed axes should be overlapped.\n let axisExpandWindow = parallelModel.get('axisExpandWindow');\n let winSize;\n if (!axisExpandWindow) {\n winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);\n const axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor(axisCount / 2);\n axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n else {\n winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n\n let axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount);\n // Avoid axisCollapseWidth is too small.\n axisCollapseWidth < 3 && (axisCollapseWidth = 0);\n\n // Find the first and last indices > ewin[0] and < ewin[1].\n const winInnerIndices = [\n mathFloor(round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1,\n mathCeil(round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1\n ];\n\n // Pos in ec coordinates.\n const axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];\n\n return {\n layout: layout,\n pixelDimIndex: pixelDimIndex,\n layoutBase: rect[xy[pixelDimIndex]],\n layoutLength: layoutLength,\n axisBase: rect[xy[1 - pixelDimIndex]],\n axisLength: rect[wh[1 - pixelDimIndex]],\n axisExpandable: axisExpandable,\n axisExpandWidth: axisExpandWidth,\n axisCollapseWidth: axisCollapseWidth,\n axisExpandWindow: axisExpandWindow,\n axisCount: axisCount,\n winInnerIndices: winInnerIndices,\n axisExpandWindow0Pos: axisExpandWindow0Pos\n };\n }\n\n private _layoutAxes(): void {\n const rect = this._rect;\n const axes = this._axesMap;\n const dimensions = this.dimensions;\n const layoutInfo = this._makeLayoutInfo();\n const layout = layoutInfo.layout;\n\n axes.each(function (axis) {\n const axisExtent = [0, layoutInfo.axisLength];\n const idx = axis.inverse ? 1 : 0;\n axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);\n });\n\n each(dimensions, function (dim, idx) {\n const posInfo = (layoutInfo.axisExpandable\n ? layoutAxisWithExpand : layoutAxisWithoutExpand\n )(idx, layoutInfo);\n\n const positionTable = {\n horizontal: {\n x: posInfo.position,\n y: layoutInfo.axisLength\n },\n vertical: {\n x: 0,\n y: posInfo.position\n }\n };\n const rotationTable = {\n horizontal: PI / 2,\n vertical: 0\n };\n\n const position = [\n positionTable[layout].x + rect.x,\n positionTable[layout].y + rect.y\n ];\n\n const rotation = rotationTable[layout];\n const transform = matrix.create();\n matrix.rotate(transform, transform, rotation);\n matrix.translate(transform, transform, position);\n\n // TODO\n // tick layout info\n\n // TODO\n // update dimensions info based on axis order.\n\n this._axesLayout[dim] = {\n position: position,\n rotation: rotation,\n transform: transform,\n axisNameAvailableWidth: posInfo.axisNameAvailableWidth,\n axisLabelShow: posInfo.axisLabelShow,\n nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,\n tickDirection: 1,\n labelDirection: 1\n };\n }, this);\n }\n\n /**\n * Get axis by dim.\n */\n getAxis(dim: DimensionName): ParallelAxis {\n return this._axesMap.get(dim);\n }\n\n /**\n * Convert a dim value of a single item of series data to Point.\n */\n dataToPoint(value: ScaleDataValue, dim: DimensionName): number[] {\n return this.axisCoordToPoint(\n this._axesMap.get(dim).dataToCoord(value),\n dim\n );\n }\n\n /**\n * Travel data for one time, get activeState of each data item.\n * @param start the start dataIndex that travel from.\n * @param end the next dataIndex of the last dataIndex will be travel.\n */\n eachActiveState(\n data: SeriesData,\n callback: (activeState: ParallelActiveState, dataIndex: number) => void,\n start?: number,\n end?: number\n ): void {\n start == null && (start = 0);\n end == null && (end = data.count());\n\n const axesMap = this._axesMap;\n const dimensions = this.dimensions;\n const dataDimensions = [] as DimensionName[];\n const axisModels = [] as ParallelAxisModel[];\n\n zrUtil.each(dimensions, function (axisDim) {\n dataDimensions.push(data.mapDimension(axisDim));\n axisModels.push(axesMap.get(axisDim).model);\n });\n\n const hasActiveSet = this.hasAxisBrushed();\n\n for (let dataIndex = start; dataIndex < end; dataIndex++) {\n let activeState: ParallelActiveState;\n\n if (!hasActiveSet) {\n activeState = 'normal';\n }\n else {\n activeState = 'active';\n const values = data.getValues(dataDimensions, dataIndex);\n for (let j = 0, lenj = dimensions.length; j < lenj; j++) {\n const state = axisModels[j].getActiveState(values[j]);\n\n if (state === 'inactive') {\n activeState = 'inactive';\n break;\n }\n }\n }\n\n callback(activeState, dataIndex);\n }\n }\n\n /**\n * Whether has any activeSet.\n */\n hasAxisBrushed(): boolean {\n const dimensions = this.dimensions;\n const axesMap = this._axesMap;\n let hasActiveSet = false;\n\n for (let j = 0, lenj = dimensions.length; j < lenj; j++) {\n if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {\n hasActiveSet = true;\n }\n }\n\n return hasActiveSet;\n }\n\n /**\n * Convert coords of each axis to Point.\n * Return point. For example: [10, 20]\n */\n axisCoordToPoint(coord: number, dim: DimensionName): number[] {\n const axisLayout = this._axesLayout[dim];\n return graphic.applyTransform([coord, 0], axisLayout.transform);\n }\n\n /**\n * Get axis layout.\n */\n getAxisLayout(dim: DimensionName): ParallelAxisLayoutInfo {\n return zrUtil.clone(this._axesLayout[dim]);\n }\n\n /**\n * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.\n */\n getSlidedAxisExpandWindow(point: number[]): {\n axisExpandWindow: number[],\n behavior: SlidedAxisExpandBehavior\n } {\n const layoutInfo = this._makeLayoutInfo();\n const pixelDimIndex = layoutInfo.pixelDimIndex;\n let axisExpandWindow = layoutInfo.axisExpandWindow.slice();\n const winSize = axisExpandWindow[1] - axisExpandWindow[0];\n const extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)];\n\n // Out of the area of coordinate system.\n if (!this.containPoint(point)) {\n return {behavior: 'none', axisExpandWindow: axisExpandWindow};\n }\n\n // Conver the point from global to expand coordinates.\n const pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos;\n\n // For dragging operation convenience, the window should not be\n // slided when mouse is the center area of the window.\n let delta;\n let behavior: SlidedAxisExpandBehavior = 'slide';\n const axisCollapseWidth = layoutInfo.axisCollapseWidth;\n const triggerArea = this._model.get('axisExpandSlideTriggerArea');\n // But consider touch device, jump is necessary.\n const useJump = triggerArea[0] != null;\n\n if (axisCollapseWidth) {\n if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {\n behavior = 'jump';\n delta = pointCoord - winSize * triggerArea[2];\n }\n else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {\n behavior = 'jump';\n delta = pointCoord - winSize * (1 - triggerArea[2]);\n }\n else {\n (delta = pointCoord - winSize * triggerArea[1]) >= 0\n && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0\n && (delta = 0);\n }\n delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;\n delta\n ? sliderMove(delta, axisExpandWindow, extent, 'all')\n // Avoid nonsense triger on mousemove.\n : (behavior = 'none');\n }\n // When screen is too narrow, make it visible and slidable, although it is hard to interact.\n else {\n const winSize2 = axisExpandWindow[1] - axisExpandWindow[0];\n const pos = extent[1] * pointCoord / winSize2;\n axisExpandWindow = [mathMax(0, pos - winSize2 / 2)];\n axisExpandWindow[1] = mathMin(extent[1], axisExpandWindow[0] + winSize2);\n axisExpandWindow[0] = axisExpandWindow[1] - winSize2;\n }\n\n return {\n axisExpandWindow: axisExpandWindow,\n behavior: behavior\n };\n }\n\n // TODO\n // convertToPixel\n // convertFromPixel\n // Note:\n // (1) Consider Parallel, the return type of `convertToPixel` could be number[][] (Point[]).\n // (2) In parallel coord sys, how to make `convertFromPixel` make sense?\n // Perhaps convert a point based on \"a rensent most axis\" is more meaningful rather than based on all axes?\n}\n\n\nfunction restrict(len: number, extent: number[]): number {\n return mathMin(mathMax(len, extent[0]), extent[1]);\n}\n\ninterface ParallelAxisLayoutPositionInfo {\n position: number;\n axisNameAvailableWidth: number;\n axisLabelShow: boolean;\n nameTruncateMaxWidth?: number;\n}\n\nfunction layoutAxisWithoutExpand(\n axisIndex: number,\n layoutInfo: ParallelCoordinateSystemLayoutInfo\n): ParallelAxisLayoutPositionInfo {\n const step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);\n return {\n position: step * axisIndex,\n axisNameAvailableWidth: step,\n axisLabelShow: true\n };\n}\n\nfunction layoutAxisWithExpand(\n axisIndex: number,\n layoutInfo: ParallelCoordinateSystemLayoutInfo\n): ParallelAxisLayoutPositionInfo {\n const layoutLength = layoutInfo.layoutLength;\n const axisExpandWidth = layoutInfo.axisExpandWidth;\n const axisCount = layoutInfo.axisCount;\n const axisCollapseWidth = layoutInfo.axisCollapseWidth;\n const winInnerIndices = layoutInfo.winInnerIndices;\n\n let position;\n let axisNameAvailableWidth = axisCollapseWidth;\n let axisLabelShow = false;\n let nameTruncateMaxWidth;\n\n if (axisIndex < winInnerIndices[0]) {\n position = axisIndex * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n else if (axisIndex <= winInnerIndices[1]) {\n position = layoutInfo.axisExpandWindow0Pos\n + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];\n axisNameAvailableWidth = axisExpandWidth;\n axisLabelShow = true;\n }\n else {\n position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n\n return {\n position: position,\n axisNameAvailableWidth: axisNameAvailableWidth,\n axisLabelShow: axisLabelShow,\n nameTruncateMaxWidth: nameTruncateMaxWidth\n };\n}\n\nexport default Parallel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Parallel coordinate system creater.\n */\n\nimport Parallel from './Parallel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ParallelModel from './ParallelModel';\nimport { CoordinateSystemMaster } from '../CoordinateSystem';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nfunction createParallelCoordSys(ecModel: GlobalModel, api: ExtensionAPI): CoordinateSystemMaster[] {\n const coordSysList: CoordinateSystemMaster[] = [];\n\n ecModel.eachComponent('parallel', function (parallelModel: ParallelModel, idx: number) {\n const coordSys = new Parallel(parallelModel, ecModel, api);\n\n coordSys.name = 'parallel_' + idx;\n coordSys.resize(parallelModel, api);\n\n parallelModel.coordinateSystem = coordSys;\n coordSys.model = parallelModel;\n\n coordSysList.push(coordSys);\n });\n\n // Inject the coordinateSystems into seriesModel\n ecModel.eachSeries(function (seriesModel) {\n if ((seriesModel as ParallelSeriesModel).get('coordinateSystem') === 'parallel') {\n const parallelModel = seriesModel.getReferringComponents(\n 'parallel', SINGLE_REFERRING\n ).models[0] as ParallelModel;\n seriesModel.coordinateSystem = parallelModel.coordinateSystem;\n }\n });\n\n return coordSysList;\n}\nconst parallelCoordSysCreator = {\n create: createParallelCoordSys\n};\n\nexport default parallelCoordSysCreator;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport * as numberUtil from '../../util/number';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport ParallelAxis from './ParallelAxis';\nimport { ZRColor, ParsedValue } from '../../util/types';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport Parallel from './Parallel';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\n\n// 'normal' means there is no \"active intervals\" existing.\nexport type ParallelActiveState = 'normal' | 'active' | 'inactive';\nexport type ParallelAxisInterval = number[];\ntype ParallelAreaSelectStyleKey = 'fill' | 'lineWidth' | 'stroke' | 'opacity';\nexport type ParallelAreaSelectStyleProps = Pick & {\n // Selected area width.\n width: number;\n};\n\nexport interface ParallelAxisOption extends AxisBaseOption {\n /**\n * 0, 1, 2, ...\n */\n dim?: number | number[];\n parallelIndex?: number;\n areaSelectStyle?: {\n width?: number;\n borderWidth?: number;\n borderColor?: ZRColor;\n color?: ZRColor;\n opacity?: number;\n };\n // Whether realtime update view when select.\n realtime?: boolean;\n}\n\nclass ParallelAxisModel extends ComponentModel {\n\n static type: 'baseParallelAxis';\n readonly type = ParallelAxisModel.type;\n\n axis: ParallelAxis;\n\n // Inject\n coordinateSystem: Parallel;\n\n /**\n * @readOnly\n */\n activeIntervals: ParallelAxisInterval[] = [];\n\n getAreaSelectStyle(): ParallelAreaSelectStyleProps {\n return makeStyleMapper(\n [\n ['fill', 'color'],\n ['lineWidth', 'borderWidth'],\n ['stroke', 'borderColor'],\n ['width', 'width'],\n ['opacity', 'opacity']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n ]\n )(this.getModel('areaSelectStyle')) as ParallelAreaSelectStyleProps;\n }\n\n /**\n * The code of this feature is put on AxisModel but not ParallelAxis,\n * because axisModel can be alive after echarts updating but instance of\n * ParallelAxis having been disposed. this._activeInterval should be kept\n * when action dispatched (i.e. legend click).\n *\n * @param intervals `interval.length === 0` means set all active.\n */\n setActiveIntervals(intervals: ParallelAxisInterval[]): void {\n const activeIntervals = this.activeIntervals = zrUtil.clone(intervals);\n\n // Normalize\n if (activeIntervals) {\n for (let i = activeIntervals.length - 1; i >= 0; i--) {\n numberUtil.asc(activeIntervals[i]);\n }\n }\n }\n\n /**\n * @param value When only attempting detect whether 'no activeIntervals set',\n * `value` is not needed to be input.\n */\n getActiveState(value?: ParsedValue): ParallelActiveState {\n const activeIntervals = this.activeIntervals;\n\n if (!activeIntervals.length) {\n return 'normal';\n }\n\n if (value == null || isNaN(+value)) {\n return 'inactive';\n }\n\n // Simple optimization\n if (activeIntervals.length === 1) {\n const interval = activeIntervals[0];\n if (interval[0] <= value && value <= interval[1]) {\n return 'active';\n }\n }\n else {\n for (let i = 0, len = activeIntervals.length; i < len; i++) {\n if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {\n return 'active';\n }\n }\n }\n\n return 'inactive';\n }\n\n}\ninterface ParallelAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nzrUtil.mixin(ParallelAxisModel, AxisModelCommonMixin);\n\nexport default ParallelAxisModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {curry, each, map, bind, merge, clone, defaults, assert} from 'zrender/src/core/util';\nimport Eventful from 'zrender/src/core/Eventful';\nimport * as graphic from '../../util/graphic';\nimport * as interactionMutex from './interactionMutex';\nimport DataDiffer from '../../data/DataDiffer';\nimport { Dictionary } from '../../util/types';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ElementEvent } from 'zrender/src/Element';\nimport * as matrix from 'zrender/src/core/matrix';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\n\n/**\n * BrushController not only used in \"brush component\",\n * but also used in \"tooltip DataZoom\", and other possible\n * futher brush behavior related scenarios.\n * So `BrushController` should not depends on \"brush component model\".\n */\n\n\nexport type BrushType = 'polygon' | 'rect' | 'lineX' | 'lineY';\n/**\n * Only for drawing (after enabledBrush).\n * 'line', 'rect', 'polygon' or false\n * If passing false/null/undefined, disable brush.\n * If passing 'auto', determined by panel.defaultBrushType\n */\nexport type BrushTypeUncertain = BrushType | false | 'auto';\n\nexport type BrushMode = 'single' | 'multiple';\n// MinMax: Range of linear brush.\n// MinMax[]: Range of multi-dimension like rect/polygon, which is a MinMax\n// list for each dimension of the coord sys. For example:\n// cartesian: [[xMin, xMax], [yMin, yMax]]\n// geo: [[lngMin, lngMin], [latMin, latMax]]\nexport type BrushDimensionMinMax = number[];\nexport type BrushAreaRange = BrushDimensionMinMax | BrushDimensionMinMax[];\n\nexport interface BrushCoverConfig {\n // Mandatory. determine how to convert to/from coord('rect' or 'polygon' or 'lineX/Y')\n brushType: BrushType;\n // Can be specified by user to map covers in `updateCovers`\n // in `dispatchAction({type: 'brush', areas: [{id: ...}, ...]})`\n id?: string;\n // Range in global coordinate (pixel).\n range?: BrushAreaRange;\n // When create a new area by `updateCovers`, panelId should be specified.\n // If not null/undefined, means global panel.\n // Also see `BrushAreaParam['panelId']`.\n panelId?: string;\n\n brushMode?: BrushMode;\n // `brushStyle`, `transformable` is not mandatory, use DEFAULT_BRUSH_OPT by default.\n brushStyle?: Pick;\n transformable?: boolean;\n removeOnClick?: boolean;\n z?: number;\n}\n\n/**\n * `BrushAreaCreatorOption` input to brushModel via `setBrushOption`,\n * merge and convert to `BrushCoverCreatorConfig`.\n */\nexport interface BrushCoverCreatorConfig extends Pick<\n BrushCoverConfig,\n 'brushMode' | 'transformable' | 'removeOnClick' | 'brushStyle' | 'z'\n> {\n brushType: BrushTypeUncertain;\n}\n\ntype BrushStyleKey =\n 'fill'\n | 'stroke'\n | 'lineWidth'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor';\n\n\nconst BRUSH_PANEL_GLOBAL = true as const;\n\nexport interface BrushPanelConfig {\n // mandatory.\n panelId: string;\n // mandatory.\n clipPath(localPoints: number[][], transform: matrix.MatrixArray): number[][];\n // mandatory.\n isTargetByCursor(e: ElementEvent, localCursorPoint: number[], transform: matrix.MatrixArray): boolean;\n // optional, only used when brushType is 'auto'.\n defaultBrushType?: BrushType;\n // optional.\n getLinearBrushOtherExtent?(xyIndex: number): number[];\n}\n// `true` represents global panel;\ntype BrushPanelConfigOrGlobal = BrushPanelConfig | typeof BRUSH_PANEL_GLOBAL;\n\n\ninterface BrushCover extends graphic.Group {\n __brushOption: BrushCoverConfig;\n}\n\ntype Point = number[];\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathPow = Math.pow;\n\nconst COVER_Z = 10000;\nconst UNSELECT_THRESHOLD = 6;\nconst MIN_RESIZE_LINE_WIDTH = 6;\nconst MUTEX_RESOURCE_KEY = 'globalPan';\n\ntype DirectionName = 'w' | 'e' | 'n' | 's';\ntype DirectionNameSequence = DirectionName[];\n\nconst DIRECTION_MAP = {\n w: [0, 0],\n e: [0, 1],\n n: [1, 0],\n s: [1, 1]\n} as const;\nconst CURSOR_MAP = {\n w: 'ew',\n e: 'ew',\n n: 'ns',\n s: 'ns',\n ne: 'nesw',\n sw: 'nesw',\n nw: 'nwse',\n se: 'nwse'\n} as const;\nconst DEFAULT_BRUSH_OPT = {\n brushStyle: {\n lineWidth: 2,\n stroke: 'rgba(210,219,238,0.3)',\n fill: '#D2DBEE'\n },\n transformable: true,\n brushMode: 'single',\n removeOnClick: false\n};\n\nlet baseUID = 0;\n\nexport interface BrushControllerEvents {\n brush: {\n areas: {\n brushType: BrushType;\n panelId: string;\n range: BrushAreaRange;\n }[];\n isEnd: boolean;\n removeOnClick: boolean;\n }\n}\n\n/**\n * params:\n * areas: Array., coord relates to container group,\n * If no container specified, to global.\n * opt {\n * isEnd: boolean,\n * removeOnClick: boolean\n * }\n */\nclass BrushController extends Eventful<{\n [key in keyof BrushControllerEvents]: (params: BrushControllerEvents[key]) => void | undefined\n}> {\n\n readonly group: graphic.Group;\n\n /**\n * @internal\n */\n _zr: ZRenderType;\n\n /**\n * @internal\n */\n _brushType: BrushTypeUncertain;\n\n /**\n * @internal\n * Only for drawing (after enabledBrush).\n */\n _brushOption: BrushCoverCreatorConfig;\n\n /**\n * @internal\n * Key: panelId\n */\n _panels: Dictionary;\n\n /**\n * @internal\n */\n _track: number[][] = [];\n\n /**\n * @internal\n */\n _dragging: boolean;\n\n /**\n * @internal\n */\n _covers: BrushCover[] = [];\n\n /**\n * @internal\n */\n _creatingCover: BrushCover;\n\n /**\n * @internal\n */\n _creatingPanel: BrushPanelConfigOrGlobal;\n\n private _enableGlobalPan: boolean;\n\n private _mounted: boolean;\n\n /**\n * @internal\n */\n _transform: matrix.MatrixArray;\n\n private _uid: string;\n\n private _handlers: {\n [eventName: string]: (this: BrushController, e: ElementEvent) => void\n } = {};\n\n\n constructor(zr: ZRenderType) {\n super();\n\n if (__DEV__) {\n assert(zr);\n }\n\n this._zr = zr;\n\n this.group = new graphic.Group();\n\n this._uid = 'brushController_' + baseUID++;\n\n each(pointerHandlers, function (this: BrushController, handler, eventName) {\n this._handlers[eventName] = bind(handler, this);\n }, this);\n }\n\n /**\n * If set to `false`, select disabled.\n */\n enableBrush(brushOption: Partial | false): BrushController {\n if (__DEV__) {\n assert(this._mounted);\n }\n\n this._brushType && this._doDisableBrush();\n (brushOption as Partial).brushType && this._doEnableBrush(\n brushOption as Partial\n );\n\n return this;\n }\n\n private _doEnableBrush(brushOption: Partial): void {\n const zr = this._zr;\n\n // Consider roam, which takes globalPan too.\n if (!this._enableGlobalPan) {\n interactionMutex.take(zr, MUTEX_RESOURCE_KEY, this._uid);\n }\n\n each(this._handlers, function (handler, eventName) {\n zr.on(eventName, handler);\n });\n\n this._brushType = brushOption.brushType;\n this._brushOption = merge(\n clone(DEFAULT_BRUSH_OPT), brushOption, true\n ) as BrushCoverCreatorConfig;\n }\n\n private _doDisableBrush(): void {\n const zr = this._zr;\n\n interactionMutex.release(zr, MUTEX_RESOURCE_KEY, this._uid);\n\n each(this._handlers, function (handler, eventName) {\n zr.off(eventName, handler);\n });\n\n this._brushType = this._brushOption = null;\n }\n\n /**\n * @param panelOpts If not pass, it is global brush.\n */\n setPanels(panelOpts?: BrushPanelConfig[]): BrushController {\n if (panelOpts && panelOpts.length) {\n const panels = this._panels = {} as Dictionary;\n each(panelOpts, function (panelOpts) {\n panels[panelOpts.panelId] = clone(panelOpts);\n });\n }\n else {\n this._panels = null;\n }\n return this;\n }\n\n mount(opt?: {\n enableGlobalPan?: boolean;\n x?: number;\n y?: number;\n rotation?: number;\n scaleX?: number;\n scaleY?: number\n }): BrushController {\n opt = opt || {};\n\n if (__DEV__) {\n this._mounted = true; // should be at first.\n }\n\n this._enableGlobalPan = opt.enableGlobalPan;\n\n const thisGroup = this.group;\n this._zr.add(thisGroup);\n\n thisGroup.attr({\n x: opt.x || 0,\n y: opt.y || 0,\n rotation: opt.rotation || 0,\n scaleX: opt.scaleX || 1,\n scaleY: opt.scaleY || 1\n });\n this._transform = thisGroup.getLocalTransform();\n\n return this;\n }\n\n // eachCover(cb, context): void {\n // each(this._covers, cb, context);\n // }\n\n /**\n * Update covers.\n * @param coverConfigList\n * If coverConfigList is null/undefined, all covers removed.\n */\n updateCovers(coverConfigList: BrushCoverConfig[]) {\n if (__DEV__) {\n assert(this._mounted);\n }\n\n coverConfigList = map(coverConfigList, function (coverConfig) {\n return merge(clone(DEFAULT_BRUSH_OPT), coverConfig, true);\n }) as BrushCoverConfig[];\n\n const tmpIdPrefix = '\\0-brush-index-';\n const oldCovers = this._covers;\n const newCovers = this._covers = [] as BrushCover[];\n const controller = this;\n const creatingCover = this._creatingCover;\n\n (new DataDiffer(oldCovers, coverConfigList, oldGetKey, getKey))\n .add(addOrUpdate)\n .update(addOrUpdate)\n .remove(remove)\n .execute();\n\n return this;\n\n function getKey(brushOption: BrushCoverConfig, index: number): string {\n return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index)\n + '-' + brushOption.brushType;\n }\n\n function oldGetKey(cover: BrushCover, index: number): string {\n return getKey(cover.__brushOption, index);\n }\n\n function addOrUpdate(newIndex: number, oldIndex?: number): void {\n const newBrushInternal = coverConfigList[newIndex];\n // Consider setOption in event listener of brushSelect,\n // where updating cover when creating should be forbiden.\n if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {\n newCovers[newIndex] = oldCovers[oldIndex];\n }\n else {\n const cover = newCovers[newIndex] = oldIndex != null\n ? (\n oldCovers[oldIndex].__brushOption = newBrushInternal,\n oldCovers[oldIndex]\n )\n : endCreating(controller, createCover(controller, newBrushInternal));\n updateCoverAfterCreation(controller, cover);\n }\n }\n\n function remove(oldIndex: number) {\n if (oldCovers[oldIndex] !== creatingCover) {\n controller.group.remove(oldCovers[oldIndex]);\n }\n }\n }\n\n unmount() {\n if (__DEV__) {\n if (!this._mounted) {\n return;\n }\n }\n\n this.enableBrush(false);\n\n // container may 'removeAll' outside.\n clearCovers(this);\n this._zr.remove(this.group);\n\n if (__DEV__) {\n this._mounted = false; // should be at last.\n }\n\n return this;\n }\n\n dispose() {\n this.unmount();\n this.off();\n }\n}\n\n\nfunction createCover(controller: BrushController, brushOption: BrushCoverConfig): BrushCover {\n const cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);\n cover.__brushOption = brushOption;\n updateZ(cover, brushOption);\n controller.group.add(cover);\n return cover;\n}\n\nfunction endCreating(controller: BrushController, creatingCover: BrushCover): BrushCover {\n const coverRenderer = getCoverRenderer(creatingCover);\n if (coverRenderer.endCreating) {\n coverRenderer.endCreating(controller, creatingCover);\n updateZ(creatingCover, creatingCover.__brushOption);\n }\n return creatingCover;\n}\n\nfunction updateCoverShape(controller: BrushController, cover: BrushCover): void {\n const brushOption = cover.__brushOption;\n getCoverRenderer(cover).updateCoverShape(\n controller, cover, brushOption.range, brushOption\n );\n}\n\nfunction updateZ(cover: BrushCover, brushOption: BrushCoverConfig): void {\n let z = brushOption.z;\n z == null && (z = COVER_Z);\n cover.traverse(function (el: Displayable) {\n el.z = z;\n el.z2 = z; // Consider in given container.\n });\n}\n\nfunction updateCoverAfterCreation(controller: BrushController, cover: BrushCover): void {\n getCoverRenderer(cover).updateCommon(controller, cover);\n updateCoverShape(controller, cover);\n}\n\nfunction getCoverRenderer(cover: BrushCover): CoverRenderer {\n return coverRenderers[cover.__brushOption.brushType];\n}\n\n// return target panel or `true` (means global panel)\nfunction getPanelByPoint(\n controller: BrushController,\n e: ElementEvent,\n localCursorPoint: Point\n): BrushPanelConfigOrGlobal {\n const panels = controller._panels;\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n let panel;\n const transform = controller._transform;\n each(panels, function (pn) {\n pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);\n });\n return panel;\n}\n\n// Return a panel or true\nfunction getPanelByCover(controller: BrushController, cover: BrushCover): BrushPanelConfigOrGlobal {\n const panels = controller._panels;\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n const panelId = cover.__brushOption.panelId;\n // User may give cover without coord sys info,\n // which is then treated as global panel.\n return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL;\n}\n\nfunction clearCovers(controller: BrushController): boolean {\n const covers = controller._covers;\n const originalLength = covers.length;\n each(covers, function (cover) {\n controller.group.remove(cover);\n }, controller);\n covers.length = 0;\n\n return !!originalLength;\n}\n\nfunction trigger(\n controller: BrushController,\n opt: {isEnd?: boolean, removeOnClick?: boolean}\n): void {\n const areas = map(controller._covers, function (cover) {\n const brushOption = cover.__brushOption;\n const range = clone(brushOption.range);\n return {\n brushType: brushOption.brushType,\n panelId: brushOption.panelId,\n range: range\n };\n });\n\n controller.trigger('brush', {\n areas: areas,\n isEnd: !!opt.isEnd,\n removeOnClick: !!opt.removeOnClick\n });\n}\n\nfunction shouldShowCover(controller: BrushController): boolean {\n const track = controller._track;\n\n if (!track.length) {\n return false;\n }\n\n const p2 = track[track.length - 1];\n const p1 = track[0];\n const dx = p2[0] - p1[0];\n const dy = p2[1] - p1[1];\n const dist = mathPow(dx * dx + dy * dy, 0.5);\n\n return dist > UNSELECT_THRESHOLD;\n}\n\nfunction getTrackEnds(track: Point[]): Point[] {\n let tail = track.length - 1;\n tail < 0 && (tail = 0);\n return [track[0], track[tail]];\n}\n\ninterface RectRangeConverter {\n toRectRange: (range: BrushAreaRange) => BrushDimensionMinMax[];\n fromRectRange: (areaRange: BrushDimensionMinMax[]) => BrushAreaRange;\n};\nfunction createBaseRectCover(\n rectRangeConverter: RectRangeConverter,\n controller: BrushController,\n brushOption: BrushCoverConfig,\n edgeNameSequences: DirectionNameSequence[]\n): BrushCover {\n const cover = new graphic.Group() as BrushCover;\n\n cover.add(new graphic.Rect({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true,\n draggable: true,\n cursor: 'move',\n drift: curry(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n\n each(\n edgeNameSequences,\n function (nameSequence) {\n cover.add(new graphic.Rect({\n name: nameSequence.join(''),\n style: {opacity: 0},\n draggable: true,\n silent: true,\n invisible: true,\n drift: curry(driftRect, rectRangeConverter, controller, cover, nameSequence),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n }\n );\n\n return cover;\n}\n\nfunction updateBaseRect(\n controller: BrushController,\n cover: BrushCover,\n localRange: BrushDimensionMinMax[],\n brushOption: BrushCoverConfig\n): void {\n const lineWidth = brushOption.brushStyle.lineWidth || 0;\n const handleSize = mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH);\n const x = localRange[0][0];\n const y = localRange[1][0];\n const xa = x - lineWidth / 2;\n const ya = y - lineWidth / 2;\n const x2 = localRange[0][1];\n const y2 = localRange[1][1];\n const x2a = x2 - handleSize + lineWidth / 2;\n const y2a = y2 - handleSize + lineWidth / 2;\n const width = x2 - x;\n const height = y2 - y;\n const widtha = width + lineWidth;\n const heighta = height + lineWidth;\n\n updateRectShape(controller, cover, 'main', x, y, width, height);\n\n if (brushOption.transformable) {\n updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);\n updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);\n\n updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);\n updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);\n }\n}\n\nfunction updateCommon(controller: BrushController, cover: BrushCover): void {\n const brushOption = cover.__brushOption;\n const transformable = brushOption.transformable;\n\n const mainEl = cover.childAt(0) as Displayable;\n mainEl.useStyle(makeStyle(brushOption));\n mainEl.attr({\n silent: !transformable,\n cursor: transformable ? 'move' : 'default'\n });\n\n each(\n [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']],\n function (nameSequence: DirectionNameSequence) {\n const el = cover.childOfName(nameSequence.join('')) as Displayable;\n const globalDir = nameSequence.length === 1\n ? getGlobalDirection1(controller, nameSequence[0])\n : getGlobalDirection2(controller, nameSequence);\n\n el && el.attr({\n silent: !transformable,\n invisible: !transformable,\n cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null\n });\n }\n );\n}\n\nfunction updateRectShape(\n controller: BrushController,\n cover: BrushCover,\n name: string,\n x: number, y: number, w: number, h: number\n): void {\n const el = cover.childOfName(name) as graphic.Rect;\n el && el.setShape(pointsToRect(\n clipByPanel(controller, cover, [[x, y], [x + w, y + h]])\n ));\n}\n\nfunction makeStyle(brushOption: BrushCoverConfig) {\n return defaults({strokeNoScale: true}, brushOption.brushStyle);\n}\n\nfunction formatRectRange(x: number, y: number, x2: number, y2: number): BrushDimensionMinMax[] {\n const min = [mathMin(x, x2), mathMin(y, y2)];\n const max = [mathMax(x, x2), mathMax(y, y2)];\n\n return [\n [min[0], max[0]], // x range\n [min[1], max[1]] // y range\n ];\n}\n\nfunction getTransform(controller: BrushController): matrix.MatrixArray {\n return graphic.getTransform(controller.group);\n}\n\nfunction getGlobalDirection1(\n controller: BrushController, localDirName: DirectionName\n): keyof typeof CURSOR_MAP {\n const map = {w: 'left', e: 'right', n: 'top', s: 'bottom'} as const;\n const inverseMap = {left: 'w', right: 'e', top: 'n', bottom: 's'} as const;\n const dir = graphic.transformDirection(\n map[localDirName], getTransform(controller)\n );\n return inverseMap[dir];\n}\nfunction getGlobalDirection2(\n controller: BrushController, localDirNameSeq: DirectionNameSequence\n): keyof typeof CURSOR_MAP {\n const globalDir = [\n getGlobalDirection1(controller, localDirNameSeq[0]),\n getGlobalDirection1(controller, localDirNameSeq[1])\n ];\n (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();\n return globalDir.join('') as keyof typeof CURSOR_MAP;\n}\n\nfunction driftRect(\n rectRangeConverter: RectRangeConverter,\n controller: BrushController,\n cover: BrushCover,\n dirNameSequence: DirectionNameSequence,\n dx: number,\n dy: number\n): void {\n const brushOption = cover.__brushOption;\n const rectRange = rectRangeConverter.toRectRange(brushOption.range);\n const localDelta = toLocalDelta(controller, dx, dy);\n\n each(dirNameSequence, function (dirName) {\n const ind = DIRECTION_MAP[dirName];\n rectRange[ind[0]][ind[1]] += localDelta[ind[0]];\n });\n\n brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(\n rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]\n ));\n\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {isEnd: false});\n}\n\nfunction driftPolygon(\n controller: BrushController,\n cover: BrushCover,\n dx: number,\n dy: number\n): void {\n const range = cover.__brushOption.range as BrushDimensionMinMax[];\n const localDelta = toLocalDelta(controller, dx, dy);\n\n each(range, function (point) {\n point[0] += localDelta[0];\n point[1] += localDelta[1];\n });\n\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {isEnd: false});\n}\n\nfunction toLocalDelta(\n controller: BrushController, dx: number, dy: number\n): BrushDimensionMinMax {\n const thisGroup = controller.group;\n const localD = thisGroup.transformCoordToLocal(dx, dy);\n const localZero = thisGroup.transformCoordToLocal(0, 0);\n\n return [localD[0] - localZero[0], localD[1] - localZero[1]];\n}\n\nfunction clipByPanel(controller: BrushController, cover: BrushCover, data: Point[]): Point[] {\n const panel = getPanelByCover(controller, cover);\n\n return (panel && panel !== BRUSH_PANEL_GLOBAL)\n ? panel.clipPath(data, controller._transform)\n : clone(data);\n}\n\nfunction pointsToRect(points: Point[]): graphic.Rect['shape'] {\n const xmin = mathMin(points[0][0], points[1][0]);\n const ymin = mathMin(points[0][1], points[1][1]);\n const xmax = mathMax(points[0][0], points[1][0]);\n const ymax = mathMax(points[0][1], points[1][1]);\n\n return {\n x: xmin,\n y: ymin,\n width: xmax - xmin,\n height: ymax - ymin\n };\n}\n\nfunction resetCursor(\n controller: BrushController, e: ElementEvent, localCursorPoint: Point\n): void {\n if (\n // Check active\n !controller._brushType\n // resetCursor should be always called when mouse is in zr area,\n // but not called when mouse is out of zr area to avoid bad influence\n // if `mousemove`, `mouseup` are triggered from `document` event.\n || isOutsideZrArea(controller, e.offsetX, e.offsetY)\n ) {\n return;\n }\n\n const zr = controller._zr;\n const covers = controller._covers;\n const currPanel = getPanelByPoint(controller, e, localCursorPoint);\n\n // Check whether in covers.\n if (!controller._dragging) {\n for (let i = 0; i < covers.length; i++) {\n const brushOption = covers[i].__brushOption;\n if (currPanel\n && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId)\n && coverRenderers[brushOption.brushType].contain(\n covers[i], localCursorPoint[0], localCursorPoint[1]\n )\n ) {\n // Use cursor style set on cover.\n return;\n }\n }\n }\n\n currPanel && zr.setCursorStyle('crosshair');\n}\n\nfunction preventDefault(e: ElementEvent): void {\n const rawE = e.event;\n rawE.preventDefault && rawE.preventDefault();\n}\n\nfunction mainShapeContain(cover: BrushCover, x: number, y: number): boolean {\n return (cover.childOfName('main') as Displayable).contain(x, y);\n}\n\nfunction updateCoverByMouse(\n controller: BrushController,\n e: ElementEvent,\n localCursorPoint: Point,\n isEnd: boolean\n): {\n isEnd: boolean,\n removeOnClick?: boolean\n} {\n let creatingCover = controller._creatingCover;\n const panel = controller._creatingPanel;\n const thisBrushOption = controller._brushOption;\n let eventParams;\n\n controller._track.push(localCursorPoint.slice());\n\n if (shouldShowCover(controller) || creatingCover) {\n\n if (panel && !creatingCover) {\n thisBrushOption.brushMode === 'single' && clearCovers(controller);\n const brushOption = clone(thisBrushOption) as BrushCoverConfig;\n brushOption.brushType = determineBrushType(brushOption.brushType, panel as BrushPanelConfig);\n brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId;\n creatingCover = controller._creatingCover = createCover(controller, brushOption);\n controller._covers.push(creatingCover);\n }\n\n if (creatingCover) {\n const coverRenderer = coverRenderers[\n determineBrushType(controller._brushType, panel as BrushPanelConfig)\n ];\n const coverBrushOption = creatingCover.__brushOption;\n\n coverBrushOption.range = coverRenderer.getCreatingRange(\n clipByPanel(controller, creatingCover, controller._track)\n );\n\n if (isEnd) {\n endCreating(controller, creatingCover);\n coverRenderer.updateCommon(controller, creatingCover);\n }\n\n updateCoverShape(controller, creatingCover);\n\n eventParams = {isEnd: isEnd};\n }\n }\n else if (\n isEnd\n && thisBrushOption.brushMode === 'single'\n && thisBrushOption.removeOnClick\n ) {\n // Help user to remove covers easily, only by a tiny drag, in 'single' mode.\n // But a single click do not clear covers, because user may have casual\n // clicks (for example, click on other component and do not expect covers\n // disappear).\n // Only some cover removed, trigger action, but not every click trigger action.\n if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {\n eventParams = {isEnd: isEnd, removeOnClick: true};\n }\n }\n\n return eventParams;\n}\n\nfunction determineBrushType(brushType: BrushTypeUncertain, panel: BrushPanelConfig): BrushType {\n if (brushType === 'auto') {\n if (__DEV__) {\n assert(\n panel && panel.defaultBrushType,\n 'MUST have defaultBrushType when brushType is \"atuo\"'\n );\n }\n return panel.defaultBrushType;\n }\n return brushType as BrushType;\n}\n\nconst pointerHandlers: Dictionary<(this: BrushController, e: ElementEvent) => void> = {\n\n mousedown: function (e) {\n if (this._dragging) {\n // In case some browser do not support globalOut,\n // and release mouse out side the browser.\n handleDragEnd(this, e);\n }\n else if (!e.target || !e.target.draggable) {\n\n preventDefault(e);\n\n const localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);\n\n this._creatingCover = null;\n const panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);\n\n if (panel) {\n this._dragging = true;\n this._track = [localCursorPoint.slice()];\n }\n }\n },\n\n mousemove: function (e) {\n const x = e.offsetX;\n const y = e.offsetY;\n\n const localCursorPoint = this.group.transformCoordToLocal(x, y);\n\n resetCursor(this, e, localCursorPoint);\n\n if (this._dragging) {\n preventDefault(e);\n const eventParams = updateCoverByMouse(this, e, localCursorPoint, false);\n eventParams && trigger(this, eventParams);\n }\n },\n\n mouseup: function (e) {\n handleDragEnd(this, e);\n }\n};\n\n\nfunction handleDragEnd(controller: BrushController, e: ElementEvent) {\n if (controller._dragging) {\n preventDefault(e);\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const localCursorPoint = controller.group.transformCoordToLocal(x, y);\n const eventParams = updateCoverByMouse(controller, e, localCursorPoint, true);\n\n controller._dragging = false;\n controller._track = [];\n controller._creatingCover = null;\n\n // trigger event shoule be at final, after procedure will be nested.\n eventParams && trigger(controller, eventParams);\n }\n}\n\nfunction isOutsideZrArea(controller: BrushController, x: number, y: number): boolean {\n const zr = controller._zr;\n return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight();\n}\n\n\ninterface CoverRenderer {\n createCover(controller: BrushController, brushOption: BrushCoverConfig): BrushCover;\n getCreatingRange(localTrack: Point[]): BrushAreaRange;\n updateCoverShape(\n controller: BrushController, cover: BrushCover, localRange: BrushAreaRange, brushOption: BrushCoverConfig\n ): void;\n updateCommon(controller: BrushController, cover: BrushCover): void;\n contain(cover: BrushCover, x: number, y: number): boolean;\n endCreating?(controller: BrushController, creatingCover: BrushCover): void;\n}\n\n/**\n * key: brushType\n */\nconst coverRenderers: Record = {\n\n lineX: getLineRenderer(0),\n\n lineY: getLineRenderer(1),\n\n rect: {\n createCover: function (controller, brushOption) {\n function returnInput(range: BrushDimensionMinMax[]): BrushDimensionMinMax[] {\n return range;\n }\n return createBaseRectCover(\n {\n toRectRange: returnInput,\n fromRectRange: returnInput\n },\n controller,\n brushOption,\n [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]\n );\n },\n getCreatingRange: function (localTrack) {\n const ends = getTrackEnds(localTrack);\n return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);\n },\n updateCoverShape: function (controller, cover, localRange: BrushDimensionMinMax[], brushOption) {\n updateBaseRect(controller, cover, localRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n },\n\n polygon: {\n createCover: function (controller, brushOption) {\n const cover = new graphic.Group();\n\n // Do not use graphic.Polygon because graphic.Polyline do not close the\n // border of the shape when drawing, which is a better experience for user.\n cover.add(new graphic.Polyline({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true\n }));\n\n return cover as BrushCover;\n },\n getCreatingRange: function (localTrack) {\n return localTrack;\n },\n endCreating: function (controller, cover) {\n cover.remove(cover.childAt(0));\n // Use graphic.Polygon close the shape.\n cover.add(new graphic.Polygon({\n name: 'main',\n draggable: true,\n drift: curry(driftPolygon, controller, cover),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n },\n updateCoverShape: function (controller, cover, localRange: BrushDimensionMinMax[], brushOption) {\n (cover.childAt(0) as graphic.Polygon).setShape({\n points: clipByPanel(controller, cover, localRange)\n });\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n }\n};\n\nfunction getLineRenderer(xyIndex: 0 | 1) {\n return {\n createCover: function (controller: BrushController, brushOption: BrushCoverConfig): BrushCover {\n return createBaseRectCover(\n {\n toRectRange: function (range: BrushDimensionMinMax): BrushDimensionMinMax[] {\n const rectRange = [range, [0, 100]];\n xyIndex && rectRange.reverse();\n return rectRange;\n },\n fromRectRange: function (rectRange: BrushDimensionMinMax[]): BrushDimensionMinMax {\n return rectRange[xyIndex];\n }\n },\n controller,\n brushOption,\n ([[['w'], ['e']], [['n'], ['s']]] as DirectionNameSequence[][])[xyIndex]\n );\n },\n getCreatingRange: function (localTrack: Point[]): BrushDimensionMinMax {\n const ends = getTrackEnds(localTrack);\n const min = mathMin(ends[0][xyIndex], ends[1][xyIndex]);\n const max = mathMax(ends[0][xyIndex], ends[1][xyIndex]);\n\n return [min, max];\n },\n updateCoverShape: function (\n controller: BrushController,\n cover: BrushCover,\n localRange: BrushDimensionMinMax,\n brushOption: BrushCoverConfig\n ): void {\n let otherExtent;\n // If brushWidth not specified, fit the panel.\n const panel = getPanelByCover(controller, cover);\n if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) {\n otherExtent = panel.getLinearBrushOtherExtent(xyIndex);\n }\n else {\n const zr = controller._zr;\n otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];\n }\n const rectRange = [localRange, otherExtent];\n xyIndex && rectRange.reverse();\n\n updateBaseRect(controller, cover, rectRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n };\n}\n\nexport default BrushController;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {onIrrelevantElement} from './cursorHelper';\nimport * as graphicUtil from '../../util/graphic';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ElementEvent } from 'zrender/src/Element';\nimport ComponentModel from '../../model/Component';\n\nexport function makeRectPanelClipPath(rect: RectLike) {\n rect = normalizeRect(rect);\n return function (localPoints: number[][]) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\n\nexport function makeLinearBrushOtherExtent(rect: RectLike, specifiedXYIndex?: 0 | 1) {\n rect = normalizeRect(rect);\n return function (xyIndex: 0 | 1) {\n const idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n const brushWidth = idx ? rect.width : rect.height;\n const base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\n\nexport function makeRectIsTargetByCursor(rect: RectLike, api: ExtensionAPI, targetModel: ComponentModel) {\n const boundingRect = normalizeRect(rect);\n return function (e: ElementEvent, localCursorPoint: number[]) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1])\n && !onIrrelevantElement(e, api, targetModel);\n };\n}\n\n// Consider width/height is negative.\nfunction normalizeRect(rect: RectLike): BoundingRect {\n return BoundingRect.create(rect);\n}\n\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport BrushController, {\n BrushCoverConfig, BrushControllerEvents, BrushDimensionMinMax\n} from '../helper/BrushController';\nimport * as brushHelper from '../helper/brushHelper';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport ParallelAxisModel, { ParallelAreaSelectStyleProps } from '../../coord/parallel/AxisModel';\nimport { Payload } from '../../util/types';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport { ParallelAxisLayoutInfo } from '../../coord/parallel/Parallel';\n\n\nconst elementList = ['axisLine', 'axisTickLabel', 'axisName'];\n\nclass ParallelAxisView extends ComponentView {\n\n static type = 'parallelAxis';\n readonly type = ParallelAxisView.type;\n\n private _brushController: BrushController;\n private _axisGroup: graphic.Group;\n\n axisModel: ParallelAxisModel;\n api: ExtensionAPI;\n\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {\n super.init.apply(this, arguments as any);\n\n (this._brushController = new BrushController(api.getZr()))\n .on('brush', zrUtil.bind(this._onBrush, this));\n }\n\n render(\n axisModel: ParallelAxisModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n if (fromAxisAreaSelect(axisModel, ecModel, payload)) {\n return;\n }\n\n this.axisModel = axisModel;\n this.api = api;\n\n this.group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n const coordSysModel = getCoordSysModel(axisModel, ecModel);\n const coordSys = coordSysModel.coordinateSystem;\n\n const areaSelectStyle = axisModel.getAreaSelectStyle();\n const areaWidth = areaSelectStyle.width;\n\n const dim = axisModel.axis.dim;\n const axisLayout = coordSys.getAxisLayout(dim);\n\n const builderOpt = zrUtil.extend(\n {strokeContainThreshold: areaWidth},\n axisLayout\n );\n\n const axisBuilder = new AxisBuilder(axisModel, builderOpt);\n\n zrUtil.each(elementList, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n this._refreshBrushController(\n builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api\n );\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }\n\n // /**\n // * @override\n // */\n // updateVisual(axisModel, ecModel, api, payload) {\n // this._brushController && this._brushController\n // .updateCovers(getCoverInfoList(axisModel));\n // }\n\n _refreshBrushController(\n builderOpt: Pick,\n areaSelectStyle: ParallelAreaSelectStyleProps,\n axisModel: ParallelAxisModel,\n coordSysModel: ParallelModel,\n areaWidth: ParallelAreaSelectStyleProps['width'],\n api: ExtensionAPI\n ): void {\n // After filtering, axis may change, select area needs to be update.\n const extent = axisModel.axis.getExtent();\n const extentLen = extent[1] - extent[0];\n const extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.\n\n // width/height might be negative, which will be\n // normalized in BoundingRect.\n const rect = graphic.BoundingRect.create({\n x: extent[0],\n y: -areaWidth / 2,\n width: extentLen,\n height: areaWidth\n });\n rect.x -= extra;\n rect.width += 2 * extra;\n\n this._brushController\n .mount({\n enableGlobalPan: true,\n rotation: builderOpt.rotation,\n x: builderOpt.position[0],\n y: builderOpt.position[1]\n })\n .setPanels([{\n panelId: 'pl',\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect, 0)\n }])\n .enableBrush({\n brushType: 'lineX',\n brushStyle: areaSelectStyle,\n removeOnClick: true\n })\n .updateCovers(getCoverInfoList(axisModel));\n }\n\n _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const coverInfoList = eventParam.areas;\n // Do not cache these object, because the mey be changed.\n const axisModel = this.axisModel;\n const axis = axisModel.axis;\n const intervals = zrUtil.map(coverInfoList, function (coverInfo) {\n return [\n axis.coordToData((coverInfo.range as BrushDimensionMinMax)[0], true),\n axis.coordToData((coverInfo.range as BrushDimensionMinMax)[1], true)\n ];\n });\n\n // If realtime is true, action is not dispatched on drag end, because\n // the drag end emits the same params with the last drag move event,\n // and may have some delay when using touch pad.\n if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) { // jshint ignore:line\n this.api.dispatchAction({\n type: 'axisAreaSelect',\n parallelAxisId: axisModel.id,\n intervals: intervals\n });\n }\n }\n\n dispose(): void {\n this._brushController.dispose();\n }\n}\n\nfunction fromAxisAreaSelect(\n axisModel: ParallelAxisModel, ecModel: GlobalModel, payload: Payload\n): boolean {\n return payload\n && payload.type === 'axisAreaSelect'\n && ecModel.findComponents(\n {mainType: 'parallelAxis', query: payload}\n )[0] === axisModel;\n}\n\nfunction getCoverInfoList(axisModel: ParallelAxisModel): BrushCoverConfig[] {\n const axis = axisModel.axis;\n return zrUtil.map(axisModel.activeIntervals, function (interval) {\n return {\n brushType: 'lineX',\n panelId: 'pl',\n range: [\n axis.dataToCoord(interval[0], true),\n axis.dataToCoord(interval[1], true)\n ]\n };\n });\n}\n\nfunction getCoordSysModel(axisModel: ParallelAxisModel, ecModel: GlobalModel): ParallelModel {\n return ecModel.getComponent(\n 'parallel', axisModel.get('parallelIndex')\n ) as ParallelModel;\n}\n\nexport default ParallelAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { Payload } from '../../util/types';\nimport ParallelAxisModel, { ParallelAxisInterval } from '../../coord/parallel/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\ninterface ParallelAxisAreaSelectPayload extends Payload {\n parallelAxisId: string;\n intervals: ParallelAxisInterval[]\n}\n\nconst actionInfo = {\n type: 'axisAreaSelect',\n event: 'axisAreaSelected'\n // update: 'updateVisual'\n};\n\nexport interface ParallelAxisExpandPayload extends Payload {\n axisExpandWindow?: number[];\n}\n\nexport function installParallelActions(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerAction(actionInfo, function (payload: ParallelAxisAreaSelectPayload, ecModel: GlobalModel) {\n ecModel.eachComponent(\n {mainType: 'parallelAxis', query: payload},\n function (parallelAxisModel: ParallelAxisModel) {\n parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);\n }\n );\n });\n\n /**\n * @payload\n */\n registers.registerAction('parallelAxisExpand', function (payload: ParallelAxisExpandPayload, ecModel) {\n ecModel.eachComponent(\n {mainType: 'parallel', query: payload},\n function (parallelModel: ParallelModel) {\n parallelModel.setAxisExpand(payload);\n }\n );\n });\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport parallelPreprocessor from '../../coord/parallel/parallelPreprocessor';\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport parallelCoordSysCreator from '../../coord/parallel/parallelCreator';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport ParallelAxisModel, {ParallelAxisOption} from '../../coord/parallel/AxisModel';\nimport ParallelAxisView from '../axis/ParallelAxisView';\nimport { installParallelActions } from '../axis/parallelAxisAction';\n\nconst defaultAxisOption: ParallelAxisOption = {\n type: 'value',\n areaSelectStyle: {\n width: 20,\n borderWidth: 1,\n borderColor: 'rgba(160,197,232)',\n color: 'rgba(160,197,232)',\n opacity: 0.3\n },\n realtime: true,\n z: 10\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentView(ParallelView);\n registers.registerComponentModel(ParallelModel);\n\n registers.registerCoordinateSystem('parallel', parallelCoordSysCreator);\n registers.registerPreprocessor(parallelPreprocessor);\n\n registers.registerComponentModel(ParallelAxisModel);\n registers.registerComponentView(ParallelAxisView);\n\n axisModelCreator(\n registers, 'parallel', ParallelAxisModel, defaultAxisOption\n );\n\n installParallelActions(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelSeriesModel from './ParallelSeries';\nimport parallelVisual from './parallelVisual';\nimport {install as installParallelComponent} from '../../component/parallel/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n use(installParallelComponent);\n\n registers.registerChartView(ParallelView);\n registers.registerSeriesModel(ParallelSeriesModel);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, parallelVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { LayoutOrient, ECElement } from '../../util/types';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport SankeySeriesModel, { SankeyEdgeItemOption, SankeyNodeItemOption } from './SankeySeries';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\n\nclass SankeyPathShape {\n x1 = 0;\n y1 = 0;\n\n x2 = 0;\n y2 = 0;\n\n cpx1 = 0;\n cpy1 = 0;\n\n cpx2 = 0;\n cpy2 = 0;\n\n extent = 0;\n orient: LayoutOrient;\n}\n\ninterface SankeyPathProps extends PathProps {\n shape?: Partial\n}\n\nclass SankeyPath extends graphic.Path {\n shape: SankeyPathShape;\n\n constructor(opts?: SankeyPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SankeyPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SankeyPathShape) {\n const extent = shape.extent;\n ctx.moveTo(shape.x1, shape.y1);\n ctx.bezierCurveTo(\n shape.cpx1, shape.cpy1,\n shape.cpx2, shape.cpy2,\n shape.x2, shape.y2\n );\n if (shape.orient === 'vertical') {\n ctx.lineTo(shape.x2 + extent, shape.y2);\n ctx.bezierCurveTo(\n shape.cpx2 + extent, shape.cpy2,\n shape.cpx1 + extent, shape.cpy1,\n shape.x1 + extent, shape.y1\n );\n }\n else {\n ctx.lineTo(shape.x2, shape.y2 + extent);\n ctx.bezierCurveTo(\n shape.cpx2, shape.cpy2 + extent,\n shape.cpx1, shape.cpy1 + extent,\n shape.x1, shape.y1 + extent\n );\n }\n ctx.closePath();\n }\n\n highlight() {\n enterEmphasis(this);\n }\n\n downplay() {\n leaveEmphasis(this);\n }\n}\n\nclass SankeyView extends ChartView {\n\n static readonly type = 'sankey';\n readonly type = SankeyView.type;\n\n private _model: SankeySeriesModel;\n\n private _focusAdjacencyDisabled = false;\n\n private _data: SeriesData;\n\n render(seriesModel: SankeySeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const sankeyView = this;\n const graph = seriesModel.getGraph();\n const group = this.group;\n const layoutInfo = seriesModel.layoutInfo;\n // view width\n const width = layoutInfo.width;\n // view height\n const height = layoutInfo.height;\n const nodeData = seriesModel.getData();\n const edgeData = seriesModel.getData('edge');\n const orient = seriesModel.get('orient');\n\n this._model = seriesModel;\n\n group.removeAll();\n\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n\n // generate a bezire Curve for each edge\n graph.eachEdge(function (edge) {\n const curve = new SankeyPath();\n const ecData = getECData(curve);\n ecData.dataIndex = edge.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n ecData.dataType = 'edge';\n const edgeModel = edge.getModel();\n const lineStyleModel = edgeModel.getModel('lineStyle');\n const curvature = lineStyleModel.get('curveness');\n const n1Layout = edge.node1.getLayout();\n const node1Model = edge.node1.getModel();\n const dragX1 = node1Model.get('localX');\n const dragY1 = node1Model.get('localY');\n const n2Layout = edge.node2.getLayout();\n const node2Model = edge.node2.getModel();\n const dragX2 = node2Model.get('localX');\n const dragY2 = node2Model.get('localY');\n const edgeLayout = edge.getLayout();\n let x1: number;\n let y1: number;\n let x2: number;\n let y2: number;\n let cpx1: number;\n let cpy1: number;\n let cpx2: number;\n let cpy2: number;\n\n curve.shape.extent = Math.max(1, edgeLayout.dy);\n curve.shape.orient = orient;\n\n if (orient === 'vertical') {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy;\n x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty;\n y2 = dragY2 != null ? dragY2 * height : n2Layout.y;\n cpx1 = x1;\n cpy1 = y1 * (1 - curvature) + y2 * curvature;\n cpx2 = x2;\n cpy2 = y1 * curvature + y2 * (1 - curvature);\n }\n else {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy;\n x2 = dragX2 != null ? dragX2 * width : n2Layout.x;\n y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty;\n cpx1 = x1 * (1 - curvature) + x2 * curvature;\n cpy1 = y1;\n cpx2 = x1 * curvature + x2 * (1 - curvature);\n cpy2 = y2;\n }\n\n curve.setShape({\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n });\n\n curve.useStyle(lineStyleModel.getItemStyle());\n // Special color, use source node color or target node color\n switch (curve.style.fill) {\n case 'source':\n curve.style.fill = edge.node1.getVisual('color');\n curve.style.decal = edge.node1.getVisual('style').decal;\n break;\n case 'target':\n curve.style.fill = edge.node2.getVisual('color');\n curve.style.decal = edge.node2.getVisual('style').decal;\n break;\n case 'gradient':\n const sourceColor = edge.node1.getVisual('color');\n const targetColor = edge.node2.getVisual('color');\n if (typeof sourceColor === 'string' && typeof targetColor === 'string') {\n curve.style.fill = new graphic.LinearGradient(0, 0, +(orient === 'horizontal'), +(orient === 'vertical'), [{\n color: sourceColor,\n offset: 0\n }, {\n color: targetColor,\n offset: 1\n }]);\n }\n }\n\n const emphasisModel = edgeModel.getModel('emphasis');\n\n setStatesStylesFromModel(curve, edgeModel, 'lineStyle', (model) => model.getItemStyle());\n\n group.add(curve);\n\n edgeData.setItemGraphicEl(edge.dataIndex, curve);\n\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n curve,\n focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus,\n emphasisModel.get('blurScope')\n );\n\n getECData(curve).dataType = 'edge';\n });\n\n // Generate a rect for each node\n graph.eachNode(function (node) {\n const layout = node.getLayout();\n const itemModel = node.getModel();\n const dragX = itemModel.get('localX');\n const dragY = itemModel.get('localY');\n const emphasisModel = itemModel.getModel('emphasis');\n\n const rect = new graphic.Rect({\n shape: {\n x: dragX != null ? dragX * width : layout.x,\n y: dragY != null ? dragY * height : layout.y,\n width: layout.dx,\n height: layout.dy\n },\n style: itemModel.getModel('itemStyle').getItemStyle(),\n z2: 10\n });\n\n setLabelStyle(\n rect, getLabelStatesModels(itemModel),\n {\n labelFetcher: seriesModel,\n labelDataIndex: node.dataIndex,\n defaultText: node.id\n }\n );\n\n (rect as ECElement).disableLabelAnimation = true;\n\n rect.setStyle('fill', node.getVisual('color'));\n rect.setStyle('decal', node.getVisual('style').decal);\n\n setStatesStylesFromModel(rect, itemModel);\n\n group.add(rect);\n\n nodeData.setItemGraphicEl(node.dataIndex, rect);\n\n getECData(rect).dataType = 'node';\n\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n rect,\n focus === 'adjacency' ? node.getAdjacentDataIndices() : focus,\n emphasisModel.get('blurScope')\n );\n });\n\n nodeData.eachItemGraphicEl(function (el: graphic.Rect, dataIndex: number) {\n const itemModel = nodeData.getItemModel(dataIndex);\n if (itemModel.get('draggable')) {\n el.drift = function (this: typeof el, dx, dy) {\n sankeyView._focusAdjacencyDisabled = true;\n this.shape.x += dx;\n this.shape.y += dy;\n this.dirty();\n api.dispatchAction({\n type: 'dragNode',\n seriesId: seriesModel.id,\n dataIndex: nodeData.getRawIndex(dataIndex),\n localX: this.shape.x / width,\n localY: this.shape.y / height\n });\n };\n el.ondragend = function () {\n sankeyView._focusAdjacencyDisabled = false;\n };\n el.draggable = true;\n el.cursor = 'move';\n }\n });\n\n if (!this._data && seriesModel.isAnimationEnabled()) {\n group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () {\n group.removeClipPath();\n }));\n }\n\n this._data = seriesModel.getData();\n }\n\n dispose() {\n }\n}\n\n// Add animation to the view\nfunction createGridClipShape(rect: RectLike, seriesModel: SankeySeriesModel, cb: () => void) {\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width + 20\n }\n }, seriesModel, cb);\n\n return rectEl;\n}\n\nexport default SankeyView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport Model from '../../model/Model';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n OptionDataValue,\n SeriesLabelOption,\n ItemStyleOption,\n LineStyleOption,\n LayoutOrient,\n ColorString,\n StatesOptionMixin,\n OptionDataItemObject,\n GraphEdgeItemObject,\n OptionDataValueNumeric,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { LayoutRect } from '../../util/layout';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\n\ntype FocusNodeAdjacency = boolean | 'inEdges' | 'outEdges' | 'allEdges';\n\nexport interface SankeyNodeStateOption {\n label?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n}\n\nexport interface SankeyEdgeStateOption {\n lineStyle?: SankeyEdgeStyleOption\n}\n\ninterface SankeyBothStateOption extends SankeyNodeStateOption, SankeyEdgeStateOption {\n}\n\ninterface SankeyEdgeStyleOption extends LineStyleOption {\n curveness?: number\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'adjacency'\n }\n}\n\nexport interface SankeyNodeItemOption extends SankeyNodeStateOption,\n StatesOptionMixin,\n OptionDataItemObject {\n id?: string\n\n localX?: number\n localY?: number\n\n depth?: number\n\n draggable?: boolean\n\n focusNodeAdjacency?: FocusNodeAdjacency\n}\n\nexport interface SankeyEdgeItemOption extends\n SankeyEdgeStateOption,\n StatesOptionMixin,\n GraphEdgeItemObject {\n focusNodeAdjacency?: FocusNodeAdjacency\n}\n\nexport interface SankeyLevelOption extends SankeyNodeStateOption, SankeyEdgeStateOption {\n depth: number\n}\n\nexport interface SankeySeriesOption\n extends SeriesOption, SankeyBothStateOption,\n BoxLayoutOptionMixin {\n type?: 'sankey'\n\n /**\n * color will be linear mapped.\n */\n color?: ColorString[]\n\n coordinateSystem?: 'view'\n\n orient?: LayoutOrient\n /**\n * The width of the node\n */\n nodeWidth?: number\n /**\n * The vertical distance between two nodes\n */\n nodeGap?: number\n\n /**\n * Control if the node can move or not\n */\n draggable?: boolean\n /**\n * Will be allEdges if true.\n * @deprecated\n */\n focusNodeAdjacency?: FocusNodeAdjacency\n /**\n * The number of iterations to change the position of the node\n */\n layoutIterations?: number\n\n nodeAlign?: 'justify' | 'left' | 'right' // TODO justify should be auto\n\n data?: SankeyNodeItemOption[]\n nodes?: SankeyNodeItemOption[]\n\n edges?: SankeyEdgeItemOption[]\n links?: SankeyEdgeItemOption[]\n\n levels?: SankeyLevelOption[]\n}\n\nclass SankeySeriesModel extends SeriesModel {\n static readonly type = 'series.sankey';\n readonly type = SankeySeriesModel.type;\n\n levelModels: Model[];\n\n layoutInfo: LayoutRect;\n\n /**\n * Init a graph data structure from data in option series\n *\n * @param {Object} option the object used to config echarts view\n * @return {module:echarts/data/SeriesData} storage initial data\n */\n getInitialData(option: SankeySeriesOption, ecModel: GlobalModel) {\n const links = option.edges || option.links;\n const nodes = option.data || option.nodes;\n const levels = option.levels;\n this.levelModels = [];\n const levelModels = this.levelModels;\n\n for (let i = 0; i < levels.length; i++) {\n if (levels[i].depth != null && levels[i].depth >= 0) {\n levelModels[levels[i].depth] = new Model(levels[i], this, ecModel);\n }\n else {\n if (__DEV__) {\n throw new Error('levels[i].depth is mandatory and should be natural number');\n }\n }\n }\n if (nodes && links) {\n const graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);\n return graph.data;\n }\n function beforeLink(nodeData: SeriesData, edgeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model: Model, idx: number) {\n const seriesModel = model.parentModel as SankeySeriesModel;\n const layout = seriesModel.getData().getItemLayout(idx);\n if (layout) {\n const nodeDepth = layout.depth;\n const levelModel = seriesModel.levelModels[nodeDepth];\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n return model;\n });\n\n edgeData.wrapMethod('getItemModel', function (model: Model, idx: number) {\n const seriesModel = model.parentModel as SankeySeriesModel;\n const edge = seriesModel.getGraph().getEdgeByIndex(idx);\n const layout = edge.node1.getLayout();\n if (layout) {\n const depth = layout.depth;\n const levelModel = seriesModel.levelModels[depth];\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n return model;\n });\n }\n }\n\n setNodePosition(dataIndex: number, localPosition: number[]) {\n const nodes = this.option.data || this.option.nodes;\n const dataItem = nodes[dataIndex];\n dataItem.localX = localPosition[0];\n dataItem.localY = localPosition[1];\n }\n\n /**\n * Return the graphic data structure\n *\n * @return graphic data structure\n */\n getGraph() {\n return this.getData().graph;\n }\n\n /**\n * Get edge data of graphic data structure\n *\n * @return data structure of list\n */\n getEdgeData() {\n return this.getGraph().edgeData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: 'node' | 'edge'\n ) {\n function noValue(val: unknown): boolean {\n return isNaN(val as number) || val == null;\n }\n // dataType === 'node' or empty do not show tooltip by default\n if (dataType === 'edge') {\n const params = this.getDataParams(dataIndex, dataType);\n const rawDataOpt = params.data as SankeyEdgeItemOption;\n const edgeValue = params.value;\n const edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target;\n return createTooltipMarkup('nameValue', {\n name: edgeName,\n value: edgeValue,\n noValue: noValue(edgeValue)\n });\n }\n // dataType === 'node'\n else {\n const node = this.getGraph().getNodeByIndex(dataIndex);\n const value = node.getLayout().value;\n const name = (this.getDataParams(dataIndex, dataType).data as SankeyNodeItemOption).name;\n return createTooltipMarkup('nameValue', {\n name: name != null ? name + '' : null,\n value: value,\n noValue: noValue(value)\n });\n }\n }\n\n optionUpdated() {}\n\n // Override Series.getDataParams()\n getDataParams(dataIndex: number, dataType: 'node' | 'edge') {\n const params = super.getDataParams(dataIndex, dataType);\n if (params.value == null && dataType === 'node') {\n const node = this.getGraph().getNodeByIndex(dataIndex);\n const nodeValue = node.getLayout().value;\n params.value = nodeValue;\n }\n return params;\n }\n\n static defaultOption: SankeySeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'view',\n\n left: '5%',\n top: '5%',\n right: '20%',\n bottom: '5%',\n\n orient: 'horizontal',\n\n nodeWidth: 20,\n\n nodeGap: 8,\n draggable: true,\n\n layoutIterations: 32,\n\n label: {\n show: true,\n position: 'right',\n fontSize: 12\n },\n\n levels: [],\n\n nodeAlign: 'justify',\n\n lineStyle: {\n color: '#314656',\n opacity: 0.2,\n curveness: 0.5\n },\n\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n opacity: 0.5\n }\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n animationEasing: 'linear',\n\n animationDuration: 1000\n };\n}\n\nexport default SankeySeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {groupData} from '../../util/model';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SankeySeriesModel, { SankeySeriesOption, SankeyNodeItemOption } from './SankeySeries';\nimport { GraphNode, GraphEdge } from '../../data/Graph';\nimport { LayoutOrient } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\nexport default function sankeyLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n\n ecModel.eachSeriesByType('sankey', function (seriesModel: SankeySeriesModel) {\n\n const nodeWidth = seriesModel.get('nodeWidth');\n const nodeGap = seriesModel.get('nodeGap');\n\n const layoutInfo = getViewRect(seriesModel, api);\n\n seriesModel.layoutInfo = layoutInfo;\n\n const width = layoutInfo.width;\n const height = layoutInfo.height;\n\n const graph = seriesModel.getGraph();\n\n const nodes = graph.nodes;\n const edges = graph.edges;\n\n computeNodeValues(nodes);\n\n const filteredNodes = zrUtil.filter(nodes, function (node) {\n return node.getLayout().value === 0;\n });\n\n const iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');\n\n const orient = seriesModel.get('orient');\n\n const nodeAlign = seriesModel.get('nodeAlign');\n\n layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);\n });\n}\n\n/**\n * Get the layout position of the whole view\n */\nfunction getViewRect(seriesModel: SankeySeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nfunction layoutSankey(\n nodes: GraphNode[],\n edges: GraphEdge[],\n nodeWidth: number,\n nodeGap: number,\n width: number,\n height: number,\n iterations: number,\n orient: LayoutOrient,\n nodeAlign: SankeySeriesOption['nodeAlign']\n) {\n computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);\n computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);\n computeEdgeDepths(nodes, orient);\n}\n\n/**\n * Compute the value of each node by summing the associated edge's value\n */\nfunction computeNodeValues(nodes: GraphNode[]) {\n zrUtil.each(nodes, function (node) {\n const value1 = sum(node.outEdges, getEdgeValue);\n const value2 = sum(node.inEdges, getEdgeValue);\n const nodeRawValue = node.getValue() as number || 0;\n const value = Math.max(value1, value2, nodeRawValue);\n node.setLayout({value: value}, true);\n });\n}\n\n/**\n * Compute the x-position for each node.\n *\n * Here we use Kahn algorithm to detect cycle when we traverse\n * the node to computer the initial x position.\n */\nfunction computeNodeBreadths(\n nodes: GraphNode[],\n edges: GraphEdge[],\n nodeWidth: number,\n width: number,\n height: number,\n orient: LayoutOrient,\n nodeAlign: SankeySeriesOption['nodeAlign']\n) {\n // Used to mark whether the edge is deleted. if it is deleted,\n // the value is 0, otherwise it is 1.\n const remainEdges = [];\n // Storage each node's indegree.\n const indegreeArr = [];\n //Used to storage the node with indegree is equal to 0.\n let zeroIndegrees: GraphNode[] = [];\n let nextTargetNode: GraphNode[] = [];\n let x = 0;\n // let kx = 0;\n\n for (let i = 0; i < edges.length; i++) {\n remainEdges[i] = 1;\n }\n for (let i = 0; i < nodes.length; i++) {\n indegreeArr[i] = nodes[i].inEdges.length;\n if (indegreeArr[i] === 0) {\n zeroIndegrees.push(nodes[i]);\n }\n }\n let maxNodeDepth = -1;\n // Traversing nodes using topological sorting to calculate the\n // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')\n // position of the nodes.\n while (zeroIndegrees.length) {\n for (let idx = 0; idx < zeroIndegrees.length; idx++) {\n const node = zeroIndegrees[idx];\n const item = node.hostGraph.data.getRawDataItem(node.dataIndex) as SankeyNodeItemOption;\n const isItemDepth = item.depth != null && item.depth >= 0;\n if (isItemDepth && item.depth > maxNodeDepth) {\n maxNodeDepth = item.depth;\n }\n node.setLayout({depth: isItemDepth ? item.depth : x}, true);\n orient === 'vertical'\n ? node.setLayout({dy: nodeWidth}, true)\n : node.setLayout({dx: nodeWidth}, true);\n\n for (let edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {\n const edge = node.outEdges[edgeIdx];\n const indexEdge = edges.indexOf(edge);\n remainEdges[indexEdge] = 0;\n const targetNode = edge.node2;\n const nodeIndex = nodes.indexOf(targetNode);\n if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {\n nextTargetNode.push(targetNode);\n }\n }\n }\n ++x;\n zeroIndegrees = nextTargetNode;\n nextTargetNode = [];\n }\n\n for (let i = 0; i < remainEdges.length; i++) {\n if (remainEdges[i] === 1) {\n throw new Error('Sankey is a DAG, the original data has cycle!');\n }\n }\n\n const maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;\n if (nodeAlign && nodeAlign !== 'left') {\n adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);\n }\n const kx = orient === 'vertical'\n ? (height - nodeWidth) / maxDepth\n : (width - nodeWidth) / maxDepth;\n\n scaleNodeBreadths(nodes, kx, orient);\n}\n\nfunction isNodeDepth(node: GraphNode) {\n const item = node.hostGraph.data.getRawDataItem(node.dataIndex) as SankeyNodeItemOption;\n return item.depth != null && item.depth >= 0;\n}\n\nfunction adjustNodeWithNodeAlign(\n nodes: GraphNode[],\n nodeAlign: SankeySeriesOption['nodeAlign'],\n orient: LayoutOrient,\n maxDepth: number\n) {\n if (nodeAlign === 'right') {\n let nextSourceNode: GraphNode[] = [];\n let remainNodes = nodes;\n let nodeHeight = 0;\n while (remainNodes.length) {\n for (let i = 0; i < remainNodes.length; i++) {\n const node = remainNodes[i];\n node.setLayout({skNodeHeight: nodeHeight}, true);\n for (let j = 0; j < node.inEdges.length; j++) {\n const edge = node.inEdges[j];\n if (nextSourceNode.indexOf(edge.node1) < 0) {\n nextSourceNode.push(edge.node1);\n }\n }\n }\n remainNodes = nextSourceNode;\n nextSourceNode = [];\n ++nodeHeight;\n }\n\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node)) {\n node.setLayout({depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)}, true);\n }\n });\n }\n else if (nodeAlign === 'justify') {\n moveSinksRight(nodes, maxDepth);\n }\n}\n\n/**\n * All the node without outEgdes are assigned maximum x-position and\n * be aligned in the last column.\n *\n * @param nodes. node of sankey view.\n * @param maxDepth. use to assign to node without outEdges as x-position.\n */\nfunction moveSinksRight(nodes: GraphNode[], maxDepth: number) {\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node) && !node.outEdges.length) {\n node.setLayout({depth: maxDepth}, true);\n }\n });\n}\n\n/**\n * Scale node x-position to the width\n *\n * @param nodes node of sankey view\n * @param kx multiple used to scale nodes\n */\nfunction scaleNodeBreadths(nodes: GraphNode[], kx: number, orient: LayoutOrient) {\n zrUtil.each(nodes, function (node) {\n const nodeDepth = node.getLayout().depth * kx;\n orient === 'vertical'\n ? node.setLayout({y: nodeDepth}, true)\n : node.setLayout({x: nodeDepth}, true);\n });\n}\n\n/**\n * Using Gauss-Seidel iterations method to compute the node depth(y-position)\n *\n * @param nodes node of sankey view\n * @param edges edge of sankey view\n * @param height the whole height of the area to draw the view\n * @param nodeGap the vertical distance between two nodes\n * in the same column.\n * @param iterations the number of iterations for the algorithm\n */\nfunction computeNodeDepths(\n nodes: GraphNode[],\n edges: GraphEdge[],\n height: number,\n width: number,\n nodeGap: number,\n iterations: number,\n orient: LayoutOrient\n) {\n const nodesByBreadth = prepareNodesByBreadth(nodes, orient);\n\n initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n\n for (let alpha = 1; iterations > 0; iterations--) {\n // 0.99 is a experience parameter, ensure that each iterations of\n // changes as small as possible.\n alpha *= 0.99;\n relaxRightToLeft(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n relaxLeftToRight(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n }\n}\n\nfunction prepareNodesByBreadth(nodes: GraphNode[], orient: LayoutOrient) {\n const nodesByBreadth: GraphNode[][] = [];\n const keyAttr = orient === 'vertical' ? 'y' : 'x';\n\n const groupResult = groupData(nodes, function (node) {\n return node.getLayout()[keyAttr] as number;\n });\n groupResult.keys.sort(function (a, b) {\n return a - b;\n });\n zrUtil.each(groupResult.keys, function (key) {\n nodesByBreadth.push(groupResult.buckets.get(key));\n });\n\n return nodesByBreadth;\n}\n\n/**\n * Compute the original y-position for each node\n */\nfunction initializeNodeDepth(\n nodesByBreadth: GraphNode[][],\n edges: GraphEdge[],\n height: number,\n width: number,\n nodeGap: number,\n orient: LayoutOrient\n) {\n let minKy = Infinity;\n zrUtil.each(nodesByBreadth, function (nodes) {\n const n = nodes.length;\n let sum = 0;\n zrUtil.each(nodes, function (node) {\n sum += node.getLayout().value;\n });\n const ky = orient === 'vertical'\n ? (width - (n - 1) * nodeGap) / sum\n : (height - (n - 1) * nodeGap) / sum;\n\n if (ky < minKy) {\n minKy = ky;\n }\n });\n\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node, i) {\n const nodeDy = node.getLayout().value * minKy;\n if (orient === 'vertical') {\n node.setLayout({x: i}, true);\n node.setLayout({dx: nodeDy}, true);\n }\n else {\n node.setLayout({y: i}, true);\n node.setLayout({dy: nodeDy}, true);\n }\n });\n });\n\n zrUtil.each(edges, function (edge) {\n const edgeDy = +edge.getValue() * minKy;\n edge.setLayout({dy: edgeDy}, true);\n });\n}\n\n/**\n * Resolve the collision of initialized depth (y-position)\n */\nfunction resolveCollisions(\n nodesByBreadth: GraphNode[][],\n nodeGap: number,\n height: number,\n width: number,\n orient: LayoutOrient\n) {\n const keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodesByBreadth, function (nodes) {\n nodes.sort(function (a, b) {\n return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];\n });\n let nodeX;\n let node;\n let dy;\n let y0 = 0;\n const n = nodes.length;\n const nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';\n for (let i = 0; i < n; i++) {\n node = nodes[i];\n dy = y0 - node.getLayout()[keyAttr];\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] + dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n }\n y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;\n }\n const viewWidth = orient === 'vertical' ? width : height;\n // If the bottommost node goes outside the bounds, push it back up\n dy = y0 - nodeGap - viewWidth;\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n\n y0 = nodeX;\n for (let i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n }\n y0 = node.getLayout()[keyAttr];\n }\n }\n });\n}\n\n/**\n * Change the y-position of the nodes, except most the right side nodes\n * @param nodesByBreadth\n * @param alpha parameter used to adjust the nodes y-position\n */\nfunction relaxRightToLeft(\n nodesByBreadth: GraphNode[][],\n alpha: number,\n orient: LayoutOrient\n) {\n zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.outEdges.length) {\n let y = sum(node.outEdges, weightedTarget, orient)\n / sum(node.outEdges, getEdgeValue);\n\n if (isNaN(y)) {\n const len = node.outEdges.length;\n y = len ? sum(node.outEdges, centerTarget, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n const nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({x: nodeX}, true);\n }\n else {\n const nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({y: nodeY}, true);\n }\n }\n });\n });\n}\n\nfunction weightedTarget(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node2, orient) * (edge.getValue() as number);\n}\nfunction centerTarget(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node2, orient);\n}\n\nfunction weightedSource(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node1, orient) * (edge.getValue() as number);\n}\nfunction centerSource(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node1, orient);\n}\n\nfunction center(node: GraphNode, orient: LayoutOrient) {\n return orient === 'vertical'\n ? node.getLayout().x + node.getLayout().dx / 2\n : node.getLayout().y + node.getLayout().dy / 2;\n}\n\nfunction getEdgeValue(edge: GraphEdge) {\n return edge.getValue() as number;\n}\n\nfunction sum(array: T[], cb: (item: T, orient?: LayoutOrient) => number, orient?: LayoutOrient) {\n let sum = 0;\n const len = array.length;\n let i = -1;\n while (++i < len) {\n const value = +cb(array[i], orient);\n if (!isNaN(value)) {\n sum += value;\n }\n }\n return sum;\n}\n\n/**\n * Change the y-position of the nodes, except most the left side nodes\n */\nfunction relaxLeftToRight(nodesByBreadth: GraphNode[][], alpha: number, orient: LayoutOrient) {\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.inEdges.length) {\n let y = sum(node.inEdges, weightedSource, orient)\n / sum(node.inEdges, getEdgeValue);\n\n if (isNaN(y)) {\n const len = node.inEdges.length;\n y = len ? sum(node.inEdges, centerSource, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n const nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({x: nodeX}, true);\n }\n else {\n const nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({y: nodeY}, true);\n }\n }\n });\n });\n}\n\n/**\n * Compute the depth(y-position) of each edge\n */\nfunction computeEdgeDepths(nodes: GraphNode[], orient: LayoutOrient) {\n const keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodes, function (node) {\n node.outEdges.sort(function (a, b) {\n return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];\n });\n node.inEdges.sort(function (a, b) {\n return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];\n });\n });\n zrUtil.each(nodes, function (node) {\n let sy = 0;\n let ty = 0;\n zrUtil.each(node.outEdges, function (edge) {\n edge.setLayout({sy: sy}, true);\n sy += edge.getLayout().dy;\n });\n zrUtil.each(node.inEdges, function (edge) {\n edge.setLayout({ty: ty}, true);\n ty += edge.getLayout().dy;\n });\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapping from '../../visual/VisualMapping';\nimport GlobalModel from '../../model/Global';\nimport SankeySeriesModel, { SankeyNodeItemOption } from './SankeySeries';\n\nexport default function sankeyVisual(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('sankey', function (seriesModel: SankeySeriesModel) {\n const graph = seriesModel.getGraph();\n const nodes = graph.nodes;\n if (nodes.length) {\n let minValue = Infinity;\n let maxValue = -Infinity;\n zrUtil.each(nodes, function (node) {\n const nodeValue = node.getLayout().value;\n if (nodeValue < minValue) {\n minValue = nodeValue;\n }\n if (nodeValue > maxValue) {\n maxValue = nodeValue;\n }\n });\n\n zrUtil.each(nodes, function (node) {\n const mapping = new VisualMapping({\n type: 'color',\n mappingMethod: 'linear',\n dataExtent: [minValue, maxValue],\n visual: seriesModel.get('color')\n });\n\n const mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);\n const customColor = node.getModel().get(['itemStyle', 'color']);\n if (customColor != null) {\n node.setVisual('color', customColor);\n node.setVisual('style', {fill: customColor});\n }\n else {\n node.setVisual('color', mapValueToColor);\n node.setVisual('style', {fill: mapValueToColor});\n }\n });\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SankeyView from './SankeyView';\nimport SankeySeriesModel from './SankeySeries';\n\nimport sankeyLayout from './sankeyLayout';\nimport sankeyVisual from './sankeyVisual';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\ninterface SankeyDragNodePayload extends Payload {\n localX: number\n localY: number\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(SankeyView);\n registers.registerSeriesModel(SankeySeriesModel);\n\n registers.registerLayout(sankeyLayout);\n registers.registerVisual(sankeyVisual);\n\n registers.registerAction({\n type: 'dragNode',\n event: 'dragnode',\n // here can only use 'update' now, other value is not support in echarts.\n update: 'update'\n }, function (payload: SankeyDragNodePayload, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sankey',\n query: payload\n }, function (seriesModel: SankeySeriesModel) {\n seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]);\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from './createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper';\nimport type { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient } from '../../util/types';\nimport type GlobalModel from '../../model/Global';\nimport type SeriesModel from '../../model/Series';\nimport type CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport type SeriesData from '../../data/SeriesData';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport { CoordDimensionDefinition } from '../../data/helper/createDimensions';\n\ninterface CommonOption extends SeriesOption, SeriesOnCartesianOptionMixin {\n layout?: LayoutOrient\n\n // data?: (DataItemOption | number[])[]\n}\n\ntype WhiskerBoxCommonData = (DataItemOption | number[])[];\n\ninterface DataItemOption {\n value?: number[]\n}\n\ninterface WhiskerBoxCommonMixin extends SeriesModel{}\nclass WhiskerBoxCommonMixin {\n\n /**\n * @private\n * @type {string}\n */\n _baseAxisDim: string;\n\n defaultValueDimensions: CoordDimensionDefinition['dimsDef'];\n\n /**\n * @override\n */\n getInitialData(option: Opts, ecModel: GlobalModel): SeriesData {\n // When both types of xAxis and yAxis are 'value', layout is\n // needed to be specified by user. Otherwise, layout can be\n // judged by which axis is category.\n\n let ordinalMeta;\n\n const xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex')) as CartesianAxisModel;\n const yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex')) as CartesianAxisModel;\n const xAxisType = xAxisModel.get('type');\n const yAxisType = yAxisModel.get('type');\n let addOrdinal;\n\n // FIXME\n // Consider time axis.\n\n if (xAxisType === 'category') {\n option.layout = 'horizontal';\n ordinalMeta = xAxisModel.getOrdinalMeta();\n addOrdinal = true;\n }\n else if (yAxisType === 'category') {\n option.layout = 'vertical';\n ordinalMeta = yAxisModel.getOrdinalMeta();\n addOrdinal = true;\n }\n else {\n option.layout = option.layout || 'horizontal';\n }\n\n const coordDims = ['x', 'y'];\n const baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;\n const baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];\n const otherAxisDim = coordDims[1 - baseAxisDimIndex];\n const axisModels = [xAxisModel, yAxisModel];\n const baseAxisType = axisModels[baseAxisDimIndex].get('type');\n const otherAxisType = axisModels[1 - baseAxisDimIndex].get('type');\n const data = option.data as WhiskerBoxCommonData;\n\n // Clone a new data for next setOption({}) usage.\n // Avoid modifying current data will affect further update.\n if (data && addOrdinal) {\n const newOptionData: WhiskerBoxCommonData = [];\n zrUtil.each(data, function (item, index) {\n let newItem;\n if (zrUtil.isArray(item)) {\n newItem = item.slice();\n // Modify current using data.\n item.unshift(index);\n }\n else if (zrUtil.isArray(item.value)) {\n newItem = zrUtil.extend({}, item);\n newItem.value = newItem.value.slice();\n // Modify current using data.\n item.value.unshift(index);\n }\n else {\n newItem = item;\n }\n newOptionData.push(newItem);\n });\n option.data = newOptionData;\n }\n\n const defaultValueDimensions = this.defaultValueDimensions;\n const coordDimensions: CoordDimensionDefinition[] = [{\n name: baseAxisDim,\n type: getDimensionTypeByAxis(baseAxisType),\n ordinalMeta: ordinalMeta,\n otherDims: {\n tooltip: false,\n itemName: 0\n },\n dimsDef: ['base']\n }, {\n name: otherAxisDim,\n type: getDimensionTypeByAxis(otherAxisType),\n dimsDef: defaultValueDimensions.slice()\n }];\n\n return createSeriesDataSimply(\n this,\n {\n coordDimensions: coordDimensions,\n dimensionsCount: defaultValueDimensions.length + 1,\n encodeDefaulter: zrUtil.curry(\n makeSeriesEncodeForAxisCoordSys, coordDimensions, this as any\n )\n }\n );\n }\n\n /**\n * If horizontal, base axis is x, otherwise y.\n * @override\n */\n getBaseAxis(): Axis2D {\n const dim = this._baseAxisDim;\n return (this.ecModel.getComponent(\n dim + 'Axis', this.get(dim + 'AxisIndex' as 'xAxisIndex' | 'yAxisIndex')\n ) as CartesianAxisModel).axis;\n }\n\n};\n\n\nexport {WhiskerBoxCommonMixin};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {WhiskerBoxCommonMixin} from '../helper/whiskerBoxCommon';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n LayoutOrient,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { mixin } from 'zrender/src/core/util';\n\n// [min, Q1, median (or Q2), Q3, max]\ntype BoxplotDataValue = OptionDataValueNumeric[];\n\n\nexport interface BoxplotStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface BoxplotDataItemOption\n extends BoxplotStateOption, StatesOptionMixin {\n value: BoxplotDataValue\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface BoxplotSeriesOption extends SeriesOption, BoxplotStateOption,\n SeriesOnCartesianOptionMixin, SeriesEncodeOptionMixin {\n type?: 'boxplot'\n\n coordinateSystem?: 'cartesian2d'\n\n layout?: LayoutOrient\n /**\n * [min, max] can be percent of band width.\n */\n boxWidth?: (string | number)[]\n\n data?: (BoxplotDataValue | BoxplotDataItemOption)[]\n}\n\nclass BoxplotSeriesModel extends SeriesModel {\n\n static readonly type = 'series.boxplot';\n readonly type = BoxplotSeriesModel.type;\n\n static readonly dependencies = ['xAxis', 'yAxis', 'grid'];\n\n coordinateSystem: Cartesian2D;\n // TODO\n // box width represents group size, so dimension should have 'size'.\n\n /**\n * @see \n * The meanings of 'min' and 'max' depend on user,\n * and echarts do not need to know it.\n * @readOnly\n */\n defaultValueDimensions = [\n {name: 'min', defaultTooltip: true},\n {name: 'Q1', defaultTooltip: true},\n {name: 'median', defaultTooltip: true},\n {name: 'Q3', defaultTooltip: true},\n {name: 'max', defaultTooltip: true}\n ];\n\n dimensions: string[];\n\n visualDrawType = 'stroke' as const;\n\n static defaultOption: BoxplotSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n layout: null,\n boxWidth: [7, 50],\n\n itemStyle: {\n color: '#fff',\n borderWidth: 1\n },\n\n emphasis: {\n scale: true,\n\n itemStyle: {\n borderWidth: 2,\n shadowBlur: 5,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n },\n\n animationDuration: 800\n };\n}\n\ninterface BoxplotSeriesModel extends WhiskerBoxCommonMixin {\n getBaseAxis(): Axis2D\n}\nmixin(BoxplotSeriesModel, WhiskerBoxCommonMixin, true);\n\nexport default BoxplotSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport BoxplotSeriesModel, { BoxplotDataItemOption } from './BoxplotSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { BoxplotItemLayout } from './boxplotLayout';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nclass BoxplotView extends ChartView {\n static type = 'boxplot';\n type = BoxplotView.type;\n\n private _data: SeriesData;\n\n render(seriesModel: BoxplotSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const group = this.group;\n const oldData = this._data;\n\n // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!this._data) {\n group.removeAll();\n }\n\n const constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0;\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n const itemLayout = data.getItemLayout(newIdx) as BoxplotItemLayout;\n const symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n })\n .update(function (newIdx, oldIdx) {\n let symbolEl = oldData.getItemGraphicEl(oldIdx) as BoxPath;\n\n // Empty data\n if (!data.hasValue(newIdx)) {\n group.remove(symbolEl);\n return;\n }\n\n const itemLayout = data.getItemLayout(newIdx) as BoxplotItemLayout;\n if (!symbolEl) {\n symbolEl = createNormalBox(itemLayout, data, newIdx, constDim);\n }\n else {\n saveOldStyle(symbolEl);\n updateNormalBoxData(itemLayout, symbolEl, data, newIdx);\n }\n\n group.add(symbolEl);\n\n data.setItemGraphicEl(newIdx, symbolEl);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n })\n .execute();\n\n this._data = data;\n }\n\n remove(ecModel: GlobalModel) {\n const group = this.group;\n const data = this._data;\n this._data = null;\n data && data.eachItemGraphicEl(function (el) {\n el && group.remove(el);\n });\n }\n}\n\nclass BoxPathShape {\n points: number[][];\n}\n\ninterface BoxPathProps extends PathProps {\n shape?: Partial\n}\n\nclass BoxPath extends Path {\n\n readonly type = 'boxplotBoxPath';\n shape: BoxPathShape;\n\n constructor(opts?: BoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new BoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: BoxPathShape) {\n const ends = shape.points;\n\n let i = 0;\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n for (; i < 4; i++) {\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n ctx.closePath();\n\n for (; i < ends.length; i++) {\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n }\n\n}\n\nfunction createNormalBox(\n itemLayout: BoxplotItemLayout,\n data: SeriesData,\n dataIndex: number,\n constDim: number,\n isInit?: boolean\n) {\n const ends = itemLayout.ends;\n\n const el = new BoxPath({\n shape: {\n points: isInit\n ? transInit(ends, constDim, itemLayout)\n : ends\n }\n });\n\n updateNormalBoxData(itemLayout, el, data, dataIndex, isInit);\n\n return el;\n}\n\nfunction updateNormalBoxData(\n itemLayout: BoxplotItemLayout,\n el: BoxPath,\n data: SeriesData,\n dataIndex: number,\n isInit?: boolean\n) {\n const seriesModel = data.hostModel;\n const updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];\n\n updateMethod(\n el,\n {shape: {points: itemLayout.ends}},\n seriesModel,\n dataIndex\n );\n\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n\n el.z2 = 100;\n\n const itemModel = data.getItemModel(dataIndex);\n\n setStatesStylesFromModel(el, itemModel);\n\n enableHoverEmphasis(el, itemModel.get(['emphasis', 'focus']), itemModel.get(['emphasis', 'blurScope']));\n}\n\nfunction transInit(points: number[][], dim: number, itemLayout: BoxplotItemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[dim] = itemLayout.initBaseline;\n return point;\n });\n}\n\nexport default BoxplotView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport BoxplotSeriesModel from './BoxplotSeries';\n\nexport default function boxplotVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../../util/number';\nimport type GlobalModel from '../../model/Global';\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\nconst each = zrUtil.each;\n\ninterface GroupItem {\n seriesModels: BoxplotSeriesModel[]\n axis: Axis2D\n boxOffsetList: number[]\n boxWidthList: number[]\n}\n\nexport interface BoxplotItemLayout {\n ends: number[][]\n initBaseline: number\n}\n\nexport default function boxplotLayout(ecModel: GlobalModel) {\n\n const groupResult = groupSeriesByAxis(ecModel);\n\n each(groupResult, function (groupItem) {\n const seriesModels = groupItem.seriesModels;\n\n if (!seriesModels.length) {\n return;\n }\n\n calculateBase(groupItem);\n\n each(seriesModels, function (seriesModel, idx) {\n layoutSingleSeries(\n seriesModel,\n groupItem.boxOffsetList[idx],\n groupItem.boxWidthList[idx]\n );\n });\n });\n}\n\n/**\n * Group series by axis.\n */\nfunction groupSeriesByAxis(ecModel: GlobalModel) {\n const result: GroupItem[] = [];\n const axisList: Axis2D[] = [];\n\n ecModel.eachSeriesByType('boxplot', function (seriesModel: BoxplotSeriesModel) {\n const baseAxis = seriesModel.getBaseAxis();\n let idx = zrUtil.indexOf(axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {\n axis: baseAxis,\n seriesModels: []\n } as GroupItem;\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n\n return result;\n}\n\n/**\n * Calculate offset and box width for each series.\n */\nfunction calculateBase(groupItem: GroupItem) {\n let extent;\n const baseAxis = groupItem.axis;\n const seriesModels = groupItem.seriesModels;\n const seriesCount = seriesModels.length;\n\n const boxWidthList: number[] = groupItem.boxWidthList = [];\n const boxOffsetList: number[] = groupItem.boxOffsetList = [];\n const boundList: number[][] = [];\n\n let bandWidth: number;\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n }\n else {\n let maxDataCount = 0;\n each(seriesModels, function (seriesModel) {\n maxDataCount = Math.max(maxDataCount, seriesModel.getData().count());\n });\n extent = baseAxis.getExtent(),\n Math.abs(extent[1] - extent[0]) / maxDataCount;\n }\n\n each(seriesModels, function (seriesModel) {\n let boxWidthBound = seriesModel.get('boxWidth');\n if (!zrUtil.isArray(boxWidthBound)) {\n boxWidthBound = [boxWidthBound, boxWidthBound];\n }\n boundList.push([\n parsePercent(boxWidthBound[0], bandWidth) || 0,\n parsePercent(boxWidthBound[1], bandWidth) || 0\n ]);\n });\n\n const availableWidth = bandWidth * 0.8 - 2;\n const boxGap = availableWidth / seriesCount * 0.3;\n const boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;\n let base = boxWidth / 2 - availableWidth / 2;\n\n each(seriesModels, function (seriesModel, idx) {\n boxOffsetList.push(base);\n base += boxGap + boxWidth;\n\n boxWidthList.push(\n Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])\n );\n });\n}\n\n/**\n * Calculate points location for each series.\n */\nfunction layoutSingleSeries(seriesModel: BoxplotSeriesModel, offset: number, boxWidth: number) {\n const coordSys = seriesModel.coordinateSystem;\n const data = seriesModel.getData();\n const halfWidth = boxWidth / 2;\n const cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n const vDimIdx = 1 - cDimIdx;\n const coordDims = ['x', 'y'];\n const cDim = data.mapDimension(coordDims[cDimIdx]);\n const vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (let dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n const axisDimVal = data.get(cDim, dataIndex) as number;\n\n const median = getPoint(axisDimVal, vDims[2], dataIndex);\n const end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n const end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n const end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n const end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n\n const ends: number[][] = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n } as BoxplotItemLayout);\n }\n\n function getPoint(axisDimVal: number, dim: string, dataIndex: number) {\n const val = data.get(dim, dataIndex) as number;\n const p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n let point;\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n }\n else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n return point;\n }\n\n function addBodyEnd(ends: number[][], point: number[], start?: boolean) {\n const point1 = point.slice();\n const point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start\n ? ends.push(point1, point2)\n : ends.push(point2, point1);\n }\n\n function layEndLine(ends: number[][], endCenter: number[]) {\n const from = endCenter.slice();\n const to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { quantile, asc } from '../../util/number';\nimport { isFunction, isString } from 'zrender/src/core/util';\n\nexport interface PrepareBoxplotDataOpt {\n boundIQR?: number | 'none';\n // Like \"expriment{value}\" produce: \"expriment0\", \"expriment1\", ...\n itemNameFormatter?: string | ((params: { value: number }) => string);\n}\n\n\n/**\n * See:\n * \n * \n *\n * Helper method for preparing data.\n *\n * @param rawData like\n * [\n * [12,232,443], (raw data set for the first box)\n * [3843,5545,1232], (raw data set for the second box)\n * ...\n * ]\n * @param opt.boundIQR=1.5 Data less than min bound is outlier.\n * default 1.5, means Q1 - 1.5 * (Q3 - Q1).\n * If 'none'/0 passed, min bound will not be used.\n */\nexport default function prepareBoxplotData(\n rawData: number[][],\n opt: PrepareBoxplotDataOpt\n): {\n boxData: (number | string)[][];\n outliers: (number | string)[][];\n} {\n opt = opt || {};\n const boxData = [];\n const outliers = [];\n const boundIQR = opt.boundIQR;\n const useExtreme = boundIQR === 'none' || boundIQR === 0;\n\n for (let i = 0; i < rawData.length; i++) {\n const ascList = asc(rawData[i].slice());\n\n const Q1 = quantile(ascList, 0.25);\n const Q2 = quantile(ascList, 0.5);\n const Q3 = quantile(ascList, 0.75);\n const min = ascList[0];\n const max = ascList[ascList.length - 1];\n\n const bound = (boundIQR == null ? 1.5 : boundIQR as number) * (Q3 - Q1);\n\n const low = useExtreme\n ? min\n : Math.max(min, Q1 - bound);\n const high = useExtreme\n ? max\n : Math.min(max, Q3 + bound);\n\n const itemNameFormatter = opt.itemNameFormatter;\n const itemName = isFunction(itemNameFormatter)\n ? itemNameFormatter({ value: i })\n : isString(itemNameFormatter)\n ? itemNameFormatter.replace('{value}', i + '')\n : i + '';\n\n boxData.push([itemName, low, Q1, Q2, Q3, high]);\n\n for (let j = 0; j < ascList.length; j++) {\n const dataItem = ascList[j];\n if (dataItem < low || dataItem > high) {\n const outlier = [itemName, dataItem];\n outliers.push(outlier);\n }\n }\n }\n return {\n boxData: boxData,\n outliers: outliers\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { DataTransformOption, ExternalDataTransform } from '../../data/helper/transform';\nimport prepareBoxplotData, { PrepareBoxplotDataOpt } from './prepareBoxplotData';\nimport { throwError, makePrintable } from '../../util/log';\nimport { SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\n\n\nexport interface BoxplotTransformOption extends DataTransformOption {\n type: 'boxplot';\n config: PrepareBoxplotDataOpt;\n}\n\nexport const boxplotTransform: ExternalDataTransform = {\n\n type: 'echarts:boxplot',\n\n transform: function transform(params) {\n const upstream = params.upstream;\n\n if (upstream.sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n 'source data is not applicable for this boxplot transform. Expect number[][].'\n );\n }\n throwError(errMsg);\n }\n\n const result = prepareBoxplotData(\n upstream.getRawData() as number[][],\n params.config\n );\n\n return [{\n dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'],\n data: result.boxData\n }, {\n data: result.outliers\n }];\n }\n};\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport BoxplotView from './BoxplotView';\nimport boxplotVisual from './boxplotVisual';\nimport boxplotLayout from './boxplotLayout';\nimport { boxplotTransform } from './boxplotTransform';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerSeriesModel(BoxplotSeriesModel);\n registers.registerChartView(BoxplotView);\n registers.registerVisual(boxplotVisual);\n registers.registerLayout(boxplotLayout);\n registers.registerTransform(boxplotTransform);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel } from '../../util/states';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport CandlestickSeriesModel, { CandlestickDataItemOption } from './CandlestickSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport {CandlestickItemLayout} from './candlestickLayout';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport Model from '../../model/Model';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst SKIP_PROPS = ['color', 'borderColor'] as const;\n\nclass CandlestickView extends ChartView {\n\n static readonly type = 'candlestick';\n readonly type = CandlestickView.type;\n\n private _isLargeDraw: boolean;\n\n private _data: SeriesData;\n\n render(seriesModel: CandlestickSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n // If there is clipPath created in large mode. Remove it.\n this.group.removeClipPath();\n\n this._updateDrawMode(seriesModel);\n\n this._isLargeDraw\n ? this._renderLarge(seriesModel)\n : this._renderNormal(seriesModel);\n }\n\n incrementalPrepareRender(seriesModel: CandlestickSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._clear();\n this._updateDrawMode(seriesModel);\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: CandlestickSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._isLargeDraw\n ? this._incrementalRenderLarge(params, seriesModel)\n : this._incrementalRenderNormal(params, seriesModel);\n }\n\n _updateDrawMode(seriesModel: CandlestickSeriesModel) {\n const isLargeDraw = seriesModel.pipelineContext.large;\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n this._clear();\n }\n }\n\n _renderNormal(seriesModel: CandlestickSeriesModel) {\n const data = seriesModel.getData();\n const oldData = this._data;\n const group = this.group;\n const isSimpleBox = data.getLayout('isSimpleBox');\n\n const needsClip = seriesModel.get('clip', true);\n const coord = seriesModel.coordinateSystem;\n const clipArea = coord.getArea && coord.getArea();\n\n // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!this._data) {\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n const itemLayout = data.getItemLayout(newIdx) as CandlestickItemLayout;\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n return;\n }\n\n const el = createNormalBox(itemLayout, newIdx, true);\n graphic.initProps(el, {shape: {points: itemLayout.ends}}, seriesModel, newIdx);\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n\n group.add(el);\n\n data.setItemGraphicEl(newIdx, el);\n }\n })\n .update(function (newIdx, oldIdx) {\n let el = oldData.getItemGraphicEl(oldIdx) as NormalBoxPath;\n\n // Empty data\n if (!data.hasValue(newIdx)) {\n group.remove(el);\n return;\n }\n\n const itemLayout = data.getItemLayout(newIdx) as CandlestickItemLayout;\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n group.remove(el);\n return;\n }\n\n if (!el) {\n el = createNormalBox(itemLayout, newIdx);\n }\n else {\n graphic.updateProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n\n saveOldStyle(el);\n }\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n })\n .execute();\n\n this._data = data;\n }\n\n _renderLarge(seriesModel: CandlestickSeriesModel) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n\n const clipPath = seriesModel.get('clip', true)\n ? createClipPath(seriesModel.coordinateSystem, false, seriesModel)\n : null;\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n\n }\n\n _incrementalRenderNormal(params: StageHandlerProgressParams, seriesModel: CandlestickSeriesModel) {\n const data = seriesModel.getData();\n const isSimpleBox = data.getLayout('isSimpleBox');\n\n let dataIndex;\n while ((dataIndex = params.next()) != null) {\n const itemLayout = data.getItemLayout(dataIndex) as CandlestickItemLayout;\n const el = createNormalBox(itemLayout, dataIndex);\n setBoxCommon(el, data, dataIndex, isSimpleBox);\n\n el.incremental = true;\n this.group.add(el);\n }\n }\n\n _incrementalRenderLarge(params: StageHandlerProgressParams, seriesModel: CandlestickSeriesModel) {\n createLarge(seriesModel, this.group, true);\n }\n\n remove(ecModel: GlobalModel) {\n this._clear();\n }\n\n _clear() {\n this.group.removeAll();\n this._data = null;\n }\n}\n\nclass NormalBoxPathShape {\n points: number[][];\n}\n\ninterface NormalBoxPathProps extends PathProps {\n shape?: Partial\n}\n\nclass NormalBoxPath extends Path {\n\n readonly type = 'normalCandlestickBox';\n\n shape: NormalBoxPathShape;\n\n __simpleBox: boolean;\n\n constructor(opts?: NormalBoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new NormalBoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: NormalBoxPathShape) {\n const ends = shape.points;\n\n if (this.__simpleBox) {\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[6][0], ends[6][1]);\n }\n else {\n ctx.moveTo(ends[0][0], ends[0][1]);\n ctx.lineTo(ends[1][0], ends[1][1]);\n ctx.lineTo(ends[2][0], ends[2][1]);\n ctx.lineTo(ends[3][0], ends[3][1]);\n ctx.closePath();\n\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[5][0], ends[5][1]);\n ctx.moveTo(ends[6][0], ends[6][1]);\n ctx.lineTo(ends[7][0], ends[7][1]);\n }\n }\n}\n\n\nfunction createNormalBox(itemLayout: CandlestickItemLayout, dataIndex: number, isInit?: boolean) {\n const ends = itemLayout.ends;\n return new NormalBoxPath({\n shape: {\n points: isInit\n ? transInit(ends, itemLayout)\n : ends\n },\n z2: 100\n });\n}\n\nfunction isNormalBoxClipped(clipArea: CoordinateSystemClipArea, itemLayout: CandlestickItemLayout) {\n let clipped = true;\n for (let i = 0; i < itemLayout.ends.length; i++) {\n // If any point are in the region.\n if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) {\n clipped = false;\n break;\n }\n }\n return clipped;\n}\n\nfunction setBoxCommon(el: NormalBoxPath, data: SeriesData, dataIndex: number, isSimpleBox?: boolean) {\n const itemModel = data.getItemModel(dataIndex) as Model;\n\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n\n el.__simpleBox = isSimpleBox;\n\n setStatesStylesFromModel(el, itemModel);\n}\n\nfunction transInit(points: number[][], itemLayout: CandlestickItemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[1] = itemLayout.initBaseline;\n return point;\n });\n}\n\n\n\nclass LargeBoxPathShape {\n points: ArrayLike;\n}\n\ninterface LargeBoxPathProps extends PathProps {\n shape?: Partial\n __sign?: number\n}\n\nclass LargeBoxPath extends Path {\n readonly type = 'largeCandlestickBox';\n\n shape: LargeBoxPathShape;\n\n __sign: number;\n\n constructor(opts?: LargeBoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LargeBoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n const points = shape.points;\n for (let i = 0; i < points.length;) {\n if (this.__sign === points[i++]) {\n const x = points[i++];\n ctx.moveTo(x, points[i++]);\n ctx.lineTo(x, points[i++]);\n }\n else {\n i += 3;\n }\n }\n }\n}\n\nfunction createLarge(seriesModel: CandlestickSeriesModel, group: graphic.Group, incremental?: boolean) {\n const data = seriesModel.getData();\n const largePoints = data.getLayout('largePoints');\n\n const elP = new LargeBoxPath({\n shape: {points: largePoints},\n __sign: 1\n });\n group.add(elP);\n const elN = new LargeBoxPath({\n shape: {points: largePoints},\n __sign: -1\n });\n group.add(elN);\n\n setLargeStyle(1, elP, seriesModel, data);\n setLargeStyle(-1, elN, seriesModel, data);\n\n if (incremental) {\n elP.incremental = true;\n elN.incremental = true;\n }\n}\n\nfunction setLargeStyle(sign: number, el: LargeBoxPath, seriesModel: CandlestickSeriesModel, data: SeriesData) {\n // TODO put in visual?\n const borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0'])\n || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']);\n\n // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n const itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);\n\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n}\n\n\n\nexport default CandlestickView;\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {WhiskerBoxCommonMixin} from '../helper/whiskerBoxCommon';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n LayoutOrient,\n ItemStyleOption,\n ZRColor,\n ColorString,\n SeriesLabelOption,\n SeriesLargeOptionMixin,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\nimport { mixin } from 'zrender/src/core/util';\n\ntype CandlestickDataValue = OptionDataValueNumeric[];\n\ninterface CandlestickItemStyleOption extends ItemStyleOption {\n color0?: ZRColor\n borderColor0?: ColorString\n}\nexport interface CandlestickStateOption {\n itemStyle?: CandlestickItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface CandlestickDataItemOption\n extends CandlestickStateOption, StatesOptionMixin {\n value: CandlestickDataValue\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface CandlestickSeriesOption\n extends SeriesOption, CandlestickStateOption,\n SeriesOnCartesianOptionMixin,\n SeriesLargeOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'candlestick'\n\n coordinateSystem?: 'cartesian2d'\n\n layout?: LayoutOrient\n clip?: boolean\n\n barMaxWidth?: number | string\n barMinWidth?: number | string\n barWidth?: number | string\n\n data?: (CandlestickDataValue | CandlestickDataItemOption)[]\n}\n\nclass CandlestickSeriesModel extends SeriesModel {\n\n static readonly type = 'series.candlestick';\n readonly type = CandlestickSeriesModel.type;\n\n static readonly dependencies = ['xAxis', 'yAxis', 'grid'];\n\n coordinateSystem: Cartesian2D;\n\n dimensions: string[];\n\n defaultValueDimensions = [\n {name: 'open', defaultTooltip: true},\n {name: 'close', defaultTooltip: true},\n {name: 'lowest', defaultTooltip: true},\n {name: 'highest', defaultTooltip: true}\n ];\n\n static defaultOption: CandlestickSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n layout: null, // 'horizontal' or 'vertical'\n\n clip: true,\n\n itemStyle: {\n color: '#eb5454', // positive\n color0: '#47b262', // negative\n borderColor: '#eb5454',\n borderColor0: '#47b262',\n // borderColor: '#d24040',\n // borderColor0: '#398f4f',\n borderWidth: 1\n },\n\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2\n }\n },\n\n barMaxWidth: null,\n barMinWidth: null,\n barWidth: null,\n\n large: true,\n largeThreshold: 600,\n\n progressive: 3e3,\n progressiveThreshold: 1e4,\n progressiveChunkMode: 'mod',\n\n animationEasing: 'linear',\n animationDuration: 300\n };\n\n /**\n * Get dimension for shadow in dataZoom\n * @return dimension name\n */\n getShadowDim() {\n return 'open';\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n const itemLayout = data.getItemLayout(dataIndex);\n return itemLayout && selectors.rect(itemLayout.brushRect);\n }\n}\n\nmixin(CandlestickSeriesModel, WhiskerBoxCommonMixin, true);\n\nexport default CandlestickSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption } from '../../util/types';\n\nexport default function candlestickPreprocessor(option: ECUnitOption) {\n if (!option || !zrUtil.isArray(option.series)) {\n return;\n }\n\n // Translate 'k' to 'candlestick'.\n zrUtil.each(option.series, function (seriesItem) {\n if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {\n seriesItem.type = 'candlestick';\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { StageHandler } from '../../util/types';\nimport CandlestickSeriesModel, { CandlestickDataItemOption } from './CandlestickSeries';\nimport Model from '../../model/Model';\nimport { extend } from 'zrender/src/core/util';\n\nconst positiveBorderColorQuery = ['itemStyle', 'borderColor'] as const;\nconst negativeBorderColorQuery = ['itemStyle', 'borderColor0'] as const;\nconst positiveColorQuery = ['itemStyle', 'color'] as const;\nconst negativeColorQuery = ['itemStyle', 'color0'] as const;\n\nconst candlestickVisual: StageHandler = {\n\n seriesType: 'candlestick',\n\n plan: createRenderPlanner(),\n\n // For legend.\n performRawSeries: true,\n\n reset: function (seriesModel: CandlestickSeriesModel, ecModel) {\n\n function getColor(sign: number, model: Model>) {\n return model.get(\n sign > 0 ? positiveColorQuery : negativeColorQuery\n );\n }\n\n function getBorderColor(sign: number, model: Model>) {\n return model.get(\n sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery\n );\n }\n\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const isLargeRender = seriesModel.pipelineContext.large;\n return !isLargeRender && {\n progress(params, data) {\n let dataIndex;\n while ((dataIndex = params.next()) != null) {\n const itemModel = data.getItemModel(dataIndex);\n const sign = data.getItemLayout(dataIndex).sign;\n\n const style = itemModel.getItemStyle();\n style.fill = getColor(sign, itemModel);\n style.stroke = getBorderColor(sign, itemModel) || style.fill;\n\n const existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n extend(existsStyle, style);\n }\n }\n };\n\n\n }\n\n};\n\nexport default candlestickVisual;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport {subPixelOptimize} from '../../util/graphic';\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport {parsePercent} from '../../util/number';\nimport {map, retrieve2} from 'zrender/src/core/util';\nimport { DimensionIndex, StageHandler, StageHandlerProgressParams } from '../../util/types';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport SeriesData from '../../data/SeriesData';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport DataStorage from '../../data/DataStorage';\n\nconst LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\nexport interface CandlestickItemLayout {\n sign: number\n initBaseline: number\n ends: number[][]\n brushRect: RectLike\n}\n\nexport interface CandlestickLayoutMeta {\n candleWidth: number\n isSimpleBox: boolean\n}\n\nconst candlestickLayout: StageHandler = {\n\n seriesType: 'candlestick',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: CandlestickSeriesModel) {\n\n const coordSys = seriesModel.coordinateSystem;\n const data = seriesModel.getData();\n const candleWidth = calculateCandleWidth(seriesModel, data);\n const cDimIdx = 0;\n const vDimIdx = 1;\n const coordDims = ['x', 'y'];\n const cDimI = data.getDimensionIndex(data.mapDimension(coordDims[cDimIdx]));\n const vDimsI = map(data.mapDimensionsAll(coordDims[vDimIdx]), data.getDimensionIndex, data);\n const openDimI = vDimsI[0];\n const closeDimI = vDimsI[1];\n const lowestDimI = vDimsI[2];\n const highestDimI = vDimsI[3];\n\n data.setLayout({\n candleWidth: candleWidth,\n // The value is experimented visually.\n isSimpleBox: candleWidth <= 1.3\n } as CandlestickLayoutMeta);\n\n if (cDimI < 0 || vDimsI.length < 4) {\n return;\n }\n\n return {\n progress: seriesModel.pipelineContext.large\n ? largeProgress : normalProgress\n };\n\n function normalProgress(params: StageHandlerProgressParams, data: SeriesData) {\n let dataIndex;\n const storage = data.getStorage();\n while ((dataIndex = params.next()) != null) {\n\n const axisDimVal = storage.get(cDimI, dataIndex) as number;\n const openVal = storage.get(openDimI, dataIndex) as number;\n const closeVal = storage.get(closeDimI, dataIndex) as number;\n const lowestVal = storage.get(lowestDimI, dataIndex) as number;\n const highestVal = storage.get(highestDimI, dataIndex) as number;\n\n const ocLow = Math.min(openVal, closeVal);\n const ocHigh = Math.max(openVal, closeVal);\n\n const ocLowPoint = getPoint(ocLow, axisDimVal);\n const ocHighPoint = getPoint(ocHigh, axisDimVal);\n const lowestPoint = getPoint(lowestVal, axisDimVal);\n const highestPoint = getPoint(highestVal, axisDimVal);\n\n const ends: number[][] = [];\n addBodyEnd(ends, ocHighPoint, 0);\n addBodyEnd(ends, ocLowPoint, 1);\n\n ends.push(\n subPixelOptimizePoint(highestPoint),\n subPixelOptimizePoint(ocHighPoint),\n subPixelOptimizePoint(lowestPoint),\n subPixelOptimizePoint(ocLowPoint)\n );\n\n data.setItemLayout(dataIndex, {\n sign: getSign(storage, dataIndex, openVal, closeVal, closeDimI),\n initBaseline: openVal > closeVal\n ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], // open point.\n ends: ends,\n brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal)\n } as CandlestickItemLayout);\n }\n\n function getPoint(val: number, axisDimVal: number) {\n const p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n return (isNaN(axisDimVal) || isNaN(val))\n ? [NaN, NaN]\n : coordSys.dataToPoint(p);\n }\n\n function addBodyEnd(ends: number[][], point: number[], start: number) {\n const point1 = point.slice();\n const point2 = point.slice();\n\n point1[cDimIdx] = subPixelOptimize(\n point1[cDimIdx] + candleWidth / 2, 1, false\n );\n point2[cDimIdx] = subPixelOptimize(\n point2[cDimIdx] - candleWidth / 2, 1, true\n );\n\n start\n ? ends.push(point1, point2)\n : ends.push(point2, point1);\n }\n\n function makeBrushRect(lowestVal: number, highestVal: number, axisDimVal: number) {\n const pmin = getPoint(lowestVal, axisDimVal);\n const pmax = getPoint(highestVal, axisDimVal);\n\n pmin[cDimIdx] -= candleWidth / 2;\n pmax[cDimIdx] -= candleWidth / 2;\n\n return {\n x: pmin[0],\n y: pmin[1],\n width: vDimIdx ? candleWidth : pmax[0] - pmin[0],\n height: vDimIdx ? pmax[1] - pmin[1] : candleWidth\n };\n }\n\n function subPixelOptimizePoint(point: number[]) {\n point[cDimIdx] = subPixelOptimize(point[cDimIdx], 1);\n return point;\n }\n }\n\n function largeProgress(params: StageHandlerProgressParams, data: SeriesData) {\n // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]\n const points = new LargeArr(params.count * 4);\n let offset = 0;\n let point;\n const tmpIn: number[] = [];\n const tmpOut: number[] = [];\n let dataIndex;\n const storage = data.getStorage();\n\n while ((dataIndex = params.next()) != null) {\n const axisDimVal = storage.get(cDimI, dataIndex) as number;\n const openVal = storage.get(openDimI, dataIndex) as number;\n const closeVal = storage.get(closeDimI, dataIndex) as number;\n const lowestVal = storage.get(lowestDimI, dataIndex) as number;\n const highestVal = storage.get(highestDimI, dataIndex) as number;\n\n if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) {\n points[offset++] = NaN;\n offset += 3;\n continue;\n }\n\n points[offset++] = getSign(storage, dataIndex, openVal, closeVal, closeDimI);\n\n tmpIn[cDimIdx] = axisDimVal;\n\n tmpIn[vDimIdx] = lowestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n tmpIn[vDimIdx] = highestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[1] : NaN;\n }\n\n data.setLayout('largePoints', points);\n }\n }\n};\n\nfunction getSign(\n storage: DataStorage, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex\n): -1 | 1 {\n let sign: -1 | 1;\n if (openVal > closeVal) {\n sign = -1;\n }\n else if (openVal < closeVal) {\n sign = 1;\n }\n else {\n sign = dataIndex > 0\n // If close === open, compare with close of last record\n ? (storage.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1)\n // No record of previous, set to be positive\n : 1;\n }\n\n return sign;\n}\n\nfunction calculateCandleWidth(seriesModel: CandlestickSeriesModel, data: SeriesData) {\n const baseAxis = seriesModel.getBaseAxis();\n let extent;\n\n const bandWidth = baseAxis.type === 'category'\n ? baseAxis.getBandWidth()\n : (\n extent = baseAxis.getExtent(),\n Math.abs(extent[1] - extent[0]) / data.count()\n );\n\n const barMaxWidth = parsePercent(\n retrieve2(seriesModel.get('barMaxWidth'), bandWidth),\n bandWidth\n );\n const barMinWidth = parsePercent(\n retrieve2(seriesModel.get('barMinWidth'), 1),\n bandWidth\n );\n const barWidth = seriesModel.get('barWidth');\n\n return barWidth != null\n ? parsePercent(barWidth, bandWidth)\n // Put max outer to ensure bar visible in spite of overlap.\n : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);\n}\n\nexport default candlestickLayout;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CandlestickView from './CandlestickView';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport preprocessor from './preprocessor';\n\nimport candlestickVisual from './candlestickVisual';\nimport candlestickLayout from './candlestickLayout';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(CandlestickView);\n registers.registerSeriesModel(CandlestickSeriesModel);\n registers.registerPreprocessor(preprocessor);\n registers.registerVisual(candlestickVisual);\n registers.registerLayout(candlestickLayout);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport {Group, Path} from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport SymbolClz from './Symbol';\nimport SeriesData from '../../data/SeriesData';\nimport type { ZRColor, ECElement } from '../../util/types';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport { SymbolDrawItemModelOption } from './SymbolDraw';\n\ninterface RippleEffectCfg {\n showEffectOn?: 'emphasis' | 'render'\n rippleScale?: number\n brushType?: 'fill' | 'stroke'\n period?: number\n effectOffset?: number\n z?: number\n zlevel?: number\n symbolType?: string\n color?: ZRColor\n rippleEffectColor?: ZRColor,\n rippleNumber?: number\n}\n\nfunction updateRipplePath(rippleGroup: Group, effectCfg: RippleEffectCfg) {\n const color = effectCfg.rippleEffectColor || effectCfg.color;\n rippleGroup.eachChild(function (ripplePath: Displayable) {\n ripplePath.attr({\n z: effectCfg.z,\n zlevel: effectCfg.zlevel,\n style: {\n stroke: effectCfg.brushType === 'stroke' ? color : null,\n fill: effectCfg.brushType === 'fill' ? color : null\n }\n });\n });\n}\n\nclass EffectSymbol extends Group {\n\n private _effectCfg: RippleEffectCfg;\n\n constructor(data: SeriesData, idx: number) {\n super();\n\n const symbol = new SymbolClz(data, idx);\n const rippleGroup = new Group();\n this.add(symbol);\n this.add(rippleGroup);\n\n this.updateData(data, idx);\n }\n\n\n stopEffectAnimation() {\n (this.childAt(1) as Group).removeAll();\n }\n\n startEffectAnimation(effectCfg: RippleEffectCfg) {\n const symbolType = effectCfg.symbolType;\n const color = effectCfg.color;\n const rippleNumber = effectCfg.rippleNumber;\n const rippleGroup = this.childAt(1) as Group;\n\n for (let i = 0; i < rippleNumber; i++) {\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4136.\n const ripplePath = createSymbol(\n symbolType, -1, -1, 2, 2, color\n );\n ripplePath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 99,\n silent: true,\n scaleX: 0.5,\n scaleY: 0.5\n });\n\n const delay = -i / rippleNumber * effectCfg.period + effectCfg.effectOffset;\n ripplePath.animate('', true)\n .when(effectCfg.period, {\n scaleX: effectCfg.rippleScale / 2,\n scaleY: effectCfg.rippleScale / 2\n })\n .delay(delay)\n .start();\n ripplePath.animateStyle(true)\n .when(effectCfg.period, {\n opacity: 0\n })\n .delay(delay)\n .start();\n\n rippleGroup.add(ripplePath);\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n }\n\n /**\n * Update effect symbol\n */\n updateEffectAnimation(effectCfg: RippleEffectCfg) {\n const oldEffectCfg = this._effectCfg;\n const rippleGroup = this.childAt(1) as Group;\n\n // Must reinitialize effect if following configuration changed\n const DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale', 'rippleNumber'] as const;\n for (let i = 0; i < DIFFICULT_PROPS.length; i++) {\n const propName = DIFFICULT_PROPS[i];\n if (oldEffectCfg[propName] !== effectCfg[propName]) {\n this.stopEffectAnimation();\n this.startEffectAnimation(effectCfg);\n return;\n }\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n }\n\n /**\n * Highlight symbol\n */\n highlight() {\n enterEmphasis(this);\n }\n\n /**\n * Downplay symbol\n */\n downplay() {\n leaveEmphasis(this);\n }\n\n getSymbolType() {\n const symbol = this.childAt(0) as SymbolClz;\n return symbol && symbol.getSymbolType();\n }\n\n /**\n * Update symbol properties\n */\n updateData(data: SeriesData, idx: number) {\n const seriesModel = data.hostModel;\n\n (this.childAt(0) as SymbolClz).updateData(data, idx);\n\n const rippleGroup = this.childAt(1);\n const itemModel = data.getItemModel(idx);\n const symbolType = data.getItemVisual(idx, 'symbol');\n const symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n\n const symbolStyle = data.getItemVisual(idx, 'style');\n const color = symbolStyle && symbolStyle.fill;\n\n rippleGroup.setScale(symbolSize);\n\n rippleGroup.traverse(function (ripplePath: Path) {\n ripplePath.setStyle('fill', color);\n });\n\n const symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);\n if (symbolOffset) {\n rippleGroup.x = symbolOffset[0];\n rippleGroup.y = symbolOffset[1];\n }\n\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n const effectCfg: RippleEffectCfg = {};\n\n effectCfg.showEffectOn = seriesModel.get('showEffectOn');\n effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']);\n effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']);\n effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000;\n effectCfg.effectOffset = idx / data.count();\n effectCfg.z = seriesModel.getShallow('z') || 0;\n effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0;\n effectCfg.symbolType = symbolType;\n effectCfg.color = color;\n effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']);\n effectCfg.rippleNumber = itemModel.get(['rippleEffect', 'number']);\n\n this.off('mouseover').off('mouseout').off('emphasis').off('normal');\n\n if (effectCfg.showEffectOn === 'render') {\n this._effectCfg\n ? this.updateEffectAnimation(effectCfg)\n : this.startEffectAnimation(effectCfg);\n\n this._effectCfg = effectCfg;\n }\n else {\n // Not keep old effect config\n this._effectCfg = null;\n\n this.stopEffectAnimation();\n\n (this as ECElement).onHoverStateChange = (toState) => {\n if (toState === 'emphasis') {\n if (effectCfg.showEffectOn !== 'render') {\n this.startEffectAnimation(effectCfg);\n }\n }\n else if (toState === 'normal') {\n if (effectCfg.showEffectOn !== 'render') {\n this.stopEffectAnimation();\n }\n }\n };\n }\n\n this._effectCfg = effectCfg;\n\n enableHoverEmphasis(this);\n };\n\n fadeOut(cb: () => void) {\n this.off('mouseover').off('mouseout');\n cb && cb();\n };\n\n}\n\nexport default EffectSymbol;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SymbolDraw from '../helper/SymbolDraw';\nimport EffectSymbol from '../helper/EffectSymbol';\nimport * as matrix from 'zrender/src/core/matrix';\n\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\nimport { StageHandlerProgressExecutor } from '../../util/types';\n\nclass EffectScatterView extends ChartView {\n static readonly type = 'effectScatter';\n readonly type = EffectScatterView.type;\n\n private _symbolDraw: SymbolDraw;\n\n init() {\n this._symbolDraw = new SymbolDraw(EffectSymbol);\n }\n\n render(seriesModel: EffectScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const effectSymbolDraw = this._symbolDraw;\n effectSymbolDraw.updateData(data, {clipShape: this._getClipShape(seriesModel)});\n this.group.add(effectSymbolDraw.group);\n }\n\n _getClipShape(seriesModel: EffectScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n }\n\n updateTransform(seriesModel: EffectScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n this.group.dirty();\n\n const res = pointsLayout('').reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout();\n }\n\n _updateGroupTransform(seriesModel: EffectScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.getRoamTransform) {\n this.group.transform = matrix.clone(coordSys.getRoamTransform());\n this.group.decomposeTransform();\n }\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove(true);\n }\n\n}\nexport default EffectScatterView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesOnPolarOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n SymbolOptionMixin,\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n CallbackDataParams\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport type { SymbolDrawItemModelOption } from '../helper/SymbolDraw';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\ntype ScatterDataValue = OptionDataValue | OptionDataValue[];\n\nexport interface EffectScatterStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface EffectScatterDataItemOption extends SymbolOptionMixin,\n EffectScatterStateOption,\n StatesOptionMixin {\n name?: string\n\n value?: ScatterDataValue\n\n rippleEffect?: SymbolDrawItemModelOption['rippleEffect']\n}\n\nexport interface EffectScatterSeriesOption extends SeriesOption, EffectScatterStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'effectScatter'\n\n coordinateSystem?: string\n\n effectType?: 'ripple'\n\n /**\n * When to show the effect\n */\n showEffectOn?: 'render' | 'emphasis'\n clip?: boolean\n\n /**\n * Ripple effect config\n */\n rippleEffect?: SymbolDrawItemModelOption['rippleEffect']\n\n data?: (EffectScatterDataItemOption | ScatterDataValue)[]\n}\nclass EffectScatterSeriesModel extends SeriesModel {\n static readonly type = 'series.effectScatter';\n type = EffectScatterSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar'];\n\n hasSymbolVisual = true;\n\n getInitialData(option: EffectScatterSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {useEncodeDefaulter: true});\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.point(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: EffectScatterSeriesOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n effectType: 'ripple',\n\n progressive: 0,\n\n // When to show the effect, option: 'render'|'emphasis'\n showEffectOn: 'render',\n clip: true,\n\n // Ripple effect config\n rippleEffect: {\n period: 4,\n // Scale of ripple\n scale: 2.5,\n // Brush type can be fill or stroke\n brushType: 'fill',\n // Ripple number\n number: 3\n },\n\n universalTransition: {\n divideShape: 'clone'\n },\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Polar coordinate system\n // polarIndex: 0,\n\n // Geo coordinate system\n // geoIndex: 0,\n\n // symbol: null, // \u56FE\u5F62\u7C7B\u578B\n symbolSize: 10 // \u56FE\u5F62\u5927\u5C0F\uFF0C\u534A\u5BBD\uFF08\u534A\u5F84\uFF09\u53C2\u6570\uFF0C\u5F53\u56FE\u5F62\u4E3A\u65B9\u5411\u6216\u83F1\u5F62\u5219\u603B\u5BBD\u5EA6\u4E3AsymbolSize * 2\n // symbolRotate: null, // \u56FE\u5F62\u65CB\u8F6C\u63A7\u5236\n\n // itemStyle: {\n // opacity: 1\n // }\n };\n}\n\nexport default EffectScatterSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport EffectScatterView from './EffectScatterView';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\n\nimport layoutPoints from '../../layout/points';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(EffectScatterView);\n registers.registerSeriesModel(EffectScatterSeriesModel);\n registers.registerLayout(layoutPoints('effectScatter'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Provide effect for line\n */\n\nimport * as graphic from '../../util/graphic';\nimport Line from './Line';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {createSymbol} from '../../util/symbol';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as curveUtil from 'zrender/src/core/curve';\nimport type SeriesData from '../../data/SeriesData';\nimport { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport Model from '../../model/Model';\nimport { ColorString } from '../../util/types';\n\nexport type ECSymbolOnEffectLine = ReturnType & {\n __t: number\n __lastT: number\n __p1: number[]\n __p2: number[]\n __cp1: number[]\n};\nclass EffectLine extends graphic.Group {\n\n private _symbolType: string;\n\n private _period: number;\n\n private _loop: boolean;\n\n private _symbolScale: number[];\n\n constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n super();\n this.add(this.createLine(lineData, idx, seriesScope));\n\n this._updateEffectSymbol(lineData, idx);\n }\n\n createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope): graphic.Group {\n return new Line(lineData, idx, seriesScope);\n }\n\n private _updateEffectSymbol(lineData: SeriesData, idx: number) {\n const itemModel = lineData.getItemModel(idx);\n const effectModel = itemModel.getModel('effect');\n let size = effectModel.get('symbolSize');\n const symbolType = effectModel.get('symbol');\n if (!zrUtil.isArray(size)) {\n size = [size, size];\n }\n\n const lineStyle = lineData.getItemVisual(idx, 'style');\n const color = effectModel.get('color') || (lineStyle && lineStyle.stroke);\n let symbol = this.childAt(1) as ECSymbolOnEffectLine;\n\n if (this._symbolType !== symbolType) {\n // Remove previous\n this.remove(symbol);\n\n symbol = createSymbol(\n symbolType, -0.5, -0.5, 1, 1, color\n ) as ECSymbolOnEffectLine;\n symbol.z2 = 100;\n symbol.culling = true;\n\n this.add(symbol);\n }\n\n // Symbol may be removed if loop is false\n if (!symbol) {\n return;\n }\n\n // Shadow color is same with color in default\n symbol.setStyle('shadowColor', color as ColorString);\n symbol.setStyle(effectModel.getItemStyle(['color']));\n\n symbol.scaleX = size[0];\n symbol.scaleY = size[1];\n\n symbol.setColor(color);\n\n this._symbolType = symbolType;\n this._symbolScale = size;\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n }\n\n private _updateEffectAnimation(\n lineData: SeriesData,\n effectModel: Model,\n idx: number\n ) {\n\n const symbol = this.childAt(1) as ECSymbolOnEffectLine;\n if (!symbol) {\n return;\n }\n\n const self = this;\n\n const points = lineData.getItemLayout(idx);\n\n let period = effectModel.get('period') * 1000;\n const loop = effectModel.get('loop');\n const constantSpeed = effectModel.get('constantSpeed');\n const delayExpr = zrUtil.retrieve(effectModel.get('delay'), function (idx) {\n return idx / lineData.count() * period / 3;\n });\n\n // Ignore when updating\n symbol.ignore = true;\n\n this._updateAnimationPoints(symbol, points);\n\n if (constantSpeed > 0) {\n period = this._getLineLength(symbol) / constantSpeed * 1000;\n }\n\n if (period !== this._period || loop !== this._loop) {\n\n symbol.stopAnimation();\n\n if (period > 0) {\n let delayNum: number;\n if (typeof delayExpr === 'function') {\n delayNum = delayExpr(idx);\n }\n else {\n delayNum = delayExpr;\n }\n if (symbol.__t > 0) {\n delayNum = -period * symbol.__t;\n }\n symbol.__t = 0;\n const animator = symbol.animate('', loop)\n .when(period, {\n __t: 1\n })\n .delay(delayNum)\n .during(function () {\n self._updateSymbolPosition(symbol);\n });\n if (!loop) {\n animator.done(function () {\n self.remove(symbol);\n });\n }\n animator.start();\n }\n }\n\n this._period = period;\n this._loop = loop;\n }\n\n protected _getLineLength(symbol: ECSymbolOnEffectLine) {\n // Not so accurate\n return (vec2.dist(symbol.__p1, symbol.__cp1)\n + vec2.dist(symbol.__cp1, symbol.__p2));\n }\n\n protected _updateAnimationPoints(symbol: ECSymbolOnEffectLine, points: number[][]) {\n symbol.__p1 = points[0];\n symbol.__p2 = points[1];\n symbol.__cp1 = points[2] || [\n (points[0][0] + points[1][0]) / 2,\n (points[0][1] + points[1][1]) / 2\n ];\n }\n\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n (this.childAt(0) as Line).updateData(lineData, idx, seriesScope);\n this._updateEffectSymbol(lineData, idx);\n }\n\n protected _updateSymbolPosition(symbol: ECSymbolOnEffectLine) {\n const p1 = symbol.__p1;\n const p2 = symbol.__p2;\n const cp1 = symbol.__cp1;\n const t = symbol.__t;\n const pos = [symbol.x, symbol.y];\n const lastPos = pos.slice();\n const quadraticAt = curveUtil.quadraticAt;\n const quadraticDerivativeAt = curveUtil.quadraticDerivativeAt;\n pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);\n pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t);\n\n // Tangent\n const tx = quadraticDerivativeAt(p1[0], cp1[0], p2[0], t);\n const ty = quadraticDerivativeAt(p1[1], cp1[1], p2[1], t);\n\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n // enable continuity trail for 'line', 'rect', 'roundRect' symbolType\n if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') {\n if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) {\n symbol.scaleY = vec2.dist(lastPos, pos) * 1.05;\n // make sure the last segment render within endPoint\n if (t === 1) {\n pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2;\n pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2;\n }\n }\n else if (symbol.__lastT === 1) {\n // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.\n symbol.scaleY = 2 * vec2.dist(p1, pos);\n }\n else {\n symbol.scaleY = this._symbolScale[1];\n }\n }\n symbol.__lastT = symbol.__t;\n symbol.ignore = false;\n symbol.x = pos[0];\n symbol.y = pos[1];\n }\n\n\n updateLayout(lineData: SeriesData, idx: number) {\n (this.childAt(0) as Line).updateLayout(lineData, idx);\n\n const effectModel = lineData.getItemModel(idx).getModel('effect');\n this._updateEffectAnimation(lineData, effectModel, idx);\n }\n}\nexport default EffectLine;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport type SeriesData from '../../data/SeriesData';\n\nclass Polyline extends graphic.Group {\n constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n super();\n this._createPolyline(lineData, idx, seriesScope);\n }\n\n private _createPolyline(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n // let seriesModel = lineData.hostModel;\n const points = lineData.getItemLayout(idx);\n\n const line = new graphic.Polyline({\n shape: {\n points: points\n }\n });\n\n this.add(line);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n\n const line = this.childAt(0) as graphic.Polyline;\n const target = {\n shape: {\n points: lineData.getItemLayout(idx) as number[][]\n }\n };\n graphic.updateProps(line, target, seriesModel, idx);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n _updateCommonStl(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const line = this.childAt(0) as graphic.Polyline;\n const itemModel = lineData.getItemModel(idx);\n\n\n let hoverLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n\n if (!seriesScope || lineData.hasItemOption) {\n hoverLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n }\n line.useStyle(lineData.getItemVisual(idx, 'style'));\n line.style.fill = null;\n line.style.strokeNoScale = true;\n\n const lineEmphasisState = line.ensureState('emphasis');\n lineEmphasisState.style = hoverLineStyle;\n\n enableHoverEmphasis(this);\n };\n\n updateLayout(lineData: SeriesData, idx: number) {\n const polyline = this.childAt(0) as graphic.Polyline;\n polyline.setShape('points', lineData.getItemLayout(idx));\n };\n\n}\n\nexport default Polyline;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Polyline from './Polyline';\nimport EffectLine, {ECSymbolOnEffectLine} from './EffectLine';\nimport * as vec2 from 'zrender/src/core/vector';\nimport { LineDrawSeriesScope } from './LineDraw';\nimport SeriesData from '../../data/SeriesData';\n\n\nclass EffectPolyline extends EffectLine {\n private _lastFrame = 0;\n private _lastFramePercent = 0;\n private _length: number;\n\n private _points: number[][];\n private _offsets: number[];\n\n // Override\n createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n return new Polyline(lineData, idx, seriesScope);\n };\n\n // Override\n protected _updateAnimationPoints(symbol: ECSymbolOnEffectLine, points: number[][]) {\n this._points = points;\n const accLenArr = [0];\n let len = 0;\n for (let i = 1; i < points.length; i++) {\n const p1 = points[i - 1];\n const p2 = points[i];\n len += vec2.dist(p1, p2);\n accLenArr.push(len);\n }\n if (len === 0) {\n this._length = 0;\n return;\n }\n\n for (let i = 0; i < accLenArr.length; i++) {\n accLenArr[i] /= len;\n }\n this._offsets = accLenArr;\n this._length = len;\n };\n\n // Override\n protected _getLineLength() {\n return this._length;\n };\n\n // Override\n protected _updateSymbolPosition(symbol: ECSymbolOnEffectLine) {\n const t = symbol.__t;\n const points = this._points;\n const offsets = this._offsets;\n const len = points.length;\n\n if (!offsets) {\n // Has length 0\n return;\n }\n\n const lastFrame = this._lastFrame;\n let frame: number;\n\n if (t < this._lastFramePercent) {\n // Start from the next frame\n // PENDING start from lastFrame ?\n const start = Math.min(lastFrame + 1, len - 1);\n for (frame = start; frame >= 0; frame--) {\n if (offsets[frame] <= t) {\n break;\n }\n }\n // PENDING really need to do this ?\n frame = Math.min(frame, len - 2);\n }\n else {\n for (frame = lastFrame; frame < len; frame++) {\n if (offsets[frame] > t) {\n break;\n }\n }\n frame = Math.min(frame - 1, len - 2);\n }\n\n const p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]);\n const p0 = points[frame];\n const p1 = points[frame + 1];\n symbol.x = p0[0] * (1 - p) + p * p1[0];\n symbol.y = p0[1] * (1 - p) + p * p1[1];\n\n const tx = p1[0] - p0[0];\n const ty = p1[1] - p0[1];\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n\n this._lastFrame = frame;\n this._lastFramePercent = t;\n\n symbol.ignore = false;\n };\n\n}\n\nexport default EffectPolyline;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport * as lineContain from 'zrender/src/contain/line';\nimport * as quadraticContain from 'zrender/src/contain/quadratic';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport SeriesData from '../../data/SeriesData';\nimport { StageHandlerProgressParams, LineStyleOption, ColorString } from '../../util/types';\nimport Model from '../../model/Model';\nimport { getECData } from '../../util/innerStore';\n\nclass LargeLinesPathShape {\n polyline = false;\n curveness = 0;\n segs: ArrayLike = [];\n}\n\ninterface LargeLinesPathProps extends PathProps {\n shape?: Partial\n}\n\ninterface LargeLinesCommonOption {\n polyline?: boolean\n lineStyle?: LineStyleOption & {\n curveness?: number\n }\n}\n\n/**\n * Data which can support large lines.\n */\ntype LargeLinesData = SeriesData & {\n seriesIndex?: number\n}>;\n\nclass LargeLinesPath extends graphic.Path {\n shape: LargeLinesPathShape;\n\n __startIndex: number;\n\n constructor(opts?: LargeLinesPathProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as ColorString\n };\n }\n\n getDefaultShape() {\n return new LargeLinesPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LargeLinesPathShape) {\n const segs = shape.segs;\n const curveness = shape.curveness;\n\n if (shape.polyline) {\n for (let i = 0; i < segs.length;) {\n const count = segs[i++];\n if (count > 0) {\n ctx.moveTo(segs[i++], segs[i++]);\n for (let k = 1; k < count; k++) {\n ctx.lineTo(segs[i++], segs[i++]);\n }\n }\n }\n }\n else {\n for (let i = 0; i < segs.length;) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n const x1 = segs[i++];\n const y1 = segs[i++];\n ctx.moveTo(x0, y0);\n if (curveness > 0) {\n const x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n const y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n ctx.quadraticCurveTo(x2, y2, x1, y1);\n }\n else {\n ctx.lineTo(x1, y1);\n }\n }\n }\n }\n\n findDataIndex(x: number, y: number) {\n\n const shape = this.shape;\n const segs = shape.segs;\n const curveness = shape.curveness;\n const lineWidth = this.style.lineWidth;\n\n if (shape.polyline) {\n let dataIndex = 0;\n for (let i = 0; i < segs.length;) {\n const count = segs[i++];\n if (count > 0) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n for (let k = 1; k < count; k++) {\n const x1 = segs[i++];\n const y1 = segs[i++];\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n }\n\n dataIndex++;\n }\n }\n else {\n let dataIndex = 0;\n for (let i = 0; i < segs.length;) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n const x1 = segs[i++];\n const y1 = segs[i++];\n if (curveness > 0) {\n const x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n const y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n\n if (quadraticContain.containStroke(\n x0, y0, x2, y2, x1, y1, lineWidth, x, y\n )) {\n return dataIndex;\n }\n }\n else {\n if (lineContain.containStroke(\n x0, y0, x1, y1, lineWidth, x, y\n )) {\n return dataIndex;\n }\n }\n\n dataIndex++;\n }\n }\n\n return -1;\n }\n}\n\nclass LargeLineDraw {\n group = new graphic.Group();\n\n _incremental?: IncrementalDisplayable;\n\n isPersistent() {\n return !this._incremental;\n };\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: LargeLinesData) {\n this.group.removeAll();\n\n const lineEl = new LargeLinesPath({\n rectHover: true,\n cursor: 'default'\n });\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data);\n\n // Add back\n this.group.add(lineEl);\n\n this._incremental = null;\n };\n\n /**\n * @override\n */\n incrementalPrepareUpdate(data: LargeLinesData) {\n this.group.removeAll();\n\n this._clearIncremental();\n\n if (data.count() > 5e5) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n this.group.add(this._incremental);\n }\n else {\n this._incremental = null;\n }\n };\n\n /**\n * @override\n */\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: LargeLinesData) {\n const lineEl = new LargeLinesPath();\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data, !!this._incremental);\n\n if (!this._incremental) {\n lineEl.rectHover = true;\n lineEl.cursor = 'default';\n lineEl.__startIndex = taskParams.start;\n this.group.add(lineEl);\n }\n else {\n this._incremental.addDisplayable(lineEl, true);\n }\n };\n\n /**\n * @override\n */\n remove() {\n this._clearIncremental();\n this._incremental = null;\n this.group.removeAll();\n };\n\n _setCommon(lineEl: LargeLinesPath, data: LargeLinesData, isIncremental?: boolean) {\n const hostModel = data.hostModel;\n\n lineEl.setShape({\n polyline: hostModel.get('polyline'),\n curveness: hostModel.get(['lineStyle', 'curveness'])\n });\n\n lineEl.useStyle(\n hostModel.getModel('lineStyle').getLineStyle()\n );\n lineEl.style.strokeNoScale = true;\n\n const style = data.getVisual('style');\n if (style && style.stroke) {\n lineEl.setStyle('stroke', style.stroke);\n }\n lineEl.setStyle('fill', null);\n\n if (!isIncremental) {\n const ecData = getECData(lineEl);\n // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n ecData.seriesIndex = hostModel.seriesIndex;\n lineEl.on('mousemove', function (e) {\n ecData.dataIndex = null;\n const dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY);\n if (dataIndex > 0) {\n // Provide dataIndex for tooltip\n ecData.dataIndex = dataIndex + lineEl.__startIndex;\n }\n });\n }\n };\n\n _clearIncremental() {\n const incremental = this._incremental;\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n\n}\n\nexport default LargeLineDraw;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { StageHandler } from '../../util/types';\nimport LinesSeriesModel, {LinesDataItemOption} from './LinesSeries';\n\nconst linesLayout: StageHandler = {\n seriesType: 'lines',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: LinesSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const isPolyline = seriesModel.get('polyline');\n const isLarge = seriesModel.pipelineContext.large;\n return {\n progress(params, lineData) {\n const lineCoords: number[][] = [];\n if (isLarge) {\n let points;\n const segCount = params.end - params.start;\n if (isPolyline) {\n let totalCoordsCount = 0;\n for (let i = params.start; i < params.end; i++) {\n totalCoordsCount += seriesModel.getLineCoordsCount(i);\n }\n points = new Float32Array(segCount + totalCoordsCount * 2);\n }\n else {\n points = new Float32Array(segCount * 4);\n }\n\n let offset = 0;\n let pt: number[] = [];\n for (let i = params.start; i < params.end; i++) {\n const len = seriesModel.getLineCoords(i, lineCoords);\n if (isPolyline) {\n points[offset++] = len;\n }\n for (let k = 0; k < len; k++) {\n pt = coordSys.dataToPoint(lineCoords[k], false, pt);\n points[offset++] = pt[0];\n points[offset++] = pt[1];\n }\n }\n\n lineData.setLayout('linesPoints', points);\n }\n else {\n for (let i = params.start; i < params.end; i++) {\n const itemModel = lineData.getItemModel(i);\n const len = seriesModel.getLineCoords(i, lineCoords);\n\n const pts = [];\n if (isPolyline) {\n for (let j = 0; j < len; j++) {\n pts.push(coordSys.dataToPoint(lineCoords[j]));\n }\n }\n else {\n pts[0] = coordSys.dataToPoint(lineCoords[0]);\n pts[1] = coordSys.dataToPoint(lineCoords[1]);\n\n const curveness = itemModel.get(['lineStyle', 'curveness']);\n if (+curveness) {\n pts[2] = [\n (pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness,\n (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness\n ];\n }\n }\n lineData.setItemLayout(i, pts);\n }\n }\n }\n };\n }\n};\n\nexport default linesLayout;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LineDraw from '../helper/LineDraw';\nimport EffectLine from '../helper/EffectLine';\nimport Line from '../helper/Line';\nimport Polyline from '../helper/Polyline';\nimport EffectPolyline from '../helper/EffectPolyline';\nimport LargeLineDraw from '../helper/LargeLineDraw';\nimport linesLayout from './linesLayout';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport ChartView from '../../view/Chart';\nimport LinesSeriesModel from './LinesSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\nimport { StageHandlerProgressParams, StageHandlerProgressExecutor } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport type Polar from '../../coord/polar/Polar';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\n\nclass LinesView extends ChartView {\n\n static readonly type = 'lines';\n readonly type = LinesView.type;\n\n private _lastZlevel: number;\n private _finished: boolean;\n\n private _lineDraw: LineDraw | LargeLineDraw;\n\n private _hasEffet: boolean;\n private _isPolyline: boolean;\n private _isLargeDraw: boolean;\n\n render(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const lineDraw = this._updateLineDraw(data, seriesModel);\n\n const zlevel = seriesModel.get('zlevel');\n const trailLength = seriesModel.get(['effect', 'trailLength']);\n\n const zr = api.getZr();\n // Avoid the drag cause ghost shadow\n // FIXME Better way ?\n // SVG doesn't support\n const isSvg = zr.painter.getType() === 'svg';\n if (!isSvg) {\n (zr.painter as CanvasPainter).getLayer(zlevel).clear(true);\n }\n // Config layer with motion blur\n if (this._lastZlevel != null && !isSvg) {\n zr.configLayer(this._lastZlevel, {\n motionBlur: false\n });\n }\n if (this._showEffect(seriesModel) && trailLength) {\n if (__DEV__) {\n let notInIndividual = false;\n ecModel.eachSeries(function (otherSeriesModel) {\n if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) {\n notInIndividual = true;\n }\n });\n notInIndividual && console.warn('Lines with trail effect should have an individual zlevel');\n }\n\n if (!isSvg) {\n zr.configLayer(zlevel, {\n motionBlur: true,\n lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)\n });\n }\n }\n\n lineDraw.updateData(data as SeriesData);\n\n const clipPath = seriesModel.get('clip', true) && createClipPath(\n (seriesModel.coordinateSystem as Polar | Cartesian2D), false, seriesModel\n );\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n\n this._lastZlevel = zlevel;\n\n this._finished = true;\n }\n\n incrementalPrepareRender(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const lineDraw = this._updateLineDraw(data, seriesModel);\n\n lineDraw.incrementalPrepareUpdate(data);\n\n this._clearLayer(api);\n\n this._finished = false;\n }\n\n incrementalRender(\n taskParams: StageHandlerProgressParams,\n seriesModel: LinesSeriesModel,\n ecModel: GlobalModel\n ) {\n this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData());\n\n this._finished = taskParams.end === seriesModel.getData().count();\n }\n\n updateTransform(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const pipelineContext = seriesModel.pipelineContext;\n\n if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) {\n // TODO Don't have to do update in large mode. Only do it when there are millions of data.\n return {\n update: true\n } as const;\n }\n else {\n // TODO Use same logic with ScatterView.\n // Manually update layout\n const res = linesLayout.reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n // Not in large mode\n (this._lineDraw as LineDraw).updateLayout();\n this._clearLayer(api);\n }\n }\n\n _updateLineDraw(data: SeriesData, seriesModel: LinesSeriesModel) {\n let lineDraw = this._lineDraw;\n const hasEffect = this._showEffect(seriesModel);\n const isPolyline = !!seriesModel.get('polyline');\n const pipelineContext = seriesModel.pipelineContext;\n const isLargeDraw = pipelineContext.large;\n\n if (__DEV__) {\n if (hasEffect && isLargeDraw) {\n console.warn('Large lines not support effect');\n }\n }\n if (!lineDraw\n || hasEffect !== this._hasEffet\n || isPolyline !== this._isPolyline\n || isLargeDraw !== this._isLargeDraw\n ) {\n if (lineDraw) {\n lineDraw.remove();\n }\n lineDraw = this._lineDraw = isLargeDraw\n ? new LargeLineDraw()\n : new LineDraw(\n isPolyline\n ? (hasEffect ? EffectPolyline : Polyline)\n : (hasEffect ? EffectLine : Line)\n );\n this._hasEffet = hasEffect;\n this._isPolyline = isPolyline;\n this._isLargeDraw = isLargeDraw;\n }\n\n this.group.add(lineDraw.group);\n\n return lineDraw;\n }\n\n private _showEffect(seriesModel: LinesSeriesModel) {\n return !!seriesModel.get(['effect', 'show']);\n }\n\n _clearLayer(api: ExtensionAPI) {\n // Not use motion when dragging or zooming\n const zr = api.getZr();\n const isSvg = zr.painter.getType() === 'svg';\n if (!isSvg && this._lastZlevel != null) {\n (zr.painter as CanvasPainter).getLayer(this._lastZlevel).clear(true);\n }\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._lineDraw && this._lineDraw.remove();\n this._lineDraw = null;\n // Clear motion when lineDraw is removed\n this._clearLayer(api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this.remove(ecModel, api);\n }\n\n}\n\nexport default LinesView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint32Array, Float64Array, Float32Array */\n\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\nimport { concatArray, mergeAll, map } from 'zrender/src/core/util';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesLargeOptionMixin,\n LineStyleOption,\n OptionDataValue,\n StatesOptionMixin,\n SeriesLineLabelOption\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport type { LineDrawModelOption } from '../helper/LineDraw';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nconst Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array;\nconst Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array;\n\nfunction compatEc2(seriesOpt: LinesSeriesOption) {\n const data = seriesOpt.data;\n if (data && data[0] && (data as LegacyDataItemOption[][])[0][0] && (data as LegacyDataItemOption[][])[0][0].coord) {\n if (__DEV__) {\n console.warn('Lines data configuration has been changed to'\n + ' { coords:[[1,2],[2,3]] }');\n }\n seriesOpt.data = map(data as LegacyDataItemOption[][], function (itemOpt) {\n const coords = [\n itemOpt[0].coord, itemOpt[1].coord\n ];\n const target: LinesDataItemOption = {\n coords: coords\n };\n if (itemOpt[0].name) {\n target.fromName = itemOpt[0].name;\n }\n if (itemOpt[1].name) {\n target.toName = itemOpt[1].name;\n }\n return mergeAll([target, itemOpt[0], itemOpt[1]]);\n });\n }\n}\n\ntype LinesCoords = number[][];\n\ntype LinesValue = OptionDataValue | OptionDataValue[];\n\ninterface LinesLineStyleOption extends LineStyleOption {\n curveness?: number\n}\n\n// @deprecated\ninterface LegacyDataItemOption {\n coord: number[]\n name: string\n}\n\nexport interface LinesStateOption {\n lineStyle?: LinesLineStyleOption\n label?: SeriesLineLabelOption\n}\n\nexport interface LinesDataItemOption extends LinesStateOption, StatesOptionMixin {\n name?: string\n\n fromName?: string\n toName?: string\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n\n coords?: LinesCoords\n\n value?: LinesValue\n}\n\nexport interface LinesSeriesOption extends SeriesOption, LinesStateOption,\n\n SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {\n\n type?: 'lines'\n\n coordinateSystem?: string\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n\n effect?: LineDrawModelOption['effect']\n\n /**\n * If lines are polyline\n * polyline not support curveness, label, animation\n */\n polyline?: boolean\n /**\n * If clip the overflow.\n * Available when coordinateSystem is cartesian or polar.\n */\n clip?: boolean\n\n data?: LinesDataItemOption[]\n // Stored as a flat array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n | ArrayLike\n}\n\nclass LinesSeriesModel extends SeriesModel {\n\n static readonly type = 'series.lines';\n readonly type = LinesSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'calendar'];\n\n visualStyleAccessPath = 'lineStyle';\n visualDrawType = 'stroke' as const;\n\n private _flatCoords: ArrayLike;\n private _flatCoordsOffset: ArrayLike;\n\n init(option: LinesSeriesOption) {\n // The input data may be null/undefined.\n option.data = option.data || [];\n\n // Not using preprocessor because mergeOption may not have series.type\n compatEc2(option);\n\n const result = this._processFlatCoordsArray(option.data);\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n\n super.init.apply(this, arguments as any);\n }\n\n mergeOption(option: LinesSeriesOption) {\n compatEc2(option);\n\n if (option.data) {\n // Only update when have option data to merge.\n const result = this._processFlatCoordsArray(option.data);\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n }\n\n super.mergeOption.apply(this, arguments as any);\n }\n\n appendData(params: Pick) {\n const result = this._processFlatCoordsArray(params.data);\n if (result.flatCoords) {\n if (!this._flatCoords) {\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n }\n else {\n this._flatCoords = concatArray(this._flatCoords, result.flatCoords);\n this._flatCoordsOffset = concatArray(this._flatCoordsOffset, result.flatCoordsOffset);\n }\n params.data = new Float32Array(result.count);\n }\n\n this.getRawData().appendData(params.data);\n }\n\n _getCoordsFromItemModel(idx: number) {\n const itemModel = this.getData().getItemModel(idx);\n const coords = (itemModel.option instanceof Array)\n ? itemModel.option : itemModel.getShallow('coords');\n\n if (__DEV__) {\n if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) {\n throw new Error(\n 'Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.'\n );\n }\n }\n return coords;\n }\n\n getLineCoordsCount(idx: number) {\n if (this._flatCoordsOffset) {\n return this._flatCoordsOffset[idx * 2 + 1];\n }\n else {\n return this._getCoordsFromItemModel(idx).length;\n }\n }\n\n getLineCoords(idx: number, out: number[][]) {\n if (this._flatCoordsOffset) {\n const offset = this._flatCoordsOffset[idx * 2];\n const len = this._flatCoordsOffset[idx * 2 + 1];\n for (let i = 0; i < len; i++) {\n out[i] = out[i] || [];\n out[i][0] = this._flatCoords[offset + i * 2];\n out[i][1] = this._flatCoords[offset + i * 2 + 1];\n }\n return len;\n }\n else {\n const coords = this._getCoordsFromItemModel(idx);\n for (let i = 0; i < coords.length; i++) {\n out[i] = out[i] || [];\n out[i][0] = coords[i][0];\n out[i][1] = coords[i][1];\n }\n return coords.length;\n }\n }\n\n _processFlatCoordsArray(data: LinesSeriesOption['data']) {\n let startOffset = 0;\n if (this._flatCoords) {\n startOffset = this._flatCoords.length;\n }\n // Stored as a typed array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n if (typeof data[0] === 'number') {\n const len = data.length;\n // Store offset and len of each segment\n const coordsOffsetAndLenStorage = new Uint32Arr(len) as Uint32Array;\n const coordsStorage = new Float64Arr(len) as Float64Array;\n let coordsCursor = 0;\n let offsetCursor = 0;\n let dataCount = 0;\n for (let i = 0; i < len;) {\n dataCount++;\n const count = data[i++] as number;\n // Offset\n coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset;\n // Len\n coordsOffsetAndLenStorage[offsetCursor++] = count;\n for (let k = 0; k < count; k++) {\n const x = data[i++] as number;\n const y = data[i++] as number;\n coordsStorage[coordsCursor++] = x;\n coordsStorage[coordsCursor++] = y;\n\n if (i > len) {\n if (__DEV__) {\n throw new Error('Invalid data format.');\n }\n }\n }\n }\n\n return {\n flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor),\n flatCoords: coordsStorage,\n count: dataCount\n };\n }\n\n return {\n flatCoordsOffset: null,\n flatCoords: null,\n count: data.length\n };\n }\n\n getInitialData(option: LinesSeriesOption, ecModel: GlobalModel) {\n if (__DEV__) {\n const CoordSys = CoordinateSystem.get(option.coordinateSystem);\n if (!CoordSys) {\n throw new Error('Unkown coordinate system ' + option.coordinateSystem);\n }\n }\n\n const lineData = new SeriesData(['value'], this);\n lineData.hasItemOption = false;\n\n lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {\n // dataItem is simply coords\n if (dataItem instanceof Array) {\n return NaN;\n }\n else {\n lineData.hasItemOption = true;\n const value = dataItem.value;\n if (value != null) {\n return value instanceof Array ? value[dimIndex] : value;\n }\n }\n });\n\n return lineData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const itemModel = data.getItemModel(dataIndex);\n const name = itemModel.get('name');\n if (name) {\n return name;\n }\n const fromName = itemModel.get('fromName');\n const toName = itemModel.get('toName');\n const nameArr = [];\n fromName != null && nameArr.push(fromName);\n toName != null && nameArr.push(toName);\n\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > ')\n });\n }\n\n preventIncremental() {\n return !!this.get(['effect', 'show']);\n }\n\n getProgressive() {\n const progressive = this.option.progressive;\n if (progressive == null) {\n return this.option.large ? 1e4 : this.get('progressive');\n }\n return progressive;\n }\n\n getProgressiveThreshold() {\n const progressiveThreshold = this.option.progressiveThreshold;\n if (progressiveThreshold == null) {\n return this.option.large ? 2e4 : this.get('progressiveThreshold');\n }\n return progressiveThreshold;\n }\n\n static defaultOption: LinesSeriesOption = {\n coordinateSystem: 'geo',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n // Cartesian coordinate system\n xAxisIndex: 0,\n yAxisIndex: 0,\n\n symbol: ['none', 'none'],\n symbolSize: [10, 10],\n // Geo coordinate system\n geoIndex: 0,\n\n effect: {\n show: false,\n period: 4,\n constantSpeed: 0,\n symbol: 'circle',\n symbolSize: 3,\n loop: true,\n trailLength: 0.2\n },\n\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n\n polyline: false,\n\n clip: true,\n\n label: {\n show: false,\n position: 'end'\n // distance: 5,\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n },\n\n lineStyle: {\n opacity: 0.5\n }\n };\n}\n\nexport default LinesSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport LinesSeriesModel, { LinesDataItemOption } from './LinesSeries';\nimport Model from '../../model/Model';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\n\nfunction normalize(a: string | string[]): string[];\nfunction normalize(a: number | number[]): number[];\nfunction normalize(a: string | number | (string | number)[]): (string | number)[] {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n return a;\n}\n\nconst linesVisual: StageHandler = {\n seriesType: 'lines',\n reset(seriesModel: LinesSeriesModel) {\n const symbolType = normalize(seriesModel.get('symbol'));\n const symbolSize = normalize(seriesModel.get('symbolSize'));\n const data = seriesModel.getData() as SeriesData;\n\n data.setVisual('fromSymbol', symbolType && symbolType[0]);\n data.setVisual('toSymbol', symbolType && symbolType[1]);\n data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n function dataEach(\n data: SeriesData,\n idx: number\n ): void {\n const itemModel = data.getItemModel(idx) as Model;\n const symbolType = normalize(itemModel.getShallow('symbol', true));\n const symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n\n symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);\n symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);\n symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);\n symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\n\nexport default linesVisual;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport LinesView from './LinesView';\nimport LinesSeriesModel from './LinesSeries';\nimport linesLayout from './linesLayout';\nimport linesVisual from './linesVisual';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(LinesView);\n registers.registerSeriesModel(LinesSeriesModel);\n registers.registerLayout(linesLayout);\n registers.registerVisual(linesVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8ClampedArray */\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst GRADIENT_LEVELS = 256;\n\ntype ColorFunc = (grad: number, fastMode: boolean, output: number[]) => void;\n\ntype ColorState = 'inRange' | 'outOfRange';\n\nclass HeatmapLayer {\n canvas: HTMLCanvasElement;\n blurSize = 30;\n pointSize = 20;\n\n maxOpacity = 1;\n minOpacity = 0;\n\n private _brushCanvas: HTMLCanvasElement;\n\n private _gradientPixels: Record = {\n inRange: null,\n outOfRange: null\n };\n\n constructor() {\n const canvas = zrUtil.createCanvas();\n this.canvas = canvas;\n }\n\n /**\n * Renders Heatmap and returns the rendered canvas\n * @param data array of data, each has x, y, value\n * @param width canvas width\n * @param height canvas height\n */\n update(\n data: number[][],\n width: number,\n height: number,\n normalize: (value: number) => number,\n colorFunc: Record,\n isInRange?: (grad?: number) => boolean\n ) {\n const brush = this._getBrush();\n const gradientInRange = this._getGradient(colorFunc, 'inRange');\n const gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange');\n const r = this.pointSize + this.blurSize;\n\n const canvas = this.canvas;\n const ctx = canvas.getContext('2d');\n const len = data.length;\n canvas.width = width;\n canvas.height = height;\n for (let i = 0; i < len; ++i) {\n const p = data[i];\n const x = p[0];\n const y = p[1];\n const value = p[2];\n\n // calculate alpha using value\n const alpha = normalize(value);\n\n // draw with the circle brush with alpha\n ctx.globalAlpha = alpha;\n ctx.drawImage(brush, x - r, y - r);\n }\n\n if (!canvas.width || !canvas.height) {\n // Avoid \"Uncaught DOMException: Failed to execute 'getImageData' on\n // 'CanvasRenderingContext2D': The source height is 0.\"\n return canvas;\n }\n\n // colorize the canvas using alpha value and set with gradient\n const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n\n const pixels = imageData.data;\n let offset = 0;\n const pixelLen = pixels.length;\n const minOpacity = this.minOpacity;\n const maxOpacity = this.maxOpacity;\n const diffOpacity = maxOpacity - minOpacity;\n\n while (offset < pixelLen) {\n let alpha = pixels[offset + 3] / 256;\n const gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4;\n // Simple optimize to ignore the empty data\n if (alpha > 0) {\n const gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange;\n // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]\n alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);\n pixels[offset++] = gradient[gradientOffset];\n pixels[offset++] = gradient[gradientOffset + 1];\n pixels[offset++] = gradient[gradientOffset + 2];\n pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;\n }\n else {\n offset += 4;\n }\n }\n ctx.putImageData(imageData, 0, 0);\n\n return canvas;\n }\n\n /**\n * get canvas of a black circle brush used for canvas to draw later\n */\n _getBrush() {\n const brushCanvas = this._brushCanvas || (this._brushCanvas = zrUtil.createCanvas());\n // set brush size\n const r = this.pointSize + this.blurSize;\n const d = r * 2;\n brushCanvas.width = d;\n brushCanvas.height = d;\n\n const ctx = brushCanvas.getContext('2d');\n ctx.clearRect(0, 0, d, d);\n\n // in order to render shadow without the distinct circle,\n // draw the distinct circle in an invisible place,\n // and use shadowOffset to draw shadow in the center of the canvas\n ctx.shadowOffsetX = d;\n ctx.shadowBlur = this.blurSize;\n // draw the shadow in black, and use alpha and shadow blur to generate\n // color in color map\n ctx.shadowColor = '#000';\n\n // draw circle in the left to the canvas\n ctx.beginPath();\n ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n return brushCanvas;\n }\n\n /**\n * get gradient color map\n * @private\n */\n _getGradient(colorFunc: Record, state: ColorState) {\n const gradientPixels = this._gradientPixels;\n const pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));\n const color = [0, 0, 0, 0];\n let off = 0;\n for (let i = 0; i < 256; i++) {\n colorFunc[state](i / 255, true, color);\n pixelsSingleState[off++] = color[0];\n pixelsSingleState[off++] = color[1];\n pixelsSingleState[off++] = color[2];\n pixelsSingleState[off++] = color[3];\n }\n return pixelsSingleState;\n }\n}\n\nexport default HeatmapLayer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport HeatmapLayer from './HeatmapLayer';\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport HeatmapSeriesModel, { HeatmapDataItemOption } from './HeatmapSeries';\nimport type GlobalModel from '../../model/Global';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\nimport type VisualMapModel from '../../component/visualMap/VisualMapModel';\nimport type PiecewiseModel from '../../component/visualMap/PiecewiseModel';\nimport type ContinuousModel from '../../component/visualMap/ContinuousModel';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { StageHandlerProgressParams, Dictionary, OptionDataValue } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Calendar from '../../coord/calendar/Calendar';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\n// Coord can be 'geo' 'bmap' 'amap' 'leaflet'...\ninterface GeoLikeCoordSys extends CoordinateSystem {\n dimensions: ['lng', 'lat']\n getViewRect(): graphic.BoundingRect\n}\n\nfunction getIsInPiecewiseRange(\n dataExtent: number[],\n pieceList: ReturnType,\n selected: Dictionary\n) {\n const dataSpan = dataExtent[1] - dataExtent[0];\n pieceList = zrUtil.map(pieceList, function (piece) {\n return {\n interval: [\n (piece.interval[0] - dataExtent[0]) / dataSpan,\n (piece.interval[1] - dataExtent[0]) / dataSpan\n ]\n };\n });\n const len = pieceList.length;\n let lastIndex = 0;\n\n return function (val: number) {\n let i;\n // Try to find in the location of the last found\n for (i = lastIndex; i < len; i++) {\n const interval = pieceList[i].interval;\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n if (i === len) { // Not found, back interation\n for (i = lastIndex - 1; i >= 0; i--) {\n const interval = pieceList[i].interval;\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n }\n return i >= 0 && i < len && selected[i];\n };\n}\n\nfunction getIsInContinuousRange(dataExtent: number[], range: number[]) {\n const dataSpan = dataExtent[1] - dataExtent[0];\n range = [\n (range[0] - dataExtent[0]) / dataSpan,\n (range[1] - dataExtent[0]) / dataSpan\n ];\n return function (val: number) {\n return val >= range[0] && val <= range[1];\n };\n}\n\nfunction isGeoCoordSys(coordSys: CoordinateSystem): coordSys is GeoLikeCoordSys {\n const dimensions = coordSys.dimensions;\n // Not use coorSys.type === 'geo' because coordSys maybe extended\n return dimensions[0] === 'lng' && dimensions[1] === 'lat';\n}\n\nclass HeatmapView extends ChartView {\n\n static readonly type = 'heatmap';\n readonly type = HeatmapView.type;\n\n private _incrementalDisplayable: boolean;\n\n private _hmLayer: HeatmapLayer;\n\n render(seriesModel: HeatmapSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n let visualMapOfThisSeries;\n ecModel.eachComponent('visualMap', function (visualMap: VisualMapModel) {\n visualMap.eachTargetSeries(function (targetSeries) {\n if (targetSeries === seriesModel) {\n visualMapOfThisSeries = visualMap;\n }\n });\n });\n\n if (__DEV__) {\n if (!visualMapOfThisSeries) {\n throw new Error('Heatmap must use with visualMap');\n }\n }\n\n this.group.removeAll();\n\n this._incrementalDisplayable = null;\n\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {\n this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count());\n }\n else if (isGeoCoordSys(coordSys)) {\n this._renderOnGeo(\n coordSys, seriesModel, visualMapOfThisSeries, api\n );\n }\n }\n\n incrementalPrepareRender(seriesModel: HeatmapSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.group.removeAll();\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: HeatmapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys) {\n // geo does not support incremental rendering?\n if (isGeoCoordSys(coordSys)) {\n this.render(seriesModel, ecModel, api);\n }\n else {\n this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);\n }\n }\n }\n\n _renderOnCartesianAndCalendar(\n seriesModel: HeatmapSeriesModel,\n api: ExtensionAPI,\n start: number,\n end: number,\n incremental?: boolean\n ) {\n\n const coordSys = seriesModel.coordinateSystem as Cartesian2D | Calendar;\n let width;\n let height;\n let xAxisExtent;\n let yAxisExtent;\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const xAxis = coordSys.getAxis('x');\n const yAxis = coordSys.getAxis('y');\n\n if (__DEV__) {\n if (!(xAxis.type === 'category' && yAxis.type === 'category')) {\n throw new Error('Heatmap on cartesian must have two category axes');\n }\n if (!(xAxis.onBand && yAxis.onBand)) {\n throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');\n }\n }\n\n width = xAxis.getBandWidth();\n height = yAxis.getBandWidth();\n xAxisExtent = xAxis.scale.getExtent();\n yAxisExtent = yAxis.scale.getExtent();\n }\n\n const group = this.group;\n const data = seriesModel.getData();\n\n let emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle();\n let blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle();\n let selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle();\n let labelStatesModels = getLabelStatesModels(seriesModel);\n let focus = seriesModel.get(['emphasis', 'focus']);\n let blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n const dataDims = isCoordinateSystemType(coordSys, 'cartesian2d')\n ? [\n data.mapDimension('x'),\n data.mapDimension('y'),\n data.mapDimension('value')\n ]\n : [\n data.mapDimension('time'),\n data.mapDimension('value')\n ];\n\n for (let idx = start; idx < end; idx++) {\n let rect;\n const style = data.getItemVisual(idx, 'style');\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const dataDimX = data.get(dataDims[0], idx);\n const dataDimY = data.get(dataDims[1], idx);\n\n // Ignore empty data and out of extent data\n if (isNaN(data.get(dataDims[2], idx) as number)\n || dataDimX < xAxisExtent[0]\n || dataDimX > xAxisExtent[1]\n || dataDimY < yAxisExtent[0]\n || dataDimY > yAxisExtent[1]\n ) {\n continue;\n }\n\n const point = coordSys.dataToPoint([\n dataDimX,\n dataDimY\n ]);\n\n rect = new graphic.Rect({\n shape: {\n x: Math.floor(Math.round(point[0]) - width / 2),\n y: Math.floor(Math.round(point[1]) - height / 2),\n width: Math.ceil(width),\n height: Math.ceil(height)\n },\n style\n });\n }\n else {\n // Ignore empty data\n if (isNaN(data.get(dataDims[1], idx) as number)) {\n continue;\n }\n\n rect = new graphic.Rect({\n z2: 1,\n shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,\n style\n });\n }\n\n const itemModel = data.getItemModel(idx);\n\n // Optimization for large datset\n if (data.hasItemOption) {\n const emphasisModel = itemModel.getModel('emphasis');\n emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n const rawValue = seriesModel.getRawValue(idx) as OptionDataValue[];\n let defaultText = '-';\n if (rawValue && rawValue[2] != null) {\n defaultText = rawValue[2] + '';\n }\n\n setLabelStyle(\n rect, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: defaultText\n }\n );\n\n rect.ensureState('emphasis').style = emphasisStyle;\n rect.ensureState('blur').style = blurStyle;\n rect.ensureState('select').style = selectStyle;\n\n enableHoverEmphasis(rect, focus, blurScope);\n\n rect.incremental = incremental;\n // PENDING\n if (incremental) {\n // Rect must use hover layer if it's incremental.\n rect.states.emphasis.hoverLayer = true;\n }\n\n group.add(rect);\n data.setItemGraphicEl(idx, rect);\n }\n }\n\n _renderOnGeo(\n geo: GeoLikeCoordSys,\n seriesModel: HeatmapSeriesModel,\n visualMapModel: VisualMapModel,\n api: ExtensionAPI\n ) {\n const inRangeVisuals = visualMapModel.targetVisuals.inRange;\n const outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange;\n // if (!visualMapping) {\n // throw new Error('Data range must have color visuals');\n // }\n\n const data = seriesModel.getData();\n const hmLayer = this._hmLayer || (this._hmLayer || new HeatmapLayer());\n hmLayer.blurSize = seriesModel.get('blurSize');\n hmLayer.pointSize = seriesModel.get('pointSize');\n hmLayer.minOpacity = seriesModel.get('minOpacity');\n hmLayer.maxOpacity = seriesModel.get('maxOpacity');\n\n const rect = geo.getViewRect().clone();\n const roamTransform = geo.getRoamTransform();\n rect.applyTransform(roamTransform);\n\n // Clamp on viewport\n const x = Math.max(rect.x, 0);\n const y = Math.max(rect.y, 0);\n const x2 = Math.min(rect.width + rect.x, api.getWidth());\n const y2 = Math.min(rect.height + rect.y, api.getHeight());\n const width = x2 - x;\n const height = y2 - y;\n\n const dims = [\n data.mapDimension('lng'),\n data.mapDimension('lat'),\n data.mapDimension('value')\n ];\n\n const points = data.mapArray(dims, function (lng: number, lat: number, value: number) {\n const pt = geo.dataToPoint([lng, lat]);\n pt[0] -= x;\n pt[1] -= y;\n pt.push(value);\n return pt;\n });\n\n const dataExtent = visualMapModel.getExtent();\n const isInRange = visualMapModel.type === 'visualMap.continuous'\n ? getIsInContinuousRange(dataExtent, (visualMapModel as ContinuousModel).option.range)\n : getIsInPiecewiseRange(\n dataExtent,\n (visualMapModel as PiecewiseModel).getPieceList(),\n (visualMapModel as PiecewiseModel).option.selected\n );\n\n hmLayer.update(\n points, width, height,\n inRangeVisuals.color.getNormalizer(),\n {\n inRange: inRangeVisuals.color.getColorMapper(),\n outOfRange: outOfRangeVisuals.color.getColorMapper()\n },\n isInRange\n );\n const img = new graphic.Image({\n style: {\n width: width,\n height: height,\n x: x,\n y: y,\n image: hmLayer.canvas\n },\n silent: true\n });\n this.group.add(img);\n }\n}\n\nexport default HeatmapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValue,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n SeriesOnCalendarOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport type Geo from '../../coord/geo/Geo';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Calendar from '../../coord/calendar/Calendar';\n\ntype HeatmapDataValue = OptionDataValue[];\n\nexport interface HeatmapStateOption {\n // Available on cartesian2d coordinate system\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface HeatmapDataItemOption extends HeatmapStateOption, StatesOptionMixin {\n value: HeatmapDataValue\n}\n\nexport interface HeatmapSeriesOption extends SeriesOption, HeatmapStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnCalendarOptionMixin, SeriesEncodeOptionMixin {\n type?: 'heatmap'\n\n coordinateSystem?: 'cartesian2d' | 'geo' | 'calendar'\n\n // Available on geo coordinate system\n blurSize?: number\n pointSize?: number\n maxOpacity?: number\n minOpacity?: number\n\n data?: (HeatmapDataItemOption | HeatmapDataValue)[]\n}\n\nclass HeatmapSeriesModel extends SeriesModel {\n static readonly type = 'series.heatmap';\n readonly type = HeatmapSeriesModel.type;\n\n static readonly dependencies = ['grid', 'geo', 'calendar'];\n // @ts-ignore\n coordinateSystem: Cartesian2D | Geo | Calendar;\n\n getInitialData(option: HeatmapSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n generateCoord: 'value'\n });\n }\n\n preventIncremental() {\n const coordSysCreator = CoordinateSystem.get(this.get('coordinateSystem'));\n if (coordSysCreator && coordSysCreator.dimensions) {\n return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat';\n }\n }\n\n static defaultOption: HeatmapSeriesOption = {\n\n coordinateSystem: 'cartesian2d',\n\n zlevel: 0,\n\n z: 2,\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Geo coordinate system\n geoIndex: 0,\n\n blurSize: 30,\n\n pointSize: 20,\n\n maxOpacity: 1,\n\n minOpacity: 0,\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n}\n\nexport default HeatmapSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport HeatmapView from './HeatmapView';\nimport HeatmapSeriesModel from './HeatmapSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(HeatmapView);\n registers.registerSeriesModel(HeatmapSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {\n enableHoverEmphasis\n} from '../../util/states';\nimport {createSymbol, normalizeSymbolOffset} from '../../util/symbol';\nimport {parsePercent, isNumeric} from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport PictorialBarSeriesModel, {PictorialBarDataItemOption} from './PictorialBarSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\nimport { ColorString, AnimationOptionMixin, ECElement } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport type Element from 'zrender/src/Element';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { getECData } from '../../util/innerStore';\n\nconst BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth'] as const;\n\n// index: +isHorizontal\nconst LAYOUT_ATTRS = [\n {xy: 'x', wh: 'width', index: 0, posDesc: ['left', 'right']},\n {xy: 'y', wh: 'height', index: 1, posDesc: ['top', 'bottom']}\n] as const;\n\nconst pathForLineWidth = new graphic.Circle();\n\ntype ItemModel = Model & {\n getAnimationDelayParams(path: any): {index: number, count: number}\n isAnimationEnabled(): boolean\n};\ntype RectShape = graphic.Rect['shape'];\ntype RectLayout = RectShape;\n\ntype PictorialSymbol = ReturnType & {\n __pictorialAnimationIndex: number\n __pictorialRepeatTimes: number\n};\n\ninterface SymbolMeta {\n dataIndex: number\n\n symbolPatternSize: number\n symbolType: string\n symbolMargin: number\n symbolSize: number[]\n symbolScale: number[]\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat']\n symbolClip: PictorialBarDataItemOption['symbolClip']\n symbolRepeatDirection: PictorialBarDataItemOption['symbolRepeatDirection']\n\n layout: RectLayout\n\n repeatTimes: number\n\n rotation: number\n\n pathPosition: number[]\n bundlePosition: number[]\n\n pxSign: number\n\n barRectShape: RectShape\n clipShape: RectShape\n\n boundingLength: number\n repeatCutLength: number\n\n valueLineWidth: number\n\n opacity: number\n style: PathStyleProps\n z2: number\n\n itemModel: ItemModel\n\n animationModel?: ItemModel\n\n hoverScale: boolean\n}\n\ninterface CreateOpts {\n ecSize: { width: number, height: number }\n seriesModel: PictorialBarSeriesModel\n coordSys: Cartesian2D\n coordSysExtent: number[][]\n isHorizontal: boolean\n valueDim: typeof LAYOUT_ATTRS[number]\n categoryDim: typeof LAYOUT_ATTRS[number]\n}\n\ninterface PictorialBarElement extends graphic.Group {\n __pictorialBundle: graphic.Group\n __pictorialShapeStr: string\n __pictorialSymbolMeta: SymbolMeta\n\n __pictorialMainPath: PictorialSymbol\n\n __pictorialBarRect: graphic.Rect\n\n __pictorialClipPath: graphic.Rect\n}\n\nclass PictorialBarView extends ChartView {\n static type = 'pictorialBar';\n readonly type = PictorialBarView.type;\n\n private _data: SeriesData;\n\n render(\n seriesModel: PictorialBarSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const group = this.group;\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const cartesian = seriesModel.coordinateSystem;\n const baseAxis = cartesian.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const coordSysRect = cartesian.master.getRect();\n\n const opt: CreateOpts = {\n ecSize: {width: api.getWidth(), height: api.getHeight()},\n seriesModel: seriesModel,\n coordSys: cartesian,\n coordSysExtent: [\n [coordSysRect.x, coordSysRect.x + coordSysRect.width],\n [coordSysRect.y, coordSysRect.y + coordSysRect.height]\n ],\n isHorizontal: isHorizontal,\n valueDim: LAYOUT_ATTRS[+isHorizontal],\n categoryDim: LAYOUT_ATTRS[1 - (+isHorizontal)]\n };\n\n data.diff(oldData)\n .add(function (dataIndex) {\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n const itemModel = getItemModel(data, dataIndex);\n const symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);\n\n const bar = createBar(data, opt, symbolMeta);\n\n data.setItemGraphicEl(dataIndex, bar);\n group.add(bar);\n\n updateCommon(bar, opt, symbolMeta);\n })\n .update(function (newIndex, oldIndex) {\n let bar = oldData.getItemGraphicEl(oldIndex) as PictorialBarElement;\n\n if (!data.hasValue(newIndex)) {\n group.remove(bar);\n return;\n }\n\n const itemModel = getItemModel(data, newIndex);\n const symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);\n\n const pictorialShapeStr = getShapeStr(data, symbolMeta);\n if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {\n group.remove(bar);\n data.setItemGraphicEl(newIndex, null);\n bar = null;\n }\n\n if (bar) {\n updateBar(bar, opt, symbolMeta);\n }\n else {\n bar = createBar(data, opt, symbolMeta, true);\n }\n\n data.setItemGraphicEl(newIndex, bar);\n bar.__pictorialSymbolMeta = symbolMeta;\n // Add back\n group.add(bar);\n\n updateCommon(bar, opt, symbolMeta);\n })\n .remove(function (dataIndex) {\n const bar = oldData.getItemGraphicEl(dataIndex) as PictorialBarElement;\n bar && removeBar(\n oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar\n );\n })\n .execute();\n\n this._data = data;\n\n return this.group;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n const group = this.group;\n const data = this._data;\n if (ecModel.get('animation')) {\n if (data) {\n data.eachItemGraphicEl(function (bar: PictorialBarElement) {\n removeBar(data, getECData(bar).dataIndex, ecModel as Model, bar);\n });\n }\n }\n else {\n group.removeAll();\n }\n }\n}\n\n// Set or calculate default value about symbol, and calculate layout info.\nfunction getSymbolMeta(\n data: SeriesData,\n dataIndex: number,\n itemModel: ItemModel,\n opt: CreateOpts\n): SymbolMeta {\n const layout = data.getItemLayout(dataIndex) as RectLayout;\n const symbolRepeat = itemModel.get('symbolRepeat');\n const symbolClip = itemModel.get('symbolClip');\n const symbolPosition = itemModel.get('symbolPosition') || 'start';\n const symbolRotate = itemModel.get('symbolRotate');\n const rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n const symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n const isAnimationEnabled = itemModel.isAnimationEnabled();\n\n const symbolMeta: SymbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n style: data.getItemVisual(dataIndex, 'style'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n z2: itemModel.getShallow('z', true) || 0\n } as SymbolMeta;\n\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\n prepareSymbolSize(\n data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,\n symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta\n );\n\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\n const symbolSize = symbolMeta.symbolSize;\n const symbolOffset = normalizeSymbolOffset(itemModel.get('symbolOffset'), symbolSize);\n\n prepareLayoutInfo(\n itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset as number[],\n symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,\n opt, symbolMeta\n );\n\n return symbolMeta;\n}\n\n// bar length can be negative.\nfunction prepareBarLength(\n itemModel: ItemModel,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n layout: RectLayout,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const valueDim = opt.valueDim;\n const symbolBoundingData = itemModel.get('symbolBoundingData');\n const valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());\n const zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));\n const pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);\n let boundingLength;\n\n if (zrUtil.isArray(symbolBoundingData)) {\n const symbolBoundingExtent = [\n convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx,\n convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx\n ];\n symbolBoundingExtent[1] < symbolBoundingExtent[0] && (symbolBoundingExtent.reverse());\n boundingLength = symbolBoundingExtent[pxSignIdx];\n }\n else if (symbolBoundingData != null) {\n boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;\n }\n else if (symbolRepeat) {\n boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;\n }\n else {\n boundingLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.boundingLength = boundingLength;\n\n if (symbolRepeat) {\n outputSymbolMeta.repeatCutLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0;\n}\n\nfunction convertToCoordOnAxis(axis: Axis2D, value: number) {\n return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));\n}\n\n// Support ['100%', '100%']\nfunction prepareSymbolSize(\n data: SeriesData,\n dataIndex: number,\n layout: RectLayout,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n symbolClip: unknown,\n boundingLength: number,\n pxSign: number,\n symbolPatternSize: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const valueDim = opt.valueDim;\n const categoryDim = opt.categoryDim;\n const categorySize = Math.abs(layout[categoryDim.wh]);\n\n const symbolSize = data.getItemVisual(dataIndex, 'symbolSize');\n let parsedSymbolSize: number[];\n if (zrUtil.isArray(symbolSize)) {\n parsedSymbolSize = symbolSize.slice();\n }\n else {\n if (symbolSize == null) {\n // will parse to number below\n parsedSymbolSize = ['100%', '100%'] as unknown as number[];\n }\n else {\n parsedSymbolSize = [symbolSize, symbolSize];\n }\n }\n\n // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is\n // to complicated to calculate real percent value if considering scaled lineWidth.\n // So the actual size will bigger than layout size if lineWidth is bigger than zero,\n // which can be tolerated in pictorial chart.\n\n parsedSymbolSize[categoryDim.index] = parsePercent(\n parsedSymbolSize[categoryDim.index],\n categorySize\n );\n parsedSymbolSize[valueDim.index] = parsePercent(\n parsedSymbolSize[valueDim.index],\n symbolRepeat ? categorySize : Math.abs(boundingLength)\n );\n\n outputSymbolMeta.symbolSize = parsedSymbolSize;\n\n // If x or y is less than zero, show reversed shape.\n const symbolScale = outputSymbolMeta.symbolScale = [\n parsedSymbolSize[0] / symbolPatternSize,\n parsedSymbolSize[1] / symbolPatternSize\n ];\n // Follow convention, 'right' and 'top' is the normal scale.\n symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;\n}\n\nfunction prepareLineWidth(\n itemModel: ItemModel,\n symbolScale: number[],\n rotation: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n // In symbols are drawn with scale, so do not need to care about the case that width\n // or height are too small. But symbol use strokeNoScale, where acture lineWidth should\n // be calculated.\n let valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;\n\n if (valueLineWidth) {\n pathForLineWidth.attr({\n scaleX: symbolScale[0],\n scaleY: symbolScale[1],\n rotation: rotation\n });\n pathForLineWidth.updateTransform();\n valueLineWidth /= pathForLineWidth.getLineScale();\n valueLineWidth *= symbolScale[opt.valueDim.index];\n }\n\n outputSymbolMeta.valueLineWidth = valueLineWidth;\n}\n\nfunction prepareLayoutInfo(\n itemModel: ItemModel,\n symbolSize: number[],\n layout: RectLayout,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n symbolClip: PictorialBarDataItemOption['symbolClip'],\n symbolOffset: number[],\n symbolPosition: PictorialBarDataItemOption['symbolPosition'],\n valueLineWidth: number,\n boundingLength: number,\n repeatCutLength: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const categoryDim = opt.categoryDim;\n const valueDim = opt.valueDim;\n const pxSign = outputSymbolMeta.pxSign;\n\n const unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);\n let pathLen = unitLength;\n\n // Note: rotation will not effect the layout of symbols, because user may\n // want symbols to rotate on its center, which should not be translated\n // when rotating.\n\n if (symbolRepeat) {\n const absBoundingLength = Math.abs(boundingLength);\n\n let symbolMargin = zrUtil.retrieve(itemModel.get('symbolMargin'), '15%') + '';\n let hasEndGap = false;\n if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {\n hasEndGap = true;\n symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);\n }\n let symbolMarginNumeric = parsePercent(symbolMargin, symbolSize[valueDim.index]);\n\n let uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0);\n\n // When symbol margin is less than 0, margin at both ends will be subtracted\n // to ensure that all of the symbols will not be overflow the given area.\n let endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;\n\n // Both final repeatTimes and final symbolMarginNumeric area calculated based on\n // boundingLength.\n const repeatSpecified = isNumeric(symbolRepeat);\n let repeatTimes = repeatSpecified\n ? symbolRepeat as number\n : toIntTimes((absBoundingLength + endFix) / uLenWithMargin);\n\n // Adjust calculate margin, to ensure each symbol is displayed\n // entirely in the given layout area.\n const mDiff = absBoundingLength - repeatTimes * unitLength;\n symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : Math.max(repeatTimes - 1, 1));\n uLenWithMargin = unitLength + symbolMarginNumeric * 2;\n endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;\n\n // Update repeatTimes when not all symbol will be shown.\n if (!repeatSpecified && symbolRepeat !== 'fixed') {\n repeatTimes = repeatCutLength\n ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin)\n : 0;\n }\n\n pathLen = repeatTimes * uLenWithMargin - endFix;\n outputSymbolMeta.repeatTimes = repeatTimes;\n outputSymbolMeta.symbolMargin = symbolMarginNumeric;\n }\n\n const sizeFix = pxSign * (pathLen / 2);\n const pathPosition = outputSymbolMeta.pathPosition = [] as number[];\n pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;\n pathPosition[valueDim.index] = symbolPosition === 'start'\n ? sizeFix\n : symbolPosition === 'end'\n ? boundingLength - sizeFix\n : boundingLength / 2; // 'center'\n if (symbolOffset) {\n pathPosition[0] += symbolOffset[0];\n pathPosition[1] += symbolOffset[1];\n }\n\n const bundlePosition = outputSymbolMeta.bundlePosition = [] as number[];\n bundlePosition[categoryDim.index] = layout[categoryDim.xy];\n bundlePosition[valueDim.index] = layout[valueDim.xy];\n\n const barRectShape = outputSymbolMeta.barRectShape = zrUtil.extend({}, layout);\n barRectShape[valueDim.wh] = pxSign * Math.max(\n Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix)\n );\n barRectShape[categoryDim.wh] = layout[categoryDim.wh];\n\n const clipShape = outputSymbolMeta.clipShape = {} as RectShape;\n // Consider that symbol may be overflow layout rect.\n clipShape[categoryDim.xy] = -layout[categoryDim.xy];\n clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];\n clipShape[valueDim.xy] = 0;\n clipShape[valueDim.wh] = layout[valueDim.wh];\n}\n\nfunction createPath(symbolMeta: SymbolMeta) {\n const symbolPatternSize = symbolMeta.symbolPatternSize;\n const path = createSymbol(\n // Consider texture img, make a big size.\n symbolMeta.symbolType,\n -symbolPatternSize / 2,\n -symbolPatternSize / 2,\n symbolPatternSize,\n symbolPatternSize\n );\n (path as Displayable).attr({\n culling: true\n });\n path.type !== 'image' && path.setStyle({\n strokeNoScale: true\n });\n\n return path as PictorialSymbol;\n}\n\nfunction createOrUpdateRepeatSymbols(\n bar: PictorialBarElement, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean\n) {\n const bundle = bar.__pictorialBundle;\n const symbolSize = symbolMeta.symbolSize;\n const valueLineWidth = symbolMeta.valueLineWidth;\n const pathPosition = symbolMeta.pathPosition;\n const valueDim = opt.valueDim;\n const repeatTimes = symbolMeta.repeatTimes || 0;\n\n let index = 0;\n const unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;\n\n eachPath(bar, function (path) {\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n if (index < repeatTimes) {\n updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);\n }\n else {\n updateAttr(path, null, { scaleX: 0, scaleY: 0 }, symbolMeta, isUpdate, function () {\n bundle.remove(path);\n });\n }\n\n // updateHoverAnimation(path, symbolMeta);\n\n index++;\n });\n\n for (; index < repeatTimes; index++) {\n const path = createPath(symbolMeta);\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n bundle.add(path);\n\n const target = makeTarget(index);\n\n updateAttr(\n path,\n {\n x: target.x,\n y: target.y,\n scaleX: 0,\n scaleY: 0\n },\n {\n scaleX: target.scaleX,\n scaleY: target.scaleY,\n rotation: target.rotation\n },\n symbolMeta,\n isUpdate\n );\n }\n\n function makeTarget(index: number) {\n const position = pathPosition.slice();\n // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index\n // Otherwise: i = index;\n const pxSign = symbolMeta.pxSign;\n let i = index;\n if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {\n i = repeatTimes - 1 - index;\n }\n position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];\n\n return {\n x: position[0],\n y: position[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n };\n }\n}\n\nfunction createOrUpdateSingleSymbol(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n const bundle = bar.__pictorialBundle;\n let mainPath = bar.__pictorialMainPath;\n\n if (!mainPath) {\n mainPath = bar.__pictorialMainPath = createPath(symbolMeta);\n bundle.add(mainPath);\n\n updateAttr(\n mainPath,\n {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: 0,\n scaleY: 0,\n rotation: symbolMeta.rotation\n },\n {\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1]\n },\n symbolMeta,\n isUpdate\n );\n }\n else {\n updateAttr(\n mainPath,\n null,\n {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n },\n symbolMeta,\n isUpdate\n );\n }\n}\n\n// bar rect is used for label.\nfunction createOrUpdateBarRect(\n bar: PictorialBarElement,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n const rectShape = zrUtil.extend({}, symbolMeta.barRectShape);\n\n let barRect = bar.__pictorialBarRect;\n if (!barRect) {\n barRect = bar.__pictorialBarRect = new graphic.Rect({\n z2: 2,\n shape: rectShape,\n silent: true,\n style: {\n stroke: 'transparent',\n fill: 'transparent',\n lineWidth: 0\n }\n });\n (barRect as ECElement).disableMorphing = true;\n\n bar.add(barRect);\n }\n else {\n updateAttr(barRect, null, {shape: rectShape}, symbolMeta, isUpdate);\n }\n}\n\nfunction createOrUpdateClip(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n // If not clip, symbol will be remove and rebuilt.\n if (symbolMeta.symbolClip) {\n let clipPath = bar.__pictorialClipPath;\n const clipShape = zrUtil.extend({}, symbolMeta.clipShape);\n const valueDim = opt.valueDim;\n const animationModel = symbolMeta.animationModel;\n const dataIndex = symbolMeta.dataIndex;\n\n if (clipPath) {\n graphic.updateProps(\n clipPath, {shape: clipShape}, animationModel, dataIndex\n );\n }\n else {\n clipShape[valueDim.wh] = 0;\n clipPath = new graphic.Rect({shape: clipShape});\n bar.__pictorialBundle.setClipPath(clipPath);\n bar.__pictorialClipPath = clipPath;\n\n const target = {} as RectShape;\n target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];\n\n graphic[isUpdate ? 'updateProps' : 'initProps'](\n clipPath, {shape: target}, animationModel, dataIndex\n );\n }\n }\n}\n\nfunction getItemModel(data: SeriesData, dataIndex: number) {\n const itemModel = data.getItemModel(dataIndex) as ItemModel;\n itemModel.getAnimationDelayParams = getAnimationDelayParams;\n itemModel.isAnimationEnabled = isAnimationEnabled;\n return itemModel;\n}\n\nfunction getAnimationDelayParams(this: ItemModel, path: PictorialSymbol) {\n // The order is the same as the z-order, see `symbolRepeatDiretion`.\n return {\n index: path.__pictorialAnimationIndex,\n count: path.__pictorialRepeatTimes\n };\n}\n\nfunction isAnimationEnabled(this: ItemModel) {\n // `animation` prop can be set on itemModel in pictorial bar chart.\n return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');\n}\n\nfunction createBar(data: SeriesData, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean) {\n // bar is the main element for each data.\n const bar = new graphic.Group() as PictorialBarElement;\n // bundle is used for location and clip.\n const bundle = new graphic.Group();\n bar.add(bundle);\n bar.__pictorialBundle = bundle;\n\n bundle.x = symbolMeta.bundlePosition[0];\n bundle.y = symbolMeta.bundlePosition[1];\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta);\n }\n else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, isUpdate);\n\n createOrUpdateClip(bar, opt, symbolMeta, isUpdate);\n\n bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);\n bar.__pictorialSymbolMeta = symbolMeta;\n return bar;\n}\n\nfunction updateBar(bar: PictorialBarElement, opt: CreateOpts, symbolMeta: SymbolMeta) {\n const animationModel = symbolMeta.animationModel;\n const dataIndex = symbolMeta.dataIndex;\n const bundle = bar.__pictorialBundle;\n\n graphic.updateProps(\n bundle, {\n x: symbolMeta.bundlePosition[0],\n y: symbolMeta.bundlePosition[1]\n }, animationModel, dataIndex\n );\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);\n }\n else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, true);\n\n createOrUpdateClip(bar, opt, symbolMeta, true);\n}\n\nfunction removeBar(\n data: SeriesData, dataIndex: number, animationModel: Model, bar: PictorialBarElement\n) {\n // Not show text when animating\n const labelRect = bar.__pictorialBarRect;\n labelRect && (labelRect.removeTextContent());\n\n const pathes = [];\n eachPath(bar, function (path) {\n pathes.push(path);\n });\n bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath);\n\n // I do not find proper remove animation for clip yet.\n bar.__pictorialClipPath && (animationModel = null);\n\n zrUtil.each(pathes, function (path) {\n graphic.removeElement(\n path, { scaleX: 0, scaleY: 0 }, animationModel, dataIndex,\n function () {\n bar.parent && bar.parent.remove(bar);\n }\n );\n });\n\n data.setItemGraphicEl(dataIndex, null);\n}\n\nfunction getShapeStr(data: SeriesData, symbolMeta: SymbolMeta) {\n return [\n data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none',\n !!symbolMeta.symbolRepeat,\n !!symbolMeta.symbolClip\n ].join(':');\n}\n\nfunction eachPath(\n bar: PictorialBarElement,\n cb: (this: Ctx, el: PictorialSymbol) => void,\n context?: Ctx\n) {\n // Do not use Group#eachChild, because it do not support remove.\n zrUtil.each(bar.__pictorialBundle.children(), function (el) {\n el !== bar.__pictorialBarRect && cb.call(context, el);\n });\n}\n\nfunction updateAttr(\n el: T,\n immediateAttrs: PathProps,\n animationAttrs: PathProps,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean,\n cb?: () => void\n) {\n immediateAttrs && el.attr(immediateAttrs);\n // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.\n if (symbolMeta.symbolClip && !isUpdate) {\n animationAttrs && el.attr(animationAttrs);\n }\n else {\n animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps'](\n el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb\n );\n }\n}\n\nfunction updateCommon(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta\n) {\n const dataIndex = symbolMeta.dataIndex;\n const itemModel = symbolMeta.itemModel;\n // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n const emphasisModel = itemModel.getModel('emphasis');\n const emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n const blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n const selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n const cursorStyle = itemModel.getShallow('cursor');\n\n const focus = emphasisModel.get('focus');\n const blurScope = emphasisModel.get('blurScope');\n const hoverScale = emphasisModel.get('scale');\n\n eachPath(bar, function (path) {\n if (path instanceof ZRImage) {\n const pathStyle = path.style;\n path.useStyle(zrUtil.extend({\n // TODO other properties like dx, dy ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolMeta.style));\n }\n else {\n path.useStyle(symbolMeta.style);\n }\n\n const emphasisState = path.ensureState('emphasis');\n emphasisState.style = emphasisStyle;\n\n if (hoverScale) {\n // NOTE: Must after scale is set after updateAttr\n emphasisState.scaleX = path.scaleX * 1.1;\n emphasisState.scaleY = path.scaleY * 1.1;\n }\n\n path.ensureState('blur').style = blurStyle;\n path.ensureState('select').style = selectStyle;\n\n cursorStyle && (path.cursor = cursorStyle);\n path.z2 = symbolMeta.z2;\n });\n\n const barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];\n const barRect = bar.__pictorialBarRect;\n\n setLabelStyle(\n barRect, getLabelStatesModels(itemModel),\n {\n labelFetcher: opt.seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(opt.seriesModel.getData(), dataIndex),\n inheritColor: symbolMeta.style.fill as ColorString,\n defaultOpacity: symbolMeta.style.opacity,\n defaultOutsidePosition: barPositionOutside\n }\n );\n\n enableHoverEmphasis(bar, focus, blurScope);\n}\n\nfunction toIntTimes(times: number) {\n const roundedTimes = Math.round(times);\n // Escapse accurate error\n return Math.abs(times - roundedTimes) < 1e-4\n ? roundedTimes\n : Math.ceil(times);\n}\n\nexport default PictorialBarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseBarSeriesModel, { BaseBarSeriesOption } from './BaseBarSeries';\nimport {\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n AnimationOptionMixin,\n SeriesStackOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface PictorialBarStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface PictorialBarSeriesSymbolOption {\n /**\n * Customized bar shape\n */\n symbol?: string\n /**\n * Can be ['100%', '100%'], null means auto.\n * The percent will be relative to category width. If no repeat.\n * Will be relative to symbolBoundingData.\n */\n symbolSize?: (number | string)[] | number | string\n\n symbolRotate?: number\n\n /**\n * Default to be auto\n */\n symbolPosition?: 'start' | 'end' | 'center'\n\n /**\n * Can be percent offset relative to the symbolSize\n */\n symbolOffset?: (number | string)[] | number | string\n /**\n * start margin and end margin. Can be a number or a percent string relative to symbolSize.\n * Auto margin by default.\n */\n symbolMargin?: (number | string)[] | number | string\n\n /**\n * true: means auto calculate repeat times and cut by data.\n * a number: specifies repeat times, and do not cut by data.\n * 'fixed': means auto calculate repeat times but do not cut by data.\n *\n * Otherwise means no repeat\n */\n symbolRepeat?: boolean | number | 'fixed'\n\n /**\n * From start to end or end to start.\n */\n symbolRepeatDirection?: 'start' | 'end'\n\n symbolClip?: boolean\n\n /**\n * It will define the size of graphic elements.\n */\n symbolBoundingData?: number | number[]\n\n symbolPatternSize?: number\n}\n\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface PictorialBarDataItemOption extends PictorialBarSeriesSymbolOption,\n // Pictorial bar support configure animation in each data item.\n AnimationOptionMixin,\n PictorialBarStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n z?: number\n\n cursor?: string\n}\n\nexport interface PictorialBarSeriesOption\n extends BaseBarSeriesOption, PictorialBarStateOption,\n PictorialBarSeriesSymbolOption,\n SeriesStackOptionMixin {\n\n type?: 'pictorialBar'\n\n coordinateSystem?: 'cartesian2d'\n\n data?: (PictorialBarDataItemOption | OptionDataValue | OptionDataValue[])[]\n}\n\nclass PictorialBarSeriesModel extends BaseBarSeriesModel {\n static type = 'series.pictorialBar';\n type = PictorialBarSeriesModel.type;\n\n static dependencies = ['grid'];\n\n coordinateSystem: Cartesian2D;\n\n\n hasSymbolVisual = true;\n defaultSymbol = 'roundRect';\n\n static defaultOption: PictorialBarSeriesOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n\n symbol: 'circle', // Customized bar shape\n symbolSize: null, //\n symbolRotate: null,\n\n symbolPosition: null, // 'start' or 'end' or 'center', null means auto.\n symbolOffset: null,\n symbolMargin: null,\n symbolRepeat: false,\n symbolRepeatDirection: 'end', // 'end' means from 'start' to 'end'.\n\n symbolClip: false,\n symbolBoundingData: null, // Can be 60 or -40 or [-40, 60]\n symbolPatternSize: 400, // 400 * 400 px\n\n barGap: '-100%', // In most case, overlap is needed.\n\n // z can be set in data item, which is z2 actually.\n\n // Disable progressive\n progressive: 0,\n\n emphasis: {\n // By default pictorialBar do not hover scale. Hover scale is not suitable\n // for the case that both has foreground and background.\n scale: false\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n });\n\n getInitialData(option: PictorialBarSeriesOption) {\n // Disable stack.\n (option as any).stack = null;\n return super.getInitialData.apply(this, arguments as any);\n }\n}\n\nexport default PictorialBarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport PictorialBarView from './PictorialBarView';\nimport PictorialBarSeriesModel from './PictorialBarSeries';\nimport { layout } from '../../layout/barGrid';\nimport { curry } from 'zrender/src/core/util';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(PictorialBarView);\n registers.registerSeriesModel(PictorialBarSeriesModel);\n\n registers.registerLayout(curry(\n layout, 'pictorialBar'\n ));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {ECPolygon} from '../line/poly';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport {setLabelStyle, getLabelStatesModels} from '../../label/labelStyle';\nimport {bind} from 'zrender/src/core/util';\nimport DataDiffer from '../../data/DataDiffer';\nimport ChartView from '../../view/Chart';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { ColorString } from '../../util/types';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype LayerSeries = ReturnType;\n\nclass ThemeRiverView extends ChartView {\n\n static readonly type = 'themeRiver';\n readonly type = ThemeRiverView.type;\n\n private _layersSeries: LayerSeries;\n private _layers: graphic.Group[] = [];\n\n render(seriesModel: ThemeRiverSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const self = this;\n\n const group = this.group;\n\n const layersSeries = seriesModel.getLayerSeries();\n\n const layoutInfo = data.getLayout('layoutInfo');\n const rect = layoutInfo.rect;\n const boundaryGap = layoutInfo.boundaryGap;\n\n group.x = 0;\n group.y = rect.y + boundaryGap[0];\n\n function keyGetter(item: LayerSeries[number]) {\n return item.name;\n }\n const dataDiffer = new DataDiffer(\n this._layersSeries || [], layersSeries,\n keyGetter, keyGetter\n );\n\n const newLayersGroups: graphic.Group[] = [];\n\n dataDiffer\n .add(bind(process, this, 'add'))\n .update(bind(process, this, 'update'))\n .remove(bind(process, this, 'remove'))\n .execute();\n\n function process(status: 'add' | 'update' | 'remove', idx: number, oldIdx?: number) {\n const oldLayersGroups = self._layers;\n if (status === 'remove') {\n group.remove(oldLayersGroups[idx]);\n return;\n }\n const points0: number[] = [];\n const points1: number[] = [];\n let style;\n const indices = layersSeries[idx].indices;\n let j = 0;\n for (; j < indices.length; j++) {\n const layout = data.getItemLayout(indices[j]);\n const x = layout.x;\n const y0 = layout.y0;\n const y = layout.y;\n\n points0.push(x, y0);\n points1.push(x, y0 + y);\n\n style = data.getItemVisual(indices[j], 'style');\n }\n\n let polygon: ECPolygon;\n const textLayout = data.getItemLayout(indices[0]);\n const labelModel = seriesModel.getModel('label');\n const margin = labelModel.get('margin');\n const emphasisModel = seriesModel.getModel('emphasis');\n\n if (status === 'add') {\n const layerGroup = newLayersGroups[idx] = new graphic.Group();\n polygon = new ECPolygon({\n shape: {\n points: points0,\n stackedOnPoints: points1,\n smooth: 0.4,\n stackedOnSmooth: 0.4,\n smoothConstraint: false\n },\n z2: 0\n });\n layerGroup.add(polygon);\n group.add(layerGroup);\n\n if (seriesModel.isAnimationEnabled()) {\n polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {\n polygon.removeClipPath();\n }));\n }\n }\n else {\n const layerGroup = oldLayersGroups[oldIdx];\n polygon = layerGroup.childAt(0) as ECPolygon;\n group.add(layerGroup);\n\n newLayersGroups[idx] = layerGroup;\n\n graphic.updateProps(polygon, {\n shape: {\n points: points0,\n stackedOnPoints: points1\n }\n }, seriesModel);\n\n saveOldStyle(polygon);\n }\n\n setLabelStyle(polygon, getLabelStatesModels(seriesModel), {\n labelDataIndex: indices[j - 1],\n defaultText: data.getName(indices[j - 1]),\n inheritColor: style.fill as ColorString\n }, {\n normal: {\n verticalAlign: 'middle'\n // align: 'right'\n }\n });\n polygon.setTextConfig({\n position: null,\n local: true\n });\n\n const labelEl = polygon.getTextContent();\n // TODO More label position options.\n if (labelEl) {\n labelEl.x = textLayout.x - margin;\n labelEl.y = textLayout.y0 + textLayout.y / 2;\n }\n\n polygon.useStyle(style);\n\n data.setItemGraphicEl(idx, polygon);\n\n setStatesStylesFromModel(polygon, seriesModel);\n enableHoverEmphasis(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n this._layersSeries = layersSeries;\n this._layers = newLayersGroups;\n }\n};\n\n// add animation to the view\nfunction createGridClipShape(rect: RectLike, seriesModel: ThemeRiverSeriesModel, cb: () => void) {\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n x: rect.x - 50,\n width: rect.width + 100,\n height: rect.height + 20\n }\n }, seriesModel, cb);\n\n return rectEl;\n}\n\nexport default ThemeRiverView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createDimensions from '../../data/helper/createDimensions';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {groupData, SINGLE_REFERRING} from '../../util/model';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n SeriesOnSingleOptionMixin,\n OptionDataValueDate,\n OptionDataValueNumeric,\n ItemStyleOption,\n BoxLayoutOptionMixin,\n ZRColor,\n Dictionary,\n SeriesLabelOption\n} from '../../util/types';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport GlobalModel from '../../model/Global';\nimport Single from '../../coord/single/Single';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nconst DATA_NAME_INDEX = 2;\n\ninterface ThemeRiverSeriesLabelOption extends SeriesLabelOption {\n margin?: number\n}\n\ntype ThemerRiverDataItem = [OptionDataValueDate, OptionDataValueNumeric, string];\n\nexport interface ThemeRiverStateOption {\n label?: ThemeRiverSeriesLabelOption\n itemStyle?: ItemStyleOption\n}\n\nexport interface ThemeRiverSeriesOption extends SeriesOption, ThemeRiverStateOption,\n SeriesOnSingleOptionMixin, BoxLayoutOptionMixin {\n type?: 'themeRiver'\n\n color?: ZRColor[]\n\n coordinateSystem?: 'singleAxis'\n\n /**\n * gap in axis's orthogonal orientation\n */\n boundaryGap?: (string | number)[]\n /**\n * [date, value, name]\n */\n data?: ThemerRiverDataItem[]\n}\n\nclass ThemeRiverSeriesModel extends SeriesModel {\n static readonly type = 'series.themeRiver';\n readonly type = ThemeRiverSeriesModel.type;\n\n static readonly dependencies = ['singleAxis'];\n\n nameMap: zrUtil.HashMap;\n\n coordinateSystem: Single;\n\n /**\n * @override\n */\n init(option: ThemeRiverSeriesOption) {\n // eslint-disable-next-line\n super.init.apply(this, arguments as any);\n\n // Put this function here is for the sake of consistency of code style.\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n }\n\n /**\n * If there is no value of a certain point in the time for some event,set it value to 0.\n *\n * @param {Array} data initial data in the option\n * @return {Array}\n */\n fixData(data: ThemeRiverSeriesOption['data']) {\n let rawDataLength = data.length;\n /**\n * Make sure every layer data get the same keys.\n * The value index tells which layer has visited.\n * {\n * 2014/01/01: -1\n * }\n */\n const timeValueKeys: Dictionary = {};\n\n // grouped data by name\n const groupResult = groupData(data, (item: ThemerRiverDataItem) => {\n if (!timeValueKeys.hasOwnProperty(item[0] + '')) {\n timeValueKeys[item[0] + ''] = -1;\n }\n return item[2];\n });\n const layerData: {name: string, dataList: ThemerRiverDataItem[]}[] = [];\n groupResult.buckets.each(function (items, key) {\n layerData.push({\n name: key, dataList: items\n });\n });\n const layerNum = layerData.length;\n\n for (let k = 0; k < layerNum; ++k) {\n const name = layerData[k].name;\n for (let j = 0; j < layerData[k].dataList.length; ++j) {\n const timeValue = layerData[k].dataList[j][0] + '';\n timeValueKeys[timeValue] = k;\n }\n\n for (const timeValue in timeValueKeys) {\n if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) {\n timeValueKeys[timeValue] = k;\n data[rawDataLength] = [timeValue, 0, name];\n rawDataLength++;\n }\n }\n\n }\n return data;\n }\n\n /**\n * @override\n * @param option the initial option that user gived\n * @param ecModel the model object for themeRiver option\n */\n getInitialData(option: ThemeRiverSeriesOption, ecModel: GlobalModel): SeriesData {\n\n const singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n\n const axisType = singleAxisModel.get('type');\n\n // filter the data item with the value of label is undefined\n const filterData = zrUtil.filter(option.data, function (dataItem) {\n return dataItem[2] !== undefined;\n });\n\n // ??? TODO design a stage to transfer data for themeRiver and lines?\n const data = this.fixData(filterData || []);\n const nameList = [];\n const nameMap = this.nameMap = zrUtil.createHashMap();\n let count = 0;\n\n for (let i = 0; i < data.length; ++i) {\n nameList.push(data[i][DATA_NAME_INDEX]);\n if (!nameMap.get(data[i][DATA_NAME_INDEX] as string)) {\n nameMap.set(data[i][DATA_NAME_INDEX] as string, count);\n count++;\n }\n }\n\n const { dimensionList } = createDimensions(data, {\n coordDimensions: ['single'],\n dimensionsDefine: [\n {\n name: 'time',\n type: getDimensionTypeByAxis(axisType)\n },\n {\n name: 'value',\n type: 'float'\n },\n {\n name: 'name',\n type: 'ordinal'\n }\n ],\n encodeDefine: {\n single: 0,\n value: 1,\n itemName: 2\n }\n });\n\n const list = new SeriesData(dimensionList, this);\n list.initData(data);\n\n return list;\n }\n\n /**\n * The raw data is divided into multiple layers and each layer\n * has same name.\n */\n getLayerSeries() {\n const data = this.getData();\n const lenCount = data.count();\n const indexArr = [];\n\n for (let i = 0; i < lenCount; ++i) {\n indexArr[i] = i;\n }\n\n const timeDim = data.mapDimension('single');\n\n // data group by name\n const groupResult = groupData(indexArr, function (index) {\n return data.get('name', index) as string;\n });\n const layerSeries: {\n name: string\n indices: number[]\n }[] = [];\n groupResult.buckets.each(function (items: number[], key: string) {\n items.sort(function (index1: number, index2: number) {\n return data.get(timeDim, index1) as number - (data.get(timeDim, index2) as number);\n });\n layerSeries.push({\n name: key,\n indices: items\n });\n });\n\n return layerSeries;\n }\n\n /**\n * Get data indices for show tooltip content\n */\n getAxisTooltipData(dim: string | string[], value: number, baseAxis: SingleAxis) {\n if (!zrUtil.isArray(dim)) {\n dim = dim ? [dim] : [];\n }\n\n const data = this.getData();\n const layerSeries = this.getLayerSeries();\n const indices = [];\n const layerNum = layerSeries.length;\n let nestestValue;\n\n for (let i = 0; i < layerNum; ++i) {\n let minDist = Number.MAX_VALUE;\n let nearestIdx = -1;\n const pointNum = layerSeries[i].indices.length;\n for (let j = 0; j < pointNum; ++j) {\n const theValue = data.get(dim[0], layerSeries[i].indices[j]) as number;\n const dist = Math.abs(theValue - value);\n if (dist <= minDist) {\n nestestValue = theValue;\n minDist = dist;\n nearestIdx = layerSeries[i].indices[j];\n }\n }\n indices.push(nearestIdx);\n }\n\n return {dataIndices: indices, nestestValue: nestestValue};\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const name = data.getName(dataIndex);\n const value = data.get(data.mapDimension('value'), dataIndex);\n\n return createTooltipMarkup('nameValue', { name: name, value: value });\n }\n\n static defaultOption: ThemeRiverSeriesOption = {\n zlevel: 0,\n z: 2,\n\n colorBy: 'data',\n coordinateSystem: 'singleAxis',\n\n // gap in axis's orthogonal orientation\n boundaryGap: ['10%', '10%'],\n\n // legendHoverLink: true,\n\n singleAxisIndex: 0,\n\n animationEasing: 'linear',\n\n label: {\n margin: 4,\n show: true,\n position: 'left',\n fontSize: 11\n },\n\n emphasis: {\n\n label: {\n show: true\n }\n }\n };\n}\n\nexport default ThemeRiverSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as numberUtil from '../../util/number';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ThemeRiverSeriesModel, { ThemeRiverSeriesOption } from './ThemeRiverSeries';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport SeriesData from '../../data/SeriesData';\n\nexport interface ThemeRiverLayoutInfo {\n rect: RectLike\n boundaryGap: ThemeRiverSeriesOption['boundaryGap']\n}\n\nexport default function themeRiverLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n\n ecModel.eachSeriesByType('themeRiver', function (seriesModel: ThemeRiverSeriesModel) {\n\n const data = seriesModel.getData();\n\n const single = seriesModel.coordinateSystem;\n\n const layoutInfo = {} as ThemeRiverLayoutInfo;\n\n // use the axis boundingRect for view\n const rect = single.getRect();\n\n layoutInfo.rect = rect;\n\n const boundaryGap = seriesModel.get('boundaryGap');\n\n const axis = single.getAxis();\n\n layoutInfo.boundaryGap = boundaryGap;\n\n if (axis.orient === 'horizontal') {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.height);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.height);\n const height = rect.height - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, height);\n }\n else {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.width);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.width);\n const width = rect.width - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, width);\n }\n\n data.setLayout('layoutInfo', layoutInfo);\n });\n}\n\n/**\n * The layout information about themeriver\n *\n * @param data data in the series\n * @param seriesModel the model object of themeRiver series\n * @param height value used to compute every series height\n */\nfunction doThemeRiverLayout(data: SeriesData, seriesModel: ThemeRiverSeriesModel, height: number) {\n if (!data.count()) {\n return;\n }\n const coordSys = seriesModel.coordinateSystem;\n // the data in each layer are organized into a series.\n const layerSeries = seriesModel.getLayerSeries();\n\n // the points in each layer.\n const timeDim = data.mapDimension('single');\n const valueDim = data.mapDimension('value');\n const layerPoints = zrUtil.map(layerSeries, function (singleLayer) {\n return zrUtil.map(singleLayer.indices, function (idx) {\n const pt = coordSys.dataToPoint(data.get(timeDim, idx));\n pt[1] = data.get(valueDim, idx) as number;\n return pt;\n });\n });\n\n const base = computeBaseline(layerPoints);\n const baseLine = base.y0;\n const ky = height / base.max;\n\n // set layout information for each item.\n const n = layerSeries.length;\n const m = layerSeries[0].indices.length;\n let baseY0;\n for (let j = 0; j < m; ++j) {\n baseY0 = baseLine[j] * ky;\n data.setItemLayout(layerSeries[0].indices[j], {\n layerIndex: 0,\n x: layerPoints[0][j][0],\n y0: baseY0,\n y: layerPoints[0][j][1] * ky\n });\n for (let i = 1; i < n; ++i) {\n baseY0 += layerPoints[i - 1][j][1] * ky;\n data.setItemLayout(layerSeries[i].indices[j], {\n layerIndex: i,\n x: layerPoints[i][j][0],\n y0: baseY0,\n y: layerPoints[i][j][1] * ky\n });\n }\n }\n}\n\n/**\n * Compute the baseLine of the rawdata\n * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics\n *\n * @param data the points in each layer\n */\nfunction computeBaseline(data: number[][][]) {\n const layerNum = data.length;\n const pointNum = data[0].length;\n const sums = [];\n const y0 = [];\n let max = 0;\n\n for (let i = 0; i < pointNum; ++i) {\n let temp = 0;\n for (let j = 0; j < layerNum; ++j) {\n temp += data[j][i][1];\n }\n if (temp > max) {\n max = temp;\n }\n sums.push(temp);\n }\n\n for (let k = 0; k < pointNum; ++k) {\n y0[k] = (max - sums[k]) / 2;\n }\n max = 0;\n\n for (let l = 0; l < pointNum; ++l) {\n const sum = sums[l] + y0[l];\n if (sum > max) {\n max = sum;\n }\n }\n\n return {\n y0,\n max\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ThemeRiverView from './ThemeRiverView';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport themeRiverLayout from './themeRiverLayout';\nimport dataFilter from '../../processor/dataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(ThemeRiverView);\n registers.registerSeriesModel(ThemeRiverSeriesModel);\n\n registers.registerLayout(themeRiverLayout);\n registers.registerProcessor(dataFilter('themeRiver'));\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, SPECIAL_STATES, DISPLAY_STATES } from '../../util/states';\nimport {createTextStyle} from '../../label/labelStyle';\nimport { TreeNode } from '../../data/Tree';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption, SunburstSeriesOption } from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ColorString } from '../../util/types';\nimport Model from '../../model/Model';\nimport { getECData } from '../../util/innerStore';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport {createOrUpdatePatternFromDecal} from '../../util/decal';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst DEFAULT_SECTOR_Z = 2;\nconst DEFAULT_TEXT_Z = 4;\ninterface DrawTreeNode extends TreeNode {\n piece: SunburstPiece\n}\n/**\n * Sunburstce of Sunburst including Sector, Label, LabelLine\n */\nclass SunburstPiece extends graphic.Sector {\n\n node: TreeNode;\n\n private _seriesModel: SunburstSeriesModel;\n private _ecModel: GlobalModel;\n\n constructor(node: TreeNode, seriesModel: SunburstSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n super();\n\n this.z2 = DEFAULT_SECTOR_Z;\n this.textConfig = {\n inside: true\n };\n\n getECData(this).seriesIndex = seriesModel.seriesIndex;\n\n const text = new graphic.Text({\n z2: DEFAULT_TEXT_Z,\n silent: node.getModel().get(['label', 'silent'])\n });\n this.setTextContent(text);\n\n this.updateData(true, node, seriesModel, ecModel, api);\n }\n\n updateData(\n firstCreate: boolean,\n node: TreeNode,\n // state: 'emphasis' | 'normal' | 'highlight' | 'downplay',\n seriesModel: SunburstSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this.node = node;\n (node as DrawTreeNode).piece = this;\n\n seriesModel = seriesModel || this._seriesModel;\n ecModel = ecModel || this._ecModel;\n\n const sector = this;\n getECData(sector).dataIndex = node.dataIndex;\n\n const itemModel = node.getModel();\n const emphasisModel = itemModel.getModel('emphasis');\n const layout = node.getLayout();\n\n const sectorShape = zrUtil.extend({}, layout);\n sectorShape.label = null;\n\n const normalStyle = node.getVisual('style') as PathStyleProps;\n normalStyle.lineJoin = 'bevel';\n\n const decal = node.getVisual('decal');\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n\n const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);\n zrUtil.extend(sectorShape, cornerRadius);\n\n zrUtil.each(SPECIAL_STATES, function (stateName) {\n const state = sector.ensureState(stateName);\n const itemStyleModel = itemModel.getModel([stateName, 'itemStyle']);\n state.style = itemStyleModel.getItemStyle();\n // border radius\n const cornerRadius = getSectorCornerRadius(itemStyleModel, sectorShape);\n if (cornerRadius) {\n state.shape = cornerRadius;\n }\n });\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n sector.shape.r = layout.r0;\n graphic.updateProps(\n sector,\n {\n shape: {\n r: layout.r\n }\n },\n seriesModel,\n node.dataIndex\n );\n }\n else {\n // Disable animation for gradient since no interpolation method\n // is supported for gradient\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel);\n\n saveOldStyle(sector);\n }\n\n sector.useStyle(normalStyle);\n\n this._updateLabel(seriesModel);\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._seriesModel = seriesModel || this._seriesModel;\n this._ecModel = ecModel || this._ecModel;\n\n const focus = emphasisModel.get('focus');\n\n const focusOrIndices =\n focus === 'ancestor' ? node.getAncestorsIndices()\n : focus === 'descendant' ? node.getDescendantIndices()\n : focus;\n\n enableHoverEmphasis(this, focusOrIndices, emphasisModel.get('blurScope'));\n }\n\n _updateLabel(\n seriesModel: SunburstSeriesModel\n ) {\n const itemModel = this.node.getModel();\n const normalLabelModel = itemModel.getModel('label');\n\n const layout = this.node.getLayout();\n const angle = layout.endAngle - layout.startAngle;\n\n const midAngle = (layout.startAngle + layout.endAngle) / 2;\n const dx = Math.cos(midAngle);\n const dy = Math.sin(midAngle);\n\n const sector = this;\n const label = sector.getTextContent();\n const dataIndex = this.node.dataIndex;\n const labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;\n const isNormalShown = normalLabelModel.get('show')\n && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);\n label.ignore = !isNormalShown;\n\n // TODO use setLabelStyle\n zrUtil.each(DISPLAY_STATES, (stateName) => {\n\n const labelStateModel = stateName === 'normal' ? itemModel.getModel('label')\n : itemModel.getModel([stateName, 'label']);\n const isNormal = stateName === 'normal';\n\n const state = isNormal ? label : label.ensureState(stateName);\n let text = seriesModel.getFormattedLabel(dataIndex, stateName);\n if (isNormal) {\n text = text || this.node.name;\n }\n\n state.style = createTextStyle(labelStateModel, {}, null, stateName !== 'normal', true);\n if (text) {\n state.style.text = text;\n }\n // Not displaying text when angle is too small\n const isShown = labelStateModel.get('show');\n if (isShown != null && !isNormal) {\n state.ignore = !isShown;\n }\n\n const labelPosition = getLabelAttr(labelStateModel, 'position');\n\n const sectorState = isNormal ? sector : sector.states[stateName];\n const labelColor = sectorState.style.fill as ColorString;\n sectorState.textConfig = {\n outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null,\n inside: labelPosition !== 'outside'\n };\n\n let r;\n const labelPadding = getLabelAttr(labelStateModel, 'distance') || 0;\n let textAlign = getLabelAttr(labelStateModel, 'align');\n if (labelPosition === 'outside') {\n r = layout.r + labelPadding;\n textAlign = midAngle > Math.PI / 2 ? 'right' : 'left';\n }\n else {\n if (!textAlign || textAlign === 'center') {\n r = (layout.r + layout.r0) / 2;\n textAlign = 'center';\n }\n else if (textAlign === 'left') {\n r = layout.r0 + labelPadding;\n if (midAngle > Math.PI / 2) {\n textAlign = 'right';\n }\n }\n else if (textAlign === 'right') {\n r = layout.r - labelPadding;\n if (midAngle > Math.PI / 2) {\n textAlign = 'left';\n }\n }\n }\n\n state.style.align = textAlign;\n state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle';\n\n state.x = r * dx + layout.cx;\n state.y = r * dy + layout.cy;\n\n const rotateType = getLabelAttr(labelStateModel, 'rotate');\n let rotate = 0;\n if (rotateType === 'radial') {\n rotate = -midAngle;\n if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n }\n else if (rotateType === 'tangential') {\n rotate = Math.PI / 2 - midAngle;\n if (rotate > Math.PI / 2) {\n rotate -= Math.PI;\n }\n else if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n }\n else if (typeof rotateType === 'number') {\n rotate = rotateType * Math.PI / 180;\n }\n\n state.rotation = rotate;\n });\n\n\n type LabelOpt = SunburstSeriesOption['label'];\n function getLabelAttr(model: Model, name: T): LabelOpt[T] {\n const stateAttr = model.get(name);\n if (stateAttr == null) {\n return normalLabelModel.get(name) as LabelOpt[T];\n }\n return stateAttr;\n }\n\n label.dirtyStyle();\n }\n}\n\n\nexport default SunburstPiece;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Sunburst action\n */\n\nimport SunburstSeriesModel from './SunburstSeries';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { extend } from 'zrender/src/core/util';\nimport { deprecateReplaceLog } from '../../util/log';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { retrieveTargetInfo, aboveViewRoot } from '../helper/treeHelper';\n\nexport const ROOT_TO_NODE_ACTION = 'sunburstRootToNode';\n\ninterface SunburstRootToNodePayload extends Payload {}\n\n\nconst HIGHLIGHT_ACTION = 'sunburstHighlight';\n\ninterface SunburstHighlightPayload extends Payload {}\n\n\nconst UNHIGHLIGHT_ACTION = 'sunburstUnhighlight';\n\ninterface SunburstUnhighlightPayload extends Payload {}\n\nexport function installSunburstAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction(\n {type: ROOT_TO_NODE_ACTION, update: 'updateView'},\n function (payload: SunburstRootToNodePayload, ecModel: GlobalModel) {\n\n ecModel.eachComponent(\n {mainType: 'series', subType: 'sunburst', query: payload},\n handleRootToNode\n );\n\n function handleRootToNode(model: SunburstSeriesModel, index: number) {\n const targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION], model);\n\n if (targetInfo) {\n const originViewRoot = model.getViewRoot();\n if (originViewRoot) {\n payload.direction = aboveViewRoot(originViewRoot, targetInfo.node)\n ? 'rollUp' : 'drillDown';\n }\n model.resetViewRoot(targetInfo.node);\n }\n }\n }\n );\n\n registers.registerAction(\n {type: HIGHLIGHT_ACTION, update: 'none'},\n function (payload: SunburstHighlightPayload, ecModel: GlobalModel, api: ExtensionAPI) {\n // Clone\n payload = extend({}, payload);\n ecModel.eachComponent(\n {mainType: 'series', subType: 'sunburst', query: payload},\n handleHighlight\n );\n\n function handleHighlight(model: SunburstSeriesModel) {\n const targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model);\n if (targetInfo) {\n payload.dataIndex = targetInfo.node.dataIndex;\n }\n }\n\n if (__DEV__) {\n deprecateReplaceLog('highlight', 'sunburstHighlight');\n }\n\n // Fast forward action\n api.dispatchAction(extend(payload, {\n type: 'highlight'\n }));\n }\n );\n\n registers.registerAction(\n {type: UNHIGHLIGHT_ACTION, update: 'updateView'},\n function (payload: SunburstUnhighlightPayload, ecModel: GlobalModel, api: ExtensionAPI) {\n payload = extend({}, payload);\n\n if (__DEV__) {\n deprecateReplaceLog('downplay', 'sunburstUnhighlight');\n }\n\n api.dispatchAction(extend(payload, {\n type: 'downplay'\n }));\n }\n );\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport SunburstPiece from './SunburstPiece';\nimport DataDiffer from '../../data/DataDiffer';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption } from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { ROOT_TO_NODE_ACTION } from './sunburstAction';\nimport { windowOpen } from '../../util/format';\n\ninterface DrawTreeNode extends TreeNode {\n parentNode: DrawTreeNode\n piece: SunburstPiece\n children: DrawTreeNode[]\n}\nclass SunburstView extends ChartView {\n\n static readonly type = 'sunburst';\n readonly type = SunburstView.type;\n\n seriesModel: SunburstSeriesModel;\n api: ExtensionAPI;\n ecModel: GlobalModel;\n\n virtualPiece: SunburstPiece;\n\n private _oldChildren: DrawTreeNode[];\n\n render(\n seriesModel: SunburstSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n // @ts-ignore\n payload\n ) {\n const self = this;\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n\n const data = seriesModel.getData();\n const virtualRoot = data.tree.root as DrawTreeNode;\n\n const newRoot = seriesModel.getViewRoot() as DrawTreeNode;\n\n const group = this.group;\n\n const renderLabelForZeroData = seriesModel.get('renderLabelForZeroData');\n\n const newChildren: DrawTreeNode[] = [];\n newRoot.eachNode(function (node: DrawTreeNode) {\n newChildren.push(node);\n });\n const oldChildren = this._oldChildren || [];\n\n dualTravel(newChildren, oldChildren);\n\n renderRollUp(virtualRoot, newRoot);\n\n this._initEvents();\n\n this._oldChildren = newChildren;\n\n function dualTravel(newChildren: DrawTreeNode[], oldChildren: DrawTreeNode[]) {\n if (newChildren.length === 0 && oldChildren.length === 0) {\n return;\n }\n\n new DataDiffer(oldChildren, newChildren, getKey, getKey)\n .add(processNode)\n .update(processNode)\n .remove(zrUtil.curry(processNode, null))\n .execute();\n\n function getKey(node: DrawTreeNode) {\n return node.getId();\n }\n\n function processNode(newIdx: number, oldIdx?: number) {\n const newNode = newIdx == null ? null : newChildren[newIdx];\n const oldNode = oldIdx == null ? null : oldChildren[oldIdx];\n\n doRenderNode(newNode, oldNode);\n }\n }\n\n function doRenderNode(newNode: DrawTreeNode, oldNode: DrawTreeNode) {\n if (!renderLabelForZeroData && newNode && !newNode.getValue()) {\n // Not render data with value 0\n newNode = null;\n }\n\n if (newNode !== virtualRoot && oldNode !== virtualRoot) {\n if (oldNode && oldNode.piece) {\n if (newNode) {\n // Update\n oldNode.piece.updateData(\n false, newNode, seriesModel, ecModel, api\n );\n\n // For tooltip\n data.setItemGraphicEl(newNode.dataIndex, oldNode.piece);\n }\n else {\n // Remove\n removeNode(oldNode);\n }\n }\n else if (newNode) {\n // Add\n const piece = new SunburstPiece(\n newNode,\n seriesModel,\n ecModel,\n api\n );\n group.add(piece);\n\n // For tooltip\n data.setItemGraphicEl(newNode.dataIndex, piece);\n }\n }\n }\n\n function removeNode(node: DrawTreeNode) {\n if (!node) {\n return;\n }\n\n if (node.piece) {\n group.remove(node.piece);\n node.piece = null;\n }\n }\n\n function renderRollUp(virtualRoot: DrawTreeNode, viewRoot: DrawTreeNode) {\n if (viewRoot.depth > 0) {\n // Render\n if (self.virtualPiece) {\n // Update\n self.virtualPiece.updateData(\n false, virtualRoot, seriesModel, ecModel, api\n );\n }\n else {\n // Add\n self.virtualPiece = new SunburstPiece(\n virtualRoot,\n seriesModel,\n ecModel,\n api\n );\n group.add(self.virtualPiece);\n }\n\n // TODO event scope\n viewRoot.piece.off('click');\n self.virtualPiece.on('click', function (e) {\n self._rootToNode(viewRoot.parentNode);\n });\n }\n else if (self.virtualPiece) {\n // Remove\n group.remove(self.virtualPiece);\n self.virtualPiece = null;\n }\n }\n }\n\n /**\n * @private\n */\n _initEvents() {\n this.group.off('click');\n this.group.on('click', (e) => {\n let targetFound = false;\n const viewRoot = this.seriesModel.getViewRoot();\n viewRoot.eachNode((node: DrawTreeNode) => {\n if (!targetFound\n && node.piece && node.piece === e.target\n ) {\n const nodeClick = node.getModel().get('nodeClick');\n if (nodeClick === 'rootToNode') {\n this._rootToNode(node);\n }\n else if (nodeClick === 'link') {\n const itemModel = node.getModel();\n const link = itemModel.get('link');\n if (link) {\n const linkTarget = itemModel.get('target', true)\n || '_blank';\n windowOpen(link, linkTarget);\n }\n }\n targetFound = true;\n }\n });\n });\n }\n\n /**\n * @private\n */\n _rootToNode(node: DrawTreeNode) {\n if (node !== this.seriesModel.getViewRoot()) {\n this.api.dispatchAction({\n type: ROOT_TO_NODE_ACTION,\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: node\n });\n }\n }\n\n /**\n * @implement\n */\n containPoint(point: number[], seriesModel: SunburstSeriesModel) {\n const treeRoot = seriesModel.getData();\n const itemLayout = treeRoot.getItemLayout(0);\n if (itemLayout) {\n const dx = point[0] - itemLayout.cx;\n const dy = point[1] - itemLayout.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n }\n\n}\n\nexport default SunburstView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport {\n SeriesOption,\n CircleLayoutOptionMixin,\n SeriesLabelOption,\n ItemStyleOption,\n OptionDataValue,\n CallbackDataParams,\n StatesOptionMixin,\n OptionDataItemObject,\n DefaultEmphasisFocus,\n SunburstColorByMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport Model from '../../model/Model';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\ninterface SunburstItemStyleOption extends ItemStyleOption {\n // can be 10\n // which means that both innerCornerRadius and outerCornerRadius are 10\n // can also be an array [20, 10]\n // which means that innerCornerRadius is 20\n // and outerCornerRadius is 10\n // can also be a string or string array, such as ['20%', '50%']\n // which means that innerCornerRadius is 20% of the innerRadius\n // and outerCornerRadius is half of outerRadius.\n borderRadius?: (number | string)[] | number | string\n}\n\ninterface SunburstLabelOption extends Omit {\n rotate?: 'radial' | 'tangential' | number\n minAngle?: number\n silent?: boolean\n position?: SeriesLabelOption['position'] | 'outside'\n}\n\ninterface SunburstDataParams extends CallbackDataParams {\n treePathInfo: {\n name: string,\n dataIndex: number\n value: SunburstSeriesNodeItemOption['value']\n }[]\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'\n }\n}\n\nexport interface SunburstStateOption {\n itemStyle?: SunburstItemStyleOption\n label?: SunburstLabelOption\n}\n\nexport interface SunburstSeriesNodeItemOption extends\n SunburstStateOption, StatesOptionMixin,\n OptionDataItemObject\n{\n nodeClick?: 'rootToNode' | 'link'\n // Available when nodeClick is link\n link?: string\n target?: string\n\n children?: SunburstSeriesNodeItemOption[]\n\n collapsed?: boolean\n\n cursor?: string\n}\nexport interface SunburstSeriesLevelOption extends SunburstStateOption, StatesOptionMixin {\n highlight?: {\n itemStyle?: SunburstItemStyleOption\n label?: SunburstLabelOption\n }\n}\n\ninterface SortParam {\n dataIndex: number\n depth: number\n height: number\n getValue(): number\n}\nexport interface SunburstSeriesOption extends\n SeriesOption, SunburstStateOption,\n SunburstColorByMixin,\n CircleLayoutOptionMixin {\n\n type?: 'sunburst'\n\n clockwise?: boolean\n startAngle?: number\n minAngle?: number\n /**\n * If still show when all data zero.\n */\n stillShowZeroSum?: boolean\n /**\n * Policy of highlighting pieces when hover on one\n * Valid values: 'none' (for not downplay others), 'descendant',\n * 'ancestor', 'self'\n */\n // highlightPolicy?: 'descendant' | 'ancestor' | 'self'\n\n nodeClick?: 'rootToNode' | 'link'\n\n renderLabelForZeroData?: boolean\n\n levels?: SunburstSeriesLevelOption[]\n\n animationType?: 'expansion' | 'scale'\n\n sort?: 'desc' | 'asc' | ((a: SortParam, b: SortParam) => number)\n}\n\ninterface SunburstSeriesModel {\n getFormattedLabel(\n dataIndex: number,\n state?: 'emphasis' | 'normal' | 'highlight' | 'blur' | 'select'\n ): string\n}\nclass SunburstSeriesModel extends SeriesModel {\n\n static readonly type = 'series.sunburst';\n readonly type = SunburstSeriesModel.type;\n\n ignoreStyleOnData = true;\n\n private _viewRoot: TreeNode;\n\n getInitialData(option: SunburstSeriesOption, ecModel: GlobalModel) {\n // Create a virtual root.\n const root = { name: option.name, children: option.data } as SunburstSeriesNodeItemOption;\n\n completeTreeValue(root);\n\n const levelModels = zrUtil.map(option.levels || [], function (levelDefine) {\n return new Model(levelDefine, this, ecModel);\n }, this);\n\n // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n const levelModel = levelModels[node.depth];\n levelModel && (model.parentModel = levelModel);\n return model;\n });\n }\n return tree.data;\n }\n\n optionUpdated() {\n this.resetViewRoot();\n }\n\n /*\n * @override\n */\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as SunburstDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n\n return params;\n }\n\n static defaultOption: SunburstSeriesOption = {\n zlevel: 0,\n z: 2,\n\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // \u9ED8\u8BA4\u987A\u65F6\u9488\n clockwise: true,\n startAngle: 90,\n // \u6700\u5C0F\u89D2\u5EA6\u6539\u4E3A0\n minAngle: 0,\n\n // If still show when all data zero.\n stillShowZeroSum: true,\n\n // 'rootToNode', 'link', or false\n nodeClick: 'rootToNode',\n\n renderLabelForZeroData: false,\n\n label: {\n // could be: 'radial', 'tangential', or 'none'\n rotate: 'radial',\n show: true,\n opacity: 1,\n // 'left' is for inner side of inside, and 'right' is for outter\n // side for inside\n align: 'center',\n position: 'inside',\n distance: 5,\n silent: true\n },\n itemStyle: {\n borderWidth: 1,\n borderColor: 'white',\n borderType: 'solid',\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, 0.2)',\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n\n emphasis: {\n focus: 'descendant'\n },\n\n blur: {\n itemStyle: {\n opacity: 0.2\n },\n label: {\n opacity: 0.1\n }\n },\n\n // Animation type canbe expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n\n data: [],\n\n /**\n * Sort order.\n *\n * Valid values: 'desc', 'asc', null, or callback function.\n * 'desc' and 'asc' for descend and ascendant order;\n * null for not sorting;\n * example of callback function:\n * function(nodeA, nodeB) {\n * return nodeA.getValue() - nodeB.getValue();\n * }\n */\n sort: 'desc'\n };\n\n getViewRoot() {\n return this._viewRoot;\n }\n\n resetViewRoot(viewRoot?: TreeNode) {\n viewRoot\n ? (this._viewRoot = viewRoot)\n : (viewRoot = this._viewRoot);\n\n const root = this.getRawData().tree.root;\n\n if (!viewRoot\n || (viewRoot !== root && !root.contains(viewRoot))\n ) {\n this._viewRoot = root;\n }\n }\n\n enableAriaDecal() {\n enableAriaDecalForTree(this);\n }\n}\n\n\n\nfunction completeTreeValue(dataNode: SunburstSeriesNodeItemOption) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n let sum = 0;\n\n zrUtil.each(dataNode.children, function (child) {\n\n completeTreeValue(child);\n\n let childValue = child.value;\n // TODO First value of array must be a number\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue as number;\n });\n\n let thisValue = dataNode.value as number;\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n }\n // Value should not less than 0.\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value)\n ? (dataNode.value[0] = thisValue)\n : (dataNode.value = thisValue);\n}\n\n\nexport default SunburstSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parsePercent } from '../../util/number';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption, SunburstSeriesOption } from './SunburstSeries';\nimport { TreeNode } from '../../data/Tree';\n\n// let PI2 = Math.PI * 2;\nconst RADIAN = Math.PI / 180;\n\nexport default function sunburstLayout(\n seriesType: 'sunburst',\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel: SunburstSeriesModel) {\n let center = seriesModel.get('center');\n let radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n const width = api.getWidth();\n const height = api.getHeight();\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], width);\n const cy = parsePercent(center[1], height);\n const r0 = parsePercent(radius[0], size / 2);\n const r = parsePercent(radius[1], size / 2);\n\n const startAngle = -seriesModel.get('startAngle') * RADIAN;\n const minAngle = seriesModel.get('minAngle') * RADIAN;\n\n const virtualRoot = seriesModel.getData().tree.root;\n const treeRoot = seriesModel.getViewRoot();\n const rootDepth = treeRoot.depth;\n\n const sort = seriesModel.get('sort');\n if (sort != null) {\n initChildren(treeRoot, sort);\n }\n\n let validDataCount = 0;\n zrUtil.each(treeRoot.children, function (child) {\n !isNaN(child.getValue() as number) && validDataCount++;\n });\n\n const sum = treeRoot.getValue() as number;\n // Sum may be 0\n const unitRadian = Math.PI / (sum || validDataCount) * 2;\n\n const renderRollupNode = treeRoot.depth > 0;\n const levels = treeRoot.height - (renderRollupNode ? -1 : 1);\n const rPerLevel = (r - r0) / (levels || 1);\n\n const clockwise = seriesModel.get('clockwise');\n\n const stillShowZeroSum = seriesModel.get('stillShowZeroSum');\n\n // In the case some sector angle is smaller than minAngle\n // let restAngle = PI2;\n // let valueSumLargerThanMinAngle = 0;\n\n const dir = clockwise ? 1 : -1;\n\n /**\n * Render a tree\n * @return increased angle\n */\n const renderNode = function (node: TreeNode, startAngle: number) {\n if (!node) {\n return;\n }\n\n let endAngle = startAngle;\n\n // Render self\n if (node !== virtualRoot) {\n // Tree node is virtual, so it doesn't need to be drawn\n const value = node.getValue() as number;\n\n let angle = (sum === 0 && stillShowZeroSum)\n ? unitRadian : (value * unitRadian);\n if (angle < minAngle) {\n angle = minAngle;\n // restAngle -= minAngle;\n }\n // else {\n // valueSumLargerThanMinAngle += value;\n // }\n\n endAngle = startAngle + dir * angle;\n\n const depth = node.depth - rootDepth\n - (renderRollupNode ? -1 : 1);\n let rStart = r0 + rPerLevel * depth;\n let rEnd = r0 + rPerLevel * (depth + 1);\n\n const itemModel = node.getModel();\n // @ts-ignore. TODO this is not provided to developer yet. Rename it.\n if (itemModel.get('r0') != null) {\n // @ts-ignore\n rStart = parsePercent(itemModel.get('r0'), size / 2);\n }\n // @ts-ignore\n if (itemModel.get('r') != null) {\n // @ts-ignore\n rEnd = parsePercent(itemModel.get('r'), size / 2);\n }\n\n node.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n // Render children\n if (node.children && node.children.length) {\n // currentAngle = startAngle;\n let siblingAngle = 0;\n zrUtil.each(node.children, function (node) {\n siblingAngle += renderNode(node, startAngle + siblingAngle);\n });\n }\n\n return endAngle - startAngle;\n };\n\n // Virtual root node for roll up\n if (renderRollupNode) {\n const rStart = r0;\n const rEnd = r0 + rPerLevel;\n\n const angle = Math.PI * 2;\n virtualRoot.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: startAngle + angle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n renderNode(treeRoot, startAngle);\n });\n}\n\n/**\n * Init node children by order and update visual\n */\nfunction initChildren(node: TreeNode, sortOrder?: SunburstSeriesOption['sort']) {\n const children = node.children || [];\n\n node.children = sort(children, sortOrder);\n\n // Init children recursively\n if (children.length) {\n zrUtil.each(node.children, function (child) {\n initChildren(child, sortOrder);\n });\n }\n}\n\n/**\n * Sort children nodes\n *\n * @param {TreeNode[]} children children of node to be sorted\n * @param {string | function | null} sort sort method\n * See SunburstSeries.js for details.\n */\nfunction sort(children: TreeNode[], sortOrder: SunburstSeriesOption['sort']) {\n if (typeof sortOrder === 'function') {\n const sortTargets = zrUtil.map(children, (child, idx) => {\n const value = child.getValue() as number;\n return {\n params: {\n depth: child.depth,\n height: child.height,\n dataIndex: child.dataIndex,\n getValue: () => value\n },\n index: idx\n };\n });\n sortTargets.sort((a, b) => {\n return sortOrder(a.params, b.params);\n });\n\n return zrUtil.map(sortTargets, (target) => {\n return children[target.index];\n });\n }\n else {\n const isAsc = sortOrder === 'asc';\n return children.sort(function (a, b) {\n const diff = ((a.getValue() as number) - (b.getValue() as number)) * (isAsc ? 1 : -1);\n return diff === 0\n ? (a.dataIndex - b.dataIndex) * (isAsc ? -1 : 1)\n : diff;\n });\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { lift } from 'zrender/src/tool/color';\nimport { extend, map } from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption } from './SunburstSeries';\nimport { Dictionary, ColorString, ZRColor } from '../../util/types';\nimport { setItemVisualFromData } from '../../visual/helper';\nimport { TreeNode } from '../../data/Tree';\n\ntype ParentColorMap = {\n node: TreeNode,\n parentColor: ZRColor\n};\n\nexport default function sunburstVisual(ecModel: GlobalModel) {\n\n const paletteScope: Dictionary = {};\n\n // Default color strategy\n function pickColor(node: TreeNode, seriesModel: SunburstSeriesModel, treeHeight: number) {\n // Choose color from palette based on the first level.\n let current = node;\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n let color = seriesModel.getColorFromPalette((current.name || current.dataIndex + ''), paletteScope);\n if (node.depth > 1 && typeof color === 'string') {\n // Lighter on the deeper level.\n color = lift(color, (node.depth - 1) / (treeHeight - 1) * 0.5);\n }\n return color;\n }\n\n ecModel.eachSeriesByType('sunburst', function (seriesModel: SunburstSeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n\n tree.eachNode(function (node) {\n const model = node.getModel();\n const style = model.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n style.fill = pickColor(node, seriesModel, tree.root.height);\n }\n\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SunburstView from './SunburstView';\nimport SunburstSeriesModel from './SunburstSeries';\nimport sunburstLayout from './sunburstLayout';\nimport sunburstVisual from './sunburstVisual';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/src/core/util';\nimport { installSunburstAction } from './sunburstAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(SunburstView);\n registers.registerSeriesModel(SunburstSeriesModel);\n registers.registerLayout(curry(sunburstLayout, 'sunburst'));\n registers.registerProcessor(curry(dataFilter, 'sunburst'));\n registers.registerVisual(sunburstVisual);\n installSunburstAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { BarGridLayoutOptionForCustomSeries, BarGridLayoutResult } from '../../layout/barGrid';\nimport {\n BlurScope,\n CallbackDataParams,\n Dictionary,\n DimensionLoose,\n ItemStyleOption,\n LabelOption,\n OptionDataValue,\n OrdinalRawValue,\n ParsedValue,\n SeriesDataType,\n SeriesEncodeOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnSingleOptionMixin,\n SeriesOption,\n TextCommonOption,\n ZRStyleProps\n} from '../../util/types';\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport SeriesData, { DefaultDataVisual } from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport createSeriesData from '../helper/createSeriesData';\nimport { makeInner } from '../../util/model';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport SeriesModel from '../../model/Series';\nimport {\n Arc,\n BezierCurve,\n Circle,\n CompoundPath,\n Ellipse,\n Line,\n Polygon,\n Polyline,\n Rect,\n Ring,\n Sector\n} from '../../util/graphic';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\n\n\nexport interface LooseElementProps extends ElementProps {\n style?: ZRStyleProps;\n shape?: Dictionary;\n}\n\nexport type CustomExtraElementInfo = Dictionary;\nexport const TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n} as const;\nexport type TransformProp = keyof typeof TRANSFORM_PROPS;\n\n// Also compat with ec4, where\n// `visual('color') visual('borderColor')` is supported.\nexport const STYLE_VISUAL_TYPE = {\n color: 'fill',\n borderColor: 'stroke'\n} as const;\nexport type StyleVisualProps = keyof typeof STYLE_VISUAL_TYPE;\n\nexport const NON_STYLE_VISUAL_PROPS = {\n symbol: 1,\n symbolSize: 1,\n symbolKeepAspect: 1,\n legendIcon: 1,\n visualMeta: 1,\n liftZ: 1,\n decal: 1\n} as const;\nexport type NonStyleVisualProps = keyof typeof NON_STYLE_VISUAL_PROPS;\n\n// Do not declare \"Dictionary\" in TransitionAnyOption to restrict the type check.\nexport type TransitionAnyOption = {\n transition?: TransitionAnyProps;\n enterFrom?: Dictionary;\n leaveTo?: Dictionary;\n};\ntype TransitionAnyProps = string | string[];\ntype TransitionTransformOption = {\n transition?: ElementRootTransitionProp | ElementRootTransitionProp[];\n enterFrom?: Dictionary;\n leaveTo?: Dictionary;\n};\ntype ElementRootTransitionProp = TransformProp | 'shape' | 'extra' | 'style';\ntype ShapeMorphingOption = {\n /**\n * If do shape morphing animation when type is changed.\n * Only available on path.\n */\n morph?: boolean\n};\n\nexport interface CustomBaseDuringAPI {\n // Usually other props do not need to be changed in animation during.\n setTransform(key: TransformProp, val: number): this\n getTransform(key: TransformProp): number;\n setExtra(key: string, val: unknown): this\n getExtra(key: string): unknown\n}\nexport interface CustomDuringAPI<\n StyleOpt extends any = any,\n ShapeOpt extends any = any\n> extends CustomBaseDuringAPI {\n setShape(key: T, val: ShapeOpt[T]): this;\n getShape(key: T): ShapeOpt[T];\n setStyle(key: T, val: StyleOpt[T]): this\n getStyle(key: T): StyleOpt[T];\n};\n\n\nexport interface CustomBaseElementOption extends Partial>, TransitionTransformOption {\n // element type, required.\n type: string;\n id?: string;\n // For animation diff.\n name?: string;\n info?: CustomExtraElementInfo;\n // `false` means remove the textContent.\n textContent?: CustomTextOption | false;\n // `false` means remove the clipPath\n clipPath?: CustomBaseZRPathOption | false;\n // `extra` can be set in any el option for custom prop for annimation duration.\n extra?: Dictionary & TransitionAnyOption;\n // updateDuringAnimation\n during?(params: CustomBaseDuringAPI): void;\n\n focus?: 'none' | 'self' | 'series' | ArrayLike\n blurScope?: BlurScope\n};\n\nexport interface CustomDisplayableOption extends CustomBaseElementOption, Partial> {\n style?: ZRStyleProps & TransitionAnyOption;\n during?(params: CustomDuringAPI): void;\n /**\n * @deprecated\n */\n // `false` means remove emphasis trigger.\n styleEmphasis?: ZRStyleProps | false;\n emphasis?: CustomDisplayableOptionOnState;\n blur?: CustomDisplayableOptionOnState;\n select?: CustomDisplayableOptionOnState;\n}\nexport interface CustomDisplayableOptionOnState extends Partial> {\n // `false` means remove emphasis trigger.\n style?: (ZRStyleProps & TransitionAnyOption) | false;\n\n\n during?(params: CustomDuringAPI): void;\n}\nexport interface CustomGroupOption extends CustomBaseElementOption {\n type: 'group';\n width?: number;\n height?: number;\n // @deprecated\n diffChildrenByName?: boolean;\n children: CustomChildElementOption[];\n $mergeChildren?: false | 'byName' | 'byIndex';\n}\nexport interface CustomBaseZRPathOption\n extends CustomDisplayableOption, ShapeMorphingOption {\n autoBatch?: boolean;\n shape?: T & TransitionAnyOption;\n style?: PathProps['style']\n during?(params: CustomDuringAPI): void;\n}\n\ninterface BuiltinShapes {\n 'circle': Circle['shape']\n 'rect': Rect['shape']\n 'sector': Sector['shape']\n 'poygon': Polygon['shape']\n 'polyline': Polyline['shape']\n 'line': Line['shape']\n 'arc': Arc['shape']\n 'bezierCurve': BezierCurve['shape']\n 'ring': Ring['shape']\n 'ellipse': Ellipse['shape'],\n 'compoundPath': CompoundPath['shape']\n}\n\ninterface CustomSVGPathShapeOption {\n // SVG Path, like 'M0,0 L0,-20 L70,-1 L70,0 Z'\n pathData?: string;\n // \"d\" is the alias of `pathData` follows the SVG convention.\n d?: string;\n layout?: 'center' | 'cover';\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n}\nexport interface CustomSVGPathOption extends CustomBaseZRPathOption {\n type: 'path';\n}\n\ninterface CustomBuitinPathOption\n extends CustomBaseZRPathOption {\n type: T\n}\ntype CreateCustomBuitinPathOption = T extends any\n ? CustomBuitinPathOption : never;\n\nexport type CustomPathOption = CreateCustomBuitinPathOption\n | CustomSVGPathOption;\n\nexport interface CustomImageOptionOnState extends CustomDisplayableOptionOnState {\n style?: ImageStyleProps & TransitionAnyOption;\n}\nexport interface CustomImageOption extends CustomDisplayableOption {\n type: 'image';\n style?: ImageStyleProps & TransitionAnyOption;\n emphasis?: CustomImageOptionOnState;\n blur?: CustomImageOptionOnState;\n select?: CustomImageOptionOnState;\n}\n\nexport interface CustomTextOptionOnState extends CustomDisplayableOptionOnState {\n style?: TextStyleProps & TransitionAnyOption;\n}\nexport interface CustomTextOption extends CustomDisplayableOption {\n type: 'text';\n style?: TextStyleProps & TransitionAnyOption;\n emphasis?: CustomTextOptionOnState;\n blur?: CustomTextOptionOnState;\n select?: CustomTextOptionOnState;\n}\n\nexport type CustomElementOption = CustomPathOption\n | CustomImageOption\n | CustomTextOption\n | CustomGroupOption;\n\n// Can only set focus, blur on the root element.\nexport type CustomChildElementOption = Omit;\n\nexport type CustomElementOptionOnState = CustomDisplayableOptionOnState\n | CustomImageOptionOnState;\n\nexport interface CustomSeriesRenderItemAPI extends\n CustomSeriesRenderItemCoordinateSystemAPI {\n\n // Methods from ExtensionAPI.\n // NOTE: Not using Pick here because we don't want to bundle ExtensionAPI into the d.ts\n getWidth(): number\n getHeight(): number\n getZr(): ZRenderType\n getDevicePixelRatio(): number\n\n value(dim: DimensionLoose, dataIndexInside?: number): ParsedValue;\n ordinalRawValue(dim: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue;\n style(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;\n styleEmphasis(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;\n visual(\n visualType: VT,\n dataIndexInside?: number\n ): VT extends NonStyleVisualProps ? DefaultDataVisual[VT]\n : VT extends StyleVisualProps ? PathStyleProps[typeof STYLE_VISUAL_TYPE[VT]]\n : void;\n barLayout(opt: BarGridLayoutOptionForCustomSeries): BarGridLayoutResult;\n currentSeriesIndices(): number[];\n font(opt: Pick): string;\n}\nexport interface CustomSeriesRenderItemParamsCoordSys {\n type: string;\n // And extra params for each coordinate systems.\n}\nexport interface CustomSeriesRenderItemCoordinateSystemAPI {\n coord(\n data: OptionDataValue | OptionDataValue[],\n clamp?: boolean\n ): number[];\n size?(\n dataSize: OptionDataValue | OptionDataValue[],\n dataItem: OptionDataValue | OptionDataValue[]\n ): number | number[];\n}\n\nexport type WrapEncodeDefRet = Dictionary;\n\nexport interface CustomSeriesRenderItemParams {\n context: Dictionary;\n dataIndex: number;\n seriesId: string;\n seriesName: string;\n seriesIndex: number;\n coordSys: CustomSeriesRenderItemParamsCoordSys;\n encode: WrapEncodeDefRet;\n\n dataIndexInside: number;\n dataInsideLength: number;\n\n actionType?: string;\n}\ntype CustomSeriesRenderItem = (\n params: CustomSeriesRenderItemParams,\n api: CustomSeriesRenderItemAPI\n) => CustomElementOption;\n\ninterface CustomSeriesStateOption {\n itemStyle?: ItemStyleOption;\n label?: LabelOption;\n}\n\nexport interface CustomSeriesOption extends\n SeriesOption, // don't support StateOption in custom series.\n SeriesEncodeOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnSingleOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnCalendarOptionMixin {\n\n type?: 'custom'\n\n // If set as 'none', do not depends on coord sys.\n coordinateSystem?: string | 'none';\n\n renderItem?: CustomSeriesRenderItem;\n\n // Only works on polar and cartesian2d coordinate system.\n clip?: boolean;\n}\n\nexport interface LegacyCustomSeriesOption extends SeriesOption, CustomSeriesStateOption {}\n\nexport const customInnerStore = makeInner<{\n info: CustomExtraElementInfo;\n customPathData: string;\n customGraphicType: string;\n customImagePath: CustomImageOption['style']['image'];\n // customText: string;\n txConZ2Set: number;\n leaveToProps: ElementProps;\n option: CustomElementOption;\n userDuring: CustomBaseElementOption['during'];\n}, Element>();\n\nexport default class CustomSeriesModel extends SeriesModel {\n\n static type = 'series.custom';\n readonly type = CustomSeriesModel.type;\n\n static dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n // preventAutoZ = true;\n\n currentZLevel: number;\n currentZ: number;\n\n static defaultOption: CustomSeriesOption = {\n coordinateSystem: 'cartesian2d', // Can be set as 'none'\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n // Custom series will not clip by default.\n // Some case will use custom series to draw label\n // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight\n clip: false\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Polar coordinate system\n // polarIndex: 0,\n\n // Geo coordinate system\n // geoIndex: 0,\n };\n\n optionUpdated() {\n this.currentZLevel = this.get('zlevel', true);\n this.currentZ = this.get('z', true);\n }\n\n getInitialData(option: CustomSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this);\n }\n\n getDataParams(dataIndex: number, dataType?: SeriesDataType, el?: Element): CallbackDataParams & {\n info: CustomExtraElementInfo\n } {\n const params = super.getDataParams(dataIndex, dataType) as ReturnType;\n el && (params.info = customInnerStore(el).info);\n return params;\n }\n}\n\nexport type PrepareCustomInfo = (coordSys: CoordinateSystem) => {\n coordSys: CustomSeriesRenderItemParamsCoordSys;\n api: CustomSeriesRenderItemCoordinateSystemAPI\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Cartesian2D from './Cartesian2D';\n\nfunction dataToCoordSize(this: Cartesian2D, dataSize: number[], dataItem: number[]): number[] {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['x', 'y'], function (dim, dimIdx) {\n const axis = this.getAxis(dim);\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n return axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n }, this);\n}\n\nexport default function cartesianPrepareCustom(coordSys: Cartesian2D) {\n const rect = coordSys.master.getRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'cartesian2d',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (data: number[]) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Geo from './Geo';\n\nfunction dataToCoordSize(this: Geo, dataSize: number[], dataItem: number[]): number[] {\n dataItem = dataItem || [0, 0];\n return zrUtil.map([0, 1], function (dimIdx) {\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n const p1 = [];\n const p2 = [];\n p1[dimIdx] = val - halfSize;\n p2[dimIdx] = val + halfSize;\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);\n }, this);\n}\n\nexport default function geoPrepareCustom(coordSys: Geo) {\n const rect = coordSys.getBoundingRect();\n return {\n coordSys: {\n type: 'geo',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n zoom: coordSys.getZoom()\n },\n api: {\n coord: function (data: number[]): number[] {\n // do not provide \"out\" and noRoam param,\n // Compatible with this usage:\n // echarts.util.map(item.points, api.coord)\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Single from './Single';\nimport { bind } from 'zrender/src/core/util';\n\nfunction dataToCoordSize(this: Single, dataSize: number | number[], dataItem: number | number[]) {\n // dataItem is necessary in log axis.\n const axis = this.getAxis();\n const val = dataItem instanceof Array ? dataItem[0] : dataItem;\n const halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}\n\nexport default function singlePrepareCustom(coordSys: Single) {\n const rect = coordSys.getRect();\n\n return {\n coordSys: {\n type: 'singleAxis',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (val: number) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(val);\n },\n size: bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Polar from './Polar';\nimport RadiusAxis from './RadiusAxis';\n// import AngleAxis from './AngleAxis';\n\nfunction dataToCoordSize(this: Polar, dataSize: number[], dataItem: number[]) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\n const getterName = 'get' + dim + 'Axis' as 'getAngleAxis'| 'getRadiusAxis';\n // TODO: TYPE Check Angle Axis\n const axis = this[getterName]() as RadiusAxis;\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n\n let result = axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n\n if (dim === 'Angle') {\n result = result * Math.PI / 180;\n }\n\n return result;\n\n }, this);\n}\n\nexport default function polarPrepareCustom(coordSys: Polar) {\n const radiusAxis = coordSys.getRadiusAxis();\n const angleAxis = coordSys.getAngleAxis();\n const radius = radiusAxis.getExtent();\n radius[0] > radius[1] && radius.reverse();\n\n return {\n coordSys: {\n type: 'polar',\n cx: coordSys.cx,\n cy: coordSys.cy,\n r: radius[1],\n r0: radius[0]\n },\n api: {\n coord: function (data: number[]) {\n const radius = radiusAxis.dataToRadius(data[0]);\n const angle = angleAxis.dataToAngle(data[1]);\n const coord = coordSys.coordToPoint([radius, angle]);\n coord.push(radius, angle * Math.PI / 180);\n return coord;\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Calendar from './Calendar';\nimport { OptionDataValueDate } from '../../util/types';\n\nexport default function calendarPrepareCustom(coordSys: Calendar) {\n const rect = coordSys.getRect();\n const rangeInfo = coordSys.getRangeInfo();\n\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function (data: OptionDataValueDate, clamp?: boolean) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary, ZRStyleProps } from './types';\nimport { ElementTextConfig } from 'zrender/src/Element';\nimport { TextStyleProps, TextStylePropsPart, TextProps } from 'zrender/src/graphic/Text';\nimport { each, hasOwn } from 'zrender/src/core/util';\nimport { ItemStyleProps } from '../model/mixin/itemStyle';\n\nexport interface LegacyStyleProps {\n legacy?: boolean\n}\n\nconst deprecatedLogs = {} as Dictionary;\n\n/**\n * Whether need to call `convertEC4CompatibleStyle`.\n */\nexport function isEC4CompatibleStyle(\n style: ZRStyleProps & LegacyStyleProps,\n elType: string,\n hasOwnTextContentOption: boolean,\n hasOwnTextConfig: boolean\n): boolean {\n // Since echarts5, `RectText` is separated from its host element and style.text\n // does not exist any more. The compat work brings some extra burden on performance.\n // So we provide:\n // `legacy: true` force make compat.\n // `legacy: false`, force do not compat.\n // `legacy` not set: auto detect wheter legacy.\n // But in this case we do not compat (difficult to detect and rare case):\n // Becuse custom series and graphic component support \"merge\", users may firstly\n // only set `textStrokeWidth` style or secondly only set `text`.\n return style && (\n style.legacy\n || (\n style.legacy !== false\n && !hasOwnTextContentOption\n && !hasOwnTextConfig\n && elType !== 'tspan'\n // Difficult to detect whether legacy for a \"text\" el.\n && (elType === 'text' || hasOwn(style, 'text'))\n )\n );\n}\n\n/**\n * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.\n * @param hostStyle The properties might be modified.\n * @return If be text el, `textContentStyle` and `textConfig` will not be retured.\n * Otherwise a `textContentStyle` and `textConfig` will be created, whose props area\n * retried from the `hostStyle`.\n */\nexport function convertFromEC4CompatibleStyle(hostStyle: ZRStyleProps, elType: string, isNormal: boolean): {\n textContent: TextProps & {type: string},\n textConfig: ElementTextConfig\n} {\n const srcStyle = hostStyle as Dictionary;\n let textConfig: ElementTextConfig;\n let textContent: TextProps & {type: string};\n\n let textContentStyle: TextStyleProps;\n if (elType === 'text') {\n textContentStyle = srcStyle;\n }\n else {\n textContentStyle = {};\n hasOwn(srcStyle, 'text') && (textContentStyle.text = srcStyle.text);\n hasOwn(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich);\n hasOwn(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill);\n hasOwn(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke);\n hasOwn(srcStyle, 'fontFamily') && (textContentStyle.fontFamily = srcStyle.fontFamily);\n hasOwn(srcStyle, 'fontSize') && (textContentStyle.fontSize = srcStyle.fontSize);\n hasOwn(srcStyle, 'fontStyle') && (textContentStyle.fontStyle = srcStyle.fontStyle);\n hasOwn(srcStyle, 'fontWeight') && (textContentStyle.fontWeight = srcStyle.fontWeight);\n\n textContent = {\n type: 'text',\n style: textContentStyle,\n // ec4 do not support rectText trigger.\n // And when text postion is different in normal and emphasis\n // => hover text trigger emphasis;\n // => text position changed, leave mouse pointer immediately;\n // That might cause state incorrect.\n silent: true\n };\n textConfig = {};\n const hasOwnPos = hasOwn(srcStyle, 'textPosition');\n if (isNormal) {\n textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside';\n }\n else {\n hasOwnPos && (textConfig.position = srcStyle.textPosition);\n }\n hasOwn(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition);\n hasOwn(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset);\n hasOwn(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation);\n hasOwn(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance);\n }\n\n convertEC4CompatibleRichItem(textContentStyle, hostStyle);\n\n each(textContentStyle.rich, function (richItem) {\n convertEC4CompatibleRichItem(richItem as TextStyleProps, richItem);\n });\n\n return {\n textConfig: textConfig,\n textContent: textContent\n };\n}\n\n/**\n * The result will be set to `out`.\n */\nfunction convertEC4CompatibleRichItem(out: TextStylePropsPart, richItem: Dictionary): void {\n if (!richItem) {\n return;\n }\n // (1) For simplicity, make textXXX properties (deprecated since ec5) has\n // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`\n // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached\n // richText in ec5.\n // (2) `out === richItem` if and only if `out` is text el or rich item.\n // So we can overwite existing props in `out` since textXXX has higher priority.\n richItem.font = richItem.textFont || richItem.font;\n hasOwn(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth);\n hasOwn(richItem, 'textAlign') && (out.align = richItem.textAlign);\n hasOwn(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign);\n hasOwn(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight);\n hasOwn(richItem, 'textWidth') && (out.width = richItem.textWidth);\n hasOwn(richItem, 'textHeight') && (out.height = richItem.textHeight);\n hasOwn(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor);\n hasOwn(richItem, 'textPadding') && (out.padding = richItem.textPadding);\n hasOwn(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor);\n hasOwn(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth);\n hasOwn(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius);\n hasOwn(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor);\n hasOwn(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur);\n hasOwn(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX);\n hasOwn(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY);\n}\n\n/**\n * Convert to pure echarts4 format style.\n * `itemStyle` will be modified, added with ec4 style properties from\n * `textStyle` and `textConfig`.\n *\n * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where\n * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.\n */\nexport function convertToEC4StyleForCustomSerise(\n itemStl: ItemStyleProps,\n txStl: TextStyleProps,\n txCfg: ElementTextConfig\n): ZRStyleProps {\n\n const out = itemStl as Dictionary;\n\n // See `custom.ts`, a trick to set extra `textPosition` firstly.\n out.textPosition = out.textPosition || txCfg.position || 'inside';\n txCfg.offset != null && (out.textOffset = txCfg.offset);\n txCfg.rotation != null && (out.textRotation = txCfg.rotation);\n txCfg.distance != null && (out.textDistance = txCfg.distance);\n\n const isInside = (out.textPosition as string).indexOf('inside') >= 0;\n const hostFill = itemStl.fill || '#000';\n\n convertToEC4RichItem(out, txStl);\n\n const textFillNotSet = out.textFill == null;\n if (isInside) {\n if (textFillNotSet) {\n out.textFill = txCfg.insideFill || '#fff';\n !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke);\n !out.textStroke && (out.textStroke = hostFill);\n out.textStrokeWidth == null && (out.textStrokeWidth = 2);\n }\n }\n else {\n if (textFillNotSet) {\n out.textFill = itemStl.fill || txCfg.outsideFill || '#000';\n }\n !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke);\n }\n\n out.text = txStl.text;\n out.rich = txStl.rich;\n\n each(txStl.rich, function (richItem) {\n convertToEC4RichItem(richItem as Dictionary, richItem);\n });\n\n return out;\n}\n\nfunction convertToEC4RichItem(out: Dictionary, richItem: TextStylePropsPart) {\n if (!richItem) {\n return;\n }\n\n hasOwn(richItem, 'fill') && (out.textFill = richItem.fill);\n hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);\n\n hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);\n hasOwn(richItem, 'font') && (out.font = richItem.font);\n hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);\n hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);\n hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);\n hasOwn(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);\n\n hasOwn(richItem, 'align') && (out.textAlign = richItem.align);\n hasOwn(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);\n hasOwn(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);\n hasOwn(richItem, 'width') && (out.textWidth = richItem.width);\n hasOwn(richItem, 'height') && (out.textHeight = richItem.height);\n\n hasOwn(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);\n hasOwn(richItem, 'padding') && (out.textPadding = richItem.padding);\n hasOwn(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);\n hasOwn(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);\n hasOwn(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);\n\n hasOwn(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);\n hasOwn(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);\n hasOwn(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);\n hasOwn(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);\n\n hasOwn(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);\n hasOwn(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);\n hasOwn(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);\n hasOwn(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);\n}\n\nexport function warnDeprecated(deprecated: string, insteadApproach: string): void {\n if (__DEV__) {\n const key = deprecated + '^_^' + insteadApproach;\n if (!deprecatedLogs[key]) {\n console.warn(`[ECharts] DEPRECATED: \"${deprecated}\" has been deprecated. ${insteadApproach}`);\n deprecatedLogs[key] = true;\n }\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Transformable from 'zrender/src/core/Transformable';\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport { Dictionary } from '../../util/types';\nimport {\n CustomDisplayableOption,\n CustomElementOption,\n customInnerStore,\n LooseElementProps,\n TransformProp,\n TRANSFORM_PROPS,\n TransitionAnyOption\n} from './CustomSeries';\nimport { normalizeToArray } from '../../util/model';\nimport { assert, hasOwn, indexOf, isArrayLike, keys } from 'zrender/src/core/util';\nimport { cloneValue } from 'zrender/src/animation/Animator';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst LEGACY_TRANSFORM_PROPS = {\n position: ['x', 'y'],\n scale: ['scaleX', 'scaleY'],\n origin: ['originX', 'originY']\n} as const;\ntype LegacyTransformProp = keyof typeof LEGACY_TRANSFORM_PROPS;\n\nfunction setLegacyTransformProp(\n elOption: CustomElementOption,\n targetProps: Partial>,\n legacyName: LegacyTransformProp\n): void {\n const legacyArr = (elOption as any)[legacyName];\n const xyName = LEGACY_TRANSFORM_PROPS[legacyName];\n if (legacyArr) {\n targetProps[xyName[0]] = legacyArr[0];\n targetProps[xyName[1]] = legacyArr[1];\n }\n}\n\nfunction setTransformProp(\n elOption: CustomElementOption,\n allProps: Partial>,\n name: TransformProp\n): void {\n if (elOption[name] != null) {\n allProps[name] = elOption[name];\n }\n}\n\nfunction setTransformPropToTransitionFrom(\n transitionFrom: Partial>,\n name: TransformProp,\n fromTransformable?: Transformable // If provided, retrieve from the element.\n): void {\n if (fromTransformable) {\n transitionFrom[name] = fromTransformable[name];\n }\n}\n\n\n// See [STRATEGY_TRANSITION]\nexport function prepareShapeOrExtraTransitionFrom(\n mainAttr: 'shape' | 'extra',\n fromEl: Element,\n elOption: CustomElementOption,\n transFromProps: LooseElementProps,\n isInit: boolean\n): void {\n\n const attrOpt: Dictionary & TransitionAnyOption = (elOption as any)[mainAttr];\n if (!attrOpt) {\n return;\n }\n\n const elPropsInAttr = (fromEl as LooseElementProps)[mainAttr];\n let transFromPropsInAttr: Dictionary;\n\n const enterFrom = attrOpt.enterFrom;\n if (isInit && enterFrom) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const enterFromKeys = keys(enterFrom);\n for (let i = 0; i < enterFromKeys.length; i++) {\n // `enterFrom` props are not necessarily also declared in `shape`/`style`/...,\n // for example, `opacity` can only declared in `enterFrom` but not in `style`.\n const key = enterFromKeys[i];\n // Do not clone, animator will perform that clone.\n transFromPropsInAttr[key] = enterFrom[key];\n }\n }\n\n if (!isInit && elPropsInAttr) {\n if (attrOpt.transition) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const transitionKeys = normalizeToArray(attrOpt.transition);\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n const elVal = elPropsInAttr[key];\n if (__DEV__) {\n checkNonStyleTansitionRefer(key, (attrOpt as any)[key], elVal);\n }\n // Do not clone, see `checkNonStyleTansitionRefer`.\n transFromPropsInAttr[key] = elVal;\n }\n }\n else if (indexOf(elOption.transition, mainAttr) >= 0) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const elPropsInAttrKeys = keys(elPropsInAttr);\n for (let i = 0; i < elPropsInAttrKeys.length; i++) {\n const key = elPropsInAttrKeys[i];\n const elVal = elPropsInAttr[key];\n if (isNonStyleTransitionEnabled((attrOpt as any)[key], elVal)) {\n transFromPropsInAttr[key] = elVal;\n }\n }\n }\n }\n\n const leaveTo = attrOpt.leaveTo;\n if (leaveTo) {\n const leaveToProps = getOrCreateLeaveToPropsFromEl(fromEl);\n const leaveToPropsInAttr: Dictionary = leaveToProps[mainAttr] || (leaveToProps[mainAttr] = {});\n const leaveToKeys = keys(leaveTo);\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i];\n leaveToPropsInAttr[key] = leaveTo[key];\n }\n }\n}\n\nexport function prepareShapeOrExtraAllPropsFinal(\n mainAttr: 'shape' | 'extra',\n elOption: CustomElementOption,\n allProps: LooseElementProps\n): void {\n const attrOpt: Dictionary & TransitionAnyOption = (elOption as any)[mainAttr];\n if (!attrOpt) {\n return;\n }\n const allPropsInAttr = allProps[mainAttr] = {} as Dictionary;\n const keysInAttr = keys(attrOpt);\n for (let i = 0; i < keysInAttr.length; i++) {\n const key = keysInAttr[i];\n // To avoid share one object with different element, and\n // to avoid user modify the object inexpectedly, have to clone.\n allPropsInAttr[key] = cloneValue((attrOpt as any)[key]);\n }\n}\n\n// See [STRATEGY_TRANSITION].\nexport function prepareTransformTransitionFrom(\n el: Element,\n elOption: CustomElementOption,\n transFromProps: ElementProps,\n isInit: boolean\n): void {\n const enterFrom = elOption.enterFrom;\n if (isInit && enterFrom) {\n const enterFromKeys = keys(enterFrom);\n for (let i = 0; i < enterFromKeys.length; i++) {\n const key = enterFromKeys[i] as TransformProp;\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.enterFrom');\n }\n // Do not clone, animator will perform that clone.\n transFromProps[key] = enterFrom[key] as number;\n }\n }\n\n if (!isInit) {\n if (elOption.transition) {\n const transitionKeys = normalizeToArray(elOption.transition);\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n if (key === 'style' || key === 'shape' || key === 'extra') {\n continue;\n }\n const elVal = el[key];\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.transition');\n checkNonStyleTansitionRefer(key, elOption[key], elVal);\n }\n // Do not clone, see `checkNonStyleTansitionRefer`.\n transFromProps[key] = elVal;\n }\n }\n // This default transition see [STRATEGY_TRANSITION]\n else {\n setTransformPropToTransitionFrom(transFromProps, 'x', el);\n setTransformPropToTransitionFrom(transFromProps, 'y', el);\n }\n }\n\n const leaveTo = elOption.leaveTo;\n if (leaveTo) {\n const leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n const leaveToKeys = keys(leaveTo);\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i] as TransformProp;\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.leaveTo');\n }\n leaveToProps[key] = leaveTo[key] as number;\n }\n }\n}\n\nexport function prepareTransformAllPropsFinal(\n el: Element,\n elOption: CustomElementOption,\n allProps: ElementProps\n): void {\n setLegacyTransformProp(elOption, allProps, 'position');\n setLegacyTransformProp(elOption, allProps, 'scale');\n setLegacyTransformProp(elOption, allProps, 'origin');\n\n setTransformProp(elOption, allProps, 'x');\n setTransformProp(elOption, allProps, 'y');\n setTransformProp(elOption, allProps, 'scaleX');\n setTransformProp(elOption, allProps, 'scaleY');\n setTransformProp(elOption, allProps, 'originX');\n setTransformProp(elOption, allProps, 'originY');\n setTransformProp(elOption, allProps, 'rotation');\n}\n\n// See [STRATEGY_TRANSITION].\nexport function prepareStyleTransitionFrom(\n fromEl: Element,\n elOption: CustomElementOption,\n styleOpt: CustomDisplayableOption['style'],\n transFromProps: LooseElementProps,\n isInit: boolean\n): void {\n if (!styleOpt) {\n return;\n }\n\n const fromElStyle = (fromEl as LooseElementProps).style as LooseElementProps['style'];\n let transFromStyleProps: LooseElementProps['style'];\n\n const enterFrom = styleOpt.enterFrom;\n if (isInit && enterFrom) {\n const enterFromKeys = keys(enterFrom);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n for (let i = 0; i < enterFromKeys.length; i++) {\n const key = enterFromKeys[i];\n // Do not clone, animator will perform that clone.\n (transFromStyleProps as any)[key] = enterFrom[key];\n }\n }\n\n if (!isInit && fromElStyle) {\n if (styleOpt.transition) {\n const transitionKeys = normalizeToArray(styleOpt.transition);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n const elVal = (fromElStyle as any)[key];\n // Do not clone, see `checkNonStyleTansitionRefer`.\n (transFromStyleProps as any)[key] = elVal;\n }\n }\n else if (\n (fromEl as Displayable).getAnimationStyleProps\n && indexOf(elOption.transition, 'style') >= 0\n ) {\n const animationProps = (fromEl as Displayable).getAnimationStyleProps();\n const animationStyleProps = animationProps ? animationProps.style : null;\n if (animationStyleProps) {\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n const styleKeys = keys(styleOpt);\n for (let i = 0; i < styleKeys.length; i++) {\n const key = styleKeys[i];\n if ((animationStyleProps as Dictionary)[key]) {\n const elVal = (fromElStyle as any)[key];\n (transFromStyleProps as any)[key] = elVal;\n }\n }\n }\n }\n }\n\n const leaveTo = styleOpt.leaveTo;\n if (leaveTo) {\n const leaveToKeys = keys(leaveTo);\n const leaveToProps = getOrCreateLeaveToPropsFromEl(fromEl);\n const leaveToStyleProps = leaveToProps.style || (leaveToProps.style = {});\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i];\n (leaveToStyleProps as any)[key] = leaveTo[key];\n }\n }\n}\n\nlet checkNonStyleTansitionRefer: (propName: string, optVal: unknown, elVal: unknown) => void;\nif (__DEV__) {\n checkNonStyleTansitionRefer = function (propName: string, optVal: unknown, elVal: unknown): void {\n if (!isArrayLike(optVal)) {\n assert(\n optVal != null && isFinite(optVal as number),\n 'Prop `' + propName + '` must refer to a finite number or ArrayLike for transition.'\n );\n }\n else {\n // Try not to copy array for performance, but if user use the same object in different\n // call of `renderItem`, it will casue animation transition fail.\n assert(\n optVal !== elVal,\n 'Prop `' + propName + '` must use different Array object each time for transition.'\n );\n }\n };\n}\n\nfunction isNonStyleTransitionEnabled(optVal: unknown, elVal: unknown): boolean {\n // The same as `checkNonStyleTansitionRefer`.\n return !isArrayLike(optVal)\n ? (optVal != null && isFinite(optVal as number))\n : optVal !== elVal;\n}\n\nlet checkTransformPropRefer: (key: string, usedIn: string) => void;\nif (__DEV__) {\n checkTransformPropRefer = function (key: string, usedIn: string): void {\n assert(\n hasOwn(TRANSFORM_PROPS, key),\n 'Prop `' + key + '` is not a permitted in `' + usedIn + '`. '\n + 'Only `' + keys(TRANSFORM_PROPS).join('`, `') + '` are permitted.'\n );\n };\n}\n\nfunction getOrCreateLeaveToPropsFromEl(el: Element): LooseElementProps {\n const innerEl = customInnerStore(el);\n return innerEl.leaveToProps || (innerEl.leaveToProps = {});\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n hasOwn, assert, isString, retrieve2, retrieve3, defaults, each,\n keys, bind, eqNaN, indexOf\n} from 'zrender/src/core/util';\nimport * as graphicUtil from '../../util/graphic';\nimport { setDefaultStateProxy, enableHoverEmphasis } from '../../util/states';\nimport * as labelStyleHelper from '../../label/labelStyle';\nimport {getDefaultLabel} from '../helper/labelHelper';\nimport {getLayoutOnAxis} from '../../layout/barGrid';\nimport DataDiffer from '../../data/DataDiffer';\nimport Model from '../../model/Model';\nimport ChartView from '../../view/Chart';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport {\n EventQueryItem, ECActionEvent,\n DimensionLoose,\n ParsedValue,\n Dictionary,\n Payload,\n StageHandlerProgressParams,\n ViewRootGroup,\n ZRStyleProps,\n DisplayState,\n ECElement,\n DisplayStateNonNormal,\n OrdinalRawValue,\n InnerDecalObject\n} from '../../util/types';\nimport Element, { ElementProps, ElementTextConfig } from 'zrender/src/Element';\nimport prepareCartesian2d from '../../coord/cartesian/prepareCustom';\nimport prepareGeo from '../../coord/geo/prepareCustom';\nimport prepareSingleAxis from '../../coord/single/prepareCustom';\nimport preparePolar from '../../coord/polar/prepareCustom';\nimport prepareCalendar from '../../coord/calendar/prepareCustom';\nimport SeriesData, { DefaultDataVisual } from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport {\n convertToEC4StyleForCustomSerise,\n isEC4CompatibleStyle,\n convertFromEC4CompatibleStyle,\n LegacyStyleProps,\n warnDeprecated\n} from '../../util/styleCompat';\nimport { ItemStyleProps } from '../../model/mixin/itemStyle';\nimport { warn, throwError } from '../../util/log';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport CustomSeriesModel, {\n CustomDuringAPI,\n TransformProp,\n TRANSFORM_PROPS,\n CustomImageOption,\n CustomBaseElementOption,\n CustomElementOption,\n CustomElementOptionOnState,\n CustomSVGPathOption,\n CustomBaseZRPathOption,\n CustomDisplayableOption,\n CustomSeriesRenderItemAPI,\n CustomSeriesRenderItemParams,\n LegacyCustomSeriesOption,\n CustomGroupOption,\n WrapEncodeDefRet,\n NonStyleVisualProps,\n StyleVisualProps,\n STYLE_VISUAL_TYPE,\n NON_STYLE_VISUAL_PROPS,\n customInnerStore,\n LooseElementProps,\n PrepareCustomInfo,\n CustomPathOption\n} from './CustomSeries';\nimport {\n prepareShapeOrExtraAllPropsFinal,\n prepareShapeOrExtraTransitionFrom,\n prepareStyleTransitionFrom,\n prepareTransformAllPropsFinal,\n prepareTransformTransitionFrom\n} from './prepare';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\n\nconst transformPropNamesStr = keys(TRANSFORM_PROPS).join(', ');\n\nconst EMPHASIS = 'emphasis' as const;\nconst NORMAL = 'normal' as const;\nconst BLUR = 'blur' as const;\nconst SELECT = 'select' as const;\nconst STATES = [NORMAL, EMPHASIS, BLUR, SELECT] as const;\nconst PATH_ITEM_STYLE = {\n normal: ['itemStyle'],\n emphasis: [EMPHASIS, 'itemStyle'],\n blur: [BLUR, 'itemStyle'],\n select: [SELECT, 'itemStyle']\n} as const;\nconst PATH_LABEL = {\n normal: ['label'],\n emphasis: [EMPHASIS, 'label'],\n blur: [BLUR, 'label'],\n select: [SELECT, 'label']\n} as const;\n// Use prefix to avoid index to be the same as el.name,\n// which will cause weird update animation.\nconst GROUP_DIFF_PREFIX = 'e\\0\\0';\n\ntype AttachedTxInfo = {\n isLegacy: boolean;\n normal: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOption | false;\n };\n emphasis: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n blur: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n select: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n};\nconst attachedTxInfoTmp = {\n normal: {},\n emphasis: {},\n blur: {},\n select: {}\n} as AttachedTxInfo;\n\n\n/**\n * To reduce total package size of each coordinate systems, the modules `prepareCustom`\n * of each coordinate systems are not required by each coordinate systems directly, but\n * required by the module `custom`.\n *\n * prepareInfoForCustomSeries {Function}: optional\n * @return {Object} {coordSys: {...}, api: {\n * coord: function (data, clamp) {}, // return point in global.\n * size: function (dataSize, dataItem) {} // return size of each axis in coordSys.\n * }}\n */\nconst prepareCustoms: Dictionary = {\n cartesian2d: prepareCartesian2d,\n geo: prepareGeo,\n singleAxis: prepareSingleAxis,\n polar: preparePolar,\n calendar: prepareCalendar\n};\n\n\nfunction isPath(el: Element): el is graphicUtil.Path {\n return el instanceof graphicUtil.Path;\n}\nfunction isDisplayable(el: Element) : el is Displayable {\n return el instanceof Displayable;\n}\nfunction copyElement(sourceEl: Element, targetEl: Element) {\n targetEl.copyTransform(sourceEl);\n if (isDisplayable(targetEl) && isDisplayable(sourceEl)) {\n targetEl.setStyle(sourceEl.style);\n targetEl.z = sourceEl.z;\n targetEl.z2 = sourceEl.z2;\n targetEl.zlevel = sourceEl.zlevel;\n targetEl.invisible = sourceEl.invisible;\n targetEl.ignore = sourceEl.ignore;\n\n if (isPath(targetEl) && isPath(sourceEl)) {\n targetEl.setShape(sourceEl.shape);\n }\n }\n}\nexport default class CustomChartView extends ChartView {\n\n static type = 'custom';\n readonly type = CustomChartView.type;\n\n private _data: SeriesData;\n\n render(\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const oldData = this._data;\n const data = customSeries.getData();\n const group = this.group;\n const renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n if (!oldData) {\n // Previous render is incremental render or first render.\n // Needs remove the incremental rendered elements.\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n createOrUpdateItem(\n api, null, newIdx, renderItem(newIdx, payload), customSeries, group,\n data\n );\n })\n .remove(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n })\n .update(function (newIdx, oldIdx) {\n const oldEl = oldData.getItemGraphicEl(oldIdx);\n\n createOrUpdateItem(\n api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group,\n data\n );\n })\n .execute();\n\n // Do clipping\n const clipPath = customSeries.get('clip', true)\n ? createClipPath(customSeries.coordinateSystem, false, customSeries)\n : null;\n if (clipPath) {\n group.setClipPath(clipPath);\n }\n else {\n group.removeClipPath();\n }\n\n this._data = data;\n }\n\n incrementalPrepareRender(\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n this.group.removeAll();\n this._data = null;\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const data = customSeries.getData();\n const renderItem = makeRenderItem(customSeries, data, ecModel, api);\n function setIncrementalAndHoverLayer(el: Displayable) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n for (let idx = params.start; idx < params.end; idx++) {\n const el = createOrUpdateItem(\n null, null, idx, renderItem(idx, payload), customSeries, this.group, data\n );\n el && el.traverse(setIncrementalAndHoverLayer);\n }\n }\n\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent\n ): boolean {\n const elementName = query.element;\n if (elementName == null || targetEl.name === elementName) {\n return true;\n }\n\n // Enable to give a name on a group made by `renderItem`, and listen\n // events that triggerd by its descendents.\n while ((targetEl = (targetEl.__hostTarget || targetEl.parent)) && targetEl !== this.group) {\n if (targetEl.name === elementName) {\n return true;\n }\n }\n\n return false;\n }\n}\n\n\nfunction createEl(elOption: CustomElementOption): Element {\n const graphicType = elOption.type;\n let el;\n\n // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n if (graphicType === 'path') {\n const shape = (elOption as CustomSVGPathOption).shape;\n // Using pathRect brings convenience to users sacle svg path.\n const pathRect = (shape.width != null && shape.height != null)\n ? {\n x: shape.x || 0,\n y: shape.y || 0,\n width: shape.width,\n height: shape.height\n } as RectLike\n : null;\n const pathData = getPathData(shape);\n // Path is also used for icon, so layout 'center' by default.\n el = graphicUtil.makePath(pathData, null, pathRect, shape.layout || 'center');\n customInnerStore(el).customPathData = pathData;\n }\n else if (graphicType === 'image') {\n el = new graphicUtil.Image({});\n customInnerStore(el).customImagePath = (elOption as CustomImageOption).style.image;\n }\n else if (graphicType === 'text') {\n el = new graphicUtil.Text({});\n // customInnerStore(el).customText = (elOption.style as TextStyleProps).text;\n }\n else if (graphicType === 'group') {\n el = new graphicUtil.Group();\n }\n else if (graphicType === 'compoundPath') {\n throw new Error('\"compoundPath\" is not supported yet.');\n }\n else {\n const Clz = graphicUtil.getShapeClass(graphicType);\n if (!Clz) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'graphic type \"' + graphicType + '\" can not be found.';\n }\n throwError(errMsg);\n }\n el = new Clz();\n }\n\n customInnerStore(el).customGraphicType = graphicType;\n el.name = elOption.name;\n\n // Compat ec4: the default z2 lift is 1. If changing the number,\n // some cases probably be broken: hierarchy layout along z, like circle packing,\n // where emphasis only intending to modify color/border rather than lift z2.\n (el as ECElement).z2EmphasisLift = 1;\n (el as ECElement).z2SelectLift = 1;\n\n return el;\n}\n\n\n/**\n * ----------------------------------------------------------\n * [STRATEGY_MERGE] Merge properties or erase all properties:\n *\n * Based on the fact that the existing zr element probably be reused, we now consider whether\n * merge or erase all properties to the exsiting elements.\n * That is, if a certain props is not specified in the lastest return of `renderItem`:\n * + \"Merge\" means that do not modify the value on the existing element.\n * + \"Erase all\" means that use a default value to the existing element.\n *\n * \"Merge\" might bring some unexpected state retaining for users and \"erase all\" seams to be\n * more safe. \"erase all\" force users to specify all of the props each time, which is recommanded\n * in most cases.\n * But \"erase all\" theoretically disables the chance of performance optimization (e.g., just\n * generete shape and style at the first time rather than always do that).\n * So we still use \"merge\" rather than \"erase all\". If users need \"erase all\", they can\n * simple always set all of the props each time.\n * Some \"object-like\" config like `textConfig`, `textContent`, `style` which are not needed for\n * every elment, so we replace them only when user specify them. And the that is a total replace.\n *\n * TODO: there is no hint of 'isFirst' to users. So the performance enhancement can not be\n * performed yet. Consider the case:\n * (1) setOption to \"mergeChildren\" with a smaller children count\n * (2) Use dataZoom to make an item disappear.\n * (3) User dataZoom to make the item display again. At that time, renderItem need to return the\n * full option rather than partial option to recreate the element.\n *\n * ----------------------------------------------\n * [STRATEGY_NULL] `hasOwnProperty` or `== null`:\n *\n * Ditinguishing \"own property\" probably bring little trouble to user when make el options.\n * So we trade a {xx: null} or {xx: undefined} as \"not specified\" if possible rather than\n * \"set them to null/undefined\". In most cases, props can not be cleared. Some typicall\n * clearable props like `style`/`textConfig`/`textContent` we enable `false` to means\n * \"clear\". In some othere special cases that the prop is able to set as null/undefined,\n * but not suitable to use `false`, `hasOwnProperty` is checked.\n *\n * ---------------------------------------------\n * [STRATEGY_TRANSITION] The rule of transition:\n * + For props on the root level of a element:\n * If there is no `transition` specified, tansform props will be transitioned by default,\n * which is the same as the previous setting in echarts4 and suitable for the scenario\n * of dataZoom change.\n * If `transition` specified, only the specified props will be transitioned.\n * + For props in `shape` and `style`:\n * Only props specified in `transition` will be transitioned.\n * + Break:\n * Since ec5, do not make transition to shape by default, because it might result in\n * performance issue (especially `points` of polygon) and do not necessary in most cases.\n *\n * @return if `isMorphTo`, return `allPropsFinal`.\n */\n\ninterface InnerCustomZRPathOptionStyle extends PathStyleProps {\n __decalPattern: PatternObject\n}\n\nfunction updateElNormal(\n // Can be null/undefined\n api: ExtensionAPI,\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n attachedTxInfo: AttachedTxInfo,\n seriesModel: CustomSeriesModel,\n isInit: boolean,\n isTextContent: boolean\n): void {\n\n const txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg;\n if (txCfgOpt) {\n // PENDING: whether use user object directly rather than clone?\n // TODO:5.0 textConfig transition animation?\n el.setTextConfig(txCfgOpt);\n }\n\n // Do some normalization on style.\n const styleOpt = elOption && (elOption as CustomDisplayableOption).style;\n\n if (styleOpt) {\n if (el.type === 'text') {\n const textOptionStyle = styleOpt as TextStyleProps;\n // Compatible with ec4: if `textFill` or `textStroke` exists use them.\n hasOwn(textOptionStyle, 'textFill') && (\n textOptionStyle.fill = (textOptionStyle as any).textFill\n );\n hasOwn(textOptionStyle, 'textStroke') && (\n textOptionStyle.stroke = (textOptionStyle as any).textStroke\n );\n }\n\n let decalPattern;\n const decalObj = isPath(el) ? (styleOpt as CustomBaseZRPathOption['style']).decal : null;\n if (api && decalObj) {\n (decalObj as InnerDecalObject).dirty = true;\n decalPattern = createOrUpdatePatternFromDecal(decalObj, api);\n }\n // Always overwrite in case user specify this prop.\n (styleOpt as InnerCustomZRPathOptionStyle).__decalPattern = decalPattern;\n }\n\n // Save the meta info for further morphing. Like apply on the sub morphing elements.\n const store = customInnerStore(el);\n store.userDuring = elOption.during;\n\n const transFromProps = {} as ElementProps;\n const propsToSet = {} as ElementProps;\n\n prepareShapeOrExtraTransitionFrom('shape', el, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('shape', elOption, propsToSet);\n prepareTransformTransitionFrom(el, elOption, transFromProps, isInit);\n prepareTransformAllPropsFinal(el, elOption, propsToSet);\n prepareShapeOrExtraTransitionFrom('extra', el, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('extra', elOption, propsToSet);\n prepareStyleTransitionFrom(el, elOption, styleOpt, transFromProps, isInit);\n (propsToSet as DisplayableProps).style = styleOpt;\n applyPropsDirectly(el, propsToSet);\n applyPropsTransition(el, dataIndex, seriesModel, transFromProps, isInit);\n applyMiscProps(el, elOption, isTextContent);\n\n styleOpt ? el.dirty() : el.markRedraw();\n}\n\nfunction applyMiscProps(\n el: Element, elOption: CustomElementOption, isTextContent: boolean\n) {\n // Merge by default.\n hasOwn(elOption, 'silent') && (el.silent = elOption.silent);\n hasOwn(elOption, 'ignore') && (el.ignore = elOption.ignore);\n if (isDisplayable(el)) {\n hasOwn(elOption, 'invisible') && (el.invisible = (elOption as CustomDisplayableOption).invisible);\n }\n if (isPath(el)) {\n hasOwn(elOption, 'autoBatch') && (el.autoBatch = (elOption as CustomBaseZRPathOption).autoBatch);\n }\n\n if (!isTextContent) {\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n // Update them only when user specified, otherwise, remain.\n hasOwn(elOption, 'info') && (customInnerStore(el).info = elOption.info);\n }\n}\n\nfunction applyPropsDirectly(\n el: Element,\n // Can be null/undefined\n allPropsFinal: ElementProps\n) {\n const elDisplayable = el.isGroup ? null : el as Displayable;\n const styleOpt = (allPropsFinal as Displayable).style;\n\n if (elDisplayable && styleOpt) {\n\n // PENDING: here the input style object is used directly.\n // Good for performance but bad for compatibility control.\n elDisplayable.useStyle(styleOpt);\n\n const decalPattern = (styleOpt as InnerCustomZRPathOptionStyle).__decalPattern;\n if (decalPattern) {\n elDisplayable.style.decal = decalPattern;\n }\n\n // When style object changed, how to trade the existing animation?\n // It is probably complicated and not needed to cover all the cases.\n // But still need consider the case:\n // (1) When using init animation on `style.opacity`, and before the animation\n // ended users triggers an update by mousewhel. At that time the init\n // animation should better be continued rather than terminated.\n // So after `useStyle` called, we should change the animation target manually\n // to continue the effect of the init animation.\n // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need\n // to update the value to `val2` and no animation declared, should be terminate\n // the previous animation or just modify the target of the animation?\n // Therotically That will happen not only on `style` but also on `shape` and\n // `transfrom` props. But we haven't handle this case at present yet.\n // (3) PENDING: Is it proper to visit `animators` and `targetName`?\n const animators = elDisplayable.animators;\n for (let i = 0; i < animators.length; i++) {\n const animator = animators[i];\n // targetName is the \"topKey\".\n if (animator.targetName === 'style') {\n animator.changeTarget(elDisplayable.style);\n }\n }\n }\n\n if (allPropsFinal) {\n // Not set style here.\n (allPropsFinal as DisplayableProps).style = null;\n // Set el to the final state firstly.\n allPropsFinal && el.attr(allPropsFinal);\n (allPropsFinal as DisplayableProps).style = styleOpt;\n }\n}\n\nfunction applyPropsTransition(\n el: Element,\n dataIndex: number,\n seriesModel: CustomSeriesModel,\n // Can be null/undefined\n transFromProps: ElementProps,\n isInit: boolean\n): void {\n if (transFromProps) {\n // NOTE: Do not use `el.updateDuringAnimation` here becuase `el.updateDuringAnimation` will\n // be called mutiple time in each animation frame. For example, if both \"transform\" props\n // and shape props and style props changed, it will generate three animator and called\n // one-by-one in each animation frame.\n // We use the during in `animateTo/From` params.\n const userDuring = customInnerStore(el).userDuring;\n // For simplicity, if during not specified, the previous during will not work any more.\n const cfgDuringCall = userDuring ? bind(duringCall, { el: el, userDuring: userDuring }) : null;\n const cfg = {\n dataIndex: dataIndex,\n isFrom: true,\n during: cfgDuringCall\n };\n isInit\n ? graphicUtil.initProps(el, transFromProps, seriesModel, cfg)\n : graphicUtil.updateProps(el, transFromProps, seriesModel, cfg);\n }\n}\n\n\n// Use it to avoid it be exposed to user.\nconst tmpDuringScope = {} as {\n el: Element;\n isShapeDirty: boolean;\n isStyleDirty: boolean;\n};\nconst customDuringAPI: CustomDuringAPI = {\n // Usually other props do not need to be changed in animation during.\n setTransform(key: TransformProp, val: unknown) {\n if (__DEV__) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `setTransform`.');\n }\n tmpDuringScope.el[key] = val as number;\n return this;\n },\n getTransform(key: TransformProp): number {\n if (__DEV__) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `getTransform`.');\n }\n return tmpDuringScope.el[key];\n },\n setShape(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const shape = (tmpDuringScope.el as graphicUtil.Path).shape\n || ((tmpDuringScope.el as graphicUtil.Path).shape = {});\n shape[key] = val;\n tmpDuringScope.isShapeDirty = true;\n return this;\n },\n getShape(key: any): any {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const shape = (tmpDuringScope.el as graphicUtil.Path).shape;\n if (shape) {\n return shape[key];\n }\n },\n setStyle(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const style = (tmpDuringScope.el as Displayable).style;\n if (style) {\n if (__DEV__) {\n if (eqNaN(val)) {\n warn('style.' + key + ' must not be assigned with NaN.');\n }\n }\n style[key] = val;\n tmpDuringScope.isStyleDirty = true;\n }\n return this;\n },\n getStyle(key: any): any {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const style = (tmpDuringScope.el as Displayable).style;\n if (style) {\n return style[key];\n }\n },\n setExtra(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const extra = (tmpDuringScope.el as LooseElementProps).extra\n || ((tmpDuringScope.el as LooseElementProps).extra = {});\n extra[key] = val;\n return this;\n },\n getExtra(key: string): unknown {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const extra = (tmpDuringScope.el as LooseElementProps).extra;\n if (extra) {\n return extra[key];\n }\n }\n};\n\nfunction assertNotReserved(key: string) {\n if (__DEV__) {\n if (key === 'transition' || key === 'enterFrom' || key === 'leaveTo') {\n throw new Error('key must not be \"' + key + '\"');\n }\n }\n}\n\nfunction duringCall(\n this: {\n el: Element;\n userDuring: CustomBaseElementOption['during']\n }\n): void {\n // Do not provide \"percent\" until some requirements come.\n // Because consider thies case:\n // enterFrom: {x: 100, y: 30}, transition: 'x'.\n // And enter duration is different from update duration.\n // Thus it might be confused about the meaning of \"percent\" in during callback.\n const scope = this;\n const el = scope.el;\n if (!el) {\n return;\n }\n // If el is remove from zr by reason like legend, during still need to called,\n // becuase el will be added back to zr and the prop value should not be incorrect.\n\n const latestUserDuring = customInnerStore(el).userDuring;\n const scopeUserDuring = scope.userDuring;\n // Ensured a during is only called once in each animation frame.\n // If a during is called multiple times in one frame, maybe some users' calulation logic\n // might be wrong (not sure whether this usage exists).\n // The case of a during might be called twice can be: by default there is a animator for\n // 'x', 'y' when init. Before the init animation finished, call `setOption` to start\n // another animators for 'style'/'shape'/'extra'.\n if (latestUserDuring !== scopeUserDuring) {\n // release\n scope.el = scope.userDuring = null;\n return;\n }\n\n tmpDuringScope.el = el;\n tmpDuringScope.isShapeDirty = false;\n tmpDuringScope.isStyleDirty = false;\n\n // Give no `this` to user in \"during\" calling.\n scopeUserDuring(customDuringAPI);\n\n if (tmpDuringScope.isShapeDirty && (el as graphicUtil.Path).dirtyShape) {\n (el as graphicUtil.Path).dirtyShape();\n }\n if (tmpDuringScope.isStyleDirty && (el as Displayable).dirtyStyle) {\n (el as Displayable).dirtyStyle();\n }\n // markRedraw() will be called by default in during.\n // FIXME `this.markRedraw();` directly ?\n\n // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`,\n // consider the issue that the prop might be incorrect when return to \"normal\" state.\n}\n\nfunction updateElOnState(\n state: DisplayStateNonNormal,\n el: Element,\n elStateOpt: CustomElementOptionOnState,\n styleOpt: CustomElementOptionOnState['style'],\n attachedTxInfo: AttachedTxInfo,\n isRoot: boolean,\n isTextContent: boolean\n): void {\n const elDisplayable = el.isGroup ? null : el as Displayable;\n const txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg;\n\n // PENDING:5.0 support customize scale change and transition animation?\n\n if (elDisplayable) {\n // By default support auto lift color when hover whether `emphasis` specified.\n const stateObj = elDisplayable.ensureState(state);\n if (styleOpt === false) {\n const existingEmphasisState = elDisplayable.getState(state);\n if (existingEmphasisState) {\n existingEmphasisState.style = null;\n }\n }\n else {\n // style is needed to enable defaut emphasis.\n stateObj.style = styleOpt || null;\n }\n // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,\n // remove hover style.\n // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not\n // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.\n if (txCfgOpt) {\n stateObj.textConfig = txCfgOpt;\n }\n\n setDefaultStateProxy(elDisplayable);\n }\n}\n\nfunction updateZ(\n el: Element,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel\n): void {\n // Group not support textContent and not support z yet.\n if (el.isGroup) {\n return;\n }\n\n const elDisplayable = el as Displayable;\n const currentZ = seriesModel.currentZ;\n const currentZLevel = seriesModel.currentZLevel;\n // Always erase.\n elDisplayable.z = currentZ;\n elDisplayable.zlevel = currentZLevel;\n // z2 must not be null/undefined, otherwise sort error may occur.\n const optZ2 = (elOption as CustomDisplayableOption).z2;\n optZ2 != null && (elDisplayable.z2 = optZ2 || 0);\n\n for (let i = 0; i < STATES.length; i++) {\n updateZForEachState(elDisplayable, elOption, STATES[i]);\n }\n}\n\nfunction updateZForEachState(\n elDisplayable: Displayable,\n elOption: CustomDisplayableOption,\n state: DisplayState\n): void {\n const isNormal = state === NORMAL;\n const elStateOpt = isNormal ? elOption : retrieveStateOption(\n elOption as CustomElementOption,\n state as DisplayStateNonNormal\n );\n const optZ2 = elStateOpt ? elStateOpt.z2 : null;\n let stateObj;\n if (optZ2 != null) {\n // Do not `ensureState` until required.\n stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);\n stateObj.z2 = optZ2 || 0;\n }\n}\n\nfunction makeRenderItem(\n customSeries: CustomSeriesModel,\n data: SeriesData,\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n const renderItem = customSeries.get('renderItem');\n const coordSys = customSeries.coordinateSystem;\n let prepareResult = {} as ReturnType;\n\n if (coordSys) {\n if (__DEV__) {\n assert(renderItem, 'series.render is required.');\n assert(\n coordSys.prepareCustoms || prepareCustoms[coordSys.type],\n 'This coordSys does not support custom series.'\n );\n }\n\n // `coordSys.prepareCustoms` is used for external coord sys like bmap.\n prepareResult = coordSys.prepareCustoms\n ? coordSys.prepareCustoms(coordSys)\n : prepareCustoms[coordSys.type](coordSys);\n }\n\n const userAPI = defaults({\n getWidth: api.getWidth,\n getHeight: api.getHeight,\n getZr: api.getZr,\n getDevicePixelRatio: api.getDevicePixelRatio,\n value: value,\n style: style,\n ordinalRawValue: ordinalRawValue,\n styleEmphasis: styleEmphasis,\n visual: visual,\n barLayout: barLayout,\n currentSeriesIndices: currentSeriesIndices,\n font: font\n }, prepareResult.api || {}) as CustomSeriesRenderItemAPI;\n\n const userParams: CustomSeriesRenderItemParams = {\n // The life cycle of context: current round of rendering.\n // The global life cycle is probably not necessary, because\n // user can store global status by themselves.\n context: {},\n seriesId: customSeries.id,\n seriesName: customSeries.name,\n seriesIndex: customSeries.seriesIndex,\n coordSys: prepareResult.coordSys,\n dataInsideLength: data.count(),\n encode: wrapEncodeDef(customSeries.getData())\n } as CustomSeriesRenderItemParams;\n\n // If someday intending to refactor them to a class, should consider do not\n // break change: currently these attribute member are encapsulated in a closure\n // so that do not need to force user to call these method with a scope.\n\n // Do not support call `api` asynchronously without dataIndexInside input.\n let currDataIndexInside: number;\n let currItemModel: Model;\n let currItemStyleModels: Partial>> = {};\n let currLabelModels: Partial>> = {};\n\n const seriesItemStyleModels = {} as Record>;\n\n const seriesLabelModels = {} as Record>;\n\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n seriesItemStyleModels[stateName] = (customSeries as Model)\n .getModel(PATH_ITEM_STYLE[stateName]);\n seriesLabelModels[stateName] = (customSeries as Model)\n .getModel(PATH_LABEL[stateName]);\n }\n\n function getItemModel(dataIndexInside: number): Model {\n return dataIndexInside === currDataIndexInside\n ? (currItemModel || (currItemModel = data.getItemModel(dataIndexInside)))\n : data.getItemModel(dataIndexInside);\n }\n function getItemStyleModel(dataIndexInside: number, state: DisplayState) {\n return !data.hasItemOption\n ? seriesItemStyleModels[state]\n : dataIndexInside === currDataIndexInside\n ? (currItemStyleModels[state] || (\n currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])\n ))\n : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);\n }\n function getLabelModel(dataIndexInside: number, state: DisplayState) {\n return !data.hasItemOption\n ? seriesLabelModels[state]\n : dataIndexInside === currDataIndexInside\n ? (currLabelModels[state] || (\n currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])\n ))\n : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);\n }\n\n return function (dataIndexInside: number, payload: Payload): CustomElementOption {\n currDataIndexInside = dataIndexInside;\n currItemModel = null;\n currItemStyleModels = {};\n currLabelModels = {};\n\n return renderItem && renderItem(\n defaults({\n dataIndexInside: dataIndexInside,\n dataIndex: data.getRawIndex(dataIndexInside),\n // Can be used for optimization when zoom or roam.\n actionType: payload ? payload.type : null\n } as CustomSeriesRenderItemParams, userParams),\n userAPI\n );\n };\n\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function value(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n return data.getStorage().get(data.getDimensionIndex(dim || 0), dataIndexInside);\n }\n\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function ordinalRawValue(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n dim = dim || 0;\n const dimInfo = data.getDimensionInfo(dim);\n if (!dimInfo) {\n const dimIndex = data.getDimensionIndex(dim);\n return dimIndex >= 0 ? data.getStorage().get(dimIndex, dataIndexInside) : undefined;\n }\n const val = data.get(dimInfo.name, dataIndexInside);\n const ordinalMeta = dimInfo && dimInfo.ordinalMeta;\n return ordinalMeta\n ? ordinalMeta.categories[val as number]\n : val;\n }\n\n /**\n * @deprecated The orgininal intention of `api.style` is enable to set itemStyle\n * like other series. But it not necessary and not easy to give a strict definition\n * of what it return. And since echarts5 it needs to be make compat work. So\n * deprecates it since echarts5.\n *\n * By default, `visual` is applied to style (to support visualMap).\n * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,\n * it can be implemented as:\n * `api.style({stroke: api.visual('color'), fill: null})`;\n *\n * [Compat]: since ec5, RectText has been separated from its hosts el.\n * so `api.style()` will only return the style from `itemStyle` but not handle `label`\n * any more. But `series.label` config is never published in doc.\n * We still compat it in `api.style()`. But not encourage to use it and will still not\n * to pulish it to doc.\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function style(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps {\n if (__DEV__) {\n warnDeprecated('api.style', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n const style = data.getItemVisual(dataIndexInside, 'style');\n const visualColor = style && style.fill;\n const opacity = style && style.opacity;\n\n let itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle();\n visualColor != null && (itemStyle.fill = visualColor);\n opacity != null && (itemStyle.opacity = opacity);\n\n const opt = {inheritColor: isString(visualColor) ? visualColor : '#000'};\n const labelModel = getLabelModel(dataIndexInside, NORMAL);\n // Now that the feture of \"auto adjust text fill/stroke\" has been migrated to zrender\n // since ec5, we should set `isAttached` as `false` here and make compat in\n // `convertToEC4StyleForCustomSerise`.\n const textStyle = labelStyleHelper.createTextStyle(labelModel, null, opt, false, true);\n textStyle.text = labelModel.getShallow('show')\n ? retrieve2(\n customSeries.getFormattedLabel(dataIndexInside, NORMAL),\n getDefaultLabel(data, dataIndexInside)\n )\n : null;\n const textConfig = labelStyleHelper.createTextConfig(labelModel, opt, false);\n\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n\n userProps && applyUserPropsAfter(itemStyle, userProps);\n (itemStyle as LegacyStyleProps).legacy = true;\n\n return itemStyle;\n }\n\n /**\n * @deprecated The reason see `api.style()`\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function styleEmphasis(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps {\n if (__DEV__) {\n warnDeprecated('api.styleEmphasis', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n let itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();\n const labelModel = getLabelModel(dataIndexInside, EMPHASIS);\n const textStyle = labelStyleHelper.createTextStyle(labelModel, null, null, true, true);\n textStyle.text = labelModel.getShallow('show')\n ? retrieve3(\n customSeries.getFormattedLabel(dataIndexInside, EMPHASIS),\n customSeries.getFormattedLabel(dataIndexInside, NORMAL),\n getDefaultLabel(data, dataIndexInside)\n )\n : null;\n const textConfig = labelStyleHelper.createTextConfig(labelModel, null, true);\n\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n\n userProps && applyUserPropsAfter(itemStyle, userProps);\n (itemStyle as LegacyStyleProps).legacy = true;\n\n return itemStyle;\n }\n\n function applyUserPropsAfter(itemStyle: ZRStyleProps, extra: ZRStyleProps): void {\n for (const key in extra) {\n if (hasOwn(extra, key)) {\n (itemStyle as any)[key] = (extra as any)[key];\n }\n }\n }\n\n function preFetchFromExtra(extra: ZRStyleProps, itemStyle: ItemStyleProps): void {\n // A trick to retrieve those props firstly, which are used to\n // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.\n // (It's not reasonable but only for a degree of compat)\n if (extra) {\n (extra as any).textFill && ((itemStyle as any).textFill = (extra as any).textFill);\n (extra as any).textPosition && ((itemStyle as any).textPosition = (extra as any).textPosition);\n }\n }\n\n /**\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function visual(\n visualType: VT,\n dataIndexInside?: number\n ): VT extends NonStyleVisualProps ? DefaultDataVisual[VT]\n : VT extends StyleVisualProps ? PathStyleProps[typeof STYLE_VISUAL_TYPE[VT]]\n : never {\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (hasOwn(STYLE_VISUAL_TYPE, visualType)) {\n const style = data.getItemVisual(dataIndexInside, 'style');\n return style\n ? style[STYLE_VISUAL_TYPE[visualType as StyleVisualProps]] as any\n : null;\n }\n // Only support these visuals. Other visual might be inner tricky\n // for performance (like `style`), do not expose to users.\n if (hasOwn(NON_STYLE_VISUAL_PROPS, visualType)) {\n return data.getItemVisual(dataIndexInside, visualType as NonStyleVisualProps) as any;\n }\n }\n\n /**\n * @public\n * @return If not support, return undefined.\n */\n function barLayout(\n opt: Omit[0], 'axis'>\n ): ReturnType {\n if (coordSys.type === 'cartesian2d') {\n const baseAxis = coordSys.getBaseAxis() as Axis2D;\n return getLayoutOnAxis(defaults({axis: baseAxis}, opt));\n }\n }\n\n /**\n * @public\n */\n function currentSeriesIndices(): ReturnType {\n return ecModel.getCurrentSeriesIndices();\n }\n\n /**\n * @public\n * @return font string\n */\n function font(\n opt: Parameters[0]\n ): ReturnType {\n return labelStyleHelper.getFont(opt, ecModel);\n }\n}\n\nfunction wrapEncodeDef(data: SeriesData): WrapEncodeDefRet {\n const encodeDef = {} as WrapEncodeDefRet;\n each(data.dimensions, function (dimName) {\n const dimInfo = data.getDimensionInfo(dimName);\n if (!dimInfo.isExtraCoord) {\n const coordDim = dimInfo.coordDim;\n const dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];\n dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName);\n }\n });\n return encodeDef;\n}\n\nfunction createOrUpdateItem(\n api: ExtensionAPI,\n existsEl: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup,\n data: SeriesData\n): Element {\n // [Rule]\n // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.\n // (It seems that violate the \"merge\" principle, but most of users probably intuitively\n // regard \"return;\" as \"show nothing element whatever\", so make a exception to meet the\n // most cases.)\n // The rule or \"merge\" see [STRATEGY_MERGE].\n\n // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).\n if (!elOption) {\n group.remove(existsEl);\n return;\n }\n const el = doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group, true);\n el && data.setItemGraphicEl(dataIndex, el);\n\n el && enableHoverEmphasis(el, elOption.focus, elOption.blurScope);\n\n return el;\n}\n\nfunction doCreateOrUpdateEl(\n api: ExtensionAPI,\n existsEl: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup,\n isRoot: boolean\n): Element {\n\n if (__DEV__) {\n assert(elOption, 'should not have an null/undefined element setting');\n }\n\n let toBeReplacedIdx = -1;\n const oldEl = existsEl;\n if (\n existsEl && (\n doesElNeedRecreate(existsEl, elOption, seriesModel)\n // || (\n // // PENDING: even in one-to-one mapping case, if el is marked as morph,\n // // do not sure whether the el will be mapped to another el with different\n // // hierarchy in Group tree. So always recreate el rather than reuse the el.\n // morphHelper && morphHelper.isOneToOneFrom(el)\n // )\n )\n ) {\n // Should keep at the original index, otherwise \"merge by index\" will be incorrect.\n toBeReplacedIdx = indexOf(group.childrenRef(), existsEl);\n existsEl = null;\n }\n\n const isInit = !existsEl;\n let el = existsEl;\n\n if (!el) {\n el = createEl(elOption);\n if (oldEl) {\n copyElement(oldEl, el);\n }\n }\n else {\n // FIMXE:NEXT unified clearState?\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n el.clearStates();\n }\n\n // Need to set morph: false explictly to disable automatically morphing.\n if ((elOption as CustomBaseZRPathOption).morph === false) {\n (el as ECElement).disableMorphing = true;\n }\n else if ((el as ECElement).disableMorphing) {\n (el as ECElement).disableMorphing = false;\n }\n\n attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt =\n attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt =\n attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt =\n attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null;\n\n attachedTxInfoTmp.isLegacy = false;\n\n doCreateOrUpdateAttachedTx(\n el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp\n );\n\n doCreateOrUpdateClipPath(\n el, dataIndex, elOption, seriesModel, isInit\n );\n\n updateElNormal(\n api,\n el,\n dataIndex,\n elOption,\n attachedTxInfoTmp,\n seriesModel,\n isInit,\n false\n );\n\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n if (stateName !== NORMAL) {\n const otherStateOpt = retrieveStateOption(elOption, stateName);\n const otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName);\n updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp, isRoot, false);\n }\n }\n\n updateZ(el, elOption, seriesModel);\n\n if (elOption.type === 'group') {\n mergeChildren(\n api, el as graphicUtil.Group, dataIndex, elOption as CustomGroupOption, seriesModel\n );\n }\n\n if (toBeReplacedIdx >= 0) {\n group.replaceAt(el, toBeReplacedIdx);\n }\n else {\n group.add(el);\n }\n\n return el;\n}\n\n// `el` must not be null/undefined.\nfunction doesElNeedRecreate(el: Element, elOption: CustomElementOption, seriesModel: CustomSeriesModel): boolean {\n const elInner = customInnerStore(el);\n const elOptionType = elOption.type;\n const elOptionShape = (elOption as CustomBaseZRPathOption).shape;\n const elOptionStyle = (elOption as CustomDisplayableOption).style;\n return (\n // Always create new if universal transition is enabled.\n // Because we do transition after render. It needs to know what old element is. Replacement will loose it.\n seriesModel.isUniversalTransitionEnabled()\n // If `elOptionType` is `null`, follow the merge principle.\n || (elOptionType != null\n && elOptionType !== elInner.customGraphicType\n )\n || (elOptionType === 'path'\n && hasOwnPathData(elOptionShape)\n && getPathData(elOptionShape) !== elInner.customPathData\n )\n || (elOptionType === 'image'\n && hasOwn(elOptionStyle, 'image')\n && (elOptionStyle as CustomImageOption['style']).image !== elInner.customImagePath\n )\n // // FIXME test and remove this restriction?\n // || (elOptionType === 'text'\n // && hasOwn(elOptionStyle, 'text')\n // && (elOptionStyle as TextStyleProps).text !== elInner.customText\n // )\n );\n}\n\nfunction doCreateOrUpdateClipPath(\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n isInit: boolean\n): void {\n // Based on the \"merge\" principle, if no clipPath provided,\n // do nothing. The exists clip will be totally removed only if\n // `el.clipPath` is `false`. Otherwise it will be merged/replaced.\n const clipPathOpt = elOption.clipPath as CustomPathOption | false;\n if (clipPathOpt === false) {\n if (el && el.getClipPath()) {\n el.removeClipPath();\n }\n }\n else if (clipPathOpt) {\n let clipPath = el.getClipPath();\n if (clipPath && doesElNeedRecreate(\n clipPath,\n clipPathOpt,\n seriesModel\n )) {\n clipPath = null;\n }\n if (!clipPath) {\n clipPath = createEl(clipPathOpt) as graphicUtil.Path;\n if (__DEV__) {\n assert(\n isPath(clipPath),\n 'Only any type of `path` can be used in `clipPath`, rather than ' + clipPath.type + '.'\n );\n }\n el.setClipPath(clipPath);\n }\n updateElNormal(\n null, clipPath, dataIndex, clipPathOpt, null, seriesModel, isInit, false\n );\n }\n // If not define `clipPath` in option, do nothing unnecessary.\n}\n\nfunction doCreateOrUpdateAttachedTx(\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n isInit: boolean,\n attachedTxInfo: AttachedTxInfo\n): void {\n // group do not support textContent temporarily untill necessary.\n if (el.isGroup) {\n return;\n }\n\n // Normal must be called before emphasis, for `isLegacy` detection.\n processTxInfo(elOption, null, attachedTxInfo);\n processTxInfo(elOption, EMPHASIS, attachedTxInfo);\n\n // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sence.\n // So for simplicity, if \"elOption hasOwnProperty of them but be null/undefined\", we do not\n // trade them as set to null to el.\n // Especially:\n // `elOption.textContent: false` means remove textContent.\n // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.\n let txConOptNormal = attachedTxInfo.normal.conOpt as CustomElementOption | false;\n const txConOptEmphasis = attachedTxInfo.emphasis.conOpt as CustomElementOptionOnState;\n const txConOptBlur = attachedTxInfo.blur.conOpt as CustomElementOptionOnState;\n const txConOptSelect = attachedTxInfo.select.conOpt as CustomElementOptionOnState;\n\n if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) {\n let textContent = el.getTextContent();\n if (txConOptNormal === false) {\n textContent && el.removeTextContent();\n }\n else {\n txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || {type: 'text'};\n if (!textContent) {\n textContent = createEl(txConOptNormal) as graphicUtil.Text;\n el.setTextContent(textContent);\n }\n else {\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n textContent.clearStates();\n }\n\n updateElNormal(\n null, textContent, dataIndex, txConOptNormal, null, seriesModel, isInit, true\n );\n const txConStlOptNormal = txConOptNormal && (txConOptNormal as CustomDisplayableOption).style;\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n if (stateName !== NORMAL) {\n const txConOptOtherState = attachedTxInfo[stateName].conOpt as CustomElementOptionOnState;\n updateElOnState(\n stateName,\n textContent,\n txConOptOtherState,\n retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName),\n null, false, true\n );\n }\n }\n\n txConStlOptNormal ? textContent.dirty() : textContent.markRedraw();\n }\n }\n}\n\nfunction processTxInfo(\n elOption: CustomElementOption,\n state: DisplayStateNonNormal,\n attachedTxInfo: AttachedTxInfo\n): void {\n const stateOpt = !state ? elOption : retrieveStateOption(elOption, state);\n const styleOpt = !state\n ? (elOption as CustomDisplayableOption).style\n : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS);\n\n const elType = elOption.type;\n let txCfg = stateOpt ? stateOpt.textConfig : null;\n const txConOptNormal = elOption.textContent;\n let txConOpt: CustomElementOption | CustomElementOptionOnState =\n !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state);\n\n if (styleOpt && (\n // Because emphasis style has little info to detect legacy,\n // if normal is legacy, emphasis is trade as legacy.\n attachedTxInfo.isLegacy\n || isEC4CompatibleStyle(styleOpt, elType, !!txCfg, !!txConOpt)\n )) {\n attachedTxInfo.isLegacy = true;\n const convertResult = convertFromEC4CompatibleStyle(styleOpt, elType, !state);\n // Explicitly specified `textConfig` and `textContent` has higher priority than\n // the ones generated by legacy style. Otherwise if users use them and `api.style`\n // at the same time, they not both work and hardly to known why.\n if (!txCfg && convertResult.textConfig) {\n txCfg = convertResult.textConfig;\n }\n if (!txConOpt && convertResult.textContent) {\n txConOpt = convertResult.textContent;\n }\n }\n\n if (!state && txConOpt) {\n const txConOptNormal = txConOpt as CustomElementOption;\n // `textContent: {type: 'text'}`, the \"type\" is easy to be missing. So we tolerate it.\n !txConOptNormal.type && (txConOptNormal.type = 'text');\n if (__DEV__) {\n // Do not tolerate incorret type for forward compat.\n assert(\n txConOptNormal.type === 'text',\n 'textContent.type must be \"text\"'\n );\n }\n }\n\n const info = !state ? attachedTxInfo.normal : attachedTxInfo[state];\n info.cfg = txCfg;\n info.conOpt = txConOpt;\n}\n\nfunction retrieveStateOption(\n elOption: CustomElementOption, state: DisplayStateNonNormal\n): CustomElementOptionOnState {\n return !state ? elOption : elOption ? (elOption as CustomDisplayableOption)[state] : null;\n}\n\nfunction retrieveStyleOptionOnState(\n stateOptionNormal: CustomElementOption,\n stateOption: CustomElementOptionOnState,\n state: DisplayStateNonNormal\n): CustomElementOptionOnState['style'] {\n let style = stateOption && stateOption.style;\n if (style == null && state === EMPHASIS && stateOptionNormal) {\n style = (stateOptionNormal as CustomDisplayableOption).styleEmphasis;\n }\n return style;\n}\n\n\n// Usage:\n// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates that\n// the existing children will not be removed, and enables the feature that\n// update some of the props of some of the children simply by construct\n// the returned children of `renderItem` like:\n// `var children = group.children = []; children[3] = {opacity: 0.5};`\n// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children\n// by child.name. But that might be lower performance.\n// (3) If `elOption.$mergeChildren` is `false`, the existing children will be\n// replaced totally.\n// (4) If `!elOption.children`, following the \"merge\" principle, nothing will happen.\n//\n// For implementation simpleness, do not provide a direct way to remove sinlge\n// child (otherwise the total indicies of the children array have to be modified).\n// User can remove a single child by set its `ignore` as `true`.\nfunction mergeChildren(\n api: ExtensionAPI,\n el: graphicUtil.Group,\n dataIndex: number,\n elOption: CustomGroupOption,\n seriesModel: CustomSeriesModel\n): void {\n\n const newChildren = elOption.children;\n const newLen = newChildren ? newChildren.length : 0;\n const mergeChildren = elOption.$mergeChildren;\n // `diffChildrenByName` has been deprecated.\n const byName = mergeChildren === 'byName' || elOption.diffChildrenByName;\n const notMerge = mergeChildren === false;\n\n // For better performance on roam update, only enter if necessary.\n if (!newLen && !byName && !notMerge) {\n return;\n }\n\n if (byName) {\n diffGroupChildren({\n api: api,\n oldChildren: el.children() || [],\n newChildren: newChildren as CustomElementOption[] || [],\n dataIndex: dataIndex,\n seriesModel: seriesModel,\n group: el\n });\n return;\n }\n\n notMerge && el.removeAll();\n\n // Mapping children of a group simply by index, which\n // might be better performance.\n let index = 0;\n for (; index < newLen; index++) {\n newChildren[index] && doCreateOrUpdateEl(\n api,\n el.childAt(index),\n dataIndex,\n newChildren[index] as CustomElementOption,\n seriesModel,\n el,\n false\n );\n }\n for (let i = el.childCount() - 1; i >= index; i--) {\n // Do not supprot leave elements that are not mentioned in the latest\n // `renderItem` return. Otherwise users may not have a clear and simple\n // concept that how to contorl all of the elements.\n doRemoveEl(el.childAt(i), seriesModel, el);\n }\n}\n\ntype DiffGroupContext = {\n api: ExtensionAPI;\n oldChildren: Element[];\n newChildren: CustomElementOption[];\n dataIndex: number;\n seriesModel: CustomSeriesModel;\n group: graphicUtil.Group;\n};\nfunction diffGroupChildren(context: DiffGroupContext) {\n (new DataDiffer(\n context.oldChildren,\n context.newChildren,\n getKey,\n getKey,\n context\n ))\n .add(processAddUpdate)\n .update(processAddUpdate)\n .remove(processRemove)\n .execute();\n}\n\nfunction getKey(item: Element, idx: number): string {\n const name = item && item.name;\n return name != null ? name : GROUP_DIFF_PREFIX + idx;\n}\n\nfunction processAddUpdate(\n this: DataDiffer,\n newIndex: number,\n oldIndex?: number\n): void {\n const context = this.context;\n const childOption = newIndex != null ? context.newChildren[newIndex] : null;\n const child = oldIndex != null ? context.oldChildren[oldIndex] : null;\n\n doCreateOrUpdateEl(\n context.api,\n child,\n context.dataIndex,\n childOption,\n context.seriesModel,\n context.group,\n false\n );\n}\n\nfunction processRemove(this: DataDiffer, oldIndex: number): void {\n const context = this.context;\n const child = context.oldChildren[oldIndex];\n doRemoveEl(child, context.seriesModel, context.group);\n}\n\nfunction doRemoveEl(\n el: Element,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup\n): void {\n if (el) {\n const leaveToProps = customInnerStore(el).leaveToProps;\n leaveToProps\n ? graphicUtil.updateProps(el, leaveToProps, seriesModel, {\n cb: function () {\n group.remove(el);\n }\n })\n : group.remove(el);\n }\n}\n\n/**\n * @return SVG Path data.\n */\nfunction getPathData(shape: CustomSVGPathOption['shape']): string {\n // \"d\" follows the SVG convention.\n return shape && (shape.pathData || shape.d);\n}\n\nfunction hasOwnPathData(shape: CustomSVGPathOption['shape']): boolean {\n return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd'));\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CustomSeriesModel from './CustomSeries';\nimport CustomChartView from './CustomView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(CustomChartView);\n registers.registerSeriesModel(CustomSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as axisPointerModelHelper from './modelHelper';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as throttleUtil from '../../util/throttle';\nimport {makeInner} from '../../util/model';\nimport { AxisPointer } from './AxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport { VerticalAlign, HorizontalAlign, CommonAxisPointerOption } from '../../util/types';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\nimport { TextProps } from 'zrender/src/graphic/Text';\n\nconst inner = makeInner<{\n lastProp?: DisplayableProps\n labelEl?: graphic.Text\n pointerEl?: Displayable\n}, Element>();\nconst clone = zrUtil.clone;\nconst bind = zrUtil.bind;\n\ntype Icon = ReturnType;\ninterface Transform {\n x: number,\n y: number,\n rotation: number\n}\n\ntype AxisValue = CommonAxisPointerOption['value'];\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\ninterface BaseAxisPointer {\n\n /**\n * Should be implemenented by sub-class if support `handle`.\n */\n getHandleTransform(value: AxisValue, axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel): Transform\n\n /**\n * * Should be implemenented by sub-class if support `handle`.\n */\n updateHandleTransform(\n transform: Transform,\n delta: number[],\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ): Transform & {\n cursorPoint: number[]\n tooltipOption?: {\n verticalAlign?: VerticalAlign\n align?: HorizontalAlign\n }\n }\n\n}\n\nexport interface AxisPointerElementOptions {\n graphicKey: string\n\n pointer: PathProps & {\n type: 'Line' | 'Rect' | 'Circle' | 'Sector'\n }\n\n label: TextProps\n}\n/**\n * Base axis pointer class in 2D.\n */\nclass BaseAxisPointer implements AxisPointer {\n\n private _group: graphic.Group;\n\n private _lastGraphicKey: string;\n\n private _handle: Icon;\n\n private _dragging = false;\n\n private _lastValue: AxisValue;\n\n private _lastStatus: CommonAxisPointerOption['status'];\n\n private _payloadInfo: ReturnType;\n\n /**\n * If have transition animation\n */\n private _moveAnimation: boolean;\n\n private _axisModel: AxisBaseModel;\n private _axisPointerModel: AxisPointerModel;\n private _api: ExtensionAPI;\n\n /**\n * In px, arbitrary value. Do not set too small,\n * no animation is ok for most cases.\n */\n protected animationThreshold = 15;\n\n /**\n * @implement\n */\n render(axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel, api: ExtensionAPI, forceRender?: boolean) {\n const value = axisPointerModel.get('value');\n const status = axisPointerModel.get('status');\n\n // Bind them to `this`, not in closure, otherwise they will not\n // be replaced when user calling setOption in not merge mode.\n this._axisModel = axisModel;\n this._axisPointerModel = axisPointerModel;\n this._api = api;\n\n // Optimize: `render` will be called repeatly during mouse move.\n // So it is power consuming if performing `render` each time,\n // especially on mobile device.\n if (!forceRender\n && this._lastValue === value\n && this._lastStatus === status\n ) {\n return;\n }\n this._lastValue = value;\n this._lastStatus = status;\n\n let group = this._group;\n const handle = this._handle;\n\n if (!status || status === 'hide') {\n // Do not clear here, for animation better.\n group && group.hide();\n handle && handle.hide();\n return;\n }\n group && group.show();\n handle && handle.show();\n\n // Otherwise status is 'show'\n const elOption = {} as AxisPointerElementOptions;\n this.makeElOption(elOption, value, axisModel, axisPointerModel, api);\n\n // Enable change axis pointer type.\n const graphicKey = elOption.graphicKey;\n if (graphicKey !== this._lastGraphicKey) {\n this.clear(api);\n }\n this._lastGraphicKey = graphicKey;\n\n const moveAnimation = this._moveAnimation =\n this.determineAnimation(axisModel, axisPointerModel);\n\n if (!group) {\n group = this._group = new graphic.Group();\n this.createPointerEl(group, elOption, axisModel, axisPointerModel);\n this.createLabelEl(group, elOption, axisModel, axisPointerModel);\n api.getZr().add(group);\n }\n else {\n const doUpdateProps = zrUtil.curry(updateProps, axisPointerModel, moveAnimation);\n this.updatePointerEl(group, elOption, doUpdateProps);\n this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);\n }\n\n updateMandatoryProps(group, axisPointerModel, true);\n\n this._renderHandle(value);\n }\n\n /**\n * @implement\n */\n remove(api: ExtensionAPI) {\n this.clear(api);\n }\n\n /**\n * @implement\n */\n dispose(api: ExtensionAPI) {\n this.clear(api);\n }\n\n /**\n * @protected\n */\n determineAnimation(axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel): boolean {\n const animation = axisPointerModel.get('animation');\n const axis = axisModel.axis;\n const isCategoryAxis = axis.type === 'category';\n const useSnap = axisPointerModel.get('snap');\n\n // Value axis without snap always do not snap.\n if (!useSnap && !isCategoryAxis) {\n return false;\n }\n\n if (animation === 'auto' || animation == null) {\n const animationThreshold = this.animationThreshold;\n if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {\n return true;\n }\n\n // It is important to auto animation when snap used. Consider if there is\n // a dataZoom, animation will be disabled when too many points exist, while\n // it will be enabled for better visual effect when little points exist.\n if (useSnap) {\n const seriesDataCount = axisPointerModelHelper.getAxisInfo(axisModel).seriesDataCount;\n const axisExtent = axis.getExtent();\n // Approximate band width\n return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;\n }\n\n return false;\n }\n\n return animation === true;\n }\n\n /**\n * add {pointer, label, graphicKey} to elOption\n * @protected\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: AxisValue,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n // Shoule be implemenented by sub-class.\n }\n\n /**\n * @protected\n */\n createPointerEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ) {\n const pointerOption = elOption.pointer;\n if (pointerOption) {\n const pointerEl = inner(group).pointerEl = new graphic[pointerOption.type](\n clone(elOption.pointer)\n );\n group.add(pointerEl);\n }\n }\n\n /**\n * @protected\n */\n createLabelEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ) {\n if (elOption.label) {\n const labelEl = inner(group).labelEl = new graphic.Text(\n clone(elOption.label)\n );\n\n group.add(labelEl);\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n }\n\n /**\n * @protected\n */\n updatePointerEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n updateProps: (el: Element, props: PathProps) => void\n ) {\n const pointerEl = inner(group).pointerEl;\n if (pointerEl && elOption.pointer) {\n pointerEl.setStyle(elOption.pointer.style);\n updateProps(pointerEl, {shape: elOption.pointer.shape});\n }\n }\n\n /**\n * @protected\n */\n updateLabelEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n updateProps: (el: Element, props: PathProps) => void,\n axisPointerModel: AxisPointerModel\n ) {\n const labelEl = inner(group).labelEl;\n if (labelEl) {\n labelEl.setStyle(elOption.label.style);\n updateProps(labelEl, {\n // Consider text length change in vertical axis, animation should\n // be used on shape, otherwise the effect will be weird.\n // TODOTODO\n // shape: elOption.label.shape,\n x: elOption.label.x,\n y: elOption.label.y\n });\n\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n }\n\n /**\n * @private\n */\n _renderHandle(value: AxisValue) {\n if (this._dragging || !this.updateHandleTransform) {\n return;\n }\n\n const axisPointerModel = this._axisPointerModel;\n const zr = this._api.getZr();\n let handle = this._handle;\n const handleModel = axisPointerModel.getModel('handle');\n\n const status = axisPointerModel.get('status');\n if (!handleModel.get('show') || !status || status === 'hide') {\n handle && zr.remove(handle);\n this._handle = null;\n return;\n }\n\n let isInit;\n if (!this._handle) {\n isInit = true;\n handle = this._handle = graphic.createIcon(\n handleModel.get('icon'),\n {\n cursor: 'move',\n draggable: true,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n onmousedown: bind(this._onHandleDragMove, this, 0, 0),\n drift: bind(this._onHandleDragMove, this),\n ondragend: bind(this._onHandleDragEnd, this)\n }\n );\n zr.add(handle);\n }\n\n updateMandatoryProps(handle, axisPointerModel, false);\n\n // update style\n (handle as graphic.Path).setStyle(handleModel.getItemStyle(null, [\n 'color', 'borderColor', 'borderWidth', 'opacity',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'\n ]));\n\n // update position\n let handleSize = handleModel.get('size');\n if (!zrUtil.isArray(handleSize)) {\n handleSize = [handleSize, handleSize];\n }\n handle.scaleX = handleSize[0] / 2;\n handle.scaleY = handleSize[1] / 2;\n\n throttleUtil.createOrUpdate(\n this,\n '_doDispatchAxisPointer',\n handleModel.get('throttle') || 0,\n 'fixRate'\n );\n\n this._moveHandleToValue(value, isInit);\n }\n\n private _moveHandleToValue(value: AxisValue, isInit?: boolean) {\n updateProps(\n this._axisPointerModel,\n !isInit && this._moveAnimation,\n this._handle,\n getHandleTransProps(this.getHandleTransform(\n value, this._axisModel, this._axisPointerModel\n ))\n );\n }\n\n private _onHandleDragMove(dx: number, dy: number) {\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n this._dragging = true;\n\n // Persistent for throttle.\n const trans = this.updateHandleTransform(\n getHandleTransProps(handle),\n [dx, dy],\n this._axisModel,\n this._axisPointerModel\n );\n this._payloadInfo = trans;\n\n handle.stopAnimation();\n (handle as graphic.Path).attr(getHandleTransProps(trans));\n inner(handle).lastProp = null;\n\n this._doDispatchAxisPointer();\n }\n\n /**\n * Throttled method.\n */\n _doDispatchAxisPointer() {\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n const payloadInfo = this._payloadInfo;\n const axisModel = this._axisModel;\n this._api.dispatchAction({\n type: 'updateAxisPointer',\n x: payloadInfo.cursorPoint[0],\n y: payloadInfo.cursorPoint[1],\n tooltipOption: payloadInfo.tooltipOption,\n axesInfo: [{\n axisDim: axisModel.axis.dim,\n axisIndex: axisModel.componentIndex\n }]\n });\n }\n\n private _onHandleDragEnd() {\n this._dragging = false;\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n const value = this._axisPointerModel.get('value');\n // Consider snap or categroy axis, handle may be not consistent with\n // axisPointer. So move handle to align the exact value position when\n // drag ended.\n this._moveHandleToValue(value);\n\n // For the effect: tooltip will be shown when finger holding on handle\n // button, and will be hidden after finger left handle button.\n this._api.dispatchAction({\n type: 'hideTip'\n });\n }\n\n /**\n * @private\n */\n clear(api: ExtensionAPI) {\n this._lastValue = null;\n this._lastStatus = null;\n\n const zr = api.getZr();\n const group = this._group;\n const handle = this._handle;\n if (zr && group) {\n this._lastGraphicKey = null;\n group && zr.remove(group);\n handle && zr.remove(handle);\n this._group = null;\n this._handle = null;\n this._payloadInfo = null;\n }\n }\n\n /**\n * @protected\n */\n doClear() {\n // Implemented by sub-class if necessary.\n }\n\n buildLabel(xy: number[], wh: number[], xDimIndex: 0 | 1) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n }\n}\n\n\nfunction updateProps(\n animationModel: AxisPointerModel,\n moveAnimation: boolean,\n el: Element,\n props: DisplayableProps\n) {\n // Animation optimize.\n if (!propsEqual(inner(el).lastProp, props)) {\n inner(el).lastProp = props;\n moveAnimation\n ? graphic.updateProps(el, props, animationModel as Model<\n // Ignore animation property\n Pick\n >)\n : (el.stopAnimation(), el.attr(props));\n }\n}\n\nfunction propsEqual(lastProps: any, newProps: any) {\n if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {\n let equals = true;\n zrUtil.each(newProps, function (item, key) {\n equals = equals && propsEqual(lastProps[key], item);\n });\n return !!equals;\n }\n else {\n return lastProps === newProps;\n }\n}\n\nfunction updateLabelShowHide(labelEl: Element, axisPointerModel: AxisPointerModel) {\n labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();\n}\n\nfunction getHandleTransProps(trans: Transform): Transform {\n return {\n x: trans.x || 0,\n y: trans.y || 0,\n rotation: trans.rotation || 0\n };\n}\n\nfunction updateMandatoryProps(\n group: Element,\n axisPointerModel: AxisPointerModel,\n silent?: boolean\n) {\n const z = axisPointerModel.get('z');\n const zlevel = axisPointerModel.get('zlevel');\n\n group && group.traverse(function (el: Displayable) {\n if (el.type !== 'group') {\n z != null && (el.z = z);\n zlevel != null && (el.zlevel = zlevel);\n el.silent = silent;\n }\n });\n}\n\nexport default BaseAxisPointer;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as textContain from 'zrender/src/contain/text';\nimport * as formatUtil from '../../util/format';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as axisHelper from '../../coord/axisHelper';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport Axis from '../../coord/Axis';\nimport {\n ScaleDataValue, CallbackDataParams, ZRTextAlign, ZRTextVerticalAlign, ZRColor, CommonAxisPointerOption, ColorString\n} from '../../util/types';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport GlobalModel from '../../model/Global';\nimport IntervalScale from '../../scale/Interval';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { AxisPointerElementOptions } from './BaseAxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport Model from '../../model/Model';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { createTextStyle } from '../../label/labelStyle';\n\ninterface LayoutInfo {\n position: VectorArray\n rotation: number\n labelOffset?: number\n /**\n * 1 | -1\n */\n labelDirection?: number\n labelMargin?: number\n}\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nexport function buildElStyle(axisPointerModel: AxisPointerModel) {\n const axisPointerType = axisPointerModel.get('type');\n const styleModel = axisPointerModel.getModel(axisPointerType + 'Style' as 'lineStyle' | 'shadowStyle');\n let style: PathStyleProps;\n if (axisPointerType === 'line') {\n style = styleModel.getLineStyle();\n style.fill = null;\n }\n else if (axisPointerType === 'shadow') {\n style = styleModel.getAreaStyle();\n style.stroke = null;\n }\n return style;\n}\n\n/**\n * @param {Function} labelPos {align, verticalAlign, position}\n */\nexport function buildLabelElOption(\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI,\n labelPos: {\n align?: ZRTextAlign\n verticalAlign?: ZRTextVerticalAlign\n position: number[]\n }\n) {\n const value = axisPointerModel.get('value');\n const text = getValueLabel(\n value, axisModel.axis, axisModel.ecModel,\n axisPointerModel.get('seriesDataIndices'),\n {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n }\n );\n const labelModel = axisPointerModel.getModel('label');\n const paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0);\n\n const font = labelModel.getFont();\n const textRect = textContain.getBoundingRect(text, font);\n\n const position = labelPos.position;\n const width = textRect.width + paddings[1] + paddings[3];\n const height = textRect.height + paddings[0] + paddings[2];\n\n // Adjust by align.\n const align = labelPos.align;\n align === 'right' && (position[0] -= width);\n align === 'center' && (position[0] -= width / 2);\n const verticalAlign = labelPos.verticalAlign;\n verticalAlign === 'bottom' && (position[1] -= height);\n verticalAlign === 'middle' && (position[1] -= height / 2);\n\n // Not overflow ec container\n confineInContainer(position, width, height, api);\n\n let bgColor = labelModel.get('backgroundColor') as ZRColor;\n if (!bgColor || bgColor === 'auto') {\n bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']);\n }\n\n elOption.label = {\n // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},\n x: position[0],\n y: position[1],\n style: createTextStyle(labelModel, {\n text: text,\n font: font,\n fill: labelModel.getTextColor(),\n padding: paddings,\n backgroundColor: bgColor as ColorString\n }),\n // Lable should be over axisPointer.\n z2: 10\n };\n}\n\n// Do not overflow ec container\nfunction confineInContainer(position: number[], width: number, height: number, api: ExtensionAPI) {\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n position[0] = Math.min(position[0] + width, viewWidth) - width;\n position[1] = Math.min(position[1] + height, viewHeight) - height;\n position[0] = Math.max(position[0], 0);\n position[1] = Math.max(position[1], 0);\n}\n\nexport function getValueLabel(\n value: ScaleDataValue,\n axis: Axis,\n ecModel: GlobalModel,\n seriesDataIndices: CommonAxisPointerOption['seriesDataIndices'],\n opt?: {\n precision?: number | 'auto'\n formatter?: CommonAxisPointerOption['label']['formatter']\n }\n): string {\n value = axis.scale.parse(value);\n let text = (axis.scale as IntervalScale).getLabel(\n {\n value\n }, {\n // If `precision` is set, width can be fixed (like '12.00500'), which\n // helps to debounce when when moving label.\n precision: opt.precision\n }\n );\n const formatter = opt.formatter;\n\n if (formatter) {\n const params = {\n value: axisHelper.getAxisRawValue(axis, {value}),\n axisDimension: axis.dim,\n axisIndex: (axis as Axis2D).index, // Only Carteian Axis has index\n seriesData: [] as CallbackDataParams[]\n };\n zrUtil.each(seriesDataIndices, function (idxItem) {\n const series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n const dataIndex = idxItem.dataIndexInside;\n const dataParams = series && series.getDataParams(dataIndex);\n dataParams && params.seriesData.push(dataParams);\n });\n\n if (zrUtil.isString(formatter)) {\n text = formatter.replace('{value}', text);\n }\n else if (zrUtil.isFunction(formatter)) {\n text = formatter(params);\n }\n }\n\n return text;\n}\n\nexport function getTransformedPosition(\n axis: Axis,\n value: ScaleDataValue,\n layoutInfo: LayoutInfo\n): number[] {\n const transform = matrix.create();\n matrix.rotate(transform, transform, layoutInfo.rotation);\n matrix.translate(transform, transform, layoutInfo.position);\n\n return graphic.applyTransform([\n axis.dataToCoord(value),\n (layoutInfo.labelOffset || 0)\n + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)\n ], transform);\n}\n\nexport function buildCartesianSingleLabelElOption(\n value: ScaleDataValue,\n elOption: AxisPointerElementOptions,\n layoutInfo: LayoutInfo,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n) {\n // @ts-ignore\n const textLayout = AxisBuilder.innerTextLayout(\n layoutInfo.rotation, 0, layoutInfo.labelDirection\n );\n layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);\n buildLabelElOption(elOption, axisModel, axisPointerModel, api, {\n position: getTransformedPosition(axisModel.axis, value, layoutInfo),\n align: textLayout.textAlign,\n verticalAlign: textLayout.textVerticalAlign\n });\n}\n\nexport function makeLineShape(p1: number[], p2: number[], xDimIndex?: number) {\n xDimIndex = xDimIndex || 0;\n return {\n x1: p1[xDimIndex],\n y1: p1[1 - xDimIndex],\n x2: p2[xDimIndex],\n y2: p2[1 - xDimIndex]\n };\n}\n\nexport function makeRectShape(xy: number[], wh: number[], xDimIndex?: number) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n}\n\nexport function makeSectorShape(\n cx: number,\n cy: number,\n r0: number,\n r: number,\n startAngle: number,\n endAngle: number\n) {\n return {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: true\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, {AxisPointerElementOptions} from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ScaleDataValue, VerticalAlign, HorizontalAlign, CommonAxisPointerOption } from '../../util/types';\nimport Grid from '../../coord/cartesian/Grid';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass CartesianAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: ScaleDataValue,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n const grid = axis.grid;\n const axisPointerType = axisPointerModel.get('type');\n const otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n const pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));\n\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, pixelValue, otherExtent\n );\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const layoutInfo = cartesianAxisHelper.layout(grid.model, axisModel);\n viewHelper.buildCartesianSingleLabelElOption(\n // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api\n );\n }\n\n /**\n * @override\n */\n getHandleTransform(\n value: ScaleDataValue,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const layoutInfo = cartesianAxisHelper.layout(axisModel.axis.grid.model, axisModel, {\n labelInside: false\n });\n // @ts-ignore\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n const pos = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: pos[0],\n y: pos[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n }\n\n /**\n * @override\n */\n updateHandleTransform(\n transform: {\n x: number, y: number,\n rotation: number\n },\n delta: number[],\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const axis = axisModel.axis;\n const grid = axis.grid;\n const axisExtent = axis.getGlobalExtent(true);\n const otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n const dimIndex = axis.dim === 'x' ? 0 : 1;\n\n const currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n\n const cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n const cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n\n // Make tooltip do not overlap axisPointer and in the middle of the grid.\n const tooltipOptions: {\n verticalAlign?: VerticalAlign\n align?: HorizontalAlign\n }[] = [\n {verticalAlign: 'middle'},\n {align: 'center'}\n ];\n\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: tooltipOptions[dimIndex]\n };\n }\n}\n\nfunction getCartesian(grid: Grid, axis: Axis2D) {\n const opt = {} as {\n xAxisIndex?: number\n yAxisIndex?: number\n };\n opt[axis.dim + 'AxisIndex' as 'xAxisIndex' | 'yAxisIndex'] = axis.index;\n return grid.getCartesian(opt);\n}\n\nconst pointerShapeBuilder = {\n\n line: function (axis: Axis2D, pixelValue: number, otherExtent: number[]): PathProps & { type: 'Line'} {\n const targetShape = viewHelper.makeLineShape(\n [pixelValue, otherExtent[0]],\n [pixelValue, otherExtent[1]],\n getAxisDimIndex(axis)\n );\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n\n shadow: function (axis: Axis2D, pixelValue: number, otherExtent: number[]): PathProps & { type: 'Rect'} {\n const bandWidth = Math.max(1, axis.getBandWidth());\n const span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape(\n [pixelValue - bandWidth / 2, otherExtent[0]],\n [bandWidth, span],\n getAxisDimIndex(axis)\n )\n };\n }\n};\n\nfunction getAxisDimIndex(axis: Axis2D) {\n return axis.dim === 'x' ? 0 : 1;\n}\n\nexport default CartesianAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n ScaleDataValue,\n CommonAxisPointerOption\n} from '../../util/types';\n\ninterface MapperParamAxisInfo {\n axisIndex: number\n axisName: string\n axisId: string\n axisDim: string\n}\n\ninterface AxisPointerLink {\n xAxisIndex?: number[] | 'all'\n yAxisIndex?: number[] | 'all'\n xAxisId?: string[]\n yAxisId?: string[]\n xAxisName?: string[] | string\n yAxisName?: string[] | string\n\n radiusAxisIndex?: number[] | 'all'\n angleAxisIndex?: number[] | 'all'\n radiusAxisId?: string[]\n angleAxisId?: string[]\n radiusAxisName?: string[] | string\n angleAxisName?: string[] | string\n\n singleAxisIndex?: number[] | 'all'\n singleAxisId?: string[]\n singleAxisName?: string[] | string\n\n mapper?(\n sourceVal: ScaleDataValue,\n sourceAxisInfo: MapperParamAxisInfo,\n targetAxisInfo: MapperParamAxisInfo\n ): CommonAxisPointerOption['value'] // TODO: TYPE Should return numeric value or category value?\n}\n\n// TODO: TYPE AxisPointerOption for each axis\nexport interface AxisPointerOption extends ComponentOption, Omit {\n mainType?: 'axisPointer'\n\n type?: 'line' | 'shadow' | 'cross' | 'none'\n\n link?: AxisPointerLink[]\n}\n\n\nclass AxisPointerModel extends ComponentModel {\n\n static type = 'axisPointer' as const;\n type = AxisPointerModel.type;\n\n // Will be injected and read in modelHelper and axisTrigger\n // No need to care about it.\n coordSysAxesInfo: unknown;\n\n static defaultOption: AxisPointerOption = {\n // 'auto' means that show when triggered by tooltip or handle.\n show: 'auto',\n\n zlevel: 0,\n z: 50,\n\n type: 'line', // 'line' 'shadow' 'cross' 'none'.\n // axispointer triggered by tootip determine snap automatically,\n // see `modelHelper`.\n snap: false,\n triggerTooltip: true,\n\n value: null,\n status: null, // Init value depends on whether handle is used.\n\n link: [],\n\n // Do not set 'auto' here, otherwise global animation: false\n // will not effect at this axispointer.\n animation: null,\n animationDurationUpdate: 200,\n\n lineStyle: {\n color: '#B9BEC9',\n width: 1,\n type: 'dashed'\n },\n\n shadowStyle: {\n color: 'rgba(210,219,238,0.2)'\n },\n\n label: {\n show: true,\n formatter: null, // string | Function\n precision: 'auto', // Or a number like 0, 1, 2 ...\n margin: 3,\n color: '#fff',\n padding: [5, 7, 5, 7],\n backgroundColor: 'auto', // default: axis line color\n borderColor: null,\n borderWidth: 0,\n borderRadius: 3\n },\n\n handle: {\n show: false,\n // eslint-disable-next-line\n icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z', // jshint ignore:line\n size: 45,\n // handle margin is from symbol center to axis, which is stable when circular move.\n margin: 50,\n // color: '#1b8bbd'\n // color: '#2f4554'\n color: '#333',\n shadowBlur: 3,\n shadowColor: '#aaa',\n shadowOffsetX: 0,\n shadowOffsetY: 2,\n\n // For mobile performance\n throttle: 40\n }\n };\n}\n\nexport default AxisPointerModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport {makeInner} from '../../util/model';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ZRElementEvent } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\n\ntype DispatchActionMethod = ExtensionAPI['dispatchAction'];\n\ntype Handler = (\n currTrigger: 'click' | 'mousemove' | 'leave',\n event: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) => void;\n\ninterface Record {\n handler: Handler\n}\n\ninterface InnerStore {\n initialized: boolean\n records: Dictionary\n}\n\ninterface ShowTipPayload {\n type: 'showTip'\n dispatchAction: DispatchActionMethod\n}\n\ninterface HideTipPayload {\n type: 'hideTip'\n dispatchAction: DispatchActionMethod\n}\ninterface Pendings {\n showTip: ShowTipPayload[]\n hideTip: HideTipPayload[]\n}\n\nconst inner = makeInner();\nconst each = zrUtil.each;\n\n/**\n * @param {string} key\n * @param {module:echarts/ExtensionAPI} api\n * @param {Function} handler\n * param: {string} currTrigger\n * param: {Array.} point\n */\nexport function register(key: string, api: ExtensionAPI, handler?: Handler) {\n if (env.node) {\n return;\n }\n\n const zr = api.getZr();\n inner(zr).records || (inner(zr).records = {});\n\n initGlobalListeners(zr, api);\n\n const record = inner(zr).records[key] || (inner(zr).records[key] = {} as Record);\n record.handler = handler;\n}\n\nfunction initGlobalListeners(zr: ZRenderType, api?: ExtensionAPI) {\n if (inner(zr).initialized) {\n return;\n }\n\n inner(zr).initialized = true;\n\n useHandler('click', zrUtil.curry(doEnter, 'click'));\n useHandler('mousemove', zrUtil.curry(doEnter, 'mousemove'));\n // useHandler('mouseout', onLeave);\n useHandler('globalout', onLeave);\n\n function useHandler(\n eventType: string,\n cb: (record: Record, e: ZRElementEvent, dispatchAction: DispatchActionMethod) => void\n ) {\n zr.on(eventType, function (e: ZRElementEvent) {\n const dis = makeDispatchAction(api);\n\n each(inner(zr).records, function (record) {\n record && cb(record, e, dis.dispatchAction);\n });\n\n dispatchTooltipFinally(dis.pendings, api);\n });\n }\n}\n\nfunction dispatchTooltipFinally(pendings: Pendings, api: ExtensionAPI) {\n const showLen = pendings.showTip.length;\n const hideLen = pendings.hideTip.length;\n\n let actuallyPayload;\n if (showLen) {\n actuallyPayload = pendings.showTip[showLen - 1];\n }\n else if (hideLen) {\n actuallyPayload = pendings.hideTip[hideLen - 1];\n }\n if (actuallyPayload) {\n actuallyPayload.dispatchAction = null;\n api.dispatchAction(actuallyPayload);\n }\n}\n\nfunction onLeave(\n record: Record,\n e: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) {\n record.handler('leave', null, dispatchAction);\n}\n\nfunction doEnter(\n currTrigger: 'click' | 'mousemove' | 'leave',\n record: Record,\n e: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) {\n record.handler(currTrigger, e, dispatchAction);\n}\n\nfunction makeDispatchAction(api: ExtensionAPI) {\n const pendings: Pendings = {\n showTip: [],\n hideTip: []\n };\n // FIXME\n // better approach?\n // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,\n // which may be conflict, (axisPointer call showTip but tooltip call hideTip);\n // So we have to add \"final stage\" to merge those dispatched actions.\n const dispatchAction = function (payload: ShowTipPayload | HideTipPayload) {\n const pendingList = pendings[payload.type];\n if (pendingList) {\n (pendingList as ShowTipPayload[]).push(payload as ShowTipPayload);\n }\n else {\n payload.dispatchAction = dispatchAction;\n api.dispatchAction(payload);\n }\n };\n\n return {\n dispatchAction: dispatchAction,\n pendings: pendings\n };\n}\n\nexport function unregister(key: string, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n const zr = api.getZr();\n const record = (inner(zr).records || {})[key];\n if (record) {\n inner(zr).records[key] = null;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as globalListener from './globalListener';\nimport ComponentView from '../../view/Component';\nimport AxisPointerModel from './AxisPointerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TooltipModel from '../tooltip/TooltipModel';\n\nclass AxisPointerView extends ComponentView {\n static type = 'axisPointer' as const;\n type = AxisPointerView.type;\n\n render(globalAxisPointerModel: AxisPointerModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const globalTooltipModel = ecModel.getComponent('tooltip') as TooltipModel;\n const triggerOn = globalAxisPointerModel.get('triggerOn')\n || (globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click');\n\n // Register global listener in AxisPointerView to enable\n // AxisPointerView to be independent to Tooltip.\n globalListener.register(\n 'axisPointer',\n api,\n function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none'\n && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)\n ) {\n dispatchAction({\n type: 'updateAxisPointer',\n currTrigger: currTrigger,\n x: e && e.offsetX,\n y: e && e.offsetY\n });\n }\n }\n );\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n globalListener.unregister('axisPointer', api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n globalListener.unregister('axisPointer', api);\n }\n}\n\nexport default AxisPointerView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport GlobalModel from '../../model/Global';\nimport Element from 'zrender/src/Element';\nimport { Payload } from '../../util/types';\n\n/**\n * @param finder contains {seriesIndex, dataIndex, dataIndexInside}\n * @param ecModel\n * @return {point: [x, y], el: ...} point Will not be null.\n */\nexport default function findPointFromSeries(finder: {\n seriesIndex?: number\n dataIndex?: number | number[]\n dataIndexInside?: number | number[]\n name?: string | string[]\n isStacked?: boolean\n}, ecModel: GlobalModel): {\n point: number[]\n el?: Element\n} {\n let point: number[] = [];\n const seriesIndex = finder.seriesIndex;\n let seriesModel;\n if (seriesIndex == null || !(\n seriesModel = ecModel.getSeriesByIndex(seriesIndex)\n )) {\n return {\n point: []\n };\n }\n\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, finder as Payload);\n if (dataIndex == null || dataIndex < 0 || zrUtil.isArray(dataIndex)) {\n return {point: []};\n }\n\n const el = data.getItemGraphicEl(dataIndex);\n const coordSys = seriesModel.coordinateSystem;\n\n if (seriesModel.getTooltipPosition) {\n point = seriesModel.getTooltipPosition(dataIndex) || [];\n }\n else if (coordSys && coordSys.dataToPoint) {\n if (finder.isStacked) {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis as any);\n const valueAxisDim = valueAxis.dim;\n const baseAxisDim = baseAxis.dim;\n const baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n const baseDim = data.mapDimension(baseAxisDim);\n const stackedData = [];\n stackedData[baseDataOffset] = data.get(baseDim, dataIndex);\n stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex);\n point = coordSys.dataToPoint(stackedData) || [];\n }\n else {\n point = coordSys.dataToPoint(\n data.getValues(\n zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex\n )\n ) || [];\n }\n }\n else if (el) {\n // Use graphic bounding rect\n const rect = el.getBoundingRect().clone();\n rect.applyTransform(el.transform);\n point = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n\n return {point: point, el: el};\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {makeInner, ModelFinderObject} from '../../util/model';\nimport * as modelHelper from './modelHelper';\nimport findPointFromSeries from './findPointFromSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary, Payload, CommonAxisPointerOption, HighlightPayload, DownplayPayload } from '../../util/types';\nimport AxisPointerModel, { AxisPointerOption } from './AxisPointerModel';\nimport { each, curry, bind, extend, Curry1 } from 'zrender/src/core/util';\nimport { ZRenderType } from 'zrender/src/zrender';\n\nconst inner = makeInner<{\n axisPointerLastHighlights: Dictionary\n}, ZRenderType>();\n\ntype AxisValue = CommonAxisPointerOption['value'];\n\ninterface DataIndex {\n seriesIndex: number\n dataIndex: number\n dataIndexInside: number\n}\n\ntype BatchItem = DataIndex;\n\nexport interface DataByAxis {\n // TODO: TYPE Value type\n value: string | number\n axisIndex: number\n axisDim: string\n axisType: string\n axisId: string\n\n seriesDataIndices: DataIndex[]\n\n valueLabelOpt: {\n precision: AxisPointerOption['label']['precision']\n formatter: AxisPointerOption['label']['formatter']\n }\n}\nexport interface DataByCoordSys {\n coordSysId: string\n coordSysIndex: number\n coordSysType: string\n coordSysMainType: string\n dataByAxis: DataByAxis[]\n}\ninterface DataByCoordSysCollection {\n list: DataByCoordSys[]\n map: Dictionary\n}\n\ntype CollectedCoordInfo = ReturnType;\ntype CollectedAxisInfo = CollectedCoordInfo['axesInfo'][string];\n\ninterface AxisTriggerPayload extends Payload {\n currTrigger?: 'click' | 'mousemove' | 'leave'\n /**\n * x and y, which are mandatory, specify a point to trigger axisPointer and tooltip.\n */\n x?: number\n /**\n * x and y, which are mandatory, specify a point to trigger axisPointer and tooltip.\n */\n y?: number\n /**\n * finder, optional, restrict target axes.\n */\n seriesIndex?: number\n dataIndex: number\n\n axesInfo?: {\n // 'x'|'y'|'angle'\n axisDim?: string\n axisIndex?: number\n value?: AxisValue\n }[]\n\n dispatchAction: ExtensionAPI['dispatchAction']\n}\n\ntype ShowValueMap = Dictionary<{\n value: AxisValue\n payloadBatch: BatchItem[]\n}>;\n\n/**\n * Basic logic: check all axis, if they do not demand show/highlight,\n * then hide/downplay them.\n *\n * @return content of event obj for echarts.connect.\n */\nexport default function axisTrigger(\n payload: AxisTriggerPayload,\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n const currTrigger = payload.currTrigger;\n let point = [payload.x, payload.y];\n const finder = payload;\n const dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api);\n const coordSysAxesInfo = (ecModel.getComponent('axisPointer') as AxisPointerModel)\n .coordSysAxesInfo as CollectedCoordInfo;\n\n // Pending\n // See #6121. But we are not able to reproduce it yet.\n if (!coordSysAxesInfo) {\n return;\n }\n\n if (illegalPoint(point)) {\n // Used in the default behavior of `connection`: use the sample seriesIndex\n // and dataIndex. And also used in the tooltipView trigger.\n point = findPointFromSeries({\n seriesIndex: finder.seriesIndex,\n // Do not use dataIndexInside from other ec instance.\n // FIXME: auto detect it?\n dataIndex: finder.dataIndex\n }, ecModel).point;\n }\n const isIllegalPoint = illegalPoint(point);\n\n // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).\n // Notice: In this case, it is difficult to get the `point` (which is necessary to show\n // tooltip, so if point is not given, we just use the point found by sample seriesIndex\n // and dataIndex.\n const inputAxesInfo = finder.axesInfo;\n\n const axesInfo = coordSysAxesInfo.axesInfo;\n const shouldHide = currTrigger === 'leave' || illegalPoint(point);\n const outputPayload = {} as AxisTriggerPayload;\n\n const showValueMap: ShowValueMap = {};\n const dataByCoordSys: DataByCoordSysCollection = {\n list: [],\n map: {}\n };\n const updaters = {\n showPointer: curry(showPointer, showValueMap),\n showTooltip: curry(showTooltip, dataByCoordSys)\n };\n\n // Process for triggered axes.\n each(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {\n // If a point given, it must be contained by the coordinate system.\n const coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);\n\n each(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {\n const axis = axisInfo.axis;\n const inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo);\n // If no inputAxesInfo, no axis is restricted.\n if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {\n let val = inputAxisInfo && inputAxisInfo.value;\n if (val == null && !isIllegalPoint) {\n val = axis.pointToData(point);\n }\n val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload);\n }\n });\n });\n\n // Process for linked axes.\n const linkTriggers: Dictionary = {};\n each(axesInfo, function (tarAxisInfo, tarKey) {\n const linkGroup = tarAxisInfo.linkGroup;\n\n // If axis has been triggered in the previous stage, it should not be triggered by link.\n if (linkGroup && !showValueMap[tarKey]) {\n each(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {\n const srcValItem = showValueMap[srcKey];\n // If srcValItem exist, source axis is triggered, so link to target axis.\n if (srcAxisInfo !== tarAxisInfo && srcValItem) {\n let val = srcValItem.value;\n linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(\n val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo)\n )));\n linkTriggers[tarAxisInfo.key] = val;\n }\n });\n }\n });\n each(linkTriggers, function (val, tarKey) {\n processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);\n });\n\n updateModelActually(showValueMap, axesInfo, outputPayload);\n dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);\n dispatchHighDownActually(axesInfo, dispatchAction, api);\n\n return outputPayload;\n}\n\nfunction processOnAxis(\n axisInfo: CollectedCoordInfo['axesInfo'][string],\n newValue: AxisValue,\n updaters: {\n showPointer: Curry1\n showTooltip: Curry1\n },\n noSnap: boolean,\n outputFinder: ModelFinderObject\n) {\n const axis = axisInfo.axis;\n\n if (axis.scale.isBlank() || !axis.containData(newValue)) {\n return;\n }\n\n if (!axisInfo.involveSeries) {\n updaters.showPointer(axisInfo, newValue);\n return;\n }\n\n // Heavy calculation. So put it after axis.containData checking.\n const payloadInfo = buildPayloadsBySeries(newValue, axisInfo);\n const payloadBatch = payloadInfo.payloadBatch;\n const snapToValue = payloadInfo.snapToValue;\n\n // Fill content of event obj for echarts.connect.\n // By default use the first involved series data as a sample to connect.\n if (payloadBatch[0] && outputFinder.seriesIndex == null) {\n extend(outputFinder, payloadBatch[0]);\n }\n\n // If no linkSource input, this process is for collecting link\n // target, where snap should not be accepted.\n if (!noSnap && axisInfo.snap) {\n if (axis.containData(snapToValue) && snapToValue != null) {\n newValue = snapToValue;\n }\n }\n\n updaters.showPointer(axisInfo, newValue, payloadBatch);\n // Tooltip should always be snapToValue, otherwise there will be\n // incorrect \"axis value ~ series value\" mapping displayed in tooltip.\n updaters.showTooltip(axisInfo, payloadInfo, snapToValue);\n}\n\nfunction buildPayloadsBySeries(value: AxisValue, axisInfo: CollectedAxisInfo) {\n const axis = axisInfo.axis;\n const dim = axis.dim;\n let snapToValue = value;\n const payloadBatch: BatchItem[] = [];\n let minDist = Number.MAX_VALUE;\n let minDiff = -1;\n\n each(axisInfo.seriesModels, function (series, idx) {\n const dataDim = series.getData().mapDimensionsAll(dim);\n let seriesNestestValue;\n let dataIndices;\n\n if (series.getAxisTooltipData) {\n const result = series.getAxisTooltipData(dataDim, value, axis);\n dataIndices = result.dataIndices;\n seriesNestestValue = result.nestestValue;\n }\n else {\n dataIndices = series.getData().indicesOfNearest(\n dataDim[0],\n value as number,\n // Add a threshold to avoid find the wrong dataIndex\n // when data length is not same.\n // false,\n axis.type === 'category' ? 0.5 : null\n );\n if (!dataIndices.length) {\n return;\n }\n seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);\n }\n\n if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {\n return;\n }\n\n const diff = value as number - seriesNestestValue;\n const dist = Math.abs(diff);\n // Consider category case\n if (dist <= minDist) {\n if (dist < minDist || (diff >= 0 && minDiff < 0)) {\n minDist = dist;\n minDiff = diff;\n snapToValue = seriesNestestValue;\n payloadBatch.length = 0;\n }\n each(dataIndices, function (dataIndex) {\n payloadBatch.push({\n seriesIndex: series.seriesIndex,\n dataIndexInside: dataIndex,\n dataIndex: series.getData().getRawIndex(dataIndex)\n });\n });\n }\n });\n\n return {\n payloadBatch: payloadBatch,\n snapToValue: snapToValue\n };\n}\n\nfunction showPointer(\n showValueMap: ShowValueMap,\n axisInfo: CollectedAxisInfo,\n value: AxisValue,\n payloadBatch?: BatchItem[]\n) {\n showValueMap[axisInfo.key] = {\n value: value,\n payloadBatch: payloadBatch\n };\n}\n\nfunction showTooltip(\n dataByCoordSys: DataByCoordSysCollection,\n axisInfo: CollectedCoordInfo['axesInfo'][string],\n payloadInfo: { payloadBatch: BatchItem[] },\n value: AxisValue\n) {\n const payloadBatch = payloadInfo.payloadBatch;\n const axis = axisInfo.axis;\n const axisModel = axis.model;\n const axisPointerModel = axisInfo.axisPointerModel;\n\n // If no data, do not create anything in dataByCoordSys,\n // whose length will be used to judge whether dispatch action.\n if (!axisInfo.triggerTooltip || !payloadBatch.length) {\n return;\n }\n\n const coordSysModel = axisInfo.coordSys.model;\n const coordSysKey = modelHelper.makeKey(coordSysModel);\n let coordSysItem = dataByCoordSys.map[coordSysKey];\n if (!coordSysItem) {\n coordSysItem = dataByCoordSys.map[coordSysKey] = {\n coordSysId: coordSysModel.id,\n coordSysIndex: coordSysModel.componentIndex,\n coordSysType: coordSysModel.type,\n coordSysMainType: coordSysModel.mainType,\n dataByAxis: []\n };\n dataByCoordSys.list.push(coordSysItem);\n }\n\n coordSysItem.dataByAxis.push({\n axisDim: axis.dim,\n axisIndex: axisModel.componentIndex,\n axisType: axisModel.type,\n axisId: axisModel.id,\n value: value as number,\n // Caustion: viewHelper.getValueLabel is actually on \"view stage\", which\n // depends that all models have been updated. So it should not be performed\n // here. Considering axisPointerModel used here is volatile, which is hard\n // to be retrieve in TooltipView, we prepare parameters here.\n valueLabelOpt: {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n },\n seriesDataIndices: payloadBatch.slice()\n });\n}\n\nfunction updateModelActually(\n showValueMap: ShowValueMap,\n axesInfo: Dictionary,\n outputPayload: AxisTriggerPayload\n) {\n const outputAxesInfo: AxisTriggerPayload['axesInfo'] = outputPayload.axesInfo = [];\n // Basic logic: If no 'show' required, 'hide' this axisPointer.\n each(axesInfo, function (axisInfo, key) {\n const option = axisInfo.axisPointerModel.option;\n const valItem = showValueMap[key];\n\n if (valItem) {\n !axisInfo.useHandle && (option.status = 'show');\n option.value = valItem.value;\n // For label formatter param and highlight.\n option.seriesDataIndices = (valItem.payloadBatch || []).slice();\n }\n // When always show (e.g., handle used), remain\n // original value and status.\n else {\n // If hide, value still need to be set, consider\n // click legend to toggle axis blank.\n !axisInfo.useHandle && (option.status = 'hide');\n }\n\n // If status is 'hide', should be no info in payload.\n option.status === 'show' && outputAxesInfo.push({\n axisDim: axisInfo.axis.dim,\n axisIndex: axisInfo.axis.model.componentIndex,\n value: option.value\n });\n });\n}\n\nfunction dispatchTooltipActually(\n dataByCoordSys: DataByCoordSysCollection,\n point: number[],\n payload: AxisTriggerPayload,\n dispatchAction: ExtensionAPI['dispatchAction']\n) {\n // Basic logic: If no showTip required, hideTip will be dispatched.\n if (illegalPoint(point) || !dataByCoordSys.list.length) {\n dispatchAction({type: 'hideTip'});\n return;\n }\n\n // In most case only one axis (or event one series is used). It is\n // convinient to fetch payload.seriesIndex and payload.dataIndex\n // dirtectly. So put the first seriesIndex and dataIndex of the first\n // axis on the payload.\n const sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {} as DataIndex;\n\n dispatchAction({\n type: 'showTip',\n escapeConnect: true,\n x: point[0],\n y: point[1],\n tooltipOption: payload.tooltipOption,\n position: payload.position,\n dataIndexInside: sampleItem.dataIndexInside,\n dataIndex: sampleItem.dataIndex,\n seriesIndex: sampleItem.seriesIndex,\n dataByCoordSys: dataByCoordSys.list\n });\n}\n\nfunction dispatchHighDownActually(\n axesInfo: Dictionary,\n dispatchAction: ExtensionAPI['dispatchAction'],\n api: ExtensionAPI\n) {\n // FIXME\n // highlight status modification shoule be a stage of main process?\n // (Consider confilct (e.g., legend and axisPointer) and setOption)\n\n const zr = api.getZr();\n const highDownKey = 'axisPointerLastHighlights' as const;\n const lastHighlights = inner(zr)[highDownKey] || {};\n const newHighlights: Dictionary = inner(zr)[highDownKey] = {};\n\n // Update highlight/downplay status according to axisPointer model.\n // Build hash map and remove duplicate incidentally.\n each(axesInfo, function (axisInfo, key) {\n const option = axisInfo.axisPointerModel.option;\n option.status === 'show' && each(option.seriesDataIndices, function (batchItem) {\n const key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;\n newHighlights[key] = batchItem;\n });\n });\n\n // Diff.\n const toHighlight: BatchItem[] = [];\n const toDownplay: BatchItem[] = [];\n each(lastHighlights, function (batchItem, key) {\n !newHighlights[key] && toDownplay.push(batchItem);\n });\n each(newHighlights, function (batchItem, key) {\n !lastHighlights[key] && toHighlight.push(batchItem);\n });\n\n toDownplay.length && api.dispatchAction({\n type: 'downplay',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toDownplay\n } as DownplayPayload);\n toHighlight.length && api.dispatchAction({\n type: 'highlight',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toHighlight\n } as HighlightPayload);\n}\n\nfunction findInputAxisInfo(\n inputAxesInfo: AxisTriggerPayload['axesInfo'],\n axisInfo: CollectedAxisInfo\n) {\n for (let i = 0; i < (inputAxesInfo || []).length; i++) {\n const inputAxisInfo = inputAxesInfo[i];\n if (axisInfo.axis.dim === inputAxisInfo.axisDim\n && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex\n ) {\n return inputAxisInfo;\n }\n }\n}\n\nfunction makeMapperParam(axisInfo: CollectedAxisInfo) {\n const axisModel = axisInfo.axis.model;\n const item = {} as {\n axisDim: string\n axisIndex: number\n axisId: string\n axisName: string\n // TODO `dim`AxisIndex, `dim`AxisName, `dim`AxisId?\n };\n const dim = item.axisDim = axisInfo.axis.dim;\n item.axisIndex = (item as any)[dim + 'AxisIndex'] = axisModel.componentIndex;\n item.axisName = (item as any)[dim + 'AxisName'] = axisModel.name;\n item.axisId = (item as any)[dim + 'AxisId'] = axisModel.id;\n return item;\n}\n\nfunction illegalPoint(point?: number[]) {\n return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport CartesianAxisPointer from './CartesianAxisPointer';\nimport AxisPointerModel from './AxisPointerModel';\nimport AxisPointerView from './AxisPointerView';\nimport { isArray } from 'zrender/src/core/util';\nimport { collect } from './modelHelper';\nimport axisTrigger from './axisTrigger';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n // CartesianAxisPointer is not supposed to be required here. But consider\n // echarts.simple.js and online build tooltip, which only require gridSimple,\n // CartesianAxisPointer should be able to required somewhere.\n AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer);\n\n registers.registerComponentModel(AxisPointerModel);\n registers.registerComponentView(AxisPointerView);\n\n registers.registerPreprocessor(function (option) {\n // Always has a global axisPointerModel for default setting.\n if (option) {\n (!option.axisPointer || (option.axisPointer as []).length === 0)\n && (option.axisPointer = {});\n\n const link = (option.axisPointer as any).link;\n // Normalize to array to avoid object mergin. But if link\n // is not set, remain null/undefined, otherwise it will\n // override existent link setting.\n if (link && !isArray(link)) {\n (option.axisPointer as any).link = [link];\n }\n }\n });\n\n // This process should proformed after coordinate systems created\n // and series data processed. So put it on statistic processing stage.\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {\n // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n // allAxesInfo should be updated when setOption performed.\n (ecModel.getComponent('axisPointer') as AxisPointerModel).coordSysAxesInfo =\n collect(ecModel, api);\n });\n\n // Broadcast to all views.\n registers.registerAction({\n type: 'updateAxisPointer',\n event: 'updateAxisPointer',\n update: ':updateAxisPointer'\n }, axisTrigger);\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {install as installSimple} from './installSimple';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installSimple);\n use(installAxisPointer);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport * as graphic from '../../util/graphic';\nimport * as viewHelper from './viewHelper';\nimport * as matrix from 'zrender/src/core/matrix';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport {\n OptionDataValue,\n ScaleDataValue,\n CommonAxisPointerOption,\n ZRTextAlign,\n ZRTextVerticalAlign\n} from '../../util/types';\nimport { PolarAxisModel } from '../../coord/polar/AxisModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Polar from '../../coord/polar/Polar';\nimport AngleAxis from '../../coord/polar/AngleAxis';\nimport RadiusAxis from '../../coord/polar/RadiusAxis';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass PolarAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: OptionDataValue,\n axisModel: PolarAxisModel,\n axisPointerModel: Model,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n\n if (axis.dim === 'angle') {\n this.animationThreshold = Math.PI / 18;\n }\n\n const polar = axis.polar;\n const otherAxis = polar.getOtherAxis(axis);\n const otherExtent = otherAxis.getExtent();\n\n const coordValue = axis.dataToCoord(value);\n\n const axisPointerType = axisPointerModel.get('type');\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, polar, coordValue, otherExtent\n );\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const labelMargin = axisPointerModel.get(['label', 'margin']);\n const labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);\n viewHelper.buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);\n }\n\n // Do not support handle, utill any user requires it.\n\n};\n\nfunction getLabelPosition(\n value: ScaleDataValue,\n axisModel: PolarAxisModel,\n axisPointerModel: AxisPointerModel,\n polar: Polar,\n labelMargin: number\n) {\n const axis = axisModel.axis;\n const coord = axis.dataToCoord(value);\n let axisAngle = polar.getAngleAxis().getExtent()[0];\n axisAngle = axisAngle / 180 * Math.PI;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n let position;\n let align: ZRTextAlign;\n let verticalAlign: ZRTextVerticalAlign;\n\n if (axis.dim === 'radius') {\n const transform = matrix.create();\n matrix.rotate(transform, transform, axisAngle);\n matrix.translate(transform, transform, [polar.cx, polar.cy]);\n position = graphic.applyTransform([coord, -labelMargin], transform);\n\n const labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0;\n // @ts-ignore\n const labelLayout = AxisBuilder.innerTextLayout(\n axisAngle, labelRotation * Math.PI / 180, -1\n );\n align = labelLayout.textAlign;\n verticalAlign = labelLayout.textVerticalAlign;\n }\n else { // angle axis\n const r = radiusExtent[1];\n position = polar.coordToPoint([r + labelMargin, coord]);\n const cx = polar.cx;\n const cy = polar.cy;\n align = Math.abs(position[0] - cx) / r < 0.3\n ? 'center' : (position[0] > cx ? 'left' : 'right');\n verticalAlign = Math.abs(position[1] - cy) / r < 0.3\n ? 'middle' : (position[1] > cy ? 'top' : 'bottom');\n }\n\n return {\n position: position,\n align: align,\n verticalAlign: verticalAlign\n };\n}\n\n\nconst pointerShapeBuilder = {\n\n line: function (\n axis: AngleAxis | RadiusAxis,\n polar: Polar,\n coordValue: number,\n otherExtent: number[]\n ): PathProps & { type: 'Line' | 'Circle' } {\n return axis.dim === 'angle'\n ? {\n type: 'Line',\n shape: viewHelper.makeLineShape(\n polar.coordToPoint([otherExtent[0], coordValue]),\n polar.coordToPoint([otherExtent[1], coordValue])\n )\n }\n : {\n type: 'Circle',\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: coordValue\n }\n };\n },\n\n shadow: function (\n axis: AngleAxis | RadiusAxis,\n polar: Polar,\n coordValue: number,\n otherExtent: number[]\n ): PathProps & { type: 'Sector' } {\n const bandWidth = Math.max(1, axis.getBandWidth());\n const radian = Math.PI / 180;\n\n return axis.dim === 'angle'\n ? {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(\n polar.cx, polar.cy,\n otherExtent[0], otherExtent[1],\n // In ECharts y is negative if angle is positive\n (-coordValue - bandWidth / 2) * radian,\n (-coordValue + bandWidth / 2) * radian\n )\n }\n : {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(\n polar.cx, polar.cy,\n coordValue - bandWidth / 2,\n coordValue + bandWidth / 2,\n 0, Math.PI * 2\n )\n };\n }\n};\n\nexport default PolarAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { ComponentOption, CircleLayoutOptionMixin } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Polar from './Polar';\nimport { AngleAxisModel, RadiusAxisModel } from './AxisModel';\n\nexport interface PolarOption extends ComponentOption, CircleLayoutOptionMixin {\n mainType?: 'polar';\n}\n\nclass PolarModel extends ComponentModel {\n static type = 'polar' as const;\n type = PolarModel.type;\n\n static dependencies = ['radiusAxis', 'angleAxis'];\n\n coordinateSystem: Polar;\n\n findAxisModel(axisType: 'angleAxis'): AngleAxisModel\n findAxisModel(axisType: 'radiusAxis'): RadiusAxisModel\n findAxisModel(axisType: 'angleAxis' | 'radiusAxis'): AngleAxisModel | RadiusAxisModel {\n let foundAxisModel;\n const ecModel = this.ecModel;\n\n ecModel.eachComponent(axisType, function (this: PolarModel, axisModel: AngleAxisModel | RadiusAxisModel) {\n if (axisModel.getCoordSysModel() === this) {\n foundAxisModel = axisModel;\n }\n }, this);\n return foundAxisModel;\n }\n\n static defaultOption: PolarOption = {\n\n zlevel: 0,\n\n z: 0,\n\n center: ['50%', '50%'],\n\n radius: '80%'\n };\n}\n\nexport default PolarModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport AngleAxis from './AngleAxis';\nimport RadiusAxis from './RadiusAxis';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nexport interface AngleAxisOption extends AxisBaseOption {\n mainType?: 'angleAxis';\n /**\n * Index of host polar component\n */\n polarIndex?: number;\n /**\n * Id of host polar component\n */\n polarId?: string;\n\n startAngle?: number;\n clockwise?: boolean;\n\n splitNumber?: number;\n\n axisLabel?: AxisBaseOption['axisLabel']\n}\n\nexport interface RadiusAxisOption extends AxisBaseOption {\n mainType?: 'radiusAxis';\n /**\n * Index of host polar component\n */\n polarIndex?: number;\n /**\n * Id of host polar component\n */\n polarId?: string;\n}\n\ntype PolarAxisOption = AngleAxisOption | RadiusAxisOption;\n\nclass PolarAxisModel extends ComponentModel\n implements AxisBaseModel {\n static type = 'polarAxis';\n\n axis: AngleAxis | RadiusAxis;\n\n getCoordSysModel(): ComponentModel {\n return this.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n }\n}\n\ninterface PolarAxisModel\n extends AxisModelCommonMixin, AxisModelExtendedInCreator {}\n\nzrUtil.mixin(PolarAxisModel, AxisModelCommonMixin);\n\nexport {PolarAxisModel};\n\nexport class AngleAxisModel extends PolarAxisModel {\n static type = 'angleAxis';\n type = AngleAxisModel.type;\n axis: AngleAxis;\n}\nexport class RadiusAxisModel extends PolarAxisModel {\n static type = 'radiusAxis';\n type = RadiusAxisModel.type;\n axis: RadiusAxis;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport Polar from './Polar';\nimport { RadiusAxisModel } from './AxisModel';\n\ninterface RadiusAxis {\n dataToRadius: Axis['dataToCoord']\n radiusToData: Axis['coordToData']\n}\n\nclass RadiusAxis extends Axis {\n\n polar: Polar;\n\n model: RadiusAxisModel;\n\n constructor(scale?: Scale, radiusExtent?: [number, number]) {\n super('radius', scale, radiusExtent);\n }\n\n pointToData(point: number[], clamp?: boolean) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n }\n}\n\nRadiusAxis.prototype.dataToRadius = Axis.prototype.dataToCoord;\n\nRadiusAxis.prototype.radiusToData = Axis.prototype.coordToData;\n\nexport default RadiusAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as textContain from 'zrender/src/contain/text';\nimport Axis from '../Axis';\nimport {makeInner} from '../../util/model';\nimport Scale from '../../scale/Scale';\nimport OrdinalScale from '../../scale/Ordinal';\nimport Polar from './Polar';\nimport { AngleAxisModel } from './AxisModel';\n\nconst inner = makeInner<{\n lastAutoInterval: number\n lastTickCount: number\n}, AngleAxisModel>();\n\ninterface AngleAxis {\n dataToAngle: Axis['dataToCoord']\n angleToData: Axis['coordToData']\n}\nclass AngleAxis extends Axis {\n\n polar: Polar;\n\n model: AngleAxisModel;\n\n constructor(scale?: Scale, angleExtent?: [number, number]) {\n super('angle', scale, angleExtent || [0, 360]);\n }\n\n pointToData(point: number[], clamp?: boolean) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n }\n\n /**\n * Only be called in category axis.\n * Angle axis uses text height to decide interval\n *\n * @override\n * @return {number} Auto interval for cateogry axis tick and label\n */\n calculateCategoryInterval() {\n const axis = this;\n const labelModel = axis.getLabelModel();\n\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n const tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n const tickValue = ordinalExtent[0];\n const unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n const unitH = Math.abs(unitSpan);\n\n // Not precise, just use height as text width\n // and each distance from axis line yet.\n const rect = textContain.getBoundingRect(\n tickValue == null ? '' : tickValue + '',\n labelModel.getFont(),\n 'center',\n 'top'\n );\n const maxH = Math.max(rect.height, 7);\n\n let dh = maxH / unitH;\n // 0/0 is NaN, 1/0 is Infinity.\n isNaN(dh) && (dh = Infinity);\n let interval = Math.max(0, Math.floor(dh));\n\n const cache = inner(axis.model);\n const lastAutoInterval = cache.lastAutoInterval;\n const lastTickCount = cache.lastTickCount;\n\n // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n if (lastAutoInterval != null\n && lastTickCount != null\n && Math.abs(lastAutoInterval - interval) <= 1\n && Math.abs(lastTickCount - tickCount) <= 1\n // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval\n ) {\n interval = lastAutoInterval;\n }\n // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n }\n\n return interval;\n }\n}\n\nAngleAxis.prototype.dataToAngle = Axis.prototype.dataToCoord;\n\nAngleAxis.prototype.angleToData = Axis.prototype.coordToData;\n\n\nexport default AngleAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\nimport PolarModel from './PolarModel';\nimport { CoordinateSystem, CoordinateSystemMaster, CoordinateSystemClipArea } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\nexport const polarDimensions = ['radius', 'angle'];\n\ninterface Polar {\n update(ecModel: GlobalModel, api: ExtensionAPI): void\n}\nclass Polar implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly name: string;\n\n readonly dimensions = polarDimensions;\n\n readonly type = 'polar';\n\n /**\n * x of polar center\n */\n cx = 0;\n\n /**\n * y of polar center\n */\n cy = 0;\n\n private _radiusAxis = new RadiusAxis();\n\n private _angleAxis = new AngleAxis();\n\n axisPointerEnabled = true;\n\n model: PolarModel;\n\n constructor(name: string) {\n this.name = name || '';\n\n this._radiusAxis.polar = this._angleAxis.polar = this;\n }\n\n /**\n * If contain coord\n */\n containPoint(point: number[]) {\n const coord = this.pointToCoord(point);\n return this._radiusAxis.contain(coord[0])\n && this._angleAxis.contain(coord[1]);\n }\n\n /**\n * If contain data\n */\n containData(data: number[]) {\n return this._radiusAxis.containData(data[0])\n && this._angleAxis.containData(data[1]);\n }\n\n getAxis(dim: 'radius' | 'angle') {\n const key = ('_' + dim + 'Axis') as '_radiusAxis' | '_angleAxis';\n return this[key];\n }\n\n getAxes() {\n return [this._radiusAxis, this._angleAxis];\n }\n\n /**\n * Get axes by type of scale\n */\n getAxesByScale(scaleType: 'ordinal' | 'interval' | 'time' | 'log') {\n const axes = [];\n const angleAxis = this._angleAxis;\n const radiusAxis = this._radiusAxis;\n angleAxis.scale.type === scaleType && axes.push(angleAxis);\n radiusAxis.scale.type === scaleType && axes.push(radiusAxis);\n\n return axes;\n }\n\n getAngleAxis() {\n return this._angleAxis;\n }\n\n getRadiusAxis() {\n return this._radiusAxis;\n }\n\n getOtherAxis(axis: AngleAxis | RadiusAxis): AngleAxis | RadiusAxis {\n const angleAxis = this._angleAxis;\n return axis === angleAxis ? this._radiusAxis : angleAxis;\n }\n\n /**\n * Base axis will be used on stacking.\n *\n */\n getBaseAxis() {\n return this.getAxesByScale('ordinal')[0]\n || this.getAxesByScale('time')[0]\n || this.getAngleAxis();\n }\n\n getTooltipAxes(dim: 'radius' | 'angle' | 'auto') {\n const baseAxis = (dim != null && dim !== 'auto')\n ? this.getAxis(dim) : this.getBaseAxis();\n return {\n baseAxes: [baseAxis],\n otherAxes: [this.getOtherAxis(baseAxis)]\n };\n }\n\n /**\n * Convert a single data item to (x, y) point.\n * Parameter data is an array which the first element is radius and the second is angle\n */\n dataToPoint(data: ScaleDataValue[], clamp?: boolean) {\n return this.coordToPoint([\n this._radiusAxis.dataToRadius(data[0], clamp),\n this._angleAxis.dataToAngle(data[1], clamp)\n ]);\n }\n\n /**\n * Convert a (x, y) point to data\n */\n pointToData(point: number[], clamp?: boolean) {\n const coord = this.pointToCoord(point);\n return [\n this._radiusAxis.radiusToData(coord[0], clamp),\n this._angleAxis.angleToData(coord[1], clamp)\n ];\n }\n\n /**\n * Convert a (x, y) point to (radius, angle) coord\n */\n pointToCoord(point: number[]) {\n let dx = point[0] - this.cx;\n let dy = point[1] - this.cy;\n const angleAxis = this.getAngleAxis();\n const extent = angleAxis.getExtent();\n let minAngle = Math.min(extent[0], extent[1]);\n let maxAngle = Math.max(extent[0], extent[1]);\n // Fix fixed extent in polarCreator\n // FIXME\n angleAxis.inverse\n ? (minAngle = maxAngle - 360)\n : (maxAngle = minAngle + 360);\n\n const radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n\n let radian = Math.atan2(-dy, dx) / Math.PI * 180;\n\n // move to angleExtent\n const dir = radian < minAngle ? 1 : -1;\n while (radian < minAngle || radian > maxAngle) {\n radian += dir * 360;\n }\n\n return [radius, radian];\n }\n\n /**\n * Convert a (radius, angle) coord to (x, y) point\n */\n coordToPoint(coord: number[]) {\n const radius = coord[0];\n const radian = coord[1] / 180 * Math.PI;\n const x = Math.cos(radian) * radius + this.cx;\n // Inverse the y\n const y = -Math.sin(radian) * radius + this.cy;\n\n return [x, y];\n }\n\n /**\n * Get ring area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n getArea(): PolarArea {\n\n const angleAxis = this.getAngleAxis();\n const radiusAxis = this.getRadiusAxis();\n\n const radiusExtent = radiusAxis.getExtent().slice();\n radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse();\n const angleExtent = angleAxis.getExtent();\n\n const RADIAN = Math.PI / 180;\n\n return {\n cx: this.cx,\n cy: this.cy,\n r0: radiusExtent[0],\n r: radiusExtent[1],\n startAngle: -angleExtent[0] * RADIAN,\n endAngle: -angleExtent[1] * RADIAN,\n clockwise: angleAxis.inverse,\n contain(x: number, y: number) {\n // It's a ring shape.\n // Start angle and end angle don't matter\n const dx = x - this.cx;\n const dy = y - this.cy;\n const d2 = dx * dx + dy * dy;\n const r = this.r;\n const r0 = this.r0;\n\n return d2 <= r * r && d2 >= r0 * r0;\n }\n };\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown) {\n const seriesModel = finder.seriesModel;\n const polarModel = finder.polarModel as PolarModel;\n return polarModel && polarModel.coordinateSystem\n || seriesModel && seriesModel.coordinateSystem as Polar;\n}\n\ninterface PolarArea extends CoordinateSystemClipArea {\n cx: number\n cy: number\n r0: number\n r: number\n startAngle: number\n endAngle: number\n clockwise: boolean\n}\n\nexport default Polar;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Axis scale\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Polar, { polarDimensions } from './Polar';\nimport {parsePercent} from '../../util/number';\nimport {\n createScaleByModel,\n niceScaleExtent,\n getDataDimensionsOnAxis\n} from '../../coord/axisHelper';\n\nimport PolarModel from './PolarModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport OrdinalScale from '../../scale/Ordinal';\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\nimport { PolarAxisModel, AngleAxisModel, RadiusAxisModel } from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n/**\n * Resize method bound to the polar\n */\nfunction resizePolar(polar: Polar, polarModel: PolarModel, api: ExtensionAPI) {\n const center = polarModel.get('center');\n const width = api.getWidth();\n const height = api.getHeight();\n\n polar.cx = parsePercent(center[0], width);\n polar.cy = parsePercent(center[1], height);\n\n const radiusAxis = polar.getRadiusAxis();\n const size = Math.min(width, height) / 2;\n\n let radius = polarModel.get('radius');\n if (radius == null) {\n radius = [0, '100%'];\n }\n else if (!zrUtil.isArray(radius)) {\n // r0 = 0\n radius = [0, radius];\n }\n const parsedRadius = [\n parsePercent(radius[0], size),\n parsePercent(radius[1], size)\n ];\n\n radiusAxis.inverse\n ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0])\n : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]);\n}\n\n/**\n * Update polar\n */\nfunction updatePolarScale(this: Polar, ecModel: GlobalModel, api: ExtensionAPI) {\n const polar = this;\n const angleAxis = polar.getAngleAxis();\n const radiusAxis = polar.getRadiusAxis();\n // Reset scale\n angleAxis.scale.setExtent(Infinity, -Infinity);\n radiusAxis.scale.setExtent(Infinity, -Infinity);\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === polar) {\n const data = seriesModel.getData();\n zrUtil.each(getDataDimensionsOnAxis(data, 'radius'), function (dim) {\n radiusAxis.scale.unionExtentFromData(data, dim);\n });\n zrUtil.each(getDataDimensionsOnAxis(data, 'angle'), function (dim) {\n angleAxis.scale.unionExtentFromData(data, dim);\n });\n }\n });\n\n niceScaleExtent(angleAxis.scale, angleAxis.model);\n niceScaleExtent(radiusAxis.scale, radiusAxis.model);\n\n // Fix extent of category angle axis\n if (angleAxis.type === 'category' && !angleAxis.onBand) {\n const extent = angleAxis.getExtent();\n const diff = 360 / (angleAxis.scale as OrdinalScale).count();\n angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff);\n angleAxis.setExtent(extent[0], extent[1]);\n }\n}\n\nfunction isAngleAxisModel(axisModel: AngleAxisModel | PolarAxisModel): axisModel is AngleAxisModel {\n return axisModel.mainType === 'angleAxis';\n}\n/**\n * Set common axis properties\n */\nfunction setAxis(axis: RadiusAxis | AngleAxis, axisModel: PolarAxisModel) {\n axis.type = axisModel.get('type');\n axis.scale = createScaleByModel(axisModel);\n axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';\n axis.inverse = axisModel.get('inverse');\n\n if (isAngleAxisModel(axisModel)) {\n axis.inverse = axis.inverse !== axisModel.get('clockwise');\n const startAngle = axisModel.get('startAngle');\n axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));\n }\n\n // Inject axis instance\n axisModel.axis = axis;\n axis.model = axisModel as AngleAxisModel | RadiusAxisModel;\n}\n\n\nconst polarCreator = {\n\n dimensions: polarDimensions,\n\n create: function (ecModel: GlobalModel, api: ExtensionAPI) {\n const polarList: Polar[] = [];\n ecModel.eachComponent('polar', function (polarModel: PolarModel, idx: number) {\n const polar = new Polar(idx + '');\n // Inject resize and update method\n polar.update = updatePolarScale;\n\n const radiusAxis = polar.getRadiusAxis();\n const angleAxis = polar.getAngleAxis();\n\n const radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n const angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n setAxis(radiusAxis, radiusAxisModel);\n setAxis(angleAxis, angleAxisModel);\n\n resizePolar(polar, polarModel, api);\n\n polarList.push(polar);\n\n polarModel.coordinateSystem = polar;\n polar.model = polarModel;\n });\n // Inject coordinateSystem to series\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n if (seriesModel.get('coordinateSystem') === 'polar') {\n const polarModel = seriesModel.getReferringComponents(\n 'polar', SINGLE_REFERRING\n ).models[0] as PolarModel;\n\n if (__DEV__) {\n if (!polarModel) {\n throw new Error(\n 'Polar \"' + zrUtil.retrieve(\n seriesModel.get('polarIndex'),\n seriesModel.get('polarId'),\n 0\n ) + '\" not found'\n );\n }\n }\n seriesModel.coordinateSystem = polarModel.coordinateSystem;\n }\n });\n\n return polarList;\n }\n};\n\nexport default polarCreator;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {createTextStyle} from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport AxisView from './AxisView';\nimport AxisBuilder from './AxisBuilder';\nimport { AngleAxisModel } from '../../coord/polar/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport Polar from '../../coord/polar/Polar';\nimport AngleAxis from '../../coord/polar/AngleAxis';\nimport { ZRTextAlign, ZRTextVerticalAlign, ColorString } from '../../util/types';\nimport { getECData } from '../../util/innerStore';\nimport OrdinalScale from '../../scale/Ordinal';\n\nconst elementList = [\n 'axisLine',\n 'axisLabel',\n 'axisTick',\n 'minorTick',\n 'splitLine',\n 'minorSplitLine',\n 'splitArea'\n] as const;\n\nfunction getAxisLineShape(polar: Polar, rExtent: number[], angle: number) {\n rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());\n const start = polar.coordToPoint([rExtent[0], angle]);\n const end = polar.coordToPoint([rExtent[1], angle]);\n\n return {\n x1: start[0],\n y1: start[1],\n x2: end[0],\n y2: end[1]\n };\n}\n\nfunction getRadiusIdx(polar: Polar) {\n const radiusAxis = polar.getRadiusAxis();\n return radiusAxis.inverse ? 0 : 1;\n}\n\n// Remove the last tick which will overlap the first tick\nfunction fixAngleOverlap(list: TickCoord[]) {\n const firstItem = list[0];\n const lastItem = list[list.length - 1];\n if (firstItem\n && lastItem\n && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4\n ) {\n list.pop();\n }\n}\n\ntype TickCoord = ReturnType[number];\ntype TickLabel = ReturnType[number] & {\n coord: number\n};\n\nclass AngleAxisView extends AxisView {\n\n static readonly type = 'angleAxis';\n readonly type = AngleAxisView.type;\n\n axisPointerClass = 'PolarAxisPointer';\n\n render(angleAxisModel: AngleAxisModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (!angleAxisModel.get('show')) {\n return;\n }\n\n const angleAxis = angleAxisModel.axis;\n const polar = angleAxis.polar;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n\n const ticksAngles = angleAxis.getTicksCoords();\n const minorTickAngles = angleAxis.getMinorTicksCoords();\n\n const labels = zrUtil.map(angleAxis.getViewLabels(), function (labelItem: TickLabel) {\n labelItem = zrUtil.clone(labelItem);\n const scale = angleAxis.scale;\n const tickValue = scale.type === 'ordinal'\n ? (scale as OrdinalScale).getRawOrdinalNumber(labelItem.tickValue)\n : labelItem.tickValue;\n labelItem.coord = angleAxis.dataToCoord(tickValue);\n return labelItem;\n });\n\n fixAngleOverlap(labels);\n fixAngleOverlap(ticksAngles);\n\n zrUtil.each(elementList, function (name) {\n if (angleAxisModel.get([name, 'show'])\n && (!angleAxis.scale.isBlank() || name === 'axisLine')\n ) {\n angelAxisElementsBuilders[name](\n this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels\n );\n }\n }, this);\n }\n\n}\n\ninterface AngleAxisElementBuilder {\n (\n group: graphic.Group,\n angleAxisModel: AngleAxisModel,\n polar: Polar,\n ticksAngles: TickCoord[],\n minorTickAngles: TickCoord[][],\n radiusExtent: number[],\n labels?: TickLabel[]\n ): void\n}\n\nconst angelAxisElementsBuilders: Record = {\n\n axisLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']);\n\n // extent id of the axis radius (r0 and r)\n const rId = getRadiusIdx(polar);\n const r0Id = rId ? 0 : 1;\n\n let shape;\n if (radiusExtent[r0Id] === 0) {\n shape = new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n else {\n shape = new graphic.Ring({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId],\n r0: radiusExtent[r0Id]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n shape.style.fill = null;\n group.add(shape);\n },\n\n axisTick(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const tickModel = angleAxisModel.getModel('axisTick');\n\n const tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');\n const radius = radiusExtent[getRadiusIdx(polar)];\n\n const lines = zrUtil.map(ticksAngles, function (tickAngleItem) {\n return new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)\n });\n });\n group.add(graphic.mergePath(\n lines, {\n style: zrUtil.defaults(\n tickModel.getModel('lineStyle').getLineStyle(),\n {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n }\n ));\n },\n\n minorTick(group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n const tickModel = angleAxisModel.getModel('axisTick');\n const minorTickModel = angleAxisModel.getModel('minorTick');\n\n const tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length');\n const radius = radiusExtent[getRadiusIdx(polar)];\n\n const lines = [];\n\n for (let i = 0; i < minorTickAngles.length; i++) {\n for (let k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(\n lines, {\n style: zrUtil.defaults(\n minorTickModel.getModel('lineStyle').getLineStyle(),\n zrUtil.defaults(\n tickModel.getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n )\n }\n ));\n },\n\n axisLabel(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) {\n const rawCategoryData = angleAxisModel.getCategories(true);\n\n const commonLabelModel = angleAxisModel.getModel('axisLabel');\n\n const labelMargin = commonLabelModel.get('margin');\n const triggerEvent = angleAxisModel.get('triggerEvent');\n\n // Use length of ticksAngles because it may remove the last tick to avoid overlapping\n zrUtil.each(labels, function (labelItem, idx) {\n let labelModel = commonLabelModel;\n const tickValue = labelItem.tickValue;\n\n const r = radiusExtent[getRadiusIdx(polar)];\n const p = polar.coordToPoint([r + labelMargin, labelItem.coord]);\n const cx = polar.cx;\n const cy = polar.cy;\n\n const labelTextAlign: ZRTextAlign = Math.abs(p[0] - cx) / r < 0.3\n ? 'center' : (p[0] > cx ? 'left' : 'right');\n const labelTextVerticalAlign: ZRTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3\n ? 'middle' : (p[1] > cy ? 'top' : 'bottom');\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n const rawCategoryItem = rawCategoryData[tickValue];\n if (zrUtil.isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n labelModel = new Model(\n rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel\n );\n }\n }\n\n const textEl = new graphic.Text({\n silent: AxisBuilder.isLabelSilent(angleAxisModel),\n style: createTextStyle(labelModel, {\n x: p[0],\n y: p[1],\n fill: labelModel.getTextColor()\n || angleAxisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,\n text: labelItem.formattedLabel,\n align: labelTextAlign,\n verticalAlign: labelTextVerticalAlign\n })\n });\n group.add(textEl);\n\n // Pack data for mouse event\n if (triggerEvent) {\n const eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = labelItem.rawLabel;\n getECData(textEl).eventData = eventData;\n }\n\n }, this);\n },\n\n splitLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const splitLineModel = angleAxisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n let lineCount = 0;\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const splitLines: graphic.Line[][] = [];\n\n for (let i = 0; i < ticksAngles.length; i++) {\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)\n }));\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyleModel.getLineStyle()),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n }\n },\n\n minorSplitLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n const minorSplitLineModel = angleAxisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const lines = [];\n\n for (let i = 0; i < minorTickAngles.length; i++) {\n for (let k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: lineStyleModel.getLineStyle(),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n },\n\n splitArea(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!ticksAngles.length) {\n return;\n }\n\n const splitAreaModel = angleAxisModel.getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n let lineCount = 0;\n\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n\n const splitAreas: graphic.Sector[][] = [];\n\n const RADIAN = Math.PI / 180;\n let prevAngle = -ticksAngles[0].coord * RADIAN;\n const r0 = Math.min(radiusExtent[0], radiusExtent[1]);\n const r1 = Math.max(radiusExtent[0], radiusExtent[1]);\n\n const clockwise = angleAxisModel.get('clockwise');\n\n for (let i = 1, len = ticksAngles.length; i <= len; i++) {\n const coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;\n const colorIndex = (lineCount++) % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: r0,\n r: r1,\n startAngle: prevAngle,\n endAngle: -coord * RADIAN,\n clockwise: clockwise\n },\n silent: true\n }));\n prevAngle = -coord * RADIAN;\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n\nexport default AngleAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nimport { RadiusAxisModel } from '../../coord/polar/AxisModel';\nimport Polar from '../../coord/polar/Polar';\nimport RadiusAxis from '../../coord/polar/RadiusAxis';\nimport GlobalModel from '../../model/Global';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\nconst selfBuilderAttrs = [\n 'splitLine', 'splitArea', 'minorSplitLine'\n] as const;\n\ntype TickCoord = ReturnType[number];\n\nclass RadiusAxisView extends AxisView {\n\n static readonly type = 'radiusAxis';\n readonly type = RadiusAxisView.type;\n\n axisPointerClass = 'PolarAxisPointer';\n\n private _axisGroup: graphic.Group;\n\n render(radiusAxisModel: RadiusAxisModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (!radiusAxisModel.get('show')) {\n return;\n }\n\n const oldAxisGroup = this._axisGroup;\n const newAxisGroup = this._axisGroup = new graphic.Group();\n this.group.add(newAxisGroup);\n\n const radiusAxis = radiusAxisModel.axis;\n const polar = radiusAxis.polar;\n const angleAxis = polar.getAngleAxis();\n const ticksCoords = radiusAxis.getTicksCoords();\n const minorTicksCoords = radiusAxis.getMinorTicksCoords();\n const axisAngle = angleAxis.getExtent()[0];\n const radiusExtent = radiusAxis.getExtent();\n\n const layout = layoutAxis(polar, radiusAxisModel, axisAngle);\n const axisBuilder = new AxisBuilder(radiusAxisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n newAxisGroup.add(axisBuilder.getGroup());\n\n graphic.groupTransition(oldAxisGroup, newAxisGroup, radiusAxisModel);\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) {\n axisElementBuilders[name](\n this.group,\n radiusAxisModel,\n polar,\n axisAngle,\n radiusExtent,\n ticksCoords,\n minorTicksCoords\n );\n }\n }, this);\n }\n}\n\ninterface AxisElementBuilder {\n (\n group: graphic.Group,\n axisModel: RadiusAxisModel,\n polar: Polar,\n axisAngle: number,\n radiusExtent: number[],\n ticksCoords: TickCoord[],\n minorTicksCoords?: TickCoord[][]\n ): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n const splitLineModel = radiusAxisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n let lineCount = 0;\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const splitLines: graphic.Circle[][] = [];\n\n for (let i = 0; i < ticksCoords.length; i++) {\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: ticksCoords[i].coord\n }\n }));\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length],\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n }\n },\n\n minorSplitLine(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) {\n if (!minorTicksCoords.length) {\n return;\n }\n\n const minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const lines: graphic.Circle[] = [];\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n for (let k = 0; k < minorTicksCoords[i].length; k++) {\n lines.push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: minorTicksCoords[i][k].coord\n }\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults({\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n },\n\n splitArea(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n if (!ticksCoords.length) {\n return;\n }\n\n const splitAreaModel = radiusAxisModel.getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n let lineCount = 0;\n\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n\n const splitAreas: graphic.Sector[][] = [];\n\n let prevRadius = ticksCoords[0].coord;\n for (let i = 1; i < ticksCoords.length; i++) {\n const colorIndex = (lineCount++) % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: prevRadius,\n r: ticksCoords[i].coord,\n startAngle: 0,\n endAngle: Math.PI * 2\n },\n silent: true\n }));\n prevRadius = ticksCoords[i].coord;\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n\n/**\n * @inner\n */\nfunction layoutAxis(polar: Polar, radiusAxisModel: RadiusAxisModel, axisAngle: number) {\n return {\n position: [polar.cx, polar.cy],\n rotation: axisAngle / 180 * Math.PI,\n labelDirection: -1 as const,\n tickDirection: -1 as const,\n nameDirection: 1 as const,\n labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),\n // Over splitLine and splitArea\n z2: 1\n };\n}\n\nexport default RadiusAxisView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../util/number';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport type BarSeriesModel from '../chart/bar/BarSeries';\nimport type Polar from '../coord/polar/Polar';\nimport AngleAxis from '../coord/polar/AngleAxis';\nimport RadiusAxis from '../coord/polar/RadiusAxis';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { Dictionary } from '../util/types';\n\ntype PolarAxis = AngleAxis | RadiusAxis;\n\ninterface StackInfo {\n width: number\n maxWidth: number\n}\ninterface LayoutColumnInfo {\n autoWidthCount: number\n bandWidth: number\n remainedWidth: number\n categoryGap: string | number\n gap: string | number\n stacks: Dictionary\n}\n\ninterface BarWidthAndOffset {\n width: number\n offset: number\n}\n\nfunction getSeriesStackId(seriesModel: BarSeriesModel) {\n return seriesModel.get('stack')\n || '__ec_stack_' + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(polar: Polar, axis: PolarAxis) {\n return axis.dim + polar.model.componentIndex;\n}\n\nfunction barLayoutPolar(seriesType: string, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const lastStackCoords: Dictionary<{p: number, n: number}[]> = {};\n\n const barWidthAndOffset = calRadialBar(\n zrUtil.filter(\n ecModel.getSeriesByType(seriesType) as BarSeriesModel[],\n function (seriesModel) {\n return !ecModel.isSeriesFiltered(seriesModel)\n && seriesModel.coordinateSystem\n && seriesModel.coordinateSystem.type === 'polar';\n }\n )\n );\n\n ecModel.eachSeriesByType(seriesType, function (seriesModel: BarSeriesModel) {\n\n // Check series coordinate, do layout for polar only\n if (seriesModel.coordinateSystem.type !== 'polar') {\n return;\n }\n\n const data = seriesModel.getData();\n const polar = seriesModel.coordinateSystem as Polar;\n const baseAxis = polar.getBaseAxis();\n const axisKey = getAxisKey(polar, baseAxis);\n\n const stackId = getSeriesStackId(seriesModel);\n const columnLayoutInfo = barWidthAndOffset[axisKey][stackId];\n const columnOffset = columnLayoutInfo.offset;\n const columnWidth = columnLayoutInfo.width;\n const valueAxis = polar.getOtherAxis(baseAxis);\n\n const cx = seriesModel.coordinateSystem.cx;\n const cy = seriesModel.coordinateSystem.cy;\n\n const barMinHeight = seriesModel.get('barMinHeight') || 0;\n const barMinAngle = seriesModel.get('barMinAngle') || 0;\n\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n\n const valueDim = data.mapDimension(valueAxis.dim);\n const baseDim = data.mapDimension(baseAxis.dim);\n const stacked = isDimensionStacked(data, valueDim /*, baseDim*/);\n const clampLayout = baseAxis.dim !== 'radius'\n || !seriesModel.get('roundCap', true);\n\n const valueAxisStart = valueAxis.dataToCoord(0);\n for (let idx = 0, len = data.count(); idx < len; idx++) {\n const value = data.get(valueDim, idx) as number;\n const baseValue = data.get(baseDim, idx) as number;\n\n const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n';\n let baseCoord = valueAxisStart;\n\n // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n // Only ordinal axis can be stacked.\n if (stacked) {\n\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart, // Positive stack\n n: valueAxisStart // Negative stack\n };\n }\n // Should also consider #4243\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n let r0;\n let r;\n let startAngle;\n let endAngle;\n\n // radial sector\n if (valueAxis.dim === 'radius') {\n let radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart;\n const angle = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(radiusSpan) < barMinHeight) {\n radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;\n }\n\n r0 = baseCoord;\n r = baseCoord + radiusSpan;\n startAngle = angle - columnOffset;\n endAngle = startAngle - columnWidth;\n\n stacked && (lastStackCoords[stackId][baseValue][sign] = r);\n }\n // tangential sector\n else {\n let angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart;\n const radius = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(angleSpan) < barMinAngle) {\n angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;\n }\n\n r0 = radius + columnOffset;\n r = r0 + columnWidth;\n startAngle = baseCoord;\n endAngle = baseCoord + angleSpan;\n\n // if the previous stack is at the end of the ring,\n // add a round to differentiate it from origin\n // let extent = angleAxis.getExtent();\n // let stackCoord = angle;\n // if (stackCoord === extent[0] && value > 0) {\n // stackCoord = extent[1];\n // }\n // else if (stackCoord === extent[1] && value < 0) {\n // stackCoord = extent[0];\n // }\n stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);\n }\n\n data.setItemLayout(idx, {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n // Consider that positive angle is anti-clockwise,\n // while positive radian of sector is clockwise\n startAngle: -startAngle * Math.PI / 180,\n endAngle: -endAngle * Math.PI / 180\n });\n\n }\n\n });\n\n}\n\n/**\n * Calculate bar width and offset for radial bar charts\n */\nfunction calRadialBar(barSeries: BarSeriesModel[]) {\n // Columns info on each category axis. Key is polar name\n const columnsMap: Dictionary = {};\n\n zrUtil.each(barSeries, function (seriesModel, idx) {\n const data = seriesModel.getData();\n const polar = seriesModel.coordinateSystem as Polar;\n\n const baseAxis = polar.getBaseAxis();\n const axisKey = getAxisKey(polar, baseAxis);\n\n const axisExtent = baseAxis.getExtent();\n const bandWidth = baseAxis.type === 'category'\n ? baseAxis.getBandWidth()\n : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count());\n\n const columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: '20%',\n gap: '30%',\n stacks: {}\n };\n const stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n\n const stackId = getSeriesStackId(seriesModel);\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n\n let barWidth = parsePercent(\n seriesModel.get('barWidth'),\n bandWidth\n );\n const barMaxWidth = parsePercent(\n seriesModel.get('barMaxWidth'),\n bandWidth\n );\n const barGap = seriesModel.get('barGap');\n const barCategoryGap = seriesModel.get('barCategoryGap');\n\n if (barWidth && !stacks[stackId].width) {\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n stacks[stackId].width = barWidth;\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n (barGap != null) && (columnsOnAxis.gap = barGap);\n (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n\n\n const result: Dictionary> = {};\n\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n\n result[coordSysName] = {};\n\n const stacks = columnsOnAxis.stacks;\n const bandWidth = columnsOnAxis.bandWidth;\n const categoryGap = parsePercent(columnsOnAxis.categoryGap, bandWidth);\n const barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n\n let remainedWidth = columnsOnAxis.remainedWidth;\n let autoWidthCount = columnsOnAxis.autoWidthCount;\n let autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n // Find if any auto calculated bar exceeded maxBarWidth\n zrUtil.each(stacks, function (column, stack) {\n let maxWidth = column.maxWidth;\n if (maxWidth && maxWidth < autoWidth) {\n maxWidth = Math.min(maxWidth, remainedWidth);\n if (column.width) {\n maxWidth = Math.min(maxWidth, column.width);\n }\n remainedWidth -= maxWidth;\n column.width = maxWidth;\n autoWidthCount--;\n }\n });\n\n // Recalculate width again\n autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n let widthSum = 0;\n let lastColumn: StackInfo;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n let offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n offset: offset,\n width: column.width\n } as BarWidthAndOffset;\n\n offset += column.width * (1 + barGapPercent);\n });\n });\n\n return result;\n}\n\nexport default barLayoutPolar;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport PolarAxisPointer from '../axisPointer/PolarAxisPointer';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport PolarModel from '../../coord/polar/PolarModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport {\n AngleAxisOption,\n RadiusAxisOption,\n AngleAxisModel,\n RadiusAxisModel\n} from '../../coord/polar/AxisModel';\nimport polarCreator from '../../coord/polar/polarCreator';\nimport AngleAxisView from '../axis/AngleAxisView';\nimport RadiusAxisView from '../axis/RadiusAxisView';\nimport ComponentView from '../../view/Component';\nimport { curry } from 'zrender/src/core/util';\nimport barLayoutPolar from '../../layout/barPolar';\n\n\nconst angleAxisExtraOption: AngleAxisOption = {\n startAngle: 90,\n\n clockwise: true,\n\n splitNumber: 12,\n\n axisLabel: {\n rotate: 0\n }\n};\n\nconst radiusAxisExtraOption: RadiusAxisOption = {\n splitNumber: 5\n};\n\nclass PolarView extends ComponentView {\n static type = 'polar';\n type = PolarView.type;\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n use(installAxisPointer);\n\n AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer);\n\n registers.registerCoordinateSystem('polar', polarCreator);\n\n registers.registerComponentModel(PolarModel);\n registers.registerComponentView(PolarView);\n\n // Model and view for angleAxis and radiusAxis\n axisModelCreator(registers, 'angle', AngleAxisModel, angleAxisExtraOption);\n axisModelCreator(registers, 'radius', RadiusAxisModel, radiusAxisExtraOption);\n\n registers.registerComponentView(AngleAxisView);\n registers.registerComponentView(RadiusAxisView);\n\n registers.registerLayout(curry(barLayoutPolar, 'bar'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SingleAxisModel from './AxisModel';\n\ninterface LayoutResult {\n position: [number, number],\n rotation: number\n labelRotation: number\n labelDirection: number // 1 | -1\n tickDirection: number\n nameDirection: number\n z2: number\n}\n\nexport function layout(axisModel: SingleAxisModel, opt?: {\n labelInside?: boolean\n rotate?: number\n}) {\n opt = opt || {};\n const single = axisModel.coordinateSystem;\n const axis = axisModel.axis;\n const layout = {} as LayoutResult;\n\n const axisPosition = axis.position;\n const orient = axis.orient;\n\n const rect = single.getRect();\n const rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n\n const positionMap = {\n horizontal: {top: rectBound[2], bottom: rectBound[3]},\n vertical: {left: rectBound[0], right: rectBound[1]}\n } as const;\n\n layout.position = [\n orient === 'vertical'\n ? positionMap.vertical[axisPosition as 'left' | 'right']\n : rectBound[0],\n orient === 'horizontal'\n ? positionMap.horizontal[axisPosition as 'top' | 'bottom']\n : rectBound[3]\n ] as [number, number];\n\n const r = {horizontal: 0, vertical: 1};\n layout.rotation = Math.PI / 2 * r[orient];\n\n const directionMap = {top: -1, bottom: 1, right: 1, left: -1} as const;\n\n layout.labelDirection = layout.tickDirection =\n layout.nameDirection = directionMap[axisPosition];\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n }\n\n let labelRotation = opt.rotate;\n labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate']));\n layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;\n\n layout.z2 = 1;\n\n return layout;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport AxisView from './AxisView';\nimport {rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove} from './axisSplitHelper';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\n\nconst selfBuilderAttrs = ['splitArea', 'splitLine'] as const;\n\nclass SingleAxisView extends AxisView {\n\n static readonly type = 'singleAxis';\n readonly type = SingleAxisView.type;\n\n private _axisGroup: graphic.Group;\n\n axisPointerClass = 'SingleAxisPointer';\n\n render(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n const group = this.group;\n\n group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n\n const layout = singleAxisHelper.layout(axisModel);\n\n const axisBuilder = new AxisBuilder(axisModel, layout);\n\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n group.add(this._axisGroup);\n group.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this.group, this._axisGroup, axisModel);\n }\n }, this);\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n super.render(axisModel, ecModel, api, payload);\n }\n\n remove() {\n rectCoordAxisHandleRemove(this);\n }\n}\n\ninterface AxisElementBuilder {\n (axisView: SingleAxisView, group: graphic.Group, axisGroup: graphic.Group, axisModel: SingleAxisModel): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(axisView, group, axisGroup, axisModel) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n const splitLineModel = axisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const gridRect = axisModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n const splitLines: graphic.Line[][] = [];\n let lineCount = 0;\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n\n const p1 = [];\n const p2 = [];\n\n for (let i = 0; i < ticksCoords.length; ++i) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n silent: true\n }));\n }\n\n const lineStyle = lineStyleModel.getLineStyle(['color']);\n for (let i = 0; i < splitLines.length; ++i) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyle),\n silent: true\n }));\n }\n },\n\n splitArea(axisView, group, axisGroup, axisModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, axisModel);\n }\n};\n\nexport default SingleAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport Single from './Single';\nimport SingleAxis from './SingleAxis';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport { BoxLayoutOptionMixin, LayoutOrient } from '../../util/types';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { mixin } from 'zrender/src/core/util';\n\nexport type SingleAxisPosition = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface SingleAxisOption extends AxisBaseOption, BoxLayoutOptionMixin {\n mainType?: 'singleAxis'\n position?: SingleAxisPosition\n orient?: LayoutOrient\n}\n\nclass SingleAxisModel extends ComponentModel\n implements AxisBaseModel {\n static type = 'singleAxis';\n type = SingleAxisModel.type;\n\n static readonly layoutMode = 'box';\n\n axis: SingleAxis;\n\n coordinateSystem: Single;\n\n getCoordSysModel() {\n return this;\n }\n\n static defaultOption: SingleAxisOption = {\n\n left: '5%',\n top: '5%',\n right: '5%',\n bottom: '5%',\n\n type: 'value',\n\n position: 'bottom',\n\n orient: 'horizontal',\n\n axisLine: {\n show: true,\n lineStyle: {\n width: 1,\n type: 'solid'\n }\n },\n\n // Single coordinate system and single axis is the,\n // which is used as the parent tooltip model.\n // same model, so we set default tooltip show as true.\n tooltip: {\n show: true\n },\n\n axisTick: {\n show: true,\n length: 6,\n lineStyle: {\n width: 1\n }\n },\n\n axisLabel: {\n show: true,\n interval: 'auto'\n },\n\n splitLine: {\n show: true,\n lineStyle: {\n type: 'dashed',\n opacity: 0.2\n }\n }\n };\n}\n\ninterface SingleAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nmixin(SingleAxisModel, AxisModelCommonMixin.prototype);\n\nexport default SingleAxisModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport SingleAxisModel, { SingleAxisPosition } from './AxisModel';\nimport { LayoutOrient } from '../../util/types';\nimport Single from './Single';\n\ninterface SingleAxis {\n /**\n * Transform global coord to local coord,\n * i.e. let localCoord = axis.toLocalCoord(80);\n */\n toLocalCoord(coord: number): number;\n\n /**\n * Transform global coord to local coord,\n * i.e. let globalCoord = axis.toLocalCoord(40);\n */\n toGlobalCoord(coord: number): number;\n}\nclass SingleAxis extends Axis {\n\n position: SingleAxisPosition;\n\n orient: LayoutOrient;\n\n reverse: boolean;\n\n coordinateSystem: Single;\n\n model: SingleAxisModel;\n\n constructor(\n dim: string,\n scale: Scale,\n coordExtent: [number, number],\n axisType?: OptionAxisType,\n position?: SingleAxisPosition\n ) {\n super(dim, scale, coordExtent);\n\n this.type = axisType || 'value';\n this.position = position || 'bottom';\n }\n\n /**\n * Judge the orient of the axis.\n */\n isHorizontal() {\n const position = this.position;\n return position === 'top' || position === 'bottom';\n }\n\n pointToData(point: number[], clamp?: boolean) { // TODO: clamp is not used.\n return this.coordinateSystem.pointToData(point)[0];\n }\n}\nexport default SingleAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinates system.\n */\n\nimport SingleAxis from './SingleAxis';\nimport * as axisHelper from '../axisHelper';\nimport {getLayoutRect} from '../../util/layout';\nimport {each} from 'zrender/src/core/util';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport SingleAxisModel from './AxisModel';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\n\nexport const singleDimensions = ['single'];\n/**\n * Create a single coordinates system.\n */\nclass Single implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly type = 'single';\n\n readonly dimension = 'single';\n /**\n * Add it just for draw tooltip.\n */\n readonly dimensions = singleDimensions;\n\n name: string;\n\n axisPointerEnabled: boolean = true;\n\n model: SingleAxisModel;\n\n private _axis: SingleAxis;\n\n private _rect: BoundingRect;\n\n constructor(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n this.model = axisModel;\n\n this._init(axisModel, ecModel, api);\n }\n\n /**\n * Initialize single coordinate system.\n */\n _init(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const dim = this.dimension;\n\n const axis = new SingleAxis(\n dim,\n axisHelper.createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisModel.get('position')\n );\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n axis.orient = axisModel.get('orient');\n\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = this;\n this._axis = axis;\n }\n\n /**\n * Update axis scale after data processed\n */\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === this) {\n const data = seriesModel.getData();\n each(data.mapDimensionsAll(this.dimension), function (dim) {\n this._axis.scale.unionExtentFromData(data, dim);\n }, this);\n axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);\n }\n }, this);\n }\n\n /**\n * Resize the single coordinate system.\n */\n resize(axisModel: SingleAxisModel, api: ExtensionAPI) {\n this._rect = getLayoutRect(\n {\n left: axisModel.get('left'),\n top: axisModel.get('top'),\n right: axisModel.get('right'),\n bottom: axisModel.get('bottom'),\n width: axisModel.get('width'),\n height: axisModel.get('height')\n },\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n this._adjustAxis();\n }\n\n getRect() {\n return this._rect;\n }\n\n private _adjustAxis() {\n\n const rect = this._rect;\n const axis = this._axis;\n\n const isHorizontal = axis.isHorizontal();\n const extent = isHorizontal ? [0, rect.width] : [0, rect.height];\n const idx = axis.reverse ? 1 : 0;\n\n axis.setExtent(extent[idx], extent[1 - idx]);\n\n this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);\n\n }\n\n\n private _updateAxisTransform(axis: SingleAxis, coordBase: number) {\n\n const axisExtent = axis.getExtent();\n const extentSum = axisExtent[0] + axisExtent[1];\n const isHorizontal = axis.isHorizontal();\n\n axis.toGlobalCoord = isHorizontal\n ? function (coord) {\n return coord + coordBase;\n }\n : function (coord) {\n return extentSum - coord + coordBase;\n };\n\n axis.toLocalCoord = isHorizontal\n ? function (coord) {\n return coord - coordBase;\n }\n : function (coord) {\n return extentSum - coord + coordBase;\n };\n }\n\n /**\n * Get axis.\n */\n getAxis() {\n return this._axis;\n }\n\n /**\n * Get axis, add it just for draw tooltip.\n */\n getBaseAxis() {\n return this._axis;\n }\n\n getAxes() {\n return [this._axis];\n }\n\n getTooltipAxes() {\n return {\n baseAxes: [this.getAxis()],\n // Empty otherAxes\n otherAxes: [] as SingleAxis[]\n };\n }\n\n /**\n * If contain point.\n */\n containPoint(point: number[]) {\n const rect = this.getRect();\n const axis = this.getAxis();\n const orient = axis.orient;\n if (orient === 'horizontal') {\n return axis.contain(axis.toLocalCoord(point[0]))\n && (point[1] >= rect.y && point[1] <= (rect.y + rect.height));\n }\n else {\n return axis.contain(axis.toLocalCoord(point[1]))\n && (point[0] >= rect.y && point[0] <= (rect.y + rect.height));\n }\n }\n\n pointToData(point: number[]) {\n const axis = this.getAxis();\n return [axis.coordToData(axis.toLocalCoord(\n point[axis.orient === 'horizontal' ? 0 : 1]\n ))];\n }\n\n /**\n * Convert the series data to concrete point.\n * Can be [val] | val\n */\n dataToPoint(val: ScaleDataValue | ScaleDataValue[]) {\n const axis = this.getAxis();\n const rect = this.getRect();\n const pt = [];\n const idx = axis.orient === 'horizontal' ? 0 : 1;\n\n if (val instanceof Array) {\n val = val[0];\n }\n\n pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));\n pt[1 - idx] = idx === 0 ? (rect.y + rect.height / 2) : (rect.x + rect.width / 2);\n return pt;\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Single {\n const seriesModel = finder.seriesModel;\n const singleModel = finder.singleAxisModel as SingleAxisModel;\n return singleModel && singleModel.coordinateSystem\n || seriesModel && seriesModel.coordinateSystem as Single;\n}\n\nexport default Single;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinate system creator.\n */\n\nimport Single, { singleDimensions } from './Single';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SingleAxisModel from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n/**\n * Create single coordinate system and inject it into seriesModel.\n */\nfunction create(ecModel: GlobalModel, api: ExtensionAPI) {\n const singles: Single[] = [];\n\n ecModel.eachComponent('singleAxis', function (axisModel: SingleAxisModel, idx: number) {\n\n const single = new Single(axisModel, ecModel, api);\n single.name = 'single_' + idx;\n single.resize(axisModel, api);\n axisModel.coordinateSystem = single;\n singles.push(single);\n\n });\n\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n if (seriesModel.get('coordinateSystem') === 'singleAxis') {\n const singleAxisModel = seriesModel.getReferringComponents(\n 'singleAxis', SINGLE_REFERRING\n ).models[0] as SingleAxisModel;\n seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;\n }\n });\n\n return singles;\n}\n\nconst singleCreator = {\n create: create,\n dimensions: singleDimensions\n};\n\nexport default singleCreator;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport Single from '../../coord/single/Single';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ScaleDataValue, VerticalAlign, CommonAxisPointerOption } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport Model from '../../model/Model';\n\nconst XY = ['x', 'y'] as const;\nconst WH = ['width', 'height'] as const;\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass SingleAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: ScaleDataValue,\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n const coordSys = axis.coordinateSystem;\n const otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));\n const pixelValue = coordSys.dataToPoint(value)[0];\n\n const axisPointerType = axisPointerModel.get('type');\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, pixelValue, otherExtent\n );\n pointerOption.style = elStyle;\n\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const layoutInfo = singleAxisHelper.layout(axisModel);\n viewHelper.buildCartesianSingleLabelElOption(\n // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api\n );\n }\n\n /**\n * @override\n */\n getHandleTransform(\n value: ScaleDataValue,\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const layoutInfo = singleAxisHelper.layout(axisModel, {labelInside: false});\n // @ts-ignore\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n const position = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: position[0],\n y: position[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n }\n\n /**\n * @override\n */\n updateHandleTransform(\n transform: {\n x: number,\n y: number,\n rotation: number\n },\n delta: number[],\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const axis = axisModel.axis;\n const coordSys = axis.coordinateSystem;\n const dimIndex = getPointDimIndex(axis);\n const axisExtent = getGlobalExtent(coordSys, dimIndex);\n const currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n const otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);\n const cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n const cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: {\n verticalAlign: 'middle' as VerticalAlign\n }\n };\n }\n}\n\nconst pointerShapeBuilder = {\n\n line: function (axis: SingleAxis, pixelValue: number, otherExtent: number[]): PathProps & {\n type: 'Line'\n } {\n const targetShape = viewHelper.makeLineShape(\n [pixelValue, otherExtent[0]],\n [pixelValue, otherExtent[1]],\n getPointDimIndex(axis)\n );\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n\n shadow: function (axis: SingleAxis, pixelValue: number, otherExtent: number[]): PathProps & {\n type: 'Rect'\n } {\n const bandWidth = axis.getBandWidth();\n const span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape(\n [pixelValue - bandWidth / 2, otherExtent[0]],\n [bandWidth, span],\n getPointDimIndex(axis)\n )\n };\n }\n};\n\nfunction getPointDimIndex(axis: SingleAxis): number {\n return axis.isHorizontal() ? 0 : 1;\n}\n\nfunction getGlobalExtent(coordSys: Single, dimIndex: number) {\n const rect = coordSys.getRect();\n return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];\n}\n\nexport default SingleAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport SingleAxisView from '../axis/SingleAxisView';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport singleCreator from '../../coord/single/singleCreator';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport AxisView from '../axis/AxisView';\nimport SingleAxisPointer from '../axisPointer/SingleAxisPointer';\n\nclass SingleView extends ComponentView {\n static type = 'single';\n type = SingleView.type;\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installAxisPointer);\n\n AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer);\n\n registers.registerComponentView(SingleView);\n\n // Axis\n registers.registerComponentView(SingleAxisView);\n registers.registerComponentModel(SingleAxisModel);\n\n axisModelCreator(registers, 'single', SingleAxisModel, SingleAxisModel.defaultOption);\n\n registers.registerCoordinateSystem('single', singleCreator);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport {\n getLayoutParams,\n sizeCalculable,\n mergeLayoutParam\n} from '../../util/layout';\nimport Calendar from './Calendar';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n LineStyleOption,\n ItemStyleOption,\n LabelOption,\n OptionDataValueDate\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\n\nexport interface CalendarMonthLabelFormatterCallbackParams {\n nameMap: string\n yyyy: string\n yy: string\n /**\n * Month string. With 0 prefix.\n */\n MM: string\n /**\n * Month number\n */\n M: number\n}\n\nexport interface CalendarYearLabelFormatterCallbackParams {\n nameMap: string\n /**\n * Start year\n */\n start: string\n /**\n * End year\n */\n end: string\n}\n\nexport interface CalendarOption extends ComponentOption, BoxLayoutOptionMixin {\n mainType?: 'calendar'\n\n cellSize?: number | 'auto' | (number | 'auto')[]\n orient?: LayoutOrient\n\n splitLine?: {\n show?: boolean\n lineStyle?: LineStyleOption\n }\n\n itemStyle?: ItemStyleOption\n /**\n * // one year\n * range: 2017\n * // one month\n * range: '2017-02'\n * // a range\n * range: ['2017-01-02', '2017-02-23']\n * // note: they will be identified as ['2017-01-01', '2017-02-01']\n * range: ['2017-01', '2017-02']\n */\n range?: OptionDataValueDate | (OptionDataValueDate)[]\n\n dayLabel?: Omit & {\n /**\n * First day of week.\n */\n firstDay?: number\n\n /**\n * Margin between day label and axis line.\n * Can be percent string of cell size.\n */\n margin?: number | string\n\n /**\n * Position of week, at the beginning or end of the range.\n */\n position?: 'start' | 'end'\n\n /**\n * Week text content, defaults to 'en'; It supports Chinese, English, and custom; index 0 always means Sunday\n * en: shortcut to English ['S', 'M', 'T', 'W', 'T', 'F', 'S']\n * cn: shortcut to Chinese ['\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D']\n */\n nameMap?: 'en' | 'cn' | string[]\n }\n\n monthLabel?: Omit & {\n /**\n * Margin between month label and axis line.\n */\n margin?: number\n\n /**\n * Position of month label, at the beginning or end of the range.\n */\n position?: 'start' | 'end'\n\n /**\n * Month text content, defaults to 'en'; It supports Chinese, English, and custom; Index 0 always means Jan;\n */\n nameMap?: 'en' | 'cn' | string[]\n\n formatter?: string | ((params: CalendarMonthLabelFormatterCallbackParams) => string)\n }\n\n yearLabel?: Omit & {\n /**\n * Margin between year label and axis line.\n */\n margin?: number\n\n /**\n * Position of year label, at the beginning or end of the range.\n */\n position?: 'top' | 'bottom' | 'left' | 'right'\n\n formatter?: string | ((params: CalendarYearLabelFormatterCallbackParams) => string)\n }\n}\n\nclass CalendarModel extends ComponentModel {\n static type = 'calendar';\n type = CalendarModel.type;\n\n coordinateSystem: Calendar;\n\n /**\n * @override\n */\n init(option: CalendarOption, parentModel: Model, ecModel: GlobalModel) {\n const inputPositionParams = getLayoutParams(option);\n\n super.init.apply(this, arguments as any);\n\n mergeAndNormalizeLayoutParams(option, inputPositionParams);\n }\n\n /**\n * @override\n */\n mergeOption(option: CalendarOption) {\n super.mergeOption.apply(this, arguments as any);\n\n mergeAndNormalizeLayoutParams(this.option, option);\n }\n\n getCellSize() {\n // Has been normalized\n return this.option.cellSize as (number | 'auto')[];\n }\n\n static defaultOption: CalendarOption = {\n zlevel: 0,\n z: 2,\n left: 80,\n top: 60,\n\n cellSize: 20,\n\n // horizontal vertical\n orient: 'horizontal',\n\n // month separate line style\n splitLine: {\n show: true,\n lineStyle: {\n color: '#000',\n width: 1,\n type: 'solid'\n }\n },\n\n // rect style temporarily unused emphasis\n itemStyle: {\n color: '#fff',\n borderWidth: 1,\n borderColor: '#ccc'\n },\n\n // week text style\n dayLabel: {\n show: true,\n\n firstDay: 0,\n\n // start end\n position: 'start',\n margin: '50%', // 50% of cellSize\n nameMap: 'en',\n color: '#000'\n },\n\n // month text style\n monthLabel: {\n show: true,\n\n // start end\n position: 'start',\n margin: 5,\n\n // center or left\n align: 'center',\n\n // cn en []\n nameMap: 'en',\n formatter: null,\n color: '#000'\n },\n\n // year text style\n yearLabel: {\n show: true,\n\n // top bottom left right\n position: null,\n margin: 30,\n formatter: null,\n color: '#ccc',\n fontFamily: 'sans-serif',\n fontWeight: 'bolder',\n fontSize: 20\n }\n };\n}\n\n\nfunction mergeAndNormalizeLayoutParams(target: CalendarOption, raw: BoxLayoutOptionMixin) {\n // Normalize cellSize\n const cellSize = target.cellSize;\n let cellSizeArr: (number | 'auto')[];\n\n if (!zrUtil.isArray(cellSize)) {\n cellSizeArr = target.cellSize = [cellSize, cellSize];\n }\n else {\n cellSizeArr = cellSize;\n }\n\n if (cellSizeArr.length === 1) {\n cellSizeArr[1] = cellSizeArr[0];\n }\n\n const ignoreSize = zrUtil.map([0, 1], function (hvIdx) {\n // If user have set `width` or both `left` and `right`, cellSizeArr\n // will be automatically set to 'auto', otherwise the default\n // setting of cellSizeArr will make `width` setting not work.\n if (sizeCalculable(raw, hvIdx)) {\n cellSizeArr[hvIdx] = 'auto';\n }\n return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto';\n });\n\n mergeLayoutParam(target, raw, {\n type: 'box', ignoreSize: ignoreSize\n });\n}\n\nexport default CalendarModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {createTextStyle} from '../../label/labelStyle';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport {CalendarParsedDateRangeInfo, CalendarParsedDateInfo} from '../../coord/calendar/Calendar';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { LayoutOrient, OptionDataValueDate, ZRTextAlign, ZRTextVerticalAlign } from '../../util/types';\nimport ComponentView from '../../view/Component';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { TextStyleProps, TextProps } from 'zrender/src/graphic/Text';\n\nconst MONTH_TEXT = {\n EN: [\n 'Jan', 'Feb', 'Mar',\n 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'\n ],\n CN: [\n '\u4E00\u6708', '\u4E8C\u6708', '\u4E09\u6708',\n '\u56DB\u6708', '\u4E94\u6708', '\u516D\u6708',\n '\u4E03\u6708', '\u516B\u6708', '\u4E5D\u6708',\n '\u5341\u6708', '\u5341\u4E00\u6708', '\u5341\u4E8C\u6708'\n ]\n};\n\nconst WEEK_TEXT = {\n EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n CN: ['\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D']\n};\n\nclass CalendarView extends ComponentView {\n\n static type = 'calendar';\n type = CalendarView.type;\n\n /**\n * top/left line points\n */\n private _tlpoints: number[][];\n\n /**\n * bottom/right line points\n */\n private _blpoints: number[][];\n\n /**\n * first day of month\n */\n private _firstDayOfMonth: CalendarParsedDateInfo[];\n\n /**\n * first day point of month\n */\n private _firstDayPoints: number[][];\n\n render(calendarModel: CalendarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const group = this.group;\n\n group.removeAll();\n\n const coordSys = calendarModel.coordinateSystem;\n\n // range info\n const rangeData = coordSys.getRangeInfo();\n const orient = coordSys.getOrient();\n\n this._renderDayRect(calendarModel, rangeData, group);\n\n // _renderLines must be called prior to following function\n this._renderLines(calendarModel, rangeData, orient, group);\n\n this._renderYearText(calendarModel, rangeData, orient, group);\n\n this._renderMonthText(calendarModel, orient, group);\n\n this._renderWeekText(calendarModel, rangeData, orient, group);\n }\n\n // render day rect\n _renderDayRect(calendarModel: CalendarModel, rangeData: CalendarParsedDateRangeInfo, group: graphic.Group) {\n const coordSys = calendarModel.coordinateSystem;\n const itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle();\n const sw = coordSys.getCellWidth();\n const sh = coordSys.getCellHeight();\n\n for (let i = rangeData.start.time;\n i <= rangeData.end.time;\n i = coordSys.getNextNDay(i, 1).time\n ) {\n\n const point = coordSys.dataToRect([i], false).tl;\n\n // every rect\n const rect = new graphic.Rect({\n shape: {\n x: point[0],\n y: point[1],\n width: sw,\n height: sh\n },\n cursor: 'default',\n style: itemRectStyleModel\n });\n\n group.add(rect);\n }\n\n }\n\n // render separate line\n _renderLines(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n\n const self = this;\n\n const coordSys = calendarModel.coordinateSystem;\n\n const lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle();\n const show = calendarModel.get(['splitLine', 'show']);\n\n const lineWidth = lineStyleModel.lineWidth;\n\n this._tlpoints = [];\n this._blpoints = [];\n this._firstDayOfMonth = [];\n this._firstDayPoints = [];\n\n\n let firstDay = rangeData.start;\n\n for (let i = 0; firstDay.time <= rangeData.end.time; i++) {\n addPoints(firstDay.formatedDate);\n\n if (i === 0) {\n firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);\n }\n\n const date = firstDay.date;\n date.setMonth(date.getMonth() + 1);\n firstDay = coordSys.getDateInfo(date);\n }\n\n addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);\n\n function addPoints(date: OptionDataValueDate) {\n\n self._firstDayOfMonth.push(coordSys.getDateInfo(date));\n self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);\n\n const points = self._getLinePointsOfOneWeek(calendarModel, date, orient);\n\n self._tlpoints.push(points[0]);\n self._blpoints.push(points[points.length - 1]);\n\n show && self._drawSplitline(points, lineStyleModel, group);\n }\n\n\n // render top/left line\n show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group);\n\n // render bottom/right line\n show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);\n\n }\n\n // get points at both ends\n _getEdgesPoints(points: number[][], lineWidth: number, orient: LayoutOrient) {\n const rs = [points[0].slice(), points[points.length - 1].slice()];\n const idx = orient === 'horizontal' ? 0 : 1;\n\n // both ends of the line are extend half lineWidth\n rs[0][idx] = rs[0][idx] - lineWidth / 2;\n rs[1][idx] = rs[1][idx] + lineWidth / 2;\n\n return rs;\n }\n\n // render split line\n _drawSplitline(points: number[][], lineStyle: PathStyleProps, group: graphic.Group) {\n\n const poyline = new graphic.Polyline({\n z2: 20,\n shape: {\n points: points\n },\n style: lineStyle\n });\n\n group.add(poyline);\n }\n\n // render month line of one week points\n _getLinePointsOfOneWeek(calendarModel: CalendarModel, date: OptionDataValueDate, orient: LayoutOrient) {\n\n const coordSys = calendarModel.coordinateSystem;\n const parsedDate = coordSys.getDateInfo(date);\n\n const points = [];\n\n for (let i = 0; i < 7; i++) {\n\n const tmpD = coordSys.getNextNDay(parsedDate.time, i);\n const point = coordSys.dataToRect([tmpD.time], false);\n\n points[2 * tmpD.day] = point.tl;\n points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];\n }\n\n return points;\n\n }\n\n _formatterLabel(\n formatter: string | ((params: T) => string),\n params: T\n ) {\n\n if (typeof formatter === 'string' && formatter) {\n return formatUtil.formatTplSimple(formatter, params);\n }\n\n if (typeof formatter === 'function') {\n return formatter(params);\n }\n\n return params.nameMap;\n\n }\n\n _yearTextPositionControl(\n textEl: graphic.Text,\n point: number[],\n orient: LayoutOrient,\n position: 'left' | 'right' | 'top' | 'bottom',\n margin: number\n ): TextProps {\n\n let x = point[0];\n let y = point[1];\n let aligns: [ZRTextAlign, ZRTextVerticalAlign] = ['center', 'bottom'];\n\n if (position === 'bottom') {\n y += margin;\n aligns = ['center', 'top'];\n }\n else if (position === 'left') {\n x -= margin;\n }\n else if (position === 'right') {\n x += margin;\n aligns = ['center', 'top'];\n }\n else { // top\n y -= margin;\n }\n\n let rotate = 0;\n if (position === 'left' || position === 'right') {\n rotate = Math.PI / 2;\n }\n\n return {\n rotation: rotate,\n x,\n y,\n style: {\n align: aligns[0],\n verticalAlign: aligns[1]\n }\n };\n }\n\n // render year\n _renderYearText(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n const yearLabel = calendarModel.getModel('yearLabel');\n\n if (!yearLabel.get('show')) {\n return;\n }\n\n const margin = yearLabel.get('margin');\n let pos = yearLabel.get('position');\n\n if (!pos) {\n pos = orient !== 'horizontal' ? 'top' : 'left';\n }\n\n const points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];\n const xc = (points[0][0] + points[1][0]) / 2;\n const yc = (points[0][1] + points[1][1]) / 2;\n\n const idx = orient === 'horizontal' ? 0 : 1;\n\n const posPoints = {\n top: [xc, points[idx][1]],\n bottom: [xc, points[1 - idx][1]],\n left: [points[1 - idx][0], yc],\n right: [points[idx][0], yc]\n };\n\n let name = rangeData.start.y;\n\n if (+rangeData.end.y > +rangeData.start.y) {\n name = name + '-' + rangeData.end.y;\n }\n\n const formatter = yearLabel.get('formatter');\n\n const params = {\n start: rangeData.start.y,\n end: rangeData.end.y,\n nameMap: name\n };\n\n const content = this._formatterLabel(formatter, params);\n\n const yearText = new graphic.Text({\n z2: 30,\n style: createTextStyle(yearLabel, {\n text: content\n })\n });\n yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));\n\n group.add(yearText);\n }\n\n _monthTextPositionControl(\n point: number[],\n isCenter: boolean,\n orient: LayoutOrient,\n position: 'start' | 'end',\n margin: number\n ): TextStyleProps {\n let align: ZRTextAlign = 'left';\n let vAlign: ZRTextVerticalAlign = 'top';\n let x = point[0];\n let y = point[1];\n\n if (orient === 'horizontal') {\n y = y + margin;\n\n if (isCenter) {\n align = 'center';\n }\n\n if (position === 'start') {\n vAlign = 'bottom';\n }\n }\n else {\n x = x + margin;\n\n if (isCenter) {\n vAlign = 'middle';\n }\n\n if (position === 'start') {\n align = 'right';\n }\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }\n\n // render month and year text\n _renderMonthText(calendarModel: CalendarModel, orient: LayoutOrient, group: graphic.Group) {\n const monthLabel = calendarModel.getModel('monthLabel');\n\n if (!monthLabel.get('show')) {\n return;\n }\n\n let nameMap = monthLabel.get('nameMap');\n let margin = monthLabel.get('margin');\n const pos = monthLabel.get('position');\n const align = monthLabel.get('align');\n\n const termPoints = [this._tlpoints, this._blpoints];\n\n if (zrUtil.isString(nameMap)) {\n nameMap = MONTH_TEXT[nameMap.toUpperCase() as 'CN' | 'EN'] || [];\n }\n\n const idx = pos === 'start' ? 0 : 1;\n const axis = orient === 'horizontal' ? 0 : 1;\n margin = pos === 'start' ? -margin : margin;\n const isCenter = (align === 'center');\n\n for (let i = 0; i < termPoints[idx].length - 1; i++) {\n\n const tmp = termPoints[idx][i].slice();\n const firstDay = this._firstDayOfMonth[i];\n\n if (isCenter) {\n const firstDayPoints = this._firstDayPoints[i];\n tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;\n }\n\n const formatter = monthLabel.get('formatter');\n const name = nameMap[+firstDay.m - 1];\n const params = {\n yyyy: firstDay.y,\n yy: (firstDay.y + '').slice(2),\n MM: firstDay.m,\n M: +firstDay.m,\n nameMap: name\n };\n\n const content = this._formatterLabel(formatter, params);\n\n const monthText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(\n createTextStyle(monthLabel, {text: content}),\n this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)\n )\n });\n\n group.add(monthText);\n }\n }\n\n _weekTextPositionControl(\n point: number[],\n orient: LayoutOrient,\n position: 'start' | 'end',\n margin: number,\n cellSize: number[]\n ): TextStyleProps {\n let align: ZRTextAlign = 'center';\n let vAlign: ZRTextVerticalAlign = 'middle';\n let x = point[0];\n let y = point[1];\n const isStart = position === 'start';\n\n if (orient === 'horizontal') {\n x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;\n align = isStart ? 'right' : 'left';\n }\n else {\n y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;\n vAlign = isStart ? 'bottom' : 'top';\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }\n\n // render weeks\n _renderWeekText(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n const dayLabel = calendarModel.getModel('dayLabel');\n\n if (!dayLabel.get('show')) {\n return;\n }\n\n const coordSys = calendarModel.coordinateSystem;\n const pos = dayLabel.get('position');\n let nameMap = dayLabel.get('nameMap');\n let margin = dayLabel.get('margin');\n const firstDayOfWeek = coordSys.getFirstDayOfWeek();\n\n if (zrUtil.isString(nameMap)) {\n nameMap = WEEK_TEXT[nameMap.toUpperCase() as 'CN' | 'EN'] || [];\n }\n\n let start = coordSys.getNextNDay(\n rangeData.end.time, (7 - rangeData.lweek)\n ).time;\n\n const cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];\n margin = numberUtil.parsePercent(margin, Math.min(cellSize[1], cellSize[0]));\n\n if (pos === 'start') {\n start = coordSys.getNextNDay(\n rangeData.start.time, -(7 + rangeData.fweek)\n ).time;\n margin = -margin;\n }\n\n for (let i = 0; i < 7; i++) {\n\n const tmpD = coordSys.getNextNDay(start, i);\n const point = coordSys.dataToRect([tmpD.time], false).center;\n let day = i;\n day = Math.abs((i + firstDayOfWeek) % 7);\n const weekText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(\n createTextStyle(dayLabel, {text: nameMap[day]}),\n this._weekTextPositionControl(point, orient, pos, margin, cellSize)\n )\n });\n\n group.add(weekText);\n }\n }\n}\n\nexport default CalendarView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport BoundingRect, {RectLike} from 'zrender/src/core/BoundingRect';\nimport CalendarModel from './CalendarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n LayoutOrient,\n ScaleDataValue,\n OptionDataValueDate,\n SeriesOption,\n SeriesOnCalendarOptionMixin\n} from '../../util/types';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport SeriesModel from '../../model/Series';\n\n// (24*60*60*1000)\nconst PROXIMATE_ONE_DAY = 86400000;\n\n\nexport interface CalendarParsedDateRangeInfo {\n range: [string, string],\n start: CalendarParsedDateInfo\n end: CalendarParsedDateInfo\n allDay: number\n weeks: number\n nthWeek: number\n fweek: number\n lweek: number\n}\n\nexport interface CalendarParsedDateInfo {\n /**\n * local full year, eg., '1940'\n */\n y: string\n /**\n * local month, from '01' ot '12',\n */\n m: string\n /**\n * local date, from '01' to '31' (if exists),\n */\n d: string\n /**\n * It is not date.getDay(). It is the location of the cell in a week, from 0 to 6,\n */\n day: number\n /**\n * Timestamp\n */\n time: number\n /**\n * yyyy-MM-dd\n */\n formatedDate: string\n /**\n * The original date object\n */\n date: Date\n}\n\nexport interface CalendarCellRect {\n contentShape: RectLike\n center: number[]\n tl: number[]\n tr: number[]\n br: number[]\n bl: number[]\n}\n\nclass Calendar implements CoordinateSystem, CoordinateSystemMaster {\n\n static readonly dimensions = ['time', 'value'];\n static getDimensionsInfo() {\n return [{\n name: 'time', type: 'time' as const\n }, 'value'];\n }\n\n readonly type = 'calendar';\n\n readonly dimensions = Calendar.dimensions;\n\n private _model: CalendarModel;\n\n private _rect: BoundingRect;\n\n private _sw: number;\n private _sh: number;\n private _orient: LayoutOrient;\n\n private _firstDayOfWeek: number;\n\n private _rangeInfo: CalendarParsedDateRangeInfo;\n\n private _lineWidth: number;\n\n constructor(calendarModel: CalendarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._model = calendarModel;\n }\n // Required in createListFromData\n getDimensionsInfo = Calendar.getDimensionsInfo;\n\n getRangeInfo() {\n return this._rangeInfo;\n }\n\n getModel() {\n return this._model;\n }\n\n getRect() {\n return this._rect;\n }\n\n getCellWidth() {\n return this._sw;\n }\n\n getCellHeight() {\n return this._sh;\n }\n\n getOrient() {\n return this._orient;\n }\n\n /**\n * getFirstDayOfWeek\n *\n * @example\n * 0 : start at Sunday\n * 1 : start at Monday\n *\n * @return {number}\n */\n getFirstDayOfWeek() {\n return this._firstDayOfWeek;\n }\n\n /**\n * get date info\n * }\n */\n getDateInfo(date: OptionDataValueDate): CalendarParsedDateInfo {\n\n date = numberUtil.parseDate(date);\n\n const y = date.getFullYear();\n\n const m = date.getMonth() + 1;\n const mStr = m < 10 ? '0' + m : '' + m;\n\n const d = date.getDate();\n const dStr = d < 10 ? '0' + d : '' + d;\n\n let day = date.getDay();\n\n day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);\n\n return {\n y: y + '',\n m: mStr,\n d: dStr,\n day: day,\n time: date.getTime(),\n formatedDate: y + '-' + mStr + '-' + dStr,\n date: date\n };\n }\n\n getNextNDay(date: OptionDataValueDate, n: number) {\n n = n || 0;\n if (n === 0) {\n return this.getDateInfo(date);\n }\n\n date = new Date(this.getDateInfo(date).time);\n date.setDate(date.getDate() + n);\n\n return this.getDateInfo(date);\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n\n this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');\n this._orient = this._model.get('orient');\n this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0;\n\n\n this._rangeInfo = this._getRangeInfo(this._initRangeOption());\n const weeks = this._rangeInfo.weeks || 1;\n const whNames = ['width', 'height'] as const;\n const cellSize = this._model.getCellSize().slice();\n const layoutParams = this._model.getBoxLayoutParams();\n const cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];\n\n zrUtil.each([0, 1] as const, function (idx) {\n if (cellSizeSpecified(cellSize, idx)) {\n layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];\n }\n });\n\n const whGlobal = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n const calendarRect = this._rect = layout.getLayoutRect(layoutParams, whGlobal);\n\n zrUtil.each([0, 1], function (idx) {\n if (!cellSizeSpecified(cellSize, idx)) {\n cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];\n }\n });\n\n function cellSizeSpecified(cellSize: (number | 'auto')[], idx: number): cellSize is number[] {\n return cellSize[idx] != null && cellSize[idx] !== 'auto';\n }\n\n // Has been calculated out number.\n this._sw = cellSize[0] as number;\n this._sh = cellSize[1] as number;\n }\n\n\n /**\n * Convert a time data(time, value) item to (x, y) point.\n */\n // TODO Clamp of calendar is not same with cartesian coordinate systems.\n // It will return NaN if data exceeds.\n dataToPoint(data: OptionDataValueDate | OptionDataValueDate[], clamp?: boolean) {\n zrUtil.isArray(data) && (data = data[0]);\n clamp == null && (clamp = true);\n\n const dayInfo = this.getDateInfo(data);\n const range = this._rangeInfo;\n const date = dayInfo.formatedDate;\n\n // if not in range return [NaN, NaN]\n if (clamp && !(\n dayInfo.time >= range.start.time\n && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY\n )) {\n return [NaN, NaN];\n }\n\n const week = dayInfo.day;\n const nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;\n\n if (this._orient === 'vertical') {\n return [\n this._rect.x + week * this._sw + this._sw / 2,\n this._rect.y + nthWeek * this._sh + this._sh / 2\n ];\n\n }\n\n return [\n this._rect.x + nthWeek * this._sw + this._sw / 2,\n this._rect.y + week * this._sh + this._sh / 2\n ];\n\n }\n\n /**\n * Convert a (x, y) point to time data\n */\n pointToData(point: number[]): number {\n\n const date = this.pointToDate(point);\n\n return date && date.time;\n }\n\n /**\n * Convert a time date item to (x, y) four point.\n */\n dataToRect(data: OptionDataValueDate | OptionDataValueDate[], clamp?: boolean): CalendarCellRect {\n const point = this.dataToPoint(data, clamp);\n\n return {\n contentShape: {\n x: point[0] - (this._sw - this._lineWidth) / 2,\n y: point[1] - (this._sh - this._lineWidth) / 2,\n width: this._sw - this._lineWidth,\n height: this._sh - this._lineWidth\n },\n\n center: point,\n\n tl: [\n point[0] - this._sw / 2,\n point[1] - this._sh / 2\n ],\n\n tr: [\n point[0] + this._sw / 2,\n point[1] - this._sh / 2\n ],\n\n br: [\n point[0] + this._sw / 2,\n point[1] + this._sh / 2\n ],\n\n bl: [\n point[0] - this._sw / 2,\n point[1] + this._sh / 2\n ]\n\n };\n }\n\n /**\n * Convert a (x, y) point to time date\n *\n * @param {Array} point point\n * @return {Object} date\n */\n pointToDate(point: number[]): CalendarParsedDateInfo {\n const nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;\n const nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;\n const range = this._rangeInfo.range;\n\n if (this._orient === 'vertical') {\n return this._getDateByWeeksAndDay(nthY, nthX - 1, range);\n }\n\n return this._getDateByWeeksAndDay(nthX, nthY - 1, range);\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n containPoint(point: number[]): boolean {\n console.warn('Not implemented.');\n return false;\n }\n\n /**\n * initRange\n * Normalize to an [start, end] array\n */\n private _initRangeOption(): OptionDataValueDate[] {\n let range = this._model.get('range');\n let normalizedRange: OptionDataValueDate[];\n\n // Convert [1990] to 1990\n if (zrUtil.isArray(range) && range.length === 1) {\n range = range[0];\n }\n\n if (!zrUtil.isArray(range)) {\n const rangeStr = range.toString();\n // One year.\n if (/^\\d{4}$/.test(rangeStr)) {\n normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31'];\n }\n // One month\n if (/^\\d{4}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n\n const start = this.getDateInfo(rangeStr);\n const firstDay = start.date;\n firstDay.setMonth(firstDay.getMonth() + 1);\n\n const end = this.getNextNDay(firstDay, -1);\n normalizedRange = [start.formatedDate, end.formatedDate];\n }\n // One day\n if (/^\\d{4}[\\/|-]\\d{1,2}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n normalizedRange = [rangeStr, rangeStr];\n }\n }\n else {\n normalizedRange = range;\n }\n\n if (!normalizedRange) {\n if (__DEV__) {\n zrUtil.logError('Invalid date range.');\n }\n // Not handling it.\n return range as OptionDataValueDate[];\n }\n\n const tmp = this._getRangeInfo(normalizedRange);\n\n if (tmp.start.time > tmp.end.time) {\n normalizedRange.reverse();\n }\n\n return normalizedRange;\n }\n\n /**\n * range info\n *\n * @private\n * @param {Array} range range ['2017-01-01', '2017-07-08']\n * If range[0] > range[1], they will not be reversed.\n * @return {Object} obj\n */\n _getRangeInfo(range: OptionDataValueDate[]): CalendarParsedDateRangeInfo {\n const parsedRange = [\n this.getDateInfo(range[0]),\n this.getDateInfo(range[1])\n ];\n\n let reversed;\n if (parsedRange[0].time > parsedRange[1].time) {\n reversed = true;\n parsedRange.reverse();\n }\n\n let allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY)\n - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1;\n\n // Consider case1 (#11677 #10430):\n // Set the system timezone as \"UK\", set the range to `['2016-07-01', '2016-12-31']`\n\n // Consider case2:\n // Firstly set system timezone as \"Time Zone: America/Toronto\",\n // ```\n // let first = new Date(1478412000000 - 3600 * 1000 * 2.5);\n // let second = new Date(1478412000000);\n // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;\n // ```\n // will get wrong result because of DST. So we should fix it.\n const date = new Date(parsedRange[0].time);\n const startDateNum = date.getDate();\n const endDateNum = parsedRange[1].date.getDate();\n date.setDate(startDateNum + allDay - 1);\n // The bias can not over a month, so just compare date.\n let dateNum = date.getDate();\n if (dateNum !== endDateNum) {\n const sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;\n while (\n (dateNum = date.getDate()) !== endDateNum\n && (date.getTime() - parsedRange[1].time) * sign > 0\n ) {\n allDay -= sign;\n date.setDate(dateNum - sign);\n }\n }\n\n const weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);\n const nthWeek = reversed ? -weeks + 1 : weeks - 1;\n\n reversed && parsedRange.reverse();\n\n return {\n range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate],\n start: parsedRange[0],\n end: parsedRange[1],\n allDay: allDay,\n weeks: weeks,\n // From 0.\n nthWeek: nthWeek,\n fweek: parsedRange[0].day,\n lweek: parsedRange[1].day\n };\n }\n\n /**\n * get date by nthWeeks and week day in range\n *\n * @private\n * @param {number} nthWeek the week\n * @param {number} day the week day\n * @param {Array} range [d1, d2]\n * @return {Object}\n */\n private _getDateByWeeksAndDay(nthWeek: number, day: number, range: OptionDataValueDate[]): CalendarParsedDateInfo {\n const rangeInfo = this._getRangeInfo(range);\n\n if (nthWeek > rangeInfo.weeks\n || (nthWeek === 0 && day < rangeInfo.fweek)\n || (nthWeek === rangeInfo.weeks && day > rangeInfo.lweek)\n ) {\n return null;\n }\n\n const nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;\n const date = new Date(rangeInfo.start.time);\n date.setDate(+rangeInfo.start.d + nthDay);\n\n return this.getDateInfo(date);\n }\n\n static create(ecModel: GlobalModel, api: ExtensionAPI) {\n const calendarList: Calendar[] = [];\n\n ecModel.eachComponent('calendar', function (calendarModel: CalendarModel) {\n const calendar = new Calendar(calendarModel, ecModel, api);\n calendarList.push(calendar);\n calendarModel.coordinateSystem = calendar;\n });\n\n ecModel.eachSeries(function (calendarSeries: SeriesModel) {\n if (calendarSeries.get('coordinateSystem') === 'calendar') {\n // Inject coordinate system\n calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];\n }\n });\n return calendarList;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Calendar {\n const calendarModel = finder.calendarModel as CalendarModel;\n const seriesModel = finder.seriesModel;\n\n const coordSys = calendarModel\n ? calendarModel.coordinateSystem\n : seriesModel\n ? seriesModel.coordinateSystem\n : null;\n\n return coordSys as Calendar;\n}\n\nexport default Calendar;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport CalendarView from './CalendarView';\nimport Calendar from '../../coord/calendar/Calendar';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(CalendarModel);\n registers.registerComponentView(CalendarView);\n registers.registerCoordinateSystem('calendar', Calendar);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nimport * as modelUtil from '../../util/model';\nimport * as graphicUtil from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport {parsePercent} from '../../util/number';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n Dictionary,\n ZRStyleProps,\n OptionId,\n OptionPreprocessor,\n CommonTooltipOption\n} from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport GlobalModel from '../../model/Global';\nimport ComponentView from '../../view/Component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { getECData } from '../../util/innerStore';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { isEC4CompatibleStyle, convertFromEC4CompatibleStyle } from '../../util/styleCompat';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nconst TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n} as const;\ntype TransformProp = keyof typeof TRANSFORM_PROPS;\n\ninterface GraphicComponentBaseElementOption extends\n Partial>,\n /**\n * left/right/top/bottom: (like 12, '22%', 'center', default undefined)\n * If left/rigth is set, shape.x/shape.cx/position will not be used.\n * If top/bottom is set, shape.y/shape.cy/position will not be used.\n * This mechanism is useful when you want to position a group/element\n * against the right side or the center of this container.\n */\n Partial> {\n\n /**\n * element type, mandatory.\n * Only can be omit if call setOption not at the first time and perform merge.\n */\n type?: string;\n\n id?: OptionId;\n name?: string;\n\n // Only internal usage. Use specified value does NOT make sense.\n parentId?: OptionId;\n parentOption?: GraphicComponentElementOption;\n children?: GraphicComponentElementOption[];\n hv?: [boolean, boolean];\n\n /**\n * bounding: (enum: 'all' (default) | 'raw')\n * Specify how to calculate boundingRect when locating.\n * 'all': Get uioned and transformed boundingRect\n * from both itself and its descendants.\n * This mode simplies confining a group of elements in the bounding\n * of their ancester container (e.g., using 'right: 0').\n * 'raw': Only use the boundingRect of itself and before transformed.\n * This mode is similar to css behavior, which is useful when you\n * want an element to be able to overflow its container. (Consider\n * a rotated circle needs to be located in a corner.)\n */\n bounding?: 'raw' | 'all';\n\n /**\n * info: custom info. enables user to mount some info on elements and use them\n * in event handlers. Update them only when user specified, otherwise, remain.\n */\n info?: GraphicExtraElementInfo;\n\n textContent?: GraphicComponentTextOption;\n textConfig?: ElementTextConfig;\n\n $action?: 'merge' | 'replace' | 'remove';\n\n tooltip?: CommonTooltipOption;\n};\ninterface GraphicComponentDisplayableOption extends\n GraphicComponentBaseElementOption,\n Partial> {\n\n style?: ZRStyleProps;\n\n // TODO: states?\n // emphasis?: GraphicComponentDisplayableOptionOnState;\n // blur?: GraphicComponentDisplayableOptionOnState;\n // select?: GraphicComponentDisplayableOptionOnState;\n}\n// TODO: states?\n// interface GraphicComponentDisplayableOptionOnState extends Partial> {\n// style?: ZRStyleProps;\n// }\ninterface GraphicComponentGroupOption extends GraphicComponentBaseElementOption {\n type?: 'group';\n\n /**\n * width/height: (can only be pixel value, default 0)\n * Only be used to specify contianer(group) size, if needed. And\n * can not be percentage value (like '33%'). See the reason in the\n * layout algorithm below.\n */\n width?: number;\n height?: number;\n\n // TODO: Can only set focus, blur on the root element.\n // children: Omit[];\n children: GraphicComponentElementOption[];\n}\nexport interface GraphicComponentZRPathOption extends GraphicComponentDisplayableOption {\n shape?: PathProps['shape'];\n}\nexport interface GraphicComponentImageOption extends GraphicComponentDisplayableOption {\n type?: 'image';\n style?: ImageStyleProps;\n // TODO: states?\n // emphasis?: GraphicComponentImageOptionOnState;\n // blur?: GraphicComponentImageOptionOnState;\n // select?: GraphicComponentImageOptionOnState;\n}\n// TODO: states?\n// interface GraphicComponentImageOptionOnState extends GraphicComponentDisplayableOptionOnState {\n// style?: ImageStyleProps;\n// }\ninterface GraphicComponentTextOption\n extends Omit {\n type?: 'text';\n style?: TextStyleProps;\n}\ntype GraphicComponentElementOption =\n GraphicComponentGroupOption\n | GraphicComponentZRPathOption\n | GraphicComponentImageOption\n | GraphicComponentTextOption;\n// type GraphicComponentElementOptionOnState =\n// GraphicComponentDisplayableOptionOnState\n// | GraphicComponentImageOptionOnState;\n\ntype GraphicExtraElementInfo = Dictionary;\n\ntype ElementMap = zrUtil.HashMap;\n\nconst inner = modelUtil.makeInner<{\n __ecGraphicWidthOption: number;\n __ecGraphicHeightOption: number;\n __ecGraphicWidth: number;\n __ecGraphicHeight: number;\n __ecGraphicId: string;\n}, Element>();\n\n\nconst _nonShapeGraphicElements = {\n\n // Reserved but not supported in graphic component.\n path: null as unknown,\n compoundPath: null as unknown,\n\n // Supported in graphic component.\n group: graphicUtil.Group,\n image: graphicUtil.Image,\n text: graphicUtil.Text\n} as const;\ntype NonShapeGraphicElementType = keyof typeof _nonShapeGraphicElements;\n\n// ------------------------\n// Preprocessor\n// ------------------------\n\nconst preprocessor: OptionPreprocessor = function (option) {\n const graphicOption = option.graphic as GraphicComponentOption | GraphicComponentOption[];\n\n // Convert\n // {graphic: [{left: 10, type: 'circle'}, ...]}\n // or\n // {graphic: {left: 10, type: 'circle'}}\n // to\n // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}\n if (zrUtil.isArray(graphicOption)) {\n if (!graphicOption[0] || !graphicOption[0].elements) {\n option.graphic = [{elements: graphicOption}];\n }\n else {\n // Only one graphic instance can be instantiated. (We dont\n // want that too many views are created in echarts._viewMap)\n option.graphic = [(option.graphic as any)[0]];\n }\n }\n else if (graphicOption && !graphicOption.elements) {\n option.graphic = [{elements: [graphicOption]}];\n }\n};\n\n// ------------------------\n// Model\n// ------------------------\n\nexport type GraphicComponentLooseOption = (GraphicComponentOption | GraphicComponentElementOption) & {\n mainType?: 'graphic';\n};\n\nexport interface GraphicComponentOption extends ComponentOption {\n // Note: elements is always behind its ancestors in this elements array.\n elements?: GraphicComponentElementOption[];\n // parentId: string;\n};\n\n\nclass GraphicComponentModel extends ComponentModel {\n\n static type = 'graphic';\n type = GraphicComponentModel.type;\n\n preventAutoZ = true;\n\n static defaultOption: GraphicComponentOption = {\n elements: []\n // parentId: null\n };\n\n /**\n * Save el options for the sake of the performance (only update modified graphics).\n * The order is the same as those in option. (ancesters -> descendants)\n */\n private _elOptionsToUpdate: GraphicComponentElementOption[];\n\n mergeOption(option: GraphicComponentOption, ecModel: GlobalModel): void {\n // Prevent default merge to elements\n const elements = this.option.elements;\n this.option.elements = null;\n\n super.mergeOption(option, ecModel);\n\n this.option.elements = elements;\n }\n\n optionUpdated(newOption: GraphicComponentOption, isInit: boolean): void {\n const thisOption = this.option;\n const newList = (isInit ? thisOption : newOption).elements;\n const existList = thisOption.elements = isInit ? [] : thisOption.elements;\n\n const flattenedList = [] as GraphicComponentElementOption[];\n this._flatten(newList, flattenedList, null);\n\n const mappingResult = modelUtil.mappingToExists(existList, flattenedList, 'normalMerge');\n\n // Clear elOptionsToUpdate\n const elOptionsToUpdate = this._elOptionsToUpdate = [] as GraphicComponentElementOption[];\n\n zrUtil.each(mappingResult, function (resultItem, index) {\n const newElOption = resultItem.newOption as GraphicComponentElementOption;\n\n if (__DEV__) {\n zrUtil.assert(\n zrUtil.isObject(newElOption) || resultItem.existing,\n 'Empty graphic option definition'\n );\n }\n\n if (!newElOption) {\n return;\n }\n\n elOptionsToUpdate.push(newElOption);\n\n setKeyInfoToNewElOption(resultItem, newElOption);\n\n mergeNewElOptionToExist(existList, index, newElOption);\n\n setLayoutInfoToExist(existList[index], newElOption);\n\n }, this);\n\n // Clean\n for (let i = existList.length - 1; i >= 0; i--) {\n if (existList[i] == null) {\n existList.splice(i, 1);\n }\n else {\n // $action should be volatile, otherwise option gotten from\n // `getOption` will contain unexpected $action.\n delete existList[i].$action;\n }\n }\n }\n\n /**\n * Convert\n * [{\n * type: 'group',\n * id: 'xx',\n * children: [{type: 'circle'}, {type: 'polygon'}]\n * }]\n * to\n * [\n * {type: 'group', id: 'xx'},\n * {type: 'circle', parentId: 'xx'},\n * {type: 'polygon', parentId: 'xx'}\n * ]\n */\n private _flatten(\n optionList: GraphicComponentElementOption[],\n result: GraphicComponentElementOption[],\n parentOption: GraphicComponentElementOption\n ): void {\n zrUtil.each(optionList, function (option) {\n if (!option) {\n return;\n }\n\n if (parentOption) {\n option.parentOption = parentOption;\n }\n\n result.push(option);\n\n const children = option.children;\n if (option.type === 'group' && children) {\n this._flatten(children, result, option);\n }\n // Deleting for JSON output, and for not affecting group creation.\n delete option.children;\n }, this);\n }\n\n // FIXME\n // Pass to view using payload? setOption has a payload?\n useElOptionsToUpdate(): GraphicComponentElementOption[] {\n const els = this._elOptionsToUpdate;\n // Clear to avoid render duplicately when zooming.\n this._elOptionsToUpdate = null;\n return els;\n }\n}\n\n// ------------------------\n// View\n// ------------------------\n\nclass GraphicComponentView extends ComponentView {\n\n static type = 'graphic';\n type = GraphicComponentView.type;\n\n private _elMap: ElementMap;\n private _lastGraphicModel: GraphicComponentModel;\n\n init() {\n this._elMap = zrUtil.createHashMap();\n }\n\n render(graphicModel: GraphicComponentModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n\n // Having leveraged between use cases and algorithm complexity, a very\n // simple layout mechanism is used:\n // The size(width/height) can be determined by itself or its parent (not\n // implemented yet), but can not by its children. (Top-down travel)\n // The location(x/y) can be determined by the bounding rect of itself\n // (can including its descendants or not) and the size of its parent.\n // (Bottom-up travel)\n\n // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,\n // view will be reused.\n if (graphicModel !== this._lastGraphicModel) {\n this._clear();\n }\n this._lastGraphicModel = graphicModel;\n\n this._updateElements(graphicModel);\n this._relocate(graphicModel, api);\n }\n\n /**\n * Update graphic elements.\n */\n private _updateElements(graphicModel: GraphicComponentModel): void {\n const elOptionsToUpdate = graphicModel.useElOptionsToUpdate();\n\n if (!elOptionsToUpdate) {\n return;\n }\n\n const elMap = this._elMap;\n const rootGroup = this.group;\n\n // Top-down tranverse to assign graphic settings to each elements.\n zrUtil.each(elOptionsToUpdate, function (elOption) {\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const elExisting = id != null ? elMap.get(id) : null;\n const parentId = modelUtil.convertOptionIdName(elOption.parentId, null);\n const targetElParent = (parentId != null ? elMap.get(parentId) : rootGroup) as graphicUtil.Group;\n\n const elType = elOption.type;\n const elOptionStyle = (elOption as GraphicComponentDisplayableOption).style;\n if (elType === 'text' && elOptionStyle) {\n // In top/bottom mode, textVerticalAlign should not be used, which cause\n // inaccurately locating.\n if (elOption.hv && elOption.hv[1]) {\n (elOptionStyle as any).textVerticalAlign =\n (elOptionStyle as any).textBaseline =\n (elOptionStyle as TextStyleProps).verticalAlign =\n (elOptionStyle as TextStyleProps).align = null;\n }\n }\n\n let textContentOption = (elOption as GraphicComponentZRPathOption).textContent;\n let textConfig = (elOption as GraphicComponentZRPathOption).textConfig;\n if (elOptionStyle\n && isEC4CompatibleStyle(elOptionStyle, elType, !!textConfig, !!textContentOption)\n ) {\n const convertResult =\n convertFromEC4CompatibleStyle(elOptionStyle, elType, true) as GraphicComponentZRPathOption;\n if (!textConfig && convertResult.textConfig) {\n textConfig = (elOption as GraphicComponentZRPathOption).textConfig = convertResult.textConfig;\n }\n if (!textContentOption && convertResult.textContent) {\n textContentOption = convertResult.textContent;\n }\n }\n\n // Remove unnecessary props to avoid potential problems.\n const elOptionCleaned = getCleanedElOption(elOption);\n\n // For simple, do not support parent change, otherwise reorder is needed.\n if (__DEV__) {\n elExisting && zrUtil.assert(\n targetElParent === elExisting.parent,\n 'Changing parent is not supported.'\n );\n }\n\n const $action = elOption.$action || 'merge';\n if ($action === 'merge') {\n elExisting\n ? elExisting.attr(elOptionCleaned)\n : createEl(id, targetElParent, elOptionCleaned, elMap);\n }\n else if ($action === 'replace') {\n removeEl(elExisting, elMap);\n createEl(id, targetElParent, elOptionCleaned, elMap);\n }\n else if ($action === 'remove') {\n removeEl(elExisting, elMap);\n }\n\n const el = elMap.get(id);\n\n if (el && textContentOption) {\n if ($action === 'merge') {\n const textContentExisting = el.getTextContent();\n textContentExisting\n ? textContentExisting.attr(textContentOption)\n : el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n else if ($action === 'replace') {\n el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n }\n\n if (el) {\n const elInner = inner(el);\n elInner.__ecGraphicWidthOption = (elOption as GraphicComponentGroupOption).width;\n elInner.__ecGraphicHeightOption = (elOption as GraphicComponentGroupOption).height;\n setEventData(el, graphicModel, elOption);\n\n graphicUtil.setTooltipConfig({\n el: el,\n componentModel: graphicModel,\n itemName: el.name,\n itemTooltipOption: elOption.tooltip\n });\n }\n });\n }\n\n /**\n * Locate graphic elements.\n */\n private _relocate(graphicModel: GraphicComponentModel, api: ExtensionAPI): void {\n const elOptions = graphicModel.option.elements;\n const rootGroup = this.group;\n const elMap = this._elMap;\n const apiWidth = api.getWidth();\n const apiHeight = api.getHeight();\n\n // Top-down to calculate percentage width/height of group\n for (let i = 0; i < elOptions.length; i++) {\n const elOption = elOptions[i];\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const el = id != null ? elMap.get(id) : null;\n\n if (!el || !el.isGroup) {\n continue;\n }\n const parentEl = el.parent;\n const isParentRoot = parentEl === rootGroup;\n // Like 'position:absolut' in css, default 0.\n const elInner = inner(el);\n const parentElInner = inner(parentEl);\n elInner.__ecGraphicWidth = parsePercent(\n elInner.__ecGraphicWidthOption,\n isParentRoot ? apiWidth : parentElInner.__ecGraphicWidth\n ) || 0;\n elInner.__ecGraphicHeight = parsePercent(\n elInner.__ecGraphicHeightOption,\n isParentRoot ? apiHeight : parentElInner.__ecGraphicHeight\n ) || 0;\n }\n\n // Bottom-up tranvese all elements (consider ec resize) to locate elements.\n for (let i = elOptions.length - 1; i >= 0; i--) {\n const elOption = elOptions[i];\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const el = id != null ? elMap.get(id) : null;\n\n if (!el) {\n continue;\n }\n\n const parentEl = el.parent;\n const parentElInner = inner(parentEl);\n const containerInfo = parentEl === rootGroup\n ? {\n width: apiWidth,\n height: apiHeight\n }\n : {\n width: parentElInner.__ecGraphicWidth,\n height: parentElInner.__ecGraphicHeight\n };\n\n // PENDING\n // Currently, when `bounding: 'all'`, the union bounding rect of the group\n // does not include the rect of [0, 0, group.width, group.height], which\n // is probably weird for users. Should we make a break change for it?\n layoutUtil.positionElement(\n el, elOption, containerInfo, null,\n {hv: elOption.hv, boundingMode: elOption.bounding}\n );\n }\n }\n\n /**\n * Clear all elements.\n */\n private _clear(): void {\n const elMap = this._elMap;\n elMap.each(function (el) {\n removeEl(el, elMap);\n });\n this._elMap = zrUtil.createHashMap();\n }\n\n dispose(): void {\n this._clear();\n }\n}\n\nfunction createEl(\n id: string,\n targetElParent: graphicUtil.Group,\n elOption: GraphicComponentElementOption,\n elMap: ElementMap\n): void {\n const graphicType = elOption.type;\n\n if (__DEV__) {\n zrUtil.assert(graphicType, 'graphic type MUST be set');\n }\n\n const Clz = (\n zrUtil.hasOwn(_nonShapeGraphicElements, graphicType)\n // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n ? _nonShapeGraphicElements[graphicType as NonShapeGraphicElementType]\n : graphicUtil.getShapeClass(graphicType)\n ) as { new(opt: GraphicComponentElementOption): Element };\n\n if (__DEV__) {\n zrUtil.assert(Clz, 'graphic type can not be found');\n }\n\n const el = new Clz(elOption);\n targetElParent.add(el);\n elMap.set(id, el);\n inner(el).__ecGraphicId = id;\n}\n\nfunction removeEl(elExisting: Element, elMap: ElementMap): void {\n const existElParent = elExisting && elExisting.parent;\n if (existElParent) {\n elExisting.type === 'group' && elExisting.traverse(function (el) {\n removeEl(el, elMap);\n });\n elMap.removeKey(inner(elExisting).__ecGraphicId);\n existElParent.remove(elExisting);\n }\n}\n\n// Remove unnecessary props to avoid potential problems.\nfunction getCleanedElOption(\n elOption: GraphicComponentElementOption\n): Omit {\n elOption = zrUtil.extend({}, elOption);\n zrUtil.each(\n ['id', 'parentId', '$action', 'hv', 'bounding', 'textContent'].concat(layoutUtil.LOCATION_PARAMS),\n function (name) {\n delete (elOption as any)[name];\n }\n );\n return elOption;\n}\n\nfunction isSetLoc(\n obj: GraphicComponentElementOption,\n props: ('left' | 'right' | 'top' | 'bottom')[]\n): boolean {\n let isSet;\n zrUtil.each(props, function (prop) {\n obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);\n });\n return isSet;\n}\n\nfunction setKeyInfoToNewElOption(\n resultItem: ReturnType[number],\n newElOption: GraphicComponentElementOption\n): void {\n const existElOption = resultItem.existing as GraphicComponentElementOption;\n\n // Set id and type after id assigned.\n newElOption.id = resultItem.keyInfo.id;\n !newElOption.type && existElOption && (newElOption.type = existElOption.type);\n\n // Set parent id if not specified\n if (newElOption.parentId == null) {\n const newElParentOption = newElOption.parentOption;\n if (newElParentOption) {\n newElOption.parentId = newElParentOption.id;\n }\n else if (existElOption) {\n newElOption.parentId = existElOption.parentId;\n }\n }\n\n // Clear\n newElOption.parentOption = null;\n}\n\nfunction mergeNewElOptionToExist(\n existList: GraphicComponentElementOption[],\n index: number,\n newElOption: GraphicComponentElementOption\n): void {\n // Update existing options, for `getOption` feature.\n const newElOptCopy = zrUtil.extend({}, newElOption);\n const existElOption = existList[index];\n\n const $action = newElOption.$action || 'merge';\n if ($action === 'merge') {\n if (existElOption) {\n\n if (__DEV__) {\n const newType = newElOption.type;\n zrUtil.assert(\n !newType || existElOption.type === newType,\n 'Please set $action: \"replace\" to change `type`'\n );\n }\n\n // We can ensure that newElOptCopy and existElOption are not\n // the same object, so `merge` will not change newElOptCopy.\n zrUtil.merge(existElOption, newElOptCopy, true);\n // Rigid body, use ignoreSize.\n layoutUtil.mergeLayoutParam(existElOption, newElOptCopy, {ignoreSize: true});\n // Will be used in render.\n layoutUtil.copyLayoutParams(newElOption, existElOption);\n }\n else {\n existList[index] = newElOptCopy;\n }\n }\n else if ($action === 'replace') {\n existList[index] = newElOptCopy;\n }\n else if ($action === 'remove') {\n // null will be cleaned later.\n existElOption && (existList[index] = null);\n }\n}\n\nfunction setLayoutInfoToExist(\n existItem: GraphicComponentElementOption,\n newElOption: GraphicComponentElementOption\n) {\n if (!existItem) {\n return;\n }\n existItem.hv = newElOption.hv = [\n // Rigid body, dont care `width`.\n isSetLoc(newElOption, ['left', 'right']),\n // Rigid body, dont care `height`.\n isSetLoc(newElOption, ['top', 'bottom'])\n ];\n // Give default group size. Otherwise layout error may occur.\n if (existItem.type === 'group') {\n const existingGroupOpt = existItem as GraphicComponentGroupOption;\n const newGroupOpt = newElOption as GraphicComponentGroupOption;\n existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0);\n existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0);\n }\n}\n\nfunction setEventData(\n el: Element,\n graphicModel: GraphicComponentModel,\n elOption: GraphicComponentElementOption\n): void {\n let eventData = getECData(el).eventData;\n // Simple optimize for large amount of elements that no need event.\n if (!el.silent && !el.ignore && !eventData) {\n eventData = getECData(el).eventData = {\n componentType: 'graphic',\n componentIndex: graphicModel.componentIndex,\n name: el.name\n };\n }\n\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n if (eventData) {\n eventData.info = elOption.info;\n }\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(GraphicComponentModel);\n registers.registerComponentView(GraphicComponentView);\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport DataZoomModel from './DataZoomModel';\nimport { indexOf, createHashMap, assert, HashMap } from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\n\n\nexport interface DataZoomPayloadBatchItem {\n dataZoomId: string;\n start?: number;\n end?: number;\n startValue?: number;\n endValue?: number;\n}\n\nexport interface DataZoomReferCoordSysInfo {\n model: CoordinateSystemHostModel;\n // Notice: if two dataZooms refer the same coordinamte system model,\n // (1) The axis they refered may different\n // (2) The sequence the axisModels matters, may different in\n // different dataZooms.\n axisModels: AxisBaseModel[];\n}\n\nexport const DATA_ZOOM_AXIS_DIMENSIONS = [\n 'x', 'y', 'radius', 'angle', 'single'\n] as const;\nexport type DataZoomAxisDimension =\n 'x' | 'y' | 'radius' | 'angle' | 'single';\ntype DataZoomAxisMainType =\n 'xAxis' | 'yAxis' | 'radiusAxis' | 'angleAxis' | 'singleAxis';\ntype DataZoomAxisIndexPropName =\n 'xAxisIndex' | 'yAxisIndex' | 'radiusAxisIndex' | 'angleAxisIndex' | 'singleAxisIndex';\ntype DataZoomAxisIdPropName =\n 'xAxisId' | 'yAxisId' | 'radiusAxisId' | 'angleAxisId' | 'singleAxisId';\nexport type DataZoomCoordSysMainType = 'polar' | 'grid' | 'singleAxis';\n\n// Supported coords.\n// FIXME: polar has been broken (but rarely used).\nconst SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis'] as const;\n\nexport function isCoordSupported(seriesModel: SeriesModel): boolean {\n const coordType = seriesModel.get('coordinateSystem');\n return indexOf(SERIES_COORDS, coordType) >= 0;\n}\n\nexport function getAxisMainType(axisDim: DataZoomAxisDimension): DataZoomAxisMainType {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'Axis' as DataZoomAxisMainType;\n}\n\nexport function getAxisIndexPropName(axisDim: DataZoomAxisDimension): DataZoomAxisIndexPropName {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'AxisIndex' as DataZoomAxisIndexPropName;\n}\n\nexport function getAxisIdPropName(axisDim: DataZoomAxisDimension): DataZoomAxisIdPropName {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'AxisId' as DataZoomAxisIdPropName;\n}\n\n/**\n * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.\n * This function finds all linked dataZoomModels start from the given payload.\n */\nexport function findEffectedDataZooms(ecModel: GlobalModel, payload: Payload): DataZoomModel[] {\n\n // Key: `DataZoomAxisDimension`\n const axisRecords = createHashMap();\n const effectedModels: DataZoomModel[] = [];\n // Key: uid of dataZoomModel\n const effectedModelMap = createHashMap();\n\n // Find the dataZooms specified by payload.\n ecModel.eachComponent(\n { mainType: 'dataZoom', query: payload },\n function (dataZoomModel: DataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid)) {\n addToEffected(dataZoomModel);\n }\n }\n );\n\n // Start from the given dataZoomModels, travel the graph to find\n // all of the linked dataZoom models.\n let foundNewLink;\n do {\n foundNewLink = false;\n ecModel.eachComponent('dataZoom', processSingle);\n }\n while (foundNewLink);\n\n function processSingle(dataZoomModel: DataZoomModel): void {\n if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) {\n addToEffected(dataZoomModel);\n foundNewLink = true;\n }\n }\n\n function addToEffected(dataZoom: DataZoomModel): void {\n effectedModelMap.set(dataZoom.uid, true);\n effectedModels.push(dataZoom);\n markAxisControlled(dataZoom);\n }\n\n function isLinked(dataZoomModel: DataZoomModel): boolean {\n let isLink = false;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisIdxArr = axisRecords.get(axisDim);\n if (axisIdxArr && axisIdxArr[axisIndex]) {\n isLink = true;\n }\n });\n return isLink;\n }\n\n function markAxisControlled(dataZoomModel: DataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n (\n axisRecords.get(axisDim) || axisRecords.set(axisDim, [])\n )[axisIndex] = true;\n });\n }\n\n return effectedModels;\n}\n\n/**\n * Find the first target coordinate system.\n * Available after model built.\n *\n * @return Like {\n * grid: [\n * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},\n * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},\n * ...\n * ], // cartesians must not be null/undefined.\n * polar: [\n * {model: coord0, axisModels: [axis4], coordIndex: 0},\n * ...\n * ], // polars must not be null/undefined.\n * singleAxis: [\n * {model: coord0, axisModels: [], coordIndex: 0}\n * ]\n * }\n */\nexport function collectReferCoordSysModelInfo(dataZoomModel: DataZoomModel): {\n infoList: DataZoomReferCoordSysInfo[];\n // Key: coordSysModel.uid\n infoMap: HashMap;\n} {\n const ecModel = dataZoomModel.ecModel;\n const coordSysInfoWrap = {\n infoList: [] as DataZoomReferCoordSysInfo[],\n infoMap: createHashMap()\n };\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel;\n if (!axisModel) {\n return;\n }\n const coordSysModel = axisModel.getCoordSysModel();\n if (!coordSysModel) {\n return;\n }\n\n const coordSysUid = coordSysModel.uid;\n let coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid);\n if (!coordSysInfo) {\n coordSysInfo = { model: coordSysModel, axisModels: [] };\n coordSysInfoWrap.infoList.push(coordSysInfo);\n coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo);\n }\n\n coordSysInfo.axisModels.push(axisModel);\n });\n\n return coordSysInfoWrap;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { each, createHashMap, merge, HashMap, assert } from 'zrender/src/core/util';\nimport AxisProxy from './AxisProxy';\nimport ComponentModel from '../../model/Component';\nimport {\n LayoutOrient,\n ComponentOption,\n LabelOption\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport {\n getAxisMainType, DATA_ZOOM_AXIS_DIMENSIONS, DataZoomAxisDimension\n} from './helper';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport { MULTIPLE_REFERRING, SINGLE_REFERRING } from '../../util/model';\n\n\nexport interface DataZoomOption extends ComponentOption {\n\n mainType?: 'dataZoom'\n\n /**\n * Default auto by axisIndex\n */\n orient?: LayoutOrient\n\n /**\n * Default the first horizontal category axis.\n */\n xAxisIndex?: number | number[]\n xAxisId?: string | string[]\n\n /**\n * Default the first vertical category axis.\n */\n yAxisIndex?: number | number[]\n yAxisId?: string | string[]\n\n radiusAxisIndex?: number | number[]\n radiusAxisId?: string | string[]\n angleAxisIndex?: number | number[]\n angleAxisId?: string | string[]\n\n singleAxisIndex?: number | number[]\n singleAxisId?: string | string[]\n\n /**\n * Possible values: 'filter' or 'empty' or 'weakFilter'.\n * 'filter': data items which are out of window will be removed. This option is\n * applicable when filtering outliers. For each data item, it will be\n * filtered if one of the relevant dimensions is out of the window.\n * 'weakFilter': data items which are out of window will be removed. This option\n * is applicable when filtering outliers. For each data item, it will be\n * filtered only if all of the relevant dimensions are out of the same\n * side of the window.\n * 'empty': data items which are out of window will be set to empty.\n * This option is applicable when user should not neglect\n * that there are some data items out of window.\n * 'none': Do not filter.\n * Taking line chart as an example, line will be broken in\n * the filtered points when filterModel is set to 'empty', but\n * be connected when set to 'filter'.\n */\n filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'\n\n /**\n * Dispatch action by the fixed rate, avoid frequency.\n * default 100. Do not throttle when use null/undefined.\n * If animation === true and animationDurationUpdate > 0,\n * default value is 100, otherwise 20.\n */\n throttle?: number | null | undefined\n /**\n * Start percent. 0 ~ 100\n */\n start?: number\n /**\n * End percent. 0 ~ 100\n */\n end?: number\n /**\n * Start value. If startValue specified, start is ignored\n */\n startValue?: number | string | Date\n /**\n * End value. If endValue specified, end is ignored.\n */\n endValue?: number | string | Date\n /**\n * Min span percent, 0 - 100\n * The range of dataZoom can not be smaller than that.\n */\n minSpan?: number\n /**\n * Max span percent, 0 - 100\n * The range of dataZoom can not be larger than that.\n */\n maxSpan?: number\n\n minValueSpan?: number\n\n maxValueSpan?: number\n\n rangeMode?: ['value' | 'percent', 'value' | 'percent']\n\n realtime?: boolean\n\n // Available when type is slider\n textStyle?: LabelOption\n}\n\ntype RangeOption = Pick;\n\nexport type DataZoomExtendedAxisBaseModel = AxisBaseModel & {\n __dzAxisProxy: AxisProxy\n};\n\nclass DataZoomAxisInfo {\n indexList: number[] = [];\n indexMap: boolean[] = [];\n\n add(axisCmptIdx: number) {\n // Remove duplication.\n if (!this.indexMap[axisCmptIdx]) {\n this.indexList.push(axisCmptIdx);\n this.indexMap[axisCmptIdx] = true;\n }\n }\n}\nexport type DataZoomTargetAxisInfoMap = HashMap;\n\nclass DataZoomModel extends ComponentModel {\n static type = 'dataZoom';\n type = DataZoomModel.type;\n\n static dependencies = [\n 'xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox'\n ];\n\n\n static defaultOption: DataZoomOption = {\n zlevel: 0,\n z: 4, // Higher than normal component (z: 2).\n\n filterMode: 'filter',\n\n start: 0,\n end: 100\n };\n\n private _autoThrottle = true;\n\n private _orient: LayoutOrient;\n\n private _targetAxisInfoMap: DataZoomTargetAxisInfoMap;\n\n private _noTarget: boolean = true;\n\n /**\n * It is `[rangeModeForMin, rangeModeForMax]`.\n * The optional values for `rangeMode`:\n * + `'value'` mode: the axis extent will always be determined by\n * `dataZoom.startValue` and `dataZoom.endValue`, despite\n * how data like and how `axis.min` and `axis.max` are.\n * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,\n * where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,\n * and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.\n * Axis extent will be determined by the result of the percent of `[dMin, dMax]`.\n *\n * For example, when users are using dynamic data (update data periodically via `setOption`),\n * if in `'value`' mode, the window will be kept in a fixed value range despite how\n * data are appended, while if in `'percent'` mode, whe window range will be changed alone with\n * the appended data (suppose `axis.min` and `axis.max` are not specified).\n */\n private _rangePropMode: DataZoomOption['rangeMode'] = ['percent', 'percent'];\n\n /**\n * @readonly\n */\n settledOption: Opts;\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel): void {\n\n const inputRawOption = retrieveRawOption(option);\n\n /**\n * Suppose a \"main process\" start at the point that model prepared (that is,\n * model initialized or merged or method called in `action`).\n * We should keep the `main process` idempotent, that is, given a set of values\n * on `option`, we get the same result.\n *\n * But sometimes, values on `option` will be updated for providing users\n * a \"final calculated value\" (`dataZoomProcessor` will do that). Those value\n * should not be the base/input of the `main process`.\n *\n * So in that case we should save and keep the input of the `main process`\n * separately, called `settledOption`.\n *\n * For example, consider the case:\n * (Step_1) brush zoom the grid by `toolbox.dataZoom`,\n * where the original input `option.startValue`, `option.endValue` are earsed by\n * calculated value.\n * (Step)2) click the legend to hide and show a series,\n * where the new range is calculated by the earsed `startValue` and `endValue`,\n * which brings incorrect result.\n */\n this.settledOption = inputRawOption;\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._doInit(inputRawOption);\n }\n\n mergeOption(newOption: Opts): void {\n const inputRawOption = retrieveRawOption(newOption);\n\n //FIX #2591\n merge(this.option, newOption, true);\n merge(this.settledOption, inputRawOption, true);\n\n this._doInit(inputRawOption);\n }\n\n private _doInit(inputRawOption: Opts): void {\n const thisOption = this.option;\n\n // if (!env.canvasSupported) {\n // thisOption.realtime = false;\n // }\n\n this._setDefaultThrottle(inputRawOption);\n\n this._updateRangeUse(inputRawOption);\n\n const settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names, index) {\n // start/end has higher priority over startValue/endValue if they\n // both set, but we should make chart.setOption({endValue: 1000})\n // effective, rather than chart.setOption({endValue: 1000, end: null}).\n if (this._rangePropMode[index] === 'value') {\n thisOption[names[0]] = settledOption[names[0]] = null;\n }\n // Otherwise do nothing and use the merge result.\n }, this);\n\n this._resetTarget();\n }\n\n private _resetTarget() {\n const optionOrient = this.get('orient', true);\n const targetAxisIndexMap = this._targetAxisInfoMap = createHashMap();\n\n const hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap);\n\n if (hasAxisSpecified) {\n this._orient = optionOrient || this._makeAutoOrientByTargetAxis();\n }\n else {\n this._orient = optionOrient || 'horizontal';\n this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient);\n }\n\n this._noTarget = true;\n targetAxisIndexMap.each(function (axisInfo) {\n if (axisInfo.indexList.length) {\n this._noTarget = false;\n }\n }, this);\n }\n\n private _fillSpecifiedTargetAxis(targetAxisIndexMap: DataZoomTargetAxisInfoMap): boolean {\n let hasAxisSpecified = false;\n\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n const refering = this.getReferringComponents(getAxisMainType(axisDim), MULTIPLE_REFERRING);\n // When user set axisIndex as a empty array, we think that user specify axisIndex\n // but do not want use auto mode. Because empty array may be encountered when\n // some error occured.\n if (!refering.specified) {\n return;\n }\n hasAxisSpecified = true;\n const axisInfo = new DataZoomAxisInfo();\n each(refering.models, function (axisModel) {\n axisInfo.add(axisModel.componentIndex);\n });\n targetAxisIndexMap.set(axisDim, axisInfo);\n }, this);\n\n return hasAxisSpecified;\n }\n\n private _fillAutoTargetAxisByOrient(targetAxisIndexMap: DataZoomTargetAxisInfoMap, orient: LayoutOrient): void {\n const ecModel = this.ecModel;\n let needAuto = true;\n\n // Find axis that parallel to dataZoom as default.\n if (needAuto) {\n const axisDim = orient === 'vertical' ? 'y' : 'x';\n const axisModels = ecModel.findComponents({ mainType: axisDim + 'Axis' });\n setParallelAxis(axisModels, axisDim);\n }\n // Find axis that parallel to dataZoom as default.\n if (needAuto) {\n const axisModels = ecModel.findComponents({\n mainType: 'singleAxis',\n filter: (axisModel: SingleAxisModel) => axisModel.get('orient', true) === orient\n });\n setParallelAxis(axisModels, 'single');\n }\n\n function setParallelAxis(axisModels: ComponentModel[], axisDim: DataZoomAxisDimension): void {\n // At least use the first parallel axis as the target axis.\n const axisModel = axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModel.componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n\n // Find parallel axes in the same grid.\n if (axisDim === 'x' || axisDim === 'y') {\n const gridModel = axisModel.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n gridModel && each(axisModels, function (axModel) {\n if (axisModel.componentIndex !== axModel.componentIndex\n && gridModel === axModel.getReferringComponents('grid', SINGLE_REFERRING).models[0]\n ) {\n axisInfo.add(axModel.componentIndex);\n }\n });\n }\n }\n\n if (needAuto) {\n // If no parallel axis, find the first category axis as default. (Also consider polar).\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n if (!needAuto) {\n return;\n }\n const axisModels = ecModel.findComponents({\n mainType: getAxisMainType(axisDim),\n filter: (axisModel: SingleAxisModel) => axisModel.get('type', true) === 'category'\n });\n if (axisModels[0]) {\n const axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModels[0].componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n }\n }, this);\n }\n }\n\n private _makeAutoOrientByTargetAxis(): LayoutOrient {\n let dim: string;\n\n // Find the first axis\n this.eachTargetAxis(function (axisDim) {\n !dim && (dim = axisDim);\n }, this);\n\n return dim === 'y' ? 'vertical' : 'horizontal';\n }\n\n private _setDefaultThrottle(inputRawOption: DataZoomOption): void {\n // When first time user set throttle, auto throttle ends.\n if (inputRawOption.hasOwnProperty('throttle')) {\n this._autoThrottle = false;\n }\n if (this._autoThrottle) {\n const globalOption = this.ecModel.option;\n this.option.throttle = (\n globalOption.animation && globalOption.animationDurationUpdate > 0\n ) ? 100 : 20;\n }\n }\n\n private _updateRangeUse(inputRawOption: RangeOption): void {\n const rangePropMode = this._rangePropMode;\n const rangeModeInOption = this.get('rangeMode');\n\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names, index) {\n const percentSpecified = inputRawOption[names[0]] != null;\n const valueSpecified = inputRawOption[names[1]] != null;\n if (percentSpecified && !valueSpecified) {\n rangePropMode[index] = 'percent';\n }\n else if (!percentSpecified && valueSpecified) {\n rangePropMode[index] = 'value';\n }\n else if (rangeModeInOption) {\n rangePropMode[index] = rangeModeInOption[index];\n }\n else if (percentSpecified) { // percentSpecified && valueSpecified\n rangePropMode[index] = 'percent';\n }\n // else remain its original setting.\n });\n }\n\n noTarget(): boolean {\n return this._noTarget;\n }\n\n getFirstTargetAxisModel(): AxisBaseModel {\n let firstAxisModel: AxisBaseModel;\n this.eachTargetAxis(function (axisDim, axisIndex) {\n if (firstAxisModel == null) {\n firstAxisModel = this.ecModel.getComponent(\n getAxisMainType(axisDim), axisIndex\n ) as AxisBaseModel;\n }\n }, this);\n\n return firstAxisModel;\n }\n\n /**\n * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel\n */\n eachTargetAxis(\n callback: (\n this: Ctx,\n axisDim: DataZoomAxisDimension,\n axisIndex: number\n ) => void,\n context?: Ctx\n ): void {\n this._targetAxisInfoMap.each(function (axisInfo, axisDim) {\n each(axisInfo.indexList, function (axisIndex) {\n callback.call(context, axisDim, axisIndex);\n });\n });\n }\n\n /**\n * @return If not found, return null/undefined.\n */\n getAxisProxy(axisDim: DataZoomAxisDimension, axisIndex: number): AxisProxy {\n const axisModel = this.getAxisModel(axisDim, axisIndex);\n if (axisModel) {\n return (axisModel as DataZoomExtendedAxisBaseModel).__dzAxisProxy;\n }\n }\n\n /**\n * @return If not found, return null/undefined.\n */\n getAxisModel(axisDim: DataZoomAxisDimension, axisIndex: number): AxisBaseModel {\n if (__DEV__) {\n assert(axisDim && axisIndex != null);\n }\n const axisInfo = this._targetAxisInfoMap.get(axisDim);\n if (axisInfo && axisInfo.indexMap[axisIndex]) {\n return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel;\n }\n }\n\n /**\n * If not specified, set to undefined.\n */\n setRawRange(opt: RangeOption): void {\n const thisOption = this.option;\n const settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names) {\n // Consider the pair :\n // If one has value and the other one is `null/undefined`, we both set them\n // to `settledOption`. This strategy enables the feature to clear the original\n // value in `settledOption` to `null/undefined`.\n // But if both of them are `null/undefined`, we do not set them to `settledOption`\n // and keep `settledOption` with the original value. This strategy enables users to\n // only set but not set when calling\n // `dispatchAction`.\n // The pair is treated in the same way.\n if (opt[names[0]] != null || opt[names[1]] != null) {\n thisOption[names[0]] = settledOption[names[0]] = opt[names[0]];\n thisOption[names[1]] = settledOption[names[1]] = opt[names[1]];\n }\n }, this);\n\n this._updateRangeUse(opt);\n }\n\n setCalculatedRange(opt: RangeOption): void {\n const option = this.option;\n each(['start', 'startValue', 'end', 'endValue'] as const, function (name) {\n (option as any)[name] = opt[name];\n });\n }\n\n getPercentRange(): number[] {\n const axisProxy = this.findRepresentativeAxisProxy();\n if (axisProxy) {\n return axisProxy.getDataPercentWindow();\n }\n }\n\n /**\n * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);\n *\n * @return [startValue, endValue] value can only be '-' or finite number.\n */\n getValueRange(axisDim: DataZoomAxisDimension, axisIndex: number): number[] {\n if (axisDim == null && axisIndex == null) {\n const axisProxy = this.findRepresentativeAxisProxy();\n if (axisProxy) {\n return axisProxy.getDataValueWindow();\n }\n }\n else {\n return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();\n }\n }\n\n /**\n * @param axisModel If axisModel given, find axisProxy\n * corresponding to the axisModel\n */\n findRepresentativeAxisProxy(axisModel?: AxisBaseModel): AxisProxy {\n if (axisModel) {\n return (axisModel as DataZoomExtendedAxisBaseModel).__dzAxisProxy;\n }\n\n // Find the first hosted axisProxy\n let firstProxy;\n const axisDimList = this._targetAxisInfoMap.keys();\n for (let i = 0; i < axisDimList.length; i++) {\n const axisDim = axisDimList[i];\n const axisInfo = this._targetAxisInfoMap.get(axisDim);\n for (let j = 0; j < axisInfo.indexList.length; j++) {\n const proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]);\n if (proxy.hostedBy(this)) {\n return proxy;\n }\n if (!firstProxy) {\n firstProxy = proxy;\n }\n }\n }\n\n // If no hosted proxy found, still need to return a proxy.\n // This case always happens in toolbox dataZoom, where axes are all hosted by\n // other dataZooms.\n return firstProxy;\n }\n\n getRangePropMode(): DataZoomModel['_rangePropMode'] {\n return this._rangePropMode.slice() as DataZoomModel['_rangePropMode'];\n }\n\n getOrient(): LayoutOrient {\n if (__DEV__) {\n // Should not be called before initialized.\n assert(this._orient);\n }\n return this._orient;\n }\n\n}\n/**\n * Retrieve the those raw params from option, which will be cached separately.\n * becasue they will be overwritten by normalized/calculated values in the main\n * process.\n */\nfunction retrieveRawOption(option: T) {\n const ret = {} as T;\n each(\n ['start', 'end', 'startValue', 'endValue', 'throttle'] as const,\n function (name) {\n option.hasOwnProperty(name) && ((ret as any)[name] = option[name]);\n }\n );\n return ret;\n}\n\nexport default DataZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel from './DataZoomModel';\n\nclass SelectDataZoomModel extends DataZoomModel {\n static type = 'dataZoom.select';\n type = SelectDataZoomModel.type;\n}\n\nexport default SelectDataZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\nimport DataZoomModel from './DataZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\n\nclass DataZoomView extends ComponentView {\n static type = 'dataZoom';\n type = DataZoomView.type;\n\n dataZoomModel: DataZoomModel;\n ecModel: GlobalModel;\n api: ExtensionAPI;\n\n render(dataZoomModel: DataZoomModel, ecModel: GlobalModel, api: ExtensionAPI, payload: any) {\n this.dataZoomModel = dataZoomModel;\n this.ecModel = ecModel;\n this.api = api;\n }\n\n}\n\nexport default DataZoomView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomView from './DataZoomView';\n\nclass SelectDataZoomView extends DataZoomView {\n static type = 'dataZoom.select';\n type = SelectDataZoomView.type;\n}\n\nexport default SelectDataZoomView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary } from '../../util/types';\n// TODO Polar?\nimport DataZoomModel from './DataZoomModel';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { unionAxisExtentFromData } from '../../coord/axisHelper';\nimport { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo';\nimport { getAxisMainType, isCoordSupported, DataZoomAxisDimension } from './helper';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nconst each = zrUtil.each;\nconst asc = numberUtil.asc;\n\ninterface MinMaxSpan {\n minSpan: number\n maxSpan: number\n minValueSpan: number\n maxValueSpan: number\n}\n\ntype SupportedAxis = 'xAxis' | 'yAxis' | 'angleAxis' | 'radiusAxis' | 'singleAxis';\n\n/**\n * Operate single axis.\n * One axis can only operated by one axis operator.\n * Different dataZoomModels may be defined to operate the same axis.\n * (i.e. 'inside' data zoom and 'slider' data zoom components)\n * So dataZoomModels share one axisProxy in that case.\n */\nclass AxisProxy {\n\n ecModel: GlobalModel;\n\n private _dimName: DataZoomAxisDimension;\n private _axisIndex: number;\n\n private _valueWindow: [number, number];\n private _percentWindow: [number, number];\n\n private _dataExtent: [number, number];\n\n private _minMaxSpan: MinMaxSpan;\n\n private _dataZoomModel: DataZoomModel;\n\n constructor(\n dimName: DataZoomAxisDimension,\n axisIndex: number,\n dataZoomModel: DataZoomModel,\n ecModel: GlobalModel\n ) {\n this._dimName = dimName;\n\n this._axisIndex = axisIndex;\n\n this.ecModel = ecModel;\n\n this._dataZoomModel = dataZoomModel;\n\n // /**\n // * @readOnly\n // * @private\n // */\n // this.hasSeriesStacked;\n }\n\n /**\n * Whether the axisProxy is hosted by dataZoomModel.\n */\n hostedBy(dataZoomModel: DataZoomModel): boolean {\n return this._dataZoomModel === dataZoomModel;\n }\n\n /**\n * @return Value can only be NaN or finite value.\n */\n getDataValueWindow() {\n return this._valueWindow.slice() as [number, number];\n }\n\n /**\n * @return {Array.}\n */\n getDataPercentWindow() {\n return this._percentWindow.slice() as [number, number];\n }\n\n getTargetSeriesModels() {\n const seriesModels: SeriesModel[] = [];\n\n this.ecModel.eachSeries(function (seriesModel) {\n if (isCoordSupported(seriesModel)) {\n const axisMainType = getAxisMainType(this._dimName);\n const axisModel = seriesModel.getReferringComponents(axisMainType, SINGLE_REFERRING).models[0];\n if (axisModel && this._axisIndex === axisModel.componentIndex) {\n seriesModels.push(seriesModel);\n }\n }\n }, this);\n\n return seriesModels;\n }\n\n getAxisModel(): AxisBaseModel {\n return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex) as AxisBaseModel;\n }\n\n getMinMaxSpan() {\n return zrUtil.clone(this._minMaxSpan);\n }\n\n /**\n * Only calculate by given range and this._dataExtent, do not change anything.\n */\n calculateDataWindow(opt?: {\n start?: number\n end?: number\n startValue?: number | string | Date\n endValue?: number | string | Date\n }) {\n const dataExtent = this._dataExtent;\n const axisModel = this.getAxisModel();\n const scale = axisModel.axis.scale;\n const rangePropMode = this._dataZoomModel.getRangePropMode();\n const percentExtent = [0, 100];\n const percentWindow = [] as unknown as [number, number];\n const valueWindow = [] as unknown as [number, number];\n let hasPropModeValue;\n\n each(['start', 'end'] as const, function (prop, idx) {\n let boundPercent = opt[prop];\n let boundValue = opt[prop + 'Value' as 'startValue' | 'endValue'];\n\n // Notice: dataZoom is based either on `percentProp` ('start', 'end') or\n // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent\n // but not min/max of axis, which will be calculated by data window then).\n // The former one is suitable for cases that a dataZoom component controls multiple\n // axes with different unit or extent, and the latter one is suitable for accurate\n // zoom by pixel (e.g., in dataZoomSelect).\n // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated\n // only when setOption or dispatchAction, otherwise it remains its original value.\n // (Why not only record `percentProp` and always map to `valueProp`? Because\n // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original\n // `valueProp`. consider two axes constrolled by one dataZoom. They have different\n // data extent. All of values that are overflow the `dataExtent` will be calculated\n // to percent '100%').\n\n if (rangePropMode[idx] === 'percent') {\n boundPercent == null && (boundPercent = percentExtent[idx]);\n // Use scale.parse to math round for category or time axis.\n boundValue = scale.parse(numberUtil.linearMap(\n boundPercent, percentExtent, dataExtent\n ));\n }\n else {\n hasPropModeValue = true;\n boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue);\n // Calculating `percent` from `value` may be not accurate, because\n // This calculation can not be inversed, because all of values that\n // are overflow the `dataExtent` will be calculated to percent '100%'\n boundPercent = numberUtil.linearMap(\n boundValue, dataExtent, percentExtent\n );\n }\n\n // valueWindow[idx] = round(boundValue);\n // percentWindow[idx] = round(boundPercent);\n valueWindow[idx] = boundValue;\n percentWindow[idx] = boundPercent;\n });\n\n asc(valueWindow);\n asc(percentWindow);\n\n // The windows from user calling of `dispatchAction` might be out of the extent,\n // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window\n // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,\n // where API is able to initialize/modify the window size even though `zoomLock`\n // specified.\n const spans = this._minMaxSpan;\n hasPropModeValue\n ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false)\n : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true);\n\n function restrictSet(\n fromWindow: number[],\n toWindow: number[],\n fromExtent: number[],\n toExtent: number[],\n toValue: boolean\n ) {\n const suffix = toValue ? 'Span' : 'ValueSpan';\n sliderMove(\n 0, fromWindow, fromExtent, 'all',\n spans['min' + suffix as 'minSpan' | 'minValueSpan'],\n spans['max' + suffix as 'maxSpan' | 'maxValueSpan']\n );\n for (let i = 0; i < 2; i++) {\n toWindow[i] = numberUtil.linearMap(fromWindow[i], fromExtent, toExtent, true);\n toValue && (toWindow[i] = scale.parse(toWindow[i]));\n }\n }\n\n return {\n valueWindow: valueWindow,\n percentWindow: percentWindow\n };\n }\n\n /**\n * Notice: reset should not be called before series.restoreData() called,\n * so it is recommanded to be called in \"process stage\" but not \"model init\n * stage\".\n */\n reset(dataZoomModel: DataZoomModel) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n const targetSeries = this.getTargetSeriesModels();\n // Culculate data window and data extent, and record them.\n this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries);\n\n // `calculateDataWindow` uses min/maxSpan.\n this._updateMinMaxSpan();\n\n const dataWindow = this.calculateDataWindow(dataZoomModel.settledOption);\n\n this._valueWindow = dataWindow.valueWindow;\n this._percentWindow = dataWindow.percentWindow;\n\n // Update axis setting then.\n this._setAxisModel();\n }\n\n filterData(dataZoomModel: DataZoomModel, api: ExtensionAPI) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n const axisDim = this._dimName;\n const seriesModels = this.getTargetSeriesModels();\n const filterMode = dataZoomModel.get('filterMode');\n const valueWindow = this._valueWindow;\n\n if (filterMode === 'none') {\n return;\n }\n\n // FIXME\n // Toolbox may has dataZoom injected. And if there are stacked bar chart\n // with NaN data, NaN will be filtered and stack will be wrong.\n // So we need to force the mode to be set empty.\n // In fect, it is not a big deal that do not support filterMode-'filter'\n // when using toolbox#dataZoom, utill tooltip#dataZoom support \"single axis\n // selection\" some day, which might need \"adapt to data extent on the\n // otherAxis\", which is disabled by filterMode-'empty'.\n // But currently, stack has been fixed to based on value but not index,\n // so this is not an issue any more.\n // let otherAxisModel = this.getOtherAxisModel();\n // if (dataZoomModel.get('$fromToolbox')\n // && otherAxisModel\n // && otherAxisModel.hasSeriesStacked\n // ) {\n // filterMode = 'empty';\n // }\n\n // TODO\n // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.\n\n each(seriesModels, function (seriesModel) {\n let seriesData = seriesModel.getData();\n const dataDims = seriesData.mapDimensionsAll(axisDim);\n\n if (!dataDims.length) {\n return;\n }\n\n if (filterMode === 'weakFilter') {\n const storage = seriesData.getStorage();\n const dataDimIndices = zrUtil.map(dataDims, dim => seriesData.getDimensionIndex(dim), seriesData);\n seriesData.filterSelf(function (dataIndex) {\n let leftOut;\n let rightOut;\n let hasValue;\n for (let i = 0; i < dataDims.length; i++) {\n const value = storage.get(dataDimIndices[i], dataIndex) as number;\n const thisHasValue = !isNaN(value);\n const thisLeftOut = value < valueWindow[0];\n const thisRightOut = value > valueWindow[1];\n if (thisHasValue && !thisLeftOut && !thisRightOut) {\n return true;\n }\n thisHasValue && (hasValue = true);\n thisLeftOut && (leftOut = true);\n thisRightOut && (rightOut = true);\n }\n // If both left out and right out, do not filter.\n return hasValue && leftOut && rightOut;\n });\n }\n else {\n each(dataDims, function (dim) {\n if (filterMode === 'empty') {\n seriesModel.setData(\n seriesData = seriesData.map(dim, function (value: number) {\n return !isInWindow(value) ? NaN : value;\n })\n );\n }\n else {\n const range: Dictionary<[number, number]> = {};\n range[dim] = valueWindow;\n\n // console.time('select');\n seriesData.selectRange(range);\n // console.timeEnd('select');\n }\n });\n }\n\n each(dataDims, function (dim) {\n seriesData.setApproximateExtent(valueWindow, dim);\n });\n });\n\n function isInWindow(value: number) {\n return value >= valueWindow[0] && value <= valueWindow[1];\n }\n }\n\n private _updateMinMaxSpan() {\n const minMaxSpan = this._minMaxSpan = {} as MinMaxSpan;\n const dataZoomModel = this._dataZoomModel;\n const dataExtent = this._dataExtent;\n\n each(['min', 'max'], function (minMax) {\n let percentSpan = dataZoomModel.get(minMax + 'Span' as 'minSpan' | 'maxSpan');\n let valueSpan = dataZoomModel.get(minMax + 'ValueSpan' as 'minValueSpan' | 'maxValueSpan');\n valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan));\n\n // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan\n if (valueSpan != null) {\n percentSpan = numberUtil.linearMap(\n dataExtent[0] + valueSpan, dataExtent, [0, 100], true\n );\n }\n else if (percentSpan != null) {\n valueSpan = numberUtil.linearMap(\n percentSpan, [0, 100], dataExtent, true\n ) - dataExtent[0];\n }\n\n minMaxSpan[minMax + 'Span' as 'minSpan' | 'maxSpan'] = percentSpan;\n minMaxSpan[minMax + 'ValueSpan' as 'minValueSpan' | 'maxValueSpan'] = valueSpan;\n }, this);\n }\n\n private _setAxisModel() {\n\n const axisModel = this.getAxisModel();\n\n const percentWindow = this._percentWindow;\n const valueWindow = this._valueWindow;\n\n if (!percentWindow) {\n return;\n }\n\n // [0, 500]: arbitrary value, guess axis extent.\n let precision = numberUtil.getPixelPrecision(valueWindow, [0, 500]);\n precision = Math.min(precision, 20);\n\n // For value axis, if min/max/scale are not set, we just use the extent obtained\n // by series data, which may be a little different from the extent calculated by\n // `axisHelper.getScaleExtent`. But the different just affects the experience a\n // little when zooming. So it will not be fixed until some users require it strongly.\n const rawExtentInfo = axisModel.axis.scale.rawExtentInfo;\n if (percentWindow[0] !== 0) {\n rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision));\n }\n if (percentWindow[1] !== 100) {\n rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision));\n }\n rawExtentInfo.freeze();\n }\n}\n\nfunction calculateDataExtent(axisProxy: AxisProxy, axisDim: string, seriesModels: SeriesModel[]) {\n const dataExtent = [Infinity, -Infinity];\n\n each(seriesModels, function (seriesModel) {\n unionAxisExtentFromData(dataExtent, seriesModel.getData(), axisDim);\n });\n\n // It is important to get \"consistent\" extent when more then one axes is\n // controlled by a `dataZoom`, otherwise those axes will not be synchronized\n // when zooming. But it is difficult to know what is \"consistent\", considering\n // axes have different type or even different meanings (For example, two\n // time axes are used to compare data of the same date in different years).\n // So basically dataZoom just obtains extent by series.data (in category axis\n // extent can be obtained from axis.data).\n // Nevertheless, user can set min/max/scale on axes to make extent of axes\n // consistent.\n const axisModel = axisProxy.getAxisModel();\n const rawExtentResult = ensureScaleRawExtentInfo(axisModel.axis.scale, axisModel, dataExtent).calculate();\n\n return [rawExtentResult.min, rawExtentResult.max] as [number, number];\n}\n\nexport default AxisProxy;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, each} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport DataZoomModel, { DataZoomExtendedAxisBaseModel } from './DataZoomModel';\nimport { getAxisMainType, DataZoomAxisDimension } from './helper';\nimport AxisProxy from './AxisProxy';\nimport { StageHandler } from '../../util/types';\n\nconst dataZoomProcessor: StageHandler = {\n\n // `dataZoomProcessor` will only be performed in needed series. Consider if\n // there is a line series and a pie series, it is better not to update the\n // line series if only pie series is needed to be updated.\n getTargetSeries(ecModel) {\n\n function eachAxisModel(\n cb: (\n axisDim: DataZoomAxisDimension,\n axisIndex: number,\n axisModel: DataZoomExtendedAxisBaseModel,\n dataZoomModel: DataZoomModel\n ) => void\n ) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n cb(axisDim, axisIndex, axisModel as DataZoomExtendedAxisBaseModel, dataZoomModel);\n });\n });\n }\n // FIXME: it brings side-effect to `getTargetSeries`.\n // Prepare axis proxies.\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // dispose all last axis proxy, in case that some axis are deleted.\n axisModel.__dzAxisProxy = null;\n });\n const proxyList: AxisProxy[] = [];\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // Different dataZooms may constrol the same axis. In that case,\n // an axisProxy serves both of them.\n if (!axisModel.__dzAxisProxy) {\n // Use the first dataZoomModel as the main model of axisProxy.\n axisModel.__dzAxisProxy = new AxisProxy(axisDim, axisIndex, dataZoomModel, ecModel);\n proxyList.push(axisModel.__dzAxisProxy);\n }\n });\n\n const seriesModelMap = createHashMap();\n each(proxyList, function (axisProxy) {\n each(axisProxy.getTargetSeriesModels(), function (seriesModel) {\n seriesModelMap.set(seriesModel.uid, seriesModel);\n });\n });\n\n return seriesModelMap;\n },\n\n // Consider appendData, where filter should be performed. Because data process is\n // in block mode currently, it is not need to worry about that the overallProgress\n // execute every frame.\n overallReset(ecModel, api) {\n\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n // We calculate window and reset axis here but not in model\n // init stage and not after action dispatch handler, because\n // reset should be called after seriesData.restoreData.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel);\n });\n\n // Caution: data zoom filtering is order sensitive when using\n // percent range and no min/max/scale set on axis.\n // For example, we have dataZoom definition:\n // [\n // {xAxisIndex: 0, start: 30, end: 70},\n // {yAxisIndex: 0, start: 20, end: 80}\n // ]\n // In this case, [20, 80] of y-dataZoom should be based on data\n // that have filtered by x-dataZoom using range of [30, 70],\n // but should not be based on full raw data. Thus sliding\n // x-dataZoom will change both ranges of xAxis and yAxis,\n // while sliding y-dataZoom will only change the range of yAxis.\n // So we should filter x-axis after reset x-axis immediately,\n // and then reset y-axis and filter y-axis.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api);\n });\n });\n\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n // Fullfill all of the range props so that user\n // is able to get them from chart.getOption().\n const axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n if (axisProxy) {\n const percentRange = axisProxy.getDataPercentWindow();\n const valueRange = axisProxy.getDataValueWindow();\n\n dataZoomModel.setCalculatedRange({\n start: percentRange[0],\n end: percentRange[1],\n startValue: valueRange[0],\n endValue: valueRange[1]\n });\n }\n });\n }\n};\n\nexport default dataZoomProcessor;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport { findEffectedDataZooms } from './helper';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { each } from 'zrender/src/core/util';\n\n\nexport default function installDataZoomAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction('dataZoom', function (payload, ecModel: GlobalModel) {\n\n const effectedModels = findEffectedDataZooms(ecModel, payload);\n\n each(effectedModels, function (dataZoomModel) {\n dataZoomModel.setRawRange({\n start: payload.start,\n end: payload.end,\n startValue: payload.startValue,\n endValue: payload.endValue\n });\n });\n\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport dataZoomProcessor from './dataZoomProcessor';\nimport installDataZoomAction from './dataZoomAction';\n\nlet installed = false;\nexport default function installCommon(registers: EChartsExtensionInstallRegisters) {\n if (installed) {\n return;\n }\n installed = true;\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoomProcessor);\n\n installDataZoomAction(registers);\n\n registers.registerSubTypeDefaulter('dataZoom', function () {\n // Default 'slider' when no type specified.\n return 'slider';\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SelectZoomModel from './SelectZoomModel';\nimport SelectZoomView from './SelectZoomView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentModel(SelectZoomModel);\n registers.registerComponentView(SelectZoomView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Dictionary, DisplayState, ZRElementEvent, ItemStyleOption, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n// import * as graphic from '../../util/graphic';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\n// type IconPath = ReturnType;\n\ntype IconStyle = ItemStyleOption & {\n // TODO Move to a individual textStyle option\n textFill?: LabelOption['color']\n textBackgroundColor?: LabelOption['backgroundColor']\n textPosition?: LabelOption['position']\n textAlign?: LabelOption['align']\n textBorderRadius?: LabelOption['borderRadius']\n textPadding?: LabelOption['padding']\n};\nexport interface ToolboxFeatureOption {\n\n show?: boolean\n\n title?: string | Partial>\n\n icon?: string | Partial>\n\n iconStyle?: IconStyle\n emphasis?: {\n iconStyle?: IconStyle\n }\n\n iconStatus?: Partial>\n\n onclick?: () => void\n}\n\nexport interface ToolboxFeatureModel extends Model {\n\n /**\n * Collection of icon paths.\n * Will be injected during rendering in the view.\n */\n iconPaths: Partial>\n\n setIconStatus(iconName: string, status: DisplayState): void\n}\n\ninterface ToolboxFeature {\n getIcons?(): Dictionary\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: string, event: ZRElementEvent): void\n\n dispose?(ecModel: GlobalModel, api: ExtensionAPI): void\n remove?(ecModel: GlobalModel, api: ExtensionAPI): void\n\n render(featureModel: ToolboxFeatureModel, model: GlobalModel, api: ExtensionAPI, payload: unknown): void\n updateView?(featureModel: ToolboxFeatureModel, model: GlobalModel, api: ExtensionAPI, payload: unknown): void\n}\nabstract class ToolboxFeature {\n uid: string;\n\n model: ToolboxFeatureModel;\n ecModel: GlobalModel;\n api: ExtensionAPI;\n\n /**\n * If toolbox feature can't be used on some platform.\n */\n unusable?: boolean;\n}\n\nexport {ToolboxFeature};\n\nexport interface UserDefinedToolboxFeature {\n uid: string\n\n model: ToolboxFeatureModel\n ecModel: GlobalModel\n api: ExtensionAPI\n\n featureName?: string\n\n onclick(): void\n}\n\ntype ToolboxFeatureCtor = {\n new(): ToolboxFeature\n /**\n * Static defaultOption property\n */\n defaultOption?: ToolboxFeatureOption\n getDefaultOption?: (ecModel: GlobalModel) => ToolboxFeatureOption\n};\n\nconst features: Dictionary = {};\n\nexport function registerFeature(name: string, ctor: ToolboxFeatureCtor) {\n features[name] = ctor;\n}\n\nexport function getFeature(name: string) {\n return features[name];\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as featureManager from './featureManager';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n ZRColor,\n BorderOptionMixin,\n ItemStyleOption,\n LabelOption,\n CommonTooltipOption,\n Dictionary\n} from '../../util/types';\n\n\nexport interface ToolboxTooltipFormatterParams {\n componentType: 'toolbox'\n name: string\n title: string\n $vars: ['name', 'title']\n}\nexport interface ToolboxOption extends ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin {\n mainType?: 'toolbox'\n\n show?: boolean\n\n orient?: LayoutOrient\n\n backgroundColor?: ZRColor\n\n borderRadius?: number | number[]\n\n padding?: number | number[]\n\n itemSize?: number\n\n itemGap?: number\n\n showTitle?: boolean\n\n iconStyle?: ItemStyleOption\n\n emphasis?: {\n iconStyle?: ItemStyleOption\n }\n\n textStyle?: LabelOption\n\n tooltip?: CommonTooltipOption\n\n /**\n * Write all supported features in the final export option.\n */\n feature?: Partial>\n}\n\nclass ToolboxModel extends ComponentModel {\n\n static type = 'toolbox' as const;\n type = ToolboxModel.type;\n\n static layoutMode = {\n type: 'box',\n ignoreSize: true\n } as const;\n\n optionUpdated() {\n super.optionUpdated.apply(this, arguments as any);\n const {ecModel} = this;\n\n zrUtil.each(this.option.feature, function (featureOpt, featureName) {\n const Feature = featureManager.getFeature(featureName);\n if (Feature) {\n if (Feature.getDefaultOption) {\n Feature.defaultOption = Feature.getDefaultOption(ecModel);\n }\n zrUtil.merge(featureOpt, Feature.defaultOption);\n }\n });\n }\n\n static defaultOption: ToolboxOption = {\n\n show: true,\n\n z: 6,\n\n zlevel: 0,\n\n orient: 'horizontal',\n\n left: 'right',\n\n top: 'top',\n\n // right\n // bottom\n\n backgroundColor: 'transparent',\n\n borderColor: '#ccc',\n\n borderRadius: 0,\n\n borderWidth: 0,\n\n padding: 5,\n\n itemSize: 15,\n\n itemGap: 8,\n\n showTitle: true,\n\n iconStyle: {\n borderColor: '#666',\n color: 'none'\n },\n emphasis: {\n iconStyle: {\n borderColor: '#3E98C5'\n }\n },\n // textStyle: {},\n\n // feature\n\n tooltip: {\n show: false,\n position: 'bottom'\n }\n };\n}\n\nexport default ToolboxModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport {\n getLayoutRect,\n box as layoutBox,\n positionElement\n} from '../../util/layout';\nimport * as formatUtil from '../../util/format';\nimport * as graphic from '../../util/graphic';\n\n/**\n * Layout list like component.\n * It will box layout each items in group of component and then position the whole group in the viewport\n * @param {module:zrender/group/Group} group\n * @param {module:echarts/model/Component} componentModel\n * @param {module:echarts/ExtensionAPI}\n */\nexport function layout(group, componentModel, api) {\n const boxLayoutParams = componentModel.getBoxLayoutParams();\n const padding = componentModel.get('padding');\n const viewportSize = {width: api.getWidth(), height: api.getHeight()};\n\n const rect = getLayoutRect(\n boxLayoutParams,\n viewportSize,\n padding\n );\n\n layoutBox(\n componentModel.get('orient'),\n group,\n componentModel.get('itemGap'),\n rect.width,\n rect.height\n );\n\n positionElement(\n group,\n boxLayoutParams,\n viewportSize,\n padding\n );\n}\n\nexport function makeBackground(rect, componentModel) {\n const padding = formatUtil.normalizeCssArray(\n componentModel.get('padding')\n );\n const style = componentModel.getItemStyle(['color', 'opacity']);\n style.fill = componentModel.get('backgroundColor');\n rect = new graphic.Rect({\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[1] + padding[3],\n height: rect.height + padding[0] + padding[2],\n r: componentModel.get('borderRadius')\n },\n style: style,\n silent: true,\n z2: -1\n });\n // FIXME\n // `subPixelOptimizeRect` may bring some gap between edge of viewpart\n // and background rect when setting like `left: 0`, `top: 0`.\n // graphic.subPixelOptimizeRect(rect);\n\n return rect;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as textContain from 'zrender/src/contain/text';\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis } from '../../util/states';\nimport Model from '../../model/Model';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as listComponentHelper from '../helper/listComponent';\nimport ComponentView from '../../view/Component';\nimport ToolboxModel from './ToolboxModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { DisplayState, Dictionary, Payload } from '../../util/types';\nimport {\n ToolboxFeature,\n getFeature,\n ToolboxFeatureModel,\n ToolboxFeatureOption,\n UserDefinedToolboxFeature\n} from './featureManager';\nimport { getUID } from '../../util/component';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport ZRText from 'zrender/src/graphic/Text';\nimport { getECData } from '../../util/innerStore';\n\ntype IconPath = ToolboxFeatureModel['iconPaths'][string];\n\ntype ExtendedPath = IconPath & {\n __title: string\n};\n\nclass ToolboxView extends ComponentView {\n static type = 'toolbox' as const;\n\n _features: Dictionary;\n\n _featureNames: string[];\n\n render(\n toolboxModel: ToolboxModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload & {\n newTitle?: ToolboxFeatureOption['title']\n }\n ) {\n const group = this.group;\n group.removeAll();\n\n if (!toolboxModel.get('show')) {\n return;\n }\n\n const itemSize = +toolboxModel.get('itemSize');\n const featureOpts = toolboxModel.get('feature') || {};\n const features = this._features || (this._features = {});\n\n const featureNames: string[] = [];\n zrUtil.each(featureOpts, function (opt, name) {\n featureNames.push(name);\n });\n\n (new DataDiffer(this._featureNames || [], featureNames))\n .add(processFeature)\n .update(processFeature)\n .remove(zrUtil.curry(processFeature, null))\n .execute();\n\n // Keep for diff.\n this._featureNames = featureNames;\n\n function processFeature(newIndex: number, oldIndex?: number) {\n const featureName = featureNames[newIndex];\n const oldName = featureNames[oldIndex];\n const featureOpt = featureOpts[featureName];\n const featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel) as ToolboxFeatureModel;\n let feature: ToolboxFeature | UserDefinedToolboxFeature;\n\n // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?\n if (payload && payload.newTitle != null && payload.featureName === featureName) {\n featureOpt.title = payload.newTitle;\n }\n\n if (featureName && !oldName) { // Create\n if (isUserFeatureName(featureName)) {\n feature = {\n onclick: featureModel.option.onclick,\n featureName: featureName\n } as UserDefinedToolboxFeature;\n }\n else {\n const Feature = getFeature(featureName);\n if (!Feature) {\n return;\n }\n feature = new Feature();\n }\n features[featureName] = feature;\n }\n else {\n feature = features[oldName];\n // If feature does not exsit.\n if (!feature) {\n return;\n }\n }\n feature.uid = getUID('toolbox-feature');\n feature.model = featureModel;\n feature.ecModel = ecModel;\n feature.api = api;\n\n const isToolboxFeature = feature instanceof ToolboxFeature;\n if (!featureName && oldName) {\n isToolboxFeature\n && (feature as ToolboxFeature).dispose\n && (feature as ToolboxFeature).dispose(ecModel, api);\n return;\n }\n\n if (!featureModel.get('show') || (isToolboxFeature && (feature as ToolboxFeature).unusable)) {\n isToolboxFeature\n && (feature as ToolboxFeature).remove\n && (feature as ToolboxFeature).remove(ecModel, api);\n return;\n }\n\n createIconPaths(featureModel, feature, featureName);\n\n featureModel.setIconStatus = function (this: ToolboxFeatureModel, iconName: string, status: DisplayState) {\n const option = this.option;\n const iconPaths = this.iconPaths;\n option.iconStatus = option.iconStatus || {};\n option.iconStatus[iconName] = status;\n if (iconPaths[iconName]) {\n (status === 'emphasis' ? enterEmphasis : leaveEmphasis)(iconPaths[iconName]);\n }\n };\n\n if (feature instanceof ToolboxFeature) {\n if (feature.render) {\n feature.render(featureModel, ecModel, api, payload);\n }\n }\n }\n\n function createIconPaths(\n featureModel: ToolboxFeatureModel,\n feature: ToolboxFeature | UserDefinedToolboxFeature,\n featureName: string\n ) {\n const iconStyleModel = featureModel.getModel('iconStyle');\n const iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']);\n\n // If one feature has mutiple icon. they are orginaized as\n // {\n // icon: {\n // foo: '',\n // bar: ''\n // },\n // title: {\n // foo: '',\n // bar: ''\n // }\n // }\n const icons = (feature instanceof ToolboxFeature && feature.getIcons)\n ? feature.getIcons() : featureModel.get('icon');\n const titles = featureModel.get('title') || {};\n let iconsMap: Dictionary;\n let titlesMap: Dictionary;\n if (typeof icons === 'string') {\n iconsMap = {};\n iconsMap[featureName] = icons;\n }\n else {\n iconsMap = icons;\n }\n if (typeof titles === 'string') {\n titlesMap = {};\n titlesMap[featureName] = titles as string;\n }\n else {\n titlesMap = titles;\n }\n const iconPaths: ToolboxFeatureModel['iconPaths'] = featureModel.iconPaths = {};\n zrUtil.each(iconsMap, function (iconStr, iconName) {\n const path = graphic.createIcon(\n iconStr,\n {},\n {\n x: -itemSize / 2,\n y: -itemSize / 2,\n width: itemSize,\n height: itemSize\n }\n ) as Displayable; // TODO handling image\n path.setStyle(iconStyleModel.getItemStyle());\n\n const pathEmphasisState = path.ensureState('emphasis');\n pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle();\n\n // Text position calculation\n const textContent = new ZRText({\n style: {\n text: titlesMap[iconName],\n align: iconStyleEmphasisModel.get('textAlign'),\n borderRadius: iconStyleEmphasisModel.get('textBorderRadius'),\n padding: iconStyleEmphasisModel.get('textPadding'),\n fill: null\n },\n ignore: true\n });\n path.setTextContent(textContent);\n\n graphic.setTooltipConfig({\n el: path,\n componentModel: toolboxModel,\n itemName: iconName,\n formatterParamsExtra: {\n title: titlesMap[iconName]\n }\n });\n\n // graphic.enableHoverEmphasis(path);\n\n (path as ExtendedPath).__title = titlesMap[iconName];\n (path as graphic.Path).on('mouseover', function () {\n // Should not reuse above hoverStyle, which might be modified.\n const hoverStyle = iconStyleEmphasisModel.getItemStyle();\n const defaultTextPosition = toolboxModel.get('orient') === 'vertical'\n ? (toolboxModel.get('right') == null ? 'right' as const : 'left' as const)\n : (toolboxModel.get('bottom') == null ? 'bottom' as const : 'top' as const);\n textContent.setStyle({\n fill: (iconStyleEmphasisModel.get('textFill')\n || hoverStyle.fill || hoverStyle.stroke || '#000') as string,\n backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor')\n });\n path.setTextConfig({\n position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition\n });\n textContent.ignore = !toolboxModel.get('showTitle');\n\n // Use enterEmphasis and leaveEmphasis provide by ec.\n // There are flags managed by the echarts.\n enterEmphasis(this);\n })\n .on('mouseout', function () {\n if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') {\n leaveEmphasis(this);\n }\n textContent.hide();\n });\n (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? enterEmphasis : leaveEmphasis)(path);\n\n group.add(path);\n (path as graphic.Path).on('click', zrUtil.bind(\n feature.onclick, feature, ecModel, api, iconName\n ));\n\n iconPaths[iconName] = path;\n });\n }\n\n listComponentHelper.layout(group, toolboxModel, api);\n // Render background after group is layout\n // FIXME\n group.add(listComponentHelper.makeBackground(group.getBoundingRect(), toolboxModel));\n\n // Adjust icon title positions to avoid them out of screen\n group.eachChild(function (icon: IconPath) {\n const titleText = (icon as ExtendedPath).__title;\n // const hoverStyle = icon.hoverStyle;\n\n // TODO simplify code?\n const emphasisState = icon.ensureState('emphasis');\n const emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {});\n const textContent = icon.getTextContent();\n const emphasisTextState = textContent && textContent.states.emphasis;\n // May be background element\n if (emphasisTextState && !zrUtil.isFunction(emphasisTextState) && titleText) {\n const emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {});\n const rect = textContain.getBoundingRect(\n titleText, ZRText.makeFont(emphasisTextStyle)\n );\n const offsetX = icon.x + group.x;\n const offsetY = icon.y + group.y + itemSize;\n\n let needPutOnTop = false;\n if (offsetY + rect.height > api.getHeight()) {\n emphasisTextConfig.position = 'top';\n needPutOnTop = true;\n }\n const topOffset = needPutOnTop ? (-5 - rect.height) : (itemSize + 8);\n if (offsetX + rect.width / 2 > api.getWidth()) {\n emphasisTextConfig.position = ['100%', topOffset];\n emphasisTextStyle.align = 'right';\n }\n else if (offsetX - rect.width / 2 < 0) {\n emphasisTextConfig.position = [0, topOffset];\n emphasisTextStyle.align = 'left';\n }\n }\n });\n }\n\n updateView(\n toolboxModel: ToolboxModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown\n ) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.updateView && feature.updateView(feature.model, ecModel, api, payload);\n });\n }\n\n // updateLayout(toolboxModel, ecModel, api, payload) {\n // zrUtil.each(this._features, function (feature) {\n // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);\n // });\n // },\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.remove && feature.remove(ecModel, api);\n });\n this.group.removeAll();\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.dispose && feature.dispose(ecModel, api);\n });\n }\n}\n\n\nfunction isUserFeatureName(featureName: string): boolean {\n return featureName.indexOf('my') === 0;\n}\nexport default ToolboxView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8Array, document */\n\nimport env from 'zrender/src/core/env';\nimport { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ZRColor } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\n\nexport interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {\n icon?: string\n title?: string\n type?: 'png' | 'jpg'\n\n backgroundColor?: ZRColor\n connectedBackgroundColor?: ZRColor\n\n name?: string\n excludeComponents?: string[]\n\n pixelRatio?: number\n\n lang?: string[]\n}\n\n/* global window, document */\n\nclass SaveAsImage extends ToolboxFeature {\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n const model = this.model;\n const title = model.get('name') || ecModel.get('title.0.text') || 'echarts';\n const isSvg = api.getZr().painter.getType() === 'svg';\n const type = isSvg ? 'svg' : model.get('type', true) || 'png';\n const url = api.getConnectedDataURL({\n type: type,\n backgroundColor: model.get('backgroundColor', true)\n || ecModel.get('backgroundColor') || '#fff',\n connectedBackgroundColor: model.get('connectedBackgroundColor'),\n excludeComponents: model.get('excludeComponents'),\n pixelRatio: model.get('pixelRatio')\n });\n // Chrome, Firefox, New Edge\n if (typeof MouseEvent === 'function' && (env.browser.newEdge || (!env.browser.ie && !env.browser.edge))) {\n const $a = document.createElement('a');\n $a.download = title + '.' + type;\n $a.target = '_blank';\n $a.href = url;\n const evt = new MouseEvent('click', {\n // some micro front-end framework\uFF0C window maybe is a Proxy\n view: document.defaultView,\n bubbles: true,\n cancelable: false\n });\n $a.dispatchEvent(evt);\n }\n // IE or old Edge\n else {\n if (window.navigator.msSaveOrOpenBlob || isSvg) {\n const parts = url.split(',');\n // data:[][;charset=][;base64],\n const base64Encoded = parts[0].indexOf('base64') > -1;\n let bstr = isSvg\n // should decode the svg data uri first\n ? decodeURIComponent(parts[1])\n : parts[1];\n // only `atob` when the data uri is encoded with base64\n // otherwise, like `svg` data uri exported by zrender,\n // there will be an error, for it's not encoded with base64.\n // (just a url-encoded string through `encodeURIComponent`)\n base64Encoded && (bstr = window.atob(bstr));\n const filename = title + '.' + type;\n if (window.navigator.msSaveOrOpenBlob) {\n let n = bstr.length;\n const u8arr = new Uint8Array(n);\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n const blob = new Blob([u8arr]);\n window.navigator.msSaveOrOpenBlob(blob, filename);\n }\n else {\n const frame = document.createElement('iframe');\n document.body.appendChild(frame);\n const cw = frame.contentWindow;\n const doc = cw.document;\n doc.open('image/svg+xml', 'replace');\n doc.write(bstr);\n doc.close();\n cw.focus();\n doc.execCommand('SaveAs', true, filename);\n document.body.removeChild(frame);\n }\n }\n else {\n const lang = model.get('lang');\n const html = ''\n + ''\n + ''\n + '';\n const tab = window.open();\n tab.document.write(html);\n tab.document.title = title as string;\n }\n }\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxSaveAsImageFeatureOption = {\n show: true,\n icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',\n title: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'title']),\n type: 'png',\n // Default use option.backgroundColor\n // backgroundColor: '#fff',\n connectedBackgroundColor: '#fff',\n name: '',\n excludeComponents: ['toolbox'],\n // use current pixel ratio of device by default\n // pixelRatio: 1,\n lang: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'lang'])\n };\n\n return defaultOption;\n }\n}\n\nSaveAsImage.prototype.unusable = !env.canvasSupported;\n\nexport default SaveAsImage;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {ToolboxFeature, ToolboxFeatureOption, ToolboxFeatureModel} from '../featureManager';\nimport { SeriesOption, ECUnitOption } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport SeriesModel from '../../../model/Series';\nimport { SINGLE_REFERRING } from '../../../util/model';\n\nconst INNER_STACK_KEYWORD = '__ec_magicType_stack__' as const;\n\nconst ICON_TYPES = ['line', 'bar', 'stack'] as const;\n// stack and tiled appears in pair for the title\nconst TITLE_TYPES = ['line', 'bar', 'stack', 'tiled'] as const;\n\nconst radioTypes = [\n ['line', 'bar'],\n ['stack']\n] as const;\n\ntype IconType = typeof ICON_TYPES[number];\ntype TitleType = typeof TITLE_TYPES[number];\n\nexport interface ToolboxMagicTypeFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n /**\n * Icon group\n */\n icon?: {[key in IconType]?: string}\n title?: {[key in TitleType]?: string}\n\n // TODO LineSeriesOption, BarSeriesOption\n option?: {[key in IconType]?: SeriesOption}\n\n /**\n * Map of seriesType: seriesIndex\n */\n seriesIndex?: {\n line?: number\n bar?: number\n }\n}\n\n\nclass MagicType extends ToolboxFeature {\n\n getIcons() {\n const model = this.model;\n const availableIcons = model.get('icon');\n const icons: ToolboxMagicTypeFeatureOption['icon'] = {};\n zrUtil.each(model.get('type'), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxMagicTypeFeatureOption = {\n show: true,\n type: [],\n // Icon group\n icon: {\n line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',\n bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',\n // eslint-disable-next-line\n stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line\n },\n // `line`, `bar`, `stack`, `tiled`\n title: ecModel.getLocaleModel().get(['toolbox', 'magicType', 'title']),\n option: {},\n seriesIndex: {}\n };\n\n return defaultOption;\n }\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: IconType) {\n const model = this.model;\n const seriesIndex = model.get(['seriesIndex', type as 'line' | 'bar']);\n // Not supported magicType\n if (!seriesOptGenreator[type]) {\n return;\n }\n const newOption: ECUnitOption = {\n series: []\n };\n const generateNewSeriesTypes = function (seriesModel: SeriesModel) {\n const seriesType = seriesModel.subType;\n const seriesId = seriesModel.id;\n const newSeriesOpt = seriesOptGenreator[type](\n seriesType, seriesId, seriesModel, model\n );\n if (newSeriesOpt) {\n // PENDING If merge original option?\n zrUtil.defaults(newSeriesOpt, seriesModel.option);\n (newOption.series as SeriesOption[]).push(newSeriesOpt);\n }\n // Modify boundaryGap\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {\n const categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n if (categoryAxis) {\n const axisDim = categoryAxis.dim;\n const axisType = axisDim + 'Axis';\n const axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n const axisIndex = axisModel.componentIndex;\n\n newOption[axisType] = newOption[axisType] || [];\n for (let i = 0; i <= axisIndex; i++) {\n (newOption[axisType] as any)[axisIndex] = (newOption[axisType] as any)[axisIndex] || {};\n }\n (newOption[axisType] as any)[axisIndex].boundaryGap = type === 'bar';\n }\n }\n };\n\n zrUtil.each(radioTypes, function (radio) {\n if (zrUtil.indexOf(radio, type) >= 0) {\n zrUtil.each(radio, function (item) {\n model.setIconStatus(item, 'normal');\n });\n }\n });\n\n model.setIconStatus(type, 'emphasis');\n\n ecModel.eachComponent(\n {\n mainType: 'series',\n query: seriesIndex == null ? null : {\n seriesIndex: seriesIndex\n }\n }, generateNewSeriesTypes\n );\n\n let newTitle;\n let currentType = type as TitleType;\n // Change title of stack\n if (type === 'stack') {\n // use titles in model instead of ecModel\n // as stack and tiled appears in pair, just flip them\n // no need of checking stack state\n newTitle = zrUtil.merge({\n stack: model.option.title.tiled,\n tiled: model.option.title.stack\n }, model.option.title);\n\n if (model.get(['iconStatus', type]) !== 'emphasis') {\n currentType = 'tiled';\n }\n }\n\n api.dispatchAction({\n type: 'changeMagicType',\n currentType: currentType,\n newOption: newOption,\n newTitle: newTitle,\n featureName: 'magicType'\n });\n }\n}\n\ntype MegicTypeSeriesOption = SeriesOption & {\n // TODO: TYPE More specified series option\n stack?: boolean | string\n data?: unknown[]\n markPoint?: unknown\n markLine?: unknown\n};\n\ntype SeriesOptGenreator = (\n seriesType: string,\n seriesId: string,\n seriesModel: SeriesModel,\n model: ToolboxFeatureModel\n) => SeriesOption;\n\nconst seriesOptGenreator: Record = {\n 'line': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'bar') {\n return zrUtil.merge({\n id: seriesId,\n type: 'line',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'line']) || {}, true);\n }\n },\n 'bar': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'line') {\n return zrUtil.merge({\n id: seriesId,\n type: 'bar',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'bar']) || {}, true);\n }\n },\n 'stack': function (seriesType, seriesId, seriesModel, model) {\n const isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD;\n if (seriesType === 'line' || seriesType === 'bar') {\n model.setIconStatus('stack', isStack ? 'normal' : 'emphasis');\n return zrUtil.merge({\n id: seriesId,\n stack: isStack ? '' : INNER_STACK_KEYWORD\n }, model.get(['option', 'stack']) || {}, true);\n }\n }\n};\n\n\n// TODO: SELF REGISTERED.\necharts.registerAction({\n type: 'changeMagicType',\n event: 'magicTypeChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.mergeOption(payload.newOption);\n});\n\nexport default MagicType;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global document */\n\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../../model/Global';\nimport SeriesModel from '../../../model/Series';\nimport { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ColorString, ECUnitOption, SeriesOption, Payload, Dictionary } from '../../../util/types';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport { addEventListener } from 'zrender/src/core/event';\nimport Axis from '../../../coord/Axis';\nimport Cartesian2D from '../../../coord/cartesian/Cartesian2D';\n\n/* global document */\n\nconst BLOCK_SPLITER = new Array(60).join('-');\nconst ITEM_SPLITER = '\\t';\n\ntype DataItem = {\n name: string\n value: number[] | number\n};\n\ntype DataList = (DataItem | number | number[])[];\n\ninterface ChangeDataViewPayload extends Payload {\n newOption: {\n series: SeriesOption[]\n }\n}\n\ninterface SeriesGroupMeta {\n axisDim: string\n axisIndex: number\n}\n\ninterface SeriesGroup {\n series: SeriesModel[]\n categoryAxis: Axis\n valueAxis: Axis\n}\n\n/**\n * Group series into two types\n * 1. on category axis, like line, bar\n * 2. others, like scatter, pie\n */\nfunction groupSeries(ecModel: GlobalModel) {\n const seriesGroupByCategoryAxis: Dictionary = {};\n const otherSeries: SeriesModel[] = [];\n const meta: SeriesGroupMeta[] = [];\n ecModel.eachRawSeries(function (seriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n const baseAxis = (coordSys as Cartesian2D).getBaseAxis();\n if (baseAxis.type === 'category') {\n const key = baseAxis.dim + '_' + baseAxis.index;\n if (!seriesGroupByCategoryAxis[key]) {\n seriesGroupByCategoryAxis[key] = {\n categoryAxis: baseAxis,\n valueAxis: coordSys.getOtherAxis(baseAxis),\n series: []\n };\n meta.push({\n axisDim: baseAxis.dim,\n axisIndex: baseAxis.index\n });\n }\n seriesGroupByCategoryAxis[key].series.push(seriesModel);\n }\n else {\n otherSeries.push(seriesModel);\n }\n }\n else {\n otherSeries.push(seriesModel);\n }\n });\n\n return {\n seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n other: otherSeries,\n meta: meta\n };\n}\n\n/**\n * Assemble content of series on cateogory axis\n * @inner\n */\nfunction assembleSeriesWithCategoryAxis(groups: Dictionary): string {\n const tables: string[] = [];\n zrUtil.each(groups, function (group, key) {\n const categoryAxis = group.categoryAxis;\n const valueAxis = group.valueAxis;\n const valueAxisDim = valueAxis.dim;\n\n const headers = [' '].concat(zrUtil.map(group.series, function (series) {\n return series.name;\n }));\n // @ts-ignore TODO Polar\n const columns = [categoryAxis.model.getCategories()];\n zrUtil.each(group.series, function (series) {\n const rawData = series.getRawData();\n columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n return val;\n }));\n });\n // Assemble table content\n const lines = [headers.join(ITEM_SPLITER)];\n for (let i = 0; i < columns[0].length; i++) {\n const items = [];\n for (let j = 0; j < columns.length; j++) {\n items.push(columns[j][i]);\n }\n lines.push(items.join(ITEM_SPLITER));\n }\n tables.push(lines.join('\\n'));\n });\n return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\n/**\n * Assemble content of other series\n */\nfunction assembleOtherSeries(series: SeriesModel[]) {\n return zrUtil.map(series, function (series) {\n const data = series.getRawData();\n const lines = [series.name];\n const vals: string[] = [];\n data.each(data.dimensions, function () {\n const argLen = arguments.length;\n const dataIndex = arguments[argLen - 1];\n const name = data.getName(dataIndex);\n for (let i = 0; i < argLen - 1; i++) {\n vals[i] = arguments[i];\n }\n lines.push((name ? (name + ITEM_SPLITER) : '') + vals.join(ITEM_SPLITER));\n });\n return lines.join('\\n');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\nfunction getContentFromModel(ecModel: GlobalModel) {\n\n const result = groupSeries(ecModel);\n\n return {\n value: zrUtil.filter([\n assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis),\n assembleOtherSeries(result.other)\n ], function (str) {\n return !!str.replace(/[\\n\\t\\s]/g, '');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n'),\n\n meta: result.meta\n };\n}\n\n\nfunction trim(str: string) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n/**\n * If a block is tsv format\n */\nfunction isTSVFormat(block: string): boolean {\n // Simple method to find out if a block is tsv format\n const firstLine = block.slice(0, block.indexOf('\\n'));\n if (firstLine.indexOf(ITEM_SPLITER) >= 0) {\n return true;\n }\n}\n\nconst itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');\n/**\n * @param {string} tsv\n * @return {Object}\n */\nfunction parseTSVContents(tsv: string) {\n const tsvLines = tsv.split(/\\n+/g);\n const headers = trim(tsvLines.shift()).split(itemSplitRegex);\n\n const categories: string[] = [];\n const series: {name: string, data: string[]}[] = zrUtil.map(headers, function (header) {\n return {\n name: header,\n data: []\n };\n });\n for (let i = 0; i < tsvLines.length; i++) {\n const items = trim(tsvLines[i]).split(itemSplitRegex);\n categories.push(items.shift());\n for (let j = 0; j < items.length; j++) {\n series[j] && (series[j].data[i] = items[j]);\n }\n }\n return {\n series: series,\n categories: categories\n };\n}\n\nfunction parseListContents(str: string) {\n const lines = str.split(/\\n+/g);\n const seriesName = trim(lines.shift());\n\n const data: DataList = [];\n for (let i = 0; i < lines.length; i++) {\n // if line is empty, ignore it.\n // there is a case that a user forgot to delete `\\n`.\n const line = trim(lines[i]);\n if (!line) {\n continue;\n }\n let items = line.split(itemSplitRegex);\n\n let name = '';\n let value: number[];\n let hasName = false;\n if (isNaN(items[0] as unknown as number)) { // First item is name\n hasName = true;\n name = items[0];\n items = items.slice(1);\n data[i] = {\n name: name,\n value: []\n };\n value = (data[i] as DataItem).value as number[];\n }\n else {\n value = data[i] = [];\n }\n for (let j = 0; j < items.length; j++) {\n value.push(+items[j]);\n }\n if (value.length === 1) {\n hasName ? ((data[i] as DataItem).value = value[0]) : (data[i] = value[0]);\n }\n }\n\n return {\n name: seriesName,\n data: data\n };\n}\n\nfunction parseContents(str: string, blockMetaList: SeriesGroupMeta[]) {\n const blocks = str.split(new RegExp('\\n*' + BLOCK_SPLITER + '\\n*', 'g'));\n const newOption: ECUnitOption = {\n series: []\n };\n zrUtil.each(blocks, function (block, idx) {\n if (isTSVFormat(block)) {\n const result = parseTSVContents(block);\n const blockMeta = blockMetaList[idx];\n const axisKey = blockMeta.axisDim + 'Axis';\n\n if (blockMeta) {\n newOption[axisKey] = newOption[axisKey] || [];\n (newOption[axisKey] as any)[blockMeta.axisIndex] = {\n data: result.categories\n };\n newOption.series = (newOption.series as SeriesOption[]).concat(result.series);\n }\n }\n else {\n const result = parseListContents(block);\n (newOption.series as SeriesOption[]).push(result);\n }\n });\n return newOption;\n}\n\nexport interface ToolboxDataViewFeatureOption extends ToolboxFeatureOption {\n readOnly?: boolean\n\n optionToContent?: (option: ECUnitOption) => string | HTMLElement\n contentToOption?: (viewMain: HTMLDivElement, oldOption: ECUnitOption) => ECUnitOption\n\n icon?: string\n title?: string\n lang?: string[]\n\n backgroundColor?: ColorString\n\n textColor?: ColorString\n textareaColor?: ColorString\n textareaBorderColor?: ColorString\n\n buttonColor?: ColorString\n buttonTextColor?: ColorString\n}\n\nclass DataView extends ToolboxFeature {\n\n private _dom: HTMLDivElement;\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n const container = api.getDom();\n const model = this.model;\n if (this._dom) {\n container.removeChild(this._dom);\n }\n const root = document.createElement('div');\n root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';\n root.style.backgroundColor = model.get('backgroundColor') || '#fff';\n\n // Create elements\n const header = document.createElement('h4');\n const lang = model.get('lang') || [];\n header.innerHTML = lang[0] || model.get('title');\n header.style.cssText = 'margin: 10px 20px;';\n header.style.color = model.get('textColor');\n\n const viewMain = document.createElement('div');\n const textarea = document.createElement('textarea');\n viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';\n\n const optionToContent = model.get('optionToContent');\n const contentToOption = model.get('contentToOption');\n const result = getContentFromModel(ecModel);\n if (typeof optionToContent === 'function') {\n const htmlOrDom = optionToContent(api.getOption());\n if (typeof htmlOrDom === 'string') {\n viewMain.innerHTML = htmlOrDom;\n }\n else if (zrUtil.isDom(htmlOrDom)) {\n viewMain.appendChild(htmlOrDom);\n }\n }\n else {\n // Use default textarea\n viewMain.appendChild(textarea);\n textarea.readOnly = model.get('readOnly');\n textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';\n textarea.style.color = model.get('textColor');\n textarea.style.borderColor = model.get('textareaBorderColor');\n textarea.style.backgroundColor = model.get('textareaColor');\n textarea.value = result.value;\n }\n\n const blockMetaList = result.meta;\n\n const buttonContainer = document.createElement('div');\n buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';\n\n let buttonStyle = 'float:right;margin-right:20px;border:none;'\n + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';\n const closeButton = document.createElement('div');\n const refreshButton = document.createElement('div');\n\n buttonStyle += ';background-color:' + model.get('buttonColor');\n buttonStyle += ';color:' + model.get('buttonTextColor');\n\n const self = this;\n\n function close() {\n container.removeChild(root);\n self._dom = null;\n }\n addEventListener(closeButton, 'click', close);\n\n addEventListener(refreshButton, 'click', function () {\n if ((contentToOption == null && optionToContent != null)\n || (contentToOption != null && optionToContent == null)) {\n if (__DEV__) {\n // eslint-disable-next-line\n console.warn('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.')\n }\n close();\n return;\n }\n\n let newOption;\n try {\n if (typeof contentToOption === 'function') {\n newOption = contentToOption(viewMain, api.getOption());\n }\n else {\n newOption = parseContents(textarea.value, blockMetaList);\n }\n }\n catch (e) {\n close();\n throw new Error('Data view format error ' + e);\n }\n if (newOption) {\n api.dispatchAction({\n type: 'changeDataView',\n newOption: newOption\n });\n }\n\n close();\n });\n\n closeButton.innerHTML = lang[1];\n refreshButton.innerHTML = lang[2];\n refreshButton.style.cssText = buttonStyle;\n closeButton.style.cssText = buttonStyle;\n\n !model.get('readOnly') && buttonContainer.appendChild(refreshButton);\n buttonContainer.appendChild(closeButton);\n\n root.appendChild(header);\n root.appendChild(viewMain);\n root.appendChild(buttonContainer);\n\n viewMain.style.height = (container.clientHeight - 80) + 'px';\n\n container.appendChild(root);\n this._dom = root;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._dom && api.getDom().removeChild(this._dom);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this.remove(ecModel, api);\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxDataViewFeatureOption = {\n show: true,\n readOnly: false,\n optionToContent: null,\n contentToOption: null,\n\n // eslint-disable-next-line\n icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',\n title: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'title']),\n lang: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'lang']),\n backgroundColor: '#fff',\n textColor: '#000',\n textareaColor: '#fff',\n textareaBorderColor: '#333',\n buttonColor: '#c23531',\n buttonTextColor: '#fff'\n };\n\n return defaultOption;\n }\n}\n\n/**\n * @inner\n */\nfunction tryMergeDataOption(newData: DataList, originalData: DataList) {\n return zrUtil.map(newData, function (newVal, idx) {\n const original = originalData && originalData[idx];\n if (zrUtil.isObject(original) && !zrUtil.isArray(original)) {\n const newValIsObject = zrUtil.isObject(newVal) && !zrUtil.isArray(newVal);\n if (!newValIsObject) {\n newVal = {\n value: newVal\n } as DataItem;\n }\n // original data has name but new data has no name\n const shouldDeleteName = original.name != null && (newVal as DataItem).name == null;\n // Original data has option\n newVal = zrUtil.defaults((newVal as DataItem), original);\n shouldDeleteName && (delete (newVal as DataItem).name);\n return newVal;\n }\n else {\n return newVal;\n }\n });\n}\n\n\n// TODO: SELF REGISTERED.\necharts.registerAction({\n type: 'changeDataView',\n event: 'dataViewChanged',\n update: 'prepareAndUpdate'\n}, function (payload: ChangeDataViewPayload, ecModel: GlobalModel) {\n const newSeriesOptList: SeriesOption[] = [];\n zrUtil.each(payload.newOption.series, function (seriesOpt) {\n const seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];\n if (!seriesModel) {\n // New created series\n // Geuss the series type\n newSeriesOptList.push(zrUtil.extend({\n // Default is scatter\n type: 'scatter'\n }, seriesOpt));\n }\n else {\n const originalData = seriesModel.get('data');\n newSeriesOptList.push({\n name: seriesOpt.name,\n data: tryMergeDataOption(seriesOpt.data as DataList, originalData as DataList)\n });\n }\n });\n\n ecModel.mergeOption(zrUtil.defaults({\n series: newSeriesOptList\n }, payload.newOption));\n});\n\nexport default DataView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport { Dictionary } from '../../util/types';\nimport DataZoomModel from './DataZoomModel';\nimport { makeInner } from '../../util/model';\nimport { DataZoomPayloadBatchItem } from './helper';\n\nconst each = zrUtil.each;\n\nexport type DataZoomStoreSnapshot = Dictionary;\n\ntype Store = {\n snapshots: DataZoomStoreSnapshot[]\n};\n\nconst inner = makeInner();\n\n/**\n * @param ecModel\n * @param newSnapshot key is dataZoomId\n */\nexport function push(ecModel: GlobalModel, newSnapshot: DataZoomStoreSnapshot) {\n const storedSnapshots = getStoreSnapshots(ecModel);\n\n // If previous dataZoom can not be found,\n // complete an range with current range.\n each(newSnapshot, function (batchItem, dataZoomId) {\n let i = storedSnapshots.length - 1;\n for (; i >= 0; i--) {\n const snapshot = storedSnapshots[i];\n if (snapshot[dataZoomId]) {\n break;\n }\n }\n if (i < 0) {\n // No origin range set, create one by current range.\n const dataZoomModel = ecModel.queryComponents(\n {mainType: 'dataZoom', subType: 'select', id: dataZoomId}\n )[0] as DataZoomModel;\n if (dataZoomModel) {\n const percentRange = dataZoomModel.getPercentRange();\n storedSnapshots[0][dataZoomId] = {\n dataZoomId: dataZoomId,\n start: percentRange[0],\n end: percentRange[1]\n };\n }\n }\n });\n\n storedSnapshots.push(newSnapshot);\n}\n\nexport function pop(ecModel: GlobalModel) {\n const storedSnapshots = getStoreSnapshots(ecModel);\n const head = storedSnapshots[storedSnapshots.length - 1];\n storedSnapshots.length > 1 && storedSnapshots.pop();\n\n // Find top for all dataZoom.\n const snapshot: DataZoomStoreSnapshot = {};\n each(head, function (batchItem, dataZoomId) {\n for (let i = storedSnapshots.length - 1; i >= 0; i--) {\n batchItem = storedSnapshots[i][dataZoomId];\n if (batchItem) {\n snapshot[dataZoomId] = batchItem;\n break;\n }\n }\n });\n\n return snapshot;\n}\n\nexport function clear(ecModel: GlobalModel) {\n inner(ecModel).snapshots = null;\n}\n\nexport function count(ecModel: GlobalModel) {\n return getStoreSnapshots(ecModel).length;\n}\n\n/**\n * History length of each dataZoom may be different.\n * this._history[0] is used to store origin range.\n */\nfunction getStoreSnapshots(ecModel: GlobalModel) {\n const store = inner(ecModel);\n if (!store.snapshots) {\n store.snapshots = [{}];\n }\n return store.snapshots;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as echarts from '../../../core/echarts';\nimport * as history from '../../dataZoom/history';\nimport { ToolboxFeatureOption, ToolboxFeature } from '../featureManager';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport GlobalModel from '../../../model/Global';\n\nexport interface ToolboxRestoreFeatureOption extends ToolboxFeatureOption {\n icon?: string\n title?: string\n}\n\nclass RestoreOption extends ToolboxFeature {\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n history.clear(ecModel);\n\n api.dispatchAction({\n type: 'restore',\n from: this.uid\n });\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxRestoreFeatureOption = {\n show: true,\n // eslint-disable-next-line\n icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',\n title: ecModel.getLocaleModel().get(['toolbox', 'restore', 'title'])\n };\n\n return defaultOption;\n }\n}\n\n// TODO: SELF REGISTERED.\necharts.registerAction(\n {type: 'restore', event: 'restore', update: 'prepareAndUpdate'},\n function (payload, ecModel) {\n ecModel.resetOption('recreate');\n }\n);\n\n\nexport default RestoreOption;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { each, indexOf, curry, assert, map, createHashMap } from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as brushHelper from './brushHelper';\nimport {\n BrushPanelConfig, BrushControllerEvents, BrushType,\n BrushAreaRange, BrushDimensionMinMax\n} from './BrushController';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport { CoordinateSystemMaster } from '../../coord/CoordinateSystem';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Geo from '../../coord/geo/Geo';\nimport GlobalModel from '../../model/Global';\nimport { BrushAreaParam, BrushAreaParamInternal } from '../brush/BrushModel';\nimport SeriesModel from '../../model/Series';\nimport { Dictionary } from '../../util/types';\nimport {\n ModelFinderObject, ModelFinder,\n parseFinder as modelUtilParseFinder,\n ParsedModelFinderKnown\n} from '../../util/model';\n\ntype COORD_CONVERTS_INDEX = 0 | 1;\n\n// FIXME\n// how to genarialize to more coordinate systems.\nconst INCLUDE_FINDER_MAIN_TYPES = [\n 'grid', 'xAxis', 'yAxis', 'geo', 'graph',\n 'polar', 'radiusAxis', 'angleAxis', 'bmap'\n];\n\ntype BrushableCoordinateSystem = Cartesian2D | Geo;\ntype BrushTargetBuilderKey = 'grid' | 'geo';\n\n/**\n * There can be multiple axes in a single targetInfo. Consider the case\n * of `grid` component, a targetInfo represents a grid which contains one or more\n * cartesian and one or more axes. And consider the case of parallel system,\n * which has multiple axes in a coordinate system.\n */\ninterface BrushTargetInfo {\n panelId: string;\n coordSysModel: CoordinateSystemMaster['model'];\n // Use the first one as the representitive coordSys.\n // A representitive cartesian in grid (first cartesian by default).\n coordSys: BrushableCoordinateSystem;\n // All cartesians.\n coordSyses: BrushableCoordinateSystem[];\n getPanelRect: GetPanelRect,\n}\nexport interface BrushTargetInfoCartesian2D extends BrushTargetInfo {\n gridModel: GridModel;\n coordSys: Cartesian2D;\n coordSyses: Cartesian2D[];\n xAxisDeclared: boolean;\n yAxisDeclared: boolean;\n}\nexport interface BrushTargetInfoGeo extends BrushTargetInfo {\n geoModel: GeoModel,\n coordSysModel: GeoModel,\n coordSys: Geo,\n coordSyses: Geo[],\n}\ntype GetPanelRect = () => graphic.BoundingRect;\n\n\nclass BrushTargetManager {\n\n private _targetInfoList: BrushTargetInfo[] = [];\n\n /**\n * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid\n * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]}\n * @param opt.include include coordinate system types.\n */\n constructor(\n finder: ModelFinderObject,\n ecModel: GlobalModel,\n opt?: {include?: BrushTargetBuilderKey[]}\n ) {\n const foundCpts = parseFinder(ecModel, finder);\n\n each(targetInfoBuilders, (builder, type) => {\n if (!opt || !opt.include || indexOf(opt.include, type) >= 0) {\n builder(foundCpts, this._targetInfoList);\n }\n });\n }\n\n setOutputRanges(\n areas: BrushControllerEvents['brush']['areas'],\n ecModel: GlobalModel\n ): BrushAreaParam[] {\n this.matchOutputRanges(areas, ecModel, function (\n area: BrushAreaParam,\n coordRange: ReturnType['values'],\n coordSys: BrushableCoordinateSystem\n ) {\n (area.coordRanges || (area.coordRanges = [])).push(coordRange);\n // area.coordRange is the first of area.coordRanges\n if (!area.coordRange) {\n area.coordRange = coordRange;\n // In 'category' axis, coord to pixel is not reversible, so we can not\n // rebuild range by coordRange accrately, which may bring trouble when\n // brushing only one item. So we use __rangeOffset to rebuilding range\n // by coordRange. And this it only used in brush component so it is no\n // need to be adapted to coordRanges.\n const result = coordConvert[area.brushType](0, coordSys, coordRange);\n area.__rangeOffset = {\n offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),\n xyMinMax: result.xyMinMax\n };\n }\n });\n return areas;\n }\n\n matchOutputRanges[0] & {\n brushType: BrushType;\n range: BrushAreaRange;\n }\n )>(\n areas: T[],\n ecModel: GlobalModel,\n cb: (\n area: T,\n coordRange: ReturnType['values'],\n coordSys: BrushableCoordinateSystem,\n ecModel: GlobalModel\n ) => void\n ) {\n each(areas, function (area) {\n const targetInfo = this.findTargetInfo(area, ecModel);\n\n if (targetInfo && targetInfo !== true) {\n each(\n targetInfo.coordSyses,\n function (coordSys) {\n const result = coordConvert[area.brushType](1, coordSys, area.range, true);\n cb(area, result.values, coordSys, ecModel);\n }\n );\n }\n }, this);\n }\n\n /**\n * the `areas` is `BrushModel.areas`.\n * Called in layout stage.\n * convert `area.coordRange` to global range and set panelId to `area.range`.\n */\n setInputRanges(\n areas: BrushAreaParamInternal[],\n ecModel: GlobalModel\n ): void {\n each(areas, function (area) {\n const targetInfo = this.findTargetInfo(area, ecModel);\n\n if (__DEV__) {\n assert(\n !targetInfo || targetInfo === true || area.coordRange,\n 'coordRange must be specified when coord index specified.'\n );\n assert(\n !targetInfo || targetInfo !== true || area.range,\n 'range must be specified in global brush.'\n );\n }\n\n area.range = area.range || [];\n\n // convert coordRange to global range and set panelId.\n if (targetInfo && targetInfo !== true) {\n area.panelId = targetInfo.panelId;\n // (1) area.range shoule always be calculate from coordRange but does\n // not keep its original value, for the sake of the dataZoom scenario,\n // where area.coordRange remains unchanged but area.range may be changed.\n // (2) Only support converting one coordRange to pixel range in brush\n // component. So do not consider `coordRanges`.\n // (3) About __rangeOffset, see comment above.\n const result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);\n const rangeOffset = area.__rangeOffset;\n area.range = rangeOffset\n ? diffProcessor[area.brushType](\n result.values,\n rangeOffset.offset,\n getScales(result.xyMinMax, rangeOffset.xyMinMax)\n )\n : result.values;\n }\n }, this);\n }\n\n makePanelOpts(\n api: ExtensionAPI,\n getDefaultBrushType?: (targetInfo: BrushTargetInfo) => BrushType\n ): BrushPanelConfig[] {\n return map(this._targetInfoList, function (targetInfo) {\n const rect = targetInfo.getPanelRect();\n return {\n panelId: targetInfo.panelId,\n defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null,\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(\n rect, api, targetInfo.coordSysModel\n ),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect)\n };\n });\n }\n\n controlSeries(area: BrushAreaParamInternal, seriesModel: SeriesModel, ecModel: GlobalModel): boolean {\n // Check whether area is bound in coord, and series do not belong to that coord.\n // If do not do this check, some brush (like lineX) will controll all axes.\n const targetInfo = this.findTargetInfo(area, ecModel);\n return targetInfo === true || (\n targetInfo && indexOf(\n targetInfo.coordSyses, seriesModel.coordinateSystem as BrushableCoordinateSystem\n ) >= 0\n );\n }\n\n /**\n * If return Object, a coord found.\n * If reutrn true, global found.\n * Otherwise nothing found.\n */\n findTargetInfo(\n area: ModelFinderObject & {\n panelId?: string\n },\n ecModel: GlobalModel\n ): BrushTargetInfo | true {\n const targetInfoList = this._targetInfoList;\n const foundCpts = parseFinder(ecModel, area);\n\n for (let i = 0; i < targetInfoList.length; i++) {\n const targetInfo = targetInfoList[i];\n const areaPanelId = area.panelId;\n if (areaPanelId) {\n if (targetInfo.panelId === areaPanelId) {\n return targetInfo;\n }\n }\n else {\n for (let j = 0; j < targetInfoMatchers.length; j++) {\n if (targetInfoMatchers[j](foundCpts, targetInfo)) {\n return targetInfo;\n }\n }\n }\n }\n\n return true;\n }\n\n}\n\nfunction formatMinMax(minMax: BrushDimensionMinMax): BrushDimensionMinMax {\n minMax[0] > minMax[1] && minMax.reverse();\n return minMax;\n}\n\nfunction parseFinder(\n ecModel: GlobalModel, finder: ModelFinder\n): ParsedModelFinderKnown {\n return modelUtilParseFinder(\n ecModel, finder, {includeMainTypes: INCLUDE_FINDER_MAIN_TYPES}\n );\n}\n\ntype TargetInfoBuilder = (\n foundCpts: ParsedModelFinderKnown, targetInfoList: BrushTargetInfo[]\n) => void;\nconst targetInfoBuilders: Record = {\n\n grid: function (foundCpts, targetInfoList) {\n const xAxisModels = foundCpts.xAxisModels;\n const yAxisModels = foundCpts.yAxisModels;\n const gridModels = foundCpts.gridModels;\n // Remove duplicated.\n const gridModelMap = createHashMap();\n const xAxesHas = {} as Dictionary;\n const yAxesHas = {} as Dictionary;\n\n if (!xAxisModels && !yAxisModels && !gridModels) {\n return;\n }\n\n each(xAxisModels, function (axisModel) {\n const gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n });\n each(yAxisModels, function (axisModel) {\n const gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n yAxesHas[gridModel.id] = true;\n });\n each(gridModels, function (gridModel) {\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n yAxesHas[gridModel.id] = true;\n });\n\n gridModelMap.each(function (gridModel) {\n const grid = gridModel.coordinateSystem;\n const cartesians = [] as Cartesian2D[];\n\n each(grid.getCartesians(), function (cartesian, index) {\n if (indexOf(xAxisModels, cartesian.getAxis('x').model) >= 0\n || indexOf(yAxisModels, cartesian.getAxis('y').model) >= 0\n ) {\n cartesians.push(cartesian);\n }\n });\n targetInfoList.push({\n panelId: 'grid--' + gridModel.id,\n gridModel: gridModel,\n coordSysModel: gridModel,\n // Use the first one as the representitive coordSys.\n coordSys: cartesians[0],\n coordSyses: cartesians,\n getPanelRect: panelRectBuilders.grid,\n xAxisDeclared: xAxesHas[gridModel.id],\n yAxisDeclared: yAxesHas[gridModel.id]\n } as BrushTargetInfoCartesian2D);\n });\n },\n\n geo: function (foundCpts, targetInfoList) {\n each(foundCpts.geoModels, function (geoModel: GeoModel) {\n const coordSys = geoModel.coordinateSystem;\n targetInfoList.push({\n panelId: 'geo--' + geoModel.id,\n geoModel: geoModel,\n coordSysModel: geoModel,\n coordSys: coordSys,\n coordSyses: [coordSys],\n getPanelRect: panelRectBuilders.geo\n } as BrushTargetInfoGeo);\n });\n }\n};\n\ntype TargetInfoMatcher = (\n foundCpts: ParsedModelFinderKnown, targetInfo: BrushTargetInfo\n) => boolean;\nconst targetInfoMatchers: TargetInfoMatcher[] = [\n\n // grid\n function (foundCpts, targetInfo) {\n const xAxisModel = foundCpts.xAxisModel;\n const yAxisModel = foundCpts.yAxisModel;\n let gridModel = foundCpts.gridModel;\n\n !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);\n !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);\n\n return gridModel && gridModel === (targetInfo as BrushTargetInfoCartesian2D).gridModel;\n },\n\n // geo\n function (foundCpts, targetInfo) {\n const geoModel = foundCpts.geoModel;\n return geoModel && geoModel === (targetInfo as BrushTargetInfoGeo).geoModel;\n }\n];\n\ntype PanelRectBuilder = (this: BrushTargetInfo) => graphic.BoundingRect;\nconst panelRectBuilders: Record = {\n\n grid: function (this: BrushTargetInfoCartesian2D) {\n // grid is not Transformable.\n return this.coordSys.master.getRect().clone();\n },\n\n geo: function (this: BrushTargetInfoGeo) {\n const coordSys = this.coordSys;\n const rect = coordSys.getBoundingRect().clone();\n // geo roam and zoom transform\n rect.applyTransform(graphic.getTransform(coordSys));\n return rect;\n }\n};\n\ntype ConvertCoord = (\n to: COORD_CONVERTS_INDEX,\n coordSys: BrushableCoordinateSystem,\n rangeOrCoordRange: BrushAreaRange,\n clamp?: boolean\n) => {\n values: BrushAreaRange,\n xyMinMax: BrushDimensionMinMax[]\n};\nconst coordConvert: Record = {\n\n lineX: curry(axisConvert, 0),\n\n lineY: curry(axisConvert, 1),\n\n rect: function (to, coordSys, rangeOrCoordRange: BrushDimensionMinMax[], clamp): {\n values: BrushDimensionMinMax[],\n xyMinMax: BrushDimensionMinMax[]\n } {\n const xminymin = to\n ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp)\n : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp);\n const xmaxymax = to\n ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp)\n : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp);\n const values = [\n formatMinMax([xminymin[0], xmaxymax[0]]),\n formatMinMax([xminymin[1], xmaxymax[1]])\n ];\n return {values: values, xyMinMax: values};\n },\n\n polygon: function (to, coordSys, rangeOrCoordRange: BrushDimensionMinMax[], clamp): {\n values: BrushDimensionMinMax[],\n xyMinMax: BrushDimensionMinMax[]\n } {\n const xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];\n const values = map(rangeOrCoordRange, function (item) {\n const p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp);\n xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);\n xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);\n xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);\n xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);\n return p;\n });\n return {values: values, xyMinMax: xyMinMax};\n }\n};\n\nfunction axisConvert(\n axisNameIndex: 0 | 1,\n to: COORD_CONVERTS_INDEX,\n coordSys: Cartesian2D,\n rangeOrCoordRange: BrushDimensionMinMax\n): {\n values: BrushDimensionMinMax,\n xyMinMax: BrushDimensionMinMax[]\n} {\n if (__DEV__) {\n assert(\n coordSys.type === 'cartesian2d',\n 'lineX/lineY brush is available only in cartesian2d.'\n );\n }\n\n const axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);\n const values = formatMinMax(map([0, 1], function (i) {\n return to\n ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true)\n : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));\n }));\n const xyMinMax = [];\n xyMinMax[axisNameIndex] = values;\n xyMinMax[1 - axisNameIndex] = [NaN, NaN];\n\n return {values: values, xyMinMax: xyMinMax};\n}\n\n\ntype DiffProcess = (\n values: BrushDimensionMinMax | BrushDimensionMinMax[],\n refer: BrushDimensionMinMax | BrushDimensionMinMax[],\n scales: ReturnType\n) => BrushDimensionMinMax | BrushDimensionMinMax[];\n\nconst diffProcessor: Record = {\n\n lineX: curry(axisDiffProcessor, 0),\n\n lineY: curry(axisDiffProcessor, 1),\n\n rect: function (\n values: BrushDimensionMinMax[], refer: BrushDimensionMinMax[], scales: ReturnType\n ): BrushDimensionMinMax[] {\n return [\n [values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]],\n [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]\n ];\n },\n\n polygon: function (\n values: BrushDimensionMinMax[], refer: BrushDimensionMinMax[], scales: ReturnType\n ): BrushDimensionMinMax[] {\n return map(values, function (item, idx) {\n return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];\n });\n }\n};\n\nfunction axisDiffProcessor(\n axisNameIndex: 0 | 1,\n values: BrushDimensionMinMax,\n refer: BrushDimensionMinMax,\n scales: ReturnType\n): BrushDimensionMinMax {\n return [\n values[0] - scales[axisNameIndex] * refer[0],\n values[1] - scales[axisNameIndex] * refer[1]\n ];\n}\n\n// We have to process scale caused by dataZoom manually,\n// although it might be not accurate.\n// Return [0~1, 0~1]\nfunction getScales(xyMinMaxCurr: BrushDimensionMinMax[], xyMinMaxOrigin: BrushDimensionMinMax[]): number[] {\n const sizeCurr = getSize(xyMinMaxCurr);\n const sizeOrigin = getSize(xyMinMaxOrigin);\n const scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}\n\nfunction getSize(xyMinMax: BrushDimensionMinMax[]): number[] {\n return xyMinMax\n ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]]\n : [NaN, NaN];\n}\n\nexport default BrushTargetManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n// TODO depends on DataZoom and Brush\nimport * as zrUtil from 'zrender/src/core/util';\nimport BrushController, { BrushControllerEvents, BrushDimensionMinMax } from '../../helper/BrushController';\nimport BrushTargetManager, { BrushTargetInfoCartesian2D } from '../../helper/BrushTargetManager';\nimport * as history from '../../dataZoom/history';\nimport sliderMove from '../../helper/sliderMove';\nimport {\n ToolboxFeature,\n ToolboxFeatureModel,\n ToolboxFeatureOption\n} from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport { Payload, Dictionary, ComponentOption, ItemStyleOption } from '../../../util/types';\nimport Cartesian2D from '../../../coord/cartesian/Cartesian2D';\nimport CartesianAxisModel from '../../../coord/cartesian/AxisModel';\nimport DataZoomModel from '../../dataZoom/DataZoomModel';\nimport {\n DataZoomPayloadBatchItem, DataZoomAxisDimension\n} from '../../dataZoom/helper';\nimport {\n ModelFinderObject, ModelFinderIndexQuery, makeInternalComponentId,\n ModelFinderIdQuery, parseFinder, ParsedModelFinderKnown\n} from '../../../util/model';\nimport ToolboxModel from '../ToolboxModel';\nimport { registerInternalOptionCreator } from '../../../model/internalComponentCreator';\nimport ComponentModel from '../../../model/Component';\n\n\nconst each = zrUtil.each;\n\nconst DATA_ZOOM_ID_BASE = makeInternalComponentId('toolbox-dataZoom_');\n\nconst ICON_TYPES = ['zoom', 'back'] as const;\ntype IconType = typeof ICON_TYPES[number];\n\nexport interface ToolboxDataZoomFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n icon?: {[key in IconType]?: string}\n title?: {[key in IconType]?: string}\n // TODO: TYPE Use type in dataZoom\n filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'\n // Backward compat: false means 'none'\n xAxisIndex?: ModelFinderIndexQuery\n yAxisIndex?: ModelFinderIndexQuery\n xAxisId?: ModelFinderIdQuery\n yAxisId?: ModelFinderIdQuery,\n\n brushStyle?: ItemStyleOption\n}\n\ntype ToolboxDataZoomFeatureModel = ToolboxFeatureModel;\n\nclass DataZoomFeature extends ToolboxFeature {\n\n _brushController: BrushController;\n\n _isZoomActive: boolean;\n\n render(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n if (!this._brushController) {\n this._brushController = new BrushController(api.getZr());\n this._brushController.on('brush', zrUtil.bind(this._onBrush, this))\n .mount();\n }\n updateZoomBtnStatus(featureModel, ecModel, this, payload, api);\n updateBackBtnStatus(featureModel, ecModel);\n }\n\n onclick(\n ecModel: GlobalModel,\n api: ExtensionAPI,\n type: IconType\n ) {\n handlers[type].call(this);\n }\n\n remove(\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._brushController && this._brushController.unmount();\n }\n\n dispose(\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._brushController && this._brushController.dispose();\n }\n\n private _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const areas = eventParam.areas;\n if (!eventParam.isEnd || !areas.length) {\n return;\n }\n const snapshot: history.DataZoomStoreSnapshot = {};\n const ecModel = this.ecModel;\n\n this._brushController.updateCovers([]); // remove cover\n\n const brushTargetManager = new BrushTargetManager(\n makeAxisFinder(this.model),\n ecModel,\n {include: ['grid']}\n );\n brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys: Cartesian2D) {\n if (coordSys.type !== 'cartesian2d') {\n return;\n }\n\n const brushType = area.brushType;\n if (brushType === 'rect') {\n setBatch('x', coordSys, (coordRange as BrushDimensionMinMax[])[0]);\n setBatch('y', coordSys, (coordRange as BrushDimensionMinMax[])[1]);\n }\n else {\n setBatch(\n ({lineX: 'x', lineY: 'y'} as const)[brushType as 'lineX' | 'lineY'],\n coordSys,\n coordRange as BrushDimensionMinMax\n );\n }\n });\n\n history.push(ecModel, snapshot);\n\n this._dispatchZoomAction(snapshot);\n\n function setBatch(dimName: DataZoomAxisDimension, coordSys: Cartesian2D, minMax: number[]) {\n const axis = coordSys.getAxis(dimName);\n const axisModel = axis.model;\n const dataZoomModel = findDataZoom(dimName, axisModel, ecModel);\n\n // Restrict range.\n const minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();\n if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {\n minMax = sliderMove(\n 0, minMax.slice(), axis.scale.getExtent(), 0,\n minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan\n );\n }\n\n dataZoomModel && (snapshot[dataZoomModel.id] = {\n dataZoomId: dataZoomModel.id,\n startValue: minMax[0],\n endValue: minMax[1]\n });\n }\n\n function findDataZoom(\n dimName: DataZoomAxisDimension, axisModel: CartesianAxisModel, ecModel: GlobalModel\n ): DataZoomModel {\n let found;\n ecModel.eachComponent({mainType: 'dataZoom', subType: 'select'}, function (dzModel: DataZoomModel) {\n const has = dzModel.getAxisModel(dimName, axisModel.componentIndex);\n has && (found = dzModel);\n });\n return found;\n }\n };\n\n _dispatchZoomAction(snapshot: history.DataZoomStoreSnapshot): void {\n const batch: DataZoomPayloadBatchItem[] = [];\n\n // Convert from hash map to array.\n each(snapshot, function (batchItem, dataZoomId) {\n batch.push(zrUtil.clone(batchItem));\n });\n\n batch.length && this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n batch: batch\n });\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxDataZoomFeatureOption = {\n show: true,\n filterMode: 'filter',\n // Icon group\n icon: {\n zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',\n back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'\n },\n // `zoom`, `back`\n title: ecModel.getLocaleModel().get(['toolbox', 'dataZoom', 'title']),\n brushStyle: {\n borderWidth: 0,\n color: 'rgba(210,219,238,0.2)'\n }\n };\n\n return defaultOption;\n }\n}\n\nconst handlers: { [key in IconType]: (this: DataZoomFeature) => void } = {\n zoom: function () {\n const nextActive = !this._isZoomActive;\n\n this.api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'dataZoomSelect',\n dataZoomSelectActive: nextActive\n });\n },\n\n back: function () {\n this._dispatchZoomAction(history.pop(this.ecModel));\n }\n};\n\n\nfunction makeAxisFinder(dzFeatureModel: ToolboxDataZoomFeatureModel): ModelFinderObject {\n const setting = {\n xAxisIndex: dzFeatureModel.get('xAxisIndex', true),\n yAxisIndex: dzFeatureModel.get('yAxisIndex', true),\n xAxisId: dzFeatureModel.get('xAxisId', true),\n yAxisId: dzFeatureModel.get('yAxisId', true)\n } as ModelFinderObject;\n\n // If both `xAxisIndex` `xAxisId` not set, it means 'all'.\n // If both `yAxisIndex` `yAxisId` not set, it means 'all'.\n // Some old cases set like this below to close yAxis control but leave xAxis control:\n // `{ feature: { dataZoom: { yAxisIndex: false } }`.\n if (setting.xAxisIndex == null && setting.xAxisId == null) {\n setting.xAxisIndex = 'all';\n }\n if (setting.yAxisIndex == null && setting.yAxisId == null) {\n setting.yAxisIndex = 'all';\n }\n\n return setting;\n}\n\nfunction updateBackBtnStatus(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel\n) {\n featureModel.setIconStatus(\n 'back',\n history.count(ecModel) > 1 ? 'emphasis' : 'normal'\n );\n}\n\nfunction updateZoomBtnStatus(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel,\n view: DataZoomFeature,\n payload: Payload,\n api: ExtensionAPI\n) {\n let zoomActive = view._isZoomActive;\n\n if (payload && payload.type === 'takeGlobalCursor') {\n zoomActive = payload.key === 'dataZoomSelect'\n ? payload.dataZoomSelectActive : false;\n }\n\n view._isZoomActive = zoomActive;\n\n featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');\n\n const brushTargetManager = new BrushTargetManager(\n makeAxisFinder(featureModel),\n ecModel,\n {include: ['grid']}\n );\n\n const panels = brushTargetManager.makePanelOpts(api, function (targetInfo: BrushTargetInfoCartesian2D) {\n return (targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared)\n ? 'lineX'\n : (!targetInfo.xAxisDeclared && targetInfo.yAxisDeclared)\n ? 'lineY'\n : 'rect';\n });\n\n view._brushController\n .setPanels(panels)\n .enableBrush(\n (zoomActive && panels.length)\n ? {\n brushType: 'auto',\n brushStyle: featureModel.getModel('brushStyle').getItemStyle()\n }\n : false\n );\n}\n\nregisterInternalOptionCreator('dataZoom', function (ecModel: GlobalModel): ComponentOption[] {\n const toolboxModel = ecModel.getComponent('toolbox', 0) as ToolboxModel;\n const featureDataZoomPath = ['feature', 'dataZoom'] as const;\n if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) {\n return;\n }\n const dzFeatureModel = toolboxModel.getModel(featureDataZoomPath as any) as ToolboxDataZoomFeatureModel;\n const dzOptions = [] as ComponentOption[];\n\n const finder = makeAxisFinder(dzFeatureModel);\n const finderResult = parseFinder(ecModel, finder) as ParsedModelFinderKnown;\n\n each(finderResult.xAxisModels, axisModel => buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex'));\n each(finderResult.yAxisModels, axisModel => buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex'));\n\n function buildInternalOptions(\n axisModel: ComponentModel,\n axisMainType: 'xAxis' | 'yAxis',\n axisIndexPropName: 'xAxisIndex' | 'yAxisIndex'\n ) {\n const axisIndex = axisModel.componentIndex;\n const newOpt = {\n type: 'select',\n $fromToolbox: true,\n // Default to be filter\n filterMode: dzFeatureModel.get('filterMode', true) || 'filter',\n // Id for merge mapping.\n id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex\n } as Dictionary;\n newOpt[axisIndexPropName] = axisIndex;\n\n dzOptions.push(newOpt);\n }\n\n return dzOptions;\n});\n\n\nexport default DataZoomFeature;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport { install as installDataZoomSelect } from '../../component/dataZoom/installDataZoomSelect';\nimport ToolboxModel from './ToolboxModel';\nimport ToolboxView from './ToolboxView';\n\n// TODOD: REGISTER IN INSTALL\nimport { registerFeature } from './featureManager';\nimport SaveAsImage from './feature/SaveAsImage';\nimport MagicType from './feature/MagicType';\nimport DataView from './feature/DataView';\nimport Restore from './feature/Restore';\nimport DataZoom from './feature/DataZoom';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(ToolboxModel);\n registers.registerComponentView(ToolboxView);\n\n registerFeature('saveAsImage', SaveAsImage);\n registerFeature('magicType', MagicType);\n registerFeature('dataView', DataView);\n registerFeature('dataZoom', DataZoom);\n registerFeature('restore', Restore);\n\n use(installDataZoomSelect);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n LabelOption,\n LineStyleOption,\n CommonTooltipOption,\n TooltipRenderMode,\n CallbackDataParams,\n TooltipOrderMode\n} from '../../util/types';\nimport {AxisPointerOption} from '../axisPointer/AxisPointerModel';\n\n\nexport type TopLevelFormatterParams = CallbackDataParams | CallbackDataParams[];\n\nexport interface TooltipOption extends CommonTooltipOption, ComponentOption {\n mainType?: 'tooltip'\n\n axisPointer?: AxisPointerOption & {\n axis?: 'auto' | 'x' | 'y' | 'angle' | 'radius'\n crossStyle?: LineStyleOption & {\n // TODO\n textStyle?: LabelOption\n }\n }\n /**\n * If show popup content\n */\n showContent?: boolean\n /**\n * Trigger only works on coordinate system.\n */\n trigger?: 'item' | 'axis' | 'none'\n\n displayMode?: 'single' | 'multipleByCoordSys';\n\n /**\n * 'auto': use html by default, and use non-html if `document` is not defined\n * 'html': use html for tooltip\n * 'richText': use canvas, svg, and etc. for tooltip\n */\n renderMode?: 'auto' | TooltipRenderMode // TODO richText renamed canvas?\n\n /**\n * If append popup dom to document.body\n * Only available when renderMode is html\n */\n appendToBody?: boolean\n\n /**\n * specified class name of tooltip dom\n * Only available when renderMode is html\n */\n className?: string\n\n order?: TooltipOrderMode\n}\n\nclass TooltipModel extends ComponentModel {\n static type = 'tooltip' as const;\n type = TooltipModel.type;\n\n static dependencies = ['axisPointer'];\n\n static defaultOption: TooltipOption = {\n zlevel: 0,\n\n z: 60,\n\n show: true,\n\n // tooltip main content\n showContent: true,\n\n // 'trigger' only works on coordinate system.\n // 'item' | 'axis' | 'none'\n trigger: 'item',\n\n // 'click' | 'mousemove' | 'none'\n triggerOn: 'mousemove|click',\n\n alwaysShowContent: false,\n\n displayMode: 'single', // 'single' | 'multipleByCoordSys'\n\n renderMode: 'auto', // 'auto' | 'html' | 'richText'\n\n // whether restraint content inside viewRect.\n // If renderMode: 'richText', default true.\n // If renderMode: 'html', defaut false (for backward compat).\n confine: null,\n\n showDelay: 0,\n\n hideDelay: 100,\n\n // Animation transition time, unit is second\n transitionDuration: 0.4,\n\n enterable: false,\n\n backgroundColor: '#fff',\n\n // box shadow\n shadowBlur: 10,\n shadowColor: 'rgba(0, 0, 0, .2)',\n shadowOffsetX: 1,\n shadowOffsetY: 2,\n\n // tooltip border radius, unit is px, default is 4\n borderRadius: 4,\n\n // tooltip border width, unit is px, default is 0 (no border)\n borderWidth: 1,\n\n // Tooltip inside padding, default is 5 for all direction\n // Array is allowed to set up, right, bottom, left, same with css\n // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.\n padding: null,\n\n // Extra css text\n extraCssText: '',\n\n // axis indicator, trigger by axis\n axisPointer: {\n // default is line\n // legal values: 'line' | 'shadow' | 'cross'\n type: 'line',\n\n // Valid when type is line, appoint tooltip line locate on which line. Optional\n // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'\n // default is 'auto', chose the axis which type is category.\n // for multiply y axis, cartesian coord chose x axis, polar chose angle axis\n axis: 'auto',\n\n animation: 'auto',\n animationDurationUpdate: 200,\n animationEasingUpdate: 'exponentialOut',\n\n crossStyle: {\n color: '#999',\n width: 1,\n type: 'dashed',\n\n // TODO formatter\n textStyle: {}\n }\n\n // lineStyle and shadowStyle should not be specified here,\n // otherwise it will always override those styles on option.axisPointer.\n },\n textStyle: {\n color: '#666',\n fontSize: 14\n }\n };\n}\n\nexport default TooltipModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { TooltipOption } from './TooltipModel';\nimport Model from '../../model/Model';\nimport { toCamelCase } from '../../util/format';\nimport env from 'zrender/src/core/env';\n\n/* global document */\n\nexport function shouldTooltipConfine(tooltipModel: Model): boolean {\n const confineOption = tooltipModel.get('confine');\n return confineOption != null\n ? !!confineOption\n // In richText mode, the outside part can not be visible.\n : tooltipModel.get('renderMode') === 'richText';\n}\n\nfunction testStyle(styleProps: string[]): string | undefined {\n if (!env.domSupported) {\n return;\n }\n const style = document.documentElement.style;\n for (let i = 0, len = styleProps.length; i < len; i++) {\n if (styleProps[i] in style) {\n return styleProps[i];\n }\n }\n}\n\nexport const TRANSFORM_VENDOR = testStyle(\n ['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']\n);\n\nexport const TRANSITION_VENDOR = testStyle(\n ['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']\n);\n\nexport function toCSSVendorPrefix(styleVendor: string, styleProp: string) {\n if (!styleVendor) {\n return styleProp;\n }\n styleProp = toCamelCase(styleProp, true);\n const idx = styleVendor.indexOf(styleProp);\n styleVendor = idx === -1\n ? styleProp\n : `-${styleVendor.slice(0, idx)}-${styleProp}`;\n return styleVendor.toLowerCase();\n}\n\nexport function getComputedStyle(el: HTMLElement, style?: string) {\n const stl = (el as any).currentStyle\n || (document.defaultView && document.defaultView.getComputedStyle(el));\n return stl\n ? style ? stl[style] : stl\n : null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isString, indexOf, each, bind, isArray, isDom } from 'zrender/src/core/util';\nimport { toHex } from 'zrender/src/tool/color';\nimport { normalizeEvent } from 'zrender/src/core/event';\nimport { transformLocalCoord } from 'zrender/src/core/dom';\nimport env from 'zrender/src/core/env';\nimport { convertToColorString, toCamelCase, normalizeCssArray } from '../../util/format';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\nimport type { ZRenderType } from 'zrender/src/zrender';\nimport type { TooltipOption } from './TooltipModel';\nimport Model from '../../model/Model';\nimport type { ZRRawEvent } from 'zrender/src/core/types';\nimport type { ZRColor } from '../../util/types';\nimport type CanvasPainter from 'zrender/src/canvas/Painter';\nimport type SVGPainter from 'zrender/src/svg/Painter';\nimport {\n shouldTooltipConfine,\n toCSSVendorPrefix,\n getComputedStyle,\n TRANSFORM_VENDOR,\n TRANSITION_VENDOR\n} from './helper';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\n\n/* global document, window */\n\nconst CSS_TRANSITION_VENDOR = toCSSVendorPrefix(TRANSITION_VENDOR, 'transition');\nconst CSS_TRANSFORM_VENDOR = toCSSVendorPrefix(TRANSFORM_VENDOR, 'transform');\n\n// eslint-disable-next-line\nconst gCssText = `position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;${env.transform3dSupported ? 'will-change:transform;' : ''}`;\n\nfunction mirrorPos(pos: string): string {\n pos = pos === 'left'\n ? 'right'\n : pos === 'right'\n ? 'left'\n : pos === 'top'\n ? 'bottom'\n : 'top';\n return pos;\n}\n\nfunction assembleArrow(\n tooltipModel: Model,\n borderColor: ZRColor,\n arrowPosition: TooltipOption['position']\n) {\n if (!isString(arrowPosition) || arrowPosition === 'inside') {\n return '';\n }\n\n const backgroundColor = tooltipModel.get('backgroundColor');\n const borderWidth = tooltipModel.get('borderWidth');\n\n borderColor = convertToColorString(borderColor);\n const arrowPos = mirrorPos(arrowPosition);\n const arrowSize = Math.max(Math.round(borderWidth) * 1.5, 6);\n let positionStyle = '';\n let transformStyle = CSS_TRANSFORM_VENDOR + ':';\n let rotateDeg;\n if (indexOf(['left', 'right'], arrowPos) > -1) {\n positionStyle += 'top:50%';\n transformStyle += `translateY(-50%) rotate(${rotateDeg = arrowPos === 'left' ? -225 : -45}deg)`;\n }\n else {\n positionStyle += 'left:50%';\n transformStyle += `translateX(-50%) rotate(${rotateDeg = arrowPos === 'top' ? 225 : 45}deg)`;\n }\n const rotateRadian = rotateDeg * Math.PI / 180;\n const arrowWH = arrowSize + borderWidth;\n const rotatedWH = arrowWH * Math.abs(Math.cos(rotateRadian)) + arrowWH * Math.abs(Math.sin(rotateRadian));\n const arrowOffset = Math.round(((rotatedWH - Math.SQRT2 * borderWidth) / 2\n + Math.SQRT2 * borderWidth - (rotatedWH - arrowWH) / 2) * 100) / 100;\n positionStyle += `;${arrowPos}:-${arrowOffset}px`;\n\n const borderStyle = `${borderColor} solid ${borderWidth}px;`;\n const styleCss = [\n `position:absolute;width:${arrowSize}px;height:${arrowSize}px;`,\n `${positionStyle};${transformStyle};`,\n `border-bottom:${borderStyle}`,\n `border-right:${borderStyle}`,\n `background-color:${backgroundColor};`\n ];\n\n return `
`;\n}\n\nfunction assembleTransition(duration: number, onlyFade?: boolean): string {\n const transitionCurve = 'cubic-bezier(0.23,1,0.32,1)';\n let transitionOption = ` ${duration / 2}s ${transitionCurve}`;\n let transitionText = `opacity${transitionOption},visibility${transitionOption}`;\n if (!onlyFade) {\n transitionOption = ` ${duration}s ${transitionCurve}`;\n transitionText += env.transformSupported\n ? `,${CSS_TRANSFORM_VENDOR}${transitionOption}`\n : `,left${transitionOption},top${transitionOption}`;\n }\n\n return CSS_TRANSITION_VENDOR + ':' + transitionText;\n}\n\nfunction assembleTransform(x: number, y: number, toString?: boolean) {\n // If using float on style, the final width of the dom might\n // keep changing slightly while mouse move. So `toFixed(0)` them.\n const x0 = x.toFixed(0) + 'px';\n const y0 = y.toFixed(0) + 'px';\n // not support transform, use `left` and `top` instead.\n if (!env.transformSupported) {\n return toString\n ? `top:${y0};left:${x0};`\n : [['top', y0], ['left', x0]];\n }\n // support transform\n const is3d = env.transform3dSupported;\n const translate = `translate${is3d ? '3d' : ''}(${x0},${y0}${is3d ? ',0' : ''})`;\n return toString\n ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';'\n : [['top', 0], ['left', 0], [TRANSFORM_VENDOR, translate]];\n}\n\n/**\n * @param {Object} textStyle\n * @return {string}\n * @inner\n */\nfunction assembleFont(textStyleModel: Model): string {\n const cssText = [];\n\n const fontSize = textStyleModel.get('fontSize');\n const color = textStyleModel.getTextColor();\n\n color && cssText.push('color:' + color);\n\n cssText.push('font:' + textStyleModel.getFont());\n\n fontSize\n // @ts-ignore, leave it to the tooltip refactor.\n && cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');\n\n const shadowColor = textStyleModel.get('textShadowColor');\n const shadowBlur = textStyleModel.get('textShadowBlur') || 0;\n const shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;\n const shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;\n shadowColor && shadowBlur\n && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px '\n + shadowBlur + 'px ' + shadowColor);\n\n each(['decoration', 'align'] as const, function (name) {\n const val = textStyleModel.get(name);\n val && cssText.push('text-' + name + ':' + val);\n });\n\n return cssText.join(';');\n}\n\nfunction assembleCssText(tooltipModel: Model, enableTransition?: boolean, onlyFade?: boolean) {\n const cssText: string[] = [];\n const transitionDuration = tooltipModel.get('transitionDuration');\n const backgroundColor = tooltipModel.get('backgroundColor');\n const shadowBlur = tooltipModel.get('shadowBlur');\n const shadowColor = tooltipModel.get('shadowColor');\n const shadowOffsetX = tooltipModel.get('shadowOffsetX');\n const shadowOffsetY = tooltipModel.get('shadowOffsetY');\n const textStyleModel = tooltipModel.getModel('textStyle');\n const padding = getPaddingFromTooltipModel(tooltipModel, 'html');\n const boxShadow = `${shadowOffsetX}px ${shadowOffsetY}px ${shadowBlur}px ${shadowColor}`;\n\n cssText.push('box-shadow:' + boxShadow);\n // Animation transition. Do not animate when transitionDuration is 0.\n enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade));\n\n if (backgroundColor) {\n if (env.canvasSupported) {\n cssText.push('background-color:' + backgroundColor);\n }\n else {\n // for ie\n cssText.push(\n 'background-color:#' + toHex(backgroundColor)\n );\n cssText.push('filter:alpha(opacity=70)');\n }\n }\n\n // Border style\n each(['width', 'color', 'radius'] as const, function (name) {\n const borderName = 'border-' + name;\n const camelCase = toCamelCase(borderName) as 'borderWidth' | 'borderColor' | 'borderRadius';\n const val = tooltipModel.get(camelCase);\n val != null\n && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));\n });\n\n // Text style\n cssText.push(assembleFont(textStyleModel));\n\n // Padding\n if (padding != null) {\n cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px');\n }\n\n return cssText.join(';') + ';';\n}\n\n// If not able to make, do not modify the input `out`.\nfunction makeStyleCoord(out: number[], zr: ZRenderType, appendToBody: boolean, zrX: number, zrY: number) {\n const zrPainter = zr && zr.painter;\n\n if (appendToBody) {\n const zrViewportRoot = zrPainter && zrPainter.getViewportRoot();\n if (zrViewportRoot) {\n // Some APPs might use scale on body, so we support CSS transform here.\n transformLocalCoord(out, zrViewportRoot, document.body, zrX, zrY);\n }\n }\n else {\n out[0] = zrX;\n out[1] = zrY;\n // xy should be based on canvas root. But tooltipContent is\n // the sibling of canvas root. So padding of ec container\n // should be considered here.\n const viewportRootOffset = zrPainter && (zrPainter as CanvasPainter | SVGPainter).getViewportRootOffset();\n if (viewportRootOffset) {\n out[0] += viewportRootOffset.offsetLeft;\n out[1] += viewportRootOffset.offsetTop;\n }\n }\n\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\ninterface TooltipContentOption {\n /**\n * `false`: the DOM element will be inside the container. Default value.\n * `true`: the DOM element will be appended to HTML body, which avoid\n * some overflow clip but intrude outside of the container.\n */\n appendToBody: boolean\n}\n\nclass TooltipHTMLContent {\n\n el: HTMLDivElement;\n\n private _container: HTMLElement;\n\n private _show: boolean = false;\n\n private _styleCoord: [number, number, number, number] = [0, 0, 0, 0];\n private _appendToBody: boolean;\n\n private _enterable = true;\n private _zr: ZRenderType;\n\n private _hideTimeout: number;\n /**\n * Hide delay time\n */\n private _hideDelay: number;\n\n private _inContent: boolean;\n private _firstShow = true;\n private _longHide = true;\n /**\n * Record long-time hide\n */\n private _longHideTimeout: number;\n\n constructor(\n container: HTMLElement,\n api: ExtensionAPI,\n opt: TooltipContentOption\n ) {\n if (env.wxa) {\n return null;\n }\n\n const el = document.createElement('div');\n // TODO: TYPE\n (el as any).domBelongToZr = true;\n this.el = el;\n const zr = this._zr = api.getZr();\n const appendToBody = this._appendToBody = opt && opt.appendToBody;\n\n makeStyleCoord(this._styleCoord, zr, appendToBody, api.getWidth() / 2, api.getHeight() / 2);\n\n if (appendToBody) {\n document.body.appendChild(el);\n }\n else {\n container.appendChild(el);\n }\n\n this._container = container;\n\n // FIXME\n // Is it needed to trigger zr event manually if\n // the browser do not support `pointer-events: none`.\n\n const self = this;\n el.onmouseenter = function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n self._inContent = true;\n };\n el.onmousemove = function (e) {\n e = e || (window as any).event;\n if (!self._enterable) {\n // `pointer-events: none` is set to tooltip content div\n // if `enterable` is set as `false`, and `el.onmousemove`\n // can not be triggered. But in browser that do not\n // support `pointer-events`, we need to do this:\n // Try trigger zrender event to avoid mouse\n // in and out shape too frequently\n const handler = zr.handler;\n const zrViewportRoot = zr.painter.getViewportRoot();\n normalizeEvent(zrViewportRoot, e as ZRRawEvent, true);\n handler.dispatch('mousemove', e);\n }\n };\n el.onmouseleave = function () {\n // set `_inContent` to `false` before `hideLater`\n self._inContent = false;\n\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n };\n }\n\n /**\n * Update when tooltip is rendered\n */\n update(tooltipModel: Model) {\n // FIXME\n // Move this logic to ec main?\n const container = this._container;\n const position = getComputedStyle(container, 'position');\n const domStyle = container.style;\n if (domStyle.position !== 'absolute' && position !== 'absolute') {\n domStyle.position = 'relative';\n }\n\n // move tooltip if chart resized\n const alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n\n // update className\n this.el.className = tooltipModel.get('className') || '';\n\n // Hide the tooltip\n // PENDING\n // this.hide();\n }\n\n show(tooltipModel: Model, nearPointColor: ZRColor) {\n clearTimeout(this._hideTimeout);\n clearTimeout(this._longHideTimeout);\n const el = this.el;\n const style = el.style;\n const styleCoord = this._styleCoord;\n if (!el.innerHTML) {\n style.display = 'none';\n }\n else {\n style.cssText = gCssText\n + assembleCssText(tooltipModel, !this._firstShow, this._longHide)\n // initial transform\n + assembleTransform(styleCoord[0], styleCoord[1], true)\n + `border-color:${convertToColorString(nearPointColor)};`\n + (tooltipModel.get('extraCssText') || '')\n // If mouse occasionally move over the tooltip, a mouseout event will be\n // triggered by canvas, and cause some unexpectable result like dragging\n // stop, \"unfocusAdjacency\". Here `pointer-events: none` is used to solve\n // it. Although it is not supported by IE8~IE10, fortunately it is a rare\n // scenario.\n + `;pointer-events:${this._enterable ? 'auto' : 'none'}`;\n }\n\n this._show = true;\n this._firstShow = false;\n this._longHide = false;\n }\n\n setContent(\n content: string | HTMLElement | HTMLElement[],\n markers: unknown,\n tooltipModel: Model,\n borderColor?: ZRColor,\n arrowPosition?: TooltipOption['position']\n ) {\n const el = this.el;\n\n if (content == null) {\n el.innerHTML = '';\n return;\n }\n\n let arrow = '';\n if (isString(arrowPosition) && tooltipModel.get('trigger') === 'item'\n && !shouldTooltipConfine(tooltipModel)) {\n arrow = assembleArrow(tooltipModel, borderColor, arrowPosition);\n }\n if (isString(content)) {\n el.innerHTML = content + arrow;\n }\n else if (content) {\n // Clear previous\n el.innerHTML = '';\n if (!isArray(content)) {\n content = [content];\n }\n for (let i = 0; i < content.length; i++) {\n if (isDom(content[i]) && content[i].parentNode !== el) {\n el.appendChild(content[i]);\n }\n }\n // no arrow if empty\n if (arrow && el.childNodes.length) {\n // no need to create a new parent element, but it's not supported by IE 10 and older.\n // const arrowEl = document.createRange().createContextualFragment(arrow);\n const arrowEl = document.createElement('div');\n arrowEl.innerHTML = arrow;\n el.appendChild(arrowEl);\n }\n }\n }\n\n setEnterable(enterable: boolean) {\n this._enterable = enterable;\n }\n\n getSize() {\n const el = this.el;\n return [el.offsetWidth, el.offsetHeight];\n }\n\n moveTo(zrX: number, zrY: number) {\n const styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, this._appendToBody, zrX, zrY);\n\n if (styleCoord[0] != null && styleCoord[1] != null) {\n const style = this.el.style;\n const transforms = assembleTransform(styleCoord[0], styleCoord[1]) as string[][];\n each(transforms, (transform) => {\n style[transform[0] as any] = transform[1];\n });\n }\n }\n\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n _moveIfResized() {\n // The ratio of left to width\n const ratioX = this._styleCoord[2];\n // The ratio of top to height\n const ratioY = this._styleCoord[3];\n this.moveTo(\n ratioX * this._zr.getWidth(),\n ratioY * this._zr.getHeight()\n );\n }\n\n hide() {\n const style = this.el.style;\n style.visibility = 'hidden';\n style.opacity = '0';\n env.transform3dSupported && (style.willChange = '');\n this._show = false;\n this._longHideTimeout = setTimeout(() => this._longHide = true, 500) as any;\n }\n\n hideLater(time?: number) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time;\n // Set show false to avoid invoke hideLater multiple times\n this._show = false;\n this._hideTimeout = setTimeout(bind(this.hide, this), time) as any;\n }\n else {\n this.hide();\n }\n }\n }\n\n isShow() {\n return this._show;\n }\n\n dispose() {\n this.el.parentNode.removeChild(this.el);\n }\n\n getOuterSize() {\n let width = this.el.clientWidth;\n let height = this.el.clientHeight;\n\n // Consider browser compatibility.\n // IE8 does not support getComputedStyle.\n const stl = getComputedStyle(this.el);\n if (stl) {\n width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10);\n height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10);\n }\n\n return {width: width, height: height};\n }\n\n}\n\nexport default TooltipHTMLContent;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { TooltipOption } from './TooltipModel';\nimport { ZRColor } from '../../util/types';\nimport Model from '../../model/Model';\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { TooltipMarkupStyleCreator, getPaddingFromTooltipModel } from './tooltipMarkup';\nimport { throwError } from '../../util/log';\n\nclass TooltipRichContent {\n\n private _zr: ZRenderType;\n\n private _show = false;\n\n private _styleCoord: [number, number, number, number] = [0, 0, 0, 0];\n\n private _hideTimeout: number;\n\n private _enterable = true;\n\n private _inContent: boolean;\n\n private _hideDelay: number;\n\n el: ZRText;\n\n constructor(api: ExtensionAPI) {\n this._zr = api.getZr();\n makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2);\n }\n\n /**\n * Update when tooltip is rendered\n */\n update(tooltipModel: Model) {\n const alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n }\n\n show() {\n if (this._hideTimeout) {\n clearTimeout(this._hideTimeout);\n }\n\n this.el.show();\n this._show = true;\n }\n\n /**\n * Set tooltip content\n */\n setContent(\n content: string | HTMLElement | HTMLElement[],\n markupStyleCreator: TooltipMarkupStyleCreator,\n tooltipModel: Model,\n borderColor: ZRColor,\n arrowPosition: TooltipOption['position']\n ) {\n if (zrUtil.isObject(content)) {\n throwError(__DEV__ ? 'Passing DOM nodes as content is not supported in richText tooltip!' : '');\n }\n if (this.el) {\n this._zr.remove(this.el);\n }\n\n const textStyleModel = tooltipModel.getModel('textStyle');\n\n this.el = new ZRText({\n style: {\n rich: markupStyleCreator.richTextStyles,\n text: content as string,\n lineHeight: 22,\n backgroundColor: tooltipModel.get('backgroundColor'),\n borderRadius: tooltipModel.get('borderRadius'),\n borderWidth: 1,\n borderColor: borderColor as string,\n shadowColor: tooltipModel.get('shadowColor'),\n shadowBlur: tooltipModel.get('shadowBlur'),\n shadowOffsetX: tooltipModel.get('shadowOffsetX'),\n shadowOffsetY: tooltipModel.get('shadowOffsetY'),\n textShadowColor: textStyleModel.get('textShadowColor'),\n textShadowBlur: textStyleModel.get('textShadowBlur') || 0,\n textShadowOffsetX: textStyleModel.get('textShadowOffsetX') || 0,\n textShadowOffsetY: textStyleModel.get('textShadowOffsetY') || 0,\n fill: tooltipModel.get(['textStyle', 'color']),\n padding: getPaddingFromTooltipModel(tooltipModel, 'richText'),\n verticalAlign: 'top',\n align: 'left'\n },\n z: tooltipModel.get('z')\n });\n this._zr.add(this.el);\n\n const self = this;\n this.el.on('mouseover', function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n self._inContent = true;\n });\n this.el.on('mouseout', function () {\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n self._inContent = false;\n });\n }\n\n setEnterable(enterable?: boolean) {\n this._enterable = enterable;\n }\n\n getSize() {\n const el = this.el;\n const bounding = this.el.getBoundingRect();\n // bounding rect does not include shadow. For renderMode richText,\n // if overflow, it will be cut. So calculate them accurately.\n const shadowOuterSize = calcShadowOuterSize(el.style);\n return [\n bounding.width + shadowOuterSize.left + shadowOuterSize.right,\n bounding.height + shadowOuterSize.top + shadowOuterSize.bottom\n ];\n }\n\n moveTo(x: number, y: number) {\n const el = this.el;\n if (el) {\n const styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, x, y);\n x = styleCoord[0];\n y = styleCoord[1];\n const style = el.style;\n const borderWidth = mathMaxWith0(style.borderWidth || 0);\n const shadowOuterSize = calcShadowOuterSize(style);\n // rich text x, y do not include border.\n el.x = x + borderWidth + shadowOuterSize.left;\n el.y = y + borderWidth + shadowOuterSize.top;\n el.markRedraw();\n }\n }\n\n\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n _moveIfResized() {\n // The ratio of left to width\n const ratioX = this._styleCoord[2];\n // The ratio of top to height\n const ratioY = this._styleCoord[3];\n this.moveTo(\n ratioX * this._zr.getWidth(),\n ratioY * this._zr.getHeight()\n );\n }\n\n hide() {\n if (this.el) {\n this.el.hide();\n }\n this._show = false;\n }\n\n hideLater(time?: number) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time;\n // Set show false to avoid invoke hideLater multiple times\n this._show = false;\n this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time) as any;\n }\n else {\n this.hide();\n }\n }\n }\n\n isShow() {\n return this._show;\n }\n\n getOuterSize() {\n const size = this.getSize();\n return {\n width: size[0],\n height: size[1]\n };\n }\n\n dispose() {\n this._zr.remove(this.el);\n }\n}\n\nfunction mathMaxWith0(val: number): number {\n return Math.max(0, val);\n}\n\nfunction calcShadowOuterSize(style: TextStyleProps) {\n const shadowBlur = mathMaxWith0(style.shadowBlur || 0);\n const shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0);\n const shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0);\n return {\n left: mathMaxWith0(shadowBlur - shadowOffsetX),\n right: mathMaxWith0(shadowBlur + shadowOffsetX),\n top: mathMaxWith0(shadowBlur - shadowOffsetY),\n bottom: mathMaxWith0(shadowBlur + shadowOffsetY)\n };\n}\n\nfunction makeStyleCoord(out: number[], zr: ZRenderType, zrX: number, zrY: number) {\n out[0] = zrX;\n out[1] = zrY;\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nexport default TooltipRichContent;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport TooltipHTMLContent from './TooltipHTMLContent';\nimport TooltipRichContent from './TooltipRichContent';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport findPointFromSeries from '../axisPointer/findPointFromSeries';\nimport * as layoutUtil from '../../util/layout';\nimport Model from '../../model/Model';\nimport * as globalListener from '../axisPointer/globalListener';\nimport * as axisHelper from '../../coord/axisHelper';\nimport * as axisPointerViewHelper from '../axisPointer/viewHelper';\nimport { getTooltipRenderMode, preParseFinder, queryReferringComponents } from '../../util/model';\nimport ComponentView from '../../view/Component';\nimport { format as timeFormat } from '../../util/time';\nimport {\n HorizontalAlign,\n VerticalAlign,\n ZRRectLike,\n BoxLayoutOptionMixin,\n CallbackDataParams,\n TooltipRenderMode,\n ECElement,\n CommonTooltipOption,\n ZRColor,\n ComponentMainType,\n ComponentItemTooltipOption\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TooltipModel, { TooltipOption } from './TooltipModel';\nimport Element from 'zrender/src/Element';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\n// import { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { ECData, getECData } from '../../util/innerStore';\nimport { shouldTooltipConfine } from './helper';\nimport { DataByCoordSys, DataByAxis } from '../axisPointer/axisTrigger';\nimport { normalizeTooltipFormatResult } from '../../model/mixin/dataFormat';\nimport { createTooltipMarkup, buildTooltipMarkup, TooltipMarkupStyleCreator } from './tooltipMarkup';\nimport { findEventDispatcher } from '../../util/event';\n\nconst bind = zrUtil.bind;\nconst each = zrUtil.each;\nconst parsePercent = numberUtil.parsePercent;\n\nconst proxyRect = new graphic.Rect({\n shape: { x: -1, y: -1, width: 2, height: 2 }\n});\n\ninterface DataIndex {\n seriesIndex: number\n dataIndex: number\n\n dataIndexInside: number\n}\n\ninterface ShowTipPayload {\n type?: 'showTip'\n from?: string\n\n // Type 1\n tooltip?: ECData['tooltipConfig']['option']\n\n // Type 2\n dataByCoordSys?: DataByCoordSys[]\n tooltipOption?: CommonTooltipOption\n\n // Type 3\n seriesIndex?: number\n dataIndex?: number\n\n // Type 4\n name?: string // target item name that enable tooltip.\n // legendIndex: 0,\n // toolboxId: 'some_id',\n // geoName: 'some_name',\n\n x?: number\n y?: number\n position?: TooltipOption['position']\n\n dispatchAction?: ExtensionAPI['dispatchAction']\n}\n\ninterface HideTipPayload {\n type?: 'hideTip'\n from?: string\n\n dispatchAction?: ExtensionAPI['dispatchAction']\n}\n\ninterface TryShowParams {\n target?: ECElement,\n\n offsetX?: number\n offsetY?: number\n\n /**\n * Used for axis trigger.\n */\n dataByCoordSys?: DataByCoordSys[]\n\n tooltipOption?: ComponentItemTooltipOption\n\n position?: TooltipOption['position']\n /**\n * If `position` is not set in payload nor option, use it.\n */\n positionDefault?: TooltipOption['position']\n}\n\ntype TooltipCallbackDataParams = CallbackDataParams & {\n axisDim?: string\n axisIndex?: number\n axisType?: string\n axisId?: string\n // TODO: TYPE Value type\n axisValue?: string | number\n axisValueLabel?: string\n marker?: formatUtil.TooltipMarker\n};\n\nclass TooltipView extends ComponentView {\n static type = 'tooltip' as const;\n type = TooltipView.type;\n\n private _renderMode: TooltipRenderMode;\n\n private _tooltipModel: TooltipModel;\n\n private _ecModel: GlobalModel;\n\n private _api: ExtensionAPI;\n\n private _alwaysShowContent: boolean;\n\n private _tooltipContent: TooltipHTMLContent | TooltipRichContent;\n\n private _refreshUpdateTimeout: number;\n\n private _lastX: number;\n private _lastY: number;\n\n private _ticket: string;\n\n private _showTimout: number;\n\n private _lastDataByCoordSys: DataByCoordSys[];\n private _cbParamsList: TooltipCallbackDataParams[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n\n const tooltipModel = ecModel.getComponent('tooltip') as TooltipModel;\n const renderMode = tooltipModel.get('renderMode');\n this._renderMode = getTooltipRenderMode(renderMode);\n\n this._tooltipContent = this._renderMode === 'richText'\n ? new TooltipRichContent(api)\n : new TooltipHTMLContent(api.getDom(), api, {\n appendToBody: tooltipModel.get('appendToBody', true)\n });\n }\n\n render(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n if (env.node) {\n return;\n }\n\n // Reset\n this.group.removeAll();\n\n this._tooltipModel = tooltipModel;\n\n this._ecModel = ecModel;\n\n this._api = api;\n\n /**\n * @private\n * @type {boolean}\n */\n this._alwaysShowContent = tooltipModel.get('alwaysShowContent');\n\n const tooltipContent = this._tooltipContent;\n tooltipContent.update(tooltipModel);\n tooltipContent.setEnterable(tooltipModel.get('enterable'));\n\n this._initGlobalListener();\n\n this._keepShow();\n }\n\n private _initGlobalListener() {\n const tooltipModel = this._tooltipModel;\n const triggerOn = tooltipModel.get('triggerOn');\n\n globalListener.register(\n 'itemTooltip',\n this._api,\n bind(function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none') {\n if (triggerOn.indexOf(currTrigger) >= 0) {\n this._tryShow(e, dispatchAction);\n }\n else if (currTrigger === 'leave') {\n this._hide(dispatchAction);\n }\n }\n }, this)\n );\n }\n\n private _keepShow() {\n const tooltipModel = this._tooltipModel;\n const ecModel = this._ecModel;\n const api = this._api;\n\n // Try to keep the tooltip show when refreshing\n if (this._lastX != null\n && this._lastY != null\n // When user is willing to control tooltip totally using API,\n // self.manuallyShowTip({x, y}) might cause tooltip hide,\n // which is not expected.\n && tooltipModel.get('triggerOn') !== 'none'\n ) {\n const self = this;\n clearTimeout(this._refreshUpdateTimeout);\n this._refreshUpdateTimeout = setTimeout(function () {\n // Show tip next tick after other charts are rendered\n // In case highlight action has wrong result\n // FIXME\n !api.isDisposed() && self.manuallyShowTip(tooltipModel, ecModel, api, {\n x: self._lastX,\n y: self._lastY,\n dataByCoordSys: self._lastDataByCoordSys\n });\n }) as any;\n }\n }\n\n /**\n * Show tip manually by\n * dispatchAction({\n * type: 'showTip',\n * x: 10,\n * y: 10\n * });\n * Or\n * dispatchAction({\n * type: 'showTip',\n * seriesIndex: 0,\n * dataIndex or dataIndexInside or name\n * });\n *\n * TODO Batch\n */\n manuallyShowTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: ShowTipPayload\n ) {\n if (payload.from === this.uid || env.node) {\n return;\n }\n\n const dispatchAction = makeDispatchAction(payload, api);\n\n // Reset ticket\n this._ticket = '';\n\n // When triggered from axisPointer.\n const dataByCoordSys = payload.dataByCoordSys;\n\n const cmptRef = findComponentReference(payload, ecModel, api);\n\n if (cmptRef) {\n const rect = cmptRef.el.getBoundingRect().clone();\n rect.applyTransform(cmptRef.el.transform);\n this._tryShow({\n offsetX: rect.x + rect.width / 2,\n offsetY: rect.y + rect.height / 2,\n target: cmptRef.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n else if (payload.tooltip && payload.x != null && payload.y != null) {\n const el = proxyRect as unknown as ECElement;\n el.x = payload.x;\n el.y = payload.y;\n el.update();\n getECData(el).tooltipConfig = {\n name: null,\n option: payload.tooltip\n };\n // Manually show tooltip while view is not using zrender elements.\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n target: el\n }, dispatchAction);\n }\n else if (dataByCoordSys) {\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n dataByCoordSys: dataByCoordSys,\n tooltipOption: payload.tooltipOption\n }, dispatchAction);\n }\n else if (payload.seriesIndex != null) {\n\n if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {\n return;\n }\n\n const pointInfo = findPointFromSeries(payload, ecModel);\n const cx = pointInfo.point[0];\n const cy = pointInfo.point[1];\n if (cx != null && cy != null) {\n this._tryShow({\n offsetX: cx,\n offsetY: cy,\n target: pointInfo.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n }\n else if (payload.x != null && payload.y != null) {\n // FIXME\n // should wrap dispatchAction like `axisPointer/globalListener` ?\n api.dispatchAction({\n type: 'updateAxisPointer',\n x: payload.x,\n y: payload.y\n });\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n target: api.getZr().findHover(payload.x, payload.y).target\n }, dispatchAction);\n }\n }\n\n manuallyHideTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: HideTipPayload\n ) {\n const tooltipContent = this._tooltipContent;\n\n if (!this._alwaysShowContent && this._tooltipModel) {\n tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));\n }\n\n this._lastX = this._lastY = this._lastDataByCoordSys = null;\n\n if (payload.from !== this.uid) {\n this._hide(makeDispatchAction(payload, api));\n }\n }\n\n // Be compatible with previous design, that is, when tooltip.type is 'axis' and\n // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer\n // and tooltip.\n private _manuallyAxisShowTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: ShowTipPayload\n ) {\n const seriesIndex = payload.seriesIndex;\n const dataIndex = payload.dataIndex;\n // @ts-ignore\n const coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;\n\n if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {\n return;\n }\n\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n if (!seriesModel) {\n return;\n }\n\n const data = seriesModel.getData();\n const tooltipCascadedModel = buildTooltipModel([\n data.getItemModel(dataIndex),\n seriesModel as Model,\n (seriesModel.coordinateSystem || {}).model as Model\n ], this._tooltipModel);\n\n if (tooltipCascadedModel.get('trigger') !== 'axis') {\n return;\n }\n\n api.dispatchAction({\n type: 'updateAxisPointer',\n seriesIndex: seriesIndex,\n dataIndex: dataIndex,\n position: payload.position\n });\n\n return true;\n }\n\n private _tryShow(\n e: TryShowParams,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const el = e.target;\n const tooltipModel = this._tooltipModel;\n\n if (!tooltipModel) {\n return;\n }\n\n // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed\n this._lastX = e.offsetX;\n this._lastY = e.offsetY;\n\n const dataByCoordSys = e.dataByCoordSys;\n if (dataByCoordSys && dataByCoordSys.length) {\n this._showAxisTooltip(dataByCoordSys, e);\n }\n else if (el) {\n this._lastDataByCoordSys = null;\n\n let seriesDispatcher: Element;\n let cmptDispatcher: Element;\n findEventDispatcher(el, (target) => {\n // Always show item tooltip if mouse is on the element with dataIndex\n if (getECData(target).dataIndex != null) {\n seriesDispatcher = target;\n return true;\n }\n // Tooltip provided directly. Like legend.\n if (getECData(target).tooltipConfig != null) {\n cmptDispatcher = target;\n return true;\n }\n }, true);\n\n if (seriesDispatcher) {\n this._showSeriesItemTooltip(e, seriesDispatcher, dispatchAction);\n }\n else if (cmptDispatcher) {\n this._showComponentItemTooltip(e, cmptDispatcher, dispatchAction);\n }\n else {\n this._hide(dispatchAction);\n }\n }\n else {\n this._lastDataByCoordSys = null;\n this._hide(dispatchAction);\n }\n }\n\n private _showOrMove(\n tooltipModel: Model,\n cb: () => void\n ) {\n // showDelay is used in this case: tooltip.enterable is set\n // as true. User intent to move mouse into tooltip and click\n // something. `showDelay` makes it easier to enter the content\n // but tooltip do not move immediately.\n const delay = tooltipModel.get('showDelay');\n cb = zrUtil.bind(cb, this);\n clearTimeout(this._showTimout);\n delay > 0\n ? (this._showTimout = setTimeout(cb, delay) as any)\n : cb();\n }\n\n private _showAxisTooltip(\n dataByCoordSys: DataByCoordSys[],\n e: TryShowParams\n ) {\n const ecModel = this._ecModel;\n const globalTooltipModel = this._tooltipModel;\n const point = [e.offsetX, e.offsetY];\n const singleTooltipModel = buildTooltipModel(\n [e.tooltipOption],\n globalTooltipModel\n );\n const renderMode = this._renderMode;\n const cbParamsList: TooltipCallbackDataParams[] = [];\n const articleMarkup = createTooltipMarkup('section', {\n blocks: [],\n noHeader: true\n });\n // Only for legacy: `Serise['formatTooltip']` returns a string.\n const markupTextArrLegacy: string[] = [];\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n\n each(dataByCoordSys, function (itemCoordSys) {\n each(itemCoordSys.dataByAxis, function (axisItem) {\n const axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex) as AxisBaseModel;\n const axisValue = axisItem.value;\n if (!axisModel || axisValue == null) {\n return;\n }\n const axisValueLabel = axisPointerViewHelper.getValueLabel(\n axisValue, axisModel.axis, ecModel,\n axisItem.seriesDataIndices,\n axisItem.valueLabelOpt\n );\n const axisSectionMarkup = createTooltipMarkup('section', {\n header: axisValueLabel,\n noHeader: !zrUtil.trim(axisValueLabel),\n sortBlocks: true,\n blocks: []\n });\n articleMarkup.blocks.push(axisSectionMarkup);\n\n zrUtil.each(axisItem.seriesDataIndices, function (idxItem) {\n const series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n const dataIndex = idxItem.dataIndexInside;\n const cbParams = series.getDataParams(dataIndex) as TooltipCallbackDataParams;\n // Can't find data.\n if (cbParams.dataIndex < 0) {\n return;\n }\n\n cbParams.axisDim = axisItem.axisDim;\n cbParams.axisIndex = axisItem.axisIndex;\n cbParams.axisType = axisItem.axisType;\n cbParams.axisId = axisItem.axisId;\n cbParams.axisValue = axisHelper.getAxisRawValue(\n axisModel.axis, { value: axisValue as number }\n );\n cbParams.axisValueLabel = axisValueLabel;\n // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n cbParams.marker = markupStyleCreator.makeTooltipMarker(\n 'item', formatUtil.convertToColorString(cbParams.color), renderMode\n );\n\n const seriesTooltipResult = normalizeTooltipFormatResult(\n series.formatTooltip(dataIndex, true, null)\n );\n if (seriesTooltipResult.markupFragment) {\n axisSectionMarkup.blocks.push(seriesTooltipResult.markupFragment);\n }\n if (seriesTooltipResult.markupText) {\n markupTextArrLegacy.push(seriesTooltipResult.markupText);\n }\n cbParamsList.push(cbParams);\n });\n });\n });\n\n // In most cases, the second axis is displays upper on the first one.\n // So we reverse it to look better.\n articleMarkup.blocks.reverse();\n markupTextArrLegacy.reverse();\n\n const positionExpr = e.position;\n const orderMode = singleTooltipModel.get('order');\n\n const builtMarkupText = buildTooltipMarkup(\n articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'),\n singleTooltipModel.get('textStyle')\n );\n builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText);\n const blockBreak = renderMode === 'richText' ? '\\n\\n' : '
';\n const allMarkupText = markupTextArrLegacy.join(blockBreak);\n\n this._showOrMove(singleTooltipModel, function (this: TooltipView) {\n if (this._updateContentNotChangedOnAxis(dataByCoordSys, cbParamsList)) {\n this._updatePosition(\n singleTooltipModel,\n positionExpr,\n point[0], point[1],\n this._tooltipContent,\n cbParamsList\n );\n }\n else {\n this._showTooltipContent(\n singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '',\n point[0], point[1], positionExpr, null, markupStyleCreator\n );\n }\n });\n\n // Do not trigger events here, because this branch only be entered\n // from dispatchAction.\n }\n\n private _showSeriesItemTooltip(\n e: TryShowParams,\n dispatcher: ECElement,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const ecModel = this._ecModel;\n const ecData = getECData(dispatcher);\n // Use dataModel in element if possible\n // Used when mouseover on a element like markPoint or edge\n // In which case, the data is not main data in series.\n const seriesIndex = ecData.seriesIndex;\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n // For example, graph link.\n const dataModel = ecData.dataModel || seriesModel;\n const dataIndex = ecData.dataIndex;\n const dataType = ecData.dataType;\n const data = dataModel.getData(dataType);\n const renderMode = this._renderMode;\n\n const positionDefault = e.positionDefault;\n const tooltipModel = buildTooltipModel(\n [\n data.getItemModel(dataIndex),\n dataModel,\n seriesModel && (seriesModel.coordinateSystem || {}).model as Model\n ],\n this._tooltipModel,\n positionDefault ? { position: positionDefault } : null\n );\n\n const tooltipTrigger = tooltipModel.get('trigger');\n if (tooltipTrigger != null && tooltipTrigger !== 'item') {\n return;\n }\n\n const params = dataModel.getDataParams(dataIndex, dataType);\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n params.marker = markupStyleCreator.makeTooltipMarker(\n 'item', formatUtil.convertToColorString(params.color), renderMode\n );\n\n const seriesTooltipResult = normalizeTooltipFormatResult(\n dataModel.formatTooltip(dataIndex, false, dataType)\n );\n const orderMode = tooltipModel.get('order');\n const markupText = seriesTooltipResult.markupFragment\n ? buildTooltipMarkup(\n seriesTooltipResult.markupFragment,\n markupStyleCreator,\n renderMode,\n orderMode,\n ecModel.get('useUTC'),\n tooltipModel.get('textStyle')\n )\n : seriesTooltipResult.markupText;\n\n const asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;\n\n this._showOrMove(tooltipModel, function (this: TooltipView) {\n this._showTooltipContent(\n tooltipModel, markupText, params, asyncTicket,\n e.offsetX, e.offsetY, e.position, e.target,\n markupStyleCreator\n );\n });\n\n // FIXME\n // duplicated showtip if manuallyShowTip is called from dispatchAction.\n dispatchAction({\n type: 'showTip',\n dataIndexInside: dataIndex,\n dataIndex: data.getRawIndex(dataIndex),\n seriesIndex: seriesIndex,\n from: this.uid\n });\n }\n\n private _showComponentItemTooltip(\n e: TryShowParams,\n el: ECElement,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const ecData = getECData(el);\n const tooltipConfig = ecData.tooltipConfig;\n let tooltipOpt = tooltipConfig.option || {};\n if (zrUtil.isString(tooltipOpt)) {\n const content = tooltipOpt;\n tooltipOpt = {\n content: content,\n // Fixed formatter\n formatter: content\n };\n }\n\n const tooltipModelCascade = [tooltipOpt] as TooltipModelOptionCascade[];\n const cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);\n if (cmpt) {\n tooltipModelCascade.push(cmpt as Model);\n }\n // In most cases, component tooltip formatter has different params with series tooltip formatter,\n // so that they can not share the same formatter. Since the global tooltip formatter is used for series\n // by convension, we do not use it as the default formatter for component.\n tooltipModelCascade.push({ formatter: tooltipOpt.content });\n\n const positionDefault = e.positionDefault;\n const subTooltipModel = buildTooltipModel(\n tooltipModelCascade,\n this._tooltipModel,\n positionDefault ? { position: positionDefault } : null\n );\n\n const defaultHtml = subTooltipModel.get('content');\n const asyncTicket = Math.random() + '';\n // PENDING: this case do not support richText style yet.\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n\n // Do not check whether `trigger` is 'none' here, because `trigger`\n // only works on coordinate system. In fact, we have not found case\n // that requires setting `trigger` nothing on component yet.\n\n this._showOrMove(subTooltipModel, function (this: TooltipView) {\n // Use formatterParams from element defined in component\n // Avoid users modify it.\n const formatterParams = zrUtil.clone(subTooltipModel.get('formatterParams') as any || {});\n this._showTooltipContent(\n subTooltipModel, defaultHtml, formatterParams,\n asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator\n );\n });\n\n // If not dispatch showTip, tip may be hide triggered by axis.\n dispatchAction({\n type: 'showTip',\n from: this.uid\n });\n }\n\n private _showTooltipContent(\n // Use Model insteadof TooltipModel because this model may be from series or other options.\n // Instead of top level tooltip.\n tooltipModel: Model,\n defaultHtml: string,\n params: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n asyncTicket: string,\n x: number,\n y: number,\n positionExpr: TooltipOption['position'],\n el: ECElement,\n markupStyleCreator: TooltipMarkupStyleCreator\n ) {\n // Reset ticket\n this._ticket = '';\n\n if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {\n return;\n }\n\n const tooltipContent = this._tooltipContent;\n\n const formatter = tooltipModel.get('formatter');\n positionExpr = positionExpr || tooltipModel.get('position');\n let html: string | HTMLElement | HTMLElement[] = defaultHtml;\n const nearPoint = this._getNearestPoint(\n [x, y],\n params,\n tooltipModel.get('trigger'),\n tooltipModel.get('borderColor')\n );\n const nearPointColor = nearPoint.color;\n\n if (formatter) {\n if (zrUtil.isString(formatter)) {\n const useUTC = tooltipModel.ecModel.get('useUTC');\n const params0 = zrUtil.isArray(params) ? params[0] : params;\n const isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0;\n html = formatter;\n if (isTimeAxis) {\n html = timeFormat(params0.axisValue, html, useUTC);\n }\n html = formatUtil.formatTpl(html, params, true);\n }\n else if (zrUtil.isFunction(formatter)) {\n const callback = bind(function (cbTicket: string, html: string | HTMLElement | HTMLElement[]) {\n if (cbTicket === this._ticket) {\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n this._updatePosition(\n tooltipModel, positionExpr, x, y, tooltipContent, params, el\n );\n }\n }, this);\n this._ticket = asyncTicket;\n html = formatter(params, asyncTicket, callback);\n }\n else {\n html = formatter;\n }\n }\n\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n tooltipContent.show(tooltipModel, nearPointColor);\n this._updatePosition(\n tooltipModel, positionExpr, x, y, tooltipContent, params, el\n );\n\n }\n\n private _getNearestPoint(\n point: number[],\n tooltipDataParams: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n trigger: TooltipOption['trigger'],\n borderColor: ZRColor\n ): {\n color: ZRColor;\n } {\n if (trigger === 'axis' || zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none')\n };\n }\n\n if (!zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor\n };\n }\n }\n\n private _updatePosition(\n tooltipModel: Model,\n positionExpr: TooltipOption['position'],\n x: number, // Mouse x\n y: number, // Mouse y\n content: TooltipHTMLContent | TooltipRichContent,\n params: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n el?: Element\n ) {\n const viewWidth = this._api.getWidth();\n const viewHeight = this._api.getHeight();\n\n positionExpr = positionExpr || tooltipModel.get('position');\n\n const contentSize = content.getSize();\n let align = tooltipModel.get('align');\n let vAlign = tooltipModel.get('verticalAlign');\n const rect = el && el.getBoundingRect().clone();\n el && rect.applyTransform(el.transform);\n\n if (zrUtil.isFunction(positionExpr)) {\n // Callback of position can be an array or a string specify the position\n positionExpr = positionExpr([x, y], params, content.el, rect, {\n viewSize: [viewWidth, viewHeight],\n contentSize: contentSize.slice() as [number, number]\n });\n }\n\n if (zrUtil.isArray(positionExpr)) {\n x = parsePercent(positionExpr[0], viewWidth);\n y = parsePercent(positionExpr[1], viewHeight);\n }\n else if (zrUtil.isObject(positionExpr)) {\n const boxLayoutPosition = positionExpr as BoxLayoutOptionMixin;\n boxLayoutPosition.width = contentSize[0];\n boxLayoutPosition.height = contentSize[1];\n const layoutRect = layoutUtil.getLayoutRect(\n boxLayoutPosition, { width: viewWidth, height: viewHeight }\n );\n x = layoutRect.x;\n y = layoutRect.y;\n align = null;\n // When positionExpr is left/top/right/bottom,\n // align and verticalAlign will not work.\n vAlign = null;\n }\n // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element\n else if (zrUtil.isString(positionExpr) && el) {\n const pos = calcTooltipPosition(\n positionExpr, rect, contentSize, tooltipModel.get('borderWidth'),\n );\n x = pos[0];\n y = pos[1];\n }\n else {\n const pos = refixTooltipPosition(\n x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20\n );\n x = pos[0];\n y = pos[1];\n }\n\n align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);\n vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);\n\n if (shouldTooltipConfine(tooltipModel)) {\n const pos = confineTooltipPosition(\n x, y, content, viewWidth, viewHeight\n );\n x = pos[0];\n y = pos[1];\n }\n\n content.moveTo(x, y);\n }\n\n // FIXME\n // Should we remove this but leave this to user?\n private _updateContentNotChangedOnAxis(\n dataByCoordSys: DataByCoordSys[],\n cbParamsList: TooltipCallbackDataParams[]\n ) {\n const lastCoordSys = this._lastDataByCoordSys;\n const lastCbParamsList = this._cbParamsList;\n let contentNotChanged = !!lastCoordSys\n && lastCoordSys.length === dataByCoordSys.length;\n\n contentNotChanged && each(lastCoordSys, (lastItemCoordSys, indexCoordSys) => {\n const lastDataByAxis = lastItemCoordSys.dataByAxis || [] as DataByAxis[];\n const thisItemCoordSys = dataByCoordSys[indexCoordSys] || {} as DataByCoordSys;\n const thisDataByAxis = thisItemCoordSys.dataByAxis || [] as DataByAxis[];\n contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;\n\n contentNotChanged && each(lastDataByAxis, (lastItem, indexAxis) => {\n const thisItem = thisDataByAxis[indexAxis] || {} as DataByAxis;\n const lastIndices = lastItem.seriesDataIndices || [] as DataIndex[];\n const newIndices = thisItem.seriesDataIndices || [] as DataIndex[];\n\n contentNotChanged = contentNotChanged\n && lastItem.value === thisItem.value\n && lastItem.axisType === thisItem.axisType\n && lastItem.axisId === thisItem.axisId\n && lastIndices.length === newIndices.length;\n\n contentNotChanged && each(lastIndices, (lastIdxItem, j) => {\n const newIdxItem = newIndices[j];\n contentNotChanged = contentNotChanged\n && lastIdxItem.seriesIndex === newIdxItem.seriesIndex\n && lastIdxItem.dataIndex === newIdxItem.dataIndex;\n });\n\n // check is cbParams data value changed\n lastCbParamsList && zrUtil.each(lastItem.seriesDataIndices, (idxItem) => {\n const seriesIdx = idxItem.seriesIndex;\n const cbParams = cbParamsList[seriesIdx];\n const lastCbParams = lastCbParamsList[seriesIdx];\n if (cbParams && lastCbParams && lastCbParams.data !== cbParams.data) {\n contentNotChanged = false;\n }\n });\n });\n });\n\n this._lastDataByCoordSys = dataByCoordSys;\n this._cbParamsList = cbParamsList;\n\n return !!contentNotChanged;\n }\n\n private _hide(dispatchAction: ExtensionAPI['dispatchAction']) {\n // Do not directly hideLater here, because this behavior may be prevented\n // in dispatchAction when showTip is dispatched.\n\n // FIXME\n // duplicated hideTip if manuallyHideTip is called from dispatchAction.\n this._lastDataByCoordSys = null;\n dispatchAction({\n type: 'hideTip',\n from: this.uid\n });\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n this._tooltipContent.dispose();\n globalListener.unregister('itemTooltip', api);\n }\n}\n\ntype TooltipableOption = {\n tooltip?: CommonTooltipOption;\n};\ntype TooltipModelOptionCascade =\n Model | CommonTooltipOption | string;\n/**\n * From top to bottom. (the last one should be globalTooltipModel);\n */\nfunction buildTooltipModel(\n modelCascade: TooltipModelOptionCascade[],\n globalTooltipModel: TooltipModel,\n defaultTooltipOption?: CommonTooltipOption\n): Model> {\n // Last is always tooltip model.\n const ecModel = globalTooltipModel.ecModel;\n let resultModel: Model>;\n\n if (defaultTooltipOption) {\n resultModel = new Model(defaultTooltipOption, ecModel, ecModel);\n resultModel = new Model(globalTooltipModel.option, resultModel, ecModel);\n }\n else {\n resultModel = globalTooltipModel as Model>;\n }\n\n for (let i = modelCascade.length - 1; i >= 0; i--) {\n let tooltipOpt = modelCascade[i];\n if (tooltipOpt) {\n if (tooltipOpt instanceof Model) {\n tooltipOpt = (tooltipOpt as Model).get('tooltip', true);\n }\n // In each data item tooltip can be simply write:\n // {\n // value: 10,\n // tooltip: 'Something you need to know'\n // }\n if (zrUtil.isString(tooltipOpt)) {\n tooltipOpt = {\n formatter: tooltipOpt\n };\n }\n if (tooltipOpt) {\n resultModel = new Model(tooltipOpt, resultModel, ecModel);\n }\n }\n }\n\n return resultModel as Model>;\n}\n\nfunction makeDispatchAction(payload: ShowTipPayload | HideTipPayload, api: ExtensionAPI) {\n return payload.dispatchAction || zrUtil.bind(api.dispatchAction, api);\n}\n\nfunction refixTooltipPosition(\n x: number, y: number,\n content: TooltipHTMLContent | TooltipRichContent,\n viewWidth: number, viewHeight: number,\n gapH: number, gapV: number\n) {\n const size = content.getOuterSize();\n const width = size.width;\n const height = size.height;\n\n if (gapH != null) {\n // Add extra 2 pixels for this case:\n // At present the \"values\" in defaut tooltip are using CSS `float: right`.\n // When the right edge of the tooltip box is on the right side of the\n // viewport, the `float` layout might push the \"values\" to the second line.\n if (x + width + gapH + 2 > viewWidth) {\n x -= width + gapH;\n }\n else {\n x += gapH;\n }\n }\n if (gapV != null) {\n if (y + height + gapV > viewHeight) {\n y -= height + gapV;\n }\n else {\n y += gapV;\n }\n }\n return [x, y];\n}\n\nfunction confineTooltipPosition(\n x: number, y: number,\n content: TooltipHTMLContent | TooltipRichContent,\n viewWidth: number,\n viewHeight: number\n): [number, number] {\n const size = content.getOuterSize();\n const width = size.width;\n const height = size.height;\n\n x = Math.min(x + width, viewWidth) - width;\n y = Math.min(y + height, viewHeight) - height;\n x = Math.max(x, 0);\n y = Math.max(y, 0);\n\n return [x, y];\n}\n\nfunction calcTooltipPosition(\n position: TooltipOption['position'],\n rect: ZRRectLike,\n contentSize: number[],\n borderWidth: number\n): [number, number] {\n const domWidth = contentSize[0];\n const domHeight = contentSize[1];\n const offset = Math.max(Math.ceil(Math.sqrt(2 * borderWidth * borderWidth)), 5);\n let x = 0;\n let y = 0;\n const rectWidth = rect.width;\n const rectHeight = rect.height;\n switch (position) {\n case 'inside':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n case 'top':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y - domHeight - offset;\n break;\n case 'bottom':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight + offset;\n break;\n case 'left':\n x = rect.x - domWidth - offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n case 'right':\n x = rect.x + rectWidth + offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n }\n return [x, y];\n}\n\nfunction isCenterAlign(align: HorizontalAlign | VerticalAlign) {\n return align === 'center' || align === 'middle';\n}\n\n/**\n * Find target component by payload like:\n * ```js\n * { legendId: 'some_id', name: 'xxx' }\n * { toolboxIndex: 1, name: 'xxx' }\n * { geoName: 'some_name', name: 'xxx' }\n * ```\n * PENDING: at present only\n *\n * If not found, return null/undefined.\n */\nfunction findComponentReference(\n payload: ShowTipPayload,\n ecModel: GlobalModel,\n api: ExtensionAPI\n): {\n componentMainType: ComponentMainType;\n componentIndex: number;\n el: ECElement;\n} {\n const { queryOptionMap } = preParseFinder(payload);\n const componentMainType = queryOptionMap.keys()[0];\n if (!componentMainType || componentMainType === 'series') {\n return;\n }\n\n const queryResult = queryReferringComponents(\n ecModel,\n componentMainType,\n queryOptionMap.get(componentMainType),\n { useDefault: false, enableAll: false, enableNone: false }\n );\n const model = queryResult.models[0];\n if (!model) {\n return;\n }\n\n const view = api.getViewOfComponentModel(model);\n let el: ECElement;\n view.group.traverse((subEl: ECElement) => {\n const tooltipConfig = getECData(subEl).tooltipConfig;\n if (tooltipConfig && tooltipConfig.name === payload.name) {\n el = subEl;\n return true; // stop\n }\n });\n\n if (el) {\n return {\n componentMainType,\n componentIndex: model.componentIndex,\n el\n };\n }\n}\n\nexport default TooltipView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport TooltipModel from './TooltipModel';\nimport TooltipView from './TooltipView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installAxisPointer);\n\n registers.registerComponentModel(TooltipModel);\n registers.registerComponentView(TooltipView);\n /**\n * @action\n * @property {string} type\n * @property {number} seriesIndex\n * @property {number} dataIndex\n * @property {number} [x]\n * @property {number} [y]\n */\n registers.registerAction(\n {\n type: 'showTip',\n event: 'showTip',\n update: 'tooltip:manuallyShowTip'\n },\n // noop\n function () {}\n );\n\n registers.registerAction(\n {\n type: 'hideTip',\n event: 'hideTip',\n update: 'tooltip:manuallyHideTip'\n },\n // noop\n function () {}\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption, Dictionary } from '../../util/types';\nimport { BrushOption, BrushToolboxIconType } from './BrushModel';\nimport { ToolboxOption } from '../toolbox/ToolboxModel';\nimport { ToolboxBrushFeatureOption } from '../toolbox/feature/Brush';\nimport { normalizeToArray } from '../../util/model';\n\nconst DEFAULT_TOOLBOX_BTNS: BrushToolboxIconType[] = ['rect', 'polygon', 'keep', 'clear'];\n\nexport default function brushPreprocessor(option: ECUnitOption, isNew: boolean): void {\n const brushComponents = normalizeToArray(option ? option.brush : []);\n\n if (!brushComponents.length) {\n return;\n }\n\n let brushComponentSpecifiedBtns = [] as string[];\n\n zrUtil.each(brushComponents, function (brushOpt: BrushOption) {\n const tbs = brushOpt.hasOwnProperty('toolbox')\n ? brushOpt.toolbox : [];\n\n if (tbs instanceof Array) {\n brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);\n }\n });\n\n let toolbox: ToolboxOption = option && option.toolbox;\n\n if (zrUtil.isArray(toolbox)) {\n toolbox = toolbox[0];\n }\n if (!toolbox) {\n toolbox = {feature: {}};\n option.toolbox = [toolbox];\n }\n\n const toolboxFeature = (toolbox.feature || (toolbox.feature = {}));\n const toolboxBrush = (toolboxFeature.brush || (toolboxFeature.brush = {})) as ToolboxBrushFeatureOption;\n const brushTypes = toolboxBrush.type || (toolboxBrush.type = []);\n\n brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);\n\n removeDuplicate(brushTypes);\n\n if (isNew && !brushTypes.length) {\n brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);\n }\n}\n\nfunction removeDuplicate(arr: string[]): void {\n const map = {} as Dictionary;\n zrUtil.each(arr, function (val) {\n map[val] = 1;\n });\n arr.length = 0;\n zrUtil.each(map, function (flag, val) {\n arr.push(val);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual solution, for consistent option specification.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapping, { VisualMappingOption } from './VisualMapping';\nimport { Dictionary } from 'zrender/src/core/types';\nimport {\n BuiltinVisualProperty,\n ParsedValue,\n DimensionLoose,\n StageHandlerProgressExecutor,\n DimensionIndex\n} from '../util/types';\nimport SeriesData from '../data/SeriesData';\nimport { getItemVisualFromData, setItemVisualFromData } from './helper';\n\nconst each = zrUtil.each;\n\ntype VisualMappingCollection\n = {\n [key in VisualState]?: {\n [key in BuiltinVisualProperty]?: VisualMapping\n } & {\n __alphaForOpacity?: VisualMapping\n }\n };\n\nfunction hasKeys(obj: Dictionary) {\n if (obj) {\n for (const name in obj) {\n if (obj.hasOwnProperty(name)) {\n return true;\n }\n }\n }\n}\n\ntype VisualOption = {[key in BuiltinVisualProperty]?: any};\n\n\nexport function createVisualMappings(\n option: Partial>,\n stateList: readonly VisualState[],\n supplementVisualOption: (mappingOption: VisualMappingOption, state: string) => void\n) {\n const visualMappings: VisualMappingCollection = {};\n\n each(stateList, function (state) {\n const mappings = visualMappings[state] = createMappings();\n\n each(option[state], function (visualData: VisualOption, visualType: BuiltinVisualProperty) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n let mappingOption = {\n type: visualType,\n visual: visualData\n };\n supplementVisualOption && supplementVisualOption(mappingOption, state);\n mappings[visualType] = new VisualMapping(mappingOption);\n\n // Prepare a alpha for opacity, for some case that opacity\n // is not supported, such as rendering using gradient color.\n if (visualType === 'opacity') {\n mappingOption = zrUtil.clone(mappingOption);\n mappingOption.type = 'colorAlpha';\n mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption);\n }\n });\n });\n\n return visualMappings;\n\n function createMappings() {\n const Creater = function () {};\n // Make sure hidden fields will not be visited by\n // object iteration (with hasOwnProperty checking).\n Creater.prototype.__hidden = Creater.prototype;\n const obj = new (Creater as any)();\n return obj;\n }\n}\n\nexport function replaceVisualOption(\n thisOption: Partial>, newOption: Partial>, keys: readonly T[]\n) {\n // Visual attributes merge is not supported, otherwise it\n // brings overcomplicated merge logic. See #2853. So if\n // newOption has anyone of these keys, all of these keys\n // will be reset. Otherwise, all keys remain.\n let has;\n zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n has = true;\n }\n });\n has && zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n thisOption[key] = zrUtil.clone(newOption[key]);\n }\n else {\n delete thisOption[key];\n }\n });\n}\n\n/**\n * @param stateList\n * @param visualMappings\n * @param list\n * @param getValueState param: valueOrIndex, return: state.\n * @param scope Scope for getValueState\n * @param dimension Concrete dimension, if used.\n */\n// ???! handle brush?\nexport function applyVisual(\n stateList: readonly VisualState[],\n visualMappings: VisualMappingCollection,\n data: SeriesData,\n getValueState: (this: Scope, valueOrIndex: ParsedValue | number) => VisualState,\n scope?: Scope,\n dimension?: DimensionLoose\n) {\n const visualTypesMap: Partial> = {};\n zrUtil.each(stateList, function (state) {\n const visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n\n let dataIndex: number;\n\n function getVisual(key: string) {\n return getItemVisualFromData(data, dataIndex, key) as string | number;\n }\n\n function setVisual(key: string, value: any) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n if (dimension == null) {\n data.each(eachItem);\n }\n else {\n data.each([dimension], eachItem);\n }\n\n function eachItem(valueOrIndex: ParsedValue | number, index?: number) {\n dataIndex = dimension == null\n ? valueOrIndex as number // First argument is index\n : index;\n\n const rawDataItem = data.getRawDataItem(dataIndex);\n // Consider performance\n // @ts-ignore\n if (rawDataItem && rawDataItem.visualMap === false) {\n return;\n }\n\n const valueState = getValueState.call(scope, valueOrIndex);\n const mappings = visualMappings[valueState];\n const visualTypes = visualTypesMap[valueState];\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(\n valueOrIndex, getVisual, setVisual\n );\n }\n }\n}\n\n/**\n * @param data\n * @param stateList\n * @param visualMappings >\n * @param getValueState param: valueOrIndex, return: state.\n * @param dim dimension or dimension index.\n */\nexport function incrementalApplyVisual(\n stateList: readonly VisualState[],\n visualMappings: VisualMappingCollection,\n getValueState: (valueOrIndex: ParsedValue | number) => VisualState,\n dim?: DimensionLoose\n): StageHandlerProgressExecutor {\n const visualTypesMap: Partial> = {};\n zrUtil.each(stateList, function (state) {\n const visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n\n return {\n progress: function progress(params, data) {\n let dimIndex: DimensionIndex;\n if (dim != null) {\n dimIndex = data.getDimensionIndex(dim);\n }\n\n function getVisual(key: string) {\n return getItemVisualFromData(data, dataIndex, key) as string | number;\n }\n\n function setVisual(key: string, value: any) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n let dataIndex: number;\n const storage = data.getStorage();\n while ((dataIndex = params.next()) != null) {\n const rawDataItem = data.getRawDataItem(dataIndex);\n\n // Consider performance\n // @ts-ignore\n if (rawDataItem && rawDataItem.visualMap === false) {\n continue;\n }\n\n const value = dim != null\n ? storage.get(dimIndex, dataIndex)\n : dataIndex;\n\n const valueState = getValueState(value);\n const mappings = visualMappings[valueState];\n const visualTypes = visualTypesMap[valueState];\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);\n }\n }\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as polygonContain from 'zrender/src/contain/polygon';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {linePolygonIntersect} from '../../util/graphic';\nimport { BrushType, BrushDimensionMinMax } from '../helper/BrushController';\nimport { BrushAreaParamInternal } from './BrushModel';\n\n\nexport interface BrushSelectableArea extends BrushAreaParamInternal {\n boundingRect: BoundingRect;\n selectors: BrushCommonSelectorsForSeries\n}\n\n/**\n * Key of the first level is brushType: `line`, `rect`, `polygon`.\n * See moudule:echarts/component/helper/BrushController\n * function param:\n * {Object} itemLayout fetch from data.getItemLayout(dataIndex)\n * {Object} selectors {point: selector, rect: selector, ...}\n * {Object} area {range: [[], [], ..], boudingRect}\n * function return:\n * {boolean} Whether in the given brush.\n */\ninterface BrushSelectorOnBrushType {\n // For chart element type \"point\"\n point(\n // fetch from data.getItemLayout(dataIndex)\n itemLayout: number[],\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n // For chart element type \"rect\"\n rect(\n // fetch from data.getItemLayout(dataIndex)\n itemLayout: RectLike,\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n}\n\n/**\n * This methods are corresponding to `BrushSelectorOnBrushType`,\n * but `area: BrushSelectableArea` is binded to each method.\n */\nexport interface BrushCommonSelectorsForSeries {\n // For chart element type \"point\"\n point(itemLayout: number[]): boolean;\n // For chart element type \"rect\"\n rect(itemLayout: RectLike): boolean;\n}\n\nexport function makeBrushCommonSelectorForSeries(\n area: BrushSelectableArea\n): BrushCommonSelectorsForSeries {\n const brushType = area.brushType;\n // Do not use function binding or curry for performance.\n const selectors: BrushCommonSelectorsForSeries = {\n point(itemLayout: number[]) {\n return selector[brushType].point(itemLayout, selectors, area);\n },\n rect(itemLayout: RectLike) {\n return selector[brushType].rect(itemLayout, selectors, area);\n }\n };\n return selectors;\n}\n\nconst selector: Record = {\n lineX: getLineSelectors(0),\n lineY: getLineSelectors(1),\n rect: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.intersect(itemLayout);\n }\n },\n polygon: {\n point: function (itemLayout, selectors, area) {\n return itemLayout\n && area.boundingRect.contain(\n itemLayout[0], itemLayout[1]\n )\n && polygonContain.contain(\n area.range as BrushDimensionMinMax[], itemLayout[0], itemLayout[1]\n );\n },\n rect: function (itemLayout, selectors, area) {\n const points = area.range as BrushDimensionMinMax[];\n\n if (!itemLayout || points.length <= 1) {\n return false;\n }\n\n const x = itemLayout.x;\n const y = itemLayout.y;\n const width = itemLayout.width;\n const height = itemLayout.height;\n const p = points[0];\n\n if (polygonContain.contain(points, x, y)\n || polygonContain.contain(points, x + width, y)\n || polygonContain.contain(points, x, y + height)\n || polygonContain.contain(points, x + width, y + height)\n || BoundingRect.create(itemLayout).contain(p[0], p[1])\n || linePolygonIntersect(x, y, x + width, y, points)\n || linePolygonIntersect(x, y, x, y + height, points)\n || linePolygonIntersect(x + width, y, x + width, y + height, points)\n || linePolygonIntersect(x, y + height, x + width, y + height, points)\n ) {\n return true;\n }\n }\n }\n};\n\nfunction getLineSelectors(xyIndex: 0 | 1): BrushSelectorOnBrushType {\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n\n return {\n point: function (itemLayout, selectors, area) {\n if (itemLayout) {\n const range = area.range as BrushDimensionMinMax;\n const p = itemLayout[xyIndex];\n return inLineRange(p, range);\n }\n },\n rect: function (itemLayout, selectors, area) {\n if (itemLayout) {\n const range = area.range as BrushDimensionMinMax;\n const layoutRange = [\n itemLayout[xy[xyIndex]],\n itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]\n ];\n layoutRange[1] < layoutRange[0] && layoutRange.reverse();\n return inLineRange(layoutRange[0], range)\n || inLineRange(layoutRange[1], range)\n || inLineRange(range[0], layoutRange)\n || inLineRange(range[1], layoutRange);\n }\n }\n };\n}\n\nfunction inLineRange(p: number, range: BrushDimensionMinMax): boolean {\n return range[0] <= p && p <= range[1];\n}\n\nexport default selector;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport * as visualSolution from '../../visual/visualSolution';\nimport { BrushSelectableArea, makeBrushCommonSelectorForSeries } from './selector';\nimport * as throttleUtil from '../../util/throttle';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport BrushModel, { BrushAreaParamInternal } from './BrushModel';\nimport SeriesModel from '../../model/Series';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { BrushType, BrushDimensionMinMax } from '../helper/BrushController';\n\ntype BrushVisualState = 'inBrush' | 'outOfBrush';\n\nconst STATE_LIST = ['inBrush', 'outOfBrush'] as const;\nconst DISPATCH_METHOD = '__ecBrushSelect' as const;\nconst DISPATCH_FLAG = '__ecInBrushSelectEvent' as const;\n\ninterface BrushGlobalDispatcher extends ZRenderType {\n [DISPATCH_FLAG]: boolean;\n [DISPATCH_METHOD]: typeof doDispatch;\n}\n\ninterface BrushSelectedItem {\n brushId: string;\n brushIndex: number;\n brushName: string;\n areas: BrushAreaParamInternal[];\n selected: {\n seriesId: string;\n seriesIndex: number;\n seriesName: string;\n dataIndex: number[];\n }[]\n};\n\nexport function layoutCovers(ecModel: GlobalModel): void {\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n const brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel);\n brushTargetManager.setInputRanges(brushModel.areas, ecModel);\n });\n}\n\n/**\n * Register the visual encoding if this modules required.\n */\nexport default function brushVisual(ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n const brushSelected: BrushSelectedItem[] = [];\n let throttleType;\n let throttleDelay;\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(\n payload.key === 'brush' ? payload.brushOption : {brushType: false}\n );\n });\n\n layoutCovers(ecModel);\n\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel, brushIndex) {\n\n const thisBrushSelected: BrushSelectedItem = {\n brushId: brushModel.id,\n brushIndex: brushIndex,\n brushName: brushModel.name,\n areas: zrUtil.clone(brushModel.areas),\n selected: []\n };\n // Every brush component exists in event params, convenient\n // for user to find by index.\n brushSelected.push(thisBrushSelected);\n\n const brushOption = brushModel.option;\n const brushLink = brushOption.brushLink;\n const linkedSeriesMap: {[seriesIndex: number]: 0 | 1} = [];\n const selectedDataIndexForLink: {[dataIndex: number]: 0 | 1} = [];\n const rangeInfoBySeries: {[seriesIndex: number]: BrushSelectableArea[]} = [];\n let hasBrushExists = false;\n\n if (!brushIndex) { // Only the first throttle setting works.\n throttleType = brushOption.throttleType;\n throttleDelay = brushOption.throttleDelay;\n }\n\n // Add boundingRect and selectors to range.\n const areas: BrushSelectableArea[] = zrUtil.map(brushModel.areas, function (area) {\n const builder = boundingRectBuilders[area.brushType];\n const selectableArea = zrUtil.defaults(\n {boundingRect: builder ? builder(area) : void 0},\n area\n ) as BrushSelectableArea;\n selectableArea.selectors = makeBrushCommonSelectorForSeries(selectableArea);\n return selectableArea;\n });\n\n const visualMappings = visualSolution.createVisualMappings(\n brushModel.option, STATE_LIST, function (mappingOption) {\n mappingOption.mappingMethod = 'fixed';\n }\n );\n\n zrUtil.isArray(brushLink) && zrUtil.each(brushLink, function (seriesIndex) {\n linkedSeriesMap[seriesIndex] = 1;\n });\n\n function linkOthers(seriesIndex: number): boolean {\n return brushLink === 'all' || !!linkedSeriesMap[seriesIndex];\n }\n\n // If no supported brush or no brush on the series,\n // all visuals should be in original state.\n function brushed(rangeInfoList: BrushSelectableArea[]): boolean {\n return !!rangeInfoList.length;\n }\n\n /**\n * Logic for each series: (If the logic has to be modified one day, do it carefully!)\n *\n * ( brushed \u252C && \u252ChasBrushExist \u252C && linkOthers ) => StepA: \u252Crecord, \u252C StepB: \u252CvisualByRecord.\n * !brushed\u2518 \u251ChasBrushExist \u2524 \u2514nothing,\u2518 \u251CvisualByRecord.\n * \u2514!hasBrushExist\u2518 \u2514nothing.\n * ( !brushed && \u252ChasBrushExist \u252C && linkOthers ) => StepA: nothing, StepB: \u252CvisualByRecord.\n * \u2514!hasBrushExist\u2518 \u2514nothing.\n * ( brushed \u252C && !linkOthers ) => StepA: nothing, StepB: \u252CvisualByCheck.\n * !brushed\u2518 \u2514nothing.\n * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing.\n */\n\n // Step A\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n const rangeInfoList: BrushSelectableArea[] = rangeInfoBySeries[seriesIndex] = [];\n\n seriesModel.subType === 'parallel'\n ? stepAParallel(seriesModel as ParallelSeriesModel, seriesIndex)\n : stepAOthers(seriesModel, seriesIndex, rangeInfoList);\n });\n\n function stepAParallel(seriesModel: ParallelSeriesModel, seriesIndex: number): void {\n const coordSys = seriesModel.coordinateSystem;\n hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed();\n\n linkOthers(seriesIndex) && coordSys.eachActiveState(\n seriesModel.getData(),\n function (activeState, dataIndex) {\n activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);\n }\n );\n }\n\n function stepAOthers(\n seriesModel: SeriesModel, seriesIndex: number, rangeInfoList: BrushSelectableArea[]\n ): void {\n if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) {\n return;\n }\n\n zrUtil.each(areas, function (area) {\n if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) {\n rangeInfoList.push(area);\n }\n hasBrushExists = hasBrushExists || brushed(rangeInfoList);\n });\n\n if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {\n const data = seriesModel.getData();\n data.each(function (dataIndex) {\n if (checkInRange(seriesModel, rangeInfoList, data, dataIndex)) {\n selectedDataIndexForLink[dataIndex] = 1;\n }\n });\n }\n }\n\n // Step B\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n const seriesBrushSelected: BrushSelectedItem['selected'][0] = {\n seriesId: seriesModel.id,\n seriesIndex: seriesIndex,\n seriesName: seriesModel.name,\n dataIndex: []\n };\n // Every series exists in event params, convenient\n // for user to find series by seriesIndex.\n thisBrushSelected.selected.push(seriesBrushSelected);\n\n const rangeInfoList = rangeInfoBySeries[seriesIndex];\n\n const data = seriesModel.getData();\n const getValueState = linkOthers(seriesIndex)\n ? function (dataIndex: number): BrushVisualState {\n return selectedDataIndexForLink[dataIndex]\n ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')\n : 'outOfBrush';\n }\n : function (dataIndex: number): BrushVisualState {\n return checkInRange(seriesModel, rangeInfoList, data, dataIndex)\n ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')\n : 'outOfBrush';\n };\n\n // If no supported brush or no brush, all visuals are in original state.\n (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList))\n && visualSolution.applyVisual(\n STATE_LIST, visualMappings, data, getValueState\n );\n });\n\n });\n\n dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);\n};\n\nfunction dispatchAction(\n api: ExtensionAPI,\n throttleType: throttleUtil.ThrottleType,\n throttleDelay: number,\n brushSelected: BrushSelectedItem[],\n payload: Payload\n): void {\n // This event will not be triggered when `setOpion`, otherwise dead lock may\n // triggered when do `setOption` in event listener, which we do not find\n // satisfactory way to solve yet. Some considered resolutions:\n // (a) Diff with prevoius selected data ant only trigger event when changed.\n // But store previous data and diff precisely (i.e., not only by dataIndex, but\n // also detect value changes in selected data) might bring complexity or fragility.\n // (b) Use spectial param like `silent` to suppress event triggering.\n // But such kind of volatile param may be weird in `setOption`.\n if (!payload) {\n return;\n }\n\n const zr = api.getZr() as BrushGlobalDispatcher;\n if (zr[DISPATCH_FLAG]) {\n return;\n }\n\n if (!zr[DISPATCH_METHOD]) {\n zr[DISPATCH_METHOD] = doDispatch;\n }\n\n const fn = throttleUtil.createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);\n\n fn(api, brushSelected);\n}\n\nfunction doDispatch(api: ExtensionAPI, brushSelected: BrushSelectedItem[]): void {\n if (!api.isDisposed()) {\n const zr = api.getZr() as BrushGlobalDispatcher;\n zr[DISPATCH_FLAG] = true;\n api.dispatchAction({\n type: 'brushSelect',\n batch: brushSelected\n });\n zr[DISPATCH_FLAG] = false;\n }\n}\n\nfunction checkInRange(\n seriesModel: SeriesModel,\n rangeInfoList: BrushSelectableArea[],\n data: ReturnType,\n dataIndex: number\n) {\n for (let i = 0, len = rangeInfoList.length; i < len; i++) {\n const area = rangeInfoList[i];\n if (seriesModel.brushSelector(\n dataIndex, data, area.selectors, area\n )) {\n return true;\n }\n }\n}\n\nfunction brushModelNotControll(brushModel: BrushModel, seriesIndex: number): boolean {\n const seriesIndices = brushModel.option.seriesIndex;\n return seriesIndices != null\n && seriesIndices !== 'all'\n && (\n zrUtil.isArray(seriesIndices)\n ? zrUtil.indexOf(seriesIndices, seriesIndex) < 0\n : seriesIndex !== seriesIndices\n );\n}\n\ntype AreaBoundingRectBuilder = (area: BrushAreaParamInternal) => BoundingRect;\nconst boundingRectBuilders: Partial> = {\n\n rect: function (area) {\n return getBoundingRectFromMinMax(area.range as BrushDimensionMinMax[]);\n },\n\n polygon: function (area) {\n let minMax;\n const range = area.range as BrushDimensionMinMax[];\n\n for (let i = 0, len = range.length; i < len; i++) {\n minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];\n const rg = range[i];\n rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);\n rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);\n rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);\n rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);\n }\n\n return minMax && getBoundingRectFromMinMax(minMax);\n }\n};\n\n\nfunction getBoundingRectFromMinMax(minMax: BrushDimensionMinMax[]): BoundingRect {\n return new BoundingRect(\n minMax[0][0],\n minMax[1][0],\n minMax[0][1] - minMax[0][0],\n minMax[1][1] - minMax[1][0]\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BrushController, { BrushControllerEvents, BrushCoverConfig } from '../helper/BrushController';\nimport {layoutCovers} from './visualEncoding';\nimport BrushModel from './BrushModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport ComponentView from '../../view/Component';\n\n\nclass BrushView extends ComponentView {\n\n static type = 'brush';\n readonly type = BrushView.type;\n\n ecModel: GlobalModel;\n api: ExtensionAPI;\n model: BrushModel;\n private _brushController: BrushController;\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {\n this.ecModel = ecModel;\n this.api = api;\n this.model;\n\n (this._brushController = new BrushController(api.getZr()))\n .on('brush', zrUtil.bind(this._onBrush, this))\n .mount();\n }\n\n render(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.model = brushModel;\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n updateTransform(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // PENDING: `updateTransform` is a little tricky, whose layout need\n // to be calculate mandatorily and other stages will not be performed.\n // Take care the correctness of the logic. See #11754 .\n layoutCovers(ecModel);\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n updateVisual(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this.updateTransform(brushModel, ecModel, api, payload);\n }\n\n updateView(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n private _updateController(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // Do not update controller when drawing.\n (!payload || payload.$from !== brushModel.id) && this._brushController\n .setPanels(brushModel.brushTargetManager.makePanelOpts(api))\n .enableBrush(brushModel.brushOption)\n .updateCovers(brushModel.areas.slice() as BrushCoverConfig[]);\n }\n\n // updateLayout: updateController,\n\n // updateVisual: updateController,\n\n dispose() {\n this._brushController.dispose();\n }\n\n private _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const modelId = this.model.id;\n\n const areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel);\n\n // Action is not dispatched on drag end, because the drag end\n // emits the same params with the last drag move event, and\n // may have some delay when using touch pad, which makes\n // animation not smooth (when using debounce).\n (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({\n type: 'brush',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n eventParam.isEnd && this.api.dispatchAction({\n type: 'brushEnd',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n }\n\n}\n\nexport default BrushView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport Model from '../../model/Model';\nimport { ComponentOption, ZRColor, VisualOptionFixed } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nimport {\n BrushCoverCreatorConfig, BrushMode, BrushCoverConfig, BrushDimensionMinMax,\n BrushAreaRange, BrushTypeUncertain, BrushType\n} from '../helper/BrushController';\nimport { ModelFinderObject } from '../../util/model';\n\nconst DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd';\n\n/**\n * The input to define brush areas.\n * (1) Can be created by user when calling dispatchAction.\n * (2) Can be created by `BrushController`\n * for brush behavior. area params are picked from `cover.__brushOptoin`.\n * In `BrushController`, \"covers\" are create or updated for each \"area\".\n */\nexport interface BrushAreaParam extends ModelFinderObject {\n brushType: BrushCoverConfig['brushType'];\n id?: BrushCoverConfig['id'];\n range?: BrushCoverConfig['range'];\n\n // `ModelFinderObject` and `panelId` are used to match \"coord sys target\"\n // for this area. See `BrushTargetManager['setInputRanges']`.\n // If panelId specified, use it to match panel firstly.\n // If not specified, use `ModelFinderObject` to match panel,\n // and then assign the panelId to the area.\n // If finally no panel matched, panelId keep null/undefined,\n // means global area.\n // PENDING: this feature should better belong to BrushController\n // rather than brush component?\n panelId?: BrushCoverConfig['panelId'];\n\n // Range in local coordinates of certain coordinate system.\n // When dispatchAction, if the area is the global area,\n // `range` is the input. if the area is not the global area,\n // `coordRange` is the input, and then convert to `range`.\n coordRange?: BrushAreaRange;\n // coord ranges, used in multiple cartesian in one grid.\n // Only for output to users.\n coordRanges?: BrushAreaRange[];\n\n __rangeOffset?: {\n offset: BrushDimensionMinMax[] | BrushDimensionMinMax,\n xyMinMax: BrushDimensionMinMax[]\n }\n}\n\n/**\n * Generated by `brushModel.setAreas`, which merges\n * `area: BrushAreaParam` and `brushModel.option: BrushOption`.\n * See `generateBrushOption`.\n */\nexport interface BrushAreaParamInternal extends BrushAreaParam {\n brushMode: BrushMode;\n brushStyle: BrushCoverConfig['brushStyle'];\n transformable: BrushCoverConfig['transformable'];\n removeOnClick: BrushCoverConfig['removeOnClick'];\n z: BrushCoverConfig['z'];\n\n __rangeOffset?: {\n offset: BrushDimensionMinMax | BrushDimensionMinMax[];\n xyMinMax: BrushDimensionMinMax[]\n };\n}\n\nexport type BrushToolboxIconType = BrushType | 'keep' | 'clear';\n\nexport interface BrushOption extends ComponentOption, ModelFinderObject {\n mainType?: 'brush';\n\n // Default value see preprocessor.\n toolbox?: BrushToolboxIconType[];\n\n // Series indices array, broadcast using dataIndex.\n // or 'all', which means all series. 'none'/null/undefined means no series.\n brushLink?: number[] | 'all' | 'none';\n\n // Throttle in brushSelected event. 'fixRate' or 'debounce'.\n // If null, no throttle. Valid only in the first brush component\n throttleType?: 'fixRate' | 'debounce';\n // Unit: ms, 0 means every event will be triggered.\n throttleDelay?: number;\n\n inBrush?: VisualOptionFixed;\n outOfBrush?: VisualOptionFixed;\n\n // --- Current painting brush options ---\n // Default type of brush\n brushType?: BrushTypeUncertain;\n brushStyle?: {\n borderWidth?: number;\n color?: ZRColor;\n borderColor?: ZRColor;\n };\n transformable?: boolean;\n brushMode?: BrushMode;\n removeOnClick?: boolean;\n}\n\nclass BrushModel extends ComponentModel {\n\n static type = 'brush' as const;\n type = BrushModel.type;\n\n static dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'];\n\n static defaultOption: BrushOption = {\n seriesIndex: 'all',\n brushType: 'rect',\n brushMode: 'single',\n transformable: true,\n brushStyle: {\n borderWidth: 1,\n color: 'rgba(210,219,238,0.3)',\n borderColor: '#D2DBEE'\n },\n throttleType: 'fixRate',\n throttleDelay: 0,\n removeOnClick: true,\n z: 10000\n };\n\n /**\n * @readOnly\n */\n areas: BrushAreaParamInternal[] = [];\n\n /**\n * Current activated brush type.\n * If null, brush is inactived.\n * see module:echarts/component/helper/BrushController\n * @readOnly\n */\n brushType: BrushTypeUncertain;\n\n /**\n * Current brush painting area settings.\n * @readOnly\n */\n brushOption: BrushCoverCreatorConfig = {} as BrushCoverCreatorConfig;\n\n // Inject\n brushTargetManager: BrushTargetManager;\n\n\n optionUpdated(newOption: BrushOption, isInit: boolean): void {\n const thisOption = this.option;\n\n !isInit && visualSolution.replaceVisualOption(\n thisOption, newOption, ['inBrush', 'outOfBrush']\n );\n\n const inBrush = thisOption.inBrush = thisOption.inBrush || {};\n // Always give default visual, consider setOption at the second time.\n thisOption.outOfBrush = thisOption.outOfBrush || {color: DEFAULT_OUT_OF_BRUSH_COLOR};\n\n if (!inBrush.hasOwnProperty('liftZ')) {\n // Bigger than the highlight z lift, otherwise it will\n // be effected by the highlight z when brush.\n inBrush.liftZ = 5;\n }\n }\n\n /**\n * If `areas` is null/undefined, range state remain.\n */\n setAreas(areas?: BrushAreaParam[]): void {\n if (__DEV__) {\n zrUtil.assert(zrUtil.isArray(areas));\n zrUtil.each(areas, function (area) {\n zrUtil.assert(area.brushType, 'Illegal areas');\n });\n }\n\n // If areas is null/undefined, range state remain.\n // This helps user to dispatchAction({type: 'brush'}) with no areas\n // set but just want to get the current brush select info from a `brush` event.\n if (!areas) {\n return;\n }\n\n this.areas = zrUtil.map(areas, function (area) {\n return generateBrushOption(this.option, area);\n }, this);\n }\n\n /**\n * Set the current painting brush option.\n */\n setBrushOption(brushOption: BrushCoverCreatorConfig): void {\n this.brushOption = generateBrushOption(this.option, brushOption);\n this.brushType = this.brushOption.brushType;\n }\n\n}\n\n\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushAreaParam\n): BrushAreaParamInternal;\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushCoverCreatorConfig\n): BrushCoverCreatorConfig;\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushAreaParam | BrushCoverCreatorConfig\n): BrushAreaParamInternal | BrushCoverCreatorConfig {\n return zrUtil.merge(\n {\n brushType: option.brushType,\n brushMode: option.brushMode,\n transformable: option.transformable,\n brushStyle: new Model(option.brushStyle).getItemStyle(),\n removeOnClick: option.removeOnClick,\n z: option.z\n },\n brushOption,\n true\n );\n}\n\nexport default BrushModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {\n ToolboxFeatureModel,\n ToolboxFeatureOption,\n ToolboxFeature\n} from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport BrushModel from '../../brush/BrushModel';\nimport { BrushTypeUncertain } from '../../helper/BrushController';\n\nconst ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'] as const;\n\ntype IconType = typeof ICON_TYPES[number];\n\nexport interface ToolboxBrushFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n icon?: {[key in IconType]?: string}\n title?: {[key in IconType]?: string}\n}\n\nclass BrushFeature extends ToolboxFeature {\n\n private _brushType: BrushTypeUncertain;\n private _brushMode: string;\n\n render(\n featureModel: ToolboxFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n let brushType: BrushTypeUncertain;\n let brushMode: string;\n let isBrushed: boolean;\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n brushType = brushModel.brushType;\n brushMode = brushModel.brushOption.brushMode || 'single';\n isBrushed = isBrushed || !!brushModel.areas.length;\n });\n this._brushType = brushType;\n this._brushMode = brushMode;\n\n zrUtil.each(featureModel.get('type', true), function (type) {\n featureModel.setIconStatus(\n type,\n (\n type === 'keep'\n ? brushMode === 'multiple'\n : type === 'clear'\n ? isBrushed\n : type === brushType\n ) ? 'emphasis' : 'normal'\n );\n });\n }\n\n updateView(\n featureModel: ToolboxFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this.render(featureModel, ecModel, api);\n }\n\n getIcons() {\n const model = this.model;\n const availableIcons = model.get('icon', true);\n const icons: ToolboxBrushFeatureOption['icon'] = {};\n zrUtil.each(model.get('type', true), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: IconType) {\n const brushType = this._brushType;\n const brushMode = this._brushMode;\n\n if (type === 'clear') {\n // Trigger parallel action firstly\n api.dispatchAction({\n type: 'axisAreaSelect',\n intervals: []\n });\n\n api.dispatchAction({\n type: 'brush',\n command: 'clear',\n // Clear all areas of all brush components.\n areas: []\n });\n }\n else {\n api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'brush',\n brushOption: {\n brushType: type === 'keep'\n ? brushType\n : (brushType === type ? false : type),\n brushMode: type === 'keep'\n ? (brushMode === 'multiple' ? 'single' : 'multiple')\n : brushMode\n }\n });\n }\n };\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxBrushFeatureOption = {\n show: true,\n type: ICON_TYPES.slice(),\n icon: {\n /* eslint-disable */\n rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13', // jshint ignore:line\n polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2', // jshint ignore:line\n lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4', // jshint ignore:line\n lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4', // jshint ignore:line\n keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z', // jshint ignore:line\n clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line\n /* eslint-enable */\n },\n // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`\n title: ecModel.getLocaleModel().get(['toolbox', 'brush', 'title'])\n };\n\n return defaultOption;\n }\n}\n\nexport default BrushFeature;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport brushPreprocessor from './preprocessor';\nimport BrushView from './BrushView';\nimport BrushModel, { BrushAreaParam } from './BrushModel';\nimport brushVisual from './visualEncoding';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\n// TODO\nimport BrushFeature from '../toolbox/feature/Brush';\nimport { registerFeature } from '../toolbox/featureManager';\n\ninterface BrushPayload extends Payload {\n // If \"areas\" is empty, all of the select-boxes will be deleted\n areas?: BrushAreaParam[];\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentView(BrushView);\n registers.registerComponentModel(BrushModel);\n\n registers.registerPreprocessor(brushPreprocessor);\n\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, brushVisual);\n\n registers.registerAction(\n {type: 'brush', event: 'brush', update: 'updateVisual' },\n function (payload: BrushPayload, ecModel: GlobalModel) {\n ecModel.eachComponent(\n {mainType: 'brush', query: payload},\n function (brushModel: BrushModel) {\n brushModel.setAreas(payload.areas);\n }\n );\n }\n );\n\n /**\n * payload: {\n * brushComponents: [\n * {\n * brushId,\n * brushIndex,\n * brushName,\n * series: [\n * {\n * seriesId,\n * seriesIndex,\n * seriesName,\n * rawIndices: [21, 34, ...]\n * },\n * ...\n * ]\n * },\n * ...\n * ]\n * }\n */\n registers.registerAction(\n {type: 'brushSelect', event: 'brushSelected', update: 'none'},\n function () {}\n );\n\n registers.registerAction(\n {type: 'brushEnd', event: 'brushEnd', update: 'none'},\n function () {}\n );\n\n registerFeature('brush', BrushFeature);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {createTextStyle} from '../../label/labelStyle';\nimport {getLayoutRect} from '../../util/layout';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n ZRTextAlign,\n ZRTextVerticalAlign,\n ZRColor,\n BorderOptionMixin,\n LabelOption\n} from '../../util/types';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {windowOpen} from '../../util/format';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\nexport interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {\n\n mainType?: 'title'\n\n show?: boolean\n\n text?: string\n /**\n * Link to url\n */\n link?: string\n target?: 'self' | 'blank'\n\n subtext?: string\n sublink?: string\n subtarget?: 'self' | 'blank'\n\n textAlign?: ZRTextAlign\n textVerticalAlign?: ZRTextVerticalAlign\n\n /**\n * @deprecated Use textVerticalAlign instead\n */\n textBaseline?: ZRTextVerticalAlign\n\n backgroundColor?: ZRColor\n /**\n * Padding between text and border.\n * Support to be a single number or an array.\n */\n padding?: number | number[]\n /**\n * Gap between text and subtext\n */\n itemGap?: number\n\n textStyle?: LabelOption\n\n subtextStyle?: LabelOption\n\n /**\n * If trigger mouse or touch event\n */\n triggerEvent?: boolean\n\n /**\n * Radius of background border.\n */\n borderRadius?: number | number[]\n}\nclass TitleModel extends ComponentModel {\n static type = 'title' as const;\n type = TitleModel.type;\n\n readonly layoutMode = {type: 'box', ignoreSize: true} as const;\n\n static defaultOption: TitleOption = {\n zlevel: 0,\n z: 6,\n show: true,\n\n text: '',\n target: 'blank',\n subtext: '',\n\n subtarget: 'blank',\n\n left: 0,\n top: 0,\n\n backgroundColor: 'rgba(0,0,0,0)',\n\n borderColor: '#ccc',\n\n borderWidth: 0,\n\n padding: 5,\n\n itemGap: 10,\n textStyle: {\n fontSize: 18,\n fontWeight: 'bold',\n color: '#464646'\n },\n subtextStyle: {\n fontSize: 12,\n color: '#6E7079'\n }\n };\n}\n\n\n// View\nclass TitleView extends ComponentView {\n\n static type = 'title' as const;\n type = TitleView.type;\n\n\n render(titleModel: TitleModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.group.removeAll();\n\n if (!titleModel.get('show')) {\n return;\n }\n\n const group = this.group;\n\n const textStyleModel = titleModel.getModel('textStyle');\n const subtextStyleModel = titleModel.getModel('subtextStyle');\n\n let textAlign = titleModel.get('textAlign');\n let textVerticalAlign = zrUtil.retrieve2(\n titleModel.get('textBaseline'), titleModel.get('textVerticalAlign')\n );\n\n const textEl = new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: titleModel.get('text'),\n fill: textStyleModel.getTextColor()\n }, {disableBox: true}),\n z2: 10\n });\n\n const textRect = textEl.getBoundingRect();\n\n const subText = titleModel.get('subtext');\n const subTextEl = new graphic.Text({\n style: createTextStyle(subtextStyleModel, {\n text: subText,\n fill: subtextStyleModel.getTextColor(),\n y: textRect.height + titleModel.get('itemGap'),\n verticalAlign: 'top'\n }, {disableBox: true}),\n z2: 10\n });\n\n const link = titleModel.get('link');\n const sublink = titleModel.get('sublink');\n const triggerEvent = titleModel.get('triggerEvent', true);\n\n textEl.silent = !link && !triggerEvent;\n subTextEl.silent = !sublink && !triggerEvent;\n\n if (link) {\n textEl.on('click', function () {\n windowOpen(link, '_' + titleModel.get('target'));\n });\n }\n if (sublink) {\n subTextEl.on('click', function () {\n windowOpen(sublink, '_' + titleModel.get('subtarget'));\n });\n }\n\n getECData(textEl).eventData = getECData(subTextEl).eventData = triggerEvent\n ? {\n componentType: 'title',\n componentIndex: titleModel.componentIndex\n }\n : null;\n\n group.add(textEl);\n subText && group.add(subTextEl);\n // If no subText, but add subTextEl, there will be an empty line.\n\n let groupRect = group.getBoundingRect();\n const layoutOption = titleModel.getBoxLayoutParams();\n layoutOption.width = groupRect.width;\n layoutOption.height = groupRect.height;\n const layoutRect = getLayoutRect(\n layoutOption, {\n width: api.getWidth(),\n height: api.getHeight()\n }, titleModel.get('padding')\n );\n // Adjust text align based on position\n if (!textAlign) {\n // Align left if title is on the left. center and right is same\n textAlign = (titleModel.get('left') || titleModel.get('right')) as ZRTextAlign;\n // @ts-ignore\n if (textAlign === 'middle') {\n textAlign = 'center';\n }\n // Adjust layout by text align\n if (textAlign === 'right') {\n layoutRect.x += layoutRect.width;\n }\n else if (textAlign === 'center') {\n layoutRect.x += layoutRect.width / 2;\n }\n }\n if (!textVerticalAlign) {\n textVerticalAlign = (titleModel.get('top') || titleModel.get('bottom')) as ZRTextVerticalAlign;\n // @ts-ignore\n if (textVerticalAlign === 'center') {\n textVerticalAlign = 'middle';\n }\n if (textVerticalAlign === 'bottom') {\n layoutRect.y += layoutRect.height;\n }\n else if (textVerticalAlign === 'middle') {\n layoutRect.y += layoutRect.height / 2;\n }\n\n textVerticalAlign = textVerticalAlign || 'top';\n }\n\n group.x = layoutRect.x;\n group.y = layoutRect.y;\n group.markRedraw();\n const alignStyle = {\n align: textAlign,\n verticalAlign: textVerticalAlign\n };\n textEl.setStyle(alignStyle);\n subTextEl.setStyle(alignStyle);\n\n // Render background\n // Get groupRect again because textAlign has been changed\n groupRect = group.getBoundingRect();\n const padding = layoutRect.margin;\n const style = titleModel.getItemStyle(['color', 'opacity']);\n style.fill = titleModel.get('backgroundColor');\n const rect = new graphic.Rect({\n shape: {\n x: groupRect.x - padding[3],\n y: groupRect.y - padding[0],\n width: groupRect.width + padding[1] + padding[3],\n height: groupRect.height + padding[0] + padding[2],\n r: titleModel.get('borderRadius')\n },\n style: style,\n subPixelOptimize: true,\n silent: true\n });\n\n group.add(rect);\n }\n}\n\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(TitleModel);\n registers.registerComponentView(TitleView);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport SeriesData from '../../data/SeriesData';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n SymbolOptionMixin,\n LineStyleOption,\n ItemStyleOption,\n LabelOption,\n OptionDataValue,\n ZRColor,\n ColorString,\n CommonTooltipOption,\n CallbackDataParams,\n ZREasing\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel, { GlobalModelSetOptionOpts } from '../../model/Global';\nimport { each, isObject, clone } from 'zrender/src/core/util';\nimport { convertOptionIdName, getDataItemValue } from '../../util/model';\n\n\nexport interface TimelineControlStyle extends ItemStyleOption {\n show?: boolean\n showPlayBtn?: boolean\n showPrevBtn?: boolean\n showNextBtn?: boolean\n itemSize?: number\n itemGap?: number\n position?: 'left' | 'right' | 'top' | 'bottom'\n playIcon?: string\n stopIcon?: string\n prevIcon?: string\n nextIcon?: string\n\n // Can be a percent value relative to itemSize\n playBtnSize?: number | string\n stopBtnSize?: number | string\n nextBtnSize?: number | string\n prevBtnSize?: number | string\n}\n\nexport interface TimelineCheckpointStyle extends ItemStyleOption,\n SymbolOptionMixin {\n animation?: boolean\n animationDuration?: number\n animationEasing?: ZREasing\n}\n\ninterface TimelineLineStyleOption extends LineStyleOption {\n show?: boolean\n}\n\ninterface TimelineLabelOption extends Omit {\n show?: boolean\n // number can be distance to the timeline axis. sign will determine the side.\n position?: 'auto' | 'left' | 'right' | 'top' | 'bottom' | number\n interval?: 'auto' | number\n formatter?: string | ((value: string | number, index: number) => string)\n}\n\nexport interface TimelineDataItemOption extends SymbolOptionMixin {\n value?: OptionDataValue\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n checkpointStyle?: TimelineCheckpointStyle\n\n emphasis?: {\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n checkpointStyle?: TimelineCheckpointStyle\n }\n\n // Style in progress\n progress?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n }\n\n tooltip?: boolean\n}\n\nexport interface TimelineOption extends ComponentOption, BoxLayoutOptionMixin, SymbolOptionMixin {\n mainType?: 'timeline'\n\n backgroundColor?: ZRColor\n borderColor?: ColorString\n borderWidth?: number\n\n tooltip?: CommonTooltipOption & {\n trigger?: 'item'\n }\n\n show?: boolean\n\n axisType?: 'category' | 'time' | 'value'\n\n currentIndex?: number\n\n autoPlay?: boolean\n\n rewind?: boolean\n\n loop?: boolean\n\n playInterval?: number\n\n realtime?: boolean\n\n controlPosition?: 'left' | 'right' | 'top' | 'bottom'\n\n padding?: number | number[]\n\n orient?: LayoutOrient\n\n inverse?: boolean\n\n // If not specified, options will be changed by \"normalMerge\".\n // If specified, options will be changed by \"replaceMerge\".\n replaceMerge?: GlobalModelSetOptionOpts['replaceMerge']\n\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n checkpointStyle?: TimelineCheckpointStyle\n controlStyle?: TimelineControlStyle\n label?: TimelineLabelOption\n\n emphasis?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n checkpointStyle?: TimelineCheckpointStyle\n controlStyle?: TimelineControlStyle\n label?: TimelineLabelOption\n }\n\n\n // Style in progress\n progress?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n }\n\n data?: (OptionDataValue | TimelineDataItemOption)[]\n}\nclass TimelineModel extends ComponentModel {\n\n static type = 'timeline';\n type = TimelineModel.type;\n\n layoutMode = 'box';\n\n private _data: SeriesData;\n\n private _names: string[];\n\n /**\n * @override\n */\n init(option: TimelineOption, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n this._initData();\n }\n\n /**\n * @override\n */\n mergeOption(option: TimelineOption) {\n super.mergeOption.apply(this, arguments as any);\n this._initData();\n }\n\n setCurrentIndex(currentIndex: number) {\n if (currentIndex == null) {\n currentIndex = this.option.currentIndex;\n }\n const count = this._data.count();\n\n if (this.option.loop) {\n currentIndex = (currentIndex % count + count) % count;\n }\n else {\n currentIndex >= count && (currentIndex = count - 1);\n currentIndex < 0 && (currentIndex = 0);\n }\n\n this.option.currentIndex = currentIndex;\n }\n\n /**\n * @return {number} currentIndex\n */\n getCurrentIndex() {\n return this.option.currentIndex;\n }\n\n /**\n * @return {boolean}\n */\n isIndexMax() {\n return this.getCurrentIndex() >= this._data.count() - 1;\n }\n\n /**\n * @param {boolean} state true: play, false: stop\n */\n setPlayState(state: boolean) {\n this.option.autoPlay = !!state;\n }\n\n /**\n * @return {boolean} true: play, false: stop\n */\n getPlayState() {\n return !!this.option.autoPlay;\n }\n\n /**\n * @private\n */\n _initData() {\n const thisOption = this.option;\n const dataArr = thisOption.data || [];\n const axisType = thisOption.axisType;\n const names: string[] = this._names = [];\n\n let processedDataArr: TimelineOption['data'];\n if (axisType === 'category') {\n processedDataArr = [];\n each(dataArr, function (item, index) {\n const value = convertOptionIdName(getDataItemValue(item), '');\n let newItem;\n\n if (isObject(item)) {\n newItem = clone(item);\n (newItem as TimelineDataItemOption).value = index;\n }\n else {\n newItem = index;\n }\n\n processedDataArr.push(newItem);\n\n names.push(value);\n });\n }\n else {\n processedDataArr = dataArr;\n }\n\n const dimType = ({\n category: 'ordinal',\n time: 'time',\n value: 'number'\n })[axisType] || 'number';\n\n const data = this._data = new SeriesData([{\n name: 'value', type: dimType\n }], this);\n\n data.initData(processedDataArr, names);\n }\n\n getData() {\n return this._data;\n }\n\n /**\n * @public\n * @return {Array.} categoreis\n */\n getCategories() {\n if (this.get('axisType') === 'category') {\n return this._names.slice();\n }\n }\n\n /**\n * @protected\n */\n static defaultOption: TimelineOption = {\n\n zlevel: 0, // \u4E00\u7EA7\u5C42\u53E0\n z: 4, // \u4E8C\u7EA7\u5C42\u53E0\n show: true,\n\n axisType: 'time', // \u6A21\u5F0F\u662F\u65F6\u95F4\u7C7B\u578B\uFF0C\u652F\u6301 value, category\n\n realtime: true,\n\n left: '20%',\n top: null,\n right: '20%',\n bottom: 0,\n width: null,\n height: 40,\n padding: 5,\n\n controlPosition: 'left', // 'left' 'right' 'top' 'bottom' 'none'\n autoPlay: false,\n rewind: false, // \u53CD\u5411\u64AD\u653E\n loop: true,\n playInterval: 2000, // \u64AD\u653E\u65F6\u95F4\u95F4\u9694\uFF0C\u5355\u4F4Dms\n\n currentIndex: 0,\n\n itemStyle: {},\n label: {\n color: '#000'\n },\n\n data: []\n };\n\n}\n\nexport default TimelineModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport TimelineModel, { TimelineOption } from './TimelineModel';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport { mixin } from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface SliderTimelineOption extends TimelineOption {\n}\n\nclass SliderTimelineModel extends TimelineModel {\n\n static type = 'timeline.slider';\n type = SliderTimelineModel.type;\n\n /**\n * @protected\n */\n static defaultOption: SliderTimelineOption = inheritDefaultOption(TimelineModel.defaultOption, {\n\n backgroundColor: 'rgba(0,0,0,0)', // \u65F6\u95F4\u8F74\u80CC\u666F\u989C\u8272\n borderColor: '#ccc', // \u65F6\u95F4\u8F74\u8FB9\u6846\u989C\u8272\n borderWidth: 0, // \u65F6\u95F4\u8F74\u8FB9\u6846\u7EBF\u5BBD\uFF0C\u5355\u4F4Dpx\uFF0C\u9ED8\u8BA4\u4E3A0\uFF08\u65E0\u8FB9\u6846\uFF09\n\n orient: 'horizontal', // 'vertical'\n inverse: false,\n\n tooltip: { // boolean or Object\n trigger: 'item' // data item may also have tootip attr.\n },\n\n symbol: 'circle',\n symbolSize: 12,\n\n lineStyle: {\n show: true,\n width: 2,\n color: '#DAE1F5'\n },\n label: { // \u6587\u672C\u6807\u7B7E\n position: 'auto', // auto left right top bottom\n // When using number, label position is not\n // restricted by viewRect.\n // positive: right/bottom, negative: left/top\n show: true,\n interval: 'auto',\n rotate: 0,\n // formatter: null,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#A4B1D7'\n },\n itemStyle: {\n color: '#A4B1D7',\n borderWidth: 1\n },\n\n checkpointStyle: {\n symbol: 'circle',\n symbolSize: 15,\n color: '#316bf3',\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n // borderColor: 'rgba(194,53,49, 0.5)',\n animation: true,\n animationDuration: 300,\n animationEasing: 'quinticInOut'\n },\n\n controlStyle: {\n show: true,\n showPlayBtn: true,\n showPrevBtn: true,\n showNextBtn: true,\n\n itemSize: 24,\n itemGap: 12,\n\n position: 'left', // 'left' 'right' 'top' 'bottom'\n\n playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z', // jshint ignore:line\n stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // jshint ignore:line\n // eslint-disable-next-line max-len\n nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z', // jshint ignore:line\n // eslint-disable-next-line max-len\n prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z', // jshint ignore:line\n\n prevBtnSize: 18,\n nextBtnSize: 18,\n\n color: '#A4B1D7',\n borderColor: '#A4B1D7',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#6f778d'\n },\n\n itemStyle: {\n color: '#316BF3'\n },\n\n controlStyle: {\n color: '#316BF3',\n borderColor: '#316BF3',\n borderWidth: 2\n }\n },\n\n progress: {\n lineStyle: {\n color: '#316BF3'\n },\n itemStyle: {\n color: '#316BF3'\n },\n label: {\n color: '#6f778d'\n }\n },\n\n data: []\n });\n\n}\n\ninterface SliderTimelineModel extends DataFormatMixin {\n getData(): SeriesData\n}\n\nmixin(SliderTimelineModel, DataFormatMixin.prototype);\n\nexport default SliderTimelineModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\n\nclass TimelineView extends ComponentView {\n static type = 'timeline';\n type = TimelineView.type;\n}\n\nexport default TimelineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../../coord/Axis';\nimport Scale from '../../scale/Scale';\nimport TimelineModel from './TimelineModel';\nimport { LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\n\n/**\n * Extend axis 2d\n */\nclass TimelineAxis extends Axis {\n\n type: 'category' | 'time' | 'value';\n\n // @ts-ignore\n model: TimelineModel;\n\n constructor(\n dim: string,\n scale: Scale,\n coordExtent: [number, number],\n axisType: 'category' | 'time' | 'value'\n ) {\n super(dim, scale, coordExtent);\n this.type = axisType || 'value';\n }\n\n /**\n * @override\n */\n getLabelModel() {\n // Force override\n return this.model.getModel('label') as Model;\n }\n\n /**\n * @override\n */\n isHorizontal() {\n return this.model.get('orient') === 'horizontal';\n }\n}\n\nexport default TimelineAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as layout from '../../util/layout';\nimport TimelineView from './TimelineView';\nimport TimelineAxis from './TimelineAxis';\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport * as numberUtil from '../../util/number';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { merge, each, extend, isString, bind, defaults, retrieve2 } from 'zrender/src/core/util';\nimport SliderTimelineModel from './SliderTimelineModel';\nimport { LayoutOrient, ZRTextAlign, ZRTextVerticalAlign, ZRElementEvent, ScaleTick } from '../../util/types';\nimport TimelineModel, { TimelineDataItemOption, TimelineCheckpointStyle } from './TimelineModel';\nimport { TimelineChangePayload, TimelinePlayChangePayload } from './timelineAction';\nimport Model from '../../model/Model';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport Scale from '../../scale/Scale';\nimport OrdinalScale from '../../scale/Ordinal';\nimport TimeScale from '../../scale/Time';\nimport IntervalScale from '../../scale/Interval';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { makeInner } from '../../util/model';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst PI = Math.PI;\n\ntype TimelineSymbol = ReturnType;\n\ntype RenderMethodName = '_renderAxisLine' | '_renderAxisTick' | '_renderControl' | '_renderCurrentPointer';\n\ntype ControlName = 'play' | 'stop' | 'next' | 'prev';\ntype ControlIconName = 'playIcon' | 'stopIcon' | 'nextIcon' | 'prevIcon';\n\nconst labelDataIndexStore = makeInner<{\n dataIndex: number\n}, graphic.Text>();\n\ninterface LayoutInfo {\n viewRect: BoundingRect\n mainLength: number\n orient: LayoutOrient\n\n rotation: number\n labelRotation: number\n labelPosOpt: number | '+' | '-'\n labelAlign: ZRTextAlign\n labelBaseline: ZRTextVerticalAlign\n\n playPosition: number[]\n prevBtnPosition: number[]\n nextBtnPosition: number[]\n axisExtent: number[]\n\n controlSize: number\n controlGap: number\n}\n\nclass SliderTimelineView extends TimelineView {\n\n static type = 'timeline.slider';\n type = SliderTimelineView.type;\n\n api: ExtensionAPI;\n model: SliderTimelineModel;\n ecModel: GlobalModel;\n\n private _axis: TimelineAxis;\n\n private _viewRect: BoundingRect;\n\n private _timer: number;\n\n private _currentPointer: TimelineSymbol;\n\n private _progressLine: graphic.Line;\n\n private _mainGroup: graphic.Group;\n\n private _labelGroup: graphic.Group;\n\n private _tickSymbols: graphic.Path[];\n private _tickLabels: graphic.Text[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.api = api;\n }\n\n /**\n * @override\n */\n render(timelineModel: SliderTimelineModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.model = timelineModel;\n this.api = api;\n this.ecModel = ecModel;\n\n this.group.removeAll();\n\n if (timelineModel.get('show', true)) {\n\n const layoutInfo = this._layout(timelineModel, api);\n const mainGroup = this._createGroup('_mainGroup');\n const labelGroup = this._createGroup('_labelGroup');\n\n const axis = this._axis = this._createAxis(layoutInfo, timelineModel);\n\n timelineModel.formatTooltip = function (dataIndex: number) {\n const name = axis.scale.getLabel({value: dataIndex});\n return createTooltipMarkup('nameValue', { noName: true, value: name });\n };\n\n each(\n ['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'] as const,\n function (name) {\n this['_render' + name as RenderMethodName](layoutInfo, mainGroup, axis, timelineModel);\n },\n this\n );\n\n this._renderAxisLabel(layoutInfo, labelGroup, axis, timelineModel);\n this._position(layoutInfo, timelineModel);\n }\n\n this._doPlayStop();\n\n this._updateTicksStatus();\n }\n\n /**\n * @override\n */\n remove() {\n this._clearTimer();\n this.group.removeAll();\n }\n\n /**\n * @override\n */\n dispose() {\n this._clearTimer();\n }\n\n private _layout(timelineModel: SliderTimelineModel, api: ExtensionAPI): LayoutInfo {\n const labelPosOpt = timelineModel.get(['label', 'position']);\n const orient = timelineModel.get('orient');\n const viewRect = getViewRect(timelineModel, api);\n let parsedLabelPos: number | '+' | '-';\n // Auto label offset.\n if (labelPosOpt == null || labelPosOpt === 'auto') {\n parsedLabelPos = orient === 'horizontal'\n ? ((viewRect.y + viewRect.height / 2) < api.getHeight() / 2 ? '-' : '+')\n : ((viewRect.x + viewRect.width / 2) < api.getWidth() / 2 ? '+' : '-');\n }\n else if (isString(labelPosOpt)) {\n parsedLabelPos = ({\n horizontal: {top: '-', bottom: '+'},\n vertical: {left: '-', right: '+'}\n } as const)[orient][labelPosOpt];\n }\n else {\n // is number\n parsedLabelPos = labelPosOpt;\n }\n\n const labelAlignMap = {\n horizontal: 'center',\n vertical: (parsedLabelPos >= 0 || parsedLabelPos === '+') ? 'left' : 'right'\n };\n\n const labelBaselineMap = {\n horizontal: (parsedLabelPos >= 0 || parsedLabelPos === '+') ? 'top' : 'bottom',\n vertical: 'middle'\n };\n const rotationMap = {\n horizontal: 0,\n vertical: PI / 2\n };\n\n // Position\n const mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;\n\n const controlModel = timelineModel.getModel('controlStyle');\n const showControl = controlModel.get('show', true);\n const controlSize = showControl ? controlModel.get('itemSize') : 0;\n const controlGap = showControl ? controlModel.get('itemGap') : 0;\n const sizePlusGap = controlSize + controlGap;\n\n // Special label rotate.\n let labelRotation = timelineModel.get(['label', 'rotate']) || 0;\n labelRotation = labelRotation * PI / 180; // To radian.\n\n let playPosition: number[];\n let prevBtnPosition: number[];\n let nextBtnPosition: number[];\n const controlPosition = controlModel.get('position', true);\n const showPlayBtn = showControl && controlModel.get('showPlayBtn', true);\n const showPrevBtn = showControl && controlModel.get('showPrevBtn', true);\n const showNextBtn = showControl && controlModel.get('showNextBtn', true);\n let xLeft = 0;\n let xRight = mainLength;\n\n // position[0] means left, position[1] means middle.\n if (controlPosition === 'left' || controlPosition === 'bottom') {\n showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);\n showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n else { // 'top' 'right'\n showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n const axisExtent = [xLeft, xRight];\n\n if (timelineModel.get('inverse')) {\n axisExtent.reverse();\n }\n\n return {\n viewRect: viewRect,\n mainLength: mainLength,\n orient: orient,\n\n rotation: rotationMap[orient],\n labelRotation: labelRotation,\n labelPosOpt: parsedLabelPos,\n labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient] as ZRTextAlign,\n labelBaseline: timelineModel.get(['label', 'verticalAlign'])\n || timelineModel.get(['label', 'baseline'])\n || labelBaselineMap[orient] as ZRTextVerticalAlign,\n\n // Based on mainGroup.\n playPosition: playPosition,\n prevBtnPosition: prevBtnPosition,\n nextBtnPosition: nextBtnPosition,\n axisExtent: axisExtent,\n\n controlSize: controlSize,\n controlGap: controlGap\n };\n }\n\n private _position(layoutInfo: LayoutInfo, timelineModel: SliderTimelineModel) {\n // Position is be called finally, because bounding rect is needed for\n // adapt content to fill viewRect (auto adapt offset).\n\n // Timeline may be not all in the viewRect when 'offset' is specified\n // as a number, because it is more appropriate that label aligns at\n // 'offset' but not the other edge defined by viewRect.\n\n const mainGroup = this._mainGroup;\n const labelGroup = this._labelGroup;\n\n let viewRect = layoutInfo.viewRect;\n if (layoutInfo.orient === 'vertical') {\n // transform to horizontal, inverse rotate by left-top point.\n const m = matrix.create();\n const rotateOriginX = viewRect.x;\n const rotateOriginY = viewRect.y + viewRect.height;\n matrix.translate(m, m, [-rotateOriginX, -rotateOriginY]);\n matrix.rotate(m, m, -PI / 2);\n matrix.translate(m, m, [rotateOriginX, rotateOriginY]);\n viewRect = viewRect.clone();\n viewRect.applyTransform(m);\n }\n\n const viewBound = getBound(viewRect);\n const mainBound = getBound(mainGroup.getBoundingRect());\n const labelBound = getBound(labelGroup.getBoundingRect());\n\n const mainPosition = [mainGroup.x, mainGroup.y];\n const labelsPosition = [labelGroup.x, labelGroup.y];\n\n labelsPosition[0] = mainPosition[0] = viewBound[0][0];\n\n const labelPosOpt = layoutInfo.labelPosOpt;\n\n if (labelPosOpt == null || isString(labelPosOpt)) { // '+' or '-'\n const mainBoundIdx = labelPosOpt === '+' ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);\n }\n else {\n const mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n labelsPosition[1] = mainPosition[1] + labelPosOpt;\n }\n\n mainGroup.setPosition(mainPosition);\n labelGroup.setPosition(labelsPosition);\n mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;\n\n setOrigin(mainGroup);\n setOrigin(labelGroup);\n\n function setOrigin(targetGroup: graphic.Group) {\n targetGroup.originX = viewBound[0][0] - targetGroup.x;\n targetGroup.originY = viewBound[1][0] - targetGroup.y;\n }\n\n function getBound(rect: RectLike) {\n // [[xmin, xmax], [ymin, ymax]]\n return [\n [rect.x, rect.x + rect.width],\n [rect.y, rect.y + rect.height]\n ];\n }\n\n function toBound(fromPos: VectorArray, from: number[][], to: number[][], dimIdx: number, boundIdx: number) {\n fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];\n }\n }\n\n private _createAxis(layoutInfo: LayoutInfo, timelineModel: SliderTimelineModel) {\n const data = timelineModel.getData();\n const axisType = timelineModel.get('axisType');\n\n const scale = createScaleByModel(timelineModel, axisType);\n\n // Customize scale. The `tickValue` is `dataIndex`.\n scale.getTicks = function () {\n return data.mapArray(['value'], function (value: number) {\n return {value};\n });\n };\n\n const dataExtent = data.getDataExtent('value');\n scale.setExtent(dataExtent[0], dataExtent[1]);\n scale.niceTicks();\n\n const axis = new TimelineAxis('value', scale, layoutInfo.axisExtent as [number, number], axisType);\n axis.model = timelineModel;\n\n return axis;\n }\n\n private _createGroup(key: '_mainGroup' | '_labelGroup') {\n const newGroup = this[key] = new graphic.Group();\n this.group.add(newGroup);\n return newGroup;\n }\n\n private _renderAxisLine(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const axisExtent = axis.getExtent();\n\n if (!timelineModel.get(['lineStyle', 'show'])) {\n return;\n }\n\n const line = new graphic.Line({\n shape: {\n x1: axisExtent[0], y1: 0,\n x2: axisExtent[1], y2: 0\n },\n style: extend(\n {lineCap: 'round'},\n timelineModel.getModel('lineStyle').getLineStyle()\n ),\n silent: true,\n z2: 1\n });\n group.add(line);\n\n const progressLine = this._progressLine = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n x2: this._currentPointer\n ? this._currentPointer.x : axisExtent[0],\n y1: 0, y2: 0\n },\n style: defaults(\n { lineCap: 'round', lineWidth: line.style.lineWidth } as PathStyleProps,\n timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()\n ),\n silent: true,\n z2: 1\n });\n group.add(progressLine);\n }\n\n private _renderAxisTick(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const data = timelineModel.getData();\n // Show all ticks, despite ignoring strategy.\n const ticks = axis.scale.getTicks();\n\n this._tickSymbols = [];\n\n // The value is dataIndex, see the costomized scale.\n each(ticks, (tick: ScaleTick) => {\n const tickCoord = axis.dataToCoord(tick.value);\n const itemModel = data.getItemModel(tick.value);\n const itemStyleModel = itemModel.getModel('itemStyle');\n const hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']);\n const progressStyleModel = itemModel.getModel(['progress', 'itemStyle']);\n\n const symbolOpt = {\n x: tickCoord,\n y: 0,\n onclick: bind(this._changeTimeline, this, tick.value)\n };\n const el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);\n el.ensureState('emphasis').style = hoverStyleModel.getItemStyle();\n el.ensureState('progress').style = progressStyleModel.getItemStyle();\n\n enableHoverEmphasis(el);\n\n const ecData = getECData(el);\n if (itemModel.get('tooltip')) {\n ecData.dataIndex = tick.value;\n ecData.dataModel = timelineModel;\n }\n else {\n ecData.dataIndex = ecData.dataModel = null;\n }\n\n this._tickSymbols.push(el);\n });\n }\n\n private _renderAxisLabel(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const labelModel = axis.getLabelModel();\n\n if (!labelModel.get('show')) {\n return;\n }\n\n const data = timelineModel.getData();\n const labels = axis.getViewLabels();\n\n this._tickLabels = [];\n\n each(labels, (labelItem) => {\n // The tickValue is dataIndex, see the costomized scale.\n const dataIndex = labelItem.tickValue;\n\n const itemModel = data.getItemModel(dataIndex);\n const normalLabelModel = itemModel.getModel('label');\n const hoverLabelModel = itemModel.getModel(['emphasis', 'label']);\n const progressLabelModel = itemModel.getModel(['progress', 'label']);\n\n const tickCoord = axis.dataToCoord(labelItem.tickValue);\n const textEl = new graphic.Text({\n x: tickCoord,\n y: 0,\n rotation: layoutInfo.labelRotation - layoutInfo.rotation,\n onclick: bind(this._changeTimeline, this, dataIndex),\n silent: false,\n style: createTextStyle(normalLabelModel, {\n text: labelItem.formattedLabel,\n align: layoutInfo.labelAlign,\n verticalAlign: layoutInfo.labelBaseline\n })\n });\n\n textEl.ensureState('emphasis').style = createTextStyle(hoverLabelModel);\n textEl.ensureState('progress').style = createTextStyle(progressLabelModel);\n\n group.add(textEl);\n enableHoverEmphasis(textEl);\n\n labelDataIndexStore(textEl).dataIndex = dataIndex;\n\n this._tickLabels.push(textEl);\n\n });\n }\n\n private _renderControl(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const controlSize = layoutInfo.controlSize;\n const rotation = layoutInfo.rotation;\n\n const itemStyle = timelineModel.getModel('controlStyle').getItemStyle();\n const hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle();\n const playState = timelineModel.getPlayState();\n const inverse = timelineModel.get('inverse', true);\n\n makeBtn(\n layoutInfo.nextBtnPosition,\n 'next',\n bind(this._changeTimeline, this, inverse ? '-' : '+')\n );\n makeBtn(\n layoutInfo.prevBtnPosition,\n 'prev',\n bind(this._changeTimeline, this, inverse ? '+' : '-')\n );\n makeBtn(\n layoutInfo.playPosition,\n (playState ? 'stop' : 'play'),\n bind(this._handlePlayClick, this, !playState),\n true\n );\n\n function makeBtn(\n position: number[],\n iconName: ControlName,\n onclick: () => void,\n willRotate?: boolean\n ) {\n if (!position) {\n return;\n }\n const iconSize = parsePercent(\n retrieve2(timelineModel.get(['controlStyle', iconName + 'BtnSize' as any]), controlSize),\n controlSize\n );\n const rect = [0, -iconSize / 2, iconSize, iconSize];\n const btn = makeControlIcon(timelineModel, iconName + 'Icon' as ControlIconName, rect, {\n x: position[0],\n y: position[1],\n originX: controlSize / 2,\n originY: 0,\n rotation: willRotate ? -rotation : 0,\n rectHover: true,\n style: itemStyle,\n onclick: onclick\n });\n btn.ensureState('emphasis').style = hoverStyle;\n group.add(btn);\n enableHoverEmphasis(btn);\n }\n }\n\n private _renderCurrentPointer(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const data = timelineModel.getData();\n const currentIndex = timelineModel.getCurrentIndex();\n const pointerModel = data.getItemModel(currentIndex)\n .getModel('checkpointStyle');\n const me = this;\n\n const callback = {\n onCreate(pointer: TimelineSymbol) {\n pointer.draggable = true;\n pointer.drift = bind(me._handlePointerDrag, me);\n pointer.ondragend = bind(me._handlePointerDragend, me);\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true);\n },\n onUpdate(pointer: TimelineSymbol) {\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel);\n }\n };\n\n // Reuse when exists, for animation and drag.\n this._currentPointer = giveSymbol(\n pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback\n );\n }\n\n private _handlePlayClick(nextState: boolean) {\n this._clearTimer();\n this.api.dispatchAction({\n type: 'timelinePlayChange',\n playState: nextState,\n from: this.uid\n } as TimelinePlayChangePayload);\n }\n\n private _handlePointerDrag(dx: number, dy: number, e: ZRElementEvent) {\n this._clearTimer();\n this._pointerChangeTimeline([e.offsetX, e.offsetY]);\n }\n\n private _handlePointerDragend(e: ZRElementEvent) {\n this._pointerChangeTimeline([e.offsetX, e.offsetY], true);\n }\n\n private _pointerChangeTimeline(mousePos: number[], trigger?: boolean) {\n let toCoord = this._toAxisCoord(mousePos)[0];\n\n const axis = this._axis;\n const axisExtent = numberUtil.asc(axis.getExtent().slice());\n\n toCoord > axisExtent[1] && (toCoord = axisExtent[1]);\n toCoord < axisExtent[0] && (toCoord = axisExtent[0]);\n\n this._currentPointer.x = toCoord;\n this._currentPointer.markRedraw();\n\n this._progressLine.shape.x2 = toCoord;\n this._progressLine.dirty();\n\n const targetDataIndex = this._findNearestTick(toCoord);\n const timelineModel = this.model;\n\n if (trigger || (\n targetDataIndex !== timelineModel.getCurrentIndex()\n && timelineModel.get('realtime')\n )) {\n this._changeTimeline(targetDataIndex);\n }\n }\n\n private _doPlayStop() {\n this._clearTimer();\n\n if (this.model.getPlayState()) {\n this._timer = setTimeout(\n () => {\n // Do not cache\n const timelineModel = this.model;\n this._changeTimeline(\n timelineModel.getCurrentIndex()\n + (timelineModel.get('rewind', true) ? -1 : 1)\n );\n },\n this.model.get('playInterval')\n ) as any;\n }\n }\n\n private _toAxisCoord(vertex: number[]) {\n const trans = this._mainGroup.getLocalTransform();\n return graphic.applyTransform(vertex, trans, true);\n }\n\n private _findNearestTick(axisCoord: number) {\n const data = this.model.getData();\n let dist = Infinity;\n let targetDataIndex;\n const axis = this._axis;\n\n data.each(['value'], function (value, dataIndex) {\n const coord = axis.dataToCoord(value);\n const d = Math.abs(coord - axisCoord);\n if (d < dist) {\n dist = d;\n targetDataIndex = dataIndex;\n }\n });\n\n return targetDataIndex;\n }\n\n private _clearTimer() {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n }\n\n private _changeTimeline(nextIndex: number | '+' | '-') {\n const currentIndex = this.model.getCurrentIndex();\n\n if (nextIndex === '+') {\n nextIndex = currentIndex + 1;\n }\n else if (nextIndex === '-') {\n nextIndex = currentIndex - 1;\n }\n\n this.api.dispatchAction({\n type: 'timelineChange',\n currentIndex: nextIndex,\n from: this.uid\n } as TimelineChangePayload);\n }\n\n private _updateTicksStatus() {\n const currentIndex = this.model.getCurrentIndex();\n const tickSymbols = this._tickSymbols;\n const tickLabels = this._tickLabels;\n\n if (tickSymbols) {\n for (let i = 0; i < tickSymbols.length; i++) {\n tickSymbols && tickSymbols[i]\n && tickSymbols[i].toggleState('progress', i < currentIndex);\n }\n }\n if (tickLabels) {\n for (let i = 0; i < tickLabels.length; i++) {\n tickLabels && tickLabels[i]\n && tickLabels[i].toggleState(\n 'progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex\n );\n }\n }\n }\n}\n\nfunction createScaleByModel(model: SliderTimelineModel, axisType?: string): Scale {\n axisType = axisType || model.get('type');\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n default:\n // default to be value\n return new IntervalScale();\n }\n }\n}\n\n\nfunction getViewRect(model: SliderTimelineModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n model.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n },\n model.get('padding')\n );\n}\n\nfunction makeControlIcon(\n timelineModel: TimelineModel,\n objPath: ControlIconName,\n rect: number[],\n opts: PathProps\n) {\n const style = opts.style;\n\n const icon = graphic.createIcon(\n timelineModel.get(['controlStyle', objPath]),\n opts || {},\n new BoundingRect(rect[0], rect[1], rect[2], rect[3])\n );\n\n // TODO createIcon won't use style in opt.\n if (style) {\n (icon as Displayable).setStyle(style);\n }\n\n return icon;\n}\n\n/**\n * Create symbol or update symbol\n * opt: basic position and event handlers\n */\nfunction giveSymbol(\n hostModel: Model,\n itemStyleModel: Model,\n group: graphic.Group,\n opt: PathProps,\n symbol?: TimelineSymbol,\n callback?: {\n onCreate?: (symbol: TimelineSymbol) => void\n onUpdate?: (symbol: TimelineSymbol) => void\n }\n) {\n const color = itemStyleModel.get('color');\n\n if (!symbol) {\n const symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n }\n else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n callback && callback.onUpdate(symbol);\n }\n\n // Style\n const itemStyle = itemStyleModel.getItemStyle(['color']);\n symbol.setStyle(itemStyle);\n\n // Transform and events.\n opt = merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n\n const symbolSize = normalizeSymbolSize(hostModel.get('symbolSize'));\n\n opt.scaleX = symbolSize[0] / 2;\n opt.scaleY = symbolSize[1] / 2;\n\n const symbolOffset = normalizeSymbolOffset(hostModel.get('symbolOffset'), symbolSize);\n if (symbolOffset) {\n opt.x = (opt.x || 0) + symbolOffset[0];\n opt.y = (opt.y || 0) + symbolOffset[1];\n }\n\n const symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n symbol.attr(opt);\n\n // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n symbol.updateTransform();\n\n return symbol;\n}\n\nfunction pointerMoveTo(\n pointer: TimelineSymbol,\n progressLine: graphic.Line,\n dataIndex: number,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel,\n noAnimation?: boolean\n) {\n if (pointer.dragging) {\n return;\n }\n\n const pointerModel = timelineModel.getModel('checkpointStyle');\n const toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex));\n\n if (noAnimation || !pointerModel.get('animation', true)) {\n pointer.attr({\n x: toCoord,\n y: 0\n });\n progressLine && progressLine.attr({\n shape: { x2: toCoord }\n });\n }\n else {\n const animationCfg = {\n duration: pointerModel.get('animationDuration', true),\n easing: pointerModel.get('animationEasing', true)\n };\n pointer.stopAnimation(null, true);\n pointer.animateTo({\n x: toCoord,\n y: 0\n }, animationCfg);\n progressLine && progressLine.animateTo({\n shape: { x2: toCoord }\n }, animationCfg);\n }\n}\n\nexport default SliderTimelineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport TimelineModel from './TimelineModel';\nimport { defaults } from 'zrender/src/core/util';\nimport { Payload } from '../../util/types';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\nexport interface TimelineChangePayload extends Payload {\n type: 'timelineChange'\n currentIndex: number\n}\nexport interface TimelinePlayChangePayload extends Payload {\n type: 'timelinePlayChange'\n playState: boolean\n}\n\n\nexport function installTimelineAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction(\n\n {type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'},\n\n function (payload: TimelineChangePayload, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const timelineModel = ecModel.getComponent('timeline') as TimelineModel;\n if (timelineModel && payload.currentIndex != null) {\n timelineModel.setCurrentIndex(payload.currentIndex);\n\n if (\n !timelineModel.get('loop', true)\n && timelineModel.isIndexMax()\n && timelineModel.getPlayState()\n ) {\n timelineModel.setPlayState(false);\n\n // The timeline has played to the end, trigger event\n api.dispatchAction({\n type: 'timelinePlayChange',\n playState: false,\n from: payload.from\n });\n }\n }\n\n // Set normalized currentIndex to payload.\n ecModel.resetOption('timeline', { replaceMerge: timelineModel.get('replaceMerge', true) });\n\n return defaults({\n currentIndex: timelineModel.option.currentIndex\n }, payload);\n }\n );\n\n registers.registerAction(\n\n {type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update'},\n\n function (payload: TimelinePlayChangePayload, ecModel: GlobalModel) {\n const timelineModel = ecModel.getComponent('timeline') as TimelineModel;\n if (timelineModel && payload.playState != null) {\n timelineModel.setPlayState(payload.playState);\n }\n }\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nexport default function timelinePreprocessor(option) {\n let timelineOpt = option && option.timeline;\n\n if (!zrUtil.isArray(timelineOpt)) {\n timelineOpt = timelineOpt ? [timelineOpt] : [];\n }\n\n zrUtil.each(timelineOpt, function (opt) {\n if (!opt) {\n return;\n }\n\n compatibleEC2(opt);\n });\n}\n\nfunction compatibleEC2(opt) {\n const type = opt.type;\n\n const ec2Types = {'number': 'value', 'time': 'time'};\n\n // Compatible with ec2\n if (ec2Types[type]) {\n opt.axisType = ec2Types[type];\n delete opt.type;\n }\n\n transferItem(opt);\n\n if (has(opt, 'controlPosition')) {\n const controlStyle = opt.controlStyle || (opt.controlStyle = {});\n if (!has(controlStyle, 'position')) {\n controlStyle.position = opt.controlPosition;\n }\n if (controlStyle.position === 'none' && !has(controlStyle, 'show')) {\n controlStyle.show = false;\n delete controlStyle.position;\n }\n delete opt.controlPosition;\n }\n\n zrUtil.each(opt.data || [], function (dataItem) {\n if (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem)) {\n if (!has(dataItem, 'value') && has(dataItem, 'name')) {\n // In ec2, using name as value.\n dataItem.value = dataItem.name;\n }\n transferItem(dataItem);\n }\n });\n}\n\nfunction transferItem(opt) {\n const itemStyle = opt.itemStyle || (opt.itemStyle = {});\n\n const itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {});\n\n // Transfer label out\n const label = opt.label || (opt.label || {});\n const labelNormal = label.normal || (label.normal = {});\n const excludeLabelAttr = {normal: 1, emphasis: 1};\n\n zrUtil.each(label, function (value, name) {\n if (!excludeLabelAttr[name] && !has(labelNormal, name)) {\n labelNormal[name] = value;\n }\n });\n\n if (itemStyleEmphasis.label && !has(label, 'emphasis')) {\n label.emphasis = itemStyleEmphasis.label;\n delete itemStyleEmphasis.label;\n }\n}\n\nfunction has(obj, attr) {\n return obj.hasOwnProperty(attr);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SliderTimelineModel from './SliderTimelineModel';\nimport SliderTimelineView from './SliderTimelineView';\nimport { installTimelineAction } from './timelineAction';\nimport preprocessor from './preprocessor';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(SliderTimelineModel);\n registers.registerComponentView(SliderTimelineView);\n\n registers.registerSubTypeDefaulter('timeline', function () {\n // Only slider now.\n return 'slider';\n });\n\n installTimelineAction(registers);\n\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray } from 'zrender/src/core/util';\nimport { SeriesOption } from '../../util/types';\n\ntype MarkerTypes = 'markPoint' | 'markLine' | 'markArea';\n\ntype SeriesWithMarkerOption = SeriesOption & Partial>;\n\nexport default function checkMarkerInSeries(\n seriesOpts: SeriesOption | SeriesOption[], markerType: MarkerTypes\n): boolean {\n if (!seriesOpts) {\n return false;\n }\n const seriesOptArr = isArray(seriesOpts) ? seriesOpts : [seriesOpts];\n for (let idx = 0; idx < seriesOptArr.length; idx++) {\n if (seriesOptArr[idx] && (seriesOptArr[idx] as SeriesWithMarkerOption)[markerType]) {\n return true;\n }\n }\n return false;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport ComponentModel from '../../model/Component';\nimport SeriesModel from '../../model/Series';\nimport {\n DisplayStateHostOption,\n ComponentOption,\n AnimationOptionMixin,\n Dictionary,\n CommonTooltipOption,\n ScaleDataValue\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { makeInner, defaultEmphasis } from '../../util/model';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\n\nfunction fillLabel(opt: DisplayStateHostOption) {\n defaultEmphasis(opt, 'label', ['show']);\n}\n\nexport type MarkerStatisticType = 'average' | 'min' | 'max' | 'median';\n\n/**\n * Option to specify where to put the marker.\n */\nexport interface MarkerPositionOption {\n // Priority: x/y > coord(xAxis, yAxis) > type\n\n // Absolute position, px or percent string\n x?: number | string\n y?: number | string\n\n /**\n * Coord on any coordinate system\n */\n coord?: (ScaleDataValue | MarkerStatisticType)[]\n\n // On cartesian coordinate system\n xAxis?: ScaleDataValue\n yAxis?: ScaleDataValue\n\n // On polar coordinate system\n radiusAxis?: ScaleDataValue\n angleAxis?: ScaleDataValue\n\n // Use statistic method\n type?: MarkerStatisticType\n /**\n * When using statistic method with type.\n * valueIndex and valueDim can be specify which dim the statistic is used on.\n */\n valueIndex?: number\n valueDim?: string\n\n\n /**\n * Value to be displayed as label. Totally optional\n */\n value?: string | number\n}\n\nexport interface MarkerOption extends ComponentOption, AnimationOptionMixin {\n\n silent?: boolean\n\n data?: unknown[]\n\n tooltip?: CommonTooltipOption & {\n trigger?: 'item' | 'axis' | boolean | 'none'\n }\n}\n\n// { [componentType]: MarkerModel }\nconst inner = makeInner, SeriesModel>();\n\nabstract class MarkerModel extends ComponentModel {\n\n static type = 'marker';\n type = MarkerModel.type;\n\n /**\n * If marker model is created by self from series\n */\n createdBySelf = false;\n\n static readonly dependencies = ['series', 'grid', 'polar', 'geo'];\n\n __hostSeries: SeriesModel;\n\n private _data: SeriesData;\n\n /**\n * @overrite\n */\n init(option: Opts, parentModel: Model, ecModel: GlobalModel) {\n\n if (__DEV__) {\n if (this.type === 'marker') {\n throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.');\n }\n }\n this.mergeDefaultAndTheme(option, ecModel);\n this._mergeOption(option, ecModel, false, true);\n }\n\n isAnimationEnabled(): boolean {\n if (env.node) {\n return false;\n }\n\n const hostSeries = this.__hostSeries;\n return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();\n }\n\n /**\n * @overrite\n */\n mergeOption(newOpt: Opts, ecModel: GlobalModel) {\n this._mergeOption(newOpt, ecModel, false, false);\n }\n\n _mergeOption(newOpt: Opts, ecModel: GlobalModel, createdBySelf?: boolean, isInit?: boolean) {\n const componentType = this.mainType;\n if (!createdBySelf) {\n ecModel.eachSeries(function (seriesModel) {\n\n // mainType can be markPoint, markLine, markArea\n const markerOpt = seriesModel.get(\n this.mainType as any, true\n ) as Opts;\n\n let markerModel = inner(seriesModel)[componentType];\n if (!markerOpt || !markerOpt.data) {\n inner(seriesModel)[componentType] = null;\n return;\n }\n if (!markerModel) {\n if (isInit) {\n // Default label emphasis `position` and `show`\n fillLabel(markerOpt);\n }\n zrUtil.each(markerOpt.data, function (item) {\n // FIXME Overwrite fillLabel method ?\n if (item instanceof Array) {\n fillLabel(item[0]);\n fillLabel(item[1]);\n }\n else {\n fillLabel(item);\n }\n });\n\n markerModel = this.createMarkerModelFromSeries(\n markerOpt, this, ecModel\n );\n // markerModel = new ImplementedMarkerModel(\n // markerOpt, this, ecModel\n // );\n\n zrUtil.extend(markerModel, {\n mainType: this.mainType,\n // Use the same series index and name\n seriesIndex: seriesModel.seriesIndex,\n name: seriesModel.name,\n createdBySelf: true\n });\n\n markerModel.__hostSeries = seriesModel;\n }\n else {\n markerModel._mergeOption(markerOpt, ecModel, true);\n }\n inner(seriesModel)[componentType] = markerModel;\n }, this);\n }\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const value = this.getRawValue(dataIndex);\n const itemName = data.getName(dataIndex);\n\n return createTooltipMarkup('section', {\n header: this.name,\n blocks: [createTooltipMarkup('nameValue', {\n name: itemName,\n value: value,\n noName: !itemName,\n noValue: value == null\n })]\n });\n }\n\n getData(): SeriesData {\n return this._data as SeriesData;\n }\n\n setData(data: SeriesData) {\n this._data = data;\n }\n\n /**\n * Create slave marker model from series.\n */\n abstract createMarkerModelFromSeries(\n markerOpt: Opts,\n masterMarkerModel: MarkerModel,\n ecModel: GlobalModel\n ): MarkerModel;\n\n static getMarkerModelFromSeries(\n seriesModel: SeriesModel,\n // Support three types of markers. Strict check.\n componentType: 'markLine' | 'markPoint' | 'markArea'\n ) {\n return inner(seriesModel)[componentType];\n }\n}\n\ninterface MarkerModel extends DataFormatMixin {}\nzrUtil.mixin(MarkerModel, DataFormatMixin.prototype);\n\nexport default MarkerModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport {\n SymbolOptionMixin,\n ItemStyleOption,\n SeriesLabelOption,\n CallbackDataParams,\n StatesOptionMixin\n} from '../../util/types';\n\n// interface MarkPointCallbackDataParams extends CallbackDataParams {\n// componentType: 'markPoint'\n// componentSubType: never\n// }\n\ninterface MarkPointStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface MarkPointDataItemOption extends\n MarkPointStateOption, StatesOptionMixin,\n // TODO should not support callback in data\n SymbolOptionMixin,\n MarkerPositionOption {\n name: string\n}\n\nexport interface MarkPointOption extends MarkerOption,\n SymbolOptionMixin,\n StatesOptionMixin, MarkPointStateOption {\n mainType?: 'markPoint'\n\n precision?: number\n\n data?: MarkPointDataItemOption[]\n}\n\nclass MarkPointModel extends MarkerModel {\n\n static type = 'markPoint';\n type = MarkPointModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkPointOption,\n masterMarkerModel: MarkPointModel,\n ecModel: GlobalModel\n ) {\n return new MarkPointModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkPointOption = {\n zlevel: 0,\n z: 5,\n symbol: 'pin',\n symbolSize: 50,\n //symbolRotate: 0,\n //symbolOffset: [0, 0]\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'inside'\n },\n itemStyle: {\n borderWidth: 2\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n}\n\nexport default MarkPointModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as numberUtil from '../../util/number';\nimport {isDimensionStacked} from '../../data/helper/dataStackHelper';\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\nimport { MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport { indexOf, curry, clone, isArray } from 'zrender/src/core/util';\nimport Axis from '../../coord/Axis';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport { ScaleDataValue, ParsedValue, DimensionLoose, DimensionName } from '../../util/types';\n\ninterface MarkerAxisInfo {\n valueDataDim: DimensionName\n valueAxis: Axis\n baseAxis: Axis\n baseDataDim: DimensionName\n}\n\nfunction hasXOrY(item: MarkerPositionOption) {\n return !(isNaN(parseFloat(item.x as string)) && isNaN(parseFloat(item.y as string)));\n}\n\nfunction hasXAndY(item: MarkerPositionOption) {\n return !isNaN(parseFloat(item.x as string)) && !isNaN(parseFloat(item.y as string));\n}\n\nfunction markerTypeCalculatorWithExtent(\n markerType: MarkerStatisticType,\n data: SeriesData,\n otherDataDim: string,\n targetDataDim: string,\n otherCoordIndex: number,\n targetCoordIndex: number\n): [ParsedValue[], ParsedValue] {\n const coordArr: ParsedValue[] = [];\n\n const stacked = isDimensionStacked(data, targetDataDim /*, otherDataDim*/);\n const calcDataDim = stacked\n ? data.getCalculationInfo('stackResultDimension')\n : targetDataDim;\n\n const value = numCalculate(data, calcDataDim, markerType);\n\n const dataIndex = data.indicesOfNearest(calcDataDim, value)[0];\n coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);\n coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex);\n const coordArrValue = data.get(targetDataDim, dataIndex);\n // Make it simple, do not visit all stacked value to count precision.\n let precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));\n precision = Math.min(precision, 20);\n if (precision >= 0) {\n coordArr[targetCoordIndex] = +(coordArr[targetCoordIndex] as number).toFixed(precision);\n }\n\n return [coordArr, coordArrValue];\n}\n\n// TODO Specified percent\nconst markerTypeCalculator = {\n min: curry(markerTypeCalculatorWithExtent, 'min'),\n max: curry(markerTypeCalculatorWithExtent, 'max'),\n average: curry(markerTypeCalculatorWithExtent, 'average'),\n median: curry(markerTypeCalculatorWithExtent, 'median')\n};\n\n/**\n * Transform markPoint data item to format used in List by do the following\n * 1. Calculate statistic like `max`, `min`, `average`\n * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array\n */\nexport function dataTransform(\n seriesModel: SeriesModel,\n item: MarkerPositionOption\n) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n\n // 1. If not specify the position with pixel directly\n // 2. If `coord` is not a data array. Which uses `xAxis`,\n // `yAxis` to specify the coord on each dimension\n\n // parseFloat first because item.x and item.y can be percent string like '20%'\n if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {\n const dims = coordSys.dimensions;\n const axisInfo = getAxisInfo(item, data, coordSys, seriesModel);\n\n // Clone the option\n // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value\n item = clone(item);\n\n if (item.type\n && markerTypeCalculator[item.type]\n && axisInfo.baseAxis && axisInfo.valueAxis\n ) {\n const otherCoordIndex = indexOf(dims, axisInfo.baseAxis.dim);\n const targetCoordIndex = indexOf(dims, axisInfo.valueAxis.dim);\n\n const coordInfo = markerTypeCalculator[item.type](\n data, axisInfo.baseDataDim, axisInfo.valueDataDim,\n otherCoordIndex, targetCoordIndex\n );\n item.coord = coordInfo[0];\n // Force to use the value of calculated value.\n // let item use the value without stack.\n item.value = coordInfo[1];\n\n }\n else {\n // FIXME Only has one of xAxis and yAxis.\n const coord = [\n item.xAxis != null ? item.xAxis : item.radiusAxis,\n item.yAxis != null ? item.yAxis : item.angleAxis\n ];\n // Each coord support max, min, average\n for (let i = 0; i < 2; i++) {\n if (markerTypeCalculator[coord[i] as MarkerStatisticType]) {\n coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i] as MarkerStatisticType);\n }\n }\n item.coord = coord;\n }\n }\n return item;\n}\n\nexport function getAxisInfo(\n item: MarkerPositionOption,\n data: SeriesData,\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel\n) {\n const ret = {} as MarkerAxisInfo;\n\n if (item.valueIndex != null || item.valueDim != null) {\n ret.valueDataDim = item.valueIndex != null\n ? data.getDimension(item.valueIndex) : item.valueDim;\n ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim));\n ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n }\n else {\n ret.baseAxis = seriesModel.getBaseAxis();\n ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n ret.valueDataDim = data.mapDimension(ret.valueAxis.dim);\n }\n\n return ret;\n}\n\nfunction dataDimToCoordDim(seriesModel: SeriesModel, dataDim: DimensionLoose): DimensionName {\n const dimItem = seriesModel.getData().getDimensionInfo(dataDim);\n return dimItem && dimItem.coordDim;\n}\n\n/**\n * Filter data which is out of coordinateSystem range\n * [dataFilter description]\n */\nexport function dataFilter(\n // Currently only polar and cartesian has containData.\n coordSys: CoordinateSystem & {\n containData?(data: ScaleDataValue[]): boolean\n },\n item: MarkerPositionOption\n) {\n // Alwalys return true if there is no coordSys\n return (coordSys && coordSys.containData && item.coord && !hasXOrY(item))\n ? coordSys.containData(item.coord) : true;\n}\n\nexport function dimValueGetter(\n item: MarkerPositionOption,\n dimName: string,\n dataIndex: number,\n dimIndex: number\n) {\n // x, y, radius, angle\n if (dimIndex < 2) {\n return item.coord && item.coord[dimIndex] as ParsedValue;\n }\n return item.value;\n}\n\nexport function numCalculate(\n data: SeriesData,\n valueDataDim: string,\n type: MarkerStatisticType\n) {\n if (type === 'average') {\n let sum = 0;\n let count = 0;\n data.each(valueDataDim, function (val: number, idx) {\n if (!isNaN(val)) {\n sum += val;\n count++;\n }\n });\n return sum / count;\n }\n else if (type === 'median') {\n return data.getMedian(valueDataDim);\n }\n else {\n // max & min\n return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\nimport { HashMap, createHashMap, each } from 'zrender/src/core/util';\nimport MarkerModel from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { makeInner } from '../../util/model';\nimport SeriesModel from '../../model/Series';\nimport Group from 'zrender/src/graphic/Group';\nimport { enterBlur } from '../../util/states';\n\nconst inner = makeInner<{\n keep: boolean\n}, MarkerDraw>();\n\ninterface MarkerDraw {\n group: Group\n}\nabstract class MarkerView extends ComponentView {\n\n static type = 'marker';\n type = MarkerView.type;\n\n /**\n * Markline grouped by series\n */\n markerGroupMap: HashMap;\n\n init() {\n this.markerGroupMap = createHashMap();\n }\n\n render(markerModel: MarkerModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const markerGroupMap = this.markerGroupMap;\n markerGroupMap.each(function (item) {\n inner(item).keep = false;\n });\n\n ecModel.eachSeries(seriesModel => {\n const markerModel = MarkerModel.getMarkerModelFromSeries(\n seriesModel,\n this.type as 'markPoint' | 'markLine' | 'markArea'\n );\n markerModel && this.renderSeries(seriesModel, markerModel, ecModel, api);\n });\n\n markerGroupMap.each(item => {\n !inner(item).keep && this.group.remove(item.group);\n });\n }\n\n markKeep(drawGroup: MarkerDraw) {\n inner(drawGroup).keep = true;\n }\n\n blurSeries(seriesModelList: SeriesModel[]) {\n each(seriesModelList, seriesModel => {\n const markerModel = MarkerModel.getMarkerModelFromSeries(\n seriesModel,\n this.type as 'markPoint' | 'markLine' | 'markArea'\n );\n if (markerModel) {\n const data = markerModel.getData();\n data.eachItemGraphicEl(function (el) {\n if (el) {\n enterBlur(el);\n }\n });\n }\n });\n }\n\n abstract renderSeries(\n seriesModel: SeriesModel,\n markerModel: MarkerModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void;\n}\n\nexport default MarkerView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport SymbolDraw from '../../chart/helper/SymbolDraw';\nimport * as numberUtil from '../../util/number';\nimport SeriesData from '../../data/SeriesData';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport SeriesModel from '../../model/Series';\nimport MarkPointModel, {MarkPointDataItemOption} from './MarkPointModel';\nimport GlobalModel from '../../model/Global';\nimport MarkerModel from './MarkerModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { HashMap, isFunction, map, defaults, filter, curry, extend } from 'zrender/src/core/util';\nimport { getECData } from '../../util/innerStore';\nimport { getVisualFromData } from '../../visual/helper';\nimport { ZRColor } from '../../util/types';\n\nfunction updateMarkerLayout(\n mpData: SeriesData,\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n mpData.each(function (idx: number) {\n const itemModel = mpData.getItemModel(idx);\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n // Chart like bar may have there own marker positioning logic\n else if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n mpData.getValues(mpData.dimensions, idx)\n );\n }\n else if (coordSys) {\n const x = mpData.get(coordSys.dimensions[0], idx);\n const y = mpData.get(coordSys.dimensions[1], idx);\n point = coordSys.dataToPoint([x, y]);\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n\n mpData.setItemLayout(idx, point);\n });\n}\n\nclass MarkPointView extends MarkerView {\n\n static type = 'markPoint';\n type = MarkPointView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markPointModel: MarkPointModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const mpModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markPoint') as MarkPointModel;\n if (mpModel) {\n updateMarkerLayout(\n mpModel.getData(),\n seriesModel, api\n );\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n mpModel: MarkPointModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const symbolDrawMap = this.markerGroupMap;\n const symbolDraw = symbolDrawMap.get(seriesId)\n || symbolDrawMap.set(seriesId, new SymbolDraw());\n\n const mpData = createData(coordSys, seriesModel, mpModel);\n\n // FIXME\n mpModel.setData(mpData);\n\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n\n mpData.each(function (idx) {\n const itemModel = mpData.getItemModel(idx);\n let symbol = itemModel.getShallow('symbol');\n let symbolSize = itemModel.getShallow('symbolSize');\n let symbolRotate = itemModel.getShallow('symbolRotate');\n let symbolOffset = itemModel.getShallow('symbolOffset');\n const symbolKeepAspect = itemModel.getShallow('symbolKeepAspect');\n\n // TODO: refactor needed: single data item should not support callback function\n if (isFunction(symbol) || isFunction(symbolSize) || isFunction(symbolRotate) || isFunction(symbolOffset)) {\n const rawIdx = mpModel.getRawValue(idx);\n const dataParams = mpModel.getDataParams(idx);\n if (isFunction(symbol)) {\n symbol = symbol(rawIdx, dataParams);\n }\n if (isFunction(symbolSize)) {\n // FIXME \u8FD9\u91CC\u4E0D\u517C\u5BB9 ECharts 2.x\uFF0C2.x \u8C8C\u4F3C\u53C2\u6570\u662F\u6574\u4E2A\u6570\u636E\uFF1F\n symbolSize = symbolSize(rawIdx, dataParams);\n }\n if (isFunction(symbolRotate)) {\n symbolRotate = symbolRotate(rawIdx, dataParams);\n }\n if (isFunction(symbolOffset)) {\n symbolOffset = symbolOffset(rawIdx, dataParams);\n }\n }\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n const color = getVisualFromData(seriesData, 'color') as ZRColor;\n if (!style.fill) {\n style.fill = color;\n }\n\n mpData.setItemVisual(idx, {\n symbol: symbol,\n symbolSize: symbolSize,\n symbolRotate: symbolRotate,\n symbolOffset: symbolOffset,\n symbolKeepAspect: symbolKeepAspect,\n style\n });\n });\n\n // TODO Text are wrong\n symbolDraw.updateData(mpData);\n this.group.add(symbolDraw.group);\n\n // Set host model for tooltip\n // FIXME\n mpData.eachItemGraphicEl(function (el) {\n el.traverse(function (child) {\n getECData(child).dataModel = mpModel;\n });\n });\n\n this.markKeep(symbolDraw);\n\n symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createData(\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel,\n mpModel: MarkPointModel\n) {\n let coordDimsInfos;\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const info = seriesModel.getData().getDimensionInfo(\n seriesModel.getData().mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n const mpData = new SeriesData(coordDimsInfos, mpModel);\n let dataOpt = map(mpModel.get('data'), curry(\n markerHelper.dataTransform, seriesModel\n ));\n if (coordSys) {\n dataOpt = filter(\n dataOpt, curry(markerHelper.dataFilter, coordSys)\n );\n }\n\n mpData.initData(dataOpt, null,\n coordSys ? markerHelper.dimValueGetter : function (item: MarkPointDataItemOption) {\n return item.value;\n }\n );\n\n return mpData;\n}\n\nexport default MarkPointView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkPointModel from './MarkPointModel';\nimport MarkPointView from './MarkPointView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkPointModel);\n registers.registerComponentView(MarkPointView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markPoint')) {\n // Make sure markPoint component is enabled\n opt.markPoint = opt.markPoint || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport {\n LineStyleOption,\n SeriesLineLabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n StatesOptionMixin\n} from '../../util/types';\n\ninterface MarkLineStateOption {\n lineStyle?: LineStyleOption\n /**\n * itemStyle for symbol\n */\n itemStyle?: ItemStyleOption\n label?: SeriesLineLabelOption\n}\ninterface MarkLineDataItemOptionBase extends MarkLineStateOption, StatesOptionMixin {\n name?: string\n}\n\n// 1D markLine for horizontal or vertical\nexport interface MarkLine1DDataItemOption extends MarkLineDataItemOptionBase {\n\n // On cartesian coordinate system\n xAxis?: number | string\n yAxis?: number | string\n\n // Use statistic method\n type?: MarkerStatisticType\n /**\n * When using statistic method with type.\n * valueIndex and valueDim can be specify which dim the statistic is used on.\n */\n valueIndex?: number\n valueDim?: string\n\n /**\n * Symbol for both two ends\n */\n symbol?: string[] | string\n symbolSize?: number[] | number\n symbolRotate?: number[] | number\n symbolOffset?: number | string | (number | string)[]\n}\n\n// 2D markLine on any direction\ninterface MarkLine2DDataItemDimOption extends\n MarkLineDataItemOptionBase,\n SymbolOptionMixin,\n MarkerPositionOption {\n}\n\nexport type MarkLine2DDataItemOption = [\n // Start point\n MarkLine2DDataItemDimOption,\n // End point\n MarkLine2DDataItemDimOption\n];\n\nexport interface MarkLineOption extends MarkerOption,\n MarkLineStateOption, StatesOptionMixin {\n mainType?: 'markLine'\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n symbolRotate?: number[] | number\n symbolOffset?: number | string | (number | string)[]\n\n /**\n * Precision used on statistic method\n */\n precision?: number\n\n data?: (MarkLine1DDataItemOption | MarkLine2DDataItemOption)[]\n}\n\nclass MarkLineModel extends MarkerModel {\n\n static type = 'markLine';\n type = MarkLineModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkLineOption,\n masterMarkerModel: MarkLineModel,\n ecModel: GlobalModel\n ) {\n return new MarkLineModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkLineOption = {\n zlevel: 0,\n z: 5,\n\n symbol: ['circle', 'arrow'],\n symbolSize: [8, 16],\n\n //symbolRotate: 0,\n symbolOffset: 0,\n\n precision: 2,\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'end',\n distance: 5\n },\n lineStyle: {\n type: 'dashed'\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n width: 3\n }\n },\n animationEasing: 'linear'\n };\n}\n\nexport default MarkLineModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesData from '../../data/SeriesData';\nimport * as numberUtil from '../../util/number';\nimport * as markerHelper from './markerHelper';\nimport LineDraw from '../../chart/helper/LineDraw';\nimport MarkerView from './MarkerView';\nimport {getStackedDimension} from '../../data/helper/dataStackHelper';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkLineModel, { MarkLine2DDataItemOption, MarkLineOption } from './MarkLineModel';\nimport { ScaleDataValue, ColorString } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { getECData } from '../../util/innerStore';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport GlobalModel from '../../model/Global';\nimport MarkerModel from './MarkerModel';\nimport {\n isArray,\n retrieve,\n retrieve2,\n clone,\n extend,\n logError,\n merge,\n map,\n defaults,\n curry,\n filter,\n HashMap\n} from 'zrender/src/core/util';\nimport { makeInner } from '../../util/model';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport { getVisualFromData } from '../../visual/helper';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\n// Item option for configuring line and each end of symbol.\n// Line option. be merged from configuration of two ends.\ntype MarkLineMergedItemOption = MarkLine2DDataItemOption[number];\n\nconst inner = makeInner<{\n // from data\n from: SeriesData\n // to data\n to: SeriesData\n}, MarkLineModel>();\n\nconst markLineTransform = function (\n seriesModel: SeriesModel,\n coordSys: CoordinateSystem,\n mlModel: MarkLineModel,\n item: MarkLineOption['data'][number]\n) {\n const data = seriesModel.getData();\n\n let itemArray: MarkLineMergedItemOption[];\n if (!isArray(item)) {\n // Special type markLine like 'min', 'max', 'average', 'median'\n const mlType = item.type;\n if (\n mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median'\n // In case\n // data: [{\n // yAxis: 10\n // }]\n || (item.xAxis != null || item.yAxis != null)\n ) {\n\n let valueAxis;\n let value;\n\n if (item.yAxis != null || item.xAxis != null) {\n valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x');\n value = retrieve(item.yAxis, item.xAxis);\n }\n else {\n const axisInfo = markerHelper.getAxisInfo(item, data, coordSys, seriesModel);\n valueAxis = axisInfo.valueAxis;\n const valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);\n value = markerHelper.numCalculate(data, valueDataDim, mlType);\n }\n const valueIndex = valueAxis.dim === 'x' ? 0 : 1;\n const baseIndex = 1 - valueIndex;\n\n // Normized to 2d data with start and end point\n const mlFrom = clone(item) as MarkLine2DDataItemOption[number];\n const mlTo = {\n coord: []\n } as MarkLine2DDataItemOption[number];\n\n mlFrom.type = null;\n\n mlFrom.coord = [];\n mlFrom.coord[baseIndex] = -Infinity;\n mlTo.coord[baseIndex] = Infinity;\n\n const precision = mlModel.get('precision');\n if (precision >= 0 && typeof value === 'number') {\n value = +value.toFixed(Math.min(precision, 20));\n }\n\n mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;\n\n itemArray = [mlFrom, mlTo, { // Extra option for tooltip and label\n type: mlType,\n valueIndex: item.valueIndex,\n // Force to use the value of calculated value.\n value: value\n }];\n }\n else {\n // Invalid data\n if (__DEV__) {\n logError('Invalid markLine data.');\n }\n itemArray = [];\n }\n }\n else {\n itemArray = item;\n }\n\n const normalizedItem = [\n markerHelper.dataTransform(seriesModel, itemArray[0]),\n markerHelper.dataTransform(seriesModel, itemArray[1]),\n extend({}, itemArray[2])\n ];\n\n // Avoid line data type is extended by from(to) data type\n normalizedItem[2].type = normalizedItem[2].type || null;\n\n // Merge from option and to option into line option\n merge(normalizedItem[2], normalizedItem[0]);\n merge(normalizedItem[2], normalizedItem[1]);\n\n return normalizedItem;\n};\n\nfunction isInifinity(val: ScaleDataValue) {\n return !isNaN(val as number) && !isFinite(val as number);\n}\n\n// If a markLine has one dim\nfunction ifMarkLineHasOnlyDim(\n dimIndex: number,\n fromCoord: ScaleDataValue[],\n toCoord: ScaleDataValue[],\n coordSys: CoordinateSystem\n) {\n const otherDimIndex = 1 - dimIndex;\n const dimName = coordSys.dimensions[dimIndex];\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex])\n && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);\n}\n\nfunction markLineFilter(\n coordSys: CoordinateSystem,\n item: MarkLine2DDataItemOption\n) {\n if (coordSys.type === 'cartesian2d') {\n const fromCoord = item[0].coord;\n const toCoord = item[1].coord;\n // In case\n // {\n // markLine: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (\n fromCoord && toCoord\n && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys)\n || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))\n ) {\n return true;\n }\n }\n return markerHelper.dataFilter(coordSys, item[0])\n && markerHelper.dataFilter(coordSys, item[1]);\n}\n\nfunction updateSingleMarkerEndLayout(\n data: SeriesData,\n idx: number,\n isFrom: boolean,\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n const itemModel = data.getItemModel(idx);\n\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n data.getValues(data.dimensions, idx)\n );\n }\n else {\n const dims = coordSys.dimensions;\n const x = data.get(dims[0], idx);\n const y = data.get(dims[1], idx);\n point = coordSys.dataToPoint([x, y]);\n }\n // Expand line to the edge of grid if value on one axis is Inifnity\n // In case\n // markLine: {\n // data: [{\n // yAxis: 2\n // // or\n // type: 'average'\n // }]\n // }\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n const xAxis = coordSys.getAxis('x') as Axis2D;\n const yAxis = coordSys.getAxis('y') as Axis2D;\n const dims = coordSys.dimensions;\n if (isInifinity(data.get(dims[0], idx))) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);\n }\n else if (isInifinity(data.get(dims[1], idx))) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);\n }\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n data.setItemLayout(idx, point);\n}\n\nclass MarkLineView extends MarkerView {\n\n static type = 'markLine';\n type = MarkLineView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markLineModel: MarkLineModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const mlModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine') as MarkLineModel;\n if (mlModel) {\n const mlData = mlModel.getData();\n const fromData = inner(mlModel).from;\n const toData = inner(mlModel).to;\n // Update visual and layout of from symbol and to symbol\n fromData.each(function (idx) {\n updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api);\n updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api);\n });\n // Update layout of line\n mlData.each(function (idx) {\n mlData.setItemLayout(idx, [\n fromData.getItemLayout(idx),\n toData.getItemLayout(idx)\n ]);\n });\n\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n mlModel: MarkLineModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const lineDrawMap = this.markerGroupMap;\n const lineDraw = lineDrawMap.get(seriesId)\n || lineDrawMap.set(seriesId, new LineDraw());\n this.group.add(lineDraw.group);\n\n const mlData = createList(coordSys, seriesModel, mlModel);\n\n const fromData = mlData.from;\n const toData = mlData.to;\n const lineData = mlData.line as SeriesData;\n\n inner(mlModel).from = fromData;\n inner(mlModel).to = toData;\n // Line data for tooltip and formatter\n mlModel.setData(lineData);\n\n // TODO\n // Functionally, `symbolSize` & `symbolOffset` can also be 2D array now.\n // But the related logic and type definition are not finished yet.\n // Finish it if required\n let symbolType = mlModel.get('symbol');\n let symbolSize = mlModel.get('symbolSize');\n let symbolRotate = mlModel.get('symbolRotate');\n let symbolOffset = mlModel.get('symbolOffset');\n // TODO: support callback function like markPoint\n if (!isArray(symbolType)) {\n symbolType = [symbolType, symbolType];\n }\n if (!isArray(symbolSize)) {\n symbolSize = [symbolSize, symbolSize];\n }\n if (!isArray(symbolRotate)) {\n symbolRotate = [symbolRotate, symbolRotate];\n }\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n // Update visual and layout of from symbol and to symbol\n mlData.from.each(function (idx) {\n updateDataVisualAndLayout(fromData, idx, true);\n updateDataVisualAndLayout(toData, idx, false);\n });\n\n // Update visual and layout of line\n lineData.each(function (idx) {\n const lineStyle = lineData.getItemModel(idx)\n .getModel('lineStyle').getLineStyle();\n // lineData.setItemVisual(idx, {\n // color: lineColor || fromData.getItemVisual(idx, 'color')\n // });\n lineData.setItemLayout(idx, [\n fromData.getItemLayout(idx),\n toData.getItemLayout(idx)\n ]);\n\n if (lineStyle.stroke == null) {\n lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill;\n }\n\n lineData.setItemVisual(idx, {\n fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'),\n fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'),\n fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'),\n fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize') as number,\n fromSymbol: fromData.getItemVisual(idx, 'symbol'),\n toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'),\n toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'),\n toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'),\n toSymbolSize: toData.getItemVisual(idx, 'symbolSize') as number,\n toSymbol: toData.getItemVisual(idx, 'symbol'),\n style: lineStyle\n });\n });\n\n lineDraw.updateData(lineData);\n\n // Set host model for tooltip\n // FIXME\n mlData.line.eachItemGraphicEl(function (el, idx) {\n el.traverse(function (child) {\n getECData(child).dataModel = mlModel;\n });\n });\n\n function updateDataVisualAndLayout(\n data: SeriesData,\n idx: number,\n isFrom: boolean\n ) {\n const itemModel = data.getItemModel(idx);\n\n updateSingleMarkerEndLayout(\n data, idx, isFrom, seriesModel, api\n );\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n if (style.fill == null) {\n style.fill = getVisualFromData(seriesData, 'color') as ColorString;\n }\n\n data.setItemVisual(idx, {\n symbolKeepAspect: itemModel.get('symbolKeepAspect'),\n // `0` should be considered as a valid value, so use `retrieve2` instead of `||`\n symbolOffset: retrieve2(\n itemModel.get('symbolOffset', true),\n (symbolOffset as (string | number)[])[isFrom ? 0 : 1]\n ),\n symbolRotate: retrieve2(\n itemModel.get('symbolRotate', true),\n (symbolRotate as number[])[isFrom ? 0 : 1]\n ),\n // TODO: when 2d array is supported, it should ignore parent\n symbolSize: retrieve2(\n itemModel.get('symbolSize'),\n (symbolSize as number[])[isFrom ? 0 : 1]\n ),\n symbol: retrieve2(\n itemModel.get('symbol', true),\n (symbolType as string[])[isFrom ? 0 : 1]\n ),\n style\n });\n }\n\n this.markKeep(lineDraw);\n\n lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createList(coordSys: CoordinateSystem, seriesModel: SeriesModel, mlModel: MarkLineModel) {\n\n let coordDimsInfos;\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const info = seriesModel.getData().getDimensionInfo(\n seriesModel.getData().mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n const fromData = new SeriesData(coordDimsInfos, mlModel);\n const toData = new SeriesData(coordDimsInfos, mlModel);\n // No dimensions\n const lineData = new SeriesData([], mlModel);\n\n let optData = map(mlModel.get('data'), curry(\n markLineTransform, seriesModel, coordSys, mlModel\n ));\n if (coordSys) {\n optData = filter(\n optData, curry(markLineFilter, coordSys)\n );\n }\n const dimValueGetter = coordSys ? markerHelper.dimValueGetter : function (item: MarkLineMergedItemOption) {\n return item.value;\n };\n fromData.initData(\n map(optData, function (item) {\n return item[0];\n }),\n null,\n dimValueGetter\n );\n toData.initData(\n map(optData, function (item) {\n return item[1];\n }),\n null,\n dimValueGetter\n );\n lineData.initData(\n map(optData, function (item) {\n return item[2];\n })\n );\n lineData.hasItemOption = true;\n\n return {\n from: fromData,\n to: toData,\n line: lineData\n };\n}\n\nexport default MarkLineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkLineModel from './MarkLineModel';\nimport MarkLineView from './MarkLineView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkLineModel);\n registers.registerComponentView(MarkLineView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markLine')) {\n // Make sure markLine component is enabled\n opt.markLine = opt.markLine || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport { SeriesLabelOption, ItemStyleOption, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\n\ninterface MarkAreaStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface MarkAreaDataItemOptionBase extends MarkAreaStateOption, StatesOptionMixin {\n name?: string\n}\n\n// 1D markArea for horizontal or vertical. Similar to markLine\nexport interface MarkArea1DDataItemOption extends MarkAreaDataItemOptionBase {\n\n xAxis?: number\n yAxis?: number\n\n type?: MarkerStatisticType\n\n valueIndex?: number\n valueDim?: string\n}\n\n// 2D markArea on any direction. Similar to markLine\ninterface MarkArea2DDataItemDimOption extends MarkAreaDataItemOptionBase, MarkerPositionOption {\n}\n\n\nexport type MarkArea2DDataItemOption = [\n // Start point\n MarkArea2DDataItemDimOption,\n // End point\n MarkArea2DDataItemDimOption\n];\n\nexport interface MarkAreaOption extends MarkerOption, MarkAreaStateOption, StatesOptionMixin {\n mainType?: 'markArea'\n\n precision?: number\n\n data?: (MarkArea1DDataItemOption | MarkArea2DDataItemOption)[]\n}\n\nclass MarkAreaModel extends MarkerModel {\n\n static type = 'markArea';\n type = MarkAreaModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkAreaOption,\n masterMarkerModel: MarkAreaModel,\n ecModel: GlobalModel\n ) {\n return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkAreaOption = {\n zlevel: 0,\n // PENDING\n z: 1,\n tooltip: {\n trigger: 'item'\n },\n // markArea should fixed on the coordinate system\n animation: false,\n label: {\n show: true,\n position: 'top'\n },\n itemStyle: {\n // color and borderColor default to use color from series\n // color: 'auto'\n // borderColor: 'auto'\n borderWidth: 0\n },\n\n emphasis: {\n label: {\n show: true,\n position: 'top'\n }\n }\n };\n}\n\nexport default MarkAreaModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Optimize on polar\n\nimport * as colorUtil from 'zrender/src/tool/color';\nimport SeriesData from '../../data/SeriesData';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { retrieve, mergeAll, map, curry, filter, HashMap, extend } from 'zrender/src/core/util';\nimport { ScaleDataValue, ParsedValue, ZRColor } from '../../util/types';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkAreaModel, { MarkArea2DDataItemOption } from './MarkAreaModel';\nimport SeriesModel from '../../model/Series';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesDimensionDefine from '../../data/SeriesDimensionDefine';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\ninterface MarkAreaDrawGroup {\n group: graphic.Group\n}\n\nconst inner = makeInner<{\n data: SeriesData\n}, MarkAreaDrawGroup>();\n\n// Merge two ends option into one.\ntype MarkAreaMergedItemOption = Omit & {\n coord: MarkArea2DDataItemOption[number]['coord'][]\n x0: number | string\n y0: number | string\n x1: number | string\n y1: number | string\n};\n\nconst markAreaTransform = function (\n seriesModel: SeriesModel,\n coordSys: CoordinateSystem,\n maModel: MarkAreaModel,\n item: MarkArea2DDataItemOption\n): MarkAreaMergedItemOption {\n const lt = markerHelper.dataTransform(seriesModel, item[0]);\n const rb = markerHelper.dataTransform(seriesModel, item[1]);\n\n // FIXME make sure lt is less than rb\n const ltCoord = lt.coord;\n const rbCoord = rb.coord;\n ltCoord[0] = retrieve(ltCoord[0], -Infinity);\n ltCoord[1] = retrieve(ltCoord[1], -Infinity);\n\n rbCoord[0] = retrieve(rbCoord[0], Infinity);\n rbCoord[1] = retrieve(rbCoord[1], Infinity);\n\n // Merge option into one\n const result: MarkAreaMergedItemOption = mergeAll([{}, lt, rb]);\n\n result.coord = [\n lt.coord, rb.coord\n ];\n result.x0 = lt.x;\n result.y0 = lt.y;\n result.x1 = rb.x;\n result.y1 = rb.y;\n return result;\n};\n\nfunction isInifinity(val: ScaleDataValue) {\n return !isNaN(val as number) && !isFinite(val as number);\n}\n\n// If a markArea has one dim\nfunction ifMarkAreaHasOnlyDim(\n dimIndex: number,\n fromCoord: ScaleDataValue[],\n toCoord: ScaleDataValue[],\n coordSys: CoordinateSystem\n) {\n const otherDimIndex = 1 - dimIndex;\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]);\n}\n\nfunction markAreaFilter(coordSys: CoordinateSystem, item: MarkAreaMergedItemOption) {\n const fromCoord = item.coord[0];\n const toCoord = item.coord[1];\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // In case\n // {\n // markArea: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (\n fromCoord && toCoord\n && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys)\n || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))\n ) {\n return true;\n }\n }\n return markerHelper.dataFilter(coordSys, {\n coord: fromCoord,\n x: item.x0,\n y: item.y0\n })\n || markerHelper.dataFilter(coordSys, {\n coord: toCoord,\n x: item.x1,\n y: item.y1\n });\n}\n\n// dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']\nfunction getSingleMarkerEndPoint(\n data: SeriesData,\n idx: number,\n dims: typeof dimPermutations[number],\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n const itemModel = data.getItemModel(idx);\n\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n data.getValues(dims, idx)\n );\n }\n else {\n const x = data.get(dims[0], idx) as number;\n const y = data.get(dims[1], idx) as number;\n const pt = [x, y];\n coordSys.clampData && coordSys.clampData(pt, pt);\n point = coordSys.dataToPoint(pt, true);\n }\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n const xAxis = coordSys.getAxis('x') as Axis2D;\n const yAxis = coordSys.getAxis('y') as Axis2D;\n const x = data.get(dims[0], idx) as number;\n const y = data.get(dims[1], idx) as number;\n if (isInifinity(x)) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n }\n else if (isInifinity(y)) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n }\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n return point;\n}\n\nconst dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']] as const;\n\nclass MarkAreaView extends MarkerView {\n\n static type = 'markArea';\n type = MarkAreaView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markAreaModel: MarkAreaModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const maModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markArea') as MarkAreaModel;\n if (maModel) {\n const areaData = maModel.getData();\n areaData.each(function (idx) {\n const points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n // Layout\n areaData.setItemLayout(idx, points);\n const el = areaData.getItemGraphicEl(idx) as graphic.Polygon;\n el.setShape('points', points);\n });\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n maModel: MarkAreaModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const areaGroupMap = this.markerGroupMap;\n const polygonGroup = areaGroupMap.get(seriesId)\n || areaGroupMap.set(seriesId, {group: new graphic.Group()});\n\n this.group.add(polygonGroup.group);\n this.markKeep(polygonGroup);\n\n const areaData = createList(coordSys, seriesModel, maModel);\n\n // Line data for tooltip and formatter\n maModel.setData(areaData);\n\n // Update visual and layout of line\n areaData.each(function (idx) {\n // Layout\n const points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n const xAxisScale = coordSys.getAxis('x').scale;\n const yAxisScale = coordSys.getAxis('y').scale;\n const xAxisExtent = xAxisScale.getExtent();\n const yAxisExtent = yAxisScale.getExtent();\n const xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))];\n const yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))];\n numberUtil.asc(xPointExtent);\n numberUtil.asc(yPointExtent);\n const overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0]\n || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]);\n // If none of the area is inside coordSys, allClipped is set to be true\n // in layout so that label will not be displayed. See #12591\n const allClipped = !overlapped;\n areaData.setItemLayout(idx, {\n points: points,\n allClipped: allClipped\n });\n\n\n const style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle();\n const color = getVisualFromData(seriesData, 'color') as ZRColor;\n if (!style.fill) {\n style.fill = color;\n if (typeof style.fill === 'string') {\n style.fill = colorUtil.modifyAlpha(style.fill, 0.4);\n }\n }\n if (!style.stroke) {\n style.stroke = color;\n }\n // Visual\n areaData.setItemVisual(idx, 'style', style);\n });\n\n\n areaData.diff(inner(polygonGroup).data)\n .add(function (idx) {\n const layout = areaData.getItemLayout(idx);\n if (!layout.allClipped) {\n const polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n areaData.setItemGraphicEl(idx, polygon);\n polygonGroup.group.add(polygon);\n }\n })\n .update(function (newIdx, oldIdx) {\n let polygon = inner(polygonGroup).data.getItemGraphicEl(oldIdx) as graphic.Polygon;\n const layout = areaData.getItemLayout(newIdx);\n if (!layout.allClipped) {\n if (polygon) {\n graphic.updateProps(polygon, {\n shape: {\n points: layout.points\n }\n }, maModel, newIdx);\n }\n else {\n polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n }\n areaData.setItemGraphicEl(newIdx, polygon);\n polygonGroup.group.add(polygon);\n }\n else if (polygon) {\n polygonGroup.group.remove(polygon);\n }\n })\n .remove(function (idx) {\n const polygon = inner(polygonGroup).data.getItemGraphicEl(idx);\n polygonGroup.group.remove(polygon);\n })\n .execute();\n\n areaData.eachItemGraphicEl(function (polygon: graphic.Polygon, idx) {\n const itemModel = areaData.getItemModel(idx);\n const style = areaData.getItemVisual(idx, 'style');\n polygon.useStyle(areaData.getItemVisual(idx, 'style'));\n\n setLabelStyle(\n polygon, getLabelStatesModels(itemModel),\n {\n labelFetcher: maModel,\n labelDataIndex: idx,\n defaultText: areaData.getName(idx) || '',\n inheritColor: typeof style.fill === 'string'\n ? colorUtil.modifyAlpha(style.fill, 1) : '#000'\n }\n );\n\n setStatesStylesFromModel(polygon, itemModel);\n\n enableHoverEmphasis(polygon);\n\n getECData(polygon).dataModel = maModel;\n });\n\n inner(polygonGroup).data = areaData;\n\n polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createList(\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel,\n maModel: MarkAreaModel\n) {\n\n let coordDimsInfos: SeriesDimensionDefine[];\n let areaData: SeriesData;\n const dims = ['x0', 'y0', 'x1', 'y1'];\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const data = seriesModel.getData();\n const info = data.getDimensionInfo(\n data.mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n areaData = new SeriesData(map(dims, function (dim, idx) {\n return {\n name: dim,\n type: coordDimsInfos[idx % 2].type\n };\n }), maModel);\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n areaData = new SeriesData(coordDimsInfos, maModel);\n }\n\n let optData = map(maModel.get('data'), curry(\n markAreaTransform, seriesModel, coordSys, maModel\n ));\n if (coordSys) {\n optData = filter(\n optData, curry(markAreaFilter, coordSys)\n );\n }\n\n const dimValueGetter = coordSys ? function (\n item: MarkAreaMergedItemOption,\n dimName: string,\n dataIndex: number,\n dimIndex: number\n ) {\n // TODO should convert to ParsedValue?\n return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2] as ParsedValue;\n } : function (item: MarkAreaMergedItemOption) {\n return item.value;\n };\n areaData.initData(optData, null, dimValueGetter);\n areaData.hasItemOption = true;\n return areaData;\n}\n\nexport default MarkAreaView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkAreaModel from './MarkAreaModel';\nimport MarkAreaView from './MarkAreaView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkAreaModel);\n registers.registerComponentView(MarkAreaView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markArea')) {\n // Make sure markArea component is enabled\n opt.markArea = opt.markArea || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from '../../model/Model';\nimport {isNameSpecified} from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin,\n ColorString,\n LabelOption,\n LayoutOrient,\n CommonTooltipOption,\n ItemStyleOption,\n LineStyleOption\n} from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GlobalModel from '../../model/Global';\nimport { ItemStyleProps } from '../../model/mixin/itemStyle';\nimport { LineStyleProps } from './../../model/mixin/lineStyle';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\n\ntype LegendDefaultSelectorOptionsProps = {\n type: string;\n title: string;\n};\nconst getDefaultSelectorOptions = function (ecModel: GlobalModel, type: string): LegendDefaultSelectorOptionsProps {\n if (type === 'all') {\n return {\n type: 'all',\n title: ecModel.getLocaleModel().get(['legend', 'selector', 'all'])\n };\n }\n else if (type === 'inverse') {\n return {\n type: 'inverse',\n title: ecModel.getLocaleModel().get(['legend', 'selector', 'inverse'])\n };\n }\n};\n\ntype SelectorType = 'all' | 'inverse';\nexport interface LegendSelectorButtonOption {\n type?: SelectorType\n title?: string\n}\n\n/**\n * T: the type to be extended\n * ET: extended type for keys of T\n * ST: special type for T to be extended\n */\ntype ExtendPropertyType = {\n [key in keyof T]: key extends keyof ST ? T[key] | ET | ST[key] : T[key] | ET\n};\n\nexport interface LegendItemStyleOption extends ExtendPropertyType {}\n\nexport interface LegendLineStyleOption extends ExtendPropertyType {\n inactiveColor?: ColorString\n inactiveWidth?: number\n}\n\nexport interface LegendStyleOption {\n /**\n * Icon of the legend items.\n * @default 'roundRect'\n */\n icon?: string\n\n /**\n * Color when legend item is not selected\n */\n inactiveColor?: ColorString\n /**\n * Border color when legend item is not selected\n */\n inactiveBorderColor?: ColorString\n /**\n * Border color when legend item is not selected\n */\n inactiveBorderWidth?: number | 'auto'\n\n /**\n * Legend label formatter\n */\n formatter?: string | ((name: string) => string)\n\n itemStyle?: LegendItemStyleOption\n\n lineStyle?: LegendLineStyleOption\n\n textStyle?: LabelOption\n\n symbolRotate?: number | 'inherit'\n}\n\ninterface DataItem extends LegendStyleOption {\n name?: string\n icon?: string\n textStyle?: LabelOption\n\n // TODO: TYPE tooltip\n tooltip?: unknown\n}\n\nexport interface LegendTooltipFormatterParams {\n componentType: 'legend'\n legendIndex: number\n name: string\n $vars: ['name']\n}\n\nexport interface LegendIconParams {\n itemWidth: number,\n itemHeight: number,\n /**\n * symbolType is from legend.icon, legend.data.icon, or series visual\n */\n icon: string,\n iconRotate: number | 'inherit',\n itemStyle: PathStyleProps,\n lineStyle: LineStyleProps\n}\n\nexport interface LegendSymbolStyleOption {\n itemStyle?: ItemStyleProps,\n lineStyle?: LineStyleProps\n}\n\nexport interface LegendOption extends ComponentOption, LegendStyleOption,\n BoxLayoutOptionMixin, BorderOptionMixin\n{\n\n mainType?: 'legend'\n\n show?: boolean\n\n orient?: LayoutOrient\n\n align?: 'auto' | 'left' | 'right'\n\n backgroundColor?: ColorString\n /**\n * Border radius of background rect\n * @default 0\n */\n borderRadius?: number | number[]\n\n /**\n * Padding between legend item and border.\n * Support to be a single number or an array.\n * @default 5\n */\n padding?: number | number[]\n /**\n * Gap between each legend item.\n * @default 10\n */\n itemGap?: number\n /**\n * Width of legend symbol\n */\n itemWidth?: number\n /**\n * Height of legend symbol\n */\n itemHeight?: number\n\n selectedMode?: boolean | 'single' | 'multiple'\n /**\n * selected map of each item. Default to be selected if item is not in the map\n */\n selected?: Dictionary\n\n /**\n * Buttons for all select or inverse select.\n * @example\n * selector: [{type: 'all or inverse', title: xxx}]\n * selector: true\n * selector: ['all', 'inverse']\n */\n selector?: (LegendSelectorButtonOption | SelectorType)[] | boolean\n\n selectorLabel?: LabelOption\n\n emphasis?: {\n selectorLabel?: LabelOption\n }\n\n /**\n * Position of selector buttons.\n */\n selectorPosition?: 'auto' | 'start' | 'end'\n /**\n * Gap between each selector button\n */\n selectorItemGap?: number\n /**\n * Gap between selector buttons group and legend main items.\n */\n selectorButtonGap?: number\n\n data?: (string | DataItem)[]\n\n /**\n * Tooltip option\n */\n tooltip?: CommonTooltipOption\n\n}\n\nclass LegendModel extends ComponentModel {\n static type = 'legend.plain';\n type = LegendModel.type;\n\n static readonly dependencies = ['series'];\n\n readonly layoutMode = {\n type: 'box',\n // legend.width/height are maxWidth/maxHeight actually,\n // whereas realy width/height is calculated by its content.\n // (Setting {left: 10, right: 10} does not make sense).\n // So consider the case:\n // `setOption({legend: {left: 10});`\n // then `setOption({legend: {right: 10});`\n // The previous `left` should be cleared by setting `ignoreSize`.\n ignoreSize: true\n } as const;\n\n\n private _data: Model[];\n private _availableNames: string[];\n\n init(option: Ops, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n\n option.selected = option.selected || {};\n this._updateSelector(option);\n }\n\n mergeOption(option: Ops, ecModel: GlobalModel) {\n super.mergeOption(option, ecModel);\n this._updateSelector(option);\n }\n\n _updateSelector(option: Ops) {\n let selector = option.selector;\n const {ecModel} = this;\n if (selector === true) {\n selector = option.selector = ['all', 'inverse'];\n }\n if (zrUtil.isArray(selector)) {\n zrUtil.each(selector, function (item, index) {\n zrUtil.isString(item) && (item = {type: item});\n (selector as LegendSelectorButtonOption[])[index] = zrUtil.merge(\n item, getDefaultSelectorOptions(ecModel, item.type)\n );\n });\n }\n }\n\n optionUpdated() {\n this._updateData(this.ecModel);\n\n const legendData = this._data;\n\n // If selectedMode is single, try to select one\n if (legendData[0] && this.get('selectedMode') === 'single') {\n let hasSelected = false;\n // If has any selected in option.selected\n for (let i = 0; i < legendData.length; i++) {\n const name = legendData[i].get('name');\n if (this.isSelected(name)) {\n // Force to unselect others\n this.select(name);\n hasSelected = true;\n break;\n }\n }\n // Try select the first if selectedMode is single\n !hasSelected && this.select(legendData[0].get('name'));\n }\n }\n\n _updateData(ecModel: GlobalModel) {\n let potentialData: string[] = [];\n let availableNames: string[] = [];\n\n ecModel.eachRawSeries(function (seriesModel) {\n const seriesName = seriesModel.name;\n availableNames.push(seriesName);\n let isPotential;\n\n if (seriesModel.legendVisualProvider) {\n const provider = seriesModel.legendVisualProvider;\n const names = provider.getAllNames();\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n availableNames = availableNames.concat(names);\n }\n\n if (names.length) {\n potentialData = potentialData.concat(names);\n }\n else {\n isPotential = true;\n }\n }\n else {\n isPotential = true;\n }\n\n if (isPotential && isNameSpecified(seriesModel)) {\n potentialData.push(seriesModel.name);\n }\n });\n\n /**\n * @type {Array.}\n * @private\n */\n this._availableNames = availableNames;\n\n // If legend.data not specified in option, use availableNames as data,\n // which is convinient for user preparing option.\n const rawData = this.get('data') || potentialData;\n\n const legendData = zrUtil.map(rawData, function (dataItem) {\n // Can be string or number\n if (typeof dataItem === 'string' || typeof dataItem === 'number') {\n dataItem = {\n name: dataItem\n };\n }\n return new Model(dataItem, this, this.ecModel);\n }, this);\n\n /**\n * @type {Array.}\n * @private\n */\n this._data = legendData;\n }\n\n getData() {\n return this._data;\n }\n\n select(name: string) {\n const selected = this.option.selected;\n const selectedMode = this.get('selectedMode');\n if (selectedMode === 'single') {\n const data = this._data;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name')] = false;\n });\n }\n selected[name] = true;\n }\n\n unSelect(name: string) {\n if (this.get('selectedMode') !== 'single') {\n this.option.selected[name] = false;\n }\n }\n\n toggleSelected(name: string) {\n const selected = this.option.selected;\n // Default is true\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n this[selected[name] ? 'unSelect' : 'select'](name);\n }\n\n allSelect() {\n const data = this._data;\n const selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name', true)] = true;\n });\n }\n\n inverseSelect() {\n const data = this._data;\n const selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n const name = dataItem.get('name', true);\n // Initially, default value is true\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n selected[name] = !selected[name];\n });\n }\n\n isSelected(name: string) {\n const selected = this.option.selected;\n return !(selected.hasOwnProperty(name) && !selected[name])\n && zrUtil.indexOf(this._availableNames, name) >= 0;\n }\n\n getOrient(): {index: 0, name: 'horizontal'}\n getOrient(): {index: 1, name: 'vertical'}\n getOrient() {\n return this.get('orient') === 'vertical'\n ? {index: 1, name: 'vertical'}\n : {index: 0, name: 'horizontal'};\n }\n\n static defaultOption: LegendOption = {\n zlevel: 0,\n z: 4,\n show: true,\n\n orient: 'horizontal',\n\n left: 'center',\n // right: 'center',\n top: 0,\n // bottom: null,\n\n align: 'auto',\n\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n itemWidth: 25,\n itemHeight: 14,\n symbolRotate: 'inherit',\n\n inactiveColor: '#ccc',\n inactiveBorderColor: '#ccc',\n inactiveBorderWidth: 'auto',\n\n itemStyle: {\n color: 'inherit',\n opacity: 'inherit',\n decal: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n borderColor: 'inherit',\n borderWidth: 'auto',\n borderCap: 'inherit',\n borderJoin: 'inherit',\n borderDashOffset: 'inherit',\n borderMiterLimit: 'inherit'\n },\n\n lineStyle: {\n width: 'auto',\n color: 'inherit',\n inactiveColor: '#ccc',\n inactiveWidth: 2,\n opacity: 'inherit',\n type: 'inherit',\n cap: 'inherit',\n join: 'inherit',\n dashOffset: 'inherit',\n miterLimit: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0\n },\n\n textStyle: {\n color: '#333'\n },\n selectedMode: true,\n\n selector: false,\n\n selectorLabel: {\n show: true,\n borderRadius: 10,\n padding: [3, 5, 3, 5],\n fontSize: 12,\n fontFamily: ' sans-serif',\n color: '#666',\n borderWidth: 1,\n borderColor: '#666'\n },\n\n emphasis: {\n selectorLabel: {\n show: true,\n color: '#eee',\n backgroundColor: '#666'\n }\n },\n\n selectorPosition: 'auto',\n\n selectorItemGap: 7,\n\n selectorButtonGap: 10,\n\n tooltip: {\n show: false\n }\n };\n}\n\nexport default LegendModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { DisplayableState } from 'zrender/src/graphic/Displayable';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { parse, stringify } from 'zrender/src/tool/color';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport {setLabelStyle, createTextStyle} from '../../label/labelStyle';\nimport {makeBackground} from '../helper/listComponent';\nimport * as layoutUtil from '../../util/layout';\nimport ComponentView from '../../view/Component';\nimport LegendModel, {\n LegendItemStyleOption,\n LegendLineStyleOption,\n LegendOption,\n LegendSelectorButtonOption,\n LegendIconParams,\n LegendTooltipFormatterParams\n} from './LegendModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n ZRTextAlign,\n ZRRectLike,\n CommonTooltipOption,\n ColorString,\n SeriesOption,\n SymbolOptionMixin\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport {LineStyleProps, LINE_STYLE_KEY_MAP} from '../../model/mixin/lineStyle';\nimport {ITEM_STYLE_KEY_MAP} from '../../model/mixin/itemStyle';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport SeriesModel from '../../model/Series';\n\nconst curry = zrUtil.curry;\nconst each = zrUtil.each;\nconst Group = graphic.Group;\n\nclass LegendView extends ComponentView {\n static type = 'legend.plain';\n type = LegendView.type;\n\n newlineDisabled = false;\n\n private _contentGroup: graphic.Group;\n\n private _backgroundEl: graphic.Rect;\n\n private _selectorGroup: graphic.Group;\n\n /**\n * If first rendering, `contentGroup.position` is [0, 0], which\n * does not make sense and may cause unexepcted animation if adopted.\n */\n private _isFirstRender: boolean;\n\n init() {\n\n this.group.add(this._contentGroup = new Group());\n this.group.add(this._selectorGroup = new Group());\n\n this._isFirstRender = true;\n }\n\n /**\n * @protected\n */\n getContentGroup() {\n return this._contentGroup;\n }\n\n /**\n * @protected\n */\n getSelectorGroup() {\n return this._selectorGroup;\n }\n\n /**\n * @override\n */\n render(\n legendModel: LegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const isFirstRender = this._isFirstRender;\n this._isFirstRender = false;\n\n this.resetInner();\n\n if (!legendModel.get('show', true)) {\n return;\n }\n\n let itemAlign = legendModel.get('align');\n const orient = legendModel.get('orient');\n if (!itemAlign || itemAlign === 'auto') {\n itemAlign = (\n legendModel.get('left') === 'right'\n && orient === 'vertical'\n ) ? 'right' : 'left';\n }\n\n // selector has been normalized to an array in model\n const selector = legendModel.get('selector', true) as LegendSelectorButtonOption[];\n let selectorPosition = legendModel.get('selectorPosition', true);\n if (selector && (!selectorPosition || selectorPosition === 'auto')) {\n selectorPosition = orient === 'horizontal' ? 'end' : 'start';\n }\n\n this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n // Perform layout.\n const positionInfo = legendModel.getBoxLayoutParams();\n const viewportSize = {width: api.getWidth(), height: api.getHeight()};\n const padding = legendModel.get('padding');\n\n const maxSize = layoutUtil.getLayoutRect(positionInfo, viewportSize, padding);\n\n const mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition);\n\n // Place mainGroup, based on the calculated `mainRect`.\n const layoutRect = layoutUtil.getLayoutRect(\n zrUtil.defaults({\n width: mainRect.width,\n height: mainRect.height\n }, positionInfo),\n viewportSize,\n padding\n );\n this.group.x = layoutRect.x - mainRect.x;\n this.group.y = layoutRect.y - mainRect.y;\n this.group.markRedraw();\n\n // Render background after group is layout.\n this.group.add(\n this._backgroundEl = makeBackground(mainRect, legendModel)\n );\n }\n\n protected resetInner() {\n this.getContentGroup().removeAll();\n this._backgroundEl && this.group.remove(this._backgroundEl);\n this.getSelectorGroup().removeAll();\n }\n\n protected renderInner(\n itemAlign: LegendOption['align'],\n legendModel: LegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n selector: LegendSelectorButtonOption[],\n orient: LegendOption['orient'],\n selectorPosition: LegendOption['selectorPosition']\n ) {\n const contentGroup = this.getContentGroup();\n const legendDrawnMap = zrUtil.createHashMap();\n const selectMode = legendModel.get('selectedMode');\n\n const excludeSeriesId: string[] = [];\n ecModel.eachRawSeries(function (seriesModel) {\n !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);\n });\n\n each(legendModel.getData(), function (legendItemModel, dataIndex) {\n const name = legendItemModel.get('name');\n\n // Use empty string or \\n as a newline string\n if (!this.newlineDisabled && (name === '' || name === '\\n')) {\n const g = new Group();\n // @ts-ignore\n g.newline = true;\n contentGroup.add(g);\n return;\n }\n\n // Representitive series.\n const seriesModel = ecModel.getSeriesByName(name)[0] as\n SeriesModel;\n\n if (legendDrawnMap.get(name)) {\n // Have been drawed\n return;\n }\n\n // Legend to control series.\n if (seriesModel) {\n const data = seriesModel.getData();\n const lineVisualStyle = data.getVisual('legendLineStyle') || {};\n const legendIcon = data.getVisual('legendIcon');\n\n /**\n * `data.getVisual('style')` may be the color from the register\n * in series. For example, for line series,\n */\n const style = data.getVisual('style');\n\n const itemGroup = this._createItem(\n seriesModel, name, dataIndex,\n legendItemModel, legendModel, itemAlign,\n lineVisualStyle, style, legendIcon, selectMode\n );\n\n itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId))\n .on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId))\n .on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));\n\n legendDrawnMap.set(name, true);\n }\n else {\n // Legend to control data. In pie and funnel.\n ecModel.eachRawSeries(function (seriesModel) {\n\n // In case multiple series has same data name\n if (legendDrawnMap.get(name)) {\n return;\n }\n\n if (seriesModel.legendVisualProvider) {\n const provider = seriesModel.legendVisualProvider;\n if (!provider.containName(name)) {\n return;\n }\n\n const idx = provider.indexOfName(name);\n\n const style = provider.getItemVisual(idx, 'style') as PathStyleProps;\n const legendIcon = provider.getItemVisual(idx, 'legendIcon');\n\n const colorArr = parse(style.fill as ColorString);\n // Color may be set to transparent in visualMap when data is out of range.\n // Do not show nothing.\n if (colorArr && colorArr[3] === 0) {\n colorArr[3] = 0.2;\n // TODO color is set to 0, 0, 0, 0. Should show correct RGBA\n style.fill = stringify(colorArr, 'rgba');\n }\n\n const itemGroup = this._createItem(\n seriesModel, name, dataIndex,\n legendItemModel, legendModel, itemAlign,\n {}, style, legendIcon, selectMode\n );\n\n // FIXME: consider different series has items with the same name.\n itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId))\n // Should not specify the series name, consider legend controls\n // more than one pie series.\n .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId))\n .on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));\n\n legendDrawnMap.set(name, true);\n }\n\n }, this);\n }\n\n if (__DEV__) {\n if (!legendDrawnMap.get(name)) {\n console.warn(\n name + ' series not exists. Legend data should be same with series name or data name.'\n );\n }\n }\n }, this);\n\n if (selector) {\n this._createSelector(selector, legendModel, api, orient, selectorPosition);\n }\n }\n\n private _createSelector(\n selector: LegendSelectorButtonOption[],\n legendModel: LegendModel,\n api: ExtensionAPI,\n orient: LegendOption['orient'],\n selectorPosition: LegendOption['selectorPosition']\n ) {\n const selectorGroup = this.getSelectorGroup();\n\n each(selector, function createSelectorButton(selectorItem) {\n const type = selectorItem.type;\n\n const labelText = new graphic.Text({\n style: {\n x: 0,\n y: 0,\n align: 'center',\n verticalAlign: 'middle'\n },\n onclick() {\n api.dispatchAction({\n type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect'\n });\n }\n });\n\n selectorGroup.add(labelText);\n\n const labelModel = legendModel.getModel('selectorLabel');\n const emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);\n\n setLabelStyle(\n labelText, { normal: labelModel, emphasis: emphasisLabelModel },\n {\n defaultText: selectorItem.title\n }\n );\n enableHoverEmphasis(labelText);\n });\n }\n\n private _createItem(\n seriesModel: SeriesModel,\n name: string,\n dataIndex: number,\n legendItemModel: LegendModel['_data'][number],\n legendModel: LegendModel,\n itemAlign: LegendOption['align'],\n lineVisualStyle: LineStyleProps,\n itemVisualStyle: PathStyleProps,\n legendIcon: string,\n selectMode: LegendOption['selectedMode']\n ) {\n const drawType = seriesModel.visualDrawType;\n const itemWidth = legendModel.get('itemWidth');\n const itemHeight = legendModel.get('itemHeight');\n const isSelected = legendModel.isSelected(name);\n\n let iconRotate = legendItemModel.get('symbolRotate');\n\n const legendIconType = legendItemModel.get('icon');\n legendIcon = legendIconType || legendIcon || 'roundRect';\n\n const legendLineStyle = legendModel.getModel('lineStyle');\n const style = getLegendStyle(\n legendIcon,\n legendItemModel,\n legendLineStyle,\n lineVisualStyle,\n itemVisualStyle,\n drawType,\n isSelected\n );\n\n const itemGroup = new Group();\n\n const textStyleModel = legendItemModel.getModel('textStyle');\n\n if (typeof seriesModel.getLegendIcon === 'function'\n && (!legendIconType || legendIconType === 'inherit')\n ) {\n // Series has specific way to define legend icon\n itemGroup.add(seriesModel.getLegendIcon({\n itemWidth,\n itemHeight,\n icon: legendIcon,\n iconRotate: iconRotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n else {\n // Use default legend icon policy for most series\n const rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol')\n ? (iconRotate === 'inherit'\n ? seriesModel.getData().getVisual('symbolRotate')\n : iconRotate\n )\n : 0; // No rotation for no icon\n itemGroup.add(getDefaultLegendIcon({\n itemWidth,\n itemHeight,\n icon: legendIcon,\n iconRotate: rotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n\n const textX = itemAlign === 'left' ? itemWidth + 5 : -5;\n const textAlign = itemAlign as ZRTextAlign;\n\n const formatter = legendModel.get('formatter');\n let content = name;\n if (typeof formatter === 'string' && formatter) {\n content = formatter.replace('{name}', name != null ? name : '');\n }\n else if (typeof formatter === 'function') {\n content = formatter(name);\n }\n\n const inactiveColor = legendItemModel.get('inactiveColor');\n itemGroup.add(new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: content,\n x: textX,\n y: itemHeight / 2,\n fill: isSelected ? textStyleModel.getTextColor() : inactiveColor,\n align: textAlign,\n verticalAlign: 'middle'\n })\n }));\n\n // Add a invisible rect to increase the area of mouse hover\n const hitRect = new graphic.Rect({\n shape: itemGroup.getBoundingRect(),\n invisible: true\n });\n\n const tooltipModel =\n legendItemModel.getModel('tooltip') as Model>;\n if (tooltipModel.get('show')) {\n graphic.setTooltipConfig({\n el: hitRect,\n componentModel: legendModel,\n itemName: name,\n itemTooltipOption: tooltipModel.option\n });\n }\n itemGroup.add(hitRect);\n\n itemGroup.eachChild(function (child) {\n child.silent = true;\n });\n\n hitRect.silent = !selectMode;\n\n this.getContentGroup().add(itemGroup);\n\n enableHoverEmphasis(itemGroup);\n\n // @ts-ignore\n itemGroup.__legendDataIndex = dataIndex;\n\n return itemGroup;\n }\n\n protected layoutInner(\n legendModel: LegendModel,\n itemAlign: LegendOption['align'],\n maxSize: { width: number, height: number },\n isFirstRender: boolean,\n selector: LegendOption['selector'],\n selectorPosition: LegendOption['selectorPosition']\n ): ZRRectLike {\n const contentGroup = this.getContentGroup();\n const selectorGroup = this.getSelectorGroup();\n\n // Place items in contentGroup.\n layoutUtil.box(\n legendModel.get('orient'),\n contentGroup,\n legendModel.get('itemGap'),\n maxSize.width,\n maxSize.height\n );\n\n const contentRect = contentGroup.getBoundingRect();\n const contentPos = [-contentRect.x, -contentRect.y];\n\n selectorGroup.markRedraw();\n contentGroup.markRedraw();\n\n if (selector) {\n // Place buttons in selectorGroup\n layoutUtil.box(\n // Buttons in selectorGroup always layout horizontally\n 'horizontal',\n selectorGroup,\n legendModel.get('selectorItemGap', true)\n );\n\n const selectorRect = selectorGroup.getBoundingRect();\n const selectorPos = [-selectorRect.x, -selectorRect.y];\n const selectorButtonGap = legendModel.get('selectorButtonGap', true);\n\n const orientIdx = legendModel.getOrient().index;\n const wh: 'width' | 'height' = orientIdx === 0 ? 'width' : 'height';\n const hw: 'width' | 'height' = orientIdx === 0 ? 'height' : 'width';\n const yx: 'x' | 'y' = orientIdx === 0 ? 'y' : 'x';\n\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;\n }\n else {\n contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;\n }\n\n //Always align selector to content as 'middle'\n selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n\n const mainRect = {x: 0, y: 0} as ZRRectLike;\n mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);\n return mainRect;\n }\n else {\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n return this.group.getBoundingRect();\n }\n }\n\n /**\n * @protected\n */\n remove() {\n this.getContentGroup().removeAll();\n this._isFirstRender = true;\n }\n\n}\n\nfunction getLegendStyle(\n iconType: string,\n legendModel: LegendModel['_data'][number],\n legendLineStyle: Model,\n lineVisualStyle: LineStyleProps,\n itemVisualStyle: PathStyleProps,\n drawType: 'fill' | 'stroke',\n isSelected: boolean\n) {\n /**\n * Use series style if is inherit;\n * elsewise, use legend style\n */\n\n // itemStyle\n const legendItemModel = legendModel.getModel('itemStyle') as Model;\n const itemProperties = ITEM_STYLE_KEY_MAP.concat([\n ['decal']\n ]);\n const itemStyle: PathStyleProps = {};\n for (let i = 0; i < itemProperties.length; ++i) {\n const propName = itemProperties[i][\n itemProperties[i].length - 1\n ] as keyof LegendItemStyleOption;\n const visualName = itemProperties[i][0] as keyof PathStyleProps;\n const value = legendItemModel.getShallow(propName) as LegendItemStyleOption[keyof LegendItemStyleOption];\n if (value === 'inherit') {\n switch (visualName) {\n case 'fill':\n /**\n * Series with visualDrawType as 'stroke' should have\n * series stroke as legend fill\n */\n itemStyle.fill = itemVisualStyle[drawType];\n break;\n\n case 'stroke':\n /**\n * icon type with \"emptyXXX\" should use fill color\n * in visual style\n */\n itemStyle.stroke = itemVisualStyle[\n iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke'\n ];\n break;\n\n case 'opacity':\n /**\n * Use lineStyle.opacity if drawType is stroke\n */\n itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;\n break;\n\n default:\n (itemStyle as any)[visualName] = itemVisualStyle[visualName];\n }\n }\n else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n itemStyle.lineWidth = (itemVisualStyle.lineWidth > 0) ? 2 : 0;\n }\n else {\n (itemStyle as any)[visualName] = value;\n }\n }\n\n // lineStyle\n const legendLineModel = legendModel.getModel('lineStyle') as Model;\n const lineProperties = LINE_STYLE_KEY_MAP.concat([\n ['inactiveColor'],\n ['inactiveWidth']\n ]);\n const lineStyle: LineStyleProps = {};\n for (let i = 0; i < lineProperties.length; ++i) {\n const propName = lineProperties[i][1] as keyof LegendLineStyleOption;\n const visualName = lineProperties[i][0] as keyof LineStyleProps;\n const value = legendLineModel.getShallow(propName) as LegendLineStyleOption[keyof LegendLineStyleOption];\n if (value === 'inherit') {\n (lineStyle as any)[visualName] = lineVisualStyle[visualName];\n }\n else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n lineStyle.lineWidth = lineVisualStyle.lineWidth > 0 ? 2 : 0;\n }\n else {\n (lineStyle as any)[visualName] = value;\n }\n }\n\n // Fix auto color to real color\n (itemStyle.fill === 'auto') && (itemStyle.fill = itemVisualStyle.fill);\n (itemStyle.stroke === 'auto') && (itemStyle.stroke = itemVisualStyle.fill);\n (lineStyle.stroke === 'auto') && (lineStyle.stroke = itemVisualStyle.fill);\n\n if (!isSelected) {\n const borderWidth = legendModel.get('inactiveBorderWidth');\n /**\n * Since stroke is set to be inactiveBorderColor, it may occur that\n * there is no border in series but border in legend, so we need to\n * use border only when series has border if is set to be auto\n */\n const visualHasBorder = itemStyle[iconType.indexOf('empty') > -1 ? 'fill' : 'stroke'];\n itemStyle.lineWidth = borderWidth === 'auto'\n ? (itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0)\n : itemStyle.lineWidth;\n itemStyle.fill = legendModel.get('inactiveColor');\n itemStyle.stroke = legendModel.get('inactiveBorderColor');\n lineStyle.stroke = legendLineStyle.get('inactiveColor');\n lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');\n }\n return { itemStyle, lineStyle };\n}\n\nfunction getDefaultLegendIcon(opt: LegendIconParams): ECSymbol {\n const symboType = opt.icon || 'roundRect';\n const icon = createSymbol(\n symboType,\n 0,\n 0,\n opt.itemWidth,\n opt.itemHeight,\n opt.itemStyle.fill\n );\n\n icon.setStyle(opt.itemStyle);\n\n icon.rotation = (opt.iconRotate as number || 0) * Math.PI / 180;\n icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symboType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n}\n\nfunction dispatchSelectAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // downplay before unselect\n dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);\n api.dispatchAction({\n type: 'legendToggleSelect',\n name: seriesName != null ? seriesName : dataName\n });\n // highlight after select\n // TODO higlight immediately may cause animation loss.\n dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);\n}\n\nfunction isUseHoverLayer(api: ExtensionAPI) {\n const list = api.getZr().storage.getDisplayList();\n let emphasisState: DisplayableState;\n let i = 0;\n const len = list.length;\n while (i < len && !(emphasisState = list[i].states.emphasis)) {\n i++;\n }\n return emphasisState && emphasisState.hoverLayer;\n}\n\nfunction dispatchHighlightAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'highlight',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nfunction dispatchDownplayAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'downplay',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nexport default LegendView;\n", "import SeriesModel from '../../model/Series';\nimport GlobalModel from '../../model/Global';\nimport LegendModel from './LegendModel';\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport default function legendFilter(ecModel: GlobalModel) {\n\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n }) as LegendModel[];\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series: SeriesModel) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (let i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n return true;\n });\n }\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport {curry, each} from 'zrender/src/core/util';\n\nfunction legendSelectActionHandler(methodName, payload, ecModel) {\n const selectedMap = {};\n const isToggleSelect = methodName === 'toggleSelected';\n let isSelected;\n // Update all legend components\n ecModel.eachComponent('legend', function (legendModel) {\n if (isToggleSelect && isSelected != null) {\n // Force other legend has same selected status\n // Or the first is toggled to true and other are toggled to false\n // In the case one legend has some item unSelected in option. And if other legend\n // doesn't has the item, they will assume it is selected.\n legendModel[isSelected ? 'select' : 'unSelect'](payload.name);\n }\n else if (methodName === 'allSelect' || methodName === 'inverseSelect') {\n legendModel[methodName]();\n }\n else {\n legendModel[methodName](payload.name);\n isSelected = legendModel.isSelected(payload.name);\n }\n const legendData = legendModel.getData();\n each(legendData, function (model) {\n const name = model.get('name');\n // Wrap element\n if (name === '\\n' || name === '') {\n return;\n }\n const isItemSelected = legendModel.isSelected(name);\n if (selectedMap.hasOwnProperty(name)) {\n // Unselected if any legend is unselected\n selectedMap[name] = selectedMap[name] && isItemSelected;\n }\n else {\n selectedMap[name] = isItemSelected;\n }\n });\n });\n // Return the event explicitly\n return (methodName === 'allSelect' || methodName === 'inverseSelect')\n ? {\n selected: selectedMap\n }\n : {\n name: payload.name,\n selected: selectedMap\n };\n}\n\nexport function installLegendAction(registers) {\n /**\n * @event legendToggleSelect\n * @type {Object}\n * @property {string} type 'legendToggleSelect'\n * @property {string} [from]\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendToggleSelect', 'legendselectchanged',\n curry(legendSelectActionHandler, 'toggleSelected')\n );\n\n registers.registerAction(\n 'legendAllSelect', 'legendselectall',\n curry(legendSelectActionHandler, 'allSelect')\n );\n\n registers.registerAction(\n 'legendInverseSelect', 'legendinverseselect',\n curry(legendSelectActionHandler, 'inverseSelect')\n );\n\n /**\n * @event legendSelect\n * @type {Object}\n * @property {string} type 'legendSelect'\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendSelect', 'legendselected',\n curry(legendSelectActionHandler, 'select')\n );\n\n /**\n * @event legendUnSelect\n * @type {Object}\n * @property {string} type 'legendUnSelect'\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendUnSelect', 'legendunselected',\n curry(legendSelectActionHandler, 'unSelect')\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport LegendModel from './LegendModel';\nimport LegendView from './LegendView';\nimport legendFilter from './legendFilter';\nimport { installLegendAction } from './legendAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(LegendModel);\n registers.registerComponentView(LegendView);\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);\n registers.registerSubTypeDefaulter('legend', function () {\n return 'plain';\n });\n\n installLegendAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LegendModel, {LegendOption} from './LegendModel';\nimport {\n mergeLayoutParam,\n getLayoutParams\n} from '../../util/layout';\nimport { ZRColor, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface ScrollableLegendOption extends LegendOption {\n scrollDataIndex?: number\n /**\n * Gap between each page button\n */\n pageButtonItemGap?: number\n /**\n * Gap between page buttons group and legend items.\n */\n pageButtonGap?: number\n pageButtonPosition?: 'start' | 'end'\n\n pageFormatter?: string | ((param: {current: number, total: number}) => string)\n pageIcons?: {\n horizontal?: string[]\n vertical?: string[]\n }\n pageIconColor?: ZRColor\n pageIconInactiveColor?: ZRColor\n pageIconSize?: number\n pageTextStyle?: LabelOption\n\n animationDurationUpdate?: number\n}\n\nclass ScrollableLegendModel extends LegendModel {\n\n static type = 'legend.scroll' as const;\n type = ScrollableLegendModel.type;\n\n /**\n * @param {number} scrollDataIndex\n */\n setScrollDataIndex(scrollDataIndex: number) {\n this.option.scrollDataIndex = scrollDataIndex;\n }\n\n init(\n option: ScrollableLegendOption,\n parentModel: Model,\n ecModel: GlobalModel\n ) {\n const inputPositionParams = getLayoutParams(option);\n\n super.init(option, parentModel, ecModel);\n\n mergeAndNormalizeLayoutParams(this, option, inputPositionParams);\n }\n\n /**\n * @override\n */\n mergeOption(option: ScrollableLegendOption, ecModel: GlobalModel) {\n super.mergeOption(option, ecModel);\n\n mergeAndNormalizeLayoutParams(this, this.option, option);\n }\n\n static defaultOption: ScrollableLegendOption = inheritDefaultOption(LegendModel.defaultOption, {\n scrollDataIndex: 0,\n pageButtonItemGap: 5,\n pageButtonGap: null,\n pageButtonPosition: 'end', // 'start' or 'end'\n pageFormatter: '{current}/{total}', // If null/undefined, do not show page.\n pageIcons: {\n horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],\n vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']\n },\n pageIconColor: '#2f4554',\n pageIconInactiveColor: '#aaa',\n pageIconSize: 15, // Can be [10, 3], which represents [width, height]\n pageTextStyle: {\n color: '#333'\n },\n\n animationDurationUpdate: 800\n });\n};\n\n// Do not `ignoreSize` to enable setting {left: 10, right: 10}.\nfunction mergeAndNormalizeLayoutParams(\n legendModel: ScrollableLegendModel,\n target: ScrollableLegendOption,\n raw: ScrollableLegendOption\n) {\n const orient = legendModel.getOrient();\n const ignoreSize = [1, 1];\n ignoreSize[orient.index] = 0;\n mergeLayoutParam(target, raw, {\n type: 'box', ignoreSize: !!ignoreSize\n });\n}\n\nexport default ScrollableLegendModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Separate legend and scrollable legend to reduce package size.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport LegendView from './LegendView';\nimport { LegendSelectorButtonOption } from './LegendModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport ScrollableLegendModel, {ScrollableLegendOption} from './ScrollableLegendModel';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport { ZRRectLike } from '../../util/types';\n\nconst Group = graphic.Group;\n\nconst WH = ['width', 'height'] as const;\nconst XY = ['x', 'y'] as const;\n\ninterface PageInfo {\n contentPosition: number[]\n pageCount: number\n pageIndex: number\n pagePrevDataIndex: number\n pageNextDataIndex: number\n}\n\ninterface ItemInfo {\n /**\n * Start\n */\n s: number\n /**\n * End\n */\n e: number\n /**\n * Index\n */\n i: number\n}\n\ntype LegendGroup = graphic.Group & {\n __rectSize: number\n};\n\ntype LegendItemElement = Element & {\n __legendDataIndex: number\n};\n\nclass ScrollableLegendView extends LegendView {\n\n static type = 'legend.scroll' as const;\n type = ScrollableLegendView.type;\n\n newlineDisabled = true;\n\n private _containerGroup: LegendGroup;\n private _controllerGroup: graphic.Group;\n\n private _currentIndex: number = 0;\n\n private _showController: boolean;\n\n init() {\n\n super.init();\n\n this.group.add(this._containerGroup = new Group() as LegendGroup);\n this._containerGroup.add(this.getContentGroup());\n\n this.group.add(this._controllerGroup = new Group());\n }\n\n /**\n * @override\n */\n resetInner() {\n super.resetInner();\n\n this._controllerGroup.removeAll();\n this._containerGroup.removeClipPath();\n this._containerGroup.__rectSize = null;\n }\n\n /**\n * @override\n */\n renderInner(\n itemAlign: ScrollableLegendOption['align'],\n legendModel: ScrollableLegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n selector: LegendSelectorButtonOption[],\n orient: ScrollableLegendOption['orient'],\n selectorPosition: ScrollableLegendOption['selectorPosition']\n ) {\n const self = this;\n\n // Render content items.\n super.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n const controllerGroup = this._controllerGroup;\n\n // FIXME: support be 'auto' adapt to size number text length,\n // e.g., '3/12345' should not overlap with the control arrow button.\n const pageIconSize = legendModel.get('pageIconSize', true);\n const pageIconSizeArr: number[] = zrUtil.isArray(pageIconSize)\n ? pageIconSize : [pageIconSize, pageIconSize];\n\n createPageButton('pagePrev', 0);\n\n const pageTextStyleModel = legendModel.getModel('pageTextStyle');\n controllerGroup.add(new graphic.Text({\n name: 'pageText',\n style: {\n // Placeholder to calculate a proper layout.\n text: 'xx/xx',\n fill: pageTextStyleModel.getTextColor(),\n font: pageTextStyleModel.getFont(),\n verticalAlign: 'middle',\n align: 'center'\n },\n silent: true\n }));\n\n createPageButton('pageNext', 1);\n\n function createPageButton(name: string, iconIdx: number) {\n const pageDataIndexName = (name + 'DataIndex') as 'pagePrevDataIndex' | 'pageNextDataIndex';\n const icon = graphic.createIcon(\n legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx],\n {\n // Buttons will be created in each render, so we do not need\n // to worry about avoiding using legendModel kept in scope.\n onclick: zrUtil.bind(\n self._pageGo, self, pageDataIndexName, legendModel, api\n )\n },\n {\n x: -pageIconSizeArr[0] / 2,\n y: -pageIconSizeArr[1] / 2,\n width: pageIconSizeArr[0],\n height: pageIconSizeArr[1]\n }\n );\n icon.name = name;\n controllerGroup.add(icon);\n }\n }\n\n /**\n * @override\n */\n layoutInner(\n legendModel: ScrollableLegendModel,\n itemAlign: ScrollableLegendOption['align'],\n maxSize: { width: number, height: number },\n isFirstRender: boolean,\n selector: LegendSelectorButtonOption[],\n selectorPosition: ScrollableLegendOption['selectorPosition']\n ) {\n const selectorGroup = this.getSelectorGroup();\n\n const orientIdx = legendModel.getOrient().index;\n const wh = WH[orientIdx];\n const xy = XY[orientIdx];\n const hw = WH[1 - orientIdx];\n const yx = XY[1 - orientIdx];\n\n selector && layoutUtil.box(\n // Buttons in selectorGroup always layout horizontally\n 'horizontal',\n selectorGroup,\n legendModel.get('selectorItemGap', true)\n );\n\n const selectorButtonGap = legendModel.get('selectorButtonGap', true);\n const selectorRect = selectorGroup.getBoundingRect();\n const selectorPos = [-selectorRect.x, -selectorRect.y];\n\n const processMaxSize = zrUtil.clone(maxSize);\n selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);\n\n const mainRect = this._layoutContentAndController(legendModel, isFirstRender,\n processMaxSize, orientIdx, wh, hw, yx, xy\n );\n\n if (selector) {\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;\n }\n else {\n const offset = selectorRect[wh] + selectorButtonGap;\n selectorPos[orientIdx] -= offset;\n mainRect[xy] -= offset;\n }\n mainRect[wh] += selectorRect[wh] + selectorButtonGap;\n\n selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;\n mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);\n\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n selectorGroup.markRedraw();\n }\n\n return mainRect;\n }\n\n _layoutContentAndController(\n legendModel: ScrollableLegendModel,\n isFirstRender: boolean,\n maxSize: { width: number, height: number },\n orientIdx: 0 | 1,\n wh: 'width' | 'height',\n hw: 'width' | 'height',\n yx: 'x' | 'y',\n xy: 'y' | 'x'\n ) {\n const contentGroup = this.getContentGroup();\n const containerGroup = this._containerGroup;\n const controllerGroup = this._controllerGroup;\n\n // Place items in contentGroup.\n layoutUtil.box(\n legendModel.get('orient'),\n contentGroup,\n legendModel.get('itemGap'),\n !orientIdx ? null : maxSize.width,\n orientIdx ? null : maxSize.height\n );\n\n layoutUtil.box(\n // Buttons in controller are layout always horizontally.\n 'horizontal',\n controllerGroup,\n legendModel.get('pageButtonItemGap', true)\n );\n\n const contentRect = contentGroup.getBoundingRect();\n const controllerRect = controllerGroup.getBoundingRect();\n const showController = this._showController = contentRect[wh] > maxSize[wh];\n\n // In case that the inner elements of contentGroup layout do not based on [0, 0]\n const contentPos = [-contentRect.x, -contentRect.y];\n // Remain contentPos when scroll animation perfroming.\n // If first rendering, `contentGroup.position` is [0, 0], which\n // does not make sense and may cause unexepcted animation if adopted.\n if (!isFirstRender) {\n contentPos[orientIdx] = contentGroup[xy];\n }\n\n // Layout container group based on 0.\n const containerPos = [0, 0];\n const controllerPos = [-controllerRect.x, -controllerRect.y];\n const pageButtonGap = zrUtil.retrieve2(\n legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)\n );\n\n // Place containerGroup and controllerGroup and contentGroup.\n if (showController) {\n const pageButtonPosition = legendModel.get('pageButtonPosition', true);\n // controller is on the right / bottom.\n if (pageButtonPosition === 'end') {\n controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];\n }\n // controller is on the left / top.\n else {\n containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;\n }\n }\n\n // Always align controller to content as 'middle'.\n controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;\n\n contentGroup.setPosition(contentPos);\n containerGroup.setPosition(containerPos);\n controllerGroup.setPosition(controllerPos);\n\n // Calculate `mainRect` and set `clipPath`.\n // mainRect should not be calculated by `this.group.getBoundingRect()`\n // for sake of the overflow.\n const mainRect = {x: 0, y: 0} as ZRRectLike;\n\n // Consider content may be overflow (should be clipped).\n mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]);\n\n // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.\n mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);\n\n containerGroup.__rectSize = maxSize[wh];\n if (showController) {\n const clipShape = {x: 0, y: 0} as graphic.Rect['shape'];\n clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);\n clipShape[hw] = mainRect[hw];\n containerGroup.setClipPath(new graphic.Rect({shape: clipShape}));\n // Consider content may be larger than container, container rect\n // can not be obtained from `containerGroup.getBoundingRect()`.\n containerGroup.__rectSize = clipShape[wh];\n }\n else {\n // Do not remove or ignore controller. Keep them set as placeholders.\n controllerGroup.eachChild(function (child: Displayable) {\n child.attr({\n invisible: true,\n silent: true\n });\n });\n }\n\n // Content translate animation.\n const pageInfo = this._getPageInfo(legendModel);\n pageInfo.pageIndex != null && graphic.updateProps(\n contentGroup,\n { x: pageInfo.contentPosition[0], y: pageInfo.contentPosition[1] },\n // When switch from \"show controller\" to \"not show controller\", view should be\n // updated immediately without animation, otherwise causes weird effect.\n showController ? legendModel : null\n );\n\n this._updatePageInfoView(legendModel, pageInfo);\n\n return mainRect;\n }\n\n _pageGo(\n to: 'pagePrevDataIndex' | 'pageNextDataIndex',\n legendModel: ScrollableLegendModel,\n api: ExtensionAPI\n ) {\n const scrollDataIndex = this._getPageInfo(legendModel)[to];\n\n scrollDataIndex != null && api.dispatchAction({\n type: 'legendScroll',\n scrollDataIndex: scrollDataIndex,\n legendId: legendModel.id\n });\n }\n\n _updatePageInfoView(\n legendModel: ScrollableLegendModel,\n pageInfo: PageInfo\n ) {\n const controllerGroup = this._controllerGroup;\n\n zrUtil.each(['pagePrev', 'pageNext'], function (name) {\n const key = (name + 'DataIndex') as'pagePrevDataIndex' | 'pageNextDataIndex';\n const canJump = pageInfo[key] != null;\n const icon = controllerGroup.childOfName(name) as graphic.Path;\n if (icon) {\n icon.setStyle(\n 'fill',\n canJump\n ? legendModel.get('pageIconColor', true)\n : legendModel.get('pageIconInactiveColor', true)\n );\n icon.cursor = canJump ? 'pointer' : 'default';\n }\n });\n\n const pageText = controllerGroup.childOfName('pageText') as graphic.Text;\n const pageFormatter = legendModel.get('pageFormatter');\n const pageIndex = pageInfo.pageIndex;\n const current = pageIndex != null ? pageIndex + 1 : 0;\n const total = pageInfo.pageCount;\n\n pageText && pageFormatter && pageText.setStyle(\n 'text',\n zrUtil.isString(pageFormatter)\n ? pageFormatter.replace('{current}', current == null ? '' : current + '')\n .replace('{total}', total == null ? '' : total + '')\n : pageFormatter({current: current, total: total})\n );\n }\n\n /**\n * contentPosition: Array., null when data item not found.\n * pageIndex: number, null when data item not found.\n * pageCount: number, always be a number, can be 0.\n * pagePrevDataIndex: number, null when no previous page.\n * pageNextDataIndex: number, null when no next page.\n * }\n */\n _getPageInfo(legendModel: ScrollableLegendModel): PageInfo {\n const scrollDataIndex = legendModel.get('scrollDataIndex', true);\n const contentGroup = this.getContentGroup();\n const containerRectSize = this._containerGroup.__rectSize;\n const orientIdx = legendModel.getOrient().index;\n const wh = WH[orientIdx];\n const xy = XY[orientIdx];\n\n const targetItemIndex = this._findTargetItemIndex(scrollDataIndex);\n const children = contentGroup.children();\n const targetItem = children[targetItemIndex];\n const itemCount = children.length;\n const pCount = !itemCount ? 0 : 1;\n\n const result: PageInfo = {\n contentPosition: [contentGroup.x, contentGroup.y],\n pageCount: pCount,\n pageIndex: pCount - 1,\n pagePrevDataIndex: null,\n pageNextDataIndex: null\n };\n\n if (!targetItem) {\n return result;\n }\n\n const targetItemInfo = getItemInfo(targetItem);\n result.contentPosition[orientIdx] = -targetItemInfo.s;\n\n // Strategy:\n // (1) Always align based on the left/top most item.\n // (2) It is user-friendly that the last item shown in the\n // current window is shown at the begining of next window.\n // Otherwise if half of the last item is cut by the window,\n // it will have no chance to display entirely.\n // (3) Consider that item size probably be different, we\n // have calculate pageIndex by size rather than item index,\n // and we can not get page index directly by division.\n // (4) The window is to narrow to contain more than\n // one item, we should make sure that the page can be fliped.\n\n for (let i = targetItemIndex + 1,\n winStartItemInfo = targetItemInfo,\n winEndItemInfo = targetItemInfo,\n currItemInfo = null;\n i <= itemCount;\n ++i\n ) {\n currItemInfo = getItemInfo(children[i]);\n if (\n // Half of the last item is out of the window.\n (!currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize)\n // If the current item does not intersect with the window, the new page\n // can be started at the current item or the last item.\n || (currItemInfo && !intersect(currItemInfo, winStartItemInfo.s))\n ) {\n if (winEndItemInfo.i > winStartItemInfo.i) {\n winStartItemInfo = winEndItemInfo;\n }\n else { // e.g., when page size is smaller than item size.\n winStartItemInfo = currItemInfo;\n }\n if (winStartItemInfo) {\n if (result.pageNextDataIndex == null) {\n result.pageNextDataIndex = winStartItemInfo.i;\n }\n ++result.pageCount;\n }\n }\n winEndItemInfo = currItemInfo;\n }\n\n for (let i = targetItemIndex - 1,\n winStartItemInfo = targetItemInfo,\n winEndItemInfo = targetItemInfo,\n currItemInfo = null;\n i >= -1;\n --i\n ) {\n currItemInfo = getItemInfo(children[i]);\n if (\n // If the the end item does not intersect with the window started\n // from the current item, a page can be settled.\n (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s))\n // e.g., when page size is smaller than item size.\n && winStartItemInfo.i < winEndItemInfo.i\n ) {\n winEndItemInfo = winStartItemInfo;\n if (result.pagePrevDataIndex == null) {\n result.pagePrevDataIndex = winStartItemInfo.i;\n }\n ++result.pageCount;\n ++result.pageIndex;\n }\n winStartItemInfo = currItemInfo;\n }\n\n return result;\n\n function getItemInfo(el: Element): ItemInfo {\n if (el) {\n const itemRect = el.getBoundingRect();\n const start = itemRect[xy] + el[xy];\n return {\n s: start,\n e: start + itemRect[wh],\n i: (el as LegendItemElement).__legendDataIndex\n };\n }\n }\n\n function intersect(itemInfo: ItemInfo, winStart: number) {\n return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;\n }\n }\n\n _findTargetItemIndex(targetDataIndex: number) {\n if (!this._showController) {\n return 0;\n }\n\n let index;\n const contentGroup = this.getContentGroup();\n let defaultIndex: number;\n\n contentGroup.eachChild(function (child, idx) {\n const legendDataIdx = (child as LegendItemElement).__legendDataIndex;\n // FIXME\n // If the given targetDataIndex (from model) is illegal,\n // we use defaultIndex. But the index on the legend model and\n // action payload is still illegal. That case will not be\n // changed until some scenario requires.\n if (defaultIndex == null && legendDataIdx != null) {\n defaultIndex = idx;\n }\n if (legendDataIdx === targetDataIndex) {\n index = idx;\n }\n });\n\n return index != null ? index : defaultIndex;\n }\n}\n\nexport default ScrollableLegendView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport default function installScrollableLegendAction(registers: EChartsExtensionInstallRegisters) {\n /**\n * @event legendScroll\n * @type {Object}\n * @property {string} type 'legendScroll'\n * @property {string} scrollDataIndex\n */\n registers.registerAction(\n 'legendScroll', 'legendscroll',\n function (payload, ecModel) {\n const scrollDataIndex = payload.scrollDataIndex;\n\n scrollDataIndex != null && ecModel.eachComponent(\n {mainType: 'legend', subType: 'scroll', query: payload},\n function (legendModel: ScrollableLegendModel) {\n legendModel.setScrollDataIndex(scrollDataIndex);\n }\n );\n }\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installLegendPlain} from './installLegendPlain';\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport ScrollableLegendView from './ScrollableLegendView';\nimport installScrollableLegendAction from './scrollableLegendAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installLegendPlain);\n\n registers.registerComponentModel(ScrollableLegendModel);\n registers.registerComponentView(ScrollableLegendView);\n\n installScrollableLegendAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installLegendPlain} from './installLegendPlain';\nimport {install as installLegendScroll} from './installLegendScroll';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installLegendPlain);\n use(installLegendScroll);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel, {DataZoomOption} from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface InsideDataZoomOption extends DataZoomOption {\n\n /**\n * Whether disable this inside zoom.\n */\n disabled?: boolean\n\n /**\n * Whether disable zoom but only pan.\n */\n zoomLock?: boolean\n\n zoomOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'\n\n moveOnMouseMove?: boolean | 'shift' | 'ctrl' | 'alt'\n\n moveOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'\n\n preventDefaultMouseMove?: boolean\n\n /**\n * Inside dataZoom don't support textStyle\n */\n textStyle?: never\n}\n\n\nclass InsideZoomModel extends DataZoomModel {\n static readonly type = 'dataZoom.inside';\n type = InsideZoomModel.type;\n\n static defaultOption: InsideDataZoomOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n disabled: false,\n zoomLock: false,\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n}\n\nexport default InsideZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Only create one roam controller for each coordinate system.\n// one roam controller might be refered by two inside data zoom\n// components (for example, one for x and one for y). When user\n// pan or zoom, only dispatch one action for those data zoom\n// components.\n\nimport RoamController, { RoamType } from '../../component/helper/RoamController';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nimport { Dictionary, ZRElementEvent } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport InsideZoomModel from './InsideZoomModel';\nimport { each, curry, Curry1, HashMap, createHashMap } from 'zrender/src/core/util';\nimport {\n DataZoomPayloadBatchItem, collectReferCoordSysModelInfo,\n DataZoomCoordSysMainType, DataZoomReferCoordSysInfo\n} from './helper';\nimport GlobalModel from '../../model/Global';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nimport { DataZoomGetRangeHandlers } from './InsideZoomView';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\ninterface DataZoomInfo {\n getRange: DataZoomGetRangeHandlers;\n model: InsideZoomModel;\n dzReferCoordSysInfo: DataZoomReferCoordSysInfo\n}\n\ninterface CoordSysRecord {\n // key: dataZoom.uid\n dataZoomInfoMap: HashMap;\n model: CoordinateSystemHostModel,\n // count: number\n // coordId: string\n controller: RoamController;\n containsPoint: (e: ZRElementEvent, x: number, y: number) => boolean;\n dispatchAction: Curry1;\n}\n\n\nconst inner = makeInner<{\n // key: coordSysModel.uid\n coordSysRecordMap: HashMap;\n}, ExtensionAPI>();\n\nexport function setViewInfoToCoordSysRecord(\n api: ExtensionAPI,\n dataZoomModel: InsideZoomModel,\n getRange: DataZoomGetRangeHandlers\n): void {\n inner(api).coordSysRecordMap.each(function (coordSysRecord) {\n const dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid);\n if (dzInfo) {\n dzInfo.getRange = getRange;\n }\n });\n}\n\nexport function disposeCoordSysRecordIfNeeded(api: ExtensionAPI, dataZoomModel: InsideZoomModel) {\n const coordSysRecordMap = inner(api).coordSysRecordMap;\n const coordSysKeyArr = coordSysRecordMap.keys();\n for (let i = 0; i < coordSysKeyArr.length; i++) {\n const coordSysKey = coordSysKeyArr[i];\n const coordSysRecord = coordSysRecordMap.get(coordSysKey);\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n if (dataZoomInfoMap) {\n const dzUid = dataZoomModel.uid;\n const dzInfo = dataZoomInfoMap.get(dzUid);\n if (dzInfo) {\n dataZoomInfoMap.removeKey(dzUid);\n if (!dataZoomInfoMap.keys().length) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n }\n }\n }\n }\n}\n\nfunction disposeCoordSysRecord(\n coordSysRecordMap: HashMap,\n coordSysRecord: CoordSysRecord\n): void {\n if (coordSysRecord) {\n coordSysRecordMap.removeKey(coordSysRecord.model.uid);\n const controller = coordSysRecord.controller;\n controller && controller.dispose();\n }\n}\n\nfunction createCoordSysRecord(api: ExtensionAPI, coordSysModel: CoordinateSystemHostModel): CoordSysRecord {\n // These init props will never change after record created.\n const coordSysRecord: CoordSysRecord = {\n model: coordSysModel,\n containsPoint: curry(containsPoint, coordSysModel),\n dispatchAction: curry(dispatchAction, api),\n dataZoomInfoMap: null,\n controller: null\n };\n\n // Must not do anything depends on coordSysRecord outside the event handler here,\n // because coordSysRecord not completed yet.\n const controller = coordSysRecord.controller = new RoamController(api.getZr());\n\n each(['pan', 'zoom', 'scrollMove'] as const, function (eventName) {\n controller.on(eventName, function (event) {\n const batch: DataZoomPayloadBatchItem[] = [];\n\n coordSysRecord.dataZoomInfoMap.each(function (dzInfo) {\n // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,\n // moveOnMouseWheel, ...) enabled.\n if (!event.isAvailableBehavior(dzInfo.model.option)) {\n return;\n }\n\n const method = (dzInfo.getRange || {} as DataZoomGetRangeHandlers)[eventName];\n const range = method && method(\n dzInfo.dzReferCoordSysInfo,\n coordSysRecord.model.mainType as DataZoomCoordSysMainType,\n coordSysRecord.controller,\n event as any\n );\n\n !dzInfo.model.get('disabled', true) && range && batch.push({\n dataZoomId: dzInfo.model.id,\n start: range[0],\n end: range[1]\n });\n });\n\n batch.length && coordSysRecord.dispatchAction(batch);\n });\n });\n\n return coordSysRecord;\n}\n\n/**\n * This action will be throttled.\n */\nfunction dispatchAction(api: ExtensionAPI, batch: DataZoomPayloadBatchItem[]) {\n api.dispatchAction({\n type: 'dataZoom',\n animation: {\n easing: 'cubicOut',\n duration: 100\n },\n batch: batch\n });\n}\n\nfunction containsPoint(\n coordSysModel: CoordinateSystemHostModel, e: ZRElementEvent, x: number, y: number\n): boolean {\n return coordSysModel.coordinateSystem.containPoint([x, y]);\n}\n\n/**\n * Merge roamController settings when multiple dataZooms share one roamController.\n */\nfunction mergeControllerParams(dataZoomInfoMap: HashMap<{ model: InsideZoomModel }>) {\n let controlType: RoamType;\n // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated\n // as string, it is probably revert to reserved word by compress tool. See #7411.\n const prefix = 'type_';\n const typePriority: Dictionary = {\n 'type_true': 2,\n 'type_move': 1,\n 'type_false': 0,\n 'type_undefined': -1\n };\n let preventDefaultMouseMove = true;\n\n dataZoomInfoMap.each(function (dataZoomInfo) {\n const dataZoomModel = dataZoomInfo.model;\n const oneType = dataZoomModel.get('disabled', true)\n ? false\n : dataZoomModel.get('zoomLock', true)\n ? 'move' as const\n : true;\n if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) {\n controlType = oneType;\n }\n\n // Prevent default move event by default. If one false, do not prevent. Otherwise\n // users may be confused why it does not work when multiple insideZooms exist.\n preventDefaultMouseMove = preventDefaultMouseMove\n && dataZoomModel.get('preventDefaultMouseMove', true);\n });\n\n return {\n controlType: controlType,\n opt: {\n // RoamController will enable all of these functionalities,\n // and the final behavior is determined by its event listener\n // provided by each inside zoom.\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: true,\n preventDefaultMouseMove: !!preventDefaultMouseMove\n }\n };\n}\n\nexport function installDataZoomRoamProcessor(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.FILTER,\n function (ecModel: GlobalModel, api: ExtensionAPI): void {\n const apiInner = inner(api);\n const coordSysRecordMap = apiInner.coordSysRecordMap\n || (apiInner.coordSysRecordMap = createHashMap());\n\n coordSysRecordMap.each(function (coordSysRecord) {\n // `coordSysRecordMap` always exists (becuase it hold the `roam controller`, which should\n // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.\n coordSysRecord.dataZoomInfoMap = null;\n });\n\n ecModel.eachComponent(\n { mainType: 'dataZoom', subType: 'inside' },\n function (dataZoomModel: InsideZoomModel) {\n const dzReferCoordSysWrap = collectReferCoordSysModelInfo(dataZoomModel);\n\n each(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) {\n\n const coordSysUid = dzCoordSysInfo.model.uid;\n const coordSysRecord = coordSysRecordMap.get(coordSysUid)\n || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model));\n\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap\n || (coordSysRecord.dataZoomInfoMap = createHashMap());\n // Notice these props might be changed each time for a single dataZoomModel.\n dataZoomInfoMap.set(dataZoomModel.uid, {\n dzReferCoordSysInfo: dzCoordSysInfo,\n model: dataZoomModel,\n getRange: null\n });\n });\n }\n );\n\n // (1) Merge dataZoom settings for each coord sys and set to the roam controller.\n // (2) Clear coord sys if not refered by any dataZoom.\n coordSysRecordMap.each(function (coordSysRecord) {\n const controller = coordSysRecord.controller;\n let firstDzInfo: DataZoomInfo;\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n const firstDzKey = dataZoomInfoMap.keys()[0];\n if (firstDzKey != null) {\n firstDzInfo = dataZoomInfoMap.get(firstDzKey);\n }\n }\n\n if (!firstDzInfo) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n return;\n }\n\n const controllerParams = mergeControllerParams(dataZoomInfoMap);\n controller.enable(controllerParams.controlType, controllerParams.opt);\n\n controller.setPointerChecker(coordSysRecord.containsPoint);\n\n throttleUtil.createOrUpdate(\n coordSysRecord,\n 'dispatchAction',\n firstDzInfo.model.get('throttle', true),\n 'fixRate'\n );\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomView from './DataZoomView';\nimport sliderMove from '../helper/sliderMove';\nimport * as roams from './roams';\nimport InsideZoomModel from './InsideZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { bind } from 'zrender/src/core/util';\nimport RoamController, {RoamEventParams} from '../helper/RoamController';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport Polar from '../../coord/polar/Polar';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport { DataZoomCoordSysMainType, DataZoomReferCoordSysInfo } from './helper';\n\n\nclass InsideZoomView extends DataZoomView {\n static type = 'dataZoom.inside';\n type = 'dataZoom.inside';\n\n /**\n * 'throttle' is used in this.dispatchAction, so we save range\n * to avoid missing some 'pan' info.\n */\n range: number[];\n\n render(dataZoomModel: InsideZoomModel, ecModel: GlobalModel, api: ExtensionAPI) {\n super.render.apply(this, arguments as any);\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n return;\n }\n\n // Hence the `throttle` util ensures to preserve command order,\n // here simply updating range all the time will not cause missing\n // any of the the roam change.\n this.range = dataZoomModel.getPercentRange();\n\n // Reset controllers.\n roams.setViewInfoToCoordSysRecord(\n api,\n dataZoomModel,\n {\n pan: bind(getRangeHandlers.pan, this),\n zoom: bind(getRangeHandlers.zoom, this),\n scrollMove: bind(getRangeHandlers.scrollMove, this)\n }\n );\n }\n\n dispose() {\n this._clear();\n super.dispose.apply(this, arguments as any);\n }\n\n private _clear() {\n roams.disposeCoordSysRecordIfNeeded(this.api, this.dataZoomModel as InsideZoomModel);\n this.range = null;\n }\n}\n\ninterface DataZoomGetRangeHandler<\n T extends RoamEventParams['zoom'] | RoamEventParams['scrollMove'] | RoamEventParams['pan']\n> {\n (\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: T\n ): [number, number]\n}\n\nconst getRangeHandlers: {\n pan: DataZoomGetRangeHandler\n zoom: DataZoomGetRangeHandler\n scrollMove: DataZoomGetRangeHandler\n} & ThisType = {\n\n zoom(coordSysInfo, coordSysMainType, controller, e: RoamEventParams['zoom']) {\n const lastRange = this.range;\n const range = lastRange.slice() as [number, number];\n\n // Calculate transform by the first axis.\n const axisModel = coordSysInfo.axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const directionInfo = getDirectionInfo[coordSysMainType](\n null, [e.originX, e.originY], axisModel, controller, coordSysInfo\n );\n const percentPoint = (\n directionInfo.signal > 0\n ? (directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel)\n : (directionInfo.pixel - directionInfo.pixelStart)\n ) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];\n\n const scale = Math.max(1 / e.scale, 0);\n range[0] = (range[0] - percentPoint) * scale + percentPoint;\n range[1] = (range[1] - percentPoint) * scale + percentPoint;\n\n // Restrict range.\n const minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n\n sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);\n\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n },\n\n pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e: RoamEventParams['pan']) {\n const directionInfo = getDirectionInfo[coordSysMainType](\n [e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo\n );\n\n return directionInfo.signal\n * (range[1] - range[0])\n * directionInfo.pixel / directionInfo.pixelLength;\n }),\n\n scrollMove: makeMover(\n function (range, axisModel, coordSysInfo, coordSysMainType, controller, e: RoamEventParams['scrollMove']\n ) {\n const directionInfo = getDirectionInfo[coordSysMainType](\n [0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo\n );\n return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta;\n })\n};\n\nexport type DataZoomGetRangeHandlers = typeof getRangeHandlers;\n\nfunction makeMover(\n getPercentDelta: (\n range: [number, number],\n axisModel: AxisBaseModel,\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: RoamEventParams['scrollMove']| RoamEventParams['pan']\n ) => number\n) {\n return function (\n this: InsideZoomView,\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: RoamEventParams['scrollMove']| RoamEventParams['pan']\n ): [number, number] {\n const lastRange = this.range;\n const range = lastRange.slice() as [number, number];\n\n // Calculate transform by the first axis.\n const axisModel = coordSysInfo.axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const percentDelta = getPercentDelta(\n range, axisModel, coordSysInfo, coordSysMainType, controller, e\n );\n\n sliderMove(percentDelta, range, [0, 100], 'all');\n\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n };\n}\n\ninterface DirectionInfo {\n pixel: number\n pixelLength: number\n pixelStart: number\n signal: -1 | 1\n}\ninterface GetDirectionInfo {\n (\n oldPoint: number[],\n newPoint: number[],\n axisModel: AxisBaseModel,\n controller: RoamController,\n coordSysInfo: DataZoomReferCoordSysInfo\n ): DirectionInfo\n}\n\nconst getDirectionInfo: Record<'grid' | 'polar' | 'singleAxis', GetDirectionInfo> = {\n\n grid(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis;\n const ret = {} as DirectionInfo;\n const rect = coordSysInfo.model.coordinateSystem.getRect();\n oldPoint = oldPoint || [0, 0];\n\n if (axis.dim === 'x') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // axis.dim === 'y'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n\n polar(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis;\n const ret = {} as DirectionInfo;\n const polar = coordSysInfo.model.coordinateSystem as Polar;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n const angleExtent = polar.getAngleAxis().getExtent();\n\n oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];\n newPoint = polar.pointToCoord(newPoint);\n\n if (axisModel.mainType === 'radiusAxis') {\n ret.pixel = newPoint[0] - oldPoint[0];\n // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);\n // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);\n ret.pixelLength = radiusExtent[1] - radiusExtent[0];\n ret.pixelStart = radiusExtent[0];\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // 'angleAxis'\n ret.pixel = newPoint[1] - oldPoint[1];\n // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);\n // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);\n ret.pixelLength = angleExtent[1] - angleExtent[0];\n ret.pixelStart = angleExtent[0];\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n\n singleAxis(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis as SingleAxis;\n const rect = coordSysInfo.model.coordinateSystem.getRect();\n const ret = {} as DirectionInfo;\n\n oldPoint = oldPoint || [0, 0];\n\n if (axis.orient === 'horizontal') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // 'vertical'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n }\n};\n\nexport default InsideZoomView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport InsideZoomModel from './InsideZoomModel';\nimport InsideZoomView from './InsideZoomView';\nimport {installDataZoomRoamProcessor} from './roams';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n installCommon(registers);\n\n registers.registerComponentModel(InsideZoomModel);\n registers.registerComponentView(InsideZoomView);\n\n installDataZoomRoamProcessor(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel, {DataZoomOption} from './DataZoomModel';\nimport {\n BoxLayoutOptionMixin,\n ZRColor,\n LineStyleOption,\n AreaStyleOption,\n ItemStyleOption,\n LabelOption\n} from '../../util/types';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface SliderDataZoomOption extends DataZoomOption, BoxLayoutOptionMixin {\n\n show?: boolean\n /**\n * Slider dataZoom don't support textStyle\n */\n\n /**\n * Background of slider zoom component\n */\n backgroundColor?: ZRColor\n\n /**\n * @deprecated Use borderColor instead\n */\n // dataBackgroundColor?: ZRColor\n\n /**\n * border color of the box. For compatibility,\n * if dataBackgroundColor is set, borderColor\n * is ignored.\n */\n borderColor?: ZRColor\n\n /**\n * Border radius of the box.\n */\n borderRadius?: number | number[]\n\n dataBackground?: {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n }\n\n selectedDataBackground?: {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n }\n\n /**\n * Color of selected area.\n */\n fillerColor?: ZRColor\n\n /**\n * @deprecated Use handleStyle instead\n */\n // handleColor?: ZRColor\n\n handleIcon?: string\n\n /**\n * number: height of icon. width will be calculated according to the aspect of icon.\n * string: percent of the slider height. width will be calculated according to the aspect of icon.\n */\n handleSize?: string | number\n\n handleStyle?: ItemStyleOption\n\n /**\n * Icon to indicate it is a draggable panel.\n */\n moveHandleIcon?: string\n moveHandleStyle?: ItemStyleOption\n /**\n * Height of handle rect. Can be a percent string relative to the slider height.\n */\n moveHandleSize?: number\n\n labelPrecision?: number | 'auto'\n\n labelFormatter?: string | ((value: number, valueStr: string) => string)\n\n showDetail?: boolean\n\n showDataShadow?: 'auto' | boolean\n\n zoomLock?: boolean\n\n textStyle?: LabelOption\n\n /**\n * If eable select by brushing\n */\n brushSelect?: boolean\n\n brushStyle?: ItemStyleOption\n\n emphasis?: {\n handleStyle?: ItemStyleOption\n moveHandleStyle?: ItemStyleOption\n }\n}\n\n\nclass SliderZoomModel extends DataZoomModel {\n static readonly type = 'dataZoom.slider';\n type = SliderZoomModel.type;\n\n static readonly layoutMode = 'box';\n\n static defaultOption: SliderDataZoomOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n show: true,\n\n // deault value can only be drived in view stage.\n right: 'ph', // Default align to grid rect.\n top: 'ph', // Default align to grid rect.\n width: 'ph', // Default align to grid rect.\n height: 'ph', // Default align to grid rect.\n left: null, // Default align to grid rect.\n bottom: null, // Default align to grid rect.\n\n borderColor: '#d2dbee',\n borderRadius: 3,\n\n backgroundColor: 'rgba(47,69,84,0)', // Background of slider zoom component.\n\n // dataBackgroundColor: '#ddd',\n dataBackground: {\n lineStyle: {\n color: '#d2dbee',\n width: 0.5\n },\n areaStyle: {\n color: '#d2dbee',\n opacity: 0.2\n }\n },\n\n selectedDataBackground: {\n lineStyle: {\n color: '#8fb0f7',\n width: 0.5\n },\n areaStyle: {\n color: '#8fb0f7',\n opacity: 0.2\n }\n },\n\n // Color of selected window.\n fillerColor: 'rgba(135,175,274,0.2)',\n handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',\n // Percent of the slider height\n handleSize: '100%',\n\n handleStyle: {\n color: '#fff',\n borderColor: '#ACB8D1'\n },\n\n moveHandleSize: 7,\n moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',\n moveHandleStyle: {\n color: '#D2DBEE',\n opacity: 0.7\n },\n\n showDetail: true,\n showDataShadow: 'auto', // Default auto decision.\n realtime: true,\n zoomLock: false, // Whether disable zoom.\n\n textStyle: {\n color: '#6E7079'\n },\n\n brushSelect: true,\n brushStyle: {\n color: 'rgba(135,175,274,0.15)'\n },\n\n emphasis: {\n handleStyle: {\n borderColor: '#8FB0F7'\n },\n moveHandleStyle: {\n color: '#8FB0F7'\n }\n }\n } as SliderDataZoomOption);\n}\n\nexport default SliderZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {bind, each, isFunction, isString, indexOf} from 'zrender/src/core/util';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as graphic from '../../util/graphic';\nimport * as throttle from '../../util/throttle';\nimport DataZoomView from './DataZoomView';\nimport {linearMap, asc, parsePercent} from '../../util/number';\nimport * as layout from '../../util/layout';\nimport sliderMove from '../helper/sliderMove';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n LayoutOrient, Payload, ZRTextVerticalAlign, ZRTextAlign, ZRElementEvent, ParsedValue\n} from '../../util/types';\nimport SliderZoomModel from './SliderZoomModel';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport Axis from '../../coord/Axis';\nimport SeriesModel from '../../model/Series';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { getAxisMainType, collectReferCoordSysModelInfo } from './helper';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol, symbolBuildProxies } from '../../util/symbol';\nimport { deprecateLog } from '../../util/log';\nimport { PointLike } from 'zrender/src/core/Point';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport {createTextStyle} from '../../label/labelStyle';\n\nconst Rect = graphic.Rect;\n\n// Constants\nconst DEFAULT_LOCATION_EDGE_GAP = 7;\nconst DEFAULT_FRAME_BORDER_WIDTH = 1;\nconst DEFAULT_FILLER_SIZE = 30;\nconst DEFAULT_MOVE_HANDLE_SIZE = 7;\nconst HORIZONTAL = 'horizontal';\nconst VERTICAL = 'vertical';\nconst LABEL_GAP = 5;\nconst SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];\n\nconst REALTIME_ANIMATION_CONFIG = {\n easing: 'cubicOut',\n duration: 100,\n delay: 0\n} as const;\n\n// const NORMAL_ANIMATION_CONFIG = {\n// easing: 'cubicInOut',\n// duration: 200\n// } as const;\n\n\ninterface Displayables {\n sliderGroup: graphic.Group;\n handles: [graphic.Path, graphic.Path];\n handleLabels: [graphic.Text, graphic.Text];\n dataShadowSegs: graphic.Group[];\n filler: graphic.Rect;\n\n brushRect: graphic.Rect;\n\n moveHandle: graphic.Rect;\n moveHandleIcon: graphic.Path;\n // invisible move zone.\n moveZone: graphic.Rect;\n}\nclass SliderZoomView extends DataZoomView {\n static type = 'dataZoom.slider';\n type = SliderZoomView.type;\n\n dataZoomModel: SliderZoomModel;\n\n private _displayables = {} as Displayables;\n\n private _orient: LayoutOrient;\n\n private _range: number[];\n\n /**\n * [coord of the first handle, coord of the second handle]\n */\n private _handleEnds: number[];\n\n /**\n * [length, thick]\n */\n private _size: number[];\n\n private _handleWidth: number;\n\n private _handleHeight: number;\n\n private _location: PointLike;\n\n private _brushStart: PointLike;\n private _brushStartTime: number;\n\n private _dragging: boolean;\n\n private _brushing: boolean;\n\n private _dataShadowInfo: {\n thisAxis: Axis\n series: SeriesModel\n thisDim: string\n otherDim: string\n otherAxisInverse: boolean\n };\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.api = api;\n\n // A unique handler for each dataZoom component\n this._onBrush = bind(this._onBrush, this);\n this._onBrushEnd = bind(this._onBrushEnd, this);\n }\n\n render(\n dataZoomModel: SliderZoomModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload & {\n from: string\n type: string\n }\n ) {\n super.render.apply(this, arguments as any);\n\n throttle.createOrUpdate(\n this,\n '_dispatchZoomAction',\n dataZoomModel.get('throttle'),\n 'fixRate'\n );\n\n this._orient = dataZoomModel.getOrient();\n\n if (dataZoomModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n this.group.removeAll();\n return;\n }\n\n // Notice: this._resetInterval() should not be executed when payload.type\n // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'\n // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,\n if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {\n this._buildView();\n }\n\n this._updateView();\n }\n\n dispose() {\n this._clear();\n super.dispose.apply(this, arguments as any);\n }\n\n private _clear() {\n throttle.clear(this, '_dispatchZoomAction');\n\n const zr = this.api.getZr();\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n private _buildView() {\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n this._brushing = false;\n this._displayables.brushRect = null;\n\n this._resetLocation();\n this._resetInterval();\n\n const barGroup = this._displayables.sliderGroup = new graphic.Group();\n\n this._renderBackground();\n\n this._renderHandle();\n\n this._renderDataShadow();\n\n thisGroup.add(barGroup);\n\n this._positionGroup();\n }\n\n private _resetLocation() {\n const dataZoomModel = this.dataZoomModel;\n const api = this.api;\n const showMoveHandle = dataZoomModel.get('brushSelect');\n const moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0;\n\n // If some of x/y/width/height are not specified,\n // auto-adapt according to target grid.\n const coordRect = this._findCoordRect();\n const ecSize = {width: api.getWidth(), height: api.getHeight()};\n // Default align by coordinate system rect.\n const positionInfo = this._orient === HORIZONTAL\n ? {\n // Why using 'right', because right should be used in vertical,\n // and it is better to be consistent for dealing with position param merge.\n right: ecSize.width - coordRect.x - coordRect.width,\n top: (ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize),\n width: coordRect.width,\n height: DEFAULT_FILLER_SIZE\n }\n : { // vertical\n right: DEFAULT_LOCATION_EDGE_GAP,\n top: coordRect.y,\n width: DEFAULT_FILLER_SIZE,\n height: coordRect.height\n };\n\n // Do not write back to option and replace value 'ph', because\n // the 'ph' value should be recalculated when resize.\n const layoutParams = layout.getLayoutParams(dataZoomModel.option);\n\n // Replace the placeholder value.\n each(['right', 'top', 'width', 'height'] as const, function (name) {\n if (layoutParams[name] === 'ph') {\n layoutParams[name] = positionInfo[name];\n }\n });\n\n const layoutRect = layout.getLayoutRect(\n layoutParams,\n ecSize\n );\n\n this._location = {x: layoutRect.x, y: layoutRect.y};\n this._size = [layoutRect.width, layoutRect.height];\n this._orient === VERTICAL && this._size.reverse();\n }\n\n private _positionGroup() {\n const thisGroup = this.group;\n const location = this._location;\n const orient = this._orient;\n\n // Just use the first axis to determine mapping.\n const targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();\n const inverse = targetAxisModel && targetAxisModel.get('inverse');\n\n const sliderGroup = this._displayables.sliderGroup;\n const otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse;\n\n // Transform barGroup.\n sliderGroup.attr(\n (orient === HORIZONTAL && !inverse)\n ? {scaleY: otherAxisInverse ? 1 : -1, scaleX: 1 }\n : (orient === HORIZONTAL && inverse)\n ? {scaleY: otherAxisInverse ? 1 : -1, scaleX: -1 }\n : (orient === VERTICAL && !inverse)\n ? {scaleY: otherAxisInverse ? -1 : 1, scaleX: 1, rotation: Math.PI / 2}\n // Dont use Math.PI, considering shadow direction.\n : {scaleY: otherAxisInverse ? -1 : 1, scaleX: -1, rotation: Math.PI / 2}\n );\n\n // Position barGroup\n const rect = thisGroup.getBoundingRect([sliderGroup]);\n thisGroup.x = location.x - rect.x;\n thisGroup.y = location.y - rect.y;\n thisGroup.markRedraw();\n }\n\n private _getViewExtent() {\n return [0, this._size[0]];\n }\n\n private _renderBackground() {\n const dataZoomModel = this.dataZoomModel;\n const size = this._size;\n const barGroup = this._displayables.sliderGroup;\n const brushSelect = dataZoomModel.get('brushSelect');\n\n barGroup.add(new Rect({\n silent: true,\n shape: {\n x: 0, y: 0, width: size[0], height: size[1]\n },\n style: {\n fill: dataZoomModel.get('backgroundColor')\n },\n z2: -40\n }));\n\n // Click panel, over shadow, below handles.\n const clickPanel = new Rect({\n shape: {\n x: 0, y: 0, width: size[0], height: size[1]\n },\n style: {\n fill: 'transparent'\n },\n z2: 0,\n onclick: bind(this._onClickPanel, this)\n });\n\n const zr = this.api.getZr();\n if (brushSelect) {\n clickPanel.on('mousedown', this._onBrushStart, this);\n clickPanel.cursor = 'crosshair';\n\n zr.on('mousemove', this._onBrush);\n zr.on('mouseup', this._onBrushEnd);\n }\n else {\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n barGroup.add(clickPanel);\n }\n\n private _renderDataShadow() {\n const info = this._dataShadowInfo = this._prepareDataShadowInfo();\n\n this._displayables.dataShadowSegs = [];\n\n if (!info) {\n return;\n }\n\n const size = this._size;\n const seriesModel = info.series;\n const data = seriesModel.getRawData();\n\n const otherDim: string = seriesModel.getShadowDim\n ? seriesModel.getShadowDim() // @see candlestick\n : info.otherDim;\n\n if (otherDim == null) {\n return;\n }\n\n let otherDataExtent = data.getDataExtent(otherDim);\n // Nice extent.\n const otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;\n otherDataExtent = [\n otherDataExtent[0] - otherOffset,\n otherDataExtent[1] + otherOffset\n ];\n const otherShadowExtent = [0, size[1]];\n\n const thisShadowExtent = [0, size[0]];\n\n const areaPoints = [[size[0], 0], [0, 0]];\n const linePoints: number[][] = [];\n const step = thisShadowExtent[1] / (data.count() - 1);\n let thisCoord = 0;\n\n // Optimize for large data shadow\n const stride = Math.round(data.count() / size[0]);\n let lastIsEmpty: boolean;\n data.each([otherDim], function (value: ParsedValue, index) {\n if (stride > 0 && (index % stride)) {\n thisCoord += step;\n return;\n }\n\n // FIXME\n // Should consider axis.min/axis.max when drawing dataShadow.\n\n // FIXME\n // \u5E94\u8BE5\u4F7F\u7528\u7EDF\u4E00\u7684\u7A7A\u5224\u65AD\uFF1F\u8FD8\u662F\u5728list\u91CC\u8FDB\u884C\u7A7A\u5224\u65AD\uFF1F\n const isEmpty = value == null || isNaN(value as number) || value === '';\n // See #4235.\n const otherCoord = isEmpty\n ? 0 : linearMap(value as number, otherDataExtent, otherShadowExtent, true);\n\n // Attempt to draw data shadow precisely when there are empty value.\n if (isEmpty && !lastIsEmpty && index) {\n areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]);\n linePoints.push([linePoints[linePoints.length - 1][0], 0]);\n }\n else if (!isEmpty && lastIsEmpty) {\n areaPoints.push([thisCoord, 0]);\n linePoints.push([thisCoord, 0]);\n }\n\n areaPoints.push([thisCoord, otherCoord]);\n linePoints.push([thisCoord, otherCoord]);\n\n thisCoord += step;\n lastIsEmpty = isEmpty;\n });\n\n const dataZoomModel = this.dataZoomModel;\n\n function createDataShadowGroup(isSelectedArea?: boolean) {\n const model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground');\n const group = new graphic.Group();\n const polygon = new graphic.Polygon({\n shape: {points: areaPoints},\n segmentIgnoreThreshold: 1,\n style: model.getModel('areaStyle').getAreaStyle(),\n silent: true,\n z2: -20\n });\n const polyline = new graphic.Polyline({\n shape: {points: linePoints},\n segmentIgnoreThreshold: 1,\n style: model.getModel('lineStyle').getLineStyle(),\n silent: true,\n z2: -19\n });\n group.add(polygon);\n group.add(polyline);\n return group;\n }\n\n // let dataBackgroundModel = dataZoomModel.getModel('dataBackground');\n for (let i = 0; i < 3; i++) {\n const group = createDataShadowGroup(i === 1);\n this._displayables.sliderGroup.add(group);\n this._displayables.dataShadowSegs.push(group);\n }\n }\n\n private _prepareDataShadowInfo() {\n const dataZoomModel = this.dataZoomModel;\n const showDataShadow = dataZoomModel.get('showDataShadow');\n\n if (showDataShadow === false) {\n return;\n }\n\n // Find a representative series.\n let result: SliderZoomView['_dataShadowInfo'];\n const ecModel = this.ecModel;\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const seriesModels = dataZoomModel\n .getAxisProxy(axisDim, axisIndex)\n .getTargetSeriesModels();\n\n each(seriesModels, function (seriesModel) {\n if (result) {\n return;\n }\n\n if (showDataShadow !== true && indexOf(\n SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')\n ) < 0\n ) {\n return;\n }\n\n const thisAxis = (\n ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel\n ).axis;\n let otherDim = getOtherDim(axisDim);\n let otherAxisInverse;\n const coordSys = seriesModel.coordinateSystem;\n\n if (otherDim != null && coordSys.getOtherAxis) {\n otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;\n }\n\n otherDim = seriesModel.getData().mapDimension(otherDim);\n\n result = {\n thisAxis: thisAxis,\n series: seriesModel,\n thisDim: axisDim,\n otherDim: otherDim,\n otherAxisInverse: otherAxisInverse\n };\n\n }, this);\n\n }, this);\n\n return result;\n }\n\n private _renderHandle() {\n const thisGroup = this.group;\n const displayables = this._displayables;\n const handles: [graphic.Path, graphic.Path] = displayables.handles = [null, null];\n const handleLabels: [graphic.Text, graphic.Text] = displayables.handleLabels = [null, null];\n const sliderGroup = this._displayables.sliderGroup;\n const size = this._size;\n const dataZoomModel = this.dataZoomModel;\n const api = this.api;\n\n const borderRadius = dataZoomModel.get('borderRadius') || 0;\n\n const brushSelect = dataZoomModel.get('brushSelect');\n\n const filler = displayables.filler = new Rect({\n silent: brushSelect,\n style: {\n fill: dataZoomModel.get('fillerColor')\n },\n textConfig: {\n position: 'inside'\n }\n });\n\n sliderGroup.add(filler);\n\n // Frame border.\n sliderGroup.add(new Rect({\n silent: true,\n subPixelOptimize: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1],\n r: borderRadius\n },\n style: {\n stroke: dataZoomModel.get('dataBackgroundColor' as any) // deprecated option\n || dataZoomModel.get('borderColor'),\n lineWidth: DEFAULT_FRAME_BORDER_WIDTH,\n fill: 'rgba(0,0,0,0)'\n }\n }));\n\n // Left and right handle to resize\n each([0, 1] as const, function (handleIndex) {\n let iconStr = dataZoomModel.get('handleIcon');\n if (\n !symbolBuildProxies[iconStr]\n && iconStr.indexOf('path://') < 0\n && iconStr.indexOf('image://') < 0\n ) {\n // Compatitable with the old icon parsers. Which can use a path string without path://\n iconStr = 'path://' + iconStr;\n if (__DEV__) {\n deprecateLog('handleIcon now needs \\'path://\\' prefix when using a path string');\n }\n }\n const path = createSymbol(\n iconStr,\n -1, 0, 2, 2, null, true\n ) as graphic.Path;\n path.attr({\n cursor: getCursor(this._orient),\n draggable: true,\n drift: bind(this._onDragMove, this, handleIndex),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false),\n z2: 5\n });\n\n const bRect = path.getBoundingRect();\n const handleSize = dataZoomModel.get('handleSize');\n\n this._handleHeight = parsePercent(handleSize, this._size[1]);\n this._handleWidth = bRect.width / bRect.height * this._handleHeight;\n\n path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());\n path.style.strokeNoScale = true;\n path.rectHover = true;\n\n path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n enableHoverEmphasis(path);\n\n const handleColor = dataZoomModel.get('handleColor' as any); // deprecated option\n // Compatitable with previous version\n if (handleColor != null) {\n path.style.fill = handleColor;\n }\n\n sliderGroup.add(handles[handleIndex] = path);\n\n const textStyleModel = dataZoomModel.getModel('textStyle');\n\n thisGroup.add(\n handleLabels[handleIndex] = new graphic.Text({\n silent: true,\n invisible: true,\n style: createTextStyle(textStyleModel, {\n x: 0, y: 0, text: '',\n verticalAlign: 'middle',\n align: 'center',\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }),\n z2: 10\n }));\n\n }, this);\n\n // Handle to move. Only visible when brushSelect is set true.\n let actualMoveZone: Displayable = filler;\n if (brushSelect) {\n const moveHandleHeight = parsePercent(dataZoomModel.get('moveHandleSize'), size[1]);\n const moveHandle = displayables.moveHandle = new graphic.Rect({\n style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(),\n silent: true,\n shape: {\n r: [0, 0, 2, 2],\n y: size[1] - 0.5,\n height: moveHandleHeight\n }\n });\n const iconSize = moveHandleHeight * 0.8;\n const moveHandleIcon = displayables.moveHandleIcon = createSymbol(\n dataZoomModel.get('moveHandleIcon'),\n -iconSize / 2, -iconSize / 2, iconSize, iconSize,\n '#fff',\n true\n );\n moveHandleIcon.silent = true;\n moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5;\n\n moveHandle.ensureState('emphasis').style = dataZoomModel.getModel(\n ['emphasis', 'moveHandleStyle']\n ).getItemStyle();\n\n const moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10));\n actualMoveZone = displayables.moveZone = new graphic.Rect({\n invisible: true,\n shape: {\n y: size[1] - moveZoneExpandSize,\n height: moveHandleHeight + moveZoneExpandSize\n }\n });\n\n actualMoveZone.on('mouseover', () => {\n api.enterEmphasis(moveHandle);\n })\n .on('mouseout', () => {\n api.leaveEmphasis(moveHandle);\n });\n\n sliderGroup.add(moveHandle);\n sliderGroup.add(moveHandleIcon);\n sliderGroup.add(actualMoveZone);\n }\n\n actualMoveZone.attr({\n draggable: true,\n cursor: getCursor(this._orient),\n drift: bind(this._onDragMove, this, 'all'),\n ondragstart: bind(this._showDataInfo, this, true),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false)\n });\n }\n\n private _resetInterval() {\n const range = this._range = this.dataZoomModel.getPercentRange();\n const viewExtent = this._getViewExtent();\n\n this._handleEnds = [\n linearMap(range[0], [0, 100], viewExtent, true),\n linearMap(range[1], [0, 100], viewExtent, true)\n ];\n }\n\n private _updateInterval(handleIndex: 0 | 1 | 'all', delta: number): boolean {\n const dataZoomModel = this.dataZoomModel;\n const handleEnds = this._handleEnds;\n const viewExtend = this._getViewExtent();\n const minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n const percentExtent = [0, 100];\n\n sliderMove(\n delta,\n handleEnds,\n viewExtend,\n dataZoomModel.get('zoomLock') ? 'all' : handleIndex,\n minMaxSpan.minSpan != null\n ? linearMap(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null,\n minMaxSpan.maxSpan != null\n ? linearMap(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null\n );\n\n const lastRange = this._range;\n const range = this._range = asc([\n linearMap(handleEnds[0], viewExtend, percentExtent, true),\n linearMap(handleEnds[1], viewExtend, percentExtent, true)\n ]);\n\n return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1];\n }\n\n private _updateView(nonRealtime?: boolean) {\n const displaybles = this._displayables;\n const handleEnds = this._handleEnds;\n const handleInterval = asc(handleEnds.slice());\n const size = this._size;\n\n each([0, 1] as const, function (handleIndex) {\n // Handles\n const handle = displaybles.handles[handleIndex];\n const handleHeight = this._handleHeight;\n (handle as graphic.Path).attr({\n scaleX: handleHeight / 2,\n scaleY: handleHeight / 2,\n // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.\n // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.\n x: handleEnds[handleIndex] + (handleIndex ? -1 : 1),\n y: size[1] / 2 - handleHeight / 2\n });\n }, this);\n\n // Filler\n displaybles.filler.setShape({\n x: handleInterval[0],\n y: 0,\n width: handleInterval[1] - handleInterval[0],\n height: size[1]\n });\n\n const viewExtent = {\n x: handleInterval[0],\n width: handleInterval[1] - handleInterval[0]\n };\n // Move handle\n if (displaybles.moveHandle) {\n displaybles.moveHandle.setShape(viewExtent);\n displaybles.moveZone.setShape(viewExtent);\n // Force update path on the invisible object\n displaybles.moveZone.getBoundingRect();\n displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2);\n }\n\n // update clip path of shadow.\n const dataShadowSegs = displaybles.dataShadowSegs;\n const segIntervals = [0, handleInterval[0], handleInterval[1], size[0]];\n\n for (let i = 0; i < dataShadowSegs.length; i++) {\n const segGroup = dataShadowSegs[i];\n let clipPath = segGroup.getClipPath();\n if (!clipPath) {\n clipPath = new graphic.Rect();\n segGroup.setClipPath(clipPath);\n }\n clipPath.setShape({\n x: segIntervals[i],\n y: 0,\n width: segIntervals[i + 1] - segIntervals[i],\n height: size[1]\n });\n }\n\n this._updateDataInfo(nonRealtime);\n }\n\n private _updateDataInfo(nonRealtime?: boolean) {\n const dataZoomModel = this.dataZoomModel;\n const displaybles = this._displayables;\n const handleLabels = displaybles.handleLabels;\n const orient = this._orient;\n let labelTexts = ['', ''];\n\n // FIXME\n // date\u578B\uFF0C\u652F\u6301formatter\uFF0Cautoformatter\uFF08ec2 date.getAutoFormatter\uFF09\n if (dataZoomModel.get('showDetail')) {\n const axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n const axis = axisProxy.getAxisModel().axis;\n const range = this._range;\n\n const dataInterval = nonRealtime\n // See #4434, data and axis are not processed and reset yet in non-realtime mode.\n ? axisProxy.calculateDataWindow({\n start: range[0], end: range[1]\n }).valueWindow\n : axisProxy.getDataValueWindow();\n\n labelTexts = [\n this._formatLabel(dataInterval[0], axis),\n this._formatLabel(dataInterval[1], axis)\n ];\n }\n }\n\n const orderedHandleEnds = asc(this._handleEnds.slice());\n\n setLabel.call(this, 0);\n setLabel.call(this, 1);\n\n function setLabel(this: SliderZoomView, handleIndex: 0 | 1) {\n // Label\n // Text should not transform by barGroup.\n // Ignore handlers transform\n const barTransform = graphic.getTransform(\n displaybles.handles[handleIndex].parent, this.group\n );\n const direction = graphic.transformDirection(\n handleIndex === 0 ? 'right' : 'left', barTransform\n );\n const offset = this._handleWidth / 2 + LABEL_GAP;\n const textPoint = graphic.applyTransform(\n [\n orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset),\n this._size[1] / 2\n ],\n barTransform\n );\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n verticalAlign: orient === HORIZONTAL ? 'middle' : direction as ZRTextVerticalAlign,\n align: orient === HORIZONTAL ? direction as ZRTextAlign : 'center',\n text: labelTexts[handleIndex]\n });\n }\n }\n\n private _formatLabel(value: ParsedValue, axis: Axis) {\n const dataZoomModel = this.dataZoomModel;\n const labelFormatter = dataZoomModel.get('labelFormatter');\n\n let labelPrecision = dataZoomModel.get('labelPrecision');\n if (labelPrecision == null || labelPrecision === 'auto') {\n labelPrecision = axis.getPixelPrecision();\n }\n\n const valueStr = (value == null || isNaN(value as number))\n ? ''\n // FIXME Glue code\n : (axis.type === 'category' || axis.type === 'time')\n ? axis.scale.getLabel({\n value: Math.round(value as number)\n })\n // param of toFixed should less then 20.\n : (value as number).toFixed(Math.min(labelPrecision as number, 20));\n\n return isFunction(labelFormatter)\n ? labelFormatter(value as number, valueStr)\n : isString(labelFormatter)\n ? labelFormatter.replace('{value}', valueStr)\n : valueStr;\n }\n\n /**\n * @param showOrHide true: show, false: hide\n */\n private _showDataInfo(showOrHide?: boolean) {\n // Always show when drgging.\n showOrHide = this._dragging || showOrHide;\n const displayables = this._displayables;\n const handleLabels = displayables.handleLabels;\n handleLabels[0].attr('invisible', !showOrHide);\n handleLabels[1].attr('invisible', !showOrHide);\n\n // Highlight move handle\n displayables.moveHandle\n && this.api[showOrHide ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1);\n }\n\n private _onDragMove(handleIndex: 0 | 1 | 'all', dx: number, dy: number, event: ZRElementEvent) {\n this._dragging = true;\n\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(event.event);\n\n // Transform dx, dy to bar coordination.\n const barTransform = this._displayables.sliderGroup.getLocalTransform();\n const vertex = graphic.applyTransform([dx, dy], barTransform, true);\n\n const changed = this._updateInterval(handleIndex, vertex[0]);\n\n const realtime = this.dataZoomModel.get('realtime');\n\n this._updateView(!realtime);\n\n // Avoid dispatch dataZoom repeatly but range not changed,\n // which cause bad visual effect when progressive enabled.\n changed && realtime && this._dispatchZoomAction(true);\n }\n\n private _onDragEnd() {\n this._dragging = false;\n this._showDataInfo(false);\n\n // While in realtime mode and stream mode, dispatch action when\n // drag end will cause the whole view rerender, which is unnecessary.\n const realtime = this.dataZoomModel.get('realtime');\n !realtime && this._dispatchZoomAction(false);\n }\n\n private _onClickPanel(e: ZRElementEvent) {\n const size = this._size;\n const localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);\n\n if (localPoint[0] < 0 || localPoint[0] > size[0]\n || localPoint[1] < 0 || localPoint[1] > size[1]\n ) {\n return;\n }\n\n const handleEnds = this._handleEnds;\n const center = (handleEnds[0] + handleEnds[1]) / 2;\n\n const changed = this._updateInterval('all', localPoint[0] - center);\n this._updateView();\n changed && this._dispatchZoomAction(false);\n }\n\n private _onBrushStart(e: ZRElementEvent) {\n const x = e.offsetX;\n const y = e.offsetY;\n this._brushStart = new graphic.Point(x, y);\n\n this._brushing = true;\n\n this._brushStartTime = +new Date();\n // this._updateBrushRect(x, y);\n }\n\n private _onBrushEnd(e: ZRElementEvent) {\n if (!this._brushing) {\n return;\n }\n\n const brushRect = this._displayables.brushRect;\n this._brushing = false;\n\n if (!brushRect) {\n return;\n }\n\n brushRect.attr('ignore', true);\n\n const brushShape = brushRect.shape;\n\n const brushEndTime = +new Date();\n // console.log(brushEndTime - this._brushStartTime);\n if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) {\n // Will treat it as a click\n return;\n }\n\n const viewExtend = this._getViewExtent();\n const percentExtent = [0, 100];\n\n this._range = asc([\n linearMap(brushShape.x, viewExtend, percentExtent, true),\n linearMap(brushShape.x + brushShape.width, viewExtend, percentExtent, true)\n ]);\n\n this._handleEnds = [brushShape.x, brushShape.x + brushShape.width];\n\n this._updateView();\n\n this._dispatchZoomAction(false);\n }\n\n private _onBrush(e: ZRElementEvent) {\n if (this._brushing) {\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(e.event);\n\n this._updateBrushRect(e.offsetX, e.offsetY);\n }\n }\n\n private _updateBrushRect(mouseX: number, mouseY: number) {\n const displayables = this._displayables;\n const dataZoomModel = this.dataZoomModel;\n let brushRect = displayables.brushRect;\n if (!brushRect) {\n brushRect = displayables.brushRect = new Rect({\n silent: true,\n style: dataZoomModel.getModel('brushStyle').getItemStyle()\n });\n displayables.sliderGroup.add(brushRect);\n }\n\n brushRect.attr('ignore', false);\n\n const brushStart = this._brushStart;\n\n const sliderGroup = this._displayables.sliderGroup;\n\n const endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY);\n const startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y);\n\n const size = this._size;\n\n endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0);\n\n brushRect.setShape({\n x: startPoint[0], y: 0,\n width: endPoint[0] - startPoint[0], height: size[1]\n });\n }\n\n /**\n * This action will be throttled.\n */\n _dispatchZoomAction(realtime: boolean) {\n const range = this._range;\n\n this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n dataZoomId: this.dataZoomModel.id,\n animation: realtime ? REALTIME_ANIMATION_CONFIG : null,\n start: range[0],\n end: range[1]\n });\n }\n\n private _findCoordRect() {\n // Find the grid coresponding to the first axis referred by dataZoom.\n let rect: RectLike;\n const coordSysInfoList = collectReferCoordSysModelInfo(this.dataZoomModel).infoList;\n\n if (!rect && coordSysInfoList.length) {\n const coordSys = coordSysInfoList[0].model.coordinateSystem;\n rect = coordSys.getRect && coordSys.getRect();\n }\n\n if (!rect) {\n const width = this.api.getWidth();\n const height = this.api.getHeight();\n rect = {\n x: width * 0.2,\n y: height * 0.2,\n width: width * 0.6,\n height: height * 0.6\n };\n }\n\n return rect;\n }\n\n}\n\nfunction getOtherDim(thisDim: 'x' | 'y' | 'radius' | 'angle' | 'single' | 'z') {\n // FIXME\n // \u8FD9\u4E2A\u903B\u8F91\u548CgetOtherAxis\u91CC\u4E00\u81F4\uFF0C\u4F46\u662F\u5199\u5728\u8FD9\u91CC\u662F\u5426\u4E0D\u597D\n const map = {x: 'y', y: 'x', radius: 'angle', angle: 'radius'};\n return map[thisDim as 'x' | 'y' | 'radius' | 'angle'];\n}\n\nfunction getCursor(orient: LayoutOrient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default SliderZoomView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SliderZoomModel from './SliderZoomModel';\nimport SliderZoomView from './SliderZoomView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentModel(SliderZoomModel);\n registers.registerComponentView(SliderZoomView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installDataZoomInside} from './installDataZoomInside';\nimport {install as installDataZoomSlider} from './installDataZoomSlider';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installDataZoomInside);\n use(installDataZoomSlider);\n\n // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual mapping.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst visualDefault = {\n /**\n * @public\n */\n get: function (visualType: string, key: 'active' | 'inactive', isCategory?: boolean) {\n const value = zrUtil.clone(\n (defaultOption[visualType] || {})[key]\n );\n\n return isCategory\n ? (zrUtil.isArray(value) ? value[value.length - 1] : value)\n : value;\n }\n};\n\nconst defaultOption: {[key: string]: {\n active: string[] | number[]\n inactive: string[] | number[]\n}} = {\n\n color: {\n active: ['#006edd', '#e0ffff'],\n inactive: ['rgba(0,0,0,0)']\n },\n\n colorHue: {\n active: [0, 360],\n inactive: [0, 0]\n },\n\n colorSaturation: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n colorLightness: {\n active: [0.9, 0.5],\n inactive: [0, 0]\n },\n\n colorAlpha: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n opacity: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n symbol: {\n active: ['circle', 'roundRect', 'diamond'],\n inactive: ['none']\n },\n\n symbolSize: {\n active: [10, 50],\n inactive: [0, 0]\n }\n};\n\nexport default visualDefault;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport visualDefault from '../../visual/visualDefault';\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport * as visualSolution from '../../visual/visualSolution';\nimport * as modelUtil from '../../util/model';\nimport * as numberUtil from '../../util/number';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LabelOption,\n ColorString,\n ZRColor,\n BorderOptionMixin,\n OptionDataValue,\n BuiltinVisualProperty,\n DimensionIndex\n} from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\n\nconst mapVisual = VisualMapping.mapVisual;\nconst eachVisual = VisualMapping.eachVisual;\nconst isArray = zrUtil.isArray;\nconst each = zrUtil.each;\nconst asc = numberUtil.asc;\nconst linearMap = numberUtil.linearMap;\n\ntype VisualOptionBase = {[key in BuiltinVisualProperty]?: any};\n\ntype LabelFormatter = (min: OptionDataValue, max?: OptionDataValue) => string;\n\ntype VisualState = VisualMapModel['stateList'][number];\nexport interface VisualMapOption extends\n ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin {\n\n mainType?: 'visualMap'\n\n show?: boolean\n\n align?: string\n\n realtime?: boolean\n /**\n * 'all' or null/undefined: all series.\n * A number or an array of number: the specified series.\n * set min: 0, max: 200, only for campatible with ec2.\n * In fact min max should not have default value.\n */\n seriesIndex?: 'all' | number[] | number\n\n /**\n * min value, must specified if pieces is not specified.\n */\n min?: number\n\n /**\n * max value, must specified if pieces is not specified.\n */\n max?: number\n /**\n * Dimension to be encoded\n */\n dimension?: number\n\n /**\n * Visual configuration for the data in selection\n */\n inRange?: T\n /**\n * Visual configuration for the out of selection\n */\n outOfRange?: T\n\n controller?: {\n inRange?: T\n outOfRange?: T\n }\n target?: {\n inRange?: T\n outOfRange?: T\n }\n\n /**\n * Width of the display item\n */\n itemWidth?: number\n /**\n * Height of the display item\n */\n itemHeight?: number\n\n inverse?: boolean\n\n orient?: 'horizontal' | 'vertical'\n\n backgroundColor?: ZRColor\n contentColor?: ZRColor\n\n inactiveColor?: ZRColor\n\n /**\n * Padding of the component. Can be an array similar to CSS\n */\n padding?: number[] | number\n /**\n * Gap between text and item\n */\n textGap?: number\n\n precision?: number\n\n /**\n * @deprecated\n * Option from version 2\n */\n color?: ColorString[]\n\n formatter?: string | LabelFormatter\n\n /**\n * Text on the both end. Such as ['High', 'Low']\n */\n text?: string[]\n\n textStyle?: LabelOption\n\n\n categories?: unknown\n}\n\nexport interface VisualMeta {\n stops: { value: number, color: ColorString}[]\n outerColors: ColorString[]\n\n dimension?: DimensionIndex\n}\n\nclass VisualMapModel extends ComponentModel {\n\n static type = 'visualMap';\n type = VisualMapModel.type;\n\n static readonly dependencies = ['series'];\n\n readonly stateList = ['inRange', 'outOfRange'] as const;\n\n readonly replacableOptionKeys = [\n 'inRange', 'outOfRange', 'target', 'controller', 'color'\n ] as const;\n\n readonly layoutMode = {\n type: 'box', ignoreSize: true\n } as const;\n\n /**\n * [lowerBound, upperBound]\n */\n dataBound = [-Infinity, Infinity];\n\n protected _dataExtent: [number, number];\n\n targetVisuals = {} as ReturnType;\n\n controllerVisuals = {} as ReturnType;\n\n textStyleModel: Model;\n\n itemSize: number[];\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n }\n\n /**\n * @protected\n */\n optionUpdated(newOption: Opts, isInit?: boolean) {\n const thisOption = this.option;\n\n // FIXME\n // necessary?\n // Disable realtime view update if canvas is not supported.\n if (!env.canvasSupported) {\n thisOption.realtime = false;\n }\n\n !isInit && visualSolution.replaceVisualOption(\n thisOption, newOption, this.replacableOptionKeys\n );\n\n this.textStyleModel = this.getModel('textStyle');\n\n this.resetItemSize();\n\n this.completeVisualOption();\n }\n\n /**\n * @protected\n */\n resetVisual(\n supplementVisualOption: (this: this, mappingOption: VisualMappingOption, state: string) => void\n ) {\n const stateList = this.stateList;\n supplementVisualOption = zrUtil.bind(supplementVisualOption, this);\n\n this.controllerVisuals = visualSolution.createVisualMappings(\n this.option.controller, stateList, supplementVisualOption\n );\n this.targetVisuals = visualSolution.createVisualMappings(\n this.option.target, stateList, supplementVisualOption\n );\n }\n\n /**\n * @public\n */\n getItemSymbol(): string {\n return null;\n }\n\n /**\n * @protected\n * @return {Array.} An array of series indices.\n */\n getTargetSeriesIndices() {\n const optionSeriesIndex = this.option.seriesIndex;\n let seriesIndices: number[] = [];\n\n if (optionSeriesIndex == null || optionSeriesIndex === 'all') {\n this.ecModel.eachSeries(function (seriesModel, index) {\n seriesIndices.push(index);\n });\n }\n else {\n seriesIndices = modelUtil.normalizeToArray(optionSeriesIndex);\n }\n\n return seriesIndices;\n }\n\n /**\n * @public\n */\n eachTargetSeries(\n callback: (this: Ctx, series: SeriesModel) => void,\n context?: Ctx\n ) {\n zrUtil.each(this.getTargetSeriesIndices(), function (seriesIndex) {\n const seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);\n if (seriesModel) {\n callback.call(context, seriesModel);\n }\n }, this);\n }\n\n /**\n * @pubilc\n */\n isTargetSeries(seriesModel: SeriesModel) {\n let is = false;\n this.eachTargetSeries(function (model) {\n model === seriesModel && (is = true);\n });\n return is;\n }\n\n /**\n * @example\n * this.formatValueText(someVal); // format single numeric value to text.\n * this.formatValueText(someVal, true); // format single category value to text.\n * this.formatValueText([min, max]); // format numeric min-max to text.\n * this.formatValueText([this.dataBound[0], max]); // using data lower bound.\n * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.\n *\n * @param value Real value, or this.dataBound[0 or 1].\n * @param isCategory Only available when value is number.\n * @param edgeSymbols Open-close symbol when value is interval.\n * @protected\n */\n formatValueText(\n value: number | string | number[],\n isCategory?: boolean,\n edgeSymbols?: string[]\n ): string {\n const option = this.option;\n const precision = option.precision;\n const dataBound = this.dataBound;\n const formatter = option.formatter;\n let isMinMax: boolean;\n edgeSymbols = edgeSymbols || ['<', '>'] as [string, string];\n\n if (zrUtil.isArray(value)) {\n value = value.slice();\n isMinMax = true;\n }\n\n const textValue = isCategory\n ? value as string // Value is string when isCategory\n : (isMinMax\n ? [toFixed((value as number[])[0]), toFixed((value as number[])[1])]\n : toFixed(value as number)\n );\n\n if (zrUtil.isString(formatter)) {\n return formatter\n .replace('{value}', isMinMax ? (textValue as string[])[0] : textValue as string)\n .replace('{value2}', isMinMax ? (textValue as string[])[1] : textValue as string);\n }\n else if (zrUtil.isFunction(formatter)) {\n return isMinMax\n ? formatter((value as number[])[0], (value as number[])[1])\n : formatter(value as number);\n }\n\n if (isMinMax) {\n if ((value as number[])[0] === dataBound[0]) {\n return edgeSymbols[0] + ' ' + textValue[1];\n }\n else if ((value as number[])[1] === dataBound[1]) {\n return edgeSymbols[1] + ' ' + textValue[0];\n }\n else {\n return textValue[0] + ' - ' + textValue[1];\n }\n }\n else { // Format single value (includes category case).\n return textValue as string;\n }\n\n function toFixed(val: number) {\n return val === dataBound[0]\n ? 'min'\n : val === dataBound[1]\n ? 'max'\n : (+val).toFixed(Math.min(precision, 20));\n }\n }\n\n /**\n * @protected\n */\n resetExtent() {\n const thisOption = this.option;\n\n // Can not calculate data extent by data here.\n // Because series and data may be modified in processing stage.\n // So we do not support the feature \"auto min/max\".\n\n const extent = asc([thisOption.min, thisOption.max] as [number, number]);\n\n this._dataExtent = extent;\n }\n\n /**\n * PENDING:\n * delete this method if no outer usage.\n *\n * Return Concrete dimention. If return null/undefined, no dimension used.\n */\n // getDataDimension(data: SeriesData) {\n // const optDim = this.option.dimension;\n\n // if (optDim != null) {\n // return data.getDimension(optDim);\n // }\n\n // const dimNames = data.dimensions;\n // for (let i = dimNames.length - 1; i >= 0; i--) {\n // const dimName = dimNames[i];\n // const dimInfo = data.getDimensionInfo(dimName);\n // if (!dimInfo.isCalculationCoord) {\n // return dimName;\n // }\n // }\n // }\n\n getDataDimensionIndex(data: SeriesData): DimensionIndex {\n const optDim = this.option.dimension;\n\n if (optDim != null) {\n return data.getDimensionIndex(optDim);\n }\n\n const dimNames = data.dimensions;\n for (let i = dimNames.length - 1; i >= 0; i--) {\n const dimName = dimNames[i];\n const dimInfo = data.getDimensionInfo(dimName);\n if (!dimInfo.isCalculationCoord) {\n return dimInfo.storageDimensionIndex;\n }\n }\n }\n\n getExtent() {\n return this._dataExtent.slice() as [number, number];\n }\n\n completeVisualOption() {\n\n const ecModel = this.ecModel;\n const thisOption = this.option;\n const base = {\n inRange: thisOption.inRange,\n outOfRange: thisOption.outOfRange\n };\n\n const target = thisOption.target || (thisOption.target = {});\n const controller = thisOption.controller || (thisOption.controller = {});\n\n zrUtil.merge(target, base); // Do not override\n zrUtil.merge(controller, base); // Do not override\n\n const isCategory = this.isCategory();\n\n completeSingle.call(this, target);\n completeSingle.call(this, controller);\n completeInactive.call(this, target, 'inRange', 'outOfRange');\n // completeInactive.call(this, target, 'outOfRange', 'inRange');\n completeController.call(this, controller);\n\n function completeSingle(this: VisualMapModel, base: VisualMapOption['target']) {\n // Compatible with ec2 dataRange.color.\n // The mapping order of dataRange.color is: [high value, ..., low value]\n // whereas inRange.color and outOfRange.color is [low value, ..., high value]\n // Notice: ec2 has no inverse.\n if (isArray(thisOption.color)\n // If there has been inRange: {symbol: ...}, adding color is a mistake.\n // So adding color only when no inRange defined.\n && !base.inRange\n ) {\n base.inRange = {color: thisOption.color.slice().reverse()};\n }\n\n // Compatible with previous logic, always give a defautl color, otherwise\n // simple config with no inRange and outOfRange will not work.\n // Originally we use visualMap.color as the default color, but setOption at\n // the second time the default color will be erased. So we change to use\n // constant DEFAULT_COLOR.\n // If user do not want the default color, set inRange: {color: null}.\n base.inRange = base.inRange || {color: ecModel.get('gradientColor')};\n }\n\n function completeInactive(\n this: VisualMapModel,\n base: VisualMapOption['target'],\n stateExist: VisualState,\n stateAbsent: VisualState\n ) {\n const optExist = base[stateExist];\n let optAbsent = base[stateAbsent];\n\n if (optExist && !optAbsent) {\n optAbsent = base[stateAbsent] = {};\n each(optExist, function (visualData, visualType: BuiltinVisualProperty) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n const defa = visualDefault.get(visualType, 'inactive', isCategory);\n\n if (defa != null) {\n optAbsent[visualType] = defa;\n\n // Compatibable with ec2:\n // Only inactive color to rgba(0,0,0,0) can not\n // make label transparent, so use opacity also.\n if (visualType === 'color'\n && !optAbsent.hasOwnProperty('opacity')\n && !optAbsent.hasOwnProperty('colorAlpha')\n ) {\n optAbsent.opacity = [0, 0];\n }\n }\n });\n }\n }\n\n function completeController(this: VisualMapModel, controller?: VisualMapOption['controller']) {\n const symbolExists = (controller.inRange || {}).symbol\n || (controller.outOfRange || {}).symbol;\n const symbolSizeExists = (controller.inRange || {}).symbolSize\n || (controller.outOfRange || {}).symbolSize;\n const inactiveColor = this.get('inactiveColor');\n const itemSymbol = this.getItemSymbol();\n const defaultSymbol = itemSymbol || 'roundRect';\n\n each(this.stateList, function (state: VisualState) {\n\n const itemSize = this.itemSize;\n let visuals = controller[state];\n\n // Set inactive color for controller if no other color\n // attr (like colorAlpha) specified.\n if (!visuals) {\n visuals = controller[state] = {\n color: isCategory ? inactiveColor : [inactiveColor]\n };\n }\n\n // Consistent symbol and symbolSize if not specified.\n if (visuals.symbol == null) {\n visuals.symbol = symbolExists\n && zrUtil.clone(symbolExists)\n || (isCategory ? defaultSymbol : [defaultSymbol]);\n }\n if (visuals.symbolSize == null) {\n visuals.symbolSize = symbolSizeExists\n && zrUtil.clone(symbolSizeExists)\n || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);\n }\n\n // Filter none\n visuals.symbol = mapVisual(visuals.symbol, function (symbol) {\n return symbol === 'none' ? defaultSymbol : symbol;\n });\n\n // Normalize symbolSize\n const symbolSize = visuals.symbolSize;\n\n if (symbolSize != null) {\n let max = -Infinity;\n // symbolSize can be object when categories defined.\n eachVisual(symbolSize, function (value) {\n value > max && (max = value);\n });\n visuals.symbolSize = mapVisual(symbolSize, function (value) {\n return linearMap(value, [0, max], [0, itemSize[0]], true);\n });\n }\n\n }, this);\n }\n }\n\n resetItemSize() {\n this.itemSize = [\n parseFloat(this.get('itemWidth') as unknown as string),\n parseFloat(this.get('itemHeight') as unknown as string)\n ];\n }\n\n isCategory() {\n return !!this.option.categories;\n }\n\n /**\n * @public\n * @abstract\n */\n setSelected(selected?: any) {}\n\n getSelected(): any {\n return null;\n }\n\n /**\n * @public\n * @abstract\n */\n getValueState(value: any): VisualMapModel['stateList'][number] {\n return null;\n }\n\n /**\n * FIXME\n * Do not publish to thirt-part-dev temporarily\n * util the interface is stable. (Should it return\n * a function but not visual meta?)\n *\n * @pubilc\n * @abstract\n * @param getColorVisual\n * params: value, valueState\n * return: color\n * @return {Object} visualMeta\n * should includes {stops, outerColors}\n * outerColor means [colorBeyondMinValue, colorBeyondMaxValue]\n */\n getVisualMeta(getColorVisual: (value: number, valueState: VisualState) => string): VisualMeta {\n return null;\n }\n\n\n static defaultOption: VisualMapOption = {\n show: true,\n\n zlevel: 0,\n z: 4,\n\n seriesIndex: 'all',\n\n min: 0,\n max: 200,\n\n left: 0,\n right: null,\n top: null,\n bottom: 0,\n\n itemWidth: null,\n itemHeight: null,\n inverse: false,\n orient: 'vertical', // 'horizontal' \u00A6 'vertical'\n\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc', // \u503C\u57DF\u8FB9\u6846\u989C\u8272\n contentColor: '#5793f3',\n inactiveColor: '#aaa',\n borderWidth: 0,\n padding: 5,\n // \u63A5\u53D7\u6570\u7EC4\u5206\u522B\u8BBE\u5B9A\u4E0A\u53F3\u4E0B\u5DE6\u8FB9\u8DDD\uFF0C\u540Ccss\n textGap: 10, //\n precision: 0, // \u5C0F\u6570\u7CBE\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A0\uFF0C\u65E0\u5C0F\u6570\u70B9\n\n textStyle: {\n color: '#333' // \u503C\u57DF\u6587\u5B57\u989C\u8272\n }\n };\n}\n\nexport default VisualMapModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapModel, { VisualMapOption, VisualMeta } from './VisualMapModel';\nimport * as numberUtil from '../../util/number';\nimport { VisualMappingOption } from '../../visual/VisualMapping';\nimport { inheritDefaultOption } from '../../util/component';\nimport { ItemStyleOption } from '../../util/types';\n\n// Constant\nconst DEFAULT_BAR_BOUND = [20, 140];\n\ntype RangeWithAuto = {\n auto?: 0 | 1\n};\n\ntype VisualState = VisualMapModel['stateList'][number];\n\nexport interface ContinousVisualMapOption extends VisualMapOption {\n\n align?: 'auto' | 'left' | 'right' | 'top' | 'bottom'\n\n /**\n * This prop effect default component type determine\n * @see echarts/component/visualMap/typeDefaulter.\n */\n calculable?: boolean\n\n /**\n * selected range. In default case `range` is [min, max]\n * and can auto change along with modification of min max,\n * util user specifid a range.\n */\n range?: number[]\n /**\n * Whether to enable hover highlight.\n */\n hoverLink?: boolean\n\n /**\n * The extent of hovered data.\n */\n hoverLinkDataSize?: number\n /**\n * Whether trigger hoverLink when hover handle.\n * If not specified, follow the value of `realtime`.\n */\n hoverLinkOnHandle?: boolean,\n\n handleIcon?: string,\n // Percent of the item width\n handleSize?: string | number,\n handleStyle?: ItemStyleOption\n\n indicatorIcon?: string,\n // Percent of the item width\n indicatorSize?: string | number,\n indicatorStyle?: ItemStyleOption\n\n emphasis?: {\n handleStyle?: ItemStyleOption\n }\n}\n\nclass ContinuousModel extends VisualMapModel {\n\n static type = 'visualMap.continuous' as const;\n type = ContinuousModel.type;\n\n /**\n * @override\n */\n optionUpdated(newOption: ContinousVisualMapOption, isInit: boolean) {\n super.optionUpdated.apply(this, arguments as any);\n\n this.resetExtent();\n\n this.resetVisual(function (mappingOption?: VisualMappingOption) {\n mappingOption.mappingMethod = 'linear';\n mappingOption.dataExtent = this.getExtent();\n });\n\n this._resetRange();\n }\n\n /**\n * @protected\n * @override\n */\n resetItemSize() {\n super.resetItemSize.apply(this, arguments as any);\n\n const itemSize = this.itemSize;\n\n (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);\n (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);\n }\n\n /**\n * @private\n */\n _resetRange() {\n const dataExtent = this.getExtent();\n const range = this.option.range;\n\n if (!range || (range as RangeWithAuto).auto) {\n // `range` should always be array (so we dont use other\n // value like 'auto') for user-friend. (consider getOption).\n (dataExtent as RangeWithAuto).auto = 1;\n this.option.range = dataExtent;\n }\n else if (zrUtil.isArray(range)) {\n if (range[0] > range[1]) {\n range.reverse();\n }\n range[0] = Math.max(range[0], dataExtent[0]);\n range[1] = Math.min(range[1], dataExtent[1]);\n }\n }\n\n /**\n * @protected\n * @override\n */\n completeVisualOption() {\n super.completeVisualOption.apply(this, arguments as any);\n\n zrUtil.each(this.stateList, function (state: VisualState) {\n const symbolSize = this.option.controller[state].symbolSize;\n if (symbolSize && symbolSize[0] !== symbolSize[1]) {\n symbolSize[0] = symbolSize[1] / 3; // For good looking.\n }\n }, this);\n }\n\n /**\n * @override\n */\n setSelected(selected: number[]) {\n this.option.range = selected.slice();\n this._resetRange();\n }\n\n /**\n * @public\n */\n getSelected(): [number, number] {\n const dataExtent = this.getExtent();\n\n const dataInterval = numberUtil.asc(\n (this.get('range') || []).slice()\n ) as [number, number];\n\n // Clamp\n dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);\n dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);\n dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);\n dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);\n\n return dataInterval;\n }\n\n /**\n * @override\n */\n getValueState(value: number): VisualState {\n const range = this.option.range;\n const dataExtent = this.getExtent();\n\n // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.\n // range[1] is processed likewise.\n return (\n (range[0] <= dataExtent[0] || range[0] <= value)\n && (range[1] >= dataExtent[1] || value <= range[1])\n ) ? 'inRange' : 'outOfRange';\n }\n\n findTargetDataIndices(range: number[]) {\n type DataIndices = {\n seriesId: string\n dataIndex: number[]\n };\n const result: DataIndices[] = [];\n\n this.eachTargetSeries(function (seriesModel) {\n const dataIndices: number[] = [];\n const data = seriesModel.getData();\n\n data.each(this.getDataDimensionIndex(data), function (value, dataIndex) {\n range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);\n }, this);\n\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n\n return result;\n }\n\n /**\n * @implement\n */\n getVisualMeta(\n getColorVisual: (value: number, valueState: VisualState) => string\n ) {\n type ColorStop = VisualMeta['stops'][number];\n const oVals = getColorStopValues(this, 'outOfRange', this.getExtent());\n const iVals = getColorStopValues(this, 'inRange', this.option.range.slice());\n const stops: ColorStop[] = [];\n\n function setStop(value: number, valueState: VisualState) {\n stops.push({\n value: value,\n color: getColorVisual(value, valueState)\n });\n }\n\n // Format to: outOfRange -- inRange -- outOfRange.\n let iIdx = 0;\n let oIdx = 0;\n const iLen = iVals.length;\n const oLen = oVals.length;\n\n for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {\n // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.\n if (oVals[oIdx] < iVals[iIdx]) {\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n for (let first = 1; iIdx < iLen; iIdx++, first = 0) {\n // If range is full, value beyond min, max will be clamped.\n // make a singularity\n first && stops.length && setStop(iVals[iIdx], 'outOfRange');\n setStop(iVals[iIdx], 'inRange');\n }\n for (let first = 1; oIdx < oLen; oIdx++) {\n if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {\n // make a singularity\n if (first) {\n stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');\n first = 0;\n }\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n const stopsLen = stops.length;\n\n return {\n stops: stops,\n outerColors: [\n stopsLen ? stops[0].color : 'transparent',\n stopsLen ? stops[stopsLen - 1].color : 'transparent'\n ] as VisualMeta['outerColors']\n };\n }\n\n static defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n align: 'auto', // 'auto', 'left', 'right', 'top', 'bottom'\n calculable: false,\n hoverLink: true,\n realtime: true,\n\n handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z',\n handleSize: '120%',\n\n handleStyle: {\n borderColor: '#fff',\n borderWidth: 1\n },\n\n indicatorIcon: 'circle',\n indicatorSize: '50%',\n indicatorStyle: {\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n // emphasis: {\n // handleStyle: {\n // shadowBlur: 3,\n // shadowOffsetX: 1,\n // shadowOffsetY: 1,\n // shadowColor: 'rgba(0,0,0,0.2)'\n // }\n // }\n }) as ContinousVisualMapOption;\n}\n\n\nfunction getColorStopValues(\n visualMapModel: ContinuousModel,\n valueState: VisualState,\n dataExtent: number[]\n) {\n if (dataExtent[0] === dataExtent[1]) {\n return dataExtent.slice();\n }\n\n // When using colorHue mapping, it is not linear color any more.\n // Moreover, canvas gradient seems not to be accurate linear.\n // FIXME\n // Should be arbitrary value 100? or based on pixel size?\n const count = 200;\n const step = (dataExtent[1] - dataExtent[0]) / count;\n\n let value = dataExtent[0];\n const stopValues = [];\n for (let i = 0; i <= count && value < dataExtent[1]; i++) {\n stopValues.push(value);\n value += step;\n }\n stopValues.push(dataExtent[1]);\n\n return stopValues;\n}\n\nexport default ContinuousModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {Group, Rect} from '../../util/graphic';\nimport * as formatUtil from '../../util/format';\nimport * as layout from '../../util/layout';\nimport VisualMapping from '../../visual/VisualMapping';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport VisualMapModel from './VisualMapModel';\nimport { VisualOptionUnit, ColorString } from '../../util/types';\n\ntype VisualState = VisualMapModel['stateList'][number];\n\nclass VisualMapView extends ComponentView {\n static type = 'visualMap';\n type = VisualMapView.type;\n\n autoPositionValues = {left: 1, right: 1, top: 1, bottom: 1} as const;\n\n ecModel: GlobalModel;\n\n api: ExtensionAPI;\n\n visualMapModel: VisualMapModel;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.ecModel = ecModel;\n this.api = api;\n }\n\n /**\n * @protected\n */\n render(\n visualMapModel: VisualMapModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown // TODO: TYPE\n ) {\n this.visualMapModel = visualMapModel;\n\n if (visualMapModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n this.doRender(visualMapModel, ecModel, api, payload);\n }\n\n /**\n * @protected\n */\n renderBackground(group: Group) {\n const visualMapModel = this.visualMapModel;\n const padding = formatUtil.normalizeCssArray(visualMapModel.get('padding') || 0);\n const rect = group.getBoundingRect();\n\n group.add(new Rect({\n z2: -1, // Lay background rect on the lowest layer.\n silent: true,\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[3] + padding[1],\n height: rect.height + padding[0] + padding[2]\n },\n style: {\n fill: visualMapModel.get('backgroundColor'),\n stroke: visualMapModel.get('borderColor'),\n lineWidth: visualMapModel.get('borderWidth')\n }\n }));\n }\n\n /**\n * @protected\n * @param targetValue can be Infinity or -Infinity\n * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'\n * @param opts\n * @param opts.forceState Specify state, instead of using getValueState method.\n * @param opts.convertOpacityToAlpha For color gradient in controller widget.\n * @return {*} Visual value.\n */\n protected getControllerVisual(\n targetValue: number,\n visualCluster: 'color' | 'opacity' | 'symbol' | 'symbolSize',\n opts?: {\n forceState?: VisualState\n convertOpacityToAlpha?: boolean\n }\n ) {\n\n opts = opts || {};\n\n const forceState = opts.forceState;\n const visualMapModel = this.visualMapModel;\n const visualObj: {[key in typeof visualCluster]?: VisualOptionUnit[key]} = {};\n\n // Default values.\n if (visualCluster === 'color') {\n const defaultColor = visualMapModel.get('contentColor');\n visualObj.color = defaultColor as ColorString;\n }\n\n function getter(key: typeof visualCluster) {\n return visualObj[key];\n }\n\n function setter(key: typeof visualCluster, value: any) {\n (visualObj as any)[key] = value;\n }\n\n const mappings = visualMapModel.controllerVisuals[\n forceState || visualMapModel.getValueState(targetValue)\n ];\n const visualTypes = VisualMapping.prepareVisualTypes(mappings);\n\n zrUtil.each(visualTypes, function (type) {\n let visualMapping = mappings[type];\n if (opts.convertOpacityToAlpha && type === 'opacity') {\n type = 'colorAlpha';\n visualMapping = mappings.__alphaForOpacity;\n }\n if (VisualMapping.dependsOn(type, visualCluster)) {\n visualMapping && visualMapping.applyVisual(\n targetValue, getter, setter\n );\n }\n });\n\n return visualObj[visualCluster];\n }\n\n protected positionGroup(group: Group) {\n const model = this.visualMapModel;\n const api = this.api;\n\n layout.positionElement(\n group,\n model.getBoxLayoutParams(),\n {width: api.getWidth(), height: api.getHeight()}\n );\n }\n\n protected doRender(\n visualMapModel: VisualMapModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown\n ) {}\n}\n\nexport default VisualMapView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getLayoutRect} from '../../util/layout';\nimport VisualMapModel from './VisualMapModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\n\nconst paramsSet = [\n ['left', 'right', 'width'],\n ['top', 'bottom', 'height']\n] as const;\nexport type ItemHorizontalAlign = typeof paramsSet[0][number];\nexport type ItemVerticalAlign = typeof paramsSet[1][number];\nexport type ItemAlign = ItemVerticalAlign | ItemHorizontalAlign;\n\n/**\n * @param visualMapModel\n * @param api\n * @param itemSize always [short, long]\n * @return {string} 'left' or 'right' or 'top' or 'bottom'\n */\nexport function getItemAlign(\n visualMapModel: VisualMapModel,\n api: ExtensionAPI,\n itemSize: number[]\n): ItemAlign {\n const modelOption = visualMapModel.option;\n const itemAlign = modelOption.align;\n\n if (itemAlign != null && itemAlign !== 'auto') {\n return itemAlign as ItemAlign;\n }\n\n // Auto decision align.\n const ecSize = {width: api.getWidth(), height: api.getHeight()};\n const realIndex = modelOption.orient === 'horizontal' ? 1 : 0;\n\n const reals = paramsSet[realIndex];\n const fakeValue = [0, null, 10];\n\n const layoutInput = {} as Record;\n for (let i = 0; i < 3; i++) {\n layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];\n layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];\n }\n\n const rParam = ([['x', 'width', 3], ['y', 'height', 0]] as const)[realIndex];\n const rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);\n\n return reals[\n (rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5\n < ecSize[rParam[1]] * 0.5 ? 0 : 1\n ];\n}\n\n/**\n * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and\n * dataIndexInside means filtered index.\n */\n\n // TODO: TYPE more specified payload types.\nexport function makeHighDownBatch(batch: Payload['batch'], visualMapModel: VisualMapModel): Payload['batch'] {\n zrUtil.each(batch || [], function (batchItem) {\n if (batchItem.dataIndex != null) {\n batchItem.dataIndexInside = batchItem.dataIndex;\n batchItem.dataIndex = null;\n }\n batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : '');\n });\n return batch;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport LinearGradient, { LinearGradientObject } from 'zrender/src/graphic/LinearGradient';\nimport * as eventTool from 'zrender/src/core/event';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport * as helper from './helper';\nimport * as modelUtil from '../../util/model';\nimport VisualMapModel from './VisualMapModel';\nimport ContinuousModel from './ContinuousModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport { TextVerticalAlign, TextAlign } from 'zrender/src/core/types';\nimport { ColorString, Payload } from '../../util/types';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { setAsHighDownDispatcher } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { getECData } from '../../util/innerStore';\n\nconst linearMap = numberUtil.linearMap;\nconst each = zrUtil.each;\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\n// Arbitrary value\nconst HOVER_LINK_SIZE = 12;\nconst HOVER_LINK_OUT = 6;\n\ntype Orient = VisualMapModel['option']['orient'];\n\ntype ShapeStorage = {\n handleThumbs: graphic.Path[]\n handleLabelPoints: number[][]\n handleLabels: graphic.Text[]\n\n inRange: graphic.Polygon\n outOfRange: graphic.Polygon\n\n mainGroup: graphic.Group\n\n indicator: graphic.Path\n indicatorLabel: graphic.Text\n indicatorLabelPoint: number[]\n};\n\ntype TargetDataIndices = ReturnType;\n\ntype BarVisual = {\n barColor: LinearGradient,\n barPoints: number[][]\n handlesColor: ColorString[]\n};\n\ntype Direction = 'left' | 'right' | 'top' | 'bottom';\n// Notice:\n// Any \"interval\" should be by the order of [low, high].\n// \"handle0\" (handleIndex === 0) maps to\n// low data value: this._dataInterval[0] and has low coord.\n// \"handle1\" (handleIndex === 1) maps to\n// high data value: this._dataInterval[1] and has high coord.\n// The logic of transform is implemented in this._createBarGroup.\n\nclass ContinuousView extends VisualMapView {\n static type = 'visualMap.continuous';\n type = ContinuousView.type;\n\n visualMapModel: ContinuousModel;\n\n private _shapes = {} as ShapeStorage;\n\n private _dataInterval: number[] = [];\n\n private _handleEnds: number[] = [];\n\n private _orient: Orient;\n\n private _useHandle: boolean;\n\n private _hoverLinkDataIndices: TargetDataIndices = [];\n\n private _dragging: boolean;\n\n private _hovering: boolean;\n\n private _firstShowIndicator: boolean;\n\n private _api: ExtensionAPI;\n\n\n doRender(\n visualMapModel: ContinuousModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: {type: string, from: string}\n ) {\n this._api = api;\n\n if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {\n this._buildView();\n }\n }\n\n private _buildView() {\n this.group.removeAll();\n\n const visualMapModel = this.visualMapModel;\n const thisGroup = this.group;\n\n this._orient = visualMapModel.get('orient');\n this._useHandle = visualMapModel.get('calculable');\n\n this._resetInterval();\n\n this._renderBar(thisGroup);\n\n const dataRangeText = visualMapModel.get('text');\n this._renderEndsText(thisGroup, dataRangeText, 0);\n this._renderEndsText(thisGroup, dataRangeText, 1);\n\n // Do this for background size calculation.\n this._updateView(true);\n\n // After updating view, inner shapes is built completely,\n // and then background can be rendered.\n this.renderBackground(thisGroup);\n\n // Real update view\n this._updateView();\n\n this._enableHoverLinkToSeries();\n this._enableHoverLinkFromSeries();\n\n this.positionGroup(thisGroup);\n }\n\n private _renderEndsText(group: graphic.Group, dataRangeText: string[], endsIndex?: 0 | 1) {\n if (!dataRangeText) {\n return;\n }\n\n // Compatible with ec2, text[0] map to high value, text[1] map low value.\n let text = dataRangeText[1 - endsIndex];\n text = text != null ? text + '' : '';\n\n const visualMapModel = this.visualMapModel;\n const textGap = visualMapModel.get('textGap');\n const itemSize = visualMapModel.itemSize;\n\n const barGroup = this._shapes.mainGroup;\n const position = this._applyTransform(\n [\n itemSize[0] / 2,\n endsIndex === 0 ? -textGap : itemSize[1] + textGap\n ],\n barGroup\n ) as number[];\n const align = this._applyTransform(\n endsIndex === 0 ? 'bottom' : 'top',\n barGroup\n );\n const orient = this._orient;\n const textStyleModel = this.visualMapModel.textStyleModel;\n\n this.group.add(new graphic.Text({\n style: {\n x: position[0],\n y: position[1],\n verticalAlign: orient === 'horizontal' ? 'middle' : align as TextVerticalAlign,\n align: orient === 'horizontal' ? align as TextAlign : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n }\n\n private _renderBar(targetGroup: graphic.Group) {\n const visualMapModel = this.visualMapModel;\n const shapes = this._shapes;\n const itemSize = visualMapModel.itemSize;\n const orient = this._orient;\n const useHandle = this._useHandle;\n const itemAlign = helper.getItemAlign(visualMapModel, this.api, itemSize);\n const mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign);\n\n const gradientBarGroup = new graphic.Group();\n mainGroup.add(gradientBarGroup);\n\n // Bar\n gradientBarGroup.add(shapes.outOfRange = createPolygon());\n gradientBarGroup.add(shapes.inRange = createPolygon(\n null,\n useHandle ? getCursor(this._orient) : null,\n zrUtil.bind(this._dragHandle, this, 'all', false),\n zrUtil.bind(this._dragHandle, this, 'all', true)\n ));\n\n // A border radius clip.\n gradientBarGroup.setClipPath(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: itemSize[0],\n height: itemSize[1],\n r: 3\n }\n }));\n\n const textRect = visualMapModel.textStyleModel.getTextRect('\u56FD');\n const textSize = mathMax(textRect.width, textRect.height);\n\n // Handle\n if (useHandle) {\n shapes.handleThumbs = [];\n shapes.handleLabels = [];\n shapes.handleLabelPoints = [];\n\n this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient);\n this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient);\n }\n\n this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient);\n\n targetGroup.add(mainGroup);\n }\n\n private _createHandle(\n visualMapModel: ContinuousModel,\n mainGroup: graphic.Group,\n handleIndex: 0 | 1,\n itemSize: number[],\n textSize: number,\n orient: Orient\n ) {\n const onDrift = zrUtil.bind(this._dragHandle, this, handleIndex, false);\n const onDragEnd = zrUtil.bind(this._dragHandle, this, handleIndex, true);\n const handleSize = parsePercent(visualMapModel.get('handleSize'), itemSize[0]);\n const handleThumb = createSymbol(\n visualMapModel.get('handleIcon'),\n -handleSize / 2, -handleSize / 2, handleSize, handleSize,\n null, true\n );\n const cursor = getCursor(this._orient);\n handleThumb.attr({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n ondragend: onDragEnd,\n onmousemove(e) {\n eventTool.stop(e.event);\n }\n });\n handleThumb.x = itemSize[0] / 2;\n\n handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle());\n (handleThumb as graphic.Path).setStyle({\n strokeNoScale: true,\n strokeFirst: true\n });\n (handleThumb as graphic.Path).style.lineWidth *= 2;\n\n handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n setAsHighDownDispatcher(handleThumb, true);\n\n mainGroup.add(handleThumb);\n\n // Text is always horizontal layout but should not be effected by\n // transform (orient/inverse). So label is built separately but not\n // use zrender/graphic/helper/RectText, and is located based on view\n // group (according to handleLabelPoint) but not barGroup.\n const textStyleModel = this.visualMapModel.textStyleModel;\n const handleLabel = new graphic.Text({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd,\n style: {\n x: 0, y: 0, text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n handleLabel.ensureState('blur').style = {\n opacity: 0.1\n };\n handleLabel.stateTransition = { duration: 200 };\n\n this.group.add(handleLabel);\n\n const handleLabelPoint = [handleSize, 0];\n\n const shapes = this._shapes;\n shapes.handleThumbs[handleIndex] = handleThumb;\n shapes.handleLabelPoints[handleIndex] = handleLabelPoint;\n shapes.handleLabels[handleIndex] = handleLabel;\n }\n\n private _createIndicator(\n visualMapModel: ContinuousModel,\n mainGroup: graphic.Group,\n itemSize: number[],\n textSize: number,\n orient: Orient\n ) {\n const scale = parsePercent(visualMapModel.get('indicatorSize'), itemSize[0]);\n const indicator = createSymbol(\n visualMapModel.get('indicatorIcon'),\n -scale / 2, -scale / 2, scale, scale,\n null, true\n );\n indicator.attr({\n cursor: 'move',\n invisible: true,\n silent: true,\n x: itemSize[0] / 2\n });\n const indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();\n if (indicator instanceof ZRImage) {\n const pathStyle = indicator.style;\n indicator.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, indicatorStyle));\n }\n else {\n indicator.useStyle(indicatorStyle);\n }\n\n mainGroup.add(indicator);\n\n const textStyleModel = this.visualMapModel.textStyleModel;\n const indicatorLabel = new graphic.Text({\n silent: true,\n invisible: true,\n style: {\n x: 0, y: 0, text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n this.group.add(indicatorLabel);\n\n const indicatorLabelPoint = [\n (orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2,\n 0\n ];\n\n const shapes = this._shapes;\n shapes.indicator = indicator;\n shapes.indicatorLabel = indicatorLabel;\n shapes.indicatorLabelPoint = indicatorLabelPoint;\n\n this._firstShowIndicator = true;\n }\n\n private _dragHandle(\n handleIndex: 0 | 1 | 'all',\n isEnd?: boolean,\n // dx is event from ondragend if isEnd is true. It's not used\n dx?: number | ElementEvent,\n dy?: number\n ) {\n if (!this._useHandle) {\n return;\n }\n\n this._dragging = !isEnd;\n\n if (!isEnd) {\n // Transform dx, dy to bar coordination.\n const vertex = this._applyTransform([dx as number, dy], this._shapes.mainGroup, true) as number[];\n this._updateInterval(handleIndex, vertex[1]);\n\n this._hideIndicator();\n // Considering realtime, update view should be executed\n // before dispatch action.\n this._updateView();\n }\n\n // dragEnd do not dispatch action when realtime.\n if (isEnd === !this.visualMapModel.get('realtime')) { // jshint ignore:line\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: this._dataInterval.slice()\n });\n }\n\n if (isEnd) {\n !this._hovering && this._clearHoverLinkToSeries();\n }\n else if (useHoverLinkOnHandle(this.visualMapModel)) {\n this._doHoverLinkToSeries(this._handleEnds[handleIndex as 0 | 1], false);\n }\n }\n\n private _resetInterval() {\n const visualMapModel = this.visualMapModel;\n\n const dataInterval = this._dataInterval = visualMapModel.getSelected();\n const dataExtent = visualMapModel.getExtent();\n const sizeExtent = [0, visualMapModel.itemSize[1]];\n\n this._handleEnds = [\n linearMap(dataInterval[0], dataExtent, sizeExtent, true),\n linearMap(dataInterval[1], dataExtent, sizeExtent, true)\n ];\n }\n\n /**\n * @private\n * @param {(number|string)} handleIndex 0 or 1 or 'all'\n * @param {number} dx\n * @param {number} dy\n */\n private _updateInterval(handleIndex: 0 | 1 | 'all', delta: number) {\n delta = delta || 0;\n const visualMapModel = this.visualMapModel;\n const handleEnds = this._handleEnds;\n const sizeExtent = [0, visualMapModel.itemSize[1]];\n\n sliderMove(\n delta,\n handleEnds,\n sizeExtent,\n handleIndex,\n // cross is forbiden\n 0\n );\n\n const dataExtent = visualMapModel.getExtent();\n // Update data interval.\n this._dataInterval = [\n linearMap(handleEnds[0], sizeExtent, dataExtent, true),\n linearMap(handleEnds[1], sizeExtent, dataExtent, true)\n ];\n }\n\n private _updateView(forSketch?: boolean) {\n const visualMapModel = this.visualMapModel;\n const dataExtent = visualMapModel.getExtent();\n const shapes = this._shapes;\n\n const outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];\n const inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;\n\n const visualInRange = this._createBarVisual(\n this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange'\n );\n const visualOutOfRange = this._createBarVisual(\n dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange'\n );\n\n shapes.inRange\n .setStyle({\n fill: visualInRange.barColor\n // opacity: visualInRange.opacity\n })\n .setShape('points', visualInRange.barPoints);\n shapes.outOfRange\n .setStyle({\n fill: visualOutOfRange.barColor\n // opacity: visualOutOfRange.opacity\n })\n .setShape('points', visualOutOfRange.barPoints);\n\n this._updateHandle(inRangeHandleEnds, visualInRange);\n }\n\n private _createBarVisual(\n dataInterval: number[],\n dataExtent: number[],\n handleEnds: number[],\n forceState: ContinuousModel['stateList'][number]\n ): BarVisual {\n const opts = {\n forceState: forceState,\n convertOpacityToAlpha: true\n };\n const colorStops = this._makeColorGradient(dataInterval, opts);\n\n const symbolSizes = [\n this.getControllerVisual(dataInterval[0], 'symbolSize', opts) as number,\n this.getControllerVisual(dataInterval[1], 'symbolSize', opts) as number\n ];\n const barPoints = this._createBarPoints(handleEnds, symbolSizes);\n\n return {\n barColor: new LinearGradient(0, 0, 0, 1, colorStops),\n barPoints: barPoints,\n handlesColor: [\n colorStops[0].color,\n colorStops[colorStops.length - 1].color\n ]\n };\n }\n\n private _makeColorGradient(\n dataInterval: number[],\n opts: {\n forceState?: ContinuousModel['stateList'][number]\n convertOpacityToAlpha?: boolean\n }\n ) {\n // Considering colorHue, which is not linear, so we have to sample\n // to calculate gradient color stops, but not only caculate head\n // and tail.\n const sampleNumber = 100; // Arbitrary value.\n const colorStops: LinearGradientObject['colorStops'] = [];\n const step = (dataInterval[1] - dataInterval[0]) / sampleNumber;\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[0], 'color', opts) as ColorString,\n offset: 0\n });\n\n for (let i = 1; i < sampleNumber; i++) {\n const currValue = dataInterval[0] + step * i;\n if (currValue > dataInterval[1]) {\n break;\n }\n colorStops.push({\n color: this.getControllerVisual(currValue, 'color', opts) as ColorString,\n offset: i / sampleNumber\n });\n }\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[1], 'color', opts) as ColorString,\n offset: 1\n });\n\n return colorStops;\n }\n\n private _createBarPoints(handleEnds: number[], symbolSizes: number[]) {\n const itemSize = this.visualMapModel.itemSize;\n\n return [\n [itemSize[0] - symbolSizes[0], handleEnds[0]],\n [itemSize[0], handleEnds[0]],\n [itemSize[0], handleEnds[1]],\n [itemSize[0] - symbolSizes[1], handleEnds[1]]\n ];\n }\n\n private _createBarGroup(itemAlign: helper.ItemAlign) {\n const orient = this._orient;\n const inverse = this.visualMapModel.get('inverse');\n\n return new graphic.Group(\n (orient === 'horizontal' && !inverse)\n ? {scaleX: itemAlign === 'bottom' ? 1 : -1, rotation: Math.PI / 2}\n : (orient === 'horizontal' && inverse)\n ? {scaleX: itemAlign === 'bottom' ? -1 : 1, rotation: -Math.PI / 2}\n : (orient === 'vertical' && !inverse)\n ? {scaleX: itemAlign === 'left' ? 1 : -1, scaleY: -1}\n : {scaleX: itemAlign === 'left' ? 1 : -1}\n );\n }\n\n private _updateHandle(handleEnds: number[], visualInRange: BarVisual) {\n if (!this._useHandle) {\n return;\n }\n\n const shapes = this._shapes;\n const visualMapModel = this.visualMapModel;\n const handleThumbs = shapes.handleThumbs;\n const handleLabels = shapes.handleLabels;\n const itemSize = visualMapModel.itemSize;\n const dataExtent = visualMapModel.getExtent();\n\n each([0, 1], function (handleIndex) {\n const handleThumb = handleThumbs[handleIndex];\n handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);\n handleThumb.y = handleEnds[handleIndex];\n\n const val = linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true);\n const symbolSize = this.getControllerVisual(val, 'symbolSize') as number;\n\n handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0];\n handleThumb.x = itemSize[0] - symbolSize / 2;\n\n // Update handle label position.\n const textPoint = graphic.applyTransform(\n shapes.handleLabelPoints[handleIndex],\n graphic.getTransform(handleThumb, this.group)\n );\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),\n verticalAlign: 'middle',\n align: this._orient === 'vertical' ? this._applyTransform(\n 'left',\n shapes.mainGroup\n ) as TextAlign : 'center'\n });\n }, this);\n }\n\n private _showIndicator(\n cursorValue: number,\n textValue: number,\n rangeSymbol?: string,\n halfHoverLinkSize?: number\n ) {\n const visualMapModel = this.visualMapModel;\n const dataExtent = visualMapModel.getExtent();\n const itemSize = visualMapModel.itemSize;\n const sizeExtent = [0, itemSize[1]];\n\n const shapes = this._shapes;\n const indicator = shapes.indicator;\n if (!indicator) {\n return;\n }\n\n indicator.attr('invisible', false);\n\n const opts = {convertOpacityToAlpha: true};\n const color = this.getControllerVisual(cursorValue, 'color', opts) as ColorString;\n const symbolSize = this.getControllerVisual(cursorValue, 'symbolSize') as number;\n const y = linearMap(cursorValue, dataExtent, sizeExtent, true);\n const x = itemSize[0] - symbolSize / 2;\n\n const oldIndicatorPos = { x: indicator.x, y: indicator.y };\n // Update handle label position.\n indicator.y = y;\n indicator.x = x;\n const textPoint = graphic.applyTransform(\n shapes.indicatorLabelPoint,\n graphic.getTransform(indicator, this.group)\n );\n\n const indicatorLabel = shapes.indicatorLabel;\n indicatorLabel.attr('invisible', false);\n const align = this._applyTransform('left', shapes.mainGroup);\n const orient = this._orient;\n const isHorizontal = orient === 'horizontal';\n indicatorLabel.setStyle({\n text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),\n verticalAlign: isHorizontal ? align as TextVerticalAlign : 'middle',\n align: isHorizontal ? 'center' : align as TextAlign\n });\n\n const indicatorNewProps = {\n x: x,\n y: y,\n style: {\n fill: color\n }\n };\n const labelNewProps = {\n style: {\n x: textPoint[0],\n y: textPoint[1]\n }\n };\n\n if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {\n const animationCfg = {\n duration: 100,\n easing: 'cubicInOut',\n additive: true\n } as const;\n indicator.x = oldIndicatorPos.x;\n indicator.y = oldIndicatorPos.y;\n indicator.animateTo(indicatorNewProps, animationCfg);\n indicatorLabel.animateTo(labelNewProps, animationCfg);\n }\n else {\n indicator.attr(indicatorNewProps);\n indicatorLabel.attr(labelNewProps);\n }\n\n this._firstShowIndicator = false;\n\n const handleLabels = this._shapes.handleLabels;\n if (handleLabels) {\n for (let i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.enterBlur(handleLabels[i]);\n }\n }\n }\n\n private _enableHoverLinkToSeries() {\n const self = this;\n this._shapes.mainGroup\n\n .on('mousemove', function (e) {\n self._hovering = true;\n\n if (!self._dragging) {\n const itemSize = self.visualMapModel.itemSize;\n const pos = self._applyTransform(\n [e.offsetX, e.offsetY], self._shapes.mainGroup, true, true\n );\n // For hover link show when hover handle, which might be\n // below or upper than sizeExtent.\n pos[1] = mathMin(mathMax(0, pos[1]), itemSize[1]);\n self._doHoverLinkToSeries(\n pos[1],\n 0 <= pos[0] && pos[0] <= itemSize[0]\n );\n }\n })\n\n .on('mouseout', function () {\n // When mouse is out of handle, hoverLink still need\n // to be displayed when realtime is set as false.\n self._hovering = false;\n !self._dragging && self._clearHoverLinkToSeries();\n });\n }\n\n private _enableHoverLinkFromSeries() {\n const zr = this.api.getZr();\n\n if (this.visualMapModel.option.hoverLink) {\n zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);\n zr.on('mouseout', this._hideIndicator, this);\n }\n else {\n this._clearHoverLinkFromSeries();\n }\n }\n\n private _doHoverLinkToSeries(cursorPos: number, hoverOnBar?: boolean) {\n const visualMapModel = this.visualMapModel;\n const itemSize = visualMapModel.itemSize;\n\n if (!visualMapModel.option.hoverLink) {\n return;\n }\n\n const sizeExtent = [0, itemSize[1]];\n const dataExtent = visualMapModel.getExtent();\n\n // For hover link show when hover handle, which might be below or upper than sizeExtent.\n cursorPos = mathMin(mathMax(sizeExtent[0], cursorPos), sizeExtent[1]);\n\n const halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);\n const hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];\n const cursorValue = linearMap(cursorPos, sizeExtent, dataExtent, true);\n const valueRange = [\n linearMap(hoverRange[0], sizeExtent, dataExtent, true),\n linearMap(hoverRange[1], sizeExtent, dataExtent, true)\n ];\n // Consider data range is out of visualMap range, see test/visualMap-continuous.html,\n // where china and india has very large population.\n hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);\n hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity);\n\n // Do not show indicator when mouse is over handle,\n // otherwise labels overlap, especially when dragging.\n if (hoverOnBar) {\n if (valueRange[0] === -Infinity) {\n this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);\n }\n else if (valueRange[1] === Infinity) {\n this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);\n }\n else {\n this._showIndicator(cursorValue, cursorValue, '\u2248 ', halfHoverLinkSize);\n }\n }\n\n // When realtime is set as false, handles, which are in barGroup,\n // also trigger hoverLink, which help user to realize where they\n // focus on when dragging. (see test/heatmap-large.html)\n // When realtime is set as true, highlight will not show when hover\n // handle, because the label on handle, which displays a exact value\n // but not range, might mislead users.\n const oldBatch = this._hoverLinkDataIndices;\n let newBatch: TargetDataIndices = [];\n if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {\n newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);\n }\n\n const resultBatches = modelUtil.compressBatches(oldBatch, newBatch);\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(resultBatches[0], visualMapModel));\n this._dispatchHighDown('highlight', helper.makeHighDownBatch(resultBatches[1], visualMapModel));\n }\n\n private _hoverLinkFromSeriesMouseOver(e: ElementEvent) {\n const el = e.target;\n const visualMapModel = this.visualMapModel;\n\n if (!el || getECData(el).dataIndex == null) {\n return;\n }\n const ecData = getECData(el);\n\n const dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex);\n\n if (!visualMapModel.isTargetSeries(dataModel)) {\n return;\n }\n\n const data = dataModel.getData(ecData.dataType);\n const value = data.getStorage().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex) as number;\n\n if (!isNaN(value)) {\n this._showIndicator(value, value);\n }\n }\n\n private _hideIndicator() {\n const shapes = this._shapes;\n shapes.indicator && shapes.indicator.attr('invisible', true);\n shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);\n\n const handleLabels = this._shapes.handleLabels;\n if (handleLabels) {\n for (let i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.leaveBlur(handleLabels[i]);\n }\n }\n }\n\n private _clearHoverLinkToSeries() {\n this._hideIndicator();\n\n const indices = this._hoverLinkDataIndices;\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(indices, this.visualMapModel));\n\n indices.length = 0;\n }\n\n private _clearHoverLinkFromSeries() {\n this._hideIndicator();\n\n const zr = this.api.getZr();\n zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);\n zr.off('mouseout', this._hideIndicator);\n }\n private _applyTransform(vertex: number[], element: Element, inverse?: boolean, global?: boolean): number[]\n private _applyTransform(vertex: Direction, element: Element, inverse?: boolean, global?: boolean): Direction\n private _applyTransform(\n vertex: number[] | Direction,\n element: Element,\n inverse?: boolean,\n global?: boolean\n ) {\n const transform = graphic.getTransform(element, global ? null : this.group);\n\n return zrUtil.isArray(vertex)\n ? graphic.applyTransform(vertex, transform, inverse)\n : graphic.transformDirection(vertex, transform, inverse);\n }\n\n // TODO: TYPE more specified payload types.\n private _dispatchHighDown(type: 'highlight' | 'downplay', batch: Payload['batch']) {\n batch && batch.length && this.api.dispatchAction({\n type: type,\n batch: batch\n });\n }\n\n /**\n * @override\n */\n dispose() {\n this._clearHoverLinkFromSeries();\n this._clearHoverLinkToSeries();\n }\n\n /**\n * @override\n */\n remove() {\n this._clearHoverLinkFromSeries();\n this._clearHoverLinkToSeries();\n }\n\n}\n\nfunction createPolygon(\n points?: number[][],\n cursor?: string,\n onDrift?: (x: number, y: number) => void,\n onDragEnd?: () => void\n) {\n return new graphic.Polygon({\n shape: {points: points},\n draggable: !!onDrift,\n cursor: cursor,\n drift: onDrift,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd\n });\n}\n\nfunction getHalfHoverLinkSize(visualMapModel: ContinuousModel, dataExtent: number[], sizeExtent: number[]) {\n let halfHoverLinkSize = HOVER_LINK_SIZE / 2;\n const hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');\n if (hoverLinkDataSize) {\n halfHoverLinkSize = linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;\n }\n return halfHoverLinkSize;\n}\n\nfunction useHoverLinkOnHandle(visualMapModel: ContinuousModel) {\n const hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');\n return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);\n}\n\nfunction getCursor(orient: Orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default ContinuousView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport VisualMapModel from './VisualMapModel';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\nexport const visualMapActionInfo = {\n type: 'selectDataRange',\n event: 'dataRangeSelected',\n // FIXME use updateView appears wrong\n update: 'update'\n};\n\nexport const visualMapActionHander = function (payload: Payload, ecModel: GlobalModel) {\n ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) {\n (model as VisualMapModel).setSelected(payload.selected);\n });\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport VisualMapping from '../../visual/VisualMapping';\nimport VisualMapModel, { VisualMeta } from './VisualMapModel';\nimport { StageHandlerProgressExecutor, BuiltinVisualProperty, ParsedValue, StageHandler } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { getVisualFromData } from '../../visual/helper';\n\nexport const visualMapEncodingHandlers: StageHandler[] = [\n {\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n const resetDefines: StageHandlerProgressExecutor[] = [];\n ecModel.eachComponent('visualMap', function (visualMapModel: VisualMapModel) {\n const pipelineContext = seriesModel.pipelineContext;\n if (!visualMapModel.isTargetSeries(seriesModel)\n || (pipelineContext && pipelineContext.large)\n ) {\n return;\n }\n\n resetDefines.push(visualSolution.incrementalApplyVisual(\n visualMapModel.stateList,\n visualMapModel.targetVisuals,\n zrUtil.bind(visualMapModel.getValueState, visualMapModel),\n visualMapModel.getDataDimensionIndex(seriesModel.getData())\n ));\n });\n\n return resetDefines;\n }\n },\n // Only support color.\n {\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n const data = seriesModel.getData();\n const visualMetaList: VisualMeta[] = [];\n\n ecModel.eachComponent('visualMap', function (visualMapModel: VisualMapModel) {\n if (visualMapModel.isTargetSeries(seriesModel)) {\n const visualMeta = visualMapModel.getVisualMeta(\n zrUtil.bind(getColorVisual, null, seriesModel, visualMapModel)\n ) || {\n stops: [],\n outerColors: []\n } as VisualMeta;\n\n const dimIdx = visualMapModel.getDataDimensionIndex(data);\n if (dimIdx >= 0) {\n // visualMeta.dimension should be dimension index, but not concrete dimension.\n visualMeta.dimension = dimIdx;\n visualMetaList.push(visualMeta);\n }\n }\n });\n\n // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));\n seriesModel.getData().setVisual('visualMeta', visualMetaList);\n }\n }\n];\n\n// FIXME\n// performance and export for heatmap?\n// value can be Infinity or -Infinity\nfunction getColorVisual(\n seriesModel: SeriesModel,\n visualMapModel: VisualMapModel,\n value: ParsedValue,\n valueState: VisualMapModel['stateList'][number]\n) {\n const mappings = visualMapModel.targetVisuals[valueState];\n const visualTypes = VisualMapping.prepareVisualTypes(mappings);\n const resultVisual: Partial> = {\n color: getVisualFromData(seriesModel.getData(), 'color') // default color.\n };\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n const mapping = mappings[\n (type === 'opacity' ? '__alphaForOpacity' : type) as BuiltinVisualProperty\n ];\n mapping && mapping.applyVisual(value, getVisual, setVisual);\n }\n\n return resultVisual.color;\n\n function getVisual(key: BuiltinVisualProperty) {\n return resultVisual[key];\n }\n\n function setVisual(key: BuiltinVisualProperty, value: any) {\n resultVisual[key] = value;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst each = zrUtil.each;\n\nexport default function visualMapPreprocessor(option) {\n let visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n }\n\n // rename splitList to pieces\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n const pieces = opt.pieces;\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj: object, name: string) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { VisualMapOption } from './VisualMapModel';\nimport { PiecewiseVisualMapOption } from './PiecewiseModel';\nimport { ContinousVisualMapOption } from './ContinuousModel';\nimport { visualMapActionInfo, visualMapActionHander } from './visualMapAction';\nimport { visualMapEncodingHandlers } from './visualEncoding';\nimport { each } from 'zrender/src/core/util';\nimport preprocessor from './preprocessor';\n\nlet installed = false;\nexport default function installCommon(registers: EChartsExtensionInstallRegisters) {\n if (installed) {\n return;\n }\n installed = true;\n\n registers.registerSubTypeDefaulter(\n 'visualMap', function (option: VisualMapOption) {\n // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.\n return (\n !option.categories\n && (\n !(\n (option as PiecewiseVisualMapOption).pieces\n ? ((option as PiecewiseVisualMapOption)).pieces.length > 0\n : ((option as PiecewiseVisualMapOption)).splitNumber > 0\n )\n || (option as ContinousVisualMapOption).calculable\n )\n )\n ? 'continuous' : 'piecewise';\n });\n\n registers.registerAction(visualMapActionInfo, visualMapActionHander);\n\n each(visualMapEncodingHandlers, (handler) => {\n registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler);\n });\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ContinuousModel from './ContinuousModel';\nimport ContinuousView from './ContinuousView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(ContinuousModel);\n registers.registerComponentView(ContinuousView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapModel, { VisualMapOption, VisualMeta } from './VisualMapModel';\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport visualDefault from '../../visual/visualDefault';\nimport {reformIntervals} from '../../util/number';\nimport { VisualOptionPiecewise, BuiltinVisualProperty } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { inheritDefaultOption } from '../../util/component';\n\n\n// TODO: use `relationExpression.ts` instead\ninterface VisualPiece extends VisualOptionPiecewise {\n min?: number\n max?: number\n lt?: number\n gt?: number\n lte?: number\n gte?: number\n value?: number\n\n label?: string\n}\n\ntype VisualState = VisualMapModel['stateList'][number];\n\ntype InnerVisualPiece = VisualMappingOption['pieceList'][number];\n\ntype GetPieceValueType\n = T extends { interval: InnerVisualPiece['interval'] } ? number : string;\n\n/**\n * Order Rule:\n *\n * option.categories / option.pieces / option.text / option.selected:\n * If !option.inverse,\n * Order when vertical: ['top', ..., 'bottom'].\n * Order when horizontal: ['left', ..., 'right'].\n * If option.inverse, the meaning of\n * the order should be reversed.\n *\n * this._pieceList:\n * The order is always [low, ..., high].\n *\n * Mapping from location to low-high:\n * If !option.inverse\n * When vertical, top is high.\n * When horizontal, right is high.\n * If option.inverse, reverse.\n */\n\nexport interface PiecewiseVisualMapOption extends VisualMapOption {\n align?: 'auto' | 'left' | 'right'\n\n minOpen?: boolean\n maxOpen?: boolean\n\n /**\n * When put the controller vertically, it is the length of\n * horizontal side of each item. Otherwise, vertical side.\n * When put the controller vertically, it is the length of\n * vertical side of each item. Otherwise, horizontal side.\n */\n itemWidth?: number\n itemHeight?: number\n\n itemSymbol?: string\n pieces?: VisualPiece[]\n\n /**\n * category names, like: ['some1', 'some2', 'some3'].\n * Attr min/max are ignored when categories set. See \"Order Rule\"\n */\n categories?: string[]\n\n /**\n * If set to 5, auto split five pieces equally.\n * If set to 0 and component type not set, component type will be\n * determined as \"continuous\". (It is less reasonable but for ec2\n * compatibility, see echarts/component/visualMap/typeDefaulter)\n */\n splitNumber?: number\n\n /**\n * Object. If not specified, means selected. When pieces and splitNumber: {'0': true, '5': true}\n * When categories: {'cate1': false, 'cate3': true} When selected === false, means all unselected.\n */\n selected?: Dictionary\n selectedMode?: 'multiple' | 'single'\n\n /**\n * By default, when text is used, label will hide (the logic\n * is remained for compatibility reason)\n */\n showLabel?: boolean\n\n itemGap?: number\n\n hoverLink?: boolean\n}\n\nclass PiecewiseModel extends VisualMapModel {\n\n static type = 'visualMap.piecewise' as const;\n type = PiecewiseModel.type;\n\n /**\n * The order is always [low, ..., high].\n * [{text: string, interval: Array.}, ...]\n */\n private _pieceList: InnerVisualPiece[] = [];\n\n private _mode: 'pieces' | 'categories' | 'splitNumber';\n\n optionUpdated(newOption: PiecewiseVisualMapOption, isInit?: boolean) {\n super.optionUpdated.apply(this, arguments as any);\n\n this.resetExtent();\n\n const mode = this._mode = this._determineMode();\n\n this._pieceList = [];\n resetMethods[this._mode].call(this, this._pieceList);\n\n this._resetSelected(newOption, isInit);\n\n const categories = this.option.categories;\n\n this.resetVisual(function (mappingOption, state) {\n if (mode === 'categories') {\n mappingOption.mappingMethod = 'category';\n mappingOption.categories = zrUtil.clone(categories);\n }\n else {\n mappingOption.dataExtent = this.getExtent();\n mappingOption.mappingMethod = 'piecewise';\n mappingOption.pieceList = zrUtil.map(this._pieceList, function (piece) {\n piece = zrUtil.clone(piece);\n if (state !== 'inRange') {\n // FIXME\n // outOfRange do not support special visual in pieces.\n piece.visual = null;\n }\n return piece;\n });\n }\n });\n }\n\n /**\n * @protected\n * @override\n */\n completeVisualOption() {\n // Consider this case:\n // visualMap: {\n // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]\n // }\n // where no inRange/outOfRange set but only pieces. So we should make\n // default inRange/outOfRange for this case, otherwise visuals that only\n // appear in `pieces` will not be taken into account in visual encoding.\n\n const option = this.option;\n const visualTypesInPieces: {[key in BuiltinVisualProperty]?: 0 | 1} = {};\n const visualTypes = VisualMapping.listVisualTypes();\n const isCategory = this.isCategory();\n\n zrUtil.each(option.pieces, function (piece) {\n zrUtil.each(visualTypes, function (visualType: BuiltinVisualProperty) {\n if (piece.hasOwnProperty(visualType)) {\n visualTypesInPieces[visualType] = 1;\n }\n });\n });\n\n zrUtil.each(visualTypesInPieces, function (v, visualType: BuiltinVisualProperty) {\n let exists = false;\n zrUtil.each(this.stateList, function (state: VisualState) {\n exists = exists || has(option, state, visualType)\n || has(option.target, state, visualType);\n }, this);\n\n !exists && zrUtil.each(this.stateList, function (state: VisualState) {\n (option[state] || (option[state] = {}))[visualType] = visualDefault.get(\n visualType, state === 'inRange' ? 'active' : 'inactive', isCategory\n );\n });\n }, this);\n\n function has(obj: PiecewiseVisualMapOption['target'], state: VisualState, visualType: BuiltinVisualProperty) {\n return obj && obj[state] && obj[state].hasOwnProperty(visualType);\n }\n\n super.completeVisualOption.apply(this, arguments as any);\n }\n\n private _resetSelected(newOption: PiecewiseVisualMapOption, isInit?: boolean) {\n const thisOption = this.option;\n const pieceList = this._pieceList;\n\n // Selected do not merge but all override.\n const selected = (isInit ? thisOption : newOption).selected || {};\n thisOption.selected = selected;\n\n // Consider 'not specified' means true.\n zrUtil.each(pieceList, function (piece, index) {\n const key = this.getSelectedMapKey(piece);\n if (!selected.hasOwnProperty(key)) {\n selected[key] = true;\n }\n }, this);\n\n if (thisOption.selectedMode === 'single') {\n // Ensure there is only one selected.\n let hasSel = false;\n\n zrUtil.each(pieceList, function (piece, index) {\n const key = this.getSelectedMapKey(piece);\n if (selected[key]) {\n hasSel\n ? (selected[key] = false)\n : (hasSel = true);\n }\n }, this);\n }\n // thisOption.selectedMode === 'multiple', default: all selected.\n }\n\n /**\n * @public\n */\n getItemSymbol(): string {\n return this.get('itemSymbol');\n }\n\n /**\n * @public\n */\n getSelectedMapKey(piece: InnerVisualPiece) {\n return this._mode === 'categories'\n ? piece.value + '' : piece.index + '';\n }\n\n /**\n * @public\n */\n getPieceList(): InnerVisualPiece[] {\n return this._pieceList;\n }\n\n /**\n * @return {string}\n */\n private _determineMode() {\n const option = this.option;\n\n return option.pieces && option.pieces.length > 0\n ? 'pieces'\n : this.option.categories\n ? 'categories'\n : 'splitNumber';\n }\n\n /**\n * @override\n */\n setSelected(selected: this['option']['selected']) {\n this.option.selected = zrUtil.clone(selected);\n }\n\n /**\n * @override\n */\n getValueState(value: number): VisualState {\n const index = VisualMapping.findPieceIndex(value, this._pieceList);\n\n return index != null\n ? (this.option.selected[this.getSelectedMapKey(this._pieceList[index])]\n ? 'inRange' : 'outOfRange'\n )\n : 'outOfRange';\n }\n\n /**\n * @public\n * @param pieceIndex piece index in visualMapModel.getPieceList()\n */\n findTargetDataIndices(pieceIndex: number) {\n type DataIndices = {\n seriesId: string\n dataIndex: number[]\n };\n\n const result: DataIndices[] = [];\n const pieceList = this._pieceList;\n\n this.eachTargetSeries(function (seriesModel) {\n const dataIndices: number[] = [];\n const data = seriesModel.getData();\n\n data.each(this.getDataDimensionIndex(data), function (value: number, dataIndex: number) {\n // Should always base on model pieceList, because it is order sensitive.\n const pIdx = VisualMapping.findPieceIndex(value, pieceList);\n pIdx === pieceIndex && dataIndices.push(dataIndex);\n }, this);\n\n result.push({seriesId: seriesModel.id, dataIndex: dataIndices});\n }, this);\n\n return result;\n }\n\n /**\n * @private\n * @param piece piece.value or piece.interval is required.\n * @return Can be Infinity or -Infinity\n */\n getRepresentValue(piece: InnerVisualPiece) {\n let representValue;\n if (this.isCategory()) {\n representValue = piece.value;\n }\n else {\n if (piece.value != null) {\n representValue = piece.value;\n }\n else {\n const pieceInterval = piece.interval || [];\n representValue = (pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity)\n ? 0\n : (pieceInterval[0] + pieceInterval[1]) / 2;\n }\n }\n\n return representValue;\n }\n\n getVisualMeta(\n getColorVisual: (value: number, valueState: VisualState) => string\n ): VisualMeta {\n // Do not support category. (category axis is ordinal, numerical)\n if (this.isCategory()) {\n return;\n }\n\n const stops: VisualMeta['stops'] = [];\n const outerColors: VisualMeta['outerColors'] = ['', ''];\n const visualMapModel = this;\n\n function setStop(interval: [number, number], valueState?: VisualState) {\n const representValue = visualMapModel.getRepresentValue({\n interval: interval\n }) as number;// Not category\n if (!valueState) {\n valueState = visualMapModel.getValueState(representValue);\n }\n const color = getColorVisual(representValue, valueState);\n if (interval[0] === -Infinity) {\n outerColors[0] = color;\n }\n else if (interval[1] === Infinity) {\n outerColors[1] = color;\n }\n else {\n stops.push(\n {value: interval[0], color: color},\n {value: interval[1], color: color}\n );\n }\n }\n\n // Suplement\n const pieceList = this._pieceList.slice();\n if (!pieceList.length) {\n pieceList.push({interval: [-Infinity, Infinity]});\n }\n else {\n let edge = pieceList[0].interval[0];\n edge !== -Infinity && pieceList.unshift({interval: [-Infinity, edge]});\n edge = pieceList[pieceList.length - 1].interval[1];\n edge !== Infinity && pieceList.push({interval: [edge, Infinity]});\n }\n\n let curr = -Infinity;\n zrUtil.each(pieceList, function (piece) {\n const interval = piece.interval;\n if (interval) {\n // Fulfill gap.\n interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');\n setStop(interval.slice() as [number, number]);\n curr = interval[1];\n }\n }, this);\n\n return {stops: stops, outerColors: outerColors};\n }\n\n\n static defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n selected: null,\n minOpen: false, // Whether include values that smaller than `min`.\n maxOpen: false, // Whether include values that bigger than `max`.\n\n align: 'auto', // 'auto', 'left', 'right'\n itemWidth: 20,\n\n itemHeight: 14,\n\n itemSymbol: 'roundRect',\n pieces: null,\n categories: null,\n splitNumber: 5,\n selectedMode: 'multiple', // Can be 'multiple' or 'single'.\n itemGap: 10, // The gap between two items, in px.\n hoverLink: true // Enable hover highlight.\n }) as PiecewiseVisualMapOption;\n\n};\n\ntype ResetMethod = (outPieceList: InnerVisualPiece[]) => void;\n/**\n * Key is this._mode\n * @type {Object}\n * @this {module:echarts/component/viusalMap/PiecewiseMode}\n */\nconst resetMethods: Dictionary & ThisType = {\n\n splitNumber(outPieceList) {\n const thisOption = this.option;\n let precision = Math.min(thisOption.precision, 20);\n const dataExtent = this.getExtent();\n let splitNumber = thisOption.splitNumber;\n splitNumber = Math.max(parseInt(splitNumber as unknown as string, 10), 1);\n thisOption.splitNumber = splitNumber;\n\n let splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber;\n // Precision auto-adaption\n while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {\n precision++;\n }\n thisOption.precision = precision;\n splitStep = +splitStep.toFixed(precision);\n\n if (thisOption.minOpen) {\n outPieceList.push({\n interval: [-Infinity, dataExtent[0]],\n close: [0, 0]\n });\n }\n\n for (\n let index = 0, curr = dataExtent[0];\n index < splitNumber;\n curr += splitStep, index++\n ) {\n const max = index === splitNumber - 1 ? dataExtent[1] : (curr + splitStep);\n\n outPieceList.push({\n interval: [curr, max],\n close: [1, 1]\n });\n }\n\n if (thisOption.maxOpen) {\n outPieceList.push({\n interval: [dataExtent[1], Infinity],\n close: [0, 0]\n });\n }\n\n reformIntervals(outPieceList as Required[]);\n\n zrUtil.each(outPieceList, function (piece, index) {\n piece.index = index;\n piece.text = this.formatValueText(piece.interval);\n }, this);\n },\n\n categories(outPieceList) {\n const thisOption = this.option;\n zrUtil.each(thisOption.categories, function (cate) {\n // FIXME category\u6A21\u5F0F\u4E5F\u4F7F\u7528pieceList\uFF0C\u4F46\u5728visualMapping\u4E2D\u4E0D\u662F\u4F7F\u7528pieceList\u3002\n // \u662F\u5426\u6539\u4E00\u81F4\u3002\n outPieceList.push({\n text: this.formatValueText(cate, true),\n value: cate\n });\n }, this);\n\n // See \"Order Rule\".\n normalizeReverse(thisOption, outPieceList);\n },\n\n pieces(outPieceList) {\n const thisOption = this.option;\n\n zrUtil.each(thisOption.pieces, function (pieceListItem, index) {\n\n if (!zrUtil.isObject(pieceListItem)) {\n pieceListItem = {value: pieceListItem};\n }\n\n const item: InnerVisualPiece = {text: '', index: index};\n\n if (pieceListItem.label != null) {\n item.text = pieceListItem.label;\n }\n\n if (pieceListItem.hasOwnProperty('value')) {\n const value = item.value = pieceListItem.value;\n item.interval = [value, value];\n item.close = [1, 1];\n }\n else {\n // `min` `max` is legacy option.\n // `lt` `gt` `lte` `gte` is recommanded.\n const interval = item.interval = [] as unknown as [number, number];\n const close: typeof item.close = item.close = [0, 0];\n\n const closeList = [1, 0, 1] as const;\n const infinityList = [-Infinity, Infinity];\n\n const useMinMax = [];\n for (let lg = 0; lg < 2; lg++) {\n const names = ([['gte', 'gt', 'min'], ['lte', 'lt', 'max']] as const)[lg];\n for (let i = 0; i < 3 && interval[lg] == null; i++) {\n interval[lg] = pieceListItem[names[i]];\n close[lg] = closeList[i];\n useMinMax[lg] = i === 2;\n }\n interval[lg] == null && (interval[lg] = infinityList[lg]);\n }\n useMinMax[0] && interval[1] === Infinity && (close[0] = 0);\n useMinMax[1] && interval[0] === -Infinity && (close[1] = 0);\n\n if (__DEV__) {\n if (interval[0] > interval[1]) {\n console.warn(\n 'Piece ' + index + 'is illegal: ' + interval\n + ' lower bound should not greater then uppper bound.'\n );\n }\n }\n\n if (interval[0] === interval[1] && close[0] && close[1]) {\n // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],\n // we use value to lift the priority when min === max\n item.value = interval[0];\n }\n }\n\n item.visual = VisualMapping.retrieveVisuals(pieceListItem);\n\n outPieceList.push(item);\n\n }, this);\n\n // See \"Order Rule\".\n normalizeReverse(thisOption, outPieceList);\n // Only pieces\n reformIntervals(outPieceList as Required[]);\n\n zrUtil.each(outPieceList, function (piece) {\n const close = piece.close;\n const edgeSymbols = [['<', '\u2264'][close[1]], ['>', '\u2265'][close[0]]];\n piece.text = piece.text || this.formatValueText(\n piece.value != null ? piece.value : piece.interval,\n false,\n edgeSymbols\n );\n }, this);\n }\n};\n\nfunction normalizeReverse(thisOption: PiecewiseVisualMapOption, pieceList: InnerVisualPiece[]) {\n const inverse = thisOption.inverse;\n if (thisOption.orient === 'vertical' ? !inverse : inverse) {\n pieceList.reverse();\n }\n}\n\nexport default PiecewiseModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport {createSymbol} from '../../util/symbol';\nimport * as layout from '../../util/layout';\nimport * as helper from './helper';\nimport PiecewiseModel from './PiecewiseModel';\nimport { TextAlign } from 'zrender/src/core/types';\nimport { VisualMappingOption } from '../../visual/VisualMapping';\n\nclass PiecewiseVisualMapView extends VisualMapView {\n\n static type = 'visualMap.piecewise' as const;\n\n type = PiecewiseVisualMapView.type;\n\n visualMapModel: PiecewiseModel;\n\n protected doRender() {\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n const visualMapModel = this.visualMapModel;\n const textGap = visualMapModel.get('textGap');\n const textStyleModel = visualMapModel.textStyleModel;\n const textFont = textStyleModel.getFont();\n const textFill = textStyleModel.getTextColor();\n const itemAlign = this._getItemAlign();\n const itemSize = visualMapModel.itemSize;\n const viewData = this._getViewData();\n const endsText = viewData.endsText;\n const showLabel = zrUtil.retrieve(visualMapModel.get('showLabel', true), !endsText);\n\n endsText && this._renderEndsText(\n thisGroup, endsText[0], itemSize, showLabel, itemAlign\n );\n\n zrUtil.each(viewData.viewPieceList, function (item: typeof viewData.viewPieceList[number]) {\n const piece = item.piece;\n\n const itemGroup = new graphic.Group();\n itemGroup.onclick = zrUtil.bind(this._onItemClick, this, piece);\n\n this._enableHoverLink(itemGroup, item.indexInModelPieceList);\n\n // TODO Category\n const representValue = visualMapModel.getRepresentValue(piece) as number;\n\n this._createItemSymbol(\n itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]]\n );\n\n if (showLabel) {\n const visualState = this.visualMapModel.getValueState(representValue);\n\n itemGroup.add(new graphic.Text({\n style: {\n x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,\n y: itemSize[1] / 2,\n text: piece.text,\n verticalAlign: 'middle',\n align: itemAlign as TextAlign,\n font: textFont,\n fill: textFill,\n opacity: visualState === 'outOfRange' ? 0.5 : 1\n }\n }));\n }\n\n thisGroup.add(itemGroup);\n }, this);\n\n endsText && this._renderEndsText(\n thisGroup, endsText[1], itemSize, showLabel, itemAlign\n );\n\n layout.box(\n visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap')\n );\n\n this.renderBackground(thisGroup);\n\n this.positionGroup(thisGroup);\n\n\n }\n\n private _enableHoverLink(itemGroup: graphic.Group, pieceIndex: number) {\n itemGroup\n .on('mouseover', () => onHoverLink('highlight'))\n .on('mouseout', () => onHoverLink('downplay'));\n\n const onHoverLink = (method?: 'highlight' | 'downplay') => {\n const visualMapModel = this.visualMapModel;\n\n // TODO: TYPE More detailed action types\n visualMapModel.option.hoverLink && this.api.dispatchAction({\n type: method,\n batch: helper.makeHighDownBatch(\n visualMapModel.findTargetDataIndices(pieceIndex),\n visualMapModel\n )\n });\n };\n }\n\n private _getItemAlign(): helper.ItemAlign {\n const visualMapModel = this.visualMapModel;\n const modelOption = visualMapModel.option;\n\n if (modelOption.orient === 'vertical') {\n return helper.getItemAlign(\n visualMapModel, this.api, visualMapModel.itemSize\n );\n }\n else { // horizontal, most case left unless specifying right.\n let align = modelOption.align;\n if (!align || align === 'auto') {\n align = 'left';\n }\n return align;\n }\n }\n\n private _renderEndsText(\n group: graphic.Group,\n text: string,\n itemSize: number[],\n showLabel: boolean,\n itemAlign: helper.ItemAlign\n ) {\n if (!text) {\n return;\n }\n\n const itemGroup = new graphic.Group();\n const textStyleModel = this.visualMapModel.textStyleModel;\n\n itemGroup.add(new graphic.Text({\n style: {\n x: showLabel ? (itemAlign === 'right' ? itemSize[0] : 0) : itemSize[0] / 2,\n y: itemSize[1] / 2,\n verticalAlign: 'middle',\n align: showLabel ? (itemAlign as TextAlign) : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n\n group.add(itemGroup);\n }\n\n /**\n * @private\n * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.\n */\n private _getViewData() {\n const visualMapModel = this.visualMapModel;\n\n const viewPieceList = zrUtil.map(visualMapModel.getPieceList(), function (piece, index) {\n return {piece: piece, indexInModelPieceList: index};\n });\n let endsText = visualMapModel.get('text');\n\n // Consider orient and inverse.\n const orient = visualMapModel.get('orient');\n const inverse = visualMapModel.get('inverse');\n\n // Order of model pieceList is always [low, ..., high]\n if (orient === 'horizontal' ? inverse : !inverse) {\n viewPieceList.reverse();\n }\n // Origin order of endsText is [high, low]\n else if (endsText) {\n endsText = endsText.slice().reverse();\n }\n\n return {viewPieceList: viewPieceList, endsText: endsText};\n }\n\n private _createItemSymbol(\n group: graphic.Group,\n representValue: number,\n shapeParam: number[]\n ) {\n group.add(createSymbol(\n // symbol will be string\n this.getControllerVisual(representValue, 'symbol') as string,\n shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3],\n // color will be string\n this.getControllerVisual(representValue, 'color') as string\n ));\n }\n\n private _onItemClick(\n piece: VisualMappingOption['pieceList'][number]\n ) {\n const visualMapModel = this.visualMapModel;\n const option = visualMapModel.option;\n const selected = zrUtil.clone(option.selected);\n const newKey = visualMapModel.getSelectedMapKey(piece);\n\n if (option.selectedMode === 'single') {\n selected[newKey] = true;\n zrUtil.each(selected, function (o, key) {\n selected[key] = key === newKey;\n });\n }\n else {\n selected[newKey] = !selected[newKey];\n }\n\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: selected\n });\n }\n}\n\nexport default PiecewiseVisualMapView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport PiecewiseModel from './PiecewiseModel';\nimport PiecewiseView from './PiecewiseView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(PiecewiseModel);\n registers.registerComponentView(PiecewiseView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installVisualMapContinuous} from './installVisualMapContinuous';\nimport {install as installVisualMapPiecewise} from './installVisualMapPiecewise';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installVisualMapContinuous);\n use(installVisualMapPiecewise);\n\n // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {retrieveRawValue} from '../data/helper/dataProvider';\nimport GlobalModel from '../model/Global';\nimport Model from '../model/Model';\nimport SeriesModel from '../model/Series';\nimport {makeInner} from '../util/model';\nimport {Dictionary, DecalObject, InnerDecalObject, AriaOption, SeriesOption} from '../util/types';\nimport {LocaleOption} from '../core/locale';\nimport { getDecalFromPalette } from '../model/mixin/palette';\nimport type {TitleOption} from '../component/title/install';\n\nconst DEFAULT_OPTION: AriaOption = {\n label: {\n enabled: true\n },\n decal: {\n show: false\n }\n};\n\nconst inner = makeInner<{scope: object}, SeriesModel>();\n\nconst decalPaletteScope: Dictionary = {};\n\ntype SeriesTypes = keyof LocaleOption['series']['typeNames'];\n\nexport default function ariaVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n const ariaModel: Model = ecModel.getModel('aria');\n\n // See \"area enabled\" detection code in `GlobalModel.ts`.\n if (!ariaModel.get('enabled')) {\n return;\n }\n\n const defaultOption = zrUtil.clone(DEFAULT_OPTION);\n zrUtil.merge(defaultOption.label, ecModel.getLocaleModel().get('aria'), false);\n zrUtil.merge(ariaModel.option, defaultOption, false);\n\n setDecal();\n setLabel();\n\n function setDecal() {\n const decalModel = ariaModel.getModel('decal');\n\n const useDecal = decalModel.get('show');\n if (useDecal) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n const paletteScopeGroupByType = zrUtil.createHashMap();\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n if (seriesModel.isColorBySeries()) {\n return;\n }\n let decalScope = paletteScopeGroupByType.get(seriesModel.type);\n if (!decalScope) {\n decalScope = {};\n paletteScopeGroupByType.set(seriesModel.type, decalScope);\n }\n inner(seriesModel).scope = decalScope;\n });\n\n ecModel.eachRawSeries((seriesModel: SeriesModel) => {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n if (typeof seriesModel.enableAriaDecal === 'function') {\n // Let series define how to use decal palette on data\n seriesModel.enableAriaDecal();\n return;\n }\n\n const data = seriesModel.getData();\n\n if (!seriesModel.isColorBySeries()) {\n const dataAll = seriesModel.getRawData();\n const idxMap: Dictionary = {};\n const decalScope = inner(seriesModel).scope;\n\n data.each(function (idx) {\n const rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n\n const dataCount = dataAll.count();\n dataAll.each(rawIdx => {\n const idx = idxMap[rawIdx];\n const name = dataAll.getName(rawIdx) || (rawIdx + '');\n const paletteDecal = getDecalFromPalette(\n seriesModel.ecModel,\n name,\n decalScope,\n dataCount\n );\n const specifiedDecal = data.getItemVisual(idx, 'decal');\n data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal));\n });\n }\n else {\n const paletteDecal = getDecalFromPalette(\n seriesModel.ecModel,\n seriesModel.name,\n decalPaletteScope,\n ecModel.getSeriesCount()\n );\n const specifiedDecal = data.getVisual('decal');\n data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal));\n }\n\n function mergeDecal(specifiedDecal: DecalObject, paletteDecal: DecalObject): DecalObject {\n // Merge decal from palette to decal from itemStyle.\n // User do not need to specify all of the decal props.\n const resultDecal = specifiedDecal\n ? zrUtil.extend(zrUtil.extend({}, paletteDecal), specifiedDecal)\n : paletteDecal;\n (resultDecal as InnerDecalObject).dirty = true;\n return resultDecal;\n }\n });\n }\n }\n\n function setLabel() {\n const labelLocale = ecModel.getLocaleModel().get('aria');\n const labelModel = ariaModel.getModel('label');\n labelModel.option = zrUtil.defaults(labelModel.option, labelLocale);\n\n if (!labelModel.get('enabled')) {\n return;\n }\n\n const dom = api.getZr().dom;\n if (labelModel.get('description')) {\n dom.setAttribute('aria-label', labelModel.get('description'));\n return;\n }\n\n const seriesCnt = ecModel.getSeriesCount();\n const maxDataCnt = labelModel.get(['data', 'maxCount']) || 10;\n const maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10;\n const displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt);\n\n let ariaLabel;\n if (seriesCnt < 1) {\n // No series, no aria label\n return;\n }\n else {\n const title = getTitle();\n if (title) {\n const withTitle = labelModel.get(['general', 'withTitle']);\n ariaLabel = replace(withTitle, {\n title: title\n });\n }\n else {\n ariaLabel = labelModel.get(['general', 'withoutTitle']);\n }\n\n const seriesLabels: string[] = [];\n const prefix = seriesCnt > 1\n ? labelModel.get(['series', 'multiple', 'prefix'])\n : labelModel.get(['series', 'single', 'prefix']);\n ariaLabel += replace(prefix, { seriesCount: seriesCnt });\n\n ecModel.eachSeries(function (seriesModel, idx) {\n if (idx < displaySeriesCnt) {\n let seriesLabel;\n\n const seriesName = seriesModel.get('name');\n const withName = seriesName ? 'withName' : 'withoutName';\n seriesLabel = seriesCnt > 1\n ? labelModel.get(['series', 'multiple', withName])\n : labelModel.get(['series', 'single', withName]);\n\n seriesLabel = replace(seriesLabel, {\n seriesId: seriesModel.seriesIndex,\n seriesName: seriesModel.get('name'),\n seriesType: getSeriesTypeName(seriesModel.subType as SeriesTypes)\n });\n\n const data = seriesModel.getData();\n if (data.count() > maxDataCnt) {\n // Show part of data\n const partialLabel = labelModel.get(['data', 'partialData']);\n seriesLabel += replace(partialLabel, {\n displayCnt: maxDataCnt\n });\n }\n else {\n seriesLabel += labelModel.get(['data', 'allData']);\n }\n\n const dataLabels = [];\n for (let i = 0; i < data.count(); i++) {\n if (i < maxDataCnt) {\n const name = data.getName(i);\n const value = retrieveRawValue(data, i);\n const dataLabel = labelModel.get(['data', name ? 'withName' : 'withoutName']);\n dataLabels.push(\n replace(dataLabel, {\n name: name,\n value: value\n })\n );\n }\n }\n const middleSeparator = labelModel.get(['data', 'separator', 'middle']);\n const endSeparator = labelModel.get(['data', 'separator', 'end']);\n seriesLabel += dataLabels.join(middleSeparator) + endSeparator;\n\n seriesLabels.push(seriesLabel);\n }\n });\n\n const separatorModel = labelModel.getModel(['series', 'multiple', 'separator']);\n const middleSeparator = separatorModel.get('middle');\n const endSeparator = separatorModel.get('end');\n ariaLabel += seriesLabels.join(middleSeparator) + endSeparator;\n\n dom.setAttribute('aria-label', ariaLabel);\n }\n }\n\n function replace(str: string, keyValues: object) {\n if (typeof str !== 'string') {\n return str;\n }\n\n let result = str;\n zrUtil.each(keyValues, function (value: string, key: string) {\n result = result.replace(\n new RegExp('\\\\{\\\\s*' + key + '\\\\s*\\\\}', 'g'),\n value\n );\n });\n return result;\n }\n\n function getTitle() {\n let title = ecModel.get('title') as TitleOption | TitleOption[];\n if (title && (title as TitleOption[]).length) {\n title = (title as TitleOption[])[0];\n }\n return title && (title as TitleOption).text;\n }\n\n function getSeriesTypeName(type: SeriesTypes) {\n return ecModel.getLocaleModel().get(['series', 'typeNames'])[type] || '\u81EA\u5B9A\u4E49\u56FE';\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption, AriaOptionMixin } from '../../util/types';\n\nexport default function ariaPreprocessor(option: ECUnitOption & AriaOptionMixin) {\n if (!option || !option.aria) {\n return;\n }\n\n const aria = option.aria;\n // aria.show is deprecated and should use aria.enabled instead\n if ((aria as any).show != null) {\n aria.enabled = (aria as any).show;\n }\n\n aria.label = aria.label || {};\n // move description, general, series, data to be under aria.label\n zrUtil.each(['description', 'general', 'series', 'data'], name => {\n if ((aria as any)[name] != null) {\n (aria.label as any)[name] = (aria as any)[name];\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ariaVisual from '../../visual/aria';\nimport ariaPreprocessor from './preprocessor';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPreprocessor(ariaPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { OptionDataValue, DimensionLoose, Dictionary } from './types';\nimport {\n keys, isArray, map, isObject, isString, HashMap, isRegExp, isArrayLike, hasOwn\n} from 'zrender/src/core/util';\nimport { throwError, makePrintable } from './log';\nimport {\n RawValueParserType, getRawValueParser,\n RelationalOperator, FilterComparator, createFilterComparator\n} from '../data/helper/dataValueHelper';\n\n\n// PENDING:\n// (1) Support more parser like: `parser: 'trim'`, `parser: 'lowerCase'`, `parser: 'year'`, `parser: 'dayOfWeek'`?\n// (2) Support piped parser ?\n// (3) Support callback parser or callback condition?\n// (4) At present do not support string expression yet but only stuctured expression.\n\n\n/**\n * The structured expression considered:\n * (1) Literal simplicity\n * (2) Sementic displayed clearly\n *\n * Sementic supports:\n * (1) relational expression\n * (2) logical expression\n *\n * For example:\n * ```js\n * {\n * and: [{\n * or: [{\n * dimension: 'Year', gt: 2012, lt: 2019\n * }, {\n * dimension: 'Year', '>': 2002, '<=': 2009\n * }]\n * }, {\n * dimension: 'Product', eq: 'Tofu'\n * }]\n * }\n *\n * { dimension: 'Product', eq: 'Tofu' }\n *\n * {\n * or: [\n * { dimension: 'Product', value: 'Tofu' },\n * { dimension: 'Product', value: 'Biscuit' }\n * ]\n * }\n *\n * {\n * and: [true]\n * }\n * ```\n *\n * [PARSER]\n * In an relation expression object, we can specify some built-in parsers:\n * ```js\n * // Trim if string\n * {\n * parser: 'trim',\n * eq: 'Flowers'\n * }\n * // Parse as time and enable arithmetic relation comparison.\n * {\n * parser: 'time',\n * lt: '2012-12-12'\n * }\n * // Normalize number-like string and make '-' to Null.\n * {\n * parser: 'time',\n * lt: '2012-12-12'\n * }\n * // Normalize to number:\n * // + number-like string (like ' 123 ') can be converted to a number.\n * // + where null/undefined or other string will be converted to NaN.\n * {\n * parser: 'number',\n * eq: 2011\n * }\n * // RegExp, include the feature in SQL: `like '%xxx%'`.\n * {\n * reg: /^asdf$/\n * }\n * {\n * reg: '^asdf$' // Serializable reg exp, will be `new RegExp(...)`\n * }\n * ```\n *\n *\n * [EMPTY_RULE]\n * (1) If a relational expression set value as `null`/`undefined` like:\n * `{ dimension: 'Product', lt: undefined }`,\n * The result will be `false` rather than `true`.\n * Consider the case like \"filter condition\", return all result when null/undefined\n * is probably not expected and even dangours.\n * (2) If a relational expression has no operator like:\n * `{ dimension: 'Product' }`,\n * An error will be thrown. Because it is probably a mistake.\n * (3) If a logical expression has no children like\n * `{ and: undefined }` or `{ and: [] }`,\n * An error will be thrown. Because it is probably an mistake.\n * (4) If intending have a condition that always `true` or always `false`,\n * Use `true` or `flase`.\n * The entire condition can be `true`/`false`,\n * or also can be `{ and: [true] }`, `{ or: [false] }`\n */\n\n\n// --------------------------------------------------\n// --- Relational Expression --------------------------\n// --------------------------------------------------\n\n/**\n * Date string and ordinal string can be accepted.\n */\ninterface RelationalExpressionOptionByOp extends Record {\n reg?: RegExp | string; // RegExp\n};\nconst RELATIONAL_EXPRESSION_OP_ALIAS_MAP = {\n value: 'eq',\n\n // PENDING: not good for literal semantic?\n '<': 'lt',\n '<=': 'lte',\n '>': 'gt',\n '>=': 'gte',\n '=': 'eq',\n '!=': 'ne',\n '<>': 'ne'\n\n // Might mileading for sake of the different between '==' and '===',\n // So dont support them.\n // '==': 'eq',\n // '===': 'seq',\n // '!==': 'sne'\n\n // PENDING: Whether support some common alias \"ge\", \"le\", \"neq\"?\n // ge: 'gte',\n // le: 'lte',\n // neq: 'ne',\n} as const;\ntype RelationalExpressionOptionByOpAlias = Record;\n\ninterface RelationalExpressionOption extends\n RelationalExpressionOptionByOp, RelationalExpressionOptionByOpAlias {\n dimension?: DimensionLoose;\n parser?: RawValueParserType;\n}\n\ntype RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean;\n\n\nclass RegExpEvaluator implements FilterComparator {\n private _condVal: RegExp;\n\n constructor(rVal: unknown) {\n // Support condVal: RegExp | string\n const condValue = this._condVal = isString(rVal) ? new RegExp(rVal)\n : isRegExp(rVal) ? rVal as RegExp\n : null;\n if (condValue == null) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable('Illegal regexp', rVal, 'in');\n }\n throwError(errMsg);\n }\n }\n\n evaluate(lVal: unknown): boolean {\n const type = typeof lVal;\n return type === 'string' ? this._condVal.test(lVal as string)\n : type === 'number' ? this._condVal.test(lVal + '')\n : false;\n }\n}\n\n\n\n\n// --------------------------------------------------\n// --- Logical Expression ---------------------------\n// --------------------------------------------------\n\n\ninterface LogicalExpressionOption {\n and?: LogicalExpressionSubOption[];\n or?: LogicalExpressionSubOption[];\n not?: LogicalExpressionSubOption;\n}\ntype LogicalExpressionSubOption =\n LogicalExpressionOption | RelationalExpressionOption | TrueFalseExpressionOption;\n\n\n\n// -----------------------------------------------------\n// --- Conditional Expression --------------------------\n// -----------------------------------------------------\n\n\nexport type TrueExpressionOption = true;\nexport type FalseExpressionOption = false;\nexport type TrueFalseExpressionOption = TrueExpressionOption | FalseExpressionOption;\n\nexport type ConditionalExpressionOption =\n LogicalExpressionOption\n | RelationalExpressionOption\n | TrueFalseExpressionOption;\n\ntype ValueGetterParam = Dictionary;\nexport interface ConditionalExpressionValueGetterParamGetter {\n (relExpOption: RelationalExpressionOption): VGP\n}\nexport interface ConditionalExpressionValueGetter {\n (param: VGP): OptionDataValue\n}\n\ninterface ParsedConditionInternal {\n evaluate(): boolean;\n}\nclass ConstConditionInternal implements ParsedConditionInternal {\n value: boolean;\n evaluate(): boolean {\n return this.value;\n }\n}\nclass AndConditionInternal implements ParsedConditionInternal {\n children: ParsedConditionInternal[];\n evaluate() {\n const children = this.children;\n for (let i = 0; i < children.length; i++) {\n if (!children[i].evaluate()) {\n return false;\n }\n }\n return true;\n }\n}\nclass OrConditionInternal implements ParsedConditionInternal {\n children: ParsedConditionInternal[];\n evaluate() {\n const children = this.children;\n for (let i = 0; i < children.length; i++) {\n if (children[i].evaluate()) {\n return true;\n }\n }\n return false;\n }\n}\nclass NotConditionInternal implements ParsedConditionInternal {\n child: ParsedConditionInternal;\n evaluate() {\n return !this.child.evaluate();\n }\n}\nclass RelationalConditionInternal implements ParsedConditionInternal {\n valueGetterParam: ValueGetterParam;\n valueParser: ReturnType;\n // If no parser, be null/undefined.\n getValue: ConditionalExpressionValueGetter;\n subCondList: FilterComparator[];\n\n evaluate() {\n const needParse = !!this.valueParser;\n // Call getValue with no `this`.\n const getValue = this.getValue;\n const tarValRaw = getValue(this.valueGetterParam);\n const tarValParsed = needParse ? this.valueParser(tarValRaw) : null;\n\n // Relational cond follow \"and\" logic internally.\n for (let i = 0; i < this.subCondList.length; i++) {\n if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {\n return false;\n }\n }\n return true;\n }\n}\n\nfunction parseOption(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n if (exprOption === true || exprOption === false) {\n const cond = new ConstConditionInternal();\n cond.value = exprOption as boolean;\n return cond;\n }\n\n let errMsg = '';\n if (!isObjectNotArray(exprOption)) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Illegal config. Expect a plain object but actually', exprOption\n );\n }\n throwError(errMsg);\n }\n\n if ((exprOption as LogicalExpressionOption).and) {\n return parseAndOrOption('and', exprOption as LogicalExpressionOption, getters);\n }\n else if ((exprOption as LogicalExpressionOption).or) {\n return parseAndOrOption('or', exprOption as LogicalExpressionOption, getters);\n }\n else if ((exprOption as LogicalExpressionOption).not) {\n return parseNotOption(exprOption as LogicalExpressionOption, getters);\n }\n\n return parseRelationalOption(exprOption as RelationalExpressionOption, getters);\n}\n\nfunction parseAndOrOption(\n op: 'and' | 'or',\n exprOption: LogicalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n const subOptionArr = exprOption[op] as ConditionalExpressionOption[];\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n '\"and\"/\"or\" condition should only be `' + op + ': [...]` and must not be empty array.',\n 'Illegal condition:', exprOption\n );\n }\n if (!isArray(subOptionArr)) {\n throwError(errMsg);\n }\n if (!(subOptionArr as []).length) {\n throwError(errMsg);\n }\n const cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal();\n cond.children = map(subOptionArr, subOption => parseOption(subOption, getters));\n if (!cond.children.length) {\n throwError(errMsg);\n }\n return cond;\n}\n\nfunction parseNotOption(\n exprOption: LogicalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n const subOption = exprOption.not as ConditionalExpressionOption;\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n '\"not\" condition should only be `not: {}`.',\n 'Illegal condition:', exprOption\n );\n }\n if (!isObjectNotArray(subOption)) {\n throwError(errMsg);\n }\n const cond = new NotConditionInternal();\n cond.child = parseOption(subOption, getters);\n if (!cond.child) {\n throwError(errMsg);\n }\n return cond;\n}\n\nfunction parseRelationalOption(\n exprOption: RelationalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n let errMsg = '';\n\n const valueGetterParam = getters.prepareGetValue(exprOption);\n\n const subCondList = [] as RelationalConditionInternal['subCondList'];\n const exprKeys = keys(exprOption);\n\n const parserName = exprOption.parser;\n const valueParser = parserName ? getRawValueParser(parserName) : null;\n\n for (let i = 0; i < exprKeys.length; i++) {\n const keyRaw = exprKeys[i];\n if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) {\n continue;\n }\n\n const op: keyof RelationalExpressionOptionByOp = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw)\n ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw as keyof RelationalExpressionOptionByOpAlias]\n : (keyRaw as keyof RelationalExpressionOptionByOp);\n const condValueRaw = exprOption[keyRaw];\n const condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw;\n const evaluator = createFilterComparator(op, condValueParsed)\n || (op === 'reg' && new RegExpEvaluator(condValueParsed));\n\n if (!evaluator) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Illegal relational operation: \"' + keyRaw + '\" in condition:', exprOption\n );\n }\n throwError(errMsg);\n }\n\n subCondList.push(evaluator);\n }\n\n if (!subCondList.length) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Relational condition must have at least one operator.',\n 'Illegal condition:', exprOption\n );\n }\n // No relational operator always disabled in case of dangers result.\n throwError(errMsg);\n }\n\n const cond = new RelationalConditionInternal();\n cond.valueGetterParam = valueGetterParam;\n cond.valueParser = valueParser;\n cond.getValue = getters.getValue;\n cond.subCondList = subCondList;\n\n return cond;\n}\n\nfunction isObjectNotArray(val: unknown): boolean {\n return isObject(val) && !isArrayLike(val);\n}\n\n\nclass ConditionalExpressionParsed {\n\n private _cond: ParsedConditionInternal;\n\n constructor(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n ) {\n this._cond = parseOption(exprOption, getters);\n }\n\n evaluate(): boolean {\n return this._cond.evaluate();\n }\n};\n\ninterface ConditionalGetters {\n prepareGetValue: ConditionalExpressionValueGetterParamGetter;\n getValue: ConditionalExpressionValueGetter;\n valueGetterAttrMap: HashMap;\n}\n\nexport function parseConditionalExpression(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n): ConditionalExpressionParsed {\n return new ConditionalExpressionParsed(exprOption, getters);\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DataTransformOption, ExternalDataTransform, DataTransformDataItem, ExternalDataTransformResultItem\n} from '../../data/helper/transform';\nimport { DimensionIndex } from '../../util/types';\nimport { parseConditionalExpression, ConditionalExpressionOption } from '../../util/conditionalExpression';\nimport { hasOwn, createHashMap } from 'zrender/src/core/util';\nimport { makePrintable, throwError } from '../../util/log';\n\n\nexport interface FilterTransformOption extends DataTransformOption {\n type: 'filter';\n config: ConditionalExpressionOption;\n}\n\nexport const filterTransform: ExternalDataTransform = {\n\n type: 'echarts:filter',\n\n // PEDING: enhance to filter by index rather than create new data\n transform: function (params) {\n // [Caveat] Fail-Fast:\n // Do not return the whole dataset unless user config indicate it explicitly.\n // For example, if no condition specified by mistake, return an empty result\n // is better than return the entire raw soruce for user to find the mistake.\n\n const upstream = params.upstream;\n let rawItem: DataTransformDataItem;\n\n const condition = parseConditionalExpression<{ dimIdx: DimensionIndex }>(params.config, {\n\n valueGetterAttrMap: createHashMap({ dimension: true }),\n\n prepareGetValue: function (exprOption) {\n let errMsg = '';\n const dimLoose = exprOption.dimension;\n if (!hasOwn(exprOption, 'dimension')) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Relation condition must has prop \"dimension\" specified.',\n 'Illegal condition:', exprOption\n );\n }\n throwError(errMsg);\n }\n\n const dimInfo = upstream.getDimensionInfo(dimLoose);\n if (!dimInfo) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Can not find dimension info via: ' + dimLoose + '.\\n',\n 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n',\n 'Illegal condition:', exprOption, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n return { dimIdx: dimInfo.index };\n },\n\n getValue: function (param) {\n return upstream.retrieveValueFromItem(rawItem, param.dimIdx);\n }\n });\n\n const resultData = [];\n for (let i = 0, len = upstream.count(); i < len; i++) {\n rawItem = upstream.getRawDataItem(i);\n if (condition.evaluate()) {\n resultData.push(rawItem as any);\n }\n }\n\n return {\n data: resultData as ExternalDataTransformResultItem['data']\n };\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DataTransformOption, ExternalDataTransform, ExternalDataTransformResultItem\n} from '../../data/helper/transform';\nimport {\n DimensionLoose, DimensionIndex, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS\n} from '../../util/types';\nimport { makePrintable, throwError } from '../../util/log';\nimport { each } from 'zrender/src/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport {\n RawValueParserType, getRawValueParser, SortOrderComparator\n} from '../../data/helper/dataValueHelper';\n\n/**\n * @usage\n *\n * ```js\n * transform: {\n * type: 'sort',\n * config: { dimension: 'score', order: 'asc' }\n * }\n * transform: {\n * type: 'sort',\n * config: [\n * { dimension: 1, order: 'asc' },\n * { dimension: 'age', order: 'desc' }\n * ]\n * }\n * ```\n */\n\nexport interface SortTransformOption extends DataTransformOption {\n type: 'sort';\n config: OrderExpression | OrderExpression[];\n}\n\n// PENDING: whether support { dimension: 'score', order: 'asc' } ?\ntype OrderExpression = {\n dimension: DimensionLoose;\n order: 'asc' | 'desc';\n parser?: RawValueParserType;\n // The meansing of \"incomparable\": see [SORT_COMPARISON_RULE]\n // in `data/helper/dataValueHelper.ts`\n incomparable?: 'min' | 'max';\n};\n\n\nlet sampleLog = '';\nif (__DEV__) {\n sampleLog = [\n 'Valid config is like:',\n '{ dimension: \"age\", order: \"asc\" }',\n 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'\n ].join(' ');\n}\n\n\nexport const sortTransform: ExternalDataTransform = {\n\n type: 'echarts:sort',\n\n transform: function (params) {\n const upstream = params.upstream;\n const config = params.config;\n let errMsg = '';\n\n // Normalize\n // const orderExprList: OrderExpression[] = isArray(config[0])\n // ? config as OrderExpression[]\n // : [config as OrderExpression];\n const orderExprList: OrderExpression[] = normalizeToArray(config);\n\n if (!orderExprList.length) {\n if (__DEV__) {\n errMsg = 'Empty `config` in sort transform.';\n }\n throwError(errMsg);\n }\n\n const orderDefList: {\n dimIdx: DimensionIndex;\n parser: ReturnType;\n comparator: SortOrderComparator\n }[] = [];\n each(orderExprList, function (orderExpr) {\n const dimLoose = orderExpr.dimension;\n const order = orderExpr.order;\n const parserName = orderExpr.parser;\n const incomparable = orderExpr.incomparable;\n\n if (dimLoose == null) {\n if (__DEV__) {\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\n }\n throwError(errMsg);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n if (__DEV__) {\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\n }\n throwError(errMsg);\n }\n\n if (incomparable && (incomparable !== 'min' && incomparable !== 'max')) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\n }\n throwError(errMsg);\n }\n if (order !== 'asc' && order !== 'desc') {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\n }\n throwError(errMsg);\n }\n\n const dimInfo = upstream.getDimensionInfo(dimLoose);\n if (!dimInfo) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Can not find dimension info via: ' + dimLoose + '.\\n',\n 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n',\n 'Illegal config:', orderExpr, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n const parser = parserName ? getRawValueParser(parserName) : null;\n if (parserName && !parser) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Invalid parser name ' + parserName + '.\\n',\n 'Illegal config:', orderExpr, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n orderDefList.push({\n dimIdx: dimInfo.index,\n parser: parser,\n comparator: new SortOrderComparator(order, incomparable)\n });\n });\n\n // TODO: support it?\n const sourceFormat = upstream.sourceFormat;\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS\n && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS\n ) {\n if (__DEV__) {\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\n }\n throwError(errMsg);\n }\n\n // Other upstream format are all array.\n const resultData = [];\n for (let i = 0, len = upstream.count(); i < len; i++) {\n resultData.push(upstream.getRawDataItem(i));\n }\n\n resultData.sort(function (item0, item1) {\n for (let i = 0; i < orderDefList.length; i++) {\n const orderDef = orderDefList[i];\n let val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\n let val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\n if (orderDef.parser) {\n val0 = orderDef.parser(val0) as OptionDataValue;\n val1 = orderDef.parser(val1) as OptionDataValue;\n }\n const result = orderDef.comparator.evaluate(val0, val1);\n if (result !== 0) {\n return result;\n }\n }\n return 0;\n });\n\n return {\n data: resultData as ExternalDataTransformResultItem['data']\n };\n }\n};\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport {filterTransform} from './filterTransform';\nimport {sortTransform} from './sortTransform';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerTransform(filterTransform);\n registers.registerTransform(sortTransform);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module is imported by echarts directly.\n *\n * Notice:\n * Always keep this file exists for backward compatibility.\n * Because before 4.1.0, dataset is an optional component,\n * some users may import this module manually.\n */\n\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport {\n SERIES_LAYOUT_BY_COLUMN, ComponentOption, SeriesEncodeOptionMixin,\n OptionSourceData, SeriesLayoutBy, OptionSourceHeader\n} from '../../util/types';\nimport { DataTransformOption, PipedDataTransformOption } from '../../data/helper/transform';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\nimport { disableTransformOptionMerge, SourceManager } from '../../data/helper/sourceManager';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\nexport interface DatasetOption extends\n Pick,\n Pick {\n mainType?: 'dataset';\n\n seriesLayoutBy?: SeriesLayoutBy;\n sourceHeader?: OptionSourceHeader;\n source?: OptionSourceData;\n\n fromDatasetIndex?: number;\n fromDatasetId?: string;\n transform?: DataTransformOption | PipedDataTransformOption;\n // When a transform result more than on results, the results can be referenced only by:\n // Using `fromDatasetIndex`/`fromDatasetId` and `transfromResultIndex` to retrieve\n // the results from other dataset.\n fromTransformResult?: number;\n}\n\nexport class DatasetModel extends ComponentModel {\n\n type = 'dataset';\n static type = 'dataset';\n\n static defaultOption: DatasetOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN\n };\n\n private _sourceManager: SourceManager;\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel): void {\n super.init(option, parentModel, ecModel);\n this._sourceManager = new SourceManager(this);\n disableTransformOptionMerge(this);\n }\n\n mergeOption(newOption: Opts, ecModel: GlobalModel): void {\n super.mergeOption(newOption, ecModel);\n disableTransformOptionMerge(this);\n }\n\n optionUpdated() {\n this._sourceManager.dirty();\n }\n\n getSourceManager() {\n return this._sourceManager;\n }\n}\n\nclass DatasetView extends ComponentView {\n static type = 'dataset';\n type = 'dataset';\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(DatasetModel);\n registers.registerComponentView(DatasetView);\n}", "import { cubicSubdivide } from '../core/curve';\nimport PathProxy from '../core/PathProxy';\n\nconst CMD = PathProxy.CMD;\n\nfunction aroundEqual(a: number, b: number) {\n return Math.abs(a - b) < 1e-5;\n}\n\nexport function pathToBezierCurves(path: PathProxy) {\n\n const data = path.data;\n const len = path.len();\n\n const bezierArrayGroups: number[][] = [];\n let currentSubpath: number[];\n\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n function createNewSubpath(x: number, y: number) {\n // More than one M command\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArrayGroups.push(currentSubpath);\n }\n currentSubpath = [x, y];\n }\n\n function addLine(x0: number, y0: number, x1: number, y1: number) {\n if (!(aroundEqual(x0, x1) && aroundEqual(y0, y1))) {\n currentSubpath.push(x0, y0, x1, y1, x1, y1);\n }\n }\n\n function addArc(startAngle: number, endAngle: number, cx: number, cy: number, rx: number, ry: number) {\n // https://stackoverflow.com/questions/1734745/how-to-create-circle-with-b%C3%A9zier-curves\n const delta = Math.abs(endAngle - startAngle);\n const len = Math.tan(delta / 4) * 4 / 3;\n const dir = endAngle < startAngle ? -1 : 1;\n\n const c1 = Math.cos(startAngle);\n const s1 = Math.sin(startAngle);\n const c2 = Math.cos(endAngle);\n const s2 = Math.sin(endAngle);\n\n const x1 = c1 * rx + cx;\n const y1 = s1 * ry + cy;\n\n const x4 = c2 * rx + cx;\n const y4 = s2 * ry + cy;\n\n const hx = rx * len * dir;\n const hy = ry * len * dir;\n currentSubpath.push(\n // Move control points on tangent.\n x1 - hx * s1, y1 + hy * c1,\n x4 + hx * s2, y4 - hy * c2,\n x4, y4\n );\n }\n\n let x1;\n let y1;\n let x2;\n let y2;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++];\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n\n if (cmd === CMD.L || cmd === CMD.C || cmd === CMD.Q) {\n // Start point\n currentSubpath = [x0, y0];\n }\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n\n createNewSubpath(x0, y0);\n break;\n case CMD.L:\n x1 = data[i++];\n y1 = data[i++];\n addLine(xi, yi, x1, y1);\n xi = x1;\n yi = y1;\n break;\n case CMD.C:\n currentSubpath.push(\n data[i++], data[i++], data[i++], data[i++],\n xi = data[i++], yi = data[i++]\n );\n break;\n case CMD.Q:\n x1 = data[i++];\n y1 = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n currentSubpath.push(\n // Convert quadratic to cubic\n xi + 2 / 3 * (x1 - xi), yi + 2 / 3 * (y1 - yi),\n x2 + 2 / 3 * (x1 - x2), y2 + 2 / 3 * (y1 - y2),\n x2, y2\n );\n xi = x2;\n yi = y2;\n break;\n case CMD.A:\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n const endAngle = data[i++] + startAngle;\n\n // TODO Arc rotation\n i += 1;\n const anticlockwise = !data[i++];\n\n x1 = Math.cos(startAngle) * rx + cx;\n y1 = Math.sin(startAngle) * ry + cy;\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n createNewSubpath(x0, y0);\n }\n else {\n // Connect a line between current point to arc start point.\n addLine(xi, yi, x1, y1);\n }\n\n xi = Math.cos(endAngle) * rx + cx;\n yi = Math.sin(endAngle) * ry + cy;\n\n const step = (anticlockwise ? -1 : 1) * Math.PI / 2;\n\n for (let angle = startAngle; anticlockwise ? angle > endAngle : angle < endAngle; angle += step) {\n const nextAngle = anticlockwise ? Math.max(angle + step, endAngle)\n : Math.min(angle + step, endAngle);\n addArc(angle, nextAngle, cx, cy, rx, ry);\n }\n\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n x1 = x0 + data[i++];\n y1 = y0 + data[i++];\n\n // rect is an individual path.\n createNewSubpath(x1, y0);\n addLine(x1, y0, x1, y1);\n addLine(x1, y1, x0, y1);\n addLine(x0, y1, x0, y0);\n addLine(x0, y0, x1, y0);\n break;\n case CMD.Z:\n currentSubpath && addLine(xi, yi, x0, y0);\n xi = x0;\n yi = y0;\n break;\n }\n }\n\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArrayGroups.push(currentSubpath);\n }\n\n return bezierArrayGroups;\n}\n\nfunction adpativeBezier(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n out: number[], scale: number\n) {\n // This bezier is used to simulates a line when converting path to beziers.\n if (aroundEqual(x0, x1) && aroundEqual(y0, y1) && aroundEqual(x2, x3) && aroundEqual(y2, y3)) {\n out.push(x3, y3);\n return;\n }\n\n const PIXEL_DISTANCE = 2 / scale;\n const PIXEL_DISTANCE_SQR = PIXEL_DISTANCE * PIXEL_DISTANCE;\n\n // Determine if curve is straight enough\n let dx = x3 - x0;\n let dy = y3 - y0;\n const d = Math.sqrt(dx * dx + dy * dy);\n dx /= d;\n dy /= d;\n\n const dx1 = x1 - x0;\n const dy1 = y1 - y0;\n const dx2 = x2 - x3;\n const dy2 = y2 - y3;\n\n const cp1LenSqr = dx1 * dx1 + dy1 * dy1;\n const cp2LenSqr = dx2 * dx2 + dy2 * dy2;\n\n if (cp1LenSqr < PIXEL_DISTANCE_SQR && cp2LenSqr < PIXEL_DISTANCE_SQR) {\n // Add small segment\n out.push(x3, y3);\n return;\n }\n\n // Project length of cp1\n const projLen1 = dx * dx1 + dy * dy1;\n // Project length of cp2\n const projLen2 = -dx * dx2 - dy * dy2;\n\n // Distance from cp1 to start-end line.\n const d1Sqr = cp1LenSqr - projLen1 * projLen1;\n // Distance from cp2 to start-end line.\n const d2Sqr = cp2LenSqr - projLen2 * projLen2;\n\n // IF the cp1 and cp2 is near to the start-line enough\n // We treat it straight enough\n if (d1Sqr < PIXEL_DISTANCE_SQR && projLen1 >= 0\n && d2Sqr < PIXEL_DISTANCE_SQR && projLen2 >= 0\n ) {\n out.push(x3, y3);\n return;\n }\n\n\n const tmpSegX: number[] = [];\n const tmpSegY: number[] = [];\n // Subdivide\n cubicSubdivide(x0, x1, x2, x3, 0.5, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, 0.5, tmpSegY);\n\n adpativeBezier(\n tmpSegX[0], tmpSegY[0], tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], tmpSegX[3], tmpSegY[3],\n out, scale\n );\n adpativeBezier(\n tmpSegX[4], tmpSegY[4], tmpSegX[5], tmpSegY[5], tmpSegX[6], tmpSegY[6], tmpSegX[7], tmpSegY[7],\n out, scale\n );\n}\n\nexport function pathToPolygons(path: PathProxy, scale?: number) {\n // TODO Optimize simple case like path is polygon and rect?\n const bezierArrayGroups = pathToBezierCurves(path);\n\n const polygons: number[][] = [];\n\n scale = scale || 1;\n\n for (let i = 0; i < bezierArrayGroups.length; i++) {\n const beziers = bezierArrayGroups[i];\n const polygon: number[] = [];\n let x0 = beziers[0];\n let y0 = beziers[1];\n\n polygon.push(x0, y0);\n\n for (let k = 2; k < beziers.length;) {\n\n const x1 = beziers[k++];\n const y1 = beziers[k++];\n const x2 = beziers[k++];\n const y2 = beziers[k++];\n const x3 = beziers[k++];\n const y3 = beziers[k++];\n\n adpativeBezier(x0, y0, x1, y1, x2, y2, x3, y3, polygon, scale);\n\n x0 = x3;\n y0 = y3;\n }\n\n polygons.push(polygon);\n }\n return polygons;\n}\n", "import { fromPoints } from '../core/bbox';\nimport BoundingRect from '../core/BoundingRect';\nimport Point from '../core/Point';\nimport { each, map } from '../core/util';\nimport Path from '../graphic/Path';\nimport Polygon from '../graphic/shape/Polygon';\nimport Rect from '../graphic/shape/Rect';\nimport Sector from '../graphic/shape/Sector';\nimport { pathToPolygons } from './convertPath';\nimport { clonePath } from './path';\n\n// Default shape dividers\n// TODO divide polygon by grids.\ninterface BinaryDivide {\n (shape: Path['shape']): Path['shape'][]\n}\n\n/**\n * Calculating a grid to divide the shape.\n */\nfunction getDividingGrids(dimSize: number[], rowDim: number, count: number) {\n const rowSize = dimSize[rowDim];\n const columnSize = dimSize[1 - rowDim];\n\n const ratio = Math.abs(rowSize / columnSize);\n let rowCount = Math.ceil(Math.sqrt(ratio * count));\n let columnCount = Math.floor(count / rowCount);\n if (columnCount === 0) {\n columnCount = 1;\n rowCount = count;\n }\n\n const grids: number[] = [];\n for (let i = 0; i < rowCount; i++) {\n grids.push(columnCount);\n }\n const currentCount = rowCount * columnCount;\n // Distribute the remaind grid evenly on each row.\n const remained = count - currentCount;\n if (remained > 0) {\n // const stride = Math.max(Math.floor(rowCount / remained), 1);\n for (let i = 0; i < remained; i++) {\n grids[i % rowCount] += 1;\n }\n }\n return grids;\n}\n\n\n// TODO cornerRadius\nfunction divideSector(sectorShape: Sector['shape'], count: number, outShapes: Sector['shape'][]) {\n const r0 = sectorShape.r0;\n const r = sectorShape.r;\n const startAngle = sectorShape.startAngle;\n const endAngle = sectorShape.endAngle;\n const angle = Math.abs(endAngle - startAngle);\n const arcLen = angle * r;\n const deltaR = r - r0;\n\n const isAngleRow = arcLen > Math.abs(deltaR);\n const grids = getDividingGrids([arcLen, deltaR], isAngleRow ? 0 : 1, count);\n\n const rowSize = (isAngleRow ? angle : deltaR) / grids.length;\n\n for (let row = 0; row < grids.length; row++) {\n const columnSize = (isAngleRow ? deltaR : angle) / grids[row];\n for (let column = 0; column < grids[row]; column++) {\n const newShape = {} as Sector['shape'];\n\n if (isAngleRow) {\n newShape.startAngle = startAngle + rowSize * row;\n newShape.endAngle = startAngle + rowSize * (row + 1);\n newShape.r0 = r0 + columnSize * column;\n newShape.r = r0 + columnSize * (column + 1);\n }\n else {\n newShape.startAngle = startAngle + columnSize * column;\n newShape.endAngle = startAngle + columnSize * (column + 1);\n newShape.r0 = r0 + rowSize * row;\n newShape.r = r0 + rowSize * (row + 1);\n }\n\n newShape.clockwise = sectorShape.clockwise;\n newShape.cx = sectorShape.cx;\n newShape.cy = sectorShape.cy;\n\n outShapes.push(newShape);\n }\n }\n}\n\nfunction divideRect(rectShape: Rect['shape'], count: number, outShapes: Rect['shape'][]) {\n const width = rectShape.width;\n const height = rectShape.height;\n\n const isHorizontalRow = width > height;\n const grids = getDividingGrids([width, height], isHorizontalRow ? 0 : 1, count);\n const rowSizeDim = isHorizontalRow ? 'width' : 'height';\n const columnSizeDim = isHorizontalRow ? 'height' : 'width';\n const rowDim = isHorizontalRow ? 'x' : 'y';\n const columnDim = isHorizontalRow ? 'y' : 'x';\n const rowSize = rectShape[rowSizeDim] / grids.length;\n\n for (let row = 0; row < grids.length; row++) {\n const columnSize = rectShape[columnSizeDim] / grids[row];\n for (let column = 0; column < grids[row]; column++) {\n const newShape = {} as Rect['shape'];\n newShape[rowDim] = row * rowSize;\n newShape[columnDim] = column * columnSize;\n newShape[rowSizeDim] = rowSize;\n newShape[columnSizeDim] = columnSize;\n\n newShape.x += rectShape.x;\n newShape.y += rectShape.y;\n\n outShapes.push(newShape);\n }\n }\n}\n\nfunction crossProduct2d(x1: number, y1: number, x2: number, y2: number) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction lineLineIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number, // p1\n b1x: number, b1y: number, b2x: number, b2y: number // p2\n): Point {\n const mx = a2x - a1x;\n const my = a2y - a1y;\n const nx = b2x - b1x;\n const ny = b2y - b1y;\n\n const nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n if (Math.abs(nmCrossProduct) < 1e-6) {\n return null;\n }\n\n const b1a1x = a1x - b1x;\n const b1a1y = a1y - b1y;\n\n const p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n if (p < 0 || p > 1) {\n return null;\n }\n // p2 is an infinite line\n return new Point(\n p * mx + a1x,\n p * my + a1y\n );\n}\n\nfunction projPtOnLine(pt: Point, lineA: Point, lineB: Point): number {\n const dir = new Point();\n Point.sub(dir, lineB, lineA);\n dir.normalize();\n const dir2 = new Point();\n Point.sub(dir2, pt, lineA);\n const len = dir2.dot(dir);\n return len;\n}\n\nfunction addToPoly(poly: number[][], pt: number[]) {\n const last = poly[poly.length - 1];\n if (last && last[0] === pt[0] && last[1] === pt[1]) {\n return;\n }\n poly.push(pt);\n}\n\nfunction splitPolygonByLine(points: number[][], lineA: Point, lineB: Point) {\n const len = points.length;\n const intersections: {\n projPt: number,\n pt: Point\n idx: number\n }[] = [];\n for (let i = 0; i < len; i++) {\n const p0 = points[i];\n const p1 = points[(i + 1) % len];\n const intersectionPt = lineLineIntersect(\n p0[0], p0[1], p1[0], p1[1],\n lineA.x, lineA.y, lineB.x, lineB.y\n );\n if (intersectionPt) {\n intersections.push({\n projPt: projPtOnLine(intersectionPt, lineA, lineB),\n pt: intersectionPt,\n idx: i\n });\n }\n }\n\n // TODO No intersection?\n if (intersections.length < 2) {\n // Do clone\n return [ { points}, {points} ];\n }\n\n // Find two farthest points.\n intersections.sort((a, b) => {\n return a.projPt - b.projPt;\n });\n let splitPt0 = intersections[0];\n let splitPt1 = intersections[intersections.length - 1];\n if (splitPt1.idx < splitPt0.idx) {\n const tmp = splitPt0;\n splitPt0 = splitPt1;\n splitPt1 = tmp;\n }\n\n const splitPt0Arr = [splitPt0.pt.x, splitPt0.pt.y];\n const splitPt1Arr = [splitPt1.pt.x, splitPt1.pt.y];\n\n const newPolyA: number[][] = [splitPt0Arr];\n const newPolyB: number[][] = [splitPt1Arr];\n\n for (let i = splitPt0.idx + 1; i <= splitPt1.idx; i++) {\n addToPoly(newPolyA, points[i].slice());\n }\n addToPoly(newPolyA, splitPt1Arr);\n // Close the path\n addToPoly(newPolyA, splitPt0Arr);\n\n for (let i = splitPt1.idx + 1; i <= splitPt0.idx + len; i++) {\n addToPoly(newPolyB, points[i % len].slice());\n }\n addToPoly(newPolyB, splitPt0Arr);\n // Close the path\n addToPoly(newPolyB, splitPt1Arr);\n\n return [{\n points: newPolyA\n }, {\n points: newPolyB\n }];\n}\n\nfunction binaryDividePolygon(\n polygonShape: Pick\n) {\n const points = polygonShape.points;\n const min: number[] = [];\n const max: number[] = [];\n fromPoints(points, min, max);\n const boundingRect = new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n );\n\n const width = boundingRect.width;\n const height = boundingRect.height;\n const x = boundingRect.x;\n const y = boundingRect.y;\n\n const pt0 = new Point();\n const pt1 = new Point();\n if (width > height) {\n pt0.x = pt1.x = x + width / 2;\n pt0.y = y;\n pt1.y = y + height;\n }\n else {\n pt0.y = pt1.y = y + height / 2;\n pt0.x = x;\n pt1.x = x + width;\n }\n return splitPolygonByLine(points, pt0, pt1);\n}\n\n\nfunction binaryDivideRecursive(\n divider: BinaryDivide, shape: T, count: number, out: T[]\n): T[] {\n if (count === 1) {\n out.push(shape);\n }\n else {\n const mid = Math.floor(count / 2);\n const sub = divider(shape);\n binaryDivideRecursive(divider, sub[0], mid, out);\n binaryDivideRecursive(divider, sub[1], count - mid, out);\n }\n\n return out;\n}\n\nexport function clone(path: Path, count: number) {\n const paths = [];\n for (let i = 0; i < count; i++) {\n paths.push(clonePath(path));\n }\n return paths;\n}\n\nfunction copyPathProps(source: Path, target: Path) {\n target.setStyle(source.style);\n target.z = source.z;\n target.z2 = source.z2;\n target.zlevel = source.zlevel;\n}\n\nfunction polygonConvert(points: number[]): number[][] {\n const out = [];\n for (let i = 0; i < points.length;) {\n out.push([points[i++], points[i++]]);\n }\n return out;\n}\n\nexport function split(\n path: Path, count: number\n) {\n const outShapes: Path['shape'][] = [];\n const shape = path.shape;\n let OutShapeCtor: new() => Path;\n // TODO Use clone when shape size is small\n switch (path.type) {\n case 'rect':\n divideRect(shape as Rect['shape'], count, outShapes as Rect['shape'][]);\n OutShapeCtor = Rect;\n break;\n case 'sector':\n divideSector(shape as Sector['shape'], count, outShapes as Sector['shape'][]);\n OutShapeCtor = Sector;\n break;\n case 'circle':\n divideSector({\n r0: 0, r: shape.r, startAngle: 0, endAngle: Math.PI * 2,\n cx: shape.cx, cy: shape.cy\n } as Sector['shape'], count, outShapes as Sector['shape'][]);\n OutShapeCtor = Sector;\n break;\n default:\n const m = path.getComputedTransform();\n const scale = m ? Math.sqrt(Math.max(m[0] * m[0] + m[1] * m[1], m[2] * m[2] + m[3] * m[3])) : 1;\n const polygons = map(\n pathToPolygons(path.getUpdatedPathProxy(), scale),\n poly => polygonConvert(poly)\n );\n const polygonCount = polygons.length;\n if (polygonCount === 0) {\n binaryDivideRecursive(binaryDividePolygon, {\n points: polygons[0]\n }, count, outShapes);\n }\n else if (polygonCount === count) { // In case we only split batched paths to non-batched paths. No need to split.\n for (let i = 0; i < polygonCount; i++) {\n outShapes.push({\n points: polygons[i]\n } as Polygon['shape']);\n }\n }\n else {\n // Most complex case. Assign multiple subpath to each polygon based on it's area.\n let totalArea = 0;\n const items = map(polygons, poly => {\n const min: number[] = [];\n const max: number[] = [];\n fromPoints(poly, min, max);\n // TODO: polygon area?\n const area = (max[1] - min[1]) * (max[0] - min[0]);\n totalArea += area;\n return { poly, area };\n });\n items.sort((a, b) => b.area - a.area);\n\n let left = count;\n for (let i = 0; i < polygonCount; i++) {\n const item = items[i];\n if (left <= 0) {\n break;\n }\n\n const selfCount = i === polygonCount - 1\n ? left // Use the last piece directly\n : Math.ceil(item.area / totalArea * count);\n\n if (selfCount < 0) {\n continue;\n }\n\n binaryDivideRecursive(binaryDividePolygon, {\n points: item.poly\n }, selfCount, outShapes);\n left -= selfCount;\n };\n }\n OutShapeCtor = Polygon;\n break;\n }\n\n if (!OutShapeCtor) {\n // Unkown split algorithm. Use clone instead\n return clone(path, count);\n }\n const out: Path[] = [];\n\n for (let i = 0; i < outShapes.length; i++) {\n const subPath = new OutShapeCtor();\n subPath.setShape(outShapes[i]);\n copyPathProps(path, subPath);\n out.push(subPath);\n }\n\n return out;\n}", "import PathProxy from '../core/PathProxy';\nimport { cubicSubdivide } from '../core/curve';\nimport Path from '../graphic/Path';\nimport Element, { ElementAnimateConfig } from '../Element';\nimport { defaults, extend, map } from '../core/util';\nimport { lerp } from '../core/vector';\nimport Group, { GroupLike } from '../graphic/Group';\nimport { clonePath } from './path';\nimport { MatrixArray } from '../core/matrix';\nimport Transformable from '../core/Transformable';\nimport { ZRenderType } from '../zrender';\nimport { split } from './dividePath';\nimport { pathToBezierCurves } from './convertPath';\n\nfunction alignSubpath(subpath1: number[], subpath2: number[]): [number[], number[]] {\n const len1 = subpath1.length;\n const len2 = subpath2.length;\n if (len1 === len2) {\n return [subpath1, subpath2];\n }\n const tmpSegX: number[] = [];\n const tmpSegY: number[] = [];\n\n const shorterPath = len1 < len2 ? subpath1 : subpath2;\n const shorterLen = Math.min(len1, len2);\n // Should divide excatly\n const diff = Math.abs(len2 - len1) / 6;\n const shorterBezierCount = (shorterLen - 2) / 6;\n // Add `diff` number of beziers\n const eachCurveSubDivCount = Math.ceil(diff / shorterBezierCount) + 1;\n\n const newSubpath = [shorterPath[0], shorterPath[1]];\n let remained = diff;\n\n for (let i = 2; i < shorterLen;) {\n let x0 = shorterPath[i - 2];\n let y0 = shorterPath[i - 1];\n let x1 = shorterPath[i++];\n let y1 = shorterPath[i++];\n let x2 = shorterPath[i++];\n let y2 = shorterPath[i++];\n let x3 = shorterPath[i++];\n let y3 = shorterPath[i++];\n\n if (remained <= 0) {\n newSubpath.push(x1, y1, x2, y2, x3, y3);\n continue;\n }\n\n let actualSubDivCount = Math.min(remained, eachCurveSubDivCount - 1) + 1;\n for (let k = 1; k <= actualSubDivCount; k++) {\n const p = k / actualSubDivCount;\n\n cubicSubdivide(x0, x1, x2, x3, p, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, p, tmpSegY);\n\n // tmpSegX[3] === tmpSegX[4]\n x0 = tmpSegX[3];\n y0 = tmpSegY[3];\n\n newSubpath.push(tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], x0, y0);\n x1 = tmpSegX[5];\n y1 = tmpSegY[5];\n x2 = tmpSegX[6];\n y2 = tmpSegY[6];\n // The last point (x3, y3) is still the same.\n }\n remained -= actualSubDivCount - 1;\n }\n\n return shorterPath === subpath1 ? [newSubpath, subpath2] : [subpath1, newSubpath];\n}\n\nfunction createSubpath(lastSubpathSubpath: number[], otherSubpath: number[]) {\n const len = lastSubpathSubpath.length;\n const lastX = lastSubpathSubpath[len - 2];\n const lastY = lastSubpathSubpath[len - 1];\n\n const newSubpath: number[] = [];\n for (let i = 0; i < otherSubpath.length;) {\n newSubpath[i++] = lastX;\n newSubpath[i++] = lastY;\n }\n return newSubpath;\n}\n\n/**\n * Make two bezier arrays aligns on structure. To have better animation.\n *\n * It will:\n * Make two bezier arrays have same number of subpaths.\n * Make each subpath has equal number of bezier curves.\n *\n * array is the convert result of pathToBezierCurves.\n */\nexport function alignBezierCurves(array1: number[][], array2: number[][]) {\n\n let lastSubpath1;\n let lastSubpath2;\n\n let newArray1 = [];\n let newArray2 = [];\n\n for (let i = 0; i < Math.max(array1.length, array2.length); i++) {\n const subpath1 = array1[i];\n const subpath2 = array2[i];\n\n let newSubpath1;\n let newSubpath2;\n\n if (!subpath1) {\n newSubpath1 = createSubpath(lastSubpath1 || subpath2, subpath2);\n newSubpath2 = subpath2;\n }\n else if (!subpath2) {\n newSubpath2 = createSubpath(lastSubpath2 || subpath1, subpath1);\n newSubpath1 = subpath1;\n }\n else {\n [newSubpath1, newSubpath2] = alignSubpath(subpath1, subpath2);\n lastSubpath1 = newSubpath1;\n lastSubpath2 = newSubpath2;\n }\n\n newArray1.push(newSubpath1);\n newArray2.push(newSubpath2);\n }\n\n return [newArray1, newArray2];\n}\n\ninterface MorphingPath extends Path {\n __morphT: number;\n}\n\nexport interface CombineMorphingPath extends Path {\n childrenRef(): (CombineMorphingPath | Path)[]\n __isCombineMorphing: boolean;\n}\n\nexport function centroid(array: number[]) {\n // https://en.wikipedia.org/wiki/Centroid#Of_a_polygon\n let signedArea = 0;\n let cx = 0;\n let cy = 0;\n const len = array.length;\n // Polygon should been closed.\n for (let i = 0, j = len - 2; i < len; j = i, i += 2) {\n const x0 = array[j];\n const y0 = array[j + 1];\n const x1 = array[i];\n const y1 = array[i + 1];\n const a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n }\n\n if (signedArea === 0) {\n return [array[0] || 0, array[1] || 0];\n }\n\n return [cx / signedArea / 3, cy / signedArea / 3, signedArea];\n}\n\n/**\n * Offset the points to find the nearest morphing distance.\n * Return beziers count needs to be offset.\n */\nfunction findBestRingOffset(\n fromSubBeziers: number[],\n toSubBeziers: number[],\n fromCp: number[],\n toCp: number[]\n) {\n const bezierCount = (fromSubBeziers.length - 2) / 6;\n let bestScore = Infinity;\n let bestOffset = 0;\n\n const len = fromSubBeziers.length;\n const len2 = len - 2;\n for (let offset = 0; offset < bezierCount; offset++) {\n const cursorOffset = offset * 6;\n let score = 0;\n\n for (let k = 0; k < len; k += 2) {\n let idx = k === 0 ? cursorOffset : ((cursorOffset + k - 2) % len2 + 2);\n\n const x0 = fromSubBeziers[idx] - fromCp[0];\n const y0 = fromSubBeziers[idx + 1] - fromCp[1];\n const x1 = toSubBeziers[k] - toCp[0];\n const y1 = toSubBeziers[k + 1] - toCp[1];\n\n const dx = x1 - x0;\n const dy = y1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestOffset = offset;\n }\n }\n\n return bestOffset;\n}\n\nfunction reverse(array: number[]) {\n const newArr: number[] = [];\n const len = array.length;\n for (let i = 0; i < len; i += 2) {\n newArr[i] = array[len - i - 2];\n newArr[i + 1] = array[len - i - 1];\n }\n return newArr;\n}\n\ntype MorphingData = {\n from: number[];\n to: number[];\n fromCp: number[];\n toCp: number[];\n rotation: number;\n}[];\n\n/**\n * If we interpolating between two bezier curve arrays.\n * It will have many broken effects during the transition.\n * So we try to apply an extra rotation which can make each bezier curve morph as small as possible.\n */\nfunction findBestMorphingRotation(\n fromArr: number[][],\n toArr: number[][],\n searchAngleIteration: number,\n searchAngleRange: number\n): MorphingData {\n const result = [];\n\n let fromNeedsReverse: boolean;\n\n for (let i = 0; i < fromArr.length; i++) {\n let fromSubpathBezier = fromArr[i];\n const toSubpathBezier = toArr[i];\n\n const fromCp = centroid(fromSubpathBezier);\n const toCp = centroid(toSubpathBezier);\n\n if (fromNeedsReverse == null) {\n // Reverse from array if two have different directions.\n // Determine the clockwise based on the first subpath.\n // Reverse all subpaths or not. Avoid winding rule changed.\n fromNeedsReverse = fromCp[2] < 0 !== toCp[2] < 0;\n }\n\n const newFromSubpathBezier: number[] = [];\n const newToSubpathBezier: number[] = [];\n let bestAngle = 0;\n let bestScore = Infinity;\n let tmpArr: number[] = [];\n\n const len = fromSubpathBezier.length;\n if (fromNeedsReverse) {\n // Make sure clockwise\n fromSubpathBezier = reverse(fromSubpathBezier);\n }\n const offset = findBestRingOffset(fromSubpathBezier, toSubpathBezier, fromCp, toCp) * 6;\n\n const len2 = len - 2;\n for (let k = 0; k < len2; k += 2) {\n // Not include the start point.\n const idx = (offset + k) % len2 + 2;\n newFromSubpathBezier[k + 2] = fromSubpathBezier[idx] - fromCp[0];\n newFromSubpathBezier[k + 3] = fromSubpathBezier[idx + 1] - fromCp[1];\n }\n newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];\n newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];\n\n if (searchAngleIteration > 0) {\n const step = searchAngleRange / searchAngleIteration;\n for (let angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {\n const sa = Math.sin(angle);\n const ca = Math.cos(angle);\n let score = 0;\n\n for (let k = 0; k < fromSubpathBezier.length; k += 2) {\n const x0 = newFromSubpathBezier[k];\n const y0 = newFromSubpathBezier[k + 1];\n const x1 = toSubpathBezier[k] - toCp[0];\n const y1 = toSubpathBezier[k + 1] - toCp[1];\n\n // Apply rotation on the target point.\n const newX1 = x1 * ca - y1 * sa;\n const newY1 = x1 * sa + y1 * ca;\n\n tmpArr[k] = newX1;\n tmpArr[k + 1] = newY1;\n\n const dx = newX1 - x0;\n const dy = newY1 - y0;\n\n // Use dot product to have min direction change.\n // const d = Math.sqrt(x0 * x0 + y0 * y0);\n // score += x0 * dx / d + y0 * dy / d;\n score += dx * dx + dy * dy;\n }\n\n if (score < bestScore) {\n bestScore = score;\n bestAngle = angle;\n // Copy.\n for (let m = 0; m < tmpArr.length; m++) {\n newToSubpathBezier[m] = tmpArr[m];\n }\n }\n }\n }\n else {\n for (let i = 0; i < len; i += 2) {\n newToSubpathBezier[i] = toSubpathBezier[i] - toCp[0];\n newToSubpathBezier[i + 1] = toSubpathBezier[i + 1] - toCp[1];\n }\n }\n\n result.push({\n from: newFromSubpathBezier,\n to: newToSubpathBezier,\n fromCp,\n toCp,\n rotation: -bestAngle\n });\n }\n return result;\n}\n\nexport function isCombineMorphing(path: Element): path is CombineMorphingPath {\n return (path as CombineMorphingPath).__isCombineMorphing;\n}\n\nexport function isMorphing(el: Element) {\n return (el as MorphingPath).__morphT >= 0;\n}\n\nconst SAVED_METHOD_PREFIX = '__mOriginal_';\nfunction saveAndModifyMethod(\n obj: T,\n methodName: M,\n modifiers: { replace?: T[M], after?: T[M], before?: T[M] }\n) {\n const savedMethodName = SAVED_METHOD_PREFIX + methodName;\n const originalMethod = (obj as any)[savedMethodName] || obj[methodName];\n if (!(obj as any)[savedMethodName]) {\n (obj as any)[savedMethodName] = obj[methodName];\n }\n const replace = modifiers.replace;\n const after = modifiers.after;\n const before = modifiers.before;\n\n (obj as any)[methodName] = function () {\n const args = arguments;\n let res;\n before && (before as unknown as Function).apply(this, args);\n // Still call the original method if not replacement.\n if (replace) {\n res = (replace as unknown as Function).apply(this, args);\n }\n else {\n res = originalMethod.apply(this, args);\n }\n after && (after as unknown as Function).apply(this, args);\n return res;\n };\n}\nfunction restoreMethod(\n obj: T,\n methodName: keyof T\n) {\n const savedMethodName = SAVED_METHOD_PREFIX + methodName;\n if ((obj as any)[savedMethodName]) {\n obj[methodName] = (obj as any)[savedMethodName];\n (obj as any)[savedMethodName] = null;\n }\n}\n\nfunction applyTransformOnBeziers(bezierCurves: number[][], mm: MatrixArray) {\n for (let i = 0; i < bezierCurves.length; i++) {\n const subBeziers = bezierCurves[i];\n for (let k = 0; k < subBeziers.length;) {\n const x = subBeziers[k];\n const y = subBeziers[k + 1];\n\n subBeziers[k++] = mm[0] * x + mm[2] * y + mm[4];\n subBeziers[k++] = mm[1] * x + mm[3] * y + mm[5];\n }\n }\n}\n\nfunction prepareMorphPath(\n fromPath: Path,\n toPath: Path\n) {\n const fromPathProxy = fromPath.getUpdatedPathProxy();\n const toPathProxy = toPath.getUpdatedPathProxy();\n\n const [fromBezierCurves, toBezierCurves] =\n alignBezierCurves(pathToBezierCurves(fromPathProxy), pathToBezierCurves(toPathProxy));\n\n const fromPathTransform = fromPath.getComputedTransform();\n const toPathTransform = toPath.getComputedTransform();\n function updateIdentityTransform(this: Transformable) {\n this.transform = null;\n }\n fromPathTransform && applyTransformOnBeziers(fromBezierCurves, fromPathTransform);\n toPathTransform && applyTransformOnBeziers(toBezierCurves, toPathTransform);\n // Just ignore transform\n saveAndModifyMethod(toPath, 'updateTransform', { replace: updateIdentityTransform });\n toPath.transform = null;\n\n const morphingData = findBestMorphingRotation(fromBezierCurves, toBezierCurves, 10, Math.PI);\n\n const tmpArr: number[] = [];\n\n saveAndModifyMethod(toPath, 'buildPath', { replace(path: PathProxy) {\n const t = (toPath as MorphingPath).__morphT;\n const onet = 1 - t;\n\n const newCp: number[] = [];\n\n for (let i = 0; i < morphingData.length; i++) {\n const item = morphingData[i];\n const from = item.from;\n const to = item.to;\n const angle = item.rotation * t;\n const fromCp = item.fromCp;\n const toCp = item.toCp;\n const sa = Math.sin(angle);\n const ca = Math.cos(angle);\n\n lerp(newCp, fromCp, toCp, t);\n\n for (let m = 0; m < from.length; m += 2) {\n const x0 = from[m];\n const y0 = from[m + 1];\n const x1 = to[m];\n const y1 = to[m + 1];\n\n const x = x0 * onet + x1 * t;\n const y = y0 * onet + y1 * t;\n\n tmpArr[m] = (x * ca - y * sa) + newCp[0];\n tmpArr[m + 1] = (x * sa + y * ca) + newCp[1];\n }\n\n let x0 = tmpArr[0];\n let y0 = tmpArr[1];\n\n path.moveTo(x0, y0);\n\n for (let m = 2; m < from.length;) {\n const x1 = tmpArr[m++];\n const y1 = tmpArr[m++];\n const x2 = tmpArr[m++];\n const y2 = tmpArr[m++];\n const x3 = tmpArr[m++];\n const y3 = tmpArr[m++];\n\n // Is a line.\n if (x0 === x1 && y0 === y1 && x2 === x3 && y2 === y3) {\n path.lineTo(x3, y3);\n }\n else {\n path.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n x0 = x3;\n y0 = y3;\n }\n }\n } });\n}\n\n/**\n * Morphing from old path to new path.\n */\nexport function morphPath(\n fromPath: Path,\n toPath: Path,\n animationOpts: ElementAnimateConfig\n): Path {\n if (!fromPath || !toPath) {\n return toPath;\n }\n\n const oldDone = animationOpts.done;\n // const oldAborted = animationOpts.aborted;\n const oldDuring = animationOpts.during;\n\n prepareMorphPath(fromPath, toPath);\n\n (toPath as MorphingPath).__morphT = 0;\n\n function restoreToPath() {\n restoreMethod(toPath, 'buildPath');\n restoreMethod(toPath, 'updateTransform');\n // Mark as not in morphing\n (toPath as MorphingPath).__morphT = -1;\n // Cleanup.\n toPath.createPathProxy();\n toPath.dirtyShape();\n }\n\n toPath.animateTo({\n __morphT: 1\n } as any, defaults({\n during(p) {\n toPath.dirtyShape();\n oldDuring && oldDuring(p);\n },\n done() {\n restoreToPath();\n oldDone && oldDone();\n }\n // NOTE: Don't do restore if aborted.\n // Because all status was just set when animation started.\n // aborted() {\n // oldAborted && oldAborted();\n // }\n } as ElementAnimateConfig, animationOpts));\n\n return toPath;\n}\n\n// https://github.com/mapbox/earcut/blob/master/src/earcut.js#L437\n// https://jsfiddle.net/pissang/2jk7x145/\n// function zOrder(x: number, y: number, minX: number, minY: number, maxX: number, maxY: number) {\n// // Normalize coords to 0 - 1\n// // The transformed into non-negative 15-bit integer range\n// x = (maxX === minX) ? 0 : Math.round(32767 * (x - minX) / (maxX - minX));\n// y = (maxY === minY) ? 0 : Math.round(32767 * (y - minY) / (maxY - minY));\n\n// x = (x | (x << 8)) & 0x00FF00FF;\n// x = (x | (x << 4)) & 0x0F0F0F0F;\n// x = (x | (x << 2)) & 0x33333333;\n// x = (x | (x << 1)) & 0x55555555;\n\n// y = (y | (y << 8)) & 0x00FF00FF;\n// y = (y | (y << 4)) & 0x0F0F0F0F;\n// y = (y | (y << 2)) & 0x33333333;\n// y = (y | (y << 1)) & 0x55555555;\n\n// return x | (y << 1);\n// }\n\n// https://github.com/w8r/hilbert/blob/master/hilbert.js#L30\n// https://jsfiddle.net/pissang/xdnbzg6v/\nfunction hilbert(x: number, y: number, minX: number, minY: number, maxX: number, maxY: number) {\n const bits = 16;\n x = (maxX === minX) ? 0 : Math.round(32767 * (x - minX) / (maxX - minX));\n y = (maxY === minY) ? 0 : Math.round(32767 * (y - minY) / (maxY - minY));\n\n let d = 0;\n let tmp: number;\n for (let s = (1 << bits) / 2; s > 0; s /= 2) {\n let rx = 0, ry = 0;\n\n if ((x & s) > 0) rx = 1;\n if ((y & s) > 0) ry = 1;\n\n d += s * s * ((3 * rx) ^ ry);\n\n if (ry === 0) {\n if (rx === 1) {\n x = s - 1 - x;\n y = s - 1 - y;\n }\n tmp = x;\n x = y;\n y = tmp;\n }\n }\n return d;\n}\n\n// Sort paths on hilbert. Not using z-order because it may still have large cross.\n// So the left most source can animate to the left most target, not right most target.\n// Hope in this way. We can make sure each element is animated to the proper target. Not the farthest.\nfunction sortPaths(pathList: Path[]): Path[] {\n let xMin = Infinity;\n let yMin = Infinity;\n let xMax = -Infinity;\n let yMax = -Infinity;\n const cps = map(pathList, path => {\n const rect = path.getBoundingRect();\n const m = path.getComputedTransform();\n const x = rect.x + rect.width / 2 + (m ? m[4] : 0);\n const y = rect.y + rect.height / 2 + (m ? m[5] : 0);\n xMin = Math.min(x, xMin);\n yMin = Math.min(y, yMin);\n xMax = Math.max(x, xMax);\n yMax = Math.max(y, yMax);\n return [x, y];\n });\n\n const items = map(cps, (cp, idx) => {\n return {\n cp,\n z: hilbert(cp[0], cp[1], xMin, yMin, xMax, yMax),\n path: pathList[idx]\n }\n });\n\n return items.sort((a, b) => a.z - b.z).map(item => item.path);\n}\n\nexport interface DividePathParams {\n path: Path,\n count: number\n};\nexport interface DividePath {\n (params: DividePathParams): Path[]\n}\n\nexport interface IndividualDelay {\n (index: number, count: number, fromPath: Path, toPath: Path): number\n}\n\nfunction defaultDividePath(param: DividePathParams) {\n return split(param.path, param.count);\n}\nexport interface CombineConfig extends ElementAnimateConfig {\n /**\n * Transform of returned will be ignored.\n */\n dividePath?: DividePath\n /**\n * delay of each individual.\n * Because individual are sorted on z-order. The index is also sorted top-left / right-down.\n */\n individualDelay?: IndividualDelay\n /**\n * If sort splitted paths so the movement between them can be more natural\n */\n // sort?: boolean\n}\n\nfunction createEmptyReturn() {\n return {\n fromIndividuals: [] as Path[],\n toIndividuals: [] as Path[],\n count: 0\n }\n}\n/**\n * Make combine morphing from many paths to one.\n * Will return a group to replace the original path.\n */\nexport function combineMorph(\n fromList: (CombineMorphingPath | Path)[],\n toPath: Path,\n animationOpts: CombineConfig\n) {\n let fromPathList: Path[] = [];\n\n function addFromPath(fromList: Element[]) {\n for (let i = 0; i < fromList.length; i++) {\n const from = fromList[i];\n if (isCombineMorphing(from)) {\n addFromPath((from as GroupLike).childrenRef());\n }\n else if (from instanceof Path) {\n fromPathList.push(from);\n }\n }\n }\n addFromPath(fromList);\n\n const separateCount = fromPathList.length;\n\n // fromPathList.length is 0.\n if (!separateCount) {\n return createEmptyReturn();\n }\n\n const dividePath = animationOpts.dividePath || defaultDividePath;\n\n let toSubPathList = dividePath({\n path: toPath, count: separateCount\n });\n if (toSubPathList.length !== separateCount) {\n console.error('Invalid morphing: unmatched splitted path');\n return createEmptyReturn();\n }\n\n fromPathList = sortPaths(fromPathList);\n toSubPathList = sortPaths(toSubPathList);\n\n const oldDone = animationOpts.done;\n // const oldAborted = animationOpts.aborted;\n const oldDuring = animationOpts.during;\n const individualDelay = animationOpts.individualDelay;\n\n const identityTransform = new Transformable();\n\n for (let i = 0; i < separateCount; i++) {\n const from = fromPathList[i];\n const to = toSubPathList[i];\n\n to.parent = toPath as unknown as Group;\n\n // Ignore transform in each subpath.\n to.copyTransform(identityTransform);\n\n // Will do morphPath for each individual if individualDelay is set.\n if (!individualDelay) {\n prepareMorphPath(from, to);\n }\n }\n\n (toPath as CombineMorphingPath).__isCombineMorphing = true;\n (toPath as CombineMorphingPath).childrenRef = function () {\n return toSubPathList;\n };\n\n function addToSubPathListToZr(zr: ZRenderType) {\n for (let i = 0; i < toSubPathList.length; i++) {\n toSubPathList[i].addSelfToZr(zr);\n }\n }\n saveAndModifyMethod(toPath, 'addSelfToZr', {\n after(zr) {\n addToSubPathListToZr(zr);\n }\n });\n saveAndModifyMethod(toPath, 'removeSelfFromZr', {\n after(zr) {\n for (let i = 0; i < toSubPathList.length; i++) {\n toSubPathList[i].removeSelfFromZr(zr);\n }\n }\n });\n\n function restoreToPath() {\n (toPath as CombineMorphingPath).__isCombineMorphing = false;\n // Mark as not in morphing\n (toPath as MorphingPath).__morphT = -1;\n (toPath as CombineMorphingPath).childrenRef = null;\n\n restoreMethod(toPath, 'addSelfToZr');\n restoreMethod(toPath, 'removeSelfFromZr');\n }\n\n const toLen = toSubPathList.length;\n\n if (individualDelay) {\n let animating = toLen;\n const eachDone = () => {\n animating--;\n if (animating === 0) {\n restoreToPath();\n oldDone && oldDone();\n }\n }\n // Animate each element individually.\n for (let i = 0; i < toLen; i++) {\n // TODO only call during once?\n const indivdualAnimationOpts = individualDelay ? defaults({\n delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toSubPathList[i]),\n done: eachDone\n } as ElementAnimateConfig, animationOpts) : animationOpts;\n morphPath(fromPathList[i], toSubPathList[i], indivdualAnimationOpts);\n }\n }\n else {\n (toPath as MorphingPath).__morphT = 0;\n toPath.animateTo({\n __morphT: 1\n } as any, defaults({\n during(p) {\n for (let i = 0; i < toLen; i++) {\n const child = toSubPathList[i] as MorphingPath;\n child.__morphT = (toPath as MorphingPath).__morphT;\n child.dirtyShape();\n }\n oldDuring && oldDuring(p);\n },\n done() {\n restoreToPath();\n for (let i = 0; i < fromList.length; i++) {\n restoreMethod(fromList[i], 'updateTransform');\n }\n oldDone && oldDone();\n }\n } as ElementAnimateConfig, animationOpts));\n }\n\n if (toPath.__zr) {\n addToSubPathListToZr(toPath.__zr);\n }\n\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toSubPathList,\n count: toLen\n };\n}\nexport interface SeparateConfig extends ElementAnimateConfig {\n dividePath?: DividePath\n individualDelay?: IndividualDelay\n /**\n * If sort splitted paths so the movement between them can be more natural\n */\n // sort?: boolean\n // // If the from path of separate animation is doing combine animation.\n // // And the paths number is not same with toPathList. We need to do enter/leave animation\n // // on the missing/spare paths.\n // enter?: (el: Path) => void\n // leave?: (el: Path) => void\n}\n\n/**\n * Make separate morphing from one path to many paths.\n * Make the MorphingKind of `toPath` become `'ONE_ONE'`.\n */\nexport function separateMorph(\n fromPath: Path,\n toPathList: Path[],\n animationOpts: SeparateConfig\n) {\n const toLen = toPathList.length;\n let fromPathList: Path[] = [];\n\n const dividePath = animationOpts.dividePath || defaultDividePath;\n\n function addFromPath(fromList: Element[]) {\n for (let i = 0; i < fromList.length; i++) {\n const from = fromList[i];\n if (isCombineMorphing(from)) {\n addFromPath((from as GroupLike).childrenRef());\n }\n else if (from instanceof Path) {\n fromPathList.push(from);\n }\n }\n }\n // This case most happen when a combining path is called to reverse the animation\n // to its original separated state.\n if (isCombineMorphing(fromPath)) {\n addFromPath(fromPath.childrenRef());\n\n const fromLen = fromPathList.length;\n if (fromLen < toLen) {\n let k = 0;\n for (let i = fromLen; i < toLen; i++) {\n // Create a clone\n fromPathList.push(clonePath(fromPathList[k++ % fromLen]));\n }\n }\n // Else simply remove if fromLen > toLen\n fromPathList.length = toLen;\n }\n else {\n fromPathList = dividePath({ path: fromPath, count: toLen });\n const fromPathTransform = fromPath.getComputedTransform();\n for (let i = 0; i < fromPathList.length; i++) {\n // Force use transform of source path.\n fromPathList[i].setLocalTransform(fromPathTransform);\n }\n if (fromPathList.length !== toLen) {\n console.error('Invalid morphing: unmatched splitted path');\n return createEmptyReturn();\n }\n }\n\n fromPathList = sortPaths(fromPathList);\n toPathList = sortPaths(toPathList);\n\n const individualDelay = animationOpts.individualDelay;\n for (let i = 0; i < toLen; i++) {\n const indivdualAnimationOpts = individualDelay ? defaults({\n delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toPathList[i])\n } as ElementAnimateConfig, animationOpts) : animationOpts;\n morphPath(fromPathList[i], toPathList[i], indivdualAnimationOpts);\n }\n\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toPathList,\n count: toPathList.length\n };\n}\n\nexport { split as defaultDividePath }", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n separateMorph,\n combineMorph,\n morphPath,\n DividePath,\n isCombineMorphing,\n SeparateConfig\n} from 'zrender/src/tool/morphPath';\nimport { Path } from '../util/graphic';\nimport SeriesModel from '../model/Series';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport { defaults, isArray} from 'zrender/src/core/util';\nimport { getAnimationConfig } from './basicTrasition';\nimport { ECElement, UniversalTransitionOption } from '../util/types';\nimport { clonePath } from 'zrender/src/tool/path';\nimport Model from '../model/Model';\n\n\ntype DescendentElements = Element[];\ntype DescendentPaths = Path[];\n\nfunction isMultiple(elements: DescendentElements | DescendentElements[]): elements is DescendentElements[] {\n return isArray(elements[0]);\n}\n\ninterface MorphingBatch {\n one: Path;\n many: Path[];\n}\n\nfunction prepareMorphBatches(one: DescendentPaths, many: DescendentPaths[]) {\n const batches: MorphingBatch[] = [];\n const batchCount = one.length;\n for (let i = 0; i < batchCount; i++) {\n batches.push({\n one: one[i],\n many: []\n });\n }\n\n for (let i = 0; i < many.length; i++) {\n const len = many[i].length;\n let k;\n for (k = 0; k < len; k++) {\n batches[k % batchCount].many.push(many[i][k]);\n }\n }\n\n let off = 0;\n // If one has more paths than each one of many. average them.\n for (let i = batchCount - 1; i >= 0; i--) {\n if (!batches[i].many.length) {\n const moveFrom = batches[off].many;\n if (moveFrom.length <= 1) { // Not enough\n // Start from the first one.\n if (off) {\n off = 0;\n }\n else {\n return batches;\n }\n }\n const len = moveFrom.length;\n const mid = Math.ceil(len / 2);\n batches[i].many = moveFrom.slice(mid, len);\n batches[off].many = moveFrom.slice(0, mid);\n\n off++;\n }\n }\n\n return batches;\n}\n\nconst pathDividers: Record = {\n clone(params) {\n const ret: Path[] = [];\n // Fitting the alpha\n const approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count);\n for (let i = 0; i < params.count; i++) {\n const cloned = clonePath(params.path);\n cloned.setStyle('opacity', approxOpacity);\n ret.push(cloned);\n }\n return ret;\n },\n // Use the default divider\n split: null\n};\n\nexport function applyMorphAnimation(\n from: DescendentPaths | DescendentPaths[],\n to: DescendentPaths | DescendentPaths[],\n divideShape: UniversalTransitionOption['divideShape'],\n seriesModel: SeriesModel,\n dataIndex: number,\n animateOtherProps: (\n fromIndividual: Path,\n toIndividual: Path,\n rawFrom: Path,\n rawTo: Path,\n animationCfg: ElementAnimateConfig\n ) => void\n) {\n if (!from.length || !to.length) {\n return;\n }\n\n const updateAnimationCfg = getAnimationConfig('update', seriesModel, dataIndex);\n if (!(updateAnimationCfg.duration > 0)) {\n return;\n }\n const animationDelay = (seriesModel.getModel('universalTransition') as Model)\n .get('delay');\n\n\n const animationCfg = Object.assign({\n // Need to setToFinal so the further calculation based on the style can be correct.\n // Like emphasis color.\n setToFinal: true\n } as SeparateConfig, updateAnimationCfg);\n\n\n let many: DescendentPaths[];\n let one: DescendentPaths;\n if (isMultiple(from)) { // manyToOne\n many = from;\n one = to as DescendentPaths;\n }\n if (isMultiple(to)) { // oneToMany\n many = to;\n one = from as DescendentPaths;\n }\n\n function morphOneBatch(\n batch: MorphingBatch,\n fromIsMany: boolean,\n animateIndex: number,\n animateCount: number,\n forceManyOne?: boolean\n ) {\n const batchMany = batch.many;\n const batchOne = batch.one;\n if (batchMany.length === 1 && !forceManyOne) {\n // Is one to one\n const batchFrom: Path = fromIsMany ? batchMany[0] : batchOne;\n const batchTo: Path = fromIsMany ? batchOne : batchMany[0];\n\n if (isCombineMorphing(batchFrom as Path)) {\n // Keep doing combine animation.\n morphOneBatch({\n many: [batchFrom as Path],\n one: batchTo as Path\n }, true, animateIndex, animateCount, true);\n }\n else {\n const individualAnimationCfg = animationDelay ? defaults({\n delay: animationDelay(animateIndex, animateCount)\n } as ElementAnimateConfig, animationCfg) : animationCfg;\n morphPath(batchFrom, batchTo, individualAnimationCfg);\n animateOtherProps(batchFrom, batchTo, batchFrom, batchTo, individualAnimationCfg);\n }\n }\n else {\n const separateAnimationCfg = defaults({\n dividePath: pathDividers[divideShape],\n individualDelay: animationDelay && function (idx, count, fromPath, toPath) {\n return animationDelay(idx + animateIndex, animateCount);\n }\n } as SeparateConfig, animationCfg);\n\n const {\n fromIndividuals,\n toIndividuals\n } = fromIsMany\n ? combineMorph(batchMany, batchOne, separateAnimationCfg)\n : separateMorph(batchOne, batchMany, separateAnimationCfg);\n\n const count = fromIndividuals.length;\n for (let k = 0; k < count; k++) {\n const individualAnimationCfg = animationDelay ? defaults({\n delay: animationDelay(k, count)\n } as ElementAnimateConfig, animationCfg) : animationCfg;\n animateOtherProps(\n fromIndividuals[k],\n toIndividuals[k],\n fromIsMany ? batchMany[k] : batch.one,\n fromIsMany ? batch.one : batchMany[k],\n individualAnimationCfg\n );\n }\n }\n }\n\n const fromIsMany = many\n ? many === from\n // Is one to one. If the path number not match. also needs do merge and separate morphing.\n : from.length > to.length;\n\n const morphBatches = many\n ? prepareMorphBatches(one, many)\n : prepareMorphBatches(\n (fromIsMany ? to : from) as DescendentPaths,\n [(fromIsMany ? from : to) as DescendentPaths]\n );\n let animateCount = 0;\n for (let i = 0; i < morphBatches.length; i++) {\n animateCount += morphBatches[i].many.length;\n }\n let animateIndex = 0;\n for (let i = 0; i < morphBatches.length; i++) {\n morphOneBatch(morphBatches[i], fromIsMany, animateIndex, animateCount);\n animateIndex += morphBatches[i].many.length;\n }\n}\n\nexport function getPathList(\n elements: Element\n): DescendentPaths;\nexport function getPathList(\n elements: Element[]\n): DescendentPaths[];\nexport function getPathList(\n elements: Element | Element[]\n): DescendentPaths | DescendentPaths[] {\n if (!elements) {\n return [];\n }\n\n if (isArray(elements)) {\n const pathList = [];\n for (let i = 0; i < elements.length; i++) {\n pathList.push(getPathList(elements[i]));\n }\n return pathList as DescendentPaths[];\n }\n\n const pathList: DescendentPaths = [];\n\n elements.traverse(el => {\n if ((el instanceof Path) && !(el as ECElement).disableMorphing && !el.invisible && !el.ignore) {\n pathList.push(el);\n }\n });\n return pathList;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Universal transitions that can animate between any shapes(series) and any properties in any amounts.\n\nimport SeriesModel, { SERIES_UNIVERSAL_TRANSITION_PROP } from '../model/Series';\nimport {createHashMap, each, map, filter, isArray} from 'zrender/src/core/util';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport { applyMorphAnimation, getPathList } from './morphTransitionHelper';\nimport Path from 'zrender/src/graphic/Path';\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport { initProps } from '../util/graphic';\nimport DataDiffer from '../data/DataDiffer';\nimport SeriesData from '../data/SeriesData';\nimport { Dictionary, DimensionLoose, OptionDataItemObject, UniversalTransitionOption } from '../util/types';\nimport {\n UpdateLifecycleParams,\n UpdateLifecycleTransitionItem,\n UpdateLifecycleTransitionSeriesFinder\n} from '../core/lifecycle';\nimport { makeInner, normalizeToArray } from '../util/model';\nimport { warn } from '../util/log';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { getAnimationConfig, getOldStyle } from './basicTrasition';\nimport Model from '../model/Model';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst DATA_COUNT_THRESHOLD = 1e4;\n\ninterface GlobalStore { oldSeries: SeriesModel[], oldData: SeriesData[] };\nconst getUniversalTransitionGlobalStore = makeInner();\n\ninterface DiffItem {\n data: SeriesData\n dim: DimensionLoose\n divide: UniversalTransitionOption['divideShape']\n dataIndex: number\n}\ninterface TransitionSeries {\n data: SeriesData\n divide: UniversalTransitionOption['divideShape']\n dim?: DimensionLoose\n}\n\nfunction getGroupIdDimension(data: SeriesData) {\n const dimensions = data.dimensions;\n for (let i = 0; i < dimensions.length; i++) {\n const dimInfo = data.getDimensionInfo(dimensions[i]);\n if (dimInfo && dimInfo.otherDims.itemGroupId === 0) {\n return dimensions[i];\n }\n }\n}\n\nfunction flattenDataDiffItems(list: TransitionSeries[]) {\n const items: DiffItem[] = [];\n\n each(list, seriesInfo => {\n const data = seriesInfo.data;\n if (data.count() > DATA_COUNT_THRESHOLD) {\n if (__DEV__) {\n warn('Universal transition is disabled on large data > 10k.');\n }\n return;\n }\n const indices = data.getIndices();\n const groupDim = getGroupIdDimension(data);\n for (let dataIndex = 0; dataIndex < indices.length; dataIndex++) {\n items.push({\n data,\n dim: seriesInfo.dim || groupDim,\n divide: seriesInfo.divide,\n dataIndex\n });\n }\n });\n\n return items;\n}\n\n\nfunction fadeInElement(newEl: Element, newSeries: SeriesModel, newIndex: number) {\n newEl.traverse(el => {\n if (el instanceof Path) {\n // TODO use fade in animation for target element.\n initProps(el, {\n style: {\n opacity: 0\n }\n }, newSeries, {\n dataIndex: newIndex,\n isFrom: true\n });\n }\n });\n}\nfunction removeEl(el: Element) {\n if (el.parent) {\n // Bake parent transform to element.\n // So it can still have proper transform to transition after it's removed.\n const computedTransform = el.getComputedTransform();\n el.setLocalTransform(computedTransform);\n el.parent.remove(el);\n }\n}\nfunction stopAnimation(el: Element) {\n el.stopAnimation();\n if (el.isGroup) {\n el.traverse(child => {\n child.stopAnimation();\n });\n }\n}\nfunction animateElementStyles(el: Element, dataIndex: number, seriesModel: SeriesModel) {\n const animationConfig = getAnimationConfig('update', seriesModel, dataIndex);\n el.traverse(child => {\n if (child instanceof Displayable) {\n const oldStyle = getOldStyle(child);\n if (oldStyle) {\n child.animateFrom({\n style: oldStyle\n }, animationConfig);\n }\n }\n });\n}\n\n\nfunction isAllIdSame(oldDiffItems: DiffItem[], newDiffItems: DiffItem[]) {\n const len = oldDiffItems.length;\n if (len !== newDiffItems.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n const oldItem = oldDiffItems[i];\n const newItem = newDiffItems[i];\n if (oldItem.data.getId(oldItem.dataIndex) !== newItem.data.getId(newItem.dataIndex)) {\n return false;\n }\n }\n return true;\n}\n\nfunction transitionBetween(\n oldList: TransitionSeries[],\n newList: TransitionSeries[],\n api: ExtensionAPI\n) {\n\n const oldDiffItems = flattenDataDiffItems(oldList);\n const newDiffItems = flattenDataDiffItems(newList);\n\n function updateMorphingPathProps(\n from: Path, to: Path,\n rawFrom: Path, rawTo: Path,\n animationCfg: ElementAnimateConfig\n ) {\n if (rawFrom || from) {\n to.animateFrom({\n style: (rawFrom || from).style\n }, animationCfg);\n }\n }\n\n\n function findKeyDim(items: DiffItem[]) {\n for (let i = 0; i < items.length; i++) {\n if (items[i].dim) {\n return items[i].dim;\n }\n }\n }\n const oldKeyDim = findKeyDim(oldDiffItems);\n const newKeyDim = findKeyDim(newDiffItems);\n\n let hasMorphAnimation = false;\n\n function createKeyGetter(isOld: boolean, onlyGetId: boolean) {\n return function (diffItem: DiffItem): string {\n const data = diffItem.data;\n const dataIndex = diffItem.dataIndex;\n // TODO if specified dim\n if (onlyGetId) {\n return data.getId(dataIndex);\n }\n\n // Use group id as transition key by default.\n // So we can achieve multiple to multiple animation like drilldown / up naturally.\n // If group id not exits. Use id instead. If so, only one to one transition will be applied.\n const dataGroupId = data.hostModel && (data.hostModel as SeriesModel).get('dataGroupId') as string;\n\n // If specified key dimension(itemGroupId by default). Use this same dimension from other data.\n // PENDING: If only use key dimension of newData.\n const keyDim = isOld\n ? (oldKeyDim || newKeyDim)\n : (newKeyDim || oldKeyDim);\n\n const dimInfo = keyDim && data.getDimensionInfo(keyDim);\n const dimOrdinalMeta = dimInfo && dimInfo.ordinalMeta;\n\n if (dimInfo) {\n // Get from encode.itemGroupId.\n const key = data.get(dimInfo.name, dataIndex);\n if (dimOrdinalMeta) {\n return dimOrdinalMeta.categories[key as number] as string || (key + '');\n }\n return key + '';\n }\n\n // Get groupId from raw item. { groupId: '' }\n const itemVal = data.getRawDataItem(dataIndex) as OptionDataItemObject;\n if (itemVal && itemVal.groupId) {\n return itemVal.groupId + '';\n }\n return (dataGroupId || data.getId(dataIndex));\n };\n }\n\n // Use id if it's very likely to be an one to one animation\n // It's more robust than groupId\n // TODO Check if key dimension is specified.\n const useId = isAllIdSame(oldDiffItems, newDiffItems);\n const isElementStillInChart: Dictionary = {};\n\n if (!useId) {\n // We may have different diff strategy with basicTransition if we use other dimension as key.\n // If so, we can't simply check if oldEl is same with newEl. We need a map to check if oldEl is still being used in the new chart.\n // We can't use the elements that already being morphed. Let it keep it's original basic transition.\n for (let i = 0; i < newDiffItems.length; i++) {\n const newItem = newDiffItems[i];\n const el = newItem.data.getItemGraphicEl(newItem.dataIndex);\n if (el) {\n isElementStillInChart[el.id] = true;\n }\n }\n }\n\n function updateOneToOne(newIndex: number, oldIndex: number) {\n\n const oldItem = oldDiffItems[oldIndex];\n const newItem = newDiffItems[newIndex];\n\n const newSeries = newItem.data.hostModel as SeriesModel;\n\n // TODO Mark this elements is morphed and don't morph them anymore\n const oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);\n const newEl = newItem.data.getItemGraphicEl(newItem.dataIndex);\n\n // Can't handle same elements.\n if (oldEl === newEl) {\n newEl && animateElementStyles(newEl, newItem.dataIndex, newSeries);\n return;\n }\n\n if (\n // We can't use the elements that already being morphed\n (oldEl && isElementStillInChart[oldEl.id])\n ) {\n return;\n }\n\n if (newEl) {\n // TODO: If keep animating the group in case\n // some of the elements don't want to be morphed.\n // TODO Label?\n stopAnimation(newEl);\n\n if (oldEl) {\n stopAnimation(oldEl);\n\n // If old element is doing leaving animation. stop it and remove it immediately.\n removeEl(oldEl);\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldEl),\n getPathList(newEl),\n newItem.divide,\n newSeries,\n newIndex,\n updateMorphingPathProps\n );\n }\n else {\n fadeInElement(newEl, newSeries, newIndex);\n }\n }\n // else keep oldEl leaving animation.\n }\n\n (new DataDiffer(\n oldDiffItems,\n newDiffItems,\n createKeyGetter(true, useId),\n createKeyGetter(false, useId),\n null,\n 'multiple'\n ))\n .update(updateOneToOne)\n .updateManyToOne(function (newIndex, oldIndices) {\n const newItem = newDiffItems[newIndex];\n const newData = newItem.data;\n const newSeries = newData.hostModel as SeriesModel;\n const newEl = newData.getItemGraphicEl(newItem.dataIndex);\n const oldElsList = filter(\n map(oldIndices, idx =>\n oldDiffItems[idx].data.getItemGraphicEl(oldDiffItems[idx].dataIndex)\n ),\n oldEl => oldEl && oldEl !== newEl && !isElementStillInChart[oldEl.id]\n );\n\n if (newEl) {\n stopAnimation(newEl);\n if (oldElsList.length) {\n // If old element is doing leaving animation. stop it and remove it immediately.\n each(oldElsList, oldEl => {\n stopAnimation(oldEl);\n removeEl(oldEl);\n });\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldElsList),\n getPathList(newEl),\n newItem.divide,\n newSeries,\n newIndex,\n updateMorphingPathProps\n );\n\n }\n else {\n fadeInElement(newEl, newSeries, newItem.dataIndex);\n }\n }\n // else keep oldEl leaving animation.\n })\n .updateOneToMany(function (newIndices, oldIndex) {\n const oldItem = oldDiffItems[oldIndex];\n const oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);\n\n // We can't use the elements that already being morphed\n if (oldEl && isElementStillInChart[oldEl.id]) {\n return;\n }\n\n const newElsList = filter(\n map(newIndices, idx =>\n newDiffItems[idx].data.getItemGraphicEl(newDiffItems[idx].dataIndex)\n ),\n el => el && el !== oldEl\n );\n const newSeris = newDiffItems[newIndices[0]].data.hostModel as SeriesModel;\n\n if (newElsList.length) {\n each(newElsList, newEl => stopAnimation(newEl));\n if (oldEl) {\n stopAnimation(oldEl);\n // If old element is doing leaving animation. stop it and remove it immediately.\n removeEl(oldEl);\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldEl),\n getPathList(newElsList),\n oldItem.divide, // Use divide on old.\n newSeris,\n newIndices[0],\n updateMorphingPathProps\n );\n }\n else {\n each(newElsList, newEl => fadeInElement(newEl, newSeris, newIndices[0]));\n }\n }\n\n // else keep oldEl leaving animation.\n })\n .updateManyToMany(function (newIndices, oldIndices) {\n // If two data are same and both have groupId.\n // Normally they should be diff by id.\n new DataDiffer(\n oldIndices,\n newIndices,\n (rawIdx: number) => oldDiffItems[rawIdx].data.getId(oldDiffItems[rawIdx].dataIndex),\n (rawIdx: number) => newDiffItems[rawIdx].data.getId(newDiffItems[rawIdx].dataIndex)\n ).update((newIndex, oldIndex) => {\n // Use the original index\n updateOneToOne(newIndices[newIndex], oldIndices[oldIndex]);\n }).execute();\n })\n .execute();\n\n if (hasMorphAnimation) {\n each(newList, ({ data }) => {\n const seriesModel = data.hostModel as SeriesModel;\n const view = seriesModel && api.getViewOfSeriesModel(seriesModel as SeriesModel);\n const animationCfg = getAnimationConfig('update', seriesModel, 0); // use 0 index.\n if (view && seriesModel.isAnimationEnabled() && animationCfg.duration > 0) {\n view.group.traverse(el => {\n if (el instanceof Path && !el.animators.length) {\n // We can't accept there still exists element that has no animation\n // if universalTransition is enabled\n el.animateFrom({\n style: {\n opacity: 0\n }\n }, animationCfg);\n }\n });\n }\n });\n }\n}\n\nfunction getSeriesTransitionKey(series: SeriesModel) {\n const seriesKey = (series.getModel('universalTransition') as Model)\n .get('seriesKey');\n if (!seriesKey) {\n // Use series id by default.\n return series.id;\n }\n return seriesKey;\n}\n\nfunction convertArraySeriesKeyToString(seriesKey: string[] | string) {\n if (isArray(seriesKey)) {\n // Order independent.\n return seriesKey.sort().join(',');\n }\n return seriesKey;\n}\n\ninterface SeriesTransitionBatch {\n oldSeries: TransitionSeries[]\n newSeries: TransitionSeries[]\n}\n\nfunction getDivideShapeFromData(data: SeriesData) {\n if (data.hostModel) {\n return ((data.hostModel as SeriesModel)\n .getModel('universalTransition') as Model)\n .get('divideShape');\n }\n}\n\nfunction findTransitionSeriesBatches(\n globalStore: GlobalStore,\n params: UpdateLifecycleParams\n) {\n const updateBatches = createHashMap();\n\n const oldDataMap = createHashMap();\n // Map that only store key in array seriesKey.\n // Which is used to query the old data when transition from one to multiple series.\n const oldDataMapForSplit = createHashMap<{\n key: string,\n data: SeriesData\n }>();\n\n each(globalStore.oldSeries, (series, idx) => {\n const oldData = globalStore.oldData[idx];\n const transitionKey = getSeriesTransitionKey(series);\n const transitionKeyStr = convertArraySeriesKeyToString(transitionKey);\n oldDataMap.set(transitionKeyStr, oldData);\n\n if (isArray(transitionKey)) {\n // Same key can't in different array seriesKey.\n each(transitionKey, key => {\n oldDataMapForSplit.set(key, {\n data: oldData,\n key: transitionKeyStr\n });\n });\n }\n });\n\n function checkTransitionSeriesKeyDuplicated(transitionKeyStr: string) {\n if (updateBatches.get(transitionKeyStr)) {\n warn(`Duplicated seriesKey in universalTransition ${transitionKeyStr}`);\n }\n }\n each(params.updatedSeries, series => {\n if (series.isUniversalTransitionEnabled() && series.isAnimationEnabled()) {\n const newData = series.getData();\n const transitionKey = getSeriesTransitionKey(series);\n const transitionKeyStr = convertArraySeriesKeyToString(transitionKey);\n // Only transition between series with same id.\n const oldData = oldDataMap.get(transitionKeyStr);\n // string transition key is the best match.\n if (oldData) {\n if (__DEV__) {\n checkTransitionSeriesKeyDuplicated(transitionKeyStr);\n }\n // TODO check if data is same?\n updateBatches.set(transitionKeyStr, {\n oldSeries: [{\n divide: getDivideShapeFromData(oldData),\n data: oldData\n }],\n newSeries: [{\n divide: getDivideShapeFromData(newData),\n data: newData\n }]\n });\n }\n else {\n // Transition from multiple series.\n if (isArray(transitionKey)) {\n if (__DEV__) {\n checkTransitionSeriesKeyDuplicated(transitionKeyStr);\n }\n const oldSeries: TransitionSeries[] = [];\n each(transitionKey, key => {\n const oldData = oldDataMap.get(key);\n if (oldData) {\n oldSeries.push({\n divide: getDivideShapeFromData(oldData),\n data: oldData\n });\n }\n });\n if (oldSeries.length) {\n updateBatches.set(transitionKeyStr, {\n oldSeries,\n newSeries: [{\n data: newData,\n divide: getDivideShapeFromData(newData)\n }]\n });\n }\n }\n else {\n // Try transition to multiple series.\n const oldData = oldDataMapForSplit.get(transitionKey);\n if (oldData) {\n let batch = updateBatches.get(oldData.key);\n if (!batch) {\n batch = {\n oldSeries: [{\n data: oldData.data,\n divide: getDivideShapeFromData(oldData.data)\n }],\n newSeries: []\n };\n updateBatches.set(oldData.key, batch);\n }\n batch.newSeries.push({\n data: newData,\n divide: getDivideShapeFromData(newData)\n });\n }\n }\n }\n }\n });\n\n return updateBatches;\n}\n\nfunction querySeries(series: SeriesModel[], finder: UpdateLifecycleTransitionSeriesFinder) {\n for (let i = 0; i < series.length; i++) {\n const found = finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex\n || finder.seriesId != null && finder.seriesId === series[i].id;\n if (found) {\n return i;\n }\n }\n}\n\nfunction transitionSeriesFromOpt(\n transitionOpt: UpdateLifecycleTransitionItem,\n globalStore: GlobalStore,\n params: UpdateLifecycleParams,\n api: ExtensionAPI\n) {\n const from: TransitionSeries[] = [];\n const to: TransitionSeries[] = [];\n each(normalizeToArray(transitionOpt.from), finder => {\n const idx = querySeries(globalStore.oldSeries, finder);\n if (idx >= 0) {\n from.push({\n data: globalStore.oldData[idx],\n // TODO can specify divideShape in transition.\n divide: getDivideShapeFromData(globalStore.oldData[idx]),\n dim: finder.dimension\n });\n }\n });\n each(normalizeToArray(transitionOpt.to), finder => {\n const idx = querySeries(params.updatedSeries, finder);\n if (idx >= 0) {\n const data = params.updatedSeries[idx].getData();\n to.push({\n data,\n divide: getDivideShapeFromData(data),\n dim: finder.dimension\n });\n }\n });\n if (from.length > 0 && to.length > 0) {\n transitionBetween(from, to, api);\n }\n}\n\nexport function installUniversalTransition(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerUpdateLifecycle('series:beforeupdate', (ecMOdel, api, params) => {\n each(normalizeToArray(params.seriesTransition), transOpt => {\n each(normalizeToArray(transOpt.to), (finder) => {\n const series = params.updatedSeries;\n for (let i = 0; i < series.length; i++) {\n if (finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex\n || finder.seriesId != null && finder.seriesId === series[i].id) {\n series[i][SERIES_UNIVERSAL_TRANSITION_PROP] = true;\n }\n }\n });\n });\n });\n registers.registerUpdateLifecycle('series:transition', (ecModel, api, params) => {\n // TODO api provide an namespace that can save stuff per instance\n const globalStore = getUniversalTransitionGlobalStore(api);\n\n // TODO multiple to multiple series.\n if (globalStore.oldSeries && params.updatedSeries && params.optionChanged) {\n // Use give transition config if its' give;\n const transitionOpt = params.seriesTransition;\n if (transitionOpt) {\n each(normalizeToArray(transitionOpt), opt => {\n transitionSeriesFromOpt(opt, globalStore, params, api);\n });\n }\n else { // Else guess from series based on transition series key.\n const updateBatches = findTransitionSeriesBatches(globalStore, params);\n each(updateBatches.keys(), key => {\n const batch = updateBatches.get(key);\n transitionBetween(batch.oldSeries, batch.newSeries, api);\n });\n }\n\n // Reset\n each(params.updatedSeries, series => {\n // Reset;\n if (series[SERIES_UNIVERSAL_TRANSITION_PROP]) {\n series[SERIES_UNIVERSAL_TRANSITION_PROP] = false;\n }\n });\n }\n\n // Save all series of current update. Not only the updated one.\n const allSeries = ecModel.getSeries();\n const savedSeries: SeriesModel[] = globalStore.oldSeries = [];\n const savedData: SeriesData[] = globalStore.oldData = [];\n for (let i = 0; i < allSeries.length; i++) {\n const data = allSeries[i].getData();\n // Only save the data that can have transition.\n // Avoid large data costing too much extra memory\n if (data.count() < DATA_COUNT_THRESHOLD) {\n savedSeries.push(allSeries[i]);\n savedData.push(data);\n }\n }\n });\n}"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAKI,mBAAU;AACV,cAAK;AACL,gBAAO;AACP,mBAAU;AACV,kBAAS;AAAA;AAAA;AATb;AAAA;AAcI,mBAAU,IAAI;AACd,gBAAO;AACP,eAAM;AACN,kBAAS;AAET,2BAAkB;AAClB,wBAAe;AACf,gCAAuB;AACvB,kCAAyB;AACzB,wBAAe;AACf,8BAAqB;AACrB,gCAAuB;AAAA;AAAA;AAG3B,IAAM,MAAM,IAAI;AAEhB,IAAI,OAAO,OAAO,YAAY,OAAO,GAAG,sBAAsB;AAC1D,MAAI,MAAM;AACV,MAA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I;AAWJ,IAAI;AASJ,IAAI;AAQJ,IAAI;AAUJ,IAAI;AASJ,IAAI;AAcJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAUJ,IAAI;AAUJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAGJ,IAAI;AAOJ,IAAI;AAMJ,IAAI;AAGJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AASJ,IAAI;AAEJ,IAAI;AAQJ,IAAI;AAQJ,IAAI;", + "names": [] +} diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 4218fd7e59..9e8eec3186 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -146,16 +146,16 @@ function createSeriesData( encodeDefaulter: encodeDefaulter, canOmitUnusedDimensions: !isOriginalSource }; - const dimensionRequest = createDimensions(source, createDimensionOptions); + const schema = createDimensions(source, createDimensionOptions); const firstCategoryDimIndex = injectOrdinalMeta( - dimensionRequest.dimensionList, opt.createInvertedIndices, coordSysInfo + schema.dimensionList, opt.createInvertedIndices, coordSysInfo ); - const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(dimensionRequest) : null; + const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(schema) : null; - const stackCalculationInfo = enableDataStack(seriesModel, { dimensionRequest, storage }); + const stackCalculationInfo = enableDataStack(seriesModel, { schema, storage }); - const data = new SeriesData(dimensionRequest, seriesModel); + const data = new SeriesData(schema, seriesModel); data.setCalculationInfo(stackCalculationInfo); const dimValueGetter = diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index c30333eb8c..32b1d45a1f 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -45,7 +45,7 @@ import type { VisualMeta } from '../component/visualMap/VisualMapModel'; import {isSourceInstance, Source} from './Source'; import { LineStyleProps } from '../model/mixin/lineStyle'; import DataStorage, { DimValueGetter } from './DataStorage'; -import { isSeriesDimensionRequest, SeriesDimensionRequest } from './helper/SeriesDimensionRequest'; +import { isSeriesDataSchema, SeriesDataSchema } from './helper/SeriesDataSchema'; const isObject = zrUtil.isObject; const map = zrUtil.map; @@ -167,7 +167,7 @@ class SeriesData< private _dimensionInfos: Record; private _dimensionOmitted = false; - private _dimensionRequest?: SeriesDimensionRequest; + private _schema?: SeriesDataSchema; /** * @pending * Actually we do not really need to convert dimensionIndex to dimensionName @@ -264,15 +264,15 @@ class SeriesData< * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius */ constructor( - dimensionsInput: SeriesDimensionRequest | SeriesDimensionDefineLoose[], + dimensionsInput: SeriesDataSchema | SeriesDimensionDefineLoose[], hostModel: HostModel ) { let dimensions: SeriesDimensionDefineLoose[]; let assignStorageDimIdx = false; - if (isSeriesDimensionRequest(dimensionsInput)) { + if (isSeriesDataSchema(dimensionsInput)) { dimensions = dimensionsInput.dimensionList; this._dimensionOmitted = dimensionsInput.isDimensionOmitted(); - this._dimensionRequest = dimensionsInput; + this._schema = dimensionsInput; } else { assignStorageDimIdx = true; @@ -381,7 +381,7 @@ class SeriesData< return dimName; } - const sourceDimDef = this._dimensionRequest.getDimensionFromSource(dimIdx); + const sourceDimDef = this._schema.getDimensionFromSource(dimIdx); if (sourceDimDef) { return sourceDimDef.name; } @@ -401,7 +401,7 @@ class SeriesData< return dimInfo ? dimInfo.storageDimensionIndex : this._dimensionOmitted - ? this._dimensionRequest.getDimensionIndexFromSource(dim as DimensionName) + ? this._schema.getDimensionIndexFromSource(dim as DimensionName) : -1; } @@ -431,7 +431,7 @@ class SeriesData< dim != null && !isNaN(dim as any) && !this._getDimensionInfo(dim) - && (!this._dimensionOmitted || this._dimensionRequest.getDimensionIndexFromSource(dim) < 0) + && (!this._dimensionOmitted || this._schema.getDimensionIndexFromSource(dim) < 0) ) ) { return +dim; @@ -548,7 +548,7 @@ class SeriesData< // Cache summary info for fast visit. See "dimensionHelper". // Needs to be initialized after store is prepared. - this._dimensionsSummary = summarizeDimensions(this, this._dimensionRequest); + this._dimensionsSummary = summarizeDimensions(this, this._schema); this.userOutput = this._dimensionsSummary.userOutput; } @@ -1339,8 +1339,8 @@ class SeriesData< cloneShallow(list?: SeriesData): SeriesData { if (!list) { list = new SeriesData( - this._dimensionRequest - ? this._dimensionRequest + this._schema + ? this._schema : map(this.dimensions, this._getDimensionInfo, this), this.hostModel ); @@ -1435,8 +1435,8 @@ class SeriesData< */ cloneListForMapAndSample = function (original: SeriesData): SeriesData { const list = new SeriesData( - original._dimensionRequest - ? original._dimensionRequest + original._schema + ? original._schema : map(original.dimensions, original._getDimensionInfo, original), original.hostModel ); diff --git a/src/data/helper/SeriesDimensionRequest.ts b/src/data/helper/SeriesDataSchema.ts similarity index 97% rename from src/data/helper/SeriesDimensionRequest.ts rename to src/data/helper/SeriesDataSchema.ts index 7a67eff22e..e7b49c671c 100644 --- a/src/data/helper/SeriesDimensionRequest.ts +++ b/src/data/helper/SeriesDataSchema.ts @@ -46,7 +46,7 @@ const dimTypeShort = { * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from * `source` dimensions. */ -export class SeriesDimensionRequest { +export class SeriesDataSchema { /** * When there are too many dimensions, `dimensionDefineList` might only contain @@ -236,10 +236,10 @@ export class SeriesDimensionRequest { } } -export function isSeriesDimensionRequest( - dimensionRequest: any -): dimensionRequest is SeriesDimensionRequest { - return dimensionRequest instanceof SeriesDimensionRequest; +export function isSeriesDataSchema( + schema: any +): schema is SeriesDataSchema { + return schema instanceof SeriesDataSchema; } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 2426842113..1bbf73ec5a 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -37,8 +37,8 @@ import { CtorInt32Array } from '../DataStorage'; import { normalizeToArray } from '../../util/model'; import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; import { - createDimNameMap, ensureSourceDimNameMap, SeriesDimensionRequest, shouldOmitUnusedDimensions -} from './SeriesDimensionRequest'; + createDimNameMap, ensureSourceDimNameMap, SeriesDataSchema, shouldOmitUnusedDimensions +} from './SeriesDataSchema'; export interface CoordDimensionDefinition extends DimensionDefinition { @@ -101,7 +101,7 @@ export default function createDimensions( // TODO: TYPE completeDimensions type source: Source | OptionSourceData, opt?: CreateDimensionsParams -): SeriesDimensionRequest { +): SeriesDataSchema { if (!isSourceInstance(source)) { source = createSourceFromSeriesDataOption(source as OptionSourceData); } @@ -338,7 +338,7 @@ export default function createDimensions( removeDuplication(resultList); - return new SeriesDimensionRequest({ + return new SeriesDataSchema({ source, dimensionList: resultList, fullDimensionCount: dimCount, diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index d0546e3186..3904636e15 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -22,11 +22,11 @@ import SeriesDimensionDefine from '../SeriesDimensionDefine'; import SeriesModel from '../../model/Series'; import SeriesData, { DataCalculationInfo } from '../SeriesData'; import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types'; -import { isSeriesDimensionRequest, SeriesDimensionRequest } from './SeriesDimensionRequest'; +import { isSeriesDataSchema, SeriesDataSchema } from './SeriesDataSchema'; import DataStorage from '../DataStorage'; type EnableDataStackDimensionsInput = { - dimensionRequest: SeriesDimensionRequest; + schema: SeriesDataSchema; // If given, stack dimension will be ensured on this storage. // Otherwise, stack dimesnion will be appended at the tail, and should not // be used on a shared storage, but should create a brand new stroage later. @@ -75,15 +75,15 @@ export function enableDataStack( const stackedCoordDimension = opt.stackedCoordDimension; let dimensionDefineList: EnableDataStackDimensionsInputLegacy; - let dimensionRequest: SeriesDimensionRequest; + let schema: SeriesDataSchema; let storage: DataStorage; if (isLegacyDimensionsInput(dimensionsInput)) { dimensionDefineList = dimensionsInput; } else { - dimensionRequest = dimensionsInput.dimensionRequest; - dimensionDefineList = dimensionRequest.dimensionList; + schema = dimensionsInput.schema; + dimensionDefineList = schema.dimensionList; storage = dimensionsInput.storage; } @@ -170,7 +170,7 @@ export function enableDataStack( storageDimensionIndex: dimensionDefineList.length + 1 }; - if (dimensionRequest) { + if (schema) { if (storage) { stackedOverDimensionDefine.storageDimensionIndex = storage.ensureCalculationDimension(stackedOverDimension, stackedDimType); @@ -178,8 +178,8 @@ export function enableDataStack( storage.ensureCalculationDimension(stackResultDimension, stackedDimType); } - dimensionRequest.appendCalculationDimension(stackedOverDimensionDefine); - dimensionRequest.appendCalculationDimension(stackResultDimensionDefine); + schema.appendCalculationDimension(stackedOverDimensionDefine); + schema.appendCalculationDimension(stackResultDimensionDefine); } else { dimensionDefineList.push(stackedOverDimensionDefine); @@ -199,7 +199,7 @@ export function enableDataStack( function isLegacyDimensionsInput( dimensionsInput: Parameters[1] ): dimensionsInput is EnableDataStackDimensionsInputLegacy { - return !isSeriesDimensionRequest((dimensionsInput as EnableDataStackDimensionsInput).dimensionRequest); + return !isSeriesDataSchema((dimensionsInput as EnableDataStackDimensionsInput).schema); } export function isDimensionStacked(data: SeriesData, stackedDim: string): boolean { diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 393738495b..b23bf077e1 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -24,7 +24,7 @@ import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionIndex } from '../../util/types'; import { DataStorageDimensionType } from '../DataStorage'; -import { SeriesDimensionRequest } from './SeriesDimensionRequest'; +import { SeriesDataSchema } from './SeriesDataSchema'; export type DimensionSummaryEncode = { defaultedLabel: DimensionName[], @@ -51,14 +51,14 @@ export type DimensionUserOuputEncode = { class DimensionUserOuput { private _encode: DimensionUserOuputEncode; private _cachedDimNames: DimensionName[]; - private _dimensionRequest?: SeriesDimensionRequest; + private _schema?: SeriesDataSchema; constructor( encode: DimensionUserOuputEncode, - dimRequest?: SeriesDimensionRequest + dimRequest?: SeriesDataSchema ) { this._encode = encode; - this._dimensionRequest = dimRequest; + this._schema = dimRequest; } get(): { @@ -81,8 +81,8 @@ class DimensionUserOuput { */ private _getFullDimensionNames(): DimensionName[] { if (!this._cachedDimNames) { - this._cachedDimNames = this._dimensionRequest - ? this._dimensionRequest.makeOutputDimensionNames() + this._cachedDimNames = this._schema + ? this._schema.makeOutputDimensionNames() : []; } return this._cachedDimNames; @@ -92,7 +92,7 @@ class DimensionUserOuput { export function summarizeDimensions( data: SeriesData, - dimensionRequest?: SeriesDimensionRequest + schema?: SeriesDataSchema ): DimensionSummary { const summary: DimensionSummary = {} as DimensionSummary; const encode = summary.encode = {} as DimensionSummaryEncode; @@ -180,7 +180,7 @@ export function summarizeDimensions( encode.defaultedLabel = defaultedLabel; encode.defaultedTooltip = defaultedTooltip; - summary.userOutput = new DimensionUserOuput(userOutputEncode, dimensionRequest); + summary.userOutput = new DimensionUserOuput(userOutputEncode, schema); return summary; } diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index f58159414d..52b2709445 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -35,7 +35,7 @@ import { import { applyDataTransform } from './transform'; import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; import { DefaultDataProvider } from './dataProvider'; -import { SeriesDimensionRequest, shouldOmitUnusedDimensions } from './SeriesDimensionRequest'; +import { SeriesDataSchema, shouldOmitUnusedDimensions } from './SeriesDataSchema'; type DataStorageMap = Dictionary; @@ -373,7 +373,7 @@ export class SourceManager { * @param seriesDimRequest Dimensions that are generated in series. * Should have been sorted by `storageDimensionIndex` asc. */ - getSharedDataStorage(seriesDimRequest: SeriesDimensionRequest): DataStorage { + getSharedDataStorage(seriesDimRequest: SeriesDataSchema): DataStorage { if (__DEV__) { assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); } diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index e98ef74b2f..fa219a65dc 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -31,7 +31,7 @@ import SeriesDimensionDefine from '@/src/data/SeriesDimensionDefine'; import OrdinalMeta from '@/src/data/OrdinalMeta'; import DataStorage from '@/src/data/DataStorage'; import { DefaultDataProvider } from '@/src/data/helper/dataProvider'; -import { SeriesDimensionRequest } from '@/src/data/helper/SeriesDimensionRequest'; +import { SeriesDataSchema } from '@/src/data/helper/SeriesDataSchema'; const ID_PREFIX = 'e\0\0'; @@ -229,7 +229,7 @@ describe('SeriesData', function () { store.initData(new DefaultDataProvider(source), [ {type: 'ordinal'}, {type: 'float'}, {type: 'float'}, {type: 'ordinal'} ]); - const dimensionRequest = new SeriesDimensionRequest({ + const schema = new SeriesDataSchema({ source: source, dimensionList: [ { type: 'float', name: 'dim1', storageDimensionIndex: 1 }, @@ -238,7 +238,7 @@ describe('SeriesData', function () { fullDimensionCount: 2, dimensionOmitted: true }); - const data = new SeriesData(dimensionRequest, null); + const data = new SeriesData(schema, null); data.initData(store); // Store should be the same. expect(data.getStorage()).toBe(store); From 8aacfd12d8f0ec14b3abd1e4aa94f0d5bb4bdae8 Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 12:43:24 +0800 Subject: [PATCH 52/64] fix: remove deprecated of some method of SeriesData. They are widely used by extensions. --- src/data/SeriesData.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 32b1d45a1f..9f2e6f12c8 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -355,8 +355,8 @@ class SeriesData< * @param dim Must make sure the dimension is `SeriesDimensionLoose`. * Because only those dimensions will have auto-generated dimension names if not * have a user-specified name, and other dimensions will get a return of null/undefined. - * @deprecated - * Becuause of this reason, should better use `getDimensionIndex` instead, for examples: + * + * @notice Becuause of this reason, should better use `getDimensionIndex` instead, for examples: * ```js * const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx); * ``` @@ -758,7 +758,7 @@ class SeriesData< /** * Get value. Return NaN if idx is out of range. * - * @deprecated Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead. + * @notice Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead. */ get(dim: SeriesDimensionName, idx: number): ParsedValue { const store = this._store; @@ -769,7 +769,7 @@ class SeriesData< } /** - * @deprecated Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead. + * @notice Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead. */ getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue { const store = this._store; From 15f217a9ef828c1b0a8d25c3527d8fee3f04c38d Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 12:54:43 +0800 Subject: [PATCH 53/64] fix: revert dis/echarts.js.map (mistakenly committed previously) --- dist/echarts.js.map | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dist/echarts.js.map b/dist/echarts.js.map index b2704e66ae..5ac16ee614 100644 --- a/dist/echarts.js.map +++ b/dist/echarts.js.map @@ -1,7 +1 @@ -{ - "version": 3, - "sources": ["../src/echarts.all.ts", "../node_modules/zrender/src/zrender.ts", "../node_modules/zrender/src/core/env.ts", "../node_modules/zrender/src/core/util.ts", "../node_modules/zrender/src/core/vector.ts", "../node_modules/zrender/src/mixin/Draggable.ts", "../node_modules/zrender/src/core/Eventful.ts", "../node_modules/zrender/src/core/fourPointsTransform.ts", "../node_modules/zrender/src/core/dom.ts", "../node_modules/zrender/src/core/event.ts", "../node_modules/zrender/src/core/GestureMgr.ts", "../node_modules/zrender/src/Handler.ts", "../node_modules/zrender/src/core/timsort.ts", "../node_modules/zrender/src/graphic/constants.ts", "../node_modules/zrender/src/Storage.ts", "../node_modules/zrender/src/animation/requestAnimationFrame.ts", "../node_modules/zrender/src/animation/easing.ts", "../node_modules/zrender/src/animation/Clip.ts", "../node_modules/zrender/src/tool/color.ts", "../node_modules/zrender/src/core/LRU.ts", "../node_modules/zrender/src/animation/Animator.ts", "../node_modules/zrender/src/animation/Animation.ts", "../node_modules/zrender/src/dom/HandlerProxy.ts", "../node_modules/zrender/src/config.ts", "../node_modules/zrender/src/core/matrix.ts", "../node_modules/zrender/src/core/Transformable.ts", "../node_modules/zrender/src/core/Point.ts", "../node_modules/zrender/src/core/BoundingRect.ts", "../node_modules/zrender/src/contain/text.ts", "../node_modules/zrender/src/Element.ts", "../node_modules/zrender/src/graphic/Group.ts", "../src/util/number.ts", "../src/util/log.ts", "../src/util/model.ts", "../src/util/clazz.ts", "../src/model/mixin/makeStyleMapper.ts", "../src/model/mixin/areaStyle.ts", "../node_modules/zrender/src/graphic/helper/image.ts", "../node_modules/zrender/src/graphic/helper/parseText.ts", "../node_modules/zrender/src/graphic/Displayable.ts", "../node_modules/zrender/src/core/curve.ts", "../node_modules/zrender/src/core/bbox.ts", "../node_modules/zrender/src/core/PathProxy.ts", "../node_modules/zrender/src/contain/line.ts", "../node_modules/zrender/src/contain/cubic.ts", "../node_modules/zrender/src/contain/quadratic.ts", "../node_modules/zrender/src/contain/util.ts", "../node_modules/zrender/src/contain/arc.ts", "../node_modules/zrender/src/contain/windingLine.ts", "../node_modules/zrender/src/contain/path.ts", "../node_modules/zrender/src/graphic/Path.ts", "../node_modules/zrender/src/graphic/TSpan.ts", "../node_modules/zrender/src/graphic/Image.ts", "../node_modules/zrender/src/graphic/helper/roundRect.ts", "../node_modules/zrender/src/graphic/helper/subPixelOptimize.ts", "../node_modules/zrender/src/graphic/shape/Rect.ts", "../node_modules/zrender/src/graphic/Text.ts", "../src/util/innerStore.ts", "../src/util/states.ts", "../src/util/graphic.ts", "../node_modules/zrender/src/tool/transformPath.ts", "../node_modules/zrender/src/tool/path.ts", "../node_modules/zrender/src/graphic/shape/Circle.ts", "../node_modules/zrender/src/graphic/shape/Ellipse.ts", "../node_modules/zrender/src/graphic/helper/roundSector.ts", "../node_modules/zrender/src/graphic/shape/Sector.ts", "../node_modules/zrender/src/graphic/shape/Ring.ts", "../node_modules/zrender/src/graphic/helper/smoothSpline.ts", "../node_modules/zrender/src/graphic/helper/smoothBezier.ts", "../node_modules/zrender/src/graphic/helper/poly.ts", "../node_modules/zrender/src/graphic/shape/Polygon.ts", "../node_modules/zrender/src/graphic/shape/Polyline.ts", "../node_modules/zrender/src/graphic/shape/Line.ts", "../node_modules/zrender/src/graphic/shape/BezierCurve.ts", "../node_modules/zrender/src/graphic/shape/Arc.ts", "../node_modules/zrender/src/graphic/CompoundPath.ts", "../node_modules/zrender/src/graphic/Gradient.ts", "../node_modules/zrender/src/graphic/LinearGradient.ts", "../node_modules/zrender/src/graphic/RadialGradient.ts", "../node_modules/zrender/src/core/OrientedBoundingRect.ts", "../node_modules/zrender/src/graphic/IncrementalDisplayable.ts", "../src/animation/basicTrasition.ts", "../src/label/labelStyle.ts", "../src/model/mixin/textStyle.ts", "../src/model/mixin/lineStyle.ts", "../src/model/mixin/itemStyle.ts", "../src/model/Model.ts", "../src/util/component.ts", "../src/i18n/langEN.ts", "../src/i18n/langZH.ts", "../src/core/locale.ts", "../src/util/time.ts", "../src/legacy/getTextRect.ts", "../src/util/format.ts", "../src/util/layout.ts", "../src/model/Component.ts", "../src/model/globalDefault.ts", "../src/util/types.ts", "../src/data/helper/sourceHelper.ts", "../src/model/internalComponentCreator.ts", "../src/model/mixin/palette.ts", "../src/model/Global.ts", "../src/core/ExtensionAPI.ts", "../src/core/CoordinateSystem.ts", "../src/model/OptionManager.ts", "../src/preprocessor/helper/compatStyle.ts", "../src/preprocessor/backwardCompat.ts", "../src/processor/dataStack.ts", "../src/data/Source.ts", "../src/data/helper/dataProvider.ts", "../src/model/mixin/dataFormat.ts", "../src/core/task.ts", "../src/data/helper/dataValueHelper.ts", "../src/data/helper/transform.ts", "../src/data/DataStorage.ts", "../src/data/helper/sourceManager.ts", "../src/component/tooltip/tooltipMarkup.ts", "../src/component/tooltip/seriesFormatTooltip.ts", "../src/model/Series.ts", "../src/view/Component.ts", "../src/chart/helper/createRenderPlanner.ts", "../src/view/Chart.ts", "../src/util/throttle.ts", "../src/visual/style.ts", "../src/loading/default.ts", "../src/core/Scheduler.ts", "../src/theme/light.ts", "../src/theme/dark.ts", "../src/util/ECEventProcessor.ts", "../src/visual/symbol.ts", "../src/visual/helper.ts", "../src/legacy/dataSelectAction.ts", "../src/util/event.ts", "../node_modules/zrender/src/core/WeakMap.ts", "../src/util/symbol.ts", "../node_modules/zrender/src/canvas/helper.ts", "../node_modules/zrender/src/graphic/helper/dashStyle.ts", "../node_modules/zrender/src/canvas/graphic.ts", "../src/util/decal.ts", "../src/visual/decal.ts", "../node_modules/zrender/src/tool/parseXML.ts", "../node_modules/zrender/src/tool/parseSVG.ts", "../node_modules/zrender/src/contain/polygon.ts", "../src/coord/geo/Region.ts", "../src/coord/geo/GeoSVGResource.ts", "../src/coord/geo/parseGeoJson.ts", "../src/coord/geo/fix/nanhai.ts", "../src/coord/geo/fix/textCoord.ts", "../src/coord/geo/fix/geoCoord.ts", "../src/coord/geo/fix/diaoyuIsland.ts", "../src/coord/geo/GeoJSONResource.ts", "../src/coord/geo/geoSourceManager.ts", "../src/core/lifecycle.ts", "../src/core/echarts.ts", "../src/extension.ts", "../src/data/DataDiffer.ts", "../src/data/helper/dimensionHelper.ts", "../src/data/SeriesDimensionDefine.ts", "../src/data/helper/SeriesDataSchema.ts", "../src/data/SeriesData.ts", "../src/export/api/helper.ts", "../src/data/helper/createDimensions.ts", "../src/model/referHelper.ts", "../src/data/helper/dataStackHelper.ts", "../src/chart/helper/createSeriesData.ts", "../src/scale/Scale.ts", "../src/data/OrdinalMeta.ts", "../src/scale/helper.ts", "../src/scale/Ordinal.ts", "../src/scale/Interval.ts", "../src/layout/barGrid.ts", "../src/scale/Time.ts", "../src/scale/Log.ts", "../src/coord/scaleRawExtentInfo.ts", "../src/coord/axisHelper.ts", "../src/coord/axisModelCommonMixin.ts", "../src/export/api/number.ts", "../src/export/api/time.ts", "../src/export/api/graphic.ts", "../src/export/api/format.ts", "../src/export/api/util.ts", "../src/coord/axisTickLabelBuilder.ts", "../src/coord/Axis.ts", "../src/export/api.ts", "../src/label/labelGuideHelper.ts", "../src/label/labelLayoutHelper.ts", "../src/label/LabelManager.ts", "../src/label/installLabelLayout.ts", "../node_modules/zrender/src/svg/core.ts", "../node_modules/zrender/src/core/arrayDiff.ts", "../node_modules/zrender/src/svg/graphic.ts", "../node_modules/zrender/src/svg/helper/Definable.ts", "../node_modules/zrender/src/svg/helper/GradientManager.ts", "../node_modules/zrender/src/svg/helper/PatternManager.ts", "../node_modules/zrender/src/svg/helper/ClippathManager.ts", "../node_modules/zrender/src/svg/helper/ShadowManager.ts", "../node_modules/zrender/src/svg/Painter.ts", "../src/renderer/installSVGRenderer.ts", "../node_modules/zrender/src/canvas/Layer.ts", "../node_modules/zrender/src/canvas/Painter.ts", "../src/renderer/installCanvasRenderer.ts", "../src/chart/line/LineSeries.ts", "../src/chart/helper/labelHelper.ts", "../src/chart/helper/Symbol.ts", "../src/chart/helper/SymbolDraw.ts", "../src/chart/line/helper.ts", "../src/util/vendor.ts", "../src/chart/line/lineAnimationDiff.ts", "../src/chart/line/poly.ts", "../src/chart/helper/createClipPathFromCoordSys.ts", "../src/coord/CoordinateSystem.ts", "../src/chart/line/LineView.ts", "../src/layout/points.ts", "../src/processor/dataSample.ts", "../src/chart/line/install.ts", "../src/chart/bar/BaseBarSeries.ts", "../src/chart/bar/BarSeries.ts", "../src/util/shape/sausage.ts", "../src/label/sectorLabel.ts", "../src/chart/bar/BarView.ts", "../src/chart/bar/install.ts", "../src/chart/pie/pieLayout.ts", "../src/processor/dataFilter.ts", "../src/chart/pie/labelLayout.ts", "../src/chart/helper/pieHelper.ts", "../src/chart/pie/PieView.ts", "../src/chart/helper/createSeriesDataSimply.ts", "../src/visual/LegendVisualProvider.ts", "../src/chart/pie/PieSeries.ts", "../src/processor/negativeDataFilter.ts", "../src/chart/pie/install.ts", "../src/chart/scatter/ScatterSeries.ts", "../src/chart/helper/LargeSymbolDraw.ts", "../src/chart/scatter/ScatterView.ts", "../src/coord/cartesian/GridModel.ts", "../src/coord/cartesian/AxisModel.ts", "../src/coord/axisDefault.ts", "../src/coord/axisCommonTypes.ts", "../src/coord/axisModelCreator.ts", "../src/coord/cartesian/Cartesian.ts", "../src/coord/cartesian/Cartesian2D.ts", "../src/coord/cartesian/Axis2D.ts", "../src/coord/cartesian/cartesianAxisHelper.ts", "../src/coord/cartesian/Grid.ts", "../src/component/axis/AxisBuilder.ts", "../src/component/axisPointer/modelHelper.ts", "../src/component/axis/AxisView.ts", "../src/component/axis/axisSplitHelper.ts", "../src/component/axis/CartesianAxisView.ts", "../src/component/grid/installSimple.ts", "../src/chart/scatter/install.ts", "../src/chart/radar/radarLayout.ts", "../src/chart/radar/backwardCompat.ts", "../src/chart/radar/RadarView.ts", "../src/chart/radar/RadarSeries.ts", "../src/coord/radar/RadarModel.ts", "../src/component/radar/RadarView.ts", "../src/coord/radar/IndicatorAxis.ts", "../src/coord/radar/Radar.ts", "../src/component/radar/install.ts", "../src/chart/radar/install.ts", "../src/component/helper/interactionMutex.ts", "../src/component/helper/RoamController.ts", "../src/component/helper/roamHelper.ts", "../src/component/helper/cursorHelper.ts", "../src/component/helper/MapDraw.ts", "../src/chart/map/MapView.ts", "../src/chart/map/MapSeries.ts", "../src/chart/map/mapDataStatistic.ts", "../src/chart/map/mapSymbolLayout.ts", "../src/coord/View.ts", "../src/coord/geo/Geo.ts", "../src/coord/geo/geoCreator.ts", "../src/coord/geo/GeoModel.ts", "../src/action/roamHelper.ts", "../src/component/geo/GeoView.ts", "../src/component/geo/install.ts", "../src/chart/map/install.ts", "../src/chart/tree/layoutHelper.ts", "../src/chart/tree/TreeView.ts", "../src/data/helper/linkSeriesData.ts", "../src/data/Tree.ts", "../src/chart/helper/treeHelper.ts", "../src/chart/tree/TreeSeries.ts", "../src/chart/tree/traversalHelper.ts", "../src/chart/tree/treeLayout.ts", "../src/chart/tree/treeVisual.ts", "../src/chart/tree/treeAction.ts", "../src/chart/tree/install.ts", "../src/chart/treemap/treemapAction.ts", "../src/chart/helper/enableAriaDecalForTree.ts", "../src/chart/treemap/TreemapSeries.ts", "../src/chart/treemap/Breadcrumb.ts", "../src/util/animation.ts", "../src/chart/treemap/TreemapView.ts", "../src/visual/VisualMapping.ts", "../src/chart/treemap/treemapVisual.ts", "../src/chart/treemap/treemapLayout.ts", "../src/chart/treemap/install.ts", "../src/chart/graph/categoryFilter.ts", "../src/chart/graph/categoryVisual.ts", "../src/chart/graph/edgeVisual.ts", "../src/chart/helper/multipleGraphEdgeHelper.ts", "../src/chart/graph/simpleLayoutHelper.ts", "../src/chart/graph/simpleLayout.ts", "../src/chart/graph/graphHelper.ts", "../src/chart/graph/circularLayoutHelper.ts", "../src/chart/graph/circularLayout.ts", "../src/chart/graph/forceHelper.ts", "../src/chart/graph/forceLayout.ts", "../src/chart/graph/createView.ts", "../src/chart/helper/LinePath.ts", "../src/chart/helper/Line.ts", "../src/chart/helper/LineDraw.ts", "../src/chart/graph/adjustEdge.ts", "../src/chart/graph/GraphView.ts", "../src/data/Graph.ts", "../src/chart/helper/createGraphFromNodeEdge.ts", "../src/chart/graph/GraphSeries.ts", "../src/chart/graph/install.ts", "../src/chart/gauge/PointerPath.ts", "../src/chart/gauge/GaugeView.ts", "../src/chart/gauge/GaugeSeries.ts", "../src/chart/gauge/install.ts", "../src/chart/funnel/FunnelView.ts", "../src/chart/funnel/FunnelSeries.ts", "../src/chart/funnel/funnelLayout.ts", "../src/chart/funnel/install.ts", "../src/chart/parallel/ParallelView.ts", "../src/chart/parallel/ParallelSeries.ts", "../src/chart/parallel/parallelVisual.ts", "../src/coord/parallel/parallelPreprocessor.ts", "../src/component/parallel/ParallelView.ts", "../src/coord/parallel/ParallelModel.ts", "../src/coord/parallel/ParallelAxis.ts", "../src/component/helper/sliderMove.ts", "../src/coord/parallel/Parallel.ts", "../src/coord/parallel/parallelCreator.ts", "../src/coord/parallel/AxisModel.ts", "../src/component/helper/BrushController.ts", "../src/component/helper/brushHelper.ts", "../src/component/axis/ParallelAxisView.ts", "../src/component/axis/parallelAxisAction.ts", "../src/component/parallel/install.ts", "../src/chart/parallel/install.ts", "../src/chart/sankey/SankeyView.ts", "../src/chart/sankey/SankeySeries.ts", "../src/chart/sankey/sankeyLayout.ts", "../src/chart/sankey/sankeyVisual.ts", "../src/chart/sankey/install.ts", "../src/chart/helper/whiskerBoxCommon.ts", "../src/chart/boxplot/BoxplotSeries.ts", "../src/chart/boxplot/BoxplotView.ts", "../src/chart/boxplot/boxplotVisual.ts", "../src/chart/boxplot/boxplotLayout.ts", "../src/chart/boxplot/prepareBoxplotData.ts", "../src/chart/boxplot/boxplotTransform.ts", "../src/chart/boxplot/install.ts", "../src/chart/candlestick/CandlestickView.ts", "../src/chart/candlestick/CandlestickSeries.ts", "../src/chart/candlestick/preprocessor.ts", "../src/chart/candlestick/candlestickVisual.ts", "../src/chart/candlestick/candlestickLayout.ts", "../src/chart/candlestick/install.ts", "../src/chart/helper/EffectSymbol.ts", "../src/chart/effectScatter/EffectScatterView.ts", "../src/chart/effectScatter/EffectScatterSeries.ts", "../src/chart/effectScatter/install.ts", "../src/chart/helper/EffectLine.ts", "../src/chart/helper/Polyline.ts", "../src/chart/helper/EffectPolyline.ts", "../src/chart/helper/LargeLineDraw.ts", "../src/chart/lines/linesLayout.ts", "../src/chart/lines/LinesView.ts", "../src/chart/lines/LinesSeries.ts", "../src/chart/lines/linesVisual.ts", "../src/chart/lines/install.ts", "../src/chart/heatmap/HeatmapLayer.ts", "../src/chart/heatmap/HeatmapView.ts", "../src/chart/heatmap/HeatmapSeries.ts", "../src/chart/heatmap/install.ts", "../src/chart/bar/PictorialBarView.ts", "../src/chart/bar/PictorialBarSeries.ts", "../src/chart/bar/installPictorialBar.ts", "../src/chart/themeRiver/ThemeRiverView.ts", "../src/chart/themeRiver/ThemeRiverSeries.ts", "../src/chart/themeRiver/themeRiverLayout.ts", "../src/chart/themeRiver/install.ts", "../src/chart/sunburst/SunburstPiece.ts", "../src/chart/sunburst/sunburstAction.ts", "../src/chart/sunburst/SunburstView.ts", "../src/chart/sunburst/SunburstSeries.ts", "../src/chart/sunburst/sunburstLayout.ts", "../src/chart/sunburst/sunburstVisual.ts", "../src/chart/sunburst/install.ts", "../src/chart/custom/CustomSeries.ts", "../src/coord/cartesian/prepareCustom.ts", "../src/coord/geo/prepareCustom.ts", "../src/coord/single/prepareCustom.ts", "../src/coord/polar/prepareCustom.ts", "../src/coord/calendar/prepareCustom.ts", "../src/util/styleCompat.ts", "../src/chart/custom/prepare.ts", "../src/chart/custom/CustomView.ts", "../src/chart/custom/install.ts", "../src/component/axisPointer/BaseAxisPointer.ts", "../src/component/axisPointer/viewHelper.ts", "../src/component/axisPointer/CartesianAxisPointer.ts", "../src/component/axisPointer/AxisPointerModel.ts", "../src/component/axisPointer/globalListener.ts", "../src/component/axisPointer/AxisPointerView.ts", "../src/component/axisPointer/findPointFromSeries.ts", "../src/component/axisPointer/axisTrigger.ts", "../src/component/axisPointer/install.ts", "../src/component/grid/install.ts", "../src/component/axisPointer/PolarAxisPointer.ts", "../src/coord/polar/PolarModel.ts", "../src/coord/polar/AxisModel.ts", "../src/coord/polar/RadiusAxis.ts", "../src/coord/polar/AngleAxis.ts", "../src/coord/polar/Polar.ts", "../src/coord/polar/polarCreator.ts", "../src/component/axis/AngleAxisView.ts", "../src/component/axis/RadiusAxisView.ts", "../src/layout/barPolar.ts", "../src/component/polar/install.ts", "../src/coord/single/singleAxisHelper.ts", "../src/component/axis/SingleAxisView.ts", "../src/coord/single/AxisModel.ts", "../src/coord/single/SingleAxis.ts", "../src/coord/single/Single.ts", "../src/coord/single/singleCreator.ts", "../src/component/axisPointer/SingleAxisPointer.ts", "../src/component/singleAxis/install.ts", "../src/coord/calendar/CalendarModel.ts", "../src/component/calendar/CalendarView.ts", "../src/coord/calendar/Calendar.ts", "../src/component/calendar/install.ts", "../src/component/graphic/install.ts", "../src/component/dataZoom/helper.ts", "../src/component/dataZoom/DataZoomModel.ts", "../src/component/dataZoom/SelectZoomModel.ts", "../src/component/dataZoom/DataZoomView.ts", "../src/component/dataZoom/SelectZoomView.ts", "../src/component/dataZoom/AxisProxy.ts", "../src/component/dataZoom/dataZoomProcessor.ts", "../src/component/dataZoom/dataZoomAction.ts", "../src/component/dataZoom/installCommon.ts", "../src/component/dataZoom/installDataZoomSelect.ts", "../src/component/toolbox/featureManager.ts", "../src/component/toolbox/ToolboxModel.ts", "../src/component/helper/listComponent.ts", "../src/component/toolbox/ToolboxView.ts", "../src/component/toolbox/feature/SaveAsImage.ts", "../src/component/toolbox/feature/MagicType.ts", "../src/component/toolbox/feature/DataView.ts", "../src/component/dataZoom/history.ts", "../src/component/toolbox/feature/Restore.ts", "../src/component/helper/BrushTargetManager.ts", "../src/component/toolbox/feature/DataZoom.ts", "../src/component/toolbox/install.ts", "../src/component/tooltip/TooltipModel.ts", "../src/component/tooltip/helper.ts", "../src/component/tooltip/TooltipHTMLContent.ts", "../src/component/tooltip/TooltipRichContent.ts", "../src/component/tooltip/TooltipView.ts", "../src/component/tooltip/install.ts", "../src/component/brush/preprocessor.ts", "../src/visual/visualSolution.ts", "../src/component/brush/selector.ts", "../src/component/brush/visualEncoding.ts", "../src/component/brush/BrushView.ts", "../src/component/brush/BrushModel.ts", "../src/component/toolbox/feature/Brush.ts", "../src/component/brush/install.ts", "../src/component/title/install.ts", "../src/component/timeline/TimelineModel.ts", "../src/component/timeline/SliderTimelineModel.ts", "../src/component/timeline/TimelineView.ts", "../src/component/timeline/TimelineAxis.ts", "../src/component/timeline/SliderTimelineView.ts", "../src/component/timeline/timelineAction.ts", "../src/component/timeline/preprocessor.ts", "../src/component/timeline/install.ts", "../src/component/marker/checkMarkerInSeries.ts", "../src/component/marker/MarkerModel.ts", "../src/component/marker/MarkPointModel.ts", "../src/component/marker/markerHelper.ts", "../src/component/marker/MarkerView.ts", "../src/component/marker/MarkPointView.ts", "../src/component/marker/installMarkPoint.ts", "../src/component/marker/MarkLineModel.ts", "../src/component/marker/MarkLineView.ts", "../src/component/marker/installMarkLine.ts", "../src/component/marker/MarkAreaModel.ts", "../src/component/marker/MarkAreaView.ts", "../src/component/marker/installMarkArea.ts", "../src/component/legend/LegendModel.ts", "../src/component/legend/LegendView.ts", "../src/component/legend/legendFilter.ts", "../src/component/legend/legendAction.ts", "../src/component/legend/installLegendPlain.ts", "../src/component/legend/ScrollableLegendModel.ts", "../src/component/legend/ScrollableLegendView.ts", "../src/component/legend/scrollableLegendAction.ts", "../src/component/legend/installLegendScroll.ts", "../src/component/legend/install.ts", "../src/component/dataZoom/InsideZoomModel.ts", "../src/component/dataZoom/roams.ts", "../src/component/dataZoom/InsideZoomView.ts", "../src/component/dataZoom/installDataZoomInside.ts", "../src/component/dataZoom/SliderZoomModel.ts", "../src/component/dataZoom/SliderZoomView.ts", "../src/component/dataZoom/installDataZoomSlider.ts", "../src/component/dataZoom/install.ts", "../src/visual/visualDefault.ts", "../src/component/visualMap/VisualMapModel.ts", "../src/component/visualMap/ContinuousModel.ts", "../src/component/visualMap/VisualMapView.ts", "../src/component/visualMap/helper.ts", "../src/component/visualMap/ContinuousView.ts", "../src/component/visualMap/visualMapAction.ts", "../src/component/visualMap/visualEncoding.ts", "../src/component/visualMap/preprocessor.ts", "../src/component/visualMap/installCommon.ts", "../src/component/visualMap/installVisualMapContinuous.ts", "../src/component/visualMap/PiecewiseModel.ts", "../src/component/visualMap/PiecewiseView.ts", "../src/component/visualMap/installVisualMapPiecewise.ts", "../src/component/visualMap/install.ts", "../src/visual/aria.ts", "../src/component/aria/preprocessor.ts", "../src/component/aria/install.ts", "../src/util/conditionalExpression.ts", "../src/component/transform/filterTransform.ts", "../src/component/transform/sortTransform.ts", "../src/component/transform/install.ts", "../src/component/dataset/install.ts", "../node_modules/zrender/src/tool/convertPath.ts", "../node_modules/zrender/src/tool/dividePath.ts", "../node_modules/zrender/src/tool/morphPath.ts", "../src/animation/morphTransitionHelper.ts", "../src/animation/universalTransition.ts"], - "sourcesContent": ["/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {use} from './extension';\n\nexport * from './export/core';\n// ----------------------------------------------\n// All of the modules that are allowed to be\n// imported are listed below.\n//\n// Users MUST NOT import other modules that are\n// not included in this list.\n// ----------------------------------------------\n\nimport {\n SVGRenderer,\n CanvasRenderer\n} from './export/renderers';\n\nimport {\n LineChart,\n BarChart,\n PieChart,\n ScatterChart,\n RadarChart,\n MapChart,\n TreeChart,\n TreemapChart,\n GraphChart,\n GaugeChart,\n FunnelChart,\n ParallelChart,\n SankeyChart,\n BoxplotChart,\n CandlestickChart,\n EffectScatterChart,\n LinesChart,\n HeatmapChart,\n PictorialBarChart,\n ThemeRiverChart,\n SunburstChart,\n CustomChart\n} from './export/charts';\n\nimport {\n GridComponent,\n PolarComponent,\n GeoComponent,\n SingleAxisComponent,\n ParallelComponent,\n CalendarComponent,\n GraphicComponent,\n ToolboxComponent,\n TooltipComponent,\n AxisPointerComponent,\n BrushComponent,\n TitleComponent,\n TimelineComponent,\n MarkPointComponent,\n MarkLineComponent,\n MarkAreaComponent,\n LegendComponent,\n DataZoomComponent,\n DataZoomInsideComponent,\n DataZoomSliderComponent,\n VisualMapComponent,\n VisualMapContinuousComponent,\n VisualMapPiecewiseComponent,\n AriaComponent,\n DatasetComponent,\n TransformComponent\n} from './export/components';\n\nimport {\n UniversalTransition,\n LabelLayout\n} from './export/features';\n\n\n// -----------------\n// Render engines\n// -----------------\n\n\n// Render via Canvas.\n// echarts.init(dom, null, { renderer: 'canvas' })\nuse([CanvasRenderer]);\n// Render via SVG.\n// echarts.init(dom, null, { renderer: 'svg' })\nuse([SVGRenderer]);\n\n// ----------------\n// Charts (series)\n// ----------------\n\n// All of the series types, for example:\n// chart.setOption({\n// series: [{\n// type: 'line' // or 'bar', 'pie', ...\n// }]\n// });\n\n\nuse([\n LineChart,\n BarChart,\n PieChart,\n ScatterChart,\n RadarChart,\n MapChart,\n TreeChart,\n TreemapChart,\n GraphChart,\n GaugeChart,\n FunnelChart,\n ParallelChart,\n SankeyChart,\n BoxplotChart,\n CandlestickChart,\n EffectScatterChart,\n LinesChart,\n HeatmapChart,\n PictorialBarChart,\n ThemeRiverChart,\n SunburstChart,\n CustomChart\n]);\n\n// -------------------\n// Coordinate systems\n// -------------------\n\n\n\n// All of the axis modules have been included in the\n// coordinate system module below, do not need to\n// make extra import.\n\n// `cartesian` coordinate system. For some historical\n// reasons, it is named as grid, for example:\n// chart.setOption({\n// grid: {...},\n// xAxis: {...},\n// yAxis: {...},\n// series: [{...}]\n// });\nuse(GridComponent);\n\n// `polar` coordinate system, for example:\n// chart.setOption({\n// polar: {...},\n// radiusAxis: {...},\n// angleAxis: {...},\n// series: [{\n// coordinateSystem: 'polar'\n// }]\n// });\nuse(PolarComponent);\n\n// `geo` coordinate system, for example:\n// chart.setOption({\n// geo: {...},\n// series: [{\n// coordinateSystem: 'geo'\n// }]\n// });\nuse(GeoComponent);\n\n// `singleAxis` coordinate system (notice, it is a coordinate system\n// with only one axis, work for chart like theme river), for example:\n// chart.setOption({\n// singleAxis: {...}\n// series: [{type: 'themeRiver', ...}]\n// });\nuse(SingleAxisComponent);\n\n// `parallel` coordinate system, only work for parallel series, for example:\n// chart.setOption({\n// parallel: {...},\n// parallelAxis: [{...}, ...],\n// series: [{\n// type: 'parallel'\n// }]\n// });\nuse(ParallelComponent);\n\n// `calendar` coordinate system. for example,\n// chart.setOptionp({\n// calendar: {...},\n// series: [{\n// coordinateSystem: 'calendar'\n// }]\n// );\nuse(CalendarComponent);\n\n\n\n// ------------------\n// Other components\n// ------------------\n\n\n\n// `graphic` component, for example:\n// chart.setOption({\n// graphic: {...}\n// });\nuse(GraphicComponent);\n\n// `toolbox` component, for example:\n// chart.setOption({\n// toolbox: {...}\n// });\nuse(ToolboxComponent);\n\n// `tooltip` component, for example:\n// chart.setOption({\n// tooltip: {...}\n// });\nuse(TooltipComponent);\n\n// `axisPointer` component, for example:\n// chart.setOption({\n// tooltip: {axisPointer: {...}, ...}\n// });\n// Or\n// chart.setOption({\n// axisPointer: {...}\n// });\nuse(AxisPointerComponent);\n\n// `brush` component, for example:\n// chart.setOption({\n// brush: {...}\n// });\n// Or\n// chart.setOption({\n// tooltip: {feature: {brush: {...}}\n// })\nuse(BrushComponent);\n\n// `title` component, for example:\n// chart.setOption({\n// title: {...}\n// });\nuse(TitleComponent);\n\n// `timeline` component, for example:\n// chart.setOption({\n// timeline: {...}\n// });\nuse(TimelineComponent);\n\n// `markPoint` component, for example:\n// chart.setOption({\n// series: [{markPoint: {...}}]\n// });\nuse(MarkPointComponent);\n\n// `markLine` component, for example:\n// chart.setOption({\n// series: [{markLine: {...}}]\n// });\nuse(MarkLineComponent);\n\n// `markArea` component, for example:\n// chart.setOption({\n// series: [{markArea: {...}}]\n// });\nuse(MarkAreaComponent);\n\n// `legend` component not scrollable. for example:\n// chart.setOption({\n// legend: {...}\n// });\nuse(LegendComponent);\n\n// `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.\nuse(DataZoomComponent);\n\n// `dataZoom` component providing drag, pinch, wheel behaviors\n// inside coodinate system, for example:\n// chart.setOption({\n// dataZoom: {type: 'inside'}\n// });\nuse(DataZoomInsideComponent);\n\n// `dataZoom` component providing a slider bar, for example:\n// chart.setOption({\n// dataZoom: {type: 'slider'}\n// });\nuse(DataZoomSliderComponent);\n\n// `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.\nuse(VisualMapComponent);\n\n// `visualMap` component providing continuous bar, for example:\n// chart.setOption({\n// visualMap: {type: 'continuous'}\n// });\nuse(VisualMapContinuousComponent);\n\n// `visualMap` component providing pieces bar, for example:\n// chart.setOption({\n// visualMap: {type: 'piecewise'}\n// });\nuse(VisualMapPiecewiseComponent);\n\n// `aria` component providing aria, for example:\n// chart.setOption({\n// aria: {...}\n// });\nuse(AriaComponent);\n\n\n// dataset transform\n// chart.setOption({\n// dataset: {\n// transform: []\n// }\n// });\nuse(TransformComponent);\n\nuse(DatasetComponent);\n\n// universal transition\n// chart.setOption({\n// series: {\n// universalTransition: { enabled: true }\n// }\n// })\nuse(UniversalTransition);\n\n// label layout\n// chart.setOption({\n// series: {\n// labelLayout: { hideOverlap: true }\n// }\n// })\nuse(LabelLayout);", "/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt\n*/\n\nimport env from './core/env';\nimport * as zrUtil from './core/util';\nimport Handler from './Handler';\nimport Storage from './Storage';\nimport {PainterBase} from './PainterBase';\nimport Animation from './animation/Animation';\nimport HandlerProxy from './dom/HandlerProxy';\nimport Element, {ElementEventCallback, ElementEvent} from './Element';\nimport { Dictionary, ElementEventName, RenderedEvent, WithThisType } from './core/types';\nimport { LayerConfig } from './canvas/Layer';\nimport { GradientObject } from './graphic/Gradient';\nimport { PatternObject } from './graphic/Pattern';\nimport { EventCallback } from './core/Eventful';\nimport TSpan from './graphic/TSpan';\nimport ZRImage from './graphic/Image';\nimport Displayable from './graphic/Displayable';\nimport { lum } from './tool/color';\nimport { DARK_MODE_THRESHOLD } from './config';\nimport Path from './graphic/Path';\nimport Group from './graphic/Group';\n\n\nconst useVML = !env.canvasSupported;\n\ntype PainterBaseCtor = {\n new(dom: HTMLElement, storage: Storage, ...args: any[]): PainterBase\n}\n\nconst painterCtors: Dictionary = {};\n\nlet instances: { [key: number]: ZRender } = {};\n\nfunction delInstance(id: number) {\n delete instances[id];\n}\n\nfunction isDarkMode(backgroundColor: string | GradientObject | PatternObject): boolean {\n if (!backgroundColor) {\n return false;\n }\n if (typeof backgroundColor === 'string') {\n return lum(backgroundColor, 1) < DARK_MODE_THRESHOLD;\n }\n else if ((backgroundColor as GradientObject).colorStops) {\n const colorStops = (backgroundColor as GradientObject).colorStops;\n let totalLum = 0;\n const len = colorStops.length;\n // Simply do the math of average the color. Not consider the offset\n for (let i = 0; i < len; i++) {\n totalLum += lum(colorStops[i].color, 1);\n }\n totalLum /= len;\n\n return totalLum < DARK_MODE_THRESHOLD;\n }\n // Can't determine\n return false;\n}\n\nclass ZRender {\n\n dom: HTMLElement\n\n id: number\n\n storage: Storage\n painter: PainterBase\n handler: Handler\n animation: Animation\n\n private _sleepAfterStill = 10;\n\n private _stillFrameAccum = 0;\n\n private _needsRefresh = true\n private _needsRefreshHover = true\n\n /**\n * If theme is dark mode. It will determine the color strategy for labels.\n */\n private _darkMode = false;\n\n private _backgroundColor: string | GradientObject | PatternObject;\n\n constructor(id: number, dom: HTMLElement, opts?: ZRenderInitOpt) {\n opts = opts || {};\n\n /**\n * @type {HTMLDomElement}\n */\n this.dom = dom;\n\n this.id = id;\n\n const storage = new Storage();\n\n let rendererType = opts.renderer || 'canvas';\n\n // TODO WebGL\n if (useVML) {\n throw new Error('IE8 support has been dropped since 5.0');\n }\n\n if (!painterCtors[rendererType]) {\n // Use the first registered renderer.\n rendererType = zrUtil.keys(painterCtors)[0];\n }\n if (!painterCtors[rendererType]) {\n throw new Error(`Renderer '${rendererType}' is not imported. Please import it first.`);\n }\n\n opts.useDirtyRect = opts.useDirtyRect == null\n ? false\n : opts.useDirtyRect;\n\n const painter = new painterCtors[rendererType](dom, storage, opts, id);\n\n this.storage = storage;\n this.painter = painter;\n\n const handerProxy = (!env.node && !env.worker)\n ? new HandlerProxy(painter.getViewportRoot(), painter.root)\n : null;\n this.handler = new Handler(storage, painter, handerProxy, painter.root);\n\n this.animation = new Animation({\n stage: {\n update: () => this._flush(true)\n }\n });\n this.animation.start();\n }\n\n /**\n * \u6DFB\u52A0\u5143\u7D20\n */\n add(el: Element) {\n if (!el) {\n return;\n }\n this.storage.addRoot(el);\n el.addSelfToZr(this);\n this.refresh();\n }\n\n /**\n * \u5220\u9664\u5143\u7D20\n */\n remove(el: Element) {\n if (!el) {\n return;\n }\n this.storage.delRoot(el);\n el.removeSelfFromZr(this);\n this.refresh();\n }\n\n /**\n * Change configuration of layer\n */\n configLayer(zLevel: number, config: LayerConfig) {\n if (this.painter.configLayer) {\n this.painter.configLayer(zLevel, config);\n }\n this.refresh();\n }\n\n /**\n * Set background color\n */\n setBackgroundColor(backgroundColor: string | GradientObject | PatternObject) {\n if (this.painter.setBackgroundColor) {\n this.painter.setBackgroundColor(backgroundColor);\n }\n this.refresh();\n this._backgroundColor = backgroundColor;\n this._darkMode = isDarkMode(backgroundColor);\n }\n\n getBackgroundColor() {\n return this._backgroundColor;\n }\n\n /**\n * Force to set dark mode\n */\n setDarkMode(darkMode: boolean) {\n this._darkMode = darkMode;\n }\n\n isDarkMode() {\n return this._darkMode;\n }\n\n /**\n * Repaint the canvas immediately\n */\n refreshImmediately(fromInside?: boolean) {\n // const start = new Date();\n\n if (!fromInside) {\n // Update animation if refreshImmediately is invoked from outside.\n // Not trigger stage update to call flush again. Which may refresh twice\n this.animation.update(true);\n }\n\n // Clear needsRefresh ahead to avoid something wrong happens in refresh\n // Or it will cause zrender refreshes again and again.\n this._needsRefresh = false;\n this.painter.refresh();\n // Avoid trigger zr.refresh in Element#beforeUpdate hook\n this._needsRefresh = false;\n\n // const end = new Date();\n // const log = document.getElementById('log');\n // if (log) {\n // log.innerHTML = log.innerHTML + '
' + (end - start);\n // }\n }\n\n /**\n * Mark and repaint the canvas in the next frame of browser\n */\n refresh() {\n this._needsRefresh = true;\n // Active the animation again.\n this.animation.start();\n }\n\n /**\n * Perform all refresh\n */\n flush() {\n this._flush(false);\n }\n\n private _flush(fromInside?: boolean) {\n let triggerRendered;\n\n const start = new Date().getTime();\n if (this._needsRefresh) {\n triggerRendered = true;\n this.refreshImmediately(fromInside);\n }\n\n if (this._needsRefreshHover) {\n triggerRendered = true;\n this.refreshHoverImmediately();\n }\n const end = new Date().getTime();\n\n if (triggerRendered) {\n this._stillFrameAccum = 0;\n this.trigger('rendered', {\n elapsedTime: end - start\n } as RenderedEvent);\n }\n else if (this._sleepAfterStill > 0) {\n this._stillFrameAccum++;\n // Stop the animiation after still for 10 frames.\n if (this._stillFrameAccum > this._sleepAfterStill) {\n this.animation.stop();\n }\n }\n }\n\n /**\n * Set sleep after still for frames.\n * Disable auto sleep when it's 0.\n */\n setSleepAfterStill(stillFramesCount: number) {\n this._sleepAfterStill = stillFramesCount;\n }\n\n /**\n * Wake up animation loop. But not render.\n */\n wakeUp() {\n this.animation.start();\n // Reset the frame count.\n this._stillFrameAccum = 0;\n }\n\n /**\n * Add element to hover layer\n */\n addHover(el: Displayable) {\n // deprecated.\n }\n\n /**\n * Add element from hover layer\n */\n removeHover(el: Path | TSpan | ZRImage) {\n // deprecated.\n }\n\n /**\n * Clear all hover elements in hover layer\n */\n clearHover() {\n // deprecated.\n }\n\n /**\n * Refresh hover in next frame\n */\n refreshHover() {\n this._needsRefreshHover = true;\n }\n\n /**\n * Refresh hover immediately\n */\n refreshHoverImmediately() {\n this._needsRefreshHover = false;\n if (this.painter.refreshHover && this.painter.getType() === 'canvas') {\n this.painter.refreshHover();\n }\n }\n\n /**\n * Resize the canvas.\n * Should be invoked when container size is changed\n */\n resize(opts?: {\n width?: number| string\n height?: number | string\n }) {\n opts = opts || {};\n this.painter.resize(opts.width, opts.height);\n this.handler.resize();\n }\n\n /**\n * Stop and clear all animation immediately\n */\n clearAnimation() {\n this.animation.clear();\n }\n\n /**\n * Get container width\n */\n getWidth(): number {\n return this.painter.getWidth();\n }\n\n /**\n * Get container height\n */\n getHeight(): number {\n return this.painter.getHeight();\n }\n\n /**\n * Export the canvas as Base64 URL\n * @param {string} type\n * @param {string} [backgroundColor='#fff']\n * @return {string} Base64 URL\n */\n // toDataURL: function(type, backgroundColor) {\n // return this.painter.getRenderedCanvas({\n // backgroundColor: backgroundColor\n // }).toDataURL(type);\n // },\n\n /**\n * Converting a path to image.\n * It has much better performance of drawing image rather than drawing a vector path.\n */\n pathToImage(e: Path, dpr: number) {\n if (this.painter.pathToImage) {\n return this.painter.pathToImage(e, dpr);\n }\n }\n\n /**\n * Set default cursor\n * @param cursorStyle='default' \u4F8B\u5982 crosshair\n */\n setCursorStyle(cursorStyle: string) {\n this.handler.setCursorStyle(cursorStyle);\n }\n\n /**\n * Find hovered element\n * @param x\n * @param y\n * @return {target, topTarget}\n */\n findHover(x: number, y: number): {\n target: Displayable\n topTarget: Displayable\n } {\n return this.handler.findHover(x, y);\n }\n\n on(eventName: ElementEventName, eventHandler: ElementEventCallback, context?: Ctx): this\n on(eventName: string, eventHandler: WithThisType, unknown extends Ctx ? ZRenderType : Ctx>, context?: Ctx): this\n // eslint-disable-next-line max-len\n on(eventName: string, eventHandler: (...args: any) => any, context?: Ctx): this {\n this.handler.on(eventName, eventHandler, context);\n return this;\n }\n\n /**\n * Unbind event\n * @param eventName Event name\n * @param eventHandler Handler function\n */\n // eslint-disable-next-line max-len\n off(eventName?: string, eventHandler?: EventCallback) {\n this.handler.off(eventName, eventHandler);\n }\n\n /**\n * Trigger event manually\n *\n * @param eventName Event name\n * @param event Event object\n */\n trigger(eventName: string, event?: unknown) {\n this.handler.trigger(eventName, event);\n }\n\n\n /**\n * Clear all objects and the canvas.\n */\n clear() {\n const roots = this.storage.getRoots();\n for (let i = 0; i < roots.length; i++) {\n if (roots[i] instanceof Group) {\n roots[i].removeSelfFromZr(this);\n }\n }\n this.storage.delAllRoots();\n this.painter.clear();\n }\n\n /**\n * Dispose self.\n */\n dispose() {\n this.animation.stop();\n\n this.clear();\n this.storage.dispose();\n this.painter.dispose();\n this.handler.dispose();\n\n this.animation =\n this.storage =\n this.painter =\n this.handler = null;\n\n delInstance(this.id);\n }\n}\n\n\nexport interface ZRenderInitOpt {\n renderer?: string // 'canvas' or 'svg\n devicePixelRatio?: number\n width?: number | string // 10, 10px, 'auto'\n height?: number | string\n useDirtyRect?: boolean\n}\n\n/**\n * Initializing a zrender instance\n */\nexport function init(dom: HTMLElement, opts?: ZRenderInitOpt) {\n const zr = new ZRender(zrUtil.guid(), dom, opts);\n instances[zr.id] = zr;\n return zr;\n}\n\n/**\n * Dispose zrender instance\n */\nexport function dispose(zr: ZRender) {\n zr.dispose();\n}\n\n/**\n * Dispose all zrender instances\n */\nexport function disposeAll() {\n for (let key in instances) {\n if (instances.hasOwnProperty(key)) {\n instances[key].dispose();\n }\n }\n instances = {};\n}\n\n/**\n * Get zrender instance by id\n */\nexport function getInstance(id: number): ZRender {\n return instances[id];\n}\n\nexport function registerPainter(name: string, Ctor: PainterBaseCtor) {\n painterCtors[name] = Ctor;\n}\n\n/**\n * @type {string}\n */\nexport const version = '5.1.1';\n\n\nexport interface ZRenderType extends ZRender {};", "declare const wx: {\n getSystemInfoSync: Function\n};\n\nclass Browser {\n firefox = false\n ie = false\n edge = false\n newEdge = false\n weChat = false\n version: string | number\n}\n\nclass Env {\n browser = new Browser()\n node = false\n wxa = false\n worker = false\n\n canvasSupported = false\n svgSupported = false\n touchEventsSupported = false\n pointerEventsSupported = false\n domSupported = false\n transformSupported = false\n transform3dSupported = false\n}\n\nconst env = new Env();\n\nif (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {\n env.wxa = true;\n env.canvasSupported = true;\n env.touchEventsSupported = true;\n}\nelse if (typeof document === 'undefined' && typeof self !== 'undefined') {\n // In worker\n env.worker = true;\n env.canvasSupported = true;\n}\nelse if (typeof navigator === 'undefined') {\n // In node\n env.node = true;\n env.canvasSupported = true;\n env.svgSupported = true;\n}\nelse {\n detect(navigator.userAgent, env);\n}\n\n// Zepto.js\n// (c) 2010-2013 Thomas Fuchs\n// Zepto.js may be freely distributed under the MIT license.\n\nfunction detect(ua: string, env: Env) {\n const browser = env.browser;\n const firefox = ua.match(/Firefox\\/([\\d.]+)/);\n const ie = ua.match(/MSIE\\s([\\d.]+)/)\n // IE 11 Trident/7.0; rv:11.0\n || ua.match(/Trident\\/.+?rv:(([\\d.]+))/);\n const edge = ua.match(/Edge?\\/([\\d.]+)/); // IE 12 and 12+\n\n const weChat = (/micromessenger/i).test(ua);\n\n if (firefox) {\n browser.firefox = true;\n browser.version = firefox[1];\n }\n if (ie) {\n browser.ie = true;\n browser.version = ie[1];\n }\n\n if (edge) {\n browser.edge = true;\n browser.version = edge[1];\n browser.newEdge = +edge[1].split('.')[0] > 18; \n }\n\n // It is difficult to detect WeChat in Win Phone precisely, because ua can\n // not be set on win phone. So we do not consider Win Phone.\n if (weChat) {\n browser.weChat = true;\n }\n\n env.canvasSupported = !!document.createElement('canvas').getContext;\n env.svgSupported = typeof SVGRect !== 'undefined';\n env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;\n env.pointerEventsSupported = 'onpointerdown' in window\n && (browser.edge || (browser.ie && +browser.version >= 11));\n env.domSupported = typeof document !== 'undefined';\n\n const style = document.documentElement.style;\n\n env.transform3dSupported = (\n // IE9 only supports transform 2D\n // transform 3D supported since IE10\n // we detect it by whether 'transition' is in style\n (browser.ie && 'transition' in style)\n // edge\n || browser.edge\n // webkit\n || (('WebKitCSSMatrix' in window) && ('m11' in new WebKitCSSMatrix()))\n // gecko-based browsers\n || 'MozPerspective' in style\n ) // Opera supports CSS transforms after version 12\n && !('OTransition' in style);\n\n // except IE 6-8 and very old firefox 2-3 & opera 10.1\n // other browsers all support `transform`\n env.transformSupported = env.transform3dSupported \n // transform 2D is supported in IE9\n || (browser.ie && +browser.version >= 9);\n\n}\n\n\nexport default env;\n", "import { Dictionary, ArrayLike, KeyOfDistributive } from './types';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject } from '../graphic/Pattern';\n\n\n// \u7528\u4E8E\u5904\u7406merge\u65F6\u65E0\u6CD5\u904D\u5386Date\u7B49\u5BF9\u8C61\u7684\u95EE\u9898\nconst BUILTIN_OBJECT: {[key: string]: boolean} = {\n '[object Function]': true,\n '[object RegExp]': true,\n '[object Date]': true,\n '[object Error]': true,\n '[object CanvasGradient]': true,\n '[object CanvasPattern]': true,\n // For node-canvas\n '[object Image]': true,\n '[object Canvas]': true\n};\n\nconst TYPED_ARRAY: {[key: string]: boolean} = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true\n};\n\nconst objToString = Object.prototype.toString;\n\nconst arrayProto = Array.prototype;\nconst nativeForEach = arrayProto.forEach;\nconst nativeFilter = arrayProto.filter;\nconst nativeSlice = arrayProto.slice;\nconst nativeMap = arrayProto.map;\n// In case some env may redefine the global variable `Function`.\nconst ctorFunction = function () {}.constructor;\nconst protoFunction = ctorFunction ? ctorFunction.prototype : null;\n\n// Avoid assign to an exported constiable, for transforming to cjs.\nconst methods: {[key: string]: Function} = {};\n\nexport function $override(name: string, fn: Function) {\n methods[name] = fn;\n}\n\nlet idStart = 0x0907;\n/**\n * Generate unique id\n */\nexport function guid(): number {\n return idStart++;\n}\n\nexport function logError(...args: any[]) {\n if (typeof console !== 'undefined') {\n console.error.apply(console, args);\n }\n}\n/**\n * Those data types can be cloned:\n * Plain object, Array, TypedArray, number, string, null, undefined.\n * Those data types will be assgined using the orginal data:\n * BUILTIN_OBJECT\n * Instance of user defined class will be cloned to a plain object, without\n * properties in prototype.\n * Other data types is not supported (not sure what will happen).\n *\n * Caution: do not support clone Date, for performance consideration.\n * (There might be a large number of date in `series.data`).\n * So date should not be modified in and out of echarts.\n */\nexport function clone(source: T): T {\n if (source == null || typeof source !== 'object') {\n return source;\n }\n\n let result = source as any;\n const typeStr = objToString.call(source);\n\n if (typeStr === '[object Array]') {\n if (!isPrimitive(source)) {\n result = [] as any;\n for (let i = 0, len = (source as any[]).length; i < len; i++) {\n result[i] = clone((source as any[])[i]);\n }\n }\n }\n else if (TYPED_ARRAY[typeStr]) {\n if (!isPrimitive(source)) {\n /* eslint-disable-next-line */\n const Ctor = source.constructor as typeof Float32Array;\n if (Ctor.from) {\n result = Ctor.from(source as Float32Array);\n }\n else {\n result = new Ctor((source as Float32Array).length);\n for (let i = 0, len = (source as Float32Array).length; i < len; i++) {\n result[i] = clone((source as Float32Array)[i]);\n }\n }\n }\n }\n else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {\n result = {} as any;\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n result[key] = clone(source[key]);\n }\n }\n }\n\n return result;\n}\n\nexport function merge<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S, overwrite?: boolean): T & S;\nexport function merge<\n T extends any,\n S extends any\n>(target: T, source: S, overwrite?: boolean): T | S;\nexport function merge(target: any, source: any, overwrite?: boolean): any {\n // We should escapse that source is string\n // and enter for ... in ...\n if (!isObject(source) || !isObject(target)) {\n return overwrite ? clone(source) : target;\n }\n\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n const targetProp = target[key];\n const sourceProp = source[key];\n\n if (isObject(sourceProp)\n && isObject(targetProp)\n && !isArray(sourceProp)\n && !isArray(targetProp)\n && !isDom(sourceProp)\n && !isDom(targetProp)\n && !isBuiltInObject(sourceProp)\n && !isBuiltInObject(targetProp)\n && !isPrimitive(sourceProp)\n && !isPrimitive(targetProp)\n ) {\n // \u5982\u679C\u9700\u8981\u9012\u5F52\u8986\u76D6\uFF0C\u5C31\u9012\u5F52\u8C03\u7528merge\n merge(targetProp, sourceProp, overwrite);\n }\n else if (overwrite || !(key in target)) {\n // \u5426\u5219\u53EA\u5904\u7406overwrite\u4E3Atrue\uFF0C\u6216\u8005\u5728\u76EE\u6807\u5BF9\u8C61\u4E2D\u6CA1\u6709\u6B64\u5C5E\u6027\u7684\u60C5\u51B5\n // NOTE\uFF0C\u5728 target[key] \u4E0D\u5B58\u5728\u7684\u65F6\u5019\u4E5F\u662F\u76F4\u63A5\u8986\u76D6\n target[key] = clone(source[key]);\n }\n }\n }\n\n return target;\n}\n\n/**\n * @param targetAndSources The first item is target, and the rests are source.\n * @param overwrite\n * @return Merged result\n */\nexport function mergeAll(targetAndSources: any[], overwrite?: boolean): any {\n let result = targetAndSources[0];\n for (let i = 1, len = targetAndSources.length; i < len; i++) {\n result = merge(result, targetAndSources[i], overwrite);\n }\n return result;\n}\n\nexport function extend<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S): T & S {\n // @ts-ignore\n if (Object.assign) {\n // @ts-ignore\n Object.assign(target, source);\n }\n else {\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n (target as S & T)[key] = (source as T & S)[key];\n }\n }\n }\n return target as T & S;\n}\n\nexport function defaults<\n T extends Dictionary,\n S extends Dictionary\n>(target: T, source: S, overlay?: boolean): T & S {\n const keysArr = keys(source);\n for (let i = 0; i < keysArr.length; i++) {\n let key = keysArr[i];\n if ((overlay ? source[key] != null : (target as T & S)[key] == null)) {\n (target as S & T)[key] = (source as T & S)[key];\n }\n }\n return target as T & S;\n}\n\nexport const createCanvas = function (): HTMLCanvasElement {\n return methods.createCanvas();\n};\n\nmethods.createCanvas = function (): HTMLCanvasElement {\n return document.createElement('canvas');\n};\n\n/**\n * \u67E5\u8BE2\u6570\u7EC4\u4E2D\u5143\u7D20\u7684index\n */\nexport function indexOf(array: T[] | readonly T[] | ArrayLike, value: T): number {\n if (array) {\n if ((array as T[]).indexOf) {\n return (array as T[]).indexOf(value);\n }\n for (let i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n }\n return -1;\n}\n\n/**\n * \u6784\u9020\u7C7B\u7EE7\u627F\u5173\u7CFB\n *\n * @param clazz \u6E90\u7C7B\n * @param baseClazz \u57FA\u7C7B\n */\nexport function inherits(clazz: Function, baseClazz: Function) {\n const clazzPrototype = clazz.prototype;\n function F() {}\n F.prototype = baseClazz.prototype;\n clazz.prototype = new (F as any)();\n\n for (let prop in clazzPrototype) {\n if (clazzPrototype.hasOwnProperty(prop)) {\n clazz.prototype[prop] = clazzPrototype[prop];\n }\n }\n clazz.prototype.constructor = clazz;\n (clazz as any).superClass = baseClazz;\n}\n\nexport function mixin(target: T | Function, source: S | Function, override?: boolean) {\n target = 'prototype' in target ? target.prototype : target;\n source = 'prototype' in source ? source.prototype : source;\n // If build target is ES6 class. prototype methods is not enumerable. Use getOwnPropertyNames instead\n // TODO: Determine if source is ES6 class?\n if (Object.getOwnPropertyNames) {\n const keyList = Object.getOwnPropertyNames(source);\n for (let i = 0; i < keyList.length; i++) {\n const key = keyList[i];\n if (key !== 'constructor') {\n if ((override ? (source as any)[key] != null : (target as any)[key] == null)) {\n (target as any)[key] = (source as any)[key];\n }\n }\n }\n }\n else {\n defaults(target, source, override);\n }\n}\n\n/**\n * Consider typed array.\n * @param data\n */\nexport function isArrayLike(data: any): data is ArrayLike {\n if (!data) {\n return false;\n }\n if (typeof data === 'string') {\n return false;\n }\n return typeof data.length === 'number';\n}\n\n/**\n * \u6570\u7EC4\u6216\u5BF9\u8C61\u904D\u5386\n */\nexport function each | any[] | readonly any[] | ArrayLike, Context>(\n arr: I,\n cb: (\n this: Context,\n // Use unknown to avoid to infer to \"any\", which may disable typo check.\n value: I extends (infer T)[] | readonly (infer T)[] | ArrayLike ? T\n // Use Dictionary may cause infer fail when I is an interface.\n // So here use a Record to infer type.\n : I extends Dictionary ? I extends Record ? T : unknown : unknown,\n index?: I extends any[] | readonly any[] | ArrayLike ? number : keyof I & string, // keyof Dictionary will return number | string\n arr?: I\n ) => void,\n context?: Context\n) {\n if (!(arr && cb)) {\n return;\n }\n if ((arr as any).forEach && (arr as any).forEach === nativeForEach) {\n (arr as any).forEach(cb, context);\n }\n else if (arr.length === +arr.length) {\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided item be travelled? like `[33,,55]`.\n cb.call(context, (arr as any[])[i], i as any, arr);\n }\n }\n else {\n for (let key in arr) {\n if (arr.hasOwnProperty(key)) {\n cb.call(context, (arr as Dictionary)[key], key as any, arr);\n }\n }\n }\n}\n\n/**\n * Array mapping.\n * @typeparam T Type in Array\n * @typeparam R Type Returned\n * @return Must be an array.\n */\nexport function map(\n arr: readonly T[],\n cb: (this: Context, val: T, index?: number, arr?: readonly T[]) => R,\n context?: Context\n): R[] {\n // Take the same behavior with lodash when !arr and !cb,\n // which might be some common sense.\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr) as unknown[] as R[];\n }\n if (arr.map && arr.map === nativeMap) {\n return arr.map(cb, context);\n }\n else {\n const result = [];\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided item be travelled, like `[33,,55]`.\n result.push(cb.call(context, arr[i], i, arr));\n }\n return result;\n }\n}\n\nexport function reduce(\n arr: readonly T[],\n cb: (this: Context, previousValue: S, currentValue: T, currentIndex?: number, arr?: readonly T[]) => S,\n memo?: S,\n context?: Context\n): S {\n if (!(arr && cb)) {\n return;\n }\n for (let i = 0, len = arr.length; i < len; i++) {\n memo = cb.call(context, memo, arr[i], i, arr);\n }\n return memo;\n}\n\n/**\n * Array filtering.\n * @return Must be an array.\n */\nexport function filter(\n arr: readonly T[],\n cb: (this: Context, value: T, index: number, arr: readonly T[]) => boolean,\n context?: Context\n): T[] {\n // Take the same behavior with lodash when !arr and !cb,\n // which might be some common sense.\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.filter && arr.filter === nativeFilter) {\n return arr.filter(cb, context);\n }\n else {\n const result = [];\n for (let i = 0, len = arr.length; i < len; i++) {\n // FIXME: should the elided items be travelled? like `[33,,55]`.\n if (cb.call(context, arr[i], i, arr)) {\n result.push(arr[i]);\n }\n }\n return result;\n }\n}\n\n/**\n * \u6570\u7EC4\u9879\u67E5\u627E\n */\nexport function find(\n arr: readonly T[],\n cb: (this: Context, value: T, index?: number, arr?: readonly T[]) => boolean,\n context?: Context\n): T {\n if (!(arr && cb)) {\n return;\n }\n for (let i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n return arr[i];\n }\n }\n}\n\n/**\n * Get all object keys\n *\n * Will return an empty array if obj is null/undefined\n */\nexport function keys(obj: T): (KeyOfDistributive & string)[] {\n if (!obj) {\n return [];\n }\n // Return type should be `keyof T` but exclude `number`, becuase\n // `Object.keys` only return string rather than `number | string`.\n type TKeys = KeyOfDistributive & string;\n if (Object.keys) {\n return Object.keys(obj) as TKeys[];\n }\n let keyList: TKeys[] = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n keyList.push(key as any);\n }\n }\n return keyList;\n}\n\n\n// Remove this type in returned function. Or it will conflicts wicth callback with given context. Like Eventful.\n// According to lib.es5.d.ts\n/* eslint-disable max-len*/\nexport type Bind1 = F extends (this: Ctx, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind2 = F extends (this: Ctx, a: T1, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind3 = F extends (this: Ctx, a: T1, b: T2, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind4 = F extends (this: Ctx, a: T1, b: T2, c: T3, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Bind5 = F extends (this: Ctx, a: T1, b: T2, c: T3, d: T4, ...args: infer A) => infer R ? (...args: A) => R : unknown;\ntype BindFunc = (this: Ctx, ...arg: any[]) => any\n\ninterface FunctionBind {\n , Ctx>(func: F, ctx: Ctx): Bind1\n , Ctx, T1 extends Parameters[0]>(func: F, ctx: Ctx, a: T1): Bind2\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1]>(func: F, ctx: Ctx, a: T1, b: T2): Bind3\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1], T3 extends Parameters[2]>(func: F, ctx: Ctx, a: T1, b: T2, c: T3): Bind4\n , Ctx, T1 extends Parameters[0], T2 extends Parameters[1], T3 extends Parameters[2], T4 extends Parameters[3]>(func: F, ctx: Ctx, a: T1, b: T2, c: T3, d: T4): Bind5\n}\nfunction bindPolyfill any>(\n func: Fn, context: Ctx, ...args: any[]\n): (...args: Parameters) => ReturnType {\n return function (this: Ctx) {\n return func.apply(context, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport const bind: FunctionBind = (protoFunction && isFunction(protoFunction.bind))\n ? protoFunction.call.bind(protoFunction.bind)\n : bindPolyfill;\n\nexport type Curry1 = F extends (a: T1, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry2 = F extends (a: T1, b: T2, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry3 = F extends (a: T1, b: T2, c: T3, ...args: infer A) => infer R ? (...args: A) => R : unknown;\nexport type Curry4 = F extends (a: T1, b: T2, c: T3, d: T4, ...args: infer A) => infer R ? (...args: A) => R : unknown;\ntype CurryFunc = (...arg: any[]) => any\n\nfunction curry[0]>(func: F, a: T1): Curry1\nfunction curry[0], T2 extends Parameters[1]>(func: F, a: T1, b: T2): Curry2\nfunction curry[0], T2 extends Parameters[1], T3 extends Parameters[2]>(func: F, a: T1, b: T2, c: T3): Curry3\nfunction curry[0], T2 extends Parameters[1], T3 extends Parameters[2], T4 extends Parameters[3]>(func: F, a: T1, b: T2, c: T3, d: T4): Curry4\nfunction curry(func: Function, ...args: any[]): Function {\n return function (this: any) {\n return func.apply(this, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport {curry};\n/* eslint-enable max-len*/\n\nexport function isArray(value: any): value is any[] {\n if (Array.isArray) {\n return Array.isArray(value);\n }\n return objToString.call(value) === '[object Array]';\n}\n\nexport function isFunction(value: any): value is Function {\n return typeof value === 'function';\n}\n\nexport function isString(value: any): value is string {\n // Faster than `objToString.call` several times in chromium and webkit.\n // And `new String()` is rarely used.\n return typeof value === 'string';\n}\n\nexport function isStringSafe(value: any): value is string {\n return objToString.call(value) === '[object String]';\n}\n\nexport function isNumber(value: any): value is number {\n // Faster than `objToString.call` several times in chromium and webkit.\n // And `new Number()` is rarely used.\n return typeof value === 'number';\n}\n\n// Usage: `isObject(xxx)` or `isObject(SomeType)(xxx)`\n// Generic T can be used to avoid \"ts type gruards\" casting the `value` from its original\n// type `Object` implicitly so that loose its original type info in the subsequent code.\nexport function isObject(value: T): value is (object & T) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n const type = typeof value;\n return type === 'function' || (!!value && type === 'object');\n}\n\nexport function isBuiltInObject(value: any): boolean {\n return !!BUILTIN_OBJECT[objToString.call(value)];\n}\n\nexport function isTypedArray(value: any): boolean {\n return !!TYPED_ARRAY[objToString.call(value)];\n}\n\nexport function isDom(value: any): value is HTMLElement {\n return typeof value === 'object'\n && typeof value.nodeType === 'number'\n && typeof value.ownerDocument === 'object';\n}\n\nexport function isGradientObject(value: any): value is GradientObject {\n return (value as GradientObject).colorStops != null;\n}\n\nexport function isImagePatternObject(value: any): value is ImagePatternObject {\n return (value as ImagePatternObject).image != null;\n}\n\nexport function isRegExp(value: unknown): value is RegExp {\n return objToString.call(value) === '[object RegExp]';\n}\n\n/**\n * Whether is exactly NaN. Notice isNaN('a') returns true.\n */\nexport function eqNaN(value: any): boolean {\n /* eslint-disable-next-line no-self-compare */\n return value !== value;\n}\n\n/**\n * If value1 is not null, then return value1, otherwise judget rest of values.\n * Low performance.\n * @return Final value\n */\nexport function retrieve(...args: T[]): T {\n for (let i = 0, len = args.length; i < len; i++) {\n if (args[i] != null) {\n return args[i];\n }\n }\n}\n\nexport function retrieve2(value0: T, value1: R): T | R {\n return value0 != null\n ? value0\n : value1;\n}\n\nexport function retrieve3(value0: T, value1: R, value2: W): T | R | W {\n return value0 != null\n ? value0\n : value1 != null\n ? value1\n : value2;\n}\n\ntype SliceParams = Parameters;\nexport function slice(arr: ArrayLike, ...args: SliceParams): T[] {\n return nativeSlice.apply(arr, args as any[]);\n}\n\n/**\n * Normalize css liked array configuration\n * e.g.\n * 3 => [3, 3, 3, 3]\n * [4, 2] => [4, 2, 4, 2]\n * [4, 3, 2] => [4, 3, 2, 3]\n */\nexport function normalizeCssArray(val: number | number[]) {\n if (typeof (val) === 'number') {\n return [val, val, val, val];\n }\n const len = val.length;\n if (len === 2) {\n // vertical | horizontal\n return [val[0], val[1], val[0], val[1]];\n }\n else if (len === 3) {\n // top | horizontal | bottom\n return [val[0], val[1], val[2], val[1]];\n }\n return val;\n}\n\nexport function assert(condition: any, message?: string) {\n if (!condition) {\n throw new Error(message);\n }\n}\n\n/**\n * @param str string to be trimed\n * @return trimed string\n */\nexport function trim(str: string): string {\n if (str == null) {\n return null;\n }\n else if (typeof str.trim === 'function') {\n return str.trim();\n }\n else {\n return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n }\n}\n\nconst primitiveKey = '__ec_primitive__';\n/**\n * Set an object as primitive to be ignored traversing children in clone or merge\n */\nexport function setAsPrimitive(obj: any) {\n obj[primitiveKey] = true;\n}\n\nexport function isPrimitive(obj: any): boolean {\n return obj[primitiveKey];\n}\n\n\n/**\n * @constructor\n * @param {Object} obj Only apply `ownProperty`.\n */\nexport class HashMap {\n\n data: {[key in KEY]: T} = {} as {[key in KEY]: T};\n\n constructor(obj?: HashMap | { [key in KEY]?: T } | KEY[]) {\n const isArr = isArray(obj);\n // Key should not be set on this, otherwise\n // methods get/set/... may be overrided.\n this.data = {} as {[key in KEY]: T};\n const thisMap = this;\n\n (obj instanceof HashMap)\n ? obj.each(visit)\n : (obj && each(obj, visit));\n\n function visit(value: any, key: any) {\n isArr ? thisMap.set(value, key) : thisMap.set(key, value);\n }\n }\n\n // Do not provide `has` method to avoid defining what is `has`.\n // (We usually treat `null` and `undefined` as the same, different\n // from ES6 Map).\n get(key: KEY): T {\n return this.data.hasOwnProperty(key) ? this.data[key] : null;\n }\n set(key: KEY, value: T): T {\n // Comparing with invocation chaining, `return value` is more commonly\n // used in this case: `const someVal = map.set('a', genVal());`\n return (this.data[key] = value);\n }\n // Although util.each can be performed on this hashMap directly, user\n // should not use the exposed keys, who are prefixed.\n each(\n cb: (this: Context, value?: T, key?: KEY) => void,\n context?: Context\n ) {\n for (let key in this.data) {\n if (this.data.hasOwnProperty(key)) {\n cb.call(context, this.data[key], key);\n }\n }\n }\n keys(): KEY[] {\n return keys(this.data);\n }\n // Do not use this method if performance sensitive.\n removeKey(key: KEY) {\n delete this.data[key];\n }\n}\n\nexport function createHashMap(\n obj?: HashMap | { [key in KEY]?: T } | KEY[]\n) {\n return new HashMap(obj);\n}\n\nexport function concatArray(a: ArrayLike, b: ArrayLike): ArrayLike {\n const newArray = new (a as any).constructor(a.length + b.length);\n for (let i = 0; i < a.length; i++) {\n newArray[i] = a[i];\n }\n const offset = a.length;\n for (let i = 0; i < b.length; i++) {\n newArray[i + offset] = b[i];\n }\n return newArray;\n}\n\nexport function createObject(proto?: object, properties?: T): T {\n // Performance of Object.create\n // https://jsperf.com/style-strategy-proto-or-others\n let obj: T;\n if (Object.create) {\n obj = Object.create(proto);\n }\n else {\n const StyleCtor = function () {};\n StyleCtor.prototype = proto;\n obj = new (StyleCtor as any)();\n }\n if (properties) {\n extend(obj, properties);\n }\n\n return obj;\n}\n\nexport function hasOwn(own: object, prop: string): boolean {\n return own.hasOwnProperty(prop);\n}\n\nexport function noop() {}\n", "/**\n * @deprecated\n * Use zrender.Point class instead\n */\nimport { MatrixArray } from './matrix';\n\n/* global Float32Array */\n\n// const ArrayCtor = typeof Float32Array === 'undefined'\n// ? Array\n// : Float32Array;\n\nexport type VectorArray = number[]\n/**\n * \u521B\u5EFA\u4E00\u4E2A\u5411\u91CF\n */\nexport function create(x?: number, y?: number): VectorArray {\n if (x == null) {\n x = 0;\n }\n if (y == null) {\n y = 0;\n }\n return [x, y];\n}\n\n/**\n * \u590D\u5236\u5411\u91CF\u6570\u636E\n */\nexport function copy(out: T, v: VectorArray): T {\n out[0] = v[0];\n out[1] = v[1];\n return out;\n}\n\n/**\n * \u514B\u9686\u4E00\u4E2A\u5411\u91CF\n */\nexport function clone(v: VectorArray): VectorArray {\n return [v[0], v[1]];\n}\n\n/**\n * \u8BBE\u7F6E\u5411\u91CF\u7684\u4E24\u4E2A\u9879\n */\nexport function set(out: T, a: number, b: number): T {\n out[0] = a;\n out[1] = b;\n return out;\n}\n\n/**\n * \u5411\u91CF\u76F8\u52A0\n */\nexport function add(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] + v2[0];\n out[1] = v1[1] + v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u7F29\u653E\u540E\u76F8\u52A0\n */\nexport function scaleAndAdd(out: T, v1: VectorArray, v2: VectorArray, a: number): T {\n out[0] = v1[0] + v2[0] * a;\n out[1] = v1[1] + v2[1] * a;\n return out;\n}\n\n/**\n * \u5411\u91CF\u76F8\u51CF\n */\nexport function sub(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] - v2[0];\n out[1] = v1[1] - v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u957F\u5EA6\n */\nexport function len(v: VectorArray): number {\n return Math.sqrt(lenSquare(v));\n}\nexport const length = len;\n\n/**\n * \u5411\u91CF\u957F\u5EA6\u5E73\u65B9\n */\nexport function lenSquare(v: VectorArray): number {\n return v[0] * v[0] + v[1] * v[1];\n}\nexport const lengthSquare = lenSquare;\n\n/**\n * \u5411\u91CF\u4E58\u6CD5\n */\nexport function mul(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] * v2[0];\n out[1] = v1[1] * v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u9664\u6CD5\n */\nexport function div(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = v1[0] / v2[0];\n out[1] = v1[1] / v2[1];\n return out;\n}\n\n/**\n * \u5411\u91CF\u70B9\u4E58\n */\nexport function dot(v1: VectorArray, v2: VectorArray) {\n return v1[0] * v2[0] + v1[1] * v2[1];\n}\n\n/**\n * \u5411\u91CF\u7F29\u653E\n */\nexport function scale(out: T, v: VectorArray, s: number): T {\n out[0] = v[0] * s;\n out[1] = v[1] * s;\n return out;\n}\n\n/**\n * \u5411\u91CF\u5F52\u4E00\u5316\n */\nexport function normalize(out: T, v: VectorArray): T {\n const d = len(v);\n if (d === 0) {\n out[0] = 0;\n out[1] = 0;\n }\n else {\n out[0] = v[0] / d;\n out[1] = v[1] / d;\n }\n return out;\n}\n\n/**\n * \u8BA1\u7B97\u5411\u91CF\u95F4\u8DDD\u79BB\n */\nexport function distance(v1: VectorArray, v2: VectorArray): number {\n return Math.sqrt(\n (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1])\n );\n}\nexport const dist = distance;\n\n/**\n * \u5411\u91CF\u8DDD\u79BB\u5E73\u65B9\n */\nexport function distanceSquare(v1: VectorArray, v2: VectorArray): number {\n return (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]);\n}\nexport const distSquare = distanceSquare;\n\n/**\n * \u6C42\u8D1F\u5411\u91CF\n */\nexport function negate(out: T, v: VectorArray): T {\n out[0] = -v[0];\n out[1] = -v[1];\n return out;\n}\n\n/**\n * \u63D2\u503C\u4E24\u4E2A\u70B9\n */\nexport function lerp(out: T, v1: VectorArray, v2: VectorArray, t: number): T {\n out[0] = v1[0] + t * (v2[0] - v1[0]);\n out[1] = v1[1] + t * (v2[1] - v1[1]);\n return out;\n}\n\n/**\n * \u77E9\u9635\u5DE6\u4E58\u5411\u91CF\n */\nexport function applyTransform(out: T, v: VectorArray, m: MatrixArray): T {\n const x = v[0];\n const y = v[1];\n out[0] = m[0] * x + m[2] * y + m[4];\n out[1] = m[1] * x + m[3] * y + m[5];\n return out;\n}\n\n/**\n * \u6C42\u4E24\u4E2A\u5411\u91CF\u6700\u5C0F\u503C\n */\nexport function min(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = Math.min(v1[0], v2[0]);\n out[1] = Math.min(v1[1], v2[1]);\n return out;\n}\n\n/**\n * \u6C42\u4E24\u4E2A\u5411\u91CF\u6700\u5927\u503C\n */\nexport function max(out: T, v1: VectorArray, v2: VectorArray): T {\n out[0] = Math.max(v1[0], v2[0]);\n out[1] = Math.max(v1[1], v2[1]);\n return out;\n}\n", "import Handler from '../Handler';\nimport Element, { ElementEvent } from '../Element';\nimport Displayable from '../graphic/Displayable';\n\nclass Param {\n\n target: Element\n topTarget: Element\n\n constructor(target: Element, e?: ElementEvent) {\n this.target = target;\n this.topTarget = e && e.topTarget;\n }\n}\n\n// FIXME Draggable on element which has parent rotation or scale\nexport default class Draggable {\n\n handler: Handler\n\n _draggingTarget: Element\n _dropTarget: Element\n\n _x: number\n _y: number\n\n constructor(handler: Handler) {\n this.handler = handler;\n\n handler.on('mousedown', this._dragStart, this);\n handler.on('mousemove', this._drag, this);\n handler.on('mouseup', this._dragEnd, this);\n // `mosuemove` and `mouseup` can be continue to fire when dragging.\n // See [DRAG_OUTSIDE] in `Handler.js`. So we do not need to trigger\n // `_dragEnd` when globalout. That would brings better user experience.\n // this.on('globalout', this._dragEnd, this);\n\n // this._dropTarget = null;\n // this._draggingTarget = null;\n\n // this._x = 0;\n // this._y = 0;\n }\n\n _dragStart(e: ElementEvent) {\n let draggingTarget = e.target;\n // Find if there is draggable in the ancestor\n while (draggingTarget && !draggingTarget.draggable) {\n draggingTarget = draggingTarget.parent;\n }\n if (draggingTarget) {\n this._draggingTarget = draggingTarget;\n draggingTarget.dragging = true;\n this._x = e.offsetX;\n this._y = e.offsetY;\n\n this.handler.dispatchToElement(\n new Param(draggingTarget, e), 'dragstart', e.event\n );\n }\n }\n\n _drag(e: ElementEvent) {\n const draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const dx = x - this._x;\n const dy = y - this._y;\n this._x = x;\n this._y = y;\n\n draggingTarget.drift(dx, dy, e);\n this.handler.dispatchToElement(\n new Param(draggingTarget, e), 'drag', e.event\n );\n\n const dropTarget = this.handler.findHover(\n x, y, draggingTarget as Displayable // PENDING\n ).target;\n const lastDropTarget = this._dropTarget;\n this._dropTarget = dropTarget;\n\n if (draggingTarget !== dropTarget) {\n if (lastDropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(\n new Param(lastDropTarget, e), 'dragleave', e.event\n );\n }\n if (dropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(\n new Param(dropTarget, e), 'dragenter', e.event\n );\n }\n }\n }\n }\n\n _dragEnd(e: ElementEvent) {\n const draggingTarget = this._draggingTarget;\n\n if (draggingTarget) {\n draggingTarget.dragging = false;\n }\n\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragend', e.event);\n\n if (this._dropTarget) {\n this.handler.dispatchToElement(new Param(this._dropTarget, e), 'drop', e.event);\n }\n\n this._draggingTarget = null;\n this._dropTarget = null;\n }\n\n}", "import { Dictionary, WithThisType } from './types';\n\n// Return true to cancel bubble\nexport type EventCallbackSingleParam = EvtParam extends any\n ? (params: EvtParam) => boolean | void\n : never\n\nexport type EventCallback = EvtParams extends any[]\n ? (...args: EvtParams) => boolean | void\n : never\nexport type EventQuery = string | Object\n\ntype CbThis = unknown extends Ctx ? Impl : Ctx;\n\ntype EventHandler = {\n h: EventCallback\n ctx: CbThis\n query: EventQuery\n\n callAtLast: boolean\n}\n\ntype DefaultEventDefinition = Dictionary>;\n\nexport interface EventProcessor {\n normalizeQuery?: (query: EventQuery) => EventQuery\n filter?: (eventType: keyof EvtDef, query: EventQuery) => boolean\n afterTrigger?: (eventType: keyof EvtDef) => void\n}\n\n/**\n * Event dispatcher.\n *\n * Event can be defined in EvtDef to enable type check. For example:\n * ```ts\n * interface FooEvents {\n * // key: event name, value: the first event param in `trigger` and `callback`.\n * myevent: {\n * aa: string;\n * bb: number;\n * };\n * }\n * class Foo extends Eventful {\n * fn() {\n * // Type check of event name and the first event param is enabled here.\n * this.trigger('myevent', {aa: 'xx', bb: 3});\n * }\n * }\n * let foo = new Foo();\n * // Type check of event name and the first event param is enabled here.\n * foo.on('myevent', (eventParam) => { ... });\n * ```\n *\n * @param eventProcessor The object eventProcessor is the scope when\n * `eventProcessor.xxx` called.\n * @param eventProcessor.normalizeQuery\n * param: {string|Object} Raw query.\n * return: {string|Object} Normalized query.\n * @param eventProcessor.filter Event will be dispatched only\n * if it returns `true`.\n * param: {string} eventType\n * param: {string|Object} query\n * return: {boolean}\n * @param eventProcessor.afterTrigger Called after all handlers called.\n * param: {string} eventType\n */\nexport default class Eventful {\n\n private _$handlers: Dictionary[]>\n\n protected _$eventProcessor: EventProcessor\n\n constructor(eventProcessors?: EventProcessor) {\n if (eventProcessors) {\n this._$eventProcessor = eventProcessors;\n }\n }\n\n on(\n event: EvtNm,\n handler: WithThisType>,\n context?: Ctx\n ): this\n on(\n event: EvtNm,\n query: EventQuery,\n handler: WithThisType>,\n context?: Ctx\n ): this\n /**\n * Bind a handler.\n *\n * @param event The event name.\n * @param Condition used on event filter.\n * @param handler The event handler.\n * @param context\n */\n on(\n event: EvtNm,\n query: EventQuery | WithThisType, CbThis>,\n handler?: WithThisType, CbThis> | Ctx,\n context?: Ctx\n ): this {\n if (!this._$handlers) {\n this._$handlers = {};\n }\n\n const _h = this._$handlers;\n\n if (typeof query === 'function') {\n context = handler as Ctx;\n handler = query as (...args: any) => any;\n query = null;\n }\n\n if (!handler || !event) {\n return this;\n }\n\n const eventProcessor = this._$eventProcessor;\n if (query != null && eventProcessor && eventProcessor.normalizeQuery) {\n query = eventProcessor.normalizeQuery(query);\n }\n\n if (!_h[event as string]) {\n _h[event as string] = [];\n }\n\n for (let i = 0; i < _h[event as string].length; i++) {\n if (_h[event as string][i].h === handler) {\n return this;\n }\n }\n\n const wrap: EventHandler = {\n h: handler as EventCallback,\n query: query,\n ctx: (context || this) as CbThis,\n // FIXME\n // Do not publish this feature util it is proved that it makes sense.\n callAtLast: (handler as any).zrEventfulCallAtLast\n };\n\n const lastIndex = _h[event as string].length - 1;\n const lastWrap = _h[event as string][lastIndex];\n (lastWrap && lastWrap.callAtLast)\n ? _h[event as string].splice(lastIndex, 0, wrap)\n : _h[event as string].push(wrap);\n\n return this;\n }\n\n /**\n * Whether any handler has bound.\n */\n isSilent(eventName: keyof EvtDef): boolean {\n const _h = this._$handlers;\n return !_h || !_h[eventName as string] || !_h[eventName as string].length;\n }\n\n /**\n * Unbind a event.\n *\n * @param eventType The event name.\n * If no `event` input, \"off\" all listeners.\n * @param handler The event handler.\n * If no `handler` input, \"off\" all listeners of the `event`.\n */\n off(eventType?: keyof EvtDef, handler?: Function): this {\n const _h = this._$handlers;\n\n if (!_h) {\n return this;\n }\n\n if (!eventType) {\n this._$handlers = {};\n return this;\n }\n\n if (handler) {\n if (_h[eventType as string]) {\n const newList = [];\n for (let i = 0, l = _h[eventType as string].length; i < l; i++) {\n if (_h[eventType as string][i].h !== handler) {\n newList.push(_h[eventType as string][i]);\n }\n }\n _h[eventType as string] = newList;\n }\n\n if (_h[eventType as string] && _h[eventType as string].length === 0) {\n delete _h[eventType as string];\n }\n }\n else {\n delete _h[eventType as string];\n }\n\n return this;\n }\n\n /**\n * Dispatch a event.\n *\n * @param {string} eventType The event name.\n */\n trigger(\n eventType: EvtNm,\n ...args: Parameters\n ): this {\n if (!this._$handlers) {\n return this;\n }\n\n const _h = this._$handlers[eventType as string];\n const eventProcessor = this._$eventProcessor;\n\n if (_h) {\n const argLen = args.length;\n\n const len = _h.length;\n for (let i = 0; i < len; i++) {\n const hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(eventType, hItem.query)\n ) {\n continue;\n }\n\n // Optimize advise from backbone\n switch (argLen) {\n case 0:\n hItem.h.call(hItem.ctx);\n break;\n case 1:\n hItem.h.call(hItem.ctx, args[0]);\n break;\n case 2:\n hItem.h.call(hItem.ctx, args[0], args[1]);\n break;\n default:\n // have more than 2 given arguments\n hItem.h.apply(hItem.ctx, args);\n break;\n }\n }\n }\n\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(eventType);\n\n return this;\n }\n\n /**\n * Dispatch a event with context, which is specified at the last parameter.\n *\n * @param {string} type The event name.\n */\n triggerWithContext(type: keyof EvtDef, ...args: any[]): this {\n if (!this._$handlers) {\n return this;\n }\n\n const _h = this._$handlers[type as string];\n const eventProcessor = this._$eventProcessor;\n\n if (_h) {\n const argLen = args.length;\n const ctx = args[argLen - 1];\n\n const len = _h.length;\n for (let i = 0; i < len; i++) {\n const hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(type, hItem.query)\n ) {\n continue;\n }\n\n // Optimize advise from backbone\n switch (argLen) {\n case 0:\n hItem.h.call(ctx);\n break;\n case 1:\n hItem.h.call(ctx, args[0]);\n break;\n case 2:\n hItem.h.call(ctx, args[0], args[1]);\n break;\n default:\n // have more than 2 given arguments\n hItem.h.apply(ctx, args.slice(1, argLen - 1));\n break;\n }\n }\n }\n\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(type);\n\n return this;\n }\n\n}\n", "/**\n * The algoritm is learnt from\n * https://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/\n * And we made some optimization for matrix inversion.\n * Other similar approaches:\n * \"cv::getPerspectiveTransform\", \"Direct Linear Transformation\".\n */\n\nconst LN2 = Math.log(2);\n\nfunction determinant(\n rows: number[][],\n rank: number,\n rowStart: number,\n rowMask: number,\n colMask: number,\n detCache: {[key: string]: number}\n) {\n const cacheKey = rowMask + '-' + colMask;\n const fullRank = rows.length;\n\n if (detCache.hasOwnProperty(cacheKey)) {\n return detCache[cacheKey];\n }\n\n if (rank === 1) {\n // In this case the colMask must be like: `11101111`. We can find the place of `0`.\n const colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);\n return rows[rowStart][colStart];\n }\n\n const subRowMask = rowMask | (1 << rowStart);\n let subRowStart = rowStart + 1;\n while (rowMask & (1 << subRowStart)) {\n subRowStart++;\n }\n\n let sum = 0;\n for (let j = 0, colLocalIdx = 0; j < fullRank; j++) {\n const colTag = 1 << j;\n if (!(colTag & colMask)) {\n sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]\n // det(subMatrix(0, j))\n * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);\n colLocalIdx++;\n }\n }\n\n detCache[cacheKey] = sum;\n\n return sum;\n}\n\n/**\n * Usage:\n * ```js\n * const transformer = buildTransformer(\n * [10, 44, 100, 44, 100, 300, 10, 300],\n * [50, 54, 130, 14, 140, 330, 14, 220]\n * );\n * const out = [];\n * transformer && transformer([11, 33], out);\n * ```\n *\n * Notice: `buildTransformer` may take more than 10ms in some Android device.\n *\n * @param src source four points, [x0, y0, x1, y1, x2, y2, x3, y3]\n * @param dest destination four points, [x0, y0, x1, y1, x2, y2, x3, y3]\n * @return transformer If fail, return null/undefined.\n */\nexport function buildTransformer(src: number[], dest: number[]) {\n const mA = [\n [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],\n [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],\n [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],\n [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],\n [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],\n [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],\n [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],\n [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]\n ];\n\n const detCache = {};\n const det = determinant(mA, 8, 0, 0, 0, detCache);\n if (det === 0) {\n // can not make transformer when and only when\n // any three of the markers are collinear.\n return;\n }\n\n // `invert(mA) * dest`, that is, `adj(mA) / det * dest`.\n const vh: number[] = [];\n for (let i = 0; i < 8; i++) {\n for (let j = 0; j < 8; j++) {\n vh[j] == null && (vh[j] = 0);\n vh[j] += ((i + j) % 2 ? -1 : 1)\n // det(subMatrix(i, j))\n * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)\n / det * dest[i];\n }\n }\n\n return function (out: number[], srcPointX: number, srcPointY: number) {\n const pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;\n out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;\n out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;\n };\n}\n", "\nimport env from './env';\nimport {buildTransformer} from './fourPointsTransform';\n\nconst EVENT_SAVED_PROP = '___zrEVENTSAVED';\nconst _calcOut: number[] = [];\n\ntype SavedInfo = {\n markers?: HTMLDivElement[]\n trans?: ReturnType\n invTrans?: ReturnType\n srcCoords?: number[]\n}\n\n/**\n * Transform \"local coord\" from `elFrom` to `elTarget`.\n * \"local coord\": the coord based on the input `el`. The origin point is at\n * the position of \"left: 0; top: 0;\" in the `el`.\n *\n * Support when CSS transform is used.\n *\n * Having the `out` (that is, `[outX, outY]`), we can create an DOM element\n * and set the CSS style as \"left: outX; top: outY;\" and append it to `elTarge`\n * to locate the element.\n *\n * For example, this code below positions a child of `document.body` on the event\n * point, no matter whether `body` has `margin`/`paddin`/`transfrom`/... :\n * ```js\n * transformLocalCoord(out, container, document.body, event.offsetX, event.offsetY);\n * if (!eqNaN(out[0])) {\n * // Then locate the tip element on the event point.\n * var tipEl = document.createElement('div');\n * tipEl.style.cssText = 'position: absolute; left:' + out[0] + ';top:' + out[1] + ';';\n * document.body.appendChild(tipEl);\n * }\n * ```\n *\n * Notice: In some env this method is not supported. If called, `out` will be `[NaN, NaN]`.\n *\n * @param {Array.} out [inX: number, inY: number] The output..\n * If can not transform, `out` will not be modified but return `false`.\n * @param {HTMLElement} elFrom The `[inX, inY]` is based on elFrom.\n * @param {HTMLElement} elTarget The `out` is based on elTarget.\n * @param {number} inX\n * @param {number} inY\n * @return {boolean} Whether transform successfully.\n */\nexport function transformLocalCoord(\n out: number[],\n elFrom: HTMLElement,\n elTarget: HTMLElement,\n inX: number,\n inY: number\n) {\n return transformCoordWithViewport(_calcOut, elFrom, inX, inY, true)\n && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]);\n}\n\n/**\n * Transform between a \"viewport coord\" and a \"local coord\".\n * \"viewport coord\": the coord based on the left-top corner of the viewport\n * of the browser.\n * \"local coord\": the coord based on the input `el`. The origin point is at\n * the position of \"left: 0; top: 0;\" in the `el`.\n *\n * Support the case when CSS transform is used on el.\n *\n * @param out [inX: number, inY: number] The output. If `inverse: false`,\n * it represents \"local coord\", otherwise \"vireport coord\".\n * If can not transform, `out` will not be modified but return `false`.\n * @param el The \"local coord\" is based on the `el`, see comment above.\n * @param inX If `inverse: false`,\n * it represents \"vireport coord\", otherwise \"local coord\".\n * @param inY If `inverse: false`,\n * it represents \"vireport coord\", otherwise \"local coord\".\n * @param inverse\n * `true`: from \"viewport coord\" to \"local coord\".\n * `false`: from \"local coord\" to \"viewport coord\".\n * @return {boolean} Whether transform successfully.\n */\nexport function transformCoordWithViewport(\n out: number[],\n el: HTMLElement,\n inX: number,\n inY: number,\n inverse?: boolean\n) {\n if (el.getBoundingClientRect && env.domSupported && !isCanvasEl(el)) {\n const saved = (el as any)[EVENT_SAVED_PROP] || ((el as any)[EVENT_SAVED_PROP] = {});\n const markers = prepareCoordMarkers(el, saved);\n const transformer = preparePointerTransformer(markers, saved, inverse);\n if (transformer) {\n transformer(out, inX, inY);\n return true;\n }\n }\n return false;\n}\n\nfunction prepareCoordMarkers(el: HTMLElement, saved: SavedInfo) {\n let markers = saved.markers;\n if (markers) {\n return markers;\n }\n\n markers = saved.markers = [];\n const propLR = ['left', 'right'];\n const propTB = ['top', 'bottom'];\n\n for (let i = 0; i < 4; i++) {\n const marker = document.createElement('div');\n const stl = marker.style;\n const idxLR = i % 2;\n const idxTB = (i >> 1) % 2;\n stl.cssText = [\n 'position: absolute',\n 'visibility: hidden',\n 'padding: 0',\n 'margin: 0',\n 'border-width: 0',\n 'user-select: none',\n 'width:0',\n 'height:0',\n // 'width: 5px',\n // 'height: 5px',\n propLR[idxLR] + ':0',\n propTB[idxTB] + ':0',\n propLR[1 - idxLR] + ':auto',\n propTB[1 - idxTB] + ':auto',\n ''\n ].join('!important;');\n el.appendChild(marker);\n markers.push(marker);\n }\n\n return markers;\n}\n\nfunction preparePointerTransformer(markers: HTMLDivElement[], saved: SavedInfo, inverse?: boolean) {\n const transformerName: 'invTrans' | 'trans' = inverse ? 'invTrans' : 'trans';\n const transformer = saved[transformerName];\n const oldSrcCoords = saved.srcCoords;\n const srcCoords = [];\n const destCoords = [];\n let oldCoordTheSame = true;\n\n for (let i = 0; i < 4; i++) {\n const rect = markers[i].getBoundingClientRect();\n const ii = 2 * i;\n const x = rect.left;\n const y = rect.top;\n srcCoords.push(x, y);\n oldCoordTheSame = oldCoordTheSame && oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];\n destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);\n }\n // Cache to avoid time consuming of `buildTransformer`.\n return (oldCoordTheSame && transformer)\n ? transformer\n : (\n saved.srcCoords = srcCoords,\n saved[transformerName] = inverse\n ? buildTransformer(destCoords, srcCoords)\n : buildTransformer(srcCoords, destCoords)\n );\n}\n\nexport function isCanvasEl(el: HTMLElement): el is HTMLCanvasElement {\n return el.nodeName.toUpperCase() === 'CANVAS';\n}\n", "/**\n * Utilities for mouse or touch events.\n */\n\nimport Eventful from './Eventful';\nimport env from './env';\nimport { ZRRawEvent } from './types';\nimport {isCanvasEl, transformCoordWithViewport} from './dom';\n\nconst isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;\n\nconst MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;\nconst _calcOut: number[] = [];\n\ntype FirefoxMouseEvent = {\n layerX: number\n layerY: number\n}\n\n\n/**\n * Get the `zrX` and `zrY`, which are relative to the top-left of\n * the input `el`.\n * CSS transform (2D & 3D) is supported.\n *\n * The strategy to fetch the coords:\n * + If `calculate` is not set as `true`, users of this method should\n * ensure that `el` is the same or the same size & location as `e.target`.\n * Otherwise the result coords are probably not expected. Because we\n * firstly try to get coords from e.offsetX/e.offsetY.\n * + If `calculate` is set as `true`, the input `el` can be any element\n * and we force to calculate the coords based on `el`.\n * + The input `el` should be positionable (not position:static).\n *\n * The force `calculate` can be used in case like:\n * When mousemove event triggered on ec tooltip, `e.target` is not `el`(zr painter.dom).\n *\n * @param el DOM element.\n * @param e Mouse event or touch event.\n * @param out Get `out.zrX` and `out.zrY` as the result.\n * @param calculate Whether to force calculate\n * the coordinates but not use ones provided by browser.\n */\nexport function clientToLocal(\n el: HTMLElement,\n e: ZRRawEvent | FirefoxMouseEvent | Touch,\n out: {zrX?: number, zrY?: number},\n calculate?: boolean\n) {\n out = out || {};\n\n // According to the W3C Working Draft, offsetX and offsetY should be relative\n // to the padding edge of the target element. The only browser using this convention\n // is IE. Webkit uses the border edge, Opera uses the content edge, and FireFox does\n // not support the properties.\n // (see http://www.jacklmoore.com/notes/mouse-position/)\n // In zr painter.dom, padding edge equals to border edge.\n\n if (calculate || !env.canvasSupported) {\n calculateZrXY(el, e as ZRRawEvent, out);\n }\n // Caution: In FireFox, layerX/layerY Mouse position relative to the closest positioned\n // ancestor element, so we should make sure el is positioned (e.g., not position:static).\n // BTW1, Webkit don't return the same results as FF in non-simple cases (like add\n // zoom-factor, overflow / opacity layers, transforms ...)\n // BTW2, (ev.offsetY || ev.pageY - $(ev.target).offset().top) is not correct in preserve-3d.\n // \n // BTW3, In ff, offsetX/offsetY is always 0.\n else if (env.browser.firefox\n && (e as FirefoxMouseEvent).layerX != null\n && (e as FirefoxMouseEvent).layerX !== (e as MouseEvent).offsetX\n ) {\n out.zrX = (e as FirefoxMouseEvent).layerX;\n out.zrY = (e as FirefoxMouseEvent).layerY;\n }\n // For IE6+, chrome, safari, opera. (When will ff support offsetX?)\n else if ((e as MouseEvent).offsetX != null) {\n out.zrX = (e as MouseEvent).offsetX;\n out.zrY = (e as MouseEvent).offsetY;\n }\n // For some other device, e.g., IOS safari.\n else {\n calculateZrXY(el, e as ZRRawEvent, out);\n }\n\n return out;\n}\n\nfunction calculateZrXY(\n el: HTMLElement,\n e: ZRRawEvent,\n out: {zrX?: number, zrY?: number}\n) {\n // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect.\n if (env.domSupported && el.getBoundingClientRect) {\n const ex = (e as MouseEvent).clientX;\n const ey = (e as MouseEvent).clientY;\n\n if (isCanvasEl(el)) {\n // Original approach, which do not support CSS transform.\n // marker can not be locationed in a canvas container\n // (getBoundingClientRect is always 0). We do not support\n // that input a pre-created canvas to zr while using css\n // transform in iOS.\n const box = el.getBoundingClientRect();\n out.zrX = ex - box.left;\n out.zrY = ey - box.top;\n return;\n }\n else {\n if (transformCoordWithViewport(_calcOut, el, ex, ey)) {\n out.zrX = _calcOut[0];\n out.zrY = _calcOut[1];\n return;\n }\n }\n }\n out.zrX = out.zrY = 0;\n}\n\n/**\n * Find native event compat for legency IE.\n * Should be called at the begining of a native event listener.\n *\n * @param e Mouse event or touch event or pointer event.\n * For lagency IE, we use `window.event` is used.\n * @return The native event.\n */\nexport function getNativeEvent(e: ZRRawEvent): ZRRawEvent {\n return e\n || (window.event as any); // For IE\n}\n\n/**\n * Normalize the coordinates of the input event.\n *\n * Get the `e.zrX` and `e.zrY`, which are relative to the top-left of\n * the input `el`.\n * Get `e.zrDelta` if using mouse wheel.\n * Get `e.which`, see the comment inside this function.\n *\n * Do not calculate repeatly if `zrX` and `zrY` already exist.\n *\n * Notice: see comments in `clientToLocal`. check the relationship\n * between the result coords and the parameters `el` and `calculate`.\n *\n * @param el DOM element.\n * @param e See `getNativeEvent`.\n * @param calculate Whether to force calculate\n * the coordinates but not use ones provided by browser.\n * @return The normalized native UIEvent.\n */\nexport function normalizeEvent(\n el: HTMLElement,\n e: ZRRawEvent,\n calculate?: boolean\n) {\n\n e = getNativeEvent(e);\n\n if (e.zrX != null) {\n return e;\n }\n\n const eventType = e.type;\n const isTouch = eventType && eventType.indexOf('touch') >= 0;\n\n if (!isTouch) {\n clientToLocal(el, e, e, calculate);\n const wheelDelta = getWheelDeltaMayPolyfill(e);\n // FIXME: IE8- has \"wheelDeta\" in event \"mousewheel\" but hat different value (120 times)\n // with Chrome and Safari. It's not correct for zrender event but we left it as it was.\n e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;\n }\n else {\n const touch = eventType !== 'touchend'\n ? (e).targetTouches[0]\n : (e).changedTouches[0];\n touch && clientToLocal(el, touch, e, calculate);\n }\n\n // Add which for click: 1 === left; 2 === middle; 3 === right; otherwise: 0;\n // See jQuery: https://github.com/jquery/jquery/blob/master/src/event.js\n // If e.which has been defined, it may be readonly,\n // see: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which\n const button = (e).button;\n if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {\n (e as any).which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));\n }\n // [Caution]: `e.which` from browser is not always reliable. For example,\n // when press left button and `mousemove (pointermove)` in Edge, the `e.which`\n // is 65536 and the `e.button` is -1. But the `mouseup (pointerup)` and\n // `mousedown (pointerdown)` is the same as Chrome does.\n\n return e;\n}\n\n// TODO: also provide prop \"deltaX\" \"deltaY\" in zrender \"mousewheel\" event.\nfunction getWheelDeltaMayPolyfill(e: ZRRawEvent): number {\n // Although event \"wheel\" do not has the prop \"wheelDelta\" in spec,\n // agent like Chrome and Safari still provide \"wheelDelta\" like\n // event \"mousewheel\" did (perhaps for backward compat).\n // Since zrender has been using \"wheelDeta\" in zrender event \"mousewheel\".\n // we currently do not break it.\n // But event \"wheel\" in firefox do not has \"wheelDelta\", so we calculate\n // \"wheelDeta\" from \"deltaX\", \"deltaY\" (which is the props in spec).\n\n const rawWheelDelta = (e as any).wheelDelta;\n // Theroetically `e.wheelDelta` won't be 0 unless some day it has been deprecated\n // by agent like Chrome or Safari. So we also calculate it if rawWheelDelta is 0.\n if (rawWheelDelta) {\n return rawWheelDelta;\n }\n\n const deltaX = (e as any).deltaX;\n const deltaY = (e as any).deltaY;\n if (deltaX == null || deltaY == null) {\n return rawWheelDelta;\n }\n\n // Test in Chrome and Safari (MacOS):\n // The sign is corrent.\n // The abs value is 99% corrent (inconsist case only like 62~63, 125~126 ...)\n const delta = deltaY !== 0 ? Math.abs(deltaY) : Math.abs(deltaX);\n const sign = deltaY > 0 ? -1\n : deltaY < 0 ? 1\n : deltaX > 0 ? -1\n : 1;\n return 3 * delta * sign;\n}\n\n\ntype AddEventListenerParams = Parameters\ntype RemoveEventListenerParams = Parameters\n/**\n * @param el\n * @param name\n * @param handler\n * @param opt If boolean, means `opt.capture`\n * @param opt.capture\n * @param opt.passive\n */\nexport function addEventListener(\n el: HTMLElement | HTMLDocument,\n name: AddEventListenerParams[0],\n handler: AddEventListenerParams[1],\n opt?: AddEventListenerParams[2]\n) {\n if (isDomLevel2) {\n // Reproduct the console warning:\n // [Violation] Added non-passive event listener to a scroll-blocking event.\n // Consider marking event handler as 'passive' to make the page more responsive.\n // Just set console log level: verbose in chrome dev tool.\n // then the warning log will be printed when addEventListener called.\n // See https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n // We have not yet found a neat way to using passive. Because in zrender the dom event\n // listener delegate all of the upper events of element. Some of those events need\n // to prevent default. For example, the feature `preventDefaultMouseMove` of echarts.\n // Before passive can be adopted, these issues should be considered:\n // (1) Whether and how a zrender user specifies an event listener passive. And by default,\n // passive or not.\n // (2) How to tread that some zrender event listener is passive, and some is not. If\n // we use other way but not preventDefault of mousewheel and touchmove, browser\n // compatibility should be handled.\n\n // const opts = (env.passiveSupported && name === 'mousewheel')\n // ? {passive: true}\n // // By default, the third param of el.addEventListener is `capture: false`.\n // : void 0;\n // el.addEventListener(name, handler /* , opts */);\n el.addEventListener(name, handler, opt);\n }\n else {\n // For simplicity, do not implement `setCapture` for IE9-.\n (el as any).attachEvent('on' + name, handler);\n }\n}\n\n/**\n * Parameter are the same as `addEventListener`.\n *\n * Notice that if a listener is registered twice, one with capture and one without,\n * remove each one separately. Removal of a capturing listener does not affect a\n * non-capturing version of the same listener, and vice versa.\n */\nexport function removeEventListener(\n el: HTMLElement | HTMLDocument,\n name: RemoveEventListenerParams[0],\n handler: RemoveEventListenerParams[1],\n opt: RemoveEventListenerParams[2]\n) {\n if (isDomLevel2) {\n el.removeEventListener(name, handler, opt);\n }\n else {\n (el as any).detachEvent('on' + name, handler);\n }\n}\n\n/**\n * preventDefault and stopPropagation.\n * Notice: do not use this method in zrender. It can only be\n * used by upper applications if necessary.\n *\n * @param {Event} e A mouse or touch event.\n */\nexport const stop = isDomLevel2\n ? function (e: MouseEvent | TouchEvent | PointerEvent) {\n e.preventDefault();\n e.stopPropagation();\n e.cancelBubble = true;\n }\n : function (e: MouseEvent | TouchEvent | PointerEvent) {\n e.returnValue = false;\n e.cancelBubble = true;\n };\n\n/**\n * This method only works for mouseup and mousedown. The functionality is restricted\n * for fault tolerance, See the `e.which` compatibility above.\n *\n * params can be MouseEvent or ElementEvent\n */\nexport function isMiddleOrRightButtonOnMouseUpDown(e: { which: number }) {\n return e.which === 2 || e.which === 3;\n}\n\n/**\n * To be removed.\n * @deprecated\n */\nexport function notLeftMouse(e: MouseEvent) {\n // If e.which is undefined, considered as left mouse event.\n return e.which > 1;\n}\n\n\n// For backward compatibility\nexport {Eventful as Dispatcher};\n", "/**\n * Only implements needed gestures for mobile.\n */\n\nimport * as eventUtil from './event';\nimport { ZRRawTouchEvent, ZRPinchEvent, Dictionary } from './types';\nimport Displayable from '../graphic/Displayable';\n\ninterface TrackItem {\n points: number[][]\n touches: Touch[]\n target: Displayable,\n event: ZRRawTouchEvent\n}\n\nexport class GestureMgr {\n\n private _track: TrackItem[] = []\n\n constructor() {}\n\n recognize(event: ZRRawTouchEvent, target: Displayable, root: HTMLElement) {\n this._doTrack(event, target, root);\n return this._recognize(event);\n }\n\n clear() {\n this._track.length = 0;\n return this;\n }\n\n _doTrack(event: ZRRawTouchEvent, target: Displayable, root: HTMLElement) {\n const touches = event.touches;\n\n if (!touches) {\n return;\n }\n\n const trackItem: TrackItem = {\n points: [],\n touches: [],\n target: target,\n event: event\n };\n\n for (let i = 0, len = touches.length; i < len; i++) {\n const touch = touches[i];\n const pos = eventUtil.clientToLocal(root, touch, {});\n trackItem.points.push([pos.zrX, pos.zrY]);\n trackItem.touches.push(touch);\n }\n\n this._track.push(trackItem);\n }\n\n _recognize(event: ZRRawTouchEvent) {\n for (let eventName in recognizers) {\n if (recognizers.hasOwnProperty(eventName)) {\n const gestureInfo = recognizers[eventName](this._track, event);\n if (gestureInfo) {\n return gestureInfo;\n }\n }\n }\n }\n}\n\nfunction dist(pointPair: number[][]): number {\n const dx = pointPair[1][0] - pointPair[0][0];\n const dy = pointPair[1][1] - pointPair[0][1];\n\n return Math.sqrt(dx * dx + dy * dy);\n}\n\nfunction center(pointPair: number[][]): number[] {\n return [\n (pointPair[0][0] + pointPair[1][0]) / 2,\n (pointPair[0][1] + pointPair[1][1]) / 2\n ];\n}\n\ntype Recognizer = (tracks: TrackItem[], event: ZRRawTouchEvent) => {\n type: string\n target: Displayable\n event: ZRRawTouchEvent\n}\n\nconst recognizers: Dictionary = {\n\n pinch: function (tracks: TrackItem[], event: ZRRawTouchEvent) {\n const trackLen = tracks.length;\n\n if (!trackLen) {\n return;\n }\n\n const pinchEnd = (tracks[trackLen - 1] || {}).points;\n const pinchPre = (tracks[trackLen - 2] || {}).points || pinchEnd;\n\n if (pinchPre\n && pinchPre.length > 1\n && pinchEnd\n && pinchEnd.length > 1\n ) {\n let pinchScale = dist(pinchEnd) / dist(pinchPre);\n !isFinite(pinchScale) && (pinchScale = 1);\n\n (event as ZRPinchEvent).pinchScale = pinchScale;\n\n const pinchCenter = center(pinchEnd);\n (event as ZRPinchEvent).pinchX = pinchCenter[0];\n (event as ZRPinchEvent).pinchY = pinchCenter[1];\n\n return {\n type: 'pinch',\n target: tracks[0].target,\n event: event\n };\n }\n }\n\n // Only pinch currently.\n};", "import * as util from './core/util';\nimport * as vec2 from './core/vector';\nimport Draggable from './mixin/Draggable';\nimport Eventful from './core/Eventful';\nimport * as eventTool from './core/event';\nimport {GestureMgr} from './core/GestureMgr';\nimport Displayable from './graphic/Displayable';\nimport {PainterBase} from './PainterBase';\nimport HandlerDomProxy, { HandlerProxyInterface } from './dom/HandlerProxy';\nimport { ZRRawEvent, ZRPinchEvent, ElementEventName, ElementEventNameWithOn, ZRRawTouchEvent } from './core/types';\nimport Storage from './Storage';\nimport Element, {ElementEvent} from './Element';\nimport CanvasPainter from './canvas/Painter';\n\n\n/**\n * [The interface between `Handler` and `HandlerProxy`]:\n *\n * The default `HandlerProxy` only support the common standard web environment\n * (e.g., standalone browser, headless browser, embed browser in mobild APP, ...).\n * But `HandlerProxy` can be replaced to support more non-standard environment\n * (e.g., mini app), or to support more feature that the default `HandlerProxy`\n * not provided (like echarts-gl did).\n * So the interface between `Handler` and `HandlerProxy` should be stable. Do not\n * make break changes util inevitable. The interface include the public methods\n * of `Handler` and the events listed in `handlerNames` below, by which `HandlerProxy`\n * drives `Handler`.\n */\n\n/**\n * [DRAG_OUTSIDE]:\n *\n * That is, triggering `mousemove` and `mouseup` event when the pointer is out of the\n * zrender area when dragging. That is important for the improvement of the user experience\n * when dragging something near the boundary without being terminated unexpectedly.\n *\n * We originally consider to introduce new events like `pagemovemove` and `pagemouseup`\n * to resolve this issue. But some drawbacks of it is described in\n * https://github.com/ecomfe/zrender/pull/536#issuecomment-560286899\n *\n * Instead, we referenced the specifications:\n * https://www.w3.org/TR/touch-events/#the-touchmove-event\n * https://www.w3.org/TR/2014/WD-DOM-Level-3-Events-20140925/#event-type-mousemove\n * where the the mousemove/touchmove can be continue to fire if the user began a drag\n * operation and the pointer has left the boundary. (for the mouse event, browsers\n * only do it on `document` and when the pointer has left the boundary of the browser.)\n *\n * So the default `HandlerProxy` supports this feature similarly: if it is in the dragging\n * state (see `pointerCapture` in `HandlerProxy`), the `mousemove` and `mouseup` continue\n * to fire until release the pointer. That is implemented by listen to those event on\n * `document`.\n * If we implement some other `HandlerProxy` only for touch device, that would be easier.\n * The touch event support this feature by default.\n * The term \"pointer capture\" is from the spec:\n * https://www.w3.org/TR/pointerevents2/#idl-def-element-setpointercapture-pointerid\n *\n * Note:\n * There might be some cases that the mouse event can not be received on `document`.\n * For example,\n * (A) When `useCapture` is not supported and some user defined event listeners on the ancestor\n * of zr dom throw Error.\n * (B) When `useCapture` is not supported and some user defined event listeners on the ancestor of\n * zr dom call `stopPropagation`.\n * In these cases, the `mousemove` event might be keep triggering event when the mouse is released.\n * We try to reduce the side-effect in those cases, that is, use `isOutsideBoundary` to prevent\n * it from do anything (especially, `findHover`).\n * (`useCapture` mean, `addEvnetListener(listener, {capture: true})`, althought it may not be\n * suppported in some environments.)\n *\n * Note:\n * If `HandlerProxy` listens to `document` with `useCapture`, `HandlerProxy` needs to\n * prevent user-registered-handler from calling `stopPropagation` and `preventDefault`\n * when the `event.target` is not a zrender dom element. Otherwise the user-registered-handler\n * may be able to prevent other elements (that not relevant to zrender) in the web page from receiving\n * dom events.\n */\n\nconst SILENT = 'silent';\n\nfunction makeEventPacket(eveType: ElementEventName, targetInfo: {\n target?: Element\n topTarget?: Element\n}, event: ZRRawEvent): ElementEvent {\n return {\n type: eveType,\n event: event,\n // target can only be an element that is not silent.\n target: targetInfo.target,\n // topTarget can be a silent element.\n topTarget: targetInfo.topTarget,\n cancelBubble: false,\n offsetX: event.zrX,\n offsetY: event.zrY,\n gestureEvent: (event as ZRPinchEvent).gestureEvent,\n pinchX: (event as ZRPinchEvent).pinchX,\n pinchY: (event as ZRPinchEvent).pinchY,\n pinchScale: (event as ZRPinchEvent).pinchScale,\n wheelDelta: event.zrDelta,\n zrByTouch: event.zrByTouch,\n which: event.which,\n stop: stopEvent\n };\n}\n\nfunction stopEvent(this: ElementEvent) {\n eventTool.stop(this.event);\n}\n\nclass EmptyProxy extends Eventful {\n handler: Handler = null\n dispose() {}\n setCursor() {}\n}\n\nclass HoveredResult {\n x: number\n y: number\n target: Displayable\n topTarget: Displayable\n constructor(x?: number, y?: number) {\n this.x = x;\n this.y = y;\n }\n}\n\nconst handlerNames = [\n 'click', 'dblclick', 'mousewheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n];\n\ntype HandlerName = 'click' |'dblclick' |'mousewheel' |'mouseout' |\n 'mouseup' |'mousedown' |'mousemove' |'contextmenu';\n\n\n// TODO draggable\nclass Handler extends Eventful {\n\n storage: Storage\n painter: PainterBase\n painterRoot: HTMLElement\n\n proxy: HandlerProxyInterface\n\n private _hovered = new HoveredResult(0, 0)\n\n private _gestureMgr: GestureMgr\n\n private _draggingMgr: Draggable\n\n _downEl: Element\n _upEl: Element\n _downPoint: [number, number]\n\n constructor(\n storage: Storage,\n painter: PainterBase,\n proxy: HandlerProxyInterface,\n painterRoot: HTMLElement\n ) {\n super();\n\n this.storage = storage;\n\n this.painter = painter;\n\n this.painterRoot = painterRoot;\n\n proxy = proxy || new EmptyProxy();\n\n /**\n * Proxy of event. can be Dom, WebGLSurface, etc.\n */\n this.proxy = null;\n\n this.setHandlerProxy(proxy);\n\n this._draggingMgr = new Draggable(this);\n }\n\n setHandlerProxy(proxy: HandlerProxyInterface) {\n if (this.proxy) {\n this.proxy.dispose();\n }\n\n if (proxy) {\n util.each(handlerNames, function (name) {\n proxy.on && proxy.on(name, this[name as HandlerName], this);\n }, this);\n // Attach handler\n proxy.handler = this;\n }\n this.proxy = proxy;\n }\n\n mousemove(event: ZRRawEvent) {\n const x = event.zrX;\n const y = event.zrY;\n\n const isOutside = isOutsideBoundary(this, x, y);\n\n let lastHovered = this._hovered;\n let lastHoveredTarget = lastHovered.target;\n\n // If lastHoveredTarget is removed from zr (detected by '__zr') by some API call\n // (like 'setOption' or 'dispatchAction') in event handlers, we should find\n // lastHovered again here. Otherwise 'mouseout' can not be triggered normally.\n // See #6198.\n if (lastHoveredTarget && !lastHoveredTarget.__zr) {\n lastHovered = this.findHover(lastHovered.x, lastHovered.y);\n lastHoveredTarget = lastHovered.target;\n }\n\n const hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);\n const hoveredTarget = hovered.target;\n\n const proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');\n\n // Mouse out on previous hovered element\n if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(lastHovered, 'mouseout', event);\n }\n\n // Mouse moving on one element\n this.dispatchToElement(hovered, 'mousemove', event);\n\n // Mouse over on a new element\n if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(hovered, 'mouseover', event);\n }\n }\n\n mouseout(event: ZRRawEvent) {\n const eventControl = event.zrEventControl;\n\n if (eventControl !== 'only_globalout') {\n this.dispatchToElement(this._hovered, 'mouseout', event);\n }\n\n if (eventControl !== 'no_globalout') {\n // FIXME: if the pointer moving from the extra doms to realy \"outside\",\n // the `globalout` should have been triggered. But currently not.\n this.trigger('globalout', {type: 'globalout', event: event});\n }\n }\n\n /**\n * Resize\n */\n resize() {\n this._hovered = new HoveredResult(0, 0);\n }\n\n /**\n * Dispatch event\n */\n dispatch(eventName: HandlerName, eventArgs?: any) {\n const handler = this[eventName];\n handler && handler.call(this, eventArgs);\n }\n\n /**\n * Dispose\n */\n dispose() {\n\n this.proxy.dispose();\n\n this.storage = null;\n this.proxy = null;\n this.painter = null;\n }\n\n /**\n * \u8BBE\u7F6E\u9ED8\u8BA4\u7684cursor style\n * @param cursorStyle \u4F8B\u5982 crosshair\uFF0C\u9ED8\u8BA4\u4E3A 'default'\n */\n setCursorStyle(cursorStyle: string) {\n const proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(cursorStyle);\n }\n\n /**\n * \u4E8B\u4EF6\u5206\u53D1\u4EE3\u7406\n *\n * @private\n * @param {Object} targetInfo {target, topTarget} \u76EE\u6807\u56FE\u5F62\u5143\u7D20\n * @param {string} eventName \u4E8B\u4EF6\u540D\u79F0\n * @param {Object} event \u4E8B\u4EF6\u5BF9\u8C61\n */\n dispatchToElement(targetInfo: {\n target?: Element\n topTarget?: Element\n }, eventName: ElementEventName, event: ZRRawEvent) {\n\n targetInfo = targetInfo || {};\n\n let el = targetInfo.target as Element;\n if (el && el.silent) {\n return;\n }\n const eventKey = ('on' + eventName) as ElementEventNameWithOn;\n const eventPacket = makeEventPacket(eventName, targetInfo, event);\n\n while (el) {\n el[eventKey]\n && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket));\n\n el.trigger(eventName, eventPacket);\n\n // Bubble to the host if on the textContent.\n // PENDING\n el = el.__hostTarget ? el.__hostTarget : el.parent;\n\n if (eventPacket.cancelBubble) {\n break;\n }\n }\n\n if (!eventPacket.cancelBubble) {\n // \u5192\u6CE1\u5230\u9876\u7EA7 zrender \u5BF9\u8C61\n this.trigger(eventName, eventPacket);\n // \u5206\u53D1\u4E8B\u4EF6\u5230\u7528\u6237\u81EA\u5B9A\u4E49\u5C42\n // \u7528\u6237\u6709\u53EF\u80FD\u5728\u5168\u5C40 click \u4E8B\u4EF6\u4E2D dispose\uFF0C\u6240\u4EE5\u9700\u8981\u5224\u65AD\u4E0B painter \u662F\u5426\u5B58\u5728\n if (this.painter && (this.painter as CanvasPainter).eachOtherLayer) {\n (this.painter as CanvasPainter).eachOtherLayer(function (layer) {\n if (typeof (layer[eventKey]) === 'function') {\n layer[eventKey].call(layer, eventPacket);\n }\n if (layer.trigger) {\n layer.trigger(eventName, eventPacket);\n }\n });\n }\n }\n }\n\n findHover(x: number, y: number, exclude?: Displayable): HoveredResult {\n const list = this.storage.getDisplayList();\n const out = new HoveredResult(x, y);\n\n for (let i = list.length - 1; i >= 0; i--) {\n let hoverCheckResult;\n if (list[i] !== exclude\n // getDisplayList may include ignored item in VML mode\n && !list[i].ignore\n && (hoverCheckResult = isHover(list[i], x, y))\n ) {\n !out.topTarget && (out.topTarget = list[i]);\n if (hoverCheckResult !== SILENT) {\n out.target = list[i];\n break;\n }\n }\n }\n\n return out;\n }\n\n processGesture(event: ZRRawEvent, stage?: 'start' | 'end' | 'change') {\n if (!this._gestureMgr) {\n this._gestureMgr = new GestureMgr();\n }\n const gestureMgr = this._gestureMgr;\n\n stage === 'start' && gestureMgr.clear();\n\n const gestureInfo = gestureMgr.recognize(\n event as ZRRawTouchEvent,\n this.findHover(event.zrX, event.zrY, null).target,\n (this.proxy as HandlerDomProxy).dom\n );\n\n stage === 'end' && gestureMgr.clear();\n\n // Do not do any preventDefault here. Upper application do that if necessary.\n if (gestureInfo) {\n const type = gestureInfo.type;\n (event as ZRPinchEvent).gestureEvent = type;\n\n let res = new HoveredResult();\n res.target = gestureInfo.target;\n this.dispatchToElement(res, type as ElementEventName, gestureInfo.event as ZRRawEvent);\n }\n }\n\n click: (event: ZRRawEvent) => void\n mousedown: (event: ZRRawEvent) => void\n mouseup: (event: ZRRawEvent) => void\n mousewheel: (event: ZRRawEvent) => void\n dblclick: (event: ZRRawEvent) => void\n contextmenu: (event: ZRRawEvent) => void\n}\n\n// Common handlers\nutil.each(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name: HandlerName) {\n Handler.prototype[name] = function (event) {\n const x = event.zrX;\n const y = event.zrY;\n const isOutside = isOutsideBoundary(this, x, y);\n\n let hovered;\n let hoveredTarget;\n\n if (name !== 'mouseup' || !isOutside) {\n // Find hover again to avoid click event is dispatched manually. Or click is triggered without mouseover\n hovered = this.findHover(x, y);\n hoveredTarget = hovered.target;\n }\n\n if (name === 'mousedown') {\n this._downEl = hoveredTarget;\n this._downPoint = [event.zrX, event.zrY];\n // In case click triggered before mouseup\n this._upEl = hoveredTarget;\n }\n else if (name === 'mouseup') {\n this._upEl = hoveredTarget;\n }\n else if (name === 'click') {\n if (this._downEl !== this._upEl\n // Original click event is triggered on the whole canvas element,\n // including the case that `mousedown` - `mousemove` - `mouseup`,\n // which should be filtered, otherwise it will bring trouble to\n // pan and zoom.\n || !this._downPoint\n // Arbitrary value\n || vec2.dist(this._downPoint, [event.zrX, event.zrY]) > 4\n ) {\n return;\n }\n this._downPoint = null;\n }\n\n this.dispatchToElement(hovered, name, event);\n };\n});\n\nfunction isHover(displayable: Displayable, x: number, y: number) {\n if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {\n let el: Element = displayable;\n let isSilent;\n let ignoreClip = false;\n while (el) {\n // Ignore clip on any ancestors.\n if (el.ignoreClip) {\n ignoreClip = true;\n }\n if (!ignoreClip) {\n let clipPath = el.getClipPath();\n // If clipped by ancestor.\n // FIXME: If clipPath has neither stroke nor fill,\n // el.clipPath.contain(x, y) will always return false.\n if (clipPath && !clipPath.contain(x, y)) {\n return false;\n }\n if (el.silent) {\n isSilent = true;\n }\n }\n // Consider when el is textContent, also need to be silent\n // if any of its host el and its ancestors is silent.\n const hostEl = el.__hostTarget;\n el = hostEl ? hostEl : el.parent;\n }\n return isSilent ? SILENT : true;\n }\n\n return false;\n}\n\n/**\n * See [DRAG_OUTSIDE].\n */\nfunction isOutsideBoundary(handlerInstance: Handler, x: number, y: number) {\n const painter = handlerInstance.painter;\n return x < 0 || x > painter.getWidth() || y < 0 || y > painter.getHeight();\n}\n\nexport default Handler;\n", "// https://github.com/mziccard/node-timsort\nconst DEFAULT_MIN_MERGE = 32;\n\nconst DEFAULT_MIN_GALLOPING = 7;\n\nconst DEFAULT_TMP_STORAGE_LENGTH = 256;\n\ntype CompareFunc =(a: T, b: T) => number\n\nfunction minRunLength(n: number): number {\n var r = 0;\n\n while (n >= DEFAULT_MIN_MERGE) {\n r |= n & 1;\n n >>= 1;\n }\n\n return n + r;\n}\n\nfunction makeAscendingRun(array: T[], lo: number, hi: number, compare: CompareFunc) {\n var runHi = lo + 1;\n\n if (runHi === hi) {\n return 1;\n }\n\n if (compare(array[runHi++], array[lo]) < 0) {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n runHi++;\n }\n\n reverseRun(array, lo, runHi);\n }\n else {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n runHi++;\n }\n }\n\n return runHi - lo;\n}\n\nfunction reverseRun(array: T[], lo: number, hi: number) {\n hi--;\n\n while (lo < hi) {\n var t = array[lo];\n array[lo++] = array[hi];\n array[hi--] = t;\n }\n}\n\nfunction binaryInsertionSort(array: T[], lo: number, hi: number, start: number, compare: CompareFunc) {\n if (start === lo) {\n start++;\n }\n\n for (; start < hi; start++) {\n var pivot = array[start];\n\n var left = lo;\n var right = start;\n var mid;\n\n while (left < right) {\n mid = left + right >>> 1;\n\n if (compare(pivot, array[mid]) < 0) {\n right = mid;\n }\n else {\n left = mid + 1;\n }\n }\n\n var n = start - left;\n\n switch (n) {\n case 3:\n array[left + 3] = array[left + 2];\n\n case 2:\n array[left + 2] = array[left + 1];\n\n case 1:\n array[left + 1] = array[left];\n break;\n default:\n while (n > 0) {\n array[left + n] = array[left + n - 1];\n n--;\n }\n }\n\n array[left] = pivot;\n }\n}\n\nfunction gallopLeft(value: T, array: T[], start: number, length: number, hint: number, compare: CompareFunc) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n\n if (compare(value, array[start + hint]) > 0) {\n maxOffset = length - hint;\n\n while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n lastOffset += hint;\n offset += hint;\n }\n else {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n\n if (compare(value, array[start + m]) > 0) {\n lastOffset = m + 1;\n }\n else {\n offset = m;\n }\n }\n return offset;\n}\n\nfunction gallopRight(value: T, array: T[], start: number, length: number, hint: number, compare: CompareFunc) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n\n if (compare(value, array[start + hint]) < 0) {\n maxOffset = hint + 1;\n\n while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n else {\n maxOffset = length - hint;\n\n while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n\n lastOffset += hint;\n offset += hint;\n }\n\n lastOffset++;\n\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n\n if (compare(value, array[start + m]) < 0) {\n offset = m;\n }\n else {\n lastOffset = m + 1;\n }\n }\n\n return offset;\n}\n\nfunction TimSort(array: T[], compare: CompareFunc) {\n let minGallop = DEFAULT_MIN_GALLOPING;\n let length = 0;\n let tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n let stackLength = 0;\n let runStart: number[];\n let runLength: number[];\n let stackSize = 0;\n\n length = array.length;\n\n if (length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n tmpStorageLength = length >>> 1;\n }\n\n var tmp: T[] = [];\n\n stackLength = length < 120 ? 5 : length < 1542 ? 10 : length < 119151 ? 19 : 40;\n\n runStart = [];\n runLength = [];\n\n function pushRun(_runStart: number, _runLength: number) {\n runStart[stackSize] = _runStart;\n runLength[stackSize] = _runLength;\n stackSize += 1;\n }\n\n function mergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n\n if (\n (n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1])\n || (n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1])\n ) {\n if (runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n }\n else if (runLength[n] > runLength[n + 1]) {\n break;\n }\n mergeAt(n);\n }\n }\n\n function forceMergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n\n if (n > 0 && runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n\n mergeAt(n);\n }\n }\n\n function mergeAt(i: number) {\n var start1 = runStart[i];\n var length1 = runLength[i];\n var start2 = runStart[i + 1];\n var length2 = runLength[i + 1];\n\n runLength[i] = length1 + length2;\n\n if (i === stackSize - 3) {\n runStart[i + 1] = runStart[i + 2];\n runLength[i + 1] = runLength[i + 2];\n }\n\n stackSize--;\n\n var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n start1 += k;\n length1 -= k;\n\n if (length1 === 0) {\n return;\n }\n\n length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n\n if (length2 === 0) {\n return;\n }\n\n if (length1 <= length2) {\n mergeLow(start1, length1, start2, length2);\n }\n else {\n mergeHigh(start1, length1, start2, length2);\n }\n }\n\n function mergeLow(start1: number, length1: number, start2: number, length2: number) {\n var i = 0;\n\n for (i = 0; i < length1; i++) {\n tmp[i] = array[start1 + i];\n }\n\n var cursor1 = 0;\n var cursor2 = start2;\n var dest = start1;\n\n array[dest++] = array[cursor2++];\n\n if (--length2 === 0) {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n return;\n }\n\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n return;\n }\n\n var _minGallop = minGallop;\n var count1;\n var count2;\n var exit;\n\n while (1) {\n count1 = 0;\n count2 = 0;\n exit = false;\n\n do {\n if (compare(array[cursor2], tmp[cursor1]) < 0) {\n array[dest++] = array[cursor2++];\n count2++;\n count1 = 0;\n\n if (--length2 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest++] = tmp[cursor1++];\n count1++;\n count2 = 0;\n if (--length1 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n\n if (exit) {\n break;\n }\n\n do {\n count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n\n if (count1 !== 0) {\n for (i = 0; i < count1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n\n dest += count1;\n cursor1 += count1;\n length1 -= count1;\n if (length1 <= 1) {\n exit = true;\n break;\n }\n }\n\n array[dest++] = array[cursor2++];\n\n if (--length2 === 0) {\n exit = true;\n break;\n }\n\n count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n\n if (count2 !== 0) {\n for (i = 0; i < count2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n\n dest += count2;\n cursor2 += count2;\n length2 -= count2;\n\n if (length2 === 0) {\n exit = true;\n break;\n }\n }\n array[dest++] = tmp[cursor1++];\n\n if (--length1 === 1) {\n exit = true;\n break;\n }\n\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n if (exit) {\n break;\n }\n\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n\n _minGallop += 2;\n }\n\n minGallop = _minGallop;\n\n minGallop < 1 && (minGallop = 1);\n\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n }\n else if (length1 === 0) {\n throw new Error();\n // throw new Error('mergeLow preconditions were not respected');\n }\n else {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n }\n }\n\n function mergeHigh(start1: number, length1: number, start2: number, length2: number) {\n var i = 0;\n\n for (i = 0; i < length2; i++) {\n tmp[i] = array[start2 + i];\n }\n\n var cursor1 = start1 + length1 - 1;\n var cursor2 = length2 - 1;\n var dest = start2 + length2 - 1;\n var customCursor = 0;\n var customDest = 0;\n\n array[dest--] = array[cursor1--];\n\n if (--length1 === 0) {\n customCursor = dest - (length2 - 1);\n\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n\n return;\n }\n\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n array[dest] = tmp[cursor2];\n return;\n }\n\n var _minGallop = minGallop;\n\n while (true) {\n var count1 = 0;\n var count2 = 0;\n var exit = false;\n\n do {\n if (compare(tmp[cursor2], array[cursor1]) < 0) {\n array[dest--] = array[cursor1--];\n count1++;\n count2 = 0;\n if (--length1 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest--] = tmp[cursor2--];\n count2++;\n count1 = 0;\n if (--length2 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n\n if (exit) {\n break;\n }\n\n do {\n count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n\n if (count1 !== 0) {\n dest -= count1;\n cursor1 -= count1;\n length1 -= count1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = count1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n if (length1 === 0) {\n exit = true;\n break;\n }\n }\n\n array[dest--] = tmp[cursor2--];\n\n if (--length2 === 1) {\n exit = true;\n break;\n }\n\n count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n\n if (count2 !== 0) {\n dest -= count2;\n cursor2 -= count2;\n length2 -= count2;\n customDest = dest + 1;\n customCursor = cursor2 + 1;\n\n for (i = 0; i < count2; i++) {\n array[customDest + i] = tmp[customCursor + i];\n }\n\n if (length2 <= 1) {\n exit = true;\n break;\n }\n }\n\n array[dest--] = array[cursor1--];\n\n if (--length1 === 0) {\n exit = true;\n break;\n }\n\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n\n if (exit) {\n break;\n }\n\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n\n _minGallop += 2;\n }\n\n minGallop = _minGallop;\n\n if (minGallop < 1) {\n minGallop = 1;\n }\n\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n\n array[dest] = tmp[cursor2];\n }\n else if (length2 === 0) {\n throw new Error();\n // throw new Error('mergeHigh preconditions were not respected');\n }\n else {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n }\n }\n\n return {\n mergeRuns,\n forceMergeRuns,\n pushRun\n };\n}\n\nexport default function sort(\n array: T[],\n compare: CompareFunc,\n lo?: number, hi?: number\n) {\n if (!lo) {\n lo = 0;\n }\n if (!hi) {\n hi = array.length;\n }\n\n var remaining = hi - lo;\n\n if (remaining < 2) {\n return;\n }\n\n var runLength = 0;\n\n if (remaining < DEFAULT_MIN_MERGE) {\n runLength = makeAscendingRun(array, lo, hi, compare);\n binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n return;\n }\n\n var ts = TimSort(array, compare);\n\n var minRun = minRunLength(remaining);\n\n do {\n runLength = makeAscendingRun(array, lo, hi, compare);\n if (runLength < minRun) {\n var force = remaining;\n if (force > minRun) {\n force = minRun;\n }\n\n binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n runLength = force;\n }\n\n ts.pushRun(lo, runLength);\n ts.mergeRuns();\n\n remaining -= runLength;\n lo += runLength;\n } while (remaining !== 0);\n\n ts.forceMergeRuns();\n}\n", "// Bit masks to check which parts of element needs to be updated.\nexport const REDARAW_BIT = 1;\nexport const STYLE_CHANGED_BIT = 2;\nexport const SHAPE_CHANGED_BIT = 4;\n", "import * as util from './core/util';\nimport env from './core/env';\nimport Group, { GroupLike } from './graphic/Group';\nimport Element from './Element';\n\n// Use timsort because in most case elements are partially sorted\n// https://jsfiddle.net/pissang/jr4x7mdm/8/\nimport timsort from './core/timsort';\nimport Displayable from './graphic/Displayable';\nimport Path from './graphic/Path';\nimport { REDARAW_BIT } from './graphic/constants';\n\nlet invalidZErrorLogged = false;\nfunction logInvalidZError() {\n if (invalidZErrorLogged) {\n return;\n }\n invalidZErrorLogged = true;\n console.warn('z / z2 / zlevel of displayable is invalid, which may cause unexpected errors');\n}\n\nfunction shapeCompareFunc(a: Displayable, b: Displayable) {\n if (a.zlevel === b.zlevel) {\n if (a.z === b.z) {\n // if (a.z2 === b.z2) {\n // // FIXME Slow has renderidx compare\n // // http://stackoverflow.com/questions/20883421/sorting-in-javascript-should-every-compare-function-have-a-return-0-statement\n // // https://github.com/v8/v8/blob/47cce544a31ed5577ffe2963f67acb4144ee0232/src/js/array.js#L1012\n // return a.__renderidx - b.__renderidx;\n // }\n return a.z2 - b.z2;\n }\n return a.z - b.z;\n }\n return a.zlevel - b.zlevel;\n}\n\nexport default class Storage {\n\n private _roots: Element[] = []\n\n private _displayList: Displayable[] = []\n\n private _displayListLen = 0\n\n traverse(\n cb: (this: T, el: Element) => void,\n context?: T\n ) {\n for (let i = 0; i < this._roots.length; i++) {\n this._roots[i].traverse(cb, context);\n }\n }\n\n /**\n * get a list of elements to be rendered\n *\n * @param {boolean} update whether to update elements before return\n * @param {DisplayParams} params options\n * @return {Displayable[]} a list of elements\n */\n getDisplayList(update?: boolean, includeIgnore?: boolean): Displayable[] {\n includeIgnore = includeIgnore || false;\n const displayList = this._displayList;\n // If displaylist is not created yet. Update force\n if (update || !displayList.length) {\n this.updateDisplayList(includeIgnore);\n }\n return displayList;\n }\n\n /**\n * \u66F4\u65B0\u56FE\u5F62\u7684\u7ED8\u5236\u961F\u5217\u3002\n * \u6BCF\u6B21\u7ED8\u5236\u524D\u90FD\u4F1A\u8C03\u7528\uFF0C\u8BE5\u65B9\u6CD5\u4F1A\u5148\u6DF1\u5EA6\u4F18\u5148\u904D\u5386\u6574\u4E2A\u6811\uFF0C\u66F4\u65B0\u6240\u6709Group\u548CShape\u7684\u53D8\u6362\u5E76\u4E14\u628A\u6240\u6709\u53EF\u89C1\u7684Shape\u4FDD\u5B58\u5230\u6570\u7EC4\u4E2D\uFF0C\n * \u6700\u540E\u6839\u636E\u7ED8\u5236\u7684\u4F18\u5148\u7EA7\uFF08zlevel > z > \u63D2\u5165\u987A\u5E8F\uFF09\u6392\u5E8F\u5F97\u5230\u7ED8\u5236\u961F\u5217\n */\n updateDisplayList(includeIgnore?: boolean) {\n this._displayListLen = 0;\n\n const roots = this._roots;\n const displayList = this._displayList;\n for (let i = 0, len = roots.length; i < len; i++) {\n this._updateAndAddDisplayable(roots[i], null, includeIgnore);\n }\n\n displayList.length = this._displayListLen;\n\n env.canvasSupported && timsort(displayList, shapeCompareFunc);\n }\n\n private _updateAndAddDisplayable(\n el: Element,\n clipPaths: Path[],\n includeIgnore?: boolean\n ) {\n if (el.ignore && !includeIgnore) {\n return;\n }\n\n el.beforeUpdate();\n el.update();\n el.afterUpdate();\n\n const userSetClipPath = el.getClipPath();\n\n if (el.ignoreClip) {\n clipPaths = null;\n }\n else if (userSetClipPath) {\n\n // FIXME \u6548\u7387\u5F71\u54CD\n if (clipPaths) {\n clipPaths = clipPaths.slice();\n }\n else {\n clipPaths = [];\n }\n\n let currentClipPath = userSetClipPath;\n let parentClipPath = el;\n // Recursively add clip path\n while (currentClipPath) {\n // clipPath \u7684\u53D8\u6362\u662F\u57FA\u4E8E\u4F7F\u7528\u8FD9\u4E2A clipPath \u7684\u5143\u7D20\n // TODO: parent should be group type.\n currentClipPath.parent = parentClipPath as Group;\n currentClipPath.updateTransform();\n\n clipPaths.push(currentClipPath);\n\n parentClipPath = currentClipPath;\n currentClipPath = currentClipPath.getClipPath();\n }\n }\n\n // ZRText and Group and combining morphing Path may use children\n if ((el as GroupLike).childrenRef) {\n const children = (el as GroupLike).childrenRef();\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n\n // Force to mark as dirty if group is dirty\n if (el.__dirty) {\n child.__dirty |= REDARAW_BIT;\n }\n\n this._updateAndAddDisplayable(child, clipPaths, includeIgnore);\n }\n\n // Mark group clean here\n el.__dirty = 0;\n\n }\n else {\n const disp = el as Displayable;\n // Element is displayable\n if (clipPaths && clipPaths.length) {\n disp.__clipPaths = clipPaths;\n }\n else if (disp.__clipPaths && disp.__clipPaths.length > 0) {\n disp.__clipPaths = [];\n }\n\n // Avoid invalid z, z2, zlevel cause sorting error.\n if (isNaN(disp.z)) {\n logInvalidZError();\n disp.z = 0;\n }\n if (isNaN(disp.z2)) {\n logInvalidZError();\n disp.z2 = 0;\n }\n if (isNaN(disp.zlevel)) {\n logInvalidZError();\n disp.zlevel = 0;\n }\n\n this._displayList[this._displayListLen++] = disp;\n }\n\n // Add decal\n const decalEl = (el as Path).getDecalElement && (el as Path).getDecalElement();\n if (decalEl) {\n this._updateAndAddDisplayable(decalEl, clipPaths, includeIgnore);\n }\n\n // Add attached text element and guide line.\n const textGuide = el.getTextGuideLine();\n if (textGuide) {\n this._updateAndAddDisplayable(textGuide, clipPaths, includeIgnore);\n }\n\n const textEl = el.getTextContent();\n if (textEl) {\n this._updateAndAddDisplayable(textEl, clipPaths, includeIgnore);\n }\n }\n\n /**\n * \u6DFB\u52A0\u56FE\u5F62(Displayable)\u6216\u8005\u7EC4(Group)\u5230\u6839\u8282\u70B9\n */\n addRoot(el: Element) {\n if (el.__zr && el.__zr.storage === this) {\n return;\n }\n\n this._roots.push(el);\n }\n\n /**\n * \u5220\u9664\u6307\u5B9A\u7684\u56FE\u5F62(Displayable)\u6216\u8005\u7EC4(Group)\n * @param el\n */\n delRoot(el: Element | Element[]) {\n\n if (el instanceof Array) {\n for (let i = 0, l = el.length; i < l; i++) {\n this.delRoot(el[i]);\n }\n return;\n }\n\n const idx = util.indexOf(this._roots, el);\n if (idx >= 0) {\n this._roots.splice(idx, 1);\n }\n }\n\n delAllRoots() {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n\n return;\n }\n\n getRoots() {\n return this._roots;\n }\n\n /**\n * \u6E05\u7A7A\u5E76\u4E14\u91CA\u653EStorage\n */\n dispose() {\n this._displayList = null;\n this._roots = null;\n }\n\n displayableSortFunc = shapeCompareFunc\n}", "type RequestAnimationFrameType = typeof window.requestAnimationFrame\n\nlet requestAnimationFrame: RequestAnimationFrameType;\n\nrequestAnimationFrame = (\n\ttypeof window !== 'undefined'\n\t\t&& (\n\t\t\t(window.requestAnimationFrame && window.requestAnimationFrame.bind(window))\n\t\t\t// https://github.com/ecomfe/zrender/issues/189#issuecomment-224919809\n\t\t\t|| ((window as any).msRequestAnimationFrame && (window as any).msRequestAnimationFrame.bind(window))\n\t\t\t|| (window as any).mozRequestAnimationFrame\n\t\t\t|| window.webkitRequestAnimationFrame\n\t\t)\n) || function (func: Parameters[0]): number {\n\treturn setTimeout(func, 16) as any;\n};\n\nexport default requestAnimationFrame;\n", "/**\n * \u7F13\u52A8\u4EE3\u7801\u6765\u81EA https://github.com/sole/tween.js/blob/master/src/Tween.js\n * @see http://sole.github.io/tween.js/examples/03_graphs.html\n * @exports zrender/animation/easing\n */\n\ntype easingFunc = (percent: number) => number;\n\nexport type AnimationEasing = keyof typeof easing | easingFunc | 'spline';\n\nconst easing = {\n /**\n * @param {number} k\n * @return {number}\n */\n linear(k: number) {\n return k;\n },\n\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticIn(k: number) {\n return k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticOut(k: number) {\n return k * (2 - k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quadraticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k;\n }\n return -0.5 * (--k * (k - 2) - 1);\n },\n\n // \u4E09\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^3\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n cubicIn(k: number) {\n return k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n cubicOut(k: number) {\n return --k * k * k + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n cubicInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k + 2);\n },\n\n // \u56DB\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^4\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n quarticIn(k: number) {\n return k * k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quarticOut(k: number) {\n return 1 - (--k * k * k * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quarticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k;\n }\n return -0.5 * ((k -= 2) * k * k * k - 2);\n },\n\n // \u4E94\u6B21\u65B9\u7684\u7F13\u52A8\uFF08t^5\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n quinticIn(k: number) {\n return k * k * k * k * k;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quinticOut(k: number) {\n return --k * k * k * k * k + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n quinticInOut(k: number) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k * k * k + 2);\n },\n\n // \u6B63\u5F26\u66F2\u7EBF\u7684\u7F13\u52A8\uFF08sin(t)\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalIn(k: number) {\n return 1 - Math.cos(k * Math.PI / 2);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalOut(k: number) {\n return Math.sin(k * Math.PI / 2);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n sinusoidalInOut(k: number) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n },\n\n // \u6307\u6570\u66F2\u7EBF\u7684\u7F13\u52A8\uFF082^t\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialIn(k: number) {\n return k === 0 ? 0 : Math.pow(1024, k - 1);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialOut(k: number) {\n return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n exponentialInOut(k: number) {\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if ((k *= 2) < 1) {\n return 0.5 * Math.pow(1024, k - 1);\n }\n return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);\n },\n\n // \u5706\u5F62\u66F2\u7EBF\u7684\u7F13\u52A8\uFF08sqrt(1-t^2)\uFF09\n /**\n * @param {number} k\n * @return {number}\n */\n circularIn(k: number) {\n return 1 - Math.sqrt(1 - k * k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n circularOut(k: number) {\n return Math.sqrt(1 - (--k * k));\n },\n /**\n * @param {number} k\n * @return {number}\n */\n circularInOut(k: number) {\n if ((k *= 2) < 1) {\n return -0.5 * (Math.sqrt(1 - k * k) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);\n },\n\n // \u521B\u5EFA\u7C7B\u4F3C\u4E8E\u5F39\u7C27\u5728\u505C\u6B62\u524D\u6765\u56DE\u632F\u8361\u7684\u52A8\u753B\n /**\n * @param {number} k\n * @return {number}\n */\n elasticIn(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return -(a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n },\n /**\n * @param {number} k\n * @return {number}\n */\n elasticOut(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return (a * Math.pow(2, -10 * k)\n * Math.sin((k - s) * (2 * Math.PI) / p) + 1);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n elasticInOut(k: number) {\n let s;\n let a = 0.1;\n let p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n if ((k *= 2) < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n }\n return a * Math.pow(2, -10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;\n\n },\n\n // \u5728\u67D0\u4E00\u52A8\u753B\u5F00\u59CB\u6CBF\u6307\u793A\u7684\u8DEF\u5F84\u8FDB\u884C\u52A8\u753B\u5904\u7406\u524D\u7A0D\u7A0D\u6536\u56DE\u8BE5\u52A8\u753B\u7684\u79FB\u52A8\n /**\n * @param {number} k\n * @return {number}\n */\n backIn(k: number) {\n let s = 1.70158;\n return k * k * ((s + 1) * k - s);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n backOut(k: number) {\n let s = 1.70158;\n return --k * k * ((s + 1) * k + s) + 1;\n },\n /**\n * @param {number} k\n * @return {number}\n */\n backInOut(k: number) {\n let s = 1.70158 * 1.525;\n if ((k *= 2) < 1) {\n return 0.5 * (k * k * ((s + 1) * k - s));\n }\n return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);\n },\n\n // \u521B\u5EFA\u5F39\u8DF3\u6548\u679C\n /**\n * @param {number} k\n * @return {number}\n */\n bounceIn(k: number) {\n return 1 - easing.bounceOut(1 - k);\n },\n /**\n * @param {number} k\n * @return {number}\n */\n bounceOut(k: number) {\n if (k < (1 / 2.75)) {\n return 7.5625 * k * k;\n }\n else if (k < (2 / 2.75)) {\n return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;\n }\n else if (k < (2.5 / 2.75)) {\n return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;\n }\n else {\n return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;\n }\n },\n /**\n * @param {number} k\n * @return {number}\n */\n bounceInOut(k: number) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n }\n};\n\nexport default easing;", "/**\n * \u52A8\u753B\u4E3B\u63A7\u5236\u5668\n * @config target \u52A8\u753B\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u662F\u6570\u7EC4\uFF0C\u5982\u679C\u662F\u6570\u7EC4\u7684\u8BDD\u4F1A\u6279\u91CF\u5206\u53D1onframe\u7B49\u4E8B\u4EF6\n * @config life(1000) \u52A8\u753B\u65F6\u957F\n * @config delay(0) \u52A8\u753B\u5EF6\u8FDF\u65F6\u95F4\n * @config loop(true)\n * @config gap(0) \u5FAA\u73AF\u7684\u95F4\u9694\u65F6\u95F4\n * @config onframe\n * @config easing(optional)\n * @config ondestroy(optional)\n * @config onrestart(optional)\n *\n * TODO pause\n */\n\nimport easingFuncs, {AnimationEasing} from './easing';\nimport type Animation from './Animation';\n\ntype OnframeCallback = (percent: number) => void;\ntype ondestroyCallback = () => void\ntype onrestartCallback = () => void\n\nexport type DeferredEventTypes = 'destroy' | 'restart'\ntype DeferredEventKeys = 'ondestroy' | 'onrestart'\n\nexport interface ClipProps {\n life?: number\n delay?: number\n loop?: boolean\n gap?: number\n easing?: AnimationEasing\n\n onframe?: OnframeCallback\n ondestroy?: ondestroyCallback\n onrestart?: onrestartCallback\n}\n\nexport default class Clip {\n\n // \u751F\u547D\u5468\u671F\n private _life: number\n // \u5EF6\u65F6\n private _delay: number\n\n private _initialized: boolean = false\n // \u5F00\u59CB\u65F6\u95F4\n private _startTime = 0 // \u5F00\u59CB\u65F6\u95F4\u5355\u4F4D\u6BEB\u79D2\n\n private _pausedTime = 0\n private _paused = false\n\n animation: Animation\n\n loop: boolean\n gap: number\n easing: AnimationEasing\n\n // For linked list. Readonly\n next: Clip\n prev: Clip\n\n onframe: OnframeCallback\n ondestroy: ondestroyCallback\n onrestart: onrestartCallback\n\n constructor(opts: ClipProps) {\n\n this._life = opts.life || 1000;\n\n this._delay = opts.delay || 0;\n\n // this._startTime = new Date().getTime() + this._delay;\n\n // \u662F\u5426\u5FAA\u73AF\n this.loop = opts.loop == null ? false : opts.loop;\n\n this.gap = opts.gap || 0;\n\n this.easing = opts.easing || 'linear';\n\n this.onframe = opts.onframe;\n this.ondestroy = opts.ondestroy;\n this.onrestart = opts.onrestart;\n }\n\n step(globalTime: number, deltaTime: number): boolean {\n // Set startTime on first step, or _startTime may has milleseconds different between clips\n // PENDING\n if (!this._initialized) {\n this._startTime = globalTime + this._delay;\n this._initialized = true;\n }\n\n if (this._paused) {\n this._pausedTime += deltaTime;\n return;\n }\n\n let percent = (globalTime - this._startTime - this._pausedTime) / this._life;\n\n // PENDING: Not begin yet. Still run the loop.\n // In the case callback needs to be invoked.\n // Or want to update to the begin state at next frame when `setToFinal` and `delay` are both used.\n // To avoid the unexpected blink.\n if (percent < 0) {\n percent = 0;\n }\n\n percent = Math.min(percent, 1);\n\n const easing = this.easing;\n const easingFunc = typeof easing === 'string'\n ? easingFuncs[easing as keyof typeof easingFuncs] : easing;\n const schedule = typeof easingFunc === 'function'\n ? easingFunc(percent)\n : percent;\n\n this.onframe && this.onframe(schedule);\n\n // \u7ED3\u675F\n if (percent === 1) {\n if (this.loop) {\n this._restart(globalTime);\n this.onrestart && this.onrestart();\n }\n else {\n return true;\n }\n }\n\n return false;\n }\n\n private _restart(globalTime: number) {\n const remainder = (globalTime - this._startTime - this._pausedTime) % this._life;\n this._startTime = globalTime - remainder + this.gap;\n this._pausedTime = 0;\n }\n\n pause() {\n this._paused = true;\n }\n\n resume() {\n this._paused = false;\n }\n}", "import LRU from '../core/LRU';\n\nconst kCSSColorTable = {\n 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],\n 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],\n 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],\n 'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1],\n 'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1],\n 'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1],\n 'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1],\n 'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1],\n 'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1],\n 'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1],\n 'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1],\n 'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1],\n 'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1],\n 'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1],\n 'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1],\n 'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1],\n 'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1],\n 'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1],\n 'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1],\n 'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1],\n 'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1],\n 'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1],\n 'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1],\n 'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1],\n 'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1],\n 'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1],\n 'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1],\n 'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1],\n 'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1],\n 'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1],\n 'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1],\n 'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1],\n 'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1],\n 'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1],\n 'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1],\n 'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1],\n 'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1],\n 'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1],\n 'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1],\n 'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1],\n 'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1],\n 'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1],\n 'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1],\n 'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1],\n 'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1],\n 'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1],\n 'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1],\n 'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1],\n 'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1],\n 'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1],\n 'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1],\n 'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1],\n 'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1],\n 'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1],\n 'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1],\n 'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1],\n 'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1],\n 'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1],\n 'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1],\n 'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1],\n 'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1],\n 'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1],\n 'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1],\n 'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1],\n 'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1],\n 'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1],\n 'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1],\n 'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1],\n 'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1],\n 'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1],\n 'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1],\n 'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1],\n 'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1],\n 'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1]\n};\n\nfunction clampCssByte(i: number): number { // Clamp to integer 0 .. 255.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\n\nfunction clampCssAngle(i: number): number { // Clamp to integer 0 .. 360.\n i = Math.round(i); // Seems to be what Chrome does (vs truncation).\n return i < 0 ? 0 : i > 360 ? 360 : i;\n}\n\nfunction clampCssFloat(f: number): number { // Clamp to float 0.0 .. 1.0.\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\n\nfunction parseCssInt(val: string | number): number { // int or percentage.\n let str = val as string;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssByte(parseFloat(str) / 100 * 255);\n }\n return clampCssByte(parseInt(str, 10));\n}\n\nfunction parseCssFloat(val: string | number): number { // float or percentage.\n let str = val as string;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssFloat(parseFloat(str) / 100);\n }\n return clampCssFloat(parseFloat(str));\n}\n\nfunction cssHueToRgb(m1: number, m2: number, h: number): number {\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n\n if (h * 6 < 1) {\n return m1 + (m2 - m1) * h * 6;\n }\n if (h * 2 < 1) {\n return m2;\n }\n if (h * 3 < 2) {\n return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n }\n return m1;\n}\n\nfunction lerpNumber(a: number, b: number, p: number): number {\n return a + (b - a) * p;\n}\n\nfunction setRgba(out: number[], r: number, g: number, b: number, a: number): number[] {\n out[0] = r;\n out[1] = g;\n out[2] = b;\n out[3] = a;\n return out;\n}\nfunction copyRgba(out: number[], a: number[]) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n return out;\n}\n\nconst colorCache = new LRU(20);\nlet lastRemovedArr: number[] = null;\n\nfunction putToCache(colorStr: string, rgbaArr: number[]) {\n // Reuse removed array\n if (lastRemovedArr) {\n copyRgba(lastRemovedArr, rgbaArr);\n }\n lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));\n}\n\nexport function parse(colorStr: string, rgbaArr?: number[]): number[] {\n if (!colorStr) {\n return;\n }\n rgbaArr = rgbaArr || [];\n\n let cached = colorCache.get(colorStr);\n if (cached) {\n return copyRgba(rgbaArr, cached);\n }\n\n // colorStr may be not string\n colorStr = colorStr + '';\n // Remove all whitespace, not compliant, but should just be more accepting.\n let str = colorStr.replace(/ /g, '').toLowerCase();\n\n // Color keywords (and transparent) lookup.\n if (str in kCSSColorTable) {\n copyRgba(rgbaArr, kCSSColorTable[str as keyof typeof kCSSColorTable]);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n\n // supports the forms #rgb, #rrggbb, #rgba, #rrggbbaa\n // #rrggbbaa(use the last pair of digits as alpha)\n // see https://drafts.csswg.org/css-color/#hex-notation\n const strLen = str.length;\n if (str.charAt(0) === '#') {\n if (strLen === 4 || strLen === 5) {\n const iv = parseInt(str.slice(1, 4), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xfff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return; // Covers NaN.\n }\n // interpret values of the form #rgb as #rrggbb and #rgba as #rrggbbaa\n setRgba(rgbaArr,\n ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),\n (iv & 0xf0) | ((iv & 0xf0) >> 4),\n (iv & 0xf) | ((iv & 0xf) << 4),\n strLen === 5 ? parseInt(str.slice(4), 16) / 0xf : 1\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n else if (strLen === 7 || strLen === 9) {\n const iv = parseInt(str.slice(1, 7), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xffffff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return; // Covers NaN.\n }\n setRgba(rgbaArr,\n (iv & 0xff0000) >> 16,\n (iv & 0xff00) >> 8,\n iv & 0xff,\n strLen === 9 ? parseInt(str.slice(7), 16) / 0xff : 1\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n\n return;\n }\n let op = str.indexOf('(');\n let ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === strLen) {\n let fname = str.substr(0, op);\n let params: (number | string)[] = str.substr(op + 1, ep - (op + 1)).split(',');\n let alpha = 1; // To allow case fallthrough.\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) {\n return params.length === 3\n // to be compatible with rgb\n ? setRgba(rgbaArr, +params[0], +params[1], +params[2], 1)\n : setRgba(rgbaArr, 0, 0, 0, 1);\n }\n alpha = parseCssFloat(params.pop() as string); // jshint ignore:line\n // Fall through.\n case 'rgb':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr,\n parseCssInt(params[0]),\n parseCssInt(params[1]),\n parseCssInt(params[2]),\n alpha\n );\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsla':\n if (params.length !== 4) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n params[3] = parseCssFloat(params[3] as string);\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsl':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n default:\n return;\n }\n }\n\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n}\n\nfunction hsla2rgba(hsla: (number | string) [], rgba?: number[]): number[] {\n const h = (((parseFloat(hsla[0] as string) % 360) + 360) % 360) / 360; // 0 .. 1\n // NOTE(deanm): According to the CSS spec s/l should only be\n // percentages, but we don't bother and let float or percentage.\n const s = parseCssFloat(hsla[1]);\n const l = parseCssFloat(hsla[2]);\n const m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n const m1 = l * 2 - m2;\n\n rgba = rgba || [];\n setRgba(rgba,\n clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255),\n clampCssByte(cssHueToRgb(m1, m2, h) * 255),\n clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255),\n 1\n );\n\n if (hsla.length === 4) {\n rgba[3] = hsla[3] as number;\n }\n\n return rgba;\n}\n\nfunction rgba2hsla(rgba: number[]): number[] {\n if (!rgba) {\n return;\n }\n\n // RGB from 0 to 255\n const R = rgba[0] / 255;\n const G = rgba[1] / 255;\n const B = rgba[2] / 255;\n\n const vMin = Math.min(R, G, B); // Min. value of RGB\n const vMax = Math.max(R, G, B); // Max. value of RGB\n const delta = vMax - vMin; // Delta RGB value\n\n const L = (vMax + vMin) / 2;\n let H;\n let S;\n // HSL results from 0 to 1\n if (delta === 0) {\n H = 0;\n S = 0;\n }\n else {\n if (L < 0.5) {\n S = delta / (vMax + vMin);\n }\n else {\n S = delta / (2 - vMax - vMin);\n }\n\n const deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;\n const deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;\n const deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;\n\n if (R === vMax) {\n H = deltaB - deltaG;\n }\n else if (G === vMax) {\n H = (1 / 3) + deltaR - deltaB;\n }\n else if (B === vMax) {\n H = (2 / 3) + deltaG - deltaR;\n }\n\n if (H < 0) {\n H += 1;\n }\n\n if (H > 1) {\n H -= 1;\n }\n }\n\n const hsla = [H * 360, S, L];\n\n if (rgba[3] != null) {\n hsla.push(rgba[3]);\n }\n\n return hsla;\n}\n\nexport function lift(color: string, level: number) {\n const colorArr = parse(color);\n if (colorArr) {\n for (let i = 0; i < 3; i++) {\n if (level < 0) {\n colorArr[i] = colorArr[i] * (1 - level) | 0;\n }\n else {\n colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;\n }\n if (colorArr[i] > 255) {\n colorArr[i] = 255;\n }\n else if (colorArr[i] < 0) {\n colorArr[i] = 0;\n }\n }\n return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');\n }\n}\n\nexport function toHex(color: string): string {\n const colorArr = parse(color);\n if (colorArr) {\n return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);\n }\n}\n\n/**\n * Map value to color. Faster than lerp methods because color is represented by rgba array.\n * @param normalizedValue A float between 0 and 1.\n * @param colors List of rgba color array\n * @param out Mapped gba color array\n * @return will be null/undefined if input illegal.\n */\nexport function fastLerp(\n normalizedValue: number,\n colors: number[][],\n out?: number[]\n): number[] {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)\n ) {\n return;\n }\n\n out = out || [];\n\n const value = normalizedValue * (colors.length - 1);\n const leftIndex = Math.floor(value);\n const rightIndex = Math.ceil(value);\n const leftColor = colors[leftIndex];\n const rightColor = colors[rightIndex];\n const dv = value - leftIndex;\n out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));\n out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));\n out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));\n out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));\n\n return out;\n}\n\n/**\n * @deprecated\n */\nexport const fastMapToColor = fastLerp;\n\ntype LerpFullOutput = {\n color: string\n leftIndex: number\n rightIndex: number\n value: number\n}\n/**\n * @param normalizedValue A float between 0 and 1.\n * @param colors Color list.\n * @param fullOutput Default false.\n * @return Result color. If fullOutput,\n return {color: ..., leftIndex: ..., rightIndex: ..., value: ...},\n */\nexport function lerp(\n normalizedValue: number,\n colors: string[],\n fullOutput?: boolean\n): string | LerpFullOutput {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)\n ) {\n return;\n }\n\n const value = normalizedValue * (colors.length - 1);\n const leftIndex = Math.floor(value);\n const rightIndex = Math.ceil(value);\n const leftColor = parse(colors[leftIndex]);\n const rightColor = parse(colors[rightIndex]);\n const dv = value - leftIndex;\n\n const color = stringify(\n [\n clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),\n clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),\n clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),\n clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))\n ],\n 'rgba'\n );\n\n return fullOutput\n ? {\n color: color,\n leftIndex: leftIndex,\n rightIndex: rightIndex,\n value: value\n }\n : color;\n}\n\n/**\n * @deprecated\n */\nexport const mapToColor = lerp;\n\n/**\n * @param color\n * @param h 0 ~ 360, ignore when null.\n * @param s 0 ~ 1, ignore when null.\n * @param l 0 ~ 1, ignore when null.\n * @return Color string in rgba format.\n * @memberOf module:zrender/util/color\n */\nexport function modifyHSL(color: string, h?: number, s?: number, l?: number): string {\n let colorArr = parse(color);\n\n if (color) {\n colorArr = rgba2hsla(colorArr);\n h != null && (colorArr[0] = clampCssAngle(h));\n s != null && (colorArr[1] = parseCssFloat(s));\n l != null && (colorArr[2] = parseCssFloat(l));\n\n return stringify(hsla2rgba(colorArr), 'rgba');\n }\n}\n\n/**\n * @param color\n * @param alpha 0 ~ 1\n * @return Color string in rgba format.\n * @memberOf module:zrender/util/color\n */\nexport function modifyAlpha(color: string, alpha?: number): string {\n const colorArr = parse(color);\n\n if (colorArr && alpha != null) {\n colorArr[3] = clampCssFloat(alpha);\n return stringify(colorArr, 'rgba');\n }\n}\n\n/**\n * @param arrColor like [12,33,44,0.4]\n * @param type 'rgba', 'hsva', ...\n * @return Result color. (If input illegal, return undefined).\n */\nexport function stringify(arrColor: number[], type: string): string {\n if (!arrColor || !arrColor.length) {\n return;\n }\n let colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];\n if (type === 'rgba' || type === 'hsva' || type === 'hsla') {\n colorStr += ',' + arrColor[3];\n }\n return type + '(' + colorStr + ')';\n}\n\n/**\n * Calculate luminance. It will include alpha.\n */\nexport function lum(color: string, backgroundLum: number) {\n const arr = parse(color);\n return arr\n ? (0.299 * arr[0] + 0.587 * arr[1] + 0.114 * arr[2]) * arr[3] / 255\n + (1 - arr[3]) * backgroundLum // Blending with assumed white background.\n : 0;\n}\n\n/**\n * Generate a random color\n */\nexport function random(): string {\n let r = Math.round(Math.random() * 255);\n let g = Math.round(Math.random() * 255);\n let b = Math.round(Math.random() * 255);\n\n return 'rgb(' + r + ',' + g + ',' + b + ')';\n}", "import { Dictionary } from './types';\n\n// Simple LRU cache use doubly linked list\n// @module zrender/core/LRU\n\nexport class Entry {\n\n value: T\n\n key: string | number\n\n next: Entry\n\n prev: Entry\n\n constructor(val: T) {\n this.value = val;\n }\n}\n/**\n * Simple double linked list. Compared with array, it has O(1) remove operation.\n * @constructor\n */\nexport class LinkedList {\n\n head: Entry\n tail: Entry\n\n private _len = 0\n\n /**\n * Insert a new value at the tail\n */\n insert(val: T): Entry {\n const entry = new Entry(val);\n this.insertEntry(entry);\n return entry;\n }\n\n /**\n * Insert an entry at the tail\n */\n insertEntry(entry: Entry) {\n if (!this.head) {\n this.head = this.tail = entry;\n }\n else {\n this.tail.next = entry;\n entry.prev = this.tail;\n entry.next = null;\n this.tail = entry;\n }\n this._len++;\n }\n\n /**\n * Remove entry.\n */\n remove(entry: Entry) {\n const prev = entry.prev;\n const next = entry.next;\n if (prev) {\n prev.next = next;\n }\n else {\n // Is head\n this.head = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n // Is tail\n this.tail = prev;\n }\n entry.next = entry.prev = null;\n this._len--;\n }\n\n /**\n * Get length\n */\n len(): number {\n return this._len;\n }\n\n /**\n * Clear list\n */\n clear() {\n this.head = this.tail = null;\n this._len = 0;\n }\n\n}\n\n/**\n * LRU Cache\n */\nexport default class LRU {\n\n private _list = new LinkedList()\n\n private _maxSize = 10\n\n private _lastRemovedEntry: Entry\n\n private _map: Dictionary> = {}\n\n constructor(maxSize: number) {\n this._maxSize = maxSize;\n }\n\n /**\n * @return Removed value\n */\n put(key: string | number, value: T): T {\n const list = this._list;\n const map = this._map;\n let removed = null;\n if (map[key] == null) {\n const len = list.len();\n // Reuse last removed entry\n let entry = this._lastRemovedEntry;\n\n if (len >= this._maxSize && len > 0) {\n // Remove the least recently used\n const leastUsedEntry = list.head;\n list.remove(leastUsedEntry);\n delete map[leastUsedEntry.key];\n\n removed = leastUsedEntry.value;\n this._lastRemovedEntry = leastUsedEntry;\n }\n\n if (entry) {\n entry.value = value;\n }\n else {\n entry = new Entry(value);\n }\n entry.key = key;\n list.insertEntry(entry);\n map[key] = entry;\n }\n\n return removed;\n }\n\n get(key: string | number): T {\n const entry = this._map[key];\n const list = this._list;\n if (entry != null) {\n // Put the latest used entry in the tail\n if (entry !== list.tail) {\n list.remove(entry);\n list.insertEntry(entry);\n }\n\n return entry.value;\n }\n }\n\n /**\n * Clear the cache\n */\n clear() {\n this._list.clear();\n this._map = {};\n }\n\n len() {\n return this._list.len();\n }\n}", "/**\n * @module echarts/animation/Animator\n */\n\nimport Clip from './Clip';\nimport * as color from '../tool/color';\nimport {isArrayLike, keys, logError} from '../core/util';\nimport {ArrayLike, Dictionary} from '../core/types';\nimport { AnimationEasing } from './easing';\nimport Animation from './Animation';\n\ntype NumberArray = ArrayLike\ntype InterpolatableType = string | number | NumberArray | NumberArray[];\n\nconst arraySlice = Array.prototype.slice;\n\nexport function interpolateNumber(p0: number, p1: number, percent: number): number {\n return (p1 - p0) * percent + p0;\n}\n\nexport function step(p0: any, p1: any, percent: number): any {\n return percent > 0.5 ? p1 : p0;\n}\n\nexport function interpolate1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n percent: number\n) {\n // TODO Handling different length TypedArray\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = interpolateNumber(p0[i], p1[i], percent);\n }\n}\n\nexport function interpolate2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n percent: number\n) {\n const len = p0.length;\n // TODO differnt length on each item?\n const len2 = len && p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = interpolateNumber(p0[i][j], p1[i][j], percent);\n }\n }\n}\n\nfunction add1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n sign: 1 | -1\n) {\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = p0[i] + p1[i] * sign;\n }\n return out;\n}\n\nfunction add2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n sign: 1 | -1\n) {\n const len = p0.length;\n const len2 = len && p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = p0[i][j] + p1[i][j] * sign;\n }\n }\n return out;\n}\n// arr0 is source array, arr1 is target array.\n// Do some preprocess to avoid error happened when interpolating from arr0 to arr1\nfunction fillArray(\n val0: NumberArray | NumberArray[],\n val1: NumberArray | NumberArray[],\n arrDim: number\n) {\n // TODO Handling different length TypedArray\n let arr0 = val0 as (number | number[])[];\n let arr1 = val1 as (number | number[])[];\n if (!arr0.push || !arr1.push) {\n return;\n }\n const arr0Len = arr0.length;\n const arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n // FIXME Not work for TypedArray\n const isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n // Cut the previous\n arr0.length = arr1Len;\n }\n else {\n // Fill the previous\n for (let i = arr0Len; i < arr1Len; i++) {\n arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n }\n }\n }\n // Handling NaN value\n const len2 = arr0[0] && (arr0[0] as number[]).length;\n for (let i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i] as number)) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (let j = 0; j < len2; j++) {\n if (isNaN((arr0 as number[][])[i][j])) {\n (arr0 as number[][])[i][j] = (arr1 as number[][])[i][j];\n }\n }\n }\n }\n}\n\nfunction is1DArraySame(arr0: NumberArray, arr1: NumberArray) {\n const len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n if (arr0[i] !== arr1[i]) {\n return false;\n }\n }\n return true;\n}\n\n\n/**\n * Catmull Rom interpolate number\n */\nfunction catmullRomInterpolate(\n p0: number, p1: number, p2: number, p3: number, t: number, t2: number, t3: number\n) {\n const v0 = (p2 - p0) * 0.5;\n const v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\n/**\n * Catmull Rom interpolate 1D array\n */\nfunction catmullRomInterpolate1DArray(\n out: NumberArray,\n p0: NumberArray,\n p1: NumberArray,\n p2: NumberArray,\n p3: NumberArray,\n t: number,\n t2: number,\n t3: number\n) {\n const len = p0.length;\n for (let i = 0; i < len; i++) {\n out[i] = catmullRomInterpolate(\n p0[i], p1[i], p2[i], p3[i], t, t2, t3\n );\n }\n}\n\n/**\n * Catmull Rom interpolate 2D array\n */\nfunction catmullRomInterpolate2DArray(\n out: NumberArray[],\n p0: NumberArray[],\n p1: NumberArray[],\n p2: NumberArray[],\n p3: NumberArray[],\n t: number,\n t2: number,\n t3: number\n) {\n const len = p0.length;\n const len2 = p0[0].length;\n for (let i = 0; i < len; i++) {\n if (!out[i]) {\n out[1] = [];\n }\n for (let j = 0; j < len2; j++) {\n out[i][j] = catmullRomInterpolate(\n p0[i][j], p1[i][j], p2[i][j], p3[i][j],\n t, t2, t3\n );\n }\n }\n}\n\n\nexport function cloneValue(value: InterpolatableType) {\n if (isArrayLike(value)) {\n const len = value.length;\n if (isArrayLike(value[0])) {\n const ret = [];\n for (let i = 0; i < len; i++) {\n ret.push(arraySlice.call(value[i]));\n }\n return ret;\n }\n\n return arraySlice.call(value);\n }\n\n return value;\n}\n\nfunction rgba2String(rgba: number[]): string {\n rgba[0] = Math.floor(rgba[0]);\n rgba[1] = Math.floor(rgba[1]);\n rgba[2] = Math.floor(rgba[2]);\n\n return 'rgba(' + rgba.join(',') + ')';\n}\n\nfunction guessArrayDim(value: ArrayLike): number {\n return isArrayLike(value && (value as ArrayLike)[0]) ? 2 : 1;\n}\n\ntype Keyframe = {\n time: number\n value: unknown\n percent: number\n\n additiveValue?: unknown\n}\n\nlet tmpRgba: number[] = [0, 0, 0, 0];\nclass Track {\n\n keyframes: Keyframe[] = []\n maxTime: number = 0\n\n propName: string\n\n /**\n * If use spline interpolate\n */\n useSpline: boolean\n\n // Larger than 0 if value is array\n arrDim: number = 0\n isValueColor: boolean\n\n interpolable: boolean = true\n\n private _finished: boolean\n\n private _needsSort: boolean = false\n\n private _isAllValueEqual = true\n\n private _additiveTrack: Track\n // Temporal storage for interpolated additive value.\n private _additiveValue: unknown\n\n // Info for run\n private _lastFrame = 0\n private _lastFramePercent = 0\n\n constructor(propName: string) {\n this.propName = propName;\n }\n\n isFinished() {\n return this._finished;\n }\n\n setFinished() {\n this._finished = true;\n // Also set additive track to finished.\n // Make sure the final value stopped on the latest track\n if (this._additiveTrack) {\n this._additiveTrack.setFinished();\n }\n }\n\n needsAnimate() {\n return !this._isAllValueEqual\n && this.keyframes.length >= 2\n && this.interpolable\n && this.maxTime > 0;\n }\n\n getAdditiveTrack() {\n return this._additiveTrack;\n }\n\n addKeyframe(time: number, value: unknown) {\n if (time >= this.maxTime) {\n this.maxTime = time;\n }\n else {\n this._needsSort = true;\n }\n\n let keyframes = this.keyframes;\n\n let len = keyframes.length;\n\n if (this.interpolable) {\n // Handling values only if it's possible to be interpolated.\n if (isArrayLike(value)) {\n let arrayDim = guessArrayDim(value);\n if (len > 0 && this.arrDim !== arrayDim) { // Two values has differnt dimension.\n this.interpolable = false;\n return;\n }\n // Not a number array.\n if (arrayDim === 1 && typeof value[0] !== 'number'\n || arrayDim === 2 && typeof value[0][0] !== 'number') {\n this.interpolable = false;\n return;\n }\n if (len > 0) {\n let lastFrame = keyframes[len - 1];\n\n // For performance consideration. only check 1d array\n if (this._isAllValueEqual) {\n if (arrayDim === 1) {\n if (!is1DArraySame(value, lastFrame.value as number[])) {\n this._isAllValueEqual = false;\n }\n }\n else {\n this._isAllValueEqual = false;\n }\n }\n }\n this.arrDim = arrayDim;\n }\n else {\n if (this.arrDim > 0) { // Previous value is array.\n this.interpolable = false;\n return;\n }\n\n if (typeof value === 'string') {\n const colorArray = color.parse(value);\n if (colorArray) {\n value = colorArray;\n this.isValueColor = true;\n }\n else {\n this.interpolable = false;\n }\n }\n else if (typeof value !== 'number' || isNaN(value)) {\n this.interpolable = false;\n return;\n }\n\n if (this._isAllValueEqual && len > 0) {\n let lastFrame = keyframes[len - 1];\n if (this.isValueColor && !is1DArraySame(lastFrame.value as number[], value as number[])) {\n this._isAllValueEqual = false;\n }\n else if (lastFrame.value !== value) {\n this._isAllValueEqual = false;\n }\n }\n }\n }\n\n const kf = {\n time,\n value,\n percent: 0\n };\n // Not check if value equal here.\n this.keyframes.push(kf);\n return kf;\n }\n\n prepare(additiveTrack?: Track) {\n let kfs = this.keyframes;\n if (this._needsSort) {\n // Sort keyframe as ascending\n kfs.sort(function (a: Keyframe, b: Keyframe) {\n return a.time - b.time;\n });\n }\n\n const arrDim = this.arrDim;\n const kfsLen = kfs.length;\n const lastKf = kfs[kfsLen - 1];\n\n for (let i = 0; i < kfsLen; i++) {\n kfs[i].percent = kfs[i].time / this.maxTime;\n\n if (arrDim > 0 && i !== kfsLen - 1) {\n // Align array with target frame.\n fillArray(kfs[i].value as NumberArray, lastKf.value as NumberArray, arrDim);\n }\n }\n\n // Only apply additive animaiton on INTERPOLABLE SAME TYPE values.\n if (additiveTrack\n // If two track both will be animated and have same value format.\n && this.needsAnimate()\n && additiveTrack.needsAnimate()\n && arrDim === additiveTrack.arrDim\n && this.isValueColor === additiveTrack.isValueColor\n && !additiveTrack._finished\n ) {\n this._additiveTrack = additiveTrack;\n\n const startValue = kfs[0].value;\n // Calculate difference\n for (let i = 0; i < kfsLen; i++) {\n if (arrDim === 0) {\n if (this.isValueColor) {\n kfs[i].additiveValue\n = add1DArray([], kfs[i].value as NumberArray, startValue as NumberArray, -1);\n }\n else {\n kfs[i].additiveValue = kfs[i].value as number - (startValue as number);\n }\n }\n else if (arrDim === 1) {\n kfs[i].additiveValue = add1DArray(\n [],\n kfs[i].value as NumberArray,\n startValue as NumberArray,\n -1\n );\n }\n else if (arrDim === 2) {\n kfs[i].additiveValue = add2DArray(\n [],\n kfs[i].value as NumberArray[],\n startValue as NumberArray[],\n -1\n );\n }\n }\n }\n }\n\n step(target: any, percent: number) {\n if (this._finished) { // Track may be set to finished.\n return;\n }\n\n if (this._additiveTrack && this._additiveTrack._finished) {\n // Remove additive track if it's finished.\n this._additiveTrack = null;\n }\n const isAdditive = this._additiveTrack != null;\n const valueKey = isAdditive ? 'additiveValue' : 'value';\n\n const keyframes = this.keyframes;\n const kfsNum = this.keyframes.length;\n const propName = this.propName;\n const arrDim = this.arrDim;\n const isValueColor = this.isValueColor;\n // Find the range keyframes\n // kf1-----kf2---------current--------kf3\n // find kf2 and kf3 and do interpolation\n let frameIdx;\n // In the easing function like elasticOut, percent may less than 0\n if (percent < 0) {\n frameIdx = 0;\n }\n else if (percent < this._lastFramePercent) {\n // Start from next key\n // PENDING start from lastFrame ?\n const start = Math.min(this._lastFrame + 1, kfsNum - 1);\n for (frameIdx = start; frameIdx >= 0; frameIdx--) {\n if (keyframes[frameIdx].percent <= percent) {\n break;\n }\n }\n // PENDING really need to do this ?\n frameIdx = Math.min(frameIdx, kfsNum - 2);\n }\n else {\n for (frameIdx = this._lastFrame; frameIdx < kfsNum; frameIdx++) {\n if (keyframes[frameIdx].percent > percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx - 1, kfsNum - 2);\n }\n let nextFrame = keyframes[frameIdx + 1];\n let frame = keyframes[frameIdx];\n\n // Defensive coding.\n if (!(frame && nextFrame)) {\n return;\n }\n\n this._lastFrame = frameIdx;\n this._lastFramePercent = percent;\n\n\n const range = (nextFrame.percent - frame.percent);\n if (range === 0) {\n return;\n }\n const w = (percent - frame.percent) / range;\n\n // If value is arr\n let targetArr = isAdditive ? this._additiveValue\n : (isValueColor ? tmpRgba : target[propName]);\n\n if ((arrDim > 0 || isValueColor) && !targetArr) {\n targetArr = this._additiveValue = [];\n }\n if (this.useSpline) {\n const p1 = keyframes[frameIdx][valueKey];\n const p0 = keyframes[frameIdx === 0 ? frameIdx : frameIdx - 1][valueKey];\n const p2 = keyframes[frameIdx > kfsNum - 2 ? kfsNum - 1 : frameIdx + 1][valueKey];\n const p3 = keyframes[frameIdx > kfsNum - 3 ? kfsNum - 1 : frameIdx + 2][valueKey];\n\n if (arrDim > 0) {\n arrDim === 1\n ? catmullRomInterpolate1DArray(\n targetArr as NumberArray,\n p0 as NumberArray,\n p1 as NumberArray,\n p2 as NumberArray,\n p3 as NumberArray,\n w, w * w, w * w * w\n )\n : catmullRomInterpolate2DArray(\n targetArr as NumberArray[],\n p0 as NumberArray[], p1 as NumberArray[], p2 as NumberArray[], p3 as NumberArray[],\n w, w * w, w * w * w\n );\n }\n else if (isValueColor) {\n catmullRomInterpolate1DArray(\n targetArr,\n p0 as NumberArray, p1 as NumberArray, p2 as NumberArray, p3 as NumberArray,\n w, w * w, w * w * w\n );\n if (!isAdditive) { // Convert to string later:)\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n let value;\n if (!this.interpolable) {\n // String is step(0.5)\n // value = step(p1, p2, w);\n value = p2;\n }\n else {\n value = catmullRomInterpolate(\n p0 as number, p1 as number, p2 as number, p3 as number,\n w, w * w, w * w * w\n );\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n else {\n if (arrDim > 0) {\n arrDim === 1\n ? interpolate1DArray(\n targetArr as NumberArray,\n frame[valueKey] as NumberArray,\n nextFrame[valueKey] as NumberArray,\n w\n )\n : interpolate2DArray(\n targetArr as NumberArray[],\n frame[valueKey] as NumberArray[],\n nextFrame[valueKey] as NumberArray[],\n w\n );\n }\n else if (isValueColor) {\n interpolate1DArray(\n targetArr,\n frame[valueKey] as NumberArray,\n nextFrame[valueKey] as NumberArray,\n w\n );\n if (!isAdditive) { // Convert to string later:)\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n let value;\n if (!this.interpolable) {\n // String is step(0.5)\n value = step(frame[valueKey], nextFrame[valueKey], w);\n }\n else {\n value = interpolateNumber(frame[valueKey] as number, nextFrame[valueKey] as number, w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n\n // Add additive to target\n if (isAdditive) {\n this._addToTarget(target);\n }\n }\n\n private _addToTarget(target: any) {\n const arrDim = this.arrDim;\n const propName = this.propName;\n const additiveValue = this._additiveValue;\n\n if (arrDim === 0) {\n if (this.isValueColor) {\n // TODO reduce unnecessary parse\n color.parse(target[propName], tmpRgba);\n add1DArray(tmpRgba, tmpRgba, additiveValue as NumberArray, 1);\n target[propName] = rgba2String(tmpRgba);\n }\n else {\n // Add a difference value based on the change of previous frame.\n target[propName] = target[propName] + additiveValue;\n }\n }\n else if (arrDim === 1) {\n add1DArray(target[propName], target[propName], additiveValue as NumberArray, 1);\n }\n else if (arrDim === 2) {\n add2DArray(target[propName], target[propName], additiveValue as NumberArray[], 1);\n }\n }\n}\n\n\ntype DoneCallback = () => void;\ntype AbortCallback = () => void;\nexport type OnframeCallback = (target: T, percent: number) => void;\n\nexport type AnimationPropGetter = (target: T, key: string) => InterpolatableType;\nexport type AnimationPropSetter = (target: T, key: string, value: InterpolatableType) => void;\n\nexport default class Animator {\n\n animation?: Animation\n\n targetName?: string\n\n scope?: string\n\n __fromStateTransition?: string\n\n private _tracks: Dictionary = {}\n private _trackKeys: string[] = []\n\n private _target: T\n\n private _loop: boolean\n private _delay = 0\n private _maxTime = 0\n\n // Some status\n private _paused = false\n // 0: Not started\n // 1: Invoked started\n // 2: Has been run for at least one frame.\n private _started = 0\n\n private _additiveAnimators: Animator[]\n\n private _doneCbs: DoneCallback[]\n private _onframeCbs: OnframeCallback[]\n\n private _abortedCbs: AbortCallback[]\n\n private _clip: Clip = null\n\n constructor(target: T, loop: boolean, additiveTo?: Animator[]) {\n this._target = target;\n this._loop = loop;\n if (loop && additiveTo) {\n logError('Can\\' use additive animation on looped animation.');\n return;\n }\n this._additiveAnimators = additiveTo;\n }\n\n getTarget() {\n return this._target;\n }\n\n /**\n * Target can be changed during animation\n * For example if style is changed during state change.\n * We need to change target to the new style object.\n */\n changeTarget(target: T) {\n this._target = target;\n }\n\n /**\n * Set Animation keyframe\n * @param time \u5173\u952E\u5E27\u65F6\u95F4\uFF0C\u5355\u4F4D\u662Fms\n * @param props \u5173\u952E\u5E27\u7684\u5C5E\u6027\u503C\uFF0Ckey-value\u8868\u793A\n */\n when(time: number, props: Dictionary) {\n return this.whenWithKeys(time, props, keys(props) as string[]);\n }\n\n\n // Fast path for add keyframes of aniamteTo\n whenWithKeys(time: number, props: Dictionary, propNames: string[]) {\n const tracks = this._tracks;\n for (let i = 0; i < propNames.length; i++) {\n const propName = propNames[i];\n\n let track = tracks[propName];\n if (!track) {\n track = tracks[propName] = new Track(propName);\n\n let initialValue;\n const additiveTrack = this._getAdditiveTrack(propName);\n if (additiveTrack) {\n const lastFinalKf = additiveTrack.keyframes[additiveTrack.keyframes.length - 1];\n // Use the last state of additived animator.\n initialValue = lastFinalKf && lastFinalKf.value;\n if (additiveTrack.isValueColor && initialValue) {\n // Convert to rgba string\n initialValue = rgba2String(initialValue as number[]);\n }\n }\n else {\n initialValue = (this._target as any)[propName];\n }\n // Invalid value\n if (initialValue == null) {\n // zrLog('Invalid property ' + propName);\n continue;\n }\n // If time is 0\n // Then props is given initialize value\n // Else\n // Initialize value from current prop value\n if (time !== 0) {\n track.addKeyframe(0, cloneValue(initialValue));\n }\n\n this._trackKeys.push(propName);\n }\n // PENDING\n track.addKeyframe(time, cloneValue(props[propName]));\n }\n this._maxTime = Math.max(this._maxTime, time);\n return this;\n }\n\n pause() {\n this._clip.pause();\n this._paused = true;\n }\n\n resume() {\n this._clip.resume();\n this._paused = false;\n }\n\n isPaused(): boolean {\n return !!this._paused;\n }\n\n private _doneCallback() {\n this._setTracksFinished();\n // Clear clip\n this._clip = null;\n\n const doneList = this._doneCbs;\n if (doneList) {\n const len = doneList.length;\n for (let i = 0; i < len; i++) {\n doneList[i].call(this);\n }\n }\n }\n private _abortedCallback() {\n this._setTracksFinished();\n\n const animation = this.animation;\n const abortedList = this._abortedCbs;\n\n if (animation) {\n animation.removeClip(this._clip);\n }\n this._clip = null;\n\n if (abortedList) {\n for (let i = 0; i < abortedList.length; i++) {\n abortedList[i].call(this);\n }\n }\n }\n private _setTracksFinished() {\n const tracks = this._tracks;\n const tracksKeys = this._trackKeys;\n for (let i = 0; i < tracksKeys.length; i++) {\n tracks[tracksKeys[i]].setFinished();\n }\n }\n\n private _getAdditiveTrack(trackName: string): Track {\n let additiveTrack;\n const additiveAnimators = this._additiveAnimators;\n if (additiveAnimators) {\n for (let i = 0; i < additiveAnimators.length; i++) {\n const track = additiveAnimators[i].getTrack(trackName);\n if (track) {\n // Use the track of latest animator.\n additiveTrack = track;\n }\n }\n }\n return additiveTrack;\n }\n\n /**\n * Start the animation\n * @param easing\n * @param forceAnimate\n * @return\n */\n start(easing?: AnimationEasing, forceAnimate?: boolean) {\n if (this._started > 0) {\n return;\n }\n this._started = 1;\n\n const self = this;\n\n let tracks: Track[] = [];\n for (let i = 0; i < this._trackKeys.length; i++) {\n const propName = this._trackKeys[i];\n const track = this._tracks[propName];\n const additiveTrack = this._getAdditiveTrack(propName);\n const kfs = track.keyframes;\n track.prepare(additiveTrack);\n if (track.needsAnimate()) {\n tracks.push(track);\n }\n else if (!track.interpolable) {\n const lastKf = kfs[kfs.length - 1];\n // Set final value.\n if (lastKf) {\n (self._target as any)[track.propName] = lastKf.value;\n }\n }\n }\n // Add during callback on the last clip\n if (tracks.length || forceAnimate) {\n const clip = new Clip({\n life: this._maxTime,\n loop: this._loop,\n delay: this._delay,\n onframe(percent: number) {\n self._started = 2;\n // Remove additived animator if it's finished.\n // For the purpose of memory effeciency.\n const additiveAnimators = self._additiveAnimators;\n if (additiveAnimators) {\n let stillHasAdditiveAnimator = false;\n for (let i = 0; i < additiveAnimators.length; i++) {\n if (additiveAnimators[i]._clip) {\n stillHasAdditiveAnimator = true;\n break;\n }\n }\n if (!stillHasAdditiveAnimator) {\n self._additiveAnimators = null;\n }\n }\n\n for (let i = 0; i < tracks.length; i++) {\n // NOTE: don't cache target outside.\n // Because target may be changed.\n tracks[i].step(self._target, percent);\n }\n const onframeList = self._onframeCbs;\n if (onframeList) {\n for (let i = 0; i < onframeList.length; i++) {\n onframeList[i](self._target, percent);\n }\n }\n },\n ondestroy() {\n self._doneCallback();\n }\n });\n this._clip = clip;\n\n if (this.animation) {\n this.animation.addClip(clip);\n }\n\n if (easing && easing !== 'spline') {\n clip.easing = easing;\n }\n }\n else {\n // This optimization will help the case that in the upper application\n // the view may be refreshed frequently, where animation will be\n // called repeatly but nothing changed.\n this._doneCallback();\n }\n\n return this;\n }\n /**\n * Stop animation\n * @param {boolean} forwardToLast If move to last frame before stop\n */\n stop(forwardToLast?: boolean) {\n if (!this._clip) {\n return;\n }\n const clip = this._clip;\n if (forwardToLast) {\n // Move to last frame before stop\n clip.onframe(1);\n }\n\n this._abortedCallback();\n }\n /**\n * Set when animation delay starts\n * @param time \u5355\u4F4Dms\n */\n delay(time: number) {\n this._delay = time;\n return this;\n }\n /**\n * \u6DFB\u52A0\u52A8\u753B\u6BCF\u4E00\u5E27\u7684\u56DE\u8C03\u51FD\u6570\n * @param callback\n */\n during(cb: OnframeCallback) {\n if (cb) {\n if (!this._onframeCbs) {\n this._onframeCbs = [];\n }\n this._onframeCbs.push(cb);\n }\n return this;\n }\n /**\n * Add callback for animation end\n * @param cb\n */\n done(cb: DoneCallback) {\n if (cb) {\n if (!this._doneCbs) {\n this._doneCbs = [];\n }\n this._doneCbs.push(cb);\n }\n return this;\n }\n\n aborted(cb: AbortCallback) {\n if (cb) {\n if (!this._abortedCbs) {\n this._abortedCbs = [];\n }\n this._abortedCbs.push(cb);\n }\n return this;\n }\n\n getClip() {\n return this._clip;\n }\n\n getTrack(propName: string) {\n return this._tracks[propName];\n }\n\n /**\n * Return true if animator is not available anymore.\n */\n stopTracks(propNames: string[], forwardToLast?: boolean): boolean {\n if (!propNames.length || !this._clip) {\n return true;\n }\n const tracks = this._tracks;\n const tracksKeys = this._trackKeys;\n\n for (let i = 0; i < propNames.length; i++) {\n const track = tracks[propNames[i]];\n if (track) {\n if (forwardToLast) {\n track.step(this._target, 1);\n }\n // If the track has not been run for at least wrong frame.\n // The property may be stayed at the final state. when setToFinal is set true.\n // For example:\n // Animate x from 0 to 100, then animate to 150 immediately.\n // We want the x is translated from 0 to 150, not 100 to 150.\n else if (this._started === 1) {\n track.step(this._target, 0);\n }\n // Set track to finished\n track.setFinished();\n }\n }\n let allAborted = true;\n for (let i = 0; i < tracksKeys.length; i++) {\n if (!tracks[tracksKeys[i]].isFinished()) {\n allAborted = false;\n break;\n }\n }\n // Remove clip if all tracks has been aborted.\n if (allAborted) {\n this._abortedCallback();\n }\n\n return allAborted;\n }\n\n /**\n * Save values of final state to target.\n * It is mainly used in state mangement. When state is switching during animation.\n * We need to save final state of animation to the normal state. Not interpolated value.\n */\n saveFinalToTarget(target: T, trackKeys?: readonly string[]) {\n if (!target) { // DO nothing if target is not given.\n return;\n }\n\n trackKeys = trackKeys || this._trackKeys;\n\n for (let i = 0; i < trackKeys.length; i++) {\n const propName = trackKeys[i];\n const track = this._tracks[propName];\n if (!track || track.isFinished()) { // Ignore finished track.\n continue;\n }\n const kfs = track.keyframes;\n const lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n // TODO CLONE?\n let val: unknown = cloneValue(lastKf.value as any);\n if (track.isValueColor) {\n val = rgba2String(val as number[]);\n }\n\n (target as any)[propName] = val;\n }\n }\n }\n\n // Change final value after animator has been started.\n // NOTE: Be careful to use it.\n __changeFinalValue(finalProps: Dictionary, trackKeys?: readonly string[]) {\n trackKeys = trackKeys || keys(finalProps);\n\n for (let i = 0; i < trackKeys.length; i++) {\n const propName = trackKeys[i];\n\n const track = this._tracks[propName];\n if (!track) {\n continue;\n }\n\n const kfs = track.keyframes;\n if (kfs.length > 1) {\n // Remove the original last kf and add again.\n const lastKf = kfs.pop();\n\n track.addKeyframe(lastKf.time, finalProps[propName]);\n // Prepare again.\n track.prepare(track.getAdditiveTrack());\n }\n }\n }\n\n}", "/**\n * Animation main class, dispatch and manage all animation controllers\n *\n */\n// TODO Additive animation\n// http://iosoteric.com/additive-animations-animatewithduration-in-ios-8/\n// https://developer.apple.com/videos/wwdc2014/#236\n\nimport Eventful from '../core/Eventful';\nimport requestAnimationFrame from './requestAnimationFrame';\nimport Animator from './Animator';\nimport Clip from './Clip';\n\n\ninterface Stage {\n update?: () => void\n}\ntype OnframeCallback = (deltaTime: number) => void\n\ninterface AnimationOption {\n stage?: Stage\n onframe?: OnframeCallback\n}\n/**\n * @example\n * const animation = new Animation();\n * const obj = {\n * x: 100,\n * y: 100\n * };\n * animation.animate(node.position)\n * .when(1000, {\n * x: 500,\n * y: 500\n * })\n * .when(2000, {\n * x: 100,\n * y: 100\n * })\n * .start('spline');\n */\n\nexport default class Animation extends Eventful {\n\n stage: Stage\n\n onframe: OnframeCallback\n\n // Use linked list to store clip\n private _clipsHead: Clip\n private _clipsTail: Clip\n\n private _running: boolean = false\n\n private _time: number = 0\n private _pausedTime: number = 0\n private _pauseStart: number = 0\n\n private _paused = false;\n\n constructor(opts?: AnimationOption) {\n super();\n\n opts = opts || {};\n\n this.stage = opts.stage || {};\n\n this.onframe = opts.onframe || function () {};\n }\n\n /**\n * Add clip\n */\n addClip(clip: Clip) {\n if (clip.animation) {\n // Clip has been added\n this.removeClip(clip);\n }\n\n if (!this._clipsHead) {\n this._clipsHead = this._clipsTail = clip;\n }\n else {\n this._clipsTail.next = clip;\n clip.prev = this._clipsTail;\n clip.next = null;\n this._clipsTail = clip;\n }\n clip.animation = this;\n }\n /**\n * Add animator\n */\n addAnimator(animator: Animator) {\n animator.animation = this;\n const clip = animator.getClip();\n if (clip) {\n this.addClip(clip);\n }\n }\n /**\n * Delete animation clip\n */\n removeClip(clip: Clip) {\n if (!clip.animation) {\n return;\n }\n const prev = clip.prev;\n const next = clip.next;\n if (prev) {\n prev.next = next;\n }\n else {\n // Is head\n this._clipsHead = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n // Is tail\n this._clipsTail = prev;\n }\n clip.next = clip.prev = clip.animation = null;\n }\n\n /**\n * Delete animation clip\n */\n removeAnimator(animator: Animator) {\n const clip = animator.getClip();\n if (clip) {\n this.removeClip(clip);\n }\n animator.animation = null;\n }\n\n update(notTriggerFrameAndStageUpdate?: boolean) {\n const time = new Date().getTime() - this._pausedTime;\n const delta = time - this._time;\n let clip = this._clipsHead;\n\n while (clip) {\n // Save the nextClip before step.\n // So the loop will not been affected if the clip is removed in the callback\n const nextClip = clip.next;\n let finished = clip.step(time, delta);\n if (finished) {\n clip.ondestroy && clip.ondestroy();\n this.removeClip(clip);\n clip = nextClip;\n }\n else {\n clip = nextClip;\n }\n }\n\n this._time = time;\n\n if (!notTriggerFrameAndStageUpdate) {\n this.onframe(delta);\n\n // 'frame' should be triggered before stage, because upper application\n // depends on the sequence (e.g., echarts-stream and finish\n // event judge)\n this.trigger('frame', delta);\n\n this.stage.update && this.stage.update();\n }\n }\n\n _startLoop() {\n const self = this;\n\n this._running = true;\n\n function step() {\n if (self._running) {\n\n requestAnimationFrame(step);\n\n !self._paused && self.update();\n }\n }\n\n requestAnimationFrame(step);\n }\n\n /**\n * Start animation.\n */\n start() {\n if (this._running) {\n return;\n }\n\n this._time = new Date().getTime();\n this._pausedTime = 0;\n\n this._startLoop();\n }\n\n /**\n * Stop animation.\n */\n stop() {\n this._running = false;\n }\n\n /**\n * Pause animation.\n */\n pause() {\n if (!this._paused) {\n this._pauseStart = new Date().getTime();\n this._paused = true;\n }\n }\n\n /**\n * Resume animation.\n */\n resume() {\n if (this._paused) {\n this._pausedTime += (new Date().getTime()) - this._pauseStart;\n this._paused = false;\n }\n }\n\n /**\n * Clear animation.\n */\n clear() {\n let clip = this._clipsHead;\n\n while (clip) {\n let nextClip = clip.next;\n clip.prev = clip.next = clip.animation = null;\n clip = nextClip;\n }\n\n this._clipsHead = this._clipsTail = null;\n }\n\n /**\n * Whether animation finished.\n */\n isFinished() {\n return this._clipsHead == null;\n }\n\n /**\n * Creat animator for a target, whose props can be animated.\n */\n // TODO Gap\n animate(target: T, options: {\n loop?: boolean // Whether loop animation.\n }) {\n options = options || {};\n\n // Start animation loop\n this.start();\n\n const animator = new Animator(\n target,\n options.loop\n );\n\n this.addAnimator(animator);\n\n return animator;\n }\n}", "\n/* global document */\n\nimport {\n addEventListener,\n removeEventListener,\n normalizeEvent,\n getNativeEvent\n} from '../core/event';\nimport * as zrUtil from '../core/util';\nimport Eventful from '../core/Eventful';\nimport env from '../core/env';\nimport { Dictionary, ZRRawEvent, ZRRawMouseEvent } from '../core/types';\nimport { VectorArray } from '../core/vector';\nimport Handler from '../Handler';\n\ntype DomHandlersMap = Dictionary<(this: HandlerDomProxy, event: ZRRawEvent) => void>\n\ntype DomExtended = Node & {\n domBelongToZr: boolean\n}\n\nconst TOUCH_CLICK_DELAY = 300;\n\nconst globalEventSupported = env.domSupported;\n\n\nconst localNativeListenerNames = (function () {\n const mouseHandlerNames = [\n 'click', 'dblclick', 'mousewheel', 'wheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n ];\n const touchHandlerNames = [\n 'touchstart', 'touchend', 'touchmove'\n ];\n const pointerEventNameMap = {\n pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1\n };\n const pointerHandlerNames = zrUtil.map(mouseHandlerNames, function (name) {\n const nm = name.replace('mouse', 'pointer');\n return pointerEventNameMap.hasOwnProperty(nm) ? nm : name;\n });\n\n return {\n mouse: mouseHandlerNames,\n touch: touchHandlerNames,\n pointer: pointerHandlerNames\n };\n})();\n\nconst globalNativeListenerNames = {\n mouse: ['mousemove', 'mouseup'],\n pointer: ['pointermove', 'pointerup']\n};\n\nlet wheelEventSupported = false;\n\n\n// Although firfox has 'DOMMouseScroll' event and do not has 'mousewheel' event,\n// the 'DOMMouseScroll' event do not performe the same behavior on touch pad device\n// (like on Mac) ('DOMMouseScroll' will be triggered only if a big wheel delta).\n// So we should not use it.\n// function eventNameFix(name: string) {\n// return (name === 'mousewheel' && env.browser.firefox) ? 'DOMMouseScroll' : name;\n// }\n\nfunction isPointerFromTouch(event: ZRRawEvent) {\n const pointerType = (event as any).pointerType;\n return pointerType === 'pen' || pointerType === 'touch';\n}\n\n// function useMSGuesture(handlerProxy, event) {\n// return isPointerFromTouch(event) && !!handlerProxy._msGesture;\n// }\n\n// function onMSGestureChange(proxy, event) {\n// if (event.translationX || event.translationY) {\n// // mousemove is carried by MSGesture to reduce the sensitivity.\n// proxy.handler.dispatchToElement(event.target, 'mousemove', event);\n// }\n// if (event.scale !== 1) {\n// event.pinchX = event.offsetX;\n// event.pinchY = event.offsetY;\n// event.pinchScale = event.scale;\n// proxy.handler.dispatchToElement(event.target, 'pinch', event);\n// }\n// }\n\n/**\n * Prevent mouse event from being dispatched after Touch Events action\n * @see \n * 1. Mobile browsers dispatch mouse events 300ms after touchend.\n * 2. Chrome for Android dispatch mousedown for long-touch about 650ms\n * Result: Blocking Mouse Events for 700ms.\n *\n * @param {DOMHandlerScope} scope\n */\nfunction setTouchTimer(scope: DOMHandlerScope) {\n scope.touching = true;\n if (scope.touchTimer != null) {\n clearTimeout(scope.touchTimer);\n scope.touchTimer = null;\n }\n scope.touchTimer = setTimeout(function () {\n scope.touching = false;\n scope.touchTimer = null;\n }, 700);\n}\n\n// Mark touch, which is useful in distinguish touch and\n// mouse event in upper applicatoin.\nfunction markTouch(event: ZRRawEvent) {\n event && (event.zrByTouch = true);\n}\n\n\n// function markTriggeredFromLocal(event) {\n// event && (event.__zrIsFromLocal = true);\n// }\n\n// function isTriggeredFromLocal(instance, event) {\n// return !!(event && event.__zrIsFromLocal);\n// }\n\nfunction normalizeGlobalEvent(instance: HandlerDomProxy, event: ZRRawEvent) {\n // offsetX, offsetY still need to be calculated. They are necessary in the event\n // handlers of the upper applications. Set `true` to force calculate them.\n return normalizeEvent(\n instance.dom,\n // TODO ANY TYPE\n new FakeGlobalEvent(instance, event) as any as ZRRawEvent,\n true\n );\n}\n\n/**\n * Detect whether the given el is in `painterRoot`.\n */\nfunction isLocalEl(instance: HandlerDomProxy, el: Node) {\n let elTmp = el;\n let isLocal = false;\n while (elTmp && elTmp.nodeType !== 9\n && !(\n isLocal = (elTmp as DomExtended).domBelongToZr\n || (elTmp !== el && elTmp === instance.painterRoot)\n )\n ) {\n elTmp = elTmp.parentNode;\n }\n return isLocal;\n}\n\n/**\n * Make a fake event but not change the original event,\n * becuase the global event probably be used by other\n * listeners not belonging to zrender.\n * @class\n */\nclass FakeGlobalEvent {\n type: string\n target: HTMLElement\n currentTarget: HTMLElement\n\n pointerType: string\n clientX: number\n clientY: number\n\n constructor(instance: HandlerDomProxy, event: ZRRawEvent) {\n this.type = event.type;\n this.target = this.currentTarget = instance.dom;\n this.pointerType = (event as any).pointerType;\n // Necessray for the force calculation of zrX, zrY\n this.clientX = (event as ZRRawMouseEvent).clientX;\n this.clientY = (event as ZRRawMouseEvent).clientY;\n // Because we do not mount global listeners to touch events,\n // we do not copy `targetTouches` and `changedTouches` here.\n }\n\n // we make the default methods on the event do nothing,\n // otherwise it is dangerous. See more details in\n // [DRAG_OUTSIDE] in `Handler.js`.\n stopPropagation = zrUtil.noop\n stopImmediatePropagation = zrUtil.noop\n preventDefault = zrUtil.noop\n}\n\n\n/**\n * Local DOM Handlers\n * @this {HandlerProxy}\n */\nconst localDOMHandlers: DomHandlersMap = {\n\n mousedown(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n this.__mayPointerCapture = [event.zrX, event.zrY];\n\n this.trigger('mousedown', event);\n },\n\n mousemove(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n const downPoint = this.__mayPointerCapture;\n if (downPoint && (event.zrX !== downPoint[0] || event.zrY !== downPoint[1])) {\n this.__togglePointerCapture(true);\n }\n\n this.trigger('mousemove', event);\n },\n\n mouseup(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n this.__togglePointerCapture(false);\n\n this.trigger('mouseup', event);\n },\n\n mouseout(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n // There might be some doms created by upper layer application\n // at the same level of painter.getViewportRoot() (e.g., tooltip\n // dom created by echarts), where 'globalout' event should not\n // be triggered when mouse enters these doms. (But 'mouseout'\n // should be triggered at the original hovered element as usual).\n const element = (event as any).toElement || (event as ZRRawMouseEvent).relatedTarget;\n\n // For SVG rendering, there are SVG elements inside `this.dom`.\n // (especially in decal case). Should not to handle those \"mouseout\"..\n if (!isLocalEl(this, element)) {\n // Similarly to the browser did on `document` and touch event,\n // `globalout` will be delayed to final pointer cature release.\n if (this.__pointerCapturing) {\n event.zrEventControl = 'no_globalout';\n }\n\n this.trigger('mouseout', event);\n }\n },\n\n wheel(event: ZRRawEvent) {\n // Morden agent has supported event `wheel` instead of `mousewheel`.\n // About the polyfill of the props \"delta\", see \"arc/core/event.ts\".\n\n // Firefox only support `wheel` rather than `mousewheel`. Although firfox has been supporting\n // event `DOMMouseScroll`, it do not act the same behavior as `wheel` on touch pad device\n // like on Mac, where `DOMMouseScroll` will be triggered only if a big wheel delta occurs,\n // and it results in no chance to \"preventDefault\". So we should not use `DOMMouseScroll`.\n\n wheelEventSupported = true;\n event = normalizeEvent(this.dom, event);\n // Follow the definition of the previous version, the zrender event name is still 'mousewheel'.\n this.trigger('mousewheel', event);\n },\n\n mousewheel(event: ZRRawEvent) {\n // IE8- and some other lagacy agent do not support event `wheel`, so we still listen\n // to the legacy event `mouseevent`.\n // Typically if event `wheel` is suppored and the handler has been mounted on a\n // DOM element, the lagecy `mousewheel` event will not be triggered (Chrome and Safari).\n // But we still do this guard to avoid to duplicated handle.\n if (wheelEventSupported) {\n return;\n }\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n\n touchstart(event: ZRRawEvent) {\n // Default mouse behaviour should not be disabled here.\n // For example, page may needs to be slided.\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.__lastTouchMoment = new Date();\n\n this.handler.processGesture(event, 'start');\n\n // For consistent event listener for both touch device and mouse device,\n // we simulate \"mouseover-->mousedown\" in touch device. So we trigger\n // `mousemove` here (to trigger `mouseover` inside), and then trigger\n // `mousedown`.\n localDOMHandlers.mousemove.call(this, event);\n localDOMHandlers.mousedown.call(this, event);\n },\n\n touchmove(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.handler.processGesture(event, 'change');\n\n // Mouse move should always be triggered no matter whether\n // there is gestrue event, because mouse move and pinch may\n // be used at the same time.\n localDOMHandlers.mousemove.call(this, event);\n },\n\n touchend(event: ZRRawEvent) {\n event = normalizeEvent(this.dom, event);\n\n markTouch(event);\n\n this.handler.processGesture(event, 'end');\n\n localDOMHandlers.mouseup.call(this, event);\n\n // Do not trigger `mouseout` here, in spite of `mousemove`(`mouseover`) is\n // triggered in `touchstart`. This seems to be illogical, but by this mechanism,\n // we can conveniently implement \"hover style\" in both PC and touch device just\n // by listening to `mouseover` to add \"hover style\" and listening to `mouseout`\n // to remove \"hover style\" on an element, without any additional code for\n // compatibility. (`mouseout` will not be triggered in `touchend`, so \"hover\n // style\" will remain for user view)\n\n // click event should always be triggered no matter whether\n // there is gestrue event. System click can not be prevented.\n if (+new Date() - (+this.__lastTouchMoment) < TOUCH_CLICK_DELAY) {\n localDOMHandlers.click.call(this, event);\n }\n },\n\n pointerdown(event: ZRRawEvent) {\n localDOMHandlers.mousedown.call(this, event);\n\n // if (useMSGuesture(this, event)) {\n // this._msGesture.addPointer(event.pointerId);\n // }\n },\n\n pointermove(event: ZRRawEvent) {\n // FIXME\n // pointermove is so sensitive that it always triggered when\n // tap(click) on touch screen, which affect some judgement in\n // upper application. So, we dont support mousemove on MS touch\n // device yet.\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mousemove.call(this, event);\n }\n },\n\n pointerup(event: ZRRawEvent) {\n localDOMHandlers.mouseup.call(this, event);\n },\n\n pointerout(event: ZRRawEvent) {\n // pointerout will be triggered when tap on touch screen\n // (IE11+/Edge on MS Surface) after click event triggered,\n // which is inconsistent with the mousout behavior we defined\n // in touchend. So we unify them.\n // (check localDOMHandlers.touchend for detailed explanation)\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mouseout.call(this, event);\n }\n }\n\n};\n\n/**\n * Othere DOM UI Event handlers for zr dom.\n * @this {HandlerProxy}\n */\nzrUtil.each(['click', 'dblclick', 'contextmenu'], function (name) {\n localDOMHandlers[name] = function (event) {\n event = normalizeEvent(this.dom, event);\n this.trigger(name, event);\n };\n});\n\n\n/**\n * DOM UI Event handlers for global page.\n *\n * [Caution]:\n * those handlers should both support in capture phase and bubble phase!\n */\nconst globalDOMHandlers: DomHandlersMap = {\n\n pointermove: function (event: ZRRawEvent) {\n // FIXME\n // pointermove is so sensitive that it always triggered when\n // tap(click) on touch screen, which affect some judgement in\n // upper application. So, we dont support mousemove on MS touch\n // device yet.\n if (!isPointerFromTouch(event)) {\n globalDOMHandlers.mousemove.call(this, event);\n }\n },\n\n pointerup: function (event: ZRRawEvent) {\n globalDOMHandlers.mouseup.call(this, event);\n },\n\n mousemove: function (event: ZRRawEvent) {\n this.trigger('mousemove', event);\n },\n\n mouseup: function (event: ZRRawEvent) {\n const pointerCaptureReleasing = this.__pointerCapturing;\n\n this.__togglePointerCapture(false);\n\n this.trigger('mouseup', event);\n\n if (pointerCaptureReleasing) {\n event.zrEventControl = 'only_globalout';\n this.trigger('mouseout', event);\n }\n }\n\n};\n\n\nfunction mountLocalDOMEventListeners(instance: HandlerDomProxy, scope: DOMHandlerScope) {\n const domHandlers = scope.domHandlers;\n\n if (env.pointerEventsSupported) { // Only IE11+/Edge\n // 1. On devices that both enable touch and mouse (e.g., MS Surface and lenovo X240),\n // IE11+/Edge do not trigger touch event, but trigger pointer event and mouse event\n // at the same time.\n // 2. On MS Surface, it probablely only trigger mousedown but no mouseup when tap on\n // screen, which do not occurs in pointer event.\n // So we use pointer event to both detect touch gesture and mouse behavior.\n zrUtil.each(localNativeListenerNames.pointer, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n });\n });\n\n // FIXME\n // Note: MS Gesture require CSS touch-action set. But touch-action is not reliable,\n // which does not prevent defuault behavior occasionally (which may cause view port\n // zoomed in but use can not zoom it back). And event.preventDefault() does not work.\n // So we have to not to use MSGesture and not to support touchmove and pinch on MS\n // touch screen. And we only support click behavior on MS touch screen now.\n\n // MS Gesture Event is only supported on IE11+/Edge and on Windows 8+.\n // We dont support touch on IE on win7.\n // See \n // if (typeof MSGesture === 'function') {\n // (this._msGesture = new MSGesture()).target = dom; // jshint ignore:line\n // dom.addEventListener('MSGestureChange', onMSGestureChange);\n // }\n }\n else {\n if (env.touchEventsSupported) {\n zrUtil.each(localNativeListenerNames.touch, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n setTouchTimer(scope);\n });\n });\n // Handler of 'mouseout' event is needed in touch mode, which will be mounted below.\n // addEventListener(root, 'mouseout', this._mouseoutHandler);\n }\n\n // 1. Considering some devices that both enable touch and mouse event (like on MS Surface\n // and lenovo X240, @see #2350), we make mouse event be always listened, otherwise\n // mouse event can not be handle in those devices.\n // 2. On MS Surface, Chrome will trigger both touch event and mouse event. How to prevent\n // mouseevent after touch event triggered, see `setTouchTimer`.\n zrUtil.each(localNativeListenerNames.mouse, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event: ZRRawEvent) {\n event = getNativeEvent(event);\n if (!scope.touching) {\n // markTriggeredFromLocal(event);\n domHandlers[nativeEventName].call(instance, event);\n }\n });\n });\n }\n}\n\nfunction mountGlobalDOMEventListeners(instance: HandlerDomProxy, scope: DOMHandlerScope) {\n // Only IE11+/Edge. See the comment in `mountLocalDOMEventListeners`.\n if (env.pointerEventsSupported) {\n zrUtil.each(globalNativeListenerNames.pointer, mount);\n }\n // Touch event has implemented \"drag outside\" so we do not mount global listener for touch event.\n // (see https://www.w3.org/TR/touch-events/#the-touchmove-event) (see also `DRAG_OUTSIDE`).\n // We do not consider \"both-support-touch-and-mouse device\" for this feature (see the comment of\n // `mountLocalDOMEventListeners`) to avoid bugs util some requirements come.\n else if (!env.touchEventsSupported) {\n zrUtil.each(globalNativeListenerNames.mouse, mount);\n }\n\n function mount(nativeEventName: string) {\n function nativeEventListener(event: ZRRawEvent) {\n event = getNativeEvent(event);\n // See the reason in [DRAG_OUTSIDE] in `Handler.js`\n // This checking supports both `useCapture` or not.\n // PENDING: if there is performance issue in some devices,\n // we probably can not use `useCapture` and change a easier\n // to judes whether local (mark).\n if (!isLocalEl(instance, event.target as Node)) {\n event = normalizeGlobalEvent(instance, event);\n scope.domHandlers[nativeEventName].call(instance, event);\n }\n }\n mountSingleDOMEventListener(\n scope, nativeEventName, nativeEventListener,\n {capture: true} // See [DRAG_OUTSIDE] in `Handler.js`\n );\n }\n}\n\nfunction mountSingleDOMEventListener(\n scope: DOMHandlerScope,\n nativeEventName: string,\n listener: EventListener,\n opt?: boolean | AddEventListenerOptions\n) {\n scope.mounted[nativeEventName] = listener;\n scope.listenerOpts[nativeEventName] = opt;\n addEventListener(scope.domTarget, nativeEventName, listener, opt);\n}\n\nfunction unmountDOMEventListeners(scope: DOMHandlerScope) {\n const mounted = scope.mounted;\n for (let nativeEventName in mounted) {\n if (mounted.hasOwnProperty(nativeEventName)) {\n removeEventListener(\n scope.domTarget, nativeEventName, mounted[nativeEventName],\n scope.listenerOpts[nativeEventName]\n );\n }\n }\n scope.mounted = {};\n}\n\n\nclass DOMHandlerScope {\n domTarget: HTMLElement | HTMLDocument\n domHandlers: DomHandlersMap\n\n // Key: eventName, value: mounted handler funcitons.\n // Used for unmount.\n mounted: Dictionary = {};\n\n listenerOpts: Dictionary = {};\n\n touchTimer: ReturnType;\n touching = false;\n\n constructor(\n domTarget: HTMLElement | HTMLDocument,\n domHandlers: DomHandlersMap\n ) {\n this.domTarget = domTarget;\n this.domHandlers = domHandlers;\n\n }\n}\n\n\nexport default class HandlerDomProxy extends Eventful {\n\n dom: HTMLElement\n painterRoot: HTMLElement\n\n handler: Handler\n\n private _localHandlerScope: DOMHandlerScope\n private _globalHandlerScope: DOMHandlerScope\n\n __lastTouchMoment: Date\n\n // See [DRAG_OUTSIDE] in `Handler.ts`.\n __pointerCapturing = false\n // [x, y]\n __mayPointerCapture: VectorArray\n\n\n constructor(dom: HTMLElement, painterRoot: HTMLElement) {\n super();\n\n this.dom = dom;\n this.painterRoot = painterRoot;\n\n this._localHandlerScope = new DOMHandlerScope(dom, localDOMHandlers);\n\n if (globalEventSupported) {\n this._globalHandlerScope = new DOMHandlerScope(document, globalDOMHandlers);\n }\n\n mountLocalDOMEventListeners(this, this._localHandlerScope);\n }\n\n dispose() {\n unmountDOMEventListeners(this._localHandlerScope);\n if (globalEventSupported) {\n unmountDOMEventListeners(this._globalHandlerScope);\n }\n }\n\n setCursor(cursorStyle: string) {\n this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');\n }\n\n /**\n * See [DRAG_OUTSIDE] in `Handler.js`.\n * @implement\n * @param isPointerCapturing Should never be `null`/`undefined`.\n * `true`: start to capture pointer if it is not capturing.\n * `false`: end the capture if it is capturing.\n */\n __togglePointerCapture(isPointerCapturing?: boolean) {\n this.__mayPointerCapture = null;\n\n if (globalEventSupported\n && ((+this.__pointerCapturing) ^ (+isPointerCapturing))\n ) {\n this.__pointerCapturing = isPointerCapturing;\n\n const globalHandlerScope = this._globalHandlerScope;\n isPointerCapturing\n ? mountGlobalDOMEventListeners(this, globalHandlerScope)\n : unmountDOMEventListeners(globalHandlerScope);\n }\n }\n}\n\nexport interface HandlerProxyInterface extends Eventful {\n handler: Handler\n dispose: () => void\n setCursor: (cursorStyle?: string) => void\n}", "let dpr = 1;\n\n// If in browser environment\nif (typeof window !== 'undefined') {\n dpr = Math.max(window.devicePixelRatio \n \t|| (window.screen && (window.screen as any).deviceXDPI / (window.screen as any).logicalXDPI) \n \t|| 1, 1);\n}\n\n/**\n * Debug log mode:\n * 0: Do nothing, for release.\n * 1: console.error, for debug.\n */\nexport const debugMode = 0;\n\n// retina \u5C4F\u5E55\u4F18\u5316\nexport const devicePixelRatio = dpr;\n\n\n/**\n * Determine when to turn on dark mode based on the luminance of backgroundColor\n */\nexport const DARK_MODE_THRESHOLD = 0.4;\n\n/**\n * Color of default dark label.\n */\nexport const DARK_LABEL_COLOR = '#333';\n\n/**\n * Color of default light label.\n */\nexport const LIGHT_LABEL_COLOR = '#ccc';\n\n/**\n * Color of default light label.\n */\nexport const LIGHTER_LABEL_COLOR = '#eee';\n", "/**\n * 3x2\u77E9\u9635\u64CD\u4F5C\u7C7B\n * @exports zrender/tool/matrix\n */\n\n/* global Float32Array */\n\nimport {VectorArray} from './vector';\n\nexport type MatrixArray = number[]\n/**\n * Create a identity matrix.\n */\nexport function create(): MatrixArray {\n return [1, 0, 0, 1, 0, 0];\n}\n\n/**\n * \u8BBE\u7F6E\u77E9\u9635\u4E3A\u5355\u4F4D\u77E9\u9635\n */\nexport function identity(out: MatrixArray): MatrixArray {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 1;\n out[4] = 0;\n out[5] = 0;\n return out;\n}\n\n/**\n * \u590D\u5236\u77E9\u9635\n */\nexport function copy(out: MatrixArray, m: MatrixArray): MatrixArray {\n out[0] = m[0];\n out[1] = m[1];\n out[2] = m[2];\n out[3] = m[3];\n out[4] = m[4];\n out[5] = m[5];\n return out;\n}\n\n/**\n * \u77E9\u9635\u76F8\u4E58\n */\nexport function mul(out: MatrixArray, m1: MatrixArray, m2: MatrixArray): MatrixArray {\n // Consider matrix.mul(m, m2, m);\n // where out is the same as m2.\n // So use temp constiable to escape error.\n const out0 = m1[0] * m2[0] + m1[2] * m2[1];\n const out1 = m1[1] * m2[0] + m1[3] * m2[1];\n const out2 = m1[0] * m2[2] + m1[2] * m2[3];\n const out3 = m1[1] * m2[2] + m1[3] * m2[3];\n const out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];\n const out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];\n out[0] = out0;\n out[1] = out1;\n out[2] = out2;\n out[3] = out3;\n out[4] = out4;\n out[5] = out5;\n return out;\n}\n\n/**\n * \u5E73\u79FB\u53D8\u6362\n */\nexport function translate(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4] + v[0];\n out[5] = a[5] + v[1];\n return out;\n}\n\n/**\n * \u65CB\u8F6C\u53D8\u6362\n */\nexport function rotate(out: MatrixArray, a: MatrixArray, rad: number): MatrixArray {\n const aa = a[0];\n const ac = a[2];\n const atx = a[4];\n const ab = a[1];\n const ad = a[3];\n const aty = a[5];\n const st = Math.sin(rad);\n const ct = Math.cos(rad);\n\n out[0] = aa * ct + ab * st;\n out[1] = -aa * st + ab * ct;\n out[2] = ac * ct + ad * st;\n out[3] = -ac * st + ct * ad;\n out[4] = ct * atx + st * aty;\n out[5] = ct * aty - st * atx;\n return out;\n}\n\n/**\n * \u7F29\u653E\u53D8\u6362\n */\nexport function scale(out: MatrixArray, a: MatrixArray, v: VectorArray): MatrixArray {\n const vx = v[0];\n const vy = v[1];\n out[0] = a[0] * vx;\n out[1] = a[1] * vy;\n out[2] = a[2] * vx;\n out[3] = a[3] * vy;\n out[4] = a[4] * vx;\n out[5] = a[5] * vy;\n return out;\n}\n\n/**\n * \u6C42\u9006\u77E9\u9635\n */\nexport function invert(out: MatrixArray, a: MatrixArray): MatrixArray {\n\n const aa = a[0];\n const ac = a[2];\n const atx = a[4];\n const ab = a[1];\n const ad = a[3];\n const aty = a[5];\n\n let det = aa * ad - ab * ac;\n if (!det) {\n return null;\n }\n det = 1.0 / det;\n\n out[0] = ad * det;\n out[1] = -ab * det;\n out[2] = -ac * det;\n out[3] = aa * det;\n out[4] = (ac * aty - ad * atx) * det;\n out[5] = (ab * atx - aa * aty) * det;\n return out;\n}\n\n/**\n * Clone a new matrix.\n */\nexport function clone(a: MatrixArray): MatrixArray {\n const b = create();\n copy(b, a);\n return b;\n}", "import * as matrix from './matrix';\nimport * as vector from './vector';\n\nconst mIdentity = matrix.identity;\n\nconst EPSILON = 5e-5;\n\nfunction isNotAroundZero(val: number) {\n return val > EPSILON || val < -EPSILON;\n}\n\nconst scaleTmp: vector.VectorArray = [];\nconst tmpTransform: matrix.MatrixArray = [];\nconst originTransform = matrix.create();\nconst abs = Math.abs;\n\nclass Transformable {\n\n parent: Transformable\n\n x: number\n y: number\n\n scaleX: number\n scaleY: number\n\n skewX: number\n skewY: number\n\n rotation: number\n /**\n * Origin of scale, rotation, skew\n */\n originX: number\n originY: number\n\n /**\n * Scale ratio\n */\n globalScaleRatio: number\n\n transform: matrix.MatrixArray\n invTransform: matrix.MatrixArray\n\n /**\n * Get computed local transform\n */\n getLocalTransform(m?: matrix.MatrixArray) {\n return Transformable.getLocalTransform(this, m);\n }\n\n /**\n * Set position from array\n */\n setPosition(arr: number[]) {\n this.x = arr[0];\n this.y = arr[1];\n }\n /**\n * Set scale from array\n */\n setScale(arr: number[]) {\n this.scaleX = arr[0];\n this.scaleY = arr[1];\n }\n\n /**\n * Set skew from array\n */\n setSkew(arr: number[]) {\n this.skewX = arr[0];\n this.skewY = arr[1];\n }\n\n /**\n * Set origin from array\n */\n setOrigin(arr: number[]) {\n this.originX = arr[0];\n this.originY = arr[1];\n }\n\n /**\n * If needs to compute transform\n */\n needLocalTransform(): boolean {\n return isNotAroundZero(this.rotation)\n || isNotAroundZero(this.x)\n || isNotAroundZero(this.y)\n || isNotAroundZero(this.scaleX - 1)\n || isNotAroundZero(this.scaleY - 1);\n }\n\n /**\n * Update global transform\n */\n updateTransform() {\n const parentTransform = this.parent && this.parent.transform;\n const needLocalTransform = this.needLocalTransform();\n\n let m = this.transform;\n if (!(needLocalTransform || parentTransform)) {\n m && mIdentity(m);\n return;\n }\n\n m = m || matrix.create();\n\n if (needLocalTransform) {\n this.getLocalTransform(m);\n }\n else {\n mIdentity(m);\n }\n\n // \u5E94\u7528\u7236\u8282\u70B9\u53D8\u6362\n if (parentTransform) {\n if (needLocalTransform) {\n matrix.mul(m, parentTransform, m);\n }\n else {\n matrix.copy(m, parentTransform);\n }\n }\n // \u4FDD\u5B58\u8FD9\u4E2A\u53D8\u6362\u77E9\u9635\n this.transform = m;\n\n this._resolveGlobalScaleRatio(m);\n }\n\n private _resolveGlobalScaleRatio(m: matrix.MatrixArray) {\n const globalScaleRatio = this.globalScaleRatio;\n if (globalScaleRatio != null && globalScaleRatio !== 1) {\n this.getGlobalScale(scaleTmp);\n const relX = scaleTmp[0] < 0 ? -1 : 1;\n const relY = scaleTmp[1] < 0 ? -1 : 1;\n const sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0;\n const sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0;\n\n m[0] *= sx;\n m[1] *= sx;\n m[2] *= sy;\n m[3] *= sy;\n }\n\n this.invTransform = this.invTransform || matrix.create();\n matrix.invert(this.invTransform, m);\n }\n\n /**\n * Get computed global transform\n * NOTE: this method will force update transform on all ancestors.\n * Please be aware of the potential performance cost.\n */\n getComputedTransform() {\n let transformNode: Transformable = this;\n const ancestors: Transformable[] = [];\n while (transformNode) {\n ancestors.push(transformNode);\n transformNode = transformNode.parent;\n }\n\n // Update from topdown.\n while (transformNode = ancestors.pop()) {\n transformNode.updateTransform();\n }\n\n return this.transform;\n }\n\n setLocalTransform(m: vector.VectorArray) {\n if (!m) {\n // TODO return or set identity?\n return;\n }\n let sx = m[0] * m[0] + m[1] * m[1];\n let sy = m[2] * m[2] + m[3] * m[3];\n\n const rotation = Math.atan2(m[1], m[0]);\n\n const shearX = Math.PI / 2 + rotation - Math.atan2(m[3], m[2]);\n sy = Math.sqrt(sy) * Math.cos(shearX);\n sx = Math.sqrt(sx);\n\n this.skewX = shearX;\n this.skewY = 0;\n this.rotation = -rotation;\n\n this.x = +m[4];\n this.y = +m[5];\n this.scaleX = sx;\n this.scaleY = sy;\n\n this.originX = 0;\n this.originY = 0;\n }\n /**\n * \u5206\u89E3`transform`\u77E9\u9635\u5230`position`, `rotation`, `scale`\n */\n decomposeTransform() {\n if (!this.transform) {\n return;\n }\n const parent = this.parent;\n let m = this.transform;\n if (parent && parent.transform) {\n // Get local transform and decompose them to position, scale, rotation\n matrix.mul(tmpTransform, parent.invTransform, m);\n m = tmpTransform;\n }\n const ox = this.originX;\n const oy = this.originY;\n if (ox || oy) {\n originTransform[4] = ox;\n originTransform[5] = oy;\n matrix.mul(tmpTransform, m, originTransform);\n tmpTransform[4] -= ox;\n tmpTransform[5] -= oy;\n m = tmpTransform;\n }\n\n this.setLocalTransform(m);\n }\n\n /**\n * Get global scale\n */\n getGlobalScale(out?: vector.VectorArray): vector.VectorArray {\n const m = this.transform;\n out = out || [];\n if (!m) {\n out[0] = 1;\n out[1] = 1;\n return out;\n }\n out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]);\n out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]);\n if (m[0] < 0) {\n out[0] = -out[0];\n }\n if (m[3] < 0) {\n out[1] = -out[1];\n }\n return out;\n }\n /**\n * \u53D8\u6362\u5750\u6807\u4F4D\u7F6E\u5230 shape \u7684\u5C40\u90E8\u5750\u6807\u7A7A\u95F4\n */\n transformCoordToLocal(x: number, y: number): number[] {\n const v2 = [x, y];\n const invTransform = this.invTransform;\n if (invTransform) {\n vector.applyTransform(v2, v2, invTransform);\n }\n return v2;\n }\n\n /**\n * \u53D8\u6362\u5C40\u90E8\u5750\u6807\u4F4D\u7F6E\u5230\u5168\u5C40\u5750\u6807\u7A7A\u95F4\n */\n transformCoordToGlobal(x: number, y: number): number[] {\n const v2 = [x, y];\n const transform = this.transform;\n if (transform) {\n vector.applyTransform(v2, v2, transform);\n }\n return v2;\n }\n\n\n getLineScale() {\n const m = this.transform;\n // Get the line scale.\n // Determinant of `m` means how much the area is enlarged by the\n // transformation. So its square root can be used as a scale factor\n // for width.\n return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10\n ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))\n : 1;\n }\n\n copyTransform(source: Transformable) {\n const target = this;\n\n for (let i = 0; i < TRANSFORMABLE_PROPS.length; i++) {\n const propName = TRANSFORMABLE_PROPS[i];\n target[propName] = source[propName];\n }\n }\n\n\n static getLocalTransform(target: Transformable, m?: matrix.MatrixArray): matrix.MatrixArray {\n m = m || [];\n\n const ox = target.originX || 0;\n const oy = target.originY || 0;\n const sx = target.scaleX;\n const sy = target.scaleY;\n const rotation = target.rotation || 0;\n const x = target.x;\n const y = target.y;\n const skewX = target.skewX ? Math.tan(target.skewX) : 0;\n // TODO: zrender use different hand in coordinate system and y axis is inversed.\n const skewY = target.skewY ? Math.tan(-target.skewY) : 0;\n\n // The order of transform (-origin * scale * skew * rotate * origin * translate).\n // We merge (-origin * scale * skew) into one. Also did identity in these operations.\n // origin\n if (ox || oy) {\n m[4] = -ox * sx - skewX * oy * sy;\n m[5] = -oy * sy - skewY * ox * sx;\n }\n else {\n m[4] = m[5] = 0;\n }\n // scale\n m[0] = sx;\n m[3] = sy;\n // skew\n m[1] = skewY * sx;\n m[2] = skewX * sy;\n\n // Apply rotation\n rotation && matrix.rotate(m, m, rotation);\n\n // Translate back from origin and apply translation\n m[4] += ox + x;\n m[5] += oy + y;\n\n return m;\n }\n\n private static initDefaultProps = (function () {\n const proto = Transformable.prototype;\n proto.x = 0;\n proto.y = 0;\n proto.scaleX = 1;\n proto.scaleY = 1;\n proto.originX = 0;\n proto.originY = 0;\n proto.skewX = 0;\n proto.skewY = 0;\n proto.rotation = 0;\n proto.globalScaleRatio = 1;\n })()\n};\n\nexport const TRANSFORMABLE_PROPS = [\n 'x', 'y', 'originX', 'originY', 'rotation', 'scaleX', 'scaleY', 'skewX', 'skewY'\n] as const;\n\nexport default Transformable;", "import { MatrixArray } from './matrix';\n\nexport interface PointLike {\n x: number\n y: number\n}\nexport default class Point {\n\n x: number\n\n y: number\n\n constructor(x?: number, y?: number) {\n this.x = x || 0;\n this.y = y || 0;\n }\n\n /**\n * Copy from another point\n */\n copy(other: PointLike) {\n this.x = other.x;\n this.y = other.y;\n return this;\n }\n\n /**\n * Clone a point\n */\n clone() {\n return new Point(this.x, this.y);\n }\n\n /**\n * Set x and y\n */\n set(x: number, y: number) {\n this.x = x;\n this.y = y;\n return this;\n }\n\n /**\n * If equal to another point\n */\n equal(other: PointLike) {\n return other.x === this.x && other.y === this.y;\n }\n\n /**\n * Add another point\n */\n add(other: PointLike) {\n this.x += other.x;\n this.y += other.y;\n return this;\n }\n\n scale(scalar: number) {\n this.x *= scalar;\n this.y *= scalar;\n }\n\n scaleAndAdd(other: PointLike, scalar: number) {\n this.x += other.x * scalar;\n this.y += other.y * scalar;\n }\n\n /**\n * Sub another point\n */\n sub(other: PointLike) {\n this.x -= other.x;\n this.y -= other.y;\n return this;\n }\n\n /**\n * Dot product with other point\n */\n dot(other: PointLike) {\n return this.x * other.x + this.y * other.y;\n }\n\n /**\n * Get length of point\n */\n len() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }\n\n /**\n * Get squared length\n */\n lenSquare() {\n return this.x * this.x + this.y * this.y;\n }\n\n /**\n * Normalize\n */\n normalize() {\n const len = this.len();\n this.x /= len;\n this.y /= len;\n return this;\n }\n\n /**\n * Distance to another point\n */\n distance(other: PointLike) {\n const dx = this.x - other.x;\n const dy = this.y - other.y;\n return Math.sqrt(dx * dx + dy * dy);\n }\n\n /**\n * Square distance to another point\n */\n distanceSquare(other: Point) {\n const dx = this.x - other.x;\n const dy = this.y - other.y;\n return dx * dx + dy * dy;\n }\n\n /**\n * Negate\n */\n negate() {\n this.x = -this.x;\n this.y = -this.y;\n return this;\n }\n\n /**\n * Apply a transform matrix array.\n */\n transform(m: MatrixArray) {\n if (!m) {\n return;\n }\n const x = this.x;\n const y = this.y;\n this.x = m[0] * x + m[2] * y + m[4];\n this.y = m[1] * x + m[3] * y + m[5];\n return this;\n }\n\n toArray(out: number[]) {\n out[0] = this.x;\n out[1] = this.y;\n return out;\n }\n\n fromArray(input: number[]) {\n this.x = input[0];\n this.y = input[1];\n }\n\n static set(p: PointLike, x: number, y: number) {\n p.x = x;\n p.y = y;\n }\n\n static copy(p: PointLike, p2: PointLike) {\n p.x = p2.x;\n p.y = p2.y;\n }\n\n static len(p: PointLike) {\n return Math.sqrt(p.x * p.x + p.y * p.y);\n }\n\n static lenSquare(p: PointLike) {\n return p.x * p.x + p.y * p.y;\n }\n\n static dot(p0: PointLike, p1: PointLike) {\n return p0.x * p1.x + p0.y * p1.y;\n }\n\n static add(out: PointLike, p0: PointLike, p1: PointLike) {\n out.x = p0.x + p1.x;\n out.y = p0.y + p1.y;\n }\n\n static sub(out: PointLike, p0: PointLike, p1: PointLike) {\n out.x = p0.x - p1.x;\n out.y = p0.y - p1.y;\n }\n\n static scale(out: PointLike, p0: PointLike, scalar: number) {\n out.x = p0.x * scalar;\n out.y = p0.y * scalar;\n }\n\n static scaleAndAdd(out: PointLike, p0: PointLike, p1: PointLike, scalar: number) {\n out.x = p0.x + p1.x * scalar;\n out.y = p0.y + p1.y * scalar;\n }\n\n static lerp(out: PointLike, p0: PointLike, p1: PointLike, t: number) {\n const onet = 1 - t;\n out.x = onet * p0.x + t * p1.x;\n out.y = onet * p0.y + t * p1.y;\n }\n}", "/**\n * @module echarts/core/BoundingRect\n */\n\nimport * as matrix from './matrix';\nimport Point, { PointLike } from './Point';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\nconst lt = new Point();\nconst rb = new Point();\nconst lb = new Point();\nconst rt = new Point();\n\nconst minTv = new Point();\nconst maxTv = new Point();\n\nclass BoundingRect {\n\n x: number\n y: number\n width: number\n height: number\n\n constructor(x: number, y: number, width: number, height: number) {\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n union(other: BoundingRect) {\n const x = mathMin(other.x, this.x);\n const y = mathMin(other.y, this.y);\n\n // If x is -Infinity and width is Infinity (like in the case of\n // IncrementalDisplayble), x + width would be NaN\n if (isFinite(this.x) && isFinite(this.width)) {\n this.width = mathMax(\n other.x + other.width,\n this.x + this.width\n ) - x;\n }\n else {\n this.width = other.width;\n }\n\n if (isFinite(this.y) && isFinite(this.height)) {\n this.height = mathMax(\n other.y + other.height,\n this.y + this.height\n ) - y;\n }\n else {\n this.height = other.height;\n }\n\n this.x = x;\n this.y = y;\n }\n\n applyTransform(m: matrix.MatrixArray) {\n BoundingRect.applyTransform(this, this, m);\n }\n\n calculateTransform(b: RectLike): matrix.MatrixArray {\n const a = this;\n const sx = b.width / a.width;\n const sy = b.height / a.height;\n\n const m = matrix.create();\n\n // \u77E9\u9635\u53F3\u4E58\n matrix.translate(m, m, [-a.x, -a.y]);\n matrix.scale(m, m, [sx, sy]);\n matrix.translate(m, m, [b.x, b.y]);\n\n return m;\n }\n\n intersect(b: RectLike, mtv?: PointLike): boolean {\n if (!b) {\n return false;\n }\n\n if (!(b instanceof BoundingRect)) {\n // Normalize negative width/height.\n b = BoundingRect.create(b);\n }\n\n const a = this;\n const ax0 = a.x;\n const ax1 = a.x + a.width;\n const ay0 = a.y;\n const ay1 = a.y + a.height;\n\n const bx0 = b.x;\n const bx1 = b.x + b.width;\n const by0 = b.y;\n const by1 = b.y + b.height;\n\n let overlap = !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);\n if (mtv) {\n let dMin = Infinity;\n let dMax = 0;\n const d0 = Math.abs(ax1 - bx0);\n const d1 = Math.abs(bx1 - ax0);\n const d2 = Math.abs(ay1 - by0);\n const d3 = Math.abs(by1 - ay0);\n const dx = Math.min(d0, d1);\n const dy = Math.min(d2, d3);\n // On x axis\n if (ax1 < bx0 || bx1 < ax0) {\n if (dx > dMax) {\n dMax = dx;\n if (d0 < d1) {\n Point.set(maxTv, -d0, 0); // b is on the right\n }\n else {\n Point.set(maxTv, d1, 0); // b is on the left\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d0 < d1) {\n Point.set(minTv, d0, 0); // b is on the right\n }\n else {\n Point.set(minTv, -d1, 0); // b is on the left\n }\n }\n }\n\n // On y axis\n if (ay1 < by0 || by1 < ay0) {\n if (dy > dMax) {\n dMax = dy;\n if (d2 < d3) {\n Point.set(maxTv, 0, -d2); // b is on the bottom(larger y)\n }\n else {\n Point.set(maxTv, 0, d3); // b is on the top(smaller y)\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d2 < d3) {\n Point.set(minTv, 0, d2); // b is on the bottom\n }\n else {\n Point.set(minTv, 0, -d3); // b is on the top\n }\n }\n }\n }\n\n if (mtv) {\n Point.copy(mtv, overlap ? minTv : maxTv);\n }\n return overlap;\n }\n\n contain(x: number, y: number): boolean {\n const rect = this;\n return x >= rect.x\n && x <= (rect.x + rect.width)\n && y >= rect.y\n && y <= (rect.y + rect.height);\n }\n\n clone() {\n return new BoundingRect(this.x, this.y, this.width, this.height);\n }\n\n /**\n * Copy from another rect\n */\n copy(other: RectLike) {\n BoundingRect.copy(this, other);\n }\n\n plain(): RectLike {\n return {\n x: this.x,\n y: this.y,\n width: this.width,\n height: this.height\n };\n }\n\n /**\n * If not having NaN or Infinity with attributes\n */\n isFinite(): boolean {\n return isFinite(this.x)\n && isFinite(this.y)\n && isFinite(this.width)\n && isFinite(this.height);\n }\n\n isZero(): boolean {\n return this.width === 0 || this.height === 0;\n }\n\n static create(rect: RectLike): BoundingRect {\n return new BoundingRect(rect.x, rect.y, rect.width, rect.height);\n }\n\n static copy(target: RectLike, source: RectLike) {\n target.x = source.x;\n target.y = source.y;\n target.width = source.width;\n target.height = source.height;\n }\n\n static applyTransform(target: RectLike, source: RectLike, m: matrix.MatrixArray) {\n // In case usage like this\n // el.getBoundingRect().applyTransform(el.transform)\n // And element has no transform\n if (!m) {\n if (target !== source) {\n BoundingRect.copy(target, source);\n }\n return;\n }\n // Fast path when there is no rotation in matrix.\n if (m[1] < 1e-5 && m[1] > -1e-5 && m[2] < 1e-5 && m[2] > -1e-5) {\n const sx = m[0];\n const sy = m[3];\n const tx = m[4];\n const ty = m[5];\n target.x = source.x * sx + tx;\n target.y = source.y * sy + ty;\n target.width = source.width * sx;\n target.height = source.height * sy;\n if (target.width < 0) {\n target.x += target.width;\n target.width = -target.width;\n }\n if (target.height < 0) {\n target.y += target.height;\n target.height = -target.height;\n }\n return;\n }\n\n // source and target can be same instance.\n lt.x = lb.x = source.x;\n lt.y = rt.y = source.y;\n rb.x = rt.x = source.x + source.width;\n rb.y = lb.y = source.y + source.height;\n\n lt.transform(m);\n rt.transform(m);\n rb.transform(m);\n lb.transform(m);\n\n target.x = mathMin(lt.x, rb.x, lb.x, rt.x);\n target.y = mathMin(lt.y, rb.y, lb.y, rt.y);\n const maxX = mathMax(lt.x, rb.x, lb.x, rt.x);\n const maxY = mathMax(lt.y, rb.y, lb.y, rt.y);\n target.width = maxX - target.x;\n target.height = maxY - target.y;\n }\n}\n\n\nexport type RectLike = {\n x: number\n y: number\n width: number\n height: number\n}\n\nexport default BoundingRect;", "import BoundingRect, { RectLike } from '../core/BoundingRect';\nimport { createCanvas } from '../core/util';\nimport { Dictionary, PropType, TextAlign, TextVerticalAlign, BuiltinTextPosition } from '../core/types';\nimport LRU from '../core/LRU';\n\nlet textWidthCache: Dictionary> = {};\n\nexport const DEFAULT_FONT = '12px sans-serif';\n\nlet _ctx: CanvasRenderingContext2D;\nlet _cachedFont: string;\n\nfunction defaultMeasureText(text: string, font?: string): { width: number } {\n if (!_ctx) {\n _ctx = createCanvas().getContext('2d');\n }\n if (_cachedFont !== font) {\n _cachedFont = _ctx.font = font || DEFAULT_FONT;\n }\n return _ctx.measureText(text);\n}\n\nlet methods: {\n measureText: (text: string, font?: string) => { width: number }\n} = {\n measureText: defaultMeasureText\n};\n\nexport function $override(\n name: keyof typeof methods,\n fn: PropType\n) {\n methods[name] = fn;\n}\n\n// let cacheMissCount = 0;\n// let totalCount = 0;\n\nexport function getWidth(text: string, font: string): number {\n font = font || DEFAULT_FONT;\n let cacheOfFont = textWidthCache[font];\n if (!cacheOfFont) {\n cacheOfFont = textWidthCache[font] = new LRU(500);\n }\n let width = cacheOfFont.get(text);\n if (width == null) {\n width = methods.measureText(text, font).width;\n cacheOfFont.put(text, width);\n // cacheMissCount++;\n }\n // totalCount++;\n\n return width;\n}\n\n/**\n *\n * Get bounding rect for inner usage(TSpan)\n * Which not include text newline.\n */\nexport function innerGetBoundingRect(\n text: string,\n font: string,\n textAlign?: TextAlign,\n textBaseline?: TextVerticalAlign\n): BoundingRect {\n const width = getWidth(text, font);\n const height = getLineHeight(font);\n\n const x = adjustTextX(0, width, textAlign);\n const y = adjustTextY(0, height, textBaseline);\n\n const rect = new BoundingRect(x, y, width, height);\n\n return rect;\n}\n\n/**\n *\n * Get bounding rect for outer usage. Compatitable with old implementation\n * Which includes text newline.\n */\nexport function getBoundingRect(\n text: string,\n font: string,\n textAlign?: TextAlign,\n textBaseline?: TextVerticalAlign\n) {\n const textLines = ((text || '') + '').split('\\n');\n const len = textLines.length;\n if (len === 1) {\n return innerGetBoundingRect(textLines[0], font, textAlign, textBaseline);\n }\n else {\n const uniondRect = new BoundingRect(0, 0, 0, 0);\n for (let i = 0; i < textLines.length; i++) {\n const rect = innerGetBoundingRect(textLines[i], font, textAlign, textBaseline);\n i === 0 ? uniondRect.copy(rect) : uniondRect.union(rect);\n }\n return uniondRect;\n }\n}\n\nexport function adjustTextX(x: number, width: number, textAlign: TextAlign): number {\n // TODO Right to left language\n if (textAlign === 'right') {\n x -= width;\n }\n else if (textAlign === 'center') {\n x -= width / 2;\n }\n return x;\n}\n\nexport function adjustTextY(y: number, height: number, verticalAlign: TextVerticalAlign): number {\n if (verticalAlign === 'middle') {\n y -= height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y -= height;\n }\n return y;\n}\n\n\nexport function getLineHeight(font?: string): number {\n // FIXME A rough approach.\n return getWidth('\u56FD', font);\n}\n\nexport function measureText(text: string, font?: string): {\n width: number\n} {\n return methods.measureText(text, font);\n}\n\n\nexport function parsePercent(value: number | string, maxValue: number): number {\n if (typeof value === 'string') {\n if (value.lastIndexOf('%') >= 0) {\n return parseFloat(value) / 100 * maxValue;\n }\n return parseFloat(value);\n }\n return value;\n}\n\nexport interface TextPositionCalculationResult {\n x: number\n y: number\n align: TextAlign\n verticalAlign: TextVerticalAlign\n}\n/**\n * Follow same interface to `Displayable.prototype.calculateTextPosition`.\n * @public\n * @param out Prepared out object. If not input, auto created in the method.\n * @param style where `textPosition` and `textDistance` are visited.\n * @param rect {x, y, width, height} Rect of the host elment, according to which the text positioned.\n * @return The input `out`. Set: {x, y, textAlign, textVerticalAlign}\n */\nexport function calculateTextPosition(\n out: TextPositionCalculationResult,\n opts: {\n position?: BuiltinTextPosition | (number | string)[]\n distance?: number // Default 5\n global?: boolean\n },\n rect: RectLike\n): TextPositionCalculationResult {\n const textPosition = opts.position || 'inside';\n const distance = opts.distance != null ? opts.distance : 5;\n\n const height = rect.height;\n const width = rect.width;\n const halfHeight = height / 2;\n\n let x = rect.x;\n let y = rect.y;\n\n let textAlign: TextAlign = 'left';\n let textVerticalAlign: TextVerticalAlign = 'top';\n\n if (textPosition instanceof Array) {\n x += parsePercent(textPosition[0], rect.width);\n y += parsePercent(textPosition[1], rect.height);\n // Not use textAlign / textVerticalAlign\n textAlign = null;\n textVerticalAlign = null;\n }\n else {\n switch (textPosition) {\n case 'left':\n x -= distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'right':\n x += distance + width;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'top':\n x += width / 2;\n y -= distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'bottom':\n x += width / 2;\n y += height + distance;\n textAlign = 'center';\n break;\n case 'inside':\n x += width / 2;\n y += halfHeight;\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n case 'insideLeft':\n x += distance;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'insideRight':\n x += width - distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'insideTop':\n x += width / 2;\n y += distance;\n textAlign = 'center';\n break;\n case 'insideBottom':\n x += width / 2;\n y += height - distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'insideTopLeft':\n x += distance;\n y += distance;\n break;\n case 'insideTopRight':\n x += width - distance;\n y += distance;\n textAlign = 'right';\n break;\n case 'insideBottomLeft':\n x += distance;\n y += height - distance;\n textVerticalAlign = 'bottom';\n break;\n case 'insideBottomRight':\n x += width - distance;\n y += height - distance;\n textAlign = 'right';\n textVerticalAlign = 'bottom';\n break;\n }\n }\n\n out = out || {} as TextPositionCalculationResult;\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n\n return out;\n}\n", "import Transformable from './core/Transformable';\nimport { AnimationEasing } from './animation/easing';\nimport Animator, {cloneValue} from './animation/Animator';\nimport { ZRenderType } from './zrender';\nimport {\n Dictionary, ElementEventName, ZRRawEvent, BuiltinTextPosition, AllPropTypes,\n TextVerticalAlign, TextAlign, MapToType\n} from './core/types';\nimport Path from './graphic/Path';\nimport BoundingRect, { RectLike } from './core/BoundingRect';\nimport Eventful from './core/Eventful';\nimport ZRText, { DefaultTextStyle } from './graphic/Text';\nimport { calculateTextPosition, TextPositionCalculationResult, parsePercent } from './contain/text';\nimport {\n guid,\n isObject,\n keys,\n extend,\n indexOf,\n logError,\n mixin,\n isArrayLike,\n isTypedArray\n} from './core/util';\nimport Polyline from './graphic/shape/Polyline';\nimport Group from './graphic/Group';\nimport Point from './core/Point';\nimport { LIGHT_LABEL_COLOR, DARK_LABEL_COLOR } from './config';\nimport { parse, stringify } from './tool/color';\nimport env from './core/env';\nimport { REDARAW_BIT } from './graphic/constants';\n\nexport interface ElementAnimateConfig {\n duration?: number\n delay?: number\n easing?: AnimationEasing\n during?: (percent: number) => void\n\n // `done` will be called when all of the animations of the target props are\n // \"done\" or \"aborted\", and at least one \"done\" happened.\n // Common cases: animations declared, but some of them are aborted (e.g., by state change).\n // The calling of `animationTo` done rather than aborted if at least one done happened.\n done?: Function\n // `aborted` will be called when all of the animations of the target props are \"aborted\".\n aborted?: Function\n\n scope?: string\n /**\n * If force animate\n * Prevent stop animation and callback\n * immediently when target values are the same as current values.\n */\n force?: boolean\n /**\n * If use additive animation.\n */\n additive?: boolean\n /**\n * If set to final state before animation started.\n * It can be useful if something you want to calcuate depends on the final state of element.\n * Like bounding rect for text layouting.\n *\n * Only available in animateTo\n */\n setToFinal?: boolean\n}\n\nexport interface ElementTextConfig {\n /**\n * Position relative to the element bounding rect\n * @default 'inside'\n */\n position?: BuiltinTextPosition | (number | string)[]\n\n /**\n * Rotation of the label.\n */\n rotation?: number\n\n /**\n * Rect that text will be positioned.\n * Default to be the rect of element.\n */\n layoutRect?: RectLike\n\n /**\n * Offset of the label.\n * The difference of offset and position is that it will be applied\n * in the rotation\n */\n offset?: number[]\n\n /**\n * Origin or rotation. Which is relative to the bounding box of the attached element.\n * Can be percent value. Relative to the bounding box.\n * If specified center. It will be center of the bounding box.\n *\n * Only available when position and rotation are both set.\n */\n origin?: (number | string)[] | 'center'\n\n /**\n * Distance to the rect\n * @default 5\n */\n distance?: number\n\n /**\n * If use local user space. Which will apply host's transform\n * @default false\n */\n local?: boolean\n\n /**\n * `insideFill` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `fill` will be picked by this priority:\n * `textContent.style.fill` > `textConfig.insideFill` > \"auto-calculated-fill\"\n * In most cases, \"auto-calculated-fill\" is white.\n */\n insideFill?: string\n\n /**\n * `insideStroke` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `stroke` will be picked by this priority:\n * `textContent.style.stroke` > `textConfig.insideStroke` > \"auto-calculated-stroke\"\n *\n * The rule of getting \"auto-calculated-stroke\":\n * If (A) the `fill` is specified in style (either in `textContent.style` or `textContent.style.rich`)\n * or (B) needed to draw text background (either defined in `textContent.style` or `textContent.style.rich`)\n * \"auto-calculated-stroke\" will be null.\n * Otherwise, \"auto-calculated-stroke\" will be the same as `fill` of this element if possible, or null.\n *\n * The reason of (A) is not decisive:\n * 1. If users specify `fill` in style and still use \"auto-calculated-stroke\", the effect\n * is not good and unexpected in some cases. It not easy and seams uncessary to auto calculate\n * a proper `stroke` for the given `fill`, since they can specify `stroke` themselve.\n * 2. Backward compat.\n */\n insideStroke?: string\n\n /**\n * `outsideFill` is a color string or left empty.\n * If a `textContent` is \"inside\", its final `fill` will be picked by this priority:\n * `textContent.style.fill` > `textConfig.outsideFill` > #000\n */\n outsideFill?: string\n\n /**\n * `outsideStroke` is a color string or left empth.\n * If a `textContent` is not \"inside\", its final `stroke` will be picked by this priority:\n * `textContent.style.stroke` > `textConfig.outsideStroke` > \"auto-calculated-stroke\"\n *\n * The rule of getting \"auto-calculated-stroke\":\n * If (A) the `fill` is specified in style (either in `textContent.style` or `textContent.style.rich`)\n * or (B) needed to draw text background (either defined in `textContent.style` or `textContent.style.rich`)\n * \"auto-calculated-stroke\" will be null.\n * Otherwise, \"auto-calculated-stroke\" will be a neer white color to distinguish \"front end\"\n * label with messy background (like other text label, line or other graphic).\n */\n outsideStroke?: string\n\n /**\n * Tell zrender I can sure this text is inside or not.\n * In case position is not using builtin `inside` hints.\n */\n inside?: boolean\n}\nexport interface ElementTextGuideLineConfig {\n /**\n * Anchor for text guide line.\n * Notice: Won't work\n */\n anchor?: Point\n\n /**\n * If above the target element.\n */\n showAbove?: boolean\n\n /**\n * Candidates of connectors. Used when autoCalculate is true and anchor is not specified.\n */\n candidates?: ('left' | 'top' | 'right' | 'bottom')[]\n}\n\nexport interface ElementEvent {\n type: ElementEventName,\n event: ZRRawEvent,\n // target can only be an element that is not silent.\n target: Element,\n // topTarget can be a silent element.\n topTarget: Element,\n cancelBubble: boolean,\n offsetX: number,\n offsetY: number,\n gestureEvent: string,\n pinchX: number,\n pinchY: number,\n pinchScale: number,\n wheelDelta: number,\n zrByTouch: boolean,\n which: number,\n stop: (this: ElementEvent) => void\n}\n\nexport type ElementEventCallback = (\n this: CbThis, e: ElementEvent\n) => boolean | void\ntype CbThis = unknown extends Ctx ? Impl : Ctx;\n\ninterface ElementEventHandlerProps {\n // Events\n onclick: ElementEventCallback\n ondblclick: ElementEventCallback\n onmouseover: ElementEventCallback\n onmouseout: ElementEventCallback\n onmousemove: ElementEventCallback\n onmousewheel: ElementEventCallback\n onmousedown: ElementEventCallback\n onmouseup: ElementEventCallback\n oncontextmenu: ElementEventCallback\n\n ondrag: ElementEventCallback\n ondragstart: ElementEventCallback\n ondragend: ElementEventCallback\n ondragenter: ElementEventCallback\n ondragleave: ElementEventCallback\n ondragover: ElementEventCallback\n ondrop: ElementEventCallback\n}\n\nexport interface ElementProps extends Partial {\n name?: string\n ignore?: boolean\n isGroup?: boolean\n draggable?: boolean | 'horizontal' | 'vertical'\n\n silent?: boolean\n\n ignoreClip?: boolean\n // From transform\n x?: number\n y?: number\n scaleX?: number\n scaleY?: number\n originX?: number\n originY?: number\n rotation?: number\n\n globalScaleRatio?: number\n\n textConfig?: ElementTextConfig\n textContent?: ZRText\n\n clipPath?: Path\n drift?: Element['drift']\n\n extra?: Dictionary\n\n // For echarts animation.\n anid?: string\n}\n\n// Properties can be used in state.\nexport const PRESERVED_NORMAL_STATE = '__zr_normal__';\n// export const PRESERVED_MERGED_STATE = '__zr_merged__';\n\nconst PRIMARY_STATES_KEYS = ['x', 'y', 'scaleX', 'scaleY', 'originX', 'originY', 'rotation', 'ignore'] as const;\nconst DEFAULT_ANIMATABLE_MAP: Partial> = {\n x: true,\n y: true,\n scaleX: true,\n scaleY: true,\n originX: true,\n originY: true,\n rotation: true,\n ignore: false\n};\n\nexport type ElementStatePropNames = (typeof PRIMARY_STATES_KEYS)[number] | 'textConfig';\nexport type ElementState = Pick & ElementCommonState\n\nexport type ElementCommonState = {\n hoverLayer?: boolean\n}\n\nexport type ElementCalculateTextPosition = (\n out: TextPositionCalculationResult,\n style: ElementTextConfig,\n rect: RectLike\n) => TextPositionCalculationResult;\n\nlet tmpTextPosCalcRes = {} as TextPositionCalculationResult;\nlet tmpBoundingRect = new BoundingRect(0, 0, 0, 0);\n\ninterface Element extends Transformable,\n Eventful<{\n [key in ElementEventName]: (e: ElementEvent) => void | boolean\n } & {\n [key in string]: (...args: any) => void | boolean\n }>,\n ElementEventHandlerProps {\n}\n\nclass Element {\n\n id: number = guid()\n /**\n * Element type\n */\n type: string\n\n /**\n * Element name\n */\n name: string\n\n /**\n * If ignore drawing and events of the element object\n */\n ignore: boolean\n\n /**\n * Whether to respond to mouse events.\n */\n silent: boolean\n\n /**\n * \u662F\u5426\u662F Group\n */\n isGroup: boolean\n\n /**\n * Whether it can be dragged.\n */\n draggable: boolean | 'horizontal' | 'vertical'\n\n /**\n * Whether is it dragging.\n */\n dragging: boolean\n\n parent: Group\n\n animators: Animator[] = []\n\n /**\n * If ignore clip from it's parent or hosts.\n * Applied on itself and all it's children.\n *\n * NOTE: It won't affect the clipPath set on the children.\n */\n ignoreClip: boolean\n\n /**\n * If element is used as a component of other element.\n */\n __hostTarget: Element\n\n /**\n * ZRender instance will be assigned when element is associated with zrender\n */\n __zr: ZRenderType\n\n /**\n * Dirty bits.\n * From which painter will determine if this displayable object needs brush.\n */\n __dirty: number\n\n /**\n * If element was painted on the screen\n */\n __isRendered: boolean;\n\n /**\n * If element has been moved to the hover layer.\n *\n * If so, dirty will only trigger the zrender refresh hover layer\n */\n __inHover: boolean\n\n /**\n * path to clip the elements and its children, if it is a group.\n * @see http://www.w3.org/TR/2dcontext/#clipping-region\n */\n private _clipPath?: Path\n\n /**\n * Attached text element.\n * `position`, `style.textAlign`, `style.textVerticalAlign`\n * of element will be ignored if textContent.position is set\n */\n private _textContent?: ZRText\n\n /**\n * Text guide line.\n */\n private _textGuide?: Polyline\n\n /**\n * Config of textContent. Inlcuding layout, color, ...etc.\n */\n textConfig?: ElementTextConfig\n\n /**\n * Config for guide line calculating.\n *\n * NOTE: This is just a property signature. READ and WRITE are all done in echarts.\n */\n textGuideLineConfig?: ElementTextGuideLineConfig\n\n // FOR ECHARTS\n /**\n * Id for mapping animation\n */\n anid: string\n\n extra: Dictionary\n\n currentStates?: string[] = []\n // prevStates is for storager in echarts.\n prevStates?: string[]\n /**\n * Store of element state.\n * '__normal__' key is preserved for default properties.\n */\n states: Dictionary = {}\n\n /**\n * Animation config applied on state switching.\n */\n stateTransition: ElementAnimateConfig\n\n /**\n * Proxy function for getting state with given stateName.\n * ZRender will first try to get with stateProxy. Then find from states if stateProxy returns nothing\n *\n * targetStates will be given in useStates\n */\n stateProxy?: (stateName: string, targetStates?: string[]) => ElementState\n\n protected _normalState: ElementState\n\n // Temporary storage for inside text color configuration.\n private _innerTextDefaultStyle: DefaultTextStyle\n\n constructor(props?: Props) {\n this._init(props);\n }\n\n protected _init(props?: Props) {\n // Init default properties\n this.attr(props);\n }\n\n /**\n * Drift element\n * @param {number} dx dx on the global space\n * @param {number} dy dy on the global space\n */\n drift(dx: number, dy: number, e?: ElementEvent) {\n switch (this.draggable) {\n case 'horizontal':\n dy = 0;\n break;\n case 'vertical':\n dx = 0;\n break;\n }\n\n let m = this.transform;\n if (!m) {\n m = this.transform = [1, 0, 0, 1, 0, 0];\n }\n m[4] += dx;\n m[5] += dy;\n\n this.decomposeTransform();\n this.markRedraw();\n }\n\n /**\n * Hook before update\n */\n beforeUpdate() {}\n /**\n * Hook after update\n */\n afterUpdate() {}\n /**\n * Update each frame\n */\n update() {\n this.updateTransform();\n\n if (this.__dirty) {\n this.updateInnerText();\n }\n }\n\n updateInnerText(forceUpdate?: boolean) {\n // Update textContent\n const textEl = this._textContent;\n if (textEl && (!textEl.ignore || forceUpdate)) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n const textConfig = this.textConfig;\n const isLocal = textConfig.local;\n const innerTransformable = textEl.innerTransformable;\n\n let textAlign: TextAlign;\n let textVerticalAlign: TextVerticalAlign;\n\n let textStyleChanged = false;\n\n // Apply host's transform.\n innerTransformable.parent = isLocal ? this as unknown as Group : null;\n\n let innerOrigin = false;\n\n // Reset x/y/rotation\n innerTransformable.copyTransform(textEl);\n\n // Force set attached text's position if `position` is in config.\n if (textConfig.position != null) {\n let layoutRect = tmpBoundingRect;\n if (textConfig.layoutRect) {\n layoutRect.copy(textConfig.layoutRect);\n }\n else {\n layoutRect.copy(this.getBoundingRect());\n }\n if (!isLocal) {\n layoutRect.applyTransform(this.transform);\n }\n\n if (this.calculateTextPosition) {\n this.calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n else {\n calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n\n // TODO Should modify back if textConfig.position is set to null again.\n // Or textContent is detached.\n innerTransformable.x = tmpTextPosCalcRes.x;\n innerTransformable.y = tmpTextPosCalcRes.y;\n\n // User specified align/verticalAlign has higher priority, which is\n // useful in the case that attached text is rotated 90 degree.\n textAlign = tmpTextPosCalcRes.align;\n textVerticalAlign = tmpTextPosCalcRes.verticalAlign;\n\n const textOrigin = textConfig.origin;\n if (textOrigin && textConfig.rotation != null) {\n let relOriginX;\n let relOriginY;\n if (textOrigin === 'center') {\n relOriginX = layoutRect.width * 0.5;\n relOriginY = layoutRect.height * 0.5;\n }\n else {\n relOriginX = parsePercent(textOrigin[0], layoutRect.width);\n relOriginY = parsePercent(textOrigin[1], layoutRect.height);\n }\n\n innerOrigin = true;\n innerTransformable.originX = -innerTransformable.x + relOriginX + (isLocal ? 0 : layoutRect.x);\n innerTransformable.originY = -innerTransformable.y + relOriginY + (isLocal ? 0 : layoutRect.y);\n }\n }\n\n\n if (textConfig.rotation != null) {\n innerTransformable.rotation = textConfig.rotation;\n }\n\n // TODO\n const textOffset = textConfig.offset;\n if (textOffset) {\n innerTransformable.x += textOffset[0];\n innerTransformable.y += textOffset[1];\n\n // Not change the user set origin.\n if (!innerOrigin) {\n innerTransformable.originX = -textOffset[0];\n innerTransformable.originY = -textOffset[1];\n }\n }\n\n // Calculate text color\n const isInside = textConfig.inside == null // Force to be inside or not.\n ? (typeof textConfig.position === 'string' && textConfig.position.indexOf('inside') >= 0)\n : textConfig.inside;\n const innerTextDefaultStyle = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {});\n\n let textFill;\n let textStroke;\n let autoStroke;\n if (isInside && this.canBeInsideText()) {\n // In most cases `textContent` need this \"auto\" strategy.\n // So by default be 'auto'. Otherwise users need to literally\n // set `insideFill: 'auto', insideStroke: 'auto'` each time.\n textFill = textConfig.insideFill;\n textStroke = textConfig.insideStroke;\n\n if (textFill == null || textFill === 'auto') {\n textFill = this.getInsideTextFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getInsideTextStroke(textFill);\n autoStroke = true;\n }\n }\n else {\n textFill = textConfig.outsideFill;\n textStroke = textConfig.outsideStroke;\n\n if (textFill == null || textFill === 'auto') {\n textFill = this.getOutsideFill();\n }\n // By default give a stroke to distinguish \"front end\" label with\n // messy background (like other text label, line or other graphic).\n // If textContent.style.fill specified, this auto stroke will not be used.\n if (textStroke == null || textStroke === 'auto') {\n // If some time need to customize the default stroke getter,\n // add some kind of override method.\n textStroke = this.getOutsideStroke(textFill);\n autoStroke = true;\n }\n }\n // Default `textFill` should must have a value to ensure text can be displayed.\n textFill = textFill || '#000';\n\n if (textFill !== innerTextDefaultStyle.fill\n || textStroke !== innerTextDefaultStyle.stroke\n || autoStroke !== innerTextDefaultStyle.autoStroke\n || textAlign !== innerTextDefaultStyle.align\n || textVerticalAlign !== innerTextDefaultStyle.verticalAlign\n ) {\n\n textStyleChanged = true;\n\n innerTextDefaultStyle.fill = textFill;\n innerTextDefaultStyle.stroke = textStroke;\n innerTextDefaultStyle.autoStroke = autoStroke;\n innerTextDefaultStyle.align = textAlign;\n innerTextDefaultStyle.verticalAlign = textVerticalAlign;\n\n textEl.setDefaultTextStyle(innerTextDefaultStyle);\n }\n\n // Mark textEl to update transform.\n // DON'T use markRedraw. It will cause Element itself to dirty again.\n textEl.__dirty |= REDARAW_BIT;\n\n if (textStyleChanged) {\n // Only mark style dirty if necessary. Update ZRText is costly.\n textEl.dirtyStyle(true);\n }\n }\n }\n\n protected canBeInsideText() {\n return true;\n }\n\n protected getInsideTextFill(): string | undefined {\n return '#fff';\n }\n\n protected getInsideTextStroke(textFill: string): string | undefined {\n return '#000';\n }\n\n protected getOutsideFill(): string | undefined {\n return this.__zr && this.__zr.isDarkMode() ? LIGHT_LABEL_COLOR : DARK_LABEL_COLOR;\n }\n\n protected getOutsideStroke(textFill: string): string {\n const backgroundColor = this.__zr && this.__zr.getBackgroundColor();\n let colorArr = typeof backgroundColor === 'string' && parse(backgroundColor as string);\n if (!colorArr) {\n colorArr = [255, 255, 255, 1];\n }\n // Assume blending on a white / black(dark) background.\n const alpha = colorArr[3];\n const isDark = this.__zr.isDarkMode();\n for (let i = 0; i < 3; i++) {\n colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);\n }\n colorArr[3] = 1;\n return stringify(colorArr, 'rgba');\n }\n\n traverse(\n cb: (this: Context, el: Element) => void,\n context?: Context\n ) {}\n\n protected attrKV(key: string, value: unknown) {\n if (key === 'textConfig') {\n this.setTextConfig(value as ElementTextConfig);\n }\n else if (key === 'textContent') {\n this.setTextContent(value as ZRText);\n }\n else if (key === 'clipPath') {\n this.setClipPath(value as Path);\n }\n else if (key === 'extra') {\n this.extra = this.extra || {};\n extend(this.extra, value);\n }\n else {\n (this as any)[key] = value;\n }\n }\n\n /**\n * Hide the element\n */\n hide() {\n this.ignore = true;\n this.markRedraw();\n }\n\n /**\n * Show the element\n */\n show() {\n this.ignore = false;\n this.markRedraw();\n }\n\n attr(keyOrObj: Props): this\n attr(keyOrObj: T, value: Props[T]): this\n attr(keyOrObj: keyof Props | Props, value?: unknown): this {\n if (typeof keyOrObj === 'string') {\n this.attrKV(keyOrObj as keyof ElementProps, value as AllPropTypes);\n }\n else if (isObject(keyOrObj)) {\n let obj = keyOrObj as object;\n let keysArr = keys(obj);\n for (let i = 0; i < keysArr.length; i++) {\n let key = keysArr[i];\n this.attrKV(key as keyof ElementProps, keyOrObj[key]);\n }\n }\n this.markRedraw();\n return this;\n }\n\n // Save current state to normal\n saveCurrentToNormalState(toState: ElementState) {\n this._innerSaveToNormal(toState);\n\n // If we are switching from normal to other state during animation.\n // We need to save final value of animation to the normal state. Not interpolated value.\n const normalState = this._normalState;\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n const fromStateTransition = animator.__fromStateTransition;\n // Ignore animation from state transition(except normal).\n if (fromStateTransition && fromStateTransition !== PRESERVED_NORMAL_STATE) {\n continue;\n }\n\n const targetName = animator.targetName;\n // Respecting the order of animation if multiple animator is\n // animating on the same property(If additive animation is used)\n const target = targetName\n ? (normalState as any)[targetName] : normalState;\n // Only save keys that are changed by the states.\n animator.saveFinalToTarget(target);\n }\n }\n\n protected _innerSaveToNormal(toState: ElementState) {\n let normalState = this._normalState;\n if (!normalState) {\n // Clear previous stored normal states when switching from normalState to otherState.\n normalState = this._normalState = {};\n }\n if (toState.textConfig && !normalState.textConfig) {\n normalState.textConfig = this.textConfig;\n }\n\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n }\n\n protected _savePrimaryToNormal(\n toState: Dictionary, normalState: Dictionary, primaryKeys: readonly string[]\n ) {\n for (let i = 0; i < primaryKeys.length; i++) {\n let key = primaryKeys[i];\n // Only save property that will be changed by toState\n // and has not been saved to normalState yet.\n if (toState[key] != null && !(key in normalState)) {\n (normalState as any)[key] = (this as any)[key];\n }\n }\n }\n\n /**\n * If has any state.\n */\n hasState() {\n return this.currentStates.length > 0;\n }\n\n /**\n * Get state object\n */\n getState(name: string) {\n return this.states[name];\n }\n\n\n /**\n * Ensure state exists. If not, will create one and return.\n */\n ensureState(name: string) {\n const states = this.states;\n if (!states[name]) {\n states[name] = {};\n }\n return states[name];\n }\n\n /**\n * Clear all states.\n */\n clearStates(noAnimation?: boolean) {\n this.useState(PRESERVED_NORMAL_STATE, false, noAnimation);\n // TODO set _normalState to null?\n }\n /**\n * Use state. State is a collection of properties.\n * Will return current state object if state exists and stateName has been changed.\n *\n * @param stateName State name to be switched to\n * @param keepCurrentState If keep current states.\n * If not, it will inherit from the normal state.\n */\n useState(stateName: string, keepCurrentStates?: boolean, noAnimation?: boolean, forceUseHoverLayer?: boolean) {\n // Use preserved word __normal__\n // TODO: Only restore changed properties when restore to normal???\n const toNormalState = stateName === PRESERVED_NORMAL_STATE;\n const hasStates = this.hasState();\n\n if (!hasStates && toNormalState) {\n // If switched from normal to normal.\n return;\n }\n\n const currentStates = this.currentStates;\n const animationCfg = this.stateTransition;\n\n // No need to change in following cases:\n // 1. Keep current states. and already being applied before.\n // 2. Don't keep current states. And new state is same with the only one exists state.\n if (indexOf(currentStates, stateName) >= 0 && (keepCurrentStates || currentStates.length === 1)) {\n return;\n }\n\n let state;\n if (this.stateProxy && !toNormalState) {\n state = this.stateProxy(stateName);\n }\n\n if (!state) {\n state = (this.states && this.states[stateName]);\n }\n\n if (!state && !toNormalState) {\n logError(`State ${stateName} not exists.`);\n return;\n }\n\n if (!toNormalState) {\n this.saveCurrentToNormalState(state);\n }\n\n const useHoverLayer = !!((state && state.hoverLayer) || forceUseHoverLayer);\n\n if (useHoverLayer) {\n // Enter hover layer before states update.\n this._toggleHoverLayerFlag(true);\n }\n\n this._applyStateObj(\n stateName,\n state,\n this._normalState,\n keepCurrentStates,\n !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0,\n animationCfg\n );\n\n // Also set text content.\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n // Force textContent use hover layer if self is using it.\n textContent.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n\n if (toNormalState) {\n // Clear state\n this.currentStates = [];\n // Reset normal state.\n this._normalState = {};\n }\n else {\n if (!keepCurrentStates) {\n this.currentStates = [stateName];\n }\n else {\n this.currentStates.push(stateName);\n }\n }\n\n // Update animating target to the new object after state changed.\n this._updateAnimationTargets();\n\n this.markRedraw();\n\n if (!useHoverLayer && this.__inHover) {\n // Leave hover layer after states update and markRedraw.\n this._toggleHoverLayerFlag(false);\n // NOTE: avoid unexpected refresh when moving out from hover layer!!\n // Only clear from hover layer.\n this.__dirty &= ~REDARAW_BIT;\n }\n\n // Return used state.\n return state;\n }\n\n /**\n * Apply multiple states.\n * @param states States list.\n */\n useStates(states: string[], noAnimation?: boolean, forceUseHoverLayer?: boolean) {\n if (!states.length) {\n this.clearStates();\n }\n else {\n const stateObjects: ElementState[] = [];\n const currentStates = this.currentStates;\n const len = states.length;\n let notChange = len === currentStates.length;\n if (notChange) {\n for (let i = 0; i < len; i++) {\n if (states[i] !== currentStates[i]) {\n notChange = false;\n break;\n }\n }\n }\n if (notChange) {\n return;\n }\n\n for (let i = 0; i < len; i++) {\n const stateName = states[i];\n let stateObj: ElementState;\n if (this.stateProxy) {\n stateObj = this.stateProxy(stateName, states);\n }\n if (!stateObj) {\n stateObj = this.states[stateName];\n }\n if (stateObj) {\n stateObjects.push(stateObj);\n }\n }\n\n const lastStateObj = stateObjects[len - 1];\n const useHoverLayer = !!((lastStateObj && lastStateObj.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n // Enter hover layer before states update.\n this._toggleHoverLayerFlag(true);\n }\n\n const mergedState = this._mergeStates(stateObjects);\n const animationCfg = this.stateTransition;\n\n this.saveCurrentToNormalState(mergedState);\n\n this._applyStateObj(\n states.join(','),\n mergedState,\n this._normalState,\n false,\n !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0,\n animationCfg\n );\n\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n textContent.useStates(states, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useStates(states, noAnimation, useHoverLayer);\n }\n\n this._updateAnimationTargets();\n\n // Create a copy\n this.currentStates = states.slice();\n this.markRedraw();\n\n if (!useHoverLayer && this.__inHover) {\n // Leave hover layer after states update and markRedraw.\n this._toggleHoverLayerFlag(false);\n // NOTE: avoid unexpected refresh when moving out from hover layer!!\n // Only clear from hover layer.\n this.__dirty &= ~REDARAW_BIT;\n }\n }\n }\n\n /**\n * Update animation targets when reference is changed.\n */\n private _updateAnimationTargets() {\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n if (animator.targetName) {\n animator.changeTarget((this as any)[animator.targetName]);\n }\n }\n }\n\n /**\n * Remove state\n * @param state State to remove\n */\n removeState(state: string) {\n const idx = indexOf(this.currentStates, state);\n if (idx >= 0) {\n const currentStates = this.currentStates.slice();\n currentStates.splice(idx, 1);\n this.useStates(currentStates);\n }\n }\n\n /**\n * Replace exists state.\n * @param oldState\n * @param newState\n * @param forceAdd If still add when even if replaced target not exists.\n */\n replaceState(oldState: string, newState: string, forceAdd: boolean) {\n const currentStates = this.currentStates.slice();\n const idx = indexOf(currentStates, oldState);\n const newStateExists = indexOf(currentStates, newState) >= 0;\n if (idx >= 0) {\n if (!newStateExists) {\n // Replace the old with the new one.\n currentStates[idx] = newState;\n }\n else {\n // Only remove the old one.\n currentStates.splice(idx, 1);\n }\n }\n else if (forceAdd && !newStateExists) {\n currentStates.push(newState);\n }\n this.useStates(currentStates);\n }\n\n /**\n * Toogle state.\n */\n toggleState(state: string, enable: boolean) {\n if (enable) {\n this.useState(state, true);\n }\n else {\n this.removeState(state);\n }\n }\n\n protected _mergeStates(states: ElementState[]) {\n const mergedState: ElementState = {};\n let mergedTextConfig: ElementTextConfig;\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n extend(mergedState, state);\n\n if (state.textConfig) {\n mergedTextConfig = mergedTextConfig || {};\n extend(mergedTextConfig, state.textConfig);\n }\n }\n if (mergedTextConfig) {\n mergedState.textConfig = mergedTextConfig;\n }\n\n return mergedState;\n }\n\n protected _applyStateObj(\n stateName: string,\n state: ElementState,\n normalState: ElementState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n const needsRestoreToNormal = !(state && keepCurrentStates);\n\n // TODO: Save current state to normal?\n // TODO: Animation\n if (state && state.textConfig) {\n // Inherit from current state or normal state.\n this.textConfig = extend(\n {},\n keepCurrentStates ? this.textConfig : normalState.textConfig\n );\n extend(this.textConfig, state.textConfig);\n }\n else if (needsRestoreToNormal) {\n if (normalState.textConfig) { // Only restore if changed and saved.\n this.textConfig = normalState.textConfig;\n }\n }\n\n const transitionTarget: Dictionary = {};\n let hasTransition = false;\n\n for (let i = 0; i < PRIMARY_STATES_KEYS.length; i++) {\n const key = PRIMARY_STATES_KEYS[i];\n const propNeedsTransition = transition && DEFAULT_ANIMATABLE_MAP[key];\n\n if (state && state[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = state[key];\n }\n else {\n // Replace if it exist in target state\n (this as any)[key] = state[key];\n }\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = normalState[key];\n }\n else {\n // Restore to normal state\n (this as any)[key] = normalState[key];\n }\n }\n }\n }\n\n if (!transition) {\n // Keep the running animation to the new values after states changed.\n // Not simply stop animation. Or it may have jump effect.\n for (let i = 0; i < this.animators.length; i++) {\n const animator = this.animators[i];\n const targetName = animator.targetName;\n animator.__changeFinalValue(targetName\n ? ((state || normalState) as any)[targetName]\n : (state || normalState)\n );\n }\n }\n\n if (hasTransition) {\n this._transitionState(\n stateName,\n transitionTarget as Props,\n animationCfg\n );\n }\n }\n\n /**\n * Component is some elements attached on this element for specific purpose.\n * Like clipPath, textContent\n */\n private _attachComponent(componentEl: Element) {\n if (componentEl.__zr && !componentEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n\n if (componentEl === this) {\n throw new Error('Recursive component attachment.');\n }\n\n const zr = this.__zr;\n if (zr) {\n // Needs to add self to zrender. For rerender triggering, or animation.\n componentEl.addSelfToZr(zr);\n }\n\n componentEl.__zr = zr;\n componentEl.__hostTarget = this as unknown as Element;\n }\n\n private _detachComponent(componentEl: Element) {\n if (componentEl.__zr) {\n componentEl.removeSelfFromZr(componentEl.__zr);\n }\n\n componentEl.__zr = null;\n componentEl.__hostTarget = null;\n }\n\n /**\n * Get clip path\n */\n getClipPath() {\n return this._clipPath;\n }\n\n /**\n * Set clip path\n *\n * clipPath can't be shared between two elements.\n */\n setClipPath(clipPath: Path) {\n // Remove previous clip path\n if (this._clipPath && this._clipPath !== clipPath) {\n this.removeClipPath();\n }\n\n this._attachComponent(clipPath);\n\n this._clipPath = clipPath;\n this.markRedraw();\n }\n\n /**\n * Remove clip path\n */\n removeClipPath() {\n const clipPath = this._clipPath;\n if (clipPath) {\n this._detachComponent(clipPath);\n this._clipPath = null;\n this.markRedraw();\n }\n }\n\n /**\n * Get attached text content.\n */\n getTextContent(): ZRText {\n return this._textContent;\n }\n\n /**\n * Attach text on element\n */\n setTextContent(textEl: ZRText) {\n const previousTextContent = this._textContent;\n if (previousTextContent === textEl) {\n return;\n }\n // Remove previous textContent\n if (previousTextContent && previousTextContent !== textEl) {\n this.removeTextContent();\n }\n\n if (textEl.__zr && !textEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n\n textEl.innerTransformable = new Transformable();\n\n this._attachComponent(textEl);\n\n this._textContent = textEl;\n\n this.markRedraw();\n }\n\n /**\n * Set layout of attached text. Will merge with the previous.\n */\n setTextConfig(cfg: ElementTextConfig) {\n // TODO hide cfg property?\n if (!this.textConfig) {\n this.textConfig = {};\n }\n extend(this.textConfig, cfg);\n this.markRedraw();\n }\n\n /**\n * Remove text config\n */\n removeTextConfig() {\n this.textConfig = null;\n this.markRedraw();\n }\n\n /**\n * Remove attached text element.\n */\n removeTextContent() {\n const textEl = this._textContent;\n if (textEl) {\n textEl.innerTransformable = null;\n this._detachComponent(textEl);\n this._textContent = null;\n this._innerTextDefaultStyle = null;\n this.markRedraw();\n }\n }\n\n getTextGuideLine(): Polyline {\n return this._textGuide;\n }\n\n setTextGuideLine(guideLine: Polyline) {\n // Remove previous clip path\n if (this._textGuide && this._textGuide !== guideLine) {\n this.removeTextGuideLine();\n }\n\n this._attachComponent(guideLine);\n\n this._textGuide = guideLine;\n\n this.markRedraw();\n }\n\n removeTextGuideLine() {\n const textGuide = this._textGuide;\n if (textGuide) {\n this._detachComponent(textGuide);\n this._textGuide = null;\n this.markRedraw();\n }\n }\n /**\n * Mark element needs to be repainted\n */\n markRedraw() {\n this.__dirty |= REDARAW_BIT;\n const zr = this.__zr;\n if (zr) {\n if (this.__inHover) {\n zr.refreshHover();\n }\n else {\n zr.refresh();\n }\n }\n\n // Used as a clipPath or textContent\n if (this.__hostTarget) {\n this.__hostTarget.markRedraw();\n }\n }\n\n /**\n * Besides marking elements to be refreshed.\n * It will also invalid all cache and doing recalculate next frame.\n */\n dirty() {\n this.markRedraw();\n }\n\n private _toggleHoverLayerFlag(inHover: boolean) {\n this.__inHover = inHover;\n const textContent = this._textContent;\n const textGuide = this._textGuide;\n if (textContent) {\n textContent.__inHover = inHover;\n }\n if (textGuide) {\n textGuide.__inHover = inHover;\n }\n }\n\n /**\n * Add self from zrender instance.\n * Not recursively because it will be invoked when element added to storage.\n */\n addSelfToZr(zr: ZRenderType) {\n if (this.__zr === zr) {\n return;\n }\n\n this.__zr = zr;\n // \u6DFB\u52A0\u52A8\u753B\n const animators = this.animators;\n if (animators) {\n for (let i = 0; i < animators.length; i++) {\n zr.animation.addAnimator(animators[i]);\n }\n }\n\n if (this._clipPath) {\n this._clipPath.addSelfToZr(zr);\n }\n if (this._textContent) {\n this._textContent.addSelfToZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.addSelfToZr(zr);\n }\n }\n\n /**\n * Remove self from zrender instance.\n * Not recursively because it will be invoked when element added to storage.\n */\n removeSelfFromZr(zr: ZRenderType) {\n if (!this.__zr) {\n return;\n }\n\n this.__zr = null;\n // Remove animation\n const animators = this.animators;\n if (animators) {\n for (let i = 0; i < animators.length; i++) {\n zr.animation.removeAnimator(animators[i]);\n }\n }\n\n if (this._clipPath) {\n this._clipPath.removeSelfFromZr(zr);\n }\n if (this._textContent) {\n this._textContent.removeSelfFromZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.removeSelfFromZr(zr);\n }\n }\n\n /**\n * \u52A8\u753B\n *\n * @param path The key to fetch value from object. Mostly style or shape.\n * @param loop Whether to loop animation.\n * @example:\n * el.animate('style', false)\n * .when(1000, {x: 10} )\n * .done(function(){ // Animation done })\n * .start()\n */\n animate(key?: string, loop?: boolean) {\n let target = key ? (this as any)[key] : this;\n\n if (!target) {\n logError(\n 'Property \"'\n + key\n + '\" is not existed in element '\n + this.id\n );\n return;\n }\n\n const animator = new Animator(target, loop);\n this.addAnimator(animator, key);\n return animator;\n }\n\n addAnimator(animator: Animator, key: string): void {\n const zr = this.__zr;\n\n const el = this;\n\n animator.during(function () {\n el.updateDuringAnimation(key as string);\n }).done(function () {\n const animators = el.animators;\n // FIXME Animator will not be removed if use `Animator#stop` to stop animation\n const idx = indexOf(animators, animator);\n if (idx >= 0) {\n animators.splice(idx, 1);\n }\n });\n\n this.animators.push(animator);\n\n // If animate after added to the zrender\n if (zr) {\n zr.animation.addAnimator(animator);\n }\n\n // Wake up zrender to start the animation loop.\n zr && zr.wakeUp();\n }\n\n updateDuringAnimation(key: string) {\n this.markRedraw();\n }\n\n /**\n * \u505C\u6B62\u52A8\u753B\n * @param {boolean} forwardToLast If move to last frame before stop\n */\n stopAnimation(scope?: string, forwardToLast?: boolean) {\n const animators = this.animators;\n const len = animators.length;\n const leftAnimators: Animator[] = [];\n for (let i = 0; i < len; i++) {\n const animator = animators[i];\n if (!scope || scope === animator.scope) {\n animator.stop(forwardToLast);\n }\n else {\n leftAnimators.push(animator);\n }\n }\n this.animators = leftAnimators;\n\n return this;\n }\n\n /**\n * @param animationProps A map to specify which property to animate. If not specified, will animate all.\n * @example\n * // Animate position\n * el.animateTo({\n * position: [10, 10]\n * }, { done: () => { // done } })\n *\n * // Animate shape, style and position in 100ms, delayed 100ms, with cubicOut easing\n * el.animateTo({\n * shape: {\n * width: 500\n * },\n * style: {\n * fill: 'red'\n * }\n * position: [10, 10]\n * }, {\n * duration: 100,\n * delay: 100,\n * easing: 'cubicOut',\n * done: () => { // done }\n * })\n */\n animateTo(target: Props, cfg?: ElementAnimateConfig, animationProps?: MapToType) {\n animateTo(this, target, cfg, animationProps);\n }\n\n /**\n * Animate from the target state to current state.\n * The params and the value are the same as `this.animateTo`.\n */\n\n // Overload definitions\n animateFrom(\n target: Props, cfg: ElementAnimateConfig, animationProps?: MapToType\n ) {\n animateTo(this, target, cfg, animationProps, true);\n }\n\n protected _transitionState(\n stateName: string, target: Props, cfg?: ElementAnimateConfig, animationProps?: MapToType\n ) {\n const animators = animateTo(this, target, cfg, animationProps);\n for (let i = 0; i < animators.length; i++) {\n animators[i].__fromStateTransition = stateName;\n }\n }\n\n /**\n * Interface of getting the minimum bounding box.\n */\n getBoundingRect(): BoundingRect {\n return null;\n }\n\n getPaintRect(): BoundingRect {\n return null;\n }\n\n /**\n * The string value of `textPosition` needs to be calculated to a real postion.\n * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]`\n * by default. See `contain/text.js#calculateTextPosition` for more details.\n * But some coutom shapes like \"pin\", \"flag\" have center that is not exactly\n * `[width/2, height/2]`. So we provide this hook to customize the calculation\n * for those shapes. It will be called if the `style.textPosition` is a string.\n * @param {Obejct} [out] Prepared out object. If not provided, this method should\n * be responsible for creating one.\n * @param {module:zrender/graphic/Style} style\n * @param {Object} rect {x, y, width, height}\n * @return {Obejct} out The same as the input out.\n * {\n * x: number. mandatory.\n * y: number. mandatory.\n * align: string. optional. use style.textAlign by default.\n * verticalAlign: string. optional. use style.textVerticalAlign by default.\n * }\n */\n calculateTextPosition: ElementCalculateTextPosition;\n\n protected static initDefaultProps = (function () {\n const elProto = Element.prototype;\n elProto.type = 'element';\n elProto.name = '';\n elProto.ignore = false;\n elProto.silent = false;\n elProto.isGroup = false;\n elProto.draggable = false;\n elProto.dragging = false;\n elProto.ignoreClip = false;\n elProto.__inHover = false;\n elProto.__dirty = REDARAW_BIT;\n\n\n const logs: Dictionary = {};\n function logDeprecatedError(key: string, xKey: string, yKey: string) {\n if (!logs[key + xKey + yKey]) {\n console.warn(`DEPRECATED: '${key}' has been deprecated. use '${xKey}', '${yKey}' instead`);\n logs[key + xKey + yKey] = true;\n }\n }\n // Legacy transform properties. position and scale\n function createLegacyProperty(\n key: string,\n privateKey: string,\n xKey: string,\n yKey: string\n ) {\n Object.defineProperty(elProto, key, {\n get() {\n logDeprecatedError(key, xKey, yKey);\n if (!this[privateKey]) {\n const pos: number[] = this[privateKey] = [];\n enhanceArray(this, pos);\n }\n return this[privateKey];\n },\n set(pos: number[]) {\n logDeprecatedError(key, xKey, yKey);\n this[xKey] = pos[0];\n this[yKey] = pos[1];\n this[privateKey] = pos;\n enhanceArray(this, pos);\n }\n });\n function enhanceArray(self: any, pos: number[]) {\n Object.defineProperty(pos, 0, {\n get() {\n return self[xKey];\n },\n set(val: number) {\n self[xKey] = val;\n }\n });\n Object.defineProperty(pos, 1, {\n get() {\n return self[yKey];\n },\n set(val: number) {\n self[yKey] = val;\n }\n });\n }\n }\n if (Object.defineProperty && (!(env as any).browser.ie || (env as any).browser.version > 8)) {\n createLegacyProperty('position', '_legacyPos', 'x', 'y');\n createLegacyProperty('scale', '_legacyScale', 'scaleX', 'scaleY');\n createLegacyProperty('origin', '_legacyOrigin', 'originX', 'originY');\n }\n })()\n}\n\nmixin(Element, Eventful);\nmixin(Element, Transformable);\n\nfunction animateTo(\n animatable: Element,\n target: Dictionary,\n cfg: ElementAnimateConfig,\n animationProps: Dictionary,\n reverse?: boolean\n) {\n cfg = cfg || {};\n const animators: Animator[] = [];\n animateToShallow(\n animatable,\n '',\n animatable,\n target,\n cfg,\n animationProps,\n animators,\n reverse\n );\n\n let finishCount = animators.length;\n let doneHappened = false;\n const cfgDone = cfg.done;\n const cfgAborted = cfg.aborted;\n\n const doneCb = () => {\n doneHappened = true;\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n\n const abortedCb = () => {\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n\n // No animators. This should be checked before animators[i].start(),\n // because 'done' may be executed immediately if no need to animate.\n if (!finishCount) {\n cfgDone && cfgDone();\n }\n\n // Adding during callback to the first animator\n if (animators.length > 0 && cfg.during) {\n // TODO If there are two animators in animateTo, and the first one is stopped by other animator.\n animators[0].during((target, percent) => {\n cfg.during(percent);\n });\n }\n\n // Start after all animators created\n // Incase any animator is done immediately when all animation properties are not changed\n for (let i = 0; i < animators.length; i++) {\n const animator = animators[i];\n if (doneCb) {\n animator.done(doneCb);\n }\n if (abortedCb) {\n animator.aborted(abortedCb);\n }\n animator.start(cfg.easing, cfg.force);\n }\n\n return animators;\n}\n\nfunction copyArrShallow(source: number[], target: number[], len: number) {\n for (let i = 0; i < len; i++) {\n source[i] = target[i];\n }\n}\n\nfunction is2DArray(value: any[]): value is number[][] {\n return isArrayLike(value[0]);\n}\n\nfunction copyValue(target: Dictionary, source: Dictionary, key: string) {\n if (isArrayLike(source[key])) {\n if (!isArrayLike(target[key])) {\n target[key] = [];\n }\n\n if (isTypedArray(source[key])) {\n const len = source[key].length;\n if (target[key].length !== len) {\n target[key] = new (source[key].constructor)(len);\n copyArrShallow(target[key], source[key], len);\n }\n }\n else {\n const sourceArr = source[key] as any[];\n const targetArr = target[key] as any[];\n\n const len0 = sourceArr.length;\n if (is2DArray(sourceArr)) {\n // NOTE: each item should have same length\n const len1 = sourceArr[0].length;\n\n for (let i = 0; i < len0; i++) {\n if (!targetArr[i]) {\n targetArr[i] = Array.prototype.slice.call(sourceArr[i]);\n }\n else {\n copyArrShallow(targetArr[i], sourceArr[i], len1);\n }\n }\n }\n else {\n copyArrShallow(targetArr, sourceArr, len0);\n }\n\n targetArr.length = sourceArr.length;\n }\n }\n else {\n target[key] = source[key];\n }\n}\n\nfunction animateToShallow(\n animatable: Element,\n topKey: string,\n source: Dictionary,\n target: Dictionary,\n cfg: ElementAnimateConfig,\n animationProps: Dictionary | true,\n animators: Animator[],\n reverse: boolean // If `true`, animate from the `target` to current state.\n) {\n const animatableKeys: string[] = [];\n const changedKeys: string[] = [];\n const targetKeys = keys(target);\n const duration = cfg.duration;\n const delay = cfg.delay;\n const additive = cfg.additive;\n const setToFinal = cfg.setToFinal;\n const animateAll = !isObject(animationProps);\n for (let k = 0; k < targetKeys.length; k++) {\n const innerKey = targetKeys[k] as string;\n\n if (source[innerKey] != null\n && target[innerKey] != null // Can't animate between null value. assign directly. For example. stroke animate from #fff to null.\n && (animateAll || (animationProps as Dictionary)[innerKey])\n ) {\n if (isObject(target[innerKey]) && !isArrayLike(target[innerKey])) {\n if (topKey) {\n // logError('Only support 1 depth nest object animation.');\n // Assign directly.\n // TODO richText?\n if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n }\n continue;\n }\n animateToShallow(\n animatable,\n innerKey,\n source[innerKey],\n target[innerKey],\n cfg,\n animationProps && (animationProps as Dictionary)[innerKey],\n animators,\n reverse\n );\n }\n else {\n animatableKeys.push(innerKey);\n changedKeys.push(innerKey);\n }\n }\n else if (!reverse) {\n // Assign target value directly.\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n // Previous animation will be stopped on the changed keys.\n // So direct assign is also included.\n changedKeys.push(innerKey);\n }\n }\n\n const keyLen = animatableKeys.length;\n\n if (keyLen > 0\n // cfg.force is mainly for keep invoking onframe and ondone callback even if animation is not necessary.\n // So if there is already has animators. There is no need to create another animator if not necessary.\n // Or it will always add one more with empty target.\n || (cfg.force && !animators.length)\n ) {\n // Find last animator animating same prop.\n const existsAnimators = animatable.animators;\n let existsAnimatorsOnSameTarget: Animator[] = [];\n for (let i = 0; i < existsAnimators.length; i++) {\n // Use key string instead object reference because ref may be changed.\n if (existsAnimators[i].targetName === topKey) {\n existsAnimatorsOnSameTarget.push(existsAnimators[i]);\n }\n }\n\n if (!additive && existsAnimatorsOnSameTarget.length) {\n // Stop exists animation on specific tracks. Only one animator available for each property.\n // TODO Should invoke previous animation callback?\n for (let i = 0; i < existsAnimatorsOnSameTarget.length; i++) {\n const allAborted = existsAnimatorsOnSameTarget[i].stopTracks(changedKeys);\n if (allAborted) { // This animator can't be used.\n const idx = indexOf(existsAnimators, existsAnimatorsOnSameTarget[i]);\n existsAnimators.splice(idx, 1);\n }\n }\n }\n\n let revertedSource: Dictionary;\n let reversedTarget: Dictionary;\n let sourceClone: Dictionary;\n if (reverse) {\n reversedTarget = {};\n if (setToFinal) {\n revertedSource = {};\n }\n for (let i = 0; i < keyLen; i++) {\n const innerKey = animatableKeys[i];\n reversedTarget[innerKey] = source[innerKey];\n if (setToFinal) {\n revertedSource[innerKey] = target[innerKey];\n }\n else {\n // The usage of \"animateFrom\" expects that the element props has been updated dirctly to\n // \"final\" values outside, and input the \"from\" values here (i.e., in variable `target` here).\n // So here we assign the \"from\" values directly to element here (rather that in the next frame)\n // to prevent the \"final\" values from being read in any other places (like other running\n // animator during callbacks).\n // But if `setToFinal: true` this feature can not be satisfied.\n source[innerKey] = target[innerKey];\n }\n }\n }\n else if (setToFinal) {\n sourceClone = {};\n for (let i = 0; i < keyLen; i++) {\n const innerKey = animatableKeys[i];\n // NOTE: Must clone source after the stopTracks. The property may be modified in stopTracks.\n sourceClone[innerKey] = cloneValue(source[innerKey]);\n // Use copy, not change the original reference\n // Copy from target to source.\n copyValue(source, target, innerKey);\n }\n }\n\n const animator = new Animator(source, false, additive ? existsAnimatorsOnSameTarget : null);\n animator.targetName = topKey;\n if (cfg.scope) {\n animator.scope = cfg.scope;\n }\n\n if (setToFinal && revertedSource) {\n animator.whenWithKeys(0, revertedSource, animatableKeys);\n }\n if (sourceClone) {\n animator.whenWithKeys(0, sourceClone, animatableKeys);\n }\n\n animator.whenWithKeys(\n duration == null ? 500 : duration,\n reverse ? reversedTarget : target,\n animatableKeys\n ).delay(delay || 0);\n\n animatable.addAnimator(animator, topKey);\n animators.push(animator);\n }\n}\n\n\nexport default Element;\n", "/**\n * Group\u662F\u4E00\u4E2A\u5BB9\u5668\uFF0C\u53EF\u4EE5\u63D2\u5165\u5B50\u8282\u70B9\uFF0CGroup\u7684\u53D8\u6362\u4E5F\u4F1A\u88AB\u5E94\u7528\u5230\u5B50\u8282\u70B9\u4E0A\n * @module zrender/graphic/Group\n * @example\n * const Group = require('zrender/graphic/Group');\n * const Circle = require('zrender/graphic/shape/Circle');\n * const g = new Group();\n * g.position[0] = 100;\n * g.position[1] = 100;\n * g.add(new Circle({\n * style: {\n * x: 100,\n * y: 100,\n * r: 20,\n * }\n * }));\n * zr.add(g);\n */\n\nimport * as zrUtil from '../core/util';\nimport Element, { ElementProps } from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Displayable from './Displayable';\nimport { ZRenderType } from '../zrender';\n\nexport interface GroupProps extends ElementProps {\n}\n\nclass Group extends Element {\n\n readonly isGroup = true\n\n private _children: Element[] = []\n\n\n constructor(opts?: GroupProps) {\n super();\n\n this.attr(opts);\n }\n\n /**\n * Get children reference.\n */\n childrenRef() {\n return this._children;\n }\n\n /**\n * Get children copy.\n */\n children() {\n return this._children.slice();\n }\n\n /**\n * \u83B7\u53D6\u6307\u5B9A index \u7684\u513F\u5B50\u8282\u70B9\n */\n childAt(idx: number): Element {\n return this._children[idx];\n }\n\n /**\n * \u83B7\u53D6\u6307\u5B9A\u540D\u5B57\u7684\u513F\u5B50\u8282\u70B9\n */\n childOfName(name: string): Element {\n const children = this._children;\n for (let i = 0; i < children.length; i++) {\n if (children[i].name === name) {\n return children[i];\n }\n }\n }\n\n childCount(): number {\n return this._children.length;\n }\n\n /**\n * \u6DFB\u52A0\u5B50\u8282\u70B9\u5230\u6700\u540E\n */\n add(child: Element): Group {\n if (child) {\n if (child !== this && child.parent !== this) {\n this._children.push(child);\n this._doAdd(child);\n }\n if (child.__hostTarget) {\n throw 'This elemenet has been used as an attachment';\n }\n }\n\n return this;\n }\n\n /**\n * \u6DFB\u52A0\u5B50\u8282\u70B9\u5728 nextSibling \u4E4B\u524D\n */\n addBefore(child: Element, nextSibling: Element) {\n if (child && child !== this && child.parent !== this\n && nextSibling && nextSibling.parent === this) {\n\n const children = this._children;\n const idx = children.indexOf(nextSibling);\n\n if (idx >= 0) {\n children.splice(idx, 0, child);\n this._doAdd(child);\n }\n }\n\n return this;\n }\n\n replace(oldChild: Element, newChild: Element) {\n const idx = zrUtil.indexOf(this._children, oldChild);\n if (idx >= 0) {\n this.replaceAt(newChild, idx);\n }\n return this;\n }\n\n replaceAt(child: Element, index: number) {\n const children = this._children;\n const old = children[index];\n\n if (child && child !== this && child.parent !== this && child !== old) {\n children[index] = child;\n\n old.parent = null;\n const zr = this.__zr;\n if (zr) {\n old.removeSelfFromZr(zr);\n }\n\n this._doAdd(child);\n }\n\n return this;\n }\n\n _doAdd(child: Element) {\n if (child.parent) {\n // Parent must be a group\n (child.parent as Group).remove(child);\n }\n\n child.parent = this;\n\n const zr = this.__zr;\n if (zr && zr !== (child as Group).__zr) { // Only group has __storage\n\n child.addSelfToZr(zr);\n }\n\n zr && zr.refresh();\n }\n\n /**\n * Remove child\n * @param child\n */\n remove(child: Element) {\n const zr = this.__zr;\n const children = this._children;\n\n const idx = zrUtil.indexOf(children, child);\n if (idx < 0) {\n return this;\n }\n children.splice(idx, 1);\n\n child.parent = null;\n\n if (zr) {\n\n child.removeSelfFromZr(zr);\n }\n\n zr && zr.refresh();\n\n return this;\n }\n\n /**\n * Remove all children\n */\n removeAll() {\n const children = this._children;\n const zr = this.__zr;\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n child.parent = null;\n }\n children.length = 0;\n\n return this;\n }\n\n /**\n * \u904D\u5386\u6240\u6709\u5B50\u8282\u70B9\n */\n eachChild(\n cb: (this: Context, el: Element, index?: number) => void,\n context?: Context\n ) {\n const children = this._children;\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n cb.call(context, child, i);\n }\n return this;\n }\n\n /**\n * Visit all descendants.\n * Return false in callback to stop visit descendants of current node\n */\n // TODO Group itself should also invoke the callback.\n traverse(\n cb: (this: T, el: Element) => boolean | void,\n context?: T\n ) {\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n const stopped = cb.call(context, child);\n\n if (child.isGroup && !stopped) {\n child.traverse(cb, context);\n }\n }\n return this;\n }\n\n addSelfToZr(zr: ZRenderType) {\n super.addSelfToZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n child.addSelfToZr(zr);\n }\n }\n\n removeSelfFromZr(zr: ZRenderType) {\n super.removeSelfFromZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n child.removeSelfFromZr(zr);\n }\n }\n\n getBoundingRect(includeChildren?: Element[]): BoundingRect {\n // TODO Caching\n const tmpRect = new BoundingRect(0, 0, 0, 0);\n const children = includeChildren || this._children;\n const tmpMat: MatrixArray = [];\n let rect = null;\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n // TODO invisible?\n if (child.ignore || (child as Displayable).invisible) {\n continue;\n }\n\n const childRect = child.getBoundingRect();\n const transform = child.getLocalTransform(tmpMat);\n // TODO\n // The boundingRect cacluated by transforming original\n // rect may be bigger than the actual bundingRect when rotation\n // is used. (Consider a circle rotated aginst its center, where\n // the actual boundingRect should be the same as that not be\n // rotated.) But we can not find better approach to calculate\n // actual boundingRect yet, considering performance.\n if (transform) {\n BoundingRect.applyTransform(tmpRect, childRect, transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n return rect || tmpRect;\n }\n}\n\nGroup.prototype.type = 'group';\n// Storage will use childrenRef to get children to render.\nexport interface GroupLike extends Element {\n childrenRef(): Element[]\n}\n\nexport default Group;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The method \"quantile\" was copied from \"d3.js\".\n* (See more details in the comment of the method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst RADIAN_EPSILON = 1e-4;\n// Although chrome already enlarge this number to 100 for `toFixed`, but\n// we sill follow the spec for compatibility.\nconst ROUND_SUPPORTED_PRECISION_MAX = 20;\n\nfunction _trim(str: string): string {\n return str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Linear mapping a value from domain to range\n * @param val\n * @param domain Domain extent domain[0] can be bigger than domain[1]\n * @param range Range extent range[0] can be bigger than range[1]\n * @param clamp Default to be false\n */\nexport function linearMap(\n val: number,\n domain: number[],\n range: number[],\n clamp?: boolean\n): number {\n const d0 = domain[0];\n const d1 = domain[1];\n const r0 = range[0];\n const r1 = range[1];\n\n const subDomain = d1 - d0;\n const subRange = r1 - r0;\n\n if (subDomain === 0) {\n return subRange === 0\n ? r0\n : (r0 + r1) / 2;\n }\n\n // Avoid accuracy problem in edge, such as\n // 146.39 - 62.83 === 83.55999999999999.\n // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError\n // It is a little verbose for efficiency considering this method\n // is a hotspot.\n if (clamp) {\n if (subDomain > 0) {\n if (val <= d0) {\n return r0;\n }\n else if (val >= d1) {\n return r1;\n }\n }\n else {\n if (val >= d0) {\n return r0;\n }\n else if (val <= d1) {\n return r1;\n }\n }\n }\n else {\n if (val === d0) {\n return r0;\n }\n if (val === d1) {\n return r1;\n }\n }\n\n return (val - d0) / subDomain * subRange + r0;\n}\n\n/**\n * Convert a percent string to absolute number.\n * Returns NaN if percent is not a valid string or number\n */\nexport function parsePercent(percent: number | string, all: number): number {\n switch (percent) {\n case 'center':\n case 'middle':\n percent = '50%';\n break;\n case 'left':\n case 'top':\n percent = '0%';\n break;\n case 'right':\n case 'bottom':\n percent = '100%';\n break;\n }\n if (typeof percent === 'string') {\n if (_trim(percent).match(/%$/)) {\n return parseFloat(percent) / 100 * all;\n }\n\n return parseFloat(percent);\n }\n\n return percent == null ? NaN : +percent;\n}\n\n/**\n * (1) Fix rounding error of float numbers.\n * (2) Support return string to avoid scientific notation like '3.5e-7'.\n */\nexport function round(x: number | string, precision?: number): number;\nexport function round(x: number | string, precision: number, returnStr: false): number;\nexport function round(x: number | string, precision: number, returnStr: true): string;\nexport function round(x: number | string, precision?: number, returnStr?: boolean): string | number {\n if (precision == null) {\n precision = 10;\n }\n // Avoid range error\n precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX);\n // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'\n x = (+x).toFixed(precision);\n return (returnStr ? x : +x);\n}\n\n/**\n * Inplacd asc sort arr.\n * The input arr will be modified.\n */\nexport function asc(arr: T): T {\n arr.sort(function (a, b) {\n return a - b;\n });\n return arr;\n}\n\n/**\n * Get precision.\n */\nexport function getPrecision(val: string | number): number {\n val = +val;\n if (isNaN(val)) {\n return 0;\n }\n\n // It is much faster than methods converting number to string as follows\n // let tmp = val.toString();\n // return tmp.length - 1 - tmp.indexOf('.');\n // especially when precision is low\n // Notice:\n // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.\n // (see https://jsbench.me/2vkpcekkvw/1)\n // (2) If the val is less than for example 1e-15, the result may be incorrect.\n // (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)\n if (val > 1e-14) {\n let e = 1;\n for (let i = 0; i < 15; i++, e *= 10) {\n if (Math.round(val * e) / e === val) {\n return i;\n }\n }\n }\n\n return getPrecisionSafe(val);\n}\n\n/**\n * Get precision with slow but safe method\n */\nexport function getPrecisionSafe(val: string | number): number {\n // toLowerCase for: '3.4E-12'\n const str = val.toString().toLowerCase();\n\n // Consider scientific notation: '3.4e-12' '3.4e+12'\n const eIndex = str.indexOf('e');\n const exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0;\n const significandPartLen = eIndex > 0 ? eIndex : str.length;\n const dotIndex = str.indexOf('.');\n const decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex;\n return Math.max(0, decimalPartLen - exp);\n}\n\n/**\n * Minimal dicernible data precisioin according to a single pixel.\n */\nexport function getPixelPrecision(dataExtent: [number, number], pixelExtent: [number, number]): number {\n const log = Math.log;\n const LN10 = Math.LN10;\n const dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);\n const sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10);\n // toFixed() digits argument must be between 0 and 20.\n const precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);\n return !isFinite(precision) ? 20 : precision;\n}\n\n/**\n * Get a data of given precision, assuring the sum of percentages\n * in valueList is 1.\n * The largest remainer method is used.\n * https://en.wikipedia.org/wiki/Largest_remainder_method\n *\n * @param valueList a list of all data\n * @param idx index of the data to be processed in valueList\n * @param precision integer number showing digits of precision\n * @return percent ranging from 0 to 100\n */\nexport function getPercentWithPrecision(valueList: number[], idx: number, precision: number): number {\n if (!valueList[idx]) {\n return 0;\n }\n\n const sum = zrUtil.reduce(valueList, function (acc, val) {\n return acc + (isNaN(val) ? 0 : val);\n }, 0);\n if (sum === 0) {\n return 0;\n }\n\n const digits = Math.pow(10, precision);\n const votesPerQuota = zrUtil.map(valueList, function (val) {\n return (isNaN(val) ? 0 : val) / sum * digits * 100;\n });\n const targetSeats = digits * 100;\n\n const seats = zrUtil.map(votesPerQuota, function (votes) {\n // Assign automatic seats.\n return Math.floor(votes);\n });\n let currentSum = zrUtil.reduce(seats, function (acc, val) {\n return acc + val;\n }, 0);\n\n const remainder = zrUtil.map(votesPerQuota, function (votes, idx) {\n return votes - seats[idx];\n });\n\n // Has remainding votes.\n while (currentSum < targetSeats) {\n // Find next largest remainder.\n let max = Number.NEGATIVE_INFINITY;\n let maxId = null;\n for (let i = 0, len = remainder.length; i < len; ++i) {\n if (remainder[i] > max) {\n max = remainder[i];\n maxId = i;\n }\n }\n\n // Add a vote to max remainder.\n ++seats[maxId];\n remainder[maxId] = 0;\n ++currentSum;\n }\n\n return seats[idx] / digits;\n}\n\n/**\n * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004\n * See \n */\nexport function addSafe(val0: number, val1: number): number {\n const maxPrecision = Math.max(getPrecision(val0), getPrecision(val1));\n // const multiplier = Math.pow(10, maxPrecision);\n // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;\n const sum = val0 + val1;\n // // PENDING: support more?\n return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX\n ? sum : round(sum, maxPrecision);\n}\n\n// Number.MAX_SAFE_INTEGER, ie do not support.\nexport const MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * To 0 - 2 * PI, considering negative radian.\n */\nexport function remRadian(radian: number): number {\n const pi2 = Math.PI * 2;\n return (radian % pi2 + pi2) % pi2;\n}\n\n/**\n * @param {type} radian\n * @return {boolean}\n */\nexport function isRadianAroundZero(val: number): boolean {\n return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;\n}\n\n// eslint-disable-next-line\nconst TIME_REG = /^(?:(\\d{4})(?:[-\\/](\\d{1,2})(?:[-\\/](\\d{1,2})(?:[T ](\\d{1,2})(?::(\\d{1,2})(?::(\\d{1,2})(?:[.,](\\d+))?)?)?(Z|[\\+\\-]\\d\\d:?\\d\\d)?)?)?)?)?$/; // jshint ignore:line\n\n/**\n * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`\n * These values can be accepted:\n * + An instance of Date, represent a time in its own time zone.\n * + Or string in a subset of ISO 8601, only including:\n * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',\n * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',\n * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',\n * all of which will be treated as local time if time zone is not specified\n * (see ).\n * + Or other string format, including (all of which will be treated as loacal time):\n * '2012', '2012-3-1', '2012/3/1', '2012/03/01',\n * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'\n * + a timestamp, which represent a time in UTC.\n * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.\n */\nexport function parseDate(value: unknown): Date {\n if (value instanceof Date) {\n return value;\n }\n else if (typeof value === 'string') {\n // Different browsers parse date in different way, so we parse it manually.\n // Some other issues:\n // new Date('1970-01-01') is UTC,\n // new Date('1970/01/01') and new Date('1970-1-01') is local.\n // See issue #3623\n const match = TIME_REG.exec(value);\n\n if (!match) {\n // return Invalid Date.\n return new Date(NaN);\n }\n\n // Use local time when no timezone offset specifed.\n if (!match[8]) {\n // match[n] can only be string or undefined.\n // But take care of '12' + 1 => '121'.\n return new Date(\n +match[1],\n +(match[2] || 1) - 1,\n +match[3] || 1,\n +match[4] || 0,\n +(match[5] || 0),\n +match[6] || 0,\n match[7] ? +match[7].substring(0, 3) : 0\n );\n }\n // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,\n // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).\n // For example, system timezone is set as \"Time Zone: America/Toronto\",\n // then these code will get different result:\n // `new Date(1478411999999).getTimezoneOffset(); // get 240`\n // `new Date(1478412000000).getTimezoneOffset(); // get 300`\n // So we should not use `new Date`, but use `Date.UTC`.\n else {\n let hour = +match[4] || 0;\n if (match[8].toUpperCase() !== 'Z') {\n hour -= +match[8].slice(0, 3);\n }\n return new Date(Date.UTC(\n +match[1],\n +(match[2] || 1) - 1,\n +match[3] || 1,\n hour,\n +(match[5] || 0),\n +match[6] || 0,\n match[7] ? +match[7].substring(0, 3) : 0\n ));\n }\n }\n else if (value == null) {\n return new Date(NaN);\n }\n\n return new Date(Math.round(value as number));\n}\n\n/**\n * Quantity of a number. e.g. 0.1, 1, 10, 100\n *\n * @param val\n * @return\n */\nexport function quantity(val: number): number {\n return Math.pow(10, quantityExponent(val));\n}\n\n/**\n * Exponent of the quantity of a number\n * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3\n *\n * @param val non-negative value\n * @return\n */\nexport function quantityExponent(val: number): number {\n if (val === 0) {\n return 0;\n }\n\n let exp = Math.floor(Math.log(val) / Math.LN10);\n /**\n * exp is expected to be the rounded-down result of the base-10 log of val.\n * But due to the precision loss with Math.log(val), we need to restore it\n * using 10^exp to make sure we can get val back from exp. #11249\n */\n if (val / Math.pow(10, exp) >= 10) {\n exp++;\n }\n return exp;\n}\n\n/**\n * find a \u201Cnice\u201D number approximately equal to x. Round the number if round = true,\n * take ceiling if round = false. The primary observation is that the \u201Cnicest\u201D\n * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.\n *\n * See \"Nice Numbers for Graph Labels\" of Graphic Gems.\n *\n * @param val Non-negative value.\n * @param round\n * @return Niced number\n */\nexport function nice(val: number, round?: boolean): number {\n const exponent = quantityExponent(val);\n const exp10 = Math.pow(10, exponent);\n const f = val / exp10; // 1 <= f < 10\n let nf;\n if (round) {\n if (f < 1.5) {\n nf = 1;\n }\n else if (f < 2.5) {\n nf = 2;\n }\n else if (f < 4) {\n nf = 3;\n }\n else if (f < 7) {\n nf = 5;\n }\n else {\n nf = 10;\n }\n }\n else {\n if (f < 1) {\n nf = 1;\n }\n else if (f < 2) {\n nf = 2;\n }\n else if (f < 3) {\n nf = 3;\n }\n else if (f < 5) {\n nf = 5;\n }\n else {\n nf = 10;\n }\n }\n val = nf * exp10;\n\n // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).\n // 20 is the uppper bound of toFixed.\n return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;\n}\n\n/**\n * This code was copied from \"d3.js\"\n * .\n * See the license statement at the head of this file.\n * @param ascArr\n */\nexport function quantile(ascArr: number[], p: number): number {\n const H = (ascArr.length - 1) * p + 1;\n const h = Math.floor(H);\n const v = +ascArr[h - 1];\n const e = H - h;\n return e ? v + e * (ascArr[h] - v) : v;\n}\n\ntype IntervalItem = {\n interval: [number, number]\n close: [0 | 1, 0 | 1]\n};\n/**\n * Order intervals asc, and split them when overlap.\n * expect(numberUtil.reformIntervals([\n * {interval: [18, 62], close: [1, 1]},\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [1, 1]},\n * {interval: [62, 150], close: [1, 1]},\n * {interval: [106, 150], close: [1, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ])).toEqual([\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [0, 1]},\n * {interval: [18, 62], close: [0, 1]},\n * {interval: [62, 150], close: [0, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ]);\n * @param list, where `close` mean open or close\n * of the interval, and Infinity can be used.\n * @return The origin list, which has been reformed.\n */\nexport function reformIntervals(list: IntervalItem[]): IntervalItem[] {\n list.sort(function (a, b) {\n return littleThan(a, b, 0) ? -1 : 1;\n });\n\n let curr = -Infinity;\n let currClose = 1;\n for (let i = 0; i < list.length;) {\n const interval = list[i].interval;\n const close = list[i].close;\n\n for (let lg = 0; lg < 2; lg++) {\n if (interval[lg] <= curr) {\n interval[lg] = curr;\n close[lg] = (!lg ? 1 - currClose : 1) as 0 | 1;\n }\n curr = interval[lg];\n currClose = close[lg];\n }\n\n if (interval[0] === interval[1] && close[0] * close[1] !== 1) {\n list.splice(i, 1);\n }\n else {\n i++;\n }\n }\n\n return list;\n\n function littleThan(a: IntervalItem, b: IntervalItem, lg: number): boolean {\n return a.interval[lg] < b.interval[lg]\n || (\n a.interval[lg] === b.interval[lg]\n && (\n (a.close[lg] - b.close[lg] === (!lg ? 1 : -1))\n || (!lg && littleThan(a, b, 1))\n )\n );\n }\n}\n\n/**\n * [Numberic is defined as]:\n * `parseFloat(val) == val`\n * For example:\n * numeric:\n * typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,\n * and they rounded by white-spaces or line-terminal like ' -123 \\n ' (see es spec)\n * not-numeric:\n * null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',\n * empty string, string with only white-spaces or line-terminal (see es spec),\n * 0x12, '0x12', '-0x12', 012, '012', '-012',\n * non-string, ...\n *\n * @test See full test cases in `test/ut/spec/util/number.js`.\n * @return Must be a typeof number. If not numeric, return NaN.\n */\nexport function numericToNumber(val: unknown): number {\n const valFloat = parseFloat(val as string);\n return (\n valFloat == val // eslint-disable-line eqeqeq\n && (valFloat !== 0 || typeof val !== 'string' || val.indexOf('x') <= 0) // For case ' 0x0 '.\n ) ? valFloat : NaN;\n}\n\n/**\n * Definition of \"numeric\": see `numericToNumber`.\n */\nexport function isNumeric(val: unknown): val is number {\n return !isNaN(numericToNumber(val));\n}\n\n/**\n * Use random base to prevent users hard code depending on\n * this auto generated marker id.\n * @return An positive integer.\n */\nexport function getRandomIdBase(): number {\n return Math.round(Math.random() * 9);\n}\n\n/**\n * Get the greatest common dividor\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\nexport function getGreatestCommonDividor(a: number, b: number): number {\n if (b === 0) {\n return a;\n }\n return getGreatestCommonDividor(b, a % b);\n}\n\n/**\n * Get the least common multiple\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\nexport function getLeastCommonMultiple(a: number, b: number) {\n if (a == null) {\n return b;\n }\n if (b == null) {\n return a;\n }\n return a * b / getGreatestCommonDividor(a, b);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from './types';\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/src/core/util';\n\nconst ECHARTS_PREFIX = '[ECharts] ';\nconst storedLogs: Dictionary = {};\n\nconst hasConsole = typeof console !== 'undefined'\n // eslint-disable-next-line\n && console.warn && console.log;\n\nexport function log(str: string) {\n if (hasConsole) {\n // eslint-disable-next-line\n console.log(ECHARTS_PREFIX + str);\n }\n}\n\nexport function warn(str: string) {\n if (hasConsole) {\n console.warn(ECHARTS_PREFIX + str);\n }\n}\n\nexport function error(str: string) {\n if (hasConsole) {\n console.error(ECHARTS_PREFIX + str);\n }\n}\n\nexport function deprecateLog(str: string) {\n if (__DEV__) {\n if (storedLogs[str]) { // Not display duplicate message.\n return;\n }\n if (hasConsole) {\n storedLogs[str] = true;\n console.warn(ECHARTS_PREFIX + 'DEPRECATED: ' + str);\n }\n }\n}\n\nexport function deprecateReplaceLog(oldOpt: string, newOpt: string, scope?: string) {\n if (__DEV__) {\n deprecateLog((scope ? `[${scope}]` : '') + `${oldOpt} is deprecated, use ${newOpt} instead.`);\n }\n}\n\nexport function consoleLog(...args: unknown[]) {\n if (__DEV__) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && console.log) {\n console.log.apply(console, args);\n }\n /* eslint-enable no-console */\n }\n}\n\n/**\n * If in __DEV__ environment, get console printable message for users hint.\n * Parameters are separated by ' '.\n * @usuage\n * makePrintable('This is an error on', someVar, someObj);\n *\n * @param hintInfo anything about the current execution context to hint users.\n * @throws Error\n */\nexport function makePrintable(...hintInfo: unknown[]): string {\n let msg = '';\n\n if (__DEV__) {\n // Fuzzy stringify for print.\n // This code only exist in dev environment.\n const makePrintableStringIfPossible = (val: unknown): string => {\n return val === void 0 ? 'undefined'\n : val === Infinity ? 'Infinity'\n : val === -Infinity ? '-Infinity'\n : eqNaN(val) ? 'NaN'\n : val instanceof Date ? 'Date(' + val.toISOString() + ')'\n : isFunction(val) ? 'function () { ... }'\n : isRegExp(val) ? val + ''\n : null;\n };\n msg = map(hintInfo, arg => {\n if (isString(arg)) {\n // Print without quotation mark for some statement.\n return arg;\n }\n else {\n const printableStr = makePrintableStringIfPossible(arg);\n if (printableStr != null) {\n return printableStr;\n }\n else if (typeof JSON !== 'undefined' && JSON.stringify) {\n try {\n return JSON.stringify(arg, function (n, val) {\n const printableStr = makePrintableStringIfPossible(val);\n return printableStr == null ? val : printableStr;\n });\n // In most cases the info object is small, so do not line break.\n }\n catch (err) {\n return '?';\n }\n }\n else {\n return '?';\n }\n }\n }).join(' ');\n }\n\n return msg;\n}\n\n/**\n * @throws Error\n */\nexport function throwError(msg?: string) {\n throw new Error(msg);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n each,\n isObject,\n isArray,\n createHashMap,\n HashMap,\n map,\n assert,\n isString,\n indexOf,\n isStringSafe\n} from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport GlobalModel from '../model/Global';\nimport ComponentModel, {ComponentModelConstructor} from '../model/Component';\nimport SeriesData from '../data/SeriesData';\nimport {\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n DisplayStateHostOption,\n OptionDataItem,\n OptionDataValue,\n TooltipRenderMode,\n Payload,\n OptionId,\n OptionName,\n InterpolatableValue\n} from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesModel from '../model/Series';\nimport CartesianAxisModel from '../coord/cartesian/AxisModel';\nimport GridModel from '../coord/cartesian/GridModel';\nimport { isNumeric, getRandomIdBase, getPrecision, round } from './number';\nimport { interpolateNumber } from 'zrender/src/animation/Animator';\nimport { warn } from './log';\n\n/**\n * Make the name displayable. But we should\n * make sure it is not duplicated with user\n * specified name, so use '\\0';\n */\nconst DUMMY_COMPONENT_NAME_PREFIX = 'series\\0';\n\nconst INTERNAL_COMPONENT_ID_PREFIX = '\\0_ec_\\0';\n\n/**\n * If value is not array, then translate it to array.\n * @param {*} value\n * @return {Array} [value] or value\n */\nexport function normalizeToArray(value?: T | T[]): T[] {\n return value instanceof Array\n ? value\n : value == null\n ? []\n : [value];\n}\n\n/**\n * Sync default option between normal and emphasis like `position` and `show`\n * In case some one will write code like\n * label: {\n * show: false,\n * position: 'outside',\n * fontSize: 18\n * },\n * emphasis: {\n * label: { show: true }\n * }\n */\nexport function defaultEmphasis(\n opt: DisplayStateHostOption,\n key: string,\n subOpts: string[]\n): void {\n // Caution: performance sensitive.\n if (opt) {\n opt[key] = opt[key] || {};\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[key] = opt.emphasis[key] || {};\n\n // Default emphasis option from normal\n for (let i = 0, len = subOpts.length; i < len; i++) {\n const subOptName = subOpts[i];\n if (!opt.emphasis[key].hasOwnProperty(subOptName)\n && opt[key].hasOwnProperty(subOptName)\n ) {\n opt.emphasis[key][subOptName] = opt[key][subOptName];\n }\n }\n }\n}\n\nexport const TEXT_STYLE_OPTIONS = [\n 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth',\n 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY',\n 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY',\n 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding'\n] as const;\n\n// modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([\n// 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',\n// 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n// // FIXME: deprecated, check and remove it.\n// 'textStyle'\n// ]);\n\n/**\n * The method do not ensure performance.\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method retieves value from data.\n */\nexport function getDataItemValue(\n dataItem: OptionDataItem\n): OptionDataValue | OptionDataValue[] {\n return (isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date))\n ? (dataItem as Dictionary).value : dataItem;\n}\n\n/**\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method determine if dataItem has extra option besides value\n */\nexport function isDataItemOption(dataItem: OptionDataItem): boolean {\n return isObject(dataItem)\n && !(dataItem instanceof Array);\n // // markLine data can be array\n // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));\n}\n\n// Compatible with previous definition: id could be number (but not recommanded).\n// number and string are trade the same when compare.\n// number id will not be converted to string in option.\n// number id will be converted to string in component instance id.\nexport interface MappingExistingItem {\n id?: OptionId;\n name?: string;\n};\n/**\n * The array `MappingResult[]` exactly represents the content of the result\n * components array after merge.\n * The indices are the same as the `existings`.\n * Items will not be `null`/`undefined` even if the corresponding `existings` will be removed.\n */\ntype MappingResult = MappingResultItem[];\ninterface MappingResultItem {\n // Existing component instance.\n existing: T;\n // The mapped new component option.\n newOption: ComponentOption;\n // Mark that the new component has nothing to do with any of the old components.\n // So they won't share view. Also see `__requireNewView`.\n brandNew: boolean;\n // keyInfo for new component.\n // All of them will be assigned to a created component instance.\n keyInfo: {\n name: string,\n id: string,\n mainType: ComponentMainType,\n subType: ComponentSubType\n };\n}\n\ntype MappingToExistsMode = 'normalMerge' | 'replaceMerge' | 'replaceAll';\n\n/**\n * Mapping to existings for merge.\n *\n * Mode \"normalMege\":\n * The mapping result (merge result) will keep the order of the existing\n * component, rather than the order of new option. Because we should ensure\n * some specified index reference (like xAxisIndex) keep work.\n * And in most cases, \"merge option\" is used to update partial option but not\n * be expected to change the order.\n *\n * Mode \"replaceMege\":\n * (1) Only the id mapped components will be merged.\n * (2) Other existing components (except internal compoonets) will be removed.\n * (3) Other new options will be used to create new component.\n * (4) The index of the existing compoents will not be modified.\n * That means their might be \"hole\" after the removal.\n * The new components are created first at those available index.\n *\n * Mode \"replaceAll\":\n * This mode try to support that reproduce an echarts instance from another\n * echarts instance (via `getOption`) in some simple cases.\n * In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,\n * which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,\n * the \"hole\" in `newCmptOptions` will also be kept.\n * On the contrary, other modes try best to eliminate holes.\n * PENDING: This is an experimental mode yet.\n *\n * @return See the comment of .\n */\nexport function mappingToExists(\n existings: T[],\n newCmptOptions: ComponentOption[],\n mode: MappingToExistsMode\n): MappingResult {\n\n const isNormalMergeMode = mode === 'normalMerge';\n const isReplaceMergeMode = mode === 'replaceMerge';\n const isReplaceAllMode = mode === 'replaceAll';\n existings = existings || [];\n newCmptOptions = (newCmptOptions || []).slice();\n const existingIdIdxMap = createHashMap();\n\n // Validate id and name on user input option.\n each(newCmptOptions, function (cmptOption, index) {\n if (!isObject(cmptOption)) {\n newCmptOptions[index] = null;\n return;\n }\n\n if (__DEV__) {\n // There is some legacy case that name is set as `false`.\n // But should work normally rather than throw error.\n if (cmptOption.id != null && !isValidIdOrName(cmptOption.id)) {\n warnInvalidateIdOrName(cmptOption.id);\n }\n if (cmptOption.name != null && !isValidIdOrName(cmptOption.name)) {\n warnInvalidateIdOrName(cmptOption.name);\n }\n }\n });\n\n const result = prepareResult(existings, existingIdIdxMap, mode);\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingById(result, existings, existingIdIdxMap, newCmptOptions);\n }\n\n if (isNormalMergeMode) {\n mappingByName(result, newCmptOptions);\n }\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingByIndex(result, newCmptOptions, isReplaceMergeMode);\n }\n else if (isReplaceAllMode) {\n mappingInReplaceAllMode(result, newCmptOptions);\n }\n\n makeIdAndName(result);\n\n // The array `result` MUST NOT contain elided items, otherwise the\n // forEach will ommit those items and result in incorrect result.\n return result;\n}\n\nfunction prepareResult(\n existings: T[],\n existingIdIdxMap: HashMap,\n mode: MappingToExistsMode\n): MappingResultItem[] {\n const result: MappingResultItem[] = [];\n\n if (mode === 'replaceAll') {\n return result;\n }\n\n // Do not use native `map` to in case that the array `existings`\n // contains elided items, which will be ommited.\n for (let index = 0; index < existings.length; index++) {\n const existing = existings[index];\n // Because of replaceMerge, `existing` may be null/undefined.\n if (existing && existing.id != null) {\n existingIdIdxMap.set(existing.id, index);\n }\n // For non-internal-componnets:\n // Mode \"normalMerge\": all existings kept.\n // Mode \"replaceMerge\": all existing removed unless mapped by id.\n // For internal-components:\n // go with \"replaceMerge\" approach in both mode.\n result.push({\n existing: (mode === 'replaceMerge' || isComponentIdInternal(existing))\n ? null\n : existing,\n newOption: null,\n keyInfo: null,\n brandNew: null\n });\n }\n return result;\n}\n\nfunction mappingById(\n result: MappingResult,\n existings: T[],\n existingIdIdxMap: HashMap,\n newCmptOptions: ComponentOption[]\n): void {\n // Mapping by id if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.id == null) {\n return;\n }\n const optionId = makeComparableKey(cmptOption.id);\n const existingIdx = existingIdIdxMap.get(optionId);\n if (existingIdx != null) {\n const resultItem = result[existingIdx];\n assert(\n !resultItem.newOption,\n 'Duplicated option on id \"' + optionId + '\".'\n );\n resultItem.newOption = cmptOption;\n // In both mode, if id matched, new option will be merged to\n // the existings rather than creating new component model.\n resultItem.existing = existings[existingIdx];\n newCmptOptions[index] = null;\n }\n });\n}\n\nfunction mappingByName(\n result: MappingResult,\n newCmptOptions: ComponentOption[]\n): void {\n // Mapping by name if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.name == null) {\n return;\n }\n for (let i = 0; i < result.length; i++) {\n const existing = result[i].existing;\n if (!result[i].newOption // Consider name: two map to one.\n // Can not match when both ids existing but different.\n && existing\n && (existing.id == null || cmptOption.id == null)\n && !isComponentIdInternal(cmptOption)\n && !isComponentIdInternal(existing)\n && keyExistAndEqual('name', existing, cmptOption)\n ) {\n result[i].newOption = cmptOption;\n newCmptOptions[index] = null;\n return;\n }\n }\n });\n}\n\nfunction mappingByIndex(\n result: MappingResult,\n newCmptOptions: ComponentOption[],\n brandNew: boolean\n): void {\n each(newCmptOptions, function (cmptOption) {\n if (!cmptOption) {\n return;\n }\n\n // Find the first place that not mapped by id and not internal component (consider the \"hole\").\n let resultItem;\n let nextIdx = 0;\n while (\n // Be `!resultItem` only when `nextIdx >= result.length`.\n (resultItem = result[nextIdx])\n // (1) Existing models that already have id should be able to mapped to. Because\n // after mapping performed, model will always be assigned with an id if user not given.\n // After that all models have id.\n // (2) If new option has id, it can only set to a hole or append to the last. It should\n // not be merged to the existings with different id. Because id should not be overwritten.\n // (3) Name can be overwritten, because axis use name as 'show label text'.\n && (\n resultItem.newOption\n || isComponentIdInternal(resultItem.existing)\n || (\n // In mode \"replaceMerge\", here no not-mapped-non-internal-existing.\n resultItem.existing\n && cmptOption.id != null\n && !keyExistAndEqual('id', cmptOption, resultItem.existing)\n )\n )\n ) {\n nextIdx++;\n }\n\n if (resultItem) {\n resultItem.newOption = cmptOption;\n resultItem.brandNew = brandNew;\n }\n else {\n result.push({\n newOption: cmptOption,\n brandNew: brandNew,\n existing: null,\n keyInfo: null\n });\n }\n nextIdx++;\n });\n}\n\nfunction mappingInReplaceAllMode(\n result: MappingResult,\n newCmptOptions: ComponentOption[]\n): void {\n each(newCmptOptions, function (cmptOption) {\n // The feature \"reproduce\" requires \"hole\" will also reproduced\n // in case that compoennt index referring are broken.\n result.push({\n newOption: cmptOption,\n brandNew: true,\n existing: null,\n keyInfo: null\n });\n });\n}\n\n/**\n * Make id and name for mapping result (result of mappingToExists)\n * into `keyInfo` field.\n */\nfunction makeIdAndName(\n mapResult: MappingResult\n): void {\n // We use this id to hash component models and view instances\n // in echarts. id can be specified by user, or auto generated.\n\n // The id generation rule ensures new view instance are able\n // to mapped to old instance when setOption are called in\n // no-merge mode. So we generate model id by name and plus\n // type in view id.\n\n // name can be duplicated among components, which is convenient\n // to specify multi components (like series) by one name.\n\n // Ensure that each id is distinct.\n const idMap = createHashMap();\n\n each(mapResult, function (item) {\n const existing = item.existing;\n existing && idMap.set(existing.id, item);\n });\n\n each(mapResult, function (item) {\n const opt = item.newOption;\n\n // Force ensure id not duplicated.\n assert(\n !opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item,\n 'id duplicates: ' + (opt && opt.id)\n );\n\n opt && opt.id != null && idMap.set(opt.id, item);\n !item.keyInfo && (item.keyInfo = {} as MappingResultItem['keyInfo']);\n });\n\n // Make name and id.\n each(mapResult, function (item, index) {\n const existing = item.existing;\n const opt = item.newOption;\n const keyInfo = item.keyInfo;\n\n if (!isObject(opt)) {\n return;\n }\n\n // name can be overwitten. Consider case: axis.name = '20km'.\n // But id generated by name will not be changed, which affect\n // only in that case: setOption with 'not merge mode' and view\n // instance will be recreated, which can be accepted.\n keyInfo.name = opt.name != null\n ? makeComparableKey(opt.name)\n : existing\n ? existing.name\n // Avoid diffferent series has the same name,\n // because name may be used like in color pallet.\n : DUMMY_COMPONENT_NAME_PREFIX + index;\n\n if (existing) {\n keyInfo.id = makeComparableKey(existing.id);\n }\n else if (opt.id != null) {\n keyInfo.id = makeComparableKey(opt.id);\n }\n else {\n // Consider this situatoin:\n // optionA: [{name: 'a'}, {name: 'a'}, {..}]\n // optionB [{..}, {name: 'a'}, {name: 'a'}]\n // Series with the same name between optionA and optionB\n // should be mapped.\n let idNum = 0;\n do {\n keyInfo.id = '\\0' + keyInfo.name + '\\0' + idNum++;\n }\n while (idMap.get(keyInfo.id));\n }\n\n idMap.set(keyInfo.id, item);\n });\n}\n\nfunction keyExistAndEqual(\n attr: 'id' | 'name',\n obj1: { id?: OptionId, name?: OptionName },\n obj2: { id?: OptionId, name?: OptionName }\n): boolean {\n const key1 = convertOptionIdName(obj1[attr], null);\n const key2 = convertOptionIdName(obj2[attr], null);\n // See `MappingExistingItem`. `id` and `name` trade string equals to number.\n return key1 != null && key2 != null && key1 === key2;\n}\n\n/**\n * @return return null if not exist.\n */\nfunction makeComparableKey(val: unknown): string {\n if (__DEV__) {\n if (val == null) {\n throw new Error();\n }\n }\n return convertOptionIdName(val, '');\n}\n\nexport function convertOptionIdName(idOrName: unknown, defaultValue: string): string {\n if (idOrName == null) {\n return defaultValue;\n }\n const type = typeof idOrName;\n return type === 'string'\n ? idOrName as string\n : (type === 'number' || isStringSafe(idOrName))\n ? idOrName + ''\n : defaultValue;\n}\n\nfunction warnInvalidateIdOrName(idOrName: unknown) {\n if (__DEV__) {\n warn('`' + idOrName + '` is invalid id or name. Must be a string or number.');\n }\n}\n\nfunction isValidIdOrName(idOrName: unknown): boolean {\n return isStringSafe(idOrName) || isNumeric(idOrName);\n}\n\nexport function isNameSpecified(componentModel: ComponentModel): boolean {\n const name = componentModel.name;\n // Is specified when `indexOf` get -1 or > 0.\n return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX));\n}\n\n/**\n * @public\n * @param {Object} cmptOption\n * @return {boolean}\n */\nexport function isComponentIdInternal(cmptOption: { id?: MappingExistingItem['id'] }): boolean {\n return cmptOption\n && cmptOption.id != null\n && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0;\n}\n\nexport function makeInternalComponentId(idSuffix: string) {\n return INTERNAL_COMPONENT_ID_PREFIX + idSuffix;\n}\n\nexport function setComponentTypeToKeyInfo(\n mappingResult: MappingResult,\n mainType: ComponentMainType,\n componentModelCtor: ComponentModelConstructor\n): void {\n // Set mainType and complete subType.\n each(mappingResult, function (item) {\n const newOption = item.newOption;\n if (isObject(newOption)) {\n item.keyInfo.mainType = mainType;\n item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor);\n }\n });\n}\n\nfunction determineSubType(\n mainType: ComponentMainType,\n newCmptOption: ComponentOption,\n existComponent: { subType?: ComponentSubType },\n componentModelCtor: ComponentModelConstructor\n): ComponentSubType {\n const subType = newCmptOption.type\n ? newCmptOption.type\n : existComponent\n ? existComponent.subType\n // Use determineSubType only when there is no existComponent.\n : (componentModelCtor as ComponentModelConstructor).determineSubType(mainType, newCmptOption);\n\n // tooltip, markline, markpoint may always has no subType\n return subType;\n}\n\n\ntype BatchItem = {\n seriesId: OptionId,\n dataIndex: number | number[]\n};\n/**\n * A helper for removing duplicate items between batchA and batchB,\n * and in themselves, and categorize by series.\n *\n * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @return result: [resultBatchA, resultBatchB]\n */\nexport function compressBatches(\n batchA: BatchItem[],\n batchB: BatchItem[]\n): [BatchItem[], BatchItem[]] {\n\n type InnerMap = {\n [seriesId: string]: {\n [dataIndex: string]: 1\n }\n };\n const mapA = {} as InnerMap;\n const mapB = {} as InnerMap;\n\n makeMap(batchA || [], mapA);\n makeMap(batchB || [], mapB, mapA);\n\n return [mapToArray(mapA), mapToArray(mapB)];\n\n function makeMap(sourceBatch: BatchItem[], map: InnerMap, otherMap?: InnerMap): void {\n for (let i = 0, len = sourceBatch.length; i < len; i++) {\n const seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);\n if (seriesId == null) {\n return;\n }\n const dataIndices = normalizeToArray(sourceBatch[i].dataIndex);\n const otherDataIndices = otherMap && otherMap[seriesId];\n\n for (let j = 0, lenj = dataIndices.length; j < lenj; j++) {\n const dataIndex = dataIndices[j];\n\n if (otherDataIndices && otherDataIndices[dataIndex]) {\n otherDataIndices[dataIndex] = null;\n }\n else {\n (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;\n }\n }\n }\n }\n\n function mapToArray(map: Dictionary, isData?: boolean): any[] {\n const result = [];\n for (const i in map) {\n if (map.hasOwnProperty(i) && map[i] != null) {\n if (isData) {\n result.push(+i);\n }\n else {\n const dataIndices = mapToArray(map[i], true);\n dataIndices.length && result.push({seriesId: i, dataIndex: dataIndices});\n }\n }\n }\n return result;\n }\n}\n\n/**\n * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name\n * each of which can be Array or primary type.\n * @return dataIndex If not found, return undefined/null.\n */\nexport function queryDataIndex(data: SeriesData, payload: Payload & {\n dataIndexInside?: number | number[]\n dataIndex?: number | number[]\n name?: string | string[]\n}): number | number[] {\n if (payload.dataIndexInside != null) {\n return payload.dataIndexInside;\n }\n else if (payload.dataIndex != null) {\n return isArray(payload.dataIndex)\n ? map(payload.dataIndex, function (value) {\n return data.indexOfRawIndex(value);\n })\n : data.indexOfRawIndex(payload.dataIndex);\n }\n else if (payload.name != null) {\n return isArray(payload.name)\n ? map(payload.name, function (value) {\n return data.indexOfName(value);\n })\n : data.indexOfName(payload.name);\n }\n}\n\n/**\n * Enable property storage to any host object.\n * Notice: Serialization is not supported.\n *\n * For example:\n * let inner = zrUitl.makeInner();\n *\n * function some1(hostObj) {\n * inner(hostObj).someProperty = 1212;\n * ...\n * }\n * function some2() {\n * let fields = inner(this);\n * fields.someProperty1 = 1212;\n * fields.someProperty2 = 'xx';\n * ...\n * }\n *\n * @return {Function}\n */\nexport function makeInner() {\n const key = '__ec_inner_' + innerUniqueIndex++;\n return function (hostObj: Host): T {\n return (hostObj as any)[key] || ((hostObj as any)[key] = {});\n };\n}\nlet innerUniqueIndex = getRandomIdBase();\n\n/**\n * If string, e.g., 'geo', means {geoIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex, seriesId, seriesName,\n * geoIndex, geoId, geoName,\n * bmapIndex, bmapId, bmapName,\n * xAxisIndex, xAxisId, xAxisName,\n * yAxisIndex, yAxisId, yAxisName,\n * gridIndex, gridId, gridName,\n * ... (can be extended)\n * }\n * Each properties can be number|string|Array.|Array.\n * For example, a finder could be\n * {\n * seriesIndex: 3,\n * geoId: ['aa', 'cc'],\n * gridName: ['xx', 'rr']\n * }\n * xxxIndex can be set as 'all' (means all xxx) or 'none' (means not specify)\n * If nothing or null/undefined specified, return nothing.\n * If both `abcIndex`, `abcId`, `abcName` specified, only one work.\n * The priority is: index > id > name, the same with `ecModel.queryComponents`.\n */\nexport type ModelFinderIndexQuery = number | number[] | 'all' | 'none' | false;\nexport type ModelFinderIdQuery = OptionId | OptionId[];\nexport type ModelFinderNameQuery = OptionId | OptionId[];\n// If string, like 'series', means { seriesIndex: 0 }.\nexport type ModelFinder = string | ModelFinderObject;\nexport type ModelFinderObject = {\n seriesIndex?: ModelFinderIndexQuery, seriesId?: ModelFinderIdQuery, seriesName?: ModelFinderNameQuery\n geoIndex?: ModelFinderIndexQuery, geoId?: ModelFinderIdQuery, geoName?: ModelFinderNameQuery\n bmapIndex?: ModelFinderIndexQuery, bmapId?: ModelFinderIdQuery, bmapName?: ModelFinderNameQuery\n xAxisIndex?: ModelFinderIndexQuery, xAxisId?: ModelFinderIdQuery, xAxisName?: ModelFinderNameQuery\n yAxisIndex?: ModelFinderIndexQuery, yAxisId?: ModelFinderIdQuery, yAxisName?: ModelFinderNameQuery\n gridIndex?: ModelFinderIndexQuery, gridId?: ModelFinderIdQuery, gridName?: ModelFinderNameQuery\n dataIndex?: number, dataIndexInside?: number\n // ... (can be extended)\n};\n/**\n * {\n * seriesModels: [seriesModel1, seriesModel2],\n * seriesModel: seriesModel1, // The first model\n * geoModels: [geoModel1, geoModel2],\n * geoModel: geoModel1, // The first model\n * ...\n * }\n */\nexport type ParsedModelFinder = {\n // other components\n [key: string]: ComponentModel | ComponentModel[] | undefined;\n};\n\nexport type ParsedModelFinderKnown = ParsedModelFinder & {\n seriesModels?: SeriesModel[];\n seriesModel?: SeriesModel;\n xAxisModels?: CartesianAxisModel[];\n xAxisModel?: CartesianAxisModel;\n yAxisModels?: CartesianAxisModel[];\n yAxisModel?: CartesianAxisModel;\n gridModels?: GridModel[];\n gridModel?: GridModel;\n dataIndex?: number;\n dataIndexInside?: number;\n};\n\n/**\n * The same behavior as `component.getReferringComponents`.\n */\nexport function parseFinder(\n ecModel: GlobalModel,\n finderInput: ModelFinder,\n opt?: {\n // If no main type specified, use this main type.\n defaultMainType?: ComponentMainType;\n // If pervided, types out of this list will be ignored.\n includeMainTypes?: ComponentMainType[];\n enableAll?: boolean;\n enableNone?: boolean;\n }\n): ParsedModelFinder {\n const { mainTypeSpecified, queryOptionMap, others } = preParseFinder(finderInput, opt);\n const result = others as ParsedModelFinderKnown;\n\n const defaultMainType = opt ? opt.defaultMainType : null;\n if (!mainTypeSpecified && defaultMainType) {\n queryOptionMap.set(defaultMainType, {});\n }\n\n queryOptionMap.each(function (queryOption, mainType) {\n const queryResult = queryReferringComponents(\n ecModel,\n mainType,\n queryOption,\n {\n useDefault: defaultMainType === mainType,\n enableAll: (opt && opt.enableAll != null) ? opt.enableAll : true,\n enableNone: (opt && opt.enableNone != null) ? opt.enableNone : true\n }\n );\n result[mainType + 'Models'] = queryResult.models;\n result[mainType + 'Model'] = queryResult.models[0];\n });\n\n return result;\n}\n\nexport function preParseFinder(\n finderInput: ModelFinder,\n opt?: {\n // If pervided, types out of this list will be ignored.\n includeMainTypes?: ComponentMainType[];\n }\n): {\n mainTypeSpecified: boolean;\n queryOptionMap: HashMap;\n others: Partial>\n} {\n let finder: ModelFinderObject;\n if (isString(finderInput)) {\n const obj = {};\n (obj as any)[finderInput + 'Index'] = 0;\n finder = obj;\n }\n else {\n finder = finderInput;\n }\n\n const queryOptionMap = createHashMap();\n const others = {} as Partial>;\n let mainTypeSpecified = false;\n\n each(finder, function (value, key) {\n // Exclude 'dataIndex' and other illgal keys.\n if (key === 'dataIndex' || key === 'dataIndexInside') {\n others[key] = value as number;\n return;\n }\n\n const parsedKey = key.match(/^(\\w+)(Index|Id|Name)$/) || [];\n const mainType = parsedKey[1];\n const queryType = (parsedKey[2] || '').toLowerCase() as keyof QueryReferringUserOption;\n\n if (\n !mainType\n || !queryType\n || (opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0)\n ) {\n return;\n }\n\n mainTypeSpecified = mainTypeSpecified || !!mainType;\n\n const queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {});\n queryOption[queryType] = value as any;\n });\n\n return { mainTypeSpecified, queryOptionMap, others };\n}\n\n\nexport type QueryReferringUserOption = {\n index?: ModelFinderIndexQuery,\n id?: ModelFinderIdQuery,\n name?: ModelFinderNameQuery,\n};\n\nexport const SINGLE_REFERRING: QueryReferringOpt = { useDefault: true, enableAll: false, enableNone: false };\nexport const MULTIPLE_REFERRING: QueryReferringOpt = { useDefault: false, enableAll: true, enableNone: true };\n\nexport type QueryReferringOpt = {\n // Whether to use the first componet as the default if none of index/id/name are specified.\n useDefault?: boolean;\n // Whether to enable `'all'` on index option.\n enableAll?: boolean;\n // Whether to enable `'none'`/`false` on index option.\n enableNone?: boolean;\n};\n\nexport function queryReferringComponents(\n ecModel: GlobalModel,\n mainType: ComponentMainType,\n userOption: QueryReferringUserOption,\n opt?: QueryReferringOpt\n): {\n // Always be array rather than null/undefined, which is convenient to use.\n models: ComponentModel[];\n // Whether there is indexOption/id/name specified\n specified: boolean;\n} {\n opt = opt || SINGLE_REFERRING as QueryReferringOpt;\n let indexOption = userOption.index;\n let idOption = userOption.id;\n let nameOption = userOption.name;\n\n const result = {\n models: null as ComponentModel[],\n specified: indexOption != null || idOption != null || nameOption != null\n };\n\n if (!result.specified) {\n // Use the first as default if `useDefault`.\n let firstCmpt;\n result.models = (\n opt.useDefault && (firstCmpt = ecModel.getComponent(mainType))\n ) ? [firstCmpt] : [];\n return result;\n }\n\n if (indexOption === 'none' || indexOption === false) {\n assert(opt.enableNone, '`\"none\"` or `false` is not a valid value on index option.');\n result.models = [];\n return result;\n }\n\n // `queryComponents` will return all components if\n // both all of index/id/name are null/undefined.\n if (indexOption === 'all') {\n assert(opt.enableAll, '`\"all\"` is not a valid value on index option.');\n indexOption = idOption = nameOption = null;\n }\n result.models = ecModel.queryComponents({\n mainType: mainType,\n index: indexOption as number | number[],\n id: idOption,\n name: nameOption\n });\n return result;\n}\n\nexport function setAttribute(dom: HTMLElement, key: string, value: any) {\n dom.setAttribute\n ? dom.setAttribute(key, value)\n : ((dom as any)[key] = value);\n}\n\nexport function getAttribute(dom: HTMLElement, key: string): any {\n return dom.getAttribute\n ? dom.getAttribute(key)\n : (dom as any)[key];\n}\n\nexport function getTooltipRenderMode(renderModeOption: TooltipRenderMode | 'auto'): TooltipRenderMode {\n if (renderModeOption === 'auto') {\n // Using html when `document` exists, use richText otherwise\n return env.domSupported ? 'html' : 'richText';\n }\n else {\n return renderModeOption || 'html';\n }\n}\n\n/**\n * Group a list by key.\n */\nexport function groupData(\n array: T[],\n getKey: (item: T) => R // return key\n): {\n keys: R[],\n buckets: HashMap // hasmap key: the key returned by `getKey`.\n} {\n const buckets = createHashMap();\n const keys: R[] = [];\n\n each(array, function (item) {\n const key = getKey(item);\n (buckets.get(key)\n || (keys.push(key), buckets.set(key, []))\n ).push(item);\n });\n\n return {\n keys: keys,\n buckets: buckets\n };\n}\n\n\n/**\n * Interpolate raw values of a series with percent\n *\n * @param data data\n * @param labelModel label model of the text element\n * @param sourceValue start value. May be null/undefined when init.\n * @param targetValue end value\n * @param percent 0~1 percentage; 0 uses start value while 1 uses end value\n * @return interpolated values\n * If `sourceValue` and `targetValue` are `number`, return `number`.\n * If `sourceValue` and `targetValue` are `string`, return `string`.\n * If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.\n * Other cases do not supported.\n */\nexport function interpolateRawValues(\n data: SeriesData,\n precision: number | 'auto',\n sourceValue: InterpolatableValue,\n targetValue: InterpolatableValue,\n percent: number\n): InterpolatableValue {\n const isAutoPrecision = precision == null || precision === 'auto';\n\n if (targetValue == null) {\n return targetValue;\n }\n\n if (typeof targetValue === 'number') {\n const value = interpolateNumber(\n sourceValue as number || 0,\n targetValue as number,\n percent\n );\n return round(\n value,\n isAutoPrecision ? Math.max(\n getPrecision(sourceValue as number || 0),\n getPrecision(targetValue as number)\n )\n : precision as number\n );\n }\n else if (typeof targetValue === 'string') {\n return percent < 1 ? sourceValue : targetValue;\n }\n else {\n const interpolated = [];\n const leftArr = sourceValue as (string | number)[];\n const rightArr = targetValue as (string | number[]);\n const length = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n for (let i = 0; i < length; ++i) {\n const info = data.getDimensionInfo(i);\n // Don't interpolate ordinal dims\n if (info && info.type === 'ordinal') {\n // In init, there is no `sourceValue`, but should better not to get undefined result.\n interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i] as number;\n }\n else {\n const leftVal = leftArr && leftArr[i] ? leftArr[i] as number : 0;\n const rightVal = rightArr[i] as number;\n const value = interpolateNumber(leftVal, rightVal, percent);\n interpolated[i] = round(\n value,\n isAutoPrecision ? Math.max(\n getPrecision(leftVal),\n getPrecision(rightVal)\n )\n : precision as number\n );\n }\n }\n return interpolated;\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { ComponentFullType, ComponentTypeInfo, ComponentMainType, ComponentSubType } from './types';\n\nconst TYPE_DELIMITER = '.';\nconst IS_CONTAINER = '___EC__COMPONENT__CONTAINER___' as const;\nconst IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___' as const;\n\n/**\n * Notice, parseClassType('') should returns {main: '', sub: ''}\n * @public\n */\nexport function parseClassType(componentType: ComponentFullType): ComponentTypeInfo {\n const ret = {main: '', sub: ''};\n if (componentType) {\n const typeArr = componentType.split(TYPE_DELIMITER);\n ret.main = typeArr[0] || '';\n ret.sub = typeArr[1] || '';\n }\n return ret;\n}\n\n/**\n * @public\n */\nfunction checkClassType(componentType: ComponentFullType): void {\n zrUtil.assert(\n /^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType),\n 'componentType \"' + componentType + '\" illegal'\n );\n}\n\nexport function isExtendedClass(clz: any): boolean {\n return !!(clz && clz[IS_EXTENDED_CLASS]);\n}\n\n\nexport interface ExtendableConstructor {\n new (...args: any): any;\n $constructor?: new (...args: any) => any;\n extend: (proto: {[name: string]: any}) => ExtendableConstructor;\n superCall: (context: any, methodName: string, ...args: any) => any;\n superApply: (context: any, methodName: string, args: []) => any;\n superClass?: ExtendableConstructor;\n [IS_EXTENDED_CLASS]?: boolean;\n}\n\n/**\n * Implements `ExtendableConstructor` for `rootClz`.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ExtendableConstructor\n * enableClassExtend(Xxx as XxxConstructor);\n * ```\n */\nexport function enableClassExtend(rootClz: ExtendableConstructor, mandatoryMethods?: string[]): void {\n\n rootClz.$constructor = rootClz; // FIXME: not necessary?\n\n rootClz.extend = function (proto: Dictionary) {\n if (__DEV__) {\n zrUtil.each(mandatoryMethods, function (method) {\n if (!proto[method]) {\n console.warn(\n 'Method `' + method + '` should be implemented'\n + (proto.type ? ' in ' + proto.type : '') + '.'\n );\n }\n });\n }\n\n const superClass = this;\n // For backward compat, we both support ts class inheritance and this\n // \"extend\" approach.\n // The constructor should keep the same behavior as ts class inheritance:\n // If this constructor/$constructor is not declared, auto invoke the super\n // constructor.\n // If this constructor/$constructor is declared, it is responsible for\n // calling the super constructor.\n function ExtendedClass(this: any, ...args: any[]) {\n if (!proto.$constructor) {\n\n if (!isESClass(superClass)) {\n // Will throw error if superClass is an es6 native class.\n superClass.apply(this, arguments);\n }\n else {\n const ins = zrUtil.createObject(\n // @ts-ignore\n ExtendedClass.prototype, new superClass(...args)\n );\n return ins;\n }\n }\n else {\n proto.$constructor.apply(this, arguments);\n }\n }\n ExtendedClass[IS_EXTENDED_CLASS] = true;\n\n zrUtil.extend(ExtendedClass.prototype, proto);\n\n ExtendedClass.extend = this.extend;\n ExtendedClass.superCall = superCall;\n ExtendedClass.superApply = superApply;\n zrUtil.inherits(ExtendedClass, this);\n ExtendedClass.superClass = superClass;\n\n return ExtendedClass as unknown as ExtendableConstructor;\n };\n}\n\nfunction isESClass(fn: unknown): boolean {\n return typeof fn === 'function'\n && /^class\\s/.test(Function.prototype.toString.call(fn));\n}\n\n/**\n * A work around to both support ts extend and this extend mechanism.\n * on sub-class.\n * @usage\n * ```ts\n * class Component { ... }\n * classUtil.enableClassExtend(Component);\n * classUtil.enableClassManagement(Component, {registerWhenExtend: true});\n *\n * class Series extends Component { ... }\n * // Without calling `markExtend`, `registerWhenExtend` will not work.\n * Component.markExtend(Series);\n * ```\n */\nexport function mountExtend(SubClz: any, SupperClz: any): void {\n SubClz.extend = SupperClz.extend;\n}\n\n\nexport interface CheckableConstructor {\n new (...args: any): any;\n isInstance: (ins: any) => boolean;\n}\n\n// A random offset.\nlet classBase = Math.round(Math.random() * 10);\n\n/**\n * Implements `CheckableConstructor` for `target`.\n * Can not use instanceof, consider different scope by\n * cross domain or es module import in ec extensions.\n * Mount a method \"isInstance()\" to Clz.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & CheckableConstructor;\n * enableClassCheck(Xxx as XxxConstructor)\n * ```\n */\nexport function enableClassCheck(target: CheckableConstructor): void {\n const classAttr = ['__\\0is_clz', classBase++].join('_');\n target.prototype[classAttr] = true;\n\n if (__DEV__) {\n zrUtil.assert(!target.isInstance, 'The method \"is\" can not be defined.');\n }\n\n target.isInstance = function (obj) {\n return !!(obj && obj[classAttr]);\n };\n}\n\n// superCall should have class info, which can not be fetch from 'this'.\n// Consider this case:\n// class A has method f,\n// class B inherits class A, overrides method f, f call superApply('f'),\n// class C inherits class B, do not overrides method f,\n// then when method of class C is called, dead loop occured.\nfunction superCall(this: any, context: any, methodName: string, ...args: any): any {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nfunction superApply(this: any, context: any, methodName: string, args: any): any {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nexport type Constructor = new (...args: any) => any;\ntype SubclassContainer = {[subType: string]: Constructor} & {[IS_CONTAINER]?: true};\n\nexport interface ClassManager {\n registerClass: (clz: Constructor) => Constructor;\n getClass: (\n componentMainType: ComponentMainType, subType?: ComponentSubType, throwWhenNotFound?: boolean\n ) => Constructor;\n getClassesByMainType: (componentType: ComponentMainType) => Constructor[];\n hasClass: (componentType: ComponentFullType) => boolean;\n getAllClassMainTypes: () => ComponentMainType[];\n hasSubTypes: (componentType: ComponentFullType) => boolean;\n}\n\n/**\n * Implements `ClassManager` for `target`\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ClassManager\n * enableClassManagement(Xxx as XxxConstructor);\n * ```\n */\nexport function enableClassManagement(\n target: ClassManager\n): void {\n\n /**\n * Component model classes\n * key: componentType,\n * value:\n * componentClass, when componentType is 'xxx'\n * or Object., when componentType is 'xxx.yy'\n */\n const storage: {\n [componentMainType: string]: (Constructor | SubclassContainer)\n } = {};\n\n target.registerClass = function (\n clz: Constructor\n ): Constructor {\n\n // `type` should not be a \"instance memeber\".\n // If using TS class, should better declared as `static type = 'series.pie'`.\n // otherwise users have to mount `type` on prototype manually.\n // For backward compat and enable instance visit type via `this.type`,\n // we stil support fetch `type` from prototype.\n const componentFullType = (clz as any).type || clz.prototype.type;\n\n if (componentFullType) {\n checkClassType(componentFullType);\n\n // If only static type declared, we assign it to prototype mandatorily.\n clz.prototype.type = componentFullType;\n\n const componentTypeInfo = parseClassType(componentFullType);\n\n if (!componentTypeInfo.sub) {\n if (__DEV__) {\n if (storage[componentTypeInfo.main]) {\n console.warn(componentTypeInfo.main + ' exists.');\n }\n }\n storage[componentTypeInfo.main] = clz;\n }\n else if (componentTypeInfo.sub !== IS_CONTAINER) {\n const container = makeContainer(componentTypeInfo);\n container[componentTypeInfo.sub] = clz;\n }\n }\n return clz;\n };\n\n target.getClass = function (\n mainType: ComponentMainType,\n subType?: ComponentSubType,\n throwWhenNotFound?: boolean\n ): Constructor {\n let clz = storage[mainType];\n\n if (clz && (clz as SubclassContainer)[IS_CONTAINER]) {\n clz = subType ? (clz as SubclassContainer)[subType] : null;\n }\n\n if (throwWhenNotFound && !clz) {\n throw new Error(\n !subType\n ? mainType + '.' + 'type should be specified.'\n : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.'\n );\n }\n\n return clz as Constructor;\n };\n\n target.getClassesByMainType = function (componentType: ComponentFullType): Constructor[] {\n const componentTypeInfo = parseClassType(componentType);\n\n const result: Constructor[] = [];\n const obj = storage[componentTypeInfo.main];\n\n if (obj && (obj as SubclassContainer)[IS_CONTAINER]) {\n zrUtil.each(obj as SubclassContainer, function (o, type) {\n type !== IS_CONTAINER && result.push(o as Constructor);\n });\n }\n else {\n result.push(obj as Constructor);\n }\n\n return result;\n };\n\n target.hasClass = function (componentType: ComponentFullType): boolean {\n // Just consider componentType.main.\n const componentTypeInfo = parseClassType(componentType);\n return !!storage[componentTypeInfo.main];\n };\n\n /**\n * @return Like ['aa', 'bb'], but can not be ['aa.xx']\n */\n target.getAllClassMainTypes = function (): ComponentMainType[] {\n const types: string[] = [];\n zrUtil.each(storage, function (obj, type) {\n types.push(type);\n });\n return types;\n };\n\n /**\n * If a main type is container and has sub types\n */\n target.hasSubTypes = function (componentType: ComponentFullType): boolean {\n const componentTypeInfo = parseClassType(componentType);\n const obj = storage[componentTypeInfo.main];\n return obj && (obj as SubclassContainer)[IS_CONTAINER];\n };\n\n function makeContainer(componentTypeInfo: ComponentTypeInfo): SubclassContainer {\n let container = storage[componentTypeInfo.main];\n if (!container || !(container as SubclassContainer)[IS_CONTAINER]) {\n container = storage[componentTypeInfo.main] = {};\n container[IS_CONTAINER] = true;\n }\n return container as SubclassContainer;\n }\n}\n\n// /**\n// * @param {string|Array.} properties\n// */\n// export function setReadOnly(obj, properties) {\n // FIXME It seems broken in IE8 simulation of IE11\n // if (!zrUtil.isArray(properties)) {\n // properties = properties != null ? [properties] : [];\n // }\n // zrUtil.each(properties, function (prop) {\n // let value = obj[prop];\n\n // Object.defineProperty\n // && Object.defineProperty(obj, prop, {\n // value: value, writable: false\n // });\n // zrUtil.isArray(obj[prop])\n // && Object.freeze\n // && Object.freeze(obj[prop]);\n // });\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Parse shadow style\n// TODO Only shallow path support\nimport * as zrUtil from 'zrender/src/core/util';\nimport {Dictionary} from 'zrender/src/core/types';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\nimport Model from '../Model';\n\nexport default function makeStyleMapper(properties: readonly string[][], ignoreParent?: boolean) {\n // Normalize\n for (let i = 0; i < properties.length; i++) {\n if (!properties[i][1]) {\n properties[i][1] = properties[i][0];\n }\n }\n\n ignoreParent = ignoreParent || false;\n\n return function (model: Model, excludes?: readonly string[], includes?: readonly string[]) {\n const style: Dictionary = {};\n for (let i = 0; i < properties.length; i++) {\n const propName = properties[i][1];\n if ((excludes && zrUtil.indexOf(excludes, propName) >= 0)\n || (includes && zrUtil.indexOf(includes, propName) < 0)\n ) {\n continue;\n }\n const val = model.getShallow(propName, ignoreParent);\n if (val != null) {\n style[properties[i][0]] = val;\n }\n }\n // TODO Text or image?\n return style as PathStyleProps;\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { AreaStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const AREA_STYLE_KEY_MAP = [\n ['fill', 'color'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['opacity'],\n ['shadowColor']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\nconst getAreaStyle = makeStyleMapper(AREA_STYLE_KEY_MAP);\n\ntype AreaStyleProps = Pick;\n\nclass AreaStyleMixin {\n getAreaStyle(\n this: Model,\n excludes?: readonly (keyof AreaStyleOption)[],\n includes?: readonly (keyof AreaStyleOption)[]\n ): AreaStyleProps {\n return getAreaStyle(this, excludes, includes);\n }\n};\n\nexport {AreaStyleMixin};\n", "\nimport LRU from '../../core/LRU';\nimport { ImageLike } from '../../core/types';\n\nconst globalImageCache = new LRU(50);\n\ntype PendingWrap = {\n hostEl: {dirty: () => void}\n cb: (image: ImageLike, payload: any) => void\n cbPayload: any\n}\n\ntype CachedImageObj = {\n image: ImageLike\n pending: PendingWrap[]\n}\n\nexport function findExistImage(newImageOrSrc: string | ImageLike): ImageLike {\n if (typeof newImageOrSrc === 'string') {\n const cachedImgObj = globalImageCache.get(newImageOrSrc);\n return cachedImgObj && cachedImgObj.image;\n }\n else {\n return newImageOrSrc;\n }\n}\n\n/**\n * Caution: User should cache loaded images, but not just count on LRU.\n * Consider if required images more than LRU size, will dead loop occur?\n *\n * @param newImageOrSrc\n * @param image Existent image.\n * @param hostEl For calling `dirty`.\n * @param onload params: (image, cbPayload)\n * @param cbPayload Payload on cb calling.\n * @return image\n */\nexport function createOrUpdateImage(\n newImageOrSrc: string | ImageLike,\n image: ImageLike,\n hostEl: { dirty: () => void },\n onload?: (image: ImageLike, payload: T) => void,\n cbPayload?: T\n) {\n if (!newImageOrSrc) {\n return image;\n }\n else if (typeof newImageOrSrc === 'string') {\n\n // Image should not be loaded repeatly.\n if ((image && (image as any).__zrImageSrc === newImageOrSrc) || !hostEl) {\n return image;\n }\n\n // Only when there is no existent image or existent image src\n // is different, this method is responsible for load.\n const cachedImgObj = globalImageCache.get(newImageOrSrc);\n\n const pendingWrap = {hostEl: hostEl, cb: onload, cbPayload: cbPayload};\n\n if (cachedImgObj) {\n image = cachedImgObj.image;\n !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);\n }\n else {\n image = new Image();\n image.onload = image.onerror = imageOnLoad;\n\n globalImageCache.put(\n newImageOrSrc,\n (image as any).__cachedImgObj = {\n image: image,\n pending: [pendingWrap]\n }\n );\n\n image.src = (image as any).__zrImageSrc = newImageOrSrc;\n }\n\n return image;\n }\n // newImageOrSrc is an HTMLImageElement or HTMLCanvasElement or Canvas\n else {\n return newImageOrSrc;\n }\n}\n\nfunction imageOnLoad(this: any) {\n const cachedImgObj = this.__cachedImgObj;\n this.onload = this.onerror = this.__cachedImgObj = null;\n\n for (let i = 0; i < cachedImgObj.pending.length; i++) {\n const pendingWrap = cachedImgObj.pending[i];\n const cb = pendingWrap.cb;\n cb && cb(this, pendingWrap.cbPayload);\n pendingWrap.hostEl.dirty();\n }\n cachedImgObj.pending.length = 0;\n}\n\nexport function isImageReady(image: ImageLike) {\n return image && image.width && image.height;\n}\n\n", "import * as imageHelper from '../helper/image';\nimport {\n extend,\n retrieve2,\n retrieve3,\n reduce\n} from '../../core/util';\nimport { TextAlign, TextVerticalAlign, ImageLike, Dictionary } from '../../core/types';\nimport { TextStyleProps } from '../Text';\nimport { getLineHeight, getWidth, parsePercent } from '../../contain/text';\n\nconst STYLE_REG = /\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;\n\ninterface InnerTruncateOption {\n maxIteration?: number\n // If truncate result are less than minChar, ellipsis will not show\n // which is better for user hint in some cases\n minChar?: number\n // When all truncated, use the placeholder\n placeholder?: string\n\n maxIterations?: number\n}\n\ninterface InnerPreparedTruncateOption extends Required {\n font: string\n\n ellipsis: string\n ellipsisWidth: number\n contentWidth: number\n\n containerWidth: number\n cnCharWidth: number\n ascCharWidth: number\n}\n\n/**\n * Show ellipsis if overflow.\n */\nexport function truncateText(\n text: string,\n containerWidth: number,\n font: string,\n ellipsis: string,\n options: InnerTruncateOption\n): string {\n if (!containerWidth) {\n return '';\n }\n\n const textLines = (text + '').split('\\n');\n options = prepareTruncateOptions(containerWidth, font, ellipsis, options);\n\n // FIXME\n // It is not appropriate that every line has '...' when truncate multiple lines.\n for (let i = 0, len = textLines.length; i < len; i++) {\n textLines[i] = truncateSingleLine(textLines[i], options as InnerPreparedTruncateOption);\n }\n\n return textLines.join('\\n');\n}\n\nfunction prepareTruncateOptions(\n containerWidth: number,\n font: string,\n ellipsis: string,\n options: InnerTruncateOption\n): InnerPreparedTruncateOption {\n options = options || {};\n let preparedOpts = extend({}, options) as InnerPreparedTruncateOption;\n\n preparedOpts.font = font;\n ellipsis = retrieve2(ellipsis, '...');\n preparedOpts.maxIterations = retrieve2(options.maxIterations, 2);\n const minChar = preparedOpts.minChar = retrieve2(options.minChar, 0);\n // FIXME\n // Other languages?\n preparedOpts.cnCharWidth = getWidth('\u56FD', font);\n // FIXME\n // Consider proportional font?\n const ascCharWidth = preparedOpts.ascCharWidth = getWidth('a', font);\n preparedOpts.placeholder = retrieve2(options.placeholder, '');\n\n // Example 1: minChar: 3, text: 'asdfzxcv', truncate result: 'asdf', but not: 'a...'.\n // Example 2: minChar: 3, text: '\u7EF4\u5EA6', truncate result: '\u7EF4', but not: '...'.\n let contentWidth = containerWidth = Math.max(0, containerWidth - 1); // Reserve some gap.\n for (let i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {\n contentWidth -= ascCharWidth;\n }\n\n let ellipsisWidth = getWidth(ellipsis, font);\n if (ellipsisWidth > contentWidth) {\n ellipsis = '';\n ellipsisWidth = 0;\n }\n\n contentWidth = containerWidth - ellipsisWidth;\n\n preparedOpts.ellipsis = ellipsis;\n preparedOpts.ellipsisWidth = ellipsisWidth;\n preparedOpts.contentWidth = contentWidth;\n preparedOpts.containerWidth = containerWidth;\n\n return preparedOpts;\n}\n\nfunction truncateSingleLine(textLine: string, options: InnerPreparedTruncateOption): string {\n const containerWidth = options.containerWidth;\n const font = options.font;\n const contentWidth = options.contentWidth;\n\n if (!containerWidth) {\n return '';\n }\n\n let lineWidth = getWidth(textLine, font);\n\n if (lineWidth <= containerWidth) {\n return textLine;\n }\n\n for (let j = 0; ; j++) {\n if (lineWidth <= contentWidth || j >= options.maxIterations) {\n textLine += options.ellipsis;\n break;\n }\n\n const subLength = j === 0\n ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)\n : lineWidth > 0\n ? Math.floor(textLine.length * contentWidth / lineWidth)\n : 0;\n\n textLine = textLine.substr(0, subLength);\n lineWidth = getWidth(textLine, font);\n }\n\n if (textLine === '') {\n textLine = options.placeholder;\n }\n\n return textLine;\n}\n\nfunction estimateLength(\n text: string, contentWidth: number, ascCharWidth: number, cnCharWidth: number\n): number {\n let width = 0;\n let i = 0;\n for (let len = text.length; i < len && width < contentWidth; i++) {\n const charCode = text.charCodeAt(i);\n width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;\n }\n return i;\n}\n\nexport interface PlainTextContentBlock {\n lineHeight: number\n contentHeight: number\n // Line height of actual content.\n calculatedLineHeight: number\n\n height: number\n outerHeight: number\n\n width: number\n\n lines: string[]\n}\n\nexport function parsePlainText(\n text: string,\n style?: TextStyleProps\n): PlainTextContentBlock {\n text != null && (text += '');\n\n // textPadding has been normalized\n const overflow = style.overflow;\n const padding = style.padding as number[];\n const font = style.font;\n const truncate = overflow === 'truncate';\n const calculatedLineHeight = getLineHeight(font);\n const lineHeight = retrieve2(style.lineHeight, calculatedLineHeight);\n\n const truncateLineOverflow = style.lineOverflow === 'truncate';\n\n let width = style.width;\n let lines: string[];\n\n if (width != null && overflow === 'break' || overflow === 'breakAll') {\n lines = text ? wrapText(text, style.font, width, overflow === 'breakAll', 0).lines : [];\n }\n else {\n lines = text ? text.split('\\n') : [];\n }\n\n const contentHeight = lines.length * lineHeight;\n const height = retrieve2(style.height, contentHeight);\n\n // Truncate lines.\n if (contentHeight > height && truncateLineOverflow) {\n const lineCount = Math.floor(height / lineHeight);\n\n lines = lines.slice(0, lineCount);\n\n // TODO If show ellipse for line truncate\n // if (style.ellipsis) {\n // const options = prepareTruncateOptions(width, font, style.ellipsis, {\n // minChar: style.truncateMinChar,\n // placeholder: style.placeholder\n // });\n // lines[lineCount - 1] = truncateSingleLine(lastLine, options);\n // }\n }\n\n let outerHeight = height;\n let outerWidth = width;\n if (padding) {\n outerHeight += padding[0] + padding[2];\n if (outerWidth != null) {\n outerWidth += padding[1] + padding[3];\n }\n }\n\n\n if (text && truncate && outerWidth != null) {\n const options = prepareTruncateOptions(width, font, style.ellipsis, {\n minChar: style.truncateMinChar,\n placeholder: style.placeholder\n });\n // Having every line has '...' when truncate multiple lines.\n for (let i = 0; i < lines.length; i++) {\n lines[i] = truncateSingleLine(lines[i], options);\n }\n }\n\n if (width == null) {\n let maxWidth = 0;\n // Calculate width\n for (let i = 0; i < lines.length; i++) {\n maxWidth = Math.max(getWidth(lines[i], font), maxWidth);\n }\n width = maxWidth;\n }\n\n return {\n lines: lines,\n height: height,\n outerHeight: outerHeight,\n lineHeight: lineHeight,\n calculatedLineHeight: calculatedLineHeight,\n contentHeight: contentHeight,\n width: width\n };\n}\n\nclass RichTextToken {\n styleName: string\n text: string\n width: number\n height: number\n\n // Inner height exclude padding\n innerHeight: number\n\n // Width and height of actual text content.\n contentHeight: number\n contentWidth: number\n\n lineHeight: number\n font: string\n align: TextAlign\n verticalAlign: TextVerticalAlign\n\n textPadding: number[]\n percentWidth?: string\n\n isLineHolder: boolean\n}\nclass RichTextLine {\n lineHeight: number\n width: number\n tokens: RichTextToken[] = []\n\n constructor(tokens?: RichTextToken[]) {\n if (tokens) {\n this.tokens = tokens;\n }\n }\n}\nexport class RichTextContentBlock {\n // width/height of content\n width: number = 0\n height: number = 0\n // Calculated text height\n contentWidth: number = 0\n contentHeight: number = 0\n // outerWidth/outerHeight with padding\n outerWidth: number = 0\n outerHeight: number = 0\n lines: RichTextLine[] = []\n}\n\ntype WrapInfo = {\n width: number,\n accumWidth: number,\n breakAll: boolean\n}\n/**\n * For example: 'some text {a|some text}other text{b|some text}xxx{c|}xxx'\n * Also consider 'bbbb{a|xxx\\nzzz}xxxx\\naaaa'.\n * If styleName is undefined, it is plain text.\n */\nexport function parseRichText(text: string, style: TextStyleProps) {\n const contentBlock = new RichTextContentBlock();\n\n text != null && (text += '');\n if (!text) {\n return contentBlock;\n }\n\n const topWidth = style.width;\n const topHeight = style.height;\n const overflow = style.overflow;\n let wrapInfo: WrapInfo = (overflow === 'break' || overflow === 'breakAll') && topWidth != null\n ? {width: topWidth, accumWidth: 0, breakAll: overflow === 'breakAll'}\n : null;\n\n let lastIndex = STYLE_REG.lastIndex = 0;\n let result;\n while ((result = STYLE_REG.exec(text)) != null) {\n const matchedIndex = result.index;\n if (matchedIndex > lastIndex) {\n pushTokens(contentBlock, text.substring(lastIndex, matchedIndex), style, wrapInfo);\n }\n pushTokens(contentBlock, result[2], style, wrapInfo, result[1]);\n lastIndex = STYLE_REG.lastIndex;\n }\n\n if (lastIndex < text.length) {\n pushTokens(contentBlock, text.substring(lastIndex, text.length), style, wrapInfo);\n }\n\n // For `textWidth: xx%`\n let pendingList = [];\n\n let calculatedHeight = 0;\n let calculatedWidth = 0;\n\n const stlPadding = style.padding as number[];\n\n const truncate = overflow === 'truncate';\n const truncateLine = style.lineOverflow === 'truncate';\n\n // let prevToken: RichTextToken;\n\n function finishLine(line: RichTextLine, lineWidth: number, lineHeight: number) {\n line.width = lineWidth;\n line.lineHeight = lineHeight;\n calculatedHeight += lineHeight;\n calculatedWidth = Math.max(calculatedWidth, lineWidth);\n }\n // Calculate layout info of tokens.\n outer: for (let i = 0; i < contentBlock.lines.length; i++) {\n const line = contentBlock.lines[i];\n let lineHeight = 0;\n let lineWidth = 0;\n\n for (let j = 0; j < line.tokens.length; j++) {\n const token = line.tokens[j];\n const tokenStyle = token.styleName && style.rich[token.styleName] || {};\n // textPadding should not inherit from style.\n const textPadding = token.textPadding = tokenStyle.padding as number[];\n const paddingH = textPadding ? textPadding[1] + textPadding[3] : 0;\n\n const font = token.font = tokenStyle.font || style.font;\n\n token.contentHeight = getLineHeight(font);\n // textHeight can be used when textVerticalAlign is specified in token.\n let tokenHeight = retrieve2(\n // textHeight should not be inherited, consider it can be specified\n // as box height of the block.\n tokenStyle.height, token.contentHeight\n );\n token.innerHeight = tokenHeight;\n\n textPadding && (tokenHeight += textPadding[0] + textPadding[2]);\n token.height = tokenHeight;\n // Inlcude padding in lineHeight.\n token.lineHeight = retrieve3(\n tokenStyle.lineHeight, style.lineHeight, tokenHeight\n );\n\n token.align = tokenStyle && tokenStyle.align || style.align;\n token.verticalAlign = tokenStyle && tokenStyle.verticalAlign || 'middle';\n\n if (truncateLine && topHeight != null && calculatedHeight + token.lineHeight > topHeight) {\n // TODO Add ellipsis on the previous token.\n // prevToken.text =\n if (j > 0) {\n line.tokens = line.tokens.slice(0, j);\n finishLine(line, lineWidth, lineHeight);\n contentBlock.lines = contentBlock.lines.slice(0, i + 1);\n }\n else {\n contentBlock.lines = contentBlock.lines.slice(0, i);\n }\n break outer;\n }\n\n let styleTokenWidth = tokenStyle.width;\n let tokenWidthNotSpecified = styleTokenWidth == null || styleTokenWidth === 'auto';\n\n // Percent width, can be `100%`, can be used in drawing separate\n // line when box width is needed to be auto.\n if (typeof styleTokenWidth === 'string' && styleTokenWidth.charAt(styleTokenWidth.length - 1) === '%') {\n token.percentWidth = styleTokenWidth;\n pendingList.push(token);\n\n token.contentWidth = getWidth(token.text, font);\n // Do not truncate in this case, because there is no user case\n // and it is too complicated.\n }\n else {\n if (tokenWidthNotSpecified) {\n // FIXME: If image is not loaded and textWidth is not specified, calling\n // `getBoundingRect()` will not get correct result.\n const textBackgroundColor = tokenStyle.backgroundColor;\n let bgImg = textBackgroundColor && (textBackgroundColor as { image: ImageLike }).image;\n\n if (bgImg) {\n bgImg = imageHelper.findExistImage(bgImg);\n if (imageHelper.isImageReady(bgImg)) {\n // Update token width from image size.\n token.width = Math.max(token.width, bgImg.width * tokenHeight / bgImg.height);\n }\n }\n }\n\n const remainTruncWidth = truncate && topWidth != null\n ? topWidth - lineWidth : null;\n\n if (remainTruncWidth != null && remainTruncWidth < token.width) {\n if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {\n token.text = '';\n token.width = token.contentWidth = 0;\n }\n else {\n token.text = truncateText(\n token.text, remainTruncWidth - paddingH, font, style.ellipsis,\n {minChar: style.truncateMinChar}\n );\n token.width = token.contentWidth = getWidth(token.text, font);\n }\n }\n else {\n token.contentWidth = getWidth(token.text, font);\n }\n }\n\n token.width += paddingH;\n\n lineWidth += token.width;\n tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));\n\n // prevToken = token;\n }\n\n finishLine(line, lineWidth, lineHeight);\n }\n\n contentBlock.outerWidth = contentBlock.width = retrieve2(topWidth, calculatedWidth);\n contentBlock.outerHeight = contentBlock.height = retrieve2(topHeight, calculatedHeight);\n contentBlock.contentHeight = calculatedHeight;\n contentBlock.contentWidth = calculatedWidth;\n\n if (stlPadding) {\n contentBlock.outerWidth += stlPadding[1] + stlPadding[3];\n contentBlock.outerHeight += stlPadding[0] + stlPadding[2];\n }\n\n for (let i = 0; i < pendingList.length; i++) {\n const token = pendingList[i];\n const percentWidth = token.percentWidth;\n // Should not base on outerWidth, because token can not be placed out of padding.\n token.width = parseInt(percentWidth, 10) / 100 * contentBlock.width;\n }\n\n return contentBlock;\n}\n\ntype TokenStyle = TextStyleProps['rich'][string];\n\nfunction pushTokens(\n block: RichTextContentBlock,\n str: string,\n style: TextStyleProps,\n wrapInfo: WrapInfo,\n styleName?: string\n) {\n const isEmptyStr = str === '';\n const tokenStyle: TokenStyle = styleName && style.rich[styleName] || {};\n const lines = block.lines;\n const font = tokenStyle.font || style.font;\n let newLine = false;\n let strLines;\n let linesWidths;\n\n if (wrapInfo) {\n const tokenPadding = tokenStyle.padding as number[];\n let tokenPaddingH = tokenPadding ? tokenPadding[1] + tokenPadding[3] : 0;\n if (tokenStyle.width != null && tokenStyle.width !== 'auto') {\n // Wrap the whole token if tokenWidth if fixed.\n const outerWidth = parsePercent(tokenStyle.width, wrapInfo.width) + tokenPaddingH;\n if (lines.length > 0) { // Not first line\n if (outerWidth + wrapInfo.accumWidth > wrapInfo.width) {\n // TODO Support wrap text in token.\n strLines = str.split('\\n');\n newLine = true;\n }\n }\n\n wrapInfo.accumWidth = outerWidth;\n }\n else {\n const res = wrapText(str, font, wrapInfo.width, wrapInfo.breakAll, wrapInfo.accumWidth);\n wrapInfo.accumWidth = res.accumWidth + tokenPaddingH;\n linesWidths = res.linesWidths;\n strLines = res.lines;\n }\n }\n else {\n strLines = str.split('\\n');\n }\n\n for (let i = 0; i < strLines.length; i++) {\n const text = strLines[i];\n const token = new RichTextToken();\n token.styleName = styleName;\n token.text = text;\n token.isLineHolder = !text && !isEmptyStr;\n\n if (typeof tokenStyle.width === 'number') {\n token.width = tokenStyle.width;\n }\n else {\n token.width = linesWidths\n ? linesWidths[i] // Caculated width in the wrap\n : getWidth(text, font);\n }\n\n // The first token should be appended to the last line if not new line.\n if (!i && !newLine) {\n const tokens = (lines[lines.length - 1] || (lines[0] = new RichTextLine())).tokens;\n\n // Consider cases:\n // (1) ''.split('\\n') => ['', '\\n', ''], the '' at the first item\n // (which is a placeholder) should be replaced by new token.\n // (2) A image backage, where token likes {a|}.\n // (3) A redundant '' will affect textAlign in line.\n // (4) tokens with the same tplName should not be merged, because\n // they should be displayed in different box (with border and padding).\n const tokensLen = tokens.length;\n (tokensLen === 1 && tokens[0].isLineHolder)\n ? (tokens[0] = token)\n // Consider text is '', only insert when it is the \"lineHolder\" or\n // \"emptyStr\". Otherwise a redundant '' will affect textAlign in line.\n : ((text || !tokensLen || isEmptyStr) && tokens.push(token));\n }\n // Other tokens always start a new line.\n else {\n // If there is '', insert it as a placeholder.\n lines.push(new RichTextLine([token]));\n }\n }\n}\n\n\nfunction isLatin(ch: string) {\n let code = ch.charCodeAt(0);\n return code >= 0x21 && code <= 0xFF;\n}\n\nconst breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {\n obj[ch] = true;\n return obj;\n}, {} as Dictionary);\n/**\n * If break by word. For latin languages.\n */\nfunction isWordBreakChar(ch: string) {\n if (isLatin(ch)) {\n if (breakCharMap[ch]) {\n return true;\n }\n return false;\n }\n return true;\n}\n\nfunction wrapText(\n text: string,\n font: string,\n lineWidth: number,\n isBreakAll: boolean,\n lastAccumWidth: number\n) {\n let lines: string[] = [];\n let linesWidths: number[] = [];\n let line = '';\n let currentWord = '';\n let currentWordWidth = 0;\n let accumWidth = 0;\n\n for (let i = 0; i < text.length; i++) {\n\n const ch = text.charAt(i);\n if (ch === '\\n') {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n // Reset\n line = '';\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = 0;\n continue;\n }\n\n const chWidth = getWidth(ch, font);\n const inWord = isBreakAll ? false : !isWordBreakChar(ch);\n\n if (!lines.length\n ? lastAccumWidth + accumWidth + chWidth > lineWidth\n : accumWidth + chWidth > lineWidth\n ) {\n if (!accumWidth) { // If nothing appended yet.\n if (inWord) {\n // The word length is still too long for one line\n // Force break the word\n lines.push(currentWord);\n linesWidths.push(currentWordWidth);\n\n currentWord = ch;\n currentWordWidth = chWidth;\n }\n else {\n // lineWidth is too small for ch\n lines.push(ch);\n linesWidths.push(chWidth);\n }\n }\n else if (line || currentWord) {\n if (inWord) {\n if (!line) {\n // The one word is still too long for one line\n // Force break the word\n // TODO Keep the word?\n line = currentWord;\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = currentWordWidth;\n }\n\n lines.push(line);\n linesWidths.push(accumWidth - currentWordWidth);\n\n // Break the whole word\n currentWord += ch;\n currentWordWidth += chWidth;\n line = '';\n accumWidth = currentWordWidth;\n }\n else {\n // Append lastWord if have\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n currentWord = '';\n currentWordWidth = 0;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n\n line = ch;\n accumWidth = chWidth;\n }\n }\n\n continue;\n }\n\n accumWidth += chWidth;\n\n if (inWord) {\n currentWord += ch;\n currentWordWidth += chWidth;\n }\n else {\n // Append whole word\n if (currentWord) {\n line += currentWord;\n // Reset\n currentWord = '';\n currentWordWidth = 0;\n }\n\n // Append character\n line += ch;\n }\n }\n\n if (!lines.length && !line) {\n line = text;\n currentWord = '';\n currentWordWidth = 0;\n }\n\n // Append last line.\n if (currentWord) {\n line += currentWord;\n }\n if (line) {\n lines.push(line);\n linesWidths.push(accumWidth);\n }\n\n if (lines.length === 1) {\n // No new line.\n accumWidth += lastAccumWidth;\n }\n\n return {\n // Accum width of last line\n accumWidth,\n lines: lines,\n linesWidths\n };\n}", "/**\n * Base class of all displayable graphic objects\n */\n\nimport Element, {ElementProps, ElementStatePropNames, ElementAnimateConfig, ElementCommonState} from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { PropType, Dictionary, MapToType } from '../core/types';\nimport Path from './Path';\nimport { keys, extend, createObject } from '../core/util';\nimport Animator from '../animation/Animator';\nimport { REDARAW_BIT, STYLE_CHANGED_BIT } from './constants';\n\n// type CalculateTextPositionResult = ReturnType\n\nconst STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));\n\nexport interface CommonStyleProps {\n shadowBlur?: number\n shadowOffsetX?: number\n shadowOffsetY?: number\n shadowColor?: string\n\n opacity?: number\n /**\n * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n */\n blend?: string\n}\n\nexport const DEFAULT_COMMON_STYLE: CommonStyleProps = {\n shadowBlur: 0,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n shadowColor: '#000',\n opacity: 1,\n blend: 'source-over'\n};\n\nexport const DEFAULT_COMMON_ANIMATION_PROPS: MapToType = {\n style: {\n shadowBlur: true,\n shadowOffsetX: true,\n shadowOffsetY: true,\n shadowColor: true,\n opacity: true\n }\n };\n\n(DEFAULT_COMMON_STYLE as any)[STYLE_MAGIC_KEY] = true;\n\nexport interface DisplayableProps extends ElementProps {\n style?: Dictionary\n\n zlevel?: number\n z?: number\n z2?: number\n\n culling?: boolean\n\n // TODO list all cursors\n cursor?: string\n\n rectHover?: boolean\n\n progressive?: boolean\n\n incremental?: boolean\n\n batch?: boolean\n invisible?: boolean\n}\n\ntype DisplayableKey = keyof DisplayableProps\ntype DisplayablePropertyType = PropType\n\nexport type DisplayableStatePropNames = ElementStatePropNames | 'style' | 'z' | 'z2' | 'invisible';\nexport type DisplayableState = Pick & ElementCommonState;\n\nconst PRIMARY_STATES_KEYS = ['z', 'z2', 'invisible'] as const;\nconst PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ['invisible'] as const;\n\ninterface Displayable {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n\n getState(stateName: string): DisplayableState\n ensureState(stateName: string): DisplayableState\n\n states: Dictionary\n stateProxy: (stateName: string) => DisplayableState\n}\n\nclass Displayable extends Element {\n\n /**\n * Whether the displayable object is visible. when it is true, the displayable object\n * is not drawn, but the mouse event can still trigger the object.\n */\n invisible: boolean\n\n z: number\n\n z2: number\n\n /**\n * The z level determines the displayable object can be drawn in which layer canvas.\n */\n zlevel: number\n\n /**\n * If enable culling\n */\n culling: boolean\n\n /**\n * Mouse cursor when hovered\n */\n cursor: string\n\n /**\n * If hover area is bounding rect\n */\n rectHover: boolean\n /**\n * For increamental rendering\n */\n incremental: boolean\n\n style: Dictionary\n\n protected _normalState: DisplayableState\n\n protected _rect: BoundingRect\n protected _paintRect: BoundingRect\n protected _prevPaintRect: BoundingRect\n\n dirtyRectTolerance: number\n\n /************* Properties will be inejected in other modules. *******************/\n\n // @deprecated.\n useHoverLayer?: boolean\n\n __hoverStyle?: CommonStyleProps\n\n // TODO use WeakMap?\n\n // Shapes for cascade clipping.\n // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array.\n // because it is easy to only using null to check whether clipPaths changed.\n __clipPaths?: Path[]\n\n // FOR CANVAS PAINTER\n __canvasFillGradient: CanvasGradient\n __canvasStrokeGradient: CanvasGradient\n __canvasFillPattern: CanvasPattern\n __canvasStrokePattern: CanvasPattern\n\n // FOR SVG PAINTER\n __svgEl: SVGElement\n\n constructor(props?: Props) {\n super(props);\n }\n\n protected _init(props?: Props) {\n // Init default properties\n const keysArr = keys(props);\n for (let i = 0; i < keysArr.length; i++) {\n const key = keysArr[i];\n if (key === 'style') {\n this.useStyle(props[key] as Props['style']);\n }\n else {\n super.attrKV(key as any, props[key]);\n }\n }\n // Give a empty style\n if (!this.style) {\n this.useStyle({});\n }\n }\n\n // Hook provided to developers.\n beforeBrush() {}\n afterBrush() {}\n\n // Hook provided to inherited classes.\n // Executed between beforeBrush / afterBrush\n innerBeforeBrush() {}\n innerAfterBrush() {}\n\n shouldBePainted(\n viewWidth: number,\n viewHeight: number,\n considerClipPath: boolean,\n considerAncestors: boolean\n ) {\n const m = this.transform;\n if (\n this.ignore\n // Ignore invisible element\n || this.invisible\n // Ignore transparent element\n || this.style.opacity === 0\n // Ignore culled element\n || (this.culling\n && isDisplayableCulled(this, viewWidth, viewHeight)\n )\n // Ignore scale 0 element, in some environment like node-canvas\n // Draw a scale 0 element can cause all following draw wrong\n // And setTransform with scale 0 will cause set back transform failed.\n || (m && !m[0] && !m[3])\n ) {\n return false;\n }\n\n if (considerClipPath && this.__clipPaths) {\n for (let i = 0; i < this.__clipPaths.length; ++i) {\n if (this.__clipPaths[i].isZeroArea()) {\n return false;\n }\n }\n }\n\n if (considerAncestors && this.parent) {\n let parent = this.parent;\n while (parent) {\n if (parent.ignore) {\n return false;\n }\n parent = parent.parent;\n }\n }\n\n return true;\n }\n\n /**\n * If displayable element contain coord x, y\n */\n contain(x: number, y: number) {\n return this.rectContain(x, y);\n }\n\n traverse(\n cb: (this: Context, el: this) => void,\n context?: Context\n ) {\n cb.call(context, this);\n }\n\n /**\n * If bounding rect of element contain coord x, y\n */\n rectContain(x: number, y: number) {\n const coord = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n return rect.contain(coord[0], coord[1]);\n }\n\n getPaintRect(): BoundingRect {\n let rect = this._paintRect;\n if (!this._paintRect || this.__dirty) {\n const transform = this.transform;\n const elRect = this.getBoundingRect();\n\n const style = this.style;\n const shadowSize = style.shadowBlur || 0;\n const shadowOffsetX = style.shadowOffsetX || 0;\n const shadowOffsetY = style.shadowOffsetY || 0;\n\n rect = this._paintRect || (this._paintRect = new BoundingRect(0, 0, 0, 0));\n if (transform) {\n BoundingRect.applyTransform(rect, elRect, transform);\n }\n else {\n rect.copy(elRect);\n }\n\n if (shadowSize || shadowOffsetX || shadowOffsetY) {\n rect.width += shadowSize * 2 + Math.abs(shadowOffsetX);\n rect.height += shadowSize * 2 + Math.abs(shadowOffsetY);\n rect.x = Math.min(rect.x, rect.x + shadowOffsetX - shadowSize);\n rect.y = Math.min(rect.y, rect.y + shadowOffsetY - shadowSize);\n\n }\n\n // For the accuracy tolerance of text height or line joint point\n const tolerance = this.dirtyRectTolerance;\n if (!rect.isZero()) {\n rect.x = Math.floor(rect.x - tolerance);\n rect.y = Math.floor(rect.y - tolerance);\n rect.width = Math.ceil(rect.width + 1 + tolerance * 2);\n rect.height = Math.ceil(rect.height + 1 + tolerance * 2);\n }\n }\n return rect;\n }\n\n setPrevPaintRect(paintRect: BoundingRect) {\n if (paintRect) {\n this._prevPaintRect = this._prevPaintRect || new BoundingRect(0, 0, 0, 0);\n this._prevPaintRect.copy(paintRect);\n }\n else {\n this._prevPaintRect = null;\n }\n }\n\n getPrevPaintRect(): BoundingRect {\n return this._prevPaintRect;\n }\n\n /**\n * Alias for animate('style')\n * @param loop\n */\n animateStyle(loop: boolean) {\n return this.animate('style', loop);\n }\n\n // Override updateDuringAnimation\n updateDuringAnimation(targetKey: string) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else {\n this.markRedraw();\n }\n }\n\n attrKV(key: DisplayableKey, value: DisplayablePropertyType) {\n if (key !== 'style') {\n super.attrKV(key as keyof DisplayableProps, value);\n }\n else {\n if (!this.style) {\n this.useStyle(value as Dictionary);\n }\n else {\n this.setStyle(value as Dictionary);\n }\n }\n }\n\n setStyle(obj: Props['style']): this\n setStyle(obj: T, value: Props['style'][T]): this\n setStyle(keyOrObj: keyof Props['style'] | Props['style'], value?: unknown): this {\n if (typeof keyOrObj === 'string') {\n this.style[keyOrObj] = value;\n }\n else {\n extend(this.style, keyOrObj as Props['style']);\n }\n this.dirtyStyle();\n return this;\n }\n\n // getDefaultStyleValue(key: T): Props['style'][T] {\n // // Default value is on the prototype.\n // return this.style.prototype[key];\n // }\n\n dirtyStyle(notRedraw?: boolean) {\n if (!notRedraw) {\n this.markRedraw();\n }\n this.__dirty |= STYLE_CHANGED_BIT;\n // Clear bounding rect.\n if (this._rect) {\n this._rect = null;\n }\n }\n\n dirty() {\n this.dirtyStyle();\n }\n\n /**\n * Is style changed. Used with dirtyStyle.\n */\n styleChanged() {\n return !!(this.__dirty & STYLE_CHANGED_BIT);\n }\n\n /**\n * Mark style updated. Only useful when style is used for caching. Like in the text.\n */\n styleUpdated() {\n this.__dirty &= ~STYLE_CHANGED_BIT;\n }\n\n /**\n * Create a style object with default values in it's prototype.\n */\n createStyle(obj?: Props['style']) {\n return createObject(DEFAULT_COMMON_STYLE, obj);\n }\n\n /**\n * Replace style property.\n * It will create a new style if given obj is not a valid style object.\n */\n // PENDING should not createStyle if it's an style object.\n useStyle(obj: Props['style']) {\n if (!obj[STYLE_MAGIC_KEY]) {\n obj = this.createStyle(obj);\n }\n if (this.__inHover) {\n this.__hoverStyle = obj; // Not affect exists style.\n }\n else {\n this.style = obj;\n }\n this.dirtyStyle();\n }\n\n /**\n * Determine if an object is a valid style object.\n * Which means it is created by `createStyle.`\n *\n * A valid style object will have all default values in it's prototype.\n * To avoid get null/undefined values.\n */\n isStyleObject(obj: Props['style']) {\n return obj[STYLE_MAGIC_KEY];\n }\n\n protected _innerSaveToNormal(toState: DisplayableState) {\n super._innerSaveToNormal(toState);\n\n const normalState = this._normalState;\n if (toState.style && !normalState.style) {\n // Clone style object.\n // TODO: Only save changed style.\n normalState.style = this._mergeStyle(this.createStyle(), this.style);\n }\n\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n }\n\n protected _applyStateObj(\n stateName: string,\n state: DisplayableState,\n normalState: DisplayableState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n super._applyStateObj(stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n\n const needsRestoreToNormal = !(state && keepCurrentStates);\n let targetStyle: Props['style'];\n if (state && state.style) {\n // Only animate changed properties.\n if (transition) {\n if (keepCurrentStates) {\n targetStyle = state.style;\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else {\n targetStyle = this._mergeStyle(\n this.createStyle(),\n keepCurrentStates ? this.style : normalState.style\n );\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else if (needsRestoreToNormal) {\n targetStyle = normalState.style;\n }\n\n if (targetStyle) {\n if (transition) {\n // Clone a new style. Not affect the original one.\n const sourceStyle = this.style;\n\n this.style = this.createStyle(needsRestoreToNormal ? {} : sourceStyle);\n // const sourceStyle = this.style = this.createStyle(this.style);\n\n if (needsRestoreToNormal) {\n const changedKeys = keys(sourceStyle);\n for (let i = 0; i < changedKeys.length; i++) {\n const key = changedKeys[i];\n if (key in targetStyle) { // Not use `key == null` because == null may means no stroke/fill.\n // Pick out from prototype. Or the property won't be animated.\n (targetStyle as any)[key] = targetStyle[key];\n // Omit the property has no default value.\n (this.style as any)[key] = sourceStyle[key];\n }\n }\n }\n\n // If states is switched twice in ONE FRAME, for example:\n // one property(for example shadowBlur) changed from default value to a specifed value,\n // then switched back in immediately. this.style may don't set this property yet when switching back.\n // It won't treat it as an changed property when switching back. And it won't be animated.\n // So here we make sure the properties will be animated from default value to a specifed value are set.\n const targetKeys = keys(targetStyle);\n for (let i = 0; i < targetKeys.length; i++) {\n const key = targetKeys[i];\n this.style[key] = this.style[key];\n }\n\n this._transitionState(stateName, {\n style: targetStyle\n } as Props, animationCfg, this.getAnimationStyleProps() as MapToType);\n }\n else {\n this.useStyle(targetStyle);\n }\n }\n\n // Don't change z, z2 for element moved into hover layer.\n // It's not necessary and will cause paint list order changed.\n const statesKeys = this.__inHover ? PRIMARY_STATES_KEYS_IN_HOVER_LAYER : PRIMARY_STATES_KEYS;\n for (let i = 0; i < statesKeys.length; i++) {\n let key = statesKeys[i];\n if (state && state[key] != null) {\n // Replace if it exist in target state\n (this as any)[key] = state[key];\n }\n else if (needsRestoreToNormal) {\n // Restore to normal state\n if (normalState[key] != null) {\n (this as any)[key] = normalState[key];\n }\n }\n }\n }\n\n protected _mergeStates(states: DisplayableState[]) {\n const mergedState = super._mergeStates(states) as DisplayableState;\n let mergedStyle: Props['style'];\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n if (state.style) {\n mergedStyle = mergedStyle || {};\n this._mergeStyle(mergedStyle, state.style);\n }\n }\n if (mergedStyle) {\n mergedState.style = mergedStyle;\n }\n return mergedState;\n }\n\n protected _mergeStyle(\n targetStyle: CommonStyleProps,\n sourceStyle: CommonStyleProps\n ) {\n extend(targetStyle, sourceStyle);\n return targetStyle;\n }\n\n getAnimationStyleProps() {\n return DEFAULT_COMMON_ANIMATION_PROPS;\n }\n\n /**\n * The string value of `textPosition` needs to be calculated to a real postion.\n * For example, `'inside'` is calculated to `[rect.width/2, rect.height/2]`\n * by default. See `contain/text.js#calculateTextPosition` for more details.\n * But some coutom shapes like \"pin\", \"flag\" have center that is not exactly\n * `[width/2, height/2]`. So we provide this hook to customize the calculation\n * for those shapes. It will be called if the `style.textPosition` is a string.\n * @param out Prepared out object. If not provided, this method should\n * be responsible for creating one.\n * @param style\n * @param rect {x, y, width, height}\n * @return out The same as the input out.\n * {\n * x: number. mandatory.\n * y: number. mandatory.\n * textAlign: string. optional. use style.textAlign by default.\n * textVerticalAlign: string. optional. use style.textVerticalAlign by default.\n * }\n */\n // calculateTextPosition: (out: CalculateTextPositionResult, style: Dictionary, rect: RectLike) => CalculateTextPositionResult\n\n protected static initDefaultProps = (function () {\n const dispProto = Displayable.prototype;\n dispProto.type = 'displayable';\n dispProto.invisible = false;\n dispProto.z = 0;\n dispProto.z2 = 0;\n dispProto.zlevel = 0;\n dispProto.culling = false;\n dispProto.cursor = 'pointer';\n dispProto.rectHover = false;\n dispProto.incremental = false;\n dispProto._rect = null;\n dispProto.dirtyRectTolerance = 0;\n\n dispProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT;\n })()\n}\n\nconst tmpRect = new BoundingRect(0, 0, 0, 0);\nconst viewRect = new BoundingRect(0, 0, 0, 0);\nfunction isDisplayableCulled(el: Displayable, width: number, height: number) {\n tmpRect.copy(el.getBoundingRect());\n if (el.transform) {\n tmpRect.applyTransform(el.transform);\n }\n viewRect.width = width;\n viewRect.height = height;\n return !tmpRect.intersect(viewRect);\n}\n\nexport default Displayable;", "/**\n * \u66F2\u7EBF\u8F85\u52A9\u6A21\u5757\n */\n\nimport {\n create as v2Create,\n distSquare as v2DistSquare,\n VectorArray\n} from './vector';\n\nconst mathPow = Math.pow;\nconst mathSqrt = Math.sqrt;\n\nconst EPSILON = 1e-8;\nconst EPSILON_NUMERIC = 1e-4;\n\nconst THREE_SQRT = mathSqrt(3);\nconst ONE_THIRD = 1 / 3;\n\n// \u4E34\u65F6\u53D8\u91CF\nconst _v0 = v2Create();\nconst _v1 = v2Create();\nconst _v2 = v2Create();\n\nfunction isAroundZero(val: number) {\n return val > -EPSILON && val < EPSILON;\n}\nfunction isNotAroundZero(val: number) {\n return val > EPSILON || val < -EPSILON;\n}\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u503C\n */\nexport function cubicAt(p0: number, p1: number, p2: number, p3: number, t: number): number {\n const onet = 1 - t;\n return onet * onet * (onet * p0 + 3 * t * p1)\n + t * t * (t * p3 + 3 * onet * p2);\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u5BFC\u6570\u503C\n */\nexport function cubicDerivativeAt(p0: number, p1: number, p2: number, p3: number, t: number): number {\n const onet = 1 - t;\n return 3 * (\n ((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet\n + (p3 - p2) * t * t\n );\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6839\uFF0C\u4F7F\u7528\u76DB\u91D1\u516C\u5F0F\n */\nexport function cubicRootAt(p0: number, p1: number, p2: number, p3: number, val: number, roots: number[]): number {\n // Evaluate roots of cubic functions\n const a = p3 + 3 * (p1 - p2) - p0;\n const b = 3 * (p2 - p1 * 2 + p0);\n const c = 3 * (p1 - p0);\n const d = p0 - val;\n\n const A = b * b - 3 * a * c;\n const B = b * c - 9 * a * d;\n const C = c * c - 3 * b * d;\n\n let n = 0;\n\n if (isAroundZero(A) && isAroundZero(B)) {\n if (isAroundZero(b)) {\n roots[0] = 0;\n }\n else {\n const t1 = -c / b; //t1, t2, t3, b is not zero\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n const disc = B * B - 4 * A * C;\n\n if (isAroundZero(disc)) {\n const K = B / A;\n const t1 = -b / a + K; // t1, a is not zero\n const t2 = -K / 2; // t2, t3\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n let Y1 = A * b + 1.5 * a * (-B + discSqrt);\n let Y2 = A * b + 1.5 * a * (-B - discSqrt);\n if (Y1 < 0) {\n Y1 = -mathPow(-Y1, ONE_THIRD);\n }\n else {\n Y1 = mathPow(Y1, ONE_THIRD);\n }\n if (Y2 < 0) {\n Y2 = -mathPow(-Y2, ONE_THIRD);\n }\n else {\n Y2 = mathPow(Y2, ONE_THIRD);\n }\n const t1 = (-b - (Y1 + Y2)) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else {\n const T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));\n const theta = Math.acos(T) / 3;\n const ASqrt = mathSqrt(A);\n const tmp = Math.cos(theta);\n\n const t1 = (-b - 2 * ASqrt * tmp) / (3 * a);\n const t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);\n const t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n if (t3 >= 0 && t3 <= 1) {\n roots[n++] = t3;\n }\n }\n }\n return n;\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6781\u9650\u503C\u7684\u4F4D\u7F6E\n * @return \u6709\u6548\u6570\u76EE\n */\nexport function cubicExtrema(p0: number, p1: number, p2: number, p3: number, extrema: number[]): number {\n const b = 6 * p2 - 12 * p1 + 6 * p0;\n const a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;\n const c = 3 * p1 - 3 * p0;\n\n let n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n const t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n }\n }\n else {\n const disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n extrema[0] = -b / (2 * a);\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n const t1 = (-b + discSqrt) / (2 * a);\n const t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n extrema[n++] = t2;\n }\n }\n }\n return n;\n}\n\n/**\n * \u7EC6\u5206\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n */\nexport function cubicSubdivide(p0: number, p1: number, p2: number, p3: number, t: number, out: number[]) {\n const p01 = (p1 - p0) * t + p0;\n const p12 = (p2 - p1) * t + p1;\n const p23 = (p3 - p2) * t + p2;\n\n const p012 = (p12 - p01) * t + p01;\n const p123 = (p23 - p12) * t + p12;\n\n const p0123 = (p123 - p012) * t + p012;\n // Seg0\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p0123;\n // Seg1\n out[4] = p0123;\n out[5] = p123;\n out[6] = p23;\n out[7] = p3;\n}\n\n/**\n * \u6295\u5C04\u70B9\u5230\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u4E0A\uFF0C\u8FD4\u56DE\u6295\u5C04\u8DDD\u79BB\u3002\n * \u6295\u5C04\u70B9\u6709\u53EF\u80FD\u4F1A\u6709\u4E00\u4E2A\u6216\u8005\u591A\u4E2A\uFF0C\u8FD9\u91CC\u53EA\u8FD4\u56DE\u5176\u4E2D\u8DDD\u79BB\u6700\u77ED\u7684\u4E00\u4E2A\u3002\n */\nexport function cubicProjectPoint(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n x: number, y: number, out: VectorArray\n): number {\n // http://pomax.github.io/bezierinfo/#projections\n let t;\n let interval = 0.005;\n let d = Infinity;\n let prev;\n let next;\n let d1;\n let d2;\n\n _v0[0] = x;\n _v0[1] = y;\n\n // \u5148\u7C97\u7565\u4F30\u8BA1\u4E00\u4E0B\u53EF\u80FD\u7684\u6700\u5C0F\u8DDD\u79BB\u7684 t \u503C\n // PENDING\n for (let _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = cubicAt(x0, x1, x2, x3, _t);\n _v1[1] = cubicAt(y0, y1, y2, y3, _t);\n d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n prev = t - interval;\n next = t + interval;\n // t - interval\n _v1[0] = cubicAt(x0, x1, x2, x3, prev);\n _v1[1] = cubicAt(y0, y1, y2, y3, prev);\n\n d1 = v2DistSquare(_v1, _v0);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n // t + interval\n _v2[0] = cubicAt(x0, x1, x2, x3, next);\n _v2[1] = cubicAt(y0, y1, y2, y3, next);\n d2 = v2DistSquare(_v2, _v0);\n\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n // t\n if (out) {\n out[0] = cubicAt(x0, x1, x2, x3, t);\n out[1] = cubicAt(y0, y1, y2, y3, t);\n }\n // console.log(interval, i);\n return mathSqrt(d);\n}\n\n/**\n * \u8BA1\u7B97\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u957F\u5EA6\n */\nexport function cubicLength(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n iteration: number\n) {\n let px = x0;\n let py = y0;\n\n let d = 0;\n\n const step = 1 / iteration;\n\n for (let i = 1; i <= iteration; i++) {\n let t = i * step;\n const x = cubicAt(x0, x1, x2, x3, t);\n const y = cubicAt(y0, y1, y2, y3, t);\n\n const dx = x - px;\n const dy = y - py;\n\n d += Math.sqrt(dx * dx + dy * dy);\n\n px = x;\n py = y;\n }\n\n return d;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u503C\n */\nexport function quadraticAt(p0: number, p1: number, p2: number, t: number): number {\n const onet = 1 - t;\n return onet * (onet * p0 + 2 * t * p1) + t * t * p2;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u5BFC\u6570\u503C\n */\nexport function quadraticDerivativeAt(p0: number, p1: number, p2: number, t: number): number {\n return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u65B9\u8D1D\u585E\u5C14\u65B9\u7A0B\u6839\n * @return \u6709\u6548\u6839\u6570\u76EE\n */\nexport function quadraticRootAt(p0: number, p1: number, p2: number, val: number, roots: number[]): number {\n const a = p0 - 2 * p1 + p2;\n const b = 2 * (p1 - p0);\n const c = p0 - val;\n\n let n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n const t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n const disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n const t1 = -b / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else if (disc > 0) {\n const discSqrt = mathSqrt(disc);\n const t1 = (-b + discSqrt) / (2 * a);\n const t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n }\n return n;\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u8D1D\u585E\u5C14\u65B9\u7A0B\u6781\u9650\u503C\n */\nexport function quadraticExtremum(p0: number, p1: number, p2: number): number {\n const divider = p0 + p2 - 2 * p1;\n if (divider === 0) {\n // p1 is center of p0 and p2\n return 0.5;\n }\n else {\n return (p0 - p1) / divider;\n }\n}\n\n/**\n * \u7EC6\u5206\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n */\nexport function quadraticSubdivide(p0: number, p1: number, p2: number, t: number, out: number[]) {\n const p01 = (p1 - p0) * t + p0;\n const p12 = (p2 - p1) * t + p1;\n const p012 = (p12 - p01) * t + p01;\n\n // Seg0\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n\n // Seg1\n out[3] = p012;\n out[4] = p12;\n out[5] = p2;\n}\n\n/**\n * \u6295\u5C04\u70B9\u5230\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u4E0A\uFF0C\u8FD4\u56DE\u6295\u5C04\u8DDD\u79BB\u3002\n * \u6295\u5C04\u70B9\u6709\u53EF\u80FD\u4F1A\u6709\u4E00\u4E2A\u6216\u8005\u591A\u4E2A\uFF0C\u8FD9\u91CC\u53EA\u8FD4\u56DE\u5176\u4E2D\u8DDD\u79BB\u6700\u77ED\u7684\u4E00\u4E2A\u3002\n * @param {number} x0\n * @param {number} y0\n * @param {number} x1\n * @param {number} y1\n * @param {number} x2\n * @param {number} y2\n * @param {number} x\n * @param {number} y\n * @param {Array.} out \u6295\u5C04\u70B9\n * @return {number}\n */\nexport function quadraticProjectPoint(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n x: number, y: number, out: VectorArray\n): number {\n // http://pomax.github.io/bezierinfo/#projections\n let t: number;\n let interval = 0.005;\n let d = Infinity;\n\n _v0[0] = x;\n _v0[1] = y;\n\n // \u5148\u7C97\u7565\u4F30\u8BA1\u4E00\u4E0B\u53EF\u80FD\u7684\u6700\u5C0F\u8DDD\u79BB\u7684 t \u503C\n // PENDING\n for (let _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = quadraticAt(x0, x1, x2, _t);\n _v1[1] = quadraticAt(y0, y1, y2, _t);\n const d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n const prev = t - interval;\n const next = t + interval;\n // t - interval\n _v1[0] = quadraticAt(x0, x1, x2, prev);\n _v1[1] = quadraticAt(y0, y1, y2, prev);\n\n const d1 = v2DistSquare(_v1, _v0);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n // t + interval\n _v2[0] = quadraticAt(x0, x1, x2, next);\n _v2[1] = quadraticAt(y0, y1, y2, next);\n const d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n // t\n if (out) {\n out[0] = quadraticAt(x0, x1, x2, t);\n out[1] = quadraticAt(y0, y1, y2, t);\n }\n // console.log(interval, i);\n return mathSqrt(d);\n}\n\n/**\n * \u8BA1\u7B97\u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u957F\u5EA6\n */\nexport function quadraticLength(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n iteration: number\n) {\n let px = x0;\n let py = y0;\n\n let d = 0;\n\n const step = 1 / iteration;\n\n for (let i = 1; i <= iteration; i++) {\n let t = i * step;\n const x = quadraticAt(x0, x1, x2, t);\n const y = quadraticAt(y0, y1, y2, t);\n\n const dx = x - px;\n const dy = y - py;\n\n d += Math.sqrt(dx * dx + dy * dy);\n\n px = x;\n py = y;\n }\n\n return d;\n}\n", "/**\n * @author Yi Shen(https://github.com/pissang)\n */\n\nimport * as vec2 from './vector';\nimport * as curve from './curve';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI2 = Math.PI * 2;\n\nconst start = vec2.create();\nconst end = vec2.create();\nconst extremity = vec2.create();\n\n/**\n * \u4ECE\u9876\u70B9\u6570\u7EC4\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromPoints(points: ArrayLike[], min: vec2.VectorArray, max: vec2.VectorArray) {\n if (points.length === 0) {\n return;\n }\n let p = points[0];\n let left = p[0];\n let right = p[0];\n let top = p[1];\n let bottom = p[1];\n\n for (let i = 1; i < points.length; i++) {\n p = points[i];\n left = mathMin(left, p[0]);\n right = mathMax(right, p[0]);\n top = mathMin(top, p[1]);\n bottom = mathMax(bottom, p[1]);\n }\n\n min[0] = left;\n min[1] = top;\n max[0] = right;\n max[1] = bottom;\n}\n\nexport function fromLine(\n x0: number, y0: number, x1: number, y1: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n min[0] = mathMin(x0, x1);\n min[1] = mathMin(y0, y1);\n max[0] = mathMax(x0, x1);\n max[1] = mathMax(y0, y1);\n}\n\nconst xDim: number[] = [];\nconst yDim: number[] = [];\n/**\n * \u4ECE\u4E09\u9636\u8D1D\u585E\u5C14\u66F2\u7EBF(p0, p1, p2, p3)\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromCubic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const cubicExtrema = curve.cubicExtrema;\n const cubicAt = curve.cubicAt;\n let n = cubicExtrema(x0, x1, x2, x3, xDim);\n min[0] = Infinity;\n min[1] = Infinity;\n max[0] = -Infinity;\n max[1] = -Infinity;\n\n for (let i = 0; i < n; i++) {\n const x = cubicAt(x0, x1, x2, x3, xDim[i]);\n min[0] = mathMin(x, min[0]);\n max[0] = mathMax(x, max[0]);\n }\n n = cubicExtrema(y0, y1, y2, y3, yDim);\n for (let i = 0; i < n; i++) {\n const y = cubicAt(y0, y1, y2, y3, yDim[i]);\n min[1] = mathMin(y, min[1]);\n max[1] = mathMax(y, max[1]);\n }\n\n min[0] = mathMin(x0, min[0]);\n max[0] = mathMax(x0, max[0]);\n min[0] = mathMin(x3, min[0]);\n max[0] = mathMax(x3, max[0]);\n\n min[1] = mathMin(y0, min[1]);\n max[1] = mathMax(y0, max[1]);\n min[1] = mathMin(y3, min[1]);\n max[1] = mathMax(y3, max[1]);\n}\n\n/**\n * \u4ECE\u4E8C\u9636\u8D1D\u585E\u5C14\u66F2\u7EBF(p0, p1, p2)\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromQuadratic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const quadraticExtremum = curve.quadraticExtremum;\n const quadraticAt = curve.quadraticAt;\n // Find extremities, where derivative in x dim or y dim is zero\n const tx =\n mathMax(\n mathMin(quadraticExtremum(x0, x1, x2), 1), 0\n );\n const ty =\n mathMax(\n mathMin(quadraticExtremum(y0, y1, y2), 1), 0\n );\n\n const x = quadraticAt(x0, x1, x2, tx);\n const y = quadraticAt(y0, y1, y2, ty);\n\n min[0] = mathMin(x0, x2, x);\n min[1] = mathMin(y0, y2, y);\n max[0] = mathMax(x0, x2, x);\n max[1] = mathMax(y0, y2, y);\n}\n\n/**\n * \u4ECE\u5706\u5F27\u4E2D\u8BA1\u7B97\u51FA\u6700\u5C0F\u5305\u56F4\u76D2\uFF0C\u5199\u5165`min`\u548C`max`\u4E2D\n */\nexport function fromArc(\n x: number, y: number, rx: number, ry: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n min: vec2.VectorArray, max: vec2.VectorArray\n) {\n const vec2Min = vec2.min;\n const vec2Max = vec2.max;\n\n const diff = Math.abs(startAngle - endAngle);\n\n\n if (diff % PI2 < 1e-4 && diff > 1e-4) {\n // Is a circle\n min[0] = x - rx;\n min[1] = y - ry;\n max[0] = x + rx;\n max[1] = y + ry;\n return;\n }\n\n start[0] = mathCos(startAngle) * rx + x;\n start[1] = mathSin(startAngle) * ry + y;\n\n end[0] = mathCos(endAngle) * rx + x;\n end[1] = mathSin(endAngle) * ry + y;\n\n vec2Min(min, start, end);\n vec2Max(max, start, end);\n\n // Thresh to [0, Math.PI * 2]\n startAngle = startAngle % (PI2);\n if (startAngle < 0) {\n startAngle = startAngle + PI2;\n }\n endAngle = endAngle % (PI2);\n if (endAngle < 0) {\n endAngle = endAngle + PI2;\n }\n\n if (startAngle > endAngle && !anticlockwise) {\n endAngle += PI2;\n }\n else if (startAngle < endAngle && anticlockwise) {\n startAngle += PI2;\n }\n if (anticlockwise) {\n const tmp = endAngle;\n endAngle = startAngle;\n startAngle = tmp;\n }\n\n // const number = 0;\n // const step = (anticlockwise ? -Math.PI : Math.PI) / 2;\n for (let angle = 0; angle < endAngle; angle += Math.PI / 2) {\n if (angle > startAngle) {\n extremity[0] = mathCos(angle) * rx + x;\n extremity[1] = mathSin(angle) * ry + y;\n\n vec2Min(min, extremity, min);\n vec2Max(max, extremity, max);\n }\n }\n}\n", "/**\n * Path \u4EE3\u7406\uFF0C\u53EF\u4EE5\u5728`buildPath`\u4E2D\u7528\u4E8E\u66FF\u4EE3`ctx`, \u4F1A\u4FDD\u5B58\u6BCF\u4E2Apath\u64CD\u4F5C\u7684\u547D\u4EE4\u5230pathCommands\u5C5E\u6027\u4E2D\n * \u53EF\u4EE5\u7528\u4E8E isInsidePath \u5224\u65AD\u4EE5\u53CA\u83B7\u53D6boundingRect\n */\n\n// TODO getTotalLength, getPointAtLength, arcTo\n\n/* global Float32Array */\n\nimport * as vec2 from './vector';\nimport BoundingRect from './BoundingRect';\nimport {devicePixelRatio as dpr} from '../config';\nimport { fromLine, fromCubic, fromQuadratic, fromArc } from './bbox';\nimport { cubicAt, cubicLength, cubicSubdivide, quadraticLength, quadraticSubdivide } from './curve';\n\nconst CMD = {\n M: 1,\n L: 2,\n C: 3,\n Q: 4,\n A: 5,\n Z: 6,\n // Rect\n R: 7\n};\n\n// const CMD_MEM_SIZE = {\n// M: 3,\n// L: 3,\n// C: 7,\n// Q: 5,\n// A: 9,\n// R: 5,\n// Z: 1\n// };\n\ninterface ExtendedCanvasRenderingContext2D extends CanvasRenderingContext2D {\n dpr?: number\n}\n\nconst tmpOutX: number[] = [];\nconst tmpOutY: number[] = [];\n\nconst min: number[] = [];\nconst max: number[] = [];\nconst min2: number[] = [];\nconst max2: number[] = [];\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathCos = Math.cos;\nconst mathSin = Math.sin;\nconst mathSqrt = Math.sqrt;\nconst mathAbs = Math.abs;\n\nconst PI = Math.PI;\nconst PI2 = PI * 2;\n\nconst hasTypedArray = typeof Float32Array !== 'undefined';\n\nconst tmpAngles: number[] = [];\n\nfunction modPI2(radian: number) {\n // It's much more stable to mod N instedof PI\n const n = Math.round(radian / PI * 1e8) / 1e8;\n return (n % 2) * PI;\n}\n/**\n * Normalize start and end angles.\n * startAngle will be normalized to 0 ~ PI*2\n * sweepAngle(endAngle - startAngle) will be normalized to 0 ~ PI*2 if clockwise.\n * -PI*2 ~ 0 if anticlockwise.\n */\nexport function normalizeArcAngles(angles: number[], anticlockwise: boolean): void {\n let newStartAngle = modPI2(angles[0]);\n if (newStartAngle < 0) {\n // Normlize to 0 - PI2\n newStartAngle += PI2;\n }\n\n let delta = newStartAngle - angles[0];\n let newEndAngle = angles[1];\n newEndAngle += delta;\n\n // https://github.com/chromium/chromium/blob/c20d681c9c067c4e15bb1408f17114b9e8cba294/third_party/blink/renderer/modules/canvas/canvas2d/canvas_path.cc#L184\n // Is circle\n if (!anticlockwise && newEndAngle - newStartAngle >= PI2) {\n newEndAngle = newStartAngle + PI2;\n }\n else if (anticlockwise && newStartAngle - newEndAngle >= PI2) {\n newEndAngle = newStartAngle - PI2;\n }\n // Make startAngle < endAngle when clockwise, otherwise endAngle < startAngle.\n // The sweep angle can never been larger than P2.\n else if (!anticlockwise && newStartAngle > newEndAngle) {\n newEndAngle = newStartAngle + (PI2 - modPI2(newStartAngle - newEndAngle));\n }\n else if (anticlockwise && newStartAngle < newEndAngle) {\n newEndAngle = newStartAngle - (PI2 - modPI2(newEndAngle - newStartAngle));\n }\n\n angles[0] = newStartAngle;\n angles[1] = newEndAngle;\n}\n\n\nexport default class PathProxy {\n\n dpr = 1\n\n data: number[] | Float32Array\n\n /**\n * Version is for tracking if the path has been changed.\n */\n private _version: number\n\n /**\n * If save path data.\n */\n private _saveData: boolean\n\n /**\n * If the line segment is too small to draw. It will be added to the pending pt.\n * It will be added if the subpath needs to be finished before stroke, fill, or starting a new subpath.\n */\n private _pendingPtX: number;\n private _pendingPtY: number;\n // Distance of pending pt to previous point.\n // 0 if there is no pending point.\n // Only update the pending pt when distance is larger.\n private _pendingPtDist: number;\n\n private _ctx: ExtendedCanvasRenderingContext2D\n\n private _xi = 0\n private _yi = 0\n\n private _x0 = 0\n private _y0 = 0\n\n private _len = 0\n\n // Calculating path len and seg len.\n private _pathSegLen: number[]\n private _pathLen: number\n // Unit x, Unit y. Provide for avoiding drawing that too short line segment\n private _ux: number\n private _uy: number\n\n // For dash shim.\n private _lineDash: number[]\n private _needsDash: boolean\n private _dashOffset: number\n private _dashIdx: number\n private _dashSum: number\n\n static CMD = CMD\n\n constructor(notSaveData?: boolean) {\n if (notSaveData) {\n this._saveData = false;\n }\n\n if (this._saveData) {\n this.data = [];\n }\n }\n\n increaseVersion() {\n this._version++;\n }\n\n /**\n * Version can be used outside for compare if the path is changed.\n * For example to determine if need to update svg d str in svg renderer.\n */\n getVersion() {\n return this._version;\n }\n\n /**\n * @readOnly\n */\n setScale(sx: number, sy: number, segmentIgnoreThreshold?: number) {\n // Compat. Previously there is no segmentIgnoreThreshold.\n segmentIgnoreThreshold = segmentIgnoreThreshold || 0;\n if (segmentIgnoreThreshold > 0) {\n this._ux = mathAbs(segmentIgnoreThreshold / dpr / sx) || 0;\n this._uy = mathAbs(segmentIgnoreThreshold / dpr / sy) || 0;\n }\n }\n\n setDPR(dpr: number) {\n this.dpr = dpr;\n }\n\n setContext(ctx: ExtendedCanvasRenderingContext2D) {\n this._ctx = ctx;\n }\n\n getContext(): ExtendedCanvasRenderingContext2D {\n return this._ctx;\n }\n\n beginPath() {\n this._ctx && this._ctx.beginPath();\n this.reset();\n return this;\n }\n\n /**\n * Reset path data.\n */\n reset() {\n // Reset\n if (this._saveData) {\n this._len = 0;\n }\n\n if (this._lineDash) {\n this._lineDash = null;\n this._dashOffset = 0;\n }\n\n if (this._pathSegLen) {\n this._pathSegLen = null;\n this._pathLen = 0;\n }\n\n // Update version\n this._version++;\n }\n\n moveTo(x: number, y: number) {\n // Add pending point for previous path.\n this._drawPendingPt();\n\n this.addData(CMD.M, x, y);\n this._ctx && this._ctx.moveTo(x, y);\n\n // x0, y0, xi, yi \u662F\u8BB0\u5F55\u5728 _dashedXXXXTo \u65B9\u6CD5\u4E2D\u4F7F\u7528\n // xi, yi \u8BB0\u5F55\u5F53\u524D\u70B9, x0, y0 \u5728 closePath \u7684\u65F6\u5019\u56DE\u5230\u8D77\u59CB\u70B9\u3002\n // \u6709\u53EF\u80FD\u5728 beginPath \u4E4B\u540E\u76F4\u63A5\u8C03\u7528 lineTo\uFF0C\u8FD9\u65F6\u5019 x0, y0 \u9700\u8981\n // \u5728 lineTo \u65B9\u6CD5\u4E2D\u8BB0\u5F55\uFF0C\u8FD9\u91CC\u5148\u4E0D\u8003\u8651\u8FD9\u79CD\u60C5\u51B5\uFF0Cdashed line \u4E5F\u53EA\u5728 IE10- \u4E2D\u4E0D\u652F\u6301\n this._x0 = x;\n this._y0 = y;\n\n this._xi = x;\n this._yi = y;\n\n return this;\n }\n\n lineTo(x: number, y: number) {\n const dx = mathAbs(x - this._xi);\n const dy = mathAbs(y - this._yi);\n const exceedUnit = dx > this._ux || dy > this._uy;\n\n this.addData(CMD.L, x, y);\n\n if (this._ctx && exceedUnit) {\n this._needsDash ? this._dashedLineTo(x, y)\n : this._ctx.lineTo(x, y);\n }\n if (exceedUnit) {\n this._xi = x;\n this._yi = y;\n this._pendingPtDist = 0;\n }\n else {\n const d2 = dx * dx + dy * dy;\n // Only use the farthest pending point.\n if (d2 > this._pendingPtDist) {\n this._pendingPtX = x;\n this._pendingPtY = y;\n this._pendingPtDist = d2;\n }\n }\n\n return this;\n }\n\n bezierCurveTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) {\n this._drawPendingPt();\n\n this.addData(CMD.C, x1, y1, x2, y2, x3, y3);\n if (this._ctx) {\n this._needsDash ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)\n : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n this._xi = x3;\n this._yi = y3;\n return this;\n }\n\n quadraticCurveTo(x1: number, y1: number, x2: number, y2: number) {\n this._drawPendingPt();\n\n this.addData(CMD.Q, x1, y1, x2, y2);\n if (this._ctx) {\n this._needsDash ? this._dashedQuadraticTo(x1, y1, x2, y2)\n : this._ctx.quadraticCurveTo(x1, y1, x2, y2);\n }\n this._xi = x2;\n this._yi = y2;\n return this;\n }\n\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise?: boolean) {\n this._drawPendingPt();\n\n tmpAngles[0] = startAngle;\n tmpAngles[1] = endAngle;\n normalizeArcAngles(tmpAngles, anticlockwise);\n\n startAngle = tmpAngles[0];\n endAngle = tmpAngles[1];\n\n let delta = endAngle - startAngle;\n\n this.addData(\n CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1\n );\n\n this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n\n this._xi = mathCos(endAngle) * r + cx;\n this._yi = mathSin(endAngle) * r + cy;\n return this;\n }\n\n // TODO\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number) {\n this._drawPendingPt();\n\n if (this._ctx) {\n this._ctx.arcTo(x1, y1, x2, y2, radius);\n }\n return this;\n }\n\n // TODO\n rect(x: number, y: number, w: number, h: number) {\n this._drawPendingPt();\n\n this._ctx && this._ctx.rect(x, y, w, h);\n this.addData(CMD.R, x, y, w, h);\n return this;\n }\n\n closePath() {\n // Add pending point for previous path.\n this._drawPendingPt();\n\n this.addData(CMD.Z);\n\n const ctx = this._ctx;\n const x0 = this._x0;\n const y0 = this._y0;\n if (ctx) {\n this._needsDash && this._dashedLineTo(x0, y0);\n ctx.closePath();\n }\n\n this._xi = x0;\n this._yi = y0;\n return this;\n }\n\n fill(ctx: CanvasRenderingContext2D) {\n ctx && ctx.fill();\n this.toStatic();\n }\n\n stroke(ctx: CanvasRenderingContext2D) {\n ctx && ctx.stroke();\n this.toStatic();\n }\n\n /**\n * \u5FC5\u987B\u5728\u5176\u5B83\u7ED8\u5236\u547D\u4EE4\u524D\u8C03\u7528\n * Must be invoked before all other path drawing methods\n */\n setLineDash(lineDash: number[] | false) {\n if (lineDash instanceof Array) {\n this._lineDash = lineDash;\n\n this._dashIdx = 0;\n\n let lineDashSum = 0;\n for (let i = 0; i < lineDash.length; i++) {\n lineDashSum += lineDash[i];\n }\n this._dashSum = lineDashSum;\n\n this._needsDash = true;\n }\n else {\n // Clear\n this._lineDash = null;\n this._needsDash = false;\n }\n return this;\n }\n\n /**\n * \u5FC5\u987B\u5728\u5176\u5B83\u7ED8\u5236\u547D\u4EE4\u524D\u8C03\u7528\n * Must be invoked before all other path drawing methods\n */\n setLineDashOffset(offset: number) {\n this._dashOffset = offset;\n return this;\n }\n\n len() {\n return this._len;\n }\n\n setData(data: Float32Array | number[]) {\n\n const len = data.length;\n\n if (!(this.data && this.data.length === len) && hasTypedArray) {\n this.data = new Float32Array(len);\n }\n\n for (let i = 0; i < len; i++) {\n this.data[i] = data[i];\n }\n\n this._len = len;\n }\n\n appendPath(path: PathProxy | PathProxy[]) {\n if (!(path instanceof Array)) {\n path = [path];\n }\n const len = path.length;\n let appendSize = 0;\n let offset = this._len;\n for (let i = 0; i < len; i++) {\n appendSize += path[i].len();\n }\n if (hasTypedArray && (this.data instanceof Float32Array)) {\n this.data = new Float32Array(offset + appendSize);\n }\n for (let i = 0; i < len; i++) {\n const appendPathData = path[i].data;\n for (let k = 0; k < appendPathData.length; k++) {\n this.data[offset++] = appendPathData[k];\n }\n }\n this._len = offset;\n }\n\n /**\n * \u586B\u5145 Path \u6570\u636E\u3002\n * \u5C3D\u91CF\u590D\u7528\u800C\u4E0D\u7533\u660E\u65B0\u7684\u6570\u7EC4\u3002\u5927\u90E8\u5206\u56FE\u5F62\u91CD\u7ED8\u7684\u6307\u4EE4\u6570\u636E\u957F\u5EA6\u90FD\u662F\u4E0D\u53D8\u7684\u3002\n */\n addData(\n cmd: number,\n a?: number,\n b?: number,\n c?: number,\n d?: number,\n e?: number,\n f?: number,\n g?: number,\n h?: number\n ) {\n if (!this._saveData) {\n return;\n }\n\n let data = this.data;\n if (this._len + arguments.length > data.length) {\n // \u56E0\u4E3A\u4E4B\u524D\u7684\u6570\u7EC4\u5DF2\u7ECF\u8F6C\u6362\u6210\u9759\u6001\u7684 Float32Array\n // \u6240\u4EE5\u4E0D\u591F\u7528\u65F6\u9700\u8981\u6269\u5C55\u4E00\u4E2A\u65B0\u7684\u52A8\u6001\u6570\u7EC4\n this._expandData();\n data = this.data;\n }\n for (let i = 0; i < arguments.length; i++) {\n data[this._len++] = arguments[i];\n }\n }\n\n private _drawPendingPt() {\n if (this._pendingPtDist > 0) {\n this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY);\n this._pendingPtDist = 0;\n }\n }\n\n private _expandData() {\n // Only if data is Float32Array\n if (!(this.data instanceof Array)) {\n const newData = [];\n for (let i = 0; i < this._len; i++) {\n newData[i] = this.data[i];\n }\n this.data = newData;\n }\n }\n\n private _dashedLineTo(x1: number, y1: number) {\n const dashSum = this._dashSum;\n const lineDash = this._lineDash;\n const ctx = this._ctx;\n let offset = this._dashOffset;\n\n let x0 = this._xi;\n let y0 = this._yi;\n let dx = x1 - x0;\n let dy = y1 - y0;\n let dist = mathSqrt(dx * dx + dy * dy);\n let x = x0;\n let y = y0;\n let nDash = lineDash.length;\n let dash;\n let idx;\n dx /= dist;\n dy /= dist;\n\n if (offset < 0) {\n // Convert to positive offset\n offset = dashSum + offset;\n }\n offset %= dashSum;\n x -= offset * dx;\n y -= offset * dy;\n\n while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1)\n || (dx === 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) {\n idx = this._dashIdx;\n dash = lineDash[idx];\n x += dx * dash;\n y += dy * dash;\n this._dashIdx = (idx + 1) % nDash;\n // Skip positive offset\n if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) {\n continue;\n }\n ctx[idx % 2 ? 'moveTo' : 'lineTo'](\n dx >= 0 ? mathMin(x, x1) : mathMax(x, x1),\n dy >= 0 ? mathMin(y, y1) : mathMax(y, y1)\n );\n }\n // Offset for next lineTo\n dx = x - x1;\n dy = y - y1;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n }\n\n // Not accurate dashed line to\n private _dashedBezierTo(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) {\n const ctx = this._ctx;\n\n let dashSum = this._dashSum;\n let offset = this._dashOffset;\n let lineDash = this._lineDash;\n\n let x0 = this._xi;\n let y0 = this._yi;\n let bezierLen = 0;\n let idx = this._dashIdx;\n let nDash = lineDash.length;\n\n let t;\n let dx;\n let dy;\n\n let x;\n let y;\n\n let tmpLen = 0;\n\n if (offset < 0) {\n // Convert to positive offset\n offset = dashSum + offset;\n }\n offset %= dashSum;\n // Bezier approx length\n for (t = 0; t < 1; t += 0.1) {\n dx = cubicAt(x0, x1, x2, x3, t + 0.1)\n - cubicAt(x0, x1, x2, x3, t);\n dy = cubicAt(y0, y1, y2, y3, t + 0.1)\n - cubicAt(y0, y1, y2, y3, t);\n bezierLen += mathSqrt(dx * dx + dy * dy);\n }\n\n // Find idx after add offset\n for (; idx < nDash; idx++) {\n tmpLen += lineDash[idx];\n if (tmpLen > offset) {\n break;\n }\n }\n t = (tmpLen - offset) / bezierLen;\n\n while (t <= 1) {\n\n x = cubicAt(x0, x1, x2, x3, t);\n y = cubicAt(y0, y1, y2, y3, t);\n\n // Use line to approximate dashed bezier\n // Bad result if dash is long\n idx % 2 ? ctx.moveTo(x, y)\n : ctx.lineTo(x, y);\n\n t += lineDash[idx] / bezierLen;\n\n idx = (idx + 1) % nDash;\n }\n\n // Finish the last segment and calculate the new offset\n (idx % 2 !== 0) && ctx.lineTo(x3, y3);\n dx = x3 - x;\n dy = y3 - y;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n }\n\n private _dashedQuadraticTo(x1: number, y1: number, x2: number, y2: number) {\n // Convert quadratic to cubic using degree elevation\n const x3 = x2;\n const y3 = y2;\n x2 = (x2 + 2 * x1) / 3;\n y2 = (y2 + 2 * y1) / 3;\n x1 = (this._xi + 2 * x1) / 3;\n y1 = (this._yi + 2 * y1) / 3;\n\n this._dashedBezierTo(x1, y1, x2, y2, x3, y3);\n }\n\n /**\n * Convert dynamic array to static Float32Array\n *\n * It will still use a normal array if command buffer length is less than 10\n * Because Float32Array itself may take more memory than a normal array.\n *\n * 10 length will make sure at least one M command and one A(arc) command.\n */\n toStatic() {\n if (!this._saveData) {\n return;\n }\n\n this._drawPendingPt();\n\n const data = this.data;\n if (data instanceof Array) {\n data.length = this._len;\n if (hasTypedArray && this._len > 11) {\n this.data = new Float32Array(data);\n }\n }\n }\n\n\n getBoundingRect() {\n min[0] = min[1] = min2[0] = min2[1] = Number.MAX_VALUE;\n max[0] = max[1] = max2[0] = max2[1] = -Number.MAX_VALUE;\n\n const data = this.data;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n let i;\n for (i = 0; i < this._len;) {\n const cmd = data[i++] as number;\n\n const isFirst = i === 1;\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n min2[0] = x0;\n min2[1] = y0;\n max2[0] = x0;\n max2[1] = y0;\n break;\n case CMD.L:\n fromLine(xi, yi, data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n fromCubic(\n xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n min2, max2\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n fromQuadratic(\n xi, yi, data[i++], data[i++], data[i], data[i + 1],\n min2, max2\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n const endAngle = data[i++] + startAngle;\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !data[i++];\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n\n fromArc(\n cx, cy, rx, ry, startAngle, endAngle,\n anticlockwise, min2, max2\n );\n\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n // Use fromLine\n fromLine(x0, y0, x0 + width, y0 + height, min2, max2);\n break;\n case CMD.Z:\n xi = x0;\n yi = y0;\n break;\n }\n\n // Union\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n\n // No data\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n );\n }\n\n private _calculateLength(): number {\n const data = this.data;\n const len = this._len;\n const ux = this._ux;\n const uy = this._uy;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n if (!this._pathSegLen) {\n this._pathSegLen = [];\n }\n const pathSegLen = this._pathSegLen;\n let pathTotalLen = 0;\n let segCount = 0;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++] as number;\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n let l = -1;\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n break;\n case CMD.L: {\n const x2 = data[i++];\n const y2 = data[i++];\n const dx = x2 - xi;\n const dy = y2 - yi;\n if (mathAbs(dx) > ux || mathAbs(dy) > uy || i === len - 1) {\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x2;\n yi = y2;\n }\n break;\n }\n case CMD.C: {\n const x1 = data[i++];\n const y1 = data[i++];\n const x2 = data[i++];\n const y2 = data[i++];\n const x3 = data[i++];\n const y3 = data[i++];\n // TODO adaptive iteration\n l = cubicLength(xi, yi, x1, y1, x2, y2, x3, y3, 10);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n const x1 = data[i++];\n const y1 = data[i++];\n const x2 = data[i++];\n const y2 = data[i++];\n l = quadraticLength(xi, yi, x1, y1, x2, y2, 10);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n let delta = data[i++];\n const endAngle = delta + startAngle;\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !data[i++];\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n\n // TODO Ellipse\n l = mathMax(rx, ry) * mathMin(PI2, Math.abs(delta));\n\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R: {\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n l = width * 2 + height * 2;\n break;\n }\n case CMD.Z: {\n const dx = x0 - xi;\n const dy = y0 - yi;\n l = Math.sqrt(dx * dx + dy * dy);\n\n xi = x0;\n yi = y0;\n break;\n }\n }\n\n if (l >= 0) {\n pathSegLen[segCount++] = l;\n pathTotalLen += l;\n }\n }\n\n // TODO Optimize memory cost.\n this._pathLen = pathTotalLen;\n\n return pathTotalLen;\n }\n /**\n * Rebuild path from current data\n * Rebuild path will not consider javascript implemented line dash.\n * @param {CanvasRenderingContext2D} ctx\n */\n rebuildPath(ctx: PathRebuilder, percent: number) {\n const d = this.data;\n const ux = this._ux;\n const uy = this._uy;\n const len = this._len;\n let x0;\n let y0;\n let xi;\n let yi;\n let x;\n let y;\n\n const drawPart = percent < 1;\n let pathSegLen;\n let pathTotalLen;\n let accumLength = 0;\n let segCount = 0;\n let displayedLength;\n\n let pendingPtDist = 0;\n let pendingPtX: number;\n let pendingPtY: number;\n\n\n if (drawPart) {\n if (!this._pathSegLen) {\n this._calculateLength();\n }\n pathSegLen = this._pathSegLen;\n pathTotalLen = this._pathLen;\n displayedLength = percent * pathTotalLen;\n\n if (!displayedLength) {\n return;\n }\n }\n\n lo: for (let i = 0; i < len;) {\n const cmd = d[i++];\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = d[i];\n yi = d[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n // Only lineTo support ignoring small segments.\n // Otherwise if the pending point should always been flushed.\n if (cmd !== CMD.L && pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n switch (cmd) {\n case CMD.M:\n x0 = xi = d[i++];\n y0 = yi = d[i++];\n ctx.moveTo(xi, yi);\n break;\n case CMD.L: {\n x = d[i++];\n y = d[i++];\n const dx = mathAbs(x - xi);\n const dy = mathAbs(y - yi);\n // Not draw too small seg between\n if (dx > ux || dy > uy) {\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x * t, yi * (1 - t) + y * t);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.lineTo(x, y);\n xi = x;\n yi = y;\n pendingPtDist = 0;\n }\n else {\n const d2 = dx * dx + dy * dy;\n // Only use the farthest pending point.\n if (d2 > pendingPtDist) {\n pendingPtX = x;\n pendingPtY = y;\n pendingPtDist = d2;\n }\n }\n break;\n }\n case CMD.C: {\n const x1 = d[i++];\n const y1 = d[i++];\n const x2 = d[i++];\n const y2 = d[i++];\n const x3 = d[i++];\n const y3 = d[i++];\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n cubicSubdivide(xi, x1, x2, x3, t, tmpOutX);\n cubicSubdivide(yi, y1, y2, y3, t, tmpOutY);\n ctx.bezierCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2], tmpOutX[3], tmpOutY[3]);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n const x1 = d[i++];\n const y1 = d[i++];\n const x2 = d[i++];\n const y2 = d[i++];\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n quadraticSubdivide(xi, x1, x2, t, tmpOutX);\n quadraticSubdivide(yi, y1, y2, t, tmpOutY);\n ctx.quadraticCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2]);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.quadraticCurveTo(x1, y1, x2, y2);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n const cx = d[i++];\n const cy = d[i++];\n const rx = d[i++];\n const ry = d[i++];\n let startAngle = d[i++];\n let delta = d[i++];\n const psi = d[i++];\n const anticlockwise = !d[i++];\n const r = (rx > ry) ? rx : ry;\n const scaleX = (rx > ry) ? 1 : rx / ry;\n const scaleY = (rx > ry) ? ry / rx : 1;\n const isEllipse = mathAbs(rx - ry) > 1e-3;\n let endAngle = startAngle + delta;\n let breakBuild = false;\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n endAngle = startAngle + delta * (displayedLength - accumLength) / l;\n breakBuild = true;\n }\n accumLength += l;\n }\n if (isEllipse && ctx.ellipse) {\n ctx.ellipse(cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise);\n }\n else {\n ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n }\n\n if (breakBuild) {\n break lo;\n }\n\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = d[i];\n y0 = yi = d[i + 1];\n\n x = d[i++];\n y = d[i++];\n const width = d[i++];\n const height = d[i++];\n\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n let d = displayedLength - accumLength;\n ctx.moveTo(x, y);\n ctx.lineTo(x + mathMin(d, width), y);\n d -= width;\n if (d > 0) {\n ctx.lineTo(x + width, y + mathMin(d, height));\n }\n d -= height;\n if (d > 0) {\n ctx.lineTo(x + mathMax(width - d, 0), y + height);\n }\n d -= width;\n if (d > 0) {\n ctx.lineTo(x, y + mathMax(height - d, 0));\n }\n break lo;\n }\n accumLength += l;\n }\n ctx.rect(x, y, width, height);\n break;\n case CMD.Z:\n if (drawPart) {\n const l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n const t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x0 * t, yi * (1 - t) + y0 * t);\n break lo;\n }\n accumLength += l;\n }\n\n ctx.closePath();\n xi = x0;\n yi = y0;\n }\n }\n }\n\n clone() {\n const newProxy = new PathProxy();\n const data = this.data;\n newProxy.data = data.slice ? data.slice()\n : Array.prototype.slice.call(data);\n newProxy._len = this._len;\n return newProxy;\n }\n\n private static initDefaultProps = (function () {\n const proto = PathProxy.prototype;\n proto._saveData = true;\n proto._needsDash = false;\n proto._dashOffset = 0;\n proto._dashIdx = 0;\n proto._dashSum = 0;\n proto._ux = 0;\n proto._uy = 0;\n proto._pendingPtDist = 0;\n proto._version = 0;\n })()\n}\n\n\nexport interface PathRebuilder {\n moveTo(x: number, y: number): void\n lineTo(x: number, y: number): void\n bezierCurveTo(x: number, y: number, x2: number, y2: number, x3: number, y3: number): void\n quadraticCurveTo(x: number, y: number, x2: number, y2: number): void\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean): void\n ellipse(cx: number, cy: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise: boolean): void\n rect(x: number, y: number, width: number, height: number): void\n closePath(): void\n}", "\n/**\n * \u7EBF\u6BB5\u5305\u542B\u5224\u65AD\n * @param {number} x0\n * @param {number} y0\n * @param {number} x1\n * @param {number} y1\n * @param {number} lineWidth\n * @param {number} x\n * @param {number} y\n * @return {boolean}\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n let _a = 0;\n let _b = x0;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l)\n || (y < y0 - _l && y < y1 - _l)\n || (x > x0 + _l && x > x1 + _l)\n || (x < x0 - _l && x < x1 - _l)\n ) {\n return false;\n }\n\n if (x0 !== x1) {\n _a = (y0 - y1) / (x0 - x1);\n _b = (x0 * y1 - x1 * y0) / (x0 - x1);\n }\n else {\n return Math.abs(x - x0) <= _l / 2;\n }\n const tmp = _a * x - y + _b;\n const _s = tmp * tmp / (_a * _a + 1);\n return _s <= _l / 2 * _l / 2;\n}", "\nimport * as curve from '../core/curve';\n\n/**\n * \u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number,\n x2: number, y2: number, x3: number, y3: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)\n ) {\n return false;\n }\n const d = curve.cubicProjectPoint(\n x0, y0, x1, y1, x2, y2, x3, y3,\n x, y, null\n );\n return d <= _l / 2;\n}", "import {quadraticProjectPoint} from '../core/curve';\n\n/**\n * \u4E8C\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n lineWidth: number, x: number, y: number\n): boolean {\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n // Quick reject\n if (\n (y > y0 + _l && y > y1 + _l && y > y2 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l)\n ) {\n return false;\n }\n const d = quadraticProjectPoint(\n x0, y0, x1, y1, x2, y2,\n x, y, null\n );\n return d <= _l / 2;\n}\n", "\nconst PI2 = Math.PI * 2;\n\nexport function normalizeRadian(angle: number): number {\n angle %= PI2;\n if (angle < 0) {\n angle += PI2;\n }\n return angle;\n}", "\nimport {normalizeRadian} from './util';\n\nconst PI2 = Math.PI * 2;\n\n/**\n * \u5706\u5F27\u63CF\u8FB9\u5305\u542B\u5224\u65AD\n */\nexport function containStroke(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number,\n anticlockwise: boolean,\n lineWidth: number, x: number, y: number\n): boolean {\n\n if (lineWidth === 0) {\n return false;\n }\n const _l = lineWidth;\n\n x -= cx;\n y -= cy;\n const d = Math.sqrt(x * x + y * y);\n\n if ((d - _l > r) || (d + _l < r)) {\n return false;\n }\n // TODO\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n return true;\n }\n if (anticlockwise) {\n const tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n let angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n return (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle);\n}", "\nexport default function windingLine(\n x0: number, y0: number, x1: number, y1: number, x: number, y: number\n): number {\n if ((y > y0 && y > y1) || (y < y0 && y < y1)) {\n return 0;\n }\n // Ignore horizontal line\n if (y1 === y0) {\n return 0;\n }\n const t = (y - y0) / (y1 - y0);\n\n let dir = y1 < y0 ? 1 : -1;\n // Avoid winding error when intersection point is the connect point of two line of polygon\n if (t === 1 || t === 0) {\n dir = y1 < y0 ? 0.5 : -0.5;\n }\n\n const x_ = t * (x1 - x0) + x0;\n\n // If (x, y) on the line, considered as \"contain\".\n return x_ === x ? Infinity : x_ > x ? dir : 0;\n}", "import PathProxy from '../core/PathProxy';\nimport * as line from './line';\nimport * as cubic from './cubic';\nimport * as quadratic from './quadratic';\nimport * as arc from './arc';\nimport * as curve from '../core/curve';\nimport windingLine from './windingLine';\n\nconst CMD = PathProxy.CMD;\nconst PI2 = Math.PI * 2;\n\nconst EPSILON = 1e-4;\n\nfunction isAroundEqual(a: number, b: number) {\n return Math.abs(a - b) < EPSILON;\n}\n\n// \u4E34\u65F6\u6570\u7EC4\nconst roots = [-1, -1, -1];\nconst extrema = [-1, -1];\n\nfunction swapExtrema() {\n const tmp = extrema[0];\n extrema[0] = extrema[1];\n extrema[1] = tmp;\n}\n\nfunction windingCubic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n x: number, y: number\n): number {\n // Quick reject\n if (\n (y > y0 && y > y1 && y > y2 && y > y3)\n || (y < y0 && y < y1 && y < y2 && y < y3)\n ) {\n return 0;\n }\n const nRoots = curve.cubicRootAt(y0, y1, y2, y3, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n let w = 0;\n let nExtrema = -1;\n let y0_;\n let y1_;\n for (let i = 0; i < nRoots; i++) {\n let t = roots[i];\n\n // Avoid winding error when intersection point is the connect point of two line of polygon\n let unit = (t === 0 || t === 1) ? 0.5 : 1;\n\n let x_ = curve.cubicAt(x0, x1, x2, x3, t);\n if (x_ < x) { // Quick reject\n continue;\n }\n if (nExtrema < 0) {\n nExtrema = curve.cubicExtrema(y0, y1, y2, y3, extrema);\n if (extrema[1] < extrema[0] && nExtrema > 1) {\n swapExtrema();\n }\n y0_ = curve.cubicAt(y0, y1, y2, y3, extrema[0]);\n if (nExtrema > 1) {\n y1_ = curve.cubicAt(y0, y1, y2, y3, extrema[1]);\n }\n }\n if (nExtrema === 2) {\n // \u5206\u6210\u4E09\u6BB5\u5355\u8C03\u51FD\u6570\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else if (t < extrema[1]) {\n w += y1_ < y0_ ? unit : -unit;\n }\n else {\n w += y3 < y1_ ? unit : -unit;\n }\n }\n else {\n // \u5206\u6210\u4E24\u6BB5\u5355\u8C03\u51FD\u6570\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else {\n w += y3 < y0_ ? unit : -unit;\n }\n }\n }\n return w;\n }\n}\n\nfunction windingQuadratic(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number,\n x: number, y: number\n): number {\n // Quick reject\n if (\n (y > y0 && y > y1 && y > y2)\n || (y < y0 && y < y1 && y < y2)\n ) {\n return 0;\n }\n const nRoots = curve.quadraticRootAt(y0, y1, y2, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n const t = curve.quadraticExtremum(y0, y1, y2);\n if (t >= 0 && t <= 1) {\n let w = 0;\n let y_ = curve.quadraticAt(y0, y1, y2, t);\n for (let i = 0; i < nRoots; i++) {\n // Remove one endpoint.\n let unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1;\n\n let x_ = curve.quadraticAt(x0, x1, x2, roots[i]);\n if (x_ < x) { // Quick reject\n continue;\n }\n if (roots[i] < t) {\n w += y_ < y0 ? unit : -unit;\n }\n else {\n w += y2 < y_ ? unit : -unit;\n }\n }\n return w;\n }\n else {\n // Remove one endpoint.\n const unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1;\n\n const x_ = curve.quadraticAt(x0, x1, x2, roots[0]);\n if (x_ < x) { // Quick reject\n return 0;\n }\n return y2 < y0 ? unit : -unit;\n }\n }\n}\n// TODO\n// Arc \u65CB\u8F6C\n// startAngle, endAngle has been normalized by normalizeArcAngles\nfunction windingArc(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n x: number, y: number\n) {\n y -= cy;\n if (y > r || y < -r) {\n return 0;\n }\n const tmp = Math.sqrt(r * r - y * y);\n roots[0] = -tmp;\n roots[1] = tmp;\n\n const dTheta = Math.abs(startAngle - endAngle);\n if (dTheta < 1e-4) {\n return 0;\n }\n if (dTheta >= PI2 - 1e-4) {\n // Is a circle\n startAngle = 0;\n endAngle = PI2;\n const dir = anticlockwise ? 1 : -1;\n if (x >= roots[0] + cx && x <= roots[1] + cx) {\n return dir;\n }\n else {\n return 0;\n }\n }\n\n if (startAngle > endAngle) {\n // Swap, make sure startAngle is smaller than endAngle.\n const tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n // endAngle - startAngle is normalized to 0 - 2*PI.\n // So following will normalize them to 0 - 4*PI\n if (startAngle < 0) {\n startAngle += PI2;\n endAngle += PI2;\n }\n\n let w = 0;\n for (let i = 0; i < 2; i++) {\n const x_ = roots[i];\n if (x_ + cx > x) {\n let angle = Math.atan2(y, x_);\n let dir = anticlockwise ? 1 : -1;\n if (angle < 0) {\n angle = PI2 + angle;\n }\n if (\n (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)\n ) {\n if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {\n dir = -dir;\n }\n w += dir;\n }\n }\n }\n return w;\n}\n\n\nfunction containPath(\n path: PathProxy, lineWidth: number, isStroke: boolean, x: number, y: number\n): boolean {\n const data = path.data;\n const len = path.len();\n let w = 0;\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n let x1;\n let y1;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++];\n const isFirst = i === 1;\n // Begin a new subpath\n if (cmd === CMD.M && i > 1) {\n // Close previous subpath\n if (!isStroke) {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n // \u5982\u679C\u88AB\u4EFB\u4F55\u4E00\u4E2A subpath \u5305\u542B\n // if (w !== 0) {\n // return true;\n // }\n }\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n //\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n if (isStroke) {\n if (line.containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n // NOTE \u5728\u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A L, C, Q \u7684\u65F6\u5019\u4F1A\u8BA1\u7B97\u51FA NaN\n w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n if (isStroke) {\n if (cubic.containStroke(xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n w += windingCubic(\n xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n x, y\n ) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n if (isStroke) {\n if (quadratic.containStroke(xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n w += windingQuadratic(\n xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n x, y\n ) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const theta = data[i++];\n const dTheta = data[i++];\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n // \u4E0D\u662F\u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n if (!isFirst) {\n w += windingLine(xi, yi, x1, y1, x, y);\n }\n else {\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n }\n // zr \u4F7F\u7528scale\u6765\u6A21\u62DF\u692D\u5706, \u8FD9\u91CC\u4E5F\u5BF9x\u505A\u4E00\u5B9A\u7684\u7F29\u653E\n const _x = (x - cx) * ry / rx + cx;\n if (isStroke) {\n if (arc.containStroke(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n lineWidth, _x, y\n )) {\n return true;\n }\n }\n else {\n w += windingArc(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n _x, y\n );\n }\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n x1 = x0 + width;\n y1 = y0 + height;\n if (isStroke) {\n if (line.containStroke(x0, y0, x1, y0, lineWidth, x, y)\n || line.containStroke(x1, y0, x1, y1, lineWidth, x, y)\n || line.containStroke(x1, y1, x0, y1, lineWidth, x, y)\n || line.containStroke(x0, y1, x0, y0, lineWidth, x, y)\n ) {\n return true;\n }\n }\n else {\n // FIXME Clockwise ?\n w += windingLine(x1, y0, x1, y1, x, y);\n w += windingLine(x0, y1, x0, y0, x, y);\n }\n break;\n case CMD.Z:\n if (isStroke) {\n if (line.containStroke(\n xi, yi, x0, y0, lineWidth, x, y\n )) {\n return true;\n }\n }\n else {\n // Close a subpath\n w += windingLine(xi, yi, x0, y0, x, y);\n // \u5982\u679C\u88AB\u4EFB\u4F55\u4E00\u4E2A subpath \u5305\u542B\n // FIXME subpaths may overlap\n // if (w !== 0) {\n // return true;\n // }\n }\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (!isStroke && !isAroundEqual(yi, y0)) {\n w += windingLine(xi, yi, x0, y0, x, y) || 0;\n }\n return w !== 0;\n}\n\nexport function contain(pathProxy: PathProxy, x: number, y: number): boolean {\n return containPath(pathProxy, 0, false, x, y);\n}\n\nexport function containStroke(pathProxy: PathProxy, lineWidth: number, x: number, y: number): boolean {\n return containPath(pathProxy, lineWidth, true, x, y);\n}", "import Displayable, { DisplayableProps,\n CommonStyleProps,\n DEFAULT_COMMON_STYLE,\n DisplayableStatePropNames,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport Element, { ElementAnimateConfig } from '../Element';\nimport PathProxy from '../core/PathProxy';\nimport * as pathContain from '../contain/path';\nimport { PatternObject } from './Pattern';\nimport { Dictionary, PropType, MapToType } from '../core/types';\nimport BoundingRect from '../core/BoundingRect';\nimport { LinearGradientObject } from './LinearGradient';\nimport { RadialGradientObject } from './RadialGradient';\nimport { defaults, keys, extend, clone, isString, createObject } from '../core/util';\nimport Animator from '../animation/Animator';\nimport { lum } from '../tool/color';\nimport { DARK_LABEL_COLOR, LIGHT_LABEL_COLOR, DARK_MODE_THRESHOLD, LIGHTER_LABEL_COLOR } from '../config';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT, STYLE_CHANGED_BIT } from './constants';\n\n\nexport interface PathStyleProps extends CommonStyleProps {\n fill?: string | PatternObject | LinearGradientObject | RadialGradientObject\n stroke?: string | PatternObject | LinearGradientObject | RadialGradientObject\n decal?: PatternObject\n\n /**\n * Still experimental, not works weel on arc with edge cases(large angle).\n */\n strokePercent?: number\n strokeNoScale?: boolean\n fillOpacity?: number\n strokeOpacity?: number\n\n /**\n * `true` is not supported.\n * `false`/`null`/`undefined` are the same.\n * `false` is used to remove lineDash in some\n * case that `null`/`undefined` can not be set.\n * (e.g., emphasis.lineStyle in echarts)\n */\n lineDash?: false | number[] | 'solid' | 'dashed' | 'dotted'\n lineDashOffset?: number\n\n lineWidth?: number\n lineCap?: CanvasLineCap\n lineJoin?: CanvasLineJoin\n\n miterLimit?: number\n /**\n * Paint order, if do stroke first. Similar to SVG paint-order\n * https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/paint-order\n */\n strokeFirst?: boolean\n}\n\nexport const DEFAULT_PATH_STYLE: PathStyleProps = defaults({\n fill: '#000',\n stroke: null,\n strokePercent: 1,\n fillOpacity: 1,\n strokeOpacity: 1,\n\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n miterLimit: 10,\n\n strokeNoScale: false,\n strokeFirst: false\n} as PathStyleProps, DEFAULT_COMMON_STYLE);\n\n\nexport const DEFAULT_PATH_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n fill: true,\n stroke: true,\n strokePercent: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineDashOffset: true,\n lineWidth: true,\n miterLimit: true\n } as MapToType, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\nexport interface PathProps extends DisplayableProps {\n strokeContainThreshold?: number\n segmentIgnoreThreshold?: number\n subPixelOptimize?: boolean\n\n style?: PathStyleProps\n shape?: Dictionary\n\n autoBatch?: boolean\n\n __value?: (string | number)[] | (string | number)\n\n buildPath?: (\n ctx: PathProxy | CanvasRenderingContext2D,\n shapeCfg: Dictionary,\n inBatch?: boolean\n ) => void\n}\n\n\ntype PathKey = keyof PathProps\ntype PathPropertyType = PropType\n\ninterface Path {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n animate(key: 'shape', loop?: boolean): Animator\n\n getState(stateName: string): PathState\n ensureState(stateName: string): PathState\n\n states: Dictionary\n stateProxy: (stateName: string) => PathState\n}\n\nexport type PathStatePropNames = DisplayableStatePropNames | 'shape';\nexport type PathState = Pick & {\n hoverLayer?: boolean\n}\n\nconst pathCopyParams = [\n 'x', 'y', 'rotation', 'scaleX', 'scaleY', 'originX', 'originY', 'invisible',\n 'culling', 'z', 'z2', 'zlevel', 'parent'\n] as const;\n\nclass Path extends Displayable {\n\n path: PathProxy\n\n strokeContainThreshold: number\n\n // This item default to be false. But in map series in echarts,\n // in order to improve performance, it should be set to true,\n // so the shorty segment won't draw.\n segmentIgnoreThreshold: number\n\n subPixelOptimize: boolean\n\n style: PathStyleProps\n /**\n * If element can be batched automatically\n */\n autoBatch: boolean\n\n private _rectWithStroke: BoundingRect\n\n protected _normalState: PathState\n\n protected _decalEl: Path\n\n // Must have an initial value on shape.\n // It will be assigned by default value.\n shape: Dictionary\n\n constructor(opts?: Props) {\n super(opts);\n }\n\n update() {\n super.update();\n\n const style = this.style;\n if (style.decal) {\n const decalEl: Path = this._decalEl = this._decalEl || new Path();\n if (decalEl.buildPath === Path.prototype.buildPath) {\n decalEl.buildPath = ctx => {\n this.buildPath(ctx, this.shape);\n };\n }\n\n decalEl.silent = true;\n\n const decalElStyle = decalEl.style;\n\n for (let key in style) {\n if ((decalElStyle as any)[key] !== (style as any)[key]) {\n (decalElStyle as any)[key] = (style as any)[key];\n }\n }\n decalElStyle.fill = style.fill ? style.decal : null;\n decalElStyle.decal = null;\n decalElStyle.shadowColor = null;\n style.strokeFirst && (decalElStyle.stroke = null);\n\n for (let i = 0; i < pathCopyParams.length; ++i) {\n (decalEl as any)[pathCopyParams[i]] = this[pathCopyParams[i]];\n }\n\n decalEl.__dirty |= REDARAW_BIT;\n }\n else if (this._decalEl) {\n this._decalEl = null;\n }\n }\n\n getDecalElement() {\n return this._decalEl;\n }\n\n protected _init(props?: Props) {\n // Init default properties\n const keysArr = keys(props);\n\n this.shape = this.getDefaultShape();\n const defaultStyle = this.getDefaultStyle();\n if (defaultStyle) {\n this.useStyle(defaultStyle);\n }\n\n for (let i = 0; i < keysArr.length; i++) {\n const key = keysArr[i];\n const value = props[key];\n if (key === 'style') {\n if (!this.style) {\n // PENDING Reuse style object if possible?\n this.useStyle(value as Props['style']);\n }\n else {\n extend(this.style, value as Props['style']);\n }\n }\n else if (key === 'shape') {\n // this.shape = value;\n extend(this.shape, value as Props['shape']);\n }\n else {\n super.attrKV(key as any, value);\n }\n }\n\n // Create an empty one if no style object exists.\n if (!this.style) {\n this.useStyle({});\n }\n // const defaultShape = this.getDefaultShape();\n // if (!this.shape) {\n // this.shape = defaultShape;\n // }\n // else {\n // defaults(this.shape, defaultShape);\n // }\n }\n\n protected getDefaultStyle(): Props['style'] {\n return null;\n }\n\n // Needs to override\n protected getDefaultShape() {\n return {};\n }\n\n protected canBeInsideText() {\n return this.hasFill();\n }\n\n protected getInsideTextFill() {\n const pathFill = this.style.fill;\n if (pathFill !== 'none') {\n if (isString(pathFill)) {\n const fillLum = lum(pathFill, 0);\n // Determin text color based on the lum of path fill.\n // TODO use (1 - DARK_MODE_THRESHOLD)?\n if (fillLum > 0.5) { // TODO Consider background lum?\n return DARK_LABEL_COLOR;\n }\n else if (fillLum > 0.2) {\n return LIGHTER_LABEL_COLOR;\n }\n return LIGHT_LABEL_COLOR;\n }\n else if (pathFill) {\n return LIGHT_LABEL_COLOR;\n }\n\n }\n return DARK_LABEL_COLOR;\n }\n\n protected getInsideTextStroke(textFill?: string) {\n const pathFill = this.style.fill;\n // Not stroke on none fill object or gradient object\n if (isString(pathFill)) {\n const zr = this.__zr;\n const isDarkMode = !!(zr && zr.isDarkMode());\n const isDarkLabel = lum(textFill, 0) < DARK_MODE_THRESHOLD;\n // All dark or all light.\n if (isDarkMode === isDarkLabel) {\n return pathFill;\n }\n }\n }\n\n // When bundling path, some shape may decide if use moveTo to begin a new subpath or closePath\n // Like in circle\n buildPath(\n ctx: PathProxy | CanvasRenderingContext2D,\n shapeCfg: Dictionary,\n inBatch?: boolean\n ) {}\n\n pathUpdated() {\n this.__dirty &= ~SHAPE_CHANGED_BIT;\n }\n\n getUpdatedPathProxy(inBatch?: boolean) {\n // Update path proxy data to latest.\n !this.path && this.createPathProxy();\n this.path.beginPath();\n this.buildPath(this.path, this.shape, inBatch);\n return this.path;\n }\n\n createPathProxy() {\n this.path = new PathProxy(false);\n }\n\n hasStroke() {\n const style = this.style;\n const stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n }\n\n hasFill() {\n const style = this.style;\n const fill = style.fill;\n return fill != null && fill !== 'none';\n }\n\n getBoundingRect(): BoundingRect {\n let rect = this._rect;\n const style = this.style;\n const needsUpdateRect = !rect;\n if (needsUpdateRect) {\n let firstInvoke = false;\n if (!this.path) {\n firstInvoke = true;\n // Create path on demand.\n this.createPathProxy();\n }\n let path = this.path;\n if (firstInvoke || (this.__dirty & SHAPE_CHANGED_BIT)) {\n path.beginPath();\n this.buildPath(path, this.shape, false);\n this.pathUpdated();\n }\n rect = path.getBoundingRect();\n }\n this._rect = rect;\n\n if (this.hasStroke() && this.path && this.path.len() > 0) {\n // Needs update rect with stroke lineWidth when\n // 1. Element changes scale or lineWidth\n // 2. Shape is changed\n const rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone());\n if (this.__dirty || needsUpdateRect) {\n rectWithStroke.copy(rect);\n // PENDING, Min line width is needed when line is horizontal or vertical\n const lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n // FIXME Must after updateTransform\n let w = style.lineWidth;\n\n // Only add extra hover lineWidth when there are no fill\n if (!this.hasFill()) {\n const strokeContainThreshold = this.strokeContainThreshold;\n w = Math.max(w, strokeContainThreshold == null ? 4 : strokeContainThreshold);\n }\n // Consider line width\n // Line scale can't be 0;\n if (lineScale > 1e-10) {\n rectWithStroke.width += w / lineScale;\n rectWithStroke.height += w / lineScale;\n rectWithStroke.x -= w / lineScale / 2;\n rectWithStroke.y -= w / lineScale / 2;\n }\n }\n\n // Return rect with stroke\n return rectWithStroke;\n }\n\n return rect;\n }\n\n contain(x: number, y: number): boolean {\n const localPos = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n const style = this.style;\n x = localPos[0];\n y = localPos[1];\n\n if (rect.contain(x, y)) {\n const pathProxy = this.path;\n if (this.hasStroke()) {\n let lineWidth = style.lineWidth;\n let lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n // Line scale can't be 0;\n if (lineScale > 1e-10) {\n // Only add extra hover lineWidth when there are no fill\n if (!this.hasFill()) {\n lineWidth = Math.max(lineWidth, this.strokeContainThreshold);\n }\n if (pathContain.containStroke(\n pathProxy, lineWidth / lineScale, x, y\n )) {\n return true;\n }\n }\n }\n if (this.hasFill()) {\n return pathContain.contain(pathProxy, x, y);\n }\n }\n return false;\n }\n\n /**\n * Shape changed\n */\n dirtyShape() {\n this.__dirty |= SHAPE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n if (this._decalEl) {\n this._decalEl.dirtyShape();\n }\n this.markRedraw();\n }\n\n dirty() {\n this.dirtyStyle();\n this.dirtyShape();\n }\n\n /**\n * Alias for animate('shape')\n * @param {boolean} loop\n */\n animateShape(loop: boolean) {\n return this.animate('shape', loop);\n }\n\n // Override updateDuringAnimation\n updateDuringAnimation(targetKey: string) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else if (targetKey === 'shape') {\n this.dirtyShape();\n }\n else {\n this.markRedraw();\n }\n }\n\n // Overwrite attrKV\n attrKV(key: PathKey, value: PathPropertyType) {\n // FIXME\n if (key === 'shape') {\n this.setShape(value as Props['shape']);\n }\n else {\n super.attrKV(key as keyof DisplayableProps, value);\n }\n }\n\n setShape(obj: Props['shape']): this\n setShape(obj: T, value: Props['shape'][T]): this\n setShape(keyOrObj: keyof Props['shape'] | Props['shape'], value?: unknown): this {\n let shape = this.shape;\n if (!shape) {\n shape = this.shape = {};\n }\n // Path from string may not have shape\n if (typeof keyOrObj === 'string') {\n shape[keyOrObj] = value;\n }\n else {\n extend(shape, keyOrObj as Props['shape']);\n }\n this.dirtyShape();\n\n return this;\n }\n\n /**\n * If shape changed. used with dirtyShape\n */\n shapeChanged() {\n return !!(this.__dirty & SHAPE_CHANGED_BIT);\n }\n\n /**\n * Create a path style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: Props['style']) {\n return createObject(DEFAULT_PATH_STYLE, obj);\n }\n\n protected _innerSaveToNormal(toState: PathState) {\n super._innerSaveToNormal(toState);\n\n const normalState = this._normalState;\n // Clone a new one. DON'T share object reference between states and current using.\n // TODO: Clone array in shape?.\n // TODO: Only save changed shape.\n if (toState.shape && !normalState.shape) {\n normalState.shape = extend({}, this.shape);\n }\n }\n\n protected _applyStateObj(\n stateName: string,\n state: PathState,\n normalState: PathState,\n keepCurrentStates: boolean,\n transition: boolean,\n animationCfg: ElementAnimateConfig\n ) {\n super._applyStateObj(stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n const needsRestoreToNormal = !(state && keepCurrentStates);\n let targetShape: Props['shape'];\n if (state && state.shape) {\n // Only animate changed properties.\n if (transition) {\n if (keepCurrentStates) {\n targetShape = state.shape;\n }\n else {\n // Inherits from normal state.\n targetShape = extend({}, normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else {\n // Because the shape will be replaced. So inherits from current shape.\n targetShape = extend({}, keepCurrentStates ? this.shape : normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else if (needsRestoreToNormal) {\n targetShape = normalState.shape;\n }\n\n if (targetShape) {\n if (transition) {\n // Clone a new shape.\n this.shape = extend({}, this.shape);\n // Only supports transition on primary props. Because shape is not deep cloned.\n const targetShapePrimaryProps: Props['shape'] = {};\n const shapeKeys = keys(targetShape);\n for (let i = 0; i < shapeKeys.length; i++) {\n const key = shapeKeys[i];\n if (typeof targetShape[key] === 'object') {\n (this.shape as Props['shape'])[key] = targetShape[key];\n }\n else {\n targetShapePrimaryProps[key] = targetShape[key];\n }\n }\n this._transitionState(stateName, {\n shape: targetShapePrimaryProps\n } as Props, animationCfg);\n }\n else {\n this.shape = targetShape;\n this.dirtyShape();\n }\n }\n }\n\n protected _mergeStates(states: PathState[]) {\n const mergedState = super._mergeStates(states) as PathState;\n let mergedShape: Props['shape'];\n for (let i = 0; i < states.length; i++) {\n const state = states[i];\n if (state.shape) {\n mergedShape = mergedShape || {};\n this._mergeStyle(mergedShape, state.shape);\n }\n }\n if (mergedShape) {\n mergedState.shape = mergedShape;\n }\n return mergedState;\n }\n\n getAnimationStyleProps() {\n return DEFAULT_PATH_ANIMATION_PROPS;\n }\n /**\n * If path shape is zero area\n */\n isZeroArea(): boolean {\n return false;\n }\n /**\n * \u6269\u5C55\u4E00\u4E2A Path element, \u6BD4\u5982\u661F\u5F62\uFF0C\u5706\u7B49\u3002\n * Extend a path element\n * @DEPRECATED Use class extends\n * @param props\n * @param props.type Path type\n * @param props.init Initialize\n * @param props.buildPath Overwrite buildPath method\n * @param props.style Extended default style config\n * @param props.shape Extended default shape config\n */\n static extend>(defaultProps: {\n type?: string\n shape?: Shape\n style?: PathStyleProps\n beforeBrush?: Displayable['beforeBrush']\n afterBrush?: Displayable['afterBrush']\n getBoundingRect?: Displayable['getBoundingRect']\n\n calculateTextPosition?: Element['calculateTextPosition']\n buildPath(this: Path, ctx: CanvasRenderingContext2D | PathProxy, shape: Shape, inBatch?: boolean): void\n init?(this: Path, opts: PathProps): void // TODO Should be SubPathOption\n }): {\n new(opts?: PathProps & {shape: Shape}): Path\n } {\n interface SubPathOption extends PathProps {\n shape: Shape\n }\n\n class Sub extends Path {\n\n shape: Shape\n\n getDefaultStyle() {\n return clone(defaultProps.style);\n }\n\n getDefaultShape() {\n return clone(defaultProps.shape);\n }\n\n constructor(opts?: SubPathOption) {\n super(opts);\n defaultProps.init && defaultProps.init.call(this as any, opts);\n }\n }\n\n // TODO Legacy usage. Extend functions\n for (let key in defaultProps) {\n if (typeof (defaultProps as any)[key] === 'function') {\n (Sub.prototype as any)[key] = (defaultProps as any)[key];\n }\n }\n // Sub.prototype.buildPath = defaultProps.buildPath;\n // Sub.prototype.beforeBrush = defaultProps.beforeBrush;\n // Sub.prototype.afterBrush = defaultProps.afterBrush;\n\n return Sub as any;\n }\n\n protected static initDefaultProps = (function () {\n const pathProto = Path.prototype;\n pathProto.type = 'path';\n pathProto.strokeContainThreshold = 5;\n pathProto.segmentIgnoreThreshold = 0;\n pathProto.subPixelOptimize = false;\n pathProto.autoBatch = false;\n pathProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT | SHAPE_CHANGED_BIT;\n })()\n}\n\nexport default Path;", "import Displayable, { DisplayableProps, DisplayableStatePropNames } from './Displayable';\nimport { getBoundingRect, DEFAULT_FONT } from '../contain/text';\nimport BoundingRect from '../core/BoundingRect';\nimport { PathStyleProps, DEFAULT_PATH_STYLE } from './Path';\nimport { createObject, defaults } from '../core/util';\nimport { TextAlign, TextVerticalAlign } from '../core/types';\n\nexport interface TSpanStyleProps extends PathStyleProps {\n\n x?: number\n y?: number\n\n // TODO Text is assigned inside zrender\n text?: string\n\n font?: string\n\n textAlign?: CanvasTextAlign\n\n textBaseline?: CanvasTextBaseline\n}\n\nexport const DEFAULT_TSPAN_STYLE: TSpanStyleProps = defaults({\n strokeFirst: true,\n font: DEFAULT_FONT,\n x: 0,\n y: 0,\n textAlign: 'left',\n textBaseline: 'top',\n miterLimit: 2\n} as TSpanStyleProps, DEFAULT_PATH_STYLE);\n\n\nexport interface TSpanProps extends DisplayableProps {\n style?: TSpanStyleProps\n}\n\nexport type TSpanState = Pick\n\nclass TSpan extends Displayable {\n\n style: TSpanStyleProps\n\n hasStroke() {\n const style = this.style;\n const stroke = style.stroke;\n return stroke != null && stroke !== 'none' && style.lineWidth > 0;\n }\n\n hasFill() {\n const style = this.style;\n const fill = style.fill;\n return fill != null && fill !== 'none';\n }\n\n /**\n * Create an image style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: TSpanStyleProps) {\n return createObject(DEFAULT_TSPAN_STYLE, obj);\n }\n\n /**\n * Set bounding rect calculated from Text\n * For reducing time of calculating bounding rect.\n */\n setBoundingRect(rect: BoundingRect) {\n this._rect = rect;\n }\n\n getBoundingRect(): BoundingRect {\n const style = this.style;\n\n if (!this._rect) {\n let text = style.text;\n text != null ? (text += '') : (text = '');\n\n const rect = getBoundingRect(\n text,\n style.font,\n style.textAlign as TextAlign,\n style.textBaseline as TextVerticalAlign\n );\n\n rect.x += style.x || 0;\n rect.y += style.y || 0;\n\n if (this.hasStroke()) {\n const w = style.lineWidth;\n rect.x -= w / 2;\n rect.y -= w / 2;\n rect.width += w;\n rect.height += w;\n }\n\n this._rect = rect;\n }\n\n return this._rect;\n }\n\n protected static initDefaultProps = (function () {\n const tspanProto = TSpan.prototype;\n // TODO Calculate tolerance smarter\n tspanProto.dirtyRectTolerance = 10;\n })()\n}\n\nTSpan.prototype.type = 'tspan';\n\nexport default TSpan;", "import Displayable, { DisplayableProps,\n CommonStyleProps,\n DEFAULT_COMMON_STYLE,\n DisplayableStatePropNames,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { ImageLike, MapToType } from '../core/types';\nimport { defaults, createObject } from '../core/util';\nimport { ElementCommonState } from '../Element';\n\nexport interface ImageStyleProps extends CommonStyleProps {\n image?: string | ImageLike\n x?: number\n y?: number\n width?: number\n height?: number\n sx?: number\n sy?: number\n sWidth?: number\n sHeight?: number\n}\n\nexport const DEFAULT_IMAGE_STYLE: CommonStyleProps = defaults({\n x: 0,\n y: 0\n}, DEFAULT_COMMON_STYLE);\n\nexport const DEFAULT_IMAGE_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n x: true,\n y: true,\n width: true,\n height: true,\n sx: true,\n sy: true,\n sWidth: true,\n sHeight: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\nexport interface ImageProps extends DisplayableProps {\n style?: ImageStyleProps\n\n onload?: (image: ImageLike) => void\n}\n\nexport type ImageState = Pick & ElementCommonState\n\nfunction isImageLike(source: unknown): source is HTMLImageElement {\n return !!(source\n && typeof source !== 'string'\n // Image source is an image, canvas, video.\n && (source as HTMLImageElement).width && (source as HTMLImageElement).height);\n}\n\nclass ZRImage extends Displayable {\n\n style: ImageStyleProps\n\n // FOR CANVAS RENDERER\n __image: ImageLike\n // FOR SVG RENDERER\n __imageSrc: string\n\n onload: (image: ImageLike) => void\n\n /**\n * Create an image style object with default values in it's prototype.\n * @override\n */\n createStyle(obj?: ImageStyleProps) {\n return createObject(DEFAULT_IMAGE_STYLE, obj);\n }\n\n private _getSize(dim: 'width' | 'height') {\n const style = this.style;\n\n let size = style[dim];\n if (size != null) {\n return size;\n }\n\n const imageSource = isImageLike(style.image)\n ? style.image : this.__image;\n\n if (!imageSource) {\n return 0;\n }\n\n const otherDim = dim === 'width' ? 'height' : 'width';\n let otherDimSize = style[otherDim];\n if (otherDimSize == null) {\n return imageSource[dim];\n }\n else {\n return imageSource[dim] / imageSource[otherDim] * otherDimSize;\n }\n }\n\n getWidth(): number {\n return this._getSize('width');\n }\n\n getHeight(): number {\n return this._getSize('height');\n }\n\n getAnimationStyleProps() {\n return DEFAULT_IMAGE_ANIMATION_PROPS;\n }\n\n getBoundingRect(): BoundingRect {\n const style = this.style;\n if (!this._rect) {\n this._rect = new BoundingRect(\n style.x || 0, style.y || 0, this.getWidth(), this.getHeight()\n );\n }\n return this._rect;\n }\n}\n\nZRImage.prototype.type = 'image';\n\nexport default ZRImage;", "import PathProxy from '../../core/PathProxy';\n\nexport function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n x: number\n y: number\n width: number\n height: number\n r?: number | number[]\n}) {\n let x = shape.x;\n let y = shape.y;\n let width = shape.width;\n let height = shape.height;\n let r = shape.r;\n let r1;\n let r2;\n let r3;\n let r4;\n\n // Convert width and height to positive for better borderRadius\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n\n if (typeof r === 'number') {\n r1 = r2 = r3 = r4 = r;\n }\n else if (r instanceof Array) {\n if (r.length === 1) {\n r1 = r2 = r3 = r4 = r[0];\n }\n else if (r.length === 2) {\n r1 = r3 = r[0];\n r2 = r4 = r[1];\n }\n else if (r.length === 3) {\n r1 = r[0];\n r2 = r4 = r[1];\n r3 = r[2];\n }\n else {\n r1 = r[0];\n r2 = r[1];\n r3 = r[2];\n r4 = r[3];\n }\n }\n else {\n r1 = r2 = r3 = r4 = 0;\n }\n\n let total;\n if (r1 + r2 > width) {\n total = r1 + r2;\n r1 *= width / total;\n r2 *= width / total;\n }\n if (r3 + r4 > width) {\n total = r3 + r4;\n r3 *= width / total;\n r4 *= width / total;\n }\n if (r2 + r3 > height) {\n total = r2 + r3;\n r2 *= height / total;\n r3 *= height / total;\n }\n if (r1 + r4 > height) {\n total = r1 + r4;\n r1 *= height / total;\n r4 *= height / total;\n }\n ctx.moveTo(x + r1, y);\n ctx.lineTo(x + width - r2, y);\n r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0);\n ctx.lineTo(x + width, y + height - r3);\n r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2);\n ctx.lineTo(x + r4, y + height);\n r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);\n ctx.lineTo(x, y + r1);\n r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);\n}\n", "import { PathStyleProps } from '../Path';\n\n/**\n * Sub-pixel optimize for canvas rendering, prevent from blur\n * when rendering a thin vertical/horizontal line.\n */\n\nconst round = Math.round;\n\ntype LineShape = {\n x1: number\n y1: number\n x2: number\n y2: number\n}\n\ntype RectShape = {\n x: number\n y: number\n width: number\n height: number\n r?: number | number[]\n}\n/**\n * Sub pixel optimize line for canvas\n *\n * @param outputShape The modification will be performed on `outputShape`.\n * `outputShape` and `inputShape` can be the same object.\n * `outputShape` object can be used repeatly, because all of\n * the `x1`, `x2`, `y1`, `y2` will be assigned in this method.\n */\nexport function subPixelOptimizeLine(\n outputShape: Partial,\n inputShape: LineShape,\n style: Pick // DO not optimize when lineWidth is 0\n): LineShape {\n if (!inputShape) {\n return;\n }\n\n const x1 = inputShape.x1;\n const x2 = inputShape.x2;\n const y1 = inputShape.y1;\n const y2 = inputShape.y2;\n\n outputShape.x1 = x1;\n outputShape.x2 = x2;\n outputShape.y1 = y1;\n outputShape.y2 = y2;\n\n const lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape as LineShape;\n }\n\n if (round(x1 * 2) === round(x2 * 2)) {\n outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);\n }\n if (round(y1 * 2) === round(y2 * 2)) {\n outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);\n }\n\n return outputShape as LineShape;\n}\n\n/**\n * Sub pixel optimize rect for canvas\n *\n * @param outputShape The modification will be performed on `outputShape`.\n * `outputShape` and `inputShape` can be the same object.\n * `outputShape` object can be used repeatly, because all of\n * the `x`, `y`, `width`, `height` will be assigned in this method.\n */\nexport function subPixelOptimizeRect(\n outputShape: Partial,\n inputShape: RectShape,\n style: Pick // DO not optimize when lineWidth is 0\n): RectShape {\n if (!inputShape) {\n return;\n }\n\n const originX = inputShape.x;\n const originY = inputShape.y;\n const originWidth = inputShape.width;\n const originHeight = inputShape.height;\n\n outputShape.x = originX;\n outputShape.y = originY;\n outputShape.width = originWidth;\n outputShape.height = originHeight;\n\n const lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape as RectShape;\n }\n\n outputShape.x = subPixelOptimize(originX, lineWidth, true);\n outputShape.y = subPixelOptimize(originY, lineWidth, true);\n outputShape.width = Math.max(\n subPixelOptimize(originX + originWidth, lineWidth, false) - outputShape.x,\n originWidth === 0 ? 0 : 1\n );\n outputShape.height = Math.max(\n subPixelOptimize(originY + originHeight, lineWidth, false) - outputShape.y,\n originHeight === 0 ? 0 : 1\n );\n\n return outputShape as RectShape;\n}\n\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth If `null`/`undefined`/`0`, do not optimize.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\nexport function subPixelOptimize(\n position: number,\n lineWidth?: number,\n positiveOrNegative?: boolean\n) {\n if (!lineWidth) {\n return position;\n }\n // Assure that (position + lineWidth / 2) is near integer edge,\n // otherwise line will be fuzzy in canvas.\n const doubledPosition = round(position * 2);\n return (doubledPosition + round(lineWidth)) % 2 === 0\n ? doubledPosition / 2\n : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;\n}\n", "/**\n * \u77E9\u5F62\n * @module zrender/graphic/shape/Rect\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as roundRectHelper from '../helper/roundRect';\nimport {subPixelOptimizeRect} from '../helper/subPixelOptimize';\n\nexport class RectShape {\n // \u5DE6\u4E0A\u3001\u53F3\u4E0A\u3001\u53F3\u4E0B\u3001\u5DE6\u4E0B\u89D2\u7684\u534A\u5F84\u4F9D\u6B21\u4E3Ar1\u3001r2\u3001r3\u3001r4\n // r\u7F29\u5199\u4E3A1 \u76F8\u5F53\u4E8E [1, 1, 1, 1]\n // r\u7F29\u5199\u4E3A[1] \u76F8\u5F53\u4E8E [1, 1, 1, 1]\n // r\u7F29\u5199\u4E3A[1, 2] \u76F8\u5F53\u4E8E [1, 2, 1, 2]\n // r\u7F29\u5199\u4E3A[1, 2, 3] \u76F8\u5F53\u4E8E [1, 2, 3, 2]\n r?: number | number[]\n\n x = 0\n y = 0\n width = 0\n height = 0\n}\n\nexport interface RectProps extends PathProps {\n shape?: Partial\n}\n// Avoid create repeatly.\nconst subPixelOptimizeOutputShape = {};\n\nclass Rect extends Path {\n\n shape: RectShape\n\n constructor(opts?: RectProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new RectShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: RectShape) {\n let x: number;\n let y: number;\n let width: number;\n let height: number;\n\n if (this.subPixelOptimize) {\n const optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);\n x = optimizedShape.x;\n y = optimizedShape.y;\n width = optimizedShape.width;\n height = optimizedShape.height;\n optimizedShape.r = shape.r;\n shape = optimizedShape;\n }\n else {\n x = shape.x;\n y = shape.y;\n width = shape.width;\n height = shape.height;\n }\n\n if (!shape.r) {\n ctx.rect(x, y, width, height);\n }\n else {\n roundRectHelper.buildPath(ctx, shape);\n }\n }\n\n isZeroArea() {\n return !this.shape.width || !this.shape.height;\n }\n}\n\nRect.prototype.type = 'rect';\n\nexport default Rect;", "/**\n * RichText is a container that manages complex text label.\n * It will parse text string and create sub displayble elements respectively.\n */\nimport { TextAlign, TextVerticalAlign, ImageLike, Dictionary, MapToType } from '../core/types';\nimport { parseRichText, parsePlainText } from './helper/parseText';\nimport TSpan, { TSpanStyleProps } from './TSpan';\nimport { retrieve2, each, normalizeCssArray, trim, retrieve3, extend, keys, defaults } from '../core/util';\nimport { DEFAULT_FONT, adjustTextX, adjustTextY } from '../contain/text';\nimport ZRImage from './Image';\nimport Rect from './shape/Rect';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Displayable, {\n DisplayableStatePropNames,\n DisplayableProps,\n DEFAULT_COMMON_ANIMATION_PROPS\n} from './Displayable';\nimport { ZRenderType } from '../zrender';\nimport Animator from '../animation/Animator';\nimport Transformable from '../core/Transformable';\nimport { ElementCommonState } from '../Element';\nimport { GroupLike } from './Group';\n\ntype TextContentBlock = ReturnType\ntype TextLine = TextContentBlock['lines'][0]\ntype TextToken = TextLine['tokens'][0]\n\n// TODO Default value?\nexport interface TextStylePropsPart {\n // TODO Text is assigned inside zrender\n text?: string\n\n fill?: string\n stroke?: string\n\n opacity?: number\n fillOpacity?: number\n strokeOpacity?: number\n /**\n * textStroke may be set as some color as a default\n * value in upper applicaion, where the default value\n * of lineWidth should be 0 to make sure that\n * user can choose to do not use text stroke.\n */\n lineWidth?: number\n lineDash?: false | number[]\n lineDashOffset?: number\n borderDash?: false | number[]\n borderDashOffset?: number\n\n /**\n * If `fontSize` or `fontFamily` exists, `font` will be reset by\n * `fontSize`, `fontStyle`, `fontWeight`, `fontFamily`.\n * So do not visit it directly in upper application (like echarts),\n * but use `contain/text#makeFont` instead.\n */\n font?: string\n /**\n * The same as font. Use font please.\n * @deprecated\n */\n textFont?: string\n\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontStyle?: 'normal' | 'italic' | 'oblique'\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n */\n fontFamily?: string\n /**\n * It helps merging respectively, rather than parsing an entire font string.\n * Should be 12 but not '12px'.\n */\n fontSize?: number | string\n\n align?: TextAlign\n verticalAlign?: TextVerticalAlign\n\n /**\n * Line height. Default to be text height of '\u56FD'\n */\n lineHeight?: number\n /**\n * Width of text block. Not include padding\n * Used for background, truncate, wrap\n */\n width?: number | string\n /**\n * Height of text block. Not include padding\n * Used for background, truncate\n */\n height?: number\n /**\n * Reserved for special functinality, like 'hr'.\n */\n tag?: string\n\n textShadowColor?: string\n textShadowBlur?: number\n textShadowOffsetX?: number\n textShadowOffsetY?: number\n\n // Shadow, background, border of text box.\n backgroundColor?: string | {\n image: ImageLike | string\n }\n\n /**\n * Can be `2` or `[2, 4]` or `[2, 3, 4, 5]`\n */\n padding?: number | number[]\n /**\n * Margin of label. Used when layouting the label.\n */\n margin?: number\n\n borderColor?: string\n borderWidth?: number\n borderRadius?: number | number[]\n\n /**\n * Shadow color for background box.\n */\n shadowColor?: string\n /**\n * Shadow blur for background box.\n */\n shadowBlur?: number\n /**\n * Shadow offset x for background box.\n */\n shadowOffsetX?: number\n /**\n * Shadow offset y for background box.\n */\n shadowOffsetY?: number\n}\nexport interface TextStyleProps extends TextStylePropsPart {\n\n text?: string\n\n x?: number\n y?: number\n\n /**\n * Only support number in the top block.\n */\n width?: number\n /**\n * Text styles for rich text.\n */\n rich?: Dictionary\n\n /**\n * Strategy when calculated text width exceeds textWidth.\n * break: break by word\n * break: will break inside the word\n * truncate: truncate the text and show ellipsis\n * Do nothing if not set\n */\n overflow?: 'break' | 'breakAll' | 'truncate' | 'none'\n\n /**\n * Strategy when text lines exceeds textHeight.\n * Do nothing if not set\n */\n lineOverflow?: 'truncate'\n\n /**\n * Epllipsis used if text is truncated\n */\n ellipsis?: string\n /**\n * Placeholder used if text is truncated to empty\n */\n placeholder?: string\n /**\n * Min characters for truncating\n */\n truncateMinChar?: number\n}\n\nexport interface TextProps extends DisplayableProps {\n style?: TextStyleProps\n\n zlevel?: number\n z?: number\n z2?: number\n\n culling?: boolean\n cursor?: string\n}\n\nexport type TextState = Pick & ElementCommonState\n\nexport type DefaultTextStyle = Pick & {\n autoStroke?: boolean\n};\n\nconst DEFAULT_RICH_TEXT_COLOR = {\n fill: '#000'\n};\nconst DEFAULT_STROKE_LINE_WIDTH = 2;\n\n// const DEFAULT_TEXT_STYLE: TextStyleProps = {\n// x: 0,\n// y: 0,\n// fill: '#000',\n// stroke: null,\n// opacity: 0,\n// fillOpacity:\n// }\n\nexport const DEFAULT_TEXT_ANIMATION_PROPS: MapToType = {\n style: defaults, MapToType>({\n fill: true,\n stroke: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineWidth: true,\n fontSize: true,\n lineHeight: true,\n width: true,\n height: true,\n textShadowColor: true,\n textShadowBlur: true,\n textShadowOffsetX: true,\n textShadowOffsetY: true,\n backgroundColor: true,\n padding: true, // TODO needs normalize padding before animate\n borderColor: true,\n borderWidth: true,\n borderRadius: true // TODO needs normalize radius before animate\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n };\n\n\ninterface ZRText {\n animate(key?: '', loop?: boolean): Animator\n animate(key: 'style', loop?: boolean): Animator\n\n getState(stateName: string): TextState\n ensureState(stateName: string): TextState\n\n states: Dictionary\n stateProxy: (stateName: string) => TextState\n}\n\nclass ZRText extends Displayable implements GroupLike {\n\n type = 'text'\n\n style: TextStyleProps\n\n /**\n * How to handling label overlap\n *\n * hidden:\n */\n overlap: 'hidden' | 'show' | 'blur'\n\n /**\n * Will use this to calculate transform matrix\n * instead of Element itseelf if it's give.\n * Not exposed to developers\n */\n innerTransformable: Transformable\n\n private _children: (ZRImage | Rect | TSpan)[] = []\n\n private _childCursor: 0\n\n private _defaultStyle: DefaultTextStyle = DEFAULT_RICH_TEXT_COLOR\n\n constructor(opts?: TextProps) {\n super();\n this.attr(opts);\n }\n\n childrenRef() {\n return this._children;\n }\n\n update() {\n\n super.update();\n\n // Update children\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n\n for (let i = 0; i < this._children.length; i++) {\n const child = this._children[i];\n // Set common properties.\n child.zlevel = this.zlevel;\n child.z = this.z;\n child.z2 = this.z2;\n child.culling = this.culling;\n child.cursor = this.cursor;\n child.invisible = this.invisible;\n }\n }\n\n updateTransform() {\n const innerTransformable = this.innerTransformable;\n if (innerTransformable) {\n innerTransformable.updateTransform();\n if (innerTransformable.transform) {\n this.transform = innerTransformable.transform;\n }\n }\n else {\n super.updateTransform();\n }\n }\n\n getLocalTransform(m?: MatrixArray): MatrixArray {\n const innerTransformable = this.innerTransformable;\n return innerTransformable\n ? innerTransformable.getLocalTransform(m)\n : super.getLocalTransform(m);\n }\n\n // TODO override setLocalTransform?\n getComputedTransform() {\n if (this.__hostTarget) {\n // Update host target transform\n this.__hostTarget.getComputedTransform();\n // Update text position.\n this.__hostTarget.updateInnerText(true);\n }\n\n return super.getComputedTransform();\n }\n\n private _updateSubTexts() {\n // Reset child visit cursor\n this._childCursor = 0;\n\n normalizeTextStyle(this.style);\n this.style.rich\n ? this._updateRichTexts()\n : this._updatePlainTexts();\n\n this._children.length = this._childCursor;\n\n this.styleUpdated();\n }\n\n addSelfToZr(zr: ZRenderType) {\n super.addSelfToZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n // Also need mount __zr for case like hover detection.\n // The case: hover on a label (position: 'top') causes host el\n // scaled and label Y position lifts a bit so that out of the\n // pointer, then mouse move should be able to trigger \"mouseout\".\n this._children[i].__zr = zr;\n }\n }\n\n removeSelfFromZr(zr: ZRenderType) {\n super.removeSelfFromZr(zr);\n for (let i = 0; i < this._children.length; i++) {\n this._children[i].__zr = null;\n }\n }\n\n getBoundingRect(): BoundingRect {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n if (!this._rect) {\n // TODO: Optimize when using width and overflow: wrap/truncate\n const tmpRect = new BoundingRect(0, 0, 0, 0);\n const children = this._children;\n const tmpMat: MatrixArray = [];\n let rect = null;\n\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n const childRect = child.getBoundingRect();\n const transform = child.getLocalTransform(tmpMat);\n\n if (transform) {\n tmpRect.copy(childRect);\n tmpRect.applyTransform(transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n this._rect = rect || tmpRect;\n }\n return this._rect;\n }\n\n // Can be set in Element. To calculate text fill automatically when textContent is inside element\n setDefaultTextStyle(defaultTextStyle: DefaultTextStyle) {\n // Use builtin if defaultTextStyle is not given.\n this._defaultStyle = defaultTextStyle || DEFAULT_RICH_TEXT_COLOR;\n }\n\n setTextContent(textContent: never) {\n throw new Error('Can\\'t attach text on another text');\n }\n\n // getDefaultStyleValue(key: T): TextStyleProps[T] {\n // // Default value is on the prototype.\n // return this.style.prototype[key];\n // }\n\n protected _mergeStyle(targetStyle: TextStyleProps, sourceStyle: TextStyleProps) {\n if (!sourceStyle) {\n return targetStyle;\n }\n\n // DO deep merge on rich configurations.\n const sourceRich = sourceStyle.rich;\n const targetRich = targetStyle.rich || (sourceRich && {}); // Create a new one if source have rich but target don't\n\n extend(targetStyle, sourceStyle);\n\n if (sourceRich && targetRich) {\n // merge rich and assign rich again.\n this._mergeRich(targetRich, sourceRich);\n targetStyle.rich = targetRich;\n }\n else if (targetRich) {\n // If source rich not exists. DON'T override the target rich\n targetStyle.rich = targetRich;\n }\n\n return targetStyle;\n }\n\n private _mergeRich(targetRich: TextStyleProps['rich'], sourceRich: TextStyleProps['rich']) {\n const richNames = keys(sourceRich);\n // Merge by rich names.\n for (let i = 0; i < richNames.length; i++) {\n const richName = richNames[i];\n targetRich[richName] = targetRich[richName] || {};\n extend(targetRich[richName], sourceRich[richName]);\n }\n }\n\n getAnimationStyleProps() {\n return DEFAULT_TEXT_ANIMATION_PROPS;\n }\n\n\n private _getOrCreateChild(Ctor: {new(): TSpan}): TSpan\n private _getOrCreateChild(Ctor: {new(): ZRImage}): ZRImage\n private _getOrCreateChild(Ctor: {new(): Rect}): Rect\n private _getOrCreateChild(Ctor: {new(): TSpan | Rect | ZRImage}): TSpan | Rect | ZRImage {\n let child = this._children[this._childCursor];\n if (!child || !(child instanceof Ctor)) {\n child = new Ctor();\n }\n this._children[this._childCursor++] = child;\n child.__zr = this.__zr;\n // TODO to users parent can only be group.\n child.parent = this as any;\n return child;\n }\n\n private _updatePlainTexts() {\n const style = this.style;\n const textFont = style.font || DEFAULT_FONT;\n const textPadding = style.padding as number[];\n\n const text = getStyleText(style);\n const contentBlock = parsePlainText(text, style);\n const needDrawBg = needDrawBackground(style);\n const bgColorDrawn = !!(style.backgroundColor);\n\n let outerHeight = contentBlock.outerHeight;\n\n const textLines = contentBlock.lines;\n const lineHeight = contentBlock.lineHeight;\n\n const defaultStyle = this._defaultStyle;\n\n const baseX = style.x || 0;\n const baseY = style.y || 0;\n const textAlign = style.align || defaultStyle.align || 'left';\n const verticalAlign = style.verticalAlign || defaultStyle.verticalAlign || 'top';\n\n let textX = baseX;\n let textY = adjustTextY(baseY, contentBlock.contentHeight, verticalAlign);\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n let outerWidth = contentBlock.width;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n const boxX = adjustTextX(baseX, outerWidth, textAlign);\n const boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n\n needDrawBg && this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n\n // `textBaseline` is set as 'middle'.\n textY += lineHeight / 2;\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n if (verticalAlign === 'top') {\n textY += textPadding[0];\n }\n else if (verticalAlign === 'bottom') {\n textY -= textPadding[2];\n }\n }\n\n let defaultLineWidth = 0;\n let useDefaultFill = false;\n const textFill = getFill(\n 'fill' in style\n ? style.fill\n : (useDefaultFill = true, defaultStyle.fill)\n );\n const textStroke = getStroke(\n 'stroke' in style\n ? style.stroke\n : (!bgColorDrawn\n // If we use \"auto lineWidth\" widely, it probably bring about some bad case.\n // So the current strategy is:\n // If `style.fill` is specified (i.e., `useDefaultFill` is `false`)\n // (A) And if `textConfig.insideStroke/outsideStroke` is not specified as a color\n // (i.e., `defaultStyle.autoStroke` is `true`), we do not actually display\n // the auto stroke because we can not make sure wether the stoke is approperiate to\n // the given `fill`.\n // (B) But if `textConfig.insideStroke/outsideStroke` is specified as a color,\n // we give the auto lineWidth to display the given stoke color.\n && (!defaultStyle.autoStroke || useDefaultFill)\n )\n ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null\n );\n\n const hasShadow = style.textShadowBlur > 0;\n\n const fixedBoundingRect = style.width != null\n && (style.overflow === 'truncate' || style.overflow === 'break' || style.overflow === 'breakAll');\n const calculatedLineHeight = contentBlock.calculatedLineHeight;\n\n for (let i = 0; i < textLines.length; i++) {\n const el = this._getOrCreateChild(TSpan);\n // Always create new style.\n const subElStyle: TSpanStyleProps = el.createStyle();\n el.useStyle(subElStyle);\n subElStyle.text = textLines[i];\n subElStyle.x = textX;\n subElStyle.y = textY;\n // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n if (textAlign) {\n subElStyle.textAlign = textAlign;\n }\n // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n subElStyle.textBaseline = 'middle';\n subElStyle.opacity = style.opacity;\n // Fill after stroke so the outline will not cover the main part.\n subElStyle.strokeFirst = true;\n\n if (hasShadow) {\n subElStyle.shadowBlur = style.textShadowBlur || 0;\n subElStyle.shadowColor = style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = style.textShadowOffsetY || 0;\n }\n\n if (textStroke) {\n subElStyle.stroke = textStroke as string;\n subElStyle.lineWidth = style.lineWidth || defaultLineWidth;\n subElStyle.lineDash = style.lineDash;\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n }\n if (textFill) {\n subElStyle.fill = textFill as string;\n }\n\n subElStyle.font = textFont;\n\n textY += lineHeight;\n\n if (fixedBoundingRect) {\n el.setBoundingRect(new BoundingRect(\n adjustTextX(subElStyle.x, style.width, subElStyle.textAlign as TextAlign),\n adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline as TextVerticalAlign),\n style.width,\n calculatedLineHeight\n ));\n }\n }\n }\n\n\n private _updateRichTexts() {\n const style = this.style;\n\n // TODO Only parse when text changed?\n const text = getStyleText(style);\n const contentBlock = parseRichText(text, style);\n\n const contentWidth = contentBlock.width;\n const outerWidth = contentBlock.outerWidth;\n const outerHeight = contentBlock.outerHeight;\n const textPadding = style.padding as number[];\n\n const baseX = style.x || 0;\n const baseY = style.y || 0;\n const defaultStyle = this._defaultStyle;\n const textAlign = style.align || defaultStyle.align;\n const verticalAlign = style.verticalAlign || defaultStyle.verticalAlign;\n\n const boxX = adjustTextX(baseX, outerWidth, textAlign);\n const boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n let xLeft = boxX;\n let lineTop = boxY;\n\n if (textPadding) {\n xLeft += textPadding[3];\n lineTop += textPadding[0];\n }\n\n let xRight = xLeft + contentWidth;\n\n if (needDrawBackground(style)) {\n this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n const bgColorDrawn = !!(style.backgroundColor);\n\n for (let i = 0; i < contentBlock.lines.length; i++) {\n const line = contentBlock.lines[i];\n const tokens = line.tokens;\n const tokenCount = tokens.length;\n const lineHeight = line.lineHeight;\n\n let remainedWidth = line.width;\n let leftIndex = 0;\n let lineXLeft = xLeft;\n let lineXRight = xRight;\n let rightIndex = tokenCount - 1;\n let token;\n\n while (\n leftIndex < tokenCount\n && (token = tokens[leftIndex], !token.align || token.align === 'left')\n ) {\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft, 'left', bgColorDrawn);\n remainedWidth -= token.width;\n lineXLeft += token.width;\n leftIndex++;\n }\n\n while (\n rightIndex >= 0\n && (token = tokens[rightIndex], token.align === 'right')\n ) {\n this._placeToken(token, style, lineHeight, lineTop, lineXRight, 'right', bgColorDrawn);\n remainedWidth -= token.width;\n lineXRight -= token.width;\n rightIndex--;\n }\n\n // The other tokens are placed as textAlign 'center' if there is enough space.\n lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - remainedWidth) / 2;\n while (leftIndex <= rightIndex) {\n token = tokens[leftIndex];\n // Consider width specified by user, use 'center' rather than 'left'.\n this._placeToken(\n token, style, lineHeight, lineTop,\n lineXLeft + token.width / 2, 'center', bgColorDrawn\n );\n lineXLeft += token.width;\n leftIndex++;\n }\n\n lineTop += lineHeight;\n }\n }\n\n private _placeToken(\n token: TextToken,\n style: TextStyleProps,\n lineHeight: number,\n lineTop: number,\n x: number,\n textAlign: string,\n parentBgColorDrawn: boolean\n ) {\n const tokenStyle = style.rich[token.styleName] || {};\n tokenStyle.text = token.text;\n\n // 'ctx.textBaseline' is always set as 'middle', for sake of\n // the bias of \"Microsoft YaHei\".\n const verticalAlign = token.verticalAlign;\n let y = lineTop + lineHeight / 2;\n if (verticalAlign === 'top') {\n y = lineTop + token.height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y = lineTop + lineHeight - token.height / 2;\n }\n\n const needDrawBg = !token.isLineHolder && needDrawBackground(tokenStyle);\n needDrawBg && this._renderBackground(\n tokenStyle,\n style,\n textAlign === 'right'\n ? x - token.width\n : textAlign === 'center'\n ? x - token.width / 2\n : x,\n y - token.height / 2,\n token.width,\n token.height\n );\n const bgColorDrawn = !!tokenStyle.backgroundColor;\n\n const textPadding = token.textPadding;\n if (textPadding) {\n x = getTextXForPadding(x, textAlign, textPadding);\n y -= token.height / 2 - textPadding[0] - token.innerHeight / 2;\n }\n\n const el = this._getOrCreateChild(TSpan);\n const subElStyle: TSpanStyleProps = el.createStyle();\n // Always create new style.\n el.useStyle(subElStyle);\n\n const defaultStyle = this._defaultStyle;\n let useDefaultFill = false;\n let defaultLineWidth = 0;\n const textFill = getFill(\n 'fill' in tokenStyle ? tokenStyle.fill\n : 'fill' in style ? style.fill\n : (useDefaultFill = true, defaultStyle.fill)\n );\n const textStroke = getStroke(\n 'stroke' in tokenStyle ? tokenStyle.stroke\n : 'stroke' in style ? style.stroke\n : (\n !bgColorDrawn\n && !parentBgColorDrawn\n // See the strategy explained above.\n && (!defaultStyle.autoStroke || useDefaultFill)\n ) ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null\n );\n\n const hasShadow = tokenStyle.textShadowBlur > 0\n || style.textShadowBlur > 0;\n\n subElStyle.text = token.text;\n subElStyle.x = x;\n subElStyle.y = y;\n if (hasShadow) {\n subElStyle.shadowBlur = tokenStyle.textShadowBlur || style.textShadowBlur || 0;\n subElStyle.shadowColor = tokenStyle.textShadowColor || style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = tokenStyle.textShadowOffsetX || style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = tokenStyle.textShadowOffsetY || style.textShadowOffsetY || 0;\n }\n\n subElStyle.textAlign = textAlign as CanvasTextAlign;\n // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n subElStyle.textBaseline = 'middle';\n subElStyle.font = token.font || DEFAULT_FONT;\n subElStyle.opacity = retrieve3(tokenStyle.opacity, style.opacity, 1);\n\n if (textStroke) {\n subElStyle.lineWidth = retrieve3(tokenStyle.lineWidth, style.lineWidth, defaultLineWidth);\n subElStyle.lineDash = retrieve2(tokenStyle.lineDash, style.lineDash);\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n subElStyle.stroke = textStroke;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n\n const textWidth = token.contentWidth;\n const textHeight = token.contentHeight;\n // NOTE: Should not call dirtyStyle after setBoundingRect. Or it will be cleared.\n el.setBoundingRect(new BoundingRect(\n adjustTextX(subElStyle.x, textWidth, subElStyle.textAlign as TextAlign),\n adjustTextY(subElStyle.y, textHeight, subElStyle.textBaseline as TextVerticalAlign),\n textWidth,\n textHeight\n ));\n }\n\n private _renderBackground(\n style: TextStylePropsPart,\n topStyle: TextStylePropsPart,\n x: number,\n y: number,\n width: number,\n height: number\n ) {\n const textBackgroundColor = style.backgroundColor;\n const textBorderWidth = style.borderWidth;\n const textBorderColor = style.borderColor;\n const isImageBg = textBackgroundColor && (textBackgroundColor as {image: ImageLike}).image;\n const isPlainOrGradientBg = textBackgroundColor && !isImageBg;\n const textBorderRadius = style.borderRadius;\n const self = this;\n\n let rectEl: Rect;\n let imgEl: ZRImage;\n if (isPlainOrGradientBg || style.lineHeight || (textBorderWidth && textBorderColor)) {\n // Background is color\n rectEl = this._getOrCreateChild(Rect);\n rectEl.useStyle(rectEl.createStyle()); // Create an empty style.\n rectEl.style.fill = null;\n const rectShape = rectEl.shape;\n rectShape.x = x;\n rectShape.y = y;\n rectShape.width = width;\n rectShape.height = height;\n rectShape.r = textBorderRadius;\n rectEl.dirtyShape();\n }\n\n if (isPlainOrGradientBg) {\n const rectStyle = rectEl.style;\n rectStyle.fill = textBackgroundColor as string || null;\n rectStyle.fillOpacity = retrieve2(style.fillOpacity, 1);\n }\n else if (isImageBg) {\n imgEl = this._getOrCreateChild(ZRImage);\n imgEl.onload = function () {\n // Refresh and relayout after image loaded.\n self.dirtyStyle();\n };\n const imgStyle = imgEl.style;\n imgStyle.image = (textBackgroundColor as {image: ImageLike}).image;\n imgStyle.x = x;\n imgStyle.y = y;\n imgStyle.width = width;\n imgStyle.height = height;\n }\n\n if (textBorderWidth && textBorderColor) {\n const rectStyle = rectEl.style;\n rectStyle.lineWidth = textBorderWidth;\n rectStyle.stroke = textBorderColor;\n rectStyle.strokeOpacity = retrieve2(style.strokeOpacity, 1);\n rectStyle.lineDash = style.borderDash;\n rectStyle.lineDashOffset = style.borderDashOffset || 0;\n rectEl.strokeContainThreshold = 0;\n\n // Making shadow looks better.\n if (rectEl.hasFill() && rectEl.hasStroke()) {\n rectStyle.strokeFirst = true;\n rectStyle.lineWidth *= 2;\n }\n }\n\n const commonStyle = (rectEl || imgEl).style;\n commonStyle.shadowBlur = style.shadowBlur || 0;\n commonStyle.shadowColor = style.shadowColor || 'transparent';\n commonStyle.shadowOffsetX = style.shadowOffsetX || 0;\n commonStyle.shadowOffsetY = style.shadowOffsetY || 0;\n commonStyle.opacity = retrieve3(style.opacity, topStyle.opacity, 1);\n }\n\n static makeFont(style: TextStylePropsPart): string {\n // FIXME in node-canvas fontWeight is before fontStyle\n // Use `fontSize` `fontFamily` to check whether font properties are defined.\n let font = '';\n if (style.fontSize || style.fontFamily || style.fontWeight) {\n let fontSize = '';\n if (\n typeof style.fontSize === 'string'\n && (\n style.fontSize.indexOf('px') !== -1\n || style.fontSize.indexOf('rem') !== -1\n || style.fontSize.indexOf('em') !== -1\n )\n ) {\n fontSize = style.fontSize;\n }\n else if (!isNaN(+style.fontSize)) {\n fontSize = style.fontSize + 'px';\n }\n else {\n fontSize = '12px';\n }\n font = [\n style.fontStyle,\n style.fontWeight,\n fontSize,\n // If font properties are defined, `fontFamily` should not be ignored.\n style.fontFamily || 'sans-serif'\n ].join(' ');\n }\n return font && trim(font) || style.textFont || style.font;\n }\n}\n\n\nconst VALID_TEXT_ALIGN = {left: true, right: 1, center: 1};\nconst VALID_TEXT_VERTICAL_ALIGN = {top: 1, bottom: 1, middle: 1};\n\nexport function normalizeTextStyle(style: TextStyleProps): TextStyleProps {\n normalizeStyle(style);\n each(style.rich, normalizeStyle);\n return style;\n}\n\nfunction normalizeStyle(style: TextStylePropsPart) {\n if (style) {\n style.font = ZRText.makeFont(style);\n let textAlign = style.align;\n // 'middle' is invalid, convert it to 'center'\n (textAlign as string) === 'middle' && (textAlign = 'center');\n style.align = (\n textAlign == null || VALID_TEXT_ALIGN[textAlign]\n ) ? textAlign : 'left';\n\n // Compatible with textBaseline.\n let verticalAlign = style.verticalAlign;\n (verticalAlign as string) === 'center' && (verticalAlign = 'middle');\n style.verticalAlign = (\n verticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[verticalAlign]\n ) ? verticalAlign : 'top';\n\n // TODO Should not change the orignal value.\n const textPadding = style.padding;\n if (textPadding) {\n style.padding = normalizeCssArray(style.padding);\n }\n }\n}\n\n/**\n * @param stroke If specified, do not check style.textStroke.\n * @param lineWidth If specified, do not check style.textStroke.\n */\nfunction getStroke(\n stroke?: TextStylePropsPart['stroke'],\n lineWidth?: number\n) {\n return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')\n ? null\n : ((stroke as any).image || (stroke as any).colorStops)\n ? '#000'\n : stroke;\n}\n\nfunction getFill(\n fill?: TextStylePropsPart['fill']\n) {\n return (fill == null || fill === 'none')\n ? null\n // TODO pattern and gradient?\n : ((fill as any).image || (fill as any).colorStops)\n ? '#000'\n : fill;\n}\n\nfunction getTextXForPadding(x: number, textAlign: string, textPadding: number[]): number {\n return textAlign === 'right'\n ? (x - textPadding[1])\n : textAlign === 'center'\n ? (x + textPadding[3] / 2 - textPadding[1] / 2)\n : (x + textPadding[3]);\n}\n\nfunction getStyleText(style: TextStylePropsPart): string {\n // Compat: set number to text is supported.\n // set null/undefined to text is supported.\n let text = style.text;\n text != null && (text += '');\n return text;\n}\n\n/**\n * If needs draw background\n * @param style Style of element\n */\nfunction needDrawBackground(style: TextStylePropsPart): boolean {\n return !!(\n style.backgroundColor\n || style.lineHeight\n || (style.borderWidth && style.borderColor)\n );\n}\n\nexport default ZRText;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\nimport {\n DataModel, ECEventData, BlurScope, InnerFocus, SeriesDataType,\n ComponentMainType, ComponentItemTooltipOption\n} from './types';\nimport { makeInner } from './model';\n/**\n * ECData stored on graphic element\n */\nexport interface ECData {\n dataIndex?: number;\n dataModel?: DataModel;\n eventData?: ECEventData;\n seriesIndex?: number;\n dataType?: SeriesDataType;\n focus?: InnerFocus;\n blurScope?: BlurScope;\n\n // Required by `tooltipConfig` and `focus`.\n componentMainType?: ComponentMainType;\n componentIndex?: number;\n componentHighDownName?: string;\n\n // To make a tooltipConfig, seach `setTooltipConfig`.\n // Used to find component tooltip option, which is used as\n // the parent of tooltipConfig.option for cascading.\n // If not provided, do not use component as its parent.\n // (Set manatary to make developers not to forget them).\n tooltipConfig?: {\n // Target item name to locate tooltip.\n name: string;\n option: ComponentItemTooltipOption;\n };\n}\n\nexport const getECData = makeInner();\n\nexport const setCommonECData = (seriesIndex: number, dataType: SeriesDataType, dataIdx: number, el: Element) => {\n if (el) {\n const ecData = getECData(el);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n ecData.dataIndex = dataIdx;\n ecData.dataType = dataType;\n ecData.seriesIndex = seriesIndex;\n\n // TODO: not store dataIndex on children.\n if (el.type === 'group') {\n el.traverse(function (child: Element): void {\n const childECData = getECData(child);\n childECData.seriesIndex = seriesIndex;\n childECData.dataIndex = dataIdx;\n childECData.dataType = dataType;\n });\n }\n }\n};\n", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from 'zrender/src/core/types';\nimport LRU from 'zrender/src/core/LRU';\nimport Displayable, { DisplayableState } from 'zrender/src/graphic/Displayable';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\nimport { GradientObject } from 'zrender/src/graphic/Gradient';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n SeriesDataType,\n DisplayState,\n ECElement,\n ColorString,\n BlurScope,\n InnerFocus,\n Payload,\n ZRColor,\n HighlightPayload,\n DownplayPayload,\n ComponentMainType\n} from './types';\nimport { extend, indexOf, isArrayLike, isObject, keys, isArray, each } from 'zrender/src/core/util';\nimport { getECData } from './innerStore';\nimport * as colorTool from 'zrender/src/tool/color';\nimport SeriesData from '../data/SeriesData';\nimport SeriesModel from '../model/Series';\nimport { CoordinateSystemMaster, CoordinateSystem } from '../coord/CoordinateSystem';\nimport { queryDataIndex, makeInner } from './model';\nimport Path, { PathStyleProps } from 'zrender/src/graphic/Path';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport ComponentModel from '../model/Component';\nimport { error } from './log';\n\n\n// Reserve 0 as default.\nlet _highlightNextDigit = 1;\n\nconst _highlightKeyMap: Dictionary = {};\n\nconst getSavedStates = makeInner<{\n normalFill: ZRColor\n normalStroke: ZRColor\n selectFill?: ZRColor\n selectStroke?: ZRColor\n}, Path>();\n\nexport const HOVER_STATE_NORMAL: 0 = 0;\nexport const HOVER_STATE_BLUR: 1 = 1;\nexport const HOVER_STATE_EMPHASIS: 2 = 2;\n\nexport const SPECIAL_STATES = ['emphasis', 'blur', 'select'] as const;\nexport const DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select'] as const;\n\nexport const Z2_EMPHASIS_LIFT = 10;\nexport const Z2_SELECT_LIFT = 9;\n\nexport const HIGHLIGHT_ACTION_TYPE = 'highlight';\nexport const DOWNPLAY_ACTION_TYPE = 'downplay';\n\nexport const SELECT_ACTION_TYPE = 'select';\nexport const UNSELECT_ACTION_TYPE = 'unselect';\nexport const TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect';\n\ntype ExtendedProps = {\n __highByOuter: number\n\n __highDownSilentOnTouch: boolean\n\n __highDownDispatcher: boolean\n};\ntype ExtendedElement = Element & ExtendedProps;\ntype ExtendedDisplayable = Displayable & ExtendedProps;\n\nfunction hasFillOrStroke(fillOrStroke: string | PatternObject | GradientObject) {\n return fillOrStroke != null && fillOrStroke !== 'none';\n}\n// Most lifted color are duplicated.\nconst liftedColorCache = new LRU(100);\nfunction liftColor(color: string): string {\n if (typeof color !== 'string') {\n return color;\n }\n let liftedColor = liftedColorCache.get(color);\n if (!liftedColor) {\n liftedColor = colorTool.lift(color, -0.1);\n liftedColorCache.put(color, liftedColor);\n }\n return liftedColor;\n}\n\nfunction doChangeHoverState(el: ECElement, stateName: DisplayState, hoverStateEnum: 0 | 1 | 2) {\n if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) {\n el.onHoverStateChange(stateName);\n }\n el.hoverState = hoverStateEnum;\n}\n\nfunction singleEnterEmphasis(el: ECElement) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS);\n}\n\nfunction singleLeaveEmphasis(el: ECElement) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n if (el.hoverState === HOVER_STATE_EMPHASIS) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterBlur(el: ECElement) {\n doChangeHoverState(el, 'blur', HOVER_STATE_BLUR);\n}\n\nfunction singleLeaveBlur(el: ECElement) {\n if (el.hoverState === HOVER_STATE_BLUR) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterSelect(el: ECElement) {\n el.selected = true;\n}\nfunction singleLeaveSelect(el: ECElement) {\n el.selected = false;\n}\n\nfunction updateElementState(\n el: ExtendedElement,\n updater: (this: void, el: Element, commonParam?: T) => void,\n commonParam?: T\n) {\n updater(el, commonParam);\n}\n\nfunction traverseUpdateState(\n el: ExtendedElement,\n updater: (this: void, el: Element, commonParam?: T) => void,\n commonParam?: T\n) {\n updateElementState(el, updater, commonParam);\n el.isGroup && el.traverse(function (child: ExtendedElement) {\n updateElementState(child, updater, commonParam);\n });\n}\n\nexport function setStatesFlag(el: ECElement, stateName: DisplayState) {\n switch (stateName) {\n case 'emphasis':\n el.hoverState = HOVER_STATE_EMPHASIS;\n break;\n case 'normal':\n el.hoverState = HOVER_STATE_NORMAL;\n break;\n case 'blur':\n el.hoverState = HOVER_STATE_BLUR;\n break;\n case 'select':\n el.selected = true;\n }\n}\n\n/**\n * If we reuse elements when rerender.\n * DONT forget to clearStates before we update the style and shape.\n * Or we may update on the wrong state instead of normal state.\n */\nexport function clearStates(el: Element) {\n if (el.isGroup) {\n el.traverse(function (child) {\n child.clearStates();\n });\n }\n else {\n el.clearStates();\n }\n}\n\nfunction getFromStateStyle(\n el: Displayable,\n props: (keyof PathStyleProps)[],\n toStateName: string,\n defaultValue?: PathStyleProps\n): PathStyleProps {\n const style = el.style;\n const fromState: PathStyleProps = {};\n for (let i = 0; i < props.length; i++) {\n const propName = props[i];\n const val = style[propName];\n (fromState as any)[propName] = val == null ? (defaultValue && defaultValue[propName]) : val;\n }\n for (let i = 0; i < el.animators.length; i++) {\n const animator = el.animators[i];\n if (animator.__fromStateTransition\n // Dont consider the animation to emphasis state.\n && animator.__fromStateTransition.indexOf(toStateName) < 0\n && animator.targetName === 'style') {\n animator.saveFinalToTarget(fromState, props);\n }\n }\n return fromState;\n}\n\nfunction createEmphasisDefaultState(\n el: Displayable,\n stateName: 'emphasis',\n targetStates: string[],\n state: Displayable['states'][number]\n): DisplayableState {\n const hasSelect = targetStates && indexOf(targetStates, 'select') >= 0;\n let cloned = false;\n if (el instanceof Path) {\n const store = getSavedStates(el);\n const fromFill = hasSelect ? (store.selectFill || store.normalFill) : store.normalFill;\n const fromStroke = hasSelect ? (store.selectStroke || store.normalStroke) : store.normalStroke;\n if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) {\n state = state || {};\n let emphasisStyle = state.style || {};\n\n // inherit case\n if (emphasisStyle.fill === 'inherit') {\n cloned = true;\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n emphasisStyle.fill = fromFill;\n }\n // Apply default color lift\n else if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) {\n cloned = true;\n // Not modify the original value.\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n // Already being applied 'emphasis'. DON'T lift color multiple times.\n emphasisStyle.fill = liftColor(fromFill as ColorString);\n }\n // Not highlight stroke if fill has been highlighted.\n else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) {\n if (!cloned) {\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n }\n emphasisStyle.stroke = liftColor(fromStroke as ColorString);\n }\n state.style = emphasisStyle;\n }\n }\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n if (!cloned) {\n state = extend({}, state);\n }\n const z2EmphasisLift = (el as ECElement).z2EmphasisLift;\n state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT);\n }\n }\n return state;\n}\n\nfunction createSelectDefaultState(\n el: Displayable,\n stateName: 'select',\n state: Displayable['states'][number]\n): DisplayableState {\n // const hasSelect = indexOf(el.currentStates, stateName) >= 0;\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n state = extend({}, state);\n const z2SelectLift = (el as ECElement).z2SelectLift;\n state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT);\n }\n }\n return state;\n}\n\nfunction createBlurDefaultState(\n el: Displayable,\n stateName: 'blur',\n state: Displayable['states'][number]\n): DisplayableState {\n const hasBlur = indexOf(el.currentStates, stateName) >= 0;\n const currentOpacity = el.style.opacity;\n\n const fromState = !hasBlur\n ? getFromStateStyle(el, ['opacity'], stateName, {\n opacity: 1\n })\n : null;\n\n state = state || {};\n let blurStyle = state.style || {};\n if (blurStyle.opacity == null) {\n // clone state\n state = extend({}, state);\n blurStyle = extend({\n // Already being applied 'emphasis'. DON'T mul opacity multiple times.\n opacity: hasBlur ? currentOpacity : (fromState.opacity * 0.1)\n }, blurStyle);\n state.style = blurStyle;\n }\n\n return state;\n}\n\nfunction elementStateProxy(this: Displayable, stateName: string, targetStates?: string[]): DisplayableState {\n const state = this.states[stateName];\n if (this.style) {\n if (stateName === 'emphasis') {\n return createEmphasisDefaultState(this, stateName, targetStates, state);\n }\n else if (stateName === 'blur') {\n return createBlurDefaultState(this, stateName, state);\n }\n else if (stateName === 'select') {\n return createSelectDefaultState(this, stateName, state);\n }\n }\n return state;\n}\n/**FI\n * Set hover style (namely \"emphasis style\") of element.\n * @param el Should not be `zrender/graphic/Group`.\n * @param focus 'self' | 'selfInSeries' | 'series'\n */\nexport function setDefaultStateProxy(el: Displayable) {\n el.stateProxy = elementStateProxy;\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n if (textContent) {\n textContent.stateProxy = elementStateProxy;\n }\n if (textGuide) {\n textGuide.stateProxy = elementStateProxy;\n }\n}\n\nexport function enterEmphasisWhenMouseOver(el: Element, e: ElementEvent) {\n !shouldSilent(el, e)\n // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !(el as ExtendedElement).__highByOuter\n && traverseUpdateState((el as ExtendedElement), singleEnterEmphasis);\n}\n\nexport function leaveEmphasisWhenMouseOut(el: Element, e: ElementEvent) {\n !shouldSilent(el, e)\n // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !(el as ExtendedElement).__highByOuter\n && traverseUpdateState((el as ExtendedElement), singleLeaveEmphasis);\n}\n\nexport function enterEmphasis(el: Element, highlightDigit?: number) {\n (el as ExtendedElement).__highByOuter |= 1 << (highlightDigit || 0);\n traverseUpdateState((el as ExtendedElement), singleEnterEmphasis);\n}\n\nexport function leaveEmphasis(el: Element, highlightDigit?: number) {\n !((el as ExtendedElement).__highByOuter &= ~(1 << (highlightDigit || 0)))\n && traverseUpdateState((el as ExtendedElement), singleLeaveEmphasis);\n}\n\nexport function enterBlur(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleEnterBlur);\n}\n\nexport function leaveBlur(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleLeaveBlur);\n}\n\nexport function enterSelect(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleEnterSelect);\n}\n\nexport function leaveSelect(el: Element) {\n traverseUpdateState(el as ExtendedElement, singleLeaveSelect);\n}\n\nfunction shouldSilent(el: Element, e: ElementEvent) {\n return (el as ExtendedElement).__highDownSilentOnTouch && e.zrByTouch;\n}\n\nexport function allLeaveBlur(api: ExtensionAPI) {\n const model = api.getModel();\n model.eachComponent(function (componentType, componentModel) {\n const view = componentType === 'series'\n ? api.getViewOfSeriesModel(componentModel as SeriesModel)\n : api.getViewOfComponentModel(componentModel);\n // Leave blur anyway\n view.group.traverse(function (child) {\n singleLeaveBlur(child);\n });\n });\n}\n\nexport function blurSeries(\n targetSeriesIndex: number,\n focus: InnerFocus,\n blurScope: BlurScope,\n api: ExtensionAPI\n) {\n const ecModel = api.getModel();\n blurScope = blurScope || 'coordinateSystem';\n\n function leaveBlurOfIndices(data: SeriesData, dataIndices: ArrayLike) {\n for (let i = 0; i < dataIndices.length; i++) {\n const itemEl = data.getItemGraphicEl(dataIndices[i]);\n itemEl && leaveBlur(itemEl);\n }\n }\n\n if (targetSeriesIndex == null) {\n return;\n }\n\n if (!focus || focus === 'none') {\n return;\n }\n\n const targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex);\n let targetCoordSys: CoordinateSystemMaster | CoordinateSystem = targetSeriesModel.coordinateSystem;\n if (targetCoordSys && (targetCoordSys as CoordinateSystem).master) {\n targetCoordSys = (targetCoordSys as CoordinateSystem).master;\n }\n\n const blurredSeries: SeriesModel[] = [];\n\n ecModel.eachSeries(function (seriesModel) {\n\n const sameSeries = targetSeriesModel === seriesModel;\n let coordSys: CoordinateSystemMaster | CoordinateSystem = seriesModel.coordinateSystem;\n if (coordSys && (coordSys as CoordinateSystem).master) {\n coordSys = (coordSys as CoordinateSystem).master;\n }\n const sameCoordSys = coordSys && targetCoordSys\n ? coordSys === targetCoordSys\n : sameSeries; // If there is no coordinate system. use sameSeries instead.\n if (!(\n // Not blur other series if blurScope series\n blurScope === 'series' && !sameSeries\n // Not blur other coordinate system if blurScope is coordinateSystem\n || blurScope === 'coordinateSystem' && !sameCoordSys\n // Not blur self series if focus is series.\n || focus === 'series' && sameSeries\n // TODO blurScope: coordinate system\n )) {\n const view = api.getViewOfSeriesModel(seriesModel);\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n\n if (isArrayLike(focus)) {\n leaveBlurOfIndices(seriesModel.getData(), focus as ArrayLike);\n }\n else if (isObject(focus)) {\n const dataTypes = keys(focus);\n for (let d = 0; d < dataTypes.length; d++) {\n leaveBlurOfIndices(seriesModel.getData(dataTypes[d] as SeriesDataType), focus[dataTypes[d]]);\n }\n }\n\n blurredSeries.push(seriesModel);\n }\n });\n\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n const view = api.getViewOfComponentModel(componentModel);\n if (view && view.blurSeries) {\n view.blurSeries(blurredSeries, ecModel);\n }\n });\n}\n\nexport function blurComponent(\n componentMainType: ComponentMainType,\n componentIndex: number,\n api: ExtensionAPI\n) {\n if (componentMainType == null || componentIndex == null) {\n return;\n }\n\n const componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n if (!componentModel) {\n return;\n }\n\n const view = api.getViewOfComponentModel(componentModel);\n if (!view || !view.focusBlurEnabled) {\n return;\n }\n\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n}\n\nexport function blurSeriesFromHighlightPayload(\n seriesModel: SeriesModel,\n payload: HighlightPayload,\n api: ExtensionAPI\n) {\n const seriesIndex = seriesModel.seriesIndex;\n const data = seriesModel.getData(payload.dataType);\n let dataIndex = queryDataIndex(data, payload);\n // Pick the first one if there is multiple/none exists.\n dataIndex = (isArray(dataIndex) ? dataIndex[0] : dataIndex) || 0;\n let el = data.getItemGraphicEl(dataIndex as number);\n if (!el) {\n const count = data.count();\n let current = 0;\n // If data on dataIndex is NaN.\n while (!el && current < count) {\n el = data.getItemGraphicEl(current++);\n }\n }\n\n if (el) {\n const ecData = getECData(el);\n blurSeries(\n seriesIndex, ecData.focus, ecData.blurScope, api\n );\n }\n else {\n // If there is no element put on the data. Try getting it from raw option\n // TODO Should put it on seriesModel?\n const focus = seriesModel.get(['emphasis', 'focus']);\n const blurScope = seriesModel.get(['emphasis', 'blurScope']);\n if (focus != null) {\n blurSeries(seriesIndex, focus, blurScope, api);\n }\n }\n}\n\nexport function findComponentHighDownDispatchers(\n componentMainType: ComponentMainType,\n componentIndex: number,\n name: string,\n api: ExtensionAPI\n): {\n focusSelf: boolean;\n // If return null/undefined, do not support this feature.\n dispatchers: Element[];\n} {\n const ret = {\n focusSelf: false,\n dispatchers: null as Element[]\n };\n if (componentMainType == null\n || componentMainType === 'series'\n || componentIndex == null\n || name == null\n ) {\n return ret;\n }\n\n const componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n if (!componentModel) {\n return ret;\n }\n\n const view = api.getViewOfComponentModel(componentModel);\n if (!view || !view.findHighDownDispatchers) {\n return ret;\n }\n\n const dispatchers = view.findHighDownDispatchers(name);\n\n // At presnet, the component (like Geo) only blur inside itself.\n // So we do not use `blurScope` in component.\n let focusSelf: boolean;\n for (let i = 0; i < dispatchers.length; i++) {\n if (__DEV__ && !isHighDownDispatcher(dispatchers[i])) {\n error('param should be highDownDispatcher');\n }\n if (getECData(dispatchers[i]).focus === 'self') {\n focusSelf = true;\n break;\n }\n }\n\n return { focusSelf, dispatchers };\n}\n\nexport function handleGlobalMouseOverForHighDown(\n dispatcher: Element,\n e: ElementEvent,\n api: ExtensionAPI\n): void {\n if (__DEV__ && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n const ecData = getECData(dispatcher);\n\n const { dispatchers, focusSelf } = findComponentHighDownDispatchers(\n ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api\n );\n // If `findHighDownDispatchers` is supported on the component,\n // highlight/downplay elements with the same name.\n if (dispatchers) {\n if (focusSelf) {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n each(dispatchers, dispatcher => enterEmphasisWhenMouseOver(dispatcher, e));\n }\n else {\n // Try blur all in the related series. Then emphasis the hoverred.\n // TODO. progressive mode.\n blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api);\n if (ecData.focus === 'self') {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n // Other than series, component that not support `findHighDownDispatcher` will\n // also use it. But in this case, highlight/downplay are only supported in\n // mouse hover but not in dispatchAction.\n enterEmphasisWhenMouseOver(dispatcher, e);\n }\n}\n\nexport function handleGlboalMouseOutForHighDown(\n dispatcher: Element,\n e: ElementEvent,\n api: ExtensionAPI\n): void {\n if (__DEV__ && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n allLeaveBlur(api);\n\n const ecData = getECData(dispatcher);\n const { dispatchers } = findComponentHighDownDispatchers(\n ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api\n );\n if (dispatchers) {\n each(dispatchers, dispatcher => leaveEmphasisWhenMouseOut(dispatcher, e));\n }\n else {\n leaveEmphasisWhenMouseOut(dispatcher, e);\n }\n}\n\n\nexport function toggleSelectionFromPayload(\n seriesModel: SeriesModel,\n payload: Payload,\n api: ExtensionAPI\n) {\n if (!(isSelectChangePayload(payload))) {\n return;\n }\n const dataType = payload.dataType;\n const data = seriesModel.getData(dataType);\n let dataIndex = queryDataIndex(data, payload);\n if (!isArray(dataIndex)) {\n dataIndex = [dataIndex];\n }\n\n seriesModel[\n payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect'\n : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'\n ](dataIndex, dataType);\n}\n\n\nexport function updateSeriesElementSelection(seriesModel: SeriesModel) {\n const allData = seriesModel.getAllData();\n each(allData, function ({ data, type }) {\n data.eachItemGraphicEl(function (el, idx) {\n seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el);\n });\n });\n}\n\nexport function getAllSelectedIndices(ecModel: GlobalModel) {\n const ret: {\n seriesIndex: number\n dataType?: SeriesDataType\n dataIndex: number[]\n }[] = [];\n ecModel.eachSeries(function (seriesModel) {\n const allData = seriesModel.getAllData();\n each(allData, function ({ data, type }) {\n const dataIndices = seriesModel.getSelectedDataIndices();\n if (dataIndices.length > 0) {\n const item: typeof ret[number] = {\n dataIndex: dataIndices,\n seriesIndex: seriesModel.seriesIndex\n };\n if (type != null) {\n item.dataType = type;\n }\n ret.push(item);\n\n }\n });\n });\n return ret;\n}\n\n/**\n * Enable the function that mouseover will trigger the emphasis state.\n *\n * NOTE:\n * This function should be used on the element with dataIndex, seriesIndex.\n *\n */\nexport function enableHoverEmphasis(el: Element, focus?: InnerFocus, blurScope?: BlurScope) {\n setAsHighDownDispatcher(el, true);\n traverseUpdateState(el as ExtendedElement, setDefaultStateProxy);\n\n enableHoverFocus(el, focus, blurScope);\n}\n\nexport function enableHoverFocus(el: Element, focus: InnerFocus, blurScope: BlurScope) {\n const ecData = getECData(el);\n if (focus != null) {\n // TODO dataIndex may be set after this function. This check is not useful.\n // if (ecData.dataIndex == null) {\n // if (__DEV__) {\n // console.warn('focus can only been set on element with dataIndex');\n // }\n // }\n // else {\n ecData.focus = focus;\n ecData.blurScope = blurScope;\n // }\n }\n else if (ecData.focus) {\n ecData.focus = null;\n }\n}\n\nconst OTHER_STATES = ['emphasis', 'blur', 'select'] as const;\nconst defaultStyleGetterMap: Dictionary<'getItemStyle' | 'getLineStyle' | 'getAreaStyle'> = {\n itemStyle: 'getItemStyle',\n lineStyle: 'getLineStyle',\n areaStyle: 'getAreaStyle'\n};\n/**\n * Set emphasis/blur/selected states of element.\n */\nexport function setStatesStylesFromModel(\n el: Displayable,\n itemModel: Model>>,\n styleType?: string, // default itemStyle\n getter?: (model: Model) => Dictionary\n) {\n styleType = styleType || 'itemStyle';\n for (let i = 0; i < OTHER_STATES.length; i++) {\n const stateName = OTHER_STATES[i];\n const model = itemModel.getModel([stateName, styleType]);\n const state = el.ensureState(stateName);\n // Let it throw error if getterType is not found.\n state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]]();\n }\n}\n\n\n/**\n * @parame el\n * @param el.highDownSilentOnTouch\n * In touch device, mouseover event will be trigger on touchstart event\n * (see module:zrender/dom/HandlerProxy). By this mechanism, we can\n * conveniently use hoverStyle when tap on touch screen without additional\n * code for compatibility.\n * But if the chart/component has select feature, which usually also use\n * hoverStyle, there might be conflict between 'select-highlight' and\n * 'hover-highlight' especially when roam is enabled (see geo for example).\n * In this case, `highDownSilentOnTouch` should be used to disable\n * hover-highlight on touch device.\n * @param asDispatcher If `false`, do not set as \"highDownDispatcher\".\n */\nexport function setAsHighDownDispatcher(el: Element, asDispatcher: boolean) {\n const disable = asDispatcher === false;\n const extendedEl = el as ExtendedElement;\n // Make `highDownSilentOnTouch` and `onStateChange` only work after\n // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.\n if ((el as ECElement).highDownSilentOnTouch) {\n extendedEl.__highDownSilentOnTouch = (el as ECElement).highDownSilentOnTouch;\n }\n // Simple optimize, since this method might be\n // called for each elements of a group in some cases.\n if (!disable || extendedEl.__highDownDispatcher) {\n // Emphasis, normal can be triggered manually by API or other components like hover link.\n // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);\n // Also keep previous record.\n extendedEl.__highByOuter = extendedEl.__highByOuter || 0;\n extendedEl.__highDownDispatcher = !disable;\n }\n}\n\nexport function isHighDownDispatcher(el: Element): boolean {\n return !!(el && (el as ExtendedDisplayable).__highDownDispatcher);\n}\n\n/**\n * Enable component highlight/downplay features:\n * + hover link (within the same name)\n * + focus blur in component\n */\nexport function enableComponentHighDownFeatures(\n el: Element,\n componentModel: ComponentModel,\n componentHighDownName: string\n): void {\n const ecData = getECData(el);\n ecData.componentMainType = componentModel.mainType;\n ecData.componentIndex = componentModel.componentIndex;\n ecData.componentHighDownName = componentHighDownName;\n}\n\n/**\n * Support hightlight/downplay record on each elements.\n * For the case: hover highlight/downplay (legend, visualMap, ...) and\n * user triggerred hightlight/downplay should not conflict.\n * Only all of the highlightDigit cleared, return to normal.\n * @param {string} highlightKey\n * @return {number} highlightDigit\n */\nexport function getHighlightDigit(highlightKey: number) {\n let highlightDigit = _highlightKeyMap[highlightKey];\n if (highlightDigit == null && _highlightNextDigit <= 32) {\n highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;\n }\n return highlightDigit;\n}\n\nexport function isSelectChangePayload(payload: Payload) {\n const payloadType = payload.type;\n return payloadType === SELECT_ACTION_TYPE\n || payloadType === UNSELECT_ACTION_TYPE\n || payloadType === TOGGLE_SELECT_ACTION_TYPE;\n}\n\nexport function isHighDownPayload(payload: Payload): payload is HighlightPayload | DownplayPayload {\n const payloadType = payload.type;\n return payloadType === HIGHLIGHT_ACTION_TYPE\n || payloadType === DOWNPLAY_ACTION_TYPE;\n}\n\nexport function savePathStates(el: Path) {\n const store = getSavedStates(el);\n store.normalFill = el.style.fill;\n store.normalStroke = el.style.stroke;\n\n const selectState = el.states.select || {};\n store.selectFill = (selectState.style && selectState.style.fill) || null;\n store.selectStroke = (selectState.style && selectState.style.stroke) || null;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as pathTool from 'zrender/src/tool/path';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as vector from 'zrender/src/core/vector';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport Transformable from 'zrender/src/core/Transformable';\nimport ZRImage, { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport Group from 'zrender/src/graphic/Group';\nimport ZRText from 'zrender/src/graphic/Text';\nimport Circle from 'zrender/src/graphic/shape/Circle';\nimport Ellipse from 'zrender/src/graphic/shape/Ellipse';\nimport Sector from 'zrender/src/graphic/shape/Sector';\nimport Ring from 'zrender/src/graphic/shape/Ring';\nimport Polygon from 'zrender/src/graphic/shape/Polygon';\nimport Polyline from 'zrender/src/graphic/shape/Polyline';\nimport Rect from 'zrender/src/graphic/shape/Rect';\nimport Line from 'zrender/src/graphic/shape/Line';\nimport BezierCurve from 'zrender/src/graphic/shape/BezierCurve';\nimport Arc from 'zrender/src/graphic/shape/Arc';\nimport CompoundPath from 'zrender/src/graphic/CompoundPath';\nimport LinearGradient from 'zrender/src/graphic/LinearGradient';\nimport RadialGradient from 'zrender/src/graphic/RadialGradient';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport OrientedBoundingRect from 'zrender/src/core/OrientedBoundingRect';\nimport Point from 'zrender/src/core/Point';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport * as subPixelOptimizeUtil from 'zrender/src/graphic/helper/subPixelOptimize';\nimport { Dictionary } from 'zrender/src/core/types';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n AnimationOptionMixin,\n ZRRectLike,\n ZRStyleProps,\n CommonTooltipOption,\n ComponentItemTooltipLabelFormatterParams\n} from './types';\nimport {\n extend,\n isArrayLike,\n map,\n defaults,\n isString,\n keys,\n each,\n hasOwn\n} from 'zrender/src/core/util';\nimport { getECData } from './innerStore';\nimport ComponentModel from '../model/Component';\n\n\nimport {\n updateProps,\n initProps,\n removeElement,\n removeElementWithFadeOut,\n isElementRemoved\n} from '../animation/basicTrasition';\n\n/**\n * @deprecated export for compatitable reason\n */\nexport {updateProps, initProps, removeElement, removeElementWithFadeOut, isElementRemoved};\n\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\n\nconst _customShapeMap: Dictionary<{ new(): Path }> = {};\n\ntype ExtendShapeOpt = Parameters[0];\ntype ExtendShapeReturn = ReturnType;\n\n/**\n * Extend shape with parameters\n */\nexport function extendShape(opts: ExtendShapeOpt): ExtendShapeReturn {\n return Path.extend(opts);\n}\n\nconst extendPathFromString = pathTool.extendFromString;\ntype SVGPathOption = Parameters[1];\ntype SVGPathCtor = ReturnType;\ntype SVGPath = InstanceType;\n/**\n * Extend path\n */\nexport function extendPath(pathData: string, opts: SVGPathOption): SVGPathCtor {\n return extendPathFromString(pathData, opts);\n}\n\n/**\n * Register a user defined shape.\n * The shape class can be fetched by `getShapeClass`\n * This method will overwrite the registered shapes, including\n * the registered built-in shapes, if using the same `name`.\n * The shape can be used in `custom series` and\n * `graphic component` by declaring `{type: name}`.\n *\n * @param name\n * @param ShapeClass Can be generated by `extendShape`.\n */\nexport function registerShape(name: string, ShapeClass: {new(): Path}) {\n _customShapeMap[name] = ShapeClass;\n}\n\n/**\n * Find shape class registered by `registerShape`. Usually used in\n * fetching user defined shape.\n *\n * [Caution]:\n * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared\n * to use user registered shapes.\n * Because the built-in shape (see `getBuiltInShape`) will be registered by\n * `registerShape` by default. That enables users to get both built-in\n * shapes as well as the shapes belonging to themsleves. But users can overwrite\n * the built-in shapes by using names like 'circle', 'rect' via calling\n * `registerShape`. So the echarts inner featrues should not fetch shapes from here\n * in case that it is overwritten by users, except that some features, like\n * `custom series`, `graphic component`, do it deliberately.\n *\n * (2) In the features like `custom series`, `graphic component`, the user input\n * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic\n * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names\n * are reserved names, that is, if some user register a shape named `'image'`,\n * the shape will not be used. If we intending to add some more reserved names\n * in feature, that might bring break changes (disable some existing user shape\n * names). But that case probably rearly happen. So we dont make more mechanism\n * to resolve this issue here.\n *\n * @param name\n * @return The shape class. If not found, return nothing.\n */\nexport function getShapeClass(name: string): {new(): Path} {\n if (_customShapeMap.hasOwnProperty(name)) {\n return _customShapeMap[name];\n }\n}\n\n/**\n * Create a path element from path data string\n * @param pathData\n * @param opts\n * @param rect\n * @param layout 'center' or 'cover' default to be cover\n */\nexport function makePath(\n pathData: string,\n opts: SVGPathOption,\n rect: ZRRectLike,\n layout?: 'center' | 'cover'\n): SVGPath {\n const path = pathTool.createFromString(pathData, opts);\n if (rect) {\n if (layout === 'center') {\n rect = centerGraphic(rect, path.getBoundingRect());\n }\n resizePath(path, rect);\n }\n return path;\n}\n\n/**\n * Create a image element from image url\n * @param imageUrl image url\n * @param opts options\n * @param rect constrain rect\n * @param layout 'center' or 'cover'. Default to be 'cover'\n */\nexport function makeImage(\n imageUrl: string,\n rect: ZRRectLike,\n layout?: 'center' | 'cover'\n) {\n const zrImg = new ZRImage({\n style: {\n image: imageUrl,\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n onload(img) {\n if (layout === 'center') {\n const boundingRect = {\n width: img.width,\n height: img.height\n };\n zrImg.setStyle(centerGraphic(rect, boundingRect));\n }\n }\n });\n return zrImg;\n}\n\n/**\n * Get position of centered element in bounding box.\n *\n * @param rect element local bounding box\n * @param boundingRect constraint bounding box\n * @return element position containing x, y, width, and height\n */\nfunction centerGraphic(rect: ZRRectLike, boundingRect: {\n width: number\n height: number\n}): ZRRectLike {\n // Set rect to center, keep width / height ratio.\n const aspect = boundingRect.width / boundingRect.height;\n let width = rect.height * aspect;\n let height;\n if (width <= rect.width) {\n height = rect.height;\n }\n else {\n width = rect.width;\n height = width / aspect;\n }\n const cx = rect.x + rect.width / 2;\n const cy = rect.y + rect.height / 2;\n\n return {\n x: cx - width / 2,\n y: cy - height / 2,\n width: width,\n height: height\n };\n}\n\nexport const mergePath = pathTool.mergePath;\n\n/**\n * Resize a path to fit the rect\n * @param path\n * @param rect\n */\nexport function resizePath(path: SVGPath, rect: ZRRectLike): void {\n if (!path.applyTransform) {\n return;\n }\n\n const pathRect = path.getBoundingRect();\n\n const m = pathRect.calculateTransform(rect);\n\n path.applyTransform(m);\n}\n\n/**\n * Sub pixel optimize line for canvas\n */\nexport function subPixelOptimizeLine(param: {\n shape: {\n x1: number, y1: number, x2: number, y2: number\n },\n style: {\n lineWidth: number\n }\n}) {\n subPixelOptimizeUtil.subPixelOptimizeLine(param.shape, param.shape, param.style);\n return param;\n}\n\n/**\n * Sub pixel optimize rect for canvas\n */\nexport function subPixelOptimizeRect(param: {\n shape: {\n x: number, y: number, width: number, height: number\n },\n style: {\n lineWidth: number\n }\n}) {\n subPixelOptimizeUtil.subPixelOptimizeRect(param.shape, param.shape, param.style);\n return param;\n}\n\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth Should be nonnegative integer.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\nexport const subPixelOptimize = subPixelOptimizeUtil.subPixelOptimize;\n\n\n/**\n * Get transform matrix of target (param target),\n * in coordinate of its ancestor (param ancestor)\n *\n * @param target\n * @param [ancestor]\n */\nexport function getTransform(target: Transformable, ancestor?: Transformable): matrix.MatrixArray {\n const mat = matrix.identity([]);\n\n while (target && target !== ancestor) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n return mat;\n}\n\n/**\n * Apply transform to an vertex.\n * @param target [x, y]\n * @param transform Can be:\n * + Transform matrix: like [1, 0, 0, 1, 0, 0]\n * + {position, rotation, scale}, the same as `zrender/Transformable`.\n * @param invert Whether use invert matrix.\n * @return [x, y]\n */\nexport function applyTransform(\n target: vector.VectorArray,\n transform: Transformable | matrix.MatrixArray,\n invert?: boolean\n): number[] {\n if (transform && !isArrayLike(transform)) {\n transform = Transformable.getLocalTransform(transform);\n }\n\n if (invert) {\n transform = matrix.invert([], transform as matrix.MatrixArray);\n }\n return vector.applyTransform([], target, transform as matrix.MatrixArray);\n}\n\n/**\n * @param direction 'left' 'right' 'top' 'bottom'\n * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]\n * @param invert Whether use invert matrix.\n * @return Transformed direction. 'left' 'right' 'top' 'bottom'\n */\nexport function transformDirection(\n direction: 'left' | 'right' | 'top' | 'bottom',\n transform: matrix.MatrixArray,\n invert?: boolean\n): 'left' | 'right' | 'top' | 'bottom' {\n\n // Pick a base, ensure that transform result will not be (0, 0).\n const hBase = (transform[4] === 0 || transform[5] === 0 || transform[0] === 0)\n ? 1 : Math.abs(2 * transform[4] / transform[0]);\n const vBase = (transform[4] === 0 || transform[5] === 0 || transform[2] === 0)\n ? 1 : Math.abs(2 * transform[4] / transform[2]);\n\n let vertex: vector.VectorArray = [\n direction === 'left' ? -hBase : direction === 'right' ? hBase : 0,\n direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0\n ];\n\n vertex = applyTransform(vertex, transform, invert);\n\n return Math.abs(vertex[0]) > Math.abs(vertex[1])\n ? (vertex[0] > 0 ? 'right' : 'left')\n : (vertex[1] > 0 ? 'bottom' : 'top');\n}\n\nfunction isNotGroup(el: Element): el is Displayable {\n return !el.isGroup;\n}\nfunction isPath(el: Displayable): el is Path {\n return (el as Path).shape != null;\n}\n/**\n * Apply group transition animation from g1 to g2.\n * If no animatableModel, no animation.\n */\nexport function groupTransition(\n g1: Group,\n g2: Group,\n animatableModel: Model\n) {\n if (!g1 || !g2) {\n return;\n }\n\n function getElMap(g: Group) {\n const elMap: Dictionary = {};\n g.traverse(function (el: Element) {\n if (isNotGroup(el) && el.anid) {\n elMap[el.anid] = el;\n }\n });\n return elMap;\n }\n function getAnimatableProps(el: Displayable) {\n const obj: PathProps = {\n x: el.x,\n y: el.y,\n rotation: el.rotation\n };\n if (isPath(el)) {\n obj.shape = extend({}, el.shape);\n }\n return obj;\n }\n const elMap1 = getElMap(g1);\n\n g2.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n const oldEl = elMap1[el.anid];\n if (oldEl) {\n const newProp = getAnimatableProps(el);\n el.attr(getAnimatableProps(oldEl));\n updateProps(el, newProp, animatableModel, getECData(el).dataIndex);\n }\n }\n });\n}\n\nexport function clipPointsByRect(points: vector.VectorArray[], rect: ZRRectLike): number[][] {\n // FIXME: this way migth be incorrect when grpahic clipped by a corner.\n // and when element have border.\n return map(points, function (point) {\n let x = point[0];\n x = mathMax(x, rect.x);\n x = mathMin(x, rect.x + rect.width);\n let y = point[1];\n y = mathMax(y, rect.y);\n y = mathMin(y, rect.y + rect.height);\n return [x, y];\n });\n}\n\n/**\n * Return a new clipped rect. If rect size are negative, return undefined.\n */\nexport function clipRectByRect(targetRect: ZRRectLike, rect: ZRRectLike): ZRRectLike {\n const x = mathMax(targetRect.x, rect.x);\n const x2 = mathMin(targetRect.x + targetRect.width, rect.x + rect.width);\n const y = mathMax(targetRect.y, rect.y);\n const y2 = mathMin(targetRect.y + targetRect.height, rect.y + rect.height);\n\n // If the total rect is cliped, nothing, including the border,\n // should be painted. So return undefined.\n if (x2 >= x && y2 >= y) {\n return {\n x: x,\n y: y,\n width: x2 - x,\n height: y2 - y\n };\n }\n}\n\nexport function createIcon(\n iconStr: string, // Support 'image://' or 'path://' or direct svg path.\n opt?: Omit,\n rect?: ZRRectLike\n): SVGPath | ZRImage {\n const innerOpts: DisplayableProps = extend({rectHover: true}, opt);\n const style: ZRStyleProps = innerOpts.style = {strokeNoScale: true};\n rect = rect || {x: -1, y: -1, width: 2, height: 2};\n\n if (iconStr) {\n return iconStr.indexOf('image://') === 0\n ? (\n (style as ImageStyleProps).image = iconStr.slice(8),\n defaults(style, rect),\n new ZRImage(innerOpts)\n )\n : (\n makePath(\n iconStr.replace('path://', ''),\n innerOpts,\n rect,\n 'center'\n )\n );\n }\n}\n\n/**\n * Return `true` if the given line (line `a`) and the given polygon\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\nexport function linePolygonIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number,\n points: vector.VectorArray[]\n): boolean {\n for (let i = 0, p2 = points[points.length - 1]; i < points.length; i++) {\n const p = points[i];\n if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {\n return true;\n }\n p2 = p;\n }\n}\n\n/**\n * Return `true` if the given two lines (line `a` and line `b`)\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\nexport function lineLineIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number,\n b1x: number, b1y: number, b2x: number, b2y: number\n): boolean {\n // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.\n const mx = a2x - a1x;\n const my = a2y - a1y;\n const nx = b2x - b1x;\n const ny = b2y - b1y;\n\n // `vec_m` and `vec_n` are parallel iff\n // exising `k` such that `vec_m = k \u00B7 vec_n`, equivalent to `vec_m X vec_n = 0`.\n const nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n if (nearZero(nmCrossProduct)) {\n return false;\n }\n\n // `vec_m` and `vec_n` are intersect iff\n // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,\n // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`\n // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.\n const b1a1x = a1x - b1x;\n const b1a1y = a1y - b1y;\n const q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;\n if (q < 0 || q > 1) {\n return false;\n }\n const p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n if (p < 0 || p > 1) {\n return false;\n }\n\n return true;\n}\n\n/**\n * Cross product of 2-dimension vector.\n */\nfunction crossProduct2d(x1: number, y1: number, x2: number, y2: number) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction nearZero(val: number) {\n return val <= (1e-6) && val >= -(1e-6);\n}\n\n\nexport function setTooltipConfig(opt: {\n el: Element,\n componentModel: ComponentModel,\n itemName: string,\n itemTooltipOption?: string | CommonTooltipOption\n formatterParamsExtra?: Dictionary\n}): void {\n const itemTooltipOption = opt.itemTooltipOption;\n const componentModel = opt.componentModel;\n const itemName = opt.itemName;\n\n const itemTooltipOptionObj = isString(itemTooltipOption)\n ? { formatter: itemTooltipOption }\n : itemTooltipOption;\n const mainType = componentModel.mainType;\n const componentIndex = componentModel.componentIndex;\n\n const formatterParams = {\n componentType: mainType,\n name: itemName,\n $vars: ['name']\n } as ComponentItemTooltipLabelFormatterParams;\n (formatterParams as any)[mainType + 'Index'] = componentIndex;\n\n const formatterParamsExtra = opt.formatterParamsExtra;\n if (formatterParamsExtra) {\n each(keys(formatterParamsExtra), key => {\n if (!hasOwn(formatterParams, key)) {\n formatterParams[key] = formatterParamsExtra[key];\n formatterParams.$vars.push(key);\n }\n });\n }\n\n const ecData = getECData(opt.el);\n ecData.componentMainType = mainType;\n ecData.componentIndex = componentIndex;\n ecData.tooltipConfig = {\n name: itemName,\n option: defaults({\n content: itemName,\n formatterParams: formatterParams\n }, itemTooltipOptionObj)\n };\n}\n\n// Register built-in shapes. These shapes might be overwirtten\n// by users, although we do not recommend that.\nregisterShape('circle', Circle);\nregisterShape('ellipse', Ellipse);\nregisterShape('sector', Sector);\nregisterShape('ring', Ring);\nregisterShape('polygon', Polygon);\nregisterShape('polyline', Polyline);\nregisterShape('rect', Rect);\nregisterShape('line', Line);\nregisterShape('bezierCurve', BezierCurve);\nregisterShape('arc', Arc);\n\nexport {\n Group,\n ZRImage as Image,\n ZRText as Text,\n Circle,\n Ellipse,\n Sector,\n Ring,\n Polygon,\n Polyline,\n Rect,\n Line,\n BezierCurve,\n Arc,\n IncrementalDisplayable,\n CompoundPath,\n LinearGradient,\n RadialGradient,\n BoundingRect,\n OrientedBoundingRect,\n Point,\n Path\n};", "import PathProxy from '../core/PathProxy';\nimport {applyTransform as v2ApplyTransform, VectorArray} from '../core/vector';\nimport { MatrixArray } from '../core/matrix';\n\nconst CMD = PathProxy.CMD;\n\nconst points: VectorArray[] = [[], [], []];\nconst mathSqrt = Math.sqrt;\nconst mathAtan2 = Math.atan2;\n\nexport default function transformPath(path: PathProxy, m: MatrixArray) {\n if (!m) {\n return;\n }\n\n let data = path.data;\n const len = path.len();\n let cmd;\n let nPoint: number;\n let i: number;\n let j: number;\n let k: number;\n let p: VectorArray;\n\n const M = CMD.M;\n const C = CMD.C;\n const L = CMD.L;\n const R = CMD.R;\n const A = CMD.A;\n const Q = CMD.Q;\n\n for (i = 0, j = 0; i < len;) {\n cmd = data[i++];\n j = i;\n nPoint = 0;\n\n switch (cmd) {\n case M:\n nPoint = 1;\n break;\n case L:\n nPoint = 1;\n break;\n case C:\n nPoint = 3;\n break;\n case Q:\n nPoint = 2;\n break;\n case A:\n const x = m[4];\n const y = m[5];\n const sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);\n const sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);\n const angle = mathAtan2(-m[1] / sy, m[0] / sx);\n // cx\n data[i] *= sx;\n data[i++] += x;\n // cy\n data[i] *= sy;\n data[i++] += y;\n // Scale rx and ry\n // FIXME Assume psi is 0 here\n data[i++] *= sx;\n data[i++] *= sy;\n\n // Start angle\n data[i++] += angle;\n // end angle\n data[i++] += angle;\n // FIXME psi\n i += 2;\n j = i;\n break;\n case R:\n // x0, y0\n p[0] = data[i++];\n p[1] = data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n // x1, y1\n p[0] += data[i++];\n p[1] += data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n }\n\n for (k = 0; k < nPoint; k++) {\n let p = points[k];\n p[0] = data[i++];\n p[1] = data[i++];\n\n v2ApplyTransform(p, p, m);\n // Write back\n data[j++] = p[0];\n data[j++] = p[1];\n }\n }\n\n path.increaseVersion();\n}\n", "import Path, { PathProps } from '../graphic/Path';\nimport PathProxy from '../core/PathProxy';\nimport transformPath from './transformPath';\nimport { VectorArray } from '../core/vector';\nimport { MatrixArray } from '../core/matrix';\nimport { extend } from '../core/util';\n\n// command chars\n// const cc = [\n// 'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z',\n// 'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A'\n// ];\n\nconst mathSqrt = Math.sqrt;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI = Math.PI;\n\nfunction vMag(v: VectorArray): number {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n};\nfunction vRatio(u: VectorArray, v: VectorArray): number {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n};\nfunction vAngle(u: VectorArray, v: VectorArray): number {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)\n * Math.acos(vRatio(u, v));\n};\n\nfunction processArc(\n x1: number, y1: number, x2: number, y2: number, fa: number, fs: number,\n rx: number, ry: number, psiDeg: number, cmd: number, path: PathProxy\n) {\n // https://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n const psi = psiDeg * (PI / 180.0);\n const xp = mathCos(psi) * (x1 - x2) / 2.0\n + mathSin(psi) * (y1 - y2) / 2.0;\n const yp = -1 * mathSin(psi) * (x1 - x2) / 2.0\n + mathCos(psi) * (y1 - y2) / 2.0;\n\n const lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);\n\n if (lambda > 1) {\n rx *= mathSqrt(lambda);\n ry *= mathSqrt(lambda);\n }\n\n const f = (fa === fs ? -1 : 1)\n * mathSqrt((((rx * rx) * (ry * ry))\n - ((rx * rx) * (yp * yp))\n - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)\n + (ry * ry) * (xp * xp))\n ) || 0;\n\n const cxp = f * rx * yp / ry;\n const cyp = f * -ry * xp / rx;\n\n const cx = (x1 + x2) / 2.0\n + mathCos(psi) * cxp\n - mathSin(psi) * cyp;\n const cy = (y1 + y2) / 2.0\n + mathSin(psi) * cxp\n + mathCos(psi) * cyp;\n\n const theta = vAngle([ 1, 0 ], [ (xp - cxp) / rx, (yp - cyp) / ry ]);\n const u = [ (xp - cxp) / rx, (yp - cyp) / ry ];\n const v = [ (-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry ];\n let dTheta = vAngle(u, v);\n\n if (vRatio(u, v) <= -1) {\n dTheta = PI;\n }\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n\n if (dTheta < 0) {\n const n = Math.round(dTheta / PI * 1e6) / 1e6;\n // Convert to positive\n dTheta = PI * 2 + (n % 2) * PI;\n }\n\n path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);\n}\n\n\nconst commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;\n// Consider case:\n// (1) delimiter can be comma or space, where continuous commas\n// or spaces should be seen as one comma.\n// (2) value can be like:\n// '2e-4', 'l.5.9' (ignore 0), 'M-10-10', 'l-2.43e-1,34.9983',\n// 'l-.5E1,54', '121-23-44-11' (no delimiter)\nconst numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\n// const valueSplitReg = /[\\s,]+/;\n\nfunction createPathProxyFromString(data: string) {\n const path = new PathProxy();\n\n if (!data) {\n return path;\n }\n\n // const data = data.replace(/-/g, ' -')\n // .replace(/ /g, ' ')\n // .replace(/ /g, ',')\n // .replace(/,,/g, ',');\n\n // const n;\n // create pipes so that we can split the data\n // for (n = 0; n < cc.length; n++) {\n // cs = cs.replace(new RegExp(cc[n], 'g'), '|' + cc[n]);\n // }\n\n // data = data.replace(/-/g, ',-');\n\n // create array\n // const arr = cs.split('|');\n // init context point\n let cpx = 0;\n let cpy = 0;\n let subpathX = cpx;\n let subpathY = cpy;\n let prevCmd;\n\n const CMD = PathProxy.CMD;\n\n // commandReg.lastIndex = 0;\n // const cmdResult;\n // while ((cmdResult = commandReg.exec(data)) != null) {\n // const cmdStr = cmdResult[1];\n // const cmdContent = cmdResult[2];\n\n const cmdList = data.match(commandReg);\n if (!cmdList) {\n // Invalid svg path.\n return path;\n }\n\n for (let l = 0; l < cmdList.length; l++) {\n const cmdText = cmdList[l];\n let cmdStr = cmdText.charAt(0);\n\n let cmd;\n\n // String#split is faster a little bit than String#replace or RegExp#exec.\n // const p = cmdContent.split(valueSplitReg);\n // const pLen = 0;\n // for (let i = 0; i < p.length; i++) {\n // // '' and other invalid str => NaN\n // const val = parseFloat(p[i]);\n // !isNaN(val) && (p[pLen++] = val);\n // }\n\n\n // Following code will convert string to number. So convert type to number here\n const p = cmdText.match(numberReg) as any[] as number[] || [];\n const pLen = p.length;\n for (let i = 0; i < pLen; i++) {\n p[i] = parseFloat(p[i] as any as string);\n }\n\n let off = 0;\n while (off < pLen) {\n let ctlPtx;\n let ctlPty;\n\n let rx;\n let ry;\n let psi;\n let fa;\n let fs;\n\n let x1 = cpx;\n let y1 = cpy;\n\n let len: number;\n let pathData: number[] | Float32Array;\n // convert l, H, h, V, and v to L\n switch (cmdStr) {\n case 'l':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'L':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'm':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'l';\n break;\n case 'M':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'L';\n break;\n case 'h':\n cpx += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'H':\n cpx = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'v':\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'V':\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'C':\n cmd = CMD.C;\n path.addData(\n cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]\n );\n cpx = p[off - 2];\n cpy = p[off - 1];\n break;\n case 'c':\n cmd = CMD.C;\n path.addData(\n cmd,\n p[off++] + cpx, p[off++] + cpy,\n p[off++] + cpx, p[off++] + cpy,\n p[off++] + cpx, p[off++] + cpy\n );\n cpx += p[off - 2];\n cpy += p[off - 1];\n break;\n case 'S':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 's':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = cpx + p[off++];\n y1 = cpy + p[off++];\n cpx += p[off++];\n cpy += p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 'Q':\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'q':\n x1 = p[off++] + cpx;\n y1 = p[off++] + cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'T':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 't':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 'A':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n\n x1 = cpx, y1 = cpy;\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.A;\n processArc(\n x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path\n );\n break;\n case 'a':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n\n x1 = cpx, y1 = cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.A;\n processArc(\n x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path\n );\n break;\n }\n }\n\n if (cmdStr === 'z' || cmdStr === 'Z') {\n cmd = CMD.Z;\n path.addData(cmd);\n // z may be in the middle of the path.\n cpx = subpathX;\n cpy = subpathY;\n }\n\n prevCmd = cmd;\n }\n\n path.toStatic();\n\n return path;\n}\n\ntype SVGPathOption = Omit\ninterface InnerSVGPathOption extends PathProps {\n applyTransform?: (m: MatrixArray) => void\n}\nclass SVGPath extends Path {\n applyTransform(m: MatrixArray) {}\n}\n\nfunction isPathProxy(path: PathProxy | CanvasRenderingContext2D): path is PathProxy {\n return (path as PathProxy).setData != null;\n}\n// TODO Optimize double memory cost problem\nfunction createPathOptions(str: string, opts: SVGPathOption): InnerSVGPathOption {\n const pathProxy = createPathProxyFromString(str);\n const innerOpts: InnerSVGPathOption = extend({}, opts);\n innerOpts.buildPath = function (path: PathProxy | CanvasRenderingContext2D) {\n if (isPathProxy(path)) {\n path.setData(pathProxy.data);\n // Svg and vml renderer don't have context\n const ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n else {\n const ctx = path;\n pathProxy.rebuildPath(ctx, 1);\n }\n };\n\n innerOpts.applyTransform = function (this: SVGPath, m: MatrixArray) {\n transformPath(pathProxy, m);\n this.dirtyShape();\n };\n\n return innerOpts;\n}\n\n/**\n * Create a Path object from path string data\n * http://www.w3.org/TR/SVG/paths.html#PathData\n * @param opts Other options\n */\nexport function createFromString(str: string, opts?: SVGPathOption): SVGPath {\n // PENDING\n return new SVGPath(createPathOptions(str, opts));\n}\n\n/**\n * Create a Path class from path string data\n * @param str\n * @param opts Other options\n */\nexport function extendFromString(str: string, defaultOpts?: SVGPathOption): typeof SVGPath {\n const innerOpts = createPathOptions(str, defaultOpts);\n class Sub extends SVGPath {\n constructor(opts: InnerSVGPathOption) {\n super(opts);\n this.applyTransform = innerOpts.applyTransform;\n this.buildPath = innerOpts.buildPath;\n }\n }\n return Sub;\n}\n\n/**\n * Merge multiple paths\n */\n// TODO Apply transform\n// TODO stroke dash\n// TODO Optimize double memory cost problem\nexport function mergePath(pathEls: Path[], opts: PathProps) {\n const pathList: PathProxy[] = [];\n const len = pathEls.length;\n for (let i = 0; i < len; i++) {\n const pathEl = pathEls[i];\n pathList.push(pathEl.getUpdatedPathProxy(true));\n }\n\n const pathBundle = new Path(opts);\n // Need path proxy.\n pathBundle.createPathProxy();\n pathBundle.buildPath = function (path: PathProxy | CanvasRenderingContext2D) {\n if (isPathProxy(path)) {\n path.appendPath(pathList);\n // Svg and vml renderer don't have context\n const ctx = path.getContext();\n if (ctx) {\n // Path bundle not support percent draw.\n path.rebuildPath(ctx, 1);\n }\n }\n };\n\n return pathBundle;\n}\n\n/**\n * Clone a path.\n */\nexport function clonePath(sourcePath: Path, opts?: {\n /**\n * If bake global transform to path.\n */\n bakeTransform?: boolean\n /**\n * Convert global transform to local.\n */\n toLocal?: boolean\n}) {\n opts = opts || {};\n const path = new Path();\n if (sourcePath.shape) {\n path.setShape(sourcePath.shape);\n }\n path.setStyle(sourcePath.style);\n\n if (opts.bakeTransform) {\n transformPath(path.path, sourcePath.getComputedTransform());\n }\n else {\n // TODO Copy getLocalTransform, updateTransform since they can be changed.\n if (opts.toLocal) {\n path.setLocalTransform(sourcePath.getComputedTransform());\n }\n else {\n path.copyTransform(sourcePath);\n }\n }\n\n // These methods may be overridden\n path.buildPath = sourcePath.buildPath;\n (path as SVGPath).applyTransform = (path as SVGPath).applyTransform;\n\n path.z = sourcePath.z;\n path.z2 = sourcePath.z2;\n path.zlevel = sourcePath.zlevel;\n\n return path;\n}\n", "/**\n * \u5706\u5F62\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class CircleShape {\n cx = 0\n cy = 0\n r = 0\n}\n\nexport interface CircleProps extends PathProps {\n shape?: Partial\n}\nclass Circle extends Path {\n\n shape: CircleShape\n\n constructor(opts?: CircleProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new CircleShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: CircleShape, inBundle: boolean) {\n // Better stroking in ShapeBundle\n // Always do it may have performence issue ( fill may be 2x more cost)\n if (inBundle) {\n ctx.moveTo(shape.cx + shape.r, shape.cy);\n }\n // else {\n // if (ctx.allocate && !ctx.data.length) {\n // ctx.allocate(ctx.CMD_MEM_SIZE.A);\n // }\n // }\n // Better stroking in ShapeBundle\n // ctx.moveTo(shape.cx + shape.r, shape.cy);\n ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2);\n }\n};\n\nCircle.prototype.type = 'circle';\n\nexport default Circle;", "/**\n * \u692D\u5706\u5F62\u72B6\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class EllipseShape {\n cx = 0\n cy = 0\n rx = 0\n ry = 0\n}\n\nexport interface EllipseProps extends PathProps {\n shape?: Partial\n}\nclass Ellipse extends Path {\n\n shape: EllipseShape\n\n constructor(opts?: EllipseProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new EllipseShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: EllipseShape) {\n const k = 0.5522848;\n const x = shape.cx;\n const y = shape.cy;\n const a = shape.rx;\n const b = shape.ry;\n const ox = a * k; // \u6C34\u5E73\u63A7\u5236\u70B9\u504F\u79FB\u91CF\n const oy = b * k; // \u5782\u76F4\u63A7\u5236\u70B9\u504F\u79FB\u91CF\n // \u4ECE\u692D\u5706\u7684\u5DE6\u7AEF\u70B9\u5F00\u59CB\u987A\u65F6\u9488\u7ED8\u5236\u56DB\u6761\u4E09\u6B21\u8D1D\u585E\u5C14\u66F2\u7EBF\n ctx.moveTo(x - a, y);\n ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b);\n ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y);\n ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b);\n ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y);\n ctx.closePath();\n }\n}\n\nEllipse.prototype.type = 'ellipse';\n\nexport default Ellipse;", "import PathProxy, { normalizeArcAngles } from '../../core/PathProxy';\n\nconst PI = Math.PI;\nconst PI2 = PI * 2;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst mathACos = Math.acos;\nconst mathATan2 = Math.atan2;\nconst mathAbs = Math.abs;\nconst mathSqrt = Math.sqrt;\nconst mathMax = Math.max;\nconst mathMin = Math.min;\nconst e = 1e-4;\n\ntype CornerTangents = {\n cx: number\n cy: number\n x01: number\n y01: number\n x11: number\n y11: number\n};\n\nfunction intersect(\n x0: number, y0: number, \n x1: number, y1: number, \n x2: number, y2: number, \n x3: number, y3: number\n): [number, number] {\n const x10 = x1 - x0;\n const y10 = y1 - y0;\n const x32 = x3 - x2;\n const y32 = y3 - y2;\n let t = y32 * x10 - x32 * y10;\n if (t * t < e) {\n return;\n }\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\nfunction computeCornerTangents(\n x0: number, y0: number, \n x1: number, y1: number, \n radius: number, cr: number, \n clockwise: boolean\n): CornerTangents {\n const x01 = x0 - x1;\n const y01 = y0 - y1;\n const lo = (clockwise ? cr : -cr) / mathSqrt(x01 * x01 + y01 * y01);\n const ox = lo * y01;\n const oy = -lo * x01;\n const x11 = x0 + ox;\n const y11 = y0 + oy;\n const x10 = x1 + ox;\n const y10 = y1 + oy;\n const x00 = (x11 + x10) / 2;\n const y00 = (y11 + y10) / 2;\n const dx = x10 - x11;\n const dy = y10 - y11;\n const d2 = dx * dx + dy * dy;\n const r = radius - cr;\n const s = x11 * y10 - x10 * y11;\n const d = (dy < 0 ? -1 : 1) * mathSqrt(mathMax(0, r * r * d2 - s * s));\n let cx0 = (s * dy - dx * d) / d2;\n let cy0 = (-s * dx - dy * d) / d2;\n const cx1 = (s * dy + dx * d) / d2;\n const cy1 = (-s * dx + dy * d) / d2;\n const dx0 = cx0 - x00;\n const dy0 = cy0 - y00;\n const dx1 = cx1 - x00;\n const dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points\n // TODO: Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) {\n cx0 = cx1;\n cy0 = cy1;\n }\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (radius / r - 1),\n y11: cy0 * (radius / r - 1)\n };\n}\n\nexport function buildPath(ctx: CanvasRenderingContext2D | PathProxy, shape: {\n cx: number\n cy: number\n startAngle: number\n endAngle: number\n clockwise?: boolean,\n r?: number,\n r0?: number,\n cornerRadius?: number,\n innerCornerRadius?: number\n}) {\n let radius = mathMax(shape.r, 0);\n let innerRadius = mathMax(shape.r0 || 0, 0);\n const hasRadius = radius > 0;\n const hasInnerRadius = innerRadius > 0;\n\n if (!hasRadius && !hasInnerRadius) {\n return;\n }\n\n if (!hasRadius) {\n // use innerRadius as radius if no radius\n radius = innerRadius;\n innerRadius = 0;\n }\n\n if (innerRadius > radius) {\n // swap, ensure that radius is always larger than innerRadius\n const tmp = radius;\n radius = innerRadius;\n innerRadius = tmp;\n }\n\n const clockwise = !!shape.clockwise;\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n\n // PENDING: whether normalizing angles is required?\n let arc: number;\n // FIXME: there may be a precision issue in `normalizeArcAngles`\n if (startAngle === endAngle) {\n arc = 0;\n }\n else {\n const tmpAngles = [startAngle, endAngle];\n normalizeArcAngles(tmpAngles, !clockwise);\n arc = mathAbs(tmpAngles[0] - tmpAngles[1]);\n }\n\n const x = shape.cx;\n const y = shape.cy;\n const cornerRadius = shape.cornerRadius || 0;\n const innerCornerRadius = shape.innerCornerRadius || 0;\n\n // is a point\n if (!(radius > e)) {\n ctx.moveTo(x, y);\n }\n // is a circle or annulus\n else if (arc > PI2 - e) {\n ctx.moveTo(\n x + radius * mathCos(startAngle), \n y + radius * mathSin(startAngle)\n );\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n\n if (innerRadius > e) {\n ctx.moveTo(\n x + innerRadius * mathCos(endAngle), \n y + innerRadius * mathSin(endAngle)\n );\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n // is a circular or annular sector\n else {\n const halfRd = mathAbs(radius - innerRadius) / 2;\n const cr = mathMin(halfRd, cornerRadius);\n const icr = mathMin(halfRd, innerCornerRadius);\n let cr0 = icr;\n let cr1 = cr;\n\n const xrs = radius * mathCos(startAngle);\n const yrs = radius * mathSin(startAngle);\n const xire = innerRadius * mathCos(endAngle);\n const yire = innerRadius * mathSin(endAngle);\n\n let xre;\n let yre;\n let xirs;\n let yirs;\n\n // draw corner radius\n if (cr > e || icr > e) {\n xre = radius * mathCos(endAngle);\n yre = radius * mathSin(endAngle);\n xirs = innerRadius * mathCos(startAngle);\n yirs = innerRadius * mathSin(startAngle);\n\n // restrict the max value of corner radius\n if (arc < PI) {\n const it = intersect(xrs, yrs, xirs, yirs, xre, yre, xire, yire);\n if (it) {\n const x0 = xrs - it[0];\n const y0 = yrs - it[1];\n const x1 = xre - it[0];\n const y1 = yre - it[1];\n const a = 1 / mathSin(\n mathACos((x0 * x1 + y0 * y1) / (mathSqrt(x0 * x0 + y0 * y0) * mathSqrt(x1 * x1 + y1 * y1))) / 2\n );\n const b = mathSqrt(it[0] * it[0] + it[1] * it[1]);\n cr0 = mathMin(icr, (innerRadius - b) / (a - 1));\n cr1 = mathMin(cr, (radius - b) / (a + 1));\n }\n }\n }\n\n // the sector is collapsed to a line\n if (!(arc > e)) {\n ctx.moveTo(x + xrs, y + yrs);\n }\n // the outer ring has corners\n else if (cr1 > e) {\n const ct0 = computeCornerTangents(xirs, yirs, xrs, yrs, radius, cr1, clockwise);\n const ct1 = computeCornerTangents(xre, yre, xire, yire, radius, cr1, clockwise);\n\n ctx.moveTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n\n // Have the corners merged?\n if (cr1 < cr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n // draw the two corners and the ring\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n\n ctx.arc(x, y, radius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), !clockwise);\n\n ctx.arc(x + ct1.cx, y + ct1.cy, cr1, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n // the outer ring is a circular arc\n else {\n ctx.moveTo(x + xrs, y + yrs);\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n }\n\n // no inner ring, is a circular sector\n if (!(innerRadius > e) || !(arc > e)) {\n ctx.lineTo(x + xire, y + yire);\n }\n // the inner ring has corners\n else if (cr0 > e) {\n const ct0 = computeCornerTangents(xire, yire, xre, yre, innerRadius, -cr0, clockwise);\n const ct1 = computeCornerTangents(xrs, yrs, xirs, yirs, innerRadius, -cr0, clockwise);\n ctx.lineTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n\n // Have the corners merged?\n if (cr0 < icr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n // draw the two corners and the ring\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n\n ctx.arc(x, y, innerRadius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), clockwise);\n\n ctx.arc(x + ct1.cx, y + ct1.cy, cr0, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n // the inner ring is just a circular arc\n else {\n // FIXME: if no lineTo, svg renderer will perform an abnormal drawing behavior.\n ctx.lineTo(x + xire, y + yire);\n\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n\n ctx.closePath();\n}\n", "import Path, { PathProps } from '../Path';\nimport * as roundSectorHelper from '../helper/roundSector';\n\nexport class SectorShape {\n cx = 0\n cy = 0\n r0 = 0\n r = 0\n startAngle = 0\n endAngle = Math.PI * 2\n clockwise = true\n cornerRadius = 0\n innerCornerRadius = 0\n}\n\nexport interface SectorProps extends PathProps {\n shape?: Partial\n}\n\nclass Sector extends Path {\n\n shape: SectorShape\n\n constructor(opts?: SectorProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SectorShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SectorShape) {\n roundSectorHelper.buildPath(ctx, shape)\n }\n\n isZeroArea() {\n return this.shape.startAngle === this.shape.endAngle\n || this.shape.r === this.shape.r0;\n }\n}\n\nSector.prototype.type = 'sector';\n\nexport default Sector;\n", "/**\n * \u5706\u73AF\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class RingShape {\n cx = 0\n cy = 0\n r = 0\n r0 = 0\n}\n\nexport interface RingProps extends PathProps {\n shape?: Partial\n}\nclass Ring extends Path {\n\n shape: RingShape\n\n constructor(opts?: RingProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new RingShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: RingShape) {\n const x = shape.cx;\n const y = shape.cy;\n const PI2 = Math.PI * 2;\n ctx.moveTo(x + shape.r, y);\n ctx.arc(x, y, shape.r, 0, PI2, false);\n ctx.moveTo(x + shape.r0, y);\n ctx.arc(x, y, shape.r0, 0, PI2, true);\n }\n}\n\nRing.prototype.type = 'ring';\nexport default Ring;", "/**\n * Catmull-Rom spline \u63D2\u503C\u6298\u7EBF\n */\n\nimport {distance as v2Distance, VectorArray} from '../../core/vector';\n\nfunction interpolate(\n p0: number, p1: number, p2: number, p3: number, t: number, t2: number, t3: number\n) {\n const v0 = (p2 - p0) * 0.5;\n const v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\n\nexport default function smoothSpline(points: VectorArray[], isLoop?: boolean): VectorArray[] {\n const len = points.length;\n const ret = [];\n\n let distance = 0;\n for (let i = 1; i < len; i++) {\n distance += v2Distance(points[i - 1], points[i]);\n }\n\n let segs = distance / 2;\n segs = segs < len ? len : segs;\n for (let i = 0; i < segs; i++) {\n const pos = i / (segs - 1) * (isLoop ? len : len - 1);\n const idx = Math.floor(pos);\n\n const w = pos - idx;\n\n let p0;\n let p1 = points[idx % len];\n let p2;\n let p3;\n if (!isLoop) {\n p0 = points[idx === 0 ? idx : idx - 1];\n p2 = points[idx > len - 2 ? len - 1 : idx + 1];\n p3 = points[idx > len - 3 ? len - 1 : idx + 2];\n }\n else {\n p0 = points[(idx - 1 + len) % len];\n p2 = points[(idx + 1) % len];\n p3 = points[(idx + 2) % len];\n }\n\n const w2 = w * w;\n const w3 = w * w2;\n\n ret.push([\n interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),\n interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)\n ]);\n }\n return ret;\n}", "/**\n * \u8D1D\u585E\u5C14\u5E73\u6ED1\u66F2\u7EBF\n */\n\nimport {\n min as v2Min,\n max as v2Max,\n scale as v2Scale,\n distance as v2Distance,\n add as v2Add,\n clone as v2Clone,\n sub as v2Sub,\n VectorArray\n} from '../../core/vector';\n\n/**\n * \u8D1D\u585E\u5C14\u5E73\u6ED1\u66F2\u7EBF\n * @param points \u7EBF\u6BB5\u9876\u70B9\u6570\u7EC4\n * @param smooth \u5E73\u6ED1\u7B49\u7EA7, 0-1\n * @param isLoop\n * @param constraint \u5C06\u8BA1\u7B97\u51FA\u6765\u7684\u63A7\u5236\u70B9\u7EA6\u675F\u5728\u4E00\u4E2A\u5305\u56F4\u76D2\u5185\n * \u6BD4\u5982 [[0, 0], [100, 100]], \u8FD9\u4E2A\u5305\u56F4\u76D2\u4F1A\u4E0E\n * \u6574\u4E2A\u6298\u7EBF\u7684\u5305\u56F4\u76D2\u505A\u4E00\u4E2A\u5E76\u96C6\u7528\u6765\u7EA6\u675F\u63A7\u5236\u70B9\u3002\n * @param \u8BA1\u7B97\u51FA\u6765\u7684\u63A7\u5236\u70B9\u6570\u7EC4\n */\nexport default function smoothBezier(\n points: VectorArray[],\n smooth?: number,\n isLoop?: boolean,\n constraint?: VectorArray[]\n) {\n const cps = [];\n\n const v: VectorArray = [];\n const v1: VectorArray = [];\n const v2: VectorArray = [];\n let prevPoint;\n let nextPoint;\n\n let min;\n let max;\n if (constraint) {\n min = [Infinity, Infinity];\n max = [-Infinity, -Infinity];\n for (let i = 0, len = points.length; i < len; i++) {\n v2Min(min, min, points[i]);\n v2Max(max, max, points[i]);\n }\n // \u4E0E\u6307\u5B9A\u7684\u5305\u56F4\u76D2\u505A\u5E76\u96C6\n v2Min(min, min, constraint[0]);\n v2Max(max, max, constraint[1]);\n }\n\n for (let i = 0, len = points.length; i < len; i++) {\n const point = points[i];\n\n if (isLoop) {\n prevPoint = points[i ? i - 1 : len - 1];\n nextPoint = points[(i + 1) % len];\n }\n else {\n if (i === 0 || i === len - 1) {\n cps.push(v2Clone(points[i]));\n continue;\n }\n else {\n prevPoint = points[i - 1];\n nextPoint = points[i + 1];\n }\n }\n\n v2Sub(v, nextPoint, prevPoint);\n\n // use degree to scale the handle length\n v2Scale(v, v, smooth);\n\n let d0 = v2Distance(point, prevPoint);\n let d1 = v2Distance(point, nextPoint);\n const sum = d0 + d1;\n if (sum !== 0) {\n d0 /= sum;\n d1 /= sum;\n }\n\n v2Scale(v1, v, -d0);\n v2Scale(v2, v, d1);\n const cp0 = v2Add([], point, v1);\n const cp1 = v2Add([], point, v2);\n if (constraint) {\n v2Max(cp0, cp0, min);\n v2Min(cp0, cp0, max);\n v2Max(cp1, cp1, min);\n v2Min(cp1, cp1, max);\n }\n cps.push(cp0);\n cps.push(cp1);\n }\n\n if (isLoop) {\n cps.push(cps.shift());\n }\n\n return cps;\n}", "\nimport smoothSpline from './smoothSpline';\nimport smoothBezier from './smoothBezier';\nimport { VectorArray } from '../../core/vector';\nimport PathProxy from '../../core/PathProxy';\n\nexport function buildPath(\n ctx: CanvasRenderingContext2D | PathProxy,\n shape: {\n points: VectorArray[],\n smooth?: number | 'spline'\n smoothConstraint?: VectorArray[]\n },\n closePath: boolean\n) {\n const smooth = shape.smooth;\n let points = shape.points;\n if (points && points.length >= 2) {\n if (smooth && smooth !== 'spline') {\n const controlPoints = smoothBezier(\n points, smooth, closePath, shape.smoothConstraint\n );\n\n ctx.moveTo(points[0][0], points[0][1]);\n const len = points.length;\n for (let i = 0; i < (closePath ? len : len - 1); i++) {\n const cp1 = controlPoints[i * 2];\n const cp2 = controlPoints[i * 2 + 1];\n const p = points[(i + 1) % len];\n ctx.bezierCurveTo(\n cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]\n );\n }\n }\n else {\n if (smooth === 'spline') {\n points = smoothSpline(points, closePath);\n }\n\n ctx.moveTo(points[0][0], points[0][1]);\n for (let i = 1, l = points.length; i < l; i++) {\n ctx.lineTo(points[i][0], points[i][1]);\n }\n }\n\n closePath && ctx.closePath();\n }\n}\n", "/**\n * \u591A\u8FB9\u5F62\n * @module zrender/shape/Polygon\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as polyHelper from '../helper/poly';\nimport { VectorArray } from '../../core/vector';\n\nexport class PolygonShape {\n points: VectorArray[] = null\n smooth?: number | 'spline' = 0\n smoothConstraint?: VectorArray[] = null\n}\n\nexport interface PolygonProps extends PathProps {\n shape?: Partial\n}\nclass Polygon extends Path {\n\n shape: PolygonShape\n\n constructor(opts?: PolygonProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new PolygonShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PolygonShape) {\n polyHelper.buildPath(ctx, shape, true);\n }\n};\n\nPolygon.prototype.type = 'polygon';\n\nexport default Polygon;", "/**\n * @module zrender/graphic/shape/Polyline\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as polyHelper from '../helper/poly';\nimport { VectorArray } from '../../core/vector';\n\nexport class PolylineShape {\n points: VectorArray[] = null\n // Percent of displayed polyline. For animating purpose\n percent?: number = 1\n smooth?: number | 'spline' = 0\n smoothConstraint?: VectorArray[] = null\n}\n\nexport interface PolylineProps extends PathProps {\n shape?: Partial\n}\nclass Polyline extends Path {\n\n shape: PolylineShape\n\n constructor(opts?: PolylineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new PolylineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PolylineShape) {\n polyHelper.buildPath(ctx, shape, false);\n }\n}\n\nPolyline.prototype.type = 'polyline';\nexport default Polyline;", "/**\n * \u76F4\u7EBF\n * @module zrender/graphic/shape/Line\n */\n\nimport Path, { PathProps } from '../Path';\nimport {subPixelOptimizeLine} from '../helper/subPixelOptimize';\nimport { VectorArray } from '../../core/vector';\n\n// Avoid create repeatly.\nconst subPixelOptimizeOutputShape = {};\n\nexport class LineShape {\n // Start point\n x1 = 0\n y1 = 0\n // End point\n x2 = 0\n y2 = 0\n\n percent = 1\n}\n\nexport interface LineProps extends PathProps {\n shape?: Partial\n}\nclass Line extends Path {\n\n shape: LineShape\n\n constructor(opts?: LineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new LineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LineShape) {\n let x1;\n let y1;\n let x2;\n let y2;\n\n if (this.subPixelOptimize) {\n const optimizedShape = subPixelOptimizeLine(\n subPixelOptimizeOutputShape, shape, this.style\n );\n x1 = optimizedShape.x1;\n y1 = optimizedShape.y1;\n x2 = optimizedShape.x2;\n y2 = optimizedShape.y2;\n }\n else {\n x1 = shape.x1;\n y1 = shape.y1;\n x2 = shape.x2;\n y2 = shape.y2;\n }\n\n const percent = shape.percent;\n\n if (percent === 0) {\n return;\n }\n\n ctx.moveTo(x1, y1);\n\n if (percent < 1) {\n x2 = x1 * (1 - percent) + x2 * percent;\n y2 = y1 * (1 - percent) + y2 * percent;\n }\n ctx.lineTo(x2, y2);\n }\n\n /**\n * Get point at percent\n */\n pointAt(p: number): VectorArray {\n const shape = this.shape;\n return [\n shape.x1 * (1 - p) + shape.x2 * p,\n shape.y1 * (1 - p) + shape.y2 * p\n ];\n }\n}\n\nLine.prototype.type = 'line';\nexport default Line;", "/**\n * \u8D1D\u585E\u5C14\u66F2\u7EBF\n */\n\nimport Path, { PathProps } from '../Path';\nimport * as vec2 from '../../core/vector';\nimport {\n quadraticSubdivide,\n cubicSubdivide,\n quadraticAt,\n cubicAt,\n quadraticDerivativeAt,\n cubicDerivativeAt\n} from '../../core/curve';\n\nconst out: number[] = [];\n\nexport class BezierCurveShape {\n x1 = 0\n y1 = 0\n x2 = 0\n y2 = 0\n cpx1 = 0\n cpy1 = 0\n cpx2?: number\n cpy2?: number\n // Curve show percent, for animating\n percent = 1\n}\n\nfunction someVectorAt(shape: BezierCurveShape, t: number, isTangent: boolean) {\n const cpx2 = shape.cpx2;\n const cpy2 = shape.cpy2;\n if (cpx2 === null || cpy2 === null) {\n return [\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)\n ];\n }\n else {\n return [\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)\n ];\n }\n}\n\nexport interface BezierCurveProps extends PathProps {\n shape?: Partial\n}\nclass BezierCurve extends Path {\n\n shape: BezierCurveShape\n\n constructor(opts?: BezierCurveProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new BezierCurveShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: BezierCurveShape) {\n let x1 = shape.x1;\n let y1 = shape.y1;\n let x2 = shape.x2;\n let y2 = shape.y2;\n let cpx1 = shape.cpx1;\n let cpy1 = shape.cpy1;\n let cpx2 = shape.cpx2;\n let cpy2 = shape.cpy2;\n let percent = shape.percent;\n if (percent === 0) {\n return;\n }\n\n ctx.moveTo(x1, y1);\n\n if (cpx2 == null || cpy2 == null) {\n if (percent < 1) {\n quadraticSubdivide(x1, cpx1, x2, percent, out);\n cpx1 = out[1];\n x2 = out[2];\n quadraticSubdivide(y1, cpy1, y2, percent, out);\n cpy1 = out[1];\n y2 = out[2];\n }\n\n ctx.quadraticCurveTo(\n cpx1, cpy1,\n x2, y2\n );\n }\n else {\n if (percent < 1) {\n cubicSubdivide(x1, cpx1, cpx2, x2, percent, out);\n cpx1 = out[1];\n cpx2 = out[2];\n x2 = out[3];\n cubicSubdivide(y1, cpy1, cpy2, y2, percent, out);\n cpy1 = out[1];\n cpy2 = out[2];\n y2 = out[3];\n }\n ctx.bezierCurveTo(\n cpx1, cpy1,\n cpx2, cpy2,\n x2, y2\n );\n }\n }\n\n /**\n * Get point at percent\n */\n pointAt(t: number) {\n return someVectorAt(this.shape, t, false);\n }\n\n /**\n * Get tangent at percent\n */\n tangentAt(t: number) {\n const p = someVectorAt(this.shape, t, true);\n return vec2.normalize(p, p);\n }\n};\n\nBezierCurve.prototype.type = 'bezier-curve';\n\nexport default BezierCurve;\n", "/**\n * \u5706\u5F27\n */\n\nimport Path, { PathProps } from '../Path';\n\nexport class ArcShape {\n cx = 0;\n cy = 0;\n r = 0;\n startAngle = 0;\n endAngle = Math.PI * 2\n clockwise? = true\n}\n\nexport interface ArcProps extends PathProps {\n shape?: Partial\n}\n\nclass Arc extends Path {\n\n shape: ArcShape\n\n constructor(opts?: ArcProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new ArcShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: ArcShape) {\n\n const x = shape.cx;\n const y = shape.cy;\n const r = Math.max(shape.r, 0);\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n const clockwise = shape.clockwise;\n\n const unitX = Math.cos(startAngle);\n const unitY = Math.sin(startAngle);\n\n ctx.moveTo(unitX * r + x, unitY * r + y);\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n }\n}\n\nArc.prototype.type = 'arc';\n\nexport default Arc;", "// CompoundPath to improve performance\n\nimport Path from './Path';\nimport PathProxy from '../core/PathProxy';\n\nexport interface CompoundPathShape {\n paths: Path[]\n}\n\nexport default class CompoundPath extends Path {\n\n type = 'compound'\n\n shape: CompoundPathShape\n\n private _updatePathDirty() {\n const paths = this.shape.paths;\n let dirtyPath = this.shapeChanged();\n for (let i = 0; i < paths.length; i++) {\n // Mark as dirty if any subpath is dirty\n dirtyPath = dirtyPath || paths[i].shapeChanged();\n }\n if (dirtyPath) {\n this.dirtyShape();\n }\n }\n\n beforeBrush() {\n this._updatePathDirty();\n const paths = this.shape.paths || [];\n const scale = this.getGlobalScale();\n // Update path scale\n for (let i = 0; i < paths.length; i++) {\n if (!paths[i].path) {\n paths[i].createPathProxy();\n }\n paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);\n }\n }\n\n buildPath(ctx: PathProxy | CanvasRenderingContext2D, shape: CompoundPathShape) {\n const paths = shape.paths || [];\n for (let i = 0; i < paths.length; i++) {\n paths[i].buildPath(ctx, paths[i].shape, true);\n }\n }\n\n afterBrush() {\n const paths = this.shape.paths || [];\n for (let i = 0; i < paths.length; i++) {\n paths[i].pathUpdated();\n }\n }\n\n getBoundingRect() {\n this._updatePathDirty.call(this);\n return Path.prototype.getBoundingRect.call(this);\n }\n}", "// TODO Should GradientObject been LinearGradientObject | RadialGradientObject\nexport interface GradientObject {\n\n id?: number\n\n type: string\n\n colorStops: GradientColorStop[]\n\n global: boolean\n}\n\nexport interface InnerGradientObject extends GradientObject {\n __canvasGradient: CanvasGradient\n}\n\nexport interface GradientColorStop {\n offset: number\n color: string\n}\n\nexport default class Gradient {\n\n id?: number\n\n type: string\n\n colorStops: GradientColorStop[]\n\n global: boolean\n\n constructor(colorStops: GradientColorStop[]) {\n this.colorStops = colorStops || [];\n }\n\n addColorStop(offset: number, color: string) {\n this.colorStops.push({\n offset,\n color\n });\n }\n}", "import Gradient, {GradientObject, GradientColorStop} from './Gradient';\n\nexport interface LinearGradientObject extends GradientObject {\n type: 'linear'\n\n x: number\n y: number\n x2: number\n y2: number\n}\n/**\n * x, y, x2, y2 are all percent from 0 to 1 when globalCoord is false\n */\n\nexport default class LinearGradient extends Gradient {\n\n type: 'linear'\n\n x: number\n y: number\n x2: number\n y2: number\n\n constructor(\n x: number, y: number, x2: number, y2: number,\n colorStops?: GradientColorStop[], globalCoord?: boolean\n ) {\n\n super(colorStops);\n\n // Should do nothing more in this constructor. Because gradient can be\n // declard by `color: {type: 'linear', colorStops: ...}`, where\n // this constructor will not be called.\n\n this.x = x == null ? 0 : x;\n\n this.y = y == null ? 0 : y;\n\n this.x2 = x2 == null ? 1 : x2;\n\n this.y2 = y2 == null ? 0 : y2;\n\n // Can be cloned\n this.type = 'linear';\n\n // If use global coord\n this.global = globalCoord || false;\n }\n};\n", "import Gradient, {GradientColorStop, GradientObject} from './Gradient';\n\nexport interface RadialGradientObject extends GradientObject {\n type: 'radial'\n\n x: number\n y: number\n r: number\n}\n/**\n * x, y, r are all percent from 0 to 1 when globalCoord is false\n */\nclass RadialGradient extends Gradient {\n\n type: 'radial'\n\n x: number\n y: number\n r: number\n\n constructor(\n x: number, y: number, r: number,\n colorStops?: GradientColorStop[], globalCoord?: boolean\n ) {\n super(colorStops);\n // Should do nothing more in this constructor. Because gradient can be\n // declard by `color: {type: 'radial', colorStops: ...}`, where\n // this constructor will not be called.\n this.x = x == null ? 0.5 : x;\n\n this.y = y == null ? 0.5 : y;\n\n this.r = r == null ? 0.5 : r;\n\n // Can be cloned\n this.type = 'radial';\n\n // If use global coord\n this.global = globalCoord || false;\n }\n}\n\nexport default RadialGradient;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Point, { PointLike } from './Point';\nimport BoundingRect from './BoundingRect';\nimport { MatrixArray } from './matrix';\n\nconst extent = [0, 0];\nconst extent2 = [0, 0];\n\nconst minTv = new Point();\nconst maxTv = new Point();\n\nclass OrientedBoundingRect {\n\n // lt, rt, rb, lb\n private _corners: Point[] = [];\n\n private _axes: Point[] = [];\n\n private _origin: number[] = [0, 0];\n\n constructor(rect?: BoundingRect, transform?: MatrixArray) {\n for (let i = 0; i < 4; i++) {\n this._corners[i] = new Point();\n }\n for (let i = 0; i < 2; i++) {\n this._axes[i] = new Point();\n }\n\n if (rect) {\n this.fromBoundingRect(rect, transform);\n }\n }\n\n fromBoundingRect(rect: BoundingRect, transform?: MatrixArray) {\n const corners = this._corners;\n const axes = this._axes;\n const x = rect.x;\n const y = rect.y;\n const x2 = x + rect.width;\n const y2 = y + rect.height;\n corners[0].set(x, y);\n corners[1].set(x2, y);\n corners[2].set(x2, y2);\n corners[3].set(x, y2);\n\n if (transform) {\n for (let i = 0; i < 4; i++) {\n corners[i].transform(transform);\n }\n }\n\n // Calculate axes\n Point.sub(axes[0], corners[1], corners[0]);\n Point.sub(axes[1], corners[3], corners[0]);\n axes[0].normalize();\n axes[1].normalize();\n\n // Calculate projected origin\n for (let i = 0; i < 2; i++) {\n this._origin[i] = axes[i].dot(corners[0]);\n }\n }\n\n /**\n * If intersect with another OBB\n * @param other Bounding rect to be intersected with\n * @param mtv Calculated .\n * If it's not overlapped. it means needs to move given rect with Maximum Translation Vector to be overlapped.\n * Else it means needs to move given rect with Minimum Translation Vector to be not overlapped.\n */\n intersect(other: OrientedBoundingRect, mtv?: PointLike): boolean {\n // OBB collision with SAT method\n\n let overlapped = true;\n const noMtv = !mtv;\n minTv.set(Infinity, Infinity);\n maxTv.set(0, 0);\n // Check two axes for both two obb.\n if (!this._intersectCheckOneSide(this, other, minTv, maxTv, noMtv, 1)) {\n overlapped = false;\n if (noMtv) {\n // Early return if no need to calculate mtv\n return overlapped;\n }\n }\n if (!this._intersectCheckOneSide(other, this, minTv, maxTv, noMtv, -1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n\n if (!noMtv) {\n Point.copy(mtv, overlapped ? minTv : maxTv);\n }\n\n return overlapped;\n }\n\n\n private _intersectCheckOneSide(\n self: OrientedBoundingRect,\n other: OrientedBoundingRect,\n minTv: Point,\n maxTv: Point,\n noMtv: boolean,\n inverse: 1 | -1\n ): boolean {\n let overlapped = true;\n for (let i = 0; i < 2; i++) {\n const axis = this._axes[i];\n this._getProjMinMaxOnAxis(i, self._corners, extent);\n this._getProjMinMaxOnAxis(i, other._corners, extent2);\n\n // Not overlap on the any axis.\n if (extent[1] < extent2[0] || extent[0] > extent2[1]) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n const dist0 = Math.abs(extent2[0] - extent[1]);\n const dist1 = Math.abs(extent[0] - extent2[1]);\n\n // Find longest distance of all axes.\n if (Math.min(dist0, dist1) > maxTv.len()) {\n if (dist0 < dist1) {\n Point.scale(maxTv, axis, -dist0 * inverse);\n }\n else {\n Point.scale(maxTv, axis, dist1 * inverse);\n }\n }\n }\n else if (minTv) {\n const dist0 = Math.abs(extent2[0] - extent[1]);\n const dist1 = Math.abs(extent[0] - extent2[1]);\n\n if (Math.min(dist0, dist1) < minTv.len()) {\n if (dist0 < dist1) {\n Point.scale(minTv, axis, dist0 * inverse);\n }\n else {\n Point.scale(minTv, axis, -dist1 * inverse);\n }\n }\n }\n }\n return overlapped;\n }\n\n private _getProjMinMaxOnAxis(dim: number, corners: Point[], out: number[]) {\n const axis = this._axes[dim];\n const origin = this._origin;\n const proj = corners[0].dot(axis) + origin[dim];\n let min = proj;\n let max = proj;\n\n for (let i = 1; i < corners.length; i++) {\n const proj = corners[i].dot(axis) + origin[dim];\n min = Math.min(proj, min);\n max = Math.max(proj, max);\n }\n\n out[0] = min;\n out[1] = max;\n }\n}\n\nexport default OrientedBoundingRect;", "/**\n * Displayable for incremental rendering. It will be rendered in a separate layer\n * IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables`\n * addDisplayables will render the added displayables incremetally.\n *\n * It use a notClear flag to tell the painter don't clear the layer if it's the first element.\n *\n * It's not available for SVG rendering.\n */\nimport Displayble from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { MatrixArray } from '../core/matrix';\nimport Group from './Group';\n\nconst m: MatrixArray = [];\n// TODO Style override ?\n\nexport default class IncrementalDisplayable extends Displayble {\n\n notClear: boolean = true\n\n incremental = true\n\n private _displayables: Displayble[] = []\n private _temporaryDisplayables: Displayble[] = []\n\n private _cursor = 0\n\n traverse(\n cb: (this: T, el: this) => void,\n context: T\n ) {\n cb.call(context, this);\n }\n\n useStyle() {\n // Use an empty style\n // PENDING\n this.style = {};\n }\n // getCurrentCursor / updateCursorAfterBrush\n // is used in graphic.ts. It's not provided for developers\n getCursor() {\n return this._cursor;\n }\n // Update cursor after brush.\n innerAfterBrush() {\n this._cursor = this._displayables.length;\n }\n\n clearDisplaybles() {\n this._displayables = [];\n this._temporaryDisplayables = [];\n this._cursor = 0;\n this.markRedraw();\n\n this.notClear = false;\n }\n\n clearTemporalDisplayables() {\n this._temporaryDisplayables = [];\n }\n\n addDisplayable(displayable: Displayble, notPersistent?: boolean) {\n if (notPersistent) {\n this._temporaryDisplayables.push(displayable);\n }\n else {\n this._displayables.push(displayable);\n }\n this.markRedraw();\n }\n\n addDisplayables(displayables: Displayble[], notPersistent?: boolean) {\n notPersistent = notPersistent || false;\n for (let i = 0; i < displayables.length; i++) {\n this.addDisplayable(displayables[i], notPersistent);\n }\n }\n\n getDisplayables(): Displayble[] {\n return this._displayables;\n }\n\n getTemporalDisplayables(): Displayble[] {\n return this._temporaryDisplayables;\n }\n\n eachPendingDisplayable(cb: (displayable: Displayble) => void) {\n for (let i = this._cursor; i < this._displayables.length; i++) {\n cb && cb(this._displayables[i]);\n }\n for (let i = 0; i < this._temporaryDisplayables.length; i++) {\n cb && cb(this._temporaryDisplayables[i]);\n }\n }\n\n update() {\n this.updateTransform();\n for (let i = this._cursor; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n // PENDING\n displayable.parent = this as unknown as Group;\n displayable.update();\n displayable.parent = null;\n }\n for (let i = 0; i < this._temporaryDisplayables.length; i++) {\n const displayable = this._temporaryDisplayables[i];\n // PENDING\n displayable.parent = this as unknown as Group;\n displayable.update();\n displayable.parent = null;\n }\n }\n\n getBoundingRect() {\n if (!this._rect) {\n const rect = new BoundingRect(Infinity, Infinity, -Infinity, -Infinity);\n for (let i = 0; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n const childRect = displayable.getBoundingRect().clone();\n if (displayable.needLocalTransform()) {\n childRect.applyTransform(displayable.getLocalTransform(m));\n }\n rect.union(childRect);\n }\n this._rect = rect;\n }\n return this._rect;\n }\n\n contain(x: number, y: number): boolean {\n const localPos = this.transformCoordToLocal(x, y);\n const rect = this.getBoundingRect();\n\n if (rect.contain(localPos[0], localPos[1])) {\n for (let i = 0; i < this._displayables.length; i++) {\n const displayable = this._displayables[i];\n if (displayable.contain(x, y)) {\n return true;\n }\n }\n }\n return false;\n }\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Basic transitions in the same series when shapes are the same.\n\nimport {\n AnimationOptionMixin,\n AnimationDelayCallbackParam,\n PayloadAnimationPart,\n AnimationOption\n} from '../util/types';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n isObject,\n retrieve2\n} from 'zrender/src/core/util';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Group from 'zrender/src/graphic/Group';\nimport { makeInner } from '../util/model';\n\n// Stored properties for further transition.\n\nexport const transitionStore = makeInner<{\n oldStyle: Displayable['style']\n}, Displayable>();\n\n\ntype AnimateOrSetPropsOption = {\n dataIndex?: number;\n cb?: () => void;\n during?: (percent: number) => void;\n removeOpt?: AnimationOption\n isFrom?: boolean;\n};\n\n/**\n * Return null if animation is disabled.\n */\nexport function getAnimationConfig(\n animationType: 'init' | 'update' | 'remove',\n animatableModel: Model,\n dataIndex: number,\n // Extra opts can override the option in animatable model.\n extraOpts?: Pick,\n // TODO It's only for pictorial bar now.\n extraDelayParams?: unknown\n): Pick | null {\n let animationPayload: PayloadAnimationPart;\n // Check if there is global animation configuration from dataZoom/resize can override the config in option.\n // If animation is enabled. Will use this animation config in payload.\n // If animation is disabled. Just ignore it.\n if (animatableModel && animatableModel.ecModel) {\n const updatePayload = animatableModel.ecModel.getUpdatePayload();\n animationPayload = (updatePayload && updatePayload.animation) as PayloadAnimationPart;\n }\n const animationEnabled = animatableModel && animatableModel.isAnimationEnabled();\n\n const isUpdate = animationType === 'update';\n\n if (animationEnabled) {\n let duration: number | Function;\n let easing: AnimationEasing;\n let delay: number | Function;\n if (extraOpts) {\n duration = retrieve2(extraOpts.duration, 200);\n easing = retrieve2(extraOpts.easing, 'cubicOut');\n delay = 0;\n }\n else {\n duration = animatableModel.getShallow(\n isUpdate ? 'animationDurationUpdate' : 'animationDuration'\n );\n easing = animatableModel.getShallow(\n isUpdate ? 'animationEasingUpdate' : 'animationEasing'\n );\n delay = animatableModel.getShallow(\n isUpdate ? 'animationDelayUpdate' : 'animationDelay'\n );\n }\n // animation from payload has highest priority.\n if (animationPayload) {\n animationPayload.duration != null && (duration = animationPayload.duration);\n animationPayload.easing != null && (easing = animationPayload.easing);\n animationPayload.delay != null && (delay = animationPayload.delay);\n }\n if (typeof delay === 'function') {\n delay = delay(\n dataIndex as number,\n extraDelayParams\n );\n }\n if (typeof duration === 'function') {\n duration = duration(dataIndex as number);\n }\n const config = {\n duration: duration as number || 0,\n delay: delay as number,\n easing\n };\n\n return config;\n }\n else {\n return null;\n }\n}\n\nfunction animateOrSetProps(\n animationType: 'init' | 'update' | 'remove',\n el: Element,\n props: Props,\n animatableModel?: Model & {\n getAnimationDelayParams?: (el: Element, dataIndex: number) => AnimationDelayCallbackParam\n },\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n let isFrom = false;\n let removeOpt: AnimationOption;\n if (typeof dataIndex === 'function') {\n during = cb;\n cb = dataIndex;\n dataIndex = null;\n }\n else if (isObject(dataIndex)) {\n cb = dataIndex.cb;\n during = dataIndex.during;\n isFrom = dataIndex.isFrom;\n removeOpt = dataIndex.removeOpt;\n dataIndex = dataIndex.dataIndex;\n }\n\n const isRemove = (animationType === 'remove');\n\n if (!isRemove) {\n // Must stop the remove animation.\n el.stopAnimation('remove');\n }\n\n const animationConfig = getAnimationConfig(\n animationType,\n animatableModel,\n dataIndex as number,\n isRemove ? (removeOpt || {}) : null,\n (animatableModel && animatableModel.getAnimationDelayParams)\n ? animatableModel.getAnimationDelayParams(el, dataIndex as number)\n : null\n );\n if (animationConfig && animationConfig.duration > 0) {\n const duration = animationConfig.duration;\n const animationDelay = animationConfig.delay;\n const animationEasing = animationConfig.easing;\n\n const animateConfig: ElementAnimateConfig = {\n duration: duration as number,\n delay: animationDelay as number || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n // Set to final state in update/init animation.\n // So the post processing based on the path shape can be done correctly.\n setToFinal: !isRemove,\n scope: animationType,\n during: during\n };\n\n isFrom\n ? el.animateFrom(props, animateConfig)\n : el.animateTo(props, animateConfig);\n }\n else {\n el.stopAnimation();\n // If `isFrom`, the props is the \"from\" props.\n !isFrom && el.attr(props);\n // Call during at least once.\n during && during(1);\n cb && (cb as AnimateOrSetPropsOption['cb'])();\n }\n}\n\n\n\n/**\n * Update graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n * @example\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, dataIndex, function () { console.log('Animation done!'); });\n * // Or\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, function () { console.log('Animation done!'); });\n */\n function updateProps(\n el: Element,\n props: Props,\n // TODO: TYPE AnimatableModel\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);\n}\n\nexport {updateProps};\n\n/**\n * Init graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n */\nexport function initProps(\n el: Element,\n props: Props,\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n animateOrSetProps('init', el, props, animatableModel, dataIndex, cb, during);\n}\n\n/**\n * If element is removed.\n * It can determine if element is having remove animation.\n */\n export function isElementRemoved(el: Element) {\n if (!el.__zr) {\n return true;\n }\n for (let i = 0; i < el.animators.length; i++) {\n const animator = el.animators[i];\n if (animator.scope === 'remove') {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Remove graphic element\n */\nexport function removeElement(\n el: Element,\n props: Props,\n animatableModel?: Model,\n dataIndex?: AnimateOrSetPropsOption['dataIndex'] | AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption,\n cb?: AnimateOrSetPropsOption['cb'] | AnimateOrSetPropsOption['during'],\n during?: AnimateOrSetPropsOption['during']\n) {\n // Don't do remove animation twice.\n if (isElementRemoved(el)) {\n return;\n }\n\n animateOrSetProps('remove', el, props, animatableModel, dataIndex, cb, during);\n}\n\nfunction fadeOutDisplayable(\n el: Displayable,\n animatableModel?: Model,\n dataIndex?: number,\n done?: AnimateOrSetPropsOption['cb']\n) {\n el.removeTextContent();\n el.removeTextGuideLine();\n removeElement(el, {\n style: {\n opacity: 0\n }\n }, animatableModel, dataIndex, done);\n}\n\nexport function removeElementWithFadeOut(\n el: Element,\n animatableModel?: Model,\n dataIndex?: number\n) {\n function doRemove() {\n el.parent && el.parent.remove(el);\n }\n // Hide label and labelLine first\n // TODO Also use fade out animation?\n if (!el.isGroup) {\n fadeOutDisplayable(el as Displayable, animatableModel, dataIndex, doRemove);\n }\n else {\n (el as Group).traverse(function (disp: Displayable) {\n if (!disp.isGroup) {\n // Can invoke doRemove multiple times.\n fadeOutDisplayable(disp as Displayable, animatableModel, dataIndex, doRemove);\n }\n });\n }\n}\n\n/**\n * Save old style for style transition in universalTransition module.\n * It's used when element will be reused in each render.\n * For chart like map, heatmap, which will always create new element.\n * We don't need to save this because universalTransition can get old style from the old element\n */\nexport function saveOldStyle(el: Displayable) {\n transitionStore(el).oldStyle = el.style;\n}\n\nexport function getOldStyle(el: Displayable) {\n return transitionStore(el).oldStyle;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { Dictionary } from 'zrender/src/core/types';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport Model from '../model/Model';\nimport {\n LabelOption,\n DisplayState,\n TextCommonOption,\n StatesOptionMixin,\n DisplayStateNonNormal,\n ColorString,\n ZRStyleProps,\n AnimationOptionMixin,\n InterpolatableValue,\n SeriesDataType\n} from '../util/types';\nimport GlobalModel from '../model/Global';\nimport { isFunction, retrieve2, extend, keys, trim } from 'zrender/src/core/util';\nimport { SPECIAL_STATES, DISPLAY_STATES } from '../util/states';\nimport { deprecateReplaceLog } from '../util/log';\nimport { makeInner, interpolateRawValues } from '../util/model';\nimport SeriesData from '../data/SeriesData';\nimport { initProps, updateProps } from '../util/graphic';\nimport { getECData } from '../util/innerStore';\n\ntype TextCommonParams = {\n /**\n * Whether disable drawing box of block (outer most).\n */\n disableBox?: boolean\n /**\n * Specify a color when color is 'inherit',\n * If inheritColor specified, it is used as default textFill.\n */\n inheritColor?: ColorString\n\n /**\n * Specify a opacity when opacity is not given.\n */\n defaultOpacity?: number\n\n defaultOutsidePosition?: LabelOption['position']\n\n /**\n * If support legacy 'auto' for 'inherit' usage.\n */\n // supportLegacyAuto?: boolean\n\n textStyle?: ZRStyleProps\n};\nconst EMPTY_OBJ = {};\n\ninterface SetLabelStyleOpt extends TextCommonParams {\n defaultText?: string | ((\n labelDataIndex: TLabelDataIndex,\n opt: SetLabelStyleOpt,\n interpolatedValue?: InterpolatableValue\n ) => string);\n // Fetch text by:\n // opt.labelFetcher.getFormattedLabel(\n // opt.labelDataIndex, 'normal'/'emphasis', null, opt.labelDimIndex, opt.labelProp\n // )\n labelFetcher?: {\n getFormattedLabel: (\n // In MapDraw case it can be string (region name)\n labelDataIndex: TLabelDataIndex,\n status: DisplayState,\n dataType?: string,\n labelDimIndex?: number,\n formatter?: string | ((params: object) => string),\n // If provided, the implementation of `getFormattedLabel` can use it\n // to generate the final label text.\n extendParams?: {\n interpolatedValue: InterpolatableValue\n }\n ) => string;\n };\n labelDataIndex?: TLabelDataIndex;\n labelDimIndex?: number;\n\n /**\n * Inject a setter of text for the text animation case.\n */\n enableTextSetter?: boolean\n}\ntype LabelModel = Model string);\n showDuringLabel?: boolean // Currently only supported by line charts\n}>;\ntype LabelModelForText = Model & {\n formatter?: string | ((params: any) => string);\n }>;\n\ntype LabelStatesModels = Partial> & {normal: LabelModel};\n\nexport function setLabelText(label: ZRText, labelTexts: Record) {\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const text = labelTexts[stateName];\n const state = label.ensureState(stateName);\n state.style = state.style || {};\n state.style.text = text;\n }\n\n const oldStates = label.currentStates.slice();\n label.clearStates(true);\n label.setStyle({ text: labelTexts.normal });\n label.useStates(oldStates, true);\n}\n\nfunction getLabelText(\n opt: SetLabelStyleOpt,\n stateModels: LabelStatesModels,\n interpolatedValue?: InterpolatableValue\n): Record {\n const labelFetcher = opt.labelFetcher;\n const labelDataIndex = opt.labelDataIndex;\n const labelDimIndex = opt.labelDimIndex;\n const normalModel = stateModels.normal;\n let baseText;\n if (labelFetcher) {\n baseText = labelFetcher.getFormattedLabel(\n labelDataIndex, 'normal',\n null,\n labelDimIndex,\n normalModel && normalModel.get('formatter'),\n interpolatedValue != null ? {\n interpolatedValue: interpolatedValue\n } : null\n );\n }\n if (baseText == null) {\n baseText = isFunction(opt.defaultText)\n ? opt.defaultText(labelDataIndex, opt, interpolatedValue)\n : opt.defaultText;\n }\n\n const statesText = {\n normal: baseText\n } as Record;\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const stateModel = stateModels[stateName];\n statesText[stateName] = retrieve2(labelFetcher\n ? labelFetcher.getFormattedLabel(\n labelDataIndex,\n stateName,\n null,\n labelDimIndex,\n stateModel && stateModel.get('formatter')\n )\n : null, baseText);\n }\n return statesText;\n}\n/**\n * Set normal styles and emphasis styles about text on target element\n * If target is a ZRText. It will create a new style object.\n * If target is other Element. It will create or reuse ZRText which is attached on the target.\n * And create a new style object.\n *\n * NOTICE: Because the style on ZRText will be replaced with new(only x, y are keeped).\n * So please update the style on ZRText after use this method.\n */\n// eslint-disable-next-line\nfunction setLabelStyle(\n targetEl: ZRText,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n): void;\n// eslint-disable-next-line\nfunction setLabelStyle(\n targetEl: Element,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n): void;\nfunction setLabelStyle(\n targetEl: Element,\n labelStatesModels: LabelStatesModels,\n opt?: SetLabelStyleOpt,\n stateSpecified?: Partial>\n // TODO specified position?\n) {\n opt = opt || EMPTY_OBJ;\n const isSetOnText = targetEl instanceof ZRText;\n let needsCreateText = false;\n for (let i = 0; i < DISPLAY_STATES.length; i++) {\n const stateModel = labelStatesModels[DISPLAY_STATES[i]];\n if (stateModel && stateModel.getShallow('show')) {\n needsCreateText = true;\n break;\n }\n }\n let textContent = isSetOnText ? targetEl as ZRText : targetEl.getTextContent();\n if (needsCreateText) {\n if (!isSetOnText) {\n // Reuse the previous\n if (!textContent) {\n textContent = new ZRText();\n targetEl.setTextContent(textContent);\n }\n // Use same state proxy\n if (targetEl.stateProxy) {\n textContent.stateProxy = targetEl.stateProxy;\n }\n }\n const labelStatesTexts = getLabelText(opt, labelStatesModels);\n\n const normalModel = labelStatesModels.normal;\n const showNormal = !!normalModel.getShallow('show');\n const normalStyle = createTextStyle(\n normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText\n );\n normalStyle.text = labelStatesTexts.normal;\n if (!isSetOnText) {\n // Always create new\n targetEl.setTextConfig(createTextConfig(normalModel, opt, false));\n }\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const stateModel = labelStatesModels[stateName];\n\n if (stateModel) {\n const stateObj = textContent.ensureState(stateName);\n const stateShow = !!retrieve2(stateModel.getShallow('show'), showNormal);\n if (stateShow !== showNormal) {\n stateObj.ignore = !stateShow;\n }\n stateObj.style = createTextStyle(\n stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText\n );\n stateObj.style.text = labelStatesTexts[stateName];\n\n if (!isSetOnText) {\n const targetElEmphasisState = targetEl.ensureState(stateName);\n targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true);\n }\n }\n }\n\n // PENDING: if there is many requirements that emphasis position\n // need to be different from normal position, we might consider\n // auto slient is those cases.\n textContent.silent = !!normalModel.getShallow('silent');\n // Keep x and y\n if (textContent.style.x != null) {\n normalStyle.x = textContent.style.x;\n }\n if (textContent.style.y != null) {\n normalStyle.y = textContent.style.y;\n }\n textContent.ignore = !showNormal;\n // Always create new style.\n textContent.useStyle(normalStyle);\n textContent.dirty();\n\n if (opt.enableTextSetter) {\n labelInner(textContent).setLabelText = function (interpolatedValue: InterpolatableValue) {\n const labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue);\n setLabelText(textContent, labelStatesTexts);\n };\n }\n }\n else if (textContent) {\n // Not display rich text.\n textContent.ignore = true;\n }\n targetEl.dirty();\n}\nexport { setLabelStyle };\n\nexport function getLabelStatesModels(\n itemModel: Model & Partial>>,\n labelName?: LabelName\n): Record {\n labelName = (labelName || 'label') as LabelName;\n const statesModels = {\n normal: itemModel.getModel(labelName) as LabelModel\n } as Record;\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelName]);\n }\n return statesModels;\n}\n/**\n * Set basic textStyle properties.\n */\nexport function createTextStyle(\n textStyleModel: Model,\n specifiedTextStyle?: TextStyleProps, // Fixed style in the code. Can't be set by model.\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean // If text is attached on an element. If so, auto color will handling in zrender.\n) {\n const textStyle: TextStyleProps = {};\n setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n specifiedTextStyle && extend(textStyle, specifiedTextStyle);\n // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n return textStyle;\n}\nexport function createTextConfig(\n textStyleModel: Model,\n opt?: Pick,\n isNotNormal?: boolean\n) {\n opt = opt || {};\n const textConfig: ElementTextConfig = {};\n let labelPosition;\n let labelRotate = textStyleModel.getShallow('rotate');\n const labelDistance = retrieve2(textStyleModel.getShallow('distance'), isNotNormal ? null : 5);\n const labelOffset = textStyleModel.getShallow('offset');\n labelPosition = textStyleModel.getShallow('position')\n || (isNotNormal ? null : 'inside');\n // 'outside' is not a valid zr textPostion value, but used\n // in bar series, and magric type should be considered.\n labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top');\n if (labelPosition != null) {\n textConfig.position = labelPosition;\n }\n if (labelOffset != null) {\n textConfig.offset = labelOffset;\n }\n if (labelRotate != null) {\n labelRotate *= Math.PI / 180;\n textConfig.rotation = labelRotate;\n }\n if (labelDistance != null) {\n textConfig.distance = labelDistance;\n }\n // fill and auto is determined by the color of path fill if it's not specified by developers.\n textConfig.outsideFill = textStyleModel.get('color') === 'inherit'\n ? (opt.inheritColor || null)\n : 'auto';\n return textConfig;\n}\n/**\n * The uniform entry of set text style, that is, retrieve style definitions\n * from `model` and set to `textStyle` object.\n *\n * Never in merge mode, but in overwrite mode, that is, all of the text style\n * properties will be set. (Consider the states of normal and emphasis and\n * default value can be adopted, merge would make the logic too complicated\n * to manage.)\n */\nfunction setTextStyleCommon(\n textStyle: TextStyleProps,\n textStyleModel: Model,\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean\n) {\n // Consider there will be abnormal when merge hover style to normal style if given default value.\n opt = opt || EMPTY_OBJ;\n const ecModel = textStyleModel.ecModel;\n const globalTextStyle = ecModel && ecModel.option.textStyle;\n // Consider case:\n // {\n // data: [{\n // value: 12,\n // label: {\n // rich: {\n // // no 'a' here but using parent 'a'.\n // }\n // }\n // }],\n // rich: {\n // a: { ... }\n // }\n // }\n const richItemNames = getRichItemNames(textStyleModel);\n let richResult: TextStyleProps['rich'];\n if (richItemNames) {\n richResult = {};\n for (const name in richItemNames) {\n if (richItemNames.hasOwnProperty(name)) {\n // Cascade is supported in rich.\n const richTextStyle = textStyleModel.getModel(['rich', name]);\n // In rich, never `disableBox`.\n // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n // the default color `'blue'` will not be adopted if no color declared in `rich`.\n // That might confuses users. So probably we should put `textStyleModel` as the\n // root ancestor of the `richTextStyle`. But that would be a break change.\n setTokenTextStyle(\n richResult[name] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true\n );\n }\n }\n }\n if (richResult) {\n textStyle.rich = richResult;\n }\n const overflow = textStyleModel.get('overflow');\n if (overflow) {\n textStyle.overflow = overflow;\n }\n const margin = textStyleModel.get('minMargin');\n if (margin != null) {\n textStyle.margin = margin;\n }\n setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n}\n// Consider case:\n// {\n// data: [{\n// value: 12,\n// label: {\n// rich: {\n// // no 'a' here but using parent 'a'.\n// }\n// }\n// }],\n// rich: {\n// a: { ... }\n// }\n// }\n// TODO TextStyleModel\nfunction getRichItemNames(textStyleModel: Model) {\n // Use object to remove duplicated names.\n let richItemNameMap: Dictionary;\n while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {\n const rich = (textStyleModel.option || EMPTY_OBJ as LabelOption).rich;\n if (rich) {\n richItemNameMap = richItemNameMap || {};\n const richKeys = keys(rich);\n for (let i = 0; i < richKeys.length; i++) {\n const richKey = richKeys[i];\n richItemNameMap[richKey] = 1;\n }\n }\n textStyleModel = textStyleModel.parentModel;\n }\n return richItemNameMap;\n}\nconst TEXT_PROPS_WITH_GLOBAL = [\n 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'\n] as const;\nconst TEXT_PROPS_SELF = [\n 'align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign'\n] as const;\nconst TEXT_PROPS_BOX = [\n 'padding', 'borderWidth', 'borderRadius', 'borderDashOffset',\n 'backgroundColor', 'borderColor',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'\n] as const;\n\nfunction setTokenTextStyle(\n textStyle: TextStyleProps['rich'][string],\n textStyleModel: Model,\n globalTextStyle: LabelOption,\n opt?: Pick,\n isNotNormal?: boolean,\n isAttached?: boolean,\n isBlock?: boolean,\n inRich?: boolean\n) {\n // In merge mode, default value should not be given.\n globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ;\n const inheritColor = opt && opt.inheritColor;\n let fillColor = textStyleModel.getShallow('color');\n let strokeColor = textStyleModel.getShallow('textBorderColor');\n let opacity = retrieve2(textStyleModel.getShallow('opacity'), globalTextStyle.opacity);\n if (fillColor === 'inherit' || fillColor === 'auto') {\n if (__DEV__) {\n if (fillColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n if (inheritColor) {\n fillColor = inheritColor;\n }\n else {\n fillColor = null;\n }\n }\n if (strokeColor === 'inherit' || (strokeColor === 'auto')) {\n if (__DEV__) {\n if (strokeColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n if (inheritColor) {\n strokeColor = inheritColor;\n }\n else {\n strokeColor = null;\n }\n }\n if (!isAttached) {\n // Only use default global textStyle.color if text is individual.\n // Otherwise it will use the strategy of attached text color because text may be on a path.\n fillColor = fillColor || globalTextStyle.color;\n strokeColor = strokeColor || globalTextStyle.textBorderColor;\n }\n if (fillColor != null) {\n textStyle.fill = fillColor;\n }\n if (strokeColor != null) {\n textStyle.stroke = strokeColor;\n }\n const textBorderWidth = retrieve2(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth);\n if (textBorderWidth != null) {\n textStyle.lineWidth = textBorderWidth;\n }\n const textBorderType = retrieve2(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType);\n if (textBorderType != null) {\n textStyle.lineDash = textBorderType as any;\n }\n const textBorderDashOffset = retrieve2(\n textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset\n );\n if (textBorderDashOffset != null) {\n textStyle.lineDashOffset = textBorderDashOffset;\n }\n\n if (!isNotNormal && (opacity == null) && !inRich) {\n opacity = opt && opt.defaultOpacity;\n }\n if (opacity != null) {\n textStyle.opacity = opacity;\n }\n\n // TODO\n if (!isNotNormal && !isAttached) {\n // Set default finally.\n if (textStyle.fill == null && opt.inheritColor) {\n textStyle.fill = opt.inheritColor;\n }\n }\n // Do not use `getFont` here, because merge should be supported, where\n // part of these properties may be changed in emphasis style, and the\n // others should remain their original value got from normal style.\n for (let i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) {\n const key = TEXT_PROPS_WITH_GLOBAL[i];\n const val = retrieve2(textStyleModel.getShallow(key), globalTextStyle[key]);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n for (let i = 0; i < TEXT_PROPS_SELF.length; i++) {\n const key = TEXT_PROPS_SELF[i];\n const val = textStyleModel.getShallow(key);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n if (textStyle.verticalAlign == null) {\n const baseline = textStyleModel.getShallow('baseline');\n if (baseline != null) {\n textStyle.verticalAlign = baseline;\n }\n }\n if (!isBlock || !opt.disableBox) {\n for (let i = 0; i < TEXT_PROPS_BOX.length; i++) {\n const key = TEXT_PROPS_BOX[i];\n const val = textStyleModel.getShallow(key);\n if (val != null) {\n (textStyle as any)[key] = val;\n }\n }\n\n const borderType = textStyleModel.getShallow('borderType');\n if (borderType != null) {\n textStyle.borderDash = borderType as any;\n }\n\n if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) {\n if (__DEV__) {\n if (textStyle.backgroundColor === 'auto') {\n deprecateReplaceLog('backgroundColor: \\'auto\\'', 'backgroundColor: \\'inherit\\'');\n }\n }\n textStyle.backgroundColor = inheritColor;\n }\n if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) {\n if (__DEV__) {\n if (textStyle.borderColor === 'auto') {\n deprecateReplaceLog('borderColor: \\'auto\\'', 'borderColor: \\'inherit\\'');\n }\n }\n textStyle.borderColor = inheritColor;\n }\n }\n}\n\nexport function getFont(\n opt: Pick,\n ecModel: GlobalModel\n) {\n const gTextStyleModel = ecModel && ecModel.getModel('textStyle');\n return trim([\n // FIXME in node-canvas fontWeight is before fontStyle\n opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '',\n opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '',\n (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px',\n opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'\n ].join(' '));\n}\n\nexport const labelInner = makeInner<{\n /**\n * Previous target value stored used for label.\n * It's mainly for text animation\n */\n prevValue?: InterpolatableValue\n /**\n * Target value stored used for label.\n */\n value?: InterpolatableValue\n /**\n * Current value in text animation.\n */\n interpolatedValue?: InterpolatableValue\n /**\n * If enable value animation\n */\n valueAnimation?: boolean\n /**\n * Label value precision during animation.\n */\n precision?: number | 'auto'\n\n /**\n * If enable value animation\n */\n statesModels?: LabelStatesModels\n /**\n * Default text getter during interpolation\n */\n defaultInterpolatedText?: (value: InterpolatableValue) => string\n /**\n * Change label text from interpolated text during animation\n */\n setLabelText?: (interpolatedValue?: InterpolatableValue) => void\n\n}, ZRText>();\n\nexport function setLabelValueAnimation(\n label: ZRText,\n labelStatesModels: LabelStatesModels,\n value: InterpolatableValue,\n getDefaultText: (value: InterpolatableValue) => string\n) {\n if (!label) {\n return;\n }\n\n const obj = labelInner(label);\n obj.prevValue = obj.value;\n obj.value = value;\n const normalLabelModel = labelStatesModels.normal;\n\n obj.valueAnimation = normalLabelModel.get('valueAnimation');\n\n if (obj.valueAnimation) {\n obj.precision = normalLabelModel.get('precision');\n obj.defaultInterpolatedText = getDefaultText;\n obj.statesModels = labelStatesModels;\n }\n}\n\nexport function animateLabelValue(\n textEl: ZRText,\n dataIndex: number,\n data: SeriesData,\n animatableModel: Model,\n labelFetcher: SetLabelStyleOpt['labelFetcher']\n) {\n const labelInnerStore = labelInner(textEl);\n if (!labelInnerStore.valueAnimation) {\n return;\n }\n const defaultInterpolatedText = labelInnerStore.defaultInterpolatedText;\n // Consider the case that being animating, do not use the `obj.value`,\n // Otherwise it will jump to the `obj.value` when this new animation started.\n const currValue = retrieve2(labelInnerStore.interpolatedValue, labelInnerStore.prevValue);\n const targetValue = labelInnerStore.value;\n\n function during(percent: number) {\n const interpolated = interpolateRawValues(\n data,\n labelInnerStore.precision,\n currValue,\n targetValue,\n percent\n );\n\n labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated;\n\n const labelText = getLabelText({\n labelDataIndex: dataIndex,\n labelFetcher: labelFetcher,\n defaultText: defaultInterpolatedText\n ? defaultInterpolatedText(interpolated)\n : interpolated + ''\n }, labelInnerStore.statesModels, interpolated);\n\n setLabelText(textEl, labelText);\n }\n\n (labelInnerStore.prevValue == null\n ? initProps\n : updateProps\n )(textEl, {}, animatableModel, dataIndex, null, during);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphicUtil from '../../util/graphic';\nimport {getFont} from '../../label/labelStyle';\nimport Model from '../Model';\nimport { LabelOption, ColorString } from '../../util/types';\nimport ZRText from 'zrender/src/graphic/Text';\n\nconst PATH_COLOR = ['textStyle', 'color'] as const;\n\nexport type LabelFontOption = Pick;\ntype LabelRectRelatedOption = Pick & LabelFontOption;\n\n// TODO Performance improvement?\nconst tmpRichText = new ZRText();\nclass TextStyleMixin {\n /**\n * Get color property or get color from option.textStyle.color\n */\n // TODO Callback\n getTextColor(this: Model, isEmphasis?: boolean): ColorString {\n const ecModel = this.ecModel;\n return this.getShallow('color')\n || (\n (!isEmphasis && ecModel) ? ecModel.get(PATH_COLOR) : null\n );\n }\n\n /**\n * Create font string from fontStyle, fontWeight, fontSize, fontFamily\n * @return {string}\n */\n getFont(this: Model) {\n return getFont({\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily')\n }, this.ecModel);\n }\n\n getTextRect(this: Model & TextStyleMixin, text: string): graphicUtil.BoundingRect {\n tmpRichText.useStyle({\n text,\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily'),\n verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline'),\n padding: this.getShallow('padding') as number[],\n lineHeight: this.getShallow('lineHeight'),\n rich: this.getShallow('rich')\n });\n tmpRichText.update();\n return tmpRichText.getBoundingRect();\n }\n};\n\nexport default TextStyleMixin;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { LineStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const LINE_STYLE_KEY_MAP = [\n ['lineWidth', 'width'],\n ['stroke', 'color'],\n ['opacity'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor'],\n ['lineDash', 'type'],\n ['lineDashOffset', 'dashOffset'],\n ['lineCap', 'cap'],\n ['lineJoin', 'join'],\n ['miterLimit']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\n\nconst getLineStyle = makeStyleMapper(LINE_STYLE_KEY_MAP);\n\ntype LineStyleKeys = 'lineWidth'\n | 'stroke'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor'\n | 'lineDash'\n | 'lineDashOffset'\n | 'lineCap'\n | 'lineJoin'\n | 'miterLimit';\n\nexport type LineStyleProps = Pick;\n\nclass LineStyleMixin {\n\n getLineStyle(\n this: Model,\n excludes?: readonly (keyof LineStyleOption)[]\n ): LineStyleProps {\n return getLineStyle(this, excludes);\n }\n\n};\n\nexport {LineStyleMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport makeStyleMapper from './makeStyleMapper';\nimport Model from '../Model';\nimport { ItemStyleOption } from '../../util/types';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\nexport const ITEM_STYLE_KEY_MAP = [\n ['fill', 'color'],\n ['stroke', 'borderColor'],\n ['lineWidth', 'borderWidth'],\n ['opacity'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor'],\n ['lineDash', 'borderType'],\n ['lineDashOffset', 'borderDashOffset'],\n ['lineCap', 'borderCap'],\n ['lineJoin', 'borderJoin'],\n ['miterLimit', 'borderMiterLimit']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n];\n\nconst getItemStyle = makeStyleMapper(ITEM_STYLE_KEY_MAP);\n\ntype ItemStyleKeys = 'fill'\n | 'stroke'\n | 'decal'\n | 'lineWidth'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor'\n | 'lineDash'\n | 'lineDashOffset'\n | 'lineCap'\n | 'lineJoin'\n | 'miterLimit';\n\nexport type ItemStyleProps = Pick;\n\nclass ItemStyleMixin {\n\n getItemStyle(\n this: Model,\n excludes?: readonly (keyof ItemStyleOption)[],\n includes?: readonly (keyof ItemStyleOption)[]\n ): ItemStyleProps {\n return getItemStyle(this, excludes, includes);\n }\n\n}\n\nexport {ItemStyleMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport env from 'zrender/src/core/env';\nimport {\n enableClassExtend,\n ExtendableConstructor,\n enableClassCheck,\n CheckableConstructor\n} from '../util/clazz';\n\nimport {AreaStyleMixin} from './mixin/areaStyle';\nimport TextStyleMixin from './mixin/textStyle';\nimport {LineStyleMixin} from './mixin/lineStyle';\nimport {ItemStyleMixin} from './mixin/itemStyle';\nimport GlobalModel from './Global';\nimport { AnimationOptionMixin, ModelOption } from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { mixin, clone, merge } from 'zrender/src/core/util';\n\n// Since model.option can be not only `Dictionary` but also primary types,\n// we do this conditional type to avoid getting type 'never';\ntype Key = Opt extends Dictionary\n ? keyof Opt : string;\ntype Value = Opt extends Dictionary\n ? (R extends keyof Opt ? Opt[R] : ModelOption)\n : ModelOption;\n\ninterface Model\n extends LineStyleMixin, ItemStyleMixin, TextStyleMixin, AreaStyleMixin {}\nclass Model { // TODO: TYPE use unkown insteadof any?\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n parentModel: Model;\n\n ecModel: GlobalModel;\n\n option: Opt; // TODO Opt should only be object.\n\n constructor(option?: Opt, parentModel?: Model, ecModel?: GlobalModel) {\n this.parentModel = parentModel;\n this.ecModel = ecModel;\n this.option = option;\n\n // Simple optimization\n // if (this.init) {\n // if (arguments.length <= 4) {\n // this.init(option, parentModel, ecModel, extraOpt);\n // }\n // else {\n // this.init.apply(this, arguments);\n // }\n // }\n }\n\n init(option: Opt, parentModel?: Model, ecModel?: GlobalModel, ...rest: any): void {}\n\n /**\n * Merge the input option to me.\n */\n mergeOption(option: Opt, ecModel?: GlobalModel): void {\n merge(this.option, option, true);\n }\n\n // FIXME:TS consider there is parentModel,\n // return type have to be ModelOption or can be Option?\n // (Is there any chance that parentModel value type is different?)\n get(\n path: R, ignoreParent?: boolean\n ): Opt[R];\n get(\n path: readonly [R], ignoreParent?: boolean\n ): Opt[R];\n get(\n path: readonly [R, S], ignoreParent?: boolean\n ): Opt[R][S];\n get(\n path: readonly [R, S, T], ignoreParent?: boolean\n ): Opt[R][S][T];\n // `path` can be 'xxx.yyy.zzz', so the return value type have to be `ModelOption`\n // TODO: TYPE strict key check?\n // get(path: string | string[], ignoreParent?: boolean): ModelOption;\n get(path: string | readonly string[], ignoreParent?: boolean): ModelOption {\n if (path == null) {\n return this.option;\n }\n\n return this._doGet(\n this.parsePath(path),\n !ignoreParent && this.parentModel\n );\n }\n\n getShallow(\n key: R, ignoreParent?: boolean\n ): Opt[R] {\n const option = this.option;\n\n let val = option == null ? option : option[key];\n if (val == null && !ignoreParent) {\n const parentModel = this.parentModel;\n if (parentModel) {\n // FIXME:TS do not know how to make it works\n val = parentModel.getShallow(key);\n }\n }\n return val as Opt[R];\n }\n\n // TODO At most 3 depth?\n getModel(\n path: R, parentModel?: Model\n ): Model;\n getModel(\n path: readonly [R], parentModel?: Model\n ): Model;\n getModel(\n path: readonly [R, S], parentModel?: Model\n ): Model;\n getModel(\n path: readonly [Ra] | readonly [Rb, S], parentModel?: Model\n ): Model | Model;\n getModel(\n path: readonly [R, S, T], parentModel?: Model\n ): Model;\n // `path` can be 'xxx.yyy.zzz', so the return value type have to be `Model`\n // getModel(path: string | string[], parentModel?: Model): Model;\n // TODO 'xxx.yyy.zzz' is deprecated\n getModel(path: string | readonly string[], parentModel?: Model): Model {\n const hasPath = path != null;\n const pathFinal = hasPath ? this.parsePath(path) : null;\n const obj = hasPath\n ? this._doGet(pathFinal)\n : this.option;\n\n parentModel = parentModel || (\n this.parentModel\n && this.parentModel.getModel(this.resolveParentPath(pathFinal) as [string])\n );\n\n return new Model(obj, parentModel, this.ecModel);\n }\n\n /**\n * Squash option stack into one.\n * parentModel will be removed after squashed.\n *\n * NOTE: resolveParentPath will not be applied here for simplicity. DON'T use this function\n * if resolveParentPath is modified.\n *\n * @param deepMerge If do deep merge. Default to be false.\n */\n // squash(\n // deepMerge?: boolean,\n // handleCallback?: (func: () => object) => object\n // ) {\n // const optionStack = [];\n // let model: Model = this;\n // while (model) {\n // if (model.option) {\n // optionStack.push(model.option);\n // }\n // model = model.parentModel;\n // }\n\n // const newOption = {} as Opt;\n // let option;\n // while (option = optionStack.pop()) { // Top down merge\n // if (isFunction(option) && handleCallback) {\n // option = handleCallback(option);\n // }\n // if (deepMerge) {\n // merge(newOption, option);\n // }\n // else {\n // extend(newOption, option);\n // }\n // }\n\n // // Remove parentModel\n // this.option = newOption;\n // this.parentModel = null;\n // }\n\n /**\n * If model has option\n */\n isEmpty(): boolean {\n return this.option == null;\n }\n\n restoreData(): void {}\n\n // Pending\n clone(): Model {\n const Ctor = this.constructor;\n return new (Ctor as any)(clone(this.option));\n }\n\n // setReadOnly(properties): void {\n // clazzUtil.setReadOnly(this, properties);\n // }\n\n // If path is null/undefined, return null/undefined.\n parsePath(path: string | readonly string[]): readonly string[] {\n if (typeof path === 'string') {\n return path.split('.');\n }\n return path;\n }\n\n // Resolve path for parent. Perhaps useful when parent use a different property.\n // Default to be a identity resolver.\n // Can be modified to a different resolver.\n resolveParentPath(path: readonly string[]): string[] {\n return path as string[];\n }\n\n // FIXME:TS check whether put this method here\n isAnimationEnabled(): boolean {\n if (!env.node && this.option) {\n if ((this.option as AnimationOptionMixin).animation != null) {\n return !!(this.option as AnimationOptionMixin).animation;\n }\n else if (this.parentModel) {\n return this.parentModel.isAnimationEnabled();\n }\n }\n }\n\n private _doGet(pathArr: readonly string[], parentModel?: Model>) {\n let obj = this.option;\n if (!pathArr) {\n return obj;\n }\n\n for (let i = 0; i < pathArr.length; i++) {\n // Ignore empty\n if (!pathArr[i]) {\n continue;\n }\n // obj could be number/string/... (like 0)\n obj = (obj && typeof obj === 'object')\n ? (obj as ModelOption)[pathArr[i] as keyof ModelOption] : null;\n if (obj == null) {\n break;\n }\n }\n if (obj == null && parentModel) {\n obj = parentModel._doGet(\n this.resolveParentPath(pathArr) as [string],\n parentModel.parentModel\n ) as any;\n }\n\n return obj;\n }\n};\n\ntype ModelConstructor = typeof Model\n & ExtendableConstructor\n & CheckableConstructor;\n\n// Enable Model.extend.\nenableClassExtend(Model as ModelConstructor);\nenableClassCheck(Model as ModelConstructor);\n\n\nmixin(Model, LineStyleMixin);\nmixin(Model, ItemStyleMixin);\nmixin(Model, AreaStyleMixin);\nmixin(Model, TextStyleMixin);\n\nexport default Model;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parseClassType, ClassManager} from './clazz';\nimport { ComponentOption, ComponentMainType, ComponentSubType, ComponentFullType } from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { makePrintable } from './log';\n\n// A random offset\nlet base = Math.round(Math.random() * 10);\n\n\n/**\n * @public\n * @param {string} type\n * @return {string}\n */\nexport function getUID(type: string): string {\n // Considering the case of crossing js context,\n // use Math.random to make id as unique as possible.\n return [(type || ''), base++].join('_');\n}\n\nexport interface SubTypeDefaulter {\n // return subType.\n (option: ComponentOption): ComponentSubType;\n}\n\nexport interface SubTypeDefaulterManager {\n registerSubTypeDefaulter: (componentType: string, defaulter: SubTypeDefaulter) => void;\n determineSubType: (componentType: string, option: ComponentOption) => string;\n}\n\n/**\n * Implements `SubTypeDefaulterManager` for `target`.\n */\nexport function enableSubTypeDefaulter(target: SubTypeDefaulterManager & ClassManager): void {\n const subTypeDefaulters: Dictionary = {};\n\n target.registerSubTypeDefaulter = function (\n componentType: ComponentFullType,\n defaulter: SubTypeDefaulter\n ): void {\n const componentTypeInfo = parseClassType(componentType);\n subTypeDefaulters[componentTypeInfo.main] = defaulter;\n };\n\n target.determineSubType = function (\n componentType: ComponentFullType,\n option: ComponentOption\n ): string {\n let type = option.type;\n if (!type) {\n const componentTypeMain = parseClassType(componentType).main;\n if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {\n type = subTypeDefaulters[componentTypeMain](option);\n }\n }\n return type;\n };\n}\n\nexport interface TopologicalTravelable {\n topologicalTravel: (\n targetNameList: ComponentMainType[],\n fullNameList: ComponentMainType[],\n callback: (this: T, mainType: string, dependencies: string[]) => void,\n context?: T\n ) => void;\n}\n\n\n// ComponentMainType can be 'bb' or 'aa.xx'.\ntype DepGraphItem = {\n predecessor: ComponentMainType[],\n successor: ComponentMainType[],\n originalDeps: ComponentMainType[],\n entryCount: number\n};\ntype DepGraph = {[cmptMainType: string]: DepGraphItem};\n\n/**\n * Implements `TopologicalTravelable` for `entity`.\n *\n * Topological travel on Activity Network (Activity On Vertices).\n * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].\n * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.\n * If there is circular dependencey, Error will be thrown.\n */\nexport function enableTopologicalTravel(\n entity: TopologicalTravelable,\n dependencyGetter: (name: ComponentMainType) => ComponentMainType[]\n): void {\n\n /**\n * @param targetNameList Target Component type list.\n * Can be ['aa', 'bb', 'aa.xx']\n * @param fullNameList By which we can build dependency graph.\n * @param callback Params: componentType, dependencies.\n * @param context Scope of callback.\n */\n entity.topologicalTravel = function (\n targetNameList: ComponentMainType[],\n fullNameList: ComponentMainType[],\n callback: (this: Ctx, mainType: ComponentMainType, dependencies: ComponentMainType[]) => void,\n context?: Ctx\n ) {\n if (!targetNameList.length) {\n return;\n }\n\n const result = makeDepndencyGraph(fullNameList);\n const graph = result.graph;\n const noEntryList = result.noEntryList;\n\n const targetNameSet: {[cmtpMainType: string]: boolean} = {};\n zrUtil.each(targetNameList, function (name) {\n targetNameSet[name] = true;\n });\n\n while (noEntryList.length) {\n const currComponentType = noEntryList.pop();\n const currVertex = graph[currComponentType];\n const isInTargetNameSet = !!targetNameSet[currComponentType];\n if (isInTargetNameSet) {\n callback.call(context, currComponentType, currVertex.originalDeps.slice());\n delete targetNameSet[currComponentType];\n }\n zrUtil.each(\n currVertex.successor,\n isInTargetNameSet ? removeEdgeAndAdd : removeEdge\n );\n }\n\n zrUtil.each(targetNameSet, function () {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable('Circular dependency may exists: ', targetNameSet, targetNameList, fullNameList);\n }\n throw new Error(errMsg);\n });\n\n function removeEdge(succComponentType: ComponentMainType): void {\n graph[succComponentType].entryCount--;\n if (graph[succComponentType].entryCount === 0) {\n noEntryList.push(succComponentType);\n }\n }\n\n // Consider this case: legend depends on series, and we call\n // chart.setOption({series: [...]}), where only series is in option.\n // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will\n // not be called, but only sereis.mergeOption is called. Thus legend\n // have no chance to update its local record about series (like which\n // name of series is available in legend).\n function removeEdgeAndAdd(succComponentType: ComponentMainType): void {\n targetNameSet[succComponentType] = true;\n removeEdge(succComponentType);\n }\n };\n\n function makeDepndencyGraph(fullNameList: ComponentMainType[]) {\n const graph: DepGraph = {};\n const noEntryList: ComponentMainType[] = [];\n\n zrUtil.each(fullNameList, function (name: ComponentMainType) {\n\n const thisItem = createDependencyGraphItem(graph, name);\n const originalDeps = thisItem.originalDeps = dependencyGetter(name);\n\n const availableDeps = getAvailableDependencies(originalDeps, fullNameList);\n thisItem.entryCount = availableDeps.length;\n if (thisItem.entryCount === 0) {\n noEntryList.push(name);\n }\n\n zrUtil.each(availableDeps, function (dependentName) {\n if (zrUtil.indexOf(thisItem.predecessor, dependentName) < 0) {\n thisItem.predecessor.push(dependentName);\n }\n const thatItem = createDependencyGraphItem(graph, dependentName);\n if (zrUtil.indexOf(thatItem.successor, dependentName) < 0) {\n thatItem.successor.push(name);\n }\n });\n });\n\n return {graph: graph, noEntryList: noEntryList};\n }\n\n function createDependencyGraphItem(graph: DepGraph, name: ComponentMainType) {\n if (!graph[name]) {\n graph[name] = {predecessor: [], successor: []} as DepGraphItem;\n }\n return graph[name];\n }\n\n function getAvailableDependencies(\n originalDeps: ComponentMainType[], fullNameList: ComponentMainType[]\n ): ComponentMainType[] {\n const availableDeps = [] as ComponentMainType[];\n zrUtil.each(originalDeps, function (dep) {\n zrUtil.indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);\n });\n return availableDeps;\n }\n\n}\n\nexport function inheritDefaultOption(superOption: T, subOption: K): K {\n // See also `model/Component.ts#getDefaultOption`\n return zrUtil.merge(zrUtil.merge({}, superOption, true), subOption, true);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Language: English.\n */\n\nexport default {\n time: {\n month: [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December'\n ],\n monthAbbr: [\n 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'\n ],\n dayOfWeek: [\n 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'\n ],\n dayOfWeekAbbr: [\n 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'\n ]\n },\n legend: {\n selector: {\n all: 'All',\n inverse: 'Inv'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: 'Box Select',\n polygon: 'Lasso Select',\n lineX: 'Horizontally Select',\n lineY: 'Vertically Select',\n keep: 'Keep Selections',\n clear: 'Clear Selections'\n }\n },\n dataView: {\n title: 'Data View',\n lang: ['Data View', 'Close', 'Refresh']\n },\n dataZoom: {\n title: {\n zoom: 'Zoom',\n back: 'Zoom Reset'\n }\n },\n magicType: {\n title: {\n line: 'Switch to Line Chart',\n bar: 'Switch to Bar Chart',\n stack: 'Stack',\n tiled: 'Tile'\n }\n },\n restore: {\n title: 'Restore'\n },\n saveAsImage: {\n title: 'Save as Image',\n lang: ['Right Click to Save Image']\n }\n },\n series: {\n typeNames: {\n pie: 'Pie chart',\n bar: 'Bar chart',\n line: 'Line chart',\n scatter: 'Scatter plot',\n effectScatter: 'Ripple scatter plot',\n radar: 'Radar chart',\n tree: 'Tree',\n treemap: 'Treemap',\n boxplot: 'Boxplot',\n candlestick: 'Candlestick',\n k: 'K line chart',\n heatmap: 'Heat map',\n map: 'Map',\n parallel: 'Parallel coordinate map',\n lines: 'Line graph',\n graph: 'Relationship graph',\n sankey: 'Sankey diagram',\n funnel: 'Funnel chart',\n gauge: 'Gauge',\n pictorialBar: 'Pictorial bar',\n themeRiver: 'Theme River Map',\n sunburst: 'Sunburst'\n }\n },\n aria: {\n general: {\n withTitle: 'This is a chart about \"{title}\"',\n withoutTitle: 'This is a chart'\n },\n series: {\n single: {\n prefix: '',\n withName: ' with type {seriesType} named {seriesName}.',\n withoutName: ' with type {seriesType}.'\n },\n multiple: {\n prefix: '. It consists of {seriesCount} series count.',\n withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',\n withoutName: ' The {seriesId} series is a {seriesType}.',\n separator: {\n middle: '',\n end: ''\n }\n }\n },\n data: {\n allData: 'The data is as follows: ',\n partialData: 'The first {displayCnt} items are: ',\n withName: 'the data for {name} is {value}',\n withoutName: '{value}',\n separator: {\n middle: ', ',\n end: '. '\n }\n }\n }\n};\n", "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nexport default {\n time: {\n month: [\n '\u4E00\u6708', '\u4E8C\u6708', '\u4E09\u6708', '\u56DB\u6708', '\u4E94\u6708', '\u516D\u6708',\n '\u4E03\u6708', '\u516B\u6708', '\u4E5D\u6708', '\u5341\u6708', '\u5341\u4E00\u6708', '\u5341\u4E8C\u6708'\n ],\n monthAbbr: [\n '1\u6708', '2\u6708', '3\u6708', '4\u6708', '5\u6708', '6\u6708',\n '7\u6708', '8\u6708', '9\u6708', '10\u6708', '11\u6708', '12\u6708'\n ],\n dayOfWeek: [\n '\u661F\u671F\u65E5', '\u661F\u671F\u4E00', '\u661F\u671F\u4E8C', '\u661F\u671F\u4E09', '\u661F\u671F\u56DB', '\u661F\u671F\u4E94', '\u661F\u671F\u516D'\n ],\n dayOfWeekAbbr: [\n '\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D'\n ]\n },\n legend: {\n selector: {\n all: '\u5168\u9009',\n inverse: '\u53CD\u9009'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: '\u77E9\u5F62\u9009\u62E9',\n polygon: '\u5708\u9009',\n lineX: '\u6A2A\u5411\u9009\u62E9',\n lineY: '\u7EB5\u5411\u9009\u62E9',\n keep: '\u4FDD\u6301\u9009\u62E9',\n clear: '\u6E05\u9664\u9009\u62E9'\n }\n },\n dataView: {\n title: '\u6570\u636E\u89C6\u56FE',\n lang: ['\u6570\u636E\u89C6\u56FE', '\u5173\u95ED', '\u5237\u65B0']\n },\n dataZoom: {\n title: {\n zoom: '\u533A\u57DF\u7F29\u653E',\n back: '\u533A\u57DF\u7F29\u653E\u8FD8\u539F'\n }\n },\n magicType: {\n title: {\n line: '\u5207\u6362\u4E3A\u6298\u7EBF\u56FE',\n bar: '\u5207\u6362\u4E3A\u67F1\u72B6\u56FE',\n stack: '\u5207\u6362\u4E3A\u5806\u53E0',\n tiled: '\u5207\u6362\u4E3A\u5E73\u94FA'\n }\n },\n restore: {\n title: '\u8FD8\u539F'\n },\n saveAsImage: {\n title: '\u4FDD\u5B58\u4E3A\u56FE\u7247',\n lang: ['\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247']\n }\n },\n series: {\n typeNames: {\n pie: '\u997C\u56FE',\n bar: '\u67F1\u72B6\u56FE',\n line: '\u6298\u7EBF\u56FE',\n scatter: '\u6563\u70B9\u56FE',\n effectScatter: '\u6D9F\u6F2A\u6563\u70B9\u56FE',\n radar: '\u96F7\u8FBE\u56FE',\n tree: '\u6811\u56FE',\n treemap: '\u77E9\u5F62\u6811\u56FE',\n boxplot: '\u7BB1\u578B\u56FE',\n candlestick: 'K\u7EBF\u56FE',\n k: 'K\u7EBF\u56FE',\n heatmap: '\u70ED\u529B\u56FE',\n map: '\u5730\u56FE',\n parallel: '\u5E73\u884C\u5750\u6807\u56FE',\n lines: '\u7EBF\u56FE',\n graph: '\u5173\u7CFB\u56FE',\n sankey: '\u6851\u57FA\u56FE',\n funnel: '\u6F0F\u6597\u56FE',\n gauge: '\u4EEA\u8868\u76D8\u56FE',\n pictorialBar: '\u8C61\u5F62\u67F1\u56FE',\n themeRiver: '\u4E3B\u9898\u6CB3\u6D41\u56FE',\n sunburst: '\u65ED\u65E5\u56FE'\n }\n },\n aria: {\n general: {\n withTitle: '\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002',\n withoutTitle: '\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C'\n },\n series: {\n single: {\n prefix: '',\n withName: '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002',\n withoutName: '\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002'\n },\n multiple: {\n prefix: '\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002',\n withName: '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C',\n withoutName: '\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C',\n separator: {\n middle: '\uFF1B',\n end: '\u3002'\n }\n }\n },\n data: {\n allData: '\u5176\u6570\u636E\u662F\u2014\u2014',\n partialData: '\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014',\n withName: '{name}\u7684\u6570\u636E\u662F{value}',\n withoutName: '{value}',\n separator: {\n middle: '\uFF0C',\n end: ''\n }\n }\n }\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from '../util/types';\nimport Model from '../model/Model';\nimport env from 'zrender/src/core/env';\n// default import ZH and EN lang\nimport langEN from '../i18n/langEN';\nimport langZH from '../i18n/langZH';\nimport { isString, clone, merge } from 'zrender/src/core/util';\n\nexport type LocaleOption = typeof langEN;\n\nconst LOCALE_ZH = 'ZH';\nconst LOCALE_EN = 'EN';\nconst DEFAULT_LOCALE = LOCALE_EN;\n\nconst localeStorage: Dictionary = {};\nconst localeModels: Dictionary = {};\n\nexport const SYSTEM_LANG = !env.domSupported ? DEFAULT_LOCALE : (function () {\n const langStr = (\n /* eslint-disable-next-line */\n document.documentElement.lang || navigator.language || (navigator as any).browserLanguage\n ).toUpperCase();\n return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE;\n})();\n\nexport function registerLocale(locale: string, localeObj: LocaleOption) {\n locale = locale.toUpperCase();\n localeModels[locale] = new Model(localeObj);\n localeStorage[locale] = localeObj;\n}\n\n// export function getLocale(locale: string) {\n// return localeStorage[locale];\n// }\n\nexport function createLocaleObject(locale: string | LocaleOption): LocaleOption {\n if (isString(locale)) {\n const localeObj = localeStorage[locale.toUpperCase()] || {} as LocaleOption;\n if (locale === LOCALE_ZH || locale === LOCALE_EN) {\n return clone(localeObj);\n }\n else {\n return merge(clone(localeObj), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n }\n else {\n return merge(clone(locale), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n}\n\nexport function getLocaleModel(lang: string): Model {\n return localeModels[lang];\n}\n\nexport function getDefaultLocaleModel(): Model {\n return localeModels[DEFAULT_LOCALE];\n}\n\n// Default locale\nregisterLocale(LOCALE_EN, langEN);\nregisterLocale(LOCALE_ZH, langZH);\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {TimeAxisLabelFormatterOption} from './../coord/axisCommonTypes';\nimport * as numberUtil from './number';\nimport {TimeScaleTick} from './types';\nimport { getDefaultLocaleModel, getLocaleModel, SYSTEM_LANG, LocaleOption } from '../core/locale';\nimport Model from '../model/Model';\n\nexport const ONE_SECOND = 1000;\nexport const ONE_MINUTE = ONE_SECOND * 60;\nexport const ONE_HOUR = ONE_MINUTE * 60;\nexport const ONE_DAY = ONE_HOUR * 24;\nexport const ONE_YEAR = ONE_DAY * 365;\n\nexport const defaultLeveledFormatter = {\n year: '{yyyy}',\n month: '{MMM}',\n day: '{d}',\n hour: '{HH}:{mm}',\n minute: '{HH}:{mm}',\n second: '{HH}:{mm}:{ss}',\n millisecond: '{HH}:{mm}:{ss} {SSS}',\n none: '{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}'\n};\n\nconst fullDayFormatter = '{yyyy}-{MM}-{dd}';\n\nexport const fullLeveledFormatter = {\n year: '{yyyy}',\n month: '{yyyy}-{MM}',\n day: fullDayFormatter,\n hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour,\n minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute,\n second: fullDayFormatter + ' ' + defaultLeveledFormatter.second,\n millisecond: defaultLeveledFormatter.none\n};\n\nexport type PrimaryTimeUnit = 'millisecond' | 'second' | 'minute' | 'hour'\n | 'day' | 'month' | 'year';\nexport type TimeUnit = PrimaryTimeUnit | 'half-year' | 'quarter' | 'week'\n | 'half-week' | 'half-day' | 'quarter-day';\n\nexport const primaryTimeUnits: PrimaryTimeUnit[] = [\n 'year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'\n];\nexport const timeUnits: TimeUnit[] = [\n 'year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day',\n 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond'\n];\n\nexport function pad(str: string | number, len: number): string {\n str += '';\n return '0000'.substr(0, len - (str as string).length) + str;\n}\n\nexport function getPrimaryTimeUnit(timeUnit: TimeUnit): PrimaryTimeUnit {\n switch (timeUnit) {\n case 'half-year':\n case 'quarter':\n return 'month';\n case 'week':\n case 'half-week':\n return 'day';\n case 'half-day':\n case 'quarter-day':\n return 'hour';\n default:\n // year, minutes, second, milliseconds\n return timeUnit;\n }\n}\n\nexport function isPrimaryTimeUnit(timeUnit: TimeUnit): boolean {\n return timeUnit === getPrimaryTimeUnit(timeUnit);\n}\n\nexport function getDefaultFormatPrecisionOfInterval(timeUnit: PrimaryTimeUnit): PrimaryTimeUnit {\n switch (timeUnit) {\n case 'year':\n case 'month':\n return 'day';\n case 'millisecond':\n return 'millisecond';\n default:\n // Also for day, hour, minute, second\n return 'second';\n }\n}\n\nexport function format(\n // Note: The result based on `isUTC` are totally different, which can not be just simply\n // substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.\n time: unknown, template: string, isUTC: boolean, lang?: string | Model\n): string {\n const date = numberUtil.parseDate(time);\n const y = date[fullYearGetterName(isUTC)]();\n const M = date[monthGetterName(isUTC)]() + 1;\n const q = Math.floor((M - 1) / 4) + 1;\n const d = date[dateGetterName(isUTC)]();\n const e = date['get' + (isUTC ? 'UTC' : '') + 'Day' as 'getDay' | 'getUTCDay']();\n const H = date[hoursGetterName(isUTC)]();\n const h = (H - 1) % 12 + 1;\n const m = date[minutesGetterName(isUTC)]();\n const s = date[secondsGetterName(isUTC)]();\n const S = date[millisecondsGetterName(isUTC)]();\n\n\n const localeModel = lang instanceof Model ? lang\n : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();\n const timeModel = localeModel.getModel('time');\n const month = timeModel.get('month');\n const monthAbbr = timeModel.get('monthAbbr');\n const dayOfWeek = timeModel.get('dayOfWeek');\n const dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');\n\n return (template || '')\n .replace(/{yyyy}/g, y + '')\n .replace(/{yy}/g, y % 100 + '')\n .replace(/{Q}/g, q + '')\n .replace(/{MMMM}/g, month[M - 1])\n .replace(/{MMM}/g, monthAbbr[M - 1])\n .replace(/{MM}/g, pad(M, 2))\n .replace(/{M}/g, M + '')\n .replace(/{dd}/g, pad(d, 2))\n .replace(/{d}/g, d + '')\n .replace(/{eeee}/g, dayOfWeek[e])\n .replace(/{ee}/g, dayOfWeekAbbr[e])\n .replace(/{e}/g, e + '')\n .replace(/{HH}/g, pad(H, 2))\n .replace(/{H}/g, H + '')\n .replace(/{hh}/g, pad(h + '', 2))\n .replace(/{h}/g, h + '')\n .replace(/{mm}/g, pad(m, 2))\n .replace(/{m}/g, m + '')\n .replace(/{ss}/g, pad(s, 2))\n .replace(/{s}/g, s + '')\n .replace(/{SSS}/g, pad(S, 3))\n .replace(/{S}/g, S + '');\n}\n\nexport function leveledFormat(\n tick: TimeScaleTick,\n idx: number,\n formatter: TimeAxisLabelFormatterOption,\n lang: string | Model,\n isUTC: boolean\n) {\n let template = null;\n if (typeof formatter === 'string') {\n // Single formatter for all units at all levels\n template = formatter;\n }\n else if (typeof formatter === 'function') {\n // Callback formatter\n template = formatter(tick.value, idx, {\n level: tick.level\n });\n }\n else {\n const defaults = zrUtil.extend({}, defaultLeveledFormatter);\n if (tick.level > 0) {\n for (let i = 0; i < primaryTimeUnits.length; ++i) {\n defaults[primaryTimeUnits[i]] = `{primary|${defaults[primaryTimeUnits[i]]}}`;\n }\n }\n\n const mergedFormatter = (formatter\n ? (formatter.inherit === false\n ? formatter // Use formatter with bigger units\n : zrUtil.defaults(formatter, defaults)\n )\n : defaults) as any;\n\n const unit = getUnitFromValue(tick.value, isUTC);\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n }\n else if (mergedFormatter.inherit) {\n // Unit formatter is not defined and should inherit from bigger units\n const targetId = timeUnits.indexOf(unit);\n for (let i = targetId - 1; i >= 0; --i) {\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n break;\n }\n }\n template = template || defaults.none;\n }\n\n if (zrUtil.isArray(template)) {\n let levelId = tick.level == null\n ? 0\n : (tick.level >= 0 ? tick.level : template.length + tick.level);\n levelId = Math.min(levelId, template.length - 1);\n template = template[levelId];\n }\n }\n\n return format(new Date(tick.value), template, isUTC, lang);\n}\n\nexport function getUnitFromValue(\n value: number | string | Date,\n isUTC: boolean\n): PrimaryTimeUnit {\n const date = numberUtil.parseDate(value);\n const M = (date as any)[monthGetterName(isUTC)]() + 1;\n const d = (date as any)[dateGetterName(isUTC)]();\n const h = (date as any)[hoursGetterName(isUTC)]();\n const m = (date as any)[minutesGetterName(isUTC)]();\n const s = (date as any)[secondsGetterName(isUTC)]();\n const S = (date as any)[millisecondsGetterName(isUTC)]();\n\n const isSecond = S === 0;\n const isMinute = isSecond && s === 0;\n const isHour = isMinute && m === 0;\n const isDay = isHour && h === 0;\n const isMonth = isDay && d === 1;\n const isYear = isMonth && M === 1;\n\n if (isYear) {\n return 'year';\n }\n else if (isMonth) {\n return 'month';\n }\n else if (isDay) {\n return 'day';\n }\n else if (isHour) {\n return 'hour';\n }\n else if (isMinute) {\n return 'minute';\n }\n else if (isSecond) {\n return 'second';\n }\n else {\n return 'millisecond';\n }\n}\n\nexport function getUnitValue(\n value: number | Date,\n unit: TimeUnit,\n isUTC: boolean\n) : number {\n const date = typeof value === 'number'\n ? numberUtil.parseDate(value)\n : value;\n unit = unit || getUnitFromValue(value, isUTC);\n\n switch (unit) {\n case 'year':\n return date[fullYearGetterName(isUTC)]();\n case 'half-year':\n return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;\n case 'quarter':\n return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);\n case 'month':\n return date[monthGetterName(isUTC)]();\n case 'day':\n return date[dateGetterName(isUTC)]();\n case 'half-day':\n return date[hoursGetterName(isUTC)]() / 24;\n case 'hour':\n return date[hoursGetterName(isUTC)]();\n case 'minute':\n return date[minutesGetterName(isUTC)]();\n case 'second':\n return date[secondsGetterName(isUTC)]();\n case 'millisecond':\n return date[millisecondsGetterName(isUTC)]();\n }\n}\n\nexport function fullYearGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCFullYear' : 'getFullYear';\n}\n\nexport function monthGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMonth' : 'getMonth';\n}\n\nexport function dateGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCDate' : 'getDate';\n}\n\nexport function hoursGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCHours' : 'getHours';\n}\n\nexport function minutesGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMinutes' : 'getMinutes';\n}\n\nexport function secondsGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\n\nexport function millisecondsGetterName(isUTC: boolean) {\n return isUTC ? 'getUTCMilliseconds' : 'getMilliseconds';\n}\n\nexport function fullYearSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCFullYear' : 'setFullYear';\n}\n\nexport function monthSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMonth' : 'setMonth';\n}\n\nexport function dateSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCDate' : 'setDate';\n}\n\nexport function hoursSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCHours' : 'setHours';\n}\n\nexport function minutesSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMinutes' : 'setMinutes';\n}\n\nexport function secondsSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}\n\nexport function millisecondsSetterName(isUTC: boolean) {\n return isUTC ? 'setUTCMilliseconds' : 'setMilliseconds';\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Text } from '../util/graphic';\nimport { deprecateLog } from '../util/log';\n\ntype TextStyleProps = Text['style'];\nexport function getTextRect(\n text: TextStyleProps['text'],\n font?: TextStyleProps['font'],\n align?: TextStyleProps['align'],\n verticalAlign?: TextStyleProps['verticalAlign'],\n padding?: TextStyleProps['padding'],\n rich?: TextStyleProps['rich'],\n truncate?: boolean,\n lineHeight?: number\n) {\n deprecateLog('getTextRect is deprecated.');\n\n const textEl = new Text({\n style: {\n text,\n font,\n align,\n verticalAlign,\n padding,\n rich,\n overflow: truncate ? 'truncate' : null,\n lineHeight\n }\n });\n\n return textEl.getBoundingRect();\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { parseDate, isNumeric, numericToNumber } from './number';\nimport { TooltipRenderMode, ColorString, ZRColor, DimensionType } from './types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { GradientObject } from 'zrender/src/graphic/Gradient';\nimport { format as timeFormat, pad } from './time';\nimport { deprecateReplaceLog } from './log';\n\n/**\n * Add a comma each three digit.\n */\nexport function addCommas(x: string | number): string {\n if (!isNumeric(x)) {\n return zrUtil.isString(x) ? x : '-';\n }\n const parts = (x + '').split('.');\n return parts[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, '$1,')\n + (parts.length > 1 ? ('.' + parts[1]) : '');\n}\n\nexport function toCamelCase(str: string, upperCaseFirst?: boolean): string {\n str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {\n return group1.toUpperCase();\n });\n\n if (upperCaseFirst && str) {\n str = str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n return str;\n}\n\nexport const normalizeCssArray = zrUtil.normalizeCssArray;\n\n\nconst replaceReg = /([&<>\"'])/g;\nconst replaceMap: Dictionary = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n};\n\nexport function encodeHTML(source: string): string {\n return source == null\n ? ''\n : (source + '').replace(replaceReg, function (str, c) {\n return replaceMap[c];\n });\n}\n\n\n/**\n * Make value user readable for tooltip and label.\n * \"User readable\":\n * Try to not print programmer-specific text like NaN, Infinity, null, undefined.\n * Avoid to display an empty string, which users can not recognize there is\n * a value and it might look like a bug.\n */\nexport function makeValueReadable(\n value: unknown,\n valueType: DimensionType,\n useUTC: boolean\n): string {\n const USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';\n\n function stringToUserReadable(str: string): string {\n return (str && zrUtil.trim(str)) ? str : '-';\n }\n function isNumberUserReadable(num: number): boolean {\n return !!(num != null && !isNaN(num) && isFinite(num));\n }\n\n const isTypeTime = valueType === 'time';\n const isValueDate = value instanceof Date;\n if (isTypeTime || isValueDate) {\n const date = isTypeTime ? parseDate(value) : value;\n if (!isNaN(+date)) {\n return timeFormat(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);\n }\n else if (isValueDate) {\n return '-';\n }\n // In other cases, continue to try to display the value in the following code.\n }\n\n if (valueType === 'ordinal') {\n return zrUtil.isStringSafe(value)\n ? stringToUserReadable(value)\n : zrUtil.isNumber(value)\n ? (isNumberUserReadable(value) ? value + '' : '-')\n : '-';\n }\n // By default.\n const numericResult = numericToNumber(value);\n return isNumberUserReadable(numericResult)\n ? addCommas(numericResult)\n : zrUtil.isStringSafe(value)\n ? stringToUserReadable(value)\n : '-';\n}\n\n\nconst TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];\n\nconst wrapVar = function (varName: string, seriesIdx?: number): string {\n return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';\n};\n\nexport interface TplFormatterParam extends Dictionary {\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: string[];\n}\n/**\n * Template formatter\n * @param {Array.|Object} paramsList\n */\nexport function formatTpl(\n tpl: string,\n paramsList: TplFormatterParam | TplFormatterParam[],\n encode?: boolean\n): string {\n if (!zrUtil.isArray(paramsList)) {\n paramsList = [paramsList];\n }\n const seriesLen = paramsList.length;\n if (!seriesLen) {\n return '';\n }\n\n const $vars = paramsList[0].$vars || [];\n for (let i = 0; i < $vars.length; i++) {\n const alias = TPL_VAR_ALIAS[i];\n tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));\n }\n for (let seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {\n for (let k = 0; k < $vars.length; k++) {\n const val = paramsList[seriesIdx][$vars[k]];\n tpl = tpl.replace(\n wrapVar(TPL_VAR_ALIAS[k], seriesIdx),\n encode ? encodeHTML(val) : val\n );\n }\n }\n\n return tpl;\n}\n\n/**\n * simple Template formatter\n */\nexport function formatTplSimple(tpl: string, param: Dictionary, encode?: boolean) {\n zrUtil.each(param, function (value, key) {\n tpl = tpl.replace(\n '{' + key + '}',\n encode ? encodeHTML(value) : value\n );\n });\n return tpl;\n}\n\ninterface RichTextTooltipMarker {\n renderMode: TooltipRenderMode;\n content: string;\n style: Dictionary;\n}\nexport type TooltipMarker = string | RichTextTooltipMarker;\nexport type TooltipMarkerType = 'item' | 'subItem';\ninterface GetTooltipMarkerOpt {\n color?: ColorString;\n extraCssText?: string;\n // By default: 'item'\n type?: TooltipMarkerType;\n renderMode?: TooltipRenderMode;\n // id name for marker. If only one marker is in a rich text, this can be omitted.\n // By default: 'markerX'\n markerId?: string;\n}\n// Only support color string\nexport function getTooltipMarker(color: ColorString, extraCssText?: string): TooltipMarker;\nexport function getTooltipMarker(opt: GetTooltipMarkerOpt): TooltipMarker;\nexport function getTooltipMarker(inOpt: ColorString | GetTooltipMarkerOpt, extraCssText?: string): TooltipMarker {\n const opt = zrUtil.isString(inOpt) ? {\n color: inOpt,\n extraCssText: extraCssText\n } : (inOpt || {}) as GetTooltipMarkerOpt;\n const color = opt.color;\n const type = opt.type;\n extraCssText = opt.extraCssText;\n const renderMode = opt.renderMode || 'html';\n\n if (!color) {\n return '';\n }\n\n if (renderMode === 'html') {\n return type === 'subItem'\n ? ''\n : '';\n }\n else {\n // Should better not to auto generate style name by auto-increment number here.\n // Because this util is usually called in tooltip formatter, which is probably\n // called repeatly when mouse move and the auto-increment number increases fast.\n // Users can make their own style name by theirselves, make it unique and readable.\n const markerId = opt.markerId || 'markerX';\n return {\n renderMode: renderMode,\n content: '{' + markerId + '|} ',\n style: type === 'subItem'\n ? {\n width: 4,\n height: 4,\n borderRadius: 2,\n backgroundColor: color\n }\n : {\n width: 10,\n height: 10,\n borderRadius: 5,\n backgroundColor: color\n }\n };\n }\n}\n\n\n/**\n * @deprecated Use `time/format` instead.\n * ISO Date format\n * @param {string} tpl\n * @param {number} value\n * @param {boolean} [isUTC=false] Default in local time.\n * see `module:echarts/scale/Time`\n * and `module:echarts/util/number#parseDate`.\n * @inner\n */\nexport function formatTime(tpl: string, value: unknown, isUTC: boolean) {\n if (__DEV__) {\n deprecateReplaceLog('echarts.format.formatTime', 'echarts.time.format');\n }\n\n if (tpl === 'week'\n || tpl === 'month'\n || tpl === 'quarter'\n || tpl === 'half-year'\n || tpl === 'year'\n ) {\n tpl = 'MM-dd\\nyyyy';\n }\n\n const date = parseDate(value);\n const utc = isUTC ? 'UTC' : '';\n const y = (date as any)['get' + utc + 'FullYear']();\n const M = (date as any)['get' + utc + 'Month']() + 1;\n const d = (date as any)['get' + utc + 'Date']();\n const h = (date as any)['get' + utc + 'Hours']();\n const m = (date as any)['get' + utc + 'Minutes']();\n const s = (date as any)['get' + utc + 'Seconds']();\n const S = (date as any)['get' + utc + 'Milliseconds']();\n\n tpl = tpl.replace('MM', pad(M, 2))\n .replace('M', M)\n .replace('yyyy', y)\n .replace('yy', y % 100 + '')\n .replace('dd', pad(d, 2))\n .replace('d', d)\n .replace('hh', pad(h, 2))\n .replace('h', h)\n .replace('mm', pad(m, 2))\n .replace('m', m)\n .replace('ss', pad(s, 2))\n .replace('s', s)\n .replace('SSS', pad(S, 3));\n\n return tpl;\n}\n\n/**\n * Capital first\n * @param {string} str\n * @return {string}\n */\nexport function capitalFirst(str: string): string {\n return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;\n}\n\n/**\n * @return Never be null/undefined.\n */\nexport function convertToColorString(color: ZRColor, defaultColor?: ColorString): ColorString {\n defaultColor = defaultColor || 'transparent';\n return zrUtil.isString(color)\n ? color\n : zrUtil.isObject(color)\n ? (\n (color as GradientObject).colorStops\n && ((color as GradientObject).colorStops[0] || {}).color\n || defaultColor\n )\n : defaultColor;\n}\n\nexport {truncateText} from 'zrender/src/graphic/helper/parseText';\n\n/**\n * open new tab\n * @param link url\n * @param target blank or self\n */\nexport function windowOpen(link: string, target: string): void {\n /* global window */\n if (target === '_blank' || target === 'blank') {\n const blank = window.open();\n blank.opener = null;\n blank.location.href = link;\n }\n else {\n window.open(link, target);\n }\n}\n\n\nexport {getTextRect} from '../legacy/getTextRect';\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Layout helpers for each component positioning\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport {parsePercent} from './number';\nimport * as formatUtil from './format';\nimport { BoxLayoutOptionMixin, ComponentLayoutMode } from './types';\nimport Group from 'zrender/src/graphic/Group';\nimport Element from 'zrender/src/Element';\nimport { Dictionary } from 'zrender/src/core/types';\n\nconst each = zrUtil.each;\n\nexport interface LayoutRect extends BoundingRect {\n margin: number[]\n}\n\nexport interface NewlineElement extends Element {\n newline: boolean\n}\n\ntype BoxLayoutKeys = keyof BoxLayoutOptionMixin;\n/**\n * @public\n */\nexport const LOCATION_PARAMS = [\n 'left', 'right', 'top', 'bottom', 'width', 'height'\n] as const;\n\n/**\n * @public\n */\nexport const HV_NAMES = [\n ['width', 'left', 'right'],\n ['height', 'top', 'bottom']\n] as const;\n\nfunction boxLayout(\n orient: 'horizontal' | 'vertical',\n group: Group,\n gap: number,\n maxWidth?: number,\n maxHeight?: number\n) {\n let x = 0;\n let y = 0;\n\n if (maxWidth == null) {\n maxWidth = Infinity;\n }\n if (maxHeight == null) {\n maxHeight = Infinity;\n }\n let currentLineMaxSize = 0;\n\n group.eachChild(function (child, idx) {\n const rect = child.getBoundingRect();\n const nextChild = group.childAt(idx + 1);\n const nextChildRect = nextChild && nextChild.getBoundingRect();\n let nextX: number;\n let nextY: number;\n\n if (orient === 'horizontal') {\n const moveX = rect.width + (nextChildRect ? (-nextChildRect.x + rect.x) : 0);\n nextX = x + moveX;\n // Wrap when width exceeds maxWidth or meet a `newline` group\n // FIXME compare before adding gap?\n if (nextX > maxWidth || (child as NewlineElement).newline) {\n x = 0;\n nextX = moveX;\n y += currentLineMaxSize + gap;\n currentLineMaxSize = rect.height;\n }\n else {\n // FIXME: consider rect.y is not `0`?\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);\n }\n }\n else {\n const moveY = rect.height + (nextChildRect ? (-nextChildRect.y + rect.y) : 0);\n nextY = y + moveY;\n // Wrap when width exceeds maxHeight or meet a `newline` group\n if (nextY > maxHeight || (child as NewlineElement).newline) {\n x += currentLineMaxSize + gap;\n y = 0;\n nextY = moveY;\n currentLineMaxSize = rect.width;\n }\n else {\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);\n }\n }\n\n if ((child as NewlineElement).newline) {\n return;\n }\n\n child.x = x;\n child.y = y;\n child.markRedraw();\n\n orient === 'horizontal'\n ? (x = nextX + gap)\n : (y = nextY + gap);\n });\n}\n\n/**\n * VBox or HBox layouting\n * @param {string} orient\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const box = boxLayout;\n\n/**\n * VBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const vbox = zrUtil.curry(boxLayout, 'vertical');\n\n/**\n * HBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\nexport const hbox = zrUtil.curry(boxLayout, 'horizontal');\n\n/**\n * If x or x2 is not specified or 'center' 'left' 'right',\n * the width would be as long as possible.\n * If y or y2 is not specified or 'middle' 'top' 'bottom',\n * the height would be as long as possible.\n */\nexport function getAvailableSize(\n positionInfo: {\n left?: number | string\n top?: number | string\n right?: number | string\n bottom?: number | string\n },\n containerRect: { width: number, height: number },\n margin?: number[] | number\n) {\n const containerWidth = containerRect.width;\n const containerHeight = containerRect.height;\n\n let x = parsePercent(positionInfo.left, containerWidth);\n let y = parsePercent(positionInfo.top, containerHeight);\n let x2 = parsePercent(positionInfo.right, containerWidth);\n let y2 = parsePercent(positionInfo.bottom, containerHeight);\n\n (isNaN(x) || isNaN(parseFloat(positionInfo.left as string))) && (x = 0);\n (isNaN(x2) || isNaN(parseFloat(positionInfo.right as string))) && (x2 = containerWidth);\n (isNaN(y) || isNaN(parseFloat(positionInfo.top as string))) && (y = 0);\n (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom as string))) && (y2 = containerHeight);\n\n margin = formatUtil.normalizeCssArray(margin || 0);\n\n return {\n width: Math.max(x2 - x - margin[1] - margin[3], 0),\n height: Math.max(y2 - y - margin[0] - margin[2], 0)\n };\n}\n\n/**\n * Parse position info.\n */\nexport function getLayoutRect(\n positionInfo: BoxLayoutOptionMixin & {\n aspect?: number // aspect is width / height\n },\n containerRect: {width: number, height: number},\n margin?: number | number[]\n): LayoutRect {\n margin = formatUtil.normalizeCssArray(margin || 0);\n\n const containerWidth = containerRect.width;\n const containerHeight = containerRect.height;\n\n let left = parsePercent(positionInfo.left, containerWidth);\n let top = parsePercent(positionInfo.top, containerHeight);\n const right = parsePercent(positionInfo.right, containerWidth);\n const bottom = parsePercent(positionInfo.bottom, containerHeight);\n let width = parsePercent(positionInfo.width, containerWidth);\n let height = parsePercent(positionInfo.height, containerHeight);\n\n const verticalMargin = margin[2] + margin[0];\n const horizontalMargin = margin[1] + margin[3];\n const aspect = positionInfo.aspect;\n\n // If width is not specified, calculate width from left and right\n if (isNaN(width)) {\n width = containerWidth - right - horizontalMargin - left;\n }\n if (isNaN(height)) {\n height = containerHeight - bottom - verticalMargin - top;\n }\n\n if (aspect != null) {\n // If width and height are not given\n // 1. Graph should not exceeds the container\n // 2. Aspect must be keeped\n // 3. Graph should take the space as more as possible\n // FIXME\n // Margin is not considered, because there is no case that both\n // using margin and aspect so far.\n if (isNaN(width) && isNaN(height)) {\n if (aspect > containerWidth / containerHeight) {\n width = containerWidth * 0.8;\n }\n else {\n height = containerHeight * 0.8;\n }\n }\n\n // Calculate width or height with given aspect\n if (isNaN(width)) {\n width = aspect * height;\n }\n if (isNaN(height)) {\n height = width / aspect;\n }\n }\n\n // If left is not specified, calculate left from right and width\n if (isNaN(left)) {\n left = containerWidth - right - width - horizontalMargin;\n }\n if (isNaN(top)) {\n top = containerHeight - bottom - height - verticalMargin;\n }\n\n // Align left and top\n switch (positionInfo.left || positionInfo.right) {\n case 'center':\n left = containerWidth / 2 - width / 2 - margin[3];\n break;\n case 'right':\n left = containerWidth - width - horizontalMargin;\n break;\n }\n switch (positionInfo.top || positionInfo.bottom) {\n case 'middle':\n case 'center':\n top = containerHeight / 2 - height / 2 - margin[0];\n break;\n case 'bottom':\n top = containerHeight - height - verticalMargin;\n break;\n }\n // If something is wrong and left, top, width, height are calculated as NaN\n left = left || 0;\n top = top || 0;\n if (isNaN(width)) {\n // Width may be NaN if only one value is given except width\n width = containerWidth - horizontalMargin - left - (right || 0);\n }\n if (isNaN(height)) {\n // Height may be NaN if only one value is given except height\n height = containerHeight - verticalMargin - top - (bottom || 0);\n }\n\n const rect = new BoundingRect(left + margin[3], top + margin[0], width, height) as LayoutRect;\n rect.margin = margin;\n return rect;\n}\n\n\n/**\n * Position a zr element in viewport\n * Group position is specified by either\n * {left, top}, {right, bottom}\n * If all properties exists, right and bottom will be igonred.\n *\n * Logic:\n * 1. Scale (against origin point in parent coord)\n * 2. Rotate (against origin point in parent coord)\n * 3. Traslate (with el.position by this method)\n * So this method only fixes the last step 'Traslate', which does not affect\n * scaling and rotating.\n *\n * If be called repeatly with the same input el, the same result will be gotten.\n *\n * @param el Should have `getBoundingRect` method.\n * @param positionInfo\n * @param positionInfo.left\n * @param positionInfo.top\n * @param positionInfo.right\n * @param positionInfo.bottom\n * @param positionInfo.width Only for opt.boundingModel: 'raw'\n * @param positionInfo.height Only for opt.boundingModel: 'raw'\n * @param containerRect\n * @param margin\n * @param opt\n * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]\n * @param opt.boundingMode\n * Specify how to calculate boundingRect when locating.\n * 'all': Position the boundingRect that is transformed and uioned\n * both itself and its descendants.\n * This mode simplies confine the elements in the bounding\n * of their container (e.g., using 'right: 0').\n * 'raw': Position the boundingRect that is not transformed and only itself.\n * This mode is useful when you want a element can overflow its\n * container. (Consider a rotated circle needs to be located in a corner.)\n * In this mode positionInfo.width/height can only be number.\n */\nexport function positionElement(\n el: Element,\n positionInfo: BoxLayoutOptionMixin,\n containerRect: {width: number, height: number},\n margin?: number[] | number,\n opt?: {\n hv: [1 | 0 | boolean, 1 | 0 | boolean],\n boundingMode: 'all' | 'raw'\n }\n) {\n const h = !opt || !opt.hv || opt.hv[0];\n const v = !opt || !opt.hv || opt.hv[1];\n const boundingMode = opt && opt.boundingMode || 'all';\n\n if (!h && !v) {\n return;\n }\n\n let rect;\n if (boundingMode === 'raw') {\n rect = el.type === 'group'\n ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0)\n : el.getBoundingRect();\n }\n else {\n rect = el.getBoundingRect();\n if (el.needLocalTransform()) {\n const transform = el.getLocalTransform();\n // Notice: raw rect may be inner object of el,\n // which should not be modified.\n rect = rect.clone();\n rect.applyTransform(transform);\n }\n }\n\n // The real width and height can not be specified but calculated by the given el.\n const layoutRect = getLayoutRect(\n zrUtil.defaults(\n {width: rect.width, height: rect.height},\n positionInfo\n ),\n containerRect,\n margin\n );\n\n // Because 'tranlate' is the last step in transform\n // (see zrender/core/Transformable#getLocalTransform),\n // we can just only modify el.position to get final result.\n const dx = h ? layoutRect.x - rect.x : 0;\n const dy = v ? layoutRect.y - rect.y : 0;\n\n if (boundingMode === 'raw') {\n el.x = dx;\n el.y = dy;\n }\n else {\n el.x += dx;\n el.y += dy;\n }\n el.markRedraw();\n}\n\n/**\n * @param option Contains some of the properties in HV_NAMES.\n * @param hvIdx 0: horizontal; 1: vertical.\n */\nexport function sizeCalculable(option: BoxLayoutOptionMixin, hvIdx: number): boolean {\n return option[HV_NAMES[hvIdx][0]] != null\n || (option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null);\n}\n\nexport function fetchLayoutMode(ins: any): ComponentLayoutMode {\n const layoutMode = ins.layoutMode || ins.constructor.layoutMode;\n return zrUtil.isObject(layoutMode)\n ? layoutMode\n : layoutMode\n ? {type: layoutMode}\n : null;\n}\n\n/**\n * Consider Case:\n * When default option has {left: 0, width: 100}, and we set {right: 0}\n * through setOption or media query, using normal zrUtil.merge will cause\n * {right: 0} does not take effect.\n *\n * @example\n * ComponentModel.extend({\n * init: function () {\n * ...\n * let inputPositionParams = layout.getLayoutParams(option);\n * this.mergeOption(inputPositionParams);\n * },\n * mergeOption: function (newOption) {\n * newOption && zrUtil.merge(thisOption, newOption, true);\n * layout.mergeLayoutParam(thisOption, newOption);\n * }\n * });\n *\n * @param targetOption\n * @param newOption\n * @param opt\n */\nexport function mergeLayoutParam(\n targetOption: T,\n newOption: T,\n opt?: ComponentLayoutMode\n) {\n let ignoreSize = opt && opt.ignoreSize;\n !zrUtil.isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);\n\n const hResult = merge(HV_NAMES[0], 0);\n const vResult = merge(HV_NAMES[1], 1);\n\n copy(HV_NAMES[0], targetOption, hResult);\n copy(HV_NAMES[1], targetOption, vResult);\n\n function merge(names: typeof HV_NAMES[number], hvIdx: number) {\n const newParams: BoxLayoutOptionMixin = {};\n let newValueCount = 0;\n const merged: BoxLayoutOptionMixin = {};\n let mergedValueCount = 0;\n const enoughParamNumber = 2;\n\n each(names, function (name: BoxLayoutKeys) {\n merged[name] = targetOption[name];\n });\n each(names, function (name: BoxLayoutKeys) {\n // Consider case: newOption.width is null, which is\n // set by user for removing width setting.\n hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);\n hasValue(newParams, name) && newValueCount++;\n hasValue(merged, name) && mergedValueCount++;\n });\n\n if ((ignoreSize as [boolean, boolean])[hvIdx]) {\n // Only one of left/right is premitted to exist.\n if (hasValue(newOption, names[1])) {\n merged[names[2]] = null;\n }\n else if (hasValue(newOption, names[2])) {\n merged[names[1]] = null;\n }\n return merged;\n }\n\n // Case: newOption: {width: ..., right: ...},\n // or targetOption: {right: ...} and newOption: {width: ...},\n // There is no conflict when merged only has params count\n // little than enoughParamNumber.\n if (mergedValueCount === enoughParamNumber || !newValueCount) {\n return merged;\n }\n // Case: newOption: {width: ..., right: ...},\n // Than we can make sure user only want those two, and ignore\n // all origin params in targetOption.\n else if (newValueCount >= enoughParamNumber) {\n return newParams;\n }\n else {\n // Chose another param from targetOption by priority.\n for (let i = 0; i < names.length; i++) {\n const name = names[i];\n if (!hasProp(newParams, name) && hasProp(targetOption, name)) {\n newParams[name] = targetOption[name];\n break;\n }\n }\n return newParams;\n }\n }\n\n function hasProp(obj: object, name: string): boolean {\n return obj.hasOwnProperty(name);\n }\n\n function hasValue(obj: Dictionary, name: string): boolean {\n return obj[name] != null && obj[name] !== 'auto';\n }\n\n function copy(names: readonly string[], target: Dictionary, source: Dictionary) {\n each(names, function (name) {\n target[name] = source[name];\n });\n }\n}\n\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n */\nexport function getLayoutParams(source: BoxLayoutOptionMixin): BoxLayoutOptionMixin {\n return copyLayoutParams({}, source);\n}\n\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n * @param {Object} source\n * @return {Object} Result contains those props.\n */\nexport function copyLayoutParams(target: BoxLayoutOptionMixin, source: BoxLayoutOptionMixin): BoxLayoutOptionMixin {\n source && target && each(LOCATION_PARAMS, function (name: BoxLayoutKeys) {\n source.hasOwnProperty(name) && (target[name] = source[name]);\n });\n return target;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from './Model';\nimport * as componentUtil from '../util/component';\nimport {\n enableClassManagement,\n parseClassType,\n isExtendedClass,\n ExtendableConstructor,\n ClassManager,\n mountExtend\n} from '../util/clazz';\nimport {\n makeInner, ModelFinderIndexQuery, queryReferringComponents, ModelFinderIdQuery, QueryReferringOpt\n} from '../util/model';\nimport * as layout from '../util/layout';\nimport GlobalModel from './Global';\nimport {\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n ComponentFullType,\n ComponentLayoutMode,\n BoxLayoutOptionMixin\n} from '../util/types';\n\nconst inner = makeInner<{\n defaultOption: ComponentOption\n}, ComponentModel>();\n\n\nclass ComponentModel extends Model {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n /**\n * @readonly\n */\n type: ComponentFullType;\n\n /**\n * @readonly\n */\n id: string;\n\n /**\n * Because simplified concept is probably better, series.name (or component.name)\n * has been having too many resposibilities:\n * (1) Generating id (which requires name in option should not be modified).\n * (2) As an index to mapping series when merging option or calling API (a name\n * can refer to more then one components, which is convinient is some case).\n * (3) Display.\n * @readOnly But injected\n */\n name: string;\n\n /**\n * @readOnly\n */\n mainType: ComponentMainType;\n\n /**\n * @readOnly\n */\n subType: ComponentSubType;\n\n /**\n * @readOnly\n */\n componentIndex: number;\n\n /**\n * @readOnly\n */\n protected defaultOption: ComponentOption;\n\n /**\n * @readOnly\n */\n ecModel: GlobalModel;\n\n /**\n * @readOnly\n */\n static dependencies: string[];\n\n\n readonly uid: string;\n\n // // No common coordinateSystem needed. Each sub class implement\n // // `CoordinateSystemHostModel` itself.\n // coordinateSystem: CoordinateSystemMaster | CoordinateSystemExecutive;\n\n /**\n * Support merge layout params.\n * Only support 'box' now (left/right/top/bottom/width/height).\n */\n static layoutMode: ComponentLayoutMode | ComponentLayoutMode['type'];\n\n /**\n * Prevent from auto set z, zlevel, z2 by the framework.\n */\n preventAutoZ: boolean;\n\n // Injectable properties:\n __viewId: string;\n __requireNewView: boolean;\n\n static protoInitialize = (function () {\n const proto = ComponentModel.prototype;\n proto.type = 'component';\n proto.id = '';\n proto.name = '';\n proto.mainType = '';\n proto.subType = '';\n proto.componentIndex = 0;\n })();\n\n\n constructor(option: Opt, parentModel: Model, ecModel: GlobalModel) {\n super(option, parentModel, ecModel);\n this.uid = componentUtil.getUID('ec_cpt_model');\n }\n\n init(option: Opt, parentModel: Model, ecModel: GlobalModel): void {\n this.mergeDefaultAndTheme(option, ecModel);\n }\n\n mergeDefaultAndTheme(option: Opt, ecModel: GlobalModel): void {\n const layoutMode = layout.fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? layout.getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n const themeModel = ecModel.getTheme();\n zrUtil.merge(option, themeModel.get(this.mainType));\n zrUtil.merge(option, this.getDefaultOption());\n\n if (layoutMode) {\n layout.mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n mergeOption(option: Opt, ecModel: GlobalModel): void {\n zrUtil.merge(this.option, option, true);\n\n const layoutMode = layout.fetchLayoutMode(this);\n if (layoutMode) {\n layout.mergeLayoutParam(\n this.option as BoxLayoutOptionMixin,\n option as BoxLayoutOptionMixin,\n layoutMode\n );\n }\n }\n\n /**\n * Called immediately after `init` or `mergeOption` of this instance called.\n */\n optionUpdated(newCptOption: Opt, isInit: boolean): void {}\n\n /**\n * [How to declare defaultOption]:\n *\n * (A) If using class declaration in typescript (since echarts 5):\n * ```ts\n * import {ComponentOption} from '../model/option';\n * export interface XxxOption extends ComponentOption {\n * aaa: number\n * }\n * export class XxxModel extends Component {\n * static type = 'xxx';\n * static defaultOption: XxxOption = {\n * aaa: 123\n * }\n * }\n * Component.registerClass(XxxModel);\n * ```\n * ```ts\n * import {inheritDefaultOption} from '../util/component';\n * import {XxxModel, XxxOption} from './XxxModel';\n * export interface XxxSubOption extends XxxOption {\n * bbb: number\n * }\n * class XxxSubModel extends XxxModel {\n * static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {\n * bbb: 456\n * })\n * fn() {\n * let opt = this.getDefaultOption();\n * // opt is {aaa: 123, bbb: 456}\n * }\n * }\n * ```\n *\n * (B) If using class extend (previous approach in echarts 3 & 4):\n * ```js\n * let XxxComponent = Component.extend({\n * defaultOption: {\n * xx: 123\n * }\n * })\n * ```\n * ```js\n * let XxxSubComponent = XxxComponent.extend({\n * defaultOption: {\n * yy: 456\n * },\n * fn: function () {\n * let opt = this.getDefaultOption();\n * // opt is {xx: 123, yy: 456}\n * }\n * })\n * ```\n */\n getDefaultOption(): Opt {\n const ctor = this.constructor;\n\n // If using class declaration, it is different to travel super class\n // in legacy env and auto merge defaultOption. So if using class\n // declaration, defaultOption should be merged manually.\n if (!isExtendedClass(ctor)) {\n // When using ts class, defaultOption must be declared as static.\n return (ctor as any).defaultOption;\n }\n\n // FIXME: remove this approach?\n const fields = inner(this);\n if (!fields.defaultOption) {\n const optList = [];\n let clz = ctor as ExtendableConstructor;\n while (clz) {\n const opt = clz.prototype.defaultOption;\n opt && optList.push(opt);\n clz = clz.superClass;\n }\n\n let defaultOption = {};\n for (let i = optList.length - 1; i >= 0; i--) {\n defaultOption = zrUtil.merge(defaultOption, optList[i], true);\n }\n fields.defaultOption = defaultOption;\n }\n return fields.defaultOption as Opt;\n }\n\n /**\n * Notice: always force to input param `useDefault` in case that forget to consider it.\n * The same behavior as `modelUtil.parseFinder`.\n *\n * @param useDefault In many cases like series refer axis and axis refer grid,\n * If axis index / axis id not specified, use the first target as default.\n * In other cases like dataZoom refer axis, if not specified, measn no refer.\n */\n getReferringComponents(mainType: ComponentMainType, opt: QueryReferringOpt): {\n // Always be array rather than null/undefined, which is convenient to use.\n models: ComponentModel[];\n // Whether target compoent specified\n specified: boolean;\n } {\n const indexKey = (mainType + 'Index') as keyof Opt;\n const idKey = (mainType + 'Id') as keyof Opt;\n\n return queryReferringComponents(\n this.ecModel,\n mainType,\n {\n index: this.get(indexKey, true) as unknown as ModelFinderIndexQuery,\n id: this.get(idKey, true) as unknown as ModelFinderIdQuery\n },\n opt\n );\n }\n\n getBoxLayoutParams() {\n // Consider itself having box layout configs.\n const boxLayoutModel = this as Model;\n return {\n left: boxLayoutModel.get('left'),\n top: boxLayoutModel.get('top'),\n right: boxLayoutModel.get('right'),\n bottom: boxLayoutModel.get('bottom'),\n width: boxLayoutModel.get('width'),\n height: boxLayoutModel.get('height')\n };\n }\n\n // // Interfaces for component / series with select ability.\n // select(dataIndex?: number[], dataType?: string): void {}\n\n // unSelect(dataIndex?: number[], dataType?: string): void {}\n\n // getSelectedDataIndices(): number[] {\n // return [];\n // }\n\n\n static registerClass: ClassManager['registerClass'];\n\n static hasClass: ClassManager['hasClass'];\n\n static registerSubTypeDefaulter: componentUtil.SubTypeDefaulterManager['registerSubTypeDefaulter'];\n\n}\n\nexport type ComponentModelConstructor = typeof ComponentModel\n & ClassManager\n & componentUtil.SubTypeDefaulterManager\n & ExtendableConstructor\n & componentUtil.TopologicalTravelable;\n\nmountExtend(ComponentModel, Model);\nenableClassManagement(ComponentModel as ComponentModelConstructor);\ncomponentUtil.enableSubTypeDefaulter(ComponentModel as ComponentModelConstructor);\ncomponentUtil.enableTopologicalTravel(ComponentModel as ComponentModelConstructor, getDependencies);\n\n\nfunction getDependencies(componentType: string): string[] {\n let deps: string[] = [];\n zrUtil.each((ComponentModel as ComponentModelConstructor).getClassesByMainType(componentType), function (clz) {\n deps = deps.concat((clz as any).dependencies || (clz as any).prototype.dependencies || []);\n });\n\n // Ensure main type.\n deps = zrUtil.map(deps, function (type) {\n return parseClassType(type).main;\n });\n\n // Hack dataset for convenience.\n if (componentType !== 'dataset' && zrUtil.indexOf(deps, 'dataset') <= 0) {\n deps.unshift('dataset');\n }\n\n return deps;\n}\n\n\nexport default ComponentModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nlet platform = '';\n// Navigator not exists in node\nif (typeof navigator !== 'undefined') {\n /* global navigator */\n platform = navigator.platform || '';\n}\n\nconst decalColor = 'rgba(0, 0, 0, 0.2)';\n\nexport default {\n\n darkMode: 'auto',\n // backgroundColor: 'rgba(0,0,0,0)',\n\n colorBy: 'series',\n\n color: [\n '#5470c6',\n '#91cc75',\n '#fac858',\n '#ee6666',\n '#73c0de',\n '#3ba272',\n '#fc8452',\n '#9a60b4',\n '#ea7ccc'\n ],\n\n gradientColor: ['#f6efa6', '#d88273', '#bf444c'],\n\n aria: {\n decal: {\n decals: [{\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [2, 5],\n symbolSize: 1,\n rotation: Math.PI / 6\n }, {\n color: decalColor,\n symbol: 'circle',\n dashArrayX: [[8, 8], [0, 8, 8, 0]],\n dashArrayY: [6, 0],\n symbolSize: 0.8\n }, {\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [4, 3],\n rotation: -Math.PI / 4\n }, {\n color: decalColor,\n dashArrayX: [[6, 6], [0, 6, 6, 0]],\n dashArrayY: [6, 0]\n }, {\n color: decalColor,\n dashArrayX: [[1, 0], [1, 6]],\n dashArrayY: [1, 0, 6, 0],\n rotation: Math.PI / 4\n }, {\n color: decalColor,\n symbol: 'triangle',\n dashArrayX: [[9, 9], [0, 9, 9, 0]],\n dashArrayY: [7, 2],\n symbolSize: 0.75\n }]\n }\n },\n\n // If xAxis and yAxis declared, grid is created by default.\n // grid: {},\n\n textStyle: {\n // color: '#000',\n // decoration: 'none',\n // PENDING\n fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',\n // fontFamily: 'Arial, Verdana, sans-serif',\n fontSize: 12,\n fontStyle: 'normal',\n fontWeight: 'normal'\n },\n\n // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/\n // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n // Default is source-over\n blendMode: null,\n\n stateAnimation: {\n duration: 300,\n easing: 'cubicOut'\n },\n\n animation: 'auto',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut',\n animationEasingUpdate: 'cubicInOut',\n\n animationThreshold: 2000,\n\n // Configuration for progressive/incremental rendering\n progressiveThreshold: 3000,\n progressive: 400,\n\n // Threshold of if use single hover layer to optimize.\n // It is recommended that `hoverLayerThreshold` is equivalent to or less than\n // `progressiveThreshold`, otherwise hover will cause restart of progressive,\n // which is unexpected.\n // see example .\n hoverLayerThreshold: 3000,\n\n // See: module:echarts/scale/Time\n useUTC: false\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * [Notice]:\n * Consider custom bundle on demand, chart specified\n * or component specified types and constants should\n * not put here. Only common types and constants can\n * be put in this file.\n */\n\nimport Group from 'zrender/src/graphic/Group';\nimport Element, {ElementEvent, ElementTextConfig} from 'zrender/src/Element';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport SeriesModel from '../model/Series';\nimport { createHashMap, HashMap } from 'zrender/src/core/util';\nimport { TaskPlanCallbackReturn, TaskProgressParams } from '../core/task';\nimport SeriesData from '../data/SeriesData';\nimport { Dictionary, ElementEventName, ImageLike, TextAlign, TextVerticalAlign } from 'zrender/src/core/types';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\nimport { TooltipMarker } from './format';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\nimport { LinearGradientObject } from 'zrender/src/graphic/LinearGradient';\nimport { RadialGradientObject } from 'zrender/src/graphic/RadialGradient';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { TSpanStyleProps } from 'zrender/src/graphic/TSpan';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { Source } from '../data/Source';\nimport Model from '../model/Model';\nimport { DataStorageDimensionType } from '../data/DataStorage';\nimport { DimensionUserOuputEncode } from '../data/helper/dimensionHelper';\n\n\n\n// ---------------------------\n// Common types and constants\n// ---------------------------\n\nexport {Dictionary};\n\nexport type RendererType = 'canvas' | 'svg';\n\nexport type LayoutOrient = 'vertical' | 'horizontal';\nexport type HorizontalAlign = 'left' | 'center' | 'right';\nexport type VerticalAlign = 'top' | 'middle' | 'bottom';\n\n// Types from zrender\nexport type ColorString = string;\nexport type ZRColor = ColorString | LinearGradientObject | RadialGradientObject | PatternObject;\nexport type ZRLineType = 'solid' | 'dotted' | 'dashed' | number | number[];\n\nexport type ZRFontStyle = 'normal' | 'italic' | 'oblique';\nexport type ZRFontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | number;\n\nexport type ZREasing = AnimationEasing;\n\nexport type ZRTextAlign = TextAlign;\nexport type ZRTextVerticalAlign = TextVerticalAlign;\n\nexport type ZRElementEvent = ElementEvent;\n\nexport type ZRRectLike = RectLike;\n\nexport type ZRStyleProps = PathStyleProps | ImageStyleProps | TSpanStyleProps | TextStyleProps;\n\nexport type ZRElementEventName = ElementEventName | 'globalout';\n\n// ComponentFullType can be:\n// 'xxx.yyy': means ComponentMainType.ComponentSubType.\n// 'xxx': means ComponentMainType.\n// See `checkClassType` check the restict definition.\nexport type ComponentFullType = string;\nexport type ComponentMainType = keyof ECUnitOption & string;\nexport type ComponentSubType = Exclude;\n/**\n * Use `parseClassType` to parse componentType declaration to componentTypeInfo.\n * For example:\n * componentType declaration: 'xxx.yyy', get componentTypeInfo {main: 'xxx', sub: 'yyy'}.\n * componentType declaration: '', get componentTypeInfo {main: '', sub: ''}.\n */\nexport interface ComponentTypeInfo {\n main: ComponentMainType; // Never null/undefined. `''` represents absence.\n sub: ComponentSubType; // Never null/undefined. `''` represents absence.\n}\n\nexport interface ECElement extends Element {\n highDownSilentOnTouch?: boolean;\n onHoverStateChange?: (toState: DisplayState) => void;\n\n // 0: normal\n // 1: blur\n // 2: emphasis\n hoverState?: 0 | 1 | 2;\n selected?: boolean;\n\n z2EmphasisLift?: number;\n z2SelectLift?: number;\n /**\n * Force disable animation on any condition\n */\n disableLabelAnimation?: boolean\n /**\n * Force disable overall layout\n */\n disableLabelLayout?: boolean\n /**\n * Force disable morphing\n */\n disableMorphing?: boolean\n}\n\nexport interface DataHost {\n getData(dataType?: SeriesDataType): SeriesData;\n}\n\nexport interface DataModel extends Model, DataHost, DataFormatMixin {}\n // Pick,\n // Pick {}\n\ninterface PayloadItem {\n excludeSeriesId?: OptionId | OptionId[];\n animation?: PayloadAnimationPart\n // TODO use unknown\n [other: string]: any;\n}\n\nexport interface Payload extends PayloadItem {\n type: string;\n escapeConnect?: boolean;\n batch?: PayloadItem[];\n}\n\nexport interface HighlightPayload extends Payload {\n type: 'highlight';\n notBlur?: boolean\n}\n\nexport interface DownplayPayload extends Payload {\n type: 'downplay';\n notBlur?: boolean\n}\n\n// Payload includes override anmation info\nexport interface PayloadAnimationPart {\n duration?: number\n easing?: AnimationEasing\n delay?: number\n}\n\nexport interface SelectChangedPayload extends Payload {\n type: 'selectchanged'\n escapeConnect: boolean\n isFromClick: boolean\n fromAction: 'select' | 'unselect' | 'toggleSelected'\n fromActionPayload: Payload\n selected: {\n seriesIndex: number\n dataType?: SeriesDataType\n dataIndex: number[]\n }[]\n}\n\nexport interface ViewRootGroup extends Group {\n __ecComponentInfo?: {\n mainType: string,\n index: number\n };\n}\n\nexport interface ECElementEvent extends\n ECEventData,\n CallbackDataParams {\n\n type: ZRElementEventName;\n event?: ElementEvent;\n\n}\n/**\n * The echarts event type to user.\n * Also known as packedEvent.\n */\nexport interface ECActionEvent extends ECEventData {\n // event type\n type: string;\n componentType?: string;\n componentIndex?: number;\n seriesIndex?: number;\n escapeConnect?: boolean;\n batch?: ECEventData;\n}\nexport interface ECEventData {\n // TODO use unknown\n [key: string]: any;\n}\n\nexport interface EventQueryItem {\n // TODO use unknown\n [key: string]: any;\n}\nexport interface NormalizedEventQuery {\n cptQuery: EventQueryItem;\n dataQuery: EventQueryItem;\n otherQuery: EventQueryItem;\n}\n\nexport interface ActionInfo {\n // action type\n type: string;\n // If not provided, use the same string of `type`.\n event?: string;\n // update method\n update?: string;\n}\nexport interface ActionHandler {\n (payload: Payload, ecModel: GlobalModel, api: ExtensionAPI): void | ECEventData;\n}\n\nexport interface OptionPreprocessor {\n (option: ECUnitOption, isTheme: boolean): void\n}\n\nexport interface PostUpdater {\n (ecModel: GlobalModel, api: ExtensionAPI): void;\n}\n\nexport interface StageHandlerReset {\n (seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload):\n StageHandlerProgressExecutor | StageHandlerProgressExecutor[] | void\n}\nexport interface StageHandlerOverallReset {\n (ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload): void\n}\nexport interface StageHandler {\n /**\n * Indicate that the task will be piped all series\n * (`performRawSeries` indicate whether includes filtered series).\n */\n createOnAllSeries?: boolean;\n /**\n * Indicate that the task will be only piped in the pipeline of this type of series.\n * (`performRawSeries` indicate whether includes filtered series).\n */\n seriesType?: string;\n /**\n * Indicate that the task will be only piped in the pipeline of the returned series.\n */\n getTargetSeries?: (ecModel: GlobalModel, api: ExtensionAPI) => HashMap;\n\n /**\n * If `true`, filtered series will also be \"performed\".\n */\n performRawSeries?: boolean;\n\n /**\n * Called only when this task in a pipeline.\n */\n plan?: StageHandlerPlan;\n /**\n * If `overallReset` specified, an \"overall task\" will be created.\n * \"overall task\" does not belong to a certain pipeline.\n * They always be \"performed\" in certain phase (depends on when they declared).\n * They has \"stub\"s to connect with pipelines (one stub for one pipeline),\n * delivering info like \"dirty\" and \"output end\".\n */\n overallReset?: StageHandlerOverallReset;\n /**\n * Called only when this task in a pipeline, and \"dirty\".\n */\n reset?: StageHandlerReset;\n}\n\nexport interface StageHandlerInternal extends StageHandler {\n uid: string;\n visualType?: 'layout' | 'visual';\n // modifyOutputEnd?: boolean;\n __prio: number;\n __raw: StageHandler | StageHandlerOverallReset;\n isVisual?: boolean; // PENDING: not used\n isLayout?: boolean; // PENDING: not used\n}\n\n\nexport type StageHandlerProgressParams = TaskProgressParams;\nexport interface StageHandlerProgressExecutor {\n dataEach?: (data: SeriesData, idx: number) => void;\n progress?: (params: StageHandlerProgressParams, data: SeriesData) => void;\n}\nexport type StageHandlerPlanReturn = TaskPlanCallbackReturn;\nexport interface StageHandlerPlan {\n (seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload?: Payload):\n StageHandlerPlanReturn\n}\n\nexport interface LoadingEffectCreator {\n (api: ExtensionAPI, cfg: object): LoadingEffect;\n}\nexport interface LoadingEffect extends Element {\n resize: () => void;\n}\n\n/**\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n */\nexport type TooltipRenderMode = 'html' | 'richText';\n\nexport type TooltipOrderMode = 'valueAsc' | 'valueDesc' | 'seriesAsc' | 'seriesDesc';\n\n\n// ---------------------------------\n// Data and dimension related types\n// ---------------------------------\n\n// Finally the user data will be parsed and stored in `list._storage`.\n// `NaN` represents \"no data\" (raw data `null`/`undefined`/`NaN`/`'-'`).\n// `Date` will be parsed to timestamp.\n// Ordinal/category data will be parsed to its index if possible, otherwise\n// keep its original string in list._storage.\n// Check `convertValue` for more details.\nexport type OrdinalRawValue = string | number;\nexport type OrdinalNumber = number; // The number mapped from each OrdinalRawValue.\n\n/**\n * @usage For example,\n * ```js\n * { ordinalNumbers: [2, 5, 3, 4] }\n * ```\n * means that ordinal 2 should be diplayed on tick 0,\n * ordinal 5 should be displayed on tick 1, ...\n */\nexport type OrdinalSortInfo = {\n ordinalNumbers: OrdinalNumber[];\n};\n\n/**\n * `OptionDataValue` is the primitive value in `series.data` or `dataset.source`.\n * `OptionDataValue` are parsed (see `src/data/helper/dataValueHelper.parseDataValue`)\n * into `ParsedValue` and stored into `data/SeriesData` storage.\n * Note:\n * (1) The term \"parse\" does not mean `src/scale/Scale['parse']`.\n * (2) If a category dimension is not mapped to any axis, its raw value will NOT be\n * parsed to `OrdinalNumber` but keep the original `OrdinalRawValue` in `src/data/SeriesData` storage.\n */\nexport type ParsedValue = ParsedValueNumeric | OrdinalRawValue;\nexport type ParsedValueNumeric = number | OrdinalNumber;\n\n/**\n * `ScaleDataValue` means that the user input primitive value to `src/scale/Scale`.\n * (For example, used in `axis.min`, `axis.max`, `convertToPixel`).\n * Note:\n * `ScaleDataValue` is a little different from `OptionDataValue`, because it will not go through\n * `src/data/helper/dataValueHelper.parseDataValue`, but go through `src/scale/Scale['parse']`.\n */\nexport type ScaleDataValue = ParsedValueNumeric | OrdinalRawValue | Date;\n\nexport interface ScaleTick {\n value: number\n};\nexport interface TimeScaleTick extends ScaleTick {\n /**\n * Level information is used for label formatting.\n * For example, a time axis may contain labels like: Jan, 8th, 16th, 23th,\n * Feb, and etc. In this case, month labels like Jan and Feb should be\n * displayed in a more significant way than days.\n * `level` is set to be 0 when it's the most significant level, like month\n * labels in the above case.\n */\n level?: number\n};\nexport interface OrdinalScaleTick extends ScaleTick {\n /**\n * Represents where the tick will be placed visually.\n * Notice:\n * The value is not the raw ordinal value. And do not changed\n * after ordinal scale sorted.\n * We need to:\n * ```js\n * const coord = dataToCoord(ordinalScale.getRawOrdinalNumber(tick.value)).\n * ```\n * Why place the tick value here rather than the raw ordinal value (like LogScale did)?\n * Becuase ordinal scale sort is the different case from LogScale, where\n * axis tick, splitArea should better not to be sorted, especially in\n * anid(animation id) when `boundaryGap: true`.\n * Only axis label are sorted.\n */\n value: number\n};\n\n// Can only be string or index, because it is used in object key in some code.\n// Making the type alias here just intending to show the meaning clearly in code.\nexport type DimensionIndex = number;\n// If being a number-like string but not being defined a dimension name.\n// See `List.js#getDimension` for more details.\nexport type DimensionIndexLoose = DimensionIndex | string;\nexport type DimensionName = string;\nexport type DimensionLoose = DimensionName | DimensionIndexLoose;\nexport type DimensionType = DataStorageDimensionType;\n\nexport const VISUAL_DIMENSIONS = createHashMap([\n 'tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'seriesName'\n]);\n// The key is VISUAL_DIMENSIONS\nexport interface DataVisualDimensions {\n // can be set as false to directly to prevent this data\n // dimension from displaying in the default tooltip.\n // see `Series.ts#formatTooltip`.\n tooltip?: DimensionIndex | false;\n label?: DimensionIndex;\n itemName?: DimensionIndex;\n itemId?: DimensionIndex;\n itemGroupId?: DimensionIndex;\n seriesName?: DimensionIndex;\n}\n\nexport type DimensionDefinition = {\n type?: DataStorageDimensionType,\n name?: DimensionName,\n displayName?: string\n};\nexport type DimensionDefinitionLoose = DimensionDefinition['name'] | DimensionDefinition;\n\nexport const SOURCE_FORMAT_ORIGINAL = 'original' as const;\nexport const SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows' as const;\nexport const SOURCE_FORMAT_OBJECT_ROWS = 'objectRows' as const;\nexport const SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns' as const;\nexport const SOURCE_FORMAT_TYPED_ARRAY = 'typedArray' as const;\nexport const SOURCE_FORMAT_UNKNOWN = 'unknown' as const;\n\nexport type SourceFormat =\n typeof SOURCE_FORMAT_ORIGINAL\n | typeof SOURCE_FORMAT_ARRAY_ROWS\n | typeof SOURCE_FORMAT_OBJECT_ROWS\n | typeof SOURCE_FORMAT_KEYED_COLUMNS\n | typeof SOURCE_FORMAT_TYPED_ARRAY\n | typeof SOURCE_FORMAT_UNKNOWN;\n\nexport const SERIES_LAYOUT_BY_COLUMN = 'column' as const;\nexport const SERIES_LAYOUT_BY_ROW = 'row' as const;\n\nexport type SeriesLayoutBy = typeof SERIES_LAYOUT_BY_COLUMN | typeof SERIES_LAYOUT_BY_ROW;\n// null/undefined/'auto': auto detect header, see \"src/data/helper/sourceHelper\".\n// If number, means header lines count, or say, `startIndex`.\n// Like `sourceHeader: 2`, means line 0 and line 1 are header, data start from line 2.\nexport type OptionSourceHeader = boolean | 'auto' | number;\n\nexport type SeriesDataType = 'main' | 'node' | 'edge';\n\n\n// --------------------------------------------\n// echarts option types (base and common part)\n// --------------------------------------------\n\n/**\n * [ECUnitOption]:\n * An object that contains definitions of components\n * and other properties. For example:\n *\n * ```ts\n * let option: ECUnitOption = {\n *\n * // Single `title` component:\n * title: {...},\n *\n * // Two `visualMap` components:\n * visualMap: [{...}, {...}],\n *\n * // Two `series.bar` components\n * // and one `series.pie` component:\n * series: [\n * {type: 'bar', data: [...]},\n * {type: 'bar', data: [...]},\n * {type: 'pie', data: [...]}\n * ],\n *\n * // A property:\n * backgroundColor: '#421ae4'\n *\n * // A property object:\n * textStyle: {\n * color: 'red',\n * fontSize: 20\n * }\n * };\n * ```\n */\nexport type ECUnitOption = {\n // Exclude these reserverd word for `ECOption` to avoid to infer to \"any\".\n baseOption?: unknown\n options?: unknown\n media?: unknown\n\n timeline?: ComponentOption | ComponentOption[]\n backgroundColor?: ZRColor\n darkMode?: boolean | 'auto'\n textStyle?: Pick\n useUTC?: boolean\n\n [key: string]: ComponentOption | ComponentOption[] | Dictionary | unknown\n\n stateAnimation?: AnimationOption\n} & AnimationOptionMixin & ColorPaletteOptionMixin;\n\n/**\n * [ECOption]:\n * An object input to echarts.setOption(option).\n * May be an 'option: ECUnitOption',\n * or may be an object contains multi-options. For example:\n *\n * ```ts\n * let option: ECOption = {\n * baseOption: {\n * title: {...},\n * legend: {...},\n * series: [\n * {data: [...]},\n * {data: [...]},\n * ...\n * ]\n * },\n * timeline: {...},\n * options: [\n * {title: {...}, series: {data: [...]}},\n * {title: {...}, series: {data: [...]}},\n * ...\n * ],\n * media: [\n * {\n * query: {maxWidth: 320},\n * option: {series: {x: 20}, visualMap: {show: false}}\n * },\n * {\n * query: {minWidth: 320, maxWidth: 720},\n * option: {series: {x: 500}, visualMap: {show: true}}\n * },\n * {\n * option: {series: {x: 1200}, visualMap: {show: true}}\n * }\n * ]\n * };\n * ```\n */\nexport interface ECBasicOption extends ECUnitOption {\n baseOption?: ECUnitOption;\n timeline?: ComponentOption | ComponentOption[];\n options?: ECUnitOption[];\n media?: MediaUnit[];\n};\n\n// series.data or dataset.source\nexport type OptionSourceData<\n VAL extends OptionDataValue = OptionDataValue,\n ORIITEM extends OptionDataItemOriginal = OptionDataItemOriginal\n> =\n OptionSourceDataOriginal\n | OptionSourceDataObjectRows\n | OptionSourceDataArrayRows\n | OptionSourceDataKeyedColumns\n | OptionSourceDataTypedArray;\nexport type OptionDataItemOriginal<\n VAL extends OptionDataValue = OptionDataValue\n> = VAL | VAL[] | OptionDataItemObject;\nexport type OptionSourceDataOriginal<\n VAL extends OptionDataValue = OptionDataValue,\n ORIITEM extends OptionDataItemOriginal = OptionDataItemOriginal\n> = ArrayLike;\nexport type OptionSourceDataObjectRows =\n Array>;\nexport type OptionSourceDataArrayRows =\n Array>;\nexport type OptionSourceDataKeyedColumns =\n Dictionary>;\nexport type OptionSourceDataTypedArray = ArrayLike;\n\n// See also `model.js#getDataItemValue`.\nexport type OptionDataItem =\n OptionDataValue\n | Dictionary\n | OptionDataValue[]\n // FIXME: In some case (markpoint in geo (geo-map.html)), dataItem is {coord: [...]}\n | OptionDataItemObject;\n// Only for `SOURCE_FORMAT_KEYED_ORIGINAL`\nexport type OptionDataItemObject = {\n id?: OptionId;\n name?: OptionName;\n groupId?: OptionId;\n value?: T[] | T;\n selected?: boolean;\n};\n// Compat number because it is usually used and not easy to\n// restrict it in practise.\nexport type OptionId = string | number;\nexport type OptionName = string | number;\nexport interface GraphEdgeItemObject<\n VAL extends OptionDataValue\n> extends OptionDataItemObject {\n /**\n * Name or index of source node.\n */\n source?: string | number\n /**\n * Name or index of target node.\n */\n target?: string | number\n}\nexport type OptionDataValue = string | number | Date;\n\nexport type OptionDataValueNumeric = number | '-';\nexport type OptionDataValueCategory = string;\nexport type OptionDataValueDate = Date | string | number;\n\n// export type ModelOption = Dictionary | any[] | string | number | boolean | ((...args: any) => any);\nexport type ModelOption = any;\nexport type ThemeOption = Dictionary;\n\nexport type DisplayState = 'normal' | 'emphasis' | 'blur' | 'select';\nexport type DisplayStateNonNormal = Exclude;\nexport type DisplayStateHostOption = {\n emphasis?: Dictionary,\n [key: string]: any\n};\n\n// The key is VISUAL_DIMENSIONS\nexport interface OptionEncodeVisualDimensions {\n tooltip?: OptionEncodeValue;\n label?: OptionEncodeValue;\n itemName?: OptionEncodeValue;\n itemId?: OptionEncodeValue;\n seriesName?: OptionEncodeValue;\n // Notice: `value` is coordDim, not nonCoordDim.\n\n // Group id is used for linking the aggregate relationship between two set of data.\n // Which is useful in prepresenting the transition key of drilldown/up animation.\n // Or hover linking.\n itemGroupId?: OptionEncodeValue;\n}\nexport interface OptionEncode extends OptionEncodeVisualDimensions {\n [coordDim: string]: OptionEncodeValue | undefined\n}\nexport type OptionEncodeValue = DimensionLoose | DimensionLoose[];\nexport type EncodeDefaulter = (source: Source, dimCount: number) => OptionEncode;\n\n// TODO: TYPE Different callback param for different series\nexport interface CallbackDataParams {\n // component main type\n componentType: string;\n // component sub type\n componentSubType: string;\n componentIndex: number;\n // series component sub type\n seriesType?: string;\n // series component index (the alias of `componentIndex` for series)\n seriesIndex?: number;\n seriesId?: string;\n seriesName?: string;\n name: string;\n dataIndex: number;\n data: OptionDataItem;\n dataType?: SeriesDataType;\n value: OptionDataItem | OptionDataValue;\n color?: ZRColor;\n borderColor?: string;\n dimensionNames?: DimensionName[];\n encode?: DimensionUserOuputEncode;\n marker?: TooltipMarker;\n status?: DisplayState;\n dimensionIndex?: number;\n percent?: number; // Only for chart like 'pie'\n\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: string[];\n}\nexport type InterpolatableValue = ParsedValue | ParsedValue[];\n\nexport type DecalDashArrayX = number | (number | number[])[];\nexport type DecalDashArrayY = number | number[];\nexport interface DecalObject {\n // 'image', 'triangle', 'diamond', 'pin', 'arrow', 'line', 'rect', 'roundRect', 'square', 'circle'\n symbol?: string | string[]\n\n // size relative to the dash bounding box; valued from 0 to 1\n symbolSize?: number\n // keep the aspect ratio and use the smaller one of width and height as bounding box size\n symbolKeepAspect?: boolean\n\n // foreground color of the pattern\n color?: string\n // background color of the pattern; default value is 'none' (same as 'transparent') so that the underlying series color is displayed\n backgroundColor?: string\n\n // dash-gap pattern on x\n dashArrayX?: DecalDashArrayX\n // dash-gap pattern on y\n dashArrayY?: DecalDashArrayY\n\n // in radians; valued from -Math.PI to Math.PI\n rotation?: number\n\n // boundary of largest tile width\n maxTileWidth?: number\n // boundary of largest tile height\n maxTileHeight?: number\n};\n\nexport interface InnerDecalObject extends DecalObject {\n // Mark dirty when object may be changed.\n // The record in WeakMap will be deleted.\n dirty?: boolean\n}\n\nexport interface MediaQuery {\n minWidth?: number;\n maxWidth?: number;\n minHeight?: number;\n maxHeight?: number;\n minAspectRatio?: number;\n maxAspectRatio?: number;\n};\nexport type MediaUnit = {\n query?: MediaQuery,\n option: ECUnitOption\n};\n\nexport type ComponentLayoutMode = {\n // Only support 'box' now.\n type?: 'box',\n ignoreSize?: boolean | boolean[]\n};\n/******************* Mixins for Common Option Properties ********************** */\nexport type PaletteOptionMixin = ColorPaletteOptionMixin;\n\nexport interface ColorPaletteOptionMixin {\n color?: ZRColor | ZRColor[]\n colorLayer?: ZRColor[][]\n}\n\nexport interface AriaLabelOption {\n enabled?: boolean;\n description?: string;\n general?: {\n withTitle?: string;\n withoutTitle?: string;\n };\n series?: {\n maxCount?: number;\n single?: {\n prefix?: string;\n withName?: string;\n withoutName?: string;\n };\n multiple?: {\n prefix?: string;\n withName?: string;\n withoutName?: string;\n separator?: {\n middle?: string;\n end?: string;\n }\n }\n };\n data?: {\n maxCount?: number;\n allData?: string;\n partialData?: string;\n withName?: string;\n withoutName?: string;\n separator?: {\n middle?: string;\n end?: string;\n }\n }\n}\n\n// Extending is for compating ECharts 4\nexport interface AriaOption extends AriaLabelOption {\n mainType?: 'aria';\n\n enabled?: boolean;\n label?: AriaLabelOption;\n decal?: {\n show?: boolean;\n decals?: DecalObject | DecalObject[];\n };\n}\n\nexport interface AriaOptionMixin {\n aria?: AriaOption\n}\n\n/**\n * Mixin of option set to control the box layout of each component.\n */\nexport interface BoxLayoutOptionMixin {\n width?: number | string;\n height?: number | string;\n top?: number | string;\n right?: number | string;\n bottom?: number | string;\n left?: number | string;\n}\n\nexport interface CircleLayoutOptionMixin {\n // Can be percent\n center?: (number | string)[]\n // Can specify [innerRadius, outerRadius]\n radius?: (number | string)[] | number | string\n}\n\nexport interface ShadowOptionMixin {\n shadowBlur?: number\n shadowColor?: ColorString\n shadowOffsetX?: number\n shadowOffsetY?: number\n}\n\nexport interface BorderOptionMixin {\n borderColor?: ZRColor\n borderWidth?: number\n borderType?: ZRLineType\n borderCap?: CanvasLineCap\n borderJoin?: CanvasLineJoin\n borderDashOffset?: number\n borderMiterLimit?: number\n}\n\nexport type ColorBy = 'series' | 'data';\n\nexport interface SunburstColorByMixin {\n colorBy?: ColorBy\n}\n\nexport type AnimationDelayCallbackParam = {\n count: number\n index: number\n};\nexport type AnimationDurationCallback = (idx: number) => number;\nexport type AnimationDelayCallback = (idx: number, params?: AnimationDelayCallbackParam) => number;\n\nexport interface AnimationOption {\n duration?: number\n easing?: AnimationEasing\n delay?: number\n // additive?: boolean\n}\n/**\n * Mixin of option set to control the animation of series.\n */\nexport interface AnimationOptionMixin {\n /**\n * If enable animation\n */\n animation?: boolean\n /**\n * Disable animation when the number of elements exceeds the threshold\n */\n animationThreshold?: number\n // For init animation\n /**\n * Duration of initialize animation.\n * Can be a callback to specify duration of each element\n */\n animationDuration?: number | AnimationDurationCallback\n /**\n * Easing of initialize animation\n */\n animationEasing?: AnimationEasing\n /**\n * Delay of initialize animation\n * Can be a callback to specify duration of each element\n */\n animationDelay?: number | AnimationDelayCallback\n // For update animation\n /**\n * Delay of data update animation.\n * Can be a callback to specify duration of each element\n */\n animationDurationUpdate?: number | AnimationDurationCallback\n /**\n * Easing of data update animation.\n */\n animationEasingUpdate?: AnimationEasing\n /**\n * Delay of data update animation.\n * Can be a callback to specify duration of each element\n */\n animationDelayUpdate?: number | AnimationDelayCallback\n}\n\nexport interface RoamOptionMixin {\n /**\n * If enable roam. can be specified 'scale' or 'move'\n */\n roam?: boolean | 'pan' | 'move' | 'zoom' | 'scale'\n /**\n * Current center position.\n */\n center?: number[]\n /**\n * Current zoom level. Default is 1\n */\n zoom?: number\n\n scaleLimit?: {\n min?: number\n max?: number\n }\n}\n\n// TODO: TYPE value type?\nexport type SymbolSizeCallback = (rawValue: any, params: T) => number | number[];\nexport type SymbolCallback = (rawValue: any, params: T) => string;\nexport type SymbolRotateCallback = (rawValue: any, params: T) => number;\nexport type SymbolOffsetCallback = (rawValue: any, params: T) => string | number | (string | number)[];\n/**\n * Mixin of option set to control the element symbol.\n * Include type of symbol, and size of symbol.\n */\nexport interface SymbolOptionMixin {\n /**\n * type of symbol, like `cirlce`, `rect`, or custom path and image.\n */\n symbol?: string | (unknown extends T ? never : SymbolCallback)\n /**\n * Size of symbol.\n */\n symbolSize?: number | number[] | (unknown extends T ? never : SymbolSizeCallback)\n\n symbolRotate?: number | (unknown extends T ? never : SymbolRotateCallback)\n\n symbolKeepAspect?: boolean\n\n symbolOffset?: string | number | (string | number)[] | (unknown extends T ? never : SymbolOffsetCallback)\n}\n\n/**\n * ItemStyleOption is a most common used set to config element styles.\n * It includes both fill and stroke style.\n */\nexport interface ItemStyleOption extends ShadowOptionMixin, BorderOptionMixin {\n color?: ZRColor\n opacity?: number\n decal?: DecalObject | 'none'\n}\n\n/**\n * ItemStyleOption is a option set to control styles on lines.\n * Used in the components or series like `line`, `axis`\n * It includes stroke style.\n */\nexport interface LineStyleOption extends ShadowOptionMixin {\n width?: number\n color?: Clr\n opacity?: number\n type?: ZRLineType\n cap?: CanvasLineCap\n join?: CanvasLineJoin\n dashOffset?: number\n miterLimit?: number\n}\n\n/**\n * ItemStyleOption is a option set to control styles on an area, like polygon, rectangle.\n * It only include fill style.\n */\nexport interface AreaStyleOption extends ShadowOptionMixin {\n color?: Clr\n opacity?: number\n}\n\ntype Arrayable> = { [key in keyof T]: T[key] | T[key][] };\ntype Dictionaryable> = { [key in keyof T]: T[key] | Dictionary};\n\nexport interface VisualOptionUnit {\n symbol?: string\n // TODO Support [number, number]?\n symbolSize?: number\n color?: ColorString\n colorAlpha?: number\n opacity?: number\n colorLightness?: number\n colorSaturation?: number\n colorHue?: number\n decal?: DecalObject\n\n // Not exposed?\n liftZ?: number\n}\nexport type VisualOptionFixed = VisualOptionUnit;\n/**\n * Option about visual properties used in piecewise mapping\n * Used in each piece.\n */\nexport type VisualOptionPiecewise = VisualOptionUnit;\n/**\n * Option about visual properties used in linear mapping\n */\nexport type VisualOptionLinear = Arrayable;\n\n/**\n * Option about visual properties can be encoded from ordinal categories.\n * Each value can either be a dictonary to lookup with category name, or\n * be an array to lookup with category index. In this case the array length should\n * be same with categories\n */\nexport type VisualOptionCategory = Arrayable | Dictionaryable;\n\n/**\n * All visual properties can be encoded.\n */\nexport type BuiltinVisualProperty = keyof VisualOptionUnit;\n\nexport interface TextCommonOption extends ShadowOptionMixin {\n color?: string\n fontStyle?: ZRFontStyle\n fontWeight?: ZRFontWeight\n fontFamily?: string\n fontSize?: number | string\n align?: HorizontalAlign\n verticalAlign?: VerticalAlign\n // @deprecated\n baseline?: VerticalAlign\n\n opacity?: number\n\n lineHeight?: number\n backgroundColor?: ColorString | {\n image: ImageLike | string\n }\n borderColor?: string\n borderWidth?: number\n borderType?: ZRLineType\n borderDashOffset?: number\n borderRadius?: number | number[]\n padding?: number | number[]\n\n width?: number | string// Percent\n height?: number\n textBorderColor?: string\n textBorderWidth?: number\n textBorderType?: ZRLineType\n textBorderDashOffset?: number\n\n textShadowBlur?: number\n textShadowColor?: string\n textShadowOffsetX?: number\n textShadowOffsetY?: number\n\n tag?: string\n}\n\nexport interface LabelFormatterCallback {\n (params: T): string\n}\n/**\n * LabelOption is an option set to control the style of labels.\n * Include color, background, shadow, truncate, rotation, distance, etc..\n */\nexport interface LabelOption extends TextCommonOption {\n /**\n * If show label\n */\n show?: boolean\n // TODO: TYPE More specified 'inside', 'insideTop'....\n // x, y can be both percent string or number px.\n position?: ElementTextConfig['position']\n distance?: number\n rotate?: number\n offset?: number[]\n\n /**\n * Min margin between labels. Used when label has layout.\n */\n // It's minMargin instead of margin is for not breaking the previous code using margin.\n minMargin?: number\n\n overflow?: TextStyleProps['overflow']\n silent?: boolean\n precision?: number | 'auto'\n valueAnimation?: boolean\n\n // TODO: TYPE not all label support formatter\n // formatter?: string | ((params: CallbackDataParams) => string)\n\n rich?: Dictionary\n}\n\nexport interface SeriesLabelOption extends LabelOption {\n formatter?: string | LabelFormatterCallback\n}\n\n/**\n * Option for labels on line, like markLine, lines\n */\nexport interface LineLabelOption extends Omit {\n position?: 'start'\n | 'middle'\n | 'end'\n | 'insideStart'\n | 'insideStartTop'\n | 'insideStartBottom'\n | 'insideMiddle'\n | 'insideMiddleTop'\n | 'insideMiddleBottom'\n | 'insideEnd'\n | 'insideEndTop'\n | 'insideEndBottom'\n | 'insideMiddleBottom'\n /**\n * Distance can be an array.\n * Which will specify horizontal and vertical distance respectively\n */\n distance?: number | number[]\n}\n\nexport interface LabelLineOption {\n show?: boolean\n /**\n * If displayed above other elements\n */\n showAbove?: boolean\n length?: number\n length2?: number\n smooth?: boolean | number\n minTurnAngle?: number,\n lineStyle?: LineStyleOption\n}\n\nexport interface SeriesLineLabelOption extends LineLabelOption {\n formatter?: string | LabelFormatterCallback\n}\n\n\n\nexport interface LabelLayoutOptionCallbackParams {\n /**\n * Index of data which the label represents.\n * It can be null if label does't represent any data.\n */\n dataIndex?: number,\n /**\n * Type of data which the label represents.\n * It can be null if label does't represent any data.\n */\n dataType?: SeriesDataType,\n seriesIndex: number,\n text: string\n align: ZRTextAlign\n verticalAlign: ZRTextVerticalAlign\n rect: RectLike\n labelRect: RectLike\n // Points of label line in pie/funnel\n labelLinePoints?: number[][]\n // x: number\n // y: number\n};\n\nexport interface LabelLayoutOption {\n /**\n * If move the overlapped label. If label is still overlapped after moved.\n * It will determine if to hide this label with `hideOverlap` policy.\n *\n * shiftX/Y will keep the order on x/y\n * shuffleX/y will move the label around the original position randomly.\n */\n moveOverlap?: 'shiftX'\n | 'shiftY'\n | 'shuffleX'\n | 'shuffleY'\n /**\n * If hide the overlapped label. It will be handled after move.\n * @default 'none'\n */\n hideOverlap?: boolean\n /**\n * If label is draggable.\n */\n draggable?: boolean\n /**\n * Can be absolute px number or percent string.\n */\n x?: number | string\n y?: number | string\n /**\n * offset on x based on the original position.\n */\n dx?: number\n /**\n * offset on y based on the original position.\n */\n dy?: number\n rotate?: number\n\n align?: ZRTextAlign\n verticalAlign?: ZRTextVerticalAlign\n width?: number\n height?: number\n fontSize?: number\n\n labelLinePoints?: number[][]\n}\n\nexport type LabelLayoutOptionCallback = (params: LabelLayoutOptionCallbackParams) => LabelLayoutOption;\n\n\nexport interface TooltipFormatterCallback {\n /**\n * For sync callback\n * params will be an array on axis trigger.\n */\n (params: T, asyncTicket: string): string | HTMLElement | HTMLElement[]\n /**\n * For async callback.\n * Returned html string will be a placeholder when callback is not invoked.\n */\n (\n params: T, asyncTicket: string,\n callback: (cbTicket: string, htmlOrDomNodes: string | HTMLElement | HTMLElement[]) => void\n ) : string | HTMLElement | HTMLElement[]\n}\n\ntype TooltipBuiltinPosition = 'inside' | 'top' | 'left' | 'right' | 'bottom';\ntype TooltipBoxLayoutOption = Pick<\n BoxLayoutOptionMixin, 'top' | 'left' | 'right' | 'bottom'\n>;\n\nexport type TooltipPositionCallbackParams = CallbackDataParams | CallbackDataParams[];\n\n/**\n * Position relative to the hoverred element. Only available when trigger is item.\n */\nexport interface TooltipPositionCallback {\n (\n point: [number, number],\n /**\n * params will be an array on axis trigger.\n */\n params: TooltipPositionCallbackParams,\n /**\n * Will be HTMLDivElement when renderMode is html\n * Otherwise it's graphic.Text\n */\n el: HTMLDivElement | ZRText | null,\n /**\n * Rect of hover elements. Will be null if not hovered\n */\n rect: RectLike | null,\n size: {\n /**\n * Size of popup content\n */\n contentSize: [number, number]\n /**\n * Size of the chart view\n */\n viewSize: [number, number]\n }\n ): Array | TooltipBuiltinPosition | TooltipBoxLayoutOption\n}\n/**\n * Common tooltip option\n * Can be configured on series, graphic elements\n */\nexport interface CommonTooltipOption {\n\n show?: boolean\n\n /**\n * When to trigger\n */\n triggerOn?: 'mousemove' | 'click' | 'none' | 'mousemove|click'\n /**\n * Whether to not hide popup content automatically\n */\n alwaysShowContent?: boolean\n\n formatter?: string | TooltipFormatterCallback\n /**\n * Absolution pixel [x, y] array. Or relative percent string [x, y] array.\n * If trigger is 'item'. position can be set to 'inside' / 'top' / 'left' / 'right' / 'bottom',\n * which is relative to the hovered element.\n *\n * Support to be a callback\n */\n position?: (number | string)[] | TooltipBuiltinPosition | TooltipPositionCallback | TooltipBoxLayoutOption\n\n confine?: boolean\n\n /**\n * Consider triggered from axisPointer handle, verticalAlign should be 'middle'\n */\n align?: HorizontalAlign\n\n verticalAlign?: VerticalAlign\n /**\n * Delay of show. milesecond.\n */\n showDelay?: number\n\n /**\n * Delay of hide. milesecond.\n */\n hideDelay?: number\n\n transitionDuration?: number\n /**\n * Whether mouse is allowed to enter the floating layer of tooltip\n * If you need to interact in the tooltip like with links or buttons, it can be set as true.\n */\n enterable?: boolean\n\n backgroundColor?: ColorString\n borderColor?: ColorString\n borderRadius?: number\n borderWidth?: number\n shadowBlur?: number\n shadowColor?: string\n shadowOffsetX?: number\n shadowOffsetY?: number\n\n /**\n * Padding between tooltip content and tooltip border.\n */\n padding?: number | number[]\n\n /**\n * Available when renderMode is 'html'\n */\n extraCssText?: string\n\n textStyle?: Pick & {\n\n // Available when renderMode is html\n decoration?: string\n }\n}\n\nexport type ComponentItemTooltipOption = CommonTooltipOption & {\n // Default content HTML.\n content?: string;\n formatterParams?: ComponentItemTooltipLabelFormatterParams;\n};\nexport type ComponentItemTooltipLabelFormatterParams = {\n componentType: string\n name: string\n // properies key array like ['name']\n $vars: string[]\n} & {\n // Other properties\n [key in string]: unknown\n};\n\n\n/**\n * Tooltip option configured on each series\n */\nexport type SeriesTooltipOption = CommonTooltipOption & {\n trigger?: 'item' | 'axis' | boolean | 'none'\n};\n\n\n\n\ntype LabelFormatterParams = {\n value: ScaleDataValue\n axisDimension: string\n axisIndex: number\n seriesData: CallbackDataParams[]\n};\n/**\n * Common axis option. can be configured on each axis\n */\nexport interface CommonAxisPointerOption {\n show?: boolean | 'auto'\n\n z?: number;\n zlevel?: number;\n\n triggerOn?: 'click' | 'mousemove' | 'none' | 'mousemove|click'\n\n type?: 'line' | 'shadow' | 'none'\n\n snap?: boolean\n\n triggerTooltip?: boolean\n\n /**\n * current value. When using axisPointer.handle, value can be set to define the initail position of axisPointer.\n */\n value?: ScaleDataValue\n\n status?: 'show' | 'hide'\n\n // [group0, group1, ...]\n // Each group can be: {\n // mapper: function () {},\n // singleTooltip: 'multiple', // 'multiple' or 'single'\n // xAxisId: ...,\n // yAxisName: ...,\n // angleAxisIndex: ...\n // }\n // mapper: can be ignored.\n // input: {axisInfo, value}\n // output: {axisInfo, value}\n\n label?: LabelOption & {\n precision?: 'auto' | number\n margin?: number\n /**\n * String template include variable {value} or callback function\n */\n formatter?: string | ((params: LabelFormatterParams) => string)\n }\n animation?: boolean | 'auto'\n animationDurationUpdate?: number\n animationEasingUpdate?: ZREasing\n\n /**\n * Available when type is 'line'\n */\n lineStyle?: LineStyleOption\n /**\n * Available when type is 'shadow'\n */\n shadowStyle?: AreaStyleOption\n\n handle?: {\n show?: boolean\n icon?: string\n /**\n * The size of the handle\n */\n size?: number | number[]\n /**\n * Distance from handle center to axis.\n */\n margin?: number\n\n color?: ColorString\n\n /**\n * Throttle for mobile performance\n */\n throttle?: number\n } & ShadowOptionMixin\n\n\n seriesDataIndices?: {\n seriesIndex: number\n dataIndex: number\n dataIndexInside: number\n }[]\n\n}\n\nexport interface ComponentOption {\n mainType?: string;\n\n type?: string;\n\n id?: OptionId;\n name?: OptionName;\n\n z?: number;\n zlevel?: number;\n}\n\nexport type BlurScope = 'coordinateSystem' | 'series' | 'global';\n\n/**\n * can be array of data indices.\n * Or may be an dictionary if have different types of data like in graph.\n */\nexport type InnerFocus = DefaultEmphasisFocus | ArrayLike | Dictionary>;\n\nexport interface DefaultExtraStateOpts {\n emphasis: any\n select: any\n blur: any\n}\n\nexport type DefaultEmphasisFocus = 'none' | 'self' | 'series';\n\nexport interface DefaultExtraEmpasisState {\n /**\n * self: Focus self and blur all others.\n * series: Focus series and blur all other series.\n */\n focus?: DefaultEmphasisFocus\n}\n\ninterface ExtraStateOptsBase {\n emphasis?: {\n focus?: string\n },\n select?: any\n blur?: any\n}\n\nexport interface StatesOptionMixin {\n /**\n * Emphasis states\n */\n emphasis?: StateOption & ExtraStateOpts['emphasis'] & {\n /**\n * Scope of blurred element when focus.\n *\n * coordinateSystem: blur others in the same coordinateSystem\n * series: blur others in the same series\n * global: blur all others\n *\n * Default to be coordinate system.\n */\n blurScope?: BlurScope\n }\n /**\n * Select states\n */\n select?: StateOption & ExtraStateOpts['select']\n /**\n * Blur states.\n */\n blur?: StateOption & ExtraStateOpts['blur']\n}\n\nexport interface UniversalTransitionOption {\n enabled?: boolean\n /**\n * Animation delay of each divided element\n */\n delay?: (index: number, count: number) => number\n /**\n * How to divide the shape in combine and split animation.\n */\n divideShape?: 'clone' | 'split'\n /**\n * Series will have transition between if they have same seriesKey.\n * Usually it is a string. It can also be an array,\n * which means it can be transition from or to multiple series with each key in this array item.\n *\n * Note:\n * If two series have both array seriesKey. They will be compared after concated to a string(which is order independent)\n * Transition between string key has higher priority.\n *\n * Default to use series id.\n */\n seriesKey?: string | string[]\n}\n\nexport interface SeriesOption<\n StateOption=any, ExtraStateOpts extends ExtraStateOptsBase = DefaultExtraStateOpts> extends\n ComponentOption,\n AnimationOptionMixin,\n ColorPaletteOptionMixin,\n StatesOptionMixin\n{\n mainType?: 'series'\n\n silent?: boolean\n\n blendMode?: string\n\n /**\n * Cursor when mouse on the elements\n */\n cursor?: string\n\n /**\n * groupId of data. can be used for doing drilldown / up animation\n * It will be ignored if:\n * - groupId is specified in each data\n * - encode.itemGroupId is given.\n */\n dataGroupId?: OptionId\n // Needs to be override\n data?: unknown\n\n colorBy?: ColorBy\n\n legendHoverLink?: boolean\n\n /**\n * Configurations about progressive rendering\n */\n progressive?: number | false\n progressiveThreshold?: number\n progressiveChunkMode?: 'mod'\n /**\n * Not available on every series\n */\n coordinateSystem?: string\n\n hoverLayerThreshold?: number\n\n /**\n * When dataset is used, seriesLayoutBy specifies whether the column or the row of dataset is mapped to the series\n * namely, the series is \"layout\" on columns or rows\n * @default 'column'\n */\n seriesLayoutBy?: 'column' | 'row'\n\n labelLine?: LabelLineOption\n\n /**\n * Overall label layout option in label layout stage.\n */\n labelLayout?: LabelLayoutOption | LabelLayoutOptionCallback\n\n /**\n * Animation config for state transition.\n */\n stateAnimation?: AnimationOption\n\n /**\n * If enabled universal transition cross series.\n * @example\n * universalTransition: true\n * universalTransition: { enabled: true }\n */\n universalTransition?: boolean | UniversalTransitionOption\n\n /**\n * Map of selected data\n * key is name or index of data.\n */\n selectedMap?: Dictionary\n selectedMode?: 'single' | 'multiple' | boolean\n}\n\nexport interface SeriesOnCartesianOptionMixin {\n xAxisIndex?: number\n yAxisIndex?: number\n\n xAxisId?: string\n yAxisId?: string\n}\n\nexport interface SeriesOnPolarOptionMixin {\n polarIndex?: number\n polarId?: string;\n}\n\nexport interface SeriesOnSingleOptionMixin {\n singleAxisIndex?: number\n singleAxisId?: string\n}\n\nexport interface SeriesOnGeoOptionMixin {\n geoIndex?: number;\n geoId?: string\n}\n\nexport interface SeriesOnCalendarOptionMixin {\n calendarIndex?: number\n calendarId?: string\n}\n\nexport interface SeriesLargeOptionMixin {\n large?: boolean\n largeThreshold?: number\n}\nexport interface SeriesStackOptionMixin {\n stack?: string\n}\n\ntype SamplingFunc = (frame: ArrayLike) => number;\n\nexport interface SeriesSamplingOptionMixin {\n sampling?: 'none' | 'average' | 'min' | 'max' | 'sum' | 'lttb' | SamplingFunc\n}\n\nexport interface SeriesEncodeOptionMixin {\n datasetIndex?: number;\n datasetId?: string | number;\n seriesLayoutBy?: SeriesLayoutBy;\n sourceHeader?: OptionSourceHeader;\n dimensions?: DimensionDefinitionLoose[];\n encode?: OptionEncode\n}\n\nexport type SeriesEncodableModel = SeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {makeInner, getDataItemValue, queryReferringComponents, SINGLE_REFERRING} from '../../util/model';\nimport {\n createHashMap,\n each,\n isArray,\n isString,\n isObject,\n isTypedArray,\n HashMap\n} from 'zrender/src/core/util';\nimport { Source } from '../Source';\n\nimport {\n SOURCE_FORMAT_ORIGINAL,\n SOURCE_FORMAT_ARRAY_ROWS,\n SOURCE_FORMAT_OBJECT_ROWS,\n SERIES_LAYOUT_BY_ROW,\n SOURCE_FORMAT_KEYED_COLUMNS,\n DimensionName,\n OptionSourceDataArrayRows,\n OptionDataValue,\n OptionSourceDataKeyedColumns,\n OptionSourceDataOriginal,\n OptionSourceDataObjectRows,\n OptionEncode,\n DimensionIndex,\n SeriesEncodableModel\n} from '../../util/types';\nimport { DatasetModel } from '../../component/dataset/install';\nimport SeriesModel from '../../model/Series';\nimport GlobalModel from '../../model/Global';\nimport { CoordDimensionDefinition } from './createDimensions';\n\n// The result of `guessOrdinal`.\nexport const BE_ORDINAL = {\n Must: 1, // Encounter string but not '-' and not number-like.\n Might: 2, // Encounter string but number-like.\n Not: 3 // Other cases\n};\ntype BeOrdinalValue = (typeof BE_ORDINAL)[keyof typeof BE_ORDINAL];\n\nconst innerGlobalModel = makeInner<{\n datasetMap: HashMap\n}, GlobalModel>();\n\n\ninterface DatasetRecord {\n categoryWayDim: number;\n valueWayDim: number;\n}\n\ntype SeriesEncodeInternal = {\n [key in keyof OptionEncode]: DimensionIndex[];\n};\n\n/**\n * MUST be called before mergeOption of all series.\n */\nexport function resetSourceDefaulter(ecModel: GlobalModel): void {\n // `datasetMap` is used to make default encode.\n innerGlobalModel(ecModel).datasetMap = createHashMap();\n}\n\n/**\n * [The strategy of the arrengment of data dimensions for dataset]:\n * \"value way\": all axes are non-category axes. So series one by one take\n * several (the number is coordSysDims.length) dimensions from dataset.\n * The result of data arrengment of data dimensions like:\n * | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |\n * \"category way\": at least one axis is category axis. So the the first data\n * dimension is always mapped to the first category axis and shared by\n * all of the series. The other data dimensions are taken by series like\n * \"value way\" does.\n * The result of data arrengment of data dimensions like:\n * | ser_shared_x | ser0_y | ser1_y | ser2_y |\n *\n * @return encode Never be `null/undefined`.\n */\nexport function makeSeriesEncodeForAxisCoordSys(\n coordDimensions: (DimensionName | CoordDimensionDefinition)[],\n seriesModel: SeriesModel,\n source: Source\n): SeriesEncodeInternal {\n const encode: SeriesEncodeInternal = {};\n\n const datasetModel = querySeriesUpstreamDatasetModel(seriesModel);\n // Currently only make default when using dataset, util more reqirements occur.\n if (!datasetModel || !coordDimensions) {\n return encode;\n }\n\n const encodeItemName: DimensionIndex[] = [];\n const encodeSeriesName: DimensionIndex[] = [];\n\n const ecModel = seriesModel.ecModel;\n const datasetMap = innerGlobalModel(ecModel).datasetMap;\n const key = datasetModel.uid + '_' + source.seriesLayoutBy;\n\n let baseCategoryDimIndex: number;\n let categoryWayValueDimStart;\n coordDimensions = coordDimensions.slice();\n each(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n const coordDimInfo: CoordDimensionDefinition = isObject(coordDimInfoLoose)\n ? coordDimInfoLoose\n : (coordDimensions[coordDimIdx] = { name: coordDimInfoLoose as DimensionName });\n if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n baseCategoryDimIndex = coordDimIdx;\n categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n }\n encode[coordDimInfo.name] = [];\n });\n\n const datasetRecord = datasetMap.get(key)\n || datasetMap.set(key, {categoryWayDim: categoryWayValueDimStart, valueWayDim: 0});\n\n // TODO\n // Auto detect first time axis and do arrangement.\n each(coordDimensions, function (coordDimInfo: CoordDimensionDefinition, coordDimIdx) {\n const coordDimName = coordDimInfo.name;\n const count = getDataDimCountOnCoordDim(coordDimInfo);\n\n // In value way.\n if (baseCategoryDimIndex == null) {\n const start = datasetRecord.valueWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.valueWayDim += count;\n\n // ??? TODO give a better default series name rule?\n // especially when encode x y specified.\n // consider: when mutiple series share one dimension\n // category axis, series name should better use\n // the other dimsion name. On the other hand, use\n // both dimensions name.\n }\n // In category way, the first category axis.\n else if (baseCategoryDimIndex === coordDimIdx) {\n pushDim(encode[coordDimName], 0, count);\n pushDim(encodeItemName, 0, count);\n }\n // In category way, the other axis.\n else {\n const start = datasetRecord.categoryWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.categoryWayDim += count;\n }\n });\n\n function pushDim(dimIdxArr: DimensionIndex[], idxFrom: number, idxCount: number) {\n for (let i = 0; i < idxCount; i++) {\n dimIdxArr.push(idxFrom + i);\n }\n }\n\n function getDataDimCountOnCoordDim(coordDimInfo: CoordDimensionDefinition) {\n const dimsDef = coordDimInfo.dimsDef;\n return dimsDef ? dimsDef.length : 1;\n }\n\n encodeItemName.length && (encode.itemName = encodeItemName);\n encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n\n return encode;\n}\n\n/**\n * Work for data like [{name: ..., value: ...}, ...].\n *\n * @return encode Never be `null/undefined`.\n */\nexport function makeSeriesEncodeForNameBased(\n seriesModel: SeriesModel,\n source: Source,\n dimCount: number\n): SeriesEncodeInternal {\n const encode: SeriesEncodeInternal = {};\n\n const datasetModel = querySeriesUpstreamDatasetModel(seriesModel);\n // Currently only make default when using dataset, util more reqirements occur.\n if (!datasetModel) {\n return encode;\n }\n\n const sourceFormat = source.sourceFormat;\n const dimensionsDefine = source.dimensionsDefine;\n\n let potentialNameDimIndex;\n if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n each(dimensionsDefine, function (dim, idx) {\n if ((isObject(dim) ? dim.name : dim) === 'name') {\n potentialNameDimIndex = idx;\n }\n });\n }\n\n type IdxResult = { v: number, n: number };\n\n const idxResult = (function () {\n\n const idxRes0 = {} as IdxResult;\n const idxRes1 = {} as IdxResult;\n const guessRecords = [];\n\n // 5 is an experience value.\n for (let i = 0, len = Math.min(5, dimCount); i < len; i++) {\n const guessResult = doGuessOrdinal(\n source.data, sourceFormat, source.seriesLayoutBy,\n dimensionsDefine, source.startIndex, i\n );\n guessRecords.push(guessResult);\n const isPureNumber = guessResult === BE_ORDINAL.Not;\n\n // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,\n // and then find a name dim with the priority:\n // \"BE_ORDINAL.Might|BE_ORDINAL.Must\" > \"other dim\" > \"the value dim itself\".\n if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {\n idxRes0.v = i;\n }\n if (idxRes0.n == null\n || (idxRes0.n === idxRes0.v)\n || (!isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not)\n ) {\n idxRes0.n = i;\n }\n if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {\n return idxRes0;\n }\n\n // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),\n // find the first BE_ORDINAL.Might as the value dim,\n // and then find a name dim with the priority:\n // \"other dim\" > \"the value dim itself\".\n // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be\n // treated as number.\n if (!isPureNumber) {\n if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {\n idxRes1.v = i;\n }\n if (idxRes1.n == null || (idxRes1.n === idxRes1.v)) {\n idxRes1.n = i;\n }\n }\n }\n\n function fulfilled(idxResult: IdxResult) {\n return idxResult.v != null && idxResult.n != null;\n }\n\n return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;\n })();\n\n if (idxResult) {\n encode.value = [idxResult.v];\n // `potentialNameDimIndex` has highest priority.\n const nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n;\n // By default, label use itemName in charts.\n // So we dont set encodeLabel here.\n encode.itemName = [nameDimIndex];\n encode.seriesName = [nameDimIndex];\n }\n\n return encode;\n}\n\n/**\n * @return If return null/undefined, indicate that should not use datasetModel.\n */\nexport function querySeriesUpstreamDatasetModel(\n seriesModel: SeriesEncodableModel\n): DatasetModel {\n // Caution: consider the scenario:\n // A dataset is declared and a series is not expected to use the dataset,\n // and at the beginning `setOption({series: { noData })` (just prepare other\n // option but no data), then `setOption({series: {data: [...]}); In this case,\n // the user should set an empty array to avoid that dataset is used by default.\n const thisData = seriesModel.get('data', true);\n if (!thisData) {\n return queryReferringComponents(\n seriesModel.ecModel,\n 'dataset',\n {\n index: seriesModel.get('datasetIndex', true),\n id: seriesModel.get('datasetId', true)\n },\n SINGLE_REFERRING\n ).models[0] as DatasetModel;\n }\n}\n\n/**\n * @return Always return an array event empty.\n */\nexport function queryDatasetUpstreamDatasetModels(\n datasetModel: DatasetModel\n): DatasetModel[] {\n // Only these attributes declared, we by defualt reference to `datasetIndex: 0`.\n // Otherwise, no reference.\n if (!datasetModel.get('transform', true)\n && !datasetModel.get('fromTransformResult', true)\n ) {\n return [];\n }\n\n return queryReferringComponents(\n datasetModel.ecModel,\n 'dataset',\n {\n index: datasetModel.get('fromDatasetIndex', true),\n id: datasetModel.get('fromDatasetId', true)\n },\n SINGLE_REFERRING\n ).models as DatasetModel[];\n}\n\n/**\n * The rule should not be complex, otherwise user might not\n * be able to known where the data is wrong.\n * The code is ugly, but how to make it neat?\n */\nexport function guessOrdinal(source: Source, dimIndex: DimensionIndex): BeOrdinalValue {\n return doGuessOrdinal(\n source.data,\n source.sourceFormat,\n source.seriesLayoutBy,\n source.dimensionsDefine,\n source.startIndex,\n dimIndex\n );\n}\n\n// dimIndex may be overflow source data.\n// return {BE_ORDINAL}\nfunction doGuessOrdinal(\n data: Source['data'],\n sourceFormat: Source['sourceFormat'],\n seriesLayoutBy: Source['seriesLayoutBy'],\n dimensionsDefine: Source['dimensionsDefine'],\n startIndex: Source['startIndex'],\n dimIndex: DimensionIndex\n): BeOrdinalValue {\n let result;\n // Experience value.\n const maxLoop = 5;\n\n if (isTypedArray(data)) {\n return BE_ORDINAL.Not;\n }\n\n // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine\n // always exists in source.\n let dimName;\n let dimType;\n if (dimensionsDefine) {\n const dimDefItem = dimensionsDefine[dimIndex];\n if (isObject(dimDefItem)) {\n dimName = dimDefItem.name;\n dimType = dimDefItem.type;\n }\n else if (isString(dimDefItem)) {\n dimName = dimDefItem;\n }\n }\n\n if (dimType != null) {\n return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not;\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const dataArrayRows = data as OptionSourceDataArrayRows;\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n const sample = dataArrayRows[dimIndex];\n for (let i = 0; i < (sample || []).length && i < maxLoop; i++) {\n if ((result = detectValue(sample[startIndex + i])) != null) {\n return result;\n }\n }\n }\n else {\n for (let i = 0; i < dataArrayRows.length && i < maxLoop; i++) {\n const row = dataArrayRows[startIndex + i];\n if (row && (result = detectValue(row[dimIndex])) != null) {\n return result;\n }\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n const dataObjectRows = data as OptionSourceDataObjectRows;\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n for (let i = 0; i < dataObjectRows.length && i < maxLoop; i++) {\n const item = dataObjectRows[i];\n if (item && (result = detectValue(item[dimName])) != null) {\n return result;\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n const dataKeyedColumns = data as OptionSourceDataKeyedColumns;\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n const sample = dataKeyedColumns[dimName];\n if (!sample || isTypedArray(sample)) {\n return BE_ORDINAL.Not;\n }\n for (let i = 0; i < sample.length && i < maxLoop; i++) {\n if ((result = detectValue(sample[i])) != null) {\n return result;\n }\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const dataOriginal = data as OptionSourceDataOriginal;\n for (let i = 0; i < dataOriginal.length && i < maxLoop; i++) {\n const item = dataOriginal[i];\n const val = getDataItemValue(item);\n if (!isArray(val)) {\n return BE_ORDINAL.Not;\n }\n if ((result = detectValue(val[dimIndex])) != null) {\n return result;\n }\n }\n }\n\n function detectValue(val: OptionDataValue): BeOrdinalValue {\n const beStr = isString(val);\n // Consider usage convenience, '1', '2' will be treated as \"number\".\n // `isFinit('')` get `true`.\n if (val != null && isFinite(val as number) && val !== '') {\n return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;\n }\n else if (beStr && val !== '-') {\n return BE_ORDINAL.Must;\n }\n }\n\n return BE_ORDINAL.Not;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from './Global';\nimport { ComponentOption, ComponentMainType } from '../util/types';\nimport { createHashMap, assert } from 'zrender/src/core/util';\nimport { isComponentIdInternal } from '../util/model';\n\n// PNEDING:\n// (1) Only Internal usage at present, do not export to uses.\n// (2) \"Internal components\" are generated internally during the `Global.ts#_mergeOption`.\n// It is added since echarts 3.\n// (3) Why keep supporting \"internal component\" in global model rather than\n// make each type components manage their models themselves?\n// Because a protential feature that reproduce a chart from a diffferent chart instance\n// might be useful in some BI analysis scenario, where the entire state need to be\n// retrieved from the current chart instance. So we'd bettern manage the all of the\n// state universally.\n// (4) Internal component always merged in \"replaceMerge\" approach, that is, if the existing\n// internal components does not matched by a new option with the same id, it will be\n// removed.\n// (5) In `InternalOptionCreator`, only the previous component models (dependencies) can be read.\n\ninterface InternalOptionCreator {\n (ecModel: GlobalModel): ComponentOption[]\n}\n\nconst internalOptionCreatorMap = createHashMap();\n\n\nexport function registerInternalOptionCreator(\n mainType: ComponentMainType, creator: InternalOptionCreator\n) {\n assert(internalOptionCreatorMap.get(mainType) == null && creator);\n internalOptionCreatorMap.set(mainType, creator);\n}\n\n\nexport function concatInternalOptions(\n ecModel: GlobalModel,\n mainType: ComponentMainType,\n newCmptOptionList: ComponentOption[]\n): ComponentOption[] {\n const internalOptionCreator = internalOptionCreatorMap.get(mainType);\n if (!internalOptionCreator) {\n return newCmptOptionList;\n }\n const internalOptions = internalOptionCreator(ecModel);\n if (!internalOptions) {\n return newCmptOptionList;\n }\n if (__DEV__) {\n for (let i = 0; i < internalOptions.length; i++) {\n assert(isComponentIdInternal(internalOptions[i]));\n }\n }\n return newCmptOptionList.concat(internalOptions);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {Dictionary} from 'zrender/src/core/types';\nimport {makeInner, normalizeToArray} from '../../util/model';\nimport Model from '../Model';\nimport {ZRColor, PaletteOptionMixin, DecalObject, AriaOptionMixin} from '../../util/types';\nimport GlobalModel from '../Global';\n\ntype Inner = (hostObj: PaletteMixin) => {\n paletteIdx: number;\n paletteNameMap: Dictionary;\n};\n\nconst innerColor: Inner = makeInner<{\n paletteIdx: number\n paletteNameMap: Dictionary\n}, PaletteMixin>();\n\nconst innerDecal: Inner = makeInner<{\n paletteIdx: number\n paletteNameMap: Dictionary\n}, PaletteMixin>();\n\n\n\ninterface PaletteMixin\n extends Pick, 'get'> {}\n\nclass PaletteMixin {\n getColorFromPalette(\n this: PaletteMixin,\n name: string,\n scope?: any,\n requestNum?: number\n ): ZRColor {\n const defaultPalette = normalizeToArray(this.get('color', true));\n const layeredPalette = this.get('colorLayer', true);\n return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum);\n }\n\n clearColorPalette(this: PaletteMixin) {\n clearPalette(this, innerColor);\n }\n}\n\nexport function getDecalFromPalette(\n ecModel: GlobalModel,\n name: string,\n scope?: any,\n requestNum?: number\n): DecalObject {\n const defaultDecals = normalizeToArray((ecModel as Model).get(['aria', 'decal', 'decals']));\n return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum);\n}\n\n\nfunction getNearestPalette(\n palettes: T[][], requestColorNum: number\n): T[] {\n const paletteNum = palettes.length;\n // TODO palettes must be in order\n for (let i = 0; i < paletteNum; i++) {\n if (palettes[i].length > requestColorNum) {\n return palettes[i];\n }\n }\n return palettes[paletteNum - 1];\n}\n\n/**\n * @param name MUST NOT be null/undefined. Otherwise call this function\n * twise with the same parameters will get different result.\n * @param scope default this.\n * @return Can be null/undefined\n */\nfunction getFromPalette(\n that: PaletteMixin,\n inner: Inner,\n defaultPalette: T[],\n layeredPalette: T[][],\n name: string,\n scope?: any,\n requestNum?: number\n): T {\n scope = scope || that;\n const scopeFields = inner(scope);\n const paletteIdx = scopeFields.paletteIdx || 0;\n const paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {};\n // Use `hasOwnProperty` to avoid conflict with Object.prototype.\n if (paletteNameMap.hasOwnProperty(name)) {\n return paletteNameMap[name];\n }\n let palette = ((requestNum == null || !layeredPalette)\n ? defaultPalette : getNearestPalette(layeredPalette, requestNum));\n\n // In case can't find in layered color palette.\n palette = palette || defaultPalette;\n\n if (!palette || !palette.length) {\n return;\n }\n\n const pickedPaletteItem = palette[paletteIdx];\n if (name) {\n paletteNameMap[name] = pickedPaletteItem;\n }\n scopeFields.paletteIdx = (paletteIdx + 1) % palette.length;\n\n return pickedPaletteItem;\n}\n\nfunction clearPalette(that: PaletteMixin, inner: Inner) {\n inner(that).paletteIdx = 0;\n inner(that).paletteNameMap = {};\n}\n\nexport {PaletteMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Caution: If the mechanism should be changed some day, these cases\n * should be considered:\n *\n * (1) In `merge option` mode, if using the same option to call `setOption`\n * many times, the result should be the same (try our best to ensure that).\n * (2) In `merge option` mode, if a component has no id/name specified, it\n * will be merged by index, and the result sequence of the components is\n * consistent to the original sequence.\n * (3) In `replaceMerge` mode, keep the result sequence of the components is\n * consistent to the original sequence, even though there might result in \"hole\".\n * (4) `reset` feature (in toolbox). Find detailed info in comments about\n * `mergeOption` in module:echarts/model/OptionManager.\n */\n\nimport {\n each, filter, isArray, isObject, isString,\n createHashMap, assert, clone, merge, extend, mixin, HashMap, isFunction\n} from 'zrender/src/core/util';\nimport * as modelUtil from '../util/model';\nimport Model from './Model';\nimport ComponentModel, {ComponentModelConstructor} from './Component';\nimport globalDefault from './globalDefault';\nimport {resetSourceDefaulter} from '../data/helper/sourceHelper';\nimport SeriesModel from './Series';\nimport {\n Payload,\n OptionPreprocessor,\n ECBasicOption,\n ECUnitOption,\n ThemeOption,\n ComponentOption,\n ComponentMainType,\n ComponentSubType,\n OptionId,\n OptionName,\n AriaOptionMixin\n} from '../util/types';\nimport OptionManager from './OptionManager';\nimport Scheduler from '../core/Scheduler';\nimport { concatInternalOptions } from './internalComponentCreator';\nimport { LocaleOption } from '../core/locale';\nimport {PaletteMixin} from './mixin/palette';\nimport { error } from '../util/log';\n\nexport interface GlobalModelSetOptionOpts {\n replaceMerge: ComponentMainType | ComponentMainType[];\n}\nexport interface InnerSetOptionOpts {\n replaceMergeMainTypeMap: HashMap;\n}\n\n// -----------------------\n// Internal method names:\n// -----------------------\nlet reCreateSeriesIndices: (ecModel: GlobalModel) => void;\nlet assertSeriesInitialized: (ecModel: GlobalModel) => void;\nlet initBase: (ecModel: GlobalModel, baseOption: ECUnitOption) => void;\n\nconst OPTION_INNER_KEY = '\\0_ec_inner';\nconst OPTION_INNER_VALUE = 1;\n\nconst BUITIN_COMPONENTS_MAP = {\n grid: 'GridComponent',\n polar: 'PolarComponent',\n geo: 'GeoComponent',\n singleAxis: 'SingleAxisComponent',\n parallel: 'ParallelComponent',\n calendar: 'CalendarComponent',\n graphic: 'GraphicComponent',\n toolbox: 'ToolboxComponent',\n tooltip: 'TooltipComponent',\n axisPointer: 'AxisPointerComponent',\n brush: 'BrushComponent',\n title: 'TitleComponent',\n timeline: 'TimelineComponent',\n markPoint: 'MarkPointComponent',\n markLine: 'MarkLineComponent',\n markArea: 'MarkAreaComponent',\n legend: 'LegendComponent',\n dataZoom: 'DataZoomComponent',\n visualMap: 'VisualMapComponent',\n // aria: 'AriaComponent',\n // dataset: 'DatasetComponent',\n\n // Dependencies\n xAxis: 'GridComponent',\n yAxis: 'GridComponent',\n angleAxis: 'PolarComponent',\n radiusAxis: 'PolarComponent'\n} as const;\n\nconst BUILTIN_CHARTS_MAP = {\n line: 'LineChart',\n bar: 'BarChart',\n pie: 'PieChart',\n scatter: 'ScatterChart',\n radar: 'RadarChart',\n map: 'MapChart',\n tree: 'TreeChart',\n treemap: 'TreemapChart',\n graph: 'GraphChart',\n gauge: 'GaugeChart',\n funnel: 'FunnelChart',\n parallel: 'ParallelChart',\n sankey: 'SankeyChart',\n boxplot: 'BoxplotChart',\n candlestick: 'CandlestickChart',\n effectScatter: 'EffectScatterChart',\n lines: 'LinesChart',\n heatmap: 'HeatmapChart',\n pictorialBar: 'PictorialBarChart',\n themeRiver: 'ThemeRiverChart',\n sunburst: 'SunburstChart',\n custom: 'CustomChart'\n} as const;\n\nconst componetsMissingLogPrinted: Record = {};\n\nfunction checkMissingComponents(option: ECUnitOption) {\n each(option, function (componentOption, mainType: ComponentMainType) {\n if (!ComponentModel.hasClass(mainType)) {\n const componentImportName = BUITIN_COMPONENTS_MAP[mainType as keyof typeof BUITIN_COMPONENTS_MAP];\n if (componentImportName && !componetsMissingLogPrinted[componentImportName]) {\n error(`Component ${mainType} is used but not imported.\nimport { ${componentImportName} } from 'echarts/components';\necharts.use([${componentImportName}]);`);\n componetsMissingLogPrinted[componentImportName] = true;\n }\n }\n });\n}\n\nclass GlobalModel extends Model {\n // @readonly\n option: ECUnitOption;\n\n private _theme: Model;\n\n private _locale: Model;\n\n private _optionManager: OptionManager;\n\n private _componentsMap: HashMap;\n\n /**\n * `_componentsMap` might have \"hole\" becuase of remove.\n * So save components count for a certain mainType here.\n */\n private _componentsCount: HashMap;\n\n /**\n * Mapping between filtered series list and raw series list.\n * key: filtered series indices, value: raw series indices.\n * Items of `_seriesIndices` never be null/empty/-1.\n * If series has been removed by `replaceMerge`, those series\n * also won't be in `_seriesIndices`, just like be filtered.\n */\n private _seriesIndices: number[];\n\n /**\n * Key: seriesIndex.\n * Keep consistent with `_seriesIndices`.\n */\n private _seriesIndicesMap: HashMap;\n\n /**\n * Model for store update payload\n */\n private _payload: Payload;\n\n // Injectable properties:\n scheduler: Scheduler;\n\n\n init(\n option: ECBasicOption,\n parentModel: Model,\n ecModel: GlobalModel,\n theme: object,\n locale: object,\n optionManager: OptionManager\n ): void {\n theme = theme || {};\n this.option = null; // Mark as not initialized.\n this._theme = new Model(theme);\n this._locale = new Model(locale);\n this._optionManager = optionManager;\n }\n\n setOption(\n option: ECBasicOption,\n opts: GlobalModelSetOptionOpts,\n optionPreprocessorFuncs: OptionPreprocessor[]\n ): void {\n\n if (__DEV__) {\n assert(option != null, 'option is null/undefined');\n assert(\n option[OPTION_INNER_KEY] !== OPTION_INNER_VALUE,\n 'please use chart.getOption()'\n );\n }\n\n const innerOpt = normalizeSetOptionInput(opts);\n\n this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt);\n\n this._resetOption(null, innerOpt);\n }\n\n /**\n * @param type null/undefined: reset all.\n * 'recreate': force recreate all.\n * 'timeline': only reset timeline option\n * 'media': only reset media query option\n * @return Whether option changed.\n */\n resetOption(\n type: 'recreate' | 'timeline' | 'media',\n opt?: Pick\n ): boolean {\n return this._resetOption(type, normalizeSetOptionInput(opt));\n }\n\n private _resetOption(\n type: 'recreate' | 'timeline' | 'media',\n opt: InnerSetOptionOpts\n ): boolean {\n let optionChanged = false;\n const optionManager = this._optionManager;\n\n if (!type || type === 'recreate') {\n const baseOption = optionManager.mountOption(type === 'recreate');\n if (__DEV__) {\n checkMissingComponents(baseOption);\n }\n\n if (!this.option || type === 'recreate') {\n initBase(this, baseOption);\n }\n else {\n this.restoreData();\n this._mergeOption(baseOption, opt);\n }\n optionChanged = true;\n }\n\n if (type === 'timeline' || type === 'media') {\n this.restoreData();\n }\n\n // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,\n // it should better not have the same props with `MediaUnit['option']`.\n // Becuase either `option2` or `MediaUnit['option']` will be always merged to \"current option\"\n // rather than original \"baseOption\". If they both override a prop, the result might be\n // unexpected when media state changed after `setOption` called.\n // If we really need to modify a props in each `MediaUnit['option']`, use the full version\n // (`{baseOption, media}`) in `setOption`.\n // For `timeline`, the case is the same.\n\n if (!type || type === 'recreate' || type === 'timeline') {\n const timelineOption = optionManager.getTimelineOption(this);\n if (timelineOption) {\n optionChanged = true;\n this._mergeOption(timelineOption, opt);\n }\n }\n\n if (!type || type === 'recreate' || type === 'media') {\n const mediaOptions = optionManager.getMediaOption(this);\n if (mediaOptions.length) {\n each(mediaOptions, function (mediaOption) {\n optionChanged = true;\n this._mergeOption(mediaOption, opt);\n }, this);\n }\n }\n\n return optionChanged;\n }\n\n public mergeOption(option: ECUnitOption): void {\n this._mergeOption(option, null);\n }\n\n private _mergeOption(\n newOption: ECUnitOption,\n opt: InnerSetOptionOpts\n ): void {\n const option = this.option;\n const componentsMap = this._componentsMap;\n const componentsCount = this._componentsCount;\n const newCmptTypes: ComponentMainType[] = [];\n const newCmptTypeMap = createHashMap();\n const replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap;\n\n resetSourceDefaulter(this);\n\n // If no component class, merge directly.\n // For example: color, animaiton options, etc.\n each(newOption, function (componentOption, mainType: ComponentMainType) {\n if (componentOption == null) {\n return;\n }\n\n if (!ComponentModel.hasClass(mainType)) {\n // globalSettingTask.dirty();\n option[mainType] = option[mainType] == null\n ? clone(componentOption)\n : merge(option[mainType], componentOption, true);\n }\n else if (mainType) {\n newCmptTypes.push(mainType);\n newCmptTypeMap.set(mainType, true);\n }\n });\n\n if (replaceMergeMainTypeMap) {\n // If there is a mainType `xxx` in `replaceMerge` but not declared in option,\n // we trade it as it is declared in option as `{xxx: []}`. Because:\n // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.\n // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.\n replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) {\n if (ComponentModel.hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) {\n newCmptTypes.push(mainTypeInReplaceMerge);\n newCmptTypeMap.set(mainTypeInReplaceMerge, true);\n }\n });\n }\n\n (ComponentModel as ComponentModelConstructor).topologicalTravel(\n newCmptTypes,\n (ComponentModel as ComponentModelConstructor).getAllClassMainTypes(),\n visitComponent,\n this\n );\n\n function visitComponent(\n this: GlobalModel,\n mainType: ComponentMainType\n ): void {\n const newCmptOptionList = concatInternalOptions(\n this, mainType, modelUtil.normalizeToArray(newOption[mainType])\n );\n\n const oldCmptList = componentsMap.get(mainType);\n const mergeMode =\n // `!oldCmptList` means init. See the comment in `mappingToExists`\n !oldCmptList ? 'replaceAll'\n : (replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge'\n : 'normalMerge';\n const mappingResult = modelUtil.mappingToExists(oldCmptList, newCmptOptionList, mergeMode);\n\n // Set mainType and complete subType.\n modelUtil.setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n\n // Empty it before the travel, in order to prevent `this._componentsMap`\n // from being used in the `init`/`mergeOption`/`optionUpdated` of some\n // components, which is probably incorrect logic.\n option[mainType] = null;\n componentsMap.set(mainType, null);\n componentsCount.set(mainType, 0);\n\n const optionsByMainType = [] as ComponentOption[];\n const cmptsByMainType = [] as ComponentModel[];\n let cmptsCountByMainType = 0;\n\n each(mappingResult, function (resultItem, index) {\n let componentModel = resultItem.existing;\n const newCmptOption = resultItem.newOption;\n\n if (!newCmptOption) {\n if (componentModel) {\n // Consider where is no new option and should be merged using {},\n // see removeEdgeAndAdd in topologicalTravel and\n // ComponentModel.getAllClassMainTypes.\n componentModel.mergeOption({}, this);\n componentModel.optionUpdated({}, false);\n }\n // If no both `resultItem.exist` and `resultItem.option`,\n // either it is in `replaceMerge` and not matched by any id,\n // or it has been removed in previous `replaceMerge` and left a \"hole\" in this component index.\n }\n else {\n const isSeriesType = mainType === 'series';\n const ComponentModelClass = (ComponentModel as ComponentModelConstructor).getClass(\n mainType, resultItem.keyInfo.subType,\n !isSeriesType // Give a more detailed warn later if series don't exists\n );\n\n if (!ComponentModelClass) {\n if (__DEV__) {\n const subType = resultItem.keyInfo.subType;\n const seriesImportName = BUILTIN_CHARTS_MAP[subType as keyof typeof BUILTIN_CHARTS_MAP];\n if (!componetsMissingLogPrinted[subType]) {\n componetsMissingLogPrinted[subType] = true;\n if (seriesImportName) {\n error(`Series ${subType} is used but not imported.\nimport { ${seriesImportName} } from 'echarts/charts';\necharts.use([${seriesImportName}]);`);\n }\n else {\n error(`Unkown series ${subType}`);\n }\n }\n }\n return;\n }\n\n if (componentModel && componentModel.constructor === ComponentModelClass) {\n componentModel.name = resultItem.keyInfo.name;\n // componentModel.settingTask && componentModel.settingTask.dirty();\n componentModel.mergeOption(newCmptOption, this);\n componentModel.optionUpdated(newCmptOption, false);\n }\n else {\n // PENDING Global as parent ?\n const extraOpt = extend(\n {\n componentIndex: index\n },\n resultItem.keyInfo\n );\n componentModel = new ComponentModelClass(\n newCmptOption, this, this, extraOpt\n );\n // Assign `keyInfo`\n extend(componentModel, extraOpt);\n if (resultItem.brandNew) {\n componentModel.__requireNewView = true;\n }\n componentModel.init(newCmptOption, this, this);\n\n // Call optionUpdated after init.\n // newCmptOption has been used as componentModel.option\n // and may be merged with theme and default, so pass null\n // to avoid confusion.\n componentModel.optionUpdated(null, true);\n }\n }\n\n if (componentModel) {\n optionsByMainType.push(componentModel.option);\n cmptsByMainType.push(componentModel);\n cmptsCountByMainType++;\n }\n else {\n // Always do assign to avoid elided item in array.\n optionsByMainType.push(void 0);\n cmptsByMainType.push(void 0);\n }\n }, this);\n\n option[mainType] = optionsByMainType;\n componentsMap.set(mainType, cmptsByMainType);\n componentsCount.set(mainType, cmptsCountByMainType);\n\n // Backup series for filtering.\n if (mainType === 'series') {\n reCreateSeriesIndices(this);\n }\n }\n\n // If no series declared, ensure `_seriesIndices` initialized.\n if (!this._seriesIndices) {\n reCreateSeriesIndices(this);\n }\n }\n\n /**\n * Get option for output (cloned option and inner info removed)\n */\n getOption(): ECUnitOption {\n const option = clone(this.option);\n\n each(option, function (optInMainType, mainType) {\n if (ComponentModel.hasClass(mainType)) {\n const opts = modelUtil.normalizeToArray(optInMainType);\n // Inner cmpts need to be removed.\n // Inner cmpts might not be at last since ec5.0, but still\n // compatible for users: if inner cmpt at last, splice the returned array.\n let realLen = opts.length;\n let metNonInner = false;\n for (let i = realLen - 1; i >= 0; i--) {\n // Remove options with inner id.\n if (opts[i] && !modelUtil.isComponentIdInternal(opts[i])) {\n metNonInner = true;\n }\n else {\n opts[i] = null;\n !metNonInner && realLen--;\n }\n }\n opts.length = realLen;\n option[mainType] = opts;\n }\n });\n\n delete option[OPTION_INNER_KEY];\n\n return option;\n }\n\n getTheme(): Model {\n return this._theme;\n }\n\n getLocaleModel(): Model {\n return this._locale;\n }\n\n setUpdatePayload(payload: Payload) {\n this._payload = payload;\n }\n\n getUpdatePayload(): Payload {\n return this._payload;\n }\n\n /**\n * @param idx If not specified, return the first one.\n */\n getComponent(mainType: ComponentMainType, idx?: number): ComponentModel {\n const list = this._componentsMap.get(mainType);\n if (list) {\n const cmpt = list[idx || 0];\n if (cmpt) {\n return cmpt;\n }\n else if (idx == null) {\n for (let i = 0; i < list.length; i++) {\n if (list[i]) {\n return list[i];\n }\n }\n }\n }\n }\n\n /**\n * @return Never be null/undefined.\n */\n queryComponents(condition: QueryConditionKindB): ComponentModel[] {\n const mainType = condition.mainType;\n if (!mainType) {\n return [];\n }\n\n const index = condition.index;\n const id = condition.id;\n const name = condition.name;\n const cmpts = this._componentsMap.get(mainType);\n\n if (!cmpts || !cmpts.length) {\n return [];\n }\n\n let result: ComponentModel[];\n\n if (index != null) {\n result = [];\n each(modelUtil.normalizeToArray(index), function (idx) {\n cmpts[idx] && result.push(cmpts[idx]);\n });\n }\n else if (id != null) {\n result = queryByIdOrName('id', id, cmpts);\n }\n else if (name != null) {\n result = queryByIdOrName('name', name, cmpts);\n }\n else {\n // Return all non-empty components in that mainType\n result = filter(cmpts, cmpt => !!cmpt);\n }\n\n return filterBySubType(result, condition);\n }\n\n /**\n * The interface is different from queryComponents,\n * which is convenient for inner usage.\n *\n * @usage\n * let result = findComponents(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}\n * );\n * let result = findComponents(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}\n * );\n * let result = findComponents(\n * {mainType: 'series',\n * filter: function (model, index) {...}}\n * );\n * // result like [component0, componnet1, ...]\n */\n findComponents(condition: QueryConditionKindA): ComponentModel[] {\n const query = condition.query;\n const mainType = condition.mainType;\n\n const queryCond = getQueryCond(query);\n const result = queryCond\n ? this.queryComponents(queryCond)\n // Retrieve all non-empty components.\n : filter(this._componentsMap.get(mainType), cmpt => !!cmpt);\n\n return doFilter(filterBySubType(result, condition));\n\n function getQueryCond(q: QueryConditionKindA['query']): QueryConditionKindB {\n const indexAttr = mainType + 'Index';\n const idAttr = mainType + 'Id';\n const nameAttr = mainType + 'Name';\n return q && (\n q[indexAttr] != null\n || q[idAttr] != null\n || q[nameAttr] != null\n )\n ? {\n mainType: mainType,\n // subType will be filtered finally.\n index: q[indexAttr] as (number | number[]),\n id: q[idAttr] as (OptionId | OptionId[]),\n name: q[nameAttr] as (OptionName | OptionName[])\n }\n : null;\n }\n\n function doFilter(res: ComponentModel[]) {\n return condition.filter\n ? filter(res, condition.filter)\n : res;\n }\n }\n\n /**\n * Travel components (before filtered).\n *\n * @usage\n * eachComponent('legend', function (legendModel, index) {\n * ...\n * });\n * eachComponent(function (componentType, model, index) {\n * // componentType does not include subType\n * // (componentType is 'xxx' but not 'xxx.aa')\n * });\n * eachComponent(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}},\n * function (model, index) {...}\n * );\n * eachComponent(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}},\n * function (model, index) {...}\n * );\n */\n eachComponent(\n cb: EachComponentAllCallback,\n context?: T\n ): void\n eachComponent(\n mainType: string,\n cb: EachComponentInMainTypeCallback,\n context?: T\n ): void\n eachComponent(\n mainType: QueryConditionKindA,\n cb: EachComponentInMainTypeCallback,\n context?: T\n ): void\n eachComponent(\n mainType: string | QueryConditionKindA | EachComponentAllCallback,\n cb?: EachComponentInMainTypeCallback | T,\n context?: T\n ) {\n const componentsMap = this._componentsMap;\n\n if (isFunction(mainType)) {\n const ctxForAll = cb as T;\n const cbForAll = mainType as EachComponentAllCallback;\n componentsMap.each(function (cmpts, componentType) {\n for (let i = 0; cmpts && i < cmpts.length; i++) {\n const cmpt = cmpts[i];\n cmpt && cbForAll.call(ctxForAll, componentType, cmpt, cmpt.componentIndex);\n }\n });\n }\n else {\n const cmpts = isString(mainType)\n ? componentsMap.get(mainType)\n : isObject(mainType)\n ? this.findComponents(mainType)\n : null;\n for (let i = 0; cmpts && i < cmpts.length; i++) {\n const cmpt = cmpts[i];\n cmpt && (cb as EachComponentInMainTypeCallback).call(\n context, cmpt, cmpt.componentIndex\n );\n }\n }\n }\n\n /**\n * Get series list before filtered by name.\n */\n getSeriesByName(name: OptionName): SeriesModel[] {\n const nameStr = modelUtil.convertOptionIdName(name, null);\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries && nameStr != null && oneSeries.name === nameStr\n );\n }\n\n /**\n * Get series list before filtered by index.\n */\n getSeriesByIndex(seriesIndex: number): SeriesModel {\n return this._componentsMap.get('series')[seriesIndex] as SeriesModel;\n }\n\n /**\n * Get series list before filtered by type.\n * FIXME: rename to getRawSeriesByType?\n */\n getSeriesByType(subType: ComponentSubType): SeriesModel[] {\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries && oneSeries.subType === subType\n );\n }\n\n /**\n * Get all series before filtered.\n */\n getSeries(): SeriesModel[] {\n return filter(\n this._componentsMap.get('series') as SeriesModel[],\n oneSeries => !!oneSeries\n );\n }\n\n /**\n * Count series before filtered.\n */\n getSeriesCount(): number {\n return this._componentsCount.get('series');\n }\n\n /**\n * After filtering, series may be different\n * frome raw series.\n */\n eachSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n const series = this._componentsMap.get('series')[rawSeriesIndex] as SeriesModel;\n cb.call(context, series, rawSeriesIndex);\n }, this);\n }\n\n /**\n * Iterate raw series before filtered.\n *\n * @param {Function} cb\n * @param {*} context\n */\n eachRawSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n each(this._componentsMap.get('series'), function (series) {\n series && cb.call(context, series, series.componentIndex);\n });\n }\n\n /**\n * After filtering, series may be different.\n * frome raw series.\n */\n eachSeriesByType(\n subType: ComponentSubType,\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n const series = this._componentsMap.get('series')[rawSeriesIndex] as SeriesModel;\n if (series.subType === subType) {\n cb.call(context, series, rawSeriesIndex);\n }\n }, this);\n }\n\n /**\n * Iterate raw series before filtered of given type.\n */\n eachRawSeriesByType(\n subType: ComponentSubType,\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => void,\n context?: T\n ): void {\n return each(this.getSeriesByType(subType), cb, context);\n }\n\n isSeriesFiltered(seriesModel: SeriesModel): boolean {\n assertSeriesInitialized(this);\n return this._seriesIndicesMap.get(seriesModel.componentIndex) == null;\n }\n\n getCurrentSeriesIndices(): number[] {\n return (this._seriesIndices || []).slice();\n }\n\n filterSeries(\n cb: (this: T, series: SeriesModel, rawSeriesIndex: number) => boolean,\n context?: T\n ): void {\n assertSeriesInitialized(this);\n\n const newSeriesIndices: number[] = [];\n each(this._seriesIndices, function (seriesRawIdx) {\n const series = this._componentsMap.get('series')[seriesRawIdx] as SeriesModel;\n cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);\n }, this);\n\n this._seriesIndices = newSeriesIndices;\n this._seriesIndicesMap = createHashMap(newSeriesIndices);\n }\n\n restoreData(payload?: Payload): void {\n\n reCreateSeriesIndices(this);\n\n const componentsMap = this._componentsMap;\n const componentTypes: string[] = [];\n componentsMap.each(function (components, componentType) {\n if (ComponentModel.hasClass(componentType)) {\n componentTypes.push(componentType);\n }\n });\n\n (ComponentModel as ComponentModelConstructor).topologicalTravel(\n componentTypes,\n (ComponentModel as ComponentModelConstructor).getAllClassMainTypes(),\n function (componentType) {\n each(componentsMap.get(componentType), function (component) {\n if (component\n && (\n componentType !== 'series'\n || !isNotTargetSeries(component as SeriesModel, payload)\n )\n ) {\n component.restoreData();\n }\n });\n }\n );\n }\n\n private static internalField = (function () {\n\n reCreateSeriesIndices = function (ecModel: GlobalModel): void {\n const seriesIndices: number[] = ecModel._seriesIndices = [];\n each(ecModel._componentsMap.get('series'), function (series) {\n // series may have been removed by `replaceMerge`.\n series && seriesIndices.push(series.componentIndex);\n });\n ecModel._seriesIndicesMap = createHashMap(seriesIndices);\n };\n\n assertSeriesInitialized = function (ecModel: GlobalModel): void {\n // Components that use _seriesIndices should depends on series component,\n // which make sure that their initialization is after series.\n if (__DEV__) {\n if (!ecModel._seriesIndices) {\n throw new Error('Option should contains series.');\n }\n }\n };\n\n initBase = function (ecModel: GlobalModel, baseOption: ECUnitOption & AriaOptionMixin): void {\n // Using OPTION_INNER_KEY to mark that this option can not be used outside,\n // i.e. `chart.setOption(chart.getModel().option);` is forbiden.\n ecModel.option = {} as ECUnitOption;\n ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE;\n\n // Init with series: [], in case of calling findSeries method\n // before series initialized.\n ecModel._componentsMap = createHashMap({series: []});\n ecModel._componentsCount = createHashMap();\n\n // If user spefied `option.aria`, aria will be enable. This detection should be\n // performed before theme and globalDefault merge.\n const airaOption = baseOption.aria;\n if (isObject(airaOption) && airaOption.enabled == null) {\n airaOption.enabled = true;\n }\n\n mergeTheme(baseOption, ecModel._theme.option);\n\n // TODO Needs clone when merging to the unexisted property\n merge(baseOption, globalDefault, false);\n\n ecModel._mergeOption(baseOption, null);\n };\n\n })();\n}\n\n\n/**\n * @param condition.mainType Mandatory.\n * @param condition.subType Optional.\n * @param condition.query like {xxxIndex, xxxId, xxxName},\n * where xxx is mainType.\n * If query attribute is null/undefined or has no index/id/name,\n * do not filtering by query conditions, which is convenient for\n * no-payload situations or when target of action is global.\n * @param condition.filter parameter: component, return boolean.\n */\nexport interface QueryConditionKindA {\n mainType: ComponentMainType;\n subType?: ComponentSubType;\n query?: {\n [k: string]: number | number[] | string | string[]\n };\n filter?: (cmpt: ComponentModel) => boolean;\n}\n\n/**\n * If none of index and id and name used, return all components with mainType.\n * @param condition.mainType\n * @param condition.subType If ignore, only query by mainType\n * @param condition.index Either input index or id or name.\n * @param condition.id Either input index or id or name.\n * @param condition.name Either input index or id or name.\n */\nexport interface QueryConditionKindB {\n mainType: ComponentMainType;\n subType?: ComponentSubType;\n index?: number | number[];\n id?: OptionId | OptionId[];\n name?: OptionName | OptionName[];\n}\nexport interface EachComponentAllCallback {\n (mainType: string, model: ComponentModel, componentIndex: number): void;\n}\ninterface EachComponentInMainTypeCallback {\n (model: ComponentModel, componentIndex: number): void;\n}\n\n\nfunction isNotTargetSeries(seriesModel: SeriesModel, payload: Payload): boolean {\n if (payload) {\n const index = payload.seriesIndex;\n const id = payload.seriesId;\n const name = payload.seriesName;\n return (index != null && seriesModel.componentIndex !== index)\n || (id != null && seriesModel.id !== id)\n || (name != null && seriesModel.name !== name);\n }\n}\n\nfunction mergeTheme(option: ECUnitOption, theme: ThemeOption): void {\n // PENDING\n // NOT use `colorLayer` in theme if option has `color`\n const notMergeColorLayer = option.color && !option.colorLayer;\n\n each(theme, function (themeItem, name) {\n if (name === 'colorLayer' && notMergeColorLayer) {\n return;\n }\n\n // If it is component model mainType, the model handles that merge later.\n // otherwise, merge them here.\n if (!ComponentModel.hasClass(name)) {\n if (typeof themeItem === 'object') {\n option[name] = !option[name]\n ? clone(themeItem)\n : merge(option[name], themeItem, false);\n }\n else {\n if (option[name] == null) {\n option[name] = themeItem;\n }\n }\n }\n });\n}\n\nfunction queryByIdOrName(\n attr: 'id' | 'name',\n idOrName: string | number | (string | number)[],\n cmpts: T[]\n): T[] {\n // Here is a break from echarts4: string and number are\n // treated as equal.\n if (isArray(idOrName)) {\n const keyMap = createHashMap();\n each(idOrName, function (idOrNameItem) {\n if (idOrNameItem != null) {\n const idName = modelUtil.convertOptionIdName(idOrNameItem, null);\n idName != null && keyMap.set(idOrNameItem, true);\n }\n });\n return filter(cmpts, cmpt => cmpt && keyMap.get(cmpt[attr]));\n }\n else {\n const idName = modelUtil.convertOptionIdName(idOrName, null);\n return filter(cmpts, cmpt => cmpt && idName != null && cmpt[attr] === idName);\n }\n}\n\nfunction filterBySubType(\n components: ComponentModel[],\n condition: QueryConditionKindA | QueryConditionKindB\n): ComponentModel[] {\n // Using hasOwnProperty for restrict. Consider\n // subType is undefined in user payload.\n return condition.hasOwnProperty('subType')\n ? filter(components, cmpt => cmpt && cmpt.subType === condition.subType)\n : components;\n}\n\nfunction normalizeSetOptionInput(opts: GlobalModelSetOptionOpts): InnerSetOptionOpts {\n const replaceMergeMainTypeMap = createHashMap();\n opts && each(modelUtil.normalizeToArray(opts.replaceMerge), function (mainType) {\n if (__DEV__) {\n assert(\n ComponentModel.hasClass(mainType),\n '\"' + mainType + '\" is not valid component main type in \"replaceMerge\"'\n );\n }\n replaceMergeMainTypeMap.set(mainType, true);\n });\n return {\n replaceMergeMainTypeMap: replaceMergeMainTypeMap\n };\n}\n\ninterface GlobalModel extends PaletteMixin {}\nmixin(GlobalModel, PaletteMixin);\n\nexport default GlobalModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {EChartsType} from './echarts';\n\nimport type {CoordinateSystemMaster} from '../coord/CoordinateSystem';\nimport type Element from 'zrender/src/Element';\nimport type ComponentModel from '../model/Component';\nimport type ComponentView from '../view/Component';\nimport type ChartView from '../view/Chart';\nimport type SeriesModel from '../model/Series';\nimport type GlobalModel from '../model/Global';\n\nconst availableMethods: (keyof EChartsType)[] = [\n 'getDom',\n 'getZr',\n 'getWidth',\n 'getHeight',\n 'getDevicePixelRatio',\n 'dispatchAction',\n 'isDisposed',\n 'on',\n 'off',\n 'getDataURL',\n 'getConnectedDataURL',\n // 'getModel',\n 'getOption',\n // 'getViewOfComponentModel',\n // 'getViewOfSeriesModel',\n 'getId',\n 'updateLabelLayout'\n];\n\ninterface ExtensionAPI extends Pick {}\n\nabstract class ExtensionAPI {\n\n constructor(ecInstance: EChartsType) {\n zrUtil.each(availableMethods, function (methodName: string) {\n (this as any)[methodName] = zrUtil.bind((ecInstance as any)[methodName], ecInstance);\n }, this);\n }\n\n // Implemented in echarts.js\n abstract getCoordinateSystems(): CoordinateSystemMaster[];\n abstract getComponentByElement(el: Element): ComponentModel;\n abstract enterEmphasis(el: Element, highlightDigit?: number): void;\n abstract leaveEmphasis(el: Element, highlightDigit?: number): void;\n abstract enterSelect(el: Element): void;\n abstract leaveSelect(el: Element): void;\n abstract enterBlur(el: Element): void;\n abstract leaveBlur(el: Element): void;\n // These methods are not planned to be exposed to outside.\n abstract getViewOfComponentModel(componentModel: ComponentModel): ComponentView;\n abstract getViewOfSeriesModel(seriesModel: SeriesModel): ChartView;\n abstract getModel(): GlobalModel;\n}\n\nexport default ExtensionAPI;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nimport type GlobalModel from '../model/Global';\nimport type ExtensionAPI from './ExtensionAPI';\nimport type { CoordinateSystemCreator, CoordinateSystemMaster } from '../coord/CoordinateSystem';\n\nconst coordinateSystemCreators: {[type: string]: CoordinateSystemCreator} = {};\n\nclass CoordinateSystemManager {\n\n private _coordinateSystems: CoordinateSystemMaster[] = [];\n\n create(ecModel: GlobalModel, api: ExtensionAPI): void {\n let coordinateSystems: CoordinateSystemMaster[] = [];\n zrUtil.each(coordinateSystemCreators, function (creater, type) {\n const list = creater.create(ecModel, api);\n coordinateSystems = coordinateSystems.concat(list || []);\n });\n\n this._coordinateSystems = coordinateSystems;\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n zrUtil.each(this._coordinateSystems, function (coordSys) {\n coordSys.update && coordSys.update(ecModel, api);\n });\n }\n\n getCoordinateSystems(): CoordinateSystemMaster[] {\n return this._coordinateSystems.slice();\n }\n\n static register = function (type: string, creator: CoordinateSystemCreator): void {\n coordinateSystemCreators[type] = creator;\n };\n\n static get = function (type: string): CoordinateSystemCreator {\n return coordinateSystemCreators[type];\n };\n\n}\n\nexport default CoordinateSystemManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * ECharts option manager\n */\n\n\n// import ComponentModel, { ComponentModelConstructor } from './Component';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {\n OptionPreprocessor, MediaQuery, ECUnitOption, MediaUnit, ECBasicOption, SeriesOption\n} from '../util/types';\nimport GlobalModel, { InnerSetOptionOpts } from './Global';\nimport {\n normalizeToArray\n // , MappingExistingItem, setComponentTypeToKeyInfo, mappingToExists\n} from '../util/model';\nimport {\n each, clone, map, isTypedArray, setAsPrimitive, isArray, isObject\n // , HashMap , createHashMap, extend, merge,\n} from 'zrender/src/core/util';\nimport { DatasetOption } from '../component/dataset/install';\nimport { error } from '../util/log';\n\nconst QUERY_REG = /^(min|max)?(.+)$/;\n\ninterface ParsedRawOption {\n baseOption: ECUnitOption;\n timelineOptions: ECUnitOption[];\n mediaDefault: MediaUnit;\n mediaList: MediaUnit[];\n}\n\n// Key: mainType\n// type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>;\n\n/**\n * TERM EXPLANATIONS:\n * See `ECOption` and `ECUnitOption` in `src/util/types.ts`.\n */\nclass OptionManager {\n\n private _api: ExtensionAPI;\n\n private _timelineOptions: ECUnitOption[] = [];\n\n private _mediaList: MediaUnit[] = [];\n\n private _mediaDefault: MediaUnit;\n\n /**\n * -1, means default.\n * empty means no media.\n */\n private _currentMediaIndices: number[] = [];\n\n private _optionBackup: ParsedRawOption;\n\n // private _fakeCmptsMap: FakeComponentsMap;\n\n private _newBaseOption: ECUnitOption;\n\n // timeline.notMerge is not supported in ec3. Firstly there is rearly\n // case that notMerge is needed. Secondly supporting 'notMerge' requires\n // rawOption cloned and backuped when timeline changed, which does no\n // good to performance. What's more, that both timeline and setOption\n // method supply 'notMerge' brings complex and some problems.\n // Consider this case:\n // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);\n // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);\n\n constructor(api: ExtensionAPI) {\n this._api = api;\n }\n\n setOption(\n rawOption: ECBasicOption,\n optionPreprocessorFuncs: OptionPreprocessor[],\n opt: InnerSetOptionOpts\n ): void {\n if (rawOption) {\n // That set dat primitive is dangerous if user reuse the data when setOption again.\n each(normalizeToArray((rawOption as ECUnitOption).series), function (series: SeriesOption) {\n series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data);\n });\n each(normalizeToArray((rawOption as ECUnitOption).dataset), function (dataset: DatasetOption) {\n dataset && dataset.source && isTypedArray(dataset.source) && setAsPrimitive(dataset.source);\n });\n }\n\n // Caution: some series modify option data, if do not clone,\n // it should ensure that the repeat modify correctly\n // (create a new object when modify itself).\n rawOption = clone(rawOption);\n\n // FIXME\n // If some property is set in timeline options or media option but\n // not set in baseOption, a warning should be given.\n\n const optionBackup = this._optionBackup;\n const newParsedOption = parseRawOption(\n rawOption, optionPreprocessorFuncs, !optionBackup\n );\n this._newBaseOption = newParsedOption.baseOption;\n\n // For setOption at second time (using merge mode);\n if (optionBackup) {\n // FIXME\n // the restore merge solution is essentially incorrect.\n // the mapping can not be 100% consistent with ecModel, which probably brings\n // potential bug!\n\n // The first merge is delayed, becuase in most cases, users do not call `setOption` twice.\n // let fakeCmptsMap = this._fakeCmptsMap;\n // if (!fakeCmptsMap) {\n // fakeCmptsMap = this._fakeCmptsMap = createHashMap();\n // mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);\n // }\n\n // mergeToBackupOption(\n // fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt\n // );\n\n // For simplicity, timeline options and media options do not support merge,\n // that is, if you `setOption` twice and both has timeline options, the latter\n // timeline opitons will not be merged to the formers, but just substitude them.\n if (newParsedOption.timelineOptions.length) {\n optionBackup.timelineOptions = newParsedOption.timelineOptions;\n }\n if (newParsedOption.mediaList.length) {\n optionBackup.mediaList = newParsedOption.mediaList;\n }\n if (newParsedOption.mediaDefault) {\n optionBackup.mediaDefault = newParsedOption.mediaDefault;\n }\n }\n else {\n this._optionBackup = newParsedOption;\n }\n }\n\n mountOption(isRecreate: boolean): ECUnitOption {\n const optionBackup = this._optionBackup;\n\n this._timelineOptions = optionBackup.timelineOptions;\n this._mediaList = optionBackup.mediaList;\n this._mediaDefault = optionBackup.mediaDefault;\n this._currentMediaIndices = [];\n\n return clone(isRecreate\n // this._optionBackup.baseOption, which is created at the first `setOption`\n // called, and is merged into every new option by inner method `mergeToBackupOption`\n // each time `setOption` called, can be only used in `isRecreate`, because\n // its reliability is under suspicion. In other cases option merge is\n // performed by `model.mergeOption`.\n ? optionBackup.baseOption : this._newBaseOption\n );\n }\n\n getTimelineOption(ecModel: GlobalModel): ECUnitOption {\n let option;\n const timelineOptions = this._timelineOptions;\n\n if (timelineOptions.length) {\n // getTimelineOption can only be called after ecModel inited,\n // so we can get currentIndex from timelineModel.\n const timelineModel = ecModel.getComponent('timeline');\n if (timelineModel) {\n option = clone(\n // FIXME:TS as TimelineModel or quivlant interface\n timelineOptions[(timelineModel as any).getCurrentIndex()]\n );\n }\n }\n\n return option;\n }\n\n getMediaOption(ecModel: GlobalModel): ECUnitOption[] {\n const ecWidth = this._api.getWidth();\n const ecHeight = this._api.getHeight();\n const mediaList = this._mediaList;\n const mediaDefault = this._mediaDefault;\n let indices = [];\n let result: ECUnitOption[] = [];\n\n // No media defined.\n if (!mediaList.length && !mediaDefault) {\n return result;\n }\n\n // Multi media may be applied, the latter defined media has higher priority.\n for (let i = 0, len = mediaList.length; i < len; i++) {\n if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {\n indices.push(i);\n }\n }\n\n // FIXME\n // Whether mediaDefault should force users to provide? Otherwise\n // the change by media query can not be recorvered.\n if (!indices.length && mediaDefault) {\n indices = [-1];\n }\n\n if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {\n result = map(indices, function (index) {\n return clone(\n index === -1 ? mediaDefault.option : mediaList[index].option\n );\n });\n }\n // Otherwise return nothing.\n\n this._currentMediaIndices = indices;\n\n return result;\n }\n\n}\n\n/**\n * [RAW_OPTION_PATTERNS]\n * (Note: \"series: []\" represents all other props in `ECUnitOption`)\n *\n * (1) No prop \"baseOption\" declared:\n * Root option is used as \"baseOption\" (except prop \"options\" and \"media\").\n * ```js\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * };\n * option = {\n * series: [],\n * media: {},\n * };\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * media: {},\n * }\n * ```\n *\n * (2) Prop \"baseOption\" declared:\n * If \"baseOption\" declared, `ECUnitOption` props can only be declared\n * inside \"baseOption\" except prop \"timeline\" (compat ec2).\n * ```js\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * };\n * option = {\n * baseOption: {\n * series: [],\n * },\n * media: []\n * };\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * media: []\n * };\n * option = {\n * // ec3 compat ec2: allow (only) `timeline` declared\n * // outside baseOption. Keep this setting for compat.\n * timeline: {},\n * baseOption: {\n * series: [],\n * },\n * options: [],\n * media: []\n * };\n * ```\n */\nfunction parseRawOption(\n // `rawOption` May be modified\n rawOption: ECBasicOption,\n optionPreprocessorFuncs: OptionPreprocessor[],\n isNew: boolean\n): ParsedRawOption {\n const mediaList: MediaUnit[] = [];\n let mediaDefault: MediaUnit;\n let baseOption: ECUnitOption;\n\n const declaredBaseOption = rawOption.baseOption;\n // Compatible with ec2, [RAW_OPTION_PATTERNS] above.\n const timelineOnRoot = rawOption.timeline;\n const timelineOptionsOnRoot = rawOption.options;\n const mediaOnRoot = rawOption.media;\n const hasMedia = !!rawOption.media;\n const hasTimeline = !!(\n timelineOptionsOnRoot || timelineOnRoot || (declaredBaseOption && declaredBaseOption.timeline)\n );\n\n if (declaredBaseOption) {\n baseOption = declaredBaseOption;\n // For merge option.\n if (!baseOption.timeline) {\n baseOption.timeline = timelineOnRoot;\n }\n }\n // For convenience, enable to use the root option as the `baseOption`:\n // `{ ...normalOptionProps, media: [{ ... }, { ... }] }`\n else {\n if (hasTimeline || hasMedia) {\n rawOption.options = rawOption.media = null;\n }\n baseOption = rawOption;\n }\n\n if (hasMedia) {\n if (isArray(mediaOnRoot)) {\n each(mediaOnRoot, function (singleMedia) {\n if (__DEV__) {\n // Real case of wrong config.\n if (singleMedia\n && !singleMedia.option\n && isObject(singleMedia.query)\n && isObject((singleMedia.query as any).option)\n ) {\n error('Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }');\n }\n }\n if (singleMedia && singleMedia.option) {\n if (singleMedia.query) {\n mediaList.push(singleMedia);\n }\n else if (!mediaDefault) {\n // Use the first media default.\n mediaDefault = singleMedia;\n }\n }\n });\n }\n else {\n if (__DEV__) {\n // Real case of wrong config.\n error('Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }');\n }\n }\n }\n\n doPreprocess(baseOption);\n each(timelineOptionsOnRoot, option => doPreprocess(option));\n each(mediaList, media => doPreprocess(media.option));\n\n function doPreprocess(option: ECUnitOption) {\n each(optionPreprocessorFuncs, function (preProcess) {\n preProcess(option, isNew);\n });\n }\n\n return {\n baseOption: baseOption,\n timelineOptions: timelineOptionsOnRoot || [],\n mediaDefault: mediaDefault,\n mediaList: mediaList\n };\n}\n\n/**\n * @see \n * Support: width, height, aspectRatio\n * Can use max or min as prefix.\n */\nfunction applyMediaQuery(query: MediaQuery, ecWidth: number, ecHeight: number): boolean {\n const realMap = {\n width: ecWidth,\n height: ecHeight,\n aspectratio: ecWidth / ecHeight // lowser case for convenientce.\n };\n\n let applicatable = true;\n\n each(query, function (value: number, attr) {\n const matched = attr.match(QUERY_REG);\n\n if (!matched || !matched[1] || !matched[2]) {\n return;\n }\n\n const operator = matched[1];\n const realAttr = matched[2].toLowerCase();\n\n if (!compare(realMap[realAttr as keyof typeof realMap], value, operator)) {\n applicatable = false;\n }\n });\n\n return applicatable;\n}\n\nfunction compare(real: number, expect: number, operator: string): boolean {\n if (operator === 'min') {\n return real >= expect;\n }\n else if (operator === 'max') {\n return real <= expect;\n }\n else { // Equals\n return real === expect;\n }\n}\n\nfunction indicesEquals(indices1: number[], indices2: number[]): boolean {\n // indices is always order by asc and has only finite number.\n return indices1.join(',') === indices2.join(',');\n}\n\n/**\n * Consider case:\n * `chart.setOption(opt1);`\n * Then user do some interaction like dataZoom, dataView changing.\n * `chart.setOption(opt2);`\n * Then user press 'reset button' in toolbox.\n *\n * After doing that all of the interaction effects should be reset, the\n * chart should be the same as the result of invoke\n * `chart.setOption(opt1); chart.setOption(opt2);`.\n *\n * Although it is not able ensure that\n * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to\n * `chart.setOption(merge(opt1, opt2));` exactly,\n * this might be the only simple way to implement that feature.\n *\n * MEMO: We've considered some other approaches:\n * 1. Each model handle its self restoration but not uniform treatment.\n * (Too complex in logic and error-prone)\n * 2. Use a shadow ecModel. (Performace expensive)\n *\n * FIXME: A possible solution:\n * Add a extra level of model for each component model. The inheritance chain would be:\n * ecModel <- componentModel <- componentActionModel <- dataItemModel\n * And all of the actions can only modify the `componentActionModel` rather than\n * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.\n * When \"resotre\" action triggered, model from `componentActionModel` will be discarded\n * instead of recreating the \"ecModel\" from the \"_optionBackup\".\n */\n// function mergeToBackupOption(\n// fakeCmptsMap: FakeComponentsMap,\n// // `tarOption` Can be null/undefined, means init\n// tarOption: ECUnitOption,\n// newOption: ECUnitOption,\n// // Can be null/undefined\n// opt: InnerSetOptionOpts\n// ): void {\n// newOption = newOption || {} as ECUnitOption;\n// const notInit = !!tarOption;\n\n// each(newOption, function (newOptsInMainType, mainType) {\n// if (newOptsInMainType == null) {\n// return;\n// }\n\n// if (!ComponentModel.hasClass(mainType)) {\n// if (tarOption) {\n// tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);\n// }\n// }\n// else {\n// const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;\n// const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];\n// const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;\n// const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);\n\n// const mappingResult = mappingToExists(\n// oldFakeCmptsInMainType,\n// normalizeToArray(newOptsInMainType),\n// (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'\n// );\n// setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n\n// each(mappingResult, function (resultItem, index) {\n// // The same logic as `Global.ts#_mergeOption`.\n// let fakeCmpt = resultItem.existing;\n// const newOption = resultItem.newOption;\n// const keyInfo = resultItem.keyInfo;\n// let fakeCmptOpt;\n\n// if (!newOption) {\n// fakeCmptOpt = oldTarOptsInMainType[index];\n// }\n// else {\n// if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {\n// fakeCmpt.name = keyInfo.name;\n// if (notInit) {\n// fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);\n// }\n// }\n// else {\n// fakeCmpt = extend({}, keyInfo);\n// if (notInit) {\n// fakeCmptOpt = clone(newOption);\n// }\n// }\n// }\n\n// if (fakeCmpt) {\n// notInit && resultTarOptsInMainType.push(fakeCmptOpt);\n// resultFakeCmptsInMainType.push(fakeCmpt);\n// }\n// else {\n// notInit && resultTarOptsInMainType.push(void 0);\n// resultFakeCmptsInMainType.push(void 0);\n// }\n// });\n// }\n// });\n// }\n\nexport default OptionManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { deprecateLog, deprecateReplaceLog } from '../../util/log';\n\nconst each = zrUtil.each;\nconst isObject = zrUtil.isObject;\n\nconst POSSIBLE_STYLES = [\n 'areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle',\n 'chordStyle', 'label', 'labelLine'\n];\n\n\nfunction compatEC2ItemStyle(opt: Dictionary) {\n const itemStyleOpt = opt && opt.itemStyle;\n if (!itemStyleOpt) {\n return;\n }\n for (let i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {\n const styleName = POSSIBLE_STYLES[i];\n const normalItemStyleOpt = itemStyleOpt.normal;\n const emphasisItemStyleOpt = itemStyleOpt.emphasis;\n if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {\n if (__DEV__) {\n deprecateReplaceLog(`itemStyle.normal.${styleName}`, styleName);\n }\n opt[styleName] = opt[styleName] || {};\n if (!opt[styleName].normal) {\n opt[styleName].normal = normalItemStyleOpt[styleName];\n }\n else {\n zrUtil.merge(opt[styleName].normal, normalItemStyleOpt[styleName]);\n }\n normalItemStyleOpt[styleName] = null;\n }\n if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {\n if (__DEV__) {\n deprecateReplaceLog(`itemStyle.emphasis.${styleName}`, `emphasis.${styleName}`);\n }\n opt[styleName] = opt[styleName] || {};\n if (!opt[styleName].emphasis) {\n opt[styleName].emphasis = emphasisItemStyleOpt[styleName];\n }\n else {\n zrUtil.merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);\n }\n emphasisItemStyleOpt[styleName] = null;\n }\n }\n}\n\nfunction convertNormalEmphasis(opt: Dictionary, optType: string, useExtend?: boolean) {\n if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {\n const normalOpt = opt[optType].normal;\n const emphasisOpt = opt[optType].emphasis;\n\n if (normalOpt) {\n if (__DEV__) {\n // eslint-disable-next-line max-len\n deprecateLog(`'normal' hierarchy in ${optType} has been removed since 4.0. All style properties are configured in ${optType} directly now.`);\n }\n // Timeline controlStyle has other properties besides normal and emphasis\n if (useExtend) {\n opt[optType].normal = opt[optType].emphasis = null;\n zrUtil.defaults(opt[optType], normalOpt);\n }\n else {\n opt[optType] = normalOpt;\n }\n }\n if (emphasisOpt) {\n if (__DEV__) {\n deprecateLog(`${optType}.emphasis has been changed to emphasis.${optType} since 4.0`);\n }\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[optType] = emphasisOpt;\n\n // Also compat the case user mix the style and focus together in ec3 style\n // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }\n if (emphasisOpt.focus) {\n opt.emphasis.focus = emphasisOpt.focus;\n }\n if (emphasisOpt.blurScope) {\n opt.emphasis.blurScope = emphasisOpt.blurScope;\n }\n }\n }\n}\n\nfunction removeEC3NormalStatus(opt: Dictionary) {\n convertNormalEmphasis(opt, 'itemStyle');\n convertNormalEmphasis(opt, 'lineStyle');\n convertNormalEmphasis(opt, 'areaStyle');\n convertNormalEmphasis(opt, 'label');\n convertNormalEmphasis(opt, 'labelLine');\n // treemap\n convertNormalEmphasis(opt, 'upperLabel');\n // graph\n convertNormalEmphasis(opt, 'edgeLabel');\n}\n\nfunction compatTextStyle(opt: any, propName: string) {\n // Check whether is not object (string\\null\\undefined ...)\n const labelOptSingle = isObject(opt) && opt[propName];\n const textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle;\n if (textStyle) {\n if (__DEV__) {\n // eslint-disable-next-line max-len\n deprecateLog(`textStyle hierarchy in ${propName} has been removed since 4.0. All textStyle properties are configured in ${propName} directly now.`);\n }\n for (let i = 0, len = modelUtil.TEXT_STYLE_OPTIONS.length; i < len; i++) {\n const textPropName = modelUtil.TEXT_STYLE_OPTIONS[i];\n if (textStyle.hasOwnProperty(textPropName)) {\n labelOptSingle[textPropName] = textStyle[textPropName];\n }\n }\n }\n}\n\nfunction compatEC3CommonStyles(opt: Dictionary) {\n if (opt) {\n removeEC3NormalStatus(opt);\n compatTextStyle(opt, 'label');\n opt.emphasis && compatTextStyle(opt.emphasis, 'label');\n }\n}\n\nfunction processSeries(seriesOpt: any) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n compatEC2ItemStyle(seriesOpt);\n removeEC3NormalStatus(seriesOpt);\n\n compatTextStyle(seriesOpt, 'label');\n // treemap\n compatTextStyle(seriesOpt, 'upperLabel');\n // graph\n compatTextStyle(seriesOpt, 'edgeLabel');\n if (seriesOpt.emphasis) {\n compatTextStyle(seriesOpt.emphasis, 'label');\n // treemap\n compatTextStyle(seriesOpt.emphasis, 'upperLabel');\n // graph\n compatTextStyle(seriesOpt.emphasis, 'edgeLabel');\n }\n\n let markPoint = seriesOpt.markPoint;\n if (markPoint) {\n compatEC2ItemStyle(markPoint);\n compatEC3CommonStyles(markPoint);\n }\n\n let markLine = seriesOpt.markLine;\n if (markLine) {\n compatEC2ItemStyle(markLine);\n compatEC3CommonStyles(markLine);\n }\n\n const markArea = seriesOpt.markArea;\n if (markArea) {\n compatEC3CommonStyles(markArea);\n }\n\n let data = seriesOpt.data;\n\n // Break with ec3: if `setOption` again, there may be no `type` in option,\n // then the backward compat based on option type will not be performed.\n\n if (seriesOpt.type === 'graph') {\n data = data || seriesOpt.nodes;\n const edgeData = seriesOpt.links || seriesOpt.edges;\n if (edgeData && !zrUtil.isTypedArray(edgeData)) {\n for (let i = 0; i < edgeData.length; i++) {\n compatEC3CommonStyles(edgeData[i]);\n }\n }\n zrUtil.each(seriesOpt.categories, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n\n if (data && !zrUtil.isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n compatEC3CommonStyles(data[i]);\n }\n }\n\n // mark point data\n markPoint = seriesOpt.markPoint;\n if (markPoint && markPoint.data) {\n const mpData = markPoint.data;\n for (let i = 0; i < mpData.length; i++) {\n compatEC3CommonStyles(mpData[i]);\n }\n }\n // mark line data\n markLine = seriesOpt.markLine;\n if (markLine && markLine.data) {\n const mlData = markLine.data;\n for (let i = 0; i < mlData.length; i++) {\n if (zrUtil.isArray(mlData[i])) {\n compatEC3CommonStyles(mlData[i][0]);\n compatEC3CommonStyles(mlData[i][1]);\n }\n else {\n compatEC3CommonStyles(mlData[i]);\n }\n }\n }\n\n // Series\n if (seriesOpt.type === 'gauge') {\n compatTextStyle(seriesOpt, 'axisLabel');\n compatTextStyle(seriesOpt, 'title');\n compatTextStyle(seriesOpt, 'detail');\n }\n else if (seriesOpt.type === 'treemap') {\n convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');\n zrUtil.each(seriesOpt.levels, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n else if (seriesOpt.type === 'tree') {\n removeEC3NormalStatus(seriesOpt.leaves);\n }\n // sunburst starts from ec4, so it does not need to compat levels.\n}\n\nfunction toArr(o: any) {\n return zrUtil.isArray(o) ? o : o ? [o] : [];\n}\n\nfunction toObj(o: any) {\n return (zrUtil.isArray(o) ? o[0] : o) || {};\n}\n\nexport default function globalCompatStyle(option: any, isTheme?: boolean) {\n each(toArr(option.series), function (seriesOpt) {\n isObject(seriesOpt) && processSeries(seriesOpt);\n });\n\n const axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];\n isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');\n\n each(\n axes,\n function (axisName) {\n each(toArr(option[axisName]), function (axisOpt) {\n if (axisOpt) {\n compatTextStyle(axisOpt, 'axisLabel');\n compatTextStyle(axisOpt.axisPointer, 'label');\n }\n });\n }\n );\n\n each(toArr(option.parallel), function (parallelOpt) {\n const parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;\n compatTextStyle(parallelAxisDefault, 'axisLabel');\n compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');\n });\n\n each(toArr(option.calendar), function (calendarOpt) {\n convertNormalEmphasis(calendarOpt, 'itemStyle');\n compatTextStyle(calendarOpt, 'dayLabel');\n compatTextStyle(calendarOpt, 'monthLabel');\n compatTextStyle(calendarOpt, 'yearLabel');\n });\n\n // radar.name.textStyle\n each(toArr(option.radar), function (radarOpt) {\n compatTextStyle(radarOpt, 'name');\n // Use axisName instead of name because component has name property\n if (radarOpt.name && radarOpt.axisName == null) {\n radarOpt.axisName = radarOpt.name;\n delete radarOpt.name;\n if (__DEV__) {\n deprecateLog('name property in radar component has been changed to axisName');\n }\n }\n if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) {\n radarOpt.axisNameGap = radarOpt.nameGap;\n delete radarOpt.nameGap;\n if (__DEV__) {\n deprecateLog('nameGap property in radar component has been changed to axisNameGap');\n }\n }\n });\n\n each(toArr(option.geo), function (geoOpt) {\n if (isObject(geoOpt)) {\n compatEC3CommonStyles(geoOpt);\n each(toArr(geoOpt.regions), function (regionObj) {\n compatEC3CommonStyles(regionObj);\n });\n }\n });\n\n each(toArr(option.timeline), function (timelineOpt) {\n compatEC3CommonStyles(timelineOpt);\n convertNormalEmphasis(timelineOpt, 'label');\n convertNormalEmphasis(timelineOpt, 'itemStyle');\n convertNormalEmphasis(timelineOpt, 'controlStyle', true);\n\n const data = timelineOpt.data;\n zrUtil.isArray(data) && zrUtil.each(data, function (item) {\n if (zrUtil.isObject(item)) {\n convertNormalEmphasis(item, 'label');\n convertNormalEmphasis(item, 'itemStyle');\n }\n });\n });\n\n each(toArr(option.toolbox), function (toolboxOpt) {\n convertNormalEmphasis(toolboxOpt, 'iconStyle');\n each(toolboxOpt.feature, function (featureOpt) {\n convertNormalEmphasis(featureOpt, 'iconStyle');\n });\n });\n\n compatTextStyle(toObj(option.axisPointer), 'label');\n compatTextStyle(toObj(option.tooltip).axisPointer, 'label');\n\n // Clean logs\n // storedLogs = {};\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, isArray, isObject, isTypedArray, defaults} from 'zrender/src/core/util';\nimport compatStyle from './helper/compatStyle';\nimport {normalizeToArray} from '../util/model';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { ECUnitOption } from '../util/types';\nimport type { BarSeriesOption } from '../chart/bar/BarSeries';\nimport type { PieSeriesOption } from '../chart/pie/PieSeries';\nimport { deprecateLog, deprecateReplaceLog } from '../util/log';\n\nfunction get(opt: Dictionary, path: string): any {\n const pathArr = path.split(',');\n let obj = opt;\n for (let i = 0; i < pathArr.length; i++) {\n obj = obj && obj[pathArr[i]];\n if (obj == null) {\n break;\n }\n }\n return obj;\n}\n\nfunction set(opt: Dictionary, path: string, val: any, overwrite?: boolean) {\n const pathArr = path.split(',');\n let obj = opt;\n let key;\n let i = 0;\n for (; i < pathArr.length - 1; i++) {\n key = pathArr[i];\n if (obj[key] == null) {\n obj[key] = {};\n }\n obj = obj[key];\n }\n if (overwrite || obj[pathArr[i]] == null) {\n obj[pathArr[i]] = val;\n }\n}\n\nfunction compatLayoutProperties(option: Dictionary) {\n option && each(LAYOUT_PROPERTIES, function (prop) {\n if (prop[0] in option && !(prop[1] in option)) {\n option[prop[1]] = option[prop[0]];\n }\n });\n}\n\nconst LAYOUT_PROPERTIES = [\n ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']\n];\n\nconst COMPATITABLE_COMPONENTS = [\n 'grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'\n];\n\nconst BAR_ITEM_STYLE_MAP = [\n ['borderRadius', 'barBorderRadius'],\n ['borderColor', 'barBorderColor'],\n ['borderWidth', 'barBorderWidth']\n];\n\nfunction compatBarItemStyle(option: Dictionary) {\n const itemStyle = option && option.itemStyle;\n if (itemStyle) {\n for (let i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {\n const oldName = BAR_ITEM_STYLE_MAP[i][1];\n const newName = BAR_ITEM_STYLE_MAP[i][0];\n if (itemStyle[oldName] != null) {\n itemStyle[newName] = itemStyle[oldName];\n if (__DEV__) {\n deprecateReplaceLog(oldName, newName);\n }\n }\n }\n }\n}\n\nfunction compatPieLabel(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {\n if (__DEV__) {\n deprecateReplaceLog('label.margin', 'label.edgeDistance', 'pie');\n }\n option.edgeDistance = option.margin;\n }\n}\n\nfunction compatSunburstState(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.downplay && !option.blur) {\n option.blur = option.downplay;\n if (__DEV__) {\n deprecateReplaceLog('downplay', 'blur', 'sunburst');\n }\n }\n}\n\nfunction compatGraphFocus(option: Dictionary) {\n if (!option) {\n return;\n }\n if (option.focusNodeAdjacency != null) {\n option.emphasis = option.emphasis || {};\n if (option.emphasis.focus == null) {\n if (__DEV__) {\n deprecateReplaceLog('focusNodeAdjacency', 'emphasis: { focus: \\'adjacency\\'}', 'graph/sankey');\n }\n option.emphasis.focus = 'adjacency';\n }\n }\n}\n\nfunction traverseTree(data: any[], cb: Function) {\n if (data) {\n for (let i = 0; i < data.length; i++) {\n cb(data[i]);\n data[i] && traverseTree(data[i].children, cb);\n }\n }\n}\n\nexport default function globalBackwardCompat(option: ECUnitOption, isTheme?: boolean) {\n compatStyle(option, isTheme);\n\n // Make sure series array for model initialization.\n option.series = normalizeToArray(option.series);\n\n each(option.series, function (seriesOpt: any) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n const seriesType = seriesOpt.type;\n\n if (seriesType === 'line') {\n if (seriesOpt.clipOverflow != null) {\n seriesOpt.clip = seriesOpt.clipOverflow;\n if (__DEV__) {\n deprecateReplaceLog('clipOverflow', 'clip', 'line');\n }\n }\n }\n else if (seriesType === 'pie' || seriesType === 'gauge') {\n if (seriesOpt.clockWise != null) {\n seriesOpt.clockwise = seriesOpt.clockWise;\n if (__DEV__) {\n deprecateReplaceLog('clockWise', 'clockwise');\n }\n }\n compatPieLabel((seriesOpt as PieSeriesOption).label);\n const data = seriesOpt.data;\n if (data && !isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n compatPieLabel(data[i]);\n }\n }\n\n if (seriesOpt.hoverOffset != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (seriesOpt.emphasis.scaleSize = null) {\n if (__DEV__) {\n deprecateReplaceLog('hoverOffset', 'emphasis.scaleSize');\n }\n seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset;\n }\n }\n }\n else if (seriesType === 'gauge') {\n const pointerColor = get(seriesOpt, 'pointer.color');\n pointerColor != null\n && set(seriesOpt, 'itemStyle.color', pointerColor);\n }\n else if (seriesType === 'bar') {\n compatBarItemStyle(seriesOpt);\n compatBarItemStyle((seriesOpt as BarSeriesOption).backgroundStyle);\n compatBarItemStyle(seriesOpt.emphasis);\n const data = seriesOpt.data;\n if (data && !isTypedArray(data)) {\n for (let i = 0; i < data.length; i++) {\n if (typeof data[i] === 'object') {\n compatBarItemStyle(data[i]);\n compatBarItemStyle(data[i] && data[i].emphasis);\n }\n }\n }\n }\n else if (seriesType === 'sunburst') {\n const highlightPolicy = seriesOpt.highlightPolicy;\n if (highlightPolicy) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (!seriesOpt.emphasis.focus) {\n seriesOpt.emphasis.focus = highlightPolicy;\n if (__DEV__) {\n deprecateReplaceLog('highlightPolicy', 'emphasis.focus', 'sunburst');\n }\n }\n }\n\n compatSunburstState(seriesOpt);\n\n traverseTree(seriesOpt.data, compatSunburstState);\n }\n else if (seriesType === 'graph' || seriesType === 'sankey') {\n compatGraphFocus(seriesOpt);\n // TODO nodes, edges?\n }\n else if (seriesType === 'map') {\n if (seriesOpt.mapType && !seriesOpt.map) {\n if (__DEV__) {\n deprecateReplaceLog('mapType', 'map', 'map');\n }\n seriesOpt.map = seriesOpt.mapType;\n }\n if (seriesOpt.mapLocation) {\n if (__DEV__) {\n deprecateLog('`mapLocation` is not used anymore.');\n }\n defaults(seriesOpt, seriesOpt.mapLocation);\n }\n }\n\n if (seriesOpt.hoverAnimation != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) {\n if (__DEV__) {\n deprecateReplaceLog('hoverAnimation', 'emphasis.scale');\n }\n seriesOpt.emphasis.scale = seriesOpt.hoverAnimation;\n }\n }\n\n compatLayoutProperties(seriesOpt);\n });\n\n // dataRange has changed to visualMap\n if (option.dataRange) {\n option.visualMap = option.dataRange;\n }\n\n each(COMPATITABLE_COMPONENTS, function (componentName) {\n let options = option[componentName];\n if (options) {\n if (!isArray(options)) {\n options = [options];\n }\n each(options, function (option) {\n compatLayoutProperties(option);\n });\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, each} from 'zrender/src/core/util';\nimport GlobalModel from '../model/Global';\nimport SeriesModel from '../model/Series';\nimport { SeriesOption, SeriesStackOptionMixin } from '../util/types';\nimport SeriesData, { DataCalculationInfo } from '../data/SeriesData';\nimport { addSafe } from '../util/number';\n\ntype StackInfo = Pick<\n DataCalculationInfo,\n 'stackedDimension'\n | 'isStackedByIndex'\n | 'stackedByDimension'\n | 'stackResultDimension'\n | 'stackedOverDimension'\n> & {\n data: SeriesData\n seriesModel: SeriesModel\n};\n\n// (1) [Caution]: the logic is correct based on the premises:\n// data processing stage is blocked in stream.\n// See \n// (2) Only register once when import repeatly.\n// Should be executed after series filtered and before stack calculation.\nexport default function dataStack(ecModel: GlobalModel) {\n const stackInfoMap = createHashMap();\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n const stack = seriesModel.get('stack');\n // Compatibal: when `stack` is set as '', do not stack.\n if (stack) {\n const stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n const data = seriesModel.getData();\n\n const stackInfo: StackInfo = {\n // Used for calculate axis extent automatically.\n // TODO: Type getCalculationInfo return more specific type?\n stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n stackedDimension: data.getCalculationInfo('stackedDimension'),\n stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n data: data,\n seriesModel: seriesModel\n };\n\n // If stacked on axis that do not support data stack.\n if (!stackInfo.stackedDimension\n || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)\n ) {\n return;\n }\n\n stackInfoList.length && data.setCalculationInfo(\n 'stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel\n );\n\n stackInfoList.push(stackInfo);\n }\n });\n\n stackInfoMap.each(calculateStack);\n}\n\nfunction calculateStack(stackInfoList: StackInfo[]) {\n each(stackInfoList, function (targetStackInfo, idxInStack) {\n const resultVal: number[] = [];\n const resultNaN = [NaN, NaN];\n const dims: [string, string] = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];\n const targetData = targetStackInfo.data;\n const isStackedByIndex = targetStackInfo.isStackedByIndex;\n\n // Should not write on raw data, because stack series model list changes\n // depending on legend selection.\n targetData.modify(dims, function (v0, v1, dataIndex) {\n let sum = targetData.get(targetStackInfo.stackedDimension, dataIndex) as number;\n\n // Consider `connectNulls` of line area, if value is NaN, stackedOver\n // should also be NaN, to draw a appropriate belt area.\n if (isNaN(sum)) {\n return resultNaN;\n }\n\n let byValue: number;\n let stackedDataRawIndex;\n\n if (isStackedByIndex) {\n stackedDataRawIndex = targetData.getRawIndex(dataIndex);\n }\n else {\n byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex) as number;\n }\n\n // If stackOver is NaN, chart view will render point on value start.\n let stackedOver = NaN;\n\n for (let j = idxInStack - 1; j >= 0; j--) {\n const stackInfo = stackInfoList[j];\n\n // Has been optimized by inverted indices on `stackedByDimension`.\n if (!isStackedByIndex) {\n stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue);\n }\n\n if (stackedDataRawIndex >= 0) {\n const val = stackInfo.data.getByRawIndex(\n stackInfo.stackResultDimension, stackedDataRawIndex\n ) as number;\n\n // Considering positive stack, negative stack and empty data\n if ((sum >= 0 && val > 0) // Positive stack\n || (sum <= 0 && val < 0) // Negative stack\n ) {\n // The sum should be as less as possible to be effected\n // by floating arithmetic problem. A wrong result probably\n // filtered incorrectly by axis min/max.\n sum = addSafe(sum, val);\n stackedOver = val;\n break;\n }\n }\n }\n\n resultVal[0] = sum;\n resultVal[1] = stackedOver;\n\n return resultVal;\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n isTypedArray, HashMap, clone, createHashMap, isArray, isObject, isArrayLike,\n hasOwn, assert, each, map, isNumber, isString\n} from 'zrender/src/core/util';\nimport {\n SourceFormat, SeriesLayoutBy, DimensionDefinition,\n OptionEncodeValue, OptionSourceData,\n SOURCE_FORMAT_ORIGINAL,\n SERIES_LAYOUT_BY_COLUMN,\n SOURCE_FORMAT_UNKNOWN,\n SOURCE_FORMAT_KEYED_COLUMNS,\n SOURCE_FORMAT_TYPED_ARRAY,\n DimensionName,\n OptionSourceHeader,\n DimensionDefinitionLoose,\n SOURCE_FORMAT_ARRAY_ROWS,\n SOURCE_FORMAT_OBJECT_ROWS,\n Dictionary,\n OptionSourceDataObjectRows,\n OptionDataValue,\n OptionSourceDataArrayRows,\n SERIES_LAYOUT_BY_ROW,\n OptionSourceDataOriginal,\n OptionSourceDataKeyedColumns\n} from '../util/types';\nimport { DatasetOption } from '../component/dataset/install';\nimport { getDataItemValue } from '../util/model';\nimport { BE_ORDINAL, guessOrdinal } from './helper/sourceHelper';\n\n/**\n * [sourceFormat]\n *\n * + \"original\":\n * This format is only used in series.data, where\n * itemStyle can be specified in data item.\n *\n * + \"arrayRows\":\n * [\n * ['product', 'score', 'amount'],\n * ['Matcha Latte', 89.3, 95.8],\n * ['Milk Tea', 92.1, 89.4],\n * ['Cheese Cocoa', 94.4, 91.2],\n * ['Walnut Brownie', 85.4, 76.9]\n * ]\n *\n * + \"objectRows\":\n * [\n * {product: 'Matcha Latte', score: 89.3, amount: 95.8},\n * {product: 'Milk Tea', score: 92.1, amount: 89.4},\n * {product: 'Cheese Cocoa', score: 94.4, amount: 91.2},\n * {product: 'Walnut Brownie', score: 85.4, amount: 76.9}\n * ]\n *\n * + \"keyedColumns\":\n * {\n * 'product': ['Matcha Latte', 'Milk Tea', 'Cheese Cocoa', 'Walnut Brownie'],\n * 'count': [823, 235, 1042, 988],\n * 'score': [95.8, 81.4, 91.2, 76.9]\n * }\n *\n * + \"typedArray\"\n *\n * + \"unknown\"\n */\n\nexport interface SourceMetaRawOption {\n seriesLayoutBy: SeriesLayoutBy;\n sourceHeader: OptionSourceHeader;\n dimensions: DimensionDefinitionLoose[];\n}\n\n// Prevent from `new Source()` external and circular reference.\nexport interface Source extends SourceImpl {};\n// @inner\nclass SourceImpl {\n\n /**\n * Not null/undefined.\n */\n readonly data: OptionSourceData;\n\n /**\n * See also \"detectSourceFormat\".\n * Not null/undefined.\n */\n readonly sourceFormat: SourceFormat;\n\n /**\n * 'row' or 'column'\n * Not null/undefined.\n */\n readonly seriesLayoutBy: SeriesLayoutBy;\n\n /**\n * dimensions definition from:\n * (1) standalone defined in option prop `dimensions: [...]`\n * (2) detected from option data. See `determineSourceDimensions`.\n * If can not be detected (e.g., there is only pure data `[[11, 33], ...]`\n * `dimensionsDefine` will be null/undefined.\n */\n readonly dimensionsDefine: DimensionDefinition[];\n\n /**\n * Only make sense in `SOURCE_FORMAT_ARRAY_ROWS`.\n * That is the same as `sourceHeader: number`,\n * which means from which line the real data start.\n * Not null/undefined, uint.\n */\n readonly startIndex: number;\n\n /**\n * Dimension count detected from data. Only works when `dimensionDefine`\n * does not exists.\n * Can be null/undefined (when unknown), uint.\n */\n readonly dimensionsDetectedCount: number;\n\n /**\n * Raw props from user option.\n */\n readonly metaRawOption: SourceMetaRawOption;\n\n\n constructor(fields: {\n data: OptionSourceData,\n sourceFormat: SourceFormat, // default: SOURCE_FORMAT_UNKNOWN\n\n // Visit config are optional:\n seriesLayoutBy?: SeriesLayoutBy, // default: 'column'\n dimensionsDefine?: DimensionDefinition[],\n startIndex?: number, // default: 0\n dimensionsDetectedCount?: number,\n\n metaRawOption?: SourceMetaRawOption,\n\n // [Caveat]\n // This is the raw user defined `encode` in `series`.\n // If user not defined, DO NOT make a empty object or hashMap here.\n // An empty object or hashMap will prevent from auto generating encode.\n encodeDefine?: HashMap\n }) {\n\n this.data = fields.data || (\n fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : []\n );\n this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN;\n\n // Visit config\n this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN;\n this.startIndex = fields.startIndex || 0;\n this.dimensionsDetectedCount = fields.dimensionsDetectedCount;\n this.metaRawOption = fields.metaRawOption;\n\n const dimensionsDefine = this.dimensionsDefine = fields.dimensionsDefine;\n\n if (dimensionsDefine) {\n for (let i = 0; i < dimensionsDefine.length; i++) {\n const dim = dimensionsDefine[i];\n if (dim.type == null) {\n if (guessOrdinal(this, i) === BE_ORDINAL.Must) {\n dim.type = 'ordinal';\n }\n }\n }\n }\n }\n\n}\n\nexport function isSourceInstance(val: unknown): val is Source {\n return val instanceof SourceImpl;\n}\n\n/**\n * Create a source from option.\n * NOTE: Created source is immutable. Don't change any properties in it.\n */\nexport function createSource(\n sourceData: OptionSourceData,\n thisMetaRawOption: SourceMetaRawOption,\n // can be null. If not provided, auto detect it from `sourceData`.\n sourceFormat: SourceFormat\n): Source {\n sourceFormat = sourceFormat || detectSourceFormat(sourceData);\n const seriesLayoutBy = thisMetaRawOption.seriesLayoutBy;\n const determined = determineSourceDimensions(\n sourceData,\n sourceFormat,\n seriesLayoutBy,\n thisMetaRawOption.sourceHeader,\n thisMetaRawOption.dimensions\n );\n const source = new SourceImpl({\n data: sourceData,\n sourceFormat: sourceFormat,\n\n seriesLayoutBy: seriesLayoutBy,\n dimensionsDefine: determined.dimensionsDefine,\n startIndex: determined.startIndex,\n dimensionsDetectedCount: determined.dimensionsDetectedCount,\n metaRawOption: clone(thisMetaRawOption)\n });\n\n return source;\n}\n\n/**\n * Wrap original series data for some compatibility cases.\n */\nexport function createSourceFromSeriesDataOption(data: OptionSourceData): Source {\n return new SourceImpl({\n data: data,\n sourceFormat: isTypedArray(data)\n ? SOURCE_FORMAT_TYPED_ARRAY\n : SOURCE_FORMAT_ORIGINAL\n });\n}\n\n/**\n * Clone source but excludes source data.\n */\nexport function cloneSourceShallow(source: Source): Source {\n return new SourceImpl({\n data: source.data,\n sourceFormat: source.sourceFormat,\n\n seriesLayoutBy: source.seriesLayoutBy,\n dimensionsDefine: clone(source.dimensionsDefine),\n startIndex: source.startIndex,\n dimensionsDetectedCount: source.dimensionsDetectedCount\n });\n}\n\n/**\n * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.\n */\nexport function detectSourceFormat(data: DatasetOption['source']): SourceFormat {\n let sourceFormat: SourceFormat = SOURCE_FORMAT_UNKNOWN;\n\n if (isTypedArray(data)) {\n sourceFormat = SOURCE_FORMAT_TYPED_ARRAY;\n }\n else if (isArray(data)) {\n // FIXME Whether tolerate null in top level array?\n if (data.length === 0) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n }\n\n for (let i = 0, len = data.length; i < len; i++) {\n const item = data[i];\n\n if (item == null) {\n continue;\n }\n else if (isArray(item)) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n break;\n }\n else if (isObject(item)) {\n sourceFormat = SOURCE_FORMAT_OBJECT_ROWS;\n break;\n }\n }\n }\n else if (isObject(data)) {\n for (const key in data) {\n if (hasOwn(data, key) && isArrayLike((data as Dictionary)[key])) {\n sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS;\n break;\n }\n }\n }\n\n return sourceFormat;\n}\n\n/**\n * Determine the source definitions from data standalone dimensions definitions\n * are not specified.\n */\nfunction determineSourceDimensions(\n data: OptionSourceData,\n sourceFormat: SourceFormat,\n seriesLayoutBy: SeriesLayoutBy,\n sourceHeader: OptionSourceHeader,\n // standalone raw dimensions definition, like:\n // {\n // dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]\n // }\n // in `dataset` or `series`\n dimensionsDefine: DimensionDefinitionLoose[]\n): {\n // If the input `dimensionsDefine` is specified, return it.\n // Else determine dimensions from the input `data`.\n // If not determined, `dimensionsDefine` will be null/undefined.\n dimensionsDefine: Source['dimensionsDefine'];\n startIndex: Source['startIndex'];\n dimensionsDetectedCount: Source['dimensionsDetectedCount'];\n} {\n let dimensionsDetectedCount;\n let startIndex: number;\n\n // PEDING: could data be null/undefined here?\n // currently, if `dataset.source` not specified, error thrown.\n // if `series.data` not specified, nothing rendered without error thrown.\n // Should test these cases.\n if (!data) {\n return {\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n startIndex,\n dimensionsDetectedCount\n };\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const dataArrayRows = data as OptionSourceDataArrayRows;\n // Rule: Most of the first line are string: it is header.\n // Caution: consider a line with 5 string and 1 number,\n // it still can not be sure it is a head, because the\n // 5 string may be 5 values of category columns.\n if (sourceHeader === 'auto' || sourceHeader == null) {\n arrayRowsTravelFirst(function (val) {\n // '-' is regarded as null/undefined.\n if (val != null && val !== '-') {\n if (isString(val)) {\n startIndex == null && (startIndex = 1);\n }\n else {\n startIndex = 0;\n }\n }\n // 10 is an experience number, avoid long loop.\n }, seriesLayoutBy, dataArrayRows, 10);\n }\n else {\n startIndex = isNumber(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;\n }\n\n if (!dimensionsDefine && startIndex === 1) {\n dimensionsDefine = [];\n arrayRowsTravelFirst(function (val, index) {\n dimensionsDefine[index] = (val != null ? val + '' : '') as DimensionName;\n }, seriesLayoutBy, dataArrayRows, Infinity);\n }\n\n dimensionsDetectedCount = dimensionsDefine\n ? dimensionsDefine.length\n : seriesLayoutBy === SERIES_LAYOUT_BY_ROW\n ? dataArrayRows.length\n : dataArrayRows[0]\n ? dataArrayRows[0].length\n : null;\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n if (!dimensionsDefine) {\n dimensionsDefine = objectRowsCollectDimensions(data as OptionSourceDataObjectRows);\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n if (!dimensionsDefine) {\n dimensionsDefine = [];\n each(data as OptionSourceDataKeyedColumns, function (colArr, key) {\n dimensionsDefine.push(key);\n });\n }\n }\n else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const value0 = getDataItemValue((data as OptionSourceDataOriginal)[0]);\n dimensionsDetectedCount = isArray(value0) && value0.length || 1;\n }\n else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (__DEV__) {\n assert(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.');\n }\n }\n\n return {\n startIndex: startIndex,\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n}\n\nfunction objectRowsCollectDimensions(data: OptionSourceDataObjectRows): DimensionDefinitionLoose[] {\n let firstIndex = 0;\n let obj;\n while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line\n if (obj) {\n const dimensions: DimensionDefinitionLoose[] = [];\n each(obj, function (value, key) {\n dimensions.push(key);\n });\n return dimensions;\n }\n}\n\n// Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],\n// which is reasonable. But dimension name is duplicated.\n// Returns undefined or an array contains only object without null/undefiend or string.\nfunction normalizeDimensionsOption(dimensionsDefine: DimensionDefinitionLoose[]): DimensionDefinition[] {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n const nameMap = createHashMap<{ count: number }, string>();\n return map(dimensionsDefine, function (rawItem, index) {\n rawItem = isObject(rawItem) ? rawItem : { name: rawItem };\n // Other fields will be discarded.\n const item: DimensionDefinition = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n };\n\n // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n if (item.name == null) {\n return item;\n }\n\n // Also consider number form like 2012.\n item.name += '';\n // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n const exist = nameMap.get(item.name);\n if (!exist) {\n nameMap.set(item.name, {count: 1});\n }\n else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}\n\nfunction arrayRowsTravelFirst(\n cb: (val: OptionDataValue, idx: number) => void,\n seriesLayoutBy: SeriesLayoutBy,\n data: OptionSourceDataArrayRows,\n maxLoop: number\n): void {\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n for (let i = 0; i < data.length && i < maxLoop; i++) {\n cb(data[i] ? data[i][0] : null, i);\n }\n }\n else {\n const value0 = data[0] || [];\n for (let i = 0; i < value0.length && i < maxLoop; i++) {\n cb(value0[i], i);\n }\n }\n}\n\nexport function shouldRetrieveDataByName(source: Source): boolean {\n const sourceFormat = source.sourceFormat;\n return sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO\n// ??? refactor? check the outer usage of data provider.\n// merge with defaultDimValueGetter?\n\nimport {isTypedArray, extend, assert, each, isObject, bind} from 'zrender/src/core/util';\nimport {getDataItemValue} from '../../util/model';\nimport { createSourceFromSeriesDataOption, Source, isSourceInstance } from '../Source';\nimport {ArrayLike, Dictionary} from 'zrender/src/core/types';\nimport {\n SOURCE_FORMAT_ORIGINAL,\n SOURCE_FORMAT_OBJECT_ROWS,\n SOURCE_FORMAT_KEYED_COLUMNS,\n SOURCE_FORMAT_TYPED_ARRAY,\n SOURCE_FORMAT_ARRAY_ROWS,\n SERIES_LAYOUT_BY_COLUMN,\n SERIES_LAYOUT_BY_ROW,\n DimensionName, DimensionIndex, OptionSourceData,\n OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue, DimensionLoose\n} from '../../util/types';\nimport SeriesData from '../SeriesData';\n\nexport interface DataProvider {\n /**\n * true: all of the value are in primitive type (in type `OptionDataValue`).\n * false: Not sure whether any of them is non primitive type (in type `OptionDataItemObject`).\n * Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n * At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n */\n pure?: boolean;\n /**\n * If data is persistent and will not be released after use.\n */\n persistent?: boolean;\n\n getSource(): Source;\n count(): number;\n getItem(idx: number, out?: OptionDataItem): OptionDataItem;\n fillStorage?(\n start: number,\n end: number,\n out: ArrayLike[],\n extent: number[][]\n ): void\n appendData?(newData: ArrayLike): void;\n clean?(): void;\n}\n\n\nlet providerMethods: Dictionary;\nlet mountMethods: (provider: DefaultDataProvider, data: OptionSourceData, source: Source) => void;\n\nexport interface DefaultDataProvider {\n fillStorage?(\n start: number,\n end: number,\n out: ArrayLike[],\n extent: number[][]\n ): void\n}\n/**\n * If normal array used, mutable chunk size is supported.\n * If typed array used, chunk size must be fixed.\n */\nexport class DefaultDataProvider implements DataProvider {\n\n private _source: Source;\n\n private _data: OptionSourceData;\n\n private _offset: number;\n\n private _dimSize: number;\n\n pure: boolean;\n\n persistent: boolean;\n\n static protoInitialize = (function () {\n // PENDING: To avoid potential incompat (e.g., prototype\n // is visited somewhere), still init them on prototype.\n const proto = DefaultDataProvider.prototype;\n proto.pure = false;\n proto.persistent = true;\n })();\n\n\n constructor(sourceParam: Source | OptionSourceData, dimSize?: number) {\n // let source: Source;\n const source: Source = !isSourceInstance(sourceParam)\n ? createSourceFromSeriesDataOption(sourceParam as OptionSourceData)\n : sourceParam as Source;\n\n // declare source is Source;\n this._source = source;\n const data = this._data = source.data;\n\n // Typed array. TODO IE10+?\n if (source.sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (__DEV__) {\n if (dimSize == null) {\n throw new Error('Typed array data must specify dimension size');\n }\n }\n this._offset = 0;\n this._dimSize = dimSize;\n this._data = data;\n }\n\n mountMethods(this, data, source);\n }\n\n getSource(): Source {\n return this._source;\n }\n\n count(): number {\n return 0;\n }\n\n getItem(idx: number, out?: ArrayLike): OptionDataItem {\n return;\n }\n\n appendData(newData: OptionSourceData): void {\n }\n\n clean(): void {\n }\n\n private static internalField = (function () {\n\n mountMethods = function (provider, data, source) {\n const sourceFormat = source.sourceFormat;\n const seriesLayoutBy = source.seriesLayoutBy;\n const startIndex = source.startIndex;\n const dimsDef = source.dimensionsDefine;\n\n const methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(methods, 'Invalide sourceFormat: ' + sourceFormat);\n }\n\n extend(provider, methods);\n\n if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n provider.getItem = getItemForTypedArray;\n provider.count = countForTypedArray;\n provider.fillStorage = fillStorageForTypedArray;\n }\n else {\n const rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy);\n provider.getItem = bind(rawItemGetter, null, data, startIndex, dimsDef);\n const rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy);\n provider.count = bind(rawCounter, null, data, startIndex, dimsDef);\n }\n };\n\n const getItemForTypedArray: DefaultDataProvider['getItem'] = function (\n this: DefaultDataProvider, idx: number, out: ArrayLike\n ): ArrayLike {\n idx = idx - this._offset;\n out = out || [];\n const data = this._data;\n const dimSize = this._dimSize;\n const offset = dimSize * idx;\n for (let i = 0; i < dimSize; i++) {\n out[i] = (data as ArrayLike)[offset + i];\n }\n return out;\n };\n\n const fillStorageForTypedArray: DefaultDataProvider['fillStorage'] = function (\n this: DefaultDataProvider, start: number, end: number, storage: ArrayLike[], extent: number[][]\n ) {\n const data = this._data as ArrayLike;\n const dimSize = this._dimSize;\n\n for (let dim = 0; dim < dimSize; dim++) {\n const dimExtent = extent[dim];\n let min = dimExtent[0] == null ? Infinity : dimExtent[0];\n let max = dimExtent[1] == null ? -Infinity : dimExtent[1];\n const count = end - start;\n const arr = storage[dim];\n for (let i = 0; i < count; i++) {\n // appendData with TypedArray will always do replace in provider.\n const val = data[i * dimSize + dim];\n arr[start + i] = val;\n val < min && (min = val);\n val > max && (max = val);\n }\n dimExtent[0] = min;\n dimExtent[1] = max;\n }\n };\n\n const countForTypedArray: DefaultDataProvider['count'] = function (\n this: DefaultDataProvider\n ) {\n return this._data ? ((this._data as ArrayLike).length / this._dimSize) : 0;\n };\n\n providerMethods = {\n\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: {\n pure: true,\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: {\n pure: true,\n appendData: function () {\n throw new Error('Do not support appendData when set seriesLayoutBy: \"row\".');\n }\n },\n\n [SOURCE_FORMAT_OBJECT_ROWS]: {\n pure: true,\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_KEYED_COLUMNS]: {\n pure: true,\n appendData: function (this: DefaultDataProvider, newData: Dictionary) {\n const data = this._data as Dictionary;\n each(newData, function (newCol, key) {\n const oldCol = data[key] || (data[key] = []);\n for (let i = 0; i < (newCol || []).length; i++) {\n oldCol.push(newCol[i]);\n }\n });\n }\n },\n\n [SOURCE_FORMAT_ORIGINAL]: {\n appendData: appendDataSimply\n },\n\n [SOURCE_FORMAT_TYPED_ARRAY]: {\n persistent: false,\n pure: true,\n appendData: function (this: DefaultDataProvider, newData: ArrayLike): void {\n if (__DEV__) {\n assert(\n isTypedArray(newData),\n 'Added data must be TypedArray if data in initialization is TypedArray'\n );\n }\n this._data = newData;\n },\n\n // Clean self if data is already used.\n clean: function (this: DefaultDataProvider): void {\n // PENDING\n this._offset += this.count();\n this._data = null;\n }\n }\n };\n\n function appendDataSimply(this: DefaultDataProvider, newData: ArrayLike): void {\n for (let i = 0; i < newData.length; i++) {\n (this._data as any[]).push(newData[i]);\n }\n }\n\n })();\n}\n\n\n\ntype RawSourceItemGetter = (\n rawData: OptionSourceData,\n startIndex: number,\n dimsDef: { name?: DimensionName }[],\n idx: number\n) => OptionDataItem;\n\nconst getItemSimply: RawSourceItemGetter = function (\n rawData, startIndex, dimsDef, idx\n): OptionDataItem {\n return (rawData as [])[idx];\n};\n\nconst rawSourceItemGetterMap: Dictionary = {\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n return (rawData as OptionDataValue[][])[idx + startIndex];\n },\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n idx += startIndex;\n const item = [];\n const data = rawData as OptionDataValue[][];\n for (let i = 0; i < data.length; i++) {\n const row = data[i];\n item.push(row ? row[idx] : null);\n }\n return item;\n },\n [SOURCE_FORMAT_OBJECT_ROWS]: getItemSimply,\n [SOURCE_FORMAT_KEYED_COLUMNS]: function (\n rawData, startIndex, dimsDef, idx\n ): OptionDataValue[] {\n const item = [];\n for (let i = 0; i < dimsDef.length; i++) {\n const dimName = dimsDef[i].name;\n if (__DEV__) {\n if (dimName == null) {\n throw new Error();\n }\n }\n const col = (rawData as Dictionary)[dimName];\n item.push(col ? col[idx] : null);\n }\n return item;\n },\n [SOURCE_FORMAT_ORIGINAL]: getItemSimply\n};\n\nexport function getRawSourceItemGetter(\n sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy\n): RawSourceItemGetter {\n const method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(method, 'Do not support get item on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n return method;\n}\n\n\n\n\ntype RawSourceDataCounter = (\n rawData: OptionSourceData,\n startIndex: number,\n dimsDef: { name?: DimensionName }[]\n) => number;\n\nconst countSimply: RawSourceDataCounter = function (\n rawData, startIndex, dimsDef\n) {\n return (rawData as []).length;\n};\n\nconst rawSourceDataCounterMap: Dictionary = {\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: function (\n rawData, startIndex, dimsDef\n ) {\n return Math.max(0, (rawData as OptionDataItem[][]).length - startIndex);\n },\n [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: function (\n rawData, startIndex, dimsDef\n ) {\n const row = (rawData as OptionDataValue[][])[0];\n return row ? Math.max(0, row.length - startIndex) : 0;\n },\n [SOURCE_FORMAT_OBJECT_ROWS]: countSimply,\n [SOURCE_FORMAT_KEYED_COLUMNS]: function (\n rawData, startIndex, dimsDef\n ) {\n const dimName = dimsDef[0].name;\n if (__DEV__) {\n if (dimName == null) {\n throw new Error();\n }\n }\n const col = (rawData as Dictionary)[dimName];\n return col ? col.length : 0;\n },\n [SOURCE_FORMAT_ORIGINAL]: countSimply\n};\n\nexport function getRawSourceDataCounter(\n sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy\n): RawSourceDataCounter {\n const method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n if (__DEV__) {\n assert(method, 'Do not suppport count on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n return method;\n}\n\n\n\n// TODO\n// merge it to dataProvider?\ntype RawSourceValueGetter = (\n dataItem: OptionDataItem,\n dimIndex: DimensionIndex,\n dimName: DimensionName\n // If dimIndex is null/undefined, return OptionDataItem.\n // Otherwise, return OptionDataValue.\n) => OptionDataValue | OptionDataItem;\n\nconst getRawValueSimply = function (\n dataItem: ArrayLike, dimIndex: number, dimName: string\n): OptionDataValue | ArrayLike {\n return dimIndex != null ? dataItem[dimIndex] : dataItem;\n};\n\nconst rawSourceValueGetterMap: {[sourceFormat: string]: RawSourceValueGetter} = {\n\n [SOURCE_FORMAT_ARRAY_ROWS]: getRawValueSimply,\n\n [SOURCE_FORMAT_OBJECT_ROWS]: function (\n dataItem: Dictionary, dimIndex: number, dimName: string\n ): OptionDataValue | Dictionary {\n return dimIndex != null ? dataItem[dimName] : dataItem;\n },\n\n [SOURCE_FORMAT_KEYED_COLUMNS]: getRawValueSimply,\n\n [SOURCE_FORMAT_ORIGINAL]: function (\n dataItem: OptionDataItem, dimIndex: number, dimName: string\n ): OptionDataValue | OptionDataItem {\n // FIXME: In some case (markpoint in geo (geo-map.html)),\n // dataItem is {coord: [...]}\n const value = getDataItemValue(dataItem);\n return (dimIndex == null || !(value instanceof Array))\n ? value\n : value[dimIndex];\n },\n\n [SOURCE_FORMAT_TYPED_ARRAY]: getRawValueSimply\n};\n\nexport function getRawSourceValueGetter(sourceFormat: SourceFormat): RawSourceValueGetter {\n const method = rawSourceValueGetterMap[sourceFormat];\n if (__DEV__) {\n assert(method, 'Do not suppport get value on \"' + sourceFormat + '\".');\n }\n return method;\n}\n\n\nfunction getMethodMapKey(sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayoutBy): string {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS\n ? sourceFormat + '_' + seriesLayoutBy\n : sourceFormat;\n}\n\n\n// ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,\n// Consider persistent.\n// Caution: why use raw value to display on label or tooltip?\n// A reason is to avoid format. For example time value we do not know\n// how to format is expected. More over, if stack is used, calculated\n// value may be 0.91000000001, which have brings trouble to display.\n// TODO: consider how to treat null/undefined/NaN when display?\nexport function retrieveRawValue(\n data: SeriesData, dataIndex: number, dim?: DimensionLoose\n // If dimIndex is null/undefined, return OptionDataItem.\n // Otherwise, return OptionDataValue.\n): OptionDataValue | OptionDataItem {\n if (!data) {\n return;\n }\n\n // Consider data may be not persistent.\n const dataItem = data.getRawDataItem(dataIndex);\n\n if (dataItem == null) {\n return;\n }\n\n const storage = data.getStorage();\n const sourceFormat = storage.getSource().sourceFormat;\n const dimIndex = data.getDimensionIndex(dim);\n const property = storage.getDimensionProperty(dimIndex);\n\n return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property);\n}\n\n\n/**\n * Compatible with some cases (in pie, map) like:\n * data: [{name: 'xx', value: 5, selected: true}, ...]\n * where only sourceFormat is 'original' and 'objectRows' supported.\n *\n * // TODO\n * Supported detail options in data item when using 'arrayRows'.\n *\n * @param data\n * @param dataIndex\n * @param attr like 'selected'\n */\nexport function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: string): any {\n if (!data) {\n return;\n }\n\n const sourceFormat = data.getStorage().getSource().sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ORIGINAL\n && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS\n ) {\n return;\n }\n\n let dataItem = data.getRawDataItem(dataIndex);\n if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !isObject(dataItem)) {\n dataItem = null;\n }\n if (dataItem) {\n return (dataItem as Dictionary)[attr];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {retrieveRawValue} from '../../data/helper/dataProvider';\nimport {formatTpl} from '../../util/format';\nimport {\n DataHost,\n DisplayState,\n CallbackDataParams,\n ColorString,\n ZRColor,\n OptionDataValue,\n SeriesDataType,\n ComponentMainType,\n ComponentSubType,\n DimensionLoose,\n InterpolatableValue\n} from '../../util/types';\nimport GlobalModel from '../Global';\nimport { TooltipMarkupBlockFragment } from '../../component/tooltip/tooltipMarkup';\nimport { error, makePrintable } from '../../util/log';\n\nconst DIMENSION_LABEL_REG = /\\{@(.+?)\\}/g;\n\n\nexport interface DataFormatMixin extends DataHost {\n ecModel: GlobalModel;\n mainType: ComponentMainType;\n subType: ComponentSubType;\n componentIndex: number;\n id: string;\n name: string;\n animatedValue: OptionDataValue[];\n}\n\nexport class DataFormatMixin {\n\n /**\n * Get params for formatter\n */\n getDataParams(\n dataIndex: number,\n dataType?: SeriesDataType\n ): CallbackDataParams {\n\n const data = this.getData(dataType);\n const rawValue = this.getRawValue(dataIndex, dataType);\n const rawDataIndex = data.getRawIndex(dataIndex);\n const name = data.getName(dataIndex);\n const itemOpt = data.getRawDataItem(dataIndex);\n const style = data.getItemVisual(dataIndex, 'style');\n const color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill'] as ZRColor;\n const borderColor = style && style.stroke as ColorString;\n const mainType = this.mainType;\n const isSeries = mainType === 'series';\n const userOutput = data.userOutput && data.userOutput.get();\n\n return {\n componentType: mainType,\n componentSubType: this.subType,\n componentIndex: this.componentIndex,\n seriesType: isSeries ? this.subType : null,\n seriesIndex: (this as any).seriesIndex,\n seriesId: isSeries ? this.id : null,\n seriesName: isSeries ? this.name : null,\n name: name,\n dataIndex: rawDataIndex,\n data: itemOpt,\n dataType: dataType,\n value: rawValue,\n color: color,\n borderColor: borderColor,\n dimensionNames: userOutput ? userOutput.fullDimensions : null,\n encode: userOutput ? userOutput.encode : null,\n\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: ['seriesName', 'name', 'value']\n };\n }\n\n /**\n * Format label\n * @param dataIndex\n * @param status 'normal' by default\n * @param dataType\n * @param labelDimIndex Only used in some chart that\n * use formatter in different dimensions, like radar.\n * @param formatter Formatter given outside.\n * @return return null/undefined if no formatter\n */\n getFormattedLabel(\n dataIndex: number,\n status?: DisplayState,\n dataType?: SeriesDataType,\n labelDimIndex?: number,\n formatter?: string | ((params: object) => string),\n extendParams?: {\n interpolatedValue: InterpolatableValue\n }\n ): string {\n status = status || 'normal';\n const data = this.getData(dataType);\n\n const params = this.getDataParams(dataIndex, dataType);\n\n if (extendParams) {\n params.value = extendParams.interpolatedValue;\n }\n\n if (labelDimIndex != null && zrUtil.isArray(params.value)) {\n params.value = params.value[labelDimIndex];\n }\n\n if (!formatter) {\n const itemModel = data.getItemModel(dataIndex);\n // @ts-ignore\n formatter = itemModel.get(status === 'normal'\n ? ['label', 'formatter']\n : [status, 'label', 'formatter']\n );\n }\n\n if (typeof formatter === 'function') {\n params.status = status;\n params.dimensionIndex = labelDimIndex;\n return formatter(params);\n }\n else if (typeof formatter === 'string') {\n const str = formatTpl(formatter, params);\n\n // Support 'aaa{@[3]}bbb{@product}ccc'.\n // Do not support '}' in dim name util have to.\n return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr: string) {\n const len = dimStr.length;\n\n let dimLoose: DimensionLoose = dimStr;\n if (dimLoose.charAt(0) === '[' && dimLoose.charAt(len - 1) === ']') {\n dimLoose = +dimLoose.slice(1, len - 1); // Also support: '[]' => 0\n if (__DEV__) {\n if (isNaN(dimLoose)) {\n error(`Invalide label formatter: @${dimStr}, only support @[0], @[1], @[2], ...`);\n }\n }\n }\n\n let val = retrieveRawValue(data, dataIndex, dimLoose) as OptionDataValue;\n\n if (extendParams && zrUtil.isArray(extendParams.interpolatedValue)) {\n const dimIndex = data.getDimensionIndex(dimLoose);\n if (dimIndex >= 0) {\n val = extendParams.interpolatedValue[dimIndex];\n }\n }\n\n return val != null ? val + '' : '';\n });\n }\n }\n\n /**\n * Get raw value in option\n */\n getRawValue(\n idx: number,\n dataType?: SeriesDataType\n ): unknown {\n return retrieveRawValue(this.getData(dataType), idx);\n }\n\n /**\n * Should be implemented.\n * @param {number} dataIndex\n * @param {boolean} [multipleSeries=false]\n * @param {string} [dataType]\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: string\n ): TooltipFormatResult {\n // Empty function\n return;\n }\n};\n\ntype TooltipFormatResult =\n // If `string`, means `TooltipFormatResultLegacyObject['html']`\n string\n // | TooltipFormatResultLegacyObject\n | TooltipMarkupBlockFragment;\n\n// PENDING: previously we accept this type when calling `formatTooltip`,\n// but guess little chance has been used outside. Do we need to backward\n// compat it?\n// type TooltipFormatResultLegacyObject = {\n// // `html` means the markup language text, either in 'html' or 'richText'.\n// // The name `html` is not appropriate becuase in 'richText' it is not a HTML\n// // string. But still support it for backward compat.\n// html: string;\n// markers: Dictionary;\n// };\n\n/**\n * For backward compat, normalize the return from `formatTooltip`.\n */\nexport function normalizeTooltipFormatResult(\n result: TooltipFormatResult\n // markersExisting: Dictionary\n): {\n // If `markupFragment` exists, `markupText` should be ignored.\n markupFragment: TooltipMarkupBlockFragment;\n // Can be `null`/`undefined`, means no tooltip.\n markupText: string;\n // Merged with `markersExisting`.\n // markers: Dictionary;\n} {\n let markupText;\n // let markers: Dictionary;\n let markupFragment: TooltipMarkupBlockFragment;\n if (zrUtil.isObject(result)) {\n if ((result as TooltipMarkupBlockFragment).type) {\n markupFragment = result as TooltipMarkupBlockFragment;\n }\n else {\n if (__DEV__) {\n console.warn('The return type of `formatTooltip` is not supported: ' + makePrintable(result));\n }\n }\n // else {\n // markupText = (result as TooltipFormatResultLegacyObject).html;\n // markers = (result as TooltipFormatResultLegacyObject).markers;\n // if (markersExisting) {\n // markers = zrUtil.merge(markersExisting, markers);\n // }\n // }\n }\n else {\n markupText = result;\n }\n\n return {\n markupText: markupText,\n // markers: markers || markersExisting,\n markupFragment: markupFragment\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {assert, isArray} from 'zrender/src/core/util';\nimport SeriesModel from '../model/Series';\nimport { Pipeline } from './Scheduler';\nimport { Payload } from '../util/types';\nimport SeriesData from '../data/SeriesData';\n\n\nexport interface TaskContext {\n outputData?: SeriesData;\n data?: SeriesData;\n payload?: Payload;\n model?: SeriesModel;\n};\n\nexport type TaskResetCallback = (\n this: Task, context: Ctx\n) => TaskResetCallbackReturn;\nexport type TaskResetCallbackReturn =\n void\n | (TaskProgressCallback | TaskProgressCallback[])\n | {\n forceFirstProgress?: boolean\n progress: TaskProgressCallback | TaskProgressCallback[]\n };\nexport type TaskProgressCallback = (\n this: Task, params: TaskProgressParams, context: Ctx\n) => void;\nexport type TaskProgressParams = {\n start: number, end: number, count: number, next?: TaskDataIteratorNext\n};\nexport type TaskPlanCallback = (\n this: Task, context: Ctx\n) => TaskPlanCallbackReturn;\nexport type TaskPlanCallbackReturn = 'reset' | false | null | undefined;\nexport type TaskCountCallback = (\n this: Task, context: Ctx\n) => number;\nexport type TaskOnDirtyCallback = (\n this: Task, context: Ctx\n) => void;\n\ntype TaskDataIteratorNext = () => number;\ntype TaskDataIterator = {\n reset: (s: number, e: number, sStep: number, sCount: number) => void,\n next?: TaskDataIteratorNext\n};\n\ntype TaskDefineParam = {\n reset?: TaskResetCallback,\n // Returns 'reset' indicate reset immediately\n plan?: TaskPlanCallback,\n // count is used to determine data task.\n count?: TaskCountCallback,\n onDirty?: TaskOnDirtyCallback\n};\nexport type PerformArgs = {\n step?: number,\n skip?: boolean,\n modBy?: number,\n modDataCount?: number\n};\n\n/**\n * @param {Object} define\n * @return See the return of `createTask`.\n */\nexport function createTask(\n define: TaskDefineParam\n): Task {\n return new Task(define);\n}\n\nexport class Task {\n\n private _reset: TaskResetCallback;\n private _plan: TaskPlanCallback;\n private _count: TaskCountCallback;\n private _onDirty: TaskOnDirtyCallback;\n private _progress: TaskProgressCallback | TaskProgressCallback[];\n private _callingProgress: TaskProgressCallback;\n\n private _dirty: boolean;\n private _modBy: number;\n private _modDataCount: number;\n private _upstream: Task;\n private _downstream: Task;\n private _dueEnd: number;\n private _outputDueEnd: number;\n private _settedOutputEnd: number;\n private _dueIndex: number;\n private _disposed: boolean;\n\n // Injected in schedular\n __pipeline: Pipeline;\n __idxInPipeline: number;\n __block: boolean;\n\n // Context must be specified implicitly, to\n // avoid miss update context when model changed.\n context: Ctx;\n\n constructor(define: TaskDefineParam) {\n define = define || {};\n\n this._reset = define.reset;\n this._plan = define.plan;\n this._count = define.count;\n this._onDirty = define.onDirty;\n\n this._dirty = true;\n }\n\n /**\n * @param step Specified step.\n * @param skip Skip customer perform call.\n * @param modBy Sampling window size.\n * @param modDataCount Sampling count.\n * @return whether unfinished.\n */\n perform(performArgs?: PerformArgs): boolean {\n const upTask = this._upstream;\n const skip = performArgs && performArgs.skip;\n\n // TODO some refactor.\n // Pull data. Must pull data each time, because context.data\n // may be updated by Series.setData.\n if (this._dirty && upTask) {\n const context = this.context;\n context.data = context.outputData = upTask.context.outputData;\n }\n\n if (this.__pipeline) {\n this.__pipeline.currentTask = this;\n }\n\n let planResult;\n if (this._plan && !skip) {\n planResult = this._plan(this.context);\n }\n\n // Support sharding by mod, which changes the render sequence and makes the rendered graphic\n // elements uniformed distributed when progress, especially when moving or zooming.\n const lastModBy = normalizeModBy(this._modBy);\n const lastModDataCount = this._modDataCount || 0;\n const modBy = normalizeModBy(performArgs && performArgs.modBy);\n const modDataCount = performArgs && performArgs.modDataCount || 0;\n if (lastModBy !== modBy || lastModDataCount !== modDataCount) {\n planResult = 'reset';\n }\n\n function normalizeModBy(val: number) {\n !(val >= 1) && (val = 1); // jshint ignore:line\n return val;\n }\n\n let forceFirstProgress;\n if (this._dirty || planResult === 'reset') {\n this._dirty = false;\n forceFirstProgress = this._doReset(skip);\n }\n\n this._modBy = modBy;\n this._modDataCount = modDataCount;\n\n const step = performArgs && performArgs.step;\n\n if (upTask) {\n if (__DEV__) {\n assert(upTask._outputDueEnd != null);\n }\n this._dueEnd = upTask._outputDueEnd;\n }\n // DataTask or overallTask\n else {\n if (__DEV__) {\n assert(!this._progress || this._count);\n }\n this._dueEnd = this._count ? this._count(this.context) : Infinity;\n }\n\n // Note: Stubs, that its host overall task let it has progress, has progress.\n // If no progress, pass index from upstream to downstream each time plan called.\n if (this._progress) {\n const start = this._dueIndex;\n const end = Math.min(\n step != null ? this._dueIndex + step : Infinity,\n this._dueEnd\n );\n\n if (!skip && (forceFirstProgress || start < end)) {\n const progress = this._progress;\n if (isArray(progress)) {\n for (let i = 0; i < progress.length; i++) {\n this._doProgress(progress[i], start, end, modBy, modDataCount);\n }\n }\n else {\n this._doProgress(progress, start, end, modBy, modDataCount);\n }\n }\n\n this._dueIndex = end;\n // If no `outputDueEnd`, assume that output data and\n // input data is the same, so use `dueIndex` as `outputDueEnd`.\n const outputDueEnd = this._settedOutputEnd != null\n ? this._settedOutputEnd : end;\n\n if (__DEV__) {\n // ??? Can not rollback.\n assert(outputDueEnd >= this._outputDueEnd);\n }\n\n this._outputDueEnd = outputDueEnd;\n }\n else {\n // (1) Some overall task has no progress.\n // (2) Stubs, that its host overall task do not let it has progress, has no progress.\n // This should always be performed so it can be passed to downstream.\n this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null\n ? this._settedOutputEnd : this._dueEnd;\n }\n\n return this.unfinished();\n }\n\n dirty(): void {\n this._dirty = true;\n this._onDirty && this._onDirty(this.context);\n }\n\n private _doProgress(\n progress: TaskProgressCallback,\n start: number,\n end: number,\n modBy: number,\n modDataCount: number\n ): void {\n iterator.reset(start, end, modBy, modDataCount);\n this._callingProgress = progress;\n this._callingProgress({\n start: start, end: end, count: end - start, next: iterator.next\n }, this.context);\n }\n\n private _doReset(skip: boolean): boolean {\n this._dueIndex = this._outputDueEnd = this._dueEnd = 0;\n this._settedOutputEnd = null;\n\n let progress: TaskResetCallbackReturn;\n let forceFirstProgress: boolean;\n\n if (!skip && this._reset) {\n progress = this._reset(this.context);\n if (progress && (progress as any).progress) {\n forceFirstProgress = (progress as any).forceFirstProgress;\n progress = (progress as any).progress;\n }\n // To simplify no progress checking, array must has item.\n if (isArray(progress) && !progress.length) {\n progress = null;\n }\n }\n\n this._progress = progress as TaskProgressCallback;\n this._modBy = this._modDataCount = null;\n\n const downstream = this._downstream;\n downstream && downstream.dirty();\n\n return forceFirstProgress;\n }\n\n unfinished(): boolean {\n return this._progress && this._dueIndex < this._dueEnd;\n }\n\n /**\n * @param downTask The downstream task.\n * @return The downstream task.\n */\n pipe(downTask: Task): void {\n if (__DEV__) {\n assert(downTask && !downTask._disposed && downTask !== this);\n }\n\n // If already downstream, do not dirty downTask.\n if (this._downstream !== downTask || this._dirty) {\n this._downstream = downTask;\n downTask._upstream = this;\n downTask.dirty();\n }\n }\n\n dispose(): void {\n if (this._disposed) {\n return;\n }\n\n this._upstream && (this._upstream._downstream = null);\n this._downstream && (this._downstream._upstream = null);\n\n this._dirty = false;\n this._disposed = true;\n }\n\n getUpstream(): Task {\n return this._upstream;\n }\n\n getDownstream(): Task {\n return this._downstream;\n }\n\n setOutputEnd(end: number): void {\n // This only happend in dataTask, dataZoom, map, currently.\n // where dataZoom do not set end each time, but only set\n // when reset. So we should record the setted end, in case\n // that the stub of dataZoom perform again and earse the\n // setted end by upstream.\n this._outputDueEnd = this._settedOutputEnd = end;\n }\n\n}\n\nconst iterator: TaskDataIterator = (function () {\n\n let end: number;\n let current: number;\n let modBy: number;\n let modDataCount: number;\n let winCount: number;\n\n const it: TaskDataIterator = {\n reset: function (s: number, e: number, sStep: number, sCount: number): void {\n current = s;\n end = e;\n\n modBy = sStep;\n modDataCount = sCount;\n winCount = Math.ceil(modDataCount / modBy);\n\n it.next = (modBy > 1 && modDataCount > 0) ? modNext : sequentialNext;\n }\n };\n\n return it;\n\n function sequentialNext(): number {\n return current < end ? current++ : null;\n }\n\n function modNext(): number {\n const dataIndex = (current % winCount) * modBy + Math.ceil(current / winCount);\n const result = current >= end\n ? null\n : dataIndex < modDataCount\n ? dataIndex\n // If modDataCount is smaller than data.count() (consider `appendData` case),\n // Use normal linear rendering mode.\n : current;\n current++;\n return result;\n }\n})();\n\n\n\n///////////////////////////////////////////////////////////\n// For stream debug (Should be commented out after used!)\n// @usage: printTask(this, 'begin');\n// @usage: printTask(this, null, {someExtraProp});\n// @usage: Use `__idxInPipeline` as conditional breakpiont.\n//\n// window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void {\n// window.ecTaskUID == null && (window.ecTaskUID = 0);\n// task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`);\n// task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`);\n// let props = [];\n// if (task.__pipeline) {\n// let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`;\n// props.push({text: '__idxInPipeline/total', value: val});\n// } else {\n// let stubCount = 0;\n// task.agentStubMap.each(() => stubCount++);\n// props.push({text: 'idx', value: `overall (stubs: ${stubCount})`});\n// }\n// props.push({text: 'uid', value: task.uidDebug});\n// if (task.__pipeline) {\n// props.push({text: 'pipelineId', value: task.__pipeline.id});\n// task.agent && props.push(\n// {text: 'stubFor', value: task.agent.uidDebug}\n// );\n// }\n// props.push(\n// {text: 'dirty', value: task._dirty},\n// {text: 'dueIndex', value: task._dueIndex},\n// {text: 'dueEnd', value: task._dueEnd},\n// {text: 'outputDueEnd', value: task._outputDueEnd}\n// );\n// if (extra) {\n// Object.keys(extra).forEach(key => {\n// props.push({text: key, value: extra[key]});\n// });\n// }\n// let args = ['color: blue'];\n// let msg = `%c[${prefix || 'T'}] %c` + props.map(item => (\n// args.push('color: green', 'color: red'),\n// `${item.text}: %c${item.value}`\n// )).join('%c, ');\n// console.log.apply(console, [msg].concat(args));\n// // console.log(this);\n// };\n// window.printPipeline = function (task: any, prefix: string) {\n// const pipeline = task.__pipeline;\n// let currTask = pipeline.head;\n// while (currTask) {\n// window.printTask(currTask, prefix);\n// currTask = currTask._downstream;\n// }\n// };\n// window.showChain = function (chainHeadTask) {\n// var chain = [];\n// var task = chainHeadTask;\n// while (task) {\n// chain.push({\n// task: task,\n// up: task._upstream,\n// down: task._downstream,\n// idxInPipeline: task.__idxInPipeline\n// });\n// task = task._downstream;\n// }\n// return chain;\n// };\n// window.findTaskInChain = function (task, chainHeadTask) {\n// let chain = window.showChain(chainHeadTask);\n// let result = [];\n// for (let i = 0; i < chain.length; i++) {\n// let chainItem = chain[i];\n// if (chainItem.task === task) {\n// result.push(i);\n// }\n// }\n// return result;\n// };\n// window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) {\n// let chainA = window.showChain(chainHeadTaskA);\n// for (let i = 0; i < chainA.length; i++) {\n// console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB));\n// }\n// };\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { ParsedValue, DimensionType } from '../../util/types';\nimport { parseDate, numericToNumber } from '../../util/number';\nimport { createHashMap, trim, hasOwn } from 'zrender/src/core/util';\nimport { throwError } from '../../util/log';\n\n\n/**\n * Convert raw the value in to inner value in List.\n *\n * [Performance sensitive]\n *\n * [Caution]: this is the key logic of user value parser.\n * For backward compatibiliy, do not modify it until have to!\n */\nexport function parseDataValue(\n value: any,\n // For high performance, do not omit the second param.\n opt: {\n // Default type: 'number'. There is no 'unknown' type. That is, a string\n // will be parsed to NaN if do not set `type` as 'ordinal'. It has been\n // the logic in `List.ts` for long time. Follow the same way if you need\n // to get same result as List did from a raw value.\n type?: DimensionType\n }\n): ParsedValue {\n // Performance sensitive.\n const dimType = opt && opt.type;\n if (dimType === 'ordinal') {\n // If given value is a category string\n return value;\n }\n\n if (dimType === 'time'\n // spead up when using timestamp\n && typeof value !== 'number'\n && value != null\n && value !== '-'\n ) {\n value = +parseDate(value);\n }\n\n // dimType defaults 'number'.\n // If dimType is not ordinal and value is null or undefined or NaN or '-',\n // parse to NaN.\n // number-like string (like ' 123 ') can be converted to a number.\n // where null/undefined or other string will be converted to NaN.\n return (value == null || value === '')\n ? NaN\n // If string (like '-'), using '+' parse to NaN\n // If object, also parse to NaN\n : +value;\n};\n\n\n\n\nexport type RawValueParserType = 'number' | 'time' | 'trim';\ntype RawValueParser = (val: unknown) => unknown;\nconst valueParserMap = createHashMap({\n 'number': function (val): number {\n // Do not use `numericToNumber` here. We have by defualt `numericToNumber`.\n // Here the number parser can have loose rule:\n // enable to cut suffix: \"120px\" => 120, \"14%\" => 14.\n return parseFloat(val as string);\n },\n 'time': function (val): number {\n // return timestamp.\n return +parseDate(val);\n },\n 'trim': function (val) {\n return typeof val === 'string' ? trim(val) : val;\n }\n});\n\nexport function getRawValueParser(type: RawValueParserType): RawValueParser {\n return valueParserMap.get(type);\n}\n\n\n\n\nexport interface FilterComparator {\n evaluate(val: unknown): boolean;\n}\n\nconst ORDER_COMPARISON_OP_MAP: {\n [key in OrderRelationOperator]: ((lval: unknown, rval: unknown) => boolean)\n} = {\n lt: (lval, rval) => lval < rval,\n lte: (lval, rval) => lval <= rval,\n gt: (lval, rval) => lval > rval,\n gte: (lval, rval) => lval >= rval\n};\n\nclass FilterOrderComparator implements FilterComparator {\n private _rvalFloat: number;\n private _opFn: (lval: unknown, rval: unknown) => boolean;\n constructor(op: OrderRelationOperator, rval: unknown) {\n if (typeof rval !== 'number') {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'rvalue of \"<\", \">\", \"<=\", \">=\" can only be number in filter.';\n }\n throwError(errMsg);\n }\n this._opFn = ORDER_COMPARISON_OP_MAP[op];\n this._rvalFloat = numericToNumber(rval);\n }\n // Performance sensitive.\n evaluate(lval: unknown): boolean {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n return typeof lval === 'number'\n ? this._opFn(lval, this._rvalFloat)\n : this._opFn(numericToNumber(lval), this._rvalFloat);\n }\n}\n\nexport class SortOrderComparator {\n private _incomparable: number;\n private _resultLT: -1 | 1;\n /**\n * @param order by defualt: 'asc'\n * @param incomparable by defualt: Always on the tail.\n * That is, if 'asc' => 'max', if 'desc' => 'min'\n * See the definition of \"incomparable\" in [SORT_COMPARISON_RULE]\n */\n constructor(order: 'asc' | 'desc', incomparable: 'min' | 'max') {\n const isDesc = order === 'desc';\n this._resultLT = isDesc ? 1 : -1;\n if (incomparable == null) {\n incomparable = isDesc ? 'min' : 'max';\n }\n this._incomparable = incomparable === 'min' ? -Infinity : Infinity;\n }\n // See [SORT_COMPARISON_RULE].\n // Performance sensitive.\n evaluate(lval: unknown, rval: unknown): -1 | 0 | 1 {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n const lvalTypeof = typeof lval;\n const rvalTypeof = typeof rval;\n let lvalFloat = lvalTypeof === 'number' ? lval : numericToNumber(lval);\n let rvalFloat = rvalTypeof === 'number' ? rval : numericToNumber(rval);\n const lvalNotNumeric = isNaN(lvalFloat as number);\n const rvalNotNumeric = isNaN(rvalFloat as number);\n\n if (lvalNotNumeric) {\n lvalFloat = this._incomparable;\n }\n if (rvalNotNumeric) {\n rvalFloat = this._incomparable;\n }\n if (lvalNotNumeric && rvalNotNumeric) {\n const lvalIsStr = lvalTypeof === 'string';\n const rvalIsStr = rvalTypeof === 'string';\n if (lvalIsStr) {\n lvalFloat = rvalIsStr ? lval : 0;\n }\n if (rvalIsStr) {\n rvalFloat = lvalIsStr ? rval : 0;\n }\n }\n\n return lvalFloat < rvalFloat ? this._resultLT\n : lvalFloat > rvalFloat ? (-this._resultLT as -1 | 1)\n : 0;\n }\n}\n\nclass FilterEqualityComparator implements FilterComparator {\n private _isEQ: boolean;\n private _rval: unknown;\n private _rvalTypeof: string;\n private _rvalFloat: number;\n constructor(isEq: boolean, rval: unknown) {\n this._rval = rval;\n this._isEQ = isEq;\n this._rvalTypeof = typeof rval;\n this._rvalFloat = numericToNumber(rval);\n }\n // Performance sensitive.\n evaluate(lval: unknown): boolean {\n let eqResult = lval === this._rval;\n if (!eqResult) {\n const lvalTypeof = typeof lval;\n if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {\n eqResult = numericToNumber(lval) === this._rvalFloat;\n }\n }\n return this._isEQ ? eqResult : !eqResult;\n }\n}\n\ntype OrderRelationOperator = 'lt' | 'lte' | 'gt' | 'gte';\nexport type RelationalOperator = OrderRelationOperator | 'eq' | 'ne';\n\n/**\n * [FILTER_COMPARISON_RULE]\n * `lt`|`lte`|`gt`|`gte`:\n * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.\n * `eq`:\n * + If same type, compare with `===`.\n * + If there is one number, convert to number (`numericToNumber`) to compare.\n * + Else return `false`.\n * `ne`:\n * + Not `eq`.\n *\n *\n * [SORT_COMPARISON_RULE]\n * All the values are grouped into three categories:\n * + \"numeric\" (number and numeric string)\n * + \"non-numeric-string\" (string that excluding numeric string)\n * + \"others\"\n * \"numeric\" vs \"numeric\": values are ordered by number order.\n * \"non-numeric-string\" vs \"non-numeric-string\": values are ordered by ES spec (#sec-abstract-relational-comparison).\n * \"others\" vs \"others\": do not change order (always return 0).\n * \"numeric\" vs \"non-numeric-string\": \"non-numeric-string\" is treated as \"incomparable\".\n * \"number\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"non-numeric-string\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"incomparable\" will be seen as -Infinity or Infinity (depends on the settings).\n * MEMO:\n * non-numeric string sort make sence when need to put the items with the same tag together.\n * But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,\n * So we treat \"numeric-string\" sorted by number order rather than string comparison.\n *\n *\n * [CHECK_LIST_OF_THE_RULE_DESIGN]\n * + Do not support string comparison until required. And also need to\n * void the misleading of \"2\" > \"12\".\n * + Should avoid the misleading case:\n * `\" 22 \" gte \"22\"` is `true` but `\" 22 \" eq \"22\"` is `false`.\n * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...\n * + Only \"numeric\" can be converted to comparable number, otherwise converted to NaN.\n * See `util/number.ts#numericToNumber`.\n *\n * @return If `op` is not `RelationalOperator`, return null;\n */\nexport function createFilterComparator(\n op: string,\n rval?: unknown\n): FilterComparator {\n return (op === 'eq' || op === 'ne')\n ? new FilterEqualityComparator(op === 'eq', rval)\n : hasOwn(ORDER_COMPARISON_OP_MAP, op)\n ? new FilterOrderComparator(op as OrderRelationOperator, rval)\n : null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Dictionary, DimensionDefinitionLoose,\n SourceFormat, DimensionDefinition, DimensionIndex,\n OptionDataValue, DimensionLoose, DimensionName, ParsedValue,\n SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_ARRAY_ROWS,\n OptionSourceDataObjectRows, OptionSourceDataArrayRows\n} from '../../util/types';\nimport { normalizeToArray } from '../../util/model';\nimport {\n createHashMap, bind, each, hasOwn, map, clone, isObject, extend\n} from 'zrender/src/core/util';\nimport {\n getRawSourceItemGetter, getRawSourceDataCounter, getRawSourceValueGetter\n} from './dataProvider';\nimport { parseDataValue } from './dataValueHelper';\nimport { consoleLog, makePrintable, throwError } from '../../util/log';\nimport { createSource, Source, SourceMetaRawOption, detectSourceFormat } from '../Source';\n\n\nexport type PipedDataTransformOption = DataTransformOption[];\nexport type DataTransformType = string;\nexport type DataTransformConfig = unknown;\n\nexport interface DataTransformOption {\n type: DataTransformType;\n config: DataTransformConfig;\n // Print the result via `console.log` when transform performed. Only work in dev mode for debug.\n print?: boolean;\n}\n\nexport interface ExternalDataTransform {\n // Must include namespace like: 'ecStat:regression'\n type: string;\n __isBuiltIn?: boolean;\n transform: (\n param: ExternalDataTransformParam\n ) => ExternalDataTransformResultItem | ExternalDataTransformResultItem[];\n}\n\ninterface ExternalDataTransformParam {\n // This is the first source in upstreamList. In most cases,\n // there is only one upstream source.\n upstream: ExternalSource;\n upstreamList: ExternalSource[];\n config: TO['config'];\n}\nexport interface ExternalDataTransformResultItem {\n /**\n * If `data` is null/undefined, inherit upstream data.\n */\n data: OptionSourceDataArrayRows | OptionSourceDataObjectRows;\n /**\n * A `transform` can optionally return a dimensions definition.\n * The rule:\n * If this `transform result` have different dimensions from the upstream, it should return\n * a new dimension definition. For example, this transform inherit the upstream data totally\n * but add a extra dimension.\n * Otherwise, do not need to return that dimension definition. echarts will inherit dimension\n * definition from the upstream.\n */\n dimensions?: DimensionDefinitionLoose[];\n}\nexport type DataTransformDataItem = ExternalDataTransformResultItem['data'][number];\nexport interface ExternalDimensionDefinition extends Partial {\n // Mandatory\n index: DimensionIndex;\n}\n\n/**\n * TODO: disable writable.\n * This structure will be exposed to users.\n */\nexport class ExternalSource {\n /**\n * [Caveat]\n * This instance is to be exposed to users.\n * (1) DO NOT mount private members on this instance directly.\n * If we have to use private members, we can make them in closure or use `makeInner`.\n * (2) \"soruce header count\" is not provided to transform, because it's complicated to manage\n * header and dimensions definition in each transfrom. Source header are all normalized to\n * dimensions definitions in transforms and their downstreams.\n */\n\n sourceFormat: SourceFormat;\n\n getRawData(): Source['data'] {\n // Only built-in transform available.\n throw new Error('not supported');\n }\n\n getRawDataItem(dataIndex: number): DataTransformDataItem {\n // Only built-in transform available.\n throw new Error('not supported');\n }\n\n cloneRawData(): Source['data'] {\n return;\n }\n\n /**\n * @return If dimension not found, return null/undefined.\n */\n getDimensionInfo(dim: DimensionLoose): ExternalDimensionDefinition {\n return;\n }\n\n /**\n * dimensions defined if and only if either:\n * (a) dataset.dimensions are declared.\n * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).\n * If dimensions are defined, `dimensionInfoAll` is corresponding to\n * the defined dimensions.\n * Otherwise, `dimensionInfoAll` is determined by data columns.\n * @return Always return an array (even empty array).\n */\n cloneAllDimensionInfo(): ExternalDimensionDefinition[] {\n return;\n }\n\n count(): number {\n return;\n }\n\n /**\n * Only support by dimension index.\n * No need to support by dimension name in transform function,\n * becuase transform function is not case-specific, no need to use name literally.\n */\n retrieveValue(dataIndex: number, dimIndex: DimensionIndex): OptionDataValue {\n return;\n }\n\n retrieveValueFromItem(dataItem: DataTransformDataItem, dimIndex: DimensionIndex): OptionDataValue {\n return;\n }\n\n convertValue(rawVal: unknown, dimInfo: ExternalDimensionDefinition): ParsedValue {\n return parseDataValue(rawVal, dimInfo);\n }\n}\n\n\nfunction createExternalSource(internalSource: Source, externalTransform: ExternalDataTransform): ExternalSource {\n const extSource = new ExternalSource();\n\n const data = internalSource.data;\n const sourceFormat = extSource.sourceFormat = internalSource.sourceFormat;\n const sourceHeaderCount = internalSource.startIndex;\n\n let errMsg = '';\n if (internalSource.seriesLayoutBy !== SERIES_LAYOUT_BY_COLUMN) {\n // For the logic simplicity in transformer, only 'culumn' is\n // supported in data transform. Otherwise, the `dimensionsDefine`\n // might be detected by 'row', which probably confuses users.\n if (__DEV__) {\n errMsg = '`seriesLayoutBy` of upstream dataset can only be \"column\" in data transform.';\n }\n throwError(errMsg);\n }\n\n // [MEMO]\n // Create a new dimensions structure for exposing.\n // Do not expose all dimension info to users directly.\n // Becuase the dimension is probably auto detected from data and not might reliable.\n // Should not lead the transformers to think that is relialbe and return it.\n // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n const dimensions = [] as ExternalDimensionDefinition[];\n const dimsByName = {} as Dictionary;\n\n const dimsDef = internalSource.dimensionsDefine;\n if (dimsDef) {\n each(dimsDef, function (dimDef, idx) {\n const name = dimDef.name;\n const dimDefExt = {\n index: idx,\n name: name,\n displayName: dimDef.displayName\n };\n dimensions.push(dimDefExt);\n // Users probably not sepcify dimension name. For simplicity, data transform\n // do not generate dimension name.\n if (name != null) {\n // Dimension name should not be duplicated.\n // For simplicity, data transform forbid name duplication, do not generate\n // new name like module `completeDimensions.ts` did, but just tell users.\n let errMsg = '';\n if (hasOwn(dimsByName, name)) {\n if (__DEV__) {\n errMsg = 'dimension name \"' + name + '\" duplicated.';\n }\n throwError(errMsg);\n }\n dimsByName[name] = dimDefExt;\n }\n });\n }\n // If dimension definitions are not defined and can not be detected.\n // e.g., pure data `[[11, 22], ...]`.\n else {\n for (let i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) {\n // Do not generete name or anything others. The consequence process in\n // `transform` or `series` probably have there own name generation strategry.\n dimensions.push({ index: i });\n }\n }\n\n // Implement public methods:\n const rawItemGetter = getRawSourceItemGetter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n if (externalTransform.__isBuiltIn) {\n extSource.getRawDataItem = function (dataIndex) {\n return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex) as DataTransformDataItem;\n };\n extSource.getRawData = bind(getRawData, null, internalSource);\n }\n\n extSource.cloneRawData = bind(cloneRawData, null, internalSource);\n\n const rawCounter = getRawSourceDataCounter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n extSource.count = bind(rawCounter, null, data, sourceHeaderCount, dimensions);\n\n const rawValueGetter = getRawSourceValueGetter(sourceFormat);\n extSource.retrieveValue = function (dataIndex, dimIndex) {\n const rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex) as DataTransformDataItem;\n return retrieveValueFromItem(rawItem, dimIndex);\n };\n const retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) {\n if (dataItem == null) {\n return;\n }\n const dimDef = dimensions[dimIndex];\n // When `dimIndex` is `null`, `rawValueGetter` return the whole item.\n if (dimDef) {\n return rawValueGetter(dataItem, dimIndex, dimDef.name) as OptionDataValue;\n }\n };\n\n extSource.getDimensionInfo = bind(getDimensionInfo, null, dimensions, dimsByName);\n extSource.cloneAllDimensionInfo = bind(cloneAllDimensionInfo, null, dimensions);\n\n return extSource;\n}\n\nfunction getRawData(upstream: Source): Source['data'] {\n const sourceFormat = upstream.sourceFormat;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = '`getRawData` is not supported in source format ' + sourceFormat;\n }\n throwError(errMsg);\n }\n\n return upstream.data;\n}\n\nfunction cloneRawData(upstream: Source): Source['data'] {\n const sourceFormat = upstream.sourceFormat;\n const data = upstream.data;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = '`cloneRawData` is not supported in source format ' + sourceFormat;\n }\n throwError(errMsg);\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n const result = [];\n for (let i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push((data as OptionSourceDataArrayRows)[i].slice());\n }\n return result;\n }\n else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n const result = [];\n for (let i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(extend({}, (data as OptionSourceDataObjectRows)[i]));\n }\n return result;\n }\n}\n\nfunction getDimensionInfo(\n dimensions: ExternalDimensionDefinition[],\n dimsByName: Dictionary,\n dim: DimensionLoose\n): ExternalDimensionDefinition {\n if (dim == null) {\n return;\n }\n // Keep the same logic as `List::getDimension` did.\n if (typeof dim === 'number'\n // If being a number-like string but not being defined a dimension name.\n || (!isNaN(dim as any) && !hasOwn(dimsByName, dim))\n ) {\n return dimensions[dim as DimensionIndex];\n }\n else if (hasOwn(dimsByName, dim)) {\n return dimsByName[dim as DimensionName];\n }\n}\n\nfunction cloneAllDimensionInfo(dimensions: ExternalDimensionDefinition[]): ExternalDimensionDefinition[] {\n return clone(dimensions);\n}\n\n\nconst externalTransformMap = createHashMap();\n\nexport function registerExternalTransform(\n externalTransform: ExternalDataTransform\n): void {\n externalTransform = clone(externalTransform);\n let type = externalTransform.type;\n let errMsg = '';\n if (!type) {\n if (__DEV__) {\n errMsg = 'Must have a `type` when `registerTransform`.';\n }\n throwError(errMsg);\n }\n const typeParsed = type.split(':');\n if (typeParsed.length !== 2) {\n if (__DEV__) {\n errMsg = 'Name must include namespace like \"ns:regression\".';\n }\n throwError(errMsg);\n }\n // Namespace 'echarts:xxx' is official namespace, where the transforms should\n // be called directly via 'xxx' rather than 'echarts:xxx'.\n let isBuiltIn = false;\n if (typeParsed[0] === 'echarts') {\n type = typeParsed[1];\n isBuiltIn = true;\n }\n externalTransform.__isBuiltIn = isBuiltIn;\n externalTransformMap.set(type, externalTransform);\n}\n\nexport function applyDataTransform(\n rawTransOption: DataTransformOption | PipedDataTransformOption,\n sourceList: Source[],\n infoForPrint: { datasetIndex: number }\n): Source[] {\n const pipedTransOption: PipedDataTransformOption = normalizeToArray(rawTransOption);\n const pipeLen = pipedTransOption.length;\n\n let errMsg = '';\n if (!pipeLen) {\n if (__DEV__) {\n errMsg = 'If `transform` declared, it should at least contain one transform.';\n }\n throwError(errMsg);\n }\n\n for (let i = 0, len = pipeLen; i < len; i++) {\n const transOption = pipedTransOption[i];\n sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i);\n // piped transform only support single input, except the fist one.\n // piped transform only support single output, except the last one.\n if (i !== len - 1) {\n sourceList.length = Math.max(sourceList.length, 1);\n }\n }\n\n return sourceList;\n}\n\nfunction applySingleDataTransform(\n transOption: DataTransformOption,\n upSourceList: Source[],\n infoForPrint: { datasetIndex: number },\n // If `pipeIndex` is null/undefined, no piped transform.\n pipeIndex: number\n): Source[] {\n let errMsg = '';\n if (!upSourceList.length) {\n if (__DEV__) {\n errMsg = 'Must have at least one upstream dataset.';\n }\n throwError(errMsg);\n }\n if (!isObject(transOption)) {\n if (__DEV__) {\n errMsg = 'transform declaration must be an object rather than ' + typeof transOption + '.';\n }\n throwError(errMsg);\n }\n\n const transType = transOption.type;\n const externalTransform = externalTransformMap.get(transType);\n\n if (!externalTransform) {\n if (__DEV__) {\n errMsg = 'Can not find transform on type \"' + transType + '\".';\n }\n throwError(errMsg);\n }\n\n // Prepare source\n const extUpSourceList = map(upSourceList, upSource => createExternalSource(upSource, externalTransform));\n\n const resultList = normalizeToArray(\n externalTransform.transform({\n upstream: extUpSourceList[0],\n upstreamList: extUpSourceList,\n config: clone(transOption.config)\n })\n );\n\n if (__DEV__) {\n if (transOption.print) {\n const printStrArr = map(resultList, extSource => {\n const pipeIndexStr = pipeIndex != null ? ' === pipe index: ' + pipeIndex : '';\n return [\n '=== dataset index: ' + infoForPrint.datasetIndex + pipeIndexStr + ' ===',\n '- transform result data:',\n makePrintable(extSource.data),\n '- transform result dimensions:',\n makePrintable(extSource.dimensions)\n ].join('\\n');\n }).join('\\n');\n consoleLog(printStrArr);\n }\n }\n\n return map(resultList, function (result, resultIndex) {\n let errMsg = '';\n\n if (!isObject(result)) {\n if (__DEV__) {\n errMsg = 'A transform should not return some empty results.';\n }\n throwError(errMsg);\n }\n\n if (!result.data) {\n if (__DEV__) {\n errMsg = 'Transform result data should be not be null or undefined';\n }\n throwError(errMsg);\n }\n\n const sourceFormat = detectSourceFormat(result.data);\n if (!isSupportedSourceFormat(sourceFormat)) {\n if (__DEV__) {\n errMsg = 'Transform result data should be array rows or object rows.';\n }\n throwError(errMsg);\n }\n\n let resultMetaRawOption: SourceMetaRawOption;\n const firstUpSource = upSourceList[0];\n\n /**\n * Intuitively, the end users known the content of the original `dataset.source`,\n * calucating the transform result in mind.\n * Suppose the original `dataset.source` is:\n * ```js\n * [\n * ['product', '2012', '2013', '2014', '2015'],\n * ['AAA', 41.1, 30.4, 65.1, 53.3],\n * ['BBB', 86.5, 92.1, 85.7, 83.1],\n * ['CCC', 24.1, 67.2, 79.5, 86.4]\n * ]\n * ```\n * The dimension info have to be detected from the source data.\n * Some of the transformers (like filter, sort) will follow the dimension info\n * of upstream, while others use new dimensions (like aggregate).\n * Transformer can output a field `dimensions` to define the its own output dimensions.\n * We also allow transformers to ignore the output `dimensions` field, and\n * inherit the upstream dimensions definition. It can reduce the burden of handling\n * dimensions in transformers.\n *\n * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n */\n if (\n firstUpSource\n && resultIndex === 0\n // If transformer returns `dimensions`, it means that the transformer has different\n // dimensions definitions. We do not inherit anything from upstream.\n && !result.dimensions\n ) {\n const startIndex = firstUpSource.startIndex;\n // We copy the header of upstream to the result becuase:\n // (1) The returned data always does not contain header line and can not be used\n // as dimension-detection. In this case we can not use \"detected dimensions\" of\n // upstream directly, because it might be detected based on different `seriesLayoutBy`.\n // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.\n // So the original detected header should be add to the result, otherwise they can not be read.\n if (startIndex) {\n result.data = (firstUpSource.data as []).slice(0, startIndex)\n .concat(result.data as []);\n }\n\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: startIndex,\n dimensions: firstUpSource.metaRawOption.dimensions\n };\n }\n else {\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: 0,\n dimensions: result.dimensions\n };\n }\n\n return createSource(\n result.data,\n resultMetaRawOption,\n null\n );\n });\n}\n\nfunction isSupportedSourceFormat(sourceFormat: SourceFormat): boolean {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS || sourceFormat === SOURCE_FORMAT_OBJECT_ROWS;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { assert, clone, createHashMap, isFunction, keys, map, reduce } from 'zrender/src/core/util';\nimport {\n DimensionIndex,\n DimensionName,\n OptionDataItem,\n ParsedValue,\n ParsedValueNumeric\n} from '../util/types';\nimport { DataProvider } from './helper/dataProvider';\nimport { parseDataValue } from './helper/dataValueHelper';\nimport OrdinalMeta from './OrdinalMeta';\nimport { Source } from './Source';\n\nconst UNDEFINED = 'undefined';\n/* global Float64Array, Int32Array, Uint32Array, Uint16Array */\n\n// Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is\n// different from the Ctor of typed array.\nexport const CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array;\nexport const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array;\nexport const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array;\nexport const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array;\n/**\n * Multi dimensional data storage\n */\nconst dataCtors = {\n 'float': CtorFloat64Array,\n 'int': CtorInt32Array,\n // Ordinal data type can be string or int\n 'ordinal': Array,\n 'number': Array,\n 'time': CtorFloat64Array\n} as const;\n\nexport type DataStorageDimensionType = keyof typeof dataCtors;\n\ntype DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array;\ntype DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array;\ntype DataArrayLikeConstructor = typeof Array | DataTypedArrayConstructor;\n\n\ntype DataValueChunk = ArrayLike;\n\n// If Ctx not specified, use List as Ctx\ntype EachCb0 = (idx: number) => void;\ntype EachCb1 = (x: ParsedValue, idx: number) => void;\ntype EachCb2 = (x: ParsedValue, y: ParsedValue, idx: number) => void;\ntype EachCb = (...args: any) => void;\ntype FilterCb0 = (idx: number) => boolean;\ntype FilterCb1 = (x: ParsedValue, idx: number) => boolean;\ntype FilterCb = (...args: any) => boolean;\n// type MapArrayCb = (...args: any) => any;\ntype MapCb = (...args: any) => ParsedValue | ParsedValue[];\n\nexport type DimValueGetter = (\n this: DataStorage,\n dataItem: any,\n property: string,\n dataIndex: number,\n dimIndex: DimensionIndex\n) => ParsedValue;\n\nexport interface DataStorageDimensionDefine {\n /**\n * Default to be float.\n */\n type?: DataStorageDimensionType;\n\n /**\n * Only used in SOURCE_FORMAT_OBJECT_ROWS and SOURCE_FORMAT_KEYED_COLUMNS to retrieve value\n * by \"object property\".\n * For example, in `[{bb: 124, aa: 543}, ...]`, \"aa\" and \"bb\" is \"object property\".\n *\n * Deliberately name it as \"property\" rather than \"name\" to prevent it from been used in\n * SOURCE_FORMAT_ARRAY_ROWS, becuase if it comes from series, it probably\n * can not be shared by different series.\n */\n property?: string;\n\n /**\n * When using category axis.\n * Category strings will be collected and stored in ordinalMeta.categories.\n * And storage will store the index of categories.\n */\n ordinalMeta?: OrdinalMeta,\n\n /**\n * Offset for ordinal parsing and collect\n */\n ordinalOffset?: number\n}\n\nlet defaultDimValueGetters: {[sourceFormat: string]: DimValueGetter};\n\nfunction getIndicesCtor(rawCount: number): DataArrayLikeConstructor {\n // The possible max value in this._indicies is always this._rawCount despite of filtering.\n return rawCount > 65535 ? CtorUint32Array : CtorUint16Array;\n};\nfunction getInitialExtent(): [number, number] {\n return [Infinity, -Infinity];\n};\nfunction cloneChunk(originalChunk: DataValueChunk): DataValueChunk {\n const Ctor = originalChunk.constructor;\n // Only shallow clone is enough when Array.\n return Ctor === Array\n ? (originalChunk as Array).slice()\n : new (Ctor as DataTypedArrayConstructor)(originalChunk as DataTypedArray);\n}\n\nfunction prepareStorage(\n storage: DataValueChunk[],\n dimIdx: number,\n dimType: DataStorageDimensionType,\n end: number,\n append?: boolean\n): void {\n const DataCtor = dataCtors[dimType || 'float'];\n\n if (append) {\n const oldStore = storage[dimIdx];\n const oldLen = oldStore && oldStore.length;\n if (!(oldLen === end)) {\n const newStore = new DataCtor(end);\n // The cost of the copy is probably inconsiderable\n // within the initial chunkSize.\n for (let j = 0; j < oldLen; j++) {\n newStore[j] = oldStore[j];\n }\n storage[dimIdx] = newStore;\n }\n }\n else {\n storage[dimIdx] = new DataCtor(end);\n }\n};\n\n/**\n * Basically, DataStorage API keep immutable.\n */\nclass DataStorage {\n private _chunks: DataValueChunk[] = [];\n\n private _provider: DataProvider;\n\n // It will not be calculated util needed.\n private _rawExtent: [number, number][] = [];\n\n private _extent: [number, number][] = [];\n\n // Indices stores the indices of data subset after filtered.\n // This data subset will be used in chart.\n private _indices: ArrayLike;\n\n private _count: number = 0;\n private _rawCount: number = 0;\n\n private _dimensions: DataStorageDimensionDefine[];\n private _dimValueGetter: DimValueGetter;\n\n private _calcDimNameToIdx = createHashMap();\n\n defaultDimValueGetter: DimValueGetter;\n /**\n * Initialize from data\n * @param data source or data or data provider.\n */\n initData(\n provider: DataProvider,\n inputDimensions: DataStorageDimensionDefine[],\n dimValueGetter?: DimValueGetter\n ): void {\n if (__DEV__) {\n assert(\n isFunction(provider.getItem) && isFunction(provider.count),\n 'Inavlid data provider.'\n );\n }\n\n this._provider = provider;\n\n // Clear\n this._chunks = [];\n this._indices = null;\n this.getRawIndex = this._getRawIdxIdentity;\n\n const defaultGetter = this.defaultDimValueGetter =\n defaultDimValueGetters[provider.getSource().sourceFormat];\n // Default dim value getter\n this._dimValueGetter = dimValueGetter || defaultGetter;\n\n // Reset raw extent.\n this._rawExtent = [];\n this._dimensions = map(inputDimensions, dim => ({\n // Only pick these two props. Not leak other properties like orderMeta.\n type: dim.type,\n property: dim.property\n }));\n\n this._initDataFromProvider(0, provider.count());\n }\n\n getProvider(): DataProvider {\n return this._provider;\n }\n\n /**\n * Caution: even when a `source` instance owned by a series, the created data storage\n * may still be shared by different sereis (the source hash does not use all `source`\n * props, see `sourceManager`). In this case, the `source` props that are not used in\n * hash (like `source.dimensionDefine`) probably only belongs to a certain series and\n * thus should not be fetch here.\n */\n getSource(): Source {\n return this._provider.getSource();\n }\n\n /**\n * @caution Only used in dataStack.\n */\n ensureCalculationDimension(dimName: DimensionName, type: DataStorageDimensionType): DimensionIndex {\n const calcDimNameToIdx = this._calcDimNameToIdx;\n const dimensions = this._dimensions;\n\n let calcDimIdx = calcDimNameToIdx.get(dimName);\n if (calcDimIdx != null) {\n if (dimensions[calcDimIdx].type === type) {\n return calcDimIdx;\n }\n }\n else {\n calcDimIdx = dimensions.length;\n }\n\n dimensions[calcDimIdx] = { type: type };\n calcDimNameToIdx.set(dimName, calcDimIdx);\n\n this._chunks[calcDimIdx] = new dataCtors[type || 'float'](this._rawCount);\n this._rawExtent[calcDimIdx] = getInitialExtent();\n\n return calcDimIdx;\n }\n\n collectOrdinalMeta(\n dimIdx: number,\n ordinalMeta: OrdinalMeta\n ): void {\n const chunk = this._chunks[dimIdx];\n const dim = this._dimensions[dimIdx];\n const rawExtents = this._rawExtent;\n\n const offset = dim.ordinalOffset || 0;\n const len = chunk.length;\n\n if (offset === 0) {\n // We need to reset the rawExtent if collect is from start.\n // Because this dimension may be guessed as number and calcuating a wrong extent.\n rawExtents[dimIdx] = getInitialExtent();\n }\n\n const dimRawExtent = rawExtents[dimIdx];\n\n // Parse from previous data offset. len may be changed after appendData\n for (let i = offset; i < len; i++) {\n const val = (chunk as any)[i] = ordinalMeta.parseAndCollect(chunk[i]);\n dimRawExtent[0] = Math.min(val, dimRawExtent[0]);\n dimRawExtent[1] = Math.max(val, dimRawExtent[1]);\n }\n\n dim.ordinalMeta = ordinalMeta;\n dim.ordinalOffset = len;\n dim.type = 'ordinal'; // Force to be ordinal\n }\n\n getOrdinalMeta(dimIdx: number): OrdinalMeta {\n const dimInfo = this._dimensions[dimIdx];\n const ordinalMeta = dimInfo.ordinalMeta;\n return ordinalMeta;\n }\n\n getDimensionProperty(dimIndex: DimensionIndex): DataStorageDimensionDefine['property'] {\n const item = this._dimensions[dimIndex];\n return item && item.property;\n }\n\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n appendData(data: ArrayLike): number[] {\n if (__DEV__) {\n assert(!this._indices, 'appendData can only be called on raw data.');\n }\n\n const provider = this._provider;\n const start = this.count();\n provider.appendData(data);\n let end = provider.count();\n if (!provider.persistent) {\n end += start;\n }\n\n if (start < end) {\n this._initDataFromProvider(start, end, true);\n }\n\n return [start, end];\n }\n\n appendValues(values: any[][], minFillLen?: number): { start: number; end: number } {\n const storage = this._chunks;\n const dimensions = this._dimensions;\n const dimLen = dimensions.length;\n const rawExtent = this._rawExtent;\n\n const start = this.count();\n const end = start + Math.max(values.length, minFillLen || 0);\n\n for (let i = 0; i < dimLen; i++) {\n const dim = dimensions[i];\n prepareStorage(storage, i, dim.type, end, true);\n }\n\n const emptyDataItem: number[] = [];\n for (let idx = start; idx < end; idx++) {\n const sourceIdx = idx - start;\n // Store the data by dimensions\n for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n const dim = dimensions[dimIdx];\n const val = defaultDimValueGetters.arrayRows.call(\n this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx\n ) as ParsedValueNumeric;\n (storage[dimIdx] as any)[idx] = val;\n\n const dimRawExtent = rawExtent[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n }\n\n this._rawCount = this._count = end;\n\n return {start, end};\n }\n\n private _initDataFromProvider(\n start: number,\n end: number,\n append?: boolean\n ): void {\n const provider = this._provider;\n const chunks = this._chunks;\n const dimensions = this._dimensions;\n const dimLen = dimensions.length;\n const rawExtent = this._rawExtent;\n const dimNames = map(dimensions, dim => dim.property);\n\n for (let i = 0; i < dimLen; i++) {\n const dim = dimensions[i];\n if (!rawExtent[i]) {\n rawExtent[i] = getInitialExtent();\n }\n prepareStorage(chunks, i, dim.type, end, append);\n }\n\n\n if (provider.fillStorage) {\n provider.fillStorage(start, end, chunks, rawExtent);\n }\n else {\n let dataItem = [] as OptionDataItem;\n for (let idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n dataItem = provider.getItem(idx, dataItem);\n // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n\n // Store the data by dimensions\n for (let dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n const dimStorage = chunks[dimIdx];\n // PENDING NULL is empty or zero\n const val = this._dimValueGetter(\n dataItem, dimNames[dimIdx], idx, dimIdx\n ) as ParsedValueNumeric;\n (dimStorage as ParsedValue[])[idx] = val;\n\n const dimRawExtent = rawExtent[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n }\n }\n\n if (!provider.persistent && provider.clean) {\n // Clean unused data if data source is typed array.\n provider.clean();\n }\n\n this._rawCount = this._count = end;\n // Reset data extent\n this._extent = [];\n }\n\n count(): number {\n return this._count;\n }\n\n /**\n * Get value. Return NaN if idx is out of range.\n */\n get(dim: DimensionIndex, idx: number): ParsedValue {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n const dimStore = this._chunks[dim];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n }\n\n getValues(idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[]\n getValues(dimensions: readonly DimensionIndex[] | number, idx?: number): ParsedValue[] {\n const values = [];\n let dimArr: DimensionIndex[] = [];\n if (idx == null) {\n idx = dimensions as number;\n // TODO get all from store?\n dimensions = [];\n // All dimensions\n for (let i = 0; i < this._dimensions.length; i++) {\n dimArr.push(i);\n }\n }\n else {\n dimArr = dimensions as DimensionIndex[];\n }\n\n for (let i = 0, len = dimArr.length; i < len; i++) {\n values.push(this.get(dimArr[i], idx));\n }\n\n return values;\n }\n\n /**\n * @param dim concrete dim\n */\n getByRawIndex(dim: DimensionIndex, rawIdx: number): ParsedValue {\n if (!(rawIdx >= 0 && rawIdx < this._rawCount)) {\n return NaN;\n }\n const dimStore = this._chunks[dim];\n return dimStore ? dimStore[rawIdx] : NaN;\n }\n\n /**\n * Get sum of data in one dimension\n */\n getSum(dim: DimensionIndex): number {\n const dimData = this._chunks[dim];\n let sum = 0;\n if (dimData) {\n for (let i = 0, len = this.count(); i < len; i++) {\n const value = this.get(dim, i) as number;\n if (!isNaN(value)) {\n sum += value;\n }\n }\n }\n return sum;\n }\n\n /**\n * Get median of data in one dimension\n */\n getMedian(dim: DimensionIndex): number {\n const dimDataArray: ParsedValue[] = [];\n // map all data of one dimension\n this.each([dim], function (val) {\n if (!isNaN(val as number)) {\n dimDataArray.push(val);\n }\n });\n\n // TODO\n // Use quick select?\n const sortedDimDataArray = dimDataArray.sort(function (a: number, b: number) {\n return a - b;\n }) as number[];\n const len = this.count();\n // calculate median\n return len === 0\n ? 0\n : len % 2 === 1\n ? sortedDimDataArray[(len - 1) / 2]\n : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2;\n }\n\n /**\n * Retreive the index with given raw data index\n */\n indexOfRawIndex(rawIndex: number): number {\n if (rawIndex >= this._rawCount || rawIndex < 0) {\n return -1;\n }\n\n if (!this._indices) {\n return rawIndex;\n }\n\n // Indices are ascending\n const indices = this._indices;\n\n // If rawIndex === dataIndex\n const rawDataIndex = indices[rawIndex];\n if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {\n return rawIndex;\n }\n\n let left = 0;\n let right = this._count - 1;\n while (left <= right) {\n const mid = (left + right) / 2 | 0;\n if (indices[mid] < rawIndex) {\n left = mid + 1;\n }\n else if (indices[mid] > rawIndex) {\n right = mid - 1;\n }\n else {\n return mid;\n }\n }\n return -1;\n }\n\n\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n indicesOfNearest(\n dim: DimensionIndex, value: number, maxDistance?: number\n ): number[] {\n const chunks = this._chunks;\n const dimData = chunks[dim];\n const nearestIndices: number[] = [];\n\n if (!dimData) {\n return nearestIndices;\n }\n\n if (maxDistance == null) {\n maxDistance = Infinity;\n }\n\n let minDist = Infinity;\n let minDiff = -1;\n let nearestIndicesLen = 0;\n\n // Check the test case of `test/ut/spec/data/SeriesData.js`.\n for (let i = 0, len = this.count(); i < len; i++) {\n const dataIndex = this.getRawIndex(i);\n const diff = value - (dimData[dataIndex] as number);\n const dist = Math.abs(diff);\n if (dist <= maxDistance) {\n // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,\n // we'd better not push both of them to `nearestIndices`, otherwise it is easy to\n // get more than one item in `nearestIndices` (more specifically, in `tooltip`).\n // So we chose the one that `diff >= 0` in this csae.\n // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them\n // should be push to `nearestIndices`.\n if (dist < minDist\n || (dist === minDist && diff >= 0 && minDiff < 0)\n ) {\n minDist = dist;\n minDiff = diff;\n nearestIndicesLen = 0;\n }\n if (diff === minDiff) {\n nearestIndices[nearestIndicesLen++] = i;\n }\n }\n }\n nearestIndices.length = nearestIndicesLen;\n\n return nearestIndices;\n }\n\n getIndices(): ArrayLike {\n let newIndices;\n\n const indices = this._indices;\n if (indices) {\n const Ctor = indices.constructor as DataArrayLikeConstructor;\n const thisCount = this._count;\n // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.\n if (Ctor === Array) {\n newIndices = new Ctor(thisCount);\n for (let i = 0; i < thisCount; i++) {\n newIndices[i] = indices[i];\n }\n }\n else {\n newIndices = new (Ctor as DataTypedArrayConstructor)(\n (indices as DataTypedArray).buffer, 0, thisCount\n );\n }\n }\n else {\n const Ctor = getIndicesCtor(this._rawCount);\n newIndices = new Ctor(this.count());\n for (let i = 0; i < newIndices.length; i++) {\n newIndices[i] = i;\n }\n }\n\n return newIndices;\n }\n\n /**\n * Data filter.\n */\n filter(\n dims: DimensionIndex[],\n cb: FilterCb\n ): DataStorage {\n if (!this._count) {\n return this;\n }\n\n const newStore = this.clone();\n\n const count = newStore.count();\n const Ctor = getIndicesCtor(newStore._rawCount);\n const newIndices = new Ctor(count);\n const value = [];\n const dimSize = dims.length;\n\n let offset = 0;\n const dim0 = dims[0];\n const chunks = newStore._chunks;\n\n for (let i = 0; i < count; i++) {\n let keep;\n const rawIdx = newStore.getRawIndex(i);\n // Simple optimization\n if (dimSize === 0) {\n keep = (cb as FilterCb0)(i);\n }\n else if (dimSize === 1) {\n const val = chunks[dim0][rawIdx];\n keep = (cb as FilterCb1)(val, i);\n }\n else {\n let k = 0;\n for (; k < dimSize; k++) {\n value[k] = chunks[dims[k]][rawIdx];\n }\n value[k] = i;\n keep = (cb as FilterCb).apply(null, value);\n }\n if (keep) {\n newIndices[offset++] = rawIdx;\n }\n }\n\n // Set indices after filtered.\n if (offset < count) {\n newStore._indices = newIndices;\n }\n newStore._count = offset;\n // Reset data extent\n newStore._extent = [];\n\n newStore._updateGetRawIdx();\n\n return newStore;\n }\n\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n selectRange(range: {[dimIdx: number]: [number, number]}): DataStorage {\n const newStore = this.clone();\n\n const len = newStore._count;\n\n if (!len) {\n return;\n }\n\n const dims = keys(range);\n const dimSize = dims.length;\n if (!dimSize) {\n return;\n }\n\n const originalCount = newStore.count();\n const Ctor = getIndicesCtor(newStore._rawCount);\n const newIndices = new Ctor(originalCount);\n\n let offset = 0;\n const dim0 = dims[0];\n\n const min = range[dim0][0];\n const max = range[dim0][1];\n const storeArr = newStore._chunks;\n\n let quickFinished = false;\n if (!newStore._indices) {\n // Extreme optimization for common case. About 2x faster in chrome.\n let idx = 0;\n if (dimSize === 1) {\n const dimStorage = storeArr[dims[0]];\n for (let i = 0; i < len; i++) {\n const val = dimStorage[i];\n // NaN will not be filtered. Consider the case, in line chart, empty\n // value indicates the line should be broken. But for the case like\n // scatter plot, a data item with empty value will not be rendered,\n // but the axis extent may be effected if some other dim of the data\n // item has value. Fortunately it is not a significant negative effect.\n if (\n (val >= min && val <= max) || isNaN(val as any)\n ) {\n newIndices[offset++] = idx;\n }\n idx++;\n }\n quickFinished = true;\n }\n else if (dimSize === 2) {\n const dimStorage = storeArr[dims[0]];\n const dimStorage2 = storeArr[dims[1]];\n const min2 = range[dims[1]][0];\n const max2 = range[dims[1]][1];\n for (let i = 0; i < len; i++) {\n const val = dimStorage[i];\n const val2 = dimStorage2[i];\n // Do not filter NaN, see comment above.\n if ((\n (val >= min && val <= max) || isNaN(val as any)\n )\n && (\n (val2 >= min2 && val2 <= max2) || isNaN(val2 as any)\n )\n ) {\n newIndices[offset++] = idx;\n }\n idx++;\n }\n quickFinished = true;\n }\n }\n if (!quickFinished) {\n if (dimSize === 1) {\n for (let i = 0; i < originalCount; i++) {\n const rawIndex = newStore.getRawIndex(i);\n const val = storeArr[dims[0]][rawIndex];\n // Do not filter NaN, see comment above.\n if (\n (val >= min && val <= max) || isNaN(val as any)\n ) {\n newIndices[offset++] = rawIndex;\n }\n }\n }\n else {\n for (let i = 0; i < originalCount; i++) {\n let keep = true;\n const rawIndex = newStore.getRawIndex(i);\n for (let k = 0; k < dimSize; k++) {\n const dimk = dims[k];\n const val = storeArr[dimk][rawIndex];\n // Do not filter NaN, see comment above.\n if (val < range[dimk][0] || val > range[dimk][1]) {\n keep = false;\n }\n }\n if (keep) {\n newIndices[offset++] = newStore.getRawIndex(i);\n }\n }\n }\n }\n\n // Set indices after filtered.\n if (offset < originalCount) {\n newStore._indices = newIndices;\n }\n newStore._count = offset;\n // Reset data extent\n newStore._extent = [];\n\n newStore._updateGetRawIdx();\n\n return newStore;\n }\n\n // /**\n // * Data mapping to a plain array\n // */\n // mapArray(dims: DimensionIndex[], cb: MapArrayCb): any[] {\n // const result: any[] = [];\n // this.each(dims, function () {\n // result.push(cb && (cb as MapArrayCb).apply(null, arguments));\n // });\n // return result;\n // }\n\n /**\n * Data mapping to a new List with given dimensions\n */\n map(dims: DimensionIndex[], cb: MapCb): DataStorage {\n // TODO only clone picked chunks.\n const target = this.clone(dims);\n this._updateDims(target, dims, cb);\n return target;\n }\n\n /**\n * @caution Danger!! Only used in dataStack.\n */\n modify(dims: DimensionIndex[], cb: MapCb) {\n this._updateDims(this, dims, cb);\n }\n\n private _updateDims(\n target: DataStorage,\n dims: DimensionIndex[],\n cb: MapCb\n ) {\n const targetChunks = target._chunks;\n\n const tmpRetValue = [];\n const dimSize = dims.length;\n const dataCount = target.count();\n const values = [];\n const rawExtent = target._rawExtent;\n\n for (let i = 0; i < dims.length; i++) {\n rawExtent[dims[i]] = getInitialExtent();\n }\n\n for (let dataIndex = 0; dataIndex < dataCount; dataIndex++) {\n const rawIndex = target.getRawIndex(dataIndex);\n\n for (let k = 0; k < dimSize; k++) {\n values[k] = targetChunks[dims[k]][rawIndex];\n }\n values[dimSize] = dataIndex;\n\n let retValue = cb && cb.apply(null, values);\n if (retValue != null) {\n // a number or string (in oridinal dimension)?\n if (typeof retValue !== 'object') {\n tmpRetValue[0] = retValue;\n retValue = tmpRetValue;\n }\n\n for (let i = 0; i < retValue.length; i++) {\n const dim = dims[i];\n const val = retValue[i];\n const rawExtentOnDim = rawExtent[dim];\n\n const dimStore = targetChunks[dim];\n if (dimStore) {\n (dimStore as ParsedValue[])[rawIndex] = val;\n }\n\n if (val < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = val as number;\n }\n if (val > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = val as number;\n }\n }\n }\n }\n }\n\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n lttbDownSample(\n valueDimension: DimensionIndex,\n rate: number\n ): DataStorage {\n const target = this.clone([valueDimension], true);\n const targetStorage = target._chunks;\n const dimStore = targetStorage[valueDimension];\n const len = this.count();\n\n let sampledIndex = 0;\n\n const frameSize = Math.floor(1 / rate);\n\n let currentRawIndex = this.getRawIndex(0);\n let maxArea;\n let area;\n let nextRawIndex;\n\n const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize) + 2);\n\n // First frame use the first data.\n newIndices[sampledIndex++] = currentRawIndex;\n for (let i = 1; i < len - 1; i += frameSize) {\n const nextFrameStart = Math.min(i + frameSize, len - 1);\n const nextFrameEnd = Math.min(i + frameSize * 2, len);\n\n const avgX = (nextFrameEnd + nextFrameStart) / 2;\n let avgY = 0;\n\n for (let idx = nextFrameStart; idx < nextFrameEnd; idx++) {\n const rawIndex = this.getRawIndex(idx);\n const y = dimStore[rawIndex] as number;\n if (isNaN(y)) {\n continue;\n }\n avgY += y as number;\n }\n avgY /= (nextFrameEnd - nextFrameStart);\n\n const frameStart = i;\n const frameEnd = Math.min(i + frameSize, len);\n\n const pointAX = i - 1;\n const pointAY = dimStore[currentRawIndex] as number;\n\n maxArea = -1;\n\n nextRawIndex = frameStart;\n // Find a point from current frame that construct a triangel with largest area with previous selected point\n // And the average of next frame.\n for (let idx = frameStart; idx < frameEnd; idx++) {\n const rawIndex = this.getRawIndex(idx);\n const y = dimStore[rawIndex] as number;\n if (isNaN(y)) {\n continue;\n }\n // Calculate triangle area over three buckets\n area = Math.abs((pointAX - avgX) * (y - pointAY)\n - (pointAX - idx) * (avgY - pointAY)\n );\n if (area > maxArea) {\n maxArea = area;\n nextRawIndex = rawIndex; // Next a is this b\n }\n }\n\n newIndices[sampledIndex++] = nextRawIndex;\n\n currentRawIndex = nextRawIndex; // This a is the next a (chosen b)\n }\n\n // First frame use the last data.\n newIndices[sampledIndex++] = this.getRawIndex(len - 1);\n target._count = sampledIndex;\n target._indices = newIndices;\n\n target.getRawIndex = this._getRawIdx;\n return target;\n }\n\n\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n downSample(\n dimension: DimensionIndex,\n rate: number,\n sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric,\n sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number\n ): DataStorage {\n const target = this.clone([dimension], true);\n const targetStorage = target._chunks;\n\n const frameValues = [];\n let frameSize = Math.floor(1 / rate);\n\n const dimStore = targetStorage[dimension];\n const len = this.count();\n const rawExtentOnDim = target._rawExtent[dimension] = getInitialExtent();\n\n const newIndices = new (getIndicesCtor(this._rawCount))(Math.ceil(len / frameSize));\n\n let offset = 0;\n for (let i = 0; i < len; i += frameSize) {\n // Last frame\n if (frameSize > len - i) {\n frameSize = len - i;\n frameValues.length = frameSize;\n }\n for (let k = 0; k < frameSize; k++) {\n const dataIdx = this.getRawIndex(i + k);\n frameValues[k] = dimStore[dataIdx];\n }\n const value = sampleValue(frameValues);\n const sampleFrameIdx = this.getRawIndex(\n Math.min(i + sampleIndex(frameValues, value) || 0, len - 1)\n );\n // Only write value on the filtered data\n (dimStore as number[])[sampleFrameIdx] = value;\n\n if (value < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = value;\n }\n if (value > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = value;\n }\n\n newIndices[offset++] = sampleFrameIdx;\n }\n\n target._count = offset;\n target._indices = newIndices;\n\n target._updateGetRawIdx();\n\n return target;\n }\n\n /**\n * Data iteration\n * @param ctx default this\n * @example\n * list.each('x', function (x, idx) {});\n * list.each(['x', 'y'], function (x, y, idx) {});\n * list.each(function (idx) {})\n */\n each(dims: DimensionIndex[], cb: EachCb): void {\n if (!this._count) {\n return;\n }\n const dimSize = dims.length;\n const chunks = this._chunks;\n\n for (let i = 0, len = this.count(); i < len; i++) {\n const rawIdx = this.getRawIndex(i);\n // Simple optimization\n switch (dimSize) {\n case 0:\n (cb as EachCb0)(i);\n break;\n case 1:\n (cb as EachCb1)(chunks[dims[0]][rawIdx], i);\n break;\n case 2:\n (cb as EachCb2)(\n chunks[dims[0]][rawIdx], chunks[dims[1]][rawIdx], i\n );\n break;\n default:\n let k = 0;\n const value = [];\n for (; k < dimSize; k++) {\n value[k] = chunks[dims[k]][rawIdx];\n }\n // Index\n value[k] = i;\n (cb as EachCb).apply(null, value);\n }\n }\n }\n\n /**\n * Get extent of data in one dimension\n */\n getDataExtent(dim: DimensionIndex): [number, number] {\n // Make sure use concrete dim as cache name.\n const dimData = this._chunks[dim];\n const initialExtent = getInitialExtent();\n\n if (!dimData) {\n return initialExtent;\n }\n\n // Make more strict checkings to ensure hitting cache.\n const currEnd = this.count();\n\n // Consider the most cases when using data zoom, `getDataExtent`\n // happened before filtering. We cache raw extent, which is not\n // necessary to be cleared and recalculated when restore data.\n const useRaw = !this._indices;\n let dimExtent: [number, number];\n\n if (useRaw) {\n return this._rawExtent[dim].slice() as [number, number];\n }\n dimExtent = this._extent[dim];\n if (dimExtent) {\n return dimExtent.slice() as [number, number];\n }\n dimExtent = initialExtent;\n\n let min = dimExtent[0];\n let max = dimExtent[1];\n\n for (let i = 0; i < currEnd; i++) {\n const rawIdx = this.getRawIndex(i);\n const value = dimData[rawIdx] as ParsedValueNumeric;\n value < min && (min = value);\n value > max && (max = value);\n }\n\n dimExtent = [min, max];\n\n this._extent[dim] = dimExtent;\n\n return dimExtent;\n }\n\n /**\n * Get raw data index.\n * Do not initialize.\n * Default `getRawIndex`. And it can be changed.\n */\n getRawIndex: (idx: number) => number;\n\n /**\n * Get raw data item\n */\n getRawDataItem(idx: number): OptionDataItem {\n const rawIdx = this.getRawIndex(idx);\n if (!this._provider.persistent) {\n const val = [];\n const chunks = this._chunks;\n for (let i = 0; i < chunks.length; i++) {\n val.push(chunks[i][rawIdx]);\n }\n return val;\n }\n else {\n return this._provider.getItem(this.getRawIndex(idx));\n }\n }\n\n /**\n * Clone shallow.\n *\n * @param clonedDims Determine which dims to clone. Will share the data if not specified.\n */\n clone(clonedDims?: DimensionIndex[], ignoreIndices?: boolean): DataStorage {\n const target = new DataStorage();\n const chunks = this._chunks;\n const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => {\n obj[dimIdx] = true;\n return obj;\n }, {} as Record);\n\n if (clonedDimsMap) {\n for (let i = 0; i < chunks.length; i++) {\n // Not clone if dim is not picked.\n target._chunks[i] = !clonedDimsMap[i] ? chunks[i] : cloneChunk(chunks[i]);\n }\n }\n else {\n target._chunks = chunks;\n }\n this._copyCommonProps(target);\n\n if (!ignoreIndices) {\n target._indices = this._cloneIndices();\n }\n target._updateGetRawIdx();\n return target;\n }\n\n private _copyCommonProps(target: DataStorage): void {\n target._count = this._count;\n target._rawCount = this._rawCount;\n target._provider = this._provider;\n target._dimensions = this._dimensions;\n\n target._extent = clone(this._extent);\n target._rawExtent = clone(this._rawExtent);\n }\n\n private _cloneIndices(): DataStorage['_indices'] {\n if (this._indices) {\n const Ctor = this._indices.constructor as DataArrayLikeConstructor;\n let indices;\n if (Ctor === Array) {\n const thisCount = this._indices.length;\n indices = new Ctor(thisCount);\n for (let i = 0; i < thisCount; i++) {\n indices[i] = this._indices[i];\n }\n }\n else {\n indices = new (Ctor as DataTypedArrayConstructor)(this._indices);\n }\n return indices;\n }\n return null;\n }\n\n private _getRawIdxIdentity(idx: number): number {\n return idx;\n }\n private _getRawIdx(idx: number): number {\n if (idx < this._count && idx >= 0) {\n return this._indices[idx];\n }\n return -1;\n }\n\n private _updateGetRawIdx(): void {\n this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity;\n }\n\n private static internalField = (function () {\n\n function getDimValueSimply(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]);\n }\n\n defaultDimValueGetters = {\n\n arrayRows: getDimValueSimply,\n\n objectRows(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return parseDataValue(dataItem[property], this._dimensions[dimIndex]);\n },\n\n keyedColumns: getDimValueSimply,\n\n original(\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n // Performance sensitive, do not use modelUtil.getDataItemValue.\n // If dataItem is an plain object with no value field, the let `value`\n // will be assigned with the object, but it will be tread correctly\n // in the `convertValue`.\n const value = dataItem && (dataItem.value == null ? dataItem : dataItem.value);\n\n return parseDataValue(\n (value instanceof Array)\n ? value[dimIndex]\n // If value is a single number or something else not array.\n : value,\n this._dimensions[dimIndex]\n );\n },\n\n typedArray: function (\n this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number\n ): ParsedValue {\n return dataItem[dimIndex];\n }\n\n };\n\n })();\n}\n\nexport default DataStorage;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { DatasetModel } from '../../component/dataset/install';\nimport SeriesModel from '../../model/Series';\nimport {\n setAsPrimitive, map, isTypedArray, assert, each, retrieve2\n} from 'zrender/src/core/util';\nimport { SourceMetaRawOption, Source, createSource, cloneSourceShallow, shouldRetrieveDataByName } from '../Source';\nimport {\n SeriesEncodableModel, OptionSourceData,\n SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL,\n SourceFormat, SeriesLayoutBy, OptionSourceHeader,\n DimensionDefinitionLoose, Dictionary\n} from '../../util/types';\nimport {\n querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels\n} from './sourceHelper';\nimport { applyDataTransform } from './transform';\nimport DataStorage, { DataStorageDimensionDefine } from '../DataStorage';\nimport { DefaultDataProvider } from './dataProvider';\nimport { SeriesDataSchema, shouldOmitUnusedDimensions } from './SeriesDataSchema';\n\ntype DataStorageMap = Dictionary;\n\n/**\n * [REQUIREMENT_MEMO]:\n * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option.\n * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and\n * `root-dataset`. Them on `series` has higher priority.\n * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might\n * confuse users: whether those props indicate how to visit the upstream source or visit\n * the transform result source, and some transforms has nothing to do with these props,\n * and some transforms might have multiple upstream.\n * (3) Transforms should specify `metaRawOption` in each output, just like they can be\n * declared in `root-dataset`.\n * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.\n * That is for reducing complexity in transfroms.\n * PENDING: Whether to provide transposition transform?\n *\n * [IMPLEMENTAION_MEMO]:\n * \"sourceVisitConfig\" are calculated from `metaRawOption` and `data`.\n * They will not be calculated until `source` is about to be visited (to prevent from\n * duplicate calcuation). `source` is visited only in series and input to transforms.\n *\n * [DIMENSION_INHERIT_RULE]:\n * By default the dimensions are inherited from ancestors, unless a transform return\n * a new dimensions definition.\n * Consider the case:\n * ```js\n * dataset: [{\n * source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * dataset: [{\n * dimension: ['Product', 'Sales', 'Prise'],\n * source: [ ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * ```\n * The two types of option should have the same behavior after transform.\n *\n *\n * [SCENARIO]:\n * (1) Provide source data directly:\n * ```js\n * series: {\n * encode: {...},\n * dimensions: [...]\n * seriesLayoutBy: 'row',\n * data: [[...]]\n * }\n * ```\n * (2) Series refer to dataset.\n * ```js\n * series: [{\n * encode: {...}\n * // Ignore datasetIndex means `datasetIndex: 0`\n * // and the dimensions defination in dataset is used\n * }, {\n * encode: {...},\n * seriesLayoutBy: 'column',\n * datasetIndex: 1\n * }]\n * ```\n * (3) dataset transform\n * ```js\n * dataset: [{\n * source: [...]\n * }, {\n * source: [...]\n * }, {\n * // By default from 0.\n * transform: { type: 'filter', config: {...} }\n * }, {\n * // Piped.\n * transform: [\n * { type: 'filter', config: {...} },\n * { type: 'sort', config: {...} }\n * ]\n * }, {\n * id: 'regressionData',\n * fromDatasetIndex: 1,\n * // Third-party transform\n * transform: { type: 'ecStat:regression', config: {...} }\n * }, {\n * // retrieve the extra result.\n * id: 'regressionFormula',\n * fromDatasetId: 'regressionData',\n * fromTransformResult: 1\n * }]\n * ```\n */\n\nexport class SourceManager {\n\n // Currently only datasetModel can host `transform`\n private _sourceHost: DatasetModel | SeriesModel;\n\n // Cached source. Do not repeat calculating if not dirty.\n private _sourceList: Source[] = [];\n\n private _storeList: DataStorageMap[] = [];\n\n // version sign of each upstream source manager.\n private _upstreamSignList: string[] = [];\n\n private _versionSignBase = 0;\n\n private _dirty = true;\n\n constructor(sourceHost: DatasetModel | SeriesModel) {\n this._sourceHost = sourceHost;\n }\n\n /**\n * Mark dirty.\n */\n dirty() {\n this._setLocalSource([], []);\n this._storeList = [];\n this._dirty = true;\n }\n\n private _setLocalSource(\n sourceList: Source[],\n upstreamSignList: string[]\n ): void {\n this._sourceList = sourceList;\n this._upstreamSignList = upstreamSignList;\n this._versionSignBase++;\n if (this._versionSignBase > 9e10) {\n this._versionSignBase = 0;\n }\n }\n\n /**\n * For detecting whether the upstream source is dirty, so that\n * the local cached source (in `_sourceList`) should be discarded.\n */\n private _getVersionSign(): string {\n return this._sourceHost.uid + '_' + this._versionSignBase;\n }\n\n /**\n * Always return a source instance. Otherwise throw error.\n */\n prepareSource(): void {\n // For the case that call `setOption` multiple time but no data changed,\n // cache the result source to prevent from repeating transform.\n if (this._isDirty()) {\n this._createSource();\n this._dirty = false;\n }\n }\n\n private _createSource(): void {\n this._setLocalSource([], []);\n\n const sourceHost = this._sourceHost;\n\n const upSourceMgrList = this._getUpstreamSourceManagers();\n const hasUpstream = !!upSourceMgrList.length;\n let resultSourceList: Source[];\n let upstreamSignList: string[];\n\n if (isSeries(sourceHost)) {\n const seriesModel = sourceHost as SeriesEncodableModel;\n let data;\n let sourceFormat: SourceFormat;\n let upSource: Source;\n\n // Has upstream dataset\n if (hasUpstream) {\n const upSourceMgr = upSourceMgrList[0];\n upSourceMgr.prepareSource();\n upSource = upSourceMgr.getSource();\n data = upSource.data;\n sourceFormat = upSource.sourceFormat;\n upstreamSignList = [upSourceMgr._getVersionSign()];\n }\n // Series data is from own.\n else {\n data = seriesModel.get('data', true) as OptionSourceData;\n sourceFormat = isTypedArray(data)\n ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL;\n upstreamSignList = [];\n }\n\n // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.\n const newMetaRawOption = this._getSourceMetaRawOption() || {} as SourceMetaRawOption;\n const upMetaRawOption = upSource && upSource.metaRawOption || {} as SourceMetaRawOption;\n const seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption.seriesLayoutBy) || null;\n const sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption.sourceHeader) || null;\n // Note here we should not use `upSource.dimensionsDefine`. Consider the case:\n // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`,\n // but series need `seriesLayoutBy: 'row'`.\n const dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption.dimensions);\n\n // We share source with dataset as much as possible\n // to avoid extra memroy cost of high dimensional data.\n const needsCreateSource = seriesLayoutBy !== upMetaRawOption.seriesLayoutBy\n || !!sourceHeader !== !!upMetaRawOption.sourceHeader\n || dimensions;\n resultSourceList = needsCreateSource ? [createSource(\n data,\n { seriesLayoutBy, sourceHeader, dimensions },\n sourceFormat\n )] : [];\n }\n else {\n const datasetModel = sourceHost as DatasetModel;\n\n // Has upstream dataset.\n if (hasUpstream) {\n const result = this._applyTransform(upSourceMgrList);\n resultSourceList = result.sourceList;\n upstreamSignList = result.upstreamSignList;\n }\n // Is root dataset.\n else {\n const sourceData = datasetModel.get('source', true);\n resultSourceList = [createSource(\n sourceData,\n this._getSourceMetaRawOption(),\n null\n )];\n upstreamSignList = [];\n }\n }\n\n if (__DEV__) {\n assert(resultSourceList && upstreamSignList);\n }\n\n this._setLocalSource(resultSourceList, upstreamSignList);\n }\n\n private _applyTransform(\n upMgrList: SourceManager[]\n ): {\n sourceList: Source[],\n upstreamSignList: string[]\n } {\n const datasetModel = this._sourceHost as DatasetModel;\n const transformOption = datasetModel.get('transform', true);\n const fromTransformResult = datasetModel.get('fromTransformResult', true);\n\n if (__DEV__) {\n assert(fromTransformResult != null || transformOption != null);\n }\n\n if (fromTransformResult != null) {\n let errMsg = '';\n if (upMgrList.length !== 1) {\n if (__DEV__) {\n errMsg = 'When using `fromTransformResult`, there should be only one upstream dataset';\n }\n doThrow(errMsg);\n }\n }\n\n let sourceList: Source[];\n const upSourceList: Source[] = [];\n const upstreamSignList: string[] = [];\n each(upMgrList, upMgr => {\n upMgr.prepareSource();\n const upSource = upMgr.getSource(fromTransformResult || 0);\n let errMsg = '';\n if (fromTransformResult != null && !upSource) {\n if (__DEV__) {\n errMsg = 'Can not retrieve result by `fromTransformResult`: ' + fromTransformResult;\n }\n doThrow(errMsg);\n }\n upSourceList.push(upSource);\n upstreamSignList.push(upMgr._getVersionSign());\n });\n\n if (transformOption) {\n sourceList = applyDataTransform(\n transformOption,\n upSourceList,\n { datasetIndex: datasetModel.componentIndex }\n );\n }\n else if (fromTransformResult != null) {\n sourceList = [cloneSourceShallow(upSourceList[0])];\n }\n\n return { sourceList, upstreamSignList };\n }\n\n private _isDirty(): boolean {\n if (this._dirty) {\n return true;\n }\n\n // All sourceList is from the some upsteam.\n const upSourceMgrList = this._getUpstreamSourceManagers();\n for (let i = 0; i < upSourceMgrList.length; i++) {\n const upSrcMgr = upSourceMgrList[i];\n if (\n // Consider the case that there is ancestor diry, call it recursively.\n // The performance is probably not an issue because usually the chain is not long.\n upSrcMgr._isDirty()\n || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()\n ) {\n return true;\n }\n }\n }\n\n /**\n * @param sourceIndex By defualt 0, means \"main source\".\n * Most cases there is only one source.\n */\n getSource(sourceIndex?: number): Source {\n sourceIndex = sourceIndex || 0;\n const source = this._sourceList[sourceIndex];\n if (!source) {\n // Series may share source instance with dataset.\n const upSourceMgrList = this._getUpstreamSourceManagers();\n return upSourceMgrList[0]\n && upSourceMgrList[0].getSource(sourceIndex);\n }\n return source;\n }\n\n /**\n *\n * Get a data storage which can be shared across series.\n * Only available for series.\n *\n * @param seriesDimRequest Dimensions that are generated in series.\n * Should have been sorted by `storageDimensionIndex` asc.\n */\n getSharedDataStorage(seriesDimRequest: SeriesDataSchema): DataStorage {\n if (__DEV__) {\n assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.');\n }\n const schema = seriesDimRequest.makeStorageSchema();\n return this._innerGetDataStorage(\n schema.dimensions, seriesDimRequest.source, schema.hash\n );\n }\n\n private _innerGetDataStorage(\n storageDims: DataStorageDimensionDefine[],\n seriesSource: Source,\n sourceReadKey: string\n ): DataStorage | undefined {\n // TODO Can use other sourceIndex?\n const sourceIndex = 0;\n\n const storeList = this._storeList;\n\n let cachedStoreMap = storeList[sourceIndex];\n\n if (!cachedStoreMap) {\n cachedStoreMap = storeList[sourceIndex] = {};\n }\n\n let cachedStore = cachedStoreMap[sourceReadKey];\n if (!cachedStore) {\n const upSourceMgr = this._getUpstreamSourceManagers()[0];\n\n if (isSeries(this._sourceHost) && upSourceMgr) {\n cachedStore = upSourceMgr._innerGetDataStorage(\n storageDims, seriesSource, sourceReadKey\n );\n }\n else {\n cachedStore = new DataStorage();\n // Always create storage from source of series.\n cachedStore.initData(\n new DefaultDataProvider(seriesSource, storageDims.length),\n storageDims\n );\n }\n cachedStoreMap[sourceReadKey] = cachedStore;\n }\n\n return cachedStore;\n }\n\n /**\n * PEDING: Is it fast enough?\n * If no upstream, return empty array.\n */\n private _getUpstreamSourceManagers(): SourceManager[] {\n // Always get the relationship from the raw option.\n // Do not cache the link of the dependency graph, so that\n // no need to update them when change happen.\n const sourceHost = this._sourceHost;\n\n if (isSeries(sourceHost)) {\n const datasetModel = querySeriesUpstreamDatasetModel(sourceHost);\n return !datasetModel ? [] : [datasetModel.getSourceManager()];\n }\n else {\n return map(\n queryDatasetUpstreamDatasetModels(sourceHost as DatasetModel),\n datasetModel => datasetModel.getSourceManager()\n );\n }\n }\n\n private _getSourceMetaRawOption(): SourceMetaRawOption {\n const sourceHost = this._sourceHost;\n let seriesLayoutBy: SeriesLayoutBy;\n let sourceHeader: OptionSourceHeader;\n let dimensions: DimensionDefinitionLoose[];\n if (isSeries(sourceHost)) {\n seriesLayoutBy = sourceHost.get('seriesLayoutBy', true);\n sourceHeader = sourceHost.get('sourceHeader', true);\n dimensions = sourceHost.get('dimensions', true);\n }\n // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them.\n else if (!this._getUpstreamSourceManagers().length) {\n const model = sourceHost as DatasetModel;\n seriesLayoutBy = model.get('seriesLayoutBy', true);\n sourceHeader = model.get('sourceHeader', true);\n dimensions = model.get('dimensions', true);\n }\n return { seriesLayoutBy, sourceHeader, dimensions };\n }\n\n}\n\n// Call this method after `super.init` and `super.mergeOption` to\n// disable the transform merge, but do not disable transfrom clone from rawOption.\nexport function disableTransformOptionMerge(datasetModel: DatasetModel): void {\n const transformOption = datasetModel.option.transform;\n transformOption && setAsPrimitive(datasetModel.option.transform);\n}\n\nfunction isSeries(sourceHost: SourceManager['_sourceHost']): sourceHost is SeriesEncodableModel {\n // Avoid circular dependency with Series.ts\n return (sourceHost as SeriesModel).mainType === 'series';\n}\n\nfunction doThrow(errMsg: string): void {\n throw new Error(errMsg);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Dictionary, TooltipRenderMode, ColorString,\n TooltipOrderMode, DimensionType\n} from '../../util/types';\nimport {\n TooltipMarkerType, getTooltipMarker, encodeHTML,\n makeValueReadable, convertToColorString\n} from '../../util/format';\nimport { isString, each, hasOwn, isArray, map, assert, extend } from 'zrender/src/core/util';\nimport { SortOrderComparator } from '../../data/helper/dataValueHelper';\nimport SeriesModel from '../../model/Series';\nimport { getRandomIdBase } from '../../util/number';\nimport Model from '../../model/Model';\nimport { TooltipOption } from './TooltipModel';\n\ntype RichTextStyle = {\n fontSize: number | string,\n fill: string,\n fontWeight?: number | string\n};\n\ntype TextStyle = string | RichTextStyle;\n\nconst TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1';\n\n// TODO: more textStyle option\nfunction getTooltipTextStyle(\n textStyle: TooltipOption['textStyle'],\n renderMode: TooltipRenderMode\n): {\n nameStyle: TextStyle\n valueStyle: TextStyle\n} {\n const nameFontColor = textStyle.color || '#6e7079';\n const nameFontSize = textStyle.fontSize || 12;\n const nameFontWeight = textStyle.fontWeight || '400';\n const valueFontColor = textStyle.color || '#464646';\n const valueFontSize = textStyle.fontSize || 14;\n const valueFontWeight = textStyle.fontWeight || '900';\n\n if (renderMode === 'html') {\n // `textStyle` is probably from user input, should be encoded to reduce security risk.\n return {\n // eslint-disable-next-line max-len\n nameStyle: `font-size:${encodeHTML(nameFontSize + '')}px;color:${encodeHTML(nameFontColor)};font-weight:${encodeHTML(nameFontWeight + '')}`,\n // eslint-disable-next-line max-len\n valueStyle: `font-size:${encodeHTML(valueFontSize + '')}px;color:${encodeHTML(valueFontColor)};font-weight:${encodeHTML(valueFontWeight + '')}`\n };\n }\n else {\n return {\n nameStyle: {\n fontSize: nameFontSize,\n fill: nameFontColor,\n fontWeight: nameFontWeight\n },\n valueStyle: {\n fontSize: valueFontSize,\n fill: valueFontColor,\n fontWeight: valueFontWeight\n }\n };\n }\n}\n\n// 0: no gap in this block.\n// 1: has max gap in level 1 in this block.\n// ...\ntype GapLevel = number;\n// See `TooltipMarkupLayoutIntent['innerGapLevel']`.\n// (value from UI design)\nconst HTML_GAPS: { [key in GapLevel]: number } = [0, 10, 20, 30];\nconst RICH_TEXT_GAPS: { [key in GapLevel]: string } = ['', '\\n', '\\n\\n', '\\n\\n\\n'];\n\n/**\n * This is an abstract layer to insulate the upper usage of tooltip content\n * from the different backends according to different `renderMode` ('html' or 'richText').\n * With the help of the abstract layer, it does not need to consider how to create and\n * assemble html or richText snippets when making tooltip content.\n *\n * @usage\n *\n * ```ts\n * class XxxSeriesModel {\n * formatTooltip(\n * dataIndex: number,\n * multipleSeries: boolean,\n * dataType: string\n * ) {\n * ...\n * return createTooltipMarkup('section', {\n * header: header,\n * blocks: [\n * createTooltipMarkup('nameValue', {\n * name: name,\n * value: value,\n * noValue: value == null\n * })\n * ]\n * });\n * }\n * }\n * ```\n */\nexport type TooltipMarkupBlockFragment =\n TooltipMarkupSection\n | TooltipMarkupNameValueBlock;\n\ninterface TooltipMarkupBlock {\n // Use to make comparison when `sortBlocks: true`.\n sortParam?: unknown;\n __gapLevelBetweenSubBlocks?: number;\n}\n\nexport interface TooltipMarkupSection extends TooltipMarkupBlock {\n type: 'section';\n header?: unknown;\n // If `noHeader` is `true`, do not display header.\n // Otherwise, always display it even if it is\n // null/undefined/NaN/''... (displayed as '-').\n noHeader?: boolean;\n blocks?: TooltipMarkupBlockFragment[];\n // Enable to sort blocks when making final html or richText.\n sortBlocks?: boolean;\n}\n\nexport interface TooltipMarkupNameValueBlock extends TooltipMarkupBlock {\n type: 'nameValue';\n // If `!markerType`, tooltip marker is not used.\n markerType?: TooltipMarkerType;\n markerColor?: ColorString;\n name?: string;\n // Also support value is `[121, 555, 94.2]`.\n value?: unknown | unknown[];\n // If not specified, treat value as normal string or numeric.\n // If needs to display formatted time, set as 'time'.\n // If needs to display original string with numeric guessing, set as 'ordinal'.\n // If both `value` and `valueType` are array, each valueType[i] cooresponds to value[i].\n valueType?: DimensionType | DimensionType[];\n // If `noName` or `noValue` is `true`, do not display name or value.\n // Otherwise, always display them even if they are\n // null/undefined/NaN/''... (displayed as '-').\n noName?: boolean;\n noValue?: boolean;\n}\n\n/**\n * Create tooltip markup by this function, we can get TS type check.\n */\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: 'section', option: Omit): TooltipMarkupSection;\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: 'nameValue', option: Omit): TooltipMarkupNameValueBlock;\n// eslint-disable-next-line max-len\nexport function createTooltipMarkup(type: TooltipMarkupBlockFragment['type'], option: Omit): TooltipMarkupBlockFragment {\n (option as TooltipMarkupBlockFragment).type = type;\n return option as TooltipMarkupBlockFragment;\n}\n\n\n// Can be null/undefined, which means generate nothing markup text.\ntype MarkupText = string;\ninterface TooltipMarkupFragmentBuilder {\n planLayout(\n fragment: TooltipMarkupBlockFragment\n ): void;\n build(\n ctx: TooltipMarkupBuildContext,\n fragment: TooltipMarkupBlockFragment,\n topMarginForOuterGap: number,\n toolTipTextStyle: TooltipOption['textStyle']\n ): MarkupText;\n}\n\nfunction getBuilder(fragment: TooltipMarkupBlockFragment): TooltipMarkupFragmentBuilder {\n return hasOwn(builderMap, fragment.type) && builderMap[fragment.type];\n}\n\nconst builderMap: { [key in TooltipMarkupBlockFragment['type']]: TooltipMarkupFragmentBuilder } = {\n\n /**\n * A `section` block is like:\n * ```\n * header\n * subBlock\n * subBlock\n * ...\n * ```\n */\n section: {\n planLayout: function (fragment: TooltipMarkupSection) {\n const subBlockLen = fragment.blocks.length;\n const thisBlockHasInnerGap = subBlockLen > 1 || (subBlockLen > 0 && !fragment.noHeader);\n\n let thisGapLevelBetweenSubBlocks = 0;\n each(fragment.blocks, function (subBlock) {\n getBuilder(subBlock).planLayout(subBlock);\n const subGapLevel = subBlock.__gapLevelBetweenSubBlocks;\n\n // If the some of the sub-blocks have some gaps (like 10px) inside, this block\n // should use a larger gap (like 20px) to distinguish those sub-blocks.\n if (subGapLevel >= thisGapLevelBetweenSubBlocks) {\n thisGapLevelBetweenSubBlocks = subGapLevel + (\n (\n thisBlockHasInnerGap && (\n // 0 always can not be readable gap level.\n !subGapLevel\n // If no header, always keep the sub gap level. Otherwise\n // look weird in case `multipleSeries`.\n || (subBlock.type === 'section' && !subBlock.noHeader)\n )\n ) ? 1 : 0\n );\n }\n });\n fragment.__gapLevelBetweenSubBlocks = thisGapLevelBetweenSubBlocks;\n },\n\n build(\n ctx,\n fragment: TooltipMarkupSection,\n topMarginForOuterGap,\n toolTipTextStyle\n ): string {\n const noHeader = fragment.noHeader;\n const gaps = getGap(fragment);\n\n const subMarkupText = buildSubBlocks(\n ctx,\n fragment,\n noHeader ? topMarginForOuterGap : gaps.html,\n toolTipTextStyle\n );\n\n if (noHeader) {\n return subMarkupText;\n }\n\n const displayableHeader = makeValueReadable(fragment.header, 'ordinal', ctx.useUTC);\n const {nameStyle} = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode);\n if (ctx.renderMode === 'richText') {\n return wrapInlineNameRichText(ctx, displayableHeader, nameStyle as RichTextStyle) + gaps.richText\n + subMarkupText;\n }\n else {\n return wrapBlockHTML(\n `
`\n + encodeHTML(displayableHeader)\n + '
'\n + subMarkupText,\n topMarginForOuterGap\n );\n }\n }\n },\n\n /**\n * A `nameValue` block is like:\n * ```\n * marker name value\n * ```\n */\n nameValue: {\n planLayout: function (fragment: TooltipMarkupNameValueBlock) {\n fragment.__gapLevelBetweenSubBlocks = 0;\n },\n\n build(ctx, fragment: TooltipMarkupNameValueBlock, topMarginForOuterGap, toolTipTextStyle) {\n const renderMode = ctx.renderMode;\n const noName = fragment.noName;\n const noValue = fragment.noValue;\n const noMarker = !fragment.markerType;\n const name = fragment.name;\n const value = fragment.value;\n const useUTC = ctx.useUTC;\n\n if (noName && noValue) {\n return;\n }\n\n const markerStr = noMarker\n ? ''\n : ctx.markupStyleCreator.makeTooltipMarker(\n fragment.markerType,\n fragment.markerColor || '#333',\n renderMode\n );\n const readableName = noName\n ? ''\n : makeValueReadable(name, 'ordinal', useUTC);\n const valueTypeOption = fragment.valueType;\n const readableValueList = noValue\n ? []\n : (isArray(value)\n ? map(value, (val, idx) => makeValueReadable(\n val, isArray(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC\n ))\n : [makeValueReadable(\n value, isArray(valueTypeOption) ? valueTypeOption[0] : valueTypeOption, useUTC\n )]\n );\n const valueAlignRight = !noMarker || !noName;\n // It little weird if only value next to marker but far from marker.\n const valueCloseToMarker = !noMarker && noName;\n\n const {nameStyle, valueStyle} = getTooltipTextStyle(toolTipTextStyle, renderMode);\n\n return renderMode === 'richText'\n ? (\n (noMarker ? '' : markerStr)\n + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle as RichTextStyle))\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n + (noValue ? '' : wrapInlineValueRichText(\n ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle as RichTextStyle\n ))\n )\n : wrapBlockHTML(\n (noMarker ? '' : markerStr)\n + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle as string))\n + (noValue ? '' : wrapInlineValueHTML(\n readableValueList, valueAlignRight, valueCloseToMarker, valueStyle as string\n )),\n topMarginForOuterGap\n );\n }\n }\n};\n\n\nfunction buildSubBlocks(\n ctx: TooltipMarkupBuildContext,\n fragment: TooltipMarkupSection,\n topMarginForOuterGap: number,\n tooltipTextStyle: TooltipOption['textStyle']\n): MarkupText {\n const subMarkupTextList: string[] = [];\n let subBlocks = fragment.blocks || [];\n assert(!subBlocks || isArray(subBlocks));\n subBlocks = subBlocks || [];\n\n const orderMode = ctx.orderMode;\n if (fragment.sortBlocks && orderMode) {\n subBlocks = subBlocks.slice();\n const orderMap = { valueAsc: 'asc', valueDesc: 'desc' } as const;\n if (hasOwn(orderMap, orderMode)) {\n const comparator = new SortOrderComparator(orderMap[orderMode as 'valueAsc' | 'valueDesc'], null);\n subBlocks.sort((a, b) => comparator.evaluate(a.sortParam, b.sortParam));\n }\n // FIXME 'seriesDesc' necessary?\n else if (orderMode === 'seriesDesc') {\n subBlocks.reverse();\n }\n }\n\n const gaps = getGap(fragment);\n each(subBlocks, function (subBlock, idx) {\n const subMarkupText = getBuilder(subBlock).build(\n ctx,\n subBlock,\n idx > 0 ? gaps.html : 0,\n tooltipTextStyle\n );\n subMarkupText != null && subMarkupTextList.push(subMarkupText);\n });\n\n if (!subMarkupTextList.length) {\n return;\n }\n\n return ctx.renderMode === 'richText'\n ? subMarkupTextList.join(gaps.richText)\n : wrapBlockHTML(\n subMarkupTextList.join(''),\n topMarginForOuterGap\n );\n}\n\ninterface TooltipMarkupBuildContext {\n useUTC: boolean;\n renderMode: TooltipRenderMode;\n orderMode: TooltipOrderMode;\n markupStyleCreator: TooltipMarkupStyleCreator;\n}\n\n/**\n * @return markupText. null/undefined means no content.\n */\nexport function buildTooltipMarkup(\n fragment: TooltipMarkupBlockFragment,\n markupStyleCreator: TooltipMarkupStyleCreator,\n renderMode: TooltipRenderMode,\n orderMode: TooltipOrderMode,\n useUTC: boolean,\n toolTipTextStyle: TooltipOption['textStyle']\n): MarkupText {\n if (!fragment) {\n return;\n }\n\n const builder = getBuilder(fragment);\n builder.planLayout(fragment);\n const ctx: TooltipMarkupBuildContext = {\n useUTC: useUTC,\n renderMode: renderMode,\n orderMode: orderMode,\n markupStyleCreator: markupStyleCreator\n };\n return builder.build(ctx, fragment, 0, toolTipTextStyle);\n}\n\n\nfunction getGap(fragment: TooltipMarkupBlock): {\n html: number;\n richText: string\n} {\n const gapLevelBetweenSubBlocks = fragment.__gapLevelBetweenSubBlocks;\n return {\n html: HTML_GAPS[gapLevelBetweenSubBlocks],\n richText: RICH_TEXT_GAPS[gapLevelBetweenSubBlocks]\n };\n}\n\nfunction wrapBlockHTML(\n encodedContent: string,\n topGap: number\n): string {\n const clearfix = '
';\n const marginCSS = `margin: ${topGap}px 0 0`;\n return `
`\n + encodedContent + clearfix\n + '
';\n}\n\nfunction wrapInlineNameHTML(\n name: string,\n leftHasMarker: boolean,\n style: string\n): string {\n const marginCss = leftHasMarker ? 'margin-left:2px' : '';\n return ``\n + encodeHTML(name)\n + '';\n}\n\nfunction wrapInlineValueHTML(\n valueList: string[],\n alignRight: boolean,\n valueCloseToMarker: boolean,\n style: string\n): string {\n // Do not too close to marker, considering there are multiple values separated by spaces.\n const paddingStr = valueCloseToMarker ? '10px' : '20px';\n const alignCSS = alignRight ? `float:right;margin-left:${paddingStr}` : '';\n return (\n ``\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n + map(valueList, value => encodeHTML(value)).join('  ')\n + ''\n );\n}\n\nfunction wrapInlineNameRichText(ctx: TooltipMarkupBuildContext, name: string, style: RichTextStyle): string {\n return ctx.markupStyleCreator.wrapRichTextStyle(name, style as Dictionary);\n}\n\nfunction wrapInlineValueRichText(\n ctx: TooltipMarkupBuildContext,\n valueList: string[],\n alignRight: boolean,\n valueCloseToMarker: boolean,\n style: RichTextStyle\n): string {\n const styles: Dictionary[] = [style];\n const paddingLeft = valueCloseToMarker ? 10 : 20;\n alignRight && styles.push({ padding: [0, 0, 0, paddingLeft], align: 'right' });\n // Value has commas inside, so use ' ' as delimiter for multiple values.\n return ctx.markupStyleCreator.wrapRichTextStyle(valueList.join(' '), styles);\n}\n\n\nexport function retrieveVisualColorForTooltipMarker(\n series: SeriesModel,\n dataIndex: number\n): ColorString {\n const style = series.getData().getItemVisual(dataIndex, 'style');\n const color = style[series.visualDrawType];\n return convertToColorString(color);\n}\n\nexport function getPaddingFromTooltipModel(\n model: Model,\n renderMode: TooltipRenderMode\n): number | number[] {\n const padding = model.get('padding');\n return padding != null\n ? padding\n // We give slightly different to look pretty.\n : renderMode === 'richText'\n ? [8, 10]\n : 10;\n}\n\n/**\n * The major feature is generate styles for `renderMode: 'richText'`.\n * But it also serves `renderMode: 'html'` to provide\n * \"renderMode-independent\" API.\n */\nexport class TooltipMarkupStyleCreator {\n readonly richTextStyles: Dictionary> = {};\n\n // Notice that \"generate a style name\" usuall happens repeatly when mouse moving and\n // displaying a tooltip. So we put the `_nextStyleNameId` as a member of each creator\n // rather than static shared by all creators (which will cause it increase to fast).\n private _nextStyleNameId: number = getRandomIdBase();\n\n private _generateStyleName() {\n return '__EC_aUTo_' + this._nextStyleNameId++;\n }\n\n makeTooltipMarker(\n markerType: TooltipMarkerType,\n colorStr: ColorString,\n renderMode: TooltipRenderMode\n ): string {\n const markerId = renderMode === 'richText'\n ? this._generateStyleName()\n : null;\n const marker = getTooltipMarker({\n color: colorStr,\n type: markerType,\n renderMode,\n markerId: markerId\n });\n if (isString(marker)) {\n return marker;\n }\n else {\n if (__DEV__) {\n assert(markerId);\n }\n this.richTextStyles[markerId] = marker.style;\n return marker.content;\n }\n }\n\n /**\n * @usage\n * ```ts\n * const styledText = markupStyleCreator.wrapRichTextStyle([\n * // The styles will be auto merged.\n * {\n * fontSize: 12,\n * color: 'blue'\n * },\n * {\n * padding: 20\n * }\n * ]);\n * ```\n */\n wrapRichTextStyle(text: string, styles: Dictionary | Dictionary[]): string {\n const finalStl = {};\n if (isArray(styles)) {\n each(styles, stl => extend(finalStl, stl));\n }\n else {\n extend(finalStl, styles);\n }\n const styleName = this._generateStyleName();\n this.richTextStyles[styleName] = finalStl;\n return `{${styleName}|${text}}`;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport { trim, isArray, each, reduce } from 'zrender/src/core/util';\nimport { DimensionName, DimensionType, ColorString } from '../../util/types';\nimport {\n retrieveVisualColorForTooltipMarker,\n TooltipMarkupBlockFragment,\n createTooltipMarkup,\n TooltipMarkupSection\n} from './tooltipMarkup';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isNameSpecified } from '../../util/model';\n\n\nexport function defaultSeriesFormatTooltip(opt: {\n series: SeriesModel;\n dataIndex: number;\n // `multipleSeries` means multiple series displayed in one tooltip,\n // and this method only return the part of one series.\n multipleSeries: boolean;\n}): TooltipMarkupSection {\n const series = opt.series;\n const dataIndex = opt.dataIndex;\n const multipleSeries = opt.multipleSeries;\n\n const data = series.getData();\n const tooltipDims = data.mapDimensionsAll('defaultedTooltip');\n const tooltipDimLen = tooltipDims.length;\n const value = series.getRawValue(dataIndex) as any;\n const isValueArr = isArray(value);\n const markerColor = retrieveVisualColorForTooltipMarker(series, dataIndex);\n\n // Complicated rule for pretty tooltip.\n let inlineValue;\n let inlineValueType: DimensionType | DimensionType[];\n let subBlocks: TooltipMarkupBlockFragment[];\n let sortParam: unknown;\n if (tooltipDimLen > 1 || (isValueArr && !tooltipDimLen)) {\n const formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor);\n inlineValue = formatArrResult.inlineValues;\n inlineValueType = formatArrResult.inlineValueTypes;\n subBlocks = formatArrResult.blocks;\n // Only support tooltip sort by the first inline value. It's enough in most cases.\n sortParam = formatArrResult.inlineValues[0];\n }\n else if (tooltipDimLen) {\n const dimInfo = data.getDimensionInfo(tooltipDims[0]);\n sortParam = inlineValue = retrieveRawValue(data, dataIndex, tooltipDims[0]);\n inlineValueType = dimInfo.type;\n }\n else {\n sortParam = inlineValue = isValueArr ? value[0] : value;\n }\n\n // Do not show generated series name. It might not be readable.\n const seriesNameSpecified = isNameSpecified(series);\n const seriesName = seriesNameSpecified && series.name || '';\n const itemName = data.getName(dataIndex);\n const inlineName = multipleSeries ? seriesName : itemName;\n\n return createTooltipMarkup('section', {\n header: seriesName,\n // When series name not specified, do not show a header line with only '-'.\n // This case alway happen in tooltip.trigger: 'item'.\n noHeader: multipleSeries || !seriesNameSpecified,\n sortParam: sortParam,\n blocks: [\n createTooltipMarkup('nameValue', {\n markerType: 'item',\n markerColor: markerColor,\n // Do not mix display seriesName and itemName in one tooltip,\n // which might confuses users.\n name: inlineName,\n // name dimension might be auto assigned, where the name might\n // be not readable. So we check trim here.\n noName: !trim(inlineName),\n value: inlineValue,\n valueType: inlineValueType\n })\n ].concat(subBlocks || [] as any)\n });\n}\n\nfunction formatTooltipArrayValue(\n value: unknown[],\n series: SeriesModel,\n dataIndex: number,\n tooltipDims: DimensionName[],\n colorStr: ColorString\n): {\n inlineValues: unknown[];\n inlineValueTypes: DimensionType[];\n blocks: TooltipMarkupBlockFragment[];\n} {\n // check: category-no-encode-has-axis-data in dataset.html\n const data = series.getData();\n const isValueMultipleLine = reduce(value, function (isValueMultipleLine, val, idx) {\n const dimItem = data.getDimensionInfo(idx);\n return isValueMultipleLine = isValueMultipleLine\n || (dimItem && dimItem.tooltip !== false && dimItem.displayName != null);\n }, false);\n\n const inlineValues: unknown[] = [];\n const inlineValueTypes: DimensionType[] = [];\n const blocks: TooltipMarkupBlockFragment[] = [];\n\n tooltipDims.length\n ? each(tooltipDims, function (dim) {\n setEachItem(retrieveRawValue(data, dataIndex, dim), dim);\n })\n // By default, all dims is used on tooltip.\n : each(value, setEachItem);\n\n function setEachItem(val: unknown, dim: DimensionName | number): void {\n const dimInfo = data.getDimensionInfo(dim);\n // If `dimInfo.tooltip` is not set, show tooltip.\n if (!dimInfo || dimInfo.otherDims.tooltip === false) {\n return;\n }\n if (isValueMultipleLine) {\n blocks.push(createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: colorStr,\n name: dimInfo.displayName,\n value: val,\n valueType: dimInfo.type\n }));\n }\n else {\n inlineValues.push(val);\n inlineValueTypes.push(dimInfo.type);\n }\n }\n\n return { inlineValues, inlineValueTypes, blocks };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport * as modelUtil from '../util/model';\nimport {\n DataHost, DimensionName, StageHandlerProgressParams,\n SeriesOption, ZRColor, BoxLayoutOptionMixin,\n ScaleDataValue,\n Dictionary,\n OptionDataItemObject,\n SeriesDataType,\n SeriesEncodeOptionMixin,\n OptionEncodeValue,\n ColorBy\n} from '../util/types';\nimport ComponentModel, { ComponentModelConstructor } from './Component';\nimport {PaletteMixin} from './mixin/palette';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport Model from '../model/Model';\nimport {\n getLayoutParams,\n mergeLayoutParam,\n fetchLayoutMode\n} from '../util/layout';\nimport {createTask} from '../core/task';\nimport GlobalModel from './Global';\nimport { CoordinateSystem } from '../coord/CoordinateSystem';\nimport { ExtendableConstructor, mountExtend, Constructor } from '../util/clazz';\nimport { PipelineContext, SeriesTaskContext, GeneralTask, OverallTask, SeriesTask } from '../core/Scheduler';\nimport LegendVisualProvider from '../visual/LegendVisualProvider';\nimport SeriesData from '../data/SeriesData';\nimport Axis from '../coord/Axis';\nimport type { BrushCommonSelectorsForSeries, BrushSelectableArea } from '../component/brush/selector';\nimport makeStyleMapper from './mixin/makeStyleMapper';\nimport { SourceManager } from '../data/helper/sourceManager';\nimport { Source } from '../data/Source';\nimport { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatTooltip';\nimport {ECSymbol} from '../util/symbol';\nimport {Group} from '../util/graphic';\nimport {LegendIconParams} from '../component/legend/LegendModel';\n\nconst inner = modelUtil.makeInner<{\n data: SeriesData\n dataBeforeProcessed: SeriesData\n sourceManager: SourceManager\n}, SeriesModel>();\n\nfunction getSelectionKey(data: SeriesData, dataIndex: number): string {\n return data.getName(dataIndex) || data.getId(dataIndex);\n}\n\nexport const SERIES_UNIVERSAL_TRANSITION_PROP = '__universalTransitionEnabled';\n\ninterface SeriesModel {\n /**\n * Convinient for override in extended class.\n * Implement it if needed.\n */\n preventIncremental(): boolean;\n /**\n * See tooltip.\n * Implement it if needed.\n * @return Point of tooltip. null/undefined can be returned.\n */\n getTooltipPosition(dataIndex: number): number[];\n\n /**\n * Get data indices for show tooltip content. See tooltip.\n * Implement it if needed.\n */\n getAxisTooltipData(\n dim: DimensionName[],\n value: ScaleDataValue,\n baseAxis: Axis\n ): {\n dataIndices: number[],\n nestestValue: any\n };\n\n /**\n * Get position for marker\n */\n getMarkerPosition(value: ScaleDataValue[]): number[];\n\n /**\n * Get legend icon symbol according to each series type\n */\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group;\n\n /**\n * See `component/brush/selector.js`\n * Defined the brush selector for this series.\n */\n brushSelector(\n dataIndex: number,\n data: SeriesData,\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n\n enableAriaDecal(): void;\n}\n\nclass SeriesModel extends ComponentModel {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n // @readonly\n type: string;\n\n // Should be implenented in subclass.\n defaultOption: SeriesOption;\n\n // @readonly\n seriesIndex: number;\n\n // coodinateSystem will be injected in the echarts/CoordinateSystem\n coordinateSystem: CoordinateSystem;\n\n // Injected outside\n dataTask: SeriesTask;\n // Injected outside\n pipelineContext: PipelineContext;\n\n // ---------------------------------------\n // Props to tell visual/style.ts about how to do visual encoding.\n // ---------------------------------------\n // legend visual provider to the legend component\n legendVisualProvider: LegendVisualProvider;\n\n // Access path of style for visual\n visualStyleAccessPath: string;\n // Which property is treated as main color. Which can get from the palette.\n visualDrawType: 'fill' | 'stroke';\n // Style mapping rules.\n visualStyleMapper: ReturnType;\n // If ignore style on data. It's only for global visual/style.ts\n // Enabled when series it self will handle it.\n ignoreStyleOnData: boolean;\n // If do symbol visual encoding\n hasSymbolVisual: boolean;\n // Default symbol type.\n defaultSymbol: string;\n // Symbol provide to legend.\n legendIcon: string;\n\n // It will be set temporary when cross series transition setting is from setOption.\n // TODO if deprecate further?\n [SERIES_UNIVERSAL_TRANSITION_PROP]: boolean;\n\n // ---------------------------------------\n // Props about data selection\n // ---------------------------------------\n private _selectedDataIndicesMap: Dictionary = {};\n\n readonly preventUsingHoverLayer: boolean;\n\n static protoInitialize = (function () {\n const proto = SeriesModel.prototype;\n proto.type = 'series.__base__';\n proto.seriesIndex = 0;\n proto.ignoreStyleOnData = false;\n proto.hasSymbolVisual = false;\n proto.defaultSymbol = 'circle';\n // Make sure the values can be accessed!\n proto.visualStyleAccessPath = 'itemStyle';\n proto.visualDrawType = 'fill';\n })();\n\n\n init(option: Opt, parentModel: Model, ecModel: GlobalModel) {\n\n this.seriesIndex = this.componentIndex;\n\n this.dataTask = createTask({\n count: dataTaskCount,\n reset: dataTaskReset\n });\n this.dataTask.context = {model: this};\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n const sourceManager = inner(this).sourceManager = new SourceManager(this);\n sourceManager.prepareSource();\n\n const data = this.getInitialData(option, ecModel);\n wrapData(data, this);\n this.dataTask.context.data = data;\n\n if (__DEV__) {\n zrUtil.assert(data, 'getInitialData returned invalid data.');\n }\n\n inner(this).dataBeforeProcessed = data;\n\n // If we reverse the order (make data firstly, and then make\n // dataBeforeProcessed by cloneShallow), cloneShallow will\n // cause data.graph.data !== data when using\n // module:echarts/data/Graph or module:echarts/data/Tree.\n // See module:echarts/data/helper/linkSeriesData\n\n // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model\n // init or merge stage, because the data can be restored. So we do not `restoreData`\n // and `setData` here, which forbids calling `seriesModel.getData()` in this stage.\n // Call `seriesModel.getRawData()` instead.\n // this.restoreData();\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n }\n\n /**\n * Util for merge default and theme to option\n */\n mergeDefaultAndTheme(option: Opt, ecModel: GlobalModel): void {\n const layoutMode = fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n // Backward compat: using subType on theme.\n // But if name duplicate between series subType\n // (for example: parallel) add component mainType,\n // add suffix 'Series'.\n let themeSubType = this.subType;\n if ((ComponentModel as ComponentModelConstructor).hasClass(themeSubType)) {\n themeSubType += 'Series';\n }\n zrUtil.merge(\n option,\n ecModel.getTheme().get(this.subType)\n );\n zrUtil.merge(option, this.getDefaultOption());\n\n // Default label emphasis `show`\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n\n this.fillDataTextStyle(option.data as ArrayLike);\n\n if (layoutMode) {\n mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n mergeOption(newSeriesOption: Opt, ecModel: GlobalModel) {\n // this.settingTask.dirty();\n\n newSeriesOption = zrUtil.merge(this.option, newSeriesOption, true);\n this.fillDataTextStyle(newSeriesOption.data as ArrayLike);\n\n const layoutMode = fetchLayoutMode(this);\n if (layoutMode) {\n mergeLayoutParam(\n this.option as BoxLayoutOptionMixin,\n newSeriesOption as BoxLayoutOptionMixin,\n layoutMode\n );\n }\n\n const sourceManager = inner(this).sourceManager;\n sourceManager.dirty();\n sourceManager.prepareSource();\n\n const data = this.getInitialData(newSeriesOption, ecModel);\n wrapData(data, this);\n this.dataTask.dirty();\n this.dataTask.context.data = data;\n\n inner(this).dataBeforeProcessed = data;\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n }\n\n fillDataTextStyle(data: ArrayLike): void {\n // Default data label emphasis `show`\n // FIXME Tree structure data ?\n // FIXME Performance ?\n if (data && !zrUtil.isTypedArray(data)) {\n const props = ['show'];\n for (let i = 0; i < data.length; i++) {\n if (data[i] && data[i].label) {\n modelUtil.defaultEmphasis(data[i], 'label', props);\n }\n }\n }\n }\n\n /**\n * Init a data structure from data related option in series\n * Must be overriden.\n */\n getInitialData(option: Opt, ecModel: GlobalModel): SeriesData {\n return;\n }\n\n /**\n * Append data to list\n */\n appendData(params: {data: ArrayLike}): void {\n // FIXME ???\n // (1) If data from dataset, forbidden append.\n // (2) support append data of dataset.\n const data = this.getRawData();\n data.appendData(params.data);\n }\n\n /**\n * Consider some method like `filter`, `map` need make new data,\n * We should make sure that `seriesModel.getData()` get correct\n * data in the stream procedure. So we fetch data from upstream\n * each time `task.perform` called.\n */\n getData(dataType?: SeriesDataType): SeriesData {\n const task = getCurrentTask(this);\n if (task) {\n const data = task.context.data;\n return (dataType == null ? data : data.getLinkedData(dataType)) as SeriesData;\n }\n else {\n // When series is not alive (that may happen when click toolbox\n // restore or setOption with not merge mode), series data may\n // be still need to judge animation or something when graphic\n // elements want to know whether fade out.\n return inner(this).data as SeriesData;\n }\n }\n\n getAllData(): ({\n data: SeriesData,\n type?: SeriesDataType\n })[] {\n const mainData = this.getData();\n return (mainData && mainData.getLinkedDataAll)\n ? mainData.getLinkedDataAll()\n : [{ data: mainData }];\n }\n\n setData(data: SeriesData): void {\n const task = getCurrentTask(this);\n if (task) {\n const context = task.context;\n // Consider case: filter, data sample.\n // FIXME:TS never used, so comment it\n // if (context.data !== data && task.modifyOutputEnd) {\n // task.setOutputEnd(data.count());\n // }\n context.outputData = data;\n // Caution: setData should update context.data,\n // Because getData may be called multiply in a\n // single stage and expect to get the data just\n // set. (For example, AxisProxy, x y both call\n // getData and setDate sequentially).\n // So the context.data should be fetched from\n // upstream each time when a stage starts to be\n // performed.\n if (task !== this.dataTask) {\n context.data = data;\n }\n }\n inner(this).data = data;\n }\n\n getEncode() {\n const encode = (this as Model).get('encode', true);\n if (encode) {\n return zrUtil.createHashMap(encode);\n }\n }\n\n getSourceManager(): SourceManager {\n return inner(this).sourceManager;\n }\n\n getSource(): Source {\n return this.getSourceManager().getSource();\n }\n\n /**\n * Get data before processed\n */\n getRawData(): SeriesData {\n return inner(this).dataBeforeProcessed;\n }\n\n getColorBy(): ColorBy {\n const colorBy = this.get('colorBy');\n return colorBy || 'series';\n }\n\n isColorBySeries(): boolean {\n return this.getColorBy() === 'series';\n }\n\n /**\n * Get base axis if has coordinate system and has axis.\n * By default use coordSys.getBaseAxis();\n * Can be overrided for some chart.\n * @return {type} description\n */\n getBaseAxis(): Axis {\n const coordSys = this.coordinateSystem;\n // @ts-ignore\n return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();\n }\n\n /**\n * Default tooltip formatter\n *\n * @param dataIndex\n * @param multipleSeries\n * @param dataType\n * @param renderMode valid values: 'html'(by default) and 'richText'.\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n * @return formatted tooltip with `html` and `markers`\n * Notice: The override method can also return string\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: SeriesDataType\n ): ReturnType {\n return defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n }\n\n isAnimationEnabled(): boolean {\n if (env.node) {\n return false;\n }\n let animationEnabled = this.getShallow('animation');\n if (animationEnabled) {\n if (this.getData().count() > this.getShallow('animationThreshold')) {\n animationEnabled = false;\n }\n }\n return !!animationEnabled;\n }\n\n restoreData() {\n this.dataTask.dirty();\n }\n\n getColorFromPalette(name: string, scope: any, requestColorNum?: number): ZRColor {\n const ecModel = this.ecModel;\n // PENDING\n let color = PaletteMixin.prototype.getColorFromPalette.call(this, name, scope, requestColorNum);\n if (!color) {\n color = ecModel.getColorFromPalette(name, scope, requestColorNum);\n }\n return color;\n }\n\n /**\n * Use `data.mapDimensionsAll(coordDim)` instead.\n * @deprecated\n */\n coordDimToDataDim(coordDim: DimensionName): DimensionName[] {\n return this.getRawData().mapDimensionsAll(coordDim);\n }\n\n /**\n * Get progressive rendering count each step\n */\n getProgressive(): number | false {\n return this.get('progressive');\n }\n\n /**\n * Get progressive rendering count each step\n */\n getProgressiveThreshold(): number {\n return this.get('progressiveThreshold');\n }\n\n // PENGING If selectedMode is null ?\n select(innerDataIndices: number[], dataType?: SeriesDataType): void {\n this._innerSelect(this.getData(dataType), innerDataIndices);\n }\n\n unselect(innerDataIndices: number[], dataType?: SeriesDataType): void {\n const selectedMap = this.option.selectedMap;\n if (!selectedMap) {\n return;\n }\n const data = this.getData(dataType);\n for (let i = 0; i < innerDataIndices.length; i++) {\n const dataIndex = innerDataIndices[i];\n const nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = false;\n this._selectedDataIndicesMap[nameOrId] = -1;\n }\n }\n\n toggleSelect(innerDataIndices: number[], dataType?: SeriesDataType): void {\n const tmpArr: number[] = [];\n for (let i = 0; i < innerDataIndices.length; i++) {\n tmpArr[0] = innerDataIndices[i];\n this.isSelected(innerDataIndices[i], dataType)\n ? this.unselect(tmpArr, dataType)\n : this.select(tmpArr, dataType);\n }\n }\n\n getSelectedDataIndices(): number[] {\n const selectedDataIndicesMap = this._selectedDataIndicesMap;\n const nameOrIds = zrUtil.keys(selectedDataIndicesMap);\n const dataIndices = [];\n for (let i = 0; i < nameOrIds.length; i++) {\n const dataIndex = selectedDataIndicesMap[nameOrIds[i]];\n if (dataIndex >= 0) {\n dataIndices.push(dataIndex);\n }\n }\n return dataIndices;\n }\n\n isSelected(dataIndex: number, dataType?: SeriesDataType): boolean {\n const selectedMap = this.option.selectedMap;\n if (!selectedMap) {\n return false;\n }\n\n const data = this.getData(dataType);\n const nameOrId = getSelectionKey(data, dataIndex);\n return selectedMap[nameOrId] || false;\n }\n\n isUniversalTransitionEnabled(): boolean {\n if (this[SERIES_UNIVERSAL_TRANSITION_PROP]) {\n return true;\n }\n\n const universalTransitionOpt = this.option.universalTransition;\n // Quick reject\n if (!universalTransitionOpt) {\n return false;\n }\n\n if (universalTransitionOpt === true) {\n return true;\n }\n\n // Can be simply 'universalTransition: true'\n return universalTransitionOpt && universalTransitionOpt.enabled;\n }\n\n private _innerSelect(data: SeriesData, innerDataIndices: number[]) {\n const selectedMode = this.option.selectedMode;\n const len = innerDataIndices.length;\n if (!selectedMode || !len) {\n return;\n }\n\n if (selectedMode === 'multiple') {\n const selectedMap = this.option.selectedMap || (this.option.selectedMap = {});\n for (let i = 0; i < len; i++) {\n const dataIndex = innerDataIndices[i];\n // TODO diffrent types of data share same object.\n const nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = true;\n this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex);\n }\n }\n else if (selectedMode === 'single' || selectedMode === true) {\n const lastDataIndex = innerDataIndices[len - 1];\n const nameOrId = getSelectionKey(data, lastDataIndex);\n this.option.selectedMap = {\n [nameOrId]: true\n };\n this._selectedDataIndicesMap = {\n [nameOrId]: data.getRawIndex(lastDataIndex)\n };\n }\n }\n\n private _initSelectedMapFromData(data: SeriesData) {\n // Ignore select info in data if selectedMap exists.\n // NOTE It's only for legacy usage. edge data is not supported.\n if (this.option.selectedMap) {\n return;\n }\n\n const dataIndices: number[] = [];\n if (data.hasItemOption) {\n data.each(function (idx) {\n const rawItem = data.getRawDataItem(idx);\n if (rawItem && (rawItem as OptionDataItemObject).selected) {\n dataIndices.push(idx);\n }\n });\n }\n\n if (dataIndices.length > 0) {\n this._innerSelect(data, dataIndices);\n }\n }\n\n // /**\n // * @see {module:echarts/stream/Scheduler}\n // */\n // abstract pipeTask: null\n\n static registerClass(clz: Constructor): Constructor {\n return ComponentModel.registerClass(clz);\n }\n}\n\ninterface SeriesModel\n extends DataFormatMixin, PaletteMixin, DataHost {\n\n // methods that can be implemented optionally to provide to components\n /**\n * Get dimension to render shadow in dataZoom component\n */\n getShadowDim?(): string\n}\nzrUtil.mixin(SeriesModel, DataFormatMixin);\nzrUtil.mixin(SeriesModel, PaletteMixin);\n\nexport type SeriesModelConstructor = typeof SeriesModel & ExtendableConstructor;\nmountExtend(SeriesModel, ComponentModel as SeriesModelConstructor);\n\n\n/**\n * MUST be called after `prepareSource` called\n * Here we need to make auto series, especially for auto legend. But we\n * do not modify series.name in option to avoid side effects.\n */\nfunction autoSeriesName(seriesModel: SeriesModel): void {\n // User specified name has higher priority, otherwise it may cause\n // series can not be queried unexpectedly.\n const name = seriesModel.name;\n if (!modelUtil.isNameSpecified(seriesModel)) {\n seriesModel.name = getSeriesAutoName(seriesModel) || name;\n }\n}\n\nfunction getSeriesAutoName(seriesModel: SeriesModel): string {\n const data = seriesModel.getRawData();\n const dataDims = data.mapDimensionsAll('seriesName');\n const nameArr: string[] = [];\n zrUtil.each(dataDims, function (dataDim) {\n const dimInfo = data.getDimensionInfo(dataDim);\n dimInfo.displayName && nameArr.push(dimInfo.displayName);\n });\n return nameArr.join(' ');\n}\n\nfunction dataTaskCount(context: SeriesTaskContext): number {\n return context.model.getRawData().count();\n}\n\nfunction dataTaskReset(context: SeriesTaskContext) {\n const seriesModel = context.model;\n seriesModel.setData(seriesModel.getRawData().cloneShallow());\n return dataTaskProgress;\n}\n\nfunction dataTaskProgress(param: StageHandlerProgressParams, context: SeriesTaskContext): void {\n // Avoid repead cloneShallow when data just created in reset.\n if (context.outputData && param.end > context.outputData.count()) {\n context.model.getRawData().cloneShallow(context.outputData);\n }\n}\n\n// TODO refactor\nfunction wrapData(data: SeriesData, seriesModel: SeriesModel): void {\n zrUtil.each([...data.CHANGABLE_METHODS, ...data.DOWNSAMPLE_METHODS], function (methodName) {\n data.wrapMethod(methodName as any, zrUtil.curry(onDataChange, seriesModel));\n });\n}\n\nfunction onDataChange(this: SeriesData, seriesModel: SeriesModel, newList: SeriesData): SeriesData {\n const task = getCurrentTask(seriesModel);\n if (task) {\n // Consider case: filter, selectRange\n task.setOutputEnd((newList || this).count());\n }\n return newList;\n}\n\nfunction getCurrentTask(seriesModel: SeriesModel): GeneralTask {\n const scheduler = (seriesModel.ecModel || {}).scheduler;\n const pipeline = scheduler && scheduler.getPipeline(seriesModel.uid);\n\n if (pipeline) {\n // When pipline finished, the currrentTask keep the last\n // task (renderTask).\n let task = pipeline.currentTask;\n if (task) {\n const agentStubMap = (task as OverallTask).agentStubMap;\n if (agentStubMap) {\n task = agentStubMap.get(seriesModel.uid);\n }\n }\n return task;\n }\n}\n\n\nexport default SeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Group from 'zrender/src/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport ComponentModel from '../model/Component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {Payload, ViewRootGroup, ECActionEvent, EventQueryItem, ECElementEvent} from '../util/types';\nimport Element from 'zrender/src/Element';\nimport SeriesModel from '../model/Series';\n\ninterface ComponentView {\n /**\n * Implement it if needed.\n */\n updateTransform?(\n model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload\n ): void | {update: true};\n\n /**\n * Pass only when return `true`.\n * Implement it if needed.\n */\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent | ECElementEvent\n ): boolean;\n\n /**\n * Find dispatchers for highlight/downplay by name.\n * If this methods provided, hover link (within the same name) is enabled in component.\n * That is, in component, a name can correspond to multiple dispatchers.\n * Those dispatchers can have no common ancestor.\n * The highlight/downplay state change will be applied on the\n * dispatchers and their descendents.\n *\n * @return Must return an array but not null/undefined.\n */\n findHighDownDispatchers?(\n name: string\n ): Element[];\n\n focusBlurEnabled?: boolean;\n}\n\nclass ComponentView {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n readonly group: ViewRootGroup;\n\n readonly uid: string;\n\n // ----------------------\n // Injectable properties\n // ----------------------\n __model: ComponentModel;\n __alive: boolean;\n __id: string;\n\n constructor() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewComponent');\n }\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n render(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {}\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n updateView(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n updateLayout(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n updateVisual(model: ComponentModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n // Do nothing;\n }\n\n /**\n * Hook for blur target series.\n * Can be used in marker for blur the markers\n */\n blurSeries(seriesModels: SeriesModel[], ecModel: GlobalModel): void {\n // Do nothing;\n }\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n};\n\n\nexport type ComponentViewConstructor = typeof ComponentView\n & clazzUtil.ExtendableConstructor\n & clazzUtil.ClassManager;\n\nclazzUtil.enableClassExtend(ComponentView as ComponentViewConstructor);\nclazzUtil.enableClassManagement(ComponentView as ComponentViewConstructor);\n\nexport default ComponentView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {makeInner} from '../../util/model';\nimport SeriesModel from '../../model/Series';\nimport { StageHandlerPlanReturn } from '../../util/types';\n\n/**\n * @return {string} If large mode changed, return string 'reset';\n */\nexport default function createRenderPlanner() {\n const inner = makeInner<{\n large: boolean\n progressiveRender: boolean\n }, SeriesModel>();\n\n return function (seriesModel: SeriesModel): StageHandlerPlanReturn {\n const fields = inner(seriesModel);\n const pipelineContext = seriesModel.pipelineContext;\n\n const originalLarge = !!fields.large;\n const originalProgressive = !!fields.progressiveRender;\n\n // FIXME: if the planner works on a filtered series, `pipelineContext` does not\n // exists. See #11611 . Probably we need to modify this structure, see the comment\n // on `performRawSeries` in `Schedular.js`.\n const large = fields.large = !!(pipelineContext && pipelineContext.large);\n const progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender);\n\n return (\n !!((originalLarge !== large) || (originalProgressive !== progressive)) && 'reset'\n ) as StageHandlerPlanReturn;\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each} from 'zrender/src/core/util';\nimport Group from 'zrender/src/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport * as modelUtil from '../util/model';\nimport { enterEmphasis, leaveEmphasis, getHighlightDigit } from '../util/states';\nimport {createTask, TaskResetCallbackReturn} from '../core/task';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport Element from 'zrender/src/Element';\nimport {\n Payload, ViewRootGroup, ECActionEvent, EventQueryItem,\n StageHandlerPlanReturn, DisplayState, StageHandlerProgressParams, ECElementEvent\n} from '../util/types';\nimport { SeriesTaskContext, SeriesTask } from '../core/Scheduler';\nimport SeriesData from '../data/SeriesData';\n\nconst inner = modelUtil.makeInner<{\n updateMethod: keyof ChartView\n}, Payload>();\nconst renderPlanner = createRenderPlanner();\n\ninterface ChartView {\n /**\n * Rendering preparation in progressive mode.\n * Implement it if needed.\n */\n incrementalPrepareRender(\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void;\n\n /**\n * Render in progressive mode.\n * Implement it if needed.\n * @param params See taskParams in `stream/task.js`\n */\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void;\n\n /**\n * Update transform directly.\n * Implement it if needed.\n */\n updateTransform(\n seriesModel: SeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void | {update: true};\n\n /**\n * The view contains the given point.\n * Implement it if needed.\n */\n containPoint(\n point: number[], seriesModel: SeriesModel\n ): boolean;\n\n /**\n * Pass only when return `true`.\n * Implement it if needed.\n */\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent | ECElementEvent\n ): boolean;\n}\nclass ChartView {\n\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n\n // @readonly\n type: string;\n\n readonly group: ViewRootGroup;\n\n readonly uid: string;\n\n readonly renderTask: SeriesTask;\n\n /**\n * Ignore label line update in global stage. Will handle it in chart itself.\n * Used in pie / funnel\n */\n ignoreLabelLineUpdate: boolean;\n\n // ----------------------\n // Injectable properties\n // ----------------------\n __alive: boolean;\n __model: SeriesModel;\n __id: string;\n\n static protoInitialize = (function () {\n const proto = ChartView.prototype;\n proto.type = 'chart';\n })();\n\n\n constructor() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewChart');\n\n this.renderTask = createTask({\n plan: renderTaskPlan,\n reset: renderTaskReset\n });\n this.renderTask.context = {view: this} as SeriesTaskContext;\n }\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n render(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {}\n\n /**\n * Highlight series or specified data item.\n */\n highlight(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n toggleHighlight(seriesModel.getData(), payload, 'emphasis');\n }\n\n /**\n * Downplay series or specified data item.\n */\n downplay(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n toggleHighlight(seriesModel.getData(), payload, 'normal');\n }\n\n /**\n * Remove self.\n */\n remove(ecModel: GlobalModel, api: ExtensionAPI): void {\n this.group.removeAll();\n }\n\n /**\n * Dispose self.\n */\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {}\n\n\n updateView(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n // FIXME never used?\n updateLayout(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n // FIXME never used?\n updateVisual(seriesModel: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.render(seriesModel, ecModel, api, payload);\n }\n\n static markUpdateMethod(payload: Payload, methodName: keyof ChartView): void {\n inner(payload).updateMethod = methodName;\n }\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n};\n\n\n/**\n * Set state of single element\n */\nfunction elSetState(el: Element, state: DisplayState, highlightDigit: number) {\n if (el) {\n (state === 'emphasis' ? enterEmphasis : leaveEmphasis)(el, highlightDigit);\n }\n}\n\nfunction toggleHighlight(data: SeriesData, payload: Payload, state: DisplayState) {\n const dataIndex = modelUtil.queryDataIndex(data, payload);\n\n const highlightDigit = (payload && payload.highlightKey != null)\n ? getHighlightDigit(payload.highlightKey)\n : null;\n\n if (dataIndex != null) {\n each(modelUtil.normalizeToArray(dataIndex), function (dataIdx) {\n elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);\n });\n }\n else {\n data.eachItemGraphicEl(function (el) {\n elSetState(el, state, highlightDigit);\n });\n }\n}\n\nexport type ChartViewConstructor = typeof ChartView\n & clazzUtil.ExtendableConstructor\n & clazzUtil.ClassManager;\n\nclazzUtil.enableClassExtend(ChartView as ChartViewConstructor, ['dispose']);\nclazzUtil.enableClassManagement(ChartView as ChartViewConstructor);\n\n\nfunction renderTaskPlan(context: SeriesTaskContext): StageHandlerPlanReturn {\n return renderPlanner(context.model);\n}\n\nfunction renderTaskReset(context: SeriesTaskContext): TaskResetCallbackReturn {\n const seriesModel = context.model;\n const ecModel = context.ecModel;\n const api = context.api;\n const payload = context.payload;\n // FIXME: remove updateView updateVisual\n const progressiveRender = seriesModel.pipelineContext.progressiveRender;\n const view = context.view;\n\n const updateMethod = payload && inner(payload).updateMethod;\n const methodName: keyof ChartView = progressiveRender\n ? 'incrementalPrepareRender'\n : (updateMethod && view[updateMethod])\n ? updateMethod\n // `appendData` is also supported when data amount\n // is less than progressive threshold.\n : 'render';\n\n if (methodName !== 'render') {\n (view[methodName] as any)(seriesModel, ecModel, api, payload);\n }\n\n return progressMethodMap[methodName];\n}\n\nconst progressMethodMap: {[method: string]: TaskResetCallbackReturn} = {\n incrementalPrepareRender: {\n progress: function (params: StageHandlerProgressParams, context: SeriesTaskContext): void {\n context.view.incrementalRender(\n params, context.model, context.ecModel, context.api, context.payload\n );\n }\n },\n render: {\n // Put view.render in `progress` to support appendData. But in this case\n // view.render should not be called in reset, otherwise it will be called\n // twise. Use `forceFirstProgress` to make sure that view.render is called\n // in any cases.\n forceFirstProgress: true,\n progress: function (params: StageHandlerProgressParams, context: SeriesTaskContext): void {\n context.view.render(\n context.model, context.ecModel, context.api, context.payload\n );\n }\n }\n};\n\nexport default ChartView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nconst ORIGIN_METHOD = '\\0__throttleOriginMethod' as const;\nconst RATE = '\\0__throttleRate' as const;\nconst THROTTLE_TYPE = '\\0__throttleType' as const;\n\ntype ThrottleFunction = (this: unknown, ...args: unknown[]) => void;\nexport type ThrottleType = 'fixRate' | 'debounce';\n\nexport interface ThrottleController {\n clear(): void;\n debounceNextCall(debounceDelay: number): void;\n};\n\n/**\n * @public\n * @param {(Function)} fn\n * @param {number} [delay=0] Unit: ms.\n * @param {boolean} [debounce=false]\n * true: If call interval less than `delay`, only the last call works.\n * false: If call interval less than `delay, call works on fixed rate.\n * @return {(Function)} throttled fn.\n */\nexport function throttle(\n fn: T,\n delay?: number,\n debounce?: boolean\n): T & ThrottleController {\n\n let currCall;\n let lastCall = 0;\n let lastExec = 0;\n let timer: ReturnType = null;\n let diff;\n let scope: unknown;\n let args: unknown[];\n let debounceNextCall: number;\n\n delay = delay || 0;\n\n function exec(): void {\n lastExec = (new Date()).getTime();\n timer = null;\n fn.apply(scope, args || []);\n }\n\n const cb = function (this: unknown, ...cbArgs: unknown[]): void {\n currCall = (new Date()).getTime();\n scope = this;\n args = cbArgs;\n const thisDelay = debounceNextCall || delay;\n const thisDebounce = debounceNextCall || debounce;\n debounceNextCall = null;\n diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;\n\n clearTimeout(timer);\n\n // Here we should make sure that: the `exec` SHOULD NOT be called later\n // than a new call of `cb`, that is, preserving the command order. Consider\n // calculating \"scale rate\" when roaming as an example. When a call of `cb`\n // happens, either the `exec` is called dierectly, or the call is delayed.\n // But the delayed call should never be later than next call of `cb`. Under\n // this assurance, we can simply update view state each time `dispatchAction`\n // triggered by user roaming, but not need to add extra code to avoid the\n // state being \"rolled-back\".\n if (thisDebounce) {\n timer = setTimeout(exec, thisDelay);\n }\n else {\n if (diff >= 0) {\n exec();\n }\n else {\n timer = setTimeout(exec, -diff);\n }\n }\n\n lastCall = currCall;\n } as T & ThrottleController;\n\n /**\n * Clear throttle.\n * @public\n */\n cb.clear = function (): void {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n };\n\n /**\n * Enable debounce once.\n */\n cb.debounceNextCall = function (debounceDelay: number): void {\n debounceNextCall = debounceDelay;\n };\n\n return cb;\n}\n\n/**\n * Create throttle method or update throttle rate.\n *\n * @example\n * ComponentView.prototype.render = function () {\n * ...\n * throttle.createOrUpdate(\n * this,\n * '_dispatchAction',\n * this.model.get('throttle'),\n * 'fixRate'\n * );\n * };\n * ComponentView.prototype.remove = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n * ComponentView.prototype.dispose = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n *\n */\nexport function createOrUpdate(\n obj: T,\n fnAttr: S,\n rate: number,\n throttleType: ThrottleType\n): P extends ThrottleFunction ? P & ThrottleController : never {\n let fn = obj[fnAttr];\n\n if (!fn) {\n return;\n }\n\n const originFn = (fn as any)[ORIGIN_METHOD] || fn;\n const lastThrottleType = (fn as any)[THROTTLE_TYPE];\n const lastRate = (fn as any)[RATE];\n\n if (lastRate !== rate || lastThrottleType !== throttleType) {\n if (rate == null || !throttleType) {\n return (obj[fnAttr] = originFn);\n }\n\n fn = obj[fnAttr] = throttle(\n originFn, rate, throttleType === 'debounce'\n );\n (fn as any)[ORIGIN_METHOD] = originFn;\n (fn as any)[THROTTLE_TYPE] = throttleType;\n (fn as any)[RATE] = rate;\n }\n\n return fn as ReturnType;\n}\n\n/**\n * Clear throttle. Example see throttle.createOrUpdate.\n */\nexport function clear(obj: T, fnAttr: S): void {\n const fn = obj[fnAttr];\n if (fn && (fn as any)[ORIGIN_METHOD]) {\n obj[fnAttr] = (fn as any)[ORIGIN_METHOD];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isFunction, extend, createHashMap } from 'zrender/src/core/util';\nimport { StageHandler, CallbackDataParams, ZRColor, Dictionary, InnerDecalObject, SeriesOption }\n from '../util/types';\nimport makeStyleMapper from '../model/mixin/makeStyleMapper';\nimport { ITEM_STYLE_KEY_MAP } from '../model/mixin/itemStyle';\nimport { LINE_STYLE_KEY_MAP } from '../model/mixin/lineStyle';\nimport SeriesModel from '../model/Series';\nimport Model from '../model/Model';\nimport { makeInner } from '../util/model';\n\nconst inner = makeInner<{scope: object}, SeriesModel>();\n\nconst defaultStyleMappers = {\n itemStyle: makeStyleMapper(ITEM_STYLE_KEY_MAP, true),\n lineStyle: makeStyleMapper(LINE_STYLE_KEY_MAP, true)\n};\n\nconst defaultColorKey = {\n lineStyle: 'stroke',\n itemStyle: 'fill'\n} as const;\n\nfunction getStyleMapper(seriesModel: SeriesModel, stylePath: string) {\n const styleMapper = seriesModel.visualStyleMapper\n || defaultStyleMappers[stylePath as 'itemStyle' | 'lineStyle'];\n if (!styleMapper) {\n console.warn(`Unkown style type '${stylePath}'.`);\n return defaultStyleMappers.itemStyle;\n }\n return styleMapper;\n}\n\nfunction getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' {\n // return defaultColorKey[stylePath] ||\n const colorKey = seriesModel.visualDrawType\n || defaultColorKey[stylePath as 'itemStyle' | 'lineStyle'];\n\n if (!colorKey) {\n console.warn(`Unkown style type '${stylePath}'.`);\n return 'fill';\n }\n\n return colorKey;\n}\n\ntype ColorCallback = (params: CallbackDataParams) => ZRColor;\n\nconst seriesStyleTask: StageHandler = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset(seriesModel, ecModel) {\n const data = seriesModel.getData();\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n // Set in itemStyle\n const styleModel = seriesModel.getModel(stylePath as any);\n const getStyle = getStyleMapper(seriesModel, stylePath);\n\n const globalStyle = getStyle(styleModel);\n\n const decalOption = styleModel.getShallow('decal') as InnerDecalObject;\n if (decalOption) {\n data.setVisual('decal', decalOption);\n decalOption.dirty = true;\n }\n\n // TODO\n const colorKey = getDefaultColorKey(seriesModel, stylePath);\n const color = globalStyle[colorKey];\n\n // TODO style callback\n const colorCallback = isFunction(color) ? color as unknown as ColorCallback : null;\n const hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto';\n // Get from color palette by default.\n if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {\n // Note: if some series has color specified (e.g., by itemStyle.color), we DO NOT\n // make it effect palette. Bacause some scenarios users need to make some series\n // transparent or as background, which should better not effect the palette.\n const colorPalette = seriesModel.getColorFromPalette(\n // TODO series count changed.\n seriesModel.name, null, ecModel.getSeriesCount()\n );\n if (!globalStyle[colorKey]) {\n globalStyle[colorKey] = colorPalette;\n data.setVisual('colorFromPalette', true);\n }\n globalStyle.fill = (globalStyle.fill === 'auto' || typeof globalStyle.fill === 'function')\n ? colorPalette\n : globalStyle.fill;\n globalStyle.stroke = (globalStyle.stroke === 'auto' || typeof globalStyle.stroke === 'function')\n ? colorPalette\n : globalStyle.stroke;\n }\n\n data.setVisual('style', globalStyle);\n data.setVisual('drawType', colorKey);\n\n // Only visible series has each data be visual encoded\n if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) {\n data.setVisual('colorFromPalette', false);\n\n return {\n dataEach(data, idx) {\n const dataParams = seriesModel.getDataParams(idx);\n const itemStyle = extend({}, globalStyle);\n itemStyle[colorKey] = colorCallback(dataParams);\n data.setItemVisual(idx, 'style', itemStyle);\n }\n };\n }\n }\n};\n\nconst sharedModel = new Model();\nconst dataStyleTask: StageHandler = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset(seriesModel, ecModel) {\n if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n // Set in itemStyle\n const getStyle = getStyleMapper(seriesModel, stylePath);\n\n const colorKey = data.getVisual('drawType');\n\n return {\n dataEach: data.hasItemOption ? function (data, idx) {\n // Not use getItemModel for performance considuration\n const rawItem = data.getRawDataItem(idx) as any;\n if (rawItem && rawItem[stylePath]) {\n sharedModel.option = rawItem[stylePath];\n const style = getStyle(sharedModel);\n\n const existsStyle = data.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n if (sharedModel.option.decal) {\n data.setItemVisual(idx, 'decal', sharedModel.option.decal);\n sharedModel.option.decal.dirty = true;\n }\n\n if (colorKey in style) {\n data.setItemVisual(idx, 'colorFromPalette', false);\n }\n }\n } : null\n };\n }\n};\n\n// Pick color from palette for the data which has not been set with color yet.\n// Note: do not support stream rendering. No such cases yet.\nconst dataColorPaletteTask: StageHandler = {\n performRawSeries: true,\n overallReset(ecModel) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n const paletteScopeGroupByType = createHashMap();\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n const colorBy = seriesModel.getColorBy();\n if (seriesModel.isColorBySeries()) {\n return;\n }\n const key = seriesModel.type + '-' + colorBy;\n let colorScope = paletteScopeGroupByType.get(key);\n if (!colorScope) {\n colorScope = {};\n paletteScopeGroupByType.set(key, colorScope);\n }\n inner(seriesModel).scope = colorScope;\n });\n\n\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n if (seriesModel.isColorBySeries() || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const dataAll = seriesModel.getRawData();\n const idxMap: Dictionary = {};\n const data = seriesModel.getData();\n const colorScope = inner(seriesModel).scope;\n\n const stylePath = seriesModel.visualStyleAccessPath\n || 'itemStyle';\n const colorKey = getDefaultColorKey(seriesModel, stylePath);\n\n data.each(function (idx) {\n const rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n\n // Iterate on data before filtered. To make sure color from palette can be\n // Consistent when toggling legend.\n dataAll.each(function (rawIdx) {\n const idx = idxMap[rawIdx];\n const fromPalette = data.getItemVisual(idx, 'colorFromPalette');\n // Get color from palette for each data only when the color is inherited from series color, which is\n // also picked from color palette. So following situation is not in the case:\n // 1. series.itemStyle.color is set\n // 2. color is encoded by visualMap\n if (fromPalette) {\n const itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n const name = dataAll.getName(rawIdx) || (rawIdx + '');\n const dataCount = dataAll.count();\n itemStyle[colorKey] = seriesModel.getColorFromPalette(name, colorScope, dataCount);\n }\n });\n });\n }\n};\n\nexport {\n seriesStyleTask,\n dataStyleTask,\n dataColorPaletteTask\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../util/graphic';\nimport { LoadingEffect } from '../util/types';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\nconst PI = Math.PI;\n\n/**\n * @param {module:echarts/ExtensionAPI} api\n * @param {Object} [opts]\n * @param {string} [opts.text]\n * @param {string} [opts.color]\n * @param {string} [opts.textColor]\n * @return {module:zrender/Element}\n */\nexport default function defaultLoading(\n api: ExtensionAPI,\n opts?: {\n text?: string;\n color?: string;\n textColor?: string;\n maskColor?: string;\n zlevel?: number;\n showSpinner?: boolean;\n spinnerRadius?: number;\n lineWidth?: number;\n fontSize?: number;\n fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;\n fontStyle?: 'normal' | 'italic' | 'oblique';\n fontFamily?: string\n }\n): LoadingEffect {\n opts = opts || {};\n zrUtil.defaults(opts, {\n text: 'loading',\n textColor: '#000',\n fontSize: 12,\n fontWeight: 'normal',\n fontStyle: 'normal',\n fontFamily: 'sans-serif',\n maskColor: 'rgba(255, 255, 255, 0.8)',\n showSpinner: true,\n color: '#5470c6',\n spinnerRadius: 10,\n lineWidth: 5,\n zlevel: 0\n });\n const group = new graphic.Group() as (graphic.Group & LoadingEffect);\n const mask = new graphic.Rect({\n style: {\n fill: opts.maskColor\n },\n zlevel: opts.zlevel,\n z: 10000\n });\n group.add(mask);\n\n const textContent = new graphic.Text({\n style: {\n text: opts.text,\n fill: opts.textColor,\n fontSize: opts.fontSize,\n fontWeight: opts.fontWeight,\n fontStyle: opts.fontStyle,\n fontFamily: opts.fontFamily\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n\n const labelRect = new graphic.Rect({\n style: {\n fill: 'none'\n },\n textContent: textContent,\n textConfig: {\n position: 'right',\n distance: 10\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n group.add(labelRect);\n let arc: graphic.Arc;\n\n if (opts.showSpinner) {\n arc = new graphic.Arc({\n shape: {\n startAngle: -PI / 2,\n endAngle: -PI / 2 + 0.1,\n r: opts.spinnerRadius\n },\n style: {\n stroke: opts.color,\n lineCap: 'round',\n lineWidth: opts.lineWidth\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n arc.animateShape(true)\n .when(1000, {\n endAngle: PI * 3 / 2\n })\n .start('circularInOut');\n arc.animateShape(true)\n .when(1000, {\n startAngle: PI * 3 / 2\n })\n .delay(300)\n .start('circularInOut');\n\n group.add(arc);\n }\n\n // Inject resize\n group.resize = function () {\n const textWidth = textContent.getBoundingRect().width;\n const r = opts.showSpinner ? opts.spinnerRadius : 0;\n // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2\n // textDistance needs to be calculated when both animation and text exist\n const cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2\n - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2)\n // only show the text\n + (opts.showSpinner ? 0 : textWidth / 2)\n // only show the spinner\n + (textWidth ? 0 : r);\n const cy = api.getHeight() / 2;\n opts.showSpinner && arc.setShape({\n cx: cx,\n cy: cy\n });\n labelRect.setShape({\n x: cx - r,\n y: cy - r,\n width: r * 2,\n height: r * 2\n });\n\n mask.setShape({\n x: 0,\n y: 0,\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n group.resize();\n return group;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, map, isFunction, createHashMap, noop, HashMap, assert} from 'zrender/src/core/util';\nimport {\n createTask, Task, TaskContext,\n TaskProgressCallback, TaskProgressParams, TaskPlanCallbackReturn, PerformArgs\n} from './task';\nimport {getUID} from '../util/component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport {normalizeToArray} from '../util/model';\nimport {\n StageHandlerInternal, StageHandlerOverallReset, StageHandler,\n Payload, StageHandlerReset, StageHandlerPlan, StageHandlerProgressExecutor, SeriesLargeOptionMixin, SeriesOption\n} from '../util/types';\nimport { EChartsType } from './echarts';\nimport SeriesModel from '../model/Series';\nimport ChartView from '../view/Chart';\nimport SeriesData from '../data/SeriesData';\n\nexport type GeneralTask = Task;\nexport type SeriesTask = Task;\nexport type OverallTask = Task & {\n agentStubMap?: HashMap\n};\nexport type StubTask = Task & {\n agent?: OverallTask;\n};\n\nexport type Pipeline = {\n id: string\n head: GeneralTask,\n tail: GeneralTask,\n threshold: number,\n progressiveEnabled: boolean,\n blockIndex: number,\n step: number,\n count: number,\n currentTask?: GeneralTask,\n context?: PipelineContext\n};\nexport type PipelineContext = {\n progressiveRender: boolean,\n modDataCount: number,\n large: boolean\n};\n\ntype TaskRecord = {\n // key: seriesUID\n seriesTaskMap?: HashMap,\n overallTask?: OverallTask\n};\ntype PerformStageTaskOpt = {\n block?: boolean,\n setDirty?: boolean,\n visualType?: StageHandlerInternal['visualType'],\n dirtyMap?: HashMap\n};\n\nexport interface SeriesTaskContext extends TaskContext {\n model?: SeriesModel;\n data?: SeriesData;\n view?: ChartView;\n ecModel?: GlobalModel;\n api?: ExtensionAPI;\n useClearVisual?: boolean;\n plan?: StageHandlerPlan;\n reset?: StageHandlerReset;\n scheduler?: Scheduler;\n payload?: Payload;\n resetDefines?: StageHandlerProgressExecutor[]\n}\ninterface OverallTaskContext extends TaskContext {\n ecModel: GlobalModel;\n api: ExtensionAPI;\n overallReset: StageHandlerOverallReset;\n scheduler: Scheduler;\n payload?: Payload;\n}\ninterface StubTaskContext extends TaskContext {\n model: SeriesModel;\n overallProgress: boolean;\n};\n\nclass Scheduler {\n\n readonly ecInstance: EChartsType;\n readonly api: ExtensionAPI;\n\n // Shared with echarts.js, should only be modified by\n // this file and echarts.js\n unfinished: boolean;\n\n private _dataProcessorHandlers: StageHandlerInternal[];\n private _visualHandlers: StageHandlerInternal[];\n private _allHandlers: StageHandlerInternal[];\n\n // key: handlerUID\n private _stageTaskMap: HashMap = createHashMap();\n // key: pipelineId\n private _pipelineMap: HashMap;\n\n\n constructor(\n ecInstance: EChartsType,\n api: ExtensionAPI,\n dataProcessorHandlers: StageHandlerInternal[],\n visualHandlers: StageHandlerInternal[]\n ) {\n this.ecInstance = ecInstance;\n this.api = api;\n\n // Fix current processors in case that in some rear cases that\n // processors might be registered after echarts instance created.\n // Register processors incrementally for a echarts instance is\n // not supported by this stream architecture.\n dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice();\n visualHandlers = this._visualHandlers = visualHandlers.slice();\n this._allHandlers = dataProcessorHandlers.concat(visualHandlers);\n }\n\n restoreData(ecModel: GlobalModel, payload: Payload): void {\n // TODO: Only restore needed series and components, but not all components.\n // Currently `restoreData` of all of the series and component will be called.\n // But some independent components like `title`, `legend`, `graphic`, `toolbox`,\n // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,\n // and some components like coordinate system, axes, dataZoom, visualMap only\n // need their target series refresh.\n // (1) If we are implementing this feature some day, we should consider these cases:\n // if a data processor depends on a component (e.g., dataZoomProcessor depends\n // on the settings of `dataZoom`), it should be re-performed if the component\n // is modified by `setOption`.\n // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,\n // it should be re-performed when the result array of `getTargetSeries` changed.\n // We use `dependencies` to cover these issues.\n // (3) How to update target series when coordinate system related components modified.\n\n // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,\n // and this case all of the tasks will be set as dirty.\n\n ecModel.restoreData(payload);\n\n // Theoretically an overall task not only depends on each of its target series, but also\n // depends on all of the series.\n // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks\n // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure\n // that the overall task is set as dirty and to be performed, otherwise it probably cause\n // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it\n // probably cause state chaos (consider `dataZoomProcessor`).\n this._stageTaskMap.each(function (taskRecord) {\n const overallTask = taskRecord.overallTask;\n overallTask && overallTask.dirty();\n });\n }\n\n // If seriesModel provided, incremental threshold is check by series data.\n getPerformArgs(task: GeneralTask, isBlock?: boolean): {\n step: number, modBy: number, modDataCount: number\n } {\n // For overall task\n if (!task.__pipeline) {\n return;\n }\n\n const pipeline = this._pipelineMap.get(task.__pipeline.id);\n const pCtx = pipeline.context;\n const incremental = !isBlock\n && pipeline.progressiveEnabled\n && (!pCtx || pCtx.progressiveRender)\n && task.__idxInPipeline > pipeline.blockIndex;\n\n const step = incremental ? pipeline.step : null;\n const modDataCount = pCtx && pCtx.modDataCount;\n const modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null;\n\n return {step: step, modBy: modBy, modDataCount: modDataCount};\n }\n\n getPipeline(pipelineId: string) {\n return this._pipelineMap.get(pipelineId);\n }\n\n /**\n * Current, progressive rendering starts from visual and layout.\n * Always detect render mode in the same stage, avoiding that incorrect\n * detection caused by data filtering.\n * Caution:\n * `updateStreamModes` use `seriesModel.getData()`.\n */\n updateStreamModes(seriesModel: SeriesModel, view: ChartView): void {\n const pipeline = this._pipelineMap.get(seriesModel.uid);\n const data = seriesModel.getData();\n const dataLen = data.count();\n\n // `progressiveRender` means that can render progressively in each\n // animation frame. Note that some types of series do not provide\n // `view.incrementalPrepareRender` but support `chart.appendData`. We\n // use the term `incremental` but not `progressive` to describe the\n // case that `chart.appendData`.\n const progressiveRender = pipeline.progressiveEnabled\n && view.incrementalPrepareRender\n && dataLen >= pipeline.threshold;\n\n const large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold');\n\n // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint.\n // see `test/candlestick-large3.html`\n const modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null;\n\n seriesModel.pipelineContext = pipeline.context = {\n progressiveRender: progressiveRender,\n modDataCount: modDataCount,\n large: large\n };\n }\n\n restorePipelines(ecModel: GlobalModel): void {\n const scheduler = this;\n const pipelineMap = scheduler._pipelineMap = createHashMap();\n\n ecModel.eachSeries(function (seriesModel) {\n const progressive = seriesModel.getProgressive();\n const pipelineId = seriesModel.uid;\n\n pipelineMap.set(pipelineId, {\n id: pipelineId,\n head: null,\n tail: null,\n threshold: seriesModel.getProgressiveThreshold(),\n progressiveEnabled: progressive\n && !(seriesModel.preventIncremental && seriesModel.preventIncremental()),\n blockIndex: -1,\n step: Math.round(progressive || 700),\n count: 0\n });\n\n scheduler._pipe(seriesModel, seriesModel.dataTask);\n });\n }\n\n prepareStageTasks(): void {\n const stageTaskMap = this._stageTaskMap;\n const ecModel = this.api.getModel();\n const api = this.api;\n\n each(this._allHandlers, function (handler) {\n const record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});\n\n let errMsg = '';\n if (__DEV__) {\n // Currently do not need to support to sepecify them both.\n errMsg = '\"reset\" and \"overallReset\" must not be both specified.';\n }\n assert(!(handler.reset && handler.overallReset), errMsg);\n\n handler.reset && this._createSeriesStageTask(handler, record, ecModel, api);\n handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api);\n }, this);\n }\n\n prepareView(view: ChartView, model: SeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n const renderTask = view.renderTask;\n const context = renderTask.context;\n\n context.model = model;\n context.ecModel = ecModel;\n context.api = api;\n\n renderTask.__block = !view.incrementalPrepareRender;\n\n this._pipe(model, renderTask);\n }\n\n performDataProcessorTasks(ecModel: GlobalModel, payload?: Payload): void {\n // If we do not use `block` here, it should be considered when to update modes.\n this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, {block: true});\n }\n\n performVisualTasks(\n ecModel: GlobalModel,\n payload?: Payload,\n opt?: PerformStageTaskOpt\n ): void {\n this._performStageTasks(this._visualHandlers, ecModel, payload, opt);\n }\n\n private _performStageTasks(\n stageHandlers: StageHandlerInternal[],\n ecModel: GlobalModel,\n payload: Payload,\n opt?: PerformStageTaskOpt\n ): void {\n opt = opt || {};\n let unfinished: boolean = false;\n const scheduler = this;\n\n each(stageHandlers, function (stageHandler, idx) {\n if (opt.visualType && opt.visualType !== stageHandler.visualType) {\n return;\n }\n\n const stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid);\n const seriesTaskMap = stageHandlerRecord.seriesTaskMap;\n const overallTask = stageHandlerRecord.overallTask;\n\n if (overallTask) {\n let overallNeedDirty;\n const agentStubMap = overallTask.agentStubMap;\n agentStubMap.each(function (stub) {\n if (needSetDirty(opt, stub)) {\n stub.dirty();\n overallNeedDirty = true;\n }\n });\n overallNeedDirty && overallTask.dirty();\n scheduler.updatePayload(overallTask, payload);\n const performArgs = scheduler.getPerformArgs(overallTask, opt.block);\n // Execute stubs firstly, which may set the overall task dirty,\n // then execute the overall task. And stub will call seriesModel.setData,\n // which ensures that in the overallTask seriesModel.getData() will not\n // return incorrect data.\n agentStubMap.each(function (stub) {\n stub.perform(performArgs);\n });\n if (overallTask.perform(performArgs)) {\n unfinished = true;\n }\n }\n else if (seriesTaskMap) {\n seriesTaskMap.each(function (task, pipelineId) {\n if (needSetDirty(opt, task)) {\n task.dirty();\n }\n const performArgs: PerformArgs = scheduler.getPerformArgs(task, opt.block);\n // FIXME\n // if intending to decalare `performRawSeries` in handlers, only\n // stream-independent (specifically, data item independent) operations can be\n // performed. Because is a series is filtered, most of the tasks will not\n // be performed. A stream-dependent operation probably cause wrong biz logic.\n // Perhaps we should not provide a separate callback for this case instead\n // of providing the config `performRawSeries`. The stream-dependent operaions\n // and stream-independent operations should better not be mixed.\n performArgs.skip = !stageHandler.performRawSeries\n && ecModel.isSeriesFiltered(task.context.model);\n scheduler.updatePayload(task, payload);\n\n if (task.perform(performArgs)) {\n unfinished = true;\n }\n });\n }\n });\n\n function needSetDirty(opt: PerformStageTaskOpt, task: GeneralTask): boolean {\n return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id));\n }\n\n this.unfinished = unfinished || this.unfinished;\n }\n\n performSeriesTasks(ecModel: GlobalModel): void {\n let unfinished: boolean;\n\n ecModel.eachSeries(function (seriesModel) {\n // Progress to the end for dataInit and dataRestore.\n unfinished = seriesModel.dataTask.perform() || unfinished;\n });\n\n this.unfinished = unfinished || this.unfinished;\n }\n\n plan(): void {\n // Travel pipelines, check block.\n this._pipelineMap.each(function (pipeline) {\n let task = pipeline.tail;\n do {\n if (task.__block) {\n pipeline.blockIndex = task.__idxInPipeline;\n break;\n }\n task = task.getUpstream();\n }\n while (task);\n });\n }\n\n updatePayload(\n task: Task,\n payload: Payload | 'remain'\n ): void {\n payload !== 'remain' && (task.context.payload = payload);\n }\n\n private _createSeriesStageTask(\n stageHandler: StageHandlerInternal,\n stageHandlerRecord: TaskRecord,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n const scheduler = this;\n const oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap;\n // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n const newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = createHashMap();\n const seriesType = stageHandler.seriesType;\n const getTargetSeries = stageHandler.getTargetSeries;\n\n // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,\n // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,\n // it works but it may cause other irrelevant charts blocked.\n if (stageHandler.createOnAllSeries) {\n ecModel.eachRawSeries(create);\n }\n else if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, create);\n }\n else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(create);\n }\n\n function create(seriesModel: SeriesModel): void {\n const pipelineId = seriesModel.uid;\n\n // Init tasks for each seriesModel only once.\n // Reuse original task instance.\n const task = newSeriesTaskMap.set(\n pipelineId,\n oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId)\n || createTask({\n plan: seriesTaskPlan,\n reset: seriesTaskReset,\n count: seriesTaskCount\n })\n );\n task.context = {\n model: seriesModel,\n ecModel: ecModel,\n api: api,\n // PENDING: `useClearVisual` not used?\n useClearVisual: stageHandler.isVisual && !stageHandler.isLayout,\n plan: stageHandler.plan,\n reset: stageHandler.reset,\n scheduler: scheduler\n };\n scheduler._pipe(seriesModel, task);\n }\n }\n\n private _createOverallStageTask(\n stageHandler: StageHandlerInternal,\n stageHandlerRecord: TaskRecord,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n const scheduler = this;\n const overallTask: OverallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask\n // For overall task, the function only be called on reset stage.\n || createTask({reset: overallTaskReset});\n\n overallTask.context = {\n ecModel: ecModel,\n api: api,\n overallReset: stageHandler.overallReset,\n scheduler: scheduler\n };\n\n const oldAgentStubMap = overallTask.agentStubMap;\n // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n const newAgentStubMap = overallTask.agentStubMap = createHashMap();\n\n const seriesType = stageHandler.seriesType;\n const getTargetSeries = stageHandler.getTargetSeries;\n let overallProgress = true;\n let shouldOverallTaskDirty = false;\n // FIXME:TS never used, so comment it\n // let modifyOutputEnd = stageHandler.modifyOutputEnd;\n\n // An overall task with seriesType detected or has `getTargetSeries`, we add\n // stub in each pipelines, it will set the overall task dirty when the pipeline\n // progress. Moreover, to avoid call the overall task each frame (too frequent),\n // we set the pipeline block.\n let errMsg = '';\n if (__DEV__) {\n errMsg = '\"createOnAllSeries\" do not supported for \"overallReset\", '\n + 'becuase it will block all streams.';\n }\n assert(!stageHandler.createOnAllSeries, errMsg);\n if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, createStub);\n }\n else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(createStub);\n }\n // Otherwise, (usually it is legancy case), the overall task will only be\n // executed when upstream dirty. Otherwise the progressive rendering of all\n // pipelines will be disabled unexpectedly. But it still needs stubs to receive\n // dirty info from upsteam.\n else {\n overallProgress = false;\n each(ecModel.getSeries(), createStub);\n }\n\n function createStub(seriesModel: SeriesModel): void {\n const pipelineId = seriesModel.uid;\n const stub = newAgentStubMap.set(\n pipelineId,\n oldAgentStubMap && oldAgentStubMap.get(pipelineId)\n || (\n // When the result of `getTargetSeries` changed, the overallTask\n // should be set as dirty and re-performed.\n shouldOverallTaskDirty = true,\n createTask(\n {reset: stubReset, onDirty: stubOnDirty}\n )\n )\n );\n stub.context = {\n model: seriesModel,\n overallProgress: overallProgress\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: modifyOutputEnd\n };\n stub.agent = overallTask;\n stub.__block = overallProgress;\n\n scheduler._pipe(seriesModel, stub);\n }\n\n if (shouldOverallTaskDirty) {\n overallTask.dirty();\n }\n }\n\n private _pipe(seriesModel: SeriesModel, task: GeneralTask) {\n const pipelineId = seriesModel.uid;\n const pipeline = this._pipelineMap.get(pipelineId);\n !pipeline.head && (pipeline.head = task);\n pipeline.tail && pipeline.tail.pipe(task);\n pipeline.tail = task;\n task.__idxInPipeline = pipeline.count++;\n task.__pipeline = pipeline;\n }\n\n static wrapStageHandler(\n stageHandler: StageHandler | StageHandlerOverallReset,\n visualType: StageHandlerInternal['visualType']\n ): StageHandlerInternal {\n if (isFunction(stageHandler)) {\n stageHandler = {\n overallReset: stageHandler,\n seriesType: detectSeriseType(stageHandler)\n } as StageHandlerInternal;\n }\n\n (stageHandler as StageHandlerInternal).uid = getUID('stageHandler');\n visualType && ((stageHandler as StageHandlerInternal).visualType = visualType);\n\n return stageHandler as StageHandlerInternal;\n };\n\n}\n\n\nfunction overallTaskReset(context: OverallTaskContext): void {\n context.overallReset(\n context.ecModel, context.api, context.payload\n );\n}\n\nfunction stubReset(context: StubTaskContext): TaskProgressCallback {\n return context.overallProgress && stubProgress;\n}\n\nfunction stubProgress(this: StubTask): void {\n this.agent.dirty();\n this.getDownstream().dirty();\n}\n\nfunction stubOnDirty(this: StubTask): void {\n this.agent && this.agent.dirty();\n}\n\nfunction seriesTaskPlan(context: SeriesTaskContext): TaskPlanCallbackReturn {\n return context.plan ? context.plan(\n context.model, context.ecModel, context.api, context.payload\n ) : null;\n}\n\nfunction seriesTaskReset(\n context: SeriesTaskContext\n): TaskProgressCallback | TaskProgressCallback[] {\n if (context.useClearVisual) {\n context.data.clearAllVisual();\n }\n const resetDefines = context.resetDefines = normalizeToArray(\n context.reset(context.model, context.ecModel, context.api, context.payload)\n ) as StageHandlerProgressExecutor[];\n return resetDefines.length > 1\n ? map(resetDefines, function (v, idx) {\n return makeSeriesTaskProgress(idx);\n })\n : singleSeriesTaskProgress;\n}\n\nconst singleSeriesTaskProgress = makeSeriesTaskProgress(0);\n\nfunction makeSeriesTaskProgress(resetDefineIdx: number): TaskProgressCallback {\n return function (params: TaskProgressParams, context: SeriesTaskContext): void {\n const data = context.data;\n const resetDefine = context.resetDefines[resetDefineIdx];\n\n if (resetDefine && resetDefine.dataEach) {\n for (let i = params.start; i < params.end; i++) {\n resetDefine.dataEach(data, i);\n }\n }\n else if (resetDefine && resetDefine.progress) {\n resetDefine.progress(params, data);\n }\n };\n}\n\nfunction seriesTaskCount(context: SeriesTaskContext): number {\n return context.data.count();\n}\n\n\n\n/**\n * Only some legacy stage handlers (usually in echarts extensions) are pure function.\n * To ensure that they can work normally, they should work in block mode, that is,\n * they should not be started util the previous tasks finished. So they cause the\n * progressive rendering disabled. We try to detect the series type, to narrow down\n * the block range to only the series type they concern, but not all series.\n */\nfunction detectSeriseType(legacyFunc: StageHandlerOverallReset): string {\n seriesType = null;\n try {\n // Assume there is no async when calling `eachSeriesByType`.\n legacyFunc(ecModelMock, apiMock);\n }\n catch (e) {\n }\n return seriesType;\n}\n\nconst ecModelMock: GlobalModel = {} as GlobalModel;\nconst apiMock: ExtensionAPI = {} as ExtensionAPI;\nlet seriesType;\n\nmockMethods(ecModelMock, GlobalModel);\nmockMethods(apiMock, ExtensionAPI);\necModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) {\n seriesType = type;\n};\necModelMock.eachComponent = function (cond: any): void {\n if (cond.mainType === 'series' && cond.subType) {\n seriesType = cond.subType;\n }\n};\n\nfunction mockMethods(target: any, Clz: any): void {\n /* eslint-disable */\n for (let name in Clz.prototype) {\n // Do not use hasOwnProperty\n target[name] = noop;\n }\n /* eslint-enable */\n}\n\nexport default Scheduler;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nconst colorAll = [\n '#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f',\n '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'\n];\n\nexport default {\n\n color: colorAll,\n\n colorLayer: [\n ['#37A2DA', '#ffd85c', '#fd7b5f'],\n ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'],\n ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'],\n colorAll\n ]\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nconst contrastColor = '#B9B8CE';\nconst backgroundColor = '#100C2A';\nconst axisCommon = function () {\n return {\n axisLine: {\n lineStyle: {\n color: contrastColor\n }\n },\n splitLine: {\n lineStyle: {\n color: '#484753'\n }\n },\n splitArea: {\n areaStyle: {\n color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']\n }\n },\n minorSplitLine: {\n lineStyle: {\n color: '#20203B'\n }\n }\n };\n};\n\nconst colorPalette = [\n '#4992ff',\n '#7cffb2',\n '#fddd60',\n '#ff6e76',\n '#58d9f9',\n '#05c091',\n '#ff8a45',\n '#8d48e3',\n '#dd79ff'\n];\nconst theme = {\n darkMode: true,\n\n color: colorPalette,\n backgroundColor: backgroundColor,\n axisPointer: {\n lineStyle: {\n color: '#817f91'\n },\n crossStyle: {\n color: '#817f91'\n },\n label: {\n // TODO Contrast of label backgorundColor\n color: '#fff'\n }\n },\n legend: {\n textStyle: {\n color: contrastColor\n }\n },\n textStyle: {\n color: contrastColor\n },\n title: {\n textStyle: {\n color: '#EEF1FA'\n },\n subtextStyle: {\n color: '#B9B8CE'\n }\n },\n toolbox: {\n iconStyle: {\n borderColor: contrastColor\n }\n },\n dataZoom: {\n borderColor: '#71708A',\n textStyle: {\n color: contrastColor\n },\n brushStyle: {\n color: 'rgba(135,163,206,0.3)'\n },\n handleStyle: {\n color: '#353450',\n borderColor: '#C5CBE3'\n },\n moveHandleStyle: {\n color: '#B0B6C3',\n opacity: 0.3\n },\n fillerColor: 'rgba(135,163,206,0.2)',\n emphasis: {\n handleStyle: {\n borderColor: '#91B7F2',\n color: '#4D587D'\n },\n moveHandleStyle: {\n color: '#636D9A',\n opacity: 0.7\n }\n },\n dataBackground: {\n lineStyle: {\n color: '#71708A',\n width: 1\n },\n areaStyle: {\n color: '#71708A'\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#87A3CE'\n },\n areaStyle: {\n color: '#87A3CE'\n }\n }\n },\n visualMap: {\n textStyle: {\n color: contrastColor\n }\n },\n timeline: {\n lineStyle: {\n color: contrastColor\n },\n label: {\n color: contrastColor\n },\n controlStyle: {\n color: contrastColor,\n borderColor: contrastColor\n }\n },\n calendar: {\n itemStyle: {\n color: backgroundColor\n },\n dayLabel: {\n color: contrastColor\n },\n monthLabel: {\n color: contrastColor\n },\n yearLabel: {\n color: contrastColor\n }\n },\n timeAxis: axisCommon(),\n logAxis: axisCommon(),\n valueAxis: axisCommon(),\n categoryAxis: axisCommon(),\n\n line: {\n symbol: 'circle'\n },\n graph: {\n color: colorPalette\n },\n gauge: {\n title: {\n color: contrastColor\n },\n axisLine: {\n lineStyle: {\n color: [[1, 'rgba(207,212,219,0.2)']]\n }\n },\n axisLabel: {\n color: contrastColor\n },\n detail: {\n color: '#EEF1FA'\n }\n },\n candlestick: {\n itemStyle: {\n color: '#f64e56',\n color0: '#54ea92',\n borderColor: '#f64e56',\n borderColor0: '#54ea92'\n // borderColor: '#ca2824',\n // borderColor0: '#09a443'\n }\n }\n};\n(theme.categoryAxis.splitLine as any).show = false;\n\nexport default theme;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { EventProcessor, EventQuery } from 'zrender/src/core/Eventful';\nimport { ECActionEvent, NormalizedEventQuery, EventQueryItem, ECElementEvent } from './types';\nimport ComponentModel from '../model/Component';\nimport ComponentView from '../view/Component';\nimport ChartView from '../view/Chart';\nimport * as zrUtil from 'zrender/src/core/util';\nimport { parseClassType } from './clazz';\nimport Element from 'zrender/src/Element';\n\n/**\n * Usage of query:\n * `chart.on('click', query, handler);`\n * The `query` can be:\n * + The component type query string, only `mainType` or `mainType.subType`,\n * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'.\n * + The component query object, like:\n * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`,\n * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`.\n * + The data query object, like:\n * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`.\n * + The other query object (cmponent customized query), like:\n * `{element: 'some'}` (only available in custom series).\n *\n * Caveat: If a prop in the `query` object is `null/undefined`, it is the\n * same as there is no such prop in the `query` object.\n */\nexport class ECEventProcessor implements EventProcessor {\n\n // These info required: targetEl, packedEvent, model, view\n eventInfo: {\n targetEl: Element;\n packedEvent: ECActionEvent | ECElementEvent;\n model: ComponentModel;\n view: ComponentView | ChartView;\n };\n\n normalizeQuery(query: EventQuery): NormalizedEventQuery {\n const cptQuery: EventQueryItem = {};\n const dataQuery: EventQueryItem = {};\n const otherQuery: EventQueryItem = {};\n\n // `query` is `mainType` or `mainType.subType` of component.\n if (zrUtil.isString(query)) {\n const condCptType = parseClassType(query);\n // `.main` and `.sub` may be ''.\n cptQuery.mainType = condCptType.main || null;\n cptQuery.subType = condCptType.sub || null;\n }\n // `query` is an object, convert to {mainType, index, name, id}.\n else {\n // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,\n // can not be used in `compomentModel.filterForExposedEvent`.\n const suffixes = ['Index', 'Name', 'Id'];\n const dataKeys = {name: 1, dataIndex: 1, dataType: 1};\n zrUtil.each(query, function (val, key) {\n let reserved = false;\n for (let i = 0; i < suffixes.length; i++) {\n const propSuffix = suffixes[i];\n const suffixPos = key.lastIndexOf(propSuffix);\n if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {\n const mainType = key.slice(0, suffixPos);\n // Consider `dataIndex`.\n if (mainType !== 'data') {\n cptQuery.mainType = mainType;\n cptQuery[propSuffix.toLowerCase()] = val;\n reserved = true;\n }\n }\n }\n if (dataKeys.hasOwnProperty(key)) {\n dataQuery[key] = val;\n reserved = true;\n }\n if (!reserved) {\n otherQuery[key] = val;\n }\n });\n }\n\n return {\n cptQuery: cptQuery,\n dataQuery: dataQuery,\n otherQuery: otherQuery\n };\n }\n\n filter(eventType: string, query: NormalizedEventQuery): boolean {\n // They should be assigned before each trigger call.\n const eventInfo = this.eventInfo;\n\n if (!eventInfo) {\n return true;\n }\n\n const targetEl = eventInfo.targetEl;\n const packedEvent = eventInfo.packedEvent;\n const model = eventInfo.model;\n const view = eventInfo.view;\n\n // For event like 'globalout'.\n if (!model || !view) {\n return true;\n }\n\n const cptQuery = query.cptQuery;\n const dataQuery = query.dataQuery;\n\n return check(cptQuery, model, 'mainType')\n && check(cptQuery, model, 'subType')\n && check(cptQuery, model, 'index', 'componentIndex')\n && check(cptQuery, model, 'name')\n && check(cptQuery, model, 'id')\n && check(dataQuery, packedEvent, 'name')\n && check(dataQuery, packedEvent, 'dataIndex')\n && check(dataQuery, packedEvent, 'dataType')\n && (!view.filterForExposedEvent || view.filterForExposedEvent(\n eventType, query.otherQuery, targetEl, packedEvent\n ));\n\n function check(\n query: EventQueryItem, host: any, prop: string, propOnHost?: string\n ): boolean {\n return query[prop] == null || host[propOnHost || prop] === query[prop];\n }\n }\n\n afterTrigger() {\n // Make sure the eventInfo wont be used in next trigger.\n this.eventInfo = null;\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {isFunction} from 'zrender/src/core/util';\nimport {\n StageHandler,\n SeriesOption,\n SymbolOptionMixin,\n SymbolSizeCallback,\n SymbolCallback,\n CallbackDataParams,\n SymbolRotateCallback,\n SymbolOffsetCallback\n} from '../util/types';\nimport SeriesData from '../data/SeriesData';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\n\n// Encoding visual for all series include which is filtered for legend drawing\nconst seriesSymbolTask: StageHandler = {\n\n createOnAllSeries: true,\n\n // For legend.\n performRawSeries: true,\n\n reset: function (\n seriesModel: SeriesModel>,\n ecModel: GlobalModel\n ) {\n const data = seriesModel.getData();\n\n if (seriesModel.legendIcon) {\n data.setVisual('legendIcon', seriesModel.legendIcon);\n }\n\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n\n const symbolType = seriesModel.get('symbol');\n const symbolSize = seriesModel.get('symbolSize');\n const keepAspect = seriesModel.get('symbolKeepAspect');\n const symbolRotate = seriesModel.get('symbolRotate');\n const symbolOffset = seriesModel.get('symbolOffset');\n\n const hasSymbolTypeCallback = isFunction(symbolType);\n const hasSymbolSizeCallback = isFunction(symbolSize);\n const hasSymbolRotateCallback = isFunction(symbolRotate);\n const hasSymbolOffsetCallback = isFunction(symbolOffset);\n const hasCallback = hasSymbolTypeCallback\n || hasSymbolSizeCallback\n || hasSymbolRotateCallback\n || hasSymbolOffsetCallback;\n const seriesSymbol = (!hasSymbolTypeCallback && symbolType) ? symbolType : seriesModel.defaultSymbol;\n const seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n const seriesSymbolRotate = !hasSymbolRotateCallback ? symbolRotate : null;\n const seriesSymbolOffset = !hasSymbolOffsetCallback ? symbolOffset : null;\n\n data.setVisual({\n legendIcon: seriesModel.legendIcon || seriesSymbol as string,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol as string,\n symbolSize: seriesSymbolSize as number | number[],\n symbolKeepAspect: keepAspect,\n symbolRotate: seriesSymbolRotate as number,\n symbolOffset: seriesSymbolOffset as string | number | (string | number)[]\n });\n\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data: SeriesData, idx: number) {\n const rawValue = seriesModel.getRawValue(idx);\n const params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(\n idx, 'symbol', (symbolType as SymbolCallback)(rawValue, params)\n );\n hasSymbolSizeCallback && data.setItemVisual(\n idx, 'symbolSize', (symbolSize as SymbolSizeCallback)(rawValue, params)\n );\n hasSymbolRotateCallback && data.setItemVisual(\n idx, 'symbolRotate', (symbolRotate as SymbolRotateCallback)(rawValue, params)\n );\n hasSymbolOffsetCallback && data.setItemVisual(\n idx, 'symbolOffset', (symbolOffset as SymbolOffsetCallback)(rawValue, params)\n );\n }\n\n return { dataEach: hasCallback ? dataEach : null };\n }\n};\n\nconst dataSymbolTask: StageHandler = {\n\n createOnAllSeries: true,\n\n // For legend.\n performRawSeries: true,\n\n reset: function (\n seriesModel: SeriesModel>,\n ecModel: GlobalModel\n ) {\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n function dataEach(data: SeriesData, idx: number) {\n const itemModel = data.getItemModel(idx);\n const itemSymbolType = itemModel.getShallow('symbol', true);\n const itemSymbolSize = itemModel.getShallow('symbolSize', true);\n const itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n const itemSymbolOffset = itemModel.getShallow('symbolOffset', true);\n const itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true);\n\n // If has item symbol\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n if (itemSymbolOffset != null) {\n data.setItemVisual(idx, 'symbolOffset', itemSymbolOffset);\n }\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n\n return { dataEach: data.hasItemOption ? dataEach : null };\n }\n};\n\nexport {seriesSymbolTask, dataSymbolTask};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * A mapping of visual provided to deverloper and visual stored in the List module.\n * To developer:\n * 'color', 'opacity', 'symbol', 'symbolSize'...\n * In the List module storage:\n * 'style', 'symbol', 'symbolSize'...\n */\nimport SeriesData from '../data/SeriesData';\n\n\nexport function getItemVisualFromData(data: SeriesData, dataIndex: number, key: string) {\n switch (key) {\n case 'color':\n const style = data.getItemVisual(dataIndex, 'style');\n return style[data.getVisual('drawType')];\n case 'opacity':\n return data.getItemVisual(dataIndex, 'style').opacity;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getItemVisual(dataIndex, key);\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}\n\nexport function getVisualFromData(data: SeriesData, key: string) {\n switch (key) {\n case 'color':\n const style = data.getVisual('style');\n return style[data.getVisual('drawType')];\n case 'opacity':\n return data.getVisual('style').opacity;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getVisual(key);\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}\n\nexport function setItemVisualFromData(data: SeriesData, dataIndex: number, key: string, value: any) {\n switch (key) {\n case 'color':\n // Make sure not sharing style object.\n const style = data.ensureUniqueItemVisual(dataIndex, 'style');\n style[data.getVisual('drawType')] = value;\n // Mark the color has been changed, not from palette anymore\n data.setItemVisual(dataIndex, 'colorFromPalette', false);\n break;\n case 'opacity':\n data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value;\n break;\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n data.setItemVisual(dataIndex, key, value);\n break;\n default:\n if (__DEV__) {\n console.warn(`Unknown visual type ${key}`);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Payload, SelectChangedPayload } from '../util/types';\nimport SeriesModel from '../model/Series';\nimport { extend, each, isArray } from 'zrender/src/core/util';\nimport GlobalModel from '../model/Global';\nimport { deprecateReplaceLog, deprecateLog } from '../util/log';\nimport Eventful from 'zrender/src/core/Eventful';\nimport type { EChartsType, registerAction } from '../core/echarts';\nimport { queryDataIndex } from '../util/model';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\n// Legacy data selection action.\n// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect\nexport function createLegacyDataSelectAction(seriesType: string, ecRegisterAction: typeof registerAction) {\n\n function getSeriesIndices(ecModel: GlobalModel, payload: Payload) {\n const seriesIndices: number[] = [];\n ecModel.eachComponent({\n mainType: 'series', subType: seriesType, query: payload\n }, function (seriesModel: SeriesModel) {\n seriesIndices.push(seriesModel.seriesIndex);\n });\n return seriesIndices;\n }\n\n each([\n [seriesType + 'ToggleSelect', 'toggleSelect'],\n [seriesType + 'Select', 'select'],\n [seriesType + 'UnSelect', 'unselect']\n ], function (eventsMap) {\n ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (__DEV__) {\n deprecateReplaceLog(payload.type, eventsMap[1]);\n }\n\n api.dispatchAction(extend(payload, {\n type: eventsMap[1],\n seriesIndex: getSeriesIndices(ecModel, payload)\n }));\n });\n });\n}\n\nfunction handleSeriesLegacySelectEvents(\n type: 'map' | 'pie',\n eventPostfix: 'selectchanged' | 'selected' | 'unselected',\n ecIns: EChartsType,\n ecModel: GlobalModel,\n payload: SelectChangedPayload\n) {\n const legacyEventName = type + eventPostfix;\n if (!ecIns.isSilent(legacyEventName)) {\n if (__DEV__) {\n deprecateLog(`event ${legacyEventName} is deprecated.`);\n }\n ecModel.eachComponent({\n mainType: 'series', subType: 'pie'\n }, function (seriesModel: SeriesModel) {\n const seriesIndex = seriesModel.seriesIndex;\n const selected = payload.selected;\n for (let i = 0; i < selected.length; i++) {\n if (selected[i].seriesIndex === seriesIndex) {\n const data = seriesModel.getData();\n const dataIndex = queryDataIndex(data, payload.fromActionPayload);\n ecIns.trigger(legacyEventName, {\n type: legacyEventName,\n seriesId: seriesModel.id,\n name: isArray(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex),\n selected: extend({}, seriesModel.option.selectedMap)\n });\n }\n }\n });\n }\n}\n\nexport function handleLegacySelectEvents(messageCenter: Eventful, ecIns: EChartsType, api: ExtensionAPI) {\n messageCenter.on('selectchanged', function (params: SelectChangedPayload) {\n const ecModel = api.getModel();\n if (params.isFromClick) {\n handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params);\n }\n else if (params.fromAction === 'select') {\n handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params);\n }\n else if (params.fromAction === 'unselect') {\n handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params);\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\n\nexport function findEventDispatcher(\n target: Element,\n det: (target: Element) => boolean,\n returnFirstMatch?: boolean\n) {\n let found;\n while (target) {\n if (det(target)) {\n found = target;\n if (returnFirstMatch) {\n break;\n }\n }\n\n target = target.__hostTarget || target.parent;\n }\n return found;\n}", "let wmUniqueIndex = Math.round(Math.random() * 9);\n\nconst supportDefineProperty = typeof Object.defineProperty === 'function';\n\nexport default class WeakMap {\n\n protected _id: string;\n\n constructor() {\n this._id = '__ec_inner_' + wmUniqueIndex++;\n }\n\n get(key: K): V {\n return (this._guard(key) as any)[this._id];\n }\n\n set(key: K, value: V): WeakMap {\n const target = this._guard(key) as any;\n if (supportDefineProperty) {\n Object.defineProperty(target, this._id, {\n value: value,\n enumerable: false,\n configurable: true\n });\n }\n else {\n target[this._id] = value;\n }\n return this;\n }\n\n delete(key: K): boolean {\n if (this.has(key)) {\n delete (this._guard(key) as any)[this._id];\n return true;\n }\n return false;\n }\n\n has(key: K): boolean {\n return !!(this._guard(key) as any)[this._id];\n }\n\n protected _guard(key: K): K {\n if (key !== Object(key)) {\n throw TypeError('Value of WeakMap is not a non-null object.');\n }\n return key;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Symbol factory\n\nimport { each, isArray, retrieve2 } from 'zrender/src/core/util';\nimport * as graphic from './graphic';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { calculateTextPosition } from 'zrender/src/contain/text';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { SymbolOptionMixin, ZRColor } from './types';\nimport { parsePercent } from './number';\n\nexport type ECSymbol = graphic.Path & {\n __isEmptyBrush?: boolean\n setColor: (color: ZRColor, innerColor?: ZRColor) => void\n getColor: () => ZRColor\n};\ntype SymbolCtor = { new(): ECSymbol };\ntype SymbolShapeMaker = (x: number, y: number, w: number, h: number, shape: Dictionary) => void;\n\n/**\n * Triangle shape\n * @inner\n */\nconst Triangle = graphic.Path.extend({\n type: 'triangle',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n const cx = shape.cx;\n const cy = shape.cy;\n const width = shape.width / 2;\n const height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy + height);\n path.lineTo(cx - width, cy + height);\n path.closePath();\n }\n});\n\n/**\n * Diamond shape\n * @inner\n */\nconst Diamond = graphic.Path.extend({\n type: 'diamond',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n const cx = shape.cx;\n const cy = shape.cy;\n const width = shape.width / 2;\n const height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy);\n path.lineTo(cx, cy + height);\n path.lineTo(cx - width, cy);\n path.closePath();\n }\n});\n\n/**\n * Pin shape\n * @inner\n */\nconst Pin = graphic.Path.extend({\n type: 'pin',\n shape: {\n // x, y on the cusp\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n buildPath: function (path, shape) {\n const x = shape.x;\n const y = shape.y;\n const w = shape.width / 5 * 3;\n // Height must be larger than width\n const h = Math.max(w, shape.height);\n const r = w / 2;\n\n // Dist on y with tangent point and circle center\n const dy = r * r / (h - r);\n const cy = y - h + r + dy;\n const angle = Math.asin(dy / r);\n // Dist on x with tangent point and circle center\n const dx = Math.cos(angle) * r;\n\n const tanX = Math.sin(angle);\n const tanY = Math.cos(angle);\n\n const cpLen = r * 0.6;\n const cpLen2 = r * 0.7;\n\n path.moveTo(x - dx, cy + dy);\n\n path.arc(\n x, cy, r,\n Math.PI - angle,\n Math.PI * 2 + angle\n );\n path.bezierCurveTo(\n x + dx - tanX * cpLen, cy + dy + tanY * cpLen,\n x, y - cpLen2,\n x, y\n );\n path.bezierCurveTo(\n x, y - cpLen2,\n x - dx + tanX * cpLen, cy + dy + tanY * cpLen,\n x - dx, cy + dy\n );\n path.closePath();\n }\n});\n\n/**\n * Arrow shape\n * @inner\n */\nconst Arrow = graphic.Path.extend({\n\n type: 'arrow',\n\n shape: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n buildPath: function (ctx, shape) {\n const height = shape.height;\n const width = shape.width;\n const x = shape.x;\n const y = shape.y;\n const dx = width / 3 * 2;\n ctx.moveTo(x, y);\n ctx.lineTo(x + dx, y + height);\n ctx.lineTo(x, y + height / 4 * 3);\n ctx.lineTo(x - dx, y + height);\n ctx.lineTo(x, y);\n ctx.closePath();\n }\n});\n\n/**\n * Map of path contructors\n */\n// TODO Use function to build symbol path.\nconst symbolCtors: Dictionary = {\n line: graphic.Line as unknown as SymbolCtor,\n\n rect: graphic.Rect as unknown as SymbolCtor,\n\n roundRect: graphic.Rect as unknown as SymbolCtor,\n\n square: graphic.Rect as unknown as SymbolCtor,\n\n circle: graphic.Circle as unknown as SymbolCtor,\n\n diamond: Diamond as unknown as SymbolCtor,\n\n pin: Pin as unknown as SymbolCtor,\n\n arrow: Arrow as unknown as SymbolCtor,\n\n triangle: Triangle as unknown as SymbolCtor\n};\n\n\nconst symbolShapeMakers: Dictionary = {\n\n line: function (x, y, w, h, shape: graphic.Line['shape']) {\n shape.x1 = x;\n shape.y1 = y + h / 2;\n shape.x2 = x + w;\n shape.y2 = y + h / 2;\n },\n\n rect: function (x, y, w, h, shape: graphic.Rect['shape']) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n },\n\n roundRect: function (x, y, w, h, shape: graphic.Rect['shape']) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n shape.r = Math.min(w, h) / 4;\n },\n\n square: function (x, y, w, h, shape: graphic.Rect['shape']) {\n const size = Math.min(w, h);\n shape.x = x;\n shape.y = y;\n shape.width = size;\n shape.height = size;\n },\n\n circle: function (x, y, w, h, shape: graphic.Circle['shape']) {\n // Put circle in the center of square\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.r = Math.min(w, h) / 2;\n },\n\n diamond: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n pin: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n arrow: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n\n triangle: function (x, y, w, h, shape: InstanceType['shape']) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n }\n};\n\nexport const symbolBuildProxies: Dictionary = {};\neach(symbolCtors, function (Ctor, name) {\n symbolBuildProxies[name] = new Ctor();\n});\n\nconst SymbolClz = graphic.Path.extend({\n\n type: 'symbol',\n\n shape: {\n symbolType: '',\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n\n calculateTextPosition(out, config, rect) {\n const res = calculateTextPosition(out, config, rect);\n const shape = this.shape;\n if (shape && shape.symbolType === 'pin' && config.position === 'inside') {\n res.y = rect.y + rect.height * 0.4;\n }\n return res;\n },\n\n buildPath(ctx, shape, inBundle) {\n let symbolType = shape.symbolType;\n if (symbolType !== 'none') {\n let proxySymbol = symbolBuildProxies[symbolType];\n if (!proxySymbol) {\n // Default rect\n symbolType = 'rect';\n proxySymbol = symbolBuildProxies[symbolType];\n }\n symbolShapeMakers[symbolType](\n shape.x, shape.y, shape.width, shape.height, proxySymbol.shape\n );\n proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);\n }\n }\n});\n\n// Provide setColor helper method to avoid determine if set the fill or stroke outside\nfunction symbolPathSetColor(this: ECSymbol, color: ZRColor, innerColor?: ZRColor) {\n if (this.type !== 'image') {\n const symbolStyle = this.style;\n if (this.__isEmptyBrush) {\n symbolStyle.stroke = color;\n symbolStyle.fill = innerColor || '#fff';\n // TODO Same width with lineStyle in LineView\n symbolStyle.lineWidth = 2;\n }\n else if (this.shape.symbolType === 'line') {\n symbolStyle.stroke = color;\n }\n else {\n symbolStyle.fill = color;\n }\n this.markRedraw();\n }\n}\n\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n */\nexport function createSymbol(\n symbolType: string,\n x: number,\n y: number,\n w: number,\n h: number,\n color?: ZRColor,\n // whether to keep the ratio of w/h,\n keepAspect?: boolean\n) {\n // TODO Support image object, DynamicImage.\n\n const isEmpty = symbolType.indexOf('empty') === 0;\n if (isEmpty) {\n symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);\n }\n let symbolPath: ECSymbol | graphic.Image;\n\n if (symbolType.indexOf('image://') === 0) {\n symbolPath = graphic.makeImage(\n symbolType.slice(8),\n new BoundingRect(x, y, w, h),\n keepAspect ? 'center' : 'cover'\n );\n }\n else if (symbolType.indexOf('path://') === 0) {\n symbolPath = graphic.makePath(\n symbolType.slice(7),\n {},\n new BoundingRect(x, y, w, h),\n keepAspect ? 'center' : 'cover'\n ) as unknown as ECSymbol;\n }\n else {\n symbolPath = new SymbolClz({\n shape: {\n symbolType: symbolType,\n x: x,\n y: y,\n width: w,\n height: h\n }\n }) as unknown as ECSymbol;\n }\n\n (symbolPath as ECSymbol).__isEmptyBrush = isEmpty;\n\n // TODO Should deprecate setColor\n (symbolPath as ECSymbol).setColor = symbolPathSetColor;\n\n if (color) {\n (symbolPath as ECSymbol).setColor(color);\n }\n\n return symbolPath as ECSymbol;\n}\n\nexport function normalizeSymbolSize(symbolSize: number | number[]): [number, number] {\n if (!isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n return [symbolSize[0] || 0, symbolSize[1] || 0];\n}\n\nexport function normalizeSymbolOffset(\n symbolOffset: SymbolOptionMixin['symbolOffset'],\n symbolSize: number[]\n): [number, number] {\n if (symbolOffset == null) {\n return;\n }\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n return [\n parsePercent(symbolOffset[0], symbolSize[0]) || 0,\n parsePercent(retrieve2(symbolOffset[1], symbolOffset[0]), symbolSize[1]) || 0\n ];\n}\n", "import { LinearGradientObject } from '../graphic/LinearGradient';\nimport { RadialGradientObject } from '../graphic/RadialGradient';\nimport { GradientObject } from '../graphic/Gradient';\nimport { RectLike } from '../core/BoundingRect';\nimport Path from '../graphic/Path';\n\nexport function createLinearGradient(\n this: void,\n ctx: CanvasRenderingContext2D,\n obj: LinearGradientObject,\n rect: RectLike\n) {\n let x = obj.x == null ? 0 : obj.x;\n let x2 = obj.x2 == null ? 1 : obj.x2;\n let y = obj.y == null ? 0 : obj.y;\n let y2 = obj.y2 == null ? 0 : obj.y2;\n\n if (!obj.global) {\n x = x * rect.width + rect.x;\n x2 = x2 * rect.width + rect.x;\n y = y * rect.height + rect.y;\n y2 = y2 * rect.height + rect.y;\n }\n\n // Fix NaN when rect is Infinity\n x = isNaN(x) ? 0 : x;\n x2 = isNaN(x2) ? 1 : x2;\n y = isNaN(y) ? 0 : y;\n y2 = isNaN(y2) ? 0 : y2;\n\n const canvasGradient = ctx.createLinearGradient(x, y, x2, y2);\n\n return canvasGradient;\n}\n\nexport function createRadialGradient(\n this: void,\n ctx: CanvasRenderingContext2D,\n obj: RadialGradientObject,\n rect: RectLike\n) {\n const width = rect.width;\n const height = rect.height;\n const min = Math.min(width, height);\n\n let x = obj.x == null ? 0.5 : obj.x;\n let y = obj.y == null ? 0.5 : obj.y;\n let r = obj.r == null ? 0.5 : obj.r;\n if (!obj.global) {\n x = x * width + rect.x;\n y = y * height + rect.y;\n r = r * min;\n }\n\n const canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);\n\n return canvasGradient;\n}\n\nexport function getCanvasGradient(this: void, ctx: CanvasRenderingContext2D, obj: GradientObject, rect: RectLike) {\n // TODO Cache?\n const canvasGradient = obj.type === 'radial'\n ? createRadialGradient(ctx, obj as RadialGradientObject, rect)\n : createLinearGradient(ctx, obj as LinearGradientObject, rect);\n\n const colorStops = obj.colorStops;\n for (let i = 0; i < colorStops.length; i++) {\n canvasGradient.addColorStop(\n colorStops[i].offset, colorStops[i].color\n );\n }\n return canvasGradient;\n}\n\nexport function isClipPathChanged(clipPaths: Path[], prevClipPaths: Path[]): boolean {\n // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array.\n if (clipPaths === prevClipPaths || (!clipPaths && !prevClipPaths)) {\n return false;\n }\n if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {\n return true;\n }\n for (let i = 0; i < clipPaths.length; i++) {\n if (clipPaths[i] !== prevClipPaths[i]) {\n return true;\n }\n }\n return false;\n}", "import { isArray, isNumber } from '../../core/util';\n\nexport function normalizeLineDash(lineType: any, lineWidth?: number): number[] | false {\n if (!lineType || lineType === 'solid' || !(lineWidth > 0)) {\n return null;\n }\n lineWidth = lineWidth || 1;\n return lineType === 'dashed' \n ? [4 * lineWidth, 2 * lineWidth]\n : lineType === 'dotted' \n ? [lineWidth]\n : isNumber(lineType)\n ? [lineType] : isArray(lineType) ? lineType : null;\n}", "import Displayable, { DEFAULT_COMMON_STYLE } from '../graphic/Displayable';\nimport PathProxy from '../core/PathProxy';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject, InnerImagePatternObject } from '../graphic/Pattern';\nimport { LinearGradientObject } from '../graphic/LinearGradient';\nimport { RadialGradientObject } from '../graphic/RadialGradient';\nimport { ZRCanvasRenderingContext } from '../core/types';\nimport { createOrUpdateImage, isImageReady } from '../graphic/helper/image';\nimport { getCanvasGradient, isClipPathChanged } from './helper';\nimport Path, { PathStyleProps } from '../graphic/Path';\nimport ZRImage, { ImageStyleProps } from '../graphic/Image';\nimport TSpan, {TSpanStyleProps} from '../graphic/TSpan';\nimport { DEFAULT_FONT } from '../contain/text';\nimport { MatrixArray } from '../core/matrix';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT } from '../graphic/constants';\n\nconst pathProxyForDraw = new PathProxy(true);\n\n// Not use el#hasStroke because style may be different.\nfunction styleHasStroke(style: PathStyleProps) {\n const stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n}\n\n// ignore lineWidth and must be string\n// Expected color but found '[' when color is gradient\nfunction isValidStrokeFillStyle(\n strokeOrFill: PathStyleProps['stroke'] | PathStyleProps['fill']\n): strokeOrFill is string {\n return typeof strokeOrFill === 'string' && strokeOrFill !== 'none';\n}\n\nfunction styleHasFill(style: PathStyleProps) {\n const fill = style.fill;\n return fill != null && fill !== 'none';\n}\nfunction doFillPath(ctx: CanvasRenderingContext2D, style: PathStyleProps) {\n if (style.fillOpacity != null && style.fillOpacity !== 1) {\n const originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.fillOpacity * style.opacity;\n ctx.fill();\n // Set back globalAlpha\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.fill();\n }\n}\n\nfunction doStrokePath(ctx: CanvasRenderingContext2D, style: PathStyleProps) {\n if (style.strokeOpacity != null && style.strokeOpacity !== 1) {\n const originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.strokeOpacity * style.opacity;\n ctx.stroke();\n // Set back globalAlpha\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.stroke();\n }\n}\n\nexport function createCanvasPattern(\n this: void,\n ctx: CanvasRenderingContext2D,\n pattern: ImagePatternObject,\n el: {dirty: () => void}\n): CanvasPattern {\n const image = createOrUpdateImage(pattern.image, (pattern as InnerImagePatternObject).__image, el);\n if (isImageReady(image)) {\n const canvasPattern = ctx.createPattern(image, pattern.repeat || 'repeat');\n if (\n typeof DOMMatrix === 'function'\n && canvasPattern.setTransform // setTransform may not be supported in some old devices.\n ) {\n const matrix = new DOMMatrix();\n matrix.rotateSelf(0, 0, (pattern.rotation || 0) / Math.PI * 180);\n matrix.scaleSelf((pattern.scaleX || 1), (pattern.scaleY || 1));\n matrix.translateSelf((pattern.x || 0), (pattern.y || 0));\n canvasPattern.setTransform(matrix);\n }\n return canvasPattern;\n }\n}\n\n// Draw Path Elements\nfunction brushPath(ctx: CanvasRenderingContext2D, el: Path, style: PathStyleProps, inBatch: boolean) {\n let hasStroke = styleHasStroke(style);\n let hasFill = styleHasFill(style);\n\n const strokePercent = style.strokePercent;\n const strokePart = strokePercent < 1;\n\n // TODO Reduce path memory cost.\n const firstDraw = !el.path;\n // Create path for each element when:\n // 1. Element has interactions.\n // 2. Element draw part of the line.\n if ((!el.silent || strokePart) && firstDraw) {\n el.createPathProxy();\n }\n\n const path = el.path || pathProxyForDraw;\n\n if (!inBatch) {\n const fill = style.fill;\n const stroke = style.stroke;\n\n const hasFillGradient = hasFill && !!(fill as GradientObject).colorStops;\n const hasStrokeGradient = hasStroke && !!(stroke as GradientObject).colorStops;\n const hasFillPattern = hasFill && !!(fill as ImagePatternObject).image;\n const hasStrokePattern = hasStroke && !!(stroke as ImagePatternObject).image;\n\n let fillGradient;\n let strokeGradient;\n let fillPattern;\n let strokePattern;\n let rect;\n if (hasFillGradient || hasStrokeGradient) {\n rect = el.getBoundingRect();\n }\n // Update gradient because bounding rect may changed\n if (hasFillGradient) {\n fillGradient = el.__dirty\n ? getCanvasGradient(ctx, fill as (LinearGradientObject | RadialGradientObject), rect)\n : el.__canvasFillGradient;\n // No need to clear cache when fill is not gradient.\n // It will always been updated when fill changed back to gradient.\n el.__canvasFillGradient = fillGradient;\n }\n if (hasStrokeGradient) {\n strokeGradient = el.__dirty\n ? getCanvasGradient(ctx, stroke as (LinearGradientObject | RadialGradientObject), rect)\n : el.__canvasStrokeGradient;\n el.__canvasStrokeGradient = strokeGradient;\n }\n if (hasFillPattern) {\n // Pattern might be null if image not ready (even created from dataURI)\n fillPattern = (el.__dirty || !el.__canvasFillPattern)\n ? createCanvasPattern(ctx, fill as ImagePatternObject, el)\n : el.__canvasFillPattern;\n el.__canvasFillPattern = fillPattern;\n }\n if (hasStrokePattern) {\n // Pattern might be null if image not ready (even created from dataURI)\n strokePattern = (el.__dirty || !el.__canvasStrokePattern)\n ? createCanvasPattern(ctx, stroke as ImagePatternObject, el)\n : el.__canvasStrokePattern;\n el.__canvasStrokePattern = fillPattern;\n }\n // Use the gradient or pattern\n if (hasFillGradient) {\n // PENDING If may have affect the state\n ctx.fillStyle = fillGradient;\n }\n else if (hasFillPattern) {\n if (fillPattern) { // createCanvasPattern may return false if image is not ready.\n ctx.fillStyle = fillPattern;\n }\n else {\n // Don't fill if image is not ready\n hasFill = false;\n }\n }\n if (hasStrokeGradient) {\n ctx.strokeStyle = strokeGradient;\n }\n else if (hasStrokePattern) {\n if (strokePattern) {\n ctx.strokeStyle = strokePattern;\n }\n else {\n // Don't stroke if image is not ready\n hasStroke = false;\n }\n }\n }\n\n let lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n let lineDashOffset = style.lineDashOffset;\n\n const ctxLineDash = !!ctx.setLineDash;\n\n // Update path sx, sy\n const scale = el.getGlobalScale();\n path.setScale(scale[0], scale[1], el.segmentIgnoreThreshold);\n\n if (lineDash) {\n const lineScale = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale && lineScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale;\n });\n lineDashOffset /= lineScale;\n }\n }\n\n let needsRebuild = true;\n // Proxy context\n // Rebuild path in following 2 cases\n // 1. Path is dirty\n // 2. Path needs javascript implemented lineDash stroking.\n // In this case, lineDash information will not be saved in PathProxy\n if (firstDraw || (el.__dirty & SHAPE_CHANGED_BIT)\n || (lineDash && !ctxLineDash && hasStroke)\n ) {\n path.setDPR((ctx as any).dpr);\n if (strokePart) {\n // Use rebuildPath for percent stroke, so no context.\n path.setContext(null);\n }\n else {\n path.setContext(ctx);\n needsRebuild = false;\n }\n path.reset();\n\n // Setting line dash before build path\n if (lineDash && !ctxLineDash) {\n path.setLineDash(lineDash);\n path.setLineDashOffset(lineDashOffset);\n }\n\n el.buildPath(path, el.shape, inBatch);\n path.toStatic();\n\n // Clear path dirty flag\n el.pathUpdated();\n }\n\n // Not support separate fill and stroke. For the compatibility of SVG\n if (needsRebuild) {\n path.rebuildPath(ctx, strokePart ? strokePercent : 1);\n }\n\n if (lineDash && ctxLineDash) {\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (!inBatch) {\n if (style.strokeFirst) {\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n if (hasFill) {\n doFillPath(ctx, style);\n }\n }\n else {\n if (hasFill) {\n doFillPath(ctx, style);\n }\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n }\n }\n\n if (lineDash && ctxLineDash) {\n // PENDING\n // Remove lineDash\n ctx.setLineDash([]);\n }\n}\n\n// Draw Image Elements\nfunction brushImage(ctx: CanvasRenderingContext2D, el: ZRImage, style: ImageStyleProps) {\n const image = el.__image = createOrUpdateImage(\n style.image,\n el.__image,\n el,\n el.onload\n );\n\n if (!image || !isImageReady(image)) {\n return;\n }\n\n const x = style.x || 0;\n const y = style.y || 0;\n let width = el.getWidth();\n let height = el.getHeight();\n const aspect = image.width / image.height;\n if (width == null && height != null) {\n // Keep image/height ratio\n width = height * aspect;\n }\n else if (height == null && width != null) {\n height = width / aspect;\n }\n else if (width == null && height == null) {\n width = image.width;\n height = image.height;\n }\n\n if (style.sWidth && style.sHeight) {\n const sx = style.sx || 0;\n const sy = style.sy || 0;\n ctx.drawImage(\n image,\n sx, sy, style.sWidth, style.sHeight,\n x, y, width, height\n );\n }\n else if (style.sx && style.sy) {\n const sx = style.sx;\n const sy = style.sy;\n const sWidth = width - sx;\n const sHeight = height - sy;\n ctx.drawImage(\n image,\n sx, sy, sWidth, sHeight,\n x, y, width, height\n );\n }\n else {\n ctx.drawImage(image, x, y, width, height);\n }\n}\n\n// Draw Text Elements\nfunction brushText(ctx: CanvasRenderingContext2D, el: TSpan, style: TSpanStyleProps) {\n\n let text = style.text;\n // Convert to string\n text != null && (text += '');\n\n if (text) {\n ctx.font = style.font || DEFAULT_FONT;\n ctx.textAlign = style.textAlign;\n ctx.textBaseline = style.textBaseline;\n\n let hasLineDash;\n if (ctx.setLineDash) {\n let lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n let lineDashOffset = style.lineDashOffset;\n if (lineDash) {\n const lineScale = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale && lineScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale;\n });\n lineDashOffset /= lineScale;\n }\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n\n hasLineDash = true;\n }\n }\n\n if (style.strokeFirst) {\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n }\n else {\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n }\n\n if (hasLineDash) {\n // Remove lineDash\n ctx.setLineDash([]);\n }\n }\n\n}\n\nconst SHADOW_NUMBER_PROPS = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'] as const;\nconst STROKE_PROPS = [\n ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]\n] as const;\n\ntype AllStyleOption = PathStyleProps | TSpanStyleProps | ImageStyleProps;\n// type ShadowPropNames = typeof SHADOW_PROPS[number][0];\n// type StrokePropNames = typeof STROKE_PROPS[number][0];\n// type DrawPropNames = typeof DRAW_PROPS[number][0];\n\nfunction bindCommonProps(\n ctx: CanvasRenderingContext2D,\n style: AllStyleOption,\n prevStyle: AllStyleOption,\n forceSetAll: boolean,\n scope: BrushScope\n): boolean {\n let styleChanged = false;\n\n if (!forceSetAll) {\n prevStyle = prevStyle || {};\n\n // Shared same style.\n if (style === prevStyle) {\n return false;\n }\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // Ensure opacity is between 0 ~ 1. Invalid opacity will lead to a failure set and use the leaked opacity from the previous.\n const opacity = Math.max(Math.min(style.opacity, 1), 0);\n ctx.globalAlpha = isNaN(opacity) ? DEFAULT_COMMON_STYLE.opacity : opacity;\n }\n\n if (forceSetAll || style.blend !== prevStyle.blend) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;\n }\n for (let i = 0; i < SHADOW_NUMBER_PROPS.length; i++) {\n const propName = SHADOW_NUMBER_PROPS[i];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // FIXME Invalid property value will cause style leak from previous element.\n ctx[propName] = (ctx as ZRCanvasRenderingContext).dpr * (style[propName] || 0);\n }\n }\n if (forceSetAll || style.shadowColor !== prevStyle.shadowColor) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.shadowColor = style.shadowColor || DEFAULT_COMMON_STYLE.shadowColor;\n }\n return styleChanged;\n}\n\nfunction bindPathAndTextCommonStyle(\n ctx: CanvasRenderingContext2D,\n el: TSpan | Path,\n prevEl: TSpan | Path,\n forceSetAll: boolean,\n scope: BrushScope\n) {\n const style = getStyle(el, scope.inHover);\n const prevStyle = forceSetAll\n ? null\n : (prevEl && getStyle(prevEl, scope.inHover) || {});\n // Shared same style. prevStyle will be null if forceSetAll.\n if (style === prevStyle) {\n return false;\n }\n\n let styleChanged = bindCommonProps(ctx, style, prevStyle, forceSetAll, scope);\n\n if (forceSetAll || style.fill !== prevStyle.fill) {\n if (!styleChanged) {\n // Flush before set\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n isValidStrokeFillStyle(style.fill) && (ctx.fillStyle = style.fill);\n }\n if (forceSetAll || style.stroke !== prevStyle.stroke) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n isValidStrokeFillStyle(style.stroke) && (ctx.strokeStyle = style.stroke);\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;\n }\n if (el.hasStroke()) {\n const lineWidth = style.lineWidth;\n const newLineWidth = lineWidth / (\n (style.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1\n );\n if (ctx.lineWidth !== newLineWidth) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.lineWidth = newLineWidth;\n }\n }\n\n for (let i = 0; i < STROKE_PROPS.length; i++) {\n const prop = STROKE_PROPS[i];\n const propName = prop[0];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n // FIXME Invalid property value will cause style leak from previous element.\n (ctx as any)[propName] = style[propName] || prop[1];\n }\n }\n\n return styleChanged;\n}\n\nfunction bindImageStyle(\n ctx: CanvasRenderingContext2D,\n el: ZRImage,\n prevEl: ZRImage,\n // forceSetAll must be true if prevEl is null\n forceSetAll: boolean,\n scope: BrushScope\n) {\n return bindCommonProps(\n ctx,\n getStyle(el, scope.inHover),\n prevEl && getStyle(prevEl, scope.inHover),\n forceSetAll,\n scope\n );\n}\n\nfunction setContextTransform(ctx: CanvasRenderingContext2D, el: Displayable) {\n const m = el.transform;\n const dpr = (ctx as ZRCanvasRenderingContext).dpr || 1;\n if (m) {\n ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);\n }\n else {\n ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n}\n\nfunction updateClipStatus(clipPaths: Path[], ctx: CanvasRenderingContext2D, scope: BrushScope) {\n let allClipped = false;\n for (let i = 0; i < clipPaths.length; i++) {\n const clipPath = clipPaths[i];\n // Ignore draw following elements if clipPath has zero area.\n allClipped = allClipped || clipPath.isZeroArea();\n\n setContextTransform(ctx, clipPath);\n ctx.beginPath();\n clipPath.buildPath(ctx, clipPath.shape);\n ctx.clip();\n }\n scope.allClipped = allClipped;\n}\n\nfunction isTransformChanged(m0: MatrixArray, m1: MatrixArray): boolean {\n if (m0 && m1) {\n return m0[0] !== m1[0]\n || m0[1] !== m1[1]\n || m0[2] !== m1[2]\n || m0[3] !== m1[3]\n || m0[4] !== m1[4]\n || m0[5] !== m1[5];\n }\n else if (!m0 && !m1) { // All identity matrix.\n return false;\n }\n\n return true;\n}\n\nconst DRAW_TYPE_PATH = 1;\nconst DRAW_TYPE_IMAGE = 2;\nconst DRAW_TYPE_TEXT = 3;\nconst DRAW_TYPE_INCREMENTAL = 4;\n\nexport type BrushScope = {\n inHover: boolean\n\n // width / height of viewport\n viewWidth: number\n viewHeight: number\n\n // Status for clipping\n prevElClipPaths?: Path[]\n prevEl?: Displayable\n allClipped?: boolean // If the whole element can be clipped\n\n // Status for batching\n batchFill?: string\n batchStroke?: string\n\n lastDrawType?: number\n}\n\n// If path can be batched\nfunction canPathBatch(style: PathStyleProps) {\n\n const hasFill = styleHasFill(style);\n const hasStroke = styleHasStroke(style);\n\n return !(\n // Line dash is dynamically set in brush function.\n style.lineDash\n // Can't batch if element is both set fill and stroke. Or both not set\n || !(+hasFill ^ +hasStroke)\n // Can't batch if element is drawn with gradient or pattern.\n || (hasFill && typeof style.fill !== 'string')\n || (hasStroke && typeof style.stroke !== 'string')\n // Can't batch if element only stroke part of line.\n || style.strokePercent < 1\n // Has stroke or fill opacity\n || style.strokeOpacity < 1\n || style.fillOpacity < 1\n );\n}\n\nfunction flushPathDrawn(ctx: CanvasRenderingContext2D, scope: BrushScope) {\n // Force flush all after drawn last element\n scope.batchFill && ctx.fill();\n scope.batchStroke && ctx.stroke();\n scope.batchFill = '';\n scope.batchStroke = '';\n}\n\nfunction getStyle(el: Displayable, inHover?: boolean) {\n return inHover ? (el.__hoverStyle || el.style) : el.style;\n}\n\nexport function brushSingle(ctx: CanvasRenderingContext2D, el: Displayable) {\n brush(ctx, el, { inHover: false, viewWidth: 0, viewHeight: 0 }, true);\n}\n\n// Brush different type of elements.\nexport function brush(\n ctx: CanvasRenderingContext2D,\n el: Displayable,\n scope: BrushScope,\n isLast: boolean\n) {\n const m = el.transform;\n\n if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, false, false)) {\n // Needs to mark el rendered.\n // Or this element will always been rendered in progressive rendering.\n // But other dirty bit should not be cleared, otherwise it cause the shape\n // can not be updated in this case.\n el.__dirty &= ~REDARAW_BIT;\n el.__isRendered = false;\n return;\n }\n\n // HANDLE CLIPPING\n const clipPaths = el.__clipPaths;\n const prevElClipPaths = scope.prevElClipPaths;\n\n let forceSetTransform = false;\n let forceSetStyle = false;\n // Optimize when clipping on group with several elements\n if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {\n // If has previous clipping state, restore from it\n if (prevElClipPaths && prevElClipPaths.length) {\n // Flush restore\n flushPathDrawn(ctx, scope);\n\n ctx.restore();\n // Must set all style and transform because context changed by restore\n forceSetStyle = forceSetTransform = true;\n\n scope.prevElClipPaths = null;\n scope.allClipped = false;\n // Reset prevEl since context has been restored\n scope.prevEl = null;\n }\n // New clipping state\n if (clipPaths && clipPaths.length) {\n // Flush before clip\n flushPathDrawn(ctx, scope);\n\n ctx.save();\n updateClipStatus(clipPaths, ctx, scope);\n // Must set transform because it's changed when clip.\n forceSetTransform = true;\n }\n scope.prevElClipPaths = clipPaths;\n }\n\n // Not rendering elements if it's clipped by a zero area path.\n // Or it may cause bug on some version of IE11 (like 11.0.9600.178**),\n // where exception \"unexpected call to method or property access\"\n // might be thrown when calling ctx.fill or ctx.stroke after a path\n // whose area size is zero is drawn and ctx.clip() is called and\n // shadowBlur is set. See #4572, #3112, #5777.\n // (e.g.,\n // ctx.moveTo(10, 10);\n // ctx.lineTo(20, 10);\n // ctx.closePath();\n // ctx.clip();\n // ctx.shadowBlur = 10;\n // ...\n // ctx.fill();\n // )\n if (scope.allClipped) {\n el.__isRendered = false;\n return;\n }\n\n // START BRUSH\n el.beforeBrush && el.beforeBrush();\n el.innerBeforeBrush();\n\n const prevEl = scope.prevEl;\n // TODO el type changed.\n if (!prevEl) {\n forceSetStyle = forceSetTransform = true;\n }\n\n let canBatchPath = el instanceof Path // Only path supports batch\n && el.autoBatch\n && canPathBatch(el.style);\n\n if (forceSetTransform || isTransformChanged(m, prevEl.transform)) {\n // Flush\n flushPathDrawn(ctx, scope);\n setContextTransform(ctx, el);\n }\n else if (!canBatchPath) {\n // Flush\n flushPathDrawn(ctx, scope);\n }\n\n const style = getStyle(el, scope.inHover);\n if (el instanceof Path) {\n // PENDING do we need to rebind all style if displayable type changed?\n if (scope.lastDrawType !== DRAW_TYPE_PATH) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_PATH;\n }\n\n bindPathAndTextCommonStyle(ctx, el as Path, prevEl as Path, forceSetStyle, scope);\n // Begin path at start\n if (!canBatchPath || (!scope.batchFill && !scope.batchStroke)) {\n ctx.beginPath();\n }\n brushPath(ctx, el as Path, style, canBatchPath);\n\n if (canBatchPath) {\n scope.batchFill = style.fill as string || '';\n scope.batchStroke = style.stroke as string || '';\n }\n }\n else {\n if (el instanceof TSpan) {\n if (scope.lastDrawType !== DRAW_TYPE_TEXT) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_TEXT;\n }\n\n bindPathAndTextCommonStyle(ctx, el as TSpan, prevEl as TSpan, forceSetStyle, scope);\n brushText(ctx, el as TSpan, style);\n }\n else if (el instanceof ZRImage) {\n if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_IMAGE;\n }\n\n bindImageStyle(ctx, el as ZRImage, prevEl as ZRImage, forceSetStyle, scope);\n brushImage(ctx, el as ZRImage, style);\n }\n else if (el instanceof IncrementalDisplayable) {\n if (scope.lastDrawType !== DRAW_TYPE_INCREMENTAL) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_INCREMENTAL;\n }\n\n brushIncremental(ctx, el, scope);\n }\n\n }\n\n if (canBatchPath && isLast) {\n flushPathDrawn(ctx, scope);\n }\n\n el.innerAfterBrush();\n el.afterBrush && el.afterBrush();\n\n scope.prevEl = el;\n\n // Mark as painted.\n el.__dirty = 0;\n el.__isRendered = true;\n}\n\nfunction brushIncremental(\n ctx: CanvasRenderingContext2D,\n el: IncrementalDisplayable,\n scope: BrushScope\n) {\n let displayables = el.getDisplayables();\n let temporalDisplayables = el.getTemporalDisplayables();\n // Provide an inner scope.\n // Save current context and restore after brushed.\n ctx.save();\n let innerScope: BrushScope = {\n prevElClipPaths: null,\n prevEl: null,\n allClipped: false,\n viewWidth: scope.viewWidth,\n viewHeight: scope.viewHeight,\n inHover: scope.inHover\n };\n let i;\n let len;\n // Render persistant displayables.\n for (i = el.getCursor(), len = displayables.length; i < len; i++) {\n const displayable = displayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n // Render temporary displayables.\n for (let i = 0, len = temporalDisplayables.length; i < len; i++) {\n const displayable = temporalDisplayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n el.clearTemporalDisplayables();\n el.notClear = true;\n\n ctx.restore();\n}", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport WeakMap from 'zrender/src/core/WeakMap';\nimport { ImagePatternObject, PatternObject, SVGPatternObject } from 'zrender/src/graphic/Pattern';\nimport LRU from 'zrender/src/core/LRU';\nimport {defaults, createCanvas, map, isArray} from 'zrender/src/core/util';\nimport {getLeastCommonMultiple} from './number';\nimport {createSymbol} from './symbol';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport type SVGPainter from 'zrender/src/svg/Painter';\nimport { brushSingle } from 'zrender/src/canvas/graphic';\nimport {DecalDashArrayX, DecalDashArrayY, InnerDecalObject, DecalObject} from './types';\n\nconst decalMap = new WeakMap();\n\nconst decalCache = new LRU(100);\n\nconst decalKeys = [\n 'symbol', 'symbolSize', 'symbolKeepAspect',\n 'color', 'backgroundColor',\n 'dashArrayX', 'dashArrayY',\n 'maxTileWidth', 'maxTileHeight'\n];\n\n/**\n * Create or update pattern image from decal options\n *\n * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal\n * @return {Pattern} pattern with generated image, null if no decal\n */\nexport function createOrUpdatePatternFromDecal(\n decalObject: InnerDecalObject | 'none',\n api: ExtensionAPI\n): PatternObject {\n if (decalObject === 'none') {\n return null;\n }\n\n const dpr = api.getDevicePixelRatio();\n const zr = api.getZr();\n const isSVG = zr.painter.type === 'svg';\n\n if (decalObject.dirty) {\n decalMap.delete(decalObject);\n }\n\n const oldPattern = decalMap.get(decalObject);\n if (oldPattern) {\n return oldPattern;\n }\n\n const decalOpt = defaults(decalObject, {\n symbol: 'rect',\n symbolSize: 1,\n symbolKeepAspect: true,\n color: 'rgba(0, 0, 0, 0.2)',\n backgroundColor: null,\n dashArrayX: 5,\n dashArrayY: 5,\n rotation: 0,\n maxTileWidth: 512,\n maxTileHeight: 512\n } as DecalObject);\n if (decalOpt.backgroundColor === 'none') {\n decalOpt.backgroundColor = null;\n }\n\n const pattern: PatternObject = { repeat: 'repeat' } as PatternObject;\n setPatternnSource(pattern);\n pattern.rotation = decalOpt.rotation;\n pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr;\n\n decalMap.set(decalObject, pattern);\n\n decalObject.dirty = false;\n\n return pattern;\n\n function setPatternnSource(pattern: PatternObject) {\n const keys = [dpr];\n let isValidKey = true;\n for (let i = 0; i < decalKeys.length; ++i) {\n const value = (decalOpt as any)[decalKeys[i]];\n const valueType = typeof value;\n if (value != null\n && !isArray(value)\n && valueType !== 'string'\n && valueType !== 'number'\n && valueType !== 'boolean'\n ) {\n isValidKey = false;\n break;\n }\n keys.push(value);\n }\n\n let cacheKey;\n if (isValidKey) {\n cacheKey = keys.join(',') + (isSVG ? '-svg' : '');\n const cache = decalCache.get(cacheKey);\n if (cache) {\n isSVG ? (pattern as SVGPatternObject).svgElement = cache as SVGElement\n : (pattern as ImagePatternObject).image = cache as HTMLCanvasElement;\n }\n }\n\n const dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX);\n const dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY);\n const symbolArray = normalizeSymbolArray(decalOpt.symbol);\n const lineBlockLengthsX = getLineBlockLengthX(dashArrayX);\n const lineBlockLengthY = getLineBlockLengthY(dashArrayY);\n\n const canvas = !isSVG && createCanvas();\n const svgRoot = isSVG && (zr.painter as SVGPainter).createSVGElement('g');\n const pSize = getPatternSize();\n let ctx: CanvasRenderingContext2D;\n if (canvas) {\n canvas.width = pSize.width * dpr;\n canvas.height = pSize.height * dpr;\n ctx = canvas.getContext('2d');\n }\n brushDecal();\n\n if (isValidKey) {\n decalCache.put(cacheKey, canvas || svgRoot);\n }\n\n (pattern as ImagePatternObject).image = canvas;\n (pattern as SVGPatternObject).svgElement = svgRoot;\n (pattern as SVGPatternObject).svgWidth = pSize.width;\n (pattern as SVGPatternObject).svgHeight = pSize.height;\n\n /**\n * Get minumum length that can make a repeatable pattern.\n *\n * @return {Object} pattern width and height\n */\n function getPatternSize(): {\n width: number,\n height: number\n } {\n /**\n * For example, if dash is [[3, 2], [2, 1]] for X, it looks like\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * So the minumum length of X is 15,\n * which is the least common multiple of `3 + 2` and `2 + 1`\n * |--- --- --- |--- --- ...\n * |-- -- -- -- -- |-- -- -- ...\n */\n let width = 1;\n for (let i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) {\n width = getLeastCommonMultiple(width, lineBlockLengthsX[i]);\n }\n\n let symbolRepeats = 1;\n for (let i = 0, xlen = symbolArray.length; i < xlen; ++i) {\n symbolRepeats = getLeastCommonMultiple(symbolRepeats, symbolArray[i].length);\n }\n width *= symbolRepeats;\n\n const height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length;\n\n if (__DEV__) {\n const warn = (attrName: string) => {\n /* eslint-disable-next-line */\n console.warn(`Calculated decal size is greater than ${attrName} due to decal option settings so ${attrName} is used for the decal size. Please consider changing the decal option to make a smaller decal or set ${attrName} to be larger to avoid incontinuity.`);\n };\n if (width > decalOpt.maxTileWidth) {\n warn('maxTileWidth');\n }\n if (height > decalOpt.maxTileHeight) {\n warn('maxTileHeight');\n }\n }\n\n return {\n width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)),\n height: Math.max(1, Math.min(height, decalOpt.maxTileHeight))\n };\n }\n\n function brushDecal() {\n if (ctx) {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (decalOpt.backgroundColor) {\n ctx.fillStyle = decalOpt.backgroundColor;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n }\n }\n\n let ySum = 0;\n for (let i = 0; i < dashArrayY.length; ++i) {\n ySum += dashArrayY[i];\n }\n if (ySum <= 0) {\n // dashArrayY is 0, draw nothing\n return;\n }\n\n let y = -lineBlockLengthY;\n let yId = 0;\n let yIdTotal = 0;\n let xId0 = 0;\n while (y < pSize.height) {\n if (yId % 2 === 0) {\n const symbolYId = (yIdTotal / 2) % symbolArray.length;\n let x = 0;\n let xId1 = 0;\n let xId1Total = 0;\n while (x < pSize.width * 2) {\n let xSum = 0;\n for (let i = 0; i < dashArrayX[xId0].length; ++i) {\n xSum += dashArrayX[xId0][i];\n }\n if (xSum <= 0) {\n // Skip empty line\n break;\n }\n\n // E.g., [15, 5, 20, 5] draws only for 15 and 20\n if (xId1 % 2 === 0) {\n const size = (1 - decalOpt.symbolSize) * 0.5;\n const left = x + dashArrayX[xId0][xId1] * size;\n const top = y + dashArrayY[yId] * size;\n const width = dashArrayX[xId0][xId1] * decalOpt.symbolSize;\n const height = dashArrayY[yId] * decalOpt.symbolSize;\n const symbolXId = (xId1Total / 2) % symbolArray[symbolYId].length;\n\n brushSymbol(left, top, width, height, symbolArray[symbolYId][symbolXId]);\n }\n\n x += dashArrayX[xId0][xId1];\n ++xId1Total;\n ++xId1;\n if (xId1 === dashArrayX[xId0].length) {\n xId1 = 0;\n }\n }\n\n ++xId0;\n if (xId0 === dashArrayX.length) {\n xId0 = 0;\n }\n }\n y += dashArrayY[yId];\n\n ++yIdTotal;\n ++yId;\n if (yId === dashArrayY.length) {\n yId = 0;\n }\n }\n\n function brushSymbol(x: number, y: number, width: number, height: number, symbolType: string) {\n const scale = isSVG ? 1 : dpr;\n const symbol = createSymbol(\n symbolType,\n x * scale,\n y * scale,\n width * scale,\n height * scale,\n decalOpt.color,\n decalOpt.symbolKeepAspect\n );\n if (isSVG) {\n svgRoot.appendChild((zr.painter as SVGPainter).paintOne(symbol));\n }\n else {\n // Paint to canvas for all other renderers.\n brushSingle(ctx, symbol);\n }\n }\n }\n }\n\n}\n\n/**\n * Convert symbol array into normalized array\n *\n * @param {string | (string | string[])[]} symbol symbol input\n * @return {string[][]} normolized symbol array\n */\nfunction normalizeSymbolArray(symbol: string | (string | string[])[]): string[][] {\n if (!symbol || (symbol as string[]).length === 0) {\n return [['rect']];\n }\n if (typeof symbol === 'string') {\n return [[symbol]];\n }\n\n let isAllString = true;\n for (let i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] !== 'string') {\n isAllString = false;\n break;\n }\n }\n if (isAllString) {\n return normalizeSymbolArray([symbol as string[]]);\n }\n\n const result: string[][] = [];\n for (let i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] === 'string') {\n result.push([symbol[i] as string]);\n }\n else {\n result.push(symbol[i] as string[]);\n }\n }\n return result;\n}\n\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayX} dash dash input\n * @return {number[][]} normolized dash array\n */\nfunction normalizeDashArrayX(dash: DecalDashArrayX): number[][] {\n if (!dash || (dash as number[]).length === 0) {\n return [[0, 0]];\n }\n if (typeof dash === 'number') {\n const dashValue = Math.ceil(dash);\n return [[dashValue, dashValue]];\n }\n\n /**\n * [20, 5] should be normalized into [[20, 5]],\n * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]\n */\n let isAllNumber = true;\n for (let i = 0; i < dash.length; ++i) {\n if (typeof dash[i] !== 'number') {\n isAllNumber = false;\n break;\n }\n }\n if (isAllNumber) {\n return normalizeDashArrayX([dash as number[]]);\n }\n\n const result: number[][] = [];\n for (let i = 0; i < dash.length; ++i) {\n if (typeof dash[i] === 'number') {\n const dashValue = Math.ceil(dash[i] as number);\n result.push([dashValue, dashValue]);\n }\n else {\n const dashValue = map(dash[i] as number[], n => Math.ceil(n));\n if (dashValue.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // so normalize it to be [4, 2, 1, 4, 2, 1]\n result.push(dashValue.concat(dashValue));\n }\n else {\n result.push(dashValue);\n }\n }\n }\n return result;\n}\n\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayY} dash dash input\n * @return {number[]} normolized dash array\n */\nfunction normalizeDashArrayY(dash: DecalDashArrayY): number[] {\n if (!dash || typeof dash === 'object' && dash.length === 0) {\n return [0, 0];\n }\n if (typeof dash === 'number') {\n const dashValue = Math.ceil(dash);\n return [dashValue, dashValue];\n }\n\n const dashValue = map(dash as number[], n => Math.ceil(n));\n return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;\n}\n\n/**\n * Get block length of each line. A block is the length of dash line and space.\n * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after\n * that, so the block length of this line is 5.\n *\n * @param {number[][]} dash dash arrary of X or Y\n * @return {number[]} block length of each line\n */\nfunction getLineBlockLengthX(dash: number[][]): number[] {\n return map(dash, function (line) {\n return getLineBlockLengthY(line);\n });\n}\n\nfunction getLineBlockLengthY(dash: number[]): number {\n let blockLength = 0;\n for (let i = 0; i < dash.length; ++i) {\n blockLength += dash[i];\n }\n if (dash.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // So total length is (4 + 2 + 1) * 2\n return blockLength * 2;\n }\n return blockLength;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport GlobalModel from '../model/Global';\nimport {createOrUpdatePatternFromDecal} from '../util/decal';\n\nexport default function decalVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachRawSeries(seriesModel => {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n if (data.hasItemVisual()) {\n data.each(idx => {\n const decal = data.getItemVisual(idx, 'decal');\n if (decal) {\n const itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n }\n const decal = data.getVisual('decal');\n if (decal) {\n const style = data.getVisual('style');\n style.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n}\n", "import { isString } from '../core/util';\n\n/**\n * For big svg string, this method might be time consuming.\n */\nexport function parseXML(svg: Document | string | SVGElement): SVGElement {\n if (isString(svg)) {\n const parser = new DOMParser();\n svg = parser.parseFromString(svg, 'text/xml');\n }\n let svgNode: Node = svg;\n // Document node. If using $.get, doc node may be input.\n if (svgNode.nodeType === 9) {\n svgNode = svgNode.firstChild;\n }\n // nodeName of is also 'svg'.\n while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) {\n svgNode = svgNode.nextSibling;\n }\n\n return svgNode as SVGElement;\n}\n", "import Group from '../graphic/Group';\nimport ZRImage from '../graphic/Image';\nimport Circle from '../graphic/shape/Circle';\nimport Rect from '../graphic/shape/Rect';\nimport Ellipse from '../graphic/shape/Ellipse';\nimport Line from '../graphic/shape/Line';\nimport Polygon from '../graphic/shape/Polygon';\nimport Polyline from '../graphic/shape/Polyline';\nimport * as matrix from '../core/matrix';\nimport { createFromString } from './path';\nimport { defaults, trim, each, map, keys, hasOwn } from '../core/util';\nimport Displayable from '../graphic/Displayable';\nimport Element from '../Element';\nimport { RectLike } from '../core/BoundingRect';\nimport { Dictionary } from '../core/types';\nimport { PatternObject } from '../graphic/Pattern';\nimport LinearGradient, { LinearGradientObject } from '../graphic/LinearGradient';\nimport RadialGradient, { RadialGradientObject } from '../graphic/RadialGradient';\nimport Gradient, { GradientObject } from '../graphic/Gradient';\nimport TSpan, { TSpanStyleProps } from '../graphic/TSpan';\nimport { parseXML } from './parseXML';\n\n\ninterface SVGParserOption {\n // Default width if svg width not specified or is a percent value.\n width?: number;\n // Default height if svg height not specified or is a percent value.\n height?: number;\n ignoreViewBox?: boolean;\n ignoreRootClip?: boolean;\n}\n\nexport interface SVGParserResult {\n // Group, The root of the the result tree of zrender shapes\n root: Group;\n // number, the viewport width of the SVG\n width: number;\n // number, the viewport height of the SVG\n height: number;\n // {x, y, width, height}, the declared viewBox rect of the SVG, if exists\n viewBoxRect: RectLike;\n // the {scale, position} calculated by viewBox and viewport, is exists\n viewBoxTransform: {\n x: number;\n y: number;\n scale: number;\n };\n named: SVGParserResultNamedItem[];\n}\nexport interface SVGParserResultNamedItem {\n name: string;\n // If a tag has no name attribute but its ancester is named,\n // `namedFrom` is set to the named item of the ancester .\n // Otherwise null/undefined\n namedFrom: SVGParserResultNamedItem;\n svgNodeTagLower: SVGNodeTagLower;\n el: Element;\n};\n\nexport type SVGNodeTagLower =\n 'g' | 'rect' | 'circle' | 'line' | 'ellipse' | 'polygon'\n | 'polyline' | 'image' | 'text' | 'tspan' | 'path' | 'defs' | 'switch';\n\n\ntype DefsId = string;\ntype DefsMap = { [id in DefsId]: LinearGradientObject | RadialGradientObject | PatternObject };\ntype DefsUsePending = [Displayable, 'fill' | 'stroke', DefsId][];\n\ntype ElementExtended = Element & {\n __inheritedStyle?: InheritedStyleByZRKey;\n __selfStyle?: SelfStyleByZRKey;\n}\ntype DisplayableExtended = Displayable & {\n __inheritedStyle?: InheritedStyleByZRKey;\n __selfStyle?: SelfStyleByZRKey;\n}\n\ntype TextStyleOptionExtended = TSpanStyleProps & {\n fontSize: number;\n fontFamily: string;\n fontWeight: string;\n fontStyle: string;\n}\nlet nodeParsers: {[name in SVGNodeTagLower]?: (\n this: SVGParser, xmlNode: SVGElement, parentGroup: Group\n) => Element};\n\ntype InheritedStyleByZRKey = {[name in InheritableStyleZRKey]?: string};\ntype InheritableStyleZRKey =\n typeof INHERITABLE_STYLE_ATTRIBUTES_MAP[keyof typeof INHERITABLE_STYLE_ATTRIBUTES_MAP];\nconst INHERITABLE_STYLE_ATTRIBUTES_MAP = {\n 'fill': 'fill',\n 'stroke': 'stroke',\n 'stroke-width': 'lineWidth',\n 'opacity': 'opacity',\n 'fill-opacity': 'fillOpacity',\n 'stroke-opacity': 'strokeOpacity',\n 'stroke-dasharray': 'lineDash',\n 'stroke-dashoffset': 'lineDashOffset',\n 'stroke-linecap': 'lineCap',\n 'stroke-linejoin': 'lineJoin',\n 'stroke-miterlimit': 'miterLimit',\n 'font-family': 'fontFamily',\n 'font-size': 'fontSize',\n 'font-style': 'fontStyle',\n 'font-weight': 'fontWeight',\n 'text-anchor': 'textAlign',\n 'visibility': 'visibility',\n 'display': 'display'\n} as const;\nconst INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS = keys(INHERITABLE_STYLE_ATTRIBUTES_MAP);\n\ntype SelfStyleByZRKey = {[name in SelfStyleZRKey]?: string};\ntype SelfStyleZRKey =\n typeof SELF_STYLE_ATTRIBUTES_MAP[keyof typeof SELF_STYLE_ATTRIBUTES_MAP];\nconst SELF_STYLE_ATTRIBUTES_MAP = {\n 'alignment-baseline': 'textBaseline',\n 'stop-color': 'stopColor'\n};\nconst SELF_STYLE_ATTRIBUTES_MAP_KEYS = keys(SELF_STYLE_ATTRIBUTES_MAP);\n\n\nclass SVGParser {\n\n private _defs: DefsMap = {};\n // The use of can be in front of declared.\n // So save them temporarily in `_defsUsePending`.\n private _defsUsePending: DefsUsePending;\n private _root: Group = null;\n\n private _textX: number;\n private _textY: number;\n\n parse(xml: string | Document | SVGElement, opt: SVGParserOption): SVGParserResult {\n opt = opt || {};\n\n const svg = parseXML(xml);\n\n if (!svg) {\n throw new Error('Illegal svg');\n }\n\n this._defsUsePending = [];\n let root = new Group();\n this._root = root;\n const named: SVGParserResult['named'] = [];\n // parse view port\n const viewBox = svg.getAttribute('viewBox') || '';\n\n // If width/height not specified, means \"100%\" of `opt.width/height`.\n // TODO: Other percent value not supported yet.\n let width = parseFloat((svg.getAttribute('width') || opt.width) as string);\n let height = parseFloat((svg.getAttribute('height') || opt.height) as string);\n // If width/height not specified, set as null for output.\n isNaN(width) && (width = null);\n isNaN(height) && (height = null);\n\n // Apply inline style on svg element.\n parseAttributes(svg, root, null, true, false);\n\n let child = svg.firstChild as SVGElement;\n while (child) {\n this._parseNode(child, root, named, null, false, false);\n child = child.nextSibling as SVGElement;\n }\n\n applyDefs(this._defs, this._defsUsePending);\n this._defsUsePending = [];\n\n let viewBoxRect;\n let viewBoxTransform;\n\n if (viewBox) {\n const viewBoxArr = splitNumberSequence(viewBox);\n // Some invalid case like viewBox: 'none'.\n if (viewBoxArr.length >= 4) {\n viewBoxRect = {\n x: parseFloat((viewBoxArr[0] || 0) as string),\n y: parseFloat((viewBoxArr[1] || 0) as string),\n width: parseFloat(viewBoxArr[2]),\n height: parseFloat(viewBoxArr[3])\n };\n }\n }\n\n if (viewBoxRect && width != null && height != null) {\n viewBoxTransform = makeViewBoxTransform(viewBoxRect, { x: 0, y: 0, width: width, height: height });\n\n if (!opt.ignoreViewBox) {\n // If set transform on the output group, it probably bring trouble when\n // some users only intend to show the clipped content inside the viewBox,\n // but not intend to transform the output group. So we keep the output\n // group no transform. If the user intend to use the viewBox as a\n // camera, just set `opt.ignoreViewBox` as `true` and set transfrom\n // manually according to the viewBox info in the output of this method.\n const elRoot = root;\n root = new Group();\n root.add(elRoot);\n elRoot.scaleX = elRoot.scaleY = viewBoxTransform.scale;\n elRoot.x = viewBoxTransform.x;\n elRoot.y = viewBoxTransform.y;\n }\n }\n\n // Some shapes might be overflow the viewport, which should be\n // clipped despite whether the viewBox is used, as the SVG does.\n if (!opt.ignoreRootClip && width != null && height != null) {\n root.setClipPath(new Rect({\n shape: {x: 0, y: 0, width: width, height: height}\n }));\n }\n\n // Set width/height on group just for output the viewport size.\n return {\n root: root,\n width: width,\n height: height,\n viewBoxRect: viewBoxRect,\n viewBoxTransform: viewBoxTransform,\n named: named\n };\n }\n\n private _parseNode(\n xmlNode: SVGElement,\n parentGroup: Group,\n named: SVGParserResultNamedItem[],\n namedFrom: SVGParserResultNamedItem['namedFrom'],\n isInDefs: boolean,\n isInText: boolean\n ): void {\n\n const nodeName = xmlNode.nodeName.toLowerCase() as SVGNodeTagLower;\n\n // TODO:\n // support in svg, where nodeName is 'style',\n // CSS classes is defined globally wherever the style tags are declared.\n\n let el;\n let namedFromForSub = namedFrom;\n\n if (nodeName === 'defs') {\n isInDefs = true;\n }\n if (nodeName === 'text') {\n isInText = true;\n }\n\n if (nodeName === 'defs' || nodeName === 'switch') {\n // Just make displayable. Do not support\n // the full feature of it.\n el = parentGroup;\n }\n else {\n // In , elments will not be rendered.\n // TODO:\n // do not support elements in yet, until requirement come.\n // other graphic elements can also be in and referenced by\n // \n // multiple times\n if (!isInDefs) {\n const parser = nodeParsers[nodeName];\n if (parser && hasOwn(nodeParsers, nodeName)) {\n\n el = parser.call(this, xmlNode, parentGroup);\n\n // Do not support empty string;\n const nameAttr = xmlNode.getAttribute('name');\n if (nameAttr) {\n const newNamed: SVGParserResultNamedItem = {\n name: nameAttr,\n namedFrom: null,\n svgNodeTagLower: nodeName,\n el: el\n };\n named.push(newNamed);\n if (nodeName === 'g') {\n namedFromForSub = newNamed;\n }\n }\n else if (namedFrom) {\n named.push({\n name: namedFrom.name,\n namedFrom: namedFrom,\n svgNodeTagLower: nodeName,\n el: el\n });\n }\n\n parentGroup.add(el);\n }\n }\n\n // Whether gradients/patterns are declared in or not,\n // they all work.\n const parser = paintServerParsers[nodeName];\n if (parser && hasOwn(paintServerParsers, nodeName)) {\n const def = parser.call(this, xmlNode);\n const id = xmlNode.getAttribute('id');\n if (id) {\n this._defs[id] = def;\n }\n }\n }\n\n // If xmlNode is , , , , ,\n // el will be a group, and traverse the children.\n if (el && el.isGroup) {\n let child = xmlNode.firstChild as SVGElement;\n while (child) {\n if (child.nodeType === 1) {\n this._parseNode(child, el as Group, named, namedFromForSub, isInDefs, isInText);\n }\n // Is plain text rather than a tagged node.\n else if (child.nodeType === 3 && isInText) {\n this._parseText(child, el as Group);\n }\n child = child.nextSibling as SVGElement;\n }\n }\n\n }\n\n private _parseText(xmlNode: SVGElement, parentGroup: Group): TSpan {\n const text = new TSpan({\n style: {\n text: xmlNode.textContent\n },\n silent: true,\n x: this._textX || 0,\n y: this._textY || 0\n });\n\n inheritStyle(parentGroup, text);\n\n parseAttributes(xmlNode, text, this._defsUsePending, false, false);\n\n applyTextAlignment(text, parentGroup);\n\n const textStyle = text.style as TextStyleOptionExtended;\n const fontSize = textStyle.fontSize;\n if (fontSize && fontSize < 9) {\n // PENDING\n textStyle.fontSize = 9;\n text.scaleX *= fontSize / 9;\n text.scaleY *= fontSize / 9;\n }\n\n const font = (textStyle.fontSize || textStyle.fontFamily) && [\n textStyle.fontStyle,\n textStyle.fontWeight,\n (textStyle.fontSize || 12) + 'px',\n // If font properties are defined, `fontFamily` should not be ignored.\n textStyle.fontFamily || 'sans-serif'\n ].join(' ');\n // Make font\n textStyle.font = font;\n\n const rect = text.getBoundingRect();\n this._textX += rect.width;\n\n parentGroup.add(text);\n\n return text;\n }\n\n static internalField = (function () {\n\n nodeParsers = {\n 'g': function (xmlNode, parentGroup) {\n const g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, false);\n\n return g;\n },\n 'rect': function (xmlNode, parentGroup) {\n const rect = new Rect();\n inheritStyle(parentGroup, rect);\n parseAttributes(xmlNode, rect, this._defsUsePending, false, false);\n\n rect.setShape({\n x: parseFloat(xmlNode.getAttribute('x') || '0'),\n y: parseFloat(xmlNode.getAttribute('y') || '0'),\n width: parseFloat(xmlNode.getAttribute('width') || '0'),\n height: parseFloat(xmlNode.getAttribute('height') || '0')\n });\n\n rect.silent = true;\n\n return rect;\n },\n 'circle': function (xmlNode, parentGroup) {\n const circle = new Circle();\n inheritStyle(parentGroup, circle);\n parseAttributes(xmlNode, circle, this._defsUsePending, false, false);\n\n circle.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n r: parseFloat(xmlNode.getAttribute('r') || '0')\n });\n\n circle.silent = true;\n\n return circle;\n },\n 'line': function (xmlNode, parentGroup) {\n const line = new Line();\n inheritStyle(parentGroup, line);\n parseAttributes(xmlNode, line, this._defsUsePending, false, false);\n\n line.setShape({\n x1: parseFloat(xmlNode.getAttribute('x1') || '0'),\n y1: parseFloat(xmlNode.getAttribute('y1') || '0'),\n x2: parseFloat(xmlNode.getAttribute('x2') || '0'),\n y2: parseFloat(xmlNode.getAttribute('y2') || '0')\n });\n\n line.silent = true;\n\n return line;\n },\n 'ellipse': function (xmlNode, parentGroup) {\n const ellipse = new Ellipse();\n inheritStyle(parentGroup, ellipse);\n parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);\n\n ellipse.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n rx: parseFloat(xmlNode.getAttribute('rx') || '0'),\n ry: parseFloat(xmlNode.getAttribute('ry') || '0')\n });\n\n ellipse.silent = true;\n\n return ellipse;\n },\n 'polygon': function (xmlNode, parentGroup) {\n const pointsStr = xmlNode.getAttribute('points');\n let pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n const polygon = new Polygon({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n\n inheritStyle(parentGroup, polygon);\n parseAttributes(xmlNode, polygon, this._defsUsePending, false, false);\n\n return polygon;\n },\n 'polyline': function (xmlNode, parentGroup) {\n const pointsStr = xmlNode.getAttribute('points');\n let pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n const polyline = new Polyline({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n\n inheritStyle(parentGroup, polyline);\n parseAttributes(xmlNode, polyline, this._defsUsePending, false, false);\n\n return polyline;\n },\n 'image': function (xmlNode, parentGroup) {\n const img = new ZRImage();\n inheritStyle(parentGroup, img);\n parseAttributes(xmlNode, img, this._defsUsePending, false, false);\n\n img.setStyle({\n image: xmlNode.getAttribute('xlink:href'),\n x: +xmlNode.getAttribute('x'),\n y: +xmlNode.getAttribute('y'),\n width: +xmlNode.getAttribute('width'),\n height: +xmlNode.getAttribute('height')\n });\n img.silent = true;\n\n return img;\n },\n 'text': function (xmlNode, parentGroup) {\n const x = xmlNode.getAttribute('x') || '0';\n const y = xmlNode.getAttribute('y') || '0';\n const dx = xmlNode.getAttribute('dx') || '0';\n const dy = xmlNode.getAttribute('dy') || '0';\n\n this._textX = parseFloat(x) + parseFloat(dx);\n this._textY = parseFloat(y) + parseFloat(dy);\n\n const g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n\n return g;\n },\n 'tspan': function (xmlNode, parentGroup) {\n const x = xmlNode.getAttribute('x');\n const y = xmlNode.getAttribute('y');\n if (x != null) {\n // new offset x\n this._textX = parseFloat(x);\n }\n if (y != null) {\n // new offset y\n this._textY = parseFloat(y);\n }\n const dx = xmlNode.getAttribute('dx') || '0';\n const dy = xmlNode.getAttribute('dy') || '0';\n\n const g = new Group();\n\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n\n this._textX += parseFloat(dx);\n this._textY += parseFloat(dy);\n\n return g;\n },\n 'path': function (xmlNode, parentGroup) {\n // TODO svg fill rule\n // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule\n // path.style.globalCompositeOperation = 'xor';\n const d = xmlNode.getAttribute('d') || '';\n\n // Performance sensitive.\n\n const path = createFromString(d);\n\n inheritStyle(parentGroup, path);\n parseAttributes(xmlNode, path, this._defsUsePending, false, false);\n\n path.silent = true;\n\n return path;\n }\n };\n\n\n })();\n}\n\nconst paintServerParsers: Dictionary<(xmlNode: SVGElement) => any> = {\n\n 'lineargradient': function (xmlNode: SVGElement) {\n // TODO:\n // Support that x1,y1,x2,y2 are not declared lineargradient but in node.\n const x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10);\n const y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10);\n const x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10);\n const y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10);\n\n const gradient = new LinearGradient(x1, y1, x2, y2);\n\n parsePaintServerUnit(xmlNode, gradient);\n\n parseGradientColorStops(xmlNode, gradient);\n\n return gradient;\n },\n\n 'radialgradient': function (xmlNode) {\n // TODO:\n // Support that x1,y1,x2,y2 are not declared radialgradient but in node.\n // TODO:\n // Support fx, fy, fr.\n const cx = parseInt(xmlNode.getAttribute('cx') || '0', 10);\n const cy = parseInt(xmlNode.getAttribute('cy') || '0', 10);\n const r = parseInt(xmlNode.getAttribute('r') || '0', 10);\n\n const gradient = new RadialGradient(cx, cy, r);\n\n parsePaintServerUnit(xmlNode, gradient);\n\n parseGradientColorStops(xmlNode, gradient);\n\n return gradient;\n }\n\n // TODO\n // 'pattern': function (xmlNode: SVGElement) {\n // }\n};\n\nfunction parsePaintServerUnit(xmlNode: SVGElement, gradient: Gradient) {\n const gradientUnits = xmlNode.getAttribute('gradientUnits');\n if (gradientUnits === 'userSpaceOnUse') {\n gradient.global = true;\n }\n}\n\nfunction parseGradientColorStops(xmlNode: SVGElement, gradient: GradientObject): void {\n\n let stop = xmlNode.firstChild as SVGStopElement;\n\n while (stop) {\n if (stop.nodeType === 1\n // there might be some other irrelevant tags used by editor.\n && stop.nodeName.toLocaleLowerCase() === 'stop'\n ) {\n const offsetStr = stop.getAttribute('offset');\n let offset: number;\n if (offsetStr && offsetStr.indexOf('%') > 0) { // percentage\n offset = parseInt(offsetStr, 10) / 100;\n }\n else if (offsetStr) { // number from 0 to 1\n offset = parseFloat(offsetStr);\n }\n else {\n offset = 0;\n }\n\n // has higher priority than\n // \n const styleVals = {} as Dictionary;\n parseInlineStyle(stop, styleVals, styleVals);\n const stopColor = styleVals.stopColor\n || stop.getAttribute('stop-color')\n || '#000000';\n\n gradient.colorStops.push({\n offset: offset,\n color: stopColor\n });\n }\n stop = stop.nextSibling as SVGStopElement;\n }\n}\n\nfunction inheritStyle(parent: Element, child: Element): void {\n if (parent && (parent as ElementExtended).__inheritedStyle) {\n if (!(child as ElementExtended).__inheritedStyle) {\n (child as ElementExtended).__inheritedStyle = {};\n }\n defaults((child as ElementExtended).__inheritedStyle, (parent as ElementExtended).__inheritedStyle);\n }\n}\n\nfunction parsePoints(pointsString: string): number[][] {\n const list = splitNumberSequence(pointsString);\n const points = [];\n\n for (let i = 0; i < list.length; i += 2) {\n const x = parseFloat(list[i]);\n const y = parseFloat(list[i + 1]);\n points.push([x, y]);\n }\n return points;\n}\n\nfunction parseAttributes(\n xmlNode: SVGElement,\n el: Element,\n defsUsePending: DefsUsePending,\n onlyInlineStyle: boolean,\n isTextGroup: boolean\n): void {\n const disp = el as DisplayableExtended;\n const inheritedStyle = disp.__inheritedStyle = disp.__inheritedStyle || {};\n const selfStyle: SelfStyleByZRKey = {};\n\n // TODO Shadow\n if (xmlNode.nodeType === 1) {\n parseTransformAttribute(xmlNode, el);\n\n parseInlineStyle(xmlNode, inheritedStyle, selfStyle);\n\n if (!onlyInlineStyle) {\n parseAttributeStyle(xmlNode, inheritedStyle, selfStyle);\n }\n }\n\n disp.style = disp.style || {};\n\n if (inheritedStyle.fill != null) {\n disp.style.fill = getFillStrokeStyle(disp, 'fill', inheritedStyle.fill, defsUsePending);\n }\n if (inheritedStyle.stroke != null) {\n disp.style.stroke = getFillStrokeStyle(disp, 'stroke', inheritedStyle.stroke, defsUsePending);\n }\n\n each([\n 'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize'\n ] as const, function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = parseFloat(inheritedStyle[propName]);\n }\n });\n\n each([\n 'lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign'\n ] as const, function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = inheritedStyle[propName];\n }\n });\n\n // Because selfStyle only support textBaseline, so only text group need it.\n // in other cases selfStyle can be released.\n if (isTextGroup) {\n disp.__selfStyle = selfStyle;\n }\n\n if (inheritedStyle.lineDash) {\n disp.style.lineDash = map(splitNumberSequence(inheritedStyle.lineDash), function (str) {\n return parseFloat(str);\n });\n }\n\n if (inheritedStyle.visibility === 'hidden' || inheritedStyle.visibility === 'collapse') {\n disp.invisible = true;\n }\n\n if (inheritedStyle.display === 'none') {\n disp.ignore = true;\n }\n}\n\nfunction applyTextAlignment(\n text: TSpan,\n parentGroup: Group\n): void {\n const parentSelfStyle = (parentGroup as ElementExtended).__selfStyle;\n if (parentSelfStyle) {\n const textBaseline = parentSelfStyle.textBaseline;\n let zrTextBaseline = textBaseline as CanvasTextBaseline;\n if (!textBaseline || textBaseline === 'auto') {\n // FIXME: 'auto' means the value is the dominant-baseline of the script to\n // which the character belongs - i.e., use the dominant-baseline of the parent.\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'baseline') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'before-edge' || textBaseline === 'text-before-edge') {\n zrTextBaseline = 'top';\n }\n else if (textBaseline === 'after-edge' || textBaseline === 'text-after-edge') {\n zrTextBaseline = 'bottom';\n }\n else if (textBaseline === 'central' || textBaseline === 'mathematical') {\n zrTextBaseline = 'middle';\n }\n text.style.textBaseline = zrTextBaseline;\n }\n\n const parentInheritedStyle = (parentGroup as ElementExtended).__inheritedStyle;\n if (parentInheritedStyle) {\n // PENDING:\n // canvas `direction` is an experimental attribute.\n // so we do not support SVG direction \"rtl\" for text-anchor yet.\n const textAlign = parentInheritedStyle.textAlign;\n let zrTextAlign = textAlign as CanvasTextAlign;\n if (textAlign) {\n if (textAlign === 'middle') {\n zrTextAlign = 'center';\n }\n text.style.textAlign = zrTextAlign;\n }\n }\n}\n\n// Support `fill:url(#someId)`.\nconst urlRegex = /^url\\(\\s*#(.*?)\\)/;\nfunction getFillStrokeStyle(\n el: Displayable,\n method: 'fill' | 'stroke',\n str: string,\n defsUsePending: DefsUsePending\n): string {\n const urlMatch = str && str.match(urlRegex);\n if (urlMatch) {\n const url = trim(urlMatch[1]);\n defsUsePending.push([el, method, url]);\n return;\n }\n // SVG fill and stroke can be 'none'.\n if (str === 'none') {\n str = null;\n }\n return str;\n}\n\nfunction applyDefs(\n defs: DefsMap,\n defsUsePending: DefsUsePending\n): void {\n for (let i = 0; i < defsUsePending.length; i++) {\n const item = defsUsePending[i];\n item[0].style[item[1]] = defs[item[2]];\n }\n}\n\n// value can be like:\n// '2e-4', 'l.5.9' (ignore 0), 'M-10-10', 'l-2.43e-1,34.9983',\n// 'l-.5E1,54', '121-23-44-11' (no delimiter)\n// PENDING: here continuous commas are treat as one comma, but the\n// browser SVG parser treats this by printing error.\nconst numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction splitNumberSequence(rawStr: string): string[] {\n return rawStr.match(numberReg) || [];\n}\n// Most of the values can be separated by comma and/or white space.\n// const DILIMITER_REG = /[\\s,]+/;\n\n\nconst transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.eE,]*)\\)/g;\nconst DEGREE_TO_ANGLE = Math.PI / 180;\n\nfunction parseTransformAttribute(xmlNode: SVGElement, node: Element): void {\n let transform = xmlNode.getAttribute('transform');\n if (transform) {\n transform = transform.replace(/,/g, ' ');\n const transformOps: string[] = [];\n let mt = null;\n transform.replace(transformRegex, function (str: string, type: string, value: string) {\n transformOps.push(type, value);\n return '';\n });\n\n for (let i = transformOps.length - 1; i > 0; i -= 2) {\n const value = transformOps[i];\n const type = transformOps[i - 1];\n const valueArr: string[] = splitNumberSequence(value);\n mt = mt || matrix.create();\n switch (type) {\n case 'translate':\n matrix.translate(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || '0')]);\n break;\n case 'scale':\n matrix.scale(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || valueArr[0])]);\n break;\n case 'rotate':\n // TODO: zrender use different hand in coordinate system.\n matrix.rotate(mt, mt, -parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n break;\n case 'skewX':\n const sx = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, 0, sx, 1, 0, 0], mt);\n break;\n case 'skewY':\n const sy = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, sy, 0, 1, 0, 0], mt);\n break;\n case 'matrix':\n mt[0] = parseFloat(valueArr[0]);\n mt[1] = parseFloat(valueArr[1]);\n mt[2] = parseFloat(valueArr[2]);\n mt[3] = parseFloat(valueArr[3]);\n mt[4] = parseFloat(valueArr[4]);\n mt[5] = parseFloat(valueArr[5]);\n break;\n }\n }\n node.setLocalTransform(mt);\n }\n}\n\n// Value may contain space.\nconst styleRegex = /([^\\s:;]+)\\s*:\\s*([^:;]+)/g;\nfunction parseInlineStyle(\n xmlNode: SVGElement,\n inheritableStyleResult: Dictionary,\n selfStyleResult: Dictionary\n): void {\n const style = xmlNode.getAttribute('style');\n\n if (!style) {\n return;\n }\n\n styleRegex.lastIndex = 0;\n let styleRegResult;\n while ((styleRegResult = styleRegex.exec(style)) != null) {\n const svgStlAttr = styleRegResult[1];\n\n const zrInheritableStlAttr = hasOwn(INHERITABLE_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? INHERITABLE_STYLE_ATTRIBUTES_MAP[svgStlAttr as keyof typeof INHERITABLE_STYLE_ATTRIBUTES_MAP]\n : null;\n if (zrInheritableStlAttr) {\n inheritableStyleResult[zrInheritableStlAttr] = styleRegResult[2];\n }\n\n const zrSelfStlAttr = hasOwn(SELF_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? SELF_STYLE_ATTRIBUTES_MAP[svgStlAttr as keyof typeof SELF_STYLE_ATTRIBUTES_MAP]\n : null;\n if (zrSelfStlAttr) {\n selfStyleResult[zrSelfStlAttr] = styleRegResult[2];\n }\n }\n}\n\nfunction parseAttributeStyle(\n xmlNode: SVGElement,\n inheritableStyleResult: Dictionary,\n selfStyleResult: Dictionary\n): void {\n for (let i = 0; i < INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n const svgAttrName = INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[i];\n const attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n inheritableStyleResult[INHERITABLE_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n for (let i = 0; i < SELF_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n const svgAttrName = SELF_STYLE_ATTRIBUTES_MAP_KEYS[i];\n const attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n selfStyleResult[SELF_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n}\n\nexport function makeViewBoxTransform(viewBoxRect: RectLike, boundingRect: RectLike): {\n scale: number;\n x: number;\n y: number;\n} {\n const scaleX = boundingRect.width / viewBoxRect.width;\n const scaleY = boundingRect.height / viewBoxRect.height;\n const scale = Math.min(scaleX, scaleY);\n // preserveAspectRatio 'xMidYMid'\n\n return {\n scale,\n x: -(viewBoxRect.x + viewBoxRect.width / 2) * scale + (boundingRect.x + boundingRect.width / 2),\n y: -(viewBoxRect.y + viewBoxRect.height / 2) * scale + (boundingRect.y + boundingRect.height / 2)\n };\n}\n\nexport function parseSVG(xml: string | Document | SVGElement, opt: SVGParserOption): SVGParserResult {\n const parser = new SVGParser();\n return parser.parse(xml, opt);\n}\n\n\n// Also export parseXML to avoid breaking change.\nexport {parseXML};\n", "import windingLine from './windingLine';\nimport { VectorArray } from '../core/vector';\n\nconst EPSILON = 1e-8;\n\nfunction isAroundEqual(a: number, b: number): boolean {\n return Math.abs(a - b) < EPSILON;\n}\n\nexport function contain(points: VectorArray[], x: number, y: number) {\n let w = 0;\n let p = points[0];\n\n if (!p) {\n return false;\n }\n\n for (let i = 1; i < points.length; i++) {\n const p2 = points[i];\n w += windingLine(p[0], p[1], p2[0], p2[1], x, y);\n p = p2;\n }\n\n // Close polygon\n const p0 = points[0];\n if (!isAroundEqual(p[0], p0[0]) || !isAroundEqual(p[1], p0[1])) {\n w += windingLine(p[0], p[1], p0[0], p0[1], x, y);\n }\n\n return w !== 0;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport * as bbox from 'zrender/src/core/bbox';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as polygonContain from 'zrender/src/contain/polygon';\nimport { GeoJSON, GeoSVGGraphicRoot } from './geoTypes';\nimport * as matrix from 'zrender/src/core/matrix';\nimport Element from 'zrender/src/Element';\n\nconst TMP_TRANSFORM = [] as number[];\n\nexport class Region {\n\n readonly name: string;\n readonly type: 'geoJSON' | 'geoSVG';\n\n constructor(\n name: string\n ) {\n this.name = name;\n }\n\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n getCenter(): number[] {\n return;\n }\n\n}\n\n\nexport class GeoJSONRegion extends Region {\n\n readonly type = 'geoJSON';\n\n readonly geometries: {\n type: 'polygon'; // FIXME:TS Is there other types?\n exterior: number[][];\n interiors?: number[][][];\n }[];\n\n private _center: number[];\n\n // Injected outside.\n properties: GeoJSON['features'][0]['properties'];\n\n private _rect: BoundingRect;\n\n\n constructor(\n name: string,\n geometries: GeoJSONRegion['geometries'],\n cp: GeoJSON['features'][0]['properties']['cp']\n ) {\n super(name);\n\n this.geometries = geometries;\n\n if (!cp) {\n const rect = this.getBoundingRect();\n cp = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n else {\n cp = [cp[0], cp[1]];\n }\n this._center = cp;\n }\n\n getBoundingRect(): BoundingRect {\n const rect = this._rect;\n if (rect) {\n return rect;\n }\n\n const MAX_NUMBER = Number.MAX_VALUE;\n const min = [MAX_NUMBER, MAX_NUMBER];\n const max = [-MAX_NUMBER, -MAX_NUMBER];\n const min2 = [] as number[];\n const max2 = [] as number[];\n const geometries = this.geometries;\n let i = 0;\n for (; i < geometries.length; i++) {\n // Only support polygon\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n // Doesn't consider hole\n const exterior = geometries[i].exterior;\n bbox.fromPoints(exterior, min2, max2);\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n // No data\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return (this._rect = new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n ));\n }\n\n contain(coord: number[]): boolean {\n const rect = this.getBoundingRect();\n const geometries = this.geometries;\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n loopGeo: for (let i = 0, len = geometries.length; i < len; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n const exterior = geometries[i].exterior;\n const interiors = geometries[i].interiors;\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (let k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n return true;\n }\n }\n return false;\n }\n\n transformTo(x: number, y: number, width: number, height: number): void {\n let rect = this.getBoundingRect();\n const aspect = rect.width / rect.height;\n if (!width) {\n width = aspect * height;\n }\n else if (!height) {\n height = width / aspect;\n }\n const target = new BoundingRect(x, y, width, height);\n const transform = rect.calculateTransform(target);\n const geometries = this.geometries;\n for (let i = 0; i < geometries.length; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n const exterior = geometries[i].exterior;\n const interiors = geometries[i].interiors;\n for (let p = 0; p < exterior.length; p++) {\n vec2.applyTransform(exterior[p], exterior[p], transform);\n }\n for (let h = 0; h < (interiors ? interiors.length : 0); h++) {\n for (let p = 0; p < interiors[h].length; p++) {\n vec2.applyTransform(interiors[h][p], interiors[h][p], transform);\n }\n }\n }\n rect = this._rect;\n rect.copy(target);\n // Update center\n this._center = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n\n cloneShallow(name: string): GeoJSONRegion {\n name == null && (name = this.name);\n const newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n return newRegion;\n }\n\n getCenter() {\n return this._center;\n }\n\n setCenter(center: number[]) {\n this._center = center;\n }\n\n}\n\nexport class GeoSVGRegion extends Region {\n\n readonly type = 'geoSVG';\n\n private _center: number[];\n\n // Can only be used to calculate, but not be modified.\n // Becuase this el may not belongs to this view,\n // but been displaying on some other view.\n private _elOnlyForCalculate: Element;\n\n constructor(\n name: string,\n elOnlyForCalculate: Element\n ) {\n super(name);\n this._elOnlyForCalculate = elOnlyForCalculate;\n }\n\n getCenter() {\n let center = this._center;\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this._calculateCenter();\n }\n return center;\n }\n\n private _calculateCenter(): number[] {\n const el = this._elOnlyForCalculate;\n const rect = el.getBoundingRect();\n const center = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n\n const mat = matrix.identity(TMP_TRANSFORM);\n\n let target = el;\n while (target && !(target as GeoSVGGraphicRoot).isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n\n vec2.applyTransform(center, center, mat);\n\n return center;\n }\n\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parseSVG, makeViewBoxTransform, SVGNodeTagLower, SVGParserResultNamedItem } from 'zrender/src/tool/parseSVG';\nimport Group from 'zrender/src/graphic/Group';\nimport Rect from 'zrender/src/graphic/shape/Rect';\nimport {assert, createHashMap, each, HashMap} from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { GeoResource, GeoSVGGraphicRoot, GeoSVGSourceInput } from './geoTypes';\nimport { parseXML } from 'zrender/src/tool/parseXML';\nimport { GeoSVGRegion } from './Region';\nimport Element from 'zrender/src/Element';\n\nexport interface GeoSVGGraphicRecord {\n root: Group;\n boundingRect: BoundingRect;\n named: SVGParserResultNamedItem[];\n}\n\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\nconst REGION_AVAILABLE_SVG_TAG_MAP = createHashMap([\n 'rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path',\n // are also enabled becuase some SVG might paint text itself,\n // but still need to trigger events or tooltip.\n 'text', 'tspan',\n // is also enabled because this case: if multiple tags share one name\n // and need label displayed, every tags will display the name, which is not\n // expected. So we can put them into a . Thereby only one label\n // displayed and located based on the bounding rect of the .\n 'g'\n]);\n\nexport class GeoSVGResource implements GeoResource {\n\n readonly type = 'geoSVG';\n private _mapName: string;\n private _parsedXML: SVGElement;\n\n private _firstGraphic: GeoSVGGraphicRecord;\n private _boundingRect: BoundingRect;\n private _regions: GeoSVGRegion[];\n // Key: region.name\n private _regionsMap: HashMap;\n\n // All used graphics. key: hostKey, value: root\n private _usedGraphicMap: HashMap = createHashMap();\n // All unused graphics.\n private _freedGraphics: GeoSVGGraphicRecord[] = [];\n\n constructor(\n mapName: string,\n svg: GeoSVGSourceInput\n ) {\n this._mapName = mapName;\n\n // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n this._parsedXML = parseXML(svg);\n }\n\n load(/* nameMap: NameMap */) {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n let firstGraphic = this._firstGraphic;\n\n // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone();\n\n // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n const { regions, regionsMap } = createRegions(firstGraphic.named);\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n }\n\n private _buildGraphic(\n svgXML: SVGElement\n ): GeoSVGGraphicRecord {\n let result;\n let rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n }\n catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n }\n\n // Note: we keep the covenant that the root has no transform. So always add an extra root.\n const root = new Group();\n root.add(rootFromParse);\n (root as GeoSVGGraphicRoot).isGeoSVGGraphicRoot = true;\n\n // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: ``\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n const svgWidth = result.width;\n const svgHeight = result.height;\n const viewBoxRect = result.viewBoxRect;\n\n let boundingRect = this._boundingRect;\n if (!boundingRect) {\n let bRectX;\n let bRectY;\n let bRectWidth;\n let bRectHeight;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n }\n else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n }\n else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n }\n\n // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n if (bRectX == null || bRectY == null) {\n const calculatedBoundingRect = rootFromParse.getBoundingRect();\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n const viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect);\n // Only support `preserveAspectRatio 'xMidYMid'`\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n }\n\n // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n\n const named = [] as GeoSVGGraphicRecord['named'];\n each(result.named, namedItem => {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n\n return { root, boundingRect, named };\n }\n\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n useGraphic(hostKey: string /*, nameMap: NameMap */): GeoSVGGraphicRecord {\n const usedRootMap = this._usedGraphicMap;\n\n let svgGraphic = usedRootMap.get(hostKey);\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop()\n // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n\n usedRootMap.set(hostKey, svgGraphic);\n\n // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n }\n\n freeGraphic(hostKey: string): void {\n const usedRootMap = this._usedGraphicMap;\n\n const svgGraphic = usedRootMap.get(hostKey);\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n this._freedGraphics.push(svgGraphic);\n }\n }\n\n}\n\n\nfunction setSilent(el: Element): void {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false;\n // text|tspan will be converted to group.\n if (el.isGroup) {\n el.traverse(child => {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(\n named: SVGParserResultNamedItem[]\n): {\n regions: GeoSVGRegion[];\n regionsMap: HashMap;\n} {\n\n const regions: GeoSVGRegion[] = [];\n const regionsMap = createHashMap();\n\n // Create resions only for the first graphic.\n each(named, namedItem => {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a , the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n const region = new GeoSVGRegion(namedItem.name, namedItem.el);\n // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n regions.push(region);\n // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n regionsMap.set(namedItem.name, region);\n });\n\n return { regions, regionsMap };\n}\n\n\n// PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { GeoJSONRegion } from './Region';\nimport { GeoJSONCompressed, GeoJSON } from './geoTypes';\n\n\nfunction decode(json: GeoJSONCompressed | GeoJSON): GeoJSON {\n if (!(json as GeoJSONCompressed).UTF8Encoding) {\n return json as GeoJSON;\n }\n const jsonCompressed = json as GeoJSONCompressed;\n let encodeScale = jsonCompressed.UTF8Scale;\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n const features = jsonCompressed.features;\n\n for (let f = 0; f < features.length; f++) {\n const feature = features[f];\n const geometry = feature.geometry;\n\n if (geometry.type === 'Polygon') {\n const coordinates = geometry.coordinates;\n for (let c = 0; c < coordinates.length; c++) {\n coordinates[c] = decodePolygon(\n coordinates[c],\n geometry.encodeOffsets[c],\n encodeScale\n ) as any;\n }\n }\n else if (geometry.type === 'MultiPolygon') {\n const coordinates = geometry.coordinates;\n for (let c = 0; c < coordinates.length; c++) {\n const coordinate = coordinates[c];\n for (let c2 = 0; c2 < coordinate.length; c2++) {\n coordinate[c2] = decodePolygon(\n coordinate[c2],\n geometry.encodeOffsets[c][c2],\n encodeScale\n ) as any;\n }\n }\n }\n }\n // Has been decoded\n jsonCompressed.UTF8Encoding = false;\n\n return jsonCompressed as GeoJSON;\n}\n\nfunction decodePolygon(\n coordinate: string,\n encodeOffsets: number[],\n encodeScale: number\n): number[][] {\n const result = [];\n let prevX = encodeOffsets[0];\n let prevY = encodeOffsets[1];\n\n for (let i = 0; i < coordinate.length; i += 2) {\n let x = coordinate.charCodeAt(i) - 64;\n let y = coordinate.charCodeAt(i + 1) - 64;\n // ZigZag decoding\n x = (x >> 1) ^ (-(x & 1));\n y = (y >> 1) ^ (-(y & 1));\n // Delta deocding\n x += prevX;\n y += prevY;\n\n prevX = x;\n prevY = y;\n // Dequantize\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson: GeoJSON | GeoJSONCompressed, nameProperty: string): GeoJSONRegion[] {\n\n geoJson = decode(geoJson);\n\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry\n && featureObj.properties\n && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n const properties = featureObj.properties;\n const geo = featureObj.geometry;\n\n const geometries = [] as GeoJSONRegion['geometries'];\n if (geo.type === 'Polygon') {\n const coordinates = geo.coordinates;\n geometries.push({\n type: 'polygon',\n // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n exterior: coordinates[0],\n interiors: coordinates.slice(1)\n });\n }\n if (geo.type === 'MultiPolygon') {\n const coordinates = geo.coordinates;\n zrUtil.each(coordinates, function (item) {\n if (item[0]) {\n geometries.push({\n type: 'polygon',\n exterior: item[0],\n interiors: item.slice(1)\n });\n }\n });\n }\n\n const region = new GeoJSONRegion(\n properties[nameProperty || 'name'],\n geometries,\n properties.cp\n );\n region.properties = properties;\n return region;\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Fix for \u5357\u6D77\u8BF8\u5C9B\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { GeoJSONRegion } from '../Region';\n\nconst geoCoord = [126, 25];\nconst nanhaiName = '\u5357\u6D77\u8BF8\u5C9B';\n\nconst points = [\n [[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7],\n [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]],\n [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]],\n [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]],\n [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]],\n [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]],\n [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]],\n [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]],\n [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]],\n [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]],\n [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]],\n [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]],\n [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4],\n [1, 92.4], [1, 3.5], [0, 3.5]]\n];\n\nfor (let i = 0; i < points.length; i++) {\n for (let k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType: string, regions: GeoJSONRegion[]) {\n if (mapType === 'china') {\n for (let i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(\n nanhaiName,\n zrUtil.map(points, function (exterior) {\n return {\n type: 'polygon',\n exterior: exterior\n };\n }), geoCoord\n ));\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { GeoJSONRegion } from '../Region';\nimport { Dictionary } from 'zrender/src/core/types';\n\nconst coordsOffsetMap = {\n '\u5357\u6D77\u8BF8\u5C9B': [32, 80],\n // \u5168\u56FD\n '\u5E7F\u4E1C': [0, -10],\n '\u9999\u6E2F': [10, 5],\n '\u6FB3\u95E8': [-10, 10],\n //'\u5317\u4EAC': [-10, 0],\n '\u5929\u6D25': [5, 5]\n} as Dictionary;\n\nexport default function fixTextCoords(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'china') {\n const coordFix = coordsOffsetMap[region.name];\n if (coordFix) {\n const cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary } from 'zrender/src/core/types';\nimport { GeoJSONRegion } from '../Region';\n\nconst geoCoordMap = {\n 'Russia': [100, 60],\n 'United States': [-99, 38],\n 'United States of America': [-99, 38]\n} as Dictionary;\n\nexport default function fixGeoCoords(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'world') {\n const geoCoord = geoCoordMap[region.name];\n if (geoCoord) {\n const cp = [\n geoCoord[0],\n geoCoord[1]\n ];\n region.setCenter(cp);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { GeoJSONRegion } from '../Region';\n\n// Fix for \u9493\u9C7C\u5C9B\n\n// let Region = require('../Region');\n// let zrUtil = require('zrender/src/core/util');\n\n// let geoCoord = [126, 25];\n\nconst points = [\n [\n [123.45165252685547, 25.73527164402261],\n [123.49731445312499, 25.73527164402261],\n [123.49731445312499, 25.750734064600884],\n [123.45165252685547, 25.750734064600884],\n [123.45165252685547, 25.73527164402261]\n ]\n];\n\nexport default function fixDiaoyuIsland(mapType: string, region: GeoJSONRegion) {\n if (mapType === 'china' && region.name === '\u53F0\u6E7E') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { each, isString, createHashMap } from 'zrender/src/core/util';\nimport parseGeoJson from './parseGeoJson';\n// Built-in GEO fixer.\nimport fixNanhai from './fix/nanhai';\nimport fixTextCoord from './fix/textCoord';\nimport fixGeoCoord from './fix/geoCoord';\nimport fixDiaoyuIsland from './fix/diaoyuIsland';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport { GeoJSONRegion } from './Region';\nimport { GeoJSON, GeoJSONCompressed, GeoJSONSourceInput, GeoResource, GeoSpecialAreas, NameMap } from './geoTypes';\n\n\nconst DEFAULT_NAME_PROPERTY = 'name' as const;\n\nexport class GeoJSONResource implements GeoResource {\n\n readonly type = 'geoJSON';\n private _geoJSON: GeoJSON | GeoJSONCompressed;\n private _specialAreas: GeoSpecialAreas;\n private _mapName: string;\n\n private _parsedMap = createHashMap<{\n regions: GeoJSONRegion[];\n boundingRect: BoundingRect;\n }, string>();\n\n constructor(\n mapName: string,\n geoJSON: GeoJSONSourceInput,\n specialAreas: GeoSpecialAreas\n ) {\n this._mapName = mapName;\n this._specialAreas = specialAreas;\n\n // PENDING: delay the parse to the first usage to rapid up the FMP?\n this._geoJSON = parseInput(geoJSON);\n }\n\n /**\n * @param nameMap can be null/undefined\n * @param nameProperty can be null/undefined\n */\n load(nameMap: NameMap, nameProperty: string) {\n\n nameProperty = nameProperty || DEFAULT_NAME_PROPERTY;\n\n let parsed = this._parsedMap.get(nameProperty);\n if (!parsed) {\n const rawRegions = this._parseToRegions(nameProperty);\n parsed = this._parsedMap.set(nameProperty, {\n regions: rawRegions,\n boundingRect: calculateBoundingRect(rawRegions)\n });\n }\n\n const regionsMap = createHashMap();\n\n const finalRegions: GeoJSONRegion[] = [];\n each(parsed.regions, function (region) {\n let regionName = region.name;\n\n // Try use the alias in geoNameMap\n if (nameMap && nameMap.hasOwnProperty(regionName)) {\n region = region.cloneShallow(regionName = nameMap[regionName]);\n }\n\n finalRegions.push(region);\n regionsMap.set(regionName, region);\n });\n\n return {\n regions: finalRegions,\n boundingRect: parsed.boundingRect || new BoundingRect(0, 0, 0, 0),\n regionsMap: regionsMap\n };\n }\n\n private _parseToRegions(nameProperty: string): GeoJSONRegion[] {\n const mapName = this._mapName;\n const geoJSON = this._geoJSON;\n let rawRegions;\n\n // https://jsperf.com/try-catch-performance-overhead\n try {\n rawRegions = geoJSON ? parseGeoJson(geoJSON, nameProperty) : [];\n }\n catch (e) {\n throw new Error('Invalid geoJson format\\n' + e.message);\n }\n\n fixNanhai(mapName, rawRegions);\n\n each(rawRegions, function (region) {\n const regionName = region.name;\n\n fixTextCoord(mapName, region);\n fixGeoCoord(mapName, region);\n fixDiaoyuIsland(mapName, region);\n\n // Some area like Alaska in USA map needs to be tansformed\n // to look better\n const specialArea = this._specialAreas && this._specialAreas[regionName];\n if (specialArea) {\n region.transformTo(\n specialArea.left, specialArea.top, specialArea.width, specialArea.height\n );\n }\n }, this);\n\n return rawRegions;\n }\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser(): {\n // backward compat.\n geoJson: GeoJSON | GeoJSONCompressed;\n geoJSON: GeoJSON | GeoJSONCompressed;\n specialAreas: GeoSpecialAreas;\n } {\n return {\n // For backward compatibility, use geoJson\n // PENDING: it has been returning them without clone.\n // do we need to avoid outsite modification?\n geoJson: this._geoJSON,\n geoJSON: this._geoJSON,\n specialAreas: this._specialAreas\n };\n }\n\n}\n\nfunction calculateBoundingRect(regions: GeoJSONRegion[]): BoundingRect {\n let rect;\n for (let i = 0; i < regions.length; i++) {\n const regionRect = regions[i].getBoundingRect();\n rect = rect || regionRect.clone();\n rect.union(regionRect);\n }\n return rect;\n}\n\nfunction parseInput(source: GeoJSONSourceInput): GeoJSON | GeoJSONCompressed {\n return !isString(source)\n ? source\n : (typeof JSON !== 'undefined' && JSON.parse)\n ? JSON.parse(source)\n : (new Function('return (' + source + ');'))();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { createHashMap } from 'zrender/src/core/util';\nimport { GeoSVGResource } from './GeoSVGResource';\nimport {\n GeoJSON,\n GeoJSONSourceInput,\n GeoResource,\n GeoSpecialAreas,\n NameMap,\n GeoSVGSourceInput\n} from './geoTypes';\nimport { GeoJSONResource } from './GeoJSONResource';\n\n\ntype MapInput = GeoJSONMapInput | SVGMapInput;\ninterface GeoJSONMapInput {\n geoJSON: GeoJSONSourceInput;\n specialAreas: GeoSpecialAreas;\n}\ninterface GeoJSONMapInputCompat extends GeoJSONMapInput {\n geoJson: GeoJSONSourceInput;\n}\ninterface SVGMapInput {\n svg: GeoSVGSourceInput;\n}\n\n\nconst storage = createHashMap();\n\n\nexport default {\n\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (\n mapName: string,\n rawDef: MapInput | GeoJSONSourceInput,\n rawSpecialAreas?: GeoSpecialAreas\n ): void {\n\n if ((rawDef as SVGMapInput).svg) {\n const resource = new GeoSVGResource(\n mapName,\n (rawDef as SVGMapInput).svg\n );\n\n storage.set(mapName, resource);\n }\n else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n let geoJSON = (rawDef as GeoJSONMapInputCompat).geoJson\n || (rawDef as GeoJSONMapInput).geoJSON;\n if (geoJSON && !(rawDef as GeoJSON).features) {\n rawSpecialAreas = (rawDef as GeoJSONMapInput).specialAreas;\n }\n else {\n geoJSON = rawDef as GeoJSONSourceInput;\n }\n const resource = new GeoJSONResource(\n mapName,\n geoJSON,\n rawSpecialAreas\n );\n\n storage.set(mapName, resource);\n }\n },\n\n getGeoResource(mapName: string): GeoResource {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName: string): ReturnType {\n const resource = storage.get(mapName);\n // Do not support return SVG until some real requirement come.\n return resource && resource.type === 'geoJSON'\n && (resource as GeoJSONResource).getMapForUser();\n },\n\n load: function (mapName: string, nameMap: NameMap, nameProperty: string): ReturnType {\n const resource = storage.get(mapName);\n\n if (!resource) {\n if (__DEV__) {\n console.error(\n 'Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.'\n );\n }\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Eventful, { EventCallback } from 'zrender/src/core/Eventful';\nimport SeriesModel from '../model/Series';\nimport GlobalModel from '../model/Global';\nimport { EChartsType } from './echarts';\nimport ExtensionAPI from './ExtensionAPI';\nimport { ModelFinderIdQuery, ModelFinderIndexQuery } from '../util/model';\nimport { DimensionLoose } from '../util/types';\n\nexport interface UpdateLifecycleTransitionSeriesFinder {\n seriesIndex?: ModelFinderIndexQuery,\n seriesId?: ModelFinderIdQuery\n dimension: DimensionLoose;\n}\n\nexport interface UpdateLifecycleTransitionItem {\n // If `from` not given, it means that do not make series transition mandatorily.\n // There might be transition mapping dy default. Sometimes we do not need them,\n // which might bring about misleading.\n from?: UpdateLifecycleTransitionSeriesFinder | UpdateLifecycleTransitionSeriesFinder[];\n to: UpdateLifecycleTransitionSeriesFinder | UpdateLifecycleTransitionSeriesFinder[];\n};\n\nexport type UpdateLifecycleTransitionOpt = UpdateLifecycleTransitionItem | UpdateLifecycleTransitionItem[];\n\nexport interface UpdateLifecycleParams {\n updatedSeries?: SeriesModel[]\n\n /**\n * If this update is from setOption and option is changed.\n */\n optionChanged?: boolean\n\n // Specify series to transition in this setOption.\n seriesTransition?: UpdateLifecycleTransitionOpt\n}\ninterface LifecycleEvents {\n 'afterinit': [EChartsType],\n 'series:beforeupdate': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:layoutlabels': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:transition': [GlobalModel, ExtensionAPI, UpdateLifecycleParams],\n 'series:afterupdate': [GlobalModel, ExtensionAPI, UpdateLifecycleParams]\n // 'series:beforeeachupdate': [GlobalModel, ExtensionAPI, SeriesModel]\n // 'series:aftereachupdate': [GlobalModel, ExtensionAPI, SeriesModel]\n 'afterupdate': [GlobalModel, ExtensionAPI]\n}\n\nconst lifecycle = new Eventful<{\n [key in keyof LifecycleEvents]: EventCallback\n}>();\n\n\nexport default lifecycle;\n\nexport {LifecycleEvents};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrender from 'zrender/src/zrender';\nimport {\n assert,\n each,\n isFunction,\n isObject,\n indexOf,\n bind,\n clone,\n setAsPrimitive,\n createCanvas,\n extend,\n HashMap,\n createHashMap,\n map,\n defaults,\n isDom,\n isArray,\n $override,\n noop\n} from 'zrender/src/core/util';\nimport * as colorTool from 'zrender/src/tool/color';\nimport env from 'zrender/src/core/env';\nimport timsort from 'zrender/src/core/timsort';\nimport Eventful, { EventCallbackSingleParam } from 'zrender/src/core/Eventful';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport GlobalModel, {QueryConditionKindA, GlobalModelSetOptionOpts} from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport CoordinateSystemManager from './CoordinateSystem';\nimport OptionManager from '../model/OptionManager';\nimport backwardCompat from '../preprocessor/backwardCompat';\nimport dataStack from '../processor/dataStack';\nimport ComponentModel from '../model/Component';\nimport SeriesModel from '../model/Series';\nimport ComponentView, {ComponentViewConstructor} from '../view/Component';\nimport ChartView, {ChartViewConstructor} from '../view/Chart';\nimport * as graphic from '../util/graphic';\nimport {getECData} from '../util/innerStore';\nimport {\n isHighDownDispatcher,\n HOVER_STATE_EMPHASIS,\n HOVER_STATE_BLUR,\n blurSeriesFromHighlightPayload,\n toggleSelectionFromPayload,\n updateSeriesElementSelection,\n getAllSelectedIndices,\n isSelectChangePayload,\n isHighDownPayload,\n HIGHLIGHT_ACTION_TYPE,\n DOWNPLAY_ACTION_TYPE,\n SELECT_ACTION_TYPE,\n UNSELECT_ACTION_TYPE,\n TOGGLE_SELECT_ACTION_TYPE,\n savePathStates,\n enterEmphasis,\n leaveEmphasis,\n leaveBlur,\n enterSelect,\n leaveSelect,\n enterBlur,\n allLeaveBlur,\n findComponentHighDownDispatchers,\n blurComponent,\n handleGlobalMouseOverForHighDown,\n handleGlboalMouseOutForHighDown\n} from '../util/states';\nimport * as modelUtil from '../util/model';\nimport {throttle} from '../util/throttle';\nimport {seriesStyleTask, dataStyleTask, dataColorPaletteTask} from '../visual/style';\nimport loadingDefault from '../loading/default';\nimport Scheduler from './Scheduler';\nimport lightTheme from '../theme/light';\nimport darkTheme from '../theme/dark';\nimport {CoordinateSystemMaster, CoordinateSystemCreator, CoordinateSystemHostModel} from '../coord/CoordinateSystem';\nimport { parseClassType } from '../util/clazz';\nimport {ECEventProcessor} from '../util/ECEventProcessor';\nimport {\n Payload, ECElement, RendererType, ECActionEvent,\n ActionHandler, ActionInfo, OptionPreprocessor, PostUpdater,\n LoadingEffect, LoadingEffectCreator, StageHandlerInternal,\n StageHandlerOverallReset, StageHandler,\n ViewRootGroup, DimensionDefinitionLoose, ECEventData, ThemeOption,\n ECBasicOption,\n ECUnitOption,\n ZRColor,\n ComponentMainType,\n ComponentSubType,\n ColorString,\n SelectChangedPayload,\n ScaleDataValue,\n ZRElementEventName,\n ECElementEvent,\n AnimationOption\n} from '../util/types';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport { seriesSymbolTask, dataSymbolTask } from '../visual/symbol';\nimport { getVisualFromData, getItemVisualFromData } from '../visual/helper';\nimport { deprecateLog } from '../util/log';\nimport { handleLegacySelectEvents } from '../legacy/dataSelectAction';\n\nimport { registerExternalTransform } from '../data/helper/transform';\nimport { createLocaleObject, SYSTEM_LANG, LocaleOption } from './locale';\n\nimport type {EChartsOption} from '../export/option';\nimport { findEventDispatcher } from '../util/event';\nimport decal from '../visual/decal';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\nimport SVGPainter from 'zrender/src/svg/Painter';\nimport geoSourceManager from '../coord/geo/geoSourceManager';\nimport lifecycle, {\n LifecycleEvents,\n UpdateLifecycleTransitionItem,\n UpdateLifecycleParams,\n UpdateLifecycleTransitionOpt\n} from './lifecycle';\n\ndeclare let global: any;\n\ntype ModelFinder = modelUtil.ModelFinder;\n\nconst hasWindow = typeof window !== 'undefined';\n\nexport const version = '5.1.2';\n\nexport const dependencies = {\n zrender: '5.1.1'\n};\n\nconst TEST_FRAME_REMAIN_TIME = 1;\n\nconst PRIORITY_PROCESSOR_SERIES_FILTER = 800;\n// Some data processors depends on the stack result dimension (to calculate data extent).\n// So data stack stage should be in front of data processing stage.\nconst PRIORITY_PROCESSOR_DATASTACK = 900;\n// \"Data filter\" will block the stream, so it should be\n// put at the begining of data processing.\nconst PRIORITY_PROCESSOR_FILTER = 1000;\nconst PRIORITY_PROCESSOR_DEFAULT = 2000;\nconst PRIORITY_PROCESSOR_STATISTIC = 5000;\n\nconst PRIORITY_VISUAL_LAYOUT = 1000;\nconst PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;\nconst PRIORITY_VISUAL_GLOBAL = 2000;\nconst PRIORITY_VISUAL_CHART = 3000;\nconst PRIORITY_VISUAL_COMPONENT = 4000;\n// Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to\n// overwrite the viusal result of component (like `visualMap`)\n// using data item specific setting (like itemStyle.xxx on data item)\nconst PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500;\n// Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on\n// visual result like `symbolSize`.\nconst PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;\nconst PRIORITY_VISUAL_BRUSH = 5000;\nconst PRIORITY_VISUAL_ARIA = 6000;\nconst PRIORITY_VISUAL_DECAL = 7000;\n\nexport const PRIORITY = {\n PROCESSOR: {\n FILTER: PRIORITY_PROCESSOR_FILTER,\n SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,\n STATISTIC: PRIORITY_PROCESSOR_STATISTIC\n },\n VISUAL: {\n LAYOUT: PRIORITY_VISUAL_LAYOUT,\n PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,\n GLOBAL: PRIORITY_VISUAL_GLOBAL,\n CHART: PRIORITY_VISUAL_CHART,\n POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,\n COMPONENT: PRIORITY_VISUAL_COMPONENT,\n BRUSH: PRIORITY_VISUAL_BRUSH,\n CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,\n ARIA: PRIORITY_VISUAL_ARIA,\n DECAL: PRIORITY_VISUAL_DECAL\n }\n};\n\n// Main process have three entries: `setOption`, `dispatchAction` and `resize`,\n// where they must not be invoked nestedly, except the only case: invoke\n// dispatchAction with updateMethod \"none\" in main process.\n// This flag is used to carry out this rule.\n// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).\nconst IN_MAIN_PROCESS_KEY = '__flagInMainProcess' as const;\nconst PENDING_UPDATE = '__pendingUpdate' as const;\nconst STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus' as const;\nconst ACTION_REG = /^[a-zA-Z0-9_]+$/;\n\nconst CONNECT_STATUS_KEY = '__connectUpdateStatus' as const;\nconst CONNECT_STATUS_PENDING = 0 as const;\nconst CONNECT_STATUS_UPDATING = 1 as const;\nconst CONNECT_STATUS_UPDATED = 2 as const;\ntype ConnectStatus =\n typeof CONNECT_STATUS_PENDING\n | typeof CONNECT_STATUS_UPDATING\n | typeof CONNECT_STATUS_UPDATED;\n\nexport type SetOptionTransitionOpt = UpdateLifecycleTransitionOpt;\nexport type SetOptionTransitionOptItem = UpdateLifecycleTransitionItem;\n\nexport interface SetOptionOpts {\n notMerge?: boolean;\n lazyUpdate?: boolean;\n silent?: boolean;\n // Rule: only `id` mapped will be merged,\n // other components of the certain `mainType` will be removed.\n replaceMerge?: GlobalModelSetOptionOpts['replaceMerge'];\n transition?: SetOptionTransitionOpt\n};\n\n\nexport interface ResizeOpts {\n width?: number | 'auto', // Can be 'auto' (the same as null/undefined)\n height?: number | 'auto', // Can be 'auto' (the same as null/undefined)\n animation?: AnimationOption\n silent?: boolean // by default false.\n};\n\ninterface PostIniter {\n (chart: EChartsType): void\n}\n\ntype EventMethodName = 'on' | 'off';\nfunction createRegisterEventWithLowercaseECharts(method: EventMethodName) {\n return function (this: ECharts, ...args: any): ECharts {\n if (this.isDisposed()) {\n disposedWarning(this.id);\n return;\n }\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\nfunction createRegisterEventWithLowercaseMessageCenter(method: EventMethodName) {\n return function (this: MessageCenter, ...args: any): MessageCenter {\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\nfunction toLowercaseNameAndCallEventful(host: T, method: EventMethodName, args: any): T {\n // `args[0]` is event name. Event name is all lowercase.\n args[0] = args[0] && args[0].toLowerCase();\n return Eventful.prototype[method].apply(host, args) as any;\n}\n\n\nclass MessageCenter extends Eventful {}\nconst messageCenterProto = MessageCenter.prototype;\nmessageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');\nmessageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off');\n\n// ---------------------------------------\n// Internal method names for class ECharts\n// ---------------------------------------\nlet prepare: (ecIns: ECharts) => void;\nlet prepareView: (ecIns: ECharts, isComponent: boolean) => void;\nlet updateDirectly: (\n ecIns: ECharts, method: string, payload: Payload, mainType: ComponentMainType, subType?: ComponentSubType\n) => void;\ntype UpdateMethod = (this: ECharts, payload?: Payload, renderParams?: UpdateLifecycleParams) => void;\nlet updateMethods: {\n prepareAndUpdate: UpdateMethod,\n update: UpdateMethod,\n updateTransform: UpdateMethod,\n updateView: UpdateMethod,\n updateVisual: UpdateMethod,\n updateLayout: UpdateMethod\n};\nlet doConvertPixel: (\n ecIns: ECharts,\n methodName: string,\n finder: ModelFinder,\n value: (number | number[]) | (ScaleDataValue | ScaleDataValue[])\n) => (number | number[]);\nlet updateStreamModes: (ecIns: ECharts, ecModel: GlobalModel) => void;\nlet doDispatchAction: (this: ECharts, payload: Payload, silent: boolean) => void;\nlet flushPendingActions: (this: ECharts, silent: boolean) => void;\nlet triggerUpdatedEvent: (this: ECharts, silent: boolean) => void;\nlet bindRenderedEvent: (zr: zrender.ZRenderType, ecIns: ECharts) => void;\nlet bindMouseEvent: (zr: zrender.ZRenderType, ecIns: ECharts) => void;\nlet clearColorPalette: (ecModel: GlobalModel) => void;\nlet render: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload, updateParams: UpdateLifecycleParams\n) => void;\nlet renderComponents: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams, dirtyList?: ComponentView[]\n) => void;\nlet renderSeries: (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload | 'remain',\n updateParams: UpdateLifecycleParams,\n dirtyMap?: {[uid: string]: any}\n) => void;\nlet createExtensionAPI: (ecIns: ECharts) => ExtensionAPI;\nlet enableConnect: (ecIns: ECharts) => void;\n\nlet markStatusToUpdate: (ecIns: ECharts) => void;\nlet applyChangedStates: (ecIns: ECharts) => void;\n\ntype RenderedEventParam = { elapsedTime: number };\ntype ECEventDefinition = {\n [key in ZRElementEventName]: EventCallbackSingleParam\n} & {\n rendered: EventCallbackSingleParam\n finished: () => void | boolean\n} & {\n // TODO: Use ECActionEvent\n [key: string]: (...args: unknown[]) => void | boolean\n};\ntype EChartsInitOpts = {\n locale?: string | LocaleOption,\n renderer?: RendererType,\n devicePixelRatio?: number,\n useDirtyRect?: boolean,\n width?: number,\n height?: number\n};\nclass ECharts extends Eventful {\n\n /**\n * @readonly\n */\n id: string;\n\n /**\n * Group id\n * @readonly\n */\n group: string;\n\n private _zr: zrender.ZRenderType;\n\n private _dom: HTMLElement;\n\n private _model: GlobalModel;\n\n private _throttledZrFlush: zrender.ZRenderType extends {flush: infer R} ? R : never;\n\n private _theme: ThemeOption;\n\n private _locale: LocaleOption;\n\n private _chartsViews: ChartView[] = [];\n\n private _chartsMap: {[viewId: string]: ChartView} = {};\n\n private _componentsViews: ComponentView[] = [];\n\n private _componentsMap: {[viewId: string]: ComponentView} = {};\n\n private _coordSysMgr: CoordinateSystemManager;\n\n private _api: ExtensionAPI;\n\n private _scheduler: Scheduler;\n\n private _messageCenter: MessageCenter;\n\n // Can't dispatch action during rendering procedure\n private _pendingActions: Payload[] = [];\n\n // We use never here so ECEventProcessor will not been exposed.\n // which may include many unexpected types won't be exposed in the types to developers.\n protected _$eventProcessor: never;\n\n private _disposed: boolean;\n\n private _loadingFX: LoadingEffect;\n\n\n private [PENDING_UPDATE]: {\n silent: boolean\n updateParams: UpdateLifecycleParams\n };\n private [IN_MAIN_PROCESS_KEY]: boolean;\n private [CONNECT_STATUS_KEY]: ConnectStatus;\n private [STATUS_NEEDS_UPDATE_KEY]: boolean;\n\n constructor(\n dom: HTMLElement,\n // Theme name or themeOption.\n theme?: string | ThemeOption,\n opts?: EChartsInitOpts\n ) {\n super(new ECEventProcessor());\n\n opts = opts || {};\n\n // Get theme by name\n if (typeof theme === 'string') {\n theme = themeStorage[theme] as object;\n }\n\n this._dom = dom;\n\n let defaultRenderer = 'canvas';\n let defaultUseDirtyRect = false;\n if (__DEV__) {\n const root = (\n /* eslint-disable-next-line */\n hasWindow ? window : global\n ) as any;\n\n defaultRenderer = root.__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;\n\n const devUseDirtyRect = root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;\n defaultUseDirtyRect = devUseDirtyRect == null\n ? defaultUseDirtyRect\n : devUseDirtyRect;\n }\n\n const zr = this._zr = zrender.init(dom, {\n renderer: opts.renderer || defaultRenderer,\n devicePixelRatio: opts.devicePixelRatio,\n width: opts.width,\n height: opts.height,\n useDirtyRect: opts.useDirtyRect == null ? defaultUseDirtyRect : opts.useDirtyRect\n });\n\n // Expect 60 fps.\n this._throttledZrFlush = throttle(bind(zr.flush, zr), 17);\n\n theme = clone(theme);\n theme && backwardCompat(theme as ECUnitOption, true);\n\n this._theme = theme;\n\n this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);\n\n this._coordSysMgr = new CoordinateSystemManager();\n\n const api = this._api = createExtensionAPI(this);\n\n // Sort on demand\n function prioritySortFunc(a: StageHandlerInternal, b: StageHandlerInternal): number {\n return a.__prio - b.__prio;\n }\n timsort(visualFuncs, prioritySortFunc);\n timsort(dataProcessorFuncs, prioritySortFunc);\n\n this._scheduler = new Scheduler(this, api, dataProcessorFuncs, visualFuncs);\n\n this._messageCenter = new MessageCenter();\n\n // Init mouse events\n this._initEvents();\n\n // In case some people write `window.onresize = chart.resize`\n this.resize = bind(this.resize, this);\n\n zr.animation.on('frame', this._onframe, this);\n\n bindRenderedEvent(zr, this);\n\n bindMouseEvent(zr, this);\n\n // ECharts instance can be used as value.\n setAsPrimitive(this);\n }\n\n private _onframe(): void {\n if (this._disposed) {\n return;\n }\n\n applyChangedStates(this);\n\n const scheduler = this._scheduler;\n\n // Lazy update\n if (this[PENDING_UPDATE]) {\n const silent = (this[PENDING_UPDATE] as any).silent;\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n prepare(this);\n updateMethods.update.call(this, null, this[PENDING_UPDATE].updateParams);\n\n // At present, in each frame, zrender performs:\n // (1) animation step forward.\n // (2) trigger('frame') (where this `_onframe` is called)\n // (3) zrender flush (render).\n // If we do nothing here, since we use `setToFinal: true`, the step (3) above\n // will render the final state of the elements before the real animation started.\n this._zr.flush();\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n this[PENDING_UPDATE] = null;\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n // Avoid do both lazy update and progress in one frame.\n else if (scheduler.unfinished) {\n // Stream progress.\n let remainTime = TEST_FRAME_REMAIN_TIME;\n const ecModel = this._model;\n const api = this._api;\n scheduler.unfinished = false;\n do {\n const startTime = +new Date();\n\n scheduler.performSeriesTasks(ecModel);\n\n // Currently dataProcessorFuncs do not check threshold.\n scheduler.performDataProcessorTasks(ecModel);\n\n updateStreamModes(this, ecModel);\n\n // Do not update coordinate system here. Because that coord system update in\n // each frame is not a good user experience. So we follow the rule that\n // the extent of the coordinate system is determin in the first frame (the\n // frame is executed immedietely after task reset.\n // this._coordSysMgr.update(ecModel, api);\n\n // console.log('--- ec frame visual ---', remainTime);\n scheduler.performVisualTasks(ecModel);\n\n renderSeries(this, this._model, api, 'remain', {});\n\n remainTime -= (+new Date() - startTime);\n }\n while (remainTime > 0 && scheduler.unfinished);\n\n // Call flush explicitly for trigger finished event.\n if (!scheduler.unfinished) {\n this._zr.flush();\n }\n // Else, zr flushing be ensue within the same frame,\n // because zr flushing is after onframe event.\n }\n }\n\n getDom(): HTMLElement {\n return this._dom;\n }\n\n getId(): string {\n return this.id;\n }\n\n getZr(): zrender.ZRenderType {\n return this._zr;\n }\n\n /**\n * Usage:\n * chart.setOption(option, notMerge, lazyUpdate);\n * chart.setOption(option, {\n * notMerge: ...,\n * lazyUpdate: ...,\n * silent: ...\n * });\n *\n * @param opts opts or notMerge.\n * @param opts.notMerge Default `false`.\n * @param opts.lazyUpdate Default `false`. Useful when setOption frequently.\n * @param opts.silent Default `false`.\n * @param opts.replaceMerge Default undefined.\n */\n // Expose to user full option.\n setOption(option: Opt, notMerge?: boolean, lazyUpdate?: boolean): void;\n setOption(option: Opt, opts?: SetOptionOpts): void;\n /* eslint-disable-next-line */\n setOption(option: Opt, notMerge?: boolean | SetOptionOpts, lazyUpdate?: boolean): void {\n if (__DEV__) {\n assert(!this[IN_MAIN_PROCESS_KEY], '`setOption` should not be called during main process.');\n }\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n let silent;\n let replaceMerge;\n let transitionOpt: SetOptionTransitionOpt;\n if (isObject(notMerge)) {\n lazyUpdate = notMerge.lazyUpdate;\n silent = notMerge.silent;\n replaceMerge = notMerge.replaceMerge;\n transitionOpt = notMerge.transition;\n notMerge = notMerge.notMerge;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n if (!this._model || notMerge) {\n const optionManager = new OptionManager(this._api);\n const theme = this._theme;\n const ecModel = this._model = new GlobalModel();\n ecModel.scheduler = this._scheduler;\n ecModel.init(null, null, null, theme, this._locale, optionManager);\n }\n\n this._model.setOption(option as ECBasicOption, { replaceMerge }, optionPreprocessorFuncs);\n\n const updateParams = {\n seriesTransition: transitionOpt,\n optionChanged: true\n } as UpdateLifecycleParams;\n\n if (lazyUpdate) {\n this[PENDING_UPDATE] = {\n silent: silent,\n updateParams: updateParams\n };\n this[IN_MAIN_PROCESS_KEY] = false;\n\n // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.\n // It should wake it up to make sure zrender start to render at the next frame.\n this.getZr().wakeUp();\n }\n else {\n prepare(this);\n\n updateMethods.update.call(this, null, updateParams);\n\n // Ensure zr refresh sychronously, and then pixel in canvas can be\n // fetched after `setOption`.\n this._zr.flush();\n\n this[PENDING_UPDATE] = null;\n this[IN_MAIN_PROCESS_KEY] = false;\n\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n }\n }\n\n /**\n * @DEPRECATED\n */\n private setTheme(): void {\n console.error('ECharts#setTheme() is DEPRECATED in ECharts 3.0');\n }\n\n // We don't want developers to use getModel directly.\n private getModel(): GlobalModel {\n return this._model;\n }\n\n getOption(): ECBasicOption {\n return this._model && this._model.getOption() as ECBasicOption;\n }\n\n getWidth(): number {\n return this._zr.getWidth();\n }\n\n getHeight(): number {\n return this._zr.getHeight();\n }\n\n getDevicePixelRatio(): number {\n return (this._zr.painter as CanvasPainter).dpr\n /* eslint-disable-next-line */\n || (hasWindow && window.devicePixelRatio) || 1;\n }\n\n /**\n * Get canvas which has all thing rendered\n */\n getRenderedCanvas(opts?: {\n backgroundColor?: ZRColor\n pixelRatio?: number\n }): HTMLCanvasElement {\n if (!env.canvasSupported) {\n return;\n }\n opts = opts || {};\n return (this._zr.painter as CanvasPainter).getRenderedCanvas({\n backgroundColor: (opts.backgroundColor || this._model.get('backgroundColor')) as ColorString,\n pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()\n });\n }\n\n /**\n * Get svg data url\n */\n getSvgDataURL(): string {\n if (!env.svgSupported) {\n return;\n }\n\n const zr = this._zr;\n const list = zr.storage.getDisplayList();\n // Stop animations\n each(list, function (el: Element) {\n el.stopAnimation(null, true);\n });\n\n return (zr.painter as SVGPainter).toDataURL();\n }\n\n getDataURL(opts?: {\n // file type 'png' by default\n type?: 'png' | 'jpg' | 'svg',\n pixelRatio?: number,\n backgroundColor?: ZRColor,\n // component type array\n excludeComponents?: ComponentMainType[]\n }): string {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n opts = opts || {};\n const excludeComponents = opts.excludeComponents;\n const ecModel = this._model;\n const excludesComponentViews: ComponentView[] = [];\n const self = this;\n\n each(excludeComponents, function (componentType) {\n ecModel.eachComponent({\n mainType: componentType\n }, function (component) {\n const view = self._componentsMap[component.__viewId];\n if (!view.group.ignore) {\n excludesComponentViews.push(view);\n view.group.ignore = true;\n }\n });\n });\n\n const url = this._zr.painter.getType() === 'svg'\n ? this.getSvgDataURL()\n : this.getRenderedCanvas(opts).toDataURL(\n 'image/' + (opts && opts.type || 'png')\n );\n\n each(excludesComponentViews, function (view) {\n view.group.ignore = false;\n });\n\n return url;\n }\n\n getConnectedDataURL(opts?: {\n // file type 'png' by default\n type?: 'png' | 'jpg' | 'svg',\n pixelRatio?: number,\n backgroundColor?: ZRColor,\n connectedBackgroundColor?: ZRColor\n excludeComponents?: string[]\n }): string {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!env.canvasSupported) {\n return;\n }\n const isSvg = opts.type === 'svg';\n const groupId = this.group;\n const mathMin = Math.min;\n const mathMax = Math.max;\n const MAX_NUMBER = Infinity;\n if (connectedGroups[groupId]) {\n let left = MAX_NUMBER;\n let top = MAX_NUMBER;\n let right = -MAX_NUMBER;\n let bottom = -MAX_NUMBER;\n const canvasList: {dom: HTMLCanvasElement | string, left: number, top: number}[] = [];\n const dpr = (opts && opts.pixelRatio) || this.getDevicePixelRatio();\n\n each(instances, function (chart, id) {\n if (chart.group === groupId) {\n const canvas = isSvg\n ? (chart.getZr().painter as SVGPainter).getSvgDom().innerHTML\n : chart.getRenderedCanvas(clone(opts));\n const boundingRect = chart.getDom().getBoundingClientRect();\n left = mathMin(boundingRect.left, left);\n top = mathMin(boundingRect.top, top);\n right = mathMax(boundingRect.right, right);\n bottom = mathMax(boundingRect.bottom, bottom);\n canvasList.push({\n dom: canvas,\n left: boundingRect.left,\n top: boundingRect.top\n });\n }\n });\n\n left *= dpr;\n top *= dpr;\n right *= dpr;\n bottom *= dpr;\n const width = right - left;\n const height = bottom - top;\n const targetCanvas = createCanvas();\n const zr = zrender.init(targetCanvas, {\n renderer: isSvg ? 'svg' : 'canvas'\n });\n zr.resize({\n width: width,\n height: height\n });\n\n if (isSvg) {\n let content = '';\n each(canvasList, function (item) {\n const x = item.left - left;\n const y = item.top - top;\n content += '' + item.dom + '';\n });\n (zr.painter as SVGPainter).getSvgRoot().innerHTML = content;\n\n if (opts.connectedBackgroundColor) {\n (zr.painter as SVGPainter).setBackgroundColor(opts.connectedBackgroundColor as string);\n }\n\n zr.refreshImmediately();\n return (zr.painter as SVGPainter).toDataURL();\n }\n else {\n // Background between the charts\n if (opts.connectedBackgroundColor) {\n zr.add(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: width,\n height: height\n },\n style: {\n fill: opts.connectedBackgroundColor\n }\n }));\n }\n\n each(canvasList, function (item) {\n const img = new graphic.Image({\n style: {\n x: item.left * dpr - left,\n y: item.top * dpr - top,\n image: item.dom\n }\n });\n zr.add(img);\n });\n zr.refreshImmediately();\n\n return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));\n }\n }\n else {\n return this.getDataURL(opts);\n }\n }\n\n /**\n * Convert from logical coordinate system to pixel coordinate system.\n * See CoordinateSystem#convertToPixel.\n */\n convertToPixel(finder: ModelFinder, value: ScaleDataValue): number;\n convertToPixel(finder: ModelFinder, value: ScaleDataValue[]): number[];\n convertToPixel(finder: ModelFinder, value: ScaleDataValue | ScaleDataValue[]): number | number[] {\n return doConvertPixel(this, 'convertToPixel', finder, value);\n }\n\n /**\n * Convert from pixel coordinate system to logical coordinate system.\n * See CoordinateSystem#convertFromPixel.\n */\n convertFromPixel(finder: ModelFinder, value: number): number;\n convertFromPixel(finder: ModelFinder, value: number[]): number[];\n convertFromPixel(finder: ModelFinder, value: number | number[]): number | number[] {\n return doConvertPixel(this, 'convertFromPixel', finder, value);\n }\n\n /**\n * Is the specified coordinate systems or components contain the given pixel point.\n * @param {Array|number} value\n * @return {boolean} result\n */\n containPixel(finder: ModelFinder, value: number[]): boolean {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n const ecModel = this._model;\n let result: boolean;\n\n const findResult = modelUtil.parseFinder(ecModel, finder);\n\n each(findResult, function (models, key) {\n key.indexOf('Models') >= 0 && each(models as ComponentModel[], function (model) {\n const coordSys = (model as CoordinateSystemHostModel).coordinateSystem;\n if (coordSys && coordSys.containPoint) {\n result = result || !!coordSys.containPoint(value);\n }\n else if (key === 'seriesModels') {\n const view = this._chartsMap[model.__viewId];\n if (view && view.containPoint) {\n result = result || view.containPoint(value, model as SeriesModel);\n }\n else {\n if (__DEV__) {\n console.warn(key + ': ' + (view\n ? 'The found component do not support containPoint.'\n : 'No view mapping to the found component.'\n ));\n }\n }\n }\n else {\n if (__DEV__) {\n console.warn(key + ': containPoint is not supported');\n }\n }\n }, this);\n }, this);\n\n return !!result;\n }\n\n /**\n * Get visual from series or data.\n * @param finder\n * If string, e.g., 'series', means {seriesIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex / seriesId / seriesName,\n * dataIndex / dataIndexInside\n * }\n * If dataIndex is not specified, series visual will be fetched,\n * but not data item visual.\n * If all of seriesIndex, seriesId, seriesName are not specified,\n * visual will be fetched from first series.\n * @param visualType 'color', 'symbol', 'symbolSize'\n */\n getVisual(finder: ModelFinder, visualType: string) {\n const ecModel = this._model;\n\n const parsedFinder = modelUtil.parseFinder(ecModel, finder, {\n defaultMainType: 'series'\n }) as modelUtil.ParsedModelFinderKnown;\n\n const seriesModel = parsedFinder.seriesModel;\n\n if (__DEV__) {\n if (!seriesModel) {\n console.warn('There is no specified seires model');\n }\n }\n\n const data = seriesModel.getData();\n\n const dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside')\n ? parsedFinder.dataIndexInside\n : parsedFinder.hasOwnProperty('dataIndex')\n ? data.indexOfRawIndex(parsedFinder.dataIndex)\n : null;\n\n return dataIndexInside != null\n ? getItemVisualFromData(data, dataIndexInside, visualType)\n : getVisualFromData(data, visualType);\n }\n\n /**\n * Get view of corresponding component model\n */\n private getViewOfComponentModel(componentModel: ComponentModel): ComponentView {\n return this._componentsMap[componentModel.__viewId];\n }\n\n /**\n * Get view of corresponding series model\n */\n private getViewOfSeriesModel(seriesModel: SeriesModel): ChartView {\n return this._chartsMap[seriesModel.__viewId];\n }\n\n\n private _initEvents(): void {\n each(MOUSE_EVENT_NAMES, (eveName) => {\n const handler = (e: ElementEvent) => {\n const ecModel = this.getModel();\n const el = e.target;\n let params: ECElementEvent;\n const isGlobalOut = eveName === 'globalout';\n // no e.target when 'globalout'.\n if (isGlobalOut) {\n params = {} as ECElementEvent;\n }\n else {\n el && findEventDispatcher(el, (parent) => {\n const ecData = getECData(parent);\n if (ecData && ecData.dataIndex != null) {\n const dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);\n params = (\n dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {}\n ) as ECElementEvent;\n return true;\n }\n // If element has custom eventData of components\n else if (ecData.eventData) {\n params = extend({}, ecData.eventData) as ECElementEvent;\n return true;\n }\n }, true);\n }\n\n // Contract: if params prepared in mouse event,\n // these properties must be specified:\n // {\n // componentType: string (component main type)\n // componentIndex: number\n // }\n // Otherwise event query can not work.\n\n if (params) {\n let componentType = params.componentType;\n let componentIndex = params.componentIndex;\n // Special handling for historic reason: when trigger by\n // markLine/markPoint/markArea, the componentType is\n // 'markLine'/'markPoint'/'markArea', but we should better\n // enable them to be queried by seriesIndex, since their\n // option is set in each series.\n if (componentType === 'markLine'\n || componentType === 'markPoint'\n || componentType === 'markArea'\n ) {\n componentType = 'series';\n componentIndex = params.seriesIndex;\n }\n const model = componentType && componentIndex != null\n && ecModel.getComponent(componentType, componentIndex);\n const view = model && this[\n model.mainType === 'series' ? '_chartsMap' : '_componentsMap'\n ][model.__viewId];\n\n if (__DEV__) {\n // `event.componentType` and `event[componentTpype + 'Index']` must not\n // be missed, otherwise there is no way to distinguish source component.\n // See `dataFormat.getDataParams`.\n if (!isGlobalOut && !(model && view)) {\n console.warn('model or view can not be found by params');\n }\n }\n\n params.event = e;\n params.type = eveName;\n\n (this._$eventProcessor as ECEventProcessor).eventInfo = {\n targetEl: el,\n packedEvent: params,\n model: model,\n view: view\n };\n\n this.trigger(eveName, params);\n }\n };\n // Consider that some component (like tooltip, brush, ...)\n // register zr event handler, but user event handler might\n // do anything, such as call `setOption` or `dispatchAction`,\n // which probably update any of the content and probably\n // cause problem if it is called previous other inner handlers.\n (handler as any).zrEventfulCallAtLast = true;\n this._zr.on(eveName, handler, this);\n });\n\n each(eventActionMap, (actionType, eventType) => {\n this._messageCenter.on(eventType, function (event: Payload) {\n (this as any).trigger(eventType, event);\n }, this);\n });\n\n // Extra events\n // TODO register?\n each(\n ['selectchanged'],\n (eventType) => {\n this._messageCenter.on(eventType, function (event: Payload) {\n (this as any).trigger(eventType, event);\n }, this);\n }\n );\n\n handleLegacySelectEvents(this._messageCenter, this, this._api);\n }\n\n isDisposed(): boolean {\n return this._disposed;\n }\n\n clear(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n this.setOption({ series: [] } as EChartsOption, true);\n }\n\n dispose(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n this._disposed = true;\n\n modelUtil.setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');\n\n const chart = this;\n const api = chart._api;\n const ecModel = chart._model;\n\n each(chart._componentsViews, function (component) {\n component.dispose(ecModel, api);\n });\n each(chart._chartsViews, function (chart) {\n chart.dispose(ecModel, api);\n });\n\n // Dispose after all views disposed\n chart._zr.dispose();\n\n // Set properties to null.\n // To reduce the memory cost in case the top code still holds this instance unexpectedly.\n chart._dom =\n chart._model =\n chart._chartsMap =\n chart._componentsMap =\n chart._chartsViews =\n chart._componentsViews =\n chart._scheduler =\n chart._api =\n chart._zr =\n chart._throttledZrFlush =\n chart._theme =\n chart._coordSysMgr =\n chart._messageCenter = null;\n\n delete instances[chart.id];\n }\n\n /**\n * Resize the chart\n */\n resize(opts?: ResizeOpts): void {\n if (__DEV__) {\n assert(!this[IN_MAIN_PROCESS_KEY], '`resize` should not be called during main process.');\n }\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._zr.resize(opts);\n\n const ecModel = this._model;\n\n // Resize loading effect\n this._loadingFX && this._loadingFX.resize();\n\n if (!ecModel) {\n return;\n }\n\n let needPrepare = ecModel.resetOption('media');\n\n let silent = opts && opts.silent;\n\n // There is some real cases that:\n // chart.setOption(option, { lazyUpdate: true });\n // chart.resize();\n if (this[PENDING_UPDATE]) {\n if (silent == null) {\n silent = (this[PENDING_UPDATE] as any).silent;\n }\n needPrepare = true;\n this[PENDING_UPDATE] = null;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n needPrepare && prepare(this);\n\n updateMethods.update.call(this, {\n type: 'resize',\n animation: extend({\n // Disable animation\n duration: 0\n }, opts && opts.animation)\n });\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n\n /**\n * Show loading effect\n * @param name 'default' by default\n * @param cfg cfg of registered loading effect\n */\n showLoading(cfg?: object): void;\n showLoading(name?: string, cfg?: object): void;\n showLoading(name?: string | object, cfg?: object): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (isObject(name)) {\n cfg = name as object;\n name = '';\n }\n name = name || 'default';\n\n this.hideLoading();\n if (!loadingEffects[name]) {\n if (__DEV__) {\n console.warn('Loading effects ' + name + ' not exists.');\n }\n return;\n }\n const el = loadingEffects[name](this._api, cfg);\n const zr = this._zr;\n this._loadingFX = el;\n\n zr.add(el);\n }\n\n /**\n * Hide loading effect\n */\n hideLoading(): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._loadingFX && this._zr.remove(this._loadingFX);\n this._loadingFX = null;\n }\n\n makeActionFromEvent(eventObj: ECActionEvent): Payload {\n const payload = extend({}, eventObj) as Payload;\n payload.type = eventActionMap[eventObj.type];\n return payload;\n }\n\n /**\n * @param opt If pass boolean, means opt.silent\n * @param opt.silent Default `false`. Whether trigger events.\n * @param opt.flush Default `undefined`.\n * true: Flush immediately, and then pixel in canvas can be fetched\n * immediately. Caution: it might affect performance.\n * false: Not flush.\n * undefined: Auto decide whether perform flush.\n */\n dispatchAction(\n payload: Payload,\n opt?: boolean | {\n silent?: boolean,\n flush?: boolean | undefined\n }\n ): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!isObject(opt)) {\n opt = {silent: !!opt};\n }\n\n if (!actions[payload.type]) {\n return;\n }\n\n // Avoid dispatch action before setOption. Especially in `connect`.\n if (!this._model) {\n return;\n }\n\n // May dispatchAction in rendering procedure\n if (this[IN_MAIN_PROCESS_KEY]) {\n this._pendingActions.push(payload);\n return;\n }\n\n const silent = opt.silent;\n doDispatchAction.call(this, payload, silent);\n\n const flush = opt.flush;\n if (flush) {\n this._zr.flush();\n }\n else if (flush !== false && env.browser.weChat) {\n // In WeChat embeded browser, `requestAnimationFrame` and `setInterval`\n // hang when sliding page (on touch event), which cause that zr does not\n // refresh util user interaction finished, which is not expected.\n // But `dispatchAction` may be called too frequently when pan on touch\n // screen, which impacts performance if do not throttle them.\n this._throttledZrFlush();\n }\n\n flushPendingActions.call(this, silent);\n\n triggerUpdatedEvent.call(this, silent);\n }\n\n updateLabelLayout() {\n lifecycle.trigger('series:layoutlabels', this._model, this._api, {\n // Not adding series labels.\n // TODO\n updatedSeries: []\n });\n }\n\n appendData(params: {\n seriesIndex: number,\n data: any\n }): void {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n const seriesIndex = params.seriesIndex;\n const ecModel = this.getModel();\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex) as SeriesModel;\n\n if (__DEV__) {\n assert(params.data && seriesModel);\n }\n\n seriesModel.appendData(params);\n\n // Note: `appendData` does not support that update extent of coordinate\n // system, util some scenario require that. In the expected usage of\n // `appendData`, the initial extent of coordinate system should better\n // be fixed by axis `min`/`max` setting or initial data, otherwise if\n // the extent changed while `appendData`, the location of the painted\n // graphic elements have to be changed, which make the usage of\n // `appendData` meaningless.\n\n this._scheduler.unfinished = true;\n\n this.getZr().wakeUp();\n }\n\n\n // A work around for no `internal` modifier in ts yet but\n // need to strictly hide private methods to JS users.\n private static internalField = (function () {\n\n prepare = function (ecIns: ECharts): void {\n const scheduler = ecIns._scheduler;\n\n scheduler.restorePipelines(ecIns._model);\n scheduler.prepareStageTasks();\n\n prepareView(ecIns, true);\n prepareView(ecIns, false);\n\n scheduler.plan();\n };\n\n /**\n * Prepare view instances of charts and components\n */\n prepareView = function (ecIns: ECharts, isComponent: boolean): void {\n const ecModel = ecIns._model;\n const scheduler = ecIns._scheduler;\n const viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;\n const viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;\n const zr = ecIns._zr;\n const api = ecIns._api;\n\n for (let i = 0; i < viewList.length; i++) {\n viewList[i].__alive = false;\n }\n\n isComponent\n ? ecModel.eachComponent(function (componentType, model) {\n componentType !== 'series' && doPrepare(model);\n })\n : ecModel.eachSeries(doPrepare);\n\n function doPrepare(model: ComponentModel): void {\n // By defaut view will be reused if possible for the case that `setOption` with \"notMerge\"\n // mode and need to enable transition animation. (Usually, when they have the same id, or\n // especially no id but have the same type & name & index. See the `model.id` generation\n // rule in `makeIdAndName` and `viewId` generation rule here).\n // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that\n // the new model has nothing to do with the old model.\n const requireNewView = model.__requireNewView;\n // This command should not work twice.\n model.__requireNewView = false;\n // Consider: id same and type changed.\n const viewId = '_ec_' + model.id + '_' + model.type;\n let view = !requireNewView && viewMap[viewId];\n if (!view) {\n const classType = parseClassType(model.type);\n const Clazz = isComponent\n ? (ComponentView as ComponentViewConstructor).getClass(classType.main, classType.sub)\n : (\n // FIXME:TS\n // (ChartView as ChartViewConstructor).getClass('series', classType.sub)\n // For backward compat, still support a chart type declared as only subType\n // like \"liquidfill\", but recommend \"series.liquidfill\"\n // But need a base class to make a type series.\n (ChartView as ChartViewConstructor).getClass(classType.sub)\n );\n\n if (__DEV__) {\n assert(Clazz, classType.sub + ' does not exist.');\n }\n\n view = new Clazz();\n view.init(ecModel, api);\n viewMap[viewId] = view;\n viewList.push(view as any);\n zr.add(view.group);\n }\n\n model.__viewId = view.__id = viewId;\n view.__alive = true;\n view.__model = model;\n view.group.__ecComponentInfo = {\n mainType: model.mainType,\n index: model.componentIndex\n };\n !isComponent && scheduler.prepareView(\n view as ChartView, model as SeriesModel, ecModel, api\n );\n }\n\n for (let i = 0; i < viewList.length;) {\n const view = viewList[i];\n if (!view.__alive) {\n !isComponent && (view as ChartView).renderTask.dispose();\n zr.remove(view.group);\n view.dispose(ecModel, api);\n viewList.splice(i, 1);\n if (viewMap[view.__id] === view) {\n delete viewMap[view.__id];\n }\n view.__id = view.group.__ecComponentInfo = null;\n }\n else {\n i++;\n }\n }\n };\n\n updateDirectly = function (\n ecIns: ECharts,\n method: string,\n payload: Payload,\n mainType: ComponentMainType,\n subType?: ComponentSubType\n ): void {\n const ecModel = ecIns._model;\n\n ecModel.setUpdatePayload(payload);\n\n // broadcast\n if (!mainType) {\n // FIXME\n // Chart will not be update directly here, except set dirty.\n // But there is no such scenario now.\n each([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);\n return;\n }\n\n const query: QueryConditionKindA['query'] = {};\n query[mainType + 'Id'] = payload[mainType + 'Id'];\n query[mainType + 'Index'] = payload[mainType + 'Index'];\n query[mainType + 'Name'] = payload[mainType + 'Name'];\n\n const condition = {mainType: mainType, query: query} as QueryConditionKindA;\n subType && (condition.subType = subType); // subType may be '' by parseClassType;\n\n const excludeSeriesId = payload.excludeSeriesId;\n let excludeSeriesIdMap: HashMap;\n if (excludeSeriesId != null) {\n excludeSeriesIdMap = createHashMap();\n each(modelUtil.normalizeToArray(excludeSeriesId), id => {\n const modelId = modelUtil.convertOptionIdName(id, null);\n if (modelId != null) {\n excludeSeriesIdMap.set(modelId, true);\n }\n });\n }\n\n if (isHighDownPayload(payload)) {\n allLeaveBlur(ecIns._api);\n }\n\n // If dispatchAction before setOption, do nothing.\n ecModel && ecModel.eachComponent(condition, function (model) {\n const isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) !== null;\n if (isExcluded) {\n return;\n };\n if (isHighDownPayload(payload)) {\n if (model instanceof SeriesModel) {\n if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur) {\n blurSeriesFromHighlightPayload(model, payload, ecIns._api);\n }\n }\n else {\n const { focusSelf, dispatchers } = findComponentHighDownDispatchers(\n model.mainType, model.componentIndex, payload.name, ecIns._api\n );\n if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {\n blurComponent(model.mainType, model.componentIndex, ecIns._api);\n }\n // PENDING:\n // Whether to put this \"enter emphasis\" code in `ComponentView`,\n // which will be the same as `ChartView` but might be not necessary\n // and will be far from this logic.\n if (dispatchers) {\n each(dispatchers, dispatcher => {\n payload.type === HIGHLIGHT_ACTION_TYPE\n ? enterEmphasis(dispatcher)\n : leaveEmphasis(dispatcher);\n });\n }\n }\n }\n else if (isSelectChangePayload(payload)) {\n // TODO geo\n if (model instanceof SeriesModel) {\n toggleSelectionFromPayload(model, payload, ecIns._api);\n updateSeriesElementSelection(model);\n markStatusToUpdate(ecIns);\n }\n }\n }, ecIns);\n\n ecModel && ecModel.eachComponent(condition, function (model) {\n const isExcluded = excludeSeriesIdMap && excludeSeriesIdMap.get(model.id) !== null;\n if (isExcluded) {\n return;\n };\n callView(ecIns[\n mainType === 'series' ? '_chartsMap' : '_componentsMap'\n ][model.__viewId]);\n }, ecIns);\n\n function callView(view: ComponentView | ChartView) {\n view && view.__alive && (view as any)[method] && (view as any)[method](\n view.__model, ecModel, ecIns._api, payload\n );\n }\n };\n\n updateMethods = {\n\n prepareAndUpdate(this: ECharts, payload: Payload): void {\n prepare(this);\n updateMethods.update.call(this, payload, {\n // Needs to mark option changed if newOption is given.\n // It's from MagicType.\n // TODO If use a separate flag optionChanged in payload?\n optionChanged: payload.newOption != null\n });\n },\n\n update(this: ECharts, payload: Payload, updateParams: UpdateLifecycleParams): void {\n const ecModel = this._model;\n const api = this._api;\n const zr = this._zr;\n const coordSysMgr = this._coordSysMgr;\n const scheduler = this._scheduler;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n scheduler.restoreData(ecModel, payload);\n\n scheduler.performSeriesTasks(ecModel);\n\n // TODO\n // Save total ecModel here for undo/redo (after restoring data and before processing data).\n // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.\n\n // Create new coordinate system each update\n // In LineView may save the old coordinate system and use it to get the orignal point\n coordSysMgr.create(ecModel, api);\n\n scheduler.performDataProcessorTasks(ecModel, payload);\n\n // Current stream render is not supported in data process. So we can update\n // stream modes after data processing, where the filtered data is used to\n // deteming whether use progressive rendering.\n updateStreamModes(this, ecModel);\n\n // We update stream modes before coordinate system updated, then the modes info\n // can be fetched when coord sys updating (consider the barGrid extent fix). But\n // the drawback is the full coord info can not be fetched. Fortunately this full\n // coord is not requied in stream mode updater currently.\n coordSysMgr.update(ecModel, api);\n\n clearColorPalette(ecModel);\n scheduler.performVisualTasks(ecModel, payload);\n\n render(this, ecModel, api, payload, updateParams);\n\n // Set background\n let backgroundColor = ecModel.get('backgroundColor') || 'transparent';\n const darkMode = ecModel.get('darkMode');\n\n // In IE8\n if (!env.canvasSupported) {\n const colorArr = colorTool.parse(backgroundColor as ColorString);\n backgroundColor = colorTool.stringify(colorArr, 'rgb');\n if (colorArr[3] === 0) {\n backgroundColor = 'transparent';\n }\n }\n else {\n zr.setBackgroundColor(backgroundColor);\n\n // Force set dark mode.\n if (darkMode != null && darkMode !== 'auto') {\n zr.setDarkMode(darkMode);\n }\n }\n\n lifecycle.trigger('afterupdate', ecModel, api);\n },\n\n updateTransform(this: ECharts, payload: Payload): void {\n const ecModel = this._model;\n const api = this._api;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n // ChartView.markUpdateMethod(payload, 'updateTransform');\n\n const componentDirtyList = [];\n ecModel.eachComponent((componentType, componentModel) => {\n if (componentType === 'series') {\n return;\n }\n\n const componentView = this.getViewOfComponentModel(componentModel);\n if (componentView && componentView.__alive) {\n if (componentView.updateTransform) {\n const result = componentView.updateTransform(componentModel, ecModel, api, payload);\n result && result.update && componentDirtyList.push(componentView);\n }\n else {\n componentDirtyList.push(componentView);\n }\n }\n });\n\n const seriesDirtyMap = createHashMap();\n ecModel.eachSeries((seriesModel) => {\n const chartView = this._chartsMap[seriesModel.__viewId];\n if (chartView.updateTransform) {\n const result = chartView.updateTransform(seriesModel, ecModel, api, payload);\n result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);\n }\n else {\n seriesDirtyMap.set(seriesModel.uid, 1);\n }\n });\n\n clearColorPalette(ecModel);\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);\n this._scheduler.performVisualTasks(\n ecModel, payload, {setDirty: true, dirtyMap: seriesDirtyMap}\n );\n\n // Currently, not call render of components. Geo render cost a lot.\n // renderComponents(ecIns, ecModel, api, payload, componentDirtyList);\n renderSeries(this, ecModel, api, payload, {}, seriesDirtyMap);\n\n lifecycle.trigger('afterupdate', ecModel, api);\n },\n\n updateView(this: ECharts, payload: Payload): void {\n const ecModel = this._model;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n ChartView.markUpdateMethod(payload, 'updateView');\n\n clearColorPalette(ecModel);\n\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n this._scheduler.performVisualTasks(ecModel, payload, {setDirty: true});\n\n render(this, ecModel, this._api, payload, {});\n\n lifecycle.trigger('afterupdate', ecModel, this._api);\n },\n\n updateVisual(this: ECharts, payload: Payload): void {\n // updateMethods.update.call(this, payload);\n\n const ecModel = this._model;\n\n // update before setOption\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n\n // clear all visual\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.getData().clearAllVisual();\n });\n\n // Perform visual\n ChartView.markUpdateMethod(payload, 'updateVisual');\n\n clearColorPalette(ecModel);\n\n // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n this._scheduler.performVisualTasks(ecModel, payload, {visualType: 'visual', setDirty: true});\n\n ecModel.eachComponent((componentType, componentModel) => { // TODO componentType may be series.\n if (componentType !== 'series') {\n const componentView = this.getViewOfComponentModel(componentModel);\n componentView && componentView.__alive\n && componentView.updateVisual(componentModel, ecModel, this._api, payload);\n }\n });\n\n ecModel.eachSeries((seriesModel) => {\n const chartView = this._chartsMap[seriesModel.__viewId];\n chartView.updateVisual(seriesModel, ecModel, this._api, payload);\n });\n\n lifecycle.trigger('afterupdate', ecModel, this._api);\n },\n\n updateLayout(this: ECharts, payload: Payload): void {\n updateMethods.update.call(this, payload);\n }\n };\n\n doConvertPixel = function (\n ecIns: ECharts,\n methodName: 'convertFromPixel' | 'convertToPixel',\n finder: ModelFinder,\n value: (number | number[]) | (ScaleDataValue | ScaleDataValue[])\n ): (number | number[]) {\n if (ecIns._disposed) {\n disposedWarning(ecIns.id);\n return;\n }\n const ecModel = ecIns._model;\n const coordSysList = ecIns._coordSysMgr.getCoordinateSystems();\n let result;\n\n const parsedFinder = modelUtil.parseFinder(ecModel, finder);\n\n for (let i = 0; i < coordSysList.length; i++) {\n const coordSys = coordSysList[i];\n if (coordSys[methodName]\n && (result = coordSys[methodName](ecModel, parsedFinder, value as any)) != null\n ) {\n return result;\n }\n }\n\n if (__DEV__) {\n console.warn(\n 'No coordinate system that supports ' + methodName + ' found by the given finder.'\n );\n }\n };\n\n updateStreamModes = function (ecIns: ECharts, ecModel: GlobalModel): void {\n const chartsMap = ecIns._chartsMap;\n const scheduler = ecIns._scheduler;\n ecModel.eachSeries(function (seriesModel) {\n scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);\n });\n };\n\n doDispatchAction = function (this: ECharts, payload: Payload, silent: boolean): void {\n const ecModel = this.getModel();\n const payloadType = payload.type;\n const escapeConnect = payload.escapeConnect;\n const actionWrap = actions[payloadType];\n const actionInfo = actionWrap.actionInfo;\n\n const cptTypeTmp = (actionInfo.update || 'update').split(':');\n const updateMethod = cptTypeTmp.pop();\n const cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n let payloads: Payload[] = [payload];\n let batched = false;\n // Batch action\n if (payload.batch) {\n batched = true;\n payloads = map(payload.batch, function (item) {\n item = defaults(extend({}, item), payload);\n item.batch = null;\n return item as Payload;\n });\n }\n\n const eventObjBatch: ECEventData[] = [];\n let eventObj: ECActionEvent;\n\n const isSelectChange = isSelectChangePayload(payload);\n const isHighDown = isHighDownPayload(payload);\n\n each(payloads, (batchItem) => {\n // Action can specify the event by return it.\n eventObj = actionWrap.action(batchItem, this._model, this._api) as ECActionEvent;\n // Emit event outside\n eventObj = eventObj || extend({} as ECActionEvent, batchItem);\n // Convert type to eventType\n eventObj.type = actionInfo.event || eventObj.type;\n eventObjBatch.push(eventObj);\n\n // light update does not perform data process, layout and visual.\n if (isHighDown) {\n const { queryOptionMap, mainTypeSpecified } = modelUtil.preParseFinder(payload as ModelFinder);\n const componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';\n updateDirectly(this, updateMethod, batchItem as Payload, componentMainType);\n markStatusToUpdate(this);\n }\n else if (isSelectChange) {\n // At present `dispatchAction({ type: 'select', ... })` is not supported on components.\n // geo still use 'geoselect'.\n updateDirectly(this, updateMethod, batchItem as Payload, 'series');\n markStatusToUpdate(this);\n }\n else if (cptType) {\n updateDirectly(this, updateMethod, batchItem as Payload, cptType.main, cptType.sub);\n }\n });\n\n if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {\n // Still dirty\n if (this[PENDING_UPDATE]) {\n prepare(this);\n updateMethods.update.call(this, payload);\n this[PENDING_UPDATE] = null;\n }\n else {\n updateMethods[updateMethod as keyof typeof updateMethods].call(this, payload);\n }\n }\n\n // Follow the rule of action batch\n if (batched) {\n eventObj = {\n type: actionInfo.event || payloadType,\n escapeConnect: escapeConnect,\n batch: eventObjBatch\n };\n }\n else {\n eventObj = eventObjBatch[0] as ECActionEvent;\n }\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n if (!silent) {\n const messageCenter = this._messageCenter;\n messageCenter.trigger(eventObj.type, eventObj);\n // Extra triggered 'selectchanged' event\n if (isSelectChange) {\n const newObj: SelectChangedPayload = {\n type: 'selectchanged',\n escapeConnect: escapeConnect,\n selected: getAllSelectedIndices(ecModel),\n isFromClick: payload.isFromClick || false,\n fromAction: payload.type as 'select' | 'unselect' | 'toggleSelected',\n fromActionPayload: payload\n };\n messageCenter.trigger(newObj.type, newObj);\n }\n }\n };\n\n flushPendingActions = function (this: ECharts, silent: boolean): void {\n const pendingActions = this._pendingActions;\n while (pendingActions.length) {\n const payload = pendingActions.shift();\n doDispatchAction.call(this, payload, silent);\n }\n };\n\n triggerUpdatedEvent = function (this: ECharts, silent): void {\n !silent && this.trigger('updated');\n };\n\n /**\n * Event `rendered` is triggered when zr\n * rendered. It is useful for realtime\n * snapshot (reflect animation).\n *\n * Event `finished` is triggered when:\n * (1) zrender rendering finished.\n * (2) initial animation finished.\n * (3) progressive rendering finished.\n * (4) no pending action.\n * (5) no delayed setOption needs to be processed.\n */\n bindRenderedEvent = function (zr: zrender.ZRenderType, ecIns: ECharts): void {\n zr.on('rendered', function (params: RenderedEventParam) {\n\n ecIns.trigger('rendered', params);\n\n // The `finished` event should not be triggered repeatly,\n // so it should only be triggered when rendering indeed happend\n // in zrender. (Consider the case that dipatchAction is keep\n // triggering when mouse move).\n if (\n // Although zr is dirty if initial animation is not finished\n // and this checking is called on frame, we also check\n // animation finished for robustness.\n zr.animation.isFinished()\n && !ecIns[PENDING_UPDATE]\n && !ecIns._scheduler.unfinished\n && !ecIns._pendingActions.length\n ) {\n ecIns.trigger('finished');\n }\n });\n };\n\n bindMouseEvent = function (zr: zrender.ZRenderType, ecIns: ECharts): void {\n zr.on('mouseover', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n if (dispatcher) {\n handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('mouseout', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n if (dispatcher) {\n handleGlboalMouseOutForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('click', function (e) {\n const el = e.target;\n const dispatcher = findEventDispatcher(\n el, (target) => getECData(target).dataIndex != null, true\n );\n if (dispatcher) {\n const actionType = (dispatcher as ECElement).selected ? 'unselect' : 'select';\n const ecData = getECData(dispatcher);\n ecIns._api.dispatchAction({\n type: actionType,\n dataType: ecData.dataType,\n dataIndexInside: ecData.dataIndex,\n seriesIndex: ecData.seriesIndex,\n isFromClick: true\n });\n }\n });\n };\n\n clearColorPalette = function (ecModel: GlobalModel): void {\n ecModel.clearColorPalette();\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.clearColorPalette();\n });\n };\n\n render = (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams\n ) => {\n\n renderComponents(ecIns, ecModel, api, payload, updateParams);\n\n each(ecIns._chartsViews, function (chart: ChartView) {\n chart.__alive = false;\n });\n\n renderSeries(ecIns, ecModel, api, payload, updateParams);\n\n // Remove groups of unrendered charts\n each(ecIns._chartsViews, function (chart: ChartView) {\n if (!chart.__alive) {\n chart.remove(ecModel, api);\n }\n });\n };\n\n renderComponents = (\n ecIns: ECharts, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload,\n updateParams: UpdateLifecycleParams, dirtyList?: ComponentView[]\n ) => {\n each(dirtyList || ecIns._componentsViews, function (componentView: ComponentView) {\n const componentModel = componentView.__model;\n clearStates(componentModel, componentView);\n\n componentView.render(componentModel, ecModel, api, payload);\n\n updateZ(componentModel, componentView);\n\n updateStates(componentModel, componentView);\n });\n\n };\n\n /**\n * Render each chart and component\n */\n renderSeries = (\n ecIns: ECharts,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload | 'remain',\n updateParams: UpdateLifecycleParams,\n dirtyMap?: {[uid: string]: any}\n ) => {\n // Render all charts\n const scheduler = ecIns._scheduler;\n\n updateParams = extend(updateParams || {}, {\n updatedSeries: ecModel.getSeries()\n });\n\n // TODO progressive?\n lifecycle.trigger('series:beforeupdate', ecModel, api, updateParams);\n\n let unfinished: boolean = false;\n ecModel.eachSeries(function (seriesModel) {\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n\n const renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n // TODO states on marker.\n clearStates(seriesModel, chartView);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {\n unfinished = true;\n }\n\n chartView.group.silent = !!seriesModel.get('silent');\n // Should not call markRedraw on group, because it will disable zrender\n // increamental render (alway render from the __startIndex each frame)\n // chartView.group.markRedraw();\n\n updateBlend(seriesModel, chartView);\n\n updateSeriesElementSelection(seriesModel);\n });\n\n scheduler.unfinished = unfinished || scheduler.unfinished;\n\n lifecycle.trigger('series:layoutlabels', ecModel, api, updateParams);\n\n // transition after label is layouted.\n lifecycle.trigger('series:transition', ecModel, api, updateParams);\n\n ecModel.eachSeries(function (seriesModel) {\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n // Update Z after labels updated. Before applying states.\n updateZ(seriesModel, chartView);\n\n // NOTE: Update states after label is updated.\n // label should be in normal status when layouting.\n updateStates(seriesModel, chartView);\n });\n\n // If use hover layer\n updateHoverLayerStatus(ecIns, ecModel);\n\n lifecycle.trigger('series:afterupdate', ecModel, api, updateParams);\n };\n\n markStatusToUpdate = function (ecIns: ECharts): void {\n ecIns[STATUS_NEEDS_UPDATE_KEY] = true;\n // Wake up zrender if it's sleep. Let it update states in the next frame.\n ecIns.getZr().wakeUp();\n };\n\n applyChangedStates = function (ecIns: ECharts): void {\n if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {\n return;\n }\n\n ecIns.getZr().storage.traverse(function (el: ECElement) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n applyElementStates(el);\n });\n\n ecIns[STATUS_NEEDS_UPDATE_KEY] = false;\n };\n\n function applyElementStates(el: ECElement) {\n const newStates = [];\n\n const oldStates = el.currentStates;\n // Keep other states.\n for (let i = 0; i < oldStates.length; i++) {\n const stateName = oldStates[i];\n if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {\n newStates.push(stateName);\n }\n }\n\n // Only use states when it's exists.\n if (el.selected && el.states.select) {\n newStates.push('select');\n }\n if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {\n newStates.push('emphasis');\n }\n else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {\n newStates.push('blur');\n }\n el.useStates(newStates);\n }\n\n function updateHoverLayerStatus(ecIns: ECharts, ecModel: GlobalModel): void {\n const zr = ecIns._zr;\n const storage = zr.storage;\n let elCount = 0;\n\n storage.traverse(function (el) {\n if (!el.isGroup) {\n elCount++;\n }\n });\n\n if (elCount > ecModel.get('hoverLayerThreshold') && !env.node && !env.worker) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.preventUsingHoverLayer) {\n return;\n }\n const chartView = ecIns._chartsMap[seriesModel.__viewId];\n if (chartView.__alive) {\n chartView.group.traverse(function (el: ECElement) {\n if (el.states.emphasis) {\n el.states.emphasis.hoverLayer = true;\n }\n });\n }\n });\n }\n };\n\n /**\n * Update chart and blend.\n */\n function updateBlend(seriesModel: SeriesModel, chartView: ChartView): void {\n const blendMode = seriesModel.get('blendMode') || null;\n if (__DEV__) {\n if (!env.canvasSupported && blendMode && blendMode !== 'source-over') {\n console.warn('Only canvas support blendMode');\n }\n }\n chartView.group.traverse(function (el: Displayable) {\n // FIXME marker and other components\n if (!el.isGroup) {\n // DONT mark the element dirty. In case element is incremental and don't wan't to rerender.\n el.style.blend = blendMode;\n }\n if ((el as IncrementalDisplayable).eachPendingDisplayable) {\n (el as IncrementalDisplayable).eachPendingDisplayable(function (displayable) {\n displayable.style.blend = blendMode;\n });\n }\n });\n };\n\n function updateZ(model: ComponentModel, view: ComponentView | ChartView): void {\n if (model.preventAutoZ) {\n return;\n }\n // Set z and zlevel\n _updateZ(\n view.group,\n model.get('z') || 0,\n model.get('zlevel') || 0,\n -Infinity\n );\n };\n\n function _updateZ(el: Element, z: number, zlevel: number, maxZ2: number): number {\n // Group may also have textContent\n const label = el.getTextContent();\n const labelLine = el.getTextGuideLine();\n const isGroup = el.isGroup;\n\n if (isGroup) {\n // set z & zlevel of children elements of Group\n // el.traverse((childEl: Element) => _updateZ(childEl, z, zlevel));\n const children = (el as graphic.Group).childrenRef();\n for (let i = 0; i < children.length; i++) {\n maxZ2 = Math.max(_updateZ(children[i], z, zlevel, maxZ2), maxZ2);\n }\n }\n else {\n // not Group\n (el as Displayable).z = z;\n (el as Displayable).zlevel = zlevel;\n\n maxZ2 = Math.max((el as Displayable).z2, maxZ2);\n }\n\n // always set z and zlevel if label/labelLine exists\n if (label) {\n label.z = z;\n label.zlevel = zlevel;\n // lift z2 of text content\n // TODO if el.emphasis.z2 is spcefied, what about textContent.\n isFinite(maxZ2) && (label.z2 = maxZ2 + 2);\n }\n if (labelLine) {\n const textGuideLineConfig = el.textGuideLineConfig;\n labelLine.z = z;\n labelLine.zlevel = zlevel;\n isFinite(maxZ2)\n && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));\n }\n return maxZ2;\n }\n\n // Clear states without animation.\n // TODO States on component.\n function clearStates(model: ComponentModel, view: ComponentView | ChartView): void {\n view.group.traverse(function (el: Displayable) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n if (el.stateTransition) {\n el.stateTransition = null;\n }\n if (textContent && textContent.stateTransition) {\n textContent.stateTransition = null;\n }\n if (textGuide && textGuide.stateTransition) {\n textGuide.stateTransition = null;\n }\n\n // TODO If el is incremental.\n if (el.hasState()) {\n el.prevStates = el.currentStates;\n el.clearStates();\n }\n else if (el.prevStates) {\n el.prevStates = null;\n }\n });\n }\n\n function updateStates(model: ComponentModel, view: ComponentView | ChartView): void {\n const stateAnimationModel = (model as SeriesModel).getModel('stateAnimation');\n const enableAnimation = model.isAnimationEnabled();\n const duration = stateAnimationModel.get('duration');\n const stateTransition = duration > 0 ? {\n duration,\n delay: stateAnimationModel.get('delay'),\n easing: stateAnimationModel.get('easing')\n // additive: stateAnimationModel.get('additive')\n } : null;\n view.group.traverse(function (el: Displayable) {\n if (el.states && el.states.emphasis) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n if (el instanceof graphic.Path) {\n savePathStates(el);\n }\n\n // Only updated on changed element. In case element is incremental and don't wan't to rerender.\n // TODO, a more proper way?\n if (el.__dirty) {\n const prevStates = el.prevStates;\n // Restore states without animation\n if (prevStates) {\n el.useStates(prevStates);\n }\n }\n\n // Update state transition and enable animation again.\n if (enableAnimation) {\n el.stateTransition = stateTransition;\n const textContent = el.getTextContent();\n const textGuide = el.getTextGuideLine();\n // TODO Is it necessary to animate label?\n if (textContent) {\n textContent.stateTransition = stateTransition;\n }\n if (textGuide) {\n textGuide.stateTransition = stateTransition;\n }\n }\n\n // The use higlighted and selected flag to toggle states.\n if (el.__dirty) {\n applyElementStates(el);\n }\n }\n });\n };\n\n createExtensionAPI = function (ecIns: ECharts): ExtensionAPI {\n return new (class extends ExtensionAPI {\n getCoordinateSystems(): CoordinateSystemMaster[] {\n return ecIns._coordSysMgr.getCoordinateSystems();\n }\n getComponentByElement(el: Element) {\n while (el) {\n const modelInfo = (el as ViewRootGroup).__ecComponentInfo;\n if (modelInfo != null) {\n return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);\n }\n el = el.parent;\n }\n }\n enterEmphasis(el: Element, highlightDigit?: number) {\n enterEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n }\n leaveEmphasis(el: Element, highlightDigit?: number) {\n leaveEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n }\n enterBlur(el: Element) {\n enterBlur(el);\n markStatusToUpdate(ecIns);\n }\n leaveBlur(el: Element) {\n leaveBlur(el);\n markStatusToUpdate(ecIns);\n }\n enterSelect(el: Element) {\n enterSelect(el);\n markStatusToUpdate(ecIns);\n }\n leaveSelect(el: Element) {\n leaveSelect(el);\n markStatusToUpdate(ecIns);\n }\n getModel(): GlobalModel {\n return ecIns.getModel();\n }\n getViewOfComponentModel(componentModel: ComponentModel): ComponentView {\n return ecIns.getViewOfComponentModel(componentModel);\n }\n getViewOfSeriesModel(seriesModel: SeriesModel): ChartView {\n return ecIns.getViewOfSeriesModel(seriesModel);\n }\n })(ecIns);\n };\n\n enableConnect = function (chart: ECharts): void {\n\n function updateConnectedChartsStatus(charts: ECharts[], status: ConnectStatus) {\n for (let i = 0; i < charts.length; i++) {\n const otherChart = charts[i];\n otherChart[CONNECT_STATUS_KEY] = status;\n }\n }\n\n each(eventActionMap, function (actionType, eventType) {\n chart._messageCenter.on(eventType, function (event: ECActionEvent) {\n if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {\n if (event && event.escapeConnect) {\n return;\n }\n\n const action = chart.makeActionFromEvent(event);\n const otherCharts: ECharts[] = [];\n\n each(instances, function (otherChart) {\n if (otherChart !== chart && otherChart.group === chart.group) {\n otherCharts.push(otherChart);\n }\n });\n\n updateConnectedChartsStatus(otherCharts, CONNECT_STATUS_PENDING);\n each(otherCharts, function (otherChart) {\n if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {\n otherChart.dispatchAction(action);\n }\n });\n updateConnectedChartsStatus(otherCharts, CONNECT_STATUS_UPDATED);\n }\n });\n });\n };\n })();\n}\n\n\nconst echartsProto = ECharts.prototype;\nechartsProto.on = createRegisterEventWithLowercaseECharts('on');\nechartsProto.off = createRegisterEventWithLowercaseECharts('off');\n/**\n * @deprecated\n */\n// @ts-ignore\nechartsProto.one = function (eventName: string, cb: Function, ctx?: any) {\n const self = this;\n deprecateLog('ECharts#one is deprecated.');\n function wrapped(this: unknown, ...args2: any) {\n cb && cb.apply && cb.apply(this, args2);\n // @ts-ignore\n self.off(eventName, wrapped);\n };\n // @ts-ignore\n this.on.call(this, eventName, wrapped, ctx);\n};\n\n// /**\n// * Encode visual infomation from data after data processing\n// *\n// * @param {module:echarts/model/Global} ecModel\n// * @param {object} layout\n// * @param {boolean} [layoutFilter] `true`: only layout,\n// * `false`: only not layout,\n// * `null`/`undefined`: all.\n// * @param {string} taskBaseTag\n// * @private\n// */\n// function startVisualEncoding(ecIns, ecModel, api, payload, layoutFilter) {\n// each(visualFuncs, function (visual, index) {\n// let isLayout = visual.isLayout;\n// if (layoutFilter == null\n// || (layoutFilter === false && !isLayout)\n// || (layoutFilter === true && isLayout)\n// ) {\n// visual.func(ecModel, api, payload);\n// }\n// });\n// }\n\n\nconst MOUSE_EVENT_NAMES: ZRElementEventName[] = [\n 'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove',\n 'mousedown', 'mouseup', 'globalout', 'contextmenu'\n];\n\nfunction disposedWarning(id: string): void {\n if (__DEV__) {\n console.warn('Instance ' + id + ' has been disposed');\n }\n}\n\n\nconst actions: {\n [actionType: string]: {\n action: ActionHandler,\n actionInfo: ActionInfo\n }\n} = {};\n\n/**\n * Map eventType to actionType\n */\nconst eventActionMap: {[eventType: string]: string} = {};\n\nconst dataProcessorFuncs: StageHandlerInternal[] = [];\n\nconst optionPreprocessorFuncs: OptionPreprocessor[] = [];\n\nconst visualFuncs: StageHandlerInternal[] = [];\n\nconst themeStorage: {[themeName: string]: ThemeOption} = {};\n\nconst loadingEffects: {[effectName: string]: LoadingEffectCreator} = {};\n\nconst instances: {[id: string]: ECharts} = {};\nconst connectedGroups: {[groupId: string]: boolean} = {};\n\nlet idBase: number = +(new Date()) - 0;\nlet groupIdBase: number = +(new Date()) - 0;\nconst DOM_ATTRIBUTE_KEY = '_echarts_instance_';\n\n\n/**\n * @param opts.devicePixelRatio Use window.devicePixelRatio by default\n * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.\n * @param opts.width Use clientWidth of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.height Use clientHeight of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.locale Specify the locale.\n * @param opts.useDirtyRect Enable dirty rectangle rendering or not.\n */\nexport function init(\n dom: HTMLElement,\n theme?: string | object,\n opts?: EChartsInitOpts\n): EChartsType {\n if (__DEV__) {\n if (!dom) {\n throw new Error('Initialize failed: invalid dom.');\n }\n }\n\n const existInstance = getInstanceByDom(dom);\n if (existInstance) {\n if (__DEV__) {\n console.warn('There is a chart instance already initialized on the dom.');\n }\n return existInstance;\n }\n\n if (__DEV__) {\n if (isDom(dom)\n && dom.nodeName.toUpperCase() !== 'CANVAS'\n && (\n (!dom.clientWidth && (!opts || opts.width == null))\n || (!dom.clientHeight && (!opts || opts.height == null))\n )\n ) {\n console.warn('Can\\'t get DOM width or height. Please check '\n + 'dom.clientWidth and dom.clientHeight. They should not be 0.'\n + 'For example, you may need to call this in the callback '\n + 'of window.onload.');\n }\n }\n\n const chart = new ECharts(dom, theme, opts);\n chart.id = 'ec_' + idBase++;\n instances[chart.id] = chart;\n\n modelUtil.setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);\n\n enableConnect(chart);\n\n lifecycle.trigger('afterinit', chart);\n\n return chart;\n}\n\n/**\n * @usage\n * (A)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * chart1.group = 'xxx';\n * chart2.group = 'xxx';\n * echarts.connect('xxx');\n * ```\n * (B)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * echarts.connect('xxx', [chart1, chart2]);\n * ```\n */\nexport function connect(groupId: string | EChartsType[]): string {\n // Is array of charts\n if (isArray(groupId)) {\n const charts = groupId;\n groupId = null;\n // If any chart has group\n each(charts, function (chart) {\n if (chart.group != null) {\n groupId = chart.group;\n }\n });\n groupId = groupId || ('g_' + groupIdBase++);\n each(charts, function (chart) {\n chart.group = groupId as string;\n });\n }\n connectedGroups[groupId as string] = true;\n return groupId as string;\n}\n\n/**\n * @deprecated\n */\nexport function disConnect(groupId: string): void {\n connectedGroups[groupId] = false;\n}\n\n/**\n * Alias and backword compat\n */\nexport const disconnect = disConnect;\n\n/**\n * Dispose a chart instance\n */\nexport function dispose(chart: EChartsType | HTMLElement | string): void {\n if (typeof chart === 'string') {\n chart = instances[chart];\n }\n else if (!(chart instanceof ECharts)) {\n // Try to treat as dom\n chart = getInstanceByDom(chart);\n }\n if ((chart instanceof ECharts) && !chart.isDisposed()) {\n chart.dispose();\n }\n}\n\nexport function getInstanceByDom(dom: HTMLElement): EChartsType {\n return instances[modelUtil.getAttribute(dom, DOM_ATTRIBUTE_KEY)];\n}\n\nexport function getInstanceById(key: string): EChartsType {\n return instances[key];\n}\n\n/**\n * Register theme\n */\nexport function registerTheme(name: string, theme: ThemeOption): void {\n themeStorage[name] = theme;\n}\n\n/**\n * Register option preprocessor\n */\nexport function registerPreprocessor(preprocessorFunc: OptionPreprocessor): void {\n if (indexOf(optionPreprocessorFuncs, preprocessorFunc) < 0) {\n optionPreprocessorFuncs.push(preprocessorFunc);\n }\n}\n\nexport function registerProcessor(\n priority: number | StageHandler | StageHandlerOverallReset,\n processor?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);\n}\n\n\n/**\n * Register postIniter\n * @param {Function} postInitFunc\n */\nexport function registerPostInit(postInitFunc: PostIniter): void {\n registerUpdateLifecycle('afterinit', postInitFunc);\n}\n\n/**\n * Register postUpdater\n * @param {Function} postUpdateFunc\n */\nexport function registerPostUpdate(postUpdateFunc: PostUpdater): void {\n registerUpdateLifecycle('afterupdate', postUpdateFunc);\n}\n\nexport function registerUpdateLifecycle(\n name: T, cb: (...args: LifecycleEvents[T]) => void\n): void {\n (lifecycle as any).on(name, cb);\n}\n\n/**\n * @usage\n * registerAction('someAction', 'someEvent', function () { ... });\n * registerAction('someAction', function () { ... });\n * registerAction(\n * {type: 'someAction', event: 'someEvent', update: 'updateView'},\n * function () { ... }\n * );\n *\n * @param {(string|Object)} actionInfo\n * @param {string} actionInfo.type\n * @param {string} [actionInfo.event]\n * @param {string} [actionInfo.update]\n * @param {string} [eventName]\n * @param {Function} action\n */\nexport function registerAction(type: string, eventName: string, action: ActionHandler): void;\nexport function registerAction(type: string, action: ActionHandler): void;\nexport function registerAction(actionInfo: ActionInfo, action: ActionHandler): void;\nexport function registerAction(\n actionInfo: string | ActionInfo,\n eventName: string | ActionHandler,\n action?: ActionHandler\n): void {\n if (typeof eventName === 'function') {\n action = eventName;\n eventName = '';\n }\n const actionType = isObject(actionInfo)\n ? (actionInfo as ActionInfo).type\n : ([actionInfo, actionInfo = {\n event: eventName\n } as ActionInfo][0]);\n\n // Event name is all lowercase\n (actionInfo as ActionInfo).event = (\n (actionInfo as ActionInfo).event || actionType as string\n ).toLowerCase();\n eventName = (actionInfo as ActionInfo).event;\n\n if (eventActionMap[eventName as string]) {\n // Already registered.\n return;\n }\n\n // Validate action type and event name.\n assert(ACTION_REG.test(actionType as string) && ACTION_REG.test(eventName));\n\n if (!actions[actionType as string]) {\n actions[actionType as string] = {action: action, actionInfo: actionInfo as ActionInfo};\n }\n eventActionMap[eventName as string] = actionType as string;\n}\n\nexport function registerCoordinateSystem(\n type: string,\n coordSysCreator: CoordinateSystemCreator\n): void {\n CoordinateSystemManager.register(type, coordSysCreator);\n}\n\n/**\n * Get dimensions of specified coordinate system.\n * @param {string} type\n * @return {Array.}\n */\nexport function getCoordinateSystemDimensions(type: string): DimensionDefinitionLoose[] {\n const coordSysCreator = CoordinateSystemManager.get(type);\n if (coordSysCreator) {\n return coordSysCreator.getDimensionsInfo\n ? coordSysCreator.getDimensionsInfo()\n : coordSysCreator.dimensions.slice();\n }\n}\n\nexport {registerLocale} from './locale';\n\n/**\n * Layout is a special stage of visual encoding\n * Most visual encoding like color are common for different chart\n * But each chart has it's own layout algorithm\n */\nfunction registerLayout(priority: number, layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerLayout(layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerLayout(\n priority: number | StageHandler | StageHandlerOverallReset,\n layoutTask?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');\n}\n\nfunction registerVisual(priority: number, layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerVisual(layoutTask: StageHandler | StageHandlerOverallReset): void;\nfunction registerVisual(\n priority: number | StageHandler | StageHandlerOverallReset,\n visualTask?: StageHandler | StageHandlerOverallReset\n): void {\n normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');\n}\n\nexport {registerLayout, registerVisual};\n\nconst registeredTasks: (StageHandler | StageHandlerOverallReset)[] = [];\n\nfunction normalizeRegister(\n targetList: StageHandler[],\n priority: number | StageHandler | StageHandlerOverallReset,\n fn: StageHandler | StageHandlerOverallReset,\n defaultPriority: number,\n visualType?: StageHandlerInternal['visualType']\n): void {\n if (isFunction(priority) || isObject(priority)) {\n fn = priority as (StageHandler | StageHandlerOverallReset);\n priority = defaultPriority;\n }\n\n if (__DEV__) {\n if (isNaN(priority) || priority == null) {\n throw new Error('Illegal priority');\n }\n // Check duplicate\n each(targetList, function (wrap) {\n assert((wrap as StageHandlerInternal).__raw !== fn);\n });\n }\n\n // Already registered\n if (indexOf(registeredTasks, fn) >= 0) {\n return;\n }\n registeredTasks.push(fn);\n\n const stageHandler = Scheduler.wrapStageHandler(fn, visualType);\n\n stageHandler.__prio = priority;\n stageHandler.__raw = fn;\n targetList.push(stageHandler);\n}\n\nexport function registerLoading(\n name: string,\n loadingFx: LoadingEffectCreator\n): void {\n loadingEffects[name] = loadingFx;\n}\n\n/**\n * ZRender need a canvas context to do measureText.\n * But in node environment canvas may be created by node-canvas.\n * So we need to specify how to create a canvas instead of using document.createElement('canvas')\n *\n * Be careful of using it in the browser.\n *\n * @example\n * let Canvas = require('canvas');\n * let echarts = require('echarts');\n * echarts.setCanvasCreator(function () {\n * // Small size is enough.\n * return new Canvas(32, 32);\n * });\n */\nexport function setCanvasCreator(creator: () => HTMLCanvasElement): void {\n $override('createCanvas', creator);\n}\n\n/**\n * The parameters and usage: see `geoSourceManager.registerMap`.\n * Compatible with previous `echarts.registerMap`.\n */\nexport function registerMap(\n mapName: Parameters[0],\n geoJson: Parameters[1],\n specialAreas?: Parameters[2]\n): void {\n geoSourceManager.registerMap(mapName, geoJson, specialAreas);\n}\n\nexport function getMap(mapName: string) {\n return geoSourceManager.getMapForUser(mapName);\n}\n\nexport const registerTransform = registerExternalTransform;\n\n/**\n * Globa dispatchAction to a specified chart instance.\n */\n// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters[1]) {\n// if (!payload || !payload.chartId) {\n// // Must have chartId to find chart\n// return;\n// }\n// const chart = instances[payload.chartId];\n// if (chart) {\n// chart.dispatchAction(payload, opt);\n// }\n// }\n\n\n\n// Buitlin global visual\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);\n\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);\n\nregisterVisual(PRIORITY_VISUAL_DECAL, decal);\n\nregisterPreprocessor(backwardCompat);\nregisterProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);\nregisterLoading('default', loadingDefault);\n\n// Default actions\n\nregisterAction({\n type: HIGHLIGHT_ACTION_TYPE,\n event: HIGHLIGHT_ACTION_TYPE,\n update: HIGHLIGHT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: DOWNPLAY_ACTION_TYPE,\n event: DOWNPLAY_ACTION_TYPE,\n update: DOWNPLAY_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: SELECT_ACTION_TYPE,\n event: SELECT_ACTION_TYPE,\n update: SELECT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: UNSELECT_ACTION_TYPE,\n event: UNSELECT_ACTION_TYPE,\n update: UNSELECT_ACTION_TYPE\n}, noop);\n\nregisterAction({\n type: TOGGLE_SELECT_ACTION_TYPE,\n event: TOGGLE_SELECT_ACTION_TYPE,\n update: TOGGLE_SELECT_ACTION_TYPE\n}, noop);\n\n// Default theme\nregisterTheme('light', lightTheme);\nregisterTheme('dark', darkTheme);\n\n// For backward compatibility, where the namespace `dataTool` will\n// be mounted on `echarts` is the extension `dataTool` is imported.\nexport const dataTool = {};\n\nexport interface EChartsType extends ECharts {}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n registerPreprocessor,\n registerProcessor,\n registerPostInit,\n registerPostUpdate,\n registerAction,\n registerCoordinateSystem,\n registerLayout,\n registerVisual,\n registerTransform,\n registerLoading,\n registerMap,\n registerUpdateLifecycle,\n PRIORITY\n} from './core/echarts';\nimport ComponentView from './view/Component';\nimport ChartView from './view/Chart';\nimport ComponentModel from './model/Component';\nimport SeriesModel from './model/Series';\nimport { isFunction, indexOf, isArray, each } from 'zrender/src/core/util';\nimport { Constructor } from './util/clazz';\nimport { SubTypeDefaulter } from './util/component';\nimport { registerPainter } from 'zrender/src/zrender';\n\nconst extensions: (EChartsExtensionInstaller | EChartsExtension)[] = [];\n\nconst extensionRegisters = {\n registerPreprocessor,\n registerProcessor,\n registerPostInit,\n registerPostUpdate,\n registerUpdateLifecycle,\n registerAction,\n registerCoordinateSystem,\n registerLayout,\n registerVisual,\n registerTransform,\n registerLoading,\n registerMap,\n PRIORITY,\n\n ComponentModel,\n ComponentView,\n SeriesModel,\n ChartView,\n // TODO Use ComponentModel and SeriesModel instead of Constructor\n registerComponentModel(ComponentModelClass: Constructor) {\n ComponentModel.registerClass(ComponentModelClass);\n },\n registerComponentView(ComponentViewClass: typeof ComponentView) {\n ComponentView.registerClass(ComponentViewClass);\n },\n registerSeriesModel(SeriesModelClass: Constructor) {\n SeriesModel.registerClass(SeriesModelClass);\n },\n registerChartView(ChartViewClass: typeof ChartView) {\n ChartView.registerClass(ChartViewClass);\n },\n registerSubTypeDefaulter(componentType: string, defaulter: SubTypeDefaulter) {\n ComponentModel.registerSubTypeDefaulter(componentType, defaulter);\n },\n registerPainter(painterType: string, PainterCtor: Parameters[1]) {\n registerPainter(painterType, PainterCtor);\n }\n};\n\nexport type EChartsExtensionInstallRegisters = typeof extensionRegisters;\n\nexport type EChartsExtensionInstaller = (ec: EChartsExtensionInstallRegisters) => void;\nexport interface EChartsExtension {\n install: EChartsExtensionInstaller\n}\n\nexport function use(\n ext: EChartsExtensionInstaller | EChartsExtension | (EChartsExtensionInstaller | EChartsExtension)[]\n) {\n if (isArray(ext)) {\n // use([ChartLine, ChartBar]);\n each(ext, (singleExt) => {\n use(singleExt);\n });\n return;\n }\n\n if (indexOf(extensions, ext) >= 0) {\n return;\n }\n extensions.push(ext);\n\n if (isFunction(ext)) {\n ext = {\n install: ext\n };\n }\n ext.install(extensionRegisters);\n}\n\n// A simpler use type for exporting to reduce exported inner modules.\nexport type EChartsExtensionInstallerSimple = (registers: any) => void;\ntype SimpleEChartsExtensionType = EChartsExtensionInstallerSimple | { install: EChartsExtensionInstallerSimple };\nexport declare function useSimple(ext: SimpleEChartsExtensionType | (SimpleEChartsExtensionType)[]): void;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {ArrayLike} from 'zrender/src/core/types';\n\n// return key.\ntype DiffKeyGetter =\n (this: DataDiffer, value: unknown, index: number) => string;\n\ntype DiffCallbackAdd = (newIndex: number) => void;\ntype DiffCallbackUpdate = (newIndex: number, oldIndex: number) => void;\ntype DiffCallbackRemove = (oldIndex: number) => void;\ntype DiffCallbackUpdateManyToOne = (newIndex: number, oldIndex: number[]) => void;\ntype DiffCallbackUpdateOneToMany = (newIndex: number[], oldIndex: number) => void;\ntype DiffCallbackUpdateManyToMany = (newIndex: number[], oldIndex: number[]) => void;\n\n/**\n * The value of `DataIndexMap` can only be:\n * + a number\n * + a number[] that length >= 2.\n * + null/undefined\n */\ntype DataIndexMap = {[key: string]: number | number[]};\n\nfunction dataIndexMapValueLength(\n valNumOrArrLengthMoreThan2: number | number[]\n): number {\n return valNumOrArrLengthMoreThan2 == null\n ? 0\n : ((valNumOrArrLengthMoreThan2 as number[]).length || 1);\n}\n\nfunction defaultKeyGetter(item: string): string {\n return item;\n}\n\nexport type DataDiffMode = 'oneToOne' | 'multiple';\n\nclass DataDiffer {\n\n private _old: ArrayLike;\n private _new: ArrayLike;\n private _oldKeyGetter: DiffKeyGetter;\n private _newKeyGetter: DiffKeyGetter;\n private _add: DiffCallbackAdd;\n private _update: DiffCallbackUpdate;\n private _updateManyToOne: DiffCallbackUpdateManyToOne;\n private _updateOneToMany: DiffCallbackUpdateOneToMany;\n private _updateManyToMany: DiffCallbackUpdateManyToMany;\n private _remove: DiffCallbackRemove;\n private _diffModeMultiple: boolean;\n\n readonly context: CTX;\n\n /**\n * @param context Can be visited by this.context in callback.\n */\n constructor(\n oldArr: ArrayLike,\n newArr: ArrayLike,\n oldKeyGetter?: DiffKeyGetter,\n newKeyGetter?: DiffKeyGetter,\n context?: CTX,\n // By default: 'oneToOne'.\n diffMode?: DataDiffMode\n ) {\n this._old = oldArr;\n this._new = newArr;\n\n this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;\n this._newKeyGetter = newKeyGetter || defaultKeyGetter;\n\n // Visible in callback via `this.context`;\n this.context = context;\n\n this._diffModeMultiple = diffMode === 'multiple';\n }\n\n /**\n * Callback function when add a data\n */\n add(func: DiffCallbackAdd): this {\n this._add = func;\n return this;\n }\n\n /**\n * Callback function when update a data\n */\n update(func: DiffCallbackUpdate): this {\n this._update = func;\n return this;\n }\n\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateManyToOne(func: DiffCallbackUpdateManyToOne): this {\n this._updateManyToOne = func;\n return this;\n }\n\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateOneToMany(func: DiffCallbackUpdateOneToMany): this {\n this._updateOneToMany = func;\n return this;\n }\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n updateManyToMany(func: DiffCallbackUpdateManyToMany): this {\n this._updateManyToMany = func;\n return this;\n }\n\n /**\n * Callback function when remove a data\n */\n remove(func: DiffCallbackRemove): this {\n this._remove = func;\n return this;\n }\n\n execute(): void {\n this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']();\n }\n\n private _executeOneToOne(): void {\n const oldArr = this._old;\n const newArr = this._new;\n const newDataIndexMap: DataIndexMap = {};\n const oldDataKeyArr: string[] = new Array(oldArr.length);\n const newDataKeyArr: string[] = new Array(newArr.length);\n\n this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter');\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (let i = 0; i < oldArr.length; i++) {\n const oldKey = oldDataKeyArr[i];\n const newIdxMapVal = newDataIndexMap[oldKey];\n const newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n // idx can never be empty array here. see 'set null' logic below.\n if (newIdxMapValLen > 1) {\n // Consider there is duplicate key (for example, use dataItem.name as key).\n // We should make sure every item in newArr and oldArr can be visited.\n const newIdx = (newIdxMapVal as number[]).shift();\n if ((newIdxMapVal as number[]).length === 1) {\n newDataIndexMap[oldKey] = (newIdxMapVal as number[])[0];\n }\n this._update && this._update(newIdx as number, i);\n }\n else if (newIdxMapValLen === 1) {\n newDataIndexMap[oldKey] = null;\n this._update && this._update(newIdxMapVal as number, i);\n }\n else {\n this._remove && this._remove(i);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n }\n\n /**\n * For example, consider the case:\n * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],\n * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],\n * Where:\n * o0, o1, n0 has key 'a' (many to one)\n * o5, n4, n5, n6 has key 'b' (one to many)\n * o2, n1 has key 'c' (one to one)\n * n2, n3 has key 'd' (add)\n * o3, o4 has key 'e' (remove)\n * o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)\n * Then:\n * (The order of the following directives are not ensured.)\n * this._updateManyToOne(n0, [o0, o1]);\n * this._updateOneToMany([n4, n5, n6], o5);\n * this._update(n1, o2);\n * this._remove(o3);\n * this._remove(o4);\n * this._remove(o6);\n * this._remove(o7);\n * this._add(n2);\n * this._add(n3);\n * this._add(n7);\n * this._add(n8);\n */\n private _executeMultiple(): void {\n const oldArr = this._old;\n const newArr = this._new;\n const oldDataIndexMap: DataIndexMap = {};\n const newDataIndexMap: DataIndexMap = {};\n const oldDataKeyArr: string[] = [];\n const newDataKeyArr: string[] = [];\n\n this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter');\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (let i = 0; i < oldDataKeyArr.length; i++) {\n const oldKey = oldDataKeyArr[i];\n const oldIdxMapVal = oldDataIndexMap[oldKey];\n const newIdxMapVal = newDataIndexMap[oldKey];\n const oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal);\n const newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) {\n this._updateManyToOne && this._updateManyToOne(newIdxMapVal as number, oldIdxMapVal as number[]);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) {\n this._updateOneToMany && this._updateOneToMany(newIdxMapVal as number[], oldIdxMapVal as number);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) {\n this._update && this._update(newIdxMapVal as number, oldIdxMapVal as number);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen > 1 && newIdxMapValLen > 1) {\n this._updateManyToMany && this._updateManyToMany(newIdxMapVal as number[], oldIdxMapVal as number[]);\n newDataIndexMap[oldKey] = null;\n }\n else if (oldIdxMapValLen > 1) {\n for (let i = 0; i < oldIdxMapValLen; i++) {\n this._remove && this._remove((oldIdxMapVal as number[])[i]);\n }\n }\n else {\n this._remove && this._remove(oldIdxMapVal as number);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n }\n\n private _performRestAdd(newDataKeyArr: string[], newDataIndexMap: DataIndexMap) {\n for (let i = 0; i < newDataKeyArr.length; i++) {\n const newKey = newDataKeyArr[i];\n const newIdxMapVal = newDataIndexMap[newKey];\n const idxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n if (idxMapValLen > 1) {\n for (let j = 0; j < idxMapValLen; j++) {\n this._add && this._add((newIdxMapVal as number[])[j]);\n }\n }\n else if (idxMapValLen === 1) {\n this._add && this._add(newIdxMapVal as number);\n }\n // Support both `newDataKeyArr` are duplication removed or not removed.\n newDataIndexMap[newKey] = null;\n }\n }\n\n private _initIndexMap(\n arr: ArrayLike,\n // Can be null.\n map: DataIndexMap,\n // In 'byKey', the output `keyArr` is duplication removed.\n // In 'byIndex', the output `keyArr` is not duplication removed and\n // its indices are accurately corresponding to `arr`.\n keyArr: string[],\n keyGetterName: '_oldKeyGetter' | '_newKeyGetter'\n ): void {\n const cbModeMultiple = this._diffModeMultiple;\n\n for (let i = 0; i < arr.length; i++) {\n // Add prefix to avoid conflict with Object.prototype.\n const key = '_ec_' + this[keyGetterName](arr[i], i);\n if (!cbModeMultiple) {\n keyArr[i] = key;\n }\n if (!map) {\n continue;\n }\n\n const idxMapVal = map[key];\n const idxMapValLen = dataIndexMapValueLength(idxMapVal);\n\n if (idxMapValLen === 0) {\n // Simple optimize: in most cases, one index has one key,\n // do not need array.\n map[key] = i;\n if (cbModeMultiple) {\n keyArr.push(key);\n }\n }\n else if (idxMapValLen === 1) {\n map[key] = [idxMapVal as number, i];\n }\n else {\n (idxMapVal as number[]).push(i);\n }\n }\n }\n\n}\n\nexport default DataDiffer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {each, createHashMap, assert, map} from 'zrender/src/core/util';\nimport SeriesData from '../SeriesData';\nimport {\n DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionIndex\n} from '../../util/types';\nimport { DataStorageDimensionType } from '../DataStorage';\nimport { SeriesDataSchema } from './SeriesDataSchema';\n\nexport type DimensionSummaryEncode = {\n defaultedLabel: DimensionName[],\n defaultedTooltip: DimensionName[],\n [coordOrVisualDimName: string]:\n // index: coordDimIndex, value: dataDimName\n DimensionName[]\n};\nexport type DimensionSummary = {\n encode: DimensionSummaryEncode,\n // Those details that can be expose to users are put int `userOutput`.\n userOutput: DimensionUserOuput,\n // All of the data dim names that mapped by coordDim.\n dataDimsOnCoord: DimensionName[],\n dataDimIndicesOnCoord: DimensionIndex[],\n encodeFirstDimNotExtra: {[coordDim: string]: DimensionName},\n};\n\nexport type DimensionUserOuputEncode = {\n // index: coordDimIndex, value: dataDimIndex\n [coordOrVisualDimName: string]: DimensionIndex[]\n};\n\nclass DimensionUserOuput {\n private _encode: DimensionUserOuputEncode;\n private _cachedDimNames: DimensionName[];\n private _schema?: SeriesDataSchema;\n\n constructor(\n encode: DimensionUserOuputEncode,\n dimRequest?: SeriesDataSchema\n ) {\n this._encode = encode;\n this._schema = dimRequest;\n }\n\n get(): {\n fullDimensions: DimensionName[];\n encode: DimensionUserOuputEncode;\n } {\n return {\n // Do not generate full dimension name until fist used.\n fullDimensions: this._getFullDimensionNames(),\n encode: this._encode\n };\n }\n\n /**\n * Get all storage dimension names.\n * Theoretically a series storage is defined both by series and used dataset (if any).\n * If some dimensions are omitted for performance reason in `this.dimensions`,\n * the dimension name may not be auto-generated if user does not specify a dimension name.\n * In this case, the dimension name is `null`/`undefined`.\n */\n private _getFullDimensionNames(): DimensionName[] {\n if (!this._cachedDimNames) {\n this._cachedDimNames = this._schema\n ? this._schema.makeOutputDimensionNames()\n : [];\n }\n return this._cachedDimNames;\n }\n};\n\n\nexport function summarizeDimensions(\n data: SeriesData,\n schema?: SeriesDataSchema\n): DimensionSummary {\n const summary: DimensionSummary = {} as DimensionSummary;\n const encode = summary.encode = {} as DimensionSummaryEncode;\n const notExtraCoordDimMap = createHashMap<1, DimensionName>();\n let defaultedLabel = [] as DimensionName[];\n let defaultedTooltip = [] as DimensionName[];\n\n const userOutputEncode = {} as DimensionUserOuputEncode;\n\n each(data.dimensions, function (dimName) {\n const dimItem = data.getDimensionInfo(dimName);\n\n const coordDim = dimItem.coordDim;\n if (coordDim) {\n if (__DEV__) {\n assert(VISUAL_DIMENSIONS.get(coordDim as any) == null);\n }\n\n const coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1);\n\n // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n }\n\n // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n getOrCreateEncodeArr(userOutputEncode, coordDim)[coordDimIndex] =\n data.getDimensionIndex(dimItem.name);\n }\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n VISUAL_DIMENSIONS.each(function (v, otherDim) {\n const encodeArr = getOrCreateEncodeArr(encode, otherDim);\n\n const dimIndex = dimItem.otherDims[otherDim];\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n\n let dataDimsOnCoord = [] as DimensionName[];\n const encodeFirstDimNotExtra = {} as {[coordDim: string]: DimensionName};\n\n notExtraCoordDimMap.each(function (v, coordDim) {\n const dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0];\n // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.dataDimIndicesOnCoord = map(\n dataDimsOnCoord, dimName => data.getDimensionInfo(dimName).storageDimensionIndex\n );\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n\n const encodeLabel = encode.label;\n // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n const encodeTooltip = encode.tooltip;\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n }\n else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n\n summary.userOutput = new DimensionUserOuput(userOutputEncode, schema);\n\n return summary;\n}\n\nfunction getOrCreateEncodeArr(\n encode: DimensionSummaryEncode | DimensionUserOuputEncode, dim: DimensionName\n): (DimensionIndex | DimensionName)[] {\n if (!encode.hasOwnProperty(dim)) {\n encode[dim] = [];\n }\n return encode[dim];\n}\n\n// FIXME:TS should be type `AxisType`\nexport function getDimensionTypeByAxis(axisType: string): DataStorageDimensionType {\n return axisType === 'category'\n ? 'ordinal'\n : axisType === 'time'\n ? 'time'\n : 'float';\n}\n\nfunction mayLabelDimType(dimType: DimensionType): boolean {\n // In most cases, ordinal and time do not suitable for label.\n // Ordinal info can be displayed on axis. Time is too long.\n return !(dimType === 'ordinal' || dimType === 'time');\n}\n\n// function findTheLastDimMayLabel(data) {\n// // Get last value dim\n// let dimensions = data.dimensions.slice();\n// let valueType;\n// let valueDim;\n// while (dimensions.length && (\n// valueDim = dimensions.pop(),\n// valueType = data.getDimensionInfo(valueDim).type,\n// valueType === 'ordinal' || valueType === 'time'\n// )) {} // jshint ignore:line\n// return valueDim;\n// }\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport OrdinalMeta from './OrdinalMeta';\nimport { DataVisualDimensions, DimensionType } from '../util/types';\n\nclass SeriesDimensionDefine {\n\n /**\n * Dimension type. The enumerable values are the key of\n * Optional.\n */\n type?: DimensionType;\n\n /**\n * Dimension name.\n * Mandatory.\n */\n name: string;\n /**\n * The origin name in dimsDef, see source helper.\n * If displayName given, the tooltip will displayed vertically.\n * Optional.\n */\n displayName?: string;\n\n // FIXME: check whether it is still used.\n // See Series.ts#formatArrayValue\n tooltip?: boolean;\n\n /**\n * This dimension maps to the the dimension in dataStorage by `storageDimensionIndex`.\n * Notice the facts:\n * 1. When there are too many dimensions in storage, seriesData only save the\n * used storage dimensions.\n * 2. We use dimensionIndex but not name to reference storage dimension\n * becuause the dataset dimension definition might has no name specified by users,\n * or names in sereis dimension definition might be different from dataset.\n */\n storageDimensionIndex?: number;\n\n /**\n * Which coordSys dimension this dimension mapped to.\n * A `coordDim` can be a \"coordSysDim\" that the coordSys required\n * (for example, an item in `coordSysDims` of `model/referHelper#CoordSysInfo`),\n * or an generated \"extra coord name\" if does not mapped to any \"coordSysDim\"\n * (That is determined by whether `isExtraCoord` is `true`).\n * Mandatory.\n */\n coordDim?: string;\n\n /**\n * The index of this dimension in `series.encode[coordDim]`.\n * Mandatory.\n */\n coordDimIndex?: number;\n /**\n * The format of `otherDims` is:\n * ```js\n * {\n * tooltip?: number\n * label?: number\n * itemName?: number\n * seriesName?: number\n * }\n * ```\n *\n * A `series.encode` can specified these fields:\n * ```js\n * encode: {\n * // \"3, 1, 5\" is the index of data dimension.\n * tooltip: [3, 1, 5],\n * label: [0, 3],\n * ...\n * }\n * ```\n * `otherDims` is the parse result of the `series.encode` above, like:\n * ```js\n * // Suppose the index of this data dimension is `3`.\n * this.otherDims = {\n * // `3` is at the index `0` of the `encode.tooltip`\n * tooltip: 0,\n * // `3` is at the index `1` of the `encode.label`\n * label: 1\n * };\n * ```\n *\n * This prop should never be `null`/`undefined` after initialized.\n */\n otherDims?: DataVisualDimensions = {};\n\n /**\n * Be `true` if this dimension is not mapped to any \"coordSysDim\" that the\n * \"coordSys\" required.\n * Mandatory.\n */\n isExtraCoord?: boolean;\n /**\n * If this dimension if for calculated value like stacking\n */\n isCalculationCoord?: boolean;\n\n defaultTooltip?: boolean;\n\n ordinalMeta?: OrdinalMeta;\n\n /**\n * Whether to create inverted indices.\n */\n createInvertedIndices?: boolean;\n\n /**\n * @param opt All of the fields will be shallow copied.\n */\n constructor(opt?: object | SeriesDimensionDefine) {\n if (opt != null) {\n zrUtil.extend(this, opt);\n }\n }\n\n};\n\nexport default SeriesDimensionDefine;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { createHashMap, HashMap, isObject, retrieve2 } from 'zrender/src/core/util';\nimport { makeInner } from '../../util/model';\nimport {\n DimensionDefinition, DimensionDefinitionLoose, DimensionIndex, DimensionName, DimensionType\n} from '../../util/types';\nimport { DataStorageDimensionDefine } from '../DataStorage';\nimport OrdinalMeta from '../OrdinalMeta';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport { shouldRetrieveDataByName, Source } from '../Source';\n\nconst inner = makeInner<{\n dimNameMap: HashMap;\n}, Source>();\n\nconst dimTypeShort = {\n float: 'f', int: 'i', ordinal: 'o', number: 'n', time: 't'\n} as const;\n\n/**\n * Represents the dimension requirement of a series.\n *\n * NOTICE:\n * When there are too many dimensions in dataset and many series, only the used dimensions\n * (i.e., used by coord sys and declared in `series.encode`) are add to `dimensionDefineList`.\n * But users may query data by other unused dimension names.\n * In this case, users can only query data if and only if they have defined dimension names\n * via ec option, so we provide `getDimensionIndexFromSource`, which only query them from\n * `source` dimensions.\n */\nexport class SeriesDataSchema {\n\n /**\n * When there are too many dimensions, `dimensionDefineList` might only contain\n * used dimensions.\n *\n * CAUTION:\n * Should have been sorted by `storageDimensionIndex` asc.\n *\n * PENDING:\n * The item can still be modified outsite.\n * But MUST NOT add/remove item of this array.\n */\n readonly dimensionList: SeriesDimensionDefine[];\n\n readonly source: Source;\n\n private _fullDimensionCount: number;\n private _dimNameMap: ReturnType['dimNameMap'];\n private _dimensionOmitted: boolean;\n\n constructor(opt: {\n source: Source,\n dimensionList: SeriesDimensionDefine[],\n fullDimensionCount: number,\n dimensionOmitted: boolean\n }) {\n this.dimensionList = opt.dimensionList;\n this._dimensionOmitted = opt.dimensionOmitted;\n this.source = opt.source;\n this._fullDimensionCount = opt.fullDimensionCount;\n\n this._updateDimensionOmitted(opt.dimensionOmitted);\n }\n\n isDimensionOmitted(): boolean {\n return this._dimensionOmitted;\n }\n\n private _updateDimensionOmitted(dimensionOmitted: boolean): void {\n this._dimensionOmitted = dimensionOmitted;\n if (!dimensionOmitted) {\n return;\n }\n if (!this._dimNameMap) {\n this._dimNameMap = ensureSourceDimNameMap(this.source);\n }\n }\n\n /**\n * @caution Can only be used when `dimensionOmitted: true`.\n *\n * Get index by user defined dimension name (i.e., not internal generate name).\n * That is, get index from `dimensionsDefine`.\n * If no `dimensionsDefine`, or no name get, return -1.\n */\n getDimensionIndexFromSource(dimName: DimensionName): DimensionIndex {\n return retrieve2(this._dimNameMap.get(dimName), -1);\n }\n\n /**\n * @caution Can only be used when `dimensionOmitted: true`.\n *\n * Notice: may return `null`/`undefined` if user not specify dimension names.\n */\n getDimensionFromSource(dimIndex: DimensionIndex): DimensionDefinition {\n const dimensionsDefine = this.source.dimensionsDefine;\n if (dimensionsDefine) {\n return dimensionsDefine[dimIndex];\n }\n }\n\n makeStorageSchema(): {\n dimensions: DataStorageDimensionDefine[];\n hash: string\n } {\n const dimCount = this._fullDimensionCount;\n const willRetrieveDataByName = shouldRetrieveDataByName(this.source);\n const makeHashStrict = !shouldOmitUnusedDimensions(dimCount);\n\n // If source don't have dimensions or series don't omit unsed dimensions.\n // Generate from seriesDimList directly\n let dimHash = '';\n const dims: DataStorageDimensionDefine[] = [];\n\n for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) {\n let property: string;\n let type: DimensionType;\n let ordinalMeta: OrdinalMeta;\n\n const seriesDimDef = this.dimensionList[seriesDimIdx];\n // The list has been sorted by `storageDimensionIndex` asc.\n if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) {\n property = willRetrieveDataByName ? seriesDimDef.name : null;\n type = seriesDimDef.type;\n ordinalMeta = seriesDimDef.ordinalMeta;\n\n seriesDimIdx++;\n }\n else {\n const sourceDimDef = this.getDimensionFromSource(fullDimIdx);\n if (sourceDimDef) {\n property = willRetrieveDataByName ? sourceDimDef.name : null;\n type = sourceDimDef.type;\n }\n }\n\n dims.push({ property, type, ordinalMeta });\n\n // If retrieving data by index,\n // use to determine whether data can be shared.\n // (Becuase in this case there might be no dimension name defined in dataset, but indices always exists).\n // (indices are always 0, 1, 2, ..., so we can ignore them to shorten the hash).\n // Otherwise if retrieving data by property name (like `data: [{aa: 123, bb: 765}, ...]`),\n // use in hash.\n if (willRetrieveDataByName\n && property != null\n // For data stack, we have make sure each series has its own dim on this storage.\n // So we do not add property to hash to make sure they can share this storage.\n && (!seriesDimDef || !seriesDimDef.isCalculationCoord)\n ) {\n dimHash += (makeHashStrict\n // Use escape character '`' in case that property name contains '$'.\n ? property.replace(/\\`/g, '`1').replace(/\\$/g, '`2')\n // For better performance, when there are large dimensions, tolerant this defects that hardly meet.\n : property\n );\n }\n dimHash += '$';\n dimHash += dimTypeShort[type] || 'f';\n\n if (ordinalMeta) {\n dimHash += ordinalMeta.uid;\n }\n\n dimHash += '$';\n }\n\n // Source from endpoint(usually series) will be read differently\n // when seriesLayoutBy or startIndex(which is affected by sourceHeader) are different.\n // So we use this three props as key.\n const source = this.source;\n const hash = [\n source.seriesLayoutBy,\n source.startIndex,\n dimHash\n ].join('$$');\n\n return {\n dimensions: dims,\n hash: hash\n };\n }\n\n makeOutputDimensionNames(): DimensionName[] {\n const result = [] as DimensionName[];\n\n for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimensionCount; fullDimIdx++) {\n let name: DimensionName;\n const seriesDimDef = this.dimensionList[seriesDimIdx];\n // The list has been sorted by `storageDimensionIndex` asc.\n if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) {\n if (!seriesDimDef.isCalculationCoord) {\n name = seriesDimDef.name;\n }\n seriesDimIdx++;\n }\n else {\n const sourceDimDef = this.getDimensionFromSource(fullDimIdx);\n if (sourceDimDef) {\n name = sourceDimDef.name;\n }\n }\n result.push(name);\n }\n\n return result;\n }\n\n appendCalculationDimension(dimDef: SeriesDimensionDefine): void {\n this.dimensionList.push(dimDef);\n dimDef.isCalculationCoord = true;\n this._fullDimensionCount++;\n // If append dimension on a data storage, consider the storage\n // might be shared by different series, series dimensions not\n // really map to storage dimensions.\n this._updateDimensionOmitted(true);\n }\n}\n\nexport function isSeriesDataSchema(\n schema: any\n): schema is SeriesDataSchema {\n return schema instanceof SeriesDataSchema;\n}\n\n\nexport function createDimNameMap(dimsDef: DimensionDefinitionLoose[]): HashMap {\n const dataDimNameMap = createHashMap();\n for (let i = 0; i < (dimsDef || []).length; i++) {\n const dimDefItemRaw = dimsDef[i];\n const userDimName = isObject(dimDefItemRaw) ? dimDefItemRaw.name : dimDefItemRaw;\n if (userDimName != null && dataDimNameMap.get(userDimName) == null) {\n dataDimNameMap.set(userDimName, i);\n }\n }\n return dataDimNameMap;\n}\n\nexport function ensureSourceDimNameMap(source: Source): HashMap {\n const innerSource = inner(source);\n return innerSource.dimNameMap || (\n innerSource.dimNameMap = createDimNameMap(source.dimensionsDefine)\n );\n}\n\nexport function shouldOmitUnusedDimensions(dimCount: number): boolean {\n return dimCount > 30;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Int32Array */\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\nimport Model from '../model/Model';\nimport DataDiffer from './DataDiffer';\nimport {DataProvider, DefaultDataProvider} from './helper/dataProvider';\nimport {summarizeDimensions, DimensionSummary} from './helper/dimensionHelper';\nimport SeriesDimensionDefine from './SeriesDimensionDefine';\nimport {ArrayLike, Dictionary, FunctionPropertyNames} from 'zrender/src/core/types';\nimport Element from 'zrender/src/Element';\nimport {\n DimensionIndex, DimensionName, DimensionLoose, OptionDataItem,\n ParsedValue, ParsedValueNumeric,\n ModelOption, SeriesDataType, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL,\n DecalObject,\n OrdinalNumber,\n OrdinalRawValue\n} from '../util/types';\nimport {convertOptionIdName, isDataItemOption} from '../util/model';\nimport { setCommonECData } from '../util/innerStore';\nimport type Graph from './Graph';\nimport type Tree from './Tree';\nimport type { VisualMeta } from '../component/visualMap/VisualMapModel';\nimport {isSourceInstance, Source} from './Source';\nimport { LineStyleProps } from '../model/mixin/lineStyle';\nimport DataStorage, { DimValueGetter } from './DataStorage';\nimport { isSeriesDataSchema, SeriesDataSchema } from './helper/SeriesDataSchema';\n\nconst isObject = zrUtil.isObject;\nconst map = zrUtil.map;\n\nconst CtorInt32Array = typeof Int32Array === 'undefined' ? Array : Int32Array;\n\n// Use prefix to avoid index to be the same as otherIdList[idx],\n// which will cause weird udpate animation.\nconst ID_PREFIX = 'e\\0\\0';\n\nconst INDEX_NOT_FOUND = -1;\n\ntype NameRepeatCount = {[name: string]: number};\ntype ItrParamDims = DimensionLoose | Array;\n// If Ctx not specified, use List as Ctx\ntype CtxOrList = unknown extends Ctx ? SeriesData : Ctx;\ntype EachCb0 = (this: CtxOrList, idx: number) => void;\ntype EachCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => void;\ntype EachCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => void;\ntype EachCb = (this: CtxOrList, ...args: any) => void;\ntype FilterCb0 = (this: CtxOrList, idx: number) => boolean;\ntype FilterCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => boolean;\ntype FilterCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => boolean;\ntype FilterCb = (this: CtxOrList, ...args: any) => boolean;\ntype MapArrayCb0 = (this: CtxOrList, idx: number) => any;\ntype MapArrayCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => any;\ntype MapArrayCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) => any;\ntype MapArrayCb = (this: CtxOrList, ...args: any) => any;\ntype MapCb1 = (this: CtxOrList, x: ParsedValue, idx: number) => ParsedValue | ParsedValue[];\ntype MapCb2 = (this: CtxOrList, x: ParsedValue, y: ParsedValue, idx: number) =>\n ParsedValue | ParsedValue[];\ntype MapCb = (this: CtxOrList, ...args: any) => ParsedValue | ParsedValue[];\n\ntype SeriesDimensionDefineLoose = string | object | SeriesDimensionDefine;\n\n// `SeriesDimensionLoose` and `SeriesDimensionName` is the dimension that is used by coordinate\n// system or declared in `series.encode`, which will be saved in `SeriesData`. Other dimension\n// might not be saved in `SeriesData` for performance consideration. See `createDimension` for\n// more details.\ntype SeriesDimensionLoose = DimensionLoose;\ntype SeriesDimensionName = DimensionName;\n// type SeriesDimensionIndex = DimensionIndex;\n\n\nconst TRANSFERABLE_PROPERTIES = [\n 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap',\n '_dimensionsSummary', 'userOutput',\n '_rawData', '_dimValueGetter',\n '_nameDimIdx', '_idDimIdx', '_nameRepeatCount'\n];\nconst CLONE_PROPERTIES = [\n '_approximateExtent'\n];\n\nexport interface DefaultDataVisual {\n style: PathStyleProps\n // Draw type determined which prop should be set with encoded color.\n // It's only available on the global visual. Use getVisual('drawType') to access it.\n // It will be set in visual/style.ts module in the first priority.\n drawType: 'fill' | 'stroke'\n\n symbol?: string\n symbolSize?: number | number[]\n symbolRotate?: number\n symbolKeepAspect?: boolean\n symbolOffset?: string | number | (string | number)[]\n\n liftZ?: number\n // For legend.\n legendIcon?: string\n legendLineStyle?: LineStyleProps\n\n // visualMap will inject visualMeta data\n visualMeta?: VisualMeta[]\n\n // If color is encoded from palette\n colorFromPalette?: boolean\n\n decal?: DecalObject\n}\n\nexport interface DataCalculationInfo {\n stackedDimension: DimensionName;\n stackedByDimension: DimensionName;\n isStackedByIndex: boolean;\n stackedOverDimension: DimensionName;\n stackResultDimension: DimensionName;\n stackedOnSeries?: SERIES_MODEL;\n}\n\n// -----------------------------\n// Internal method declarations:\n// -----------------------------\nlet prepareInvertedIndex: (data: SeriesData) => void;\nlet getId: (data: SeriesData, rawIndex: number) => string;\nlet getIdNameFromStore: (data: SeriesData, dimIdx: number, dataIdx: number) => string;\nlet normalizeDimensions: (dimensions: ItrParamDims) => Array;\nlet transferProperties: (target: SeriesData, source: SeriesData) => void;\nlet cloneListForMapAndSample: (original: SeriesData) => SeriesData;\nlet makeIdFromName: (data: SeriesData, idx: number) => void;\n\nclass SeriesData<\n HostModel extends Model = Model,\n Visual extends DefaultDataVisual = DefaultDataVisual\n> {\n\n readonly type = 'list';\n\n /**\n * Name of dimensions list of SeriesData.\n *\n * @caution Carefully use the index of this array.\n * Becuase when DataStorage is an extra high dimension(>30) dataset. We will only pick\n * the used dimensions from DataStorage to avoid performance issue.\n */\n readonly dimensions: SeriesDimensionName[];\n\n // Infomation of each data dimension, like data type.\n private _dimensionInfos: Record;\n\n private _dimensionOmitted = false;\n private _schema?: SeriesDataSchema;\n /**\n * @pending\n * Actually we do not really need to convert dimensionIndex to dimensionName\n * and do not need `_dimIdxToName` if we do everything internally based on dimension\n * index rather than dimension name.\n */\n private _dimIdxToName?: zrUtil.HashMap;\n\n readonly hostModel: HostModel;\n\n /**\n * @readonly\n */\n dataType: SeriesDataType;\n\n /**\n * @readonly\n * Host graph if List is used to store graph nodes / edges.\n */\n graph?: Graph;\n\n /**\n * @readonly\n * Host tree if List is used to store tree ndoes.\n */\n tree?: Tree;\n\n private _store: DataStorage;\n\n private _nameList: string[] = [];\n private _idList: string[] = [];\n\n // Models of data option is stored sparse for optimizing memory cost\n // Never used yet (not used yet).\n // private _optionModels: Model[] = [];\n\n // Global visual properties after visual coding\n private _visual: Dictionary = {};\n\n // Globel layout properties.\n private _layout: Dictionary = {};\n\n // Item visual properties after visual coding\n private _itemVisuals: Dictionary[] = [];\n\n // Item layout properties after layout\n private _itemLayouts: any[] = [];\n\n // Graphic elemnents\n private _graphicEls: Element[] = [];\n\n // key: dim, value: extent\n private _approximateExtent: Record = {};\n\n private _dimensionsSummary: DimensionSummary;\n\n private _invertedIndicesMap: Record>;\n\n private _calculationInfo: DataCalculationInfo = {} as DataCalculationInfo;\n\n // User output info of this data.\n // DO NOT use it in other places!\n // When preparing user params for user callbacks, we have\n // to clone these inner data structures to prevent users\n // from modifying them to effect built-in logic. And for\n // performance consideration we make this `userOutput` to\n // avoid clone them too many times.\n userOutput: DimensionSummary['userOutput'];\n\n // Having detected that there is data item is non primitive type\n // (in type `OptionDataItemObject`).\n // Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n // At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n hasItemOption: boolean = false;\n\n // id or name is used on dynamic data, mapping old and new items.\n // When generating id from name, avoid repeat.\n private _nameRepeatCount: NameRepeatCount;\n private _nameDimIdx: number;\n private _idDimIdx: number;\n\n private __wrappedMethods: string[];\n\n // Methods that create a new list based on this list should be listed here.\n // Notice that those method should `RETURN` the new list.\n TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map'] as const;\n // Methods that change indices of this list should be listed here.\n CHANGABLE_METHODS = ['filterSelf', 'selectRange'] as const;\n DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'] as const;\n\n /**\n * @param dimensionsInput.dimensions\n * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].\n * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius\n */\n constructor(\n dimensionsInput: SeriesDataSchema | SeriesDimensionDefineLoose[],\n hostModel: HostModel\n ) {\n let dimensions: SeriesDimensionDefineLoose[];\n let assignStorageDimIdx = false;\n if (isSeriesDataSchema(dimensionsInput)) {\n dimensions = dimensionsInput.dimensionList;\n this._dimensionOmitted = dimensionsInput.isDimensionOmitted();\n this._schema = dimensionsInput;\n }\n else {\n assignStorageDimIdx = true;\n dimensions = dimensionsInput as SeriesDimensionDefineLoose[];\n }\n\n dimensions = dimensions || ['x', 'y'];\n\n const dimensionInfos: Dictionary = {};\n const dimensionNames = [];\n const invertedIndicesMap: Dictionary = {};\n let needsHasOwn = false;\n const emptyObj = {};\n\n for (let i = 0; i < dimensions.length; i++) {\n // Use the original dimensions[i], where other flag props may exists.\n const dimInfoInput = dimensions[i];\n\n const dimensionInfo: SeriesDimensionDefine =\n zrUtil.isString(dimInfoInput)\n ? new SeriesDimensionDefine({name: dimInfoInput})\n : !(dimInfoInput instanceof SeriesDimensionDefine)\n ? new SeriesDimensionDefine(dimInfoInput)\n : dimInfoInput;\n\n const dimensionName = dimensionInfo.name;\n dimensionInfo.type = dimensionInfo.type || 'float';\n if (!dimensionInfo.coordDim) {\n dimensionInfo.coordDim = dimensionName;\n dimensionInfo.coordDimIndex = 0;\n }\n\n const otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {};\n dimensionNames.push(dimensionName);\n dimensionInfos[dimensionName] = dimensionInfo;\n if ((emptyObj as any)[dimensionName] != null) {\n needsHasOwn = true;\n }\n\n if (dimensionInfo.createInvertedIndices) {\n invertedIndicesMap[dimensionName] = [];\n }\n if (otherDims.itemName === 0) {\n this._nameDimIdx = i;\n }\n if (otherDims.itemId === 0) {\n this._idDimIdx = i;\n }\n\n if (__DEV__) {\n zrUtil.assert(assignStorageDimIdx || dimensionInfo.storageDimensionIndex >= 0);\n }\n if (assignStorageDimIdx) {\n dimensionInfo.storageDimensionIndex = i;\n }\n }\n\n this.dimensions = dimensionNames;\n this._dimensionInfos = dimensionInfos;\n this._initGetDimensionInfo(needsHasOwn);\n\n this.hostModel = hostModel;\n\n this._invertedIndicesMap = invertedIndicesMap;\n\n if (this._dimensionOmitted) {\n const dimIdxToName = this._dimIdxToName = zrUtil.createHashMap();\n zrUtil.each(dimensionNames, dimName => {\n dimIdxToName.set(dimensionInfos[dimName].storageDimensionIndex, dimName);\n });\n }\n }\n\n /**\n *\n * Get concrete dimension name by dimension name or dimension index.\n * If input a dimension name, do not validate whether the dimension name exits.\n *\n * @caution\n * @param dim Must make sure the dimension is `SeriesDimensionLoose`.\n * Because only those dimensions will have auto-generated dimension names if not\n * have a user-specified name, and other dimensions will get a return of null/undefined.\n * @deprecated\n * Becuause of this reason, should better use `getDimensionIndex` instead, for examples:\n * ```js\n * const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx);\n * ```\n *\n * @return Concrete dim name.\n */\n getDimension(dim: SeriesDimensionLoose): DimensionName {\n let dimIdx = this._recognizeDimensionIndex(dim);\n if (dimIdx == null) {\n return dim as DimensionName;\n }\n dimIdx = dim as DimensionIndex;\n\n if (!this._dimensionOmitted) {\n return this.dimensions[dimIdx];\n }\n\n // Retrieve from series dimension definition becuase it probably contains\n // generated dimension name (like 'x', 'y').\n const dimName = this._dimIdxToName.get(dimIdx);\n if (dimName != null) {\n return dimName;\n }\n\n const sourceDimDef = this._schema.getDimensionFromSource(dimIdx);\n if (sourceDimDef) {\n return sourceDimDef.name;\n }\n }\n\n /**\n * Get dimension index in the storage. Return -1 if not found.\n * Can be used to index value from getRawValue.\n */\n getDimensionIndex(dim: DimensionLoose): DimensionIndex {\n const dimIdx = this._recognizeDimensionIndex(dim);\n if (dimIdx != null) {\n return dimIdx;\n }\n\n const dimInfo = this._getDimensionInfo(dim as DimensionName);\n return dimInfo\n ? dimInfo.storageDimensionIndex\n : this._dimensionOmitted\n ? this._schema.getDimensionIndexFromSource(dim as DimensionName)\n : -1;\n }\n\n /**\n * The meanings of the input parameter `dim`:\n *\n * + If dim is a number (e.g., `1`), it means the index of the dimension.\n * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.\n * + If dim is a number-like string (e.g., `\"1\"`):\n * + If there is the same concrete dim name defined in `series.dimensions` or `dataset.dimensions`,\n * it means that concrete name.\n * + If not, it will be converted to a number, which means the index of the dimension.\n * (why? because of the backward compatbility. We have been tolerating number-like string in\n * dimension setting, although now it seems that it is not a good idea.)\n * For example, `visualMap[i].dimension: \"1\"` is the same meaning as `visualMap[i].dimension: 1`,\n * if no dimension name is defined as `\"1\"`.\n * + If dim is a not-number-like string, it means the concrete dim name.\n * For example, it can be be default name `\"x\"`, `\"y\"`, `\"z\"`, `\"lng\"`, `\"lat\"`, `\"angle\"`, `\"radius\"`,\n * or customized in `dimensions` property of option like `\"age\"`.\n *\n * @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`).\n */\n private _recognizeDimensionIndex(dim: DimensionLoose): DimensionIndex {\n if (typeof dim === 'number'\n // If being a number-like string but not being defined as a dimension name.\n || (\n dim != null\n && !isNaN(dim as any)\n && !this._getDimensionInfo(dim)\n && (!this._dimensionOmitted || this._schema.getDimensionIndexFromSource(dim) < 0)\n )\n ) {\n return +dim;\n }\n }\n\n private _getStoreDimIndex(dim: DimensionLoose): DimensionIndex {\n const dimIdx = this.getDimensionIndex(dim);\n if (__DEV__) {\n if (dimIdx == null) {\n throw new Error('Unkown dimension ' + dim);\n }\n }\n return dimIdx;\n }\n\n /**\n * Get type and calculation info of particular dimension\n * @param dim\n * Dimension can be concrete names like x, y, z, lng, lat, angle, radius\n * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'\n */\n getDimensionInfo(dim: SeriesDimensionLoose): SeriesDimensionDefine {\n // Do not clone, because there may be categories in dimInfo.\n return this._getDimensionInfo(this.getDimension(dim));\n }\n\n /**\n * If `dimName` if from outside of `SeriesData`,\n * use this method other than visit `this._dimensionInfos` directly.\n */\n private _getDimensionInfo: (dimName: SeriesDimensionName) => SeriesDimensionDefine;\n\n private _initGetDimensionInfo(needsHasOwn: boolean): void {\n const dimensionInfos = this._dimensionInfos;\n this._getDimensionInfo = needsHasOwn\n ? dimName => (dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined)\n : dimName => dimensionInfos[dimName];\n }\n\n /**\n * concrete dimension name list on coord.\n */\n getDimensionsOnCoord(): SeriesDimensionName[] {\n return this._dimensionsSummary.dataDimsOnCoord.slice();\n }\n\n /**\n * @param coordDim\n * @param idx A coordDim may map to more than one data dim.\n * If not specified, return the first dim not extra.\n * @return concrete data dim. If not found, return null/undefined\n */\n mapDimension(coordDim: SeriesDimensionName): SeriesDimensionName;\n mapDimension(coordDim: SeriesDimensionName, idx: number): SeriesDimensionName;\n mapDimension(coordDim: SeriesDimensionName, idx?: number): SeriesDimensionName {\n const dimensionsSummary = this._dimensionsSummary;\n\n if (idx == null) {\n return dimensionsSummary.encodeFirstDimNotExtra[coordDim] as any;\n }\n\n const dims = dimensionsSummary.encode[coordDim];\n return dims ? dims[idx as number] as any : null;\n }\n\n mapDimensionsAll(coordDim: SeriesDimensionName): SeriesDimensionName[] {\n const dimensionsSummary = this._dimensionsSummary;\n const dims = dimensionsSummary.encode[coordDim];\n return (dims || []).slice();\n }\n\n getStorage() {\n return this._store;\n }\n\n /**\n * Initialize from data\n * @param data source or data or data storage.\n * @param nameList The name of a datum is used on data diff and\n * default label/tooltip.\n * A name can be specified in encode.itemName,\n * or dataItem.name (only for series option data),\n * or provided in nameList from outside.\n */\n initData(\n data: Source | OptionSourceData | DataStorage | DataProvider,\n nameList?: string[],\n dimValueGetter?: DimValueGetter\n ): void {\n let store: DataStorage;\n const dimensions = this.dimensions;\n const dimensionInfos = map(dimensions, this._getDimensionInfo, this);\n if (data instanceof DataStorage) {\n store = data;\n }\n\n if (!store) {\n const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data))\n ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length)\n : data as DataProvider;\n store = new DataStorage();\n store.initData(provider, dimensionInfos, dimValueGetter);\n }\n\n this._store = store;\n\n // Reset\n this._nameList = (nameList || []).slice();\n this._idList = [];\n this._nameRepeatCount = {};\n\n this._doInit(0, store.count());\n\n // Cache summary info for fast visit. See \"dimensionHelper\".\n // Needs to be initialized after store is prepared.\n this._dimensionsSummary = summarizeDimensions(this, this._schema);\n this.userOutput = this._dimensionsSummary.userOutput;\n }\n\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n appendData(data: ArrayLike): void {\n const range = this._store.appendData(data);\n this._doInit(range[0], range[1]);\n }\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n * This method does not modify `rawData` (`dataProvider`), but only\n * add values to storage.\n *\n * The final count will be increased by `Math.max(values.length, names.length)`.\n *\n * @param values That is the SourceType: 'arrayRows', like\n * [\n * [12, 33, 44],\n * [NaN, 43, 1],\n * ['-', 'asdf', 0]\n * ]\n * Each item is exaclty cooresponding to a dimension.\n */\n appendValues(values: any[][], names?: string[]): void {\n const {start, end} = this._store.appendValues(values, names.length);\n const shouldMakeIdFromName = this._shouldMakeIdFromName();\n\n this._updateOrdinalMeta();\n\n if (names) {\n for (let idx = start; idx < end; idx++) {\n const sourceIdx = idx - start;\n this._nameList[idx] = names[sourceIdx];\n if (shouldMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n }\n\n private _updateOrdinalMeta(): void {\n const store = this._store;\n const dimensions = this.dimensions;\n for (let i = 0; i < dimensions.length; i++) {\n const dimInfo = this._dimensionInfos[dimensions[i]];\n if (dimInfo.ordinalMeta) {\n store.collectOrdinalMeta(dimInfo.storageDimensionIndex, dimInfo.ordinalMeta);\n }\n }\n }\n\n private _shouldMakeIdFromName(): boolean {\n const provider = this._store.getProvider();\n return this._idDimIdx == null\n && provider.getSource().sourceFormat !== SOURCE_FORMAT_TYPED_ARRAY\n && !provider.fillStorage;\n }\n\n private _doInit(start: number, end: number): void {\n if (start >= end) {\n return;\n }\n\n const store = this._store;\n const provider = store.getProvider();\n\n this._updateOrdinalMeta();\n\n const nameList = this._nameList;\n const idList = this._idList;\n const sourceFormat = provider.getSource().sourceFormat;\n const isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL;\n\n // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n // If dataItem is {name: ...} or {id: ...}, it has highest priority.\n // This kind of ids and names are always stored `_nameList` and `_idList`.\n if (isFormatOriginal && !provider.pure) {\n const sharedDataItem = [] as OptionDataItem;\n for (let idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n const dataItem = provider.getItem(idx, sharedDataItem);\n if (!this.hasItemOption && isDataItemOption(dataItem)) {\n this.hasItemOption = true;\n }\n if (dataItem) {\n const itemName = (dataItem as any).name;\n if (nameList[idx] == null && itemName != null) {\n nameList[idx] = convertOptionIdName(itemName, null);\n }\n const itemId = (dataItem as any).id;\n if (idList[idx] == null && itemId != null) {\n idList[idx] = convertOptionIdName(itemId, null);\n }\n }\n }\n }\n\n if (this._shouldMakeIdFromName()) {\n for (let idx = start; idx < end; idx++) {\n makeIdFromName(this, idx);\n }\n }\n\n prepareInvertedIndex(this);\n }\n\n /**\n * PENDING: In fact currently this function is only used to short-circuit\n * the calling of `scale.unionExtentFromData` when data have been filtered by modules\n * like \"dataZoom\". `scale.unionExtentFromData` is used to calculate data extent for series on\n * an axis, but if a \"axis related data filter module\" is used, the extent of the axis have\n * been fixed and no need to calling `scale.unionExtentFromData` actually.\n * But if we add \"custom data filter\" in future, which is not \"axis related\", this method may\n * be still needed.\n *\n * Optimize for the scenario that data is filtered by a given extent.\n * Consider that if data amount is more than hundreds of thousand,\n * extent calculation will cost more than 10ms and the cache will\n * be erased because of the filtering.\n */\n getApproximateExtent(dim: SeriesDimensionLoose): [number, number] {\n return this._approximateExtent[dim] || this._store.getDataExtent(this._getStoreDimIndex(dim));\n }\n\n /**\n * Calculate extent on a filtered data might be time consuming.\n * Approximate extent is only used for: calculte extent of filtered data outside.\n */\n setApproximateExtent(extent: [number, number], dim: SeriesDimensionLoose): void {\n dim = this.getDimension(dim);\n this._approximateExtent[dim] = extent.slice() as [number, number];\n }\n\n getCalculationInfo>(\n key: CALC_INFO_KEY\n ): DataCalculationInfo[CALC_INFO_KEY] {\n return this._calculationInfo[key];\n }\n\n /**\n * @param key or k-v object\n */\n setCalculationInfo(\n key: DataCalculationInfo\n ): void;\n setCalculationInfo>(\n key: CALC_INFO_KEY,\n value: DataCalculationInfo[CALC_INFO_KEY]\n ): void;\n setCalculationInfo(\n key: (keyof DataCalculationInfo) | DataCalculationInfo,\n value?: DataCalculationInfo[keyof DataCalculationInfo]\n ): void {\n isObject(key)\n ? zrUtil.extend(this._calculationInfo, key as object)\n : ((this._calculationInfo as any)[key] = value);\n }\n\n /**\n * @return Never be null/undefined. `number` will be converted to string. Becuase:\n * In most cases, name is used in display, where returning a string is more convenient.\n * In other cases, name is used in query (see `indexOfName`), where we can keep the\n * rule that name `2` equals to name `'2'`.\n */\n getName(idx: number): string {\n const rawIndex = this.getRawIndex(idx);\n let name = this._nameList[rawIndex];\n if (name == null && this._nameDimIdx != null) {\n name = getIdNameFromStore(this, this._nameDimIdx, rawIndex);\n }\n if (name == null) {\n name = '';\n }\n return name;\n }\n\n private _getCategory(dimIdx: number, idx: number): OrdinalRawValue {\n const ordinal = this._store.get(dimIdx, idx);\n const ordinalMeta = this._store.getOrdinalMeta(dimIdx);\n if (ordinalMeta) {\n return ordinalMeta.categories[ordinal as OrdinalNumber];\n }\n return ordinal;\n }\n\n /**\n * @return Never null/undefined. `number` will be converted to string. Becuase:\n * In all cases having encountered at present, id is used in making diff comparison, which\n * are usually based on hash map. We can keep the rule that the internal id are always string\n * (treat `2` is the same as `'2'`) to make the related logic simple.\n */\n getId(idx: number): string {\n return getId(this, this.getRawIndex(idx));\n }\n\n count(): number {\n return this._store.count();\n }\n\n /**\n * Get value. Return NaN if idx is out of range.\n *\n * @deprecated Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead.\n */\n get(dim: SeriesDimensionName, idx: number): ParsedValue {\n const store = this._store;\n const dimInfo = this._dimensionInfos[dim];\n if (dimInfo) {\n return store.get(dimInfo.storageDimensionIndex, idx);\n }\n }\n\n /**\n * @deprecated Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead.\n */\n getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue {\n const store = this._store;\n const dimInfo = this._dimensionInfos[dim];\n if (dimInfo) {\n return store.getByRawIndex(dimInfo.storageDimensionIndex, rawIdx);\n }\n }\n\n getIndices() {\n return this._store.getIndices();\n }\n\n getDataExtent(dim: DimensionLoose): [number, number] {\n return this._store.getDataExtent(this._getStoreDimIndex(dim));\n }\n\n getSum(dim: DimensionLoose): number {\n return this._store.getSum(this._getStoreDimIndex(dim));\n }\n\n getMedian(dim: DimensionLoose): number {\n return this._store.getMedian(this._getStoreDimIndex(dim));\n }\n /**\n * Get value for multi dimensions.\n * @param dimensions If ignored, using all dimensions.\n */\n getValues(idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionName[], idx: number): ParsedValue[];\n getValues(dimensions: readonly DimensionName[] | number, idx?: number): ParsedValue[] {\n const store = this._store;\n return zrUtil.isArray(dimensions)\n ? store.getValues(map(dimensions, dim => this._getStoreDimIndex(dim)), idx)\n : store.getValues(dimensions as number);\n }\n\n /**\n * If value is NaN. Inlcuding '-'\n * Only check the coord dimensions.\n */\n hasValue(idx: number): boolean {\n const dataDimIndicesOnCoord = this._dimensionsSummary.dataDimIndicesOnCoord;\n for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) {\n // Ordinal type originally can be string or number.\n // But when an ordinal type is used on coord, it can\n // not be string but only number. So we can also use isNaN.\n if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx) as any)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Retreive the index with given name\n */\n indexOfName(name: string): number {\n for (let i = 0, len = this._store.count(); i < len; i++) {\n if (this.getName(i) === name) {\n return i;\n }\n }\n return -1;\n }\n\n getRawIndex(idx: number): number {\n return this._store.getRawIndex(idx);\n }\n\n indexOfRawIndex(rawIndex: number): number {\n return this._store.indexOfRawIndex(rawIndex);\n }\n\n /**\n * Only support the dimension which inverted index created.\n * Do not support other cases until required.\n * @param dim concrete dim\n * @param value ordinal index\n * @return rawIndex\n */\n rawIndexOf(dim: SeriesDimensionName, value: OrdinalNumber): number {\n const invertedIndices = dim && this._invertedIndicesMap[dim];\n if (__DEV__) {\n if (!invertedIndices) {\n throw new Error('Do not supported yet');\n }\n }\n const rawIndex = invertedIndices[value];\n if (rawIndex == null || isNaN(rawIndex)) {\n return INDEX_NOT_FOUND;\n }\n return rawIndex;\n }\n\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n indicesOfNearest(dim: DimensionLoose, value: number, maxDistance?: number): number[] {\n return this._store.indicesOfNearest(\n this._getStoreDimIndex(dim),\n value, maxDistance\n );\n }\n /**\n * Data iteration\n * @param ctx default this\n * @example\n * list.each('x', function (x, idx) {});\n * list.each(['x', 'y'], function (x, y, idx) {});\n * list.each(function (idx) {})\n */\n each(cb: EachCb0, ctx?: Ctx, ctxCompat?: Ctx): void;\n each(dims: DimensionLoose, cb: EachCb1, ctx?: Ctx): void;\n each(dims: [DimensionLoose], cb: EachCb1, ctx?: Ctx): void;\n each(dims: [DimensionLoose, DimensionLoose], cb: EachCb2, ctx?: Ctx): void;\n each(dims: ItrParamDims, cb: EachCb, ctx?: Ctx): void;\n each(\n dims: ItrParamDims | EachCb,\n cb: EachCb | Ctx,\n ctx?: Ctx\n ): void {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || this) as CtxOrList;\n\n const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this);\n\n this._store.each(dimIndices, (fCtx\n ? zrUtil.bind(cb as any, fCtx as any)\n : cb) as any\n );\n }\n /**\n * Data filter\n */\n filterSelf(cb: FilterCb0, ctx?: Ctx, ctxCompat?: Ctx): this;\n filterSelf(dims: DimensionLoose, cb: FilterCb1, ctx?: Ctx): this;\n filterSelf(dims: [DimensionLoose], cb: FilterCb1, ctx?: Ctx): this;\n filterSelf(dims: [DimensionLoose, DimensionLoose], cb: FilterCb2, ctx?: Ctx): this;\n filterSelf(dims: ItrParamDims, cb: FilterCb, ctx?: Ctx): this;\n filterSelf(\n dims: ItrParamDims | FilterCb,\n cb: FilterCb | Ctx,\n ctx?: Ctx\n ): SeriesData {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || this) as CtxOrList;\n\n const dimIndices = map(normalizeDimensions(dims), this._getStoreDimIndex, this);\n\n this._store = this._store.filter(dimIndices, (fCtx\n ? zrUtil.bind(cb as any, fCtx as any)\n : cb) as any\n );\n\n return this;\n }\n\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n selectRange(range: Record): SeriesData {\n 'use strict';\n\n const innerRange: Record = {};\n const dims = zrUtil.keys(range);\n const dimIndices: number[] = [];\n zrUtil.each(dims, (dim) => {\n const dimIdx = this._getStoreDimIndex(dim);\n innerRange[dimIdx] = range[dim];\n dimIndices.push(dimIdx);\n });\n\n this._store = this._store.selectRange(innerRange);\n return this;\n }\n\n /**\n * Data mapping to a plain array\n */\n mapArray>(cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n /* eslint-disable max-len */\n mapArray>(dims: DimensionLoose, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: [DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: [DimensionLoose, DimensionLoose], cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n mapArray>(dims: ItrParamDims, cb: Cb, ctx?: Ctx, ctxCompat?: Ctx): ReturnType[];\n /* eslint-enable max-len */\n mapArray(\n dims: ItrParamDims | MapArrayCb,\n cb: MapArrayCb | Ctx,\n ctx?: Ctx\n ): unknown[] {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctx = cb as Ctx;\n cb = dims;\n dims = [];\n }\n\n // ctxCompat just for compat echarts3\n ctx = (ctx || this) as Ctx;\n\n const result: unknown[] = [];\n this.each(dims, function () {\n result.push(cb && (cb as MapArrayCb).apply(this, arguments));\n }, ctx);\n return result;\n }\n\n /**\n * Data mapping to a new List with given dimensions\n */\n map(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n map(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n // eslint-disable-next-line max-len\n map(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): SeriesData;\n map(\n dims: ItrParamDims,\n cb: MapCb,\n ctx?: Ctx,\n ctxCompat?: Ctx\n ): SeriesData {\n 'use strict';\n\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || ctxCompat || this) as CtxOrList;\n\n const dimIndices = map(\n normalizeDimensions(dims), this._getStoreDimIndex, this\n );\n\n const list = cloneListForMapAndSample(this);\n list._store = this._store.map(\n dimIndices,\n fCtx ? zrUtil.bind(cb, fCtx) : cb\n );\n return list;\n }\n\n /**\n * !!Danger: used on stack dimension only.\n */\n modify(dims: DimensionLoose, cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(dims: [DimensionLoose], cb: MapCb1, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(dims: [DimensionLoose, DimensionLoose], cb: MapCb2, ctx?: Ctx, ctxCompat?: Ctx): void;\n modify(\n dims: ItrParamDims,\n cb: MapCb,\n ctx?: Ctx,\n ctxCompat?: Ctx\n ): void {\n // ctxCompat just for compat echarts3\n const fCtx = (ctx || ctxCompat || this) as CtxOrList;\n\n if (__DEV__) {\n zrUtil.each(normalizeDimensions(dims), dim => {\n const dimInfo = this.getDimensionInfo(dim);\n if (!dimInfo.isCalculationCoord) {\n console.error('Danger: only stack dimension can be modified');\n }\n });\n }\n\n const dimIndices = map(\n normalizeDimensions(dims), this._getStoreDimIndex, this\n );\n\n // If do shallow clone here, if there are too many stacked series,\n // it still cost lots of memory, becuase `storage.dimensions` are not shared.\n // We should consider there probably be shallow clone happen in each sereis\n // in consequent filter/map.\n this._store.modify(\n dimIndices,\n fCtx ? zrUtil.bind(cb, fCtx) : cb\n );\n }\n\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n downSample(\n dimension: DimensionLoose,\n rate: number,\n sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric,\n sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number\n ): SeriesData {\n const list = cloneListForMapAndSample(this);\n list._store = this._store.downSample(\n this._getStoreDimIndex(dimension),\n rate,\n sampleValue,\n sampleIndex\n );\n return list as SeriesData;\n }\n\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n lttbDownSample(\n valueDimension: DimensionLoose,\n rate: number\n ): SeriesData {\n const list = cloneListForMapAndSample(this);\n list._store = this._store.lttbDownSample(\n this._getStoreDimIndex(valueDimension),\n rate\n );\n return list as SeriesData;\n }\n\n getRawDataItem(idx: number) {\n return this._store.getRawDataItem(idx);\n }\n\n /**\n * Get model of one data item.\n */\n // TODO: Type of data item\n getItemModel(idx: number): Model\n > {\n const hostModel = this.hostModel;\n const dataItem = this.getRawDataItem(idx) as ModelOption;\n return new Model(dataItem, hostModel, hostModel && hostModel.ecModel);\n }\n\n /**\n * Create a data differ\n */\n diff(otherList: SeriesData): DataDiffer {\n const thisList = this;\n\n return new DataDiffer(\n otherList ? otherList.getStorage().getIndices() : [],\n this.getStorage().getIndices(),\n function (idx: number) {\n return getId(otherList, idx);\n },\n function (idx: number) {\n return getId(thisList, idx);\n }\n );\n }\n\n /**\n * Get visual property.\n */\n getVisual(key: K): Visual[K] {\n const visual = this._visual as Visual;\n return visual && visual[key];\n }\n\n /**\n * Set visual property\n *\n * @example\n * setVisual('color', color);\n * setVisual({\n * 'color': color\n * });\n */\n setVisual(key: K, val: Visual[K]): void;\n setVisual(kvObj: Partial): void;\n setVisual(kvObj: string | Partial, val?: any): void {\n this._visual = this._visual || {};\n if (isObject(kvObj)) {\n zrUtil.extend(this._visual, kvObj);\n }\n else {\n this._visual[kvObj as string] = val;\n }\n }\n\n /**\n * Get visual property of single data item\n */\n // eslint-disable-next-line\n getItemVisual(idx: number, key: K): Visual[K] {\n const itemVisual = this._itemVisuals[idx] as Visual;\n const val = itemVisual && itemVisual[key];\n if (val == null) {\n // Use global visual property\n return this.getVisual(key);\n }\n return val;\n }\n\n /**\n * If exists visual property of single data item\n */\n hasItemVisual() {\n return this._itemVisuals.length > 0;\n }\n\n /**\n * Make sure itemVisual property is unique\n */\n // TODO: use key to save visual to reduce memory.\n ensureUniqueItemVisual(idx: number, key: K): Visual[K] {\n const itemVisuals = this._itemVisuals;\n let itemVisual = itemVisuals[idx] as Visual;\n if (!itemVisual) {\n itemVisual = itemVisuals[idx] = {} as Visual;\n }\n let val = itemVisual[key];\n if (val == null) {\n val = this.getVisual(key);\n\n // TODO Performance?\n if (zrUtil.isArray(val)) {\n val = val.slice() as unknown as Visual[K];\n }\n else if (isObject(val)) {\n val = zrUtil.extend({}, val);\n }\n\n itemVisual[key] = val;\n }\n return val;\n }\n /**\n * Set visual property of single data item\n *\n * @param {number} idx\n * @param {string|Object} key\n * @param {*} [value]\n *\n * @example\n * setItemVisual(0, 'color', color);\n * setItemVisual(0, {\n * 'color': color\n * });\n */\n // eslint-disable-next-line\n setItemVisual(idx: number, key: K, value: Visual[K]): void;\n setItemVisual(idx: number, kvObject: Partial): void;\n // eslint-disable-next-line\n setItemVisual(idx: number, key: K | Partial, value?: Visual[K]): void {\n const itemVisual = this._itemVisuals[idx] || {};\n this._itemVisuals[idx] = itemVisual;\n\n if (isObject(key)) {\n zrUtil.extend(itemVisual, key);\n }\n else {\n itemVisual[key as string] = value;\n }\n }\n\n /**\n * Clear itemVisuals and list visual.\n */\n clearAllVisual(): void {\n this._visual = {};\n this._itemVisuals = [];\n }\n\n /**\n * Set layout property.\n */\n setLayout(key: string, val: any): void;\n setLayout(kvObj: Dictionary): void;\n setLayout(key: string | Dictionary, val?: any): void {\n if (isObject(key)) {\n for (const name in key) {\n if (key.hasOwnProperty(name)) {\n this.setLayout(name, key[name]);\n }\n }\n return;\n }\n this._layout[key] = val;\n }\n\n /**\n * Get layout property.\n */\n getLayout(key: string): any {\n return this._layout[key];\n }\n\n /**\n * Get layout of single data item\n */\n getItemLayout(idx: number): any {\n return this._itemLayouts[idx];\n }\n\n /**\n * Set layout of single data item\n */\n setItemLayout(\n idx: number,\n layout: (M extends true ? Dictionary : any),\n merge?: M\n ): void {\n this._itemLayouts[idx] = merge\n ? zrUtil.extend(this._itemLayouts[idx] || {}, layout)\n : layout;\n }\n\n /**\n * Clear all layout of single data item\n */\n clearItemLayouts(): void {\n this._itemLayouts.length = 0;\n }\n\n /**\n * Set graphic element relative to data. It can be set as null\n */\n setItemGraphicEl(idx: number, el: Element): void {\n const seriesIndex = this.hostModel && (this.hostModel as any).seriesIndex;\n\n setCommonECData(seriesIndex, this.dataType, idx, el);\n\n this._graphicEls[idx] = el;\n }\n\n getItemGraphicEl(idx: number): Element {\n return this._graphicEls[idx];\n }\n\n eachItemGraphicEl(\n cb: (this: Ctx, el: Element, idx: number) => void,\n context?: Ctx\n ): void {\n zrUtil.each(this._graphicEls, function (el, idx) {\n if (el) {\n cb && cb.call(context, el, idx);\n }\n });\n }\n\n /**\n * Shallow clone a new list except visual and layout properties, and graph elements.\n * New list only change the indices.\n */\n cloneShallow(list?: SeriesData): SeriesData {\n if (!list) {\n list = new SeriesData(\n this._schema\n ? this._schema\n : map(this.dimensions, this._getDimensionInfo, this),\n this.hostModel\n );\n }\n\n transferProperties(list, this);\n list._store = this._store;\n\n return list;\n }\n\n /**\n * Wrap some method to add more feature\n */\n wrapMethod(\n methodName: FunctionPropertyNames,\n injectFunction: (...args: any) => any\n ): void {\n const originalMethod = this[methodName];\n if (typeof originalMethod !== 'function') {\n return;\n }\n this.__wrappedMethods = this.__wrappedMethods || [];\n this.__wrappedMethods.push(methodName);\n this[methodName] = function () {\n const res = (originalMethod as any).apply(this, arguments);\n return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments)));\n };\n }\n\n\n // ----------------------------------------------------------\n // A work around for internal method visiting private member.\n // ----------------------------------------------------------\n private static internalField = (function () {\n\n prepareInvertedIndex = function (data: SeriesData): void {\n const invertedIndicesMap = data._invertedIndicesMap;\n zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) {\n const dimInfo = data._dimensionInfos[dim];\n // Currently, only dimensions that has ordinalMeta can create inverted indices.\n const ordinalMeta = dimInfo.ordinalMeta;\n const store = data._store;\n if (ordinalMeta) {\n invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array(\n ordinalMeta.categories.length\n );\n // The default value of TypedArray is 0. To avoid miss\n // mapping to 0, we should set it as INDEX_NOT_FOUND.\n for (let i = 0; i < invertedIndices.length; i++) {\n invertedIndices[i] = INDEX_NOT_FOUND;\n }\n for (let i = 0; i < store.count(); i++) {\n // Only support the case that all values are distinct.\n invertedIndices[store.get(dimInfo.storageDimensionIndex, i) as number] = i;\n }\n }\n });\n };\n\n getIdNameFromStore = function (\n data: SeriesData, dimIdx: number, idx: number\n ): string {\n return convertOptionIdName(data._getCategory(dimIdx, idx), null);\n };\n\n /**\n * @see the comment of `List['getId']`.\n */\n getId = function (data: SeriesData, rawIndex: number): string {\n let id = data._idList[rawIndex];\n if (id == null && data._idDimIdx != null) {\n id = getIdNameFromStore(data, data._idDimIdx, rawIndex);\n }\n if (id == null) {\n id = ID_PREFIX + rawIndex;\n }\n return id;\n };\n\n normalizeDimensions = function (\n dimensions: ItrParamDims\n ): Array {\n if (!zrUtil.isArray(dimensions)) {\n dimensions = dimensions != null ? [dimensions] : [];\n }\n return dimensions;\n };\n\n /**\n * Data in excludeDimensions is copied, otherwise transfered.\n */\n cloneListForMapAndSample = function (original: SeriesData): SeriesData {\n const list = new SeriesData(\n original._schema\n ? original._schema\n : map(original.dimensions, original._getDimensionInfo, original),\n original.hostModel\n );\n // FIXME If needs stackedOn, value may already been stacked\n transferProperties(list, original);\n return list;\n };\n\n transferProperties = function (target: SeriesData, source: SeriesData): void {\n zrUtil.each(\n TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []),\n function (propName) {\n if (source.hasOwnProperty(propName)) {\n (target as any)[propName] = (source as any)[propName];\n }\n }\n );\n\n target.__wrappedMethods = source.__wrappedMethods;\n\n zrUtil.each(CLONE_PROPERTIES, function (propName) {\n (target as any)[propName] = zrUtil.clone((source as any)[propName]);\n });\n\n target._calculationInfo = zrUtil.extend({}, source._calculationInfo);\n };\n makeIdFromName = function (data: SeriesData, idx: number): void {\n const nameList = data._nameList;\n const idList = data._idList;\n const nameDimIdx = data._nameDimIdx;\n const idDimIdx = data._idDimIdx;\n\n let name = nameList[idx];\n let id = idList[idx];\n\n if (name == null && nameDimIdx != null) {\n nameList[idx] = name = getIdNameFromStore(data, nameDimIdx, idx);\n }\n if (id == null && idDimIdx != null) {\n idList[idx] = id = getIdNameFromStore(data, idDimIdx, idx);\n }\n if (id == null && name != null) {\n const nameRepeatCount = data._nameRepeatCount;\n const nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1;\n id = name;\n if (nmCnt > 1) {\n id += '__ec__' + nmCnt;\n }\n idList[idx] = id;\n }\n };\n })();\n\n}\n\ninterface SeriesData {\n getLinkedData(dataType?: SeriesDataType): SeriesData;\n getLinkedDataAll(): { data: SeriesData, type?: SeriesDataType }[];\n}\n\nexport default SeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module exposes helper functions for developing extensions.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesData from '../../chart/helper/createSeriesData';\n// import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge';\nimport * as axisHelper from '../../coord/axisHelper';\nimport {AxisModelCommonMixin} from '../../coord/axisModelCommonMixin';\nimport Model from '../../model/Model';\nimport {getLayoutRect} from '../../util/layout';\nimport {\n enableDataStack,\n isDimensionStacked,\n getStackedDimension\n} from '../../data/helper/dataStackHelper';\nimport SeriesModel from '../../model/Series';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle as innerCreateTextStyle } from '../../label/labelStyle';\nimport { DisplayState, TextCommonOption } from '../../util/types';\n\n/**\n * Create a muti dimension List structure from seriesModel.\n */\nexport function createList(seriesModel: SeriesModel) {\n return createSeriesData(null, seriesModel);\n}\n\n// export function createGraph(seriesModel) {\n// let nodes = seriesModel.get('data');\n// let links = seriesModel.get('links');\n// return createGraphFromNodeEdge(nodes, links, seriesModel);\n// }\n\nexport {getLayoutRect};\n\nexport {legacyCreateDimensions as createDimensions} from '../../data/helper/createDimensions';\n\nexport const dataStack = {\n isDimensionStacked: isDimensionStacked,\n enableDataStack: enableDataStack,\n getStackedDimension: getStackedDimension\n};\n\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n * @param {string} symbolDesc\n * @param {number} x\n * @param {number} y\n * @param {number} w\n * @param {number} h\n * @param {string} color\n */\nexport {createSymbol} from '../../util/symbol';\n\n/**\n * Create scale\n * @param {Array.} dataExtent\n * @param {Object|module:echarts/Model} option If `optoin.type`\n * is secified, it can only be `'value'` currently.\n */\nexport function createScale(dataExtent: number[], option: object | AxisBaseModel) {\n let axisModel = option;\n if (!(option instanceof Model)) {\n axisModel = new Model(option);\n // FIXME\n // Currently AxisModelCommonMixin has nothing to do with the\n // the requirements of `axisHelper.createScaleByModel`. For\n // example the method `getCategories` and `getOrdinalMeta`\n // are required for `'category'` axis, and ecModel are required\n // for `'time'` axis. But occationally echarts-gl happened\n // to only use `'value'` axis.\n // zrUtil.mixin(axisModel, AxisModelCommonMixin);\n }\n\n const scale = axisHelper.createScaleByModel(axisModel as AxisBaseModel);\n scale.setExtent(dataExtent[0], dataExtent[1]);\n\n axisHelper.niceScaleExtent(scale, axisModel as AxisBaseModel);\n return scale;\n}\n\n/**\n * Mixin common methods to axis model,\n *\n * Inlcude methods\n * `getFormattedLabels() => Array.`\n * `getCategories() => Array.`\n * `getMin(origin: boolean) => number`\n * `getMax(origin: boolean) => number`\n * `getNeedCrossZero() => boolean`\n */\nexport function mixinAxisModelCommonMethods(Model: Model) {\n zrUtil.mixin(Model, AxisModelCommonMixin);\n}\n\nexport {getECData};\n\nexport {enableHoverEmphasis} from '../../util/states';\n\nexport function createTextStyle(\n textStyleModel: Model,\n opts?: {\n // For which state this textStyle is for.\n state?: DisplayState\n }\n) {\n opts = opts || {};\n return innerCreateTextStyle(textStyleModel, null, null, opts.state !== 'normal');\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DimensionDefinitionLoose, OptionEncode, OptionEncodeValue,\n EncodeDefaulter,\n OptionSourceData,\n DimensionName,\n DimensionDefinition,\n DataVisualDimensions,\n DimensionIndex,\n VISUAL_DIMENSIONS\n} from '../../util/types';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport {\n createHashMap, defaults, each, extend, HashMap, isObject, isString\n} from 'zrender/src/core/util';\nimport OrdinalMeta from '../OrdinalMeta';\nimport { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source';\nimport { CtorInt32Array } from '../DataStorage';\nimport { normalizeToArray } from '../../util/model';\nimport { BE_ORDINAL, guessOrdinal } from './sourceHelper';\nimport {\n createDimNameMap, ensureSourceDimNameMap, SeriesDataSchema, shouldOmitUnusedDimensions\n} from './SeriesDataSchema';\n\n\nexport interface CoordDimensionDefinition extends DimensionDefinition {\n dimsDef?: (DimensionName | { name: DimensionName, defaultTooltip?: boolean })[];\n otherDims?: DataVisualDimensions;\n ordinalMeta?: OrdinalMeta;\n coordDim?: DimensionName;\n coordDimIndex?: DimensionIndex;\n}\nexport type CoordDimensionDefinitionLoose = CoordDimensionDefinition['name'] | CoordDimensionDefinition;\n\nexport type CreateDimensionsParams = {\n coordDimensions?: CoordDimensionDefinitionLoose[],\n /**\n * Will use `source.dimensionsDefine` if not given.\n */\n dimensionsDefine?: DimensionDefinitionLoose[],\n /**\n * Will use `source.encodeDefine` if not given.\n */\n encodeDefine?: HashMap | OptionEncode,\n dimensionsCount?: number,\n /**\n * Make default encode if user not specified.\n */\n encodeDefaulter?: EncodeDefaulter,\n generateCoord?: string,\n generateCoordCount?: number,\n\n /**\n * If be able to omit unused dimension\n * Used to improve the performance on high dimension data.\n */\n canOmitUnusedDimensions?: boolean\n};\n\n/**\n * For outside usage compat (like echarts-gl are using it).\n */\nexport function legacyCreateDimensions(\n source: Source | OptionSourceData,\n opt?: CreateDimensionsParams\n): SeriesDimensionDefine[] {\n return createDimensions(source, opt).dimensionList;\n}\n\n/**\n * This method builds the relationship between:\n * + \"what the coord sys or series requires (see `coordDimensions`)\",\n * + \"what the user defines (in `encode` and `dimensions`, see `opt.dimensionsDefine` and `opt.encodeDefine`)\"\n * + \"what the data source provids (see `source`)\".\n *\n * Some guess strategy will be adapted if user does not define something.\n * If no 'value' dimension specified, the first no-named dimension will be\n * named as 'value'.\n *\n * @return The results are always sorted by `storageDimensionIndex` asc.\n */\nexport default function createDimensions(\n // TODO: TYPE completeDimensions type\n source: Source | OptionSourceData,\n opt?: CreateDimensionsParams\n): SeriesDataSchema {\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source as OptionSourceData);\n }\n\n opt = opt || {};\n\n const sysDims = opt.coordDimensions || [];\n const dimsDef = opt.dimensionsDefine || source.dimensionsDefine || [];\n const coordDimNameMap = createHashMap();\n const resultList: SeriesDimensionDefine[] = [];\n const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount);\n\n // Try to ignore unsed dimensions if sharing a high dimension datastorage\n // 30 is an experience value.\n const omitUnusedDimensions = opt.canOmitUnusedDimensions && shouldOmitUnusedDimensions(dimCount);\n\n const isUsingSourceDimensionsDef = dimsDef === source.dimensionsDefine;\n const dataDimNameMap = isUsingSourceDimensionsDef\n ? ensureSourceDimNameMap(source) : createDimNameMap(dimsDef);\n\n let encodeDef = opt.encodeDefine;\n if (!encodeDef && opt.encodeDefaulter) {\n encodeDef = opt.encodeDefaulter(source, dimCount);\n }\n const encodeDefMap = createHashMap(encodeDef as any);\n\n const indicesMap = new CtorInt32Array(dimCount);\n for (let i = 0; i < indicesMap.length; i++) {\n indicesMap[i] = -1;\n }\n\n function getResultItem(dimIdx: number) {\n const idx = indicesMap[dimIdx];\n if (idx < 0) {\n const dimDefItemRaw = dimsDef[dimIdx];\n const dimDefItem = isObject(dimDefItemRaw) ? dimDefItemRaw : { name: dimDefItemRaw };\n const resultItem = new SeriesDimensionDefine();\n const userDimName = dimDefItem.name;\n if (userDimName != null && dataDimNameMap.get(userDimName) != null) {\n // Only if `series.dimensions` is defined in option\n // displayName, will be set, and dimension will be diplayed vertically in\n // tooltip by default.\n resultItem.name = resultItem.displayName = userDimName;\n }\n dimDefItem.type != null && (resultItem.type = dimDefItem.type);\n dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName);\n const newIdx = resultList.length;\n indicesMap[dimIdx] = newIdx;\n resultItem.storageDimensionIndex = dimIdx;\n resultList.push(resultItem);\n return resultItem;\n }\n return resultList[idx];\n }\n\n if (!omitUnusedDimensions) {\n for (let i = 0; i < dimCount; i++) {\n getResultItem(i);\n }\n }\n\n // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.\n encodeDefMap.each(function (dataDimsRaw, coordDim) {\n const dataDims = normalizeToArray(dataDimsRaw as []).slice();\n\n // Note: It is allowed that `dataDims.length` is `0`, e.g., options is\n // `{encode: {x: -1, y: 1}}`. Should not filter anything in\n // this case.\n if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {\n encodeDefMap.set(coordDim, false);\n return;\n }\n\n const validDataDims = encodeDefMap.set(coordDim, []) as DimensionIndex[];\n each(dataDims, function (resultDimIdxOrName, idx) {\n // The input resultDimIdx can be dim name or index.\n const resultDimIdx = isString(resultDimIdxOrName)\n ? dataDimNameMap.get(resultDimIdxOrName)\n : resultDimIdxOrName;\n if (resultDimIdx != null && resultDimIdx < dimCount) {\n validDataDims[idx] = resultDimIdx;\n applyDim(getResultItem(resultDimIdx), coordDim, idx);\n }\n });\n });\n\n // Apply templetes and default order from `sysDims`.\n let availDimIdx = 0;\n each(sysDims, function (sysDimItemRaw) {\n let coordDim: DimensionName;\n let sysDimItemDimsDef: CoordDimensionDefinition['dimsDef'];\n let sysDimItemOtherDims: CoordDimensionDefinition['otherDims'];\n let sysDimItem: CoordDimensionDefinition;\n if (isString(sysDimItemRaw)) {\n coordDim = sysDimItemRaw;\n sysDimItem = {} as CoordDimensionDefinition;\n }\n else {\n sysDimItem = sysDimItemRaw;\n coordDim = sysDimItem.name;\n const ordinalMeta = sysDimItem.ordinalMeta;\n sysDimItem.ordinalMeta = null;\n sysDimItem = extend({}, sysDimItem);\n sysDimItem.ordinalMeta = ordinalMeta;\n // `coordDimIndex` should not be set directly.\n sysDimItemDimsDef = sysDimItem.dimsDef;\n sysDimItemOtherDims = sysDimItem.otherDims;\n sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex =\n sysDimItem.dimsDef = sysDimItem.otherDims = null;\n }\n\n let dataDims = encodeDefMap.get(coordDim);\n\n // negative resultDimIdx means no need to mapping.\n if (dataDims === false) {\n return;\n }\n\n dataDims = normalizeToArray(dataDims);\n\n // dimensions provides default dim sequences.\n if (!dataDims.length) {\n for (let i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {\n while (availDimIdx < dimCount && getResultItem(availDimIdx).coordDim != null) {\n availDimIdx++;\n }\n availDimIdx < dimCount && dataDims.push(availDimIdx++);\n }\n }\n\n // Apply templates.\n each(dataDims, function (resultDimIdx, coordDimIndex) {\n const resultItem = getResultItem(resultDimIdx);\n // Coordinate system has a higher priority on dim type than source.\n if (isUsingSourceDimensionsDef && sysDimItem.type != null) {\n resultItem.type = sysDimItem.type;\n }\n applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex);\n if (resultItem.name == null && sysDimItemDimsDef) {\n let sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex];\n !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {\n name: sysDimItemDimsDefItem\n });\n resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name;\n resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip;\n }\n // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}\n sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims);\n });\n });\n\n function applyDim(resultItem: SeriesDimensionDefine, coordDim: DimensionName, coordDimIndex: DimensionIndex) {\n if (VISUAL_DIMENSIONS.get(coordDim as keyof DataVisualDimensions) != null) {\n resultItem.otherDims[coordDim as keyof DataVisualDimensions] = coordDimIndex;\n }\n else {\n resultItem.coordDim = coordDim;\n resultItem.coordDimIndex = coordDimIndex;\n coordDimNameMap.set(coordDim, true);\n }\n }\n\n // Make sure the first extra dim is 'value'.\n const generateCoord = opt.generateCoord;\n let generateCoordCount = opt.generateCoordCount;\n const fromZero = generateCoordCount != null;\n generateCoordCount = generateCoord ? (generateCoordCount || 1) : 0;\n const extra = generateCoord || 'value';\n\n function ifNoNameFillWithCoordName(resultItem: SeriesDimensionDefine): void {\n if (resultItem.name == null) {\n // Duplication will be removed in the next step.\n resultItem.name = resultItem.coordDim;\n }\n }\n\n // Set dim `name` and other `coordDim` and other props.\n if (!omitUnusedDimensions) {\n for (let resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {\n const resultItem = getResultItem(resultDimIdx);\n const coordDim = resultItem.coordDim;\n\n if (coordDim == null) {\n // TODO no need to generate coordDim for isExtraCoord?\n resultItem.coordDim = genCoordDimName(\n extra, coordDimNameMap, fromZero\n );\n\n resultItem.coordDimIndex = 0;\n // Series specified generateCoord is using out.\n if (!generateCoord || generateCoordCount <= 0) {\n resultItem.isExtraCoord = true;\n }\n generateCoordCount--;\n }\n\n ifNoNameFillWithCoordName(resultItem);\n\n if (resultItem.type == null\n && (\n guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must\n // Consider the case:\n // {\n // dataset: {source: [\n // ['2001', 123],\n // ['2002', 456],\n // ...\n // ['The others', 987],\n // ]},\n // series: {type: 'pie'}\n // }\n // The first colum should better be treated as a \"ordinal\" although it\n // might not able to be detected as an \"ordinal\" by `guessOrdinal`.\n || (resultItem.isExtraCoord\n && (resultItem.otherDims.itemName != null\n || resultItem.otherDims.seriesName != null\n )\n )\n )\n ) {\n resultItem.type = 'ordinal';\n }\n }\n }\n else {\n each(resultList, resultItem => {\n // PENDING: guessOrdinal or let user specify type: 'ordinal' manually?\n ifNoNameFillWithCoordName(resultItem);\n });\n // Sort dimensions: there are some rule that use the last dim as label,\n // and for some latter travel process easier.\n resultList.sort((item0, item1) => item0.storageDimensionIndex - item1.storageDimensionIndex);\n }\n\n removeDuplication(resultList);\n\n return new SeriesDataSchema({\n source,\n dimensionList: resultList,\n fullDimensionCount: dimCount,\n dimensionOmitted: omitUnusedDimensions\n });\n}\n\nfunction removeDuplication(result: SeriesDimensionDefine[]) {\n const duplicationMap = createHashMap();\n for (let i = 0; i < result.length; i++) {\n const dim = result[i];\n const dimOriginalName = dim.name;\n let count = duplicationMap.get(dimOriginalName) || 0;\n if (count > 0) {\n // Starts from 0.\n dim.name = dimOriginalName + (count - 1);\n }\n count++;\n duplicationMap.set(dimOriginalName, count);\n }\n}\n\n// ??? TODO\n// Originally detect dimCount by data[0]. Should we\n// optimize it to only by sysDims and dimensions and encode.\n// So only necessary dims will be initialized.\n// But\n// (1) custom series should be considered. where other dims\n// may be visited.\n// (2) sometimes user need to calcualte bubble size or use visualMap\n// on other dimensions besides coordSys needed.\n// So, dims that is not used by system, should be shared in storage?\nfunction getDimCount(\n source: Source,\n sysDims: CoordDimensionDefinitionLoose[],\n dimsDef: DimensionDefinitionLoose[],\n optDimCount?: number\n): number {\n // Note that the result dimCount should not small than columns count\n // of data, otherwise `dataDimNameMap` checking will be incorrect.\n let dimCount = Math.max(\n source.dimensionsDetectedCount || 1,\n sysDims.length,\n dimsDef.length,\n optDimCount || 0\n );\n each(sysDims, function (sysDimItem) {\n let sysDimItemDimsDef;\n if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {\n dimCount = Math.max(dimCount, sysDimItemDimsDef.length);\n }\n });\n return dimCount;\n}\n\nfunction genCoordDimName(\n name: DimensionName,\n map: HashMap,\n fromZero: boolean\n) {\n const mapData = map.data;\n if (fromZero || mapData.hasOwnProperty(name)) {\n let i = 0;\n while (mapData.hasOwnProperty(name + i)) {\n i++;\n }\n name += i;\n }\n map.set(name, true);\n return name;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Helper for model references.\n * There are many manners to refer axis/coordSys.\n */\n\n// TODO\n// merge relevant logic to this file?\n// check: \"modelHelper\" of tooltip and \"BrushTargetManager\".\n\nimport {createHashMap, retrieve, each, HashMap} from 'zrender/src/core/util';\nimport SeriesModel from './Series';\nimport type PolarModel from '../coord/polar/PolarModel';\nimport type { SeriesOption, SeriesOnCartesianOptionMixin } from '../util/types';\nimport type { AxisBaseModel } from '../coord/AxisBaseModel';\nimport { SINGLE_REFERRING } from '../util/model';\nimport { ParallelSeriesOption } from '../chart/parallel/ParallelSeries';\nimport ParallelModel from '../coord/parallel/ParallelModel';\nimport ParallelAxisModel from '../coord/parallel/AxisModel';\n\n/**\n * @class\n * For example:\n * {\n * coordSysName: 'cartesian2d',\n * coordSysDims: ['x', 'y', ...],\n * axisMap: HashMap({\n * x: xAxisModel,\n * y: yAxisModel\n * }),\n * categoryAxisMap: HashMap({\n * x: xAxisModel,\n * y: undefined\n * }),\n * // The index of the first category axis in `coordSysDims`.\n * // `null/undefined` means no category axis exists.\n * firstCategoryDimIndex: 1,\n * // To replace user specified encode.\n * }\n */\n\nclass CoordSysInfo {\n\n coordSysName: string;\n\n coordSysDims: string[] = [];\n\n axisMap = createHashMap();\n\n categoryAxisMap = createHashMap();\n\n firstCategoryDimIndex: number;\n\n constructor(coordSysName: string) {\n this.coordSysName = coordSysName;\n }\n}\n\ntype SupportedCoordSys = 'cartesian2d' | 'polar' | 'singleAxis' | 'geo' | 'parallel';\ntype Fetcher = (\n seriesModel: SeriesModel,\n result: CoordSysInfo,\n axisMap: HashMap,\n categoryAxisMap: HashMap\n) => void;\n\nexport function getCoordSysInfoBySeries(seriesModel: SeriesModel) {\n const coordSysName = seriesModel.get('coordinateSystem') as SupportedCoordSys;\n const result = new CoordSysInfo(coordSysName);\n const fetch = fetchers[coordSysName];\n if (fetch) {\n fetch(seriesModel, result, result.axisMap, result.categoryAxisMap);\n return result;\n }\n}\n\nconst fetchers: Record = {\n\n cartesian2d: function (\n seriesModel: SeriesModel, result, axisMap, categoryAxisMap\n ) {\n const xAxisModel = seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0] as AxisBaseModel;\n const yAxisModel = seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0] as AxisBaseModel;\n\n if (__DEV__) {\n if (!xAxisModel) {\n throw new Error('xAxis \"' + retrieve(\n seriesModel.get('xAxisIndex'),\n seriesModel.get('xAxisId'),\n 0\n ) + '\" not found');\n }\n if (!yAxisModel) {\n throw new Error('yAxis \"' + retrieve(\n seriesModel.get('xAxisIndex'),\n seriesModel.get('yAxisId'),\n 0\n ) + '\" not found');\n }\n }\n\n result.coordSysDims = ['x', 'y'];\n axisMap.set('x', xAxisModel);\n axisMap.set('y', yAxisModel);\n\n if (isCategory(xAxisModel)) {\n categoryAxisMap.set('x', xAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n if (isCategory(yAxisModel)) {\n categoryAxisMap.set('y', yAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n\n singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) {\n const singleAxisModel = seriesModel.getReferringComponents(\n 'singleAxis', SINGLE_REFERRING\n ).models[0] as AxisBaseModel;\n\n if (__DEV__) {\n if (!singleAxisModel) {\n throw new Error('singleAxis should be specified.');\n }\n }\n\n result.coordSysDims = ['single'];\n axisMap.set('single', singleAxisModel);\n\n if (isCategory(singleAxisModel)) {\n categoryAxisMap.set('single', singleAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n },\n\n polar: function (seriesModel, result, axisMap, categoryAxisMap) {\n const polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0] as PolarModel;\n const radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n const angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n if (__DEV__) {\n if (!angleAxisModel) {\n throw new Error('angleAxis option not found');\n }\n if (!radiusAxisModel) {\n throw new Error('radiusAxis option not found');\n }\n }\n\n result.coordSysDims = ['radius', 'angle'];\n axisMap.set('radius', radiusAxisModel);\n axisMap.set('angle', angleAxisModel);\n\n if (isCategory(radiusAxisModel)) {\n categoryAxisMap.set('radius', radiusAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n if (isCategory(angleAxisModel)) {\n categoryAxisMap.set('angle', angleAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n\n geo: function (seriesModel, result, axisMap, categoryAxisMap) {\n result.coordSysDims = ['lng', 'lat'];\n },\n\n parallel: function (seriesModel, result, axisMap, categoryAxisMap) {\n const ecModel = seriesModel.ecModel;\n const parallelModel = ecModel.getComponent(\n 'parallel', (seriesModel as SeriesModel).get('parallelIndex')\n ) as ParallelModel;\n const coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();\n\n each(parallelModel.parallelAxisIndex, function (axisIndex, index) {\n const axisModel = ecModel.getComponent('parallelAxis', axisIndex) as ParallelAxisModel;\n const axisDim = coordSysDims[index];\n axisMap.set(axisDim, axisModel);\n\n if (isCategory(axisModel)) {\n categoryAxisMap.set(axisDim, axisModel);\n if (result.firstCategoryDimIndex == null) {\n result.firstCategoryDimIndex = index;\n }\n }\n });\n }\n};\n\nfunction isCategory(axisModel: AxisBaseModel) {\n return axisModel.get('type') === 'category';\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, isString} from 'zrender/src/core/util';\nimport SeriesDimensionDefine from '../SeriesDimensionDefine';\nimport SeriesModel from '../../model/Series';\nimport SeriesData, { DataCalculationInfo } from '../SeriesData';\nimport type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types';\nimport { isSeriesDataSchema, SeriesDataSchema } from './SeriesDataSchema';\nimport DataStorage from '../DataStorage';\n\ntype EnableDataStackDimensionsInput = {\n schema: SeriesDataSchema;\n // If given, stack dimension will be ensured on this storage.\n // Otherwise, stack dimesnion will be appended at the tail, and should not\n // be used on a shared storage, but should create a brand new stroage later.\n storage?: DataStorage;\n};\ntype EnableDataStackDimensionsInputLegacy = (SeriesDimensionDefine | string)[];\n\n/**\n * Note that it is too complicated to support 3d stack by value\n * (have to create two-dimension inverted index), so in 3d case\n * we just support that stacked by index.\n *\n * @param seriesModel\n * @param dimensionsInput The same as the input of .\n * The input will be modified.\n * @param opt\n * @param opt.stackedCoordDimension Specify a coord dimension if needed.\n * @param opt.byIndex=false\n * @return calculationInfo\n * {\n * stackedDimension: string\n * stackedByDimension: string\n * isStackedByIndex: boolean\n * stackedOverDimension: string\n * stackResultDimension: string\n * }\n */\nexport function enableDataStack(\n seriesModel: SeriesModel,\n dimensionsInput: EnableDataStackDimensionsInput | EnableDataStackDimensionsInputLegacy,\n opt?: {\n // Backward compat\n stackedCoordDimension?: string\n byIndex?: boolean\n }\n): Pick<\n DataCalculationInfo,\n 'stackedDimension'\n | 'stackedByDimension'\n | 'isStackedByIndex'\n | 'stackedOverDimension'\n | 'stackResultDimension'\n> {\n opt = opt || {};\n let byIndex = opt.byIndex;\n const stackedCoordDimension = opt.stackedCoordDimension;\n\n let dimensionDefineList: EnableDataStackDimensionsInputLegacy;\n let schema: SeriesDataSchema;\n let storage: DataStorage;\n\n if (isLegacyDimensionsInput(dimensionsInput)) {\n dimensionDefineList = dimensionsInput;\n }\n else {\n schema = dimensionsInput.schema;\n dimensionDefineList = schema.dimensionList;\n storage = dimensionsInput.storage;\n }\n\n // Compatibal: when `stack` is set as '', do not stack.\n const mayStack = !!(seriesModel && seriesModel.get('stack'));\n let stackedByDimInfo: SeriesDimensionDefine;\n let stackedDimInfo: SeriesDimensionDefine;\n let stackResultDimension: string;\n let stackedOverDimension: string;\n\n each(dimensionDefineList, function (dimensionInfo, index) {\n if (isString(dimensionInfo)) {\n dimensionDefineList[index] = dimensionInfo = {\n name: dimensionInfo as string\n } as SeriesDimensionDefine;\n }\n\n if (mayStack && !dimensionInfo.isExtraCoord) {\n // Find the first ordinal dimension as the stackedByDimInfo.\n if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) {\n stackedByDimInfo = dimensionInfo;\n }\n // Find the first stackable dimension as the stackedDimInfo.\n if (!stackedDimInfo\n && dimensionInfo.type !== 'ordinal'\n && dimensionInfo.type !== 'time'\n && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)\n ) {\n stackedDimInfo = dimensionInfo;\n }\n }\n });\n\n if (stackedDimInfo && !byIndex && !stackedByDimInfo) {\n // Compatible with previous design, value axis (time axis) only stack by index.\n // It may make sense if the user provides elaborately constructed data.\n byIndex = true;\n }\n\n // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.\n // That put stack logic in List is for using conveniently in echarts extensions, but it\n // might not be a good way.\n if (stackedDimInfo) {\n // Use a weird name that not duplicated with other names.\n // Also need to use seriesModel.id as postfix because different\n // series may share same data storage. The stack dimension needs to be distinguished.\n stackResultDimension = '__\\0ecstackresult_' + seriesModel.id;\n stackedOverDimension = '__\\0ecstackedover_' + seriesModel.id;\n\n // Create inverted index to fast query index by value.\n if (stackedByDimInfo) {\n stackedByDimInfo.createInvertedIndices = true;\n }\n\n const stackedDimCoordDim = stackedDimInfo.coordDim;\n const stackedDimType = stackedDimInfo.type;\n let stackedDimCoordIndex = 0;\n\n each(dimensionDefineList, function (dimensionInfo: SeriesDimensionDefine) {\n if (dimensionInfo.coordDim === stackedDimCoordDim) {\n stackedDimCoordIndex++;\n }\n });\n\n const stackedOverDimensionDefine: SeriesDimensionDefine = {\n name: stackResultDimension,\n coordDim: stackedDimCoordDim,\n coordDimIndex: stackedDimCoordIndex,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true,\n storageDimensionIndex: dimensionDefineList.length\n };\n\n const stackResultDimensionDefine: SeriesDimensionDefine = {\n name: stackedOverDimension,\n // This dimension contains stack base (generally, 0), so do not set it as\n // `stackedDimCoordDim` to avoid extent calculation, consider log scale.\n coordDim: stackedOverDimension,\n coordDimIndex: stackedDimCoordIndex + 1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true,\n storageDimensionIndex: dimensionDefineList.length + 1\n };\n\n if (schema) {\n if (storage) {\n stackedOverDimensionDefine.storageDimensionIndex =\n storage.ensureCalculationDimension(stackedOverDimension, stackedDimType);\n stackResultDimensionDefine.storageDimensionIndex =\n storage.ensureCalculationDimension(stackResultDimension, stackedDimType);\n }\n\n schema.appendCalculationDimension(stackedOverDimensionDefine);\n schema.appendCalculationDimension(stackResultDimensionDefine);\n }\n else {\n dimensionDefineList.push(stackedOverDimensionDefine);\n dimensionDefineList.push(stackResultDimensionDefine);\n }\n }\n\n return {\n stackedDimension: stackedDimInfo && stackedDimInfo.name,\n stackedByDimension: stackedByDimInfo && stackedByDimInfo.name,\n isStackedByIndex: byIndex,\n stackedOverDimension: stackedOverDimension,\n stackResultDimension: stackResultDimension\n };\n}\n\nfunction isLegacyDimensionsInput(\n dimensionsInput: Parameters[1]\n): dimensionsInput is EnableDataStackDimensionsInputLegacy {\n return !isSeriesDataSchema((dimensionsInput as EnableDataStackDimensionsInput).schema);\n}\n\nexport function isDimensionStacked(data: SeriesData, stackedDim: string): boolean {\n // Each single series only maps to one pair of axis. So we do not need to\n // check stackByDim, whatever stacked by a dimension or stacked by index.\n return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension');\n}\n\nexport function getStackedDimension(data: SeriesData, targetDim: string): DimensionName {\n return isDimensionStacked(data, targetDim)\n ? data.getCalculationInfo('stackResultDimension')\n : targetDim;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport createDimensions from '../../data/helper/createDimensions';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport {getDataItemValue} from '../../util/model';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {getCoordSysInfoBySeries} from '../../model/referHelper';\nimport { createSourceFromSeriesDataOption, Source } from '../../data/Source';\nimport {enableDataStack} from '../../data/helper/dataStackHelper';\nimport {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper';\nimport {\n SOURCE_FORMAT_ORIGINAL,\n DimensionDefinitionLoose,\n DimensionDefinition,\n OptionSourceData,\n EncodeDefaulter\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport DataStorage from '../../data/DataStorage';\nimport SeriesDimensionDefine from '../../data/SeriesDimensionDefine';\n\nfunction getCoordSysDimDefs(\n seriesModel: SeriesModel,\n coordSysInfo: ReturnType\n) {\n const coordSysName = seriesModel.get('coordinateSystem');\n const registeredCoordSys = CoordinateSystem.get(coordSysName);\n\n let coordSysDimDefs: DimensionDefinitionLoose[];\n\n if (coordSysInfo && coordSysInfo.coordSysDims) {\n coordSysDimDefs = zrUtil.map(coordSysInfo.coordSysDims, function (dim) {\n const dimInfo = {\n name: dim\n } as DimensionDefinition;\n const axisModel = coordSysInfo.axisMap.get(dim);\n if (axisModel) {\n const axisType = axisModel.get('type');\n dimInfo.type = getDimensionTypeByAxis(axisType);\n }\n return dimInfo;\n });\n }\n\n if (!coordSysDimDefs) {\n // Get dimensions from registered coordinate system\n coordSysDimDefs = (registeredCoordSys && (\n registeredCoordSys.getDimensionsInfo\n ? registeredCoordSys.getDimensionsInfo()\n : registeredCoordSys.dimensions.slice()\n )) || ['x', 'y'];\n }\n\n return coordSysDimDefs;\n}\n\nfunction injectOrdinalMeta(\n dimInfoList: SeriesDimensionDefine[],\n createInvertedIndices: boolean,\n coordSysInfo: ReturnType\n) {\n let firstCategoryDimIndex: number;\n let hasNameEncode: boolean;\n coordSysInfo && zrUtil.each(dimInfoList, function (dimInfo, dimIndex) {\n const coordDim = dimInfo.coordDim;\n const categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);\n if (categoryAxisModel) {\n if (firstCategoryDimIndex == null) {\n firstCategoryDimIndex = dimIndex;\n }\n dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();\n if (createInvertedIndices) {\n dimInfo.createInvertedIndices = true;\n }\n }\n if (dimInfo.otherDims.itemName != null) {\n hasNameEncode = true;\n }\n });\n if (!hasNameEncode && firstCategoryDimIndex != null) {\n dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;\n }\n return firstCategoryDimIndex;\n}\n\n/**\n * Caution: there are side effects to `sourceManager` in this method.\n * Should better only be called in `Series['getInitialData']`.\n */\nfunction createSeriesData(\n sourceRaw: OptionSourceData | null | undefined,\n seriesModel: SeriesModel,\n opt?: {\n generateCoord?: string\n useEncodeDefaulter?: boolean | EncodeDefaulter\n // By default: auto. If `true`, create inverted indices for all ordinal dimension on coordSys.\n createInvertedIndices?: boolean\n }\n): SeriesData {\n opt = opt || {};\n\n const sourceManager = seriesModel.getSourceManager();\n let source;\n let isOriginalSource = false;\n if (sourceRaw) {\n isOriginalSource = true;\n source = createSourceFromSeriesDataOption(sourceRaw);\n }\n else {\n source = sourceManager.getSource();\n // Is series.data. not dataset.\n isOriginalSource = source.sourceFormat === SOURCE_FORMAT_ORIGINAL;\n }\n const coordSysInfo = getCoordSysInfoBySeries(seriesModel);\n const coordSysDimDefs = getCoordSysDimDefs(seriesModel, coordSysInfo);\n const useEncodeDefaulter = opt.useEncodeDefaulter;\n\n const encodeDefaulter = zrUtil.isFunction(useEncodeDefaulter)\n ? useEncodeDefaulter\n : useEncodeDefaulter\n ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel)\n : null;\n const createDimensionOptions = {\n coordDimensions: coordSysDimDefs,\n generateCoord: opt.generateCoord,\n encodeDefine: seriesModel.getEncode(),\n encodeDefaulter: encodeDefaulter,\n canOmitUnusedDimensions: !isOriginalSource\n };\n const schema = createDimensions(source, createDimensionOptions);\n const firstCategoryDimIndex = injectOrdinalMeta(\n schema.dimensionList, opt.createInvertedIndices, coordSysInfo\n );\n\n const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(schema) : null;\n\n const stackCalculationInfo = enableDataStack(seriesModel, { schema, storage });\n\n const data = new SeriesData(schema, seriesModel);\n data.setCalculationInfo(stackCalculationInfo);\n\n const dimValueGetter =\n firstCategoryDimIndex != null\n && isNeedCompleteOrdinalData(source)\n ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) {\n // Use dataIndex as ordinal value in categoryAxis\n return dimIndex === firstCategoryDimIndex\n ? dataIndex\n : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);\n }\n : null;\n\n data.hasItemOption = false;\n data.initData(\n // Try to reuse the data storage in sourceManager if using dataset.\n isOriginalSource ? source : storage,\n null,\n dimValueGetter\n );\n\n return data;\n}\n\nfunction isNeedCompleteOrdinalData(source: Source) {\n if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n const sampleItem = firstDataNotNull(source.data as ArrayLike || []);\n return sampleItem != null\n && !zrUtil.isArray(getDataItemValue(sampleItem));\n }\n}\n\nfunction firstDataNotNull(arr: ArrayLike) {\n let i = 0;\n while (i < arr.length && arr[i] == null) {\n i++;\n }\n return arr[i];\n}\n\nexport default createSeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as clazzUtil from '../util/clazz';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesData from '../data/SeriesData';\nimport {\n DimensionName,\n ScaleDataValue,\n OptionDataValue,\n DimensionLoose,\n ScaleTick\n} from '../util/types';\nimport { ScaleRawExtentInfo } from '../coord/scaleRawExtentInfo';\n\n\nabstract class Scale = Dictionary> {\n\n type: string;\n\n private _setting: SETTING;\n\n protected _extent: [number, number];\n\n private _isBlank: boolean;\n\n // Inject\n readonly rawExtentInfo: ScaleRawExtentInfo;\n\n constructor(setting?: SETTING) {\n this._setting = setting || {} as SETTING;\n this._extent = [Infinity, -Infinity];\n }\n\n getSetting(name: KEY): SETTING[KEY] {\n return this._setting[name];\n }\n\n /**\n * Parse input val to valid inner number.\n * Notice: This would be a trap here, If the implementation\n * of this method depends on extent, and this method is used\n * before extent set (like in dataZoom), it would be wrong.\n * Nevertheless, parse does not depend on extent generally.\n */\n abstract parse(val: OptionDataValue): number;\n\n /**\n * Whether contain the given value.\n */\n abstract contain(val: ScaleDataValue): boolean;\n\n /**\n * Normalize value to linear [0, 1], return 0.5 if extent span is 0.\n */\n abstract normalize(val: ScaleDataValue): number;\n\n /**\n * Scale normalized value to extent.\n */\n abstract scale(val: number): number;\n\n /**\n * Set extent from data\n */\n unionExtent(other: [number, number]): void {\n const extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]);\n // not setExtent because in log axis it may transformed to power\n // this.setExtent(extent[0], extent[1]);\n }\n\n /**\n * Set extent from data\n */\n unionExtentFromData(data: SeriesData, dim: DimensionName | DimensionLoose): void {\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * Get extent\n *\n * Extent is always in increase order.\n */\n getExtent(): [number, number] {\n return this._extent.slice() as [number, number];\n }\n\n /**\n * Set extent\n */\n setExtent(start: number, end: number): void {\n const thisExtent = this._extent;\n if (!isNaN(start)) {\n thisExtent[0] = start;\n }\n if (!isNaN(end)) {\n thisExtent[1] = end;\n }\n }\n\n /**\n * If value is in extent range\n */\n isInExtentRange(value: number): boolean {\n return this._extent[0] <= value && this._extent[1] >= value;\n }\n\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n isBlank(): boolean {\n return this._isBlank;\n }\n\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n setBlank(isBlank: boolean) {\n this._isBlank = isBlank;\n }\n\n /**\n * Update interval and extent of intervals for nice ticks\n *\n * @param splitNumber Approximated tick numbers. Optional.\n * The implementation of `niceTicks` should decide tick numbers\n * whether `splitNumber` is given.\n * @param minInterval Optional.\n * @param maxInterval Optional.\n */\n abstract niceTicks(\n // FIXME:TS make them in a \"opt\", the same with `niceExtent`?\n splitNumber?: number,\n minInterval?: number,\n maxInterval?: number\n ): void;\n\n abstract niceExtent(\n opt?: {\n splitNumber?: number,\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }\n ): void;\n\n /**\n * @return label of the tick.\n */\n abstract getLabel(tick: ScaleTick): string;\n\n abstract getTicks(expandToNicedExtent?: boolean): ScaleTick[];\n\n abstract getMinorTicks(splitNumber: number): number[][];\n\n static registerClass: clazzUtil.ClassManager['registerClass'];\n\n static getClass: clazzUtil.ClassManager['getClass'];\n}\n\ntype ScaleConstructor = typeof Scale & clazzUtil.ClassManager;\nclazzUtil.enableClassManagement(Scale as ScaleConstructor);\n\nexport default Scale;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, isObject, map, HashMap} from 'zrender/src/core/util';\nimport Model from '../model/Model';\nimport { OrdinalNumber, OrdinalRawValue } from '../util/types';\n\nlet uidBase = 0;\n\nclass OrdinalMeta {\n\n readonly categories: OrdinalRawValue[];\n\n private _needCollect: boolean;\n\n private _deduplication: boolean;\n\n private _map: HashMap;\n\n readonly uid: number;\n\n\n constructor(opt: {\n categories?: OrdinalRawValue[],\n needCollect?: boolean\n deduplication?: boolean\n }) {\n this.categories = opt.categories || [];\n this._needCollect = opt.needCollect;\n this._deduplication = opt.deduplication;\n this.uid = ++uidBase;\n }\n\n static createByAxisModel(axisModel: Model): OrdinalMeta {\n const option = axisModel.option;\n const data = option.data;\n const categories = data && map(data, getName);\n\n return new OrdinalMeta({\n categories: categories,\n needCollect: !categories,\n // deduplication is default in axis.\n deduplication: option.dedplication !== false\n });\n };\n\n getOrdinal(category: OrdinalRawValue): OrdinalNumber {\n // @ts-ignore\n return this._getOrCreateMap().get(category);\n }\n\n /**\n * @return The ordinal. If not found, return NaN.\n */\n parseAndCollect(category: OrdinalRawValue | OrdinalNumber): OrdinalNumber {\n let index;\n const needCollect = this._needCollect;\n\n // The value of category dim can be the index of the given category set.\n // This feature is only supported when !needCollect, because we should\n // consider a common case: a value is 2017, which is a number but is\n // expected to be tread as a category. This case usually happen in dataset,\n // where it happent to be no need of the index feature.\n if (typeof category !== 'string' && !needCollect) {\n return category;\n }\n\n // Optimize for the scenario:\n // category is ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // Notice, if a dataset dimension provide categroies, usually echarts\n // should remove duplication except user tell echarts dont do that\n // (set axis.deduplication = false), because echarts do not know whether\n // the values in the category dimension has duplication (consider the\n // parallel-aqi example)\n if (needCollect && !this._deduplication) {\n index = this.categories.length;\n this.categories[index] = category;\n return index;\n }\n\n const map = this._getOrCreateMap();\n // @ts-ignore\n index = map.get(category);\n\n if (index == null) {\n if (needCollect) {\n index = this.categories.length;\n this.categories[index] = category;\n // @ts-ignore\n map.set(category, index);\n }\n else {\n index = NaN;\n }\n }\n\n return index;\n }\n\n // Consider big data, do not create map until needed.\n private _getOrCreateMap(): HashMap {\n return this._map || (\n this._map = createHashMap(this.categories)\n );\n }\n}\n\nfunction getName(obj: any): string {\n if (isObject(obj) && obj.value != null) {\n return obj.value;\n }\n else {\n return obj + '';\n }\n}\n\nexport default OrdinalMeta;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as numberUtil from '../util/number';\n\nconst roundNumber = numberUtil.round;\n\ntype intervalScaleNiceTicksResult = {\n interval: number,\n intervalPrecision: number,\n niceTickExtent: [number, number]\n};\n/**\n * @param extent Both extent[0] and extent[1] should be valid number.\n * Should be extent[0] < extent[1].\n * @param splitNumber splitNumber should be >= 1.\n */\nexport function intervalScaleNiceTicks(\n extent: [number, number],\n splitNumber: number,\n minInterval?: number,\n maxInterval?: number\n): intervalScaleNiceTicksResult {\n\n const result = {} as intervalScaleNiceTicksResult;\n\n const span = extent[1] - extent[0];\n let interval = result.interval = numberUtil.nice(span / splitNumber, true);\n if (minInterval != null && interval < minInterval) {\n interval = result.interval = minInterval;\n }\n if (maxInterval != null && interval > maxInterval) {\n interval = result.interval = maxInterval;\n }\n // Tow more digital for tick.\n const precision = result.intervalPrecision = getIntervalPrecision(interval);\n // Niced extent inside original extent\n const niceTickExtent = result.niceTickExtent = [\n roundNumber(Math.ceil(extent[0] / interval) * interval, precision),\n roundNumber(Math.floor(extent[1] / interval) * interval, precision)\n ];\n\n fixExtent(niceTickExtent, extent);\n\n return result;\n}\n\n/**\n * @return interval precision\n */\nexport function getIntervalPrecision(interval: number): number {\n // Tow more digital for tick.\n return numberUtil.getPrecision(interval) + 2;\n}\n\nfunction clamp(\n niceTickExtent: [number, number], idx: number, extent: [number, number]\n): void {\n niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);\n}\n\n// In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.\nexport function fixExtent(\n niceTickExtent: [number, number], extent: [number, number]\n): void {\n !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);\n !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);\n clamp(niceTickExtent, 0, extent);\n clamp(niceTickExtent, 1, extent);\n if (niceTickExtent[0] > niceTickExtent[1]) {\n niceTickExtent[0] = niceTickExtent[1];\n }\n}\n\nexport function contain(val: number, extent: [number, number]): boolean {\n return val >= extent[0] && val <= extent[1];\n}\n\nexport function normalize(val: number, extent: [number, number]): number {\n if (extent[1] === extent[0]) {\n return 0.5;\n }\n return (val - extent[0]) / (extent[1] - extent[0]);\n}\n\nexport function scale(val: number, extent: [number, number]): number {\n return val * (extent[1] - extent[0]) + extent[0];\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Linear continuous scale\n * http://en.wikipedia.org/wiki/Level_of_measurement\n */\n\n// FIXME only one data\n\nimport Scale from './Scale';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport SeriesData from '../data/SeriesData';\nimport * as scaleHelper from './helper';\nimport {\n OrdinalRawValue,\n OrdinalNumber,\n DimensionLoose,\n OrdinalSortInfo,\n OrdinalScaleTick,\n ScaleTick\n} from '../util/types';\nimport { AxisBaseOption } from '../coord/axisCommonTypes';\nimport { isArray, map, isObject } from 'zrender/src/core/util';\n\ntype OrdinalScaleSetting = {\n ordinalMeta?: OrdinalMeta | AxisBaseOption['data'];\n extent?: [number, number];\n};\n\nclass OrdinalScale extends Scale {\n\n static type = 'ordinal';\n readonly type = 'ordinal';\n\n private _ordinalMeta: OrdinalMeta;\n\n /**\n * For example:\n * Given original ordinal data:\n * ```js\n * option = {\n * xAxis: {\n * // Their raw ordinal numbers are:\n * // 0 1 2 3 4 5\n * data: ['a', 'b', 'c', 'd', 'e', 'f']\n * },\n * yAxis: {}\n * series: {\n * type: 'bar',\n * data: [\n * ['d', 110], // ordinalNumber: 3\n * ['c', 660], // ordinalNumber: 2\n * ['f', 220], // ordinalNumber: 5\n * ['e', 550] // ordinalNumber: 4\n * ],\n * realtimeSort: true\n * }\n * };\n * ```\n * After realtime sorted (order by yValue desc):\n * ```js\n * _ordinalNumbersByTick: [\n * 2, // tick: 0, yValue: 660\n * 5, // tick: 1, yValue: 220\n * 3, // tick: 2, yValue: 110\n * 4, // tick: 3, yValue: 550\n * 0, // tick: 4, yValue: -\n * 1, // tick: 5, yValue: -\n * ],\n * _ticksByOrdinalNumber: [\n * 4, // ordinalNumber: 0, yValue: -\n * 5, // ordinalNumber: 1, yValue: -\n * 0, // ordinalNumber: 2, yValue: 660\n * 2, // ordinalNumber: 3, yValue: 110\n * 3, // ordinalNumber: 4, yValue: 550\n * 1, // ordinalNumber: 5, yValue: 220\n * ]\n * ```\n * The index of this array is from `0` to `ordinalMeta.categories.length`.\n *\n * @see `Ordinal['getRawOrdinalNumber']`\n * @see `OrdinalSortInfo`\n */\n private _ordinalNumbersByTick: OrdinalNumber[];\n\n /**\n * This is the inverted map of `_ordinalNumbersByTick`.\n * The index of this array is from `0` to `ordinalMeta.categories.length`.\n *\n * @see `Ordinal['_ordinalNumbersByTick']`\n * @see `Ordinal['_getTickNumber']`\n * @see `OrdinalSortInfo`\n */\n private _ticksByOrdinalNumber: number[];\n\n\n constructor(setting?: OrdinalScaleSetting) {\n super(setting);\n\n let ordinalMeta = this.getSetting('ordinalMeta');\n // Caution: Should not use instanceof, consider ec-extensions using\n // import approach to get OrdinalMeta class.\n if (!ordinalMeta) {\n ordinalMeta = new OrdinalMeta({});\n }\n if (isArray(ordinalMeta)) {\n ordinalMeta = new OrdinalMeta({\n categories: map(ordinalMeta, item => (isObject(item) ? item.value : item))\n });\n }\n this._ordinalMeta = ordinalMeta as OrdinalMeta;\n this._extent = this.getSetting('extent') || [0, ordinalMeta.categories.length - 1];\n }\n\n parse(val: OrdinalRawValue | OrdinalNumber): OrdinalNumber {\n return typeof val === 'string'\n ? this._ordinalMeta.getOrdinal(val)\n // val might be float.\n : Math.round(val);\n }\n\n contain(rank: OrdinalRawValue | OrdinalNumber): boolean {\n rank = this.parse(rank);\n return scaleHelper.contain(rank, this._extent)\n && this._ordinalMeta.categories[rank] != null;\n }\n\n /**\n * Normalize given rank or name to linear [0, 1]\n * @param val raw ordinal number.\n * @return normalized value in [0, 1].\n */\n normalize(val: OrdinalRawValue | OrdinalNumber): number {\n val = this._getTickNumber(this.parse(val));\n return scaleHelper.normalize(val, this._extent);\n }\n\n /**\n * @param val normalized value in [0, 1].\n * @return raw ordinal number.\n */\n scale(val: number): OrdinalNumber {\n val = Math.round(scaleHelper.scale(val, this._extent));\n return this.getRawOrdinalNumber(val);\n }\n\n getTicks(): OrdinalScaleTick[] {\n const ticks = [];\n const extent = this._extent;\n let rank = extent[0];\n\n while (rank <= extent[1]) {\n ticks.push({\n value: rank\n });\n rank++;\n }\n\n return ticks;\n }\n\n getMinorTicks(splitNumber: number): number[][] {\n // Not support.\n return;\n }\n\n /**\n * @see `Ordinal['_ordinalNumbersByTick']`\n */\n setSortInfo(info: OrdinalSortInfo): void {\n if (info == null) {\n this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;\n return;\n }\n\n const infoOrdinalNumbers = info.ordinalNumbers;\n const ordinalsByTick = this._ordinalNumbersByTick = [] as OrdinalNumber[];\n const ticksByOrdinal = this._ticksByOrdinalNumber = [] as number[];\n\n // Unnecessary support negative tick in `realtimeSort`.\n let tickNum = 0;\n const allCategoryLen = this._ordinalMeta.categories.length;\n for (const len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) {\n const ordinalNumber = infoOrdinalNumbers[tickNum];\n ordinalsByTick[tickNum] = ordinalNumber;\n ticksByOrdinal[ordinalNumber] = tickNum;\n }\n // Handle that `series.data` only covers part of the `axis.category.data`.\n let unusedOrdinal = 0;\n for (; tickNum < allCategoryLen; ++tickNum) {\n while (ticksByOrdinal[unusedOrdinal] != null) {\n unusedOrdinal++;\n };\n ordinalsByTick.push(unusedOrdinal);\n ticksByOrdinal[unusedOrdinal] = tickNum;\n }\n }\n\n private _getTickNumber(ordinal: OrdinalNumber): number {\n const ticksByOrdinalNumber = this._ticksByOrdinalNumber;\n // also support ordinal out of range of `ordinalMeta.categories.length`,\n // where ordinal numbers are used as tick value directly.\n return (ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length)\n ? ticksByOrdinalNumber[ordinal]\n : ordinal;\n }\n\n /**\n * @usage\n * ```js\n * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);\n *\n * // case0\n * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];\n * // case1\n * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];\n * // case2\n * const coord = axis.dataToCoord(ordinalNumber);\n * ```\n *\n * @param {OrdinalNumber} tickNumber index of display\n */\n getRawOrdinalNumber(tickNumber: number): OrdinalNumber {\n const ordinalNumbersByTick = this._ordinalNumbersByTick;\n // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,\n // where ordinal numbers are used as tick value directly.\n return (ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length)\n ? ordinalNumbersByTick[tickNumber]\n : tickNumber;\n }\n\n /**\n * Get item on tick\n */\n getLabel(tick: ScaleTick): string {\n if (!this.isBlank()) {\n const ordinalNumber = this.getRawOrdinalNumber(tick.value);\n const cateogry = this._ordinalMeta.categories[ordinalNumber];\n // Note that if no data, ordinalMeta.categories is an empty array.\n // Return empty if it's not exist.\n return cateogry == null ? '' : cateogry + '';\n }\n }\n\n count(): number {\n return this._extent[1] - this._extent[0] + 1;\n }\n\n unionExtentFromData(data: SeriesData, dim: DimensionLoose) {\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * @override\n * If value is in extent range\n */\n isInExtentRange(value: OrdinalNumber): boolean {\n value = this._getTickNumber(value);\n return this._extent[0] <= value && this._extent[1] >= value;\n }\n\n getOrdinalMeta(): OrdinalMeta {\n return this._ordinalMeta;\n }\n\n niceTicks() {}\n\n niceExtent() {}\n\n}\n\nScale.registerClass(OrdinalScale);\n\nexport default OrdinalScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as numberUtil from '../util/number';\nimport * as formatUtil from '../util/format';\nimport Scale from './Scale';\nimport * as helper from './helper';\nimport {ScaleTick, Dictionary} from '../util/types';\n\nconst roundNumber = numberUtil.round;\n\nclass IntervalScale = Dictionary> extends Scale {\n\n static type = 'interval';\n type = 'interval';\n\n // Step is calculated in adjustExtent.\n protected _interval: number = 0;\n protected _niceExtent: [number, number];\n private _intervalPrecision: number = 2;\n\n\n parse(val: number): number {\n return val;\n }\n\n contain(val: number): boolean {\n return helper.contain(val, this._extent);\n }\n\n normalize(val: number): number {\n return helper.normalize(val, this._extent);\n }\n\n scale(val: number): number {\n return helper.scale(val, this._extent);\n }\n\n setExtent(start: number | string, end: number | string): void {\n const thisExtent = this._extent;\n // start,end may be a Number like '25',so...\n if (!isNaN(start as any)) {\n thisExtent[0] = parseFloat(start as any);\n }\n if (!isNaN(end as any)) {\n thisExtent[1] = parseFloat(end as any);\n }\n }\n\n unionExtent(other: [number, number]): void {\n const extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]);\n\n // unionExtent may called by it's sub classes\n this.setExtent(extent[0], extent[1]);\n }\n\n getInterval(): number {\n return this._interval;\n }\n\n setInterval(interval: number): void {\n this._interval = interval;\n // Dropped auto calculated niceExtent and use user setted extent\n // We assume user wan't to set both interval, min, max to get a better result\n this._niceExtent = this._extent.slice() as [number, number];\n\n this._intervalPrecision = helper.getIntervalPrecision(interval);\n }\n\n /**\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent?: boolean): ScaleTick[] {\n const interval = this._interval;\n const extent = this._extent;\n const niceTickExtent = this._niceExtent;\n const intervalPrecision = this._intervalPrecision;\n\n const ticks = [] as ScaleTick[];\n // If interval is 0, return [];\n if (!interval) {\n return ticks;\n }\n\n // Consider this case: using dataZoom toolbox, zoom and zoom.\n const safeLimit = 10000;\n\n if (extent[0] < niceTickExtent[0]) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(niceTickExtent[0] - interval, intervalPrecision)\n });\n }\n else {\n ticks.push({\n value: extent[0]\n });\n }\n }\n let tick = niceTickExtent[0];\n\n while (tick <= niceTickExtent[1]) {\n ticks.push({\n value: tick\n });\n // Avoid rounding error\n tick = roundNumber(tick + interval, intervalPrecision);\n if (tick === ticks[ticks.length - 1].value) {\n // Consider out of safe float point, e.g.,\n // -3711126.9907707 + 2e-10 === -3711126.9907707\n break;\n }\n if (ticks.length > safeLimit) {\n return [];\n }\n }\n // Consider this case: the last item of ticks is smaller\n // than niceTickExtent[1] and niceTickExtent[1] === extent[1].\n const lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1];\n if (extent[1] > lastNiceTick) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(lastNiceTick + interval, intervalPrecision)\n });\n }\n else {\n ticks.push({\n value: extent[1]\n });\n }\n }\n\n return ticks;\n }\n\n getMinorTicks(splitNumber: number): number[][] {\n const ticks = this.getTicks(true);\n const minorTicks = [];\n const extent = this.getExtent();\n\n for (let i = 1; i < ticks.length; i++) {\n const nextTick = ticks[i];\n const prevTick = ticks[i - 1];\n let count = 0;\n const minorTicksGroup = [];\n const interval = nextTick.value - prevTick.value;\n const minorInterval = interval / splitNumber;\n\n while (count < splitNumber - 1) {\n const minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval);\n\n // For the first and last interval. The count may be less than splitNumber.\n if (minorTick > extent[0] && minorTick < extent[1]) {\n minorTicksGroup.push(minorTick);\n }\n count++;\n }\n minorTicks.push(minorTicksGroup);\n }\n\n return minorTicks;\n }\n\n /**\n * @param opt.precision If 'auto', use nice presision.\n * @param opt.pad returns 1.50 but not 1.5 if precision is 2.\n */\n getLabel(\n data: ScaleTick,\n opt?: {\n precision?: 'auto' | number,\n pad?: boolean\n }\n ): string {\n if (data == null) {\n return '';\n }\n\n let precision = opt && opt.precision;\n\n if (precision == null) {\n precision = numberUtil.getPrecision(data.value) || 0;\n }\n else if (precision === 'auto') {\n // Should be more precise then tick.\n precision = this._intervalPrecision;\n }\n\n // (1) If `precision` is set, 12.005 should be display as '12.00500'.\n // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.\n const dataNum = roundNumber(data.value, precision as number, true);\n\n return formatUtil.addCommas(dataNum);\n }\n\n /**\n * @param splitNumber By default `5`.\n */\n niceTicks(splitNumber?: number, minInterval?: number, maxInterval?: number): void {\n splitNumber = splitNumber || 5;\n const extent = this._extent;\n let span = extent[1] - extent[0];\n if (!isFinite(span)) {\n return;\n }\n // User may set axis min 0 and data are all negative\n // FIXME If it needs to reverse ?\n if (span < 0) {\n span = -span;\n extent.reverse();\n }\n\n const result = helper.intervalScaleNiceTicks(\n extent, splitNumber, minInterval, maxInterval\n );\n\n this._intervalPrecision = result.intervalPrecision;\n this._interval = result.interval;\n this._niceExtent = result.niceTickExtent;\n }\n\n niceExtent(opt: {\n splitNumber: number, // By default 5.\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }): void {\n const extent = this._extent;\n // If extent start and end are same, expand them\n if (extent[0] === extent[1]) {\n if (extent[0] !== 0) {\n // Expand extent\n const expandSize = extent[0];\n // In the fowllowing case\n // Axis has been fixed max 100\n // Plus data are all 100 and axis extent are [100, 100].\n // Extend to the both side will cause expanded max is larger than fixed max.\n // So only expand to the smaller side.\n if (!opt.fixMax) {\n extent[1] += expandSize / 2;\n extent[0] -= expandSize / 2;\n }\n else {\n extent[0] -= expandSize / 2;\n }\n }\n else {\n extent[1] = 1;\n }\n }\n const span = extent[1] - extent[0];\n // If there are no data and extent are [Infinity, -Infinity]\n if (!isFinite(span)) {\n extent[0] = 0;\n extent[1] = 1;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n\n // let extent = this._extent;\n const interval = this._interval;\n\n if (!opt.fixMin) {\n extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);\n }\n if (!opt.fixMax) {\n extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);\n }\n }\n\n}\n\nScale.registerClass(IntervalScale);\n\nexport default IntervalScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../util/number';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport BarSeriesModel from '../chart/bar/BarSeries';\nimport Axis2D from '../coord/cartesian/Axis2D';\nimport GlobalModel from '../model/Global';\nimport type Cartesian2D from '../coord/cartesian/Cartesian2D';\nimport { StageHandler, Dictionary } from '../util/types';\n\nconst STACK_PREFIX = '__ec_stack_';\nconst LARGE_BAR_MIN_WIDTH = 0.5;\n\nconst LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\n\nfunction getSeriesStackId(seriesModel: BarSeriesModel): string {\n return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(axis: Axis2D): string {\n return axis.dim + axis.index;\n}\n\ninterface LayoutSeriesInfo {\n bandWidth: number\n barWidth: number\n barMaxWidth: number\n barMinWidth: number\n barGap: number | string\n barCategoryGap: number | string\n axisKey: string\n stackId: string\n}\n\ninterface StackInfo {\n width: number\n maxWidth: number\n minWidth?: number\n}\n\n/**\n * {\n * [coordSysId]: {\n * [stackId]: {bandWidth, offset, width}\n * }\n * }\n */\ntype BarWidthAndOffset = Dictionary>;\n\nexport interface BarGridLayoutOptionForCustomSeries {\n count: number\n\n barWidth?: number\n barMaxWidth?: number\n barMinWidth?: number\n barGap?: number\n barCategoryGap?: number\n}\ninterface LayoutOption extends BarGridLayoutOptionForCustomSeries {\n axis: Axis2D\n}\n\nexport type BarGridLayoutResult = BarWidthAndOffset[string][string][];\n/**\n * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.\n */\nexport function getLayoutOnAxis(opt: LayoutOption): BarGridLayoutResult {\n const params: LayoutSeriesInfo[] = [];\n const baseAxis = opt.axis;\n const axisKey = 'axis0';\n\n if (baseAxis.type !== 'category') {\n return;\n }\n const bandWidth = baseAxis.getBandWidth();\n\n for (let i = 0; i < opt.count || 0; i++) {\n params.push(zrUtil.defaults({\n bandWidth: bandWidth,\n axisKey: axisKey,\n stackId: STACK_PREFIX + i\n }, opt) as LayoutSeriesInfo);\n }\n const widthAndOffsets = doCalBarWidthAndOffset(params);\n\n const result = [];\n for (let i = 0; i < opt.count; i++) {\n const item = widthAndOffsets[axisKey][STACK_PREFIX + i];\n item.offsetCenter = item.offset + item.width / 2;\n result.push(item);\n }\n\n return result;\n}\n\nexport function prepareLayoutBarSeries(seriesType: string, ecModel: GlobalModel): BarSeriesModel[] {\n const seriesModels: BarSeriesModel[] = [];\n ecModel.eachSeriesByType(seriesType, function (seriesModel: BarSeriesModel) {\n // Check series coordinate, do layout for cartesian2d only\n if (isOnCartesian(seriesModel) && !isInLargeMode(seriesModel)) {\n seriesModels.push(seriesModel);\n }\n });\n return seriesModels;\n}\n\n\n/**\n * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent\n * values.\n * This works for time axes, value axes, and log axes.\n * For a single time axis, return value is in the form like\n * {'x_0': [1000000]}.\n * The value of 1000000 is in milliseconds.\n */\nfunction getValueAxesMinGaps(barSeries: BarSeriesModel[]) {\n /**\n * Map from axis.index to values.\n * For a single time axis, axisValues is in the form like\n * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.\n * Items in axisValues[x], e.g. 1495555200000, are time values of all\n * series.\n */\n const axisValues: Dictionary = {};\n zrUtil.each(barSeries, function (seriesModel) {\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n if (baseAxis.type !== 'time' && baseAxis.type !== 'value') {\n return;\n }\n\n const data = seriesModel.getData();\n const key = baseAxis.dim + '_' + baseAxis.index;\n const dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim));\n const storage = data.getStorage();\n for (let i = 0, cnt = storage.count(); i < cnt; ++i) {\n const value = storage.get(dimIdx, i) as number;\n if (!axisValues[key]) {\n // No previous data for the axis\n axisValues[key] = [value];\n }\n else {\n // No value in previous series\n axisValues[key].push(value);\n }\n // Ignore duplicated time values in the same axis\n }\n });\n\n const axisMinGaps: Dictionary = {};\n for (const key in axisValues) {\n if (axisValues.hasOwnProperty(key)) {\n const valuesInAxis = axisValues[key];\n if (valuesInAxis) {\n // Sort axis values into ascending order to calculate gaps\n valuesInAxis.sort(function (a, b) {\n return a - b;\n });\n\n let min = null;\n for (let j = 1; j < valuesInAxis.length; ++j) {\n const delta = valuesInAxis[j] - valuesInAxis[j - 1];\n if (delta > 0) {\n // Ignore 0 delta because they are of the same axis value\n min = min === null ? delta : Math.min(min, delta);\n }\n }\n // Set to null if only have one data\n axisMinGaps[key] = min;\n }\n }\n }\n return axisMinGaps;\n}\n\nexport function makeColumnLayout(barSeries: BarSeriesModel[]) {\n const axisMinGaps = getValueAxesMinGaps(barSeries);\n\n const seriesInfoList: LayoutSeriesInfo[] = [];\n zrUtil.each(barSeries, function (seriesModel) {\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n const axisExtent = baseAxis.getExtent();\n\n let bandWidth;\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n }\n else if (baseAxis.type === 'value' || baseAxis.type === 'time') {\n const key = baseAxis.dim + '_' + baseAxis.index;\n const minGap = axisMinGaps[key];\n const extentSpan = Math.abs(axisExtent[1] - axisExtent[0]);\n const scale = baseAxis.scale.getExtent();\n const scaleSpan = Math.abs(scale[1] - scale[0]);\n bandWidth = minGap\n ? extentSpan / scaleSpan * minGap\n : extentSpan; // When there is only one data value\n }\n else {\n const data = seriesModel.getData();\n bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n }\n\n const barWidth = parsePercent(\n seriesModel.get('barWidth'), bandWidth\n );\n const barMaxWidth = parsePercent(\n seriesModel.get('barMaxWidth'), bandWidth\n );\n const barMinWidth = parsePercent(\n // barMinWidth by default is 1 in cartesian. Because in value axis,\n // the auto-calculated bar width might be less than 1.\n seriesModel.get('barMinWidth') || 1, bandWidth\n );\n const barGap = seriesModel.get('barGap');\n const barCategoryGap = seriesModel.get('barCategoryGap');\n\n seriesInfoList.push({\n bandWidth: bandWidth,\n barWidth: barWidth,\n barMaxWidth: barMaxWidth,\n barMinWidth: barMinWidth,\n barGap: barGap,\n barCategoryGap: barCategoryGap,\n axisKey: getAxisKey(baseAxis),\n stackId: getSeriesStackId(seriesModel)\n });\n });\n\n return doCalBarWidthAndOffset(seriesInfoList);\n}\n\nfunction doCalBarWidthAndOffset(seriesInfoList: LayoutSeriesInfo[]) {\n interface ColumnOnAxisInfo {\n bandWidth: number\n remainedWidth: number\n autoWidthCount: number\n categoryGap: number | string\n gap: number | string\n stacks: Dictionary\n }\n\n // Columns info on each category axis. Key is cartesian name\n const columnsMap: Dictionary = {};\n\n zrUtil.each(seriesInfoList, function (seriesInfo, idx) {\n const axisKey = seriesInfo.axisKey;\n const bandWidth = seriesInfo.bandWidth;\n const columnsOnAxis: ColumnOnAxisInfo = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: null,\n gap: '20%',\n stacks: {}\n };\n const stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n\n const stackId = seriesInfo.stackId;\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n\n // Caution: In a single coordinate system, these barGrid attributes\n // will be shared by series. Consider that they have default values,\n // only the attributes set on the last series will work.\n // Do not change this fact unless there will be a break change.\n\n let barWidth = seriesInfo.barWidth;\n if (barWidth && !stacks[stackId].width) {\n // See #6312, do not restrict width.\n stacks[stackId].width = barWidth;\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n const barMaxWidth = seriesInfo.barMaxWidth;\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n const barMinWidth = seriesInfo.barMinWidth;\n barMinWidth && (stacks[stackId].minWidth = barMinWidth);\n const barGap = seriesInfo.barGap;\n (barGap != null) && (columnsOnAxis.gap = barGap);\n const barCategoryGap = seriesInfo.barCategoryGap;\n (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n\n const result: BarWidthAndOffset = {};\n\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n\n result[coordSysName] = {};\n\n const stacks = columnsOnAxis.stacks;\n const bandWidth = columnsOnAxis.bandWidth;\n let categoryGapPercent = columnsOnAxis.categoryGap;\n if (categoryGapPercent == null) {\n const columnCount = zrUtil.keys(stacks).length;\n // More columns in one group\n // the spaces between group is smaller. Or the column will be too thin.\n categoryGapPercent = Math.max((35 - columnCount * 4), 15) + '%';\n }\n\n const categoryGap = parsePercent(categoryGapPercent, bandWidth);\n const barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n\n let remainedWidth = columnsOnAxis.remainedWidth;\n let autoWidthCount = columnsOnAxis.autoWidthCount;\n let autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n // Find if any auto calculated bar exceeded maxBarWidth\n zrUtil.each(stacks, function (column) {\n const maxWidth = column.maxWidth;\n const minWidth = column.minWidth;\n\n if (!column.width) {\n let finalWidth = autoWidth;\n if (maxWidth && maxWidth < finalWidth) {\n finalWidth = Math.min(maxWidth, remainedWidth);\n }\n // `minWidth` has higher priority. `minWidth` decide that wheter the\n // bar is able to be visible. So `minWidth` should not be restricted\n // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In\n // the extreme cases for `value` axis, bars are allowed to overlap\n // with each other if `minWidth` specified.\n if (minWidth && minWidth > finalWidth) {\n finalWidth = minWidth;\n }\n if (finalWidth !== autoWidth) {\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n }\n else {\n // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as\n // CSS does. Becuase barWidth can be a percent value, where\n // `barMaxWidth` can be used to restrict the final width.\n let finalWidth = column.width;\n if (maxWidth) {\n finalWidth = Math.min(finalWidth, maxWidth);\n }\n // `minWidth` has higher priority, as described above\n if (minWidth) {\n finalWidth = Math.max(finalWidth, minWidth);\n }\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n });\n\n // Recalculate width again\n autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n\n autoWidth = Math.max(autoWidth, 0);\n\n\n let widthSum = 0;\n let lastColumn: StackInfo;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n let offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n bandWidth: bandWidth,\n offset: offset,\n width: column.width\n } as BarWidthAndOffset[string][string];\n\n offset += column.width * (1 + barGapPercent);\n });\n });\n\n return result;\n}\n\n/**\n * @param barWidthAndOffset The result of makeColumnLayout\n * @param seriesModel If not provided, return all.\n * @return {stackId: {offset, width}} or {offset, width} if seriesModel provided.\n */\nfunction retrieveColumnLayout(barWidthAndOffset: BarWidthAndOffset, axis: Axis2D): typeof barWidthAndOffset[string];\n// eslint-disable-next-line max-len\nfunction retrieveColumnLayout(barWidthAndOffset: BarWidthAndOffset, axis: Axis2D, seriesModel: BarSeriesModel): typeof barWidthAndOffset[string][string];\nfunction retrieveColumnLayout(\n barWidthAndOffset: BarWidthAndOffset,\n axis: Axis2D,\n seriesModel?: BarSeriesModel\n) {\n if (barWidthAndOffset && axis) {\n const result = barWidthAndOffset[getAxisKey(axis)];\n if (result != null && seriesModel != null) {\n return result[getSeriesStackId(seriesModel)];\n }\n return result;\n }\n}\nexport {retrieveColumnLayout};\n\nexport function layout(seriesType: string, ecModel: GlobalModel) {\n\n const seriesModels = prepareLayoutBarSeries(seriesType, ecModel);\n const barWidthAndOffset = makeColumnLayout(seriesModels);\n\n const lastStackCoords: Dictionary<{p: number, n: number}[]> = {};\n\n zrUtil.each(seriesModels, function (seriesModel) {\n\n const data = seriesModel.getData();\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const baseAxis = cartesian.getBaseAxis();\n\n const stackId = getSeriesStackId(seriesModel);\n const columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];\n const columnOffset = columnLayoutInfo.offset;\n const columnWidth = columnLayoutInfo.width;\n const valueAxis = cartesian.getOtherAxis(baseAxis);\n\n const barMinHeight = seriesModel.get('barMinHeight') || 0;\n\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n\n data.setLayout({\n bandWidth: columnLayoutInfo.bandWidth,\n offset: columnOffset,\n size: columnWidth\n });\n\n const valueDim = data.mapDimension(valueAxis.dim);\n const baseDim = data.mapDimension(baseAxis.dim);\n const stacked = isDimensionStacked(data, valueDim);\n const isValueAxisH = valueAxis.isHorizontal();\n\n const valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked);\n\n const storage = data.getStorage();\n const valueDimIdx = data.getDimensionIndex(valueDim);\n const baseDimIdx = data.getDimensionIndex(baseDim);\n for (let idx = 0, len = storage.count(); idx < len; idx++) {\n const value = storage.get(valueDimIdx, idx);\n const baseValue = storage.get(baseDimIdx, idx) as number;\n\n const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n';\n let baseCoord = valueAxisStart;\n\n // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n if (stacked) {\n // Only ordinal axis can be stacked.\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart, // Positive stack\n n: valueAxisStart // Negative stack\n };\n }\n // Should also consider #4243\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n let x;\n let y;\n let width;\n let height;\n\n if (isValueAxisH) {\n const coord = cartesian.dataToPoint([value, baseValue]);\n x = baseCoord;\n y = coord[1] + columnOffset;\n width = coord[0] - valueAxisStart;\n height = columnWidth;\n\n if (Math.abs(width) < barMinHeight) {\n width = (width < 0 ? -1 : 1) * barMinHeight;\n }\n // Ignore stack from NaN value\n if (!isNaN(width)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += width);\n }\n }\n else {\n const coord = cartesian.dataToPoint([baseValue, value]);\n x = coord[0] + columnOffset;\n y = baseCoord;\n width = columnWidth;\n height = coord[1] - valueAxisStart;\n\n if (Math.abs(height) < barMinHeight) {\n // Include zero to has a positive bar\n height = (height <= 0 ? -1 : 1) * barMinHeight;\n }\n // Ignore stack from NaN value\n if (!isNaN(height)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += height);\n }\n }\n\n data.setItemLayout(idx, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n }\n\n });\n}\n\n// TODO: Do not support stack in large mode yet.\nexport const largeLayout: StageHandler = {\n\n seriesType: 'bar',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: BarSeriesModel) {\n if (!isOnCartesian(seriesModel) || !isInLargeMode(seriesModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n const cartesian = seriesModel.coordinateSystem as Cartesian2D;\n const coordLayout = cartesian.master.getRect();\n const baseAxis = cartesian.getBaseAxis();\n const valueAxis = cartesian.getOtherAxis(baseAxis);\n const valueDimI = data.getDimensionIndex(data.mapDimension(valueAxis.dim));\n const baseDimI = data.getDimensionIndex(data.mapDimension(baseAxis.dim));\n const valueAxisHorizontal = valueAxis.isHorizontal();\n const valueDimIdx = valueAxisHorizontal ? 0 : 1;\n\n let barWidth = retrieveColumnLayout(\n makeColumnLayout([seriesModel]), baseAxis, seriesModel\n ).width;\n if (!(barWidth > LARGE_BAR_MIN_WIDTH)) { // jshint ignore:line\n barWidth = LARGE_BAR_MIN_WIDTH;\n }\n\n return {\n progress: function (params, data) {\n const count = params.count;\n const largePoints = new LargeArr(count * 2);\n const largeBackgroundPoints = new LargeArr(count * 2);\n const largeDataIndices = new LargeArr(count);\n let dataIndex;\n let coord: number[] = [];\n const valuePair = [];\n let pointsOffset = 0;\n let idxOffset = 0;\n const storage = data.getStorage();\n\n while ((dataIndex = params.next()) != null) {\n valuePair[valueDimIdx] = storage.get(valueDimI, dataIndex);\n valuePair[1 - valueDimIdx] = storage.get(baseDimI, dataIndex);\n\n coord = cartesian.dataToPoint(valuePair, null);\n // Data index might not be in order, depends on `progressiveChunkMode`.\n largeBackgroundPoints[pointsOffset] =\n valueAxisHorizontal ? coordLayout.x + coordLayout.width : coord[0];\n largePoints[pointsOffset++] = coord[0];\n largeBackgroundPoints[pointsOffset] =\n valueAxisHorizontal ? coord[1] : coordLayout.y + coordLayout.height;\n largePoints[pointsOffset++] = coord[1];\n largeDataIndices[idxOffset++] = dataIndex;\n }\n\n data.setLayout({\n largePoints: largePoints,\n largeDataIndices: largeDataIndices,\n largeBackgroundPoints: largeBackgroundPoints,\n barWidth: barWidth,\n valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false),\n backgroundStart: valueAxisHorizontal ? coordLayout.x : coordLayout.y,\n valueAxisHorizontal: valueAxisHorizontal\n });\n }\n };\n }\n};\n\nfunction isOnCartesian(seriesModel: BarSeriesModel) {\n return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d';\n}\n\nfunction isInLargeMode(seriesModel: BarSeriesModel) {\n return seriesModel.pipelineContext && seriesModel.pipelineContext.large;\n}\n\n// See cases in `test/bar-start.html` and `#7412`, `#8747`.\nfunction getValueAxisStart(baseAxis: Axis2D, valueAxis: Axis2D, stacked?: boolean) {\n return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The \"scaleLevels\" was originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment on the definition of \"scaleLevels\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n\n// [About UTC and local time zone]:\n// In most cases, `number.parseDate` will treat input data string as local time\n// (except time zone is specified in time string). And `format.formateTime` returns\n// local time by default. option.useUTC is false by default. This design have\n// concidered these common case:\n// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed\n// in local time by default.\n// (2) By default, the input data string (e.g., '2011-01-02') should be displayed\n// as its original time, without any time difference.\n\nimport * as numberUtil from '../util/number';\nimport {\n ONE_SECOND,\n ONE_MINUTE,\n ONE_HOUR,\n ONE_DAY,\n ONE_YEAR,\n format,\n leveledFormat,\n PrimaryTimeUnit,\n TimeUnit,\n getUnitValue,\n timeUnits,\n fullLeveledFormatter,\n getPrimaryTimeUnit,\n isPrimaryTimeUnit,\n getDefaultFormatPrecisionOfInterval,\n fullYearGetterName,\n monthSetterName,\n fullYearSetterName,\n dateSetterName,\n hoursGetterName,\n hoursSetterName,\n minutesSetterName,\n secondsSetterName,\n millisecondsSetterName,\n monthGetterName,\n dateGetterName,\n minutesGetterName,\n secondsGetterName,\n millisecondsGetterName\n} from '../util/time';\nimport * as scaleHelper from './helper';\nimport IntervalScale from './Interval';\nimport Scale from './Scale';\nimport {TimeScaleTick, ScaleTick} from '../util/types';\nimport {TimeAxisLabelFormatterOption} from '../coord/axisCommonTypes';\nimport { warn } from '../util/log';\nimport { LocaleOption } from '../core/locale';\nimport Model from '../model/Model';\nimport { filter, map } from 'zrender/src/core/util';\n\n// FIXME \u516C\u7528\uFF1F\nconst bisect = function (\n a: [string | number, number][],\n x: number,\n lo: number,\n hi: number\n): number {\n while (lo < hi) {\n const mid = lo + hi >>> 1;\n if (a[mid][1] < x) {\n lo = mid + 1;\n }\n else {\n hi = mid;\n }\n }\n return lo;\n};\n\ntype TimeScaleSetting = {\n locale: Model;\n useUTC: boolean;\n};\n\nclass TimeScale extends IntervalScale {\n\n static type = 'time';\n readonly type = 'time';\n\n _approxInterval: number;\n\n _minLevelUnit: TimeUnit;\n\n constructor(settings?: TimeScaleSetting) {\n super(settings);\n }\n\n /**\n * Get label is mainly for other components like dataZoom, tooltip.\n */\n getLabel(tick: TimeScaleTick): string {\n const useUTC = this.getSetting('useUTC');\n return format(\n tick.value,\n fullLeveledFormatter[\n getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))\n ] || fullLeveledFormatter.second,\n useUTC,\n this.getSetting('locale')\n );\n }\n\n getFormattedLabel(\n tick: TimeScaleTick,\n idx: number,\n labelFormatter: TimeAxisLabelFormatterOption\n ): string {\n const isUTC = this.getSetting('useUTC');\n const lang = this.getSetting('locale');\n return leveledFormat(tick, idx, labelFormatter, lang, isUTC);\n }\n\n /**\n * @override\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent?: boolean): TimeScaleTick[] {\n const interval = this._interval;\n const extent = this._extent;\n\n let ticks = [] as TimeScaleTick[];\n // If interval is 0, return [];\n if (!interval) {\n return ticks;\n }\n\n ticks.push({\n value: extent[0],\n level: 0\n });\n\n const useUTC = this.getSetting('useUTC');\n\n const innerTicks = getIntervalTicks(\n this._minLevelUnit,\n this._approxInterval,\n useUTC,\n extent\n );\n\n ticks = ticks.concat(innerTicks);\n\n ticks.push({\n value: extent[1],\n level: 0\n });\n\n return ticks;\n }\n\n niceExtent(\n opt?: {\n splitNumber?: number,\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }\n ): void {\n const extent = this._extent;\n // If extent start and end are same, expand them\n if (extent[0] === extent[1]) {\n // Expand extent\n extent[0] -= ONE_DAY;\n extent[1] += ONE_DAY;\n }\n // If there are no data and extent are [Infinity, -Infinity]\n if (extent[1] === -Infinity && extent[0] === Infinity) {\n const d = new Date();\n extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());\n extent[0] = extent[1] - ONE_DAY;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n }\n\n niceTicks(approxTickNum: number, minInterval: number, maxInterval: number): void {\n approxTickNum = approxTickNum || 10;\n\n const extent = this._extent;\n const span = extent[1] - extent[0];\n this._approxInterval = span / approxTickNum;\n\n if (minInterval != null && this._approxInterval < minInterval) {\n this._approxInterval = minInterval;\n }\n if (maxInterval != null && this._approxInterval > maxInterval) {\n this._approxInterval = maxInterval;\n }\n\n const scaleIntervalsLen = scaleIntervals.length;\n const idx = Math.min(\n bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen),\n scaleIntervalsLen - 1\n );\n\n // Interval that can be used to calculate ticks\n this._interval = scaleIntervals[idx][1];\n // Min level used when picking ticks from top down.\n // We check one more level to avoid the ticks are to sparse in some case.\n this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0];\n }\n\n parse(val: number | string | Date): number {\n // val might be float.\n return typeof val === 'number' ? val : +numberUtil.parseDate(val);\n }\n\n contain(val: number): boolean {\n return scaleHelper.contain(this.parse(val), this._extent);\n }\n\n normalize(val: number): number {\n return scaleHelper.normalize(this.parse(val), this._extent);\n }\n\n scale(val: number): number {\n return scaleHelper.scale(val, this._extent);\n }\n\n}\n\n\n/**\n * This implementation was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nconst scaleIntervals: [TimeUnit, number][] = [\n // Format interval\n ['second', ONE_SECOND], // 1s\n ['minute', ONE_MINUTE], // 1m\n ['hour', ONE_HOUR], // 1h\n ['quarter-day', ONE_HOUR * 6], // 6h\n ['half-day', ONE_HOUR * 12], // 12h\n ['day', ONE_DAY * 1.2], // 1d\n ['half-week', ONE_DAY * 3.5], // 3.5d\n ['week', ONE_DAY * 7], // 7d\n ['month', ONE_DAY * 31], // 1M\n ['quarter', ONE_DAY * 95], // 3M\n ['half-year', ONE_YEAR / 2], // 6M\n ['year', ONE_YEAR] // 1Y\n];\n\nfunction isUnitValueSame(\n unit: PrimaryTimeUnit,\n valueA: number,\n valueB: number,\n isUTC: boolean\n): boolean {\n const dateA = numberUtil.parseDate(valueA) as any;\n const dateB = numberUtil.parseDate(valueB) as any;\n\n const isSame = (unit: PrimaryTimeUnit) => {\n return getUnitValue(dateA, unit, isUTC)\n === getUnitValue(dateB, unit, isUTC);\n };\n const isSameYear = () => isSame('year');\n // const isSameHalfYear = () => isSameYear() && isSame('half-year');\n // const isSameQuater = () => isSameYear() && isSame('quarter');\n const isSameMonth = () => isSameYear() && isSame('month');\n const isSameDay = () => isSameMonth() && isSame('day');\n // const isSameHalfDay = () => isSameDay() && isSame('half-day');\n const isSameHour = () => isSameDay() && isSame('hour');\n const isSameMinute = () => isSameHour() && isSame('minute');\n const isSameSecond = () => isSameMinute() && isSame('second');\n const isSameMilliSecond = () => isSameSecond() && isSame('millisecond');\n\n switch (unit) {\n case 'year':\n return isSameYear();\n case 'month':\n return isSameMonth();\n case 'day':\n return isSameDay();\n case 'hour':\n return isSameHour();\n case 'minute':\n return isSameMinute();\n case 'second':\n return isSameSecond();\n case 'millisecond':\n return isSameMilliSecond();\n }\n}\n\n// const primaryUnitGetters = {\n// year: fullYearGetterName(),\n// month: monthGetterName(),\n// day: dateGetterName(),\n// hour: hoursGetterName(),\n// minute: minutesGetterName(),\n// second: secondsGetterName(),\n// millisecond: millisecondsGetterName()\n// };\n\n// const primaryUnitUTCGetters = {\n// year: fullYearGetterName(true),\n// month: monthGetterName(true),\n// day: dateGetterName(true),\n// hour: hoursGetterName(true),\n// minute: minutesGetterName(true),\n// second: secondsGetterName(true),\n// millisecond: millisecondsGetterName(true)\n// };\n\n// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {\n// step = step || 1;\n// switch (getPrimaryTimeUnit(unitName)) {\n// case 'year':\n// date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);\n// break;\n// case 'month':\n// date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);\n// break;\n// case 'day':\n// date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);\n// break;\n// case 'hour':\n// date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);\n// break;\n// case 'minute':\n// date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);\n// break;\n// case 'second':\n// date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);\n// break;\n// case 'millisecond':\n// date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);\n// break;\n// }\n// return date.getTime();\n// }\n\n// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];\n// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];\n// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];\n\nfunction getDateInterval(approxInterval: number, daysInMonth: number) {\n approxInterval /= ONE_DAY;\n return approxInterval > 16 ? 16\n // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick betwen two month.\n : approxInterval > 7.5 ? 7 // TODO week 7 or day 8?\n : approxInterval > 3.5 ? 4\n : approxInterval > 1.5 ? 2 : 1;\n}\n\nfunction getMonthInterval(approxInterval: number) {\n const APPROX_ONE_MONTH = 30 * ONE_DAY;\n approxInterval /= APPROX_ONE_MONTH;\n return approxInterval > 6 ? 6\n : approxInterval > 3 ? 3\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getHourInterval(approxInterval: number) {\n approxInterval /= ONE_HOUR;\n return approxInterval > 12 ? 12\n : approxInterval > 6 ? 6\n : approxInterval > 3.5 ? 4\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMinutesAndSecondsInterval(approxInterval: number, isMinutes?: boolean) {\n approxInterval /= isMinutes ? ONE_MINUTE : ONE_SECOND;\n return approxInterval > 30 ? 30\n : approxInterval > 20 ? 20\n : approxInterval > 15 ? 15\n : approxInterval > 10 ? 10\n : approxInterval > 5 ? 5\n : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMillisecondsInterval(approxInterval: number) {\n return numberUtil.nice(approxInterval, true);\n}\n\nfunction getFirstTimestampOfUnit(date: Date, unitName: TimeUnit, isUTC: boolean) {\n const outDate = new Date(date);\n switch (getPrimaryTimeUnit(unitName)) {\n case 'year':\n case 'month':\n outDate[monthSetterName(isUTC)](0);\n case 'day':\n outDate[dateSetterName(isUTC)](1);\n case 'hour':\n outDate[hoursSetterName(isUTC)](0);\n case 'minute':\n outDate[minutesSetterName(isUTC)](0);\n case 'second':\n outDate[secondsSetterName(isUTC)](0);\n outDate[millisecondsSetterName(isUTC)](0);\n }\n return outDate.getTime();\n}\n\nfunction getIntervalTicks(\n bottomUnitName: TimeUnit,\n approxInterval: number,\n isUTC: boolean,\n extent: number[]\n): TimeScaleTick[] {\n const safeLimit = 10000;\n const unitNames = timeUnits;\n // const bottomPrimaryUnitName = getPrimaryTimeUnit(bottomUnitName);\n\n interface InnerTimeTick extends TimeScaleTick {\n notAdd?: boolean\n }\n\n let iter = 0;\n\n function addTicksInSpan(\n interval: number,\n minTimestamp: number, maxTimestamp: number,\n getMethodName: string,\n setMethodName: string,\n isDate: boolean,\n out: InnerTimeTick[]\n ) {\n const date = new Date(minTimestamp) as any;\n let dateTime = minTimestamp;\n let d = date[getMethodName]();\n\n // if (isDate) {\n // d -= 1; // Starts with 0; PENDING\n // }\n\n while (dateTime < maxTimestamp && dateTime <= extent[1]) {\n out.push({\n value: dateTime\n });\n\n d += interval;\n date[setMethodName](d);\n dateTime = date.getTime();\n }\n\n // This extra tick is for calcuating ticks of next level. Will not been added to the final result\n out.push({\n value: dateTime,\n notAdd: true\n });\n }\n\n function addLevelTicks(\n unitName: TimeUnit,\n lastLevelTicks: InnerTimeTick[],\n levelTicks: InnerTimeTick[]\n ) {\n const newAddedTicks: ScaleTick[] = [];\n const isFirstLevel = !lastLevelTicks.length;\n\n if (isUnitValueSame(getPrimaryTimeUnit(unitName), extent[0], extent[1], isUTC)) {\n return;\n }\n\n if (isFirstLevel) {\n lastLevelTicks = [{\n // TODO Optimize. Not include so may ticks.\n value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC)\n }, {\n value: extent[1]\n }];\n }\n\n for (let i = 0; i < lastLevelTicks.length - 1; i++) {\n const startTick = lastLevelTicks[i].value;\n const endTick = lastLevelTicks[i + 1].value;\n if (startTick === endTick) {\n continue;\n }\n\n let interval: number;\n let getterName;\n let setterName;\n let isDate = false;\n\n switch (unitName) {\n case 'year':\n interval = Math.max(1, Math.round(approxInterval / ONE_DAY / 365));\n getterName = fullYearGetterName(isUTC);\n setterName = fullYearSetterName(isUTC);\n break;\n case 'half-year':\n case 'quarter':\n case 'month':\n interval = getMonthInterval(approxInterval);\n getterName = monthGetterName(isUTC);\n setterName = monthSetterName(isUTC);\n break;\n case 'week': // PENDING If week is added. Ignore day.\n case 'half-week':\n case 'day':\n interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16\n getterName = dateGetterName(isUTC);\n setterName = dateSetterName(isUTC);\n isDate = true;\n break;\n case 'half-day':\n case 'quarter-day':\n case 'hour':\n interval = getHourInterval(approxInterval);\n getterName = hoursGetterName(isUTC);\n setterName = hoursSetterName(isUTC);\n break;\n case 'minute':\n interval = getMinutesAndSecondsInterval(approxInterval, true);\n getterName = minutesGetterName(isUTC);\n setterName = minutesSetterName(isUTC);\n break;\n case 'second':\n interval = getMinutesAndSecondsInterval(approxInterval, false);\n getterName = secondsGetterName(isUTC);\n setterName = secondsSetterName(isUTC);\n break;\n case 'millisecond':\n interval = getMillisecondsInterval(approxInterval);\n getterName = millisecondsGetterName(isUTC);\n setterName = millisecondsSetterName(isUTC);\n break;\n }\n\n addTicksInSpan(\n interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks\n );\n\n if (unitName === 'year' && levelTicks.length > 1 && i === 0) {\n // Add nearest years to the left extent.\n levelTicks.unshift({\n value: levelTicks[0].value - interval\n });\n }\n }\n\n for (let i = 0; i < newAddedTicks.length; i++) {\n levelTicks.push(newAddedTicks[i]);\n }\n // newAddedTicks.length && console.log(unitName, newAddedTicks);\n return newAddedTicks;\n }\n\n const levelsTicks: InnerTimeTick[][] = [];\n let currentLevelTicks: InnerTimeTick[] = [];\n\n let tickCount = 0;\n let lastLevelTickCount = 0;\n for (let i = 0; i < unitNames.length && iter++ < safeLimit; ++i) {\n const primaryTimeUnit = getPrimaryTimeUnit(unitNames[i]);\n if (!isPrimaryTimeUnit(unitNames[i])) { // TODO\n continue;\n }\n addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks);\n\n const nextPrimaryTimeUnit: PrimaryTimeUnit = unitNames[i + 1] ? getPrimaryTimeUnit(unitNames[i + 1]) : null;\n if (primaryTimeUnit !== nextPrimaryTimeUnit) {\n if (currentLevelTicks.length) {\n lastLevelTickCount = tickCount;\n // Remove the duplicate so the tick count can be precisely.\n currentLevelTicks.sort((a, b) => a.value - b.value);\n const levelTicksRemoveDuplicated = [];\n for (let i = 0; i < currentLevelTicks.length; ++i) {\n const tickValue = currentLevelTicks[i].value;\n if (i === 0 || currentLevelTicks[i - 1].value !== tickValue) {\n levelTicksRemoveDuplicated.push(currentLevelTicks[i]);\n if (tickValue >= extent[0] && tickValue <= extent[1]) {\n tickCount++;\n }\n }\n }\n\n const targetTickNum = (extent[1] - extent[0]) / approxInterval;\n // Added too much in this level and not too less in last level\n if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) {\n break;\n }\n\n // Only treat primary time unit as one level.\n levelsTicks.push(levelTicksRemoveDuplicated);\n\n if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) {\n break;\n }\n\n }\n // Reset if next unitName is primary\n currentLevelTicks = [];\n }\n\n }\n\n if (__DEV__) {\n if (iter >= safeLimit) {\n warn('Exceed safe limit.');\n }\n }\n\n const levelsTicksInExtent = filter(map(levelsTicks, levelTicks => {\n return filter(levelTicks, tick => tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd);\n }), levelTicks => levelTicks.length > 0);\n\n const ticks: TimeScaleTick[] = [];\n const maxLevel = levelsTicksInExtent.length - 1;\n for (let i = 0; i < levelsTicksInExtent.length; ++i) {\n const levelTicks = levelsTicksInExtent[i];\n for (let k = 0; k < levelTicks.length; ++k) {\n ticks.push({\n value: levelTicks[k].value,\n level: maxLevel - i\n });\n }\n }\n\n ticks.sort((a, b) => a.value - b.value);\n // Remove duplicates\n const result: TimeScaleTick[] = [];\n for (let i = 0; i < ticks.length; ++i) {\n if (i === 0 || ticks[i].value !== ticks[i - 1].value) {\n result.push(ticks[i]);\n }\n }\n\n return result;\n}\n\n\nScale.registerClass(TimeScale);\n\nexport default TimeScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Scale from './Scale';\nimport * as numberUtil from '../util/number';\nimport * as scaleHelper from './helper';\n\n// Use some method of IntervalScale\nimport IntervalScale from './Interval';\nimport SeriesData from '../data/SeriesData';\nimport { DimensionName, ScaleTick } from '../util/types';\n\nconst scaleProto = Scale.prototype;\n// FIXME:TS refactor: not good to call it directly with `this`?\nconst intervalScaleProto = IntervalScale.prototype;\n\nconst roundingErrorFix = numberUtil.round;\n\nconst mathFloor = Math.floor;\nconst mathCeil = Math.ceil;\nconst mathPow = Math.pow;\n\nconst mathLog = Math.log;\n\nclass LogScale extends Scale {\n static type = 'log';\n readonly type = 'log';\n\n base = 10;\n\n private _originalScale: IntervalScale = new IntervalScale();\n\n private _fixMin: boolean;\n private _fixMax: boolean;\n\n // FIXME:TS actually used by `IntervalScale`\n private _interval: number = 0;\n // FIXME:TS actually used by `IntervalScale`\n private _niceExtent: [number, number];\n\n\n /**\n * @param Whether expand the ticks to niced extent.\n */\n getTicks(expandToNicedExtent: boolean): ScaleTick[] {\n const originalScale = this._originalScale;\n const extent = this._extent;\n const originalExtent = originalScale.getExtent();\n\n const ticks = intervalScaleProto.getTicks.call(this, expandToNicedExtent);\n\n return zrUtil.map(ticks, function (tick) {\n const val = tick.value;\n let powVal = numberUtil.round(mathPow(this.base, val));\n\n // Fix #4158\n powVal = (val === extent[0] && this._fixMin)\n ? fixRoundingError(powVal, originalExtent[0])\n : powVal;\n powVal = (val === extent[1] && this._fixMax)\n ? fixRoundingError(powVal, originalExtent[1])\n : powVal;\n\n return {\n value: powVal\n };\n }, this);\n }\n\n setExtent(start: number, end: number): void {\n const base = this.base;\n start = mathLog(start) / mathLog(base);\n end = mathLog(end) / mathLog(base);\n intervalScaleProto.setExtent.call(this, start, end);\n }\n\n /**\n * @return {number} end\n */\n getExtent() {\n const base = this.base;\n const extent = scaleProto.getExtent.call(this);\n extent[0] = mathPow(base, extent[0]);\n extent[1] = mathPow(base, extent[1]);\n\n // Fix #4158\n const originalScale = this._originalScale;\n const originalExtent = originalScale.getExtent();\n this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));\n this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));\n\n return extent;\n }\n\n unionExtent(extent: [number, number]): void {\n this._originalScale.unionExtent(extent);\n\n const base = this.base;\n extent[0] = mathLog(extent[0]) / mathLog(base);\n extent[1] = mathLog(extent[1]) / mathLog(base);\n scaleProto.unionExtent.call(this, extent);\n }\n\n unionExtentFromData(data: SeriesData, dim: DimensionName): void {\n // TODO\n // filter value that <= 0\n this.unionExtent(data.getApproximateExtent(dim));\n }\n\n /**\n * Update interval and extent of intervals for nice ticks\n * @param approxTickNum default 10 Given approx tick number\n */\n niceTicks(approxTickNum: number): void {\n approxTickNum = approxTickNum || 10;\n const extent = this._extent;\n const span = extent[1] - extent[0];\n if (span === Infinity || span <= 0) {\n return;\n }\n\n let interval = numberUtil.quantity(span);\n const err = approxTickNum / span * interval;\n\n // Filter ticks to get closer to the desired count.\n if (err <= 0.5) {\n interval *= 10;\n }\n\n // Interval should be integer\n while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {\n interval *= 10;\n }\n\n const niceExtent = [\n numberUtil.round(mathCeil(extent[0] / interval) * interval),\n numberUtil.round(mathFloor(extent[1] / interval) * interval)\n ] as [number, number];\n\n this._interval = interval;\n this._niceExtent = niceExtent;\n }\n\n niceExtent(opt: {\n splitNumber: number, // By default 5.\n fixMin?: boolean,\n fixMax?: boolean,\n minInterval?: number,\n maxInterval?: number\n }): void {\n intervalScaleProto.niceExtent.call(this, opt);\n\n this._fixMin = opt.fixMin;\n this._fixMax = opt.fixMax;\n }\n\n parse(val: any): number {\n return val;\n }\n\n contain(val: number): boolean {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.contain(val, this._extent);\n }\n\n normalize(val: number): number {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.normalize(val, this._extent);\n }\n\n scale(val: number): number {\n val = scaleHelper.scale(val, this._extent);\n return mathPow(this.base, val);\n }\n\n getMinorTicks: IntervalScale['getMinorTicks'];\n getLabel: IntervalScale['getLabel'];\n}\n\nconst proto = LogScale.prototype;\nproto.getMinorTicks = intervalScaleProto.getMinorTicks;\nproto.getLabel = intervalScaleProto.getLabel;\n\n\nfunction fixRoundingError(val: number, originalVal: number): number {\n return roundingErrorFix(val, numberUtil.getPrecision(originalVal));\n}\n\n\nScale.registerClass(LogScale);\n\nexport default LogScale;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/src/core/util';\nimport Scale from '../scale/Scale';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport { ScaleDataValue } from '../util/types';\n\n\nexport interface ScaleRawExtentResult {\n // `min`/`max` defines data available range, determined by\n // `dataMin`/`dataMax` and explicit specified min max related option.\n // The final extent will be based on the `min`/`max` and may be enlarge\n // a little (say, \"nice strategy\", e.g., niceScale, boundaryGap).\n // Ensure `min`/`max` be finite number or NaN here.\n // (not to be null/undefined) `NaN` means min/max axis is blank.\n readonly min: number;\n readonly max: number;\n // `minFixed`/`maxFixed` marks that `min`/`max` should be used\n // in the final extent without other \"nice strategy\".\n readonly minFixed: boolean;\n readonly maxFixed: boolean;\n // Mark that the axis should be blank.\n readonly isBlank: boolean;\n}\n\nexport class ScaleRawExtentInfo {\n\n private _needCrossZero: boolean;\n private _isOrdinal: boolean;\n private _axisDataLen: number;\n private _boundaryGapInner: number[];\n\n // Accurate raw value get from model.\n private _modelMinRaw: AxisBaseOption['min'];\n private _modelMaxRaw: AxisBaseOption['max'];\n\n // Can be `finite number`/`null`/`undefined`/`NaN`\n private _modelMinNum: number;\n private _modelMaxNum: number;\n\n // Range union by series data on this axis.\n // May be modified if data is filtered.\n private _dataMin: number;\n private _dataMax: number;\n\n // Highest priority if specified.\n private _determinedMin: number;\n private _determinedMax: number;\n\n // Make that the `rawExtentInfo` can not be modified any more.\n readonly frozen: boolean;\n\n\n constructor(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n originalExtent: number[]\n ) {\n this._prepareParams(scale, model, originalExtent);\n }\n\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n private _prepareParams(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n dataExtent: number[]\n ) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n\n const isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = model.getNeedCrossZero && model.getNeedCrossZero();\n\n const modelMinRaw = this._modelMinRaw = model.get('min', true);\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n }\n else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n const modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n }\n else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n }\n else {\n const boundaryGap = model.get('boundaryGap');\n const boundaryGapArr = isArray(boundaryGap)\n ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (__DEV__) {\n console.warn('Boolean type for boundaryGap is only '\n + 'allowed for ordinal axis. Please use string in '\n + 'percentage instead, e.g., \"20%\". Currently, '\n + 'boundaryGap is set to be 0.');\n }\n this._boundaryGapInner = [0, 0];\n }\n else {\n this._boundaryGapInner = [\n parsePercent(boundaryGapArr[0], 1),\n parsePercent(boundaryGapArr[1], 1)\n ];\n }\n }\n }\n\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n calculate(): ScaleRawExtentResult {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n\n const isOrdinal = this._isOrdinal;\n const dataMin = this._dataMin;\n const dataMax = this._dataMax;\n const axisDataLen = this._axisDataLen;\n const boundaryGapInner = this._boundaryGapInner;\n\n const span = !isOrdinal\n ? ((dataMax - dataMin) || Math.abs(dataMin))\n : null;\n\n // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n let min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n let max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum;\n\n // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n let minFixed = min != null;\n let maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal\n ? (axisDataLen ? 0 : NaN)\n : dataMin - boundaryGapInner[0] * span;\n }\n if (max == null) {\n max = isOrdinal\n ? (axisDataLen ? axisDataLen - 1 : NaN)\n : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n\n if (min > max) {\n min = NaN;\n max = NaN;\n }\n\n const isBlank = eqNaN(min)\n || eqNaN(max)\n || (isOrdinal && !axisDataLen);\n\n // If data extent modified, need to recalculated to ensure cross zero.\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0;\n // minFixed = true;\n }\n // Axis is under zero and max is not set\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0;\n // maxFixed = true;\n }\n // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n }\n\n const determinedMin = this._determinedMin;\n const determinedMax = this._determinedMax;\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n }\n\n // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n }\n\n modifyDataMinMax(minMaxName: 'min' | 'max', val: number): void {\n if (__DEV__) {\n assert(!this.frozen);\n }\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n }\n\n setDeterminedMinMax(minMaxName: 'min' | 'max', val: number): void {\n const attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n if (__DEV__) {\n assert(\n !this.frozen\n // Earse them usually means logic flaw.\n && (this[attr] == null)\n );\n }\n this[attr] = val;\n }\n\n freeze() {\n // @ts-ignore\n this.frozen = true;\n }\n}\n\nconst DETERMINED_MIN_MAX_ATTR = { min: '_determinedMin', max: '_determinedMax' } as const;\nconst DATA_MIN_MAX_ATTR = { min: '_dataMin', max: '_dataMax' } as const;\n\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\nexport function ensureScaleRawExtentInfo(\n scale: Scale,\n model: AxisBaseModel,\n // Usually: data extent from all series on this axis.\n originalExtent: number[]\n): ScaleRawExtentInfo {\n\n // Do not permit to recreate.\n let rawExtentInfo = scale.rawExtentInfo;\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent);\n // @ts-ignore\n scale.rawExtentInfo = rawExtentInfo;\n\n return rawExtentInfo;\n}\n\nexport function parseAxisModelMinMax(scale: Scale, minMax: ScaleDataValue): number {\n return minMax == null ? null\n : eqNaN(minMax) ? NaN\n : scale.parse(minMax);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport OrdinalScale from '../scale/Ordinal';\nimport IntervalScale from '../scale/Interval';\nimport Scale from '../scale/Scale';\nimport {\n prepareLayoutBarSeries,\n makeColumnLayout,\n retrieveColumnLayout\n} from '../layout/barGrid';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\n\nimport TimeScale from '../scale/Time';\nimport Model from '../model/Model';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport LogScale from '../scale/Log';\nimport Axis from './Axis';\nimport { AxisBaseOption, TimeAxisLabelFormatterOption } from './axisCommonTypes';\nimport type CartesianAxisModel from './cartesian/AxisModel';\nimport SeriesData from '../data/SeriesData';\nimport { getStackedDimension } from '../data/helper/dataStackHelper';\nimport { Dictionary, DimensionName, ScaleTick, TimeScaleTick } from '../util/types';\nimport { ensureScaleRawExtentInfo } from './scaleRawExtentInfo';\n\n\ntype BarWidthAndOffset = ReturnType;\n\n/**\n * Get axis scale extent before niced.\n * Item of returned array can only be number (including Infinity and NaN).\n *\n * Caution:\n * Precondition of calling this method:\n * The scale extent has been initialized using series data extent via\n * `scale.setExtent` or `scale.unionExtentFromData`;\n */\nexport function getScaleExtent(scale: Scale, model: AxisBaseModel) {\n const scaleType = scale.type;\n const rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n\n scale.setBlank(rawExtentResult.isBlank);\n\n let min = rawExtentResult.min;\n let max = rawExtentResult.max;\n\n // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n const ecModel = model.ecModel;\n if (ecModel && (scaleType === 'time' /*|| scaleType === 'interval' */)) {\n const barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n let isBaseAxisAndHasBarSeries = false;\n\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries = isBaseAxisAndHasBarSeries || seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries) {\n // Calculate placement of bars on axis. TODO should be decoupled\n // with barLayout\n const barWidthAndOffset = makeColumnLayout(barSeriesModels);\n\n // Adjust axis min and max to account for overflow\n const adjustedScale = adjustScaleForOverflow(min, max, model as CartesianAxisModel, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return {\n extent: [min, max],\n // \"fix\" means \"fixed\", the value should not be\n // changed in the subsequent steps.\n fixMin: rawExtentResult.minFixed,\n fixMax: rawExtentResult.maxFixed\n };\n}\n\nfunction adjustScaleForOverflow(\n min: number,\n max: number,\n model: CartesianAxisModel, // Only support cartesian coord yet.\n barWidthAndOffset: BarWidthAndOffset\n) {\n\n // Get Axis Length\n const axisExtent = model.axis.getExtent();\n const axisLength = axisExtent[1] - axisExtent[0];\n\n // Get bars on current base axis and calculate min and max overflow\n const barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);\n if (barsOnCurrentAxis === undefined) {\n return {min: min, max: max};\n }\n\n let minOverflow = Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n minOverflow = Math.min(item.offset, minOverflow);\n });\n let maxOverflow = -Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n maxOverflow = Math.max(item.offset + item.width, maxOverflow);\n });\n minOverflow = Math.abs(minOverflow);\n maxOverflow = Math.abs(maxOverflow);\n const totalOverFlow = minOverflow + maxOverflow;\n\n // Calculate required buffer based on old range and overflow\n const oldRange = max - min;\n const oldRangePercentOfNew = (1 - (minOverflow + maxOverflow) / axisLength);\n const overflowBuffer = ((oldRange / oldRangePercentOfNew) - oldRange);\n\n max += overflowBuffer * (maxOverflow / totalOverFlow);\n min -= overflowBuffer * (minOverflow / totalOverFlow);\n\n return {min: min, max: max};\n}\n\n// Precondition of calling this method:\n// The scale extent has been initailized using series data extent via\n// `scale.setExtent` or `scale.unionExtentFromData`;\nexport function niceScaleExtent(scale: Scale, model: AxisBaseModel) {\n const extentInfo = getScaleExtent(scale, model);\n const extent = extentInfo.extent;\n const splitNumber = model.get('splitNumber');\n\n if (scale instanceof LogScale) {\n scale.base = model.get('logBase');\n }\n\n const scaleType = scale.type;\n scale.setExtent(extent[0], extent[1]);\n scale.niceExtent({\n splitNumber: splitNumber,\n fixMin: extentInfo.fixMin,\n fixMax: extentInfo.fixMax,\n minInterval: (scaleType === 'interval' || scaleType === 'time')\n ? model.get('minInterval') : null,\n maxInterval: (scaleType === 'interval' || scaleType === 'time')\n ? model.get('maxInterval') : null\n });\n\n // If some one specified the min, max. And the default calculated interval\n // is not good enough. He can specify the interval. It is often appeared\n // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n // to be 60.\n // FIXME\n const interval = model.get('interval');\n if (interval != null) {\n (scale as IntervalScale).setInterval && (scale as IntervalScale).setInterval(interval);\n }\n}\n\n/**\n * @param axisType Default retrieve from model.type\n */\nexport function createScaleByModel(model: AxisBaseModel, axisType?: string): Scale {\n axisType = axisType || model.get('type');\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getOrdinalMeta\n ? model.getOrdinalMeta()\n : model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n default:\n // case 'value'/'interval', 'log', or others.\n return new (Scale.getClass(axisType) || IntervalScale)();\n }\n }\n}\n\n/**\n * Check if the axis cross 0\n */\nexport function ifAxisCrossZero(axis: Axis) {\n const dataExtent = axis.scale.getExtent();\n const min = dataExtent[0];\n const max = dataExtent[1];\n return !((min > 0 && max > 0) || (min < 0 && max < 0));\n}\n\n/**\n * @param axis\n * @return Label formatter function.\n * param: {number} tickValue,\n * param: {number} idx, the index in all ticks.\n * If category axis, this param is not required.\n * return: {string} label string.\n */\nexport function makeLabelFormatter(axis: Axis): (tick: ScaleTick, idx?: number) => string {\n const labelFormatter = axis.getLabelModel().get('formatter');\n const categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null;\n\n if (axis.scale.type === 'time') {\n return (function (tpl) {\n return function (tick: ScaleTick, idx: number) {\n return (axis.scale as TimeScale).getFormattedLabel(tick, idx, tpl);\n };\n })(labelFormatter as TimeAxisLabelFormatterOption);\n }\n else if (typeof labelFormatter === 'string') {\n return (function (tpl) {\n return function (tick: ScaleTick) {\n // For category axis, get raw value; for numeric axis,\n // get formatted label like '1,333,444'.\n const label = axis.scale.getLabel(tick);\n const text = tpl.replace('{value}', label != null ? label : '');\n\n return text;\n };\n })(labelFormatter);\n }\n else if (typeof labelFormatter === 'function') {\n return (function (cb) {\n return function (tick: ScaleTick, idx: number) {\n // The original intention of `idx` is \"the index of the tick in all ticks\".\n // But the previous implementation of category axis do not consider the\n // `axisLabel.interval`, which cause that, for example, the `interval` is\n // `1`, then the ticks \"name5\", \"name7\", \"name9\" are displayed, where the\n // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep\n // the definition here for back compatibility.\n if (categoryTickStart != null) {\n idx = tick.value - categoryTickStart;\n }\n return cb(\n getAxisRawValue(axis, tick) as number,\n idx,\n (tick as TimeScaleTick).level != null ? {\n level: (tick as TimeScaleTick).level\n } : null\n );\n };\n })(labelFormatter);\n }\n else {\n return function (tick: ScaleTick) {\n return axis.scale.getLabel(tick);\n };\n }\n}\n\nexport function getAxisRawValue(axis: Axis, tick: ScaleTick): number | string {\n // In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value;\n}\n\n/**\n * @param axis\n * @return Be null/undefined if no labels.\n */\nexport function estimateLabelUnionRect(axis: Axis) {\n const axisModel = axis.model;\n const scale = axis.scale;\n\n if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) {\n return;\n }\n\n let realNumberScaleTicks: ScaleTick[];\n let tickCount;\n const categoryScaleExtent = scale.getExtent();\n\n // Optimize for large category data, avoid call `getTicks()`.\n if (scale instanceof OrdinalScale) {\n tickCount = scale.count();\n }\n else {\n realNumberScaleTicks = scale.getTicks();\n tickCount = realNumberScaleTicks.length;\n }\n\n const axisLabelModel = axis.getLabelModel();\n const labelFormatter = makeLabelFormatter(axis);\n\n let rect;\n let step = 1;\n // Simple optimization for large amount of labels\n if (tickCount > 40) {\n step = Math.ceil(tickCount / 40);\n }\n for (let i = 0; i < tickCount; i += step) {\n const tick = realNumberScaleTicks\n ? realNumberScaleTicks[i]\n : {\n value: categoryScaleExtent[0] + i\n };\n const label = labelFormatter(tick, i);\n const unrotatedSingleRect = axisLabelModel.getTextRect(label);\n const singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);\n\n rect ? rect.union(singleRect) : (rect = singleRect);\n }\n\n return rect;\n}\n\nfunction rotateTextRect(textRect: RectLike, rotate: number) {\n const rotateRadians = rotate * Math.PI / 180;\n const beforeWidth = textRect.width;\n const beforeHeight = textRect.height;\n const afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians))\n + Math.abs(beforeHeight * Math.sin(rotateRadians));\n const afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians))\n + Math.abs(beforeHeight * Math.cos(rotateRadians));\n const rotatedRect = new BoundingRect(textRect.x, textRect.y, afterWidth, afterHeight);\n\n return rotatedRect;\n}\n\n/**\n * @param model axisLabelModel or axisTickModel\n * @return {number|String} Can be null|'auto'|number|function\n */\nexport function getOptionCategoryInterval(model: Model) {\n const interval = model.get('interval');\n return interval == null ? 'auto' : interval;\n}\n\n/**\n * Set `categoryInterval` as 0 implicitly indicates that\n * show all labels reguardless of overlap.\n * @param {Object} axis axisModel.axis\n */\nexport function shouldShowAllLabels(axis: Axis): boolean {\n return axis.type === 'category'\n && getOptionCategoryInterval(axis.getLabelModel()) === 0;\n}\n\nexport function getDataDimensionsOnAxis(data: SeriesData, axisDim: string): DimensionName[] {\n // Remove duplicated dat dimensions caused by `getStackedDimension`.\n const dataDimMap = {} as Dictionary;\n // Currently `mapDimensionsAll` will contain stack result dimension ('__\\0ecstackresult').\n // PENDING: is it reasonable? Do we need to remove the original dim from \"coord dim\" since\n // there has been stacked result dim?\n zrUtil.each(data.mapDimensionsAll(axisDim), function (dataDim) {\n // For example, the extent of the original dimension\n // is [0.1, 0.5], the extent of the `stackResultDimension`\n // is [7, 9], the final extent should NOT include [0.1, 0.5],\n // because there is no graphic corresponding to [0.1, 0.5].\n // See the case in `test/area-stack.html` `main1`, where area line\n // stack needs `yAxis` not start from 0.\n dataDimMap[getStackedDimension(data, dataDim)] = true;\n });\n return zrUtil.keys(dataDimMap);\n}\n\nexport function unionAxisExtentFromData(dataExtent: number[], data: SeriesData, axisDim: string): void {\n if (data) {\n zrUtil.each(getDataDimensionsOnAxis(data, axisDim), function (dim) {\n const seriesExtent = data.getApproximateExtent(dim);\n seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);\n seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);\n });\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../model/Model';\nimport Axis from './Axis';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport { CoordinateSystemHostModel } from './CoordinateSystem';\n\n\ninterface AxisModelCommonMixin extends Pick, 'option'> {\n axis: Axis;\n}\n\nclass AxisModelCommonMixin {\n\n getNeedCrossZero(): boolean {\n const option = this.option;\n return !option.scale;\n }\n\n /**\n * Should be implemented by each axis model if necessary.\n * @return coordinate system model\n */\n getCoordSysModel(): CoordinateSystemHostModel {\n return;\n }\n\n}\n\nexport {AxisModelCommonMixin};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n linearMap,\n round,\n asc,\n getPrecision,\n getPrecisionSafe,\n getPixelPrecision,\n getPercentWithPrecision,\n MAX_SAFE_INTEGER,\n remRadian,\n isRadianAroundZero,\n parseDate,\n quantity,\n quantityExponent,\n nice,\n quantile,\n reformIntervals,\n isNumeric,\n numericToNumber\n} from '../../util/number';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {parseDate as parse} from '../../util/number';\n\nexport {format} from '../../util/time';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n extendShape, extendPath, makePath, makeImage,\n mergePath, resizePath, createIcon,\n updateProps, initProps, getTransform,\n clipPointsByRect, clipRectByRect,\n registerShape, getShapeClass,\n Group,\n Image,\n Text,\n Circle,\n Ellipse,\n Sector,\n Ring,\n Polygon,\n Polyline,\n Rect,\n Line,\n BezierCurve,\n Arc,\n IncrementalDisplayable,\n CompoundPath,\n LinearGradient,\n RadialGradient,\n BoundingRect\n} from '../../util/graphic';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n addCommas,\n toCamelCase,\n normalizeCssArray,\n encodeHTML,\n formatTpl,\n getTooltipMarker,\n formatTime,\n capitalFirst,\n truncateText,\n getTextRect\n} from '../../util/format';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport {\n map, each, indexOf, inherits, reduce, filter,\n bind, curry, isArray, isString, isObject, isFunction,\n extend, defaults, clone, merge\n} from 'zrender/src/core/util';", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as textContain from 'zrender/src/contain/text';\nimport {makeInner} from '../util/model';\nimport {\n makeLabelFormatter,\n getOptionCategoryInterval,\n shouldShowAllLabels\n} from './axisHelper';\nimport Axis from './Axis';\nimport Model from '../model/Model';\nimport { AxisBaseOption } from './axisCommonTypes';\nimport OrdinalScale from '../scale/Ordinal';\nimport { AxisBaseModel } from './AxisBaseModel';\nimport type Axis2D from './cartesian/Axis2D';\n\ntype CacheKey = string | number;\n\ntype InnerTickLabelCache = {\n key: CacheKey\n value: T\n}[];\n\ninterface InnerLabelCachedVal {\n labels: MakeLabelsResultObj[]\n labelCategoryInterval?: number\n}\ninterface InnerTickCachedVal {\n ticks: number[]\n tickCategoryInterval?: number\n}\n\ntype InnerStore = {\n labels: InnerTickLabelCache\n ticks: InnerTickLabelCache\n autoInterval: number\n lastAutoInterval: number\n lastTickCount: number\n axisExtent0: number\n axisExtent1: number\n};\n\nconst inner = makeInner();\n\nexport function createAxisLabels(axis: Axis): {\n labels: {\n formattedLabel: string,\n rawLabel: string,\n tickValue: number\n }[],\n labelCategoryInterval?: number\n} {\n // Only ordinal scale support tick interval\n return axis.type === 'category'\n ? makeCategoryLabels(axis)\n : makeRealNumberLabels(axis);\n}\n\n/**\n * @param {module:echats/coord/Axis} axis\n * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.\n * @return {Object} {\n * ticks: Array.\n * tickCategoryInterval: number\n * }\n */\nexport function createAxisTicks(axis: Axis, tickModel: AxisBaseModel): {\n ticks: number[],\n tickCategoryInterval?: number\n} {\n // Only ordinal scale support tick interval\n return axis.type === 'category'\n ? makeCategoryTicks(axis, tickModel)\n : {ticks: zrUtil.map(axis.scale.getTicks(), tick => tick.value) };\n}\n\nfunction makeCategoryLabels(axis: Axis) {\n const labelModel = axis.getLabelModel();\n const result = makeCategoryLabelsActually(axis, labelModel);\n\n return (!labelModel.get('show') || axis.scale.isBlank())\n ? {labels: [], labelCategoryInterval: result.labelCategoryInterval}\n : result;\n}\n\nfunction makeCategoryLabelsActually(axis: Axis, labelModel: Model) {\n const labelsCache = getListCache(axis, 'labels');\n const optionLabelInterval = getOptionCategoryInterval(labelModel);\n const result = listCacheGet(labelsCache, optionLabelInterval as CacheKey);\n\n if (result) {\n return result;\n }\n\n let labels;\n let numericLabelInterval;\n\n if (zrUtil.isFunction(optionLabelInterval)) {\n labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);\n }\n else {\n numericLabelInterval = optionLabelInterval === 'auto'\n ? makeAutoCategoryInterval(axis) : optionLabelInterval;\n labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);\n }\n\n // Cache to avoid calling interval function repeatly.\n return listCacheSet(labelsCache, optionLabelInterval as CacheKey, {\n labels: labels, labelCategoryInterval: numericLabelInterval\n });\n}\n\nfunction makeCategoryTicks(axis: Axis, tickModel: AxisBaseModel) {\n const ticksCache = getListCache(axis, 'ticks');\n const optionTickInterval = getOptionCategoryInterval(tickModel);\n const result = listCacheGet(ticksCache, optionTickInterval as CacheKey);\n\n if (result) {\n return result;\n }\n\n let ticks: number[];\n let tickCategoryInterval;\n\n // Optimize for the case that large category data and no label displayed,\n // we should not return all ticks.\n if (!tickModel.get('show') || axis.scale.isBlank()) {\n ticks = [];\n }\n\n if (zrUtil.isFunction(optionTickInterval)) {\n ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);\n }\n // Always use label interval by default despite label show. Consider this\n // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows\n // labels. `splitLine` and `axisTick` should be consistent in this case.\n else if (optionTickInterval === 'auto') {\n const labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());\n tickCategoryInterval = labelsResult.labelCategoryInterval;\n ticks = zrUtil.map(labelsResult.labels, function (labelItem) {\n return labelItem.tickValue;\n });\n }\n else {\n tickCategoryInterval = optionTickInterval;\n ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);\n }\n\n // Cache to avoid calling interval function repeatly.\n return listCacheSet(ticksCache, optionTickInterval as CacheKey, {\n ticks: ticks, tickCategoryInterval: tickCategoryInterval\n });\n}\n\nfunction makeRealNumberLabels(axis: Axis) {\n const ticks = axis.scale.getTicks();\n const labelFormatter = makeLabelFormatter(axis);\n return {\n labels: zrUtil.map(ticks, function (tick, idx) {\n return {\n formattedLabel: labelFormatter(tick, idx),\n rawLabel: axis.scale.getLabel(tick),\n tickValue: tick.value\n };\n })\n };\n}\n\n// Large category data calculation is performence sensitive, and ticks and label\n// probably be fetched by multiple times. So we cache the result.\n// axis is created each time during a ec process, so we do not need to clear cache.\nfunction getListCache(axis: Axis, prop: 'ticks'): InnerStore['ticks'];\nfunction getListCache(axis: Axis, prop: 'labels'): InnerStore['labels'];\nfunction getListCache(axis: Axis, prop: 'ticks' | 'labels') {\n // Because key can be funciton, and cache size always be small, we use array cache.\n return inner(axis)[prop] || (inner(axis)[prop] = []);\n}\n\nfunction listCacheGet(cache: InnerTickLabelCache, key: CacheKey): T {\n for (let i = 0; i < cache.length; i++) {\n if (cache[i].key === key) {\n return cache[i].value;\n }\n }\n}\n\nfunction listCacheSet(cache: InnerTickLabelCache, key: CacheKey, value: T): T {\n cache.push({key: key, value: value});\n return value;\n}\n\nfunction makeAutoCategoryInterval(axis: Axis) {\n const result = inner(axis).autoInterval;\n return result != null\n ? result\n : (inner(axis).autoInterval = axis.calculateCategoryInterval());\n}\n\n/**\n * Calculate interval for category axis ticks and labels.\n * To get precise result, at least one of `getRotate` and `isHorizontal`\n * should be implemented in axis.\n */\nexport function calculateCategoryInterval(axis: Axis) {\n const params = fetchAutoCategoryIntervalCalculationParams(axis);\n const labelFormatter = makeLabelFormatter(axis);\n const rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;\n\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n const tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n let step = 1;\n // Simple optimization. Empirical value: tick count should less than 40.\n if (tickCount > 40) {\n step = Math.max(1, Math.floor(tickCount / 40));\n }\n let tickValue = ordinalExtent[0];\n const unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n const unitW = Math.abs(unitSpan * Math.cos(rotation));\n const unitH = Math.abs(unitSpan * Math.sin(rotation));\n\n let maxW = 0;\n let maxH = 0;\n\n // Caution: Performance sensitive for large category data.\n // Consider dataZoom, we should make appropriate step to avoid O(n) loop.\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n let width = 0;\n let height = 0;\n\n // Not precise, do not consider align and vertical align\n // and each distance from axis line yet.\n const rect = textContain.getBoundingRect(\n labelFormatter({ value: tickValue }), params.font, 'center', 'top'\n );\n // Magic number\n width = rect.width * 1.3;\n height = rect.height * 1.3;\n\n // Min size, void long loop.\n maxW = Math.max(maxW, width, 7);\n maxH = Math.max(maxH, height, 7);\n }\n\n let dw = maxW / unitW;\n let dh = maxH / unitH;\n // 0/0 is NaN, 1/0 is Infinity.\n isNaN(dw) && (dw = Infinity);\n isNaN(dh) && (dh = Infinity);\n let interval = Math.max(0, Math.floor(Math.min(dw, dh)));\n\n const cache = inner(axis.model);\n const axisExtent = axis.getExtent();\n const lastAutoInterval = cache.lastAutoInterval;\n const lastTickCount = cache.lastTickCount;\n\n // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n // For example, if all of the axis labels are `a, b, c, d, e, f, g`.\n // The jitter will cause that sometimes the displayed labels are\n // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).\n if (lastAutoInterval != null\n && lastTickCount != null\n && Math.abs(lastAutoInterval - interval) <= 1\n && Math.abs(lastTickCount - tickCount) <= 1\n // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval\n // If the axis change is caused by chart resize, the cache should not\n // be used. Otherwise some hiden labels might not be shown again.\n && cache.axisExtent0 === axisExtent[0]\n && cache.axisExtent1 === axisExtent[1]\n ) {\n interval = lastAutoInterval;\n }\n // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n cache.axisExtent0 = axisExtent[0];\n cache.axisExtent1 = axisExtent[1];\n }\n\n return interval;\n}\n\nfunction fetchAutoCategoryIntervalCalculationParams(axis: Axis) {\n const labelModel = axis.getLabelModel();\n return {\n axisRotate: axis.getRotate\n ? axis.getRotate()\n : ((axis as Axis2D).isHorizontal && !(axis as Axis2D).isHorizontal())\n ? 90\n : 0,\n labelRotate: labelModel.get('rotate') || 0,\n font: labelModel.getFont()\n };\n}\n\ninterface MakeLabelsResultObj {\n formattedLabel: string\n rawLabel: string\n tickValue: number\n}\n\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick: false): MakeLabelsResultObj[];\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick: true): number[];\nfunction makeLabelsByNumericCategoryInterval(axis: Axis, categoryInterval: number, onlyTick?: boolean) {\n const labelFormatter = makeLabelFormatter(axis);\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n const labelModel = axis.getLabelModel();\n const result: (MakeLabelsResultObj | number)[] = [];\n\n // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...\n\n const step = Math.max((categoryInterval || 0) + 1, 1);\n let startTick = ordinalExtent[0];\n const tickCount = ordinalScale.count();\n\n // Calculate start tick based on zero if possible to keep label consistent\n // while zooming and moving while interval > 0. Otherwise the selection\n // of displayable ticks and symbols probably keep changing.\n // 3 is empirical value.\n if (startTick !== 0 && step > 1 && tickCount / step > 2) {\n startTick = Math.round(Math.ceil(startTick / step) * step);\n }\n\n // (1) Only add min max label here but leave overlap checking\n // to render stage, which also ensure the returned list\n // suitable for splitLine and splitArea rendering.\n // (2) Scales except category always contain min max label so\n // do not need to perform this process.\n const showAllLabel = shouldShowAllLabels(axis);\n const includeMinLabel = labelModel.get('showMinLabel') || showAllLabel;\n const includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel;\n\n if (includeMinLabel && startTick !== ordinalExtent[0]) {\n addItem(ordinalExtent[0]);\n }\n\n // Optimize: avoid generating large array by `ordinalScale.getTicks()`.\n let tickValue = startTick;\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n addItem(tickValue);\n }\n\n if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {\n addItem(ordinalExtent[1]);\n }\n\n function addItem(tickValue: number) {\n const tickObj = { value: tickValue };\n result.push(onlyTick\n ? tickValue\n : {\n formattedLabel: labelFormatter(tickObj),\n rawLabel: ordinalScale.getLabel(tickObj),\n tickValue: tickValue\n }\n );\n }\n\n return result;\n}\n\ntype CategoryIntervalCb = (tickVal: number, rawLabel: string) => boolean;\n\n// When interval is function, the result `false` means ignore the tick.\n// It is time consuming for large category data.\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick: false): MakeLabelsResultObj[];\n/* eslint-disable-next-line */\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick: true): number[];\nfunction makeLabelsByCustomizedCategoryInterval(axis: Axis, categoryInterval: CategoryIntervalCb, onlyTick?: boolean) {\n const ordinalScale = axis.scale;\n const labelFormatter = makeLabelFormatter(axis);\n const result: (MakeLabelsResultObj | number)[] = [];\n\n zrUtil.each(ordinalScale.getTicks(), function (tick) {\n const rawLabel = ordinalScale.getLabel(tick);\n const tickValue = tick.value;\n if (categoryInterval(tick.value, rawLabel)) {\n result.push(\n onlyTick\n ? tickValue\n : {\n formattedLabel: labelFormatter(tick),\n rawLabel: rawLabel,\n tickValue: tickValue\n }\n );\n }\n });\n\n return result;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each, map} from 'zrender/src/core/util';\nimport {linearMap, getPixelPrecision, round} from '../util/number';\nimport {\n createAxisTicks,\n createAxisLabels,\n calculateCategoryInterval\n} from './axisTickLabelBuilder';\nimport Scale from '../scale/Scale';\nimport { DimensionName, ScaleDataValue, ScaleTick } from '../util/types';\nimport OrdinalScale from '../scale/Ordinal';\nimport Model from '../model/Model';\nimport { AxisBaseOption, OptionAxisType } from './axisCommonTypes';\nimport { AxisBaseModel } from './AxisBaseModel';\n\nconst NORMALIZED_EXTENT = [0, 1] as [number, number];\n\ninterface TickCoord {\n coord: number;\n // That is `scaleTick.value`.\n tickValue?: ScaleTick['value'];\n}\n\n/**\n * Base class of Axis.\n */\nclass Axis {\n\n /**\n * Axis type\n * - 'category'\n * - 'value'\n * - 'time'\n * - 'log'\n */\n type: OptionAxisType;\n\n // Axis dimension. Such as 'x', 'y', 'z', 'angle', 'radius'.\n readonly dim: DimensionName;\n\n // Axis scale\n scale: Scale;\n\n private _extent: [number, number];\n\n // Injected outside\n model: AxisBaseModel;\n onBand: AxisBaseOption['boundaryGap'] = false;\n inverse: AxisBaseOption['inverse'] = false;\n\n\n constructor(dim: DimensionName, scale: Scale, extent: [number, number]) {\n this.dim = dim;\n this.scale = scale;\n this._extent = extent || [0, 0];\n }\n\n /**\n * If axis extent contain given coord\n */\n contain(coord: number): boolean {\n const extent = this._extent;\n const min = Math.min(extent[0], extent[1]);\n const max = Math.max(extent[0], extent[1]);\n return coord >= min && coord <= max;\n }\n\n /**\n * If axis extent contain given data\n */\n containData(data: ScaleDataValue): boolean {\n return this.scale.contain(data);\n }\n\n /**\n * Get coord extent.\n */\n getExtent(): [number, number] {\n return this._extent.slice() as [number, number];\n }\n\n /**\n * Get precision used for formatting\n */\n getPixelPrecision(dataExtent?: [number, number]): number {\n return getPixelPrecision(\n dataExtent || this.scale.getExtent(),\n this._extent\n );\n }\n\n /**\n * Set coord extent\n */\n setExtent(start: number, end: number): void {\n const extent = this._extent;\n extent[0] = start;\n extent[1] = end;\n }\n\n /**\n * Convert data to coord. Data is the rank if it has an ordinal scale\n */\n dataToCoord(data: ScaleDataValue, clamp?: boolean): number {\n let extent = this._extent;\n const scale = this.scale;\n data = scale.normalize(data);\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice() as [number, number];\n fixExtentWithBands(extent, (scale as OrdinalScale).count());\n }\n\n return linearMap(data, NORMALIZED_EXTENT, extent, clamp);\n }\n\n /**\n * Convert coord to data. Data is the rank if it has an ordinal scale\n */\n coordToData(coord: number, clamp?: boolean): number {\n let extent = this._extent;\n const scale = this.scale;\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice() as [number, number];\n fixExtentWithBands(extent, (scale as OrdinalScale).count());\n }\n\n const t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp);\n\n return this.scale.scale(t);\n }\n\n /**\n * Convert pixel point to data in axis\n */\n pointToData(point: number[], clamp?: boolean): number {\n // Should be implemented in derived class if necessary.\n return;\n }\n\n /**\n * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,\n * `axis.getTicksCoords` considers `onBand`, which is used by\n * `boundaryGap:true` of category axis and splitLine and splitArea.\n * @param opt.tickModel default: axis.model.getModel('axisTick')\n * @param opt.clamp If `true`, the first and the last\n * tick must be at the axis end points. Otherwise, clip ticks\n * that outside the axis extent.\n */\n getTicksCoords(opt?: {\n tickModel?: Model,\n clamp?: boolean\n }): TickCoord[] {\n opt = opt || {};\n\n const tickModel = opt.tickModel || this.getTickModel();\n const result = createAxisTicks(this, tickModel as AxisBaseModel);\n const ticks = result.ticks;\n\n const ticksCoords = map(ticks, function (tickVal) {\n return {\n coord: this.dataToCoord(\n this.scale.type === 'ordinal'\n ? (this.scale as OrdinalScale).getRawOrdinalNumber(tickVal)\n : tickVal\n ),\n tickValue: tickVal\n };\n }, this);\n\n const alignWithLabel = tickModel.get('alignWithLabel');\n\n fixOnBandTicksCoords(\n this, ticksCoords, alignWithLabel, opt.clamp\n );\n\n return ticksCoords;\n }\n\n getMinorTicksCoords(): TickCoord[][] {\n if (this.scale.type === 'ordinal') {\n // Category axis doesn't support minor ticks\n return [];\n }\n\n const minorTickModel = this.model.getModel('minorTick');\n let splitNumber = minorTickModel.get('splitNumber');\n // Protection.\n if (!(splitNumber > 0 && splitNumber < 100)) {\n splitNumber = 5;\n }\n const minorTicks = this.scale.getMinorTicks(splitNumber);\n const minorTicksCoords = map(minorTicks, function (minorTicksGroup) {\n return map(minorTicksGroup, function (minorTick) {\n return {\n coord: this.dataToCoord(minorTick),\n tickValue: minorTick\n };\n }, this);\n }, this);\n return minorTicksCoords;\n }\n\n getViewLabels(): ReturnType['labels'] {\n return createAxisLabels(this).labels;\n }\n\n getLabelModel(): Model {\n return this.model.getModel('axisLabel');\n }\n\n /**\n * Notice here we only get the default tick model. For splitLine\n * or splitArea, we should pass the splitLineModel or splitAreaModel\n * manually when calling `getTicksCoords`.\n * In GL, this method may be overrided to:\n * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`\n */\n getTickModel(): Model {\n return this.model.getModel('axisTick');\n }\n\n /**\n * Get width of band\n */\n getBandWidth(): number {\n const axisExtent = this._extent;\n const dataExtent = this.scale.getExtent();\n\n let len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);\n // Fix #2728, avoid NaN when only one data.\n len === 0 && (len = 1);\n\n const size = Math.abs(axisExtent[1] - axisExtent[0]);\n\n return Math.abs(size) / len;\n }\n\n /**\n * Get axis rotate, by degree.\n */\n getRotate: () => number;\n\n /**\n * Only be called in category axis.\n * Can be overrided, consider other axes like in 3D.\n * @return Auto interval for cateogry axis tick and label\n */\n calculateCategoryInterval(): ReturnType {\n return calculateCategoryInterval(this);\n }\n\n}\n\nfunction fixExtentWithBands(extent: [number, number], nTick: number): void {\n const size = extent[1] - extent[0];\n const len = nTick;\n const margin = size / len / 2;\n extent[0] += margin;\n extent[1] -= margin;\n}\n\n// If axis has labels [1, 2, 3, 4]. Bands on the axis are\n// |---1---|---2---|---3---|---4---|.\n// So the displayed ticks and splitLine/splitArea should between\n// each data item, otherwise cause misleading (e.g., split tow bars\n// of a single data item when there are two bar series).\n// Also consider if tickCategoryInterval > 0 and onBand, ticks and\n// splitLine/spliteArea should layout appropriately corresponding\n// to displayed labels. (So we should not use `getBandWidth` in this\n// case).\nfunction fixOnBandTicksCoords(\n axis: Axis, ticksCoords: TickCoord[], alignWithLabel: boolean, clamp: boolean\n) {\n const ticksLen = ticksCoords.length;\n\n if (!axis.onBand || alignWithLabel || !ticksLen) {\n return;\n }\n\n const axisExtent = axis.getExtent();\n let last;\n let diffSize;\n if (ticksLen === 1) {\n ticksCoords[0].coord = axisExtent[0];\n last = ticksCoords[1] = {coord: axisExtent[0]};\n }\n else {\n const crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;\n const shift = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;\n\n each(ticksCoords, function (ticksItem) {\n ticksItem.coord -= shift / 2;\n });\n\n const dataExtent = axis.scale.getExtent();\n diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue;\n\n last = {coord: ticksCoords[ticksLen - 1].coord + shift * diffSize};\n\n ticksCoords.push(last);\n }\n\n const inverse = axisExtent[0] > axisExtent[1];\n\n // Handling clamp.\n if (littleThan(ticksCoords[0].coord, axisExtent[0])) {\n clamp ? (ticksCoords[0].coord = axisExtent[0]) : ticksCoords.shift();\n }\n if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) {\n ticksCoords.unshift({coord: axisExtent[0]});\n }\n if (littleThan(axisExtent[1], last.coord)) {\n clamp ? (last.coord = axisExtent[1]) : ticksCoords.pop();\n }\n if (clamp && littleThan(last.coord, axisExtent[1])) {\n ticksCoords.push({coord: axisExtent[1]});\n }\n\n function littleThan(a: number, b: number): boolean {\n // Avoid rounding error cause calculated tick coord different with extent.\n // It may cause an extra unecessary tick added.\n a = round(a);\n b = round(b);\n return inverse ? a > b : a < b;\n }\n}\n\nexport default Axis;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// These APIs are for more advanced usages\n// For example extend charts and components, creating graphic elements, formatting.\nimport ComponentModel, { ComponentModelConstructor } from '../model/Component';\nimport ComponentView, { ComponentViewConstructor } from '../view/Component';\nimport SeriesModel, { SeriesModelConstructor } from '../model/Series';\nimport ChartView, { ChartViewConstructor } from '../view/Chart';\n\nimport SeriesData from '../data/SeriesData';\n\n// Provide utilities API in echarts. It will be in echarts namespace.\n// Like echarts.util, echarts.graphic\nexport * as zrender from 'zrender/src/zrender';\n\nexport * as matrix from 'zrender/src/core/matrix';\nexport * as vector from 'zrender/src/core/vector';\nexport * as zrUtil from 'zrender/src/core/util';\nexport * as color from 'zrender/src/tool/color';\nexport {throttle} from '../util/throttle';\nexport * as helper from './api/helper';\n\nexport {use} from '../extension';\n\n//////////////// Helper Methods /////////////////////\nexport {default as parseGeoJSON} from '../coord/geo/parseGeoJson';\nexport {default as parseGeoJson} from '../coord/geo/parseGeoJson';\n\nexport * as number from './api/number';\nexport * as time from './api/time';\nexport * as graphic from './api/graphic';\n\nexport * as format from './api/format';\n\nexport * as util from './api/util';\n\nexport {default as env} from 'zrender/src/core/env';\n\n//////////////// Export for Exension Usage ////////////////\n// export {SeriesData};\nexport {SeriesData as List}; // TODO: Compatitable with exists echarts-gl code\nexport {default as Model} from '../model/Model';\nexport {default as Axis} from '../coord/Axis';\n\nexport {\n ComponentModel,\n ComponentView,\n SeriesModel,\n ChartView\n};\n\n// Only for GL\nexport {brushSingle as innerDrawElementOnCanvas} from 'zrender/src/canvas/graphic';\n\n\n//////////////// Deprecated Extension Methods ////////////////\n\n// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.\n// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:\n// class Bar3DModel extends ComponentModel {}\n// export function install(registers) { regsiters.registerComponentModel(Bar3DModel); }\n// echarts.use(install);\nexport function extendComponentModel(proto: object): ComponentModel {\n const Model = (ComponentModel as ComponentModelConstructor).extend(proto) as any;\n ComponentModel.registerClass(Model);\n return Model;\n}\n\nexport function extendComponentView(proto: object): ChartView {\n const View = (ComponentView as ComponentViewConstructor).extend(proto) as any;\n ComponentView.registerClass(View);\n return View;\n}\n\nexport function extendSeriesModel(proto: object): SeriesModel {\n const Model = (SeriesModel as SeriesModelConstructor).extend(proto) as any;\n SeriesModel.registerClass(Model);\n return Model;\n}\n\nexport function extendChartView(proto: object): ChartView {\n const View = (ChartView as ChartViewConstructor).extend(proto) as any;\n ChartView.registerClass(View);\n return View;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n Point,\n Path,\n Polyline\n} from '../util/graphic';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { normalizeRadian } from 'zrender/src/contain/util';\nimport { cubicProjectPoint, quadraticProjectPoint } from 'zrender/src/core/curve';\nimport Element from 'zrender/src/Element';\nimport { defaults, retrieve2 } from 'zrender/src/core/util';\nimport { LabelLineOption, DisplayState, StatesOptionMixin } from '../util/types';\nimport Model from '../model/Model';\nimport { invert } from 'zrender/src/core/matrix';\nimport * as vector from 'zrender/src/core/vector';\nimport { DISPLAY_STATES, SPECIAL_STATES } from '../util/states';\n\nconst PI2 = Math.PI * 2;\nconst CMD = PathProxy.CMD;\n\nconst DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left'] as const;\n\ntype CandidatePosition = typeof DEFAULT_SEARCH_SPACE[number];\n\nfunction getCandidateAnchor(\n pos: CandidatePosition,\n distance: number,\n rect: RectLike,\n outPt: Point,\n outDir: Point\n) {\n const width = rect.width;\n const height = rect.height;\n switch (pos) {\n case 'top':\n outPt.set(\n rect.x + width / 2,\n rect.y - distance\n );\n outDir.set(0, -1);\n break;\n case 'bottom':\n outPt.set(\n rect.x + width / 2,\n rect.y + height + distance\n );\n outDir.set(0, 1);\n break;\n case 'left':\n outPt.set(\n rect.x - distance,\n rect.y + height / 2\n );\n outDir.set(-1, 0);\n break;\n case 'right':\n outPt.set(\n rect.x + width + distance,\n rect.y + height / 2\n );\n outDir.set(1, 0);\n break;\n }\n}\n\n\nfunction projectPointToArc(\n cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean,\n x: number, y: number, out: number[]\n): number {\n x -= cx;\n y -= cy;\n const d = Math.sqrt(x * x + y * y);\n x /= d;\n y /= d;\n\n // Intersect point.\n const ox = x * r + cx;\n const oy = y * r + cy;\n\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n if (anticlockwise) {\n const tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n let angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n if ((angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)) {\n // Project point is on the arc.\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n const x1 = r * Math.cos(startAngle) + cx;\n const y1 = r * Math.sin(startAngle) + cy;\n\n const x2 = r * Math.cos(endAngle) + cx;\n const y2 = r * Math.sin(endAngle) + cy;\n\n const d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y);\n const d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y);\n\n if (d1 < d2) {\n out[0] = x1;\n out[1] = y1;\n return Math.sqrt(d1);\n }\n else {\n out[0] = x2;\n out[1] = y2;\n return Math.sqrt(d2);\n }\n}\n\nfunction projectPointToLine(\n x1: number, y1: number, x2: number, y2: number, x: number, y: number, out: number[], limitToEnds: boolean\n) {\n const dx = x - x1;\n const dy = y - y1;\n\n let dx1 = x2 - x1;\n let dy1 = y2 - y1;\n\n const lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n dx1 /= lineLen;\n dy1 /= lineLen;\n\n // dot product\n const projectedLen = dx * dx1 + dy * dy1;\n let t = projectedLen / lineLen;\n if (limitToEnds) {\n t = Math.min(Math.max(t, 0), 1);\n }\n t *= lineLen;\n const ox = out[0] = x1 + t * dx1;\n const oy = out[1] = y1 + t * dy1;\n\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nfunction projectPointToRect(\n x1: number, y1: number, width: number, height: number, x: number, y: number, out: number[]\n): number {\n if (width < 0) {\n x1 = x1 + width;\n width = -width;\n }\n if (height < 0) {\n y1 = y1 + height;\n height = -height;\n }\n const x2 = x1 + width;\n const y2 = y1 + height;\n\n const ox = out[0] = Math.min(Math.max(x, x1), x2);\n const oy = out[1] = Math.min(Math.max(y, y1), y2);\n\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nconst tmpPt: number[] = [];\n\nfunction nearestPointOnRect(pt: Point, rect: RectLike, out: Point) {\n const dist = projectPointToRect(\n rect.x, rect.y, rect.width, rect.height,\n pt.x, pt.y, tmpPt\n );\n out.set(tmpPt[0], tmpPt[1]);\n return dist;\n}\n/**\n * Calculate min distance corresponding point.\n * This method won't evaluate if point is in the path.\n */\nfunction nearestPointOnPath(pt: Point, path: PathProxy, out: Point) {\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n let x1;\n let y1;\n\n let minDist = Infinity;\n\n const data = path.data;\n const x = pt.x;\n const y = pt.y;\n\n for (let i = 0; i < data.length;) {\n const cmd = data[i++];\n\n if (i === 1) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n\n let d = minDist;\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n d = cubicProjectPoint(\n xi, yi,\n data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],\n x, y, tmpPt\n );\n\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n d = quadraticProjectPoint(\n xi, yi,\n data[i++], data[i++], data[i], data[i + 1],\n x, y, tmpPt\n );\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n // TODO Arc \u5224\u65AD\u7684\u5F00\u9500\u6BD4\u8F83\u5927\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const theta = data[i++];\n const dTheta = data[i++];\n // TODO Arc \u65CB\u8F6C\n i += 1;\n const anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n // \u4E0D\u662F\u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n if (i <= 1) {\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n }\n // zr \u4F7F\u7528scale\u6765\u6A21\u62DF\u692D\u5706, \u8FD9\u91CC\u4E5F\u5BF9x\u505A\u4E00\u5B9A\u7684\u7F29\u653E\n const _x = (x - cx) * ry / rx + cx;\n d = projectPointToArc(\n cx, cy, ry, theta, theta + dTheta, anticlockwise,\n _x, y, tmpPt\n );\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n const width = data[i++];\n const height = data[i++];\n d = projectPointToRect(x0, y0, width, height, x, y, tmpPt);\n break;\n case CMD.Z:\n d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true);\n\n xi = x0;\n yi = y0;\n break;\n }\n\n if (d < minDist) {\n minDist = d;\n out.set(tmpPt[0], tmpPt[1]);\n }\n }\n\n return minDist;\n}\n\n// Temporal varible for intermediate usage.\nconst pt0 = new Point();\nconst pt1 = new Point();\nconst pt2 = new Point();\nconst dir = new Point();\nconst dir2 = new Point();\n\n/**\n * Calculate a proper guide line based on the label position and graphic element definition\n * @param label\n * @param labelRect\n * @param target\n * @param targetRect\n */\nexport function updateLabelLinePoints(\n target: Element,\n labelLineModel: Model\n) {\n if (!target) {\n return;\n }\n\n const labelLine = target.getTextGuideLine();\n const label = target.getTextContent();\n // Needs to create text guide in each charts.\n if (!(label && labelLine)) {\n return;\n }\n\n const labelGuideConfig = target.textGuideLineConfig || {};\n\n const points = [[0, 0], [0, 0], [0, 0]];\n\n const searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n const labelRect = label.getBoundingRect().clone();\n labelRect.applyTransform(label.getComputedTransform());\n\n let minDist = Infinity;\n const anchorPoint = labelGuideConfig.anchor;\n const targetTransform = target.getComputedTransform();\n const targetInversedTransform = targetTransform && invert([], targetTransform);\n const len = labelLineModel.get('length2') || 0;\n\n if (anchorPoint) {\n pt2.copy(anchorPoint);\n }\n for (let i = 0; i < searchSpace.length; i++) {\n const candidate = searchSpace[i];\n getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n Point.scaleAndAdd(pt1, pt0, dir, len);\n\n // Transform to target coord space.\n pt1.transform(targetInversedTransform);\n\n // Note: getBoundingRect will ensure the `path` being created.\n const boundingRect = target.getBoundingRect();\n const dist = anchorPoint ? anchorPoint.distance(pt1)\n : (target instanceof Path\n ? nearestPointOnPath(pt1, target.path, pt2)\n : nearestPointOnRect(pt1, boundingRect, pt2));\n\n // TODO pt2 is in the path\n if (dist < minDist) {\n minDist = dist;\n // Transform back to global space.\n pt1.transform(targetTransform);\n pt2.transform(targetTransform);\n\n pt2.toArray(points[0]);\n pt1.toArray(points[1]);\n pt0.toArray(points[2]);\n }\n }\n\n limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n\n labelLine.setShape({ points });\n}\n\n// Temporal variable for the limitTurnAngle function\nconst tmpArr: number[] = [];\nconst tmpProjPoint = new Point();\n/**\n * Reduce the line segment attached to the label to limit the turn angle between two segments.\n * @param linePoints\n * @param minTurnAngle Radian of minimum turn angle. 0 - 180\n */\nexport function limitTurnAngle(linePoints: number[][], minTurnAngle: number) {\n if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {\n return;\n }\n minTurnAngle = minTurnAngle / 180 * Math.PI;\n // The line points can be\n // /pt1----pt2 (label)\n // /\n // pt0/\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n\n Point.sub(dir, pt0, pt1);\n Point.sub(dir2, pt2, pt1);\n\n const len1 = dir.len();\n const len2 = dir2.len();\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n\n const angleCos = dir.dot(dir2);\n const minTurnAngleCos = Math.cos(minTurnAngle);\n if (minTurnAngleCos < angleCos) { // Smaller than minTurnAngle\n // Calculate project point of pt0 on pt1-pt2\n const d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle));\n // Limit the new calculated connect point between pt1 and pt2.\n const t = pt2.x !== pt1.x\n ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x)\n : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n }\n else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\n/**\n * Limit the angle of line and the surface\n * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite\n */\nexport function limitSurfaceAngle(linePoints: vector.VectorArray[], surfaceNormal: Point, maxSurfaceAngle: number) {\n if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {\n return;\n }\n maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;\n\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n\n Point.sub(dir, pt1, pt0);\n Point.sub(dir2, pt2, pt1);\n\n const len1 = dir.len();\n const len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n\n const angleCos = dir.dot(surfaceNormal);\n const maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);\n\n if (angleCos < maxSurfaceAngleCos) {\n // Calculate project point of pt0 on pt1-pt2\n const d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n\n const HALF_PI = Math.PI / 2;\n const angle2 = Math.acos(dir2.dot(surfaceNormal));\n const newAngle = HALF_PI + angle2 - maxSurfaceAngle;\n if (newAngle >= HALF_PI) {\n // parallel\n Point.copy(tmpProjPoint, pt2);\n }\n else {\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle));\n // Limit the new calculated connect point between pt1 and pt2.\n const t = pt2.x !== pt1.x\n ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x)\n : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n }\n else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\n\ntype LabelLineModel = Model;\n\nfunction setLabelLineState(\n labelLine: Polyline,\n ignore: boolean,\n stateName: string,\n stateModel: Model\n) {\n const isNormal = stateName === 'normal';\n const stateObj = isNormal ? labelLine : labelLine.ensureState(stateName);\n // Make sure display.\n stateObj.ignore = ignore;\n // Set smooth\n let smooth = stateModel.get('smooth');\n if (smooth && smooth === true) {\n smooth = 0.3;\n }\n stateObj.shape = stateObj.shape || {};\n if (smooth > 0) {\n (stateObj.shape as Polyline['shape']).smooth = smooth as number;\n }\n\n const styleObj = stateModel.getModel('lineStyle').getLineStyle();\n isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;\n}\n\nfunction buildLabelLinePath(path: CanvasRenderingContext2D, shape: Polyline['shape']) {\n const smooth = shape.smooth as number;\n const points = shape.points;\n if (!points) {\n return;\n }\n path.moveTo(points[0][0], points[0][1]);\n if (smooth > 0 && points.length >= 3) {\n const len1 = vector.dist(points[0], points[1]);\n const len2 = vector.dist(points[1], points[2]);\n if (!len1 || !len2) {\n path.lineTo(points[1][0], points[1][1]);\n path.lineTo(points[2][0], points[2][1]);\n return;\n }\n\n const moveLen = Math.min(len1, len2) * smooth;\n\n const midPoint0 = vector.lerp([], points[1], points[0], moveLen / len1);\n const midPoint2 = vector.lerp([], points[1], points[2], moveLen / len2);\n\n const midPoint1 = vector.lerp([], midPoint0, midPoint2, 0.5);\n path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);\n path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);\n }\n else {\n for (let i = 1; i < points.length; i++) {\n path.lineTo(points[i][0], points[i][1]);\n }\n }\n}\n\n/**\n * Create a label line if necessary and set it's style.\n */\nexport function setLabelLineStyle(\n targetEl: Element,\n statesModels: Record,\n defaultStyle?: Polyline['style']\n) {\n let labelLine = targetEl.getTextGuideLine();\n const label = targetEl.getTextContent();\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n return;\n }\n\n const normalModel = statesModels.normal;\n const showNormal = normalModel.get('show');\n const labelIgnoreNormal = label.ignore;\n\n for (let i = 0; i < DISPLAY_STATES.length; i++) {\n const stateName = DISPLAY_STATES[i];\n const stateModel = statesModels[stateName];\n const isNormal = stateName === 'normal';\n if (stateModel) {\n const stateShow = stateModel.get('show');\n const isLabelIgnored = isNormal\n ? labelIgnoreNormal\n : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !retrieve2(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n const stateObj = isNormal ? labelLine : (labelLine && labelLine.states.normal);\n if (stateObj) {\n stateObj.ignore = true;\n }\n continue;\n }\n // Create labelLine if not exists\n if (!labelLine) {\n labelLine = new Polyline();\n targetEl.setTextGuideLine(labelLine);\n // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n }\n\n // Use same state proxy.\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n defaults(labelLine.style, defaultStyle);\n // Not fill.\n labelLine.style.fill = null;\n\n const showAbove = normalModel.get('showAbove');\n\n const labelLineConfig = (targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {});\n labelLineConfig.showAbove = showAbove || false;\n\n // Custom the buildPath.\n labelLine.buildPath = buildLabelLinePath;\n }\n}\n\n\nexport function getLabelLineStatesModels(\n itemModel: Model & Partial>>,\n labelLineName?: LabelName\n): Record {\n labelLineName = (labelLineName || 'labelLine') as LabelName;\n const statesModels = {\n normal: itemModel.getModel(labelLineName) as LabelLineModel\n } as Record;\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);\n }\n return statesModels;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ZRText from 'zrender/src/graphic/Text';\nimport { LabelLayoutOption } from '../util/types';\nimport { BoundingRect, OrientedBoundingRect, Polyline } from '../util/graphic';\nimport type Element from 'zrender/src/Element';\n\ninterface LabelLayoutListPrepareInput {\n label: ZRText\n labelLine: Polyline\n computedLayoutOption: LabelLayoutOption\n priority: number\n defaultAttr: {\n ignore: boolean\n labelGuideIgnore: boolean\n }\n}\n\nexport interface LabelLayoutInfo {\n label: ZRText\n labelLine: Polyline\n priority: number\n rect: BoundingRect // Global rect\n localRect: BoundingRect\n obb?: OrientedBoundingRect // Only available when axisAligned is true\n axisAligned: boolean\n layoutOption: LabelLayoutOption\n defaultAttr: {\n ignore: boolean\n labelGuideIgnore: boolean\n }\n transform: number[]\n}\n\nexport function prepareLayoutList(input: LabelLayoutListPrepareInput[]): LabelLayoutInfo[] {\n const list: LabelLayoutInfo[] = [];\n\n for (let i = 0; i < input.length; i++) {\n const rawItem = input[i];\n if (rawItem.defaultAttr.ignore) {\n continue;\n }\n\n const label = rawItem.label;\n const transform = label.getComputedTransform();\n // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el.\n const localRect = label.getBoundingRect();\n const isAxisAligned = !transform || (transform[1] < 1e-5 && transform[2] < 1e-5);\n\n const minMargin = label.style.margin || 0;\n const globalRect = localRect.clone();\n globalRect.applyTransform(transform);\n globalRect.x -= minMargin / 2;\n globalRect.y -= minMargin / 2;\n globalRect.width += minMargin;\n globalRect.height += minMargin;\n\n const obb = isAxisAligned ? new OrientedBoundingRect(localRect, transform) : null;\n\n list.push({\n label,\n labelLine: rawItem.labelLine,\n rect: globalRect,\n localRect,\n obb,\n priority: rawItem.priority,\n defaultAttr: rawItem.defaultAttr,\n layoutOption: rawItem.computedLayoutOption,\n axisAligned: isAxisAligned,\n transform\n });\n }\n return list;\n}\n\nfunction shiftLayout(\n list: Pick[],\n xyDim: 'x' | 'y',\n sizeDim: 'width' | 'height',\n minBound: number,\n maxBound: number,\n balanceShift: boolean\n) {\n const len = list.length;\n\n if (len < 2) {\n return;\n }\n\n list.sort(function (a, b) {\n return a.rect[xyDim] - b.rect[xyDim];\n });\n\n let lastPos = 0;\n let delta;\n let adjusted = false;\n\n const shifts = [];\n let totalShifts = 0;\n for (let i = 0; i < len; i++) {\n const item = list[i];\n const rect = item.rect;\n delta = rect[xyDim] - lastPos;\n if (delta < 0) {\n // shiftForward(i, len, -delta);\n rect[xyDim] -= delta;\n item.label[xyDim] -= delta;\n adjusted = true;\n }\n const shift = Math.max(-delta, 0);\n shifts.push(shift);\n totalShifts += shift;\n\n lastPos = rect[xyDim] + rect[sizeDim];\n }\n if (totalShifts > 0 && balanceShift) {\n // Shift back to make the distribution more equally.\n shiftList(-totalShifts / len, 0, len);\n }\n\n // TODO bleedMargin?\n const first = list[0];\n const last = list[len - 1];\n let minGap: number;\n let maxGap: number;\n updateMinMaxGap();\n\n // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.\n minGap < 0 && squeezeGaps(-minGap, 0.8);\n maxGap < 0 && squeezeGaps(maxGap, 0.8);\n updateMinMaxGap();\n takeBoundsGap(minGap, maxGap, 1);\n takeBoundsGap(maxGap, minGap, -1);\n\n // Handle bailout when there is not enough space.\n updateMinMaxGap();\n\n if (minGap < 0) {\n squeezeWhenBailout(-minGap);\n }\n if (maxGap < 0) {\n squeezeWhenBailout(maxGap);\n }\n\n function updateMinMaxGap() {\n minGap = first.rect[xyDim] - minBound;\n maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];\n }\n\n function takeBoundsGap(gapThisBound: number, gapOtherBound: number, moveDir: 1 | -1) {\n if (gapThisBound < 0) {\n // Move from other gap if can.\n const moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);\n if (moveFromMaxGap > 0) {\n shiftList(moveFromMaxGap * moveDir, 0, len);\n const remained = moveFromMaxGap + gapThisBound;\n if (remained < 0) {\n squeezeGaps(-remained * moveDir, 1);\n }\n }\n else {\n squeezeGaps(-gapThisBound * moveDir, 1);\n }\n }\n }\n\n function shiftList(delta: number, start: number, end: number) {\n if (delta !== 0) {\n adjusted = true;\n }\n for (let i = start; i < end; i++) {\n const item = list[i];\n const rect = item.rect;\n rect[xyDim] += delta;\n item.label[xyDim] += delta;\n }\n }\n\n // Squeeze gaps if the labels exceed margin.\n function squeezeGaps(delta: number, maxSqeezePercent: number) {\n const gaps: number[] = [];\n let totalGaps = 0;\n for (let i = 1; i < len; i++) {\n const prevItemRect = list[i - 1].rect;\n const gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);\n gaps.push(gap);\n totalGaps += gap;\n }\n if (!totalGaps) {\n return;\n }\n\n const squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);\n\n if (delta > 0) {\n for (let i = 0; i < len - 1; i++) {\n // Distribute the shift delta to all gaps.\n const movement = gaps[i] * squeezePercent;\n // Forward\n shiftList(movement, 0, i + 1);\n }\n }\n else {\n // Backward\n for (let i = len - 1; i > 0; i--) {\n // Distribute the shift delta to all gaps.\n const movement = gaps[i - 1] * squeezePercent;\n shiftList(-movement, i, len);\n }\n }\n }\n\n /**\n * Squeeze to allow overlap if there is no more space available.\n * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.\n */\n function squeezeWhenBailout(delta: number) {\n const dir = delta < 0 ? -1 : 1;\n delta = Math.abs(delta);\n const moveForEachLabel = Math.ceil(delta / (len - 1));\n\n for (let i = 0; i < len - 1; i++) {\n if (dir > 0) {\n // Forward\n shiftList(moveForEachLabel, 0, i + 1);\n }\n else {\n // Backward\n shiftList(-moveForEachLabel, len - i - 1, len);\n }\n\n delta -= moveForEachLabel;\n\n if (delta <= 0) {\n return;\n }\n }\n }\n\n return adjusted;\n}\n\n/**\n * Adjust labels on x direction to avoid overlap.\n */\nexport function shiftLayoutOnX(\n list: Pick[],\n leftBound: number,\n rightBound: number,\n // If average the shifts on all labels and add them to 0\n // TODO: Not sure if should enable it.\n // Pros: The angle of lines will distribute more equally\n // Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.\n balanceShift?: boolean\n): boolean {\n return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift);\n}\n\n/**\n * Adjust labels on y direction to avoid overlap.\n */\nexport function shiftLayoutOnY(\n list: Pick[],\n topBound: number,\n bottomBound: number,\n // If average the shifts on all labels and add them to 0\n balanceShift?: boolean\n): boolean {\n return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);\n}\n\nexport function hideOverlap(labelList: LabelLayoutInfo[]) {\n const displayedLabels: LabelLayoutInfo[] = [];\n\n // TODO, render overflow visible first, put in the displayedLabels.\n labelList.sort(function (a, b) {\n return b.priority - a.priority;\n });\n\n const globalRect = new BoundingRect(0, 0, 0, 0);\n\n function hideEl(el: Element) {\n if (!el.ignore) {\n // Show on emphasis.\n const emphasisState = el.ensureState('emphasis');\n if (emphasisState.ignore == null) {\n emphasisState.ignore = false;\n }\n }\n\n el.ignore = true;\n }\n\n for (let i = 0; i < labelList.length; i++) {\n const labelItem = labelList[i];\n const isAxisAligned = labelItem.axisAligned;\n const localRect = labelItem.localRect;\n const transform = labelItem.transform;\n const label = labelItem.label;\n const labelLine = labelItem.labelLine;\n globalRect.copy(labelItem.rect);\n // Add a threshold because layout may be aligned precisely.\n globalRect.width -= 0.1;\n globalRect.height -= 0.1;\n globalRect.x += 0.05;\n globalRect.y += 0.05;\n\n let obb = labelItem.obb;\n let overlapped = false;\n for (let j = 0; j < displayedLabels.length; j++) {\n const existsTextCfg = displayedLabels[j];\n // Fast rejection.\n if (!globalRect.intersect(existsTextCfg.rect)) {\n continue;\n }\n\n if (isAxisAligned && existsTextCfg.axisAligned) { // Is overlapped\n overlapped = true;\n break;\n }\n\n if (!existsTextCfg.obb) { // If self is not axis aligned. But other is.\n existsTextCfg.obb = new OrientedBoundingRect(existsTextCfg.localRect, existsTextCfg.transform);\n }\n\n if (!obb) { // If self is axis aligned. But other is not.\n obb = new OrientedBoundingRect(localRect, transform);\n }\n\n if (obb.intersect(existsTextCfg.obb)) {\n overlapped = true;\n break;\n }\n }\n\n // TODO Callback to determine if this overlap should be handled?\n if (overlapped) {\n hideEl(label);\n labelLine && hideEl(labelLine);\n }\n else {\n label.attr('ignore', labelItem.defaultAttr.ignore);\n labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore);\n\n displayedLabels.push(labelItem);\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO: move labels out of viewport.\n\nimport {\n Text as ZRText,\n BoundingRect,\n Polyline,\n updateProps,\n initProps,\n isElementRemoved\n} from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {\n ZRTextAlign,\n ZRTextVerticalAlign,\n LabelLayoutOption,\n LabelLayoutOptionCallback,\n LabelLayoutOptionCallbackParams,\n LabelLineOption,\n Dictionary,\n ECElement,\n SeriesDataType\n} from '../util/types';\nimport { parsePercent } from '../util/number';\nimport ChartView from '../view/Chart';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport Transformable from 'zrender/src/core/Transformable';\nimport { updateLabelLinePoints, setLabelLineStyle, getLabelLineStatesModels } from './labelGuideHelper';\nimport SeriesModel from '../model/Series';\nimport { makeInner } from '../util/model';\nimport { retrieve2, each, keys, isFunction, filter, indexOf } from 'zrender/src/core/util';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport Model from '../model/Model';\nimport { prepareLayoutList, hideOverlap, shiftLayoutOnX, shiftLayoutOnY } from './labelLayoutHelper';\nimport { labelInner, animateLabelValue } from './labelStyle';\n\ninterface LabelDesc {\n label: ZRText\n labelLine: Polyline\n\n seriesModel: SeriesModel\n // Can be null if label doesn't represent any data.\n dataIndex?: number\n // Can be null if label doesn't represent any data.\n dataType?: SeriesDataType\n\n layoutOption: LabelLayoutOptionCallback | LabelLayoutOption\n computedLayoutOption: LabelLayoutOption\n\n hostRect: RectLike\n rect: RectLike\n\n priority: number\n\n defaultAttr: SavedLabelAttr\n}\n\ninterface SavedLabelAttr {\n ignore: boolean\n labelGuideIgnore: boolean\n\n x: number\n y: number\n scaleX: number\n scaleY: number\n rotation: number\n\n style: {\n align: ZRTextAlign\n verticalAlign: ZRTextVerticalAlign\n width: number\n height: number\n fontSize: number | string\n\n x: number\n y: number\n }\n\n cursor: string\n\n // Configuration in attached element\n attachedPos: ElementTextConfig['position']\n attachedRot: ElementTextConfig['rotation']\n\n}\n\nfunction cloneArr(points: number[][]) {\n if (points) {\n const newPoints = [];\n for (let i = 0; i < points.length; i++) {\n newPoints.push(points[i].slice());\n }\n return newPoints;\n }\n}\n\nfunction prepareLayoutCallbackParams(labelItem: LabelDesc, hostEl?: Element): LabelLayoutOptionCallbackParams {\n const label = labelItem.label;\n const labelLine = hostEl && hostEl.getTextGuideLine();\n return {\n dataIndex: labelItem.dataIndex,\n dataType: labelItem.dataType,\n seriesIndex: labelItem.seriesModel.seriesIndex,\n text: labelItem.label.style.text,\n rect: labelItem.hostRect,\n labelRect: labelItem.rect,\n // x: labelAttr.x,\n // y: labelAttr.y,\n align: label.style.align,\n verticalAlign: label.style.verticalAlign,\n labelLinePoints: cloneArr(labelLine && labelLine.shape.points)\n };\n}\n\nconst LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize'] as const;\n\nconst dummyTransformable = new Transformable();\n\nconst labelLayoutInnerStore = makeInner<{\n oldLayout: {\n x: number,\n y: number,\n rotation: number\n },\n oldLayoutSelect?: {\n x?: number,\n y?: number,\n rotation?: number\n },\n oldLayoutEmphasis?: {\n x?: number,\n y?: number,\n rotation?: number\n },\n\n needsUpdateLabelLine?: boolean\n}, ZRText>();\n\nconst labelLineAnimationStore = makeInner<{\n oldLayout: {\n points: number[][]\n }\n}, Polyline>();\n\ntype LabelLineOptionMixin = {\n labelLine: LabelLineOption,\n emphasis: { labelLine: LabelLineOption }\n};\n\nfunction extendWithKeys(target: Dictionary, source: Dictionary, keys: string[]) {\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n if (source[key] != null) {\n target[key] = source[key];\n }\n }\n}\n\nconst LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation'];\n\nclass LabelManager {\n\n private _labelList: LabelDesc[] = [];\n private _chartViewList: ChartView[] = [];\n\n constructor() {}\n\n clearLabels() {\n this._labelList = [];\n this._chartViewList = [];\n }\n\n /**\n * Add label to manager\n */\n private _addLabel(\n dataIndex: number | null | undefined,\n dataType: SeriesDataType | null | undefined,\n seriesModel: SeriesModel,\n label: ZRText,\n layoutOption: LabelDesc['layoutOption']\n ) {\n const labelStyle = label.style;\n const hostEl = label.__hostTarget;\n const textConfig = hostEl.textConfig || {};\n\n // TODO: If label is in other state.\n const labelTransform = label.getComputedTransform();\n const labelRect = label.getBoundingRect().plain();\n BoundingRect.applyTransform(labelRect, labelRect, labelTransform);\n\n if (labelTransform) {\n dummyTransformable.setLocalTransform(labelTransform);\n }\n else {\n // Identity transform.\n dummyTransformable.x = dummyTransformable.y = dummyTransformable.rotation =\n dummyTransformable.originX = dummyTransformable.originY = 0;\n dummyTransformable.scaleX = dummyTransformable.scaleY = 1;\n }\n\n const host = label.__hostTarget;\n let hostRect;\n if (host) {\n hostRect = host.getBoundingRect().plain();\n const transform = host.getComputedTransform();\n BoundingRect.applyTransform(hostRect, hostRect, transform);\n }\n\n const labelGuide = hostRect && host.getTextGuideLine();\n\n this._labelList.push({\n label,\n labelLine: labelGuide,\n\n seriesModel,\n dataIndex,\n dataType,\n\n layoutOption,\n computedLayoutOption: null,\n\n rect: labelRect,\n\n hostRect,\n\n // Label with lower priority will be hidden when overlapped\n // Use rect size as default priority\n priority: hostRect ? hostRect.width * hostRect.height : 0,\n\n // Save default label attributes.\n // For restore if developers want get back to default value in callback.\n defaultAttr: {\n ignore: label.ignore,\n labelGuideIgnore: labelGuide && labelGuide.ignore,\n\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY,\n rotation: dummyTransformable.rotation,\n\n style: {\n x: labelStyle.x,\n y: labelStyle.y,\n\n align: labelStyle.align,\n verticalAlign: labelStyle.verticalAlign,\n width: labelStyle.width,\n height: labelStyle.height,\n\n fontSize: labelStyle.fontSize\n },\n\n cursor: label.cursor,\n\n attachedPos: textConfig.position,\n attachedRot: textConfig.rotation\n }\n });\n }\n\n addLabelsOfSeries(chartView: ChartView) {\n this._chartViewList.push(chartView);\n\n const seriesModel = chartView.__model;\n\n const layoutOption = seriesModel.get('labelLayout');\n\n /**\n * Ignore layouting if it's not specified anything.\n */\n if (!(isFunction(layoutOption) || keys(layoutOption).length)) {\n return;\n }\n\n chartView.group.traverse((child) => {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n // Only support label being hosted on graphic elements.\n const textEl = child.getTextContent();\n const ecData = getECData(child);\n // Can only attach the text on the element with dataIndex\n if (textEl && !(textEl as ECElement).disableLabelLayout) {\n this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption);\n }\n });\n }\n\n updateLayoutConfig(api: ExtensionAPI) {\n const width = api.getWidth();\n const height = api.getHeight();\n\n function createDragHandler(el: Element, labelLineModel: Model) {\n return function () {\n updateLabelLinePoints(el, labelLineModel);\n };\n }\n for (let i = 0; i < this._labelList.length; i++) {\n const labelItem = this._labelList[i];\n const label = labelItem.label;\n const hostEl = label.__hostTarget;\n const defaultLabelAttr = labelItem.defaultAttr;\n let layoutOption;\n // TODO A global layout option?\n if (typeof labelItem.layoutOption === 'function') {\n layoutOption = labelItem.layoutOption(\n prepareLayoutCallbackParams(labelItem, hostEl)\n );\n }\n else {\n layoutOption = labelItem.layoutOption;\n }\n\n layoutOption = layoutOption || {};\n labelItem.computedLayoutOption = layoutOption;\n\n const degreeToRadian = Math.PI / 180;\n // TODO hostEl should always exists.\n // Or label should not have parent because the x, y is all in global space.\n if (hostEl) {\n hostEl.setTextConfig({\n // Force to set local false.\n local: false,\n // Ignore position and rotation config on the host el if x or y is changed.\n position: (layoutOption.x != null || layoutOption.y != null)\n ? null : defaultLabelAttr.attachedPos,\n // Ignore rotation config on the host el if rotation is changed.\n rotation: layoutOption.rotate != null\n ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot,\n offset: [layoutOption.dx || 0, layoutOption.dy || 0]\n });\n }\n let needsUpdateLabelLine = false;\n if (layoutOption.x != null) {\n // TODO width of chart view.\n label.x = parsePercent(layoutOption.x, width);\n label.setStyle('x', 0); // Ignore movement in style. TODO: origin.\n needsUpdateLabelLine = true;\n }\n else {\n label.x = defaultLabelAttr.x;\n label.setStyle('x', defaultLabelAttr.style.x);\n }\n\n if (layoutOption.y != null) {\n // TODO height of chart view.\n label.y = parsePercent(layoutOption.y, height);\n label.setStyle('y', 0); // Ignore movement in style.\n needsUpdateLabelLine = true;\n }\n else {\n label.y = defaultLabelAttr.y;\n label.setStyle('y', defaultLabelAttr.style.y);\n }\n\n if (layoutOption.labelLinePoints) {\n const guideLine = hostEl.getTextGuideLine();\n if (guideLine) {\n guideLine.setShape({ points: layoutOption.labelLinePoints });\n // Not update\n needsUpdateLabelLine = false;\n }\n }\n\n const labelLayoutStore = labelLayoutInnerStore(label);\n labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine;\n\n label.rotation = layoutOption.rotate != null\n ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation;\n\n label.scaleX = defaultLabelAttr.scaleX;\n label.scaleY = defaultLabelAttr.scaleY;\n\n for (let k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) {\n const key = LABEL_OPTION_TO_STYLE_KEYS[k];\n label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]);\n }\n\n\n if (layoutOption.draggable) {\n label.draggable = true;\n label.cursor = 'move';\n if (hostEl) {\n let hostModel: Model =\n labelItem.seriesModel as SeriesModel;\n if (labelItem.dataIndex != null) {\n const data = labelItem.seriesModel.getData(labelItem.dataType);\n hostModel = data.getItemModel(labelItem.dataIndex);\n }\n label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine')));\n }\n }\n else {\n // TODO Other drag functions?\n label.off('drag');\n label.cursor = defaultLabelAttr.cursor;\n }\n }\n }\n\n layout(api: ExtensionAPI) {\n const width = api.getWidth();\n const height = api.getHeight();\n\n const labelList = prepareLayoutList(this._labelList);\n const labelsNeedsAdjustOnX = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftX';\n });\n const labelsNeedsAdjustOnY = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftY';\n });\n\n shiftLayoutOnX(labelsNeedsAdjustOnX, 0, width);\n shiftLayoutOnY(labelsNeedsAdjustOnY, 0, height);\n\n const labelsNeedsHideOverlap = filter(labelList, function (item) {\n return item.layoutOption.hideOverlap;\n });\n\n hideOverlap(labelsNeedsHideOverlap);\n }\n\n /**\n * Process all labels. Not only labels with layoutOption.\n */\n processLabelsOverall() {\n each(this._chartViewList, (chartView) => {\n const seriesModel = chartView.__model;\n const ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate;\n const animationEnabled = seriesModel.isAnimationEnabled();\n\n chartView.group.traverse((child) => {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n let needsUpdateLabelLine = !ignoreLabelLineUpdate;\n const label = child.getTextContent();\n if (!needsUpdateLabelLine && label) {\n needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine;\n }\n if (needsUpdateLabelLine) {\n this._updateLabelLine(child, seriesModel);\n }\n\n if (animationEnabled) {\n this._animateLabels(child, seriesModel);\n }\n });\n });\n }\n\n private _updateLabelLine(el: Element, seriesModel: SeriesModel) {\n // Only support label being hosted on graphic elements.\n const textEl = el.getTextContent();\n // Update label line style.\n const ecData = getECData(el);\n const dataIndex = ecData.dataIndex;\n\n // Only support labelLine on the labels represent data.\n if (textEl && dataIndex != null) {\n const data = seriesModel.getData(ecData.dataType);\n const itemModel = data.getItemModel(dataIndex);\n\n const defaultStyle: PathStyleProps = {};\n const visualStyle = data.getItemVisual(dataIndex, 'style');\n const visualType = data.getVisual('drawType');\n // Default to be same with main color\n defaultStyle.stroke = visualStyle[visualType];\n\n const labelLineModel = itemModel.getModel('labelLine');\n\n setLabelLineStyle(el, getLabelLineStatesModels(itemModel), defaultStyle);\n\n updateLabelLinePoints(el, labelLineModel);\n }\n }\n\n private _animateLabels(el: Element, seriesModel: SeriesModel) {\n const textEl = el.getTextContent();\n const guideLine = el.getTextGuideLine();\n // Animate\n if (textEl\n && !textEl.ignore\n && !textEl.invisible\n && !(el as ECElement).disableLabelAnimation\n && !isElementRemoved(el)\n ) {\n const layoutStore = labelLayoutInnerStore(textEl);\n const oldLayout = layoutStore.oldLayout;\n const ecData = getECData(el);\n const dataIndex = ecData.dataIndex;\n const newProps = {\n x: textEl.x,\n y: textEl.y,\n rotation: textEl.rotation\n };\n const data = seriesModel.getData(ecData.dataType);\n\n if (!oldLayout) {\n textEl.attr(newProps);\n // Disable fade in animation if value animation is enabled.\n if (!labelInner(textEl).valueAnimation) {\n const oldOpacity = retrieve2(textEl.style.opacity, 1);\n // Fade in animation\n textEl.style.opacity = 0;\n initProps(textEl, {\n style: { opacity: oldOpacity }\n }, seriesModel, dataIndex);\n }\n }\n else {\n textEl.attr(oldLayout);\n\n // Make sure the animation from is in the right status.\n const prevStates = el.prevStates;\n if (prevStates) {\n if (indexOf(prevStates, 'select') >= 0) {\n textEl.attr(layoutStore.oldLayoutSelect);\n }\n if (indexOf(prevStates, 'emphasis') >= 0) {\n textEl.attr(layoutStore.oldLayoutEmphasis);\n }\n }\n updateProps(textEl, newProps, seriesModel, dataIndex);\n }\n layoutStore.oldLayout = newProps;\n\n if (textEl.states.select) {\n const layoutSelect = layoutStore.oldLayoutSelect = {};\n extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS);\n }\n\n if (textEl.states.emphasis) {\n const layoutEmphasis = layoutStore.oldLayoutEmphasis = {};\n extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS);\n }\n\n animateLabelValue(textEl, dataIndex, data, seriesModel, seriesModel);\n }\n\n if (guideLine && !guideLine.ignore && !guideLine.invisible) {\n const layoutStore = labelLineAnimationStore(guideLine);\n const oldLayout = layoutStore.oldLayout;\n const newLayout = { points: guideLine.shape.points };\n if (!oldLayout) {\n guideLine.setShape(newLayout);\n guideLine.style.strokePercent = 0;\n initProps(guideLine, {\n style: { strokePercent: 1 }\n }, seriesModel);\n }\n else {\n guideLine.attr({ shape: oldLayout });\n updateProps(guideLine, {\n shape: newLayout\n }, seriesModel);\n }\n\n layoutStore.oldLayout = newLayout;\n }\n }\n}\n\n\nexport default LabelManager;", "import { EChartsExtensionInstallRegisters } from '../extension';\nimport { makeInner } from '../util/model';\nimport LabelManager from './LabelManager';\nimport ExtensionAPI from '../core/ExtensionAPI';\n\nconst getLabelManager = makeInner<{ labelManager: LabelManager }, ExtensionAPI>();\nexport function installLabelLayout(registers: EChartsExtensionInstallRegisters) {\n registers.registerUpdateLifecycle('series:beforeupdate', (ecModel, api, params) => {\n // TODO api provide an namespace that can save stuff per instance\n let labelManager = getLabelManager(api).labelManager;\n if (!labelManager) {\n labelManager = getLabelManager(api).labelManager = new LabelManager();\n }\n labelManager.clearLabels();\n });\n\n registers.registerUpdateLifecycle('series:layoutlabels', (ecModel, api, params) => {\n const labelManager = getLabelManager(api).labelManager;\n\n params.updatedSeries.forEach(series => {\n labelManager.addLabelsOfSeries(api.getViewOfSeriesModel(series));\n });\n labelManager.updateLayoutConfig(api);\n labelManager.layout(api);\n labelManager.processLabelsOverall();\n });\n}", "import { parse } from '../tool/color';\n\nexport function createElement(name: string) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\nexport function normalizeColor(color: string): { color: string, opacity: number } {\n let opacity;\n if (!color || color === 'transparent') {\n color = 'none';\n }\n else if (typeof color === 'string' && color.indexOf('rgba') > -1) {\n const arr = parse(color);\n if (arr) {\n color = 'rgb(' + arr[0] + ',' + arr[1] + ',' + arr[2] + ')';\n opacity = arr[3];\n }\n }\n return {\n color,\n opacity: opacity == null ? 1 : opacity\n };\n}\n", "// Myers' Diff Algorithm\n// Modified from https://github.com/kpdecker/jsdiff/blob/master/src/diff/base.js\ntype EqualFunc = (a: T, b: T) => boolean;\n\ntype DiffComponent = {\n count: number\n added: boolean\n removed: boolean,\n indices: number[]\n}\n\ntype DiffPath = {\n components: DiffComponent[],\n newPos: number\n}\n\nfunction diff(oldArr: T[], newArr: T[], equals: EqualFunc): DiffComponent[] {\n if (!equals) {\n equals = function (a, b) {\n return a === b;\n };\n }\n\n oldArr = oldArr.slice();\n newArr = newArr.slice();\n // Allow subclasses to massage the input prior to running\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath: DiffPath[] = [{ newPos: -1, components: [] }];\n\n // Seed editLength = 0, i.e. the content starts with the same values\n var oldPos = extractCommon(bestPath[0], newArr, oldArr, 0, equals);\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n var indices = [];\n for (let i = 0; i < newArr.length; i++) {\n indices.push(i);\n }\n // Identity per the equality and tokenizer\n return [{\n indices: indices,\n count: newArr.length,\n added: false,\n removed: false\n }];\n }\n\n // Main worker method. checks all permutations of a given edit length for acceptance.\n function execEditLength() {\n for (let diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath;\n var addPath = bestPath[diagonalPath - 1];\n var removePath = bestPath[diagonalPath + 1];\n var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen;\n var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {\n basePath = clonePath(removePath);\n pushComponent(basePath.components, false, true);\n }\n else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n pushComponent(basePath.components, true, false);\n }\n\n oldPos = extractCommon(basePath, newArr, oldArr, diagonalPath, equals);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n return buildValues(basePath.components);\n }\n else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }\n\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n if (ret) {\n return ret;\n }\n }\n}\n\nfunction extractCommon(basePath: DiffPath, newArr: T[], oldArr: T[], diagonalPath: number, equals: EqualFunc) {\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var newPos = basePath.newPos;\n var oldPos = newPos - diagonalPath;\n var commonCount = 0;\n\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && equals(newArr[newPos + 1], oldArr[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n\n if (commonCount) {\n basePath.components.push({\n count: commonCount,\n added: false,\n removed: false,\n indices: []\n });\n }\n\n basePath.newPos = newPos;\n return oldPos;\n}\n\nfunction pushComponent(components: DiffComponent[], added: boolean, removed: boolean) {\n var last = components[components.length - 1];\n if (last && last.added === added && last.removed === removed) {\n // We need to clone here as the component clone operation is just\n // as shallow array clone\n components[components.length - 1] = {\n count: last.count + 1,\n added,\n removed,\n indices: []\n };\n }\n else {\n components.push({\n count: 1,\n added,\n removed,\n indices: []\n });\n }\n}\n\nfunction buildValues(components: DiffComponent[]) {\n var componentPos = 0;\n var componentLen = components.length;\n var newPos = 0;\n var oldPos = 0;\n\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n if (!component.removed) {\n var indices = [];\n for (let i = newPos; i < newPos + component.count; i++) {\n indices.push(i);\n }\n component.indices = indices;\n newPos += component.count;\n // Common case\n if (!component.added) {\n oldPos += component.count;\n }\n }\n else {\n for (let i = oldPos; i < oldPos + component.count; i++) {\n component.indices.push(i);\n }\n oldPos += component.count;\n }\n }\n\n return components;\n}\n\nfunction clonePath(path: DiffPath) {\n return { newPos: path.newPos, components: path.components.slice(0) };\n}\n\nexport default function arrayDiff (oldArr: T[], newArr: T[], equal?: EqualFunc): DiffComponent[] {\n return diff(oldArr, newArr, equal);\n}", "// TODO\n// 1. shadow\n// 2. Image: sx, sy, sw, sh\n\nimport {createElement, normalizeColor} from './core';\nimport { PathRebuilder } from '../core/PathProxy';\nimport * as matrix from '../core/matrix';\nimport Path, { PathStyleProps } from '../graphic/Path';\nimport ZRImage, { ImageStyleProps } from '../graphic/Image';\nimport { DEFAULT_FONT, getLineHeight } from '../contain/text';\nimport TSpan, { TSpanStyleProps } from '../graphic/TSpan';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\n\nexport interface SVGProxy {\n brush(el: T): void\n}\n\nconst NONE = 'none';\nconst mathRound = Math.round;\nconst mathSin = Math.sin;\nconst mathCos = Math.cos;\nconst PI = Math.PI;\nconst PI2 = Math.PI * 2;\nconst degree = 180 / PI;\n\nconst EPSILON = 1e-4;\n\ntype AllStyleOption = PathStyleProps | TSpanStyleProps | ImageStyleProps;\n\nfunction round3(val: number) {\n return mathRound(val * 1e3) / 1e3;\n}\nfunction round4(val: number) {\n return mathRound(val * 1e4) / 1e4;\n}\n\nfunction isAroundZero(val: number) {\n return val < EPSILON && val > -EPSILON;\n}\n\nfunction pathHasFill(style: AllStyleOption): style is PathStyleProps {\n const fill = (style as PathStyleProps).fill;\n return fill != null && fill !== NONE;\n}\n\nfunction pathHasStroke(style: AllStyleOption): style is PathStyleProps {\n const stroke = (style as PathStyleProps).stroke;\n return stroke != null && stroke !== NONE;\n}\n\nfunction setTransform(svgEl: SVGElement, m: matrix.MatrixArray) {\n if (m) {\n attr(svgEl, 'transform', 'matrix('\n // Avoid large string of matrix\n // PENDING If have precision issue when scaled\n + round3(m[0]) + ','\n + round3(m[1]) + ','\n + round3(m[2]) + ','\n + round3(m[3]) + ','\n + round4(m[4]) + ','\n + round4(m[5])\n + ')');\n }\n}\n\nfunction attr(el: SVGElement, key: string, val: string) {\n if (!val || (val as any).type !== 'linear' && (val as any).type !== 'radial') {\n // Don't set attribute for gradient, since it need new dom nodes\n el.setAttribute(key, val);\n }\n}\n\nfunction attrXLink(el: SVGElement, key: string, val: string) {\n el.setAttributeNS('http://www.w3.org/1999/xlink', key, val);\n}\n\nfunction attrXML(el: SVGElement, key: string, val: string) {\n el.setAttributeNS('http://www.w3.org/XML/1998/namespace', key, val);\n}\n\nfunction bindStyle(svgEl: SVGElement, style: PathStyleProps, el?: Path): void\nfunction bindStyle(svgEl: SVGElement, style: TSpanStyleProps, el?: TSpan): void\nfunction bindStyle(svgEl: SVGElement, style: ImageStyleProps, el?: ZRImage): void\nfunction bindStyle(svgEl: SVGElement, style: AllStyleOption, el?: Path | TSpan | ZRImage) {\n const opacity = style.opacity == null ? 1 : style.opacity;\n\n // only set opacity. stroke and fill cannot be applied to svg image\n if (el instanceof ZRImage) {\n svgEl.style.opacity = opacity + '';\n return;\n }\n\n if (pathHasFill(style)) {\n const fill = normalizeColor(style.fill as string);\n attr(svgEl, 'fill', fill.color);\n attr(svgEl,\n 'fill-opacity',\n (style.fillOpacity != null\n ? style.fillOpacity * fill.opacity * opacity\n : fill.opacity * opacity\n ) + ''\n );\n }\n else {\n attr(svgEl, 'fill', NONE);\n }\n\n if (pathHasStroke(style)) {\n const stroke = normalizeColor(style.stroke as string);\n attr(svgEl, 'stroke', stroke.color);\n const strokeWidth = style.lineWidth;\n const strokeScale = style.strokeNoScale\n ? (el as Path).getLineScale()\n : 1;\n attr(svgEl, 'stroke-width', (strokeScale ? strokeWidth / strokeScale : 0) + '');\n // stroke then fill for text; fill then stroke for others\n attr(svgEl, 'paint-order', style.strokeFirst ? 'stroke' : 'fill');\n attr(svgEl, 'stroke-opacity', (\n style.strokeOpacity != null\n ? style.strokeOpacity * stroke.opacity * opacity\n : stroke.opacity * opacity\n ) + '');\n let lineDash = style.lineDash && strokeWidth > 0 && normalizeLineDash(style.lineDash, strokeWidth);\n if (lineDash) {\n let lineDashOffset = style.lineDashOffset;\n if (strokeScale && strokeScale !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / strokeScale;\n });\n if (lineDashOffset) {\n lineDashOffset /= strokeScale;\n lineDashOffset = mathRound(lineDashOffset);\n }\n }\n attr(svgEl, 'stroke-dasharray', lineDash.join(','));\n attr(svgEl, 'stroke-dashoffset', (lineDashOffset || 0) + '');\n }\n else {\n attr(svgEl, 'stroke-dasharray', '');\n }\n\n // PENDING\n style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap);\n style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin);\n style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit + '');\n }\n else {\n attr(svgEl, 'stroke', NONE);\n }\n}\n\nclass SVGPathRebuilder implements PathRebuilder {\n _d: (string | number)[]\n _str: string\n _invalid: boolean\n\n reset() {\n this._d = [];\n this._str = '';\n }\n moveTo(x: number, y: number) {\n this._add('M', x, y);\n }\n lineTo(x: number, y: number) {\n this._add('L', x, y);\n }\n bezierCurveTo(x: number, y: number, x2: number, y2: number, x3: number, y3: number) {\n this._add('C', x, y, x2, y2, x3, y3);\n }\n quadraticCurveTo(x: number, y: number, x2: number, y2: number) {\n this._add('Q', x, y, x2, y2);\n }\n arc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, anticlockwise: boolean) {\n this.ellipse(cx, cy, r, r, 0, startAngle, endAngle, anticlockwise);\n }\n ellipse(\n cx: number, cy: number,\n rx: number, ry: number,\n psi: number,\n startAngle: number,\n endAngle: number,\n anticlockwise: boolean\n ) {\n\n const firstCmd = this._d.length === 0;\n\n let dTheta = endAngle - startAngle;\n const clockwise = !anticlockwise;\n\n const dThetaPositive = Math.abs(dTheta);\n const isCircle = isAroundZero(dThetaPositive - PI2)\n || (clockwise ? dTheta >= PI2 : -dTheta >= PI2);\n\n // Mapping to 0~2PI\n const unifiedTheta = dTheta > 0 ? dTheta % PI2 : (dTheta % PI2 + PI2);\n\n let large = false;\n if (isCircle) {\n large = true;\n }\n else if (isAroundZero(dThetaPositive)) {\n large = false;\n }\n else {\n large = (unifiedTheta >= PI) === !!clockwise;\n }\n\n const x0 = round4(cx + rx * mathCos(startAngle));\n const y0 = round4(cy + ry * mathSin(startAngle));\n\n // It will not draw if start point and end point are exactly the same\n // We need to shift the end point with a small value\n // FIXME A better way to draw circle ?\n if (isCircle) {\n if (clockwise) {\n dTheta = PI2 - 1e-4;\n }\n else {\n dTheta = -PI2 + 1e-4;\n }\n\n large = true;\n\n if (firstCmd) {\n // Move to (x0, y0) only when CMD.A comes at the\n // first position of a shape.\n // For instance, when drawing a ring, CMD.A comes\n // after CMD.M, so it's unnecessary to move to\n // (x0, y0).\n this._d.push('M', x0, y0);\n }\n }\n\n const x = round4(cx + rx * mathCos(startAngle + dTheta));\n const y = round4(cy + ry * mathSin(startAngle + dTheta));\n\n if (isNaN(x0) || isNaN(y0) || isNaN(rx) || isNaN(ry) || isNaN(psi) || isNaN(degree) || isNaN(x) || isNaN(y)) {\n return '';\n }\n\n // FIXME Ellipse\n this._d.push('A', round4(rx), round4(ry),\n mathRound(psi * degree), +large, +clockwise, x, y);\n }\n rect(x: number, y: number, w: number, h: number) {\n this._add('M', x, y);\n this._add('L', x + w, y);\n this._add('L', x + w, y + h);\n this._add('L', x, y + h);\n this._add('L', x, y);\n this._add('Z');\n }\n closePath() {\n // Not use Z as first command\n if (this._d.length > 0) {\n this._add('Z');\n }\n }\n\n _add(cmd: string, a?: number, b?: number, c?: number, d?: number, e?: number, f?: number, g?: number, h?: number) {\n this._d.push(cmd);\n for (let i = 1; i < arguments.length; i++) {\n const val = arguments[i];\n if (isNaN(val)) {\n this._invalid = true;\n return;\n }\n this._d.push(round4(val));\n }\n }\n\n generateStr() {\n this._str = this._invalid ? '' : this._d.join(' ');\n this._d = [];\n }\n getStr() {\n return this._str;\n }\n}\n\ninterface PathWithSVGBuildPath extends Path {\n __svgPathVersion: number\n __svgPathBuilder: SVGPathRebuilder\n}\n\nconst svgPath: SVGProxy = {\n brush(el: Path) {\n const style = el.style;\n\n let svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('path');\n el.__svgEl = svgEl;\n }\n\n if (!el.path) {\n el.createPathProxy();\n }\n const path = el.path;\n\n if (el.shapeChanged()) {\n path.beginPath();\n el.buildPath(path, el.shape);\n el.pathUpdated();\n }\n\n const pathVersion = path.getVersion();\n const elExt = el as PathWithSVGBuildPath;\n let svgPathBuilder = elExt.__svgPathBuilder;\n if (elExt.__svgPathVersion !== pathVersion || !svgPathBuilder || el.style.strokePercent < 1) {\n if (!svgPathBuilder) {\n svgPathBuilder = elExt.__svgPathBuilder = new SVGPathRebuilder();\n }\n svgPathBuilder.reset();\n path.rebuildPath(svgPathBuilder, el.style.strokePercent);\n svgPathBuilder.generateStr();\n elExt.__svgPathVersion = pathVersion;\n }\n\n attr(svgEl, 'd', svgPathBuilder.getStr());\n\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\n\nexport {svgPath as path};\n\n/***************************************************\n * IMAGE\n **************************************************/\nconst svgImage: SVGProxy = {\n brush(el: ZRImage) {\n const style = el.style;\n let image = style.image;\n\n if (image instanceof HTMLImageElement) {\n image = image.src;\n }\n // heatmap layer in geo may be a canvas\n else if (image instanceof HTMLCanvasElement) {\n image = image.toDataURL();\n }\n if (!image) {\n return;\n }\n\n const x = style.x || 0;\n const y = style.y || 0;\n\n const dw = style.width;\n const dh = style.height;\n\n let svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('image');\n el.__svgEl = svgEl;\n }\n\n if (image !== el.__imageSrc) {\n attrXLink(svgEl, 'href', image as string);\n // Caching image src\n el.__imageSrc = image as string;\n }\n\n attr(svgEl, 'width', dw + '');\n attr(svgEl, 'height', dh + '');\n\n attr(svgEl, 'x', x + '');\n attr(svgEl, 'y', y + '');\n\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport {svgImage as image};\n\n/***************************************************\n * TEXT\n **************************************************/\nconst TEXT_ALIGN_TO_ANCHOR = {\n left: 'start',\n right: 'end',\n center: 'middle',\n middle: 'middle'\n};\n\nfunction adjustTextY(y: number, lineHeight: number, textBaseline: CanvasTextBaseline): number {\n // TODO Other values.\n if (textBaseline === 'top') {\n y += lineHeight / 2;\n }\n else if (textBaseline === 'bottom') {\n y -= lineHeight / 2;\n }\n return y;\n}\n\nconst svgText: SVGProxy = {\n brush(el: TSpan) {\n const style = el.style;\n\n let text = style.text;\n // Convert to string\n text != null && (text += '');\n if (!text || isNaN(style.x) || isNaN(style.y)) {\n return;\n }\n\n let textSvgEl = el.__svgEl as SVGTextElement;\n if (!textSvgEl) {\n textSvgEl = createElement('text') as SVGTextElement;\n attrXML(textSvgEl, 'xml:space', 'preserve');\n el.__svgEl = textSvgEl;\n }\n\n const font = style.font || DEFAULT_FONT;\n\n // style.font has been normalized by `normalizeTextStyle`.\n const textSvgElStyle = textSvgEl.style;\n textSvgElStyle.font = font;\n\n textSvgEl.textContent = text;\n\n bindStyle(textSvgEl, style, el);\n setTransform(textSvgEl, el.transform);\n\n // Consider different font display differently in vertial align, we always\n // set vertialAlign as 'middle', and use 'y' to locate text vertically.\n const x = style.x || 0;\n const y = adjustTextY(style.y || 0, getLineHeight(font), style.textBaseline);\n const textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign as keyof typeof TEXT_ALIGN_TO_ANCHOR]\n || style.textAlign;\n\n attr(textSvgEl, 'dominant-baseline', 'central');\n attr(textSvgEl, 'text-anchor', textAlign);\n attr(textSvgEl, 'x', x + '');\n attr(textSvgEl, 'y', y + '');\n }\n};\nexport {svgText as text};\n", "/**\n * @file Manages elements that can be defined in in SVG,\n * e.g., gradients, clip path, etc.\n * @author Zhang Wenli\n */\n\nimport {createElement} from '../core';\nimport * as zrUtil from '../../core/util';\nimport Path from '../../graphic/Path';\nimport ZRImage from '../../graphic/Image';\nimport TSpan from '../../graphic/TSpan';\nimport {\n path as svgPath,\n image as svgImage,\n text as svgText\n} from '../graphic';\nimport Displayable from '../../graphic/Displayable';\n\n\nconst MARK_UNUSED = '0';\nconst MARK_USED = '1';\n\n/**\n * Manages elements that can be defined in in SVG,\n * e.g., gradients, clip path, etc.\n */\nexport default class Definable {\n\n nextId = 0\n\n protected _zrId: number\n protected _svgRoot: SVGElement\n protected _tagNames: string[]\n protected _markLabel: string\n protected _domName: string = '_dom'\n\n constructor(\n zrId: number, // zrender instance id\n svgRoot: SVGElement, // root of SVG document\n tagNames: string | string[], // possible tag names\n markLabel: string, // label name to make if the element\n domName?: string\n ) {\n this._zrId = zrId;\n this._svgRoot = svgRoot;\n this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames;\n this._markLabel = markLabel;\n\n if (domName) {\n this._domName = domName;\n }\n }\n\n createElement = createElement\n\n\n /**\n * Get the tag for svgRoot; optionally creates one if not exists.\n *\n * @param isForceCreating if need to create when not exists\n * @return SVG element, null if it doesn't\n * exist and isForceCreating is false\n */\n getDefs(isForceCreating?: boolean): SVGDefsElement {\n let svgRoot = this._svgRoot;\n let defs = this._svgRoot.getElementsByTagName('defs');\n if (defs.length === 0) {\n // Not exist\n if (isForceCreating) {\n let defs = svgRoot.insertBefore(\n this.createElement('defs'), // Create new tag\n svgRoot.firstChild // Insert in the front of svg\n ) as SVGDefsElement;\n if (!defs.contains) {\n // IE doesn't support contains method\n defs.contains = function (el) {\n const children = defs.children;\n if (!children) {\n return false;\n }\n for (let i = children.length - 1; i >= 0; --i) {\n if (children[i] === el) {\n return true;\n }\n }\n return false;\n };\n }\n return defs;\n }\n else {\n return null;\n }\n }\n else {\n return defs[0];\n }\n }\n\n\n /**\n * Update DOM element if necessary.\n *\n * @param element style element. e.g., for gradient,\n * it may be '#ccc' or {type: 'linear', ...}\n * @param onUpdate update callback\n */\n doUpdate(target: T, onUpdate?: (target: T) => void) {\n if (!target) {\n return;\n }\n\n const defs = this.getDefs(false);\n if ((target as any)[this._domName] && defs.contains((target as any)[this._domName])) {\n // Update DOM\n if (typeof onUpdate === 'function') {\n onUpdate(target);\n }\n }\n else {\n // No previous dom, create new\n const dom = this.add(target);\n if (dom) {\n (target as any)[this._domName] = dom;\n }\n }\n }\n\n add(target: any): SVGElement {\n return null;\n }\n\n /**\n * Add gradient dom to defs\n *\n * @param dom DOM to be added to \n */\n addDom(dom: SVGElement) {\n const defs = this.getDefs(true);\n if (dom.parentNode !== defs) {\n defs.appendChild(dom);\n }\n }\n\n\n /**\n * Remove DOM of a given element.\n *\n * @param target Target where to attach the dom\n */\n removeDom(target: T) {\n const defs = this.getDefs(false);\n if (defs && (target as any)[this._domName]) {\n defs.removeChild((target as any)[this._domName]);\n (target as any)[this._domName] = null;\n }\n }\n\n\n /**\n * Get DOMs of this element.\n *\n * @return doms of this defineable elements in \n */\n getDoms() {\n const defs = this.getDefs(false);\n if (!defs) {\n // No dom when defs is not defined\n return [];\n }\n\n let doms: SVGElement[] = [];\n zrUtil.each(this._tagNames, function (tagName) {\n const tags = defs.getElementsByTagName(tagName) as HTMLCollectionOf;\n // Note that tags is HTMLCollection, which is array-like\n // rather than real array.\n // So `doms.concat(tags)` add tags as one object.\n for (let i = 0; i < tags.length; i++) {\n doms.push(tags[i]);\n }\n });\n\n return doms;\n }\n\n\n /**\n * Mark DOMs to be unused before painting, and clear unused ones at the end\n * of the painting.\n */\n markAllUnused() {\n const doms = this.getDoms();\n const that = this;\n zrUtil.each(doms, function (dom) {\n (dom as any)[that._markLabel] = MARK_UNUSED;\n });\n }\n\n\n /**\n * Mark a single DOM to be used.\n *\n * @param dom DOM to mark\n */\n markDomUsed(dom: SVGElement) {\n dom && ((dom as any)[this._markLabel] = MARK_USED);\n };\n\n markDomUnused(dom: SVGElement) {\n dom && ((dom as any)[this._markLabel] = MARK_UNUSED);\n };\n\n isDomUnused(dom: SVGElement) {\n return dom && (dom as any)[this._markLabel] !== MARK_USED;\n }\n\n /**\n * Remove unused DOMs defined in \n */\n removeUnused() {\n const defs = this.getDefs(false);\n if (!defs) {\n // Nothing to remove\n return;\n }\n\n const doms = this.getDoms();\n zrUtil.each(doms, (dom) => {\n if (this.isDomUnused(dom)) {\n // Remove gradient\n defs.removeChild(dom);\n }\n });\n }\n\n\n /**\n * Get SVG proxy.\n *\n * @param displayable displayable element\n * @return svg proxy of given element\n */\n getSvgProxy(displayable: Displayable) {\n if (displayable instanceof Path) {\n return svgPath;\n }\n else if (displayable instanceof ZRImage) {\n return svgImage;\n }\n else if (displayable instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n }\n\n\n /**\n * Get SVG element.\n *\n * @param displayable displayable element\n * @return SVG element\n */\n getSvgElement(displayable: Displayable): SVGElement {\n return displayable.__svgEl;\n }\n\n}", "/**\n * @file Manages SVG gradient elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport * as colorTool from '../../tool/color';\nimport Displayable from '../../graphic/Displayable';\nimport { GradientObject } from '../../graphic/Gradient';\nimport { LinearGradientObject } from '../../graphic/LinearGradient';\nimport { RadialGradientObject } from '../../graphic/RadialGradient';\n\nfunction isLinearGradient(value: GradientObject): value is LinearGradientObject {\n return value.type === 'linear';\n}\n\nfunction isRadialGradient(value: GradientObject): value is RadialGradientObject {\n return value.type === 'radial';\n}\n\nfunction isGradient(value: GradientObject | string): value is GradientObject {\n return value && (\n (value as GradientObject).type === 'linear'\n || (value as GradientObject).type === 'radial'\n );\n}\n\n\ntype GradientObjectExtended = GradientObject & {\n __dom: SVGElement\n}\n\n/**\n * Manages SVG gradient elements.\n *\n * @param zrId zrender instance id\n * @param svgRoot root of SVG document\n */\nexport default class GradientManager extends Definable {\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['linearGradient', 'radialGradient'], '__gradient_in_use__');\n }\n\n\n /**\n * Create new gradient DOM for fill or stroke if not exist,\n * but will not update gradient if exists.\n *\n * @param svgElement SVG element to paint\n * @param displayable zrender displayable element\n */\n addWithoutUpdate(\n svgElement: SVGElement,\n displayable: Displayable\n ) {\n if (displayable && displayable.style) {\n const that = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke: 'fill' | 'stroke') {\n let value = displayable.style[fillOrStroke] as GradientObject;\n if (isGradient(value)) {\n const gradient = value as GradientObjectExtended;\n const defs = that.getDefs(true);\n\n // Create dom in if not exists\n let dom;\n if (gradient.__dom) {\n // Gradient exists\n dom = gradient.__dom;\n if (!defs.contains(gradient.__dom)) {\n // __dom is no longer in defs, recreate\n that.addDom(dom);\n }\n }\n else {\n // New dom\n dom = that.add(gradient);\n }\n\n that.markUsed(displayable);\n\n const id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n }\n\n\n /**\n * Add a new gradient tag in \n *\n * @param gradient zr gradient instance\n */\n add(gradient: GradientObject): SVGElement {\n let dom;\n if (isLinearGradient(gradient)) {\n dom = this.createElement('linearGradient');\n }\n else if (isRadialGradient(gradient)) {\n dom = this.createElement('radialGradient');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return null;\n }\n\n // Set dom id with gradient id, since each gradient instance\n // will have no more than one dom element.\n // id may exists before for those dirty elements, in which case\n // id should remain the same, and other attributes should be\n // updated.\n gradient.id = gradient.id || this.nextId++;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-gradient-' + gradient.id);\n\n this.updateDom(gradient, dom);\n this.addDom(dom);\n\n return dom;\n }\n\n\n /**\n * Update gradient.\n *\n * @param gradient zr gradient instance or color string\n */\n update(gradient: GradientObject | string) {\n if (!isGradient(gradient)) {\n return;\n }\n\n const that = this;\n this.doUpdate(gradient, function () {\n const dom = (gradient as GradientObjectExtended).__dom;\n if (!dom) {\n return;\n }\n\n const tagName = dom.tagName;\n const type = gradient.type;\n if (type === 'linear' && tagName === 'linearGradient'\n || type === 'radial' && tagName === 'radialGradient'\n ) {\n // Gradient type is not changed, update gradient\n that.updateDom(gradient, (gradient as GradientObjectExtended).__dom);\n }\n else {\n // Remove and re-create if type is changed\n that.removeDom(gradient);\n that.add(gradient);\n }\n });\n }\n\n\n /**\n * Update gradient dom\n *\n * @param gradient zr gradient instance\n * @param dom DOM to update\n */\n updateDom(gradient: GradientObject, dom: SVGElement) {\n if (isLinearGradient(gradient)) {\n dom.setAttribute('x1', gradient.x + '');\n dom.setAttribute('y1', gradient.y + '');\n dom.setAttribute('x2', gradient.x2 + '');\n dom.setAttribute('y2', gradient.y2 + '');\n }\n else if (isRadialGradient(gradient)) {\n dom.setAttribute('cx', gradient.x + '');\n dom.setAttribute('cy', gradient.y + '');\n dom.setAttribute('r', gradient.r + '');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return;\n }\n\n if (gradient.global) {\n // x1, x2, y1, y2 in range of 0 to canvas width or height\n dom.setAttribute('gradientUnits', 'userSpaceOnUse');\n }\n else {\n // x1, x2, y1, y2 in range of 0 to 1\n dom.setAttribute('gradientUnits', 'objectBoundingBox');\n }\n\n // Remove color stops if exists\n dom.innerHTML = '';\n\n // Add color stops\n const colors = gradient.colorStops;\n for (let i = 0, len = colors.length; i < len; ++i) {\n const stop = this.createElement('stop');\n stop.setAttribute('offset', colors[i].offset * 100 + '%');\n\n const color = colors[i].color;\n if (color.indexOf('rgba') > -1) {\n // Fix Safari bug that stop-color not recognizing alpha #9014\n const opacity = colorTool.parse(color)[3];\n const hex = colorTool.toHex(color);\n\n // stop-color cannot be color, since:\n // The opacity value used for the gradient calculation is the\n // *product* of the value of stop-opacity and the opacity of the\n // value of stop-color.\n // See https://www.w3.org/TR/SVG2/pservers.html#StopOpacityProperty\n stop.setAttribute('stop-color', '#' + hex);\n stop.setAttribute('stop-opacity', opacity + '');\n }\n else {\n stop.setAttribute('stop-color', colors[i].color);\n }\n\n dom.appendChild(stop);\n }\n\n // Store dom element in gradient, to avoid creating multiple\n // dom instances for the same gradient element\n (gradient as GradientObject as GradientObjectExtended).__dom = dom;\n }\n\n /**\n * Mark a single gradient to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n if (displayable.style) {\n let gradient = displayable.style.fill as GradientObject as GradientObjectExtended;\n if (gradient && gradient.__dom) {\n super.markDomUsed(gradient.__dom);\n }\n\n gradient = displayable.style.stroke as GradientObject as GradientObjectExtended;\n if (gradient && gradient.__dom) {\n super.markDomUsed(gradient.__dom);\n }\n }\n }\n\n\n}", "/**\n * @file Manages SVG pattern elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport Displayable from '../../graphic/Displayable';\nimport {PatternObject, ImagePatternObject, SVGPatternObject} from '../../graphic/Pattern';\nimport {createOrUpdateImage} from '../../graphic/helper/image';\nimport WeakMap from '../../core/WeakMap';\n\nfunction isPattern(value: PatternObject | string): value is PatternObject {\n return value && (!!(value as ImagePatternObject).image || !!(value as SVGPatternObject).svgElement);\n}\n\nconst patternDomMap = new WeakMap();\n\n/**\n * Manages SVG pattern elements.\n *\n * @param zrId zrender instance id\n * @param svgRoot root of SVG document\n */\nexport default class PatternManager extends Definable {\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['pattern'], '__pattern_in_use__');\n }\n\n\n /**\n * Create new pattern DOM for fill or stroke if not exist,\n * but will not update pattern if exists.\n *\n * @param svgElement SVG element to paint\n * @param displayable zrender displayable element\n */\n addWithoutUpdate(\n svgElement: SVGElement,\n displayable: Displayable\n ) {\n if (displayable && displayable.style) {\n const that = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke: 'fill' | 'stroke') {\n const pattern = displayable.style[fillOrStroke] as PatternObject;\n if (isPattern(pattern)) {\n const defs = that.getDefs(true);\n\n // Create dom in if not exists\n let dom = patternDomMap.get(pattern);\n if (dom) {\n // Pattern exists\n if (!defs.contains(dom)) {\n // __dom is no longer in defs, recreate\n that.addDom(dom);\n }\n }\n else {\n // New dom\n dom = that.add(pattern);\n }\n\n that.markUsed(displayable);\n\n const id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n }\n\n\n /**\n * Add a new pattern tag in \n *\n * @param pattern zr pattern instance\n */\n add(pattern: PatternObject): SVGElement {\n if (!isPattern(pattern)) {\n return;\n }\n\n let dom = this.createElement('pattern');\n\n pattern.id = pattern.id == null ? this.nextId++ : pattern.id;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-pattern-' + pattern.id);\n\n dom.setAttribute('x', '0');\n dom.setAttribute('y', '0');\n dom.setAttribute('patternUnits', 'userSpaceOnUse');\n\n this.updateDom(pattern, dom);\n this.addDom(dom);\n\n return dom;\n }\n\n\n /**\n * Update pattern.\n *\n * @param pattern zr pattern instance or color string\n */\n update(pattern: PatternObject | string) {\n if (!isPattern(pattern)) {\n return;\n }\n\n const that = this;\n this.doUpdate(pattern, function () {\n const dom = patternDomMap.get(pattern);\n that.updateDom(pattern, dom);\n });\n }\n\n\n /**\n * Update pattern dom\n *\n * @param pattern zr pattern instance\n * @param patternDom DOM to update\n */\n updateDom(pattern: PatternObject, patternDom: SVGElement) {\n const svgElement = (pattern as SVGPatternObject).svgElement;\n\n if (svgElement instanceof SVGElement) {\n if (svgElement.parentNode !== patternDom) {\n patternDom.innerHTML = '';\n patternDom.appendChild(svgElement);\n\n patternDom.setAttribute('width', (pattern as SVGPatternObject).svgWidth + '');\n patternDom.setAttribute('height', (pattern as SVGPatternObject).svgHeight + '');\n }\n }\n else {\n let img: SVGElement;\n const prevImage = patternDom.getElementsByTagName('image');\n if (prevImage.length) {\n if ((pattern as ImagePatternObject).image) {\n // Update\n img = prevImage[0];\n }\n else {\n // Remove\n patternDom.removeChild(prevImage[0]);\n return;\n }\n }\n else if ((pattern as ImagePatternObject).image) {\n // Create\n img = this.createElement('image');\n }\n\n if (img) {\n let imageSrc;\n const patternImage = (pattern as ImagePatternObject).image;\n if (typeof patternImage === 'string') {\n imageSrc = patternImage;\n }\n else if (patternImage instanceof HTMLImageElement) {\n imageSrc = patternImage.src;\n }\n else if (patternImage instanceof HTMLCanvasElement) {\n imageSrc = patternImage.toDataURL();\n }\n\n if (imageSrc) {\n img.setAttribute('href', imageSrc);\n img.setAttribute('x', '0');\n img.setAttribute('y', '0');\n\n // No need to re-render so dirty is empty\n const hostEl = {\n dirty: () => {}\n };\n const createdImage = createOrUpdateImage(imageSrc, img as any, hostEl, img => {\n patternDom.setAttribute('width', img.width + '');\n patternDom.setAttribute('height', img.height + '');\n });\n if (createdImage && createdImage.width && createdImage.height) {\n // Loaded before\n patternDom.setAttribute('width', createdImage.width + '');\n patternDom.setAttribute('height', createdImage.height + '');\n }\n\n patternDom.appendChild(img);\n }\n }\n }\n\n const x = pattern.x || 0;\n const y = pattern.y || 0;\n const rotation = (pattern.rotation || 0) / Math.PI * 180;\n const scaleX = pattern.scaleX || 1;\n const scaleY = pattern.scaleY || 1;\n const transform = `translate(${x}, ${y}) rotate(${rotation}) scale(${scaleX}, ${scaleY})`;\n patternDom.setAttribute('patternTransform', transform);\n patternDomMap.set(pattern, patternDom);\n }\n\n /**\n * Mark a single pattern to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n if (displayable.style) {\n if (isPattern(displayable.style.fill)) {\n super.markDomUsed(patternDomMap.get(displayable.style.fill));\n }\n if (isPattern(displayable.style.stroke)) {\n super.markDomUsed(patternDomMap.get(displayable.style.stroke));\n }\n }\n }\n\n}\n", "/**\n * @file Manages SVG clipPath elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport Displayable from '../../graphic/Displayable';\nimport Path from '../../graphic/Path';\nimport {SVGProxy} from '../graphic';\nimport { Dictionary } from '../../core/types';\nimport { isClipPathChanged } from '../../canvas/helper';\n\ntype PathExtended = Path & {\n _dom: SVGElement\n}\n\nfunction generateClipPathsKey(clipPaths: Path[]) {\n let key: number[] = [];\n if (clipPaths) {\n for (let i = 0; i < clipPaths.length; i++) {\n const clipPath = clipPaths[i];\n key.push(clipPath.id);\n }\n }\n return key.join(',');\n}\n\nexport function hasClipPath(displayable: Displayable) {\n const clipPaths = displayable.__clipPaths;\n return clipPaths && clipPaths.length > 0;\n}\n/**\n * Manages SVG clipPath elements.\n */\nexport default class ClippathManager extends Definable {\n\n private _refGroups: Dictionary = {};\n private _keyDuplicateCount: Dictionary = {};\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, 'clipPath', '__clippath_in_use__');\n }\n\n markAllUnused() {\n super.markAllUnused();\n const refGroups = this._refGroups;\n for (let key in refGroups) {\n if (refGroups.hasOwnProperty(key)) {\n this.markDomUnused(refGroups[key]);\n }\n }\n this._keyDuplicateCount = {};\n }\n\n\n private _getClipPathGroup(displayable: Displayable, prevDisplayable: Displayable) {\n if (!hasClipPath(displayable)) {\n return;\n }\n const clipPaths = displayable.__clipPaths;\n\n const keyDuplicateCount = this._keyDuplicateCount;\n let clipPathKey = generateClipPathsKey(clipPaths);\n if (isClipPathChanged(clipPaths, prevDisplayable && prevDisplayable.__clipPaths)) {\n keyDuplicateCount[clipPathKey] = keyDuplicateCount[clipPathKey] || 0;\n keyDuplicateCount[clipPathKey] && (clipPathKey += '-' + keyDuplicateCount[clipPathKey]);\n keyDuplicateCount[clipPathKey]++;\n }\n\n return this._refGroups[clipPathKey]\n || (this._refGroups[clipPathKey] = this.createElement('g'));\n }\n\n /**\n * Update clipPath.\n *\n * @param displayable displayable element\n */\n update(displayable: Displayable, prevDisplayable: Displayable) {\n const clipGroup = this._getClipPathGroup(displayable, prevDisplayable);\n if (clipGroup) {\n this.markDomUsed(clipGroup);\n this.updateDom(clipGroup, displayable.__clipPaths);\n }\n return clipGroup;\n };\n\n\n /**\n * Create an SVGElement of displayable and create a of its\n * clipPath\n */\n updateDom(parentEl: SVGElement, clipPaths: Path[]) {\n if (clipPaths && clipPaths.length > 0) {\n // Has clipPath, create with the first clipPath\n const defs = this.getDefs(true);\n const clipPath = clipPaths[0] as PathExtended;\n let clipPathEl;\n let id;\n\n if (clipPath._dom) {\n // Use a dom that is already in \n id = clipPath._dom.getAttribute('id');\n clipPathEl = clipPath._dom;\n\n // Use a dom that is already in \n if (!defs.contains(clipPathEl)) {\n // This happens when set old clipPath that has\n // been previously removed\n defs.appendChild(clipPathEl);\n }\n }\n else {\n // New \n id = 'zr' + this._zrId + '-clip-' + this.nextId;\n ++this.nextId;\n clipPathEl = this.createElement('clipPath');\n clipPathEl.setAttribute('id', id);\n defs.appendChild(clipPathEl);\n\n clipPath._dom = clipPathEl;\n }\n\n // Build path and add to \n const svgProxy = this.getSvgProxy(clipPath);\n (svgProxy as SVGProxy).brush(clipPath);\n\n const pathEl = this.getSvgElement(clipPath);\n\n clipPathEl.innerHTML = '';\n clipPathEl.appendChild(pathEl);\n\n parentEl.setAttribute('clip-path', 'url(#' + id + ')');\n\n if (clipPaths.length > 1) {\n // Make the other clipPaths recursively\n this.updateDom(clipPathEl, clipPaths.slice(1));\n }\n }\n else {\n // No clipPath\n if (parentEl) {\n parentEl.setAttribute('clip-path', 'none');\n }\n }\n };\n\n /**\n * Mark a single clipPath to be used\n *\n * @param displayable displayable element\n */\n markUsed(displayable: Displayable) {\n // displayable.__clipPaths can only be `null`/`undefined` or an non-empty array.\n if (displayable.__clipPaths) {\n zrUtil.each(displayable.__clipPaths, (clipPath: PathExtended) => {\n if (clipPath._dom) {\n super.markDomUsed(clipPath._dom);\n }\n });\n }\n };\n\n removeUnused() {\n super.removeUnused();\n\n const newRefGroupsMap: Dictionary = {};\n const refGroups = this._refGroups;\n for (let key in refGroups) {\n if (refGroups.hasOwnProperty(key)) {\n const group = refGroups[key];\n if (!this.isDomUnused(group)) {\n newRefGroupsMap[key] = group;\n }\n else if (group.parentNode) {\n group.parentNode.removeChild(group);\n }\n }\n }\n this._refGroups = newRefGroupsMap;\n }\n}\n", "/**\n * @file Manages SVG shadow elements.\n * @author Zhang Wenli\n */\n\nimport Definable from './Definable';\nimport Displayable from '../../graphic/Displayable';\nimport { PathStyleProps } from '../../graphic/Path';\nimport { Dictionary } from '../../core/types';\nimport { normalizeColor } from '../core';\n\ntype DisplayableExtended = Displayable & {\n _shadowDom: SVGElement\n}\n/**\n * Manages SVG shadow elements.\n *\n */\nexport default class ShadowManager extends Definable {\n\n private _shadowDomMap: Dictionary = {}\n private _shadowDomPool: SVGFilterElement[] = []\n\n constructor(zrId: number, svgRoot: SVGElement) {\n super(zrId, svgRoot, ['filter'], '__filter_in_use__', '_shadowDom');\n }\n\n /**\n * Add a new shadow tag in \n *\n * @param displayable zrender displayable element\n * @return created DOM\n */\n private _getFromPool(): SVGFilterElement {\n let shadowDom = this._shadowDomPool.pop(); // Try to get one from trash.\n if (!shadowDom) {\n shadowDom = this.createElement('filter') as SVGFilterElement;\n shadowDom.setAttribute('id', 'zr' + this._zrId + '-shadow-' + this.nextId++);\n const domChild = this.createElement('feDropShadow');\n shadowDom.appendChild(domChild);\n this.addDom(shadowDom);\n }\n\n return shadowDom;\n }\n\n\n /**\n * Update shadow.\n */\n update(svgElement: SVGElement, displayable: Displayable) {\n const style = displayable.style;\n if (hasShadow(style)) {\n // Try getting shadow from cache.\n const shadowKey = getShadowKey(displayable);\n let shadowDom = (displayable as DisplayableExtended)._shadowDom = this._shadowDomMap[shadowKey];\n if (!shadowDom) {\n shadowDom = this._getFromPool();\n this._shadowDomMap[shadowKey] = shadowDom;\n }\n this.updateDom(svgElement, displayable, shadowDom);\n }\n else {\n // Remove shadow\n this.remove(svgElement, displayable);\n }\n }\n\n\n /**\n * Remove DOM and clear parent filter\n */\n remove(svgElement: SVGElement, displayable: Displayable) {\n if ((displayable as DisplayableExtended)._shadowDom != null) {\n (displayable as DisplayableExtended)._shadowDom = null;\n svgElement.style.filter = '';\n }\n }\n\n\n /**\n * Update shadow dom\n *\n * @param displayable zrender displayable element\n * @param shadowDom DOM to update\n */\n updateDom(svgElement: SVGElement, displayable: Displayable, shadowDom: SVGElement) {\n let domChild = shadowDom.children[0];\n\n const style = displayable.style;\n const globalScale = displayable.getGlobalScale();\n const scaleX = globalScale[0];\n const scaleY = globalScale[1];\n if (!scaleX || !scaleY) {\n return;\n }\n\n // TODO: textBoxShadowBlur is not supported yet\n let offsetX = style.shadowOffsetX || 0;\n let offsetY = style.shadowOffsetY || 0;\n let blur = style.shadowBlur;\n const normalizedColor = normalizeColor(style.shadowColor);\n\n domChild.setAttribute('dx', offsetX / scaleX + '');\n domChild.setAttribute('dy', offsetY / scaleY + '');\n domChild.setAttribute('flood-color', normalizedColor.color);\n domChild.setAttribute('flood-opacity', normalizedColor.opacity + '');\n\n // Divide by two here so that it looks the same as in canvas\n // See: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-shadowblur\n const stdDx = blur / 2 / scaleX;\n const stdDy = blur / 2 / scaleY;\n const stdDeviation = stdDx + ' ' + stdDy;\n domChild.setAttribute('stdDeviation', stdDeviation);\n\n // Fix filter clipping problem\n shadowDom.setAttribute('x', '-100%');\n shadowDom.setAttribute('y', '-100%');\n shadowDom.setAttribute('width', '300%');\n shadowDom.setAttribute('height', '300%');\n\n // Store dom element in shadow, to avoid creating multiple\n // dom instances for the same shadow element\n (displayable as DisplayableExtended)._shadowDom = shadowDom;\n\n const id = shadowDom.getAttribute('id');\n svgElement.style.filter = 'url(#' + id + ')';\n }\n\n removeUnused() {\n const defs = this.getDefs(false);\n if (!defs) {\n // Nothing to remove\n return;\n }\n let shadowDomsPool = this._shadowDomPool;\n\n // let currentUsedShadow = 0;\n const shadowDomMap = this._shadowDomMap;\n for (let key in shadowDomMap) {\n if (shadowDomMap.hasOwnProperty(key)) {\n shadowDomsPool.push(shadowDomMap[key]);\n }\n // currentUsedShadow++;\n }\n\n // Reset the map.\n this._shadowDomMap = {};\n }\n}\n\n\nfunction hasShadow(style: PathStyleProps) {\n // TODO: textBoxShadowBlur is not supported yet\n return style\n && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY);\n}\n\nfunction getShadowKey(displayable: Displayable) {\n const style = displayable.style;\n const globalScale = displayable.getGlobalScale();\n return [\n style.shadowColor,\n (style.shadowBlur || 0).toFixed(2), // Reduce the precision\n (style.shadowOffsetX || 0).toFixed(2),\n (style.shadowOffsetY || 0).toFixed(2),\n globalScale[0],\n globalScale[1]\n ].join(',');\n}", "/**\n * SVG Painter\n * @module zrender/svg/Painter\n */\n\nimport {createElement, normalizeColor} from './core';\nimport * as util from '../core/util';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport arrayDiff from '../core/arrayDiff';\nimport GradientManager from './helper/GradientManager';\nimport PatternManager from './helper/PatternManager';\nimport ClippathManager, {hasClipPath} from './helper/ClippathManager';\nimport ShadowManager from './helper/ShadowManager';\nimport {\n path as svgPath,\n image as svgImage,\n text as svgText,\n SVGProxy\n} from './graphic';\nimport Displayable from '../graphic/Displayable';\nimport Storage from '../Storage';\nimport { PainterBase } from '../PainterBase';\n\nfunction parseInt10(val: string) {\n return parseInt(val, 10);\n}\n\nfunction getSvgProxy(el: Displayable) {\n if (el instanceof Path) {\n return svgPath;\n }\n else if (el instanceof ZRImage) {\n return svgImage;\n }\n else if (el instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n}\n\nfunction checkParentAvailable(parent: SVGElement, child: SVGElement) {\n return child && parent && child.parentNode !== parent;\n}\n\nfunction insertAfter(parent: SVGElement, child: SVGElement, prevSibling: SVGElement) {\n if (checkParentAvailable(parent, child) && prevSibling) {\n const nextSibling = prevSibling.nextSibling;\n nextSibling ? parent.insertBefore(child, nextSibling)\n : parent.appendChild(child);\n }\n}\n\nfunction prepend(parent: SVGElement, child: SVGElement) {\n if (checkParentAvailable(parent, child)) {\n const firstChild = parent.firstChild;\n firstChild ? parent.insertBefore(child, firstChild)\n : parent.appendChild(child);\n }\n}\n\nfunction remove(parent: SVGElement, child: SVGElement) {\n if (child && parent && child.parentNode === parent) {\n parent.removeChild(child);\n }\n}\nfunction removeFromMyParent(child: SVGElement) {\n if (child && child.parentNode) {\n child.parentNode.removeChild(child);\n }\n}\n\nfunction getSvgElement(displayable: Displayable) {\n return displayable.__svgEl;\n}\n\ninterface SVGPainterOption {\n width?: number | string\n height?: number | string\n}\n\nclass SVGPainter implements PainterBase {\n\n type = 'svg'\n\n root: HTMLElement\n\n storage: Storage\n\n private _opts: SVGPainterOption\n\n private _svgDom: SVGElement\n private _svgRoot: SVGGElement\n private _backgroundRoot: SVGGElement\n private _backgroundNode: SVGRectElement\n\n private _gradientManager: GradientManager\n private _patternManager: PatternManager\n private _clipPathManager: ClippathManager\n private _shadowManager: ShadowManager\n\n private _viewport: HTMLDivElement\n private _visibleList: Displayable[]\n\n private _width: number\n private _height: number\n\n constructor(root: HTMLElement, storage: Storage, opts: SVGPainterOption, zrId: number) {\n this.root = root;\n this.storage = storage;\n this._opts = opts = util.extend({}, opts || {});\n\n const svgDom = createElement('svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.w3.org/2000/svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDom.setAttribute('version', '1.1');\n svgDom.setAttribute('baseProfile', 'full');\n svgDom.style.cssText = 'user-select:none;position:absolute;left:0;top:0;';\n\n const bgRoot = createElement('g') as SVGGElement;\n svgDom.appendChild(bgRoot);\n const svgRoot = createElement('g') as SVGGElement;\n svgDom.appendChild(svgRoot);\n\n this._gradientManager = new GradientManager(zrId, svgRoot);\n this._patternManager = new PatternManager(zrId, svgRoot);\n this._clipPathManager = new ClippathManager(zrId, svgRoot);\n this._shadowManager = new ShadowManager(zrId, svgRoot);\n\n const viewport = document.createElement('div');\n viewport.style.cssText = 'overflow:hidden;position:relative';\n\n this._svgDom = svgDom;\n this._svgRoot = svgRoot;\n this._backgroundRoot = bgRoot;\n this._viewport = viewport;\n\n root.appendChild(viewport);\n viewport.appendChild(svgDom);\n\n this.resize(opts.width, opts.height);\n\n this._visibleList = [];\n }\n\n getType() {\n return 'svg';\n }\n\n getViewportRoot() {\n return this._viewport;\n }\n\n getSvgDom() {\n return this._svgDom;\n }\n\n getSvgRoot() {\n return this._svgRoot;\n }\n\n getViewportRootOffset() {\n const viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n }\n\n refresh() {\n\n const list = this.storage.getDisplayList(true);\n\n this._paintList(list);\n }\n\n setBackgroundColor(backgroundColor: string) {\n // TODO gradient\n // Insert a bg rect instead of setting background to viewport.\n // Otherwise, the exported SVG don't have background.\n if (this._backgroundRoot && this._backgroundNode) {\n this._backgroundRoot.removeChild(this._backgroundNode);\n }\n\n const bgNode = createElement('rect') as SVGRectElement;\n bgNode.setAttribute('width', this.getWidth() as any);\n bgNode.setAttribute('height', this.getHeight() as any);\n bgNode.setAttribute('x', 0 as any);\n bgNode.setAttribute('y', 0 as any);\n bgNode.setAttribute('id', 0 as any);\n const { color, opacity } = normalizeColor(backgroundColor);\n bgNode.setAttribute('fill', color);\n bgNode.setAttribute('fill-opacity', opacity as any);\n\n this._backgroundRoot.appendChild(bgNode);\n this._backgroundNode = bgNode;\n }\n\n createSVGElement(tag: string): SVGElement {\n return createElement(tag);\n }\n\n paintOne(el: Displayable): SVGElement {\n const svgProxy = getSvgProxy(el);\n svgProxy && (svgProxy as SVGProxy).brush(el);\n return getSvgElement(el);\n }\n\n _paintList(list: Displayable[]) {\n const gradientManager = this._gradientManager;\n const patternManager = this._patternManager;\n const clipPathManager = this._clipPathManager;\n const shadowManager = this._shadowManager;\n\n gradientManager.markAllUnused();\n patternManager.markAllUnused();\n clipPathManager.markAllUnused();\n shadowManager.markAllUnused();\n\n const svgRoot = this._svgRoot;\n const visibleList = this._visibleList;\n const listLen = list.length;\n\n const newVisibleList = [];\n\n for (let i = 0; i < listLen; i++) {\n const displayable = list[i];\n const svgProxy = getSvgProxy(displayable);\n let svgElement = getSvgElement(displayable);\n if (!displayable.invisible) {\n if (displayable.__dirty || !svgElement) {\n svgProxy && (svgProxy as SVGProxy).brush(displayable);\n svgElement = getSvgElement(displayable);\n // Update gradient and shadow\n if (svgElement && displayable.style) {\n gradientManager.update(displayable.style.fill);\n gradientManager.update(displayable.style.stroke);\n patternManager.update(displayable.style.fill);\n patternManager.update(displayable.style.stroke);\n shadowManager.update(svgElement, displayable);\n }\n\n displayable.__dirty = 0;\n }\n\n // May have optimizations and ignore brush(like empty string in TSpan)\n if (svgElement) {\n newVisibleList.push(displayable);\n }\n\n }\n }\n\n const diff = arrayDiff(visibleList, newVisibleList);\n let prevSvgElement;\n let topPrevSvgElement;\n\n // NOTE: First do remove, in case element moved to the head and do remove\n // after add\n for (let i = 0; i < diff.length; i++) {\n const item = diff[i];\n if (item.removed) {\n for (let k = 0; k < item.count; k++) {\n const displayable = visibleList[item.indices[k]];\n const svgElement = getSvgElement(displayable);\n hasClipPath(displayable) ? removeFromMyParent(svgElement)\n : remove(svgRoot, svgElement);\n }\n }\n }\n\n let prevDisplayable;\n let currentClipGroup;\n for (let i = 0; i < diff.length; i++) {\n const item = diff[i];\n // const isAdd = item.added;\n if (item.removed) {\n continue;\n }\n for (let k = 0; k < item.count; k++) {\n const displayable = newVisibleList[item.indices[k]];\n // Update clipPath\n const clipGroup = clipPathManager.update(displayable, prevDisplayable);\n if (clipGroup !== currentClipGroup) {\n // First pop to top level.\n prevSvgElement = topPrevSvgElement;\n if (clipGroup) {\n // Enter second level of clipping group.\n prevSvgElement ? insertAfter(svgRoot, clipGroup, prevSvgElement)\n : prepend(svgRoot, clipGroup);\n topPrevSvgElement = clipGroup;\n // Reset prevSvgElement in second level.\n prevSvgElement = null;\n }\n currentClipGroup = clipGroup;\n }\n\n const svgElement = getSvgElement(displayable);\n // if (isAdd) {\n prevSvgElement\n ? insertAfter(currentClipGroup || svgRoot, svgElement, prevSvgElement)\n : prepend(currentClipGroup || svgRoot, svgElement);\n // }\n\n prevSvgElement = svgElement || prevSvgElement;\n if (!currentClipGroup) {\n topPrevSvgElement = prevSvgElement;\n }\n\n gradientManager.markUsed(displayable);\n gradientManager.addWithoutUpdate(svgElement, displayable);\n\n patternManager.markUsed(displayable);\n patternManager.addWithoutUpdate(svgElement, displayable);\n\n clipPathManager.markUsed(displayable);\n\n prevDisplayable = displayable;\n }\n }\n\n gradientManager.removeUnused();\n patternManager.removeUnused();\n clipPathManager.removeUnused();\n shadowManager.removeUnused();\n\n this._visibleList = newVisibleList;\n }\n\n // Not used any more\n // _getDefs(isForceCreating?: boolean) {\n // let svgRoot = this._svgDom;\n // let defs = svgRoot.getElementsByTagName('defs');\n // if (defs.length === 0) {\n // // Not exist\n // if (isForceCreating) {\n // let defs = svgRoot.insertBefore(\n // createElement('defs'), // Create new tag\n // svgRoot.firstChild // Insert in the front of svg\n // );\n // if (!defs.contains) {\n // // IE doesn't support contains method\n // defs.contains = function (el) {\n // const children = defs.children;\n // if (!children) {\n // return false;\n // }\n // for (let i = children.length - 1; i >= 0; --i) {\n // if (children[i] === el) {\n // return true;\n // }\n // }\n // return false;\n // };\n // }\n // return defs;\n // }\n // else {\n // return null;\n // }\n // }\n // else {\n // return defs[0];\n // }\n // }\n\n resize(width: number | string, height: number | string) {\n const viewport = this._viewport;\n // FIXME Why ?\n viewport.style.display = 'none';\n\n // Save input w/h\n const opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n\n width = this._getSize(0);\n height = this._getSize(1);\n\n viewport.style.display = '';\n\n if (this._width !== width || this._height !== height) {\n this._width = width;\n this._height = height;\n\n const viewportStyle = viewport.style;\n viewportStyle.width = width + 'px';\n viewportStyle.height = height + 'px';\n\n const svgRoot = this._svgDom;\n // Set width by 'svgRoot.width = width' is invalid\n svgRoot.setAttribute('width', width + '');\n svgRoot.setAttribute('height', height + '');\n }\n\n if (this._backgroundNode) {\n this._backgroundNode.setAttribute('width', width as any);\n this._backgroundNode.setAttribute('height', height as any);\n }\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u5BBD\u5EA6\n */\n getWidth() {\n return this._width;\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u9AD8\u5EA6\n */\n getHeight() {\n return this._height;\n }\n\n _getSize(whIdx: number) {\n const opts = this._opts;\n const wh = ['width', 'height'][whIdx] as 'width' | 'height';\n const cwh = ['clientWidth', 'clientHeight'][whIdx] as 'clientWidth' | 'clientHeight';\n const plt = ['paddingLeft', 'paddingTop'][whIdx] as 'paddingLeft' | 'paddingTop';\n const prb = ['paddingRight', 'paddingBottom'][whIdx] as 'paddingRight' | 'paddingBottom';\n\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh] as string);\n }\n\n const root = this.root;\n // IE8 does not support getComputedStyle, but it use VML.\n const stl = document.defaultView.getComputedStyle(root);\n\n return (\n (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)\n ) | 0;\n }\n\n dispose() {\n this.root.innerHTML = '';\n\n this._svgRoot\n = this._backgroundRoot\n = this._svgDom\n = this._backgroundNode\n = this._viewport\n = this.storage\n = null;\n }\n\n clear() {\n const viewportNode = this._viewport;\n if (viewportNode && viewportNode.parentNode) {\n viewportNode.parentNode.removeChild(viewportNode);\n }\n }\n\n toDataURL() {\n this.refresh();\n const svgDom = this._svgDom;\n const outerHTML = svgDom.outerHTML\n // outerHTML of `svg` tag is not supported in IE, use `parentNode.innerHTML` instead\n // PENDING: Or use `new XMLSerializer().serializeToString(svg)`?\n || (svgDom.parentNode && svgDom.parentNode as HTMLElement).innerHTML;\n const html = encodeURIComponent(outerHTML.replace(/>\\n\\r<'));\n return 'data:image/svg+xml;charset=UTF-8,' + html;\n }\n refreshHover = createMethodNotSupport('refreshHover') as PainterBase['refreshHover'];\n pathToImage = createMethodNotSupport('pathToImage') as PainterBase['pathToImage'];\n configLayer = createMethodNotSupport('configLayer') as PainterBase['configLayer'];\n}\n\n\n// Not supported methods\nfunction createMethodNotSupport(method: string): any {\n return function () {\n util.logError('In SVG mode painter not support method \"' + method + '\"');\n };\n}\n\n\nexport default SVGPainter;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport SVGPainter from 'zrender/src/svg/Painter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPainter('svg', SVGPainter);\n}", "import * as util from '../core/util';\nimport {devicePixelRatio} from '../config';\nimport { ImagePatternObject } from '../graphic/Pattern';\nimport CanvasPainter from './Painter';\nimport { GradientObject, InnerGradientObject } from '../graphic/Gradient';\nimport { ZRCanvasRenderingContext } from '../core/types';\nimport Eventful from '../core/Eventful';\nimport { ElementEventCallback } from '../Element';\nimport { getCanvasGradient } from './helper';\nimport { createCanvasPattern } from './graphic';\nimport Displayable from '../graphic/Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { REDARAW_BIT } from '../graphic/constants';\n\nfunction returnFalse() {\n return false;\n}\n\nfunction createDom(id: string, painter: CanvasPainter, dpr: number) {\n const newDom = util.createCanvas();\n const width = painter.getWidth();\n const height = painter.getHeight();\n\n const newDomStyle = newDom.style;\n if (newDomStyle) { // In node or some other non-browser environment\n newDomStyle.position = 'absolute';\n newDomStyle.left = '0';\n newDomStyle.top = '0';\n newDomStyle.width = width + 'px';\n newDomStyle.height = height + 'px';\n\n newDom.setAttribute('data-zr-dom-id', id);\n }\n\n newDom.width = width * dpr;\n newDom.height = height * dpr;\n\n return newDom;\n}\n\nexport interface LayerConfig {\n // \u6BCF\u6B21\u6E05\u7A7A\u753B\u5E03\u7684\u989C\u8272\n clearColor?: string | GradientObject | ImagePatternObject\n // \u662F\u5426\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\n motionBlur?: boolean\n // \u5728\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\u7684\u65F6\u5019\u4F7F\u7528\uFF0C\u4E0E\u4E0A\u4E00\u5E27\u6DF7\u5408\u7684alpha\u503C\uFF0C\u503C\u8D8A\u5927\u5C3E\u8FF9\u8D8A\u660E\u663E\n lastFrameAlpha?: number\n};\n\nexport default class Layer extends Eventful {\n\n id: string\n\n dom: HTMLCanvasElement\n domBack: HTMLCanvasElement\n\n ctx: CanvasRenderingContext2D\n ctxBack: CanvasRenderingContext2D\n\n painter: CanvasPainter\n\n // Configs\n /**\n * \u6BCF\u6B21\u6E05\u7A7A\u753B\u5E03\u7684\u989C\u8272\n */\n clearColor: string | GradientObject | ImagePatternObject\n /**\n * \u662F\u5426\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\n */\n motionBlur = false\n /**\n * \u5728\u5F00\u542F\u52A8\u6001\u6A21\u7CCA\u7684\u65F6\u5019\u4F7F\u7528\uFF0C\u4E0E\u4E0A\u4E00\u5E27\u6DF7\u5408\u7684alpha\u503C\uFF0C\u503C\u8D8A\u5927\u5C3E\u8FF9\u8D8A\u660E\u663E\n */\n lastFrameAlpha = 0.7\n /**\n * Layer dpr\n */\n dpr = 1\n\n /**\n * Virtual layer will not be inserted into dom.\n */\n virtual = false\n\n config = {}\n\n incremental = false\n\n zlevel = 0\n\n maxRepaintRectCount = 5\n\n private _paintRects: BoundingRect[]\n\n __painter: CanvasPainter\n\n __dirty = true\n __firstTimePaint = true\n\n __used = false\n\n __drawIndex = 0\n __startIndex = 0\n __endIndex = 0\n\n // indices in the previous frame\n __prevStartIndex: number = null\n __prevEndIndex: number = null\n\n __builtin__: boolean\n\n constructor(id: string | HTMLCanvasElement, painter: CanvasPainter, dpr?: number) {\n super();\n\n let dom;\n dpr = dpr || devicePixelRatio;\n if (typeof id === 'string') {\n dom = createDom(id, painter, dpr);\n }\n // Not using isDom because in node it will return false\n else if (util.isObject(id)) {\n dom = id;\n id = dom.id;\n }\n this.id = id as string;\n this.dom = dom;\n\n const domStyle = dom.style;\n if (domStyle) { // Not in node\n dom.onselectstart = returnFalse; // \u907F\u514D\u9875\u9762\u9009\u4E2D\u7684\u5C34\u5C2C\n domStyle.webkitUserSelect = 'none';\n domStyle.userSelect = 'none';\n domStyle.webkitTapHighlightColor = 'rgba(0,0,0,0)';\n (domStyle as any)['-webkit-touch-callout'] = 'none';\n domStyle.padding = '0';\n domStyle.margin = '0';\n domStyle.borderWidth = '0';\n }\n\n this.domBack = null;\n this.ctxBack = null;\n\n this.painter = painter;\n\n this.config = null;\n\n this.dpr = dpr;\n }\n\n getElementCount() {\n return this.__endIndex - this.__startIndex;\n }\n\n afterBrush() {\n this.__prevStartIndex = this.__startIndex;\n this.__prevEndIndex = this.__endIndex;\n }\n\n initContext() {\n this.ctx = this.dom.getContext('2d');\n (this.ctx as ZRCanvasRenderingContext).dpr = this.dpr;\n }\n\n setUnpainted() {\n this.__firstTimePaint = true;\n }\n\n createBackBuffer() {\n const dpr = this.dpr;\n\n this.domBack = createDom('back-' + this.id, this.painter, dpr);\n this.ctxBack = this.domBack.getContext('2d');\n\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n\n /**\n * Create repaint list when using dirty rect rendering.\n *\n * @param displayList current rendering list\n * @param prevList last frame rendering list\n * @return repaint rects. null for the first frame, [] for no element dirty\n */\n createRepaintRects(\n displayList: Displayable[],\n prevList: Displayable[],\n viewWidth: number,\n viewHeight: number\n ) {\n if (this.__firstTimePaint) {\n this.__firstTimePaint = false;\n return null;\n }\n\n const mergedRepaintRects: BoundingRect[] = [];\n const maxRepaintRectCount = this.maxRepaintRectCount;\n let full = false;\n const pendingRect = new BoundingRect(0, 0, 0, 0);\n\n function addRectToMergePool(rect: BoundingRect) {\n if (!rect.isFinite() || rect.isZero()) {\n return;\n }\n\n if (mergedRepaintRects.length === 0) {\n // First rect, create new merged rect\n const boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n else {\n let isMerged = false;\n let minDeltaArea = Infinity;\n let bestRectToMergeIdx = 0;\n for (let i = 0; i < mergedRepaintRects.length; ++i) {\n const mergedRect = mergedRepaintRects[i];\n\n // Merge if has intersection\n if (mergedRect.intersect(rect)) {\n const pendingRect = new BoundingRect(0, 0, 0, 0);\n pendingRect.copy(mergedRect);\n pendingRect.union(rect);\n mergedRepaintRects[i] = pendingRect;\n isMerged = true;\n break;\n }\n else if (full) {\n // Merged to exists rectangles if full\n pendingRect.copy(rect);\n pendingRect.union(mergedRect);\n const aArea = rect.width * rect.height;\n const bArea = mergedRect.width * mergedRect.height;\n const pendingArea = pendingRect.width * pendingRect.height;\n const deltaArea = pendingArea - aArea - bArea;\n if (deltaArea < minDeltaArea) {\n minDeltaArea = deltaArea;\n bestRectToMergeIdx = i;\n }\n }\n }\n\n if (full) {\n mergedRepaintRects[bestRectToMergeIdx].union(rect);\n isMerged = true;\n }\n\n if (!isMerged) {\n // Create new merged rect if cannot merge with current\n const boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n if (!full) {\n full = mergedRepaintRects.length >= maxRepaintRectCount;\n }\n }\n }\n\n /**\n * Loop the paint list of this frame and get the dirty rects of elements\n * in this frame.\n */\n for (let i = this.__startIndex; i < this.__endIndex; ++i) {\n const el = displayList[i];\n if (el) {\n /**\n * `shouldPaint` is true only when the element is not ignored or\n * invisible and all its ancestors are not ignored.\n * `shouldPaint` being true means it will be brushed this frame.\n *\n * `__isRendered` being true means the element is currently on\n * the canvas.\n *\n * `__dirty` being true means the element should be brushed this\n * frame.\n *\n * We only need to repaint the element's previous painting rect\n * if it's currently on the canvas and needs repaint this frame\n * or not painted this frame.\n */\n const shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n const prevRect = el.__isRendered && ((el.__dirty & REDARAW_BIT) || !shouldPaint)\n ? el.getPrevPaintRect()\n : null;\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n\n /**\n * On the other hand, we only need to paint the current rect\n * if the element should be brushed this frame and either being\n * dirty or not rendered before.\n */\n const curRect = shouldPaint && ((el.__dirty & REDARAW_BIT) || !el.__isRendered)\n ? el.getPaintRect()\n : null;\n if (curRect) {\n addRectToMergePool(curRect);\n }\n }\n }\n\n /**\n * The above loop calculates the dirty rects of elements that are in the\n * paint list this frame, which does not include those elements removed\n * in this frame. So we loop the `prevList` to get the removed elements.\n */\n for (let i = this.__prevStartIndex; i < this.__prevEndIndex; ++i) {\n const el = prevList[i];\n /**\n * Consider the elements whose ancestors are invisible, they should\n * not be painted and their previous painting rects should be\n * cleared if they are rendered on the canvas (`__isRendered` being\n * true). `!shouldPaint` means the element is not brushed in this\n * frame.\n *\n * `!el.__zr` means it's removed from the storage.\n *\n * In conclusion, an element needs to repaint the previous painting\n * rect if and only if it's not painted this frame and was\n * previously painted on the canvas.\n */\n const shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n if (el && (!shouldPaint || !el.__zr) && el.__isRendered) {\n // el was removed\n const prevRect = el.getPrevPaintRect();\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n }\n }\n\n // Merge intersected rects in the result\n let hasIntersections;\n do {\n hasIntersections = false;\n for (let i = 0; i < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].isZero()) {\n mergedRepaintRects.splice(i, 1);\n continue;\n }\n for (let j = i + 1; j < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].intersect(mergedRepaintRects[j])) {\n hasIntersections = true;\n mergedRepaintRects[i].union(mergedRepaintRects[j]);\n mergedRepaintRects.splice(j, 1);\n }\n else {\n j++;\n }\n }\n i++;\n }\n } while (hasIntersections);\n\n this._paintRects = mergedRepaintRects;\n\n return mergedRepaintRects;\n }\n\n /**\n * Get paint rects for debug usage.\n */\n debugGetPaintRects() {\n return (this._paintRects || []).slice();\n }\n\n resize(width: number, height: number) {\n const dpr = this.dpr;\n\n const dom = this.dom;\n const domStyle = dom.style;\n const domBack = this.domBack;\n\n if (domStyle) {\n domStyle.width = width + 'px';\n domStyle.height = height + 'px';\n }\n\n dom.width = width * dpr;\n dom.height = height * dpr;\n\n if (domBack) {\n domBack.width = width * dpr;\n domBack.height = height * dpr;\n\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n }\n\n /**\n * \u6E05\u7A7A\u8BE5\u5C42\u753B\u5E03\n */\n clear(\n clearAll?: boolean,\n clearColor?: string | GradientObject | ImagePatternObject,\n repaintRects?: BoundingRect[]\n ) {\n const dom = this.dom;\n const ctx = this.ctx;\n const width = dom.width;\n const height = dom.height;\n\n clearColor = clearColor || this.clearColor;\n const haveMotionBLur = this.motionBlur && !clearAll;\n const lastFrameAlpha = this.lastFrameAlpha;\n\n const dpr = this.dpr;\n const self = this;\n\n if (haveMotionBLur) {\n if (!this.domBack) {\n this.createBackBuffer();\n }\n\n this.ctxBack.globalCompositeOperation = 'copy';\n this.ctxBack.drawImage(\n dom, 0, 0,\n width / dpr,\n height / dpr\n );\n }\n\n const domBack = this.domBack;\n\n function doClear(x: number, y: number, width: number, height: number) {\n ctx.clearRect(x, y, width, height);\n if (clearColor && clearColor !== 'transparent') {\n let clearColorGradientOrPattern;\n // Gradient\n if (util.isGradientObject(clearColor)) {\n // Cache canvas gradient\n clearColorGradientOrPattern = (clearColor as InnerGradientObject).__canvasGradient\n || getCanvasGradient(ctx, clearColor, {\n x: 0,\n y: 0,\n width: width,\n height: height\n });\n\n (clearColor as InnerGradientObject).__canvasGradient = clearColorGradientOrPattern;\n }\n // Pattern\n else if (util.isImagePatternObject(clearColor)) {\n clearColorGradientOrPattern = createCanvasPattern(\n ctx, clearColor, {\n dirty() {\n // TODO\n self.setUnpainted();\n self.__painter.refresh();\n }\n }\n );\n }\n ctx.save();\n ctx.fillStyle = clearColorGradientOrPattern || (clearColor as string);\n ctx.fillRect(x, y, width, height);\n ctx.restore();\n }\n\n if (haveMotionBLur) {\n ctx.save();\n ctx.globalAlpha = lastFrameAlpha;\n ctx.drawImage(domBack, x, y, width, height);\n ctx.restore();\n }\n };\n\n if (!repaintRects || haveMotionBLur) {\n // Clear the full canvas\n doClear(0, 0, width, height);\n }\n else if (repaintRects.length) {\n // Clear the repaint areas\n util.each(repaintRects, rect => {\n doClear(\n rect.x * dpr,\n rect.y * dpr,\n rect.width * dpr,\n rect.height * dpr\n );\n });\n }\n }\n\n // Iterface of refresh\n refresh: (clearColor?: string | GradientObject | ImagePatternObject) => void\n\n // Interface of renderToCanvas in getRenderedCanvas\n renderToCanvas: (ctx: CanvasRenderingContext2D) => void\n\n // Events\n onclick: ElementEventCallback\n ondblclick: ElementEventCallback\n onmouseover: ElementEventCallback\n onmouseout: ElementEventCallback\n onmousemove: ElementEventCallback\n onmousewheel: ElementEventCallback\n onmousedown: ElementEventCallback\n onmouseup: ElementEventCallback\n oncontextmenu: ElementEventCallback\n\n ondrag: ElementEventCallback\n ondragstart: ElementEventCallback\n ondragend: ElementEventCallback\n ondragenter: ElementEventCallback\n ondragleave: ElementEventCallback\n ondragover: ElementEventCallback\n ondrop: ElementEventCallback\n}", "import {devicePixelRatio} from '../config';\nimport * as util from '../core/util';\nimport Layer, { LayerConfig } from './Layer';\nimport requestAnimationFrame from '../animation/requestAnimationFrame';\nimport ZRImage from '../graphic/Image';\nimport env from '../core/env';\nimport Displayable from '../graphic/Displayable';\nimport { WXCanvasRenderingContext, ZRCanvasRenderingContext } from '../core/types';\nimport { GradientObject } from '../graphic/Gradient';\nimport { ImagePatternObject } from '../graphic/Pattern';\nimport Storage from '../Storage';\nimport { brush, BrushScope, brushSingle } from './graphic';\nimport { PainterBase } from '../PainterBase';\nimport BoundingRect from '../core/BoundingRect';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport Path from '../graphic/Path';\nimport { REDARAW_BIT } from '../graphic/constants';\n\nconst HOVER_LAYER_ZLEVEL = 1e5;\nconst CANVAS_ZLEVEL = 314159;\n\nconst EL_AFTER_INCREMENTAL_INC = 0.01;\nconst INCREMENTAL_INC = 0.001;\n\nfunction parseInt10(val: string) {\n return parseInt(val, 10);\n}\n\nfunction isLayerValid(layer: Layer) {\n if (!layer) {\n return false;\n }\n\n if (layer.__builtin__) {\n return true;\n }\n\n if (typeof (layer.resize) !== 'function'\n || typeof (layer.refresh) !== 'function'\n ) {\n return false;\n }\n\n return true;\n}\n\nfunction createRoot(width: number, height: number) {\n const domRoot = document.createElement('div');\n\n // domRoot.onselectstart = returnFalse; // Avoid page selected\n domRoot.style.cssText = [\n 'position:relative',\n // IOS13 safari probably has a compositing bug (z order of the canvas and the consequent\n // dom does not act as expected) when some of the parent dom has\n // `-webkit-overflow-scrolling: touch;` and the webpage is longer than one screen and\n // the canvas is not at the top part of the page.\n // Check `https://bugs.webkit.org/show_bug.cgi?id=203681` for more details. We remove\n // this `overflow:hidden` to avoid the bug.\n // 'overflow:hidden',\n 'width:' + width + 'px',\n 'height:' + height + 'px',\n 'padding:0',\n 'margin:0',\n 'border-width:0'\n ].join(';') + ';';\n\n return domRoot;\n}\n\ninterface CanvasPainterOption {\n devicePixelRatio?: number\n width?: number | string // Can be 10 / 10px / auto\n height?: number | string,\n useDirtyRect?: boolean\n}\n\nexport default class CanvasPainter implements PainterBase {\n\n type = 'canvas'\n\n root: HTMLElement\n\n dpr: number\n\n storage: Storage\n\n private _singleCanvas: boolean\n\n private _opts: CanvasPainterOption\n\n private _zlevelList: number[] = []\n\n private _prevDisplayList: Displayable[] = []\n\n private _layers: {[key: number]: Layer} = {} // key is zlevel\n\n private _layerConfig: {[key: number]: LayerConfig} = {} // key is zlevel\n\n /**\n * zrender will do compositing when root is a canvas and have multiple zlevels.\n */\n private _needsManuallyCompositing = false\n\n private _width: number\n private _height: number\n\n private _domRoot: HTMLElement\n\n private _hoverlayer: Layer\n\n private _redrawId: number\n\n private _backgroundColor: string | GradientObject | ImagePatternObject\n\n\n constructor(root: HTMLElement, storage: Storage, opts: CanvasPainterOption, id: number) {\n\n this.type = 'canvas';\n\n // In node environment using node-canvas\n const singleCanvas = !root.nodeName // In node ?\n || root.nodeName.toUpperCase() === 'CANVAS';\n\n this._opts = opts = util.extend({}, opts || {}) as CanvasPainterOption;\n\n /**\n * @type {number}\n */\n this.dpr = opts.devicePixelRatio || devicePixelRatio;\n /**\n * @type {boolean}\n * @private\n */\n this._singleCanvas = singleCanvas;\n /**\n * \u7ED8\u56FE\u5BB9\u5668\n * @type {HTMLElement}\n */\n this.root = root;\n\n const rootStyle = root.style;\n\n if (rootStyle) {\n rootStyle.webkitTapHighlightColor = 'transparent';\n rootStyle.webkitUserSelect = 'none';\n rootStyle.userSelect = 'none';\n (rootStyle as any)['-webkit-touch-callout'] = 'none';\n\n root.innerHTML = '';\n }\n\n /**\n * @type {module:zrender/Storage}\n */\n this.storage = storage;\n\n const zlevelList: number[] = this._zlevelList;\n\n this._prevDisplayList = [];\n\n const layers = this._layers;\n\n if (!singleCanvas) {\n this._width = this._getSize(0);\n this._height = this._getSize(1);\n\n const domRoot = this._domRoot = createRoot(\n this._width, this._height\n );\n root.appendChild(domRoot);\n }\n else {\n const rootCanvas = root as HTMLCanvasElement;\n let width = rootCanvas.width;\n let height = rootCanvas.height;\n\n if (opts.width != null) {\n // TODO sting?\n width = opts.width as number;\n }\n if (opts.height != null) {\n // TODO sting?\n height = opts.height as number;\n }\n this.dpr = opts.devicePixelRatio || 1;\n\n // Use canvas width and height directly\n rootCanvas.width = width * this.dpr;\n rootCanvas.height = height * this.dpr;\n\n this._width = width;\n this._height = height;\n\n // Create layer if only one given canvas\n // Device can be specified to create a high dpi image.\n const mainLayer = new Layer(rootCanvas, this, this.dpr);\n mainLayer.__builtin__ = true;\n mainLayer.initContext();\n // FIXME Use canvas width and height\n // mainLayer.resize(width, height);\n layers[CANVAS_ZLEVEL] = mainLayer;\n mainLayer.zlevel = CANVAS_ZLEVEL;\n // Not use common zlevel.\n zlevelList.push(CANVAS_ZLEVEL);\n\n this._domRoot = root;\n }\n }\n\n\n getType() {\n return 'canvas';\n }\n\n /**\n * If painter use a single canvas\n */\n isSingleCanvas() {\n return this._singleCanvas;\n }\n\n getViewportRoot() {\n return this._domRoot;\n }\n\n getViewportRootOffset() {\n const viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n }\n\n /**\n * \u5237\u65B0\n * @param paintAll \u5F3A\u5236\u7ED8\u5236\u6240\u6709displayable\n */\n refresh(paintAll?: boolean) {\n const list = this.storage.getDisplayList(true);\n const prevList = this._prevDisplayList;\n\n const zlevelList = this._zlevelList;\n\n this._redrawId = Math.random();\n\n this._paintList(list, prevList, paintAll, this._redrawId);\n\n // Paint custum layers\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (!layer.__builtin__ && layer.refresh) {\n const clearColor = i === 0 ? this._backgroundColor : null;\n layer.refresh(clearColor);\n }\n }\n\n if (this._opts.useDirtyRect) {\n this._prevDisplayList = list.slice();\n }\n\n return this;\n }\n\n\n refreshHover() {\n this._paintHoverList(this.storage.getDisplayList(false));\n }\n\n private _paintHoverList(list: Displayable[]) {\n let len = list.length;\n let hoverLayer = this._hoverlayer;\n hoverLayer && hoverLayer.clear();\n\n if (!len) {\n return;\n }\n\n const scope: BrushScope = {\n inHover: true,\n viewWidth: this._width,\n viewHeight: this._height\n };\n\n let ctx;\n for (let i = 0; i < len; i++) {\n const el = list[i];\n if (el.__inHover) {\n // Use a extream large zlevel\n // FIXME?\n if (!hoverLayer) {\n hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n\n if (!ctx) {\n ctx = hoverLayer.ctx;\n ctx.save();\n }\n\n brush(ctx, el, scope, i === len - 1);\n }\n }\n if (ctx) {\n ctx.restore();\n }\n }\n\n getHoverLayer() {\n return this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n\n paintOne(ctx: CanvasRenderingContext2D, el: Displayable) {\n brushSingle(ctx, el);\n }\n\n private _paintList(list: Displayable[], prevList: Displayable[], paintAll: boolean, redrawId?: number) {\n if (this._redrawId !== redrawId) {\n return;\n }\n\n paintAll = paintAll || false;\n\n this._updateLayerStatus(list);\n\n const {finished, needsRefreshHover} = this._doPaintList(list, prevList, paintAll);\n\n if (this._needsManuallyCompositing) {\n this._compositeManually();\n }\n\n if (needsRefreshHover) {\n this._paintHoverList(list);\n }\n\n if (!finished) {\n const self = this;\n requestAnimationFrame(function () {\n self._paintList(list, prevList, paintAll, redrawId);\n });\n }\n else {\n this.eachLayer(layer => {\n layer.afterBrush && layer.afterBrush();\n });\n }\n }\n\n private _compositeManually() {\n const ctx = this.getLayer(CANVAS_ZLEVEL).ctx;\n const width = (this._domRoot as HTMLCanvasElement).width;\n const height = (this._domRoot as HTMLCanvasElement).height;\n ctx.clearRect(0, 0, width, height);\n // PENDING, If only builtin layer?\n this.eachBuiltinLayer(function (layer) {\n if (layer.virtual) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n });\n }\n\n private _doPaintList(\n list: Displayable[],\n prevList: Displayable[],\n paintAll?: boolean\n ): {\n finished: boolean\n needsRefreshHover: boolean\n } {\n const layerList = [];\n const useDirtyRect = this._opts.useDirtyRect;\n for (let zi = 0; zi < this._zlevelList.length; zi++) {\n const zlevel = this._zlevelList[zi];\n const layer = this._layers[zlevel];\n if (layer.__builtin__\n && layer !== this._hoverlayer\n && (layer.__dirty || paintAll)\n // Layer with hover elements can't be redrawn.\n // && !layer.__hasHoverLayerELement\n ) {\n layerList.push(layer);\n }\n }\n\n let finished = true;\n let needsRefreshHover = false;\n\n for (let k = 0; k < layerList.length; k++) {\n const layer = layerList[k];\n const ctx = layer.ctx;\n\n const repaintRects = useDirtyRect\n && layer.createRepaintRects(list, prevList, this._width, this._height);\n\n let start = paintAll ? layer.__startIndex : layer.__drawIndex;\n\n const useTimer = !paintAll && layer.incremental && Date.now;\n const startTime = useTimer && Date.now();\n\n const clearColor = layer.zlevel === this._zlevelList[0]\n ? this._backgroundColor : null;\n\n // All elements in this layer are cleared.\n if (layer.__startIndex === layer.__endIndex) {\n layer.clear(false, clearColor, repaintRects);\n }\n else if (start === layer.__startIndex) {\n const firstEl = list[start];\n if (!firstEl.incremental || !(firstEl as IncrementalDisplayable).notClear || paintAll) {\n layer.clear(false, clearColor, repaintRects);\n }\n }\n if (start === -1) {\n console.error('For some unknown reason. drawIndex is -1');\n start = layer.__startIndex;\n }\n let i: number;\n /* eslint-disable-next-line */\n const repaint = (repaintRect?: BoundingRect) => {\n const scope: BrushScope = {\n inHover: false,\n allClipped: false,\n prevEl: null,\n viewWidth: this._width,\n viewHeight: this._height\n };\n\n for (i = start; i < layer.__endIndex; i++) {\n const el = list[i];\n\n if (el.__inHover) {\n needsRefreshHover = true;\n }\n\n this._doPaintEl(el, layer, useDirtyRect, repaintRect, scope, i === layer.__endIndex - 1);\n\n if (useTimer) {\n // Date.now can be executed in 13,025,305 ops/second.\n const dTime = Date.now() - startTime;\n // Give 15 millisecond to draw.\n // The rest elements will be drawn in the next frame.\n if (dTime > 15) {\n break;\n }\n }\n }\n\n if (scope.prevElClipPaths) {\n // Needs restore the state. If last drawn element is in the clipping area.\n ctx.restore();\n }\n };\n\n if (repaintRects) {\n if (repaintRects.length === 0) {\n // Nothing to repaint, mark as finished\n i = layer.__endIndex;\n }\n else {\n const dpr = this.dpr;\n // Set repaintRect as clipPath\n for (var r = 0; r < repaintRects.length; ++r) {\n const rect = repaintRects[r];\n\n ctx.save();\n ctx.beginPath();\n ctx.rect(\n rect.x * dpr,\n rect.y * dpr,\n rect.width * dpr,\n rect.height * dpr\n );\n ctx.clip();\n\n repaint(rect);\n ctx.restore();\n }\n }\n }\n else {\n // Paint all once\n ctx.save();\n repaint();\n ctx.restore();\n }\n\n layer.__drawIndex = i;\n\n if (layer.__drawIndex < layer.__endIndex) {\n finished = false;\n }\n }\n\n if (env.wxa) {\n // Flush for weixin application\n util.each(this._layers, function (layer) {\n if (layer && layer.ctx && (layer.ctx as WXCanvasRenderingContext).draw) {\n (layer.ctx as WXCanvasRenderingContext).draw();\n }\n });\n }\n\n return {\n finished,\n needsRefreshHover\n };\n }\n\n private _doPaintEl(\n el: Displayable,\n currentLayer: Layer,\n useDirtyRect: boolean,\n repaintRect: BoundingRect,\n scope: BrushScope,\n isLast: boolean\n ) {\n const ctx = currentLayer.ctx;\n if (useDirtyRect) {\n const paintRect = el.getPaintRect();\n if (!repaintRect || paintRect && paintRect.intersect(repaintRect)) {\n brush(ctx, el, scope, isLast);\n el.setPrevPaintRect(paintRect);\n }\n }\n else {\n brush(ctx, el, scope, isLast);\n }\n }\n\n /**\n * \u83B7\u53D6 zlevel \u6240\u5728\u5C42\uFF0C\u5982\u679C\u4E0D\u5B58\u5728\u5219\u4F1A\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u5C42\n * @param zlevel\n * @param virtual Virtual layer will not be inserted into dom.\n */\n getLayer(zlevel: number, virtual?: boolean) {\n if (this._singleCanvas && !this._needsManuallyCompositing) {\n zlevel = CANVAS_ZLEVEL;\n }\n let layer = this._layers[zlevel];\n if (!layer) {\n // Create a new layer\n layer = new Layer('zr_' + zlevel, this, this.dpr);\n layer.zlevel = zlevel;\n layer.__builtin__ = true;\n\n if (this._layerConfig[zlevel]) {\n util.merge(layer, this._layerConfig[zlevel], true);\n }\n // TODO Remove EL_AFTER_INCREMENTAL_INC magic number\n else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {\n util.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);\n }\n\n if (virtual) {\n layer.virtual = virtual;\n }\n\n this.insertLayer(zlevel, layer);\n\n // Context is created after dom inserted to document\n // Or excanvas will get 0px clientWidth and clientHeight\n layer.initContext();\n }\n\n return layer;\n }\n\n insertLayer(zlevel: number, layer: Layer) {\n\n const layersMap = this._layers;\n const zlevelList = this._zlevelList;\n const len = zlevelList.length;\n const domRoot = this._domRoot;\n let prevLayer = null;\n let i = -1;\n\n if (layersMap[zlevel]) {\n util.logError('ZLevel ' + zlevel + ' has been used already');\n return;\n }\n // Check if is a valid layer\n if (!isLayerValid(layer)) {\n util.logError('Layer of zlevel ' + zlevel + ' is not valid');\n return;\n }\n\n if (len > 0 && zlevel > zlevelList[0]) {\n for (i = 0; i < len - 1; i++) {\n if (\n zlevelList[i] < zlevel\n && zlevelList[i + 1] > zlevel\n ) {\n break;\n }\n }\n prevLayer = layersMap[zlevelList[i]];\n }\n zlevelList.splice(i + 1, 0, zlevel);\n\n layersMap[zlevel] = layer;\n\n // Vitual layer will not directly show on the screen.\n // (It can be a WebGL layer and assigned to a ZRImage element)\n // But it still under management of zrender.\n if (!layer.virtual) {\n if (prevLayer) {\n const prevDom = prevLayer.dom;\n if (prevDom.nextSibling) {\n domRoot.insertBefore(\n layer.dom,\n prevDom.nextSibling\n );\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n else {\n if (domRoot.firstChild) {\n domRoot.insertBefore(layer.dom, domRoot.firstChild);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n }\n\n layer.__painter = this;\n }\n\n // Iterate each layer\n eachLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n cb.call(context, this._layers[z], z);\n }\n }\n\n // Iterate each buildin layer\n eachBuiltinLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n }\n\n // Iterate each other layer except buildin layer\n eachOtherLayer(cb: (this: T, layer: Layer, z: number) => void, context?: T) {\n const zlevelList = this._zlevelList;\n for (let i = 0; i < zlevelList.length; i++) {\n const z = zlevelList[i];\n const layer = this._layers[z];\n if (!layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n }\n\n /**\n * \u83B7\u53D6\u6240\u6709\u5DF2\u521B\u5EFA\u7684\u5C42\n * @param prevLayer\n */\n getLayers() {\n return this._layers;\n }\n\n _updateLayerStatus(list: Displayable[]) {\n\n this.eachBuiltinLayer(function (layer, z) {\n layer.__dirty = layer.__used = false;\n });\n\n function updatePrevLayer(idx: number) {\n if (prevLayer) {\n if (prevLayer.__endIndex !== idx) {\n prevLayer.__dirty = true;\n }\n prevLayer.__endIndex = idx;\n }\n }\n\n if (this._singleCanvas) {\n for (let i = 1; i < list.length; i++) {\n const el = list[i];\n if (el.zlevel !== list[i - 1].zlevel || el.incremental) {\n this._needsManuallyCompositing = true;\n break;\n }\n }\n }\n\n let prevLayer: Layer = null;\n let incrementalLayerCount = 0;\n let prevZlevel;\n let i;\n\n for (i = 0; i < list.length; i++) {\n const el = list[i];\n const zlevel = el.zlevel;\n let layer;\n\n if (prevZlevel !== zlevel) {\n prevZlevel = zlevel;\n incrementalLayerCount = 0;\n }\n\n // TODO Not use magic number on zlevel.\n\n // Each layer with increment element can be separated to 3 layers.\n // (Other Element drawn after incremental element)\n // -----------------zlevel + EL_AFTER_INCREMENTAL_INC--------------------\n // (Incremental element)\n // ----------------------zlevel + INCREMENTAL_INC------------------------\n // (Element drawn before incremental element)\n // --------------------------------zlevel--------------------------------\n if (el.incremental) {\n layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);\n layer.incremental = true;\n incrementalLayerCount = 1;\n }\n else {\n layer = this.getLayer(\n zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0),\n this._needsManuallyCompositing\n );\n }\n\n if (!layer.__builtin__) {\n util.logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id);\n }\n\n if (layer !== prevLayer) {\n layer.__used = true;\n if (layer.__startIndex !== i) {\n layer.__dirty = true;\n }\n layer.__startIndex = i;\n if (!layer.incremental) {\n layer.__drawIndex = i;\n }\n else {\n // Mark layer draw index needs to update.\n layer.__drawIndex = -1;\n }\n updatePrevLayer(i);\n prevLayer = layer;\n }\n if ((el.__dirty & REDARAW_BIT) && !el.__inHover) { // Ignore dirty elements in hover layer.\n layer.__dirty = true;\n if (layer.incremental && layer.__drawIndex < 0) {\n // Start draw from the first dirty element.\n layer.__drawIndex = i;\n }\n }\n }\n\n updatePrevLayer(i);\n\n this.eachBuiltinLayer(function (layer, z) {\n // Used in last frame but not in this frame. Needs clear\n if (!layer.__used && layer.getElementCount() > 0) {\n layer.__dirty = true;\n layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0;\n }\n // For incremental layer. In case start index changed and no elements are dirty.\n if (layer.__dirty && layer.__drawIndex < 0) {\n layer.__drawIndex = layer.__startIndex;\n }\n });\n }\n\n /**\n * \u6E05\u9664hover\u5C42\u5916\u6240\u6709\u5185\u5BB9\n */\n clear() {\n this.eachBuiltinLayer(this._clearLayer);\n return this;\n }\n\n _clearLayer(layer: Layer) {\n layer.clear();\n }\n\n setBackgroundColor(backgroundColor: string | GradientObject | ImagePatternObject) {\n this._backgroundColor = backgroundColor;\n\n util.each(this._layers, layer => {\n layer.setUnpainted();\n });\n }\n\n /**\n * \u4FEE\u6539\u6307\u5B9Azlevel\u7684\u7ED8\u5236\u53C2\u6570\n */\n configLayer(zlevel: number, config: LayerConfig) {\n if (config) {\n const layerConfig = this._layerConfig;\n if (!layerConfig[zlevel]) {\n layerConfig[zlevel] = config;\n }\n else {\n util.merge(layerConfig[zlevel], config, true);\n }\n\n for (let i = 0; i < this._zlevelList.length; i++) {\n const _zlevel = this._zlevelList[i];\n // TODO Remove EL_AFTER_INCREMENTAL_INC magic number\n if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {\n const layer = this._layers[_zlevel];\n util.merge(layer, layerConfig[zlevel], true);\n }\n }\n }\n }\n\n /**\n * \u5220\u9664\u6307\u5B9A\u5C42\n * @param zlevel \u5C42\u6240\u5728\u7684zlevel\n */\n delLayer(zlevel: number) {\n const layers = this._layers;\n const zlevelList = this._zlevelList;\n const layer = layers[zlevel];\n if (!layer) {\n return;\n }\n layer.dom.parentNode.removeChild(layer.dom);\n delete layers[zlevel];\n\n zlevelList.splice(util.indexOf(zlevelList, zlevel), 1);\n }\n\n /**\n * \u533A\u57DF\u5927\u5C0F\u53D8\u5316\u540E\u91CD\u7ED8\n */\n resize(\n width?: number | string,\n height?: number | string\n ) {\n if (!this._domRoot.style) { // Maybe in node or worker\n if (width == null || height == null) {\n return;\n }\n // TODO width / height may be string\n this._width = width as number;\n this._height = height as number;\n\n this.getLayer(CANVAS_ZLEVEL).resize(width as number, height as number);\n }\n else {\n const domRoot = this._domRoot;\n // FIXME Why ?\n domRoot.style.display = 'none';\n\n // Save input w/h\n const opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n\n width = this._getSize(0);\n height = this._getSize(1);\n\n domRoot.style.display = '';\n\n // \u4F18\u5316\u6CA1\u6709\u5B9E\u9645\u6539\u53D8\u7684resize\n if (this._width !== width || height !== this._height) {\n domRoot.style.width = width + 'px';\n domRoot.style.height = height + 'px';\n\n for (let id in this._layers) {\n if (this._layers.hasOwnProperty(id)) {\n this._layers[id].resize(width, height);\n }\n }\n\n this.refresh(true);\n }\n\n this._width = width;\n this._height = height;\n\n }\n return this;\n }\n\n /**\n * \u6E05\u9664\u5355\u72EC\u7684\u4E00\u4E2A\u5C42\n * @param {number} zlevel\n */\n clearLayer(zlevel: number) {\n const layer = this._layers[zlevel];\n if (layer) {\n layer.clear();\n }\n }\n\n /**\n * \u91CA\u653E\n */\n dispose() {\n this.root.innerHTML = '';\n\n this.root =\n this.storage =\n\n this._domRoot =\n this._layers = null;\n }\n\n /**\n * Get canvas which has all thing rendered\n */\n getRenderedCanvas(opts?: {\n backgroundColor?: string | GradientObject | ImagePatternObject\n pixelRatio?: number\n }) {\n opts = opts || {};\n if (this._singleCanvas && !this._compositeManually) {\n return this._layers[CANVAS_ZLEVEL].dom;\n }\n\n const imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);\n imageLayer.initContext();\n imageLayer.clear(false, opts.backgroundColor || this._backgroundColor);\n\n const ctx = imageLayer.ctx;\n\n if (opts.pixelRatio <= this.dpr) {\n this.refresh();\n\n const width = imageLayer.dom.width;\n const height = imageLayer.dom.height;\n this.eachLayer(function (layer) {\n if (layer.__builtin__) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n else if (layer.renderToCanvas) {\n ctx.save();\n layer.renderToCanvas(ctx);\n ctx.restore();\n }\n });\n }\n else {\n // PENDING, echarts-gl and incremental rendering.\n const scope = {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n };\n const displayList = this.storage.getDisplayList(true);\n for (let i = 0, len = displayList.length; i < len; i++) {\n const el = displayList[i];\n brush(ctx, el, scope, i === len - 1);\n }\n }\n\n return imageLayer.dom;\n }\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u5BBD\u5EA6\n */\n getWidth() {\n return this._width;\n }\n\n /**\n * \u83B7\u53D6\u7ED8\u56FE\u533A\u57DF\u9AD8\u5EA6\n */\n getHeight() {\n return this._height;\n }\n\n _getSize(whIdx: number) {\n const opts = this._opts;\n const wh = ['width', 'height'][whIdx] as 'width' | 'height';\n const cwh = ['clientWidth', 'clientHeight'][whIdx] as 'clientWidth' | 'clientHeight';\n const plt = ['paddingLeft', 'paddingTop'][whIdx] as 'paddingLeft' | 'paddingTop';\n const prb = ['paddingRight', 'paddingBottom'][whIdx] as 'paddingRight' | 'paddingBottom';\n\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh] as string);\n }\n\n const root = this.root;\n // IE8 does not support getComputedStyle, but it use VML.\n const stl = document.defaultView.getComputedStyle(root);\n\n return (\n (root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)\n ) | 0;\n }\n\n pathToImage(path: Path, dpr?: number): ZRImage {\n dpr = dpr || this.dpr;\n\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n const rect = path.getBoundingRect();\n const style = path.style;\n const shadowBlurSize = style.shadowBlur * dpr;\n const shadowOffsetX = style.shadowOffsetX * dpr;\n const shadowOffsetY = style.shadowOffsetY * dpr;\n const lineWidth = path.hasStroke() ? style.lineWidth : 0;\n\n const leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize);\n const rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize);\n const topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize);\n const bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize);\n const width = rect.width + leftMargin + rightMargin;\n const height = rect.height + topMargin + bottomMargin;\n\n canvas.width = width * dpr;\n canvas.height = height * dpr;\n\n ctx.scale(dpr, dpr);\n ctx.clearRect(0, 0, width, height);\n (ctx as ZRCanvasRenderingContext).dpr = dpr;\n\n const pathTransform = {\n x: path.x,\n y: path.y,\n scaleX: path.scaleX,\n scaleY: path.scaleY,\n rotation: path.rotation,\n originX: path.originX,\n originY: path.originY\n };\n path.x = leftMargin - rect.x;\n path.y = topMargin - rect.y;\n path.rotation = 0;\n path.scaleX = 1;\n path.scaleY = 1;\n path.updateTransform();\n if (path) {\n brush(ctx, path, {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n }, true);\n }\n\n const imgShape = new ZRImage({\n style: {\n x: 0,\n y: 0,\n image: canvas\n }\n });\n\n util.extend(path, pathTransform);\n\n return imgShape;\n }\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPainter('canvas', CanvasPainter);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOnCartesianOptionMixin,\n SeriesOption,\n SeriesOnPolarOptionMixin,\n SeriesStackOptionMixin,\n SeriesLabelOption,\n LineStyleOption,\n ItemStyleOption,\n AreaStyleOption,\n OptionDataValue,\n SymbolOptionMixin,\n SeriesSamplingOptionMixin,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport {Group} from '../../util/graphic';\nimport {LegendIconParams} from '../../component/legend/LegendModel';\n\ntype LineDataValue = OptionDataValue | OptionDataValue[];\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface LineStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n endLabel?: LineEndLabelOption\n}\n\nexport interface LineDataItemOption extends SymbolOptionMixin,\n LineStateOption, StatesOptionMixin {\n name?: string\n\n value?: LineDataValue\n}\n\nexport interface LineEndLabelOption extends SeriesLabelOption {\n valueAnimation?: boolean\n}\n\n\nexport interface LineSeriesOption extends SeriesOption, LineStateOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesStackOptionMixin,\n SeriesSamplingOptionMixin,\n SymbolOptionMixin,\n SeriesEncodeOptionMixin {\n type?: 'line'\n\n coordinateSystem?: 'cartesian2d' | 'polar'\n\n // If clip the overflow value\n clip?: boolean\n\n label?: SeriesLabelOption\n endLabel?: LineEndLabelOption\n\n lineStyle?: LineStyleOption\n\n areaStyle?: AreaStyleOption & {\n origin?: 'auto' | 'start' | 'end'\n }\n\n step?: false | 'start' | 'end' | 'middle'\n\n smooth?: boolean | number\n\n smoothMonotone?: 'x' | 'y' | 'none'\n\n connectNulls?: boolean\n\n showSymbol?: boolean\n // false | 'auto': follow the label interval strategy.\n // true: show all symbols.\n showAllSymbol?: 'auto'\n\n data?: (LineDataValue | LineDataItemOption)[]\n}\n\nclass LineSeriesModel extends SeriesModel {\n static readonly type = 'series.line';\n type = LineSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar'];\n\n coordinateSystem: Cartesian2D | Polar;\n\n hasSymbolVisual = true;\n\n getInitialData(option: LineSeriesOption): SeriesData {\n if (__DEV__) {\n const coordSys = option.coordinateSystem;\n if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {\n throw new Error('Line not support coordinateSystem besides cartesian and polar');\n }\n }\n return createSeriesData(null, this, {\n useEncodeDefaulter: true\n });\n }\n\n static defaultOption: LineSeriesOption = {\n zlevel: 0,\n z: 3,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n clip: true,\n\n label: {\n position: 'top'\n },\n\n // itemStyle: {\n // },\n\n endLabel: {\n show: false,\n valueAnimation: true,\n distance: 8\n },\n\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n\n emphasis: {\n scale: true,\n lineStyle: {\n width: 'bolder'\n }\n },\n // areaStyle: {\n // origin of areaStyle. Valid values:\n // `'auto'/null/undefined`: from axisLine to data\n // `'start'`: from min to data\n // `'end'`: from data to max\n // origin: 'auto'\n // },\n // false, 'start', 'end', 'middle'\n step: false,\n\n // Disabled if step is true\n smooth: false,\n smoothMonotone: null,\n symbol: 'emptyCircle',\n symbolSize: 4,\n symbolRotate: null,\n\n showSymbol: true,\n // `false`: follow the label interval strategy.\n // `true`: show all symbols.\n // `'auto'`: If possible, show all symbols, otherwise\n // follow the label interval strategy.\n showAllSymbol: 'auto',\n\n // Whether to connect break point.\n connectNulls: false,\n\n // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.\n sampling: 'none',\n\n animationEasing: 'linear',\n\n // Disable progressive\n progressive: 0,\n hoverLayerThreshold: Infinity,\n\n universalTransition: {\n divideShape: 'clone'\n }\n };\n\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group {\n const group = new Group();\n\n const line = createSymbol(\n 'line',\n 0,\n opt.itemHeight / 2,\n opt.itemWidth,\n 0,\n opt.lineStyle.stroke,\n false\n );\n group.add(line);\n line.setStyle(opt.lineStyle);\n\n const visualType = this.getData().getVisual('symbol');\n const visualRotate = this.getData().getVisual('symbolRotate');\n const symbolType = visualType === 'none' ? 'circle' : visualType;\n\n // Symbol size is 80% when there is a line\n const size = opt.itemHeight * 0.8;\n const symbol = createSymbol(\n symbolType,\n (opt.itemWidth - size) / 2,\n (opt.itemHeight - size) / 2,\n size,\n size,\n opt.itemStyle.fill\n );\n group.add(symbol);\n\n symbol.setStyle(opt.itemStyle);\n\n const symbolRotate = opt.iconRotate === 'inherit'\n ? visualRotate\n : (opt.iconRotate || 0);\n symbol.rotation = symbolRotate * Math.PI / 180;\n symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symbolType.indexOf('empty') > -1) {\n symbol.style.stroke = symbol.style.fill;\n symbol.style.fill = '#fff';\n symbol.style.lineWidth = 2;\n }\n\n return group;\n }\n}\n\nexport default LineSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {retrieveRawValue} from '../../data/helper/dataProvider';\nimport SeriesData from '../../data/SeriesData';\nimport { InterpolatableValue } from '../../util/types';\nimport { isArray } from 'zrender/src/core/util';\n\n/**\n * @return label string. Not null/undefined\n */\nexport function getDefaultLabel(\n data: SeriesData,\n dataIndex: number\n): string {\n const labelDims = data.mapDimensionsAll('defaultedLabel');\n const len = labelDims.length;\n\n // Simple optimization (in lots of cases, label dims length is 1)\n if (len === 1) {\n const rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\n return rawVal != null ? rawVal + '' : null;\n }\n else if (len) {\n const vals = [];\n for (let i = 0; i < labelDims.length; i++) {\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\n }\n return vals.join(' ');\n }\n}\n\nexport function getDefaultInterpolatedLabel(\n data: SeriesData,\n interpolatedValue: InterpolatableValue\n): string {\n const labelDims = data.mapDimensionsAll('defaultedLabel');\n if (!isArray(interpolatedValue)) {\n return interpolatedValue + '';\n }\n\n const vals = [];\n for (let i = 0; i < labelDims.length; i++) {\n const dimIndex = data.getDimensionIndex(labelDims[i]);\n if (dimIndex >= 0) {\n vals.push(interpolatedValue[dimIndex]);\n }\n }\n return vals.join(' ');\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport {getDefaultLabel} from './labelHelper';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString, BlurScope, AnimationOption, ZRColor } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { SymbolDrawSeriesScope, SymbolDrawItemModelOption } from './SymbolDraw';\nimport { extend } from 'zrender/src/core/util';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype ECSymbol = ReturnType;\n\ninterface SymbolOpts {\n disableAnimation?: boolean\n\n useNameLabel?: boolean\n symbolInnerColor?: ZRColor\n}\n\nclass Symbol extends graphic.Group {\n\n private _seriesModel: SeriesModel;\n\n private _symbolType: string;\n\n /**\n * Original scale\n */\n private _sizeX: number;\n private _sizeY: number;\n\n private _z2: number;\n\n constructor(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) {\n super();\n this.updateData(data, idx, seriesScope, opts);\n }\n\n _createSymbol(\n symbolType: string,\n data: SeriesData,\n idx: number,\n symbolSize: number[],\n keepAspect: boolean\n ) {\n // Remove paths created before\n this.removeAll();\n\n // let symbolPath = createSymbol(\n // symbolType, -0.5, -0.5, 1, 1, color\n // );\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4150.\n const symbolPath = createSymbol(\n symbolType, -1, -1, 2, 2, null, keepAspect\n );\n\n symbolPath.attr({\n z2: 100,\n culling: true,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n });\n // Rewrite drift method\n symbolPath.drift = driftSymbol;\n\n this._symbolType = symbolType;\n\n this.add(symbolPath);\n }\n\n /**\n * Stop animation\n * @param {boolean} toLastFrame\n */\n stopSymbolAnimation(toLastFrame: boolean) {\n this.childAt(0).stopAnimation(null, toLastFrame);\n }\n\n getSymbolType() {\n return this._symbolType;\n }\n /**\n * FIXME:\n * Caution: This method breaks the encapsulation of this module,\n * but it indeed brings convenience. So do not use the method\n * unless you detailedly know all the implements of `Symbol`,\n * especially animation.\n *\n * Get symbol path element.\n */\n getSymbolPath() {\n return this.childAt(0) as ECSymbol;\n }\n\n /**\n * Highlight symbol\n */\n highlight() {\n enterEmphasis(this.childAt(0));\n }\n\n /**\n * Downplay symbol\n */\n downplay() {\n leaveEmphasis(this.childAt(0));\n }\n\n /**\n * @param {number} zlevel\n * @param {number} z\n */\n setZ(zlevel: number, z: number) {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.zlevel = zlevel;\n symbolPath.z = z;\n }\n\n setDraggable(draggable: boolean) {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.draggable = draggable;\n symbolPath.cursor = draggable ? 'move' : symbolPath.cursor;\n }\n\n /**\n * Update symbol properties\n */\n updateData(data: SeriesData, idx: number, seriesScope?: SymbolDrawSeriesScope, opts?: SymbolOpts) {\n this.silent = false;\n\n const symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n const seriesModel = data.hostModel as SeriesModel;\n const symbolSize = Symbol.getSymbolSize(data, idx);\n const isInit = symbolType !== this._symbolType;\n const disableAnimation = opts && opts.disableAnimation;\n\n if (isInit) {\n const keepAspect = data.getItemVisual(idx, 'symbolKeepAspect');\n this._createSymbol(symbolType as string, data, idx, symbolSize, keepAspect);\n }\n else {\n const symbolPath = this.childAt(0) as ECSymbol;\n symbolPath.silent = false;\n const target = {\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n };\n disableAnimation ? symbolPath.attr(target)\n : graphic.updateProps(symbolPath, target, seriesModel, idx);\n\n saveOldStyle(symbolPath);\n }\n\n this._updateCommon(data, idx, symbolSize, seriesScope, opts);\n\n if (isInit) {\n const symbolPath = this.childAt(0) as ECSymbol;\n\n if (!disableAnimation) {\n const target: PathProps = {\n scaleX: this._sizeX,\n scaleY: this._sizeY,\n style: {\n // Always fadeIn. Because it has fadeOut animation when symbol is removed..\n opacity: symbolPath.style.opacity\n }\n };\n symbolPath.scaleX = symbolPath.scaleY = 0;\n symbolPath.style.opacity = 0;\n graphic.initProps(symbolPath, target, seriesModel, idx);\n }\n }\n\n if (disableAnimation) {\n // Must stop remove animation manually if don't call initProps or updateProps.\n this.childAt(0).stopAnimation('remove');\n }\n\n this._seriesModel = seriesModel;\n }\n\n _updateCommon(\n data: SeriesData,\n idx: number,\n symbolSize: number[],\n seriesScope?: SymbolDrawSeriesScope,\n opts?: SymbolOpts\n ) {\n const symbolPath = this.childAt(0) as ECSymbol;\n const seriesModel = data.hostModel as SeriesModel;\n\n let emphasisItemStyle;\n let blurItemStyle;\n let selectItemStyle;\n let focus;\n let blurScope: BlurScope;\n\n let labelStatesModels;\n\n let hoverScale;\n let cursorStyle;\n\n if (seriesScope) {\n emphasisItemStyle = seriesScope.emphasisItemStyle;\n blurItemStyle = seriesScope.blurItemStyle;\n selectItemStyle = seriesScope.selectItemStyle;\n focus = seriesScope.focus;\n blurScope = seriesScope.blurScope;\n\n labelStatesModels = seriesScope.labelStatesModels;\n\n hoverScale = seriesScope.hoverScale;\n cursorStyle = seriesScope.cursorStyle;\n }\n\n if (!seriesScope || data.hasItemOption) {\n const itemModel = (seriesScope && seriesScope.itemModel)\n ? seriesScope.itemModel : data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n\n emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n\n labelStatesModels = getLabelStatesModels(itemModel);\n\n hoverScale = emphasisModel.getShallow('scale');\n cursorStyle = itemModel.getShallow('cursor');\n }\n\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);\n\n const symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);\n if (symbolOffset) {\n symbolPath.x = symbolOffset[0];\n symbolPath.y = symbolOffset[1];\n }\n\n cursorStyle && symbolPath.attr('cursor', cursorStyle);\n\n const symbolStyle = data.getItemVisual(idx, 'style');\n const visualColor = symbolStyle.fill;\n\n if (symbolPath instanceof ZRImage) {\n const pathStyle = symbolPath.style;\n symbolPath.useStyle(extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolStyle));\n }\n else {\n if (symbolPath.__isEmptyBrush) {\n // fill and stroke will be swapped if it's empty.\n // So we cloned a new style to avoid it affecting the original style in visual storage.\n // TODO Better implementation. No empty logic!\n symbolPath.useStyle(extend({}, symbolStyle));\n }\n else {\n symbolPath.useStyle(symbolStyle);\n }\n // Disable decal because symbol scale will been applied on the decal.\n symbolPath.style.decal = null;\n symbolPath.setColor(visualColor, opts && opts.symbolInnerColor);\n symbolPath.style.strokeNoScale = true;\n\n }\n const liftZ = data.getItemVisual(idx, 'liftZ');\n const z2Origin = this._z2;\n if (liftZ != null) {\n if (z2Origin == null) {\n this._z2 = symbolPath.z2;\n symbolPath.z2 += liftZ;\n }\n }\n else if (z2Origin != null) {\n symbolPath.z2 = z2Origin;\n this._z2 = null;\n }\n\n const useNameLabel = opts && opts.useNameLabel;\n\n setLabelStyle(\n symbolPath, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultText: getLabelDefaultText,\n inheritColor: visualColor as ColorString,\n defaultOpacity: symbolStyle.opacity\n }\n );\n\n // Do not execute util needed.\n function getLabelDefaultText(idx: number) {\n return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);\n }\n\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n\n const emphasisState = symbolPath.ensureState('emphasis');\n\n emphasisState.style = emphasisItemStyle;\n symbolPath.ensureState('select').style = selectItemStyle;\n symbolPath.ensureState('blur').style = blurItemStyle;\n\n if (hoverScale) {\n const scaleRatio = Math.max(1.1, 3 / this._sizeY);\n emphasisState.scaleX = this._sizeX * scaleRatio;\n emphasisState.scaleY = this._sizeY * scaleRatio;\n }\n this.setSymbolScale(1);\n\n enableHoverEmphasis(this, focus, blurScope);\n }\n\n setSymbolScale(scale: number) {\n this.scaleX = this.scaleY = scale;\n }\n\n fadeOut(cb: () => void, opt?: {\n fadeLabel: boolean,\n animation?: AnimationOption\n }) {\n const symbolPath = this.childAt(0) as ECSymbol;\n const seriesModel = this._seriesModel;\n const dataIndex = getECData(this).dataIndex;\n const animationOpt = opt && opt.animation;\n // Avoid mistaken hover when fading out\n this.silent = symbolPath.silent = true;\n // Not show text when animating\n if (opt && opt.fadeLabel) {\n const textContent = symbolPath.getTextContent();\n if (textContent) {\n graphic.removeElement(textContent, {\n style: {\n opacity: 0\n }\n }, seriesModel, {\n dataIndex,\n removeOpt: animationOpt,\n cb() {\n symbolPath.removeTextContent();\n }\n });\n }\n }\n else {\n symbolPath.removeTextContent();\n }\n\n graphic.removeElement(\n symbolPath,\n {\n style: {\n opacity: 0\n },\n scaleX: 0,\n scaleY: 0\n },\n seriesModel,\n { dataIndex, cb, removeOpt: animationOpt}\n );\n }\n\n static getSymbolSize(data: SeriesData, idx: number) {\n return normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n }\n}\n\n\nfunction driftSymbol(this: ECSymbol, dx: number, dy: number) {\n this.parent.drift(dx, dy);\n}\n\nexport default Symbol;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport SymbolClz from './Symbol';\nimport { isObject } from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport {\n StageHandlerProgressParams,\n LabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n ZRColor,\n AnimationOptionMixin,\n ZRStyleProps,\n StatesOptionMixin,\n BlurScope,\n DisplayState,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport Model from '../../model/Model';\nimport { ScatterSeriesOption } from '../scatter/ScatterSeries';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\ninterface UpdateOpt {\n isIgnore?(idx: number): boolean\n clipShape?: CoordinateSystemClipArea,\n getSymbolPoint?(idx: number): number[]\n\n disableAnimation?: boolean\n}\n\ninterface SymbolLike extends graphic.Group {\n updateData(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): void\n fadeOut?(cb: () => void): void\n}\n\ninterface SymbolLikeCtor {\n new(data: SeriesData, idx: number, scope?: SymbolDrawSeriesScope, opt?: UpdateOpt): SymbolLike\n}\n\nfunction symbolNeedsDraw(data: SeriesData, point: number[], idx: number, opt: UpdateOpt) {\n return point && !isNaN(point[0]) && !isNaN(point[1])\n && !(opt.isIgnore && opt.isIgnore(idx))\n // We do not set clipShape on group, because it will cut part of\n // the symbol element shape. We use the same clip shape here as\n // the line clip.\n && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1]))\n && data.getItemVisual(idx, 'symbol') !== 'none';\n}\n\nfunction normalizeUpdateOpt(opt: UpdateOpt) {\n if (opt != null && !isObject(opt)) {\n opt = {isIgnore: opt};\n }\n return opt || {};\n}\n\ninterface RippleEffectOption {\n period?: number\n /**\n * Scale of ripple\n */\n scale?: number\n\n brushType?: 'fill' | 'stroke'\n\n color?: ZRColor,\n\n /**\n * ripple number\n */\n number?: number\n}\n\ninterface SymbolDrawStateOption {\n itemStyle?: ItemStyleOption\n label?: LabelOption\n}\n\n// TODO Separate series and item?\nexport interface SymbolDrawItemModelOption extends SymbolOptionMixin,\n StatesOptionMixin,\n SymbolDrawStateOption {\n\n cursor?: string\n\n // If has ripple effect\n rippleEffect?: RippleEffectOption\n}\n\nexport interface SymbolDrawSeriesScope {\n emphasisItemStyle?: ZRStyleProps\n blurItemStyle?: ZRStyleProps\n selectItemStyle?: ZRStyleProps\n\n focus?: DefaultEmphasisFocus\n blurScope?: BlurScope\n\n labelStatesModels: Record>\n\n itemModel?: Model\n\n hoverScale?: boolean\n\n cursorStyle?: string\n fadeIn?: boolean\n}\n\nfunction makeSeriesScope(data: SeriesData): SymbolDrawSeriesScope {\n const seriesModel = data.hostModel as Model;\n const emphasisModel = seriesModel.getModel('emphasis');\n return {\n emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(),\n blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(),\n selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(),\n\n focus: emphasisModel.get('focus'),\n blurScope: emphasisModel.get('blurScope'),\n\n hoverScale: emphasisModel.get('scale'),\n\n labelStatesModels: getLabelStatesModels(seriesModel),\n\n cursorStyle: seriesModel.get('cursor')\n };\n}\n\nexport type ListForSymbolDraw = SeriesData>;\n\nclass SymbolDraw {\n group = new graphic.Group();\n\n private _data: ListForSymbolDraw;\n\n private _SymbolCtor: SymbolLikeCtor;\n\n private _seriesScope: SymbolDrawSeriesScope;\n\n private _getSymbolPoint: UpdateOpt['getSymbolPoint'];\n\n constructor(SymbolCtor?: SymbolLikeCtor) {\n this._SymbolCtor = SymbolCtor || SymbolClz as SymbolLikeCtor;\n }\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: ListForSymbolDraw, opt?: UpdateOpt) {\n opt = normalizeUpdateOpt(opt);\n\n const group = this.group;\n const seriesModel = data.hostModel;\n const oldData = this._data;\n const SymbolCtor = this._SymbolCtor;\n const disableAnimation = opt.disableAnimation;\n\n const seriesScope = makeSeriesScope(data);\n\n const symbolUpdateOpt = { disableAnimation };\n\n const getSymbolPoint = opt.getSymbolPoint || function (idx: number) {\n return data.getItemLayout(idx);\n };\n\n\n // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!oldData) {\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n const point = getSymbolPoint(newIdx);\n if (symbolNeedsDraw(data, point, newIdx, opt)) {\n const symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n })\n .update(function (newIdx, oldIdx) {\n let symbolEl = oldData.getItemGraphicEl(oldIdx) as SymbolLike;\n\n const point = getSymbolPoint(newIdx) as number[];\n if (!symbolNeedsDraw(data, point, newIdx, opt)) {\n group.remove(symbolEl);\n return;\n }\n const newSymbolType = data.getItemVisual(newIdx, 'symbol') || 'circle';\n const oldSymbolType = symbolEl\n && (symbolEl as SymbolClz).getSymbolType\n && (symbolEl as SymbolClz).getSymbolType();\n\n if (!symbolEl\n // Create a new if symbol type changed.\n || (oldSymbolType && oldSymbolType !== newSymbolType)\n ) {\n group.remove(symbolEl);\n symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n }\n else {\n symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt);\n const target = {\n x: point[0],\n y: point[1]\n };\n disableAnimation\n ? symbolEl.attr(target)\n : graphic.updateProps(symbolEl, target, seriesModel);\n }\n\n // Add back\n group.add(symbolEl);\n\n data.setItemGraphicEl(newIdx, symbolEl);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx) as SymbolLike;\n el && el.fadeOut(function () {\n group.remove(el);\n });\n })\n .execute();\n\n this._getSymbolPoint = getSymbolPoint;\n this._data = data;\n };\n\n isPersistent() {\n return true;\n };\n\n updateLayout() {\n const data = this._data;\n if (data) {\n // Not use animation\n data.eachItemGraphicEl((el, idx) => {\n const point = this._getSymbolPoint(idx);\n el.setPosition(point);\n el.markRedraw();\n });\n }\n };\n\n incrementalPrepareUpdate(data: ListForSymbolDraw) {\n this._seriesScope = makeSeriesScope(data);\n this._data = null;\n this.group.removeAll();\n };\n\n /**\n * Update symbols draw by new data\n */\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: ListForSymbolDraw, opt?: UpdateOpt) {\n opt = normalizeUpdateOpt(opt);\n\n function updateIncrementalAndHover(el: Displayable) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n for (let idx = taskParams.start; idx < taskParams.end; idx++) {\n const point = data.getItemLayout(idx) as number[];\n if (symbolNeedsDraw(data, point, idx, opt)) {\n const el = new this._SymbolCtor(data, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n el.setPosition(point);\n this.group.add(el);\n data.setItemGraphicEl(idx, el);\n }\n }\n };\n\n remove(enableAnimation?: boolean) {\n const group = this.group;\n const data = this._data;\n // Incremental model do not have this._data.\n if (data && enableAnimation) {\n data.eachItemGraphicEl(function (el: SymbolLike) {\n el.fadeOut(function () {\n group.remove(el);\n });\n });\n }\n else {\n group.removeAll();\n }\n };\n\n}\n\nexport default SymbolDraw;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {isDimensionStacked} from '../../data/helper/dataStackHelper';\nimport {map} from 'zrender/src/core/util';\nimport type Polar from '../../coord/polar/Polar';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesData from '../../data/SeriesData';\nimport Axis from '../../coord/Axis';\nimport type { LineSeriesOption } from './LineSeries';\n\ninterface CoordInfo {\n dataDimsForPoint: string[]\n valueStart: number\n valueAxisDim: string\n baseAxisDim: string\n stacked: boolean\n valueDim: string\n baseDim: string\n baseDataOffset: number\n stackedOverDimension: string\n}\n\nexport function prepareDataCoordInfo(\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n valueOrigin?: LineSeriesOption['areaStyle']['origin']\n): CoordInfo {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis as any);\n const valueStart = getValueStart(valueAxis, valueOrigin);\n\n const baseAxisDim = baseAxis.dim;\n const valueAxisDim = valueAxis.dim;\n const valueDim = data.mapDimension(valueAxisDim);\n const baseDim = data.mapDimension(baseAxisDim);\n const baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n\n const dims = map(coordSys.dimensions, function (coordDim) {\n return data.mapDimension(coordDim);\n });\n\n let stacked = false;\n const stackResultDim = data.getCalculationInfo('stackResultDimension');\n if (isDimensionStacked(data, dims[0] /*, dims[1]*/)) { // jshint ignore:line\n stacked = true;\n dims[0] = stackResultDim;\n }\n if (isDimensionStacked(data, dims[1] /*, dims[0]*/)) { // jshint ignore:line\n stacked = true;\n dims[1] = stackResultDim;\n }\n\n return {\n dataDimsForPoint: dims,\n valueStart: valueStart,\n valueAxisDim: valueAxisDim,\n baseAxisDim: baseAxisDim,\n stacked: !!stacked,\n valueDim: valueDim,\n baseDim: baseDim,\n baseDataOffset: baseDataOffset,\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension')\n };\n}\n\nfunction getValueStart(valueAxis: Axis, valueOrigin: LineSeriesOption['areaStyle']['origin']) {\n let valueStart = 0;\n const extent = valueAxis.scale.getExtent();\n\n if (valueOrigin === 'start') {\n valueStart = extent[0];\n }\n else if (valueOrigin === 'end') {\n valueStart = extent[1];\n }\n // auto\n else {\n // Both positive\n if (extent[0] > 0) {\n valueStart = extent[0];\n }\n // Both negative\n else if (extent[1] < 0) {\n valueStart = extent[1];\n }\n // If is one positive, and one negative, onZero shall be true\n }\n\n return valueStart;\n}\n\nexport function getStackedOnPoint(\n dataCoordInfo: CoordInfo,\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n idx: number\n) {\n let value = NaN;\n if (dataCoordInfo.stacked) {\n value = data.get(data.getCalculationInfo('stackedOverDimension'), idx) as number;\n }\n if (isNaN(value)) {\n value = dataCoordInfo.valueStart;\n }\n\n const baseDataOffset = dataCoordInfo.baseDataOffset;\n const stackedData = [];\n stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx);\n stackedData[1 - baseDataOffset] = value;\n\n return coordSys.dataToPoint(stackedData);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray } from 'zrender/src/core/util';\n\n/* global Float32Array */\nconst supportFloat32Array = typeof Float32Array !== 'undefined';\n\nconst Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array;\n\nexport function createFloat32Array(arg: number | number[]): number[] | Float32Array {\n if (isArray(arg)) {\n // Return self directly if don't support TypedArray.\n return supportFloat32Array ? new Float32Array(arg) : arg;\n }\n // Else is number\n return new Float32ArrayCtor(arg);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {prepareDataCoordInfo, getStackedOnPoint} from './helper';\nimport SeriesData from '../../data/SeriesData';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport { LineSeriesOption } from './LineSeries';\nimport { createFloat32Array } from '../../util/vendor';\n\ninterface DiffItem {\n cmd: '+' | '=' | '-'\n idx: number\n idx1?: number\n}\n\nfunction diffData(oldData: SeriesData, newData: SeriesData) {\n const diffResult: DiffItem[] = [];\n\n newData.diff(oldData)\n .add(function (idx) {\n diffResult.push({cmd: '+', idx: idx});\n })\n .update(function (newIdx, oldIdx) {\n diffResult.push({cmd: '=', idx: oldIdx, idx1: newIdx});\n })\n .remove(function (idx) {\n diffResult.push({cmd: '-', idx: idx});\n })\n .execute();\n\n return diffResult;\n}\n\nexport default function lineAnimationDiff(\n oldData: SeriesData, newData: SeriesData,\n oldStackedOnPoints: ArrayLike, newStackedOnPoints: ArrayLike,\n oldCoordSys: Cartesian2D | Polar, newCoordSys: Cartesian2D | Polar,\n oldValueOrigin: LineSeriesOption['areaStyle']['origin'],\n newValueOrigin: LineSeriesOption['areaStyle']['origin']\n) {\n const diff = diffData(oldData, newData);\n\n // let newIdList = newData.mapArray(newData.getId);\n // let oldIdList = oldData.mapArray(oldData.getId);\n\n // convertToIntId(newIdList, oldIdList);\n\n // // FIXME One data ?\n // diff = arrayDiff(oldIdList, newIdList);\n\n const currPoints: number[] = [];\n const nextPoints: number[] = [];\n // Points for stacking base line\n const currStackedPoints: number[] = [];\n const nextStackedPoints: number[] = [];\n\n const status = [];\n const sortedIndices: number[] = [];\n const rawIndices: number[] = [];\n\n const newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin);\n // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin);\n\n const oldPoints = oldData.getLayout('points') as number[] || [];\n const newPoints = newData.getLayout('points') as number[] || [];\n\n for (let i = 0; i < diff.length; i++) {\n const diffItem = diff[i];\n let pointAdded = true;\n\n let oldIdx2: number;\n let newIdx2: number;\n\n // FIXME, animation is not so perfect when dataZoom window moves fast\n // Which is in case remvoing or add more than one data in the tail or head\n switch (diffItem.cmd) {\n case '=':\n oldIdx2 = diffItem.idx * 2;\n newIdx2 = diffItem.idx1 * 2;\n let currentX = oldPoints[oldIdx2];\n let currentY = oldPoints[oldIdx2 + 1];\n const nextX = newPoints[newIdx2];\n const nextY = newPoints[newIdx2 + 1];\n\n // If previous data is NaN, use next point directly\n if (isNaN(currentX) || isNaN(currentY)) {\n currentX = nextX;\n currentY = nextY;\n }\n currPoints.push(currentX, currentY);\n nextPoints.push(nextX, nextY);\n\n currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n\n rawIndices.push(newData.getRawIndex(diffItem.idx1));\n break;\n case '+':\n const newIdx = diffItem.idx;\n const newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint;\n const oldPt = oldCoordSys.dataToPoint([\n newData.get(newDataDimsForPoint[0], newIdx),\n newData.get(newDataDimsForPoint[1], newIdx)\n ]);\n newIdx2 = newIdx * 2;\n currPoints.push(oldPt[0], oldPt[1]);\n\n nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]);\n\n const stackedOnPoint = getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, newIdx);\n\n currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n\n rawIndices.push(newData.getRawIndex(newIdx));\n break;\n case '-':\n pointAdded = false;\n }\n\n // Original indices\n if (pointAdded) {\n status.push(diffItem);\n sortedIndices.push(sortedIndices.length);\n }\n }\n\n // Diff result may be crossed if all items are changed\n // Sort by data index\n sortedIndices.sort(function (a, b) {\n return rawIndices[a] - rawIndices[b];\n });\n\n const len = currPoints.length;\n const sortedCurrPoints = createFloat32Array(len);\n const sortedNextPoints = createFloat32Array(len);\n\n const sortedCurrStackedPoints = createFloat32Array(len);\n const sortedNextStackedPoints = createFloat32Array(len);\n\n const sortedStatus = [];\n for (let i = 0; i < sortedIndices.length; i++) {\n const idx = sortedIndices[i];\n const i2 = i * 2;\n const idx2 = idx * 2;\n sortedCurrPoints[i2] = currPoints[idx2];\n sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1];\n sortedNextPoints[i2] = nextPoints[idx2];\n sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1];\n\n sortedCurrStackedPoints[i2] = currStackedPoints[idx2];\n sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1];\n sortedNextStackedPoints[i2] = nextStackedPoints[idx2];\n sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1];\n\n sortedStatus[i] = status[idx];\n }\n\n return {\n current: sortedCurrPoints,\n next: sortedNextPoints,\n\n stackedOnCurrent: sortedCurrStackedPoints,\n stackedOnNext: sortedNextStackedPoints,\n\n status: sortedStatus\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Poly path support NaN point\n\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport { cubicRootAt, cubicAt } from 'zrender/src/core/curve';\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\nfunction isPointNull(x: number, y: number) {\n return isNaN(x) || isNaN(y);\n}\n\n/**\n * Draw smoothed line in non-monotone, in may cause undesired curve in extreme\n * situations. This should be used when points are non-monotone neither in x or\n * y dimension.\n */\nfunction drawSegment(\n ctx: PathProxy,\n points: ArrayLike,\n start: number,\n segLen: number,\n allLen: number,\n dir: number,\n smooth: number,\n smoothMonotone: 'x' | 'y' | 'none',\n connectNulls: boolean\n) {\n let prevX: number;\n let prevY: number;\n let cpx0: number;\n let cpy0: number;\n let cpx1: number;\n let cpy1: number;\n let idx = start;\n let k = 0;\n for (; k < segLen; k++) {\n\n const x = points[idx * 2];\n const y = points[idx * 2 + 1];\n\n if (idx >= allLen || idx < 0) {\n break;\n }\n if (isPointNull(x, y)) {\n if (connectNulls) {\n idx += dir;\n continue;\n }\n break;\n }\n\n if (idx === start) {\n ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y);\n cpx0 = x;\n cpy0 = y;\n }\n else {\n const dx = x - prevX;\n const dy = y - prevY;\n\n // Ignore tiny segment.\n if ((dx * dx + dy * dy) < 0.5) {\n idx += dir;\n continue;\n }\n\n if (smooth > 0) {\n let nextIdx = idx + dir;\n let nextX = points[nextIdx * 2];\n let nextY = points[nextIdx * 2 + 1];\n let tmpK = k + 1;\n if (connectNulls) {\n // Find next point not null\n while (isPointNull(nextX, nextY) && tmpK < segLen) {\n tmpK++;\n nextIdx += dir;\n nextX = points[nextIdx * 2];\n nextY = points[nextIdx * 2 + 1];\n }\n }\n\n let ratioNextSeg = 0.5;\n let vx: number = 0;\n let vy: number = 0;\n let nextCpx0;\n let nextCpy0;\n // Is last point\n if (tmpK >= segLen || isPointNull(nextX, nextY)) {\n cpx1 = x;\n cpy1 = y;\n }\n else {\n vx = nextX - prevX;\n vy = nextY - prevY;\n\n const dx0 = x - prevX;\n const dx1 = nextX - x;\n const dy0 = y - prevY;\n const dy1 = nextY - y;\n let lenPrevSeg;\n let lenNextSeg;\n if (smoothMonotone === 'x') {\n lenPrevSeg = Math.abs(dx0);\n lenNextSeg = Math.abs(dx1);\n cpx1 = x - lenPrevSeg * smooth;\n cpy1 = y;\n nextCpx0 = x + lenPrevSeg * smooth;\n nextCpy0 = y;\n }\n else if (smoothMonotone === 'y') {\n lenPrevSeg = Math.abs(dy0);\n lenNextSeg = Math.abs(dy1);\n cpx1 = x;\n cpy1 = y - lenPrevSeg * smooth;\n nextCpx0 = x;\n nextCpy0 = y + lenPrevSeg * smooth;\n }\n else {\n lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0);\n lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n\n // Use ratio of seg length\n ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);\n\n cpx1 = x - vx * smooth * (1 - ratioNextSeg);\n cpy1 = y - vy * smooth * (1 - ratioNextSeg);\n\n // cp0 of next segment\n nextCpx0 = x + vx * smooth * ratioNextSeg;\n nextCpy0 = y + vy * smooth * ratioNextSeg;\n\n // Smooth constraint between point and next point.\n // Avoid exceeding extreme after smoothing.\n nextCpx0 = mathMin(nextCpx0, mathMax(nextX, x));\n nextCpy0 = mathMin(nextCpy0, mathMax(nextY, y));\n nextCpx0 = mathMax(nextCpx0, mathMin(nextX, x));\n nextCpy0 = mathMax(nextCpy0, mathMin(nextY, y));\n // Reclaculate cp1 based on the adjusted cp0 of next seg.\n vx = nextCpx0 - x;\n vy = nextCpy0 - y;\n\n cpx1 = x - vx * lenPrevSeg / lenNextSeg;\n cpy1 = y - vy * lenPrevSeg / lenNextSeg;\n\n // Smooth constraint between point and prev point.\n // Avoid exceeding extreme after smoothing.\n cpx1 = mathMin(cpx1, mathMax(prevX, x));\n cpy1 = mathMin(cpy1, mathMax(prevY, y));\n cpx1 = mathMax(cpx1, mathMin(prevX, x));\n cpy1 = mathMax(cpy1, mathMin(prevY, y));\n\n // Adjust next cp0 again.\n vx = x - cpx1;\n vy = y - cpy1;\n nextCpx0 = x + vx * lenNextSeg / lenPrevSeg;\n nextCpy0 = y + vy * lenNextSeg / lenPrevSeg;\n }\n }\n\n ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y);\n\n cpx0 = nextCpx0;\n cpy0 = nextCpy0;\n }\n else {\n ctx.lineTo(x, y);\n }\n }\n\n prevX = x;\n prevY = y;\n idx += dir;\n }\n\n return k;\n}\n\nclass ECPolylineShape {\n points: ArrayLike;\n smooth = 0;\n smoothConstraint = true;\n smoothMonotone: 'x' | 'y' | 'none';\n connectNulls: boolean;\n}\n\ninterface ECPolylineProps extends PathProps {\n shape?: Partial\n}\n\nexport class ECPolyline extends Path {\n\n readonly type = 'ec-polyline';\n\n shape: ECPolylineShape;\n\n constructor(opts?: ECPolylineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new ECPolylineShape();\n }\n\n buildPath(ctx: PathProxy, shape: ECPolylineShape) {\n const points = shape.points;\n\n let i = 0;\n let len = points.length / 2;\n\n // const result = getBoundingBox(points, shape.smoothConstraint);\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n while (i < len) {\n i += drawSegment(\n ctx, points, i, len, len,\n 1,\n shape.smooth,\n shape.smoothMonotone, shape.connectNulls\n ) + 1;\n }\n }\n\n getPointOn(xOrY: number, dim: 'x' | 'y'): number[] {\n if (!this.path) {\n this.createPathProxy();\n this.buildPath(this.path, this.shape);\n }\n const path = this.path;\n const data = path.data;\n const CMD = PathProxy.CMD;\n\n let x0;\n let y0;\n\n const isDimX = dim === 'x';\n const roots: number[] = [];\n\n for (let i = 0; i < data.length;) {\n const cmd = data[i++];\n let x;\n let y;\n let x2;\n let y2;\n let x3;\n let y3;\n let t;\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n break;\n case CMD.L:\n x = data[i++];\n y = data[i++];\n t = isDimX ? (xOrY - x0) / (x - x0)\n : (xOrY - y0) / (y - y0);\n if (t <= 1 && t >= 0) {\n const val = isDimX ? (y - y0) * t + y0\n : (x - x0) * t + x0;\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n x0 = x;\n y0 = y;\n break;\n case CMD.C:\n x = data[i++];\n y = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n x3 = data[i++];\n y3 = data[i++];\n\n const nRoot = isDimX ? cubicRootAt(x0, x, x2, x3, xOrY, roots)\n : cubicRootAt(y0, y, y2, y3, xOrY, roots);\n if (nRoot > 0) {\n for (let i = 0; i < nRoot; i++) {\n const t = roots[i];\n if (t <= 1 && t >= 0) {\n const val = isDimX ? cubicAt(y0, y, y2, y3, t)\n : cubicAt(x0, x, x2, x3, t);\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n }\n }\n\n x0 = x3;\n y0 = y3;\n break;\n }\n }\n }\n}\nclass ECPolygonShape extends ECPolylineShape {\n // Offset between stacked base points and points\n stackedOnPoints: ArrayLike;\n stackedOnSmooth: number;\n}\n\ninterface ECPolygonProps extends PathProps {\n shape?: Partial\n}\nexport class ECPolygon extends Path {\n\n readonly type = 'ec-polygon';\n\n shape: ECPolygonShape;\n\n constructor(opts?: ECPolygonProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new ECPolygonShape();\n }\n\n buildPath(ctx: PathProxy, shape: ECPolygonShape) {\n const points = shape.points;\n const stackedOnPoints = shape.stackedOnPoints;\n\n let i = 0;\n let len = points.length / 2;\n const smoothMonotone = shape.smoothMonotone;\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n while (i < len) {\n const k = drawSegment(\n ctx, points, i, len, len,\n 1,\n shape.smooth,\n smoothMonotone, shape.connectNulls\n );\n drawSegment(\n ctx, stackedOnPoints, i + k - 1, k, len,\n -1,\n shape.stackedOnSmooth,\n smoothMonotone, shape.connectNulls\n );\n i += k + 1;\n\n ctx.closePath();\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport {round} from '../../util/number';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\n\ntype SeriesModelWithLineWidth = SeriesModel;\nfunction createGridClipPath(\n cartesian: Cartesian2D,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth,\n done?: () => void,\n during?: (percent: number, clipRect: graphic.Rect) => void\n) {\n const rect = cartesian.getArea();\n\n let x = rect.x;\n let y = rect.y;\n let width = rect.width;\n let height = rect.height;\n\n const lineWidth = seriesModel.get(['lineStyle', 'width']) || 2;\n // Expand the clip path a bit to avoid the border is clipped and looks thinner\n x -= lineWidth / 2;\n y -= lineWidth / 2;\n width += lineWidth;\n height += lineWidth;\n\n // fix: https://github.com/apache/incubator-echarts/issues/11369\n x = Math.floor(x);\n width = Math.round(width);\n\n const clipPath = new graphic.Rect({\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n }\n });\n\n if (hasAnimation) {\n const baseAxis = cartesian.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isAxisInversed = baseAxis.inverse;\n\n if (isHorizontal) {\n if (isAxisInversed) {\n clipPath.shape.x += width;\n }\n clipPath.shape.width = 0;\n }\n else {\n if (!isAxisInversed) {\n clipPath.shape.y += height;\n }\n clipPath.shape.height = 0;\n }\n\n const duringCb = typeof during === 'function'\n ? (percent: number) => {\n during(percent, clipPath);\n }\n : null;\n\n graphic.initProps(clipPath, {\n shape: {\n width: width,\n height: height,\n x: x,\n y: y\n }\n }, seriesModel, null, done, duringCb);\n }\n\n return clipPath;\n}\n\nfunction createPolarClipPath(\n polar: Polar,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth\n) {\n const sectorArea = polar.getArea();\n // Avoid float number rounding error for symbol on the edge of axis extent.\n\n const r0 = round(sectorArea.r0, 1);\n const r = round(sectorArea.r, 1);\n const clipPath = new graphic.Sector({\n shape: {\n cx: round(polar.cx, 1),\n cy: round(polar.cy, 1),\n r0: r0,\n r: r,\n startAngle: sectorArea.startAngle,\n endAngle: sectorArea.endAngle,\n clockwise: sectorArea.clockwise\n }\n });\n\n if (hasAnimation) {\n const isRadial = polar.getBaseAxis().dim === 'angle';\n\n if (isRadial) {\n clipPath.shape.endAngle = sectorArea.startAngle;\n }\n else {\n clipPath.shape.r = r0;\n }\n\n graphic.initProps(clipPath, {\n shape: {\n endAngle: sectorArea.endAngle,\n r: r\n }\n }, seriesModel);\n }\n return clipPath;\n}\n\nfunction createClipPath(\n coordSys: CoordinateSystem,\n hasAnimation: boolean,\n seriesModel: SeriesModelWithLineWidth,\n done?: () => void,\n during?: (percent: number) => void\n) {\n if (!coordSys) {\n return null;\n }\n else if (coordSys.type === 'polar') {\n return createPolarClipPath(coordSys as Polar, hasAnimation, seriesModel);\n }\n else if (coordSys.type === 'cartesian2d') {\n return createGridClipPath(coordSys as Cartesian2D, hasAnimation, seriesModel, done, during);\n }\n return null;\n}\n\nexport {\n createGridClipPath,\n createPolarClipPath,\n createClipPath\n};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../model/Global';\nimport {ParsedModelFinder} from '../util/model';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { DimensionDefinitionLoose, ScaleDataValue, DimensionName } from '../util/types';\nimport Axis from './Axis';\nimport { BoundingRect } from '../util/graphic';\nimport { MatrixArray } from 'zrender/src/core/matrix';\nimport ComponentModel from '../model/Component';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport type { PrepareCustomInfo } from '../chart/custom/CustomSeries';\n\n\nexport interface CoordinateSystemCreator {\n\n create: (ecModel: GlobalModel, api: ExtensionAPI) => CoordinateSystemMaster[];\n\n // FIXME current dimensions must be string[].\n // check and unify the definition.\n // FIXME:TS check where used (seams only HeatmapSeries used?)\n // Some coordinate system do not have static dimensions (like parallel)\n dimensions?: DimensionName[];\n\n // dimensionsInfo like [{name: ..., type: ...}, 'xxx', ...]\n getDimensionsInfo?: () => DimensionDefinitionLoose[];\n}\n\n/**\n * The instance get from `CoordinateSystemManger` is `CoordinateSystemMaster`.\n */\nexport interface CoordinateSystemMaster {\n\n // FIXME current dimensions must be string[].\n // check and unify the definition.\n // Should be the same as its coordinateSystemCreator.\n dimensions: DimensionName[];\n\n model?: ComponentModel;\n\n update?: (ecModel: GlobalModel, api: ExtensionAPI) => void;\n\n // This methods is also responsible for determine whether this\n // coodinate system is applicable to the given `finder`.\n // Each coordinate system will be tried, util one returns none\n // null/undefined value.\n convertToPixel?(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]\n ): number | number[];\n\n // This methods is also responsible for determine whether this\n // coodinate system is applicable to the given `finder`.\n // Each coordinate system will be tried, util one returns none\n // null/undefined value.\n convertFromPixel?(\n ecModel: GlobalModel, finder: ParsedModelFinder, pixelValue: number | number[]\n ): number | number[];\n\n // @param point Point in global pixel coordinate system.\n // The signature of this method should be the same as `CoordinateSystemExecutive`\n containPoint(point: number[]): boolean;\n\n // Must be implemented when `axisPointerEnabled` is `true`.\n getAxes?: () => Axis[];\n\n axisPointerEnabled?: boolean;\n\n getTooltipAxes?: (dim: DimensionName | 'auto') => {baseAxes: Axis[], otherAxes: Axis[]};\n\n /**\n * Get layout rect or coordinate system\n */\n getRect?: () => RectLike\n\n}\n\n/**\n * For example: cartesian is CoordinateSystem.\n * series.coordinateSystem is CoordinateSystem.\n */\nexport interface CoordinateSystem {\n\n type: string\n\n /**\n * Master of coordinate system. For example:\n * Grid is master of cartesian.\n */\n master?: CoordinateSystemMaster\n\n // Should be the same as its coordinateSystemCreator.\n dimensions: DimensionName[];\n\n model?: ComponentModel;\n\n /**\n * @param data\n * @param reserved Defined by the coordinate system itself\n * @param out\n * @return {Array.} point Point in global pixel coordinate system.\n */\n dataToPoint(\n data: ScaleDataValue | ScaleDataValue[],\n reserved?: any,\n out?: number[]\n ): number[];\n\n /**\n * Some coord sys (like Parallel) might do not have `pointToData`,\n * or the meaning of this kind of features is not clear yet.\n * @param point point Point in global pixel coordinate system.\n * @param clamp Clamp range\n * @return data\n */\n pointToData?(\n point: number[],\n clamp?: boolean\n ): number | number[];\n\n // @param point Point in global pixel coordinate system.\n containPoint(point: number[]): boolean;\n\n getAxis?: (dim?: DimensionName) => Axis;\n\n getBaseAxis?: () => Axis;\n\n getOtherAxis?: (baseAxis: Axis) => Axis;\n\n clampData?: (data: ScaleDataValue[], out?: number[]) => number[];\n\n getRoamTransform?: () => MatrixArray;\n\n getArea?: () => CoordinateSystemClipArea\n\n // Only `coord/View.js` implements `getBoundingRect`.\n // But if other coord sys implement it, should follow this signature.\n getBoundingRect?: () => BoundingRect;\n\n // Currently only Cartesian2D implements it.\n // But if other coordinate systems implement it, should follow this signature.\n getAxesByScale?: (scaleType: string) => Axis[];\n\n prepareCustoms?: PrepareCustomInfo;\n}\n\n/**\n * Like GridModel, PolarModel, ...\n */\nexport interface CoordinateSystemHostModel extends ComponentModel {\n coordinateSystem?: CoordinateSystemMaster\n}\n\n/**\n * Clip area will be returned by getArea of CoordinateSystem.\n * It is used to clip the graphic elements with the contain methods.\n */\nexport interface CoordinateSystemClipArea {\n contain(x: number, y: number): boolean\n}\n\nexport function isCoordinateSystemType(\n coordSys: CoordinateSystem, type: S\n): coordSys is T {\n return (coordSys.type as unknown as S) === type;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME step not support polar\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport SymbolClz from '../helper/Symbol';\nimport lineAnimationDiff from './lineAnimationDiff';\nimport * as graphic from '../../util/graphic';\nimport * as modelUtil from '../../util/model';\nimport {ECPolyline, ECPolygon} from './poly';\nimport ChartView from '../../view/Chart';\nimport {prepareDataCoordInfo, getStackedOnPoint} from './helper';\nimport {createGridClipPath, createPolarClipPath} from '../helper/createClipPathFromCoordSys';\nimport LineSeriesModel, { LineSeriesOption } from './LineSeries';\nimport type GlobalModel from '../../model/Global';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\n// TODO\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Polar from '../../coord/polar/Polar';\nimport type SeriesData from '../../data/SeriesData';\nimport type {\n Payload,\n Dictionary,\n ColorString,\n ECElement,\n DisplayState,\n LabelOption,\n ParsedValue\n} from '../../util/types';\nimport type OrdinalScale from '../../scale/Ordinal';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport { CoordinateSystemClipArea, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setStatesStylesFromModel, setStatesFlag, enableHoverEmphasis, SPECIAL_STATES } from '../../util/states';\nimport Model from '../../model/Model';\nimport {setLabelStyle, getLabelStatesModels, labelInner} from '../../label/labelStyle';\nimport {getDefaultLabel, getDefaultInterpolatedLabel} from '../helper/labelHelper';\n\nimport { getECData } from '../../util/innerStore';\nimport { createFloat32Array } from '../../util/vendor';\nimport { convertToColorString } from '../../util/format';\n\ntype PolarArea = ReturnType;\ntype Cartesian2DArea = ReturnType;\ninterface SymbolExtended extends SymbolClz {\n __temp: boolean\n}\n\ninterface ColorStop {\n offset: number\n coord?: number\n color: ColorString\n}\n\nfunction isPointsSame(points1: ArrayLike, points2: ArrayLike) {\n if (points1.length !== points2.length) {\n return;\n }\n for (let i = 0; i < points1.length; i++) {\n if (points1[i] !== points2[i]) {\n return;\n }\n }\n return true;\n}\n\nfunction bboxFromPoints(points: ArrayLike) {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n if (!isNaN(x)) {\n minX = Math.min(x, minX);\n maxX = Math.max(x, maxX);\n }\n if (!isNaN(y)) {\n minY = Math.min(y, minY);\n maxY = Math.max(y, maxY);\n }\n }\n return [\n [minX, minY],\n [maxX, maxY]\n ];\n}\n\nfunction getBoundingDiff(points1: ArrayLike, points2: ArrayLike): number {\n\n const [min1, max1] = bboxFromPoints(points1);\n const [min2, max2] = bboxFromPoints(points2);\n\n // Get a max value from each corner of two boundings.\n return Math.max(\n Math.abs(min1[0] - min2[0]),\n Math.abs(min1[1] - min2[1]),\n\n Math.abs(max1[0] - max2[0]),\n Math.abs(max1[1] - max2[1])\n );\n}\n\nfunction getSmooth(smooth: number | boolean) {\n return typeof smooth === 'number' ? smooth : (smooth ? 0.5 : 0);\n}\n\nfunction getStackedOnPoints(\n coordSys: Cartesian2D | Polar,\n data: SeriesData,\n dataCoordInfo: ReturnType\n) {\n if (!dataCoordInfo.valueDim) {\n return [];\n }\n\n const len = data.count();\n const points = createFloat32Array(len * 2);\n for (let idx = 0; idx < len; idx++) {\n const pt = getStackedOnPoint(dataCoordInfo, coordSys, data, idx);\n points[idx * 2] = pt[0];\n points[idx * 2 + 1] = pt[1];\n }\n\n return points;\n}\n\nfunction turnPointsIntoStep(\n points: ArrayLike,\n coordSys: Cartesian2D | Polar,\n stepTurnAt: 'start' | 'end' | 'middle'\n): number[] {\n const baseAxis = coordSys.getBaseAxis();\n const baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;\n\n const stepPoints: number[] = [];\n let i = 0;\n const stepPt: number[] = [];\n const pt: number[] = [];\n const nextPt: number[] = [];\n for (; i < points.length - 2; i += 2) {\n nextPt[0] = points[i + 2];\n nextPt[1] = points[i + 3];\n pt[0] = points[i];\n pt[1] = points[i + 1];\n stepPoints.push(pt[0], pt[1]);\n\n switch (stepTurnAt) {\n case 'end':\n stepPt[baseIndex] = nextPt[baseIndex];\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n break;\n case 'middle':\n const middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;\n const stepPt2 = [];\n stepPt[baseIndex] = stepPt2[baseIndex] = middle;\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n stepPoints.push(stepPt2[0], stepPt2[1]);\n break;\n default:\n // default is start\n stepPt[baseIndex] = pt[baseIndex];\n stepPt[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n }\n }\n // Last points\n stepPoints.push(points[i++], points[i++]);\n return stepPoints;\n}\n\nfunction getVisualGradient(\n data: SeriesData,\n coordSys: Cartesian2D | Polar\n) {\n const visualMetaList = data.getVisual('visualMeta');\n if (!visualMetaList || !visualMetaList.length || !data.count()) {\n // When data.count() is 0, gradient range can not be calculated.\n return;\n }\n\n if (coordSys.type !== 'cartesian2d') {\n if (__DEV__) {\n console.warn('Visual map on line style is only supported on cartesian2d.');\n }\n return;\n }\n\n let coordDim: 'x' | 'y';\n let visualMeta;\n\n for (let i = visualMetaList.length - 1; i >= 0; i--) {\n const dimInfo = data.getDimensionInfo(visualMetaList[i].dimension);\n coordDim = (dimInfo && dimInfo.coordDim) as 'x' | 'y';\n // Can only be x or y\n if (coordDim === 'x' || coordDim === 'y') {\n visualMeta = visualMetaList[i];\n break;\n }\n }\n\n if (!visualMeta) {\n if (__DEV__) {\n console.warn('Visual map on line style only support x or y dimension.');\n }\n return;\n }\n\n // If the area to be rendered is bigger than area defined by LinearGradient,\n // the canvas spec prescribes that the color of the first stop and the last\n // stop should be used. But if two stops are added at offset 0, in effect\n // browsers use the color of the second stop to render area outside\n // LinearGradient. So we can only infinitesimally extend area defined in\n // LinearGradient to render `outerColors`.\n\n const axis = coordSys.getAxis(coordDim);\n const axisScaleExtent = axis.scale.getExtent();\n\n // dataToCoord mapping may not be linear, but must be monotonic.\n const colorStops: ColorStop[] = zrUtil.map(visualMeta.stops, function (stop) {\n let coord = axis.toGlobalCoord(axis.dataToCoord(stop.value));\n // normalize the infinite value\n isNaN(coord) || isFinite(coord)\n || (coord = axis.toGlobalCoord(axis.dataToCoord(axisScaleExtent[+(coord < 0)])));\n return {\n offset: 0,\n coord,\n color: stop.color\n };\n });\n const stopLen = colorStops.length;\n const outerColors = visualMeta.outerColors.slice();\n\n if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {\n colorStops.reverse();\n outerColors.reverse();\n }\n\n const tinyExtent = 10; // Arbitrary value: 10px\n const minCoord = colorStops[0].coord - tinyExtent;\n const maxCoord = colorStops[stopLen - 1].coord + tinyExtent;\n const coordSpan = maxCoord - minCoord;\n\n if (coordSpan < 1e-3) {\n return 'transparent';\n }\n\n zrUtil.each(colorStops, function (stop) {\n stop.offset = (stop.coord - minCoord) / coordSpan;\n });\n colorStops.push({\n offset: stopLen ? colorStops[stopLen - 1].offset : 0.5,\n color: outerColors[1] || 'transparent'\n });\n colorStops.unshift({ // notice colorStops.length have been changed.\n offset: stopLen ? colorStops[0].offset : 0.5,\n color: outerColors[0] || 'transparent'\n });\n\n // zrUtil.each(colorStops, function (colorStop) {\n // // Make sure each offset has rounded px to avoid not sharp edge\n // colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start);\n // });\n\n const gradient = new graphic.LinearGradient(0, 0, 0, 0, colorStops, true);\n gradient[coordDim] = minCoord;\n gradient[coordDim + '2' as 'x2' | 'y2'] = maxCoord;\n\n return gradient;\n}\n\nfunction getIsIgnoreFunc(\n seriesModel: LineSeriesModel,\n data: SeriesData,\n coordSys: Cartesian2D\n) {\n const showAllSymbol = seriesModel.get('showAllSymbol');\n const isAuto = showAllSymbol === 'auto';\n\n if (showAllSymbol && !isAuto) {\n return;\n }\n\n const categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n if (!categoryAxis) {\n return;\n }\n\n // Note that category label interval strategy might bring some weird effect\n // in some scenario: users may wonder why some of the symbols are not\n // displayed. So we show all symbols as possible as we can.\n if (isAuto\n // Simplify the logic, do not determine label overlap here.\n && canShowAllSymbolForCategory(categoryAxis, data)\n ) {\n return;\n }\n\n // Otherwise follow the label interval strategy on category axis.\n const categoryDataDim = data.mapDimension(categoryAxis.dim);\n const labelMap: Dictionary<1> = {};\n\n zrUtil.each(categoryAxis.getViewLabels(), function (labelItem) {\n const ordinalNumber = (categoryAxis.scale as OrdinalScale)\n .getRawOrdinalNumber(labelItem.tickValue);\n labelMap[ordinalNumber] = 1;\n });\n\n return function (dataIndex: number) {\n return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex));\n };\n}\n\nfunction canShowAllSymbolForCategory(\n categoryAxis: Axis2D,\n data: SeriesData\n) {\n // In mose cases, line is monotonous on category axis, and the label size\n // is close with each other. So we check the symbol size and some of the\n // label size alone with the category axis to estimate whether all symbol\n // can be shown without overlap.\n const axisExtent = categoryAxis.getExtent();\n let availSize = Math.abs(axisExtent[1] - axisExtent[0]) / (categoryAxis.scale as OrdinalScale).count();\n isNaN(availSize) && (availSize = 0); // 0/0 is NaN.\n\n // Sampling some points, max 5.\n const dataLen = data.count();\n const step = Math.max(1, Math.round(dataLen / 5));\n for (let dataIndex = 0; dataIndex < dataLen; dataIndex += step) {\n if (SymbolClz.getSymbolSize(\n data, dataIndex\n // Only for cartesian, where `isHorizontal` exists.\n )[categoryAxis.isHorizontal() ? 1 : 0]\n // Empirical number\n * 1.5 > availSize\n ) {\n return false;\n }\n }\n\n return true;\n}\n\n\nfunction isPointNull(x: number, y: number) {\n return isNaN(x) || isNaN(y);\n}\n\nfunction getLastIndexNotNull(points: ArrayLike) {\n let len = points.length / 2;\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n return len - 1;\n}\n\nfunction getPointAtIndex(points: ArrayLike, idx: number) {\n return [points[idx * 2], points[idx * 2 + 1]];\n}\n\nfunction getIndexRange(points: ArrayLike, xOrY: number, dim: 'x' | 'y') {\n const len = points.length / 2;\n\n const dimIdx = dim === 'x' ? 0 : 1;\n let a;\n let b;\n let prevIndex = 0;\n let nextIndex = -1;\n for (let i = 0; i < len; i++) {\n b = points[i * 2 + dimIdx];\n if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) {\n continue;\n }\n if (i === 0) {\n a = b;\n continue;\n }\n if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) {\n nextIndex = i;\n break;\n }\n\n prevIndex = i;\n a = b;\n }\n\n return {\n range: [prevIndex, nextIndex],\n t: (xOrY - a) / (b - a)\n };\n}\n\nfunction anyStateShowEndLabel(\n seriesModel: LineSeriesModel\n) {\n if (seriesModel.get(['endLabel', 'show'])) {\n return true;\n }\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n if (seriesModel.get([SPECIAL_STATES[i], 'endLabel', 'show'])) {\n return true;\n }\n }\n return false;\n}\n\n\ninterface EndLabelAnimationRecord {\n lastFrameIndex: number\n originalX?: number\n originalY?: number\n}\n\nfunction createLineClipPath(\n lineView: LineView,\n coordSys: Cartesian2D | Polar,\n hasAnimation: boolean,\n seriesModel: LineSeriesModel\n) {\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const endLabelModel = seriesModel.getModel('endLabel');\n const valueAnimation = endLabelModel.get('valueAnimation');\n const data = seriesModel.getData();\n\n const labelAnimationRecord: EndLabelAnimationRecord = { lastFrameIndex: 0 };\n\n const during = anyStateShowEndLabel(seriesModel)\n ? (percent: number, clipRect: graphic.Rect) => {\n lineView._endLabelOnDuring(\n percent,\n clipRect,\n data,\n labelAnimationRecord,\n valueAnimation,\n endLabelModel,\n coordSys\n );\n }\n : null;\n\n const isHorizontal = coordSys.getBaseAxis().isHorizontal();\n const clipPath = createGridClipPath(coordSys, hasAnimation, seriesModel, () => {\n const endLabel = lineView._endLabel;\n if (endLabel && hasAnimation) {\n if (labelAnimationRecord.originalX != null) {\n endLabel.attr({\n x: labelAnimationRecord.originalX,\n y: labelAnimationRecord.originalY\n });\n }\n }\n }, during);\n // Expand clip shape to avoid clipping when line value exceeds axis\n if (!seriesModel.get('clip', true)) {\n const rectShape = clipPath.shape;\n const expandSize = Math.max(rectShape.width, rectShape.height);\n if (isHorizontal) {\n rectShape.y -= expandSize;\n rectShape.height += expandSize * 2;\n }\n else {\n rectShape.x -= expandSize;\n rectShape.width += expandSize * 2;\n }\n }\n\n // Set to the final frame. To make sure label layout is right.\n if (during) {\n during(1, clipPath);\n }\n return clipPath;\n }\n else {\n if (__DEV__) {\n if (seriesModel.get(['endLabel', 'show'])) {\n console.warn('endLabel is not supported for lines in polar systems.');\n }\n }\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n }\n\n}\n\nfunction getEndLabelStateSpecified(endLabelModel: Model, coordSys: Cartesian2D) {\n const baseAxis = coordSys.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isBaseInversed = baseAxis.inverse;\n const align = isHorizontal\n ? (isBaseInversed ? 'right' : 'left')\n : 'center';\n const verticalAlign = isHorizontal\n ? 'middle'\n : (isBaseInversed ? 'top' : 'bottom');\n\n return {\n normal: {\n align: endLabelModel.get('align') || align,\n verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign\n }\n };\n}\n\nclass LineView extends ChartView {\n\n static readonly type = 'line';\n\n _symbolDraw: SymbolDraw;\n\n _lineGroup: graphic.Group;\n _coordSys: Cartesian2D | Polar;\n\n _endLabel: graphic.Text;\n\n _polyline: ECPolyline;\n _polygon: ECPolygon;\n\n _stackedOnPoints: ArrayLike;\n _points: ArrayLike;\n\n _step: LineSeriesOption['step'];\n _valueOrigin: LineSeriesOption['areaStyle']['origin'];\n\n _clipShapeForSymbol: CoordinateSystemClipArea;\n\n _data: SeriesData;\n\n init() {\n const lineGroup = new graphic.Group();\n\n const symbolDraw = new SymbolDraw();\n this.group.add(symbolDraw.group);\n\n this._symbolDraw = symbolDraw;\n this._lineGroup = lineGroup;\n }\n\n render(seriesModel: LineSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const coordSys = seriesModel.coordinateSystem;\n const group = this.group;\n const data = seriesModel.getData();\n const lineStyleModel = seriesModel.getModel('lineStyle');\n const areaStyleModel = seriesModel.getModel('areaStyle');\n\n let points = data.getLayout('points') as number[] || [];\n\n const isCoordSysPolar = coordSys.type === 'polar';\n const prevCoordSys = this._coordSys;\n\n const symbolDraw = this._symbolDraw;\n let polyline = this._polyline;\n let polygon = this._polygon;\n\n const lineGroup = this._lineGroup;\n\n const hasAnimation = seriesModel.get('animation');\n\n const isAreaChart = !areaStyleModel.isEmpty();\n\n const valueOrigin = areaStyleModel.get('origin');\n const dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);\n\n let stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo);\n\n const showSymbol = seriesModel.get('showSymbol');\n\n const isIgnoreFunc = showSymbol && !isCoordSysPolar\n && getIsIgnoreFunc(seriesModel, data, coordSys as Cartesian2D);\n\n // Remove temporary symbols\n const oldData = this._data;\n oldData && oldData.eachItemGraphicEl(function (el: SymbolExtended, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n\n // Remove previous created symbols if showSymbol changed to false\n if (!showSymbol) {\n symbolDraw.remove();\n }\n\n group.add(lineGroup);\n\n // FIXME step not support polar\n const step = !isCoordSysPolar ? seriesModel.get('step') : false;\n let clipShapeForSymbol: PolarArea | Cartesian2DArea;\n if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) {\n clipShapeForSymbol = coordSys.getArea();\n // Avoid float number rounding error for symbol on the edge of axis extent.\n // See #7913 and `test/dataZoom-clip.html`.\n if ((clipShapeForSymbol as Cartesian2DArea).width != null) {\n (clipShapeForSymbol as Cartesian2DArea).x -= 0.1;\n (clipShapeForSymbol as Cartesian2DArea).y -= 0.1;\n (clipShapeForSymbol as Cartesian2DArea).width += 0.2;\n (clipShapeForSymbol as Cartesian2DArea).height += 0.2;\n }\n else if ((clipShapeForSymbol as PolarArea).r0) {\n (clipShapeForSymbol as PolarArea).r0 -= 0.5;\n (clipShapeForSymbol as PolarArea).r += 0.5;\n }\n }\n this._clipShapeForSymbol = clipShapeForSymbol;\n const visualColor = getVisualGradient(data, coordSys)\n || data.getVisual('style')[data.getVisual('drawType')];\n // Initialization animation or coordinate system changed\n if (\n !(polyline && prevCoordSys.type === coordSys.type && step === this._step)\n ) {\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint(idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n\n hasAnimation && this._initSymbolLabelAnimation(\n data,\n coordSys,\n clipShapeForSymbol\n );\n\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline = this._newPolyline(points);\n if (isAreaChart) {\n polygon = this._newPolygon(\n points, stackedOnPoints\n );\n }\n\n // NOTE: Must update _endLabel before setClipPath.\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys as Cartesian2D, convertToColorString(visualColor));\n }\n\n lineGroup.setClipPath(\n createLineClipPath(this, coordSys, true, seriesModel)\n );\n }\n else {\n if (isAreaChart && !polygon) {\n // If areaStyle is added\n polygon = this._newPolygon(\n points, stackedOnPoints\n );\n }\n else if (polygon && !isAreaChart) {\n // If areaStyle is removed\n lineGroup.remove(polygon);\n polygon = this._polygon = null;\n }\n\n // NOTE: Must update _endLabel before setClipPath.\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys as Cartesian2D, convertToColorString(visualColor));\n }\n\n // Update clipPath\n lineGroup.setClipPath(\n createLineClipPath(this, coordSys, false, seriesModel)\n );\n\n // Always update, or it is wrong in the case turning on legend\n // because points are not changed\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint(idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n\n // In the case data zoom triggerred refreshing frequently\n // Data may not change if line has a category axis. So it should animate nothing\n if (!isPointsSame(this._stackedOnPoints, stackedOnPoints)\n || !isPointsSame(this._points, points)\n ) {\n if (hasAnimation) {\n this._doUpdateAnimation(\n data, stackedOnPoints, coordSys, api, step, valueOrigin\n );\n }\n else {\n // Not do it in update with animation\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline.setShape({\n points: points\n });\n polygon && polygon.setShape({\n points: points,\n stackedOnPoints: stackedOnPoints\n });\n }\n }\n }\n\n const focus = seriesModel.get(['emphasis', 'focus']);\n const blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n polyline.useStyle(zrUtil.defaults(\n // Use color in lineStyle first\n lineStyleModel.getLineStyle(),\n {\n fill: 'none',\n stroke: visualColor,\n lineJoin: 'bevel' as CanvasLineJoin\n }\n ));\n\n setStatesStylesFromModel(polyline, seriesModel, 'lineStyle');\n\n if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') {\n const emphasisLineStyle = polyline.getState('emphasis').style;\n emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1;\n }\n\n // Needs seriesIndex for focus\n getECData(polyline).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polyline, focus, blurScope);\n\n const smooth = getSmooth(seriesModel.get('smooth'));\n const smoothMonotone = seriesModel.get('smoothMonotone');\n const connectNulls = seriesModel.get('connectNulls');\n polyline.setShape({\n smooth,\n smoothMonotone,\n connectNulls\n });\n\n if (polygon) {\n const stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n let stackedOnSmooth = 0;\n\n polygon.useStyle(zrUtil.defaults(\n areaStyleModel.getAreaStyle(),\n {\n fill: visualColor,\n opacity: 0.7,\n lineJoin: 'bevel' as CanvasLineJoin,\n decal: data.getVisual('style').decal\n }\n ));\n\n if (stackedOnSeries) {\n stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));\n }\n\n polygon.setShape({\n smooth,\n stackedOnSmooth,\n smoothMonotone,\n connectNulls\n });\n\n setStatesStylesFromModel(polygon, seriesModel, 'areaStyle');\n // Needs seriesIndex for focus\n getECData(polygon).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polygon, focus, blurScope);\n }\n\n const changePolyState = (toState: DisplayState) => {\n this._changePolyState(toState);\n };\n\n data.eachItemGraphicEl(function (el) {\n // Switch polyline / polygon state if element changed its state.\n el && ((el as ECElement).onHoverStateChange = changePolyState);\n });\n\n (this._polyline as ECElement).onHoverStateChange = changePolyState;\n\n this._data = data;\n // Save the coordinate system for transition animation when data changed\n this._coordSys = coordSys;\n this._stackedOnPoints = stackedOnPoints;\n this._points = points;\n this._step = step;\n this._valueOrigin = valueOrigin;\n }\n\n dispose() {}\n\n highlight(\n seriesModel: LineSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('emphasis');\n\n if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {\n const points = data.getLayout('points');\n let symbol = data.getItemGraphicEl(dataIndex) as SymbolClz;\n if (!symbol) {\n // Create a temporary symbol if it is not exists\n const x = points[dataIndex * 2];\n const y = points[dataIndex * 2 + 1];\n if (isNaN(x) || isNaN(y)) {\n // Null data\n return;\n }\n // fix #11360: should't draw symbol outside clipShapeForSymbol\n if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) {\n return;\n }\n const zlevel = seriesModel.get('zlevel');\n const z = seriesModel.get('z');\n symbol = new SymbolClz(data, dataIndex);\n symbol.x = x;\n symbol.y = y;\n symbol.setZ(zlevel, z);\n\n // ensure label text of the temporary symbol is in front of line and area polygon\n const symbolLabel = symbol.getSymbolPath().getTextContent();\n if (symbolLabel) {\n symbolLabel.zlevel = zlevel;\n symbolLabel.z = z;\n symbolLabel.z2 = this._polyline.z2 + 1;\n }\n\n (symbol as SymbolExtended).__temp = true;\n data.setItemGraphicEl(dataIndex, symbol);\n\n // Stop scale animation\n symbol.stopSymbolAnimation(true);\n\n this.group.add(symbol);\n }\n symbol.highlight();\n }\n else {\n // Highlight whole series\n ChartView.prototype.highlight.call(\n this, seriesModel, ecModel, api, payload\n );\n }\n }\n\n downplay(\n seriesModel: LineSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, payload) as number;\n\n this._changePolyState('normal');\n\n if (dataIndex != null && dataIndex >= 0) {\n const symbol = data.getItemGraphicEl(dataIndex) as SymbolExtended;\n if (symbol) {\n if (symbol.__temp) {\n data.setItemGraphicEl(dataIndex, null);\n this.group.remove(symbol);\n }\n else {\n symbol.downplay();\n }\n }\n }\n else {\n // FIXME\n // can not downplay completely.\n // Downplay whole series\n ChartView.prototype.downplay.call(\n this, seriesModel, ecModel, api, payload\n );\n }\n }\n\n _changePolyState(toState: DisplayState) {\n const polygon = this._polygon;\n setStatesFlag(this._polyline, toState);\n polygon && setStatesFlag(polygon, toState);\n }\n\n _newPolyline(points: ArrayLike) {\n let polyline = this._polyline;\n // Remove previous created polyline\n if (polyline) {\n this._lineGroup.remove(polyline);\n }\n\n polyline = new ECPolyline({\n shape: {\n points\n },\n segmentIgnoreThreshold: 2,\n z2: 10\n });\n\n this._lineGroup.add(polyline);\n\n this._polyline = polyline;\n\n return polyline;\n }\n\n _newPolygon(points: ArrayLike, stackedOnPoints: ArrayLike) {\n let polygon = this._polygon;\n // Remove previous created polygon\n if (polygon) {\n this._lineGroup.remove(polygon);\n }\n\n polygon = new ECPolygon({\n shape: {\n points,\n stackedOnPoints: stackedOnPoints\n },\n segmentIgnoreThreshold: 2\n });\n\n this._lineGroup.add(polygon);\n\n this._polygon = polygon;\n return polygon;\n }\n\n _initSymbolLabelAnimation(\n data: SeriesData,\n coordSys: Polar | Cartesian2D,\n clipShape: PolarArea | Cartesian2DArea\n ) {\n let isHorizontalOrRadial: boolean;\n let isCoordSysPolar: boolean;\n const baseAxis = coordSys.getBaseAxis();\n const isAxisInverse = baseAxis.inverse;\n if (coordSys.type === 'cartesian2d') {\n isHorizontalOrRadial = (baseAxis as Axis2D).isHorizontal();\n isCoordSysPolar = false;\n }\n else if (coordSys.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n isCoordSysPolar = true;\n }\n\n const seriesModel = data.hostModel;\n let seriesDuration = seriesModel.get('animationDuration');\n if (typeof seriesDuration === 'function') {\n seriesDuration = seriesDuration(null);\n }\n const seriesDalay = seriesModel.get('animationDelay') || 0;\n const seriesDalayValue = typeof seriesDalay === 'function'\n ? seriesDalay(null)\n : seriesDalay;\n\n data.eachItemGraphicEl(function (symbol: SymbolExtended, idx) {\n const el = symbol;\n if (el) {\n const point = [symbol.x, symbol.y];\n let start;\n let end;\n let current;\n if (clipShape) {\n if (isCoordSysPolar) {\n const polarClip = clipShape as PolarArea;\n const coord = (coordSys as Polar).pointToCoord(point);\n if (isHorizontalOrRadial) {\n start = polarClip.startAngle;\n end = polarClip.endAngle;\n current = -coord[1] / 180 * Math.PI;\n }\n else {\n start = polarClip.r0;\n end = polarClip.r;\n current = coord[0];\n }\n }\n else {\n const gridClip = clipShape as Cartesian2DArea;\n if (isHorizontalOrRadial) {\n start = gridClip.x;\n end = gridClip.x + gridClip.width;\n current = symbol.x;\n }\n else {\n start = gridClip.y + gridClip.height;\n end = gridClip.y;\n current = symbol.y;\n }\n }\n }\n let ratio = end === start ? 0 : (current - start) / (end - start);\n if (isAxisInverse) {\n ratio = 1 - ratio;\n }\n\n const delay = typeof seriesDalay === 'function' ? seriesDalay(idx)\n : (seriesDuration * ratio) + seriesDalayValue;\n\n const symbolPath = el.getSymbolPath();\n const text = symbolPath.getTextContent();\n\n el.attr({ scaleX: 0, scaleY: 0});\n el.animateTo({\n scaleX: 1,\n scaleY: 1\n }, {\n duration: 200,\n setToFinal: true,\n delay: delay\n });\n\n if (text) {\n text.animateFrom({\n style: {\n opacity: 0\n }\n }, {\n duration: 300,\n delay: delay\n });\n }\n\n (symbolPath as ECElement).disableLabelAnimation = true;\n }\n });\n }\n\n _initOrUpdateEndLabel(\n seriesModel: LineSeriesModel,\n coordSys: Cartesian2D,\n inheritColor: string\n ) {\n const endLabelModel = seriesModel.getModel('endLabel');\n\n if (anyStateShowEndLabel(seriesModel)) {\n const data = seriesModel.getData();\n const polyline = this._polyline;\n let endLabel = this._endLabel;\n if (!endLabel) {\n endLabel = this._endLabel = new graphic.Text({\n z2: 200 // should be higher than item symbol\n });\n endLabel.ignoreClip = true;\n polyline.setTextContent(this._endLabel);\n (polyline as ECElement).disableLabelAnimation = true;\n }\n\n // Find last non-NaN data to display data\n const dataIndex = getLastIndexNotNull(data.getLayout('points'));\n if (dataIndex >= 0) {\n setLabelStyle(\n polyline,\n getLabelStatesModels(seriesModel, 'endLabel'),\n {\n inheritColor,\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText(dataIndex, opt, interpolatedValue) {\n return interpolatedValue != null\n ? getDefaultInterpolatedLabel(data, interpolatedValue)\n : getDefaultLabel(data, dataIndex);\n },\n enableTextSetter: true\n },\n getEndLabelStateSpecified(endLabelModel, coordSys)\n );\n polyline.textConfig.position = null;\n }\n }\n else if (this._endLabel) {\n this._polyline.removeTextContent();\n this._endLabel = null;\n }\n }\n\n _endLabelOnDuring(\n percent: number,\n clipRect: graphic.Rect,\n data: SeriesData,\n animationRecord: EndLabelAnimationRecord,\n valueAnimation: boolean,\n endLabelModel: Model,\n coordSys: Cartesian2D\n ) {\n const endLabel = this._endLabel;\n const polyline = this._polyline;\n\n if (endLabel) {\n // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.\n // The label is not prepared at this time.\n if (percent < 1 && animationRecord.originalX == null) {\n animationRecord.originalX = endLabel.x;\n animationRecord.originalY = endLabel.y;\n }\n\n const points = data.getLayout('points');\n const seriesModel = data.hostModel as LineSeriesModel;\n const connectNulls = seriesModel.get('connectNulls');\n const precision = endLabelModel.get('precision');\n const distance = endLabelModel.get('distance') || 0;\n\n const baseAxis = coordSys.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const isBaseInversed = baseAxis.inverse;\n const clipShape = clipRect.shape;\n\n const xOrY = isBaseInversed\n ? isHorizontal ? clipShape.x : (clipShape.y + clipShape.height)\n : isHorizontal ? (clipShape.x + clipShape.width) : clipShape.y;\n const distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1);\n const distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1);\n const dim = isHorizontal ? 'x' : 'y';\n\n const dataIndexRange = getIndexRange(points, xOrY, dim);\n const indices = dataIndexRange.range;\n\n const diff = indices[1] - indices[0];\n let value: ParsedValue;\n if (diff >= 1) {\n // diff > 1 && connectNulls, which is on the null data.\n if (diff > 1 && !connectNulls) {\n const pt = getPointAtIndex(points, indices[0]);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n valueAnimation && (value = seriesModel.getRawValue(indices[0]) as ParsedValue);\n }\n else {\n const pt = polyline.getPointOn(xOrY, dim);\n pt && endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n\n const startValue = seriesModel.getRawValue(indices[0]) as ParsedValue;\n const endValue = seriesModel.getRawValue(indices[1]) as ParsedValue;\n valueAnimation && (value = modelUtil.interpolateRawValues(\n data, precision, startValue, endValue, dataIndexRange.t\n ) as ParsedValue);\n }\n animationRecord.lastFrameIndex = indices[0];\n }\n else {\n // If diff <= 0, which is the range is not found(Include NaN)\n // Choose the first point or last point.\n const idx = (percent === 1 || animationRecord.lastFrameIndex > 0) ? indices[0] : 0;\n const pt = getPointAtIndex(points, idx);\n valueAnimation && (value = seriesModel.getRawValue(idx) as ParsedValue);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n }\n if (valueAnimation) {\n labelInner(endLabel).setLabelText(value);\n }\n }\n }\n\n /**\n * @private\n */\n // FIXME Two value axis\n _doUpdateAnimation(\n data: SeriesData,\n stackedOnPoints: ArrayLike,\n coordSys: Cartesian2D | Polar,\n api: ExtensionAPI,\n step: LineSeriesOption['step'],\n valueOrigin: LineSeriesOption['areaStyle']['origin']\n ) {\n const polyline = this._polyline;\n const polygon = this._polygon;\n const seriesModel = data.hostModel;\n\n const diff = lineAnimationDiff(\n this._data, data,\n this._stackedOnPoints, stackedOnPoints,\n this._coordSys, coordSys,\n this._valueOrigin, valueOrigin\n );\n\n let current = diff.current;\n let stackedOnCurrent = diff.stackedOnCurrent;\n let next = diff.next;\n let stackedOnNext = diff.stackedOnNext;\n if (step) {\n // TODO If stacked series is not step\n current = turnPointsIntoStep(diff.current, coordSys, step);\n stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step);\n next = turnPointsIntoStep(diff.next, coordSys, step);\n stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step);\n }\n\n // Don't apply animation if diff is large.\n // For better result and avoid memory explosion problems like\n // https://github.com/apache/incubator-echarts/issues/12229\n if (getBoundingDiff(current, next) > 3000\n || (polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000)\n ) {\n polyline.setShape({\n points: next\n });\n if (polygon) {\n polygon.setShape({\n points: next,\n stackedOnPoints: stackedOnNext\n });\n }\n return;\n }\n\n (polyline.shape as any).__points = diff.current;\n polyline.shape.points = current;\n\n const target = {\n shape: {\n points: next\n }\n };\n // Also animate the original points.\n // If points reference is changed when turning into step line.\n if (diff.current !== current) {\n (target.shape as any).__points = diff.next;\n }\n\n // Stop previous animation.\n polyline.stopAnimation();\n graphic.updateProps(polyline, target, seriesModel);\n\n if (polygon) {\n polygon.setShape({\n // Reuse the points with polyline.\n points: current,\n stackedOnPoints: stackedOnCurrent\n });\n polygon.stopAnimation();\n graphic.updateProps(polygon, {\n shape: {\n stackedOnPoints: stackedOnNext\n }\n }, seriesModel);\n // If use attr directly in updateProps.\n if (polyline.shape.points !== polygon.shape.points) {\n polygon.shape.points = polyline.shape.points;\n }\n }\n\n\n const updatedDataInfo: {\n el: SymbolExtended,\n ptIdx: number\n }[] = [];\n const diffStatus = diff.status;\n\n for (let i = 0; i < diffStatus.length; i++) {\n const cmd = diffStatus[i].cmd;\n if (cmd === '=') {\n const el = data.getItemGraphicEl(diffStatus[i].idx1) as SymbolExtended;\n if (el) {\n updatedDataInfo.push({\n el: el,\n ptIdx: i // Index of points\n });\n }\n }\n }\n\n if (polyline.animators && polyline.animators.length) {\n polyline.animators[0].during(function () {\n polygon && polygon.dirtyShape();\n const points = (polyline.shape as any).__points;\n for (let i = 0; i < updatedDataInfo.length; i++) {\n const el = updatedDataInfo[i].el;\n const offset = updatedDataInfo[i].ptIdx * 2;\n el.x = points[offset];\n el.y = points[offset + 1];\n el.markRedraw();\n }\n });\n }\n }\n\n remove(ecModel: GlobalModel) {\n const group = this.group;\n const oldData = this._data;\n this._lineGroup.removeAll();\n this._symbolDraw.remove(true);\n // Remove temporary created elements when highlighting\n oldData && oldData.eachItemGraphicEl(function (el: SymbolExtended, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n\n this._polyline =\n this._polygon =\n this._coordSys =\n this._points =\n this._stackedOnPoints =\n this._endLabel =\n this._data = null;\n }\n}\n\nexport default LineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport {map} from 'zrender/src/core/util';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport SeriesModel from '../model/Series';\nimport { StageHandler, ParsedValueNumeric } from '../util/types';\nimport { createFloat32Array } from '../util/vendor';\n\n\nexport default function pointsLayout(seriesType: string, forceStoreInTypedArray?: boolean): StageHandler {\n return {\n seriesType: seriesType,\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: SeriesModel) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n const pipelineContext = seriesModel.pipelineContext;\n const useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n const dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n const dimLen = dims.length;\n\n const stackResultDim = data.getCalculationInfo('stackResultDimension');\n if (isDimensionStacked(data, dims[0] /*, dims[1]*/)) {\n dims[0] = stackResultDim;\n }\n if (isDimensionStacked(data, dims[1] /*, dims[0]*/)) {\n dims[1] = stackResultDim;\n }\n\n const store = data.getStorage();\n const dimIdx0 = data.getDimensionIndex(dims[0]);\n const dimIdx1 = data.getDimensionIndex(dims[1]);\n\n return dimLen && {\n progress(params, data) {\n const segCount = params.end - params.start;\n const points = useTypedArray && createFloat32Array(segCount * dimLen);\n\n const tmpIn: ParsedValueNumeric[] = [];\n const tmpOut: number[] = [];\n\n for (let i = params.start, offset = 0; i < params.end; i++) {\n let point;\n\n if (dimLen === 1) {\n const x = store.get(dimIdx0, i) as ParsedValueNumeric;\n // NOTE: Make sure the second parameter is null to use default strategy.\n point = coordSys.dataToPoint(x, null, tmpOut);\n }\n else {\n tmpIn[0] = store.get(dimIdx0, i) as ParsedValueNumeric;\n tmpIn[1] = store.get(dimIdx1, i) as ParsedValueNumeric;\n // Let coordinate system to handle the NaN data.\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n }\n else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler, SeriesOption, SeriesSamplingOptionMixin } from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesModel from '../model/Series';\n\n\ntype Sampler = (frame: ArrayLike) => number;\nconst samplers: Dictionary = {\n average: function (frame) {\n let sum = 0;\n let count = 0;\n for (let i = 0; i < frame.length; i++) {\n if (!isNaN(frame[i])) {\n sum += frame[i];\n count++;\n }\n }\n // Return NaN if count is 0\n return count === 0 ? NaN : sum / count;\n },\n sum: function (frame) {\n let sum = 0;\n for (let i = 0; i < frame.length; i++) {\n // Ignore NaN\n sum += frame[i] || 0;\n }\n return sum;\n },\n max: function (frame) {\n let max = -Infinity;\n for (let i = 0; i < frame.length; i++) {\n frame[i] > max && (max = frame[i]);\n }\n // NaN will cause illegal axis extent.\n return isFinite(max) ? max : NaN;\n },\n min: function (frame) {\n let min = Infinity;\n for (let i = 0; i < frame.length; i++) {\n frame[i] < min && (min = frame[i]);\n }\n // NaN will cause illegal axis extent.\n return isFinite(min) ? min : NaN;\n },\n // TODO\n // Median\n nearest: function (frame) {\n return frame[0];\n }\n};\n\nconst indexSampler = function (frame: ArrayLike) {\n return Math.round(frame.length / 2);\n};\n\nexport default function dataSample(seriesType: string): StageHandler {\n return {\n\n seriesType: seriesType,\n\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: true,\n\n reset: function (seriesModel: SeriesModel, ecModel, api) {\n const data = seriesModel.getData();\n const sampling = seriesModel.get('sampling');\n const coordSys = seriesModel.coordinateSystem;\n const count = data.count();\n // Only cartesian2d support down sampling. Disable it when there is few data.\n if (count > 10 && coordSys.type === 'cartesian2d' && sampling) {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis);\n const extent = baseAxis.getExtent();\n const dpr = api.getDevicePixelRatio();\n // Coordinste system has been resized\n const size = Math.abs(extent[1] - extent[0]) * (dpr || 1);\n const rate = Math.round(count / size);\n\n if (rate > 1) {\n if (sampling === 'lttb') {\n seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate));\n }\n let sampler;\n if (typeof sampling === 'string') {\n sampler = samplers[sampling];\n }\n else if (typeof sampling === 'function') {\n sampler = sampling;\n }\n if (sampler) {\n // Only support sample the first dim mapped from value axis.\n seriesModel.setData(data.downSample(\n data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler\n ));\n }\n }\n }\n }\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LineSeries from './LineSeries';\nimport LineView from './LineView';\n\n// In case developer forget to include grid component\n\nimport layoutPoints from '../../layout/points';\nimport dataSample from '../../processor/dataSample';\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(LineView);\n registers.registerSeriesModel(LineSeries);\n\n registers.registerLayout(layoutPoints('line', true));\n\n registers.registerVisual({\n seriesType: 'line',\n reset: function (seriesModel: LineSeries) {\n const data = seriesModel.getData();\n // Visual coding for legend\n const lineStyle = seriesModel.getModel('lineStyle').getLineStyle();\n if (lineStyle && !lineStyle.stroke) {\n // Fill in visual should be palette color if\n // has color callback\n lineStyle.stroke = data.getVisual('style').fill;\n }\n data.setVisual('legendLineStyle', lineStyle);\n }\n });\n\n // Down sample after filter\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.STATISTIC,\n dataSample('line')\n );\n\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n ScaleDataValue,\n DefaultExtraStateOpts\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesData from '../../data/SeriesData';\n\n\nexport interface BaseBarSeriesOption\n extends SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin {\n\n /**\n * Min height of bar\n */\n barMinHeight?: number\n /**\n * Min angle of bar. Avaiable on polar coordinate system\n */\n barMinAngle?: number\n\n /**\n * Max width of bar. Default to be 1 on cartesian coordinate system. Otherwise it's null\n */\n barMaxWidth?: number\n\n barMinWidth?: number\n\n /**\n * Bar width. Will be calculated automatically.\n * Can be pixel width or percent string.\n */\n barWidth?: number | string\n\n /**\n * Gap between each bar inside category. Default to be 30%. Can be an aboslute pixel value\n */\n barGap?: string | number\n\n /**\n * Gap between each category. Default to be 20%. can be an absolute pixel value.\n */\n barCategoryGap?: string | number\n\n large?: boolean\n largeThreshold?: number\n}\n\nclass BaseBarSeriesModel = BaseBarSeriesOption>\n extends SeriesModel {\n\n static type = 'series.__base_bar__';\n type = BaseBarSeriesModel.type;\n\n getInitialData(option: Opts, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {useEncodeDefaulter: true});\n }\n\n getMarkerPosition(value: ScaleDataValue[]) {\n const coordSys = this.coordinateSystem;\n if (coordSys && coordSys.clampData) {\n // PENDING if clamp ?\n const pt = coordSys.dataToPoint(coordSys.clampData(value));\n const data = this.getData();\n const offset = data.getLayout('offset');\n const size = data.getLayout('size');\n const offsetIndex = (coordSys as Cartesian2D).getBaseAxis().isHorizontal() ? 0 : 1;\n pt[offsetIndex] += offset + size / 2;\n return pt;\n }\n return [NaN, NaN];\n }\n\n static defaultOption: BaseBarSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // stack: null\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n barMinHeight: 0,\n barMinAngle: 0,\n // cursor: null,\n\n large: false,\n largeThreshold: 400,\n progressive: 3e3,\n progressiveChunkMode: 'mod'\n };\n}\n\nSeriesModel.registerClass(BaseBarSeriesModel);\n\nexport default BaseBarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseBarSeriesModel, {BaseBarSeriesOption} from './BaseBarSeries';\nimport {\n ItemStyleOption,\n OptionDataValue,\n SeriesStackOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesSamplingOptionMixin,\n SeriesLabelOption,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport createSeriesData from '../helper/createSeriesData';\nimport type Polar from '../../coord/polar/Polar';\nimport { inheritDefaultOption } from '../../util/component';\nimport SeriesData from '../../data/SeriesData';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\nexport type PolarBarLabelPosition = SeriesLabelOption['position']\n | 'start' | 'insideStart' | 'middle' | 'end' | 'insideEnd';\n\nexport type BarSeriesLabelOption = Omit\n & {position?: PolarBarLabelPosition | 'outside'};\n\nexport interface BarStateOption {\n itemStyle?: BarItemStyleOption\n label?: BarSeriesLabelOption\n}\n\nexport interface BarItemStyleOption extends ItemStyleOption {\n // Border radius is not supported for bar on polar\n borderRadius?: number | number[]\n}\nexport interface BarDataItemOption extends BarStateOption, StatesOptionMixin,\n OptionDataItemObject {\n cursor?: string\n}\n\nexport interface BarSeriesOption extends BaseBarSeriesOption, BarStateOption,\n SeriesStackOptionMixin, SeriesSamplingOptionMixin, SeriesEncodeOptionMixin {\n\n type?: 'bar'\n\n coordinateSystem?: 'cartesian2d' | 'polar'\n\n clip?: boolean\n\n /**\n * If use caps on two sides of bars\n * Only available on tangential polar bar\n */\n roundCap?: boolean\n\n showBackground?: boolean\n\n backgroundStyle?: ItemStyleOption & {\n borderRadius?: number | number[]\n }\n\n data?: (BarDataItemOption | OptionDataValue | OptionDataValue[])[]\n\n realtimeSort?: boolean\n}\n\nclass BarSeriesModel extends BaseBarSeriesModel {\n static type = 'series.bar';\n type = BarSeriesModel.type;\n\n static dependencies = ['grid', 'polar'];\n\n coordinateSystem: Cartesian2D | Polar;\n\n getInitialData(): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: true,\n createInvertedIndices: !!this.get('realtimeSort', true) || null\n });\n }\n\n /**\n * @override\n */\n getProgressive() {\n // Do not support progressive in normal mode.\n return this.get('large')\n ? this.get('progressive')\n : false;\n }\n\n /**\n * @override\n */\n getProgressiveThreshold() {\n // Do not support progressive in normal mode.\n let progressiveThreshold = this.get('progressiveThreshold');\n const largeThreshold = this.get('largeThreshold');\n if (largeThreshold > progressiveThreshold) {\n progressiveThreshold = largeThreshold;\n }\n return progressiveThreshold;\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.rect(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: BarSeriesOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n // If clipped\n // Only available on cartesian2d\n clip: true,\n\n roundCap: false,\n\n showBackground: false,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)',\n borderColor: null,\n borderWidth: 0,\n borderType: 'solid',\n borderRadius: 0,\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n realtimeSort: false\n });\n\n}\n\nexport default BarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {Path} from '../graphic';\nimport { PathProps } from 'zrender/src/graphic/Path';\n\n/**\n * Sausage: similar to sector, but have half circle on both sides\n */\n\nclass SausageShape {\n cx = 0;\n cy = 0;\n r0 = 0;\n r = 0;\n startAngle = 0;\n endAngle = Math.PI * 2;\n clockwise = true;\n}\n\ninterface SausagePathProps extends PathProps {\n shape?: SausageShape\n}\n\nclass SausagePath extends Path {\n\n type = 'sausage';\n\n constructor(opts?: SausagePathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SausageShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SausageShape) {\n const x = shape.cx;\n const y = shape.cy;\n const r0 = Math.max(shape.r0 || 0, 0);\n const r = Math.max(shape.r, 0);\n const dr = (r - r0) * 0.5;\n const rCenter = r0 + dr;\n const startAngle = shape.startAngle;\n const endAngle = shape.endAngle;\n const clockwise = shape.clockwise;\n\n const unitStartX = Math.cos(startAngle);\n const unitStartY = Math.sin(startAngle);\n const unitEndX = Math.cos(endAngle);\n const unitEndY = Math.sin(endAngle);\n\n const lessThanCircle = clockwise\n ? endAngle - startAngle < Math.PI * 2\n : startAngle - endAngle < Math.PI * 2;\n\n if (lessThanCircle) {\n ctx.moveTo(unitStartX * r0 + x, unitStartY * r0 + y);\n\n ctx.arc(\n unitStartX * rCenter + x, unitStartY * rCenter + y, dr,\n -Math.PI + startAngle, startAngle, !clockwise\n );\n }\n\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n\n ctx.moveTo(unitEndX * r + x, unitEndY * r + y);\n\n ctx.arc(\n unitEndX * rCenter + x, unitEndY * rCenter + y, dr,\n endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise\n );\n\n if (r0 !== 0) {\n ctx.arc(x, y, r0, endAngle, startAngle, clockwise);\n\n ctx.moveTo(unitStartX * r0 + x, unitEndY * r0 + y);\n }\n\n ctx.closePath();\n }\n}\n\nexport default SausagePath;", "import {calculateTextPosition, TextPositionCalculationResult} from 'zrender/src/contain/text';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport {BuiltinTextPosition, TextAlign, TextVerticalAlign} from 'zrender/src/core/types';\nimport {isArray} from 'zrender/src/core/util';\nimport {ElementCalculateTextPosition, ElementTextConfig} from 'zrender/src/Element';\nimport { Sector } from '../util/graphic';\n\nexport type SectorTextPosition = BuiltinTextPosition\n | 'startAngle' | 'insideStartAngle'\n | 'endAngle' | 'insideEndAngle'\n | 'middle'\n | 'startArc' | 'insideStartArc'\n | 'endArc' | 'insideEndArc'\n | (number | string)[];\n\nexport type SectorLike = {\n cx: number\n cy: number\n r0: number\n r: number\n startAngle: number\n endAngle: number\n clockwise: boolean\n};\n\nexport function createSectorCalculateTextPosition(\n positionMapping: (seriesLabelPosition: T) => SectorTextPosition\n): ElementCalculateTextPosition {\n return function (\n this: Sector,\n out: TextPositionCalculationResult,\n opts: {\n position?: SectorTextPosition\n distance?: number\n global?: boolean\n },\n boundingRect: RectLike\n ) {\n const textPosition = opts.position;\n\n if (!textPosition || textPosition instanceof Array) {\n return calculateTextPosition(\n out,\n opts as ElementTextConfig,\n boundingRect\n );\n }\n\n const mappedSectorPosition = positionMapping(textPosition as T);\n const distance = opts.distance != null ? opts.distance : 5;\n const sector = this.shape;\n const cx = sector.cx;\n const cy = sector.cy;\n const r = sector.r;\n const r0 = sector.r0;\n const middleR = (r + r0) / 2;\n const startAngle = sector.startAngle;\n const endAngle = sector.endAngle;\n const middleAngle = (startAngle + endAngle) / 2;\n\n // base position: top-left\n let x = cx + r * Math.cos(startAngle);\n let y = cy + r * Math.sin(startAngle);\n\n let textAlign: TextAlign = 'left';\n let textVerticalAlign: TextVerticalAlign = 'top';\n\n switch (mappedSectorPosition) {\n case 'startArc':\n x = cx + (r0 - distance) * Math.cos(middleAngle);\n y = cy + (r0 - distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'top';\n break;\n\n case 'insideStartArc':\n x = cx + (r0 + distance) * Math.cos(middleAngle);\n y = cy + (r0 + distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n\n case 'startAngle':\n x = cx + middleR * Math.cos(startAngle)\n + adjustAngleDistanceX(startAngle, distance, false);\n y = cy + middleR * Math.sin(startAngle)\n + adjustAngleDistanceY(startAngle, distance, false);\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n\n case 'insideStartAngle':\n x = cx + middleR * Math.cos(startAngle)\n + adjustAngleDistanceX(startAngle, -distance, false);\n y = cy + middleR * Math.sin(startAngle)\n + adjustAngleDistanceY(startAngle, -distance, false);\n textAlign = 'left';\n textVerticalAlign = 'middle';\n break;\n\n case 'middle':\n x = cx + middleR * Math.cos(middleAngle);\n y = cy + middleR * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n\n case 'endArc':\n x = cx + (r + distance) * Math.cos(middleAngle);\n y = cy + (r + distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideEndArc':\n x = cx + (r - distance) * Math.cos(middleAngle);\n y = cy + (r - distance) * Math.sin(middleAngle);\n textAlign = 'center';\n textVerticalAlign = 'top';\n break;\n\n case 'endAngle':\n x = cx + middleR * Math.cos(endAngle)\n + adjustAngleDistanceX(endAngle, distance, true);\n y = cy + middleR * Math.sin(endAngle)\n + adjustAngleDistanceY(endAngle, distance, true);\n textAlign = 'left';\n textVerticalAlign = 'middle';\n break;\n\n case 'insideEndAngle':\n x = cx + middleR * Math.cos(endAngle)\n + adjustAngleDistanceX(endAngle, -distance, true);\n y = cy + middleR * Math.sin(endAngle)\n + adjustAngleDistanceY(endAngle, -distance, true);\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n\n default:\n return calculateTextPosition(\n out,\n opts as ElementTextConfig,\n boundingRect\n );\n }\n\n out = out || {} as TextPositionCalculationResult;\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n\n return out;\n };\n}\n\nexport function setSectorTextRotation(\n sector: Sector,\n textPosition: T,\n positionMapping: (seriesLabelPosition: T) => SectorTextPosition,\n rotateType: number | 'auto'\n) {\n if (typeof rotateType === 'number') {\n // user-set rotation\n sector.setTextConfig({\n rotation: rotateType\n });\n return;\n }\n else if (isArray(textPosition)) {\n // user-set position, use 0 as auto rotation\n sector.setTextConfig({\n rotation: 0\n });\n return;\n }\n\n const shape = sector.shape;\n const startAngle = shape.clockwise ? shape.startAngle : shape.endAngle;\n const endAngle = shape.clockwise ? shape.endAngle : shape.startAngle;\n const middleAngle = (startAngle + endAngle) / 2;\n\n let anchorAngle;\n const mappedSectorPosition = positionMapping(textPosition);\n switch (mappedSectorPosition) {\n case 'startArc':\n case 'insideStartArc':\n case 'middle':\n case 'insideEndArc':\n case 'endArc':\n anchorAngle = middleAngle;\n break;\n\n case 'startAngle':\n case 'insideStartAngle':\n anchorAngle = startAngle;\n break;\n\n case 'endAngle':\n case 'insideEndAngle':\n anchorAngle = endAngle;\n break;\n\n default:\n sector.setTextConfig({\n rotation: 0\n });\n return;\n }\n\n let rotate = Math.PI * 1.5 - anchorAngle;\n /**\n * TODO: labels with rotate > Math.PI / 2 should be rotate another\n * half round flipped to increase readability. However, only middle\n * position supports this for now, because in other positions, the\n * anchor point is not at the center of the text, so the positions\n * after rotating is not as expected.\n */\n if (mappedSectorPosition === 'middle' && rotate > Math.PI / 2 && rotate < Math.PI * 1.5) {\n rotate -= Math.PI;\n }\n\n sector.setTextConfig({\n rotation: rotate\n });\n}\n\nfunction adjustAngleDistanceX(angle: number, distance: number, isEnd: boolean) {\n return distance * Math.sin(angle) * (isEnd ? -1 : 1);\n}\n\nfunction adjustAngleDistanceY(angle: number, distance: number, isEnd: boolean) {\n return distance * Math.cos(angle) * (isEnd ? 1 : -1);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Path, {PathProps} from 'zrender/src/graphic/Path';\nimport Group from 'zrender/src/graphic/Group';\nimport {extend, defaults, each, map} from 'zrender/src/core/util';\nimport {BuiltinTextPosition} from 'zrender/src/core/types';\nimport {\n Rect,\n Sector,\n updateProps,\n initProps,\n removeElementWithFadeOut\n} from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, setLabelValueAnimation } from '../../label/labelStyle';\nimport {throttle} from '../../util/throttle';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport Sausage from '../../util/shape/sausage';\nimport ChartView from '../../view/Chart';\nimport SeriesData, {DefaultDataVisual} from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n StageHandlerProgressParams,\n ZRElementEvent,\n ColorString,\n OrdinalSortInfo,\n Payload,\n OrdinalNumber,\n ParsedValue\n} from '../../util/types';\nimport BarSeriesModel, {BarSeriesOption, BarDataItemOption, PolarBarLabelPosition} from './BarSeries';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Polar from '../../coord/polar/Polar';\nimport type Model from '../../model/Model';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport OrdinalScale from '../../scale/Ordinal';\nimport SeriesModel from '../../model/Series';\nimport {AngleAxisModel, RadiusAxisModel} from '../../coord/polar/AxisModel';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport {LayoutRect} from '../../util/layout';\nimport {EventCallback} from 'zrender/src/core/Eventful';\nimport { warn } from '../../util/log';\nimport {createSectorCalculateTextPosition, SectorTextPosition, setSectorTextRotation} from '../../label/sectorLabel';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst _eventPos = [0, 0];\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\n\ntype CoordSysOfBar = BarSeriesModel['coordinateSystem'];\ntype RectShape = Rect['shape'];\ntype SectorShape = Sector['shape'];\n\ntype SectorLayout = SectorShape;\ntype RectLayout = RectShape;\n\ntype BarPossiblePath = Sector | Rect | Sausage;\n\ntype CartesianCoordArea = ReturnType;\ntype PolarCoordArea = ReturnType;\n\ntype RealtimeSortConfig = {\n baseAxis: Axis2D;\n otherAxis: Axis2D;\n};\n// Return a number, based on which the ordinal sorted.\ntype OrderMapping = (dataIndex: number) => number;\n\nfunction getClipArea(coord: CoordSysOfBar, data: SeriesData) {\n const coordSysClipArea = coord.getArea && coord.getArea();\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n const baseAxis = coord.getBaseAxis();\n // When boundaryGap is false or using time axis. bar may exceed the grid.\n // We should not clip this part.\n // See test/bar2.html\n if (baseAxis.type !== 'category' || !baseAxis.onBand) {\n const expandWidth = data.getLayout('bandWidth');\n if (baseAxis.isHorizontal()) {\n (coordSysClipArea as CartesianCoordArea).x -= expandWidth;\n (coordSysClipArea as CartesianCoordArea).width += expandWidth * 2;\n }\n else {\n (coordSysClipArea as CartesianCoordArea).y -= expandWidth;\n (coordSysClipArea as CartesianCoordArea).height += expandWidth * 2;\n }\n }\n }\n\n return coordSysClipArea as PolarCoordArea | CartesianCoordArea;\n}\n\nclass BarView extends ChartView {\n static type = 'bar' as const;\n type = BarView.type;\n\n private _data: SeriesData;\n\n private _isLargeDraw: boolean;\n\n private _isFirstFrame: boolean; // First frame after series added\n private _onRendered: EventCallback;\n\n private _backgroundGroup: Group;\n\n private _backgroundEls: (Rect | Sector)[];\n\n private _model: BarSeriesModel;\n\n constructor() {\n super();\n this._isFirstFrame = true;\n }\n\n render(seriesModel: BarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this._model = seriesModel;\n\n this._removeOnRenderedListener(api);\n\n this._updateDrawMode(seriesModel);\n\n const coordinateSystemType = seriesModel.get('coordinateSystem');\n\n if (coordinateSystemType === 'cartesian2d'\n || coordinateSystemType === 'polar'\n ) {\n this._isLargeDraw\n ? this._renderLarge(seriesModel, ecModel, api)\n : this._renderNormal(seriesModel, ecModel, api, payload);\n }\n else if (__DEV__) {\n warn('Only cartesian2d and polar supported for bar.');\n }\n }\n\n incrementalPrepareRender(seriesModel: BarSeriesModel): void {\n this._clear();\n this._updateDrawMode(seriesModel);\n // incremental also need to clip, otherwise might be overlow.\n // But must not set clip in each frame, otherwise all of the children will be marked redraw.\n this._updateLargeClip(seriesModel);\n }\n\n incrementalRender(params: StageHandlerProgressParams, seriesModel: BarSeriesModel): void {\n // Do not support progressive in normal mode.\n this._incrementalRenderLarge(params, seriesModel);\n }\n\n private _updateDrawMode(seriesModel: BarSeriesModel): void {\n const isLargeDraw = seriesModel.pipelineContext.large;\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n this._clear();\n }\n }\n\n private _renderNormal(\n seriesModel: BarSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const group = this.group;\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const coord = seriesModel.coordinateSystem;\n const baseAxis = coord.getBaseAxis();\n let isHorizontalOrRadial: boolean;\n\n if (coord.type === 'cartesian2d') {\n isHorizontalOrRadial = (baseAxis as Axis2D).isHorizontal();\n }\n else if (coord.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n }\n\n const animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;\n\n const realtimeSortCfg = shouldRealtimeSort(seriesModel, coord);\n\n if (realtimeSortCfg) {\n this._enableRealtimeSort(realtimeSortCfg, data, api);\n }\n\n const needsClip = seriesModel.get('clip', true) || realtimeSortCfg;\n const coordSysClipArea = getClipArea(coord, data);\n // If there is clipPath created in large mode. Remove it.\n group.removeClipPath();\n // We don't use clipPath in normal mode because we needs a perfect animation\n // And don't want the label are clipped.\n\n const roundCap = seriesModel.get('roundCap', true);\n\n const drawBackground = seriesModel.get('showBackground', true);\n const backgroundModel = seriesModel.getModel('backgroundStyle');\n const barBorderRadius = backgroundModel.get('borderRadius') || 0;\n\n const bgEls: BarView['_backgroundEls'] = [];\n const oldBgEls = this._backgroundEls;\n\n const isInitSort = payload && payload.isInitSort;\n const isChangeOrder = payload && payload.type === 'changeAxisOrder';\n\n function createBackground(dataIndex: number) {\n const bgLayout = getLayout[coord.type](data, dataIndex);\n const bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout);\n bgEl.useStyle(backgroundModel.getItemStyle());\n // Only cartesian2d support borderRadius.\n if (coord.type === 'cartesian2d') {\n (bgEl as Rect).setShape('r', barBorderRadius);\n }\n bgEls[dataIndex] = bgEl;\n return bgEl;\n };\n data.diff(oldData)\n .add(function (dataIndex) {\n const itemModel = data.getItemModel(dataIndex);\n const layout = getLayout[coord.type](data, dataIndex, itemModel);\n\n if (drawBackground) {\n createBackground(dataIndex);\n }\n\n // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in \"axisProxy\".\n if (!data.hasValue(dataIndex) || !isValidLayout[coord.type](layout)) {\n return;\n }\n\n let isClipped = false;\n if (needsClip) {\n // Clip will modify the layout params.\n // And return a boolean to determine if the shape are fully clipped.\n isClipped = clip[coord.type](coordSysClipArea, layout);\n }\n\n const el = elementCreator[coord.type](\n seriesModel,\n data,\n dataIndex,\n layout,\n isHorizontalOrRadial,\n animationModel,\n baseAxis.model,\n false,\n roundCap\n );\n\n updateStyle(\n el, data, dataIndex, itemModel, layout,\n seriesModel, isHorizontalOrRadial, coord.type === 'polar'\n );\n if (isInitSort) {\n (el as Rect).attr({ shape: layout });\n }\n else if (realtimeSortCfg) {\n updateRealtimeAnimation(\n realtimeSortCfg,\n animationModel,\n el as Rect,\n layout as LayoutRect,\n dataIndex,\n isHorizontalOrRadial,\n false,\n false\n );\n }\n else {\n initProps(el, {shape: layout} as any, seriesModel, dataIndex);\n }\n\n data.setItemGraphicEl(dataIndex, el);\n\n group.add(el);\n el.ignore = isClipped;\n })\n .update(function (newIndex, oldIndex) {\n const itemModel = data.getItemModel(newIndex);\n const layout = getLayout[coord.type](data, newIndex, itemModel);\n\n if (drawBackground) {\n let bgEl: Rect | Sector;\n if (oldBgEls.length === 0) {\n bgEl = createBackground(oldIndex);\n }\n else {\n bgEl = oldBgEls[oldIndex];\n bgEl.useStyle(backgroundModel.getItemStyle());\n // Only cartesian2d support borderRadius.\n if (coord.type === 'cartesian2d') {\n (bgEl as Rect).setShape('r', barBorderRadius);\n }\n bgEls[newIndex] = bgEl;\n }\n const bgLayout = getLayout[coord.type](data, newIndex);\n const shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord);\n updateProps(bgEl, { shape }, animationModel, newIndex);\n }\n\n let el = oldData.getItemGraphicEl(oldIndex) as BarPossiblePath;\n if (!data.hasValue(newIndex) || !isValidLayout[coord.type](layout)) {\n group.remove(el);\n return;\n }\n\n let isClipped = false;\n if (needsClip) {\n isClipped = clip[coord.type](coordSysClipArea, layout);\n if (isClipped) {\n group.remove(el);\n }\n }\n\n if (!el) {\n el = elementCreator[coord.type](\n seriesModel,\n data,\n newIndex,\n layout,\n isHorizontalOrRadial,\n animationModel,\n baseAxis.model,\n !!el,\n roundCap\n );\n }\n else {\n saveOldStyle(el);\n }\n\n // Not change anything if only order changed.\n // Especially not change label.\n if (!isChangeOrder) {\n updateStyle(\n el, data, newIndex, itemModel, layout,\n seriesModel, isHorizontalOrRadial, coord.type === 'polar'\n );\n }\n\n if (isInitSort) {\n (el as Rect).attr({ shape: layout });\n }\n else if (realtimeSortCfg) {\n updateRealtimeAnimation(\n realtimeSortCfg,\n animationModel,\n el as Rect,\n layout as LayoutRect,\n newIndex,\n isHorizontalOrRadial,\n true,\n isChangeOrder\n );\n }\n else {\n updateProps(el, {\n shape: layout\n } as any, seriesModel, newIndex, null);\n }\n\n data.setItemGraphicEl(newIndex, el);\n el.ignore = isClipped;\n group.add(el);\n })\n .remove(function (dataIndex) {\n const el = oldData.getItemGraphicEl(dataIndex) as Path;\n el && removeElementWithFadeOut(el, seriesModel, dataIndex);\n })\n .execute();\n\n const bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group());\n bgGroup.removeAll();\n\n for (let i = 0; i < bgEls.length; ++i) {\n bgGroup.add(bgEls[i]);\n }\n group.add(bgGroup);\n this._backgroundEls = bgEls;\n\n this._data = data;\n }\n\n private _renderLarge(seriesModel: BarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n this._clear();\n createLarge(seriesModel, this.group);\n this._updateLargeClip(seriesModel);\n }\n\n private _incrementalRenderLarge(params: StageHandlerProgressParams, seriesModel: BarSeriesModel): void {\n this._removeBackground();\n createLarge(seriesModel, this.group, true);\n }\n\n private _updateLargeClip(seriesModel: BarSeriesModel): void {\n // Use clipPath in large mode.\n const clipPath = seriesModel.get('clip', true)\n ? createClipPath(seriesModel.coordinateSystem, false, seriesModel)\n : null;\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n }\n\n private _enableRealtimeSort(\n realtimeSortCfg: RealtimeSortConfig,\n data: ReturnType,\n api: ExtensionAPI\n ): void {\n // If no data in the first frame, wait for data to initSort\n if (!data.count()) {\n return;\n }\n\n const baseAxis = realtimeSortCfg.baseAxis;\n\n if (this._isFirstFrame) {\n this._dispatchInitSort(data, realtimeSortCfg, api);\n this._isFirstFrame = false;\n }\n else {\n const orderMapping = (idx: number) => {\n const el = (data.getItemGraphicEl(idx) as Rect);\n if (el) {\n const shape = el.shape;\n // If data is NaN, shape.xxx may be NaN, so use || 0 here in case\n return (\n baseAxis.isHorizontal()\n // The result should be consistent with the initial sort by data value.\n // Do not support the case that both positive and negative exist.\n ? Math.abs(shape.height)\n : Math.abs(shape.width)\n ) || 0;\n }\n else {\n return 0;\n }\n };\n this._onRendered = () => {\n this._updateSortWithinSameData(data, orderMapping, baseAxis, api);\n };\n api.getZr().on('rendered', this._onRendered);\n }\n }\n\n private _dataSort(\n data: SeriesData,\n baseAxis: Axis2D,\n orderMapping: OrderMapping\n ): OrdinalSortInfo {\n type SortValueInfo = {\n dataIndex: number,\n mappedValue: number,\n ordinalNumber: OrdinalNumber\n };\n const info: SortValueInfo[] = [];\n data.each(data.mapDimension(baseAxis.dim), (ordinalNumber: OrdinalNumber, dataIdx: number) => {\n let mappedValue = orderMapping(dataIdx);\n mappedValue = mappedValue == null ? NaN : mappedValue;\n info.push({\n dataIndex: dataIdx,\n mappedValue: mappedValue,\n ordinalNumber: ordinalNumber\n });\n });\n\n info.sort((a, b) => {\n // If NaN, it will be treated as min val.\n return b.mappedValue - a.mappedValue;\n });\n\n return {\n ordinalNumbers: map(info, item => item.ordinalNumber)\n };\n }\n\n private _isOrderChangedWithinSameData(\n data: SeriesData,\n orderMapping: OrderMapping,\n baseAxis: Axis2D\n ): boolean {\n const scale = baseAxis.scale as OrdinalScale;\n const ordinalDataDim = data.mapDimension(baseAxis.dim);\n\n let lastValue = Number.MAX_VALUE;\n for (let tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) {\n const rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum));\n const value = rawIdx < 0\n // If some tick have no bar, the tick will be treated as min.\n ? Number.MIN_VALUE\n // PENDING: if dataZoom on baseAxis exits, is it a performance issue?\n : orderMapping(data.indexOfRawIndex(rawIdx));\n if (value > lastValue) {\n return true;\n }\n lastValue = value;\n }\n return false;\n }\n\n /*\n * Consider the case when A and B changed order, whose representing\n * bars are both out of sight, we don't wish to trigger reorder action\n * as long as the order in the view doesn't change.\n */\n private _isOrderDifferentInView(\n orderInfo: OrdinalSortInfo,\n baseAxis: Axis2D\n ): boolean {\n const scale = baseAxis.scale as OrdinalScale;\n const extent = scale.getExtent();\n\n let tickNum = Math.max(0, extent[0]);\n const tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1);\n for (;tickNum <= tickMax; ++tickNum) {\n if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) {\n return true;\n }\n }\n }\n\n private _updateSortWithinSameData(\n data: SeriesData,\n orderMapping: OrderMapping,\n baseAxis: Axis2D,\n api: ExtensionAPI\n ) {\n if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) {\n return;\n }\n\n const sortInfo = this._dataSort(data, baseAxis, orderMapping);\n\n if (this._isOrderDifferentInView(sortInfo, baseAxis)) {\n this._removeOnRenderedListener(api);\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n axisId: baseAxis.index,\n sortInfo: sortInfo\n });\n }\n }\n\n private _dispatchInitSort(\n data: SeriesData,\n realtimeSortCfg: RealtimeSortConfig,\n api: ExtensionAPI\n ) {\n const baseAxis = realtimeSortCfg.baseAxis;\n const sortResult = this._dataSort(\n data,\n baseAxis,\n dataIdx => data.get(\n data.mapDimension(realtimeSortCfg.otherAxis.dim),\n dataIdx\n ) as number\n );\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n isInitSort: true,\n axisId: baseAxis.index,\n sortInfo: sortResult\n });\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._clear(this._model);\n this._removeOnRenderedListener(api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this._removeOnRenderedListener(api);\n }\n\n private _removeOnRenderedListener(api: ExtensionAPI) {\n if (this._onRendered) {\n api.getZr().off('rendered', this._onRendered);\n this._onRendered = null;\n }\n }\n\n private _clear(model?: SeriesModel): void {\n const group = this.group;\n const data = this._data;\n if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) {\n this._removeBackground();\n this._backgroundEls = [];\n\n data.eachItemGraphicEl(function (el: Path) {\n removeElementWithFadeOut(el, model, getECData(el).dataIndex);\n });\n }\n else {\n group.removeAll();\n }\n this._data = null;\n this._isFirstFrame = true;\n }\n\n private _removeBackground(): void {\n this.group.remove(this._backgroundGroup);\n this._backgroundGroup = null;\n }\n}\n\ninterface Clipper {\n (coordSysBoundingRect: PolarCoordArea | CartesianCoordArea, layout: RectLayout | SectorLayout): boolean\n}\nconst clip: {\n [key in 'cartesian2d' | 'polar']: Clipper\n} = {\n cartesian2d(coordSysBoundingRect: CartesianCoordArea, layout: Rect['shape']) {\n const signWidth = layout.width < 0 ? -1 : 1;\n const signHeight = layout.height < 0 ? -1 : 1;\n // Needs positive width and height\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n const coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width;\n const coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height;\n const x = mathMax(layout.x, coordSysBoundingRect.x);\n const x2 = mathMin(layout.x + layout.width, coordSysX2);\n const y = mathMax(layout.y, coordSysBoundingRect.y);\n const y2 = mathMin(layout.y + layout.height, coordSysY2);\n\n const xClipped = x2 < x;\n const yClipped = y2 < y;\n\n // When xClipped or yClipped, the element will be marked as `ignore`.\n // But we should also place the element at the edge of the coord sys bounding rect.\n // Beause if data changed and the bar show again, its transition animaiton\n // will begin at this place.\n layout.x = (xClipped && x > coordSysX2) ? x2 : x;\n layout.y = (yClipped && y > coordSysY2) ? y2 : y;\n layout.width = xClipped ? 0 : x2 - x;\n layout.height = yClipped ? 0 : y2 - y;\n\n // Reverse back\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n return xClipped || yClipped;\n },\n\n polar(coordSysClipArea: PolarCoordArea, layout: Sector['shape']) {\n const signR = layout.r0 <= layout.r ? 1 : -1;\n // Make sure r is larger than r0\n if (signR < 0) {\n const tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n const r = mathMin(layout.r, coordSysClipArea.r);\n const r0 = mathMax(layout.r0, coordSysClipArea.r0);\n\n layout.r = r;\n layout.r0 = r0;\n\n const clipped = r - r0 < 0;\n\n // Reverse back\n if (signR < 0) {\n const tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n return clipped;\n }\n};\n\ninterface ElementCreator {\n (\n seriesModel: BarSeriesModel, data: SeriesData, newIndex: number,\n layout: RectLayout | SectorLayout, isHorizontalOrRadial: boolean,\n animationModel: BarSeriesModel,\n axisModel: CartesianAxisModel | AngleAxisModel | RadiusAxisModel,\n isUpdate: boolean,\n roundCap?: boolean\n ): BarPossiblePath\n}\n\nconst elementCreator: {\n [key in 'polar' | 'cartesian2d']: ElementCreator\n} = {\n\n cartesian2d(\n seriesModel, data, newIndex, layout: RectLayout, isHorizontal,\n animationModel, axisModel, isUpdate, roundCap\n ) {\n const rect = new Rect({\n shape: extend({}, layout),\n z2: 1\n });\n (rect as any).__dataIndex = newIndex;\n\n rect.name = 'item';\n\n if (animationModel) {\n const rectShape = rect.shape;\n const animateProperty = isHorizontal ? 'height' : 'width' as 'width' | 'height';\n rectShape[animateProperty] = 0;\n }\n return rect;\n },\n\n polar(\n seriesModel, data, newIndex, layout: SectorLayout, isRadial: boolean,\n animationModel, axisModel, isUpdate, roundCap\n ) {\n // Keep the same logic with bar in catesion: use end value to control\n // direction. Notice that if clockwise is true (by default), the sector\n // will always draw clockwisely, no matter whether endAngle is greater\n // or less than startAngle.\n const clockwise = layout.startAngle < layout.endAngle;\n\n const ShapeClass = (!isRadial && roundCap) ? Sausage : Sector;\n\n const sector = new ShapeClass({\n shape: defaults({clockwise: clockwise}, layout),\n z2: 1\n });\n\n sector.name = 'item';\n\n const positionMap = createPolarPositionMapping(isRadial);\n sector.calculateTextPosition = createSectorCalculateTextPosition(positionMap);\n\n // Animation\n if (animationModel) {\n const sectorShape = sector.shape;\n const animateProperty = isRadial ? 'r' : 'endAngle' as 'r' | 'endAngle';\n const animateTarget = {} as SectorShape;\n sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;\n animateTarget[animateProperty] = layout[animateProperty];\n (isUpdate ? updateProps : initProps)(sector, {\n shape: animateTarget\n // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue\n }, animationModel);\n }\n\n return sector;\n }\n};\n\nfunction shouldRealtimeSort(\n seriesModel: BarSeriesModel,\n coordSys: Cartesian2D | Polar\n): RealtimeSortConfig {\n const realtimeSortOption = seriesModel.get('realtimeSort', true);\n const baseAxis = coordSys.getBaseAxis() as Axis2D;\n if (__DEV__) {\n if (realtimeSortOption) {\n if (baseAxis.type !== 'category') {\n warn('`realtimeSort` will not work because this bar series is not based on a category axis.');\n }\n if (coordSys.type !== 'cartesian2d') {\n warn('`realtimeSort` will not work because this bar series is not on cartesian2d.');\n }\n }\n }\n if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') {\n return {\n baseAxis: baseAxis as Axis2D,\n otherAxis: coordSys.getOtherAxis(baseAxis)\n };\n }\n}\n\nfunction updateRealtimeAnimation(\n realtimeSortCfg: RealtimeSortConfig,\n seriesAnimationModel: BarSeriesModel,\n el: Rect,\n layout: LayoutRect,\n newIndex: number,\n isHorizontal: boolean,\n isUpdate: boolean,\n isChangeOrder: boolean\n) {\n let seriesTarget;\n let axisTarget;\n if (isHorizontal) {\n axisTarget = {\n x: layout.x,\n width: layout.width\n };\n seriesTarget = {\n y: layout.y,\n height: layout.height\n };\n }\n else {\n axisTarget = {\n y: layout.y,\n height: layout.height\n };\n seriesTarget = {\n x: layout.x,\n width: layout.width\n };\n }\n\n if (!isChangeOrder) {\n // Keep the original growth animation if only axis order changed.\n // Not start a new animation.\n (isUpdate ? updateProps : initProps)(el, {\n shape: seriesTarget\n }, seriesAnimationModel, newIndex, null);\n }\n\n const axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null;\n (isUpdate ? updateProps : initProps)(el, {\n shape: axisTarget\n }, axisAnimationModel, newIndex);\n}\n\nfunction checkPropertiesNotValid>(obj: T, props: readonly (keyof T)[]) {\n for (let i = 0; i < props.length; i++) {\n if (!isFinite(obj[props[i]])) {\n return true;\n }\n }\n return false;\n}\n\n\nconst rectPropties = ['x', 'y', 'width', 'height'] as const;\nconst polarPropties = ['cx', 'cy', 'r', 'startAngle', 'endAngle'] as const;\nconst isValidLayout: Record<'cartesian2d' | 'polar', (layout: RectLayout | SectorLayout) => boolean> = {\n cartesian2d(layout: RectLayout) {\n return !checkPropertiesNotValid(layout, rectPropties);\n },\n\n polar(layout: SectorLayout) {\n return !checkPropertiesNotValid(layout, polarPropties);\n }\n} as const;\n\ninterface GetLayout {\n (data: SeriesData, dataIndex: number, itemModel?: Model): RectLayout | SectorLayout\n}\nconst getLayout: {\n [key in 'cartesian2d' | 'polar']: GetLayout\n} = {\n // itemModel is only used to get borderWidth, which is not needed\n // when calculating bar background layout.\n cartesian2d(data, dataIndex, itemModel?): RectLayout {\n const layout = data.getItemLayout(dataIndex) as RectLayout;\n const fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0;\n\n // fix layout with lineWidth\n const signX = layout.width > 0 ? 1 : -1;\n const signY = layout.height > 0 ? 1 : -1;\n return {\n x: layout.x + signX * fixedLineWidth / 2,\n y: layout.y + signY * fixedLineWidth / 2,\n width: layout.width - signX * fixedLineWidth,\n height: layout.height - signY * fixedLineWidth\n };\n },\n\n polar(data, dataIndex, itemModel?): SectorLayout {\n const layout = data.getItemLayout(dataIndex);\n return {\n cx: layout.cx,\n cy: layout.cy,\n r0: layout.r0,\n r: layout.r,\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n } as SectorLayout;\n }\n};\n\nfunction isZeroOnPolar(layout: SectorLayout) {\n return layout.startAngle != null\n && layout.endAngle != null\n && layout.startAngle === layout.endAngle;\n}\n\nfunction createPolarPositionMapping(isRadial: boolean)\n : (position: PolarBarLabelPosition) => SectorTextPosition {\n return ((isRadial: boolean) => {\n const arcOrAngle = isRadial ? 'Arc' : 'Angle';\n return (position: PolarBarLabelPosition) => {\n switch (position) {\n case 'start':\n case 'insideStart':\n case 'end':\n case 'insideEnd':\n return position + arcOrAngle as SectorTextPosition;\n default:\n return position;\n }\n };\n })(isRadial);\n}\n\nfunction updateStyle(\n el: BarPossiblePath,\n data: SeriesData, dataIndex: number,\n itemModel: Model,\n layout: RectLayout | SectorLayout,\n seriesModel: BarSeriesModel,\n isHorizontalOrRadial: boolean,\n isPolar: boolean\n) {\n const style = data.getItemVisual(dataIndex, 'style');\n\n if (!isPolar) {\n (el as Rect).setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);\n }\n\n el.useStyle(style);\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && (el as Path).attr('cursor', cursorStyle);\n\n const labelPositionOutside = isPolar\n ? (isHorizontalOrRadial\n ? ((layout as SectorLayout).r >= (layout as SectorLayout).r0 ? 'endArc' as const : 'startArc' as const)\n : ((layout as SectorLayout).endAngle >= (layout as SectorLayout).startAngle\n ? 'endAngle' as const\n : 'startAngle' as const\n )\n )\n : (isHorizontalOrRadial\n ? ((layout as RectLayout).height >= 0 ? 'bottom' as const : 'top' as const)\n : ((layout as RectLayout).width >= 0 ? 'right' as const : 'left' as const));\n\n const labelStatesModels = getLabelStatesModels(itemModel);\n\n setLabelStyle(\n el, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(seriesModel.getData(), dataIndex),\n inheritColor: style.fill as ColorString,\n defaultOpacity: style.opacity,\n defaultOutsidePosition: labelPositionOutside as BuiltinTextPosition\n }\n );\n\n const label = el.getTextContent();\n if (isPolar && label) {\n const position = itemModel.get(['label', 'position']);\n el.textConfig.inside = position === 'middle' ? true : null;\n setSectorTextRotation(\n el as Sector,\n position === 'outside' ? labelPositionOutside : position,\n createPolarPositionMapping(isHorizontalOrRadial),\n itemModel.get(['label', 'rotate'])\n );\n }\n\n setLabelValueAnimation(\n label,\n labelStatesModels,\n seriesModel.getRawValue(dataIndex) as ParsedValue,\n (value: number) => getDefaultInterpolatedLabel(data, value)\n );\n\n const emphasisModel = itemModel.getModel(['emphasis']);\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n setStatesStylesFromModel(el, itemModel);\n\n if (isZeroOnPolar(layout as SectorLayout)) {\n el.style.fill = 'none';\n el.style.stroke = 'none';\n each(el.states, (state) => {\n if (state.style) {\n state.style.fill = state.style.stroke = 'none';\n }\n });\n }\n}\n\n// In case width or height are too small.\nfunction getLineWidth(\n itemModel: Model,\n rawLayout: RectLayout\n) {\n // Has no border.\n const borderColor = itemModel.get(['itemStyle', 'borderColor']);\n if (!borderColor || borderColor === 'none') {\n return 0;\n }\n const lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0;\n // width or height may be NaN for empty data\n const width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width);\n const height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height);\n return Math.min(lineWidth, width, height);\n}\n\nclass LagePathShape {\n points: ArrayLike;\n}\ninterface LargePathProps extends PathProps {\n shape?: LagePathShape\n}\nclass LargePath extends Path {\n type = 'largeBar';\n\n shape: LagePathShape;\n;\n __startPoint: number[];\n __baseDimIdx: number;\n __largeDataIndices: ArrayLike;\n __barWidth: number;\n\n constructor(opts?: LargePathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LagePathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LagePathShape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n const points = shape.points;\n const startPoint = this.__startPoint;\n const baseDimIdx = this.__baseDimIdx;\n\n for (let i = 0; i < points.length; i += 2) {\n startPoint[baseDimIdx] = points[i + baseDimIdx];\n ctx.moveTo(startPoint[0], startPoint[1]);\n ctx.lineTo(points[i], points[i + 1]);\n }\n }\n}\n\nfunction createLarge(\n seriesModel: BarSeriesModel,\n group: Group,\n incremental?: boolean\n) {\n // TODO support polar\n const data = seriesModel.getData();\n const startPoint = [];\n const baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;\n startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');\n\n const largeDataIndices = data.getLayout('largeDataIndices');\n const barWidth = data.getLayout('barWidth');\n\n const backgroundModel = seriesModel.getModel('backgroundStyle');\n const drawBackground = seriesModel.get('showBackground', true);\n\n if (drawBackground) {\n const points = data.getLayout('largeBackgroundPoints');\n const backgroundStartPoint: number[] = [];\n backgroundStartPoint[1 - baseDimIdx] = data.getLayout('backgroundStart');\n\n const bgEl = new LargePath({\n shape: {points: points},\n incremental: !!incremental,\n silent: true,\n z2: 0\n });\n bgEl.__startPoint = backgroundStartPoint;\n bgEl.__baseDimIdx = baseDimIdx;\n bgEl.__largeDataIndices = largeDataIndices;\n bgEl.__barWidth = barWidth;\n setLargeBackgroundStyle(bgEl, backgroundModel, data);\n group.add(bgEl);\n }\n\n const el = new LargePath({\n shape: {points: data.getLayout('largePoints')},\n incremental: !!incremental\n });\n el.__startPoint = startPoint;\n el.__baseDimIdx = baseDimIdx;\n el.__largeDataIndices = largeDataIndices;\n el.__barWidth = barWidth;\n group.add(el);\n setLargeStyle(el, seriesModel, data);\n\n // Enable tooltip and user mouse/touch event handlers.\n getECData(el).seriesIndex = seriesModel.seriesIndex;\n\n if (!seriesModel.get('silent')) {\n el.on('mousedown', largePathUpdateDataIndex);\n el.on('mousemove', largePathUpdateDataIndex);\n }\n}\n\n// Use throttle to avoid frequently traverse to find dataIndex.\nconst largePathUpdateDataIndex = throttle(function (this: LargePath, event: ZRElementEvent) {\n const largePath = this;\n const dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);\n getECData(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null;\n}, 30, false);\n\nfunction largePathFindDataIndex(largePath: LargePath, x: number, y: number) {\n const baseDimIdx = largePath.__baseDimIdx;\n const valueDimIdx = 1 - baseDimIdx;\n const points = largePath.shape.points;\n const largeDataIndices = largePath.__largeDataIndices;\n const barWidthHalf = Math.abs(largePath.__barWidth / 2);\n const startValueVal = largePath.__startPoint[valueDimIdx];\n\n _eventPos[0] = x;\n _eventPos[1] = y;\n const pointerBaseVal = _eventPos[baseDimIdx];\n const pointerValueVal = _eventPos[1 - baseDimIdx];\n const baseLowerBound = pointerBaseVal - barWidthHalf;\n const baseUpperBound = pointerBaseVal + barWidthHalf;\n\n for (let i = 0, len = points.length / 2; i < len; i++) {\n const ii = i * 2;\n const barBaseVal = points[ii + baseDimIdx];\n const barValueVal = points[ii + valueDimIdx];\n if (\n barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound\n && (\n startValueVal <= barValueVal\n ? (pointerValueVal >= startValueVal && pointerValueVal <= barValueVal)\n : (pointerValueVal >= barValueVal && pointerValueVal <= startValueVal)\n )\n ) {\n return largeDataIndices[i];\n }\n }\n\n return -1;\n}\n\nfunction setLargeStyle(\n el: LargePath,\n seriesModel: BarSeriesModel,\n data: SeriesData\n) {\n const globalStyle = data.getVisual('style');\n\n el.useStyle(extend({}, globalStyle));\n // Use stroke instead of fill.\n el.style.fill = null;\n el.style.stroke = globalStyle.fill;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction setLargeBackgroundStyle(\n el: LargePath,\n backgroundModel: Model,\n data: SeriesData\n) {\n const borderColor = backgroundModel.get('borderColor') || backgroundModel.get('color');\n const itemStyle = backgroundModel.getItemStyle();\n\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n el.style.lineWidth = data.getLayout('barWidth') as number;\n}\n\nfunction createBackgroundShape(\n isHorizontalOrRadial: boolean,\n layout: SectorLayout | RectLayout,\n coord: CoordSysOfBar\n): SectorShape | RectShape {\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n const rectShape = layout as RectShape;\n const coordLayout = coord.getArea();\n return {\n x: isHorizontalOrRadial ? rectShape.x : coordLayout.x,\n y: isHorizontalOrRadial ? coordLayout.y : rectShape.y,\n width: isHorizontalOrRadial ? rectShape.width : coordLayout.width,\n height: isHorizontalOrRadial ? coordLayout.height : rectShape.height\n } as RectShape;\n }\n else {\n const coordLayout = coord.getArea();\n const sectorShape = layout as SectorShape;\n return {\n cx: coordLayout.cx,\n cy: coordLayout.cy,\n r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0,\n r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r,\n startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0,\n endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2\n } as SectorShape;\n }\n}\n\nfunction createBackgroundEl(\n coord: CoordSysOfBar,\n isHorizontalOrRadial: boolean,\n layout: SectorLayout | RectLayout\n): Rect | Sector {\n const ElementClz = coord.type === 'polar' ? Sector : Rect;\n return new ElementClz({\n shape: createBackgroundShape(isHorizontalOrRadial, layout, coord) as any,\n silent: true,\n z2: 0\n });\n}\n\nexport default BarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {layout, largeLayout} from '../../layout/barGrid';\nimport dataSample from '../../processor/dataSample';\n\nimport BarSeries from './BarSeries';\nimport BarView from './BarView';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(BarView);\n registers.registerSeriesModel(BarSeries);\n\n registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar'));\n // Use higher prority to avoid to be blocked by other overall layout, which do not\n // only exist in this module, but probably also exist in other modules, like `barPolar`.\n registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout);\n\n // Down sample after filter\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.STATISTIC,\n dataSample('bar')\n );\n\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n registers.registerAction({\n type: 'changeAxisOrder',\n event: 'changeAxisOrder',\n update: 'update'\n }, function (payload, ecModel) {\n const componentType = payload.componentType || 'series';\n\n ecModel.eachComponent(\n { mainType: componentType, query: payload },\n function (componentModel) {\n if (payload.sortInfo) {\n (componentModel as CartesianAxisModel).axis.setCategorySortInfo(payload.sortInfo);\n }\n }\n );\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parsePercent, linearMap } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport PieSeriesModel from './PieSeries';\nimport { SectorShape } from 'zrender/src/graphic/shape/Sector';\n\nconst PI2 = Math.PI * 2;\nconst RADIAN = Math.PI / 180;\n\nfunction getViewRect(seriesModel: PieSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nexport function getBasicPieLayout(seriesModel: PieSeriesModel, api: ExtensionAPI):\n Pick {\n const viewRect = getViewRect(seriesModel, api);\n\n let center = seriesModel.get('center');\n let radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n const width = parsePercent(viewRect.width, api.getWidth());\n const height = parsePercent(viewRect.height, api.getHeight());\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], width) + viewRect.x;\n const cy = parsePercent(center[1], height) + viewRect.y;\n const r0 = parsePercent(radius[0], size / 2);\n const r = parsePercent(radius[1], size / 2);\n return {\n cx,\n cy,\n r0,\n r\n };\n}\n\nexport default function pieLayout(\n seriesType: 'pie',\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel: PieSeriesModel) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const viewRect = getViewRect(seriesModel, api);\n\n const { cx, cy, r, r0 } = getBasicPieLayout(seriesModel, api);\n\n const startAngle = -seriesModel.get('startAngle') * RADIAN;\n\n const minAngle = seriesModel.get('minAngle') * RADIAN;\n\n let validDataCount = 0;\n data.each(valueDim, function (value: number) {\n !isNaN(value) && validDataCount++;\n });\n\n const sum = data.getSum(valueDim);\n // Sum may be 0\n let unitRadian = Math.PI / (sum || validDataCount) * 2;\n\n const clockwise = seriesModel.get('clockwise');\n\n const roseType = seriesModel.get('roseType');\n const stillShowZeroSum = seriesModel.get('stillShowZeroSum');\n\n // [0...max]\n const extent = data.getDataExtent(valueDim);\n extent[0] = 0;\n\n // In the case some sector angle is smaller than minAngle\n let restAngle = PI2;\n let valueSumLargerThanMinAngle = 0;\n\n let currentAngle = startAngle;\n const dir = clockwise ? 1 : -1;\n\n data.setLayout({ viewRect, r });\n\n data.each(valueDim, function (value: number, idx: number) {\n let angle;\n if (isNaN(value)) {\n data.setItemLayout(idx, {\n angle: NaN,\n startAngle: NaN,\n endAngle: NaN,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType\n ? NaN\n : r\n });\n return;\n }\n\n // FIXME \u517C\u5BB9 2.0 \u4F46\u662F roseType \u662F area \u7684\u65F6\u5019\u624D\u662F\u8FD9\u6837\uFF1F\n if (roseType !== 'area') {\n angle = (sum === 0 && stillShowZeroSum)\n ? unitRadian : (value * unitRadian);\n }\n else {\n angle = PI2 / validDataCount;\n }\n\n if (angle < minAngle) {\n angle = minAngle;\n restAngle -= minAngle;\n }\n else {\n valueSumLargerThanMinAngle += value;\n }\n\n const endAngle = currentAngle + dir * angle;\n data.setItemLayout(idx, {\n angle: angle,\n startAngle: currentAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType\n ? linearMap(value, extent, [r0, r])\n : r\n });\n\n currentAngle = endAngle;\n });\n\n // Some sector is constrained by minAngle\n // Rest sectors needs recalculate angle\n if (restAngle < PI2 && validDataCount) {\n // Average the angle if rest angle is not enough after all angles is\n // Constrained by minAngle\n if (restAngle <= 1e-3) {\n const angle = PI2 / validDataCount;\n data.each(valueDim, function (value: number, idx: number) {\n if (!isNaN(value)) {\n const layout = data.getItemLayout(idx);\n layout.angle = angle;\n layout.startAngle = startAngle + dir * idx * angle;\n layout.endAngle = startAngle + dir * (idx + 1) * angle;\n }\n });\n }\n else {\n unitRadian = restAngle / valueSumLargerThanMinAngle;\n currentAngle = startAngle;\n data.each(valueDim, function (value: number, idx: number) {\n if (!isNaN(value)) {\n const layout = data.getItemLayout(idx);\n const angle = layout.angle === minAngle\n ? minAngle : value * unitRadian;\n layout.startAngle = currentAngle;\n layout.endAngle = currentAngle + dir * angle;\n currentAngle += dir * angle;\n }\n });\n }\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../util/types';\n\nexport default function dataFilter(seriesType: string): StageHandler {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n if (!legendModels || !legendModels.length) {\n return;\n }\n const data = seriesModel.getData();\n data.filterSelf(function (idx) {\n const name = data.getName(idx);\n // If in any legend component the status is not selected.\n for (let i = 0; i < legendModels.length; i++) {\n // @ts-ignore FIXME: LegendModel\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n return true;\n });\n }\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME emphasis label position is not same with normal label position\nimport {parsePercent} from '../../util/number';\nimport PieSeriesModel, { PieSeriesOption, PieDataItemOption } from './PieSeries';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { HorizontalAlign, ZRTextAlign } from '../../util/types';\nimport { Sector, Polyline, Point } from '../../util/graphic';\nimport ZRText from 'zrender/src/graphic/Text';\nimport BoundingRect, {RectLike} from 'zrender/src/core/BoundingRect';\nimport { each } from 'zrender/src/core/util';\nimport { limitTurnAngle, limitSurfaceAngle } from '../../label/labelGuideHelper';\nimport { shiftLayoutOnY } from '../../label/labelLayoutHelper';\n\nconst RADIAN = Math.PI / 180;\n\ninterface LabelLayout {\n label: ZRText\n labelLine: Polyline\n position: PieSeriesOption['label']['position']\n len: number\n len2: number\n minTurnAngle: number\n maxSurfaceAngle: number\n surfaceNormal: Point\n linePoints: VectorArray[]\n textAlign: HorizontalAlign\n labelDistance: number\n labelAlignTo: PieSeriesOption['label']['alignTo']\n edgeDistance: number\n bleedMargin: PieSeriesOption['label']['bleedMargin']\n rect: BoundingRect\n}\n\nfunction adjustSingleSide(\n list: LabelLayout[],\n cx: number,\n cy: number,\n r: number,\n dir: -1 | 1,\n viewWidth: number,\n viewHeight: number,\n viewLeft: number,\n viewTop: number,\n farthestX: number\n) {\n if (list.length < 2) {\n return;\n }\n\n interface SemiInfo {\n list: LabelLayout[]\n rB: number\n maxY: number\n };\n\n function recalculateXOnSemiToAlignOnEllipseCurve(semi: SemiInfo) {\n const rB = semi.rB;\n const rB2 = rB * rB;\n for (let i = 0; i < semi.list.length; i++) {\n const item = semi.list[i];\n const dy = Math.abs(item.label.y - cy);\n // horizontal r is always same with original r because x is not changed.\n const rA = r + item.len;\n const rA2 = rA * rA;\n // Use ellipse implicit function to calculate x\n const dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);\n item.label.x = cx + (dx + item.len2) * dir;\n }\n }\n\n // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.\n function recalculateX(items: LabelLayout[]) {\n // Extremes of\n const topSemi = { list: [], maxY: 0} as SemiInfo;\n const bottomSemi = { list: [], maxY: 0 } as SemiInfo;\n\n for (let i = 0; i < items.length; i++) {\n if (items[i].labelAlignTo !== 'none') {\n continue;\n }\n const item = items[i];\n const semi = item.label.y > cy ? bottomSemi : topSemi;\n const dy = Math.abs(item.label.y - cy);\n if (dy > semi.maxY) {\n const dx = item.label.x - cx - item.len2 * dir;\n // horizontal r is always same with original r because x is not changed.\n const rA = r + item.len;\n // Canculate rB based on the topest / bottemest label.\n const rB = Math.abs(dx) < rA\n ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA))\n : rA;\n semi.rB = rB;\n semi.maxY = dy;\n }\n semi.list.push(item);\n }\n\n recalculateXOnSemiToAlignOnEllipseCurve(topSemi);\n recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);\n }\n\n const len = list.length;\n for (let i = 0; i < len; i++) {\n if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {\n const dx = list[i].label.x - farthestX;\n list[i].linePoints[1][0] += dx;\n list[i].label.x = farthestX;\n }\n }\n\n if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {\n recalculateX(list);\n }\n}\n\nfunction avoidOverlap(\n labelLayoutList: LabelLayout[],\n cx: number,\n cy: number,\n r: number,\n viewWidth: number,\n viewHeight: number,\n viewLeft: number,\n viewTop: number\n) {\n const leftList = [];\n const rightList = [];\n let leftmostX = Number.MAX_VALUE;\n let rightmostX = -Number.MAX_VALUE;\n for (let i = 0; i < labelLayoutList.length; i++) {\n const label = labelLayoutList[i].label;\n if (isPositionCenter(labelLayoutList[i])) {\n continue;\n }\n if (label.x < cx) {\n leftmostX = Math.min(leftmostX, label.x);\n leftList.push(labelLayoutList[i]);\n }\n else {\n rightmostX = Math.max(rightmostX, label.x);\n rightList.push(labelLayoutList[i]);\n }\n }\n\n adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);\n adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);\n\n for (let i = 0; i < labelLayoutList.length; i++) {\n const layout = labelLayoutList[i];\n const label = layout.label;\n if (isPositionCenter(layout)) {\n continue;\n }\n\n const linePoints = layout.linePoints;\n if (linePoints) {\n const isAlignToEdge = layout.labelAlignTo === 'edge';\n\n let realTextWidth = layout.rect.width;\n let targetTextWidth;\n if (isAlignToEdge) {\n if (label.x < cx) {\n targetTextWidth = linePoints[2][0] - layout.labelDistance\n - viewLeft - layout.edgeDistance;\n }\n else {\n targetTextWidth = viewLeft + viewWidth - layout.edgeDistance\n - linePoints[2][0] - layout.labelDistance;\n }\n }\n else {\n if (label.x < cx) {\n targetTextWidth = label.x - viewLeft - layout.bleedMargin;\n }\n else {\n targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;\n }\n }\n if (targetTextWidth < layout.rect.width) {\n // TODOTODO\n // layout.text = textContain.truncateText(layout.text, targetTextWidth, layout.font);\n layout.label.style.width = targetTextWidth;\n if (layout.labelAlignTo === 'edge') {\n realTextWidth = targetTextWidth;\n // realTextWidth = textContain.getWidth(layout.text, layout.font);\n }\n }\n\n const dist = linePoints[1][0] - linePoints[2][0];\n if (isAlignToEdge) {\n if (label.x < cx) {\n linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;\n }\n else {\n linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance\n - realTextWidth - layout.labelDistance;\n }\n }\n else {\n if (label.x < cx) {\n linePoints[2][0] = label.x + layout.labelDistance;\n }\n else {\n linePoints[2][0] = label.x - layout.labelDistance;\n }\n linePoints[1][0] = linePoints[2][0] + dist;\n }\n linePoints[1][1] = linePoints[2][1] = label.y;\n }\n }\n}\n\nfunction isPositionCenter(sectorShape: LabelLayout) {\n // Not change x for center label\n return sectorShape.position === 'center';\n}\n\nexport default function pieLabelLayout(\n seriesModel: PieSeriesModel\n) {\n const data = seriesModel.getData();\n const labelLayoutList: LabelLayout[] = [];\n let cx;\n let cy;\n let hasLabelRotate = false;\n const minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN;\n\n const viewRect = data.getLayout('viewRect') as RectLike;\n const r = data.getLayout('r') as number;\n const viewWidth = viewRect.width;\n const viewLeft = viewRect.x;\n const viewTop = viewRect.y;\n const viewHeight = viewRect.height;\n\n function setNotShow(el: {ignore: boolean}) {\n el.ignore = true;\n }\n\n function isLabelShown(label: ZRText) {\n if (!label.ignore) {\n return true;\n }\n for (const key in label.states) {\n if (label.states[key].ignore === false) {\n return true;\n }\n }\n return false;\n }\n\n data.each(function (idx) {\n const sector = data.getItemGraphicEl(idx) as Sector;\n const sectorShape = sector.shape;\n const label = sector.getTextContent();\n const labelLine = sector.getTextGuideLine();\n\n const itemModel = data.getItemModel(idx);\n const labelModel = itemModel.getModel('label');\n // Use position in normal or emphasis\n const labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);\n const labelDistance = labelModel.get('distanceToLabelLine');\n const labelAlignTo = labelModel.get('alignTo');\n const edgeDistance = parsePercent(labelModel.get('edgeDistance'), viewWidth);\n const bleedMargin = labelModel.get('bleedMargin');\n\n const labelLineModel = itemModel.getModel('labelLine');\n let labelLineLen = labelLineModel.get('length');\n labelLineLen = parsePercent(labelLineLen, viewWidth);\n let labelLineLen2 = labelLineModel.get('length2');\n labelLineLen2 = parsePercent(labelLineLen2, viewWidth);\n\n if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {\n each(label.states, setNotShow);\n label.ignore = true;\n return;\n }\n\n if (!isLabelShown(label)) {\n return;\n }\n\n const midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;\n const nx = Math.cos(midAngle);\n const ny = Math.sin(midAngle);\n\n let textX;\n let textY;\n let linePoints;\n let textAlign: ZRTextAlign;\n\n cx = sectorShape.cx;\n cy = sectorShape.cy;\n\n\n const isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';\n if (labelPosition === 'center') {\n textX = sectorShape.cx;\n textY = sectorShape.cy;\n textAlign = 'center';\n }\n else {\n const x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;\n const y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;\n\n textX = x1 + nx * 3;\n textY = y1 + ny * 3;\n\n if (!isLabelInside) {\n // For roseType\n const x2 = x1 + nx * (labelLineLen + r - sectorShape.r);\n const y2 = y1 + ny * (labelLineLen + r - sectorShape.r);\n const x3 = x2 + ((nx < 0 ? -1 : 1) * labelLineLen2);\n const y3 = y2;\n\n if (labelAlignTo === 'edge') {\n // Adjust textX because text align of edge is opposite\n textX = nx < 0\n ? viewLeft + edgeDistance\n : viewLeft + viewWidth - edgeDistance;\n }\n else {\n textX = x3 + (nx < 0 ? -labelDistance : labelDistance);\n }\n textY = y3;\n linePoints = [[x1, y1], [x2, y2], [x3, y3]];\n }\n\n textAlign = isLabelInside\n ? 'center'\n : (labelAlignTo === 'edge'\n ? (nx > 0 ? 'right' : 'left')\n : (nx > 0 ? 'left' : 'right'));\n }\n\n let labelRotate;\n const rotate = labelModel.get('rotate');\n if (typeof rotate === 'number') {\n labelRotate = rotate * (Math.PI / 180);\n }\n else if (labelPosition === 'center') {\n labelRotate = 0;\n }\n else {\n const radialAngle = nx < 0 ? -midAngle + Math.PI : -midAngle;\n if (rotate === 'radial' || rotate === true) {\n labelRotate = radialAngle;\n }\n else if (rotate === 'tangential'\n && labelPosition !== 'outside'\n && labelPosition !== 'outer'\n ) {\n labelRotate = radialAngle + Math.PI / 2;\n if (labelRotate > Math.PI / 2) {\n labelRotate -= Math.PI;\n }\n }\n else {\n labelRotate = 0;\n }\n }\n\n hasLabelRotate = !!labelRotate;\n\n label.x = textX;\n label.y = textY;\n label.rotation = labelRotate;\n\n label.setStyle({\n verticalAlign: 'middle'\n });\n\n // Not sectorShape the inside label\n if (!isLabelInside) {\n const textRect = label.getBoundingRect().clone();\n textRect.applyTransform(label.getComputedTransform());\n // Text has a default 1px stroke. Exclude this.\n const margin = (label.style.margin || 0) + 2.1;\n textRect.y -= margin / 2;\n textRect.height += margin;\n\n labelLayoutList.push({\n label,\n labelLine,\n position: labelPosition,\n len: labelLineLen,\n len2: labelLineLen2,\n minTurnAngle: labelLineModel.get('minTurnAngle'),\n maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),\n surfaceNormal: new Point(nx, ny),\n linePoints: linePoints,\n textAlign: textAlign,\n labelDistance: labelDistance,\n labelAlignTo: labelAlignTo,\n edgeDistance: edgeDistance,\n bleedMargin: bleedMargin,\n rect: textRect\n });\n }\n else {\n label.setStyle({\n align: textAlign\n });\n const selectState = label.states.select;\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n sector.setTextConfig({\n inside: isLabelInside\n });\n });\n\n if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {\n avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);\n }\n\n for (let i = 0; i < labelLayoutList.length; i++) {\n const layout = labelLayoutList[i];\n const label = layout.label;\n const labelLine = layout.labelLine;\n const notShowLabel = isNaN(label.x) || isNaN(label.y);\n if (label) {\n label.setStyle({\n align: layout.textAlign\n });\n if (notShowLabel) {\n each(label.states, setNotShow);\n label.ignore = true;\n }\n const selectState = label.states.select;\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n if (labelLine) {\n const linePoints = layout.linePoints;\n if (notShowLabel || !linePoints) {\n each(labelLine.states, setNotShow);\n labelLine.ignore = true;\n }\n else {\n limitTurnAngle(linePoints, layout.minTurnAngle);\n limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);\n\n labelLine.setShape({ points: linePoints });\n\n // Set the anchor to the midpoint of sector\n label.__hostTarget.textGuideLineConfig = {\n anchor: new Point(linePoints[0][0], linePoints[0][1])\n };\n }\n }\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../../model/Model';\nimport Sector from 'zrender/src/graphic/shape/Sector';\nimport { isArray } from 'zrender/src/core/util';\nimport { parsePercent } from 'zrender/src/contain/text';\n\nexport function getSectorCornerRadius(\n model: Model<{ borderRadius?: string | number | (string | number)[] }>,\n shape: Pick,\n zeroIfNull?: boolean\n) {\n let cornerRadius = model.get('borderRadius');\n if (cornerRadius == null) {\n return zeroIfNull ? {innerCornerRadius: 0, cornerRadius: 0} : null;\n }\n if (!isArray(cornerRadius)) {\n cornerRadius = [cornerRadius, cornerRadius];\n }\n return {\n innerCornerRadius: parsePercent(cornerRadius[0], shape.r0),\n cornerRadius: parsePercent(cornerRadius[1], shape.r)\n };\n}\n", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { extend, retrieve3 } from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, ColorString } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport PieSeriesModel, {PieDataItemOption} from './PieSeries';\nimport labelLayout from './labelLayout';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport {saveOldStyle} from '../../animation/basicTrasition';\nimport { getBasicPieLayout } from './pieLayout';\n\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\nclass PiePiece extends graphic.Sector {\n\n constructor(data: SeriesData, idx: number, startAngle: number) {\n super();\n\n this.z2 = 2;\n\n const text = new graphic.Text();\n\n this.setTextContent(text);\n\n this.updateData(data, idx, startAngle, true);\n }\n\n updateData(data: SeriesData, idx: number, startAngle?: number, firstCreate?: boolean): void {\n const sector = this;\n\n const seriesModel = data.hostModel as PieSeriesModel;\n const itemModel = data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n const layout = data.getItemLayout(idx) as graphic.Sector['shape'];\n // cornerRadius & innerCornerRadius doesn't exist in the item layout. Use `0` if null value is specified.\n // see `setItemLayout` in `pieLayout.ts`.\n const sectorShape = extend(\n getSectorCornerRadius(itemModel.getModel('itemStyle'), layout, true),\n layout\n );\n\n // Ignore NaN data.\n if (isNaN(sectorShape.startAngle)) {\n // Use NaN shape to avoid drawing shape.\n sector.setShape(sectorShape);\n return;\n }\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n\n const animationType = seriesModel.getShallow('animationType');\n if (animationType === 'scale') {\n sector.shape.r = layout.r0;\n graphic.initProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, idx);\n }\n // Expansion\n else {\n if (startAngle != null) {\n sector.setShape({ startAngle, endAngle: startAngle });\n graphic.initProps(sector, {\n shape: {\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n else {\n sector.shape.endAngle = layout.startAngle;\n graphic.updateProps(sector, {\n shape: {\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n }\n }\n else {\n saveOldStyle(sector);\n // Transition animation from the old shape\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel, idx);\n }\n\n sector.useStyle(data.getItemVisual(idx, 'style'));\n\n setStatesStylesFromModel(sector, itemModel);\n\n const midAngle = (layout.startAngle + layout.endAngle) / 2;\n const offset = seriesModel.get('selectedOffset');\n const dx = Math.cos(midAngle) * offset;\n const dy = Math.sin(midAngle) * offset;\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._updateLabel(seriesModel, data, idx);\n\n sector.ensureState('emphasis').shape = {\n r: layout.r + (emphasisModel.get('scale')\n ? (emphasisModel.get('scaleSize') || 0) : 0),\n ...getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout)\n };\n extend(sector.ensureState('select'), {\n x: dx,\n y: dy,\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n });\n extend(sector.ensureState('blur'), {\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n });\n\n const labelLine = sector.getTextGuideLine();\n const labelText = sector.getTextContent();\n\n labelLine && extend(labelLine.ensureState('select'), {\n x: dx,\n y: dy\n });\n // TODO: needs dx, dy in zrender?\n extend(labelText.ensureState('select'), {\n x: dx,\n y: dy\n });\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n private _updateLabel(seriesModel: PieSeriesModel, data: SeriesData, idx: number): void {\n const sector = this;\n const itemModel = data.getItemModel(idx);\n const labelLineModel = itemModel.getModel('labelLine');\n\n const style = data.getItemVisual(idx, 'style');\n const visualColor = style && style.fill as ColorString;\n const visualOpacity = style && style.opacity;\n\n setLabelStyle(\n sector,\n getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel as PieSeriesModel,\n labelDataIndex: idx,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n defaultText: seriesModel.getFormattedLabel(idx, 'normal')\n || data.getName(idx)\n }\n );\n const labelText = sector.getTextContent();\n\n // Set textConfig on sector.\n sector.setTextConfig({\n // reset position, rotation\n position: null,\n rotation: null\n });\n\n // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n labelText.attr({\n z2: 10\n });\n\n const labelPosition = seriesModel.get(['label', 'position']);\n if (labelPosition !== 'outside' && labelPosition !== 'outer') {\n sector.removeTextGuideLine();\n }\n else {\n let polyline = this.getTextGuideLine();\n if (!polyline) {\n polyline = new graphic.Polyline();\n this.setTextGuideLine(polyline);\n }\n\n // Default use item visual color\n setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {\n stroke: visualColor,\n opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)\n });\n }\n }\n}\n\n\n// Pie view\nclass PieView extends ChartView {\n\n static type = 'pie';\n\n ignoreLabelLineUpdate = true;\n\n private _sectorGroup: graphic.Group;\n private _data: SeriesData;\n private _emptyCircleSector: graphic.Sector;\n\n init(): void {\n const sectorGroup = new graphic.Group();\n this._sectorGroup = sectorGroup;\n }\n\n render(seriesModel: PieSeriesModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n const data = seriesModel.getData();\n\n const oldData = this._data;\n const group = this.group;\n\n let startAngle: number;\n // First render\n if (!oldData && data.count() > 0) {\n let shape = data.getItemLayout(0) as graphic.Sector['shape'];\n for (let s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {\n shape = data.getItemLayout(s);\n }\n if (shape) {\n startAngle = shape.startAngle;\n }\n }\n\n // remove empty-circle if it exists\n if (this._emptyCircleSector) {\n group.remove(this._emptyCircleSector);\n }\n // when all data are filtered, show lightgray empty circle\n if (data.count() === 0 && seriesModel.get('showEmptyCircle')) {\n const sector = new graphic.Sector({\n shape: getBasicPieLayout(seriesModel, api)\n });\n sector.useStyle(seriesModel.getModel('emptyCircleStyle').getItemStyle());\n this._emptyCircleSector = sector;\n group.add(sector);\n }\n\n data.diff(oldData)\n .add(function (idx) {\n const piePiece = new PiePiece(data, idx, startAngle);\n\n data.setItemGraphicEl(idx, piePiece);\n\n group.add(piePiece);\n })\n .update(function (newIdx, oldIdx) {\n const piePiece = oldData.getItemGraphicEl(oldIdx) as PiePiece;\n\n piePiece.updateData(data, newIdx, startAngle);\n\n piePiece.off('click');\n\n group.add(piePiece);\n data.setItemGraphicEl(newIdx, piePiece);\n })\n .remove(function (idx) {\n const piePiece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piePiece, seriesModel, idx);\n })\n .execute();\n\n labelLayout(seriesModel);\n\n // Always use initial animation.\n if (seriesModel.get('animationTypeUpdate') !== 'expansion') {\n this._data = data;\n }\n }\n\n dispose() {}\n\n containPoint(point: number[], seriesModel: PieSeriesModel): boolean {\n const data = seriesModel.getData();\n const itemLayout = data.getItemLayout(0);\n if (itemLayout) {\n const dx = point[0] - itemLayout.cx;\n const dy = point[1] - itemLayout.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n }\n}\n\nexport default PieView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createDimensions, {CreateDimensionsParams} from '../../data/helper/createDimensions';\nimport SeriesData from '../../data/SeriesData';\nimport {extend, isArray} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\n\n/**\n * [Usage]:\n * (1)\n * createListSimply(seriesModel, ['value']);\n * (2)\n * createListSimply(seriesModel, {\n * coordDimensions: ['value'],\n * dimensionsCount: 5\n * });\n */\nexport default function createSeriesDataSimply(\n seriesModel: SeriesModel,\n opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'],\n nameList?: string[]\n): SeriesData {\n opt = isArray(opt) && {\n coordDimensions: opt\n } || extend({\n encodeDefine: seriesModel.getEncode()\n }, opt);\n\n const source = seriesModel.getSource();\n\n const { dimensionList } = createDimensions(source, opt as CreateDimensionsParams);\n\n const list = new SeriesData(dimensionList, seriesModel);\n list.initData(source, nameList);\n\n return list;\n}\n", "import SeriesData from '../data/SeriesData';\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * LegendVisualProvider is an bridge that pick encoded color from data and\n * provide to the legend component.\n */\nclass LegendVisualProvider {\n\n private _getDataWithEncodedVisual: () => SeriesData;\n private _getRawData: () => SeriesData;\n\n constructor(\n // Function to get data after filtered. It stores all the encoding info\n getDataWithEncodedVisual: () => SeriesData,\n // Function to get raw data before filtered.\n getRawData: () => SeriesData\n ) {\n this._getDataWithEncodedVisual = getDataWithEncodedVisual;\n this._getRawData = getRawData;\n }\n\n getAllNames(): string[] {\n const rawData = this._getRawData();\n // We find the name from the raw data. In case it's filtered by the legend component.\n // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.\n return rawData.mapArray(rawData.getName);\n }\n\n containName(name: string): boolean {\n const rawData = this._getRawData();\n return rawData.indexOfName(name) >= 0;\n }\n\n indexOfName(name: string): number {\n // Only get data when necessary.\n // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.\n // Invoking Series#getData immediately will throw an error.\n const dataWithEncodedVisual = this._getDataWithEncodedVisual();\n return dataWithEncodedVisual.indexOfName(name);\n }\n\n getItemVisual(dataIndex: number, key: string): any {\n // Get encoded visual properties from final filtered data.\n const dataWithEncodedVisual = this._getDataWithEncodedVisual();\n return dataWithEncodedVisual.getItemVisual(dataIndex, key as any);\n }\n}\n\nexport default LegendVisualProvider;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { getPercentWithPrecision } from '../../util/number';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n CallbackDataParams,\n CircleLayoutOptionMixin,\n LabelLineOption,\n ItemStyleOption,\n BoxLayoutOptionMixin,\n OptionDataValueNumeric,\n SeriesEncodeOptionMixin,\n OptionDataItemObject,\n StatesOptionMixin,\n SeriesLabelOption,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\n\ninterface PieItemStyleOption extends ItemStyleOption {\n // can be 10\n // which means that both innerCornerRadius and outerCornerRadius are 10\n // can also be an array [20, 10]\n // which means that innerCornerRadius is 20\n // and outerCornerRadius is 10\n // can also be a string or string array, such as ['20%', '50%']\n // which means that innerCornerRadius is 20% of the innerRadius\n // and outerCornerRadius is half of outerRadius.\n borderRadius?: (number | string)[] | number | string\n}\n\nexport interface PieStateOption {\n // TODO: TYPE Color Callback\n itemStyle?: PieItemStyleOption\n label?: PieLabelOption\n labelLine?: PieLabelLineOption\n}\ninterface PieLabelOption extends Omit {\n rotate?: number | boolean | 'radial' | 'tangential'\n alignTo?: 'none' | 'labelLine' | 'edge'\n edgeDistance?: string | number\n /**\n * @deprecated Use `edgeDistance` instead\n */\n margin?: string | number\n bleedMargin?: number\n distanceToLabelLine?: number\n\n position?: SeriesLabelOption['position'] | 'outer' | 'inner' | 'center' | 'outside'\n}\n\ninterface PieLabelLineOption extends LabelLineOption {\n /**\n * Max angle between labelLine and surface normal.\n * 0 - 180\n */\n maxSurfaceAngle?: number\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n scaleSize?: number\n }\n}\n\nexport interface PieDataItemOption extends\n OptionDataItemObject,\n PieStateOption, StatesOptionMixin {\n\n cursor?: string\n}\nexport interface PieSeriesOption extends\n Omit, 'labelLine'>, PieStateOption,\n CircleLayoutOptionMixin,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'pie'\n\n roseType?: 'radius' | 'area'\n\n clockwise?: boolean\n startAngle?: number\n minAngle?: number\n minShowLabelAngle?: number\n\n selectedOffset?: number\n\n avoidLabelOverlap?: boolean\n percentPrecision?: number\n\n stillShowZeroSum?: boolean\n\n animationType?: 'expansion' | 'scale'\n animationTypeUpdate?: 'transition' | 'expansion'\n\n showEmptyCircle?: boolean;\n emptyCircleStyle?: PieItemStyleOption;\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | PieDataItemOption)[]\n}\n\nclass PieSeriesModel extends SeriesModel {\n\n static type = 'series.pie' as const;\n\n /**\n * @overwrite\n */\n init(option: PieSeriesOption): void {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n\n this._defaultLabelLine(option);\n }\n\n /**\n * @overwrite\n */\n mergeOption(): void {\n super.mergeOption.apply(this, arguments as any);\n }\n\n /**\n * @overwrite\n */\n getInitialData(this: PieSeriesModel): SeriesData {\n return createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n }\n\n /**\n * @overwrite\n */\n getDataParams(dataIndex: number): CallbackDataParams {\n const data = this.getData();\n const params = super.getDataParams(dataIndex);\n // FIXME toFixed?\n\n const valueList: number[] = [];\n data.each(data.mapDimension('value'), function (value: number) {\n valueList.push(value);\n });\n\n params.percent = getPercentWithPrecision(\n valueList,\n dataIndex,\n data.hostModel.get('percentPrecision')\n );\n\n params.$vars.push('percent');\n return params;\n }\n\n private _defaultLabelLine(option: PieSeriesOption): void {\n // Extend labelLine emphasis\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\n\n const labelLineNormalOpt = option.labelLine;\n const labelLineEmphasisOpt = option.emphasis.labelLine;\n // Not show label line if `label.normal.show = false`\n labelLineNormalOpt.show = labelLineNormalOpt.show\n && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show\n && option.emphasis.label.show;\n }\n\n static defaultOption: Omit = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n colorBy: 'data',\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // \u9ED8\u8BA4\u987A\u65F6\u9488\n clockwise: true,\n startAngle: 90,\n // \u6700\u5C0F\u89D2\u5EA6\u6539\u4E3A0\n minAngle: 0,\n\n // If the angle of a sector less than `minShowLabelAngle`,\n // the label will not be displayed.\n minShowLabelAngle: 0,\n\n // \u9009\u4E2D\u65F6\u6247\u533A\u504F\u79FB\u91CF\n selectedOffset: 10,\n\n // \u9009\u62E9\u6A21\u5F0F\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF0C\u53EF\u9009single\uFF0Cmultiple\n // selectedMode: false,\n // \u5357\u4E01\u683C\u5C14\u73AB\u7470\u56FE\u6A21\u5F0F\uFF0C'radius'\uFF08\u534A\u5F84\uFF09 | 'area'\uFF08\u9762\u79EF\uFF09\n // roseType: null,\n\n percentPrecision: 2,\n\n // If still show when all data zero.\n stillShowZeroSum: true,\n\n // cursor: null,\n\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: null,\n height: null,\n\n label: {\n // color: 'inherit',\n // If rotate around circle\n rotate: 0,\n show: true,\n overflow: 'truncate',\n // 'outer', 'inside', 'center'\n position: 'outer',\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\n alignTo: 'none',\n // Closest distance between label and chart edge.\n // Works only position is 'outer' and alignTo is 'edge'.\n edgeDistance: '25%',\n // Works only position is 'outer' and alignTo is not 'edge'.\n bleedMargin: 10,\n // Distance between text and label line.\n distanceToLabelLine: 5\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n // \u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n // distance: \u5F53position\u4E3Ainner\u65F6\u6709\u6548\uFF0C\u4E3Alabel\u4F4D\u7F6E\u5230\u5706\u5FC3\u7684\u8DDD\u79BB\u4E0E\u5706\u534A\u5F84(\u73AF\u72B6\u56FE\u4E3A\u5185\u5916\u534A\u5F84\u548C)\u7684\u6BD4\u4F8B\u7CFB\u6570\n },\n // Enabled when label.normal.position is 'outer'\n labelLine: {\n show: true,\n // \u5F15\u5BFC\u7EBF\u4E24\u6BB5\u4E2D\u7684\u7B2C\u4E00\u6BB5\u957F\u5EA6\n length: 15,\n // \u5F15\u5BFC\u7EBF\u4E24\u6BB5\u4E2D\u7684\u7B2C\u4E8C\u6BB5\u957F\u5EA6\n length2: 15,\n smooth: false,\n minTurnAngle: 90,\n maxSurfaceAngle: 90,\n lineStyle: {\n // color: \u5404\u5F02,\n width: 1,\n type: 'solid'\n }\n },\n itemStyle: {\n borderWidth: 1,\n borderJoin: 'round'\n },\n\n showEmptyCircle: true,\n emptyCircleStyle: {\n color: 'lightgray',\n opacity: 1\n },\n\n labelLayout: {\n // Hide the overlapped label.\n hideOverlap: true\n },\n\n emphasis: {\n scale: true,\n scaleSize: 5\n },\n\n // If use strategy to avoid label overlapping\n avoidLabelOverlap: true,\n\n // Animation type. Valid values: expansion, scale\n animationType: 'expansion',\n\n animationDuration: 1000,\n\n // Animation type when update. Valid values: transition, expansion\n animationTypeUpdate: 'transition',\n\n animationEasingUpdate: 'cubicInOut',\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut'\n };\n\n}\n\nexport default PieSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../util/types';\n\nexport default function negativeDataFilter(seriesType: string): StageHandler {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n const data = seriesModel.getData();\n data.filterSelf(function (idx) {\n // handle negative value condition\n const valueDim = data.mapDimension('value');\n const curValue = data.get(valueDim, idx);\n if (typeof curValue === 'number' && !isNaN(curValue) && curValue < 0) {\n return false;\n }\n return true;\n });\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nimport {createLegacyDataSelectAction} from '../../legacy/dataSelectAction';\nimport pieLayout from '../pie/pieLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/src/core/util';\nimport PieView from './PieView';\nimport PieSeriesModel from './PieSeries';\nimport negativeDataFilter from '../../processor/negativeDataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(PieView);\n registers.registerSeriesModel(PieSeriesModel);\n\n createLegacyDataSelectAction('pie', registers.registerAction);\n\n registers.registerLayout(curry(pieLayout, 'pie'));\n registers.registerProcessor(dataFilter('pie'));\n registers.registerProcessor(negativeDataFilter('pie'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n SeriesLargeOptionMixin,\n SeriesStackOptionMixin,\n SymbolOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesEncodeOptionMixin,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\ninterface ScatterStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface ScatterDataItemOption extends SymbolOptionMixin,\n ScatterStateOption, StatesOptionMixin,\n OptionDataItemObject {\n}\n\nexport interface ScatterSeriesOption extends SeriesOption, ScatterStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin,\n SeriesLargeOptionMixin, SeriesStackOptionMixin,\n SymbolOptionMixin, SeriesEncodeOptionMixin {\n type?: 'scatter'\n\n coordinateSystem?: string\n\n cursor?: string\n clip?: boolean\n\n data?: (ScatterDataItemOption | OptionDataValue | OptionDataValue[])[]\n | ArrayLike // Can be a flattern array\n}\n\n\nclass ScatterSeriesModel extends SeriesModel {\n static readonly type = 'series.scatter';\n type = ScatterSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n hasSymbolVisual = true;\n\n getInitialData(option: ScatterSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: true\n });\n }\n\n\n getProgressive() {\n const progressive = this.option.progressive;\n if (progressive == null) {\n // PENDING\n return this.option.large ? 5e3 : this.get('progressive');\n }\n return progressive;\n }\n\n getProgressiveThreshold() {\n const progressiveThreshold = this.option.progressiveThreshold;\n if (progressiveThreshold == null) {\n // PENDING\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\n }\n return progressiveThreshold;\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.point(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: ScatterSeriesOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n symbolSize: 10, // \u56FE\u5F62\u5927\u5C0F\uFF0C\u534A\u5BBD\uFF08\u534A\u5F84\uFF09\u53C2\u6570\uFF0C\u5F53\u56FE\u5F62\u4E3A\u65B9\u5411\u6216\u83F1\u5F62\u5219\u603B\u5BBD\u5EA6\u4E3AsymbolSize * 2\n // symbolRotate: null, // \u56FE\u5F62\u65CB\u8F6C\u63A7\u5236\n\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n // cursor: null,\n\n itemStyle: {\n opacity: 0.8\n // color: \u5404\u5F02\n },\n\n emphasis: {\n scale: true\n },\n\n // If clip the overflow graphics\n // Works on cartesian / polar series\n clip: true,\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n universalTransition: {\n divideShape: 'clone'\n }\n // progressive: null\n };\n\n}\n\nexport default ScatterSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport {createSymbol} from '../../util/symbol';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport SeriesData from '../../data/SeriesData';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport PathProxy from 'zrender/src/core/PathProxy';\nimport SeriesModel from '../../model/Series';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport { getECData } from '../../util/innerStore';\n\nconst BOOST_SIZE_THRESHOLD = 4;\n\nclass LargeSymbolPathShape {\n points: ArrayLike;\n size: number[];\n}\n\ntype LargeSymbolPathProps = PathProps & {\n shape?: Partial\n startIndex?: number\n endIndex?: number\n};\n\ntype ECSymbol = ReturnType;\n\nclass LargeSymbolPath extends graphic.Path {\n\n shape: LargeSymbolPathShape;\n\n symbolProxy: ECSymbol;\n\n softClipShape: CoordinateSystemClipArea;\n\n startIndex: number;\n endIndex: number;\n\n private _ctx: CanvasRenderingContext2D;\n\n constructor(opts?: LargeSymbolPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LargeSymbolPathShape();\n }\n\n setColor: ECSymbol['setColor'];\n\n buildPath(path: PathProxy | CanvasRenderingContext2D, shape: LargeSymbolPathShape) {\n const points = shape.points;\n const size = shape.size;\n\n const symbolProxy = this.symbolProxy;\n const symbolProxyShape = symbolProxy.shape;\n const ctx = (path as PathProxy).getContext\n ? (path as PathProxy).getContext()\n : path as CanvasRenderingContext2D;\n const canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD;\n\n // Do draw in afterBrush.\n if (canBoost) {\n this._ctx = ctx;\n return;\n }\n\n this._ctx = null;\n\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n\n symbolProxyShape.x = x - size[0] / 2;\n symbolProxyShape.y = y - size[1] / 2;\n symbolProxyShape.width = size[0];\n symbolProxyShape.height = size[1];\n\n symbolProxy.buildPath(path, symbolProxyShape, true);\n }\n }\n\n afterBrush() {\n const shape = this.shape;\n const points = shape.points;\n const size = shape.size;\n const ctx = this._ctx;\n\n if (!ctx) {\n return;\n }\n\n // PENDING If style or other canvas status changed?\n for (let i = 0; i < points.length;) {\n const x = points[i++];\n const y = points[i++];\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n // fillRect is faster than building a rect path and draw.\n // And it support light globalCompositeOperation.\n ctx.fillRect(\n x - size[0] / 2, y - size[1] / 2,\n size[0], size[1]\n );\n }\n }\n\n findDataIndex(x: number, y: number) {\n // TODO ???\n // Consider transform\n\n const shape = this.shape;\n const points = shape.points;\n const size = shape.size;\n\n const w = Math.max(size[0], 4);\n const h = Math.max(size[1], 4);\n\n // Not consider transform\n // Treat each element as a rect\n // top down traverse\n for (let idx = points.length / 2 - 1; idx >= 0; idx--) {\n const i = idx * 2;\n const x0 = points[i] - w / 2;\n const y0 = points[i + 1] - h / 2;\n if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) {\n return idx;\n }\n }\n\n return -1;\n }\n}\n\ninterface UpdateOpt {\n clipShape?: CoordinateSystemClipArea\n}\n\nclass LargeSymbolDraw {\n\n group = new graphic.Group();\n\n _incremental: IncrementalDisplayable;\n\n isPersistent() {\n return !this._incremental;\n };\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: SeriesData, opt?: UpdateOpt) {\n this.group.removeAll();\n const symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default'\n });\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n this._setCommon(symbolEl, data, false, opt);\n this.group.add(symbolEl);\n\n this._incremental = null;\n }\n\n updateLayout(data: SeriesData) {\n if (this._incremental) {\n return;\n }\n\n let points = data.getLayout('points');\n this.group.eachChild(function (child: LargeSymbolPath) {\n if (child.startIndex != null) {\n const len = (child.endIndex - child.startIndex) * 2;\n const byteOffset = child.startIndex * 4 * 2;\n points = new Float32Array(points.buffer, byteOffset, len);\n }\n child.setShape('points', points);\n });\n }\n\n incrementalPrepareUpdate(data: SeriesData) {\n this.group.removeAll();\n\n this._clearIncremental();\n // Only use incremental displayables when data amount is larger than 2 million.\n // PENDING Incremental data?\n if (data.count() > 2e6) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n this.group.add(this._incremental);\n }\n else {\n this._incremental = null;\n }\n }\n\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: SeriesData, opt: UpdateOpt) {\n let symbolEl;\n if (this._incremental) {\n symbolEl = new LargeSymbolPath();\n this._incremental.addDisplayable(symbolEl, true);\n }\n else {\n symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default',\n startIndex: taskParams.start,\n endIndex: taskParams.end\n });\n symbolEl.incremental = true;\n this.group.add(symbolEl);\n }\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n this._setCommon(symbolEl, data, !!this._incremental, opt);\n }\n\n _setCommon(\n symbolEl: LargeSymbolPath,\n data: SeriesData,\n isIncremental: boolean,\n opt: UpdateOpt\n ) {\n const hostModel = data.hostModel;\n\n opt = opt || {};\n\n const size = data.getVisual('symbolSize');\n symbolEl.setShape('size', (size instanceof Array) ? size : [size, size]);\n\n symbolEl.softClipShape = opt.clipShape || null;\n // Create symbolProxy to build path for each data\n symbolEl.symbolProxy = createSymbol(\n data.getVisual('symbol'), 0, 0, 0, 0\n );\n // Use symbolProxy setColor method\n symbolEl.setColor = symbolEl.symbolProxy.setColor;\n\n const extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD;\n symbolEl.useStyle(\n // Draw shadow when doing fillRect is extremely slow.\n hostModel.getModel('itemStyle').getItemStyle(\n extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']\n )\n );\n\n const globalStyle = data.getVisual('style');\n const visualColor = globalStyle && globalStyle.fill;\n if (visualColor) {\n symbolEl.setColor(visualColor);\n }\n\n if (!isIncremental) {\n const ecData = getECData(symbolEl);\n // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n ecData.seriesIndex = (hostModel as SeriesModel).seriesIndex;\n symbolEl.on('mousemove', function (e) {\n ecData.dataIndex = null;\n const dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY);\n if (dataIndex >= 0) {\n // Provide dataIndex for tooltip\n ecData.dataIndex = dataIndex + (symbolEl.startIndex || 0);\n }\n });\n }\n }\n\n remove() {\n this._clearIncremental();\n this._incremental = null;\n this.group.removeAll();\n }\n\n _clearIncremental() {\n const incremental = this._incremental;\n if (incremental) {\n incremental.clearDisplaybles();\n }\n }\n}\n\n\nexport default LargeSymbolDraw;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LargeSymbolDraw from '../helper/LargeSymbolDraw';\n\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\nimport ScatterSeriesModel from './ScatterSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { TaskProgressParams } from '../../core/task';\nimport type { StageHandlerProgressExecutor } from '../../util/types';\n\nclass ScatterView extends ChartView {\n static readonly type = 'scatter';\n type = ScatterView.type;\n\n _finished: boolean;\n\n _isLargeDraw: boolean;\n\n _symbolDraw: SymbolDraw | LargeSymbolDraw;\n\n render(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.updateData(data, {\n // TODO\n // If this parameter should be a shape or a bounding volume\n // shape will be more general.\n // But bounding volume like bounding rect will be much faster in the contain calculation\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = true;\n }\n\n incrementalPrepareRender(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.incrementalPrepareUpdate(data);\n\n this._finished = false;\n }\n\n incrementalRender(taskParams: TaskProgressParams, seriesModel: ScatterSeriesModel, ecModel: GlobalModel) {\n this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), {\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = taskParams.end === seriesModel.getData().count();\n }\n\n updateTransform(seriesModel: ScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI): void | { update: true } {\n const data = seriesModel.getData();\n // Must mark group dirty and make sure the incremental layer will be cleared\n // PENDING\n this.group.dirty();\n\n if (!this._finished || data.count() > 1e4 || !this._symbolDraw.isPersistent()) {\n return {\n update: true\n };\n }\n else {\n const res = pointsLayout('').reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({ start: 0, end: data.count(), count: data.count() }, data);\n }\n\n this._symbolDraw.updateLayout(data);\n }\n }\n\n _getClipShape(seriesModel: ScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n }\n\n _updateSymbolDraw(data: SeriesData, seriesModel: ScatterSeriesModel) {\n let symbolDraw = this._symbolDraw;\n const pipelineContext = seriesModel.pipelineContext;\n const isLargeDraw = pipelineContext.large;\n\n if (!symbolDraw || isLargeDraw !== this._isLargeDraw) {\n symbolDraw && symbolDraw.remove();\n symbolDraw = this._symbolDraw = isLargeDraw\n ? new LargeSymbolDraw()\n : new SymbolDraw();\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(symbolDraw.group);\n\n return symbolDraw;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove(true);\n this._symbolDraw = null;\n }\n\n dispose() {}\n}\n\nexport default ScatterView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport ComponentModel from '../../model/Component';\nimport { ComponentOption, BoxLayoutOptionMixin, ZRColor, ShadowOptionMixin } from '../../util/types';\nimport Grid from './Grid';\nimport { CoordinateSystemHostModel } from '../CoordinateSystem';\n\nexport interface GridOption extends ComponentOption, BoxLayoutOptionMixin, ShadowOptionMixin {\n mainType?: 'grid';\n\n show?: boolean;\n\n // Whether grid size contain label.\n containLabel?: boolean;\n\n backgroundColor?: ZRColor;\n borderWidth?: number;\n borderColor?: ZRColor;\n\n tooltip?: any; // FIXME:TS add this tooltip type\n}\n\nclass GridModel extends ComponentModel implements CoordinateSystemHostModel {\n\n static type = 'grid';\n\n static dependencies = ['xAxis', 'yAxis'];\n\n static layoutMode = 'box' as const;\n\n coordinateSystem: Grid;\n\n static defaultOption: GridOption = {\n show: false,\n zlevel: 0,\n z: 0,\n left: '10%',\n top: 60,\n right: '10%',\n bottom: 70,\n // If grid size contain label\n containLabel: false,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 1,\n borderColor: '#ccc'\n };\n}\n\nexport default GridModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport Axis2D from './Axis2D';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport GridModel from './GridModel';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport {OrdinalSortInfo} from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n\nexport type CartesianAxisPosition = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface CartesianAxisOption extends AxisBaseOption {\n gridIndex?: number;\n gridId?: string;\n position?: CartesianAxisPosition;\n // Offset is for multiple axis on the same position.\n offset?: number;\n categorySortInfo?: OrdinalSortInfo;\n}\n\nexport interface XAXisOption extends CartesianAxisOption {\n mainType?: 'xAxis'\n}\nexport interface YAXisOption extends CartesianAxisOption {\n mainType?: 'yAxis'\n}\n\nexport class CartesianAxisModel extends ComponentModel\n implements AxisBaseModel {\n\n static type = 'cartesian2dAxis';\n\n axis: Axis2D;\n\n getCoordSysModel(): GridModel {\n return this.getReferringComponents('grid', SINGLE_REFERRING).models[0] as GridModel;\n }\n}\n\nexport interface CartesianAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nzrUtil.mixin(CartesianAxisModel, AxisModelCommonMixin);\n\nexport default CartesianAxisModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { AxisBaseOption } from './axisCommonTypes';\n\n\nconst defaultOption: AxisBaseOption = {\n show: true,\n zlevel: 0,\n z: 0,\n // Inverse the axis.\n inverse: false,\n\n // Axis name displayed.\n name: '',\n // 'start' | 'middle' | 'end'\n nameLocation: 'end',\n // By degree. By default auto rotate by nameLocation.\n nameRotate: null,\n nameTruncate: {\n maxWidth: null,\n ellipsis: '...',\n placeholder: '.'\n },\n // Use global text style by default.\n nameTextStyle: {},\n // The gap between axisName and axisLine.\n nameGap: 15,\n\n // Default `false` to support tooltip.\n silent: false,\n // Default `false` to avoid legacy user event listener fail.\n triggerEvent: false,\n\n tooltip: {\n show: false\n },\n\n axisPointer: {},\n\n axisLine: {\n show: true,\n onZero: true,\n onZeroAxisIndex: null,\n lineStyle: {\n color: '#6E7079',\n width: 1,\n type: 'solid'\n },\n // The arrow at both ends the the axis.\n symbol: ['none', 'none'],\n symbolSize: [10, 15]\n },\n axisTick: {\n show: true,\n // Whether axisTick is inside the grid or outside the grid.\n inside: false,\n // The length of axisTick.\n length: 5,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n // Whether axisLabel is inside the grid or outside the grid.\n inside: false,\n rotate: 0,\n // true | false | null/undefined (auto)\n showMinLabel: null,\n // true | false | null/undefined (auto)\n showMaxLabel: null,\n margin: 8,\n // formatter: null,\n fontSize: 12\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: ['#E0E6F1'],\n width: 1,\n type: 'solid'\n }\n },\n splitArea: {\n show: false,\n areaStyle: {\n color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']\n }\n }\n};\n\n\nconst categoryAxis: AxisBaseOption = zrUtil.merge({\n // The gap at both ends of the axis. For categoryAxis, boolean.\n boundaryGap: true,\n // Set false to faster category collection.\n deduplication: null,\n // splitArea: {\n // show: false\n // },\n splitLine: {\n show: false\n },\n axisTick: {\n // If tick is align with label when boundaryGap is true\n alignWithLabel: false,\n interval: 'auto'\n },\n axisLabel: {\n interval: 'auto'\n }\n}, defaultOption);\n\nconst valueAxis: AxisBaseOption = zrUtil.merge({\n boundaryGap: [0, 0],\n\n axisLine: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n axisTick: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n\n // TODO\n // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]\n\n splitNumber: 5,\n\n minorTick: {\n // Minor tick, not available for cateogry axis.\n show: false,\n // Split number of minor ticks. The value should be in range of (0, 100)\n splitNumber: 5,\n // Lenght of minor tick\n length: 3,\n\n // Line style\n lineStyle: {\n // Default to be same with axisTick\n }\n },\n\n minorSplitLine: {\n show: false,\n\n lineStyle: {\n color: '#F4F7FD',\n width: 1\n }\n }\n}, defaultOption);\n\nconst timeAxis: AxisBaseOption = zrUtil.merge({\n scale: true,\n splitNumber: 6,\n axisLabel: {\n // To eliminate labels that are not nice\n showMinLabel: false,\n showMaxLabel: false,\n rich: {\n primary: {\n fontWeight: 'bold'\n }\n }\n },\n splitLine: {\n show: false\n }\n}, valueAxis);\n\nconst logAxis: AxisBaseOption = zrUtil.defaults({\n scale: true,\n logBase: 10\n}, valueAxis);\n\n\nexport default {\n category: categoryAxis,\n value: valueAxis,\n time: timeAxis,\n log: logAxis\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n TextCommonOption, LineStyleOption, OrdinalRawValue, ZRColor,\n AreaStyleOption, ComponentOption, ColorString,\n AnimationOptionMixin, Dictionary, ScaleDataValue\n} from '../util/types';\n\n\nexport const AXIS_TYPES = {value: 1, category: 1, time: 1, log: 1} as const;\nexport type OptionAxisType = keyof typeof AXIS_TYPES;\n\n\nexport interface AxisBaseOption extends ComponentOption,\n AnimationOptionMixin { // Support transition animation\n type?: OptionAxisType;\n show?: boolean;\n // Inverse the axis.\n inverse?: boolean;\n // Axis name displayed.\n name?: string;\n nameLocation?: 'start' | 'middle' | 'end';\n // By degree.\n nameRotate?: number;\n nameTruncate?: {\n maxWidth?: number;\n ellipsis?: string;\n placeholder?: string;\n };\n nameTextStyle?: AxisNameTextStyleOption;\n // The gap between axisName and axisLine.\n nameGap?: number;\n\n silent?: boolean;\n triggerEvent?: boolean;\n\n tooltip?: {\n show?: boolean;\n };\n\n axisPointer?: any; // FIXME:TS axisPointerOption type?\n axisLine?: AxisLineOption;\n axisTick?: AxisTickOption;\n axisLabel?: AxisLabelOption;\n minorTick?: MinorTickOption;\n splitLine?: SplitLineOption;\n minorSplitLine?: MinorSplitLineOption;\n splitArea?: SplitAreaOption;\n\n // The gap at both ends of the axis.\n // For category axis: boolean.\n // For value axis: [GAP, GAP], where\n // `GAP` can be an absolute pixel number (like `35`), or percent (like `'30%'`)\n boundaryGap?: boolean | [number | string, number | string];\n\n // Min value of the axis. can be:\n // + ScaleDataValue\n // + 'dataMin': use the min value in data.\n // + null/undefined: auto decide min value (consider pretty look and boundaryGap).\n min?: ScaleDataValue | 'dataMin' | ((extent: {min: number, max: number}) => ScaleDataValue);\n // Max value of the axis. can be:\n // + ScaleDataValue\n // + 'dataMax': use the max value in data.\n // + null/undefined: auto decide max value (consider pretty look and boundaryGap).\n max?: ScaleDataValue | 'dataMax' | ((extent: {min: number, max: number}) => ScaleDataValue);\n // Optional value can be:\n // + `false`: always include value 0.\n // + `true`: the extent do not consider value 0.\n scale?: boolean;\n\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n // Set false to faster category collection.\n // Only usefull in the case like: category is\n // ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // null means \"auto\":\n // if axis.data provided, do not deduplication,\n // else do deduplication.\n deduplication?: boolean;\n data?: (OrdinalRawValue | {\n value: OrdinalRawValue;\n textStyle?: TextCommonOption;\n })[];\n\n\n // ------------------------------------------------------\n // [Properties below only for 'value'/'log'/'time' axes]:\n\n // AxisTick and axisLabel and splitLine are caculated based on splitNumber.\n splitNumber?: number;\n // Interval specifies the span of the ticks is mandatorily.\n interval?: number;\n // Specify min interval when auto calculate tick interval.\n minInterval?: number;\n // Specify max interval when auto calculate tick interval.\n maxInterval?: number;\n\n\n // ---------------------------------------\n // [Properties below only for 'log' axis]:\n\n logBase?: number;\n}\n\ninterface AxisNameTextStyleOption extends TextCommonOption {\n rich?: Dictionary\n}\n\ninterface AxisLineOption {\n show?: boolean | 'auto',\n onZero?: boolean,\n onZeroAxisIndex?: number,\n // The arrow at both ends the the axis.\n symbol?: string | [string, string],\n symbolSize?: number[],\n symbolOffset?: string | number | (string | number)[],\n lineStyle?: LineStyleOption,\n}\n\ninterface AxisTickOption {\n show?: boolean | 'auto',\n // Whether axisTick is inside the grid or outside the grid.\n inside?: boolean,\n // The length of axisTick.\n length?: number,\n lineStyle?: LineStyleOption\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n // If tick is align with label when boundaryGap is true\n alignWithLabel?: boolean,\n interval?: 'auto' | number | ((index: number, value: string) => boolean)\n}\n\nexport type AxisLabelFormatterOption = string | ((value: OrdinalRawValue | number, index: number) => string);\n\ntype TimeAxisLabelUnitFormatter = AxisLabelFormatterOption | string[];\n\nexport type TimeAxisLabelFormatterOption = string\n | ((value: number, index: number, extra: {level: number}) => string)\n | {\n year?: TimeAxisLabelUnitFormatter,\n month?: TimeAxisLabelUnitFormatter,\n week?: TimeAxisLabelUnitFormatter,\n day?: TimeAxisLabelUnitFormatter,\n hour?: TimeAxisLabelUnitFormatter,\n minute?: TimeAxisLabelUnitFormatter,\n second?: TimeAxisLabelUnitFormatter,\n millisecond?: TimeAxisLabelUnitFormatter,\n inherit?: boolean\n };\n\ninterface AxisLabelOption extends Omit {\n show?: boolean,\n // Whether axisLabel is inside the grid or outside the grid.\n inside?: boolean,\n rotate?: number,\n // true | false | null/undefined (auto)\n showMinLabel?: boolean,\n // true | false | null/undefined (auto)\n showMaxLabel?: boolean,\n margin?: number,\n // value is supposed to be OptionDataPrimitive but for time axis, it is time stamp.\n formatter?: AxisLabelFormatterOption | TimeAxisLabelFormatterOption,\n\n // --------------------------------------------\n // [Properties below only for 'category' axis]:\n\n interval?: 'auto' | number | ((index: number, value: string) => boolean)\n\n // Color can be callback\n color?: ColorString | ((value?: string | number, index?: number) => ColorString)\n\n rich?: Dictionary\n}\n\ninterface MinorTickOption {\n show?: boolean,\n splitNumber?: number,\n length?: number,\n lineStyle?: LineStyleOption\n}\n\ninterface SplitLineOption {\n show?: boolean,\n interval?: 'auto' | number | ((index:number, value: string) => boolean)\n // colors will display in turn\n lineStyle?: LineStyleOption\n}\n\ninterface MinorSplitLineOption {\n show?: boolean,\n lineStyle?: LineStyleOption\n}\n\ninterface SplitAreaOption {\n show?: boolean,\n interval?: 'auto' | number | ((index:number, value: string) => boolean)\n // colors will display in turn\n areaStyle?: AreaStyleOption\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport axisDefault from './axisDefault';\nimport ComponentModel from '../model/Component';\nimport {\n getLayoutParams,\n mergeLayoutParam,\n fetchLayoutMode\n} from '../util/layout';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport { DimensionName, BoxLayoutOptionMixin, OrdinalRawValue } from '../util/types';\nimport { AxisBaseOption, AXIS_TYPES } from './axisCommonTypes';\nimport GlobalModel from '../model/Global';\nimport { each, merge } from 'zrender/src/core/util';\nimport { EChartsExtensionInstallRegisters } from '../extension';\n\n\ntype Constructor = new (...args: any[]) => T;\n\nexport interface AxisModelExtendedInCreator {\n getCategories(rawData?: boolean): OrdinalRawValue[] | Opt['data']\n getOrdinalMeta(): OrdinalMeta\n}\n\n/**\n * Generate sub axis model class\n * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...\n */\nexport default function axisModelCreator<\n AxisOptionT extends AxisBaseOption,\n AxisModelCtor extends Constructor>\n>(\n registers: EChartsExtensionInstallRegisters,\n axisName: DimensionName,\n BaseAxisModelClass: AxisModelCtor,\n extraDefaultOption?: AxisOptionT\n) {\n\n each(AXIS_TYPES, function (v, axisType) {\n\n const defaultOption = merge(\n merge({}, axisDefault[axisType], true),\n extraDefaultOption, true\n );\n\n class AxisModel extends BaseAxisModelClass implements AxisModelExtendedInCreator {\n\n static type = axisName + 'Axis.' + axisType;\n type = axisName + 'Axis.' + axisType;\n\n static defaultOption = defaultOption;\n\n private __ordinalMeta: OrdinalMeta;\n\n\n mergeDefaultAndTheme(option: AxisOptionT, ecModel: GlobalModel): void {\n const layoutMode = fetchLayoutMode(this);\n const inputPositionParams = layoutMode\n ? getLayoutParams(option as BoxLayoutOptionMixin) : {};\n\n const themeModel = ecModel.getTheme();\n merge(option, themeModel.get(axisType + 'Axis'));\n merge(option, this.getDefaultOption());\n\n option.type = getAxisType(option);\n\n if (layoutMode) {\n mergeLayoutParam(option as BoxLayoutOptionMixin, inputPositionParams, layoutMode);\n }\n }\n\n optionUpdated(): void {\n const thisOption = this.option;\n if (thisOption.type === 'category') {\n this.__ordinalMeta = OrdinalMeta.createByAxisModel(this);\n }\n }\n\n /**\n * Should not be called before all of 'getInitailData' finished.\n * Because categories are collected during initializing data.\n */\n getCategories(rawData?: boolean): OrdinalRawValue[] | AxisBaseOption['data'] {\n const option = this.option;\n // FIXME\n // warning if called before all of 'getInitailData' finished.\n if (option.type === 'category') {\n if (rawData) {\n return option.data as AxisBaseOption['data'];\n }\n return this.__ordinalMeta.categories;\n }\n }\n\n getOrdinalMeta(): OrdinalMeta {\n return this.__ordinalMeta;\n }\n }\n\n registers.registerComponentModel(AxisModel);\n });\n\n registers.registerSubTypeDefaulter(\n axisName + 'Axis',\n getAxisType\n );\n}\n\nfunction getAxisType(option: AxisBaseOption) {\n // Default axis with data is category axis\n return option.type || (option.data ? 'category' : 'value');\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { DimensionName } from '../../util/types';\nimport Axis from '../Axis';\n\n\nclass Cartesian {\n\n readonly type: string = 'cartesian';\n\n readonly name: string;\n\n private _dimList: DimensionName[] = [];\n\n private _axes: {[dimName: string]: AxisT} = {};\n\n\n constructor(name: string) {\n this.name = name || '';\n }\n\n getAxis(dim: DimensionName): AxisT {\n return this._axes[dim];\n }\n\n getAxes(): AxisT[] {\n return zrUtil.map(this._dimList, function (dim: DimensionName) {\n return this._axes[dim];\n }, this);\n }\n\n getAxesByScale(scaleType: string): AxisT[] {\n scaleType = scaleType.toLowerCase();\n return zrUtil.filter(\n this.getAxes(),\n function (axis) {\n return axis.scale.type === scaleType;\n }\n );\n }\n\n addAxis(axis: AxisT): void {\n const dim = axis.dim;\n\n this._axes[dim] = axis;\n\n this._dimList.push(dim);\n }\n\n\n // FIXME:TS Never used. So comment `dataToCoord` and `coordToData`.\n // /**\n // * Convert data to coord in nd space\n // * @param {Array.|Object.} val\n // * @return {Array.|Object.}\n // */\n // dataToCoord(val) {\n // return this._dataCoordConvert(val, 'dataToCoord');\n // }\n\n // /**\n // * Convert coord in nd space to data\n // * @param {Array.|Object.} val\n // * @return {Array.|Object.}\n // */\n // coordToData(val) {\n // return this._dataCoordConvert(val, 'coordToData');\n // }\n\n // _dataCoordConvert(input, method) {\n // let dimList = this._dimList;\n\n // let output = input instanceof Array ? [] : {};\n\n // for (let i = 0; i < dimList.length; i++) {\n // let dim = dimList[i];\n // let axis = this._axes[dim];\n\n // output[dim] = axis[method](input[dim]);\n // }\n\n // return output;\n // }\n};\n\nexport default Cartesian;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport Cartesian from './Cartesian';\nimport { ScaleDataValue } from '../../util/types';\nimport Axis2D from './Axis2D';\nimport { CoordinateSystem } from '../CoordinateSystem';\nimport GridModel from './GridModel';\nimport Grid from './Grid';\nimport Scale from '../../scale/Scale';\nimport { invert } from 'zrender/src/core/matrix';\nimport { applyTransform } from 'zrender/src/core/vector';\n\nexport const cartesian2DDimensions = ['x', 'y'];\n\nfunction canCalculateAffineTransform(scale: Scale) {\n return scale.type === 'interval' || scale.type === 'time';\n}\n\nclass Cartesian2D extends Cartesian implements CoordinateSystem {\n\n readonly type = 'cartesian2d';\n\n readonly dimensions = cartesian2DDimensions;\n\n model: GridModel;\n\n master: Grid;\n\n private _transform: number[];\n private _invTransform: number[];\n\n /**\n * Calculate an affine transform matrix if two axes are time or value.\n * It's mainly for accelartion on the large time series data.\n */\n calcAffineTransform() {\n this._transform = this._invTransform = null;\n\n const xAxisScale = this.getAxis('x').scale;\n const yAxisScale = this.getAxis('y').scale;\n\n if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) {\n return;\n }\n\n const xScaleExtent = xAxisScale.getExtent();\n const yScaleExtent = yAxisScale.getExtent();\n\n const start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]);\n const end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]);\n\n const xScaleSpan = xScaleExtent[1] - xScaleExtent[0];\n const yScaleSpan = yScaleExtent[1] - yScaleExtent[0];\n\n if (!xScaleSpan || !yScaleSpan) {\n return;\n }\n // Accelerate data to point calculation on the special large time series data.\n const scaleX = (end[0] - start[0]) / xScaleSpan;\n const scaleY = (end[1] - start[1]) / yScaleSpan;\n const translateX = start[0] - xScaleExtent[0] * scaleX;\n const translateY = start[1] - yScaleExtent[0] * scaleY;\n\n const m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY];\n this._invTransform = invert([], m);\n }\n\n /**\n * Base axis will be used on stacking.\n */\n getBaseAxis(): Axis2D {\n return this.getAxesByScale('ordinal')[0]\n || this.getAxesByScale('time')[0]\n || this.getAxis('x');\n }\n\n containPoint(point: number[]): boolean {\n const axisX = this.getAxis('x');\n const axisY = this.getAxis('y');\n return axisX.contain(axisX.toLocalCoord(point[0]))\n && axisY.contain(axisY.toLocalCoord(point[1]));\n }\n\n containData(data: ScaleDataValue[]): boolean {\n return this.getAxis('x').containData(data[0])\n && this.getAxis('y').containData(data[1]);\n }\n\n dataToPoint(data: ScaleDataValue[], clamp?: boolean, out?: number[]): number[] {\n out = out || [];\n const xVal = data[0];\n const yVal = data[1];\n // Fast path\n if (this._transform\n // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated.\n && xVal != null\n && isFinite(xVal as number)\n && yVal != null\n && isFinite(yVal as number)\n ) {\n return applyTransform(out, data as number[], this._transform);\n }\n const xAxis = this.getAxis('x');\n const yAxis = this.getAxis('y');\n out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp));\n out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp));\n return out;\n }\n\n clampData(data: ScaleDataValue[], out?: number[]): number[] {\n const xScale = this.getAxis('x').scale;\n const yScale = this.getAxis('y').scale;\n const xAxisExtent = xScale.getExtent();\n const yAxisExtent = yScale.getExtent();\n const x = xScale.parse(data[0]);\n const y = yScale.parse(data[1]);\n out = out || [];\n out[0] = Math.min(\n Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x),\n Math.max(xAxisExtent[0], xAxisExtent[1])\n );\n out[1] = Math.min(\n Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y),\n Math.max(yAxisExtent[0], yAxisExtent[1])\n );\n\n return out;\n }\n\n pointToData(point: number[], clamp?: boolean): number[] {\n const out: number[] = [];\n if (this._invTransform) {\n return applyTransform(out, point, this._invTransform);\n }\n const xAxis = this.getAxis('x');\n const yAxis = this.getAxis('y');\n out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp);\n out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp);\n return out;\n }\n\n getOtherAxis(axis: Axis2D): Axis2D {\n return this.getAxis(axis.dim === 'x' ? 'y' : 'x');\n }\n\n /**\n * Get rect area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n getArea(): Cartesian2DArea {\n const xExtent = this.getAxis('x').getGlobalExtent();\n const yExtent = this.getAxis('y').getGlobalExtent();\n const x = Math.min(xExtent[0], xExtent[1]);\n const y = Math.min(yExtent[0], yExtent[1]);\n const width = Math.max(xExtent[0], xExtent[1]) - x;\n const height = Math.max(yExtent[0], yExtent[1]) - y;\n\n return new BoundingRect(x, y, width, height);\n }\n\n};\n\ninterface Cartesian2DArea extends BoundingRect {}\n\nexport default Cartesian2D;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport { DimensionName, OrdinalSortInfo } from '../../util/types';\nimport Scale from '../../scale/Scale';\nimport CartesianAxisModel, { CartesianAxisPosition } from './AxisModel';\nimport Grid from './Grid';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport OrdinalScale from '../../scale/Ordinal';\n\n\ninterface Axis2D {\n /**\n * Transform global coord to local coord,\n * i.e. let localCoord = axis.toLocalCoord(80);\n */\n toLocalCoord(coord: number): number;\n\n /**\n * Transform global coord to local coord,\n * i.e. let globalCoord = axis.toLocalCoord(40);\n */\n toGlobalCoord(coord: number): number;\n}\nclass Axis2D extends Axis {\n\n /**\n * Axis position\n * - 'top'\n * - 'bottom'\n * - 'left'\n * - 'right'\n */\n readonly position: CartesianAxisPosition;\n\n /**\n * Index of axis, can be used as key\n * Injected outside.\n */\n index: number = 0;\n\n /**\n * Axis model. Injected outside\n */\n model: CartesianAxisModel;\n\n /**\n * Injected outside.\n */\n grid: Grid;\n\n\n constructor(\n dim: DimensionName,\n scale: Scale,\n coordExtent: [number, number],\n axisType?: OptionAxisType,\n position?: CartesianAxisPosition\n ) {\n super(dim, scale, coordExtent);\n this.type = axisType || 'value';\n this.position = position || 'bottom';\n }\n\n /**\n * Implemented in .\n * @return If not on zero of other axis, return null/undefined.\n * If no axes, return an empty array.\n */\n getAxesOnZeroOf: () => Axis2D[];\n\n isHorizontal(): boolean {\n const position = this.position;\n return position === 'top' || position === 'bottom';\n }\n\n /**\n * Each item cooresponds to this.getExtent(), which\n * means globalExtent[0] may greater than globalExtent[1],\n * unless `asc` is input.\n *\n * @param {boolean} [asc]\n * @return {Array.}\n */\n getGlobalExtent(asc?: boolean): [number, number] {\n const ret = this.getExtent();\n ret[0] = this.toGlobalCoord(ret[0]);\n ret[1] = this.toGlobalCoord(ret[1]);\n asc && ret[0] > ret[1] && ret.reverse();\n return ret;\n }\n\n pointToData(point: number[], clamp?: boolean): number {\n return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);\n }\n\n /**\n * Set ordinalSortInfo\n * @param info new OrdinalSortInfo\n */\n setCategorySortInfo(info: OrdinalSortInfo): boolean {\n if (this.type !== 'category') {\n return false;\n }\n\n this.model.option.categorySortInfo = info;\n (this.scale as OrdinalScale).setSortInfo(info);\n }\n\n}\n\nexport default Axis2D;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GridModel from './GridModel';\nimport CartesianAxisModel from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SINGLE_REFERRING } from '../../util/model';\n\ninterface CartesianAxisLayout {\n position: [number, number];\n rotation: number;\n labelOffset: number;\n labelDirection: -1 | 1;\n tickDirection: -1 | 1;\n nameDirection: -1 | 1;\n labelRotate: number;\n z2: number;\n}\n\n/**\n * Can only be called after coordinate system creation stage.\n * (Can be called before coordinate system update stage).\n */\nexport function layout(\n gridModel: GridModel, axisModel: CartesianAxisModel, opt?: {labelInside?: boolean}\n): CartesianAxisLayout {\n opt = opt || {};\n const grid = gridModel.coordinateSystem;\n const axis = axisModel.axis;\n const layout = {} as CartesianAxisLayout;\n const otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n\n const rawAxisPosition = axis.position;\n const axisPosition: 'onZero' | typeof axis.position = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n const axisDim = axis.dim;\n\n const rect = grid.getRect();\n const rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n const idx = {left: 0, right: 1, top: 0, bottom: 1, onZero: 2};\n const axisOffset = axisModel.get('offset') || 0;\n\n const posBound = axisDim === 'x'\n ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset]\n : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\n if (otherAxisOnZeroOf) {\n const onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n }\n\n // Axis position\n layout.position = [\n axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0],\n axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]\n ];\n\n // Axis rotation\n layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1);\n\n // Tick and label direction, x y is axisDim\n const dirMap = {top: -1, bottom: 1, left: -1, right: 1} as const;\n\n layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection as 1 | -1;\n }\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection as 1 | -1;\n }\n\n // Special label rotation\n const labelRotate = axisModel.get(['axisLabel', 'rotate']);\n layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate;\n\n // Over splitLine and splitArea\n layout.z2 = 1;\n\n return layout;\n}\n\nexport function isCartesian2DSeries(seriesModel: SeriesModel): boolean {\n return seriesModel.get('coordinateSystem') === 'cartesian2d';\n}\n\nexport function findAxisModels(seriesModel: SeriesModel): {\n xAxisModel: CartesianAxisModel;\n yAxisModel: CartesianAxisModel;\n} {\n const axisModelMap = {\n xAxisModel: null,\n yAxisModel: null\n } as ReturnType;\n zrUtil.each(axisModelMap, function (v, key) {\n const axisType = key.replace(/Model$/, '');\n const axisModel = seriesModel.getReferringComponents(\n axisType, SINGLE_REFERRING\n ).models[0] as CartesianAxisModel;\n\n if (__DEV__) {\n if (!axisModel) {\n throw new Error(axisType + ' \"' + zrUtil.retrieve3(\n seriesModel.get(axisType + 'Index' as any),\n seriesModel.get(axisType + 'Id' as any),\n 0\n ) + '\" not found');\n }\n }\n\n axisModelMap[key] = axisModel;\n });\n\n return axisModelMap;\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Grid is a region which contains at most 4 cartesian systems\n *\n * TODO Default cartesian\n */\n\nimport {isObject, each, indexOf, retrieve3} from 'zrender/src/core/util';\nimport {getLayoutRect, LayoutRect} from '../../util/layout';\nimport {\n createScaleByModel,\n ifAxisCrossZero,\n niceScaleExtent,\n estimateLabelUnionRect,\n getDataDimensionsOnAxis\n} from '../../coord/axisHelper';\nimport Cartesian2D, {cartesian2DDimensions} from './Cartesian2D';\nimport Axis2D from './Axis2D';\nimport {ParsedModelFinder, ParsedModelFinderKnown, SINGLE_REFERRING} from '../../util/model';\n\n// Depends on GridModel, AxisModel, which performs preprocess.\nimport GridModel from './GridModel';\nimport CartesianAxisModel from './AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary } from 'zrender/src/core/types';\nimport {CoordinateSystemMaster} from '../CoordinateSystem';\nimport { ScaleDataValue } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport OrdinalScale from '../../scale/Ordinal';\nimport { isCartesian2DSeries, findAxisModels } from './cartesianAxisHelper';\n\n\ntype Cartesian2DDimensionName = 'x' | 'y';\n\ntype FinderAxisIndex = {xAxisIndex?: number, yAxisIndex?: number};\ntype AxesMap = {x: Axis2D[], y: Axis2D[]};\n\nclass Grid implements CoordinateSystemMaster {\n\n // FIXME:TS where used (different from registered type 'cartesian2d')?\n readonly type: string = 'grid';\n\n private _coordsMap: Dictionary = {};\n private _coordsList: Cartesian2D[] = [];\n private _axesMap: AxesMap = {} as AxesMap;\n private _axesList: Axis2D[] = [];\n private _rect: LayoutRect;\n\n readonly model: GridModel;\n readonly axisPointerEnabled = true;\n\n // Injected:\n name: string;\n\n // For deciding which dimensions to use when creating list data\n static dimensions = cartesian2DDimensions;\n readonly dimensions = cartesian2DDimensions;\n\n constructor(gridModel: GridModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._initCartesian(gridModel, ecModel, api);\n this.model = gridModel;\n }\n\n getRect(): LayoutRect {\n return this._rect;\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n\n const axesMap = this._axesMap;\n\n this._updateScale(ecModel, this.model);\n\n each(axesMap.x, function (xAxis) {\n niceScaleExtent(xAxis.scale, xAxis.model);\n });\n each(axesMap.y, function (yAxis) {\n niceScaleExtent(yAxis.scale, yAxis.model);\n });\n\n // Key: axisDim_axisIndex, value: boolean, whether onZero target.\n const onZeroRecords = {} as Dictionary;\n\n each(axesMap.x, function (xAxis) {\n fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);\n });\n each(axesMap.y, function (yAxis) {\n fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);\n });\n\n // Resize again if containLabel is enabled\n // FIXME It may cause getting wrong grid size in data processing stage\n this.resize(this.model, api);\n }\n\n /**\n * Resize the grid\n */\n resize(gridModel: GridModel, api: ExtensionAPI, ignoreContainLabel?: boolean): void {\n\n const boxLayoutParams = gridModel.getBoxLayoutParams();\n const isContainLabel = !ignoreContainLabel && gridModel.get('containLabel');\n\n const gridRect = getLayoutRect(\n boxLayoutParams, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._rect = gridRect;\n\n const axesList = this._axesList;\n\n adjustAxes();\n\n // Minus label size\n if (isContainLabel) {\n each(axesList, function (axis) {\n if (!axis.model.get(['axisLabel', 'inside'])) {\n const labelUnionRect = estimateLabelUnionRect(axis);\n if (labelUnionRect) {\n const dim: 'height' | 'width' = axis.isHorizontal() ? 'height' : 'width';\n const margin = axis.model.get(['axisLabel', 'margin']);\n gridRect[dim] -= labelUnionRect[dim] + margin;\n if (axis.position === 'top') {\n gridRect.y += labelUnionRect.height + margin;\n }\n else if (axis.position === 'left') {\n gridRect.x += labelUnionRect.width + margin;\n }\n }\n }\n });\n\n adjustAxes();\n }\n\n each(this._coordsList, function (coord) {\n // Calculate affine matrix to accelerate the data to point transform.\n // If all the axes scales are time or value.\n coord.calcAffineTransform();\n });\n\n function adjustAxes() {\n each(axesList, function (axis) {\n const isHorizontal = axis.isHorizontal();\n const extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];\n const idx = axis.inverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y);\n });\n }\n }\n\n getAxis(dim: Cartesian2DDimensionName, axisIndex?: number): Axis2D {\n const axesMapOnDim = this._axesMap[dim];\n if (axesMapOnDim != null) {\n return axesMapOnDim[axisIndex || 0];\n // if (axisIndex == null) {\n // Find first axis\n // for (let name in axesMapOnDim) {\n // if (axesMapOnDim.hasOwnProperty(name)) {\n // return axesMapOnDim[name];\n // }\n // }\n // }\n // return axesMapOnDim[axisIndex];\n }\n }\n\n getAxes(): Axis2D[] {\n return this._axesList.slice();\n }\n\n /**\n * Usage:\n * grid.getCartesian(xAxisIndex, yAxisIndex);\n * grid.getCartesian(xAxisIndex);\n * grid.getCartesian(null, yAxisIndex);\n * grid.getCartesian({xAxisIndex: ..., yAxisIndex: ...});\n *\n * When only xAxisIndex or yAxisIndex given, find its first cartesian.\n */\n getCartesian(finder: FinderAxisIndex): Cartesian2D;\n getCartesian(xAxisIndex?: number, yAxisIndex?: number): Cartesian2D;\n getCartesian(xAxisIndex?: number | FinderAxisIndex, yAxisIndex?: number) {\n if (xAxisIndex != null && yAxisIndex != null) {\n const key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n return this._coordsMap[key];\n }\n\n if (isObject(xAxisIndex)) {\n yAxisIndex = (xAxisIndex as FinderAxisIndex).yAxisIndex;\n xAxisIndex = (xAxisIndex as FinderAxisIndex).xAxisIndex;\n }\n for (let i = 0, coordList = this._coordsList; i < coordList.length; i++) {\n if (coordList[i].getAxis('x').index === xAxisIndex\n || coordList[i].getAxis('y').index === yAxisIndex\n ) {\n return coordList[i];\n }\n }\n }\n\n getCartesians(): Cartesian2D[] {\n return this._coordsList.slice();\n }\n\n /**\n * @implements\n */\n convertToPixel(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]\n ): number | number[] {\n const target = this._findConvertTarget(finder);\n\n return target.cartesian\n ? target.cartesian.dataToPoint(value as ScaleDataValue[])\n : target.axis\n ? target.axis.toGlobalCoord(target.axis.dataToCoord(value as ScaleDataValue))\n : null;\n }\n\n /**\n * @implements\n */\n convertFromPixel(\n ecModel: GlobalModel, finder: ParsedModelFinder, value: number | number[]\n ): number | number[] {\n const target = this._findConvertTarget(finder);\n\n return target.cartesian\n ? target.cartesian.pointToData(value as number[])\n : target.axis\n ? target.axis.coordToData(target.axis.toLocalCoord(value as number))\n : null;\n }\n\n private _findConvertTarget(finder: ParsedModelFinderKnown): {\n cartesian: Cartesian2D,\n axis: Axis2D\n } {\n const seriesModel = finder.seriesModel;\n const xAxisModel = finder.xAxisModel\n || (seriesModel && seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0]);\n const yAxisModel = finder.yAxisModel\n || (seriesModel && seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0]);\n const gridModel = finder.gridModel;\n const coordsList = this._coordsList;\n let cartesian: Cartesian2D;\n let axis;\n\n if (seriesModel) {\n cartesian = seriesModel.coordinateSystem as Cartesian2D;\n indexOf(coordsList, cartesian) < 0 && (cartesian = null);\n }\n else if (xAxisModel && yAxisModel) {\n cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n }\n else if (xAxisModel) {\n axis = this.getAxis('x', xAxisModel.componentIndex);\n }\n else if (yAxisModel) {\n axis = this.getAxis('y', yAxisModel.componentIndex);\n }\n // Lowest priority.\n else if (gridModel) {\n const grid = gridModel.coordinateSystem;\n if (grid === this) {\n cartesian = this._coordsList[0];\n }\n }\n\n return {cartesian: cartesian, axis: axis};\n }\n\n /**\n * @implements\n */\n containPoint(point: number[]): boolean {\n const coord = this._coordsList[0];\n if (coord) {\n return coord.containPoint(point);\n }\n }\n\n /**\n * Initialize cartesian coordinate systems\n */\n private _initCartesian(\n gridModel: GridModel, ecModel: GlobalModel, api: ExtensionAPI\n ): void {\n const grid = this;\n const axisPositionUsed = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n\n const axesMap = {\n x: {},\n y: {}\n } as AxesMap;\n const axesCount = {\n x: 0,\n y: 0\n };\n\n /// Create axis\n ecModel.eachComponent('xAxis', createAxisCreator('x'), this);\n ecModel.eachComponent('yAxis', createAxisCreator('y'), this);\n\n if (!axesCount.x || !axesCount.y) {\n // Roll back when there no either x or y axis\n this._axesMap = {} as AxesMap;\n this._axesList = [];\n return;\n }\n\n this._axesMap = axesMap;\n\n /// Create cartesian2d\n each(axesMap.x, (xAxis, xAxisIndex) => {\n each(axesMap.y, (yAxis, yAxisIndex) => {\n const key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n const cartesian = new Cartesian2D(key);\n\n cartesian.master = this;\n cartesian.model = gridModel;\n\n this._coordsMap[key] = cartesian;\n this._coordsList.push(cartesian);\n\n cartesian.addAxis(xAxis);\n cartesian.addAxis(yAxis);\n });\n });\n\n function createAxisCreator(dimName: Cartesian2DDimensionName) {\n return function (axisModel: CartesianAxisModel, idx: number): void {\n if (!isAxisUsedInTheGrid(axisModel, gridModel)) {\n return;\n }\n\n let axisPosition = axisModel.get('position');\n if (dimName === 'x') {\n // Fix position\n if (axisPosition !== 'top' && axisPosition !== 'bottom') {\n // Default bottom of X\n axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';\n }\n }\n else {\n // Fix position\n if (axisPosition !== 'left' && axisPosition !== 'right') {\n // Default left of Y\n axisPosition = axisPositionUsed.left ? 'right' : 'left';\n }\n }\n axisPositionUsed[axisPosition] = true;\n\n const axis = new Axis2D(\n dimName,\n createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisPosition\n );\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n\n // Inject axis into axisModel\n axisModel.axis = axis;\n\n // Inject axisModel into axis\n axis.model = axisModel;\n\n // Inject grid info axis\n axis.grid = grid;\n\n // Index of axis, can be used as key\n axis.index = idx;\n\n grid._axesList.push(axis);\n\n axesMap[dimName][idx] = axis;\n axesCount[dimName]++;\n };\n }\n }\n\n /**\n * Update cartesian properties from series.\n */\n private _updateScale(ecModel: GlobalModel, gridModel: GridModel): void {\n // Reset scale\n each(this._axesList, function (axis) {\n axis.scale.setExtent(Infinity, -Infinity);\n if (axis.type === 'category') {\n const categorySortInfo = axis.model.get('categorySortInfo');\n (axis.scale as OrdinalScale).setSortInfo(categorySortInfo);\n }\n });\n\n ecModel.eachSeries(function (seriesModel) {\n if (isCartesian2DSeries(seriesModel)) {\n const axesModelMap = findAxisModels(seriesModel);\n const xAxisModel = axesModelMap.xAxisModel;\n const yAxisModel = axesModelMap.yAxisModel;\n\n if (!isAxisUsedInTheGrid(xAxisModel, gridModel)\n || !isAxisUsedInTheGrid(yAxisModel, gridModel)\n ) {\n return;\n }\n\n const cartesian = this.getCartesian(\n xAxisModel.componentIndex, yAxisModel.componentIndex\n );\n const data = seriesModel.getData();\n const xAxis = cartesian.getAxis('x');\n const yAxis = cartesian.getAxis('y');\n\n if (data.type === 'list') {\n unionExtent(data, xAxis);\n unionExtent(data, yAxis);\n }\n }\n }, this);\n\n function unionExtent(data: SeriesData, axis: Axis2D): void {\n each(getDataDimensionsOnAxis(data, axis.dim), function (dim) {\n axis.scale.unionExtentFromData(data, dim);\n });\n }\n }\n\n /**\n * @param dim 'x' or 'y' or 'auto' or null/undefined\n */\n getTooltipAxes(dim: Cartesian2DDimensionName | 'auto'): {\n baseAxes: Axis2D[], otherAxes: Axis2D[]\n } {\n const baseAxes = [] as Axis2D[];\n const otherAxes = [] as Axis2D[];\n\n each(this.getCartesians(), function (cartesian) {\n const baseAxis = (dim != null && dim !== 'auto')\n ? cartesian.getAxis(dim) : cartesian.getBaseAxis();\n const otherAxis = cartesian.getOtherAxis(baseAxis);\n indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);\n indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);\n });\n\n return {baseAxes: baseAxes, otherAxes: otherAxes};\n }\n\n\n static create(ecModel: GlobalModel, api: ExtensionAPI): Grid[] {\n const grids = [] as Grid[];\n ecModel.eachComponent('grid', function (gridModel: GridModel, idx) {\n const grid = new Grid(gridModel, ecModel, api);\n grid.name = 'grid_' + idx;\n // dataSampling requires axis extent, so resize\n // should be performed in create stage.\n grid.resize(gridModel, api, true);\n\n gridModel.coordinateSystem = grid;\n\n grids.push(grid);\n });\n\n // Inject the coordinateSystems into seriesModel\n ecModel.eachSeries(function (seriesModel) {\n if (!isCartesian2DSeries(seriesModel)) {\n return;\n }\n\n const axesModelMap = findAxisModels(seriesModel);\n const xAxisModel = axesModelMap.xAxisModel;\n const yAxisModel = axesModelMap.yAxisModel;\n\n const gridModel = xAxisModel.getCoordSysModel();\n\n if (__DEV__) {\n if (!gridModel) {\n throw new Error(\n 'Grid \"' + retrieve3(\n xAxisModel.get('gridIndex'),\n xAxisModel.get('gridId'),\n 0\n ) + '\" not found'\n );\n }\n if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) {\n throw new Error('xAxis and yAxis must use the same grid');\n }\n }\n\n const grid = gridModel.coordinateSystem as Grid;\n\n seriesModel.coordinateSystem = grid.getCartesian(\n xAxisModel.componentIndex, yAxisModel.componentIndex\n );\n });\n\n return grids;\n }\n\n}\n\n/**\n * Check if the axis is used in the specified grid.\n */\nfunction isAxisUsedInTheGrid(axisModel: CartesianAxisModel, gridModel: GridModel): boolean {\n return axisModel.getCoordSysModel() === gridModel;\n}\n\nfunction fixAxisOnZero(\n axesMap: AxesMap,\n otherAxisDim: Cartesian2DDimensionName,\n axis: Axis2D,\n // Key: see `getOnZeroRecordKey`\n onZeroRecords: Dictionary\n): void {\n\n axis.getAxesOnZeroOf = function () {\n // TODO: onZero of multiple axes.\n return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : [];\n };\n\n // onZero can not be enabled in these two situations:\n // 1. When any other axis is a category axis.\n // 2. When no axis is cross 0 point.\n const otherAxes = axesMap[otherAxisDim];\n\n let otherAxisOnZeroOf: Axis2D;\n const axisModel = axis.model;\n const onZero = axisModel.get(['axisLine', 'onZero']);\n const onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']);\n\n if (!onZero) {\n return;\n }\n\n // If target axis is specified.\n if (onZeroAxisIndex != null) {\n if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) {\n otherAxisOnZeroOf = otherAxes[onZeroAxisIndex];\n }\n }\n else {\n // Find the first available other axis.\n for (const idx in otherAxes) {\n if (otherAxes.hasOwnProperty(idx)\n && canOnZeroToAxis(otherAxes[idx])\n // Consider that two Y axes on one value axis,\n // if both onZero, the two Y axes overlap.\n && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]\n ) {\n otherAxisOnZeroOf = otherAxes[idx];\n break;\n }\n }\n }\n\n if (otherAxisOnZeroOf) {\n onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true;\n }\n\n function getOnZeroRecordKey(axis: Axis2D) {\n return axis.dim + '_' + axis.index;\n }\n}\n\nfunction canOnZeroToAxis(axis: Axis2D): boolean {\n return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis);\n}\n\nfunction updateAxisTransform(axis: Axis2D, coordBase: number) {\n const axisExtent = axis.getExtent();\n const axisExtentSum = axisExtent[0] + axisExtent[1];\n\n // Fast transform\n axis.toGlobalCoord = axis.dim === 'x'\n ? function (coord) {\n return coord + coordBase;\n }\n : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n axis.toLocalCoord = axis.dim === 'x'\n ? function (coord) {\n return coord - coordBase;\n }\n : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n}\n\nexport default Grid;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {retrieve, defaults, extend, each, isObject} from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {createTextStyle} from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport {isRadianAroundZero, remRadian} from '../../util/number';\nimport {createSymbol, normalizeSymbolOffset} from '../../util/symbol';\nimport * as matrixUtil from 'zrender/src/core/matrix';\nimport {applyTransform as v2ApplyTransform} from 'zrender/src/core/vector';\nimport {shouldShowAllLabels} from '../../coord/axisHelper';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { ZRTextVerticalAlign, ZRTextAlign, ECElement, ColorString } from '../../util/types';\nimport { AxisBaseOption } from '../../coord/axisCommonTypes';\nimport Element from 'zrender/src/Element';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport OrdinalScale from '../../scale/Ordinal';\n\nconst PI = Math.PI;\n\ntype AxisIndexKey = 'xAxisIndex' | 'yAxisIndex' | 'radiusAxisIndex'\n | 'angleAxisIndex' | 'singleAxisIndex';\n\ntype AxisEventData = {\n componentType: string\n componentIndex: number\n targetType: 'axisName' | 'axisLabel'\n name?: string\n value?: string | number\n} & {\n [key in AxisIndexKey]?: number\n};\n\ntype AxisLabelText = graphic.Text & {\n __fullText: string\n __truncatedText: string\n} & ECElement;\n\nexport interface AxisBuilderCfg {\n position?: number[]\n rotation?: number\n /**\n * Used when nameLocation is 'middle' or 'center'.\n * 1 | -1\n */\n nameDirection?: number\n tickDirection?: number\n labelDirection?: number\n /**\n * Usefull when onZero.\n */\n labelOffset?: number\n /**\n * default get from axisModel.\n */\n axisLabelShow?: boolean\n /**\n * default get from axisModel.\n */\n axisName?: string\n\n axisNameAvailableWidth?: number\n /**\n * by degree, default get from axisModel.\n */\n labelRotate?: number\n\n strokeContainThreshold?: number\n\n nameTruncateMaxWidth?: number\n\n silent?: boolean\n\n handleAutoShown?(elementType: 'axisLine' | 'axisTick'): boolean\n}\n\ninterface TickCoord {\n coord: number\n tickValue?: number\n}\n\n/**\n * A final axis is translated and rotated from a \"standard axis\".\n * So opt.position and opt.rotation is required.\n *\n * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],\n * for example: (0, 0) ------------> (0, 50)\n *\n * nameDirection or tickDirection or labelDirection is 1 means tick\n * or label is below the standard axis, whereas is -1 means above\n * the standard axis. labelOffset means offset between label and axis,\n * which is useful when 'onZero', where axisLabel is in the grid and\n * label in outside grid.\n *\n * Tips: like always,\n * positive rotation represents anticlockwise, and negative rotation\n * represents clockwise.\n * The direction of position coordinate is the same as the direction\n * of screen coordinate.\n *\n * Do not need to consider axis 'inverse', which is auto processed by\n * axis extent.\n */\nclass AxisBuilder {\n\n axisModel: AxisBaseModel;\n\n opt: AxisBuilderCfg;\n\n readonly group = new graphic.Group();\n\n private _transformGroup: graphic.Group;\n\n constructor(axisModel: AxisBaseModel, opt?: AxisBuilderCfg) {\n\n this.opt = opt;\n\n this.axisModel = axisModel;\n\n // Default value\n defaults(\n opt,\n {\n labelOffset: 0,\n nameDirection: 1,\n tickDirection: 1,\n labelDirection: 1,\n silent: true,\n handleAutoShown: () => true\n } as AxisBuilderCfg\n );\n\n\n // FIXME Not use a seperate text group?\n const transformGroup = new graphic.Group({\n x: opt.position[0],\n y: opt.position[1],\n rotation: opt.rotation\n });\n\n // this.group.add(transformGroup);\n // this._transformGroup = transformGroup;\n\n transformGroup.updateTransform();\n\n this._transformGroup = transformGroup;\n }\n\n hasBuilder(name: keyof typeof builders) {\n return !!builders[name];\n }\n\n add(name: keyof typeof builders) {\n builders[name](this.opt, this.axisModel, this.group, this._transformGroup);\n }\n\n getGroup() {\n return this.group;\n }\n\n static innerTextLayout(axisRotation: number, textRotation: number, direction: number) {\n const rotationDiff = remRadian(textRotation - axisRotation);\n let textAlign;\n let textVerticalAlign;\n\n if (isRadianAroundZero(rotationDiff)) { // Label is parallel with axis line.\n textVerticalAlign = direction > 0 ? 'top' : 'bottom';\n textAlign = 'center';\n }\n else if (isRadianAroundZero(rotationDiff - PI)) { // Label is inverse parallel with axis line.\n textVerticalAlign = direction > 0 ? 'bottom' : 'top';\n textAlign = 'center';\n }\n else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff > 0 && rotationDiff < PI) {\n textAlign = direction > 0 ? 'right' : 'left';\n }\n else {\n textAlign = direction > 0 ? 'left' : 'right';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign as ZRTextAlign,\n textVerticalAlign: textVerticalAlign as ZRTextVerticalAlign\n };\n }\n\n static makeAxisEventDataBase(axisModel: AxisBaseModel) {\n const eventData = {\n componentType: axisModel.mainType,\n componentIndex: axisModel.componentIndex\n } as AxisEventData;\n eventData[axisModel.mainType + 'Index' as AxisIndexKey] = axisModel.componentIndex;\n return eventData;\n }\n\n static isLabelSilent(axisModel: AxisBaseModel): boolean {\n const tooltipOpt = axisModel.get('tooltip');\n return axisModel.get('silent')\n // Consider mouse cursor, add these restrictions.\n || !(\n axisModel.get('triggerEvent') || (tooltipOpt && tooltipOpt.show)\n );\n }\n};\n\ninterface AxisElementsBuilder {\n (\n opt: AxisBuilderCfg,\n axisModel: AxisBaseModel,\n group: graphic.Group,\n transformGroup: graphic.Group\n ):void\n}\n\nconst builders: Record<'axisLine' | 'axisTickLabel' | 'axisName', AxisElementsBuilder> = {\n\n axisLine(opt, axisModel, group, transformGroup) {\n\n let shown = axisModel.get(['axisLine', 'show']);\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisLine');\n }\n if (!shown) {\n return;\n }\n\n const extent = axisModel.axis.getExtent();\n\n const matrix = transformGroup.transform;\n const pt1 = [extent[0], 0];\n const pt2 = [extent[1], 0];\n if (matrix) {\n v2ApplyTransform(pt1, pt1, matrix);\n v2ApplyTransform(pt2, pt2, matrix);\n }\n\n const lineStyle = extend(\n {\n lineCap: 'round'\n },\n axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle()\n );\n\n const line = new graphic.Line({\n // Id for animation\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: lineStyle,\n strokeContainThreshold: opt.strokeContainThreshold || 5,\n silent: true,\n z2: 1\n });\n line.anid = 'line';\n group.add(line);\n\n let arrows = axisModel.get(['axisLine', 'symbol']);\n\n if (arrows != null) {\n let arrowSize = axisModel.get(['axisLine', 'symbolSize']);\n\n if (typeof arrows === 'string') {\n // Use the same arrow for start and end point\n arrows = [arrows, arrows];\n }\n if (typeof arrowSize === 'string'\n || typeof arrowSize === 'number'\n ) {\n // Use the same size for width and height\n arrowSize = [arrowSize, arrowSize];\n }\n\n const arrowOffset = normalizeSymbolOffset(axisModel.get(['axisLine', 'symbolOffset']) || 0, arrowSize);\n\n const symbolWidth = arrowSize[0];\n const symbolHeight = arrowSize[1];\n\n each([{\n rotate: opt.rotation + Math.PI / 2,\n offset: arrowOffset[0],\n r: 0\n }, {\n rotate: opt.rotation - Math.PI / 2,\n offset: arrowOffset[1],\n r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0])\n + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1]))\n }], function (point, index) {\n if (arrows[index] !== 'none' && arrows[index] != null) {\n const symbol = createSymbol(\n arrows[index],\n -symbolWidth / 2,\n -symbolHeight / 2,\n symbolWidth,\n symbolHeight,\n lineStyle.stroke,\n true\n );\n\n // Calculate arrow position with offset\n const r = point.r + point.offset;\n\n symbol.attr({\n rotation: point.rotate,\n x: pt1[0] + r * Math.cos(opt.rotation),\n y: pt1[1] - r * Math.sin(opt.rotation),\n silent: true,\n z2: 11\n });\n group.add(symbol);\n }\n });\n }\n },\n\n axisTickLabel(opt, axisModel, group, transformGroup) {\n\n const ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt);\n const labelEls = buildAxisLabel(group, transformGroup, axisModel, opt);\n\n fixMinMaxLabelShow(axisModel, labelEls, ticksEls);\n\n buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection);\n },\n\n axisName(opt, axisModel, group, transformGroup) {\n const name = retrieve(opt.axisName, axisModel.get('name'));\n\n if (!name) {\n return;\n }\n\n const nameLocation = axisModel.get('nameLocation');\n const nameDirection = opt.nameDirection;\n const textStyleModel = axisModel.getModel('nameTextStyle');\n const gap = axisModel.get('nameGap') || 0;\n\n const extent = axisModel.axis.getExtent();\n const gapSignal = extent[0] > extent[1] ? -1 : 1;\n const pos = [\n nameLocation === 'start'\n ? extent[0] - gapSignal * gap\n : nameLocation === 'end'\n ? extent[1] + gapSignal * gap\n : (extent[0] + extent[1]) / 2, // 'middle'\n // Reuse labelOffset.\n isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0\n ];\n\n let labelLayout;\n\n let nameRotation = axisModel.get('nameRotate');\n if (nameRotation != null) {\n nameRotation = nameRotation * PI / 180; // To radian.\n }\n\n let axisNameAvailableWidth;\n\n if (isNameLocationCenter(nameLocation)) {\n labelLayout = AxisBuilder.innerTextLayout(\n opt.rotation,\n nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis.\n nameDirection\n );\n }\n else {\n labelLayout = endTextLayout(\n opt.rotation, nameLocation, nameRotation || 0, extent\n );\n\n axisNameAvailableWidth = opt.axisNameAvailableWidth;\n if (axisNameAvailableWidth != null) {\n axisNameAvailableWidth = Math.abs(\n axisNameAvailableWidth / Math.sin(labelLayout.rotation)\n );\n !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);\n }\n }\n\n const textFont = textStyleModel.getFont();\n\n const truncateOpt = axisModel.get('nameTruncate', true) || {};\n const ellipsis = truncateOpt.ellipsis;\n const maxWidth = retrieve(\n opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth\n );\n\n const textEl = new graphic.Text({\n x: pos[0],\n y: pos[1],\n rotation: labelLayout.rotation,\n silent: AxisBuilder.isLabelSilent(axisModel),\n style: createTextStyle(textStyleModel, {\n text: name,\n font: textFont,\n overflow: 'truncate',\n width: maxWidth,\n ellipsis,\n fill: textStyleModel.getTextColor()\n || axisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,\n align: textStyleModel.get('align')\n || labelLayout.textAlign,\n verticalAlign: textStyleModel.get('verticalAlign')\n || labelLayout.textVerticalAlign\n }),\n z2: 1\n }) as AxisLabelText;\n\n graphic.setTooltipConfig({\n el: textEl,\n componentModel: axisModel,\n itemName: name\n });\n\n textEl.__fullText = name;\n // Id for animation\n textEl.anid = 'name';\n\n if (axisModel.get('triggerEvent')) {\n const eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisName';\n eventData.name = name;\n getECData(textEl).eventData = eventData;\n }\n\n // FIXME\n transformGroup.add(textEl);\n textEl.updateTransform();\n\n group.add(textEl);\n\n textEl.decomposeTransform();\n }\n\n};\n\nfunction endTextLayout(\n rotation: number, textPosition: 'start' | 'middle' | 'end', textRotate: number, extent: number[]\n) {\n const rotationDiff = remRadian(textRotate - rotation);\n let textAlign: ZRTextAlign;\n let textVerticalAlign: ZRTextVerticalAlign;\n const inverse = extent[0] > extent[1];\n const onLeft = (textPosition === 'start' && !inverse)\n || (textPosition !== 'start' && inverse);\n\n if (isRadianAroundZero(rotationDiff - PI / 2)) {\n textVerticalAlign = onLeft ? 'bottom' : 'top';\n textAlign = 'center';\n }\n else if (isRadianAroundZero(rotationDiff - PI * 1.5)) {\n textVerticalAlign = onLeft ? 'top' : 'bottom';\n textAlign = 'center';\n }\n else {\n textVerticalAlign = 'middle';\n if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) {\n textAlign = onLeft ? 'left' : 'right';\n }\n else {\n textAlign = onLeft ? 'right' : 'left';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n}\n\nfunction fixMinMaxLabelShow(\n axisModel: AxisBaseModel,\n labelEls: graphic.Text[],\n tickEls: graphic.Line[]\n) {\n if (shouldShowAllLabels(axisModel.axis)) {\n return;\n }\n\n // If min or max are user set, we need to check\n // If the tick on min(max) are overlap on their neighbour tick\n // If they are overlapped, we need to hide the min(max) tick label\n const showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']);\n const showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']);\n\n // FIXME\n // Have not consider onBand yet, where tick els is more than label els.\n\n labelEls = labelEls || [];\n tickEls = tickEls || [];\n\n const firstLabel = labelEls[0];\n const nextLabel = labelEls[1];\n const lastLabel = labelEls[labelEls.length - 1];\n const prevLabel = labelEls[labelEls.length - 2];\n\n const firstTick = tickEls[0];\n const nextTick = tickEls[1];\n const lastTick = tickEls[tickEls.length - 1];\n const prevTick = tickEls[tickEls.length - 2];\n\n if (showMinLabel === false) {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {\n if (showMinLabel) {\n ignoreEl(nextLabel);\n ignoreEl(nextTick);\n }\n else {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n }\n\n if (showMaxLabel === false) {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {\n if (showMaxLabel) {\n ignoreEl(prevLabel);\n ignoreEl(prevTick);\n }\n else {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n }\n}\n\nfunction ignoreEl(el: Element) {\n el && (el.ignore = true);\n}\n\nfunction isTwoLabelOverlapped(\n current: graphic.Text,\n next: graphic.Text\n) {\n // current and next has the same rotation.\n const firstRect = current && current.getBoundingRect().clone();\n const nextRect = next && next.getBoundingRect().clone();\n\n if (!firstRect || !nextRect) {\n return;\n }\n\n // When checking intersect of two rotated labels, we use mRotationBack\n // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.\n const mRotationBack = matrixUtil.identity([]);\n matrixUtil.rotate(mRotationBack, mRotationBack, -current.rotation);\n\n firstRect.applyTransform(matrixUtil.mul([], mRotationBack, current.getLocalTransform()));\n nextRect.applyTransform(matrixUtil.mul([], mRotationBack, next.getLocalTransform()));\n\n return firstRect.intersect(nextRect);\n}\n\nfunction isNameLocationCenter(nameLocation: string) {\n return nameLocation === 'middle' || nameLocation === 'center';\n}\n\n\nfunction createTicks(\n ticksCoords: TickCoord[],\n tickTransform: matrixUtil.MatrixArray,\n tickEndCoord: number,\n tickLineStyle: PathStyleProps,\n anidPrefix: string\n) {\n const tickEls = [];\n const pt1: number[] = [];\n const pt2: number[] = [];\n for (let i = 0; i < ticksCoords.length; i++) {\n const tickCoord = ticksCoords[i].coord;\n\n pt1[0] = tickCoord;\n pt1[1] = 0;\n pt2[0] = tickCoord;\n pt2[1] = tickEndCoord;\n\n if (tickTransform) {\n v2ApplyTransform(pt1, pt1, tickTransform);\n v2ApplyTransform(pt2, pt2, tickTransform);\n }\n // Tick line, Not use group transform to have better line draw\n const tickEl = new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: tickLineStyle,\n z2: 2,\n autoBatch: true,\n silent: true\n });\n tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue;\n tickEls.push(tickEl);\n }\n return tickEls;\n}\n\nfunction buildAxisMajorTicks(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n opt: AxisBuilderCfg\n) {\n const axis = axisModel.axis;\n\n const tickModel = axisModel.getModel('axisTick');\n\n let shown = tickModel.get('show');\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisTick');\n }\n if (!shown || axis.scale.isBlank()) {\n return;\n }\n\n const lineStyleModel = tickModel.getModel('lineStyle');\n const tickEndCoord = opt.tickDirection * tickModel.get('length');\n\n const ticksCoords = axis.getTicksCoords();\n\n const ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, defaults(\n lineStyleModel.getLineStyle(),\n {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n ), 'ticks');\n\n for (let i = 0; i < ticksEls.length; i++) {\n group.add(ticksEls[i]);\n }\n\n return ticksEls;\n}\n\nfunction buildAxisMinorTicks(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n tickDirection: number\n) {\n const axis = axisModel.axis;\n\n const minorTickModel = axisModel.getModel('minorTick');\n\n if (!minorTickModel.get('show') || axis.scale.isBlank()) {\n return;\n }\n\n const minorTicksCoords = axis.getMinorTicksCoords();\n if (!minorTicksCoords.length) {\n return;\n }\n\n const lineStyleModel = minorTickModel.getModel('lineStyle');\n const tickEndCoord = tickDirection * minorTickModel.get('length');\n\n const minorTickLineStyle = defaults(\n lineStyleModel.getLineStyle(),\n defaults(\n axisModel.getModel('axisTick').getLineStyle(),\n {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n );\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n const minorTicksEls = createTicks(\n minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i\n );\n for (let k = 0; k < minorTicksEls.length; k++) {\n group.add(minorTicksEls[k]);\n }\n }\n}\n\nfunction buildAxisLabel(\n group: graphic.Group,\n transformGroup: graphic.Group,\n axisModel: AxisBaseModel,\n opt: AxisBuilderCfg\n) {\n const axis = axisModel.axis;\n const show = retrieve(opt.axisLabelShow, axisModel.get(['axisLabel', 'show']));\n\n if (!show || axis.scale.isBlank()) {\n return;\n }\n\n const labelModel = axisModel.getModel('axisLabel');\n const labelMargin = labelModel.get('margin');\n const labels = axis.getViewLabels();\n\n // Special label rotate.\n const labelRotation = (\n retrieve(opt.labelRotate, labelModel.get('rotate')) || 0\n ) * PI / 180;\n\n const labelLayout = AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);\n const rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);\n\n const labelEls: graphic.Text[] = [];\n const silent = AxisBuilder.isLabelSilent(axisModel);\n const triggerEvent = axisModel.get('triggerEvent');\n\n each(labels, function (labelItem, index) {\n const tickValue = axis.scale.type === 'ordinal'\n ? (axis.scale as OrdinalScale).getRawOrdinalNumber(labelItem.tickValue)\n : labelItem.tickValue;\n const formattedLabel = labelItem.formattedLabel;\n const rawLabel = labelItem.rawLabel;\n\n let itemLabelModel = labelModel;\n if (rawCategoryData && rawCategoryData[tickValue]) {\n const rawCategoryItem = rawCategoryData[tickValue];\n if (isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n itemLabelModel = new Model(\n rawCategoryItem.textStyle, labelModel, axisModel.ecModel\n );\n }\n }\n\n const textColor = itemLabelModel.getTextColor() as AxisBaseOption['axisLabel']['color']\n || axisModel.get(['axisLine', 'lineStyle', 'color']);\n\n const tickCoord = axis.dataToCoord(tickValue);\n\n const textEl = new graphic.Text({\n x: tickCoord,\n y: opt.labelOffset + opt.labelDirection * labelMargin,\n rotation: labelLayout.rotation,\n silent: silent,\n z2: 10,\n style: createTextStyle(itemLabelModel, {\n text: formattedLabel,\n align: itemLabelModel.getShallow('align', true)\n || labelLayout.textAlign,\n verticalAlign: itemLabelModel.getShallow('verticalAlign', true)\n || itemLabelModel.getShallow('baseline', true)\n || labelLayout.textVerticalAlign,\n fill: typeof textColor === 'function'\n ? textColor(\n // (1) In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n // (2) Compatible with previous version, which always use formatted label as\n // input. But in interval scale the formatted label is like '223,445', which\n // maked user repalce ','. So we modify it to return original val but remain\n // it as 'string' to avoid error in replacing.\n axis.type === 'category'\n ? rawLabel\n : axis.type === 'value'\n ? tickValue + ''\n : tickValue,\n index\n )\n : textColor as string\n })\n });\n textEl.anid = 'label_' + tickValue;\n\n\n // Pack data for mouse event\n if (triggerEvent) {\n const eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = rawLabel;\n\n getECData(textEl).eventData = eventData;\n }\n\n // FIXME\n transformGroup.add(textEl);\n textEl.updateTransform();\n\n labelEls.push(textEl);\n group.add(textEl);\n\n textEl.decomposeTransform();\n\n });\n\n return labelEls;\n}\n\n\nexport default AxisBuilder;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { each, curry, clone, defaults, isArray, indexOf } from 'zrender/src/core/util';\nimport AxisPointerModel, { AxisPointerOption } from './AxisPointerModel';\nimport Axis from '../../coord/Axis';\nimport { TooltipOption } from '../tooltip/TooltipModel';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesTooltipOption,\n CommonAxisPointerOption,\n Dictionary,\n ComponentOption\n} from '../../util/types';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ComponentModel from '../../model/Component';\nimport { CoordinateSystemMaster } from '../../coord/CoordinateSystem';\n\ninterface LinkGroup {\n mapper: AxisPointerOption['link'][number]['mapper']\n /**\n * { [axisKey]: AxisInfo }\n */\n axesInfo: Dictionary\n}\ninterface AxisInfo {\n axis: Axis\n key: string\n coordSys: CoordinateSystemMaster\n axisPointerModel: Model\n triggerTooltip: boolean\n involveSeries: boolean\n snap: boolean\n useHandle: boolean\n seriesModels: SeriesModel[]\n\n linkGroup?: LinkGroup\n seriesDataCount?: number\n}\n\ninterface CollectionResult {\n /**\n * { [coordSysKey]: { [axisKey]: AxisInfo } }\n */\n coordSysAxesInfo: Dictionary>\n\n /**\n * { [axisKey]: AxisInfo }\n */\n axesInfo: Dictionary\n /**\n * { [coordSysKey]: { CoordinateSystemMaster } }\n */\n coordSysMap: Dictionary\n\n seriesInvolved: boolean\n}\n\n// Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n// allAxesInfo should be updated when setOption performed.\nexport function collect(ecModel: GlobalModel, api: ExtensionAPI) {\n const result: CollectionResult = {\n /**\n * key: makeKey(axis.model)\n * value: {\n * axis,\n * coordSys,\n * axisPointerModel,\n * triggerTooltip,\n * involveSeries,\n * snap,\n * seriesModels,\n * seriesDataCount\n * }\n */\n axesInfo: {},\n seriesInvolved: false,\n /**\n * key: makeKey(coordSys.model)\n * value: Object: key makeKey(axis.model), value: axisInfo\n */\n coordSysAxesInfo: {},\n coordSysMap: {}\n };\n\n collectAxesInfo(result, ecModel, api);\n\n // Check seriesInvolved for performance, in case too many series in some chart.\n result.seriesInvolved && collectSeriesInfo(result, ecModel);\n\n return result;\n}\n\nfunction collectAxesInfo(result: CollectionResult, ecModel: GlobalModel, api: ExtensionAPI) {\n const globalTooltipModel = ecModel.getComponent('tooltip');\n const globalAxisPointerModel = ecModel.getComponent('axisPointer') as AxisPointerModel;\n // links can only be set on global.\n const linksOption = globalAxisPointerModel.get('link', true) || [];\n const linkGroups: LinkGroup[] = [];\n\n // Collect axes info.\n each(api.getCoordinateSystems(), function (coordSys) {\n // Some coordinate system do not support axes, like geo.\n if (!coordSys.axisPointerEnabled) {\n return;\n }\n\n const coordSysKey = makeKey(coordSys.model);\n const axesInfoInCoordSys: CollectionResult['coordSysAxesInfo'][string] =\n result.coordSysAxesInfo[coordSysKey] = {};\n result.coordSysMap[coordSysKey] = coordSys;\n\n // Set tooltip (like 'cross') is a convienent way to show axisPointer\n // for user. So we enable seting tooltip on coordSys model.\n const coordSysModel = coordSys.model as ComponentModel;\n const baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);\n\n each(coordSys.getAxes(), curry(saveTooltipAxisInfo, false, null));\n\n // If axis tooltip used, choose tooltip axis for each coordSys.\n // Notice this case: coordSys is `grid` but not `cartesian2D` here.\n if (coordSys.getTooltipAxes\n && globalTooltipModel\n // If tooltip.showContent is set as false, tooltip will not\n // show but axisPointer will show as normal.\n && baseTooltipModel.get('show')\n ) {\n // Compatible with previous logic. But series.tooltip.trigger: 'axis'\n // or series.data[n].tooltip.trigger: 'axis' are not support any more.\n const triggerAxis = baseTooltipModel.get('trigger') === 'axis';\n const cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross';\n const tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));\n if (triggerAxis || cross) {\n each(tooltipAxes.baseAxes, curry(\n saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis\n ));\n }\n if (cross) {\n each(tooltipAxes.otherAxes, curry(saveTooltipAxisInfo, 'cross', false));\n }\n }\n\n // fromTooltip: true | false | 'cross'\n // triggerTooltip: true | false | null\n function saveTooltipAxisInfo(\n fromTooltip: boolean | 'cross',\n triggerTooltip: boolean,\n axis: Axis\n ) {\n let axisPointerModel = axis.model.getModel(\n 'axisPointer', globalAxisPointerModel\n ) as Model;\n\n const axisPointerShow = axisPointerModel.get('show');\n if (!axisPointerShow || (\n axisPointerShow === 'auto'\n && !fromTooltip\n && !isHandleTrigger(axisPointerModel)\n )) {\n return;\n }\n\n if (triggerTooltip == null) {\n triggerTooltip = axisPointerModel.get('triggerTooltip');\n }\n\n axisPointerModel = fromTooltip\n ? makeAxisPointerModel(\n axis, baseTooltipModel, globalAxisPointerModel, ecModel,\n fromTooltip, triggerTooltip\n )\n : axisPointerModel;\n\n const snap = axisPointerModel.get('snap');\n const axisKey = makeKey(axis.model);\n const involveSeries = triggerTooltip || snap || axis.type === 'category';\n\n // If result.axesInfo[key] exist, override it (tooltip has higher priority).\n const axisInfo: AxisInfo = result.axesInfo[axisKey] = {\n key: axisKey,\n axis: axis,\n coordSys: coordSys,\n axisPointerModel: axisPointerModel,\n triggerTooltip: triggerTooltip,\n involveSeries: involveSeries,\n snap: snap,\n useHandle: isHandleTrigger(axisPointerModel),\n seriesModels: [],\n\n linkGroup: null\n };\n axesInfoInCoordSys[axisKey] = axisInfo;\n result.seriesInvolved = result.seriesInvolved || involveSeries;\n\n const groupIndex = getLinkGroupIndex(linksOption, axis);\n if (groupIndex != null) {\n const linkGroup: LinkGroup = linkGroups[groupIndex]\n || (linkGroups[groupIndex] = {axesInfo: {}} as LinkGroup);\n linkGroup.axesInfo[axisKey] = axisInfo;\n linkGroup.mapper = linksOption[groupIndex].mapper;\n axisInfo.linkGroup = linkGroup;\n }\n }\n });\n}\n\nfunction makeAxisPointerModel(\n axis: Axis,\n baseTooltipModel: Model,\n globalAxisPointerModel: AxisPointerModel,\n ecModel: GlobalModel,\n fromTooltip: boolean | 'cross',\n triggerTooltip: boolean\n) {\n const tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');\n const fields = [\n 'type', 'snap', 'lineStyle', 'shadowStyle', 'label',\n 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'\n ] as const;\n const volatileOption = {} as Pick;\n\n each(fields, function (field) {\n (volatileOption as any)[field] = clone(tooltipAxisPointerModel.get(field));\n });\n\n // category axis do not auto snap, otherwise some tick that do not\n // has value can not be hovered. value/time/log axis default snap if\n // triggered from tooltip and trigger tooltip.\n volatileOption.snap = axis.type !== 'category' && !!triggerTooltip;\n\n // Compatibel with previous behavior, tooltip axis do not show label by default.\n // Only these properties can be overrided from tooltip to axisPointer.\n if (tooltipAxisPointerModel.get('type') === 'cross') {\n volatileOption.type = 'line';\n }\n const labelOption = volatileOption.label || (volatileOption.label = {});\n // Follow the convention, do not show label when triggered by tooltip by default.\n labelOption.show == null && (labelOption.show = false);\n\n if (fromTooltip === 'cross') {\n // When 'cross', both axes show labels.\n const tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']);\n labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true;\n // If triggerTooltip, this is a base axis, which should better not use cross style\n // (cross style is dashed by default)\n if (!triggerTooltip) {\n const crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');\n crossStyle && defaults(labelOption, crossStyle.textStyle);\n }\n }\n\n return axis.model.getModel(\n 'axisPointer',\n new Model(volatileOption, globalAxisPointerModel, ecModel)\n );\n}\n\nfunction collectSeriesInfo(result: CollectionResult, ecModel: GlobalModel) {\n // Prepare data for axis trigger\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n\n // Notice this case: this coordSys is `cartesian2D` but not `grid`.\n const coordSys = seriesModel.coordinateSystem;\n const seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true);\n const seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true);\n if (!coordSys\n || seriesTooltipTrigger === 'none'\n || seriesTooltipTrigger === false\n || seriesTooltipTrigger === 'item'\n || seriesTooltipShow === false\n || seriesModel.get(['axisPointer', 'show'], true) === false\n ) {\n return;\n }\n\n each(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {\n const axis = axisInfo.axis;\n if (coordSys.getAxis(axis.dim) === axis) {\n axisInfo.seriesModels.push(seriesModel);\n axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);\n axisInfo.seriesDataCount += seriesModel.getData().count();\n }\n });\n\n });\n}\n\n/**\n * For example:\n * {\n * axisPointer: {\n * links: [{\n * xAxisIndex: [2, 4],\n * yAxisIndex: 'all'\n * }, {\n * xAxisId: ['a5', 'a7'],\n * xAxisName: 'xxx'\n * }]\n * }\n * }\n */\nfunction getLinkGroupIndex(linksOption: AxisPointerOption['link'], axis: Axis): number {\n const axisModel = axis.model;\n const dim = axis.dim;\n for (let i = 0; i < linksOption.length; i++) {\n const linkOption = linksOption[i] || {};\n if (checkPropInLink(linkOption[dim + 'AxisId' as 'xAxisId'], axisModel.id)\n || checkPropInLink(linkOption[dim + 'AxisIndex' as 'xAxisIndex'], axisModel.componentIndex)\n || checkPropInLink(linkOption[dim + 'AxisName' as 'xAxisName'], axisModel.name)\n ) {\n return i;\n }\n }\n}\n\nfunction checkPropInLink(linkPropValue: number[] | number | string | string[] | 'all', axisPropValue: number | string) {\n return linkPropValue === 'all'\n || (isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0)\n || linkPropValue === axisPropValue;\n}\n\nexport function fixValue(axisModel: AxisBaseModel) {\n const axisInfo = getAxisInfo(axisModel);\n if (!axisInfo) {\n return;\n }\n\n const axisPointerModel = axisInfo.axisPointerModel;\n const scale = axisInfo.axis.scale;\n const option = axisPointerModel.option;\n const status = axisPointerModel.get('status');\n let value = axisPointerModel.get('value');\n\n // Parse init value for category and time axis.\n if (value != null) {\n value = scale.parse(value);\n }\n\n const useHandle = isHandleTrigger(axisPointerModel);\n // If `handle` used, `axisPointer` will always be displayed, so value\n // and status should be initialized.\n if (status == null) {\n option.status = useHandle ? 'show' : 'hide';\n }\n\n const extent = scale.getExtent().slice();\n extent[0] > extent[1] && extent.reverse();\n\n if (// Pick a value on axis when initializing.\n value == null\n // If both `handle` and `dataZoom` are used, value may be out of axis extent,\n // where we should re-pick a value to keep `handle` displaying normally.\n || value > extent[1]\n ) {\n // Make handle displayed on the end of the axis when init, which looks better.\n value = extent[1];\n }\n if (value < extent[0]) {\n value = extent[0];\n }\n\n option.value = value;\n\n if (useHandle) {\n option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';\n }\n}\n\nexport function getAxisInfo(axisModel: AxisBaseModel) {\n const coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') as AxisPointerModel || {})\n .coordSysAxesInfo as CollectionResult;\n return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];\n}\n\nexport function getAxisPointerModel(axisModel: AxisBaseModel) {\n const axisInfo = getAxisInfo(axisModel);\n return axisInfo && axisInfo.axisPointerModel;\n}\n\nfunction isHandleTrigger(axisPointerModel: Model) {\n return !!axisPointerModel.get(['handle', 'show']);\n}\n\n/**\n * @param {module:echarts/model/Model} model\n * @return {string} unique key\n */\nexport function makeKey(model: ComponentModel) {\n return model.type + '||' + model.id;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as axisPointerModelHelper from '../axisPointer/modelHelper';\nimport ComponentView from '../../view/Component';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, Dictionary } from '../../util/types';\nimport type BaseAxisPointer from '../axisPointer/BaseAxisPointer';\n\nconst axisPointerClazz: Dictionary = {};\n\ninterface AxisPointerConstructor {\n new(): BaseAxisPointer\n}\n/**\n * Base class of AxisView.\n */\nclass AxisView extends ComponentView {\n\n static type = 'axis';\n type = AxisView.type;\n\n /**\n * @private\n */\n private _axisPointer: BaseAxisPointer;\n\n /**\n * @protected\n */\n axisPointerClass: string;\n\n /**\n * @override\n */\n render(axisModel: AxisBaseModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // FIXME\n // This process should proformed after coordinate systems updated\n // (axis scale updated), and should be performed each time update.\n // So put it here temporarily, although it is not appropriate to\n // put a model-writing procedure in `view`.\n this.axisPointerClass && axisPointerModelHelper.fixValue(axisModel);\n\n super.render.apply(this, arguments as any);\n\n this._doUpdateAxisPointerClass(axisModel, api, true);\n }\n\n /**\n * Action handler.\n */\n updateAxisPointer(\n axisModel: AxisBaseModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n this._doUpdateAxisPointerClass(axisModel, api, false);\n }\n\n /**\n * @override\n */\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n const axisPointer = this._axisPointer;\n axisPointer && axisPointer.remove(api);\n }\n\n /**\n * @override\n */\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this._disposeAxisPointer(api);\n super.dispose.apply(this, arguments as any);\n }\n\n private _doUpdateAxisPointerClass(axisModel: AxisBaseModel, api: ExtensionAPI, forceRender?: boolean) {\n const Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);\n if (!Clazz) {\n return;\n }\n const axisPointerModel = axisPointerModelHelper.getAxisPointerModel(axisModel);\n axisPointerModel\n ? (this._axisPointer || (this._axisPointer = new Clazz()))\n .render(axisModel, axisPointerModel, api, forceRender)\n : this._disposeAxisPointer(api);\n }\n\n private _disposeAxisPointer(api: ExtensionAPI) {\n this._axisPointer && this._axisPointer.dispose(api);\n this._axisPointer = null;\n }\n\n static registerAxisPointerClass(type: string, clazz: AxisPointerConstructor) {\n if (__DEV__) {\n if (axisPointerClazz[type]) {\n throw new Error('axisPointer ' + type + ' exists');\n }\n }\n axisPointerClazz[type] = clazz;\n };\n\n static getAxisPointerClass(type: string) {\n return type && axisPointerClazz[type];\n };\n\n}\n\nexport default AxisView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { makeInner } from '../../util/model';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport type SingleAxisView from './SingleAxisView';\nimport type CartesianAxisView from './CartesianAxisView';\nimport type SingleAxisModel from '../../coord/single/AxisModel';\nimport type CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport AxisView from './AxisView';\n\nconst inner = makeInner<{\n // Hash map of color index\n splitAreaColors: zrUtil.HashMap\n}, AxisView>();\n\nexport function rectCoordAxisBuildSplitArea(\n axisView: SingleAxisView | CartesianAxisView,\n axisGroup: graphic.Group,\n axisModel: SingleAxisModel | CartesianAxisModel,\n gridModel: GridModel | SingleAxisModel\n) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n // TODO: TYPE\n const splitAreaModel = (axisModel as CartesianAxisModel).getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n\n const gridRect = gridModel.coordinateSystem.getRect();\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitAreaModel,\n clamp: true\n });\n\n if (!ticksCoords.length) {\n return;\n }\n\n // For Making appropriate splitArea animation, the color and anid\n // should be corresponding to previous one if possible.\n const areaColorsLen = areaColors.length;\n const lastSplitAreaColors = inner(axisView).splitAreaColors;\n const newSplitAreaColors = zrUtil.createHashMap();\n let colorIndex = 0;\n if (lastSplitAreaColors) {\n for (let i = 0; i < ticksCoords.length; i++) {\n const cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue);\n if (cIndex != null) {\n colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen;\n break;\n }\n }\n }\n\n let prev = axis.toGlobalCoord(ticksCoords[0].coord);\n\n const areaStyle = areaStyleModel.getAreaStyle();\n areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors];\n\n for (let i = 1; i < ticksCoords.length; i++) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n let x;\n let y;\n let width;\n let height;\n if (axis.isHorizontal()) {\n x = prev;\n y = gridRect.y;\n width = tickCoord - x;\n height = gridRect.height;\n prev = x + width;\n }\n else {\n x = gridRect.x;\n y = prev;\n width = gridRect.width;\n height = tickCoord - y;\n prev = y + height;\n }\n\n const tickValue = ticksCoords[i - 1].tickValue;\n tickValue != null && newSplitAreaColors.set(tickValue, colorIndex);\n\n axisGroup.add(new graphic.Rect({\n anid: tickValue != null ? 'area_' + tickValue : null,\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n style: zrUtil.defaults({\n fill: areaColors[colorIndex]\n }, areaStyle),\n autoBatch: true,\n silent: true\n }));\n\n colorIndex = (colorIndex + 1) % areaColorsLen;\n }\n\n inner(axisView).splitAreaColors = newSplitAreaColors;\n}\n\nexport function rectCoordAxisHandleRemove(axisView: SingleAxisView | CartesianAxisView) {\n inner(axisView).splitAreaColors = null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder, {AxisBuilderCfg} from './AxisBuilder';\nimport AxisView from './AxisView';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport {rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove} from './axisSplitHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport { Payload } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\nconst selfBuilderAttrs = [\n 'splitArea', 'splitLine', 'minorSplitLine'\n] as const;\n\nclass CartesianAxisView extends AxisView {\n\n static type = 'cartesianAxis';\n type = CartesianAxisView.type;\n\n axisPointerClass = 'CartesianAxisPointer';\n\n private _axisGroup: graphic.Group;\n\n /**\n * @override\n */\n render(axisModel: CartesianAxisModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n this.group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n const gridModel = axisModel.getCoordSysModel();\n\n const layout = cartesianAxisHelper.layout(gridModel, axisModel);\n\n const axisBuilder = new AxisBuilder(axisModel, zrUtil.extend({\n handleAutoShown(elementType) {\n const cartesians = gridModel.coordinateSystem.getCartesians();\n for (let i = 0; i < cartesians.length; i++) {\n const otherAxisType = cartesians[i].getOtherAxis(axisModel.axis).type;\n if (otherAxisType === 'value' || otherAxisType === 'log') {\n // Still show axis tick or axisLine if other axis is value / log\n return true;\n }\n }\n // Not show axisTick or axisLine if other axis is category / time\n return false;\n }\n } as AxisBuilderCfg, layout));\n\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);\n }\n }, this);\n\n // THIS is a special case for bar racing chart.\n // Update the axis label from the natural initial layout to\n // sorted layout should has no animation.\n const isInitialSortFromBarRacing = payload && payload.type === 'changeAxisOrder' && payload.isInitSort;\n\n if (!isInitialSortFromBarRacing) {\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }\n\n super.render(axisModel, ecModel, api, payload);\n }\n\n remove() {\n rectCoordAxisHandleRemove(this);\n }\n}\n\ninterface AxisElementBuilder {\n (axisView: CartesianAxisView, axisGroup: graphic.Group, axisModel: CartesianAxisModel, gridModel: GridModel): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(axisView, axisGroup, axisModel, gridModel) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n const splitLineModel = axisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n\n lineColors = zrUtil.isArray(lineColors) ? lineColors : [lineColors];\n\n const gridRect = gridModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n let lineCount = 0;\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n\n const p1 = [];\n const p2 = [];\n\n const lineStyle = lineStyleModel.getLineStyle();\n for (let i = 0; i < ticksCoords.length; i++) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n const colorIndex = (lineCount++) % lineColors.length;\n const tickValue = ticksCoords[i].tickValue;\n axisGroup.add(new graphic.Line({\n anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: zrUtil.defaults({\n stroke: lineColors[colorIndex]\n }, lineStyle),\n silent: true\n }));\n }\n },\n\n minorSplitLine(axisView, axisGroup, axisModel, gridModel) {\n const axis = axisModel.axis;\n\n const minorSplitLineModel = axisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const gridRect = gridModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n const minorTicksCoords = axis.getMinorTicksCoords();\n if (!minorTicksCoords.length) {\n return;\n }\n const p1 = [];\n const p2 = [];\n\n const lineStyle = lineStyleModel.getLineStyle();\n\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n for (let k = 0; k < minorTicksCoords[i].length; k++) {\n const tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n axisGroup.add(new graphic.Line({\n anid: 'minor_line_' + minorTicksCoords[i][k].tickValue,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: lineStyle,\n silent: true\n }));\n }\n }\n },\n\n splitArea(axisView, axisGroup, axisModel, gridModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel);\n }\n};\n\nexport class CartesianXAxisView extends CartesianAxisView {\n static type = 'xAxis';\n type = CartesianXAxisView.type;\n}\nexport class CartesianYAxisView extends CartesianAxisView {\n static type = 'yAxis';\n type = CartesianXAxisView.type;\n}\n\nexport default CartesianAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport GlobalModel from '../../model/Global';\nimport { Rect } from '../../util/graphic';\nimport { defaults } from 'zrender/src/core/util';\nimport {CartesianAxisOption, CartesianAxisModel} from '../../coord/cartesian/AxisModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport Grid from '../../coord/cartesian/Grid';\nimport {CartesianXAxisView, CartesianYAxisView} from '../axis/CartesianAxisView';\n\n// Grid view\nclass GridView extends ComponentView {\n static readonly type = 'grid';\n readonly type = 'grid';\n\n render(gridModel: GridModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (gridModel.get('show')) {\n this.group.add(new Rect({\n shape: gridModel.coordinateSystem.getRect(),\n style: defaults({\n fill: gridModel.get('backgroundColor')\n }, gridModel.getItemStyle()),\n silent: true,\n z2: -1\n }));\n }\n }\n\n}\nconst extraOption: CartesianAxisOption = {\n // gridIndex: 0,\n // gridId: '',\n offset: 0\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentView(GridView);\n registers.registerComponentModel(GridModel);\n registers.registerCoordinateSystem('cartesian2d', Grid);\n\n axisModelCreator(\n registers, 'x', CartesianAxisModel, extraOption\n );\n axisModelCreator(\n registers, 'y', CartesianAxisModel, extraOption\n );\n\n registers.registerComponentView(CartesianXAxisView);\n registers.registerComponentView(CartesianYAxisView);\n\n registers.registerPreprocessor(function (option) {\n // Only create grid when need\n if (option.xAxis && option.yAxis && !option.grid) {\n option.grid = {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ScatterSeriesModel from './ScatterSeries';\nimport ScatterView from './ScatterView';\nimport {install as installGridSimple} from '../../component/grid/installSimple';\nimport layoutPoints from '../../layout/points';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n // In case developer forget to include grid component\n use(installGridSimple);\n\n registers.registerSeriesModel(ScatterSeriesModel);\n registers.registerChartView(ScatterView);\n registers.registerLayout(layoutPoints('scatter'));\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport RadarSeriesModel from './RadarSeries';\nimport Radar from '../../coord/radar/Radar';\n\ntype Point = number[];\nexport default function radarLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('radar', function (seriesModel: RadarSeriesModel) {\n const data = seriesModel.getData();\n const points: Point[][] = [];\n const coordSys = seriesModel.coordinateSystem;\n if (!coordSys) {\n return;\n }\n\n const axes = coordSys.getIndicatorAxes();\n\n zrUtil.each(axes, function (axis, axisIndex) {\n data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {\n points[dataIndex] = points[dataIndex] || [];\n const point = coordSys.dataToPoint(val, axisIndex);\n points[dataIndex][axisIndex] = isValidPoint(point)\n ? point : getValueMissingPoint(coordSys);\n });\n });\n\n // Close polygon\n data.each(function (idx) {\n // TODO\n // Is it appropriate to connect to the next data when some data is missing?\n // Or, should trade it like `connectNull` in line chart?\n const firstPoint = zrUtil.find(points[idx], function (point) {\n return isValidPoint(point);\n }) || getValueMissingPoint(coordSys);\n\n // Copy the first actual point to the end of the array\n points[idx].push(firstPoint.slice());\n data.setItemLayout(idx, points[idx]);\n });\n });\n}\n\nfunction isValidPoint(point: Point) {\n return !isNaN(point[0]) && !isNaN(point[1]);\n}\n\nfunction getValueMissingPoint(coordSys: Radar): Point {\n // It is error-prone to input [NaN, NaN] into polygon, polygon.\n // (probably cause problem when refreshing or animating)\n return [coordSys.cx, coordSys.cy];\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\n// Backward compat for radar chart in 2\nimport * as zrUtil from 'zrender/src/core/util';\n\nexport default function radarBackwardCompat(option) {\n let polarOptArr = option.polar;\n if (polarOptArr) {\n if (!zrUtil.isArray(polarOptArr)) {\n polarOptArr = [polarOptArr];\n }\n const polarNotRadar = [];\n zrUtil.each(polarOptArr, function (polarOpt, idx) {\n if (polarOpt.indicator) {\n if (polarOpt.type && !polarOpt.shape) {\n polarOpt.shape = polarOpt.type;\n }\n option.radar = option.radar || [];\n if (!zrUtil.isArray(option.radar)) {\n option.radar = [option.radar];\n }\n option.radar.push(polarOpt);\n }\n else {\n polarNotRadar.push(polarOpt);\n }\n });\n option.polar = polarNotRadar;\n }\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {\n seriesOpt.radarIndex = seriesOpt.polarIndex;\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as symbolUtil from '../../util/symbol';\nimport ChartView from '../../view/Chart';\nimport RadarSeriesModel, { RadarSeriesDataItemOption } from './RadarSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype RadarSymbol = ReturnType & {\n __dimIdx: number\n};\n\nclass RadarView extends ChartView {\n static type = 'radar';\n type = RadarView.type;\n\n private _data: SeriesData;\n\n render(seriesModel: RadarSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const polar = seriesModel.coordinateSystem;\n const group = this.group;\n\n const data = seriesModel.getData();\n const oldData = this._data;\n\n function createSymbol(data: SeriesData, idx: number) {\n const symbolType = data.getItemVisual(idx, 'symbol') as string || 'circle';\n if (symbolType === 'none') {\n return;\n }\n const symbolSize = symbolUtil.normalizeSymbolSize(\n data.getItemVisual(idx, 'symbolSize')\n );\n const symbolPath = symbolUtil.createSymbol(\n symbolType, -1, -1, 2, 2\n );\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;\n symbolPath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 100,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2,\n rotation: symbolRotate * Math.PI / 180 || 0\n });\n return symbolPath as RadarSymbol;\n }\n\n function updateSymbols(\n oldPoints: VectorArray[],\n newPoints: VectorArray[],\n symbolGroup: graphic.Group,\n data: SeriesData,\n idx: number,\n isInit?: boolean\n ) {\n // Simply rerender all\n symbolGroup.removeAll();\n for (let i = 0; i < newPoints.length - 1; i++) {\n const symbolPath = createSymbol(data, idx);\n if (symbolPath) {\n symbolPath.__dimIdx = i;\n if (oldPoints[i]) {\n symbolPath.setPosition(oldPoints[i]);\n graphic[isInit ? 'initProps' : 'updateProps'](\n symbolPath, {\n x: newPoints[i][0],\n y: newPoints[i][1]\n }, seriesModel, idx\n );\n }\n else {\n symbolPath.setPosition(newPoints[i]);\n }\n symbolGroup.add(symbolPath);\n }\n }\n }\n\n function getInitialPoints(points: number[][]) {\n return zrUtil.map(points, function (pt) {\n return [polar.cx, polar.cy];\n });\n }\n data.diff(oldData)\n .add(function (idx) {\n const points = data.getItemLayout(idx);\n if (!points) {\n return;\n }\n const polygon = new graphic.Polygon();\n const polyline = new graphic.Polyline();\n const target = {\n shape: {\n points: points\n }\n };\n\n polygon.shape.points = getInitialPoints(points);\n polyline.shape.points = getInitialPoints(points);\n graphic.initProps(polygon, target, seriesModel, idx);\n graphic.initProps(polyline, target, seriesModel, idx);\n\n const itemGroup = new graphic.Group();\n const symbolGroup = new graphic.Group();\n itemGroup.add(polyline);\n itemGroup.add(polygon);\n itemGroup.add(symbolGroup);\n\n updateSymbols(\n polyline.shape.points, points, symbolGroup, data, idx, true\n );\n\n data.setItemGraphicEl(idx, itemGroup);\n })\n .update(function (newIdx, oldIdx) {\n const itemGroup = oldData.getItemGraphicEl(oldIdx) as graphic.Group;\n\n const polyline = itemGroup.childAt(0) as graphic.Polyline;\n const polygon = itemGroup.childAt(1) as graphic.Polygon;\n const symbolGroup = itemGroup.childAt(2) as graphic.Group;\n const target = {\n shape: {\n points: data.getItemLayout(newIdx)\n }\n };\n\n if (!target.shape.points) {\n return;\n }\n updateSymbols(\n polyline.shape.points,\n target.shape.points,\n symbolGroup,\n data,\n newIdx,\n false\n );\n\n saveOldStyle(polygon);\n saveOldStyle(polyline);\n\n graphic.updateProps(polyline, target, seriesModel);\n graphic.updateProps(polygon, target, seriesModel);\n\n data.setItemGraphicEl(newIdx, itemGroup);\n })\n .remove(function (idx) {\n group.remove(oldData.getItemGraphicEl(idx));\n })\n .execute();\n\n data.eachItemGraphicEl(function (itemGroup: graphic.Group, idx) {\n const itemModel = data.getItemModel(idx);\n const polyline = itemGroup.childAt(0) as graphic.Polyline;\n const polygon = itemGroup.childAt(1) as graphic.Polygon;\n const symbolGroup = itemGroup.childAt(2) as graphic.Group;\n // Radar uses the visual encoded from itemStyle.\n const itemStyle = data.getItemVisual(idx, 'style');\n const color = itemStyle.fill;\n\n group.add(itemGroup);\n\n polyline.useStyle(\n zrUtil.defaults(\n itemModel.getModel('lineStyle').getLineStyle(),\n {\n fill: 'none',\n stroke: color\n }\n )\n );\n\n setStatesStylesFromModel(polyline, itemModel, 'lineStyle');\n setStatesStylesFromModel(polygon, itemModel, 'areaStyle');\n\n const areaStyleModel = itemModel.getModel('areaStyle');\n const polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();\n\n polygon.ignore = polygonIgnore;\n\n zrUtil.each(['emphasis', 'select', 'blur'] as const, function (stateName) {\n const stateModel = itemModel.getModel([stateName, 'areaStyle']);\n const stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty();\n // Won't be ignore if normal state is not ignore.\n polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore;\n });\n\n polygon.useStyle(\n zrUtil.defaults(\n areaStyleModel.getAreaStyle(),\n {\n fill: color,\n opacity: 0.7,\n decal: itemStyle.decal\n }\n )\n );\n const emphasisModel = itemModel.getModel('emphasis');\n const itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n symbolGroup.eachChild(function (symbolPath: RadarSymbol) {\n if (symbolPath instanceof ZRImage) {\n const pathStyle = symbolPath.style;\n symbolPath.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, itemStyle));\n }\n else {\n symbolPath.useStyle(itemStyle);\n symbolPath.setColor(color);\n symbolPath.style.strokeNoScale = true;\n }\n\n const pathEmphasisState = symbolPath.ensureState('emphasis');\n pathEmphasisState.style = zrUtil.clone(itemHoverStyle);\n let defaultText = data.getStorage().get(data.getDimensionIndex(symbolPath.__dimIdx), idx);\n (defaultText == null || isNaN(defaultText as number)) && (defaultText = '');\n\n setLabelStyle(\n symbolPath, getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n labelDimIndex: symbolPath.__dimIdx,\n defaultText: defaultText as string,\n inheritColor: color as ColorString,\n defaultOpacity: itemStyle.opacity\n }\n );\n });\n\n enableHoverEmphasis(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n });\n\n this._data = data;\n }\n\n remove() {\n this.group.removeAll();\n this._data = null;\n }\n}\n\nexport default RadarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n LineStyleOption,\n SeriesLabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n AreaStyleOption,\n OptionDataValue,\n StatesOptionMixin,\n OptionDataItemObject,\n SeriesEncodeOptionMixin,\n CallbackDataParams\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport Radar from '../../coord/radar/Radar';\nimport {\n createTooltipMarkup, retrieveVisualColorForTooltipMarker\n} from '../../component/tooltip/tooltipMarkup';\n\ntype RadarSeriesDataValue = OptionDataValue[];\n\nexport interface RadarSeriesStateOption {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n label?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n}\nexport interface RadarSeriesDataItemOption extends SymbolOptionMixin,\n RadarSeriesStateOption, StatesOptionMixin,\n OptionDataItemObject {\n}\n\nexport interface RadarSeriesOption extends SeriesOption, RadarSeriesStateOption,\n SymbolOptionMixin, SeriesEncodeOptionMixin {\n type?: 'radar'\n coordinateSystem?: 'radar'\n\n radarIndex?: number\n radarId?: string\n\n data?: (RadarSeriesDataItemOption | RadarSeriesDataValue)[]\n}\n\nclass RadarSeriesModel extends SeriesModel {\n\n static readonly type = 'series.radar';\n readonly type = RadarSeriesModel.type;\n\n static dependencies = ['radar'];\n\n coordinateSystem: Radar;\n\n hasSymbolVisual = true;\n\n // Overwrite\n init(option: RadarSeriesOption) {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n\n }\n\n getInitialData(option: RadarSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, {\n generateCoord: 'indicator_',\n generateCoordCount: Infinity\n });\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries?: boolean,\n dataType?: string\n ) {\n const data = this.getData();\n const coordSys = this.coordinateSystem;\n const indicatorAxes = coordSys.getIndicatorAxes();\n const name = this.getData().getName(dataIndex);\n const nameToDisplay = name === '' ? this.name : name;\n const markerColor = retrieveVisualColorForTooltipMarker(this, dataIndex);\n\n return createTooltipMarkup('section', {\n header: nameToDisplay,\n sortBlocks: true,\n blocks: zrUtil.map(indicatorAxes, axis => {\n const val = data.get(data.mapDimension(axis.dim), dataIndex);\n return createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: markerColor,\n name: axis.name,\n value: val,\n sortParam: val\n });\n })\n });\n }\n\n getTooltipPosition(dataIndex: number) {\n if (dataIndex != null) {\n const data = this.getData();\n const coordSys = this.coordinateSystem;\n const values = data.getValues(\n zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex\n );\n\n for (let i = 0, len = values.length; i < len; i++) {\n if (!isNaN(values[i] as number)) {\n const indicatorAxes = coordSys.getIndicatorAxes();\n return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i);\n }\n }\n }\n }\n\n static defaultOption: RadarSeriesOption = {\n zlevel: 0,\n z: 2,\n colorBy: 'data',\n coordinateSystem: 'radar',\n legendHoverLink: true,\n radarIndex: 0,\n lineStyle: {\n width: 2,\n type: 'solid',\n join: 'round'\n },\n label: {\n position: 'top'\n },\n // areaStyle: {\n // },\n // itemStyle: {}\n symbolSize: 8\n // symbolRotate: null\n };\n}\n\nexport default RadarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport axisDefault from '../axisDefault';\nimport Model from '../../model/Model';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n CircleLayoutOptionMixin,\n LabelOption,\n ColorString\n} from '../../util/types';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport Radar from './Radar';\nimport {CoordinateSystemHostModel} from '../../coord/CoordinateSystem';\n\nconst valueAxisDefault = axisDefault.value;\n\nfunction defaultsShow(opt: object, show: boolean) {\n return zrUtil.defaults({\n show: show\n }, opt);\n}\n\nexport interface RadarIndicatorOption {\n text?: string\n min?: number\n max?: number\n color?: ColorString\n\n axisType?: 'value' | 'log'\n}\n\nexport interface RadarOption extends ComponentOption, CircleLayoutOptionMixin {\n mainType?: 'radar'\n\n startAngle?: number\n\n shape?: 'polygon' | 'circle'\n\n // TODO. axisType seems to have issue.\n // axisType?: 'value' | 'log'\n\n axisLine?: AxisBaseOption['axisLine']\n axisTick?: AxisBaseOption['axisTick']\n axisLabel?: AxisBaseOption['axisLabel']\n splitLine?: AxisBaseOption['splitLine']\n splitArea?: AxisBaseOption['splitArea']\n\n // TODO Use axisName?\n axisName?: {\n show?: boolean\n formatter?: string | ((name?: string, indicatorOpt?: InnerIndicatorAxisOption) => string)\n } & LabelOption\n axisNameGap?: number\n\n triggerEvent?: boolean\n\n scale?: boolean\n splitNumber?: number\n\n boundaryGap?: AxisBaseOption['boundaryGap']\n\n indicator?: RadarIndicatorOption[]\n}\n\nexport interface InnerIndicatorAxisOption extends AxisBaseOption {\n // TODO Use type?\n // axisType?: 'value' | 'log'\n}\n\nclass RadarModel extends ComponentModel implements CoordinateSystemHostModel {\n static readonly type = 'radar';\n readonly type = RadarModel.type;\n\n coordinateSystem: Radar;\n\n private _indicatorModels: AxisBaseModel[];\n\n optionUpdated() {\n const boundaryGap = this.get('boundaryGap');\n const splitNumber = this.get('splitNumber');\n const scale = this.get('scale');\n const axisLine = this.get('axisLine');\n const axisTick = this.get('axisTick');\n // let axisType = this.get('axisType');\n const axisLabel = this.get('axisLabel');\n const nameTextStyle = this.get('axisName');\n const showName = this.get(['axisName', 'show']);\n const nameFormatter = this.get(['axisName', 'formatter']);\n const nameGap = this.get('axisNameGap');\n const triggerEvent = this.get('triggerEvent');\n\n const indicatorModels = zrUtil.map(this.get('indicator') || [], function (indicatorOpt) {\n // PENDING\n if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {\n indicatorOpt.min = 0;\n }\n else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {\n indicatorOpt.max = 0;\n }\n let iNameTextStyle = nameTextStyle;\n if (indicatorOpt.color != null) {\n iNameTextStyle = zrUtil.defaults({\n color: indicatorOpt.color\n }, nameTextStyle);\n }\n // Use same configuration\n const innerIndicatorOpt: InnerIndicatorAxisOption = zrUtil.merge(zrUtil.clone(indicatorOpt), {\n boundaryGap: boundaryGap,\n splitNumber: splitNumber,\n scale: scale,\n axisLine: axisLine,\n axisTick: axisTick,\n // axisType: axisType,\n axisLabel: axisLabel,\n // Compatible with 2 and use text\n name: indicatorOpt.text,\n nameLocation: 'end',\n nameGap: nameGap,\n // min: 0,\n nameTextStyle: iNameTextStyle,\n triggerEvent: triggerEvent\n } as InnerIndicatorAxisOption, false);\n if (!showName) {\n innerIndicatorOpt.name = '';\n }\n if (typeof nameFormatter === 'string') {\n const indName = innerIndicatorOpt.name;\n innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');\n }\n else if (typeof nameFormatter === 'function') {\n innerIndicatorOpt.name = nameFormatter(\n innerIndicatorOpt.name, innerIndicatorOpt\n );\n }\n\n const model = new Model(innerIndicatorOpt, null, this.ecModel) as AxisBaseModel;\n zrUtil.mixin(model, AxisModelCommonMixin.prototype);\n // For triggerEvent.\n model.mainType = 'radar';\n model.componentIndex = this.componentIndex;\n\n return model;\n }, this);\n\n this._indicatorModels = indicatorModels;\n }\n\n getIndicatorModels() {\n return this._indicatorModels;\n }\n\n static defaultOption: RadarOption = {\n\n zlevel: 0,\n\n z: 0,\n\n center: ['50%', '50%'],\n\n radius: '75%',\n\n startAngle: 90,\n\n axisName: {\n show: true\n // formatter: null\n // textStyle: {}\n },\n\n boundaryGap: [0, 0],\n\n splitNumber: 5,\n\n axisNameGap: 15,\n\n scale: false,\n\n // Polygon or circle\n shape: 'polygon',\n\n axisLine: zrUtil.merge(\n {\n lineStyle: {\n color: '#bbb'\n }\n },\n valueAxisDefault.axisLine\n ),\n axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),\n axisTick: defaultsShow(valueAxisDefault.axisTick, false),\n // axisType: 'value',\n splitLine: defaultsShow(valueAxisDefault.splitLine, true),\n splitArea: defaultsShow(valueAxisDefault.splitArea, true),\n\n // {text, min, max}\n indicator: []\n };\n}\n\nexport default RadarModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport RadarModel from '../../coord/radar/RadarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRColor } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\n\nclass RadarView extends ComponentView {\n\n static type = 'radar';\n type = RadarView.type;\n\n render(radarModel: RadarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const group = this.group;\n group.removeAll();\n\n this._buildAxes(radarModel);\n this._buildSplitLineAndArea(radarModel);\n }\n\n _buildAxes(radarModel: RadarModel) {\n const radar = radarModel.coordinateSystem;\n const indicatorAxes = radar.getIndicatorAxes();\n const axisBuilders = zrUtil.map(indicatorAxes, function (indicatorAxis) {\n const axisBuilder = new AxisBuilder(indicatorAxis.model, {\n position: [radar.cx, radar.cy],\n rotation: indicatorAxis.angle,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1\n });\n return axisBuilder;\n });\n\n zrUtil.each(axisBuilders, function (axisBuilder) {\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n this.group.add(axisBuilder.getGroup());\n }, this);\n }\n\n _buildSplitLineAndArea(radarModel: RadarModel) {\n const radar = radarModel.coordinateSystem;\n const indicatorAxes = radar.getIndicatorAxes();\n if (!indicatorAxes.length) {\n return;\n }\n const shape = radarModel.get('shape');\n const splitLineModel = radarModel.getModel('splitLine');\n const splitAreaModel = radarModel.getModel('splitArea');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n\n const showSplitLine = splitLineModel.get('show');\n const showSplitArea = splitAreaModel.get('show');\n const splitLineColors = lineStyleModel.get('color');\n const splitAreaColors = areaStyleModel.get('color');\n\n const splitLineColorsArr = zrUtil.isArray(splitLineColors) ? splitLineColors : [splitLineColors];\n const splitAreaColorsArr = zrUtil.isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];\n\n const splitLines: (graphic.Circle | graphic.Polyline)[][] = [];\n const splitAreas: (graphic.Ring | graphic.Polygon)[][] = [];\n\n function getColorIndex(\n areaOrLine: any[][],\n areaOrLineColorList: ZRColor[],\n idx: number\n ) {\n const colorIndex = idx % areaOrLineColorList.length;\n areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];\n return colorIndex;\n }\n\n if (shape === 'circle') {\n const ticksRadius = indicatorAxes[0].getTicksCoords();\n const cx = radar.cx;\n const cy = radar.cy;\n for (let i = 0; i < ticksRadius.length; i++) {\n if (showSplitLine) {\n const colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: cx,\n cy: cy,\n r: ticksRadius[i].coord\n }\n }));\n }\n if (showSplitArea && i < ticksRadius.length - 1) {\n const colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);\n splitAreas[colorIndex].push(new graphic.Ring({\n shape: {\n cx: cx,\n cy: cy,\n r0: ticksRadius[i].coord,\n r: ticksRadius[i + 1].coord\n }\n }));\n }\n }\n }\n // Polyyon\n else {\n let realSplitNumber: number;\n const axesTicksPoints = zrUtil.map(indicatorAxes, function (indicatorAxis, idx) {\n const ticksCoords = indicatorAxis.getTicksCoords();\n realSplitNumber = realSplitNumber == null\n ? ticksCoords.length - 1\n : Math.min(ticksCoords.length - 1, realSplitNumber);\n return zrUtil.map(ticksCoords, function (tickCoord) {\n return radar.coordToPoint(tickCoord.coord, idx);\n });\n });\n\n let prevPoints: number[][] = [];\n for (let i = 0; i <= realSplitNumber; i++) {\n const points: number[][] = [];\n for (let j = 0; j < indicatorAxes.length; j++) {\n points.push(axesTicksPoints[j][i]);\n }\n // Close\n if (points[0]) {\n points.push(points[0].slice());\n }\n else {\n if (__DEV__) {\n console.error('Can\\'t draw value axis ' + i);\n }\n }\n\n if (showSplitLine) {\n const colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Polyline({\n shape: {\n points: points\n }\n }));\n }\n if (showSplitArea && prevPoints) {\n const colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1);\n splitAreas[colorIndex].push(new graphic.Polygon({\n shape: {\n points: points.concat(prevPoints)\n }\n }));\n }\n prevPoints = points.slice().reverse();\n }\n }\n\n const lineStyle = lineStyleModel.getLineStyle();\n const areaStyle = areaStyleModel.getAreaStyle();\n // Add splitArea before splitLine\n zrUtil.each(splitAreas, function (splitAreas, idx) {\n this.group.add(graphic.mergePath(\n splitAreas, {\n style: zrUtil.defaults({\n stroke: 'none',\n fill: splitAreaColorsArr[idx % splitAreaColorsArr.length]\n }, areaStyle),\n silent: true\n }\n ));\n }, this);\n\n zrUtil.each(splitLines, function (splitLines, idx) {\n this.group.add(graphic.mergePath(\n splitLines, {\n style: zrUtil.defaults({\n fill: 'none',\n stroke: splitLineColorsArr[idx % splitLineColorsArr.length]\n }, lineStyle),\n silent: true\n }\n ));\n }, this);\n\n }\n}\n\nexport default RadarView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { InnerIndicatorAxisOption } from './RadarModel';\n\nclass IndicatorAxis extends Axis {\n\n type: OptionAxisType = 'value';\n\n angle = 0;\n\n name = '';\n\n model: AxisBaseModel;\n\n constructor(dim: string, scale: Scale, radiusExtent?: [number, number]) {\n super(dim, scale, radiusExtent);\n }\n}\n\nexport default IndicatorAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO clockwise\n\nimport IndicatorAxis from './IndicatorAxis';\nimport IntervalScale from '../../scale/Interval';\nimport * as numberUtil from '../../util/number';\nimport {\n getScaleExtent,\n niceScaleExtent\n} from '../axisHelper';\nimport { CoordinateSystemMaster, CoordinateSystem } from '../CoordinateSystem';\nimport RadarModel from './RadarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ScaleDataValue } from '../../util/types';\nimport { ParsedModelFinder } from '../../util/model';\nimport { parseAxisModelMinMax } from '../scaleRawExtentInfo';\nimport { map, each } from 'zrender/src/core/util';\n\n\nclass Radar implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly type: 'radar';\n /**\n *\n * Radar dimensions\n */\n readonly dimensions: string[] = [];\n\n cx: number;\n\n cy: number;\n\n r: number;\n\n r0: number;\n\n startAngle: number;\n\n private _model: RadarModel;\n\n private _indicatorAxes: IndicatorAxis[];\n\n constructor(radarModel: RadarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._model = radarModel;\n\n this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {\n const dim = 'indicator_' + idx;\n const indicatorAxis = new IndicatorAxis(dim,\n new IntervalScale()\n // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()\n );\n indicatorAxis.name = indicatorModel.get('name');\n // Inject model and axis\n indicatorAxis.model = indicatorModel;\n indicatorModel.axis = indicatorAxis;\n this.dimensions.push(dim);\n return indicatorAxis;\n }, this);\n\n this.resize(radarModel, api);\n }\n\n getIndicatorAxes() {\n return this._indicatorAxes;\n }\n\n dataToPoint(value: ScaleDataValue, indicatorIndex: number) {\n const indicatorAxis = this._indicatorAxes[indicatorIndex];\n\n return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);\n }\n\n // TODO: API should be coordToPoint([coord, indicatorIndex])\n coordToPoint(coord: number, indicatorIndex: number) {\n const indicatorAxis = this._indicatorAxes[indicatorIndex];\n const angle = indicatorAxis.angle;\n const x = this.cx + coord * Math.cos(angle);\n const y = this.cy - coord * Math.sin(angle);\n return [x, y];\n }\n\n pointToData(pt: number[]) {\n let dx = pt[0] - this.cx;\n let dy = pt[1] - this.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n\n const radian = Math.atan2(-dy, dx);\n\n // Find the closest angle\n // FIXME index can calculated directly\n let minRadianDiff = Infinity;\n let closestAxis;\n let closestAxisIdx = -1;\n for (let i = 0; i < this._indicatorAxes.length; i++) {\n const indicatorAxis = this._indicatorAxes[i];\n const diff = Math.abs(radian - indicatorAxis.angle);\n if (diff < minRadianDiff) {\n closestAxis = indicatorAxis;\n closestAxisIdx = i;\n minRadianDiff = diff;\n }\n }\n\n return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))];\n }\n\n resize(radarModel: RadarModel, api: ExtensionAPI) {\n const center = radarModel.get('center');\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n const viewSize = Math.min(viewWidth, viewHeight) / 2;\n this.cx = numberUtil.parsePercent(center[0], viewWidth);\n this.cy = numberUtil.parsePercent(center[1], viewHeight);\n\n this.startAngle = radarModel.get('startAngle') * Math.PI / 180;\n\n // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`\n let radius = radarModel.get('radius');\n if (typeof radius === 'string' || typeof radius === 'number') {\n radius = [0, radius];\n }\n this.r0 = numberUtil.parsePercent(radius[0], viewSize);\n this.r = numberUtil.parsePercent(radius[1], viewSize);\n\n each(this._indicatorAxes, function (indicatorAxis, idx) {\n indicatorAxis.setExtent(this.r0, this.r);\n let angle = (this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length);\n // Normalize to [-PI, PI]\n angle = Math.atan2(Math.sin(angle), Math.cos(angle));\n indicatorAxis.angle = angle;\n }, this);\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n const indicatorAxes = this._indicatorAxes;\n const radarModel = this._model;\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.setExtent(Infinity, -Infinity);\n });\n ecModel.eachSeriesByType('radar', function (radarSeries, idx) {\n if (radarSeries.get('coordinateSystem') !== 'radar'\n // @ts-ignore\n || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel\n ) {\n return;\n }\n const data = radarSeries.getData();\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim));\n });\n }, this);\n\n const splitNumber = radarModel.get('splitNumber');\n\n function increaseInterval(interval: number) {\n const exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10));\n // Increase interval\n let f = interval / exp10;\n if (f === 2) {\n f = 5;\n }\n else { // f is 2 or 5\n f *= 2;\n }\n return f * exp10;\n }\n // Force all the axis fixing the maxSplitNumber.\n each(indicatorAxes, function (indicatorAxis, idx) {\n const rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model).extent;\n niceScaleExtent(indicatorAxis.scale, indicatorAxis.model);\n\n const axisModel = indicatorAxis.model;\n const scale = indicatorAxis.scale as IntervalScale;\n const fixedMin = parseAxisModelMinMax(scale, axisModel.get('min', true) as ScaleDataValue);\n const fixedMax = parseAxisModelMinMax(scale, axisModel.get('max', true) as ScaleDataValue);\n let interval = scale.getInterval();\n\n if (fixedMin != null && fixedMax != null) {\n // User set min, max, divide to get new interval\n scale.setExtent(+fixedMin, +fixedMax);\n scale.setInterval(\n (fixedMax - fixedMin) / splitNumber\n );\n }\n else if (fixedMin != null) {\n let max;\n // User set min, expand extent on the other side\n do {\n max = fixedMin + interval * splitNumber;\n scale.setExtent(+fixedMin, max);\n // Interval must been set after extent\n // FIXME\n scale.setInterval(interval);\n\n interval = increaseInterval(interval);\n } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));\n }\n else if (fixedMax != null) {\n let min;\n // User set min, expand extent on the other side\n do {\n min = fixedMax - interval * splitNumber;\n scale.setExtent(min, +fixedMax);\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));\n }\n else {\n const nicedSplitNumber = scale.getTicks().length - 1;\n if (nicedSplitNumber > splitNumber) {\n interval = increaseInterval(interval);\n }\n // TODO\n const max = Math.ceil(rawExtent[1] / interval) * interval;\n const min = numberUtil.round(max - interval * splitNumber);\n scale.setExtent(min, max);\n scale.setInterval(interval);\n }\n });\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]): never {\n console.warn('Not implemented.');\n return null as never;\n }\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): never {\n console.warn('Not implemented.');\n return null as never;\n }\n containPoint(point: number[]): boolean {\n console.warn('Not implemented.');\n return false;\n }\n /**\n * Radar dimensions is based on the data\n */\n static dimensions: string[] = [];\n\n static create(ecModel: GlobalModel, api: ExtensionAPI) {\n const radarList: Radar[] = [];\n ecModel.eachComponent('radar', function (radarModel: RadarModel) {\n const radar = new Radar(radarModel, ecModel, api);\n radarList.push(radar);\n radarModel.coordinateSystem = radar;\n });\n ecModel.eachSeriesByType('radar', function (radarSeries) {\n if (radarSeries.get('coordinateSystem') === 'radar') {\n // Inject coordinate system\n // @ts-ignore\n radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];\n }\n });\n return radarList;\n }\n}\n\n\nexport default Radar;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport RadarModel from '../../coord/radar/RadarModel';\nimport RadarView from './RadarView';\nimport Radar from '../../coord/radar/Radar';\nimport RadarSeriesModel from '../../chart/radar/RadarSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerCoordinateSystem('radar', Radar);\n registers.registerComponentModel(RadarModel);\n registers.registerComponentView(RadarView);\n\n registers.registerVisual({\n seriesType: 'radar',\n reset: function (seriesModel: RadarSeriesModel) {\n const data = seriesModel.getData();\n // itemVisual symbol is for selected data\n data.each(function (idx) {\n data.setItemVisual(idx, 'legendIcon', 'roundRect');\n });\n // visual is for unselected data\n data.setVisual('legendIcon', 'roundRect');\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport radarLayout from '../radar/radarLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport backwardCompat from '../radar/backwardCompat';\nimport RadarView from './RadarView';\nimport RadarSeriesModel from './RadarSeries';\nimport { install as installRadarComponent } from '../../component/radar/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installRadarComponent);\n\n registers.registerChartView(RadarView);\n registers.registerSeriesModel(RadarSeriesModel);\n\n registers.registerLayout(radarLayout);\n registers.registerProcessor(dataFilter('radar'));\n registers.registerPreprocessor(backwardCompat);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as echarts from '../../core/echarts';\n\nconst ATTR = '\\0_ec_interaction_mutex';\n\nexport function take(zr, resourceKey, userKey) {\n const store = getStore(zr);\n store[resourceKey] = userKey;\n}\n\nexport function release(zr, resourceKey, userKey) {\n const store = getStore(zr);\n const uKey = store[resourceKey];\n\n if (uKey === userKey) {\n store[resourceKey] = null;\n }\n}\n\nexport function isTaken(zr, resourceKey) {\n return !!getStore(zr)[resourceKey];\n}\n\nfunction getStore(zr) {\n return zr[ATTR] || (zr[ATTR] = {});\n}\n\n/**\n * payload: {\n * type: 'takeGlobalCursor',\n * key: 'dataZoomSelect', or 'brush', or ...,\n * If no userKey, release global cursor.\n * }\n */\n// TODO: SELF REGISTERED.\necharts.registerAction(\n {type: 'takeGlobalCursor', event: 'globalCursorTaken', update: 'update'},\n function () {}\n);\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Eventful from 'zrender/src/core/Eventful';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as interactionMutex from './interactionMutex';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ZRElementEvent, RoamOptionMixin } from '../../util/types';\nimport { Bind3, isString, bind, defaults, clone } from 'zrender/src/core/util';\nimport Group from 'zrender/src/graphic/Group';\n\n// Can be null/undefined or true/false\n// or 'pan/move' or 'zoom'/'scale'\nexport type RoamType = RoamOptionMixin['roam'];\n\ninterface RoamOption {\n zoomOnMouseWheel?: boolean | 'ctrl' | 'shift' | 'alt'\n moveOnMouseMove?: boolean | 'ctrl' | 'shift' | 'alt'\n moveOnMouseWheel?: boolean | 'ctrl' | 'shift' | 'alt'\n /**\n * If fixed the page when pan\n */\n preventDefaultMouseMove?: boolean\n}\n\ntype RoamEventType = keyof RoamEventParams;\n\ntype RoamBehavior = 'zoomOnMouseWheel' | 'moveOnMouseMove' | 'moveOnMouseWheel';\n\nexport interface RoamEventParams {\n 'zoom': {\n scale: number\n originX: number\n originY: number\n\n isAvailableBehavior: Bind3\n }\n 'scrollMove': {\n scrollDelta: number\n originX: number\n originY: number\n\n isAvailableBehavior: Bind3\n }\n 'pan': {\n dx: number\n dy: number\n oldX: number\n oldY: number\n newX: number\n newY: number\n\n isAvailableBehavior: Bind3\n }\n};\n\nexport interface RoamControllerHost {\n target: Group\n zoom: number\n zoomLimit: {\n min?: number\n max?: number\n }\n}\n\nclass RoamController extends Eventful<{\n [key in keyof RoamEventParams]: (params: RoamEventParams[key]) => void | undefined\n}> {\n\n pointerChecker: (e: ZRElementEvent, x: number, y: number) => boolean;\n\n private _zr: ZRenderType;\n\n private _opt: Required;\n\n private _dragging: boolean;\n\n private _pinching: boolean;\n\n private _x: number;\n\n private _y: number;\n\n readonly enable: (this: this, controlType?: RoamType, opt?: RoamOption) => void;\n\n readonly disable: () => void;\n\n\n constructor(zr: ZRenderType) {\n super();\n\n this._zr = zr;\n\n // Avoid two roamController bind the same handler\n const mousedownHandler = bind(this._mousedownHandler, this);\n const mousemoveHandler = bind(this._mousemoveHandler, this);\n const mouseupHandler = bind(this._mouseupHandler, this);\n const mousewheelHandler = bind(this._mousewheelHandler, this);\n const pinchHandler = bind(this._pinchHandler, this);\n\n /**\n * Notice: only enable needed types. For example, if 'zoom'\n * is not needed, 'zoom' should not be enabled, otherwise\n * default mousewheel behaviour (scroll page) will be disabled.\n */\n this.enable = function (controlType, opt) {\n\n // Disable previous first\n this.disable();\n\n this._opt = defaults(clone(opt) || {}, {\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n // By default, wheel do not trigger move.\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n\n if (controlType == null) {\n controlType = true;\n }\n\n if (controlType === true || (controlType === 'move' || controlType === 'pan')) {\n zr.on('mousedown', mousedownHandler);\n zr.on('mousemove', mousemoveHandler);\n zr.on('mouseup', mouseupHandler);\n }\n if (controlType === true || (controlType === 'scale' || controlType === 'zoom')) {\n zr.on('mousewheel', mousewheelHandler);\n zr.on('pinch', pinchHandler);\n }\n };\n\n this.disable = function () {\n zr.off('mousedown', mousedownHandler);\n zr.off('mousemove', mousemoveHandler);\n zr.off('mouseup', mouseupHandler);\n zr.off('mousewheel', mousewheelHandler);\n zr.off('pinch', pinchHandler);\n };\n }\n\n isDragging() {\n return this._dragging;\n }\n\n isPinching() {\n return this._pinching;\n }\n\n setPointerChecker(pointerChecker: RoamController['pointerChecker']) {\n this.pointerChecker = pointerChecker;\n }\n\n dispose() {\n this.disable();\n }\n\n private _mousedownHandler(e: ZRElementEvent) {\n if (eventTool.isMiddleOrRightButtonOnMouseUpDown(e)\n || (e.target && e.target.draggable)\n ) {\n return;\n }\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n // Only check on mosedown, but not mousemove.\n // Mouse can be out of target when mouse moving.\n if (this.pointerChecker && this.pointerChecker(e, x, y)) {\n this._x = x;\n this._y = y;\n this._dragging = true;\n }\n }\n\n private _mousemoveHandler(e: ZRElementEvent) {\n if (!this._dragging\n || !isAvailableBehavior('moveOnMouseMove', e, this._opt)\n || e.gestureEvent === 'pinch'\n || interactionMutex.isTaken(this._zr, 'globalPan')\n ) {\n return;\n }\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const oldX = this._x;\n const oldY = this._y;\n\n const dx = x - oldX;\n const dy = y - oldY;\n\n this._x = x;\n this._y = y;\n\n this._opt.preventDefaultMouseMove && eventTool.stop(e.event);\n\n trigger(this, 'pan', 'moveOnMouseMove', e, {\n dx: dx, dy: dy, oldX: oldX, oldY: oldY, newX: x, newY: y, isAvailableBehavior: null\n });\n }\n\n private _mouseupHandler(e: ZRElementEvent) {\n if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {\n this._dragging = false;\n }\n }\n\n private _mousewheelHandler(e: ZRElementEvent) {\n const shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt);\n const shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt);\n const wheelDelta = e.wheelDelta;\n const absWheelDeltaDelta = Math.abs(wheelDelta);\n const originX = e.offsetX;\n const originY = e.offsetY;\n\n // wheelDelta maybe -0 in chrome mac.\n if (wheelDelta === 0 || (!shouldZoom && !shouldMove)) {\n return;\n }\n\n // If both `shouldZoom` and `shouldMove` is true, trigger\n // their event both, and the final behavior is determined\n // by event listener themselves.\n\n if (shouldZoom) {\n // Convenience:\n // Mac and VM Windows on Mac: scroll up: zoom out.\n // Windows: scroll up: zoom in.\n\n // FIXME: Should do more test in different environment.\n // wheelDelta is too complicated in difference nvironment\n // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),\n // although it has been normallized by zrender.\n // wheelDelta of mouse wheel is bigger than touch pad.\n const factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1;\n const scale = wheelDelta > 0 ? factor : 1 / factor;\n checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, {\n scale: scale, originX: originX, originY: originY, isAvailableBehavior: null\n });\n }\n\n if (shouldMove) {\n // FIXME: Should do more test in different environment.\n const absDelta = Math.abs(wheelDelta);\n // wheelDelta of mouse wheel is bigger than touch pad.\n const scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05);\n checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, {\n scrollDelta: scrollDelta, originX: originX, originY: originY, isAvailableBehavior: null\n });\n }\n }\n\n private _pinchHandler(e: ZRElementEvent) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n const scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1;\n checkPointerAndTrigger(this, 'zoom', null, e, {\n scale: scale, originX: e.pinchX, originY: e.pinchY, isAvailableBehavior: null\n });\n }\n}\n\n\nfunction checkPointerAndTrigger(\n controller: RoamController,\n eventName: T,\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n contollerEvent: RoamEventParams[T]\n) {\n if (controller.pointerChecker\n && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)\n ) {\n // When mouse is out of roamController rect,\n // default befavoius should not be be disabled, otherwise\n // page sliding is disabled, contrary to expectation.\n eventTool.stop(e.event);\n\n trigger(controller, eventName, behaviorToCheck, e, contollerEvent);\n }\n}\n\nfunction trigger(\n controller: RoamController,\n eventName: T,\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n contollerEvent: RoamEventParams[T]\n) {\n // Also provide behavior checker for event listener, for some case that\n // multiple components share one listener.\n contollerEvent.isAvailableBehavior = bind(isAvailableBehavior, null, behaviorToCheck, e);\n // TODO should not have type issue.\n (controller as any).trigger(eventName, contollerEvent);\n}\n\n// settings: {\n// zoomOnMouseWheel\n// moveOnMouseMove\n// moveOnMouseWheel\n// }\n// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.\nfunction isAvailableBehavior(\n behaviorToCheck: RoamBehavior,\n e: ZRElementEvent,\n settings: Pick\n) {\n const setting = settings[behaviorToCheck];\n return !behaviorToCheck || (\n setting && (!isString(setting) || e.event[setting + 'Key' as 'shiftKey' | 'ctrlKey' | 'altKey'])\n );\n}\n\nexport default RoamController;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Element from 'zrender/src/Element';\n\ninterface ControllerHost {\n target: Element,\n zoom?: number\n zoomLimit?: {min?: number, max?: number}\n}\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnPan(controllerHost: ControllerHost, dx: number, dy: number) {\n const target = controllerHost.target;\n target.x += dx;\n target.y += dy;\n target.dirty();\n}\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnZoom(controllerHost: ControllerHost, zoomDelta: number, zoomX: number, zoomY: number) {\n const target = controllerHost.target;\n const zoomLimit = controllerHost.zoomLimit;\n\n let newZoom = controllerHost.zoom = controllerHost.zoom || 1;\n newZoom *= zoomDelta;\n if (zoomLimit) {\n const zoomMin = zoomLimit.min || 0;\n const zoomMax = zoomLimit.max || Infinity;\n newZoom = Math.max(\n Math.min(zoomMax, newZoom),\n zoomMin\n );\n }\n const zoomScale = newZoom / controllerHost.zoom;\n controllerHost.zoom = newZoom;\n // Keep the mouse center when scaling\n target.x -= (zoomX - target.x) * (zoomScale - 1);\n target.y -= (zoomY - target.y) * (zoomScale - 1);\n target.scaleX *= zoomScale;\n target.scaleY *= zoomScale;\n\n target.dirty();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { ElementEvent } from 'zrender/src/Element';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesModel from '../../model/Series';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\n\nconst IRRELEVANT_EXCLUDES = {'axisPointer': 1, 'tooltip': 1, 'brush': 1};\n\n/**\n * Avoid that: mouse click on a elements that is over geo or graph,\n * but roam is triggered.\n */\nexport function onIrrelevantElement(\n e: ElementEvent, api: ExtensionAPI, targetCoordSysModel: CoordinateSystem['model']\n): boolean {\n const model = api.getComponentByElement(e.topTarget);\n // If model is axisModel, it works only if it is injected with coordinateSystem.\n const coordSys = model && (model as SeriesModel).coordinateSystem;\n return model\n && model !== targetCoordSysModel\n && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType)\n && (coordSys && coordSys.model !== targetCoordSysModel);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport RoamController from './RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport {\n enableHoverEmphasis,\n enableComponentHighDownFeatures,\n setDefaultStateProxy\n} from '../../util/states';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport {getUID} from '../../util/component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption, RegoinOption } from '../../coord/geo/GeoModel';\nimport MapSeries, { MapDataItemOption } from '../../chart/map/MapSeries';\nimport GlobalModel from '../../model/Global';\nimport { Payload, ECElement, LineStyleOption, InnerFocus, DisplayState } from '../../util/types';\nimport GeoView from '../geo/GeoView';\nimport MapView from '../../chart/map/MapView';\nimport Geo from '../../coord/geo/Geo';\nimport Model from '../../model/Model';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport ZRText, {TextStyleProps} from 'zrender/src/graphic/Text';\nimport { ViewCoordSysTransformInfoPart } from '../../coord/View';\nimport { GeoSVGGraphicRecord, GeoSVGResource } from '../../coord/geo/GeoSVGResource';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport SeriesData from '../../data/SeriesData';\nimport { GeoJSONRegion } from '../../coord/geo/Region';\nimport { SVGNodeTagLower } from 'zrender/src/tool/parseSVG';\nimport { makeInner } from '../../util/model';\n\ninterface RegionsGroup extends graphic.Group {\n}\n\ntype RegionModel = ReturnType | ReturnType;\n\ntype MapOrGeoModel = GeoModel | MapSeries;\n\ninterface ViewBuildContext {\n api: ExtensionAPI;\n geo: Geo;\n mapOrGeoModel: GeoModel | MapSeries;\n data: SeriesData;\n isVisualEncodedByVisualMap: boolean;\n isGeo: boolean;\n transformInfoRaw: ViewCoordSysTransformInfoPart;\n}\n\ninterface GeoStyleableOption {\n itemStyle?: GeoItemStyleOption;\n lineStyle?: LineStyleOption;\n}\ntype RegionName = string;\n\n/**\n * Only these tags enable use `itemStyle` if they are named in SVG.\n * Other tags like might not suitable for `itemStyle`.\n * They will not be considered to be styled until some requirements come.\n */\nconst OPTION_STYLE_ENABLED_TAGS: SVGNodeTagLower[] = [\n 'rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path'\n];\nconst OPTION_STYLE_ENABLED_TAG_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS\n);\nconst STATE_TRIGGER_TAG_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS.concat(['g']) as SVGNodeTagLower[]\n);\nconst LABEL_HOST_MAP = zrUtil.createHashMap(\n OPTION_STYLE_ENABLED_TAGS.concat(['g']) as SVGNodeTagLower[]\n);\nconst mapLabelRaw = makeInner<{\n ignore: boolean\n}, ZRText>();\n\n\nfunction getFixedItemStyle(model: Model) {\n const itemStyle = model.getItemStyle();\n const areaColor = model.get('areaColor');\n\n // If user want the color not to be changed when hover,\n // they should both set areaColor and color to be null.\n if (areaColor != null) {\n itemStyle.fill = areaColor;\n }\n\n return itemStyle;\n}\nclass MapDraw {\n\n private uid: string;\n\n private _controller: RoamController;\n\n private _controllerHost: {\n target: graphic.Group;\n zoom?: number;\n zoomLimit?: GeoCommonOptionMixin['scaleLimit'];\n };\n\n readonly group: graphic.Group;\n\n\n /**\n * This flag is used to make sure that only one among\n * `pan`, `zoom`, `click` can occurs, otherwise 'selected'\n * action may be triggered when `pan`, which is unexpected.\n */\n private _mouseDownFlag: boolean;\n\n private _regionsGroup: RegionsGroup;\n\n private _regionsGroupByName: zrUtil.HashMap;\n\n private _svgMapName: string;\n\n private _svgGroup: graphic.Group;\n\n private _svgGraphicRecord: GeoSVGGraphicRecord;\n\n // A name may correspond to multiple graphics.\n // Used as event dispatcher.\n private _svgDispatcherMap: zrUtil.HashMap;\n\n\n constructor(api: ExtensionAPI) {\n const group = new graphic.Group();\n this.uid = getUID('ec_map_draw');\n this._controller = new RoamController(api.getZr());\n this._controllerHost = { target: group };\n this.group = group;\n\n group.add(this._regionsGroup = new graphic.Group() as RegionsGroup);\n group.add(this._svgGroup = new graphic.Group());\n }\n\n draw(\n mapOrGeoModel: GeoModel | MapSeries,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n fromView: MapView | GeoView,\n payload: Payload\n ): void {\n\n const isGeo = mapOrGeoModel.mainType === 'geo';\n\n // Map series has data. GEO model that controlled by map series\n // will be assigned with map data. Other GEO model has no data.\n let data = (mapOrGeoModel as MapSeries).getData && (mapOrGeoModel as MapSeries).getData();\n isGeo && ecModel.eachComponent({mainType: 'series', subType: 'map'}, function (mapSeries: MapSeries) {\n if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {\n data = mapSeries.getData();\n }\n });\n\n const geo = mapOrGeoModel.coordinateSystem;\n\n const regionsGroup = this._regionsGroup;\n const group = this.group;\n\n const transformInfo = geo.getTransformInfo();\n const transformInfoRaw = transformInfo.raw;\n const transformInfoRoam = transformInfo.roam;\n\n // No animation when first draw or in action\n const isFirstDraw = !regionsGroup.childAt(0) || payload;\n\n if (isFirstDraw) {\n group.x = transformInfoRoam.x;\n group.y = transformInfoRoam.y;\n group.scaleX = transformInfoRoam.scaleX;\n group.scaleY = transformInfoRoam.scaleY;\n group.dirty();\n }\n else {\n graphic.updateProps(group, transformInfoRoam, mapOrGeoModel);\n }\n\n const isVisualEncodedByVisualMap = data\n && data.getVisual('visualMeta')\n && data.getVisual('visualMeta').length > 0;\n\n const viewBuildCtx = {\n api,\n geo,\n mapOrGeoModel,\n data,\n isVisualEncodedByVisualMap,\n isGeo,\n transformInfoRaw\n };\n\n if (geo.resourceType === 'geoJSON') {\n this._buildGeoJSON(viewBuildCtx);\n }\n else if (geo.resourceType === 'geoSVG') {\n this._buildSVG(viewBuildCtx);\n }\n\n this._updateController(mapOrGeoModel, ecModel, api);\n\n this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView);\n }\n\n private _buildGeoJSON(viewBuildCtx: ViewBuildContext): void {\n const regionsGroupByName = this._regionsGroupByName = zrUtil.createHashMap();\n const regionsInfoByName = zrUtil.createHashMap<{\n dataIdx: number;\n regionModel: Model | Model;\n }, string>();\n const regionsGroup = this._regionsGroup;\n const transformInfoRaw = viewBuildCtx.transformInfoRaw;\n const mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n const data = viewBuildCtx.data;\n\n const transformPoint = function (point: number[]): number[] {\n return [\n point[0] * transformInfoRaw.scaleX + transformInfoRaw.x,\n point[1] * transformInfoRaw.scaleY + transformInfoRaw.y\n ];\n };\n\n regionsGroup.removeAll();\n\n // Only when the resource is GeoJSON, there is `geo.regions`.\n zrUtil.each(viewBuildCtx.geo.regions, function (region: GeoJSONRegion) {\n const regionName = region.name;\n\n // Consider in GeoJson properties.name may be duplicated, for example,\n // there is multiple region named \"United Kindom\" or \"France\" (so many\n // colonies). And it is not appropriate to merge them in geo, which\n // will make them share the same label and bring trouble in label\n // location calculation.\n let regionGroup = regionsGroupByName.get(regionName);\n let { dataIdx, regionModel } = regionsInfoByName.get(regionName) || {};\n\n if (!regionGroup) {\n regionGroup = regionsGroupByName.set(regionName, new graphic.Group() as RegionsGroup);\n regionsGroup.add(regionGroup);\n\n dataIdx = data ? data.indexOfName(regionName) : null;\n regionModel = viewBuildCtx.isGeo\n ? mapOrGeoModel.getRegionModel(regionName)\n : (data ? data.getItemModel(dataIdx) as Model : null);\n\n regionsInfoByName.set(regionName, { dataIdx, regionModel });\n }\n\n const compoundPath = new graphic.CompoundPath({\n segmentIgnoreThreshold: 1,\n shape: {\n paths: []\n }\n });\n regionGroup.add(compoundPath);\n\n zrUtil.each(region.geometries, function (geometry) {\n if (geometry.type !== 'polygon') {\n return;\n }\n const points = [];\n for (let i = 0; i < geometry.exterior.length; ++i) {\n points.push(transformPoint(geometry.exterior[i]));\n }\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n\n for (let i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); ++i) {\n const interior = geometry.interiors[i];\n const points = [];\n for (let j = 0; j < interior.length; ++j) {\n points.push(transformPoint(interior[j]));\n }\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n }\n });\n\n applyOptionStyleForRegion(\n viewBuildCtx, compoundPath, dataIdx, regionModel\n );\n\n if (compoundPath instanceof Displayable) {\n compoundPath.culling = true;\n }\n\n const centerPt = transformPoint(region.getCenter());\n resetLabelForRegion(\n viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt\n );\n });\n\n // Ensure children have been added to `regionGroup` before calling them.\n regionsGroupByName.each(function (regionGroup, regionName) {\n const { dataIdx, regionModel } = regionsInfoByName.get(regionName);\n\n resetEventTriggerForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx\n );\n resetTooltipForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel\n );\n resetStateTriggerForRegion(\n viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel\n );\n\n }, this);\n }\n\n private _buildSVG(viewBuildCtx: ViewBuildContext): void {\n const mapName = viewBuildCtx.geo.map;\n const transformInfoRaw = viewBuildCtx.transformInfoRaw;\n\n this._svgGroup.x = transformInfoRaw.x;\n this._svgGroup.y = transformInfoRaw.y;\n this._svgGroup.scaleX = transformInfoRaw.scaleX;\n this._svgGroup.scaleY = transformInfoRaw.scaleY;\n\n if (this._svgResourceChanged(mapName)) {\n this._freeSVG();\n this._useSVG(mapName);\n }\n\n const svgDispatcherMap = this._svgDispatcherMap = zrUtil.createHashMap();\n\n let focusSelf = false;\n zrUtil.each(this._svgGraphicRecord.named, function (namedItem) {\n // Note that we also allow different elements have the same name.\n // For example, a glyph of a city and the label of the city have\n // the same name and their tooltip info can be defined in a single\n // region option.\n\n const regionName = namedItem.name;\n const mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n const data = viewBuildCtx.data;\n const svgNodeTagLower = namedItem.svgNodeTagLower;\n const el = namedItem.el;\n\n const dataIdx = data ? data.indexOfName(regionName) : null;\n const regionModel = mapOrGeoModel.getRegionModel(regionName);\n\n if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null\n && (el instanceof Displayable)\n ) {\n applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel);\n }\n\n if (el instanceof Displayable) {\n el.culling = true;\n }\n\n // We do not know how the SVG like so we'd better not to change z2.\n // Otherwise it might bring some unexpected result. For example,\n // an area hovered that make some inner city can not be clicked.\n (el as ECElement).z2EmphasisLift = 0;\n\n // If self named:\n if (!namedItem.namedFrom) {\n // label should batter to be displayed based on the center of \n // if it is named rather than displayed on each child.\n if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) {\n resetLabelForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null\n );\n }\n\n resetEventTriggerForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx\n );\n\n resetTooltipForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel\n );\n\n if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) {\n const focus = resetStateTriggerForRegion(\n viewBuildCtx, el, regionName, regionModel, mapOrGeoModel\n );\n if (focus === 'self') {\n focusSelf = true;\n }\n const els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []);\n els.push(el);\n }\n }\n\n }, this);\n\n this._enableBlurEntireSVG(focusSelf, viewBuildCtx);\n }\n\n private _enableBlurEntireSVG(\n focusSelf: boolean,\n viewBuildCtx: ViewBuildContext\n ): void {\n // It's a little complicated to support blurring the entire geoSVG in series-map.\n // So do not suport it until some requirements come.\n // At present, in series-map, only regions can be blurred.\n if (focusSelf && viewBuildCtx.isGeo) {\n const blurStyle = (viewBuildCtx.mapOrGeoModel as GeoModel).getModel(['blur', 'itemStyle']).getItemStyle();\n // Only suport `opacity` here. Because not sure that other props are suitable for\n // all of the elements generated by SVG (especially for Text/TSpan/Image/... ).\n const opacity = blurStyle.opacity;\n this._svgGraphicRecord.root.traverse(el => {\n if (!el.isGroup) {\n // PENDING: clear those settings to SVG elements when `_freeSVG`.\n // (Currently it happen not to be needed.)\n setDefaultStateProxy(el as Displayable);\n const style = (el as Displayable).ensureState('blur').style || {};\n // Do not overwrite the region style that already set from region option.\n if (style.opacity == null && opacity != null) {\n style.opacity = opacity;\n }\n // If `ensureState('blur').style = {}`, there will be default opacity.\n\n // Enable `stateTransition` (animation).\n (el as Displayable).ensureState('emphasis');\n }\n });\n }\n }\n\n remove(): void {\n this._regionsGroup.removeAll();\n this._regionsGroupByName = null;\n this._svgGroup.removeAll();\n this._freeSVG();\n this._controller.dispose();\n this._controllerHost = null;\n }\n\n findHighDownDispatchers(name: string, geoModel: GeoModel): Element[] {\n if (name == null) {\n return [];\n }\n\n const geo = geoModel.coordinateSystem;\n\n if (geo.resourceType === 'geoJSON') {\n const regionsGroupByName = this._regionsGroupByName;\n if (regionsGroupByName) {\n const regionGroup = regionsGroupByName.get(name);\n return regionGroup ? [regionGroup] : [];\n }\n }\n else if (geo.resourceType === 'geoSVG') {\n return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || [];\n }\n }\n\n private _svgResourceChanged(mapName: string): boolean {\n return this._svgMapName !== mapName;\n }\n\n private _useSVG(mapName: string): void {\n const resource = geoSourceManager.getGeoResource(mapName);\n if (resource && resource.type === 'geoSVG') {\n const svgGraphic = (resource as GeoSVGResource).useGraphic(this.uid);\n this._svgGroup.add(svgGraphic.root);\n this._svgGraphicRecord = svgGraphic;\n this._svgMapName = mapName;\n }\n }\n\n private _freeSVG(): void {\n const mapName = this._svgMapName;\n if (mapName == null) {\n return;\n }\n\n const resource = geoSourceManager.getGeoResource(mapName);\n if (resource && resource.type === 'geoSVG') {\n (resource as GeoSVGResource).freeGraphic(this.uid);\n }\n this._svgGraphicRecord = null;\n this._svgDispatcherMap = null;\n this._svgGroup.removeAll();\n this._svgMapName = null;\n }\n\n private _updateController(\n this: MapDraw, mapOrGeoModel: GeoModel | MapSeries, ecModel: GlobalModel, api: ExtensionAPI\n ): void {\n const geo = mapOrGeoModel.coordinateSystem;\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n\n // @ts-ignore FIXME:TS\n controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');\n controllerHost.zoom = geo.getZoom();\n\n // roamType is will be set default true if it is null\n // @ts-ignore FIXME:TS\n controller.enable(mapOrGeoModel.get('roam') || false);\n const mainType = mapOrGeoModel.mainType;\n\n function makeActionBase(): Payload {\n const action = {\n type: 'geoRoam',\n componentType: mainType\n } as Payload;\n action[mainType + 'Id'] = mapOrGeoModel.id;\n return action;\n }\n\n controller.off('pan').on('pan', function (e) {\n this._mouseDownFlag = false;\n\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n dx: e.dx,\n dy: e.dy\n }));\n }, this);\n\n controller.off('zoom').on('zoom', function (e) {\n this._mouseDownFlag = false;\n\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n }));\n\n }, this);\n\n controller.setPointerChecker(function (e, x, y) {\n return geo.containPoint([x, y])\n && !onIrrelevantElement(e, api, mapOrGeoModel);\n });\n }\n\n /**\n * FIXME: this is a temporarily workaround.\n * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like\n * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`\n * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified\n * props will have no chance to be restored.\n * Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in\n * `renderSeries` will cache the modified `ignore` to `el._normalState`.\n * TODO:\n * Use clone/immutable in `LabelManager`?\n */\n resetForLabelLayout() {\n this.group.traverse(el => {\n const label = el.getTextContent();\n if (label) {\n label.ignore = mapLabelRaw(label).ignore;\n }\n });\n }\n\n private _updateMapSelectHandler(\n mapOrGeoModel: GeoModel | MapSeries,\n regionsGroup: RegionsGroup,\n api: ExtensionAPI,\n fromView: MapView | GeoView\n ): void {\n const mapDraw = this;\n\n regionsGroup.off('mousedown');\n regionsGroup.off('click');\n\n // @ts-ignore FIXME:TS resolve type conflict\n if (mapOrGeoModel.get('selectedMode')) {\n\n regionsGroup.on('mousedown', function () {\n mapDraw._mouseDownFlag = true;\n });\n\n regionsGroup.on('click', function (e) {\n if (!mapDraw._mouseDownFlag) {\n return;\n }\n mapDraw._mouseDownFlag = false;\n });\n }\n }\n\n};\n\nfunction applyOptionStyleForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Displayable,\n dataIndex: number,\n regionModel: Model<\n GeoStyleableOption & {\n emphasis?: GeoStyleableOption;\n select?: GeoStyleableOption;\n blur?: GeoStyleableOption;\n }\n >\n): void {\n // All of the path are using `itemStyle`, becuase\n // (1) Some SVG also use fill on polyline (The different between\n // polyline and polygon is \"open\" or \"close\" but not fill or not).\n // (2) For the common props like opacity, if some use itemStyle\n // and some use `lineStyle`, it might confuse users.\n // (3) Most SVG use , where can not detect wether draw a \"line\"\n // or a filled shape, so use `itemStyle` for .\n\n const normalStyleModel = regionModel.getModel('itemStyle');\n const emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']);\n const blurStyleModel = regionModel.getModel(['blur', 'itemStyle']);\n const selectStyleModel = regionModel.getModel(['select', 'itemStyle']);\n\n // NOTE: DONT use 'style' in visual when drawing map.\n // This component is used for drawing underlying map for both geo component and map series.\n const normalStyle = getFixedItemStyle(normalStyleModel);\n const emphasisStyle = getFixedItemStyle(emphasisStyleModel);\n const selectStyle = getFixedItemStyle(selectStyleModel);\n const blurStyle = getFixedItemStyle(blurStyleModel);\n\n // Update the itemStyle if has data visual\n const data = viewBuildCtx.data;\n if (data) {\n // Only visual color of each item will be used. It can be encoded by visualMap\n // But visual color of series is used in symbol drawing\n\n // Visual color for each series is for the symbol draw\n const style = data.getItemVisual(dataIndex, 'style');\n const decal = data.getItemVisual(dataIndex, 'decal');\n if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) {\n normalStyle.fill = style.fill;\n }\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, viewBuildCtx.api);\n }\n }\n\n // SVG text, tspan and image can be named but not supporeted\n // to be styled by region option yet.\n el.setStyle(normalStyle);\n el.style.strokeNoScale = true;\n el.ensureState('emphasis').style = emphasisStyle;\n el.ensureState('select').style = selectStyle;\n el.ensureState('blur').style = blurStyle;\n\n // Enable blur\n setDefaultStateProxy(el);\n}\n\nfunction resetLabelForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel,\n // Exist only if `viewBuildCtx.data` exists.\n dataIdx: number,\n // If labelXY not provided, use `textConfig.position: 'inside'`\n labelXY: number[]\n): void {\n const data = viewBuildCtx.data;\n const isGeo = viewBuildCtx.isGeo;\n\n const isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx) as number);\n const itemLayout = data && data.getItemLayout(dataIdx);\n\n // In the following cases label will be drawn\n // 1. In map series and data value is NaN\n // 2. In geo component\n // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout\n if (\n ((isGeo || isDataNaN))\n || (itemLayout && itemLayout.showLabel)\n ) {\n\n const query = !isGeo ? dataIdx : regionName;\n let labelFetcher;\n\n // Consider dataIdx not found.\n if (!data || dataIdx >= 0) {\n labelFetcher = mapOrGeoModel;\n }\n\n const specifiedTextOpt: Partial> = labelXY ? {\n normal: {\n align: 'center',\n verticalAlign: 'middle'\n }\n } : null;\n\n // Caveat: must be called after `setDefaultStateProxy(el);` called.\n // because textContent will be assign with `el.stateProxy` inside.\n setLabelStyle(\n el,\n getLabelStatesModels(regionModel),\n {\n labelFetcher: labelFetcher,\n labelDataIndex: query,\n defaultText: regionName\n },\n specifiedTextOpt\n );\n\n const textEl = el.getTextContent();\n if (textEl) {\n mapLabelRaw(textEl).ignore = textEl.ignore;\n\n if (el.textConfig && labelXY) {\n // Compute a relative offset based on the el bounding rect.\n const rect = el.getBoundingRect().clone();\n // Need to make sure the percent position base on the same rect in normal and\n // emphasis state. Otherwise if using boundingRect of el, but the emphasis state\n // has borderWidth (even 0.5px), the text position will be changed obviously\n // if the position is very big like ['1234%', '1345%'].\n el.textConfig.layoutRect = rect;\n el.textConfig.position = [\n ((labelXY[0] - rect.x) / rect.width * 100) + '%',\n ((labelXY[1] - rect.y) / rect.height * 100) + '%'\n ];\n }\n }\n\n // PENDING:\n // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.\n // But el.dataIndex is also used to determine whether user event should be triggered,\n // where el.seriesIndex or el.dataModel must be specified. At present for a single el\n // there is not case that \"only label layout enabled but user event disabled\", so here\n // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.\n\n (el as ECElement).disableLabelAnimation = true;\n }\n else {\n el.removeTextContent();\n el.removeTextConfig();\n (el as ECElement).disableLabelAnimation = null;\n }\n}\n\nfunction resetEventTriggerForRegion(\n viewBuildCtx: ViewBuildContext,\n eventTrigger: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel,\n // Exist only if `viewBuildCtx.data` exists.\n dataIdx: number\n): void {\n // setItemGraphicEl, setHoverStyle after all polygons and labels\n // are added to the rigionGroup\n if (viewBuildCtx.data) {\n // FIXME: when series-map use a SVG map, and there are duplicated name specified\n // on different SVG elements, after `data.setItemGraphicEl(...)`:\n // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip\n // can be triggered only mouse hover. That's correct.\n // (2) only the last element will be kept in `data`, so that if trigger tooltip\n // by `dispatchAction`, only the last one can be found and triggered. That might be\n // not correct. We will fix it in future if anyone demanding that.\n viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger);\n }\n // series-map will not trigger \"geoselectchange\" no matter it is\n // based on a declared geo component. Becuause series-map will\n // trigger \"selectchange\". If it trigger both the two events,\n // If users call `chart.dispatchAction({type: 'toggleSelect'})`,\n // it not easy to also fire event \"geoselectchanged\".\n else {\n // Package custom mouse event for geo component\n getECData(eventTrigger).eventData = {\n componentType: 'geo',\n componentIndex: mapOrGeoModel.componentIndex,\n geoIndex: mapOrGeoModel.componentIndex,\n name: regionName,\n region: (regionModel && regionModel.option) || {}\n };\n }\n}\n\nfunction resetTooltipForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel\n): void {\n if (!viewBuildCtx.data) {\n graphic.setTooltipConfig({\n el: el,\n componentModel: mapOrGeoModel,\n itemName: regionName,\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n itemTooltipOption: regionModel.get('tooltip')\n });\n }\n}\n\nfunction resetStateTriggerForRegion(\n viewBuildCtx: ViewBuildContext,\n el: Element,\n regionName: string,\n regionModel: RegionModel,\n mapOrGeoModel: MapOrGeoModel\n): InnerFocus {\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode');\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n const emphasisModel = regionModel.getModel('emphasis');\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n el, focus, emphasisModel.get('blurScope')\n );\n if (viewBuildCtx.isGeo) {\n enableComponentHighDownFeatures(el, mapOrGeoModel as GeoModel, regionName);\n }\n\n return focus;\n}\n\nexport default MapDraw;\n\n\n// @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as graphic from '../../util/graphic';\nimport MapDraw from '../../component/helper/MapDraw';\nimport ChartView from '../../view/Chart';\nimport MapSeries, { MapDataItemOption } from './MapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload, DisplayState, ECElement } from '../../util/types';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { setStatesFlag, Z2_EMPHASIS_LIFT } from '../../util/states';\n\n\nclass MapView extends ChartView {\n\n static type = 'map' as const;\n readonly type = MapView.type;\n\n private _mapDraw: MapDraw;\n\n render(\n mapModel: MapSeries,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n // Not render if it is an toggleSelect action from self\n if (payload && payload.type === 'mapToggleSelect'\n && payload.from === this.uid\n ) {\n return;\n }\n\n const group = this.group;\n group.removeAll();\n\n if (mapModel.getHostGeoModel()) {\n return;\n }\n\n if (this._mapDraw && payload && payload.type === 'geoRoam') {\n this._mapDraw.resetForLabelLayout();\n }\n\n // Not update map if it is an roam action from self\n if (!(payload && payload.type === 'geoRoam'\n && payload.componentType === 'series'\n && payload.seriesId === mapModel.id\n )\n ) {\n if (mapModel.needsDrawMap) {\n const mapDraw = this._mapDraw || new MapDraw(api);\n group.add(mapDraw.group);\n\n mapDraw.draw(mapModel, ecModel, api, this, payload);\n\n this._mapDraw = mapDraw;\n }\n else {\n // Remove drawed map\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n }\n else {\n const mapDraw = this._mapDraw;\n mapDraw && group.add(mapDraw.group);\n }\n\n mapModel.get('showLegendSymbol') && ecModel.getComponent('legend')\n && this._renderSymbols(mapModel, ecModel, api);\n }\n\n remove(): void {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n this.group.removeAll();\n }\n\n dispose(): void {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n\n private _renderSymbols(mapModel: MapSeries, ecModel: GlobalModel, api: ExtensionAPI): void {\n const originalData = mapModel.originalData;\n const group = this.group;\n\n originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) {\n if (isNaN(value as number)) {\n return;\n }\n\n const layout = originalData.getItemLayout(originalDataIndex);\n\n if (!layout || !layout.point) {\n // Not exists in map\n return;\n }\n\n const point = layout.point;\n const offset = layout.offset;\n\n const circle = new graphic.Circle({\n style: {\n // Because the special of map draw.\n // Which needs statistic of multiple series and draw on one map.\n // And each series also need a symbol with legend color\n //\n // Layout and visual are put one the different data\n // TODO\n fill: mapModel.getData().getVisual('style').fill\n },\n shape: {\n cx: point[0] + offset * 9,\n cy: point[1],\n r: 3\n },\n silent: true,\n // Do not overlap the first series, on which labels are displayed.\n z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0)\n });\n\n // Only the series that has the first value on the same region is in charge of rendering the label.\n // But consider the case:\n // series: [\n // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},\n // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}\n // ]\n // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.\n // For backward compatibility, we follow the rule that render label `A` by the\n // settings on series `X` but render label `C` by the settings on series `Y`.\n if (!offset) {\n\n const fullData = mapModel.mainSeries.getData();\n const name = originalData.getName(originalDataIndex);\n\n const fullIndex = fullData.indexOfName(name);\n\n const itemModel = originalData.getItemModel(originalDataIndex);\n const labelModel = itemModel.getModel('label');\n\n const regionGroup = fullData.getItemGraphicEl(fullIndex);\n\n // `getFormattedLabel` needs to use `getData` inside. Here\n // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.\n // FIXME\n // If this is not the `mainSeries`, the item model (like label formatter)\n // set on original data item will never get. But it has been working\n // like that from the begining, and this scenario is rarely encountered.\n // So it won't be fixed until have to.\n\n setLabelStyle(circle, getLabelStatesModels(itemModel), {\n labelFetcher: {\n getFormattedLabel(idx: number, state: DisplayState) {\n return mapModel.getFormattedLabel(fullIndex, state);\n }\n }\n });\n (circle as ECElement).disableLabelAnimation = true;\n if (!labelModel.get('position')) {\n circle.setTextConfig({\n position: 'bottom'\n });\n }\n\n (regionGroup as ECElement).onHoverStateChange = function (toState) {\n setStatesFlag(circle, toState);\n };\n }\n\n group.add(circle);\n });\n }\n}\n\nexport default MapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport SeriesModel from '../../model/Series';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin,\n OptionDataItemObject,\n OptionDataValueNumeric,\n ParsedValue,\n SeriesOnGeoOptionMixin,\n StatesOptionMixin,\n SeriesLabelOption\n} from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GeoModel, { GeoCommonOptionMixin, GeoItemStyleOption } from '../../coord/geo/GeoModel';\nimport SeriesData from '../../data/SeriesData';\nimport Model from '../../model/Model';\nimport Geo from '../../coord/geo/Geo';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport {LegendIconParams} from '../../component/legend/LegendModel';\nimport {Group} from '../../util/graphic';\n\nexport interface MapStateOption {\n itemStyle?: GeoItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface MapDataItemOption extends MapStateOption, StatesOptionMixin,\n OptionDataItemObject {\n cursor?: string\n}\n\nexport type MapValueCalculationType = 'sum' | 'average' | 'min' | 'max';\n\nexport interface MapSeriesOption extends\n SeriesOption, MapStateOption,\n\n GeoCommonOptionMixin,\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n SeriesOnGeoOptionMixin,\n BoxLayoutOptionMixin,\n SeriesEncodeOptionMixin {\n type?: 'map'\n\n coordinateSystem?: string;\n silent?: boolean;\n\n // FIXME:TS add marker types\n markLine?: any;\n markPoint?: any;\n markArea?: any;\n\n mapValueCalculation?: MapValueCalculationType;\n\n showLegendSymbol?: boolean;\n\n // @deprecated. Only for echarts2 backward compat.\n geoCoord?: Dictionary;\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | MapDataItemOption)[]\n\n\n nameProperty?: string;\n}\n\nclass MapSeries extends SeriesModel {\n\n static type = 'series.map' as const;\n type = MapSeries.type;\n\n static dependencies = ['geo'];\n\n static layoutMode = 'box' as const;\n\n coordinateSystem: Geo;\n\n // -----------------\n // Injected outside\n originalData: SeriesData;\n mainSeries: MapSeries;\n // Only first map series of same mapType will drawMap.\n needsDrawMap: boolean = false;\n // Group of all map series with same mapType\n seriesGroup: MapSeries[] = [];\n\n\n getInitialData(this: MapSeries, option: MapSeriesOption): SeriesData {\n const data = createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n const dataNameMap = zrUtil.createHashMap();\n const toAppendNames = [] as string[];\n\n for (let i = 0, len = data.count(); i < len; i++) {\n const name = data.getName(i);\n dataNameMap.set(name, true);\n }\n\n const geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);\n zrUtil.each(geoSource.regions, function (region) {\n const name = region.name;\n if (!dataNameMap.get(name)) {\n toAppendNames.push(name);\n }\n });\n\n // Complete data with missing regions. The consequent processes (like visual\n // map and render) can not be performed without a \"full data\". For example,\n // find `dataIndex` by name.\n data.appendValues([], toAppendNames);\n\n return data;\n }\n\n /**\n * If no host geo model, return null, which means using a\n * inner exclusive geo model.\n */\n getHostGeoModel(): GeoModel {\n const geoIndex = this.option.geoIndex;\n return geoIndex != null\n ? this.ecModel.getComponent('geo', geoIndex) as GeoModel\n : null;\n }\n\n getMapType(): string {\n return (this.getHostGeoModel() || this).option.map;\n }\n\n // _fillOption(option, mapName) {\n // Shallow clone\n // option = zrUtil.extend({}, option);\n\n // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);\n\n // return option;\n // }\n\n getRawValue(dataIndex: number): ParsedValue {\n // Use value stored in data instead because it is calculated from multiple series\n // FIXME Provide all value of multiple series ?\n const data = this.getData();\n return data.get(data.mapDimension('value'), dataIndex);\n }\n\n /**\n * Get model of region\n */\n getRegionModel(regionName: string): Model {\n const data = this.getData();\n return data.getItemModel(data.indexOfName(regionName));\n }\n\n /**\n * Map tooltip formatter\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n // FIXME orignalData and data is a bit confusing\n const data = this.getData();\n const value = this.getRawValue(dataIndex);\n const name = data.getName(dataIndex);\n\n const seriesGroup = this.seriesGroup;\n const seriesNames = [];\n for (let i = 0; i < seriesGroup.length; i++) {\n const otherIndex = seriesGroup[i].originalData.indexOfName(name);\n const valueDim = data.mapDimension('value');\n if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex) as number)) {\n seriesNames.push(seriesGroup[i].name);\n }\n }\n\n return createTooltipMarkup('section', {\n header: seriesNames.join(', '),\n noHeader: !seriesNames.length,\n blocks: [createTooltipMarkup('nameValue', {\n name: name, value: value\n })]\n });\n }\n\n getTooltipPosition = function (this: MapSeries, dataIndex: number): number[] {\n if (dataIndex != null) {\n const name = this.getData().getName(dataIndex);\n const geo = this.coordinateSystem;\n const region = geo.getRegion(name);\n\n return region && geo.dataToPoint(region.getCenter());\n }\n };\n\n setZoom(zoom: number): void {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]): void {\n this.option.center = center;\n }\n\n getLegendIcon(opt: LegendIconParams): ECSymbol | Group {\n const iconType = opt.icon || 'roundRect';\n const icon = createSymbol(\n iconType,\n 0,\n 0,\n opt.itemWidth,\n opt.itemHeight,\n opt.itemStyle.fill\n );\n\n icon.setStyle(opt.itemStyle);\n // Map do not use itemStyle.borderWidth as border width\n icon.style.stroke = 'none';\n // No rotation because no series visual symbol for map\n\n if (iconType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n return icon;\n }\n\n static defaultOption: MapSeriesOption = {\n // \u4E00\u7EA7\u5C42\u53E0\n zlevel: 0,\n // \u4E8C\u7EA7\u5C42\u53E0\n z: 2,\n\n coordinateSystem: 'geo',\n\n // map should be explicitly specified since ec3.\n map: '',\n\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n // geoIndex: 0,\n\n // 'center' | 'left' | 'right' | 'x%' | {number}\n left: 'center',\n // 'center' | 'top' | 'bottom' | 'x%' | {number}\n top: 'center',\n // right\n // bottom\n // width:\n // height\n\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n\n showLegendSymbol: true,\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ],\n // higher priority than center and zoom\n boundingCoords: null,\n\n // Default on center of map\n center: null,\n\n zoom: 1,\n\n scaleLimit: null,\n\n selectedMode: true,\n\n label: {\n show: false,\n color: '#000'\n },\n // scaleLimit: null,\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444',\n areaColor: '#eee'\n },\n\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n areaColor: 'rgba(255,215,0,0.8)'\n }\n },\n\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n nameProperty: 'name'\n };\n\n}\n\nexport default MapSeries;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport MapSeries, { MapValueCalculationType } from './MapSeries';\nimport GlobalModel from '../../model/Global';\n\n// FIXME \u516C\u7528\uFF1F\nfunction dataStatistics(datas: SeriesData[], statisticType: MapValueCalculationType): SeriesData {\n const dataNameMap = {} as {[mapKey: string]: number[]};\n\n zrUtil.each(datas, function (data) {\n data.each(data.mapDimension('value'), function (value: number, idx) {\n // Add prefix to avoid conflict with Object.prototype.\n const mapKey = 'ec-' + data.getName(idx);\n dataNameMap[mapKey] = dataNameMap[mapKey] || [];\n if (!isNaN(value)) {\n dataNameMap[mapKey].push(value);\n }\n });\n });\n\n return datas[0].map(datas[0].mapDimension('value'), function (value, idx) {\n const mapKey = 'ec-' + datas[0].getName(idx);\n let sum = 0;\n let min = Infinity;\n let max = -Infinity;\n const len = dataNameMap[mapKey].length;\n for (let i = 0; i < len; i++) {\n min = Math.min(min, dataNameMap[mapKey][i]);\n max = Math.max(max, dataNameMap[mapKey][i]);\n sum += dataNameMap[mapKey][i];\n }\n let result;\n if (statisticType === 'min') {\n result = min;\n }\n else if (statisticType === 'max') {\n result = max;\n }\n else if (statisticType === 'average') {\n result = sum / len;\n }\n else {\n result = sum;\n }\n return len === 0 ? NaN : result;\n });\n}\n\nexport default function mapDataStatistic(ecModel: GlobalModel): void {\n const seriesGroups = {} as {[key: string]: MapSeries[]};\n ecModel.eachSeriesByType('map', function (seriesModel: MapSeries) {\n const hostGeoModel = seriesModel.getHostGeoModel();\n const key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();\n (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);\n });\n\n zrUtil.each(seriesGroups, function (seriesList, key) {\n const data = dataStatistics(\n zrUtil.map(seriesList, function (seriesModel) {\n return seriesModel.getData();\n }),\n seriesList[0].get('mapValueCalculation')\n );\n\n for (let i = 0; i < seriesList.length; i++) {\n seriesList[i].originalData = seriesList[i].getData();\n }\n\n // FIXME Put where?\n for (let i = 0; i < seriesList.length; i++) {\n seriesList[i].seriesGroup = seriesList;\n seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();\n\n seriesList[i].setData(data.cloneShallow());\n seriesList[i].mainSeries = seriesList[0];\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport MapSeries from './MapSeries';\nimport { Dictionary } from '../../util/types';\n\nexport default function mapSymbolLayout(ecModel: GlobalModel) {\n\n const processedMapType = {} as {[mapType: string]: boolean};\n\n ecModel.eachSeriesByType('map', function (mapSeries: MapSeries) {\n const mapType = mapSeries.getMapType();\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n const mapSymbolOffsets = {} as Dictionary;\n\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n const geo = subMapSeries.coordinateSystem;\n const data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n const name = data.getName(idx);\n const region = geo.getRegion(name);\n\n // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n if (!region || isNaN(value as number)) {\n return;\n }\n\n const offset = mapSymbolOffsets[name] || 0;\n\n const point = geo.dataToPoint(region.getCenter());\n\n mapSymbolOffsets[name] = offset + 1;\n\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n });\n\n // Show label of those region not has legendIcon (which is offset 0)\n const data = mapSeries.getData();\n data.each(function (idx) {\n const name = data.getName(idx);\n const layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n\n processedMapType[mapType] = true;\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Simple view coordinate system\n * Mapping given x, y to transformd view x, y\n */\n\nimport * as vector from 'zrender/src/core/vector';\nimport * as matrix from 'zrender/src/core/matrix';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport Transformable from 'zrender/src/core/Transformable';\nimport { CoordinateSystemMaster, CoordinateSystem } from './CoordinateSystem';\nimport GlobalModel from '../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../util/model';\n\nconst v2ApplyTransform = vector.applyTransform;\n\nexport type ViewCoordSysTransformInfoPart = Pick;\n\nclass View extends Transformable implements CoordinateSystemMaster, CoordinateSystem {\n\n readonly type: string = 'view';\n\n static dimensions = ['x', 'y'];\n readonly dimensions = ['x', 'y'];\n\n readonly name: string;\n\n zoomLimit: {\n max?: number;\n min?: number;\n };\n\n /**\n * Represents the transform brought by roam/zoom.\n * If `View['_viewRect']` applies roam transform,\n * we can get the final displayed rect.\n */\n private _roamTransformable = new Transformable();\n /**\n * Represents the transform from `View['_rect']` to `View['_viewRect']`.\n */\n protected _rawTransformable = new Transformable();\n private _rawTransform: matrix.MatrixArray;\n\n /**\n * This is a user specified point on the source, which will be\n * located to the center of the `View['_viewRect']`.\n * The unit this the same as `View['_rect']`.\n */\n private _center: number[];\n private _zoom: number;\n\n /**\n * The rect of the source, where the measure is used by \"data\" and \"center\".\n * Has nothing to do with roam/zoom.\n * The unit is defined by the source. For example,\n * for geo source the unit is lat/lng,\n * for SVG source the unit is the same as the width/height defined in SVG.\n */\n private _rect: BoundingRect;\n /**\n * The visible rect on the canvas. Has nothing to do with roam/zoom.\n * The unit of `View['_viewRect']` is pixel of the canvas.\n */\n private _viewRect: BoundingRect;\n\n\n constructor(name?: string) {\n super();\n this.name = name;\n }\n\n setBoundingRect(x: number, y: number, width: number, height: number): BoundingRect {\n this._rect = new BoundingRect(x, y, width, height);\n return this._rect;\n }\n\n /**\n * @return {module:zrender/core/BoundingRect}\n */\n getBoundingRect(): BoundingRect {\n return this._rect;\n }\n\n setViewRect(x: number, y: number, width: number, height: number): void {\n this._transformTo(x, y, width, height);\n this._viewRect = new BoundingRect(x, y, width, height);\n }\n\n /**\n * Transformed to particular position and size\n */\n protected _transformTo(x: number, y: number, width: number, height: number): void {\n const rect = this.getBoundingRect();\n const rawTransform = this._rawTransformable;\n\n rawTransform.transform = rect.calculateTransform(\n new BoundingRect(x, y, width, height)\n );\n\n const rawParent = rawTransform.parent;\n rawTransform.parent = null;\n rawTransform.decomposeTransform();\n rawTransform.parent = rawParent;\n\n this._updateTransform();\n }\n\n /**\n * Set center of view\n */\n setCenter(centerCoord?: number[]): void {\n if (!centerCoord) {\n return;\n }\n this._center = centerCoord;\n\n this._updateCenterAndZoom();\n }\n\n setZoom(zoom: number): void {\n zoom = zoom || 1;\n\n const zoomLimit = this.zoomLimit;\n if (zoomLimit) {\n if (zoomLimit.max != null) {\n zoom = Math.min(zoomLimit.max, zoom);\n }\n if (zoomLimit.min != null) {\n zoom = Math.max(zoomLimit.min, zoom);\n }\n }\n this._zoom = zoom;\n\n this._updateCenterAndZoom();\n }\n\n /**\n * Get default center without roam\n */\n getDefaultCenter(): number[] {\n // Rect before any transform\n const rawRect = this.getBoundingRect();\n const cx = rawRect.x + rawRect.width / 2;\n const cy = rawRect.y + rawRect.height / 2;\n\n return [cx, cy];\n }\n\n getCenter(): number[] {\n return this._center || this.getDefaultCenter();\n }\n\n getZoom(): number {\n return this._zoom || 1;\n }\n\n getRoamTransform(): matrix.MatrixArray {\n return this._roamTransformable.getLocalTransform();\n }\n\n /**\n * Remove roam\n */\n private _updateCenterAndZoom(): void {\n // Must update after view transform updated\n const rawTransformMatrix = this._rawTransformable.getLocalTransform();\n const roamTransform = this._roamTransformable;\n let defaultCenter = this.getDefaultCenter();\n let center = this.getCenter();\n const zoom = this.getZoom();\n\n center = vector.applyTransform([], center, rawTransformMatrix);\n defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);\n\n roamTransform.originX = center[0];\n roamTransform.originY = center[1];\n roamTransform.x = defaultCenter[0] - center[0];\n roamTransform.y = defaultCenter[1] - center[1];\n roamTransform.scaleX = roamTransform.scaleY = zoom;\n\n this._updateTransform();\n }\n\n /**\n * Update transform props on `this` based on the current\n * `this._roamTransformable` and `this._rawTransformable`.\n */\n protected _updateTransform(): void {\n const roamTransformable = this._roamTransformable;\n const rawTransformable = this._rawTransformable;\n\n rawTransformable.parent = roamTransformable;\n roamTransformable.updateTransform();\n rawTransformable.updateTransform();\n\n matrix.copy(this.transform || (this.transform = []), rawTransformable.transform || matrix.create());\n\n this._rawTransform = rawTransformable.getLocalTransform();\n\n this.invTransform = this.invTransform || [];\n matrix.invert(this.invTransform, this.transform);\n\n this.decomposeTransform();\n }\n\n getTransformInfo(): {\n roam: ViewCoordSysTransformInfoPart\n raw: ViewCoordSysTransformInfoPart\n } {\n const rawTransformable = this._rawTransformable;\n\n const roamTransformable = this._roamTransformable;\n // Becuase roamTransformabel has `originX/originY` modified,\n // but the caller of `getTransformInfo` can not handle `originX/originY`,\n // so need to recalcualte them.\n const dummyTransformable = new Transformable();\n dummyTransformable.transform = roamTransformable.transform;\n dummyTransformable.decomposeTransform();\n\n return {\n roam: {\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY\n },\n raw: {\n x: rawTransformable.x,\n y: rawTransformable.y,\n scaleX: rawTransformable.scaleX,\n scaleY: rawTransformable.scaleY\n }\n };\n }\n\n getViewRect(): BoundingRect {\n return this._viewRect;\n }\n\n /**\n * Get view rect after roam transform\n */\n getViewRectAfterRoam(): BoundingRect {\n const rect = this.getBoundingRect().clone();\n rect.applyTransform(this.transform);\n return rect;\n }\n\n /**\n * Convert a single (lon, lat) data item to (x, y) point.\n */\n dataToPoint(data: number[], noRoam?: boolean, out?: number[]): number[] {\n const transform = noRoam ? this._rawTransform : this.transform;\n out = out || [];\n return transform\n ? v2ApplyTransform(out, data, transform)\n : vector.copy(out, data);\n }\n\n /**\n * Convert a (x, y) point to (lon, lat) data\n */\n pointToData(point: number[]): number[] {\n const invTransform = this.invTransform;\n return invTransform\n ? v2ApplyTransform([], point, invTransform)\n : [point[0], point[1]];\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n /**\n * @implements\n */\n containPoint(point: number[]): boolean {\n return this.getViewRectAfterRoam().contain(point[0], point[1]);\n }\n\n /**\n * @return {number}\n */\n // getScalarScale() {\n // // Use determinant square root of transform to mutiply scalar\n // let m = this.transform;\n // let det = Math.sqrt(Math.abs(m[0] * m[3] - m[2] * m[1]));\n // return det;\n // }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): View {\n const seriesModel = finder.seriesModel;\n return seriesModel ? seriesModel.coordinateSystem as View : null; // e.g., graph.\n}\n\nexport default View;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport View from '../View';\nimport geoSourceManager from './geoSourceManager';\nimport { GeoJSONRegion, Region } from './Region';\nimport { GeoResource, NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown, SINGLE_REFERRING } from '../../util/model';\nimport GeoModel from './GeoModel';\nimport { resizeGeoType } from './geoCreator';\n\nconst GEO_DEFAULT_PARAMS: {\n [type in GeoResource['type']]: {\n aspectScale: number;\n invertLongitute: boolean;\n }\n} = {\n 'geoJSON': {\n aspectScale: 0.75,\n invertLongitute: true\n },\n 'geoSVG': {\n aspectScale: 1,\n invertLongitute: false\n }\n} as const;\n\nexport const geo2DDimensions = ['lng', 'lat'];\n\n\nclass Geo extends View {\n\n dimensions = geo2DDimensions;\n\n type = 'geo';\n\n // map type\n readonly map: string;\n readonly resourceType: GeoResource['type'];\n\n // Only store specified name coord via `addGeoCoord`.\n private _nameCoordMap: zrUtil.HashMap = zrUtil.createHashMap();\n private _regionsMap: zrUtil.HashMap;\n private _invertLongitute: boolean;\n readonly regions: Region[];\n readonly aspectScale: number;\n\n // Injected outside\n model: GeoModel;\n resize: resizeGeoType;\n\n constructor(\n name: string,\n map: string,\n opt: {\n // Specify name alias\n nameMap?: NameMap;\n nameProperty?: string;\n aspectScale?: number;\n }\n ) {\n super(name);\n\n this.map = map;\n\n const source = geoSourceManager.load(map, opt.nameMap, opt.nameProperty);\n const resource = geoSourceManager.getGeoResource(map);\n this.resourceType = resource ? resource.type : null;\n\n const defaultParmas = GEO_DEFAULT_PARAMS[resource.type];\n\n this._regionsMap = source.regionsMap;\n this._invertLongitute = defaultParmas.invertLongitute;\n this.regions = source.regions;\n this.aspectScale = zrUtil.retrieve2(opt.aspectScale, defaultParmas.aspectScale);\n\n const boundingRect = source.boundingRect;\n this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height);\n }\n\n /**\n * Whether contain the given [lng, lat] coord.\n */\n // Never used yet.\n // containCoord(coord: number[]) {\n // const regions = this.regions;\n // for (let i = 0; i < regions.length; i++) {\n // const region = regions[i];\n // if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n // return true;\n // }\n // }\n // return false;\n // }\n\n protected _transformTo(x: number, y: number, width: number, height: number): void {\n let rect = this.getBoundingRect();\n const invertLongitute = this._invertLongitute;\n\n rect = rect.clone();\n\n if (invertLongitute) {\n // Longitute is inverted\n rect.y = -rect.y - rect.height;\n }\n\n const rawTransformable = this._rawTransformable;\n\n rawTransformable.transform = rect.calculateTransform(\n new BoundingRect(x, y, width, height)\n );\n\n const rawParent = rawTransformable.parent;\n rawTransformable.parent = null;\n rawTransformable.decomposeTransform();\n rawTransformable.parent = rawParent;\n\n if (invertLongitute) {\n rawTransformable.scaleY = -rawTransformable.scaleY;\n }\n\n this._updateTransform();\n }\n\n getRegion(name: string): Region {\n return this._regionsMap.get(name);\n }\n\n getRegionByCoord(coord: number[]): Region {\n const regions = this.regions;\n for (let i = 0; i < regions.length; i++) {\n const region = regions[i];\n if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n return regions[i];\n }\n }\n }\n\n /**\n * Add geoCoord for indexing by name\n */\n addGeoCoord(name: string, geoCoord: number[]): void {\n this._nameCoordMap.set(name, geoCoord);\n }\n\n /**\n * Get geoCoord by name\n */\n getGeoCoord(name: string): number[] {\n const region = this._regionsMap.get(name);\n // calcualte center only on demand.\n return this._nameCoordMap.get(name) || (region && region.getCenter());\n }\n\n dataToPoint(data: number[] | string, noRoam?: boolean, out?: number[]): number[] {\n if (typeof data === 'string') {\n // Map area name to geoCoord\n data = this.getGeoCoord(data);\n }\n if (data) {\n return View.prototype.dataToPoint.call(this, data, noRoam, out);\n }\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]): number[] {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n};\n\nzrUtil.mixin(Geo, View);\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Geo {\n const geoModel = finder.geoModel as GeoModel;\n const seriesModel = finder.seriesModel;\n return geoModel\n ? geoModel.coordinateSystem\n : seriesModel\n ? (\n seriesModel.coordinateSystem as Geo // For map series.\n || (\n (seriesModel.getReferringComponents('geo', SINGLE_REFERRING).models[0] || {}\n ) as GeoModel).coordinateSystem\n )\n : null;\n}\n\nexport default Geo;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Geo, { geo2DDimensions } from './Geo';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport geoSourceManager from './geoSourceManager';\nimport GeoModel, { GeoOption, RegoinOption } from './GeoModel';\nimport MapSeries, { MapSeriesOption } from '../../chart/map/MapSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { CoordinateSystemCreator } from '../CoordinateSystem';\nimport { NameMap } from './geoTypes';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption, SeriesOnGeoOptionMixin } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GlobalModel from '../../model/Global';\nimport ComponentModel from '../../model/Component';\n\n\nexport type resizeGeoType = typeof resizeGeo;\n\n/**\n * Resize method bound to the geo\n */\nfunction resizeGeo(this: Geo, geoModel: ComponentModel, api: ExtensionAPI): void {\n\n const boundingCoords = geoModel.get('boundingCoords');\n if (boundingCoords != null) {\n const leftTop = boundingCoords[0];\n const rightBottom = boundingCoords[1];\n if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) {\n if (__DEV__) {\n console.error('Invalid boundingCoords');\n }\n }\n else {\n this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]);\n }\n }\n\n const rect = this.getBoundingRect();\n\n const centerOption = geoModel.get('layoutCenter');\n const sizeOption = geoModel.get('layoutSize');\n\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n\n const aspect = rect.width / rect.height * this.aspectScale;\n\n let useCenterAndSize = false;\n let center: number[];\n let size: number;\n\n if (centerOption && sizeOption) {\n center = [\n numberUtil.parsePercent(centerOption[0], viewWidth),\n numberUtil.parsePercent(centerOption[1], viewHeight)\n ];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n }\n else {\n if (__DEV__) {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n let viewRect: layout.LayoutRect;\n if (useCenterAndSize) {\n viewRect = {} as layout.LayoutRect;\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n }\n else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n }\n else {\n // Use left/top/width/height\n const boxLayoutOption = geoModel.getBoxLayoutParams() as Parameters[0];\n\n boxLayoutOption.aspect = aspect;\n\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n\n this.setCenter(geoModel.get('center'));\n this.setZoom(geoModel.get('zoom'));\n}\n\n// Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\nfunction setGeoCoords(geo: Geo, model: MapSeries) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nclass GeoCreator implements CoordinateSystemCreator {\n\n // For deciding which dimensions to use when creating list data\n dimensions = geo2DDimensions;\n\n create(ecModel: GlobalModel, api: ExtensionAPI): Geo[] {\n const geoList = [] as Geo[];\n\n // FIXME Create each time may be slow\n ecModel.eachComponent('geo', function (geoModel: GeoModel, idx) {\n const name = geoModel.get('map');\n\n const geo = new Geo(name + idx, name, {\n nameMap: geoModel.get('nameMap'),\n nameProperty: geoModel.get('nameProperty'),\n aspectScale: geoModel.get('aspectScale')\n });\n\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo);\n\n // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel;\n\n // Inject resize method\n geo.resize = resizeGeo;\n\n geo.resize(geoModel, api);\n });\n\n ecModel.eachSeries(function (seriesModel) {\n const coordSys = seriesModel.get('coordinateSystem');\n if (coordSys === 'geo') {\n const geoIndex = (\n seriesModel as SeriesModel\n ).get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n });\n\n // If has map series\n const mapModelGroupBySeries = {} as Dictionary;\n\n ecModel.eachSeriesByType('map', function (seriesModel: MapSeries) {\n if (!seriesModel.getHostGeoModel()) {\n const mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n const nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n\n const geo = new Geo(mapType, mapType, {\n nameMap: zrUtil.mergeAll(nameMapList),\n nameProperty: mapSeries[0].get('nameProperty'),\n aspectScale: mapSeries[0].get('aspectScale')\n });\n\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo);\n\n // Inject resize method\n geo.resize = resizeGeo;\n\n geo.resize(mapSeries[0], api);\n\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n\n setGeoCoords(geo, singleMapSeries);\n });\n });\n\n return geoList;\n }\n\n /**\n * Fill given regions array\n */\n getFilledRegions(\n originRegionArr: RegoinOption[],\n mapName: string,\n nameMap: NameMap,\n nameProperty: string\n ): RegoinOption[] {\n // Not use the original\n const regionsArr = (originRegionArr || []).slice();\n\n const dataNameMap = zrUtil.createHashMap();\n for (let i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n const source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n const name = region.name;\n !dataNameMap.get(name) && regionsArr.push({name: name});\n });\n\n return regionsArr;\n }\n}\n\n\nconst geoCreator = new GeoCreator();\n\nexport default geoCreator;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport geoCreator from './geoCreator';\nimport Geo from './Geo';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n ItemStyleOption,\n ZRColor,\n LabelOption,\n DisplayState,\n RoamOptionMixin,\n AnimationOptionMixin,\n StatesOptionMixin,\n Dictionary,\n CommonTooltipOption\n} from '../../util/types';\nimport { NameMap } from './geoTypes';\nimport GlobalModel from '../../model/Global';\nimport geoSourceManager from './geoSourceManager';\n\n\nexport interface GeoItemStyleOption extends ItemStyleOption {\n areaColor?: ZRColor;\n};\ninterface GeoLabelOption extends LabelOption {\n formatter?: string | ((params: GeoLabelFormatterDataParams) => string);\n}\nexport interface GeoStateOption {\n itemStyle?: GeoItemStyleOption\n // FIXME:TS formatter?\n label?: GeoLabelOption\n}\ninterface GeoLabelFormatterDataParams {\n name: string;\n status: DisplayState;\n}\n\nexport interface RegoinOption extends GeoStateOption, StatesOptionMixin {\n name?: string\n selected?: boolean\n tooltip?: CommonTooltipOption\n}\n\nexport interface GeoTooltipFormatterParams {\n componentType: 'geo'\n geoIndex: number\n name: string\n $vars: ['name']\n}\n\nexport interface GeoCommonOptionMixin extends RoamOptionMixin {\n // Map name\n map: string;\n\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n aspectScale?: number;\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // Like: `40` or `'50%'`.\n layoutCenter?: (number | string)[];\n // Like: `40` or `'50%'`.\n layoutSize?: number | string;\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n // higher priority than center and zoom\n boundingCoords?: number[][];\n\n nameMap?: NameMap;\n nameProperty?: string;\n}\n\nexport interface GeoOption extends\n ComponentOption,\n BoxLayoutOptionMixin,\n // For lens animation on geo.\n AnimationOptionMixin,\n GeoCommonOptionMixin,\n StatesOptionMixin, GeoStateOption {\n mainType?: 'geo';\n\n show?: boolean;\n silent?: boolean;\n\n regions?: RegoinOption[];\n\n stateAnimation?: AnimationOptionMixin\n\n selectedMode?: 'single' | 'multiple' | boolean\n selectedMap?: Dictionary\n\n tooltip?: CommonTooltipOption\n}\n\nclass GeoModel extends ComponentModel {\n\n static type = 'geo';\n readonly type = GeoModel.type;\n\n coordinateSystem: Geo;\n\n static layoutMode = 'box' as const;\n\n private _optionModelMap: zrUtil.HashMap>;\n\n static defaultOption: GeoOption = {\n\n zlevel: 0,\n\n z: 0,\n\n show: true,\n\n left: 'center',\n\n top: 'center',\n\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n\n silent: false,\n\n // Map type\n map: '',\n\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n boundingCoords: null,\n\n // Default on center of map\n center: null,\n\n zoom: 1,\n\n scaleLimit: null,\n\n // selectedMode: false\n\n label: {\n show: false,\n color: '#000'\n },\n\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444'\n // Default color:\n // + geoJSON: #eee\n // + geoSVG: null (use SVG original `fill`)\n // color: '#eee'\n },\n\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n\n regions: []\n\n // tooltip: {\n // show: false\n // }\n };\n\n init(option: GeoOption, parentModel: Model, ecModel: GlobalModel): void {\n const source = geoSourceManager.getGeoResource(option.map);\n if (source && source.type === 'geoJSON') {\n const itemStyle = option.itemStyle = option.itemStyle || {};\n if (!('color' in itemStyle)) {\n itemStyle.color = '#eee';\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n // Default label emphasis `show`\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n }\n\n optionUpdated(): void {\n const option = this.option;\n\n option.regions = geoCreator.getFilledRegions(\n option.regions, option.map, option.nameMap, option.nameProperty\n );\n\n const selectedMap: Dictionary = {};\n this._optionModelMap = zrUtil.reduce(option.regions || [], (optionModelMap, regionOpt) => {\n const regionName = regionOpt.name;\n if (regionName) {\n optionModelMap.set(regionName, new Model(regionOpt, this, this.ecModel));\n if (regionOpt.selected) {\n selectedMap[regionName] = true;\n }\n }\n return optionModelMap;\n }, zrUtil.createHashMap());\n\n if (!option.selectedMap) {\n option.selectedMap = selectedMap;\n }\n }\n\n /**\n * Get model of region.\n */\n getRegionModel(name: string): Model {\n return this._optionModelMap.get(name) || new Model(null, this, this.ecModel);\n }\n\n /**\n * Format label\n * @param name Region name\n */\n getFormattedLabel(name: string, status?: DisplayState) {\n const regionModel = this.getRegionModel(name);\n const formatter = status === 'normal'\n ? regionModel.get(['label', 'formatter'])\n : regionModel.get(['emphasis', 'label', 'formatter']);\n const params = {\n name: name\n } as GeoLabelFormatterDataParams;\n if (typeof formatter === 'function') {\n params.status = status;\n return formatter(params);\n }\n else if (typeof formatter === 'string') {\n return formatter.replace('{a}', name != null ? name : '');\n }\n }\n\n setZoom(zoom: number): void {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]): void {\n this.option.center = center;\n }\n\n // PENGING If selectedMode is null ?\n select(name?: string): void {\n const option = this.option;\n const selectedMode = option.selectedMode;\n if (!selectedMode) {\n return;\n }\n if (selectedMode !== 'multiple') {\n option.selectedMap = null;\n }\n\n const selectedMap = option.selectedMap || (option.selectedMap = {});\n selectedMap[name] = true;\n }\n\n unSelect(name?: string): void {\n const selectedMap = this.option.selectedMap;\n if (selectedMap) {\n selectedMap[name] = false;\n }\n }\n\n toggleSelected(name?: string): void {\n this[this.isSelected(name) ? 'unSelect' : 'select'](name);\n }\n\n isSelected(name?: string): boolean {\n const selectedMap = this.option.selectedMap;\n return !!(selectedMap && selectedMap[name]);\n }\n\n}\n\nexport default GeoModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport View from '../coord/View';\nimport { Payload } from '../util/types';\n\nexport interface RoamPaylod extends Payload {\n dx: number\n dy: number\n zoom: number\n originX: number\n originY: number\n}\n\nexport function updateCenterAndZoom(\n view: View,\n payload: RoamPaylod,\n zoomLimit?: {\n min?: number,\n max?: number\n }\n) {\n const previousZoom = view.getZoom();\n const center = view.getCenter();\n let zoom = payload.zoom;\n\n const point = view.dataToPoint(center);\n\n if (payload.dx != null && payload.dy != null) {\n point[0] -= payload.dx;\n point[1] -= payload.dy;\n\n view.setCenter(view.pointToData(point));\n }\n if (zoom != null) {\n if (zoomLimit) {\n const zoomMin = zoomLimit.min || 0;\n const zoomMax = zoomLimit.max || Infinity;\n zoom = Math.max(\n Math.min(previousZoom * zoom, zoomMax),\n zoomMin\n ) / previousZoom;\n }\n\n // Zoom on given point(originX, originY)\n view.scaleX *= zoom;\n view.scaleY *= zoom;\n const fixX = (payload.originX - view.x) * (zoom - 1);\n const fixY = (payload.originY - view.y) * (zoom - 1);\n\n view.x -= fixX;\n view.y -= fixY;\n\n view.updateTransform();\n // Get the new center\n view.setCenter(view.pointToData(point));\n view.setZoom(zoom * previousZoom);\n }\n\n return {\n center: view.getCenter(),\n zoom: view.getZoom()\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport MapDraw from '../helper/MapDraw';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport { Payload, ZRElementEvent, ECEventData } from '../../util/types';\nimport { getECData } from '../../util/innerStore';\nimport { findEventDispatcher } from '../../util/event';\nimport Element from 'zrender/src/Element';\n\nclass GeoView extends ComponentView {\n\n static type = 'geo' as const;\n readonly type = GeoView.type;\n\n private _mapDraw: MapDraw;\n\n private _api: ExtensionAPI;\n\n private _model: GeoModel;\n\n focusBlurEnabled = true;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this._api = api;\n }\n\n render(\n geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload\n ): void {\n this._model = geoModel;\n\n if (!geoModel.get('show')) {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n return;\n }\n\n if (!this._mapDraw) {\n this._mapDraw = new MapDraw(api);\n }\n const mapDraw = this._mapDraw;\n mapDraw.draw(geoModel, ecModel, api, this, payload);\n mapDraw.group.on('click', this._handleRegionClick, this);\n mapDraw.group.silent = geoModel.get('silent');\n this.group.add(mapDraw.group);\n this.updateSelectStatus(geoModel, ecModel, api);\n }\n\n private _handleRegionClick(e: ZRElementEvent) {\n let eventData: ECEventData;\n\n findEventDispatcher(e.target, current => {\n return (eventData = getECData(current).eventData) != null;\n }, true);\n\n if (eventData) {\n this._api.dispatchAction({\n type: 'geoToggleSelect',\n geoId: this._model.id,\n name: eventData.name\n });\n }\n }\n\n updateSelectStatus(model: GeoModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._mapDraw.group.traverse((node) => {\n const eventData = getECData(node).eventData;\n if (eventData) {\n this._model.isSelected(eventData.name)\n ? api.enterSelect(node) : api.leaveSelect(node);\n // No need to traverse children.\n return true;\n }\n });\n }\n\n findHighDownDispatchers(name: string): Element[] {\n return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model);\n }\n\n dispose(): void {\n this._mapDraw && this._mapDraw.remove();\n }\n\n}\n\nexport default GeoView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport geoCreator from '../../coord/geo/geoCreator';\nimport { ActionInfo } from '../../util/types';\nimport { each } from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport { updateCenterAndZoom, RoamPaylod } from '../../action/roamHelper';\nimport MapSeries from '../../chart/map/MapSeries';\nimport GeoView from './GeoView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerCoordinateSystem('geo', geoCreator);\n\n registers.registerComponentModel(GeoModel);\n registers.registerComponentView(GeoView);\n\n\n function makeAction(\n method: 'toggleSelected' | 'select' | 'unSelect',\n actionInfo: ActionInfo\n ): void {\n actionInfo.update = 'geo:updateSelectStatus';\n registers.registerAction(actionInfo, function (payload, ecModel) {\n const selected = {} as {[regionName: string]: boolean};\n const allSelected = [] as ({ name: string[], geoIndex: number })[];\n\n ecModel.eachComponent(\n { mainType: 'geo', query: payload},\n function (geoModel: GeoModel) {\n geoModel[method](payload.name);\n const geo = geoModel.coordinateSystem;\n\n each(geo.regions, function (region) {\n selected[region.name] = geoModel.isSelected(region.name) || false;\n });\n\n // Notice: there might be duplicated name in different regions.\n const names = [] as string[];\n each(selected, function (v, name) {\n selected[name] && names.push(name);\n });\n allSelected.push({\n geoIndex: geoModel.componentIndex,\n // Use singular, the same naming convention as the event `selectchanged`.\n name: names\n });\n }\n );\n\n return {\n selected: selected,\n allSelected: allSelected,\n name: payload.name\n };\n });\n }\n\n makeAction('toggleSelected', {\n type: 'geoToggleSelect',\n event: 'geoselectchanged'\n });\n makeAction('select', {\n type: 'geoSelect',\n event: 'geoselected'\n });\n makeAction('unSelect', {\n type: 'geoUnSelect',\n event: 'geounselected'\n });\n\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n registers.registerAction({\n type: 'geoRoam',\n event: 'geoRoam',\n update: 'updateTransform'\n }, function (payload: RoamPaylod, ecModel: GlobalModel) {\n const componentType = payload.componentType || 'series';\n\n ecModel.eachComponent(\n { mainType: componentType, query: payload },\n function (componentModel: GeoModel | MapSeries) {\n const geo = componentModel.coordinateSystem;\n if (geo.type !== 'geo') {\n return;\n }\n\n const res = updateCenterAndZoom(\n geo, payload, (componentModel as GeoModel).get('scaleLimit')\n );\n\n componentModel.setCenter\n && componentModel.setCenter(res.center);\n\n componentModel.setZoom\n && componentModel.setZoom(res.zoom);\n\n // All map series with same `map` use the same geo coordinate system\n // So the center and zoom must be in sync. Include the series not selected by legend\n if (componentType === 'series') {\n each((componentModel as MapSeries).seriesGroup, function (seriesModel) {\n seriesModel.setCenter(res.center);\n seriesModel.setZoom(res.zoom);\n });\n }\n }\n );\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport MapView from './MapView';\nimport MapSeries from './MapSeries';\nimport mapDataStatistic from './mapDataStatistic';\nimport mapSymbolLayout from './mapSymbolLayout';\nimport {createLegacyDataSelectAction} from '../../legacy/dataSelectAction';\nimport {install as installGeo} from '../../component/geo/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installGeo);\n\n registers.registerChartView(MapView);\n registers.registerSeriesModel(MapSeries);\n\n registers.registerLayout(mapSymbolLayout);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);\n\n createLegacyDataSelectAction('map', registers.registerAction);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The tree layoutHelper implementation was originally copied from\n* \"d3.js\"(https://github.com/d3/d3-hierarchy) with\n* some modifications made for this project.\n* (see more details in the comment of the specific method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the licence of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n/**\n * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing\n * the tree.\n */\n\nimport * as layout from '../../util/layout';\nimport { TreeNode } from '../../data/Tree';\nimport TreeSeriesModel from './TreeSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\ninterface HierNode {\n defaultAncestor: TreeLayoutNode,\n ancestor: TreeLayoutNode,\n prelim: number,\n modifier: number,\n change: number,\n shift: number,\n i: number,\n thread: TreeLayoutNode\n}\n\nexport interface TreeLayoutNode extends TreeNode {\n parentNode: TreeLayoutNode\n hierNode: HierNode\n children: TreeLayoutNode[]\n}\n/**\n * Initialize all computational message for following algorithm.\n */\nexport function init(inRoot: TreeNode) {\n const root = inRoot as TreeLayoutNode;\n root.hierNode = {\n defaultAncestor: null,\n ancestor: root,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: 0,\n thread: null\n };\n\n const nodes = [root];\n let node;\n let children;\n\n while (node = nodes.pop()) { // jshint ignore:line\n children = node.children;\n if (node.isExpand && children.length) {\n const n = children.length;\n for (let i = n - 1; i >= 0; i--) {\n const child = children[i];\n child.hierNode = {\n defaultAncestor: null,\n ancestor: child,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: i,\n thread: null\n };\n nodes.push(child);\n }\n }\n }\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes a preliminary x coordinate for node. Before that, this function is\n * applied recursively to the children of node, as well as the function\n * apportion(). After spacing out the children by calling executeShifts(), the\n * node is placed to the midpoint of its outermost children.\n */\nexport function firstWalk(node: TreeLayoutNode, separation: SeparationFunc) {\n const children = node.isExpand ? node.children : [];\n const siblings = node.parentNode.children;\n const subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null;\n if (children.length) {\n executeShifts(node);\n const midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;\n if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n node.hierNode.modifier = node.hierNode.prelim - midPoint;\n }\n else {\n node.hierNode.prelim = midPoint;\n }\n }\n else if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n }\n node.parentNode.hierNode.defaultAncestor = apportion(\n node,\n subtreeW,\n node.parentNode.hierNode.defaultAncestor || siblings[0],\n separation\n );\n}\n\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes all real x-coordinates by summing up the modifiers recursively.\n */\nexport function secondWalk(node: TreeLayoutNode) {\n const nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;\n node.setLayout({x: nodeX}, true);\n node.hierNode.modifier += node.parentNode.hierNode.modifier;\n}\n\n\nexport function separation(cb?: SeparationFunc) {\n return arguments.length ? cb : defaultSeparation;\n}\n\n/**\n * Transform the common coordinate to radial coordinate.\n */\nexport function radialCoordinate(rad: number, r: number) {\n rad -= Math.PI / 2;\n return {\n x: r * Math.cos(rad),\n y: r * Math.sin(rad)\n };\n}\n\n/**\n * Get the layout position of the whole view.\n */\nexport function getViewRect(seriesModel: TreeSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\n/**\n * All other shifts, applied to the smaller subtrees between w- and w+, are\n * performed by this function.\n *\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nfunction executeShifts(node: TreeLayoutNode) {\n const children = node.children;\n let n = children.length;\n let shift = 0;\n let change = 0;\n while (--n >= 0) {\n const child = children[n];\n child.hierNode.prelim += shift;\n child.hierNode.modifier += shift;\n change += child.hierNode.change;\n shift += child.hierNode.shift + change;\n }\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * The core of the algorithm. Here, a new subtree is combined with the\n * previous subtrees. Threads are used to traverse the inside and outside\n * contours of the left and right subtree up to the highest common level.\n * Whenever two nodes of the inside contours conflict, we compute the left\n * one of the greatest uncommon ancestors using the function nextAncestor()\n * and call moveSubtree() to shift the subtree and prepare the shifts of\n * smaller subtrees. Finally, we add a new thread (if necessary).\n */\nfunction apportion(\n subtreeV: TreeLayoutNode,\n subtreeW: TreeLayoutNode,\n ancestor: TreeLayoutNode,\n separation: SeparationFunc\n): TreeLayoutNode {\n\n if (subtreeW) {\n let nodeOutRight = subtreeV;\n let nodeInRight = subtreeV;\n let nodeOutLeft = nodeInRight.parentNode.children[0];\n let nodeInLeft = subtreeW;\n\n let sumOutRight = nodeOutRight.hierNode.modifier;\n let sumInRight = nodeInRight.hierNode.modifier;\n let sumOutLeft = nodeOutLeft.hierNode.modifier;\n let sumInLeft = nodeInLeft.hierNode.modifier;\n\n while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {\n nodeOutRight = nextRight(nodeOutRight);\n nodeOutLeft = nextLeft(nodeOutLeft);\n nodeOutRight.hierNode.ancestor = subtreeV;\n const shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim\n - sumInRight + separation(nodeInLeft, nodeInRight);\n if (shift > 0) {\n moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);\n sumInRight += shift;\n sumOutRight += shift;\n }\n sumInLeft += nodeInLeft.hierNode.modifier;\n sumInRight += nodeInRight.hierNode.modifier;\n sumOutRight += nodeOutRight.hierNode.modifier;\n sumOutLeft += nodeOutLeft.hierNode.modifier;\n }\n if (nodeInLeft && !nextRight(nodeOutRight)) {\n nodeOutRight.hierNode.thread = nodeInLeft;\n nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;\n\n }\n if (nodeInRight && !nextLeft(nodeOutLeft)) {\n nodeOutLeft.hierNode.thread = nodeInRight;\n nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;\n ancestor = subtreeV;\n }\n }\n return ancestor;\n}\n\n/**\n * This function is used to traverse the right contour of a subtree.\n * It returns the rightmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\nfunction nextRight(node: TreeLayoutNode): TreeLayoutNode {\n const children = node.children;\n return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;\n}\n\n/**\n * This function is used to traverse the left contour of a subtree (or a subforest).\n * It returns the leftmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\nfunction nextLeft(node: TreeLayoutNode) {\n const children = node.children;\n return children.length && node.isExpand ? children[0] : node.hierNode.thread;\n}\n\n/**\n * If nodeInLeft\u2019s ancestor is a sibling of node, returns nodeInLeft\u2019s ancestor.\n * Otherwise, returns the specified ancestor.\n */\nfunction nextAncestor(\n nodeInLeft: TreeLayoutNode,\n node: TreeLayoutNode,\n ancestor: TreeLayoutNode\n): TreeLayoutNode {\n return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode\n ? nodeInLeft.hierNode.ancestor : ancestor;\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Shifts the current subtree rooted at wr.\n * This is done by increasing prelim(w+) and modifier(w+) by shift.\n */\nfunction moveSubtree(\n wl: TreeLayoutNode,\n wr: TreeLayoutNode,\n shift: number\n) {\n const change = shift / (wr.hierNode.i - wl.hierNode.i);\n wr.hierNode.change -= change;\n wr.hierNode.shift += shift;\n wr.hierNode.modifier += shift;\n wr.hierNode.prelim += shift;\n wl.hierNode.change += change;\n}\n\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\nfunction defaultSeparation(node1: TreeLayoutNode, node2: TreeLayoutNode): number {\n return node1.parentNode === node2.parentNode ? 1 : 2;\n}\n\ninterface SeparationFunc {\n (node1: TreeLayoutNode, node2: TreeLayoutNode): number\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport SymbolClz from '../helper/Symbol';\nimport {radialCoordinate} from './layoutHelper';\nimport * as bbox from 'zrender/src/core/bbox';\nimport View from '../../coord/View';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport RoamController, { RoamControllerHost } from '../../component/helper/RoamController';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport {parsePercent} from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport TreeSeriesModel, { TreeSeriesOption, TreeSeriesNodeItemOption } from './TreeSeries';\nimport Path, { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport SeriesData from '../../data/SeriesData';\nimport { setStatesStylesFromModel, setStatesFlag, setDefaultStateProxy, HOVER_STATE_BLUR } from '../../util/states';\nimport { AnimationOption, ECElement } from '../../util/types';\n\ntype TreeSymbol = SymbolClz & {\n __edge: graphic.BezierCurve | TreePath\n\n __radialOldRawX: number\n __radialOldRawY: number\n __radialRawX: number\n __radialRawY: number\n\n __oldX: number\n __oldY: number\n};\n\nclass TreeEdgeShape {\n parentPoint: number[] = [];\n childPoints: number[][] = [];\n orient: TreeSeriesOption['orient'];\n forkPosition: TreeSeriesOption['edgeForkPosition'];\n}\n\ninterface TreeEdgePathProps extends PathProps {\n shape?: Partial\n}\n\ninterface TreeNodeLayout {\n x: number\n y: number\n rawX: number\n rawY: number\n}\n\nclass TreePath extends Path {\n shape: TreeEdgeShape;\n constructor(opts?: TreeEdgePathProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as string\n };\n }\n\n getDefaultShape() {\n return new TreeEdgeShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: TreeEdgeShape) {\n const childPoints = shape.childPoints;\n const childLen = childPoints.length;\n const parentPoint = shape.parentPoint;\n const firstChildPos = childPoints[0];\n const lastChildPos = childPoints[childLen - 1];\n\n if (childLen === 1) {\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(firstChildPos[0], firstChildPos[1]);\n return;\n }\n\n const orient = shape.orient;\n const forkDim = (orient === 'TB' || orient === 'BT') ? 0 : 1;\n const otherDim = 1 - forkDim;\n const forkPosition = parsePercent(shape.forkPosition, 1);\n const tmpPoint = [];\n tmpPoint[forkDim] = parentPoint[forkDim];\n tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition;\n\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.moveTo(firstChildPos[0], firstChildPos[1]);\n tmpPoint[forkDim] = firstChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n tmpPoint[forkDim] = lastChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.lineTo(lastChildPos[0], lastChildPos[1]);\n\n for (let i = 1; i < childLen - 1; i++) {\n const point = childPoints[i];\n ctx.moveTo(point[0], point[1]);\n tmpPoint[forkDim] = point[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n }\n }\n}\n\nclass TreeView extends ChartView {\n\n static readonly type = 'tree';\n readonly type = TreeView.type;\n\n private _mainGroup = new graphic.Group();\n\n private _controller: RoamController;\n private _controllerHost: RoamControllerHost;\n\n private _data: SeriesData;\n\n private _nodeScaleRatio: number;\n private _min: number[];\n private _max: number[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n\n\n this._controller = new RoamController(api.getZr());\n\n this._controllerHost = {\n target: this.group\n } as RoamControllerHost;\n\n this.group.add(this._mainGroup);\n }\n\n render(\n seriesModel: TreeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const data = seriesModel.getData();\n\n const layoutInfo = seriesModel.layoutInfo;\n\n const group = this._mainGroup;\n\n const layout = seriesModel.get('layout');\n\n if (layout === 'radial') {\n group.x = layoutInfo.x + layoutInfo.width / 2;\n group.y = layoutInfo.y + layoutInfo.height / 2;\n }\n else {\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n }\n\n this._updateViewCoordSys(seriesModel);\n this._updateController(seriesModel, ecModel, api);\n\n const oldData = this._data;\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (symbolNeedsDraw(data, newIdx)) {\n // Create node and edge\n updateNode(data, newIdx, null, group, seriesModel);\n }\n })\n .update(function (newIdx, oldIdx) {\n const symbolEl = oldData.getItemGraphicEl(oldIdx) as TreeSymbol;\n if (!symbolNeedsDraw(data, newIdx)) {\n symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n return;\n }\n // Update node and edge\n updateNode(data, newIdx, symbolEl, group, seriesModel);\n })\n .remove(function (oldIdx) {\n const symbolEl = oldData.getItemGraphicEl(oldIdx) as TreeSymbol;\n // When remove a collapsed node of subtree, since the collapsed\n // node haven't been initialized with a symbol element,\n // you can't found it's symbol element through index.\n // so if we want to remove the symbol element we should insure\n // that the symbol element is not null.\n if (symbolEl) {\n removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n }\n })\n .execute();\n\n this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');\n\n this._updateNodeAndLinkScale(seriesModel);\n\n if (seriesModel.get('expandAndCollapse') === true) {\n data.eachItemGraphicEl(function (el, dataIndex) {\n el.off('click').on('click', function () {\n api.dispatchAction({\n type: 'treeExpandAndCollapse',\n seriesId: seriesModel.id,\n dataIndex: dataIndex\n });\n });\n });\n }\n this._data = data;\n }\n\n _updateViewCoordSys(seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n const points: number[][] = [];\n data.each(function (idx) {\n const layout = data.getItemLayout(idx);\n if (layout && !isNaN(layout.x) && !isNaN(layout.y)) {\n points.push([+layout.x, +layout.y]);\n }\n });\n const min: number[] = [];\n const max: number[] = [];\n bbox.fromPoints(points, min, max);\n\n // If don't Store min max when collapse the root node after roam,\n // the root node will disappear.\n const oldMin = this._min;\n const oldMax = this._max;\n\n // If width or height is 0\n if (max[0] - min[0] === 0) {\n min[0] = oldMin ? oldMin[0] : min[0] - 1;\n max[0] = oldMax ? oldMax[0] : max[0] + 1;\n }\n if (max[1] - min[1] === 0) {\n min[1] = oldMin ? oldMin[1] : min[1] - 1;\n max[1] = oldMax ? oldMax[1] : max[1] + 1;\n }\n\n const viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n\n viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n\n // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group\n this.group.attr({\n x: viewCoordSys.x,\n y: viewCoordSys.y,\n scaleX: viewCoordSys.scaleX,\n scaleY: viewCoordSys.scaleY\n });\n\n this._min = min;\n this._max = max;\n }\n\n _updateController(\n seriesModel: TreeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n const group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n const rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y)\n && !onIrrelevantElement(e, api, seriesModel);\n });\n\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n\n controller\n .off('pan')\n .off('zoom')\n .on('pan', (e) => {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n dx: e.dx,\n dy: e.dy\n });\n })\n .on('zoom', (e) => {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n this._updateNodeAndLinkScale(seriesModel);\n // Only update label layout on zoom\n api.updateLabelLayout();\n });\n }\n\n _updateNodeAndLinkScale(seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n\n const nodeScale = this._getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el: SymbolClz, idx) {\n el.setSymbolScale(nodeScale);\n });\n }\n\n _getNodeGlobalScale(seriesModel: TreeSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n const nodeScaleRatio = this._nodeScaleRatio;\n\n const groupZoom = coordSys.scaleX || 1;\n // Scale node when zoom changes\n const roamZoom = coordSys.getZoom();\n const nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n\n return nodeScale / groupZoom;\n }\n\n dispose() {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n }\n\n remove() {\n this._mainGroup.removeAll();\n this._data = null;\n }\n\n}\n\nfunction symbolNeedsDraw(data: SeriesData, dataIndex: number) {\n const layout = data.getItemLayout(dataIndex);\n\n return layout\n && !isNaN(layout.x) && !isNaN(layout.y);\n}\n\n\nfunction updateNode(\n data: SeriesData,\n dataIndex: number,\n symbolEl: TreeSymbol,\n group: graphic.Group,\n seriesModel: TreeSeriesModel\n) {\n const isInit = !symbolEl;\n const node = data.tree.getNodeByDataIndex(dataIndex);\n const itemModel = node.getModel();\n const visualColor = (node.getVisual('style') as PathStyleProps).fill;\n const symbolInnerColor = node.isExpand === false && node.children.length !== 0\n ? visualColor : '#fff';\n\n const virtualRoot = data.tree.root;\n\n const source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n const sourceSymbolEl = data.getItemGraphicEl(source.dataIndex) as TreeSymbol;\n const sourceLayout = source.getLayout() as TreeNodeLayout;\n const sourceOldLayout = sourceSymbolEl\n ? {\n x: sourceSymbolEl.__oldX,\n y: sourceSymbolEl.__oldY,\n rawX: sourceSymbolEl.__radialOldRawX,\n rawY: sourceSymbolEl.__radialOldRawY\n }\n : sourceLayout;\n const targetLayout = node.getLayout();\n\n if (isInit) {\n symbolEl = new SymbolClz(data, dataIndex, null, {\n symbolInnerColor,\n useNameLabel: true\n }) as TreeSymbol;\n symbolEl.x = sourceOldLayout.x;\n symbolEl.y = sourceOldLayout.y;\n }\n else {\n symbolEl.updateData(data, dataIndex, null, {\n symbolInnerColor,\n useNameLabel: true\n });\n }\n\n symbolEl.__radialOldRawX = symbolEl.__radialRawX;\n symbolEl.__radialOldRawY = symbolEl.__radialRawY;\n symbolEl.__radialRawX = targetLayout.rawX;\n symbolEl.__radialRawY = targetLayout.rawY;\n\n group.add(symbolEl);\n data.setItemGraphicEl(dataIndex, symbolEl);\n\n symbolEl.__oldX = symbolEl.x;\n symbolEl.__oldY = symbolEl.y;\n\n graphic.updateProps(symbolEl, {\n x: targetLayout.x,\n y: targetLayout.y\n }, seriesModel);\n\n const symbolPath = symbolEl.getSymbolPath();\n\n if (seriesModel.get('layout') === 'radial') {\n const realRoot = virtualRoot.children[0];\n const rootLayout = realRoot.getLayout();\n const length = realRoot.children.length;\n let rad;\n let isLeft;\n\n if (targetLayout.x === rootLayout.x && node.isExpand === true) {\n const center = {\n x: (realRoot.children[0].getLayout().x + realRoot.children[length - 1].getLayout().x) / 2,\n y: (realRoot.children[0].getLayout().y + realRoot.children[length - 1].getLayout().y) / 2\n };\n rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n isLeft = center.x < rootLayout.x;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n }\n else {\n rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n if (node.children.length === 0 || (node.children.length !== 0 && node.isExpand === false)) {\n isLeft = targetLayout.x < rootLayout.x;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n }\n else {\n isLeft = targetLayout.x > rootLayout.x;\n if (!isLeft) {\n rad = rad - Math.PI;\n }\n }\n }\n\n const textPosition = isLeft ? 'left' as const : 'right' as const;\n const normalLabelModel = itemModel.getModel('label');\n const rotate = normalLabelModel.get('rotate');\n const labelRotateRadian = rotate * (Math.PI / 180);\n\n const textContent = symbolPath.getTextContent();\n if (textContent) {\n symbolPath.setTextConfig({\n position: normalLabelModel.get('position') || textPosition,\n rotation: rotate == null ? -rad : labelRotateRadian,\n origin: 'center'\n });\n textContent.setStyle('verticalAlign', 'middle');\n }\n\n }\n\n // Handle status\n const focus = itemModel.get(['emphasis', 'focus']);\n const focusDataIndices: number[] = focus === 'ancestor'\n ? node.getAncestorsIndices()\n : focus === 'descendant' ? node.getDescendantIndices() : null;\n\n if (focusDataIndices) {\n // Modify the focus to data indices.\n getECData(symbolEl).focus = focusDataIndices;\n }\n\n drawEdge(\n seriesModel, node, virtualRoot, symbolEl, sourceOldLayout,\n sourceLayout, targetLayout, group\n );\n\n if (symbolEl.__edge) {\n (symbolEl as ECElement).onHoverStateChange = function (toState) {\n if (toState !== 'blur') {\n // NOTE: Ensure the parent elements will been blurred firstly.\n // According to the return of getAncestorsIndices and getDescendantIndices\n // TODO: A bit tricky.\n const parentEl = node.parentNode\n && data.getItemGraphicEl(node.parentNode.dataIndex);\n if (!(parentEl && (parentEl as ECElement).hoverState === HOVER_STATE_BLUR)) {\n setStatesFlag(symbolEl.__edge, toState);\n }\n }\n };\n }\n}\n\nfunction drawEdge(\n seriesModel: TreeSeriesModel,\n node: TreeNode,\n virtualRoot: TreeNode,\n symbolEl: TreeSymbol,\n sourceOldLayout: TreeNodeLayout,\n sourceLayout: TreeNodeLayout,\n targetLayout: TreeNodeLayout,\n group: graphic.Group\n) {\n const itemModel = node.getModel();\n const edgeShape = seriesModel.get('edgeShape');\n const layout = seriesModel.get('layout');\n const orient = seriesModel.getOrient();\n const curvature = seriesModel.get(['lineStyle', 'curveness']);\n const edgeForkPosition = seriesModel.get('edgeForkPosition');\n const lineStyle = itemModel.getModel('lineStyle').getLineStyle();\n let edge = symbolEl.__edge;\n if (edgeShape === 'curve') {\n if (node.parentNode && node.parentNode !== virtualRoot) {\n if (!edge) {\n edge = symbolEl.__edge = new graphic.BezierCurve({\n shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout)\n });\n }\n\n graphic.updateProps(edge as Path, {\n shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout)\n }, seriesModel);\n }\n }\n else if (edgeShape === 'polyline') {\n if (layout === 'orthogonal') {\n if (node !== virtualRoot && node.children && (node.children.length !== 0) && (node.isExpand === true)) {\n const children = node.children;\n const childPoints = [];\n for (let i = 0; i < children.length; i++) {\n const childLayout = children[i].getLayout();\n childPoints.push([childLayout.x, childLayout.y]);\n }\n\n if (!edge) {\n edge = symbolEl.__edge = new TreePath({\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: [[targetLayout.x, targetLayout.y]],\n orient: orient,\n forkPosition: edgeForkPosition\n }\n });\n }\n graphic.updateProps(edge as Path, {\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: childPoints\n }\n }, seriesModel);\n }\n }\n else {\n if (__DEV__) {\n throw new Error('The polyline edgeShape can only be used in orthogonal layout');\n }\n }\n }\n\n if (edge) {\n edge.useStyle(zrUtil.defaults({\n strokeNoScale: true, fill: null\n }, lineStyle));\n\n setStatesStylesFromModel(edge, itemModel, 'lineStyle');\n setDefaultStateProxy(edge);\n\n group.add(edge);\n }\n}\n\nfunction removeNodeEdge(\n node: TreeNode,\n data: SeriesData,\n group: graphic.Group,\n seriesModel: TreeSeriesModel,\n removeAnimationOpt: AnimationOption\n) {\n const virtualRoot = data.tree.root;\n const { source, sourceLayout } = getSourceNode(virtualRoot, node);\n\n const symbolEl: TreeSymbol = data.getItemGraphicEl(node.dataIndex) as TreeSymbol;\n\n if (!symbolEl) {\n return;\n }\n\n const sourceSymbolEl = data.getItemGraphicEl(source.dataIndex) as TreeSymbol;\n const sourceEdge = sourceSymbolEl.__edge;\n\n // 1. when expand the sub tree, delete the children node should delete the edge of\n // the source at the same time. because the polyline edge shape is only owned by the source.\n // 2.when the node is the only children of the source, delete the node should delete the edge of\n // the source at the same time. the same reason as above.\n const edge = symbolEl.__edge\n || ((source.isExpand === false || source.children.length === 1) ? sourceEdge : undefined);\n\n const edgeShape = seriesModel.get('edgeShape');\n const layoutOpt = seriesModel.get('layout');\n const orient = seriesModel.get('orient');\n const curvature = seriesModel.get(['lineStyle', 'curveness']);\n\n if (edge) {\n if (edgeShape === 'curve') {\n graphic.removeElement(edge as Path, {\n shape: getEdgeShape(\n layoutOpt,\n orient,\n curvature,\n sourceLayout,\n sourceLayout\n ),\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb() {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') {\n graphic.removeElement(edge as Path, {\n shape: {\n parentPoint: [sourceLayout.x, sourceLayout.y],\n childPoints: [[sourceLayout.x, sourceLayout.y]]\n },\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb() {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n }\n}\n\nfunction getSourceNode(virtualRoot: TreeNode, node: TreeNode): { source: TreeNode, sourceLayout: TreeNodeLayout } {\n let source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n let sourceLayout;\n while (sourceLayout = source.getLayout(), sourceLayout == null) {\n source = source.parentNode === virtualRoot ? source : source.parentNode || source;\n }\n return {\n source,\n sourceLayout\n };\n}\n\nfunction removeNode(\n data: SeriesData,\n dataIndex: number,\n symbolEl: TreeSymbol,\n group: graphic.Group,\n seriesModel: TreeSeriesModel\n) {\n const node = data.tree.getNodeByDataIndex(dataIndex);\n const virtualRoot = data.tree.root;\n\n const { sourceLayout } = getSourceNode(virtualRoot, node);\n\n // Use same duration and easing with update to have more consistent animation.\n const removeAnimationOpt = {\n duration: seriesModel.get('animationDurationUpdate') as number,\n easing: seriesModel.get('animationEasingUpdate')\n };\n\n graphic.removeElement(symbolEl, {\n x: sourceLayout.x + 1,\n y: sourceLayout.y + 1\n }, seriesModel, {\n cb() {\n group.remove(symbolEl);\n data.setItemGraphicEl(dataIndex, null);\n },\n removeOpt: removeAnimationOpt\n });\n\n symbolEl.fadeOut(null, {\n fadeLabel: true,\n animation: removeAnimationOpt\n });\n\n // remove edge as parent node\n node.children.forEach(childNode => {\n removeNodeEdge(childNode, data, group, seriesModel, removeAnimationOpt);\n });\n // remove edge as child node\n removeNodeEdge(node, data, group, seriesModel, removeAnimationOpt);\n}\n\nfunction getEdgeShape(\n layoutOpt: TreeSeriesOption['layout'],\n orient: TreeSeriesOption['orient'],\n curvature: number,\n sourceLayout: TreeNodeLayout,\n targetLayout: TreeNodeLayout\n) {\n let cpx1: number;\n let cpy1: number;\n let cpx2: number;\n let cpy2: number;\n let x1: number;\n let x2: number;\n let y1: number;\n let y2: number;\n\n if (layoutOpt === 'radial') {\n x1 = sourceLayout.rawX;\n y1 = sourceLayout.rawY;\n x2 = targetLayout.rawX;\n y2 = targetLayout.rawY;\n\n const radialCoor1 = radialCoordinate(x1, y1);\n const radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * curvature);\n const radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * curvature);\n const radialCoor4 = radialCoordinate(x2, y2);\n\n return {\n x1: radialCoor1.x || 0,\n y1: radialCoor1.y || 0,\n x2: radialCoor4.x || 0,\n y2: radialCoor4.y || 0,\n cpx1: radialCoor2.x || 0,\n cpy1: radialCoor2.y || 0,\n cpx2: radialCoor3.x || 0,\n cpy2: radialCoor3.y || 0\n };\n }\n else {\n x1 = sourceLayout.x;\n y1 = sourceLayout.y;\n x2 = targetLayout.x;\n y2 = targetLayout.y;\n\n if (orient === 'LR' || orient === 'RL') {\n cpx1 = x1 + (x2 - x1) * curvature;\n cpy1 = y1;\n cpx2 = x2 + (x1 - x2) * curvature;\n cpy2 = y2;\n }\n if (orient === 'TB' || orient === 'BT') {\n cpx1 = x1;\n cpy1 = y1 + (y2 - y1) * curvature;\n cpx2 = x2;\n cpy2 = y2 + (y1 - y2) * curvature;\n }\n }\n\n return {\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n };\n}\n\nexport default TreeView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Link lists and struct (graph or tree)\n */\n\nimport { curry, each, assert, extend, map, keys } from 'zrender/src/core/util';\nimport SeriesData from '../SeriesData';\nimport { makeInner } from '../../util/model';\nimport { SeriesDataType } from '../../util/types';\n\n// That is: { dataType: data },\n// like: { node: nodeList, edge: edgeList }.\n// Should contain mainData.\ntype Datas = { [key in SeriesDataType]?: SeriesData };\ntype StructReferDataAttr = 'data' | 'edgeData';\ntype StructAttr = 'tree' | 'graph';\n\nconst inner = makeInner<{\n datas: Datas;\n mainData: SeriesData;\n}, SeriesData>();\n\n\n// Caution:\n// In most case, either seriesData or its shallow clones (see seriesData.cloneShallow)\n// is active in echarts process. So considering heap memory consumption,\n// we do not clone tree or graph, but share them among seriesData and its shallow clones.\n// But in some rare case, we have to keep old seriesData (like do animation in chart). So\n// please take care that both the old seriesData and the new seriesData share the same tree/graph.\n\ntype LinkSeriesDataOpt = {\n mainData: SeriesData;\n // For example, instance of Graph or Tree.\n struct: {\n update: () => void;\n } & {\n [key in StructReferDataAttr]?: SeriesData\n };\n // Will designate: `mainData[structAttr] = struct;`\n structAttr: StructAttr;\n datas?: Datas;\n // { dataType: attr },\n // Will designate: `struct[datasAttr[dataType]] = list;`\n datasAttr?: { [key in SeriesDataType]?: StructReferDataAttr };\n};\n\nfunction linkSeriesData(opt: LinkSeriesDataOpt): void {\n const mainData = opt.mainData;\n let datas = opt.datas;\n\n if (!datas) {\n datas = { main: mainData };\n opt.datasAttr = { main: 'data' };\n }\n opt.datas = opt.mainData = null;\n\n linkAll(mainData, datas, opt);\n\n // Porxy data original methods.\n each(datas, function (data: SeriesData) {\n each(mainData.TRANSFERABLE_METHODS, function (methodName) {\n data.wrapMethod(methodName, curry(transferInjection, opt));\n });\n });\n\n // Beyond transfer, additional features should be added to `cloneShallow`.\n mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt));\n\n // Only mainData trigger change, because struct.update may trigger\n // another changable methods, which may bring about dead lock.\n each(mainData.CHANGABLE_METHODS, function (methodName) {\n mainData.wrapMethod(methodName, curry(changeInjection, opt));\n });\n\n // Make sure datas contains mainData.\n assert(datas[mainData.dataType] === mainData);\n}\n\nfunction transferInjection(this: SeriesData, opt: LinkSeriesDataOpt, res: SeriesData): unknown {\n if (isMainData(this)) {\n // Transfer datas to new main data.\n const datas = extend({}, inner(this).datas);\n datas[this.dataType] = res;\n linkAll(res, datas, opt);\n }\n else {\n // Modify the reference in main data to point newData.\n linkSingle(res, this.dataType, inner(this).mainData, opt);\n }\n return res;\n}\n\nfunction changeInjection(opt: LinkSeriesDataOpt, res: unknown): unknown {\n opt.struct && opt.struct.update();\n return res;\n}\n\nfunction cloneShallowInjection(opt: LinkSeriesDataOpt, res: SeriesData): SeriesData {\n // cloneShallow, which brings about some fragilities, may be inappropriate\n // to be exposed as an API. So for implementation simplicity we can make\n // the restriction that cloneShallow of not-mainData should not be invoked\n // outside, but only be invoked here.\n each(inner(res).datas, function (data: SeriesData, dataType) {\n data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);\n });\n return res;\n}\n\n/**\n * Supplement method to List.\n *\n * @public\n * @param [dataType] If not specified, return mainData.\n */\nfunction getLinkedData(this: SeriesData, dataType?: SeriesDataType): SeriesData {\n const mainData = inner(this).mainData;\n return (dataType == null || mainData == null)\n ? mainData\n : inner(mainData).datas[dataType];\n}\n\n/**\n * Get list of all linked data\n */\nfunction getLinkedDataAll(this: SeriesData): {\n data: SeriesData,\n type?: SeriesDataType\n}[] {\n const mainData = inner(this).mainData;\n return (mainData == null)\n ? [{ data: mainData }]\n : map(keys(inner(mainData).datas), function (type) {\n return {\n type,\n data: inner(mainData).datas[type]\n };\n });\n}\n\nfunction isMainData(data: SeriesData): boolean {\n return inner(data).mainData === data;\n}\n\nfunction linkAll(mainData: SeriesData, datas: Datas, opt: LinkSeriesDataOpt): void {\n inner(mainData).datas = {};\n each(datas, function (data: SeriesData, dataType) {\n linkSingle(data, dataType, mainData, opt);\n });\n}\n\nfunction linkSingle(data: SeriesData, dataType: SeriesDataType, mainData: SeriesData, opt: LinkSeriesDataOpt): void {\n inner(mainData).datas[dataType] = data;\n inner(data).mainData = mainData;\n\n data.dataType = dataType;\n\n if (opt.struct) {\n data[opt.structAttr] = opt.struct as any;\n opt.struct[opt.datasAttr[dataType]] = data;\n }\n\n // Supplement method.\n data.getLinkedData = getLinkedData;\n data.getLinkedDataAll = getLinkedDataAll;\n}\n\nexport default linkSeriesData;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Tree data structure\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from '../model/Model';\nimport linkSeriesData from './helper/linkSeriesData';\nimport SeriesData from './SeriesData';\nimport createDimensions from './helper/createDimensions';\nimport {\n DimensionLoose, ParsedValue, OptionDataValue,\n OptionDataItemObject\n} from '../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { convertOptionIdName } from '../util/model';\n\ntype TreeTraverseOrder = 'preorder' | 'postorder';\ntype TreeTraverseCallback = (this: Ctx, node: TreeNode) => boolean | void;\ntype TreeTraverseOption = {\n order?: TreeTraverseOrder\n attr?: 'children' | 'viewChildren'\n};\n\ninterface TreeNodeOption extends Pick, 'name' | 'value'> {\n children?: TreeNodeOption[];\n}\n\nexport class TreeNode {\n name: string;\n\n depth: number = 0;\n\n height: number = 0;\n\n parentNode: TreeNode;\n /**\n * Reference to list item.\n * Do not persistent dataIndex outside,\n * besause it may be changed by list.\n * If dataIndex -1,\n * this node is logical deleted (filtered) in list.\n */\n dataIndex: number = -1;\n\n children: TreeNode[] = [];\n\n viewChildren: TreeNode[] = [];\n\n isExpand: boolean = false;\n\n readonly hostTree: Tree;\n\n constructor(name: string, hostTree: Tree) {\n this.name = name || '';\n\n this.hostTree = hostTree;\n }\n /**\n * The node is removed.\n */\n isRemoved(): boolean {\n return this.dataIndex < 0;\n }\n\n /**\n * Travel this subtree (include this node).\n * Usage:\n * node.eachNode(function () { ... }); // preorder\n * node.eachNode('preorder', function () { ... }); // preorder\n * node.eachNode('postorder', function () { ... }); // postorder\n * node.eachNode(\n * {order: 'postorder', attr: 'viewChildren'},\n * function () { ... }\n * ); // postorder\n *\n * @param options If string, means order.\n * @param options.order 'preorder' or 'postorder'\n * @param options.attr 'children' or 'viewChildren'\n * @param cb If in preorder and return false,\n * its subtree will not be visited.\n */\n eachNode(options: TreeTraverseOrder, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(options: TreeTraverseOption, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(\n options: TreeTraverseOrder | TreeTraverseOption | TreeTraverseCallback,\n cb?: TreeTraverseCallback | Ctx,\n context?: Ctx\n ) {\n if (typeof options === 'function') {\n context = cb as Ctx;\n cb = options;\n options = null;\n }\n\n options = options || {};\n if (zrUtil.isString(options)) {\n options = {order: options};\n }\n\n const order = (options as TreeTraverseOption).order || 'preorder';\n const children = this[(options as TreeTraverseOption).attr || 'children'];\n\n let suppressVisitSub;\n order === 'preorder' && (suppressVisitSub = (cb as TreeTraverseCallback).call(context as Ctx, this));\n\n for (let i = 0; !suppressVisitSub && i < children.length; i++) {\n children[i].eachNode(\n options as TreeTraverseOption,\n cb as TreeTraverseCallback,\n context\n );\n }\n\n order === 'postorder' && (cb as TreeTraverseCallback).call(context, this);\n }\n\n /**\n * Update depth and height of this subtree.\n */\n updateDepthAndHeight(depth: number) {\n let height = 0;\n this.depth = depth;\n for (let i = 0; i < this.children.length; i++) {\n const child = this.children[i];\n child.updateDepthAndHeight(depth + 1);\n if (child.height > height) {\n height = child.height;\n }\n }\n this.height = height + 1;\n }\n\n getNodeById(id: string): TreeNode {\n if (this.getId() === id) {\n return this;\n }\n for (let i = 0, children = this.children, len = children.length; i < len; i++) {\n const res = children[i].getNodeById(id);\n if (res) {\n return res;\n }\n }\n }\n\n contains(node: TreeNode): boolean {\n if (node === this) {\n return true;\n }\n for (let i = 0, children = this.children, len = children.length; i < len; i++) {\n const res = children[i].contains(node);\n if (res) {\n return res;\n }\n }\n }\n\n /**\n * @param includeSelf Default false.\n * @return order: [root, child, grandchild, ...]\n */\n getAncestors(includeSelf?: boolean): TreeNode[] {\n const ancestors = [];\n let node = includeSelf ? this : this.parentNode;\n while (node) {\n ancestors.push(node);\n node = node.parentNode;\n }\n ancestors.reverse();\n return ancestors;\n }\n\n getAncestorsIndices(): number[] {\n const indices: number[] = [];\n let currNode = this as TreeNode;\n while (currNode) {\n indices.push(currNode.dataIndex);\n currNode = currNode.parentNode;\n }\n indices.reverse();\n return indices;\n }\n\n getDescendantIndices(): number[] {\n const indices: number[] = [];\n this.eachNode(childNode => {\n indices.push(childNode.dataIndex);\n });\n return indices;\n }\n\n getValue(dimension?: DimensionLoose): ParsedValue {\n const data = this.hostTree.data;\n return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);\n }\n\n setLayout(layout: any, merge?: boolean) {\n this.dataIndex >= 0\n && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);\n }\n\n /**\n * @return {Object} layout\n */\n getLayout(): any {\n return this.hostTree.data.getItemLayout(this.dataIndex);\n }\n\n getModel(): Model\n // @depcrecated\n // getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const hostTree = this.hostTree;\n const itemModel = hostTree.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path as any);\n }\n\n // TODO: TYPE More specific model\n getLevelModel(): Model {\n return (this.hostTree.levelModels || [])[this.depth];\n }\n\n /**\n * @example\n * setItemVisual('color', color);\n * setItemVisual({\n * 'color': color\n * });\n */\n // TODO: TYPE\n setVisual(key: string, value: any): void\n setVisual(obj: Dictionary): void\n setVisual(key: string | Dictionary, value?: any) {\n this.dataIndex >= 0\n && this.hostTree.data.setItemVisual(this.dataIndex, key as any, value);\n }\n\n /**\n * Get item visual\n * FIXME: make return type better\n */\n getVisual(key: string): unknown {\n return this.hostTree.data.getItemVisual(this.dataIndex, key as any);\n }\n\n getRawIndex(): number {\n return this.hostTree.data.getRawIndex(this.dataIndex);\n }\n\n getId(): string {\n return this.hostTree.data.getId(this.dataIndex);\n }\n\n /**\n * index in parent's children\n */\n getChildIndex(): number {\n if (this.parentNode) {\n const children = this.parentNode.children;\n for (let i = 0; i < children.length; ++i) {\n if (children[i] === this) {\n return i;\n }\n }\n return -1;\n }\n return -1;\n }\n\n /**\n * if this is an ancestor of another node\n *\n * @param node another node\n * @return if is ancestor\n */\n isAncestorOf(node: TreeNode): boolean {\n let parent = node.parentNode;\n while (parent) {\n if (parent === this) {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n }\n\n /**\n * if this is an descendant of another node\n *\n * @param node another node\n * @return if is descendant\n */\n isDescendantOf(node: TreeNode): boolean {\n return node !== this && node.isAncestorOf(this);\n }\n};\n\nclass Tree {\n\n type: 'tree' = 'tree';\n\n root: TreeNode;\n\n data: SeriesData;\n\n hostModel: HostModel;\n\n levelModels: Model[];\n\n private _nodes: TreeNode[] = [];\n\n constructor(hostModel: HostModel) {\n\n this.hostModel = hostModel;\n }\n /**\n * Travel this subtree (include this node).\n * Usage:\n * node.eachNode(function () { ... }); // preorder\n * node.eachNode('preorder', function () { ... }); // preorder\n * node.eachNode('postorder', function () { ... }); // postorder\n * node.eachNode(\n * {order: 'postorder', attr: 'viewChildren'},\n * function () { ... }\n * ); // postorder\n *\n * @param options If string, means order.\n * @param options.order 'preorder' or 'postorder'\n * @param options.attr 'children' or 'viewChildren'\n * @param cb\n * @param context\n */\n eachNode(options: TreeTraverseOrder, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(options: TreeTraverseOption, cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(cb: TreeTraverseCallback, context?: Ctx): void\n eachNode(\n options: TreeTraverseOrder | TreeTraverseOption | TreeTraverseCallback,\n cb?: TreeTraverseCallback | Ctx,\n context?: Ctx\n ) {\n this.root.eachNode(options as TreeTraverseOption, cb as TreeTraverseCallback, context);\n }\n\n getNodeByDataIndex(dataIndex: number): TreeNode {\n const rawIndex = this.data.getRawIndex(dataIndex);\n return this._nodes[rawIndex];\n }\n\n getNodeById(name: string): TreeNode {\n return this.root.getNodeById(name);\n }\n\n /**\n * Update item available by list,\n * when list has been performed options like 'filterSelf' or 'map'.\n */\n update() {\n const data = this.data;\n const nodes = this._nodes;\n\n for (let i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (let i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n }\n\n /**\n * Clear all layouts\n */\n clearLayouts() {\n this.data.clearItemLayouts();\n }\n\n\n /**\n * data node format:\n * {\n * name: ...\n * value: ...\n * children: [\n * {\n * name: ...\n * value: ...\n * children: ...\n * },\n * ...\n * ]\n * }\n */\n static createTree(\n dataRoot: T,\n hostModel: HostModel,\n beforeLink?: (data: SeriesData) => void\n ) {\n\n const tree = new Tree(hostModel);\n const listData: TreeNodeOption[] = [];\n let dimMax = 1;\n\n buildHierarchy(dataRoot);\n\n function buildHierarchy(dataNode: TreeNodeOption, parentNode?: TreeNode) {\n const value = dataNode.value;\n dimMax = Math.max(dimMax, zrUtil.isArray(value) ? value.length : 1);\n\n listData.push(dataNode);\n\n const node = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);\n parentNode\n ? addChild(node, parentNode)\n : (tree.root = node);\n\n tree._nodes.push(node);\n\n const children = dataNode.children;\n if (children) {\n for (let i = 0; i < children.length; i++) {\n buildHierarchy(children[i], node);\n }\n }\n }\n\n tree.root.updateDepthAndHeight(0);\n\n const { dimensionList } = createDimensions(listData, {\n coordDimensions: ['value'],\n dimensionsCount: dimMax\n });\n\n const list = new SeriesData(dimensionList, hostModel);\n list.initData(listData);\n\n beforeLink && beforeLink(list);\n\n linkSeriesData({\n mainData: list,\n struct: tree,\n structAttr: 'tree'\n });\n\n tree.update();\n\n return tree;\n }\n\n}\n\n/**\n * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,\n * so this function is not ready and not necessary to be public.\n */\nfunction addChild(child: TreeNode, node: TreeNode) {\n const children = node.children;\n if (child.parentNode === node) {\n return;\n }\n\n children.push(child);\n child.parentNode = node;\n}\n\nexport default Tree;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport {TreeNode} from '../../data/Tree';\n\nexport function retrieveTargetInfo(\n payload: {\n type?: string,\n targetNode?: string | TreeNode\n targetNodeId?: string\n },\n validPayloadTypes: string[],\n seriesModel: SeriesModel\n) {\n if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) {\n const root = seriesModel.getData().tree.root;\n let targetNode = payload.targetNode;\n\n if (typeof targetNode === 'string') {\n targetNode = root.getNodeById(targetNode);\n }\n\n if (targetNode && root.contains(targetNode)) {\n return {\n node: targetNode\n };\n }\n\n const targetNodeId = payload.targetNodeId;\n if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {\n return {\n node: targetNode\n };\n }\n }\n}\n\n// Not includes the given node at the last item.\nexport function getPathToRoot(node: TreeNode): TreeNode[] {\n const path = [];\n while (node) {\n node = node.parentNode;\n node && path.push(node);\n }\n return path.reverse();\n}\n\nexport function aboveViewRoot(viewRoot: TreeNode, node: TreeNode) {\n const viewPath = getPathToRoot(viewRoot);\n return zrUtil.indexOf(viewPath, node) >= 0;\n}\n\n\n// From root to the input node (the input node will be included).\nexport function wrapTreePathInfo(node: TreeNode, seriesModel: SeriesModel) {\n const treePathInfo = [];\n\n while (node) {\n const nodeDataIndex = node.dataIndex;\n treePathInfo.push({\n name: node.name,\n dataIndex: nodeDataIndex,\n value: seriesModel.getRawValue(nodeDataIndex) as T\n });\n node = node.parentNode;\n }\n\n treePathInfo.reverse();\n\n return treePathInfo;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport {\n SeriesOption,\n SymbolOptionMixin,\n BoxLayoutOptionMixin,\n RoamOptionMixin,\n LineStyleOption,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValue,\n StatesOptionMixin,\n OptionDataItemObject,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport View from '../../coord/View';\nimport { LayoutRect } from '../../util/layout';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\n\ninterface CurveLineStyleOption extends LineStyleOption{\n curveness?: number\n}\n\nexport interface TreeSeriesStateOption {\n itemStyle?: ItemStyleOption\n /**\n * Line style of the edge between node and it's parent.\n */\n lineStyle?: CurveLineStyleOption\n label?: SeriesLabelOption\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'ancestor' | 'descendant'\n scale?: boolean\n }\n}\n\nexport interface TreeSeriesNodeItemOption extends SymbolOptionMixin,\n TreeSeriesStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n children?: TreeSeriesNodeItemOption[]\n\n collapsed?: boolean\n\n link?: string\n target?: string\n}\n\n/**\n * Configuration of leaves nodes.\n */\nexport interface TreeSeriesLeavesOption extends TreeSeriesStateOption, StatesOptionMixin {\n\n}\n\nexport interface TreeSeriesOption extends\n SeriesOption, TreeSeriesStateOption,\n SymbolOptionMixin, BoxLayoutOptionMixin, RoamOptionMixin {\n type?: 'tree'\n\n layout?: 'orthogonal' | 'radial'\n\n edgeShape?: 'polyline' | 'curve'\n\n /**\n * Available when edgeShape is polyline\n */\n edgeForkPosition?: string | number\n\n nodeScaleRatio?: number\n\n /**\n * The orient of orthoginal layout, can be setted to 'LR', 'TB', 'RL', 'BT'.\n * and the backward compatibility configuration 'horizontal = LR', 'vertical = TB'.\n */\n orient?: 'LR' | 'TB' | 'RL' | 'BT' | 'horizontal' | 'vertical'\n\n expandAndCollapse?: boolean\n\n /**\n * The initial expanded depth of tree\n */\n initialTreeDepth?: number\n\n leaves?: TreeSeriesLeavesOption\n\n data?: TreeSeriesNodeItemOption[]\n}\n\nexport interface TreeAncestors {\n name: string\n dataIndex: number\n value: number\n}\n\nexport interface TreeSeriesCallbackDataParams extends CallbackDataParams {\n treeAncestors?: TreeAncestors[]\n}\n\nclass TreeSeriesModel extends SeriesModel {\n static readonly type = 'series.tree';\n\n // can support the position parameters 'left', 'top','right','bottom', 'width',\n // 'height' in the setOption() with 'merge' mode normal.\n static readonly layoutMode = 'box';\n\n coordinateSystem: View;\n\n layoutInfo: LayoutRect;\n\n hasSymbolVisual = true;\n\n // Do it self.\n ignoreStyleOnData = true;\n\n /**\n * Init a tree data structure from data in option series\n * @param option the object used to config echarts view\n * @return storage initial data\n */\n getInitialData(option: TreeSeriesOption): SeriesData {\n\n //create an virtual root\n const root: TreeSeriesNodeItemOption = {\n name: option.name,\n children: option.data\n };\n\n const leaves = option.leaves || {};\n const leavesModel = new Model(leaves, this, this.ecModel);\n\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n if (!(node && node.children.length && node.isExpand)) {\n model.parentModel = leavesModel;\n }\n return model;\n });\n }\n\n let treeDepth = 0;\n\n tree.eachNode('preorder', function (node) {\n if (node.depth > treeDepth) {\n treeDepth = node.depth;\n }\n });\n\n const expandAndCollapse = option.expandAndCollapse;\n const expandTreeDepth = (expandAndCollapse && option.initialTreeDepth >= 0)\n ? option.initialTreeDepth : treeDepth;\n\n tree.root.eachNode('preorder', function (node) {\n const item = node.hostTree.data.getRawDataItem(node.dataIndex) as TreeSeriesNodeItemOption;\n // Add item.collapsed != null, because users can collapse node original in the series.data.\n node.isExpand = (item && item.collapsed != null)\n ? !item.collapsed\n : node.depth <= expandTreeDepth;\n });\n\n return tree.data;\n }\n\n /**\n * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.\n * @returns {string} orient\n */\n getOrient() {\n let orient = this.get('orient');\n if (orient === 'horizontal') {\n orient = 'LR';\n }\n else if (orient === 'vertical') {\n orient = 'TB';\n }\n return orient;\n }\n\n setZoom(zoom: number) {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]) {\n this.option.center = center;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const tree = this.getData().tree;\n const realRoot = tree.root.children[0];\n let node = tree.getNodeByDataIndex(dataIndex);\n const value = node.getValue();\n let name = node.name;\n while (node && (node !== realRoot)) {\n name = node.parentNode.name + '.' + name;\n node = node.parentNode;\n }\n\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value,\n noValue: isNaN(value as number) || value == null\n });\n }\n\n // Add tree path to tooltip param\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as TreeSeriesCallbackDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n\n return params;\n }\n\n static defaultOption: TreeSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n\n // the position of the whole view\n left: '12%',\n top: '12%',\n right: '12%',\n bottom: '12%',\n\n // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'\n layout: 'orthogonal',\n\n // value can be 'polyline'\n edgeShape: 'curve',\n\n edgeForkPosition: '50%',\n\n // true | false | 'move' | 'scale', see module:component/helper/RoamController.\n roam: false,\n\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.4,\n\n // Default on center of graph\n center: null,\n\n zoom: 1,\n\n orient: 'LR',\n\n symbol: 'emptyCircle',\n\n symbolSize: 7,\n\n expandAndCollapse: true,\n\n initialTreeDepth: 2,\n\n lineStyle: {\n color: '#ccc',\n width: 1.5,\n curveness: 0.5\n },\n\n itemStyle: {\n color: 'lightsteelblue',\n // borderColor: '#c23531',\n borderWidth: 1.5\n },\n\n label: {\n show: true\n },\n\n animationEasing: 'linear',\n\n animationDuration: 700,\n\n animationDurationUpdate: 500\n };\n}\n\nexport default TreeSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { TreeNode } from '../../data/Tree';\n\n/**\n * Traverse the tree from bottom to top and do something\n */\nfunction eachAfter(\n root: TreeNode,\n callback: (node: TreeNode, separation: T) => void,\n separation: T\n) {\n const nodes = [root];\n const next = [];\n let node;\n\n while (node = nodes.pop()) { // jshint ignore:line\n next.push(node);\n if (node.isExpand) {\n const children = node.children;\n if (children.length) {\n for (let i = 0; i < children.length; i++) {\n nodes.push(children[i]);\n }\n }\n }\n }\n\n while (node = next.pop()) { // jshint ignore:line\n callback(node, separation);\n }\n}\n\n/**\n * Traverse the tree from top to bottom and do something\n */\nfunction eachBefore(root: TreeNode, callback: (node: TreeNode) => void) {\n const nodes = [root];\n let node;\n while (node = nodes.pop()) { // jshint ignore:line\n callback(node);\n if (node.isExpand) {\n const children = node.children;\n if (children.length) {\n for (let i = children.length - 1; i >= 0; i--) {\n nodes.push(children[i]);\n }\n }\n }\n }\n}\n\nexport { eachAfter, eachBefore };", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n eachAfter,\n eachBefore\n} from './traversalHelper';\nimport {\n init,\n firstWalk,\n secondWalk,\n separation as sep,\n radialCoordinate,\n getViewRect,\n TreeLayoutNode\n} from './layoutHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TreeSeriesModel from './TreeSeries';\n\nexport default function treeLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('tree', function (seriesModel: TreeSeriesModel) {\n commonLayout(seriesModel, api);\n });\n}\n\nfunction commonLayout(seriesModel: TreeSeriesModel, api: ExtensionAPI) {\n const layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n const layout = seriesModel.get('layout');\n let width = 0;\n let height = 0;\n let separation = null;\n\n if (layout === 'radial') {\n width = 2 * Math.PI;\n height = Math.min(layoutInfo.height, layoutInfo.width) / 2;\n separation = sep(function (node1, node2) {\n return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;\n });\n }\n else {\n width = layoutInfo.width;\n height = layoutInfo.height;\n separation = sep();\n }\n\n const virtualRoot = seriesModel.getData().tree.root as TreeLayoutNode;\n const realRoot = virtualRoot.children[0];\n\n if (realRoot) {\n init(virtualRoot);\n eachAfter(realRoot, firstWalk, separation);\n virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim;\n eachBefore(realRoot, secondWalk);\n\n let left = realRoot;\n let right = realRoot;\n let bottom = realRoot;\n eachBefore(realRoot, function (node: TreeLayoutNode) {\n const x = node.getLayout().x;\n if (x < left.getLayout().x) {\n left = node;\n }\n if (x > right.getLayout().x) {\n right = node;\n }\n if (node.depth > bottom.depth) {\n bottom = node;\n }\n });\n\n const delta = left === right ? 1 : separation(left, right) / 2;\n const tx = delta - left.getLayout().x;\n let kx = 0;\n let ky = 0;\n let coorX = 0;\n let coorY = 0;\n if (layout === 'radial') {\n kx = width / (right.getLayout().x + delta + tx);\n // here we use (node.depth - 1), bucause the real root's depth is 1\n ky = height / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorX = (node.getLayout().x + tx) * kx;\n coorY = (node.depth - 1) * ky;\n const finalCoor = radialCoordinate(coorX, coorY);\n node.setLayout({x: finalCoor.x, y: finalCoor.y, rawX: coorX, rawY: coorY}, true);\n });\n }\n else {\n const orient = seriesModel.getOrient();\n if (orient === 'RL' || orient === 'LR') {\n ky = height / (right.getLayout().x + delta + tx);\n kx = width / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorY = (node.getLayout().x + tx) * ky;\n coorX = orient === 'LR'\n ? (node.depth - 1) * kx\n : width - (node.depth - 1) * kx;\n node.setLayout({x: coorX, y: coorY}, true);\n });\n }\n else if (orient === 'TB' || orient === 'BT') {\n kx = width / (right.getLayout().x + delta + tx);\n ky = height / ((bottom.depth - 1) || 1);\n eachBefore(realRoot, function (node) {\n coorX = (node.getLayout().x + tx) * kx;\n coorY = orient === 'TB'\n ? (node.depth - 1) * ky\n : height - (node.depth - 1) * ky;\n node.setLayout({x: coorX, y: coorY}, true);\n });\n }\n }\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport TreeSeriesModel, { TreeSeriesNodeItemOption } from './TreeSeries';\nimport { extend } from 'zrender/src/core/util';\n\nexport default function treeVisual(ecModel: GlobalModel) {\n\n ecModel.eachSeriesByType('tree', function (seriesModel: TreeSeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n tree.eachNode(function (node) {\n const model = node.getModel();\n // TODO Optimize\n const style = model.getModel('itemStyle').getItemStyle();\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {updateCenterAndZoom, RoamPaylod} from '../../action/roamHelper';\nimport { Payload } from '../../util/types';\nimport TreeSeriesModel from './TreeSeries';\nimport GlobalModel from '../../model/Global';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport interface TreeExpandAndCollapsePayload extends Payload {\n dataIndex: number\n}\n\nexport function installTreeAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction({\n type: 'treeExpandAndCollapse',\n event: 'treeExpandAndCollapse',\n update: 'update'\n }, function (payload: TreeExpandAndCollapsePayload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series', subType: 'tree', query: payload\n }, function (seriesModel: TreeSeriesModel) {\n const dataIndex = payload.dataIndex;\n const tree = seriesModel.getData().tree;\n const node = tree.getNodeByDataIndex(dataIndex);\n node.isExpand = !node.isExpand;\n });\n });\n\n registers.registerAction({\n type: 'treeRoam',\n event: 'treeRoam',\n // Here we set 'none' instead of 'update', because roam action\n // just need to update the transform matrix without having to recalculate\n // the layout. So don't need to go through the whole update process, such\n // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.\n update: 'none'\n }, function (payload: RoamPaylod, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series', subType: 'tree', query: payload\n }, function (seriesModel: TreeSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const res = updateCenterAndZoom(coordSys, payload);\n\n seriesModel.setCenter\n && seriesModel.setCenter(res.center);\n\n seriesModel.setZoom\n && seriesModel.setZoom(res.zoom);\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport TreeView from './TreeView';\nimport TreeSeriesModel from './TreeSeries';\nimport treeLayout from './treeLayout';\nimport treeVisual from './treeVisual';\nimport {installTreeAction} from './treeAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(TreeView);\n registers.registerSeriesModel(TreeSeriesModel);\n registers.registerLayout(treeLayout);\n registers.registerVisual(treeVisual);\n\n installTreeAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as helper from '../helper/treeHelper';\nimport { Payload } from '../../util/types';\nimport TreemapSeriesModel from './TreemapSeries';\nimport { TreeNode } from '../../data/Tree';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nconst noop = function () {};\n\nconst actionTypes = [\n 'treemapZoomToNode',\n 'treemapRender',\n 'treemapMove'\n];\n\nexport interface TreemapZoomToNodePayload extends Payload {\n type: 'treemapZoomToNode'\n}\nexport interface TreemapRenderPayload extends Payload {\n type: 'treemapRender',\n rootRect?: RectLike\n}\nexport interface TreemapMovePayload extends Payload {\n type: 'treemapMove',\n rootRect?: RectLike\n}\nexport interface TreemapRootToNodePayload extends Payload {\n type: 'treemapRootToNode'\n targetNode?: TreeNode | string\n targetNodeId?: string\n\n direction?: 'rollUp' | 'drillDown'\n}\n\nexport function installTreemapAction(registers: EChartsExtensionInstallRegisters) {\n for (let i = 0; i < actionTypes.length; i++) {\n registers.registerAction({\n type: actionTypes[i],\n update: 'updateView'\n }, noop);\n }\n\n registers.registerAction(\n {type: 'treemapRootToNode', update: 'updateView'},\n function (payload, ecModel) {\n\n ecModel.eachComponent(\n {mainType: 'series', subType: 'treemap', query: payload},\n handleRootToNode\n );\n\n function handleRootToNode(model: TreemapSeriesModel, index: number) {\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper.retrieveTargetInfo(payload, types, model);\n\n if (targetInfo) {\n const originViewRoot = model.getViewRoot();\n if (originViewRoot) {\n payload.direction = helper.aboveViewRoot(originViewRoot, targetInfo.node)\n ? 'rollUp' : 'drillDown';\n }\n model.resetViewRoot(targetInfo.node);\n }\n }\n }\n );\n\n}", "\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {Dictionary, DecalObject} from '../../util/types';\nimport { getDecalFromPalette } from '../../model/mixin/palette';\n\nexport default function enableAriaDecalForTree(seriesModel: SeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n const decalPaletteScope: Dictionary = {};\n\n tree.eachNode(node => {\n // Use decal of level 1 node\n let current = node;\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n const decal = getDecalFromPalette(\n seriesModel.ecModel,\n current.name || current.dataIndex + '',\n decalPaletteScope\n );\n node.setVisual('decal', decal);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport Model from '../../model/Model';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n ItemStyleOption,\n LabelOption,\n RoamOptionMixin,\n CallbackDataParams,\n ColorString,\n StatesOptionMixin,\n OptionId,\n OptionName,\n DecalObject,\n SeriesLabelOption,\n DefaultEmphasisFocus,\n AriaOptionMixin,\n ColorBy\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport { LayoutRect } from '../../util/layout';\nimport SeriesData from '../../data/SeriesData';\nimport { normalizeToArray } from '../../util/model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\n// Only support numberic value.\ntype TreemapSeriesDataValue = number | number[];\n\ninterface BreadcrumbItemStyleOption extends ItemStyleOption {\n // TODO: textStyle should be in breadcrumb.label\n textStyle?: LabelOption\n}\n\ninterface TreemapSeriesLabelOption extends SeriesLabelOption {\n ellipsis?: boolean\n formatter?: string | ((params: CallbackDataParams) => string)\n}\n\ninterface TreemapSeriesItemStyleOption extends ItemStyleOption {\n borderRadius?: number | number[]\n\n colorAlpha?: number\n colorSaturation?: number\n\n borderColorSaturation?: number\n\n gapWidth?: number\n}\n\ninterface TreePathInfo {\n name: string\n dataIndex: number\n value: TreemapSeriesDataValue\n}\n\ninterface TreemapSeriesCallbackDataParams extends CallbackDataParams {\n /**\n * @deprecated\n */\n treePathInfo?: TreePathInfo[]\n\n treeAncestors?: TreePathInfo[]\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'\n }\n}\n\nexport interface TreemapStateOption {\n itemStyle?: TreemapSeriesItemStyleOption\n label?: TreemapSeriesLabelOption\n upperLabel?: TreemapSeriesLabelOption\n}\n\nexport interface TreemapSeriesVisualOption {\n /**\n * Which dimension will be applied with the visual properties.\n */\n visualDimension?: number | string\n\n /**\n * @deprecated Use colorBy instead\n */\n colorMappingBy?: 'value' | 'index' | 'id'\n\n visualMin?: number\n visualMax?: number\n\n colorAlpha?: number[] | 'none'\n colorSaturation?: number[] | 'none'\n // A color list for a level. Each node in the level will obtain a color from the color list.\n // Only suuport ColorString for interpolation\n // color?: ColorString[]\n\n /**\n * A node will not be shown when its area size is smaller than this value (unit: px square).\n */\n visibleMin?: number\n /**\n * Children will not be shown when area size of a node is smaller than this value (unit: px square).\n */\n childrenVisibleMin?: number\n}\n\nexport interface TreemapSeriesLevelOption extends TreemapSeriesVisualOption,\n TreemapStateOption, StatesOptionMixin {\n\n color?: ColorString[] | 'none',\n decal?: DecalObject[] | 'none'\n}\n\nexport interface TreemapSeriesNodeItemOption extends TreemapSeriesVisualOption,\n TreemapStateOption, StatesOptionMixin {\n id?: OptionId\n name?: OptionName\n\n value?: TreemapSeriesDataValue\n\n children?: TreemapSeriesNodeItemOption[]\n\n color?: ColorString[] | 'none'\n\n decal?: DecalObject[] | 'none'\n}\n\nexport interface TreemapSeriesOption\n extends SeriesOption,\n TreemapStateOption,\n BoxLayoutOptionMixin,\n RoamOptionMixin,\n TreemapSeriesVisualOption {\n\n type?: 'treemap'\n\n /**\n * configuration in echarts2\n * @deprecated\n */\n size?: (number | string)[]\n\n /**\n * If sort in desc order.\n * Default to be desc. asc has strange effect\n */\n sort?: boolean | 'asc' | 'desc'\n\n /**\n * Size of clipped window when zooming. 'origin' or 'fullscreen'\n */\n clipWindow?: 'origin' | 'fullscreen'\n\n squareRatio?: number\n /**\n * Nodes on depth from root are regarded as leaves.\n * Count from zero (zero represents only view root).\n */\n leafDepth?: number\n\n drillDownIcon?: string\n\n /**\n * Be effective when using zoomToNode. Specify the proportion of the\n * target node area in the view area.\n */\n zoomToNodeRatio?: number\n /**\n * Leaf node click behaviour: 'zoomToNode', 'link', false.\n * If leafDepth is set and clicking a node which has children but\n * be on left depth, the behaviour would be changing root. Otherwise\n * use behavious defined above.\n */\n nodeClick?: 'zoomToNode' | 'link'\n\n breadcrumb?: BoxLayoutOptionMixin & {\n show?: boolean\n height?: number\n\n emptyItemWidth?: number // With of empty width\n itemStyle?: BreadcrumbItemStyleOption\n\n emphasis?: {\n itemStyle?: BreadcrumbItemStyleOption\n }\n }\n\n levels?: TreemapSeriesLevelOption[]\n\n data?: TreemapSeriesNodeItemOption[]\n}\n\nclass TreemapSeriesModel extends SeriesModel {\n\n static type = 'series.treemap';\n type = TreemapSeriesModel.type;\n\n static layoutMode = 'box' as const;\n\n preventUsingHoverLayer = true;\n\n layoutInfo: LayoutRect;\n\n designatedVisualItemStyle: TreemapSeriesItemStyleOption;\n\n private _viewRoot: TreeNode;\n private _idIndexMap: zrUtil.HashMap;\n private _idIndexMapCount: number;\n\n static defaultOption: TreemapSeriesOption = {\n // Disable progressive rendering\n progressive: 0,\n // size: ['80%', '80%'], // deprecated, compatible with ec2.\n left: 'center',\n top: 'middle',\n width: '80%',\n height: '80%',\n sort: true,\n\n clipWindow: 'origin',\n squareRatio: 0.5 * (1 + Math.sqrt(5)), // golden ratio\n leafDepth: null,\n\n drillDownIcon: '\u25B6', // Use html character temporarily because it is complicated\n // to align specialized icon. \u25B7\u25B6\u2752\u2750\u25BC\u271A\n\n zoomToNodeRatio: 0.32 * 0.32,\n\n roam: true,\n nodeClick: 'zoomToNode',\n animation: true,\n animationDurationUpdate: 900,\n animationEasing: 'quinticInOut',\n breadcrumb: {\n show: true,\n height: 22,\n left: 'center',\n top: 'bottom',\n // right\n // bottom\n emptyItemWidth: 25, // Width of empty node.\n itemStyle: {\n color: 'rgba(0,0,0,0.7)', //'#5793f3',\n textStyle: {\n color: '#fff'\n }\n }\n },\n label: {\n show: true,\n // Do not use textDistance, for ellipsis rect just the same as treemap node rect.\n distance: 0,\n padding: 5,\n position: 'inside', // Can be [5, '5%'] or position stirng like 'insideTopLeft', ...\n // formatter: null,\n color: '#fff',\n overflow: 'truncate'\n // align\n // verticalAlign\n },\n upperLabel: { // Label when node is parent.\n show: false,\n position: [0, '50%'],\n height: 20,\n // formatter: null,\n // color: '#fff',\n overflow: 'truncate',\n // align: null,\n verticalAlign: 'middle'\n },\n itemStyle: {\n color: null, // Can be 'none' if not necessary.\n colorAlpha: null, // Can be 'none' if not necessary.\n colorSaturation: null, // Can be 'none' if not necessary.\n borderWidth: 0,\n gapWidth: 0,\n borderColor: '#fff',\n borderColorSaturation: null // If specified, borderColor will be ineffective, and the\n // border color is evaluated by color of current node and\n // borderColorSaturation.\n },\n emphasis: {\n upperLabel: {\n show: true,\n position: [0, '50%'],\n ellipsis: true,\n verticalAlign: 'middle'\n }\n },\n\n visualDimension: 0, // Can be 0, 1, 2, 3.\n visualMin: null,\n visualMax: null,\n\n color: [], // + treemapSeries.color should not be modified. Please only modified\n // level[n].color (if necessary).\n // + Specify color list of each level. level[0].color would be global\n // color list if not specified. (see method `setDefault`).\n // + But set as a empty array to forbid fetch color from global palette\n // when using nodeModel.get('color'), otherwise nodes on deep level\n // will always has color palette set and are not able to inherit color\n // from parent node.\n // + TreemapSeries.color can not be set as 'none', otherwise effect\n // legend color fetching (see seriesColor.js).\n colorAlpha: null, // Array. Specify color alpha range of each level, like [0.2, 0.8]\n colorSaturation: null, // Array. Specify color saturation of each level, like [0.2, 0.5]\n colorMappingBy: 'index', // 'value' or 'index' or 'id'.\n visibleMin: 10, // If area less than this threshold (unit: pixel^2), node will not\n // be rendered. Only works when sort is 'asc' or 'desc'.\n childrenVisibleMin: null, // If area of a node less than this threshold (unit: pixel^2),\n // grandchildren will not show.\n // Why grandchildren? If not grandchildren but children,\n // some siblings show children and some not,\n // the appearance may be mess and not consistent,\n levels: [] // Each item: {\n // visibleMin, itemStyle, visualDimension, label\n // }\n // data: {\n // value: [],\n // children: [],\n // link: 'http://xxx.xxx.xxx',\n // target: 'blank' or 'self'\n // }\n };\n\n /**\n * @override\n */\n getInitialData(option: TreemapSeriesOption, ecModel: GlobalModel) {\n // Create a virtual root.\n const root: TreemapSeriesNodeItemOption = {\n name: option.name,\n children: option.data\n };\n\n completeTreeValue(root);\n\n let levels = option.levels || [];\n\n // Used in \"visual priority\" in `treemapVisual.js`.\n // This way is a little tricky, must satisfy the precondition:\n // 1. There is no `treeNode.getModel('itemStyle.xxx')` used.\n // 2. The `Model.prototype.getModel()` will not use any clone-like way.\n const designatedVisualItemStyle = this.designatedVisualItemStyle = {};\n const designatedVisualModel = new Model({itemStyle: designatedVisualItemStyle}, this, ecModel);\n\n levels = option.levels = setDefault(levels, ecModel);\n const levelModels = zrUtil.map(levels || [], function (levelDefine) {\n return new Model(levelDefine, designatedVisualModel, ecModel);\n }, this);\n\n // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n const levelModel = node ? levelModels[node.depth] : null;\n // If no levelModel, we also need `designatedVisualModel`.\n model.parentModel = levelModel || designatedVisualModel;\n return model;\n });\n }\n\n return tree.data;\n }\n\n optionUpdated() {\n this.resetViewRoot();\n }\n\n /**\n * @override\n * @param {number} dataIndex\n * @param {boolean} [mutipleSeries=false]\n */\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const value = this.getRawValue(dataIndex) as TreemapSeriesDataValue;\n const name = data.getName(dataIndex);\n\n return createTooltipMarkup('nameValue', { name: name, value: value });\n }\n\n /**\n * Add tree path to tooltip param\n *\n * @override\n * @param {number} dataIndex\n * @return {Object}\n */\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as TreemapSeriesCallbackDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n // compatitable the previous code.\n params.treePathInfo = params.treeAncestors;\n\n return params;\n }\n\n /**\n * @public\n * @param {Object} layoutInfo {\n * x: containerGroup x\n * y: containerGroup y\n * width: containerGroup width\n * height: containerGroup height\n * }\n */\n setLayoutInfo(layoutInfo: LayoutRect) {\n /**\n * @readOnly\n * @type {Object}\n */\n this.layoutInfo = this.layoutInfo || {} as LayoutRect;\n zrUtil.extend(this.layoutInfo, layoutInfo);\n }\n\n /**\n * @param {string} id\n * @return {number} index\n */\n mapIdToIndex(id: string): number {\n // A feature is implemented:\n // index is monotone increasing with the sequence of\n // input id at the first time.\n // This feature can make sure that each data item and its\n // mapped color have the same index between data list and\n // color list at the beginning, which is useful for user\n // to adjust data-color mapping.\n\n /**\n * @private\n * @type {Object}\n */\n let idIndexMap = this._idIndexMap;\n\n if (!idIndexMap) {\n idIndexMap = this._idIndexMap = zrUtil.createHashMap();\n /**\n * @private\n * @type {number}\n */\n this._idIndexMapCount = 0;\n }\n\n let index = idIndexMap.get(id);\n if (index == null) {\n idIndexMap.set(id, index = this._idIndexMapCount++);\n }\n\n return index;\n }\n\n getViewRoot() {\n return this._viewRoot;\n }\n\n resetViewRoot(viewRoot?: TreeNode) {\n viewRoot\n ? (this._viewRoot = viewRoot)\n : (viewRoot = this._viewRoot);\n\n const root = this.getRawData().tree.root;\n\n if (!viewRoot\n || (viewRoot !== root && !root.contains(viewRoot))\n ) {\n this._viewRoot = root;\n }\n }\n\n enableAriaDecal() {\n enableAriaDecalForTree(this);\n }\n}\n\n/**\n * @param {Object} dataNode\n */\nfunction completeTreeValue(dataNode: TreemapSeriesNodeItemOption) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n let sum = 0;\n\n zrUtil.each(dataNode.children, function (child) {\n\n completeTreeValue(child);\n\n let childValue = child.value;\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n\n sum += childValue;\n });\n\n let thisValue = dataNode.value;\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n }\n // Value should not less than 0.\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value)\n ? (dataNode.value[0] = thisValue)\n : (dataNode.value = thisValue);\n}\n\n/**\n * set default to level configuration\n */\nfunction setDefault(levels: TreemapSeriesLevelOption[], ecModel: GlobalModel) {\n const globalColorList = normalizeToArray(ecModel.get('color')) as ColorString[];\n const globalDecalList = normalizeToArray(\n (ecModel as Model).get(['aria', 'decal', 'decals'])\n ) as DecalObject[];\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n let hasColorDefine;\n let hasDecalDefine;\n zrUtil.each(levels, function (levelDefine) {\n const model = new Model(levelDefine);\n const modelColor = model.get('color');\n const modelDecal = model.get('decal');\n\n if (model.get(['itemStyle', 'color'])\n || (modelColor && modelColor !== 'none')\n ) {\n hasColorDefine = true;\n }\n if (model.get(['itemStyle', 'decal'])\n || (modelDecal && modelDecal !== 'none')\n ) {\n hasDecalDefine = true;\n }\n });\n\n const level0 = levels[0] || (levels[0] = {});\n if (!hasColorDefine) {\n level0.color = globalColorList.slice();\n }\n if (!hasDecalDefine && globalDecalList) {\n level0.decal = globalDecalList.slice();\n }\n\n return levels;\n}\n\nexport default TreemapSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport * as layout from '../../util/layout';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption, TreemapSeriesOption } from './TreemapSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { curry, defaults } from 'zrender/src/core/util';\nimport { ZRElementEvent, BoxLayoutOptionMixin, ECElement } from '../../util/types';\nimport Element from 'zrender/src/Element';\nimport Model from '../../model/Model';\nimport { convertOptionIdName } from '../../util/model';\nimport { Z2_EMPHASIS_LIFT } from '../../util/states';\n\nconst TEXT_PADDING = 8;\nconst ITEM_GAP = 8;\nconst ARRAY_LENGTH = 5;\n\ninterface OnSelectCallback {\n (node: TreeNode, e: ZRElementEvent): void\n}\n\ninterface LayoutParam {\n pos: BoxLayoutOptionMixin\n box: {\n width: number,\n height: number\n }\n emptyItemWidth: number\n totalWidth: number\n renderList: {\n node: TreeNode,\n text: string\n width: number\n }[]\n}\n\ntype BreadcrumbItemStyleModel = Model;\ntype BreadcrumbTextStyleModel = Model;\n\nclass Breadcrumb {\n\n group = new graphic.Group();\n\n constructor(containerGroup: graphic.Group) {\n containerGroup.add(this.group);\n }\n\n render(\n seriesModel: TreemapSeriesModel,\n api: ExtensionAPI,\n targetNode: TreeNode,\n onSelect: OnSelectCallback\n ) {\n const model = seriesModel.getModel('breadcrumb');\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n if (!model.get('show') || !targetNode) {\n return;\n }\n\n const normalStyleModel = model.getModel('itemStyle');\n // let emphasisStyleModel = model.getModel('emphasis.itemStyle');\n const textStyleModel = normalStyleModel.getModel('textStyle');\n\n const layoutParam: LayoutParam = {\n pos: {\n left: model.get('left'),\n right: model.get('right'),\n top: model.get('top'),\n bottom: model.get('bottom')\n },\n box: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n emptyItemWidth: model.get('emptyItemWidth'),\n totalWidth: 0,\n renderList: []\n };\n\n this._prepare(targetNode, layoutParam, textStyleModel);\n this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect);\n\n layout.positionElement(thisGroup, layoutParam.pos, layoutParam.box);\n }\n\n /**\n * Prepare render list and total width\n * @private\n */\n _prepare(targetNode: TreeNode, layoutParam: LayoutParam, textStyleModel: BreadcrumbTextStyleModel) {\n for (let node = targetNode; node; node = node.parentNode) {\n const text = convertOptionIdName(node.getModel().get('name'), '');\n const textRect = textStyleModel.getTextRect(text);\n const itemWidth = Math.max(\n textRect.width + TEXT_PADDING * 2,\n layoutParam.emptyItemWidth\n );\n layoutParam.totalWidth += itemWidth + ITEM_GAP;\n layoutParam.renderList.push({\n node: node,\n text: text,\n width: itemWidth\n });\n }\n }\n\n /**\n * @private\n */\n _renderContent(\n seriesModel: TreemapSeriesModel,\n layoutParam: LayoutParam,\n normalStyleModel: BreadcrumbItemStyleModel,\n textStyleModel: BreadcrumbTextStyleModel,\n onSelect: OnSelectCallback\n ) {\n // Start rendering.\n let lastX = 0;\n const emptyItemWidth = layoutParam.emptyItemWidth;\n const height = seriesModel.get(['breadcrumb', 'height']);\n const availableSize = layout.getAvailableSize(layoutParam.pos, layoutParam.box);\n let totalWidth = layoutParam.totalWidth;\n const renderList = layoutParam.renderList;\n\n for (let i = renderList.length - 1; i >= 0; i--) {\n const item = renderList[i];\n const itemNode = item.node;\n let itemWidth = item.width;\n let text = item.text;\n\n // Hdie text and shorten width if necessary.\n if (totalWidth > availableSize.width) {\n totalWidth -= itemWidth - emptyItemWidth;\n itemWidth = emptyItemWidth;\n text = null;\n }\n\n const el = new graphic.Polygon({\n shape: {\n points: makeItemPoints(\n lastX, 0, itemWidth, height,\n i === renderList.length - 1, i === 0\n )\n },\n style: defaults(\n normalStyleModel.getItemStyle(),\n {\n lineJoin: 'bevel'\n }\n ),\n textContent: new graphic.Text({\n style: {\n text,\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }\n }),\n textConfig: {\n position: 'inside'\n },\n z2: Z2_EMPHASIS_LIFT * 1e4, // A very large z2\n onclick: curry(onSelect, itemNode)\n });\n (el as ECElement).disableLabelAnimation = true;\n\n this.group.add(el);\n\n packEventData(el, seriesModel, itemNode);\n\n lastX += itemWidth + ITEM_GAP;\n }\n }\n\n remove() {\n this.group.removeAll();\n }\n}\n\nfunction makeItemPoints(x: number, y: number, itemWidth: number, itemHeight: number, head: boolean, tail: boolean) {\n const points = [\n [head ? x : x - ARRAY_LENGTH, y],\n [x + itemWidth, y],\n [x + itemWidth, y + itemHeight],\n [head ? x : x - ARRAY_LENGTH, y + itemHeight]\n ];\n !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);\n !head && points.push([x, y + itemHeight / 2]);\n return points;\n}\n\n// Package custom mouse event.\nfunction packEventData(el: Element, seriesModel: TreemapSeriesModel, itemNode: TreeNode) {\n getECData(el).eventData = {\n componentType: 'series',\n componentSubType: 'treemap',\n componentIndex: seriesModel.componentIndex,\n seriesIndex: seriesModel.componentIndex,\n seriesName: seriesModel.name,\n seriesType: 'treemap',\n selfType: 'breadcrumb', // Distinguish with click event on treemap node.\n nodeData: {\n dataIndex: itemNode && itemNode.dataIndex,\n name: itemNode && itemNode.name\n },\n treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)\n };\n}\n\nexport default Breadcrumb;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport { ZREasing } from './types';\nimport { AnimationEasing } from 'zrender/src/animation/easing';\n\ninterface AnimationWrapStorage {\n el: Element;\n target: ElementProps;\n duration: number;\n delay: number;\n easing: AnimationEasing\n}\ntype AnimationWrapDoneCallback = () => void;\n\n/**\n * Animate multiple elements with a single done-callback.\n *\n * @example\n * animation\n * .createWrap()\n * .add(el1, {x: 10, y: 10})\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\n * .done(function () { // done })\n * .start('cubicOut');\n */\nclass AnimationWrap {\n\n private _storage = [] as AnimationWrapStorage[];\n private _elExistsMap: { [elId: string]: boolean } = {};\n private _finishedCallback: AnimationWrapDoneCallback;\n\n /**\n * Caution: a el can only be added once, otherwise 'done'\n * might not be called. This method checks this (by el.id),\n * suppresses adding and returns false when existing el found.\n *\n * @return Whether adding succeeded.\n */\n add(\n el: Element,\n target: ElementProps,\n duration?: number,\n delay?: number,\n easing?: ZREasing\n ): boolean {\n if (this._elExistsMap[el.id]) {\n return false;\n }\n this._elExistsMap[el.id] = true;\n\n this._storage.push({\n el: el,\n target: target,\n duration: duration,\n delay: delay,\n easing: easing\n });\n\n return true;\n }\n\n /**\n * Only execute when animation done/aborted.\n */\n finished(callback: AnimationWrapDoneCallback): AnimationWrap {\n this._finishedCallback = callback;\n return this;\n }\n\n /**\n * Will stop exist animation firstly.\n */\n start(): AnimationWrap {\n let count = this._storage.length;\n\n const checkTerminate = () => {\n count--;\n if (count <= 0) { // Guard.\n this._storage.length = 0;\n this._elExistsMap = {};\n this._finishedCallback && this._finishedCallback();\n }\n };\n\n for (let i = 0, len = this._storage.length; i < len; i++) {\n const item = this._storage[i];\n item.el.animateTo(item.target, {\n duration: item.duration,\n delay: item.delay,\n easing: item.easing,\n setToFinal: true,\n done: checkTerminate,\n aborted: checkTerminate\n });\n }\n\n return this;\n }\n}\n\nexport function createWrap(): AnimationWrap {\n return new AnimationWrap();\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {bind, each, indexOf, curry, extend, normalizeCssArray, isFunction} from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {\n isHighDownDispatcher,\n setAsHighDownDispatcher,\n setDefaultStateProxy,\n enableHoverFocus,\n Z2_EMPHASIS_LIFT\n} from '../../util/states';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as helper from '../helper/treeHelper';\nimport Breadcrumb from './Breadcrumb';\nimport RoamController, { RoamEventParams } from '../../component/helper/RoamController';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as animationUtil from '../../util/animation';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport ChartView from '../../view/Chart';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption } from './TreemapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Model from '../../model/Model';\nimport { LayoutRect } from '../../util/layout';\nimport { TreemapLayoutNode } from './treemapLayout';\nimport Element from 'zrender/src/Element';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { makeInner, convertOptionIdName } from '../../util/model';\nimport { PathStyleProps, PathProps } from 'zrender/src/graphic/Path';\nimport { TreeSeriesNodeItemOption } from '../tree/TreeSeries';\nimport {\n TreemapRootToNodePayload,\n TreemapMovePayload,\n TreemapRenderPayload,\n TreemapZoomToNodePayload\n} from './treemapAction';\nimport { ColorString, ECElement } from '../../util/types';\nimport { windowOpen } from '../../util/format';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\nconst Group = graphic.Group;\nconst Rect = graphic.Rect;\n\nconst DRAG_THRESHOLD = 3;\nconst PATH_LABEL_NOAMAL = 'label';\nconst PATH_UPPERLABEL_NORMAL = 'upperLabel';\n// Should larger than emphasis states lift z\nconst Z2_BASE = Z2_EMPHASIS_LIFT * 10; // Should bigger than every z2.\nconst Z2_BG = Z2_EMPHASIS_LIFT * 2;\nconst Z2_CONTENT = Z2_EMPHASIS_LIFT * 3;\n\nconst getStateItemStyle = makeStyleMapper([\n ['fill', 'color'],\n // `borderColor` and `borderWidth` has been occupied,\n // so use `stroke` to indicate the stroke of the rect.\n ['stroke', 'strokeColor'],\n ['lineWidth', 'strokeWidth'],\n ['shadowBlur'],\n ['shadowOffsetX'],\n ['shadowOffsetY'],\n ['shadowColor']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n]);\nconst getItemStyleNormal = function (model: Model): PathStyleProps {\n // Normal style props should include emphasis style props.\n const itemStyle = getStateItemStyle(model) as PathStyleProps;\n // Clear styles set by emphasis.\n itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;\n return itemStyle;\n};\n\ninterface RenderElementStorage {\n nodeGroup: graphic.Group[]\n background: graphic.Rect[]\n content: graphic.Rect[]\n}\n\ntype LastCfgStorage = {\n [key in keyof RenderElementStorage]: LastCfg[]\n // nodeGroup: {\n // old: Pick[]\n // fadein: boolean\n // }[]\n // background: {\n // old: Pick\n // fadein: boolean\n // }[]\n // content: {\n // old: Pick\n // fadein: boolean\n // }[]\n};\n\ninterface FoundTargetInfo {\n node: TreeNode\n\n offsetX?: number\n offsetY?: number\n}\n\ninterface RenderResult {\n lastsForAnimation: LastCfgStorage\n willInvisibleEls?: graphic.Rect[]\n willDeleteEls: RenderElementStorage\n renderFinally: () => void\n}\n\ninterface ReRoot {\n rootNodeGroup: graphic.Group\n direction: 'drillDown' | 'rollUp'\n}\n\ninterface LastCfg {\n oldX?: number\n oldY?: number\n oldShape?: graphic.Rect['shape']\n fadein: boolean\n}\n\nconst inner = makeInner<{\n nodeWidth: number\n nodeHeight: number\n willDelete: boolean\n}, Element>();\n\nclass TreemapView extends ChartView {\n\n static type = 'treemap';\n type = TreemapView.type;\n\n private _containerGroup: graphic.Group;\n private _breadcrumb: Breadcrumb;\n private _controller: RoamController;\n\n private _oldTree: Tree;\n\n private _state: 'ready' | 'animating' = 'ready';\n\n private _storage = createStorage() as RenderElementStorage;\n\n seriesModel: TreemapSeriesModel;\n api: ExtensionAPI;\n ecModel: GlobalModel;\n\n /**\n * @override\n */\n render(\n seriesModel: TreemapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: TreemapZoomToNodePayload | TreemapRenderPayload | TreemapMovePayload | TreemapRootToNodePayload\n ) {\n\n const models = ecModel.findComponents({\n mainType: 'series', subType: 'treemap', query: payload\n });\n if (indexOf(models, seriesModel) < 0) {\n return;\n }\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper\n .retrieveTargetInfo(payload, types, seriesModel);\n const payloadType = payload && payload.type;\n const layoutInfo = seriesModel.layoutInfo;\n const isInit = !this._oldTree;\n const thisStorage = this._storage;\n\n // Mark new root when action is treemapRootToNode.\n const reRoot = (payloadType === 'treemapRootToNode' && targetInfo && thisStorage)\n ? {\n rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],\n direction: (payload as TreemapRootToNodePayload).direction\n }\n : null;\n\n const containerGroup = this._giveContainerGroup(layoutInfo);\n const hasAnimation = seriesModel.get('animation');\n\n const renderResult = this._doRender(containerGroup, seriesModel, reRoot);\n (\n hasAnimation &&\n !isInit && (\n !payloadType\n || payloadType === 'treemapZoomToNode'\n || payloadType === 'treemapRootToNode'\n )\n )\n ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot)\n : renderResult.renderFinally();\n\n this._resetController(api);\n\n this._renderBreadcrumb(seriesModel, api, targetInfo);\n }\n\n private _giveContainerGroup(layoutInfo: LayoutRect) {\n let containerGroup = this._containerGroup;\n if (!containerGroup) {\n // FIXME\n // \u52A0\u4E00\u5C42containerGroup\u662F\u4E3A\u4E86clip\uFF0C\u4F46\u662F\u73B0\u5728clip\u529F\u80FD\u5E76\u6CA1\u6709\u5B9E\u73B0\u3002\n containerGroup = this._containerGroup = new Group();\n this._initEvents(containerGroup);\n this.group.add(containerGroup);\n }\n containerGroup.x = layoutInfo.x;\n containerGroup.y = layoutInfo.y;\n\n return containerGroup;\n }\n\n private _doRender(containerGroup: graphic.Group, seriesModel: TreemapSeriesModel, reRoot: ReRoot): RenderResult {\n const thisTree = seriesModel.getData().tree;\n const oldTree = this._oldTree;\n\n // Clear last shape records.\n const lastsForAnimation = createStorage() as LastCfgStorage;\n const thisStorage = createStorage() as RenderElementStorage;\n const oldStorage = this._storage;\n const willInvisibleEls: RenderResult['willInvisibleEls'] = [];\n\n function doRenderNode(thisNode: TreeNode, oldNode: TreeNode, parentGroup: graphic.Group, depth: number) {\n return renderNode(\n seriesModel,\n thisStorage, oldStorage, reRoot,\n lastsForAnimation, willInvisibleEls,\n thisNode, oldNode, parentGroup, depth\n );\n }\n\n // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),\n // the oldTree is actually losted, so we can not find all of the old graphic\n // elements from tree. So we use this stragegy: make element storage, move\n // from old storage to new storage, clear old storage.\n\n dualTravel(\n thisTree.root ? [thisTree.root] : [],\n (oldTree && oldTree.root) ? [oldTree.root] : [],\n containerGroup,\n thisTree === oldTree || !oldTree,\n 0\n );\n\n // Process all removing.\n const willDeleteEls = clearStorage(oldStorage) as RenderElementStorage;\n\n this._oldTree = thisTree;\n this._storage = thisStorage;\n\n return {\n lastsForAnimation,\n willDeleteEls,\n renderFinally\n };\n\n function dualTravel(\n thisViewChildren: TreemapLayoutNode[],\n oldViewChildren: TreemapLayoutNode[],\n parentGroup: graphic.Group,\n sameTree: boolean,\n depth: number\n ) {\n // When 'render' is triggered by action,\n // 'this' and 'old' may be the same tree,\n // we use rawIndex in that case.\n if (sameTree) {\n oldViewChildren = thisViewChildren;\n each(thisViewChildren, function (child, index) {\n !child.isRemoved() && processNode(index, index);\n });\n }\n // Diff hierarchically (diff only in each subtree, but not whole).\n // because, consistency of view is important.\n else {\n (new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey))\n .add(processNode)\n .update(processNode)\n .remove(curry(processNode, null))\n .execute();\n }\n\n function getKey(node: TreeNode) {\n // Identify by name or raw index.\n return node.getId();\n }\n\n function processNode(newIndex: number, oldIndex?: number) {\n const thisNode = newIndex != null ? thisViewChildren[newIndex] : null;\n const oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;\n\n const group = doRenderNode(thisNode, oldNode, parentGroup, depth);\n\n group && dualTravel(\n thisNode && thisNode.viewChildren || [],\n oldNode && oldNode.viewChildren || [],\n group,\n sameTree,\n depth + 1\n );\n }\n }\n\n function clearStorage(storage: RenderElementStorage) {\n const willDeleteEls = createStorage() as RenderElementStorage;\n storage && each(storage, function (store, storageName) {\n const delEls = willDeleteEls[storageName];\n each(store, function (el) {\n el && (delEls.push(el as any), inner(el).willDelete = true);\n });\n });\n return willDeleteEls;\n }\n\n function renderFinally() {\n each(willDeleteEls, function (els) {\n each(els, function (el) {\n el.parent && el.parent.remove(el);\n });\n });\n each(willInvisibleEls, function (el) {\n el.invisible = true;\n // Setting invisible is for optimizing, so no need to set dirty,\n // just mark as invisible.\n el.dirty();\n });\n }\n }\n\n private _doAnimation(\n containerGroup: graphic.Group,\n renderResult: RenderResult,\n seriesModel: TreemapSeriesModel,\n reRoot: ReRoot\n ) {\n const durationOption = seriesModel.get('animationDurationUpdate');\n const easingOption = seriesModel.get('animationEasing');\n // TODO: do not support function until necessary.\n const duration = (isFunction(durationOption) ? 0 : durationOption) || 0;\n const easing = (isFunction(easingOption) ? null : easingOption) || 'cubicOut';\n const animationWrap = animationUtil.createWrap();\n\n // Make delete animations.\n each(renderResult.willDeleteEls, function (store, storageName) {\n each(store, function (el, rawIndex) {\n if ((el as Displayable).invisible) {\n return;\n }\n\n const parent = el.parent; // Always has parent, and parent is nodeGroup.\n let target: PathProps;\n const innerStore = inner(parent);\n\n if (reRoot && reRoot.direction === 'drillDown') {\n target = parent === reRoot.rootNodeGroup\n // This is the content element of view root.\n // Only `content` will enter this branch, because\n // `background` and `nodeGroup` will not be deleted.\n ? {\n shape: {\n x: 0,\n y: 0,\n width: innerStore.nodeWidth,\n height: innerStore.nodeHeight\n },\n style: {\n opacity: 0\n }\n }\n // Others.\n : {style: {opacity: 0}};\n }\n else {\n let targetX = 0;\n let targetY = 0;\n\n if (!innerStore.willDelete) {\n // Let node animate to right-bottom corner, cooperating with fadeout,\n // which is appropriate for user understanding.\n // Divided by 2 for reRoot rolling up effect.\n targetX = innerStore.nodeWidth / 2;\n targetY = innerStore.nodeHeight / 2;\n }\n\n target = storageName === 'nodeGroup'\n ? {x: targetX, y: targetY, style: {opacity: 0}}\n : {\n shape: {x: targetX, y: targetY, width: 0, height: 0},\n style: {opacity: 0}\n };\n }\n\n // TODO: do not support delay until necessary.\n target && animationWrap.add(el, target, duration, 0, easing);\n });\n });\n\n // Make other animations\n each(this._storage, function (store, storageName) {\n each(store, function (el, rawIndex) {\n const last = renderResult.lastsForAnimation[storageName][rawIndex];\n const target: PathProps = {};\n\n if (!last) {\n return;\n }\n\n if (el instanceof graphic.Group) {\n if (last.oldX != null) {\n target.x = el.x;\n target.y = el.y;\n el.x = last.oldX;\n el.y = last.oldY;\n }\n }\n else {\n if (last.oldShape) {\n target.shape = extend({}, el.shape);\n el.setShape(last.oldShape);\n }\n\n if (last.fadein) {\n el.setStyle('opacity', 0);\n target.style = {opacity: 1};\n }\n // When animation is stopped for succedent animation starting,\n // el.style.opacity might not be 1\n else if (el.style.opacity !== 1) {\n target.style = {opacity: 1};\n }\n }\n\n animationWrap.add(el, target, duration, 0, easing);\n });\n }, this);\n\n this._state = 'animating';\n\n animationWrap\n .finished(bind(function () {\n this._state = 'ready';\n renderResult.renderFinally();\n }, this))\n .start();\n }\n\n private _resetController(api: ExtensionAPI) {\n let controller = this._controller;\n\n // Init controller.\n if (!controller) {\n controller = this._controller = new RoamController(api.getZr());\n controller.enable(this.seriesModel.get('roam'));\n controller.on('pan', bind(this._onPan, this));\n controller.on('zoom', bind(this._onZoom, this));\n }\n\n const rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());\n controller.setPointerChecker(function (e, x, y) {\n return rect.contain(x, y);\n });\n }\n\n private _clearController() {\n let controller = this._controller;\n if (controller) {\n controller.dispose();\n controller = null;\n }\n }\n\n private _onPan(e: RoamEventParams['pan']) {\n if (this._state !== 'animating'\n && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)\n ) {\n // These param must not be cached.\n const root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n const rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n this.api.dispatchAction({\n type: 'treemapMove',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rootLayout.x + e.dx, y: rootLayout.y + e.dy,\n width: rootLayout.width, height: rootLayout.height\n }\n } as TreemapMovePayload);\n }\n }\n\n private _onZoom(e: RoamEventParams['zoom']) {\n let mouseX = e.originX;\n let mouseY = e.originY;\n\n if (this._state !== 'animating') {\n // These param must not be cached.\n const root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n const rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n const rect = new BoundingRect(\n rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height\n );\n const layoutInfo = this.seriesModel.layoutInfo;\n\n // Transform mouse coord from global to containerGroup.\n mouseX -= layoutInfo.x;\n mouseY -= layoutInfo.y;\n\n // Scale root bounding rect.\n const m = matrix.create();\n matrix.translate(m, m, [-mouseX, -mouseY]);\n matrix.scale(m, m, [e.scale, e.scale]);\n matrix.translate(m, m, [mouseX, mouseY]);\n\n rect.applyTransform(m);\n\n this.api.dispatchAction({\n type: 'treemapRender',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rect.x, y: rect.y,\n width: rect.width, height: rect.height\n }\n } as TreemapRenderPayload);\n }\n }\n\n private _initEvents(containerGroup: graphic.Group) {\n containerGroup.on('click', (e) => {\n if (this._state !== 'ready') {\n return;\n }\n\n const nodeClick = this.seriesModel.get('nodeClick', true);\n\n if (!nodeClick) {\n return;\n }\n\n const targetInfo = this.findTarget(e.offsetX, e.offsetY);\n\n if (!targetInfo) {\n return;\n }\n\n const node = targetInfo.node;\n if (node.getLayout().isLeafRoot) {\n this._rootToNode(targetInfo);\n }\n else {\n if (nodeClick === 'zoomToNode') {\n this._zoomToNode(targetInfo);\n }\n else if (nodeClick === 'link') {\n const itemModel = node.hostTree.data.getItemModel(node.dataIndex);\n const link = itemModel.get('link', true);\n const linkTarget = itemModel.get('target', true) || 'blank';\n link && windowOpen(link, linkTarget);\n }\n }\n\n }, this);\n }\n\n private _renderBreadcrumb(seriesModel: TreemapSeriesModel, api: ExtensionAPI, targetInfo: FoundTargetInfo) {\n if (!targetInfo) {\n targetInfo = seriesModel.get('leafDepth', true) != null\n ? {node: seriesModel.getViewRoot()}\n // FIXME\n // better way?\n // Find breadcrumb tail on center of containerGroup.\n : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);\n\n if (!targetInfo) {\n targetInfo = {node: seriesModel.getData().tree.root};\n }\n }\n\n (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group)))\n .render(seriesModel, api, targetInfo.node, (node) => {\n if (this._state !== 'animating') {\n helper.aboveViewRoot(seriesModel.getViewRoot(), node)\n ? this._rootToNode({node: node})\n : this._zoomToNode({node: node});\n }\n });\n }\n\n /**\n * @override\n */\n remove() {\n this._clearController();\n this._containerGroup && this._containerGroup.removeAll();\n this._storage = createStorage() as RenderElementStorage;\n this._state = 'ready';\n this._breadcrumb && this._breadcrumb.remove();\n }\n\n dispose() {\n this._clearController();\n }\n\n private _zoomToNode(targetInfo: FoundTargetInfo) {\n this.api.dispatchAction({\n type: 'treemapZoomToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n }\n\n private _rootToNode(targetInfo: FoundTargetInfo) {\n this.api.dispatchAction({\n type: 'treemapRootToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n }\n\n /**\n * @public\n * @param {number} x Global coord x.\n * @param {number} y Global coord y.\n * @return {Object} info If not found, return undefined;\n * @return {number} info.node Target node.\n * @return {number} info.offsetX x refer to target node.\n * @return {number} info.offsetY y refer to target node.\n */\n findTarget(x: number, y: number): FoundTargetInfo {\n let targetInfo;\n const viewRoot = this.seriesModel.getViewRoot();\n\n viewRoot.eachNode({attr: 'viewChildren', order: 'preorder'}, function (node) {\n const bgEl = this._storage.background[node.getRawIndex()];\n // If invisible, there might be no element.\n if (bgEl) {\n const point = bgEl.transformCoordToLocal(x, y);\n const shape = bgEl.shape;\n\n // For performance consideration, dont use 'getBoundingRect'.\n if (shape.x <= point[0]\n && point[0] <= shape.x + shape.width\n && shape.y <= point[1]\n && point[1] <= shape.y + shape.height\n ) {\n targetInfo = {\n node: node,\n offsetX: point[0],\n offsetY: point[1]\n };\n }\n else {\n return false; // Suppress visit subtree.\n }\n }\n }, this);\n\n return targetInfo;\n }\n}\n\n/**\n * @inner\n */\nfunction createStorage(): RenderElementStorage | LastCfgStorage {\n return {\n nodeGroup: [],\n background: [],\n content: []\n };\n}\n\n/**\n * @inner\n * @return Return undefined means do not travel further.\n */\nfunction renderNode(\n seriesModel: TreemapSeriesModel,\n thisStorage: RenderElementStorage,\n oldStorage: RenderElementStorage,\n reRoot: ReRoot,\n lastsForAnimation: RenderResult['lastsForAnimation'],\n willInvisibleEls: RenderResult['willInvisibleEls'],\n thisNode: TreeNode,\n oldNode: TreeNode,\n parentGroup: graphic.Group,\n depth: number\n) {\n // Whether under viewRoot.\n if (!thisNode) {\n // Deleting nodes will be performed finally. This method just find\n // element from old storage, or create new element, set them to new\n // storage, and set styles.\n return;\n }\n\n // -------------------------------------------------------------------\n // Start of closure variables available in \"Procedures in renderNode\".\n\n const thisLayout = thisNode.getLayout();\n const data = seriesModel.getData();\n const nodeModel = thisNode.getModel();\n\n // Only for enabling highlight/downplay. Clear firstly.\n // Because some node will not be rendered.\n data.setItemGraphicEl(thisNode.dataIndex, null);\n\n if (!thisLayout || !thisLayout.isInView) {\n return;\n }\n\n const thisWidth = thisLayout.width;\n const thisHeight = thisLayout.height;\n const borderWidth = thisLayout.borderWidth;\n const thisInvisible = thisLayout.invisible;\n\n const thisRawIndex = thisNode.getRawIndex();\n const oldRawIndex = oldNode && oldNode.getRawIndex();\n\n const thisViewChildren = thisNode.viewChildren;\n const upperHeight = thisLayout.upperHeight;\n const isParent = thisViewChildren && thisViewChildren.length;\n const itemStyleNormalModel = nodeModel.getModel('itemStyle');\n const itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']);\n const itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']);\n const itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']);\n const borderRadius = itemStyleNormalModel.get('borderRadius') || 0;\n\n // End of closure ariables available in \"Procedures in renderNode\".\n // -----------------------------------------------------------------\n\n // Node group\n const group = giveGraphic('nodeGroup', Group);\n\n if (!group) {\n return;\n }\n\n parentGroup.add(group);\n // x,y are not set when el is above view root.\n group.x = thisLayout.x || 0;\n group.y = thisLayout.y || 0;\n group.markRedraw();\n inner(group).nodeWidth = thisWidth;\n inner(group).nodeHeight = thisHeight;\n\n if (thisLayout.isAboveViewRoot) {\n return group;\n }\n\n // Background\n const bg = giveGraphic('background', Rect, depth, Z2_BG);\n bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight);\n\n const focus = nodeModel.get(['emphasis', 'focus']);\n const blurScope = nodeModel.get(['emphasis', 'blurScope']);\n\n const focusOrIndices =\n focus === 'ancestor' ? thisNode.getAncestorsIndices()\n : focus === 'descendant' ? thisNode.getDescendantIndices()\n : focus;\n\n // No children, render content.\n if (isParent) {\n // Because of the implementation about \"traverse\" in graphic hover style, we\n // can not set hover listener on the \"group\" of non-leaf node. Otherwise the\n // hover event from the descendents will be listenered.\n if (isHighDownDispatcher(group)) {\n setAsHighDownDispatcher(group, false);\n }\n if (bg) {\n setAsHighDownDispatcher(bg, true);\n // Only for enabling highlight/downplay.\n data.setItemGraphicEl(thisNode.dataIndex, bg);\n\n enableHoverFocus(bg, focusOrIndices, blurScope);\n }\n }\n else {\n const content = giveGraphic('content', Rect, depth, Z2_CONTENT);\n content && renderContent(group, content);\n\n (bg as ECElement).disableMorphing = true;\n\n if (bg && isHighDownDispatcher(bg)) {\n setAsHighDownDispatcher(bg, false);\n }\n setAsHighDownDispatcher(group, true);\n // Only for enabling highlight/downplay.\n data.setItemGraphicEl(thisNode.dataIndex, group);\n\n enableHoverFocus(group, focusOrIndices, blurScope);\n }\n\n return group;\n\n // ----------------------------\n // | Procedures in renderNode |\n // ----------------------------\n\n function renderBackground(group: graphic.Group, bg: graphic.Rect, useUpperLabel: boolean) {\n const ecData = getECData(bg);\n // For tooltip.\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n\n bg.setShape({x: 0, y: 0, width: thisWidth, height: thisHeight, r: borderRadius});\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(bg);\n }\n else {\n bg.invisible = false;\n const style = thisNode.getVisual('style') as PathStyleProps;\n const visualBorderColor = style.stroke;\n const normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualBorderColor;\n const emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor');\n const blurStyle = getStateItemStyle(itemStyleBlurModel);\n blurStyle.fill = itemStyleBlurModel.get('borderColor');\n const selectStyle = getStateItemStyle(itemStyleSelectModel);\n selectStyle.fill = itemStyleSelectModel.get('borderColor');\n\n if (useUpperLabel) {\n const upperLabelWidth = thisWidth - 2 * borderWidth;\n\n prepareText(\n // PENDING: convert ZRColor to ColorString for text.\n bg, visualBorderColor as ColorString, style.opacity,\n {x: borderWidth, y: 0, width: upperLabelWidth, height: upperHeight}\n );\n }\n // For old bg.\n else {\n bg.removeTextContent();\n }\n\n bg.setStyle(normalStyle);\n\n bg.ensureState('emphasis').style = emphasisStyle;\n bg.ensureState('blur').style = blurStyle;\n bg.ensureState('select').style = selectStyle;\n setDefaultStateProxy(bg);\n }\n\n group.add(bg);\n }\n\n function renderContent(group: graphic.Group, content: graphic.Rect) {\n const ecData = getECData(content);\n // For tooltip.\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n\n const contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);\n const contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);\n\n content.culling = true;\n content.setShape({\n x: borderWidth,\n y: borderWidth,\n width: contentWidth,\n height: contentHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(content);\n }\n else {\n content.invisible = false;\n const nodeStyle = thisNode.getVisual('style') as PathStyleProps;\n const visualColor = nodeStyle.fill;\n const normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualColor;\n normalStyle.decal = nodeStyle.decal;\n const emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n const blurStyle = getStateItemStyle(itemStyleBlurModel);\n const selectStyle = getStateItemStyle(itemStyleSelectModel);\n\n // PENDING: convert ZRColor to ColorString for text.\n prepareText(content, visualColor as ColorString, nodeStyle.opacity, null);\n\n content.setStyle(normalStyle);\n content.ensureState('emphasis').style = emphasisStyle;\n content.ensureState('blur').style = blurStyle;\n content.ensureState('select').style = selectStyle;\n setDefaultStateProxy(content);\n }\n\n group.add(content);\n }\n\n function processInvisible(element: graphic.Rect) {\n // Delay invisible setting utill animation finished,\n // avoid element vanish suddenly before animation.\n !element.invisible && willInvisibleEls.push(element);\n }\n\n function prepareText(\n rectEl: graphic.Rect,\n visualColor: ColorString,\n visualOpacity: number,\n // Can be null/undefined\n upperLabelRect: RectLike\n ) {\n const normalLabelModel = nodeModel.getModel(\n upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL\n );\n\n const defaultText = convertOptionIdName(nodeModel.get('name'), null);\n\n const isShow = normalLabelModel.getShallow('show');\n\n setLabelStyle(\n rectEl,\n getLabelStatesModels(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL),\n {\n defaultText: isShow ? defaultText : null,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n labelFetcher: seriesModel,\n labelDataIndex: thisNode.dataIndex\n }\n );\n\n const textEl = rectEl.getTextContent();\n if (!textEl) {\n return;\n }\n const textStyle = textEl.style;\n const textPadding = normalizeCssArray(textStyle.padding || 0);\n\n if (upperLabelRect) {\n rectEl.setTextConfig({\n layoutRect: upperLabelRect\n });\n (textEl as ECElement).disableLabelLayout = true;\n }\n textEl.beforeUpdate = function () {\n const width = Math.max(\n (upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0\n );\n const height = Math.max(\n (upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0\n );\n if (textStyle.width !== width || textStyle.height !== height) {\n textEl.setStyle({\n width,\n height\n });\n }\n };\n\n textStyle.truncateMinChar = 2;\n textStyle.lineOverflow = 'truncate';\n\n addDrillDownIcon(textStyle, upperLabelRect, thisLayout);\n const textEmphasisState = textEl.getState('emphasis');\n addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout);\n }\n\n function addDrillDownIcon(style: TextStyleProps, upperLabelRect: RectLike, thisLayout: any) {\n const text = style ? style.text : null;\n if (!upperLabelRect && thisLayout.isLeafRoot && text != null) {\n const iconChar = seriesModel.get('drillDownIcon', true);\n style.text = iconChar ? iconChar + ' ' + text : text;\n }\n }\n\n function giveGraphic(\n storageName: keyof RenderElementStorage,\n Ctor: {new(): T},\n depth?: number,\n z?: number\n ): T {\n let element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];\n const lasts = lastsForAnimation[storageName];\n\n if (element) {\n // Remove from oldStorage\n oldStorage[storageName][oldRawIndex] = null;\n prepareAnimationWhenHasOld(lasts, element);\n }\n // If invisible and no old element, do not create new element (for optimizing).\n else if (!thisInvisible) {\n element = new Ctor();\n if (element instanceof Displayable) {\n element.z2 = calculateZ2(depth, z);\n }\n prepareAnimationWhenNoOld(lasts, element);\n }\n\n // Set to thisStorage\n return (thisStorage[storageName][thisRawIndex] = element) as T;\n }\n\n function prepareAnimationWhenHasOld(lasts: LastCfg[], element: graphic.Group | graphic.Rect) {\n const lastCfg = lasts[thisRawIndex] = {} as LastCfg;\n if (element instanceof Group) {\n lastCfg.oldX = element.x;\n lastCfg.oldY = element.y;\n }\n else {\n lastCfg.oldShape = extend({}, element.shape);\n }\n }\n\n // If a element is new, we need to find the animation start point carefully,\n // otherwise it will looks strange when 'zoomToNode'.\n function prepareAnimationWhenNoOld(lasts: LastCfg[], element: graphic.Group | graphic.Rect) {\n const lastCfg = lasts[thisRawIndex] = {} as LastCfg;\n const parentNode = thisNode.parentNode;\n const isGroup = element instanceof graphic.Group;\n\n if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {\n let parentOldX = 0;\n let parentOldY = 0;\n\n // New nodes appear from right-bottom corner in 'zoomToNode' animation.\n // For convenience, get old bounding rect from background.\n const parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];\n if (!reRoot && parentOldBg && parentOldBg.oldShape) {\n parentOldX = parentOldBg.oldShape.width;\n parentOldY = parentOldBg.oldShape.height;\n }\n\n // When no parent old shape found, its parent is new too,\n // so we can just use {x:0, y:0}.\n if (isGroup) {\n lastCfg.oldX = 0;\n lastCfg.oldY = parentOldY;\n }\n else {\n lastCfg.oldShape = {x: parentOldX, y: parentOldY, width: 0, height: 0};\n }\n }\n\n // Fade in, user can be aware that these nodes are new.\n lastCfg.fadein = !isGroup;\n }\n\n}\n\n// We can not set all backgroud with the same z, Because the behaviour of\n// drill down and roll up differ background creation sequence from tree\n// hierarchy sequence, which cause that lowser background element overlap\n// upper ones. So we calculate z based on depth.\n// Moreover, we try to shrink down z interval to [0, 1] to avoid that\n// treemap with large z overlaps other components.\nfunction calculateZ2(depth: number, z2InLevel: number) {\n return depth * Z2_BASE + z2InLevel;\n}\n\nexport default TreemapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as zrColor from 'zrender/src/tool/color';\nimport {linearMap} from '../util/number';\nimport { AllPropTypes, Dictionary } from 'zrender/src/core/types';\nimport {\n ColorString,\n BuiltinVisualProperty,\n VisualOptionPiecewise,\n VisualOptionCategory,\n VisualOptionLinear,\n VisualOptionUnit,\n ParsedValue\n} from '../util/types';\n\nconst each = zrUtil.each;\nconst isObject = zrUtil.isObject;\n\nconst CATEGORY_DEFAULT_VISUAL_INDEX = -1;\n\n// Type of raw value\ntype RawValue = ParsedValue;\n// Type of mapping visual value\ntype VisualValue = AllPropTypes;\n// Type of value after normalized. 0 - 1\ntype NormalizedValue = number;\n\ntype MappingMethod = 'linear' | 'piecewise' | 'category' | 'fixed';\n\n// May include liftZ. wich is not provided to developers.\n\ninterface Normalizer {\n (this: VisualMapping, value?: RawValue): NormalizedValue\n}\ninterface ColorMapper {\n (this: VisualMapping, value: RawValue | NormalizedValue, isNormalized?: boolean, out?: number[])\n : ColorString | number[]\n}\ninterface DoMap {\n (this: VisualMapping, normalzied?: NormalizedValue, value?: RawValue): VisualValue\n}\ninterface VisualValueGetter {\n (key: string): VisualValue\n}\ninterface VisualValueSetter {\n (key: string, value: VisualValue): void\n}\ninterface VisualHandler {\n applyVisual(\n this: VisualMapping,\n value: RawValue,\n getter: VisualValueGetter,\n setter: VisualValueSetter\n ): void\n\n _normalizedToVisual: {\n linear(this: VisualMapping, normalized: NormalizedValue): VisualValue\n category(this: VisualMapping, normalized: NormalizedValue): VisualValue\n piecewise(this: VisualMapping, normalzied: NormalizedValue, value: RawValue): VisualValue\n fixed(this: VisualMapping): VisualValue\n }\n /**\n * Get color mapping for the outside usage.\n * Currently only used in `color` visual.\n *\n * The last parameter out is cached color array.\n */\n getColorMapper?: (this: VisualMapping) => ColorMapper\n}\n\ninterface VisualMappingPiece {\n index?: number\n\n value?: number | string\n interval?: [number, number]\n close?: [0 | 1, 0 | 1]\n\n text?: string\n\n visual?: VisualOptionPiecewise\n}\n\nexport interface VisualMappingOption {\n type?: BuiltinVisualProperty\n\n mappingMethod?: MappingMethod\n\n /**\n * required when mappingMethod is 'linear'\n */\n dataExtent?: [number, number]\n /**\n * required when mappingMethod is 'piecewise'.\n * Visual for only each piece can be specified\n * [\n * {value: someValue},\n * {interval: [min1, max1], visual: {...}},\n * {interval: [min2, max2]}\n * ],.\n */\n pieceList?: VisualMappingPiece[]\n /**\n * required when mappingMethod is 'category'. If no option.categories, categories is set as [0, 1, 2, ...].\n */\n categories?: (string | number)[]\n /**\n * Whether loop mapping when mappingMethod is 'category'.\n * @default false\n */\n loop?: boolean\n /**\n * Visual data\n * when mappingMethod is 'category', visual data can be array or object\n * (like: {cate1: '#222', none: '#fff'})\n * or primary types (which represents default category visual), otherwise visual\n * can be array or primary (which will be normalized to array).\n */\n visual?: VisualValue[] | Dictionary | VisualValue\n}\n\ninterface VisualMappingInnerPiece extends VisualMappingPiece {\n originIndex: number\n}\ninterface VisualMappingInnerOption extends VisualMappingOption {\n hasSpecialVisual: boolean\n pieceList: VisualMappingInnerPiece[]\n /**\n * Map to get category index\n */\n categoryMap: Dictionary\n /**\n * Cached parsed rgba array from string to avoid parse every time.\n */\n parsedVisual: number[][]\n\n // Have converted primary value to array.\n visual?: VisualValue[] | Dictionary\n}\n\nclass VisualMapping {\n\n option: VisualMappingInnerOption;\n\n type: BuiltinVisualProperty;\n\n mappingMethod: MappingMethod;\n\n applyVisual: VisualHandler['applyVisual'];\n\n getColorMapper: VisualHandler['getColorMapper'];\n\n _normalizeData: Normalizer;\n\n _normalizedToVisual: DoMap;\n\n constructor(option: VisualMappingOption) {\n const mappingMethod = option.mappingMethod;\n const visualType = option.type;\n\n const thisOption: VisualMappingInnerOption = this.option = zrUtil.clone(option) as VisualMappingInnerOption;\n\n this.type = visualType;\n this.mappingMethod = mappingMethod;\n\n this._normalizeData = normalizers[mappingMethod];\n const visualHandler = VisualMapping.visualHandlers[visualType];\n\n this.applyVisual = visualHandler.applyVisual;\n\n this.getColorMapper = visualHandler.getColorMapper;\n\n this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod];\n\n if (mappingMethod === 'piecewise') {\n normalizeVisualRange(thisOption);\n preprocessForPiecewise(thisOption);\n }\n else if (mappingMethod === 'category') {\n thisOption.categories\n ? preprocessForSpecifiedCategory(thisOption)\n // categories is ordinal when thisOption.categories not specified,\n // which need no more preprocess except normalize visual.\n : normalizeVisualRange(thisOption, true);\n }\n else { // mappingMethod === 'linear' or 'fixed'\n zrUtil.assert(mappingMethod !== 'linear' || thisOption.dataExtent);\n normalizeVisualRange(thisOption);\n }\n }\n\n mapValueToVisual(value: RawValue): VisualValue {\n const normalized = this._normalizeData(value);\n return this._normalizedToVisual(normalized, value);\n }\n\n getNormalizer() {\n return zrUtil.bind(this._normalizeData, this);\n }\n\n static visualHandlers: {[key in BuiltinVisualProperty]: VisualHandler} = {\n color: {\n applyVisual: makeApplyVisual('color'),\n getColorMapper: function () {\n const thisOption = this.option;\n\n return zrUtil.bind(\n thisOption.mappingMethod === 'category'\n ? function (\n this: VisualMapping,\n value: NormalizedValue | RawValue,\n isNormalized?: boolean\n ): ColorString {\n !isNormalized && (value = this._normalizeData(value));\n return doMapCategory.call(this, value) as ColorString;\n }\n : function (\n this: VisualMapping,\n value: NormalizedValue | RawValue,\n isNormalized?: boolean,\n out?: number[]\n ): number[] | string {\n // If output rgb array\n // which will be much faster and useful in pixel manipulation\n const returnRGBArray = !!out;\n !isNormalized && (value = this._normalizeData(value));\n out = zrColor.fastLerp(value as NormalizedValue, thisOption.parsedVisual, out);\n return returnRGBArray ? out : zrColor.stringify(out, 'rgba');\n },\n this\n );\n },\n\n _normalizedToVisual: {\n linear: function (normalized) {\n return zrColor.stringify(\n zrColor.fastLerp(normalized, this.option.parsedVisual),\n 'rgba'\n );\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = zrColor.stringify(\n zrColor.fastLerp(normalized, this.option.parsedVisual),\n 'rgba'\n );\n }\n return result;\n },\n fixed: doMapFixed\n }\n },\n\n colorHue: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, value);\n }),\n\n colorSaturation: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, null, value);\n }),\n\n colorLightness: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyHSL(color, null, null, value);\n }),\n\n colorAlpha: makePartialColorVisualHandler(function (color: ColorString, value: number) {\n return zrColor.modifyAlpha(color, value);\n }),\n\n decal: {\n applyVisual: makeApplyVisual('decal'),\n _normalizedToVisual: {\n linear: null,\n category: doMapCategory,\n piecewise: null,\n fixed: null\n }\n },\n\n opacity: {\n applyVisual: makeApplyVisual('opacity'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n },\n\n liftZ: {\n applyVisual: makeApplyVisual('liftZ'),\n _normalizedToVisual: {\n linear: doMapFixed,\n category: doMapFixed,\n piecewise: doMapFixed,\n fixed: doMapFixed\n }\n },\n\n symbol: {\n applyVisual: function (value, getter, setter) {\n const symbolCfg = this.mapValueToVisual(value);\n setter('symbol', symbolCfg as string);\n },\n _normalizedToVisual: {\n linear: doMapToArray,\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = doMapToArray.call(this, normalized);\n }\n return result;\n },\n fixed: doMapFixed\n }\n },\n\n symbolSize: {\n applyVisual: makeApplyVisual('symbolSize'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n }\n };\n\n\n /**\n * List available visual types.\n *\n * @public\n * @return {Array.}\n */\n static listVisualTypes() {\n return zrUtil.keys(VisualMapping.visualHandlers);\n }\n\n // /**\n // * @public\n // */\n // static addVisualHandler(name, handler) {\n // visualHandlers[name] = handler;\n // }\n\n /**\n * @public\n */\n static isValidType(visualType: string): boolean {\n return VisualMapping.visualHandlers.hasOwnProperty(visualType);\n }\n\n /**\n * Convinent method.\n * Visual can be Object or Array or primary type.\n */\n static eachVisual(\n visual: T | T[] | Dictionary,\n callback: (visual: T, key?: string | number) => void,\n context?: Ctx\n ) {\n if (zrUtil.isObject(visual)) {\n zrUtil.each(visual as Dictionary, callback, context);\n }\n else {\n callback.call(context, visual);\n }\n }\n\n static mapVisual(visual: T, callback: (visual: T, key?: string | number) => T, context?: Ctx): T\n static mapVisual(visual: T[], callback: (visual: T, key?: string | number) => T[], context?: Ctx): T[]\n static mapVisual(\n visual: Dictionary,\n callback: (visual: T, key?: string | number) => Dictionary,\n context?: Ctx\n ): Dictionary\n static mapVisual(\n visual: T | T[] | Dictionary,\n callback: (visual: T, key?: string | number) => T | T[] | Dictionary,\n context?: Ctx\n ) {\n let isPrimary: boolean;\n let newVisual: T | T[] | Dictionary = zrUtil.isArray(visual)\n ? []\n : zrUtil.isObject(visual)\n ? {}\n : (isPrimary = true, null);\n\n VisualMapping.eachVisual(visual, function (v, key) {\n const newVal = callback.call(context, v, key);\n isPrimary ? (newVisual = newVal) : ((newVisual as Dictionary)[key as string] = newVal as T);\n });\n return newVisual;\n }\n\n /**\n * Retrieve visual properties from given object.\n */\n static retrieveVisuals(obj: Dictionary): VisualOptionPiecewise {\n const ret: VisualOptionPiecewise = {};\n let hasVisual: boolean;\n\n obj && each(VisualMapping.visualHandlers, function (h, visualType: BuiltinVisualProperty) {\n if (obj.hasOwnProperty(visualType)) {\n (ret as any)[visualType] = obj[visualType];\n hasVisual = true;\n }\n });\n\n return hasVisual ? ret : null;\n }\n\n /**\n * Give order to visual types, considering colorSaturation, colorAlpha depends on color.\n *\n * @public\n * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}\n * IF Array, like: ['color', 'symbol', 'colorSaturation']\n * @return {Array.} Sorted visual types.\n */\n static prepareVisualTypes(\n visualTypes: {[key in BuiltinVisualProperty]?: any} | BuiltinVisualProperty[]\n ) {\n if (zrUtil.isArray(visualTypes)) {\n visualTypes = visualTypes.slice();\n }\n else if (isObject(visualTypes)) {\n const types: BuiltinVisualProperty[] = [];\n each(visualTypes, function (item: unknown, type: BuiltinVisualProperty) {\n types.push(type);\n });\n visualTypes = types;\n }\n else {\n return [];\n }\n\n visualTypes.sort(function (type1: BuiltinVisualProperty, type2: BuiltinVisualProperty) {\n // color should be front of colorSaturation, colorAlpha, ...\n // symbol and symbolSize do not matter.\n return (type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0)\n ? 1 : -1;\n });\n\n return visualTypes;\n }\n\n /**\n * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.\n * Other visuals are only depends on themself.\n */\n static dependsOn(visualType1: BuiltinVisualProperty, visualType2: BuiltinVisualProperty) {\n return visualType2 === 'color'\n ? !!(visualType1 && visualType1.indexOf(visualType2) === 0)\n : visualType1 === visualType2;\n }\n\n /**\n * @param value\n * @param pieceList [{value: ..., interval: [min, max]}, ...]\n * Always from small to big.\n * @param findClosestWhenOutside Default to be false\n * @return index\n */\n static findPieceIndex(value: number, pieceList: VisualMappingPiece[], findClosestWhenOutside?: boolean): number {\n let possibleI: number;\n let abs = Infinity;\n\n // value has the higher priority.\n for (let i = 0, len = pieceList.length; i < len; i++) {\n const pieceValue = pieceList[i].value;\n if (pieceValue != null) {\n if (pieceValue === value\n // FIXME\n // It is supposed to compare value according to value type of dimension,\n // but currently value type can exactly be string or number.\n // Compromise for numeric-like string (like '12'), especially\n // in the case that visualMap.categories is ['22', '33'].\n || (typeof pieceValue === 'string' && pieceValue === value + '')\n ) {\n return i;\n }\n findClosestWhenOutside && updatePossible(pieceValue as number, i);\n }\n }\n\n for (let i = 0, len = pieceList.length; i < len; i++) {\n const piece = pieceList[i];\n const interval = piece.interval;\n const close = piece.close;\n\n if (interval) {\n if (interval[0] === -Infinity) {\n if (littleThan(close[1], value, interval[1])) {\n return i;\n }\n }\n else if (interval[1] === Infinity) {\n if (littleThan(close[0], interval[0], value)) {\n return i;\n }\n }\n else if (\n littleThan(close[0], interval[0], value)\n && littleThan(close[1], value, interval[1])\n ) {\n return i;\n }\n findClosestWhenOutside && updatePossible(interval[0], i);\n findClosestWhenOutside && updatePossible(interval[1], i);\n }\n }\n\n if (findClosestWhenOutside) {\n return value === Infinity\n ? pieceList.length - 1\n : value === -Infinity\n ? 0\n : possibleI;\n }\n\n function updatePossible(val: number, index: number) {\n const newAbs = Math.abs(val - value);\n if (newAbs < abs) {\n abs = newAbs;\n possibleI = index;\n }\n }\n\n }\n}\n\nfunction preprocessForPiecewise(thisOption: VisualMappingInnerOption) {\n const pieceList = thisOption.pieceList;\n thisOption.hasSpecialVisual = false;\n\n zrUtil.each(pieceList, function (piece, index) {\n piece.originIndex = index;\n // piece.visual is \"result visual value\" but not\n // a visual range, so it does not need to be normalized.\n if (piece.visual != null) {\n thisOption.hasSpecialVisual = true;\n }\n });\n}\n\nfunction preprocessForSpecifiedCategory(thisOption: VisualMappingInnerOption) {\n // Hash categories.\n const categories = thisOption.categories;\n const categoryMap: VisualMappingInnerOption['categoryMap'] = thisOption.categoryMap = {};\n\n let visual = thisOption.visual;\n each(categories, function (cate, index) {\n categoryMap[cate] = index;\n });\n\n // Process visual map input.\n if (!zrUtil.isArray(visual)) {\n const visualArr: VisualValue[] = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v, cate) {\n const index = categoryMap[cate];\n visualArr[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;\n });\n }\n else { // Is primary type, represents default visual.\n visualArr[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;\n }\n\n visual = setVisualToOption(thisOption, visualArr);\n }\n\n // Remove categories that has no visual,\n // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.\n for (let i = categories.length - 1; i >= 0; i--) {\n if (visual[i] == null) {\n delete categoryMap[categories[i]];\n categories.pop();\n }\n }\n}\n\nfunction normalizeVisualRange(thisOption: VisualMappingInnerOption, isCategory?: boolean) {\n const visual = thisOption.visual;\n const visualArr: VisualValue[] = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v) {\n visualArr.push(v);\n });\n }\n else if (visual != null) {\n visualArr.push(visual);\n }\n\n const doNotNeedPair = {color: 1, symbol: 1};\n\n if (!isCategory\n && visualArr.length === 1\n && !doNotNeedPair.hasOwnProperty(thisOption.type)\n ) {\n // Do not care visualArr.length === 0, which is illegal.\n visualArr[1] = visualArr[0];\n }\n\n setVisualToOption(thisOption, visualArr);\n}\n\nfunction makePartialColorVisualHandler(\n applyValue: (prop: VisualValue, value: NormalizedValue) => VisualValue\n): VisualHandler {\n return {\n applyVisual: function (value, getter, setter) {\n // Only used in HSL\n const colorChannel = this.mapValueToVisual(value);\n // Must not be array value\n setter('color', applyValue(getter('color'), colorChannel as number));\n },\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n };\n}\n\nfunction doMapToArray(this: VisualMapping, normalized: NormalizedValue): VisualValue {\n const visual = this.option.visual as VisualValue[];\n return visual[\n Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))\n ] || {} as any; // TODO {}?\n}\n\nfunction makeApplyVisual(visualType: string): VisualHandler['applyVisual'] {\n return function (value, getter, setter) {\n setter(visualType, this.mapValueToVisual(value));\n };\n}\n\nfunction doMapCategory(this: VisualMapping, normalized: NormalizedValue): VisualValue {\n const visual = this.option.visual as Dictionary;\n return visual[\n (this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX)\n ? normalized % visual.length\n : normalized\n ];\n}\n\nfunction doMapFixed(this: VisualMapping): VisualValue {\n // visual will be convert to array.\n return (this.option.visual as VisualValue[])[0];\n}\n\n/**\n * Create mapped to numeric visual\n */\nfunction createNormalizedToNumericVisual(sourceExtent: [number, number]): VisualHandler['_normalizedToVisual'] {\n return {\n linear: function (normalized) {\n return linearMap(normalized, sourceExtent, this.option.visual as [number, number], true);\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n let result = getSpecifiedVisual.call(this, value);\n if (result == null) {\n result = linearMap(normalized, sourceExtent, this.option.visual as [number, number], true);\n }\n return result;\n },\n fixed: doMapFixed\n };\n}\n\nfunction getSpecifiedVisual(this: VisualMapping, value: number) {\n const thisOption = this.option;\n const pieceList = thisOption.pieceList;\n if (thisOption.hasSpecialVisual) {\n const pieceIndex = VisualMapping.findPieceIndex(value, pieceList);\n const piece = pieceList[pieceIndex];\n if (piece && piece.visual) {\n return piece.visual[this.type];\n }\n }\n}\n\nfunction setVisualToOption(thisOption: VisualMappingInnerOption, visualArr: VisualValue[]) {\n thisOption.visual = visualArr;\n if (thisOption.type === 'color') {\n thisOption.parsedVisual = zrUtil.map(visualArr, function (item: string) {\n return zrColor.parse(item);\n });\n }\n return visualArr;\n}\n\n\n/**\n * Normalizers by mapping methods.\n */\nconst normalizers: { [key in MappingMethod]: Normalizer } = {\n linear: function (value: RawValue): NormalizedValue {\n return linearMap(value as number, this.option.dataExtent, [0, 1], true);\n },\n\n piecewise: function (value: RawValue): NormalizedValue {\n const pieceList = this.option.pieceList;\n const pieceIndex = VisualMapping.findPieceIndex(value as number, pieceList, true);\n if (pieceIndex != null) {\n return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);\n }\n },\n\n category: function (value: RawValue): NormalizedValue {\n const index: number = this.option.categories\n ? this.option.categoryMap[value]\n : value as number; // ordinal value\n return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;\n },\n\n fixed: zrUtil.noop as Normalizer\n};\n\n\nfunction littleThan(close: boolean | 0 | 1, a: number, b: number): boolean {\n return close ? a <= b : a < b;\n}\n\nexport default VisualMapping;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport { each, extend, isArray } from 'zrender/src/core/util';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption, TreemapSeriesOption } from './TreemapSeries';\nimport { TreemapLayoutNode, TreemapItemLayout } from './treemapLayout';\nimport Model from '../../model/Model';\nimport { ColorString, ZRColor } from '../../util/types';\nimport { modifyHSL, modifyAlpha } from 'zrender/src/tool/color';\nimport { makeInner } from '../../util/model';\n\ntype NodeModel = Model;\ntype NodeItemStyleModel = Model;\n\nconst ITEM_STYLE_NORMAL = 'itemStyle';\n\nconst inner = makeInner<{\n drColorMappingBy: TreemapSeriesNodeItemOption['colorMappingBy']\n}, VisualMapping>();\n\ninterface TreemapVisual {\n color?: ZRColor\n colorAlpha?: number\n colorSaturation?: number\n}\n\ntype TreemapLevelItemStyleOption = TreemapSeriesOption['levels'][number]['itemStyle'];\n\nexport default {\n seriesType: 'treemap',\n reset(seriesModel: TreemapSeriesModel) {\n const tree = seriesModel.getData().tree;\n const root = tree.root;\n\n if (root.isRemoved()) {\n return;\n }\n\n travelTree(\n root, // Visual should calculate from tree root but not view root.\n {},\n seriesModel.getViewRoot().getAncestors(),\n seriesModel\n );\n }\n};\n\nfunction travelTree(\n node: TreemapLayoutNode,\n designatedVisual: TreemapVisual,\n viewRootAncestors: TreemapLayoutNode[],\n seriesModel: TreemapSeriesModel\n) {\n const nodeModel = node.getModel();\n const nodeLayout = node.getLayout();\n const data = node.hostTree.data;\n\n // Optimize\n if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {\n return;\n }\n const nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL);\n const visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel);\n\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n // calculate border color\n let borderColor = nodeItemStyleModel.get('borderColor');\n const borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');\n let thisNodeColor;\n if (borderColorSaturation != null) {\n // For performance, do not always execute 'calculateColor'.\n thisNodeColor = calculateColor(visuals);\n borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);\n }\n existsStyle.stroke = borderColor;\n\n const viewChildren = node.viewChildren;\n if (!viewChildren || !viewChildren.length) {\n thisNodeColor = calculateColor(visuals);\n // Apply visual to this node.\n existsStyle.fill = thisNodeColor;\n }\n else {\n const mapping = buildVisualMapping(\n node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren\n );\n\n // Designate visual to children.\n each(viewChildren, function (child, index) {\n // If higher than viewRoot, only ancestors of viewRoot is needed to visit.\n if (child.depth >= viewRootAncestors.length\n || child === viewRootAncestors[child.depth]\n ) {\n const childVisual = mapVisual(\n nodeModel, visuals, child, index, mapping, seriesModel\n );\n travelTree(child, childVisual, viewRootAncestors, seriesModel);\n }\n });\n }\n}\n\nfunction buildVisuals(\n nodeItemStyleModel: Model,\n designatedVisual: TreemapVisual,\n seriesModel: TreemapSeriesModel\n) {\n const visuals = extend({}, designatedVisual);\n const designatedVisualItemStyle = seriesModel.designatedVisualItemStyle;\n\n each(['color', 'colorAlpha', 'colorSaturation'] as const, function (visualName) {\n // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel\n (designatedVisualItemStyle as any)[visualName] = designatedVisual[visualName];\n const val = nodeItemStyleModel.get(visualName);\n designatedVisualItemStyle[visualName] = null;\n\n val != null && ((visuals as any)[visualName] = val);\n });\n\n return visuals;\n}\n\nfunction calculateColor(visuals: TreemapVisual) {\n let color = getValueVisualDefine(visuals, 'color') as ColorString;\n\n if (color) {\n const colorAlpha = getValueVisualDefine(visuals, 'colorAlpha') as number;\n const colorSaturation = getValueVisualDefine(visuals, 'colorSaturation') as number;\n if (colorSaturation) {\n color = modifyHSL(color, null, null, colorSaturation);\n }\n if (colorAlpha) {\n color = modifyAlpha(color, colorAlpha);\n }\n\n return color;\n }\n}\n\nfunction calculateBorderColor(\n borderColorSaturation: number,\n thisNodeColor: ColorString\n) {\n return thisNodeColor != null\n // Can only be string\n ? modifyHSL(thisNodeColor, null, null, borderColorSaturation)\n : null;\n}\n\nfunction getValueVisualDefine(visuals: TreemapVisual, name: keyof TreemapVisual) {\n const value = visuals[name];\n if (value != null && value !== 'none') {\n return value;\n }\n}\n\nfunction buildVisualMapping(\n node: TreemapLayoutNode,\n nodeModel: NodeModel,\n nodeLayout: TreemapItemLayout,\n nodeItemStyleModel: NodeItemStyleModel,\n visuals: TreemapVisual,\n viewChildren: TreemapLayoutNode[]\n) {\n if (!viewChildren || !viewChildren.length) {\n return;\n }\n\n const rangeVisual = getRangeVisual(nodeModel, 'color')\n || (\n visuals.color != null\n && visuals.color !== 'none'\n && (\n getRangeVisual(nodeModel, 'colorAlpha')\n || getRangeVisual(nodeModel, 'colorSaturation')\n )\n );\n\n if (!rangeVisual) {\n return;\n }\n\n const visualMin = nodeModel.get('visualMin');\n const visualMax = nodeModel.get('visualMax');\n const dataExtent = nodeLayout.dataExtent.slice() as [number, number];\n visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);\n visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);\n\n const colorMappingBy = nodeModel.get('colorMappingBy');\n const opt: VisualMappingOption = {\n type: rangeVisual.name,\n dataExtent: dataExtent,\n visual: rangeVisual.range\n };\n if (opt.type === 'color'\n && (colorMappingBy === 'index' || colorMappingBy === 'id')\n ) {\n opt.mappingMethod = 'category';\n opt.loop = true;\n // categories is ordinal, so do not set opt.categories.\n }\n else {\n opt.mappingMethod = 'linear';\n }\n\n const mapping = new VisualMapping(opt);\n inner(mapping).drColorMappingBy = colorMappingBy;\n\n return mapping;\n}\n\n// Notice: If we dont have the attribute 'colorRange', but only use\n// attribute 'color' to represent both concepts of 'colorRange' and 'color',\n// (It means 'colorRange' when 'color' is Array, means 'color' when not array),\n// this problem will be encountered:\n// If a level-1 node dont have children, and its siblings has children,\n// and colorRange is set on level-1, then the node can not be colored.\n// So we separate 'colorRange' and 'color' to different attributes.\nfunction getRangeVisual(nodeModel: NodeModel, name: keyof TreemapVisual) {\n // 'colorRange', 'colorARange', 'colorSRange'.\n // If not exsits on this node, fetch from levels and series.\n const range = nodeModel.get(name);\n return (isArray(range) && range.length) ? {\n name: name,\n range: range\n } : null;\n}\n\nfunction mapVisual(\n nodeModel: NodeModel,\n visuals: TreemapVisual,\n child: TreemapLayoutNode,\n index: number,\n mapping: VisualMapping,\n seriesModel: TreemapSeriesModel\n) {\n const childVisuals = extend({}, visuals);\n\n if (mapping) {\n // Only support color, colorAlpha, colorSaturation.\n const mappingType = mapping.type as keyof TreemapVisual;\n const colorMappingBy = mappingType === 'color' && inner(mapping).drColorMappingBy;\n const value = colorMappingBy === 'index'\n ? index\n : colorMappingBy === 'id'\n ? seriesModel.mapIdToIndex(child.getId())\n : child.getValue(nodeModel.get('visualDimension'));\n\n (childVisuals as any)[mappingType] = mapping.mapValueToVisual(value);\n }\n\n return childVisuals;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The treemap layout implementation was originally copied from\n* \"d3.js\" with some modifications made for this project.\n* (See more details in the comment of the method \"squarify\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {parsePercent, MAX_SAFE_INTEGER} from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as helper from '../helper/treeHelper';\nimport TreemapSeriesModel, { TreemapSeriesNodeItemOption } from './TreemapSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { TreemapRenderPayload, TreemapMovePayload, TreemapZoomToNodePayload } from './treemapAction';\n\nconst mathMax = Math.max;\nconst mathMin = Math.min;\nconst retrieveValue = zrUtil.retrieve;\nconst each = zrUtil.each;\n\nconst PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth'] as const;\nconst PATH_GAP_WIDTH = ['itemStyle', 'gapWidth'] as const;\nconst PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show'] as const;\nconst PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height'] as const;\n\nexport interface TreemapLayoutNode extends TreeNode {\n parentNode: TreemapLayoutNode\n children: TreemapLayoutNode[]\n viewChildren: TreemapLayoutNode[]\n}\n\nexport interface TreemapItemLayout extends RectLike {\n area: number\n isLeafRoot: boolean\n dataExtent: [number, number]\n\n borderWidth: number\n upperHeight: number\n upperLabelHeight: number\n\n isInView: boolean\n invisible: boolean\n\n isAboveViewRoot: boolean\n};\n\ntype NodeModel = Model;\n\ntype OrderBy = 'asc' | 'desc' | boolean;\n\ntype LayoutRow = TreemapLayoutNode[] & {\n area: number\n};\n/**\n * @public\n */\nexport default {\n seriesType: 'treemap',\n reset: function (\n seriesModel: TreemapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload?: TreemapZoomToNodePayload | TreemapRenderPayload | TreemapMovePayload\n ) {\n // Layout result in each node:\n // {x, y, width, height, area, borderWidth}\n const ecWidth = api.getWidth();\n const ecHeight = api.getHeight();\n const seriesOption = seriesModel.option;\n\n const layoutInfo = layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n const size = seriesOption.size || []; // Compatible with ec2.\n const containerWidth = parsePercent(\n retrieveValue(layoutInfo.width, size[0]),\n ecWidth\n );\n const containerHeight = parsePercent(\n retrieveValue(layoutInfo.height, size[1]),\n ecHeight\n );\n\n // Fetch payload info.\n const payloadType = payload && payload.type;\n const types = ['treemapZoomToNode', 'treemapRootToNode'];\n const targetInfo = helper\n .retrieveTargetInfo(payload, types, seriesModel);\n const rootRect = (payloadType === 'treemapRender' || payloadType === 'treemapMove')\n ? payload.rootRect : null;\n const viewRoot = seriesModel.getViewRoot();\n const viewAbovePath = helper.getPathToRoot(viewRoot) as TreemapLayoutNode[];\n\n if (payloadType !== 'treemapMove') {\n const rootSize = payloadType === 'treemapZoomToNode'\n ? estimateRootSize(\n seriesModel, targetInfo, viewRoot, containerWidth, containerHeight\n )\n : rootRect\n ? [rootRect.width, rootRect.height]\n : [containerWidth, containerHeight];\n\n let sort = seriesOption.sort;\n if (sort && sort !== 'asc' && sort !== 'desc') {\n // Default to be desc order.\n sort = 'desc';\n }\n const options = {\n squareRatio: seriesOption.squareRatio,\n sort: sort,\n leafDepth: seriesOption.leafDepth\n };\n\n // layout should be cleared because using updateView but not update.\n viewRoot.hostTree.clearLayouts();\n\n // TODO\n // optimize: if out of view clip, do not layout.\n // But take care that if do not render node out of view clip,\n // how to calculate start po\n\n let viewRootLayout = {\n x: 0,\n y: 0,\n width: rootSize[0],\n height: rootSize[1],\n area: rootSize[0] * rootSize[1]\n };\n viewRoot.setLayout(viewRootLayout);\n\n squarify(viewRoot, options, false, 0);\n // Supplement layout.\n viewRootLayout = viewRoot.getLayout();\n each(viewAbovePath, function (node, index) {\n const childValue = (viewAbovePath[index + 1] || viewRoot).getValue();\n node.setLayout(zrUtil.extend(\n {\n dataExtent: [childValue, childValue],\n borderWidth: 0,\n upperHeight: 0\n },\n viewRootLayout\n ));\n });\n }\n\n const treeRoot = seriesModel.getData().tree.root;\n\n treeRoot.setLayout(\n calculateRootPosition(layoutInfo, rootRect, targetInfo),\n true\n );\n\n seriesModel.setLayoutInfo(layoutInfo);\n\n // FIXME\n // \u73B0\u5728\u6CA1\u6709clip\u529F\u80FD\uFF0C\u6682\u65F6\u53D6ec\u9AD8\u5BBD\u3002\n prunning(\n treeRoot,\n // Transform to base element coordinate system.\n new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight),\n viewAbovePath,\n viewRoot,\n 0\n );\n }\n};\n\n/**\n * Layout treemap with squarify algorithm.\n * The original presentation of this algorithm\n * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk\n * .\n * The implementation of this algorithm was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * @protected\n * @param {module:echarts/data/Tree~TreeNode} node\n * @param {Object} options\n * @param {string} options.sort 'asc' or 'desc'\n * @param {number} options.squareRatio\n * @param {boolean} hideChildren\n * @param {number} depth\n */\nfunction squarify(\n node: TreemapLayoutNode,\n options: {\n sort?: OrderBy\n squareRatio?: number\n leafDepth?: number\n },\n hideChildren: boolean,\n depth: number\n) {\n let width;\n let height;\n\n if (node.isRemoved()) {\n return;\n }\n\n const thisLayout = node.getLayout();\n width = thisLayout.width;\n height = thisLayout.height;\n\n // Considering border and gap\n const nodeModel = node.getModel();\n const borderWidth = nodeModel.get(PATH_BORDER_WIDTH);\n const halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;\n const upperLabelHeight = getUpperLabelHeight(nodeModel);\n const upperHeight = Math.max(borderWidth, upperLabelHeight);\n const layoutOffset = borderWidth - halfGapWidth;\n const layoutOffsetUpper = upperHeight - halfGapWidth;\n\n node.setLayout({\n borderWidth: borderWidth,\n upperHeight: upperHeight,\n upperLabelHeight: upperLabelHeight\n }, true);\n\n width = mathMax(width - 2 * layoutOffset, 0);\n height = mathMax(height - layoutOffset - layoutOffsetUpper, 0);\n\n const totalArea = width * height;\n const viewChildren = initChildren(\n node, nodeModel, totalArea, options, hideChildren, depth\n );\n\n if (!viewChildren.length) {\n return;\n }\n\n const rect = {x: layoutOffset, y: layoutOffsetUpper, width: width, height: height};\n let rowFixedLength = mathMin(width, height);\n let best = Infinity; // the best row score so far\n const row = [] as LayoutRow;\n row.area = 0;\n\n for (let i = 0, len = viewChildren.length; i < len;) {\n const child = viewChildren[i];\n\n row.push(child);\n row.area += child.getLayout().area;\n const score = worst(row, rowFixedLength, options.squareRatio);\n\n // continue with this orientation\n if (score <= best) {\n i++;\n best = score;\n }\n // abort, and try a different orientation\n else {\n row.area -= row.pop().getLayout().area;\n position(row, rowFixedLength, rect, halfGapWidth, false);\n rowFixedLength = mathMin(rect.width, rect.height);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n\n if (row.length) {\n position(row, rowFixedLength, rect, halfGapWidth, true);\n }\n\n if (!hideChildren) {\n const childrenVisibleMin = nodeModel.get('childrenVisibleMin');\n if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {\n hideChildren = true;\n }\n }\n\n for (let i = 0, len = viewChildren.length; i < len; i++) {\n squarify(viewChildren[i], options, hideChildren, depth + 1);\n }\n}\n\n/**\n * Set area to each child, and calculate data extent for visual coding.\n */\nfunction initChildren(\n node: TreemapLayoutNode,\n nodeModel: NodeModel,\n totalArea: number,\n options: {\n sort?: OrderBy\n leafDepth?: number\n },\n hideChildren: boolean,\n depth: number\n) {\n let viewChildren = node.children || [];\n let orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n const overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n // leafDepth has higher priority.\n if (hideChildren && !overLeafDepth) {\n return (node.viewChildren = []);\n }\n\n // Sort children, order by desc.\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n\n sort(viewChildren, orderBy);\n\n const info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n // Set area to each child.\n for (let i = 0, len = viewChildren.length; i < len; i++) {\n const area = viewChildren[i].getValue() as number / info.sum * totalArea;\n // Do not use setLayout({...}, true), because it is needed to clear last layout.\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n\n return viewChildren;\n}\n\n/**\n * Consider 'visibleMin'. Modify viewChildren and get new sum.\n */\nfunction filterByThreshold(\n nodeModel: NodeModel,\n totalArea: number,\n sum: number,\n orderBy: OrderBy,\n orderedChildren: TreemapLayoutNode[]\n) {\n\n // visibleMin is not supported yet when no option.sort.\n if (!orderBy) {\n return sum;\n }\n\n const visibleMin = nodeModel.get('visibleMin');\n const len = orderedChildren.length;\n let deletePoint = len;\n\n // Always travel from little value to big value.\n for (let i = len - 1; i >= 0; i--) {\n const value = orderedChildren[\n orderBy === 'asc' ? len - i - 1 : i\n ].getValue() as number;\n\n if (value / sum * totalArea < visibleMin) {\n deletePoint = i;\n sum -= value;\n }\n }\n\n orderBy === 'asc'\n ? orderedChildren.splice(0, len - deletePoint)\n : orderedChildren.splice(deletePoint, len - deletePoint);\n\n return sum;\n}\n\n/**\n * Sort\n */\nfunction sort(\n viewChildren: TreemapLayoutNode[],\n orderBy: OrderBy\n) {\n if (orderBy) {\n viewChildren.sort(function (a, b) {\n const diff = orderBy === 'asc'\n ? a.getValue() as number - (b.getValue() as number)\n : b.getValue() as number - (a.getValue() as number);\n return diff === 0\n ? (orderBy === 'asc'\n ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex\n )\n : diff;\n });\n }\n return viewChildren;\n}\n\n/**\n * Statistic\n */\nfunction statistic(\n nodeModel: NodeModel,\n children: TreemapLayoutNode[],\n orderBy: OrderBy\n) {\n // Calculate sum.\n let sum = 0;\n for (let i = 0, len = children.length; i < len; i++) {\n sum += children[i].getValue() as number;\n }\n\n // Statistic data extent for latter visual coding.\n // Notice: data extent should be calculate based on raw children\n // but not filtered view children, otherwise visual mapping will not\n // be stable when zoom (where children is filtered by visibleMin).\n\n const dimension = nodeModel.get('visualDimension');\n let dataExtent: number[];\n\n // The same as area dimension.\n if (!children || !children.length) {\n dataExtent = [NaN, NaN];\n }\n else if (dimension === 'value' && orderBy) {\n dataExtent = [\n children[children.length - 1].getValue() as number,\n children[0].getValue() as number\n ];\n orderBy === 'asc' && dataExtent.reverse();\n }\n // Other dimension.\n else {\n dataExtent = [Infinity, -Infinity];\n each(children, function (child) {\n const value = child.getValue(dimension) as number;\n value < dataExtent[0] && (dataExtent[0] = value);\n value > dataExtent[1] && (dataExtent[1] = value);\n });\n }\n\n return {sum: sum, dataExtent: dataExtent};\n}\n\n/**\n * Computes the score for the specified row,\n * as the worst aspect ratio.\n */\nfunction worst(row: LayoutRow, rowFixedLength: number, ratio: number) {\n let areaMax = 0;\n let areaMin = Infinity;\n\n for (let i = 0, area, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n const squareArea = row.area * row.area;\n const f = rowFixedLength * rowFixedLength * ratio;\n\n return squareArea\n ? mathMax(\n (f * areaMax) / squareArea,\n squareArea / (f * areaMin)\n )\n : Infinity;\n}\n\n/**\n * Positions the specified row of nodes. Modifies `rect`.\n */\nfunction position(\n row: LayoutRow,\n rowFixedLength: number,\n rect: RectLike,\n halfGapWidth: number,\n flush?: boolean\n) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n const idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n const idx1WhenH = 1 - idx0WhenH;\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n\n let last = rect[xy[idx0WhenH]];\n let rowOtherLength = rowFixedLength\n ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n for (let i = 0, rowLen = row.length; i < rowLen; i++) {\n const node = row[i];\n const nodeLayout = {} as TreemapItemLayout;\n const step = rowOtherLength\n ? node.getLayout().area / rowOtherLength : 0;\n\n const wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0);\n\n // We use Math.max/min to avoid negative width/height when considering gap width.\n const remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n const modWH = (i === rowLen - 1 || remain < step) ? remain : step;\n const wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n}\n\n// Return [containerWidth, containerHeight] as default.\nfunction estimateRootSize(\n seriesModel: TreemapSeriesModel,\n targetInfo: { node: TreemapLayoutNode },\n viewRoot: TreemapLayoutNode,\n containerWidth: number,\n containerHeight: number\n) {\n // If targetInfo.node exists, we zoom to the node,\n // so estimate whold width and heigth by target node.\n let currNode = (targetInfo || {}).node;\n const defaultSize = [containerWidth, containerHeight];\n\n if (!currNode || currNode === viewRoot) {\n return defaultSize;\n }\n\n let parent;\n const viewArea = containerWidth * containerHeight;\n let area = viewArea * seriesModel.option.zoomToNodeRatio;\n\n while (parent = currNode.parentNode) { // jshint ignore:line\n let sum = 0;\n const siblings = parent.children;\n\n for (let i = 0, len = siblings.length; i < len; i++) {\n sum += siblings[i].getValue() as number;\n }\n const currNodeValue = currNode.getValue() as number;\n if (currNodeValue === 0) {\n return defaultSize;\n }\n area *= sum / currNodeValue;\n\n // Considering border, suppose aspect ratio is 1.\n const parentModel = parent.getModel();\n const borderWidth = parentModel.get(PATH_BORDER_WIDTH);\n const upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel));\n area += 4 * borderWidth * borderWidth\n + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);\n\n area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);\n\n currNode = parent;\n }\n\n area < viewArea && (area = viewArea);\n const scale = Math.pow(area / viewArea, 0.5);\n\n return [containerWidth * scale, containerHeight * scale];\n}\n\n// Root postion base on coord of containerGroup\nfunction calculateRootPosition(\n layoutInfo: layout.LayoutRect,\n rootRect: RectLike,\n targetInfo: { node: TreemapLayoutNode }\n) {\n if (rootRect) {\n return {x: rootRect.x, y: rootRect.y};\n }\n\n const defaultPosition = {x: 0, y: 0};\n if (!targetInfo) {\n return defaultPosition;\n }\n\n // If targetInfo is fetched by 'retrieveTargetInfo',\n // old tree and new tree are the same tree,\n // so the node still exists and we can visit it.\n\n const targetNode = targetInfo.node;\n const layout = targetNode.getLayout();\n\n if (!layout) {\n return defaultPosition;\n }\n\n // Transform coord from local to container.\n const targetCenter = [layout.width / 2, layout.height / 2];\n let node = targetNode;\n while (node) {\n const nodeLayout = node.getLayout();\n targetCenter[0] += nodeLayout.x;\n targetCenter[1] += nodeLayout.y;\n node = node.parentNode;\n }\n\n return {\n x: layoutInfo.width / 2 - targetCenter[0],\n y: layoutInfo.height / 2 - targetCenter[1]\n };\n}\n\n// Mark nodes visible for prunning when visual coding and rendering.\n// Prunning depends on layout and root position, so we have to do it after layout.\nfunction prunning(\n node: TreemapLayoutNode,\n clipRect: BoundingRect,\n viewAbovePath: TreemapLayoutNode[],\n viewRoot: TreemapLayoutNode,\n depth: number\n) {\n const nodeLayout = node.getLayout();\n const nodeInViewAbovePath = viewAbovePath[depth];\n const isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;\n\n if (\n (nodeInViewAbovePath && !isAboveViewRoot)\n || (depth === viewAbovePath.length && node !== viewRoot)\n ) {\n return;\n }\n\n node.setLayout({\n // isInView means: viewRoot sub tree + viewAbovePath\n isInView: true,\n // invisible only means: outside view clip so that the node can not\n // see but still layout for animation preparation but not render.\n invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),\n isAboveViewRoot\n }, true);\n\n // Transform to child coordinate.\n const childClipRect = new BoundingRect(\n clipRect.x - nodeLayout.x,\n clipRect.y - nodeLayout.y,\n clipRect.width,\n clipRect.height\n );\n\n each(node.viewChildren || [], function (child) {\n prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);\n });\n}\n\nfunction getUpperLabelHeight(model: NodeModel): number {\n return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { installTreemapAction } from './treemapAction';\nimport TreemapSeriesModel from './TreemapSeries';\nimport TreemapView from './TreemapView';\nimport treemapVisual from './treemapVisual';\nimport treemapLayout from './treemapLayout';\n\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerSeriesModel(TreemapSeriesModel);\n registers.registerChartView(TreemapView);\n registers.registerVisual(treemapVisual);\n registers.registerLayout(treemapLayout);\n\n installTreemapAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport type LegendModel from '../../component/legend/LegendModel';\n\nexport default function categoryFilter(ecModel: GlobalModel) {\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n }) as LegendModel[];\n if (!legendModels || !legendModels.length) {\n return;\n }\n ecModel.eachSeriesByType('graph', function (graphSeries: GraphSeriesModel) {\n const categoriesData = graphSeries.getCategoriesData();\n const graph = graphSeries.getGraph();\n const data = graph.data;\n\n const categoryNames = categoriesData.mapArray(categoriesData.getName);\n\n data.filterSelf(function (idx) {\n const model = data.getItemModel(idx);\n let category = model.getShallow('category');\n if (category != null) {\n if (typeof category === 'number') {\n category = categoryNames[category];\n }\n // If in any legend component the status is not selected.\n for (let i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(category)) {\n return false;\n }\n }\n }\n return true;\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport { Dictionary, ColorString } from '../../util/types';\nimport { extend } from 'zrender/src/core/util';\n\nexport default function categoryVisual(ecModel: GlobalModel) {\n\n const paletteScope: Dictionary = {};\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const categoriesData = seriesModel.getCategoriesData();\n const data = seriesModel.getData();\n\n const categoryNameIdxMap: Dictionary = {};\n\n categoriesData.each(function (idx) {\n const name = categoriesData.getName(idx);\n // Add prefix to avoid conflict with Object.prototype.\n categoryNameIdxMap['ec-' + name] = idx;\n const itemModel = categoriesData.getItemModel(idx);\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n if (!style.fill) {\n // Get color from palette.\n style.fill = seriesModel.getColorFromPalette(name, paletteScope);\n }\n categoriesData.setItemVisual(idx, 'style', style);\n\n const symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect'] as const;\n\n for (let i = 0; i < symbolVisualList.length; i++) {\n const symbolVisual = itemModel.getShallow(symbolVisualList[i], true);\n if (symbolVisual != null) {\n categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual);\n }\n }\n });\n\n // Assign category color to visual\n if (categoriesData.count()) {\n data.each(function (idx) {\n const model = data.getItemModel(idx);\n let categoryIdx = model.getShallow('category');\n if (categoryIdx != null) {\n if (typeof categoryIdx === 'string') {\n categoryIdx = categoryNameIdxMap['ec-' + categoryIdx];\n }\n\n const categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style');\n const style = data.ensureUniqueItemVisual(idx, 'style');\n extend(style, categoryStyle);\n\n const visualList = ['symbol', 'symbolSize', 'symbolKeepAspect'] as const;\n\n for (let i = 0; i < visualList.length; i++) {\n data.setItemVisual(\n idx, visualList[i],\n categoriesData.getItemVisual(categoryIdx, visualList[i])\n );\n }\n }\n });\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphEdgeItemOption } from './GraphSeries';\nimport { extend } from 'zrender/src/core/util';\n\nfunction normalize(a: string | string[]): string[];\nfunction normalize(a: number | number[]): number[];\nfunction normalize(a: string | number | (string | number)[]): (string | number)[] {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n return a;\n}\n\nexport default function graphEdgeVisual(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const graph = seriesModel.getGraph();\n const edgeData = seriesModel.getEdgeData();\n const symbolType = normalize(seriesModel.get('edgeSymbol'));\n const symbolSize = normalize(seriesModel.get('edgeSymbolSize'));\n\n // const colorQuery = ['lineStyle', 'color'] as const;\n // const opacityQuery = ['lineStyle', 'opacity'] as const;\n\n edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);\n edgeData.setVisual('toSymbol', symbolType && symbolType[1]);\n edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());\n\n edgeData.each(function (idx) {\n const itemModel = edgeData.getItemModel(idx);\n const edge = graph.getEdgeByIndex(idx);\n const symbolType = normalize(itemModel.getShallow('symbol', true));\n const symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n // Edge visual must after node visual\n const style = itemModel.getModel('lineStyle').getLineStyle();\n\n const existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n switch (existsStyle.stroke) {\n case 'source': {\n const nodeStyle = edge.node1.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n case 'target': {\n const nodeStyle = edge.node2.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n }\n\n symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);\n symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);\n symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);\n symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);\n });\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst KEY_DELIMITER = '-->';\n/**\n * params handler\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {*}\n */\nconst getAutoCurvenessParams = function (seriesModel) {\n return seriesModel.get('autoCurveness') || null;\n};\n\n/**\n * Generate a list of edge curvatures, 20 is the default\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} appendLength\n * @return 20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2]\n */\nconst createCurveness = function (seriesModel, appendLength) {\n const autoCurvenessParmas = getAutoCurvenessParams(seriesModel);\n let length = 20;\n let curvenessList = [];\n\n // handler the function set\n if (typeof autoCurvenessParmas === 'number') {\n length = autoCurvenessParmas;\n }\n else if (zrUtil.isArray(autoCurvenessParmas)) {\n seriesModel.__curvenessList = autoCurvenessParmas;\n return;\n }\n\n // append length\n if (appendLength > length) {\n length = appendLength;\n }\n\n // make sure the length is even\n const len = length % 2 ? length + 2 : length + 3;\n curvenessList = [];\n\n for (let i = 0; i < len; i++) {\n curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1));\n }\n seriesModel.__curvenessList = curvenessList;\n};\n\n/**\n * Create different cache key data in the positive and negative directions, in order to set the curvature later\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {string} key\n */\nconst getKeyOfEdges = function (n1, n2, seriesModel) {\n const source = [n1.id, n1.dataIndex].join('.');\n const target = [n2.id, n2.dataIndex].join('.');\n return [seriesModel.uid, source, target].join(KEY_DELIMITER);\n};\n\n/**\n * get opposite key\n * @param {string} key\n * @returns {string}\n */\nconst getOppositeKey = function (key) {\n const keys = key.split(KEY_DELIMITER);\n return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER);\n};\n\n/**\n * get edgeMap with key\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\nconst getEdgeFromMap = function (edge, seriesModel) {\n const key = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n return seriesModel.__edgeMap[key];\n};\n\n/**\n * calculate all cases total length\n * @param edge\n * @param seriesModel\n * @returns {number}\n */\nconst getTotalLengthBetweenNodes = function (edge, seriesModel) {\n const len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel);\n const lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);\n\n return len + lenV;\n};\n\n/**\n *\n * @param key\n */\nconst getEdgeMapLengthWithKey = function (key, seriesModel) {\n const edgeMap = seriesModel.__edgeMap;\n return edgeMap[key] ? edgeMap[key].length : 0;\n};\n\n/**\n * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge\n * @see /graph/GraphSeries.js@getInitialData\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\nexport function initCurvenessList(seriesModel) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n seriesModel.__curvenessList = [];\n seriesModel.__edgeMap = {};\n // calc the array of curveness List\n createCurveness(seriesModel);\n}\n\n/**\n * set edgeMap with key\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} index\n */\nexport function createEdgeMapForCurveness(n1, n2, seriesModel, index) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n const key = getKeyOfEdges(n1, n2, seriesModel);\n const edgeMap = seriesModel.__edgeMap;\n const oppositeEdges = edgeMap[getOppositeKey(key)];\n // set direction\n if (edgeMap[key] && !oppositeEdges) {\n edgeMap[key].isForward = true;\n }\n else if (oppositeEdges && edgeMap[key]) {\n oppositeEdges.isForward = true;\n edgeMap[key].isForward = false;\n }\n\n edgeMap[key] = edgeMap[key] || [];\n edgeMap[key].push(index);\n}\n\n/**\n * get curvature for edge\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param index\n */\nexport function getCurvenessForEdge(edge, seriesModel, index, needReverse?: boolean) {\n const autoCurvenessParams = getAutoCurvenessParams(seriesModel);\n const isArrayParam = zrUtil.isArray(autoCurvenessParams);\n if (!autoCurvenessParams) {\n return null;\n }\n\n const edgeArray = getEdgeFromMap(edge, seriesModel);\n if (!edgeArray) {\n return null;\n }\n\n let edgeIndex = -1;\n for (let i = 0; i < edgeArray.length; i++) {\n if (edgeArray[i] === index) {\n edgeIndex = i;\n break;\n }\n }\n // if totalLen is Longer createCurveness\n const totalLen = getTotalLengthBetweenNodes(edge, seriesModel);\n createCurveness(seriesModel, totalLen);\n\n edge.lineStyle = edge.lineStyle || {};\n // if is opposite edge, must set curvenss to opposite number\n const curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n const curvenessList = seriesModel.__curvenessList;\n // if pass array no need parity\n const parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;\n\n if (!edgeArray.isForward) {\n // the opposite edge show outside\n const oppositeKey = getOppositeKey(curKey);\n const len = getEdgeMapLengthWithKey(oppositeKey, seriesModel);\n const resValue = curvenessList[edgeIndex + len + parityCorrection];\n // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite\n if (needReverse) {\n // set as array may make the parity handle with the len of opposite\n if (isArrayParam) {\n if (autoCurvenessParams && autoCurvenessParams[0] === 0) {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n else {\n return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue;\n }\n }\n else {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n }\n else {\n return curvenessList[edgeIndex + len + parityCorrection];\n }\n }\n else {\n return curvenessList[parityCorrection + edgeIndex];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport Graph from '../../data/Graph';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\n\nexport function simpleLayout(seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n const graph = seriesModel.getGraph();\n\n graph.eachNode(function (node) {\n const model = node.getModel();\n node.setLayout([+model.get('x'), +model.get('y')]);\n });\n\n simpleLayoutEdge(graph, seriesModel);\n}\n\nexport function simpleLayoutEdge(graph: Graph, seriesModel: GraphSeriesModel) {\n graph.eachEdge(function (edge, index) {\n const curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n -getCurvenessForEdge(edge, seriesModel, index, true),\n 0\n );\n const p1 = vec2.clone(edge.node1.getLayout());\n const p2 = vec2.clone(edge.node2.getLayout());\n const points = [p1, p2];\n if (+curveness) {\n points.push([\n (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness,\n (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness\n ]);\n }\n edge.setLayout(points);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {each} from 'zrender/src/core/util';\nimport {simpleLayout, simpleLayoutEdge} from './simpleLayoutHelper';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GraphSeriesModel from './GraphSeries';\n\nexport default function graphSimpleLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const layout = seriesModel.get('layout');\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n const data = seriesModel.getData();\n\n let dimensions: string[] = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimensionsAll(coordDim));\n });\n\n for (let dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n const value = [];\n let hasValue = false;\n for (let i = 0; i < dimensions.length; i++) {\n const val = data.get(dimensions[i], dataIndex) as number;\n if (!isNaN(val)) {\n hasValue = true;\n }\n value.push(val);\n }\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n }\n else {\n // Also {Array.}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph, seriesModel);\n }\n else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GraphSeriesModel from './GraphSeries';\nimport View from '../../coord/View';\nimport { GraphNode } from '../../data/Graph';\n\nexport function getNodeGlobalScale(seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem as View;\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n const nodeScaleRatio = seriesModel.option.nodeScaleRatio;\n\n const groupZoom = coordSys.scaleX;\n // Scale node when zoom changes\n const roamZoom = coordSys.getZoom();\n const nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n\n return nodeScale / groupZoom;\n}\n\nexport function getSymbolSize(node: GraphNode) {\n let symbolSize = node.getVisual('symbolSize');\n if (symbolSize instanceof Array) {\n symbolSize = (symbolSize[0] + symbolSize[1]) / 2;\n }\n return +symbolSize;\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport {getSymbolSize, getNodeGlobalScale} from './graphHelper';\nimport GraphSeriesModel, { GraphEdgeItemOption } from './GraphSeries';\nimport Graph from '../../data/Graph';\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\nconst PI = Math.PI;\n\nconst _symbolRadiansHalf: number[] = [];\n\n/**\n * `basedOn` can be:\n * 'value':\n * This layout is not accurate and have same bad case. For example,\n * if the min value is very smaller than the max value, the nodes\n * with the min value probably overlap even though there is enough\n * space to layout them. So we only use this approach in the as the\n * init layout of the force layout.\n * FIXME\n * Probably we do not need this method any more but use\n * `basedOn: 'symbolSize'` in force layout if\n * delay its init operations to GraphView.\n * 'symbolSize':\n * This approach work only if all of the symbol size calculated.\n * That is, the progressive rendering is not applied to graph.\n * FIXME\n * If progressive rendering is applied to graph some day,\n * probably we have to use `basedOn: 'value'`.\n */\nexport function circularLayout(\n seriesModel: GraphSeriesModel,\n basedOn: 'value' | 'symbolSize'\n) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n const rect = coordSys.getBoundingRect();\n\n const nodeData = seriesModel.getData();\n const graph = nodeData.graph;\n\n const cx = rect.width / 2 + rect.x;\n const cy = rect.height / 2 + rect.y;\n const r = Math.min(rect.width, rect.height) / 2;\n const count = nodeData.count();\n\n nodeData.setLayout({\n cx: cx,\n cy: cy\n });\n\n if (!count) {\n return;\n }\n\n _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);\n\n graph.eachEdge(function (edge, index) {\n let curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n getCurvenessForEdge(edge, seriesModel, index),\n 0\n );\n const p1 = vec2.clone(edge.node1.getLayout());\n const p2 = vec2.clone(edge.node2.getLayout());\n let cp1;\n const x12 = (p1[0] + p2[0]) / 2;\n const y12 = (p1[1] + p2[1]) / 2;\n if (+curveness) {\n curveness *= 3;\n cp1 = [\n cx * curveness + x12 * (1 - curveness),\n cy * curveness + y12 * (1 - curveness)\n ];\n }\n edge.setLayout([p1, p2, cp1]);\n });\n}\n\ninterface LayoutNode {\n (\n seriesModel: GraphSeriesModel,\n graph: Graph,\n nodeData: SeriesData,\n r: number,\n cx: number,\n cy: number,\n count: number\n ): void\n}\n\nconst _layoutNodesBasedOn: Record<'value' | 'symbolSize', LayoutNode> = {\n\n value(seriesModel, graph, nodeData, r, cx, cy, count) {\n let angle = 0;\n const sum = nodeData.getSum('value');\n const unitAngle = Math.PI * 2 / (sum || count);\n\n graph.eachNode(function (node) {\n const value = node.getValue('value') as number;\n const radianHalf = unitAngle * (sum ? value : 1) / 2;\n\n angle += radianHalf;\n node.setLayout([\n r * Math.cos(angle) + cx,\n r * Math.sin(angle) + cy\n ]);\n angle += radianHalf;\n });\n },\n\n symbolSize(seriesModel, graph, nodeData, r, cx, cy, count) {\n let sumRadian = 0;\n _symbolRadiansHalf.length = count;\n\n const nodeScale = getNodeGlobalScale(seriesModel);\n\n graph.eachNode(function (node) {\n let symbolSize = getSymbolSize(node);\n\n // Normally this case will not happen, but we still add\n // some the defensive code (2px is an arbitrary value).\n isNaN(symbolSize) && (symbolSize = 2);\n symbolSize < 0 && (symbolSize = 0);\n\n symbolSize *= nodeScale;\n\n let symbolRadianHalf = Math.asin(symbolSize / 2 / r);\n // when `symbolSize / 2` is bigger than `r`.\n isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2);\n _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;\n sumRadian += symbolRadianHalf * 2;\n });\n\n const halfRemainRadian = (2 * PI - sumRadian) / count / 2;\n\n let angle = 0;\n graph.eachNode(function (node) {\n const radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];\n\n angle += radianHalf;\n node.setLayout([\n r * Math.cos(angle) + cx,\n r * Math.sin(angle) + cy\n ]);\n angle += radianHalf;\n });\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {circularLayout} from './circularLayoutHelper';\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel from './GraphSeries';\n\nexport default function graphCircularLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* Some formulas were originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment of the method \"step\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\nimport * as vec2 from 'zrender/src/core/vector';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\n\nconst scaleAndAdd = vec2.scaleAndAdd;\n\ninterface InputNode {\n p?: vec2.VectorArray\n fixed?: boolean\n /**\n * Weight\n */\n w: number\n /**\n * Repulsion\n */\n rep: number\n}\ninterface LayoutNode extends InputNode {\n pp?: vec2.VectorArray\n edges?: LayoutEdge[]\n}\ninterface InputEdge {\n ignoreForceLayout?: boolean\n n1: InputNode\n n2: InputNode\n\n /**\n * Distance\n */\n d: number\n}\ninterface LayoutEdge extends InputEdge {\n n1: LayoutNode\n n2: LayoutNode\n}\ninterface LayoutCfg {\n gravity?: number\n friction?: number\n rect?: RectLike\n}\n// function adjacentNode(n, e) {\n// return e.n1 === n ? e.n2 : e.n1;\n// }\n\nexport function forceLayout(\n inNodes: N[],\n inEdges: E[],\n opts: LayoutCfg\n) {\n const nodes = inNodes as LayoutNode[];\n const edges = inEdges as LayoutEdge[];\n const rect = opts.rect;\n const width = rect.width;\n const height = rect.height;\n const center = [rect.x + width / 2, rect.y + height / 2];\n // let scale = opts.scale || 1;\n const gravity = opts.gravity == null ? 0.1 : opts.gravity;\n\n // for (let i = 0; i < edges.length; i++) {\n // let e = edges[i];\n // let n1 = e.n1;\n // let n2 = e.n2;\n // n1.edges = n1.edges || [];\n // n2.edges = n2.edges || [];\n // n1.edges.push(e);\n // n2.edges.push(e);\n // }\n // Init position\n for (let i = 0; i < nodes.length; i++) {\n const n = nodes[i] as LayoutNode;\n if (!n.p) {\n n.p = vec2.create(\n width * (Math.random() - 0.5) + center[0],\n height * (Math.random() - 0.5) + center[1]\n );\n }\n n.pp = vec2.clone(n.p);\n n.edges = null;\n }\n\n // Formula in 'Graph Drawing by Force-directed Placement'\n // let k = scale * Math.sqrt(width * height / nodes.length);\n // let k2 = k * k;\n\n const initialFriction = opts.friction == null ? 0.6 : opts.friction;\n let friction = initialFriction;\n\n let beforeStepCallback: (nodes: N[], edges: E[]) => void;\n let afterStepCallback: (nodes: N[], edges: E[], finished: boolean) => void;\n\n return {\n warmUp: function () {\n friction = initialFriction * 0.8;\n },\n\n setFixed: function (idx: number) {\n nodes[idx].fixed = true;\n },\n\n setUnfixed: function (idx: number) {\n nodes[idx].fixed = false;\n },\n\n /**\n * Before step hook\n */\n beforeStep: function (cb: typeof beforeStepCallback) {\n beforeStepCallback = cb;\n },\n /**\n * After step hook\n */\n afterStep: function (cb: typeof afterStepCallback) {\n afterStepCallback = cb;\n },\n\n /**\n * Some formulas were originally copied from \"d3.js\"\n * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js\n * with some modifications made for this project.\n * See the license statement at the head of this file.\n */\n step: function (cb?: (finished: boolean) => void) {\n beforeStepCallback && beforeStepCallback(nodes as N[], edges as E[]);\n\n const v12: number[] = [];\n const nLen = nodes.length;\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n if (e.ignoreForceLayout) {\n continue;\n }\n const n1 = e.n1;\n const n2 = e.n2;\n\n vec2.sub(v12, n2.p, n1.p);\n const d = vec2.len(v12) - e.d;\n let w = n2.w / (n1.w + n2.w);\n\n if (isNaN(w)) {\n w = 0;\n }\n\n vec2.normalize(v12, v12);\n\n !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);\n !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);\n }\n // Gravity\n for (let i = 0; i < nLen; i++) {\n const n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v12, center, n.p);\n // let d = vec2.len(v12);\n // vec2.scale(v12, v12, 1 / d);\n // let gravityFactor = gravity;\n scaleAndAdd(n.p, n.p, v12, gravity * friction);\n }\n }\n\n // Repulsive\n // PENDING\n for (let i = 0; i < nLen; i++) {\n const n1 = nodes[i];\n for (let j = i + 1; j < nLen; j++) {\n const n2 = nodes[j];\n vec2.sub(v12, n2.p, n1.p);\n let d = vec2.len(v12);\n if (d === 0) {\n // Random repulse\n vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);\n d = 1;\n }\n const repFact = (n1.rep + n2.rep) / d / d;\n !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);\n !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);\n }\n }\n const v: number[] = [];\n for (let i = 0; i < nLen; i++) {\n const n = nodes[i];\n if (!n.fixed) {\n vec2.sub(v, n.p, n.pp);\n scaleAndAdd(n.p, n.p, v, friction);\n vec2.copy(n.pp, n.p);\n }\n }\n\n friction = friction * 0.992;\n\n const finished = friction < 0.01;\n\n afterStepCallback && afterStepCallback(nodes as N[], edges as E[], finished);\n\n cb && cb(finished);\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {forceLayout} from './forceHelper';\nimport {simpleLayout} from './simpleLayoutHelper';\nimport {circularLayout} from './circularLayoutHelper';\nimport {linearMap} from '../../util/number';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport {getCurvenessForEdge} from '../helper/multipleGraphEdgeHelper';\n\nexport interface ForceLayoutInstance {\n step(cb: (stopped: boolean) => void): void\n warmUp(): void\n setFixed(idx: number): void\n setUnfixed(idx: number): void\n}\n\n\nexport default function graphForceLayout(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries: GraphSeriesModel) {\n const coordSys = graphSeries.coordinateSystem;\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n if (graphSeries.get('layout') === 'force') {\n const preservedPoints = graphSeries.preservedPoints || {};\n const graph = graphSeries.getGraph();\n const nodeData = graph.data;\n const edgeData = graph.edgeData;\n const forceModel = graphSeries.getModel('force');\n const initLayout = forceModel.get('initLayout');\n if (graphSeries.preservedPoints) {\n nodeData.each(function (idx) {\n const id = nodeData.getId(idx);\n nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);\n });\n }\n else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n }\n else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n const nodeDataExtent = nodeData.getDataExtent('value');\n const edgeDataExtent = edgeData.getDataExtent('value');\n // let edgeDataExtent = edgeData.getDataExtent('value');\n const repulsion = forceModel.get('repulsion');\n const edgeLength = forceModel.get('edgeLength');\n const repulsionArr = zrUtil.isArray(repulsion)\n ? repulsion : [repulsion, repulsion];\n let edgeLengthArr = zrUtil.isArray(edgeLength)\n ? edgeLength : [edgeLength, edgeLength];\n\n // Larger value has smaller length\n edgeLengthArr = [edgeLengthArr[1], edgeLengthArr[0]];\n\n const nodes = nodeData.mapArray('value', function (value: number, idx) {\n const point = nodeData.getItemLayout(idx) as number[];\n let rep = linearMap(value, nodeDataExtent, repulsionArr);\n if (isNaN(rep)) {\n rep = (repulsionArr[0] + repulsionArr[1]) / 2;\n }\n return {\n w: rep,\n rep: rep,\n fixed: nodeData.getItemModel(idx).get('fixed'),\n p: (!point || isNaN(point[0]) || isNaN(point[1])) ? null : point\n };\n });\n const edges = edgeData.mapArray('value', function (value: number, idx) {\n const edge = graph.getEdgeByIndex(idx);\n let d = linearMap(value, edgeDataExtent, edgeLengthArr);\n if (isNaN(d)) {\n d = (edgeLengthArr[0] + edgeLengthArr[1]) / 2;\n }\n const edgeModel = edge.getModel();\n const curveness = zrUtil.retrieve3(\n edge.getModel().get(['lineStyle', 'curveness']),\n -getCurvenessForEdge(edge, graphSeries, idx, true),\n 0\n );\n return {\n n1: nodes[edge.node1.dataIndex],\n n2: nodes[edge.node2.dataIndex],\n d: d,\n curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n });\n\n // let coordSys = graphSeries.coordinateSystem;\n const rect = coordSys.getBoundingRect();\n const forceInstance = forceLayout(nodes, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n forceInstance.beforeStep(function (nodes, edges) {\n for (let i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(\n nodes[i].p,\n graph.getNodeByIndex(i).getLayout() as number[]\n );\n }\n }\n });\n forceInstance.afterStep(function (nodes, edges, stopped) {\n for (let i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n preservedPoints[nodeData.getId(i)] = nodes[i].p;\n }\n for (let i = 0, l = edges.length; i < l; i++) {\n const e = edges[i];\n const edge = graph.getEdgeByIndex(i);\n const p1 = e.n1.p;\n const p2 = e.n2.p;\n let points = edge.getLayout() as number[][];\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n if (+e.curveness) {\n points[2] = [\n (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness,\n (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness\n ];\n }\n edge.setLayout(points);\n }\n });\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints;\n\n // Step to get the layout\n forceInstance.step();\n }\n else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// FIXME Where to create the simple view coordinate system\nimport View from '../../coord/View';\nimport {getLayoutRect} from '../../util/layout';\nimport * as bbox from 'zrender/src/core/bbox';\nimport GraphSeriesModel, { GraphNodeItemOption } from './GraphSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport { extend } from 'zrender/src/core/util';\n\nfunction getViewRect(seriesModel: GraphSeriesModel, api: ExtensionAPI, aspect: number) {\n const option = extend(seriesModel.getBoxLayoutParams(), {\n aspect: aspect\n });\n return getLayoutRect(option, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function createViewCoordSys(ecModel: GlobalModel, api: ExtensionAPI) {\n const viewList: View[] = [];\n ecModel.eachSeriesByType('graph', function (seriesModel: GraphSeriesModel) {\n const coordSysType = seriesModel.get('coordinateSystem');\n if (!coordSysType || coordSysType === 'view') {\n\n const data = seriesModel.getData();\n const positions = data.mapArray(function (idx) {\n const itemModel = data.getItemModel(idx);\n return [+itemModel.get('x'), +itemModel.get('y')];\n });\n\n let min: number[] = [];\n let max: number[] = [];\n\n bbox.fromPoints(positions, min, max);\n\n // If width or height is 0\n if (max[0] - min[0] === 0) {\n max[0] += 1;\n min[0] -= 1;\n }\n if (max[1] - min[1] === 0) {\n max[1] += 1;\n min[1] -= 1;\n }\n const aspect = (max[0] - min[0]) / (max[1] - min[1]);\n // FIXME If get view rect after data processed?\n const viewRect = getViewRect(seriesModel, api, aspect);\n // Position may be NaN, use view rect instead\n if (isNaN(aspect)) {\n min = [viewRect.x, viewRect.y];\n max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];\n }\n\n const bbWidth = max[0] - min[0];\n const bbHeight = max[1] - min[1];\n\n const viewWidth = viewRect.width;\n const viewHeight = viewRect.height;\n\n const viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n\n viewCoordSys.setBoundingRect(\n min[0], min[1], bbWidth, bbHeight\n );\n viewCoordSys.setViewRect(\n viewRect.x, viewRect.y, viewWidth, viewHeight\n );\n\n // Update roam info\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n\n viewList.push(viewCoordSys);\n }\n });\n\n return viewList;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Line path for bezier and straight line draw\n */\n\nimport * as graphic from '../../util/graphic';\nimport * as vec2 from 'zrender/src/core/vector';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ColorString } from '../../util/types';\n\nconst straightLineProto = graphic.Line.prototype;\nconst bezierCurveProto = graphic.BezierCurve.prototype;\n\nclass StraightLineShape {\n // Start point\n x1 = 0;\n y1 = 0;\n // End point\n x2 = 0;\n y2 = 0;\n\n percent = 1;\n}\n\nclass CurveShape extends StraightLineShape {\n cpx1: number;\n cpy1: number;\n}\n\ninterface ECLineProps extends PathProps {\n shape?: Partial\n}\nfunction isStraightLine(shape: StraightLineShape | CurveShape): shape is StraightLineShape {\n return isNaN(+(shape as CurveShape).cpx1) || isNaN(+(shape as CurveShape).cpy1);\n}\n\nclass ECLinePath extends graphic.Path {\n\n type = 'ec-line';\n\n shape: StraightLineShape | CurveShape;\n\n constructor(opts?: ECLineProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as ColorString\n };\n }\n\n getDefaultShape() {\n return new StraightLineShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: StraightLineShape | CurveShape) {\n if (isStraightLine(shape)) {\n straightLineProto.buildPath.call(this, ctx, shape);\n }\n else {\n bezierCurveProto.buildPath.call(this, ctx, shape);\n }\n }\n\n pointAt(t: number) {\n if (isStraightLine(this.shape)) {\n return straightLineProto.pointAt.call(this, t);\n }\n else {\n return bezierCurveProto.pointAt.call(this, t);\n }\n }\n\n tangentAt(t: number) {\n const shape = this.shape;\n const p = isStraightLine(shape)\n ? [shape.x2 - shape.x1, shape.y2 - shape.y1]\n : bezierCurveProto.tangentAt.call(this, t);\n return vec2.normalize(p, p);\n }\n\n}\n\nexport default ECLinePath;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray, each } from 'zrender/src/core/util';\nimport * as vector from 'zrender/src/core/vector';\nimport * as symbolUtil from '../../util/symbol';\nimport ECLinePath from './LinePath';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enterEmphasis, leaveEmphasis, SPECIAL_STATES } from '../../util/states';\nimport {getLabelStatesModels, setLabelStyle} from '../../label/labelStyle';\nimport {round} from '../../util/number';\nimport SeriesData from '../../data/SeriesData';\nimport { ZRTextAlign, ZRTextVerticalAlign, LineLabelOption, ColorString } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport Model from '../../model/Model';\n\nconst SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'] as const;\n\ntype ECSymbol = ReturnType;\n\ntype LineECSymbol = ECSymbol & {\n __specifiedRotation: number\n};\n\ntype LineList = SeriesData;\n\nexport interface LineLabel extends graphic.Text {\n lineLabelOriginalOpacity: number\n}\n\ninterface InnerLineLabel extends LineLabel {\n __align: TextStyleProps['align']\n __verticalAlign: TextStyleProps['verticalAlign']\n __position: LineLabelOption['position']\n __labelDistance: number[]\n}\n\nfunction makeSymbolTypeKey(symbolCategory: 'fromSymbol' | 'toSymbol') {\n return '_' + symbolCategory + 'Type' as '_fromSymbolType' | '_toSymbolType';\n}\n\n/**\n * @inner\n */\nfunction createSymbol(name: 'fromSymbol' | 'toSymbol', lineData: LineList, idx: number) {\n const symbolType = lineData.getItemVisual(idx, name);\n if (!symbolType || symbolType === 'none') {\n return;\n }\n\n const symbolSize = lineData.getItemVisual(idx, name + 'Size' as 'fromSymbolSize' | 'toSymbolSize');\n const symbolRotate = lineData.getItemVisual(idx, name + 'Rotate' as 'fromSymbolRotate' | 'toSymbolRotate');\n const symbolOffset = lineData.getItemVisual(idx, name + 'Offset' as 'fromSymbolOffset' | 'toSymbolOffset');\n const symbolKeepAspect = lineData.getItemVisual(idx,\n name + 'KeepAspect' as 'fromSymbolKeepAspect' | 'toSymbolKeepAspect');\n\n const symbolSizeArr = symbolUtil.normalizeSymbolSize(symbolSize);\n\n const symbolOffsetArr = symbolUtil.normalizeSymbolOffset(symbolOffset || 0, symbolSizeArr);\n\n const symbolPath = symbolUtil.createSymbol(\n symbolType,\n -symbolSizeArr[0] / 2 + (symbolOffsetArr as number[])[0],\n -symbolSizeArr[1] / 2 + (symbolOffsetArr as number[])[1],\n symbolSizeArr[0],\n symbolSizeArr[1],\n null,\n symbolKeepAspect\n );\n\n (symbolPath as LineECSymbol).__specifiedRotation = symbolRotate == null || isNaN(symbolRotate)\n ? void 0\n : +symbolRotate * Math.PI / 180 || 0;\n\n symbolPath.name = name;\n\n return symbolPath;\n}\n\nfunction createLine(points: number[][]) {\n const line = new ECLinePath({\n name: 'line',\n subPixelOptimize: true\n });\n setLinePoints(line.shape, points);\n return line;\n}\n\nfunction setLinePoints(targetShape: ECLinePath['shape'], points: number[][]) {\n type CurveShape = ECLinePath['shape'] & {\n cpx1: number\n cpy1: number\n };\n\n targetShape.x1 = points[0][0];\n targetShape.y1 = points[0][1];\n targetShape.x2 = points[1][0];\n targetShape.y2 = points[1][1];\n targetShape.percent = 1;\n\n const cp1 = points[2];\n if (cp1) {\n (targetShape as CurveShape).cpx1 = cp1[0];\n (targetShape as CurveShape).cpy1 = cp1[1];\n }\n else {\n (targetShape as CurveShape).cpx1 = NaN;\n (targetShape as CurveShape).cpy1 = NaN;\n }\n}\n\nclass Line extends graphic.Group {\n\n private _fromSymbolType: string;\n private _toSymbolType: string;\n\n constructor(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) {\n super();\n this._createLine(lineData as LineList, idx, seriesScope);\n }\n\n _createLine(lineData: LineList, idx: number, seriesScope?: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n const linePoints = lineData.getItemLayout(idx);\n const line = createLine(linePoints);\n line.shape.percent = 0;\n graphic.initProps(line, {\n shape: {\n percent: 1\n }\n }, seriesModel, idx);\n\n this.add(line);\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbol = createSymbol(symbolCategory, lineData, idx);\n // symbols must added after line to make sure\n // it will be updated after line#update.\n // Or symbol position and rotation update in line#beforeUpdate will be one frame slow\n this.add(symbol);\n this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory);\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n }\n\n // TODO More strict on the List type in parameters?\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n\n const line = this.childOfName('line') as ECLinePath;\n const linePoints = lineData.getItemLayout(idx);\n const target = {\n shape: {} as ECLinePath['shape']\n };\n\n setLinePoints(target.shape, linePoints);\n graphic.updateProps(line, target, seriesModel, idx);\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbolType = (lineData as LineList).getItemVisual(idx, symbolCategory);\n const key = makeSymbolTypeKey(symbolCategory);\n // Symbol changed\n if (this[key] !== symbolType) {\n this.remove(this.childOfName(symbolCategory));\n const symbol = createSymbol(symbolCategory, lineData as LineList, idx);\n this.add(symbol);\n }\n this[key] = symbolType;\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n getLinePath() {\n return this.childAt(0) as graphic.Line;\n }\n\n _updateCommonStl(lineData: SeriesData, idx: number, seriesScope?: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel as SeriesModel;\n\n const line = this.childOfName('line') as ECLinePath;\n\n let emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n let blurLineStyle = seriesScope && seriesScope.blurLineStyle;\n let selectLineStyle = seriesScope && seriesScope.selectLineStyle;\n\n let labelStatesModels = seriesScope && seriesScope.labelStatesModels;\n\n // Optimization for large dataset\n if (!seriesScope || lineData.hasItemOption) {\n const itemModel = lineData.getItemModel(idx);\n\n emphasisLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle();\n selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle();\n\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n const lineStyle = lineData.getItemVisual(idx, 'style');\n const visualColor = lineStyle.stroke;\n\n line.useStyle(lineStyle);\n line.style.fill = null;\n line.style.strokeNoScale = true;\n\n line.ensureState('emphasis').style = emphasisLineStyle;\n line.ensureState('blur').style = blurLineStyle;\n line.ensureState('select').style = selectLineStyle;\n\n // Update symbol\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n const symbol = this.childOfName(symbolCategory) as ECSymbol;\n if (symbol) {\n // Share opacity and color with line.\n symbol.setColor(visualColor);\n symbol.style.opacity = lineStyle.opacity;\n\n for (let i = 0; i < SPECIAL_STATES.length; i++) {\n const stateName = SPECIAL_STATES[i];\n const lineState = line.getState(stateName);\n if (lineState) {\n const lineStateStyle = lineState.style || {};\n const state = symbol.ensureState(stateName);\n const stateStyle = state.style || (state.style = {});\n if (lineStateStyle.stroke != null) {\n stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke;\n }\n if (lineStateStyle.opacity != null) {\n stateStyle.opacity = lineStateStyle.opacity;\n }\n }\n }\n\n symbol.markRedraw();\n }\n }, this);\n\n const rawVal = seriesModel.getRawValue(idx) as number;\n setLabelStyle(this, labelStatesModels, {\n labelDataIndex: idx,\n labelFetcher: {\n getFormattedLabel(dataIndex, stateName) {\n return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType);\n }\n },\n inheritColor: visualColor as ColorString || '#000',\n defaultOpacity: lineStyle.opacity,\n defaultText: (rawVal == null\n ? lineData.getName(idx)\n : isFinite(rawVal)\n ? round(rawVal)\n : rawVal) + ''\n });\n const label = this.getTextContent() as InnerLineLabel;\n\n // Always set `textStyle` even if `normalStyle.text` is null, because default\n // values have to be set on `normalStyle`.\n if (label) {\n const labelNormalModel = labelStatesModels.normal as unknown as Model;\n label.__align = label.style.align;\n label.__verticalAlign = label.style.verticalAlign;\n // 'start', 'middle', 'end'\n label.__position = labelNormalModel.get('position') || 'middle';\n\n let distance = labelNormalModel.get('distance');\n if (!isArray(distance)) {\n distance = [distance, distance];\n }\n label.__labelDistance = distance;\n }\n\n this.setTextConfig({\n position: null,\n local: true,\n inside: false // Can't be inside for stroke element.\n });\n\n enableHoverEmphasis(this);\n }\n\n highlight() {\n enterEmphasis(this);\n }\n\n downplay() {\n leaveEmphasis(this);\n }\n\n updateLayout(lineData: SeriesData, idx: number) {\n this.setLinePoints(lineData.getItemLayout(idx));\n }\n\n setLinePoints(points: number[][]) {\n const linePath = this.childOfName('line') as ECLinePath;\n setLinePoints(linePath.shape, points);\n linePath.dirty();\n }\n\n beforeUpdate() {\n const lineGroup = this;\n const symbolFrom = lineGroup.childOfName('fromSymbol') as ECSymbol;\n const symbolTo = lineGroup.childOfName('toSymbol') as ECSymbol;\n const label = lineGroup.getTextContent() as InnerLineLabel;\n // Quick reject\n if (!symbolFrom && !symbolTo && (!label || label.ignore)) {\n return;\n }\n\n let invScale = 1;\n let parentNode = this.parent;\n while (parentNode) {\n if (parentNode.scaleX) {\n invScale /= parentNode.scaleX;\n }\n parentNode = parentNode.parent;\n }\n\n const line = lineGroup.childOfName('line') as ECLinePath;\n // If line not changed\n // FIXME Parent scale changed\n if (!this.__dirty && !line.__dirty) {\n return;\n }\n\n const percent = line.shape.percent;\n const fromPos = line.pointAt(0);\n const toPos = line.pointAt(percent);\n\n const d = vector.sub([], toPos, fromPos);\n vector.normalize(d, d);\n\n function setSymbolRotation(symbol: ECSymbol, percent: 0 | 1) {\n // Fix #12388\n // when symbol is set to be 'arrow' in markLine,\n // symbolRotate value will be ignored, and compulsively use tangent angle.\n // rotate by default if symbol rotation is not specified\n const specifiedRotation = (symbol as LineECSymbol).__specifiedRotation;\n if (specifiedRotation == null) {\n const tangent = line.tangentAt(percent);\n symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(\n tangent[1], tangent[0]\n ));\n }\n else {\n symbol.attr('rotation', specifiedRotation);\n }\n }\n\n if (symbolFrom) {\n symbolFrom.setPosition(fromPos);\n setSymbolRotation(symbolFrom, 0);\n symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent;\n symbolFrom.markRedraw();\n }\n if (symbolTo) {\n symbolTo.setPosition(toPos);\n setSymbolRotation(symbolTo, 1);\n symbolTo.scaleX = symbolTo.scaleY = invScale * percent;\n symbolTo.markRedraw();\n }\n\n if (label && !label.ignore) {\n label.x = label.y = 0;\n label.originX = label.originY = 0;\n\n let textAlign: ZRTextAlign;\n let textVerticalAlign: ZRTextVerticalAlign;\n\n const distance = label.__labelDistance;\n const distanceX = distance[0] * invScale;\n const distanceY = distance[1] * invScale;\n const halfPercent = percent / 2;\n const tangent = line.tangentAt(halfPercent);\n const n = [tangent[1], -tangent[0]];\n const cp = line.pointAt(halfPercent);\n if (n[1] > 0) {\n n[0] = -n[0];\n n[1] = -n[1];\n }\n const dir = tangent[0] < 0 ? -1 : 1;\n\n if (label.__position !== 'start' && label.__position !== 'end') {\n let rotation = -Math.atan2(tangent[1], tangent[0]);\n if (toPos[0] < fromPos[0]) {\n rotation = Math.PI + rotation;\n }\n label.rotation = rotation;\n }\n\n let dy;\n switch (label.__position) {\n case 'insideStartTop':\n case 'insideMiddleTop':\n case 'insideEndTop':\n case 'middle':\n dy = -distanceY;\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideStartBottom':\n case 'insideMiddleBottom':\n case 'insideEndBottom':\n dy = distanceY;\n textVerticalAlign = 'top';\n break;\n\n default:\n dy = 0;\n textVerticalAlign = 'middle';\n }\n\n switch (label.__position) {\n case 'end':\n label.x = d[0] * distanceX + toPos[0];\n label.y = d[1] * distanceY + toPos[1];\n textAlign = d[0] > 0.8 ? 'left' : (d[0] < -0.8 ? 'right' : 'center');\n textVerticalAlign = d[1] > 0.8 ? 'top' : (d[1] < -0.8 ? 'bottom' : 'middle');\n break;\n\n case 'start':\n label.x = -d[0] * distanceX + fromPos[0];\n label.y = -d[1] * distanceY + fromPos[1];\n textAlign = d[0] > 0.8 ? 'right' : (d[0] < -0.8 ? 'left' : 'center');\n textVerticalAlign = d[1] > 0.8 ? 'bottom' : (d[1] < -0.8 ? 'top' : 'middle');\n break;\n\n case 'insideStartTop':\n case 'insideStart':\n case 'insideStartBottom':\n label.x = distanceX * dir + fromPos[0];\n label.y = fromPos[1] + dy;\n textAlign = tangent[0] < 0 ? 'right' : 'left';\n label.originX = -distanceX * dir;\n label.originY = -dy;\n break;\n\n case 'insideMiddleTop':\n case 'insideMiddle':\n case 'insideMiddleBottom':\n case 'middle':\n label.x = cp[0];\n label.y = cp[1] + dy;\n textAlign = 'center';\n label.originY = -dy;\n break;\n\n case 'insideEndTop':\n case 'insideEnd':\n case 'insideEndBottom':\n label.x = -distanceX * dir + toPos[0];\n label.y = toPos[1] + dy;\n textAlign = tangent[0] >= 0 ? 'right' : 'left';\n label.originX = distanceX * dir;\n label.originY = -dy;\n break;\n }\n\n label.scaleX = label.scaleY = invScale;\n label.setStyle({\n // Use the user specified text align and baseline first\n verticalAlign: label.__verticalAlign || textVerticalAlign,\n align: label.__align || textAlign\n });\n }\n }\n}\n\nexport default Line;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport LineGroup from './Line';\nimport SeriesData from '../../data/SeriesData';\nimport {\n StageHandlerProgressParams,\n LineStyleOption,\n LineLabelOption,\n ColorString,\n AnimationOptionMixin,\n ZRStyleProps,\n StatesOptionMixin,\n DisplayState,\n LabelOption\n} from '../../util/types';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Model from '../../model/Model';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\ninterface LineLike extends graphic.Group {\n updateData(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): void\n updateLayout(data: SeriesData, idx: number): void\n fadeOut?(cb: () => void): void\n}\n\ninterface LineLikeCtor {\n new(data: SeriesData, idx: number, scope?: LineDrawSeriesScope): LineLike\n}\n\ninterface LineDrawStateOption {\n lineStyle?: LineStyleOption\n label?: LineLabelOption\n}\n\nexport interface LineDrawModelOption extends LineDrawStateOption, StatesOptionMixin {\n // If has effect\n effect?: {\n show?: boolean\n period?: number\n delay?: number | ((idx: number) => number)\n /**\n * If move with constant speed px/sec\n * period will be ignored if this property is > 0,\n */\n constantSpeed?: number\n\n symbol?: string\n symbolSize?: number | number[]\n loop?: boolean\n /**\n * Length of trail, 0 - 1\n */\n trailLength?: number\n /**\n * Default to be same with lineStyle.color\n */\n color?: ColorString\n }\n}\n\ntype ListForLineDraw = SeriesData>;\n\nexport interface LineDrawSeriesScope {\n lineStyle?: ZRStyleProps\n emphasisLineStyle?: ZRStyleProps\n blurLineStyle?: ZRStyleProps\n selectLineStyle?: ZRStyleProps\n\n labelStatesModels: Record>\n}\n\nclass LineDraw {\n group = new graphic.Group();\n\n private _LineCtor: LineLikeCtor;\n\n private _lineData: ListForLineDraw;\n\n private _seriesScope: LineDrawSeriesScope;\n\n constructor(LineCtor?: LineLikeCtor) {\n this._LineCtor = LineCtor || LineGroup;\n }\n\n isPersistent() {\n return true;\n };\n\n updateData(lineData: ListForLineDraw) {\n const lineDraw = this;\n const group = lineDraw.group;\n\n const oldLineData = lineDraw._lineData;\n lineDraw._lineData = lineData;\n\n // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!oldLineData) {\n group.removeAll();\n }\n\n const seriesScope = makeSeriesScope(lineData);\n\n lineData.diff(oldLineData)\n .add((idx) => {\n this._doAdd(lineData, idx, seriesScope);\n })\n .update((newIdx, oldIdx) => {\n this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope);\n })\n .remove((idx) => {\n group.remove(oldLineData.getItemGraphicEl(idx));\n })\n .execute();\n };\n\n updateLayout() {\n const lineData = this._lineData;\n\n // Do not support update layout in incremental mode.\n if (!lineData) {\n return;\n }\n\n lineData.eachItemGraphicEl(function (el: LineLike, idx) {\n el.updateLayout(lineData, idx);\n }, this);\n };\n\n incrementalPrepareUpdate(lineData: ListForLineDraw) {\n this._seriesScope = makeSeriesScope(lineData);\n this._lineData = null;\n this.group.removeAll();\n };\n\n incrementalUpdate(taskParams: StageHandlerProgressParams, lineData: ListForLineDraw) {\n function updateIncrementalAndHover(el: Displayable) {\n if (!el.isGroup && !isEffectObject(el)) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (let idx = taskParams.start; idx < taskParams.end; idx++) {\n const itemLayout = lineData.getItemLayout(idx);\n\n if (lineNeedsDraw(itemLayout)) {\n const el = new this._LineCtor(lineData, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n\n this.group.add(el);\n lineData.setItemGraphicEl(idx, el);\n }\n }\n };\n\n remove() {\n this.group.removeAll();\n };\n\n private _doAdd(\n lineData: ListForLineDraw,\n idx: number,\n seriesScope: LineDrawSeriesScope\n ) {\n const itemLayout = lineData.getItemLayout(idx);\n\n if (!lineNeedsDraw(itemLayout)) {\n return;\n }\n\n const el = new this._LineCtor(lineData, idx, seriesScope);\n lineData.setItemGraphicEl(idx, el);\n this.group.add(el);\n }\n private _doUpdate(\n oldLineData: ListForLineDraw,\n newLineData: ListForLineDraw,\n oldIdx: number,\n newIdx: number,\n seriesScope: LineDrawSeriesScope\n ) {\n let itemEl = oldLineData.getItemGraphicEl(oldIdx) as LineLike;\n\n if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) {\n this.group.remove(itemEl);\n return;\n }\n\n if (!itemEl) {\n itemEl = new this._LineCtor(newLineData, newIdx, seriesScope);\n }\n else {\n itemEl.updateData(newLineData, newIdx, seriesScope);\n }\n\n newLineData.setItemGraphicEl(newIdx, itemEl);\n\n this.group.add(itemEl);\n }\n}\n\nfunction isEffectObject(el: Displayable) {\n return el.animators && el.animators.length > 0;\n}\n\nfunction makeSeriesScope(lineData: ListForLineDraw): LineDrawSeriesScope {\n const hostModel = lineData.hostModel;\n return {\n lineStyle: hostModel.getModel('lineStyle').getLineStyle(),\n emphasisLineStyle: hostModel.getModel(['emphasis', 'lineStyle']).getLineStyle(),\n blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(),\n selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(),\n\n labelStatesModels: getLabelStatesModels(hostModel)\n };\n}\n\nfunction isPointNaN(pt: number[]) {\n return isNaN(pt[0]) || isNaN(pt[1]);\n}\n\nfunction lineNeedsDraw(pts: number[][]) {\n return !isPointNaN(pts[0]) && !isPointNaN(pts[1]);\n}\n\n\nexport default LineDraw;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as curveTool from 'zrender/src/core/curve';\nimport * as vec2 from 'zrender/src/core/vector';\nimport {getSymbolSize} from './graphHelper';\nimport Graph from '../../data/Graph';\n\nconst v1: number[] = [];\nconst v2: number[] = [];\nconst v3: number[] = [];\nconst quadraticAt = curveTool.quadraticAt;\nconst v2DistSquare = vec2.distSquare;\nconst mathAbs = Math.abs;\nfunction intersectCurveCircle(\n curvePoints: number[][],\n center: number[],\n radius: number\n) {\n const p0 = curvePoints[0];\n const p1 = curvePoints[1];\n const p2 = curvePoints[2];\n\n let d = Infinity;\n let t;\n const radiusSquare = radius * radius;\n let interval = 0.1;\n\n for (let _t = 0.1; _t <= 0.9; _t += 0.1) {\n v1[0] = quadraticAt(p0[0], p1[0], p2[0], _t);\n v1[1] = quadraticAt(p0[1], p1[1], p2[1], _t);\n const diff = mathAbs(v2DistSquare(v1, center) - radiusSquare);\n if (diff < d) {\n d = diff;\n t = _t;\n }\n }\n\n // Assume the segment is monotone\uFF0CFind root through Bisection method\n // At most 32 iteration\n for (let i = 0; i < 32; i++) {\n // let prev = t - interval;\n const next = t + interval;\n // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);\n // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);\n v2[0] = quadraticAt(p0[0], p1[0], p2[0], t);\n v2[1] = quadraticAt(p0[1], p1[1], p2[1], t);\n v3[0] = quadraticAt(p0[0], p1[0], p2[0], next);\n v3[1] = quadraticAt(p0[1], p1[1], p2[1], next);\n\n const diff = v2DistSquare(v2, center) - radiusSquare;\n if (mathAbs(diff) < 1e-2) {\n break;\n }\n\n // let prevDiff = v2DistSquare(v1, center) - radiusSquare;\n const nextDiff = v2DistSquare(v3, center) - radiusSquare;\n\n interval /= 2;\n if (diff < 0) {\n if (nextDiff >= 0) {\n t = t + interval;\n }\n else {\n t = t - interval;\n }\n }\n else {\n if (nextDiff >= 0) {\n t = t - interval;\n }\n else {\n t = t + interval;\n }\n }\n }\n\n return t;\n}\n\n// Adjust edge to avoid\nexport default function adjustEdge(graph: Graph, scale: number) {\n const tmp0: number[] = [];\n const quadraticSubdivide = curveTool.quadraticSubdivide;\n const pts: number[][] = [[], [], []];\n const pts2: number[][] = [[], []];\n const v: number[] = [];\n scale /= 2;\n\n graph.eachEdge(function (edge, idx) {\n const linePoints = edge.getLayout();\n const fromSymbol = edge.getVisual('fromSymbol');\n const toSymbol = edge.getVisual('toSymbol');\n\n if (!linePoints.__original) {\n linePoints.__original = [\n vec2.clone(linePoints[0]),\n vec2.clone(linePoints[1])\n ];\n if (linePoints[2]) {\n linePoints.__original.push(vec2.clone(linePoints[2]));\n }\n }\n const originalPoints = linePoints.__original;\n // Quadratic curve\n if (linePoints[2] != null) {\n vec2.copy(pts[0], originalPoints[0]);\n vec2.copy(pts[1], originalPoints[2]);\n vec2.copy(pts[2], originalPoints[1]);\n if (fromSymbol && fromSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node1);\n\n const t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale);\n // Subdivide and get the second\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[0][0] = tmp0[3];\n pts[1][0] = tmp0[4];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[0][1] = tmp0[3];\n pts[1][1] = tmp0[4];\n }\n if (toSymbol && toSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node2);\n\n const t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale);\n // Subdivide and get the first\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[1][0] = tmp0[1];\n pts[2][0] = tmp0[2];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[1][1] = tmp0[1];\n pts[2][1] = tmp0[2];\n }\n // Copy back to layout\n vec2.copy(linePoints[0], pts[0]);\n vec2.copy(linePoints[1], pts[2]);\n vec2.copy(linePoints[2], pts[1]);\n }\n // Line\n else {\n vec2.copy(pts2[0], originalPoints[0]);\n vec2.copy(pts2[1], originalPoints[1]);\n\n vec2.sub(v, pts2[1], pts2[0]);\n vec2.normalize(v, v);\n if (fromSymbol && fromSymbol !== 'none') {\n\n const symbolSize = getSymbolSize(edge.node1);\n\n vec2.scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale);\n }\n if (toSymbol && toSymbol !== 'none') {\n const symbolSize = getSymbolSize(edge.node2);\n\n vec2.scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale);\n }\n vec2.copy(linePoints[0], pts2[0]);\n vec2.copy(linePoints[1], pts2[1]);\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SymbolDraw, { ListForSymbolDraw } from '../helper/SymbolDraw';\nimport LineDraw from '../helper/LineDraw';\nimport RoamController, { RoamControllerHost } from '../../component/helper/RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport {onIrrelevantElement} from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport adjustEdge from './adjustEdge';\nimport {getNodeGlobalScale} from './graphHelper';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GraphSeriesModel, { GraphNodeItemOption, GraphEdgeItemOption } from './GraphSeries';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport View from '../../coord/View';\nimport Symbol from '../helper/Symbol';\nimport SeriesData from '../../data/SeriesData';\nimport Line from '../helper/Line';\nimport { getECData } from '../../util/innerStore';\n\nfunction isViewCoordSys(coordSys: CoordinateSystem): coordSys is View {\n return coordSys.type === 'view';\n}\n\nclass GraphView extends ChartView {\n\n static readonly type = 'graph';\n readonly type = GraphView.type;\n\n private _symbolDraw: SymbolDraw;\n private _lineDraw: LineDraw;\n\n private _controller: RoamController;\n private _controllerHost: RoamControllerHost;\n\n private _firstRender: boolean;\n\n private _model: GraphSeriesModel;\n\n private _layoutTimeout: number;\n\n private _layouting: boolean;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n const symbolDraw = new SymbolDraw();\n const lineDraw = new LineDraw();\n const group = this.group;\n\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n } as RoamControllerHost;\n\n group.add(symbolDraw.group);\n group.add(lineDraw.group);\n\n this._symbolDraw = symbolDraw;\n this._lineDraw = lineDraw;\n\n this._firstRender = true;\n }\n\n render(seriesModel: GraphSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const coordSys = seriesModel.coordinateSystem;\n\n this._model = seriesModel;\n\n const symbolDraw = this._symbolDraw;\n const lineDraw = this._lineDraw;\n\n const group = this.group;\n\n if (isViewCoordSys(coordSys)) {\n const groupNewProp = {\n x: coordSys.x, y: coordSys.y,\n scaleX: coordSys.scaleX, scaleY: coordSys.scaleY\n };\n if (this._firstRender) {\n group.attr(groupNewProp);\n }\n else {\n graphic.updateProps(group, groupNewProp, seriesModel);\n }\n }\n // Fix edge contact point with node\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n const data = seriesModel.getData();\n symbolDraw.updateData(data as ListForSymbolDraw);\n\n const edgeData = seriesModel.getEdgeData();\n // TODO: TYPE\n lineDraw.updateData(edgeData as SeriesData);\n\n this._updateNodeAndLinkScale();\n\n this._updateController(seriesModel, ecModel, api);\n\n clearTimeout(this._layoutTimeout);\n const forceLayout = seriesModel.forceLayout;\n const layoutAnimation = seriesModel.get(['force', 'layoutAnimation']);\n if (forceLayout) {\n this._startForceLayoutIteration(forceLayout, layoutAnimation);\n }\n\n data.graph.eachNode((node) => {\n const idx = node.dataIndex;\n const el = node.getGraphicEl() as Symbol;\n const itemModel = node.getModel();\n // Update draggable\n el.off('drag').off('dragend');\n const draggable = itemModel.get('draggable');\n if (draggable) {\n el.on('drag', () => {\n if (forceLayout) {\n forceLayout.warmUp();\n !this._layouting\n && this._startForceLayoutIteration(forceLayout, layoutAnimation);\n forceLayout.setFixed(idx);\n // Write position back to layout\n data.setItemLayout(idx, [el.x, el.y]);\n }\n }).on('dragend', () => {\n if (forceLayout) {\n forceLayout.setUnfixed(idx);\n }\n });\n }\n el.setDraggable(draggable && !!forceLayout);\n\n const focus = itemModel.get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = node.getAdjacentDataIndices();\n }\n });\n\n data.graph.eachEdge(function (edge) {\n const el = edge.getGraphicEl() as Line;\n const focus = edge.getModel().get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = {\n edge: [edge.dataIndex],\n node: [edge.node1.dataIndex, edge.node2.dataIndex]\n };\n }\n });\n\n const circularRotateLabel = seriesModel.get('layout') === 'circular'\n && seriesModel.get(['circular', 'rotateLabel']);\n const cx = data.getLayout('cx');\n const cy = data.getLayout('cy');\n data.eachItemGraphicEl(function (el: Symbol, idx) {\n const itemModel = data.getItemModel(idx);\n let labelRotate = itemModel.get(['label', 'rotate']) || 0;\n const symbolPath = el.getSymbolPath();\n if (circularRotateLabel) {\n const pos = data.getItemLayout(idx);\n let rad = Math.atan2(pos[1] - cy, pos[0] - cx);\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n const isLeft = pos[0] < cx;\n if (isLeft) {\n rad = rad - Math.PI;\n }\n const textPosition = isLeft ? 'left' as const : 'right' as const;\n\n symbolPath.setTextConfig({\n rotation: -rad,\n position: textPosition,\n origin: 'center'\n });\n const emphasisState = symbolPath.ensureState('emphasis');\n zrUtil.extend(emphasisState.textConfig || (emphasisState.textConfig = {}), {\n position: textPosition\n });\n }\n else {\n symbolPath.setTextConfig({\n rotation: labelRotate *= Math.PI / 180\n });\n }\n });\n\n this._firstRender = false;\n }\n\n dispose() {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n }\n\n _startForceLayoutIteration(\n forceLayout: GraphSeriesModel['forceLayout'],\n layoutAnimation?: boolean\n ) {\n const self = this;\n (function step() {\n forceLayout.step(function (stopped) {\n self.updateLayout(self._model);\n (self._layouting = !stopped) && (\n layoutAnimation\n ? (self._layoutTimeout = setTimeout(step, 16) as any)\n : step()\n );\n });\n })();\n }\n\n _updateController(\n seriesModel: GraphSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const controller = this._controller;\n const controllerHost = this._controllerHost;\n const group = this.group;\n\n controller.setPointerChecker(function (e, x, y) {\n const rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y)\n && !onIrrelevantElement(e, api, seriesModel);\n });\n\n if (!isViewCoordSys(seriesModel.coordinateSystem)) {\n controller.disable();\n return;\n }\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n\n controller\n .off('pan')\n .off('zoom')\n .on('pan', (e) => {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n dx: e.dx,\n dy: e.dy\n });\n })\n .on('zoom', (e) => {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n this._updateNodeAndLinkScale();\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n this._lineDraw.updateLayout();\n // Only update label layout on zoom\n api.updateLabelLayout();\n });\n }\n\n _updateNodeAndLinkScale() {\n const seriesModel = this._model;\n const data = seriesModel.getData();\n\n const nodeScale = getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el: Symbol, idx) {\n el.setSymbolScale(nodeScale);\n });\n }\n\n updateLayout(seriesModel: GraphSeriesModel) {\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n this._symbolDraw.updateLayout();\n this._lineDraw.updateLayout();\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove();\n this._lineDraw && this._lineDraw.remove();\n }\n}\n\nexport default GraphView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { Dictionary } from 'zrender/src/core/types';\nimport SeriesData from './SeriesData';\nimport Model from '../model/Model';\nimport Element from 'zrender/src/Element';\nimport { DimensionLoose, ParsedValue } from '../util/types';\n\n// id may be function name of Object, add a prefix to avoid this problem.\nfunction generateNodeKey(id: string): string {\n return '_EC_' + id;\n}\n\nclass Graph {\n type: 'graph' = 'graph';\n\n readonly nodes: GraphNode[] = [];\n\n readonly edges: GraphEdge[] = [];\n\n data: SeriesData;\n\n edgeData: SeriesData;\n\n /**\n * Whether directed graph.\n */\n private _directed: boolean;\n\n private _nodesMap: Dictionary = {};\n /**\n * @type {Object.}\n * @private\n */\n private _edgesMap: Dictionary = {};\n\n\n constructor(directed?: boolean) {\n this._directed = directed || false;\n }\n\n /**\n * If is directed graph\n */\n isDirected(): boolean {\n return this._directed;\n };\n\n /**\n * Add a new node\n */\n addNode(id: string | number, dataIndex?: number): GraphNode {\n id = id == null ? ('' + dataIndex) : ('' + id);\n\n const nodesMap = this._nodesMap;\n\n if (nodesMap[generateNodeKey(id)]) {\n if (__DEV__) {\n console.error('Graph nodes have duplicate name or id');\n }\n return;\n }\n\n const node = new GraphNode(id, dataIndex);\n node.hostGraph = this;\n\n this.nodes.push(node);\n\n nodesMap[generateNodeKey(id)] = node;\n return node;\n };\n\n /**\n * Get node by data index\n */\n getNodeByIndex(dataIndex: number): GraphNode {\n const rawIdx = this.data.getRawIndex(dataIndex);\n return this.nodes[rawIdx];\n };\n /**\n * Get node by id\n */\n getNodeById(id: string): GraphNode {\n return this._nodesMap[generateNodeKey(id)];\n };\n\n /**\n * Add a new edge\n */\n addEdge(n1: GraphNode | number | string, n2: GraphNode | number | string, dataIndex?: number) {\n const nodesMap = this._nodesMap;\n const edgesMap = this._edgesMap;\n\n // PNEDING\n if (typeof n1 === 'number') {\n n1 = this.nodes[n1];\n }\n if (typeof n2 === 'number') {\n n2 = this.nodes[n2];\n }\n\n if (!(n1 instanceof GraphNode)) {\n n1 = nodesMap[generateNodeKey(n1)];\n }\n if (!(n2 instanceof GraphNode)) {\n n2 = nodesMap[generateNodeKey(n2)];\n }\n if (!n1 || !n2) {\n return;\n }\n\n const key = n1.id + '-' + n2.id;\n\n const edge = new GraphEdge(n1, n2, dataIndex);\n edge.hostGraph = this;\n\n if (this._directed) {\n n1.outEdges.push(edge);\n n2.inEdges.push(edge);\n }\n n1.edges.push(edge);\n if (n1 !== n2) {\n n2.edges.push(edge);\n }\n\n this.edges.push(edge);\n edgesMap[key] = edge;\n\n return edge;\n };\n\n /**\n * Get edge by data index\n */\n getEdgeByIndex(dataIndex: number): GraphEdge {\n const rawIdx = this.edgeData.getRawIndex(dataIndex);\n return this.edges[rawIdx];\n };\n /**\n * Get edge by two linked nodes\n */\n getEdge(n1: string | GraphNode, n2: string | GraphNode): GraphEdge {\n if (n1 instanceof GraphNode) {\n n1 = n1.id;\n }\n if (n2 instanceof GraphNode) {\n n2 = n2.id;\n }\n\n const edgesMap = this._edgesMap;\n\n if (this._directed) {\n return edgesMap[n1 + '-' + n2];\n }\n else {\n return edgesMap[n1 + '-' + n2]\n || edgesMap[n2 + '-' + n1];\n }\n };\n\n /**\n * Iterate all nodes\n */\n eachNode(\n cb: (this: Ctx, node: GraphNode, idx: number) => void,\n context?: Ctx\n ) {\n const nodes = this.nodes;\n const len = nodes.length;\n for (let i = 0; i < len; i++) {\n if (nodes[i].dataIndex >= 0) {\n cb.call(context, nodes[i], i);\n }\n }\n };\n\n /**\n * Iterate all edges\n */\n eachEdge(\n cb: (this: Ctx, edge: GraphEdge, idx: number) => void,\n context?: Ctx\n ) {\n const edges = this.edges;\n const len = edges.length;\n for (let i = 0; i < len; i++) {\n if (edges[i].dataIndex >= 0\n && edges[i].node1.dataIndex >= 0\n && edges[i].node2.dataIndex >= 0\n ) {\n cb.call(context, edges[i], i);\n }\n }\n };\n\n /**\n * Breadth first traverse\n * Return true to stop traversing\n */\n breadthFirstTraverse(\n cb: (this: Ctx, node: GraphNode, fromNode: GraphNode) => boolean | void,\n startNode: GraphNode | string,\n direction: 'none' | 'in' | 'out',\n context?: Ctx\n ) {\n if (!(startNode instanceof GraphNode)) {\n startNode = this._nodesMap[generateNodeKey(startNode)];\n }\n if (!startNode) {\n return;\n }\n\n const edgeType: 'inEdges' | 'outEdges' | 'edges' = direction === 'out'\n ? 'outEdges' : (direction === 'in' ? 'inEdges' : 'edges');\n\n for (let i = 0; i < this.nodes.length; i++) {\n this.nodes[i].__visited = false;\n }\n\n if (cb.call(context, startNode, null)) {\n return;\n }\n\n const queue = [startNode];\n while (queue.length) {\n const currentNode = queue.shift();\n const edges = currentNode[edgeType];\n\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n const otherNode = e.node1 === currentNode\n ? e.node2 : e.node1;\n if (!otherNode.__visited) {\n if (cb.call(context, otherNode, currentNode)) {\n // Stop traversing\n return;\n }\n queue.push(otherNode);\n otherNode.__visited = true;\n }\n }\n }\n };\n\n // TODO\n // depthFirstTraverse(\n // cb, startNode, direction, context\n // ) {\n\n // };\n\n // Filter update\n update() {\n const data = this.data;\n const edgeData = this.edgeData;\n const nodes = this.nodes;\n const edges = this.edges;\n\n for (let i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n for (let i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n\n edgeData.filterSelf(function (idx) {\n const edge = edges[edgeData.getRawIndex(idx)];\n return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;\n });\n\n // Update edge\n for (let i = 0, len = edges.length; i < len; i++) {\n edges[i].dataIndex = -1;\n }\n for (let i = 0, len = edgeData.count(); i < len; i++) {\n edges[edgeData.getRawIndex(i)].dataIndex = i;\n }\n };\n\n /**\n * @return {module:echarts/data/Graph}\n */\n clone() {\n const graph = new Graph(this._directed);\n const nodes = this.nodes;\n const edges = this.edges;\n for (let i = 0; i < nodes.length; i++) {\n graph.addNode(nodes[i].id, nodes[i].dataIndex);\n }\n for (let i = 0; i < edges.length; i++) {\n const e = edges[i];\n graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);\n }\n return graph;\n };\n\n\n}\n\n\nclass GraphNode {\n\n id: string;\n\n inEdges: GraphEdge[] = [];\n\n outEdges: GraphEdge[] = [];\n\n edges: GraphEdge[] = [];\n\n hostGraph: Graph;\n\n dataIndex: number = -1;\n\n // Used in traverse of Graph\n __visited: boolean;\n\n constructor(id?: string, dataIndex?: number) {\n this.id = id == null ? '' : id;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n /**\n * @return {number}\n */\n degree() {\n return this.edges.length;\n }\n\n /**\n * @return {number}\n */\n inDegree() {\n return this.inEdges.length;\n }\n\n /**\n * @return {number}\n */\n outDegree() {\n return this.outEdges.length;\n }\n\n // TODO: TYPE Same type with Model#getModel\n getModel(): Model\n getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const graph = this.hostGraph;\n const itemModel = graph.data.getItemModel(this.dataIndex);\n\n return itemModel.getModel(path as any);\n }\n\n getAdjacentDataIndices(): {node: number[], edge: number[]} {\n const dataIndices = {\n edge: [] as number[],\n node: [] as number[]\n };\n for (let i = 0; i < this.edges.length; i++) {\n const adjacentEdge = this.edges[i];\n if (adjacentEdge.dataIndex < 0) {\n continue;\n }\n dataIndices.edge.push(adjacentEdge.dataIndex);\n dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex);\n }\n return dataIndices;\n }\n}\n\n\nclass GraphEdge {\n /**\n * The first node. If directed graph, it represents the source node.\n */\n node1: GraphNode;\n /**\n * The second node. If directed graph, it represents the target node.\n */\n node2: GraphNode;\n\n dataIndex: number = -1;\n\n hostGraph: Graph;\n\n constructor(n1: GraphNode, n2: GraphNode, dataIndex?: number) {\n this.node1 = n1;\n this.node2 = n2;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n getModel(): Model\n getModel(path: S): Model\n getModel(path?: string): Model {\n if (this.dataIndex < 0) {\n return;\n }\n const graph = this.hostGraph;\n const itemModel = graph.edgeData.getItemModel(this.dataIndex);\n\n return itemModel.getModel(path as any);\n }\n\n getAdjacentDataIndices(): {node: number[], edge: number[]} {\n return {\n edge: [this.dataIndex],\n node: [this.node1.dataIndex, this.node2.dataIndex]\n };\n }\n}\n\ntype GetDataName = Host extends GraphEdge ? 'edgeData' : 'data';\n\ninterface GraphDataProxyMixin {\n getValue(dimension?: DimensionLoose): ParsedValue;\n // TODO: TYPE stricter type.\n setVisual(key: string | Dictionary, value?: any): void;\n\n getVisual(key: string): any,\n\n setLayout(layout: any, merge?: boolean): void;\n\n getLayout(): any\n\n getGraphicEl(): Element\n\n getRawIndex(): number\n}\n\nfunction createGraphDataProxyMixin(\n hostName: 'hostGraph',\n dataName: GetDataName\n): GraphDataProxyMixin {\n return {\n /**\n * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.\n */\n getValue(this: Host, dimension?: DimensionLoose): ParsedValue {\n const data = this[hostName][dataName];\n return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex);\n },\n // TODO: TYPE stricter type.\n setVisual(this: Host, key: string | Dictionary, value?: any) {\n this.dataIndex >= 0\n && this[hostName][dataName].setItemVisual(this.dataIndex, key as any, value);\n },\n\n getVisual(this: Host, key: string) {\n return this[hostName][dataName].getItemVisual(this.dataIndex, key as any);\n },\n\n setLayout(this: Host, layout: any, merge?: boolean) {\n this.dataIndex >= 0\n && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);\n },\n\n getLayout(this: Host) {\n return this[hostName][dataName].getItemLayout(this.dataIndex);\n },\n\n getGraphicEl(this: Host): Element {\n return this[hostName][dataName].getItemGraphicEl(this.dataIndex);\n },\n\n getRawIndex(this: Host) {\n return this[hostName][dataName].getRawIndex(this.dataIndex);\n }\n };\n};\n\n\ninterface GraphEdge extends GraphDataProxyMixin {};\ninterface GraphNode extends GraphDataProxyMixin {};\n\nzrUtil.mixin(GraphNode, createGraphDataProxyMixin('hostGraph', 'data'));\nzrUtil.mixin(GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData'));\n\nexport default Graph;\n\nexport {GraphNode, GraphEdge};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport Graph from '../../data/Graph';\nimport linkSeriesData from '../../data/helper/linkSeriesData';\nimport createDimensions from '../../data/helper/createDimensions';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport createSeriesData from './createSeriesData';\nimport {\n OptionSourceDataOriginal, GraphEdgeItemObject, OptionDataValue,\n OptionDataItemObject\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { convertOptionIdName } from '../../util/model';\n\nexport default function createGraphFromNodeEdge(\n nodes: OptionSourceDataOriginal>,\n edges: OptionSourceDataOriginal>,\n seriesModel: SeriesModel,\n directed: boolean,\n beforeLink: (nodeData: SeriesData, edgeData: SeriesData) => void\n): Graph {\n // ??? TODO\n // support dataset?\n const graph = new Graph(directed);\n for (let i = 0; i < nodes.length; i++) {\n graph.addNode(zrUtil.retrieve(\n // Id, name, dataIndex\n nodes[i].id, nodes[i].name, i\n ), i);\n }\n\n const linkNameList = [];\n const validEdges = [];\n let linkCount = 0;\n for (let i = 0; i < edges.length; i++) {\n const link = edges[i];\n const source = link.source;\n const target = link.target;\n // addEdge may fail when source or target not exists\n if (graph.addEdge(source, target, linkCount)) {\n validEdges.push(link);\n linkNameList.push(zrUtil.retrieve(\n convertOptionIdName(link.id, null),\n source + ' > ' + target\n ));\n linkCount++;\n }\n }\n\n const coordSys = seriesModel.get('coordinateSystem');\n let nodeData;\n if (coordSys === 'cartesian2d' || coordSys === 'polar') {\n nodeData = createSeriesData(nodes, seriesModel);\n }\n else {\n const coordSysCtor = CoordinateSystem.get(coordSys);\n const coordDimensions = coordSysCtor\n ? (coordSysCtor.dimensions || []) : [];\n // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs\n // `value` dimension, but graph need `value` dimension. It's better to\n // uniform this behavior.\n if (zrUtil.indexOf(coordDimensions, 'value') < 0) {\n coordDimensions.concat(['value']);\n }\n\n const { dimensionList } = createDimensions(nodes, {\n coordDimensions: coordDimensions,\n encodeDefine: seriesModel.getEncode()\n });\n nodeData = new SeriesData(dimensionList, seriesModel);\n nodeData.initData(nodes);\n }\n\n const edgeData = new SeriesData(['value'], seriesModel);\n edgeData.initData(validEdges, linkNameList);\n\n beforeLink && beforeLink(nodeData, edgeData);\n\n linkSeriesData({\n mainData: nodeData,\n struct: graph,\n structAttr: 'graph',\n datas: {node: nodeData, edge: edgeData},\n datasAttr: {node: 'data', edge: 'edgeData'}\n });\n\n // Update dataIndex of nodes and edges because invalid edge may be removed\n graph.update();\n\n return graph;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {defaultEmphasis} from '../../util/model';\nimport Model from '../../model/Model';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n OptionDataValue,\n RoamOptionMixin,\n SeriesLabelOption,\n ItemStyleOption,\n LineStyleOption,\n SymbolOptionMixin,\n BoxLayoutOptionMixin,\n Dictionary,\n SeriesLineLabelOption,\n StatesOptionMixin,\n GraphEdgeItemObject,\n OptionDataValueNumeric,\n CallbackDataParams,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport Graph from '../../data/Graph';\nimport GlobalModel from '../../model/Global';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { ForceLayoutInstance } from './forceLayout';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { defaultSeriesFormatTooltip } from '../../component/tooltip/seriesFormatTooltip';\nimport {initCurvenessList, createEdgeMapForCurveness} from '../helper/multipleGraphEdgeHelper';\n\n\ntype GraphDataValue = OptionDataValue | OptionDataValue[];\n\ninterface GraphEdgeLineStyleOption extends LineStyleOption {\n curveness?: number\n}\n\nexport interface GraphNodeStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\n\ninterface ExtraEmphasisState {\n focus?: DefaultEmphasisFocus | 'adjacency'\n}\ninterface ExtraNodeStateOption {\n emphasis?: ExtraEmphasisState\n}\n\ninterface ExtraEdgeStateOption {\n emphasis?: ExtraEmphasisState\n}\n\nexport interface GraphNodeItemOption extends SymbolOptionMixin, GraphNodeStateOption,\n GraphNodeStateOption, StatesOptionMixin {\n\n id?: string\n name?: string\n value?: GraphDataValue\n\n /**\n * Fixed x position\n */\n x?: number\n /**\n * Fixed y position\n */\n y?: number\n\n /**\n * If this node is fixed during force layout.\n */\n fixed?: boolean\n\n /**\n * Index or name of category\n */\n category?: number | string\n\n draggable?: boolean\n}\n\nexport interface GraphEdgeStateOption {\n lineStyle?: GraphEdgeLineStyleOption\n label?: SeriesLineLabelOption\n}\nexport interface GraphEdgeItemOption extends\n GraphEdgeStateOption,\n StatesOptionMixin,\n GraphEdgeItemObject {\n\n value?: number\n\n /**\n * Symbol of both line ends\n */\n symbol?: string | string[]\n\n symbolSize?: number | number[]\n\n ignoreForceLayout?: boolean\n}\n\nexport interface GraphCategoryItemOption extends SymbolOptionMixin,\n GraphNodeStateOption, StatesOptionMixin {\n name?: string\n\n value?: OptionDataValue\n}\n\nexport interface GraphSeriesOption extends SeriesOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin,\n SymbolOptionMixin,\n RoamOptionMixin,\n BoxLayoutOptionMixin {\n\n type?: 'graph'\n\n coordinateSystem?: string\n\n legendHoverLink?: boolean\n\n layout?: 'none' | 'force' | 'circular'\n\n data?: (GraphNodeItemOption | GraphDataValue)[]\n nodes?: (GraphNodeItemOption | GraphDataValue)[]\n\n edges?: GraphEdgeItemOption[]\n links?: GraphEdgeItemOption[]\n\n categories?: GraphCategoryItemOption[]\n\n /**\n * @deprecated\n */\n focusNodeAdjacency?: boolean\n\n /**\n * Symbol size scale ratio in roam\n */\n nodeScaleRatio?: 0.6,\n\n draggable?: boolean\n\n edgeSymbol?: string | string[]\n edgeSymbolSize?: number | number[]\n\n edgeLabel?: SeriesLineLabelOption\n label?: SeriesLabelOption\n\n itemStyle?: ItemStyleOption\n lineStyle?: GraphEdgeLineStyleOption\n\n emphasis?: {\n focus?: Exclude['focus']\n scale?: boolean\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n blur?: {\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n select?: {\n label?: SeriesLabelOption\n edgeLabel?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n lineStyle?: LineStyleOption\n }\n\n // Configuration of circular layout\n circular?: {\n rotateLabel?: boolean\n }\n\n // Configuration of force directed layout\n force?: {\n initLayout?: 'circular' | 'none'\n // Node repulsion. Can be an array to represent range.\n repulsion?: number | number[]\n gravity?: number\n // Initial friction\n friction?: number\n\n // Edge length. Can be an array to represent range.\n edgeLength?: number | number[]\n\n layoutAnimation?: boolean\n }\n}\n\nclass GraphSeriesModel extends SeriesModel {\n static readonly type = 'series.graph';\n readonly type = GraphSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n private _categoriesData: SeriesData;\n private _categoriesModels: Model[];\n\n /**\n * Preserved points during layouting\n */\n preservedPoints?: Dictionary;\n\n forceLayout?: ForceLayoutInstance;\n\n hasSymbolVisual = true;\n\n init(option: GraphSeriesOption) {\n super.init.apply(this, arguments as any);\n\n const self = this;\n function getCategoriesData() {\n return self._categoriesData;\n }\n // Provide data for legend select\n this.legendVisualProvider = new LegendVisualProvider(\n getCategoriesData, getCategoriesData\n );\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n }\n\n mergeOption(option: GraphSeriesOption) {\n super.mergeOption.apply(this, arguments as any);\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n }\n\n mergeDefaultAndTheme(option: GraphSeriesOption) {\n super.mergeDefaultAndTheme.apply(this, arguments as any);\n defaultEmphasis(option, 'edgeLabel', ['show']);\n }\n\n getInitialData(option: GraphSeriesOption, ecModel: GlobalModel): SeriesData {\n const edges = option.edges || option.links || [];\n const nodes = option.data || option.nodes || [];\n const self = this;\n\n if (nodes && edges) {\n // auto curveness\n initCurvenessList(this);\n const graph = createGraphFromNodeEdge(nodes as GraphNodeItemOption[], edges, this, true, beforeLink);\n zrUtil.each(graph.edges, function (edge) {\n createEdgeMapForCurveness(edge.node1, edge.node2, this, edge.dataIndex);\n }, this);\n return graph.data;\n }\n\n function beforeLink(nodeData: SeriesData, edgeData: SeriesData) {\n // Overwrite nodeData.getItemModel to\n nodeData.wrapMethod('getItemModel', function (model) {\n const categoriesModels = self._categoriesModels;\n const categoryIdx = model.getShallow('category');\n const categoryModel = categoriesModels[categoryIdx];\n if (categoryModel) {\n categoryModel.parentModel = model.parentModel;\n model.parentModel = categoryModel;\n }\n return model;\n });\n\n // TODO Inherit resolveParentPath by default in Model#getModel?\n const oldGetModel = Model.prototype.getModel;\n function newGetModel(this: Model, path: any, parentModel?: Model) {\n const model = oldGetModel.call(this, path, parentModel);\n model.resolveParentPath = resolveParentPath;\n return model;\n }\n\n edgeData.wrapMethod('getItemModel', function (model: Model) {\n model.resolveParentPath = resolveParentPath;\n model.getModel = newGetModel;\n return model;\n });\n\n function resolveParentPath(this: Model, pathArr: readonly string[]): string[] {\n if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) {\n const newPathArr = pathArr.slice();\n if (pathArr[0] === 'label') {\n newPathArr[0] = 'edgeLabel';\n }\n else if (pathArr[1] === 'label') {\n newPathArr[1] = 'edgeLabel';\n }\n return newPathArr;\n }\n return pathArr as string[];\n }\n }\n }\n\n getGraph(): Graph {\n return this.getData().graph;\n }\n\n getEdgeData() {\n return this.getGraph().edgeData as SeriesData;\n }\n\n getCategoriesData(): SeriesData {\n return this._categoriesData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n if (dataType === 'edge') {\n const nodeData = this.getData();\n const params = this.getDataParams(dataIndex, dataType);\n const edge = nodeData.graph.getEdgeByIndex(dataIndex);\n const sourceName = nodeData.getName(edge.node1.dataIndex);\n const targetName = nodeData.getName(edge.node2.dataIndex);\n\n const nameArr = [];\n sourceName != null && nameArr.push(sourceName);\n targetName != null && nameArr.push(targetName);\n\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > '),\n value: params.value,\n noValue: params.value == null\n });\n }\n // dataType === 'node' or empty\n const nodeMarkup = defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n return nodeMarkup;\n }\n\n _updateCategoriesData() {\n const categories = zrUtil.map(this.option.categories || [], function (category) {\n // Data must has value\n return category.value != null ? category : zrUtil.extend({\n value: 0\n }, category);\n });\n const categoriesData = new SeriesData(['value'], this);\n categoriesData.initData(categories);\n\n this._categoriesData = categoriesData;\n\n this._categoriesModels = categoriesData.mapArray(function (idx) {\n return categoriesData.getItemModel(idx);\n });\n }\n\n setZoom(zoom: number) {\n this.option.zoom = zoom;\n }\n\n setCenter(center: number[]) {\n this.option.center = center;\n }\n\n isAnimationEnabled() {\n return super.isAnimationEnabled()\n // Not enable animation when do force layout\n && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation']));\n }\n\n static defaultOption: GraphSeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'view',\n\n // Default option for all coordinate systems\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // polarIndex: 0,\n // geoIndex: 0,\n\n legendHoverLink: true,\n\n layout: null,\n\n // Configuration of circular layout\n circular: {\n rotateLabel: false\n },\n // Configuration of force directed layout\n force: {\n initLayout: null,\n // Node repulsion. Can be an array to represent range.\n repulsion: [0, 50],\n gravity: 0.1,\n // Initial friction\n friction: 0.6,\n\n // Edge length. Can be an array to represent range.\n edgeLength: 30,\n\n layoutAnimation: true\n },\n\n left: 'center',\n top: 'center',\n // right: null,\n // bottom: null,\n // width: '80%',\n // height: '80%',\n\n symbol: 'circle',\n symbolSize: 10,\n\n edgeSymbol: ['none', 'none'],\n edgeSymbolSize: 10,\n edgeLabel: {\n position: 'middle',\n distance: 5\n },\n\n draggable: false,\n\n roam: false,\n\n // Default on center of graph\n center: null,\n\n zoom: 1,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.6,\n\n // cursor: null,\n\n // categories: [],\n\n // data: []\n // Or\n // nodes: []\n //\n // links: []\n // Or\n // edges: []\n\n label: {\n show: false,\n formatter: '{b}'\n },\n\n itemStyle: {},\n\n lineStyle: {\n color: '#aaa',\n width: 1,\n opacity: 0.5\n },\n emphasis: {\n scale: true,\n label: {\n show: true\n }\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n}\n\nexport default GraphSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nimport categoryFilter from './categoryFilter';\nimport categoryVisual from './categoryVisual';\nimport edgeVisual from './edgeVisual';\nimport simpleLayout from './simpleLayout';\nimport circularLayout from './circularLayout';\nimport forceLayout from './forceLayout';\nimport createView from './createView';\nimport View from '../../coord/View';\nimport GraphView from './GraphView';\nimport GraphSeriesModel from './GraphSeries';\nimport { RoamPaylod, updateCenterAndZoom } from '../../action/roamHelper';\nimport GlobalModel from '../../model/Global';\n\nconst actionInfo = {\n type: 'graphRoam',\n event: 'graphRoam',\n update: 'none'\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerChartView(GraphView);\n registers.registerSeriesModel(GraphSeriesModel);\n\n registers.registerProcessor(categoryFilter);\n\n registers.registerVisual(categoryVisual);\n registers.registerVisual(edgeVisual);\n\n registers.registerLayout(simpleLayout);\n registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);\n registers.registerLayout(forceLayout);\n\n registers.registerCoordinateSystem('graphView', {\n dimensions: View.dimensions,\n create: createView\n });\n\n // Register legacy focus actions\n registers.registerAction({\n type: 'focusNodeAdjacency',\n event: 'focusNodeAdjacency',\n update: 'series:focusNodeAdjacency'\n }, function () {});\n\n registers.registerAction({\n type: 'unfocusNodeAdjacency',\n event: 'unfocusNodeAdjacency',\n update: 'series:unfocusNodeAdjacency'\n }, function () {});\n\n // Register roam action.\n registers.registerAction(actionInfo, function (payload: RoamPaylod, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series', query: payload\n }, function (seriesModel: GraphSeriesModel) {\n const coordSys = seriesModel.coordinateSystem as View;\n\n const res = updateCenterAndZoom(coordSys, payload);\n\n seriesModel.setCenter\n && seriesModel.setCenter(res.center);\n\n seriesModel.setZoom\n && seriesModel.setZoom(res.zoom);\n });\n });\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\n\nclass PointerShape {\n angle = 0;\n width = 10;\n r = 10;\n x = 0;\n y = 0;\n}\n\ninterface PointerPathProps extends PathProps {\n shape?: Partial\n}\n\nexport default class PointerPath extends Path {\n\n readonly type = 'pointer';\n\n shape: PointerShape;\n\n constructor(opts?: PointerPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new PointerShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: PointerShape) {\n const mathCos = Math.cos;\n const mathSin = Math.sin;\n\n const r = shape.r;\n const width = shape.width;\n let angle = shape.angle;\n const x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);\n const y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);\n\n angle = shape.angle - Math.PI / 2;\n ctx.moveTo(x, y);\n ctx.lineTo(\n shape.x + mathCos(angle) * width,\n shape.y + mathSin(angle) * width\n );\n ctx.lineTo(\n shape.x + mathCos(shape.angle) * r,\n shape.y + mathSin(shape.angle) * r\n );\n ctx.lineTo(\n shape.x - mathCos(angle) * width,\n shape.y - mathSin(angle) * width\n );\n ctx.lineTo(x, y);\n }\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport PointerPath from './PointerPath';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport {createTextStyle, setLabelValueAnimation, animateLabelValue} from '../../label/labelStyle';\nimport ChartView from '../../view/Chart';\nimport {parsePercent, round, linearMap} from '../../util/number';\nimport GaugeSeriesModel, { GaugeDataItemOption } from './GaugeSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ColorString, ECElement } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport Sausage from '../../util/shape/sausage';\nimport {createSymbol} from '../../util/symbol';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport {extend} from 'zrender/src/core/util';\nimport {setCommonECData} from '../../util/innerStore';\n\ntype ECSymbol = ReturnType;\n\ninterface PosInfo {\n cx: number\n cy: number\n r: number\n}\n\nfunction parsePosition(seriesModel: GaugeSeriesModel, api: ExtensionAPI): PosInfo {\n const center = seriesModel.get('center');\n const width = api.getWidth();\n const height = api.getHeight();\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], api.getWidth());\n const cy = parsePercent(center[1], api.getHeight());\n const r = parsePercent(seriesModel.get('radius'), size / 2);\n\n return {\n cx: cx,\n cy: cy,\n r: r\n };\n}\n\nfunction formatLabel(value: number, labelFormatter: string | ((value: number) => string)): string {\n let label = value == null ? '' : (value + '');\n if (labelFormatter) {\n if (typeof labelFormatter === 'string') {\n label = labelFormatter.replace('{value}', label);\n }\n else if (typeof labelFormatter === 'function') {\n label = labelFormatter(value);\n }\n }\n\n return label;\n}\n\nconst PI2 = Math.PI * 2;\n\nclass GaugeView extends ChartView {\n static type = 'gauge' as const;\n type = GaugeView.type;\n\n private _data: SeriesData;\n private _progressEls: graphic.Path[];\n\n private _titleEls: graphic.Text[];\n private _detailEls: graphic.Text[];\n\n render(seriesModel: GaugeSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n this.group.removeAll();\n\n const colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']);\n const posInfo = parsePosition(seriesModel, api);\n\n this._renderMain(\n seriesModel, ecModel, api, colorList, posInfo\n );\n\n this._data = seriesModel.getData();\n }\n\n dispose() {}\n\n _renderMain(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n colorList: [number, ColorString][],\n posInfo: PosInfo\n ) {\n const group = this.group;\n const clockwise = seriesModel.get('clockwise');\n let startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;\n let endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;\n const axisLineModel = seriesModel.getModel('axisLine');\n\n const roundCap = axisLineModel.get('roundCap');\n const MainPath = roundCap ? Sausage : graphic.Sector;\n\n const showAxis = axisLineModel.get('show');\n const lineStyleModel = axisLineModel.getModel('lineStyle');\n const axisLineWidth = lineStyleModel.get('width');\n const angleRangeSpan = !((endAngle - startAngle) % PI2) && endAngle !== startAngle\n ? PI2 : (endAngle - startAngle) % PI2;\n\n let prevEndAngle = startAngle;\n\n for (let i = 0; showAxis && i < colorList.length; i++) {\n // Clamp\n const percent = Math.min(Math.max(colorList[i][0], 0), 1);\n endAngle = startAngle + angleRangeSpan * percent;\n const sector = new MainPath({\n shape: {\n startAngle: prevEndAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: posInfo.r - axisLineWidth,\n r: posInfo.r\n },\n silent: true\n });\n\n sector.setStyle({\n fill: colorList[i][1]\n });\n\n sector.setStyle(lineStyleModel.getLineStyle(\n // Because we use sector to simulate arc\n // so the properties for stroking are useless\n ['color', 'width']\n ));\n\n group.add(sector);\n\n prevEndAngle = endAngle;\n }\n\n const getColor = function (percent: number) {\n // Less than 0\n if (percent <= 0) {\n return colorList[0][1];\n }\n let i;\n for (i = 0; i < colorList.length; i++) {\n if (colorList[i][0] >= percent\n && (i === 0 ? 0 : colorList[i - 1][0]) < percent\n ) {\n return colorList[i][1];\n }\n }\n // More than 1\n return colorList[i - 1][1];\n };\n\n if (!clockwise) {\n const tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n\n this._renderTicks(\n seriesModel, ecModel, api, getColor, posInfo,\n startAngle, endAngle, clockwise, axisLineWidth\n );\n\n this._renderTitleAndDetail(\n seriesModel, ecModel, api, getColor, posInfo\n );\n\n this._renderAnchor(seriesModel, posInfo);\n\n this._renderPointer(\n seriesModel, ecModel, api, getColor, posInfo,\n startAngle, endAngle, clockwise, axisLineWidth\n );\n }\n\n _renderTicks(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo,\n startAngle: number,\n endAngle: number,\n clockwise: boolean,\n axisLineWidth: number\n ) {\n const group = this.group;\n const cx = posInfo.cx;\n const cy = posInfo.cy;\n const r = posInfo.r;\n\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n\n const splitLineModel = seriesModel.getModel('splitLine');\n const tickModel = seriesModel.getModel('axisTick');\n const labelModel = seriesModel.getModel('axisLabel');\n\n const splitNumber = seriesModel.get('splitNumber');\n const subSplitNumber = tickModel.get('splitNumber');\n\n const splitLineLen = parsePercent(\n splitLineModel.get('length'), r\n );\n const tickLen = parsePercent(\n tickModel.get('length'), r\n );\n\n let angle = startAngle;\n const step = (endAngle - startAngle) / splitNumber;\n const subStep = step / subSplitNumber;\n\n const splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();\n const tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();\n\n const splitLineDistance = splitLineModel.get('distance');\n\n let unitX;\n let unitY;\n\n for (let i = 0; i <= splitNumber; i++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n // Split line\n if (splitLineModel.get('show')) {\n const distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth;\n const splitLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - splitLineLen - distance) + cx,\n y2: unitY * (r - splitLineLen - distance) + cy\n },\n style: splitLineStyle,\n silent: true\n });\n if (splitLineStyle.stroke === 'auto') {\n splitLine.setStyle({\n stroke: getColor(i / splitNumber)\n });\n }\n\n group.add(splitLine);\n }\n\n // Label\n if (labelModel.get('show')) {\n const distance = labelModel.get('distance') + splitLineDistance;\n\n const label = formatLabel(\n round(i / splitNumber * (maxVal - minVal) + minVal),\n labelModel.get('formatter')\n );\n const autoColor = getColor(i / splitNumber);\n\n group.add(new graphic.Text({\n style: createTextStyle(labelModel, {\n text: label,\n x: unitX * (r - splitLineLen - distance) + cx,\n y: unitY * (r - splitLineLen - distance) + cy,\n verticalAlign: unitY < -0.8 ? 'top' : (unitY > 0.8 ? 'bottom' : 'middle'),\n align: unitX < -0.4 ? 'left' : (unitX > 0.4 ? 'right' : 'center')\n }, {\n inheritColor: autoColor\n }),\n silent: true\n }));\n }\n\n // Axis tick\n if (tickModel.get('show') && i !== splitNumber) {\n let distance = tickModel.get('distance');\n distance = distance ? distance + axisLineWidth : axisLineWidth;\n\n for (let j = 0; j <= subSplitNumber; j++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n const tickLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - tickLen - distance) + cx,\n y2: unitY * (r - tickLen - distance) + cy\n },\n silent: true,\n style: tickLineStyle\n });\n\n if (tickLineStyle.stroke === 'auto') {\n tickLine.setStyle({\n stroke: getColor((i + j / subSplitNumber) / splitNumber)\n });\n }\n\n group.add(tickLine);\n angle += subStep;\n }\n angle -= subStep;\n }\n else {\n angle += step;\n }\n }\n }\n\n _renderPointer(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo,\n startAngle: number,\n endAngle: number,\n clockwise: boolean,\n axisLineWidth: number\n ) {\n\n const group = this.group;\n const oldData = this._data;\n const oldProgressData = this._progressEls;\n const progressList = [] as graphic.Path[];\n\n const showPointer = seriesModel.get(['pointer', 'show']);\n const progressModel = seriesModel.getModel('progress');\n const showProgress = progressModel.get('show');\n\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n const valueExtent = [minVal, maxVal];\n const angleExtent = [startAngle, endAngle];\n\n function createPointer(idx: number, angle: number) {\n const itemModel = data.getItemModel(idx);\n const pointerModel = itemModel.getModel('pointer');\n const pointerWidth = parsePercent(pointerModel.get('width'), posInfo.r);\n const pointerLength = parsePercent(pointerModel.get('length'), posInfo.r);\n const pointerStr = seriesModel.get(['pointer', 'icon']);\n const pointerOffset = pointerModel.get('offsetCenter');\n const pointerOffsetX = parsePercent(pointerOffset[0], posInfo.r);\n const pointerOffsetY = parsePercent(pointerOffset[1], posInfo.r);\n const pointerKeepAspect = pointerModel.get('keepAspect');\n\n let pointer;\n // not exist icon type will be set 'rect'\n if (pointerStr) {\n pointer = createSymbol(\n pointerStr,\n pointerOffsetX - pointerWidth / 2,\n pointerOffsetY - pointerLength,\n pointerWidth,\n pointerLength,\n null,\n pointerKeepAspect\n ) as graphic.Path;\n }\n else {\n pointer = new PointerPath({\n shape: {\n angle: -Math.PI / 2,\n width: pointerWidth,\n r: pointerLength,\n x: pointerOffsetX,\n y: pointerOffsetY\n }\n });\n }\n pointer.rotation = -(angle + Math.PI / 2);\n pointer.x = posInfo.cx;\n pointer.y = posInfo.cy;\n return pointer;\n }\n\n function createProgress(idx: number, endAngle: number) {\n const roundCap = progressModel.get('roundCap');\n const ProgressPath = roundCap ? Sausage : graphic.Sector;\n\n const isOverlap = progressModel.get('overlap');\n const progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();\n const r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;\n const r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth;\n const progress = new ProgressPath({\n shape: {\n startAngle: startAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: r0,\n r: r\n }\n });\n isOverlap && (progress.z2 = maxVal - (data.get(valueDim, idx) as number) % maxVal);\n return progress;\n }\n\n if (showProgress || showPointer) {\n data.diff(oldData)\n .add(function (idx) {\n if (showPointer) {\n const pointer = createPointer(idx, startAngle);\n graphic.initProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, idx) as number, valueExtent, angleExtent, true)\n + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(idx, pointer);\n }\n\n if (showProgress) {\n const progress = createProgress(idx, startAngle) as graphic.Sector;\n const isClip = progressModel.get('clip');\n graphic.initProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, idx) as number, valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n setCommonECData(seriesModel.seriesIndex, data.dataType, idx, progress);\n progressList[idx] = progress;\n }\n })\n .update(function (newIdx, oldIdx) {\n if (showPointer) {\n const previousPointer = oldData.getItemGraphicEl(oldIdx) as PointerPath;\n const previousRotate = previousPointer ? previousPointer.rotation : startAngle;\n const pointer = createPointer(newIdx, previousRotate);\n pointer.rotation = previousRotate;\n graphic.updateProps(pointer, {\n rotation: -(\n linearMap(data.get(valueDim, newIdx) as number, valueExtent, angleExtent, true)\n + Math.PI / 2\n )\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(newIdx, pointer);\n }\n\n if (showProgress) {\n const previousProgress = oldProgressData[oldIdx];\n const previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle;\n const progress = createProgress(newIdx, previousEndAngle) as graphic.Sector;\n const isClip = progressModel.get('clip');\n graphic.updateProps(progress, {\n shape: {\n endAngle: linearMap(\n data.get(valueDim, newIdx) as number, valueExtent, angleExtent, isClip\n )\n }\n }, seriesModel);\n group.add(progress);\n // Add data index and series index for indexing the data by element\n // Useful in tooltip\n setCommonECData(seriesModel.seriesIndex, data.dataType, newIdx, progress);\n progressList[newIdx] = progress;\n }\n })\n .execute();\n\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n if (showPointer) {\n const pointer = data.getItemGraphicEl(idx) as ECSymbol;\n const symbolStyle = data.getItemVisual(idx, 'style');\n const visualColor = symbolStyle.fill;\n if (pointer instanceof ZRImage) {\n const pathStyle = pointer.style;\n pointer.useStyle(extend({\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolStyle));\n }\n else {\n pointer.useStyle(symbolStyle);\n pointer.type !== 'pointer' && pointer.setColor(visualColor);\n }\n\n pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());\n\n\n if (pointer.style.fill === 'auto') {\n pointer.setStyle('fill', getColor(\n linearMap(data.get(valueDim, idx) as number, valueExtent, [0, 1], true)\n ));\n }\n\n (pointer as ECElement).z2EmphasisLift = 0;\n setStatesStylesFromModel(pointer, itemModel);\n enableHoverEmphasis(pointer, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n if (showProgress) {\n const progress = progressList[idx];\n progress.useStyle(data.getItemVisual(idx, 'style'));\n progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle());\n (progress as ECElement).z2EmphasisLift = 0;\n setStatesStylesFromModel(progress, itemModel);\n enableHoverEmphasis(progress, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n });\n\n this._progressEls = progressList;\n }\n }\n\n _renderAnchor(\n seriesModel: GaugeSeriesModel,\n posInfo: PosInfo\n ) {\n const anchorModel = seriesModel.getModel('anchor');\n const showAnchor = anchorModel.get('show');\n if (showAnchor) {\n const anchorSize = anchorModel.get('size');\n const anchorType = anchorModel.get('icon');\n const offsetCenter = anchorModel.get('offsetCenter');\n const anchorKeepAspect = anchorModel.get('keepAspect');\n const anchor = createSymbol(\n anchorType,\n posInfo.cx - anchorSize / 2 + parsePercent(offsetCenter[0], posInfo.r),\n posInfo.cy - anchorSize / 2 + parsePercent(offsetCenter[1], posInfo.r),\n anchorSize,\n anchorSize,\n null,\n anchorKeepAspect\n ) as graphic.Path;\n anchor.z2 = anchorModel.get('showAbove') ? 1 : 0;\n anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle());\n this.group.add(anchor);\n }\n }\n\n _renderTitleAndDetail(\n seriesModel: GaugeSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n getColor: (percent: number) => ColorString,\n posInfo: PosInfo\n ) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const minVal = +seriesModel.get('min');\n const maxVal = +seriesModel.get('max');\n\n const contentGroup = new graphic.Group();\n\n const newTitleEls: graphic.Text[] = [];\n const newDetailEls: graphic.Text[] = [];\n const hasAnimation = seriesModel.isAnimationEnabled();\n\n const showPointerAbove = seriesModel.get(['pointer', 'showAbove']);\n\n data.diff(this._data)\n .add((idx) => {\n newTitleEls[idx] = new graphic.Text({\n silent: true\n });\n newDetailEls[idx] = new graphic.Text({\n silent: true\n });\n })\n .update((idx, oldIdx) => {\n newTitleEls[idx] = this._titleEls[oldIdx];\n newDetailEls[idx] = this._detailEls[oldIdx];\n })\n .execute();\n\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const value = data.get(valueDim, idx) as number;\n const itemGroup = new graphic.Group();\n const autoColor = getColor(\n linearMap(value, [minVal, maxVal], [0, 1], true)\n );\n\n const itemTitleModel = itemModel.getModel('title');\n if (itemTitleModel.get('show')) {\n const titleOffsetCenter = itemTitleModel.get('offsetCenter');\n const titleX = posInfo.cx + parsePercent(titleOffsetCenter[0], posInfo.r);\n const titleY = posInfo.cy + parsePercent(titleOffsetCenter[1], posInfo.r);\n const labelEl = newTitleEls[idx];\n labelEl.attr({\n z2: showPointerAbove ? 0 : 2,\n style: createTextStyle(itemTitleModel, {\n x: titleX,\n y: titleY,\n text: data.getName(idx),\n align: 'center',\n verticalAlign: 'middle'\n }, {inheritColor: autoColor})\n });\n\n itemGroup.add(labelEl);\n }\n\n const itemDetailModel = itemModel.getModel('detail');\n if (itemDetailModel.get('show')) {\n const detailOffsetCenter = itemDetailModel.get('offsetCenter');\n const detailX = posInfo.cx + parsePercent(detailOffsetCenter[0], posInfo.r);\n const detailY = posInfo.cy + parsePercent(detailOffsetCenter[1], posInfo.r);\n const width = parsePercent(itemDetailModel.get('width'), posInfo.r);\n const height = parsePercent(itemDetailModel.get('height'), posInfo.r);\n const detailColor = (\n seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor\n ) as string;\n const labelEl = newDetailEls[idx];\n const formatter = itemDetailModel.get('formatter');\n labelEl.attr({\n z2: showPointerAbove ? 0 : 2,\n style: createTextStyle(itemDetailModel, {\n x: detailX,\n y: detailY,\n text: formatLabel(value, formatter),\n width: isNaN(width) ? null : width,\n height: isNaN(height) ? null : height,\n align: 'center',\n verticalAlign: 'middle'\n }, {inheritColor: detailColor})\n });\n setLabelValueAnimation(\n labelEl,\n {normal: itemDetailModel},\n value,\n (value: number) => formatLabel(value, formatter)\n );\n hasAnimation && animateLabelValue(labelEl, idx, data, seriesModel, {\n getFormattedLabel(\n labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams\n ) {\n return formatLabel(\n extendParams\n ? extendParams.interpolatedValue as typeof value\n : value,\n formatter\n );\n }\n });\n\n itemGroup.add(labelEl);\n }\n\n contentGroup.add(itemGroup);\n });\n this.group.add(contentGroup);\n\n this._titleEls = newTitleEls;\n this._detailEls = newDetailEls;\n }\n\n}\n\nexport default GaugeView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n CircleLayoutOptionMixin,\n LineStyleOption,\n ColorString,\n LabelOption,\n ItemStyleOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\n\n// [percent, color]\ntype GaugeColorStop = [number, ColorString];\n\ninterface LabelFormatter {\n (value: number): string\n}\n\ninterface PointerOption {\n icon?: string\n show?: boolean\n /**\n * If pointer shows above title and detail\n */\n showAbove?: boolean,\n keepAspect?: boolean\n itemStyle?: ItemStyleOption\n /**\n * Can be percent\n */\n offsetCenter?: (number | string)[]\n length?: number | string\n width?: number\n}\n\ninterface AnchorOption {\n show?: boolean\n showAbove?: boolean\n size?: number\n icon?: string\n offsetCenter?: (number | string)[]\n keepAspect?: boolean\n itemStyle?: ItemStyleOption\n}\n\ninterface ProgressOption {\n show?: boolean\n overlap?: boolean\n width?: number\n roundCap?: boolean\n clip?: boolean\n itemStyle?: ItemStyleOption\n}\n\ninterface TitleOption extends LabelOption {\n /**\n * [x, y] offset\n */\n offsetCenter?: (number | string)[]\n formatter?: LabelFormatter | string\n\n /**\n * If do value animtion.\n */\n valueAnimation?: boolean\n}\n\ninterface DetailOption extends LabelOption {\n /**\n * [x, y] offset\n */\n offsetCenter?: (number | string)[]\n formatter?: LabelFormatter | string\n\n /**\n * If do value animtion.\n */\n valueAnimation?: boolean\n}\n\nexport interface GaugeStateOption {\n itemStyle?: ItemStyleOption\n}\n\nexport interface GaugeDataItemOption extends GaugeStateOption, StatesOptionMixin {\n name?: string\n value?: OptionDataValueNumeric\n pointer?: PointerOption\n progress?: ProgressOption\n title?: TitleOption\n detail?: DetailOption\n}\nexport interface GaugeSeriesOption extends SeriesOption, GaugeStateOption,\n CircleLayoutOptionMixin, SeriesEncodeOptionMixin {\n type?: 'gauge'\n\n // override radius\n radius?: number | string\n\n startAngle?: number\n endAngle?: number\n clockwise?: boolean\n\n min?: number\n max?: number\n\n splitNumber?: number\n\n itemStyle?: ItemStyleOption\n\n axisLine?: {\n show?: boolean\n roundCap?: boolean\n lineStyle?: Omit & {\n color?: GaugeColorStop[]\n }\n },\n\n progress?: ProgressOption\n\n splitLine?: {\n show?: boolean\n /**\n * Can be percent\n */\n length?: number\n distance?: number\n lineStyle?: LineStyleOption\n }\n\n axisTick?: {\n show?: boolean\n splitNumber?: number\n /**\n * Can be percent\n */\n length?: number | string\n distance?: number\n lineStyle?: LineStyleOption\n }\n\n axisLabel?: LabelOption & {\n formatter?: LabelFormatter | string\n }\n\n pointer?: PointerOption\n anchor?: AnchorOption\n\n title?: TitleOption\n detail?: DetailOption\n\n data?: (OptionDataValueNumeric | GaugeDataItemOption)[]\n}\n\nclass GaugeSeriesModel extends SeriesModel {\n\n static type = 'series.gauge' as const;\n type = GaugeSeriesModel.type;\n\n visualStyleAccessPath = 'itemStyle';\n\n getInitialData(option: GaugeSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, ['value']);\n }\n\n static defaultOption: GaugeSeriesOption = {\n zlevel: 0,\n z: 2,\n colorBy: 'data',\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n legendHoverLink: true,\n radius: '75%',\n startAngle: 225,\n endAngle: -45,\n clockwise: true,\n // \u6700\u5C0F\u503C\n min: 0,\n // \u6700\u5927\u503C\n max: 100,\n // \u5206\u5272\u6BB5\u6570\uFF0C\u9ED8\u8BA4\u4E3A10\n splitNumber: 10,\n // \u5750\u6807\u8F74\u7EBF\n axisLine: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: true,\n roundCap: false,\n lineStyle: { // \u5C5E\u6027lineStyle\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n color: [[1, '#E6EBF8']],\n width: 10\n }\n },\n // \u5750\u6807\u8F74\u7EBF\n progress: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: false,\n overlap: true,\n width: 10,\n roundCap: false,\n clip: true\n },\n // \u5206\u9694\u7EBF\n splitLine: {\n // \u9ED8\u8BA4\u663E\u793A\uFF0C\u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\n show: true,\n // \u5C5E\u6027length\u63A7\u5236\u7EBF\u957F\n length: 10,\n distance: 10,\n // \u5C5E\u6027lineStyle\uFF08\u8BE6\u89C1lineStyle\uFF09\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n lineStyle: {\n color: '#63677A',\n width: 3,\n type: 'solid'\n }\n },\n // \u5750\u6807\u8F74\u5C0F\u6807\u8BB0\n axisTick: {\n // \u5C5E\u6027show\u63A7\u5236\u663E\u793A\u4E0E\u5426\uFF0C\u9ED8\u8BA4\u4E0D\u663E\u793A\n show: true,\n // \u6BCF\u4EFDsplit\u7EC6\u5206\u591A\u5C11\u6BB5\n splitNumber: 5,\n // \u5C5E\u6027length\u63A7\u5236\u7EBF\u957F\n length: 6,\n distance: 10,\n // \u5C5E\u6027lineStyle\u63A7\u5236\u7EBF\u6761\u6837\u5F0F\n lineStyle: {\n color: '#63677A',\n width: 1,\n type: 'solid'\n }\n },\n axisLabel: {\n show: true,\n distance: 15,\n // formatter: null,\n color: '#464646',\n fontSize: 12\n },\n pointer: {\n icon: null,\n offsetCenter: [0, 0],\n show: true,\n showAbove: true,\n length: '60%',\n width: 6,\n keepAspect: false\n },\n anchor: {\n show: false,\n showAbove: false,\n size: 6,\n icon: 'circle',\n offsetCenter: [0, 0],\n keepAspect: false,\n itemStyle: {\n color: '#fff',\n borderWidth: 0,\n borderColor: '#5470c6'\n }\n },\n\n title: {\n show: true,\n // x, y\uFF0C\u5355\u4F4Dpx\n offsetCenter: [0, '20%'],\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#464646',\n fontSize: 16,\n valueAnimation: false\n },\n detail: {\n show: true,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 0,\n borderColor: '#ccc',\n width: 100,\n height: null, // self-adaption\n padding: [5, 10],\n // x, y\uFF0C\u5355\u4F4Dpx\n offsetCenter: [0, '40%'],\n // formatter: null,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#464646',\n fontSize: 30,\n fontWeight: 'bold',\n lineHeight: 30,\n valueAnimation: false\n }\n };\n}\n\n\nexport default GaugeSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport GaugeView from './GaugeView';\nimport GaugeSeriesModel from './GaugeSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(GaugeView);\n registers.registerSeriesModel(GaugeSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport FunnelSeriesModel, {FunnelDataItemOption} from './FunnelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { ColorString } from '../../util/types';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst opacityAccessPath = ['itemStyle', 'opacity'] as const;\n\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\nclass FunnelPiece extends graphic.Polygon {\n\n constructor(data: SeriesData, idx: number) {\n super();\n\n const polygon = this;\n const labelLine = new graphic.Polyline();\n const text = new graphic.Text();\n polygon.setTextContent(text);\n this.setTextGuideLine(labelLine);\n\n this.updateData(data, idx, true);\n }\n\n updateData(data: SeriesData, idx: number, firstCreate?: boolean) {\n\n const polygon = this;\n\n const seriesModel = data.hostModel;\n const itemModel = data.getItemModel(idx);\n const layout = data.getItemLayout(idx);\n const emphasisModel = itemModel.getModel('emphasis');\n let opacity = itemModel.get(opacityAccessPath);\n opacity = opacity == null ? 1 : opacity;\n\n if (!firstCreate) {\n saveOldStyle(polygon);\n }\n // Update common style\n polygon.useStyle(data.getItemVisual(idx, 'style'));\n polygon.style.lineJoin = 'round';\n\n if (firstCreate) {\n polygon.setShape({\n points: layout.points\n });\n polygon.style.opacity = 0;\n graphic.initProps(polygon, {\n style: {\n opacity: opacity\n }\n }, seriesModel, idx);\n }\n else {\n graphic.updateProps(polygon, {\n style: {\n opacity: opacity\n },\n shape: {\n points: layout.points\n }\n }, seriesModel, idx);\n }\n\n setStatesStylesFromModel(polygon, itemModel);\n\n this._updateLabel(data, idx);\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n _updateLabel(data: SeriesData, idx: number) {\n const polygon = this;\n const labelLine = this.getTextGuideLine();\n const labelText = polygon.getTextContent();\n\n const seriesModel = data.hostModel;\n const itemModel = data.getItemModel(idx);\n const layout = data.getItemLayout(idx);\n const labelLayout = layout.label;\n const style = data.getItemVisual(idx, 'style');\n const visualColor = style.fill as ColorString;\n\n setLabelStyle(\n // position will not be used in setLabelStyle\n labelText,\n getLabelStatesModels(itemModel),\n {\n labelFetcher: data.hostModel as FunnelSeriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: data.getName(idx)\n },\n { normal: {\n align: labelLayout.textAlign,\n verticalAlign: labelLayout.verticalAlign\n } }\n );\n\n polygon.setTextConfig({\n local: true,\n inside: !!labelLayout.inside,\n insideStroke: visualColor,\n // insideFill: 'auto',\n outsideFill: visualColor\n });\n\n const linePoints = labelLayout.linePoints;\n\n labelLine.setShape({\n points: linePoints\n });\n\n polygon.textGuideLineConfig = {\n anchor: linePoints ? new graphic.Point(linePoints[0][0], linePoints[0][1]) : null\n };\n\n // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n graphic.updateProps(labelText, {\n style: {\n x: labelLayout.x,\n y: labelLayout.y\n }\n }, seriesModel, idx);\n\n labelText.attr({\n rotation: labelLayout.rotation,\n originX: labelLayout.x,\n originY: labelLayout.y,\n z2: 10\n });\n\n setLabelLineStyle(polygon, getLabelLineStatesModels(itemModel), {\n // Default use item visual color\n stroke: visualColor\n });\n }\n}\n\nclass FunnelView extends ChartView {\n static type = 'funnel' as const;\n type = FunnelView.type;\n\n private _data: SeriesData;\n\n ignoreLabelLineUpdate = true;\n\n render(seriesModel: FunnelSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const group = this.group;\n\n data.diff(oldData)\n .add(function (idx) {\n const funnelPiece = new FunnelPiece(data, idx);\n\n data.setItemGraphicEl(idx, funnelPiece);\n\n group.add(funnelPiece);\n })\n .update(function (newIdx, oldIdx) {\n const piece = oldData.getItemGraphicEl(oldIdx) as FunnelPiece;\n\n piece.updateData(data, newIdx);\n\n group.add(piece);\n data.setItemGraphicEl(newIdx, piece);\n })\n .remove(function (idx) {\n const piece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piece, seriesModel, idx);\n })\n .execute();\n\n this._data = data;\n }\n\n remove() {\n this.group.removeAll();\n this._data = null;\n }\n\n dispose() {}\n}\n\n\nexport default FunnelView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport createSeriesDataSimply from '../helper/createSeriesDataSimply';\nimport {defaultEmphasis} from '../../util/model';\nimport {makeSeriesEncodeForNameBased} from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n HorizontalAlign,\n LabelOption,\n LabelLineOption,\n ItemStyleOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n OptionDataItemObject,\n LayoutOrient,\n VerticalAlign,\n SeriesLabelOption,\n SeriesEncodeOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\n\ntype FunnelLabelOption = Omit & {\n position?: LabelOption['position']\n | 'outer' | 'inner' | 'center' | 'rightTop' | 'rightBottom' | 'leftTop' | 'leftBottom'\n};\n\nexport interface FunnelStateOption {\n itemStyle?: ItemStyleOption\n label?: FunnelLabelOption\n labelLine?: LabelLineOption\n}\n\nexport interface FunnelDataItemOption\n extends FunnelStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n itemStyle?: ItemStyleOption & {\n width?: number | string\n height?: number | string\n }\n}\n\nexport interface FunnelSeriesOption extends SeriesOption, FunnelStateOption,\n BoxLayoutOptionMixin, SeriesEncodeOptionMixin {\n type?: 'funnel'\n\n min?: number\n max?: number\n\n /**\n * Absolute number or percent string\n */\n minSize?: number | string\n maxSize?: number | string\n\n sort?: 'ascending' | 'descending' | 'none'\n\n orient?: LayoutOrient\n\n gap?: number\n\n funnelAlign?: HorizontalAlign | VerticalAlign\n\n data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | FunnelDataItemOption)[]\n}\n\nclass FunnelSeriesModel extends SeriesModel {\n static type = 'series.funnel' as const;\n type = FunnelSeriesModel.type;\n\n init(option: FunnelSeriesOption) {\n super.init.apply(this, arguments as any);\n\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n // Extend labelLine emphasis\n this._defaultLabelLine(option);\n }\n\n getInitialData(this: FunnelSeriesModel, option: FunnelSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesDataSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n }\n\n _defaultLabelLine(option: FunnelSeriesOption) {\n // Extend labelLine emphasis\n defaultEmphasis(option, 'labelLine', ['show']);\n\n const labelLineNormalOpt = option.labelLine;\n const labelLineEmphasisOpt = option.emphasis.labelLine;\n // Not show label line if `label.normal.show = false`\n labelLineNormalOpt.show = labelLineNormalOpt.show\n && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show\n && option.emphasis.label.show;\n }\n\n // Overwrite\n getDataParams(dataIndex: number) {\n const data = this.getData();\n const params = super.getDataParams(dataIndex);\n const valueDim = data.mapDimension('value');\n const sum = data.getSum(valueDim);\n // Percent is 0 if sum is 0\n params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) as number / sum * 100).toFixed(2);\n\n params.$vars.push('percent');\n return params;\n }\n\n static defaultOption: FunnelSeriesOption = {\n zlevel: 0, // \u4E00\u7EA7\u5C42\u53E0\n z: 2, // \u4E8C\u7EA7\u5C42\u53E0\n legendHoverLink: true,\n colorBy: 'data',\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n\n // \u9ED8\u8BA4\u53D6\u6570\u636E\u6700\u5C0F\u6700\u5927\u503C\n // min: 0,\n // max: 100,\n minSize: '0%',\n maxSize: '100%',\n sort: 'descending', // 'ascending', 'descending'\n orient: 'vertical',\n gap: 0,\n funnelAlign: 'center',\n label: {\n show: true,\n position: 'outer'\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n },\n labelLine: {\n show: true,\n length: 20,\n lineStyle: {\n // color: \u5404\u5F02,\n width: 1\n }\n },\n itemStyle: {\n // color: \u5404\u5F02,\n borderColor: '#fff',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n\n}\n\nexport default FunnelSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as layout from '../../util/layout';\nimport {parsePercent, linearMap} from '../../util/number';\nimport FunnelSeriesModel, { FunnelSeriesOption, FunnelDataItemOption } from './FunnelSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\n\nfunction getViewRect(seriesModel: FunnelSeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nfunction getSortedIndices(data: SeriesData, sort: FunnelSeriesOption['sort']) {\n const valueDim = data.mapDimension('value');\n const valueArr = data.mapArray(valueDim, function (val: number) {\n return val;\n });\n const indices: number[] = [];\n const isAscending = sort === 'ascending';\n for (let i = 0, len = data.count(); i < len; i++) {\n indices[i] = i;\n }\n\n // Add custom sortable function & none sortable opetion by \"options.sort\"\n if (typeof sort === 'function') {\n indices.sort(sort);\n }\n else if (sort !== 'none') {\n indices.sort(function (a, b) {\n return isAscending\n ? valueArr[a] - valueArr[b]\n : valueArr[b] - valueArr[a];\n });\n }\n return indices;\n}\n\nfunction labelLayout(data: SeriesData) {\n const seriesModel = data.hostModel;\n const orient = seriesModel.get('orient');\n data.each(function (idx) {\n const itemModel = data.getItemModel(idx);\n const labelModel = itemModel.getModel('label');\n let labelPosition = labelModel.get('position');\n\n const labelLineModel = itemModel.getModel('labelLine');\n\n const layout = data.getItemLayout(idx);\n const points = layout.points;\n\n const isLabelInside = labelPosition === 'inner'\n || labelPosition === 'inside' || labelPosition === 'center'\n || labelPosition === 'insideLeft' || labelPosition === 'insideRight';\n\n let textAlign;\n let textX;\n let textY;\n let linePoints;\n\n if (isLabelInside) {\n if (labelPosition === 'insideLeft') {\n textX = (points[0][0] + points[3][0]) / 2 + 5;\n textY = (points[0][1] + points[3][1]) / 2;\n textAlign = 'left';\n }\n else if (labelPosition === 'insideRight') {\n textX = (points[1][0] + points[2][0]) / 2 - 5;\n textY = (points[1][1] + points[2][1]) / 2;\n textAlign = 'right';\n }\n else {\n textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;\n textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;\n textAlign = 'center';\n }\n linePoints = [\n [textX, textY], [textX, textY]\n ];\n }\n else {\n let x1;\n let y1;\n let x2;\n let y2;\n const labelLineLen = labelLineModel.get('length');\n if (__DEV__) {\n if (orient === 'vertical' && ['top', 'bottom'].indexOf(labelPosition as string) > -1) {\n labelPosition = 'left';\n console.warn('Position error: Funnel chart on vertical orient dose not support top and bottom.');\n }\n if (orient === 'horizontal' && ['left', 'right'].indexOf(labelPosition as string) > -1) {\n labelPosition = 'bottom';\n console.warn('Position error: Funnel chart on horizontal orient dose not support left and right.');\n }\n }\n if (labelPosition === 'left') {\n // Left side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n else if (labelPosition === 'right') {\n // Right side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n else if (labelPosition === 'top') {\n // Top side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else if (labelPosition === 'bottom') {\n // Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else if (labelPosition === 'rightTop') {\n // RightTop side\n x1 = orient === 'horizontal' ? points[3][0] : points[1][0];\n y1 = orient === 'horizontal' ? points[3][1] : points[1][1];\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'top';\n }\n }\n else if (labelPosition === 'rightBottom') {\n // RightBottom side\n x1 = points[2][0];\n y1 = points[2][1];\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'bottom';\n }\n }\n else if (labelPosition === 'leftTop') {\n // LeftTop side\n x1 = points[0][0];\n y1 = orient === 'horizontal' ? points[0][1] : points[1][1];\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n }\n else if (labelPosition === 'leftBottom') {\n // LeftBottom side\n x1 = orient === 'horizontal' ? points[1][0] : points[3][0];\n y1 = orient === 'horizontal' ? points[1][1] : points[2][1];\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n }\n else {\n // Right side or Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n }\n else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n }\n if (orient === 'horizontal') {\n x2 = x1;\n textX = x2;\n }\n else {\n y2 = y1;\n textY = y2;\n }\n linePoints = [[x1, y1], [x2, y2]];\n }\n\n layout.label = {\n linePoints: linePoints,\n x: textX,\n y: textY,\n verticalAlign: 'middle',\n textAlign: textAlign,\n inside: isLabelInside\n };\n });\n}\n\nexport default function funnelLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeriesByType('funnel', function (seriesModel: FunnelSeriesModel) {\n const data = seriesModel.getData();\n const valueDim = data.mapDimension('value');\n const sort = seriesModel.get('sort');\n const viewRect = getViewRect(seriesModel, api);\n const orient = seriesModel.get('orient');\n const viewWidth = viewRect.width;\n const viewHeight = viewRect.height;\n let indices = getSortedIndices(data, sort);\n let x = viewRect.x;\n let y = viewRect.y;\n\n const sizeExtent = orient === 'horizontal' ? [\n parsePercent(seriesModel.get('minSize'), viewHeight),\n parsePercent(seriesModel.get('maxSize'), viewHeight)\n ] : [\n parsePercent(seriesModel.get('minSize'), viewWidth),\n parsePercent(seriesModel.get('maxSize'), viewWidth)\n ];\n const dataExtent = data.getDataExtent(valueDim);\n let min = seriesModel.get('min');\n let max = seriesModel.get('max');\n if (min == null) {\n min = Math.min(dataExtent[0], 0);\n }\n if (max == null) {\n max = dataExtent[1];\n }\n\n const funnelAlign = seriesModel.get('funnelAlign');\n let gap = seriesModel.get('gap');\n const viewSize = orient === 'horizontal' ? viewWidth : viewHeight;\n let itemSize = (viewSize - gap * (data.count() - 1)) / data.count();\n\n const getLinePoints = function (idx: number, offset: number) {\n // End point index is data.count() and we assign it 0\n if (orient === 'horizontal') {\n const val = data.get(valueDim, idx) as number || 0;\n const itemHeight = linearMap(val, [min, max], sizeExtent, true);\n let y0;\n switch (funnelAlign) {\n case 'top':\n y0 = y;\n break;\n case 'center':\n y0 = y + (viewHeight - itemHeight) / 2;\n break;\n case 'bottom':\n y0 = y + (viewHeight - itemHeight);\n break;\n }\n\n return [\n [offset, y0],\n [offset, y0 + itemHeight]\n ];\n }\n const val = data.get(valueDim, idx) as number || 0;\n const itemWidth = linearMap(val, [min, max], sizeExtent, true);\n let x0;\n switch (funnelAlign) {\n case 'left':\n x0 = x;\n break;\n case 'center':\n x0 = x + (viewWidth - itemWidth) / 2;\n break;\n case 'right':\n x0 = x + viewWidth - itemWidth;\n break;\n }\n return [\n [x0, offset],\n [x0 + itemWidth, offset]\n ];\n };\n\n if (sort === 'ascending') {\n // From bottom to top\n itemSize = -itemSize;\n gap = -gap;\n if (orient === 'horizontal') {\n x += viewWidth;\n }\n else {\n y += viewHeight;\n }\n indices = indices.reverse();\n }\n\n for (let i = 0; i < indices.length; i++) {\n const idx = indices[i];\n const nextIdx = indices[i + 1];\n const itemModel = data.getItemModel(idx);\n\n if (orient === 'horizontal') {\n let width = itemModel.get(['itemStyle', 'width']);\n if (width == null) {\n width = itemSize;\n }\n else {\n width = parsePercent(width, viewWidth);\n if (sort === 'ascending') {\n width = -width;\n }\n }\n\n const start = getLinePoints(idx, x);\n const end = getLinePoints(nextIdx, x + width);\n\n x += width + gap;\n\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n else {\n let height = itemModel.get(['itemStyle', 'height']);\n if (height == null) {\n height = itemSize;\n }\n else {\n height = parsePercent(height, viewHeight);\n if (sort === 'ascending') {\n height = -height;\n }\n }\n\n const start = getLinePoints(idx, y);\n const end = getLinePoints(nextIdx, y + height);\n\n y += height + gap;\n\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n }\n\n labelLayout(data);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport FunnelView from './FunnelView';\nimport FunnelSeriesModel from './FunnelSeries';\nimport funnelLayout from './funnelLayout';\nimport dataFilter from '../../processor/dataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(FunnelView);\n registers.registerSeriesModel(FunnelSeriesModel);\n registers.registerLayout(funnelLayout);\n registers.registerProcessor(dataFilter('funnel'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport SeriesData from '../../data/SeriesData';\nimport ParallelSeriesModel, { ParallelSeriesDataItemOption } from './ParallelSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { StageHandlerProgressParams, ParsedValue, Payload } from '../../util/types';\nimport Parallel from '../../coord/parallel/Parallel';\nimport { OptionAxisType } from '../../coord/axisCommonTypes';\nimport { numericToNumber } from '../../util/number';\nimport { eqNaN } from 'zrender/src/core/util';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst DEFAULT_SMOOTH = 0.3;\n\ninterface ParallelDrawSeriesScope {\n smooth: number\n}\nclass ParallelView extends ChartView {\n static type = 'parallel';\n type = ParallelView.type;\n\n private _dataGroup = new graphic.Group();\n\n private _data: SeriesData;\n\n private _initialized = false;\n\n init() {\n this.group.add(this._dataGroup);\n }\n\n /**\n * @override\n */\n render(\n seriesModel: ParallelSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n const dataGroup = this._dataGroup;\n const data = seriesModel.getData();\n const oldData = this._data;\n const coordSys = seriesModel.coordinateSystem;\n const dimensions = coordSys.dimensions;\n const seriesScope = makeSeriesScope(seriesModel);\n\n data.diff(oldData)\n .add(add)\n .update(update)\n .remove(remove)\n .execute();\n\n function add(newDataIndex: number) {\n const line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function update(newDataIndex: number, oldDataIndex: number) {\n const line = oldData.getItemGraphicEl(oldDataIndex) as graphic.Polyline;\n\n const points = createLinePoints(data, newDataIndex, dimensions, coordSys);\n data.setItemGraphicEl(newDataIndex, line);\n\n graphic.updateProps(line, {shape: {points: points}}, seriesModel, newDataIndex);\n\n saveOldStyle(line);\n\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function remove(oldDataIndex: number) {\n const line = oldData.getItemGraphicEl(oldDataIndex);\n dataGroup.remove(line);\n }\n\n // First create\n if (!this._initialized) {\n this._initialized = true;\n const clipPath = createGridClipShape(\n coordSys, seriesModel, function () {\n // Callback will be invoked immediately if there is no animation\n setTimeout(function () {\n dataGroup.removeClipPath();\n });\n }\n );\n dataGroup.setClipPath(clipPath);\n }\n\n this._data = data;\n }\n\n incrementalPrepareRender(seriesModel: ParallelSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._initialized = true;\n this._data = null;\n this._dataGroup.removeAll();\n }\n\n incrementalRender(taskParams: StageHandlerProgressParams, seriesModel: ParallelSeriesModel, ecModel: GlobalModel) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n const dimensions = coordSys.dimensions;\n const seriesScope = makeSeriesScope(seriesModel);\n\n for (let dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) {\n const line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys);\n line.incremental = true;\n updateElCommon(line, data, dataIndex, seriesScope);\n }\n }\n\n remove() {\n this._dataGroup && this._dataGroup.removeAll();\n this._data = null;\n }\n}\n\nfunction createGridClipShape(coordSys: Parallel, seriesModel: ParallelSeriesModel, cb: () => void) {\n const parallelModel = coordSys.model;\n const rect = coordSys.getRect();\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n\n const dim = parallelModel.get('layout') === 'horizontal' ? 'width' as const : 'height' as const;\n rectEl.setShape(dim, 0);\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width,\n height: rect.height\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nfunction createLinePoints(data: SeriesData, dataIndex: number, dimensions: string[], coordSys: Parallel) {\n const points = [];\n for (let i = 0; i < dimensions.length; i++) {\n const dimName = dimensions[i];\n const value = data.get(data.mapDimension(dimName), dataIndex);\n if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {\n points.push(coordSys.dataToPoint(value, dimName));\n }\n }\n return points;\n}\n\nfunction addEl(data: SeriesData, dataGroup: graphic.Group, dataIndex: number, dimensions: string[], coordSys: Parallel) {\n const points = createLinePoints(data, dataIndex, dimensions, coordSys);\n const line = new graphic.Polyline({\n shape: {points: points},\n // silent: true,\n z2: 10\n });\n dataGroup.add(line);\n data.setItemGraphicEl(dataIndex, line);\n return line;\n}\n\nfunction makeSeriesScope(seriesModel: ParallelSeriesModel): ParallelDrawSeriesScope {\n let smooth = seriesModel.get('smooth', true);\n smooth === true && (smooth = DEFAULT_SMOOTH);\n smooth = numericToNumber(smooth);\n eqNaN(smooth) && (smooth = 0);\n\n return { smooth };\n}\n\nfunction updateElCommon(\n el: graphic.Polyline,\n data: SeriesData,\n dataIndex: number,\n seriesScope: ParallelDrawSeriesScope\n) {\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.fill = null;\n el.setShape('smooth', seriesScope.smooth);\n\n const itemModel = data.getItemModel(dataIndex);\n const emphasisModel = itemModel.getModel('emphasis');\n setStatesStylesFromModel(el, itemModel, 'lineStyle');\n\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n}\n\n// function simpleDiff(oldData, newData, dimensions) {\n// let oldLen;\n// if (!oldData\n// || !oldData.__plProgressive\n// || (oldLen = oldData.count()) !== newData.count()\n// ) {\n// return true;\n// }\n\n// let dimLen = dimensions.length;\n// for (let i = 0; i < oldLen; i++) {\n// for (let j = 0; j < dimLen; j++) {\n// if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {\n// return true;\n// }\n// }\n// }\n\n// return false;\n// }\n\n// FIXME put in common util?\nfunction isEmptyValue(val: ParsedValue, axisType: OptionAxisType) {\n return axisType === 'category'\n ? val == null\n : (val == null || isNaN(val as number)); // axisType === 'value'\n}\n\nexport default ParallelView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {each, bind} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport {\n SeriesOption,\n SeriesEncodeOptionMixin,\n LineStyleOption,\n SeriesLabelOption,\n SeriesTooltipOption,\n DimensionName,\n OptionDataValue,\n StatesOptionMixin,\n OptionEncodeValue,\n Dictionary,\n OptionEncode\n } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { ParallelActiveState, ParallelAxisOption } from '../../coord/parallel/AxisModel';\nimport Parallel from '../../coord/parallel/Parallel';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\n\ntype ParallelSeriesDataValue = OptionDataValue[];\n\nexport interface ParallelStateOption {\n lineStyle?: LineStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface ParallelSeriesDataItemOption extends ParallelStateOption, StatesOptionMixin {\n value?: ParallelSeriesDataValue[]\n}\n\nexport interface ParallelSeriesOption extends\n SeriesOption, ParallelStateOption,\n SeriesEncodeOptionMixin {\n\n type?: 'parallel';\n\n coordinateSystem?: string;\n parallelIndex?: number;\n parallelId?: string;\n\n inactiveOpacity?: number;\n activeOpacity?: number;\n\n smooth?: boolean | number;\n realtime?: boolean;\n tooltip?: SeriesTooltipOption;\n\n parallelAxisDefault?: ParallelAxisOption;\n\n emphasis?: {\n label?: SeriesLabelOption;\n lineStyle?: LineStyleOption;\n }\n\n data?: (ParallelSeriesDataValue | ParallelSeriesDataItemOption)[]\n}\n\nclass ParallelSeriesModel extends SeriesModel {\n\n static type = 'series.parallel';\n readonly type = ParallelSeriesModel.type;\n\n static dependencies = ['parallel'];\n\n visualStyleAccessPath = 'lineStyle';\n visualDrawType = 'stroke' as const;\n\n coordinateSystem: Parallel;\n\n\n getInitialData(this: ParallelSeriesModel, option: ParallelSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n useEncodeDefaulter: bind(makeDefaultEncode, null, this)\n });\n }\n\n /**\n * User can get data raw indices on 'axisAreaSelected' event received.\n *\n * @return Raw indices\n */\n getRawIndicesByActiveState(activeState: ParallelActiveState): number[] {\n const coordSys = this.coordinateSystem;\n const data = this.getData();\n const indices = [] as number[];\n\n coordSys.eachActiveState(data, function (theActiveState, dataIndex) {\n if (activeState === theActiveState) {\n indices.push(data.getRawIndex(dataIndex));\n }\n });\n\n return indices;\n }\n\n static defaultOption: ParallelSeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'parallel',\n parallelIndex: 0,\n\n label: {\n show: false\n },\n\n inactiveOpacity: 0.05,\n activeOpacity: 1,\n\n lineStyle: {\n width: 1,\n opacity: 0.45,\n type: 'solid'\n },\n emphasis: {\n label: {\n show: false\n }\n },\n\n progressive: 500,\n smooth: false, // true | false | number\n\n animationEasing: 'linear'\n };\n\n}\n\nfunction makeDefaultEncode(seriesModel: ParallelSeriesModel): OptionEncode {\n // The mapping of parallelAxis dimension to data dimension can\n // be specified in parallelAxis.option.dim. For example, if\n // parallelAxis.option.dim is 'dim3', it mapping to the third\n // dimension of data. But `data.encode` has higher priority.\n // Moreover, parallelModel.dimension should not be regarded as data\n // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];\n\n const parallelModel = seriesModel.ecModel.getComponent(\n 'parallel', seriesModel.get('parallelIndex')\n ) as ParallelModel;\n if (!parallelModel) {\n return;\n }\n\n const encodeDefine: Dictionary = {};\n each(parallelModel.dimensions, function (axisDim) {\n const dataDimIndex = convertDimNameToNumber(axisDim);\n encodeDefine[axisDim] = dataDimIndex;\n });\n\n return encodeDefine;\n}\n\nfunction convertDimNameToNumber(dimName: DimensionName): number {\n return +dimName.replace('dim', '');\n}\n\nexport default ParallelSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport ParallelSeriesModel, { ParallelSeriesOption } from './ParallelSeries';\nimport { StageHandler } from '../../util/types';\n\n\nconst opacityAccessPath = ['lineStyle', 'opacity'] as const;\n\nconst parallelVisual: StageHandler = {\n\n seriesType: 'parallel',\n\n reset: function (seriesModel: ParallelSeriesModel, ecModel) {\n\n const coordSys = seriesModel.coordinateSystem;\n\n const opacityMap = {\n normal: seriesModel.get(['lineStyle', 'opacity']),\n active: seriesModel.get('activeOpacity'),\n inactive: seriesModel.get('inactiveOpacity')\n };\n\n return {\n progress(params, data) {\n coordSys.eachActiveState(data, function (activeState, dataIndex) {\n let opacity = opacityMap[activeState];\n if (activeState === 'normal' && data.hasItemOption) {\n const itemOpacity = data.getItemModel(dataIndex).get(\n opacityAccessPath, true\n );\n itemOpacity != null && (opacity = itemOpacity);\n }\n const existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n existsStyle.opacity = opacity;\n }, params.start, params.end);\n }\n };\n }\n};\n\nexport default parallelVisual;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport { ECUnitOption, SeriesOption } from '../../util/types';\nimport { ParallelAxisOption } from './AxisModel';\nimport { ParallelSeriesOption } from '../../chart/parallel/ParallelSeries';\n\nexport default function parallelPreprocessor(option: ECUnitOption): void {\n createParallelIfNeeded(option);\n mergeAxisOptionFromParallel(option);\n}\n\n/**\n * Create a parallel coordinate if not exists.\n * @inner\n */\nfunction createParallelIfNeeded(option: ECUnitOption): void {\n if (option.parallel) {\n return;\n }\n\n let hasParallelSeries = false;\n\n zrUtil.each(option.series, function (seriesOpt: SeriesOption) {\n if (seriesOpt && seriesOpt.type === 'parallel') {\n hasParallelSeries = true;\n }\n });\n\n if (hasParallelSeries) {\n option.parallel = [{}];\n }\n}\n\n/**\n * Merge aixs definition from parallel option (if exists) to axis option.\n * @inner\n */\nfunction mergeAxisOptionFromParallel(option: ECUnitOption): void {\n const axes = modelUtil.normalizeToArray(option.parallelAxis) as ParallelAxisOption[];\n\n zrUtil.each(axes, function (axisOption) {\n if (!zrUtil.isObject(axisOption)) {\n return;\n }\n\n const parallelIndex = axisOption.parallelIndex || 0;\n const parallelOption = modelUtil.normalizeToArray(option.parallel)[parallelIndex] as ParallelSeriesOption;\n\n if (parallelOption && parallelOption.parallelAxisDefault) {\n zrUtil.merge(axisOption, parallelOption.parallelAxisDefault, false);\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport ParallelModel, { ParallelCoordinateSystemOption } from '../../coord/parallel/ParallelModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ComponentView from '../../view/Component';\nimport { ElementEventName } from 'zrender/src/core/types';\nimport { ElementEvent } from 'zrender/src/Element';\nimport { ParallelAxisExpandPayload } from '../axis/parallelAxisAction';\nimport { each, bind, extend } from 'zrender/src/core/util';\nimport { ThrottleController, createOrUpdate } from '../../util/throttle';\n\nconst CLICK_THRESHOLD = 5; // > 4\n\nclass ParallelView extends ComponentView {\n static type = 'parallel';\n readonly type = ParallelView.type;\n // @internal\n _model: ParallelModel;\n private _api: ExtensionAPI;\n // @internal\n _mouseDownPoint: number[];\n private _handlers: Partial>;\n render(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n this._model = parallelModel;\n this._api = api;\n if (!this._handlers) {\n this._handlers = {};\n each(handlers, function (handler: ElementEventHandler, eventName) {\n api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this) as ElementEventHandler);\n }, this);\n }\n createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');\n }\n dispose(ecModel: GlobalModel, api: ExtensionAPI): void {\n each(this._handlers, function (handler: ElementEventHandler, eventName) {\n api.getZr().off(eventName, handler);\n });\n this._handlers = null;\n }\n /**\n * @internal\n * @param {Object} [opt] If null, cancle the last action triggering for debounce.\n */\n _throttledDispatchExpand(this: ParallelView, opt: Omit): void {\n this._dispatchExpand(opt);\n }\n /**\n * @internal\n */\n _dispatchExpand(opt: Omit) {\n opt && this._api.dispatchAction(extend({ type: 'parallelAxisExpand' }, opt));\n }\n}\ntype ElementEventHandler = (this: ParallelView, e: ElementEvent) => void;\nconst handlers: Partial> = {\n mousedown: function (e) {\n if (checkTrigger(this, 'click')) {\n this._mouseDownPoint = [e.offsetX, e.offsetY];\n }\n },\n mouseup: function (e) {\n const mouseDownPoint = this._mouseDownPoint;\n if (checkTrigger(this, 'click') && mouseDownPoint) {\n const point = [e.offsetX, e.offsetY];\n const dist = Math.pow(mouseDownPoint[0] - point[0], 2)\n + Math.pow(mouseDownPoint[1] - point[1], 2);\n if (dist > CLICK_THRESHOLD) {\n return;\n }\n const result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n result.behavior !== 'none' && this._dispatchExpand({\n axisExpandWindow: result.axisExpandWindow\n });\n }\n this._mouseDownPoint = null;\n },\n mousemove: function (e) {\n // Should do nothing when brushing.\n if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {\n return;\n }\n const model = this._model;\n const result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n const behavior = result.behavior;\n behavior === 'jump'\n && (this._throttledDispatchExpand as ParallelView['_throttledDispatchExpand'] & ThrottleController)\n .debounceNextCall(model.get('axisExpandDebounce'));\n this._throttledDispatchExpand(behavior === 'none'\n ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.\n : {\n axisExpandWindow: result.axisExpandWindow,\n // Jumping uses animation, and sliding suppresses animation.\n animation: behavior === 'jump' ? null : {\n duration: 0 // Disable animation.\n }\n });\n }\n};\nfunction checkTrigger(view: ParallelView, triggerOn: ParallelCoordinateSystemOption['axisExpandTriggerOn']): boolean {\n const model = view._model;\n return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;\n}\n\nexport default ParallelView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport Parallel from './Parallel';\nimport { DimensionName, ComponentOption, BoxLayoutOptionMixin } from '../../util/types';\nimport ParallelAxisModel, { ParallelAxisOption } from './AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport SeriesModel from '../../model/Series';\n\n\nexport type ParallelLayoutDirection = 'horizontal' | 'vertical';\n\nexport interface ParallelCoordinateSystemOption extends ComponentOption, BoxLayoutOptionMixin {\n mainType?: 'parallel';\n\n layout?: ParallelLayoutDirection;\n\n axisExpandable?: boolean;\n axisExpandCenter?: number;\n axisExpandCount?: number;\n axisExpandWidth?: number; // TODO '10%' ?\n axisExpandTriggerOn?: 'click' | 'mousemove';\n\n // Not ready to expose to users yet.\n axisExpandRate?: number;\n // Not ready to expose to users yet.\n axisExpandDebounce?: number;\n // Not ready to expose to users yet.\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea?: [number, number, number];\n // Not ready to expose to users yet.\n axisExpandWindow?: number[];\n\n parallelAxisDefault?: ParallelAxisOption\n}\n\nclass ParallelModel extends ComponentModel {\n\n static type = 'parallel';\n readonly type = ParallelModel.type;\n\n static dependencies = ['parallelAxis'];\n\n coordinateSystem: Parallel;\n\n /**\n * Each item like: 'dim0', 'dim1', 'dim2', ...\n */\n dimensions: DimensionName[];\n\n /**\n * Coresponding to dimensions.\n */\n parallelAxisIndex: number[];\n\n static layoutMode = 'box' as const;\n\n static defaultOption: ParallelCoordinateSystemOption = {\n zlevel: 0,\n z: 0,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n\n layout: 'horizontal', // 'horizontal' or 'vertical'\n\n // FIXME\n // naming?\n axisExpandable: false,\n axisExpandCenter: null,\n axisExpandCount: 0,\n axisExpandWidth: 50, // FIXME '10%' ?\n axisExpandRate: 17,\n axisExpandDebounce: 50,\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],\n axisExpandTriggerOn: 'click', // 'mousemove' or 'click'\n\n parallelAxisDefault: null\n };\n\n init() {\n super.init.apply(this, arguments as any);\n this.mergeOption({});\n }\n\n mergeOption(newOption: ParallelCoordinateSystemOption) {\n const thisOption = this.option;\n\n newOption && zrUtil.merge(thisOption, newOption, true);\n\n this._initDimensions();\n }\n\n /**\n * Whether series or axis is in this coordinate system.\n */\n contains(model: SeriesModel | ParallelAxisModel, ecModel: GlobalModel): boolean {\n const parallelIndex = (model as ParallelSeriesModel).get('parallelIndex');\n return parallelIndex != null\n && ecModel.getComponent('parallel', parallelIndex) === this;\n }\n\n setAxisExpand(opt: {\n axisExpandable?: boolean,\n axisExpandCenter?: number,\n axisExpandCount?: number,\n axisExpandWidth?: number,\n axisExpandWindow?: number[]\n }): void {\n zrUtil.each(\n [\n 'axisExpandable',\n 'axisExpandCenter',\n 'axisExpandCount',\n 'axisExpandWidth',\n 'axisExpandWindow'\n ] as const,\n function (name) {\n if (opt.hasOwnProperty(name)) {\n // @ts-ignore FIXME: why \"never\" inferred in this.option[name]?\n this.option[name] = opt[name];\n }\n },\n this\n );\n }\n\n private _initDimensions(): void {\n const dimensions = this.dimensions = [] as DimensionName[];\n const parallelAxisIndex = this.parallelAxisIndex = [] as number[];\n\n const axisModels = zrUtil.filter(\n this.ecModel.queryComponents({ mainType: 'parallelAxis' }),\n function (axisModel: ParallelAxisModel) {\n // Can not use this.contains here, because\n // initialization has not been completed yet.\n return (axisModel.get('parallelIndex') || 0) === this.componentIndex;\n },\n this\n );\n\n zrUtil.each(axisModels, function (axisModel: ParallelAxisModel) {\n dimensions.push('dim' + axisModel.get('dim'));\n parallelAxisIndex.push(axisModel.componentIndex);\n });\n }\n\n}\n\nexport default ParallelModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { DimensionName } from '../../util/types';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport AxisModel from './AxisModel';\nimport Parallel from './Parallel';\n\n\nclass ParallelAxis extends Axis {\n\n readonly axisIndex: number;\n\n // Inject\n model: AxisModel;\n coordinateSystem: Parallel;\n\n constructor(\n dim: DimensionName,\n scale: Scale,\n coordExtent: [number, number],\n axisType: OptionAxisType,\n axisIndex: number\n ) {\n super(dim, scale, coordExtent);\n\n this.type = axisType || 'value';\n this.axisIndex = axisIndex;\n }\n\n isHorizontal(): boolean {\n return this.coordinateSystem.getModel().get('layout') !== 'horizontal';\n }\n\n}\n\nexport default ParallelAxis;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Calculate slider move result.\n * Usage:\n * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as\n * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.\n * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.\n *\n * @param delta Move length.\n * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].\n * handleEnds will be modified in this method.\n * @param extent handleEnds is restricted by extent.\n * extent[0] should less or equals than extent[1].\n * @param handleIndex Can be 'all', means that both move the two handleEnds.\n * @param minSpan The range of dataZoom can not be smaller than that.\n * If not set, handle0 and cross handle1. If set as a non-negative\n * number (including `0`), handles will push each other when reaching\n * the minSpan.\n * @param maxSpan The range of dataZoom can not be larger than that.\n * @return The input handleEnds.\n */\nexport default function sliderMove(\n delta: number,\n handleEnds: number[],\n extent: number[],\n handleIndex: 'all' | 0 | 1,\n minSpan?: number,\n maxSpan?: number\n): number[] {\n\n delta = delta || 0;\n\n const extentSpan = extent[1] - extent[0];\n\n // Notice maxSpan and minSpan can be null/undefined.\n if (minSpan != null) {\n minSpan = restrict(minSpan, [0, extentSpan]);\n }\n if (maxSpan != null) {\n maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);\n }\n if (handleIndex === 'all') {\n let handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);\n handleSpan = restrict(handleSpan, [0, extentSpan]);\n minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]);\n handleIndex = 0;\n }\n\n handleEnds[0] = restrict(handleEnds[0], extent);\n handleEnds[1] = restrict(handleEnds[1], extent);\n\n const originalDistSign = getSpanSign(handleEnds, handleIndex);\n\n handleEnds[handleIndex] += delta;\n\n // Restrict in extent.\n const extentMinSpan = minSpan || 0;\n const realExtent = extent.slice();\n originalDistSign.sign < 0 ? (realExtent[0] += extentMinSpan) : (realExtent[1] -= extentMinSpan);\n handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent);\n\n // Expand span.\n let currDistSign;\n currDistSign = getSpanSign(handleEnds, handleIndex);\n if (minSpan != null && (\n currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan\n )) {\n // If minSpan exists, 'cross' is forbidden.\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;\n }\n\n // Shrink span.\n currDistSign = getSpanSign(handleEnds, handleIndex);\n if (maxSpan != null && currDistSign.span > maxSpan) {\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;\n }\n\n return handleEnds;\n}\n\nfunction getSpanSign(handleEnds: number[], handleIndex: 0 | 1) {\n const dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex];\n // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]\n // is at left of handleEnds[1] for non-cross case.\n return {span: Math.abs(dist), sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1};\n}\n\nfunction restrict(value: number, extend: number[]) {\n return Math.min(\n extend[1] != null ? extend[1] : Infinity,\n Math.max(extend[0] != null ? extend[0] : -Infinity, value)\n );\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Parallel Coordinates\n * \n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as layoutUtil from '../../util/layout';\nimport * as axisHelper from '../../coord/axisHelper';\nimport ParallelAxis from './ParallelAxis';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../../component/helper/sliderMove';\nimport ParallelModel, { ParallelLayoutDirection } from './ParallelModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary, DimensionName, ScaleDataValue } from '../../util/types';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport ParallelAxisModel, { ParallelActiveState } from './AxisModel';\nimport SeriesData from '../../data/SeriesData';\n\nconst each = zrUtil.each;\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathFloor = Math.floor;\nconst mathCeil = Math.ceil;\nconst round = numberUtil.round;\nconst PI = Math.PI;\n\ninterface ParallelCoordinateSystemLayoutInfo {\n layout: ParallelLayoutDirection;\n pixelDimIndex: number;\n layoutBase: number;\n layoutLength: number;\n axisBase: number;\n axisLength: number;\n axisExpandable: boolean;\n axisExpandWidth: number;\n axisCollapseWidth: number;\n axisExpandWindow: number[];\n axisCount: number;\n winInnerIndices: number[];\n axisExpandWindow0Pos: number;\n}\n\nexport interface ParallelAxisLayoutInfo {\n position: number[];\n rotation: number;\n transform: matrix.MatrixArray;\n axisNameAvailableWidth: number;\n axisLabelShow: boolean;\n nameTruncateMaxWidth: number;\n tickDirection: -1 | 1;\n labelDirection: -1 | 1;\n}\n\ntype SlidedAxisExpandBehavior = 'none' | 'slide' | 'jump';\n\nclass Parallel implements CoordinateSystemMaster, CoordinateSystem {\n\n readonly type = 'parallel';\n\n /**\n * key: dimension\n */\n private _axesMap = zrUtil.createHashMap();\n\n /**\n * key: dimension\n * value: {position: [], rotation, }\n */\n private _axesLayout: Dictionary = {};\n\n /**\n * Always follow axis order.\n */\n readonly dimensions: ParallelModel['dimensions'];\n\n private _rect: graphic.BoundingRect;\n\n private _model: ParallelModel;\n\n // Inject\n name: string;\n model: ParallelModel;\n\n\n constructor(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.dimensions = parallelModel.dimensions;\n this._model = parallelModel;\n\n this._init(parallelModel, ecModel, api);\n }\n\n private _init(parallelModel: ParallelModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n\n const dimensions = parallelModel.dimensions;\n const parallelAxisIndex = parallelModel.parallelAxisIndex;\n\n each(dimensions, function (dim, idx) {\n\n const axisIndex = parallelAxisIndex[idx];\n const axisModel = ecModel.getComponent('parallelAxis', axisIndex) as ParallelAxisModel;\n\n const axis = this._axesMap.set(dim, new ParallelAxis(\n dim,\n axisHelper.createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisIndex\n ));\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n\n // Injection\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = axisModel.coordinateSystem = this;\n\n }, this);\n }\n\n /**\n * Update axis scale after data processed\n */\n update(ecModel: GlobalModel, api: ExtensionAPI): void {\n this._updateAxesFromSeries(this._model, ecModel);\n }\n\n containPoint(point: number[]): boolean {\n const layoutInfo = this._makeLayoutInfo();\n const axisBase = layoutInfo.axisBase;\n const layoutBase = layoutInfo.layoutBase;\n const pixelDimIndex = layoutInfo.pixelDimIndex;\n const pAxis = point[1 - pixelDimIndex];\n const pLayout = point[pixelDimIndex];\n\n return pAxis >= axisBase\n && pAxis <= axisBase + layoutInfo.axisLength\n && pLayout >= layoutBase\n && pLayout <= layoutBase + layoutInfo.layoutLength;\n }\n\n getModel(): ParallelModel {\n return this._model;\n }\n\n /**\n * Update properties from series\n */\n private _updateAxesFromSeries(parallelModel: ParallelModel, ecModel: GlobalModel): void {\n ecModel.eachSeries(function (seriesModel) {\n\n if (!parallelModel.contains(seriesModel, ecModel)) {\n return;\n }\n\n const data = seriesModel.getData();\n\n each(this.dimensions, function (dim) {\n const axis = this._axesMap.get(dim);\n axis.scale.unionExtentFromData(data, data.mapDimension(dim));\n axisHelper.niceScaleExtent(axis.scale, axis.model);\n }, this);\n }, this);\n }\n\n /**\n * Resize the parallel coordinate system.\n */\n resize(parallelModel: ParallelModel, api: ExtensionAPI): void {\n this._rect = layoutUtil.getLayoutRect(\n parallelModel.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n this._layoutAxes();\n }\n\n getRect(): graphic.BoundingRect {\n return this._rect;\n }\n\n private _makeLayoutInfo(): ParallelCoordinateSystemLayoutInfo {\n const parallelModel = this._model;\n const rect = this._rect;\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n const layout = parallelModel.get('layout');\n const pixelDimIndex = layout === 'horizontal' ? 0 : 1;\n const layoutLength = rect[wh[pixelDimIndex]];\n const layoutExtent = [0, layoutLength];\n const axisCount = this.dimensions.length;\n\n const axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent);\n const axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);\n const axisExpandable = parallelModel.get('axisExpandable')\n && axisCount > 3\n && axisCount > axisExpandCount\n && axisExpandCount > 1\n && axisExpandWidth > 0\n && layoutLength > 0;\n\n // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],\n // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),\n // where collapsed axes should be overlapped.\n let axisExpandWindow = parallelModel.get('axisExpandWindow');\n let winSize;\n if (!axisExpandWindow) {\n winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);\n const axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor(axisCount / 2);\n axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n else {\n winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n\n let axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount);\n // Avoid axisCollapseWidth is too small.\n axisCollapseWidth < 3 && (axisCollapseWidth = 0);\n\n // Find the first and last indices > ewin[0] and < ewin[1].\n const winInnerIndices = [\n mathFloor(round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1,\n mathCeil(round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1\n ];\n\n // Pos in ec coordinates.\n const axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];\n\n return {\n layout: layout,\n pixelDimIndex: pixelDimIndex,\n layoutBase: rect[xy[pixelDimIndex]],\n layoutLength: layoutLength,\n axisBase: rect[xy[1 - pixelDimIndex]],\n axisLength: rect[wh[1 - pixelDimIndex]],\n axisExpandable: axisExpandable,\n axisExpandWidth: axisExpandWidth,\n axisCollapseWidth: axisCollapseWidth,\n axisExpandWindow: axisExpandWindow,\n axisCount: axisCount,\n winInnerIndices: winInnerIndices,\n axisExpandWindow0Pos: axisExpandWindow0Pos\n };\n }\n\n private _layoutAxes(): void {\n const rect = this._rect;\n const axes = this._axesMap;\n const dimensions = this.dimensions;\n const layoutInfo = this._makeLayoutInfo();\n const layout = layoutInfo.layout;\n\n axes.each(function (axis) {\n const axisExtent = [0, layoutInfo.axisLength];\n const idx = axis.inverse ? 1 : 0;\n axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);\n });\n\n each(dimensions, function (dim, idx) {\n const posInfo = (layoutInfo.axisExpandable\n ? layoutAxisWithExpand : layoutAxisWithoutExpand\n )(idx, layoutInfo);\n\n const positionTable = {\n horizontal: {\n x: posInfo.position,\n y: layoutInfo.axisLength\n },\n vertical: {\n x: 0,\n y: posInfo.position\n }\n };\n const rotationTable = {\n horizontal: PI / 2,\n vertical: 0\n };\n\n const position = [\n positionTable[layout].x + rect.x,\n positionTable[layout].y + rect.y\n ];\n\n const rotation = rotationTable[layout];\n const transform = matrix.create();\n matrix.rotate(transform, transform, rotation);\n matrix.translate(transform, transform, position);\n\n // TODO\n // tick layout info\n\n // TODO\n // update dimensions info based on axis order.\n\n this._axesLayout[dim] = {\n position: position,\n rotation: rotation,\n transform: transform,\n axisNameAvailableWidth: posInfo.axisNameAvailableWidth,\n axisLabelShow: posInfo.axisLabelShow,\n nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,\n tickDirection: 1,\n labelDirection: 1\n };\n }, this);\n }\n\n /**\n * Get axis by dim.\n */\n getAxis(dim: DimensionName): ParallelAxis {\n return this._axesMap.get(dim);\n }\n\n /**\n * Convert a dim value of a single item of series data to Point.\n */\n dataToPoint(value: ScaleDataValue, dim: DimensionName): number[] {\n return this.axisCoordToPoint(\n this._axesMap.get(dim).dataToCoord(value),\n dim\n );\n }\n\n /**\n * Travel data for one time, get activeState of each data item.\n * @param start the start dataIndex that travel from.\n * @param end the next dataIndex of the last dataIndex will be travel.\n */\n eachActiveState(\n data: SeriesData,\n callback: (activeState: ParallelActiveState, dataIndex: number) => void,\n start?: number,\n end?: number\n ): void {\n start == null && (start = 0);\n end == null && (end = data.count());\n\n const axesMap = this._axesMap;\n const dimensions = this.dimensions;\n const dataDimensions = [] as DimensionName[];\n const axisModels = [] as ParallelAxisModel[];\n\n zrUtil.each(dimensions, function (axisDim) {\n dataDimensions.push(data.mapDimension(axisDim));\n axisModels.push(axesMap.get(axisDim).model);\n });\n\n const hasActiveSet = this.hasAxisBrushed();\n\n for (let dataIndex = start; dataIndex < end; dataIndex++) {\n let activeState: ParallelActiveState;\n\n if (!hasActiveSet) {\n activeState = 'normal';\n }\n else {\n activeState = 'active';\n const values = data.getValues(dataDimensions, dataIndex);\n for (let j = 0, lenj = dimensions.length; j < lenj; j++) {\n const state = axisModels[j].getActiveState(values[j]);\n\n if (state === 'inactive') {\n activeState = 'inactive';\n break;\n }\n }\n }\n\n callback(activeState, dataIndex);\n }\n }\n\n /**\n * Whether has any activeSet.\n */\n hasAxisBrushed(): boolean {\n const dimensions = this.dimensions;\n const axesMap = this._axesMap;\n let hasActiveSet = false;\n\n for (let j = 0, lenj = dimensions.length; j < lenj; j++) {\n if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {\n hasActiveSet = true;\n }\n }\n\n return hasActiveSet;\n }\n\n /**\n * Convert coords of each axis to Point.\n * Return point. For example: [10, 20]\n */\n axisCoordToPoint(coord: number, dim: DimensionName): number[] {\n const axisLayout = this._axesLayout[dim];\n return graphic.applyTransform([coord, 0], axisLayout.transform);\n }\n\n /**\n * Get axis layout.\n */\n getAxisLayout(dim: DimensionName): ParallelAxisLayoutInfo {\n return zrUtil.clone(this._axesLayout[dim]);\n }\n\n /**\n * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.\n */\n getSlidedAxisExpandWindow(point: number[]): {\n axisExpandWindow: number[],\n behavior: SlidedAxisExpandBehavior\n } {\n const layoutInfo = this._makeLayoutInfo();\n const pixelDimIndex = layoutInfo.pixelDimIndex;\n let axisExpandWindow = layoutInfo.axisExpandWindow.slice();\n const winSize = axisExpandWindow[1] - axisExpandWindow[0];\n const extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)];\n\n // Out of the area of coordinate system.\n if (!this.containPoint(point)) {\n return {behavior: 'none', axisExpandWindow: axisExpandWindow};\n }\n\n // Conver the point from global to expand coordinates.\n const pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos;\n\n // For dragging operation convenience, the window should not be\n // slided when mouse is the center area of the window.\n let delta;\n let behavior: SlidedAxisExpandBehavior = 'slide';\n const axisCollapseWidth = layoutInfo.axisCollapseWidth;\n const triggerArea = this._model.get('axisExpandSlideTriggerArea');\n // But consider touch device, jump is necessary.\n const useJump = triggerArea[0] != null;\n\n if (axisCollapseWidth) {\n if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {\n behavior = 'jump';\n delta = pointCoord - winSize * triggerArea[2];\n }\n else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {\n behavior = 'jump';\n delta = pointCoord - winSize * (1 - triggerArea[2]);\n }\n else {\n (delta = pointCoord - winSize * triggerArea[1]) >= 0\n && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0\n && (delta = 0);\n }\n delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;\n delta\n ? sliderMove(delta, axisExpandWindow, extent, 'all')\n // Avoid nonsense triger on mousemove.\n : (behavior = 'none');\n }\n // When screen is too narrow, make it visible and slidable, although it is hard to interact.\n else {\n const winSize2 = axisExpandWindow[1] - axisExpandWindow[0];\n const pos = extent[1] * pointCoord / winSize2;\n axisExpandWindow = [mathMax(0, pos - winSize2 / 2)];\n axisExpandWindow[1] = mathMin(extent[1], axisExpandWindow[0] + winSize2);\n axisExpandWindow[0] = axisExpandWindow[1] - winSize2;\n }\n\n return {\n axisExpandWindow: axisExpandWindow,\n behavior: behavior\n };\n }\n\n // TODO\n // convertToPixel\n // convertFromPixel\n // Note:\n // (1) Consider Parallel, the return type of `convertToPixel` could be number[][] (Point[]).\n // (2) In parallel coord sys, how to make `convertFromPixel` make sense?\n // Perhaps convert a point based on \"a rensent most axis\" is more meaningful rather than based on all axes?\n}\n\n\nfunction restrict(len: number, extent: number[]): number {\n return mathMin(mathMax(len, extent[0]), extent[1]);\n}\n\ninterface ParallelAxisLayoutPositionInfo {\n position: number;\n axisNameAvailableWidth: number;\n axisLabelShow: boolean;\n nameTruncateMaxWidth?: number;\n}\n\nfunction layoutAxisWithoutExpand(\n axisIndex: number,\n layoutInfo: ParallelCoordinateSystemLayoutInfo\n): ParallelAxisLayoutPositionInfo {\n const step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);\n return {\n position: step * axisIndex,\n axisNameAvailableWidth: step,\n axisLabelShow: true\n };\n}\n\nfunction layoutAxisWithExpand(\n axisIndex: number,\n layoutInfo: ParallelCoordinateSystemLayoutInfo\n): ParallelAxisLayoutPositionInfo {\n const layoutLength = layoutInfo.layoutLength;\n const axisExpandWidth = layoutInfo.axisExpandWidth;\n const axisCount = layoutInfo.axisCount;\n const axisCollapseWidth = layoutInfo.axisCollapseWidth;\n const winInnerIndices = layoutInfo.winInnerIndices;\n\n let position;\n let axisNameAvailableWidth = axisCollapseWidth;\n let axisLabelShow = false;\n let nameTruncateMaxWidth;\n\n if (axisIndex < winInnerIndices[0]) {\n position = axisIndex * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n else if (axisIndex <= winInnerIndices[1]) {\n position = layoutInfo.axisExpandWindow0Pos\n + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];\n axisNameAvailableWidth = axisExpandWidth;\n axisLabelShow = true;\n }\n else {\n position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n\n return {\n position: position,\n axisNameAvailableWidth: axisNameAvailableWidth,\n axisLabelShow: axisLabelShow,\n nameTruncateMaxWidth: nameTruncateMaxWidth\n };\n}\n\nexport default Parallel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * Parallel coordinate system creater.\n */\n\nimport Parallel from './Parallel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ParallelModel from './ParallelModel';\nimport { CoordinateSystemMaster } from '../CoordinateSystem';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nfunction createParallelCoordSys(ecModel: GlobalModel, api: ExtensionAPI): CoordinateSystemMaster[] {\n const coordSysList: CoordinateSystemMaster[] = [];\n\n ecModel.eachComponent('parallel', function (parallelModel: ParallelModel, idx: number) {\n const coordSys = new Parallel(parallelModel, ecModel, api);\n\n coordSys.name = 'parallel_' + idx;\n coordSys.resize(parallelModel, api);\n\n parallelModel.coordinateSystem = coordSys;\n coordSys.model = parallelModel;\n\n coordSysList.push(coordSys);\n });\n\n // Inject the coordinateSystems into seriesModel\n ecModel.eachSeries(function (seriesModel) {\n if ((seriesModel as ParallelSeriesModel).get('coordinateSystem') === 'parallel') {\n const parallelModel = seriesModel.getReferringComponents(\n 'parallel', SINGLE_REFERRING\n ).models[0] as ParallelModel;\n seriesModel.coordinateSystem = parallelModel.coordinateSystem;\n }\n });\n\n return coordSysList;\n}\nconst parallelCoordSysCreator = {\n create: createParallelCoordSys\n};\n\nexport default parallelCoordSysCreator;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport * as numberUtil from '../../util/number';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport ParallelAxis from './ParallelAxis';\nimport { ZRColor, ParsedValue } from '../../util/types';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport Parallel from './Parallel';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\n\n// 'normal' means there is no \"active intervals\" existing.\nexport type ParallelActiveState = 'normal' | 'active' | 'inactive';\nexport type ParallelAxisInterval = number[];\ntype ParallelAreaSelectStyleKey = 'fill' | 'lineWidth' | 'stroke' | 'opacity';\nexport type ParallelAreaSelectStyleProps = Pick & {\n // Selected area width.\n width: number;\n};\n\nexport interface ParallelAxisOption extends AxisBaseOption {\n /**\n * 0, 1, 2, ...\n */\n dim?: number | number[];\n parallelIndex?: number;\n areaSelectStyle?: {\n width?: number;\n borderWidth?: number;\n borderColor?: ZRColor;\n color?: ZRColor;\n opacity?: number;\n };\n // Whether realtime update view when select.\n realtime?: boolean;\n}\n\nclass ParallelAxisModel extends ComponentModel {\n\n static type: 'baseParallelAxis';\n readonly type = ParallelAxisModel.type;\n\n axis: ParallelAxis;\n\n // Inject\n coordinateSystem: Parallel;\n\n /**\n * @readOnly\n */\n activeIntervals: ParallelAxisInterval[] = [];\n\n getAreaSelectStyle(): ParallelAreaSelectStyleProps {\n return makeStyleMapper(\n [\n ['fill', 'color'],\n ['lineWidth', 'borderWidth'],\n ['stroke', 'borderColor'],\n ['width', 'width'],\n ['opacity', 'opacity']\n // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n ]\n )(this.getModel('areaSelectStyle')) as ParallelAreaSelectStyleProps;\n }\n\n /**\n * The code of this feature is put on AxisModel but not ParallelAxis,\n * because axisModel can be alive after echarts updating but instance of\n * ParallelAxis having been disposed. this._activeInterval should be kept\n * when action dispatched (i.e. legend click).\n *\n * @param intervals `interval.length === 0` means set all active.\n */\n setActiveIntervals(intervals: ParallelAxisInterval[]): void {\n const activeIntervals = this.activeIntervals = zrUtil.clone(intervals);\n\n // Normalize\n if (activeIntervals) {\n for (let i = activeIntervals.length - 1; i >= 0; i--) {\n numberUtil.asc(activeIntervals[i]);\n }\n }\n }\n\n /**\n * @param value When only attempting detect whether 'no activeIntervals set',\n * `value` is not needed to be input.\n */\n getActiveState(value?: ParsedValue): ParallelActiveState {\n const activeIntervals = this.activeIntervals;\n\n if (!activeIntervals.length) {\n return 'normal';\n }\n\n if (value == null || isNaN(+value)) {\n return 'inactive';\n }\n\n // Simple optimization\n if (activeIntervals.length === 1) {\n const interval = activeIntervals[0];\n if (interval[0] <= value && value <= interval[1]) {\n return 'active';\n }\n }\n else {\n for (let i = 0, len = activeIntervals.length; i < len; i++) {\n if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {\n return 'active';\n }\n }\n }\n\n return 'inactive';\n }\n\n}\ninterface ParallelAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nzrUtil.mixin(ParallelAxisModel, AxisModelCommonMixin);\n\nexport default ParallelAxisModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport {curry, each, map, bind, merge, clone, defaults, assert} from 'zrender/src/core/util';\nimport Eventful from 'zrender/src/core/Eventful';\nimport * as graphic from '../../util/graphic';\nimport * as interactionMutex from './interactionMutex';\nimport DataDiffer from '../../data/DataDiffer';\nimport { Dictionary } from '../../util/types';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ElementEvent } from 'zrender/src/Element';\nimport * as matrix from 'zrender/src/core/matrix';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\n\n\n/**\n * BrushController not only used in \"brush component\",\n * but also used in \"tooltip DataZoom\", and other possible\n * futher brush behavior related scenarios.\n * So `BrushController` should not depends on \"brush component model\".\n */\n\n\nexport type BrushType = 'polygon' | 'rect' | 'lineX' | 'lineY';\n/**\n * Only for drawing (after enabledBrush).\n * 'line', 'rect', 'polygon' or false\n * If passing false/null/undefined, disable brush.\n * If passing 'auto', determined by panel.defaultBrushType\n */\nexport type BrushTypeUncertain = BrushType | false | 'auto';\n\nexport type BrushMode = 'single' | 'multiple';\n// MinMax: Range of linear brush.\n// MinMax[]: Range of multi-dimension like rect/polygon, which is a MinMax\n// list for each dimension of the coord sys. For example:\n// cartesian: [[xMin, xMax], [yMin, yMax]]\n// geo: [[lngMin, lngMin], [latMin, latMax]]\nexport type BrushDimensionMinMax = number[];\nexport type BrushAreaRange = BrushDimensionMinMax | BrushDimensionMinMax[];\n\nexport interface BrushCoverConfig {\n // Mandatory. determine how to convert to/from coord('rect' or 'polygon' or 'lineX/Y')\n brushType: BrushType;\n // Can be specified by user to map covers in `updateCovers`\n // in `dispatchAction({type: 'brush', areas: [{id: ...}, ...]})`\n id?: string;\n // Range in global coordinate (pixel).\n range?: BrushAreaRange;\n // When create a new area by `updateCovers`, panelId should be specified.\n // If not null/undefined, means global panel.\n // Also see `BrushAreaParam['panelId']`.\n panelId?: string;\n\n brushMode?: BrushMode;\n // `brushStyle`, `transformable` is not mandatory, use DEFAULT_BRUSH_OPT by default.\n brushStyle?: Pick;\n transformable?: boolean;\n removeOnClick?: boolean;\n z?: number;\n}\n\n/**\n * `BrushAreaCreatorOption` input to brushModel via `setBrushOption`,\n * merge and convert to `BrushCoverCreatorConfig`.\n */\nexport interface BrushCoverCreatorConfig extends Pick<\n BrushCoverConfig,\n 'brushMode' | 'transformable' | 'removeOnClick' | 'brushStyle' | 'z'\n> {\n brushType: BrushTypeUncertain;\n}\n\ntype BrushStyleKey =\n 'fill'\n | 'stroke'\n | 'lineWidth'\n | 'opacity'\n | 'shadowBlur'\n | 'shadowOffsetX'\n | 'shadowOffsetY'\n | 'shadowColor';\n\n\nconst BRUSH_PANEL_GLOBAL = true as const;\n\nexport interface BrushPanelConfig {\n // mandatory.\n panelId: string;\n // mandatory.\n clipPath(localPoints: number[][], transform: matrix.MatrixArray): number[][];\n // mandatory.\n isTargetByCursor(e: ElementEvent, localCursorPoint: number[], transform: matrix.MatrixArray): boolean;\n // optional, only used when brushType is 'auto'.\n defaultBrushType?: BrushType;\n // optional.\n getLinearBrushOtherExtent?(xyIndex: number): number[];\n}\n// `true` represents global panel;\ntype BrushPanelConfigOrGlobal = BrushPanelConfig | typeof BRUSH_PANEL_GLOBAL;\n\n\ninterface BrushCover extends graphic.Group {\n __brushOption: BrushCoverConfig;\n}\n\ntype Point = number[];\n\nconst mathMin = Math.min;\nconst mathMax = Math.max;\nconst mathPow = Math.pow;\n\nconst COVER_Z = 10000;\nconst UNSELECT_THRESHOLD = 6;\nconst MIN_RESIZE_LINE_WIDTH = 6;\nconst MUTEX_RESOURCE_KEY = 'globalPan';\n\ntype DirectionName = 'w' | 'e' | 'n' | 's';\ntype DirectionNameSequence = DirectionName[];\n\nconst DIRECTION_MAP = {\n w: [0, 0],\n e: [0, 1],\n n: [1, 0],\n s: [1, 1]\n} as const;\nconst CURSOR_MAP = {\n w: 'ew',\n e: 'ew',\n n: 'ns',\n s: 'ns',\n ne: 'nesw',\n sw: 'nesw',\n nw: 'nwse',\n se: 'nwse'\n} as const;\nconst DEFAULT_BRUSH_OPT = {\n brushStyle: {\n lineWidth: 2,\n stroke: 'rgba(210,219,238,0.3)',\n fill: '#D2DBEE'\n },\n transformable: true,\n brushMode: 'single',\n removeOnClick: false\n};\n\nlet baseUID = 0;\n\nexport interface BrushControllerEvents {\n brush: {\n areas: {\n brushType: BrushType;\n panelId: string;\n range: BrushAreaRange;\n }[];\n isEnd: boolean;\n removeOnClick: boolean;\n }\n}\n\n/**\n * params:\n * areas: Array., coord relates to container group,\n * If no container specified, to global.\n * opt {\n * isEnd: boolean,\n * removeOnClick: boolean\n * }\n */\nclass BrushController extends Eventful<{\n [key in keyof BrushControllerEvents]: (params: BrushControllerEvents[key]) => void | undefined\n}> {\n\n readonly group: graphic.Group;\n\n /**\n * @internal\n */\n _zr: ZRenderType;\n\n /**\n * @internal\n */\n _brushType: BrushTypeUncertain;\n\n /**\n * @internal\n * Only for drawing (after enabledBrush).\n */\n _brushOption: BrushCoverCreatorConfig;\n\n /**\n * @internal\n * Key: panelId\n */\n _panels: Dictionary;\n\n /**\n * @internal\n */\n _track: number[][] = [];\n\n /**\n * @internal\n */\n _dragging: boolean;\n\n /**\n * @internal\n */\n _covers: BrushCover[] = [];\n\n /**\n * @internal\n */\n _creatingCover: BrushCover;\n\n /**\n * @internal\n */\n _creatingPanel: BrushPanelConfigOrGlobal;\n\n private _enableGlobalPan: boolean;\n\n private _mounted: boolean;\n\n /**\n * @internal\n */\n _transform: matrix.MatrixArray;\n\n private _uid: string;\n\n private _handlers: {\n [eventName: string]: (this: BrushController, e: ElementEvent) => void\n } = {};\n\n\n constructor(zr: ZRenderType) {\n super();\n\n if (__DEV__) {\n assert(zr);\n }\n\n this._zr = zr;\n\n this.group = new graphic.Group();\n\n this._uid = 'brushController_' + baseUID++;\n\n each(pointerHandlers, function (this: BrushController, handler, eventName) {\n this._handlers[eventName] = bind(handler, this);\n }, this);\n }\n\n /**\n * If set to `false`, select disabled.\n */\n enableBrush(brushOption: Partial | false): BrushController {\n if (__DEV__) {\n assert(this._mounted);\n }\n\n this._brushType && this._doDisableBrush();\n (brushOption as Partial).brushType && this._doEnableBrush(\n brushOption as Partial\n );\n\n return this;\n }\n\n private _doEnableBrush(brushOption: Partial): void {\n const zr = this._zr;\n\n // Consider roam, which takes globalPan too.\n if (!this._enableGlobalPan) {\n interactionMutex.take(zr, MUTEX_RESOURCE_KEY, this._uid);\n }\n\n each(this._handlers, function (handler, eventName) {\n zr.on(eventName, handler);\n });\n\n this._brushType = brushOption.brushType;\n this._brushOption = merge(\n clone(DEFAULT_BRUSH_OPT), brushOption, true\n ) as BrushCoverCreatorConfig;\n }\n\n private _doDisableBrush(): void {\n const zr = this._zr;\n\n interactionMutex.release(zr, MUTEX_RESOURCE_KEY, this._uid);\n\n each(this._handlers, function (handler, eventName) {\n zr.off(eventName, handler);\n });\n\n this._brushType = this._brushOption = null;\n }\n\n /**\n * @param panelOpts If not pass, it is global brush.\n */\n setPanels(panelOpts?: BrushPanelConfig[]): BrushController {\n if (panelOpts && panelOpts.length) {\n const panels = this._panels = {} as Dictionary;\n each(panelOpts, function (panelOpts) {\n panels[panelOpts.panelId] = clone(panelOpts);\n });\n }\n else {\n this._panels = null;\n }\n return this;\n }\n\n mount(opt?: {\n enableGlobalPan?: boolean;\n x?: number;\n y?: number;\n rotation?: number;\n scaleX?: number;\n scaleY?: number\n }): BrushController {\n opt = opt || {};\n\n if (__DEV__) {\n this._mounted = true; // should be at first.\n }\n\n this._enableGlobalPan = opt.enableGlobalPan;\n\n const thisGroup = this.group;\n this._zr.add(thisGroup);\n\n thisGroup.attr({\n x: opt.x || 0,\n y: opt.y || 0,\n rotation: opt.rotation || 0,\n scaleX: opt.scaleX || 1,\n scaleY: opt.scaleY || 1\n });\n this._transform = thisGroup.getLocalTransform();\n\n return this;\n }\n\n // eachCover(cb, context): void {\n // each(this._covers, cb, context);\n // }\n\n /**\n * Update covers.\n * @param coverConfigList\n * If coverConfigList is null/undefined, all covers removed.\n */\n updateCovers(coverConfigList: BrushCoverConfig[]) {\n if (__DEV__) {\n assert(this._mounted);\n }\n\n coverConfigList = map(coverConfigList, function (coverConfig) {\n return merge(clone(DEFAULT_BRUSH_OPT), coverConfig, true);\n }) as BrushCoverConfig[];\n\n const tmpIdPrefix = '\\0-brush-index-';\n const oldCovers = this._covers;\n const newCovers = this._covers = [] as BrushCover[];\n const controller = this;\n const creatingCover = this._creatingCover;\n\n (new DataDiffer(oldCovers, coverConfigList, oldGetKey, getKey))\n .add(addOrUpdate)\n .update(addOrUpdate)\n .remove(remove)\n .execute();\n\n return this;\n\n function getKey(brushOption: BrushCoverConfig, index: number): string {\n return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index)\n + '-' + brushOption.brushType;\n }\n\n function oldGetKey(cover: BrushCover, index: number): string {\n return getKey(cover.__brushOption, index);\n }\n\n function addOrUpdate(newIndex: number, oldIndex?: number): void {\n const newBrushInternal = coverConfigList[newIndex];\n // Consider setOption in event listener of brushSelect,\n // where updating cover when creating should be forbiden.\n if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {\n newCovers[newIndex] = oldCovers[oldIndex];\n }\n else {\n const cover = newCovers[newIndex] = oldIndex != null\n ? (\n oldCovers[oldIndex].__brushOption = newBrushInternal,\n oldCovers[oldIndex]\n )\n : endCreating(controller, createCover(controller, newBrushInternal));\n updateCoverAfterCreation(controller, cover);\n }\n }\n\n function remove(oldIndex: number) {\n if (oldCovers[oldIndex] !== creatingCover) {\n controller.group.remove(oldCovers[oldIndex]);\n }\n }\n }\n\n unmount() {\n if (__DEV__) {\n if (!this._mounted) {\n return;\n }\n }\n\n this.enableBrush(false);\n\n // container may 'removeAll' outside.\n clearCovers(this);\n this._zr.remove(this.group);\n\n if (__DEV__) {\n this._mounted = false; // should be at last.\n }\n\n return this;\n }\n\n dispose() {\n this.unmount();\n this.off();\n }\n}\n\n\nfunction createCover(controller: BrushController, brushOption: BrushCoverConfig): BrushCover {\n const cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);\n cover.__brushOption = brushOption;\n updateZ(cover, brushOption);\n controller.group.add(cover);\n return cover;\n}\n\nfunction endCreating(controller: BrushController, creatingCover: BrushCover): BrushCover {\n const coverRenderer = getCoverRenderer(creatingCover);\n if (coverRenderer.endCreating) {\n coverRenderer.endCreating(controller, creatingCover);\n updateZ(creatingCover, creatingCover.__brushOption);\n }\n return creatingCover;\n}\n\nfunction updateCoverShape(controller: BrushController, cover: BrushCover): void {\n const brushOption = cover.__brushOption;\n getCoverRenderer(cover).updateCoverShape(\n controller, cover, brushOption.range, brushOption\n );\n}\n\nfunction updateZ(cover: BrushCover, brushOption: BrushCoverConfig): void {\n let z = brushOption.z;\n z == null && (z = COVER_Z);\n cover.traverse(function (el: Displayable) {\n el.z = z;\n el.z2 = z; // Consider in given container.\n });\n}\n\nfunction updateCoverAfterCreation(controller: BrushController, cover: BrushCover): void {\n getCoverRenderer(cover).updateCommon(controller, cover);\n updateCoverShape(controller, cover);\n}\n\nfunction getCoverRenderer(cover: BrushCover): CoverRenderer {\n return coverRenderers[cover.__brushOption.brushType];\n}\n\n// return target panel or `true` (means global panel)\nfunction getPanelByPoint(\n controller: BrushController,\n e: ElementEvent,\n localCursorPoint: Point\n): BrushPanelConfigOrGlobal {\n const panels = controller._panels;\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n let panel;\n const transform = controller._transform;\n each(panels, function (pn) {\n pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);\n });\n return panel;\n}\n\n// Return a panel or true\nfunction getPanelByCover(controller: BrushController, cover: BrushCover): BrushPanelConfigOrGlobal {\n const panels = controller._panels;\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n const panelId = cover.__brushOption.panelId;\n // User may give cover without coord sys info,\n // which is then treated as global panel.\n return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL;\n}\n\nfunction clearCovers(controller: BrushController): boolean {\n const covers = controller._covers;\n const originalLength = covers.length;\n each(covers, function (cover) {\n controller.group.remove(cover);\n }, controller);\n covers.length = 0;\n\n return !!originalLength;\n}\n\nfunction trigger(\n controller: BrushController,\n opt: {isEnd?: boolean, removeOnClick?: boolean}\n): void {\n const areas = map(controller._covers, function (cover) {\n const brushOption = cover.__brushOption;\n const range = clone(brushOption.range);\n return {\n brushType: brushOption.brushType,\n panelId: brushOption.panelId,\n range: range\n };\n });\n\n controller.trigger('brush', {\n areas: areas,\n isEnd: !!opt.isEnd,\n removeOnClick: !!opt.removeOnClick\n });\n}\n\nfunction shouldShowCover(controller: BrushController): boolean {\n const track = controller._track;\n\n if (!track.length) {\n return false;\n }\n\n const p2 = track[track.length - 1];\n const p1 = track[0];\n const dx = p2[0] - p1[0];\n const dy = p2[1] - p1[1];\n const dist = mathPow(dx * dx + dy * dy, 0.5);\n\n return dist > UNSELECT_THRESHOLD;\n}\n\nfunction getTrackEnds(track: Point[]): Point[] {\n let tail = track.length - 1;\n tail < 0 && (tail = 0);\n return [track[0], track[tail]];\n}\n\ninterface RectRangeConverter {\n toRectRange: (range: BrushAreaRange) => BrushDimensionMinMax[];\n fromRectRange: (areaRange: BrushDimensionMinMax[]) => BrushAreaRange;\n};\nfunction createBaseRectCover(\n rectRangeConverter: RectRangeConverter,\n controller: BrushController,\n brushOption: BrushCoverConfig,\n edgeNameSequences: DirectionNameSequence[]\n): BrushCover {\n const cover = new graphic.Group() as BrushCover;\n\n cover.add(new graphic.Rect({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true,\n draggable: true,\n cursor: 'move',\n drift: curry(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n\n each(\n edgeNameSequences,\n function (nameSequence) {\n cover.add(new graphic.Rect({\n name: nameSequence.join(''),\n style: {opacity: 0},\n draggable: true,\n silent: true,\n invisible: true,\n drift: curry(driftRect, rectRangeConverter, controller, cover, nameSequence),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n }\n );\n\n return cover;\n}\n\nfunction updateBaseRect(\n controller: BrushController,\n cover: BrushCover,\n localRange: BrushDimensionMinMax[],\n brushOption: BrushCoverConfig\n): void {\n const lineWidth = brushOption.brushStyle.lineWidth || 0;\n const handleSize = mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH);\n const x = localRange[0][0];\n const y = localRange[1][0];\n const xa = x - lineWidth / 2;\n const ya = y - lineWidth / 2;\n const x2 = localRange[0][1];\n const y2 = localRange[1][1];\n const x2a = x2 - handleSize + lineWidth / 2;\n const y2a = y2 - handleSize + lineWidth / 2;\n const width = x2 - x;\n const height = y2 - y;\n const widtha = width + lineWidth;\n const heighta = height + lineWidth;\n\n updateRectShape(controller, cover, 'main', x, y, width, height);\n\n if (brushOption.transformable) {\n updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);\n updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);\n\n updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);\n updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);\n }\n}\n\nfunction updateCommon(controller: BrushController, cover: BrushCover): void {\n const brushOption = cover.__brushOption;\n const transformable = brushOption.transformable;\n\n const mainEl = cover.childAt(0) as Displayable;\n mainEl.useStyle(makeStyle(brushOption));\n mainEl.attr({\n silent: !transformable,\n cursor: transformable ? 'move' : 'default'\n });\n\n each(\n [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']],\n function (nameSequence: DirectionNameSequence) {\n const el = cover.childOfName(nameSequence.join('')) as Displayable;\n const globalDir = nameSequence.length === 1\n ? getGlobalDirection1(controller, nameSequence[0])\n : getGlobalDirection2(controller, nameSequence);\n\n el && el.attr({\n silent: !transformable,\n invisible: !transformable,\n cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null\n });\n }\n );\n}\n\nfunction updateRectShape(\n controller: BrushController,\n cover: BrushCover,\n name: string,\n x: number, y: number, w: number, h: number\n): void {\n const el = cover.childOfName(name) as graphic.Rect;\n el && el.setShape(pointsToRect(\n clipByPanel(controller, cover, [[x, y], [x + w, y + h]])\n ));\n}\n\nfunction makeStyle(brushOption: BrushCoverConfig) {\n return defaults({strokeNoScale: true}, brushOption.brushStyle);\n}\n\nfunction formatRectRange(x: number, y: number, x2: number, y2: number): BrushDimensionMinMax[] {\n const min = [mathMin(x, x2), mathMin(y, y2)];\n const max = [mathMax(x, x2), mathMax(y, y2)];\n\n return [\n [min[0], max[0]], // x range\n [min[1], max[1]] // y range\n ];\n}\n\nfunction getTransform(controller: BrushController): matrix.MatrixArray {\n return graphic.getTransform(controller.group);\n}\n\nfunction getGlobalDirection1(\n controller: BrushController, localDirName: DirectionName\n): keyof typeof CURSOR_MAP {\n const map = {w: 'left', e: 'right', n: 'top', s: 'bottom'} as const;\n const inverseMap = {left: 'w', right: 'e', top: 'n', bottom: 's'} as const;\n const dir = graphic.transformDirection(\n map[localDirName], getTransform(controller)\n );\n return inverseMap[dir];\n}\nfunction getGlobalDirection2(\n controller: BrushController, localDirNameSeq: DirectionNameSequence\n): keyof typeof CURSOR_MAP {\n const globalDir = [\n getGlobalDirection1(controller, localDirNameSeq[0]),\n getGlobalDirection1(controller, localDirNameSeq[1])\n ];\n (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();\n return globalDir.join('') as keyof typeof CURSOR_MAP;\n}\n\nfunction driftRect(\n rectRangeConverter: RectRangeConverter,\n controller: BrushController,\n cover: BrushCover,\n dirNameSequence: DirectionNameSequence,\n dx: number,\n dy: number\n): void {\n const brushOption = cover.__brushOption;\n const rectRange = rectRangeConverter.toRectRange(brushOption.range);\n const localDelta = toLocalDelta(controller, dx, dy);\n\n each(dirNameSequence, function (dirName) {\n const ind = DIRECTION_MAP[dirName];\n rectRange[ind[0]][ind[1]] += localDelta[ind[0]];\n });\n\n brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(\n rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]\n ));\n\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {isEnd: false});\n}\n\nfunction driftPolygon(\n controller: BrushController,\n cover: BrushCover,\n dx: number,\n dy: number\n): void {\n const range = cover.__brushOption.range as BrushDimensionMinMax[];\n const localDelta = toLocalDelta(controller, dx, dy);\n\n each(range, function (point) {\n point[0] += localDelta[0];\n point[1] += localDelta[1];\n });\n\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {isEnd: false});\n}\n\nfunction toLocalDelta(\n controller: BrushController, dx: number, dy: number\n): BrushDimensionMinMax {\n const thisGroup = controller.group;\n const localD = thisGroup.transformCoordToLocal(dx, dy);\n const localZero = thisGroup.transformCoordToLocal(0, 0);\n\n return [localD[0] - localZero[0], localD[1] - localZero[1]];\n}\n\nfunction clipByPanel(controller: BrushController, cover: BrushCover, data: Point[]): Point[] {\n const panel = getPanelByCover(controller, cover);\n\n return (panel && panel !== BRUSH_PANEL_GLOBAL)\n ? panel.clipPath(data, controller._transform)\n : clone(data);\n}\n\nfunction pointsToRect(points: Point[]): graphic.Rect['shape'] {\n const xmin = mathMin(points[0][0], points[1][0]);\n const ymin = mathMin(points[0][1], points[1][1]);\n const xmax = mathMax(points[0][0], points[1][0]);\n const ymax = mathMax(points[0][1], points[1][1]);\n\n return {\n x: xmin,\n y: ymin,\n width: xmax - xmin,\n height: ymax - ymin\n };\n}\n\nfunction resetCursor(\n controller: BrushController, e: ElementEvent, localCursorPoint: Point\n): void {\n if (\n // Check active\n !controller._brushType\n // resetCursor should be always called when mouse is in zr area,\n // but not called when mouse is out of zr area to avoid bad influence\n // if `mousemove`, `mouseup` are triggered from `document` event.\n || isOutsideZrArea(controller, e.offsetX, e.offsetY)\n ) {\n return;\n }\n\n const zr = controller._zr;\n const covers = controller._covers;\n const currPanel = getPanelByPoint(controller, e, localCursorPoint);\n\n // Check whether in covers.\n if (!controller._dragging) {\n for (let i = 0; i < covers.length; i++) {\n const brushOption = covers[i].__brushOption;\n if (currPanel\n && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId)\n && coverRenderers[brushOption.brushType].contain(\n covers[i], localCursorPoint[0], localCursorPoint[1]\n )\n ) {\n // Use cursor style set on cover.\n return;\n }\n }\n }\n\n currPanel && zr.setCursorStyle('crosshair');\n}\n\nfunction preventDefault(e: ElementEvent): void {\n const rawE = e.event;\n rawE.preventDefault && rawE.preventDefault();\n}\n\nfunction mainShapeContain(cover: BrushCover, x: number, y: number): boolean {\n return (cover.childOfName('main') as Displayable).contain(x, y);\n}\n\nfunction updateCoverByMouse(\n controller: BrushController,\n e: ElementEvent,\n localCursorPoint: Point,\n isEnd: boolean\n): {\n isEnd: boolean,\n removeOnClick?: boolean\n} {\n let creatingCover = controller._creatingCover;\n const panel = controller._creatingPanel;\n const thisBrushOption = controller._brushOption;\n let eventParams;\n\n controller._track.push(localCursorPoint.slice());\n\n if (shouldShowCover(controller) || creatingCover) {\n\n if (panel && !creatingCover) {\n thisBrushOption.brushMode === 'single' && clearCovers(controller);\n const brushOption = clone(thisBrushOption) as BrushCoverConfig;\n brushOption.brushType = determineBrushType(brushOption.brushType, panel as BrushPanelConfig);\n brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId;\n creatingCover = controller._creatingCover = createCover(controller, brushOption);\n controller._covers.push(creatingCover);\n }\n\n if (creatingCover) {\n const coverRenderer = coverRenderers[\n determineBrushType(controller._brushType, panel as BrushPanelConfig)\n ];\n const coverBrushOption = creatingCover.__brushOption;\n\n coverBrushOption.range = coverRenderer.getCreatingRange(\n clipByPanel(controller, creatingCover, controller._track)\n );\n\n if (isEnd) {\n endCreating(controller, creatingCover);\n coverRenderer.updateCommon(controller, creatingCover);\n }\n\n updateCoverShape(controller, creatingCover);\n\n eventParams = {isEnd: isEnd};\n }\n }\n else if (\n isEnd\n && thisBrushOption.brushMode === 'single'\n && thisBrushOption.removeOnClick\n ) {\n // Help user to remove covers easily, only by a tiny drag, in 'single' mode.\n // But a single click do not clear covers, because user may have casual\n // clicks (for example, click on other component and do not expect covers\n // disappear).\n // Only some cover removed, trigger action, but not every click trigger action.\n if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {\n eventParams = {isEnd: isEnd, removeOnClick: true};\n }\n }\n\n return eventParams;\n}\n\nfunction determineBrushType(brushType: BrushTypeUncertain, panel: BrushPanelConfig): BrushType {\n if (brushType === 'auto') {\n if (__DEV__) {\n assert(\n panel && panel.defaultBrushType,\n 'MUST have defaultBrushType when brushType is \"atuo\"'\n );\n }\n return panel.defaultBrushType;\n }\n return brushType as BrushType;\n}\n\nconst pointerHandlers: Dictionary<(this: BrushController, e: ElementEvent) => void> = {\n\n mousedown: function (e) {\n if (this._dragging) {\n // In case some browser do not support globalOut,\n // and release mouse out side the browser.\n handleDragEnd(this, e);\n }\n else if (!e.target || !e.target.draggable) {\n\n preventDefault(e);\n\n const localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);\n\n this._creatingCover = null;\n const panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);\n\n if (panel) {\n this._dragging = true;\n this._track = [localCursorPoint.slice()];\n }\n }\n },\n\n mousemove: function (e) {\n const x = e.offsetX;\n const y = e.offsetY;\n\n const localCursorPoint = this.group.transformCoordToLocal(x, y);\n\n resetCursor(this, e, localCursorPoint);\n\n if (this._dragging) {\n preventDefault(e);\n const eventParams = updateCoverByMouse(this, e, localCursorPoint, false);\n eventParams && trigger(this, eventParams);\n }\n },\n\n mouseup: function (e) {\n handleDragEnd(this, e);\n }\n};\n\n\nfunction handleDragEnd(controller: BrushController, e: ElementEvent) {\n if (controller._dragging) {\n preventDefault(e);\n\n const x = e.offsetX;\n const y = e.offsetY;\n\n const localCursorPoint = controller.group.transformCoordToLocal(x, y);\n const eventParams = updateCoverByMouse(controller, e, localCursorPoint, true);\n\n controller._dragging = false;\n controller._track = [];\n controller._creatingCover = null;\n\n // trigger event shoule be at final, after procedure will be nested.\n eventParams && trigger(controller, eventParams);\n }\n}\n\nfunction isOutsideZrArea(controller: BrushController, x: number, y: number): boolean {\n const zr = controller._zr;\n return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight();\n}\n\n\ninterface CoverRenderer {\n createCover(controller: BrushController, brushOption: BrushCoverConfig): BrushCover;\n getCreatingRange(localTrack: Point[]): BrushAreaRange;\n updateCoverShape(\n controller: BrushController, cover: BrushCover, localRange: BrushAreaRange, brushOption: BrushCoverConfig\n ): void;\n updateCommon(controller: BrushController, cover: BrushCover): void;\n contain(cover: BrushCover, x: number, y: number): boolean;\n endCreating?(controller: BrushController, creatingCover: BrushCover): void;\n}\n\n/**\n * key: brushType\n */\nconst coverRenderers: Record = {\n\n lineX: getLineRenderer(0),\n\n lineY: getLineRenderer(1),\n\n rect: {\n createCover: function (controller, brushOption) {\n function returnInput(range: BrushDimensionMinMax[]): BrushDimensionMinMax[] {\n return range;\n }\n return createBaseRectCover(\n {\n toRectRange: returnInput,\n fromRectRange: returnInput\n },\n controller,\n brushOption,\n [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]\n );\n },\n getCreatingRange: function (localTrack) {\n const ends = getTrackEnds(localTrack);\n return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);\n },\n updateCoverShape: function (controller, cover, localRange: BrushDimensionMinMax[], brushOption) {\n updateBaseRect(controller, cover, localRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n },\n\n polygon: {\n createCover: function (controller, brushOption) {\n const cover = new graphic.Group();\n\n // Do not use graphic.Polygon because graphic.Polyline do not close the\n // border of the shape when drawing, which is a better experience for user.\n cover.add(new graphic.Polyline({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true\n }));\n\n return cover as BrushCover;\n },\n getCreatingRange: function (localTrack) {\n return localTrack;\n },\n endCreating: function (controller, cover) {\n cover.remove(cover.childAt(0));\n // Use graphic.Polygon close the shape.\n cover.add(new graphic.Polygon({\n name: 'main',\n draggable: true,\n drift: curry(driftPolygon, controller, cover),\n ondragend: curry(trigger, controller, {isEnd: true})\n }));\n },\n updateCoverShape: function (controller, cover, localRange: BrushDimensionMinMax[], brushOption) {\n (cover.childAt(0) as graphic.Polygon).setShape({\n points: clipByPanel(controller, cover, localRange)\n });\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n }\n};\n\nfunction getLineRenderer(xyIndex: 0 | 1) {\n return {\n createCover: function (controller: BrushController, brushOption: BrushCoverConfig): BrushCover {\n return createBaseRectCover(\n {\n toRectRange: function (range: BrushDimensionMinMax): BrushDimensionMinMax[] {\n const rectRange = [range, [0, 100]];\n xyIndex && rectRange.reverse();\n return rectRange;\n },\n fromRectRange: function (rectRange: BrushDimensionMinMax[]): BrushDimensionMinMax {\n return rectRange[xyIndex];\n }\n },\n controller,\n brushOption,\n ([[['w'], ['e']], [['n'], ['s']]] as DirectionNameSequence[][])[xyIndex]\n );\n },\n getCreatingRange: function (localTrack: Point[]): BrushDimensionMinMax {\n const ends = getTrackEnds(localTrack);\n const min = mathMin(ends[0][xyIndex], ends[1][xyIndex]);\n const max = mathMax(ends[0][xyIndex], ends[1][xyIndex]);\n\n return [min, max];\n },\n updateCoverShape: function (\n controller: BrushController,\n cover: BrushCover,\n localRange: BrushDimensionMinMax,\n brushOption: BrushCoverConfig\n ): void {\n let otherExtent;\n // If brushWidth not specified, fit the panel.\n const panel = getPanelByCover(controller, cover);\n if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) {\n otherExtent = panel.getLinearBrushOtherExtent(xyIndex);\n }\n else {\n const zr = controller._zr;\n otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];\n }\n const rectRange = [localRange, otherExtent];\n xyIndex && rectRange.reverse();\n\n updateBaseRect(controller, cover, rectRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n };\n}\n\nexport default BrushController;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {onIrrelevantElement} from './cursorHelper';\nimport * as graphicUtil from '../../util/graphic';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ElementEvent } from 'zrender/src/Element';\nimport ComponentModel from '../../model/Component';\n\nexport function makeRectPanelClipPath(rect: RectLike) {\n rect = normalizeRect(rect);\n return function (localPoints: number[][]) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\n\nexport function makeLinearBrushOtherExtent(rect: RectLike, specifiedXYIndex?: 0 | 1) {\n rect = normalizeRect(rect);\n return function (xyIndex: 0 | 1) {\n const idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n const brushWidth = idx ? rect.width : rect.height;\n const base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\n\nexport function makeRectIsTargetByCursor(rect: RectLike, api: ExtensionAPI, targetModel: ComponentModel) {\n const boundingRect = normalizeRect(rect);\n return function (e: ElementEvent, localCursorPoint: number[]) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1])\n && !onIrrelevantElement(e, api, targetModel);\n };\n}\n\n// Consider width/height is negative.\nfunction normalizeRect(rect: RectLike): BoundingRect {\n return BoundingRect.create(rect);\n}\n\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport BrushController, {\n BrushCoverConfig, BrushControllerEvents, BrushDimensionMinMax\n} from '../helper/BrushController';\nimport * as brushHelper from '../helper/brushHelper';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport ParallelAxisModel, { ParallelAreaSelectStyleProps } from '../../coord/parallel/AxisModel';\nimport { Payload } from '../../util/types';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport { ParallelAxisLayoutInfo } from '../../coord/parallel/Parallel';\n\n\nconst elementList = ['axisLine', 'axisTickLabel', 'axisName'];\n\nclass ParallelAxisView extends ComponentView {\n\n static type = 'parallelAxis';\n readonly type = ParallelAxisView.type;\n\n private _brushController: BrushController;\n private _axisGroup: graphic.Group;\n\n axisModel: ParallelAxisModel;\n api: ExtensionAPI;\n\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {\n super.init.apply(this, arguments as any);\n\n (this._brushController = new BrushController(api.getZr()))\n .on('brush', zrUtil.bind(this._onBrush, this));\n }\n\n render(\n axisModel: ParallelAxisModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n if (fromAxisAreaSelect(axisModel, ecModel, payload)) {\n return;\n }\n\n this.axisModel = axisModel;\n this.api = api;\n\n this.group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n const coordSysModel = getCoordSysModel(axisModel, ecModel);\n const coordSys = coordSysModel.coordinateSystem;\n\n const areaSelectStyle = axisModel.getAreaSelectStyle();\n const areaWidth = areaSelectStyle.width;\n\n const dim = axisModel.axis.dim;\n const axisLayout = coordSys.getAxisLayout(dim);\n\n const builderOpt = zrUtil.extend(\n {strokeContainThreshold: areaWidth},\n axisLayout\n );\n\n const axisBuilder = new AxisBuilder(axisModel, builderOpt);\n\n zrUtil.each(elementList, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n this._refreshBrushController(\n builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api\n );\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }\n\n // /**\n // * @override\n // */\n // updateVisual(axisModel, ecModel, api, payload) {\n // this._brushController && this._brushController\n // .updateCovers(getCoverInfoList(axisModel));\n // }\n\n _refreshBrushController(\n builderOpt: Pick,\n areaSelectStyle: ParallelAreaSelectStyleProps,\n axisModel: ParallelAxisModel,\n coordSysModel: ParallelModel,\n areaWidth: ParallelAreaSelectStyleProps['width'],\n api: ExtensionAPI\n ): void {\n // After filtering, axis may change, select area needs to be update.\n const extent = axisModel.axis.getExtent();\n const extentLen = extent[1] - extent[0];\n const extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.\n\n // width/height might be negative, which will be\n // normalized in BoundingRect.\n const rect = graphic.BoundingRect.create({\n x: extent[0],\n y: -areaWidth / 2,\n width: extentLen,\n height: areaWidth\n });\n rect.x -= extra;\n rect.width += 2 * extra;\n\n this._brushController\n .mount({\n enableGlobalPan: true,\n rotation: builderOpt.rotation,\n x: builderOpt.position[0],\n y: builderOpt.position[1]\n })\n .setPanels([{\n panelId: 'pl',\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect, 0)\n }])\n .enableBrush({\n brushType: 'lineX',\n brushStyle: areaSelectStyle,\n removeOnClick: true\n })\n .updateCovers(getCoverInfoList(axisModel));\n }\n\n _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const coverInfoList = eventParam.areas;\n // Do not cache these object, because the mey be changed.\n const axisModel = this.axisModel;\n const axis = axisModel.axis;\n const intervals = zrUtil.map(coverInfoList, function (coverInfo) {\n return [\n axis.coordToData((coverInfo.range as BrushDimensionMinMax)[0], true),\n axis.coordToData((coverInfo.range as BrushDimensionMinMax)[1], true)\n ];\n });\n\n // If realtime is true, action is not dispatched on drag end, because\n // the drag end emits the same params with the last drag move event,\n // and may have some delay when using touch pad.\n if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) { // jshint ignore:line\n this.api.dispatchAction({\n type: 'axisAreaSelect',\n parallelAxisId: axisModel.id,\n intervals: intervals\n });\n }\n }\n\n dispose(): void {\n this._brushController.dispose();\n }\n}\n\nfunction fromAxisAreaSelect(\n axisModel: ParallelAxisModel, ecModel: GlobalModel, payload: Payload\n): boolean {\n return payload\n && payload.type === 'axisAreaSelect'\n && ecModel.findComponents(\n {mainType: 'parallelAxis', query: payload}\n )[0] === axisModel;\n}\n\nfunction getCoverInfoList(axisModel: ParallelAxisModel): BrushCoverConfig[] {\n const axis = axisModel.axis;\n return zrUtil.map(axisModel.activeIntervals, function (interval) {\n return {\n brushType: 'lineX',\n panelId: 'pl',\n range: [\n axis.dataToCoord(interval[0], true),\n axis.dataToCoord(interval[1], true)\n ]\n };\n });\n}\n\nfunction getCoordSysModel(axisModel: ParallelAxisModel, ecModel: GlobalModel): ParallelModel {\n return ecModel.getComponent(\n 'parallel', axisModel.get('parallelIndex')\n ) as ParallelModel;\n}\n\nexport default ParallelAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { Payload } from '../../util/types';\nimport ParallelAxisModel, { ParallelAxisInterval } from '../../coord/parallel/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\ninterface ParallelAxisAreaSelectPayload extends Payload {\n parallelAxisId: string;\n intervals: ParallelAxisInterval[]\n}\n\nconst actionInfo = {\n type: 'axisAreaSelect',\n event: 'axisAreaSelected'\n // update: 'updateVisual'\n};\n\nexport interface ParallelAxisExpandPayload extends Payload {\n axisExpandWindow?: number[];\n}\n\nexport function installParallelActions(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerAction(actionInfo, function (payload: ParallelAxisAreaSelectPayload, ecModel: GlobalModel) {\n ecModel.eachComponent(\n {mainType: 'parallelAxis', query: payload},\n function (parallelAxisModel: ParallelAxisModel) {\n parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);\n }\n );\n });\n\n /**\n * @payload\n */\n registers.registerAction('parallelAxisExpand', function (payload: ParallelAxisExpandPayload, ecModel) {\n ecModel.eachComponent(\n {mainType: 'parallel', query: payload},\n function (parallelModel: ParallelModel) {\n parallelModel.setAxisExpand(payload);\n }\n );\n });\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport parallelPreprocessor from '../../coord/parallel/parallelPreprocessor';\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport parallelCoordSysCreator from '../../coord/parallel/parallelCreator';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport ParallelAxisModel, {ParallelAxisOption} from '../../coord/parallel/AxisModel';\nimport ParallelAxisView from '../axis/ParallelAxisView';\nimport { installParallelActions } from '../axis/parallelAxisAction';\n\nconst defaultAxisOption: ParallelAxisOption = {\n type: 'value',\n areaSelectStyle: {\n width: 20,\n borderWidth: 1,\n borderColor: 'rgba(160,197,232)',\n color: 'rgba(160,197,232)',\n opacity: 0.3\n },\n realtime: true,\n z: 10\n};\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentView(ParallelView);\n registers.registerComponentModel(ParallelModel);\n\n registers.registerCoordinateSystem('parallel', parallelCoordSysCreator);\n registers.registerPreprocessor(parallelPreprocessor);\n\n registers.registerComponentModel(ParallelAxisModel);\n registers.registerComponentView(ParallelAxisView);\n\n axisModelCreator(\n registers, 'parallel', ParallelAxisModel, defaultAxisOption\n );\n\n installParallelActions(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelSeriesModel from './ParallelSeries';\nimport parallelVisual from './parallelVisual';\nimport {install as installParallelComponent} from '../../component/parallel/install';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n use(installParallelComponent);\n\n registers.registerChartView(ParallelView);\n registers.registerSeriesModel(ParallelSeriesModel);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, parallelVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { LayoutOrient, ECElement } from '../../util/types';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport SankeySeriesModel, { SankeyEdgeItemOption, SankeyNodeItemOption } from './SankeySeries';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\n\nclass SankeyPathShape {\n x1 = 0;\n y1 = 0;\n\n x2 = 0;\n y2 = 0;\n\n cpx1 = 0;\n cpy1 = 0;\n\n cpx2 = 0;\n cpy2 = 0;\n\n extent = 0;\n orient: LayoutOrient;\n}\n\ninterface SankeyPathProps extends PathProps {\n shape?: Partial\n}\n\nclass SankeyPath extends graphic.Path {\n shape: SankeyPathShape;\n\n constructor(opts?: SankeyPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new SankeyPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: SankeyPathShape) {\n const extent = shape.extent;\n ctx.moveTo(shape.x1, shape.y1);\n ctx.bezierCurveTo(\n shape.cpx1, shape.cpy1,\n shape.cpx2, shape.cpy2,\n shape.x2, shape.y2\n );\n if (shape.orient === 'vertical') {\n ctx.lineTo(shape.x2 + extent, shape.y2);\n ctx.bezierCurveTo(\n shape.cpx2 + extent, shape.cpy2,\n shape.cpx1 + extent, shape.cpy1,\n shape.x1 + extent, shape.y1\n );\n }\n else {\n ctx.lineTo(shape.x2, shape.y2 + extent);\n ctx.bezierCurveTo(\n shape.cpx2, shape.cpy2 + extent,\n shape.cpx1, shape.cpy1 + extent,\n shape.x1, shape.y1 + extent\n );\n }\n ctx.closePath();\n }\n\n highlight() {\n enterEmphasis(this);\n }\n\n downplay() {\n leaveEmphasis(this);\n }\n}\n\nclass SankeyView extends ChartView {\n\n static readonly type = 'sankey';\n readonly type = SankeyView.type;\n\n private _model: SankeySeriesModel;\n\n private _focusAdjacencyDisabled = false;\n\n private _data: SeriesData;\n\n render(seriesModel: SankeySeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const sankeyView = this;\n const graph = seriesModel.getGraph();\n const group = this.group;\n const layoutInfo = seriesModel.layoutInfo;\n // view width\n const width = layoutInfo.width;\n // view height\n const height = layoutInfo.height;\n const nodeData = seriesModel.getData();\n const edgeData = seriesModel.getData('edge');\n const orient = seriesModel.get('orient');\n\n this._model = seriesModel;\n\n group.removeAll();\n\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n\n // generate a bezire Curve for each edge\n graph.eachEdge(function (edge) {\n const curve = new SankeyPath();\n const ecData = getECData(curve);\n ecData.dataIndex = edge.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n ecData.dataType = 'edge';\n const edgeModel = edge.getModel();\n const lineStyleModel = edgeModel.getModel('lineStyle');\n const curvature = lineStyleModel.get('curveness');\n const n1Layout = edge.node1.getLayout();\n const node1Model = edge.node1.getModel();\n const dragX1 = node1Model.get('localX');\n const dragY1 = node1Model.get('localY');\n const n2Layout = edge.node2.getLayout();\n const node2Model = edge.node2.getModel();\n const dragX2 = node2Model.get('localX');\n const dragY2 = node2Model.get('localY');\n const edgeLayout = edge.getLayout();\n let x1: number;\n let y1: number;\n let x2: number;\n let y2: number;\n let cpx1: number;\n let cpy1: number;\n let cpx2: number;\n let cpy2: number;\n\n curve.shape.extent = Math.max(1, edgeLayout.dy);\n curve.shape.orient = orient;\n\n if (orient === 'vertical') {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy;\n x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty;\n y2 = dragY2 != null ? dragY2 * height : n2Layout.y;\n cpx1 = x1;\n cpy1 = y1 * (1 - curvature) + y2 * curvature;\n cpx2 = x2;\n cpy2 = y1 * curvature + y2 * (1 - curvature);\n }\n else {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy;\n x2 = dragX2 != null ? dragX2 * width : n2Layout.x;\n y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty;\n cpx1 = x1 * (1 - curvature) + x2 * curvature;\n cpy1 = y1;\n cpx2 = x1 * curvature + x2 * (1 - curvature);\n cpy2 = y2;\n }\n\n curve.setShape({\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n });\n\n curve.useStyle(lineStyleModel.getItemStyle());\n // Special color, use source node color or target node color\n switch (curve.style.fill) {\n case 'source':\n curve.style.fill = edge.node1.getVisual('color');\n curve.style.decal = edge.node1.getVisual('style').decal;\n break;\n case 'target':\n curve.style.fill = edge.node2.getVisual('color');\n curve.style.decal = edge.node2.getVisual('style').decal;\n break;\n case 'gradient':\n const sourceColor = edge.node1.getVisual('color');\n const targetColor = edge.node2.getVisual('color');\n if (typeof sourceColor === 'string' && typeof targetColor === 'string') {\n curve.style.fill = new graphic.LinearGradient(0, 0, +(orient === 'horizontal'), +(orient === 'vertical'), [{\n color: sourceColor,\n offset: 0\n }, {\n color: targetColor,\n offset: 1\n }]);\n }\n }\n\n const emphasisModel = edgeModel.getModel('emphasis');\n\n setStatesStylesFromModel(curve, edgeModel, 'lineStyle', (model) => model.getItemStyle());\n\n group.add(curve);\n\n edgeData.setItemGraphicEl(edge.dataIndex, curve);\n\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n curve,\n focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus,\n emphasisModel.get('blurScope')\n );\n\n getECData(curve).dataType = 'edge';\n });\n\n // Generate a rect for each node\n graph.eachNode(function (node) {\n const layout = node.getLayout();\n const itemModel = node.getModel();\n const dragX = itemModel.get('localX');\n const dragY = itemModel.get('localY');\n const emphasisModel = itemModel.getModel('emphasis');\n\n const rect = new graphic.Rect({\n shape: {\n x: dragX != null ? dragX * width : layout.x,\n y: dragY != null ? dragY * height : layout.y,\n width: layout.dx,\n height: layout.dy\n },\n style: itemModel.getModel('itemStyle').getItemStyle(),\n z2: 10\n });\n\n setLabelStyle(\n rect, getLabelStatesModels(itemModel),\n {\n labelFetcher: seriesModel,\n labelDataIndex: node.dataIndex,\n defaultText: node.id\n }\n );\n\n (rect as ECElement).disableLabelAnimation = true;\n\n rect.setStyle('fill', node.getVisual('color'));\n rect.setStyle('decal', node.getVisual('style').decal);\n\n setStatesStylesFromModel(rect, itemModel);\n\n group.add(rect);\n\n nodeData.setItemGraphicEl(node.dataIndex, rect);\n\n getECData(rect).dataType = 'node';\n\n const focus = emphasisModel.get('focus');\n enableHoverEmphasis(\n rect,\n focus === 'adjacency' ? node.getAdjacentDataIndices() : focus,\n emphasisModel.get('blurScope')\n );\n });\n\n nodeData.eachItemGraphicEl(function (el: graphic.Rect, dataIndex: number) {\n const itemModel = nodeData.getItemModel(dataIndex);\n if (itemModel.get('draggable')) {\n el.drift = function (this: typeof el, dx, dy) {\n sankeyView._focusAdjacencyDisabled = true;\n this.shape.x += dx;\n this.shape.y += dy;\n this.dirty();\n api.dispatchAction({\n type: 'dragNode',\n seriesId: seriesModel.id,\n dataIndex: nodeData.getRawIndex(dataIndex),\n localX: this.shape.x / width,\n localY: this.shape.y / height\n });\n };\n el.ondragend = function () {\n sankeyView._focusAdjacencyDisabled = false;\n };\n el.draggable = true;\n el.cursor = 'move';\n }\n });\n\n if (!this._data && seriesModel.isAnimationEnabled()) {\n group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () {\n group.removeClipPath();\n }));\n }\n\n this._data = seriesModel.getData();\n }\n\n dispose() {\n }\n}\n\n// Add animation to the view\nfunction createGridClipShape(rect: RectLike, seriesModel: SankeySeriesModel, cb: () => void) {\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width + 20\n }\n }, seriesModel, cb);\n\n return rectEl;\n}\n\nexport default SankeyView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport Model from '../../model/Model';\nimport {\n SeriesOption,\n BoxLayoutOptionMixin,\n OptionDataValue,\n SeriesLabelOption,\n ItemStyleOption,\n LineStyleOption,\n LayoutOrient,\n ColorString,\n StatesOptionMixin,\n OptionDataItemObject,\n GraphEdgeItemObject,\n OptionDataValueNumeric,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { LayoutRect } from '../../util/layout';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\n\ntype FocusNodeAdjacency = boolean | 'inEdges' | 'outEdges' | 'allEdges';\n\nexport interface SankeyNodeStateOption {\n label?: SeriesLabelOption\n itemStyle?: ItemStyleOption\n}\n\nexport interface SankeyEdgeStateOption {\n lineStyle?: SankeyEdgeStyleOption\n}\n\ninterface SankeyBothStateOption extends SankeyNodeStateOption, SankeyEdgeStateOption {\n}\n\ninterface SankeyEdgeStyleOption extends LineStyleOption {\n curveness?: number\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'adjacency'\n }\n}\n\nexport interface SankeyNodeItemOption extends SankeyNodeStateOption,\n StatesOptionMixin,\n OptionDataItemObject {\n id?: string\n\n localX?: number\n localY?: number\n\n depth?: number\n\n draggable?: boolean\n\n focusNodeAdjacency?: FocusNodeAdjacency\n}\n\nexport interface SankeyEdgeItemOption extends\n SankeyEdgeStateOption,\n StatesOptionMixin,\n GraphEdgeItemObject {\n focusNodeAdjacency?: FocusNodeAdjacency\n}\n\nexport interface SankeyLevelOption extends SankeyNodeStateOption, SankeyEdgeStateOption {\n depth: number\n}\n\nexport interface SankeySeriesOption\n extends SeriesOption, SankeyBothStateOption,\n BoxLayoutOptionMixin {\n type?: 'sankey'\n\n /**\n * color will be linear mapped.\n */\n color?: ColorString[]\n\n coordinateSystem?: 'view'\n\n orient?: LayoutOrient\n /**\n * The width of the node\n */\n nodeWidth?: number\n /**\n * The vertical distance between two nodes\n */\n nodeGap?: number\n\n /**\n * Control if the node can move or not\n */\n draggable?: boolean\n /**\n * Will be allEdges if true.\n * @deprecated\n */\n focusNodeAdjacency?: FocusNodeAdjacency\n /**\n * The number of iterations to change the position of the node\n */\n layoutIterations?: number\n\n nodeAlign?: 'justify' | 'left' | 'right' // TODO justify should be auto\n\n data?: SankeyNodeItemOption[]\n nodes?: SankeyNodeItemOption[]\n\n edges?: SankeyEdgeItemOption[]\n links?: SankeyEdgeItemOption[]\n\n levels?: SankeyLevelOption[]\n}\n\nclass SankeySeriesModel extends SeriesModel {\n static readonly type = 'series.sankey';\n readonly type = SankeySeriesModel.type;\n\n levelModels: Model[];\n\n layoutInfo: LayoutRect;\n\n /**\n * Init a graph data structure from data in option series\n *\n * @param {Object} option the object used to config echarts view\n * @return {module:echarts/data/SeriesData} storage initial data\n */\n getInitialData(option: SankeySeriesOption, ecModel: GlobalModel) {\n const links = option.edges || option.links;\n const nodes = option.data || option.nodes;\n const levels = option.levels;\n this.levelModels = [];\n const levelModels = this.levelModels;\n\n for (let i = 0; i < levels.length; i++) {\n if (levels[i].depth != null && levels[i].depth >= 0) {\n levelModels[levels[i].depth] = new Model(levels[i], this, ecModel);\n }\n else {\n if (__DEV__) {\n throw new Error('levels[i].depth is mandatory and should be natural number');\n }\n }\n }\n if (nodes && links) {\n const graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);\n return graph.data;\n }\n function beforeLink(nodeData: SeriesData, edgeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model: Model, idx: number) {\n const seriesModel = model.parentModel as SankeySeriesModel;\n const layout = seriesModel.getData().getItemLayout(idx);\n if (layout) {\n const nodeDepth = layout.depth;\n const levelModel = seriesModel.levelModels[nodeDepth];\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n return model;\n });\n\n edgeData.wrapMethod('getItemModel', function (model: Model, idx: number) {\n const seriesModel = model.parentModel as SankeySeriesModel;\n const edge = seriesModel.getGraph().getEdgeByIndex(idx);\n const layout = edge.node1.getLayout();\n if (layout) {\n const depth = layout.depth;\n const levelModel = seriesModel.levelModels[depth];\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n return model;\n });\n }\n }\n\n setNodePosition(dataIndex: number, localPosition: number[]) {\n const nodes = this.option.data || this.option.nodes;\n const dataItem = nodes[dataIndex];\n dataItem.localX = localPosition[0];\n dataItem.localY = localPosition[1];\n }\n\n /**\n * Return the graphic data structure\n *\n * @return graphic data structure\n */\n getGraph() {\n return this.getData().graph;\n }\n\n /**\n * Get edge data of graphic data structure\n *\n * @return data structure of list\n */\n getEdgeData() {\n return this.getGraph().edgeData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: 'node' | 'edge'\n ) {\n function noValue(val: unknown): boolean {\n return isNaN(val as number) || val == null;\n }\n // dataType === 'node' or empty do not show tooltip by default\n if (dataType === 'edge') {\n const params = this.getDataParams(dataIndex, dataType);\n const rawDataOpt = params.data as SankeyEdgeItemOption;\n const edgeValue = params.value;\n const edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target;\n return createTooltipMarkup('nameValue', {\n name: edgeName,\n value: edgeValue,\n noValue: noValue(edgeValue)\n });\n }\n // dataType === 'node'\n else {\n const node = this.getGraph().getNodeByIndex(dataIndex);\n const value = node.getLayout().value;\n const name = (this.getDataParams(dataIndex, dataType).data as SankeyNodeItemOption).name;\n return createTooltipMarkup('nameValue', {\n name: name != null ? name + '' : null,\n value: value,\n noValue: noValue(value)\n });\n }\n }\n\n optionUpdated() {}\n\n // Override Series.getDataParams()\n getDataParams(dataIndex: number, dataType: 'node' | 'edge') {\n const params = super.getDataParams(dataIndex, dataType);\n if (params.value == null && dataType === 'node') {\n const node = this.getGraph().getNodeByIndex(dataIndex);\n const nodeValue = node.getLayout().value;\n params.value = nodeValue;\n }\n return params;\n }\n\n static defaultOption: SankeySeriesOption = {\n zlevel: 0,\n z: 2,\n\n coordinateSystem: 'view',\n\n left: '5%',\n top: '5%',\n right: '20%',\n bottom: '5%',\n\n orient: 'horizontal',\n\n nodeWidth: 20,\n\n nodeGap: 8,\n draggable: true,\n\n layoutIterations: 32,\n\n label: {\n show: true,\n position: 'right',\n fontSize: 12\n },\n\n levels: [],\n\n nodeAlign: 'justify',\n\n lineStyle: {\n color: '#314656',\n opacity: 0.2,\n curveness: 0.5\n },\n\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n opacity: 0.5\n }\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n\n animationEasing: 'linear',\n\n animationDuration: 1000\n };\n}\n\nexport default SankeySeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {groupData} from '../../util/model';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SankeySeriesModel, { SankeySeriesOption, SankeyNodeItemOption } from './SankeySeries';\nimport { GraphNode, GraphEdge } from '../../data/Graph';\nimport { LayoutOrient } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\nexport default function sankeyLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n\n ecModel.eachSeriesByType('sankey', function (seriesModel: SankeySeriesModel) {\n\n const nodeWidth = seriesModel.get('nodeWidth');\n const nodeGap = seriesModel.get('nodeGap');\n\n const layoutInfo = getViewRect(seriesModel, api);\n\n seriesModel.layoutInfo = layoutInfo;\n\n const width = layoutInfo.width;\n const height = layoutInfo.height;\n\n const graph = seriesModel.getGraph();\n\n const nodes = graph.nodes;\n const edges = graph.edges;\n\n computeNodeValues(nodes);\n\n const filteredNodes = zrUtil.filter(nodes, function (node) {\n return node.getLayout().value === 0;\n });\n\n const iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');\n\n const orient = seriesModel.get('orient');\n\n const nodeAlign = seriesModel.get('nodeAlign');\n\n layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);\n });\n}\n\n/**\n * Get the layout position of the whole view\n */\nfunction getViewRect(seriesModel: SankeySeriesModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n}\n\nfunction layoutSankey(\n nodes: GraphNode[],\n edges: GraphEdge[],\n nodeWidth: number,\n nodeGap: number,\n width: number,\n height: number,\n iterations: number,\n orient: LayoutOrient,\n nodeAlign: SankeySeriesOption['nodeAlign']\n) {\n computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);\n computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);\n computeEdgeDepths(nodes, orient);\n}\n\n/**\n * Compute the value of each node by summing the associated edge's value\n */\nfunction computeNodeValues(nodes: GraphNode[]) {\n zrUtil.each(nodes, function (node) {\n const value1 = sum(node.outEdges, getEdgeValue);\n const value2 = sum(node.inEdges, getEdgeValue);\n const nodeRawValue = node.getValue() as number || 0;\n const value = Math.max(value1, value2, nodeRawValue);\n node.setLayout({value: value}, true);\n });\n}\n\n/**\n * Compute the x-position for each node.\n *\n * Here we use Kahn algorithm to detect cycle when we traverse\n * the node to computer the initial x position.\n */\nfunction computeNodeBreadths(\n nodes: GraphNode[],\n edges: GraphEdge[],\n nodeWidth: number,\n width: number,\n height: number,\n orient: LayoutOrient,\n nodeAlign: SankeySeriesOption['nodeAlign']\n) {\n // Used to mark whether the edge is deleted. if it is deleted,\n // the value is 0, otherwise it is 1.\n const remainEdges = [];\n // Storage each node's indegree.\n const indegreeArr = [];\n //Used to storage the node with indegree is equal to 0.\n let zeroIndegrees: GraphNode[] = [];\n let nextTargetNode: GraphNode[] = [];\n let x = 0;\n // let kx = 0;\n\n for (let i = 0; i < edges.length; i++) {\n remainEdges[i] = 1;\n }\n for (let i = 0; i < nodes.length; i++) {\n indegreeArr[i] = nodes[i].inEdges.length;\n if (indegreeArr[i] === 0) {\n zeroIndegrees.push(nodes[i]);\n }\n }\n let maxNodeDepth = -1;\n // Traversing nodes using topological sorting to calculate the\n // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')\n // position of the nodes.\n while (zeroIndegrees.length) {\n for (let idx = 0; idx < zeroIndegrees.length; idx++) {\n const node = zeroIndegrees[idx];\n const item = node.hostGraph.data.getRawDataItem(node.dataIndex) as SankeyNodeItemOption;\n const isItemDepth = item.depth != null && item.depth >= 0;\n if (isItemDepth && item.depth > maxNodeDepth) {\n maxNodeDepth = item.depth;\n }\n node.setLayout({depth: isItemDepth ? item.depth : x}, true);\n orient === 'vertical'\n ? node.setLayout({dy: nodeWidth}, true)\n : node.setLayout({dx: nodeWidth}, true);\n\n for (let edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {\n const edge = node.outEdges[edgeIdx];\n const indexEdge = edges.indexOf(edge);\n remainEdges[indexEdge] = 0;\n const targetNode = edge.node2;\n const nodeIndex = nodes.indexOf(targetNode);\n if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {\n nextTargetNode.push(targetNode);\n }\n }\n }\n ++x;\n zeroIndegrees = nextTargetNode;\n nextTargetNode = [];\n }\n\n for (let i = 0; i < remainEdges.length; i++) {\n if (remainEdges[i] === 1) {\n throw new Error('Sankey is a DAG, the original data has cycle!');\n }\n }\n\n const maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;\n if (nodeAlign && nodeAlign !== 'left') {\n adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);\n }\n const kx = orient === 'vertical'\n ? (height - nodeWidth) / maxDepth\n : (width - nodeWidth) / maxDepth;\n\n scaleNodeBreadths(nodes, kx, orient);\n}\n\nfunction isNodeDepth(node: GraphNode) {\n const item = node.hostGraph.data.getRawDataItem(node.dataIndex) as SankeyNodeItemOption;\n return item.depth != null && item.depth >= 0;\n}\n\nfunction adjustNodeWithNodeAlign(\n nodes: GraphNode[],\n nodeAlign: SankeySeriesOption['nodeAlign'],\n orient: LayoutOrient,\n maxDepth: number\n) {\n if (nodeAlign === 'right') {\n let nextSourceNode: GraphNode[] = [];\n let remainNodes = nodes;\n let nodeHeight = 0;\n while (remainNodes.length) {\n for (let i = 0; i < remainNodes.length; i++) {\n const node = remainNodes[i];\n node.setLayout({skNodeHeight: nodeHeight}, true);\n for (let j = 0; j < node.inEdges.length; j++) {\n const edge = node.inEdges[j];\n if (nextSourceNode.indexOf(edge.node1) < 0) {\n nextSourceNode.push(edge.node1);\n }\n }\n }\n remainNodes = nextSourceNode;\n nextSourceNode = [];\n ++nodeHeight;\n }\n\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node)) {\n node.setLayout({depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)}, true);\n }\n });\n }\n else if (nodeAlign === 'justify') {\n moveSinksRight(nodes, maxDepth);\n }\n}\n\n/**\n * All the node without outEgdes are assigned maximum x-position and\n * be aligned in the last column.\n *\n * @param nodes. node of sankey view.\n * @param maxDepth. use to assign to node without outEdges as x-position.\n */\nfunction moveSinksRight(nodes: GraphNode[], maxDepth: number) {\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node) && !node.outEdges.length) {\n node.setLayout({depth: maxDepth}, true);\n }\n });\n}\n\n/**\n * Scale node x-position to the width\n *\n * @param nodes node of sankey view\n * @param kx multiple used to scale nodes\n */\nfunction scaleNodeBreadths(nodes: GraphNode[], kx: number, orient: LayoutOrient) {\n zrUtil.each(nodes, function (node) {\n const nodeDepth = node.getLayout().depth * kx;\n orient === 'vertical'\n ? node.setLayout({y: nodeDepth}, true)\n : node.setLayout({x: nodeDepth}, true);\n });\n}\n\n/**\n * Using Gauss-Seidel iterations method to compute the node depth(y-position)\n *\n * @param nodes node of sankey view\n * @param edges edge of sankey view\n * @param height the whole height of the area to draw the view\n * @param nodeGap the vertical distance between two nodes\n * in the same column.\n * @param iterations the number of iterations for the algorithm\n */\nfunction computeNodeDepths(\n nodes: GraphNode[],\n edges: GraphEdge[],\n height: number,\n width: number,\n nodeGap: number,\n iterations: number,\n orient: LayoutOrient\n) {\n const nodesByBreadth = prepareNodesByBreadth(nodes, orient);\n\n initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n\n for (let alpha = 1; iterations > 0; iterations--) {\n // 0.99 is a experience parameter, ensure that each iterations of\n // changes as small as possible.\n alpha *= 0.99;\n relaxRightToLeft(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n relaxLeftToRight(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n }\n}\n\nfunction prepareNodesByBreadth(nodes: GraphNode[], orient: LayoutOrient) {\n const nodesByBreadth: GraphNode[][] = [];\n const keyAttr = orient === 'vertical' ? 'y' : 'x';\n\n const groupResult = groupData(nodes, function (node) {\n return node.getLayout()[keyAttr] as number;\n });\n groupResult.keys.sort(function (a, b) {\n return a - b;\n });\n zrUtil.each(groupResult.keys, function (key) {\n nodesByBreadth.push(groupResult.buckets.get(key));\n });\n\n return nodesByBreadth;\n}\n\n/**\n * Compute the original y-position for each node\n */\nfunction initializeNodeDepth(\n nodesByBreadth: GraphNode[][],\n edges: GraphEdge[],\n height: number,\n width: number,\n nodeGap: number,\n orient: LayoutOrient\n) {\n let minKy = Infinity;\n zrUtil.each(nodesByBreadth, function (nodes) {\n const n = nodes.length;\n let sum = 0;\n zrUtil.each(nodes, function (node) {\n sum += node.getLayout().value;\n });\n const ky = orient === 'vertical'\n ? (width - (n - 1) * nodeGap) / sum\n : (height - (n - 1) * nodeGap) / sum;\n\n if (ky < minKy) {\n minKy = ky;\n }\n });\n\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node, i) {\n const nodeDy = node.getLayout().value * minKy;\n if (orient === 'vertical') {\n node.setLayout({x: i}, true);\n node.setLayout({dx: nodeDy}, true);\n }\n else {\n node.setLayout({y: i}, true);\n node.setLayout({dy: nodeDy}, true);\n }\n });\n });\n\n zrUtil.each(edges, function (edge) {\n const edgeDy = +edge.getValue() * minKy;\n edge.setLayout({dy: edgeDy}, true);\n });\n}\n\n/**\n * Resolve the collision of initialized depth (y-position)\n */\nfunction resolveCollisions(\n nodesByBreadth: GraphNode[][],\n nodeGap: number,\n height: number,\n width: number,\n orient: LayoutOrient\n) {\n const keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodesByBreadth, function (nodes) {\n nodes.sort(function (a, b) {\n return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];\n });\n let nodeX;\n let node;\n let dy;\n let y0 = 0;\n const n = nodes.length;\n const nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';\n for (let i = 0; i < n; i++) {\n node = nodes[i];\n dy = y0 - node.getLayout()[keyAttr];\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] + dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n }\n y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;\n }\n const viewWidth = orient === 'vertical' ? width : height;\n // If the bottommost node goes outside the bounds, push it back up\n dy = y0 - nodeGap - viewWidth;\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n\n y0 = nodeX;\n for (let i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical'\n ? node.setLayout({x: nodeX}, true)\n : node.setLayout({y: nodeX}, true);\n }\n y0 = node.getLayout()[keyAttr];\n }\n }\n });\n}\n\n/**\n * Change the y-position of the nodes, except most the right side nodes\n * @param nodesByBreadth\n * @param alpha parameter used to adjust the nodes y-position\n */\nfunction relaxRightToLeft(\n nodesByBreadth: GraphNode[][],\n alpha: number,\n orient: LayoutOrient\n) {\n zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.outEdges.length) {\n let y = sum(node.outEdges, weightedTarget, orient)\n / sum(node.outEdges, getEdgeValue);\n\n if (isNaN(y)) {\n const len = node.outEdges.length;\n y = len ? sum(node.outEdges, centerTarget, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n const nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({x: nodeX}, true);\n }\n else {\n const nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({y: nodeY}, true);\n }\n }\n });\n });\n}\n\nfunction weightedTarget(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node2, orient) * (edge.getValue() as number);\n}\nfunction centerTarget(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node2, orient);\n}\n\nfunction weightedSource(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node1, orient) * (edge.getValue() as number);\n}\nfunction centerSource(edge: GraphEdge, orient: LayoutOrient) {\n return center(edge.node1, orient);\n}\n\nfunction center(node: GraphNode, orient: LayoutOrient) {\n return orient === 'vertical'\n ? node.getLayout().x + node.getLayout().dx / 2\n : node.getLayout().y + node.getLayout().dy / 2;\n}\n\nfunction getEdgeValue(edge: GraphEdge) {\n return edge.getValue() as number;\n}\n\nfunction sum(array: T[], cb: (item: T, orient?: LayoutOrient) => number, orient?: LayoutOrient) {\n let sum = 0;\n const len = array.length;\n let i = -1;\n while (++i < len) {\n const value = +cb(array[i], orient);\n if (!isNaN(value)) {\n sum += value;\n }\n }\n return sum;\n}\n\n/**\n * Change the y-position of the nodes, except most the left side nodes\n */\nfunction relaxLeftToRight(nodesByBreadth: GraphNode[][], alpha: number, orient: LayoutOrient) {\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.inEdges.length) {\n let y = sum(node.inEdges, weightedSource, orient)\n / sum(node.inEdges, getEdgeValue);\n\n if (isNaN(y)) {\n const len = node.inEdges.length;\n y = len ? sum(node.inEdges, centerSource, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n const nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({x: nodeX}, true);\n }\n else {\n const nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({y: nodeY}, true);\n }\n }\n });\n });\n}\n\n/**\n * Compute the depth(y-position) of each edge\n */\nfunction computeEdgeDepths(nodes: GraphNode[], orient: LayoutOrient) {\n const keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodes, function (node) {\n node.outEdges.sort(function (a, b) {\n return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];\n });\n node.inEdges.sort(function (a, b) {\n return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];\n });\n });\n zrUtil.each(nodes, function (node) {\n let sy = 0;\n let ty = 0;\n zrUtil.each(node.outEdges, function (edge) {\n edge.setLayout({sy: sy}, true);\n sy += edge.getLayout().dy;\n });\n zrUtil.each(node.inEdges, function (edge) {\n edge.setLayout({ty: ty}, true);\n ty += edge.getLayout().dy;\n });\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapping from '../../visual/VisualMapping';\nimport GlobalModel from '../../model/Global';\nimport SankeySeriesModel, { SankeyNodeItemOption } from './SankeySeries';\n\nexport default function sankeyVisual(ecModel: GlobalModel) {\n ecModel.eachSeriesByType('sankey', function (seriesModel: SankeySeriesModel) {\n const graph = seriesModel.getGraph();\n const nodes = graph.nodes;\n if (nodes.length) {\n let minValue = Infinity;\n let maxValue = -Infinity;\n zrUtil.each(nodes, function (node) {\n const nodeValue = node.getLayout().value;\n if (nodeValue < minValue) {\n minValue = nodeValue;\n }\n if (nodeValue > maxValue) {\n maxValue = nodeValue;\n }\n });\n\n zrUtil.each(nodes, function (node) {\n const mapping = new VisualMapping({\n type: 'color',\n mappingMethod: 'linear',\n dataExtent: [minValue, maxValue],\n visual: seriesModel.get('color')\n });\n\n const mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);\n const customColor = node.getModel().get(['itemStyle', 'color']);\n if (customColor != null) {\n node.setVisual('color', customColor);\n node.setVisual('style', {fill: customColor});\n }\n else {\n node.setVisual('color', mapValueToColor);\n node.setVisual('style', {fill: mapValueToColor});\n }\n });\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SankeyView from './SankeyView';\nimport SankeySeriesModel from './SankeySeries';\n\nimport sankeyLayout from './sankeyLayout';\nimport sankeyVisual from './sankeyVisual';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\ninterface SankeyDragNodePayload extends Payload {\n localX: number\n localY: number\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(SankeyView);\n registers.registerSeriesModel(SankeySeriesModel);\n\n registers.registerLayout(sankeyLayout);\n registers.registerVisual(sankeyVisual);\n\n registers.registerAction({\n type: 'dragNode',\n event: 'dragnode',\n // here can only use 'update' now, other value is not support in echarts.\n update: 'update'\n }, function (payload: SankeyDragNodePayload, ecModel: GlobalModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sankey',\n query: payload\n }, function (seriesModel: SankeySeriesModel) {\n seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]);\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesDataSimply from './createSeriesDataSimply';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport {makeSeriesEncodeForAxisCoordSys} from '../../data/helper/sourceHelper';\nimport type { SeriesOption, SeriesOnCartesianOptionMixin, LayoutOrient } from '../../util/types';\nimport type GlobalModel from '../../model/Global';\nimport type SeriesModel from '../../model/Series';\nimport type CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport type SeriesData from '../../data/SeriesData';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport { CoordDimensionDefinition } from '../../data/helper/createDimensions';\n\ninterface CommonOption extends SeriesOption, SeriesOnCartesianOptionMixin {\n layout?: LayoutOrient\n\n // data?: (DataItemOption | number[])[]\n}\n\ntype WhiskerBoxCommonData = (DataItemOption | number[])[];\n\ninterface DataItemOption {\n value?: number[]\n}\n\ninterface WhiskerBoxCommonMixin extends SeriesModel{}\nclass WhiskerBoxCommonMixin {\n\n /**\n * @private\n * @type {string}\n */\n _baseAxisDim: string;\n\n defaultValueDimensions: CoordDimensionDefinition['dimsDef'];\n\n /**\n * @override\n */\n getInitialData(option: Opts, ecModel: GlobalModel): SeriesData {\n // When both types of xAxis and yAxis are 'value', layout is\n // needed to be specified by user. Otherwise, layout can be\n // judged by which axis is category.\n\n let ordinalMeta;\n\n const xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex')) as CartesianAxisModel;\n const yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex')) as CartesianAxisModel;\n const xAxisType = xAxisModel.get('type');\n const yAxisType = yAxisModel.get('type');\n let addOrdinal;\n\n // FIXME\n // Consider time axis.\n\n if (xAxisType === 'category') {\n option.layout = 'horizontal';\n ordinalMeta = xAxisModel.getOrdinalMeta();\n addOrdinal = true;\n }\n else if (yAxisType === 'category') {\n option.layout = 'vertical';\n ordinalMeta = yAxisModel.getOrdinalMeta();\n addOrdinal = true;\n }\n else {\n option.layout = option.layout || 'horizontal';\n }\n\n const coordDims = ['x', 'y'];\n const baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;\n const baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];\n const otherAxisDim = coordDims[1 - baseAxisDimIndex];\n const axisModels = [xAxisModel, yAxisModel];\n const baseAxisType = axisModels[baseAxisDimIndex].get('type');\n const otherAxisType = axisModels[1 - baseAxisDimIndex].get('type');\n const data = option.data as WhiskerBoxCommonData;\n\n // Clone a new data for next setOption({}) usage.\n // Avoid modifying current data will affect further update.\n if (data && addOrdinal) {\n const newOptionData: WhiskerBoxCommonData = [];\n zrUtil.each(data, function (item, index) {\n let newItem;\n if (zrUtil.isArray(item)) {\n newItem = item.slice();\n // Modify current using data.\n item.unshift(index);\n }\n else if (zrUtil.isArray(item.value)) {\n newItem = zrUtil.extend({}, item);\n newItem.value = newItem.value.slice();\n // Modify current using data.\n item.value.unshift(index);\n }\n else {\n newItem = item;\n }\n newOptionData.push(newItem);\n });\n option.data = newOptionData;\n }\n\n const defaultValueDimensions = this.defaultValueDimensions;\n const coordDimensions: CoordDimensionDefinition[] = [{\n name: baseAxisDim,\n type: getDimensionTypeByAxis(baseAxisType),\n ordinalMeta: ordinalMeta,\n otherDims: {\n tooltip: false,\n itemName: 0\n },\n dimsDef: ['base']\n }, {\n name: otherAxisDim,\n type: getDimensionTypeByAxis(otherAxisType),\n dimsDef: defaultValueDimensions.slice()\n }];\n\n return createSeriesDataSimply(\n this,\n {\n coordDimensions: coordDimensions,\n dimensionsCount: defaultValueDimensions.length + 1,\n encodeDefaulter: zrUtil.curry(\n makeSeriesEncodeForAxisCoordSys, coordDimensions, this as any\n )\n }\n );\n }\n\n /**\n * If horizontal, base axis is x, otherwise y.\n * @override\n */\n getBaseAxis(): Axis2D {\n const dim = this._baseAxisDim;\n return (this.ecModel.getComponent(\n dim + 'Axis', this.get(dim + 'AxisIndex' as 'xAxisIndex' | 'yAxisIndex')\n ) as CartesianAxisModel).axis;\n }\n\n};\n\n\nexport {WhiskerBoxCommonMixin};", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {WhiskerBoxCommonMixin} from '../helper/whiskerBoxCommon';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n LayoutOrient,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { mixin } from 'zrender/src/core/util';\n\n// [min, Q1, median (or Q2), Q3, max]\ntype BoxplotDataValue = OptionDataValueNumeric[];\n\n\nexport interface BoxplotStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface BoxplotDataItemOption\n extends BoxplotStateOption, StatesOptionMixin {\n value: BoxplotDataValue\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface BoxplotSeriesOption extends SeriesOption, BoxplotStateOption,\n SeriesOnCartesianOptionMixin, SeriesEncodeOptionMixin {\n type?: 'boxplot'\n\n coordinateSystem?: 'cartesian2d'\n\n layout?: LayoutOrient\n /**\n * [min, max] can be percent of band width.\n */\n boxWidth?: (string | number)[]\n\n data?: (BoxplotDataValue | BoxplotDataItemOption)[]\n}\n\nclass BoxplotSeriesModel extends SeriesModel {\n\n static readonly type = 'series.boxplot';\n readonly type = BoxplotSeriesModel.type;\n\n static readonly dependencies = ['xAxis', 'yAxis', 'grid'];\n\n coordinateSystem: Cartesian2D;\n // TODO\n // box width represents group size, so dimension should have 'size'.\n\n /**\n * @see \n * The meanings of 'min' and 'max' depend on user,\n * and echarts do not need to know it.\n * @readOnly\n */\n defaultValueDimensions = [\n {name: 'min', defaultTooltip: true},\n {name: 'Q1', defaultTooltip: true},\n {name: 'median', defaultTooltip: true},\n {name: 'Q3', defaultTooltip: true},\n {name: 'max', defaultTooltip: true}\n ];\n\n dimensions: string[];\n\n visualDrawType = 'stroke' as const;\n\n static defaultOption: BoxplotSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n layout: null,\n boxWidth: [7, 50],\n\n itemStyle: {\n color: '#fff',\n borderWidth: 1\n },\n\n emphasis: {\n scale: true,\n\n itemStyle: {\n borderWidth: 2,\n shadowBlur: 5,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n },\n\n animationDuration: 800\n };\n}\n\ninterface BoxplotSeriesModel extends WhiskerBoxCommonMixin {\n getBaseAxis(): Axis2D\n}\nmixin(BoxplotSeriesModel, WhiskerBoxCommonMixin, true);\n\nexport default BoxplotSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport BoxplotSeriesModel, { BoxplotDataItemOption } from './BoxplotSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport { BoxplotItemLayout } from './boxplotLayout';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nclass BoxplotView extends ChartView {\n static type = 'boxplot';\n type = BoxplotView.type;\n\n private _data: SeriesData;\n\n render(seriesModel: BoxplotSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const group = this.group;\n const oldData = this._data;\n\n // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!this._data) {\n group.removeAll();\n }\n\n const constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0;\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n const itemLayout = data.getItemLayout(newIdx) as BoxplotItemLayout;\n const symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n })\n .update(function (newIdx, oldIdx) {\n let symbolEl = oldData.getItemGraphicEl(oldIdx) as BoxPath;\n\n // Empty data\n if (!data.hasValue(newIdx)) {\n group.remove(symbolEl);\n return;\n }\n\n const itemLayout = data.getItemLayout(newIdx) as BoxplotItemLayout;\n if (!symbolEl) {\n symbolEl = createNormalBox(itemLayout, data, newIdx, constDim);\n }\n else {\n saveOldStyle(symbolEl);\n updateNormalBoxData(itemLayout, symbolEl, data, newIdx);\n }\n\n group.add(symbolEl);\n\n data.setItemGraphicEl(newIdx, symbolEl);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n })\n .execute();\n\n this._data = data;\n }\n\n remove(ecModel: GlobalModel) {\n const group = this.group;\n const data = this._data;\n this._data = null;\n data && data.eachItemGraphicEl(function (el) {\n el && group.remove(el);\n });\n }\n}\n\nclass BoxPathShape {\n points: number[][];\n}\n\ninterface BoxPathProps extends PathProps {\n shape?: Partial\n}\n\nclass BoxPath extends Path {\n\n readonly type = 'boxplotBoxPath';\n shape: BoxPathShape;\n\n constructor(opts?: BoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new BoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: BoxPathShape) {\n const ends = shape.points;\n\n let i = 0;\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n for (; i < 4; i++) {\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n ctx.closePath();\n\n for (; i < ends.length; i++) {\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n }\n\n}\n\nfunction createNormalBox(\n itemLayout: BoxplotItemLayout,\n data: SeriesData,\n dataIndex: number,\n constDim: number,\n isInit?: boolean\n) {\n const ends = itemLayout.ends;\n\n const el = new BoxPath({\n shape: {\n points: isInit\n ? transInit(ends, constDim, itemLayout)\n : ends\n }\n });\n\n updateNormalBoxData(itemLayout, el, data, dataIndex, isInit);\n\n return el;\n}\n\nfunction updateNormalBoxData(\n itemLayout: BoxplotItemLayout,\n el: BoxPath,\n data: SeriesData,\n dataIndex: number,\n isInit?: boolean\n) {\n const seriesModel = data.hostModel;\n const updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];\n\n updateMethod(\n el,\n {shape: {points: itemLayout.ends}},\n seriesModel,\n dataIndex\n );\n\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n\n el.z2 = 100;\n\n const itemModel = data.getItemModel(dataIndex);\n\n setStatesStylesFromModel(el, itemModel);\n\n enableHoverEmphasis(el, itemModel.get(['emphasis', 'focus']), itemModel.get(['emphasis', 'blurScope']));\n}\n\nfunction transInit(points: number[][], dim: number, itemLayout: BoxplotItemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[dim] = itemLayout.initBaseline;\n return point;\n });\n}\n\nexport default BoxplotView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport BoxplotSeriesModel from './BoxplotSeries';\n\nexport default function boxplotVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../../util/number';\nimport type GlobalModel from '../../model/Global';\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\nconst each = zrUtil.each;\n\ninterface GroupItem {\n seriesModels: BoxplotSeriesModel[]\n axis: Axis2D\n boxOffsetList: number[]\n boxWidthList: number[]\n}\n\nexport interface BoxplotItemLayout {\n ends: number[][]\n initBaseline: number\n}\n\nexport default function boxplotLayout(ecModel: GlobalModel) {\n\n const groupResult = groupSeriesByAxis(ecModel);\n\n each(groupResult, function (groupItem) {\n const seriesModels = groupItem.seriesModels;\n\n if (!seriesModels.length) {\n return;\n }\n\n calculateBase(groupItem);\n\n each(seriesModels, function (seriesModel, idx) {\n layoutSingleSeries(\n seriesModel,\n groupItem.boxOffsetList[idx],\n groupItem.boxWidthList[idx]\n );\n });\n });\n}\n\n/**\n * Group series by axis.\n */\nfunction groupSeriesByAxis(ecModel: GlobalModel) {\n const result: GroupItem[] = [];\n const axisList: Axis2D[] = [];\n\n ecModel.eachSeriesByType('boxplot', function (seriesModel: BoxplotSeriesModel) {\n const baseAxis = seriesModel.getBaseAxis();\n let idx = zrUtil.indexOf(axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {\n axis: baseAxis,\n seriesModels: []\n } as GroupItem;\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n\n return result;\n}\n\n/**\n * Calculate offset and box width for each series.\n */\nfunction calculateBase(groupItem: GroupItem) {\n let extent;\n const baseAxis = groupItem.axis;\n const seriesModels = groupItem.seriesModels;\n const seriesCount = seriesModels.length;\n\n const boxWidthList: number[] = groupItem.boxWidthList = [];\n const boxOffsetList: number[] = groupItem.boxOffsetList = [];\n const boundList: number[][] = [];\n\n let bandWidth: number;\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n }\n else {\n let maxDataCount = 0;\n each(seriesModels, function (seriesModel) {\n maxDataCount = Math.max(maxDataCount, seriesModel.getData().count());\n });\n extent = baseAxis.getExtent(),\n Math.abs(extent[1] - extent[0]) / maxDataCount;\n }\n\n each(seriesModels, function (seriesModel) {\n let boxWidthBound = seriesModel.get('boxWidth');\n if (!zrUtil.isArray(boxWidthBound)) {\n boxWidthBound = [boxWidthBound, boxWidthBound];\n }\n boundList.push([\n parsePercent(boxWidthBound[0], bandWidth) || 0,\n parsePercent(boxWidthBound[1], bandWidth) || 0\n ]);\n });\n\n const availableWidth = bandWidth * 0.8 - 2;\n const boxGap = availableWidth / seriesCount * 0.3;\n const boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;\n let base = boxWidth / 2 - availableWidth / 2;\n\n each(seriesModels, function (seriesModel, idx) {\n boxOffsetList.push(base);\n base += boxGap + boxWidth;\n\n boxWidthList.push(\n Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])\n );\n });\n}\n\n/**\n * Calculate points location for each series.\n */\nfunction layoutSingleSeries(seriesModel: BoxplotSeriesModel, offset: number, boxWidth: number) {\n const coordSys = seriesModel.coordinateSystem;\n const data = seriesModel.getData();\n const halfWidth = boxWidth / 2;\n const cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n const vDimIdx = 1 - cDimIdx;\n const coordDims = ['x', 'y'];\n const cDim = data.mapDimension(coordDims[cDimIdx]);\n const vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (let dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n const axisDimVal = data.get(cDim, dataIndex) as number;\n\n const median = getPoint(axisDimVal, vDims[2], dataIndex);\n const end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n const end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n const end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n const end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n\n const ends: number[][] = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n } as BoxplotItemLayout);\n }\n\n function getPoint(axisDimVal: number, dim: string, dataIndex: number) {\n const val = data.get(dim, dataIndex) as number;\n const p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n let point;\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n }\n else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n return point;\n }\n\n function addBodyEnd(ends: number[][], point: number[], start?: boolean) {\n const point1 = point.slice();\n const point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start\n ? ends.push(point1, point2)\n : ends.push(point2, point1);\n }\n\n function layEndLine(ends: number[][], endCenter: number[]) {\n const from = endCenter.slice();\n const to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { quantile, asc } from '../../util/number';\nimport { isFunction, isString } from 'zrender/src/core/util';\n\nexport interface PrepareBoxplotDataOpt {\n boundIQR?: number | 'none';\n // Like \"expriment{value}\" produce: \"expriment0\", \"expriment1\", ...\n itemNameFormatter?: string | ((params: { value: number }) => string);\n}\n\n\n/**\n * See:\n * \n * \n *\n * Helper method for preparing data.\n *\n * @param rawData like\n * [\n * [12,232,443], (raw data set for the first box)\n * [3843,5545,1232], (raw data set for the second box)\n * ...\n * ]\n * @param opt.boundIQR=1.5 Data less than min bound is outlier.\n * default 1.5, means Q1 - 1.5 * (Q3 - Q1).\n * If 'none'/0 passed, min bound will not be used.\n */\nexport default function prepareBoxplotData(\n rawData: number[][],\n opt: PrepareBoxplotDataOpt\n): {\n boxData: (number | string)[][];\n outliers: (number | string)[][];\n} {\n opt = opt || {};\n const boxData = [];\n const outliers = [];\n const boundIQR = opt.boundIQR;\n const useExtreme = boundIQR === 'none' || boundIQR === 0;\n\n for (let i = 0; i < rawData.length; i++) {\n const ascList = asc(rawData[i].slice());\n\n const Q1 = quantile(ascList, 0.25);\n const Q2 = quantile(ascList, 0.5);\n const Q3 = quantile(ascList, 0.75);\n const min = ascList[0];\n const max = ascList[ascList.length - 1];\n\n const bound = (boundIQR == null ? 1.5 : boundIQR as number) * (Q3 - Q1);\n\n const low = useExtreme\n ? min\n : Math.max(min, Q1 - bound);\n const high = useExtreme\n ? max\n : Math.min(max, Q3 + bound);\n\n const itemNameFormatter = opt.itemNameFormatter;\n const itemName = isFunction(itemNameFormatter)\n ? itemNameFormatter({ value: i })\n : isString(itemNameFormatter)\n ? itemNameFormatter.replace('{value}', i + '')\n : i + '';\n\n boxData.push([itemName, low, Q1, Q2, Q3, high]);\n\n for (let j = 0; j < ascList.length; j++) {\n const dataItem = ascList[j];\n if (dataItem < low || dataItem > high) {\n const outlier = [itemName, dataItem];\n outliers.push(outlier);\n }\n }\n }\n return {\n boxData: boxData,\n outliers: outliers\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { DataTransformOption, ExternalDataTransform } from '../../data/helper/transform';\nimport prepareBoxplotData, { PrepareBoxplotDataOpt } from './prepareBoxplotData';\nimport { throwError, makePrintable } from '../../util/log';\nimport { SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\n\n\nexport interface BoxplotTransformOption extends DataTransformOption {\n type: 'boxplot';\n config: PrepareBoxplotDataOpt;\n}\n\nexport const boxplotTransform: ExternalDataTransform = {\n\n type: 'echarts:boxplot',\n\n transform: function transform(params) {\n const upstream = params.upstream;\n\n if (upstream.sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n 'source data is not applicable for this boxplot transform. Expect number[][].'\n );\n }\n throwError(errMsg);\n }\n\n const result = prepareBoxplotData(\n upstream.getRawData() as number[][],\n params.config\n );\n\n return [{\n dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'],\n data: result.boxData\n }, {\n data: result.outliers\n }];\n }\n};\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport BoxplotView from './BoxplotView';\nimport boxplotVisual from './boxplotVisual';\nimport boxplotLayout from './boxplotLayout';\nimport { boxplotTransform } from './boxplotTransform';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerSeriesModel(BoxplotSeriesModel);\n registers.registerChartView(BoxplotView);\n registers.registerVisual(boxplotVisual);\n registers.registerLayout(boxplotLayout);\n registers.registerTransform(boxplotTransform);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel } from '../../util/states';\nimport Path, { PathProps } from 'zrender/src/graphic/Path';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport CandlestickSeriesModel, { CandlestickDataItemOption } from './CandlestickSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { StageHandlerProgressParams } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport {CandlestickItemLayout} from './candlestickLayout';\nimport { CoordinateSystemClipArea } from '../../coord/CoordinateSystem';\nimport Model from '../../model/Model';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst SKIP_PROPS = ['color', 'borderColor'] as const;\n\nclass CandlestickView extends ChartView {\n\n static readonly type = 'candlestick';\n readonly type = CandlestickView.type;\n\n private _isLargeDraw: boolean;\n\n private _data: SeriesData;\n\n render(seriesModel: CandlestickSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n // If there is clipPath created in large mode. Remove it.\n this.group.removeClipPath();\n\n this._updateDrawMode(seriesModel);\n\n this._isLargeDraw\n ? this._renderLarge(seriesModel)\n : this._renderNormal(seriesModel);\n }\n\n incrementalPrepareRender(seriesModel: CandlestickSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._clear();\n this._updateDrawMode(seriesModel);\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: CandlestickSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._isLargeDraw\n ? this._incrementalRenderLarge(params, seriesModel)\n : this._incrementalRenderNormal(params, seriesModel);\n }\n\n _updateDrawMode(seriesModel: CandlestickSeriesModel) {\n const isLargeDraw = seriesModel.pipelineContext.large;\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n this._clear();\n }\n }\n\n _renderNormal(seriesModel: CandlestickSeriesModel) {\n const data = seriesModel.getData();\n const oldData = this._data;\n const group = this.group;\n const isSimpleBox = data.getLayout('isSimpleBox');\n\n const needsClip = seriesModel.get('clip', true);\n const coord = seriesModel.coordinateSystem;\n const clipArea = coord.getArea && coord.getArea();\n\n // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n if (!this._data) {\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n const itemLayout = data.getItemLayout(newIdx) as CandlestickItemLayout;\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n return;\n }\n\n const el = createNormalBox(itemLayout, newIdx, true);\n graphic.initProps(el, {shape: {points: itemLayout.ends}}, seriesModel, newIdx);\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n\n group.add(el);\n\n data.setItemGraphicEl(newIdx, el);\n }\n })\n .update(function (newIdx, oldIdx) {\n let el = oldData.getItemGraphicEl(oldIdx) as NormalBoxPath;\n\n // Empty data\n if (!data.hasValue(newIdx)) {\n group.remove(el);\n return;\n }\n\n const itemLayout = data.getItemLayout(newIdx) as CandlestickItemLayout;\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n group.remove(el);\n return;\n }\n\n if (!el) {\n el = createNormalBox(itemLayout, newIdx);\n }\n else {\n graphic.updateProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n\n saveOldStyle(el);\n }\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n })\n .remove(function (oldIdx) {\n const el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n })\n .execute();\n\n this._data = data;\n }\n\n _renderLarge(seriesModel: CandlestickSeriesModel) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n\n const clipPath = seriesModel.get('clip', true)\n ? createClipPath(seriesModel.coordinateSystem, false, seriesModel)\n : null;\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n\n }\n\n _incrementalRenderNormal(params: StageHandlerProgressParams, seriesModel: CandlestickSeriesModel) {\n const data = seriesModel.getData();\n const isSimpleBox = data.getLayout('isSimpleBox');\n\n let dataIndex;\n while ((dataIndex = params.next()) != null) {\n const itemLayout = data.getItemLayout(dataIndex) as CandlestickItemLayout;\n const el = createNormalBox(itemLayout, dataIndex);\n setBoxCommon(el, data, dataIndex, isSimpleBox);\n\n el.incremental = true;\n this.group.add(el);\n }\n }\n\n _incrementalRenderLarge(params: StageHandlerProgressParams, seriesModel: CandlestickSeriesModel) {\n createLarge(seriesModel, this.group, true);\n }\n\n remove(ecModel: GlobalModel) {\n this._clear();\n }\n\n _clear() {\n this.group.removeAll();\n this._data = null;\n }\n}\n\nclass NormalBoxPathShape {\n points: number[][];\n}\n\ninterface NormalBoxPathProps extends PathProps {\n shape?: Partial\n}\n\nclass NormalBoxPath extends Path {\n\n readonly type = 'normalCandlestickBox';\n\n shape: NormalBoxPathShape;\n\n __simpleBox: boolean;\n\n constructor(opts?: NormalBoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new NormalBoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: NormalBoxPathShape) {\n const ends = shape.points;\n\n if (this.__simpleBox) {\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[6][0], ends[6][1]);\n }\n else {\n ctx.moveTo(ends[0][0], ends[0][1]);\n ctx.lineTo(ends[1][0], ends[1][1]);\n ctx.lineTo(ends[2][0], ends[2][1]);\n ctx.lineTo(ends[3][0], ends[3][1]);\n ctx.closePath();\n\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[5][0], ends[5][1]);\n ctx.moveTo(ends[6][0], ends[6][1]);\n ctx.lineTo(ends[7][0], ends[7][1]);\n }\n }\n}\n\n\nfunction createNormalBox(itemLayout: CandlestickItemLayout, dataIndex: number, isInit?: boolean) {\n const ends = itemLayout.ends;\n return new NormalBoxPath({\n shape: {\n points: isInit\n ? transInit(ends, itemLayout)\n : ends\n },\n z2: 100\n });\n}\n\nfunction isNormalBoxClipped(clipArea: CoordinateSystemClipArea, itemLayout: CandlestickItemLayout) {\n let clipped = true;\n for (let i = 0; i < itemLayout.ends.length; i++) {\n // If any point are in the region.\n if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) {\n clipped = false;\n break;\n }\n }\n return clipped;\n}\n\nfunction setBoxCommon(el: NormalBoxPath, data: SeriesData, dataIndex: number, isSimpleBox?: boolean) {\n const itemModel = data.getItemModel(dataIndex) as Model;\n\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n\n el.__simpleBox = isSimpleBox;\n\n setStatesStylesFromModel(el, itemModel);\n}\n\nfunction transInit(points: number[][], itemLayout: CandlestickItemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[1] = itemLayout.initBaseline;\n return point;\n });\n}\n\n\n\nclass LargeBoxPathShape {\n points: ArrayLike;\n}\n\ninterface LargeBoxPathProps extends PathProps {\n shape?: Partial\n __sign?: number\n}\n\nclass LargeBoxPath extends Path {\n readonly type = 'largeCandlestickBox';\n\n shape: LargeBoxPathShape;\n\n __sign: number;\n\n constructor(opts?: LargeBoxPathProps) {\n super(opts);\n }\n\n getDefaultShape() {\n return new LargeBoxPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n const points = shape.points;\n for (let i = 0; i < points.length;) {\n if (this.__sign === points[i++]) {\n const x = points[i++];\n ctx.moveTo(x, points[i++]);\n ctx.lineTo(x, points[i++]);\n }\n else {\n i += 3;\n }\n }\n }\n}\n\nfunction createLarge(seriesModel: CandlestickSeriesModel, group: graphic.Group, incremental?: boolean) {\n const data = seriesModel.getData();\n const largePoints = data.getLayout('largePoints');\n\n const elP = new LargeBoxPath({\n shape: {points: largePoints},\n __sign: 1\n });\n group.add(elP);\n const elN = new LargeBoxPath({\n shape: {points: largePoints},\n __sign: -1\n });\n group.add(elN);\n\n setLargeStyle(1, elP, seriesModel, data);\n setLargeStyle(-1, elN, seriesModel, data);\n\n if (incremental) {\n elP.incremental = true;\n elN.incremental = true;\n }\n}\n\nfunction setLargeStyle(sign: number, el: LargeBoxPath, seriesModel: CandlestickSeriesModel, data: SeriesData) {\n // TODO put in visual?\n const borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0'])\n || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']);\n\n // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n const itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);\n\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n}\n\n\n\nexport default CandlestickView;\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport {WhiskerBoxCommonMixin} from '../helper/whiskerBoxCommon';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n LayoutOrient,\n ItemStyleOption,\n ZRColor,\n ColorString,\n SeriesLabelOption,\n SeriesLargeOptionMixin,\n OptionDataValueNumeric,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\nimport { mixin } from 'zrender/src/core/util';\n\ntype CandlestickDataValue = OptionDataValueNumeric[];\n\ninterface CandlestickItemStyleOption extends ItemStyleOption {\n color0?: ZRColor\n borderColor0?: ColorString\n}\nexport interface CandlestickStateOption {\n itemStyle?: CandlestickItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface CandlestickDataItemOption\n extends CandlestickStateOption, StatesOptionMixin {\n value: CandlestickDataValue\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface CandlestickSeriesOption\n extends SeriesOption, CandlestickStateOption,\n SeriesOnCartesianOptionMixin,\n SeriesLargeOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'candlestick'\n\n coordinateSystem?: 'cartesian2d'\n\n layout?: LayoutOrient\n clip?: boolean\n\n barMaxWidth?: number | string\n barMinWidth?: number | string\n barWidth?: number | string\n\n data?: (CandlestickDataValue | CandlestickDataItemOption)[]\n}\n\nclass CandlestickSeriesModel extends SeriesModel {\n\n static readonly type = 'series.candlestick';\n readonly type = CandlestickSeriesModel.type;\n\n static readonly dependencies = ['xAxis', 'yAxis', 'grid'];\n\n coordinateSystem: Cartesian2D;\n\n dimensions: string[];\n\n defaultValueDimensions = [\n {name: 'open', defaultTooltip: true},\n {name: 'close', defaultTooltip: true},\n {name: 'lowest', defaultTooltip: true},\n {name: 'highest', defaultTooltip: true}\n ];\n\n static defaultOption: CandlestickSeriesOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n layout: null, // 'horizontal' or 'vertical'\n\n clip: true,\n\n itemStyle: {\n color: '#eb5454', // positive\n color0: '#47b262', // negative\n borderColor: '#eb5454',\n borderColor0: '#47b262',\n // borderColor: '#d24040',\n // borderColor0: '#398f4f',\n borderWidth: 1\n },\n\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2\n }\n },\n\n barMaxWidth: null,\n barMinWidth: null,\n barWidth: null,\n\n large: true,\n largeThreshold: 600,\n\n progressive: 3e3,\n progressiveThreshold: 1e4,\n progressiveChunkMode: 'mod',\n\n animationEasing: 'linear',\n animationDuration: 300\n };\n\n /**\n * Get dimension for shadow in dataZoom\n * @return dimension name\n */\n getShadowDim() {\n return 'open';\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n const itemLayout = data.getItemLayout(dataIndex);\n return itemLayout && selectors.rect(itemLayout.brushRect);\n }\n}\n\nmixin(CandlestickSeriesModel, WhiskerBoxCommonMixin, true);\n\nexport default CandlestickSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption } from '../../util/types';\n\nexport default function candlestickPreprocessor(option: ECUnitOption) {\n if (!option || !zrUtil.isArray(option.series)) {\n return;\n }\n\n // Translate 'k' to 'candlestick'.\n zrUtil.each(option.series, function (seriesItem) {\n if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {\n seriesItem.type = 'candlestick';\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { StageHandler } from '../../util/types';\nimport CandlestickSeriesModel, { CandlestickDataItemOption } from './CandlestickSeries';\nimport Model from '../../model/Model';\nimport { extend } from 'zrender/src/core/util';\n\nconst positiveBorderColorQuery = ['itemStyle', 'borderColor'] as const;\nconst negativeBorderColorQuery = ['itemStyle', 'borderColor0'] as const;\nconst positiveColorQuery = ['itemStyle', 'color'] as const;\nconst negativeColorQuery = ['itemStyle', 'color0'] as const;\n\nconst candlestickVisual: StageHandler = {\n\n seriesType: 'candlestick',\n\n plan: createRenderPlanner(),\n\n // For legend.\n performRawSeries: true,\n\n reset: function (seriesModel: CandlestickSeriesModel, ecModel) {\n\n function getColor(sign: number, model: Model>) {\n return model.get(\n sign > 0 ? positiveColorQuery : negativeColorQuery\n );\n }\n\n function getBorderColor(sign: number, model: Model>) {\n return model.get(\n sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery\n );\n }\n\n // Only visible series has each data be visual encoded\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n const isLargeRender = seriesModel.pipelineContext.large;\n return !isLargeRender && {\n progress(params, data) {\n let dataIndex;\n while ((dataIndex = params.next()) != null) {\n const itemModel = data.getItemModel(dataIndex);\n const sign = data.getItemLayout(dataIndex).sign;\n\n const style = itemModel.getItemStyle();\n style.fill = getColor(sign, itemModel);\n style.stroke = getBorderColor(sign, itemModel) || style.fill;\n\n const existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n extend(existsStyle, style);\n }\n }\n };\n\n\n }\n\n};\n\nexport default candlestickVisual;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport {subPixelOptimize} from '../../util/graphic';\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport {parsePercent} from '../../util/number';\nimport {map, retrieve2} from 'zrender/src/core/util';\nimport { DimensionIndex, StageHandler, StageHandlerProgressParams } from '../../util/types';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport SeriesData from '../../data/SeriesData';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport DataStorage from '../../data/DataStorage';\n\nconst LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\nexport interface CandlestickItemLayout {\n sign: number\n initBaseline: number\n ends: number[][]\n brushRect: RectLike\n}\n\nexport interface CandlestickLayoutMeta {\n candleWidth: number\n isSimpleBox: boolean\n}\n\nconst candlestickLayout: StageHandler = {\n\n seriesType: 'candlestick',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: CandlestickSeriesModel) {\n\n const coordSys = seriesModel.coordinateSystem;\n const data = seriesModel.getData();\n const candleWidth = calculateCandleWidth(seriesModel, data);\n const cDimIdx = 0;\n const vDimIdx = 1;\n const coordDims = ['x', 'y'];\n const cDimI = data.getDimensionIndex(data.mapDimension(coordDims[cDimIdx]));\n const vDimsI = map(data.mapDimensionsAll(coordDims[vDimIdx]), data.getDimensionIndex, data);\n const openDimI = vDimsI[0];\n const closeDimI = vDimsI[1];\n const lowestDimI = vDimsI[2];\n const highestDimI = vDimsI[3];\n\n data.setLayout({\n candleWidth: candleWidth,\n // The value is experimented visually.\n isSimpleBox: candleWidth <= 1.3\n } as CandlestickLayoutMeta);\n\n if (cDimI < 0 || vDimsI.length < 4) {\n return;\n }\n\n return {\n progress: seriesModel.pipelineContext.large\n ? largeProgress : normalProgress\n };\n\n function normalProgress(params: StageHandlerProgressParams, data: SeriesData) {\n let dataIndex;\n const storage = data.getStorage();\n while ((dataIndex = params.next()) != null) {\n\n const axisDimVal = storage.get(cDimI, dataIndex) as number;\n const openVal = storage.get(openDimI, dataIndex) as number;\n const closeVal = storage.get(closeDimI, dataIndex) as number;\n const lowestVal = storage.get(lowestDimI, dataIndex) as number;\n const highestVal = storage.get(highestDimI, dataIndex) as number;\n\n const ocLow = Math.min(openVal, closeVal);\n const ocHigh = Math.max(openVal, closeVal);\n\n const ocLowPoint = getPoint(ocLow, axisDimVal);\n const ocHighPoint = getPoint(ocHigh, axisDimVal);\n const lowestPoint = getPoint(lowestVal, axisDimVal);\n const highestPoint = getPoint(highestVal, axisDimVal);\n\n const ends: number[][] = [];\n addBodyEnd(ends, ocHighPoint, 0);\n addBodyEnd(ends, ocLowPoint, 1);\n\n ends.push(\n subPixelOptimizePoint(highestPoint),\n subPixelOptimizePoint(ocHighPoint),\n subPixelOptimizePoint(lowestPoint),\n subPixelOptimizePoint(ocLowPoint)\n );\n\n data.setItemLayout(dataIndex, {\n sign: getSign(storage, dataIndex, openVal, closeVal, closeDimI),\n initBaseline: openVal > closeVal\n ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], // open point.\n ends: ends,\n brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal)\n } as CandlestickItemLayout);\n }\n\n function getPoint(val: number, axisDimVal: number) {\n const p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n return (isNaN(axisDimVal) || isNaN(val))\n ? [NaN, NaN]\n : coordSys.dataToPoint(p);\n }\n\n function addBodyEnd(ends: number[][], point: number[], start: number) {\n const point1 = point.slice();\n const point2 = point.slice();\n\n point1[cDimIdx] = subPixelOptimize(\n point1[cDimIdx] + candleWidth / 2, 1, false\n );\n point2[cDimIdx] = subPixelOptimize(\n point2[cDimIdx] - candleWidth / 2, 1, true\n );\n\n start\n ? ends.push(point1, point2)\n : ends.push(point2, point1);\n }\n\n function makeBrushRect(lowestVal: number, highestVal: number, axisDimVal: number) {\n const pmin = getPoint(lowestVal, axisDimVal);\n const pmax = getPoint(highestVal, axisDimVal);\n\n pmin[cDimIdx] -= candleWidth / 2;\n pmax[cDimIdx] -= candleWidth / 2;\n\n return {\n x: pmin[0],\n y: pmin[1],\n width: vDimIdx ? candleWidth : pmax[0] - pmin[0],\n height: vDimIdx ? pmax[1] - pmin[1] : candleWidth\n };\n }\n\n function subPixelOptimizePoint(point: number[]) {\n point[cDimIdx] = subPixelOptimize(point[cDimIdx], 1);\n return point;\n }\n }\n\n function largeProgress(params: StageHandlerProgressParams, data: SeriesData) {\n // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]\n const points = new LargeArr(params.count * 4);\n let offset = 0;\n let point;\n const tmpIn: number[] = [];\n const tmpOut: number[] = [];\n let dataIndex;\n const storage = data.getStorage();\n\n while ((dataIndex = params.next()) != null) {\n const axisDimVal = storage.get(cDimI, dataIndex) as number;\n const openVal = storage.get(openDimI, dataIndex) as number;\n const closeVal = storage.get(closeDimI, dataIndex) as number;\n const lowestVal = storage.get(lowestDimI, dataIndex) as number;\n const highestVal = storage.get(highestDimI, dataIndex) as number;\n\n if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) {\n points[offset++] = NaN;\n offset += 3;\n continue;\n }\n\n points[offset++] = getSign(storage, dataIndex, openVal, closeVal, closeDimI);\n\n tmpIn[cDimIdx] = axisDimVal;\n\n tmpIn[vDimIdx] = lowestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n tmpIn[vDimIdx] = highestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[1] : NaN;\n }\n\n data.setLayout('largePoints', points);\n }\n }\n};\n\nfunction getSign(\n storage: DataStorage, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex\n): -1 | 1 {\n let sign: -1 | 1;\n if (openVal > closeVal) {\n sign = -1;\n }\n else if (openVal < closeVal) {\n sign = 1;\n }\n else {\n sign = dataIndex > 0\n // If close === open, compare with close of last record\n ? (storage.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1)\n // No record of previous, set to be positive\n : 1;\n }\n\n return sign;\n}\n\nfunction calculateCandleWidth(seriesModel: CandlestickSeriesModel, data: SeriesData) {\n const baseAxis = seriesModel.getBaseAxis();\n let extent;\n\n const bandWidth = baseAxis.type === 'category'\n ? baseAxis.getBandWidth()\n : (\n extent = baseAxis.getExtent(),\n Math.abs(extent[1] - extent[0]) / data.count()\n );\n\n const barMaxWidth = parsePercent(\n retrieve2(seriesModel.get('barMaxWidth'), bandWidth),\n bandWidth\n );\n const barMinWidth = parsePercent(\n retrieve2(seriesModel.get('barMinWidth'), 1),\n bandWidth\n );\n const barWidth = seriesModel.get('barWidth');\n\n return barWidth != null\n ? parsePercent(barWidth, bandWidth)\n // Put max outer to ensure bar visible in spite of overlap.\n : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);\n}\n\nexport default candlestickLayout;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CandlestickView from './CandlestickView';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport preprocessor from './preprocessor';\n\nimport candlestickVisual from './candlestickVisual';\nimport candlestickLayout from './candlestickLayout';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(CandlestickView);\n registers.registerSeriesModel(CandlestickSeriesModel);\n registers.registerPreprocessor(preprocessor);\n registers.registerVisual(candlestickVisual);\n registers.registerLayout(candlestickLayout);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport {Group, Path} from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport SymbolClz from './Symbol';\nimport SeriesData from '../../data/SeriesData';\nimport type { ZRColor, ECElement } from '../../util/types';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport { SymbolDrawItemModelOption } from './SymbolDraw';\n\ninterface RippleEffectCfg {\n showEffectOn?: 'emphasis' | 'render'\n rippleScale?: number\n brushType?: 'fill' | 'stroke'\n period?: number\n effectOffset?: number\n z?: number\n zlevel?: number\n symbolType?: string\n color?: ZRColor\n rippleEffectColor?: ZRColor,\n rippleNumber?: number\n}\n\nfunction updateRipplePath(rippleGroup: Group, effectCfg: RippleEffectCfg) {\n const color = effectCfg.rippleEffectColor || effectCfg.color;\n rippleGroup.eachChild(function (ripplePath: Displayable) {\n ripplePath.attr({\n z: effectCfg.z,\n zlevel: effectCfg.zlevel,\n style: {\n stroke: effectCfg.brushType === 'stroke' ? color : null,\n fill: effectCfg.brushType === 'fill' ? color : null\n }\n });\n });\n}\n\nclass EffectSymbol extends Group {\n\n private _effectCfg: RippleEffectCfg;\n\n constructor(data: SeriesData, idx: number) {\n super();\n\n const symbol = new SymbolClz(data, idx);\n const rippleGroup = new Group();\n this.add(symbol);\n this.add(rippleGroup);\n\n this.updateData(data, idx);\n }\n\n\n stopEffectAnimation() {\n (this.childAt(1) as Group).removeAll();\n }\n\n startEffectAnimation(effectCfg: RippleEffectCfg) {\n const symbolType = effectCfg.symbolType;\n const color = effectCfg.color;\n const rippleNumber = effectCfg.rippleNumber;\n const rippleGroup = this.childAt(1) as Group;\n\n for (let i = 0; i < rippleNumber; i++) {\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4136.\n const ripplePath = createSymbol(\n symbolType, -1, -1, 2, 2, color\n );\n ripplePath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 99,\n silent: true,\n scaleX: 0.5,\n scaleY: 0.5\n });\n\n const delay = -i / rippleNumber * effectCfg.period + effectCfg.effectOffset;\n ripplePath.animate('', true)\n .when(effectCfg.period, {\n scaleX: effectCfg.rippleScale / 2,\n scaleY: effectCfg.rippleScale / 2\n })\n .delay(delay)\n .start();\n ripplePath.animateStyle(true)\n .when(effectCfg.period, {\n opacity: 0\n })\n .delay(delay)\n .start();\n\n rippleGroup.add(ripplePath);\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n }\n\n /**\n * Update effect symbol\n */\n updateEffectAnimation(effectCfg: RippleEffectCfg) {\n const oldEffectCfg = this._effectCfg;\n const rippleGroup = this.childAt(1) as Group;\n\n // Must reinitialize effect if following configuration changed\n const DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale', 'rippleNumber'] as const;\n for (let i = 0; i < DIFFICULT_PROPS.length; i++) {\n const propName = DIFFICULT_PROPS[i];\n if (oldEffectCfg[propName] !== effectCfg[propName]) {\n this.stopEffectAnimation();\n this.startEffectAnimation(effectCfg);\n return;\n }\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n }\n\n /**\n * Highlight symbol\n */\n highlight() {\n enterEmphasis(this);\n }\n\n /**\n * Downplay symbol\n */\n downplay() {\n leaveEmphasis(this);\n }\n\n getSymbolType() {\n const symbol = this.childAt(0) as SymbolClz;\n return symbol && symbol.getSymbolType();\n }\n\n /**\n * Update symbol properties\n */\n updateData(data: SeriesData, idx: number) {\n const seriesModel = data.hostModel;\n\n (this.childAt(0) as SymbolClz).updateData(data, idx);\n\n const rippleGroup = this.childAt(1);\n const itemModel = data.getItemModel(idx);\n const symbolType = data.getItemVisual(idx, 'symbol');\n const symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n\n const symbolStyle = data.getItemVisual(idx, 'style');\n const color = symbolStyle && symbolStyle.fill;\n\n rippleGroup.setScale(symbolSize);\n\n rippleGroup.traverse(function (ripplePath: Path) {\n ripplePath.setStyle('fill', color);\n });\n\n const symbolOffset = normalizeSymbolOffset(data.getItemVisual(idx, 'symbolOffset'), symbolSize);\n if (symbolOffset) {\n rippleGroup.x = symbolOffset[0];\n rippleGroup.y = symbolOffset[1];\n }\n\n const symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n const effectCfg: RippleEffectCfg = {};\n\n effectCfg.showEffectOn = seriesModel.get('showEffectOn');\n effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']);\n effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']);\n effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000;\n effectCfg.effectOffset = idx / data.count();\n effectCfg.z = seriesModel.getShallow('z') || 0;\n effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0;\n effectCfg.symbolType = symbolType;\n effectCfg.color = color;\n effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']);\n effectCfg.rippleNumber = itemModel.get(['rippleEffect', 'number']);\n\n this.off('mouseover').off('mouseout').off('emphasis').off('normal');\n\n if (effectCfg.showEffectOn === 'render') {\n this._effectCfg\n ? this.updateEffectAnimation(effectCfg)\n : this.startEffectAnimation(effectCfg);\n\n this._effectCfg = effectCfg;\n }\n else {\n // Not keep old effect config\n this._effectCfg = null;\n\n this.stopEffectAnimation();\n\n (this as ECElement).onHoverStateChange = (toState) => {\n if (toState === 'emphasis') {\n if (effectCfg.showEffectOn !== 'render') {\n this.startEffectAnimation(effectCfg);\n }\n }\n else if (toState === 'normal') {\n if (effectCfg.showEffectOn !== 'render') {\n this.stopEffectAnimation();\n }\n }\n };\n }\n\n this._effectCfg = effectCfg;\n\n enableHoverEmphasis(this);\n };\n\n fadeOut(cb: () => void) {\n this.off('mouseover').off('mouseout');\n cb && cb();\n };\n\n}\n\nexport default EffectSymbol;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SymbolDraw from '../helper/SymbolDraw';\nimport EffectSymbol from '../helper/EffectSymbol';\nimport * as matrix from 'zrender/src/core/matrix';\n\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\nimport { StageHandlerProgressExecutor } from '../../util/types';\n\nclass EffectScatterView extends ChartView {\n static readonly type = 'effectScatter';\n readonly type = EffectScatterView.type;\n\n private _symbolDraw: SymbolDraw;\n\n init() {\n this._symbolDraw = new SymbolDraw(EffectSymbol);\n }\n\n render(seriesModel: EffectScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const effectSymbolDraw = this._symbolDraw;\n effectSymbolDraw.updateData(data, {clipShape: this._getClipShape(seriesModel)});\n this.group.add(effectSymbolDraw.group);\n }\n\n _getClipShape(seriesModel: EffectScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n }\n\n updateTransform(seriesModel: EffectScatterSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n this.group.dirty();\n\n const res = pointsLayout('').reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout();\n }\n\n _updateGroupTransform(seriesModel: EffectScatterSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.getRoamTransform) {\n this.group.transform = matrix.clone(coordSys.getRoamTransform());\n this.group.decomposeTransform();\n }\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._symbolDraw && this._symbolDraw.remove(true);\n }\n\n}\nexport default EffectScatterView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport createSeriesData from '../helper/createSeriesData';\nimport SeriesModel from '../../model/Series';\nimport {\n SeriesOption,\n SeriesOnPolarOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnSingleOptionMixin,\n SymbolOptionMixin,\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n CallbackDataParams\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport type { SymbolDrawItemModelOption } from '../helper/SymbolDraw';\nimport { BrushCommonSelectorsForSeries } from '../../component/brush/selector';\n\ntype ScatterDataValue = OptionDataValue | OptionDataValue[];\n\nexport interface EffectScatterStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface EffectScatterDataItemOption extends SymbolOptionMixin,\n EffectScatterStateOption,\n StatesOptionMixin {\n name?: string\n\n value?: ScatterDataValue\n\n rippleEffect?: SymbolDrawItemModelOption['rippleEffect']\n}\n\nexport interface EffectScatterSeriesOption extends SeriesOption, EffectScatterStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin,\n SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin,\n SeriesEncodeOptionMixin {\n\n type?: 'effectScatter'\n\n coordinateSystem?: string\n\n effectType?: 'ripple'\n\n /**\n * When to show the effect\n */\n showEffectOn?: 'render' | 'emphasis'\n clip?: boolean\n\n /**\n * Ripple effect config\n */\n rippleEffect?: SymbolDrawItemModelOption['rippleEffect']\n\n data?: (EffectScatterDataItemOption | ScatterDataValue)[]\n}\nclass EffectScatterSeriesModel extends SeriesModel {\n static readonly type = 'series.effectScatter';\n type = EffectScatterSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar'];\n\n hasSymbolVisual = true;\n\n getInitialData(option: EffectScatterSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {useEncodeDefaulter: true});\n }\n\n brushSelector(dataIndex: number, data: SeriesData, selectors: BrushCommonSelectorsForSeries): boolean {\n return selectors.point(data.getItemLayout(dataIndex));\n }\n\n static defaultOption: EffectScatterSeriesOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n effectType: 'ripple',\n\n progressive: 0,\n\n // When to show the effect, option: 'render'|'emphasis'\n showEffectOn: 'render',\n clip: true,\n\n // Ripple effect config\n rippleEffect: {\n period: 4,\n // Scale of ripple\n scale: 2.5,\n // Brush type can be fill or stroke\n brushType: 'fill',\n // Ripple number\n number: 3\n },\n\n universalTransition: {\n divideShape: 'clone'\n },\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Polar coordinate system\n // polarIndex: 0,\n\n // Geo coordinate system\n // geoIndex: 0,\n\n // symbol: null, // \u56FE\u5F62\u7C7B\u578B\n symbolSize: 10 // \u56FE\u5F62\u5927\u5C0F\uFF0C\u534A\u5BBD\uFF08\u534A\u5F84\uFF09\u53C2\u6570\uFF0C\u5F53\u56FE\u5F62\u4E3A\u65B9\u5411\u6216\u83F1\u5F62\u5219\u603B\u5BBD\u5EA6\u4E3AsymbolSize * 2\n // symbolRotate: null, // \u56FE\u5F62\u65CB\u8F6C\u63A7\u5236\n\n // itemStyle: {\n // opacity: 1\n // }\n };\n}\n\nexport default EffectScatterSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport EffectScatterView from './EffectScatterView';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\n\nimport layoutPoints from '../../layout/points';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(EffectScatterView);\n registers.registerSeriesModel(EffectScatterSeriesModel);\n registers.registerLayout(layoutPoints('effectScatter'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Provide effect for line\n */\n\nimport * as graphic from '../../util/graphic';\nimport Line from './Line';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {createSymbol} from '../../util/symbol';\nimport * as vec2 from 'zrender/src/core/vector';\nimport * as curveUtil from 'zrender/src/core/curve';\nimport type SeriesData from '../../data/SeriesData';\nimport { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport Model from '../../model/Model';\nimport { ColorString } from '../../util/types';\n\nexport type ECSymbolOnEffectLine = ReturnType & {\n __t: number\n __lastT: number\n __p1: number[]\n __p2: number[]\n __cp1: number[]\n};\nclass EffectLine extends graphic.Group {\n\n private _symbolType: string;\n\n private _period: number;\n\n private _loop: boolean;\n\n private _symbolScale: number[];\n\n constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n super();\n this.add(this.createLine(lineData, idx, seriesScope));\n\n this._updateEffectSymbol(lineData, idx);\n }\n\n createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope): graphic.Group {\n return new Line(lineData, idx, seriesScope);\n }\n\n private _updateEffectSymbol(lineData: SeriesData, idx: number) {\n const itemModel = lineData.getItemModel(idx);\n const effectModel = itemModel.getModel('effect');\n let size = effectModel.get('symbolSize');\n const symbolType = effectModel.get('symbol');\n if (!zrUtil.isArray(size)) {\n size = [size, size];\n }\n\n const lineStyle = lineData.getItemVisual(idx, 'style');\n const color = effectModel.get('color') || (lineStyle && lineStyle.stroke);\n let symbol = this.childAt(1) as ECSymbolOnEffectLine;\n\n if (this._symbolType !== symbolType) {\n // Remove previous\n this.remove(symbol);\n\n symbol = createSymbol(\n symbolType, -0.5, -0.5, 1, 1, color\n ) as ECSymbolOnEffectLine;\n symbol.z2 = 100;\n symbol.culling = true;\n\n this.add(symbol);\n }\n\n // Symbol may be removed if loop is false\n if (!symbol) {\n return;\n }\n\n // Shadow color is same with color in default\n symbol.setStyle('shadowColor', color as ColorString);\n symbol.setStyle(effectModel.getItemStyle(['color']));\n\n symbol.scaleX = size[0];\n symbol.scaleY = size[1];\n\n symbol.setColor(color);\n\n this._symbolType = symbolType;\n this._symbolScale = size;\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n }\n\n private _updateEffectAnimation(\n lineData: SeriesData,\n effectModel: Model,\n idx: number\n ) {\n\n const symbol = this.childAt(1) as ECSymbolOnEffectLine;\n if (!symbol) {\n return;\n }\n\n const self = this;\n\n const points = lineData.getItemLayout(idx);\n\n let period = effectModel.get('period') * 1000;\n const loop = effectModel.get('loop');\n const constantSpeed = effectModel.get('constantSpeed');\n const delayExpr = zrUtil.retrieve(effectModel.get('delay'), function (idx) {\n return idx / lineData.count() * period / 3;\n });\n\n // Ignore when updating\n symbol.ignore = true;\n\n this._updateAnimationPoints(symbol, points);\n\n if (constantSpeed > 0) {\n period = this._getLineLength(symbol) / constantSpeed * 1000;\n }\n\n if (period !== this._period || loop !== this._loop) {\n\n symbol.stopAnimation();\n\n if (period > 0) {\n let delayNum: number;\n if (typeof delayExpr === 'function') {\n delayNum = delayExpr(idx);\n }\n else {\n delayNum = delayExpr;\n }\n if (symbol.__t > 0) {\n delayNum = -period * symbol.__t;\n }\n symbol.__t = 0;\n const animator = symbol.animate('', loop)\n .when(period, {\n __t: 1\n })\n .delay(delayNum)\n .during(function () {\n self._updateSymbolPosition(symbol);\n });\n if (!loop) {\n animator.done(function () {\n self.remove(symbol);\n });\n }\n animator.start();\n }\n }\n\n this._period = period;\n this._loop = loop;\n }\n\n protected _getLineLength(symbol: ECSymbolOnEffectLine) {\n // Not so accurate\n return (vec2.dist(symbol.__p1, symbol.__cp1)\n + vec2.dist(symbol.__cp1, symbol.__p2));\n }\n\n protected _updateAnimationPoints(symbol: ECSymbolOnEffectLine, points: number[][]) {\n symbol.__p1 = points[0];\n symbol.__p2 = points[1];\n symbol.__cp1 = points[2] || [\n (points[0][0] + points[1][0]) / 2,\n (points[0][1] + points[1][1]) / 2\n ];\n }\n\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n (this.childAt(0) as Line).updateData(lineData, idx, seriesScope);\n this._updateEffectSymbol(lineData, idx);\n }\n\n protected _updateSymbolPosition(symbol: ECSymbolOnEffectLine) {\n const p1 = symbol.__p1;\n const p2 = symbol.__p2;\n const cp1 = symbol.__cp1;\n const t = symbol.__t;\n const pos = [symbol.x, symbol.y];\n const lastPos = pos.slice();\n const quadraticAt = curveUtil.quadraticAt;\n const quadraticDerivativeAt = curveUtil.quadraticDerivativeAt;\n pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);\n pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t);\n\n // Tangent\n const tx = quadraticDerivativeAt(p1[0], cp1[0], p2[0], t);\n const ty = quadraticDerivativeAt(p1[1], cp1[1], p2[1], t);\n\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n // enable continuity trail for 'line', 'rect', 'roundRect' symbolType\n if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') {\n if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) {\n symbol.scaleY = vec2.dist(lastPos, pos) * 1.05;\n // make sure the last segment render within endPoint\n if (t === 1) {\n pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2;\n pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2;\n }\n }\n else if (symbol.__lastT === 1) {\n // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.\n symbol.scaleY = 2 * vec2.dist(p1, pos);\n }\n else {\n symbol.scaleY = this._symbolScale[1];\n }\n }\n symbol.__lastT = symbol.__t;\n symbol.ignore = false;\n symbol.x = pos[0];\n symbol.y = pos[1];\n }\n\n\n updateLayout(lineData: SeriesData, idx: number) {\n (this.childAt(0) as Line).updateLayout(lineData, idx);\n\n const effectModel = lineData.getItemModel(idx).getModel('effect');\n this._updateEffectAnimation(lineData, effectModel, idx);\n }\n}\nexport default EffectLine;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport type { LineDrawSeriesScope, LineDrawModelOption } from './LineDraw';\nimport type SeriesData from '../../data/SeriesData';\n\nclass Polyline extends graphic.Group {\n constructor(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n super();\n this._createPolyline(lineData, idx, seriesScope);\n }\n\n private _createPolyline(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n // let seriesModel = lineData.hostModel;\n const points = lineData.getItemLayout(idx);\n\n const line = new graphic.Polyline({\n shape: {\n points: points\n }\n });\n\n this.add(line);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n updateData(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const seriesModel = lineData.hostModel;\n\n const line = this.childAt(0) as graphic.Polyline;\n const target = {\n shape: {\n points: lineData.getItemLayout(idx) as number[][]\n }\n };\n graphic.updateProps(line, target, seriesModel, idx);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n _updateCommonStl(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n const line = this.childAt(0) as graphic.Polyline;\n const itemModel = lineData.getItemModel(idx);\n\n\n let hoverLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n\n if (!seriesScope || lineData.hasItemOption) {\n hoverLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n }\n line.useStyle(lineData.getItemVisual(idx, 'style'));\n line.style.fill = null;\n line.style.strokeNoScale = true;\n\n const lineEmphasisState = line.ensureState('emphasis');\n lineEmphasisState.style = hoverLineStyle;\n\n enableHoverEmphasis(this);\n };\n\n updateLayout(lineData: SeriesData, idx: number) {\n const polyline = this.childAt(0) as graphic.Polyline;\n polyline.setShape('points', lineData.getItemLayout(idx));\n };\n\n}\n\nexport default Polyline;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Polyline from './Polyline';\nimport EffectLine, {ECSymbolOnEffectLine} from './EffectLine';\nimport * as vec2 from 'zrender/src/core/vector';\nimport { LineDrawSeriesScope } from './LineDraw';\nimport SeriesData from '../../data/SeriesData';\n\n\nclass EffectPolyline extends EffectLine {\n private _lastFrame = 0;\n private _lastFramePercent = 0;\n private _length: number;\n\n private _points: number[][];\n private _offsets: number[];\n\n // Override\n createLine(lineData: SeriesData, idx: number, seriesScope: LineDrawSeriesScope) {\n return new Polyline(lineData, idx, seriesScope);\n };\n\n // Override\n protected _updateAnimationPoints(symbol: ECSymbolOnEffectLine, points: number[][]) {\n this._points = points;\n const accLenArr = [0];\n let len = 0;\n for (let i = 1; i < points.length; i++) {\n const p1 = points[i - 1];\n const p2 = points[i];\n len += vec2.dist(p1, p2);\n accLenArr.push(len);\n }\n if (len === 0) {\n this._length = 0;\n return;\n }\n\n for (let i = 0; i < accLenArr.length; i++) {\n accLenArr[i] /= len;\n }\n this._offsets = accLenArr;\n this._length = len;\n };\n\n // Override\n protected _getLineLength() {\n return this._length;\n };\n\n // Override\n protected _updateSymbolPosition(symbol: ECSymbolOnEffectLine) {\n const t = symbol.__t;\n const points = this._points;\n const offsets = this._offsets;\n const len = points.length;\n\n if (!offsets) {\n // Has length 0\n return;\n }\n\n const lastFrame = this._lastFrame;\n let frame: number;\n\n if (t < this._lastFramePercent) {\n // Start from the next frame\n // PENDING start from lastFrame ?\n const start = Math.min(lastFrame + 1, len - 1);\n for (frame = start; frame >= 0; frame--) {\n if (offsets[frame] <= t) {\n break;\n }\n }\n // PENDING really need to do this ?\n frame = Math.min(frame, len - 2);\n }\n else {\n for (frame = lastFrame; frame < len; frame++) {\n if (offsets[frame] > t) {\n break;\n }\n }\n frame = Math.min(frame - 1, len - 2);\n }\n\n const p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]);\n const p0 = points[frame];\n const p1 = points[frame + 1];\n symbol.x = p0[0] * (1 - p) + p * p1[0];\n symbol.y = p0[1] * (1 - p) + p * p1[1];\n\n const tx = p1[0] - p0[0];\n const ty = p1[1] - p0[1];\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n\n this._lastFrame = frame;\n this._lastFramePercent = t;\n\n symbol.ignore = false;\n };\n\n}\n\nexport default EffectPolyline;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport IncrementalDisplayable from 'zrender/src/graphic/IncrementalDisplayable';\nimport * as lineContain from 'zrender/src/contain/line';\nimport * as quadraticContain from 'zrender/src/contain/quadratic';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport SeriesData from '../../data/SeriesData';\nimport { StageHandlerProgressParams, LineStyleOption, ColorString } from '../../util/types';\nimport Model from '../../model/Model';\nimport { getECData } from '../../util/innerStore';\n\nclass LargeLinesPathShape {\n polyline = false;\n curveness = 0;\n segs: ArrayLike = [];\n}\n\ninterface LargeLinesPathProps extends PathProps {\n shape?: Partial\n}\n\ninterface LargeLinesCommonOption {\n polyline?: boolean\n lineStyle?: LineStyleOption & {\n curveness?: number\n }\n}\n\n/**\n * Data which can support large lines.\n */\ntype LargeLinesData = SeriesData & {\n seriesIndex?: number\n}>;\n\nclass LargeLinesPath extends graphic.Path {\n shape: LargeLinesPathShape;\n\n __startIndex: number;\n\n constructor(opts?: LargeLinesPathProps) {\n super(opts);\n }\n\n getDefaultStyle() {\n return {\n stroke: '#000',\n fill: null as ColorString\n };\n }\n\n getDefaultShape() {\n return new LargeLinesPathShape();\n }\n\n buildPath(ctx: CanvasRenderingContext2D, shape: LargeLinesPathShape) {\n const segs = shape.segs;\n const curveness = shape.curveness;\n\n if (shape.polyline) {\n for (let i = 0; i < segs.length;) {\n const count = segs[i++];\n if (count > 0) {\n ctx.moveTo(segs[i++], segs[i++]);\n for (let k = 1; k < count; k++) {\n ctx.lineTo(segs[i++], segs[i++]);\n }\n }\n }\n }\n else {\n for (let i = 0; i < segs.length;) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n const x1 = segs[i++];\n const y1 = segs[i++];\n ctx.moveTo(x0, y0);\n if (curveness > 0) {\n const x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n const y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n ctx.quadraticCurveTo(x2, y2, x1, y1);\n }\n else {\n ctx.lineTo(x1, y1);\n }\n }\n }\n }\n\n findDataIndex(x: number, y: number) {\n\n const shape = this.shape;\n const segs = shape.segs;\n const curveness = shape.curveness;\n const lineWidth = this.style.lineWidth;\n\n if (shape.polyline) {\n let dataIndex = 0;\n for (let i = 0; i < segs.length;) {\n const count = segs[i++];\n if (count > 0) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n for (let k = 1; k < count; k++) {\n const x1 = segs[i++];\n const y1 = segs[i++];\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n }\n\n dataIndex++;\n }\n }\n else {\n let dataIndex = 0;\n for (let i = 0; i < segs.length;) {\n const x0 = segs[i++];\n const y0 = segs[i++];\n const x1 = segs[i++];\n const y1 = segs[i++];\n if (curveness > 0) {\n const x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n const y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n\n if (quadraticContain.containStroke(\n x0, y0, x2, y2, x1, y1, lineWidth, x, y\n )) {\n return dataIndex;\n }\n }\n else {\n if (lineContain.containStroke(\n x0, y0, x1, y1, lineWidth, x, y\n )) {\n return dataIndex;\n }\n }\n\n dataIndex++;\n }\n }\n\n return -1;\n }\n}\n\nclass LargeLineDraw {\n group = new graphic.Group();\n\n _incremental?: IncrementalDisplayable;\n\n isPersistent() {\n return !this._incremental;\n };\n\n /**\n * Update symbols draw by new data\n */\n updateData(data: LargeLinesData) {\n this.group.removeAll();\n\n const lineEl = new LargeLinesPath({\n rectHover: true,\n cursor: 'default'\n });\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data);\n\n // Add back\n this.group.add(lineEl);\n\n this._incremental = null;\n };\n\n /**\n * @override\n */\n incrementalPrepareUpdate(data: LargeLinesData) {\n this.group.removeAll();\n\n this._clearIncremental();\n\n if (data.count() > 5e5) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n this.group.add(this._incremental);\n }\n else {\n this._incremental = null;\n }\n };\n\n /**\n * @override\n */\n incrementalUpdate(taskParams: StageHandlerProgressParams, data: LargeLinesData) {\n const lineEl = new LargeLinesPath();\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data, !!this._incremental);\n\n if (!this._incremental) {\n lineEl.rectHover = true;\n lineEl.cursor = 'default';\n lineEl.__startIndex = taskParams.start;\n this.group.add(lineEl);\n }\n else {\n this._incremental.addDisplayable(lineEl, true);\n }\n };\n\n /**\n * @override\n */\n remove() {\n this._clearIncremental();\n this._incremental = null;\n this.group.removeAll();\n };\n\n _setCommon(lineEl: LargeLinesPath, data: LargeLinesData, isIncremental?: boolean) {\n const hostModel = data.hostModel;\n\n lineEl.setShape({\n polyline: hostModel.get('polyline'),\n curveness: hostModel.get(['lineStyle', 'curveness'])\n });\n\n lineEl.useStyle(\n hostModel.getModel('lineStyle').getLineStyle()\n );\n lineEl.style.strokeNoScale = true;\n\n const style = data.getVisual('style');\n if (style && style.stroke) {\n lineEl.setStyle('stroke', style.stroke);\n }\n lineEl.setStyle('fill', null);\n\n if (!isIncremental) {\n const ecData = getECData(lineEl);\n // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n ecData.seriesIndex = hostModel.seriesIndex;\n lineEl.on('mousemove', function (e) {\n ecData.dataIndex = null;\n const dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY);\n if (dataIndex > 0) {\n // Provide dataIndex for tooltip\n ecData.dataIndex = dataIndex + lineEl.__startIndex;\n }\n });\n }\n };\n\n _clearIncremental() {\n const incremental = this._incremental;\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n\n}\n\nexport default LargeLineDraw;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\n\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { StageHandler } from '../../util/types';\nimport LinesSeriesModel, {LinesDataItemOption} from './LinesSeries';\n\nconst linesLayout: StageHandler = {\n seriesType: 'lines',\n\n plan: createRenderPlanner(),\n\n reset: function (seriesModel: LinesSeriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n const isPolyline = seriesModel.get('polyline');\n const isLarge = seriesModel.pipelineContext.large;\n return {\n progress(params, lineData) {\n const lineCoords: number[][] = [];\n if (isLarge) {\n let points;\n const segCount = params.end - params.start;\n if (isPolyline) {\n let totalCoordsCount = 0;\n for (let i = params.start; i < params.end; i++) {\n totalCoordsCount += seriesModel.getLineCoordsCount(i);\n }\n points = new Float32Array(segCount + totalCoordsCount * 2);\n }\n else {\n points = new Float32Array(segCount * 4);\n }\n\n let offset = 0;\n let pt: number[] = [];\n for (let i = params.start; i < params.end; i++) {\n const len = seriesModel.getLineCoords(i, lineCoords);\n if (isPolyline) {\n points[offset++] = len;\n }\n for (let k = 0; k < len; k++) {\n pt = coordSys.dataToPoint(lineCoords[k], false, pt);\n points[offset++] = pt[0];\n points[offset++] = pt[1];\n }\n }\n\n lineData.setLayout('linesPoints', points);\n }\n else {\n for (let i = params.start; i < params.end; i++) {\n const itemModel = lineData.getItemModel(i);\n const len = seriesModel.getLineCoords(i, lineCoords);\n\n const pts = [];\n if (isPolyline) {\n for (let j = 0; j < len; j++) {\n pts.push(coordSys.dataToPoint(lineCoords[j]));\n }\n }\n else {\n pts[0] = coordSys.dataToPoint(lineCoords[0]);\n pts[1] = coordSys.dataToPoint(lineCoords[1]);\n\n const curveness = itemModel.get(['lineStyle', 'curveness']);\n if (+curveness) {\n pts[2] = [\n (pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness,\n (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness\n ];\n }\n }\n lineData.setItemLayout(i, pts);\n }\n }\n }\n };\n }\n};\n\nexport default linesLayout;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LineDraw from '../helper/LineDraw';\nimport EffectLine from '../helper/EffectLine';\nimport Line from '../helper/Line';\nimport Polyline from '../helper/Polyline';\nimport EffectPolyline from '../helper/EffectPolyline';\nimport LargeLineDraw from '../helper/LargeLineDraw';\nimport linesLayout from './linesLayout';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport ChartView from '../../view/Chart';\nimport LinesSeriesModel from './LinesSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CanvasPainter from 'zrender/src/canvas/Painter';\nimport { StageHandlerProgressParams, StageHandlerProgressExecutor } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport type Polar from '../../coord/polar/Polar';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\n\nclass LinesView extends ChartView {\n\n static readonly type = 'lines';\n readonly type = LinesView.type;\n\n private _lastZlevel: number;\n private _finished: boolean;\n\n private _lineDraw: LineDraw | LargeLineDraw;\n\n private _hasEffet: boolean;\n private _isPolyline: boolean;\n private _isLargeDraw: boolean;\n\n render(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const lineDraw = this._updateLineDraw(data, seriesModel);\n\n const zlevel = seriesModel.get('zlevel');\n const trailLength = seriesModel.get(['effect', 'trailLength']);\n\n const zr = api.getZr();\n // Avoid the drag cause ghost shadow\n // FIXME Better way ?\n // SVG doesn't support\n const isSvg = zr.painter.getType() === 'svg';\n if (!isSvg) {\n (zr.painter as CanvasPainter).getLayer(zlevel).clear(true);\n }\n // Config layer with motion blur\n if (this._lastZlevel != null && !isSvg) {\n zr.configLayer(this._lastZlevel, {\n motionBlur: false\n });\n }\n if (this._showEffect(seriesModel) && trailLength) {\n if (__DEV__) {\n let notInIndividual = false;\n ecModel.eachSeries(function (otherSeriesModel) {\n if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) {\n notInIndividual = true;\n }\n });\n notInIndividual && console.warn('Lines with trail effect should have an individual zlevel');\n }\n\n if (!isSvg) {\n zr.configLayer(zlevel, {\n motionBlur: true,\n lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)\n });\n }\n }\n\n lineDraw.updateData(data as SeriesData);\n\n const clipPath = seriesModel.get('clip', true) && createClipPath(\n (seriesModel.coordinateSystem as Polar | Cartesian2D), false, seriesModel\n );\n if (clipPath) {\n this.group.setClipPath(clipPath);\n }\n else {\n this.group.removeClipPath();\n }\n\n this._lastZlevel = zlevel;\n\n this._finished = true;\n }\n\n incrementalPrepareRender(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n\n const lineDraw = this._updateLineDraw(data, seriesModel);\n\n lineDraw.incrementalPrepareUpdate(data);\n\n this._clearLayer(api);\n\n this._finished = false;\n }\n\n incrementalRender(\n taskParams: StageHandlerProgressParams,\n seriesModel: LinesSeriesModel,\n ecModel: GlobalModel\n ) {\n this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData());\n\n this._finished = taskParams.end === seriesModel.getData().count();\n }\n\n updateTransform(seriesModel: LinesSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const pipelineContext = seriesModel.pipelineContext;\n\n if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) {\n // TODO Don't have to do update in large mode. Only do it when there are millions of data.\n return {\n update: true\n } as const;\n }\n else {\n // TODO Use same logic with ScatterView.\n // Manually update layout\n const res = linesLayout.reset(seriesModel, ecModel, api) as StageHandlerProgressExecutor;\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n // Not in large mode\n (this._lineDraw as LineDraw).updateLayout();\n this._clearLayer(api);\n }\n }\n\n _updateLineDraw(data: SeriesData, seriesModel: LinesSeriesModel) {\n let lineDraw = this._lineDraw;\n const hasEffect = this._showEffect(seriesModel);\n const isPolyline = !!seriesModel.get('polyline');\n const pipelineContext = seriesModel.pipelineContext;\n const isLargeDraw = pipelineContext.large;\n\n if (__DEV__) {\n if (hasEffect && isLargeDraw) {\n console.warn('Large lines not support effect');\n }\n }\n if (!lineDraw\n || hasEffect !== this._hasEffet\n || isPolyline !== this._isPolyline\n || isLargeDraw !== this._isLargeDraw\n ) {\n if (lineDraw) {\n lineDraw.remove();\n }\n lineDraw = this._lineDraw = isLargeDraw\n ? new LargeLineDraw()\n : new LineDraw(\n isPolyline\n ? (hasEffect ? EffectPolyline : Polyline)\n : (hasEffect ? EffectLine : Line)\n );\n this._hasEffet = hasEffect;\n this._isPolyline = isPolyline;\n this._isLargeDraw = isLargeDraw;\n }\n\n this.group.add(lineDraw.group);\n\n return lineDraw;\n }\n\n private _showEffect(seriesModel: LinesSeriesModel) {\n return !!seriesModel.get(['effect', 'show']);\n }\n\n _clearLayer(api: ExtensionAPI) {\n // Not use motion when dragging or zooming\n const zr = api.getZr();\n const isSvg = zr.painter.getType() === 'svg';\n if (!isSvg && this._lastZlevel != null) {\n (zr.painter as CanvasPainter).getLayer(this._lastZlevel).clear(true);\n }\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._lineDraw && this._lineDraw.remove();\n this._lineDraw = null;\n // Clear motion when lineDraw is removed\n this._clearLayer(api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this.remove(ecModel, api);\n }\n\n}\n\nexport default LinesView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint32Array, Float64Array, Float32Array */\n\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\nimport { concatArray, mergeAll, map } from 'zrender/src/core/util';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesLargeOptionMixin,\n LineStyleOption,\n OptionDataValue,\n StatesOptionMixin,\n SeriesLineLabelOption\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport type { LineDrawModelOption } from '../helper/LineDraw';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nconst Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array;\nconst Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array;\n\nfunction compatEc2(seriesOpt: LinesSeriesOption) {\n const data = seriesOpt.data;\n if (data && data[0] && (data as LegacyDataItemOption[][])[0][0] && (data as LegacyDataItemOption[][])[0][0].coord) {\n if (__DEV__) {\n console.warn('Lines data configuration has been changed to'\n + ' { coords:[[1,2],[2,3]] }');\n }\n seriesOpt.data = map(data as LegacyDataItemOption[][], function (itemOpt) {\n const coords = [\n itemOpt[0].coord, itemOpt[1].coord\n ];\n const target: LinesDataItemOption = {\n coords: coords\n };\n if (itemOpt[0].name) {\n target.fromName = itemOpt[0].name;\n }\n if (itemOpt[1].name) {\n target.toName = itemOpt[1].name;\n }\n return mergeAll([target, itemOpt[0], itemOpt[1]]);\n });\n }\n}\n\ntype LinesCoords = number[][];\n\ntype LinesValue = OptionDataValue | OptionDataValue[];\n\ninterface LinesLineStyleOption extends LineStyleOption {\n curveness?: number\n}\n\n// @deprecated\ninterface LegacyDataItemOption {\n coord: number[]\n name: string\n}\n\nexport interface LinesStateOption {\n lineStyle?: LinesLineStyleOption\n label?: SeriesLineLabelOption\n}\n\nexport interface LinesDataItemOption extends LinesStateOption, StatesOptionMixin {\n name?: string\n\n fromName?: string\n toName?: string\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n\n coords?: LinesCoords\n\n value?: LinesValue\n}\n\nexport interface LinesSeriesOption extends SeriesOption, LinesStateOption,\n\n SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin,\n SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin {\n\n type?: 'lines'\n\n coordinateSystem?: string\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n\n effect?: LineDrawModelOption['effect']\n\n /**\n * If lines are polyline\n * polyline not support curveness, label, animation\n */\n polyline?: boolean\n /**\n * If clip the overflow.\n * Available when coordinateSystem is cartesian or polar.\n */\n clip?: boolean\n\n data?: LinesDataItemOption[]\n // Stored as a flat array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n | ArrayLike\n}\n\nclass LinesSeriesModel extends SeriesModel {\n\n static readonly type = 'series.lines';\n readonly type = LinesSeriesModel.type;\n\n static readonly dependencies = ['grid', 'polar', 'geo', 'calendar'];\n\n visualStyleAccessPath = 'lineStyle';\n visualDrawType = 'stroke' as const;\n\n private _flatCoords: ArrayLike;\n private _flatCoordsOffset: ArrayLike;\n\n init(option: LinesSeriesOption) {\n // The input data may be null/undefined.\n option.data = option.data || [];\n\n // Not using preprocessor because mergeOption may not have series.type\n compatEc2(option);\n\n const result = this._processFlatCoordsArray(option.data);\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n\n super.init.apply(this, arguments as any);\n }\n\n mergeOption(option: LinesSeriesOption) {\n compatEc2(option);\n\n if (option.data) {\n // Only update when have option data to merge.\n const result = this._processFlatCoordsArray(option.data);\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n }\n\n super.mergeOption.apply(this, arguments as any);\n }\n\n appendData(params: Pick) {\n const result = this._processFlatCoordsArray(params.data);\n if (result.flatCoords) {\n if (!this._flatCoords) {\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n }\n else {\n this._flatCoords = concatArray(this._flatCoords, result.flatCoords);\n this._flatCoordsOffset = concatArray(this._flatCoordsOffset, result.flatCoordsOffset);\n }\n params.data = new Float32Array(result.count);\n }\n\n this.getRawData().appendData(params.data);\n }\n\n _getCoordsFromItemModel(idx: number) {\n const itemModel = this.getData().getItemModel(idx);\n const coords = (itemModel.option instanceof Array)\n ? itemModel.option : itemModel.getShallow('coords');\n\n if (__DEV__) {\n if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) {\n throw new Error(\n 'Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.'\n );\n }\n }\n return coords;\n }\n\n getLineCoordsCount(idx: number) {\n if (this._flatCoordsOffset) {\n return this._flatCoordsOffset[idx * 2 + 1];\n }\n else {\n return this._getCoordsFromItemModel(idx).length;\n }\n }\n\n getLineCoords(idx: number, out: number[][]) {\n if (this._flatCoordsOffset) {\n const offset = this._flatCoordsOffset[idx * 2];\n const len = this._flatCoordsOffset[idx * 2 + 1];\n for (let i = 0; i < len; i++) {\n out[i] = out[i] || [];\n out[i][0] = this._flatCoords[offset + i * 2];\n out[i][1] = this._flatCoords[offset + i * 2 + 1];\n }\n return len;\n }\n else {\n const coords = this._getCoordsFromItemModel(idx);\n for (let i = 0; i < coords.length; i++) {\n out[i] = out[i] || [];\n out[i][0] = coords[i][0];\n out[i][1] = coords[i][1];\n }\n return coords.length;\n }\n }\n\n _processFlatCoordsArray(data: LinesSeriesOption['data']) {\n let startOffset = 0;\n if (this._flatCoords) {\n startOffset = this._flatCoords.length;\n }\n // Stored as a typed array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n if (typeof data[0] === 'number') {\n const len = data.length;\n // Store offset and len of each segment\n const coordsOffsetAndLenStorage = new Uint32Arr(len) as Uint32Array;\n const coordsStorage = new Float64Arr(len) as Float64Array;\n let coordsCursor = 0;\n let offsetCursor = 0;\n let dataCount = 0;\n for (let i = 0; i < len;) {\n dataCount++;\n const count = data[i++] as number;\n // Offset\n coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset;\n // Len\n coordsOffsetAndLenStorage[offsetCursor++] = count;\n for (let k = 0; k < count; k++) {\n const x = data[i++] as number;\n const y = data[i++] as number;\n coordsStorage[coordsCursor++] = x;\n coordsStorage[coordsCursor++] = y;\n\n if (i > len) {\n if (__DEV__) {\n throw new Error('Invalid data format.');\n }\n }\n }\n }\n\n return {\n flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor),\n flatCoords: coordsStorage,\n count: dataCount\n };\n }\n\n return {\n flatCoordsOffset: null,\n flatCoords: null,\n count: data.length\n };\n }\n\n getInitialData(option: LinesSeriesOption, ecModel: GlobalModel) {\n if (__DEV__) {\n const CoordSys = CoordinateSystem.get(option.coordinateSystem);\n if (!CoordSys) {\n throw new Error('Unkown coordinate system ' + option.coordinateSystem);\n }\n }\n\n const lineData = new SeriesData(['value'], this);\n lineData.hasItemOption = false;\n\n lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {\n // dataItem is simply coords\n if (dataItem instanceof Array) {\n return NaN;\n }\n else {\n lineData.hasItemOption = true;\n const value = dataItem.value;\n if (value != null) {\n return value instanceof Array ? value[dimIndex] : value;\n }\n }\n });\n\n return lineData;\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const itemModel = data.getItemModel(dataIndex);\n const name = itemModel.get('name');\n if (name) {\n return name;\n }\n const fromName = itemModel.get('fromName');\n const toName = itemModel.get('toName');\n const nameArr = [];\n fromName != null && nameArr.push(fromName);\n toName != null && nameArr.push(toName);\n\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > ')\n });\n }\n\n preventIncremental() {\n return !!this.get(['effect', 'show']);\n }\n\n getProgressive() {\n const progressive = this.option.progressive;\n if (progressive == null) {\n return this.option.large ? 1e4 : this.get('progressive');\n }\n return progressive;\n }\n\n getProgressiveThreshold() {\n const progressiveThreshold = this.option.progressiveThreshold;\n if (progressiveThreshold == null) {\n return this.option.large ? 2e4 : this.get('progressiveThreshold');\n }\n return progressiveThreshold;\n }\n\n static defaultOption: LinesSeriesOption = {\n coordinateSystem: 'geo',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n // Cartesian coordinate system\n xAxisIndex: 0,\n yAxisIndex: 0,\n\n symbol: ['none', 'none'],\n symbolSize: [10, 10],\n // Geo coordinate system\n geoIndex: 0,\n\n effect: {\n show: false,\n period: 4,\n constantSpeed: 0,\n symbol: 'circle',\n symbolSize: 3,\n loop: true,\n trailLength: 0.2\n },\n\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n\n polyline: false,\n\n clip: true,\n\n label: {\n show: false,\n position: 'end'\n // distance: 5,\n // formatter: \u6807\u7B7E\u6587\u672C\u683C\u5F0F\u5668\uFF0C\u540CTooltip.formatter\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u56DE\u8C03\n },\n\n lineStyle: {\n opacity: 0.5\n }\n };\n}\n\nexport default LinesSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { StageHandler } from '../../util/types';\nimport SeriesData from '../../data/SeriesData';\nimport LinesSeriesModel, { LinesDataItemOption } from './LinesSeries';\nimport Model from '../../model/Model';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\n\nfunction normalize(a: string | string[]): string[];\nfunction normalize(a: number | number[]): number[];\nfunction normalize(a: string | number | (string | number)[]): (string | number)[] {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n return a;\n}\n\nconst linesVisual: StageHandler = {\n seriesType: 'lines',\n reset(seriesModel: LinesSeriesModel) {\n const symbolType = normalize(seriesModel.get('symbol'));\n const symbolSize = normalize(seriesModel.get('symbolSize'));\n const data = seriesModel.getData() as SeriesData;\n\n data.setVisual('fromSymbol', symbolType && symbolType[0]);\n data.setVisual('toSymbol', symbolType && symbolType[1]);\n data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n function dataEach(\n data: SeriesData,\n idx: number\n ): void {\n const itemModel = data.getItemModel(idx) as Model;\n const symbolType = normalize(itemModel.getShallow('symbol', true));\n const symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n\n symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);\n symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);\n symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);\n symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\n\nexport default linesVisual;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport LinesView from './LinesView';\nimport LinesSeriesModel from './LinesSeries';\nimport linesLayout from './linesLayout';\nimport linesVisual from './linesVisual';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(LinesView);\n registers.registerSeriesModel(LinesSeriesModel);\n registers.registerLayout(linesLayout);\n registers.registerVisual(linesVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8ClampedArray */\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst GRADIENT_LEVELS = 256;\n\ntype ColorFunc = (grad: number, fastMode: boolean, output: number[]) => void;\n\ntype ColorState = 'inRange' | 'outOfRange';\n\nclass HeatmapLayer {\n canvas: HTMLCanvasElement;\n blurSize = 30;\n pointSize = 20;\n\n maxOpacity = 1;\n minOpacity = 0;\n\n private _brushCanvas: HTMLCanvasElement;\n\n private _gradientPixels: Record = {\n inRange: null,\n outOfRange: null\n };\n\n constructor() {\n const canvas = zrUtil.createCanvas();\n this.canvas = canvas;\n }\n\n /**\n * Renders Heatmap and returns the rendered canvas\n * @param data array of data, each has x, y, value\n * @param width canvas width\n * @param height canvas height\n */\n update(\n data: number[][],\n width: number,\n height: number,\n normalize: (value: number) => number,\n colorFunc: Record,\n isInRange?: (grad?: number) => boolean\n ) {\n const brush = this._getBrush();\n const gradientInRange = this._getGradient(colorFunc, 'inRange');\n const gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange');\n const r = this.pointSize + this.blurSize;\n\n const canvas = this.canvas;\n const ctx = canvas.getContext('2d');\n const len = data.length;\n canvas.width = width;\n canvas.height = height;\n for (let i = 0; i < len; ++i) {\n const p = data[i];\n const x = p[0];\n const y = p[1];\n const value = p[2];\n\n // calculate alpha using value\n const alpha = normalize(value);\n\n // draw with the circle brush with alpha\n ctx.globalAlpha = alpha;\n ctx.drawImage(brush, x - r, y - r);\n }\n\n if (!canvas.width || !canvas.height) {\n // Avoid \"Uncaught DOMException: Failed to execute 'getImageData' on\n // 'CanvasRenderingContext2D': The source height is 0.\"\n return canvas;\n }\n\n // colorize the canvas using alpha value and set with gradient\n const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n\n const pixels = imageData.data;\n let offset = 0;\n const pixelLen = pixels.length;\n const minOpacity = this.minOpacity;\n const maxOpacity = this.maxOpacity;\n const diffOpacity = maxOpacity - minOpacity;\n\n while (offset < pixelLen) {\n let alpha = pixels[offset + 3] / 256;\n const gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4;\n // Simple optimize to ignore the empty data\n if (alpha > 0) {\n const gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange;\n // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]\n alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);\n pixels[offset++] = gradient[gradientOffset];\n pixels[offset++] = gradient[gradientOffset + 1];\n pixels[offset++] = gradient[gradientOffset + 2];\n pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;\n }\n else {\n offset += 4;\n }\n }\n ctx.putImageData(imageData, 0, 0);\n\n return canvas;\n }\n\n /**\n * get canvas of a black circle brush used for canvas to draw later\n */\n _getBrush() {\n const brushCanvas = this._brushCanvas || (this._brushCanvas = zrUtil.createCanvas());\n // set brush size\n const r = this.pointSize + this.blurSize;\n const d = r * 2;\n brushCanvas.width = d;\n brushCanvas.height = d;\n\n const ctx = brushCanvas.getContext('2d');\n ctx.clearRect(0, 0, d, d);\n\n // in order to render shadow without the distinct circle,\n // draw the distinct circle in an invisible place,\n // and use shadowOffset to draw shadow in the center of the canvas\n ctx.shadowOffsetX = d;\n ctx.shadowBlur = this.blurSize;\n // draw the shadow in black, and use alpha and shadow blur to generate\n // color in color map\n ctx.shadowColor = '#000';\n\n // draw circle in the left to the canvas\n ctx.beginPath();\n ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n return brushCanvas;\n }\n\n /**\n * get gradient color map\n * @private\n */\n _getGradient(colorFunc: Record, state: ColorState) {\n const gradientPixels = this._gradientPixels;\n const pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));\n const color = [0, 0, 0, 0];\n let off = 0;\n for (let i = 0; i < 256; i++) {\n colorFunc[state](i / 255, true, color);\n pixelsSingleState[off++] = color[0];\n pixelsSingleState[off++] = color[1];\n pixelsSingleState[off++] = color[2];\n pixelsSingleState[off++] = color[3];\n }\n return pixelsSingleState;\n }\n}\n\nexport default HeatmapLayer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport HeatmapLayer from './HeatmapLayer';\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport HeatmapSeriesModel, { HeatmapDataItemOption } from './HeatmapSeries';\nimport type GlobalModel from '../../model/Global';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\nimport type VisualMapModel from '../../component/visualMap/VisualMapModel';\nimport type PiecewiseModel from '../../component/visualMap/PiecewiseModel';\nimport type ContinuousModel from '../../component/visualMap/ContinuousModel';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { StageHandlerProgressParams, Dictionary, OptionDataValue } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Calendar from '../../coord/calendar/Calendar';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\n// Coord can be 'geo' 'bmap' 'amap' 'leaflet'...\ninterface GeoLikeCoordSys extends CoordinateSystem {\n dimensions: ['lng', 'lat']\n getViewRect(): graphic.BoundingRect\n}\n\nfunction getIsInPiecewiseRange(\n dataExtent: number[],\n pieceList: ReturnType,\n selected: Dictionary\n) {\n const dataSpan = dataExtent[1] - dataExtent[0];\n pieceList = zrUtil.map(pieceList, function (piece) {\n return {\n interval: [\n (piece.interval[0] - dataExtent[0]) / dataSpan,\n (piece.interval[1] - dataExtent[0]) / dataSpan\n ]\n };\n });\n const len = pieceList.length;\n let lastIndex = 0;\n\n return function (val: number) {\n let i;\n // Try to find in the location of the last found\n for (i = lastIndex; i < len; i++) {\n const interval = pieceList[i].interval;\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n if (i === len) { // Not found, back interation\n for (i = lastIndex - 1; i >= 0; i--) {\n const interval = pieceList[i].interval;\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n }\n return i >= 0 && i < len && selected[i];\n };\n}\n\nfunction getIsInContinuousRange(dataExtent: number[], range: number[]) {\n const dataSpan = dataExtent[1] - dataExtent[0];\n range = [\n (range[0] - dataExtent[0]) / dataSpan,\n (range[1] - dataExtent[0]) / dataSpan\n ];\n return function (val: number) {\n return val >= range[0] && val <= range[1];\n };\n}\n\nfunction isGeoCoordSys(coordSys: CoordinateSystem): coordSys is GeoLikeCoordSys {\n const dimensions = coordSys.dimensions;\n // Not use coorSys.type === 'geo' because coordSys maybe extended\n return dimensions[0] === 'lng' && dimensions[1] === 'lat';\n}\n\nclass HeatmapView extends ChartView {\n\n static readonly type = 'heatmap';\n readonly type = HeatmapView.type;\n\n private _incrementalDisplayable: boolean;\n\n private _hmLayer: HeatmapLayer;\n\n render(seriesModel: HeatmapSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n let visualMapOfThisSeries;\n ecModel.eachComponent('visualMap', function (visualMap: VisualMapModel) {\n visualMap.eachTargetSeries(function (targetSeries) {\n if (targetSeries === seriesModel) {\n visualMapOfThisSeries = visualMap;\n }\n });\n });\n\n if (__DEV__) {\n if (!visualMapOfThisSeries) {\n throw new Error('Heatmap must use with visualMap');\n }\n }\n\n this.group.removeAll();\n\n this._incrementalDisplayable = null;\n\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {\n this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count());\n }\n else if (isGeoCoordSys(coordSys)) {\n this._renderOnGeo(\n coordSys, seriesModel, visualMapOfThisSeries, api\n );\n }\n }\n\n incrementalPrepareRender(seriesModel: HeatmapSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.group.removeAll();\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n seriesModel: HeatmapSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys) {\n // geo does not support incremental rendering?\n if (isGeoCoordSys(coordSys)) {\n this.render(seriesModel, ecModel, api);\n }\n else {\n this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);\n }\n }\n }\n\n _renderOnCartesianAndCalendar(\n seriesModel: HeatmapSeriesModel,\n api: ExtensionAPI,\n start: number,\n end: number,\n incremental?: boolean\n ) {\n\n const coordSys = seriesModel.coordinateSystem as Cartesian2D | Calendar;\n let width;\n let height;\n let xAxisExtent;\n let yAxisExtent;\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const xAxis = coordSys.getAxis('x');\n const yAxis = coordSys.getAxis('y');\n\n if (__DEV__) {\n if (!(xAxis.type === 'category' && yAxis.type === 'category')) {\n throw new Error('Heatmap on cartesian must have two category axes');\n }\n if (!(xAxis.onBand && yAxis.onBand)) {\n throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');\n }\n }\n\n width = xAxis.getBandWidth();\n height = yAxis.getBandWidth();\n xAxisExtent = xAxis.scale.getExtent();\n yAxisExtent = yAxis.scale.getExtent();\n }\n\n const group = this.group;\n const data = seriesModel.getData();\n\n let emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle();\n let blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle();\n let selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle();\n let labelStatesModels = getLabelStatesModels(seriesModel);\n let focus = seriesModel.get(['emphasis', 'focus']);\n let blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n const dataDims = isCoordinateSystemType(coordSys, 'cartesian2d')\n ? [\n data.mapDimension('x'),\n data.mapDimension('y'),\n data.mapDimension('value')\n ]\n : [\n data.mapDimension('time'),\n data.mapDimension('value')\n ];\n\n for (let idx = start; idx < end; idx++) {\n let rect;\n const style = data.getItemVisual(idx, 'style');\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n const dataDimX = data.get(dataDims[0], idx);\n const dataDimY = data.get(dataDims[1], idx);\n\n // Ignore empty data and out of extent data\n if (isNaN(data.get(dataDims[2], idx) as number)\n || dataDimX < xAxisExtent[0]\n || dataDimX > xAxisExtent[1]\n || dataDimY < yAxisExtent[0]\n || dataDimY > yAxisExtent[1]\n ) {\n continue;\n }\n\n const point = coordSys.dataToPoint([\n dataDimX,\n dataDimY\n ]);\n\n rect = new graphic.Rect({\n shape: {\n x: Math.floor(Math.round(point[0]) - width / 2),\n y: Math.floor(Math.round(point[1]) - height / 2),\n width: Math.ceil(width),\n height: Math.ceil(height)\n },\n style\n });\n }\n else {\n // Ignore empty data\n if (isNaN(data.get(dataDims[1], idx) as number)) {\n continue;\n }\n\n rect = new graphic.Rect({\n z2: 1,\n shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,\n style\n });\n }\n\n const itemModel = data.getItemModel(idx);\n\n // Optimization for large datset\n if (data.hasItemOption) {\n const emphasisModel = itemModel.getModel('emphasis');\n emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n const rawValue = seriesModel.getRawValue(idx) as OptionDataValue[];\n let defaultText = '-';\n if (rawValue && rawValue[2] != null) {\n defaultText = rawValue[2] + '';\n }\n\n setLabelStyle(\n rect, labelStatesModels,\n {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: defaultText\n }\n );\n\n rect.ensureState('emphasis').style = emphasisStyle;\n rect.ensureState('blur').style = blurStyle;\n rect.ensureState('select').style = selectStyle;\n\n enableHoverEmphasis(rect, focus, blurScope);\n\n rect.incremental = incremental;\n // PENDING\n if (incremental) {\n // Rect must use hover layer if it's incremental.\n rect.states.emphasis.hoverLayer = true;\n }\n\n group.add(rect);\n data.setItemGraphicEl(idx, rect);\n }\n }\n\n _renderOnGeo(\n geo: GeoLikeCoordSys,\n seriesModel: HeatmapSeriesModel,\n visualMapModel: VisualMapModel,\n api: ExtensionAPI\n ) {\n const inRangeVisuals = visualMapModel.targetVisuals.inRange;\n const outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange;\n // if (!visualMapping) {\n // throw new Error('Data range must have color visuals');\n // }\n\n const data = seriesModel.getData();\n const hmLayer = this._hmLayer || (this._hmLayer || new HeatmapLayer());\n hmLayer.blurSize = seriesModel.get('blurSize');\n hmLayer.pointSize = seriesModel.get('pointSize');\n hmLayer.minOpacity = seriesModel.get('minOpacity');\n hmLayer.maxOpacity = seriesModel.get('maxOpacity');\n\n const rect = geo.getViewRect().clone();\n const roamTransform = geo.getRoamTransform();\n rect.applyTransform(roamTransform);\n\n // Clamp on viewport\n const x = Math.max(rect.x, 0);\n const y = Math.max(rect.y, 0);\n const x2 = Math.min(rect.width + rect.x, api.getWidth());\n const y2 = Math.min(rect.height + rect.y, api.getHeight());\n const width = x2 - x;\n const height = y2 - y;\n\n const dims = [\n data.mapDimension('lng'),\n data.mapDimension('lat'),\n data.mapDimension('value')\n ];\n\n const points = data.mapArray(dims, function (lng: number, lat: number, value: number) {\n const pt = geo.dataToPoint([lng, lat]);\n pt[0] -= x;\n pt[1] -= y;\n pt.push(value);\n return pt;\n });\n\n const dataExtent = visualMapModel.getExtent();\n const isInRange = visualMapModel.type === 'visualMap.continuous'\n ? getIsInContinuousRange(dataExtent, (visualMapModel as ContinuousModel).option.range)\n : getIsInPiecewiseRange(\n dataExtent,\n (visualMapModel as PiecewiseModel).getPieceList(),\n (visualMapModel as PiecewiseModel).option.selected\n );\n\n hmLayer.update(\n points, width, height,\n inRangeVisuals.color.getNormalizer(),\n {\n inRange: inRangeVisuals.color.getColorMapper(),\n outOfRange: outOfRangeVisuals.color.getColorMapper()\n },\n isInRange\n );\n const img = new graphic.Image({\n style: {\n width: width,\n height: height,\n x: x,\n y: y,\n image: hmLayer.canvas\n },\n silent: true\n });\n this.group.add(img);\n }\n}\n\nexport default HeatmapView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createSeriesData from '../helper/createSeriesData';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport {\n SeriesOption,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n ItemStyleOption,\n SeriesLabelOption,\n OptionDataValue,\n StatesOptionMixin,\n SeriesEncodeOptionMixin,\n SeriesOnCalendarOptionMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport type Geo from '../../coord/geo/Geo';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Calendar from '../../coord/calendar/Calendar';\n\ntype HeatmapDataValue = OptionDataValue[];\n\nexport interface HeatmapStateOption {\n // Available on cartesian2d coordinate system\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\nexport interface HeatmapDataItemOption extends HeatmapStateOption, StatesOptionMixin {\n value: HeatmapDataValue\n}\n\nexport interface HeatmapSeriesOption extends SeriesOption, HeatmapStateOption,\n SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnCalendarOptionMixin, SeriesEncodeOptionMixin {\n type?: 'heatmap'\n\n coordinateSystem?: 'cartesian2d' | 'geo' | 'calendar'\n\n // Available on geo coordinate system\n blurSize?: number\n pointSize?: number\n maxOpacity?: number\n minOpacity?: number\n\n data?: (HeatmapDataItemOption | HeatmapDataValue)[]\n}\n\nclass HeatmapSeriesModel extends SeriesModel {\n static readonly type = 'series.heatmap';\n readonly type = HeatmapSeriesModel.type;\n\n static readonly dependencies = ['grid', 'geo', 'calendar'];\n // @ts-ignore\n coordinateSystem: Cartesian2D | Geo | Calendar;\n\n getInitialData(option: HeatmapSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this, {\n generateCoord: 'value'\n });\n }\n\n preventIncremental() {\n const coordSysCreator = CoordinateSystem.get(this.get('coordinateSystem'));\n if (coordSysCreator && coordSysCreator.dimensions) {\n return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat';\n }\n }\n\n static defaultOption: HeatmapSeriesOption = {\n\n coordinateSystem: 'cartesian2d',\n\n zlevel: 0,\n\n z: 2,\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Geo coordinate system\n geoIndex: 0,\n\n blurSize: 30,\n\n pointSize: 20,\n\n maxOpacity: 1,\n\n minOpacity: 0,\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n}\n\nexport default HeatmapSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport HeatmapView from './HeatmapView';\nimport HeatmapSeriesModel from './HeatmapSeries';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(HeatmapView);\n registers.registerSeriesModel(HeatmapSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {\n enableHoverEmphasis\n} from '../../util/states';\nimport {createSymbol, normalizeSymbolOffset} from '../../util/symbol';\nimport {parsePercent, isNumeric} from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport PictorialBarSeriesModel, {PictorialBarDataItemOption} from './PictorialBarSeries';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SeriesData from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\nimport { ColorString, AnimationOptionMixin, ECElement } from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport type Displayable from 'zrender/src/graphic/Displayable';\nimport type Axis2D from '../../coord/cartesian/Axis2D';\nimport type Element from 'zrender/src/Element';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { getECData } from '../../util/innerStore';\n\nconst BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth'] as const;\n\n// index: +isHorizontal\nconst LAYOUT_ATTRS = [\n {xy: 'x', wh: 'width', index: 0, posDesc: ['left', 'right']},\n {xy: 'y', wh: 'height', index: 1, posDesc: ['top', 'bottom']}\n] as const;\n\nconst pathForLineWidth = new graphic.Circle();\n\ntype ItemModel = Model & {\n getAnimationDelayParams(path: any): {index: number, count: number}\n isAnimationEnabled(): boolean\n};\ntype RectShape = graphic.Rect['shape'];\ntype RectLayout = RectShape;\n\ntype PictorialSymbol = ReturnType & {\n __pictorialAnimationIndex: number\n __pictorialRepeatTimes: number\n};\n\ninterface SymbolMeta {\n dataIndex: number\n\n symbolPatternSize: number\n symbolType: string\n symbolMargin: number\n symbolSize: number[]\n symbolScale: number[]\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat']\n symbolClip: PictorialBarDataItemOption['symbolClip']\n symbolRepeatDirection: PictorialBarDataItemOption['symbolRepeatDirection']\n\n layout: RectLayout\n\n repeatTimes: number\n\n rotation: number\n\n pathPosition: number[]\n bundlePosition: number[]\n\n pxSign: number\n\n barRectShape: RectShape\n clipShape: RectShape\n\n boundingLength: number\n repeatCutLength: number\n\n valueLineWidth: number\n\n opacity: number\n style: PathStyleProps\n z2: number\n\n itemModel: ItemModel\n\n animationModel?: ItemModel\n\n hoverScale: boolean\n}\n\ninterface CreateOpts {\n ecSize: { width: number, height: number }\n seriesModel: PictorialBarSeriesModel\n coordSys: Cartesian2D\n coordSysExtent: number[][]\n isHorizontal: boolean\n valueDim: typeof LAYOUT_ATTRS[number]\n categoryDim: typeof LAYOUT_ATTRS[number]\n}\n\ninterface PictorialBarElement extends graphic.Group {\n __pictorialBundle: graphic.Group\n __pictorialShapeStr: string\n __pictorialSymbolMeta: SymbolMeta\n\n __pictorialMainPath: PictorialSymbol\n\n __pictorialBarRect: graphic.Rect\n\n __pictorialClipPath: graphic.Rect\n}\n\nclass PictorialBarView extends ChartView {\n static type = 'pictorialBar';\n readonly type = PictorialBarView.type;\n\n private _data: SeriesData;\n\n render(\n seriesModel: PictorialBarSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const group = this.group;\n const data = seriesModel.getData();\n const oldData = this._data;\n\n const cartesian = seriesModel.coordinateSystem;\n const baseAxis = cartesian.getBaseAxis();\n const isHorizontal = baseAxis.isHorizontal();\n const coordSysRect = cartesian.master.getRect();\n\n const opt: CreateOpts = {\n ecSize: {width: api.getWidth(), height: api.getHeight()},\n seriesModel: seriesModel,\n coordSys: cartesian,\n coordSysExtent: [\n [coordSysRect.x, coordSysRect.x + coordSysRect.width],\n [coordSysRect.y, coordSysRect.y + coordSysRect.height]\n ],\n isHorizontal: isHorizontal,\n valueDim: LAYOUT_ATTRS[+isHorizontal],\n categoryDim: LAYOUT_ATTRS[1 - (+isHorizontal)]\n };\n\n data.diff(oldData)\n .add(function (dataIndex) {\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n const itemModel = getItemModel(data, dataIndex);\n const symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);\n\n const bar = createBar(data, opt, symbolMeta);\n\n data.setItemGraphicEl(dataIndex, bar);\n group.add(bar);\n\n updateCommon(bar, opt, symbolMeta);\n })\n .update(function (newIndex, oldIndex) {\n let bar = oldData.getItemGraphicEl(oldIndex) as PictorialBarElement;\n\n if (!data.hasValue(newIndex)) {\n group.remove(bar);\n return;\n }\n\n const itemModel = getItemModel(data, newIndex);\n const symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);\n\n const pictorialShapeStr = getShapeStr(data, symbolMeta);\n if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {\n group.remove(bar);\n data.setItemGraphicEl(newIndex, null);\n bar = null;\n }\n\n if (bar) {\n updateBar(bar, opt, symbolMeta);\n }\n else {\n bar = createBar(data, opt, symbolMeta, true);\n }\n\n data.setItemGraphicEl(newIndex, bar);\n bar.__pictorialSymbolMeta = symbolMeta;\n // Add back\n group.add(bar);\n\n updateCommon(bar, opt, symbolMeta);\n })\n .remove(function (dataIndex) {\n const bar = oldData.getItemGraphicEl(dataIndex) as PictorialBarElement;\n bar && removeBar(\n oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar\n );\n })\n .execute();\n\n this._data = data;\n\n return this.group;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n const group = this.group;\n const data = this._data;\n if (ecModel.get('animation')) {\n if (data) {\n data.eachItemGraphicEl(function (bar: PictorialBarElement) {\n removeBar(data, getECData(bar).dataIndex, ecModel as Model, bar);\n });\n }\n }\n else {\n group.removeAll();\n }\n }\n}\n\n// Set or calculate default value about symbol, and calculate layout info.\nfunction getSymbolMeta(\n data: SeriesData,\n dataIndex: number,\n itemModel: ItemModel,\n opt: CreateOpts\n): SymbolMeta {\n const layout = data.getItemLayout(dataIndex) as RectLayout;\n const symbolRepeat = itemModel.get('symbolRepeat');\n const symbolClip = itemModel.get('symbolClip');\n const symbolPosition = itemModel.get('symbolPosition') || 'start';\n const symbolRotate = itemModel.get('symbolRotate');\n const rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n const symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n const isAnimationEnabled = itemModel.isAnimationEnabled();\n\n const symbolMeta: SymbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n style: data.getItemVisual(dataIndex, 'style'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n z2: itemModel.getShallow('z', true) || 0\n } as SymbolMeta;\n\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\n prepareSymbolSize(\n data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,\n symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta\n );\n\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\n const symbolSize = symbolMeta.symbolSize;\n const symbolOffset = normalizeSymbolOffset(itemModel.get('symbolOffset'), symbolSize);\n\n prepareLayoutInfo(\n itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset as number[],\n symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,\n opt, symbolMeta\n );\n\n return symbolMeta;\n}\n\n// bar length can be negative.\nfunction prepareBarLength(\n itemModel: ItemModel,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n layout: RectLayout,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const valueDim = opt.valueDim;\n const symbolBoundingData = itemModel.get('symbolBoundingData');\n const valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());\n const zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));\n const pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);\n let boundingLength;\n\n if (zrUtil.isArray(symbolBoundingData)) {\n const symbolBoundingExtent = [\n convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx,\n convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx\n ];\n symbolBoundingExtent[1] < symbolBoundingExtent[0] && (symbolBoundingExtent.reverse());\n boundingLength = symbolBoundingExtent[pxSignIdx];\n }\n else if (symbolBoundingData != null) {\n boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;\n }\n else if (symbolRepeat) {\n boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;\n }\n else {\n boundingLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.boundingLength = boundingLength;\n\n if (symbolRepeat) {\n outputSymbolMeta.repeatCutLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0;\n}\n\nfunction convertToCoordOnAxis(axis: Axis2D, value: number) {\n return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));\n}\n\n// Support ['100%', '100%']\nfunction prepareSymbolSize(\n data: SeriesData,\n dataIndex: number,\n layout: RectLayout,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n symbolClip: unknown,\n boundingLength: number,\n pxSign: number,\n symbolPatternSize: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const valueDim = opt.valueDim;\n const categoryDim = opt.categoryDim;\n const categorySize = Math.abs(layout[categoryDim.wh]);\n\n const symbolSize = data.getItemVisual(dataIndex, 'symbolSize');\n let parsedSymbolSize: number[];\n if (zrUtil.isArray(symbolSize)) {\n parsedSymbolSize = symbolSize.slice();\n }\n else {\n if (symbolSize == null) {\n // will parse to number below\n parsedSymbolSize = ['100%', '100%'] as unknown as number[];\n }\n else {\n parsedSymbolSize = [symbolSize, symbolSize];\n }\n }\n\n // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is\n // to complicated to calculate real percent value if considering scaled lineWidth.\n // So the actual size will bigger than layout size if lineWidth is bigger than zero,\n // which can be tolerated in pictorial chart.\n\n parsedSymbolSize[categoryDim.index] = parsePercent(\n parsedSymbolSize[categoryDim.index],\n categorySize\n );\n parsedSymbolSize[valueDim.index] = parsePercent(\n parsedSymbolSize[valueDim.index],\n symbolRepeat ? categorySize : Math.abs(boundingLength)\n );\n\n outputSymbolMeta.symbolSize = parsedSymbolSize;\n\n // If x or y is less than zero, show reversed shape.\n const symbolScale = outputSymbolMeta.symbolScale = [\n parsedSymbolSize[0] / symbolPatternSize,\n parsedSymbolSize[1] / symbolPatternSize\n ];\n // Follow convention, 'right' and 'top' is the normal scale.\n symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;\n}\n\nfunction prepareLineWidth(\n itemModel: ItemModel,\n symbolScale: number[],\n rotation: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n // In symbols are drawn with scale, so do not need to care about the case that width\n // or height are too small. But symbol use strokeNoScale, where acture lineWidth should\n // be calculated.\n let valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;\n\n if (valueLineWidth) {\n pathForLineWidth.attr({\n scaleX: symbolScale[0],\n scaleY: symbolScale[1],\n rotation: rotation\n });\n pathForLineWidth.updateTransform();\n valueLineWidth /= pathForLineWidth.getLineScale();\n valueLineWidth *= symbolScale[opt.valueDim.index];\n }\n\n outputSymbolMeta.valueLineWidth = valueLineWidth;\n}\n\nfunction prepareLayoutInfo(\n itemModel: ItemModel,\n symbolSize: number[],\n layout: RectLayout,\n symbolRepeat: PictorialBarDataItemOption['symbolRepeat'],\n symbolClip: PictorialBarDataItemOption['symbolClip'],\n symbolOffset: number[],\n symbolPosition: PictorialBarDataItemOption['symbolPosition'],\n valueLineWidth: number,\n boundingLength: number,\n repeatCutLength: number,\n opt: CreateOpts,\n outputSymbolMeta: SymbolMeta\n) {\n const categoryDim = opt.categoryDim;\n const valueDim = opt.valueDim;\n const pxSign = outputSymbolMeta.pxSign;\n\n const unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);\n let pathLen = unitLength;\n\n // Note: rotation will not effect the layout of symbols, because user may\n // want symbols to rotate on its center, which should not be translated\n // when rotating.\n\n if (symbolRepeat) {\n const absBoundingLength = Math.abs(boundingLength);\n\n let symbolMargin = zrUtil.retrieve(itemModel.get('symbolMargin'), '15%') + '';\n let hasEndGap = false;\n if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {\n hasEndGap = true;\n symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);\n }\n let symbolMarginNumeric = parsePercent(symbolMargin, symbolSize[valueDim.index]);\n\n let uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0);\n\n // When symbol margin is less than 0, margin at both ends will be subtracted\n // to ensure that all of the symbols will not be overflow the given area.\n let endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;\n\n // Both final repeatTimes and final symbolMarginNumeric area calculated based on\n // boundingLength.\n const repeatSpecified = isNumeric(symbolRepeat);\n let repeatTimes = repeatSpecified\n ? symbolRepeat as number\n : toIntTimes((absBoundingLength + endFix) / uLenWithMargin);\n\n // Adjust calculate margin, to ensure each symbol is displayed\n // entirely in the given layout area.\n const mDiff = absBoundingLength - repeatTimes * unitLength;\n symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : Math.max(repeatTimes - 1, 1));\n uLenWithMargin = unitLength + symbolMarginNumeric * 2;\n endFix = hasEndGap ? 0 : symbolMarginNumeric * 2;\n\n // Update repeatTimes when not all symbol will be shown.\n if (!repeatSpecified && symbolRepeat !== 'fixed') {\n repeatTimes = repeatCutLength\n ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin)\n : 0;\n }\n\n pathLen = repeatTimes * uLenWithMargin - endFix;\n outputSymbolMeta.repeatTimes = repeatTimes;\n outputSymbolMeta.symbolMargin = symbolMarginNumeric;\n }\n\n const sizeFix = pxSign * (pathLen / 2);\n const pathPosition = outputSymbolMeta.pathPosition = [] as number[];\n pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;\n pathPosition[valueDim.index] = symbolPosition === 'start'\n ? sizeFix\n : symbolPosition === 'end'\n ? boundingLength - sizeFix\n : boundingLength / 2; // 'center'\n if (symbolOffset) {\n pathPosition[0] += symbolOffset[0];\n pathPosition[1] += symbolOffset[1];\n }\n\n const bundlePosition = outputSymbolMeta.bundlePosition = [] as number[];\n bundlePosition[categoryDim.index] = layout[categoryDim.xy];\n bundlePosition[valueDim.index] = layout[valueDim.xy];\n\n const barRectShape = outputSymbolMeta.barRectShape = zrUtil.extend({}, layout);\n barRectShape[valueDim.wh] = pxSign * Math.max(\n Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix)\n );\n barRectShape[categoryDim.wh] = layout[categoryDim.wh];\n\n const clipShape = outputSymbolMeta.clipShape = {} as RectShape;\n // Consider that symbol may be overflow layout rect.\n clipShape[categoryDim.xy] = -layout[categoryDim.xy];\n clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];\n clipShape[valueDim.xy] = 0;\n clipShape[valueDim.wh] = layout[valueDim.wh];\n}\n\nfunction createPath(symbolMeta: SymbolMeta) {\n const symbolPatternSize = symbolMeta.symbolPatternSize;\n const path = createSymbol(\n // Consider texture img, make a big size.\n symbolMeta.symbolType,\n -symbolPatternSize / 2,\n -symbolPatternSize / 2,\n symbolPatternSize,\n symbolPatternSize\n );\n (path as Displayable).attr({\n culling: true\n });\n path.type !== 'image' && path.setStyle({\n strokeNoScale: true\n });\n\n return path as PictorialSymbol;\n}\n\nfunction createOrUpdateRepeatSymbols(\n bar: PictorialBarElement, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean\n) {\n const bundle = bar.__pictorialBundle;\n const symbolSize = symbolMeta.symbolSize;\n const valueLineWidth = symbolMeta.valueLineWidth;\n const pathPosition = symbolMeta.pathPosition;\n const valueDim = opt.valueDim;\n const repeatTimes = symbolMeta.repeatTimes || 0;\n\n let index = 0;\n const unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;\n\n eachPath(bar, function (path) {\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n if (index < repeatTimes) {\n updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);\n }\n else {\n updateAttr(path, null, { scaleX: 0, scaleY: 0 }, symbolMeta, isUpdate, function () {\n bundle.remove(path);\n });\n }\n\n // updateHoverAnimation(path, symbolMeta);\n\n index++;\n });\n\n for (; index < repeatTimes; index++) {\n const path = createPath(symbolMeta);\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n bundle.add(path);\n\n const target = makeTarget(index);\n\n updateAttr(\n path,\n {\n x: target.x,\n y: target.y,\n scaleX: 0,\n scaleY: 0\n },\n {\n scaleX: target.scaleX,\n scaleY: target.scaleY,\n rotation: target.rotation\n },\n symbolMeta,\n isUpdate\n );\n }\n\n function makeTarget(index: number) {\n const position = pathPosition.slice();\n // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index\n // Otherwise: i = index;\n const pxSign = symbolMeta.pxSign;\n let i = index;\n if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {\n i = repeatTimes - 1 - index;\n }\n position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];\n\n return {\n x: position[0],\n y: position[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n };\n }\n}\n\nfunction createOrUpdateSingleSymbol(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n const bundle = bar.__pictorialBundle;\n let mainPath = bar.__pictorialMainPath;\n\n if (!mainPath) {\n mainPath = bar.__pictorialMainPath = createPath(symbolMeta);\n bundle.add(mainPath);\n\n updateAttr(\n mainPath,\n {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: 0,\n scaleY: 0,\n rotation: symbolMeta.rotation\n },\n {\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1]\n },\n symbolMeta,\n isUpdate\n );\n }\n else {\n updateAttr(\n mainPath,\n null,\n {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n },\n symbolMeta,\n isUpdate\n );\n }\n}\n\n// bar rect is used for label.\nfunction createOrUpdateBarRect(\n bar: PictorialBarElement,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n const rectShape = zrUtil.extend({}, symbolMeta.barRectShape);\n\n let barRect = bar.__pictorialBarRect;\n if (!barRect) {\n barRect = bar.__pictorialBarRect = new graphic.Rect({\n z2: 2,\n shape: rectShape,\n silent: true,\n style: {\n stroke: 'transparent',\n fill: 'transparent',\n lineWidth: 0\n }\n });\n (barRect as ECElement).disableMorphing = true;\n\n bar.add(barRect);\n }\n else {\n updateAttr(barRect, null, {shape: rectShape}, symbolMeta, isUpdate);\n }\n}\n\nfunction createOrUpdateClip(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean\n) {\n // If not clip, symbol will be remove and rebuilt.\n if (symbolMeta.symbolClip) {\n let clipPath = bar.__pictorialClipPath;\n const clipShape = zrUtil.extend({}, symbolMeta.clipShape);\n const valueDim = opt.valueDim;\n const animationModel = symbolMeta.animationModel;\n const dataIndex = symbolMeta.dataIndex;\n\n if (clipPath) {\n graphic.updateProps(\n clipPath, {shape: clipShape}, animationModel, dataIndex\n );\n }\n else {\n clipShape[valueDim.wh] = 0;\n clipPath = new graphic.Rect({shape: clipShape});\n bar.__pictorialBundle.setClipPath(clipPath);\n bar.__pictorialClipPath = clipPath;\n\n const target = {} as RectShape;\n target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];\n\n graphic[isUpdate ? 'updateProps' : 'initProps'](\n clipPath, {shape: target}, animationModel, dataIndex\n );\n }\n }\n}\n\nfunction getItemModel(data: SeriesData, dataIndex: number) {\n const itemModel = data.getItemModel(dataIndex) as ItemModel;\n itemModel.getAnimationDelayParams = getAnimationDelayParams;\n itemModel.isAnimationEnabled = isAnimationEnabled;\n return itemModel;\n}\n\nfunction getAnimationDelayParams(this: ItemModel, path: PictorialSymbol) {\n // The order is the same as the z-order, see `symbolRepeatDiretion`.\n return {\n index: path.__pictorialAnimationIndex,\n count: path.__pictorialRepeatTimes\n };\n}\n\nfunction isAnimationEnabled(this: ItemModel) {\n // `animation` prop can be set on itemModel in pictorial bar chart.\n return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');\n}\n\nfunction createBar(data: SeriesData, opt: CreateOpts, symbolMeta: SymbolMeta, isUpdate?: boolean) {\n // bar is the main element for each data.\n const bar = new graphic.Group() as PictorialBarElement;\n // bundle is used for location and clip.\n const bundle = new graphic.Group();\n bar.add(bundle);\n bar.__pictorialBundle = bundle;\n\n bundle.x = symbolMeta.bundlePosition[0];\n bundle.y = symbolMeta.bundlePosition[1];\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta);\n }\n else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, isUpdate);\n\n createOrUpdateClip(bar, opt, symbolMeta, isUpdate);\n\n bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);\n bar.__pictorialSymbolMeta = symbolMeta;\n return bar;\n}\n\nfunction updateBar(bar: PictorialBarElement, opt: CreateOpts, symbolMeta: SymbolMeta) {\n const animationModel = symbolMeta.animationModel;\n const dataIndex = symbolMeta.dataIndex;\n const bundle = bar.__pictorialBundle;\n\n graphic.updateProps(\n bundle, {\n x: symbolMeta.bundlePosition[0],\n y: symbolMeta.bundlePosition[1]\n }, animationModel, dataIndex\n );\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);\n }\n else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, true);\n\n createOrUpdateClip(bar, opt, symbolMeta, true);\n}\n\nfunction removeBar(\n data: SeriesData, dataIndex: number, animationModel: Model, bar: PictorialBarElement\n) {\n // Not show text when animating\n const labelRect = bar.__pictorialBarRect;\n labelRect && (labelRect.removeTextContent());\n\n const pathes = [];\n eachPath(bar, function (path) {\n pathes.push(path);\n });\n bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath);\n\n // I do not find proper remove animation for clip yet.\n bar.__pictorialClipPath && (animationModel = null);\n\n zrUtil.each(pathes, function (path) {\n graphic.removeElement(\n path, { scaleX: 0, scaleY: 0 }, animationModel, dataIndex,\n function () {\n bar.parent && bar.parent.remove(bar);\n }\n );\n });\n\n data.setItemGraphicEl(dataIndex, null);\n}\n\nfunction getShapeStr(data: SeriesData, symbolMeta: SymbolMeta) {\n return [\n data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none',\n !!symbolMeta.symbolRepeat,\n !!symbolMeta.symbolClip\n ].join(':');\n}\n\nfunction eachPath(\n bar: PictorialBarElement,\n cb: (this: Ctx, el: PictorialSymbol) => void,\n context?: Ctx\n) {\n // Do not use Group#eachChild, because it do not support remove.\n zrUtil.each(bar.__pictorialBundle.children(), function (el) {\n el !== bar.__pictorialBarRect && cb.call(context, el);\n });\n}\n\nfunction updateAttr(\n el: T,\n immediateAttrs: PathProps,\n animationAttrs: PathProps,\n symbolMeta: SymbolMeta,\n isUpdate?: boolean,\n cb?: () => void\n) {\n immediateAttrs && el.attr(immediateAttrs);\n // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.\n if (symbolMeta.symbolClip && !isUpdate) {\n animationAttrs && el.attr(animationAttrs);\n }\n else {\n animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps'](\n el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb\n );\n }\n}\n\nfunction updateCommon(\n bar: PictorialBarElement,\n opt: CreateOpts,\n symbolMeta: SymbolMeta\n) {\n const dataIndex = symbolMeta.dataIndex;\n const itemModel = symbolMeta.itemModel;\n // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n const emphasisModel = itemModel.getModel('emphasis');\n const emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n const blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n const selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n const cursorStyle = itemModel.getShallow('cursor');\n\n const focus = emphasisModel.get('focus');\n const blurScope = emphasisModel.get('blurScope');\n const hoverScale = emphasisModel.get('scale');\n\n eachPath(bar, function (path) {\n if (path instanceof ZRImage) {\n const pathStyle = path.style;\n path.useStyle(zrUtil.extend({\n // TODO other properties like dx, dy ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, symbolMeta.style));\n }\n else {\n path.useStyle(symbolMeta.style);\n }\n\n const emphasisState = path.ensureState('emphasis');\n emphasisState.style = emphasisStyle;\n\n if (hoverScale) {\n // NOTE: Must after scale is set after updateAttr\n emphasisState.scaleX = path.scaleX * 1.1;\n emphasisState.scaleY = path.scaleY * 1.1;\n }\n\n path.ensureState('blur').style = blurStyle;\n path.ensureState('select').style = selectStyle;\n\n cursorStyle && (path.cursor = cursorStyle);\n path.z2 = symbolMeta.z2;\n });\n\n const barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];\n const barRect = bar.__pictorialBarRect;\n\n setLabelStyle(\n barRect, getLabelStatesModels(itemModel),\n {\n labelFetcher: opt.seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(opt.seriesModel.getData(), dataIndex),\n inheritColor: symbolMeta.style.fill as ColorString,\n defaultOpacity: symbolMeta.style.opacity,\n defaultOutsidePosition: barPositionOutside\n }\n );\n\n enableHoverEmphasis(bar, focus, blurScope);\n}\n\nfunction toIntTimes(times: number) {\n const roundedTimes = Math.round(times);\n // Escapse accurate error\n return Math.abs(times - roundedTimes) < 1e-4\n ? roundedTimes\n : Math.ceil(times);\n}\n\nexport default PictorialBarView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseBarSeriesModel, { BaseBarSeriesOption } from './BaseBarSeries';\nimport {\n OptionDataValue,\n ItemStyleOption,\n SeriesLabelOption,\n AnimationOptionMixin,\n SeriesStackOptionMixin,\n StatesOptionMixin,\n OptionDataItemObject,\n DefaultEmphasisFocus\n} from '../../util/types';\nimport type Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface PictorialBarStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface PictorialBarSeriesSymbolOption {\n /**\n * Customized bar shape\n */\n symbol?: string\n /**\n * Can be ['100%', '100%'], null means auto.\n * The percent will be relative to category width. If no repeat.\n * Will be relative to symbolBoundingData.\n */\n symbolSize?: (number | string)[] | number | string\n\n symbolRotate?: number\n\n /**\n * Default to be auto\n */\n symbolPosition?: 'start' | 'end' | 'center'\n\n /**\n * Can be percent offset relative to the symbolSize\n */\n symbolOffset?: (number | string)[] | number | string\n /**\n * start margin and end margin. Can be a number or a percent string relative to symbolSize.\n * Auto margin by default.\n */\n symbolMargin?: (number | string)[] | number | string\n\n /**\n * true: means auto calculate repeat times and cut by data.\n * a number: specifies repeat times, and do not cut by data.\n * 'fixed': means auto calculate repeat times but do not cut by data.\n *\n * Otherwise means no repeat\n */\n symbolRepeat?: boolean | number | 'fixed'\n\n /**\n * From start to end or end to start.\n */\n symbolRepeatDirection?: 'start' | 'end'\n\n symbolClip?: boolean\n\n /**\n * It will define the size of graphic elements.\n */\n symbolBoundingData?: number | number[]\n\n symbolPatternSize?: number\n}\n\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus\n scale?: boolean\n }\n}\n\nexport interface PictorialBarDataItemOption extends PictorialBarSeriesSymbolOption,\n // Pictorial bar support configure animation in each data item.\n AnimationOptionMixin,\n PictorialBarStateOption, StatesOptionMixin,\n OptionDataItemObject {\n\n z?: number\n\n cursor?: string\n}\n\nexport interface PictorialBarSeriesOption\n extends BaseBarSeriesOption, PictorialBarStateOption,\n PictorialBarSeriesSymbolOption,\n SeriesStackOptionMixin {\n\n type?: 'pictorialBar'\n\n coordinateSystem?: 'cartesian2d'\n\n data?: (PictorialBarDataItemOption | OptionDataValue | OptionDataValue[])[]\n}\n\nclass PictorialBarSeriesModel extends BaseBarSeriesModel {\n static type = 'series.pictorialBar';\n type = PictorialBarSeriesModel.type;\n\n static dependencies = ['grid'];\n\n coordinateSystem: Cartesian2D;\n\n\n hasSymbolVisual = true;\n defaultSymbol = 'roundRect';\n\n static defaultOption: PictorialBarSeriesOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n\n symbol: 'circle', // Customized bar shape\n symbolSize: null, //\n symbolRotate: null,\n\n symbolPosition: null, // 'start' or 'end' or 'center', null means auto.\n symbolOffset: null,\n symbolMargin: null,\n symbolRepeat: false,\n symbolRepeatDirection: 'end', // 'end' means from 'start' to 'end'.\n\n symbolClip: false,\n symbolBoundingData: null, // Can be 60 or -40 or [-40, 60]\n symbolPatternSize: 400, // 400 * 400 px\n\n barGap: '-100%', // In most case, overlap is needed.\n\n // z can be set in data item, which is z2 actually.\n\n // Disable progressive\n progressive: 0,\n\n emphasis: {\n // By default pictorialBar do not hover scale. Hover scale is not suitable\n // for the case that both has foreground and background.\n scale: false\n },\n\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n });\n\n getInitialData(option: PictorialBarSeriesOption) {\n // Disable stack.\n (option as any).stack = null;\n return super.getInitialData.apply(this, arguments as any);\n }\n}\n\nexport default PictorialBarSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport PictorialBarView from './PictorialBarView';\nimport PictorialBarSeriesModel from './PictorialBarSeries';\nimport { layout } from '../../layout/barGrid';\nimport { curry } from 'zrender/src/core/util';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(PictorialBarView);\n registers.registerSeriesModel(PictorialBarSeriesModel);\n\n registers.registerLayout(curry(\n layout, 'pictorialBar'\n ));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {ECPolygon} from '../line/poly';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport {setLabelStyle, getLabelStatesModels} from '../../label/labelStyle';\nimport {bind} from 'zrender/src/core/util';\nimport DataDiffer from '../../data/DataDiffer';\nimport ChartView from '../../view/Chart';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { ColorString } from '../../util/types';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\ntype LayerSeries = ReturnType;\n\nclass ThemeRiverView extends ChartView {\n\n static readonly type = 'themeRiver';\n readonly type = ThemeRiverView.type;\n\n private _layersSeries: LayerSeries;\n private _layers: graphic.Group[] = [];\n\n render(seriesModel: ThemeRiverSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const data = seriesModel.getData();\n const self = this;\n\n const group = this.group;\n\n const layersSeries = seriesModel.getLayerSeries();\n\n const layoutInfo = data.getLayout('layoutInfo');\n const rect = layoutInfo.rect;\n const boundaryGap = layoutInfo.boundaryGap;\n\n group.x = 0;\n group.y = rect.y + boundaryGap[0];\n\n function keyGetter(item: LayerSeries[number]) {\n return item.name;\n }\n const dataDiffer = new DataDiffer(\n this._layersSeries || [], layersSeries,\n keyGetter, keyGetter\n );\n\n const newLayersGroups: graphic.Group[] = [];\n\n dataDiffer\n .add(bind(process, this, 'add'))\n .update(bind(process, this, 'update'))\n .remove(bind(process, this, 'remove'))\n .execute();\n\n function process(status: 'add' | 'update' | 'remove', idx: number, oldIdx?: number) {\n const oldLayersGroups = self._layers;\n if (status === 'remove') {\n group.remove(oldLayersGroups[idx]);\n return;\n }\n const points0: number[] = [];\n const points1: number[] = [];\n let style;\n const indices = layersSeries[idx].indices;\n let j = 0;\n for (; j < indices.length; j++) {\n const layout = data.getItemLayout(indices[j]);\n const x = layout.x;\n const y0 = layout.y0;\n const y = layout.y;\n\n points0.push(x, y0);\n points1.push(x, y0 + y);\n\n style = data.getItemVisual(indices[j], 'style');\n }\n\n let polygon: ECPolygon;\n const textLayout = data.getItemLayout(indices[0]);\n const labelModel = seriesModel.getModel('label');\n const margin = labelModel.get('margin');\n const emphasisModel = seriesModel.getModel('emphasis');\n\n if (status === 'add') {\n const layerGroup = newLayersGroups[idx] = new graphic.Group();\n polygon = new ECPolygon({\n shape: {\n points: points0,\n stackedOnPoints: points1,\n smooth: 0.4,\n stackedOnSmooth: 0.4,\n smoothConstraint: false\n },\n z2: 0\n });\n layerGroup.add(polygon);\n group.add(layerGroup);\n\n if (seriesModel.isAnimationEnabled()) {\n polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {\n polygon.removeClipPath();\n }));\n }\n }\n else {\n const layerGroup = oldLayersGroups[oldIdx];\n polygon = layerGroup.childAt(0) as ECPolygon;\n group.add(layerGroup);\n\n newLayersGroups[idx] = layerGroup;\n\n graphic.updateProps(polygon, {\n shape: {\n points: points0,\n stackedOnPoints: points1\n }\n }, seriesModel);\n\n saveOldStyle(polygon);\n }\n\n setLabelStyle(polygon, getLabelStatesModels(seriesModel), {\n labelDataIndex: indices[j - 1],\n defaultText: data.getName(indices[j - 1]),\n inheritColor: style.fill as ColorString\n }, {\n normal: {\n verticalAlign: 'middle'\n // align: 'right'\n }\n });\n polygon.setTextConfig({\n position: null,\n local: true\n });\n\n const labelEl = polygon.getTextContent();\n // TODO More label position options.\n if (labelEl) {\n labelEl.x = textLayout.x - margin;\n labelEl.y = textLayout.y0 + textLayout.y / 2;\n }\n\n polygon.useStyle(style);\n\n data.setItemGraphicEl(idx, polygon);\n\n setStatesStylesFromModel(polygon, seriesModel);\n enableHoverEmphasis(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n this._layersSeries = layersSeries;\n this._layers = newLayersGroups;\n }\n};\n\n// add animation to the view\nfunction createGridClipShape(rect: RectLike, seriesModel: ThemeRiverSeriesModel, cb: () => void) {\n const rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n x: rect.x - 50,\n width: rect.width + 100,\n height: rect.height + 20\n }\n }, seriesModel, cb);\n\n return rectEl;\n}\n\nexport default ThemeRiverView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesModel from '../../model/Series';\nimport createDimensions from '../../data/helper/createDimensions';\nimport {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper';\nimport SeriesData from '../../data/SeriesData';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {groupData, SINGLE_REFERRING} from '../../util/model';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport {\n SeriesOption,\n SeriesOnSingleOptionMixin,\n OptionDataValueDate,\n OptionDataValueNumeric,\n ItemStyleOption,\n BoxLayoutOptionMixin,\n ZRColor,\n Dictionary,\n SeriesLabelOption\n} from '../../util/types';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport GlobalModel from '../../model/Global';\nimport Single from '../../coord/single/Single';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nconst DATA_NAME_INDEX = 2;\n\ninterface ThemeRiverSeriesLabelOption extends SeriesLabelOption {\n margin?: number\n}\n\ntype ThemerRiverDataItem = [OptionDataValueDate, OptionDataValueNumeric, string];\n\nexport interface ThemeRiverStateOption {\n label?: ThemeRiverSeriesLabelOption\n itemStyle?: ItemStyleOption\n}\n\nexport interface ThemeRiverSeriesOption extends SeriesOption, ThemeRiverStateOption,\n SeriesOnSingleOptionMixin, BoxLayoutOptionMixin {\n type?: 'themeRiver'\n\n color?: ZRColor[]\n\n coordinateSystem?: 'singleAxis'\n\n /**\n * gap in axis's orthogonal orientation\n */\n boundaryGap?: (string | number)[]\n /**\n * [date, value, name]\n */\n data?: ThemerRiverDataItem[]\n}\n\nclass ThemeRiverSeriesModel extends SeriesModel {\n static readonly type = 'series.themeRiver';\n readonly type = ThemeRiverSeriesModel.type;\n\n static readonly dependencies = ['singleAxis'];\n\n nameMap: zrUtil.HashMap;\n\n coordinateSystem: Single;\n\n /**\n * @override\n */\n init(option: ThemeRiverSeriesOption) {\n // eslint-disable-next-line\n super.init.apply(this, arguments as any);\n\n // Put this function here is for the sake of consistency of code style.\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n this.legendVisualProvider = new LegendVisualProvider(\n zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)\n );\n }\n\n /**\n * If there is no value of a certain point in the time for some event,set it value to 0.\n *\n * @param {Array} data initial data in the option\n * @return {Array}\n */\n fixData(data: ThemeRiverSeriesOption['data']) {\n let rawDataLength = data.length;\n /**\n * Make sure every layer data get the same keys.\n * The value index tells which layer has visited.\n * {\n * 2014/01/01: -1\n * }\n */\n const timeValueKeys: Dictionary = {};\n\n // grouped data by name\n const groupResult = groupData(data, (item: ThemerRiverDataItem) => {\n if (!timeValueKeys.hasOwnProperty(item[0] + '')) {\n timeValueKeys[item[0] + ''] = -1;\n }\n return item[2];\n });\n const layerData: {name: string, dataList: ThemerRiverDataItem[]}[] = [];\n groupResult.buckets.each(function (items, key) {\n layerData.push({\n name: key, dataList: items\n });\n });\n const layerNum = layerData.length;\n\n for (let k = 0; k < layerNum; ++k) {\n const name = layerData[k].name;\n for (let j = 0; j < layerData[k].dataList.length; ++j) {\n const timeValue = layerData[k].dataList[j][0] + '';\n timeValueKeys[timeValue] = k;\n }\n\n for (const timeValue in timeValueKeys) {\n if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) {\n timeValueKeys[timeValue] = k;\n data[rawDataLength] = [timeValue, 0, name];\n rawDataLength++;\n }\n }\n\n }\n return data;\n }\n\n /**\n * @override\n * @param option the initial option that user gived\n * @param ecModel the model object for themeRiver option\n */\n getInitialData(option: ThemeRiverSeriesOption, ecModel: GlobalModel): SeriesData {\n\n const singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n\n const axisType = singleAxisModel.get('type');\n\n // filter the data item with the value of label is undefined\n const filterData = zrUtil.filter(option.data, function (dataItem) {\n return dataItem[2] !== undefined;\n });\n\n // ??? TODO design a stage to transfer data for themeRiver and lines?\n const data = this.fixData(filterData || []);\n const nameList = [];\n const nameMap = this.nameMap = zrUtil.createHashMap();\n let count = 0;\n\n for (let i = 0; i < data.length; ++i) {\n nameList.push(data[i][DATA_NAME_INDEX]);\n if (!nameMap.get(data[i][DATA_NAME_INDEX] as string)) {\n nameMap.set(data[i][DATA_NAME_INDEX] as string, count);\n count++;\n }\n }\n\n const { dimensionList } = createDimensions(data, {\n coordDimensions: ['single'],\n dimensionsDefine: [\n {\n name: 'time',\n type: getDimensionTypeByAxis(axisType)\n },\n {\n name: 'value',\n type: 'float'\n },\n {\n name: 'name',\n type: 'ordinal'\n }\n ],\n encodeDefine: {\n single: 0,\n value: 1,\n itemName: 2\n }\n });\n\n const list = new SeriesData(dimensionList, this);\n list.initData(data);\n\n return list;\n }\n\n /**\n * The raw data is divided into multiple layers and each layer\n * has same name.\n */\n getLayerSeries() {\n const data = this.getData();\n const lenCount = data.count();\n const indexArr = [];\n\n for (let i = 0; i < lenCount; ++i) {\n indexArr[i] = i;\n }\n\n const timeDim = data.mapDimension('single');\n\n // data group by name\n const groupResult = groupData(indexArr, function (index) {\n return data.get('name', index) as string;\n });\n const layerSeries: {\n name: string\n indices: number[]\n }[] = [];\n groupResult.buckets.each(function (items: number[], key: string) {\n items.sort(function (index1: number, index2: number) {\n return data.get(timeDim, index1) as number - (data.get(timeDim, index2) as number);\n });\n layerSeries.push({\n name: key,\n indices: items\n });\n });\n\n return layerSeries;\n }\n\n /**\n * Get data indices for show tooltip content\n */\n getAxisTooltipData(dim: string | string[], value: number, baseAxis: SingleAxis) {\n if (!zrUtil.isArray(dim)) {\n dim = dim ? [dim] : [];\n }\n\n const data = this.getData();\n const layerSeries = this.getLayerSeries();\n const indices = [];\n const layerNum = layerSeries.length;\n let nestestValue;\n\n for (let i = 0; i < layerNum; ++i) {\n let minDist = Number.MAX_VALUE;\n let nearestIdx = -1;\n const pointNum = layerSeries[i].indices.length;\n for (let j = 0; j < pointNum; ++j) {\n const theValue = data.get(dim[0], layerSeries[i].indices[j]) as number;\n const dist = Math.abs(theValue - value);\n if (dist <= minDist) {\n nestestValue = theValue;\n minDist = dist;\n nearestIdx = layerSeries[i].indices[j];\n }\n }\n indices.push(nearestIdx);\n }\n\n return {dataIndices: indices, nestestValue: nestestValue};\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const name = data.getName(dataIndex);\n const value = data.get(data.mapDimension('value'), dataIndex);\n\n return createTooltipMarkup('nameValue', { name: name, value: value });\n }\n\n static defaultOption: ThemeRiverSeriesOption = {\n zlevel: 0,\n z: 2,\n\n colorBy: 'data',\n coordinateSystem: 'singleAxis',\n\n // gap in axis's orthogonal orientation\n boundaryGap: ['10%', '10%'],\n\n // legendHoverLink: true,\n\n singleAxisIndex: 0,\n\n animationEasing: 'linear',\n\n label: {\n margin: 4,\n show: true,\n position: 'left',\n fontSize: 11\n },\n\n emphasis: {\n\n label: {\n show: true\n }\n }\n };\n}\n\nexport default ThemeRiverSeriesModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as numberUtil from '../../util/number';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport ThemeRiverSeriesModel, { ThemeRiverSeriesOption } from './ThemeRiverSeries';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport SeriesData from '../../data/SeriesData';\n\nexport interface ThemeRiverLayoutInfo {\n rect: RectLike\n boundaryGap: ThemeRiverSeriesOption['boundaryGap']\n}\n\nexport default function themeRiverLayout(ecModel: GlobalModel, api: ExtensionAPI) {\n\n ecModel.eachSeriesByType('themeRiver', function (seriesModel: ThemeRiverSeriesModel) {\n\n const data = seriesModel.getData();\n\n const single = seriesModel.coordinateSystem;\n\n const layoutInfo = {} as ThemeRiverLayoutInfo;\n\n // use the axis boundingRect for view\n const rect = single.getRect();\n\n layoutInfo.rect = rect;\n\n const boundaryGap = seriesModel.get('boundaryGap');\n\n const axis = single.getAxis();\n\n layoutInfo.boundaryGap = boundaryGap;\n\n if (axis.orient === 'horizontal') {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.height);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.height);\n const height = rect.height - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, height);\n }\n else {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.width);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.width);\n const width = rect.width - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, width);\n }\n\n data.setLayout('layoutInfo', layoutInfo);\n });\n}\n\n/**\n * The layout information about themeriver\n *\n * @param data data in the series\n * @param seriesModel the model object of themeRiver series\n * @param height value used to compute every series height\n */\nfunction doThemeRiverLayout(data: SeriesData, seriesModel: ThemeRiverSeriesModel, height: number) {\n if (!data.count()) {\n return;\n }\n const coordSys = seriesModel.coordinateSystem;\n // the data in each layer are organized into a series.\n const layerSeries = seriesModel.getLayerSeries();\n\n // the points in each layer.\n const timeDim = data.mapDimension('single');\n const valueDim = data.mapDimension('value');\n const layerPoints = zrUtil.map(layerSeries, function (singleLayer) {\n return zrUtil.map(singleLayer.indices, function (idx) {\n const pt = coordSys.dataToPoint(data.get(timeDim, idx));\n pt[1] = data.get(valueDim, idx) as number;\n return pt;\n });\n });\n\n const base = computeBaseline(layerPoints);\n const baseLine = base.y0;\n const ky = height / base.max;\n\n // set layout information for each item.\n const n = layerSeries.length;\n const m = layerSeries[0].indices.length;\n let baseY0;\n for (let j = 0; j < m; ++j) {\n baseY0 = baseLine[j] * ky;\n data.setItemLayout(layerSeries[0].indices[j], {\n layerIndex: 0,\n x: layerPoints[0][j][0],\n y0: baseY0,\n y: layerPoints[0][j][1] * ky\n });\n for (let i = 1; i < n; ++i) {\n baseY0 += layerPoints[i - 1][j][1] * ky;\n data.setItemLayout(layerSeries[i].indices[j], {\n layerIndex: i,\n x: layerPoints[i][j][0],\n y0: baseY0,\n y: layerPoints[i][j][1] * ky\n });\n }\n }\n}\n\n/**\n * Compute the baseLine of the rawdata\n * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics\n *\n * @param data the points in each layer\n */\nfunction computeBaseline(data: number[][][]) {\n const layerNum = data.length;\n const pointNum = data[0].length;\n const sums = [];\n const y0 = [];\n let max = 0;\n\n for (let i = 0; i < pointNum; ++i) {\n let temp = 0;\n for (let j = 0; j < layerNum; ++j) {\n temp += data[j][i][1];\n }\n if (temp > max) {\n max = temp;\n }\n sums.push(temp);\n }\n\n for (let k = 0; k < pointNum; ++k) {\n y0[k] = (max - sums[k]) / 2;\n }\n max = 0;\n\n for (let l = 0; l < pointNum; ++l) {\n const sum = sums[l] + y0[l];\n if (sum > max) {\n max = sum;\n }\n }\n\n return {\n y0,\n max\n };\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ThemeRiverView from './ThemeRiverView';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport themeRiverLayout from './themeRiverLayout';\nimport dataFilter from '../../processor/dataFilter';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(ThemeRiverView);\n registers.registerSeriesModel(ThemeRiverSeriesModel);\n\n registers.registerLayout(themeRiverLayout);\n registers.registerProcessor(dataFilter('themeRiver'));\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, SPECIAL_STATES, DISPLAY_STATES } from '../../util/states';\nimport {createTextStyle} from '../../label/labelStyle';\nimport { TreeNode } from '../../data/Tree';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption, SunburstSeriesOption } from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ColorString } from '../../util/types';\nimport Model from '../../model/Model';\nimport { getECData } from '../../util/innerStore';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport {createOrUpdatePatternFromDecal} from '../../util/decal';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { saveOldStyle } from '../../animation/basicTrasition';\n\nconst DEFAULT_SECTOR_Z = 2;\nconst DEFAULT_TEXT_Z = 4;\ninterface DrawTreeNode extends TreeNode {\n piece: SunburstPiece\n}\n/**\n * Sunburstce of Sunburst including Sector, Label, LabelLine\n */\nclass SunburstPiece extends graphic.Sector {\n\n node: TreeNode;\n\n private _seriesModel: SunburstSeriesModel;\n private _ecModel: GlobalModel;\n\n constructor(node: TreeNode, seriesModel: SunburstSeriesModel, ecModel: GlobalModel, api: ExtensionAPI) {\n super();\n\n this.z2 = DEFAULT_SECTOR_Z;\n this.textConfig = {\n inside: true\n };\n\n getECData(this).seriesIndex = seriesModel.seriesIndex;\n\n const text = new graphic.Text({\n z2: DEFAULT_TEXT_Z,\n silent: node.getModel().get(['label', 'silent'])\n });\n this.setTextContent(text);\n\n this.updateData(true, node, seriesModel, ecModel, api);\n }\n\n updateData(\n firstCreate: boolean,\n node: TreeNode,\n // state: 'emphasis' | 'normal' | 'highlight' | 'downplay',\n seriesModel: SunburstSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this.node = node;\n (node as DrawTreeNode).piece = this;\n\n seriesModel = seriesModel || this._seriesModel;\n ecModel = ecModel || this._ecModel;\n\n const sector = this;\n getECData(sector).dataIndex = node.dataIndex;\n\n const itemModel = node.getModel();\n const emphasisModel = itemModel.getModel('emphasis');\n const layout = node.getLayout();\n\n const sectorShape = zrUtil.extend({}, layout);\n sectorShape.label = null;\n\n const normalStyle = node.getVisual('style') as PathStyleProps;\n normalStyle.lineJoin = 'bevel';\n\n const decal = node.getVisual('decal');\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n\n const cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape, true);\n zrUtil.extend(sectorShape, cornerRadius);\n\n zrUtil.each(SPECIAL_STATES, function (stateName) {\n const state = sector.ensureState(stateName);\n const itemStyleModel = itemModel.getModel([stateName, 'itemStyle']);\n state.style = itemStyleModel.getItemStyle();\n // border radius\n const cornerRadius = getSectorCornerRadius(itemStyleModel, sectorShape);\n if (cornerRadius) {\n state.shape = cornerRadius;\n }\n });\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n sector.shape.r = layout.r0;\n graphic.updateProps(\n sector,\n {\n shape: {\n r: layout.r\n }\n },\n seriesModel,\n node.dataIndex\n );\n }\n else {\n // Disable animation for gradient since no interpolation method\n // is supported for gradient\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel);\n\n saveOldStyle(sector);\n }\n\n sector.useStyle(normalStyle);\n\n this._updateLabel(seriesModel);\n\n const cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._seriesModel = seriesModel || this._seriesModel;\n this._ecModel = ecModel || this._ecModel;\n\n const focus = emphasisModel.get('focus');\n\n const focusOrIndices =\n focus === 'ancestor' ? node.getAncestorsIndices()\n : focus === 'descendant' ? node.getDescendantIndices()\n : focus;\n\n enableHoverEmphasis(this, focusOrIndices, emphasisModel.get('blurScope'));\n }\n\n _updateLabel(\n seriesModel: SunburstSeriesModel\n ) {\n const itemModel = this.node.getModel();\n const normalLabelModel = itemModel.getModel('label');\n\n const layout = this.node.getLayout();\n const angle = layout.endAngle - layout.startAngle;\n\n const midAngle = (layout.startAngle + layout.endAngle) / 2;\n const dx = Math.cos(midAngle);\n const dy = Math.sin(midAngle);\n\n const sector = this;\n const label = sector.getTextContent();\n const dataIndex = this.node.dataIndex;\n const labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;\n const isNormalShown = normalLabelModel.get('show')\n && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);\n label.ignore = !isNormalShown;\n\n // TODO use setLabelStyle\n zrUtil.each(DISPLAY_STATES, (stateName) => {\n\n const labelStateModel = stateName === 'normal' ? itemModel.getModel('label')\n : itemModel.getModel([stateName, 'label']);\n const isNormal = stateName === 'normal';\n\n const state = isNormal ? label : label.ensureState(stateName);\n let text = seriesModel.getFormattedLabel(dataIndex, stateName);\n if (isNormal) {\n text = text || this.node.name;\n }\n\n state.style = createTextStyle(labelStateModel, {}, null, stateName !== 'normal', true);\n if (text) {\n state.style.text = text;\n }\n // Not displaying text when angle is too small\n const isShown = labelStateModel.get('show');\n if (isShown != null && !isNormal) {\n state.ignore = !isShown;\n }\n\n const labelPosition = getLabelAttr(labelStateModel, 'position');\n\n const sectorState = isNormal ? sector : sector.states[stateName];\n const labelColor = sectorState.style.fill as ColorString;\n sectorState.textConfig = {\n outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null,\n inside: labelPosition !== 'outside'\n };\n\n let r;\n const labelPadding = getLabelAttr(labelStateModel, 'distance') || 0;\n let textAlign = getLabelAttr(labelStateModel, 'align');\n if (labelPosition === 'outside') {\n r = layout.r + labelPadding;\n textAlign = midAngle > Math.PI / 2 ? 'right' : 'left';\n }\n else {\n if (!textAlign || textAlign === 'center') {\n r = (layout.r + layout.r0) / 2;\n textAlign = 'center';\n }\n else if (textAlign === 'left') {\n r = layout.r0 + labelPadding;\n if (midAngle > Math.PI / 2) {\n textAlign = 'right';\n }\n }\n else if (textAlign === 'right') {\n r = layout.r - labelPadding;\n if (midAngle > Math.PI / 2) {\n textAlign = 'left';\n }\n }\n }\n\n state.style.align = textAlign;\n state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle';\n\n state.x = r * dx + layout.cx;\n state.y = r * dy + layout.cy;\n\n const rotateType = getLabelAttr(labelStateModel, 'rotate');\n let rotate = 0;\n if (rotateType === 'radial') {\n rotate = -midAngle;\n if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n }\n else if (rotateType === 'tangential') {\n rotate = Math.PI / 2 - midAngle;\n if (rotate > Math.PI / 2) {\n rotate -= Math.PI;\n }\n else if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n }\n else if (typeof rotateType === 'number') {\n rotate = rotateType * Math.PI / 180;\n }\n\n state.rotation = rotate;\n });\n\n\n type LabelOpt = SunburstSeriesOption['label'];\n function getLabelAttr(model: Model, name: T): LabelOpt[T] {\n const stateAttr = model.get(name);\n if (stateAttr == null) {\n return normalLabelModel.get(name) as LabelOpt[T];\n }\n return stateAttr;\n }\n\n label.dirtyStyle();\n }\n}\n\n\nexport default SunburstPiece;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Sunburst action\n */\n\nimport SunburstSeriesModel from './SunburstSeries';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { extend } from 'zrender/src/core/util';\nimport { deprecateReplaceLog } from '../../util/log';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { retrieveTargetInfo, aboveViewRoot } from '../helper/treeHelper';\n\nexport const ROOT_TO_NODE_ACTION = 'sunburstRootToNode';\n\ninterface SunburstRootToNodePayload extends Payload {}\n\n\nconst HIGHLIGHT_ACTION = 'sunburstHighlight';\n\ninterface SunburstHighlightPayload extends Payload {}\n\n\nconst UNHIGHLIGHT_ACTION = 'sunburstUnhighlight';\n\ninterface SunburstUnhighlightPayload extends Payload {}\n\nexport function installSunburstAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction(\n {type: ROOT_TO_NODE_ACTION, update: 'updateView'},\n function (payload: SunburstRootToNodePayload, ecModel: GlobalModel) {\n\n ecModel.eachComponent(\n {mainType: 'series', subType: 'sunburst', query: payload},\n handleRootToNode\n );\n\n function handleRootToNode(model: SunburstSeriesModel, index: number) {\n const targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION], model);\n\n if (targetInfo) {\n const originViewRoot = model.getViewRoot();\n if (originViewRoot) {\n payload.direction = aboveViewRoot(originViewRoot, targetInfo.node)\n ? 'rollUp' : 'drillDown';\n }\n model.resetViewRoot(targetInfo.node);\n }\n }\n }\n );\n\n registers.registerAction(\n {type: HIGHLIGHT_ACTION, update: 'none'},\n function (payload: SunburstHighlightPayload, ecModel: GlobalModel, api: ExtensionAPI) {\n // Clone\n payload = extend({}, payload);\n ecModel.eachComponent(\n {mainType: 'series', subType: 'sunburst', query: payload},\n handleHighlight\n );\n\n function handleHighlight(model: SunburstSeriesModel) {\n const targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model);\n if (targetInfo) {\n payload.dataIndex = targetInfo.node.dataIndex;\n }\n }\n\n if (__DEV__) {\n deprecateReplaceLog('highlight', 'sunburstHighlight');\n }\n\n // Fast forward action\n api.dispatchAction(extend(payload, {\n type: 'highlight'\n }));\n }\n );\n\n registers.registerAction(\n {type: UNHIGHLIGHT_ACTION, update: 'updateView'},\n function (payload: SunburstUnhighlightPayload, ecModel: GlobalModel, api: ExtensionAPI) {\n payload = extend({}, payload);\n\n if (__DEV__) {\n deprecateReplaceLog('downplay', 'sunburstUnhighlight');\n }\n\n api.dispatchAction(extend(payload, {\n type: 'downplay'\n }));\n }\n );\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ChartView from '../../view/Chart';\nimport SunburstPiece from './SunburstPiece';\nimport DataDiffer from '../../data/DataDiffer';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption } from './SunburstSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { TreeNode } from '../../data/Tree';\nimport { ROOT_TO_NODE_ACTION } from './sunburstAction';\nimport { windowOpen } from '../../util/format';\n\ninterface DrawTreeNode extends TreeNode {\n parentNode: DrawTreeNode\n piece: SunburstPiece\n children: DrawTreeNode[]\n}\nclass SunburstView extends ChartView {\n\n static readonly type = 'sunburst';\n readonly type = SunburstView.type;\n\n seriesModel: SunburstSeriesModel;\n api: ExtensionAPI;\n ecModel: GlobalModel;\n\n virtualPiece: SunburstPiece;\n\n private _oldChildren: DrawTreeNode[];\n\n render(\n seriesModel: SunburstSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n // @ts-ignore\n payload\n ) {\n const self = this;\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n\n const data = seriesModel.getData();\n const virtualRoot = data.tree.root as DrawTreeNode;\n\n const newRoot = seriesModel.getViewRoot() as DrawTreeNode;\n\n const group = this.group;\n\n const renderLabelForZeroData = seriesModel.get('renderLabelForZeroData');\n\n const newChildren: DrawTreeNode[] = [];\n newRoot.eachNode(function (node: DrawTreeNode) {\n newChildren.push(node);\n });\n const oldChildren = this._oldChildren || [];\n\n dualTravel(newChildren, oldChildren);\n\n renderRollUp(virtualRoot, newRoot);\n\n this._initEvents();\n\n this._oldChildren = newChildren;\n\n function dualTravel(newChildren: DrawTreeNode[], oldChildren: DrawTreeNode[]) {\n if (newChildren.length === 0 && oldChildren.length === 0) {\n return;\n }\n\n new DataDiffer(oldChildren, newChildren, getKey, getKey)\n .add(processNode)\n .update(processNode)\n .remove(zrUtil.curry(processNode, null))\n .execute();\n\n function getKey(node: DrawTreeNode) {\n return node.getId();\n }\n\n function processNode(newIdx: number, oldIdx?: number) {\n const newNode = newIdx == null ? null : newChildren[newIdx];\n const oldNode = oldIdx == null ? null : oldChildren[oldIdx];\n\n doRenderNode(newNode, oldNode);\n }\n }\n\n function doRenderNode(newNode: DrawTreeNode, oldNode: DrawTreeNode) {\n if (!renderLabelForZeroData && newNode && !newNode.getValue()) {\n // Not render data with value 0\n newNode = null;\n }\n\n if (newNode !== virtualRoot && oldNode !== virtualRoot) {\n if (oldNode && oldNode.piece) {\n if (newNode) {\n // Update\n oldNode.piece.updateData(\n false, newNode, seriesModel, ecModel, api\n );\n\n // For tooltip\n data.setItemGraphicEl(newNode.dataIndex, oldNode.piece);\n }\n else {\n // Remove\n removeNode(oldNode);\n }\n }\n else if (newNode) {\n // Add\n const piece = new SunburstPiece(\n newNode,\n seriesModel,\n ecModel,\n api\n );\n group.add(piece);\n\n // For tooltip\n data.setItemGraphicEl(newNode.dataIndex, piece);\n }\n }\n }\n\n function removeNode(node: DrawTreeNode) {\n if (!node) {\n return;\n }\n\n if (node.piece) {\n group.remove(node.piece);\n node.piece = null;\n }\n }\n\n function renderRollUp(virtualRoot: DrawTreeNode, viewRoot: DrawTreeNode) {\n if (viewRoot.depth > 0) {\n // Render\n if (self.virtualPiece) {\n // Update\n self.virtualPiece.updateData(\n false, virtualRoot, seriesModel, ecModel, api\n );\n }\n else {\n // Add\n self.virtualPiece = new SunburstPiece(\n virtualRoot,\n seriesModel,\n ecModel,\n api\n );\n group.add(self.virtualPiece);\n }\n\n // TODO event scope\n viewRoot.piece.off('click');\n self.virtualPiece.on('click', function (e) {\n self._rootToNode(viewRoot.parentNode);\n });\n }\n else if (self.virtualPiece) {\n // Remove\n group.remove(self.virtualPiece);\n self.virtualPiece = null;\n }\n }\n }\n\n /**\n * @private\n */\n _initEvents() {\n this.group.off('click');\n this.group.on('click', (e) => {\n let targetFound = false;\n const viewRoot = this.seriesModel.getViewRoot();\n viewRoot.eachNode((node: DrawTreeNode) => {\n if (!targetFound\n && node.piece && node.piece === e.target\n ) {\n const nodeClick = node.getModel().get('nodeClick');\n if (nodeClick === 'rootToNode') {\n this._rootToNode(node);\n }\n else if (nodeClick === 'link') {\n const itemModel = node.getModel();\n const link = itemModel.get('link');\n if (link) {\n const linkTarget = itemModel.get('target', true)\n || '_blank';\n windowOpen(link, linkTarget);\n }\n }\n targetFound = true;\n }\n });\n });\n }\n\n /**\n * @private\n */\n _rootToNode(node: DrawTreeNode) {\n if (node !== this.seriesModel.getViewRoot()) {\n this.api.dispatchAction({\n type: ROOT_TO_NODE_ACTION,\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: node\n });\n }\n }\n\n /**\n * @implement\n */\n containPoint(point: number[], seriesModel: SunburstSeriesModel) {\n const treeRoot = seriesModel.getData();\n const itemLayout = treeRoot.getItemLayout(0);\n if (itemLayout) {\n const dx = point[0] - itemLayout.cx;\n const dy = point[1] - itemLayout.cy;\n const radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n }\n\n}\n\nexport default SunburstView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree, { TreeNode } from '../../data/Tree';\nimport {wrapTreePathInfo} from '../helper/treeHelper';\nimport {\n SeriesOption,\n CircleLayoutOptionMixin,\n SeriesLabelOption,\n ItemStyleOption,\n OptionDataValue,\n CallbackDataParams,\n StatesOptionMixin,\n OptionDataItemObject,\n DefaultEmphasisFocus,\n SunburstColorByMixin\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport Model from '../../model/Model';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\ninterface SunburstItemStyleOption extends ItemStyleOption {\n // can be 10\n // which means that both innerCornerRadius and outerCornerRadius are 10\n // can also be an array [20, 10]\n // which means that innerCornerRadius is 20\n // and outerCornerRadius is 10\n // can also be a string or string array, such as ['20%', '50%']\n // which means that innerCornerRadius is 20% of the innerRadius\n // and outerCornerRadius is half of outerRadius.\n borderRadius?: (number | string)[] | number | string\n}\n\ninterface SunburstLabelOption extends Omit {\n rotate?: 'radial' | 'tangential' | number\n minAngle?: number\n silent?: boolean\n position?: SeriesLabelOption['position'] | 'outside'\n}\n\ninterface SunburstDataParams extends CallbackDataParams {\n treePathInfo: {\n name: string,\n dataIndex: number\n value: SunburstSeriesNodeItemOption['value']\n }[]\n}\n\ninterface ExtraStateOption {\n emphasis?: {\n focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'\n }\n}\n\nexport interface SunburstStateOption {\n itemStyle?: SunburstItemStyleOption\n label?: SunburstLabelOption\n}\n\nexport interface SunburstSeriesNodeItemOption extends\n SunburstStateOption, StatesOptionMixin,\n OptionDataItemObject\n{\n nodeClick?: 'rootToNode' | 'link'\n // Available when nodeClick is link\n link?: string\n target?: string\n\n children?: SunburstSeriesNodeItemOption[]\n\n collapsed?: boolean\n\n cursor?: string\n}\nexport interface SunburstSeriesLevelOption extends SunburstStateOption, StatesOptionMixin {\n highlight?: {\n itemStyle?: SunburstItemStyleOption\n label?: SunburstLabelOption\n }\n}\n\ninterface SortParam {\n dataIndex: number\n depth: number\n height: number\n getValue(): number\n}\nexport interface SunburstSeriesOption extends\n SeriesOption, SunburstStateOption,\n SunburstColorByMixin,\n CircleLayoutOptionMixin {\n\n type?: 'sunburst'\n\n clockwise?: boolean\n startAngle?: number\n minAngle?: number\n /**\n * If still show when all data zero.\n */\n stillShowZeroSum?: boolean\n /**\n * Policy of highlighting pieces when hover on one\n * Valid values: 'none' (for not downplay others), 'descendant',\n * 'ancestor', 'self'\n */\n // highlightPolicy?: 'descendant' | 'ancestor' | 'self'\n\n nodeClick?: 'rootToNode' | 'link'\n\n renderLabelForZeroData?: boolean\n\n levels?: SunburstSeriesLevelOption[]\n\n animationType?: 'expansion' | 'scale'\n\n sort?: 'desc' | 'asc' | ((a: SortParam, b: SortParam) => number)\n}\n\ninterface SunburstSeriesModel {\n getFormattedLabel(\n dataIndex: number,\n state?: 'emphasis' | 'normal' | 'highlight' | 'blur' | 'select'\n ): string\n}\nclass SunburstSeriesModel extends SeriesModel {\n\n static readonly type = 'series.sunburst';\n readonly type = SunburstSeriesModel.type;\n\n ignoreStyleOnData = true;\n\n private _viewRoot: TreeNode;\n\n getInitialData(option: SunburstSeriesOption, ecModel: GlobalModel) {\n // Create a virtual root.\n const root = { name: option.name, children: option.data } as SunburstSeriesNodeItemOption;\n\n completeTreeValue(root);\n\n const levelModels = zrUtil.map(option.levels || [], function (levelDefine) {\n return new Model(levelDefine, this, ecModel);\n }, this);\n\n // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n const tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData: SeriesData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n const node = tree.getNodeByDataIndex(idx);\n const levelModel = levelModels[node.depth];\n levelModel && (model.parentModel = levelModel);\n return model;\n });\n }\n return tree.data;\n }\n\n optionUpdated() {\n this.resetViewRoot();\n }\n\n /*\n * @override\n */\n getDataParams(dataIndex: number) {\n const params = super.getDataParams.apply(this, arguments as any) as SunburstDataParams;\n\n const node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n\n return params;\n }\n\n static defaultOption: SunburstSeriesOption = {\n zlevel: 0,\n z: 2,\n\n // \u9ED8\u8BA4\u5168\u5C40\u5C45\u4E2D\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // \u9ED8\u8BA4\u987A\u65F6\u9488\n clockwise: true,\n startAngle: 90,\n // \u6700\u5C0F\u89D2\u5EA6\u6539\u4E3A0\n minAngle: 0,\n\n // If still show when all data zero.\n stillShowZeroSum: true,\n\n // 'rootToNode', 'link', or false\n nodeClick: 'rootToNode',\n\n renderLabelForZeroData: false,\n\n label: {\n // could be: 'radial', 'tangential', or 'none'\n rotate: 'radial',\n show: true,\n opacity: 1,\n // 'left' is for inner side of inside, and 'right' is for outter\n // side for inside\n align: 'center',\n position: 'inside',\n distance: 5,\n silent: true\n },\n itemStyle: {\n borderWidth: 1,\n borderColor: 'white',\n borderType: 'solid',\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, 0.2)',\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n\n emphasis: {\n focus: 'descendant'\n },\n\n blur: {\n itemStyle: {\n opacity: 0.2\n },\n label: {\n opacity: 0.1\n }\n },\n\n // Animation type canbe expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n\n data: [],\n\n /**\n * Sort order.\n *\n * Valid values: 'desc', 'asc', null, or callback function.\n * 'desc' and 'asc' for descend and ascendant order;\n * null for not sorting;\n * example of callback function:\n * function(nodeA, nodeB) {\n * return nodeA.getValue() - nodeB.getValue();\n * }\n */\n sort: 'desc'\n };\n\n getViewRoot() {\n return this._viewRoot;\n }\n\n resetViewRoot(viewRoot?: TreeNode) {\n viewRoot\n ? (this._viewRoot = viewRoot)\n : (viewRoot = this._viewRoot);\n\n const root = this.getRawData().tree.root;\n\n if (!viewRoot\n || (viewRoot !== root && !root.contains(viewRoot))\n ) {\n this._viewRoot = root;\n }\n }\n\n enableAriaDecal() {\n enableAriaDecalForTree(this);\n }\n}\n\n\n\nfunction completeTreeValue(dataNode: SunburstSeriesNodeItemOption) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n let sum = 0;\n\n zrUtil.each(dataNode.children, function (child) {\n\n completeTreeValue(child);\n\n let childValue = child.value;\n // TODO First value of array must be a number\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue as number;\n });\n\n let thisValue = dataNode.value as number;\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n }\n // Value should not less than 0.\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value)\n ? (dataNode.value[0] = thisValue)\n : (dataNode.value = thisValue);\n}\n\n\nexport default SunburstSeriesModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { parsePercent } from '../../util/number';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption, SunburstSeriesOption } from './SunburstSeries';\nimport { TreeNode } from '../../data/Tree';\n\n// let PI2 = Math.PI * 2;\nconst RADIAN = Math.PI / 180;\n\nexport default function sunburstLayout(\n seriesType: 'sunburst',\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel: SunburstSeriesModel) {\n let center = seriesModel.get('center');\n let radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n const width = api.getWidth();\n const height = api.getHeight();\n const size = Math.min(width, height);\n const cx = parsePercent(center[0], width);\n const cy = parsePercent(center[1], height);\n const r0 = parsePercent(radius[0], size / 2);\n const r = parsePercent(radius[1], size / 2);\n\n const startAngle = -seriesModel.get('startAngle') * RADIAN;\n const minAngle = seriesModel.get('minAngle') * RADIAN;\n\n const virtualRoot = seriesModel.getData().tree.root;\n const treeRoot = seriesModel.getViewRoot();\n const rootDepth = treeRoot.depth;\n\n const sort = seriesModel.get('sort');\n if (sort != null) {\n initChildren(treeRoot, sort);\n }\n\n let validDataCount = 0;\n zrUtil.each(treeRoot.children, function (child) {\n !isNaN(child.getValue() as number) && validDataCount++;\n });\n\n const sum = treeRoot.getValue() as number;\n // Sum may be 0\n const unitRadian = Math.PI / (sum || validDataCount) * 2;\n\n const renderRollupNode = treeRoot.depth > 0;\n const levels = treeRoot.height - (renderRollupNode ? -1 : 1);\n const rPerLevel = (r - r0) / (levels || 1);\n\n const clockwise = seriesModel.get('clockwise');\n\n const stillShowZeroSum = seriesModel.get('stillShowZeroSum');\n\n // In the case some sector angle is smaller than minAngle\n // let restAngle = PI2;\n // let valueSumLargerThanMinAngle = 0;\n\n const dir = clockwise ? 1 : -1;\n\n /**\n * Render a tree\n * @return increased angle\n */\n const renderNode = function (node: TreeNode, startAngle: number) {\n if (!node) {\n return;\n }\n\n let endAngle = startAngle;\n\n // Render self\n if (node !== virtualRoot) {\n // Tree node is virtual, so it doesn't need to be drawn\n const value = node.getValue() as number;\n\n let angle = (sum === 0 && stillShowZeroSum)\n ? unitRadian : (value * unitRadian);\n if (angle < minAngle) {\n angle = minAngle;\n // restAngle -= minAngle;\n }\n // else {\n // valueSumLargerThanMinAngle += value;\n // }\n\n endAngle = startAngle + dir * angle;\n\n const depth = node.depth - rootDepth\n - (renderRollupNode ? -1 : 1);\n let rStart = r0 + rPerLevel * depth;\n let rEnd = r0 + rPerLevel * (depth + 1);\n\n const itemModel = node.getModel();\n // @ts-ignore. TODO this is not provided to developer yet. Rename it.\n if (itemModel.get('r0') != null) {\n // @ts-ignore\n rStart = parsePercent(itemModel.get('r0'), size / 2);\n }\n // @ts-ignore\n if (itemModel.get('r') != null) {\n // @ts-ignore\n rEnd = parsePercent(itemModel.get('r'), size / 2);\n }\n\n node.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n // Render children\n if (node.children && node.children.length) {\n // currentAngle = startAngle;\n let siblingAngle = 0;\n zrUtil.each(node.children, function (node) {\n siblingAngle += renderNode(node, startAngle + siblingAngle);\n });\n }\n\n return endAngle - startAngle;\n };\n\n // Virtual root node for roll up\n if (renderRollupNode) {\n const rStart = r0;\n const rEnd = r0 + rPerLevel;\n\n const angle = Math.PI * 2;\n virtualRoot.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: startAngle + angle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n renderNode(treeRoot, startAngle);\n });\n}\n\n/**\n * Init node children by order and update visual\n */\nfunction initChildren(node: TreeNode, sortOrder?: SunburstSeriesOption['sort']) {\n const children = node.children || [];\n\n node.children = sort(children, sortOrder);\n\n // Init children recursively\n if (children.length) {\n zrUtil.each(node.children, function (child) {\n initChildren(child, sortOrder);\n });\n }\n}\n\n/**\n * Sort children nodes\n *\n * @param {TreeNode[]} children children of node to be sorted\n * @param {string | function | null} sort sort method\n * See SunburstSeries.js for details.\n */\nfunction sort(children: TreeNode[], sortOrder: SunburstSeriesOption['sort']) {\n if (typeof sortOrder === 'function') {\n const sortTargets = zrUtil.map(children, (child, idx) => {\n const value = child.getValue() as number;\n return {\n params: {\n depth: child.depth,\n height: child.height,\n dataIndex: child.dataIndex,\n getValue: () => value\n },\n index: idx\n };\n });\n sortTargets.sort((a, b) => {\n return sortOrder(a.params, b.params);\n });\n\n return zrUtil.map(sortTargets, (target) => {\n return children[target.index];\n });\n }\n else {\n const isAsc = sortOrder === 'asc';\n return children.sort(function (a, b) {\n const diff = ((a.getValue() as number) - (b.getValue() as number)) * (isAsc ? 1 : -1);\n return diff === 0\n ? (a.dataIndex - b.dataIndex) * (isAsc ? -1 : 1)\n : diff;\n });\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { lift } from 'zrender/src/tool/color';\nimport { extend, map } from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport SunburstSeriesModel, { SunburstSeriesNodeItemOption } from './SunburstSeries';\nimport { Dictionary, ColorString, ZRColor } from '../../util/types';\nimport { setItemVisualFromData } from '../../visual/helper';\nimport { TreeNode } from '../../data/Tree';\n\ntype ParentColorMap = {\n node: TreeNode,\n parentColor: ZRColor\n};\n\nexport default function sunburstVisual(ecModel: GlobalModel) {\n\n const paletteScope: Dictionary = {};\n\n // Default color strategy\n function pickColor(node: TreeNode, seriesModel: SunburstSeriesModel, treeHeight: number) {\n // Choose color from palette based on the first level.\n let current = node;\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n let color = seriesModel.getColorFromPalette((current.name || current.dataIndex + ''), paletteScope);\n if (node.depth > 1 && typeof color === 'string') {\n // Lighter on the deeper level.\n color = lift(color, (node.depth - 1) / (treeHeight - 1) * 0.5);\n }\n return color;\n }\n\n ecModel.eachSeriesByType('sunburst', function (seriesModel: SunburstSeriesModel) {\n const data = seriesModel.getData();\n const tree = data.tree;\n\n tree.eachNode(function (node) {\n const model = node.getModel();\n const style = model.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n style.fill = pickColor(node, seriesModel, tree.root.height);\n }\n\n const existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SunburstView from './SunburstView';\nimport SunburstSeriesModel from './SunburstSeries';\nimport sunburstLayout from './sunburstLayout';\nimport sunburstVisual from './sunburstVisual';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/src/core/util';\nimport { installSunburstAction } from './sunburstAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(SunburstView);\n registers.registerSeriesModel(SunburstSeriesModel);\n registers.registerLayout(curry(sunburstLayout, 'sunburst'));\n registers.registerProcessor(curry(dataFilter, 'sunburst'));\n registers.registerVisual(sunburstVisual);\n installSunburstAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { BarGridLayoutOptionForCustomSeries, BarGridLayoutResult } from '../../layout/barGrid';\nimport {\n BlurScope,\n CallbackDataParams,\n Dictionary,\n DimensionLoose,\n ItemStyleOption,\n LabelOption,\n OptionDataValue,\n OrdinalRawValue,\n ParsedValue,\n SeriesDataType,\n SeriesEncodeOptionMixin,\n SeriesOnCalendarOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnSingleOptionMixin,\n SeriesOption,\n TextCommonOption,\n ZRStyleProps\n} from '../../util/types';\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport SeriesData, { DefaultDataVisual } from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport createSeriesData from '../helper/createSeriesData';\nimport { makeInner } from '../../util/model';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport SeriesModel from '../../model/Series';\nimport {\n Arc,\n BezierCurve,\n Circle,\n CompoundPath,\n Ellipse,\n Line,\n Polygon,\n Polyline,\n Rect,\n Ring,\n Sector\n} from '../../util/graphic';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\n\n\nexport interface LooseElementProps extends ElementProps {\n style?: ZRStyleProps;\n shape?: Dictionary;\n}\n\nexport type CustomExtraElementInfo = Dictionary;\nexport const TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n} as const;\nexport type TransformProp = keyof typeof TRANSFORM_PROPS;\n\n// Also compat with ec4, where\n// `visual('color') visual('borderColor')` is supported.\nexport const STYLE_VISUAL_TYPE = {\n color: 'fill',\n borderColor: 'stroke'\n} as const;\nexport type StyleVisualProps = keyof typeof STYLE_VISUAL_TYPE;\n\nexport const NON_STYLE_VISUAL_PROPS = {\n symbol: 1,\n symbolSize: 1,\n symbolKeepAspect: 1,\n legendIcon: 1,\n visualMeta: 1,\n liftZ: 1,\n decal: 1\n} as const;\nexport type NonStyleVisualProps = keyof typeof NON_STYLE_VISUAL_PROPS;\n\n// Do not declare \"Dictionary\" in TransitionAnyOption to restrict the type check.\nexport type TransitionAnyOption = {\n transition?: TransitionAnyProps;\n enterFrom?: Dictionary;\n leaveTo?: Dictionary;\n};\ntype TransitionAnyProps = string | string[];\ntype TransitionTransformOption = {\n transition?: ElementRootTransitionProp | ElementRootTransitionProp[];\n enterFrom?: Dictionary;\n leaveTo?: Dictionary;\n};\ntype ElementRootTransitionProp = TransformProp | 'shape' | 'extra' | 'style';\ntype ShapeMorphingOption = {\n /**\n * If do shape morphing animation when type is changed.\n * Only available on path.\n */\n morph?: boolean\n};\n\nexport interface CustomBaseDuringAPI {\n // Usually other props do not need to be changed in animation during.\n setTransform(key: TransformProp, val: number): this\n getTransform(key: TransformProp): number;\n setExtra(key: string, val: unknown): this\n getExtra(key: string): unknown\n}\nexport interface CustomDuringAPI<\n StyleOpt extends any = any,\n ShapeOpt extends any = any\n> extends CustomBaseDuringAPI {\n setShape(key: T, val: ShapeOpt[T]): this;\n getShape(key: T): ShapeOpt[T];\n setStyle(key: T, val: StyleOpt[T]): this\n getStyle(key: T): StyleOpt[T];\n};\n\n\nexport interface CustomBaseElementOption extends Partial>, TransitionTransformOption {\n // element type, required.\n type: string;\n id?: string;\n // For animation diff.\n name?: string;\n info?: CustomExtraElementInfo;\n // `false` means remove the textContent.\n textContent?: CustomTextOption | false;\n // `false` means remove the clipPath\n clipPath?: CustomBaseZRPathOption | false;\n // `extra` can be set in any el option for custom prop for annimation duration.\n extra?: Dictionary & TransitionAnyOption;\n // updateDuringAnimation\n during?(params: CustomBaseDuringAPI): void;\n\n focus?: 'none' | 'self' | 'series' | ArrayLike\n blurScope?: BlurScope\n};\n\nexport interface CustomDisplayableOption extends CustomBaseElementOption, Partial> {\n style?: ZRStyleProps & TransitionAnyOption;\n during?(params: CustomDuringAPI): void;\n /**\n * @deprecated\n */\n // `false` means remove emphasis trigger.\n styleEmphasis?: ZRStyleProps | false;\n emphasis?: CustomDisplayableOptionOnState;\n blur?: CustomDisplayableOptionOnState;\n select?: CustomDisplayableOptionOnState;\n}\nexport interface CustomDisplayableOptionOnState extends Partial> {\n // `false` means remove emphasis trigger.\n style?: (ZRStyleProps & TransitionAnyOption) | false;\n\n\n during?(params: CustomDuringAPI): void;\n}\nexport interface CustomGroupOption extends CustomBaseElementOption {\n type: 'group';\n width?: number;\n height?: number;\n // @deprecated\n diffChildrenByName?: boolean;\n children: CustomChildElementOption[];\n $mergeChildren?: false | 'byName' | 'byIndex';\n}\nexport interface CustomBaseZRPathOption\n extends CustomDisplayableOption, ShapeMorphingOption {\n autoBatch?: boolean;\n shape?: T & TransitionAnyOption;\n style?: PathProps['style']\n during?(params: CustomDuringAPI): void;\n}\n\ninterface BuiltinShapes {\n 'circle': Circle['shape']\n 'rect': Rect['shape']\n 'sector': Sector['shape']\n 'poygon': Polygon['shape']\n 'polyline': Polyline['shape']\n 'line': Line['shape']\n 'arc': Arc['shape']\n 'bezierCurve': BezierCurve['shape']\n 'ring': Ring['shape']\n 'ellipse': Ellipse['shape'],\n 'compoundPath': CompoundPath['shape']\n}\n\ninterface CustomSVGPathShapeOption {\n // SVG Path, like 'M0,0 L0,-20 L70,-1 L70,0 Z'\n pathData?: string;\n // \"d\" is the alias of `pathData` follows the SVG convention.\n d?: string;\n layout?: 'center' | 'cover';\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n}\nexport interface CustomSVGPathOption extends CustomBaseZRPathOption {\n type: 'path';\n}\n\ninterface CustomBuitinPathOption\n extends CustomBaseZRPathOption {\n type: T\n}\ntype CreateCustomBuitinPathOption = T extends any\n ? CustomBuitinPathOption : never;\n\nexport type CustomPathOption = CreateCustomBuitinPathOption\n | CustomSVGPathOption;\n\nexport interface CustomImageOptionOnState extends CustomDisplayableOptionOnState {\n style?: ImageStyleProps & TransitionAnyOption;\n}\nexport interface CustomImageOption extends CustomDisplayableOption {\n type: 'image';\n style?: ImageStyleProps & TransitionAnyOption;\n emphasis?: CustomImageOptionOnState;\n blur?: CustomImageOptionOnState;\n select?: CustomImageOptionOnState;\n}\n\nexport interface CustomTextOptionOnState extends CustomDisplayableOptionOnState {\n style?: TextStyleProps & TransitionAnyOption;\n}\nexport interface CustomTextOption extends CustomDisplayableOption {\n type: 'text';\n style?: TextStyleProps & TransitionAnyOption;\n emphasis?: CustomTextOptionOnState;\n blur?: CustomTextOptionOnState;\n select?: CustomTextOptionOnState;\n}\n\nexport type CustomElementOption = CustomPathOption\n | CustomImageOption\n | CustomTextOption\n | CustomGroupOption;\n\n// Can only set focus, blur on the root element.\nexport type CustomChildElementOption = Omit;\n\nexport type CustomElementOptionOnState = CustomDisplayableOptionOnState\n | CustomImageOptionOnState;\n\nexport interface CustomSeriesRenderItemAPI extends\n CustomSeriesRenderItemCoordinateSystemAPI {\n\n // Methods from ExtensionAPI.\n // NOTE: Not using Pick here because we don't want to bundle ExtensionAPI into the d.ts\n getWidth(): number\n getHeight(): number\n getZr(): ZRenderType\n getDevicePixelRatio(): number\n\n value(dim: DimensionLoose, dataIndexInside?: number): ParsedValue;\n ordinalRawValue(dim: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue;\n style(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;\n styleEmphasis(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps;\n visual(\n visualType: VT,\n dataIndexInside?: number\n ): VT extends NonStyleVisualProps ? DefaultDataVisual[VT]\n : VT extends StyleVisualProps ? PathStyleProps[typeof STYLE_VISUAL_TYPE[VT]]\n : void;\n barLayout(opt: BarGridLayoutOptionForCustomSeries): BarGridLayoutResult;\n currentSeriesIndices(): number[];\n font(opt: Pick): string;\n}\nexport interface CustomSeriesRenderItemParamsCoordSys {\n type: string;\n // And extra params for each coordinate systems.\n}\nexport interface CustomSeriesRenderItemCoordinateSystemAPI {\n coord(\n data: OptionDataValue | OptionDataValue[],\n clamp?: boolean\n ): number[];\n size?(\n dataSize: OptionDataValue | OptionDataValue[],\n dataItem: OptionDataValue | OptionDataValue[]\n ): number | number[];\n}\n\nexport type WrapEncodeDefRet = Dictionary;\n\nexport interface CustomSeriesRenderItemParams {\n context: Dictionary;\n dataIndex: number;\n seriesId: string;\n seriesName: string;\n seriesIndex: number;\n coordSys: CustomSeriesRenderItemParamsCoordSys;\n encode: WrapEncodeDefRet;\n\n dataIndexInside: number;\n dataInsideLength: number;\n\n actionType?: string;\n}\ntype CustomSeriesRenderItem = (\n params: CustomSeriesRenderItemParams,\n api: CustomSeriesRenderItemAPI\n) => CustomElementOption;\n\ninterface CustomSeriesStateOption {\n itemStyle?: ItemStyleOption;\n label?: LabelOption;\n}\n\nexport interface CustomSeriesOption extends\n SeriesOption, // don't support StateOption in custom series.\n SeriesEncodeOptionMixin,\n SeriesOnCartesianOptionMixin,\n SeriesOnPolarOptionMixin,\n SeriesOnSingleOptionMixin,\n SeriesOnGeoOptionMixin,\n SeriesOnCalendarOptionMixin {\n\n type?: 'custom'\n\n // If set as 'none', do not depends on coord sys.\n coordinateSystem?: string | 'none';\n\n renderItem?: CustomSeriesRenderItem;\n\n // Only works on polar and cartesian2d coordinate system.\n clip?: boolean;\n}\n\nexport interface LegacyCustomSeriesOption extends SeriesOption, CustomSeriesStateOption {}\n\nexport const customInnerStore = makeInner<{\n info: CustomExtraElementInfo;\n customPathData: string;\n customGraphicType: string;\n customImagePath: CustomImageOption['style']['image'];\n // customText: string;\n txConZ2Set: number;\n leaveToProps: ElementProps;\n option: CustomElementOption;\n userDuring: CustomBaseElementOption['during'];\n}, Element>();\n\nexport default class CustomSeriesModel extends SeriesModel {\n\n static type = 'series.custom';\n readonly type = CustomSeriesModel.type;\n\n static dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n\n // preventAutoZ = true;\n\n currentZLevel: number;\n currentZ: number;\n\n static defaultOption: CustomSeriesOption = {\n coordinateSystem: 'cartesian2d', // Can be set as 'none'\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n\n // Custom series will not clip by default.\n // Some case will use custom series to draw label\n // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight\n clip: false\n\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n\n // Polar coordinate system\n // polarIndex: 0,\n\n // Geo coordinate system\n // geoIndex: 0,\n };\n\n optionUpdated() {\n this.currentZLevel = this.get('zlevel', true);\n this.currentZ = this.get('z', true);\n }\n\n getInitialData(option: CustomSeriesOption, ecModel: GlobalModel): SeriesData {\n return createSeriesData(null, this);\n }\n\n getDataParams(dataIndex: number, dataType?: SeriesDataType, el?: Element): CallbackDataParams & {\n info: CustomExtraElementInfo\n } {\n const params = super.getDataParams(dataIndex, dataType) as ReturnType;\n el && (params.info = customInnerStore(el).info);\n return params;\n }\n}\n\nexport type PrepareCustomInfo = (coordSys: CoordinateSystem) => {\n coordSys: CustomSeriesRenderItemParamsCoordSys;\n api: CustomSeriesRenderItemCoordinateSystemAPI\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Cartesian2D from './Cartesian2D';\n\nfunction dataToCoordSize(this: Cartesian2D, dataSize: number[], dataItem: number[]): number[] {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['x', 'y'], function (dim, dimIdx) {\n const axis = this.getAxis(dim);\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n return axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n }, this);\n}\n\nexport default function cartesianPrepareCustom(coordSys: Cartesian2D) {\n const rect = coordSys.master.getRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'cartesian2d',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (data: number[]) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Geo from './Geo';\n\nfunction dataToCoordSize(this: Geo, dataSize: number[], dataItem: number[]): number[] {\n dataItem = dataItem || [0, 0];\n return zrUtil.map([0, 1], function (dimIdx) {\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n const p1 = [];\n const p2 = [];\n p1[dimIdx] = val - halfSize;\n p2[dimIdx] = val + halfSize;\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);\n }, this);\n}\n\nexport default function geoPrepareCustom(coordSys: Geo) {\n const rect = coordSys.getBoundingRect();\n return {\n coordSys: {\n type: 'geo',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n zoom: coordSys.getZoom()\n },\n api: {\n coord: function (data: number[]): number[] {\n // do not provide \"out\" and noRoam param,\n // Compatible with this usage:\n // echarts.util.map(item.points, api.coord)\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Single from './Single';\nimport { bind } from 'zrender/src/core/util';\n\nfunction dataToCoordSize(this: Single, dataSize: number | number[], dataItem: number | number[]) {\n // dataItem is necessary in log axis.\n const axis = this.getAxis();\n const val = dataItem instanceof Array ? dataItem[0] : dataItem;\n const halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}\n\nexport default function singlePrepareCustom(coordSys: Single) {\n const rect = coordSys.getRect();\n\n return {\n coordSys: {\n type: 'singleAxis',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (val: number) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(val);\n },\n size: bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Polar from './Polar';\nimport RadiusAxis from './RadiusAxis';\n// import AngleAxis from './AngleAxis';\n\nfunction dataToCoordSize(this: Polar, dataSize: number[], dataItem: number[]) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\n const getterName = 'get' + dim + 'Axis' as 'getAngleAxis'| 'getRadiusAxis';\n // TODO: TYPE Check Angle Axis\n const axis = this[getterName]() as RadiusAxis;\n const val = dataItem[dimIdx];\n const halfSize = dataSize[dimIdx] / 2;\n\n let result = axis.type === 'category'\n ? axis.getBandWidth()\n : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n\n if (dim === 'Angle') {\n result = result * Math.PI / 180;\n }\n\n return result;\n\n }, this);\n}\n\nexport default function polarPrepareCustom(coordSys: Polar) {\n const radiusAxis = coordSys.getRadiusAxis();\n const angleAxis = coordSys.getAngleAxis();\n const radius = radiusAxis.getExtent();\n radius[0] > radius[1] && radius.reverse();\n\n return {\n coordSys: {\n type: 'polar',\n cx: coordSys.cx,\n cy: coordSys.cy,\n r: radius[1],\n r0: radius[0]\n },\n api: {\n coord: function (data: number[]) {\n const radius = radiusAxis.dataToRadius(data[0]);\n const angle = angleAxis.dataToAngle(data[1]);\n const coord = coordSys.coordToPoint([radius, angle]);\n coord.push(radius, angle * Math.PI / 180);\n return coord;\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Calendar from './Calendar';\nimport { OptionDataValueDate } from '../../util/types';\n\nexport default function calendarPrepareCustom(coordSys: Calendar) {\n const rect = coordSys.getRect();\n const rangeInfo = coordSys.getRangeInfo();\n\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function (data: OptionDataValueDate, clamp?: boolean) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Dictionary, ZRStyleProps } from './types';\nimport { ElementTextConfig } from 'zrender/src/Element';\nimport { TextStyleProps, TextStylePropsPart, TextProps } from 'zrender/src/graphic/Text';\nimport { each, hasOwn } from 'zrender/src/core/util';\nimport { ItemStyleProps } from '../model/mixin/itemStyle';\n\nexport interface LegacyStyleProps {\n legacy?: boolean\n}\n\nconst deprecatedLogs = {} as Dictionary;\n\n/**\n * Whether need to call `convertEC4CompatibleStyle`.\n */\nexport function isEC4CompatibleStyle(\n style: ZRStyleProps & LegacyStyleProps,\n elType: string,\n hasOwnTextContentOption: boolean,\n hasOwnTextConfig: boolean\n): boolean {\n // Since echarts5, `RectText` is separated from its host element and style.text\n // does not exist any more. The compat work brings some extra burden on performance.\n // So we provide:\n // `legacy: true` force make compat.\n // `legacy: false`, force do not compat.\n // `legacy` not set: auto detect wheter legacy.\n // But in this case we do not compat (difficult to detect and rare case):\n // Becuse custom series and graphic component support \"merge\", users may firstly\n // only set `textStrokeWidth` style or secondly only set `text`.\n return style && (\n style.legacy\n || (\n style.legacy !== false\n && !hasOwnTextContentOption\n && !hasOwnTextConfig\n && elType !== 'tspan'\n // Difficult to detect whether legacy for a \"text\" el.\n && (elType === 'text' || hasOwn(style, 'text'))\n )\n );\n}\n\n/**\n * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.\n * @param hostStyle The properties might be modified.\n * @return If be text el, `textContentStyle` and `textConfig` will not be retured.\n * Otherwise a `textContentStyle` and `textConfig` will be created, whose props area\n * retried from the `hostStyle`.\n */\nexport function convertFromEC4CompatibleStyle(hostStyle: ZRStyleProps, elType: string, isNormal: boolean): {\n textContent: TextProps & {type: string},\n textConfig: ElementTextConfig\n} {\n const srcStyle = hostStyle as Dictionary;\n let textConfig: ElementTextConfig;\n let textContent: TextProps & {type: string};\n\n let textContentStyle: TextStyleProps;\n if (elType === 'text') {\n textContentStyle = srcStyle;\n }\n else {\n textContentStyle = {};\n hasOwn(srcStyle, 'text') && (textContentStyle.text = srcStyle.text);\n hasOwn(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich);\n hasOwn(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill);\n hasOwn(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke);\n hasOwn(srcStyle, 'fontFamily') && (textContentStyle.fontFamily = srcStyle.fontFamily);\n hasOwn(srcStyle, 'fontSize') && (textContentStyle.fontSize = srcStyle.fontSize);\n hasOwn(srcStyle, 'fontStyle') && (textContentStyle.fontStyle = srcStyle.fontStyle);\n hasOwn(srcStyle, 'fontWeight') && (textContentStyle.fontWeight = srcStyle.fontWeight);\n\n textContent = {\n type: 'text',\n style: textContentStyle,\n // ec4 do not support rectText trigger.\n // And when text postion is different in normal and emphasis\n // => hover text trigger emphasis;\n // => text position changed, leave mouse pointer immediately;\n // That might cause state incorrect.\n silent: true\n };\n textConfig = {};\n const hasOwnPos = hasOwn(srcStyle, 'textPosition');\n if (isNormal) {\n textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside';\n }\n else {\n hasOwnPos && (textConfig.position = srcStyle.textPosition);\n }\n hasOwn(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition);\n hasOwn(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset);\n hasOwn(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation);\n hasOwn(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance);\n }\n\n convertEC4CompatibleRichItem(textContentStyle, hostStyle);\n\n each(textContentStyle.rich, function (richItem) {\n convertEC4CompatibleRichItem(richItem as TextStyleProps, richItem);\n });\n\n return {\n textConfig: textConfig,\n textContent: textContent\n };\n}\n\n/**\n * The result will be set to `out`.\n */\nfunction convertEC4CompatibleRichItem(out: TextStylePropsPart, richItem: Dictionary): void {\n if (!richItem) {\n return;\n }\n // (1) For simplicity, make textXXX properties (deprecated since ec5) has\n // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`\n // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached\n // richText in ec5.\n // (2) `out === richItem` if and only if `out` is text el or rich item.\n // So we can overwite existing props in `out` since textXXX has higher priority.\n richItem.font = richItem.textFont || richItem.font;\n hasOwn(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth);\n hasOwn(richItem, 'textAlign') && (out.align = richItem.textAlign);\n hasOwn(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign);\n hasOwn(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight);\n hasOwn(richItem, 'textWidth') && (out.width = richItem.textWidth);\n hasOwn(richItem, 'textHeight') && (out.height = richItem.textHeight);\n hasOwn(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor);\n hasOwn(richItem, 'textPadding') && (out.padding = richItem.textPadding);\n hasOwn(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor);\n hasOwn(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth);\n hasOwn(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius);\n hasOwn(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor);\n hasOwn(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur);\n hasOwn(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX);\n hasOwn(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY);\n}\n\n/**\n * Convert to pure echarts4 format style.\n * `itemStyle` will be modified, added with ec4 style properties from\n * `textStyle` and `textConfig`.\n *\n * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where\n * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.\n */\nexport function convertToEC4StyleForCustomSerise(\n itemStl: ItemStyleProps,\n txStl: TextStyleProps,\n txCfg: ElementTextConfig\n): ZRStyleProps {\n\n const out = itemStl as Dictionary;\n\n // See `custom.ts`, a trick to set extra `textPosition` firstly.\n out.textPosition = out.textPosition || txCfg.position || 'inside';\n txCfg.offset != null && (out.textOffset = txCfg.offset);\n txCfg.rotation != null && (out.textRotation = txCfg.rotation);\n txCfg.distance != null && (out.textDistance = txCfg.distance);\n\n const isInside = (out.textPosition as string).indexOf('inside') >= 0;\n const hostFill = itemStl.fill || '#000';\n\n convertToEC4RichItem(out, txStl);\n\n const textFillNotSet = out.textFill == null;\n if (isInside) {\n if (textFillNotSet) {\n out.textFill = txCfg.insideFill || '#fff';\n !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke);\n !out.textStroke && (out.textStroke = hostFill);\n out.textStrokeWidth == null && (out.textStrokeWidth = 2);\n }\n }\n else {\n if (textFillNotSet) {\n out.textFill = itemStl.fill || txCfg.outsideFill || '#000';\n }\n !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke);\n }\n\n out.text = txStl.text;\n out.rich = txStl.rich;\n\n each(txStl.rich, function (richItem) {\n convertToEC4RichItem(richItem as Dictionary, richItem);\n });\n\n return out;\n}\n\nfunction convertToEC4RichItem(out: Dictionary, richItem: TextStylePropsPart) {\n if (!richItem) {\n return;\n }\n\n hasOwn(richItem, 'fill') && (out.textFill = richItem.fill);\n hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);\n\n hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);\n hasOwn(richItem, 'font') && (out.font = richItem.font);\n hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);\n hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);\n hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);\n hasOwn(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);\n\n hasOwn(richItem, 'align') && (out.textAlign = richItem.align);\n hasOwn(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);\n hasOwn(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);\n hasOwn(richItem, 'width') && (out.textWidth = richItem.width);\n hasOwn(richItem, 'height') && (out.textHeight = richItem.height);\n\n hasOwn(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);\n hasOwn(richItem, 'padding') && (out.textPadding = richItem.padding);\n hasOwn(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);\n hasOwn(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);\n hasOwn(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);\n\n hasOwn(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);\n hasOwn(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);\n hasOwn(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);\n hasOwn(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);\n\n hasOwn(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);\n hasOwn(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);\n hasOwn(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);\n hasOwn(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);\n}\n\nexport function warnDeprecated(deprecated: string, insteadApproach: string): void {\n if (__DEV__) {\n const key = deprecated + '^_^' + insteadApproach;\n if (!deprecatedLogs[key]) {\n console.warn(`[ECharts] DEPRECATED: \"${deprecated}\" has been deprecated. ${insteadApproach}`);\n deprecatedLogs[key] = true;\n }\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Transformable from 'zrender/src/core/Transformable';\nimport Element, { ElementProps } from 'zrender/src/Element';\nimport { Dictionary } from '../../util/types';\nimport {\n CustomDisplayableOption,\n CustomElementOption,\n customInnerStore,\n LooseElementProps,\n TransformProp,\n TRANSFORM_PROPS,\n TransitionAnyOption\n} from './CustomSeries';\nimport { normalizeToArray } from '../../util/model';\nimport { assert, hasOwn, indexOf, isArrayLike, keys } from 'zrender/src/core/util';\nimport { cloneValue } from 'zrender/src/animation/Animator';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst LEGACY_TRANSFORM_PROPS = {\n position: ['x', 'y'],\n scale: ['scaleX', 'scaleY'],\n origin: ['originX', 'originY']\n} as const;\ntype LegacyTransformProp = keyof typeof LEGACY_TRANSFORM_PROPS;\n\nfunction setLegacyTransformProp(\n elOption: CustomElementOption,\n targetProps: Partial>,\n legacyName: LegacyTransformProp\n): void {\n const legacyArr = (elOption as any)[legacyName];\n const xyName = LEGACY_TRANSFORM_PROPS[legacyName];\n if (legacyArr) {\n targetProps[xyName[0]] = legacyArr[0];\n targetProps[xyName[1]] = legacyArr[1];\n }\n}\n\nfunction setTransformProp(\n elOption: CustomElementOption,\n allProps: Partial>,\n name: TransformProp\n): void {\n if (elOption[name] != null) {\n allProps[name] = elOption[name];\n }\n}\n\nfunction setTransformPropToTransitionFrom(\n transitionFrom: Partial>,\n name: TransformProp,\n fromTransformable?: Transformable // If provided, retrieve from the element.\n): void {\n if (fromTransformable) {\n transitionFrom[name] = fromTransformable[name];\n }\n}\n\n\n// See [STRATEGY_TRANSITION]\nexport function prepareShapeOrExtraTransitionFrom(\n mainAttr: 'shape' | 'extra',\n fromEl: Element,\n elOption: CustomElementOption,\n transFromProps: LooseElementProps,\n isInit: boolean\n): void {\n\n const attrOpt: Dictionary & TransitionAnyOption = (elOption as any)[mainAttr];\n if (!attrOpt) {\n return;\n }\n\n const elPropsInAttr = (fromEl as LooseElementProps)[mainAttr];\n let transFromPropsInAttr: Dictionary;\n\n const enterFrom = attrOpt.enterFrom;\n if (isInit && enterFrom) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const enterFromKeys = keys(enterFrom);\n for (let i = 0; i < enterFromKeys.length; i++) {\n // `enterFrom` props are not necessarily also declared in `shape`/`style`/...,\n // for example, `opacity` can only declared in `enterFrom` but not in `style`.\n const key = enterFromKeys[i];\n // Do not clone, animator will perform that clone.\n transFromPropsInAttr[key] = enterFrom[key];\n }\n }\n\n if (!isInit && elPropsInAttr) {\n if (attrOpt.transition) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const transitionKeys = normalizeToArray(attrOpt.transition);\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n const elVal = elPropsInAttr[key];\n if (__DEV__) {\n checkNonStyleTansitionRefer(key, (attrOpt as any)[key], elVal);\n }\n // Do not clone, see `checkNonStyleTansitionRefer`.\n transFromPropsInAttr[key] = elVal;\n }\n }\n else if (indexOf(elOption.transition, mainAttr) >= 0) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n const elPropsInAttrKeys = keys(elPropsInAttr);\n for (let i = 0; i < elPropsInAttrKeys.length; i++) {\n const key = elPropsInAttrKeys[i];\n const elVal = elPropsInAttr[key];\n if (isNonStyleTransitionEnabled((attrOpt as any)[key], elVal)) {\n transFromPropsInAttr[key] = elVal;\n }\n }\n }\n }\n\n const leaveTo = attrOpt.leaveTo;\n if (leaveTo) {\n const leaveToProps = getOrCreateLeaveToPropsFromEl(fromEl);\n const leaveToPropsInAttr: Dictionary = leaveToProps[mainAttr] || (leaveToProps[mainAttr] = {});\n const leaveToKeys = keys(leaveTo);\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i];\n leaveToPropsInAttr[key] = leaveTo[key];\n }\n }\n}\n\nexport function prepareShapeOrExtraAllPropsFinal(\n mainAttr: 'shape' | 'extra',\n elOption: CustomElementOption,\n allProps: LooseElementProps\n): void {\n const attrOpt: Dictionary & TransitionAnyOption = (elOption as any)[mainAttr];\n if (!attrOpt) {\n return;\n }\n const allPropsInAttr = allProps[mainAttr] = {} as Dictionary;\n const keysInAttr = keys(attrOpt);\n for (let i = 0; i < keysInAttr.length; i++) {\n const key = keysInAttr[i];\n // To avoid share one object with different element, and\n // to avoid user modify the object inexpectedly, have to clone.\n allPropsInAttr[key] = cloneValue((attrOpt as any)[key]);\n }\n}\n\n// See [STRATEGY_TRANSITION].\nexport function prepareTransformTransitionFrom(\n el: Element,\n elOption: CustomElementOption,\n transFromProps: ElementProps,\n isInit: boolean\n): void {\n const enterFrom = elOption.enterFrom;\n if (isInit && enterFrom) {\n const enterFromKeys = keys(enterFrom);\n for (let i = 0; i < enterFromKeys.length; i++) {\n const key = enterFromKeys[i] as TransformProp;\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.enterFrom');\n }\n // Do not clone, animator will perform that clone.\n transFromProps[key] = enterFrom[key] as number;\n }\n }\n\n if (!isInit) {\n if (elOption.transition) {\n const transitionKeys = normalizeToArray(elOption.transition);\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n if (key === 'style' || key === 'shape' || key === 'extra') {\n continue;\n }\n const elVal = el[key];\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.transition');\n checkNonStyleTansitionRefer(key, elOption[key], elVal);\n }\n // Do not clone, see `checkNonStyleTansitionRefer`.\n transFromProps[key] = elVal;\n }\n }\n // This default transition see [STRATEGY_TRANSITION]\n else {\n setTransformPropToTransitionFrom(transFromProps, 'x', el);\n setTransformPropToTransitionFrom(transFromProps, 'y', el);\n }\n }\n\n const leaveTo = elOption.leaveTo;\n if (leaveTo) {\n const leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n const leaveToKeys = keys(leaveTo);\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i] as TransformProp;\n if (__DEV__) {\n checkTransformPropRefer(key, 'el.leaveTo');\n }\n leaveToProps[key] = leaveTo[key] as number;\n }\n }\n}\n\nexport function prepareTransformAllPropsFinal(\n el: Element,\n elOption: CustomElementOption,\n allProps: ElementProps\n): void {\n setLegacyTransformProp(elOption, allProps, 'position');\n setLegacyTransformProp(elOption, allProps, 'scale');\n setLegacyTransformProp(elOption, allProps, 'origin');\n\n setTransformProp(elOption, allProps, 'x');\n setTransformProp(elOption, allProps, 'y');\n setTransformProp(elOption, allProps, 'scaleX');\n setTransformProp(elOption, allProps, 'scaleY');\n setTransformProp(elOption, allProps, 'originX');\n setTransformProp(elOption, allProps, 'originY');\n setTransformProp(elOption, allProps, 'rotation');\n}\n\n// See [STRATEGY_TRANSITION].\nexport function prepareStyleTransitionFrom(\n fromEl: Element,\n elOption: CustomElementOption,\n styleOpt: CustomDisplayableOption['style'],\n transFromProps: LooseElementProps,\n isInit: boolean\n): void {\n if (!styleOpt) {\n return;\n }\n\n const fromElStyle = (fromEl as LooseElementProps).style as LooseElementProps['style'];\n let transFromStyleProps: LooseElementProps['style'];\n\n const enterFrom = styleOpt.enterFrom;\n if (isInit && enterFrom) {\n const enterFromKeys = keys(enterFrom);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n for (let i = 0; i < enterFromKeys.length; i++) {\n const key = enterFromKeys[i];\n // Do not clone, animator will perform that clone.\n (transFromStyleProps as any)[key] = enterFrom[key];\n }\n }\n\n if (!isInit && fromElStyle) {\n if (styleOpt.transition) {\n const transitionKeys = normalizeToArray(styleOpt.transition);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n for (let i = 0; i < transitionKeys.length; i++) {\n const key = transitionKeys[i];\n const elVal = (fromElStyle as any)[key];\n // Do not clone, see `checkNonStyleTansitionRefer`.\n (transFromStyleProps as any)[key] = elVal;\n }\n }\n else if (\n (fromEl as Displayable).getAnimationStyleProps\n && indexOf(elOption.transition, 'style') >= 0\n ) {\n const animationProps = (fromEl as Displayable).getAnimationStyleProps();\n const animationStyleProps = animationProps ? animationProps.style : null;\n if (animationStyleProps) {\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n const styleKeys = keys(styleOpt);\n for (let i = 0; i < styleKeys.length; i++) {\n const key = styleKeys[i];\n if ((animationStyleProps as Dictionary)[key]) {\n const elVal = (fromElStyle as any)[key];\n (transFromStyleProps as any)[key] = elVal;\n }\n }\n }\n }\n }\n\n const leaveTo = styleOpt.leaveTo;\n if (leaveTo) {\n const leaveToKeys = keys(leaveTo);\n const leaveToProps = getOrCreateLeaveToPropsFromEl(fromEl);\n const leaveToStyleProps = leaveToProps.style || (leaveToProps.style = {});\n for (let i = 0; i < leaveToKeys.length; i++) {\n const key = leaveToKeys[i];\n (leaveToStyleProps as any)[key] = leaveTo[key];\n }\n }\n}\n\nlet checkNonStyleTansitionRefer: (propName: string, optVal: unknown, elVal: unknown) => void;\nif (__DEV__) {\n checkNonStyleTansitionRefer = function (propName: string, optVal: unknown, elVal: unknown): void {\n if (!isArrayLike(optVal)) {\n assert(\n optVal != null && isFinite(optVal as number),\n 'Prop `' + propName + '` must refer to a finite number or ArrayLike for transition.'\n );\n }\n else {\n // Try not to copy array for performance, but if user use the same object in different\n // call of `renderItem`, it will casue animation transition fail.\n assert(\n optVal !== elVal,\n 'Prop `' + propName + '` must use different Array object each time for transition.'\n );\n }\n };\n}\n\nfunction isNonStyleTransitionEnabled(optVal: unknown, elVal: unknown): boolean {\n // The same as `checkNonStyleTansitionRefer`.\n return !isArrayLike(optVal)\n ? (optVal != null && isFinite(optVal as number))\n : optVal !== elVal;\n}\n\nlet checkTransformPropRefer: (key: string, usedIn: string) => void;\nif (__DEV__) {\n checkTransformPropRefer = function (key: string, usedIn: string): void {\n assert(\n hasOwn(TRANSFORM_PROPS, key),\n 'Prop `' + key + '` is not a permitted in `' + usedIn + '`. '\n + 'Only `' + keys(TRANSFORM_PROPS).join('`, `') + '` are permitted.'\n );\n };\n}\n\nfunction getOrCreateLeaveToPropsFromEl(el: Element): LooseElementProps {\n const innerEl = customInnerStore(el);\n return innerEl.leaveToProps || (innerEl.leaveToProps = {});\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n hasOwn, assert, isString, retrieve2, retrieve3, defaults, each,\n keys, bind, eqNaN, indexOf\n} from 'zrender/src/core/util';\nimport * as graphicUtil from '../../util/graphic';\nimport { setDefaultStateProxy, enableHoverEmphasis } from '../../util/states';\nimport * as labelStyleHelper from '../../label/labelStyle';\nimport {getDefaultLabel} from '../helper/labelHelper';\nimport {getLayoutOnAxis} from '../../layout/barGrid';\nimport DataDiffer from '../../data/DataDiffer';\nimport Model from '../../model/Model';\nimport ChartView from '../../view/Chart';\nimport {createClipPath} from '../helper/createClipPathFromCoordSys';\nimport {\n EventQueryItem, ECActionEvent,\n DimensionLoose,\n ParsedValue,\n Dictionary,\n Payload,\n StageHandlerProgressParams,\n ViewRootGroup,\n ZRStyleProps,\n DisplayState,\n ECElement,\n DisplayStateNonNormal,\n OrdinalRawValue,\n InnerDecalObject\n} from '../../util/types';\nimport Element, { ElementProps, ElementTextConfig } from 'zrender/src/Element';\nimport prepareCartesian2d from '../../coord/cartesian/prepareCustom';\nimport prepareGeo from '../../coord/geo/prepareCustom';\nimport prepareSingleAxis from '../../coord/single/prepareCustom';\nimport preparePolar from '../../coord/polar/prepareCustom';\nimport prepareCalendar from '../../coord/calendar/prepareCustom';\nimport SeriesData, { DefaultDataVisual } from '../../data/SeriesData';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport {\n convertToEC4StyleForCustomSerise,\n isEC4CompatibleStyle,\n convertFromEC4CompatibleStyle,\n LegacyStyleProps,\n warnDeprecated\n} from '../../util/styleCompat';\nimport { ItemStyleProps } from '../../model/mixin/itemStyle';\nimport { warn, throwError } from '../../util/log';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport CustomSeriesModel, {\n CustomDuringAPI,\n TransformProp,\n TRANSFORM_PROPS,\n CustomImageOption,\n CustomBaseElementOption,\n CustomElementOption,\n CustomElementOptionOnState,\n CustomSVGPathOption,\n CustomBaseZRPathOption,\n CustomDisplayableOption,\n CustomSeriesRenderItemAPI,\n CustomSeriesRenderItemParams,\n LegacyCustomSeriesOption,\n CustomGroupOption,\n WrapEncodeDefRet,\n NonStyleVisualProps,\n StyleVisualProps,\n STYLE_VISUAL_TYPE,\n NON_STYLE_VISUAL_PROPS,\n customInnerStore,\n LooseElementProps,\n PrepareCustomInfo,\n CustomPathOption\n} from './CustomSeries';\nimport {\n prepareShapeOrExtraAllPropsFinal,\n prepareShapeOrExtraTransitionFrom,\n prepareStyleTransitionFrom,\n prepareTransformAllPropsFinal,\n prepareTransformTransitionFrom\n} from './prepare';\nimport { PatternObject } from 'zrender/src/graphic/Pattern';\n\nconst transformPropNamesStr = keys(TRANSFORM_PROPS).join(', ');\n\nconst EMPHASIS = 'emphasis' as const;\nconst NORMAL = 'normal' as const;\nconst BLUR = 'blur' as const;\nconst SELECT = 'select' as const;\nconst STATES = [NORMAL, EMPHASIS, BLUR, SELECT] as const;\nconst PATH_ITEM_STYLE = {\n normal: ['itemStyle'],\n emphasis: [EMPHASIS, 'itemStyle'],\n blur: [BLUR, 'itemStyle'],\n select: [SELECT, 'itemStyle']\n} as const;\nconst PATH_LABEL = {\n normal: ['label'],\n emphasis: [EMPHASIS, 'label'],\n blur: [BLUR, 'label'],\n select: [SELECT, 'label']\n} as const;\n// Use prefix to avoid index to be the same as el.name,\n// which will cause weird update animation.\nconst GROUP_DIFF_PREFIX = 'e\\0\\0';\n\ntype AttachedTxInfo = {\n isLegacy: boolean;\n normal: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOption | false;\n };\n emphasis: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n blur: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n select: {\n cfg: ElementTextConfig;\n conOpt: CustomElementOptionOnState;\n };\n};\nconst attachedTxInfoTmp = {\n normal: {},\n emphasis: {},\n blur: {},\n select: {}\n} as AttachedTxInfo;\n\n\n/**\n * To reduce total package size of each coordinate systems, the modules `prepareCustom`\n * of each coordinate systems are not required by each coordinate systems directly, but\n * required by the module `custom`.\n *\n * prepareInfoForCustomSeries {Function}: optional\n * @return {Object} {coordSys: {...}, api: {\n * coord: function (data, clamp) {}, // return point in global.\n * size: function (dataSize, dataItem) {} // return size of each axis in coordSys.\n * }}\n */\nconst prepareCustoms: Dictionary = {\n cartesian2d: prepareCartesian2d,\n geo: prepareGeo,\n singleAxis: prepareSingleAxis,\n polar: preparePolar,\n calendar: prepareCalendar\n};\n\n\nfunction isPath(el: Element): el is graphicUtil.Path {\n return el instanceof graphicUtil.Path;\n}\nfunction isDisplayable(el: Element) : el is Displayable {\n return el instanceof Displayable;\n}\nfunction copyElement(sourceEl: Element, targetEl: Element) {\n targetEl.copyTransform(sourceEl);\n if (isDisplayable(targetEl) && isDisplayable(sourceEl)) {\n targetEl.setStyle(sourceEl.style);\n targetEl.z = sourceEl.z;\n targetEl.z2 = sourceEl.z2;\n targetEl.zlevel = sourceEl.zlevel;\n targetEl.invisible = sourceEl.invisible;\n targetEl.ignore = sourceEl.ignore;\n\n if (isPath(targetEl) && isPath(sourceEl)) {\n targetEl.setShape(sourceEl.shape);\n }\n }\n}\nexport default class CustomChartView extends ChartView {\n\n static type = 'custom';\n readonly type = CustomChartView.type;\n\n private _data: SeriesData;\n\n render(\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const oldData = this._data;\n const data = customSeries.getData();\n const group = this.group;\n const renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n if (!oldData) {\n // Previous render is incremental render or first render.\n // Needs remove the incremental rendered elements.\n group.removeAll();\n }\n\n data.diff(oldData)\n .add(function (newIdx) {\n createOrUpdateItem(\n api, null, newIdx, renderItem(newIdx, payload), customSeries, group,\n data\n );\n })\n .remove(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n })\n .update(function (newIdx, oldIdx) {\n const oldEl = oldData.getItemGraphicEl(oldIdx);\n\n createOrUpdateItem(\n api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group,\n data\n );\n })\n .execute();\n\n // Do clipping\n const clipPath = customSeries.get('clip', true)\n ? createClipPath(customSeries.coordinateSystem, false, customSeries)\n : null;\n if (clipPath) {\n group.setClipPath(clipPath);\n }\n else {\n group.removeClipPath();\n }\n\n this._data = data;\n }\n\n incrementalPrepareRender(\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void {\n this.group.removeAll();\n this._data = null;\n }\n\n incrementalRender(\n params: StageHandlerProgressParams,\n customSeries: CustomSeriesModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ): void {\n const data = customSeries.getData();\n const renderItem = makeRenderItem(customSeries, data, ecModel, api);\n function setIncrementalAndHoverLayer(el: Displayable) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n for (let idx = params.start; idx < params.end; idx++) {\n const el = createOrUpdateItem(\n null, null, idx, renderItem(idx, payload), customSeries, this.group, data\n );\n el && el.traverse(setIncrementalAndHoverLayer);\n }\n }\n\n filterForExposedEvent(\n eventType: string, query: EventQueryItem, targetEl: Element, packedEvent: ECActionEvent\n ): boolean {\n const elementName = query.element;\n if (elementName == null || targetEl.name === elementName) {\n return true;\n }\n\n // Enable to give a name on a group made by `renderItem`, and listen\n // events that triggerd by its descendents.\n while ((targetEl = (targetEl.__hostTarget || targetEl.parent)) && targetEl !== this.group) {\n if (targetEl.name === elementName) {\n return true;\n }\n }\n\n return false;\n }\n}\n\n\nfunction createEl(elOption: CustomElementOption): Element {\n const graphicType = elOption.type;\n let el;\n\n // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n if (graphicType === 'path') {\n const shape = (elOption as CustomSVGPathOption).shape;\n // Using pathRect brings convenience to users sacle svg path.\n const pathRect = (shape.width != null && shape.height != null)\n ? {\n x: shape.x || 0,\n y: shape.y || 0,\n width: shape.width,\n height: shape.height\n } as RectLike\n : null;\n const pathData = getPathData(shape);\n // Path is also used for icon, so layout 'center' by default.\n el = graphicUtil.makePath(pathData, null, pathRect, shape.layout || 'center');\n customInnerStore(el).customPathData = pathData;\n }\n else if (graphicType === 'image') {\n el = new graphicUtil.Image({});\n customInnerStore(el).customImagePath = (elOption as CustomImageOption).style.image;\n }\n else if (graphicType === 'text') {\n el = new graphicUtil.Text({});\n // customInnerStore(el).customText = (elOption.style as TextStyleProps).text;\n }\n else if (graphicType === 'group') {\n el = new graphicUtil.Group();\n }\n else if (graphicType === 'compoundPath') {\n throw new Error('\"compoundPath\" is not supported yet.');\n }\n else {\n const Clz = graphicUtil.getShapeClass(graphicType);\n if (!Clz) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'graphic type \"' + graphicType + '\" can not be found.';\n }\n throwError(errMsg);\n }\n el = new Clz();\n }\n\n customInnerStore(el).customGraphicType = graphicType;\n el.name = elOption.name;\n\n // Compat ec4: the default z2 lift is 1. If changing the number,\n // some cases probably be broken: hierarchy layout along z, like circle packing,\n // where emphasis only intending to modify color/border rather than lift z2.\n (el as ECElement).z2EmphasisLift = 1;\n (el as ECElement).z2SelectLift = 1;\n\n return el;\n}\n\n\n/**\n * ----------------------------------------------------------\n * [STRATEGY_MERGE] Merge properties or erase all properties:\n *\n * Based on the fact that the existing zr element probably be reused, we now consider whether\n * merge or erase all properties to the exsiting elements.\n * That is, if a certain props is not specified in the lastest return of `renderItem`:\n * + \"Merge\" means that do not modify the value on the existing element.\n * + \"Erase all\" means that use a default value to the existing element.\n *\n * \"Merge\" might bring some unexpected state retaining for users and \"erase all\" seams to be\n * more safe. \"erase all\" force users to specify all of the props each time, which is recommanded\n * in most cases.\n * But \"erase all\" theoretically disables the chance of performance optimization (e.g., just\n * generete shape and style at the first time rather than always do that).\n * So we still use \"merge\" rather than \"erase all\". If users need \"erase all\", they can\n * simple always set all of the props each time.\n * Some \"object-like\" config like `textConfig`, `textContent`, `style` which are not needed for\n * every elment, so we replace them only when user specify them. And the that is a total replace.\n *\n * TODO: there is no hint of 'isFirst' to users. So the performance enhancement can not be\n * performed yet. Consider the case:\n * (1) setOption to \"mergeChildren\" with a smaller children count\n * (2) Use dataZoom to make an item disappear.\n * (3) User dataZoom to make the item display again. At that time, renderItem need to return the\n * full option rather than partial option to recreate the element.\n *\n * ----------------------------------------------\n * [STRATEGY_NULL] `hasOwnProperty` or `== null`:\n *\n * Ditinguishing \"own property\" probably bring little trouble to user when make el options.\n * So we trade a {xx: null} or {xx: undefined} as \"not specified\" if possible rather than\n * \"set them to null/undefined\". In most cases, props can not be cleared. Some typicall\n * clearable props like `style`/`textConfig`/`textContent` we enable `false` to means\n * \"clear\". In some othere special cases that the prop is able to set as null/undefined,\n * but not suitable to use `false`, `hasOwnProperty` is checked.\n *\n * ---------------------------------------------\n * [STRATEGY_TRANSITION] The rule of transition:\n * + For props on the root level of a element:\n * If there is no `transition` specified, tansform props will be transitioned by default,\n * which is the same as the previous setting in echarts4 and suitable for the scenario\n * of dataZoom change.\n * If `transition` specified, only the specified props will be transitioned.\n * + For props in `shape` and `style`:\n * Only props specified in `transition` will be transitioned.\n * + Break:\n * Since ec5, do not make transition to shape by default, because it might result in\n * performance issue (especially `points` of polygon) and do not necessary in most cases.\n *\n * @return if `isMorphTo`, return `allPropsFinal`.\n */\n\ninterface InnerCustomZRPathOptionStyle extends PathStyleProps {\n __decalPattern: PatternObject\n}\n\nfunction updateElNormal(\n // Can be null/undefined\n api: ExtensionAPI,\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n attachedTxInfo: AttachedTxInfo,\n seriesModel: CustomSeriesModel,\n isInit: boolean,\n isTextContent: boolean\n): void {\n\n const txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg;\n if (txCfgOpt) {\n // PENDING: whether use user object directly rather than clone?\n // TODO:5.0 textConfig transition animation?\n el.setTextConfig(txCfgOpt);\n }\n\n // Do some normalization on style.\n const styleOpt = elOption && (elOption as CustomDisplayableOption).style;\n\n if (styleOpt) {\n if (el.type === 'text') {\n const textOptionStyle = styleOpt as TextStyleProps;\n // Compatible with ec4: if `textFill` or `textStroke` exists use them.\n hasOwn(textOptionStyle, 'textFill') && (\n textOptionStyle.fill = (textOptionStyle as any).textFill\n );\n hasOwn(textOptionStyle, 'textStroke') && (\n textOptionStyle.stroke = (textOptionStyle as any).textStroke\n );\n }\n\n let decalPattern;\n const decalObj = isPath(el) ? (styleOpt as CustomBaseZRPathOption['style']).decal : null;\n if (api && decalObj) {\n (decalObj as InnerDecalObject).dirty = true;\n decalPattern = createOrUpdatePatternFromDecal(decalObj, api);\n }\n // Always overwrite in case user specify this prop.\n (styleOpt as InnerCustomZRPathOptionStyle).__decalPattern = decalPattern;\n }\n\n // Save the meta info for further morphing. Like apply on the sub morphing elements.\n const store = customInnerStore(el);\n store.userDuring = elOption.during;\n\n const transFromProps = {} as ElementProps;\n const propsToSet = {} as ElementProps;\n\n prepareShapeOrExtraTransitionFrom('shape', el, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('shape', elOption, propsToSet);\n prepareTransformTransitionFrom(el, elOption, transFromProps, isInit);\n prepareTransformAllPropsFinal(el, elOption, propsToSet);\n prepareShapeOrExtraTransitionFrom('extra', el, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('extra', elOption, propsToSet);\n prepareStyleTransitionFrom(el, elOption, styleOpt, transFromProps, isInit);\n (propsToSet as DisplayableProps).style = styleOpt;\n applyPropsDirectly(el, propsToSet);\n applyPropsTransition(el, dataIndex, seriesModel, transFromProps, isInit);\n applyMiscProps(el, elOption, isTextContent);\n\n styleOpt ? el.dirty() : el.markRedraw();\n}\n\nfunction applyMiscProps(\n el: Element, elOption: CustomElementOption, isTextContent: boolean\n) {\n // Merge by default.\n hasOwn(elOption, 'silent') && (el.silent = elOption.silent);\n hasOwn(elOption, 'ignore') && (el.ignore = elOption.ignore);\n if (isDisplayable(el)) {\n hasOwn(elOption, 'invisible') && (el.invisible = (elOption as CustomDisplayableOption).invisible);\n }\n if (isPath(el)) {\n hasOwn(elOption, 'autoBatch') && (el.autoBatch = (elOption as CustomBaseZRPathOption).autoBatch);\n }\n\n if (!isTextContent) {\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n // Update them only when user specified, otherwise, remain.\n hasOwn(elOption, 'info') && (customInnerStore(el).info = elOption.info);\n }\n}\n\nfunction applyPropsDirectly(\n el: Element,\n // Can be null/undefined\n allPropsFinal: ElementProps\n) {\n const elDisplayable = el.isGroup ? null : el as Displayable;\n const styleOpt = (allPropsFinal as Displayable).style;\n\n if (elDisplayable && styleOpt) {\n\n // PENDING: here the input style object is used directly.\n // Good for performance but bad for compatibility control.\n elDisplayable.useStyle(styleOpt);\n\n const decalPattern = (styleOpt as InnerCustomZRPathOptionStyle).__decalPattern;\n if (decalPattern) {\n elDisplayable.style.decal = decalPattern;\n }\n\n // When style object changed, how to trade the existing animation?\n // It is probably complicated and not needed to cover all the cases.\n // But still need consider the case:\n // (1) When using init animation on `style.opacity`, and before the animation\n // ended users triggers an update by mousewhel. At that time the init\n // animation should better be continued rather than terminated.\n // So after `useStyle` called, we should change the animation target manually\n // to continue the effect of the init animation.\n // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need\n // to update the value to `val2` and no animation declared, should be terminate\n // the previous animation or just modify the target of the animation?\n // Therotically That will happen not only on `style` but also on `shape` and\n // `transfrom` props. But we haven't handle this case at present yet.\n // (3) PENDING: Is it proper to visit `animators` and `targetName`?\n const animators = elDisplayable.animators;\n for (let i = 0; i < animators.length; i++) {\n const animator = animators[i];\n // targetName is the \"topKey\".\n if (animator.targetName === 'style') {\n animator.changeTarget(elDisplayable.style);\n }\n }\n }\n\n if (allPropsFinal) {\n // Not set style here.\n (allPropsFinal as DisplayableProps).style = null;\n // Set el to the final state firstly.\n allPropsFinal && el.attr(allPropsFinal);\n (allPropsFinal as DisplayableProps).style = styleOpt;\n }\n}\n\nfunction applyPropsTransition(\n el: Element,\n dataIndex: number,\n seriesModel: CustomSeriesModel,\n // Can be null/undefined\n transFromProps: ElementProps,\n isInit: boolean\n): void {\n if (transFromProps) {\n // NOTE: Do not use `el.updateDuringAnimation` here becuase `el.updateDuringAnimation` will\n // be called mutiple time in each animation frame. For example, if both \"transform\" props\n // and shape props and style props changed, it will generate three animator and called\n // one-by-one in each animation frame.\n // We use the during in `animateTo/From` params.\n const userDuring = customInnerStore(el).userDuring;\n // For simplicity, if during not specified, the previous during will not work any more.\n const cfgDuringCall = userDuring ? bind(duringCall, { el: el, userDuring: userDuring }) : null;\n const cfg = {\n dataIndex: dataIndex,\n isFrom: true,\n during: cfgDuringCall\n };\n isInit\n ? graphicUtil.initProps(el, transFromProps, seriesModel, cfg)\n : graphicUtil.updateProps(el, transFromProps, seriesModel, cfg);\n }\n}\n\n\n// Use it to avoid it be exposed to user.\nconst tmpDuringScope = {} as {\n el: Element;\n isShapeDirty: boolean;\n isStyleDirty: boolean;\n};\nconst customDuringAPI: CustomDuringAPI = {\n // Usually other props do not need to be changed in animation during.\n setTransform(key: TransformProp, val: unknown) {\n if (__DEV__) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `setTransform`.');\n }\n tmpDuringScope.el[key] = val as number;\n return this;\n },\n getTransform(key: TransformProp): number {\n if (__DEV__) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `getTransform`.');\n }\n return tmpDuringScope.el[key];\n },\n setShape(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const shape = (tmpDuringScope.el as graphicUtil.Path).shape\n || ((tmpDuringScope.el as graphicUtil.Path).shape = {});\n shape[key] = val;\n tmpDuringScope.isShapeDirty = true;\n return this;\n },\n getShape(key: any): any {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const shape = (tmpDuringScope.el as graphicUtil.Path).shape;\n if (shape) {\n return shape[key];\n }\n },\n setStyle(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const style = (tmpDuringScope.el as Displayable).style;\n if (style) {\n if (__DEV__) {\n if (eqNaN(val)) {\n warn('style.' + key + ' must not be assigned with NaN.');\n }\n }\n style[key] = val;\n tmpDuringScope.isStyleDirty = true;\n }\n return this;\n },\n getStyle(key: any): any {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const style = (tmpDuringScope.el as Displayable).style;\n if (style) {\n return style[key];\n }\n },\n setExtra(key: any, val: unknown) {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const extra = (tmpDuringScope.el as LooseElementProps).extra\n || ((tmpDuringScope.el as LooseElementProps).extra = {});\n extra[key] = val;\n return this;\n },\n getExtra(key: string): unknown {\n if (__DEV__) {\n assertNotReserved(key);\n }\n const extra = (tmpDuringScope.el as LooseElementProps).extra;\n if (extra) {\n return extra[key];\n }\n }\n};\n\nfunction assertNotReserved(key: string) {\n if (__DEV__) {\n if (key === 'transition' || key === 'enterFrom' || key === 'leaveTo') {\n throw new Error('key must not be \"' + key + '\"');\n }\n }\n}\n\nfunction duringCall(\n this: {\n el: Element;\n userDuring: CustomBaseElementOption['during']\n }\n): void {\n // Do not provide \"percent\" until some requirements come.\n // Because consider thies case:\n // enterFrom: {x: 100, y: 30}, transition: 'x'.\n // And enter duration is different from update duration.\n // Thus it might be confused about the meaning of \"percent\" in during callback.\n const scope = this;\n const el = scope.el;\n if (!el) {\n return;\n }\n // If el is remove from zr by reason like legend, during still need to called,\n // becuase el will be added back to zr and the prop value should not be incorrect.\n\n const latestUserDuring = customInnerStore(el).userDuring;\n const scopeUserDuring = scope.userDuring;\n // Ensured a during is only called once in each animation frame.\n // If a during is called multiple times in one frame, maybe some users' calulation logic\n // might be wrong (not sure whether this usage exists).\n // The case of a during might be called twice can be: by default there is a animator for\n // 'x', 'y' when init. Before the init animation finished, call `setOption` to start\n // another animators for 'style'/'shape'/'extra'.\n if (latestUserDuring !== scopeUserDuring) {\n // release\n scope.el = scope.userDuring = null;\n return;\n }\n\n tmpDuringScope.el = el;\n tmpDuringScope.isShapeDirty = false;\n tmpDuringScope.isStyleDirty = false;\n\n // Give no `this` to user in \"during\" calling.\n scopeUserDuring(customDuringAPI);\n\n if (tmpDuringScope.isShapeDirty && (el as graphicUtil.Path).dirtyShape) {\n (el as graphicUtil.Path).dirtyShape();\n }\n if (tmpDuringScope.isStyleDirty && (el as Displayable).dirtyStyle) {\n (el as Displayable).dirtyStyle();\n }\n // markRedraw() will be called by default in during.\n // FIXME `this.markRedraw();` directly ?\n\n // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`,\n // consider the issue that the prop might be incorrect when return to \"normal\" state.\n}\n\nfunction updateElOnState(\n state: DisplayStateNonNormal,\n el: Element,\n elStateOpt: CustomElementOptionOnState,\n styleOpt: CustomElementOptionOnState['style'],\n attachedTxInfo: AttachedTxInfo,\n isRoot: boolean,\n isTextContent: boolean\n): void {\n const elDisplayable = el.isGroup ? null : el as Displayable;\n const txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg;\n\n // PENDING:5.0 support customize scale change and transition animation?\n\n if (elDisplayable) {\n // By default support auto lift color when hover whether `emphasis` specified.\n const stateObj = elDisplayable.ensureState(state);\n if (styleOpt === false) {\n const existingEmphasisState = elDisplayable.getState(state);\n if (existingEmphasisState) {\n existingEmphasisState.style = null;\n }\n }\n else {\n // style is needed to enable defaut emphasis.\n stateObj.style = styleOpt || null;\n }\n // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,\n // remove hover style.\n // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not\n // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.\n if (txCfgOpt) {\n stateObj.textConfig = txCfgOpt;\n }\n\n setDefaultStateProxy(elDisplayable);\n }\n}\n\nfunction updateZ(\n el: Element,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel\n): void {\n // Group not support textContent and not support z yet.\n if (el.isGroup) {\n return;\n }\n\n const elDisplayable = el as Displayable;\n const currentZ = seriesModel.currentZ;\n const currentZLevel = seriesModel.currentZLevel;\n // Always erase.\n elDisplayable.z = currentZ;\n elDisplayable.zlevel = currentZLevel;\n // z2 must not be null/undefined, otherwise sort error may occur.\n const optZ2 = (elOption as CustomDisplayableOption).z2;\n optZ2 != null && (elDisplayable.z2 = optZ2 || 0);\n\n for (let i = 0; i < STATES.length; i++) {\n updateZForEachState(elDisplayable, elOption, STATES[i]);\n }\n}\n\nfunction updateZForEachState(\n elDisplayable: Displayable,\n elOption: CustomDisplayableOption,\n state: DisplayState\n): void {\n const isNormal = state === NORMAL;\n const elStateOpt = isNormal ? elOption : retrieveStateOption(\n elOption as CustomElementOption,\n state as DisplayStateNonNormal\n );\n const optZ2 = elStateOpt ? elStateOpt.z2 : null;\n let stateObj;\n if (optZ2 != null) {\n // Do not `ensureState` until required.\n stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);\n stateObj.z2 = optZ2 || 0;\n }\n}\n\nfunction makeRenderItem(\n customSeries: CustomSeriesModel,\n data: SeriesData,\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n const renderItem = customSeries.get('renderItem');\n const coordSys = customSeries.coordinateSystem;\n let prepareResult = {} as ReturnType;\n\n if (coordSys) {\n if (__DEV__) {\n assert(renderItem, 'series.render is required.');\n assert(\n coordSys.prepareCustoms || prepareCustoms[coordSys.type],\n 'This coordSys does not support custom series.'\n );\n }\n\n // `coordSys.prepareCustoms` is used for external coord sys like bmap.\n prepareResult = coordSys.prepareCustoms\n ? coordSys.prepareCustoms(coordSys)\n : prepareCustoms[coordSys.type](coordSys);\n }\n\n const userAPI = defaults({\n getWidth: api.getWidth,\n getHeight: api.getHeight,\n getZr: api.getZr,\n getDevicePixelRatio: api.getDevicePixelRatio,\n value: value,\n style: style,\n ordinalRawValue: ordinalRawValue,\n styleEmphasis: styleEmphasis,\n visual: visual,\n barLayout: barLayout,\n currentSeriesIndices: currentSeriesIndices,\n font: font\n }, prepareResult.api || {}) as CustomSeriesRenderItemAPI;\n\n const userParams: CustomSeriesRenderItemParams = {\n // The life cycle of context: current round of rendering.\n // The global life cycle is probably not necessary, because\n // user can store global status by themselves.\n context: {},\n seriesId: customSeries.id,\n seriesName: customSeries.name,\n seriesIndex: customSeries.seriesIndex,\n coordSys: prepareResult.coordSys,\n dataInsideLength: data.count(),\n encode: wrapEncodeDef(customSeries.getData())\n } as CustomSeriesRenderItemParams;\n\n // If someday intending to refactor them to a class, should consider do not\n // break change: currently these attribute member are encapsulated in a closure\n // so that do not need to force user to call these method with a scope.\n\n // Do not support call `api` asynchronously without dataIndexInside input.\n let currDataIndexInside: number;\n let currItemModel: Model;\n let currItemStyleModels: Partial>> = {};\n let currLabelModels: Partial>> = {};\n\n const seriesItemStyleModels = {} as Record>;\n\n const seriesLabelModels = {} as Record>;\n\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n seriesItemStyleModels[stateName] = (customSeries as Model)\n .getModel(PATH_ITEM_STYLE[stateName]);\n seriesLabelModels[stateName] = (customSeries as Model)\n .getModel(PATH_LABEL[stateName]);\n }\n\n function getItemModel(dataIndexInside: number): Model {\n return dataIndexInside === currDataIndexInside\n ? (currItemModel || (currItemModel = data.getItemModel(dataIndexInside)))\n : data.getItemModel(dataIndexInside);\n }\n function getItemStyleModel(dataIndexInside: number, state: DisplayState) {\n return !data.hasItemOption\n ? seriesItemStyleModels[state]\n : dataIndexInside === currDataIndexInside\n ? (currItemStyleModels[state] || (\n currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])\n ))\n : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);\n }\n function getLabelModel(dataIndexInside: number, state: DisplayState) {\n return !data.hasItemOption\n ? seriesLabelModels[state]\n : dataIndexInside === currDataIndexInside\n ? (currLabelModels[state] || (\n currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])\n ))\n : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);\n }\n\n return function (dataIndexInside: number, payload: Payload): CustomElementOption {\n currDataIndexInside = dataIndexInside;\n currItemModel = null;\n currItemStyleModels = {};\n currLabelModels = {};\n\n return renderItem && renderItem(\n defaults({\n dataIndexInside: dataIndexInside,\n dataIndex: data.getRawIndex(dataIndexInside),\n // Can be used for optimization when zoom or roam.\n actionType: payload ? payload.type : null\n } as CustomSeriesRenderItemParams, userParams),\n userAPI\n );\n };\n\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function value(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n return data.getStorage().get(data.getDimensionIndex(dim || 0), dataIndexInside);\n }\n\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function ordinalRawValue(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue | OrdinalRawValue {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n dim = dim || 0;\n const dimInfo = data.getDimensionInfo(dim);\n if (!dimInfo) {\n const dimIndex = data.getDimensionIndex(dim);\n return dimIndex >= 0 ? data.getStorage().get(dimIndex, dataIndexInside) : undefined;\n }\n const val = data.get(dimInfo.name, dataIndexInside);\n const ordinalMeta = dimInfo && dimInfo.ordinalMeta;\n return ordinalMeta\n ? ordinalMeta.categories[val as number]\n : val;\n }\n\n /**\n * @deprecated The orgininal intention of `api.style` is enable to set itemStyle\n * like other series. But it not necessary and not easy to give a strict definition\n * of what it return. And since echarts5 it needs to be make compat work. So\n * deprecates it since echarts5.\n *\n * By default, `visual` is applied to style (to support visualMap).\n * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,\n * it can be implemented as:\n * `api.style({stroke: api.visual('color'), fill: null})`;\n *\n * [Compat]: since ec5, RectText has been separated from its hosts el.\n * so `api.style()` will only return the style from `itemStyle` but not handle `label`\n * any more. But `series.label` config is never published in doc.\n * We still compat it in `api.style()`. But not encourage to use it and will still not\n * to pulish it to doc.\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function style(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps {\n if (__DEV__) {\n warnDeprecated('api.style', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n const style = data.getItemVisual(dataIndexInside, 'style');\n const visualColor = style && style.fill;\n const opacity = style && style.opacity;\n\n let itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle();\n visualColor != null && (itemStyle.fill = visualColor);\n opacity != null && (itemStyle.opacity = opacity);\n\n const opt = {inheritColor: isString(visualColor) ? visualColor : '#000'};\n const labelModel = getLabelModel(dataIndexInside, NORMAL);\n // Now that the feture of \"auto adjust text fill/stroke\" has been migrated to zrender\n // since ec5, we should set `isAttached` as `false` here and make compat in\n // `convertToEC4StyleForCustomSerise`.\n const textStyle = labelStyleHelper.createTextStyle(labelModel, null, opt, false, true);\n textStyle.text = labelModel.getShallow('show')\n ? retrieve2(\n customSeries.getFormattedLabel(dataIndexInside, NORMAL),\n getDefaultLabel(data, dataIndexInside)\n )\n : null;\n const textConfig = labelStyleHelper.createTextConfig(labelModel, opt, false);\n\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n\n userProps && applyUserPropsAfter(itemStyle, userProps);\n (itemStyle as LegacyStyleProps).legacy = true;\n\n return itemStyle;\n }\n\n /**\n * @deprecated The reason see `api.style()`\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function styleEmphasis(userProps?: ZRStyleProps, dataIndexInside?: number): ZRStyleProps {\n if (__DEV__) {\n warnDeprecated('api.styleEmphasis', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n let itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();\n const labelModel = getLabelModel(dataIndexInside, EMPHASIS);\n const textStyle = labelStyleHelper.createTextStyle(labelModel, null, null, true, true);\n textStyle.text = labelModel.getShallow('show')\n ? retrieve3(\n customSeries.getFormattedLabel(dataIndexInside, EMPHASIS),\n customSeries.getFormattedLabel(dataIndexInside, NORMAL),\n getDefaultLabel(data, dataIndexInside)\n )\n : null;\n const textConfig = labelStyleHelper.createTextConfig(labelModel, null, true);\n\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n\n userProps && applyUserPropsAfter(itemStyle, userProps);\n (itemStyle as LegacyStyleProps).legacy = true;\n\n return itemStyle;\n }\n\n function applyUserPropsAfter(itemStyle: ZRStyleProps, extra: ZRStyleProps): void {\n for (const key in extra) {\n if (hasOwn(extra, key)) {\n (itemStyle as any)[key] = (extra as any)[key];\n }\n }\n }\n\n function preFetchFromExtra(extra: ZRStyleProps, itemStyle: ItemStyleProps): void {\n // A trick to retrieve those props firstly, which are used to\n // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.\n // (It's not reasonable but only for a degree of compat)\n if (extra) {\n (extra as any).textFill && ((itemStyle as any).textFill = (extra as any).textFill);\n (extra as any).textPosition && ((itemStyle as any).textPosition = (extra as any).textPosition);\n }\n }\n\n /**\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n function visual(\n visualType: VT,\n dataIndexInside?: number\n ): VT extends NonStyleVisualProps ? DefaultDataVisual[VT]\n : VT extends StyleVisualProps ? PathStyleProps[typeof STYLE_VISUAL_TYPE[VT]]\n : never {\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (hasOwn(STYLE_VISUAL_TYPE, visualType)) {\n const style = data.getItemVisual(dataIndexInside, 'style');\n return style\n ? style[STYLE_VISUAL_TYPE[visualType as StyleVisualProps]] as any\n : null;\n }\n // Only support these visuals. Other visual might be inner tricky\n // for performance (like `style`), do not expose to users.\n if (hasOwn(NON_STYLE_VISUAL_PROPS, visualType)) {\n return data.getItemVisual(dataIndexInside, visualType as NonStyleVisualProps) as any;\n }\n }\n\n /**\n * @public\n * @return If not support, return undefined.\n */\n function barLayout(\n opt: Omit[0], 'axis'>\n ): ReturnType {\n if (coordSys.type === 'cartesian2d') {\n const baseAxis = coordSys.getBaseAxis() as Axis2D;\n return getLayoutOnAxis(defaults({axis: baseAxis}, opt));\n }\n }\n\n /**\n * @public\n */\n function currentSeriesIndices(): ReturnType {\n return ecModel.getCurrentSeriesIndices();\n }\n\n /**\n * @public\n * @return font string\n */\n function font(\n opt: Parameters[0]\n ): ReturnType {\n return labelStyleHelper.getFont(opt, ecModel);\n }\n}\n\nfunction wrapEncodeDef(data: SeriesData): WrapEncodeDefRet {\n const encodeDef = {} as WrapEncodeDefRet;\n each(data.dimensions, function (dimName) {\n const dimInfo = data.getDimensionInfo(dimName);\n if (!dimInfo.isExtraCoord) {\n const coordDim = dimInfo.coordDim;\n const dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];\n dataDims[dimInfo.coordDimIndex] = data.getDimensionIndex(dimName);\n }\n });\n return encodeDef;\n}\n\nfunction createOrUpdateItem(\n api: ExtensionAPI,\n existsEl: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup,\n data: SeriesData\n): Element {\n // [Rule]\n // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.\n // (It seems that violate the \"merge\" principle, but most of users probably intuitively\n // regard \"return;\" as \"show nothing element whatever\", so make a exception to meet the\n // most cases.)\n // The rule or \"merge\" see [STRATEGY_MERGE].\n\n // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).\n if (!elOption) {\n group.remove(existsEl);\n return;\n }\n const el = doCreateOrUpdateEl(api, existsEl, dataIndex, elOption, seriesModel, group, true);\n el && data.setItemGraphicEl(dataIndex, el);\n\n el && enableHoverEmphasis(el, elOption.focus, elOption.blurScope);\n\n return el;\n}\n\nfunction doCreateOrUpdateEl(\n api: ExtensionAPI,\n existsEl: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup,\n isRoot: boolean\n): Element {\n\n if (__DEV__) {\n assert(elOption, 'should not have an null/undefined element setting');\n }\n\n let toBeReplacedIdx = -1;\n const oldEl = existsEl;\n if (\n existsEl && (\n doesElNeedRecreate(existsEl, elOption, seriesModel)\n // || (\n // // PENDING: even in one-to-one mapping case, if el is marked as morph,\n // // do not sure whether the el will be mapped to another el with different\n // // hierarchy in Group tree. So always recreate el rather than reuse the el.\n // morphHelper && morphHelper.isOneToOneFrom(el)\n // )\n )\n ) {\n // Should keep at the original index, otherwise \"merge by index\" will be incorrect.\n toBeReplacedIdx = indexOf(group.childrenRef(), existsEl);\n existsEl = null;\n }\n\n const isInit = !existsEl;\n let el = existsEl;\n\n if (!el) {\n el = createEl(elOption);\n if (oldEl) {\n copyElement(oldEl, el);\n }\n }\n else {\n // FIMXE:NEXT unified clearState?\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n el.clearStates();\n }\n\n // Need to set morph: false explictly to disable automatically morphing.\n if ((elOption as CustomBaseZRPathOption).morph === false) {\n (el as ECElement).disableMorphing = true;\n }\n else if ((el as ECElement).disableMorphing) {\n (el as ECElement).disableMorphing = false;\n }\n\n attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt =\n attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt =\n attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt =\n attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null;\n\n attachedTxInfoTmp.isLegacy = false;\n\n doCreateOrUpdateAttachedTx(\n el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp\n );\n\n doCreateOrUpdateClipPath(\n el, dataIndex, elOption, seriesModel, isInit\n );\n\n updateElNormal(\n api,\n el,\n dataIndex,\n elOption,\n attachedTxInfoTmp,\n seriesModel,\n isInit,\n false\n );\n\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n if (stateName !== NORMAL) {\n const otherStateOpt = retrieveStateOption(elOption, stateName);\n const otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName);\n updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp, isRoot, false);\n }\n }\n\n updateZ(el, elOption, seriesModel);\n\n if (elOption.type === 'group') {\n mergeChildren(\n api, el as graphicUtil.Group, dataIndex, elOption as CustomGroupOption, seriesModel\n );\n }\n\n if (toBeReplacedIdx >= 0) {\n group.replaceAt(el, toBeReplacedIdx);\n }\n else {\n group.add(el);\n }\n\n return el;\n}\n\n// `el` must not be null/undefined.\nfunction doesElNeedRecreate(el: Element, elOption: CustomElementOption, seriesModel: CustomSeriesModel): boolean {\n const elInner = customInnerStore(el);\n const elOptionType = elOption.type;\n const elOptionShape = (elOption as CustomBaseZRPathOption).shape;\n const elOptionStyle = (elOption as CustomDisplayableOption).style;\n return (\n // Always create new if universal transition is enabled.\n // Because we do transition after render. It needs to know what old element is. Replacement will loose it.\n seriesModel.isUniversalTransitionEnabled()\n // If `elOptionType` is `null`, follow the merge principle.\n || (elOptionType != null\n && elOptionType !== elInner.customGraphicType\n )\n || (elOptionType === 'path'\n && hasOwnPathData(elOptionShape)\n && getPathData(elOptionShape) !== elInner.customPathData\n )\n || (elOptionType === 'image'\n && hasOwn(elOptionStyle, 'image')\n && (elOptionStyle as CustomImageOption['style']).image !== elInner.customImagePath\n )\n // // FIXME test and remove this restriction?\n // || (elOptionType === 'text'\n // && hasOwn(elOptionStyle, 'text')\n // && (elOptionStyle as TextStyleProps).text !== elInner.customText\n // )\n );\n}\n\nfunction doCreateOrUpdateClipPath(\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n isInit: boolean\n): void {\n // Based on the \"merge\" principle, if no clipPath provided,\n // do nothing. The exists clip will be totally removed only if\n // `el.clipPath` is `false`. Otherwise it will be merged/replaced.\n const clipPathOpt = elOption.clipPath as CustomPathOption | false;\n if (clipPathOpt === false) {\n if (el && el.getClipPath()) {\n el.removeClipPath();\n }\n }\n else if (clipPathOpt) {\n let clipPath = el.getClipPath();\n if (clipPath && doesElNeedRecreate(\n clipPath,\n clipPathOpt,\n seriesModel\n )) {\n clipPath = null;\n }\n if (!clipPath) {\n clipPath = createEl(clipPathOpt) as graphicUtil.Path;\n if (__DEV__) {\n assert(\n isPath(clipPath),\n 'Only any type of `path` can be used in `clipPath`, rather than ' + clipPath.type + '.'\n );\n }\n el.setClipPath(clipPath);\n }\n updateElNormal(\n null, clipPath, dataIndex, clipPathOpt, null, seriesModel, isInit, false\n );\n }\n // If not define `clipPath` in option, do nothing unnecessary.\n}\n\nfunction doCreateOrUpdateAttachedTx(\n el: Element,\n dataIndex: number,\n elOption: CustomElementOption,\n seriesModel: CustomSeriesModel,\n isInit: boolean,\n attachedTxInfo: AttachedTxInfo\n): void {\n // group do not support textContent temporarily untill necessary.\n if (el.isGroup) {\n return;\n }\n\n // Normal must be called before emphasis, for `isLegacy` detection.\n processTxInfo(elOption, null, attachedTxInfo);\n processTxInfo(elOption, EMPHASIS, attachedTxInfo);\n\n // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sence.\n // So for simplicity, if \"elOption hasOwnProperty of them but be null/undefined\", we do not\n // trade them as set to null to el.\n // Especially:\n // `elOption.textContent: false` means remove textContent.\n // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.\n let txConOptNormal = attachedTxInfo.normal.conOpt as CustomElementOption | false;\n const txConOptEmphasis = attachedTxInfo.emphasis.conOpt as CustomElementOptionOnState;\n const txConOptBlur = attachedTxInfo.blur.conOpt as CustomElementOptionOnState;\n const txConOptSelect = attachedTxInfo.select.conOpt as CustomElementOptionOnState;\n\n if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) {\n let textContent = el.getTextContent();\n if (txConOptNormal === false) {\n textContent && el.removeTextContent();\n }\n else {\n txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || {type: 'text'};\n if (!textContent) {\n textContent = createEl(txConOptNormal) as graphicUtil.Text;\n el.setTextContent(textContent);\n }\n else {\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n textContent.clearStates();\n }\n\n updateElNormal(\n null, textContent, dataIndex, txConOptNormal, null, seriesModel, isInit, true\n );\n const txConStlOptNormal = txConOptNormal && (txConOptNormal as CustomDisplayableOption).style;\n for (let i = 0; i < STATES.length; i++) {\n const stateName = STATES[i];\n if (stateName !== NORMAL) {\n const txConOptOtherState = attachedTxInfo[stateName].conOpt as CustomElementOptionOnState;\n updateElOnState(\n stateName,\n textContent,\n txConOptOtherState,\n retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName),\n null, false, true\n );\n }\n }\n\n txConStlOptNormal ? textContent.dirty() : textContent.markRedraw();\n }\n }\n}\n\nfunction processTxInfo(\n elOption: CustomElementOption,\n state: DisplayStateNonNormal,\n attachedTxInfo: AttachedTxInfo\n): void {\n const stateOpt = !state ? elOption : retrieveStateOption(elOption, state);\n const styleOpt = !state\n ? (elOption as CustomDisplayableOption).style\n : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS);\n\n const elType = elOption.type;\n let txCfg = stateOpt ? stateOpt.textConfig : null;\n const txConOptNormal = elOption.textContent;\n let txConOpt: CustomElementOption | CustomElementOptionOnState =\n !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state);\n\n if (styleOpt && (\n // Because emphasis style has little info to detect legacy,\n // if normal is legacy, emphasis is trade as legacy.\n attachedTxInfo.isLegacy\n || isEC4CompatibleStyle(styleOpt, elType, !!txCfg, !!txConOpt)\n )) {\n attachedTxInfo.isLegacy = true;\n const convertResult = convertFromEC4CompatibleStyle(styleOpt, elType, !state);\n // Explicitly specified `textConfig` and `textContent` has higher priority than\n // the ones generated by legacy style. Otherwise if users use them and `api.style`\n // at the same time, they not both work and hardly to known why.\n if (!txCfg && convertResult.textConfig) {\n txCfg = convertResult.textConfig;\n }\n if (!txConOpt && convertResult.textContent) {\n txConOpt = convertResult.textContent;\n }\n }\n\n if (!state && txConOpt) {\n const txConOptNormal = txConOpt as CustomElementOption;\n // `textContent: {type: 'text'}`, the \"type\" is easy to be missing. So we tolerate it.\n !txConOptNormal.type && (txConOptNormal.type = 'text');\n if (__DEV__) {\n // Do not tolerate incorret type for forward compat.\n assert(\n txConOptNormal.type === 'text',\n 'textContent.type must be \"text\"'\n );\n }\n }\n\n const info = !state ? attachedTxInfo.normal : attachedTxInfo[state];\n info.cfg = txCfg;\n info.conOpt = txConOpt;\n}\n\nfunction retrieveStateOption(\n elOption: CustomElementOption, state: DisplayStateNonNormal\n): CustomElementOptionOnState {\n return !state ? elOption : elOption ? (elOption as CustomDisplayableOption)[state] : null;\n}\n\nfunction retrieveStyleOptionOnState(\n stateOptionNormal: CustomElementOption,\n stateOption: CustomElementOptionOnState,\n state: DisplayStateNonNormal\n): CustomElementOptionOnState['style'] {\n let style = stateOption && stateOption.style;\n if (style == null && state === EMPHASIS && stateOptionNormal) {\n style = (stateOptionNormal as CustomDisplayableOption).styleEmphasis;\n }\n return style;\n}\n\n\n// Usage:\n// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates that\n// the existing children will not be removed, and enables the feature that\n// update some of the props of some of the children simply by construct\n// the returned children of `renderItem` like:\n// `var children = group.children = []; children[3] = {opacity: 0.5};`\n// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children\n// by child.name. But that might be lower performance.\n// (3) If `elOption.$mergeChildren` is `false`, the existing children will be\n// replaced totally.\n// (4) If `!elOption.children`, following the \"merge\" principle, nothing will happen.\n//\n// For implementation simpleness, do not provide a direct way to remove sinlge\n// child (otherwise the total indicies of the children array have to be modified).\n// User can remove a single child by set its `ignore` as `true`.\nfunction mergeChildren(\n api: ExtensionAPI,\n el: graphicUtil.Group,\n dataIndex: number,\n elOption: CustomGroupOption,\n seriesModel: CustomSeriesModel\n): void {\n\n const newChildren = elOption.children;\n const newLen = newChildren ? newChildren.length : 0;\n const mergeChildren = elOption.$mergeChildren;\n // `diffChildrenByName` has been deprecated.\n const byName = mergeChildren === 'byName' || elOption.diffChildrenByName;\n const notMerge = mergeChildren === false;\n\n // For better performance on roam update, only enter if necessary.\n if (!newLen && !byName && !notMerge) {\n return;\n }\n\n if (byName) {\n diffGroupChildren({\n api: api,\n oldChildren: el.children() || [],\n newChildren: newChildren as CustomElementOption[] || [],\n dataIndex: dataIndex,\n seriesModel: seriesModel,\n group: el\n });\n return;\n }\n\n notMerge && el.removeAll();\n\n // Mapping children of a group simply by index, which\n // might be better performance.\n let index = 0;\n for (; index < newLen; index++) {\n newChildren[index] && doCreateOrUpdateEl(\n api,\n el.childAt(index),\n dataIndex,\n newChildren[index] as CustomElementOption,\n seriesModel,\n el,\n false\n );\n }\n for (let i = el.childCount() - 1; i >= index; i--) {\n // Do not supprot leave elements that are not mentioned in the latest\n // `renderItem` return. Otherwise users may not have a clear and simple\n // concept that how to contorl all of the elements.\n doRemoveEl(el.childAt(i), seriesModel, el);\n }\n}\n\ntype DiffGroupContext = {\n api: ExtensionAPI;\n oldChildren: Element[];\n newChildren: CustomElementOption[];\n dataIndex: number;\n seriesModel: CustomSeriesModel;\n group: graphicUtil.Group;\n};\nfunction diffGroupChildren(context: DiffGroupContext) {\n (new DataDiffer(\n context.oldChildren,\n context.newChildren,\n getKey,\n getKey,\n context\n ))\n .add(processAddUpdate)\n .update(processAddUpdate)\n .remove(processRemove)\n .execute();\n}\n\nfunction getKey(item: Element, idx: number): string {\n const name = item && item.name;\n return name != null ? name : GROUP_DIFF_PREFIX + idx;\n}\n\nfunction processAddUpdate(\n this: DataDiffer,\n newIndex: number,\n oldIndex?: number\n): void {\n const context = this.context;\n const childOption = newIndex != null ? context.newChildren[newIndex] : null;\n const child = oldIndex != null ? context.oldChildren[oldIndex] : null;\n\n doCreateOrUpdateEl(\n context.api,\n child,\n context.dataIndex,\n childOption,\n context.seriesModel,\n context.group,\n false\n );\n}\n\nfunction processRemove(this: DataDiffer, oldIndex: number): void {\n const context = this.context;\n const child = context.oldChildren[oldIndex];\n doRemoveEl(child, context.seriesModel, context.group);\n}\n\nfunction doRemoveEl(\n el: Element,\n seriesModel: CustomSeriesModel,\n group: ViewRootGroup\n): void {\n if (el) {\n const leaveToProps = customInnerStore(el).leaveToProps;\n leaveToProps\n ? graphicUtil.updateProps(el, leaveToProps, seriesModel, {\n cb: function () {\n group.remove(el);\n }\n })\n : group.remove(el);\n }\n}\n\n/**\n * @return SVG Path data.\n */\nfunction getPathData(shape: CustomSVGPathOption['shape']): string {\n // \"d\" follows the SVG convention.\n return shape && (shape.pathData || shape.d);\n}\n\nfunction hasOwnPathData(shape: CustomSVGPathOption['shape']): boolean {\n return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd'));\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CustomSeriesModel from './CustomSeries';\nimport CustomChartView from './CustomView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerChartView(CustomChartView);\n registers.registerSeriesModel(CustomSeriesModel);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as axisPointerModelHelper from './modelHelper';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as throttleUtil from '../../util/throttle';\nimport {makeInner} from '../../util/model';\nimport { AxisPointer } from './AxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Displayable, { DisplayableProps } from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport { VerticalAlign, HorizontalAlign, CommonAxisPointerOption } from '../../util/types';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\nimport { TextProps } from 'zrender/src/graphic/Text';\n\nconst inner = makeInner<{\n lastProp?: DisplayableProps\n labelEl?: graphic.Text\n pointerEl?: Displayable\n}, Element>();\nconst clone = zrUtil.clone;\nconst bind = zrUtil.bind;\n\ntype Icon = ReturnType;\ninterface Transform {\n x: number,\n y: number,\n rotation: number\n}\n\ntype AxisValue = CommonAxisPointerOption['value'];\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\ninterface BaseAxisPointer {\n\n /**\n * Should be implemenented by sub-class if support `handle`.\n */\n getHandleTransform(value: AxisValue, axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel): Transform\n\n /**\n * * Should be implemenented by sub-class if support `handle`.\n */\n updateHandleTransform(\n transform: Transform,\n delta: number[],\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ): Transform & {\n cursorPoint: number[]\n tooltipOption?: {\n verticalAlign?: VerticalAlign\n align?: HorizontalAlign\n }\n }\n\n}\n\nexport interface AxisPointerElementOptions {\n graphicKey: string\n\n pointer: PathProps & {\n type: 'Line' | 'Rect' | 'Circle' | 'Sector'\n }\n\n label: TextProps\n}\n/**\n * Base axis pointer class in 2D.\n */\nclass BaseAxisPointer implements AxisPointer {\n\n private _group: graphic.Group;\n\n private _lastGraphicKey: string;\n\n private _handle: Icon;\n\n private _dragging = false;\n\n private _lastValue: AxisValue;\n\n private _lastStatus: CommonAxisPointerOption['status'];\n\n private _payloadInfo: ReturnType;\n\n /**\n * If have transition animation\n */\n private _moveAnimation: boolean;\n\n private _axisModel: AxisBaseModel;\n private _axisPointerModel: AxisPointerModel;\n private _api: ExtensionAPI;\n\n /**\n * In px, arbitrary value. Do not set too small,\n * no animation is ok for most cases.\n */\n protected animationThreshold = 15;\n\n /**\n * @implement\n */\n render(axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel, api: ExtensionAPI, forceRender?: boolean) {\n const value = axisPointerModel.get('value');\n const status = axisPointerModel.get('status');\n\n // Bind them to `this`, not in closure, otherwise they will not\n // be replaced when user calling setOption in not merge mode.\n this._axisModel = axisModel;\n this._axisPointerModel = axisPointerModel;\n this._api = api;\n\n // Optimize: `render` will be called repeatly during mouse move.\n // So it is power consuming if performing `render` each time,\n // especially on mobile device.\n if (!forceRender\n && this._lastValue === value\n && this._lastStatus === status\n ) {\n return;\n }\n this._lastValue = value;\n this._lastStatus = status;\n\n let group = this._group;\n const handle = this._handle;\n\n if (!status || status === 'hide') {\n // Do not clear here, for animation better.\n group && group.hide();\n handle && handle.hide();\n return;\n }\n group && group.show();\n handle && handle.show();\n\n // Otherwise status is 'show'\n const elOption = {} as AxisPointerElementOptions;\n this.makeElOption(elOption, value, axisModel, axisPointerModel, api);\n\n // Enable change axis pointer type.\n const graphicKey = elOption.graphicKey;\n if (graphicKey !== this._lastGraphicKey) {\n this.clear(api);\n }\n this._lastGraphicKey = graphicKey;\n\n const moveAnimation = this._moveAnimation =\n this.determineAnimation(axisModel, axisPointerModel);\n\n if (!group) {\n group = this._group = new graphic.Group();\n this.createPointerEl(group, elOption, axisModel, axisPointerModel);\n this.createLabelEl(group, elOption, axisModel, axisPointerModel);\n api.getZr().add(group);\n }\n else {\n const doUpdateProps = zrUtil.curry(updateProps, axisPointerModel, moveAnimation);\n this.updatePointerEl(group, elOption, doUpdateProps);\n this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);\n }\n\n updateMandatoryProps(group, axisPointerModel, true);\n\n this._renderHandle(value);\n }\n\n /**\n * @implement\n */\n remove(api: ExtensionAPI) {\n this.clear(api);\n }\n\n /**\n * @implement\n */\n dispose(api: ExtensionAPI) {\n this.clear(api);\n }\n\n /**\n * @protected\n */\n determineAnimation(axisModel: AxisBaseModel, axisPointerModel: AxisPointerModel): boolean {\n const animation = axisPointerModel.get('animation');\n const axis = axisModel.axis;\n const isCategoryAxis = axis.type === 'category';\n const useSnap = axisPointerModel.get('snap');\n\n // Value axis without snap always do not snap.\n if (!useSnap && !isCategoryAxis) {\n return false;\n }\n\n if (animation === 'auto' || animation == null) {\n const animationThreshold = this.animationThreshold;\n if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {\n return true;\n }\n\n // It is important to auto animation when snap used. Consider if there is\n // a dataZoom, animation will be disabled when too many points exist, while\n // it will be enabled for better visual effect when little points exist.\n if (useSnap) {\n const seriesDataCount = axisPointerModelHelper.getAxisInfo(axisModel).seriesDataCount;\n const axisExtent = axis.getExtent();\n // Approximate band width\n return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;\n }\n\n return false;\n }\n\n return animation === true;\n }\n\n /**\n * add {pointer, label, graphicKey} to elOption\n * @protected\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: AxisValue,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n // Shoule be implemenented by sub-class.\n }\n\n /**\n * @protected\n */\n createPointerEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ) {\n const pointerOption = elOption.pointer;\n if (pointerOption) {\n const pointerEl = inner(group).pointerEl = new graphic[pointerOption.type](\n clone(elOption.pointer)\n );\n group.add(pointerEl);\n }\n }\n\n /**\n * @protected\n */\n createLabelEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel\n ) {\n if (elOption.label) {\n const labelEl = inner(group).labelEl = new graphic.Text(\n clone(elOption.label)\n );\n\n group.add(labelEl);\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n }\n\n /**\n * @protected\n */\n updatePointerEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n updateProps: (el: Element, props: PathProps) => void\n ) {\n const pointerEl = inner(group).pointerEl;\n if (pointerEl && elOption.pointer) {\n pointerEl.setStyle(elOption.pointer.style);\n updateProps(pointerEl, {shape: elOption.pointer.shape});\n }\n }\n\n /**\n * @protected\n */\n updateLabelEl(\n group: graphic.Group,\n elOption: AxisPointerElementOptions,\n updateProps: (el: Element, props: PathProps) => void,\n axisPointerModel: AxisPointerModel\n ) {\n const labelEl = inner(group).labelEl;\n if (labelEl) {\n labelEl.setStyle(elOption.label.style);\n updateProps(labelEl, {\n // Consider text length change in vertical axis, animation should\n // be used on shape, otherwise the effect will be weird.\n // TODOTODO\n // shape: elOption.label.shape,\n x: elOption.label.x,\n y: elOption.label.y\n });\n\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n }\n\n /**\n * @private\n */\n _renderHandle(value: AxisValue) {\n if (this._dragging || !this.updateHandleTransform) {\n return;\n }\n\n const axisPointerModel = this._axisPointerModel;\n const zr = this._api.getZr();\n let handle = this._handle;\n const handleModel = axisPointerModel.getModel('handle');\n\n const status = axisPointerModel.get('status');\n if (!handleModel.get('show') || !status || status === 'hide') {\n handle && zr.remove(handle);\n this._handle = null;\n return;\n }\n\n let isInit;\n if (!this._handle) {\n isInit = true;\n handle = this._handle = graphic.createIcon(\n handleModel.get('icon'),\n {\n cursor: 'move',\n draggable: true,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n onmousedown: bind(this._onHandleDragMove, this, 0, 0),\n drift: bind(this._onHandleDragMove, this),\n ondragend: bind(this._onHandleDragEnd, this)\n }\n );\n zr.add(handle);\n }\n\n updateMandatoryProps(handle, axisPointerModel, false);\n\n // update style\n (handle as graphic.Path).setStyle(handleModel.getItemStyle(null, [\n 'color', 'borderColor', 'borderWidth', 'opacity',\n 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'\n ]));\n\n // update position\n let handleSize = handleModel.get('size');\n if (!zrUtil.isArray(handleSize)) {\n handleSize = [handleSize, handleSize];\n }\n handle.scaleX = handleSize[0] / 2;\n handle.scaleY = handleSize[1] / 2;\n\n throttleUtil.createOrUpdate(\n this,\n '_doDispatchAxisPointer',\n handleModel.get('throttle') || 0,\n 'fixRate'\n );\n\n this._moveHandleToValue(value, isInit);\n }\n\n private _moveHandleToValue(value: AxisValue, isInit?: boolean) {\n updateProps(\n this._axisPointerModel,\n !isInit && this._moveAnimation,\n this._handle,\n getHandleTransProps(this.getHandleTransform(\n value, this._axisModel, this._axisPointerModel\n ))\n );\n }\n\n private _onHandleDragMove(dx: number, dy: number) {\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n this._dragging = true;\n\n // Persistent for throttle.\n const trans = this.updateHandleTransform(\n getHandleTransProps(handle),\n [dx, dy],\n this._axisModel,\n this._axisPointerModel\n );\n this._payloadInfo = trans;\n\n handle.stopAnimation();\n (handle as graphic.Path).attr(getHandleTransProps(trans));\n inner(handle).lastProp = null;\n\n this._doDispatchAxisPointer();\n }\n\n /**\n * Throttled method.\n */\n _doDispatchAxisPointer() {\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n const payloadInfo = this._payloadInfo;\n const axisModel = this._axisModel;\n this._api.dispatchAction({\n type: 'updateAxisPointer',\n x: payloadInfo.cursorPoint[0],\n y: payloadInfo.cursorPoint[1],\n tooltipOption: payloadInfo.tooltipOption,\n axesInfo: [{\n axisDim: axisModel.axis.dim,\n axisIndex: axisModel.componentIndex\n }]\n });\n }\n\n private _onHandleDragEnd() {\n this._dragging = false;\n const handle = this._handle;\n if (!handle) {\n return;\n }\n\n const value = this._axisPointerModel.get('value');\n // Consider snap or categroy axis, handle may be not consistent with\n // axisPointer. So move handle to align the exact value position when\n // drag ended.\n this._moveHandleToValue(value);\n\n // For the effect: tooltip will be shown when finger holding on handle\n // button, and will be hidden after finger left handle button.\n this._api.dispatchAction({\n type: 'hideTip'\n });\n }\n\n /**\n * @private\n */\n clear(api: ExtensionAPI) {\n this._lastValue = null;\n this._lastStatus = null;\n\n const zr = api.getZr();\n const group = this._group;\n const handle = this._handle;\n if (zr && group) {\n this._lastGraphicKey = null;\n group && zr.remove(group);\n handle && zr.remove(handle);\n this._group = null;\n this._handle = null;\n this._payloadInfo = null;\n }\n }\n\n /**\n * @protected\n */\n doClear() {\n // Implemented by sub-class if necessary.\n }\n\n buildLabel(xy: number[], wh: number[], xDimIndex: 0 | 1) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n }\n}\n\n\nfunction updateProps(\n animationModel: AxisPointerModel,\n moveAnimation: boolean,\n el: Element,\n props: DisplayableProps\n) {\n // Animation optimize.\n if (!propsEqual(inner(el).lastProp, props)) {\n inner(el).lastProp = props;\n moveAnimation\n ? graphic.updateProps(el, props, animationModel as Model<\n // Ignore animation property\n Pick\n >)\n : (el.stopAnimation(), el.attr(props));\n }\n}\n\nfunction propsEqual(lastProps: any, newProps: any) {\n if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {\n let equals = true;\n zrUtil.each(newProps, function (item, key) {\n equals = equals && propsEqual(lastProps[key], item);\n });\n return !!equals;\n }\n else {\n return lastProps === newProps;\n }\n}\n\nfunction updateLabelShowHide(labelEl: Element, axisPointerModel: AxisPointerModel) {\n labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();\n}\n\nfunction getHandleTransProps(trans: Transform): Transform {\n return {\n x: trans.x || 0,\n y: trans.y || 0,\n rotation: trans.rotation || 0\n };\n}\n\nfunction updateMandatoryProps(\n group: Element,\n axisPointerModel: AxisPointerModel,\n silent?: boolean\n) {\n const z = axisPointerModel.get('z');\n const zlevel = axisPointerModel.get('zlevel');\n\n group && group.traverse(function (el: Displayable) {\n if (el.type !== 'group') {\n z != null && (el.z = z);\n zlevel != null && (el.zlevel = zlevel);\n el.silent = silent;\n }\n });\n}\n\nexport default BaseAxisPointer;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as textContain from 'zrender/src/contain/text';\nimport * as formatUtil from '../../util/format';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as axisHelper from '../../coord/axisHelper';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport Axis from '../../coord/Axis';\nimport {\n ScaleDataValue, CallbackDataParams, ZRTextAlign, ZRTextVerticalAlign, ZRColor, CommonAxisPointerOption, ColorString\n} from '../../util/types';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport GlobalModel from '../../model/Global';\nimport IntervalScale from '../../scale/Interval';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { AxisPointerElementOptions } from './BaseAxisPointer';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport Model from '../../model/Model';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { createTextStyle } from '../../label/labelStyle';\n\ninterface LayoutInfo {\n position: VectorArray\n rotation: number\n labelOffset?: number\n /**\n * 1 | -1\n */\n labelDirection?: number\n labelMargin?: number\n}\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nexport function buildElStyle(axisPointerModel: AxisPointerModel) {\n const axisPointerType = axisPointerModel.get('type');\n const styleModel = axisPointerModel.getModel(axisPointerType + 'Style' as 'lineStyle' | 'shadowStyle');\n let style: PathStyleProps;\n if (axisPointerType === 'line') {\n style = styleModel.getLineStyle();\n style.fill = null;\n }\n else if (axisPointerType === 'shadow') {\n style = styleModel.getAreaStyle();\n style.stroke = null;\n }\n return style;\n}\n\n/**\n * @param {Function} labelPos {align, verticalAlign, position}\n */\nexport function buildLabelElOption(\n elOption: AxisPointerElementOptions,\n axisModel: AxisBaseModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI,\n labelPos: {\n align?: ZRTextAlign\n verticalAlign?: ZRTextVerticalAlign\n position: number[]\n }\n) {\n const value = axisPointerModel.get('value');\n const text = getValueLabel(\n value, axisModel.axis, axisModel.ecModel,\n axisPointerModel.get('seriesDataIndices'),\n {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n }\n );\n const labelModel = axisPointerModel.getModel('label');\n const paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0);\n\n const font = labelModel.getFont();\n const textRect = textContain.getBoundingRect(text, font);\n\n const position = labelPos.position;\n const width = textRect.width + paddings[1] + paddings[3];\n const height = textRect.height + paddings[0] + paddings[2];\n\n // Adjust by align.\n const align = labelPos.align;\n align === 'right' && (position[0] -= width);\n align === 'center' && (position[0] -= width / 2);\n const verticalAlign = labelPos.verticalAlign;\n verticalAlign === 'bottom' && (position[1] -= height);\n verticalAlign === 'middle' && (position[1] -= height / 2);\n\n // Not overflow ec container\n confineInContainer(position, width, height, api);\n\n let bgColor = labelModel.get('backgroundColor') as ZRColor;\n if (!bgColor || bgColor === 'auto') {\n bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']);\n }\n\n elOption.label = {\n // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},\n x: position[0],\n y: position[1],\n style: createTextStyle(labelModel, {\n text: text,\n font: font,\n fill: labelModel.getTextColor(),\n padding: paddings,\n backgroundColor: bgColor as ColorString\n }),\n // Lable should be over axisPointer.\n z2: 10\n };\n}\n\n// Do not overflow ec container\nfunction confineInContainer(position: number[], width: number, height: number, api: ExtensionAPI) {\n const viewWidth = api.getWidth();\n const viewHeight = api.getHeight();\n position[0] = Math.min(position[0] + width, viewWidth) - width;\n position[1] = Math.min(position[1] + height, viewHeight) - height;\n position[0] = Math.max(position[0], 0);\n position[1] = Math.max(position[1], 0);\n}\n\nexport function getValueLabel(\n value: ScaleDataValue,\n axis: Axis,\n ecModel: GlobalModel,\n seriesDataIndices: CommonAxisPointerOption['seriesDataIndices'],\n opt?: {\n precision?: number | 'auto'\n formatter?: CommonAxisPointerOption['label']['formatter']\n }\n): string {\n value = axis.scale.parse(value);\n let text = (axis.scale as IntervalScale).getLabel(\n {\n value\n }, {\n // If `precision` is set, width can be fixed (like '12.00500'), which\n // helps to debounce when when moving label.\n precision: opt.precision\n }\n );\n const formatter = opt.formatter;\n\n if (formatter) {\n const params = {\n value: axisHelper.getAxisRawValue(axis, {value}),\n axisDimension: axis.dim,\n axisIndex: (axis as Axis2D).index, // Only Carteian Axis has index\n seriesData: [] as CallbackDataParams[]\n };\n zrUtil.each(seriesDataIndices, function (idxItem) {\n const series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n const dataIndex = idxItem.dataIndexInside;\n const dataParams = series && series.getDataParams(dataIndex);\n dataParams && params.seriesData.push(dataParams);\n });\n\n if (zrUtil.isString(formatter)) {\n text = formatter.replace('{value}', text);\n }\n else if (zrUtil.isFunction(formatter)) {\n text = formatter(params);\n }\n }\n\n return text;\n}\n\nexport function getTransformedPosition(\n axis: Axis,\n value: ScaleDataValue,\n layoutInfo: LayoutInfo\n): number[] {\n const transform = matrix.create();\n matrix.rotate(transform, transform, layoutInfo.rotation);\n matrix.translate(transform, transform, layoutInfo.position);\n\n return graphic.applyTransform([\n axis.dataToCoord(value),\n (layoutInfo.labelOffset || 0)\n + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)\n ], transform);\n}\n\nexport function buildCartesianSingleLabelElOption(\n value: ScaleDataValue,\n elOption: AxisPointerElementOptions,\n layoutInfo: LayoutInfo,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n) {\n // @ts-ignore\n const textLayout = AxisBuilder.innerTextLayout(\n layoutInfo.rotation, 0, layoutInfo.labelDirection\n );\n layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);\n buildLabelElOption(elOption, axisModel, axisPointerModel, api, {\n position: getTransformedPosition(axisModel.axis, value, layoutInfo),\n align: textLayout.textAlign,\n verticalAlign: textLayout.textVerticalAlign\n });\n}\n\nexport function makeLineShape(p1: number[], p2: number[], xDimIndex?: number) {\n xDimIndex = xDimIndex || 0;\n return {\n x1: p1[xDimIndex],\n y1: p1[1 - xDimIndex],\n x2: p2[xDimIndex],\n y2: p2[1 - xDimIndex]\n };\n}\n\nexport function makeRectShape(xy: number[], wh: number[], xDimIndex?: number) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n}\n\nexport function makeSectorShape(\n cx: number,\n cy: number,\n r0: number,\n r: number,\n startAngle: number,\n endAngle: number\n) {\n return {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: true\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, {AxisPointerElementOptions} from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport CartesianAxisModel from '../../coord/cartesian/AxisModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ScaleDataValue, VerticalAlign, HorizontalAlign, CommonAxisPointerOption } from '../../util/types';\nimport Grid from '../../coord/cartesian/Grid';\nimport Axis2D from '../../coord/cartesian/Axis2D';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass CartesianAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: ScaleDataValue,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n const grid = axis.grid;\n const axisPointerType = axisPointerModel.get('type');\n const otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n const pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));\n\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, pixelValue, otherExtent\n );\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const layoutInfo = cartesianAxisHelper.layout(grid.model, axisModel);\n viewHelper.buildCartesianSingleLabelElOption(\n // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api\n );\n }\n\n /**\n * @override\n */\n getHandleTransform(\n value: ScaleDataValue,\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const layoutInfo = cartesianAxisHelper.layout(axisModel.axis.grid.model, axisModel, {\n labelInside: false\n });\n // @ts-ignore\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n const pos = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: pos[0],\n y: pos[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n }\n\n /**\n * @override\n */\n updateHandleTransform(\n transform: {\n x: number, y: number,\n rotation: number\n },\n delta: number[],\n axisModel: CartesianAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const axis = axisModel.axis;\n const grid = axis.grid;\n const axisExtent = axis.getGlobalExtent(true);\n const otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n const dimIndex = axis.dim === 'x' ? 0 : 1;\n\n const currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n\n const cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n const cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n\n // Make tooltip do not overlap axisPointer and in the middle of the grid.\n const tooltipOptions: {\n verticalAlign?: VerticalAlign\n align?: HorizontalAlign\n }[] = [\n {verticalAlign: 'middle'},\n {align: 'center'}\n ];\n\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: tooltipOptions[dimIndex]\n };\n }\n}\n\nfunction getCartesian(grid: Grid, axis: Axis2D) {\n const opt = {} as {\n xAxisIndex?: number\n yAxisIndex?: number\n };\n opt[axis.dim + 'AxisIndex' as 'xAxisIndex' | 'yAxisIndex'] = axis.index;\n return grid.getCartesian(opt);\n}\n\nconst pointerShapeBuilder = {\n\n line: function (axis: Axis2D, pixelValue: number, otherExtent: number[]): PathProps & { type: 'Line'} {\n const targetShape = viewHelper.makeLineShape(\n [pixelValue, otherExtent[0]],\n [pixelValue, otherExtent[1]],\n getAxisDimIndex(axis)\n );\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n\n shadow: function (axis: Axis2D, pixelValue: number, otherExtent: number[]): PathProps & { type: 'Rect'} {\n const bandWidth = Math.max(1, axis.getBandWidth());\n const span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape(\n [pixelValue - bandWidth / 2, otherExtent[0]],\n [bandWidth, span],\n getAxisDimIndex(axis)\n )\n };\n }\n};\n\nfunction getAxisDimIndex(axis: Axis2D) {\n return axis.dim === 'x' ? 0 : 1;\n}\n\nexport default CartesianAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n ScaleDataValue,\n CommonAxisPointerOption\n} from '../../util/types';\n\ninterface MapperParamAxisInfo {\n axisIndex: number\n axisName: string\n axisId: string\n axisDim: string\n}\n\ninterface AxisPointerLink {\n xAxisIndex?: number[] | 'all'\n yAxisIndex?: number[] | 'all'\n xAxisId?: string[]\n yAxisId?: string[]\n xAxisName?: string[] | string\n yAxisName?: string[] | string\n\n radiusAxisIndex?: number[] | 'all'\n angleAxisIndex?: number[] | 'all'\n radiusAxisId?: string[]\n angleAxisId?: string[]\n radiusAxisName?: string[] | string\n angleAxisName?: string[] | string\n\n singleAxisIndex?: number[] | 'all'\n singleAxisId?: string[]\n singleAxisName?: string[] | string\n\n mapper?(\n sourceVal: ScaleDataValue,\n sourceAxisInfo: MapperParamAxisInfo,\n targetAxisInfo: MapperParamAxisInfo\n ): CommonAxisPointerOption['value'] // TODO: TYPE Should return numeric value or category value?\n}\n\n// TODO: TYPE AxisPointerOption for each axis\nexport interface AxisPointerOption extends ComponentOption, Omit {\n mainType?: 'axisPointer'\n\n type?: 'line' | 'shadow' | 'cross' | 'none'\n\n link?: AxisPointerLink[]\n}\n\n\nclass AxisPointerModel extends ComponentModel {\n\n static type = 'axisPointer' as const;\n type = AxisPointerModel.type;\n\n // Will be injected and read in modelHelper and axisTrigger\n // No need to care about it.\n coordSysAxesInfo: unknown;\n\n static defaultOption: AxisPointerOption = {\n // 'auto' means that show when triggered by tooltip or handle.\n show: 'auto',\n\n zlevel: 0,\n z: 50,\n\n type: 'line', // 'line' 'shadow' 'cross' 'none'.\n // axispointer triggered by tootip determine snap automatically,\n // see `modelHelper`.\n snap: false,\n triggerTooltip: true,\n\n value: null,\n status: null, // Init value depends on whether handle is used.\n\n link: [],\n\n // Do not set 'auto' here, otherwise global animation: false\n // will not effect at this axispointer.\n animation: null,\n animationDurationUpdate: 200,\n\n lineStyle: {\n color: '#B9BEC9',\n width: 1,\n type: 'dashed'\n },\n\n shadowStyle: {\n color: 'rgba(210,219,238,0.2)'\n },\n\n label: {\n show: true,\n formatter: null, // string | Function\n precision: 'auto', // Or a number like 0, 1, 2 ...\n margin: 3,\n color: '#fff',\n padding: [5, 7, 5, 7],\n backgroundColor: 'auto', // default: axis line color\n borderColor: null,\n borderWidth: 0,\n borderRadius: 3\n },\n\n handle: {\n show: false,\n // eslint-disable-next-line\n icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z', // jshint ignore:line\n size: 45,\n // handle margin is from symbol center to axis, which is stable when circular move.\n margin: 50,\n // color: '#1b8bbd'\n // color: '#2f4554'\n color: '#333',\n shadowBlur: 3,\n shadowColor: '#aaa',\n shadowOffsetX: 0,\n shadowOffsetY: 2,\n\n // For mobile performance\n throttle: 40\n }\n };\n}\n\nexport default AxisPointerModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport {makeInner} from '../../util/model';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { ZRElementEvent } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\n\ntype DispatchActionMethod = ExtensionAPI['dispatchAction'];\n\ntype Handler = (\n currTrigger: 'click' | 'mousemove' | 'leave',\n event: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) => void;\n\ninterface Record {\n handler: Handler\n}\n\ninterface InnerStore {\n initialized: boolean\n records: Dictionary\n}\n\ninterface ShowTipPayload {\n type: 'showTip'\n dispatchAction: DispatchActionMethod\n}\n\ninterface HideTipPayload {\n type: 'hideTip'\n dispatchAction: DispatchActionMethod\n}\ninterface Pendings {\n showTip: ShowTipPayload[]\n hideTip: HideTipPayload[]\n}\n\nconst inner = makeInner();\nconst each = zrUtil.each;\n\n/**\n * @param {string} key\n * @param {module:echarts/ExtensionAPI} api\n * @param {Function} handler\n * param: {string} currTrigger\n * param: {Array.} point\n */\nexport function register(key: string, api: ExtensionAPI, handler?: Handler) {\n if (env.node) {\n return;\n }\n\n const zr = api.getZr();\n inner(zr).records || (inner(zr).records = {});\n\n initGlobalListeners(zr, api);\n\n const record = inner(zr).records[key] || (inner(zr).records[key] = {} as Record);\n record.handler = handler;\n}\n\nfunction initGlobalListeners(zr: ZRenderType, api?: ExtensionAPI) {\n if (inner(zr).initialized) {\n return;\n }\n\n inner(zr).initialized = true;\n\n useHandler('click', zrUtil.curry(doEnter, 'click'));\n useHandler('mousemove', zrUtil.curry(doEnter, 'mousemove'));\n // useHandler('mouseout', onLeave);\n useHandler('globalout', onLeave);\n\n function useHandler(\n eventType: string,\n cb: (record: Record, e: ZRElementEvent, dispatchAction: DispatchActionMethod) => void\n ) {\n zr.on(eventType, function (e: ZRElementEvent) {\n const dis = makeDispatchAction(api);\n\n each(inner(zr).records, function (record) {\n record && cb(record, e, dis.dispatchAction);\n });\n\n dispatchTooltipFinally(dis.pendings, api);\n });\n }\n}\n\nfunction dispatchTooltipFinally(pendings: Pendings, api: ExtensionAPI) {\n const showLen = pendings.showTip.length;\n const hideLen = pendings.hideTip.length;\n\n let actuallyPayload;\n if (showLen) {\n actuallyPayload = pendings.showTip[showLen - 1];\n }\n else if (hideLen) {\n actuallyPayload = pendings.hideTip[hideLen - 1];\n }\n if (actuallyPayload) {\n actuallyPayload.dispatchAction = null;\n api.dispatchAction(actuallyPayload);\n }\n}\n\nfunction onLeave(\n record: Record,\n e: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) {\n record.handler('leave', null, dispatchAction);\n}\n\nfunction doEnter(\n currTrigger: 'click' | 'mousemove' | 'leave',\n record: Record,\n e: ZRElementEvent,\n dispatchAction: DispatchActionMethod\n) {\n record.handler(currTrigger, e, dispatchAction);\n}\n\nfunction makeDispatchAction(api: ExtensionAPI) {\n const pendings: Pendings = {\n showTip: [],\n hideTip: []\n };\n // FIXME\n // better approach?\n // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,\n // which may be conflict, (axisPointer call showTip but tooltip call hideTip);\n // So we have to add \"final stage\" to merge those dispatched actions.\n const dispatchAction = function (payload: ShowTipPayload | HideTipPayload) {\n const pendingList = pendings[payload.type];\n if (pendingList) {\n (pendingList as ShowTipPayload[]).push(payload as ShowTipPayload);\n }\n else {\n payload.dispatchAction = dispatchAction;\n api.dispatchAction(payload);\n }\n };\n\n return {\n dispatchAction: dispatchAction,\n pendings: pendings\n };\n}\n\nexport function unregister(key: string, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n const zr = api.getZr();\n const record = (inner(zr).records || {})[key];\n if (record) {\n inner(zr).records[key] = null;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as globalListener from './globalListener';\nimport ComponentView from '../../view/Component';\nimport AxisPointerModel from './AxisPointerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TooltipModel from '../tooltip/TooltipModel';\n\nclass AxisPointerView extends ComponentView {\n static type = 'axisPointer' as const;\n type = AxisPointerView.type;\n\n render(globalAxisPointerModel: AxisPointerModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const globalTooltipModel = ecModel.getComponent('tooltip') as TooltipModel;\n const triggerOn = globalAxisPointerModel.get('triggerOn')\n || (globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click');\n\n // Register global listener in AxisPointerView to enable\n // AxisPointerView to be independent to Tooltip.\n globalListener.register(\n 'axisPointer',\n api,\n function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none'\n && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)\n ) {\n dispatchAction({\n type: 'updateAxisPointer',\n currTrigger: currTrigger,\n x: e && e.offsetX,\n y: e && e.offsetY\n });\n }\n }\n );\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n globalListener.unregister('axisPointer', api);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n globalListener.unregister('axisPointer', api);\n }\n}\n\nexport default AxisPointerView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as modelUtil from '../../util/model';\nimport GlobalModel from '../../model/Global';\nimport Element from 'zrender/src/Element';\nimport { Payload } from '../../util/types';\n\n/**\n * @param finder contains {seriesIndex, dataIndex, dataIndexInside}\n * @param ecModel\n * @return {point: [x, y], el: ...} point Will not be null.\n */\nexport default function findPointFromSeries(finder: {\n seriesIndex?: number\n dataIndex?: number | number[]\n dataIndexInside?: number | number[]\n name?: string | string[]\n isStacked?: boolean\n}, ecModel: GlobalModel): {\n point: number[]\n el?: Element\n} {\n let point: number[] = [];\n const seriesIndex = finder.seriesIndex;\n let seriesModel;\n if (seriesIndex == null || !(\n seriesModel = ecModel.getSeriesByIndex(seriesIndex)\n )) {\n return {\n point: []\n };\n }\n\n const data = seriesModel.getData();\n const dataIndex = modelUtil.queryDataIndex(data, finder as Payload);\n if (dataIndex == null || dataIndex < 0 || zrUtil.isArray(dataIndex)) {\n return {point: []};\n }\n\n const el = data.getItemGraphicEl(dataIndex);\n const coordSys = seriesModel.coordinateSystem;\n\n if (seriesModel.getTooltipPosition) {\n point = seriesModel.getTooltipPosition(dataIndex) || [];\n }\n else if (coordSys && coordSys.dataToPoint) {\n if (finder.isStacked) {\n const baseAxis = coordSys.getBaseAxis();\n const valueAxis = coordSys.getOtherAxis(baseAxis as any);\n const valueAxisDim = valueAxis.dim;\n const baseAxisDim = baseAxis.dim;\n const baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n const baseDim = data.mapDimension(baseAxisDim);\n const stackedData = [];\n stackedData[baseDataOffset] = data.get(baseDim, dataIndex);\n stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex);\n point = coordSys.dataToPoint(stackedData) || [];\n }\n else {\n point = coordSys.dataToPoint(\n data.getValues(\n zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex\n )\n ) || [];\n }\n }\n else if (el) {\n // Use graphic bounding rect\n const rect = el.getBoundingRect().clone();\n rect.applyTransform(el.transform);\n point = [\n rect.x + rect.width / 2,\n rect.y + rect.height / 2\n ];\n }\n\n return {point: point, el: el};\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {makeInner, ModelFinderObject} from '../../util/model';\nimport * as modelHelper from './modelHelper';\nimport findPointFromSeries from './findPointFromSeries';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary, Payload, CommonAxisPointerOption, HighlightPayload, DownplayPayload } from '../../util/types';\nimport AxisPointerModel, { AxisPointerOption } from './AxisPointerModel';\nimport { each, curry, bind, extend, Curry1 } from 'zrender/src/core/util';\nimport { ZRenderType } from 'zrender/src/zrender';\n\nconst inner = makeInner<{\n axisPointerLastHighlights: Dictionary\n}, ZRenderType>();\n\ntype AxisValue = CommonAxisPointerOption['value'];\n\ninterface DataIndex {\n seriesIndex: number\n dataIndex: number\n dataIndexInside: number\n}\n\ntype BatchItem = DataIndex;\n\nexport interface DataByAxis {\n // TODO: TYPE Value type\n value: string | number\n axisIndex: number\n axisDim: string\n axisType: string\n axisId: string\n\n seriesDataIndices: DataIndex[]\n\n valueLabelOpt: {\n precision: AxisPointerOption['label']['precision']\n formatter: AxisPointerOption['label']['formatter']\n }\n}\nexport interface DataByCoordSys {\n coordSysId: string\n coordSysIndex: number\n coordSysType: string\n coordSysMainType: string\n dataByAxis: DataByAxis[]\n}\ninterface DataByCoordSysCollection {\n list: DataByCoordSys[]\n map: Dictionary\n}\n\ntype CollectedCoordInfo = ReturnType;\ntype CollectedAxisInfo = CollectedCoordInfo['axesInfo'][string];\n\ninterface AxisTriggerPayload extends Payload {\n currTrigger?: 'click' | 'mousemove' | 'leave'\n /**\n * x and y, which are mandatory, specify a point to trigger axisPointer and tooltip.\n */\n x?: number\n /**\n * x and y, which are mandatory, specify a point to trigger axisPointer and tooltip.\n */\n y?: number\n /**\n * finder, optional, restrict target axes.\n */\n seriesIndex?: number\n dataIndex: number\n\n axesInfo?: {\n // 'x'|'y'|'angle'\n axisDim?: string\n axisIndex?: number\n value?: AxisValue\n }[]\n\n dispatchAction: ExtensionAPI['dispatchAction']\n}\n\ntype ShowValueMap = Dictionary<{\n value: AxisValue\n payloadBatch: BatchItem[]\n}>;\n\n/**\n * Basic logic: check all axis, if they do not demand show/highlight,\n * then hide/downplay them.\n *\n * @return content of event obj for echarts.connect.\n */\nexport default function axisTrigger(\n payload: AxisTriggerPayload,\n ecModel: GlobalModel,\n api: ExtensionAPI\n) {\n const currTrigger = payload.currTrigger;\n let point = [payload.x, payload.y];\n const finder = payload;\n const dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api);\n const coordSysAxesInfo = (ecModel.getComponent('axisPointer') as AxisPointerModel)\n .coordSysAxesInfo as CollectedCoordInfo;\n\n // Pending\n // See #6121. But we are not able to reproduce it yet.\n if (!coordSysAxesInfo) {\n return;\n }\n\n if (illegalPoint(point)) {\n // Used in the default behavior of `connection`: use the sample seriesIndex\n // and dataIndex. And also used in the tooltipView trigger.\n point = findPointFromSeries({\n seriesIndex: finder.seriesIndex,\n // Do not use dataIndexInside from other ec instance.\n // FIXME: auto detect it?\n dataIndex: finder.dataIndex\n }, ecModel).point;\n }\n const isIllegalPoint = illegalPoint(point);\n\n // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).\n // Notice: In this case, it is difficult to get the `point` (which is necessary to show\n // tooltip, so if point is not given, we just use the point found by sample seriesIndex\n // and dataIndex.\n const inputAxesInfo = finder.axesInfo;\n\n const axesInfo = coordSysAxesInfo.axesInfo;\n const shouldHide = currTrigger === 'leave' || illegalPoint(point);\n const outputPayload = {} as AxisTriggerPayload;\n\n const showValueMap: ShowValueMap = {};\n const dataByCoordSys: DataByCoordSysCollection = {\n list: [],\n map: {}\n };\n const updaters = {\n showPointer: curry(showPointer, showValueMap),\n showTooltip: curry(showTooltip, dataByCoordSys)\n };\n\n // Process for triggered axes.\n each(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {\n // If a point given, it must be contained by the coordinate system.\n const coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);\n\n each(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {\n const axis = axisInfo.axis;\n const inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo);\n // If no inputAxesInfo, no axis is restricted.\n if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {\n let val = inputAxisInfo && inputAxisInfo.value;\n if (val == null && !isIllegalPoint) {\n val = axis.pointToData(point);\n }\n val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload);\n }\n });\n });\n\n // Process for linked axes.\n const linkTriggers: Dictionary = {};\n each(axesInfo, function (tarAxisInfo, tarKey) {\n const linkGroup = tarAxisInfo.linkGroup;\n\n // If axis has been triggered in the previous stage, it should not be triggered by link.\n if (linkGroup && !showValueMap[tarKey]) {\n each(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {\n const srcValItem = showValueMap[srcKey];\n // If srcValItem exist, source axis is triggered, so link to target axis.\n if (srcAxisInfo !== tarAxisInfo && srcValItem) {\n let val = srcValItem.value;\n linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(\n val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo)\n )));\n linkTriggers[tarAxisInfo.key] = val;\n }\n });\n }\n });\n each(linkTriggers, function (val, tarKey) {\n processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);\n });\n\n updateModelActually(showValueMap, axesInfo, outputPayload);\n dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);\n dispatchHighDownActually(axesInfo, dispatchAction, api);\n\n return outputPayload;\n}\n\nfunction processOnAxis(\n axisInfo: CollectedCoordInfo['axesInfo'][string],\n newValue: AxisValue,\n updaters: {\n showPointer: Curry1\n showTooltip: Curry1\n },\n noSnap: boolean,\n outputFinder: ModelFinderObject\n) {\n const axis = axisInfo.axis;\n\n if (axis.scale.isBlank() || !axis.containData(newValue)) {\n return;\n }\n\n if (!axisInfo.involveSeries) {\n updaters.showPointer(axisInfo, newValue);\n return;\n }\n\n // Heavy calculation. So put it after axis.containData checking.\n const payloadInfo = buildPayloadsBySeries(newValue, axisInfo);\n const payloadBatch = payloadInfo.payloadBatch;\n const snapToValue = payloadInfo.snapToValue;\n\n // Fill content of event obj for echarts.connect.\n // By default use the first involved series data as a sample to connect.\n if (payloadBatch[0] && outputFinder.seriesIndex == null) {\n extend(outputFinder, payloadBatch[0]);\n }\n\n // If no linkSource input, this process is for collecting link\n // target, where snap should not be accepted.\n if (!noSnap && axisInfo.snap) {\n if (axis.containData(snapToValue) && snapToValue != null) {\n newValue = snapToValue;\n }\n }\n\n updaters.showPointer(axisInfo, newValue, payloadBatch);\n // Tooltip should always be snapToValue, otherwise there will be\n // incorrect \"axis value ~ series value\" mapping displayed in tooltip.\n updaters.showTooltip(axisInfo, payloadInfo, snapToValue);\n}\n\nfunction buildPayloadsBySeries(value: AxisValue, axisInfo: CollectedAxisInfo) {\n const axis = axisInfo.axis;\n const dim = axis.dim;\n let snapToValue = value;\n const payloadBatch: BatchItem[] = [];\n let minDist = Number.MAX_VALUE;\n let minDiff = -1;\n\n each(axisInfo.seriesModels, function (series, idx) {\n const dataDim = series.getData().mapDimensionsAll(dim);\n let seriesNestestValue;\n let dataIndices;\n\n if (series.getAxisTooltipData) {\n const result = series.getAxisTooltipData(dataDim, value, axis);\n dataIndices = result.dataIndices;\n seriesNestestValue = result.nestestValue;\n }\n else {\n dataIndices = series.getData().indicesOfNearest(\n dataDim[0],\n value as number,\n // Add a threshold to avoid find the wrong dataIndex\n // when data length is not same.\n // false,\n axis.type === 'category' ? 0.5 : null\n );\n if (!dataIndices.length) {\n return;\n }\n seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);\n }\n\n if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {\n return;\n }\n\n const diff = value as number - seriesNestestValue;\n const dist = Math.abs(diff);\n // Consider category case\n if (dist <= minDist) {\n if (dist < minDist || (diff >= 0 && minDiff < 0)) {\n minDist = dist;\n minDiff = diff;\n snapToValue = seriesNestestValue;\n payloadBatch.length = 0;\n }\n each(dataIndices, function (dataIndex) {\n payloadBatch.push({\n seriesIndex: series.seriesIndex,\n dataIndexInside: dataIndex,\n dataIndex: series.getData().getRawIndex(dataIndex)\n });\n });\n }\n });\n\n return {\n payloadBatch: payloadBatch,\n snapToValue: snapToValue\n };\n}\n\nfunction showPointer(\n showValueMap: ShowValueMap,\n axisInfo: CollectedAxisInfo,\n value: AxisValue,\n payloadBatch?: BatchItem[]\n) {\n showValueMap[axisInfo.key] = {\n value: value,\n payloadBatch: payloadBatch\n };\n}\n\nfunction showTooltip(\n dataByCoordSys: DataByCoordSysCollection,\n axisInfo: CollectedCoordInfo['axesInfo'][string],\n payloadInfo: { payloadBatch: BatchItem[] },\n value: AxisValue\n) {\n const payloadBatch = payloadInfo.payloadBatch;\n const axis = axisInfo.axis;\n const axisModel = axis.model;\n const axisPointerModel = axisInfo.axisPointerModel;\n\n // If no data, do not create anything in dataByCoordSys,\n // whose length will be used to judge whether dispatch action.\n if (!axisInfo.triggerTooltip || !payloadBatch.length) {\n return;\n }\n\n const coordSysModel = axisInfo.coordSys.model;\n const coordSysKey = modelHelper.makeKey(coordSysModel);\n let coordSysItem = dataByCoordSys.map[coordSysKey];\n if (!coordSysItem) {\n coordSysItem = dataByCoordSys.map[coordSysKey] = {\n coordSysId: coordSysModel.id,\n coordSysIndex: coordSysModel.componentIndex,\n coordSysType: coordSysModel.type,\n coordSysMainType: coordSysModel.mainType,\n dataByAxis: []\n };\n dataByCoordSys.list.push(coordSysItem);\n }\n\n coordSysItem.dataByAxis.push({\n axisDim: axis.dim,\n axisIndex: axisModel.componentIndex,\n axisType: axisModel.type,\n axisId: axisModel.id,\n value: value as number,\n // Caustion: viewHelper.getValueLabel is actually on \"view stage\", which\n // depends that all models have been updated. So it should not be performed\n // here. Considering axisPointerModel used here is volatile, which is hard\n // to be retrieve in TooltipView, we prepare parameters here.\n valueLabelOpt: {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n },\n seriesDataIndices: payloadBatch.slice()\n });\n}\n\nfunction updateModelActually(\n showValueMap: ShowValueMap,\n axesInfo: Dictionary,\n outputPayload: AxisTriggerPayload\n) {\n const outputAxesInfo: AxisTriggerPayload['axesInfo'] = outputPayload.axesInfo = [];\n // Basic logic: If no 'show' required, 'hide' this axisPointer.\n each(axesInfo, function (axisInfo, key) {\n const option = axisInfo.axisPointerModel.option;\n const valItem = showValueMap[key];\n\n if (valItem) {\n !axisInfo.useHandle && (option.status = 'show');\n option.value = valItem.value;\n // For label formatter param and highlight.\n option.seriesDataIndices = (valItem.payloadBatch || []).slice();\n }\n // When always show (e.g., handle used), remain\n // original value and status.\n else {\n // If hide, value still need to be set, consider\n // click legend to toggle axis blank.\n !axisInfo.useHandle && (option.status = 'hide');\n }\n\n // If status is 'hide', should be no info in payload.\n option.status === 'show' && outputAxesInfo.push({\n axisDim: axisInfo.axis.dim,\n axisIndex: axisInfo.axis.model.componentIndex,\n value: option.value\n });\n });\n}\n\nfunction dispatchTooltipActually(\n dataByCoordSys: DataByCoordSysCollection,\n point: number[],\n payload: AxisTriggerPayload,\n dispatchAction: ExtensionAPI['dispatchAction']\n) {\n // Basic logic: If no showTip required, hideTip will be dispatched.\n if (illegalPoint(point) || !dataByCoordSys.list.length) {\n dispatchAction({type: 'hideTip'});\n return;\n }\n\n // In most case only one axis (or event one series is used). It is\n // convinient to fetch payload.seriesIndex and payload.dataIndex\n // dirtectly. So put the first seriesIndex and dataIndex of the first\n // axis on the payload.\n const sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {} as DataIndex;\n\n dispatchAction({\n type: 'showTip',\n escapeConnect: true,\n x: point[0],\n y: point[1],\n tooltipOption: payload.tooltipOption,\n position: payload.position,\n dataIndexInside: sampleItem.dataIndexInside,\n dataIndex: sampleItem.dataIndex,\n seriesIndex: sampleItem.seriesIndex,\n dataByCoordSys: dataByCoordSys.list\n });\n}\n\nfunction dispatchHighDownActually(\n axesInfo: Dictionary,\n dispatchAction: ExtensionAPI['dispatchAction'],\n api: ExtensionAPI\n) {\n // FIXME\n // highlight status modification shoule be a stage of main process?\n // (Consider confilct (e.g., legend and axisPointer) and setOption)\n\n const zr = api.getZr();\n const highDownKey = 'axisPointerLastHighlights' as const;\n const lastHighlights = inner(zr)[highDownKey] || {};\n const newHighlights: Dictionary = inner(zr)[highDownKey] = {};\n\n // Update highlight/downplay status according to axisPointer model.\n // Build hash map and remove duplicate incidentally.\n each(axesInfo, function (axisInfo, key) {\n const option = axisInfo.axisPointerModel.option;\n option.status === 'show' && each(option.seriesDataIndices, function (batchItem) {\n const key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;\n newHighlights[key] = batchItem;\n });\n });\n\n // Diff.\n const toHighlight: BatchItem[] = [];\n const toDownplay: BatchItem[] = [];\n each(lastHighlights, function (batchItem, key) {\n !newHighlights[key] && toDownplay.push(batchItem);\n });\n each(newHighlights, function (batchItem, key) {\n !lastHighlights[key] && toHighlight.push(batchItem);\n });\n\n toDownplay.length && api.dispatchAction({\n type: 'downplay',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toDownplay\n } as DownplayPayload);\n toHighlight.length && api.dispatchAction({\n type: 'highlight',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toHighlight\n } as HighlightPayload);\n}\n\nfunction findInputAxisInfo(\n inputAxesInfo: AxisTriggerPayload['axesInfo'],\n axisInfo: CollectedAxisInfo\n) {\n for (let i = 0; i < (inputAxesInfo || []).length; i++) {\n const inputAxisInfo = inputAxesInfo[i];\n if (axisInfo.axis.dim === inputAxisInfo.axisDim\n && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex\n ) {\n return inputAxisInfo;\n }\n }\n}\n\nfunction makeMapperParam(axisInfo: CollectedAxisInfo) {\n const axisModel = axisInfo.axis.model;\n const item = {} as {\n axisDim: string\n axisIndex: number\n axisId: string\n axisName: string\n // TODO `dim`AxisIndex, `dim`AxisName, `dim`AxisId?\n };\n const dim = item.axisDim = axisInfo.axis.dim;\n item.axisIndex = (item as any)[dim + 'AxisIndex'] = axisModel.componentIndex;\n item.axisName = (item as any)[dim + 'AxisName'] = axisModel.name;\n item.axisId = (item as any)[dim + 'AxisId'] = axisModel.id;\n return item;\n}\n\nfunction illegalPoint(point?: number[]) {\n return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport CartesianAxisPointer from './CartesianAxisPointer';\nimport AxisPointerModel from './AxisPointerModel';\nimport AxisPointerView from './AxisPointerView';\nimport { isArray } from 'zrender/src/core/util';\nimport { collect } from './modelHelper';\nimport axisTrigger from './axisTrigger';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n // CartesianAxisPointer is not supposed to be required here. But consider\n // echarts.simple.js and online build tooltip, which only require gridSimple,\n // CartesianAxisPointer should be able to required somewhere.\n AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer);\n\n registers.registerComponentModel(AxisPointerModel);\n registers.registerComponentView(AxisPointerView);\n\n registers.registerPreprocessor(function (option) {\n // Always has a global axisPointerModel for default setting.\n if (option) {\n (!option.axisPointer || (option.axisPointer as []).length === 0)\n && (option.axisPointer = {});\n\n const link = (option.axisPointer as any).link;\n // Normalize to array to avoid object mergin. But if link\n // is not set, remain null/undefined, otherwise it will\n // override existent link setting.\n if (link && !isArray(link)) {\n (option.axisPointer as any).link = [link];\n }\n }\n });\n\n // This process should proformed after coordinate systems created\n // and series data processed. So put it on statistic processing stage.\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {\n // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n // allAxesInfo should be updated when setOption performed.\n (ecModel.getComponent('axisPointer') as AxisPointerModel).coordSysAxesInfo =\n collect(ecModel, api);\n });\n\n // Broadcast to all views.\n registers.registerAction({\n type: 'updateAxisPointer',\n event: 'updateAxisPointer',\n update: ':updateAxisPointer'\n }, axisTrigger);\n\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {install as installSimple} from './installSimple';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installSimple);\n use(installAxisPointer);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport * as graphic from '../../util/graphic';\nimport * as viewHelper from './viewHelper';\nimport * as matrix from 'zrender/src/core/matrix';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport {\n OptionDataValue,\n ScaleDataValue,\n CommonAxisPointerOption,\n ZRTextAlign,\n ZRTextVerticalAlign\n} from '../../util/types';\nimport { PolarAxisModel } from '../../coord/polar/AxisModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Polar from '../../coord/polar/Polar';\nimport AngleAxis from '../../coord/polar/AngleAxis';\nimport RadiusAxis from '../../coord/polar/RadiusAxis';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport Model from '../../model/Model';\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass PolarAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: OptionDataValue,\n axisModel: PolarAxisModel,\n axisPointerModel: Model,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n\n if (axis.dim === 'angle') {\n this.animationThreshold = Math.PI / 18;\n }\n\n const polar = axis.polar;\n const otherAxis = polar.getOtherAxis(axis);\n const otherExtent = otherAxis.getExtent();\n\n const coordValue = axis.dataToCoord(value);\n\n const axisPointerType = axisPointerModel.get('type');\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, polar, coordValue, otherExtent\n );\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const labelMargin = axisPointerModel.get(['label', 'margin']);\n const labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);\n viewHelper.buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);\n }\n\n // Do not support handle, utill any user requires it.\n\n};\n\nfunction getLabelPosition(\n value: ScaleDataValue,\n axisModel: PolarAxisModel,\n axisPointerModel: AxisPointerModel,\n polar: Polar,\n labelMargin: number\n) {\n const axis = axisModel.axis;\n const coord = axis.dataToCoord(value);\n let axisAngle = polar.getAngleAxis().getExtent()[0];\n axisAngle = axisAngle / 180 * Math.PI;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n let position;\n let align: ZRTextAlign;\n let verticalAlign: ZRTextVerticalAlign;\n\n if (axis.dim === 'radius') {\n const transform = matrix.create();\n matrix.rotate(transform, transform, axisAngle);\n matrix.translate(transform, transform, [polar.cx, polar.cy]);\n position = graphic.applyTransform([coord, -labelMargin], transform);\n\n const labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0;\n // @ts-ignore\n const labelLayout = AxisBuilder.innerTextLayout(\n axisAngle, labelRotation * Math.PI / 180, -1\n );\n align = labelLayout.textAlign;\n verticalAlign = labelLayout.textVerticalAlign;\n }\n else { // angle axis\n const r = radiusExtent[1];\n position = polar.coordToPoint([r + labelMargin, coord]);\n const cx = polar.cx;\n const cy = polar.cy;\n align = Math.abs(position[0] - cx) / r < 0.3\n ? 'center' : (position[0] > cx ? 'left' : 'right');\n verticalAlign = Math.abs(position[1] - cy) / r < 0.3\n ? 'middle' : (position[1] > cy ? 'top' : 'bottom');\n }\n\n return {\n position: position,\n align: align,\n verticalAlign: verticalAlign\n };\n}\n\n\nconst pointerShapeBuilder = {\n\n line: function (\n axis: AngleAxis | RadiusAxis,\n polar: Polar,\n coordValue: number,\n otherExtent: number[]\n ): PathProps & { type: 'Line' | 'Circle' } {\n return axis.dim === 'angle'\n ? {\n type: 'Line',\n shape: viewHelper.makeLineShape(\n polar.coordToPoint([otherExtent[0], coordValue]),\n polar.coordToPoint([otherExtent[1], coordValue])\n )\n }\n : {\n type: 'Circle',\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: coordValue\n }\n };\n },\n\n shadow: function (\n axis: AngleAxis | RadiusAxis,\n polar: Polar,\n coordValue: number,\n otherExtent: number[]\n ): PathProps & { type: 'Sector' } {\n const bandWidth = Math.max(1, axis.getBandWidth());\n const radian = Math.PI / 180;\n\n return axis.dim === 'angle'\n ? {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(\n polar.cx, polar.cy,\n otherExtent[0], otherExtent[1],\n // In ECharts y is negative if angle is positive\n (-coordValue - bandWidth / 2) * radian,\n (-coordValue + bandWidth / 2) * radian\n )\n }\n : {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(\n polar.cx, polar.cy,\n coordValue - bandWidth / 2,\n coordValue + bandWidth / 2,\n 0, Math.PI * 2\n )\n };\n }\n};\n\nexport default PolarAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { ComponentOption, CircleLayoutOptionMixin } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Polar from './Polar';\nimport { AngleAxisModel, RadiusAxisModel } from './AxisModel';\n\nexport interface PolarOption extends ComponentOption, CircleLayoutOptionMixin {\n mainType?: 'polar';\n}\n\nclass PolarModel extends ComponentModel {\n static type = 'polar' as const;\n type = PolarModel.type;\n\n static dependencies = ['radiusAxis', 'angleAxis'];\n\n coordinateSystem: Polar;\n\n findAxisModel(axisType: 'angleAxis'): AngleAxisModel\n findAxisModel(axisType: 'radiusAxis'): RadiusAxisModel\n findAxisModel(axisType: 'angleAxis' | 'radiusAxis'): AngleAxisModel | RadiusAxisModel {\n let foundAxisModel;\n const ecModel = this.ecModel;\n\n ecModel.eachComponent(axisType, function (this: PolarModel, axisModel: AngleAxisModel | RadiusAxisModel) {\n if (axisModel.getCoordSysModel() === this) {\n foundAxisModel = axisModel;\n }\n }, this);\n return foundAxisModel;\n }\n\n static defaultOption: PolarOption = {\n\n zlevel: 0,\n\n z: 0,\n\n center: ['50%', '50%'],\n\n radius: '80%'\n };\n}\n\nexport default PolarModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport AngleAxis from './AngleAxis';\nimport RadiusAxis from './RadiusAxis';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nexport interface AngleAxisOption extends AxisBaseOption {\n mainType?: 'angleAxis';\n /**\n * Index of host polar component\n */\n polarIndex?: number;\n /**\n * Id of host polar component\n */\n polarId?: string;\n\n startAngle?: number;\n clockwise?: boolean;\n\n splitNumber?: number;\n\n axisLabel?: AxisBaseOption['axisLabel']\n}\n\nexport interface RadiusAxisOption extends AxisBaseOption {\n mainType?: 'radiusAxis';\n /**\n * Index of host polar component\n */\n polarIndex?: number;\n /**\n * Id of host polar component\n */\n polarId?: string;\n}\n\ntype PolarAxisOption = AngleAxisOption | RadiusAxisOption;\n\nclass PolarAxisModel extends ComponentModel\n implements AxisBaseModel {\n static type = 'polarAxis';\n\n axis: AngleAxis | RadiusAxis;\n\n getCoordSysModel(): ComponentModel {\n return this.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n }\n}\n\ninterface PolarAxisModel\n extends AxisModelCommonMixin, AxisModelExtendedInCreator {}\n\nzrUtil.mixin(PolarAxisModel, AxisModelCommonMixin);\n\nexport {PolarAxisModel};\n\nexport class AngleAxisModel extends PolarAxisModel {\n static type = 'angleAxis';\n type = AngleAxisModel.type;\n axis: AngleAxis;\n}\nexport class RadiusAxisModel extends PolarAxisModel {\n static type = 'radiusAxis';\n type = RadiusAxisModel.type;\n axis: RadiusAxis;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport Polar from './Polar';\nimport { RadiusAxisModel } from './AxisModel';\n\ninterface RadiusAxis {\n dataToRadius: Axis['dataToCoord']\n radiusToData: Axis['coordToData']\n}\n\nclass RadiusAxis extends Axis {\n\n polar: Polar;\n\n model: RadiusAxisModel;\n\n constructor(scale?: Scale, radiusExtent?: [number, number]) {\n super('radius', scale, radiusExtent);\n }\n\n pointToData(point: number[], clamp?: boolean) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n }\n}\n\nRadiusAxis.prototype.dataToRadius = Axis.prototype.dataToCoord;\n\nRadiusAxis.prototype.radiusToData = Axis.prototype.coordToData;\n\nexport default RadiusAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as textContain from 'zrender/src/contain/text';\nimport Axis from '../Axis';\nimport {makeInner} from '../../util/model';\nimport Scale from '../../scale/Scale';\nimport OrdinalScale from '../../scale/Ordinal';\nimport Polar from './Polar';\nimport { AngleAxisModel } from './AxisModel';\n\nconst inner = makeInner<{\n lastAutoInterval: number\n lastTickCount: number\n}, AngleAxisModel>();\n\ninterface AngleAxis {\n dataToAngle: Axis['dataToCoord']\n angleToData: Axis['coordToData']\n}\nclass AngleAxis extends Axis {\n\n polar: Polar;\n\n model: AngleAxisModel;\n\n constructor(scale?: Scale, angleExtent?: [number, number]) {\n super('angle', scale, angleExtent || [0, 360]);\n }\n\n pointToData(point: number[], clamp?: boolean) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n }\n\n /**\n * Only be called in category axis.\n * Angle axis uses text height to decide interval\n *\n * @override\n * @return {number} Auto interval for cateogry axis tick and label\n */\n calculateCategoryInterval() {\n const axis = this;\n const labelModel = axis.getLabelModel();\n\n const ordinalScale = axis.scale as OrdinalScale;\n const ordinalExtent = ordinalScale.getExtent();\n // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n const tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n const tickValue = ordinalExtent[0];\n const unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n const unitH = Math.abs(unitSpan);\n\n // Not precise, just use height as text width\n // and each distance from axis line yet.\n const rect = textContain.getBoundingRect(\n tickValue == null ? '' : tickValue + '',\n labelModel.getFont(),\n 'center',\n 'top'\n );\n const maxH = Math.max(rect.height, 7);\n\n let dh = maxH / unitH;\n // 0/0 is NaN, 1/0 is Infinity.\n isNaN(dh) && (dh = Infinity);\n let interval = Math.max(0, Math.floor(dh));\n\n const cache = inner(axis.model);\n const lastAutoInterval = cache.lastAutoInterval;\n const lastTickCount = cache.lastTickCount;\n\n // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n if (lastAutoInterval != null\n && lastTickCount != null\n && Math.abs(lastAutoInterval - interval) <= 1\n && Math.abs(lastTickCount - tickCount) <= 1\n // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval\n ) {\n interval = lastAutoInterval;\n }\n // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n }\n\n return interval;\n }\n}\n\nAngleAxis.prototype.dataToAngle = Axis.prototype.dataToCoord;\n\nAngleAxis.prototype.angleToData = Axis.prototype.coordToData;\n\n\nexport default AngleAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\nimport PolarModel from './PolarModel';\nimport { CoordinateSystem, CoordinateSystemMaster, CoordinateSystemClipArea } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\nexport const polarDimensions = ['radius', 'angle'];\n\ninterface Polar {\n update(ecModel: GlobalModel, api: ExtensionAPI): void\n}\nclass Polar implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly name: string;\n\n readonly dimensions = polarDimensions;\n\n readonly type = 'polar';\n\n /**\n * x of polar center\n */\n cx = 0;\n\n /**\n * y of polar center\n */\n cy = 0;\n\n private _radiusAxis = new RadiusAxis();\n\n private _angleAxis = new AngleAxis();\n\n axisPointerEnabled = true;\n\n model: PolarModel;\n\n constructor(name: string) {\n this.name = name || '';\n\n this._radiusAxis.polar = this._angleAxis.polar = this;\n }\n\n /**\n * If contain coord\n */\n containPoint(point: number[]) {\n const coord = this.pointToCoord(point);\n return this._radiusAxis.contain(coord[0])\n && this._angleAxis.contain(coord[1]);\n }\n\n /**\n * If contain data\n */\n containData(data: number[]) {\n return this._radiusAxis.containData(data[0])\n && this._angleAxis.containData(data[1]);\n }\n\n getAxis(dim: 'radius' | 'angle') {\n const key = ('_' + dim + 'Axis') as '_radiusAxis' | '_angleAxis';\n return this[key];\n }\n\n getAxes() {\n return [this._radiusAxis, this._angleAxis];\n }\n\n /**\n * Get axes by type of scale\n */\n getAxesByScale(scaleType: 'ordinal' | 'interval' | 'time' | 'log') {\n const axes = [];\n const angleAxis = this._angleAxis;\n const radiusAxis = this._radiusAxis;\n angleAxis.scale.type === scaleType && axes.push(angleAxis);\n radiusAxis.scale.type === scaleType && axes.push(radiusAxis);\n\n return axes;\n }\n\n getAngleAxis() {\n return this._angleAxis;\n }\n\n getRadiusAxis() {\n return this._radiusAxis;\n }\n\n getOtherAxis(axis: AngleAxis | RadiusAxis): AngleAxis | RadiusAxis {\n const angleAxis = this._angleAxis;\n return axis === angleAxis ? this._radiusAxis : angleAxis;\n }\n\n /**\n * Base axis will be used on stacking.\n *\n */\n getBaseAxis() {\n return this.getAxesByScale('ordinal')[0]\n || this.getAxesByScale('time')[0]\n || this.getAngleAxis();\n }\n\n getTooltipAxes(dim: 'radius' | 'angle' | 'auto') {\n const baseAxis = (dim != null && dim !== 'auto')\n ? this.getAxis(dim) : this.getBaseAxis();\n return {\n baseAxes: [baseAxis],\n otherAxes: [this.getOtherAxis(baseAxis)]\n };\n }\n\n /**\n * Convert a single data item to (x, y) point.\n * Parameter data is an array which the first element is radius and the second is angle\n */\n dataToPoint(data: ScaleDataValue[], clamp?: boolean) {\n return this.coordToPoint([\n this._radiusAxis.dataToRadius(data[0], clamp),\n this._angleAxis.dataToAngle(data[1], clamp)\n ]);\n }\n\n /**\n * Convert a (x, y) point to data\n */\n pointToData(point: number[], clamp?: boolean) {\n const coord = this.pointToCoord(point);\n return [\n this._radiusAxis.radiusToData(coord[0], clamp),\n this._angleAxis.angleToData(coord[1], clamp)\n ];\n }\n\n /**\n * Convert a (x, y) point to (radius, angle) coord\n */\n pointToCoord(point: number[]) {\n let dx = point[0] - this.cx;\n let dy = point[1] - this.cy;\n const angleAxis = this.getAngleAxis();\n const extent = angleAxis.getExtent();\n let minAngle = Math.min(extent[0], extent[1]);\n let maxAngle = Math.max(extent[0], extent[1]);\n // Fix fixed extent in polarCreator\n // FIXME\n angleAxis.inverse\n ? (minAngle = maxAngle - 360)\n : (maxAngle = minAngle + 360);\n\n const radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n\n let radian = Math.atan2(-dy, dx) / Math.PI * 180;\n\n // move to angleExtent\n const dir = radian < minAngle ? 1 : -1;\n while (radian < minAngle || radian > maxAngle) {\n radian += dir * 360;\n }\n\n return [radius, radian];\n }\n\n /**\n * Convert a (radius, angle) coord to (x, y) point\n */\n coordToPoint(coord: number[]) {\n const radius = coord[0];\n const radian = coord[1] / 180 * Math.PI;\n const x = Math.cos(radian) * radius + this.cx;\n // Inverse the y\n const y = -Math.sin(radian) * radius + this.cy;\n\n return [x, y];\n }\n\n /**\n * Get ring area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n getArea(): PolarArea {\n\n const angleAxis = this.getAngleAxis();\n const radiusAxis = this.getRadiusAxis();\n\n const radiusExtent = radiusAxis.getExtent().slice();\n radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse();\n const angleExtent = angleAxis.getExtent();\n\n const RADIAN = Math.PI / 180;\n\n return {\n cx: this.cx,\n cy: this.cy,\n r0: radiusExtent[0],\n r: radiusExtent[1],\n startAngle: -angleExtent[0] * RADIAN,\n endAngle: -angleExtent[1] * RADIAN,\n clockwise: angleAxis.inverse,\n contain(x: number, y: number) {\n // It's a ring shape.\n // Start angle and end angle don't matter\n const dx = x - this.cx;\n const dy = y - this.cy;\n const d2 = dx * dx + dy * dy;\n const r = this.r;\n const r0 = this.r0;\n\n return d2 <= r * r && d2 >= r0 * r0;\n }\n };\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown) {\n const seriesModel = finder.seriesModel;\n const polarModel = finder.polarModel as PolarModel;\n return polarModel && polarModel.coordinateSystem\n || seriesModel && seriesModel.coordinateSystem as Polar;\n}\n\ninterface PolarArea extends CoordinateSystemClipArea {\n cx: number\n cy: number\n r0: number\n r: number\n startAngle: number\n endAngle: number\n clockwise: boolean\n}\n\nexport default Polar;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Axis scale\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Polar, { polarDimensions } from './Polar';\nimport {parsePercent} from '../../util/number';\nimport {\n createScaleByModel,\n niceScaleExtent,\n getDataDimensionsOnAxis\n} from '../../coord/axisHelper';\n\nimport PolarModel from './PolarModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport OrdinalScale from '../../scale/Ordinal';\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\nimport { PolarAxisModel, AngleAxisModel, RadiusAxisModel } from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n/**\n * Resize method bound to the polar\n */\nfunction resizePolar(polar: Polar, polarModel: PolarModel, api: ExtensionAPI) {\n const center = polarModel.get('center');\n const width = api.getWidth();\n const height = api.getHeight();\n\n polar.cx = parsePercent(center[0], width);\n polar.cy = parsePercent(center[1], height);\n\n const radiusAxis = polar.getRadiusAxis();\n const size = Math.min(width, height) / 2;\n\n let radius = polarModel.get('radius');\n if (radius == null) {\n radius = [0, '100%'];\n }\n else if (!zrUtil.isArray(radius)) {\n // r0 = 0\n radius = [0, radius];\n }\n const parsedRadius = [\n parsePercent(radius[0], size),\n parsePercent(radius[1], size)\n ];\n\n radiusAxis.inverse\n ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0])\n : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]);\n}\n\n/**\n * Update polar\n */\nfunction updatePolarScale(this: Polar, ecModel: GlobalModel, api: ExtensionAPI) {\n const polar = this;\n const angleAxis = polar.getAngleAxis();\n const radiusAxis = polar.getRadiusAxis();\n // Reset scale\n angleAxis.scale.setExtent(Infinity, -Infinity);\n radiusAxis.scale.setExtent(Infinity, -Infinity);\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === polar) {\n const data = seriesModel.getData();\n zrUtil.each(getDataDimensionsOnAxis(data, 'radius'), function (dim) {\n radiusAxis.scale.unionExtentFromData(data, dim);\n });\n zrUtil.each(getDataDimensionsOnAxis(data, 'angle'), function (dim) {\n angleAxis.scale.unionExtentFromData(data, dim);\n });\n }\n });\n\n niceScaleExtent(angleAxis.scale, angleAxis.model);\n niceScaleExtent(radiusAxis.scale, radiusAxis.model);\n\n // Fix extent of category angle axis\n if (angleAxis.type === 'category' && !angleAxis.onBand) {\n const extent = angleAxis.getExtent();\n const diff = 360 / (angleAxis.scale as OrdinalScale).count();\n angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff);\n angleAxis.setExtent(extent[0], extent[1]);\n }\n}\n\nfunction isAngleAxisModel(axisModel: AngleAxisModel | PolarAxisModel): axisModel is AngleAxisModel {\n return axisModel.mainType === 'angleAxis';\n}\n/**\n * Set common axis properties\n */\nfunction setAxis(axis: RadiusAxis | AngleAxis, axisModel: PolarAxisModel) {\n axis.type = axisModel.get('type');\n axis.scale = createScaleByModel(axisModel);\n axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';\n axis.inverse = axisModel.get('inverse');\n\n if (isAngleAxisModel(axisModel)) {\n axis.inverse = axis.inverse !== axisModel.get('clockwise');\n const startAngle = axisModel.get('startAngle');\n axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));\n }\n\n // Inject axis instance\n axisModel.axis = axis;\n axis.model = axisModel as AngleAxisModel | RadiusAxisModel;\n}\n\n\nconst polarCreator = {\n\n dimensions: polarDimensions,\n\n create: function (ecModel: GlobalModel, api: ExtensionAPI) {\n const polarList: Polar[] = [];\n ecModel.eachComponent('polar', function (polarModel: PolarModel, idx: number) {\n const polar = new Polar(idx + '');\n // Inject resize and update method\n polar.update = updatePolarScale;\n\n const radiusAxis = polar.getRadiusAxis();\n const angleAxis = polar.getAngleAxis();\n\n const radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n const angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n setAxis(radiusAxis, radiusAxisModel);\n setAxis(angleAxis, angleAxisModel);\n\n resizePolar(polar, polarModel, api);\n\n polarList.push(polar);\n\n polarModel.coordinateSystem = polar;\n polar.model = polarModel;\n });\n // Inject coordinateSystem to series\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n if (seriesModel.get('coordinateSystem') === 'polar') {\n const polarModel = seriesModel.getReferringComponents(\n 'polar', SINGLE_REFERRING\n ).models[0] as PolarModel;\n\n if (__DEV__) {\n if (!polarModel) {\n throw new Error(\n 'Polar \"' + zrUtil.retrieve(\n seriesModel.get('polarIndex'),\n seriesModel.get('polarId'),\n 0\n ) + '\" not found'\n );\n }\n }\n seriesModel.coordinateSystem = polarModel.coordinateSystem;\n }\n });\n\n return polarList;\n }\n};\n\nexport default polarCreator;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {createTextStyle} from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport AxisView from './AxisView';\nimport AxisBuilder from './AxisBuilder';\nimport { AngleAxisModel } from '../../coord/polar/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport Polar from '../../coord/polar/Polar';\nimport AngleAxis from '../../coord/polar/AngleAxis';\nimport { ZRTextAlign, ZRTextVerticalAlign, ColorString } from '../../util/types';\nimport { getECData } from '../../util/innerStore';\nimport OrdinalScale from '../../scale/Ordinal';\n\nconst elementList = [\n 'axisLine',\n 'axisLabel',\n 'axisTick',\n 'minorTick',\n 'splitLine',\n 'minorSplitLine',\n 'splitArea'\n] as const;\n\nfunction getAxisLineShape(polar: Polar, rExtent: number[], angle: number) {\n rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());\n const start = polar.coordToPoint([rExtent[0], angle]);\n const end = polar.coordToPoint([rExtent[1], angle]);\n\n return {\n x1: start[0],\n y1: start[1],\n x2: end[0],\n y2: end[1]\n };\n}\n\nfunction getRadiusIdx(polar: Polar) {\n const radiusAxis = polar.getRadiusAxis();\n return radiusAxis.inverse ? 0 : 1;\n}\n\n// Remove the last tick which will overlap the first tick\nfunction fixAngleOverlap(list: TickCoord[]) {\n const firstItem = list[0];\n const lastItem = list[list.length - 1];\n if (firstItem\n && lastItem\n && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4\n ) {\n list.pop();\n }\n}\n\ntype TickCoord = ReturnType[number];\ntype TickLabel = ReturnType[number] & {\n coord: number\n};\n\nclass AngleAxisView extends AxisView {\n\n static readonly type = 'angleAxis';\n readonly type = AngleAxisView.type;\n\n axisPointerClass = 'PolarAxisPointer';\n\n render(angleAxisModel: AngleAxisModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (!angleAxisModel.get('show')) {\n return;\n }\n\n const angleAxis = angleAxisModel.axis;\n const polar = angleAxis.polar;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n\n const ticksAngles = angleAxis.getTicksCoords();\n const minorTickAngles = angleAxis.getMinorTicksCoords();\n\n const labels = zrUtil.map(angleAxis.getViewLabels(), function (labelItem: TickLabel) {\n labelItem = zrUtil.clone(labelItem);\n const scale = angleAxis.scale;\n const tickValue = scale.type === 'ordinal'\n ? (scale as OrdinalScale).getRawOrdinalNumber(labelItem.tickValue)\n : labelItem.tickValue;\n labelItem.coord = angleAxis.dataToCoord(tickValue);\n return labelItem;\n });\n\n fixAngleOverlap(labels);\n fixAngleOverlap(ticksAngles);\n\n zrUtil.each(elementList, function (name) {\n if (angleAxisModel.get([name, 'show'])\n && (!angleAxis.scale.isBlank() || name === 'axisLine')\n ) {\n angelAxisElementsBuilders[name](\n this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels\n );\n }\n }, this);\n }\n\n}\n\ninterface AngleAxisElementBuilder {\n (\n group: graphic.Group,\n angleAxisModel: AngleAxisModel,\n polar: Polar,\n ticksAngles: TickCoord[],\n minorTickAngles: TickCoord[][],\n radiusExtent: number[],\n labels?: TickLabel[]\n ): void\n}\n\nconst angelAxisElementsBuilders: Record = {\n\n axisLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']);\n\n // extent id of the axis radius (r0 and r)\n const rId = getRadiusIdx(polar);\n const r0Id = rId ? 0 : 1;\n\n let shape;\n if (radiusExtent[r0Id] === 0) {\n shape = new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n else {\n shape = new graphic.Ring({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId],\n r0: radiusExtent[r0Id]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n shape.style.fill = null;\n group.add(shape);\n },\n\n axisTick(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const tickModel = angleAxisModel.getModel('axisTick');\n\n const tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');\n const radius = radiusExtent[getRadiusIdx(polar)];\n\n const lines = zrUtil.map(ticksAngles, function (tickAngleItem) {\n return new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)\n });\n });\n group.add(graphic.mergePath(\n lines, {\n style: zrUtil.defaults(\n tickModel.getModel('lineStyle').getLineStyle(),\n {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n }\n ));\n },\n\n minorTick(group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n const tickModel = angleAxisModel.getModel('axisTick');\n const minorTickModel = angleAxisModel.getModel('minorTick');\n\n const tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length');\n const radius = radiusExtent[getRadiusIdx(polar)];\n\n const lines = [];\n\n for (let i = 0; i < minorTickAngles.length; i++) {\n for (let k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(\n lines, {\n style: zrUtil.defaults(\n minorTickModel.getModel('lineStyle').getLineStyle(),\n zrUtil.defaults(\n tickModel.getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }\n )\n )\n }\n ));\n },\n\n axisLabel(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) {\n const rawCategoryData = angleAxisModel.getCategories(true);\n\n const commonLabelModel = angleAxisModel.getModel('axisLabel');\n\n const labelMargin = commonLabelModel.get('margin');\n const triggerEvent = angleAxisModel.get('triggerEvent');\n\n // Use length of ticksAngles because it may remove the last tick to avoid overlapping\n zrUtil.each(labels, function (labelItem, idx) {\n let labelModel = commonLabelModel;\n const tickValue = labelItem.tickValue;\n\n const r = radiusExtent[getRadiusIdx(polar)];\n const p = polar.coordToPoint([r + labelMargin, labelItem.coord]);\n const cx = polar.cx;\n const cy = polar.cy;\n\n const labelTextAlign: ZRTextAlign = Math.abs(p[0] - cx) / r < 0.3\n ? 'center' : (p[0] > cx ? 'left' : 'right');\n const labelTextVerticalAlign: ZRTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3\n ? 'middle' : (p[1] > cy ? 'top' : 'bottom');\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n const rawCategoryItem = rawCategoryData[tickValue];\n if (zrUtil.isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n labelModel = new Model(\n rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel\n );\n }\n }\n\n const textEl = new graphic.Text({\n silent: AxisBuilder.isLabelSilent(angleAxisModel),\n style: createTextStyle(labelModel, {\n x: p[0],\n y: p[1],\n fill: labelModel.getTextColor()\n || angleAxisModel.get(['axisLine', 'lineStyle', 'color']) as ColorString,\n text: labelItem.formattedLabel,\n align: labelTextAlign,\n verticalAlign: labelTextVerticalAlign\n })\n });\n group.add(textEl);\n\n // Pack data for mouse event\n if (triggerEvent) {\n const eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = labelItem.rawLabel;\n getECData(textEl).eventData = eventData;\n }\n\n }, this);\n },\n\n splitLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n const splitLineModel = angleAxisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n let lineCount = 0;\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const splitLines: graphic.Line[][] = [];\n\n for (let i = 0; i < ticksAngles.length; i++) {\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)\n }));\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyleModel.getLineStyle()),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n }\n },\n\n minorSplitLine(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n const minorSplitLineModel = angleAxisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const lines = [];\n\n for (let i = 0; i < minorTickAngles.length; i++) {\n for (let k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: lineStyleModel.getLineStyle(),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n },\n\n splitArea(group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!ticksAngles.length) {\n return;\n }\n\n const splitAreaModel = angleAxisModel.getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n let lineCount = 0;\n\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n\n const splitAreas: graphic.Sector[][] = [];\n\n const RADIAN = Math.PI / 180;\n let prevAngle = -ticksAngles[0].coord * RADIAN;\n const r0 = Math.min(radiusExtent[0], radiusExtent[1]);\n const r1 = Math.max(radiusExtent[0], radiusExtent[1]);\n\n const clockwise = angleAxisModel.get('clockwise');\n\n for (let i = 1, len = ticksAngles.length; i <= len; i++) {\n const coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;\n const colorIndex = (lineCount++) % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: r0,\n r: r1,\n startAngle: prevAngle,\n endAngle: -coord * RADIAN,\n clockwise: clockwise\n },\n silent: true\n }));\n prevAngle = -coord * RADIAN;\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n\nexport default AngleAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nimport { RadiusAxisModel } from '../../coord/polar/AxisModel';\nimport Polar from '../../coord/polar/Polar';\nimport RadiusAxis from '../../coord/polar/RadiusAxis';\nimport GlobalModel from '../../model/Global';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\nconst selfBuilderAttrs = [\n 'splitLine', 'splitArea', 'minorSplitLine'\n] as const;\n\ntype TickCoord = ReturnType[number];\n\nclass RadiusAxisView extends AxisView {\n\n static readonly type = 'radiusAxis';\n readonly type = RadiusAxisView.type;\n\n axisPointerClass = 'PolarAxisPointer';\n\n private _axisGroup: graphic.Group;\n\n render(radiusAxisModel: RadiusAxisModel, ecModel: GlobalModel) {\n this.group.removeAll();\n if (!radiusAxisModel.get('show')) {\n return;\n }\n\n const oldAxisGroup = this._axisGroup;\n const newAxisGroup = this._axisGroup = new graphic.Group();\n this.group.add(newAxisGroup);\n\n const radiusAxis = radiusAxisModel.axis;\n const polar = radiusAxis.polar;\n const angleAxis = polar.getAngleAxis();\n const ticksCoords = radiusAxis.getTicksCoords();\n const minorTicksCoords = radiusAxis.getMinorTicksCoords();\n const axisAngle = angleAxis.getExtent()[0];\n const radiusExtent = radiusAxis.getExtent();\n\n const layout = layoutAxis(polar, radiusAxisModel, axisAngle);\n const axisBuilder = new AxisBuilder(radiusAxisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n newAxisGroup.add(axisBuilder.getGroup());\n\n graphic.groupTransition(oldAxisGroup, newAxisGroup, radiusAxisModel);\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) {\n axisElementBuilders[name](\n this.group,\n radiusAxisModel,\n polar,\n axisAngle,\n radiusExtent,\n ticksCoords,\n minorTicksCoords\n );\n }\n }, this);\n }\n}\n\ninterface AxisElementBuilder {\n (\n group: graphic.Group,\n axisModel: RadiusAxisModel,\n polar: Polar,\n axisAngle: number,\n radiusExtent: number[],\n ticksCoords: TickCoord[],\n minorTicksCoords?: TickCoord[][]\n ): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n const splitLineModel = radiusAxisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n let lineCount = 0;\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const splitLines: graphic.Circle[][] = [];\n\n for (let i = 0; i < ticksCoords.length; i++) {\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: ticksCoords[i].coord\n }\n }));\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length],\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n }\n },\n\n minorSplitLine(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) {\n if (!minorTicksCoords.length) {\n return;\n }\n\n const minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine');\n const lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n\n const lines: graphic.Circle[] = [];\n\n for (let i = 0; i < minorTicksCoords.length; i++) {\n for (let k = 0; k < minorTicksCoords[i].length; k++) {\n lines.push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: minorTicksCoords[i][k].coord\n }\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults({\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n },\n\n splitArea(group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n if (!ticksCoords.length) {\n return;\n }\n\n const splitAreaModel = radiusAxisModel.getModel('splitArea');\n const areaStyleModel = splitAreaModel.getModel('areaStyle');\n let areaColors = areaStyleModel.get('color');\n let lineCount = 0;\n\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n\n const splitAreas: graphic.Sector[][] = [];\n\n let prevRadius = ticksCoords[0].coord;\n for (let i = 1; i < ticksCoords.length; i++) {\n const colorIndex = (lineCount++) % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: prevRadius,\n r: ticksCoords[i].coord,\n startAngle: 0,\n endAngle: Math.PI * 2\n },\n silent: true\n }));\n prevRadius = ticksCoords[i].coord;\n }\n\n // Simple optimization\n // Batching the lines if color are the same\n for (let i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n\n/**\n * @inner\n */\nfunction layoutAxis(polar: Polar, radiusAxisModel: RadiusAxisModel, axisAngle: number) {\n return {\n position: [polar.cx, polar.cy],\n rotation: axisAngle / 180 * Math.PI,\n labelDirection: -1 as const,\n tickDirection: -1 as const,\n nameDirection: 1 as const,\n labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),\n // Over splitLine and splitArea\n z2: 1\n };\n}\n\nexport default RadiusAxisView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {parsePercent} from '../util/number';\nimport {isDimensionStacked} from '../data/helper/dataStackHelper';\nimport type BarSeriesModel from '../chart/bar/BarSeries';\nimport type Polar from '../coord/polar/Polar';\nimport AngleAxis from '../coord/polar/AngleAxis';\nimport RadiusAxis from '../coord/polar/RadiusAxis';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { Dictionary } from '../util/types';\n\ntype PolarAxis = AngleAxis | RadiusAxis;\n\ninterface StackInfo {\n width: number\n maxWidth: number\n}\ninterface LayoutColumnInfo {\n autoWidthCount: number\n bandWidth: number\n remainedWidth: number\n categoryGap: string | number\n gap: string | number\n stacks: Dictionary\n}\n\ninterface BarWidthAndOffset {\n width: number\n offset: number\n}\n\nfunction getSeriesStackId(seriesModel: BarSeriesModel) {\n return seriesModel.get('stack')\n || '__ec_stack_' + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(polar: Polar, axis: PolarAxis) {\n return axis.dim + polar.model.componentIndex;\n}\n\nfunction barLayoutPolar(seriesType: string, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const lastStackCoords: Dictionary<{p: number, n: number}[]> = {};\n\n const barWidthAndOffset = calRadialBar(\n zrUtil.filter(\n ecModel.getSeriesByType(seriesType) as BarSeriesModel[],\n function (seriesModel) {\n return !ecModel.isSeriesFiltered(seriesModel)\n && seriesModel.coordinateSystem\n && seriesModel.coordinateSystem.type === 'polar';\n }\n )\n );\n\n ecModel.eachSeriesByType(seriesType, function (seriesModel: BarSeriesModel) {\n\n // Check series coordinate, do layout for polar only\n if (seriesModel.coordinateSystem.type !== 'polar') {\n return;\n }\n\n const data = seriesModel.getData();\n const polar = seriesModel.coordinateSystem as Polar;\n const baseAxis = polar.getBaseAxis();\n const axisKey = getAxisKey(polar, baseAxis);\n\n const stackId = getSeriesStackId(seriesModel);\n const columnLayoutInfo = barWidthAndOffset[axisKey][stackId];\n const columnOffset = columnLayoutInfo.offset;\n const columnWidth = columnLayoutInfo.width;\n const valueAxis = polar.getOtherAxis(baseAxis);\n\n const cx = seriesModel.coordinateSystem.cx;\n const cy = seriesModel.coordinateSystem.cy;\n\n const barMinHeight = seriesModel.get('barMinHeight') || 0;\n const barMinAngle = seriesModel.get('barMinAngle') || 0;\n\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n\n const valueDim = data.mapDimension(valueAxis.dim);\n const baseDim = data.mapDimension(baseAxis.dim);\n const stacked = isDimensionStacked(data, valueDim /*, baseDim*/);\n const clampLayout = baseAxis.dim !== 'radius'\n || !seriesModel.get('roundCap', true);\n\n const valueAxisStart = valueAxis.dataToCoord(0);\n for (let idx = 0, len = data.count(); idx < len; idx++) {\n const value = data.get(valueDim, idx) as number;\n const baseValue = data.get(baseDim, idx) as number;\n\n const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n';\n let baseCoord = valueAxisStart;\n\n // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n // Only ordinal axis can be stacked.\n if (stacked) {\n\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart, // Positive stack\n n: valueAxisStart // Negative stack\n };\n }\n // Should also consider #4243\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n let r0;\n let r;\n let startAngle;\n let endAngle;\n\n // radial sector\n if (valueAxis.dim === 'radius') {\n let radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart;\n const angle = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(radiusSpan) < barMinHeight) {\n radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;\n }\n\n r0 = baseCoord;\n r = baseCoord + radiusSpan;\n startAngle = angle - columnOffset;\n endAngle = startAngle - columnWidth;\n\n stacked && (lastStackCoords[stackId][baseValue][sign] = r);\n }\n // tangential sector\n else {\n let angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart;\n const radius = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(angleSpan) < barMinAngle) {\n angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;\n }\n\n r0 = radius + columnOffset;\n r = r0 + columnWidth;\n startAngle = baseCoord;\n endAngle = baseCoord + angleSpan;\n\n // if the previous stack is at the end of the ring,\n // add a round to differentiate it from origin\n // let extent = angleAxis.getExtent();\n // let stackCoord = angle;\n // if (stackCoord === extent[0] && value > 0) {\n // stackCoord = extent[1];\n // }\n // else if (stackCoord === extent[1] && value < 0) {\n // stackCoord = extent[0];\n // }\n stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);\n }\n\n data.setItemLayout(idx, {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n // Consider that positive angle is anti-clockwise,\n // while positive radian of sector is clockwise\n startAngle: -startAngle * Math.PI / 180,\n endAngle: -endAngle * Math.PI / 180\n });\n\n }\n\n });\n\n}\n\n/**\n * Calculate bar width and offset for radial bar charts\n */\nfunction calRadialBar(barSeries: BarSeriesModel[]) {\n // Columns info on each category axis. Key is polar name\n const columnsMap: Dictionary = {};\n\n zrUtil.each(barSeries, function (seriesModel, idx) {\n const data = seriesModel.getData();\n const polar = seriesModel.coordinateSystem as Polar;\n\n const baseAxis = polar.getBaseAxis();\n const axisKey = getAxisKey(polar, baseAxis);\n\n const axisExtent = baseAxis.getExtent();\n const bandWidth = baseAxis.type === 'category'\n ? baseAxis.getBandWidth()\n : (Math.abs(axisExtent[1] - axisExtent[0]) / data.count());\n\n const columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: '20%',\n gap: '30%',\n stacks: {}\n };\n const stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n\n const stackId = getSeriesStackId(seriesModel);\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n\n let barWidth = parsePercent(\n seriesModel.get('barWidth'),\n bandWidth\n );\n const barMaxWidth = parsePercent(\n seriesModel.get('barMaxWidth'),\n bandWidth\n );\n const barGap = seriesModel.get('barGap');\n const barCategoryGap = seriesModel.get('barCategoryGap');\n\n if (barWidth && !stacks[stackId].width) {\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n stacks[stackId].width = barWidth;\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n (barGap != null) && (columnsOnAxis.gap = barGap);\n (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n\n\n const result: Dictionary> = {};\n\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n\n result[coordSysName] = {};\n\n const stacks = columnsOnAxis.stacks;\n const bandWidth = columnsOnAxis.bandWidth;\n const categoryGap = parsePercent(columnsOnAxis.categoryGap, bandWidth);\n const barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n\n let remainedWidth = columnsOnAxis.remainedWidth;\n let autoWidthCount = columnsOnAxis.autoWidthCount;\n let autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n // Find if any auto calculated bar exceeded maxBarWidth\n zrUtil.each(stacks, function (column, stack) {\n let maxWidth = column.maxWidth;\n if (maxWidth && maxWidth < autoWidth) {\n maxWidth = Math.min(maxWidth, remainedWidth);\n if (column.width) {\n maxWidth = Math.min(maxWidth, column.width);\n }\n remainedWidth -= maxWidth;\n column.width = maxWidth;\n autoWidthCount--;\n }\n });\n\n // Recalculate width again\n autoWidth = (remainedWidth - categoryGap)\n / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n\n let widthSum = 0;\n let lastColumn: StackInfo;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n let offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n offset: offset,\n width: column.width\n } as BarWidthAndOffset;\n\n offset += column.width * (1 + barGapPercent);\n });\n });\n\n return result;\n}\n\nexport default barLayoutPolar;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport PolarAxisPointer from '../axisPointer/PolarAxisPointer';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport PolarModel from '../../coord/polar/PolarModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport {\n AngleAxisOption,\n RadiusAxisOption,\n AngleAxisModel,\n RadiusAxisModel\n} from '../../coord/polar/AxisModel';\nimport polarCreator from '../../coord/polar/polarCreator';\nimport AngleAxisView from '../axis/AngleAxisView';\nimport RadiusAxisView from '../axis/RadiusAxisView';\nimport ComponentView from '../../view/Component';\nimport { curry } from 'zrender/src/core/util';\nimport barLayoutPolar from '../../layout/barPolar';\n\n\nconst angleAxisExtraOption: AngleAxisOption = {\n startAngle: 90,\n\n clockwise: true,\n\n splitNumber: 12,\n\n axisLabel: {\n rotate: 0\n }\n};\n\nconst radiusAxisExtraOption: RadiusAxisOption = {\n splitNumber: 5\n};\n\nclass PolarView extends ComponentView {\n static type = 'polar';\n type = PolarView.type;\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n use(installAxisPointer);\n\n AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer);\n\n registers.registerCoordinateSystem('polar', polarCreator);\n\n registers.registerComponentModel(PolarModel);\n registers.registerComponentView(PolarView);\n\n // Model and view for angleAxis and radiusAxis\n axisModelCreator(registers, 'angle', AngleAxisModel, angleAxisExtraOption);\n axisModelCreator(registers, 'radius', RadiusAxisModel, radiusAxisExtraOption);\n\n registers.registerComponentView(AngleAxisView);\n registers.registerComponentView(RadiusAxisView);\n\n registers.registerLayout(curry(barLayoutPolar, 'bar'));\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport SingleAxisModel from './AxisModel';\n\ninterface LayoutResult {\n position: [number, number],\n rotation: number\n labelRotation: number\n labelDirection: number // 1 | -1\n tickDirection: number\n nameDirection: number\n z2: number\n}\n\nexport function layout(axisModel: SingleAxisModel, opt?: {\n labelInside?: boolean\n rotate?: number\n}) {\n opt = opt || {};\n const single = axisModel.coordinateSystem;\n const axis = axisModel.axis;\n const layout = {} as LayoutResult;\n\n const axisPosition = axis.position;\n const orient = axis.orient;\n\n const rect = single.getRect();\n const rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n\n const positionMap = {\n horizontal: {top: rectBound[2], bottom: rectBound[3]},\n vertical: {left: rectBound[0], right: rectBound[1]}\n } as const;\n\n layout.position = [\n orient === 'vertical'\n ? positionMap.vertical[axisPosition as 'left' | 'right']\n : rectBound[0],\n orient === 'horizontal'\n ? positionMap.horizontal[axisPosition as 'top' | 'bottom']\n : rectBound[3]\n ] as [number, number];\n\n const r = {horizontal: 0, vertical: 1};\n layout.rotation = Math.PI / 2 * r[orient];\n\n const directionMap = {top: -1, bottom: 1, right: 1, left: -1} as const;\n\n layout.labelDirection = layout.tickDirection =\n layout.nameDirection = directionMap[axisPosition];\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n }\n\n let labelRotation = opt.rotate;\n labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate']));\n layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;\n\n layout.z2 = 1;\n\n return layout;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport AxisView from './AxisView';\nimport {rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove} from './axisSplitHelper';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\n\nconst axisBuilderAttrs = [\n 'axisLine', 'axisTickLabel', 'axisName'\n] as const;\n\nconst selfBuilderAttrs = ['splitArea', 'splitLine'] as const;\n\nclass SingleAxisView extends AxisView {\n\n static readonly type = 'singleAxis';\n readonly type = SingleAxisView.type;\n\n private _axisGroup: graphic.Group;\n\n axisPointerClass = 'SingleAxisPointer';\n\n render(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n const group = this.group;\n\n group.removeAll();\n\n const oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n\n const layout = singleAxisHelper.layout(axisModel);\n\n const axisBuilder = new AxisBuilder(axisModel, layout);\n\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n group.add(this._axisGroup);\n group.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this.group, this._axisGroup, axisModel);\n }\n }, this);\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n super.render(axisModel, ecModel, api, payload);\n }\n\n remove() {\n rectCoordAxisHandleRemove(this);\n }\n}\n\ninterface AxisElementBuilder {\n (axisView: SingleAxisView, group: graphic.Group, axisGroup: graphic.Group, axisModel: SingleAxisModel): void\n}\n\nconst axisElementBuilders: Record = {\n\n splitLine(axisView, group, axisGroup, axisModel) {\n const axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n const splitLineModel = axisModel.getModel('splitLine');\n const lineStyleModel = splitLineModel.getModel('lineStyle');\n let lineColors = lineStyleModel.get('color');\n\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n\n const gridRect = axisModel.coordinateSystem.getRect();\n const isHorizontal = axis.isHorizontal();\n\n const splitLines: graphic.Line[][] = [];\n let lineCount = 0;\n\n const ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n\n const p1 = [];\n const p2 = [];\n\n for (let i = 0; i < ticksCoords.length; ++i) {\n const tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n }\n else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n const colorIndex = (lineCount++) % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n silent: true\n }));\n }\n\n const lineStyle = lineStyleModel.getLineStyle(['color']);\n for (let i = 0; i < splitLines.length; ++i) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyle),\n silent: true\n }));\n }\n },\n\n splitArea(axisView, group, axisGroup, axisModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, axisModel);\n }\n};\n\nexport default SingleAxisView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport { AxisModelExtendedInCreator } from '../axisModelCreator';\nimport {AxisModelCommonMixin} from '../axisModelCommonMixin';\nimport Single from './Single';\nimport SingleAxis from './SingleAxis';\nimport { AxisBaseOption } from '../axisCommonTypes';\nimport { BoxLayoutOptionMixin, LayoutOrient } from '../../util/types';\nimport { AxisBaseModel } from '../AxisBaseModel';\nimport { mixin } from 'zrender/src/core/util';\n\nexport type SingleAxisPosition = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface SingleAxisOption extends AxisBaseOption, BoxLayoutOptionMixin {\n mainType?: 'singleAxis'\n position?: SingleAxisPosition\n orient?: LayoutOrient\n}\n\nclass SingleAxisModel extends ComponentModel\n implements AxisBaseModel {\n static type = 'singleAxis';\n type = SingleAxisModel.type;\n\n static readonly layoutMode = 'box';\n\n axis: SingleAxis;\n\n coordinateSystem: Single;\n\n getCoordSysModel() {\n return this;\n }\n\n static defaultOption: SingleAxisOption = {\n\n left: '5%',\n top: '5%',\n right: '5%',\n bottom: '5%',\n\n type: 'value',\n\n position: 'bottom',\n\n orient: 'horizontal',\n\n axisLine: {\n show: true,\n lineStyle: {\n width: 1,\n type: 'solid'\n }\n },\n\n // Single coordinate system and single axis is the,\n // which is used as the parent tooltip model.\n // same model, so we set default tooltip show as true.\n tooltip: {\n show: true\n },\n\n axisTick: {\n show: true,\n length: 6,\n lineStyle: {\n width: 1\n }\n },\n\n axisLabel: {\n show: true,\n interval: 'auto'\n },\n\n splitLine: {\n show: true,\n lineStyle: {\n type: 'dashed',\n opacity: 0.2\n }\n }\n };\n}\n\ninterface SingleAxisModel extends AxisModelCommonMixin,\n AxisModelExtendedInCreator {}\n\nmixin(SingleAxisModel, AxisModelCommonMixin.prototype);\n\nexport default SingleAxisModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../Axis';\nimport Scale from '../../scale/Scale';\nimport { OptionAxisType } from '../axisCommonTypes';\nimport SingleAxisModel, { SingleAxisPosition } from './AxisModel';\nimport { LayoutOrient } from '../../util/types';\nimport Single from './Single';\n\ninterface SingleAxis {\n /**\n * Transform global coord to local coord,\n * i.e. let localCoord = axis.toLocalCoord(80);\n */\n toLocalCoord(coord: number): number;\n\n /**\n * Transform global coord to local coord,\n * i.e. let globalCoord = axis.toLocalCoord(40);\n */\n toGlobalCoord(coord: number): number;\n}\nclass SingleAxis extends Axis {\n\n position: SingleAxisPosition;\n\n orient: LayoutOrient;\n\n reverse: boolean;\n\n coordinateSystem: Single;\n\n model: SingleAxisModel;\n\n constructor(\n dim: string,\n scale: Scale,\n coordExtent: [number, number],\n axisType?: OptionAxisType,\n position?: SingleAxisPosition\n ) {\n super(dim, scale, coordExtent);\n\n this.type = axisType || 'value';\n this.position = position || 'bottom';\n }\n\n /**\n * Judge the orient of the axis.\n */\n isHorizontal() {\n const position = this.position;\n return position === 'top' || position === 'bottom';\n }\n\n pointToData(point: number[], clamp?: boolean) { // TODO: clamp is not used.\n return this.coordinateSystem.pointToData(point)[0];\n }\n}\nexport default SingleAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinates system.\n */\n\nimport SingleAxis from './SingleAxis';\nimport * as axisHelper from '../axisHelper';\nimport {getLayoutRect} from '../../util/layout';\nimport {each} from 'zrender/src/core/util';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport SingleAxisModel from './AxisModel';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { ScaleDataValue } from '../../util/types';\n\nexport const singleDimensions = ['single'];\n/**\n * Create a single coordinates system.\n */\nclass Single implements CoordinateSystem, CoordinateSystemMaster {\n\n readonly type = 'single';\n\n readonly dimension = 'single';\n /**\n * Add it just for draw tooltip.\n */\n readonly dimensions = singleDimensions;\n\n name: string;\n\n axisPointerEnabled: boolean = true;\n\n model: SingleAxisModel;\n\n private _axis: SingleAxis;\n\n private _rect: BoundingRect;\n\n constructor(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n this.model = axisModel;\n\n this._init(axisModel, ecModel, api);\n }\n\n /**\n * Initialize single coordinate system.\n */\n _init(axisModel: SingleAxisModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const dim = this.dimension;\n\n const axis = new SingleAxis(\n dim,\n axisHelper.createScaleByModel(axisModel),\n [0, 0],\n axisModel.get('type'),\n axisModel.get('position')\n );\n\n const isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n axis.orient = axisModel.get('orient');\n\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = this;\n this._axis = axis;\n }\n\n /**\n * Update axis scale after data processed\n */\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === this) {\n const data = seriesModel.getData();\n each(data.mapDimensionsAll(this.dimension), function (dim) {\n this._axis.scale.unionExtentFromData(data, dim);\n }, this);\n axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);\n }\n }, this);\n }\n\n /**\n * Resize the single coordinate system.\n */\n resize(axisModel: SingleAxisModel, api: ExtensionAPI) {\n this._rect = getLayoutRect(\n {\n left: axisModel.get('left'),\n top: axisModel.get('top'),\n right: axisModel.get('right'),\n bottom: axisModel.get('bottom'),\n width: axisModel.get('width'),\n height: axisModel.get('height')\n },\n {\n width: api.getWidth(),\n height: api.getHeight()\n }\n );\n\n this._adjustAxis();\n }\n\n getRect() {\n return this._rect;\n }\n\n private _adjustAxis() {\n\n const rect = this._rect;\n const axis = this._axis;\n\n const isHorizontal = axis.isHorizontal();\n const extent = isHorizontal ? [0, rect.width] : [0, rect.height];\n const idx = axis.reverse ? 1 : 0;\n\n axis.setExtent(extent[idx], extent[1 - idx]);\n\n this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);\n\n }\n\n\n private _updateAxisTransform(axis: SingleAxis, coordBase: number) {\n\n const axisExtent = axis.getExtent();\n const extentSum = axisExtent[0] + axisExtent[1];\n const isHorizontal = axis.isHorizontal();\n\n axis.toGlobalCoord = isHorizontal\n ? function (coord) {\n return coord + coordBase;\n }\n : function (coord) {\n return extentSum - coord + coordBase;\n };\n\n axis.toLocalCoord = isHorizontal\n ? function (coord) {\n return coord - coordBase;\n }\n : function (coord) {\n return extentSum - coord + coordBase;\n };\n }\n\n /**\n * Get axis.\n */\n getAxis() {\n return this._axis;\n }\n\n /**\n * Get axis, add it just for draw tooltip.\n */\n getBaseAxis() {\n return this._axis;\n }\n\n getAxes() {\n return [this._axis];\n }\n\n getTooltipAxes() {\n return {\n baseAxes: [this.getAxis()],\n // Empty otherAxes\n otherAxes: [] as SingleAxis[]\n };\n }\n\n /**\n * If contain point.\n */\n containPoint(point: number[]) {\n const rect = this.getRect();\n const axis = this.getAxis();\n const orient = axis.orient;\n if (orient === 'horizontal') {\n return axis.contain(axis.toLocalCoord(point[0]))\n && (point[1] >= rect.y && point[1] <= (rect.y + rect.height));\n }\n else {\n return axis.contain(axis.toLocalCoord(point[1]))\n && (point[0] >= rect.y && point[0] <= (rect.y + rect.height));\n }\n }\n\n pointToData(point: number[]) {\n const axis = this.getAxis();\n return [axis.coordToData(axis.toLocalCoord(\n point[axis.orient === 'horizontal' ? 0 : 1]\n ))];\n }\n\n /**\n * Convert the series data to concrete point.\n * Can be [val] | val\n */\n dataToPoint(val: ScaleDataValue | ScaleDataValue[]) {\n const axis = this.getAxis();\n const rect = this.getRect();\n const pt = [];\n const idx = axis.orient === 'horizontal' ? 0 : 1;\n\n if (val instanceof Array) {\n val = val[0];\n }\n\n pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));\n pt[1 - idx] = idx === 0 ? (rect.y + rect.height / 2) : (rect.x + rect.width / 2);\n return pt;\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Single {\n const seriesModel = finder.seriesModel;\n const singleModel = finder.singleAxisModel as SingleAxisModel;\n return singleModel && singleModel.coordinateSystem\n || seriesModel && seriesModel.coordinateSystem as Single;\n}\n\nexport default Single;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinate system creator.\n */\n\nimport Single, { singleDimensions } from './Single';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SingleAxisModel from './AxisModel';\nimport SeriesModel from '../../model/Series';\nimport { SeriesOption } from '../../util/types';\nimport { SINGLE_REFERRING } from '../../util/model';\n\n/**\n * Create single coordinate system and inject it into seriesModel.\n */\nfunction create(ecModel: GlobalModel, api: ExtensionAPI) {\n const singles: Single[] = [];\n\n ecModel.eachComponent('singleAxis', function (axisModel: SingleAxisModel, idx: number) {\n\n const single = new Single(axisModel, ecModel, api);\n single.name = 'single_' + idx;\n single.resize(axisModel, api);\n axisModel.coordinateSystem = single;\n singles.push(single);\n\n });\n\n ecModel.eachSeries(function (seriesModel: SeriesModel) {\n if (seriesModel.get('coordinateSystem') === 'singleAxis') {\n const singleAxisModel = seriesModel.getReferringComponents(\n 'singleAxis', SINGLE_REFERRING\n ).models[0] as SingleAxisModel;\n seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;\n }\n });\n\n return singles;\n}\n\nconst singleCreator = {\n create: create,\n dimensions: singleDimensions\n};\n\nexport default singleCreator;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BaseAxisPointer, { AxisPointerElementOptions } from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport Single from '../../coord/single/Single';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ScaleDataValue, VerticalAlign, CommonAxisPointerOption } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport Model from '../../model/Model';\n\nconst XY = ['x', 'y'] as const;\nconst WH = ['width', 'height'] as const;\n\n// Not use top level axisPointer model\ntype AxisPointerModel = Model;\n\nclass SingleAxisPointer extends BaseAxisPointer {\n\n /**\n * @override\n */\n makeElOption(\n elOption: AxisPointerElementOptions,\n value: ScaleDataValue,\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel,\n api: ExtensionAPI\n ) {\n const axis = axisModel.axis;\n const coordSys = axis.coordinateSystem;\n const otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));\n const pixelValue = coordSys.dataToPoint(value)[0];\n\n const axisPointerType = axisPointerModel.get('type');\n if (axisPointerType && axisPointerType !== 'none') {\n const elStyle = viewHelper.buildElStyle(axisPointerModel);\n const pointerOption = pointerShapeBuilder[axisPointerType](\n axis, pixelValue, otherExtent\n );\n pointerOption.style = elStyle;\n\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n const layoutInfo = singleAxisHelper.layout(axisModel);\n viewHelper.buildCartesianSingleLabelElOption(\n // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api\n );\n }\n\n /**\n * @override\n */\n getHandleTransform(\n value: ScaleDataValue,\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const layoutInfo = singleAxisHelper.layout(axisModel, {labelInside: false});\n // @ts-ignore\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n const position = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: position[0],\n y: position[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n }\n\n /**\n * @override\n */\n updateHandleTransform(\n transform: {\n x: number,\n y: number,\n rotation: number\n },\n delta: number[],\n axisModel: SingleAxisModel,\n axisPointerModel: AxisPointerModel\n ) {\n const axis = axisModel.axis;\n const coordSys = axis.coordinateSystem;\n const dimIndex = getPointDimIndex(axis);\n const axisExtent = getGlobalExtent(coordSys, dimIndex);\n const currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n const otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);\n const cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n const cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: {\n verticalAlign: 'middle' as VerticalAlign\n }\n };\n }\n}\n\nconst pointerShapeBuilder = {\n\n line: function (axis: SingleAxis, pixelValue: number, otherExtent: number[]): PathProps & {\n type: 'Line'\n } {\n const targetShape = viewHelper.makeLineShape(\n [pixelValue, otherExtent[0]],\n [pixelValue, otherExtent[1]],\n getPointDimIndex(axis)\n );\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n\n shadow: function (axis: SingleAxis, pixelValue: number, otherExtent: number[]): PathProps & {\n type: 'Rect'\n } {\n const bandWidth = axis.getBandWidth();\n const span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape(\n [pixelValue - bandWidth / 2, otherExtent[0]],\n [bandWidth, span],\n getPointDimIndex(axis)\n )\n };\n }\n};\n\nfunction getPointDimIndex(axis: SingleAxis): number {\n return axis.isHorizontal() ? 0 : 1;\n}\n\nfunction getGlobalExtent(coordSys: Single, dimIndex: number) {\n const rect = coordSys.getRect();\n return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];\n}\n\nexport default SingleAxisPointer;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport SingleAxisView from '../axis/SingleAxisView';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport singleCreator from '../../coord/single/singleCreator';\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport AxisView from '../axis/AxisView';\nimport SingleAxisPointer from '../axisPointer/SingleAxisPointer';\n\nclass SingleView extends ComponentView {\n static type = 'single';\n type = SingleView.type;\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installAxisPointer);\n\n AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer);\n\n registers.registerComponentView(SingleView);\n\n // Axis\n registers.registerComponentView(SingleAxisView);\n registers.registerComponentModel(SingleAxisModel);\n\n axisModelCreator(registers, 'single', SingleAxisModel, SingleAxisModel.defaultOption);\n\n registers.registerCoordinateSystem('single', singleCreator);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ComponentModel from '../../model/Component';\nimport {\n getLayoutParams,\n sizeCalculable,\n mergeLayoutParam\n} from '../../util/layout';\nimport Calendar from './Calendar';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n LineStyleOption,\n ItemStyleOption,\n LabelOption,\n OptionDataValueDate\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\n\nexport interface CalendarMonthLabelFormatterCallbackParams {\n nameMap: string\n yyyy: string\n yy: string\n /**\n * Month string. With 0 prefix.\n */\n MM: string\n /**\n * Month number\n */\n M: number\n}\n\nexport interface CalendarYearLabelFormatterCallbackParams {\n nameMap: string\n /**\n * Start year\n */\n start: string\n /**\n * End year\n */\n end: string\n}\n\nexport interface CalendarOption extends ComponentOption, BoxLayoutOptionMixin {\n mainType?: 'calendar'\n\n cellSize?: number | 'auto' | (number | 'auto')[]\n orient?: LayoutOrient\n\n splitLine?: {\n show?: boolean\n lineStyle?: LineStyleOption\n }\n\n itemStyle?: ItemStyleOption\n /**\n * // one year\n * range: 2017\n * // one month\n * range: '2017-02'\n * // a range\n * range: ['2017-01-02', '2017-02-23']\n * // note: they will be identified as ['2017-01-01', '2017-02-01']\n * range: ['2017-01', '2017-02']\n */\n range?: OptionDataValueDate | (OptionDataValueDate)[]\n\n dayLabel?: Omit & {\n /**\n * First day of week.\n */\n firstDay?: number\n\n /**\n * Margin between day label and axis line.\n * Can be percent string of cell size.\n */\n margin?: number | string\n\n /**\n * Position of week, at the beginning or end of the range.\n */\n position?: 'start' | 'end'\n\n /**\n * Week text content, defaults to 'en'; It supports Chinese, English, and custom; index 0 always means Sunday\n * en: shortcut to English ['S', 'M', 'T', 'W', 'T', 'F', 'S']\n * cn: shortcut to Chinese ['\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D']\n */\n nameMap?: 'en' | 'cn' | string[]\n }\n\n monthLabel?: Omit & {\n /**\n * Margin between month label and axis line.\n */\n margin?: number\n\n /**\n * Position of month label, at the beginning or end of the range.\n */\n position?: 'start' | 'end'\n\n /**\n * Month text content, defaults to 'en'; It supports Chinese, English, and custom; Index 0 always means Jan;\n */\n nameMap?: 'en' | 'cn' | string[]\n\n formatter?: string | ((params: CalendarMonthLabelFormatterCallbackParams) => string)\n }\n\n yearLabel?: Omit & {\n /**\n * Margin between year label and axis line.\n */\n margin?: number\n\n /**\n * Position of year label, at the beginning or end of the range.\n */\n position?: 'top' | 'bottom' | 'left' | 'right'\n\n formatter?: string | ((params: CalendarYearLabelFormatterCallbackParams) => string)\n }\n}\n\nclass CalendarModel extends ComponentModel {\n static type = 'calendar';\n type = CalendarModel.type;\n\n coordinateSystem: Calendar;\n\n /**\n * @override\n */\n init(option: CalendarOption, parentModel: Model, ecModel: GlobalModel) {\n const inputPositionParams = getLayoutParams(option);\n\n super.init.apply(this, arguments as any);\n\n mergeAndNormalizeLayoutParams(option, inputPositionParams);\n }\n\n /**\n * @override\n */\n mergeOption(option: CalendarOption) {\n super.mergeOption.apply(this, arguments as any);\n\n mergeAndNormalizeLayoutParams(this.option, option);\n }\n\n getCellSize() {\n // Has been normalized\n return this.option.cellSize as (number | 'auto')[];\n }\n\n static defaultOption: CalendarOption = {\n zlevel: 0,\n z: 2,\n left: 80,\n top: 60,\n\n cellSize: 20,\n\n // horizontal vertical\n orient: 'horizontal',\n\n // month separate line style\n splitLine: {\n show: true,\n lineStyle: {\n color: '#000',\n width: 1,\n type: 'solid'\n }\n },\n\n // rect style temporarily unused emphasis\n itemStyle: {\n color: '#fff',\n borderWidth: 1,\n borderColor: '#ccc'\n },\n\n // week text style\n dayLabel: {\n show: true,\n\n firstDay: 0,\n\n // start end\n position: 'start',\n margin: '50%', // 50% of cellSize\n nameMap: 'en',\n color: '#000'\n },\n\n // month text style\n monthLabel: {\n show: true,\n\n // start end\n position: 'start',\n margin: 5,\n\n // center or left\n align: 'center',\n\n // cn en []\n nameMap: 'en',\n formatter: null,\n color: '#000'\n },\n\n // year text style\n yearLabel: {\n show: true,\n\n // top bottom left right\n position: null,\n margin: 30,\n formatter: null,\n color: '#ccc',\n fontFamily: 'sans-serif',\n fontWeight: 'bolder',\n fontSize: 20\n }\n };\n}\n\n\nfunction mergeAndNormalizeLayoutParams(target: CalendarOption, raw: BoxLayoutOptionMixin) {\n // Normalize cellSize\n const cellSize = target.cellSize;\n let cellSizeArr: (number | 'auto')[];\n\n if (!zrUtil.isArray(cellSize)) {\n cellSizeArr = target.cellSize = [cellSize, cellSize];\n }\n else {\n cellSizeArr = cellSize;\n }\n\n if (cellSizeArr.length === 1) {\n cellSizeArr[1] = cellSizeArr[0];\n }\n\n const ignoreSize = zrUtil.map([0, 1], function (hvIdx) {\n // If user have set `width` or both `left` and `right`, cellSizeArr\n // will be automatically set to 'auto', otherwise the default\n // setting of cellSizeArr will make `width` setting not work.\n if (sizeCalculable(raw, hvIdx)) {\n cellSizeArr[hvIdx] = 'auto';\n }\n return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto';\n });\n\n mergeLayoutParam(target, raw, {\n type: 'box', ignoreSize: ignoreSize\n });\n}\n\nexport default CalendarModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {createTextStyle} from '../../label/labelStyle';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport {CalendarParsedDateRangeInfo, CalendarParsedDateInfo} from '../../coord/calendar/Calendar';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { LayoutOrient, OptionDataValueDate, ZRTextAlign, ZRTextVerticalAlign } from '../../util/types';\nimport ComponentView from '../../view/Component';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { TextStyleProps, TextProps } from 'zrender/src/graphic/Text';\n\nconst MONTH_TEXT = {\n EN: [\n 'Jan', 'Feb', 'Mar',\n 'Apr', 'May', 'Jun',\n 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'\n ],\n CN: [\n '\u4E00\u6708', '\u4E8C\u6708', '\u4E09\u6708',\n '\u56DB\u6708', '\u4E94\u6708', '\u516D\u6708',\n '\u4E03\u6708', '\u516B\u6708', '\u4E5D\u6708',\n '\u5341\u6708', '\u5341\u4E00\u6708', '\u5341\u4E8C\u6708'\n ]\n};\n\nconst WEEK_TEXT = {\n EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n CN: ['\u65E5', '\u4E00', '\u4E8C', '\u4E09', '\u56DB', '\u4E94', '\u516D']\n};\n\nclass CalendarView extends ComponentView {\n\n static type = 'calendar';\n type = CalendarView.type;\n\n /**\n * top/left line points\n */\n private _tlpoints: number[][];\n\n /**\n * bottom/right line points\n */\n private _blpoints: number[][];\n\n /**\n * first day of month\n */\n private _firstDayOfMonth: CalendarParsedDateInfo[];\n\n /**\n * first day point of month\n */\n private _firstDayPoints: number[][];\n\n render(calendarModel: CalendarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const group = this.group;\n\n group.removeAll();\n\n const coordSys = calendarModel.coordinateSystem;\n\n // range info\n const rangeData = coordSys.getRangeInfo();\n const orient = coordSys.getOrient();\n\n this._renderDayRect(calendarModel, rangeData, group);\n\n // _renderLines must be called prior to following function\n this._renderLines(calendarModel, rangeData, orient, group);\n\n this._renderYearText(calendarModel, rangeData, orient, group);\n\n this._renderMonthText(calendarModel, orient, group);\n\n this._renderWeekText(calendarModel, rangeData, orient, group);\n }\n\n // render day rect\n _renderDayRect(calendarModel: CalendarModel, rangeData: CalendarParsedDateRangeInfo, group: graphic.Group) {\n const coordSys = calendarModel.coordinateSystem;\n const itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle();\n const sw = coordSys.getCellWidth();\n const sh = coordSys.getCellHeight();\n\n for (let i = rangeData.start.time;\n i <= rangeData.end.time;\n i = coordSys.getNextNDay(i, 1).time\n ) {\n\n const point = coordSys.dataToRect([i], false).tl;\n\n // every rect\n const rect = new graphic.Rect({\n shape: {\n x: point[0],\n y: point[1],\n width: sw,\n height: sh\n },\n cursor: 'default',\n style: itemRectStyleModel\n });\n\n group.add(rect);\n }\n\n }\n\n // render separate line\n _renderLines(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n\n const self = this;\n\n const coordSys = calendarModel.coordinateSystem;\n\n const lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle();\n const show = calendarModel.get(['splitLine', 'show']);\n\n const lineWidth = lineStyleModel.lineWidth;\n\n this._tlpoints = [];\n this._blpoints = [];\n this._firstDayOfMonth = [];\n this._firstDayPoints = [];\n\n\n let firstDay = rangeData.start;\n\n for (let i = 0; firstDay.time <= rangeData.end.time; i++) {\n addPoints(firstDay.formatedDate);\n\n if (i === 0) {\n firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);\n }\n\n const date = firstDay.date;\n date.setMonth(date.getMonth() + 1);\n firstDay = coordSys.getDateInfo(date);\n }\n\n addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);\n\n function addPoints(date: OptionDataValueDate) {\n\n self._firstDayOfMonth.push(coordSys.getDateInfo(date));\n self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);\n\n const points = self._getLinePointsOfOneWeek(calendarModel, date, orient);\n\n self._tlpoints.push(points[0]);\n self._blpoints.push(points[points.length - 1]);\n\n show && self._drawSplitline(points, lineStyleModel, group);\n }\n\n\n // render top/left line\n show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group);\n\n // render bottom/right line\n show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);\n\n }\n\n // get points at both ends\n _getEdgesPoints(points: number[][], lineWidth: number, orient: LayoutOrient) {\n const rs = [points[0].slice(), points[points.length - 1].slice()];\n const idx = orient === 'horizontal' ? 0 : 1;\n\n // both ends of the line are extend half lineWidth\n rs[0][idx] = rs[0][idx] - lineWidth / 2;\n rs[1][idx] = rs[1][idx] + lineWidth / 2;\n\n return rs;\n }\n\n // render split line\n _drawSplitline(points: number[][], lineStyle: PathStyleProps, group: graphic.Group) {\n\n const poyline = new graphic.Polyline({\n z2: 20,\n shape: {\n points: points\n },\n style: lineStyle\n });\n\n group.add(poyline);\n }\n\n // render month line of one week points\n _getLinePointsOfOneWeek(calendarModel: CalendarModel, date: OptionDataValueDate, orient: LayoutOrient) {\n\n const coordSys = calendarModel.coordinateSystem;\n const parsedDate = coordSys.getDateInfo(date);\n\n const points = [];\n\n for (let i = 0; i < 7; i++) {\n\n const tmpD = coordSys.getNextNDay(parsedDate.time, i);\n const point = coordSys.dataToRect([tmpD.time], false);\n\n points[2 * tmpD.day] = point.tl;\n points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];\n }\n\n return points;\n\n }\n\n _formatterLabel(\n formatter: string | ((params: T) => string),\n params: T\n ) {\n\n if (typeof formatter === 'string' && formatter) {\n return formatUtil.formatTplSimple(formatter, params);\n }\n\n if (typeof formatter === 'function') {\n return formatter(params);\n }\n\n return params.nameMap;\n\n }\n\n _yearTextPositionControl(\n textEl: graphic.Text,\n point: number[],\n orient: LayoutOrient,\n position: 'left' | 'right' | 'top' | 'bottom',\n margin: number\n ): TextProps {\n\n let x = point[0];\n let y = point[1];\n let aligns: [ZRTextAlign, ZRTextVerticalAlign] = ['center', 'bottom'];\n\n if (position === 'bottom') {\n y += margin;\n aligns = ['center', 'top'];\n }\n else if (position === 'left') {\n x -= margin;\n }\n else if (position === 'right') {\n x += margin;\n aligns = ['center', 'top'];\n }\n else { // top\n y -= margin;\n }\n\n let rotate = 0;\n if (position === 'left' || position === 'right') {\n rotate = Math.PI / 2;\n }\n\n return {\n rotation: rotate,\n x,\n y,\n style: {\n align: aligns[0],\n verticalAlign: aligns[1]\n }\n };\n }\n\n // render year\n _renderYearText(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n const yearLabel = calendarModel.getModel('yearLabel');\n\n if (!yearLabel.get('show')) {\n return;\n }\n\n const margin = yearLabel.get('margin');\n let pos = yearLabel.get('position');\n\n if (!pos) {\n pos = orient !== 'horizontal' ? 'top' : 'left';\n }\n\n const points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];\n const xc = (points[0][0] + points[1][0]) / 2;\n const yc = (points[0][1] + points[1][1]) / 2;\n\n const idx = orient === 'horizontal' ? 0 : 1;\n\n const posPoints = {\n top: [xc, points[idx][1]],\n bottom: [xc, points[1 - idx][1]],\n left: [points[1 - idx][0], yc],\n right: [points[idx][0], yc]\n };\n\n let name = rangeData.start.y;\n\n if (+rangeData.end.y > +rangeData.start.y) {\n name = name + '-' + rangeData.end.y;\n }\n\n const formatter = yearLabel.get('formatter');\n\n const params = {\n start: rangeData.start.y,\n end: rangeData.end.y,\n nameMap: name\n };\n\n const content = this._formatterLabel(formatter, params);\n\n const yearText = new graphic.Text({\n z2: 30,\n style: createTextStyle(yearLabel, {\n text: content\n })\n });\n yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));\n\n group.add(yearText);\n }\n\n _monthTextPositionControl(\n point: number[],\n isCenter: boolean,\n orient: LayoutOrient,\n position: 'start' | 'end',\n margin: number\n ): TextStyleProps {\n let align: ZRTextAlign = 'left';\n let vAlign: ZRTextVerticalAlign = 'top';\n let x = point[0];\n let y = point[1];\n\n if (orient === 'horizontal') {\n y = y + margin;\n\n if (isCenter) {\n align = 'center';\n }\n\n if (position === 'start') {\n vAlign = 'bottom';\n }\n }\n else {\n x = x + margin;\n\n if (isCenter) {\n vAlign = 'middle';\n }\n\n if (position === 'start') {\n align = 'right';\n }\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }\n\n // render month and year text\n _renderMonthText(calendarModel: CalendarModel, orient: LayoutOrient, group: graphic.Group) {\n const monthLabel = calendarModel.getModel('monthLabel');\n\n if (!monthLabel.get('show')) {\n return;\n }\n\n let nameMap = monthLabel.get('nameMap');\n let margin = monthLabel.get('margin');\n const pos = monthLabel.get('position');\n const align = monthLabel.get('align');\n\n const termPoints = [this._tlpoints, this._blpoints];\n\n if (zrUtil.isString(nameMap)) {\n nameMap = MONTH_TEXT[nameMap.toUpperCase() as 'CN' | 'EN'] || [];\n }\n\n const idx = pos === 'start' ? 0 : 1;\n const axis = orient === 'horizontal' ? 0 : 1;\n margin = pos === 'start' ? -margin : margin;\n const isCenter = (align === 'center');\n\n for (let i = 0; i < termPoints[idx].length - 1; i++) {\n\n const tmp = termPoints[idx][i].slice();\n const firstDay = this._firstDayOfMonth[i];\n\n if (isCenter) {\n const firstDayPoints = this._firstDayPoints[i];\n tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;\n }\n\n const formatter = monthLabel.get('formatter');\n const name = nameMap[+firstDay.m - 1];\n const params = {\n yyyy: firstDay.y,\n yy: (firstDay.y + '').slice(2),\n MM: firstDay.m,\n M: +firstDay.m,\n nameMap: name\n };\n\n const content = this._formatterLabel(formatter, params);\n\n const monthText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(\n createTextStyle(monthLabel, {text: content}),\n this._monthTextPositionControl(tmp, isCenter, orient, pos, margin)\n )\n });\n\n group.add(monthText);\n }\n }\n\n _weekTextPositionControl(\n point: number[],\n orient: LayoutOrient,\n position: 'start' | 'end',\n margin: number,\n cellSize: number[]\n ): TextStyleProps {\n let align: ZRTextAlign = 'center';\n let vAlign: ZRTextVerticalAlign = 'middle';\n let x = point[0];\n let y = point[1];\n const isStart = position === 'start';\n\n if (orient === 'horizontal') {\n x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;\n align = isStart ? 'right' : 'left';\n }\n else {\n y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;\n vAlign = isStart ? 'bottom' : 'top';\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }\n\n // render weeks\n _renderWeekText(\n calendarModel: CalendarModel,\n rangeData: CalendarParsedDateRangeInfo,\n orient: LayoutOrient,\n group: graphic.Group\n ) {\n const dayLabel = calendarModel.getModel('dayLabel');\n\n if (!dayLabel.get('show')) {\n return;\n }\n\n const coordSys = calendarModel.coordinateSystem;\n const pos = dayLabel.get('position');\n let nameMap = dayLabel.get('nameMap');\n let margin = dayLabel.get('margin');\n const firstDayOfWeek = coordSys.getFirstDayOfWeek();\n\n if (zrUtil.isString(nameMap)) {\n nameMap = WEEK_TEXT[nameMap.toUpperCase() as 'CN' | 'EN'] || [];\n }\n\n let start = coordSys.getNextNDay(\n rangeData.end.time, (7 - rangeData.lweek)\n ).time;\n\n const cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];\n margin = numberUtil.parsePercent(margin, Math.min(cellSize[1], cellSize[0]));\n\n if (pos === 'start') {\n start = coordSys.getNextNDay(\n rangeData.start.time, -(7 + rangeData.fweek)\n ).time;\n margin = -margin;\n }\n\n for (let i = 0; i < 7; i++) {\n\n const tmpD = coordSys.getNextNDay(start, i);\n const point = coordSys.dataToRect([tmpD.time], false).center;\n let day = i;\n day = Math.abs((i + firstDayOfWeek) % 7);\n const weekText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(\n createTextStyle(dayLabel, {text: nameMap[day]}),\n this._weekTextPositionControl(point, orient, pos, margin, cellSize)\n )\n });\n\n group.add(weekText);\n }\n }\n}\n\nexport default CalendarView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport BoundingRect, {RectLike} from 'zrender/src/core/BoundingRect';\nimport CalendarModel from './CalendarModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n LayoutOrient,\n ScaleDataValue,\n OptionDataValueDate,\n SeriesOption,\n SeriesOnCalendarOptionMixin\n} from '../../util/types';\nimport { ParsedModelFinder, ParsedModelFinderKnown } from '../../util/model';\nimport { CoordinateSystem, CoordinateSystemMaster } from '../CoordinateSystem';\nimport SeriesModel from '../../model/Series';\n\n// (24*60*60*1000)\nconst PROXIMATE_ONE_DAY = 86400000;\n\n\nexport interface CalendarParsedDateRangeInfo {\n range: [string, string],\n start: CalendarParsedDateInfo\n end: CalendarParsedDateInfo\n allDay: number\n weeks: number\n nthWeek: number\n fweek: number\n lweek: number\n}\n\nexport interface CalendarParsedDateInfo {\n /**\n * local full year, eg., '1940'\n */\n y: string\n /**\n * local month, from '01' ot '12',\n */\n m: string\n /**\n * local date, from '01' to '31' (if exists),\n */\n d: string\n /**\n * It is not date.getDay(). It is the location of the cell in a week, from 0 to 6,\n */\n day: number\n /**\n * Timestamp\n */\n time: number\n /**\n * yyyy-MM-dd\n */\n formatedDate: string\n /**\n * The original date object\n */\n date: Date\n}\n\nexport interface CalendarCellRect {\n contentShape: RectLike\n center: number[]\n tl: number[]\n tr: number[]\n br: number[]\n bl: number[]\n}\n\nclass Calendar implements CoordinateSystem, CoordinateSystemMaster {\n\n static readonly dimensions = ['time', 'value'];\n static getDimensionsInfo() {\n return [{\n name: 'time', type: 'time' as const\n }, 'value'];\n }\n\n readonly type = 'calendar';\n\n readonly dimensions = Calendar.dimensions;\n\n private _model: CalendarModel;\n\n private _rect: BoundingRect;\n\n private _sw: number;\n private _sh: number;\n private _orient: LayoutOrient;\n\n private _firstDayOfWeek: number;\n\n private _rangeInfo: CalendarParsedDateRangeInfo;\n\n private _lineWidth: number;\n\n constructor(calendarModel: CalendarModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this._model = calendarModel;\n }\n // Required in createListFromData\n getDimensionsInfo = Calendar.getDimensionsInfo;\n\n getRangeInfo() {\n return this._rangeInfo;\n }\n\n getModel() {\n return this._model;\n }\n\n getRect() {\n return this._rect;\n }\n\n getCellWidth() {\n return this._sw;\n }\n\n getCellHeight() {\n return this._sh;\n }\n\n getOrient() {\n return this._orient;\n }\n\n /**\n * getFirstDayOfWeek\n *\n * @example\n * 0 : start at Sunday\n * 1 : start at Monday\n *\n * @return {number}\n */\n getFirstDayOfWeek() {\n return this._firstDayOfWeek;\n }\n\n /**\n * get date info\n * }\n */\n getDateInfo(date: OptionDataValueDate): CalendarParsedDateInfo {\n\n date = numberUtil.parseDate(date);\n\n const y = date.getFullYear();\n\n const m = date.getMonth() + 1;\n const mStr = m < 10 ? '0' + m : '' + m;\n\n const d = date.getDate();\n const dStr = d < 10 ? '0' + d : '' + d;\n\n let day = date.getDay();\n\n day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);\n\n return {\n y: y + '',\n m: mStr,\n d: dStr,\n day: day,\n time: date.getTime(),\n formatedDate: y + '-' + mStr + '-' + dStr,\n date: date\n };\n }\n\n getNextNDay(date: OptionDataValueDate, n: number) {\n n = n || 0;\n if (n === 0) {\n return this.getDateInfo(date);\n }\n\n date = new Date(this.getDateInfo(date).time);\n date.setDate(date.getDate() + n);\n\n return this.getDateInfo(date);\n }\n\n update(ecModel: GlobalModel, api: ExtensionAPI) {\n\n this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');\n this._orient = this._model.get('orient');\n this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0;\n\n\n this._rangeInfo = this._getRangeInfo(this._initRangeOption());\n const weeks = this._rangeInfo.weeks || 1;\n const whNames = ['width', 'height'] as const;\n const cellSize = this._model.getCellSize().slice();\n const layoutParams = this._model.getBoxLayoutParams();\n const cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];\n\n zrUtil.each([0, 1] as const, function (idx) {\n if (cellSizeSpecified(cellSize, idx)) {\n layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];\n }\n });\n\n const whGlobal = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n const calendarRect = this._rect = layout.getLayoutRect(layoutParams, whGlobal);\n\n zrUtil.each([0, 1], function (idx) {\n if (!cellSizeSpecified(cellSize, idx)) {\n cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];\n }\n });\n\n function cellSizeSpecified(cellSize: (number | 'auto')[], idx: number): cellSize is number[] {\n return cellSize[idx] != null && cellSize[idx] !== 'auto';\n }\n\n // Has been calculated out number.\n this._sw = cellSize[0] as number;\n this._sh = cellSize[1] as number;\n }\n\n\n /**\n * Convert a time data(time, value) item to (x, y) point.\n */\n // TODO Clamp of calendar is not same with cartesian coordinate systems.\n // It will return NaN if data exceeds.\n dataToPoint(data: OptionDataValueDate | OptionDataValueDate[], clamp?: boolean) {\n zrUtil.isArray(data) && (data = data[0]);\n clamp == null && (clamp = true);\n\n const dayInfo = this.getDateInfo(data);\n const range = this._rangeInfo;\n const date = dayInfo.formatedDate;\n\n // if not in range return [NaN, NaN]\n if (clamp && !(\n dayInfo.time >= range.start.time\n && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY\n )) {\n return [NaN, NaN];\n }\n\n const week = dayInfo.day;\n const nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;\n\n if (this._orient === 'vertical') {\n return [\n this._rect.x + week * this._sw + this._sw / 2,\n this._rect.y + nthWeek * this._sh + this._sh / 2\n ];\n\n }\n\n return [\n this._rect.x + nthWeek * this._sw + this._sw / 2,\n this._rect.y + week * this._sh + this._sh / 2\n ];\n\n }\n\n /**\n * Convert a (x, y) point to time data\n */\n pointToData(point: number[]): number {\n\n const date = this.pointToDate(point);\n\n return date && date.time;\n }\n\n /**\n * Convert a time date item to (x, y) four point.\n */\n dataToRect(data: OptionDataValueDate | OptionDataValueDate[], clamp?: boolean): CalendarCellRect {\n const point = this.dataToPoint(data, clamp);\n\n return {\n contentShape: {\n x: point[0] - (this._sw - this._lineWidth) / 2,\n y: point[1] - (this._sh - this._lineWidth) / 2,\n width: this._sw - this._lineWidth,\n height: this._sh - this._lineWidth\n },\n\n center: point,\n\n tl: [\n point[0] - this._sw / 2,\n point[1] - this._sh / 2\n ],\n\n tr: [\n point[0] + this._sw / 2,\n point[1] - this._sh / 2\n ],\n\n br: [\n point[0] + this._sw / 2,\n point[1] + this._sh / 2\n ],\n\n bl: [\n point[0] - this._sw / 2,\n point[1] + this._sh / 2\n ]\n\n };\n }\n\n /**\n * Convert a (x, y) point to time date\n *\n * @param {Array} point point\n * @return {Object} date\n */\n pointToDate(point: number[]): CalendarParsedDateInfo {\n const nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;\n const nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;\n const range = this._rangeInfo.range;\n\n if (this._orient === 'vertical') {\n return this._getDateByWeeksAndDay(nthY, nthX - 1, range);\n }\n\n return this._getDateByWeeksAndDay(nthX, nthY - 1, range);\n }\n\n convertToPixel(ecModel: GlobalModel, finder: ParsedModelFinder, value: ScaleDataValue | ScaleDataValue[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n }\n\n convertFromPixel(ecModel: GlobalModel, finder: ParsedModelFinder, pixel: number[]) {\n const coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n }\n\n containPoint(point: number[]): boolean {\n console.warn('Not implemented.');\n return false;\n }\n\n /**\n * initRange\n * Normalize to an [start, end] array\n */\n private _initRangeOption(): OptionDataValueDate[] {\n let range = this._model.get('range');\n let normalizedRange: OptionDataValueDate[];\n\n // Convert [1990] to 1990\n if (zrUtil.isArray(range) && range.length === 1) {\n range = range[0];\n }\n\n if (!zrUtil.isArray(range)) {\n const rangeStr = range.toString();\n // One year.\n if (/^\\d{4}$/.test(rangeStr)) {\n normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31'];\n }\n // One month\n if (/^\\d{4}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n\n const start = this.getDateInfo(rangeStr);\n const firstDay = start.date;\n firstDay.setMonth(firstDay.getMonth() + 1);\n\n const end = this.getNextNDay(firstDay, -1);\n normalizedRange = [start.formatedDate, end.formatedDate];\n }\n // One day\n if (/^\\d{4}[\\/|-]\\d{1,2}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n normalizedRange = [rangeStr, rangeStr];\n }\n }\n else {\n normalizedRange = range;\n }\n\n if (!normalizedRange) {\n if (__DEV__) {\n zrUtil.logError('Invalid date range.');\n }\n // Not handling it.\n return range as OptionDataValueDate[];\n }\n\n const tmp = this._getRangeInfo(normalizedRange);\n\n if (tmp.start.time > tmp.end.time) {\n normalizedRange.reverse();\n }\n\n return normalizedRange;\n }\n\n /**\n * range info\n *\n * @private\n * @param {Array} range range ['2017-01-01', '2017-07-08']\n * If range[0] > range[1], they will not be reversed.\n * @return {Object} obj\n */\n _getRangeInfo(range: OptionDataValueDate[]): CalendarParsedDateRangeInfo {\n const parsedRange = [\n this.getDateInfo(range[0]),\n this.getDateInfo(range[1])\n ];\n\n let reversed;\n if (parsedRange[0].time > parsedRange[1].time) {\n reversed = true;\n parsedRange.reverse();\n }\n\n let allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY)\n - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1;\n\n // Consider case1 (#11677 #10430):\n // Set the system timezone as \"UK\", set the range to `['2016-07-01', '2016-12-31']`\n\n // Consider case2:\n // Firstly set system timezone as \"Time Zone: America/Toronto\",\n // ```\n // let first = new Date(1478412000000 - 3600 * 1000 * 2.5);\n // let second = new Date(1478412000000);\n // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;\n // ```\n // will get wrong result because of DST. So we should fix it.\n const date = new Date(parsedRange[0].time);\n const startDateNum = date.getDate();\n const endDateNum = parsedRange[1].date.getDate();\n date.setDate(startDateNum + allDay - 1);\n // The bias can not over a month, so just compare date.\n let dateNum = date.getDate();\n if (dateNum !== endDateNum) {\n const sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;\n while (\n (dateNum = date.getDate()) !== endDateNum\n && (date.getTime() - parsedRange[1].time) * sign > 0\n ) {\n allDay -= sign;\n date.setDate(dateNum - sign);\n }\n }\n\n const weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);\n const nthWeek = reversed ? -weeks + 1 : weeks - 1;\n\n reversed && parsedRange.reverse();\n\n return {\n range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate],\n start: parsedRange[0],\n end: parsedRange[1],\n allDay: allDay,\n weeks: weeks,\n // From 0.\n nthWeek: nthWeek,\n fweek: parsedRange[0].day,\n lweek: parsedRange[1].day\n };\n }\n\n /**\n * get date by nthWeeks and week day in range\n *\n * @private\n * @param {number} nthWeek the week\n * @param {number} day the week day\n * @param {Array} range [d1, d2]\n * @return {Object}\n */\n private _getDateByWeeksAndDay(nthWeek: number, day: number, range: OptionDataValueDate[]): CalendarParsedDateInfo {\n const rangeInfo = this._getRangeInfo(range);\n\n if (nthWeek > rangeInfo.weeks\n || (nthWeek === 0 && day < rangeInfo.fweek)\n || (nthWeek === rangeInfo.weeks && day > rangeInfo.lweek)\n ) {\n return null;\n }\n\n const nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;\n const date = new Date(rangeInfo.start.time);\n date.setDate(+rangeInfo.start.d + nthDay);\n\n return this.getDateInfo(date);\n }\n\n static create(ecModel: GlobalModel, api: ExtensionAPI) {\n const calendarList: Calendar[] = [];\n\n ecModel.eachComponent('calendar', function (calendarModel: CalendarModel) {\n const calendar = new Calendar(calendarModel, ecModel, api);\n calendarList.push(calendar);\n calendarModel.coordinateSystem = calendar;\n });\n\n ecModel.eachSeries(function (calendarSeries: SeriesModel) {\n if (calendarSeries.get('coordinateSystem') === 'calendar') {\n // Inject coordinate system\n calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];\n }\n });\n return calendarList;\n }\n}\n\nfunction getCoordSys(finder: ParsedModelFinderKnown): Calendar {\n const calendarModel = finder.calendarModel as CalendarModel;\n const seriesModel = finder.seriesModel;\n\n const coordSys = calendarModel\n ? calendarModel.coordinateSystem\n : seriesModel\n ? seriesModel.coordinateSystem\n : null;\n\n return coordSys as Calendar;\n}\n\nexport default Calendar;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport CalendarView from './CalendarView';\nimport Calendar from '../../coord/calendar/Calendar';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(CalendarModel);\n registers.registerComponentView(CalendarView);\n registers.registerCoordinateSystem('calendar', Calendar);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nimport * as modelUtil from '../../util/model';\nimport * as graphicUtil from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport {parsePercent} from '../../util/number';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n Dictionary,\n ZRStyleProps,\n OptionId,\n OptionPreprocessor,\n CommonTooltipOption\n} from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Element, { ElementTextConfig } from 'zrender/src/Element';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport { PathProps } from 'zrender/src/graphic/Path';\nimport { ImageStyleProps } from 'zrender/src/graphic/Image';\nimport GlobalModel from '../../model/Global';\nimport ComponentView from '../../view/Component';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { getECData } from '../../util/innerStore';\nimport { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { isEC4CompatibleStyle, convertFromEC4CompatibleStyle } from '../../util/styleCompat';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nconst TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n} as const;\ntype TransformProp = keyof typeof TRANSFORM_PROPS;\n\ninterface GraphicComponentBaseElementOption extends\n Partial>,\n /**\n * left/right/top/bottom: (like 12, '22%', 'center', default undefined)\n * If left/rigth is set, shape.x/shape.cx/position will not be used.\n * If top/bottom is set, shape.y/shape.cy/position will not be used.\n * This mechanism is useful when you want to position a group/element\n * against the right side or the center of this container.\n */\n Partial> {\n\n /**\n * element type, mandatory.\n * Only can be omit if call setOption not at the first time and perform merge.\n */\n type?: string;\n\n id?: OptionId;\n name?: string;\n\n // Only internal usage. Use specified value does NOT make sense.\n parentId?: OptionId;\n parentOption?: GraphicComponentElementOption;\n children?: GraphicComponentElementOption[];\n hv?: [boolean, boolean];\n\n /**\n * bounding: (enum: 'all' (default) | 'raw')\n * Specify how to calculate boundingRect when locating.\n * 'all': Get uioned and transformed boundingRect\n * from both itself and its descendants.\n * This mode simplies confining a group of elements in the bounding\n * of their ancester container (e.g., using 'right: 0').\n * 'raw': Only use the boundingRect of itself and before transformed.\n * This mode is similar to css behavior, which is useful when you\n * want an element to be able to overflow its container. (Consider\n * a rotated circle needs to be located in a corner.)\n */\n bounding?: 'raw' | 'all';\n\n /**\n * info: custom info. enables user to mount some info on elements and use them\n * in event handlers. Update them only when user specified, otherwise, remain.\n */\n info?: GraphicExtraElementInfo;\n\n textContent?: GraphicComponentTextOption;\n textConfig?: ElementTextConfig;\n\n $action?: 'merge' | 'replace' | 'remove';\n\n tooltip?: CommonTooltipOption;\n};\ninterface GraphicComponentDisplayableOption extends\n GraphicComponentBaseElementOption,\n Partial> {\n\n style?: ZRStyleProps;\n\n // TODO: states?\n // emphasis?: GraphicComponentDisplayableOptionOnState;\n // blur?: GraphicComponentDisplayableOptionOnState;\n // select?: GraphicComponentDisplayableOptionOnState;\n}\n// TODO: states?\n// interface GraphicComponentDisplayableOptionOnState extends Partial> {\n// style?: ZRStyleProps;\n// }\ninterface GraphicComponentGroupOption extends GraphicComponentBaseElementOption {\n type?: 'group';\n\n /**\n * width/height: (can only be pixel value, default 0)\n * Only be used to specify contianer(group) size, if needed. And\n * can not be percentage value (like '33%'). See the reason in the\n * layout algorithm below.\n */\n width?: number;\n height?: number;\n\n // TODO: Can only set focus, blur on the root element.\n // children: Omit[];\n children: GraphicComponentElementOption[];\n}\nexport interface GraphicComponentZRPathOption extends GraphicComponentDisplayableOption {\n shape?: PathProps['shape'];\n}\nexport interface GraphicComponentImageOption extends GraphicComponentDisplayableOption {\n type?: 'image';\n style?: ImageStyleProps;\n // TODO: states?\n // emphasis?: GraphicComponentImageOptionOnState;\n // blur?: GraphicComponentImageOptionOnState;\n // select?: GraphicComponentImageOptionOnState;\n}\n// TODO: states?\n// interface GraphicComponentImageOptionOnState extends GraphicComponentDisplayableOptionOnState {\n// style?: ImageStyleProps;\n// }\ninterface GraphicComponentTextOption\n extends Omit {\n type?: 'text';\n style?: TextStyleProps;\n}\ntype GraphicComponentElementOption =\n GraphicComponentGroupOption\n | GraphicComponentZRPathOption\n | GraphicComponentImageOption\n | GraphicComponentTextOption;\n// type GraphicComponentElementOptionOnState =\n// GraphicComponentDisplayableOptionOnState\n// | GraphicComponentImageOptionOnState;\n\ntype GraphicExtraElementInfo = Dictionary;\n\ntype ElementMap = zrUtil.HashMap;\n\nconst inner = modelUtil.makeInner<{\n __ecGraphicWidthOption: number;\n __ecGraphicHeightOption: number;\n __ecGraphicWidth: number;\n __ecGraphicHeight: number;\n __ecGraphicId: string;\n}, Element>();\n\n\nconst _nonShapeGraphicElements = {\n\n // Reserved but not supported in graphic component.\n path: null as unknown,\n compoundPath: null as unknown,\n\n // Supported in graphic component.\n group: graphicUtil.Group,\n image: graphicUtil.Image,\n text: graphicUtil.Text\n} as const;\ntype NonShapeGraphicElementType = keyof typeof _nonShapeGraphicElements;\n\n// ------------------------\n// Preprocessor\n// ------------------------\n\nconst preprocessor: OptionPreprocessor = function (option) {\n const graphicOption = option.graphic as GraphicComponentOption | GraphicComponentOption[];\n\n // Convert\n // {graphic: [{left: 10, type: 'circle'}, ...]}\n // or\n // {graphic: {left: 10, type: 'circle'}}\n // to\n // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}\n if (zrUtil.isArray(graphicOption)) {\n if (!graphicOption[0] || !graphicOption[0].elements) {\n option.graphic = [{elements: graphicOption}];\n }\n else {\n // Only one graphic instance can be instantiated. (We dont\n // want that too many views are created in echarts._viewMap)\n option.graphic = [(option.graphic as any)[0]];\n }\n }\n else if (graphicOption && !graphicOption.elements) {\n option.graphic = [{elements: [graphicOption]}];\n }\n};\n\n// ------------------------\n// Model\n// ------------------------\n\nexport type GraphicComponentLooseOption = (GraphicComponentOption | GraphicComponentElementOption) & {\n mainType?: 'graphic';\n};\n\nexport interface GraphicComponentOption extends ComponentOption {\n // Note: elements is always behind its ancestors in this elements array.\n elements?: GraphicComponentElementOption[];\n // parentId: string;\n};\n\n\nclass GraphicComponentModel extends ComponentModel {\n\n static type = 'graphic';\n type = GraphicComponentModel.type;\n\n preventAutoZ = true;\n\n static defaultOption: GraphicComponentOption = {\n elements: []\n // parentId: null\n };\n\n /**\n * Save el options for the sake of the performance (only update modified graphics).\n * The order is the same as those in option. (ancesters -> descendants)\n */\n private _elOptionsToUpdate: GraphicComponentElementOption[];\n\n mergeOption(option: GraphicComponentOption, ecModel: GlobalModel): void {\n // Prevent default merge to elements\n const elements = this.option.elements;\n this.option.elements = null;\n\n super.mergeOption(option, ecModel);\n\n this.option.elements = elements;\n }\n\n optionUpdated(newOption: GraphicComponentOption, isInit: boolean): void {\n const thisOption = this.option;\n const newList = (isInit ? thisOption : newOption).elements;\n const existList = thisOption.elements = isInit ? [] : thisOption.elements;\n\n const flattenedList = [] as GraphicComponentElementOption[];\n this._flatten(newList, flattenedList, null);\n\n const mappingResult = modelUtil.mappingToExists(existList, flattenedList, 'normalMerge');\n\n // Clear elOptionsToUpdate\n const elOptionsToUpdate = this._elOptionsToUpdate = [] as GraphicComponentElementOption[];\n\n zrUtil.each(mappingResult, function (resultItem, index) {\n const newElOption = resultItem.newOption as GraphicComponentElementOption;\n\n if (__DEV__) {\n zrUtil.assert(\n zrUtil.isObject(newElOption) || resultItem.existing,\n 'Empty graphic option definition'\n );\n }\n\n if (!newElOption) {\n return;\n }\n\n elOptionsToUpdate.push(newElOption);\n\n setKeyInfoToNewElOption(resultItem, newElOption);\n\n mergeNewElOptionToExist(existList, index, newElOption);\n\n setLayoutInfoToExist(existList[index], newElOption);\n\n }, this);\n\n // Clean\n for (let i = existList.length - 1; i >= 0; i--) {\n if (existList[i] == null) {\n existList.splice(i, 1);\n }\n else {\n // $action should be volatile, otherwise option gotten from\n // `getOption` will contain unexpected $action.\n delete existList[i].$action;\n }\n }\n }\n\n /**\n * Convert\n * [{\n * type: 'group',\n * id: 'xx',\n * children: [{type: 'circle'}, {type: 'polygon'}]\n * }]\n * to\n * [\n * {type: 'group', id: 'xx'},\n * {type: 'circle', parentId: 'xx'},\n * {type: 'polygon', parentId: 'xx'}\n * ]\n */\n private _flatten(\n optionList: GraphicComponentElementOption[],\n result: GraphicComponentElementOption[],\n parentOption: GraphicComponentElementOption\n ): void {\n zrUtil.each(optionList, function (option) {\n if (!option) {\n return;\n }\n\n if (parentOption) {\n option.parentOption = parentOption;\n }\n\n result.push(option);\n\n const children = option.children;\n if (option.type === 'group' && children) {\n this._flatten(children, result, option);\n }\n // Deleting for JSON output, and for not affecting group creation.\n delete option.children;\n }, this);\n }\n\n // FIXME\n // Pass to view using payload? setOption has a payload?\n useElOptionsToUpdate(): GraphicComponentElementOption[] {\n const els = this._elOptionsToUpdate;\n // Clear to avoid render duplicately when zooming.\n this._elOptionsToUpdate = null;\n return els;\n }\n}\n\n// ------------------------\n// View\n// ------------------------\n\nclass GraphicComponentView extends ComponentView {\n\n static type = 'graphic';\n type = GraphicComponentView.type;\n\n private _elMap: ElementMap;\n private _lastGraphicModel: GraphicComponentModel;\n\n init() {\n this._elMap = zrUtil.createHashMap();\n }\n\n render(graphicModel: GraphicComponentModel, ecModel: GlobalModel, api: ExtensionAPI): void {\n\n // Having leveraged between use cases and algorithm complexity, a very\n // simple layout mechanism is used:\n // The size(width/height) can be determined by itself or its parent (not\n // implemented yet), but can not by its children. (Top-down travel)\n // The location(x/y) can be determined by the bounding rect of itself\n // (can including its descendants or not) and the size of its parent.\n // (Bottom-up travel)\n\n // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,\n // view will be reused.\n if (graphicModel !== this._lastGraphicModel) {\n this._clear();\n }\n this._lastGraphicModel = graphicModel;\n\n this._updateElements(graphicModel);\n this._relocate(graphicModel, api);\n }\n\n /**\n * Update graphic elements.\n */\n private _updateElements(graphicModel: GraphicComponentModel): void {\n const elOptionsToUpdate = graphicModel.useElOptionsToUpdate();\n\n if (!elOptionsToUpdate) {\n return;\n }\n\n const elMap = this._elMap;\n const rootGroup = this.group;\n\n // Top-down tranverse to assign graphic settings to each elements.\n zrUtil.each(elOptionsToUpdate, function (elOption) {\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const elExisting = id != null ? elMap.get(id) : null;\n const parentId = modelUtil.convertOptionIdName(elOption.parentId, null);\n const targetElParent = (parentId != null ? elMap.get(parentId) : rootGroup) as graphicUtil.Group;\n\n const elType = elOption.type;\n const elOptionStyle = (elOption as GraphicComponentDisplayableOption).style;\n if (elType === 'text' && elOptionStyle) {\n // In top/bottom mode, textVerticalAlign should not be used, which cause\n // inaccurately locating.\n if (elOption.hv && elOption.hv[1]) {\n (elOptionStyle as any).textVerticalAlign =\n (elOptionStyle as any).textBaseline =\n (elOptionStyle as TextStyleProps).verticalAlign =\n (elOptionStyle as TextStyleProps).align = null;\n }\n }\n\n let textContentOption = (elOption as GraphicComponentZRPathOption).textContent;\n let textConfig = (elOption as GraphicComponentZRPathOption).textConfig;\n if (elOptionStyle\n && isEC4CompatibleStyle(elOptionStyle, elType, !!textConfig, !!textContentOption)\n ) {\n const convertResult =\n convertFromEC4CompatibleStyle(elOptionStyle, elType, true) as GraphicComponentZRPathOption;\n if (!textConfig && convertResult.textConfig) {\n textConfig = (elOption as GraphicComponentZRPathOption).textConfig = convertResult.textConfig;\n }\n if (!textContentOption && convertResult.textContent) {\n textContentOption = convertResult.textContent;\n }\n }\n\n // Remove unnecessary props to avoid potential problems.\n const elOptionCleaned = getCleanedElOption(elOption);\n\n // For simple, do not support parent change, otherwise reorder is needed.\n if (__DEV__) {\n elExisting && zrUtil.assert(\n targetElParent === elExisting.parent,\n 'Changing parent is not supported.'\n );\n }\n\n const $action = elOption.$action || 'merge';\n if ($action === 'merge') {\n elExisting\n ? elExisting.attr(elOptionCleaned)\n : createEl(id, targetElParent, elOptionCleaned, elMap);\n }\n else if ($action === 'replace') {\n removeEl(elExisting, elMap);\n createEl(id, targetElParent, elOptionCleaned, elMap);\n }\n else if ($action === 'remove') {\n removeEl(elExisting, elMap);\n }\n\n const el = elMap.get(id);\n\n if (el && textContentOption) {\n if ($action === 'merge') {\n const textContentExisting = el.getTextContent();\n textContentExisting\n ? textContentExisting.attr(textContentOption)\n : el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n else if ($action === 'replace') {\n el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n }\n\n if (el) {\n const elInner = inner(el);\n elInner.__ecGraphicWidthOption = (elOption as GraphicComponentGroupOption).width;\n elInner.__ecGraphicHeightOption = (elOption as GraphicComponentGroupOption).height;\n setEventData(el, graphicModel, elOption);\n\n graphicUtil.setTooltipConfig({\n el: el,\n componentModel: graphicModel,\n itemName: el.name,\n itemTooltipOption: elOption.tooltip\n });\n }\n });\n }\n\n /**\n * Locate graphic elements.\n */\n private _relocate(graphicModel: GraphicComponentModel, api: ExtensionAPI): void {\n const elOptions = graphicModel.option.elements;\n const rootGroup = this.group;\n const elMap = this._elMap;\n const apiWidth = api.getWidth();\n const apiHeight = api.getHeight();\n\n // Top-down to calculate percentage width/height of group\n for (let i = 0; i < elOptions.length; i++) {\n const elOption = elOptions[i];\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const el = id != null ? elMap.get(id) : null;\n\n if (!el || !el.isGroup) {\n continue;\n }\n const parentEl = el.parent;\n const isParentRoot = parentEl === rootGroup;\n // Like 'position:absolut' in css, default 0.\n const elInner = inner(el);\n const parentElInner = inner(parentEl);\n elInner.__ecGraphicWidth = parsePercent(\n elInner.__ecGraphicWidthOption,\n isParentRoot ? apiWidth : parentElInner.__ecGraphicWidth\n ) || 0;\n elInner.__ecGraphicHeight = parsePercent(\n elInner.__ecGraphicHeightOption,\n isParentRoot ? apiHeight : parentElInner.__ecGraphicHeight\n ) || 0;\n }\n\n // Bottom-up tranvese all elements (consider ec resize) to locate elements.\n for (let i = elOptions.length - 1; i >= 0; i--) {\n const elOption = elOptions[i];\n const id = modelUtil.convertOptionIdName(elOption.id, null);\n const el = id != null ? elMap.get(id) : null;\n\n if (!el) {\n continue;\n }\n\n const parentEl = el.parent;\n const parentElInner = inner(parentEl);\n const containerInfo = parentEl === rootGroup\n ? {\n width: apiWidth,\n height: apiHeight\n }\n : {\n width: parentElInner.__ecGraphicWidth,\n height: parentElInner.__ecGraphicHeight\n };\n\n // PENDING\n // Currently, when `bounding: 'all'`, the union bounding rect of the group\n // does not include the rect of [0, 0, group.width, group.height], which\n // is probably weird for users. Should we make a break change for it?\n layoutUtil.positionElement(\n el, elOption, containerInfo, null,\n {hv: elOption.hv, boundingMode: elOption.bounding}\n );\n }\n }\n\n /**\n * Clear all elements.\n */\n private _clear(): void {\n const elMap = this._elMap;\n elMap.each(function (el) {\n removeEl(el, elMap);\n });\n this._elMap = zrUtil.createHashMap();\n }\n\n dispose(): void {\n this._clear();\n }\n}\n\nfunction createEl(\n id: string,\n targetElParent: graphicUtil.Group,\n elOption: GraphicComponentElementOption,\n elMap: ElementMap\n): void {\n const graphicType = elOption.type;\n\n if (__DEV__) {\n zrUtil.assert(graphicType, 'graphic type MUST be set');\n }\n\n const Clz = (\n zrUtil.hasOwn(_nonShapeGraphicElements, graphicType)\n // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n ? _nonShapeGraphicElements[graphicType as NonShapeGraphicElementType]\n : graphicUtil.getShapeClass(graphicType)\n ) as { new(opt: GraphicComponentElementOption): Element };\n\n if (__DEV__) {\n zrUtil.assert(Clz, 'graphic type can not be found');\n }\n\n const el = new Clz(elOption);\n targetElParent.add(el);\n elMap.set(id, el);\n inner(el).__ecGraphicId = id;\n}\n\nfunction removeEl(elExisting: Element, elMap: ElementMap): void {\n const existElParent = elExisting && elExisting.parent;\n if (existElParent) {\n elExisting.type === 'group' && elExisting.traverse(function (el) {\n removeEl(el, elMap);\n });\n elMap.removeKey(inner(elExisting).__ecGraphicId);\n existElParent.remove(elExisting);\n }\n}\n\n// Remove unnecessary props to avoid potential problems.\nfunction getCleanedElOption(\n elOption: GraphicComponentElementOption\n): Omit {\n elOption = zrUtil.extend({}, elOption);\n zrUtil.each(\n ['id', 'parentId', '$action', 'hv', 'bounding', 'textContent'].concat(layoutUtil.LOCATION_PARAMS),\n function (name) {\n delete (elOption as any)[name];\n }\n );\n return elOption;\n}\n\nfunction isSetLoc(\n obj: GraphicComponentElementOption,\n props: ('left' | 'right' | 'top' | 'bottom')[]\n): boolean {\n let isSet;\n zrUtil.each(props, function (prop) {\n obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);\n });\n return isSet;\n}\n\nfunction setKeyInfoToNewElOption(\n resultItem: ReturnType[number],\n newElOption: GraphicComponentElementOption\n): void {\n const existElOption = resultItem.existing as GraphicComponentElementOption;\n\n // Set id and type after id assigned.\n newElOption.id = resultItem.keyInfo.id;\n !newElOption.type && existElOption && (newElOption.type = existElOption.type);\n\n // Set parent id if not specified\n if (newElOption.parentId == null) {\n const newElParentOption = newElOption.parentOption;\n if (newElParentOption) {\n newElOption.parentId = newElParentOption.id;\n }\n else if (existElOption) {\n newElOption.parentId = existElOption.parentId;\n }\n }\n\n // Clear\n newElOption.parentOption = null;\n}\n\nfunction mergeNewElOptionToExist(\n existList: GraphicComponentElementOption[],\n index: number,\n newElOption: GraphicComponentElementOption\n): void {\n // Update existing options, for `getOption` feature.\n const newElOptCopy = zrUtil.extend({}, newElOption);\n const existElOption = existList[index];\n\n const $action = newElOption.$action || 'merge';\n if ($action === 'merge') {\n if (existElOption) {\n\n if (__DEV__) {\n const newType = newElOption.type;\n zrUtil.assert(\n !newType || existElOption.type === newType,\n 'Please set $action: \"replace\" to change `type`'\n );\n }\n\n // We can ensure that newElOptCopy and existElOption are not\n // the same object, so `merge` will not change newElOptCopy.\n zrUtil.merge(existElOption, newElOptCopy, true);\n // Rigid body, use ignoreSize.\n layoutUtil.mergeLayoutParam(existElOption, newElOptCopy, {ignoreSize: true});\n // Will be used in render.\n layoutUtil.copyLayoutParams(newElOption, existElOption);\n }\n else {\n existList[index] = newElOptCopy;\n }\n }\n else if ($action === 'replace') {\n existList[index] = newElOptCopy;\n }\n else if ($action === 'remove') {\n // null will be cleaned later.\n existElOption && (existList[index] = null);\n }\n}\n\nfunction setLayoutInfoToExist(\n existItem: GraphicComponentElementOption,\n newElOption: GraphicComponentElementOption\n) {\n if (!existItem) {\n return;\n }\n existItem.hv = newElOption.hv = [\n // Rigid body, dont care `width`.\n isSetLoc(newElOption, ['left', 'right']),\n // Rigid body, dont care `height`.\n isSetLoc(newElOption, ['top', 'bottom'])\n ];\n // Give default group size. Otherwise layout error may occur.\n if (existItem.type === 'group') {\n const existingGroupOpt = existItem as GraphicComponentGroupOption;\n const newGroupOpt = newElOption as GraphicComponentGroupOption;\n existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0);\n existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0);\n }\n}\n\nfunction setEventData(\n el: Element,\n graphicModel: GraphicComponentModel,\n elOption: GraphicComponentElementOption\n): void {\n let eventData = getECData(el).eventData;\n // Simple optimize for large amount of elements that no need event.\n if (!el.silent && !el.ignore && !eventData) {\n eventData = getECData(el).eventData = {\n componentType: 'graphic',\n componentIndex: graphicModel.componentIndex,\n name: el.name\n };\n }\n\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n if (eventData) {\n eventData.info = elOption.info;\n }\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(GraphicComponentModel);\n registers.registerComponentView(GraphicComponentView);\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport DataZoomModel from './DataZoomModel';\nimport { indexOf, createHashMap, assert, HashMap } from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\n\n\nexport interface DataZoomPayloadBatchItem {\n dataZoomId: string;\n start?: number;\n end?: number;\n startValue?: number;\n endValue?: number;\n}\n\nexport interface DataZoomReferCoordSysInfo {\n model: CoordinateSystemHostModel;\n // Notice: if two dataZooms refer the same coordinamte system model,\n // (1) The axis they refered may different\n // (2) The sequence the axisModels matters, may different in\n // different dataZooms.\n axisModels: AxisBaseModel[];\n}\n\nexport const DATA_ZOOM_AXIS_DIMENSIONS = [\n 'x', 'y', 'radius', 'angle', 'single'\n] as const;\nexport type DataZoomAxisDimension =\n 'x' | 'y' | 'radius' | 'angle' | 'single';\ntype DataZoomAxisMainType =\n 'xAxis' | 'yAxis' | 'radiusAxis' | 'angleAxis' | 'singleAxis';\ntype DataZoomAxisIndexPropName =\n 'xAxisIndex' | 'yAxisIndex' | 'radiusAxisIndex' | 'angleAxisIndex' | 'singleAxisIndex';\ntype DataZoomAxisIdPropName =\n 'xAxisId' | 'yAxisId' | 'radiusAxisId' | 'angleAxisId' | 'singleAxisId';\nexport type DataZoomCoordSysMainType = 'polar' | 'grid' | 'singleAxis';\n\n// Supported coords.\n// FIXME: polar has been broken (but rarely used).\nconst SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis'] as const;\n\nexport function isCoordSupported(seriesModel: SeriesModel): boolean {\n const coordType = seriesModel.get('coordinateSystem');\n return indexOf(SERIES_COORDS, coordType) >= 0;\n}\n\nexport function getAxisMainType(axisDim: DataZoomAxisDimension): DataZoomAxisMainType {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'Axis' as DataZoomAxisMainType;\n}\n\nexport function getAxisIndexPropName(axisDim: DataZoomAxisDimension): DataZoomAxisIndexPropName {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'AxisIndex' as DataZoomAxisIndexPropName;\n}\n\nexport function getAxisIdPropName(axisDim: DataZoomAxisDimension): DataZoomAxisIdPropName {\n if (__DEV__) {\n assert(axisDim);\n }\n return axisDim + 'AxisId' as DataZoomAxisIdPropName;\n}\n\n/**\n * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.\n * This function finds all linked dataZoomModels start from the given payload.\n */\nexport function findEffectedDataZooms(ecModel: GlobalModel, payload: Payload): DataZoomModel[] {\n\n // Key: `DataZoomAxisDimension`\n const axisRecords = createHashMap();\n const effectedModels: DataZoomModel[] = [];\n // Key: uid of dataZoomModel\n const effectedModelMap = createHashMap();\n\n // Find the dataZooms specified by payload.\n ecModel.eachComponent(\n { mainType: 'dataZoom', query: payload },\n function (dataZoomModel: DataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid)) {\n addToEffected(dataZoomModel);\n }\n }\n );\n\n // Start from the given dataZoomModels, travel the graph to find\n // all of the linked dataZoom models.\n let foundNewLink;\n do {\n foundNewLink = false;\n ecModel.eachComponent('dataZoom', processSingle);\n }\n while (foundNewLink);\n\n function processSingle(dataZoomModel: DataZoomModel): void {\n if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) {\n addToEffected(dataZoomModel);\n foundNewLink = true;\n }\n }\n\n function addToEffected(dataZoom: DataZoomModel): void {\n effectedModelMap.set(dataZoom.uid, true);\n effectedModels.push(dataZoom);\n markAxisControlled(dataZoom);\n }\n\n function isLinked(dataZoomModel: DataZoomModel): boolean {\n let isLink = false;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisIdxArr = axisRecords.get(axisDim);\n if (axisIdxArr && axisIdxArr[axisIndex]) {\n isLink = true;\n }\n });\n return isLink;\n }\n\n function markAxisControlled(dataZoomModel: DataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n (\n axisRecords.get(axisDim) || axisRecords.set(axisDim, [])\n )[axisIndex] = true;\n });\n }\n\n return effectedModels;\n}\n\n/**\n * Find the first target coordinate system.\n * Available after model built.\n *\n * @return Like {\n * grid: [\n * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},\n * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},\n * ...\n * ], // cartesians must not be null/undefined.\n * polar: [\n * {model: coord0, axisModels: [axis4], coordIndex: 0},\n * ...\n * ], // polars must not be null/undefined.\n * singleAxis: [\n * {model: coord0, axisModels: [], coordIndex: 0}\n * ]\n * }\n */\nexport function collectReferCoordSysModelInfo(dataZoomModel: DataZoomModel): {\n infoList: DataZoomReferCoordSysInfo[];\n // Key: coordSysModel.uid\n infoMap: HashMap;\n} {\n const ecModel = dataZoomModel.ecModel;\n const coordSysInfoWrap = {\n infoList: [] as DataZoomReferCoordSysInfo[],\n infoMap: createHashMap()\n };\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel;\n if (!axisModel) {\n return;\n }\n const coordSysModel = axisModel.getCoordSysModel();\n if (!coordSysModel) {\n return;\n }\n\n const coordSysUid = coordSysModel.uid;\n let coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid);\n if (!coordSysInfo) {\n coordSysInfo = { model: coordSysModel, axisModels: [] };\n coordSysInfoWrap.infoList.push(coordSysInfo);\n coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo);\n }\n\n coordSysInfo.axisModels.push(axisModel);\n });\n\n return coordSysInfoWrap;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { each, createHashMap, merge, HashMap, assert } from 'zrender/src/core/util';\nimport AxisProxy from './AxisProxy';\nimport ComponentModel from '../../model/Component';\nimport {\n LayoutOrient,\n ComponentOption,\n LabelOption\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport {\n getAxisMainType, DATA_ZOOM_AXIS_DIMENSIONS, DataZoomAxisDimension\n} from './helper';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport { MULTIPLE_REFERRING, SINGLE_REFERRING } from '../../util/model';\n\n\nexport interface DataZoomOption extends ComponentOption {\n\n mainType?: 'dataZoom'\n\n /**\n * Default auto by axisIndex\n */\n orient?: LayoutOrient\n\n /**\n * Default the first horizontal category axis.\n */\n xAxisIndex?: number | number[]\n xAxisId?: string | string[]\n\n /**\n * Default the first vertical category axis.\n */\n yAxisIndex?: number | number[]\n yAxisId?: string | string[]\n\n radiusAxisIndex?: number | number[]\n radiusAxisId?: string | string[]\n angleAxisIndex?: number | number[]\n angleAxisId?: string | string[]\n\n singleAxisIndex?: number | number[]\n singleAxisId?: string | string[]\n\n /**\n * Possible values: 'filter' or 'empty' or 'weakFilter'.\n * 'filter': data items which are out of window will be removed. This option is\n * applicable when filtering outliers. For each data item, it will be\n * filtered if one of the relevant dimensions is out of the window.\n * 'weakFilter': data items which are out of window will be removed. This option\n * is applicable when filtering outliers. For each data item, it will be\n * filtered only if all of the relevant dimensions are out of the same\n * side of the window.\n * 'empty': data items which are out of window will be set to empty.\n * This option is applicable when user should not neglect\n * that there are some data items out of window.\n * 'none': Do not filter.\n * Taking line chart as an example, line will be broken in\n * the filtered points when filterModel is set to 'empty', but\n * be connected when set to 'filter'.\n */\n filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'\n\n /**\n * Dispatch action by the fixed rate, avoid frequency.\n * default 100. Do not throttle when use null/undefined.\n * If animation === true and animationDurationUpdate > 0,\n * default value is 100, otherwise 20.\n */\n throttle?: number | null | undefined\n /**\n * Start percent. 0 ~ 100\n */\n start?: number\n /**\n * End percent. 0 ~ 100\n */\n end?: number\n /**\n * Start value. If startValue specified, start is ignored\n */\n startValue?: number | string | Date\n /**\n * End value. If endValue specified, end is ignored.\n */\n endValue?: number | string | Date\n /**\n * Min span percent, 0 - 100\n * The range of dataZoom can not be smaller than that.\n */\n minSpan?: number\n /**\n * Max span percent, 0 - 100\n * The range of dataZoom can not be larger than that.\n */\n maxSpan?: number\n\n minValueSpan?: number\n\n maxValueSpan?: number\n\n rangeMode?: ['value' | 'percent', 'value' | 'percent']\n\n realtime?: boolean\n\n // Available when type is slider\n textStyle?: LabelOption\n}\n\ntype RangeOption = Pick;\n\nexport type DataZoomExtendedAxisBaseModel = AxisBaseModel & {\n __dzAxisProxy: AxisProxy\n};\n\nclass DataZoomAxisInfo {\n indexList: number[] = [];\n indexMap: boolean[] = [];\n\n add(axisCmptIdx: number) {\n // Remove duplication.\n if (!this.indexMap[axisCmptIdx]) {\n this.indexList.push(axisCmptIdx);\n this.indexMap[axisCmptIdx] = true;\n }\n }\n}\nexport type DataZoomTargetAxisInfoMap = HashMap;\n\nclass DataZoomModel extends ComponentModel {\n static type = 'dataZoom';\n type = DataZoomModel.type;\n\n static dependencies = [\n 'xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox'\n ];\n\n\n static defaultOption: DataZoomOption = {\n zlevel: 0,\n z: 4, // Higher than normal component (z: 2).\n\n filterMode: 'filter',\n\n start: 0,\n end: 100\n };\n\n private _autoThrottle = true;\n\n private _orient: LayoutOrient;\n\n private _targetAxisInfoMap: DataZoomTargetAxisInfoMap;\n\n private _noTarget: boolean = true;\n\n /**\n * It is `[rangeModeForMin, rangeModeForMax]`.\n * The optional values for `rangeMode`:\n * + `'value'` mode: the axis extent will always be determined by\n * `dataZoom.startValue` and `dataZoom.endValue`, despite\n * how data like and how `axis.min` and `axis.max` are.\n * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,\n * where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,\n * and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.\n * Axis extent will be determined by the result of the percent of `[dMin, dMax]`.\n *\n * For example, when users are using dynamic data (update data periodically via `setOption`),\n * if in `'value`' mode, the window will be kept in a fixed value range despite how\n * data are appended, while if in `'percent'` mode, whe window range will be changed alone with\n * the appended data (suppose `axis.min` and `axis.max` are not specified).\n */\n private _rangePropMode: DataZoomOption['rangeMode'] = ['percent', 'percent'];\n\n /**\n * @readonly\n */\n settledOption: Opts;\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel): void {\n\n const inputRawOption = retrieveRawOption(option);\n\n /**\n * Suppose a \"main process\" start at the point that model prepared (that is,\n * model initialized or merged or method called in `action`).\n * We should keep the `main process` idempotent, that is, given a set of values\n * on `option`, we get the same result.\n *\n * But sometimes, values on `option` will be updated for providing users\n * a \"final calculated value\" (`dataZoomProcessor` will do that). Those value\n * should not be the base/input of the `main process`.\n *\n * So in that case we should save and keep the input of the `main process`\n * separately, called `settledOption`.\n *\n * For example, consider the case:\n * (Step_1) brush zoom the grid by `toolbox.dataZoom`,\n * where the original input `option.startValue`, `option.endValue` are earsed by\n * calculated value.\n * (Step)2) click the legend to hide and show a series,\n * where the new range is calculated by the earsed `startValue` and `endValue`,\n * which brings incorrect result.\n */\n this.settledOption = inputRawOption;\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._doInit(inputRawOption);\n }\n\n mergeOption(newOption: Opts): void {\n const inputRawOption = retrieveRawOption(newOption);\n\n //FIX #2591\n merge(this.option, newOption, true);\n merge(this.settledOption, inputRawOption, true);\n\n this._doInit(inputRawOption);\n }\n\n private _doInit(inputRawOption: Opts): void {\n const thisOption = this.option;\n\n // if (!env.canvasSupported) {\n // thisOption.realtime = false;\n // }\n\n this._setDefaultThrottle(inputRawOption);\n\n this._updateRangeUse(inputRawOption);\n\n const settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names, index) {\n // start/end has higher priority over startValue/endValue if they\n // both set, but we should make chart.setOption({endValue: 1000})\n // effective, rather than chart.setOption({endValue: 1000, end: null}).\n if (this._rangePropMode[index] === 'value') {\n thisOption[names[0]] = settledOption[names[0]] = null;\n }\n // Otherwise do nothing and use the merge result.\n }, this);\n\n this._resetTarget();\n }\n\n private _resetTarget() {\n const optionOrient = this.get('orient', true);\n const targetAxisIndexMap = this._targetAxisInfoMap = createHashMap();\n\n const hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap);\n\n if (hasAxisSpecified) {\n this._orient = optionOrient || this._makeAutoOrientByTargetAxis();\n }\n else {\n this._orient = optionOrient || 'horizontal';\n this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient);\n }\n\n this._noTarget = true;\n targetAxisIndexMap.each(function (axisInfo) {\n if (axisInfo.indexList.length) {\n this._noTarget = false;\n }\n }, this);\n }\n\n private _fillSpecifiedTargetAxis(targetAxisIndexMap: DataZoomTargetAxisInfoMap): boolean {\n let hasAxisSpecified = false;\n\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n const refering = this.getReferringComponents(getAxisMainType(axisDim), MULTIPLE_REFERRING);\n // When user set axisIndex as a empty array, we think that user specify axisIndex\n // but do not want use auto mode. Because empty array may be encountered when\n // some error occured.\n if (!refering.specified) {\n return;\n }\n hasAxisSpecified = true;\n const axisInfo = new DataZoomAxisInfo();\n each(refering.models, function (axisModel) {\n axisInfo.add(axisModel.componentIndex);\n });\n targetAxisIndexMap.set(axisDim, axisInfo);\n }, this);\n\n return hasAxisSpecified;\n }\n\n private _fillAutoTargetAxisByOrient(targetAxisIndexMap: DataZoomTargetAxisInfoMap, orient: LayoutOrient): void {\n const ecModel = this.ecModel;\n let needAuto = true;\n\n // Find axis that parallel to dataZoom as default.\n if (needAuto) {\n const axisDim = orient === 'vertical' ? 'y' : 'x';\n const axisModels = ecModel.findComponents({ mainType: axisDim + 'Axis' });\n setParallelAxis(axisModels, axisDim);\n }\n // Find axis that parallel to dataZoom as default.\n if (needAuto) {\n const axisModels = ecModel.findComponents({\n mainType: 'singleAxis',\n filter: (axisModel: SingleAxisModel) => axisModel.get('orient', true) === orient\n });\n setParallelAxis(axisModels, 'single');\n }\n\n function setParallelAxis(axisModels: ComponentModel[], axisDim: DataZoomAxisDimension): void {\n // At least use the first parallel axis as the target axis.\n const axisModel = axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModel.componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n\n // Find parallel axes in the same grid.\n if (axisDim === 'x' || axisDim === 'y') {\n const gridModel = axisModel.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n gridModel && each(axisModels, function (axModel) {\n if (axisModel.componentIndex !== axModel.componentIndex\n && gridModel === axModel.getReferringComponents('grid', SINGLE_REFERRING).models[0]\n ) {\n axisInfo.add(axModel.componentIndex);\n }\n });\n }\n }\n\n if (needAuto) {\n // If no parallel axis, find the first category axis as default. (Also consider polar).\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n if (!needAuto) {\n return;\n }\n const axisModels = ecModel.findComponents({\n mainType: getAxisMainType(axisDim),\n filter: (axisModel: SingleAxisModel) => axisModel.get('type', true) === 'category'\n });\n if (axisModels[0]) {\n const axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModels[0].componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n }\n }, this);\n }\n }\n\n private _makeAutoOrientByTargetAxis(): LayoutOrient {\n let dim: string;\n\n // Find the first axis\n this.eachTargetAxis(function (axisDim) {\n !dim && (dim = axisDim);\n }, this);\n\n return dim === 'y' ? 'vertical' : 'horizontal';\n }\n\n private _setDefaultThrottle(inputRawOption: DataZoomOption): void {\n // When first time user set throttle, auto throttle ends.\n if (inputRawOption.hasOwnProperty('throttle')) {\n this._autoThrottle = false;\n }\n if (this._autoThrottle) {\n const globalOption = this.ecModel.option;\n this.option.throttle = (\n globalOption.animation && globalOption.animationDurationUpdate > 0\n ) ? 100 : 20;\n }\n }\n\n private _updateRangeUse(inputRawOption: RangeOption): void {\n const rangePropMode = this._rangePropMode;\n const rangeModeInOption = this.get('rangeMode');\n\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names, index) {\n const percentSpecified = inputRawOption[names[0]] != null;\n const valueSpecified = inputRawOption[names[1]] != null;\n if (percentSpecified && !valueSpecified) {\n rangePropMode[index] = 'percent';\n }\n else if (!percentSpecified && valueSpecified) {\n rangePropMode[index] = 'value';\n }\n else if (rangeModeInOption) {\n rangePropMode[index] = rangeModeInOption[index];\n }\n else if (percentSpecified) { // percentSpecified && valueSpecified\n rangePropMode[index] = 'percent';\n }\n // else remain its original setting.\n });\n }\n\n noTarget(): boolean {\n return this._noTarget;\n }\n\n getFirstTargetAxisModel(): AxisBaseModel {\n let firstAxisModel: AxisBaseModel;\n this.eachTargetAxis(function (axisDim, axisIndex) {\n if (firstAxisModel == null) {\n firstAxisModel = this.ecModel.getComponent(\n getAxisMainType(axisDim), axisIndex\n ) as AxisBaseModel;\n }\n }, this);\n\n return firstAxisModel;\n }\n\n /**\n * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel\n */\n eachTargetAxis(\n callback: (\n this: Ctx,\n axisDim: DataZoomAxisDimension,\n axisIndex: number\n ) => void,\n context?: Ctx\n ): void {\n this._targetAxisInfoMap.each(function (axisInfo, axisDim) {\n each(axisInfo.indexList, function (axisIndex) {\n callback.call(context, axisDim, axisIndex);\n });\n });\n }\n\n /**\n * @return If not found, return null/undefined.\n */\n getAxisProxy(axisDim: DataZoomAxisDimension, axisIndex: number): AxisProxy {\n const axisModel = this.getAxisModel(axisDim, axisIndex);\n if (axisModel) {\n return (axisModel as DataZoomExtendedAxisBaseModel).__dzAxisProxy;\n }\n }\n\n /**\n * @return If not found, return null/undefined.\n */\n getAxisModel(axisDim: DataZoomAxisDimension, axisIndex: number): AxisBaseModel {\n if (__DEV__) {\n assert(axisDim && axisIndex != null);\n }\n const axisInfo = this._targetAxisInfoMap.get(axisDim);\n if (axisInfo && axisInfo.indexMap[axisIndex]) {\n return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel;\n }\n }\n\n /**\n * If not specified, set to undefined.\n */\n setRawRange(opt: RangeOption): void {\n const thisOption = this.option;\n const settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']] as const, function (names) {\n // Consider the pair :\n // If one has value and the other one is `null/undefined`, we both set them\n // to `settledOption`. This strategy enables the feature to clear the original\n // value in `settledOption` to `null/undefined`.\n // But if both of them are `null/undefined`, we do not set them to `settledOption`\n // and keep `settledOption` with the original value. This strategy enables users to\n // only set but not set when calling\n // `dispatchAction`.\n // The pair is treated in the same way.\n if (opt[names[0]] != null || opt[names[1]] != null) {\n thisOption[names[0]] = settledOption[names[0]] = opt[names[0]];\n thisOption[names[1]] = settledOption[names[1]] = opt[names[1]];\n }\n }, this);\n\n this._updateRangeUse(opt);\n }\n\n setCalculatedRange(opt: RangeOption): void {\n const option = this.option;\n each(['start', 'startValue', 'end', 'endValue'] as const, function (name) {\n (option as any)[name] = opt[name];\n });\n }\n\n getPercentRange(): number[] {\n const axisProxy = this.findRepresentativeAxisProxy();\n if (axisProxy) {\n return axisProxy.getDataPercentWindow();\n }\n }\n\n /**\n * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);\n *\n * @return [startValue, endValue] value can only be '-' or finite number.\n */\n getValueRange(axisDim: DataZoomAxisDimension, axisIndex: number): number[] {\n if (axisDim == null && axisIndex == null) {\n const axisProxy = this.findRepresentativeAxisProxy();\n if (axisProxy) {\n return axisProxy.getDataValueWindow();\n }\n }\n else {\n return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();\n }\n }\n\n /**\n * @param axisModel If axisModel given, find axisProxy\n * corresponding to the axisModel\n */\n findRepresentativeAxisProxy(axisModel?: AxisBaseModel): AxisProxy {\n if (axisModel) {\n return (axisModel as DataZoomExtendedAxisBaseModel).__dzAxisProxy;\n }\n\n // Find the first hosted axisProxy\n let firstProxy;\n const axisDimList = this._targetAxisInfoMap.keys();\n for (let i = 0; i < axisDimList.length; i++) {\n const axisDim = axisDimList[i];\n const axisInfo = this._targetAxisInfoMap.get(axisDim);\n for (let j = 0; j < axisInfo.indexList.length; j++) {\n const proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]);\n if (proxy.hostedBy(this)) {\n return proxy;\n }\n if (!firstProxy) {\n firstProxy = proxy;\n }\n }\n }\n\n // If no hosted proxy found, still need to return a proxy.\n // This case always happens in toolbox dataZoom, where axes are all hosted by\n // other dataZooms.\n return firstProxy;\n }\n\n getRangePropMode(): DataZoomModel['_rangePropMode'] {\n return this._rangePropMode.slice() as DataZoomModel['_rangePropMode'];\n }\n\n getOrient(): LayoutOrient {\n if (__DEV__) {\n // Should not be called before initialized.\n assert(this._orient);\n }\n return this._orient;\n }\n\n}\n/**\n * Retrieve the those raw params from option, which will be cached separately.\n * becasue they will be overwritten by normalized/calculated values in the main\n * process.\n */\nfunction retrieveRawOption(option: T) {\n const ret = {} as T;\n each(\n ['start', 'end', 'startValue', 'endValue', 'throttle'] as const,\n function (name) {\n option.hasOwnProperty(name) && ((ret as any)[name] = option[name]);\n }\n );\n return ret;\n}\n\nexport default DataZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel from './DataZoomModel';\n\nclass SelectDataZoomModel extends DataZoomModel {\n static type = 'dataZoom.select';\n type = SelectDataZoomModel.type;\n}\n\nexport default SelectDataZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\nimport DataZoomModel from './DataZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\n\nclass DataZoomView extends ComponentView {\n static type = 'dataZoom';\n type = DataZoomView.type;\n\n dataZoomModel: DataZoomModel;\n ecModel: GlobalModel;\n api: ExtensionAPI;\n\n render(dataZoomModel: DataZoomModel, ecModel: GlobalModel, api: ExtensionAPI, payload: any) {\n this.dataZoomModel = dataZoomModel;\n this.ecModel = ecModel;\n this.api = api;\n }\n\n}\n\nexport default DataZoomView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomView from './DataZoomView';\n\nclass SelectDataZoomView extends DataZoomView {\n static type = 'dataZoom.select';\n type = SelectDataZoomView.type;\n}\n\nexport default SelectDataZoomView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Dictionary } from '../../util/types';\n// TODO Polar?\nimport DataZoomModel from './DataZoomModel';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { unionAxisExtentFromData } from '../../coord/axisHelper';\nimport { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo';\nimport { getAxisMainType, isCoordSupported, DataZoomAxisDimension } from './helper';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nconst each = zrUtil.each;\nconst asc = numberUtil.asc;\n\ninterface MinMaxSpan {\n minSpan: number\n maxSpan: number\n minValueSpan: number\n maxValueSpan: number\n}\n\ntype SupportedAxis = 'xAxis' | 'yAxis' | 'angleAxis' | 'radiusAxis' | 'singleAxis';\n\n/**\n * Operate single axis.\n * One axis can only operated by one axis operator.\n * Different dataZoomModels may be defined to operate the same axis.\n * (i.e. 'inside' data zoom and 'slider' data zoom components)\n * So dataZoomModels share one axisProxy in that case.\n */\nclass AxisProxy {\n\n ecModel: GlobalModel;\n\n private _dimName: DataZoomAxisDimension;\n private _axisIndex: number;\n\n private _valueWindow: [number, number];\n private _percentWindow: [number, number];\n\n private _dataExtent: [number, number];\n\n private _minMaxSpan: MinMaxSpan;\n\n private _dataZoomModel: DataZoomModel;\n\n constructor(\n dimName: DataZoomAxisDimension,\n axisIndex: number,\n dataZoomModel: DataZoomModel,\n ecModel: GlobalModel\n ) {\n this._dimName = dimName;\n\n this._axisIndex = axisIndex;\n\n this.ecModel = ecModel;\n\n this._dataZoomModel = dataZoomModel;\n\n // /**\n // * @readOnly\n // * @private\n // */\n // this.hasSeriesStacked;\n }\n\n /**\n * Whether the axisProxy is hosted by dataZoomModel.\n */\n hostedBy(dataZoomModel: DataZoomModel): boolean {\n return this._dataZoomModel === dataZoomModel;\n }\n\n /**\n * @return Value can only be NaN or finite value.\n */\n getDataValueWindow() {\n return this._valueWindow.slice() as [number, number];\n }\n\n /**\n * @return {Array.}\n */\n getDataPercentWindow() {\n return this._percentWindow.slice() as [number, number];\n }\n\n getTargetSeriesModels() {\n const seriesModels: SeriesModel[] = [];\n\n this.ecModel.eachSeries(function (seriesModel) {\n if (isCoordSupported(seriesModel)) {\n const axisMainType = getAxisMainType(this._dimName);\n const axisModel = seriesModel.getReferringComponents(axisMainType, SINGLE_REFERRING).models[0];\n if (axisModel && this._axisIndex === axisModel.componentIndex) {\n seriesModels.push(seriesModel);\n }\n }\n }, this);\n\n return seriesModels;\n }\n\n getAxisModel(): AxisBaseModel {\n return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex) as AxisBaseModel;\n }\n\n getMinMaxSpan() {\n return zrUtil.clone(this._minMaxSpan);\n }\n\n /**\n * Only calculate by given range and this._dataExtent, do not change anything.\n */\n calculateDataWindow(opt?: {\n start?: number\n end?: number\n startValue?: number | string | Date\n endValue?: number | string | Date\n }) {\n const dataExtent = this._dataExtent;\n const axisModel = this.getAxisModel();\n const scale = axisModel.axis.scale;\n const rangePropMode = this._dataZoomModel.getRangePropMode();\n const percentExtent = [0, 100];\n const percentWindow = [] as unknown as [number, number];\n const valueWindow = [] as unknown as [number, number];\n let hasPropModeValue;\n\n each(['start', 'end'] as const, function (prop, idx) {\n let boundPercent = opt[prop];\n let boundValue = opt[prop + 'Value' as 'startValue' | 'endValue'];\n\n // Notice: dataZoom is based either on `percentProp` ('start', 'end') or\n // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent\n // but not min/max of axis, which will be calculated by data window then).\n // The former one is suitable for cases that a dataZoom component controls multiple\n // axes with different unit or extent, and the latter one is suitable for accurate\n // zoom by pixel (e.g., in dataZoomSelect).\n // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated\n // only when setOption or dispatchAction, otherwise it remains its original value.\n // (Why not only record `percentProp` and always map to `valueProp`? Because\n // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original\n // `valueProp`. consider two axes constrolled by one dataZoom. They have different\n // data extent. All of values that are overflow the `dataExtent` will be calculated\n // to percent '100%').\n\n if (rangePropMode[idx] === 'percent') {\n boundPercent == null && (boundPercent = percentExtent[idx]);\n // Use scale.parse to math round for category or time axis.\n boundValue = scale.parse(numberUtil.linearMap(\n boundPercent, percentExtent, dataExtent\n ));\n }\n else {\n hasPropModeValue = true;\n boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue);\n // Calculating `percent` from `value` may be not accurate, because\n // This calculation can not be inversed, because all of values that\n // are overflow the `dataExtent` will be calculated to percent '100%'\n boundPercent = numberUtil.linearMap(\n boundValue, dataExtent, percentExtent\n );\n }\n\n // valueWindow[idx] = round(boundValue);\n // percentWindow[idx] = round(boundPercent);\n valueWindow[idx] = boundValue;\n percentWindow[idx] = boundPercent;\n });\n\n asc(valueWindow);\n asc(percentWindow);\n\n // The windows from user calling of `dispatchAction` might be out of the extent,\n // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window\n // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,\n // where API is able to initialize/modify the window size even though `zoomLock`\n // specified.\n const spans = this._minMaxSpan;\n hasPropModeValue\n ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false)\n : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true);\n\n function restrictSet(\n fromWindow: number[],\n toWindow: number[],\n fromExtent: number[],\n toExtent: number[],\n toValue: boolean\n ) {\n const suffix = toValue ? 'Span' : 'ValueSpan';\n sliderMove(\n 0, fromWindow, fromExtent, 'all',\n spans['min' + suffix as 'minSpan' | 'minValueSpan'],\n spans['max' + suffix as 'maxSpan' | 'maxValueSpan']\n );\n for (let i = 0; i < 2; i++) {\n toWindow[i] = numberUtil.linearMap(fromWindow[i], fromExtent, toExtent, true);\n toValue && (toWindow[i] = scale.parse(toWindow[i]));\n }\n }\n\n return {\n valueWindow: valueWindow,\n percentWindow: percentWindow\n };\n }\n\n /**\n * Notice: reset should not be called before series.restoreData() called,\n * so it is recommanded to be called in \"process stage\" but not \"model init\n * stage\".\n */\n reset(dataZoomModel: DataZoomModel) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n const targetSeries = this.getTargetSeriesModels();\n // Culculate data window and data extent, and record them.\n this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries);\n\n // `calculateDataWindow` uses min/maxSpan.\n this._updateMinMaxSpan();\n\n const dataWindow = this.calculateDataWindow(dataZoomModel.settledOption);\n\n this._valueWindow = dataWindow.valueWindow;\n this._percentWindow = dataWindow.percentWindow;\n\n // Update axis setting then.\n this._setAxisModel();\n }\n\n filterData(dataZoomModel: DataZoomModel, api: ExtensionAPI) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n const axisDim = this._dimName;\n const seriesModels = this.getTargetSeriesModels();\n const filterMode = dataZoomModel.get('filterMode');\n const valueWindow = this._valueWindow;\n\n if (filterMode === 'none') {\n return;\n }\n\n // FIXME\n // Toolbox may has dataZoom injected. And if there are stacked bar chart\n // with NaN data, NaN will be filtered and stack will be wrong.\n // So we need to force the mode to be set empty.\n // In fect, it is not a big deal that do not support filterMode-'filter'\n // when using toolbox#dataZoom, utill tooltip#dataZoom support \"single axis\n // selection\" some day, which might need \"adapt to data extent on the\n // otherAxis\", which is disabled by filterMode-'empty'.\n // But currently, stack has been fixed to based on value but not index,\n // so this is not an issue any more.\n // let otherAxisModel = this.getOtherAxisModel();\n // if (dataZoomModel.get('$fromToolbox')\n // && otherAxisModel\n // && otherAxisModel.hasSeriesStacked\n // ) {\n // filterMode = 'empty';\n // }\n\n // TODO\n // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.\n\n each(seriesModels, function (seriesModel) {\n let seriesData = seriesModel.getData();\n const dataDims = seriesData.mapDimensionsAll(axisDim);\n\n if (!dataDims.length) {\n return;\n }\n\n if (filterMode === 'weakFilter') {\n const storage = seriesData.getStorage();\n const dataDimIndices = zrUtil.map(dataDims, dim => seriesData.getDimensionIndex(dim), seriesData);\n seriesData.filterSelf(function (dataIndex) {\n let leftOut;\n let rightOut;\n let hasValue;\n for (let i = 0; i < dataDims.length; i++) {\n const value = storage.get(dataDimIndices[i], dataIndex) as number;\n const thisHasValue = !isNaN(value);\n const thisLeftOut = value < valueWindow[0];\n const thisRightOut = value > valueWindow[1];\n if (thisHasValue && !thisLeftOut && !thisRightOut) {\n return true;\n }\n thisHasValue && (hasValue = true);\n thisLeftOut && (leftOut = true);\n thisRightOut && (rightOut = true);\n }\n // If both left out and right out, do not filter.\n return hasValue && leftOut && rightOut;\n });\n }\n else {\n each(dataDims, function (dim) {\n if (filterMode === 'empty') {\n seriesModel.setData(\n seriesData = seriesData.map(dim, function (value: number) {\n return !isInWindow(value) ? NaN : value;\n })\n );\n }\n else {\n const range: Dictionary<[number, number]> = {};\n range[dim] = valueWindow;\n\n // console.time('select');\n seriesData.selectRange(range);\n // console.timeEnd('select');\n }\n });\n }\n\n each(dataDims, function (dim) {\n seriesData.setApproximateExtent(valueWindow, dim);\n });\n });\n\n function isInWindow(value: number) {\n return value >= valueWindow[0] && value <= valueWindow[1];\n }\n }\n\n private _updateMinMaxSpan() {\n const minMaxSpan = this._minMaxSpan = {} as MinMaxSpan;\n const dataZoomModel = this._dataZoomModel;\n const dataExtent = this._dataExtent;\n\n each(['min', 'max'], function (minMax) {\n let percentSpan = dataZoomModel.get(minMax + 'Span' as 'minSpan' | 'maxSpan');\n let valueSpan = dataZoomModel.get(minMax + 'ValueSpan' as 'minValueSpan' | 'maxValueSpan');\n valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan));\n\n // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan\n if (valueSpan != null) {\n percentSpan = numberUtil.linearMap(\n dataExtent[0] + valueSpan, dataExtent, [0, 100], true\n );\n }\n else if (percentSpan != null) {\n valueSpan = numberUtil.linearMap(\n percentSpan, [0, 100], dataExtent, true\n ) - dataExtent[0];\n }\n\n minMaxSpan[minMax + 'Span' as 'minSpan' | 'maxSpan'] = percentSpan;\n minMaxSpan[minMax + 'ValueSpan' as 'minValueSpan' | 'maxValueSpan'] = valueSpan;\n }, this);\n }\n\n private _setAxisModel() {\n\n const axisModel = this.getAxisModel();\n\n const percentWindow = this._percentWindow;\n const valueWindow = this._valueWindow;\n\n if (!percentWindow) {\n return;\n }\n\n // [0, 500]: arbitrary value, guess axis extent.\n let precision = numberUtil.getPixelPrecision(valueWindow, [0, 500]);\n precision = Math.min(precision, 20);\n\n // For value axis, if min/max/scale are not set, we just use the extent obtained\n // by series data, which may be a little different from the extent calculated by\n // `axisHelper.getScaleExtent`. But the different just affects the experience a\n // little when zooming. So it will not be fixed until some users require it strongly.\n const rawExtentInfo = axisModel.axis.scale.rawExtentInfo;\n if (percentWindow[0] !== 0) {\n rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision));\n }\n if (percentWindow[1] !== 100) {\n rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision));\n }\n rawExtentInfo.freeze();\n }\n}\n\nfunction calculateDataExtent(axisProxy: AxisProxy, axisDim: string, seriesModels: SeriesModel[]) {\n const dataExtent = [Infinity, -Infinity];\n\n each(seriesModels, function (seriesModel) {\n unionAxisExtentFromData(dataExtent, seriesModel.getData(), axisDim);\n });\n\n // It is important to get \"consistent\" extent when more then one axes is\n // controlled by a `dataZoom`, otherwise those axes will not be synchronized\n // when zooming. But it is difficult to know what is \"consistent\", considering\n // axes have different type or even different meanings (For example, two\n // time axes are used to compare data of the same date in different years).\n // So basically dataZoom just obtains extent by series.data (in category axis\n // extent can be obtained from axis.data).\n // Nevertheless, user can set min/max/scale on axes to make extent of axes\n // consistent.\n const axisModel = axisProxy.getAxisModel();\n const rawExtentResult = ensureScaleRawExtentInfo(axisModel.axis.scale, axisModel, dataExtent).calculate();\n\n return [rawExtentResult.min, rawExtentResult.max] as [number, number];\n}\n\nexport default AxisProxy;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {createHashMap, each} from 'zrender/src/core/util';\nimport SeriesModel from '../../model/Series';\nimport DataZoomModel, { DataZoomExtendedAxisBaseModel } from './DataZoomModel';\nimport { getAxisMainType, DataZoomAxisDimension } from './helper';\nimport AxisProxy from './AxisProxy';\nimport { StageHandler } from '../../util/types';\n\nconst dataZoomProcessor: StageHandler = {\n\n // `dataZoomProcessor` will only be performed in needed series. Consider if\n // there is a line series and a pie series, it is better not to update the\n // line series if only pie series is needed to be updated.\n getTargetSeries(ecModel) {\n\n function eachAxisModel(\n cb: (\n axisDim: DataZoomAxisDimension,\n axisIndex: number,\n axisModel: DataZoomExtendedAxisBaseModel,\n dataZoomModel: DataZoomModel\n ) => void\n ) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n cb(axisDim, axisIndex, axisModel as DataZoomExtendedAxisBaseModel, dataZoomModel);\n });\n });\n }\n // FIXME: it brings side-effect to `getTargetSeries`.\n // Prepare axis proxies.\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // dispose all last axis proxy, in case that some axis are deleted.\n axisModel.__dzAxisProxy = null;\n });\n const proxyList: AxisProxy[] = [];\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // Different dataZooms may constrol the same axis. In that case,\n // an axisProxy serves both of them.\n if (!axisModel.__dzAxisProxy) {\n // Use the first dataZoomModel as the main model of axisProxy.\n axisModel.__dzAxisProxy = new AxisProxy(axisDim, axisIndex, dataZoomModel, ecModel);\n proxyList.push(axisModel.__dzAxisProxy);\n }\n });\n\n const seriesModelMap = createHashMap();\n each(proxyList, function (axisProxy) {\n each(axisProxy.getTargetSeriesModels(), function (seriesModel) {\n seriesModelMap.set(seriesModel.uid, seriesModel);\n });\n });\n\n return seriesModelMap;\n },\n\n // Consider appendData, where filter should be performed. Because data process is\n // in block mode currently, it is not need to worry about that the overallProgress\n // execute every frame.\n overallReset(ecModel, api) {\n\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n // We calculate window and reset axis here but not in model\n // init stage and not after action dispatch handler, because\n // reset should be called after seriesData.restoreData.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel);\n });\n\n // Caution: data zoom filtering is order sensitive when using\n // percent range and no min/max/scale set on axis.\n // For example, we have dataZoom definition:\n // [\n // {xAxisIndex: 0, start: 30, end: 70},\n // {yAxisIndex: 0, start: 20, end: 80}\n // ]\n // In this case, [20, 80] of y-dataZoom should be based on data\n // that have filtered by x-dataZoom using range of [30, 70],\n // but should not be based on full raw data. Thus sliding\n // x-dataZoom will change both ranges of xAxis and yAxis,\n // while sliding y-dataZoom will only change the range of yAxis.\n // So we should filter x-axis after reset x-axis immediately,\n // and then reset y-axis and filter y-axis.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api);\n });\n });\n\n ecModel.eachComponent('dataZoom', function (dataZoomModel: DataZoomModel) {\n // Fullfill all of the range props so that user\n // is able to get them from chart.getOption().\n const axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n if (axisProxy) {\n const percentRange = axisProxy.getDataPercentWindow();\n const valueRange = axisProxy.getDataValueWindow();\n\n dataZoomModel.setCalculatedRange({\n start: percentRange[0],\n end: percentRange[1],\n startValue: valueRange[0],\n endValue: valueRange[1]\n });\n }\n });\n }\n};\n\nexport default dataZoomProcessor;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport { findEffectedDataZooms } from './helper';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { each } from 'zrender/src/core/util';\n\n\nexport default function installDataZoomAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction('dataZoom', function (payload, ecModel: GlobalModel) {\n\n const effectedModels = findEffectedDataZooms(ecModel, payload);\n\n each(effectedModels, function (dataZoomModel) {\n dataZoomModel.setRawRange({\n start: payload.start,\n end: payload.end,\n startValue: payload.startValue,\n endValue: payload.endValue\n });\n });\n\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport dataZoomProcessor from './dataZoomProcessor';\nimport installDataZoomAction from './dataZoomAction';\n\nlet installed = false;\nexport default function installCommon(registers: EChartsExtensionInstallRegisters) {\n if (installed) {\n return;\n }\n installed = true;\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoomProcessor);\n\n installDataZoomAction(registers);\n\n registers.registerSubTypeDefaulter('dataZoom', function () {\n // Default 'slider' when no type specified.\n return 'slider';\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SelectZoomModel from './SelectZoomModel';\nimport SelectZoomView from './SelectZoomView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentModel(SelectZoomModel);\n registers.registerComponentView(SelectZoomView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Dictionary, DisplayState, ZRElementEvent, ItemStyleOption, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n// import * as graphic from '../../util/graphic';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\n// type IconPath = ReturnType;\n\ntype IconStyle = ItemStyleOption & {\n // TODO Move to a individual textStyle option\n textFill?: LabelOption['color']\n textBackgroundColor?: LabelOption['backgroundColor']\n textPosition?: LabelOption['position']\n textAlign?: LabelOption['align']\n textBorderRadius?: LabelOption['borderRadius']\n textPadding?: LabelOption['padding']\n};\nexport interface ToolboxFeatureOption {\n\n show?: boolean\n\n title?: string | Partial>\n\n icon?: string | Partial>\n\n iconStyle?: IconStyle\n emphasis?: {\n iconStyle?: IconStyle\n }\n\n iconStatus?: Partial>\n\n onclick?: () => void\n}\n\nexport interface ToolboxFeatureModel extends Model {\n\n /**\n * Collection of icon paths.\n * Will be injected during rendering in the view.\n */\n iconPaths: Partial>\n\n setIconStatus(iconName: string, status: DisplayState): void\n}\n\ninterface ToolboxFeature {\n getIcons?(): Dictionary\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: string, event: ZRElementEvent): void\n\n dispose?(ecModel: GlobalModel, api: ExtensionAPI): void\n remove?(ecModel: GlobalModel, api: ExtensionAPI): void\n\n render(featureModel: ToolboxFeatureModel, model: GlobalModel, api: ExtensionAPI, payload: unknown): void\n updateView?(featureModel: ToolboxFeatureModel, model: GlobalModel, api: ExtensionAPI, payload: unknown): void\n}\nabstract class ToolboxFeature {\n uid: string;\n\n model: ToolboxFeatureModel;\n ecModel: GlobalModel;\n api: ExtensionAPI;\n\n /**\n * If toolbox feature can't be used on some platform.\n */\n unusable?: boolean;\n}\n\nexport {ToolboxFeature};\n\nexport interface UserDefinedToolboxFeature {\n uid: string\n\n model: ToolboxFeatureModel\n ecModel: GlobalModel\n api: ExtensionAPI\n\n featureName?: string\n\n onclick(): void\n}\n\ntype ToolboxFeatureCtor = {\n new(): ToolboxFeature\n /**\n * Static defaultOption property\n */\n defaultOption?: ToolboxFeatureOption\n getDefaultOption?: (ecModel: GlobalModel) => ToolboxFeatureOption\n};\n\nconst features: Dictionary = {};\n\nexport function registerFeature(name: string, ctor: ToolboxFeatureCtor) {\n features[name] = ctor;\n}\n\nexport function getFeature(name: string) {\n return features[name];\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as featureManager from './featureManager';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n ZRColor,\n BorderOptionMixin,\n ItemStyleOption,\n LabelOption,\n CommonTooltipOption,\n Dictionary\n} from '../../util/types';\n\n\nexport interface ToolboxTooltipFormatterParams {\n componentType: 'toolbox'\n name: string\n title: string\n $vars: ['name', 'title']\n}\nexport interface ToolboxOption extends ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin {\n mainType?: 'toolbox'\n\n show?: boolean\n\n orient?: LayoutOrient\n\n backgroundColor?: ZRColor\n\n borderRadius?: number | number[]\n\n padding?: number | number[]\n\n itemSize?: number\n\n itemGap?: number\n\n showTitle?: boolean\n\n iconStyle?: ItemStyleOption\n\n emphasis?: {\n iconStyle?: ItemStyleOption\n }\n\n textStyle?: LabelOption\n\n tooltip?: CommonTooltipOption\n\n /**\n * Write all supported features in the final export option.\n */\n feature?: Partial>\n}\n\nclass ToolboxModel extends ComponentModel {\n\n static type = 'toolbox' as const;\n type = ToolboxModel.type;\n\n static layoutMode = {\n type: 'box',\n ignoreSize: true\n } as const;\n\n optionUpdated() {\n super.optionUpdated.apply(this, arguments as any);\n const {ecModel} = this;\n\n zrUtil.each(this.option.feature, function (featureOpt, featureName) {\n const Feature = featureManager.getFeature(featureName);\n if (Feature) {\n if (Feature.getDefaultOption) {\n Feature.defaultOption = Feature.getDefaultOption(ecModel);\n }\n zrUtil.merge(featureOpt, Feature.defaultOption);\n }\n });\n }\n\n static defaultOption: ToolboxOption = {\n\n show: true,\n\n z: 6,\n\n zlevel: 0,\n\n orient: 'horizontal',\n\n left: 'right',\n\n top: 'top',\n\n // right\n // bottom\n\n backgroundColor: 'transparent',\n\n borderColor: '#ccc',\n\n borderRadius: 0,\n\n borderWidth: 0,\n\n padding: 5,\n\n itemSize: 15,\n\n itemGap: 8,\n\n showTitle: true,\n\n iconStyle: {\n borderColor: '#666',\n color: 'none'\n },\n emphasis: {\n iconStyle: {\n borderColor: '#3E98C5'\n }\n },\n // textStyle: {},\n\n // feature\n\n tooltip: {\n show: false,\n position: 'bottom'\n }\n };\n}\n\nexport default ToolboxModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport {\n getLayoutRect,\n box as layoutBox,\n positionElement\n} from '../../util/layout';\nimport * as formatUtil from '../../util/format';\nimport * as graphic from '../../util/graphic';\n\n/**\n * Layout list like component.\n * It will box layout each items in group of component and then position the whole group in the viewport\n * @param {module:zrender/group/Group} group\n * @param {module:echarts/model/Component} componentModel\n * @param {module:echarts/ExtensionAPI}\n */\nexport function layout(group, componentModel, api) {\n const boxLayoutParams = componentModel.getBoxLayoutParams();\n const padding = componentModel.get('padding');\n const viewportSize = {width: api.getWidth(), height: api.getHeight()};\n\n const rect = getLayoutRect(\n boxLayoutParams,\n viewportSize,\n padding\n );\n\n layoutBox(\n componentModel.get('orient'),\n group,\n componentModel.get('itemGap'),\n rect.width,\n rect.height\n );\n\n positionElement(\n group,\n boxLayoutParams,\n viewportSize,\n padding\n );\n}\n\nexport function makeBackground(rect, componentModel) {\n const padding = formatUtil.normalizeCssArray(\n componentModel.get('padding')\n );\n const style = componentModel.getItemStyle(['color', 'opacity']);\n style.fill = componentModel.get('backgroundColor');\n rect = new graphic.Rect({\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[1] + padding[3],\n height: rect.height + padding[0] + padding[2],\n r: componentModel.get('borderRadius')\n },\n style: style,\n silent: true,\n z2: -1\n });\n // FIXME\n // `subPixelOptimizeRect` may bring some gap between edge of viewpart\n // and background rect when setting like `left: 0`, `top: 0`.\n // graphic.subPixelOptimizeRect(rect);\n\n return rect;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as textContain from 'zrender/src/contain/text';\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis } from '../../util/states';\nimport Model from '../../model/Model';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as listComponentHelper from '../helper/listComponent';\nimport ComponentView from '../../view/Component';\nimport ToolboxModel from './ToolboxModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { DisplayState, Dictionary, Payload } from '../../util/types';\nimport {\n ToolboxFeature,\n getFeature,\n ToolboxFeatureModel,\n ToolboxFeatureOption,\n UserDefinedToolboxFeature\n} from './featureManager';\nimport { getUID } from '../../util/component';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport ZRText from 'zrender/src/graphic/Text';\nimport { getECData } from '../../util/innerStore';\n\ntype IconPath = ToolboxFeatureModel['iconPaths'][string];\n\ntype ExtendedPath = IconPath & {\n __title: string\n};\n\nclass ToolboxView extends ComponentView {\n static type = 'toolbox' as const;\n\n _features: Dictionary;\n\n _featureNames: string[];\n\n render(\n toolboxModel: ToolboxModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload & {\n newTitle?: ToolboxFeatureOption['title']\n }\n ) {\n const group = this.group;\n group.removeAll();\n\n if (!toolboxModel.get('show')) {\n return;\n }\n\n const itemSize = +toolboxModel.get('itemSize');\n const featureOpts = toolboxModel.get('feature') || {};\n const features = this._features || (this._features = {});\n\n const featureNames: string[] = [];\n zrUtil.each(featureOpts, function (opt, name) {\n featureNames.push(name);\n });\n\n (new DataDiffer(this._featureNames || [], featureNames))\n .add(processFeature)\n .update(processFeature)\n .remove(zrUtil.curry(processFeature, null))\n .execute();\n\n // Keep for diff.\n this._featureNames = featureNames;\n\n function processFeature(newIndex: number, oldIndex?: number) {\n const featureName = featureNames[newIndex];\n const oldName = featureNames[oldIndex];\n const featureOpt = featureOpts[featureName];\n const featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel) as ToolboxFeatureModel;\n let feature: ToolboxFeature | UserDefinedToolboxFeature;\n\n // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?\n if (payload && payload.newTitle != null && payload.featureName === featureName) {\n featureOpt.title = payload.newTitle;\n }\n\n if (featureName && !oldName) { // Create\n if (isUserFeatureName(featureName)) {\n feature = {\n onclick: featureModel.option.onclick,\n featureName: featureName\n } as UserDefinedToolboxFeature;\n }\n else {\n const Feature = getFeature(featureName);\n if (!Feature) {\n return;\n }\n feature = new Feature();\n }\n features[featureName] = feature;\n }\n else {\n feature = features[oldName];\n // If feature does not exsit.\n if (!feature) {\n return;\n }\n }\n feature.uid = getUID('toolbox-feature');\n feature.model = featureModel;\n feature.ecModel = ecModel;\n feature.api = api;\n\n const isToolboxFeature = feature instanceof ToolboxFeature;\n if (!featureName && oldName) {\n isToolboxFeature\n && (feature as ToolboxFeature).dispose\n && (feature as ToolboxFeature).dispose(ecModel, api);\n return;\n }\n\n if (!featureModel.get('show') || (isToolboxFeature && (feature as ToolboxFeature).unusable)) {\n isToolboxFeature\n && (feature as ToolboxFeature).remove\n && (feature as ToolboxFeature).remove(ecModel, api);\n return;\n }\n\n createIconPaths(featureModel, feature, featureName);\n\n featureModel.setIconStatus = function (this: ToolboxFeatureModel, iconName: string, status: DisplayState) {\n const option = this.option;\n const iconPaths = this.iconPaths;\n option.iconStatus = option.iconStatus || {};\n option.iconStatus[iconName] = status;\n if (iconPaths[iconName]) {\n (status === 'emphasis' ? enterEmphasis : leaveEmphasis)(iconPaths[iconName]);\n }\n };\n\n if (feature instanceof ToolboxFeature) {\n if (feature.render) {\n feature.render(featureModel, ecModel, api, payload);\n }\n }\n }\n\n function createIconPaths(\n featureModel: ToolboxFeatureModel,\n feature: ToolboxFeature | UserDefinedToolboxFeature,\n featureName: string\n ) {\n const iconStyleModel = featureModel.getModel('iconStyle');\n const iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']);\n\n // If one feature has mutiple icon. they are orginaized as\n // {\n // icon: {\n // foo: '',\n // bar: ''\n // },\n // title: {\n // foo: '',\n // bar: ''\n // }\n // }\n const icons = (feature instanceof ToolboxFeature && feature.getIcons)\n ? feature.getIcons() : featureModel.get('icon');\n const titles = featureModel.get('title') || {};\n let iconsMap: Dictionary;\n let titlesMap: Dictionary;\n if (typeof icons === 'string') {\n iconsMap = {};\n iconsMap[featureName] = icons;\n }\n else {\n iconsMap = icons;\n }\n if (typeof titles === 'string') {\n titlesMap = {};\n titlesMap[featureName] = titles as string;\n }\n else {\n titlesMap = titles;\n }\n const iconPaths: ToolboxFeatureModel['iconPaths'] = featureModel.iconPaths = {};\n zrUtil.each(iconsMap, function (iconStr, iconName) {\n const path = graphic.createIcon(\n iconStr,\n {},\n {\n x: -itemSize / 2,\n y: -itemSize / 2,\n width: itemSize,\n height: itemSize\n }\n ) as Displayable; // TODO handling image\n path.setStyle(iconStyleModel.getItemStyle());\n\n const pathEmphasisState = path.ensureState('emphasis');\n pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle();\n\n // Text position calculation\n const textContent = new ZRText({\n style: {\n text: titlesMap[iconName],\n align: iconStyleEmphasisModel.get('textAlign'),\n borderRadius: iconStyleEmphasisModel.get('textBorderRadius'),\n padding: iconStyleEmphasisModel.get('textPadding'),\n fill: null\n },\n ignore: true\n });\n path.setTextContent(textContent);\n\n graphic.setTooltipConfig({\n el: path,\n componentModel: toolboxModel,\n itemName: iconName,\n formatterParamsExtra: {\n title: titlesMap[iconName]\n }\n });\n\n // graphic.enableHoverEmphasis(path);\n\n (path as ExtendedPath).__title = titlesMap[iconName];\n (path as graphic.Path).on('mouseover', function () {\n // Should not reuse above hoverStyle, which might be modified.\n const hoverStyle = iconStyleEmphasisModel.getItemStyle();\n const defaultTextPosition = toolboxModel.get('orient') === 'vertical'\n ? (toolboxModel.get('right') == null ? 'right' as const : 'left' as const)\n : (toolboxModel.get('bottom') == null ? 'bottom' as const : 'top' as const);\n textContent.setStyle({\n fill: (iconStyleEmphasisModel.get('textFill')\n || hoverStyle.fill || hoverStyle.stroke || '#000') as string,\n backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor')\n });\n path.setTextConfig({\n position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition\n });\n textContent.ignore = !toolboxModel.get('showTitle');\n\n // Use enterEmphasis and leaveEmphasis provide by ec.\n // There are flags managed by the echarts.\n enterEmphasis(this);\n })\n .on('mouseout', function () {\n if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') {\n leaveEmphasis(this);\n }\n textContent.hide();\n });\n (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? enterEmphasis : leaveEmphasis)(path);\n\n group.add(path);\n (path as graphic.Path).on('click', zrUtil.bind(\n feature.onclick, feature, ecModel, api, iconName\n ));\n\n iconPaths[iconName] = path;\n });\n }\n\n listComponentHelper.layout(group, toolboxModel, api);\n // Render background after group is layout\n // FIXME\n group.add(listComponentHelper.makeBackground(group.getBoundingRect(), toolboxModel));\n\n // Adjust icon title positions to avoid them out of screen\n group.eachChild(function (icon: IconPath) {\n const titleText = (icon as ExtendedPath).__title;\n // const hoverStyle = icon.hoverStyle;\n\n // TODO simplify code?\n const emphasisState = icon.ensureState('emphasis');\n const emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {});\n const textContent = icon.getTextContent();\n const emphasisTextState = textContent && textContent.states.emphasis;\n // May be background element\n if (emphasisTextState && !zrUtil.isFunction(emphasisTextState) && titleText) {\n const emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {});\n const rect = textContain.getBoundingRect(\n titleText, ZRText.makeFont(emphasisTextStyle)\n );\n const offsetX = icon.x + group.x;\n const offsetY = icon.y + group.y + itemSize;\n\n let needPutOnTop = false;\n if (offsetY + rect.height > api.getHeight()) {\n emphasisTextConfig.position = 'top';\n needPutOnTop = true;\n }\n const topOffset = needPutOnTop ? (-5 - rect.height) : (itemSize + 8);\n if (offsetX + rect.width / 2 > api.getWidth()) {\n emphasisTextConfig.position = ['100%', topOffset];\n emphasisTextStyle.align = 'right';\n }\n else if (offsetX - rect.width / 2 < 0) {\n emphasisTextConfig.position = [0, topOffset];\n emphasisTextStyle.align = 'left';\n }\n }\n });\n }\n\n updateView(\n toolboxModel: ToolboxModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown\n ) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.updateView && feature.updateView(feature.model, ecModel, api, payload);\n });\n }\n\n // updateLayout(toolboxModel, ecModel, api, payload) {\n // zrUtil.each(this._features, function (feature) {\n // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);\n // });\n // },\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.remove && feature.remove(ecModel, api);\n });\n this.group.removeAll();\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature\n && feature.dispose && feature.dispose(ecModel, api);\n });\n }\n}\n\n\nfunction isUserFeatureName(featureName: string): boolean {\n return featureName.indexOf('my') === 0;\n}\nexport default ToolboxView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8Array, document */\n\nimport env from 'zrender/src/core/env';\nimport { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ZRColor } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\n\nexport interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {\n icon?: string\n title?: string\n type?: 'png' | 'jpg'\n\n backgroundColor?: ZRColor\n connectedBackgroundColor?: ZRColor\n\n name?: string\n excludeComponents?: string[]\n\n pixelRatio?: number\n\n lang?: string[]\n}\n\n/* global window, document */\n\nclass SaveAsImage extends ToolboxFeature {\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n const model = this.model;\n const title = model.get('name') || ecModel.get('title.0.text') || 'echarts';\n const isSvg = api.getZr().painter.getType() === 'svg';\n const type = isSvg ? 'svg' : model.get('type', true) || 'png';\n const url = api.getConnectedDataURL({\n type: type,\n backgroundColor: model.get('backgroundColor', true)\n || ecModel.get('backgroundColor') || '#fff',\n connectedBackgroundColor: model.get('connectedBackgroundColor'),\n excludeComponents: model.get('excludeComponents'),\n pixelRatio: model.get('pixelRatio')\n });\n // Chrome, Firefox, New Edge\n if (typeof MouseEvent === 'function' && (env.browser.newEdge || (!env.browser.ie && !env.browser.edge))) {\n const $a = document.createElement('a');\n $a.download = title + '.' + type;\n $a.target = '_blank';\n $a.href = url;\n const evt = new MouseEvent('click', {\n // some micro front-end framework\uFF0C window maybe is a Proxy\n view: document.defaultView,\n bubbles: true,\n cancelable: false\n });\n $a.dispatchEvent(evt);\n }\n // IE or old Edge\n else {\n if (window.navigator.msSaveOrOpenBlob || isSvg) {\n const parts = url.split(',');\n // data:[][;charset=][;base64],\n const base64Encoded = parts[0].indexOf('base64') > -1;\n let bstr = isSvg\n // should decode the svg data uri first\n ? decodeURIComponent(parts[1])\n : parts[1];\n // only `atob` when the data uri is encoded with base64\n // otherwise, like `svg` data uri exported by zrender,\n // there will be an error, for it's not encoded with base64.\n // (just a url-encoded string through `encodeURIComponent`)\n base64Encoded && (bstr = window.atob(bstr));\n const filename = title + '.' + type;\n if (window.navigator.msSaveOrOpenBlob) {\n let n = bstr.length;\n const u8arr = new Uint8Array(n);\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n const blob = new Blob([u8arr]);\n window.navigator.msSaveOrOpenBlob(blob, filename);\n }\n else {\n const frame = document.createElement('iframe');\n document.body.appendChild(frame);\n const cw = frame.contentWindow;\n const doc = cw.document;\n doc.open('image/svg+xml', 'replace');\n doc.write(bstr);\n doc.close();\n cw.focus();\n doc.execCommand('SaveAs', true, filename);\n document.body.removeChild(frame);\n }\n }\n else {\n const lang = model.get('lang');\n const html = ''\n + ''\n + ''\n + '';\n const tab = window.open();\n tab.document.write(html);\n tab.document.title = title as string;\n }\n }\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxSaveAsImageFeatureOption = {\n show: true,\n icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',\n title: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'title']),\n type: 'png',\n // Default use option.backgroundColor\n // backgroundColor: '#fff',\n connectedBackgroundColor: '#fff',\n name: '',\n excludeComponents: ['toolbox'],\n // use current pixel ratio of device by default\n // pixelRatio: 1,\n lang: ecModel.getLocaleModel().get(['toolbox', 'saveAsImage', 'lang'])\n };\n\n return defaultOption;\n }\n}\n\nSaveAsImage.prototype.unusable = !env.canvasSupported;\n\nexport default SaveAsImage;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/src/core/util';\nimport {ToolboxFeature, ToolboxFeatureOption, ToolboxFeatureModel} from '../featureManager';\nimport { SeriesOption, ECUnitOption } from '../../../util/types';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport SeriesModel from '../../../model/Series';\nimport { SINGLE_REFERRING } from '../../../util/model';\n\nconst INNER_STACK_KEYWORD = '__ec_magicType_stack__' as const;\n\nconst ICON_TYPES = ['line', 'bar', 'stack'] as const;\n// stack and tiled appears in pair for the title\nconst TITLE_TYPES = ['line', 'bar', 'stack', 'tiled'] as const;\n\nconst radioTypes = [\n ['line', 'bar'],\n ['stack']\n] as const;\n\ntype IconType = typeof ICON_TYPES[number];\ntype TitleType = typeof TITLE_TYPES[number];\n\nexport interface ToolboxMagicTypeFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n /**\n * Icon group\n */\n icon?: {[key in IconType]?: string}\n title?: {[key in TitleType]?: string}\n\n // TODO LineSeriesOption, BarSeriesOption\n option?: {[key in IconType]?: SeriesOption}\n\n /**\n * Map of seriesType: seriesIndex\n */\n seriesIndex?: {\n line?: number\n bar?: number\n }\n}\n\n\nclass MagicType extends ToolboxFeature {\n\n getIcons() {\n const model = this.model;\n const availableIcons = model.get('icon');\n const icons: ToolboxMagicTypeFeatureOption['icon'] = {};\n zrUtil.each(model.get('type'), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxMagicTypeFeatureOption = {\n show: true,\n type: [],\n // Icon group\n icon: {\n line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',\n bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',\n // eslint-disable-next-line\n stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line\n },\n // `line`, `bar`, `stack`, `tiled`\n title: ecModel.getLocaleModel().get(['toolbox', 'magicType', 'title']),\n option: {},\n seriesIndex: {}\n };\n\n return defaultOption;\n }\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: IconType) {\n const model = this.model;\n const seriesIndex = model.get(['seriesIndex', type as 'line' | 'bar']);\n // Not supported magicType\n if (!seriesOptGenreator[type]) {\n return;\n }\n const newOption: ECUnitOption = {\n series: []\n };\n const generateNewSeriesTypes = function (seriesModel: SeriesModel) {\n const seriesType = seriesModel.subType;\n const seriesId = seriesModel.id;\n const newSeriesOpt = seriesOptGenreator[type](\n seriesType, seriesId, seriesModel, model\n );\n if (newSeriesOpt) {\n // PENDING If merge original option?\n zrUtil.defaults(newSeriesOpt, seriesModel.option);\n (newOption.series as SeriesOption[]).push(newSeriesOpt);\n }\n // Modify boundaryGap\n const coordSys = seriesModel.coordinateSystem;\n if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {\n const categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n if (categoryAxis) {\n const axisDim = categoryAxis.dim;\n const axisType = axisDim + 'Axis';\n const axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n const axisIndex = axisModel.componentIndex;\n\n newOption[axisType] = newOption[axisType] || [];\n for (let i = 0; i <= axisIndex; i++) {\n (newOption[axisType] as any)[axisIndex] = (newOption[axisType] as any)[axisIndex] || {};\n }\n (newOption[axisType] as any)[axisIndex].boundaryGap = type === 'bar';\n }\n }\n };\n\n zrUtil.each(radioTypes, function (radio) {\n if (zrUtil.indexOf(radio, type) >= 0) {\n zrUtil.each(radio, function (item) {\n model.setIconStatus(item, 'normal');\n });\n }\n });\n\n model.setIconStatus(type, 'emphasis');\n\n ecModel.eachComponent(\n {\n mainType: 'series',\n query: seriesIndex == null ? null : {\n seriesIndex: seriesIndex\n }\n }, generateNewSeriesTypes\n );\n\n let newTitle;\n let currentType = type as TitleType;\n // Change title of stack\n if (type === 'stack') {\n // use titles in model instead of ecModel\n // as stack and tiled appears in pair, just flip them\n // no need of checking stack state\n newTitle = zrUtil.merge({\n stack: model.option.title.tiled,\n tiled: model.option.title.stack\n }, model.option.title);\n\n if (model.get(['iconStatus', type]) !== 'emphasis') {\n currentType = 'tiled';\n }\n }\n\n api.dispatchAction({\n type: 'changeMagicType',\n currentType: currentType,\n newOption: newOption,\n newTitle: newTitle,\n featureName: 'magicType'\n });\n }\n}\n\ntype MegicTypeSeriesOption = SeriesOption & {\n // TODO: TYPE More specified series option\n stack?: boolean | string\n data?: unknown[]\n markPoint?: unknown\n markLine?: unknown\n};\n\ntype SeriesOptGenreator = (\n seriesType: string,\n seriesId: string,\n seriesModel: SeriesModel,\n model: ToolboxFeatureModel\n) => SeriesOption;\n\nconst seriesOptGenreator: Record = {\n 'line': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'bar') {\n return zrUtil.merge({\n id: seriesId,\n type: 'line',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'line']) || {}, true);\n }\n },\n 'bar': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'line') {\n return zrUtil.merge({\n id: seriesId,\n type: 'bar',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'bar']) || {}, true);\n }\n },\n 'stack': function (seriesType, seriesId, seriesModel, model) {\n const isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD;\n if (seriesType === 'line' || seriesType === 'bar') {\n model.setIconStatus('stack', isStack ? 'normal' : 'emphasis');\n return zrUtil.merge({\n id: seriesId,\n stack: isStack ? '' : INNER_STACK_KEYWORD\n }, model.get(['option', 'stack']) || {}, true);\n }\n }\n};\n\n\n// TODO: SELF REGISTERED.\necharts.registerAction({\n type: 'changeMagicType',\n event: 'magicTypeChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.mergeOption(payload.newOption);\n});\n\nexport default MagicType;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global document */\n\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../../model/Global';\nimport SeriesModel from '../../../model/Series';\nimport { ToolboxFeature, ToolboxFeatureOption } from '../featureManager';\nimport { ColorString, ECUnitOption, SeriesOption, Payload, Dictionary } from '../../../util/types';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport { addEventListener } from 'zrender/src/core/event';\nimport Axis from '../../../coord/Axis';\nimport Cartesian2D from '../../../coord/cartesian/Cartesian2D';\n\n/* global document */\n\nconst BLOCK_SPLITER = new Array(60).join('-');\nconst ITEM_SPLITER = '\\t';\n\ntype DataItem = {\n name: string\n value: number[] | number\n};\n\ntype DataList = (DataItem | number | number[])[];\n\ninterface ChangeDataViewPayload extends Payload {\n newOption: {\n series: SeriesOption[]\n }\n}\n\ninterface SeriesGroupMeta {\n axisDim: string\n axisIndex: number\n}\n\ninterface SeriesGroup {\n series: SeriesModel[]\n categoryAxis: Axis\n valueAxis: Axis\n}\n\n/**\n * Group series into two types\n * 1. on category axis, like line, bar\n * 2. others, like scatter, pie\n */\nfunction groupSeries(ecModel: GlobalModel) {\n const seriesGroupByCategoryAxis: Dictionary = {};\n const otherSeries: SeriesModel[] = [];\n const meta: SeriesGroupMeta[] = [];\n ecModel.eachRawSeries(function (seriesModel) {\n const coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n const baseAxis = (coordSys as Cartesian2D).getBaseAxis();\n if (baseAxis.type === 'category') {\n const key = baseAxis.dim + '_' + baseAxis.index;\n if (!seriesGroupByCategoryAxis[key]) {\n seriesGroupByCategoryAxis[key] = {\n categoryAxis: baseAxis,\n valueAxis: coordSys.getOtherAxis(baseAxis),\n series: []\n };\n meta.push({\n axisDim: baseAxis.dim,\n axisIndex: baseAxis.index\n });\n }\n seriesGroupByCategoryAxis[key].series.push(seriesModel);\n }\n else {\n otherSeries.push(seriesModel);\n }\n }\n else {\n otherSeries.push(seriesModel);\n }\n });\n\n return {\n seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n other: otherSeries,\n meta: meta\n };\n}\n\n/**\n * Assemble content of series on cateogory axis\n * @inner\n */\nfunction assembleSeriesWithCategoryAxis(groups: Dictionary): string {\n const tables: string[] = [];\n zrUtil.each(groups, function (group, key) {\n const categoryAxis = group.categoryAxis;\n const valueAxis = group.valueAxis;\n const valueAxisDim = valueAxis.dim;\n\n const headers = [' '].concat(zrUtil.map(group.series, function (series) {\n return series.name;\n }));\n // @ts-ignore TODO Polar\n const columns = [categoryAxis.model.getCategories()];\n zrUtil.each(group.series, function (series) {\n const rawData = series.getRawData();\n columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n return val;\n }));\n });\n // Assemble table content\n const lines = [headers.join(ITEM_SPLITER)];\n for (let i = 0; i < columns[0].length; i++) {\n const items = [];\n for (let j = 0; j < columns.length; j++) {\n items.push(columns[j][i]);\n }\n lines.push(items.join(ITEM_SPLITER));\n }\n tables.push(lines.join('\\n'));\n });\n return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\n/**\n * Assemble content of other series\n */\nfunction assembleOtherSeries(series: SeriesModel[]) {\n return zrUtil.map(series, function (series) {\n const data = series.getRawData();\n const lines = [series.name];\n const vals: string[] = [];\n data.each(data.dimensions, function () {\n const argLen = arguments.length;\n const dataIndex = arguments[argLen - 1];\n const name = data.getName(dataIndex);\n for (let i = 0; i < argLen - 1; i++) {\n vals[i] = arguments[i];\n }\n lines.push((name ? (name + ITEM_SPLITER) : '') + vals.join(ITEM_SPLITER));\n });\n return lines.join('\\n');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\nfunction getContentFromModel(ecModel: GlobalModel) {\n\n const result = groupSeries(ecModel);\n\n return {\n value: zrUtil.filter([\n assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis),\n assembleOtherSeries(result.other)\n ], function (str) {\n return !!str.replace(/[\\n\\t\\s]/g, '');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n'),\n\n meta: result.meta\n };\n}\n\n\nfunction trim(str: string) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n/**\n * If a block is tsv format\n */\nfunction isTSVFormat(block: string): boolean {\n // Simple method to find out if a block is tsv format\n const firstLine = block.slice(0, block.indexOf('\\n'));\n if (firstLine.indexOf(ITEM_SPLITER) >= 0) {\n return true;\n }\n}\n\nconst itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');\n/**\n * @param {string} tsv\n * @return {Object}\n */\nfunction parseTSVContents(tsv: string) {\n const tsvLines = tsv.split(/\\n+/g);\n const headers = trim(tsvLines.shift()).split(itemSplitRegex);\n\n const categories: string[] = [];\n const series: {name: string, data: string[]}[] = zrUtil.map(headers, function (header) {\n return {\n name: header,\n data: []\n };\n });\n for (let i = 0; i < tsvLines.length; i++) {\n const items = trim(tsvLines[i]).split(itemSplitRegex);\n categories.push(items.shift());\n for (let j = 0; j < items.length; j++) {\n series[j] && (series[j].data[i] = items[j]);\n }\n }\n return {\n series: series,\n categories: categories\n };\n}\n\nfunction parseListContents(str: string) {\n const lines = str.split(/\\n+/g);\n const seriesName = trim(lines.shift());\n\n const data: DataList = [];\n for (let i = 0; i < lines.length; i++) {\n // if line is empty, ignore it.\n // there is a case that a user forgot to delete `\\n`.\n const line = trim(lines[i]);\n if (!line) {\n continue;\n }\n let items = line.split(itemSplitRegex);\n\n let name = '';\n let value: number[];\n let hasName = false;\n if (isNaN(items[0] as unknown as number)) { // First item is name\n hasName = true;\n name = items[0];\n items = items.slice(1);\n data[i] = {\n name: name,\n value: []\n };\n value = (data[i] as DataItem).value as number[];\n }\n else {\n value = data[i] = [];\n }\n for (let j = 0; j < items.length; j++) {\n value.push(+items[j]);\n }\n if (value.length === 1) {\n hasName ? ((data[i] as DataItem).value = value[0]) : (data[i] = value[0]);\n }\n }\n\n return {\n name: seriesName,\n data: data\n };\n}\n\nfunction parseContents(str: string, blockMetaList: SeriesGroupMeta[]) {\n const blocks = str.split(new RegExp('\\n*' + BLOCK_SPLITER + '\\n*', 'g'));\n const newOption: ECUnitOption = {\n series: []\n };\n zrUtil.each(blocks, function (block, idx) {\n if (isTSVFormat(block)) {\n const result = parseTSVContents(block);\n const blockMeta = blockMetaList[idx];\n const axisKey = blockMeta.axisDim + 'Axis';\n\n if (blockMeta) {\n newOption[axisKey] = newOption[axisKey] || [];\n (newOption[axisKey] as any)[blockMeta.axisIndex] = {\n data: result.categories\n };\n newOption.series = (newOption.series as SeriesOption[]).concat(result.series);\n }\n }\n else {\n const result = parseListContents(block);\n (newOption.series as SeriesOption[]).push(result);\n }\n });\n return newOption;\n}\n\nexport interface ToolboxDataViewFeatureOption extends ToolboxFeatureOption {\n readOnly?: boolean\n\n optionToContent?: (option: ECUnitOption) => string | HTMLElement\n contentToOption?: (viewMain: HTMLDivElement, oldOption: ECUnitOption) => ECUnitOption\n\n icon?: string\n title?: string\n lang?: string[]\n\n backgroundColor?: ColorString\n\n textColor?: ColorString\n textareaColor?: ColorString\n textareaBorderColor?: ColorString\n\n buttonColor?: ColorString\n buttonTextColor?: ColorString\n}\n\nclass DataView extends ToolboxFeature {\n\n private _dom: HTMLDivElement;\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n const container = api.getDom();\n const model = this.model;\n if (this._dom) {\n container.removeChild(this._dom);\n }\n const root = document.createElement('div');\n root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';\n root.style.backgroundColor = model.get('backgroundColor') || '#fff';\n\n // Create elements\n const header = document.createElement('h4');\n const lang = model.get('lang') || [];\n header.innerHTML = lang[0] || model.get('title');\n header.style.cssText = 'margin: 10px 20px;';\n header.style.color = model.get('textColor');\n\n const viewMain = document.createElement('div');\n const textarea = document.createElement('textarea');\n viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';\n\n const optionToContent = model.get('optionToContent');\n const contentToOption = model.get('contentToOption');\n const result = getContentFromModel(ecModel);\n if (typeof optionToContent === 'function') {\n const htmlOrDom = optionToContent(api.getOption());\n if (typeof htmlOrDom === 'string') {\n viewMain.innerHTML = htmlOrDom;\n }\n else if (zrUtil.isDom(htmlOrDom)) {\n viewMain.appendChild(htmlOrDom);\n }\n }\n else {\n // Use default textarea\n viewMain.appendChild(textarea);\n textarea.readOnly = model.get('readOnly');\n textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';\n textarea.style.color = model.get('textColor');\n textarea.style.borderColor = model.get('textareaBorderColor');\n textarea.style.backgroundColor = model.get('textareaColor');\n textarea.value = result.value;\n }\n\n const blockMetaList = result.meta;\n\n const buttonContainer = document.createElement('div');\n buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';\n\n let buttonStyle = 'float:right;margin-right:20px;border:none;'\n + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';\n const closeButton = document.createElement('div');\n const refreshButton = document.createElement('div');\n\n buttonStyle += ';background-color:' + model.get('buttonColor');\n buttonStyle += ';color:' + model.get('buttonTextColor');\n\n const self = this;\n\n function close() {\n container.removeChild(root);\n self._dom = null;\n }\n addEventListener(closeButton, 'click', close);\n\n addEventListener(refreshButton, 'click', function () {\n if ((contentToOption == null && optionToContent != null)\n || (contentToOption != null && optionToContent == null)) {\n if (__DEV__) {\n // eslint-disable-next-line\n console.warn('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.')\n }\n close();\n return;\n }\n\n let newOption;\n try {\n if (typeof contentToOption === 'function') {\n newOption = contentToOption(viewMain, api.getOption());\n }\n else {\n newOption = parseContents(textarea.value, blockMetaList);\n }\n }\n catch (e) {\n close();\n throw new Error('Data view format error ' + e);\n }\n if (newOption) {\n api.dispatchAction({\n type: 'changeDataView',\n newOption: newOption\n });\n }\n\n close();\n });\n\n closeButton.innerHTML = lang[1];\n refreshButton.innerHTML = lang[2];\n refreshButton.style.cssText = buttonStyle;\n closeButton.style.cssText = buttonStyle;\n\n !model.get('readOnly') && buttonContainer.appendChild(refreshButton);\n buttonContainer.appendChild(closeButton);\n\n root.appendChild(header);\n root.appendChild(viewMain);\n root.appendChild(buttonContainer);\n\n viewMain.style.height = (container.clientHeight - 80) + 'px';\n\n container.appendChild(root);\n this._dom = root;\n }\n\n remove(ecModel: GlobalModel, api: ExtensionAPI) {\n this._dom && api.getDom().removeChild(this._dom);\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n this.remove(ecModel, api);\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxDataViewFeatureOption = {\n show: true,\n readOnly: false,\n optionToContent: null,\n contentToOption: null,\n\n // eslint-disable-next-line\n icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',\n title: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'title']),\n lang: ecModel.getLocaleModel().get(['toolbox', 'dataView', 'lang']),\n backgroundColor: '#fff',\n textColor: '#000',\n textareaColor: '#fff',\n textareaBorderColor: '#333',\n buttonColor: '#c23531',\n buttonTextColor: '#fff'\n };\n\n return defaultOption;\n }\n}\n\n/**\n * @inner\n */\nfunction tryMergeDataOption(newData: DataList, originalData: DataList) {\n return zrUtil.map(newData, function (newVal, idx) {\n const original = originalData && originalData[idx];\n if (zrUtil.isObject(original) && !zrUtil.isArray(original)) {\n const newValIsObject = zrUtil.isObject(newVal) && !zrUtil.isArray(newVal);\n if (!newValIsObject) {\n newVal = {\n value: newVal\n } as DataItem;\n }\n // original data has name but new data has no name\n const shouldDeleteName = original.name != null && (newVal as DataItem).name == null;\n // Original data has option\n newVal = zrUtil.defaults((newVal as DataItem), original);\n shouldDeleteName && (delete (newVal as DataItem).name);\n return newVal;\n }\n else {\n return newVal;\n }\n });\n}\n\n\n// TODO: SELF REGISTERED.\necharts.registerAction({\n type: 'changeDataView',\n event: 'dataViewChanged',\n update: 'prepareAndUpdate'\n}, function (payload: ChangeDataViewPayload, ecModel: GlobalModel) {\n const newSeriesOptList: SeriesOption[] = [];\n zrUtil.each(payload.newOption.series, function (seriesOpt) {\n const seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];\n if (!seriesModel) {\n // New created series\n // Geuss the series type\n newSeriesOptList.push(zrUtil.extend({\n // Default is scatter\n type: 'scatter'\n }, seriesOpt));\n }\n else {\n const originalData = seriesModel.get('data');\n newSeriesOptList.push({\n name: seriesOpt.name,\n data: tryMergeDataOption(seriesOpt.data as DataList, originalData as DataList)\n });\n }\n });\n\n ecModel.mergeOption(zrUtil.defaults({\n series: newSeriesOptList\n }, payload.newOption));\n});\n\nexport default DataView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport GlobalModel from '../../model/Global';\nimport { Dictionary } from '../../util/types';\nimport DataZoomModel from './DataZoomModel';\nimport { makeInner } from '../../util/model';\nimport { DataZoomPayloadBatchItem } from './helper';\n\nconst each = zrUtil.each;\n\nexport type DataZoomStoreSnapshot = Dictionary;\n\ntype Store = {\n snapshots: DataZoomStoreSnapshot[]\n};\n\nconst inner = makeInner();\n\n/**\n * @param ecModel\n * @param newSnapshot key is dataZoomId\n */\nexport function push(ecModel: GlobalModel, newSnapshot: DataZoomStoreSnapshot) {\n const storedSnapshots = getStoreSnapshots(ecModel);\n\n // If previous dataZoom can not be found,\n // complete an range with current range.\n each(newSnapshot, function (batchItem, dataZoomId) {\n let i = storedSnapshots.length - 1;\n for (; i >= 0; i--) {\n const snapshot = storedSnapshots[i];\n if (snapshot[dataZoomId]) {\n break;\n }\n }\n if (i < 0) {\n // No origin range set, create one by current range.\n const dataZoomModel = ecModel.queryComponents(\n {mainType: 'dataZoom', subType: 'select', id: dataZoomId}\n )[0] as DataZoomModel;\n if (dataZoomModel) {\n const percentRange = dataZoomModel.getPercentRange();\n storedSnapshots[0][dataZoomId] = {\n dataZoomId: dataZoomId,\n start: percentRange[0],\n end: percentRange[1]\n };\n }\n }\n });\n\n storedSnapshots.push(newSnapshot);\n}\n\nexport function pop(ecModel: GlobalModel) {\n const storedSnapshots = getStoreSnapshots(ecModel);\n const head = storedSnapshots[storedSnapshots.length - 1];\n storedSnapshots.length > 1 && storedSnapshots.pop();\n\n // Find top for all dataZoom.\n const snapshot: DataZoomStoreSnapshot = {};\n each(head, function (batchItem, dataZoomId) {\n for (let i = storedSnapshots.length - 1; i >= 0; i--) {\n batchItem = storedSnapshots[i][dataZoomId];\n if (batchItem) {\n snapshot[dataZoomId] = batchItem;\n break;\n }\n }\n });\n\n return snapshot;\n}\n\nexport function clear(ecModel: GlobalModel) {\n inner(ecModel).snapshots = null;\n}\n\nexport function count(ecModel: GlobalModel) {\n return getStoreSnapshots(ecModel).length;\n}\n\n/**\n * History length of each dataZoom may be different.\n * this._history[0] is used to store origin range.\n */\nfunction getStoreSnapshots(ecModel: GlobalModel) {\n const store = inner(ecModel);\n if (!store.snapshots) {\n store.snapshots = [{}];\n }\n return store.snapshots;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as echarts from '../../../core/echarts';\nimport * as history from '../../dataZoom/history';\nimport { ToolboxFeatureOption, ToolboxFeature } from '../featureManager';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport GlobalModel from '../../../model/Global';\n\nexport interface ToolboxRestoreFeatureOption extends ToolboxFeatureOption {\n icon?: string\n title?: string\n}\n\nclass RestoreOption extends ToolboxFeature {\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI) {\n history.clear(ecModel);\n\n api.dispatchAction({\n type: 'restore',\n from: this.uid\n });\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxRestoreFeatureOption = {\n show: true,\n // eslint-disable-next-line\n icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',\n title: ecModel.getLocaleModel().get(['toolbox', 'restore', 'title'])\n };\n\n return defaultOption;\n }\n}\n\n// TODO: SELF REGISTERED.\necharts.registerAction(\n {type: 'restore', event: 'restore', update: 'prepareAndUpdate'},\n function (payload, ecModel) {\n ecModel.resetOption('recreate');\n }\n);\n\n\nexport default RestoreOption;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport { each, indexOf, curry, assert, map, createHashMap } from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as brushHelper from './brushHelper';\nimport {\n BrushPanelConfig, BrushControllerEvents, BrushType,\n BrushAreaRange, BrushDimensionMinMax\n} from './BrushController';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport GeoModel from '../../coord/geo/GeoModel';\nimport { CoordinateSystemMaster } from '../../coord/CoordinateSystem';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport Geo from '../../coord/geo/Geo';\nimport GlobalModel from '../../model/Global';\nimport { BrushAreaParam, BrushAreaParamInternal } from '../brush/BrushModel';\nimport SeriesModel from '../../model/Series';\nimport { Dictionary } from '../../util/types';\nimport {\n ModelFinderObject, ModelFinder,\n parseFinder as modelUtilParseFinder,\n ParsedModelFinderKnown\n} from '../../util/model';\n\ntype COORD_CONVERTS_INDEX = 0 | 1;\n\n// FIXME\n// how to genarialize to more coordinate systems.\nconst INCLUDE_FINDER_MAIN_TYPES = [\n 'grid', 'xAxis', 'yAxis', 'geo', 'graph',\n 'polar', 'radiusAxis', 'angleAxis', 'bmap'\n];\n\ntype BrushableCoordinateSystem = Cartesian2D | Geo;\ntype BrushTargetBuilderKey = 'grid' | 'geo';\n\n/**\n * There can be multiple axes in a single targetInfo. Consider the case\n * of `grid` component, a targetInfo represents a grid which contains one or more\n * cartesian and one or more axes. And consider the case of parallel system,\n * which has multiple axes in a coordinate system.\n */\ninterface BrushTargetInfo {\n panelId: string;\n coordSysModel: CoordinateSystemMaster['model'];\n // Use the first one as the representitive coordSys.\n // A representitive cartesian in grid (first cartesian by default).\n coordSys: BrushableCoordinateSystem;\n // All cartesians.\n coordSyses: BrushableCoordinateSystem[];\n getPanelRect: GetPanelRect,\n}\nexport interface BrushTargetInfoCartesian2D extends BrushTargetInfo {\n gridModel: GridModel;\n coordSys: Cartesian2D;\n coordSyses: Cartesian2D[];\n xAxisDeclared: boolean;\n yAxisDeclared: boolean;\n}\nexport interface BrushTargetInfoGeo extends BrushTargetInfo {\n geoModel: GeoModel,\n coordSysModel: GeoModel,\n coordSys: Geo,\n coordSyses: Geo[],\n}\ntype GetPanelRect = () => graphic.BoundingRect;\n\n\nclass BrushTargetManager {\n\n private _targetInfoList: BrushTargetInfo[] = [];\n\n /**\n * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid\n * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]}\n * @param opt.include include coordinate system types.\n */\n constructor(\n finder: ModelFinderObject,\n ecModel: GlobalModel,\n opt?: {include?: BrushTargetBuilderKey[]}\n ) {\n const foundCpts = parseFinder(ecModel, finder);\n\n each(targetInfoBuilders, (builder, type) => {\n if (!opt || !opt.include || indexOf(opt.include, type) >= 0) {\n builder(foundCpts, this._targetInfoList);\n }\n });\n }\n\n setOutputRanges(\n areas: BrushControllerEvents['brush']['areas'],\n ecModel: GlobalModel\n ): BrushAreaParam[] {\n this.matchOutputRanges(areas, ecModel, function (\n area: BrushAreaParam,\n coordRange: ReturnType['values'],\n coordSys: BrushableCoordinateSystem\n ) {\n (area.coordRanges || (area.coordRanges = [])).push(coordRange);\n // area.coordRange is the first of area.coordRanges\n if (!area.coordRange) {\n area.coordRange = coordRange;\n // In 'category' axis, coord to pixel is not reversible, so we can not\n // rebuild range by coordRange accrately, which may bring trouble when\n // brushing only one item. So we use __rangeOffset to rebuilding range\n // by coordRange. And this it only used in brush component so it is no\n // need to be adapted to coordRanges.\n const result = coordConvert[area.brushType](0, coordSys, coordRange);\n area.__rangeOffset = {\n offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),\n xyMinMax: result.xyMinMax\n };\n }\n });\n return areas;\n }\n\n matchOutputRanges[0] & {\n brushType: BrushType;\n range: BrushAreaRange;\n }\n )>(\n areas: T[],\n ecModel: GlobalModel,\n cb: (\n area: T,\n coordRange: ReturnType['values'],\n coordSys: BrushableCoordinateSystem,\n ecModel: GlobalModel\n ) => void\n ) {\n each(areas, function (area) {\n const targetInfo = this.findTargetInfo(area, ecModel);\n\n if (targetInfo && targetInfo !== true) {\n each(\n targetInfo.coordSyses,\n function (coordSys) {\n const result = coordConvert[area.brushType](1, coordSys, area.range, true);\n cb(area, result.values, coordSys, ecModel);\n }\n );\n }\n }, this);\n }\n\n /**\n * the `areas` is `BrushModel.areas`.\n * Called in layout stage.\n * convert `area.coordRange` to global range and set panelId to `area.range`.\n */\n setInputRanges(\n areas: BrushAreaParamInternal[],\n ecModel: GlobalModel\n ): void {\n each(areas, function (area) {\n const targetInfo = this.findTargetInfo(area, ecModel);\n\n if (__DEV__) {\n assert(\n !targetInfo || targetInfo === true || area.coordRange,\n 'coordRange must be specified when coord index specified.'\n );\n assert(\n !targetInfo || targetInfo !== true || area.range,\n 'range must be specified in global brush.'\n );\n }\n\n area.range = area.range || [];\n\n // convert coordRange to global range and set panelId.\n if (targetInfo && targetInfo !== true) {\n area.panelId = targetInfo.panelId;\n // (1) area.range shoule always be calculate from coordRange but does\n // not keep its original value, for the sake of the dataZoom scenario,\n // where area.coordRange remains unchanged but area.range may be changed.\n // (2) Only support converting one coordRange to pixel range in brush\n // component. So do not consider `coordRanges`.\n // (3) About __rangeOffset, see comment above.\n const result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);\n const rangeOffset = area.__rangeOffset;\n area.range = rangeOffset\n ? diffProcessor[area.brushType](\n result.values,\n rangeOffset.offset,\n getScales(result.xyMinMax, rangeOffset.xyMinMax)\n )\n : result.values;\n }\n }, this);\n }\n\n makePanelOpts(\n api: ExtensionAPI,\n getDefaultBrushType?: (targetInfo: BrushTargetInfo) => BrushType\n ): BrushPanelConfig[] {\n return map(this._targetInfoList, function (targetInfo) {\n const rect = targetInfo.getPanelRect();\n return {\n panelId: targetInfo.panelId,\n defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null,\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(\n rect, api, targetInfo.coordSysModel\n ),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect)\n };\n });\n }\n\n controlSeries(area: BrushAreaParamInternal, seriesModel: SeriesModel, ecModel: GlobalModel): boolean {\n // Check whether area is bound in coord, and series do not belong to that coord.\n // If do not do this check, some brush (like lineX) will controll all axes.\n const targetInfo = this.findTargetInfo(area, ecModel);\n return targetInfo === true || (\n targetInfo && indexOf(\n targetInfo.coordSyses, seriesModel.coordinateSystem as BrushableCoordinateSystem\n ) >= 0\n );\n }\n\n /**\n * If return Object, a coord found.\n * If reutrn true, global found.\n * Otherwise nothing found.\n */\n findTargetInfo(\n area: ModelFinderObject & {\n panelId?: string\n },\n ecModel: GlobalModel\n ): BrushTargetInfo | true {\n const targetInfoList = this._targetInfoList;\n const foundCpts = parseFinder(ecModel, area);\n\n for (let i = 0; i < targetInfoList.length; i++) {\n const targetInfo = targetInfoList[i];\n const areaPanelId = area.panelId;\n if (areaPanelId) {\n if (targetInfo.panelId === areaPanelId) {\n return targetInfo;\n }\n }\n else {\n for (let j = 0; j < targetInfoMatchers.length; j++) {\n if (targetInfoMatchers[j](foundCpts, targetInfo)) {\n return targetInfo;\n }\n }\n }\n }\n\n return true;\n }\n\n}\n\nfunction formatMinMax(minMax: BrushDimensionMinMax): BrushDimensionMinMax {\n minMax[0] > minMax[1] && minMax.reverse();\n return minMax;\n}\n\nfunction parseFinder(\n ecModel: GlobalModel, finder: ModelFinder\n): ParsedModelFinderKnown {\n return modelUtilParseFinder(\n ecModel, finder, {includeMainTypes: INCLUDE_FINDER_MAIN_TYPES}\n );\n}\n\ntype TargetInfoBuilder = (\n foundCpts: ParsedModelFinderKnown, targetInfoList: BrushTargetInfo[]\n) => void;\nconst targetInfoBuilders: Record = {\n\n grid: function (foundCpts, targetInfoList) {\n const xAxisModels = foundCpts.xAxisModels;\n const yAxisModels = foundCpts.yAxisModels;\n const gridModels = foundCpts.gridModels;\n // Remove duplicated.\n const gridModelMap = createHashMap();\n const xAxesHas = {} as Dictionary;\n const yAxesHas = {} as Dictionary;\n\n if (!xAxisModels && !yAxisModels && !gridModels) {\n return;\n }\n\n each(xAxisModels, function (axisModel) {\n const gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n });\n each(yAxisModels, function (axisModel) {\n const gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n yAxesHas[gridModel.id] = true;\n });\n each(gridModels, function (gridModel) {\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n yAxesHas[gridModel.id] = true;\n });\n\n gridModelMap.each(function (gridModel) {\n const grid = gridModel.coordinateSystem;\n const cartesians = [] as Cartesian2D[];\n\n each(grid.getCartesians(), function (cartesian, index) {\n if (indexOf(xAxisModels, cartesian.getAxis('x').model) >= 0\n || indexOf(yAxisModels, cartesian.getAxis('y').model) >= 0\n ) {\n cartesians.push(cartesian);\n }\n });\n targetInfoList.push({\n panelId: 'grid--' + gridModel.id,\n gridModel: gridModel,\n coordSysModel: gridModel,\n // Use the first one as the representitive coordSys.\n coordSys: cartesians[0],\n coordSyses: cartesians,\n getPanelRect: panelRectBuilders.grid,\n xAxisDeclared: xAxesHas[gridModel.id],\n yAxisDeclared: yAxesHas[gridModel.id]\n } as BrushTargetInfoCartesian2D);\n });\n },\n\n geo: function (foundCpts, targetInfoList) {\n each(foundCpts.geoModels, function (geoModel: GeoModel) {\n const coordSys = geoModel.coordinateSystem;\n targetInfoList.push({\n panelId: 'geo--' + geoModel.id,\n geoModel: geoModel,\n coordSysModel: geoModel,\n coordSys: coordSys,\n coordSyses: [coordSys],\n getPanelRect: panelRectBuilders.geo\n } as BrushTargetInfoGeo);\n });\n }\n};\n\ntype TargetInfoMatcher = (\n foundCpts: ParsedModelFinderKnown, targetInfo: BrushTargetInfo\n) => boolean;\nconst targetInfoMatchers: TargetInfoMatcher[] = [\n\n // grid\n function (foundCpts, targetInfo) {\n const xAxisModel = foundCpts.xAxisModel;\n const yAxisModel = foundCpts.yAxisModel;\n let gridModel = foundCpts.gridModel;\n\n !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);\n !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);\n\n return gridModel && gridModel === (targetInfo as BrushTargetInfoCartesian2D).gridModel;\n },\n\n // geo\n function (foundCpts, targetInfo) {\n const geoModel = foundCpts.geoModel;\n return geoModel && geoModel === (targetInfo as BrushTargetInfoGeo).geoModel;\n }\n];\n\ntype PanelRectBuilder = (this: BrushTargetInfo) => graphic.BoundingRect;\nconst panelRectBuilders: Record = {\n\n grid: function (this: BrushTargetInfoCartesian2D) {\n // grid is not Transformable.\n return this.coordSys.master.getRect().clone();\n },\n\n geo: function (this: BrushTargetInfoGeo) {\n const coordSys = this.coordSys;\n const rect = coordSys.getBoundingRect().clone();\n // geo roam and zoom transform\n rect.applyTransform(graphic.getTransform(coordSys));\n return rect;\n }\n};\n\ntype ConvertCoord = (\n to: COORD_CONVERTS_INDEX,\n coordSys: BrushableCoordinateSystem,\n rangeOrCoordRange: BrushAreaRange,\n clamp?: boolean\n) => {\n values: BrushAreaRange,\n xyMinMax: BrushDimensionMinMax[]\n};\nconst coordConvert: Record = {\n\n lineX: curry(axisConvert, 0),\n\n lineY: curry(axisConvert, 1),\n\n rect: function (to, coordSys, rangeOrCoordRange: BrushDimensionMinMax[], clamp): {\n values: BrushDimensionMinMax[],\n xyMinMax: BrushDimensionMinMax[]\n } {\n const xminymin = to\n ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp)\n : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp);\n const xmaxymax = to\n ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp)\n : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp);\n const values = [\n formatMinMax([xminymin[0], xmaxymax[0]]),\n formatMinMax([xminymin[1], xmaxymax[1]])\n ];\n return {values: values, xyMinMax: values};\n },\n\n polygon: function (to, coordSys, rangeOrCoordRange: BrushDimensionMinMax[], clamp): {\n values: BrushDimensionMinMax[],\n xyMinMax: BrushDimensionMinMax[]\n } {\n const xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];\n const values = map(rangeOrCoordRange, function (item) {\n const p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp);\n xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);\n xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);\n xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);\n xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);\n return p;\n });\n return {values: values, xyMinMax: xyMinMax};\n }\n};\n\nfunction axisConvert(\n axisNameIndex: 0 | 1,\n to: COORD_CONVERTS_INDEX,\n coordSys: Cartesian2D,\n rangeOrCoordRange: BrushDimensionMinMax\n): {\n values: BrushDimensionMinMax,\n xyMinMax: BrushDimensionMinMax[]\n} {\n if (__DEV__) {\n assert(\n coordSys.type === 'cartesian2d',\n 'lineX/lineY brush is available only in cartesian2d.'\n );\n }\n\n const axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);\n const values = formatMinMax(map([0, 1], function (i) {\n return to\n ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true)\n : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));\n }));\n const xyMinMax = [];\n xyMinMax[axisNameIndex] = values;\n xyMinMax[1 - axisNameIndex] = [NaN, NaN];\n\n return {values: values, xyMinMax: xyMinMax};\n}\n\n\ntype DiffProcess = (\n values: BrushDimensionMinMax | BrushDimensionMinMax[],\n refer: BrushDimensionMinMax | BrushDimensionMinMax[],\n scales: ReturnType\n) => BrushDimensionMinMax | BrushDimensionMinMax[];\n\nconst diffProcessor: Record = {\n\n lineX: curry(axisDiffProcessor, 0),\n\n lineY: curry(axisDiffProcessor, 1),\n\n rect: function (\n values: BrushDimensionMinMax[], refer: BrushDimensionMinMax[], scales: ReturnType\n ): BrushDimensionMinMax[] {\n return [\n [values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]],\n [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]\n ];\n },\n\n polygon: function (\n values: BrushDimensionMinMax[], refer: BrushDimensionMinMax[], scales: ReturnType\n ): BrushDimensionMinMax[] {\n return map(values, function (item, idx) {\n return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];\n });\n }\n};\n\nfunction axisDiffProcessor(\n axisNameIndex: 0 | 1,\n values: BrushDimensionMinMax,\n refer: BrushDimensionMinMax,\n scales: ReturnType\n): BrushDimensionMinMax {\n return [\n values[0] - scales[axisNameIndex] * refer[0],\n values[1] - scales[axisNameIndex] * refer[1]\n ];\n}\n\n// We have to process scale caused by dataZoom manually,\n// although it might be not accurate.\n// Return [0~1, 0~1]\nfunction getScales(xyMinMaxCurr: BrushDimensionMinMax[], xyMinMaxOrigin: BrushDimensionMinMax[]): number[] {\n const sizeCurr = getSize(xyMinMaxCurr);\n const sizeOrigin = getSize(xyMinMaxOrigin);\n const scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}\n\nfunction getSize(xyMinMax: BrushDimensionMinMax[]): number[] {\n return xyMinMax\n ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]]\n : [NaN, NaN];\n}\n\nexport default BrushTargetManager;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n// TODO depends on DataZoom and Brush\nimport * as zrUtil from 'zrender/src/core/util';\nimport BrushController, { BrushControllerEvents, BrushDimensionMinMax } from '../../helper/BrushController';\nimport BrushTargetManager, { BrushTargetInfoCartesian2D } from '../../helper/BrushTargetManager';\nimport * as history from '../../dataZoom/history';\nimport sliderMove from '../../helper/sliderMove';\nimport {\n ToolboxFeature,\n ToolboxFeatureModel,\n ToolboxFeatureOption\n} from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport { Payload, Dictionary, ComponentOption, ItemStyleOption } from '../../../util/types';\nimport Cartesian2D from '../../../coord/cartesian/Cartesian2D';\nimport CartesianAxisModel from '../../../coord/cartesian/AxisModel';\nimport DataZoomModel from '../../dataZoom/DataZoomModel';\nimport {\n DataZoomPayloadBatchItem, DataZoomAxisDimension\n} from '../../dataZoom/helper';\nimport {\n ModelFinderObject, ModelFinderIndexQuery, makeInternalComponentId,\n ModelFinderIdQuery, parseFinder, ParsedModelFinderKnown\n} from '../../../util/model';\nimport ToolboxModel from '../ToolboxModel';\nimport { registerInternalOptionCreator } from '../../../model/internalComponentCreator';\nimport ComponentModel from '../../../model/Component';\n\n\nconst each = zrUtil.each;\n\nconst DATA_ZOOM_ID_BASE = makeInternalComponentId('toolbox-dataZoom_');\n\nconst ICON_TYPES = ['zoom', 'back'] as const;\ntype IconType = typeof ICON_TYPES[number];\n\nexport interface ToolboxDataZoomFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n icon?: {[key in IconType]?: string}\n title?: {[key in IconType]?: string}\n // TODO: TYPE Use type in dataZoom\n filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'\n // Backward compat: false means 'none'\n xAxisIndex?: ModelFinderIndexQuery\n yAxisIndex?: ModelFinderIndexQuery\n xAxisId?: ModelFinderIdQuery\n yAxisId?: ModelFinderIdQuery,\n\n brushStyle?: ItemStyleOption\n}\n\ntype ToolboxDataZoomFeatureModel = ToolboxFeatureModel;\n\nclass DataZoomFeature extends ToolboxFeature {\n\n _brushController: BrushController;\n\n _isZoomActive: boolean;\n\n render(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload\n ) {\n if (!this._brushController) {\n this._brushController = new BrushController(api.getZr());\n this._brushController.on('brush', zrUtil.bind(this._onBrush, this))\n .mount();\n }\n updateZoomBtnStatus(featureModel, ecModel, this, payload, api);\n updateBackBtnStatus(featureModel, ecModel);\n }\n\n onclick(\n ecModel: GlobalModel,\n api: ExtensionAPI,\n type: IconType\n ) {\n handlers[type].call(this);\n }\n\n remove(\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._brushController && this._brushController.unmount();\n }\n\n dispose(\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this._brushController && this._brushController.dispose();\n }\n\n private _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const areas = eventParam.areas;\n if (!eventParam.isEnd || !areas.length) {\n return;\n }\n const snapshot: history.DataZoomStoreSnapshot = {};\n const ecModel = this.ecModel;\n\n this._brushController.updateCovers([]); // remove cover\n\n const brushTargetManager = new BrushTargetManager(\n makeAxisFinder(this.model),\n ecModel,\n {include: ['grid']}\n );\n brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys: Cartesian2D) {\n if (coordSys.type !== 'cartesian2d') {\n return;\n }\n\n const brushType = area.brushType;\n if (brushType === 'rect') {\n setBatch('x', coordSys, (coordRange as BrushDimensionMinMax[])[0]);\n setBatch('y', coordSys, (coordRange as BrushDimensionMinMax[])[1]);\n }\n else {\n setBatch(\n ({lineX: 'x', lineY: 'y'} as const)[brushType as 'lineX' | 'lineY'],\n coordSys,\n coordRange as BrushDimensionMinMax\n );\n }\n });\n\n history.push(ecModel, snapshot);\n\n this._dispatchZoomAction(snapshot);\n\n function setBatch(dimName: DataZoomAxisDimension, coordSys: Cartesian2D, minMax: number[]) {\n const axis = coordSys.getAxis(dimName);\n const axisModel = axis.model;\n const dataZoomModel = findDataZoom(dimName, axisModel, ecModel);\n\n // Restrict range.\n const minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();\n if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {\n minMax = sliderMove(\n 0, minMax.slice(), axis.scale.getExtent(), 0,\n minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan\n );\n }\n\n dataZoomModel && (snapshot[dataZoomModel.id] = {\n dataZoomId: dataZoomModel.id,\n startValue: minMax[0],\n endValue: minMax[1]\n });\n }\n\n function findDataZoom(\n dimName: DataZoomAxisDimension, axisModel: CartesianAxisModel, ecModel: GlobalModel\n ): DataZoomModel {\n let found;\n ecModel.eachComponent({mainType: 'dataZoom', subType: 'select'}, function (dzModel: DataZoomModel) {\n const has = dzModel.getAxisModel(dimName, axisModel.componentIndex);\n has && (found = dzModel);\n });\n return found;\n }\n };\n\n _dispatchZoomAction(snapshot: history.DataZoomStoreSnapshot): void {\n const batch: DataZoomPayloadBatchItem[] = [];\n\n // Convert from hash map to array.\n each(snapshot, function (batchItem, dataZoomId) {\n batch.push(zrUtil.clone(batchItem));\n });\n\n batch.length && this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n batch: batch\n });\n }\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxDataZoomFeatureOption = {\n show: true,\n filterMode: 'filter',\n // Icon group\n icon: {\n zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',\n back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'\n },\n // `zoom`, `back`\n title: ecModel.getLocaleModel().get(['toolbox', 'dataZoom', 'title']),\n brushStyle: {\n borderWidth: 0,\n color: 'rgba(210,219,238,0.2)'\n }\n };\n\n return defaultOption;\n }\n}\n\nconst handlers: { [key in IconType]: (this: DataZoomFeature) => void } = {\n zoom: function () {\n const nextActive = !this._isZoomActive;\n\n this.api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'dataZoomSelect',\n dataZoomSelectActive: nextActive\n });\n },\n\n back: function () {\n this._dispatchZoomAction(history.pop(this.ecModel));\n }\n};\n\n\nfunction makeAxisFinder(dzFeatureModel: ToolboxDataZoomFeatureModel): ModelFinderObject {\n const setting = {\n xAxisIndex: dzFeatureModel.get('xAxisIndex', true),\n yAxisIndex: dzFeatureModel.get('yAxisIndex', true),\n xAxisId: dzFeatureModel.get('xAxisId', true),\n yAxisId: dzFeatureModel.get('yAxisId', true)\n } as ModelFinderObject;\n\n // If both `xAxisIndex` `xAxisId` not set, it means 'all'.\n // If both `yAxisIndex` `yAxisId` not set, it means 'all'.\n // Some old cases set like this below to close yAxis control but leave xAxis control:\n // `{ feature: { dataZoom: { yAxisIndex: false } }`.\n if (setting.xAxisIndex == null && setting.xAxisId == null) {\n setting.xAxisIndex = 'all';\n }\n if (setting.yAxisIndex == null && setting.yAxisId == null) {\n setting.yAxisIndex = 'all';\n }\n\n return setting;\n}\n\nfunction updateBackBtnStatus(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel\n) {\n featureModel.setIconStatus(\n 'back',\n history.count(ecModel) > 1 ? 'emphasis' : 'normal'\n );\n}\n\nfunction updateZoomBtnStatus(\n featureModel: ToolboxDataZoomFeatureModel,\n ecModel: GlobalModel,\n view: DataZoomFeature,\n payload: Payload,\n api: ExtensionAPI\n) {\n let zoomActive = view._isZoomActive;\n\n if (payload && payload.type === 'takeGlobalCursor') {\n zoomActive = payload.key === 'dataZoomSelect'\n ? payload.dataZoomSelectActive : false;\n }\n\n view._isZoomActive = zoomActive;\n\n featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');\n\n const brushTargetManager = new BrushTargetManager(\n makeAxisFinder(featureModel),\n ecModel,\n {include: ['grid']}\n );\n\n const panels = brushTargetManager.makePanelOpts(api, function (targetInfo: BrushTargetInfoCartesian2D) {\n return (targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared)\n ? 'lineX'\n : (!targetInfo.xAxisDeclared && targetInfo.yAxisDeclared)\n ? 'lineY'\n : 'rect';\n });\n\n view._brushController\n .setPanels(panels)\n .enableBrush(\n (zoomActive && panels.length)\n ? {\n brushType: 'auto',\n brushStyle: featureModel.getModel('brushStyle').getItemStyle()\n }\n : false\n );\n}\n\nregisterInternalOptionCreator('dataZoom', function (ecModel: GlobalModel): ComponentOption[] {\n const toolboxModel = ecModel.getComponent('toolbox', 0) as ToolboxModel;\n const featureDataZoomPath = ['feature', 'dataZoom'] as const;\n if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) {\n return;\n }\n const dzFeatureModel = toolboxModel.getModel(featureDataZoomPath as any) as ToolboxDataZoomFeatureModel;\n const dzOptions = [] as ComponentOption[];\n\n const finder = makeAxisFinder(dzFeatureModel);\n const finderResult = parseFinder(ecModel, finder) as ParsedModelFinderKnown;\n\n each(finderResult.xAxisModels, axisModel => buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex'));\n each(finderResult.yAxisModels, axisModel => buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex'));\n\n function buildInternalOptions(\n axisModel: ComponentModel,\n axisMainType: 'xAxis' | 'yAxis',\n axisIndexPropName: 'xAxisIndex' | 'yAxisIndex'\n ) {\n const axisIndex = axisModel.componentIndex;\n const newOpt = {\n type: 'select',\n $fromToolbox: true,\n // Default to be filter\n filterMode: dzFeatureModel.get('filterMode', true) || 'filter',\n // Id for merge mapping.\n id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex\n } as Dictionary;\n newOpt[axisIndexPropName] = axisIndex;\n\n dzOptions.push(newOpt);\n }\n\n return dzOptions;\n});\n\n\nexport default DataZoomFeature;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport { install as installDataZoomSelect } from '../../component/dataZoom/installDataZoomSelect';\nimport ToolboxModel from './ToolboxModel';\nimport ToolboxView from './ToolboxView';\n\n// TODOD: REGISTER IN INSTALL\nimport { registerFeature } from './featureManager';\nimport SaveAsImage from './feature/SaveAsImage';\nimport MagicType from './feature/MagicType';\nimport DataView from './feature/DataView';\nimport Restore from './feature/Restore';\nimport DataZoom from './feature/DataZoom';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(ToolboxModel);\n registers.registerComponentView(ToolboxView);\n\n registerFeature('saveAsImage', SaveAsImage);\n registerFeature('magicType', MagicType);\n registerFeature('dataView', DataView);\n registerFeature('dataZoom', DataZoom);\n registerFeature('restore', Restore);\n\n use(installDataZoomSelect);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n LabelOption,\n LineStyleOption,\n CommonTooltipOption,\n TooltipRenderMode,\n CallbackDataParams,\n TooltipOrderMode\n} from '../../util/types';\nimport {AxisPointerOption} from '../axisPointer/AxisPointerModel';\n\n\nexport type TopLevelFormatterParams = CallbackDataParams | CallbackDataParams[];\n\nexport interface TooltipOption extends CommonTooltipOption, ComponentOption {\n mainType?: 'tooltip'\n\n axisPointer?: AxisPointerOption & {\n axis?: 'auto' | 'x' | 'y' | 'angle' | 'radius'\n crossStyle?: LineStyleOption & {\n // TODO\n textStyle?: LabelOption\n }\n }\n /**\n * If show popup content\n */\n showContent?: boolean\n /**\n * Trigger only works on coordinate system.\n */\n trigger?: 'item' | 'axis' | 'none'\n\n displayMode?: 'single' | 'multipleByCoordSys';\n\n /**\n * 'auto': use html by default, and use non-html if `document` is not defined\n * 'html': use html for tooltip\n * 'richText': use canvas, svg, and etc. for tooltip\n */\n renderMode?: 'auto' | TooltipRenderMode // TODO richText renamed canvas?\n\n /**\n * If append popup dom to document.body\n * Only available when renderMode is html\n */\n appendToBody?: boolean\n\n /**\n * specified class name of tooltip dom\n * Only available when renderMode is html\n */\n className?: string\n\n order?: TooltipOrderMode\n}\n\nclass TooltipModel extends ComponentModel {\n static type = 'tooltip' as const;\n type = TooltipModel.type;\n\n static dependencies = ['axisPointer'];\n\n static defaultOption: TooltipOption = {\n zlevel: 0,\n\n z: 60,\n\n show: true,\n\n // tooltip main content\n showContent: true,\n\n // 'trigger' only works on coordinate system.\n // 'item' | 'axis' | 'none'\n trigger: 'item',\n\n // 'click' | 'mousemove' | 'none'\n triggerOn: 'mousemove|click',\n\n alwaysShowContent: false,\n\n displayMode: 'single', // 'single' | 'multipleByCoordSys'\n\n renderMode: 'auto', // 'auto' | 'html' | 'richText'\n\n // whether restraint content inside viewRect.\n // If renderMode: 'richText', default true.\n // If renderMode: 'html', defaut false (for backward compat).\n confine: null,\n\n showDelay: 0,\n\n hideDelay: 100,\n\n // Animation transition time, unit is second\n transitionDuration: 0.4,\n\n enterable: false,\n\n backgroundColor: '#fff',\n\n // box shadow\n shadowBlur: 10,\n shadowColor: 'rgba(0, 0, 0, .2)',\n shadowOffsetX: 1,\n shadowOffsetY: 2,\n\n // tooltip border radius, unit is px, default is 4\n borderRadius: 4,\n\n // tooltip border width, unit is px, default is 0 (no border)\n borderWidth: 1,\n\n // Tooltip inside padding, default is 5 for all direction\n // Array is allowed to set up, right, bottom, left, same with css\n // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.\n padding: null,\n\n // Extra css text\n extraCssText: '',\n\n // axis indicator, trigger by axis\n axisPointer: {\n // default is line\n // legal values: 'line' | 'shadow' | 'cross'\n type: 'line',\n\n // Valid when type is line, appoint tooltip line locate on which line. Optional\n // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'\n // default is 'auto', chose the axis which type is category.\n // for multiply y axis, cartesian coord chose x axis, polar chose angle axis\n axis: 'auto',\n\n animation: 'auto',\n animationDurationUpdate: 200,\n animationEasingUpdate: 'exponentialOut',\n\n crossStyle: {\n color: '#999',\n width: 1,\n type: 'dashed',\n\n // TODO formatter\n textStyle: {}\n }\n\n // lineStyle and shadowStyle should not be specified here,\n // otherwise it will always override those styles on option.axisPointer.\n },\n textStyle: {\n color: '#666',\n fontSize: 14\n }\n };\n}\n\nexport default TooltipModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { TooltipOption } from './TooltipModel';\nimport Model from '../../model/Model';\nimport { toCamelCase } from '../../util/format';\nimport env from 'zrender/src/core/env';\n\n/* global document */\n\nexport function shouldTooltipConfine(tooltipModel: Model): boolean {\n const confineOption = tooltipModel.get('confine');\n return confineOption != null\n ? !!confineOption\n // In richText mode, the outside part can not be visible.\n : tooltipModel.get('renderMode') === 'richText';\n}\n\nfunction testStyle(styleProps: string[]): string | undefined {\n if (!env.domSupported) {\n return;\n }\n const style = document.documentElement.style;\n for (let i = 0, len = styleProps.length; i < len; i++) {\n if (styleProps[i] in style) {\n return styleProps[i];\n }\n }\n}\n\nexport const TRANSFORM_VENDOR = testStyle(\n ['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']\n);\n\nexport const TRANSITION_VENDOR = testStyle(\n ['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']\n);\n\nexport function toCSSVendorPrefix(styleVendor: string, styleProp: string) {\n if (!styleVendor) {\n return styleProp;\n }\n styleProp = toCamelCase(styleProp, true);\n const idx = styleVendor.indexOf(styleProp);\n styleVendor = idx === -1\n ? styleProp\n : `-${styleVendor.slice(0, idx)}-${styleProp}`;\n return styleVendor.toLowerCase();\n}\n\nexport function getComputedStyle(el: HTMLElement, style?: string) {\n const stl = (el as any).currentStyle\n || (document.defaultView && document.defaultView.getComputedStyle(el));\n return stl\n ? style ? stl[style] : stl\n : null;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isString, indexOf, each, bind, isArray, isDom } from 'zrender/src/core/util';\nimport { toHex } from 'zrender/src/tool/color';\nimport { normalizeEvent } from 'zrender/src/core/event';\nimport { transformLocalCoord } from 'zrender/src/core/dom';\nimport env from 'zrender/src/core/env';\nimport { convertToColorString, toCamelCase, normalizeCssArray } from '../../util/format';\nimport type ExtensionAPI from '../../core/ExtensionAPI';\nimport type { ZRenderType } from 'zrender/src/zrender';\nimport type { TooltipOption } from './TooltipModel';\nimport Model from '../../model/Model';\nimport type { ZRRawEvent } from 'zrender/src/core/types';\nimport type { ZRColor } from '../../util/types';\nimport type CanvasPainter from 'zrender/src/canvas/Painter';\nimport type SVGPainter from 'zrender/src/svg/Painter';\nimport {\n shouldTooltipConfine,\n toCSSVendorPrefix,\n getComputedStyle,\n TRANSFORM_VENDOR,\n TRANSITION_VENDOR\n} from './helper';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\n\n/* global document, window */\n\nconst CSS_TRANSITION_VENDOR = toCSSVendorPrefix(TRANSITION_VENDOR, 'transition');\nconst CSS_TRANSFORM_VENDOR = toCSSVendorPrefix(TRANSFORM_VENDOR, 'transform');\n\n// eslint-disable-next-line\nconst gCssText = `position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;${env.transform3dSupported ? 'will-change:transform;' : ''}`;\n\nfunction mirrorPos(pos: string): string {\n pos = pos === 'left'\n ? 'right'\n : pos === 'right'\n ? 'left'\n : pos === 'top'\n ? 'bottom'\n : 'top';\n return pos;\n}\n\nfunction assembleArrow(\n tooltipModel: Model,\n borderColor: ZRColor,\n arrowPosition: TooltipOption['position']\n) {\n if (!isString(arrowPosition) || arrowPosition === 'inside') {\n return '';\n }\n\n const backgroundColor = tooltipModel.get('backgroundColor');\n const borderWidth = tooltipModel.get('borderWidth');\n\n borderColor = convertToColorString(borderColor);\n const arrowPos = mirrorPos(arrowPosition);\n const arrowSize = Math.max(Math.round(borderWidth) * 1.5, 6);\n let positionStyle = '';\n let transformStyle = CSS_TRANSFORM_VENDOR + ':';\n let rotateDeg;\n if (indexOf(['left', 'right'], arrowPos) > -1) {\n positionStyle += 'top:50%';\n transformStyle += `translateY(-50%) rotate(${rotateDeg = arrowPos === 'left' ? -225 : -45}deg)`;\n }\n else {\n positionStyle += 'left:50%';\n transformStyle += `translateX(-50%) rotate(${rotateDeg = arrowPos === 'top' ? 225 : 45}deg)`;\n }\n const rotateRadian = rotateDeg * Math.PI / 180;\n const arrowWH = arrowSize + borderWidth;\n const rotatedWH = arrowWH * Math.abs(Math.cos(rotateRadian)) + arrowWH * Math.abs(Math.sin(rotateRadian));\n const arrowOffset = Math.round(((rotatedWH - Math.SQRT2 * borderWidth) / 2\n + Math.SQRT2 * borderWidth - (rotatedWH - arrowWH) / 2) * 100) / 100;\n positionStyle += `;${arrowPos}:-${arrowOffset}px`;\n\n const borderStyle = `${borderColor} solid ${borderWidth}px;`;\n const styleCss = [\n `position:absolute;width:${arrowSize}px;height:${arrowSize}px;`,\n `${positionStyle};${transformStyle};`,\n `border-bottom:${borderStyle}`,\n `border-right:${borderStyle}`,\n `background-color:${backgroundColor};`\n ];\n\n return `
`;\n}\n\nfunction assembleTransition(duration: number, onlyFade?: boolean): string {\n const transitionCurve = 'cubic-bezier(0.23,1,0.32,1)';\n let transitionOption = ` ${duration / 2}s ${transitionCurve}`;\n let transitionText = `opacity${transitionOption},visibility${transitionOption}`;\n if (!onlyFade) {\n transitionOption = ` ${duration}s ${transitionCurve}`;\n transitionText += env.transformSupported\n ? `,${CSS_TRANSFORM_VENDOR}${transitionOption}`\n : `,left${transitionOption},top${transitionOption}`;\n }\n\n return CSS_TRANSITION_VENDOR + ':' + transitionText;\n}\n\nfunction assembleTransform(x: number, y: number, toString?: boolean) {\n // If using float on style, the final width of the dom might\n // keep changing slightly while mouse move. So `toFixed(0)` them.\n const x0 = x.toFixed(0) + 'px';\n const y0 = y.toFixed(0) + 'px';\n // not support transform, use `left` and `top` instead.\n if (!env.transformSupported) {\n return toString\n ? `top:${y0};left:${x0};`\n : [['top', y0], ['left', x0]];\n }\n // support transform\n const is3d = env.transform3dSupported;\n const translate = `translate${is3d ? '3d' : ''}(${x0},${y0}${is3d ? ',0' : ''})`;\n return toString\n ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';'\n : [['top', 0], ['left', 0], [TRANSFORM_VENDOR, translate]];\n}\n\n/**\n * @param {Object} textStyle\n * @return {string}\n * @inner\n */\nfunction assembleFont(textStyleModel: Model): string {\n const cssText = [];\n\n const fontSize = textStyleModel.get('fontSize');\n const color = textStyleModel.getTextColor();\n\n color && cssText.push('color:' + color);\n\n cssText.push('font:' + textStyleModel.getFont());\n\n fontSize\n // @ts-ignore, leave it to the tooltip refactor.\n && cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');\n\n const shadowColor = textStyleModel.get('textShadowColor');\n const shadowBlur = textStyleModel.get('textShadowBlur') || 0;\n const shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;\n const shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;\n shadowColor && shadowBlur\n && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px '\n + shadowBlur + 'px ' + shadowColor);\n\n each(['decoration', 'align'] as const, function (name) {\n const val = textStyleModel.get(name);\n val && cssText.push('text-' + name + ':' + val);\n });\n\n return cssText.join(';');\n}\n\nfunction assembleCssText(tooltipModel: Model, enableTransition?: boolean, onlyFade?: boolean) {\n const cssText: string[] = [];\n const transitionDuration = tooltipModel.get('transitionDuration');\n const backgroundColor = tooltipModel.get('backgroundColor');\n const shadowBlur = tooltipModel.get('shadowBlur');\n const shadowColor = tooltipModel.get('shadowColor');\n const shadowOffsetX = tooltipModel.get('shadowOffsetX');\n const shadowOffsetY = tooltipModel.get('shadowOffsetY');\n const textStyleModel = tooltipModel.getModel('textStyle');\n const padding = getPaddingFromTooltipModel(tooltipModel, 'html');\n const boxShadow = `${shadowOffsetX}px ${shadowOffsetY}px ${shadowBlur}px ${shadowColor}`;\n\n cssText.push('box-shadow:' + boxShadow);\n // Animation transition. Do not animate when transitionDuration is 0.\n enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade));\n\n if (backgroundColor) {\n if (env.canvasSupported) {\n cssText.push('background-color:' + backgroundColor);\n }\n else {\n // for ie\n cssText.push(\n 'background-color:#' + toHex(backgroundColor)\n );\n cssText.push('filter:alpha(opacity=70)');\n }\n }\n\n // Border style\n each(['width', 'color', 'radius'] as const, function (name) {\n const borderName = 'border-' + name;\n const camelCase = toCamelCase(borderName) as 'borderWidth' | 'borderColor' | 'borderRadius';\n const val = tooltipModel.get(camelCase);\n val != null\n && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));\n });\n\n // Text style\n cssText.push(assembleFont(textStyleModel));\n\n // Padding\n if (padding != null) {\n cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px');\n }\n\n return cssText.join(';') + ';';\n}\n\n// If not able to make, do not modify the input `out`.\nfunction makeStyleCoord(out: number[], zr: ZRenderType, appendToBody: boolean, zrX: number, zrY: number) {\n const zrPainter = zr && zr.painter;\n\n if (appendToBody) {\n const zrViewportRoot = zrPainter && zrPainter.getViewportRoot();\n if (zrViewportRoot) {\n // Some APPs might use scale on body, so we support CSS transform here.\n transformLocalCoord(out, zrViewportRoot, document.body, zrX, zrY);\n }\n }\n else {\n out[0] = zrX;\n out[1] = zrY;\n // xy should be based on canvas root. But tooltipContent is\n // the sibling of canvas root. So padding of ec container\n // should be considered here.\n const viewportRootOffset = zrPainter && (zrPainter as CanvasPainter | SVGPainter).getViewportRootOffset();\n if (viewportRootOffset) {\n out[0] += viewportRootOffset.offsetLeft;\n out[1] += viewportRootOffset.offsetTop;\n }\n }\n\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\ninterface TooltipContentOption {\n /**\n * `false`: the DOM element will be inside the container. Default value.\n * `true`: the DOM element will be appended to HTML body, which avoid\n * some overflow clip but intrude outside of the container.\n */\n appendToBody: boolean\n}\n\nclass TooltipHTMLContent {\n\n el: HTMLDivElement;\n\n private _container: HTMLElement;\n\n private _show: boolean = false;\n\n private _styleCoord: [number, number, number, number] = [0, 0, 0, 0];\n private _appendToBody: boolean;\n\n private _enterable = true;\n private _zr: ZRenderType;\n\n private _hideTimeout: number;\n /**\n * Hide delay time\n */\n private _hideDelay: number;\n\n private _inContent: boolean;\n private _firstShow = true;\n private _longHide = true;\n /**\n * Record long-time hide\n */\n private _longHideTimeout: number;\n\n constructor(\n container: HTMLElement,\n api: ExtensionAPI,\n opt: TooltipContentOption\n ) {\n if (env.wxa) {\n return null;\n }\n\n const el = document.createElement('div');\n // TODO: TYPE\n (el as any).domBelongToZr = true;\n this.el = el;\n const zr = this._zr = api.getZr();\n const appendToBody = this._appendToBody = opt && opt.appendToBody;\n\n makeStyleCoord(this._styleCoord, zr, appendToBody, api.getWidth() / 2, api.getHeight() / 2);\n\n if (appendToBody) {\n document.body.appendChild(el);\n }\n else {\n container.appendChild(el);\n }\n\n this._container = container;\n\n // FIXME\n // Is it needed to trigger zr event manually if\n // the browser do not support `pointer-events: none`.\n\n const self = this;\n el.onmouseenter = function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n self._inContent = true;\n };\n el.onmousemove = function (e) {\n e = e || (window as any).event;\n if (!self._enterable) {\n // `pointer-events: none` is set to tooltip content div\n // if `enterable` is set as `false`, and `el.onmousemove`\n // can not be triggered. But in browser that do not\n // support `pointer-events`, we need to do this:\n // Try trigger zrender event to avoid mouse\n // in and out shape too frequently\n const handler = zr.handler;\n const zrViewportRoot = zr.painter.getViewportRoot();\n normalizeEvent(zrViewportRoot, e as ZRRawEvent, true);\n handler.dispatch('mousemove', e);\n }\n };\n el.onmouseleave = function () {\n // set `_inContent` to `false` before `hideLater`\n self._inContent = false;\n\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n };\n }\n\n /**\n * Update when tooltip is rendered\n */\n update(tooltipModel: Model) {\n // FIXME\n // Move this logic to ec main?\n const container = this._container;\n const position = getComputedStyle(container, 'position');\n const domStyle = container.style;\n if (domStyle.position !== 'absolute' && position !== 'absolute') {\n domStyle.position = 'relative';\n }\n\n // move tooltip if chart resized\n const alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n\n // update className\n this.el.className = tooltipModel.get('className') || '';\n\n // Hide the tooltip\n // PENDING\n // this.hide();\n }\n\n show(tooltipModel: Model, nearPointColor: ZRColor) {\n clearTimeout(this._hideTimeout);\n clearTimeout(this._longHideTimeout);\n const el = this.el;\n const style = el.style;\n const styleCoord = this._styleCoord;\n if (!el.innerHTML) {\n style.display = 'none';\n }\n else {\n style.cssText = gCssText\n + assembleCssText(tooltipModel, !this._firstShow, this._longHide)\n // initial transform\n + assembleTransform(styleCoord[0], styleCoord[1], true)\n + `border-color:${convertToColorString(nearPointColor)};`\n + (tooltipModel.get('extraCssText') || '')\n // If mouse occasionally move over the tooltip, a mouseout event will be\n // triggered by canvas, and cause some unexpectable result like dragging\n // stop, \"unfocusAdjacency\". Here `pointer-events: none` is used to solve\n // it. Although it is not supported by IE8~IE10, fortunately it is a rare\n // scenario.\n + `;pointer-events:${this._enterable ? 'auto' : 'none'}`;\n }\n\n this._show = true;\n this._firstShow = false;\n this._longHide = false;\n }\n\n setContent(\n content: string | HTMLElement | HTMLElement[],\n markers: unknown,\n tooltipModel: Model,\n borderColor?: ZRColor,\n arrowPosition?: TooltipOption['position']\n ) {\n const el = this.el;\n\n if (content == null) {\n el.innerHTML = '';\n return;\n }\n\n let arrow = '';\n if (isString(arrowPosition) && tooltipModel.get('trigger') === 'item'\n && !shouldTooltipConfine(tooltipModel)) {\n arrow = assembleArrow(tooltipModel, borderColor, arrowPosition);\n }\n if (isString(content)) {\n el.innerHTML = content + arrow;\n }\n else if (content) {\n // Clear previous\n el.innerHTML = '';\n if (!isArray(content)) {\n content = [content];\n }\n for (let i = 0; i < content.length; i++) {\n if (isDom(content[i]) && content[i].parentNode !== el) {\n el.appendChild(content[i]);\n }\n }\n // no arrow if empty\n if (arrow && el.childNodes.length) {\n // no need to create a new parent element, but it's not supported by IE 10 and older.\n // const arrowEl = document.createRange().createContextualFragment(arrow);\n const arrowEl = document.createElement('div');\n arrowEl.innerHTML = arrow;\n el.appendChild(arrowEl);\n }\n }\n }\n\n setEnterable(enterable: boolean) {\n this._enterable = enterable;\n }\n\n getSize() {\n const el = this.el;\n return [el.offsetWidth, el.offsetHeight];\n }\n\n moveTo(zrX: number, zrY: number) {\n const styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, this._appendToBody, zrX, zrY);\n\n if (styleCoord[0] != null && styleCoord[1] != null) {\n const style = this.el.style;\n const transforms = assembleTransform(styleCoord[0], styleCoord[1]) as string[][];\n each(transforms, (transform) => {\n style[transform[0] as any] = transform[1];\n });\n }\n }\n\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n _moveIfResized() {\n // The ratio of left to width\n const ratioX = this._styleCoord[2];\n // The ratio of top to height\n const ratioY = this._styleCoord[3];\n this.moveTo(\n ratioX * this._zr.getWidth(),\n ratioY * this._zr.getHeight()\n );\n }\n\n hide() {\n const style = this.el.style;\n style.visibility = 'hidden';\n style.opacity = '0';\n env.transform3dSupported && (style.willChange = '');\n this._show = false;\n this._longHideTimeout = setTimeout(() => this._longHide = true, 500) as any;\n }\n\n hideLater(time?: number) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time;\n // Set show false to avoid invoke hideLater multiple times\n this._show = false;\n this._hideTimeout = setTimeout(bind(this.hide, this), time) as any;\n }\n else {\n this.hide();\n }\n }\n }\n\n isShow() {\n return this._show;\n }\n\n dispose() {\n this.el.parentNode.removeChild(this.el);\n }\n\n getOuterSize() {\n let width = this.el.clientWidth;\n let height = this.el.clientHeight;\n\n // Consider browser compatibility.\n // IE8 does not support getComputedStyle.\n const stl = getComputedStyle(this.el);\n if (stl) {\n width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10);\n height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10);\n }\n\n return {width: width, height: height};\n }\n\n}\n\nexport default TooltipHTMLContent;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { TooltipOption } from './TooltipModel';\nimport { ZRColor } from '../../util/types';\nimport Model from '../../model/Model';\nimport ZRText, { TextStyleProps } from 'zrender/src/graphic/Text';\nimport { TooltipMarkupStyleCreator, getPaddingFromTooltipModel } from './tooltipMarkup';\nimport { throwError } from '../../util/log';\n\nclass TooltipRichContent {\n\n private _zr: ZRenderType;\n\n private _show = false;\n\n private _styleCoord: [number, number, number, number] = [0, 0, 0, 0];\n\n private _hideTimeout: number;\n\n private _enterable = true;\n\n private _inContent: boolean;\n\n private _hideDelay: number;\n\n el: ZRText;\n\n constructor(api: ExtensionAPI) {\n this._zr = api.getZr();\n makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2);\n }\n\n /**\n * Update when tooltip is rendered\n */\n update(tooltipModel: Model) {\n const alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n }\n\n show() {\n if (this._hideTimeout) {\n clearTimeout(this._hideTimeout);\n }\n\n this.el.show();\n this._show = true;\n }\n\n /**\n * Set tooltip content\n */\n setContent(\n content: string | HTMLElement | HTMLElement[],\n markupStyleCreator: TooltipMarkupStyleCreator,\n tooltipModel: Model,\n borderColor: ZRColor,\n arrowPosition: TooltipOption['position']\n ) {\n if (zrUtil.isObject(content)) {\n throwError(__DEV__ ? 'Passing DOM nodes as content is not supported in richText tooltip!' : '');\n }\n if (this.el) {\n this._zr.remove(this.el);\n }\n\n const textStyleModel = tooltipModel.getModel('textStyle');\n\n this.el = new ZRText({\n style: {\n rich: markupStyleCreator.richTextStyles,\n text: content as string,\n lineHeight: 22,\n backgroundColor: tooltipModel.get('backgroundColor'),\n borderRadius: tooltipModel.get('borderRadius'),\n borderWidth: 1,\n borderColor: borderColor as string,\n shadowColor: tooltipModel.get('shadowColor'),\n shadowBlur: tooltipModel.get('shadowBlur'),\n shadowOffsetX: tooltipModel.get('shadowOffsetX'),\n shadowOffsetY: tooltipModel.get('shadowOffsetY'),\n textShadowColor: textStyleModel.get('textShadowColor'),\n textShadowBlur: textStyleModel.get('textShadowBlur') || 0,\n textShadowOffsetX: textStyleModel.get('textShadowOffsetX') || 0,\n textShadowOffsetY: textStyleModel.get('textShadowOffsetY') || 0,\n fill: tooltipModel.get(['textStyle', 'color']),\n padding: getPaddingFromTooltipModel(tooltipModel, 'richText'),\n verticalAlign: 'top',\n align: 'left'\n },\n z: tooltipModel.get('z')\n });\n this._zr.add(this.el);\n\n const self = this;\n this.el.on('mouseover', function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n self._inContent = true;\n });\n this.el.on('mouseout', function () {\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n self._inContent = false;\n });\n }\n\n setEnterable(enterable?: boolean) {\n this._enterable = enterable;\n }\n\n getSize() {\n const el = this.el;\n const bounding = this.el.getBoundingRect();\n // bounding rect does not include shadow. For renderMode richText,\n // if overflow, it will be cut. So calculate them accurately.\n const shadowOuterSize = calcShadowOuterSize(el.style);\n return [\n bounding.width + shadowOuterSize.left + shadowOuterSize.right,\n bounding.height + shadowOuterSize.top + shadowOuterSize.bottom\n ];\n }\n\n moveTo(x: number, y: number) {\n const el = this.el;\n if (el) {\n const styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, x, y);\n x = styleCoord[0];\n y = styleCoord[1];\n const style = el.style;\n const borderWidth = mathMaxWith0(style.borderWidth || 0);\n const shadowOuterSize = calcShadowOuterSize(style);\n // rich text x, y do not include border.\n el.x = x + borderWidth + shadowOuterSize.left;\n el.y = y + borderWidth + shadowOuterSize.top;\n el.markRedraw();\n }\n }\n\n\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n _moveIfResized() {\n // The ratio of left to width\n const ratioX = this._styleCoord[2];\n // The ratio of top to height\n const ratioY = this._styleCoord[3];\n this.moveTo(\n ratioX * this._zr.getWidth(),\n ratioY * this._zr.getHeight()\n );\n }\n\n hide() {\n if (this.el) {\n this.el.hide();\n }\n this._show = false;\n }\n\n hideLater(time?: number) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time;\n // Set show false to avoid invoke hideLater multiple times\n this._show = false;\n this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time) as any;\n }\n else {\n this.hide();\n }\n }\n }\n\n isShow() {\n return this._show;\n }\n\n getOuterSize() {\n const size = this.getSize();\n return {\n width: size[0],\n height: size[1]\n };\n }\n\n dispose() {\n this._zr.remove(this.el);\n }\n}\n\nfunction mathMaxWith0(val: number): number {\n return Math.max(0, val);\n}\n\nfunction calcShadowOuterSize(style: TextStyleProps) {\n const shadowBlur = mathMaxWith0(style.shadowBlur || 0);\n const shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0);\n const shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0);\n return {\n left: mathMaxWith0(shadowBlur - shadowOffsetX),\n right: mathMaxWith0(shadowBlur + shadowOffsetX),\n top: mathMaxWith0(shadowBlur - shadowOffsetY),\n bottom: mathMaxWith0(shadowBlur + shadowOffsetY)\n };\n}\n\nfunction makeStyleCoord(out: number[], zr: ZRenderType, zrX: number, zrY: number) {\n out[0] = zrX;\n out[1] = zrY;\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nexport default TooltipRichContent;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport TooltipHTMLContent from './TooltipHTMLContent';\nimport TooltipRichContent from './TooltipRichContent';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport findPointFromSeries from '../axisPointer/findPointFromSeries';\nimport * as layoutUtil from '../../util/layout';\nimport Model from '../../model/Model';\nimport * as globalListener from '../axisPointer/globalListener';\nimport * as axisHelper from '../../coord/axisHelper';\nimport * as axisPointerViewHelper from '../axisPointer/viewHelper';\nimport { getTooltipRenderMode, preParseFinder, queryReferringComponents } from '../../util/model';\nimport ComponentView from '../../view/Component';\nimport { format as timeFormat } from '../../util/time';\nimport {\n HorizontalAlign,\n VerticalAlign,\n ZRRectLike,\n BoxLayoutOptionMixin,\n CallbackDataParams,\n TooltipRenderMode,\n ECElement,\n CommonTooltipOption,\n ZRColor,\n ComponentMainType,\n ComponentItemTooltipOption\n} from '../../util/types';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport TooltipModel, { TooltipOption } from './TooltipModel';\nimport Element from 'zrender/src/Element';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\n// import { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { ECData, getECData } from '../../util/innerStore';\nimport { shouldTooltipConfine } from './helper';\nimport { DataByCoordSys, DataByAxis } from '../axisPointer/axisTrigger';\nimport { normalizeTooltipFormatResult } from '../../model/mixin/dataFormat';\nimport { createTooltipMarkup, buildTooltipMarkup, TooltipMarkupStyleCreator } from './tooltipMarkup';\nimport { findEventDispatcher } from '../../util/event';\n\nconst bind = zrUtil.bind;\nconst each = zrUtil.each;\nconst parsePercent = numberUtil.parsePercent;\n\nconst proxyRect = new graphic.Rect({\n shape: { x: -1, y: -1, width: 2, height: 2 }\n});\n\ninterface DataIndex {\n seriesIndex: number\n dataIndex: number\n\n dataIndexInside: number\n}\n\ninterface ShowTipPayload {\n type?: 'showTip'\n from?: string\n\n // Type 1\n tooltip?: ECData['tooltipConfig']['option']\n\n // Type 2\n dataByCoordSys?: DataByCoordSys[]\n tooltipOption?: CommonTooltipOption\n\n // Type 3\n seriesIndex?: number\n dataIndex?: number\n\n // Type 4\n name?: string // target item name that enable tooltip.\n // legendIndex: 0,\n // toolboxId: 'some_id',\n // geoName: 'some_name',\n\n x?: number\n y?: number\n position?: TooltipOption['position']\n\n dispatchAction?: ExtensionAPI['dispatchAction']\n}\n\ninterface HideTipPayload {\n type?: 'hideTip'\n from?: string\n\n dispatchAction?: ExtensionAPI['dispatchAction']\n}\n\ninterface TryShowParams {\n target?: ECElement,\n\n offsetX?: number\n offsetY?: number\n\n /**\n * Used for axis trigger.\n */\n dataByCoordSys?: DataByCoordSys[]\n\n tooltipOption?: ComponentItemTooltipOption\n\n position?: TooltipOption['position']\n /**\n * If `position` is not set in payload nor option, use it.\n */\n positionDefault?: TooltipOption['position']\n}\n\ntype TooltipCallbackDataParams = CallbackDataParams & {\n axisDim?: string\n axisIndex?: number\n axisType?: string\n axisId?: string\n // TODO: TYPE Value type\n axisValue?: string | number\n axisValueLabel?: string\n marker?: formatUtil.TooltipMarker\n};\n\nclass TooltipView extends ComponentView {\n static type = 'tooltip' as const;\n type = TooltipView.type;\n\n private _renderMode: TooltipRenderMode;\n\n private _tooltipModel: TooltipModel;\n\n private _ecModel: GlobalModel;\n\n private _api: ExtensionAPI;\n\n private _alwaysShowContent: boolean;\n\n private _tooltipContent: TooltipHTMLContent | TooltipRichContent;\n\n private _refreshUpdateTimeout: number;\n\n private _lastX: number;\n private _lastY: number;\n\n private _ticket: string;\n\n private _showTimout: number;\n\n private _lastDataByCoordSys: DataByCoordSys[];\n private _cbParamsList: TooltipCallbackDataParams[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n\n const tooltipModel = ecModel.getComponent('tooltip') as TooltipModel;\n const renderMode = tooltipModel.get('renderMode');\n this._renderMode = getTooltipRenderMode(renderMode);\n\n this._tooltipContent = this._renderMode === 'richText'\n ? new TooltipRichContent(api)\n : new TooltipHTMLContent(api.getDom(), api, {\n appendToBody: tooltipModel.get('appendToBody', true)\n });\n }\n\n render(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n if (env.node) {\n return;\n }\n\n // Reset\n this.group.removeAll();\n\n this._tooltipModel = tooltipModel;\n\n this._ecModel = ecModel;\n\n this._api = api;\n\n /**\n * @private\n * @type {boolean}\n */\n this._alwaysShowContent = tooltipModel.get('alwaysShowContent');\n\n const tooltipContent = this._tooltipContent;\n tooltipContent.update(tooltipModel);\n tooltipContent.setEnterable(tooltipModel.get('enterable'));\n\n this._initGlobalListener();\n\n this._keepShow();\n }\n\n private _initGlobalListener() {\n const tooltipModel = this._tooltipModel;\n const triggerOn = tooltipModel.get('triggerOn');\n\n globalListener.register(\n 'itemTooltip',\n this._api,\n bind(function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none') {\n if (triggerOn.indexOf(currTrigger) >= 0) {\n this._tryShow(e, dispatchAction);\n }\n else if (currTrigger === 'leave') {\n this._hide(dispatchAction);\n }\n }\n }, this)\n );\n }\n\n private _keepShow() {\n const tooltipModel = this._tooltipModel;\n const ecModel = this._ecModel;\n const api = this._api;\n\n // Try to keep the tooltip show when refreshing\n if (this._lastX != null\n && this._lastY != null\n // When user is willing to control tooltip totally using API,\n // self.manuallyShowTip({x, y}) might cause tooltip hide,\n // which is not expected.\n && tooltipModel.get('triggerOn') !== 'none'\n ) {\n const self = this;\n clearTimeout(this._refreshUpdateTimeout);\n this._refreshUpdateTimeout = setTimeout(function () {\n // Show tip next tick after other charts are rendered\n // In case highlight action has wrong result\n // FIXME\n !api.isDisposed() && self.manuallyShowTip(tooltipModel, ecModel, api, {\n x: self._lastX,\n y: self._lastY,\n dataByCoordSys: self._lastDataByCoordSys\n });\n }) as any;\n }\n }\n\n /**\n * Show tip manually by\n * dispatchAction({\n * type: 'showTip',\n * x: 10,\n * y: 10\n * });\n * Or\n * dispatchAction({\n * type: 'showTip',\n * seriesIndex: 0,\n * dataIndex or dataIndexInside or name\n * });\n *\n * TODO Batch\n */\n manuallyShowTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: ShowTipPayload\n ) {\n if (payload.from === this.uid || env.node) {\n return;\n }\n\n const dispatchAction = makeDispatchAction(payload, api);\n\n // Reset ticket\n this._ticket = '';\n\n // When triggered from axisPointer.\n const dataByCoordSys = payload.dataByCoordSys;\n\n const cmptRef = findComponentReference(payload, ecModel, api);\n\n if (cmptRef) {\n const rect = cmptRef.el.getBoundingRect().clone();\n rect.applyTransform(cmptRef.el.transform);\n this._tryShow({\n offsetX: rect.x + rect.width / 2,\n offsetY: rect.y + rect.height / 2,\n target: cmptRef.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n else if (payload.tooltip && payload.x != null && payload.y != null) {\n const el = proxyRect as unknown as ECElement;\n el.x = payload.x;\n el.y = payload.y;\n el.update();\n getECData(el).tooltipConfig = {\n name: null,\n option: payload.tooltip\n };\n // Manually show tooltip while view is not using zrender elements.\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n target: el\n }, dispatchAction);\n }\n else if (dataByCoordSys) {\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n dataByCoordSys: dataByCoordSys,\n tooltipOption: payload.tooltipOption\n }, dispatchAction);\n }\n else if (payload.seriesIndex != null) {\n\n if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {\n return;\n }\n\n const pointInfo = findPointFromSeries(payload, ecModel);\n const cx = pointInfo.point[0];\n const cy = pointInfo.point[1];\n if (cx != null && cy != null) {\n this._tryShow({\n offsetX: cx,\n offsetY: cy,\n target: pointInfo.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n }\n else if (payload.x != null && payload.y != null) {\n // FIXME\n // should wrap dispatchAction like `axisPointer/globalListener` ?\n api.dispatchAction({\n type: 'updateAxisPointer',\n x: payload.x,\n y: payload.y\n });\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n target: api.getZr().findHover(payload.x, payload.y).target\n }, dispatchAction);\n }\n }\n\n manuallyHideTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: HideTipPayload\n ) {\n const tooltipContent = this._tooltipContent;\n\n if (!this._alwaysShowContent && this._tooltipModel) {\n tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));\n }\n\n this._lastX = this._lastY = this._lastDataByCoordSys = null;\n\n if (payload.from !== this.uid) {\n this._hide(makeDispatchAction(payload, api));\n }\n }\n\n // Be compatible with previous design, that is, when tooltip.type is 'axis' and\n // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer\n // and tooltip.\n private _manuallyAxisShowTip(\n tooltipModel: TooltipModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: ShowTipPayload\n ) {\n const seriesIndex = payload.seriesIndex;\n const dataIndex = payload.dataIndex;\n // @ts-ignore\n const coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;\n\n if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {\n return;\n }\n\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n if (!seriesModel) {\n return;\n }\n\n const data = seriesModel.getData();\n const tooltipCascadedModel = buildTooltipModel([\n data.getItemModel(dataIndex),\n seriesModel as Model,\n (seriesModel.coordinateSystem || {}).model as Model\n ], this._tooltipModel);\n\n if (tooltipCascadedModel.get('trigger') !== 'axis') {\n return;\n }\n\n api.dispatchAction({\n type: 'updateAxisPointer',\n seriesIndex: seriesIndex,\n dataIndex: dataIndex,\n position: payload.position\n });\n\n return true;\n }\n\n private _tryShow(\n e: TryShowParams,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const el = e.target;\n const tooltipModel = this._tooltipModel;\n\n if (!tooltipModel) {\n return;\n }\n\n // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed\n this._lastX = e.offsetX;\n this._lastY = e.offsetY;\n\n const dataByCoordSys = e.dataByCoordSys;\n if (dataByCoordSys && dataByCoordSys.length) {\n this._showAxisTooltip(dataByCoordSys, e);\n }\n else if (el) {\n this._lastDataByCoordSys = null;\n\n let seriesDispatcher: Element;\n let cmptDispatcher: Element;\n findEventDispatcher(el, (target) => {\n // Always show item tooltip if mouse is on the element with dataIndex\n if (getECData(target).dataIndex != null) {\n seriesDispatcher = target;\n return true;\n }\n // Tooltip provided directly. Like legend.\n if (getECData(target).tooltipConfig != null) {\n cmptDispatcher = target;\n return true;\n }\n }, true);\n\n if (seriesDispatcher) {\n this._showSeriesItemTooltip(e, seriesDispatcher, dispatchAction);\n }\n else if (cmptDispatcher) {\n this._showComponentItemTooltip(e, cmptDispatcher, dispatchAction);\n }\n else {\n this._hide(dispatchAction);\n }\n }\n else {\n this._lastDataByCoordSys = null;\n this._hide(dispatchAction);\n }\n }\n\n private _showOrMove(\n tooltipModel: Model,\n cb: () => void\n ) {\n // showDelay is used in this case: tooltip.enterable is set\n // as true. User intent to move mouse into tooltip and click\n // something. `showDelay` makes it easier to enter the content\n // but tooltip do not move immediately.\n const delay = tooltipModel.get('showDelay');\n cb = zrUtil.bind(cb, this);\n clearTimeout(this._showTimout);\n delay > 0\n ? (this._showTimout = setTimeout(cb, delay) as any)\n : cb();\n }\n\n private _showAxisTooltip(\n dataByCoordSys: DataByCoordSys[],\n e: TryShowParams\n ) {\n const ecModel = this._ecModel;\n const globalTooltipModel = this._tooltipModel;\n const point = [e.offsetX, e.offsetY];\n const singleTooltipModel = buildTooltipModel(\n [e.tooltipOption],\n globalTooltipModel\n );\n const renderMode = this._renderMode;\n const cbParamsList: TooltipCallbackDataParams[] = [];\n const articleMarkup = createTooltipMarkup('section', {\n blocks: [],\n noHeader: true\n });\n // Only for legacy: `Serise['formatTooltip']` returns a string.\n const markupTextArrLegacy: string[] = [];\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n\n each(dataByCoordSys, function (itemCoordSys) {\n each(itemCoordSys.dataByAxis, function (axisItem) {\n const axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex) as AxisBaseModel;\n const axisValue = axisItem.value;\n if (!axisModel || axisValue == null) {\n return;\n }\n const axisValueLabel = axisPointerViewHelper.getValueLabel(\n axisValue, axisModel.axis, ecModel,\n axisItem.seriesDataIndices,\n axisItem.valueLabelOpt\n );\n const axisSectionMarkup = createTooltipMarkup('section', {\n header: axisValueLabel,\n noHeader: !zrUtil.trim(axisValueLabel),\n sortBlocks: true,\n blocks: []\n });\n articleMarkup.blocks.push(axisSectionMarkup);\n\n zrUtil.each(axisItem.seriesDataIndices, function (idxItem) {\n const series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n const dataIndex = idxItem.dataIndexInside;\n const cbParams = series.getDataParams(dataIndex) as TooltipCallbackDataParams;\n // Can't find data.\n if (cbParams.dataIndex < 0) {\n return;\n }\n\n cbParams.axisDim = axisItem.axisDim;\n cbParams.axisIndex = axisItem.axisIndex;\n cbParams.axisType = axisItem.axisType;\n cbParams.axisId = axisItem.axisId;\n cbParams.axisValue = axisHelper.getAxisRawValue(\n axisModel.axis, { value: axisValue as number }\n );\n cbParams.axisValueLabel = axisValueLabel;\n // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n cbParams.marker = markupStyleCreator.makeTooltipMarker(\n 'item', formatUtil.convertToColorString(cbParams.color), renderMode\n );\n\n const seriesTooltipResult = normalizeTooltipFormatResult(\n series.formatTooltip(dataIndex, true, null)\n );\n if (seriesTooltipResult.markupFragment) {\n axisSectionMarkup.blocks.push(seriesTooltipResult.markupFragment);\n }\n if (seriesTooltipResult.markupText) {\n markupTextArrLegacy.push(seriesTooltipResult.markupText);\n }\n cbParamsList.push(cbParams);\n });\n });\n });\n\n // In most cases, the second axis is displays upper on the first one.\n // So we reverse it to look better.\n articleMarkup.blocks.reverse();\n markupTextArrLegacy.reverse();\n\n const positionExpr = e.position;\n const orderMode = singleTooltipModel.get('order');\n\n const builtMarkupText = buildTooltipMarkup(\n articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'),\n singleTooltipModel.get('textStyle')\n );\n builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText);\n const blockBreak = renderMode === 'richText' ? '\\n\\n' : '
';\n const allMarkupText = markupTextArrLegacy.join(blockBreak);\n\n this._showOrMove(singleTooltipModel, function (this: TooltipView) {\n if (this._updateContentNotChangedOnAxis(dataByCoordSys, cbParamsList)) {\n this._updatePosition(\n singleTooltipModel,\n positionExpr,\n point[0], point[1],\n this._tooltipContent,\n cbParamsList\n );\n }\n else {\n this._showTooltipContent(\n singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '',\n point[0], point[1], positionExpr, null, markupStyleCreator\n );\n }\n });\n\n // Do not trigger events here, because this branch only be entered\n // from dispatchAction.\n }\n\n private _showSeriesItemTooltip(\n e: TryShowParams,\n dispatcher: ECElement,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const ecModel = this._ecModel;\n const ecData = getECData(dispatcher);\n // Use dataModel in element if possible\n // Used when mouseover on a element like markPoint or edge\n // In which case, the data is not main data in series.\n const seriesIndex = ecData.seriesIndex;\n const seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n // For example, graph link.\n const dataModel = ecData.dataModel || seriesModel;\n const dataIndex = ecData.dataIndex;\n const dataType = ecData.dataType;\n const data = dataModel.getData(dataType);\n const renderMode = this._renderMode;\n\n const positionDefault = e.positionDefault;\n const tooltipModel = buildTooltipModel(\n [\n data.getItemModel(dataIndex),\n dataModel,\n seriesModel && (seriesModel.coordinateSystem || {}).model as Model\n ],\n this._tooltipModel,\n positionDefault ? { position: positionDefault } : null\n );\n\n const tooltipTrigger = tooltipModel.get('trigger');\n if (tooltipTrigger != null && tooltipTrigger !== 'item') {\n return;\n }\n\n const params = dataModel.getDataParams(dataIndex, dataType);\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n params.marker = markupStyleCreator.makeTooltipMarker(\n 'item', formatUtil.convertToColorString(params.color), renderMode\n );\n\n const seriesTooltipResult = normalizeTooltipFormatResult(\n dataModel.formatTooltip(dataIndex, false, dataType)\n );\n const orderMode = tooltipModel.get('order');\n const markupText = seriesTooltipResult.markupFragment\n ? buildTooltipMarkup(\n seriesTooltipResult.markupFragment,\n markupStyleCreator,\n renderMode,\n orderMode,\n ecModel.get('useUTC'),\n tooltipModel.get('textStyle')\n )\n : seriesTooltipResult.markupText;\n\n const asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;\n\n this._showOrMove(tooltipModel, function (this: TooltipView) {\n this._showTooltipContent(\n tooltipModel, markupText, params, asyncTicket,\n e.offsetX, e.offsetY, e.position, e.target,\n markupStyleCreator\n );\n });\n\n // FIXME\n // duplicated showtip if manuallyShowTip is called from dispatchAction.\n dispatchAction({\n type: 'showTip',\n dataIndexInside: dataIndex,\n dataIndex: data.getRawIndex(dataIndex),\n seriesIndex: seriesIndex,\n from: this.uid\n });\n }\n\n private _showComponentItemTooltip(\n e: TryShowParams,\n el: ECElement,\n dispatchAction: ExtensionAPI['dispatchAction']\n ) {\n const ecData = getECData(el);\n const tooltipConfig = ecData.tooltipConfig;\n let tooltipOpt = tooltipConfig.option || {};\n if (zrUtil.isString(tooltipOpt)) {\n const content = tooltipOpt;\n tooltipOpt = {\n content: content,\n // Fixed formatter\n formatter: content\n };\n }\n\n const tooltipModelCascade = [tooltipOpt] as TooltipModelOptionCascade[];\n const cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);\n if (cmpt) {\n tooltipModelCascade.push(cmpt as Model);\n }\n // In most cases, component tooltip formatter has different params with series tooltip formatter,\n // so that they can not share the same formatter. Since the global tooltip formatter is used for series\n // by convension, we do not use it as the default formatter for component.\n tooltipModelCascade.push({ formatter: tooltipOpt.content });\n\n const positionDefault = e.positionDefault;\n const subTooltipModel = buildTooltipModel(\n tooltipModelCascade,\n this._tooltipModel,\n positionDefault ? { position: positionDefault } : null\n );\n\n const defaultHtml = subTooltipModel.get('content');\n const asyncTicket = Math.random() + '';\n // PENDING: this case do not support richText style yet.\n const markupStyleCreator = new TooltipMarkupStyleCreator();\n\n // Do not check whether `trigger` is 'none' here, because `trigger`\n // only works on coordinate system. In fact, we have not found case\n // that requires setting `trigger` nothing on component yet.\n\n this._showOrMove(subTooltipModel, function (this: TooltipView) {\n // Use formatterParams from element defined in component\n // Avoid users modify it.\n const formatterParams = zrUtil.clone(subTooltipModel.get('formatterParams') as any || {});\n this._showTooltipContent(\n subTooltipModel, defaultHtml, formatterParams,\n asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator\n );\n });\n\n // If not dispatch showTip, tip may be hide triggered by axis.\n dispatchAction({\n type: 'showTip',\n from: this.uid\n });\n }\n\n private _showTooltipContent(\n // Use Model insteadof TooltipModel because this model may be from series or other options.\n // Instead of top level tooltip.\n tooltipModel: Model,\n defaultHtml: string,\n params: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n asyncTicket: string,\n x: number,\n y: number,\n positionExpr: TooltipOption['position'],\n el: ECElement,\n markupStyleCreator: TooltipMarkupStyleCreator\n ) {\n // Reset ticket\n this._ticket = '';\n\n if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {\n return;\n }\n\n const tooltipContent = this._tooltipContent;\n\n const formatter = tooltipModel.get('formatter');\n positionExpr = positionExpr || tooltipModel.get('position');\n let html: string | HTMLElement | HTMLElement[] = defaultHtml;\n const nearPoint = this._getNearestPoint(\n [x, y],\n params,\n tooltipModel.get('trigger'),\n tooltipModel.get('borderColor')\n );\n const nearPointColor = nearPoint.color;\n\n if (formatter) {\n if (zrUtil.isString(formatter)) {\n const useUTC = tooltipModel.ecModel.get('useUTC');\n const params0 = zrUtil.isArray(params) ? params[0] : params;\n const isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0;\n html = formatter;\n if (isTimeAxis) {\n html = timeFormat(params0.axisValue, html, useUTC);\n }\n html = formatUtil.formatTpl(html, params, true);\n }\n else if (zrUtil.isFunction(formatter)) {\n const callback = bind(function (cbTicket: string, html: string | HTMLElement | HTMLElement[]) {\n if (cbTicket === this._ticket) {\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n this._updatePosition(\n tooltipModel, positionExpr, x, y, tooltipContent, params, el\n );\n }\n }, this);\n this._ticket = asyncTicket;\n html = formatter(params, asyncTicket, callback);\n }\n else {\n html = formatter;\n }\n }\n\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n tooltipContent.show(tooltipModel, nearPointColor);\n this._updatePosition(\n tooltipModel, positionExpr, x, y, tooltipContent, params, el\n );\n\n }\n\n private _getNearestPoint(\n point: number[],\n tooltipDataParams: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n trigger: TooltipOption['trigger'],\n borderColor: ZRColor\n ): {\n color: ZRColor;\n } {\n if (trigger === 'axis' || zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none')\n };\n }\n\n if (!zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor\n };\n }\n }\n\n private _updatePosition(\n tooltipModel: Model,\n positionExpr: TooltipOption['position'],\n x: number, // Mouse x\n y: number, // Mouse y\n content: TooltipHTMLContent | TooltipRichContent,\n params: TooltipCallbackDataParams | TooltipCallbackDataParams[],\n el?: Element\n ) {\n const viewWidth = this._api.getWidth();\n const viewHeight = this._api.getHeight();\n\n positionExpr = positionExpr || tooltipModel.get('position');\n\n const contentSize = content.getSize();\n let align = tooltipModel.get('align');\n let vAlign = tooltipModel.get('verticalAlign');\n const rect = el && el.getBoundingRect().clone();\n el && rect.applyTransform(el.transform);\n\n if (zrUtil.isFunction(positionExpr)) {\n // Callback of position can be an array or a string specify the position\n positionExpr = positionExpr([x, y], params, content.el, rect, {\n viewSize: [viewWidth, viewHeight],\n contentSize: contentSize.slice() as [number, number]\n });\n }\n\n if (zrUtil.isArray(positionExpr)) {\n x = parsePercent(positionExpr[0], viewWidth);\n y = parsePercent(positionExpr[1], viewHeight);\n }\n else if (zrUtil.isObject(positionExpr)) {\n const boxLayoutPosition = positionExpr as BoxLayoutOptionMixin;\n boxLayoutPosition.width = contentSize[0];\n boxLayoutPosition.height = contentSize[1];\n const layoutRect = layoutUtil.getLayoutRect(\n boxLayoutPosition, { width: viewWidth, height: viewHeight }\n );\n x = layoutRect.x;\n y = layoutRect.y;\n align = null;\n // When positionExpr is left/top/right/bottom,\n // align and verticalAlign will not work.\n vAlign = null;\n }\n // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element\n else if (zrUtil.isString(positionExpr) && el) {\n const pos = calcTooltipPosition(\n positionExpr, rect, contentSize, tooltipModel.get('borderWidth'),\n );\n x = pos[0];\n y = pos[1];\n }\n else {\n const pos = refixTooltipPosition(\n x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20\n );\n x = pos[0];\n y = pos[1];\n }\n\n align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);\n vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);\n\n if (shouldTooltipConfine(tooltipModel)) {\n const pos = confineTooltipPosition(\n x, y, content, viewWidth, viewHeight\n );\n x = pos[0];\n y = pos[1];\n }\n\n content.moveTo(x, y);\n }\n\n // FIXME\n // Should we remove this but leave this to user?\n private _updateContentNotChangedOnAxis(\n dataByCoordSys: DataByCoordSys[],\n cbParamsList: TooltipCallbackDataParams[]\n ) {\n const lastCoordSys = this._lastDataByCoordSys;\n const lastCbParamsList = this._cbParamsList;\n let contentNotChanged = !!lastCoordSys\n && lastCoordSys.length === dataByCoordSys.length;\n\n contentNotChanged && each(lastCoordSys, (lastItemCoordSys, indexCoordSys) => {\n const lastDataByAxis = lastItemCoordSys.dataByAxis || [] as DataByAxis[];\n const thisItemCoordSys = dataByCoordSys[indexCoordSys] || {} as DataByCoordSys;\n const thisDataByAxis = thisItemCoordSys.dataByAxis || [] as DataByAxis[];\n contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;\n\n contentNotChanged && each(lastDataByAxis, (lastItem, indexAxis) => {\n const thisItem = thisDataByAxis[indexAxis] || {} as DataByAxis;\n const lastIndices = lastItem.seriesDataIndices || [] as DataIndex[];\n const newIndices = thisItem.seriesDataIndices || [] as DataIndex[];\n\n contentNotChanged = contentNotChanged\n && lastItem.value === thisItem.value\n && lastItem.axisType === thisItem.axisType\n && lastItem.axisId === thisItem.axisId\n && lastIndices.length === newIndices.length;\n\n contentNotChanged && each(lastIndices, (lastIdxItem, j) => {\n const newIdxItem = newIndices[j];\n contentNotChanged = contentNotChanged\n && lastIdxItem.seriesIndex === newIdxItem.seriesIndex\n && lastIdxItem.dataIndex === newIdxItem.dataIndex;\n });\n\n // check is cbParams data value changed\n lastCbParamsList && zrUtil.each(lastItem.seriesDataIndices, (idxItem) => {\n const seriesIdx = idxItem.seriesIndex;\n const cbParams = cbParamsList[seriesIdx];\n const lastCbParams = lastCbParamsList[seriesIdx];\n if (cbParams && lastCbParams && lastCbParams.data !== cbParams.data) {\n contentNotChanged = false;\n }\n });\n });\n });\n\n this._lastDataByCoordSys = dataByCoordSys;\n this._cbParamsList = cbParamsList;\n\n return !!contentNotChanged;\n }\n\n private _hide(dispatchAction: ExtensionAPI['dispatchAction']) {\n // Do not directly hideLater here, because this behavior may be prevented\n // in dispatchAction when showTip is dispatched.\n\n // FIXME\n // duplicated hideTip if manuallyHideTip is called from dispatchAction.\n this._lastDataByCoordSys = null;\n dispatchAction({\n type: 'hideTip',\n from: this.uid\n });\n }\n\n dispose(ecModel: GlobalModel, api: ExtensionAPI) {\n if (env.node) {\n return;\n }\n this._tooltipContent.dispose();\n globalListener.unregister('itemTooltip', api);\n }\n}\n\ntype TooltipableOption = {\n tooltip?: CommonTooltipOption;\n};\ntype TooltipModelOptionCascade =\n Model | CommonTooltipOption | string;\n/**\n * From top to bottom. (the last one should be globalTooltipModel);\n */\nfunction buildTooltipModel(\n modelCascade: TooltipModelOptionCascade[],\n globalTooltipModel: TooltipModel,\n defaultTooltipOption?: CommonTooltipOption\n): Model> {\n // Last is always tooltip model.\n const ecModel = globalTooltipModel.ecModel;\n let resultModel: Model>;\n\n if (defaultTooltipOption) {\n resultModel = new Model(defaultTooltipOption, ecModel, ecModel);\n resultModel = new Model(globalTooltipModel.option, resultModel, ecModel);\n }\n else {\n resultModel = globalTooltipModel as Model>;\n }\n\n for (let i = modelCascade.length - 1; i >= 0; i--) {\n let tooltipOpt = modelCascade[i];\n if (tooltipOpt) {\n if (tooltipOpt instanceof Model) {\n tooltipOpt = (tooltipOpt as Model).get('tooltip', true);\n }\n // In each data item tooltip can be simply write:\n // {\n // value: 10,\n // tooltip: 'Something you need to know'\n // }\n if (zrUtil.isString(tooltipOpt)) {\n tooltipOpt = {\n formatter: tooltipOpt\n };\n }\n if (tooltipOpt) {\n resultModel = new Model(tooltipOpt, resultModel, ecModel);\n }\n }\n }\n\n return resultModel as Model>;\n}\n\nfunction makeDispatchAction(payload: ShowTipPayload | HideTipPayload, api: ExtensionAPI) {\n return payload.dispatchAction || zrUtil.bind(api.dispatchAction, api);\n}\n\nfunction refixTooltipPosition(\n x: number, y: number,\n content: TooltipHTMLContent | TooltipRichContent,\n viewWidth: number, viewHeight: number,\n gapH: number, gapV: number\n) {\n const size = content.getOuterSize();\n const width = size.width;\n const height = size.height;\n\n if (gapH != null) {\n // Add extra 2 pixels for this case:\n // At present the \"values\" in defaut tooltip are using CSS `float: right`.\n // When the right edge of the tooltip box is on the right side of the\n // viewport, the `float` layout might push the \"values\" to the second line.\n if (x + width + gapH + 2 > viewWidth) {\n x -= width + gapH;\n }\n else {\n x += gapH;\n }\n }\n if (gapV != null) {\n if (y + height + gapV > viewHeight) {\n y -= height + gapV;\n }\n else {\n y += gapV;\n }\n }\n return [x, y];\n}\n\nfunction confineTooltipPosition(\n x: number, y: number,\n content: TooltipHTMLContent | TooltipRichContent,\n viewWidth: number,\n viewHeight: number\n): [number, number] {\n const size = content.getOuterSize();\n const width = size.width;\n const height = size.height;\n\n x = Math.min(x + width, viewWidth) - width;\n y = Math.min(y + height, viewHeight) - height;\n x = Math.max(x, 0);\n y = Math.max(y, 0);\n\n return [x, y];\n}\n\nfunction calcTooltipPosition(\n position: TooltipOption['position'],\n rect: ZRRectLike,\n contentSize: number[],\n borderWidth: number\n): [number, number] {\n const domWidth = contentSize[0];\n const domHeight = contentSize[1];\n const offset = Math.max(Math.ceil(Math.sqrt(2 * borderWidth * borderWidth)), 5);\n let x = 0;\n let y = 0;\n const rectWidth = rect.width;\n const rectHeight = rect.height;\n switch (position) {\n case 'inside':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n case 'top':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y - domHeight - offset;\n break;\n case 'bottom':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight + offset;\n break;\n case 'left':\n x = rect.x - domWidth - offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n case 'right':\n x = rect.x + rectWidth + offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n }\n return [x, y];\n}\n\nfunction isCenterAlign(align: HorizontalAlign | VerticalAlign) {\n return align === 'center' || align === 'middle';\n}\n\n/**\n * Find target component by payload like:\n * ```js\n * { legendId: 'some_id', name: 'xxx' }\n * { toolboxIndex: 1, name: 'xxx' }\n * { geoName: 'some_name', name: 'xxx' }\n * ```\n * PENDING: at present only\n *\n * If not found, return null/undefined.\n */\nfunction findComponentReference(\n payload: ShowTipPayload,\n ecModel: GlobalModel,\n api: ExtensionAPI\n): {\n componentMainType: ComponentMainType;\n componentIndex: number;\n el: ECElement;\n} {\n const { queryOptionMap } = preParseFinder(payload);\n const componentMainType = queryOptionMap.keys()[0];\n if (!componentMainType || componentMainType === 'series') {\n return;\n }\n\n const queryResult = queryReferringComponents(\n ecModel,\n componentMainType,\n queryOptionMap.get(componentMainType),\n { useDefault: false, enableAll: false, enableNone: false }\n );\n const model = queryResult.models[0];\n if (!model) {\n return;\n }\n\n const view = api.getViewOfComponentModel(model);\n let el: ECElement;\n view.group.traverse((subEl: ECElement) => {\n const tooltipConfig = getECData(subEl).tooltipConfig;\n if (tooltipConfig && tooltipConfig.name === payload.name) {\n el = subEl;\n return true; // stop\n }\n });\n\n if (el) {\n return {\n componentMainType,\n componentIndex: model.componentIndex,\n el\n };\n }\n}\n\nexport default TooltipView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {install as installAxisPointer} from '../axisPointer/install';\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport TooltipModel from './TooltipModel';\nimport TooltipView from './TooltipView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installAxisPointer);\n\n registers.registerComponentModel(TooltipModel);\n registers.registerComponentView(TooltipView);\n /**\n * @action\n * @property {string} type\n * @property {number} seriesIndex\n * @property {number} dataIndex\n * @property {number} [x]\n * @property {number} [y]\n */\n registers.registerAction(\n {\n type: 'showTip',\n event: 'showTip',\n update: 'tooltip:manuallyShowTip'\n },\n // noop\n function () {}\n );\n\n registers.registerAction(\n {\n type: 'hideTip',\n event: 'hideTip',\n update: 'tooltip:manuallyHideTip'\n },\n // noop\n function () {}\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption, Dictionary } from '../../util/types';\nimport { BrushOption, BrushToolboxIconType } from './BrushModel';\nimport { ToolboxOption } from '../toolbox/ToolboxModel';\nimport { ToolboxBrushFeatureOption } from '../toolbox/feature/Brush';\nimport { normalizeToArray } from '../../util/model';\n\nconst DEFAULT_TOOLBOX_BTNS: BrushToolboxIconType[] = ['rect', 'polygon', 'keep', 'clear'];\n\nexport default function brushPreprocessor(option: ECUnitOption, isNew: boolean): void {\n const brushComponents = normalizeToArray(option ? option.brush : []);\n\n if (!brushComponents.length) {\n return;\n }\n\n let brushComponentSpecifiedBtns = [] as string[];\n\n zrUtil.each(brushComponents, function (brushOpt: BrushOption) {\n const tbs = brushOpt.hasOwnProperty('toolbox')\n ? brushOpt.toolbox : [];\n\n if (tbs instanceof Array) {\n brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);\n }\n });\n\n let toolbox: ToolboxOption = option && option.toolbox;\n\n if (zrUtil.isArray(toolbox)) {\n toolbox = toolbox[0];\n }\n if (!toolbox) {\n toolbox = {feature: {}};\n option.toolbox = [toolbox];\n }\n\n const toolboxFeature = (toolbox.feature || (toolbox.feature = {}));\n const toolboxBrush = (toolboxFeature.brush || (toolboxFeature.brush = {})) as ToolboxBrushFeatureOption;\n const brushTypes = toolboxBrush.type || (toolboxBrush.type = []);\n\n brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);\n\n removeDuplicate(brushTypes);\n\n if (isNew && !brushTypes.length) {\n brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);\n }\n}\n\nfunction removeDuplicate(arr: string[]): void {\n const map = {} as Dictionary;\n zrUtil.each(arr, function (val) {\n map[val] = 1;\n });\n arr.length = 0;\n zrUtil.each(map, function (flag, val) {\n arr.push(val);\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual solution, for consistent option specification.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapping, { VisualMappingOption } from './VisualMapping';\nimport { Dictionary } from 'zrender/src/core/types';\nimport {\n BuiltinVisualProperty,\n ParsedValue,\n DimensionLoose,\n StageHandlerProgressExecutor,\n DimensionIndex\n} from '../util/types';\nimport SeriesData from '../data/SeriesData';\nimport { getItemVisualFromData, setItemVisualFromData } from './helper';\n\nconst each = zrUtil.each;\n\ntype VisualMappingCollection\n = {\n [key in VisualState]?: {\n [key in BuiltinVisualProperty]?: VisualMapping\n } & {\n __alphaForOpacity?: VisualMapping\n }\n };\n\nfunction hasKeys(obj: Dictionary) {\n if (obj) {\n for (const name in obj) {\n if (obj.hasOwnProperty(name)) {\n return true;\n }\n }\n }\n}\n\ntype VisualOption = {[key in BuiltinVisualProperty]?: any};\n\n\nexport function createVisualMappings(\n option: Partial>,\n stateList: readonly VisualState[],\n supplementVisualOption: (mappingOption: VisualMappingOption, state: string) => void\n) {\n const visualMappings: VisualMappingCollection = {};\n\n each(stateList, function (state) {\n const mappings = visualMappings[state] = createMappings();\n\n each(option[state], function (visualData: VisualOption, visualType: BuiltinVisualProperty) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n let mappingOption = {\n type: visualType,\n visual: visualData\n };\n supplementVisualOption && supplementVisualOption(mappingOption, state);\n mappings[visualType] = new VisualMapping(mappingOption);\n\n // Prepare a alpha for opacity, for some case that opacity\n // is not supported, such as rendering using gradient color.\n if (visualType === 'opacity') {\n mappingOption = zrUtil.clone(mappingOption);\n mappingOption.type = 'colorAlpha';\n mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption);\n }\n });\n });\n\n return visualMappings;\n\n function createMappings() {\n const Creater = function () {};\n // Make sure hidden fields will not be visited by\n // object iteration (with hasOwnProperty checking).\n Creater.prototype.__hidden = Creater.prototype;\n const obj = new (Creater as any)();\n return obj;\n }\n}\n\nexport function replaceVisualOption(\n thisOption: Partial>, newOption: Partial>, keys: readonly T[]\n) {\n // Visual attributes merge is not supported, otherwise it\n // brings overcomplicated merge logic. See #2853. So if\n // newOption has anyone of these keys, all of these keys\n // will be reset. Otherwise, all keys remain.\n let has;\n zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n has = true;\n }\n });\n has && zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n thisOption[key] = zrUtil.clone(newOption[key]);\n }\n else {\n delete thisOption[key];\n }\n });\n}\n\n/**\n * @param stateList\n * @param visualMappings\n * @param list\n * @param getValueState param: valueOrIndex, return: state.\n * @param scope Scope for getValueState\n * @param dimension Concrete dimension, if used.\n */\n// ???! handle brush?\nexport function applyVisual(\n stateList: readonly VisualState[],\n visualMappings: VisualMappingCollection,\n data: SeriesData,\n getValueState: (this: Scope, valueOrIndex: ParsedValue | number) => VisualState,\n scope?: Scope,\n dimension?: DimensionLoose\n) {\n const visualTypesMap: Partial> = {};\n zrUtil.each(stateList, function (state) {\n const visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n\n let dataIndex: number;\n\n function getVisual(key: string) {\n return getItemVisualFromData(data, dataIndex, key) as string | number;\n }\n\n function setVisual(key: string, value: any) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n if (dimension == null) {\n data.each(eachItem);\n }\n else {\n data.each([dimension], eachItem);\n }\n\n function eachItem(valueOrIndex: ParsedValue | number, index?: number) {\n dataIndex = dimension == null\n ? valueOrIndex as number // First argument is index\n : index;\n\n const rawDataItem = data.getRawDataItem(dataIndex);\n // Consider performance\n // @ts-ignore\n if (rawDataItem && rawDataItem.visualMap === false) {\n return;\n }\n\n const valueState = getValueState.call(scope, valueOrIndex);\n const mappings = visualMappings[valueState];\n const visualTypes = visualTypesMap[valueState];\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(\n valueOrIndex, getVisual, setVisual\n );\n }\n }\n}\n\n/**\n * @param data\n * @param stateList\n * @param visualMappings >\n * @param getValueState param: valueOrIndex, return: state.\n * @param dim dimension or dimension index.\n */\nexport function incrementalApplyVisual(\n stateList: readonly VisualState[],\n visualMappings: VisualMappingCollection,\n getValueState: (valueOrIndex: ParsedValue | number) => VisualState,\n dim?: DimensionLoose\n): StageHandlerProgressExecutor {\n const visualTypesMap: Partial> = {};\n zrUtil.each(stateList, function (state) {\n const visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n\n return {\n progress: function progress(params, data) {\n let dimIndex: DimensionIndex;\n if (dim != null) {\n dimIndex = data.getDimensionIndex(dim);\n }\n\n function getVisual(key: string) {\n return getItemVisualFromData(data, dataIndex, key) as string | number;\n }\n\n function setVisual(key: string, value: any) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n let dataIndex: number;\n const storage = data.getStorage();\n while ((dataIndex = params.next()) != null) {\n const rawDataItem = data.getRawDataItem(dataIndex);\n\n // Consider performance\n // @ts-ignore\n if (rawDataItem && rawDataItem.visualMap === false) {\n continue;\n }\n\n const value = dim != null\n ? storage.get(dimIndex, dataIndex)\n : dataIndex;\n\n const valueState = getValueState(value);\n const mappings = visualMappings[valueState];\n const visualTypes = visualTypesMap[valueState];\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);\n }\n }\n }\n };\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as polygonContain from 'zrender/src/contain/polygon';\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport {linePolygonIntersect} from '../../util/graphic';\nimport { BrushType, BrushDimensionMinMax } from '../helper/BrushController';\nimport { BrushAreaParamInternal } from './BrushModel';\n\n\nexport interface BrushSelectableArea extends BrushAreaParamInternal {\n boundingRect: BoundingRect;\n selectors: BrushCommonSelectorsForSeries\n}\n\n/**\n * Key of the first level is brushType: `line`, `rect`, `polygon`.\n * See moudule:echarts/component/helper/BrushController\n * function param:\n * {Object} itemLayout fetch from data.getItemLayout(dataIndex)\n * {Object} selectors {point: selector, rect: selector, ...}\n * {Object} area {range: [[], [], ..], boudingRect}\n * function return:\n * {boolean} Whether in the given brush.\n */\ninterface BrushSelectorOnBrushType {\n // For chart element type \"point\"\n point(\n // fetch from data.getItemLayout(dataIndex)\n itemLayout: number[],\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n // For chart element type \"rect\"\n rect(\n // fetch from data.getItemLayout(dataIndex)\n itemLayout: RectLike,\n selectors: BrushCommonSelectorsForSeries,\n area: BrushSelectableArea\n ): boolean;\n}\n\n/**\n * This methods are corresponding to `BrushSelectorOnBrushType`,\n * but `area: BrushSelectableArea` is binded to each method.\n */\nexport interface BrushCommonSelectorsForSeries {\n // For chart element type \"point\"\n point(itemLayout: number[]): boolean;\n // For chart element type \"rect\"\n rect(itemLayout: RectLike): boolean;\n}\n\nexport function makeBrushCommonSelectorForSeries(\n area: BrushSelectableArea\n): BrushCommonSelectorsForSeries {\n const brushType = area.brushType;\n // Do not use function binding or curry for performance.\n const selectors: BrushCommonSelectorsForSeries = {\n point(itemLayout: number[]) {\n return selector[brushType].point(itemLayout, selectors, area);\n },\n rect(itemLayout: RectLike) {\n return selector[brushType].rect(itemLayout, selectors, area);\n }\n };\n return selectors;\n}\n\nconst selector: Record = {\n lineX: getLineSelectors(0),\n lineY: getLineSelectors(1),\n rect: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.intersect(itemLayout);\n }\n },\n polygon: {\n point: function (itemLayout, selectors, area) {\n return itemLayout\n && area.boundingRect.contain(\n itemLayout[0], itemLayout[1]\n )\n && polygonContain.contain(\n area.range as BrushDimensionMinMax[], itemLayout[0], itemLayout[1]\n );\n },\n rect: function (itemLayout, selectors, area) {\n const points = area.range as BrushDimensionMinMax[];\n\n if (!itemLayout || points.length <= 1) {\n return false;\n }\n\n const x = itemLayout.x;\n const y = itemLayout.y;\n const width = itemLayout.width;\n const height = itemLayout.height;\n const p = points[0];\n\n if (polygonContain.contain(points, x, y)\n || polygonContain.contain(points, x + width, y)\n || polygonContain.contain(points, x, y + height)\n || polygonContain.contain(points, x + width, y + height)\n || BoundingRect.create(itemLayout).contain(p[0], p[1])\n || linePolygonIntersect(x, y, x + width, y, points)\n || linePolygonIntersect(x, y, x, y + height, points)\n || linePolygonIntersect(x + width, y, x + width, y + height, points)\n || linePolygonIntersect(x, y + height, x + width, y + height, points)\n ) {\n return true;\n }\n }\n }\n};\n\nfunction getLineSelectors(xyIndex: 0 | 1): BrushSelectorOnBrushType {\n const xy = ['x', 'y'] as const;\n const wh = ['width', 'height'] as const;\n\n return {\n point: function (itemLayout, selectors, area) {\n if (itemLayout) {\n const range = area.range as BrushDimensionMinMax;\n const p = itemLayout[xyIndex];\n return inLineRange(p, range);\n }\n },\n rect: function (itemLayout, selectors, area) {\n if (itemLayout) {\n const range = area.range as BrushDimensionMinMax;\n const layoutRange = [\n itemLayout[xy[xyIndex]],\n itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]\n ];\n layoutRange[1] < layoutRange[0] && layoutRange.reverse();\n return inLineRange(layoutRange[0], range)\n || inLineRange(layoutRange[1], range)\n || inLineRange(range[0], layoutRange)\n || inLineRange(range[1], layoutRange);\n }\n }\n };\n}\n\nfunction inLineRange(p: number, range: BrushDimensionMinMax): boolean {\n return range[0] <= p && p <= range[1];\n}\n\nexport default selector;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BoundingRect from 'zrender/src/core/BoundingRect';\nimport * as visualSolution from '../../visual/visualSolution';\nimport { BrushSelectableArea, makeBrushCommonSelectorForSeries } from './selector';\nimport * as throttleUtil from '../../util/throttle';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport BrushModel, { BrushAreaParamInternal } from './BrushModel';\nimport SeriesModel from '../../model/Series';\nimport ParallelSeriesModel from '../../chart/parallel/ParallelSeries';\nimport { ZRenderType } from 'zrender/src/zrender';\nimport { BrushType, BrushDimensionMinMax } from '../helper/BrushController';\n\ntype BrushVisualState = 'inBrush' | 'outOfBrush';\n\nconst STATE_LIST = ['inBrush', 'outOfBrush'] as const;\nconst DISPATCH_METHOD = '__ecBrushSelect' as const;\nconst DISPATCH_FLAG = '__ecInBrushSelectEvent' as const;\n\ninterface BrushGlobalDispatcher extends ZRenderType {\n [DISPATCH_FLAG]: boolean;\n [DISPATCH_METHOD]: typeof doDispatch;\n}\n\ninterface BrushSelectedItem {\n brushId: string;\n brushIndex: number;\n brushName: string;\n areas: BrushAreaParamInternal[];\n selected: {\n seriesId: string;\n seriesIndex: number;\n seriesName: string;\n dataIndex: number[];\n }[]\n};\n\nexport function layoutCovers(ecModel: GlobalModel): void {\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n const brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel);\n brushTargetManager.setInputRanges(brushModel.areas, ecModel);\n });\n}\n\n/**\n * Register the visual encoding if this modules required.\n */\nexport default function brushVisual(ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n\n const brushSelected: BrushSelectedItem[] = [];\n let throttleType;\n let throttleDelay;\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(\n payload.key === 'brush' ? payload.brushOption : {brushType: false}\n );\n });\n\n layoutCovers(ecModel);\n\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel, brushIndex) {\n\n const thisBrushSelected: BrushSelectedItem = {\n brushId: brushModel.id,\n brushIndex: brushIndex,\n brushName: brushModel.name,\n areas: zrUtil.clone(brushModel.areas),\n selected: []\n };\n // Every brush component exists in event params, convenient\n // for user to find by index.\n brushSelected.push(thisBrushSelected);\n\n const brushOption = brushModel.option;\n const brushLink = brushOption.brushLink;\n const linkedSeriesMap: {[seriesIndex: number]: 0 | 1} = [];\n const selectedDataIndexForLink: {[dataIndex: number]: 0 | 1} = [];\n const rangeInfoBySeries: {[seriesIndex: number]: BrushSelectableArea[]} = [];\n let hasBrushExists = false;\n\n if (!brushIndex) { // Only the first throttle setting works.\n throttleType = brushOption.throttleType;\n throttleDelay = brushOption.throttleDelay;\n }\n\n // Add boundingRect and selectors to range.\n const areas: BrushSelectableArea[] = zrUtil.map(brushModel.areas, function (area) {\n const builder = boundingRectBuilders[area.brushType];\n const selectableArea = zrUtil.defaults(\n {boundingRect: builder ? builder(area) : void 0},\n area\n ) as BrushSelectableArea;\n selectableArea.selectors = makeBrushCommonSelectorForSeries(selectableArea);\n return selectableArea;\n });\n\n const visualMappings = visualSolution.createVisualMappings(\n brushModel.option, STATE_LIST, function (mappingOption) {\n mappingOption.mappingMethod = 'fixed';\n }\n );\n\n zrUtil.isArray(brushLink) && zrUtil.each(brushLink, function (seriesIndex) {\n linkedSeriesMap[seriesIndex] = 1;\n });\n\n function linkOthers(seriesIndex: number): boolean {\n return brushLink === 'all' || !!linkedSeriesMap[seriesIndex];\n }\n\n // If no supported brush or no brush on the series,\n // all visuals should be in original state.\n function brushed(rangeInfoList: BrushSelectableArea[]): boolean {\n return !!rangeInfoList.length;\n }\n\n /**\n * Logic for each series: (If the logic has to be modified one day, do it carefully!)\n *\n * ( brushed \u252C && \u252ChasBrushExist \u252C && linkOthers ) => StepA: \u252Crecord, \u252C StepB: \u252CvisualByRecord.\n * !brushed\u2518 \u251ChasBrushExist \u2524 \u2514nothing,\u2518 \u251CvisualByRecord.\n * \u2514!hasBrushExist\u2518 \u2514nothing.\n * ( !brushed && \u252ChasBrushExist \u252C && linkOthers ) => StepA: nothing, StepB: \u252CvisualByRecord.\n * \u2514!hasBrushExist\u2518 \u2514nothing.\n * ( brushed \u252C && !linkOthers ) => StepA: nothing, StepB: \u252CvisualByCheck.\n * !brushed\u2518 \u2514nothing.\n * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing.\n */\n\n // Step A\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n const rangeInfoList: BrushSelectableArea[] = rangeInfoBySeries[seriesIndex] = [];\n\n seriesModel.subType === 'parallel'\n ? stepAParallel(seriesModel as ParallelSeriesModel, seriesIndex)\n : stepAOthers(seriesModel, seriesIndex, rangeInfoList);\n });\n\n function stepAParallel(seriesModel: ParallelSeriesModel, seriesIndex: number): void {\n const coordSys = seriesModel.coordinateSystem;\n hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed();\n\n linkOthers(seriesIndex) && coordSys.eachActiveState(\n seriesModel.getData(),\n function (activeState, dataIndex) {\n activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);\n }\n );\n }\n\n function stepAOthers(\n seriesModel: SeriesModel, seriesIndex: number, rangeInfoList: BrushSelectableArea[]\n ): void {\n if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) {\n return;\n }\n\n zrUtil.each(areas, function (area) {\n if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) {\n rangeInfoList.push(area);\n }\n hasBrushExists = hasBrushExists || brushed(rangeInfoList);\n });\n\n if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {\n const data = seriesModel.getData();\n data.each(function (dataIndex) {\n if (checkInRange(seriesModel, rangeInfoList, data, dataIndex)) {\n selectedDataIndexForLink[dataIndex] = 1;\n }\n });\n }\n }\n\n // Step B\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n const seriesBrushSelected: BrushSelectedItem['selected'][0] = {\n seriesId: seriesModel.id,\n seriesIndex: seriesIndex,\n seriesName: seriesModel.name,\n dataIndex: []\n };\n // Every series exists in event params, convenient\n // for user to find series by seriesIndex.\n thisBrushSelected.selected.push(seriesBrushSelected);\n\n const rangeInfoList = rangeInfoBySeries[seriesIndex];\n\n const data = seriesModel.getData();\n const getValueState = linkOthers(seriesIndex)\n ? function (dataIndex: number): BrushVisualState {\n return selectedDataIndexForLink[dataIndex]\n ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')\n : 'outOfBrush';\n }\n : function (dataIndex: number): BrushVisualState {\n return checkInRange(seriesModel, rangeInfoList, data, dataIndex)\n ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush')\n : 'outOfBrush';\n };\n\n // If no supported brush or no brush, all visuals are in original state.\n (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList))\n && visualSolution.applyVisual(\n STATE_LIST, visualMappings, data, getValueState\n );\n });\n\n });\n\n dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);\n};\n\nfunction dispatchAction(\n api: ExtensionAPI,\n throttleType: throttleUtil.ThrottleType,\n throttleDelay: number,\n brushSelected: BrushSelectedItem[],\n payload: Payload\n): void {\n // This event will not be triggered when `setOpion`, otherwise dead lock may\n // triggered when do `setOption` in event listener, which we do not find\n // satisfactory way to solve yet. Some considered resolutions:\n // (a) Diff with prevoius selected data ant only trigger event when changed.\n // But store previous data and diff precisely (i.e., not only by dataIndex, but\n // also detect value changes in selected data) might bring complexity or fragility.\n // (b) Use spectial param like `silent` to suppress event triggering.\n // But such kind of volatile param may be weird in `setOption`.\n if (!payload) {\n return;\n }\n\n const zr = api.getZr() as BrushGlobalDispatcher;\n if (zr[DISPATCH_FLAG]) {\n return;\n }\n\n if (!zr[DISPATCH_METHOD]) {\n zr[DISPATCH_METHOD] = doDispatch;\n }\n\n const fn = throttleUtil.createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);\n\n fn(api, brushSelected);\n}\n\nfunction doDispatch(api: ExtensionAPI, brushSelected: BrushSelectedItem[]): void {\n if (!api.isDisposed()) {\n const zr = api.getZr() as BrushGlobalDispatcher;\n zr[DISPATCH_FLAG] = true;\n api.dispatchAction({\n type: 'brushSelect',\n batch: brushSelected\n });\n zr[DISPATCH_FLAG] = false;\n }\n}\n\nfunction checkInRange(\n seriesModel: SeriesModel,\n rangeInfoList: BrushSelectableArea[],\n data: ReturnType,\n dataIndex: number\n) {\n for (let i = 0, len = rangeInfoList.length; i < len; i++) {\n const area = rangeInfoList[i];\n if (seriesModel.brushSelector(\n dataIndex, data, area.selectors, area\n )) {\n return true;\n }\n }\n}\n\nfunction brushModelNotControll(brushModel: BrushModel, seriesIndex: number): boolean {\n const seriesIndices = brushModel.option.seriesIndex;\n return seriesIndices != null\n && seriesIndices !== 'all'\n && (\n zrUtil.isArray(seriesIndices)\n ? zrUtil.indexOf(seriesIndices, seriesIndex) < 0\n : seriesIndex !== seriesIndices\n );\n}\n\ntype AreaBoundingRectBuilder = (area: BrushAreaParamInternal) => BoundingRect;\nconst boundingRectBuilders: Partial> = {\n\n rect: function (area) {\n return getBoundingRectFromMinMax(area.range as BrushDimensionMinMax[]);\n },\n\n polygon: function (area) {\n let minMax;\n const range = area.range as BrushDimensionMinMax[];\n\n for (let i = 0, len = range.length; i < len; i++) {\n minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];\n const rg = range[i];\n rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);\n rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);\n rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);\n rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);\n }\n\n return minMax && getBoundingRectFromMinMax(minMax);\n }\n};\n\n\nfunction getBoundingRectFromMinMax(minMax: BrushDimensionMinMax[]): BoundingRect {\n return new BoundingRect(\n minMax[0][0],\n minMax[1][0],\n minMax[0][1] - minMax[0][0],\n minMax[1][1] - minMax[1][0]\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport BrushController, { BrushControllerEvents, BrushCoverConfig } from '../helper/BrushController';\nimport {layoutCovers} from './visualEncoding';\nimport BrushModel from './BrushModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\nimport ComponentView from '../../view/Component';\n\n\nclass BrushView extends ComponentView {\n\n static type = 'brush';\n readonly type = BrushView.type;\n\n ecModel: GlobalModel;\n api: ExtensionAPI;\n model: BrushModel;\n private _brushController: BrushController;\n\n init(ecModel: GlobalModel, api: ExtensionAPI): void {\n this.ecModel = ecModel;\n this.api = api;\n this.model;\n\n (this._brushController = new BrushController(api.getZr()))\n .on('brush', zrUtil.bind(this._onBrush, this))\n .mount();\n }\n\n render(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload): void {\n this.model = brushModel;\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n updateTransform(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // PENDING: `updateTransform` is a little tricky, whose layout need\n // to be calculate mandatorily and other stages will not be performed.\n // Take care the correctness of the logic. See #11754 .\n layoutCovers(ecModel);\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n updateVisual(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this.updateTransform(brushModel, ecModel, api, payload);\n }\n\n updateView(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n this._updateController(brushModel, ecModel, api, payload);\n }\n\n private _updateController(brushModel: BrushModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload) {\n // Do not update controller when drawing.\n (!payload || payload.$from !== brushModel.id) && this._brushController\n .setPanels(brushModel.brushTargetManager.makePanelOpts(api))\n .enableBrush(brushModel.brushOption)\n .updateCovers(brushModel.areas.slice() as BrushCoverConfig[]);\n }\n\n // updateLayout: updateController,\n\n // updateVisual: updateController,\n\n dispose() {\n this._brushController.dispose();\n }\n\n private _onBrush(eventParam: BrushControllerEvents['brush']): void {\n const modelId = this.model.id;\n\n const areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel);\n\n // Action is not dispatched on drag end, because the drag end\n // emits the same params with the last drag move event, and\n // may have some delay when using touch pad, which makes\n // animation not smooth (when using debounce).\n (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({\n type: 'brush',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n eventParam.isEnd && this.api.dispatchAction({\n type: 'brushEnd',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n }\n\n}\n\nexport default BrushView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport Model from '../../model/Model';\nimport { ComponentOption, ZRColor, VisualOptionFixed } from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nimport {\n BrushCoverCreatorConfig, BrushMode, BrushCoverConfig, BrushDimensionMinMax,\n BrushAreaRange, BrushTypeUncertain, BrushType\n} from '../helper/BrushController';\nimport { ModelFinderObject } from '../../util/model';\n\nconst DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd';\n\n/**\n * The input to define brush areas.\n * (1) Can be created by user when calling dispatchAction.\n * (2) Can be created by `BrushController`\n * for brush behavior. area params are picked from `cover.__brushOptoin`.\n * In `BrushController`, \"covers\" are create or updated for each \"area\".\n */\nexport interface BrushAreaParam extends ModelFinderObject {\n brushType: BrushCoverConfig['brushType'];\n id?: BrushCoverConfig['id'];\n range?: BrushCoverConfig['range'];\n\n // `ModelFinderObject` and `panelId` are used to match \"coord sys target\"\n // for this area. See `BrushTargetManager['setInputRanges']`.\n // If panelId specified, use it to match panel firstly.\n // If not specified, use `ModelFinderObject` to match panel,\n // and then assign the panelId to the area.\n // If finally no panel matched, panelId keep null/undefined,\n // means global area.\n // PENDING: this feature should better belong to BrushController\n // rather than brush component?\n panelId?: BrushCoverConfig['panelId'];\n\n // Range in local coordinates of certain coordinate system.\n // When dispatchAction, if the area is the global area,\n // `range` is the input. if the area is not the global area,\n // `coordRange` is the input, and then convert to `range`.\n coordRange?: BrushAreaRange;\n // coord ranges, used in multiple cartesian in one grid.\n // Only for output to users.\n coordRanges?: BrushAreaRange[];\n\n __rangeOffset?: {\n offset: BrushDimensionMinMax[] | BrushDimensionMinMax,\n xyMinMax: BrushDimensionMinMax[]\n }\n}\n\n/**\n * Generated by `brushModel.setAreas`, which merges\n * `area: BrushAreaParam` and `brushModel.option: BrushOption`.\n * See `generateBrushOption`.\n */\nexport interface BrushAreaParamInternal extends BrushAreaParam {\n brushMode: BrushMode;\n brushStyle: BrushCoverConfig['brushStyle'];\n transformable: BrushCoverConfig['transformable'];\n removeOnClick: BrushCoverConfig['removeOnClick'];\n z: BrushCoverConfig['z'];\n\n __rangeOffset?: {\n offset: BrushDimensionMinMax | BrushDimensionMinMax[];\n xyMinMax: BrushDimensionMinMax[]\n };\n}\n\nexport type BrushToolboxIconType = BrushType | 'keep' | 'clear';\n\nexport interface BrushOption extends ComponentOption, ModelFinderObject {\n mainType?: 'brush';\n\n // Default value see preprocessor.\n toolbox?: BrushToolboxIconType[];\n\n // Series indices array, broadcast using dataIndex.\n // or 'all', which means all series. 'none'/null/undefined means no series.\n brushLink?: number[] | 'all' | 'none';\n\n // Throttle in brushSelected event. 'fixRate' or 'debounce'.\n // If null, no throttle. Valid only in the first brush component\n throttleType?: 'fixRate' | 'debounce';\n // Unit: ms, 0 means every event will be triggered.\n throttleDelay?: number;\n\n inBrush?: VisualOptionFixed;\n outOfBrush?: VisualOptionFixed;\n\n // --- Current painting brush options ---\n // Default type of brush\n brushType?: BrushTypeUncertain;\n brushStyle?: {\n borderWidth?: number;\n color?: ZRColor;\n borderColor?: ZRColor;\n };\n transformable?: boolean;\n brushMode?: BrushMode;\n removeOnClick?: boolean;\n}\n\nclass BrushModel extends ComponentModel {\n\n static type = 'brush' as const;\n type = BrushModel.type;\n\n static dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'];\n\n static defaultOption: BrushOption = {\n seriesIndex: 'all',\n brushType: 'rect',\n brushMode: 'single',\n transformable: true,\n brushStyle: {\n borderWidth: 1,\n color: 'rgba(210,219,238,0.3)',\n borderColor: '#D2DBEE'\n },\n throttleType: 'fixRate',\n throttleDelay: 0,\n removeOnClick: true,\n z: 10000\n };\n\n /**\n * @readOnly\n */\n areas: BrushAreaParamInternal[] = [];\n\n /**\n * Current activated brush type.\n * If null, brush is inactived.\n * see module:echarts/component/helper/BrushController\n * @readOnly\n */\n brushType: BrushTypeUncertain;\n\n /**\n * Current brush painting area settings.\n * @readOnly\n */\n brushOption: BrushCoverCreatorConfig = {} as BrushCoverCreatorConfig;\n\n // Inject\n brushTargetManager: BrushTargetManager;\n\n\n optionUpdated(newOption: BrushOption, isInit: boolean): void {\n const thisOption = this.option;\n\n !isInit && visualSolution.replaceVisualOption(\n thisOption, newOption, ['inBrush', 'outOfBrush']\n );\n\n const inBrush = thisOption.inBrush = thisOption.inBrush || {};\n // Always give default visual, consider setOption at the second time.\n thisOption.outOfBrush = thisOption.outOfBrush || {color: DEFAULT_OUT_OF_BRUSH_COLOR};\n\n if (!inBrush.hasOwnProperty('liftZ')) {\n // Bigger than the highlight z lift, otherwise it will\n // be effected by the highlight z when brush.\n inBrush.liftZ = 5;\n }\n }\n\n /**\n * If `areas` is null/undefined, range state remain.\n */\n setAreas(areas?: BrushAreaParam[]): void {\n if (__DEV__) {\n zrUtil.assert(zrUtil.isArray(areas));\n zrUtil.each(areas, function (area) {\n zrUtil.assert(area.brushType, 'Illegal areas');\n });\n }\n\n // If areas is null/undefined, range state remain.\n // This helps user to dispatchAction({type: 'brush'}) with no areas\n // set but just want to get the current brush select info from a `brush` event.\n if (!areas) {\n return;\n }\n\n this.areas = zrUtil.map(areas, function (area) {\n return generateBrushOption(this.option, area);\n }, this);\n }\n\n /**\n * Set the current painting brush option.\n */\n setBrushOption(brushOption: BrushCoverCreatorConfig): void {\n this.brushOption = generateBrushOption(this.option, brushOption);\n this.brushType = this.brushOption.brushType;\n }\n\n}\n\n\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushAreaParam\n): BrushAreaParamInternal;\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushCoverCreatorConfig\n): BrushCoverCreatorConfig;\nfunction generateBrushOption(\n option: BrushOption, brushOption: BrushAreaParam | BrushCoverCreatorConfig\n): BrushAreaParamInternal | BrushCoverCreatorConfig {\n return zrUtil.merge(\n {\n brushType: option.brushType,\n brushMode: option.brushMode,\n transformable: option.transformable,\n brushStyle: new Model(option.brushStyle).getItemStyle(),\n removeOnClick: option.removeOnClick,\n z: option.z\n },\n brushOption,\n true\n );\n}\n\nexport default BrushModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {\n ToolboxFeatureModel,\n ToolboxFeatureOption,\n ToolboxFeature\n} from '../featureManager';\nimport GlobalModel from '../../../model/Global';\nimport ExtensionAPI from '../../../core/ExtensionAPI';\nimport BrushModel from '../../brush/BrushModel';\nimport { BrushTypeUncertain } from '../../helper/BrushController';\n\nconst ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'] as const;\n\ntype IconType = typeof ICON_TYPES[number];\n\nexport interface ToolboxBrushFeatureOption extends ToolboxFeatureOption {\n type?: IconType[]\n icon?: {[key in IconType]?: string}\n title?: {[key in IconType]?: string}\n}\n\nclass BrushFeature extends ToolboxFeature {\n\n private _brushType: BrushTypeUncertain;\n private _brushMode: string;\n\n render(\n featureModel: ToolboxFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n let brushType: BrushTypeUncertain;\n let brushMode: string;\n let isBrushed: boolean;\n\n ecModel.eachComponent({mainType: 'brush'}, function (brushModel: BrushModel) {\n brushType = brushModel.brushType;\n brushMode = brushModel.brushOption.brushMode || 'single';\n isBrushed = isBrushed || !!brushModel.areas.length;\n });\n this._brushType = brushType;\n this._brushMode = brushMode;\n\n zrUtil.each(featureModel.get('type', true), function (type) {\n featureModel.setIconStatus(\n type,\n (\n type === 'keep'\n ? brushMode === 'multiple'\n : type === 'clear'\n ? isBrushed\n : type === brushType\n ) ? 'emphasis' : 'normal'\n );\n });\n }\n\n updateView(\n featureModel: ToolboxFeatureModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n this.render(featureModel, ecModel, api);\n }\n\n getIcons() {\n const model = this.model;\n const availableIcons = model.get('icon', true);\n const icons: ToolboxBrushFeatureOption['icon'] = {};\n zrUtil.each(model.get('type', true), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n onclick(ecModel: GlobalModel, api: ExtensionAPI, type: IconType) {\n const brushType = this._brushType;\n const brushMode = this._brushMode;\n\n if (type === 'clear') {\n // Trigger parallel action firstly\n api.dispatchAction({\n type: 'axisAreaSelect',\n intervals: []\n });\n\n api.dispatchAction({\n type: 'brush',\n command: 'clear',\n // Clear all areas of all brush components.\n areas: []\n });\n }\n else {\n api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'brush',\n brushOption: {\n brushType: type === 'keep'\n ? brushType\n : (brushType === type ? false : type),\n brushMode: type === 'keep'\n ? (brushMode === 'multiple' ? 'single' : 'multiple')\n : brushMode\n }\n });\n }\n };\n\n static getDefaultOption(ecModel: GlobalModel) {\n const defaultOption: ToolboxBrushFeatureOption = {\n show: true,\n type: ICON_TYPES.slice(),\n icon: {\n /* eslint-disable */\n rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13', // jshint ignore:line\n polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2', // jshint ignore:line\n lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4', // jshint ignore:line\n lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4', // jshint ignore:line\n keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z', // jshint ignore:line\n clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line\n /* eslint-enable */\n },\n // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`\n title: ecModel.getLocaleModel().get(['toolbox', 'brush', 'title'])\n };\n\n return defaultOption;\n }\n}\n\nexport default BrushFeature;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport brushPreprocessor from './preprocessor';\nimport BrushView from './BrushView';\nimport BrushModel, { BrushAreaParam } from './BrushModel';\nimport brushVisual from './visualEncoding';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\n// TODO\nimport BrushFeature from '../toolbox/feature/Brush';\nimport { registerFeature } from '../toolbox/featureManager';\n\ninterface BrushPayload extends Payload {\n // If \"areas\" is empty, all of the select-boxes will be deleted\n areas?: BrushAreaParam[];\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentView(BrushView);\n registers.registerComponentModel(BrushModel);\n\n registers.registerPreprocessor(brushPreprocessor);\n\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, brushVisual);\n\n registers.registerAction(\n {type: 'brush', event: 'brush', update: 'updateVisual' },\n function (payload: BrushPayload, ecModel: GlobalModel) {\n ecModel.eachComponent(\n {mainType: 'brush', query: payload},\n function (brushModel: BrushModel) {\n brushModel.setAreas(payload.areas);\n }\n );\n }\n );\n\n /**\n * payload: {\n * brushComponents: [\n * {\n * brushId,\n * brushIndex,\n * brushName,\n * series: [\n * {\n * seriesId,\n * seriesIndex,\n * seriesName,\n * rawIndices: [21, 34, ...]\n * },\n * ...\n * ]\n * },\n * ...\n * ]\n * }\n */\n registers.registerAction(\n {type: 'brushSelect', event: 'brushSelected', update: 'none'},\n function () {}\n );\n\n registers.registerAction(\n {type: 'brushEnd', event: 'brushEnd', update: 'none'},\n function () {}\n );\n\n registerFeature('brush', BrushFeature);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport {getECData} from '../../util/innerStore';\nimport {createTextStyle} from '../../label/labelStyle';\nimport {getLayoutRect} from '../../util/layout';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n ZRTextAlign,\n ZRTextVerticalAlign,\n ZRColor,\n BorderOptionMixin,\n LabelOption\n} from '../../util/types';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {windowOpen} from '../../util/format';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\nexport interface TitleOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin {\n\n mainType?: 'title'\n\n show?: boolean\n\n text?: string\n /**\n * Link to url\n */\n link?: string\n target?: 'self' | 'blank'\n\n subtext?: string\n sublink?: string\n subtarget?: 'self' | 'blank'\n\n textAlign?: ZRTextAlign\n textVerticalAlign?: ZRTextVerticalAlign\n\n /**\n * @deprecated Use textVerticalAlign instead\n */\n textBaseline?: ZRTextVerticalAlign\n\n backgroundColor?: ZRColor\n /**\n * Padding between text and border.\n * Support to be a single number or an array.\n */\n padding?: number | number[]\n /**\n * Gap between text and subtext\n */\n itemGap?: number\n\n textStyle?: LabelOption\n\n subtextStyle?: LabelOption\n\n /**\n * If trigger mouse or touch event\n */\n triggerEvent?: boolean\n\n /**\n * Radius of background border.\n */\n borderRadius?: number | number[]\n}\nclass TitleModel extends ComponentModel {\n static type = 'title' as const;\n type = TitleModel.type;\n\n readonly layoutMode = {type: 'box', ignoreSize: true} as const;\n\n static defaultOption: TitleOption = {\n zlevel: 0,\n z: 6,\n show: true,\n\n text: '',\n target: 'blank',\n subtext: '',\n\n subtarget: 'blank',\n\n left: 0,\n top: 0,\n\n backgroundColor: 'rgba(0,0,0,0)',\n\n borderColor: '#ccc',\n\n borderWidth: 0,\n\n padding: 5,\n\n itemGap: 10,\n textStyle: {\n fontSize: 18,\n fontWeight: 'bold',\n color: '#464646'\n },\n subtextStyle: {\n fontSize: 12,\n color: '#6E7079'\n }\n };\n}\n\n\n// View\nclass TitleView extends ComponentView {\n\n static type = 'title' as const;\n type = TitleView.type;\n\n\n render(titleModel: TitleModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.group.removeAll();\n\n if (!titleModel.get('show')) {\n return;\n }\n\n const group = this.group;\n\n const textStyleModel = titleModel.getModel('textStyle');\n const subtextStyleModel = titleModel.getModel('subtextStyle');\n\n let textAlign = titleModel.get('textAlign');\n let textVerticalAlign = zrUtil.retrieve2(\n titleModel.get('textBaseline'), titleModel.get('textVerticalAlign')\n );\n\n const textEl = new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: titleModel.get('text'),\n fill: textStyleModel.getTextColor()\n }, {disableBox: true}),\n z2: 10\n });\n\n const textRect = textEl.getBoundingRect();\n\n const subText = titleModel.get('subtext');\n const subTextEl = new graphic.Text({\n style: createTextStyle(subtextStyleModel, {\n text: subText,\n fill: subtextStyleModel.getTextColor(),\n y: textRect.height + titleModel.get('itemGap'),\n verticalAlign: 'top'\n }, {disableBox: true}),\n z2: 10\n });\n\n const link = titleModel.get('link');\n const sublink = titleModel.get('sublink');\n const triggerEvent = titleModel.get('triggerEvent', true);\n\n textEl.silent = !link && !triggerEvent;\n subTextEl.silent = !sublink && !triggerEvent;\n\n if (link) {\n textEl.on('click', function () {\n windowOpen(link, '_' + titleModel.get('target'));\n });\n }\n if (sublink) {\n subTextEl.on('click', function () {\n windowOpen(sublink, '_' + titleModel.get('subtarget'));\n });\n }\n\n getECData(textEl).eventData = getECData(subTextEl).eventData = triggerEvent\n ? {\n componentType: 'title',\n componentIndex: titleModel.componentIndex\n }\n : null;\n\n group.add(textEl);\n subText && group.add(subTextEl);\n // If no subText, but add subTextEl, there will be an empty line.\n\n let groupRect = group.getBoundingRect();\n const layoutOption = titleModel.getBoxLayoutParams();\n layoutOption.width = groupRect.width;\n layoutOption.height = groupRect.height;\n const layoutRect = getLayoutRect(\n layoutOption, {\n width: api.getWidth(),\n height: api.getHeight()\n }, titleModel.get('padding')\n );\n // Adjust text align based on position\n if (!textAlign) {\n // Align left if title is on the left. center and right is same\n textAlign = (titleModel.get('left') || titleModel.get('right')) as ZRTextAlign;\n // @ts-ignore\n if (textAlign === 'middle') {\n textAlign = 'center';\n }\n // Adjust layout by text align\n if (textAlign === 'right') {\n layoutRect.x += layoutRect.width;\n }\n else if (textAlign === 'center') {\n layoutRect.x += layoutRect.width / 2;\n }\n }\n if (!textVerticalAlign) {\n textVerticalAlign = (titleModel.get('top') || titleModel.get('bottom')) as ZRTextVerticalAlign;\n // @ts-ignore\n if (textVerticalAlign === 'center') {\n textVerticalAlign = 'middle';\n }\n if (textVerticalAlign === 'bottom') {\n layoutRect.y += layoutRect.height;\n }\n else if (textVerticalAlign === 'middle') {\n layoutRect.y += layoutRect.height / 2;\n }\n\n textVerticalAlign = textVerticalAlign || 'top';\n }\n\n group.x = layoutRect.x;\n group.y = layoutRect.y;\n group.markRedraw();\n const alignStyle = {\n align: textAlign,\n verticalAlign: textVerticalAlign\n };\n textEl.setStyle(alignStyle);\n subTextEl.setStyle(alignStyle);\n\n // Render background\n // Get groupRect again because textAlign has been changed\n groupRect = group.getBoundingRect();\n const padding = layoutRect.margin;\n const style = titleModel.getItemStyle(['color', 'opacity']);\n style.fill = titleModel.get('backgroundColor');\n const rect = new graphic.Rect({\n shape: {\n x: groupRect.x - padding[3],\n y: groupRect.y - padding[0],\n width: groupRect.width + padding[1] + padding[3],\n height: groupRect.height + padding[0] + padding[2],\n r: titleModel.get('borderRadius')\n },\n style: style,\n subPixelOptimize: true,\n silent: true\n });\n\n group.add(rect);\n }\n}\n\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(TitleModel);\n registers.registerComponentView(TitleView);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentModel from '../../model/Component';\nimport SeriesData from '../../data/SeriesData';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LayoutOrient,\n SymbolOptionMixin,\n LineStyleOption,\n ItemStyleOption,\n LabelOption,\n OptionDataValue,\n ZRColor,\n ColorString,\n CommonTooltipOption,\n CallbackDataParams,\n ZREasing\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel, { GlobalModelSetOptionOpts } from '../../model/Global';\nimport { each, isObject, clone } from 'zrender/src/core/util';\nimport { convertOptionIdName, getDataItemValue } from '../../util/model';\n\n\nexport interface TimelineControlStyle extends ItemStyleOption {\n show?: boolean\n showPlayBtn?: boolean\n showPrevBtn?: boolean\n showNextBtn?: boolean\n itemSize?: number\n itemGap?: number\n position?: 'left' | 'right' | 'top' | 'bottom'\n playIcon?: string\n stopIcon?: string\n prevIcon?: string\n nextIcon?: string\n\n // Can be a percent value relative to itemSize\n playBtnSize?: number | string\n stopBtnSize?: number | string\n nextBtnSize?: number | string\n prevBtnSize?: number | string\n}\n\nexport interface TimelineCheckpointStyle extends ItemStyleOption,\n SymbolOptionMixin {\n animation?: boolean\n animationDuration?: number\n animationEasing?: ZREasing\n}\n\ninterface TimelineLineStyleOption extends LineStyleOption {\n show?: boolean\n}\n\ninterface TimelineLabelOption extends Omit {\n show?: boolean\n // number can be distance to the timeline axis. sign will determine the side.\n position?: 'auto' | 'left' | 'right' | 'top' | 'bottom' | number\n interval?: 'auto' | number\n formatter?: string | ((value: string | number, index: number) => string)\n}\n\nexport interface TimelineDataItemOption extends SymbolOptionMixin {\n value?: OptionDataValue\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n checkpointStyle?: TimelineCheckpointStyle\n\n emphasis?: {\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n checkpointStyle?: TimelineCheckpointStyle\n }\n\n // Style in progress\n progress?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n }\n\n tooltip?: boolean\n}\n\nexport interface TimelineOption extends ComponentOption, BoxLayoutOptionMixin, SymbolOptionMixin {\n mainType?: 'timeline'\n\n backgroundColor?: ZRColor\n borderColor?: ColorString\n borderWidth?: number\n\n tooltip?: CommonTooltipOption & {\n trigger?: 'item'\n }\n\n show?: boolean\n\n axisType?: 'category' | 'time' | 'value'\n\n currentIndex?: number\n\n autoPlay?: boolean\n\n rewind?: boolean\n\n loop?: boolean\n\n playInterval?: number\n\n realtime?: boolean\n\n controlPosition?: 'left' | 'right' | 'top' | 'bottom'\n\n padding?: number | number[]\n\n orient?: LayoutOrient\n\n inverse?: boolean\n\n // If not specified, options will be changed by \"normalMerge\".\n // If specified, options will be changed by \"replaceMerge\".\n replaceMerge?: GlobalModelSetOptionOpts['replaceMerge']\n\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n checkpointStyle?: TimelineCheckpointStyle\n controlStyle?: TimelineControlStyle\n label?: TimelineLabelOption\n\n emphasis?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n checkpointStyle?: TimelineCheckpointStyle\n controlStyle?: TimelineControlStyle\n label?: TimelineLabelOption\n }\n\n\n // Style in progress\n progress?: {\n lineStyle?: TimelineLineStyleOption\n itemStyle?: ItemStyleOption\n label?: TimelineLabelOption\n }\n\n data?: (OptionDataValue | TimelineDataItemOption)[]\n}\nclass TimelineModel extends ComponentModel {\n\n static type = 'timeline';\n type = TimelineModel.type;\n\n layoutMode = 'box';\n\n private _data: SeriesData;\n\n private _names: string[];\n\n /**\n * @override\n */\n init(option: TimelineOption, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n this._initData();\n }\n\n /**\n * @override\n */\n mergeOption(option: TimelineOption) {\n super.mergeOption.apply(this, arguments as any);\n this._initData();\n }\n\n setCurrentIndex(currentIndex: number) {\n if (currentIndex == null) {\n currentIndex = this.option.currentIndex;\n }\n const count = this._data.count();\n\n if (this.option.loop) {\n currentIndex = (currentIndex % count + count) % count;\n }\n else {\n currentIndex >= count && (currentIndex = count - 1);\n currentIndex < 0 && (currentIndex = 0);\n }\n\n this.option.currentIndex = currentIndex;\n }\n\n /**\n * @return {number} currentIndex\n */\n getCurrentIndex() {\n return this.option.currentIndex;\n }\n\n /**\n * @return {boolean}\n */\n isIndexMax() {\n return this.getCurrentIndex() >= this._data.count() - 1;\n }\n\n /**\n * @param {boolean} state true: play, false: stop\n */\n setPlayState(state: boolean) {\n this.option.autoPlay = !!state;\n }\n\n /**\n * @return {boolean} true: play, false: stop\n */\n getPlayState() {\n return !!this.option.autoPlay;\n }\n\n /**\n * @private\n */\n _initData() {\n const thisOption = this.option;\n const dataArr = thisOption.data || [];\n const axisType = thisOption.axisType;\n const names: string[] = this._names = [];\n\n let processedDataArr: TimelineOption['data'];\n if (axisType === 'category') {\n processedDataArr = [];\n each(dataArr, function (item, index) {\n const value = convertOptionIdName(getDataItemValue(item), '');\n let newItem;\n\n if (isObject(item)) {\n newItem = clone(item);\n (newItem as TimelineDataItemOption).value = index;\n }\n else {\n newItem = index;\n }\n\n processedDataArr.push(newItem);\n\n names.push(value);\n });\n }\n else {\n processedDataArr = dataArr;\n }\n\n const dimType = ({\n category: 'ordinal',\n time: 'time',\n value: 'number'\n })[axisType] || 'number';\n\n const data = this._data = new SeriesData([{\n name: 'value', type: dimType\n }], this);\n\n data.initData(processedDataArr, names);\n }\n\n getData() {\n return this._data;\n }\n\n /**\n * @public\n * @return {Array.} categoreis\n */\n getCategories() {\n if (this.get('axisType') === 'category') {\n return this._names.slice();\n }\n }\n\n /**\n * @protected\n */\n static defaultOption: TimelineOption = {\n\n zlevel: 0, // \u4E00\u7EA7\u5C42\u53E0\n z: 4, // \u4E8C\u7EA7\u5C42\u53E0\n show: true,\n\n axisType: 'time', // \u6A21\u5F0F\u662F\u65F6\u95F4\u7C7B\u578B\uFF0C\u652F\u6301 value, category\n\n realtime: true,\n\n left: '20%',\n top: null,\n right: '20%',\n bottom: 0,\n width: null,\n height: 40,\n padding: 5,\n\n controlPosition: 'left', // 'left' 'right' 'top' 'bottom' 'none'\n autoPlay: false,\n rewind: false, // \u53CD\u5411\u64AD\u653E\n loop: true,\n playInterval: 2000, // \u64AD\u653E\u65F6\u95F4\u95F4\u9694\uFF0C\u5355\u4F4Dms\n\n currentIndex: 0,\n\n itemStyle: {},\n label: {\n color: '#000'\n },\n\n data: []\n };\n\n}\n\nexport default TimelineModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport TimelineModel, { TimelineOption } from './TimelineModel';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport { mixin } from 'zrender/src/core/util';\nimport SeriesData from '../../data/SeriesData';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface SliderTimelineOption extends TimelineOption {\n}\n\nclass SliderTimelineModel extends TimelineModel {\n\n static type = 'timeline.slider';\n type = SliderTimelineModel.type;\n\n /**\n * @protected\n */\n static defaultOption: SliderTimelineOption = inheritDefaultOption(TimelineModel.defaultOption, {\n\n backgroundColor: 'rgba(0,0,0,0)', // \u65F6\u95F4\u8F74\u80CC\u666F\u989C\u8272\n borderColor: '#ccc', // \u65F6\u95F4\u8F74\u8FB9\u6846\u989C\u8272\n borderWidth: 0, // \u65F6\u95F4\u8F74\u8FB9\u6846\u7EBF\u5BBD\uFF0C\u5355\u4F4Dpx\uFF0C\u9ED8\u8BA4\u4E3A0\uFF08\u65E0\u8FB9\u6846\uFF09\n\n orient: 'horizontal', // 'vertical'\n inverse: false,\n\n tooltip: { // boolean or Object\n trigger: 'item' // data item may also have tootip attr.\n },\n\n symbol: 'circle',\n symbolSize: 12,\n\n lineStyle: {\n show: true,\n width: 2,\n color: '#DAE1F5'\n },\n label: { // \u6587\u672C\u6807\u7B7E\n position: 'auto', // auto left right top bottom\n // When using number, label position is not\n // restricted by viewRect.\n // positive: right/bottom, negative: left/top\n show: true,\n interval: 'auto',\n rotate: 0,\n // formatter: null,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#A4B1D7'\n },\n itemStyle: {\n color: '#A4B1D7',\n borderWidth: 1\n },\n\n checkpointStyle: {\n symbol: 'circle',\n symbolSize: 15,\n color: '#316bf3',\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n // borderColor: 'rgba(194,53,49, 0.5)',\n animation: true,\n animationDuration: 300,\n animationEasing: 'quinticInOut'\n },\n\n controlStyle: {\n show: true,\n showPlayBtn: true,\n showPrevBtn: true,\n showNextBtn: true,\n\n itemSize: 24,\n itemGap: 12,\n\n position: 'left', // 'left' 'right' 'top' 'bottom'\n\n playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z', // jshint ignore:line\n stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // jshint ignore:line\n // eslint-disable-next-line max-len\n nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z', // jshint ignore:line\n // eslint-disable-next-line max-len\n prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z', // jshint ignore:line\n\n prevBtnSize: 18,\n nextBtnSize: 18,\n\n color: '#A4B1D7',\n borderColor: '#A4B1D7',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true,\n // \u5176\u4F59\u5C5E\u6027\u9ED8\u8BA4\u4F7F\u7528\u5168\u5C40\u6587\u672C\u6837\u5F0F\uFF0C\u8BE6\u89C1TEXTSTYLE\n color: '#6f778d'\n },\n\n itemStyle: {\n color: '#316BF3'\n },\n\n controlStyle: {\n color: '#316BF3',\n borderColor: '#316BF3',\n borderWidth: 2\n }\n },\n\n progress: {\n lineStyle: {\n color: '#316BF3'\n },\n itemStyle: {\n color: '#316BF3'\n },\n label: {\n color: '#6f778d'\n }\n },\n\n data: []\n });\n\n}\n\ninterface SliderTimelineModel extends DataFormatMixin {\n getData(): SeriesData\n}\n\nmixin(SliderTimelineModel, DataFormatMixin.prototype);\n\nexport default SliderTimelineModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\n\nclass TimelineView extends ComponentView {\n static type = 'timeline';\n type = TimelineView.type;\n}\n\nexport default TimelineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport Axis from '../../coord/Axis';\nimport Scale from '../../scale/Scale';\nimport TimelineModel from './TimelineModel';\nimport { LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\n\n/**\n * Extend axis 2d\n */\nclass TimelineAxis extends Axis {\n\n type: 'category' | 'time' | 'value';\n\n // @ts-ignore\n model: TimelineModel;\n\n constructor(\n dim: string,\n scale: Scale,\n coordExtent: [number, number],\n axisType: 'category' | 'time' | 'value'\n ) {\n super(dim, scale, coordExtent);\n this.type = axisType || 'value';\n }\n\n /**\n * @override\n */\n getLabelModel() {\n // Force override\n return this.model.getModel('label') as Model;\n }\n\n /**\n * @override\n */\n isHorizontal() {\n return this.model.get('orient') === 'horizontal';\n }\n}\n\nexport default TimelineAxis;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport BoundingRect, { RectLike } from 'zrender/src/core/BoundingRect';\nimport * as matrix from 'zrender/src/core/matrix';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as layout from '../../util/layout';\nimport TimelineView from './TimelineView';\nimport TimelineAxis from './TimelineAxis';\nimport {createSymbol, normalizeSymbolOffset, normalizeSymbolSize} from '../../util/symbol';\nimport * as numberUtil from '../../util/number';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { merge, each, extend, isString, bind, defaults, retrieve2 } from 'zrender/src/core/util';\nimport SliderTimelineModel from './SliderTimelineModel';\nimport { LayoutOrient, ZRTextAlign, ZRTextVerticalAlign, ZRElementEvent, ScaleTick } from '../../util/types';\nimport TimelineModel, { TimelineDataItemOption, TimelineCheckpointStyle } from './TimelineModel';\nimport { TimelineChangePayload, TimelinePlayChangePayload } from './timelineAction';\nimport Model from '../../model/Model';\nimport { PathProps, PathStyleProps } from 'zrender/src/graphic/Path';\nimport Scale from '../../scale/Scale';\nimport OrdinalScale from '../../scale/Ordinal';\nimport TimeScale from '../../scale/Time';\nimport IntervalScale from '../../scale/Interval';\nimport { VectorArray } from 'zrender/src/core/vector';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { makeInner } from '../../util/model';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst PI = Math.PI;\n\ntype TimelineSymbol = ReturnType;\n\ntype RenderMethodName = '_renderAxisLine' | '_renderAxisTick' | '_renderControl' | '_renderCurrentPointer';\n\ntype ControlName = 'play' | 'stop' | 'next' | 'prev';\ntype ControlIconName = 'playIcon' | 'stopIcon' | 'nextIcon' | 'prevIcon';\n\nconst labelDataIndexStore = makeInner<{\n dataIndex: number\n}, graphic.Text>();\n\ninterface LayoutInfo {\n viewRect: BoundingRect\n mainLength: number\n orient: LayoutOrient\n\n rotation: number\n labelRotation: number\n labelPosOpt: number | '+' | '-'\n labelAlign: ZRTextAlign\n labelBaseline: ZRTextVerticalAlign\n\n playPosition: number[]\n prevBtnPosition: number[]\n nextBtnPosition: number[]\n axisExtent: number[]\n\n controlSize: number\n controlGap: number\n}\n\nclass SliderTimelineView extends TimelineView {\n\n static type = 'timeline.slider';\n type = SliderTimelineView.type;\n\n api: ExtensionAPI;\n model: SliderTimelineModel;\n ecModel: GlobalModel;\n\n private _axis: TimelineAxis;\n\n private _viewRect: BoundingRect;\n\n private _timer: number;\n\n private _currentPointer: TimelineSymbol;\n\n private _progressLine: graphic.Line;\n\n private _mainGroup: graphic.Group;\n\n private _labelGroup: graphic.Group;\n\n private _tickSymbols: graphic.Path[];\n private _tickLabels: graphic.Text[];\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.api = api;\n }\n\n /**\n * @override\n */\n render(timelineModel: SliderTimelineModel, ecModel: GlobalModel, api: ExtensionAPI) {\n this.model = timelineModel;\n this.api = api;\n this.ecModel = ecModel;\n\n this.group.removeAll();\n\n if (timelineModel.get('show', true)) {\n\n const layoutInfo = this._layout(timelineModel, api);\n const mainGroup = this._createGroup('_mainGroup');\n const labelGroup = this._createGroup('_labelGroup');\n\n const axis = this._axis = this._createAxis(layoutInfo, timelineModel);\n\n timelineModel.formatTooltip = function (dataIndex: number) {\n const name = axis.scale.getLabel({value: dataIndex});\n return createTooltipMarkup('nameValue', { noName: true, value: name });\n };\n\n each(\n ['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'] as const,\n function (name) {\n this['_render' + name as RenderMethodName](layoutInfo, mainGroup, axis, timelineModel);\n },\n this\n );\n\n this._renderAxisLabel(layoutInfo, labelGroup, axis, timelineModel);\n this._position(layoutInfo, timelineModel);\n }\n\n this._doPlayStop();\n\n this._updateTicksStatus();\n }\n\n /**\n * @override\n */\n remove() {\n this._clearTimer();\n this.group.removeAll();\n }\n\n /**\n * @override\n */\n dispose() {\n this._clearTimer();\n }\n\n private _layout(timelineModel: SliderTimelineModel, api: ExtensionAPI): LayoutInfo {\n const labelPosOpt = timelineModel.get(['label', 'position']);\n const orient = timelineModel.get('orient');\n const viewRect = getViewRect(timelineModel, api);\n let parsedLabelPos: number | '+' | '-';\n // Auto label offset.\n if (labelPosOpt == null || labelPosOpt === 'auto') {\n parsedLabelPos = orient === 'horizontal'\n ? ((viewRect.y + viewRect.height / 2) < api.getHeight() / 2 ? '-' : '+')\n : ((viewRect.x + viewRect.width / 2) < api.getWidth() / 2 ? '+' : '-');\n }\n else if (isString(labelPosOpt)) {\n parsedLabelPos = ({\n horizontal: {top: '-', bottom: '+'},\n vertical: {left: '-', right: '+'}\n } as const)[orient][labelPosOpt];\n }\n else {\n // is number\n parsedLabelPos = labelPosOpt;\n }\n\n const labelAlignMap = {\n horizontal: 'center',\n vertical: (parsedLabelPos >= 0 || parsedLabelPos === '+') ? 'left' : 'right'\n };\n\n const labelBaselineMap = {\n horizontal: (parsedLabelPos >= 0 || parsedLabelPos === '+') ? 'top' : 'bottom',\n vertical: 'middle'\n };\n const rotationMap = {\n horizontal: 0,\n vertical: PI / 2\n };\n\n // Position\n const mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;\n\n const controlModel = timelineModel.getModel('controlStyle');\n const showControl = controlModel.get('show', true);\n const controlSize = showControl ? controlModel.get('itemSize') : 0;\n const controlGap = showControl ? controlModel.get('itemGap') : 0;\n const sizePlusGap = controlSize + controlGap;\n\n // Special label rotate.\n let labelRotation = timelineModel.get(['label', 'rotate']) || 0;\n labelRotation = labelRotation * PI / 180; // To radian.\n\n let playPosition: number[];\n let prevBtnPosition: number[];\n let nextBtnPosition: number[];\n const controlPosition = controlModel.get('position', true);\n const showPlayBtn = showControl && controlModel.get('showPlayBtn', true);\n const showPrevBtn = showControl && controlModel.get('showPrevBtn', true);\n const showNextBtn = showControl && controlModel.get('showNextBtn', true);\n let xLeft = 0;\n let xRight = mainLength;\n\n // position[0] means left, position[1] means middle.\n if (controlPosition === 'left' || controlPosition === 'bottom') {\n showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);\n showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n else { // 'top' 'right'\n showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n const axisExtent = [xLeft, xRight];\n\n if (timelineModel.get('inverse')) {\n axisExtent.reverse();\n }\n\n return {\n viewRect: viewRect,\n mainLength: mainLength,\n orient: orient,\n\n rotation: rotationMap[orient],\n labelRotation: labelRotation,\n labelPosOpt: parsedLabelPos,\n labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient] as ZRTextAlign,\n labelBaseline: timelineModel.get(['label', 'verticalAlign'])\n || timelineModel.get(['label', 'baseline'])\n || labelBaselineMap[orient] as ZRTextVerticalAlign,\n\n // Based on mainGroup.\n playPosition: playPosition,\n prevBtnPosition: prevBtnPosition,\n nextBtnPosition: nextBtnPosition,\n axisExtent: axisExtent,\n\n controlSize: controlSize,\n controlGap: controlGap\n };\n }\n\n private _position(layoutInfo: LayoutInfo, timelineModel: SliderTimelineModel) {\n // Position is be called finally, because bounding rect is needed for\n // adapt content to fill viewRect (auto adapt offset).\n\n // Timeline may be not all in the viewRect when 'offset' is specified\n // as a number, because it is more appropriate that label aligns at\n // 'offset' but not the other edge defined by viewRect.\n\n const mainGroup = this._mainGroup;\n const labelGroup = this._labelGroup;\n\n let viewRect = layoutInfo.viewRect;\n if (layoutInfo.orient === 'vertical') {\n // transform to horizontal, inverse rotate by left-top point.\n const m = matrix.create();\n const rotateOriginX = viewRect.x;\n const rotateOriginY = viewRect.y + viewRect.height;\n matrix.translate(m, m, [-rotateOriginX, -rotateOriginY]);\n matrix.rotate(m, m, -PI / 2);\n matrix.translate(m, m, [rotateOriginX, rotateOriginY]);\n viewRect = viewRect.clone();\n viewRect.applyTransform(m);\n }\n\n const viewBound = getBound(viewRect);\n const mainBound = getBound(mainGroup.getBoundingRect());\n const labelBound = getBound(labelGroup.getBoundingRect());\n\n const mainPosition = [mainGroup.x, mainGroup.y];\n const labelsPosition = [labelGroup.x, labelGroup.y];\n\n labelsPosition[0] = mainPosition[0] = viewBound[0][0];\n\n const labelPosOpt = layoutInfo.labelPosOpt;\n\n if (labelPosOpt == null || isString(labelPosOpt)) { // '+' or '-'\n const mainBoundIdx = labelPosOpt === '+' ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);\n }\n else {\n const mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n labelsPosition[1] = mainPosition[1] + labelPosOpt;\n }\n\n mainGroup.setPosition(mainPosition);\n labelGroup.setPosition(labelsPosition);\n mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;\n\n setOrigin(mainGroup);\n setOrigin(labelGroup);\n\n function setOrigin(targetGroup: graphic.Group) {\n targetGroup.originX = viewBound[0][0] - targetGroup.x;\n targetGroup.originY = viewBound[1][0] - targetGroup.y;\n }\n\n function getBound(rect: RectLike) {\n // [[xmin, xmax], [ymin, ymax]]\n return [\n [rect.x, rect.x + rect.width],\n [rect.y, rect.y + rect.height]\n ];\n }\n\n function toBound(fromPos: VectorArray, from: number[][], to: number[][], dimIdx: number, boundIdx: number) {\n fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];\n }\n }\n\n private _createAxis(layoutInfo: LayoutInfo, timelineModel: SliderTimelineModel) {\n const data = timelineModel.getData();\n const axisType = timelineModel.get('axisType');\n\n const scale = createScaleByModel(timelineModel, axisType);\n\n // Customize scale. The `tickValue` is `dataIndex`.\n scale.getTicks = function () {\n return data.mapArray(['value'], function (value: number) {\n return {value};\n });\n };\n\n const dataExtent = data.getDataExtent('value');\n scale.setExtent(dataExtent[0], dataExtent[1]);\n scale.niceTicks();\n\n const axis = new TimelineAxis('value', scale, layoutInfo.axisExtent as [number, number], axisType);\n axis.model = timelineModel;\n\n return axis;\n }\n\n private _createGroup(key: '_mainGroup' | '_labelGroup') {\n const newGroup = this[key] = new graphic.Group();\n this.group.add(newGroup);\n return newGroup;\n }\n\n private _renderAxisLine(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const axisExtent = axis.getExtent();\n\n if (!timelineModel.get(['lineStyle', 'show'])) {\n return;\n }\n\n const line = new graphic.Line({\n shape: {\n x1: axisExtent[0], y1: 0,\n x2: axisExtent[1], y2: 0\n },\n style: extend(\n {lineCap: 'round'},\n timelineModel.getModel('lineStyle').getLineStyle()\n ),\n silent: true,\n z2: 1\n });\n group.add(line);\n\n const progressLine = this._progressLine = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n x2: this._currentPointer\n ? this._currentPointer.x : axisExtent[0],\n y1: 0, y2: 0\n },\n style: defaults(\n { lineCap: 'round', lineWidth: line.style.lineWidth } as PathStyleProps,\n timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()\n ),\n silent: true,\n z2: 1\n });\n group.add(progressLine);\n }\n\n private _renderAxisTick(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const data = timelineModel.getData();\n // Show all ticks, despite ignoring strategy.\n const ticks = axis.scale.getTicks();\n\n this._tickSymbols = [];\n\n // The value is dataIndex, see the costomized scale.\n each(ticks, (tick: ScaleTick) => {\n const tickCoord = axis.dataToCoord(tick.value);\n const itemModel = data.getItemModel(tick.value);\n const itemStyleModel = itemModel.getModel('itemStyle');\n const hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']);\n const progressStyleModel = itemModel.getModel(['progress', 'itemStyle']);\n\n const symbolOpt = {\n x: tickCoord,\n y: 0,\n onclick: bind(this._changeTimeline, this, tick.value)\n };\n const el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);\n el.ensureState('emphasis').style = hoverStyleModel.getItemStyle();\n el.ensureState('progress').style = progressStyleModel.getItemStyle();\n\n enableHoverEmphasis(el);\n\n const ecData = getECData(el);\n if (itemModel.get('tooltip')) {\n ecData.dataIndex = tick.value;\n ecData.dataModel = timelineModel;\n }\n else {\n ecData.dataIndex = ecData.dataModel = null;\n }\n\n this._tickSymbols.push(el);\n });\n }\n\n private _renderAxisLabel(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const labelModel = axis.getLabelModel();\n\n if (!labelModel.get('show')) {\n return;\n }\n\n const data = timelineModel.getData();\n const labels = axis.getViewLabels();\n\n this._tickLabels = [];\n\n each(labels, (labelItem) => {\n // The tickValue is dataIndex, see the costomized scale.\n const dataIndex = labelItem.tickValue;\n\n const itemModel = data.getItemModel(dataIndex);\n const normalLabelModel = itemModel.getModel('label');\n const hoverLabelModel = itemModel.getModel(['emphasis', 'label']);\n const progressLabelModel = itemModel.getModel(['progress', 'label']);\n\n const tickCoord = axis.dataToCoord(labelItem.tickValue);\n const textEl = new graphic.Text({\n x: tickCoord,\n y: 0,\n rotation: layoutInfo.labelRotation - layoutInfo.rotation,\n onclick: bind(this._changeTimeline, this, dataIndex),\n silent: false,\n style: createTextStyle(normalLabelModel, {\n text: labelItem.formattedLabel,\n align: layoutInfo.labelAlign,\n verticalAlign: layoutInfo.labelBaseline\n })\n });\n\n textEl.ensureState('emphasis').style = createTextStyle(hoverLabelModel);\n textEl.ensureState('progress').style = createTextStyle(progressLabelModel);\n\n group.add(textEl);\n enableHoverEmphasis(textEl);\n\n labelDataIndexStore(textEl).dataIndex = dataIndex;\n\n this._tickLabels.push(textEl);\n\n });\n }\n\n private _renderControl(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const controlSize = layoutInfo.controlSize;\n const rotation = layoutInfo.rotation;\n\n const itemStyle = timelineModel.getModel('controlStyle').getItemStyle();\n const hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle();\n const playState = timelineModel.getPlayState();\n const inverse = timelineModel.get('inverse', true);\n\n makeBtn(\n layoutInfo.nextBtnPosition,\n 'next',\n bind(this._changeTimeline, this, inverse ? '-' : '+')\n );\n makeBtn(\n layoutInfo.prevBtnPosition,\n 'prev',\n bind(this._changeTimeline, this, inverse ? '+' : '-')\n );\n makeBtn(\n layoutInfo.playPosition,\n (playState ? 'stop' : 'play'),\n bind(this._handlePlayClick, this, !playState),\n true\n );\n\n function makeBtn(\n position: number[],\n iconName: ControlName,\n onclick: () => void,\n willRotate?: boolean\n ) {\n if (!position) {\n return;\n }\n const iconSize = parsePercent(\n retrieve2(timelineModel.get(['controlStyle', iconName + 'BtnSize' as any]), controlSize),\n controlSize\n );\n const rect = [0, -iconSize / 2, iconSize, iconSize];\n const btn = makeControlIcon(timelineModel, iconName + 'Icon' as ControlIconName, rect, {\n x: position[0],\n y: position[1],\n originX: controlSize / 2,\n originY: 0,\n rotation: willRotate ? -rotation : 0,\n rectHover: true,\n style: itemStyle,\n onclick: onclick\n });\n btn.ensureState('emphasis').style = hoverStyle;\n group.add(btn);\n enableHoverEmphasis(btn);\n }\n }\n\n private _renderCurrentPointer(\n layoutInfo: LayoutInfo,\n group: graphic.Group,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel\n ) {\n const data = timelineModel.getData();\n const currentIndex = timelineModel.getCurrentIndex();\n const pointerModel = data.getItemModel(currentIndex)\n .getModel('checkpointStyle');\n const me = this;\n\n const callback = {\n onCreate(pointer: TimelineSymbol) {\n pointer.draggable = true;\n pointer.drift = bind(me._handlePointerDrag, me);\n pointer.ondragend = bind(me._handlePointerDragend, me);\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true);\n },\n onUpdate(pointer: TimelineSymbol) {\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel);\n }\n };\n\n // Reuse when exists, for animation and drag.\n this._currentPointer = giveSymbol(\n pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback\n );\n }\n\n private _handlePlayClick(nextState: boolean) {\n this._clearTimer();\n this.api.dispatchAction({\n type: 'timelinePlayChange',\n playState: nextState,\n from: this.uid\n } as TimelinePlayChangePayload);\n }\n\n private _handlePointerDrag(dx: number, dy: number, e: ZRElementEvent) {\n this._clearTimer();\n this._pointerChangeTimeline([e.offsetX, e.offsetY]);\n }\n\n private _handlePointerDragend(e: ZRElementEvent) {\n this._pointerChangeTimeline([e.offsetX, e.offsetY], true);\n }\n\n private _pointerChangeTimeline(mousePos: number[], trigger?: boolean) {\n let toCoord = this._toAxisCoord(mousePos)[0];\n\n const axis = this._axis;\n const axisExtent = numberUtil.asc(axis.getExtent().slice());\n\n toCoord > axisExtent[1] && (toCoord = axisExtent[1]);\n toCoord < axisExtent[0] && (toCoord = axisExtent[0]);\n\n this._currentPointer.x = toCoord;\n this._currentPointer.markRedraw();\n\n this._progressLine.shape.x2 = toCoord;\n this._progressLine.dirty();\n\n const targetDataIndex = this._findNearestTick(toCoord);\n const timelineModel = this.model;\n\n if (trigger || (\n targetDataIndex !== timelineModel.getCurrentIndex()\n && timelineModel.get('realtime')\n )) {\n this._changeTimeline(targetDataIndex);\n }\n }\n\n private _doPlayStop() {\n this._clearTimer();\n\n if (this.model.getPlayState()) {\n this._timer = setTimeout(\n () => {\n // Do not cache\n const timelineModel = this.model;\n this._changeTimeline(\n timelineModel.getCurrentIndex()\n + (timelineModel.get('rewind', true) ? -1 : 1)\n );\n },\n this.model.get('playInterval')\n ) as any;\n }\n }\n\n private _toAxisCoord(vertex: number[]) {\n const trans = this._mainGroup.getLocalTransform();\n return graphic.applyTransform(vertex, trans, true);\n }\n\n private _findNearestTick(axisCoord: number) {\n const data = this.model.getData();\n let dist = Infinity;\n let targetDataIndex;\n const axis = this._axis;\n\n data.each(['value'], function (value, dataIndex) {\n const coord = axis.dataToCoord(value);\n const d = Math.abs(coord - axisCoord);\n if (d < dist) {\n dist = d;\n targetDataIndex = dataIndex;\n }\n });\n\n return targetDataIndex;\n }\n\n private _clearTimer() {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n }\n\n private _changeTimeline(nextIndex: number | '+' | '-') {\n const currentIndex = this.model.getCurrentIndex();\n\n if (nextIndex === '+') {\n nextIndex = currentIndex + 1;\n }\n else if (nextIndex === '-') {\n nextIndex = currentIndex - 1;\n }\n\n this.api.dispatchAction({\n type: 'timelineChange',\n currentIndex: nextIndex,\n from: this.uid\n } as TimelineChangePayload);\n }\n\n private _updateTicksStatus() {\n const currentIndex = this.model.getCurrentIndex();\n const tickSymbols = this._tickSymbols;\n const tickLabels = this._tickLabels;\n\n if (tickSymbols) {\n for (let i = 0; i < tickSymbols.length; i++) {\n tickSymbols && tickSymbols[i]\n && tickSymbols[i].toggleState('progress', i < currentIndex);\n }\n }\n if (tickLabels) {\n for (let i = 0; i < tickLabels.length; i++) {\n tickLabels && tickLabels[i]\n && tickLabels[i].toggleState(\n 'progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex\n );\n }\n }\n }\n}\n\nfunction createScaleByModel(model: SliderTimelineModel, axisType?: string): Scale {\n axisType = axisType || model.get('type');\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n default:\n // default to be value\n return new IntervalScale();\n }\n }\n}\n\n\nfunction getViewRect(model: SliderTimelineModel, api: ExtensionAPI) {\n return layout.getLayoutRect(\n model.getBoxLayoutParams(),\n {\n width: api.getWidth(),\n height: api.getHeight()\n },\n model.get('padding')\n );\n}\n\nfunction makeControlIcon(\n timelineModel: TimelineModel,\n objPath: ControlIconName,\n rect: number[],\n opts: PathProps\n) {\n const style = opts.style;\n\n const icon = graphic.createIcon(\n timelineModel.get(['controlStyle', objPath]),\n opts || {},\n new BoundingRect(rect[0], rect[1], rect[2], rect[3])\n );\n\n // TODO createIcon won't use style in opt.\n if (style) {\n (icon as Displayable).setStyle(style);\n }\n\n return icon;\n}\n\n/**\n * Create symbol or update symbol\n * opt: basic position and event handlers\n */\nfunction giveSymbol(\n hostModel: Model,\n itemStyleModel: Model,\n group: graphic.Group,\n opt: PathProps,\n symbol?: TimelineSymbol,\n callback?: {\n onCreate?: (symbol: TimelineSymbol) => void\n onUpdate?: (symbol: TimelineSymbol) => void\n }\n) {\n const color = itemStyleModel.get('color');\n\n if (!symbol) {\n const symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n }\n else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n callback && callback.onUpdate(symbol);\n }\n\n // Style\n const itemStyle = itemStyleModel.getItemStyle(['color']);\n symbol.setStyle(itemStyle);\n\n // Transform and events.\n opt = merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n\n const symbolSize = normalizeSymbolSize(hostModel.get('symbolSize'));\n\n opt.scaleX = symbolSize[0] / 2;\n opt.scaleY = symbolSize[1] / 2;\n\n const symbolOffset = normalizeSymbolOffset(hostModel.get('symbolOffset'), symbolSize);\n if (symbolOffset) {\n opt.x = (opt.x || 0) + symbolOffset[0];\n opt.y = (opt.y || 0) + symbolOffset[1];\n }\n\n const symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n symbol.attr(opt);\n\n // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n symbol.updateTransform();\n\n return symbol;\n}\n\nfunction pointerMoveTo(\n pointer: TimelineSymbol,\n progressLine: graphic.Line,\n dataIndex: number,\n axis: TimelineAxis,\n timelineModel: SliderTimelineModel,\n noAnimation?: boolean\n) {\n if (pointer.dragging) {\n return;\n }\n\n const pointerModel = timelineModel.getModel('checkpointStyle');\n const toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex));\n\n if (noAnimation || !pointerModel.get('animation', true)) {\n pointer.attr({\n x: toCoord,\n y: 0\n });\n progressLine && progressLine.attr({\n shape: { x2: toCoord }\n });\n }\n else {\n const animationCfg = {\n duration: pointerModel.get('animationDuration', true),\n easing: pointerModel.get('animationEasing', true)\n };\n pointer.stopAnimation(null, true);\n pointer.animateTo({\n x: toCoord,\n y: 0\n }, animationCfg);\n progressLine && progressLine.animateTo({\n shape: { x2: toCoord }\n }, animationCfg);\n }\n}\n\nexport default SliderTimelineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport GlobalModel from '../../model/Global';\nimport TimelineModel from './TimelineModel';\nimport { defaults } from 'zrender/src/core/util';\nimport { Payload } from '../../util/types';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ExtensionAPI from '../../core/ExtensionAPI';\n\nexport interface TimelineChangePayload extends Payload {\n type: 'timelineChange'\n currentIndex: number\n}\nexport interface TimelinePlayChangePayload extends Payload {\n type: 'timelinePlayChange'\n playState: boolean\n}\n\n\nexport function installTimelineAction(registers: EChartsExtensionInstallRegisters) {\n registers.registerAction(\n\n {type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'},\n\n function (payload: TimelineChangePayload, ecModel: GlobalModel, api: ExtensionAPI) {\n\n const timelineModel = ecModel.getComponent('timeline') as TimelineModel;\n if (timelineModel && payload.currentIndex != null) {\n timelineModel.setCurrentIndex(payload.currentIndex);\n\n if (\n !timelineModel.get('loop', true)\n && timelineModel.isIndexMax()\n && timelineModel.getPlayState()\n ) {\n timelineModel.setPlayState(false);\n\n // The timeline has played to the end, trigger event\n api.dispatchAction({\n type: 'timelinePlayChange',\n playState: false,\n from: payload.from\n });\n }\n }\n\n // Set normalized currentIndex to payload.\n ecModel.resetOption('timeline', { replaceMerge: timelineModel.get('replaceMerge', true) });\n\n return defaults({\n currentIndex: timelineModel.option.currentIndex\n }, payload);\n }\n );\n\n registers.registerAction(\n\n {type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update'},\n\n function (payload: TimelinePlayChangePayload, ecModel: GlobalModel) {\n const timelineModel = ecModel.getComponent('timeline') as TimelineModel;\n if (timelineModel && payload.playState != null) {\n timelineModel.setPlayState(payload.playState);\n }\n }\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nexport default function timelinePreprocessor(option) {\n let timelineOpt = option && option.timeline;\n\n if (!zrUtil.isArray(timelineOpt)) {\n timelineOpt = timelineOpt ? [timelineOpt] : [];\n }\n\n zrUtil.each(timelineOpt, function (opt) {\n if (!opt) {\n return;\n }\n\n compatibleEC2(opt);\n });\n}\n\nfunction compatibleEC2(opt) {\n const type = opt.type;\n\n const ec2Types = {'number': 'value', 'time': 'time'};\n\n // Compatible with ec2\n if (ec2Types[type]) {\n opt.axisType = ec2Types[type];\n delete opt.type;\n }\n\n transferItem(opt);\n\n if (has(opt, 'controlPosition')) {\n const controlStyle = opt.controlStyle || (opt.controlStyle = {});\n if (!has(controlStyle, 'position')) {\n controlStyle.position = opt.controlPosition;\n }\n if (controlStyle.position === 'none' && !has(controlStyle, 'show')) {\n controlStyle.show = false;\n delete controlStyle.position;\n }\n delete opt.controlPosition;\n }\n\n zrUtil.each(opt.data || [], function (dataItem) {\n if (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem)) {\n if (!has(dataItem, 'value') && has(dataItem, 'name')) {\n // In ec2, using name as value.\n dataItem.value = dataItem.name;\n }\n transferItem(dataItem);\n }\n });\n}\n\nfunction transferItem(opt) {\n const itemStyle = opt.itemStyle || (opt.itemStyle = {});\n\n const itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {});\n\n // Transfer label out\n const label = opt.label || (opt.label || {});\n const labelNormal = label.normal || (label.normal = {});\n const excludeLabelAttr = {normal: 1, emphasis: 1};\n\n zrUtil.each(label, function (value, name) {\n if (!excludeLabelAttr[name] && !has(labelNormal, name)) {\n labelNormal[name] = value;\n }\n });\n\n if (itemStyleEmphasis.label && !has(label, 'emphasis')) {\n label.emphasis = itemStyleEmphasis.label;\n delete itemStyleEmphasis.label;\n }\n}\n\nfunction has(obj, attr) {\n return obj.hasOwnProperty(attr);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SliderTimelineModel from './SliderTimelineModel';\nimport SliderTimelineView from './SliderTimelineView';\nimport { installTimelineAction } from './timelineAction';\nimport preprocessor from './preprocessor';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(SliderTimelineModel);\n registers.registerComponentView(SliderTimelineView);\n\n registers.registerSubTypeDefaulter('timeline', function () {\n // Only slider now.\n return 'slider';\n });\n\n installTimelineAction(registers);\n\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { isArray } from 'zrender/src/core/util';\nimport { SeriesOption } from '../../util/types';\n\ntype MarkerTypes = 'markPoint' | 'markLine' | 'markArea';\n\ntype SeriesWithMarkerOption = SeriesOption & Partial>;\n\nexport default function checkMarkerInSeries(\n seriesOpts: SeriesOption | SeriesOption[], markerType: MarkerTypes\n): boolean {\n if (!seriesOpts) {\n return false;\n }\n const seriesOptArr = isArray(seriesOpts) ? seriesOpts : [seriesOpts];\n for (let idx = 0; idx < seriesOptArr.length; idx++) {\n if (seriesOptArr[idx] && (seriesOptArr[idx] as SeriesWithMarkerOption)[markerType]) {\n return true;\n }\n }\n return false;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport ComponentModel from '../../model/Component';\nimport SeriesModel from '../../model/Series';\nimport {\n DisplayStateHostOption,\n ComponentOption,\n AnimationOptionMixin,\n Dictionary,\n CommonTooltipOption,\n ScaleDataValue\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport SeriesData from '../../data/SeriesData';\nimport { makeInner, defaultEmphasis } from '../../util/model';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\n\nfunction fillLabel(opt: DisplayStateHostOption) {\n defaultEmphasis(opt, 'label', ['show']);\n}\n\nexport type MarkerStatisticType = 'average' | 'min' | 'max' | 'median';\n\n/**\n * Option to specify where to put the marker.\n */\nexport interface MarkerPositionOption {\n // Priority: x/y > coord(xAxis, yAxis) > type\n\n // Absolute position, px or percent string\n x?: number | string\n y?: number | string\n\n /**\n * Coord on any coordinate system\n */\n coord?: (ScaleDataValue | MarkerStatisticType)[]\n\n // On cartesian coordinate system\n xAxis?: ScaleDataValue\n yAxis?: ScaleDataValue\n\n // On polar coordinate system\n radiusAxis?: ScaleDataValue\n angleAxis?: ScaleDataValue\n\n // Use statistic method\n type?: MarkerStatisticType\n /**\n * When using statistic method with type.\n * valueIndex and valueDim can be specify which dim the statistic is used on.\n */\n valueIndex?: number\n valueDim?: string\n\n\n /**\n * Value to be displayed as label. Totally optional\n */\n value?: string | number\n}\n\nexport interface MarkerOption extends ComponentOption, AnimationOptionMixin {\n\n silent?: boolean\n\n data?: unknown[]\n\n tooltip?: CommonTooltipOption & {\n trigger?: 'item' | 'axis' | boolean | 'none'\n }\n}\n\n// { [componentType]: MarkerModel }\nconst inner = makeInner, SeriesModel>();\n\nabstract class MarkerModel extends ComponentModel {\n\n static type = 'marker';\n type = MarkerModel.type;\n\n /**\n * If marker model is created by self from series\n */\n createdBySelf = false;\n\n static readonly dependencies = ['series', 'grid', 'polar', 'geo'];\n\n __hostSeries: SeriesModel;\n\n private _data: SeriesData;\n\n /**\n * @overrite\n */\n init(option: Opts, parentModel: Model, ecModel: GlobalModel) {\n\n if (__DEV__) {\n if (this.type === 'marker') {\n throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.');\n }\n }\n this.mergeDefaultAndTheme(option, ecModel);\n this._mergeOption(option, ecModel, false, true);\n }\n\n isAnimationEnabled(): boolean {\n if (env.node) {\n return false;\n }\n\n const hostSeries = this.__hostSeries;\n return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();\n }\n\n /**\n * @overrite\n */\n mergeOption(newOpt: Opts, ecModel: GlobalModel) {\n this._mergeOption(newOpt, ecModel, false, false);\n }\n\n _mergeOption(newOpt: Opts, ecModel: GlobalModel, createdBySelf?: boolean, isInit?: boolean) {\n const componentType = this.mainType;\n if (!createdBySelf) {\n ecModel.eachSeries(function (seriesModel) {\n\n // mainType can be markPoint, markLine, markArea\n const markerOpt = seriesModel.get(\n this.mainType as any, true\n ) as Opts;\n\n let markerModel = inner(seriesModel)[componentType];\n if (!markerOpt || !markerOpt.data) {\n inner(seriesModel)[componentType] = null;\n return;\n }\n if (!markerModel) {\n if (isInit) {\n // Default label emphasis `position` and `show`\n fillLabel(markerOpt);\n }\n zrUtil.each(markerOpt.data, function (item) {\n // FIXME Overwrite fillLabel method ?\n if (item instanceof Array) {\n fillLabel(item[0]);\n fillLabel(item[1]);\n }\n else {\n fillLabel(item);\n }\n });\n\n markerModel = this.createMarkerModelFromSeries(\n markerOpt, this, ecModel\n );\n // markerModel = new ImplementedMarkerModel(\n // markerOpt, this, ecModel\n // );\n\n zrUtil.extend(markerModel, {\n mainType: this.mainType,\n // Use the same series index and name\n seriesIndex: seriesModel.seriesIndex,\n name: seriesModel.name,\n createdBySelf: true\n });\n\n markerModel.__hostSeries = seriesModel;\n }\n else {\n markerModel._mergeOption(markerOpt, ecModel, true);\n }\n inner(seriesModel)[componentType] = markerModel;\n }, this);\n }\n }\n\n formatTooltip(\n dataIndex: number,\n multipleSeries: boolean,\n dataType: string\n ) {\n const data = this.getData();\n const value = this.getRawValue(dataIndex);\n const itemName = data.getName(dataIndex);\n\n return createTooltipMarkup('section', {\n header: this.name,\n blocks: [createTooltipMarkup('nameValue', {\n name: itemName,\n value: value,\n noName: !itemName,\n noValue: value == null\n })]\n });\n }\n\n getData(): SeriesData {\n return this._data as SeriesData;\n }\n\n setData(data: SeriesData) {\n this._data = data;\n }\n\n /**\n * Create slave marker model from series.\n */\n abstract createMarkerModelFromSeries(\n markerOpt: Opts,\n masterMarkerModel: MarkerModel,\n ecModel: GlobalModel\n ): MarkerModel;\n\n static getMarkerModelFromSeries(\n seriesModel: SeriesModel,\n // Support three types of markers. Strict check.\n componentType: 'markLine' | 'markPoint' | 'markArea'\n ) {\n return inner(seriesModel)[componentType];\n }\n}\n\ninterface MarkerModel extends DataFormatMixin {}\nzrUtil.mixin(MarkerModel, DataFormatMixin.prototype);\n\nexport default MarkerModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport {\n SymbolOptionMixin,\n ItemStyleOption,\n SeriesLabelOption,\n CallbackDataParams,\n StatesOptionMixin\n} from '../../util/types';\n\n// interface MarkPointCallbackDataParams extends CallbackDataParams {\n// componentType: 'markPoint'\n// componentSubType: never\n// }\n\ninterface MarkPointStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\nexport interface MarkPointDataItemOption extends\n MarkPointStateOption, StatesOptionMixin,\n // TODO should not support callback in data\n SymbolOptionMixin,\n MarkerPositionOption {\n name: string\n}\n\nexport interface MarkPointOption extends MarkerOption,\n SymbolOptionMixin,\n StatesOptionMixin, MarkPointStateOption {\n mainType?: 'markPoint'\n\n precision?: number\n\n data?: MarkPointDataItemOption[]\n}\n\nclass MarkPointModel extends MarkerModel {\n\n static type = 'markPoint';\n type = MarkPointModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkPointOption,\n masterMarkerModel: MarkPointModel,\n ecModel: GlobalModel\n ) {\n return new MarkPointModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkPointOption = {\n zlevel: 0,\n z: 5,\n symbol: 'pin',\n symbolSize: 50,\n //symbolRotate: 0,\n //symbolOffset: [0, 0]\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'inside'\n },\n itemStyle: {\n borderWidth: 2\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n}\n\nexport default MarkPointModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as numberUtil from '../../util/number';\nimport {isDimensionStacked} from '../../data/helper/dataStackHelper';\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\nimport { MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport { indexOf, curry, clone, isArray } from 'zrender/src/core/util';\nimport Axis from '../../coord/Axis';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport { ScaleDataValue, ParsedValue, DimensionLoose, DimensionName } from '../../util/types';\n\ninterface MarkerAxisInfo {\n valueDataDim: DimensionName\n valueAxis: Axis\n baseAxis: Axis\n baseDataDim: DimensionName\n}\n\nfunction hasXOrY(item: MarkerPositionOption) {\n return !(isNaN(parseFloat(item.x as string)) && isNaN(parseFloat(item.y as string)));\n}\n\nfunction hasXAndY(item: MarkerPositionOption) {\n return !isNaN(parseFloat(item.x as string)) && !isNaN(parseFloat(item.y as string));\n}\n\nfunction markerTypeCalculatorWithExtent(\n markerType: MarkerStatisticType,\n data: SeriesData,\n otherDataDim: string,\n targetDataDim: string,\n otherCoordIndex: number,\n targetCoordIndex: number\n): [ParsedValue[], ParsedValue] {\n const coordArr: ParsedValue[] = [];\n\n const stacked = isDimensionStacked(data, targetDataDim /*, otherDataDim*/);\n const calcDataDim = stacked\n ? data.getCalculationInfo('stackResultDimension')\n : targetDataDim;\n\n const value = numCalculate(data, calcDataDim, markerType);\n\n const dataIndex = data.indicesOfNearest(calcDataDim, value)[0];\n coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);\n coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex);\n const coordArrValue = data.get(targetDataDim, dataIndex);\n // Make it simple, do not visit all stacked value to count precision.\n let precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));\n precision = Math.min(precision, 20);\n if (precision >= 0) {\n coordArr[targetCoordIndex] = +(coordArr[targetCoordIndex] as number).toFixed(precision);\n }\n\n return [coordArr, coordArrValue];\n}\n\n// TODO Specified percent\nconst markerTypeCalculator = {\n min: curry(markerTypeCalculatorWithExtent, 'min'),\n max: curry(markerTypeCalculatorWithExtent, 'max'),\n average: curry(markerTypeCalculatorWithExtent, 'average'),\n median: curry(markerTypeCalculatorWithExtent, 'median')\n};\n\n/**\n * Transform markPoint data item to format used in List by do the following\n * 1. Calculate statistic like `max`, `min`, `average`\n * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array\n */\nexport function dataTransform(\n seriesModel: SeriesModel,\n item: MarkerPositionOption\n) {\n const data = seriesModel.getData();\n const coordSys = seriesModel.coordinateSystem;\n\n // 1. If not specify the position with pixel directly\n // 2. If `coord` is not a data array. Which uses `xAxis`,\n // `yAxis` to specify the coord on each dimension\n\n // parseFloat first because item.x and item.y can be percent string like '20%'\n if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {\n const dims = coordSys.dimensions;\n const axisInfo = getAxisInfo(item, data, coordSys, seriesModel);\n\n // Clone the option\n // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value\n item = clone(item);\n\n if (item.type\n && markerTypeCalculator[item.type]\n && axisInfo.baseAxis && axisInfo.valueAxis\n ) {\n const otherCoordIndex = indexOf(dims, axisInfo.baseAxis.dim);\n const targetCoordIndex = indexOf(dims, axisInfo.valueAxis.dim);\n\n const coordInfo = markerTypeCalculator[item.type](\n data, axisInfo.baseDataDim, axisInfo.valueDataDim,\n otherCoordIndex, targetCoordIndex\n );\n item.coord = coordInfo[0];\n // Force to use the value of calculated value.\n // let item use the value without stack.\n item.value = coordInfo[1];\n\n }\n else {\n // FIXME Only has one of xAxis and yAxis.\n const coord = [\n item.xAxis != null ? item.xAxis : item.radiusAxis,\n item.yAxis != null ? item.yAxis : item.angleAxis\n ];\n // Each coord support max, min, average\n for (let i = 0; i < 2; i++) {\n if (markerTypeCalculator[coord[i] as MarkerStatisticType]) {\n coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i] as MarkerStatisticType);\n }\n }\n item.coord = coord;\n }\n }\n return item;\n}\n\nexport function getAxisInfo(\n item: MarkerPositionOption,\n data: SeriesData,\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel\n) {\n const ret = {} as MarkerAxisInfo;\n\n if (item.valueIndex != null || item.valueDim != null) {\n ret.valueDataDim = item.valueIndex != null\n ? data.getDimension(item.valueIndex) : item.valueDim;\n ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim));\n ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n }\n else {\n ret.baseAxis = seriesModel.getBaseAxis();\n ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n ret.valueDataDim = data.mapDimension(ret.valueAxis.dim);\n }\n\n return ret;\n}\n\nfunction dataDimToCoordDim(seriesModel: SeriesModel, dataDim: DimensionLoose): DimensionName {\n const dimItem = seriesModel.getData().getDimensionInfo(dataDim);\n return dimItem && dimItem.coordDim;\n}\n\n/**\n * Filter data which is out of coordinateSystem range\n * [dataFilter description]\n */\nexport function dataFilter(\n // Currently only polar and cartesian has containData.\n coordSys: CoordinateSystem & {\n containData?(data: ScaleDataValue[]): boolean\n },\n item: MarkerPositionOption\n) {\n // Alwalys return true if there is no coordSys\n return (coordSys && coordSys.containData && item.coord && !hasXOrY(item))\n ? coordSys.containData(item.coord) : true;\n}\n\nexport function dimValueGetter(\n item: MarkerPositionOption,\n dimName: string,\n dataIndex: number,\n dimIndex: number\n) {\n // x, y, radius, angle\n if (dimIndex < 2) {\n return item.coord && item.coord[dimIndex] as ParsedValue;\n }\n return item.value;\n}\n\nexport function numCalculate(\n data: SeriesData,\n valueDataDim: string,\n type: MarkerStatisticType\n) {\n if (type === 'average') {\n let sum = 0;\n let count = 0;\n data.each(valueDataDim, function (val: number, idx) {\n if (!isNaN(val)) {\n sum += val;\n count++;\n }\n });\n return sum / count;\n }\n else if (type === 'median') {\n return data.getMedian(valueDataDim);\n }\n else {\n // max & min\n return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0];\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ComponentView from '../../view/Component';\nimport { HashMap, createHashMap, each } from 'zrender/src/core/util';\nimport MarkerModel from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { makeInner } from '../../util/model';\nimport SeriesModel from '../../model/Series';\nimport Group from 'zrender/src/graphic/Group';\nimport { enterBlur } from '../../util/states';\n\nconst inner = makeInner<{\n keep: boolean\n}, MarkerDraw>();\n\ninterface MarkerDraw {\n group: Group\n}\nabstract class MarkerView extends ComponentView {\n\n static type = 'marker';\n type = MarkerView.type;\n\n /**\n * Markline grouped by series\n */\n markerGroupMap: HashMap;\n\n init() {\n this.markerGroupMap = createHashMap();\n }\n\n render(markerModel: MarkerModel, ecModel: GlobalModel, api: ExtensionAPI) {\n const markerGroupMap = this.markerGroupMap;\n markerGroupMap.each(function (item) {\n inner(item).keep = false;\n });\n\n ecModel.eachSeries(seriesModel => {\n const markerModel = MarkerModel.getMarkerModelFromSeries(\n seriesModel,\n this.type as 'markPoint' | 'markLine' | 'markArea'\n );\n markerModel && this.renderSeries(seriesModel, markerModel, ecModel, api);\n });\n\n markerGroupMap.each(item => {\n !inner(item).keep && this.group.remove(item.group);\n });\n }\n\n markKeep(drawGroup: MarkerDraw) {\n inner(drawGroup).keep = true;\n }\n\n blurSeries(seriesModelList: SeriesModel[]) {\n each(seriesModelList, seriesModel => {\n const markerModel = MarkerModel.getMarkerModelFromSeries(\n seriesModel,\n this.type as 'markPoint' | 'markLine' | 'markArea'\n );\n if (markerModel) {\n const data = markerModel.getData();\n data.eachItemGraphicEl(function (el) {\n if (el) {\n enterBlur(el);\n }\n });\n }\n });\n }\n\n abstract renderSeries(\n seriesModel: SeriesModel,\n markerModel: MarkerModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ): void;\n}\n\nexport default MarkerView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\nimport SymbolDraw from '../../chart/helper/SymbolDraw';\nimport * as numberUtil from '../../util/number';\nimport SeriesData from '../../data/SeriesData';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { CoordinateSystem } from '../../coord/CoordinateSystem';\nimport SeriesModel from '../../model/Series';\nimport MarkPointModel, {MarkPointDataItemOption} from './MarkPointModel';\nimport GlobalModel from '../../model/Global';\nimport MarkerModel from './MarkerModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { HashMap, isFunction, map, defaults, filter, curry, extend } from 'zrender/src/core/util';\nimport { getECData } from '../../util/innerStore';\nimport { getVisualFromData } from '../../visual/helper';\nimport { ZRColor } from '../../util/types';\n\nfunction updateMarkerLayout(\n mpData: SeriesData,\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n mpData.each(function (idx: number) {\n const itemModel = mpData.getItemModel(idx);\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n // Chart like bar may have there own marker positioning logic\n else if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n mpData.getValues(mpData.dimensions, idx)\n );\n }\n else if (coordSys) {\n const x = mpData.get(coordSys.dimensions[0], idx);\n const y = mpData.get(coordSys.dimensions[1], idx);\n point = coordSys.dataToPoint([x, y]);\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n\n mpData.setItemLayout(idx, point);\n });\n}\n\nclass MarkPointView extends MarkerView {\n\n static type = 'markPoint';\n type = MarkPointView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markPointModel: MarkPointModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const mpModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markPoint') as MarkPointModel;\n if (mpModel) {\n updateMarkerLayout(\n mpModel.getData(),\n seriesModel, api\n );\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n mpModel: MarkPointModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const symbolDrawMap = this.markerGroupMap;\n const symbolDraw = symbolDrawMap.get(seriesId)\n || symbolDrawMap.set(seriesId, new SymbolDraw());\n\n const mpData = createData(coordSys, seriesModel, mpModel);\n\n // FIXME\n mpModel.setData(mpData);\n\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n\n mpData.each(function (idx) {\n const itemModel = mpData.getItemModel(idx);\n let symbol = itemModel.getShallow('symbol');\n let symbolSize = itemModel.getShallow('symbolSize');\n let symbolRotate = itemModel.getShallow('symbolRotate');\n let symbolOffset = itemModel.getShallow('symbolOffset');\n const symbolKeepAspect = itemModel.getShallow('symbolKeepAspect');\n\n // TODO: refactor needed: single data item should not support callback function\n if (isFunction(symbol) || isFunction(symbolSize) || isFunction(symbolRotate) || isFunction(symbolOffset)) {\n const rawIdx = mpModel.getRawValue(idx);\n const dataParams = mpModel.getDataParams(idx);\n if (isFunction(symbol)) {\n symbol = symbol(rawIdx, dataParams);\n }\n if (isFunction(symbolSize)) {\n // FIXME \u8FD9\u91CC\u4E0D\u517C\u5BB9 ECharts 2.x\uFF0C2.x \u8C8C\u4F3C\u53C2\u6570\u662F\u6574\u4E2A\u6570\u636E\uFF1F\n symbolSize = symbolSize(rawIdx, dataParams);\n }\n if (isFunction(symbolRotate)) {\n symbolRotate = symbolRotate(rawIdx, dataParams);\n }\n if (isFunction(symbolOffset)) {\n symbolOffset = symbolOffset(rawIdx, dataParams);\n }\n }\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n const color = getVisualFromData(seriesData, 'color') as ZRColor;\n if (!style.fill) {\n style.fill = color;\n }\n\n mpData.setItemVisual(idx, {\n symbol: symbol,\n symbolSize: symbolSize,\n symbolRotate: symbolRotate,\n symbolOffset: symbolOffset,\n symbolKeepAspect: symbolKeepAspect,\n style\n });\n });\n\n // TODO Text are wrong\n symbolDraw.updateData(mpData);\n this.group.add(symbolDraw.group);\n\n // Set host model for tooltip\n // FIXME\n mpData.eachItemGraphicEl(function (el) {\n el.traverse(function (child) {\n getECData(child).dataModel = mpModel;\n });\n });\n\n this.markKeep(symbolDraw);\n\n symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createData(\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel,\n mpModel: MarkPointModel\n) {\n let coordDimsInfos;\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const info = seriesModel.getData().getDimensionInfo(\n seriesModel.getData().mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n const mpData = new SeriesData(coordDimsInfos, mpModel);\n let dataOpt = map(mpModel.get('data'), curry(\n markerHelper.dataTransform, seriesModel\n ));\n if (coordSys) {\n dataOpt = filter(\n dataOpt, curry(markerHelper.dataFilter, coordSys)\n );\n }\n\n mpData.initData(dataOpt, null,\n coordSys ? markerHelper.dimValueGetter : function (item: MarkPointDataItemOption) {\n return item.value;\n }\n );\n\n return mpData;\n}\n\nexport default MarkPointView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkPointModel from './MarkPointModel';\nimport MarkPointView from './MarkPointView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkPointModel);\n registers.registerComponentView(MarkPointView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markPoint')) {\n // Make sure markPoint component is enabled\n opt.markPoint = opt.markPoint || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport GlobalModel from '../../model/Global';\nimport {\n LineStyleOption,\n SeriesLineLabelOption,\n SymbolOptionMixin,\n ItemStyleOption,\n StatesOptionMixin\n} from '../../util/types';\n\ninterface MarkLineStateOption {\n lineStyle?: LineStyleOption\n /**\n * itemStyle for symbol\n */\n itemStyle?: ItemStyleOption\n label?: SeriesLineLabelOption\n}\ninterface MarkLineDataItemOptionBase extends MarkLineStateOption, StatesOptionMixin {\n name?: string\n}\n\n// 1D markLine for horizontal or vertical\nexport interface MarkLine1DDataItemOption extends MarkLineDataItemOptionBase {\n\n // On cartesian coordinate system\n xAxis?: number | string\n yAxis?: number | string\n\n // Use statistic method\n type?: MarkerStatisticType\n /**\n * When using statistic method with type.\n * valueIndex and valueDim can be specify which dim the statistic is used on.\n */\n valueIndex?: number\n valueDim?: string\n\n /**\n * Symbol for both two ends\n */\n symbol?: string[] | string\n symbolSize?: number[] | number\n symbolRotate?: number[] | number\n symbolOffset?: number | string | (number | string)[]\n}\n\n// 2D markLine on any direction\ninterface MarkLine2DDataItemDimOption extends\n MarkLineDataItemOptionBase,\n SymbolOptionMixin,\n MarkerPositionOption {\n}\n\nexport type MarkLine2DDataItemOption = [\n // Start point\n MarkLine2DDataItemDimOption,\n // End point\n MarkLine2DDataItemDimOption\n];\n\nexport interface MarkLineOption extends MarkerOption,\n MarkLineStateOption, StatesOptionMixin {\n mainType?: 'markLine'\n\n symbol?: string[] | string\n symbolSize?: number[] | number\n symbolRotate?: number[] | number\n symbolOffset?: number | string | (number | string)[]\n\n /**\n * Precision used on statistic method\n */\n precision?: number\n\n data?: (MarkLine1DDataItemOption | MarkLine2DDataItemOption)[]\n}\n\nclass MarkLineModel extends MarkerModel {\n\n static type = 'markLine';\n type = MarkLineModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkLineOption,\n masterMarkerModel: MarkLineModel,\n ecModel: GlobalModel\n ) {\n return new MarkLineModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkLineOption = {\n zlevel: 0,\n z: 5,\n\n symbol: ['circle', 'arrow'],\n symbolSize: [8, 16],\n\n //symbolRotate: 0,\n symbolOffset: 0,\n\n precision: 2,\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'end',\n distance: 5\n },\n lineStyle: {\n type: 'dashed'\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n width: 3\n }\n },\n animationEasing: 'linear'\n };\n}\n\nexport default MarkLineModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport SeriesData from '../../data/SeriesData';\nimport * as numberUtil from '../../util/number';\nimport * as markerHelper from './markerHelper';\nimport LineDraw from '../../chart/helper/LineDraw';\nimport MarkerView from './MarkerView';\nimport {getStackedDimension} from '../../data/helper/dataStackHelper';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkLineModel, { MarkLine2DDataItemOption, MarkLineOption } from './MarkLineModel';\nimport { ScaleDataValue, ColorString } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { getECData } from '../../util/innerStore';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport GlobalModel from '../../model/Global';\nimport MarkerModel from './MarkerModel';\nimport {\n isArray,\n retrieve,\n retrieve2,\n clone,\n extend,\n logError,\n merge,\n map,\n defaults,\n curry,\n filter,\n HashMap\n} from 'zrender/src/core/util';\nimport { makeInner } from '../../util/model';\nimport { LineDataVisual } from '../../visual/commonVisualTypes';\nimport { getVisualFromData } from '../../visual/helper';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\n// Item option for configuring line and each end of symbol.\n// Line option. be merged from configuration of two ends.\ntype MarkLineMergedItemOption = MarkLine2DDataItemOption[number];\n\nconst inner = makeInner<{\n // from data\n from: SeriesData\n // to data\n to: SeriesData\n}, MarkLineModel>();\n\nconst markLineTransform = function (\n seriesModel: SeriesModel,\n coordSys: CoordinateSystem,\n mlModel: MarkLineModel,\n item: MarkLineOption['data'][number]\n) {\n const data = seriesModel.getData();\n\n let itemArray: MarkLineMergedItemOption[];\n if (!isArray(item)) {\n // Special type markLine like 'min', 'max', 'average', 'median'\n const mlType = item.type;\n if (\n mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median'\n // In case\n // data: [{\n // yAxis: 10\n // }]\n || (item.xAxis != null || item.yAxis != null)\n ) {\n\n let valueAxis;\n let value;\n\n if (item.yAxis != null || item.xAxis != null) {\n valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x');\n value = retrieve(item.yAxis, item.xAxis);\n }\n else {\n const axisInfo = markerHelper.getAxisInfo(item, data, coordSys, seriesModel);\n valueAxis = axisInfo.valueAxis;\n const valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);\n value = markerHelper.numCalculate(data, valueDataDim, mlType);\n }\n const valueIndex = valueAxis.dim === 'x' ? 0 : 1;\n const baseIndex = 1 - valueIndex;\n\n // Normized to 2d data with start and end point\n const mlFrom = clone(item) as MarkLine2DDataItemOption[number];\n const mlTo = {\n coord: []\n } as MarkLine2DDataItemOption[number];\n\n mlFrom.type = null;\n\n mlFrom.coord = [];\n mlFrom.coord[baseIndex] = -Infinity;\n mlTo.coord[baseIndex] = Infinity;\n\n const precision = mlModel.get('precision');\n if (precision >= 0 && typeof value === 'number') {\n value = +value.toFixed(Math.min(precision, 20));\n }\n\n mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;\n\n itemArray = [mlFrom, mlTo, { // Extra option for tooltip and label\n type: mlType,\n valueIndex: item.valueIndex,\n // Force to use the value of calculated value.\n value: value\n }];\n }\n else {\n // Invalid data\n if (__DEV__) {\n logError('Invalid markLine data.');\n }\n itemArray = [];\n }\n }\n else {\n itemArray = item;\n }\n\n const normalizedItem = [\n markerHelper.dataTransform(seriesModel, itemArray[0]),\n markerHelper.dataTransform(seriesModel, itemArray[1]),\n extend({}, itemArray[2])\n ];\n\n // Avoid line data type is extended by from(to) data type\n normalizedItem[2].type = normalizedItem[2].type || null;\n\n // Merge from option and to option into line option\n merge(normalizedItem[2], normalizedItem[0]);\n merge(normalizedItem[2], normalizedItem[1]);\n\n return normalizedItem;\n};\n\nfunction isInifinity(val: ScaleDataValue) {\n return !isNaN(val as number) && !isFinite(val as number);\n}\n\n// If a markLine has one dim\nfunction ifMarkLineHasOnlyDim(\n dimIndex: number,\n fromCoord: ScaleDataValue[],\n toCoord: ScaleDataValue[],\n coordSys: CoordinateSystem\n) {\n const otherDimIndex = 1 - dimIndex;\n const dimName = coordSys.dimensions[dimIndex];\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex])\n && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);\n}\n\nfunction markLineFilter(\n coordSys: CoordinateSystem,\n item: MarkLine2DDataItemOption\n) {\n if (coordSys.type === 'cartesian2d') {\n const fromCoord = item[0].coord;\n const toCoord = item[1].coord;\n // In case\n // {\n // markLine: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (\n fromCoord && toCoord\n && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys)\n || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))\n ) {\n return true;\n }\n }\n return markerHelper.dataFilter(coordSys, item[0])\n && markerHelper.dataFilter(coordSys, item[1]);\n}\n\nfunction updateSingleMarkerEndLayout(\n data: SeriesData,\n idx: number,\n isFrom: boolean,\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n const itemModel = data.getItemModel(idx);\n\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n data.getValues(data.dimensions, idx)\n );\n }\n else {\n const dims = coordSys.dimensions;\n const x = data.get(dims[0], idx);\n const y = data.get(dims[1], idx);\n point = coordSys.dataToPoint([x, y]);\n }\n // Expand line to the edge of grid if value on one axis is Inifnity\n // In case\n // markLine: {\n // data: [{\n // yAxis: 2\n // // or\n // type: 'average'\n // }]\n // }\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n const xAxis = coordSys.getAxis('x') as Axis2D;\n const yAxis = coordSys.getAxis('y') as Axis2D;\n const dims = coordSys.dimensions;\n if (isInifinity(data.get(dims[0], idx))) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);\n }\n else if (isInifinity(data.get(dims[1], idx))) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);\n }\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n data.setItemLayout(idx, point);\n}\n\nclass MarkLineView extends MarkerView {\n\n static type = 'markLine';\n type = MarkLineView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markLineModel: MarkLineModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const mlModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine') as MarkLineModel;\n if (mlModel) {\n const mlData = mlModel.getData();\n const fromData = inner(mlModel).from;\n const toData = inner(mlModel).to;\n // Update visual and layout of from symbol and to symbol\n fromData.each(function (idx) {\n updateSingleMarkerEndLayout(fromData, idx, true, seriesModel, api);\n updateSingleMarkerEndLayout(toData, idx, false, seriesModel, api);\n });\n // Update layout of line\n mlData.each(function (idx) {\n mlData.setItemLayout(idx, [\n fromData.getItemLayout(idx),\n toData.getItemLayout(idx)\n ]);\n });\n\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n mlModel: MarkLineModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const lineDrawMap = this.markerGroupMap;\n const lineDraw = lineDrawMap.get(seriesId)\n || lineDrawMap.set(seriesId, new LineDraw());\n this.group.add(lineDraw.group);\n\n const mlData = createList(coordSys, seriesModel, mlModel);\n\n const fromData = mlData.from;\n const toData = mlData.to;\n const lineData = mlData.line as SeriesData;\n\n inner(mlModel).from = fromData;\n inner(mlModel).to = toData;\n // Line data for tooltip and formatter\n mlModel.setData(lineData);\n\n // TODO\n // Functionally, `symbolSize` & `symbolOffset` can also be 2D array now.\n // But the related logic and type definition are not finished yet.\n // Finish it if required\n let symbolType = mlModel.get('symbol');\n let symbolSize = mlModel.get('symbolSize');\n let symbolRotate = mlModel.get('symbolRotate');\n let symbolOffset = mlModel.get('symbolOffset');\n // TODO: support callback function like markPoint\n if (!isArray(symbolType)) {\n symbolType = [symbolType, symbolType];\n }\n if (!isArray(symbolSize)) {\n symbolSize = [symbolSize, symbolSize];\n }\n if (!isArray(symbolRotate)) {\n symbolRotate = [symbolRotate, symbolRotate];\n }\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n // Update visual and layout of from symbol and to symbol\n mlData.from.each(function (idx) {\n updateDataVisualAndLayout(fromData, idx, true);\n updateDataVisualAndLayout(toData, idx, false);\n });\n\n // Update visual and layout of line\n lineData.each(function (idx) {\n const lineStyle = lineData.getItemModel(idx)\n .getModel('lineStyle').getLineStyle();\n // lineData.setItemVisual(idx, {\n // color: lineColor || fromData.getItemVisual(idx, 'color')\n // });\n lineData.setItemLayout(idx, [\n fromData.getItemLayout(idx),\n toData.getItemLayout(idx)\n ]);\n\n if (lineStyle.stroke == null) {\n lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill;\n }\n\n lineData.setItemVisual(idx, {\n fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'),\n fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'),\n fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'),\n fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize') as number,\n fromSymbol: fromData.getItemVisual(idx, 'symbol'),\n toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'),\n toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'),\n toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'),\n toSymbolSize: toData.getItemVisual(idx, 'symbolSize') as number,\n toSymbol: toData.getItemVisual(idx, 'symbol'),\n style: lineStyle\n });\n });\n\n lineDraw.updateData(lineData);\n\n // Set host model for tooltip\n // FIXME\n mlData.line.eachItemGraphicEl(function (el, idx) {\n el.traverse(function (child) {\n getECData(child).dataModel = mlModel;\n });\n });\n\n function updateDataVisualAndLayout(\n data: SeriesData,\n idx: number,\n isFrom: boolean\n ) {\n const itemModel = data.getItemModel(idx);\n\n updateSingleMarkerEndLayout(\n data, idx, isFrom, seriesModel, api\n );\n\n const style = itemModel.getModel('itemStyle').getItemStyle();\n if (style.fill == null) {\n style.fill = getVisualFromData(seriesData, 'color') as ColorString;\n }\n\n data.setItemVisual(idx, {\n symbolKeepAspect: itemModel.get('symbolKeepAspect'),\n // `0` should be considered as a valid value, so use `retrieve2` instead of `||`\n symbolOffset: retrieve2(\n itemModel.get('symbolOffset', true),\n (symbolOffset as (string | number)[])[isFrom ? 0 : 1]\n ),\n symbolRotate: retrieve2(\n itemModel.get('symbolRotate', true),\n (symbolRotate as number[])[isFrom ? 0 : 1]\n ),\n // TODO: when 2d array is supported, it should ignore parent\n symbolSize: retrieve2(\n itemModel.get('symbolSize'),\n (symbolSize as number[])[isFrom ? 0 : 1]\n ),\n symbol: retrieve2(\n itemModel.get('symbol', true),\n (symbolType as string[])[isFrom ? 0 : 1]\n ),\n style\n });\n }\n\n this.markKeep(lineDraw);\n\n lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createList(coordSys: CoordinateSystem, seriesModel: SeriesModel, mlModel: MarkLineModel) {\n\n let coordDimsInfos;\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const info = seriesModel.getData().getDimensionInfo(\n seriesModel.getData().mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n const fromData = new SeriesData(coordDimsInfos, mlModel);\n const toData = new SeriesData(coordDimsInfos, mlModel);\n // No dimensions\n const lineData = new SeriesData([], mlModel);\n\n let optData = map(mlModel.get('data'), curry(\n markLineTransform, seriesModel, coordSys, mlModel\n ));\n if (coordSys) {\n optData = filter(\n optData, curry(markLineFilter, coordSys)\n );\n }\n const dimValueGetter = coordSys ? markerHelper.dimValueGetter : function (item: MarkLineMergedItemOption) {\n return item.value;\n };\n fromData.initData(\n map(optData, function (item) {\n return item[0];\n }),\n null,\n dimValueGetter\n );\n toData.initData(\n map(optData, function (item) {\n return item[1];\n }),\n null,\n dimValueGetter\n );\n lineData.initData(\n map(optData, function (item) {\n return item[2];\n })\n );\n lineData.hasItemOption = true;\n\n return {\n from: fromData,\n to: toData,\n line: lineData\n };\n}\n\nexport default MarkLineView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkLineModel from './MarkLineModel';\nimport MarkLineView from './MarkLineView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkLineModel);\n registers.registerComponentView(MarkLineView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markLine')) {\n // Make sure markLine component is enabled\n opt.markLine = opt.markLine || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport MarkerModel, { MarkerOption, MarkerStatisticType, MarkerPositionOption } from './MarkerModel';\nimport { SeriesLabelOption, ItemStyleOption, StatesOptionMixin } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\n\ninterface MarkAreaStateOption {\n itemStyle?: ItemStyleOption\n label?: SeriesLabelOption\n}\n\ninterface MarkAreaDataItemOptionBase extends MarkAreaStateOption, StatesOptionMixin {\n name?: string\n}\n\n// 1D markArea for horizontal or vertical. Similar to markLine\nexport interface MarkArea1DDataItemOption extends MarkAreaDataItemOptionBase {\n\n xAxis?: number\n yAxis?: number\n\n type?: MarkerStatisticType\n\n valueIndex?: number\n valueDim?: string\n}\n\n// 2D markArea on any direction. Similar to markLine\ninterface MarkArea2DDataItemDimOption extends MarkAreaDataItemOptionBase, MarkerPositionOption {\n}\n\n\nexport type MarkArea2DDataItemOption = [\n // Start point\n MarkArea2DDataItemDimOption,\n // End point\n MarkArea2DDataItemDimOption\n];\n\nexport interface MarkAreaOption extends MarkerOption, MarkAreaStateOption, StatesOptionMixin {\n mainType?: 'markArea'\n\n precision?: number\n\n data?: (MarkArea1DDataItemOption | MarkArea2DDataItemOption)[]\n}\n\nclass MarkAreaModel extends MarkerModel {\n\n static type = 'markArea';\n type = MarkAreaModel.type;\n\n createMarkerModelFromSeries(\n markerOpt: MarkAreaOption,\n masterMarkerModel: MarkAreaModel,\n ecModel: GlobalModel\n ) {\n return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel);\n }\n\n static defaultOption: MarkAreaOption = {\n zlevel: 0,\n // PENDING\n z: 1,\n tooltip: {\n trigger: 'item'\n },\n // markArea should fixed on the coordinate system\n animation: false,\n label: {\n show: true,\n position: 'top'\n },\n itemStyle: {\n // color and borderColor default to use color from series\n // color: 'auto'\n // borderColor: 'auto'\n borderWidth: 0\n },\n\n emphasis: {\n label: {\n show: true,\n position: 'top'\n }\n }\n };\n}\n\nexport default MarkAreaModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// TODO Optimize on polar\n\nimport * as colorUtil from 'zrender/src/tool/color';\nimport SeriesData from '../../data/SeriesData';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { retrieve, mergeAll, map, curry, filter, HashMap, extend } from 'zrender/src/core/util';\nimport { ScaleDataValue, ParsedValue, ZRColor } from '../../util/types';\nimport { CoordinateSystem, isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkAreaModel, { MarkArea2DDataItemOption } from './MarkAreaModel';\nimport SeriesModel from '../../model/Series';\nimport Cartesian2D from '../../coord/cartesian/Cartesian2D';\nimport SeriesDimensionDefine from '../../data/SeriesDimensionDefine';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport Axis2D from '../../coord/cartesian/Axis2D';\n\ninterface MarkAreaDrawGroup {\n group: graphic.Group\n}\n\nconst inner = makeInner<{\n data: SeriesData\n}, MarkAreaDrawGroup>();\n\n// Merge two ends option into one.\ntype MarkAreaMergedItemOption = Omit & {\n coord: MarkArea2DDataItemOption[number]['coord'][]\n x0: number | string\n y0: number | string\n x1: number | string\n y1: number | string\n};\n\nconst markAreaTransform = function (\n seriesModel: SeriesModel,\n coordSys: CoordinateSystem,\n maModel: MarkAreaModel,\n item: MarkArea2DDataItemOption\n): MarkAreaMergedItemOption {\n const lt = markerHelper.dataTransform(seriesModel, item[0]);\n const rb = markerHelper.dataTransform(seriesModel, item[1]);\n\n // FIXME make sure lt is less than rb\n const ltCoord = lt.coord;\n const rbCoord = rb.coord;\n ltCoord[0] = retrieve(ltCoord[0], -Infinity);\n ltCoord[1] = retrieve(ltCoord[1], -Infinity);\n\n rbCoord[0] = retrieve(rbCoord[0], Infinity);\n rbCoord[1] = retrieve(rbCoord[1], Infinity);\n\n // Merge option into one\n const result: MarkAreaMergedItemOption = mergeAll([{}, lt, rb]);\n\n result.coord = [\n lt.coord, rb.coord\n ];\n result.x0 = lt.x;\n result.y0 = lt.y;\n result.x1 = rb.x;\n result.y1 = rb.y;\n return result;\n};\n\nfunction isInifinity(val: ScaleDataValue) {\n return !isNaN(val as number) && !isFinite(val as number);\n}\n\n// If a markArea has one dim\nfunction ifMarkAreaHasOnlyDim(\n dimIndex: number,\n fromCoord: ScaleDataValue[],\n toCoord: ScaleDataValue[],\n coordSys: CoordinateSystem\n) {\n const otherDimIndex = 1 - dimIndex;\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]);\n}\n\nfunction markAreaFilter(coordSys: CoordinateSystem, item: MarkAreaMergedItemOption) {\n const fromCoord = item.coord[0];\n const toCoord = item.coord[1];\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // In case\n // {\n // markArea: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (\n fromCoord && toCoord\n && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys)\n || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))\n ) {\n return true;\n }\n }\n return markerHelper.dataFilter(coordSys, {\n coord: fromCoord,\n x: item.x0,\n y: item.y0\n })\n || markerHelper.dataFilter(coordSys, {\n coord: toCoord,\n x: item.x1,\n y: item.y1\n });\n}\n\n// dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']\nfunction getSingleMarkerEndPoint(\n data: SeriesData,\n idx: number,\n dims: typeof dimPermutations[number],\n seriesModel: SeriesModel,\n api: ExtensionAPI\n) {\n const coordSys = seriesModel.coordinateSystem;\n const itemModel = data.getItemModel(idx);\n\n let point;\n const xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n const yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n data.getValues(dims, idx)\n );\n }\n else {\n const x = data.get(dims[0], idx) as number;\n const y = data.get(dims[1], idx) as number;\n const pt = [x, y];\n coordSys.clampData && coordSys.clampData(pt, pt);\n point = coordSys.dataToPoint(pt, true);\n }\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n const xAxis = coordSys.getAxis('x') as Axis2D;\n const yAxis = coordSys.getAxis('y') as Axis2D;\n const x = data.get(dims[0], idx) as number;\n const y = data.get(dims[1], idx) as number;\n if (isInifinity(x)) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n }\n else if (isInifinity(y)) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n }\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n return point;\n}\n\nconst dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']] as const;\n\nclass MarkAreaView extends MarkerView {\n\n static type = 'markArea';\n type = MarkAreaView.type;\n\n markerGroupMap: HashMap;\n\n updateTransform(markAreaModel: MarkAreaModel, ecModel: GlobalModel, api: ExtensionAPI) {\n ecModel.eachSeries(function (seriesModel) {\n const maModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markArea') as MarkAreaModel;\n if (maModel) {\n const areaData = maModel.getData();\n areaData.each(function (idx) {\n const points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n // Layout\n areaData.setItemLayout(idx, points);\n const el = areaData.getItemGraphicEl(idx) as graphic.Polygon;\n el.setShape('points', points);\n });\n }\n }, this);\n }\n\n renderSeries(\n seriesModel: SeriesModel,\n maModel: MarkAreaModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const coordSys = seriesModel.coordinateSystem;\n const seriesId = seriesModel.id;\n const seriesData = seriesModel.getData();\n\n const areaGroupMap = this.markerGroupMap;\n const polygonGroup = areaGroupMap.get(seriesId)\n || areaGroupMap.set(seriesId, {group: new graphic.Group()});\n\n this.group.add(polygonGroup.group);\n this.markKeep(polygonGroup);\n\n const areaData = createList(coordSys, seriesModel, maModel);\n\n // Line data for tooltip and formatter\n maModel.setData(areaData);\n\n // Update visual and layout of line\n areaData.each(function (idx) {\n // Layout\n const points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n const xAxisScale = coordSys.getAxis('x').scale;\n const yAxisScale = coordSys.getAxis('y').scale;\n const xAxisExtent = xAxisScale.getExtent();\n const yAxisExtent = yAxisScale.getExtent();\n const xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))];\n const yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))];\n numberUtil.asc(xPointExtent);\n numberUtil.asc(yPointExtent);\n const overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0]\n || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]);\n // If none of the area is inside coordSys, allClipped is set to be true\n // in layout so that label will not be displayed. See #12591\n const allClipped = !overlapped;\n areaData.setItemLayout(idx, {\n points: points,\n allClipped: allClipped\n });\n\n\n const style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle();\n const color = getVisualFromData(seriesData, 'color') as ZRColor;\n if (!style.fill) {\n style.fill = color;\n if (typeof style.fill === 'string') {\n style.fill = colorUtil.modifyAlpha(style.fill, 0.4);\n }\n }\n if (!style.stroke) {\n style.stroke = color;\n }\n // Visual\n areaData.setItemVisual(idx, 'style', style);\n });\n\n\n areaData.diff(inner(polygonGroup).data)\n .add(function (idx) {\n const layout = areaData.getItemLayout(idx);\n if (!layout.allClipped) {\n const polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n areaData.setItemGraphicEl(idx, polygon);\n polygonGroup.group.add(polygon);\n }\n })\n .update(function (newIdx, oldIdx) {\n let polygon = inner(polygonGroup).data.getItemGraphicEl(oldIdx) as graphic.Polygon;\n const layout = areaData.getItemLayout(newIdx);\n if (!layout.allClipped) {\n if (polygon) {\n graphic.updateProps(polygon, {\n shape: {\n points: layout.points\n }\n }, maModel, newIdx);\n }\n else {\n polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n }\n areaData.setItemGraphicEl(newIdx, polygon);\n polygonGroup.group.add(polygon);\n }\n else if (polygon) {\n polygonGroup.group.remove(polygon);\n }\n })\n .remove(function (idx) {\n const polygon = inner(polygonGroup).data.getItemGraphicEl(idx);\n polygonGroup.group.remove(polygon);\n })\n .execute();\n\n areaData.eachItemGraphicEl(function (polygon: graphic.Polygon, idx) {\n const itemModel = areaData.getItemModel(idx);\n const style = areaData.getItemVisual(idx, 'style');\n polygon.useStyle(areaData.getItemVisual(idx, 'style'));\n\n setLabelStyle(\n polygon, getLabelStatesModels(itemModel),\n {\n labelFetcher: maModel,\n labelDataIndex: idx,\n defaultText: areaData.getName(idx) || '',\n inheritColor: typeof style.fill === 'string'\n ? colorUtil.modifyAlpha(style.fill, 1) : '#000'\n }\n );\n\n setStatesStylesFromModel(polygon, itemModel);\n\n enableHoverEmphasis(polygon);\n\n getECData(polygon).dataModel = maModel;\n });\n\n inner(polygonGroup).data = areaData;\n\n polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');\n }\n}\n\nfunction createList(\n coordSys: CoordinateSystem,\n seriesModel: SeriesModel,\n maModel: MarkAreaModel\n) {\n\n let coordDimsInfos: SeriesDimensionDefine[];\n let areaData: SeriesData;\n const dims = ['x0', 'y0', 'x1', 'y1'];\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n const data = seriesModel.getData();\n const info = data.getDimensionInfo(\n data.mapDimension(coordDim)\n ) || {};\n // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n return extend(extend({}, info), {\n name: coordDim,\n // DON'T use ordinalMeta to parse and collect ordinal.\n ordinalMeta: null\n });\n });\n areaData = new SeriesData(map(dims, function (dim, idx) {\n return {\n name: dim,\n type: coordDimsInfos[idx % 2].type\n };\n }), maModel);\n }\n else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n areaData = new SeriesData(coordDimsInfos, maModel);\n }\n\n let optData = map(maModel.get('data'), curry(\n markAreaTransform, seriesModel, coordSys, maModel\n ));\n if (coordSys) {\n optData = filter(\n optData, curry(markAreaFilter, coordSys)\n );\n }\n\n const dimValueGetter = coordSys ? function (\n item: MarkAreaMergedItemOption,\n dimName: string,\n dataIndex: number,\n dimIndex: number\n ) {\n // TODO should convert to ParsedValue?\n return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2] as ParsedValue;\n } : function (item: MarkAreaMergedItemOption) {\n return item.value;\n };\n areaData.initData(optData, null, dimValueGetter);\n areaData.hasItemOption = true;\n return areaData;\n}\n\nexport default MarkAreaView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkAreaModel from './MarkAreaModel';\nimport MarkAreaView from './MarkAreaView';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(MarkAreaModel);\n registers.registerComponentView(MarkAreaView);\n\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markArea')) {\n // Make sure markArea component is enabled\n opt.markArea = opt.markArea || {};\n }\n });\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport Model from '../../model/Model';\nimport {isNameSpecified} from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin,\n ColorString,\n LabelOption,\n LayoutOrient,\n CommonTooltipOption,\n ItemStyleOption,\n LineStyleOption\n} from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport GlobalModel from '../../model/Global';\nimport { ItemStyleProps } from '../../model/mixin/itemStyle';\nimport { LineStyleProps } from './../../model/mixin/lineStyle';\nimport {PathStyleProps} from 'zrender/src/graphic/Path';\n\ntype LegendDefaultSelectorOptionsProps = {\n type: string;\n title: string;\n};\nconst getDefaultSelectorOptions = function (ecModel: GlobalModel, type: string): LegendDefaultSelectorOptionsProps {\n if (type === 'all') {\n return {\n type: 'all',\n title: ecModel.getLocaleModel().get(['legend', 'selector', 'all'])\n };\n }\n else if (type === 'inverse') {\n return {\n type: 'inverse',\n title: ecModel.getLocaleModel().get(['legend', 'selector', 'inverse'])\n };\n }\n};\n\ntype SelectorType = 'all' | 'inverse';\nexport interface LegendSelectorButtonOption {\n type?: SelectorType\n title?: string\n}\n\n/**\n * T: the type to be extended\n * ET: extended type for keys of T\n * ST: special type for T to be extended\n */\ntype ExtendPropertyType = {\n [key in keyof T]: key extends keyof ST ? T[key] | ET | ST[key] : T[key] | ET\n};\n\nexport interface LegendItemStyleOption extends ExtendPropertyType {}\n\nexport interface LegendLineStyleOption extends ExtendPropertyType {\n inactiveColor?: ColorString\n inactiveWidth?: number\n}\n\nexport interface LegendStyleOption {\n /**\n * Icon of the legend items.\n * @default 'roundRect'\n */\n icon?: string\n\n /**\n * Color when legend item is not selected\n */\n inactiveColor?: ColorString\n /**\n * Border color when legend item is not selected\n */\n inactiveBorderColor?: ColorString\n /**\n * Border color when legend item is not selected\n */\n inactiveBorderWidth?: number | 'auto'\n\n /**\n * Legend label formatter\n */\n formatter?: string | ((name: string) => string)\n\n itemStyle?: LegendItemStyleOption\n\n lineStyle?: LegendLineStyleOption\n\n textStyle?: LabelOption\n\n symbolRotate?: number | 'inherit'\n}\n\ninterface DataItem extends LegendStyleOption {\n name?: string\n icon?: string\n textStyle?: LabelOption\n\n // TODO: TYPE tooltip\n tooltip?: unknown\n}\n\nexport interface LegendTooltipFormatterParams {\n componentType: 'legend'\n legendIndex: number\n name: string\n $vars: ['name']\n}\n\nexport interface LegendIconParams {\n itemWidth: number,\n itemHeight: number,\n /**\n * symbolType is from legend.icon, legend.data.icon, or series visual\n */\n icon: string,\n iconRotate: number | 'inherit',\n itemStyle: PathStyleProps,\n lineStyle: LineStyleProps\n}\n\nexport interface LegendSymbolStyleOption {\n itemStyle?: ItemStyleProps,\n lineStyle?: LineStyleProps\n}\n\nexport interface LegendOption extends ComponentOption, LegendStyleOption,\n BoxLayoutOptionMixin, BorderOptionMixin\n{\n\n mainType?: 'legend'\n\n show?: boolean\n\n orient?: LayoutOrient\n\n align?: 'auto' | 'left' | 'right'\n\n backgroundColor?: ColorString\n /**\n * Border radius of background rect\n * @default 0\n */\n borderRadius?: number | number[]\n\n /**\n * Padding between legend item and border.\n * Support to be a single number or an array.\n * @default 5\n */\n padding?: number | number[]\n /**\n * Gap between each legend item.\n * @default 10\n */\n itemGap?: number\n /**\n * Width of legend symbol\n */\n itemWidth?: number\n /**\n * Height of legend symbol\n */\n itemHeight?: number\n\n selectedMode?: boolean | 'single' | 'multiple'\n /**\n * selected map of each item. Default to be selected if item is not in the map\n */\n selected?: Dictionary\n\n /**\n * Buttons for all select or inverse select.\n * @example\n * selector: [{type: 'all or inverse', title: xxx}]\n * selector: true\n * selector: ['all', 'inverse']\n */\n selector?: (LegendSelectorButtonOption | SelectorType)[] | boolean\n\n selectorLabel?: LabelOption\n\n emphasis?: {\n selectorLabel?: LabelOption\n }\n\n /**\n * Position of selector buttons.\n */\n selectorPosition?: 'auto' | 'start' | 'end'\n /**\n * Gap between each selector button\n */\n selectorItemGap?: number\n /**\n * Gap between selector buttons group and legend main items.\n */\n selectorButtonGap?: number\n\n data?: (string | DataItem)[]\n\n /**\n * Tooltip option\n */\n tooltip?: CommonTooltipOption\n\n}\n\nclass LegendModel extends ComponentModel {\n static type = 'legend.plain';\n type = LegendModel.type;\n\n static readonly dependencies = ['series'];\n\n readonly layoutMode = {\n type: 'box',\n // legend.width/height are maxWidth/maxHeight actually,\n // whereas realy width/height is calculated by its content.\n // (Setting {left: 10, right: 10} does not make sense).\n // So consider the case:\n // `setOption({legend: {left: 10});`\n // then `setOption({legend: {right: 10});`\n // The previous `left` should be cleared by setting `ignoreSize`.\n ignoreSize: true\n } as const;\n\n\n private _data: Model[];\n private _availableNames: string[];\n\n init(option: Ops, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n\n option.selected = option.selected || {};\n this._updateSelector(option);\n }\n\n mergeOption(option: Ops, ecModel: GlobalModel) {\n super.mergeOption(option, ecModel);\n this._updateSelector(option);\n }\n\n _updateSelector(option: Ops) {\n let selector = option.selector;\n const {ecModel} = this;\n if (selector === true) {\n selector = option.selector = ['all', 'inverse'];\n }\n if (zrUtil.isArray(selector)) {\n zrUtil.each(selector, function (item, index) {\n zrUtil.isString(item) && (item = {type: item});\n (selector as LegendSelectorButtonOption[])[index] = zrUtil.merge(\n item, getDefaultSelectorOptions(ecModel, item.type)\n );\n });\n }\n }\n\n optionUpdated() {\n this._updateData(this.ecModel);\n\n const legendData = this._data;\n\n // If selectedMode is single, try to select one\n if (legendData[0] && this.get('selectedMode') === 'single') {\n let hasSelected = false;\n // If has any selected in option.selected\n for (let i = 0; i < legendData.length; i++) {\n const name = legendData[i].get('name');\n if (this.isSelected(name)) {\n // Force to unselect others\n this.select(name);\n hasSelected = true;\n break;\n }\n }\n // Try select the first if selectedMode is single\n !hasSelected && this.select(legendData[0].get('name'));\n }\n }\n\n _updateData(ecModel: GlobalModel) {\n let potentialData: string[] = [];\n let availableNames: string[] = [];\n\n ecModel.eachRawSeries(function (seriesModel) {\n const seriesName = seriesModel.name;\n availableNames.push(seriesName);\n let isPotential;\n\n if (seriesModel.legendVisualProvider) {\n const provider = seriesModel.legendVisualProvider;\n const names = provider.getAllNames();\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n availableNames = availableNames.concat(names);\n }\n\n if (names.length) {\n potentialData = potentialData.concat(names);\n }\n else {\n isPotential = true;\n }\n }\n else {\n isPotential = true;\n }\n\n if (isPotential && isNameSpecified(seriesModel)) {\n potentialData.push(seriesModel.name);\n }\n });\n\n /**\n * @type {Array.}\n * @private\n */\n this._availableNames = availableNames;\n\n // If legend.data not specified in option, use availableNames as data,\n // which is convinient for user preparing option.\n const rawData = this.get('data') || potentialData;\n\n const legendData = zrUtil.map(rawData, function (dataItem) {\n // Can be string or number\n if (typeof dataItem === 'string' || typeof dataItem === 'number') {\n dataItem = {\n name: dataItem\n };\n }\n return new Model(dataItem, this, this.ecModel);\n }, this);\n\n /**\n * @type {Array.}\n * @private\n */\n this._data = legendData;\n }\n\n getData() {\n return this._data;\n }\n\n select(name: string) {\n const selected = this.option.selected;\n const selectedMode = this.get('selectedMode');\n if (selectedMode === 'single') {\n const data = this._data;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name')] = false;\n });\n }\n selected[name] = true;\n }\n\n unSelect(name: string) {\n if (this.get('selectedMode') !== 'single') {\n this.option.selected[name] = false;\n }\n }\n\n toggleSelected(name: string) {\n const selected = this.option.selected;\n // Default is true\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n this[selected[name] ? 'unSelect' : 'select'](name);\n }\n\n allSelect() {\n const data = this._data;\n const selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name', true)] = true;\n });\n }\n\n inverseSelect() {\n const data = this._data;\n const selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n const name = dataItem.get('name', true);\n // Initially, default value is true\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n selected[name] = !selected[name];\n });\n }\n\n isSelected(name: string) {\n const selected = this.option.selected;\n return !(selected.hasOwnProperty(name) && !selected[name])\n && zrUtil.indexOf(this._availableNames, name) >= 0;\n }\n\n getOrient(): {index: 0, name: 'horizontal'}\n getOrient(): {index: 1, name: 'vertical'}\n getOrient() {\n return this.get('orient') === 'vertical'\n ? {index: 1, name: 'vertical'}\n : {index: 0, name: 'horizontal'};\n }\n\n static defaultOption: LegendOption = {\n zlevel: 0,\n z: 4,\n show: true,\n\n orient: 'horizontal',\n\n left: 'center',\n // right: 'center',\n top: 0,\n // bottom: null,\n\n align: 'auto',\n\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n itemWidth: 25,\n itemHeight: 14,\n symbolRotate: 'inherit',\n\n inactiveColor: '#ccc',\n inactiveBorderColor: '#ccc',\n inactiveBorderWidth: 'auto',\n\n itemStyle: {\n color: 'inherit',\n opacity: 'inherit',\n decal: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n borderColor: 'inherit',\n borderWidth: 'auto',\n borderCap: 'inherit',\n borderJoin: 'inherit',\n borderDashOffset: 'inherit',\n borderMiterLimit: 'inherit'\n },\n\n lineStyle: {\n width: 'auto',\n color: 'inherit',\n inactiveColor: '#ccc',\n inactiveWidth: 2,\n opacity: 'inherit',\n type: 'inherit',\n cap: 'inherit',\n join: 'inherit',\n dashOffset: 'inherit',\n miterLimit: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0\n },\n\n textStyle: {\n color: '#333'\n },\n selectedMode: true,\n\n selector: false,\n\n selectorLabel: {\n show: true,\n borderRadius: 10,\n padding: [3, 5, 3, 5],\n fontSize: 12,\n fontFamily: ' sans-serif',\n color: '#666',\n borderWidth: 1,\n borderColor: '#666'\n },\n\n emphasis: {\n selectorLabel: {\n show: true,\n color: '#eee',\n backgroundColor: '#666'\n }\n },\n\n selectorPosition: 'auto',\n\n selectorItemGap: 7,\n\n selectorButtonGap: 10,\n\n tooltip: {\n show: false\n }\n };\n}\n\nexport default LegendModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { DisplayableState } from 'zrender/src/graphic/Displayable';\nimport { PathStyleProps } from 'zrender/src/graphic/Path';\nimport { parse, stringify } from 'zrender/src/tool/color';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport {setLabelStyle, createTextStyle} from '../../label/labelStyle';\nimport {makeBackground} from '../helper/listComponent';\nimport * as layoutUtil from '../../util/layout';\nimport ComponentView from '../../view/Component';\nimport LegendModel, {\n LegendItemStyleOption,\n LegendLineStyleOption,\n LegendOption,\n LegendSelectorButtonOption,\n LegendIconParams,\n LegendTooltipFormatterParams\n} from './LegendModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n ZRTextAlign,\n ZRRectLike,\n CommonTooltipOption,\n ColorString,\n SeriesOption,\n SymbolOptionMixin\n} from '../../util/types';\nimport Model from '../../model/Model';\nimport {LineStyleProps, LINE_STYLE_KEY_MAP} from '../../model/mixin/lineStyle';\nimport {ITEM_STYLE_KEY_MAP} from '../../model/mixin/itemStyle';\nimport {createSymbol, ECSymbol} from '../../util/symbol';\nimport SeriesModel from '../../model/Series';\n\nconst curry = zrUtil.curry;\nconst each = zrUtil.each;\nconst Group = graphic.Group;\n\nclass LegendView extends ComponentView {\n static type = 'legend.plain';\n type = LegendView.type;\n\n newlineDisabled = false;\n\n private _contentGroup: graphic.Group;\n\n private _backgroundEl: graphic.Rect;\n\n private _selectorGroup: graphic.Group;\n\n /**\n * If first rendering, `contentGroup.position` is [0, 0], which\n * does not make sense and may cause unexepcted animation if adopted.\n */\n private _isFirstRender: boolean;\n\n init() {\n\n this.group.add(this._contentGroup = new Group());\n this.group.add(this._selectorGroup = new Group());\n\n this._isFirstRender = true;\n }\n\n /**\n * @protected\n */\n getContentGroup() {\n return this._contentGroup;\n }\n\n /**\n * @protected\n */\n getSelectorGroup() {\n return this._selectorGroup;\n }\n\n /**\n * @override\n */\n render(\n legendModel: LegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI\n ) {\n const isFirstRender = this._isFirstRender;\n this._isFirstRender = false;\n\n this.resetInner();\n\n if (!legendModel.get('show', true)) {\n return;\n }\n\n let itemAlign = legendModel.get('align');\n const orient = legendModel.get('orient');\n if (!itemAlign || itemAlign === 'auto') {\n itemAlign = (\n legendModel.get('left') === 'right'\n && orient === 'vertical'\n ) ? 'right' : 'left';\n }\n\n // selector has been normalized to an array in model\n const selector = legendModel.get('selector', true) as LegendSelectorButtonOption[];\n let selectorPosition = legendModel.get('selectorPosition', true);\n if (selector && (!selectorPosition || selectorPosition === 'auto')) {\n selectorPosition = orient === 'horizontal' ? 'end' : 'start';\n }\n\n this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n // Perform layout.\n const positionInfo = legendModel.getBoxLayoutParams();\n const viewportSize = {width: api.getWidth(), height: api.getHeight()};\n const padding = legendModel.get('padding');\n\n const maxSize = layoutUtil.getLayoutRect(positionInfo, viewportSize, padding);\n\n const mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition);\n\n // Place mainGroup, based on the calculated `mainRect`.\n const layoutRect = layoutUtil.getLayoutRect(\n zrUtil.defaults({\n width: mainRect.width,\n height: mainRect.height\n }, positionInfo),\n viewportSize,\n padding\n );\n this.group.x = layoutRect.x - mainRect.x;\n this.group.y = layoutRect.y - mainRect.y;\n this.group.markRedraw();\n\n // Render background after group is layout.\n this.group.add(\n this._backgroundEl = makeBackground(mainRect, legendModel)\n );\n }\n\n protected resetInner() {\n this.getContentGroup().removeAll();\n this._backgroundEl && this.group.remove(this._backgroundEl);\n this.getSelectorGroup().removeAll();\n }\n\n protected renderInner(\n itemAlign: LegendOption['align'],\n legendModel: LegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n selector: LegendSelectorButtonOption[],\n orient: LegendOption['orient'],\n selectorPosition: LegendOption['selectorPosition']\n ) {\n const contentGroup = this.getContentGroup();\n const legendDrawnMap = zrUtil.createHashMap();\n const selectMode = legendModel.get('selectedMode');\n\n const excludeSeriesId: string[] = [];\n ecModel.eachRawSeries(function (seriesModel) {\n !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);\n });\n\n each(legendModel.getData(), function (legendItemModel, dataIndex) {\n const name = legendItemModel.get('name');\n\n // Use empty string or \\n as a newline string\n if (!this.newlineDisabled && (name === '' || name === '\\n')) {\n const g = new Group();\n // @ts-ignore\n g.newline = true;\n contentGroup.add(g);\n return;\n }\n\n // Representitive series.\n const seriesModel = ecModel.getSeriesByName(name)[0] as\n SeriesModel;\n\n if (legendDrawnMap.get(name)) {\n // Have been drawed\n return;\n }\n\n // Legend to control series.\n if (seriesModel) {\n const data = seriesModel.getData();\n const lineVisualStyle = data.getVisual('legendLineStyle') || {};\n const legendIcon = data.getVisual('legendIcon');\n\n /**\n * `data.getVisual('style')` may be the color from the register\n * in series. For example, for line series,\n */\n const style = data.getVisual('style');\n\n const itemGroup = this._createItem(\n seriesModel, name, dataIndex,\n legendItemModel, legendModel, itemAlign,\n lineVisualStyle, style, legendIcon, selectMode\n );\n\n itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId))\n .on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId))\n .on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));\n\n legendDrawnMap.set(name, true);\n }\n else {\n // Legend to control data. In pie and funnel.\n ecModel.eachRawSeries(function (seriesModel) {\n\n // In case multiple series has same data name\n if (legendDrawnMap.get(name)) {\n return;\n }\n\n if (seriesModel.legendVisualProvider) {\n const provider = seriesModel.legendVisualProvider;\n if (!provider.containName(name)) {\n return;\n }\n\n const idx = provider.indexOfName(name);\n\n const style = provider.getItemVisual(idx, 'style') as PathStyleProps;\n const legendIcon = provider.getItemVisual(idx, 'legendIcon');\n\n const colorArr = parse(style.fill as ColorString);\n // Color may be set to transparent in visualMap when data is out of range.\n // Do not show nothing.\n if (colorArr && colorArr[3] === 0) {\n colorArr[3] = 0.2;\n // TODO color is set to 0, 0, 0, 0. Should show correct RGBA\n style.fill = stringify(colorArr, 'rgba');\n }\n\n const itemGroup = this._createItem(\n seriesModel, name, dataIndex,\n legendItemModel, legendModel, itemAlign,\n {}, style, legendIcon, selectMode\n );\n\n // FIXME: consider different series has items with the same name.\n itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId))\n // Should not specify the series name, consider legend controls\n // more than one pie series.\n .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId))\n .on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));\n\n legendDrawnMap.set(name, true);\n }\n\n }, this);\n }\n\n if (__DEV__) {\n if (!legendDrawnMap.get(name)) {\n console.warn(\n name + ' series not exists. Legend data should be same with series name or data name.'\n );\n }\n }\n }, this);\n\n if (selector) {\n this._createSelector(selector, legendModel, api, orient, selectorPosition);\n }\n }\n\n private _createSelector(\n selector: LegendSelectorButtonOption[],\n legendModel: LegendModel,\n api: ExtensionAPI,\n orient: LegendOption['orient'],\n selectorPosition: LegendOption['selectorPosition']\n ) {\n const selectorGroup = this.getSelectorGroup();\n\n each(selector, function createSelectorButton(selectorItem) {\n const type = selectorItem.type;\n\n const labelText = new graphic.Text({\n style: {\n x: 0,\n y: 0,\n align: 'center',\n verticalAlign: 'middle'\n },\n onclick() {\n api.dispatchAction({\n type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect'\n });\n }\n });\n\n selectorGroup.add(labelText);\n\n const labelModel = legendModel.getModel('selectorLabel');\n const emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);\n\n setLabelStyle(\n labelText, { normal: labelModel, emphasis: emphasisLabelModel },\n {\n defaultText: selectorItem.title\n }\n );\n enableHoverEmphasis(labelText);\n });\n }\n\n private _createItem(\n seriesModel: SeriesModel,\n name: string,\n dataIndex: number,\n legendItemModel: LegendModel['_data'][number],\n legendModel: LegendModel,\n itemAlign: LegendOption['align'],\n lineVisualStyle: LineStyleProps,\n itemVisualStyle: PathStyleProps,\n legendIcon: string,\n selectMode: LegendOption['selectedMode']\n ) {\n const drawType = seriesModel.visualDrawType;\n const itemWidth = legendModel.get('itemWidth');\n const itemHeight = legendModel.get('itemHeight');\n const isSelected = legendModel.isSelected(name);\n\n let iconRotate = legendItemModel.get('symbolRotate');\n\n const legendIconType = legendItemModel.get('icon');\n legendIcon = legendIconType || legendIcon || 'roundRect';\n\n const legendLineStyle = legendModel.getModel('lineStyle');\n const style = getLegendStyle(\n legendIcon,\n legendItemModel,\n legendLineStyle,\n lineVisualStyle,\n itemVisualStyle,\n drawType,\n isSelected\n );\n\n const itemGroup = new Group();\n\n const textStyleModel = legendItemModel.getModel('textStyle');\n\n if (typeof seriesModel.getLegendIcon === 'function'\n && (!legendIconType || legendIconType === 'inherit')\n ) {\n // Series has specific way to define legend icon\n itemGroup.add(seriesModel.getLegendIcon({\n itemWidth,\n itemHeight,\n icon: legendIcon,\n iconRotate: iconRotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n else {\n // Use default legend icon policy for most series\n const rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol')\n ? (iconRotate === 'inherit'\n ? seriesModel.getData().getVisual('symbolRotate')\n : iconRotate\n )\n : 0; // No rotation for no icon\n itemGroup.add(getDefaultLegendIcon({\n itemWidth,\n itemHeight,\n icon: legendIcon,\n iconRotate: rotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n\n const textX = itemAlign === 'left' ? itemWidth + 5 : -5;\n const textAlign = itemAlign as ZRTextAlign;\n\n const formatter = legendModel.get('formatter');\n let content = name;\n if (typeof formatter === 'string' && formatter) {\n content = formatter.replace('{name}', name != null ? name : '');\n }\n else if (typeof formatter === 'function') {\n content = formatter(name);\n }\n\n const inactiveColor = legendItemModel.get('inactiveColor');\n itemGroup.add(new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: content,\n x: textX,\n y: itemHeight / 2,\n fill: isSelected ? textStyleModel.getTextColor() : inactiveColor,\n align: textAlign,\n verticalAlign: 'middle'\n })\n }));\n\n // Add a invisible rect to increase the area of mouse hover\n const hitRect = new graphic.Rect({\n shape: itemGroup.getBoundingRect(),\n invisible: true\n });\n\n const tooltipModel =\n legendItemModel.getModel('tooltip') as Model>;\n if (tooltipModel.get('show')) {\n graphic.setTooltipConfig({\n el: hitRect,\n componentModel: legendModel,\n itemName: name,\n itemTooltipOption: tooltipModel.option\n });\n }\n itemGroup.add(hitRect);\n\n itemGroup.eachChild(function (child) {\n child.silent = true;\n });\n\n hitRect.silent = !selectMode;\n\n this.getContentGroup().add(itemGroup);\n\n enableHoverEmphasis(itemGroup);\n\n // @ts-ignore\n itemGroup.__legendDataIndex = dataIndex;\n\n return itemGroup;\n }\n\n protected layoutInner(\n legendModel: LegendModel,\n itemAlign: LegendOption['align'],\n maxSize: { width: number, height: number },\n isFirstRender: boolean,\n selector: LegendOption['selector'],\n selectorPosition: LegendOption['selectorPosition']\n ): ZRRectLike {\n const contentGroup = this.getContentGroup();\n const selectorGroup = this.getSelectorGroup();\n\n // Place items in contentGroup.\n layoutUtil.box(\n legendModel.get('orient'),\n contentGroup,\n legendModel.get('itemGap'),\n maxSize.width,\n maxSize.height\n );\n\n const contentRect = contentGroup.getBoundingRect();\n const contentPos = [-contentRect.x, -contentRect.y];\n\n selectorGroup.markRedraw();\n contentGroup.markRedraw();\n\n if (selector) {\n // Place buttons in selectorGroup\n layoutUtil.box(\n // Buttons in selectorGroup always layout horizontally\n 'horizontal',\n selectorGroup,\n legendModel.get('selectorItemGap', true)\n );\n\n const selectorRect = selectorGroup.getBoundingRect();\n const selectorPos = [-selectorRect.x, -selectorRect.y];\n const selectorButtonGap = legendModel.get('selectorButtonGap', true);\n\n const orientIdx = legendModel.getOrient().index;\n const wh: 'width' | 'height' = orientIdx === 0 ? 'width' : 'height';\n const hw: 'width' | 'height' = orientIdx === 0 ? 'height' : 'width';\n const yx: 'x' | 'y' = orientIdx === 0 ? 'y' : 'x';\n\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;\n }\n else {\n contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;\n }\n\n //Always align selector to content as 'middle'\n selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n\n const mainRect = {x: 0, y: 0} as ZRRectLike;\n mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);\n return mainRect;\n }\n else {\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n return this.group.getBoundingRect();\n }\n }\n\n /**\n * @protected\n */\n remove() {\n this.getContentGroup().removeAll();\n this._isFirstRender = true;\n }\n\n}\n\nfunction getLegendStyle(\n iconType: string,\n legendModel: LegendModel['_data'][number],\n legendLineStyle: Model,\n lineVisualStyle: LineStyleProps,\n itemVisualStyle: PathStyleProps,\n drawType: 'fill' | 'stroke',\n isSelected: boolean\n) {\n /**\n * Use series style if is inherit;\n * elsewise, use legend style\n */\n\n // itemStyle\n const legendItemModel = legendModel.getModel('itemStyle') as Model;\n const itemProperties = ITEM_STYLE_KEY_MAP.concat([\n ['decal']\n ]);\n const itemStyle: PathStyleProps = {};\n for (let i = 0; i < itemProperties.length; ++i) {\n const propName = itemProperties[i][\n itemProperties[i].length - 1\n ] as keyof LegendItemStyleOption;\n const visualName = itemProperties[i][0] as keyof PathStyleProps;\n const value = legendItemModel.getShallow(propName) as LegendItemStyleOption[keyof LegendItemStyleOption];\n if (value === 'inherit') {\n switch (visualName) {\n case 'fill':\n /**\n * Series with visualDrawType as 'stroke' should have\n * series stroke as legend fill\n */\n itemStyle.fill = itemVisualStyle[drawType];\n break;\n\n case 'stroke':\n /**\n * icon type with \"emptyXXX\" should use fill color\n * in visual style\n */\n itemStyle.stroke = itemVisualStyle[\n iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke'\n ];\n break;\n\n case 'opacity':\n /**\n * Use lineStyle.opacity if drawType is stroke\n */\n itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;\n break;\n\n default:\n (itemStyle as any)[visualName] = itemVisualStyle[visualName];\n }\n }\n else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n itemStyle.lineWidth = (itemVisualStyle.lineWidth > 0) ? 2 : 0;\n }\n else {\n (itemStyle as any)[visualName] = value;\n }\n }\n\n // lineStyle\n const legendLineModel = legendModel.getModel('lineStyle') as Model;\n const lineProperties = LINE_STYLE_KEY_MAP.concat([\n ['inactiveColor'],\n ['inactiveWidth']\n ]);\n const lineStyle: LineStyleProps = {};\n for (let i = 0; i < lineProperties.length; ++i) {\n const propName = lineProperties[i][1] as keyof LegendLineStyleOption;\n const visualName = lineProperties[i][0] as keyof LineStyleProps;\n const value = legendLineModel.getShallow(propName) as LegendLineStyleOption[keyof LegendLineStyleOption];\n if (value === 'inherit') {\n (lineStyle as any)[visualName] = lineVisualStyle[visualName];\n }\n else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n lineStyle.lineWidth = lineVisualStyle.lineWidth > 0 ? 2 : 0;\n }\n else {\n (lineStyle as any)[visualName] = value;\n }\n }\n\n // Fix auto color to real color\n (itemStyle.fill === 'auto') && (itemStyle.fill = itemVisualStyle.fill);\n (itemStyle.stroke === 'auto') && (itemStyle.stroke = itemVisualStyle.fill);\n (lineStyle.stroke === 'auto') && (lineStyle.stroke = itemVisualStyle.fill);\n\n if (!isSelected) {\n const borderWidth = legendModel.get('inactiveBorderWidth');\n /**\n * Since stroke is set to be inactiveBorderColor, it may occur that\n * there is no border in series but border in legend, so we need to\n * use border only when series has border if is set to be auto\n */\n const visualHasBorder = itemStyle[iconType.indexOf('empty') > -1 ? 'fill' : 'stroke'];\n itemStyle.lineWidth = borderWidth === 'auto'\n ? (itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0)\n : itemStyle.lineWidth;\n itemStyle.fill = legendModel.get('inactiveColor');\n itemStyle.stroke = legendModel.get('inactiveBorderColor');\n lineStyle.stroke = legendLineStyle.get('inactiveColor');\n lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');\n }\n return { itemStyle, lineStyle };\n}\n\nfunction getDefaultLegendIcon(opt: LegendIconParams): ECSymbol {\n const symboType = opt.icon || 'roundRect';\n const icon = createSymbol(\n symboType,\n 0,\n 0,\n opt.itemWidth,\n opt.itemHeight,\n opt.itemStyle.fill\n );\n\n icon.setStyle(opt.itemStyle);\n\n icon.rotation = (opt.iconRotate as number || 0) * Math.PI / 180;\n icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symboType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n}\n\nfunction dispatchSelectAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // downplay before unselect\n dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);\n api.dispatchAction({\n type: 'legendToggleSelect',\n name: seriesName != null ? seriesName : dataName\n });\n // highlight after select\n // TODO higlight immediately may cause animation loss.\n dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);\n}\n\nfunction isUseHoverLayer(api: ExtensionAPI) {\n const list = api.getZr().storage.getDisplayList();\n let emphasisState: DisplayableState;\n let i = 0;\n const len = list.length;\n while (i < len && !(emphasisState = list[i].states.emphasis)) {\n i++;\n }\n return emphasisState && emphasisState.hoverLayer;\n}\n\nfunction dispatchHighlightAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'highlight',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nfunction dispatchDownplayAction(\n seriesName: string,\n dataName: string,\n api: ExtensionAPI,\n excludeSeriesId: string[]\n) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'downplay',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nexport default LegendView;\n", "import SeriesModel from '../../model/Series';\nimport GlobalModel from '../../model/Global';\nimport LegendModel from './LegendModel';\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nexport default function legendFilter(ecModel: GlobalModel) {\n\n const legendModels = ecModel.findComponents({\n mainType: 'legend'\n }) as LegendModel[];\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series: SeriesModel) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (let i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n return true;\n });\n }\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\n\nimport {curry, each} from 'zrender/src/core/util';\n\nfunction legendSelectActionHandler(methodName, payload, ecModel) {\n const selectedMap = {};\n const isToggleSelect = methodName === 'toggleSelected';\n let isSelected;\n // Update all legend components\n ecModel.eachComponent('legend', function (legendModel) {\n if (isToggleSelect && isSelected != null) {\n // Force other legend has same selected status\n // Or the first is toggled to true and other are toggled to false\n // In the case one legend has some item unSelected in option. And if other legend\n // doesn't has the item, they will assume it is selected.\n legendModel[isSelected ? 'select' : 'unSelect'](payload.name);\n }\n else if (methodName === 'allSelect' || methodName === 'inverseSelect') {\n legendModel[methodName]();\n }\n else {\n legendModel[methodName](payload.name);\n isSelected = legendModel.isSelected(payload.name);\n }\n const legendData = legendModel.getData();\n each(legendData, function (model) {\n const name = model.get('name');\n // Wrap element\n if (name === '\\n' || name === '') {\n return;\n }\n const isItemSelected = legendModel.isSelected(name);\n if (selectedMap.hasOwnProperty(name)) {\n // Unselected if any legend is unselected\n selectedMap[name] = selectedMap[name] && isItemSelected;\n }\n else {\n selectedMap[name] = isItemSelected;\n }\n });\n });\n // Return the event explicitly\n return (methodName === 'allSelect' || methodName === 'inverseSelect')\n ? {\n selected: selectedMap\n }\n : {\n name: payload.name,\n selected: selectedMap\n };\n}\n\nexport function installLegendAction(registers) {\n /**\n * @event legendToggleSelect\n * @type {Object}\n * @property {string} type 'legendToggleSelect'\n * @property {string} [from]\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendToggleSelect', 'legendselectchanged',\n curry(legendSelectActionHandler, 'toggleSelected')\n );\n\n registers.registerAction(\n 'legendAllSelect', 'legendselectall',\n curry(legendSelectActionHandler, 'allSelect')\n );\n\n registers.registerAction(\n 'legendInverseSelect', 'legendinverseselect',\n curry(legendSelectActionHandler, 'inverseSelect')\n );\n\n /**\n * @event legendSelect\n * @type {Object}\n * @property {string} type 'legendSelect'\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendSelect', 'legendselected',\n curry(legendSelectActionHandler, 'select')\n );\n\n /**\n * @event legendUnSelect\n * @type {Object}\n * @property {string} type 'legendUnSelect'\n * @property {string} name Series name or data item name\n */\n registers.registerAction(\n 'legendUnSelect', 'legendunselected',\n curry(legendSelectActionHandler, 'unSelect')\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport LegendModel from './LegendModel';\nimport LegendView from './LegendView';\nimport legendFilter from './legendFilter';\nimport { installLegendAction } from './legendAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(LegendModel);\n registers.registerComponentView(LegendView);\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);\n registers.registerSubTypeDefaulter('legend', function () {\n return 'plain';\n });\n\n installLegendAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport LegendModel, {LegendOption} from './LegendModel';\nimport {\n mergeLayoutParam,\n getLayoutParams\n} from '../../util/layout';\nimport { ZRColor, LabelOption } from '../../util/types';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface ScrollableLegendOption extends LegendOption {\n scrollDataIndex?: number\n /**\n * Gap between each page button\n */\n pageButtonItemGap?: number\n /**\n * Gap between page buttons group and legend items.\n */\n pageButtonGap?: number\n pageButtonPosition?: 'start' | 'end'\n\n pageFormatter?: string | ((param: {current: number, total: number}) => string)\n pageIcons?: {\n horizontal?: string[]\n vertical?: string[]\n }\n pageIconColor?: ZRColor\n pageIconInactiveColor?: ZRColor\n pageIconSize?: number\n pageTextStyle?: LabelOption\n\n animationDurationUpdate?: number\n}\n\nclass ScrollableLegendModel extends LegendModel {\n\n static type = 'legend.scroll' as const;\n type = ScrollableLegendModel.type;\n\n /**\n * @param {number} scrollDataIndex\n */\n setScrollDataIndex(scrollDataIndex: number) {\n this.option.scrollDataIndex = scrollDataIndex;\n }\n\n init(\n option: ScrollableLegendOption,\n parentModel: Model,\n ecModel: GlobalModel\n ) {\n const inputPositionParams = getLayoutParams(option);\n\n super.init(option, parentModel, ecModel);\n\n mergeAndNormalizeLayoutParams(this, option, inputPositionParams);\n }\n\n /**\n * @override\n */\n mergeOption(option: ScrollableLegendOption, ecModel: GlobalModel) {\n super.mergeOption(option, ecModel);\n\n mergeAndNormalizeLayoutParams(this, this.option, option);\n }\n\n static defaultOption: ScrollableLegendOption = inheritDefaultOption(LegendModel.defaultOption, {\n scrollDataIndex: 0,\n pageButtonItemGap: 5,\n pageButtonGap: null,\n pageButtonPosition: 'end', // 'start' or 'end'\n pageFormatter: '{current}/{total}', // If null/undefined, do not show page.\n pageIcons: {\n horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],\n vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']\n },\n pageIconColor: '#2f4554',\n pageIconInactiveColor: '#aaa',\n pageIconSize: 15, // Can be [10, 3], which represents [width, height]\n pageTextStyle: {\n color: '#333'\n },\n\n animationDurationUpdate: 800\n });\n};\n\n// Do not `ignoreSize` to enable setting {left: 10, right: 10}.\nfunction mergeAndNormalizeLayoutParams(\n legendModel: ScrollableLegendModel,\n target: ScrollableLegendOption,\n raw: ScrollableLegendOption\n) {\n const orient = legendModel.getOrient();\n const ignoreSize = [1, 1];\n ignoreSize[orient.index] = 0;\n mergeLayoutParam(target, raw, {\n type: 'box', ignoreSize: !!ignoreSize\n });\n}\n\nexport default ScrollableLegendModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Separate legend and scrollable legend to reduce package size.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport LegendView from './LegendView';\nimport { LegendSelectorButtonOption } from './LegendModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport GlobalModel from '../../model/Global';\nimport ScrollableLegendModel, {ScrollableLegendOption} from './ScrollableLegendModel';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport Element from 'zrender/src/Element';\nimport { ZRRectLike } from '../../util/types';\n\nconst Group = graphic.Group;\n\nconst WH = ['width', 'height'] as const;\nconst XY = ['x', 'y'] as const;\n\ninterface PageInfo {\n contentPosition: number[]\n pageCount: number\n pageIndex: number\n pagePrevDataIndex: number\n pageNextDataIndex: number\n}\n\ninterface ItemInfo {\n /**\n * Start\n */\n s: number\n /**\n * End\n */\n e: number\n /**\n * Index\n */\n i: number\n}\n\ntype LegendGroup = graphic.Group & {\n __rectSize: number\n};\n\ntype LegendItemElement = Element & {\n __legendDataIndex: number\n};\n\nclass ScrollableLegendView extends LegendView {\n\n static type = 'legend.scroll' as const;\n type = ScrollableLegendView.type;\n\n newlineDisabled = true;\n\n private _containerGroup: LegendGroup;\n private _controllerGroup: graphic.Group;\n\n private _currentIndex: number = 0;\n\n private _showController: boolean;\n\n init() {\n\n super.init();\n\n this.group.add(this._containerGroup = new Group() as LegendGroup);\n this._containerGroup.add(this.getContentGroup());\n\n this.group.add(this._controllerGroup = new Group());\n }\n\n /**\n * @override\n */\n resetInner() {\n super.resetInner();\n\n this._controllerGroup.removeAll();\n this._containerGroup.removeClipPath();\n this._containerGroup.__rectSize = null;\n }\n\n /**\n * @override\n */\n renderInner(\n itemAlign: ScrollableLegendOption['align'],\n legendModel: ScrollableLegendModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n selector: LegendSelectorButtonOption[],\n orient: ScrollableLegendOption['orient'],\n selectorPosition: ScrollableLegendOption['selectorPosition']\n ) {\n const self = this;\n\n // Render content items.\n super.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n const controllerGroup = this._controllerGroup;\n\n // FIXME: support be 'auto' adapt to size number text length,\n // e.g., '3/12345' should not overlap with the control arrow button.\n const pageIconSize = legendModel.get('pageIconSize', true);\n const pageIconSizeArr: number[] = zrUtil.isArray(pageIconSize)\n ? pageIconSize : [pageIconSize, pageIconSize];\n\n createPageButton('pagePrev', 0);\n\n const pageTextStyleModel = legendModel.getModel('pageTextStyle');\n controllerGroup.add(new graphic.Text({\n name: 'pageText',\n style: {\n // Placeholder to calculate a proper layout.\n text: 'xx/xx',\n fill: pageTextStyleModel.getTextColor(),\n font: pageTextStyleModel.getFont(),\n verticalAlign: 'middle',\n align: 'center'\n },\n silent: true\n }));\n\n createPageButton('pageNext', 1);\n\n function createPageButton(name: string, iconIdx: number) {\n const pageDataIndexName = (name + 'DataIndex') as 'pagePrevDataIndex' | 'pageNextDataIndex';\n const icon = graphic.createIcon(\n legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx],\n {\n // Buttons will be created in each render, so we do not need\n // to worry about avoiding using legendModel kept in scope.\n onclick: zrUtil.bind(\n self._pageGo, self, pageDataIndexName, legendModel, api\n )\n },\n {\n x: -pageIconSizeArr[0] / 2,\n y: -pageIconSizeArr[1] / 2,\n width: pageIconSizeArr[0],\n height: pageIconSizeArr[1]\n }\n );\n icon.name = name;\n controllerGroup.add(icon);\n }\n }\n\n /**\n * @override\n */\n layoutInner(\n legendModel: ScrollableLegendModel,\n itemAlign: ScrollableLegendOption['align'],\n maxSize: { width: number, height: number },\n isFirstRender: boolean,\n selector: LegendSelectorButtonOption[],\n selectorPosition: ScrollableLegendOption['selectorPosition']\n ) {\n const selectorGroup = this.getSelectorGroup();\n\n const orientIdx = legendModel.getOrient().index;\n const wh = WH[orientIdx];\n const xy = XY[orientIdx];\n const hw = WH[1 - orientIdx];\n const yx = XY[1 - orientIdx];\n\n selector && layoutUtil.box(\n // Buttons in selectorGroup always layout horizontally\n 'horizontal',\n selectorGroup,\n legendModel.get('selectorItemGap', true)\n );\n\n const selectorButtonGap = legendModel.get('selectorButtonGap', true);\n const selectorRect = selectorGroup.getBoundingRect();\n const selectorPos = [-selectorRect.x, -selectorRect.y];\n\n const processMaxSize = zrUtil.clone(maxSize);\n selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);\n\n const mainRect = this._layoutContentAndController(legendModel, isFirstRender,\n processMaxSize, orientIdx, wh, hw, yx, xy\n );\n\n if (selector) {\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;\n }\n else {\n const offset = selectorRect[wh] + selectorButtonGap;\n selectorPos[orientIdx] -= offset;\n mainRect[xy] -= offset;\n }\n mainRect[wh] += selectorRect[wh] + selectorButtonGap;\n\n selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;\n mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);\n\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n selectorGroup.markRedraw();\n }\n\n return mainRect;\n }\n\n _layoutContentAndController(\n legendModel: ScrollableLegendModel,\n isFirstRender: boolean,\n maxSize: { width: number, height: number },\n orientIdx: 0 | 1,\n wh: 'width' | 'height',\n hw: 'width' | 'height',\n yx: 'x' | 'y',\n xy: 'y' | 'x'\n ) {\n const contentGroup = this.getContentGroup();\n const containerGroup = this._containerGroup;\n const controllerGroup = this._controllerGroup;\n\n // Place items in contentGroup.\n layoutUtil.box(\n legendModel.get('orient'),\n contentGroup,\n legendModel.get('itemGap'),\n !orientIdx ? null : maxSize.width,\n orientIdx ? null : maxSize.height\n );\n\n layoutUtil.box(\n // Buttons in controller are layout always horizontally.\n 'horizontal',\n controllerGroup,\n legendModel.get('pageButtonItemGap', true)\n );\n\n const contentRect = contentGroup.getBoundingRect();\n const controllerRect = controllerGroup.getBoundingRect();\n const showController = this._showController = contentRect[wh] > maxSize[wh];\n\n // In case that the inner elements of contentGroup layout do not based on [0, 0]\n const contentPos = [-contentRect.x, -contentRect.y];\n // Remain contentPos when scroll animation perfroming.\n // If first rendering, `contentGroup.position` is [0, 0], which\n // does not make sense and may cause unexepcted animation if adopted.\n if (!isFirstRender) {\n contentPos[orientIdx] = contentGroup[xy];\n }\n\n // Layout container group based on 0.\n const containerPos = [0, 0];\n const controllerPos = [-controllerRect.x, -controllerRect.y];\n const pageButtonGap = zrUtil.retrieve2(\n legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)\n );\n\n // Place containerGroup and controllerGroup and contentGroup.\n if (showController) {\n const pageButtonPosition = legendModel.get('pageButtonPosition', true);\n // controller is on the right / bottom.\n if (pageButtonPosition === 'end') {\n controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];\n }\n // controller is on the left / top.\n else {\n containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;\n }\n }\n\n // Always align controller to content as 'middle'.\n controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;\n\n contentGroup.setPosition(contentPos);\n containerGroup.setPosition(containerPos);\n controllerGroup.setPosition(controllerPos);\n\n // Calculate `mainRect` and set `clipPath`.\n // mainRect should not be calculated by `this.group.getBoundingRect()`\n // for sake of the overflow.\n const mainRect = {x: 0, y: 0} as ZRRectLike;\n\n // Consider content may be overflow (should be clipped).\n mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]);\n\n // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.\n mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);\n\n containerGroup.__rectSize = maxSize[wh];\n if (showController) {\n const clipShape = {x: 0, y: 0} as graphic.Rect['shape'];\n clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);\n clipShape[hw] = mainRect[hw];\n containerGroup.setClipPath(new graphic.Rect({shape: clipShape}));\n // Consider content may be larger than container, container rect\n // can not be obtained from `containerGroup.getBoundingRect()`.\n containerGroup.__rectSize = clipShape[wh];\n }\n else {\n // Do not remove or ignore controller. Keep them set as placeholders.\n controllerGroup.eachChild(function (child: Displayable) {\n child.attr({\n invisible: true,\n silent: true\n });\n });\n }\n\n // Content translate animation.\n const pageInfo = this._getPageInfo(legendModel);\n pageInfo.pageIndex != null && graphic.updateProps(\n contentGroup,\n { x: pageInfo.contentPosition[0], y: pageInfo.contentPosition[1] },\n // When switch from \"show controller\" to \"not show controller\", view should be\n // updated immediately without animation, otherwise causes weird effect.\n showController ? legendModel : null\n );\n\n this._updatePageInfoView(legendModel, pageInfo);\n\n return mainRect;\n }\n\n _pageGo(\n to: 'pagePrevDataIndex' | 'pageNextDataIndex',\n legendModel: ScrollableLegendModel,\n api: ExtensionAPI\n ) {\n const scrollDataIndex = this._getPageInfo(legendModel)[to];\n\n scrollDataIndex != null && api.dispatchAction({\n type: 'legendScroll',\n scrollDataIndex: scrollDataIndex,\n legendId: legendModel.id\n });\n }\n\n _updatePageInfoView(\n legendModel: ScrollableLegendModel,\n pageInfo: PageInfo\n ) {\n const controllerGroup = this._controllerGroup;\n\n zrUtil.each(['pagePrev', 'pageNext'], function (name) {\n const key = (name + 'DataIndex') as'pagePrevDataIndex' | 'pageNextDataIndex';\n const canJump = pageInfo[key] != null;\n const icon = controllerGroup.childOfName(name) as graphic.Path;\n if (icon) {\n icon.setStyle(\n 'fill',\n canJump\n ? legendModel.get('pageIconColor', true)\n : legendModel.get('pageIconInactiveColor', true)\n );\n icon.cursor = canJump ? 'pointer' : 'default';\n }\n });\n\n const pageText = controllerGroup.childOfName('pageText') as graphic.Text;\n const pageFormatter = legendModel.get('pageFormatter');\n const pageIndex = pageInfo.pageIndex;\n const current = pageIndex != null ? pageIndex + 1 : 0;\n const total = pageInfo.pageCount;\n\n pageText && pageFormatter && pageText.setStyle(\n 'text',\n zrUtil.isString(pageFormatter)\n ? pageFormatter.replace('{current}', current == null ? '' : current + '')\n .replace('{total}', total == null ? '' : total + '')\n : pageFormatter({current: current, total: total})\n );\n }\n\n /**\n * contentPosition: Array., null when data item not found.\n * pageIndex: number, null when data item not found.\n * pageCount: number, always be a number, can be 0.\n * pagePrevDataIndex: number, null when no previous page.\n * pageNextDataIndex: number, null when no next page.\n * }\n */\n _getPageInfo(legendModel: ScrollableLegendModel): PageInfo {\n const scrollDataIndex = legendModel.get('scrollDataIndex', true);\n const contentGroup = this.getContentGroup();\n const containerRectSize = this._containerGroup.__rectSize;\n const orientIdx = legendModel.getOrient().index;\n const wh = WH[orientIdx];\n const xy = XY[orientIdx];\n\n const targetItemIndex = this._findTargetItemIndex(scrollDataIndex);\n const children = contentGroup.children();\n const targetItem = children[targetItemIndex];\n const itemCount = children.length;\n const pCount = !itemCount ? 0 : 1;\n\n const result: PageInfo = {\n contentPosition: [contentGroup.x, contentGroup.y],\n pageCount: pCount,\n pageIndex: pCount - 1,\n pagePrevDataIndex: null,\n pageNextDataIndex: null\n };\n\n if (!targetItem) {\n return result;\n }\n\n const targetItemInfo = getItemInfo(targetItem);\n result.contentPosition[orientIdx] = -targetItemInfo.s;\n\n // Strategy:\n // (1) Always align based on the left/top most item.\n // (2) It is user-friendly that the last item shown in the\n // current window is shown at the begining of next window.\n // Otherwise if half of the last item is cut by the window,\n // it will have no chance to display entirely.\n // (3) Consider that item size probably be different, we\n // have calculate pageIndex by size rather than item index,\n // and we can not get page index directly by division.\n // (4) The window is to narrow to contain more than\n // one item, we should make sure that the page can be fliped.\n\n for (let i = targetItemIndex + 1,\n winStartItemInfo = targetItemInfo,\n winEndItemInfo = targetItemInfo,\n currItemInfo = null;\n i <= itemCount;\n ++i\n ) {\n currItemInfo = getItemInfo(children[i]);\n if (\n // Half of the last item is out of the window.\n (!currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize)\n // If the current item does not intersect with the window, the new page\n // can be started at the current item or the last item.\n || (currItemInfo && !intersect(currItemInfo, winStartItemInfo.s))\n ) {\n if (winEndItemInfo.i > winStartItemInfo.i) {\n winStartItemInfo = winEndItemInfo;\n }\n else { // e.g., when page size is smaller than item size.\n winStartItemInfo = currItemInfo;\n }\n if (winStartItemInfo) {\n if (result.pageNextDataIndex == null) {\n result.pageNextDataIndex = winStartItemInfo.i;\n }\n ++result.pageCount;\n }\n }\n winEndItemInfo = currItemInfo;\n }\n\n for (let i = targetItemIndex - 1,\n winStartItemInfo = targetItemInfo,\n winEndItemInfo = targetItemInfo,\n currItemInfo = null;\n i >= -1;\n --i\n ) {\n currItemInfo = getItemInfo(children[i]);\n if (\n // If the the end item does not intersect with the window started\n // from the current item, a page can be settled.\n (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s))\n // e.g., when page size is smaller than item size.\n && winStartItemInfo.i < winEndItemInfo.i\n ) {\n winEndItemInfo = winStartItemInfo;\n if (result.pagePrevDataIndex == null) {\n result.pagePrevDataIndex = winStartItemInfo.i;\n }\n ++result.pageCount;\n ++result.pageIndex;\n }\n winStartItemInfo = currItemInfo;\n }\n\n return result;\n\n function getItemInfo(el: Element): ItemInfo {\n if (el) {\n const itemRect = el.getBoundingRect();\n const start = itemRect[xy] + el[xy];\n return {\n s: start,\n e: start + itemRect[wh],\n i: (el as LegendItemElement).__legendDataIndex\n };\n }\n }\n\n function intersect(itemInfo: ItemInfo, winStart: number) {\n return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;\n }\n }\n\n _findTargetItemIndex(targetDataIndex: number) {\n if (!this._showController) {\n return 0;\n }\n\n let index;\n const contentGroup = this.getContentGroup();\n let defaultIndex: number;\n\n contentGroup.eachChild(function (child, idx) {\n const legendDataIdx = (child as LegendItemElement).__legendDataIndex;\n // FIXME\n // If the given targetDataIndex (from model) is illegal,\n // we use defaultIndex. But the index on the legend model and\n // action payload is still illegal. That case will not be\n // changed until some scenario requires.\n if (defaultIndex == null && legendDataIdx != null) {\n defaultIndex = idx;\n }\n if (legendDataIdx === targetDataIndex) {\n index = idx;\n }\n });\n\n return index != null ? index : defaultIndex;\n }\n}\n\nexport default ScrollableLegendView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\nexport default function installScrollableLegendAction(registers: EChartsExtensionInstallRegisters) {\n /**\n * @event legendScroll\n * @type {Object}\n * @property {string} type 'legendScroll'\n * @property {string} scrollDataIndex\n */\n registers.registerAction(\n 'legendScroll', 'legendscroll',\n function (payload, ecModel) {\n const scrollDataIndex = payload.scrollDataIndex;\n\n scrollDataIndex != null && ecModel.eachComponent(\n {mainType: 'legend', subType: 'scroll', query: payload},\n function (legendModel: ScrollableLegendModel) {\n legendModel.setScrollDataIndex(scrollDataIndex);\n }\n );\n }\n );\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installLegendPlain} from './installLegendPlain';\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport ScrollableLegendView from './ScrollableLegendView';\nimport installScrollableLegendAction from './scrollableLegendAction';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installLegendPlain);\n\n registers.registerComponentModel(ScrollableLegendModel);\n registers.registerComponentView(ScrollableLegendView);\n\n installScrollableLegendAction(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installLegendPlain} from './installLegendPlain';\nimport {install as installLegendScroll} from './installLegendScroll';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installLegendPlain);\n use(installLegendScroll);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel, {DataZoomOption} from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface InsideDataZoomOption extends DataZoomOption {\n\n /**\n * Whether disable this inside zoom.\n */\n disabled?: boolean\n\n /**\n * Whether disable zoom but only pan.\n */\n zoomLock?: boolean\n\n zoomOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'\n\n moveOnMouseMove?: boolean | 'shift' | 'ctrl' | 'alt'\n\n moveOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'\n\n preventDefaultMouseMove?: boolean\n\n /**\n * Inside dataZoom don't support textStyle\n */\n textStyle?: never\n}\n\n\nclass InsideZoomModel extends DataZoomModel {\n static readonly type = 'dataZoom.inside';\n type = InsideZoomModel.type;\n\n static defaultOption: InsideDataZoomOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n disabled: false,\n zoomLock: false,\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n}\n\nexport default InsideZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Only create one roam controller for each coordinate system.\n// one roam controller might be refered by two inside data zoom\n// components (for example, one for x and one for y). When user\n// pan or zoom, only dispatch one action for those data zoom\n// components.\n\nimport RoamController, { RoamType } from '../../component/helper/RoamController';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nimport { Dictionary, ZRElementEvent } from '../../util/types';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport InsideZoomModel from './InsideZoomModel';\nimport { each, curry, Curry1, HashMap, createHashMap } from 'zrender/src/core/util';\nimport {\n DataZoomPayloadBatchItem, collectReferCoordSysModelInfo,\n DataZoomCoordSysMainType, DataZoomReferCoordSysInfo\n} from './helper';\nimport GlobalModel from '../../model/Global';\nimport { CoordinateSystemHostModel } from '../../coord/CoordinateSystem';\nimport { DataZoomGetRangeHandlers } from './InsideZoomView';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\ninterface DataZoomInfo {\n getRange: DataZoomGetRangeHandlers;\n model: InsideZoomModel;\n dzReferCoordSysInfo: DataZoomReferCoordSysInfo\n}\n\ninterface CoordSysRecord {\n // key: dataZoom.uid\n dataZoomInfoMap: HashMap;\n model: CoordinateSystemHostModel,\n // count: number\n // coordId: string\n controller: RoamController;\n containsPoint: (e: ZRElementEvent, x: number, y: number) => boolean;\n dispatchAction: Curry1;\n}\n\n\nconst inner = makeInner<{\n // key: coordSysModel.uid\n coordSysRecordMap: HashMap;\n}, ExtensionAPI>();\n\nexport function setViewInfoToCoordSysRecord(\n api: ExtensionAPI,\n dataZoomModel: InsideZoomModel,\n getRange: DataZoomGetRangeHandlers\n): void {\n inner(api).coordSysRecordMap.each(function (coordSysRecord) {\n const dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid);\n if (dzInfo) {\n dzInfo.getRange = getRange;\n }\n });\n}\n\nexport function disposeCoordSysRecordIfNeeded(api: ExtensionAPI, dataZoomModel: InsideZoomModel) {\n const coordSysRecordMap = inner(api).coordSysRecordMap;\n const coordSysKeyArr = coordSysRecordMap.keys();\n for (let i = 0; i < coordSysKeyArr.length; i++) {\n const coordSysKey = coordSysKeyArr[i];\n const coordSysRecord = coordSysRecordMap.get(coordSysKey);\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n if (dataZoomInfoMap) {\n const dzUid = dataZoomModel.uid;\n const dzInfo = dataZoomInfoMap.get(dzUid);\n if (dzInfo) {\n dataZoomInfoMap.removeKey(dzUid);\n if (!dataZoomInfoMap.keys().length) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n }\n }\n }\n }\n}\n\nfunction disposeCoordSysRecord(\n coordSysRecordMap: HashMap,\n coordSysRecord: CoordSysRecord\n): void {\n if (coordSysRecord) {\n coordSysRecordMap.removeKey(coordSysRecord.model.uid);\n const controller = coordSysRecord.controller;\n controller && controller.dispose();\n }\n}\n\nfunction createCoordSysRecord(api: ExtensionAPI, coordSysModel: CoordinateSystemHostModel): CoordSysRecord {\n // These init props will never change after record created.\n const coordSysRecord: CoordSysRecord = {\n model: coordSysModel,\n containsPoint: curry(containsPoint, coordSysModel),\n dispatchAction: curry(dispatchAction, api),\n dataZoomInfoMap: null,\n controller: null\n };\n\n // Must not do anything depends on coordSysRecord outside the event handler here,\n // because coordSysRecord not completed yet.\n const controller = coordSysRecord.controller = new RoamController(api.getZr());\n\n each(['pan', 'zoom', 'scrollMove'] as const, function (eventName) {\n controller.on(eventName, function (event) {\n const batch: DataZoomPayloadBatchItem[] = [];\n\n coordSysRecord.dataZoomInfoMap.each(function (dzInfo) {\n // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,\n // moveOnMouseWheel, ...) enabled.\n if (!event.isAvailableBehavior(dzInfo.model.option)) {\n return;\n }\n\n const method = (dzInfo.getRange || {} as DataZoomGetRangeHandlers)[eventName];\n const range = method && method(\n dzInfo.dzReferCoordSysInfo,\n coordSysRecord.model.mainType as DataZoomCoordSysMainType,\n coordSysRecord.controller,\n event as any\n );\n\n !dzInfo.model.get('disabled', true) && range && batch.push({\n dataZoomId: dzInfo.model.id,\n start: range[0],\n end: range[1]\n });\n });\n\n batch.length && coordSysRecord.dispatchAction(batch);\n });\n });\n\n return coordSysRecord;\n}\n\n/**\n * This action will be throttled.\n */\nfunction dispatchAction(api: ExtensionAPI, batch: DataZoomPayloadBatchItem[]) {\n api.dispatchAction({\n type: 'dataZoom',\n animation: {\n easing: 'cubicOut',\n duration: 100\n },\n batch: batch\n });\n}\n\nfunction containsPoint(\n coordSysModel: CoordinateSystemHostModel, e: ZRElementEvent, x: number, y: number\n): boolean {\n return coordSysModel.coordinateSystem.containPoint([x, y]);\n}\n\n/**\n * Merge roamController settings when multiple dataZooms share one roamController.\n */\nfunction mergeControllerParams(dataZoomInfoMap: HashMap<{ model: InsideZoomModel }>) {\n let controlType: RoamType;\n // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated\n // as string, it is probably revert to reserved word by compress tool. See #7411.\n const prefix = 'type_';\n const typePriority: Dictionary = {\n 'type_true': 2,\n 'type_move': 1,\n 'type_false': 0,\n 'type_undefined': -1\n };\n let preventDefaultMouseMove = true;\n\n dataZoomInfoMap.each(function (dataZoomInfo) {\n const dataZoomModel = dataZoomInfo.model;\n const oneType = dataZoomModel.get('disabled', true)\n ? false\n : dataZoomModel.get('zoomLock', true)\n ? 'move' as const\n : true;\n if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) {\n controlType = oneType;\n }\n\n // Prevent default move event by default. If one false, do not prevent. Otherwise\n // users may be confused why it does not work when multiple insideZooms exist.\n preventDefaultMouseMove = preventDefaultMouseMove\n && dataZoomModel.get('preventDefaultMouseMove', true);\n });\n\n return {\n controlType: controlType,\n opt: {\n // RoamController will enable all of these functionalities,\n // and the final behavior is determined by its event listener\n // provided by each inside zoom.\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: true,\n preventDefaultMouseMove: !!preventDefaultMouseMove\n }\n };\n}\n\nexport function installDataZoomRoamProcessor(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerProcessor(\n registers.PRIORITY.PROCESSOR.FILTER,\n function (ecModel: GlobalModel, api: ExtensionAPI): void {\n const apiInner = inner(api);\n const coordSysRecordMap = apiInner.coordSysRecordMap\n || (apiInner.coordSysRecordMap = createHashMap());\n\n coordSysRecordMap.each(function (coordSysRecord) {\n // `coordSysRecordMap` always exists (becuase it hold the `roam controller`, which should\n // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.\n coordSysRecord.dataZoomInfoMap = null;\n });\n\n ecModel.eachComponent(\n { mainType: 'dataZoom', subType: 'inside' },\n function (dataZoomModel: InsideZoomModel) {\n const dzReferCoordSysWrap = collectReferCoordSysModelInfo(dataZoomModel);\n\n each(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) {\n\n const coordSysUid = dzCoordSysInfo.model.uid;\n const coordSysRecord = coordSysRecordMap.get(coordSysUid)\n || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model));\n\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap\n || (coordSysRecord.dataZoomInfoMap = createHashMap());\n // Notice these props might be changed each time for a single dataZoomModel.\n dataZoomInfoMap.set(dataZoomModel.uid, {\n dzReferCoordSysInfo: dzCoordSysInfo,\n model: dataZoomModel,\n getRange: null\n });\n });\n }\n );\n\n // (1) Merge dataZoom settings for each coord sys and set to the roam controller.\n // (2) Clear coord sys if not refered by any dataZoom.\n coordSysRecordMap.each(function (coordSysRecord) {\n const controller = coordSysRecord.controller;\n let firstDzInfo: DataZoomInfo;\n const dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n const firstDzKey = dataZoomInfoMap.keys()[0];\n if (firstDzKey != null) {\n firstDzInfo = dataZoomInfoMap.get(firstDzKey);\n }\n }\n\n if (!firstDzInfo) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n return;\n }\n\n const controllerParams = mergeControllerParams(dataZoomInfoMap);\n controller.enable(controllerParams.controlType, controllerParams.opt);\n\n controller.setPointerChecker(coordSysRecord.containsPoint);\n\n throttleUtil.createOrUpdate(\n coordSysRecord,\n 'dispatchAction',\n firstDzInfo.model.get('throttle', true),\n 'fixRate'\n );\n });\n });\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomView from './DataZoomView';\nimport sliderMove from '../helper/sliderMove';\nimport * as roams from './roams';\nimport InsideZoomModel from './InsideZoomModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { bind } from 'zrender/src/core/util';\nimport RoamController, {RoamEventParams} from '../helper/RoamController';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport Polar from '../../coord/polar/Polar';\nimport SingleAxis from '../../coord/single/SingleAxis';\nimport { DataZoomCoordSysMainType, DataZoomReferCoordSysInfo } from './helper';\n\n\nclass InsideZoomView extends DataZoomView {\n static type = 'dataZoom.inside';\n type = 'dataZoom.inside';\n\n /**\n * 'throttle' is used in this.dispatchAction, so we save range\n * to avoid missing some 'pan' info.\n */\n range: number[];\n\n render(dataZoomModel: InsideZoomModel, ecModel: GlobalModel, api: ExtensionAPI) {\n super.render.apply(this, arguments as any);\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n return;\n }\n\n // Hence the `throttle` util ensures to preserve command order,\n // here simply updating range all the time will not cause missing\n // any of the the roam change.\n this.range = dataZoomModel.getPercentRange();\n\n // Reset controllers.\n roams.setViewInfoToCoordSysRecord(\n api,\n dataZoomModel,\n {\n pan: bind(getRangeHandlers.pan, this),\n zoom: bind(getRangeHandlers.zoom, this),\n scrollMove: bind(getRangeHandlers.scrollMove, this)\n }\n );\n }\n\n dispose() {\n this._clear();\n super.dispose.apply(this, arguments as any);\n }\n\n private _clear() {\n roams.disposeCoordSysRecordIfNeeded(this.api, this.dataZoomModel as InsideZoomModel);\n this.range = null;\n }\n}\n\ninterface DataZoomGetRangeHandler<\n T extends RoamEventParams['zoom'] | RoamEventParams['scrollMove'] | RoamEventParams['pan']\n> {\n (\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: T\n ): [number, number]\n}\n\nconst getRangeHandlers: {\n pan: DataZoomGetRangeHandler\n zoom: DataZoomGetRangeHandler\n scrollMove: DataZoomGetRangeHandler\n} & ThisType = {\n\n zoom(coordSysInfo, coordSysMainType, controller, e: RoamEventParams['zoom']) {\n const lastRange = this.range;\n const range = lastRange.slice() as [number, number];\n\n // Calculate transform by the first axis.\n const axisModel = coordSysInfo.axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const directionInfo = getDirectionInfo[coordSysMainType](\n null, [e.originX, e.originY], axisModel, controller, coordSysInfo\n );\n const percentPoint = (\n directionInfo.signal > 0\n ? (directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel)\n : (directionInfo.pixel - directionInfo.pixelStart)\n ) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];\n\n const scale = Math.max(1 / e.scale, 0);\n range[0] = (range[0] - percentPoint) * scale + percentPoint;\n range[1] = (range[1] - percentPoint) * scale + percentPoint;\n\n // Restrict range.\n const minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n\n sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);\n\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n },\n\n pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e: RoamEventParams['pan']) {\n const directionInfo = getDirectionInfo[coordSysMainType](\n [e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo\n );\n\n return directionInfo.signal\n * (range[1] - range[0])\n * directionInfo.pixel / directionInfo.pixelLength;\n }),\n\n scrollMove: makeMover(\n function (range, axisModel, coordSysInfo, coordSysMainType, controller, e: RoamEventParams['scrollMove']\n ) {\n const directionInfo = getDirectionInfo[coordSysMainType](\n [0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo\n );\n return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta;\n })\n};\n\nexport type DataZoomGetRangeHandlers = typeof getRangeHandlers;\n\nfunction makeMover(\n getPercentDelta: (\n range: [number, number],\n axisModel: AxisBaseModel,\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: RoamEventParams['scrollMove']| RoamEventParams['pan']\n ) => number\n) {\n return function (\n this: InsideZoomView,\n coordSysInfo: DataZoomReferCoordSysInfo,\n coordSysMainType: DataZoomCoordSysMainType,\n controller: RoamController,\n e: RoamEventParams['scrollMove']| RoamEventParams['pan']\n ): [number, number] {\n const lastRange = this.range;\n const range = lastRange.slice() as [number, number];\n\n // Calculate transform by the first axis.\n const axisModel = coordSysInfo.axisModels[0];\n if (!axisModel) {\n return;\n }\n\n const percentDelta = getPercentDelta(\n range, axisModel, coordSysInfo, coordSysMainType, controller, e\n );\n\n sliderMove(percentDelta, range, [0, 100], 'all');\n\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n };\n}\n\ninterface DirectionInfo {\n pixel: number\n pixelLength: number\n pixelStart: number\n signal: -1 | 1\n}\ninterface GetDirectionInfo {\n (\n oldPoint: number[],\n newPoint: number[],\n axisModel: AxisBaseModel,\n controller: RoamController,\n coordSysInfo: DataZoomReferCoordSysInfo\n ): DirectionInfo\n}\n\nconst getDirectionInfo: Record<'grid' | 'polar' | 'singleAxis', GetDirectionInfo> = {\n\n grid(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis;\n const ret = {} as DirectionInfo;\n const rect = coordSysInfo.model.coordinateSystem.getRect();\n oldPoint = oldPoint || [0, 0];\n\n if (axis.dim === 'x') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // axis.dim === 'y'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n\n polar(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis;\n const ret = {} as DirectionInfo;\n const polar = coordSysInfo.model.coordinateSystem as Polar;\n const radiusExtent = polar.getRadiusAxis().getExtent();\n const angleExtent = polar.getAngleAxis().getExtent();\n\n oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];\n newPoint = polar.pointToCoord(newPoint);\n\n if (axisModel.mainType === 'radiusAxis') {\n ret.pixel = newPoint[0] - oldPoint[0];\n // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);\n // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);\n ret.pixelLength = radiusExtent[1] - radiusExtent[0];\n ret.pixelStart = radiusExtent[0];\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // 'angleAxis'\n ret.pixel = newPoint[1] - oldPoint[1];\n // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);\n // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);\n ret.pixelLength = angleExtent[1] - angleExtent[0];\n ret.pixelStart = angleExtent[0];\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n\n singleAxis(oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n const axis = axisModel.axis as SingleAxis;\n const rect = coordSysInfo.model.coordinateSystem.getRect();\n const ret = {} as DirectionInfo;\n\n oldPoint = oldPoint || [0, 0];\n\n if (axis.orient === 'horizontal') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n }\n else { // 'vertical'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n }\n};\n\nexport default InsideZoomView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport InsideZoomModel from './InsideZoomModel';\nimport InsideZoomView from './InsideZoomView';\nimport {installDataZoomRoamProcessor} from './roams';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n installCommon(registers);\n\n registers.registerComponentModel(InsideZoomModel);\n registers.registerComponentView(InsideZoomView);\n\n installDataZoomRoamProcessor(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport DataZoomModel, {DataZoomOption} from './DataZoomModel';\nimport {\n BoxLayoutOptionMixin,\n ZRColor,\n LineStyleOption,\n AreaStyleOption,\n ItemStyleOption,\n LabelOption\n} from '../../util/types';\nimport { inheritDefaultOption } from '../../util/component';\n\nexport interface SliderDataZoomOption extends DataZoomOption, BoxLayoutOptionMixin {\n\n show?: boolean\n /**\n * Slider dataZoom don't support textStyle\n */\n\n /**\n * Background of slider zoom component\n */\n backgroundColor?: ZRColor\n\n /**\n * @deprecated Use borderColor instead\n */\n // dataBackgroundColor?: ZRColor\n\n /**\n * border color of the box. For compatibility,\n * if dataBackgroundColor is set, borderColor\n * is ignored.\n */\n borderColor?: ZRColor\n\n /**\n * Border radius of the box.\n */\n borderRadius?: number | number[]\n\n dataBackground?: {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n }\n\n selectedDataBackground?: {\n lineStyle?: LineStyleOption\n areaStyle?: AreaStyleOption\n }\n\n /**\n * Color of selected area.\n */\n fillerColor?: ZRColor\n\n /**\n * @deprecated Use handleStyle instead\n */\n // handleColor?: ZRColor\n\n handleIcon?: string\n\n /**\n * number: height of icon. width will be calculated according to the aspect of icon.\n * string: percent of the slider height. width will be calculated according to the aspect of icon.\n */\n handleSize?: string | number\n\n handleStyle?: ItemStyleOption\n\n /**\n * Icon to indicate it is a draggable panel.\n */\n moveHandleIcon?: string\n moveHandleStyle?: ItemStyleOption\n /**\n * Height of handle rect. Can be a percent string relative to the slider height.\n */\n moveHandleSize?: number\n\n labelPrecision?: number | 'auto'\n\n labelFormatter?: string | ((value: number, valueStr: string) => string)\n\n showDetail?: boolean\n\n showDataShadow?: 'auto' | boolean\n\n zoomLock?: boolean\n\n textStyle?: LabelOption\n\n /**\n * If eable select by brushing\n */\n brushSelect?: boolean\n\n brushStyle?: ItemStyleOption\n\n emphasis?: {\n handleStyle?: ItemStyleOption\n moveHandleStyle?: ItemStyleOption\n }\n}\n\n\nclass SliderZoomModel extends DataZoomModel {\n static readonly type = 'dataZoom.slider';\n type = SliderZoomModel.type;\n\n static readonly layoutMode = 'box';\n\n static defaultOption: SliderDataZoomOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n show: true,\n\n // deault value can only be drived in view stage.\n right: 'ph', // Default align to grid rect.\n top: 'ph', // Default align to grid rect.\n width: 'ph', // Default align to grid rect.\n height: 'ph', // Default align to grid rect.\n left: null, // Default align to grid rect.\n bottom: null, // Default align to grid rect.\n\n borderColor: '#d2dbee',\n borderRadius: 3,\n\n backgroundColor: 'rgba(47,69,84,0)', // Background of slider zoom component.\n\n // dataBackgroundColor: '#ddd',\n dataBackground: {\n lineStyle: {\n color: '#d2dbee',\n width: 0.5\n },\n areaStyle: {\n color: '#d2dbee',\n opacity: 0.2\n }\n },\n\n selectedDataBackground: {\n lineStyle: {\n color: '#8fb0f7',\n width: 0.5\n },\n areaStyle: {\n color: '#8fb0f7',\n opacity: 0.2\n }\n },\n\n // Color of selected window.\n fillerColor: 'rgba(135,175,274,0.2)',\n handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',\n // Percent of the slider height\n handleSize: '100%',\n\n handleStyle: {\n color: '#fff',\n borderColor: '#ACB8D1'\n },\n\n moveHandleSize: 7,\n moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',\n moveHandleStyle: {\n color: '#D2DBEE',\n opacity: 0.7\n },\n\n showDetail: true,\n showDataShadow: 'auto', // Default auto decision.\n realtime: true,\n zoomLock: false, // Whether disable zoom.\n\n textStyle: {\n color: '#6E7079'\n },\n\n brushSelect: true,\n brushStyle: {\n color: 'rgba(135,175,274,0.15)'\n },\n\n emphasis: {\n handleStyle: {\n borderColor: '#8FB0F7'\n },\n moveHandleStyle: {\n color: '#8FB0F7'\n }\n }\n } as SliderDataZoomOption);\n}\n\nexport default SliderZoomModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {bind, each, isFunction, isString, indexOf} from 'zrender/src/core/util';\nimport * as eventTool from 'zrender/src/core/event';\nimport * as graphic from '../../util/graphic';\nimport * as throttle from '../../util/throttle';\nimport DataZoomView from './DataZoomView';\nimport {linearMap, asc, parsePercent} from '../../util/number';\nimport * as layout from '../../util/layout';\nimport sliderMove from '../helper/sliderMove';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport {\n LayoutOrient, Payload, ZRTextVerticalAlign, ZRTextAlign, ZRElementEvent, ParsedValue\n} from '../../util/types';\nimport SliderZoomModel from './SliderZoomModel';\nimport { RectLike } from 'zrender/src/core/BoundingRect';\nimport Axis from '../../coord/Axis';\nimport SeriesModel from '../../model/Series';\nimport { AxisBaseModel } from '../../coord/AxisBaseModel';\nimport { getAxisMainType, collectReferCoordSysModelInfo } from './helper';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol, symbolBuildProxies } from '../../util/symbol';\nimport { deprecateLog } from '../../util/log';\nimport { PointLike } from 'zrender/src/core/Point';\nimport Displayable from 'zrender/src/graphic/Displayable';\nimport {createTextStyle} from '../../label/labelStyle';\n\nconst Rect = graphic.Rect;\n\n// Constants\nconst DEFAULT_LOCATION_EDGE_GAP = 7;\nconst DEFAULT_FRAME_BORDER_WIDTH = 1;\nconst DEFAULT_FILLER_SIZE = 30;\nconst DEFAULT_MOVE_HANDLE_SIZE = 7;\nconst HORIZONTAL = 'horizontal';\nconst VERTICAL = 'vertical';\nconst LABEL_GAP = 5;\nconst SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];\n\nconst REALTIME_ANIMATION_CONFIG = {\n easing: 'cubicOut',\n duration: 100,\n delay: 0\n} as const;\n\n// const NORMAL_ANIMATION_CONFIG = {\n// easing: 'cubicInOut',\n// duration: 200\n// } as const;\n\n\ninterface Displayables {\n sliderGroup: graphic.Group;\n handles: [graphic.Path, graphic.Path];\n handleLabels: [graphic.Text, graphic.Text];\n dataShadowSegs: graphic.Group[];\n filler: graphic.Rect;\n\n brushRect: graphic.Rect;\n\n moveHandle: graphic.Rect;\n moveHandleIcon: graphic.Path;\n // invisible move zone.\n moveZone: graphic.Rect;\n}\nclass SliderZoomView extends DataZoomView {\n static type = 'dataZoom.slider';\n type = SliderZoomView.type;\n\n dataZoomModel: SliderZoomModel;\n\n private _displayables = {} as Displayables;\n\n private _orient: LayoutOrient;\n\n private _range: number[];\n\n /**\n * [coord of the first handle, coord of the second handle]\n */\n private _handleEnds: number[];\n\n /**\n * [length, thick]\n */\n private _size: number[];\n\n private _handleWidth: number;\n\n private _handleHeight: number;\n\n private _location: PointLike;\n\n private _brushStart: PointLike;\n private _brushStartTime: number;\n\n private _dragging: boolean;\n\n private _brushing: boolean;\n\n private _dataShadowInfo: {\n thisAxis: Axis\n series: SeriesModel\n thisDim: string\n otherDim: string\n otherAxisInverse: boolean\n };\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.api = api;\n\n // A unique handler for each dataZoom component\n this._onBrush = bind(this._onBrush, this);\n this._onBrushEnd = bind(this._onBrushEnd, this);\n }\n\n render(\n dataZoomModel: SliderZoomModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: Payload & {\n from: string\n type: string\n }\n ) {\n super.render.apply(this, arguments as any);\n\n throttle.createOrUpdate(\n this,\n '_dispatchZoomAction',\n dataZoomModel.get('throttle'),\n 'fixRate'\n );\n\n this._orient = dataZoomModel.getOrient();\n\n if (dataZoomModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n this.group.removeAll();\n return;\n }\n\n // Notice: this._resetInterval() should not be executed when payload.type\n // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'\n // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,\n if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {\n this._buildView();\n }\n\n this._updateView();\n }\n\n dispose() {\n this._clear();\n super.dispose.apply(this, arguments as any);\n }\n\n private _clear() {\n throttle.clear(this, '_dispatchZoomAction');\n\n const zr = this.api.getZr();\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n private _buildView() {\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n this._brushing = false;\n this._displayables.brushRect = null;\n\n this._resetLocation();\n this._resetInterval();\n\n const barGroup = this._displayables.sliderGroup = new graphic.Group();\n\n this._renderBackground();\n\n this._renderHandle();\n\n this._renderDataShadow();\n\n thisGroup.add(barGroup);\n\n this._positionGroup();\n }\n\n private _resetLocation() {\n const dataZoomModel = this.dataZoomModel;\n const api = this.api;\n const showMoveHandle = dataZoomModel.get('brushSelect');\n const moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0;\n\n // If some of x/y/width/height are not specified,\n // auto-adapt according to target grid.\n const coordRect = this._findCoordRect();\n const ecSize = {width: api.getWidth(), height: api.getHeight()};\n // Default align by coordinate system rect.\n const positionInfo = this._orient === HORIZONTAL\n ? {\n // Why using 'right', because right should be used in vertical,\n // and it is better to be consistent for dealing with position param merge.\n right: ecSize.width - coordRect.x - coordRect.width,\n top: (ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize),\n width: coordRect.width,\n height: DEFAULT_FILLER_SIZE\n }\n : { // vertical\n right: DEFAULT_LOCATION_EDGE_GAP,\n top: coordRect.y,\n width: DEFAULT_FILLER_SIZE,\n height: coordRect.height\n };\n\n // Do not write back to option and replace value 'ph', because\n // the 'ph' value should be recalculated when resize.\n const layoutParams = layout.getLayoutParams(dataZoomModel.option);\n\n // Replace the placeholder value.\n each(['right', 'top', 'width', 'height'] as const, function (name) {\n if (layoutParams[name] === 'ph') {\n layoutParams[name] = positionInfo[name];\n }\n });\n\n const layoutRect = layout.getLayoutRect(\n layoutParams,\n ecSize\n );\n\n this._location = {x: layoutRect.x, y: layoutRect.y};\n this._size = [layoutRect.width, layoutRect.height];\n this._orient === VERTICAL && this._size.reverse();\n }\n\n private _positionGroup() {\n const thisGroup = this.group;\n const location = this._location;\n const orient = this._orient;\n\n // Just use the first axis to determine mapping.\n const targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();\n const inverse = targetAxisModel && targetAxisModel.get('inverse');\n\n const sliderGroup = this._displayables.sliderGroup;\n const otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse;\n\n // Transform barGroup.\n sliderGroup.attr(\n (orient === HORIZONTAL && !inverse)\n ? {scaleY: otherAxisInverse ? 1 : -1, scaleX: 1 }\n : (orient === HORIZONTAL && inverse)\n ? {scaleY: otherAxisInverse ? 1 : -1, scaleX: -1 }\n : (orient === VERTICAL && !inverse)\n ? {scaleY: otherAxisInverse ? -1 : 1, scaleX: 1, rotation: Math.PI / 2}\n // Dont use Math.PI, considering shadow direction.\n : {scaleY: otherAxisInverse ? -1 : 1, scaleX: -1, rotation: Math.PI / 2}\n );\n\n // Position barGroup\n const rect = thisGroup.getBoundingRect([sliderGroup]);\n thisGroup.x = location.x - rect.x;\n thisGroup.y = location.y - rect.y;\n thisGroup.markRedraw();\n }\n\n private _getViewExtent() {\n return [0, this._size[0]];\n }\n\n private _renderBackground() {\n const dataZoomModel = this.dataZoomModel;\n const size = this._size;\n const barGroup = this._displayables.sliderGroup;\n const brushSelect = dataZoomModel.get('brushSelect');\n\n barGroup.add(new Rect({\n silent: true,\n shape: {\n x: 0, y: 0, width: size[0], height: size[1]\n },\n style: {\n fill: dataZoomModel.get('backgroundColor')\n },\n z2: -40\n }));\n\n // Click panel, over shadow, below handles.\n const clickPanel = new Rect({\n shape: {\n x: 0, y: 0, width: size[0], height: size[1]\n },\n style: {\n fill: 'transparent'\n },\n z2: 0,\n onclick: bind(this._onClickPanel, this)\n });\n\n const zr = this.api.getZr();\n if (brushSelect) {\n clickPanel.on('mousedown', this._onBrushStart, this);\n clickPanel.cursor = 'crosshair';\n\n zr.on('mousemove', this._onBrush);\n zr.on('mouseup', this._onBrushEnd);\n }\n else {\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n barGroup.add(clickPanel);\n }\n\n private _renderDataShadow() {\n const info = this._dataShadowInfo = this._prepareDataShadowInfo();\n\n this._displayables.dataShadowSegs = [];\n\n if (!info) {\n return;\n }\n\n const size = this._size;\n const seriesModel = info.series;\n const data = seriesModel.getRawData();\n\n const otherDim: string = seriesModel.getShadowDim\n ? seriesModel.getShadowDim() // @see candlestick\n : info.otherDim;\n\n if (otherDim == null) {\n return;\n }\n\n let otherDataExtent = data.getDataExtent(otherDim);\n // Nice extent.\n const otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;\n otherDataExtent = [\n otherDataExtent[0] - otherOffset,\n otherDataExtent[1] + otherOffset\n ];\n const otherShadowExtent = [0, size[1]];\n\n const thisShadowExtent = [0, size[0]];\n\n const areaPoints = [[size[0], 0], [0, 0]];\n const linePoints: number[][] = [];\n const step = thisShadowExtent[1] / (data.count() - 1);\n let thisCoord = 0;\n\n // Optimize for large data shadow\n const stride = Math.round(data.count() / size[0]);\n let lastIsEmpty: boolean;\n data.each([otherDim], function (value: ParsedValue, index) {\n if (stride > 0 && (index % stride)) {\n thisCoord += step;\n return;\n }\n\n // FIXME\n // Should consider axis.min/axis.max when drawing dataShadow.\n\n // FIXME\n // \u5E94\u8BE5\u4F7F\u7528\u7EDF\u4E00\u7684\u7A7A\u5224\u65AD\uFF1F\u8FD8\u662F\u5728list\u91CC\u8FDB\u884C\u7A7A\u5224\u65AD\uFF1F\n const isEmpty = value == null || isNaN(value as number) || value === '';\n // See #4235.\n const otherCoord = isEmpty\n ? 0 : linearMap(value as number, otherDataExtent, otherShadowExtent, true);\n\n // Attempt to draw data shadow precisely when there are empty value.\n if (isEmpty && !lastIsEmpty && index) {\n areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]);\n linePoints.push([linePoints[linePoints.length - 1][0], 0]);\n }\n else if (!isEmpty && lastIsEmpty) {\n areaPoints.push([thisCoord, 0]);\n linePoints.push([thisCoord, 0]);\n }\n\n areaPoints.push([thisCoord, otherCoord]);\n linePoints.push([thisCoord, otherCoord]);\n\n thisCoord += step;\n lastIsEmpty = isEmpty;\n });\n\n const dataZoomModel = this.dataZoomModel;\n\n function createDataShadowGroup(isSelectedArea?: boolean) {\n const model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground');\n const group = new graphic.Group();\n const polygon = new graphic.Polygon({\n shape: {points: areaPoints},\n segmentIgnoreThreshold: 1,\n style: model.getModel('areaStyle').getAreaStyle(),\n silent: true,\n z2: -20\n });\n const polyline = new graphic.Polyline({\n shape: {points: linePoints},\n segmentIgnoreThreshold: 1,\n style: model.getModel('lineStyle').getLineStyle(),\n silent: true,\n z2: -19\n });\n group.add(polygon);\n group.add(polyline);\n return group;\n }\n\n // let dataBackgroundModel = dataZoomModel.getModel('dataBackground');\n for (let i = 0; i < 3; i++) {\n const group = createDataShadowGroup(i === 1);\n this._displayables.sliderGroup.add(group);\n this._displayables.dataShadowSegs.push(group);\n }\n }\n\n private _prepareDataShadowInfo() {\n const dataZoomModel = this.dataZoomModel;\n const showDataShadow = dataZoomModel.get('showDataShadow');\n\n if (showDataShadow === false) {\n return;\n }\n\n // Find a representative series.\n let result: SliderZoomView['_dataShadowInfo'];\n const ecModel = this.ecModel;\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n const seriesModels = dataZoomModel\n .getAxisProxy(axisDim, axisIndex)\n .getTargetSeriesModels();\n\n each(seriesModels, function (seriesModel) {\n if (result) {\n return;\n }\n\n if (showDataShadow !== true && indexOf(\n SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')\n ) < 0\n ) {\n return;\n }\n\n const thisAxis = (\n ecModel.getComponent(getAxisMainType(axisDim), axisIndex) as AxisBaseModel\n ).axis;\n let otherDim = getOtherDim(axisDim);\n let otherAxisInverse;\n const coordSys = seriesModel.coordinateSystem;\n\n if (otherDim != null && coordSys.getOtherAxis) {\n otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;\n }\n\n otherDim = seriesModel.getData().mapDimension(otherDim);\n\n result = {\n thisAxis: thisAxis,\n series: seriesModel,\n thisDim: axisDim,\n otherDim: otherDim,\n otherAxisInverse: otherAxisInverse\n };\n\n }, this);\n\n }, this);\n\n return result;\n }\n\n private _renderHandle() {\n const thisGroup = this.group;\n const displayables = this._displayables;\n const handles: [graphic.Path, graphic.Path] = displayables.handles = [null, null];\n const handleLabels: [graphic.Text, graphic.Text] = displayables.handleLabels = [null, null];\n const sliderGroup = this._displayables.sliderGroup;\n const size = this._size;\n const dataZoomModel = this.dataZoomModel;\n const api = this.api;\n\n const borderRadius = dataZoomModel.get('borderRadius') || 0;\n\n const brushSelect = dataZoomModel.get('brushSelect');\n\n const filler = displayables.filler = new Rect({\n silent: brushSelect,\n style: {\n fill: dataZoomModel.get('fillerColor')\n },\n textConfig: {\n position: 'inside'\n }\n });\n\n sliderGroup.add(filler);\n\n // Frame border.\n sliderGroup.add(new Rect({\n silent: true,\n subPixelOptimize: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1],\n r: borderRadius\n },\n style: {\n stroke: dataZoomModel.get('dataBackgroundColor' as any) // deprecated option\n || dataZoomModel.get('borderColor'),\n lineWidth: DEFAULT_FRAME_BORDER_WIDTH,\n fill: 'rgba(0,0,0,0)'\n }\n }));\n\n // Left and right handle to resize\n each([0, 1] as const, function (handleIndex) {\n let iconStr = dataZoomModel.get('handleIcon');\n if (\n !symbolBuildProxies[iconStr]\n && iconStr.indexOf('path://') < 0\n && iconStr.indexOf('image://') < 0\n ) {\n // Compatitable with the old icon parsers. Which can use a path string without path://\n iconStr = 'path://' + iconStr;\n if (__DEV__) {\n deprecateLog('handleIcon now needs \\'path://\\' prefix when using a path string');\n }\n }\n const path = createSymbol(\n iconStr,\n -1, 0, 2, 2, null, true\n ) as graphic.Path;\n path.attr({\n cursor: getCursor(this._orient),\n draggable: true,\n drift: bind(this._onDragMove, this, handleIndex),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false),\n z2: 5\n });\n\n const bRect = path.getBoundingRect();\n const handleSize = dataZoomModel.get('handleSize');\n\n this._handleHeight = parsePercent(handleSize, this._size[1]);\n this._handleWidth = bRect.width / bRect.height * this._handleHeight;\n\n path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());\n path.style.strokeNoScale = true;\n path.rectHover = true;\n\n path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n enableHoverEmphasis(path);\n\n const handleColor = dataZoomModel.get('handleColor' as any); // deprecated option\n // Compatitable with previous version\n if (handleColor != null) {\n path.style.fill = handleColor;\n }\n\n sliderGroup.add(handles[handleIndex] = path);\n\n const textStyleModel = dataZoomModel.getModel('textStyle');\n\n thisGroup.add(\n handleLabels[handleIndex] = new graphic.Text({\n silent: true,\n invisible: true,\n style: createTextStyle(textStyleModel, {\n x: 0, y: 0, text: '',\n verticalAlign: 'middle',\n align: 'center',\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }),\n z2: 10\n }));\n\n }, this);\n\n // Handle to move. Only visible when brushSelect is set true.\n let actualMoveZone: Displayable = filler;\n if (brushSelect) {\n const moveHandleHeight = parsePercent(dataZoomModel.get('moveHandleSize'), size[1]);\n const moveHandle = displayables.moveHandle = new graphic.Rect({\n style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(),\n silent: true,\n shape: {\n r: [0, 0, 2, 2],\n y: size[1] - 0.5,\n height: moveHandleHeight\n }\n });\n const iconSize = moveHandleHeight * 0.8;\n const moveHandleIcon = displayables.moveHandleIcon = createSymbol(\n dataZoomModel.get('moveHandleIcon'),\n -iconSize / 2, -iconSize / 2, iconSize, iconSize,\n '#fff',\n true\n );\n moveHandleIcon.silent = true;\n moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5;\n\n moveHandle.ensureState('emphasis').style = dataZoomModel.getModel(\n ['emphasis', 'moveHandleStyle']\n ).getItemStyle();\n\n const moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10));\n actualMoveZone = displayables.moveZone = new graphic.Rect({\n invisible: true,\n shape: {\n y: size[1] - moveZoneExpandSize,\n height: moveHandleHeight + moveZoneExpandSize\n }\n });\n\n actualMoveZone.on('mouseover', () => {\n api.enterEmphasis(moveHandle);\n })\n .on('mouseout', () => {\n api.leaveEmphasis(moveHandle);\n });\n\n sliderGroup.add(moveHandle);\n sliderGroup.add(moveHandleIcon);\n sliderGroup.add(actualMoveZone);\n }\n\n actualMoveZone.attr({\n draggable: true,\n cursor: getCursor(this._orient),\n drift: bind(this._onDragMove, this, 'all'),\n ondragstart: bind(this._showDataInfo, this, true),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false)\n });\n }\n\n private _resetInterval() {\n const range = this._range = this.dataZoomModel.getPercentRange();\n const viewExtent = this._getViewExtent();\n\n this._handleEnds = [\n linearMap(range[0], [0, 100], viewExtent, true),\n linearMap(range[1], [0, 100], viewExtent, true)\n ];\n }\n\n private _updateInterval(handleIndex: 0 | 1 | 'all', delta: number): boolean {\n const dataZoomModel = this.dataZoomModel;\n const handleEnds = this._handleEnds;\n const viewExtend = this._getViewExtent();\n const minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n const percentExtent = [0, 100];\n\n sliderMove(\n delta,\n handleEnds,\n viewExtend,\n dataZoomModel.get('zoomLock') ? 'all' : handleIndex,\n minMaxSpan.minSpan != null\n ? linearMap(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null,\n minMaxSpan.maxSpan != null\n ? linearMap(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null\n );\n\n const lastRange = this._range;\n const range = this._range = asc([\n linearMap(handleEnds[0], viewExtend, percentExtent, true),\n linearMap(handleEnds[1], viewExtend, percentExtent, true)\n ]);\n\n return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1];\n }\n\n private _updateView(nonRealtime?: boolean) {\n const displaybles = this._displayables;\n const handleEnds = this._handleEnds;\n const handleInterval = asc(handleEnds.slice());\n const size = this._size;\n\n each([0, 1] as const, function (handleIndex) {\n // Handles\n const handle = displaybles.handles[handleIndex];\n const handleHeight = this._handleHeight;\n (handle as graphic.Path).attr({\n scaleX: handleHeight / 2,\n scaleY: handleHeight / 2,\n // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.\n // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.\n x: handleEnds[handleIndex] + (handleIndex ? -1 : 1),\n y: size[1] / 2 - handleHeight / 2\n });\n }, this);\n\n // Filler\n displaybles.filler.setShape({\n x: handleInterval[0],\n y: 0,\n width: handleInterval[1] - handleInterval[0],\n height: size[1]\n });\n\n const viewExtent = {\n x: handleInterval[0],\n width: handleInterval[1] - handleInterval[0]\n };\n // Move handle\n if (displaybles.moveHandle) {\n displaybles.moveHandle.setShape(viewExtent);\n displaybles.moveZone.setShape(viewExtent);\n // Force update path on the invisible object\n displaybles.moveZone.getBoundingRect();\n displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2);\n }\n\n // update clip path of shadow.\n const dataShadowSegs = displaybles.dataShadowSegs;\n const segIntervals = [0, handleInterval[0], handleInterval[1], size[0]];\n\n for (let i = 0; i < dataShadowSegs.length; i++) {\n const segGroup = dataShadowSegs[i];\n let clipPath = segGroup.getClipPath();\n if (!clipPath) {\n clipPath = new graphic.Rect();\n segGroup.setClipPath(clipPath);\n }\n clipPath.setShape({\n x: segIntervals[i],\n y: 0,\n width: segIntervals[i + 1] - segIntervals[i],\n height: size[1]\n });\n }\n\n this._updateDataInfo(nonRealtime);\n }\n\n private _updateDataInfo(nonRealtime?: boolean) {\n const dataZoomModel = this.dataZoomModel;\n const displaybles = this._displayables;\n const handleLabels = displaybles.handleLabels;\n const orient = this._orient;\n let labelTexts = ['', ''];\n\n // FIXME\n // date\u578B\uFF0C\u652F\u6301formatter\uFF0Cautoformatter\uFF08ec2 date.getAutoFormatter\uFF09\n if (dataZoomModel.get('showDetail')) {\n const axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n const axis = axisProxy.getAxisModel().axis;\n const range = this._range;\n\n const dataInterval = nonRealtime\n // See #4434, data and axis are not processed and reset yet in non-realtime mode.\n ? axisProxy.calculateDataWindow({\n start: range[0], end: range[1]\n }).valueWindow\n : axisProxy.getDataValueWindow();\n\n labelTexts = [\n this._formatLabel(dataInterval[0], axis),\n this._formatLabel(dataInterval[1], axis)\n ];\n }\n }\n\n const orderedHandleEnds = asc(this._handleEnds.slice());\n\n setLabel.call(this, 0);\n setLabel.call(this, 1);\n\n function setLabel(this: SliderZoomView, handleIndex: 0 | 1) {\n // Label\n // Text should not transform by barGroup.\n // Ignore handlers transform\n const barTransform = graphic.getTransform(\n displaybles.handles[handleIndex].parent, this.group\n );\n const direction = graphic.transformDirection(\n handleIndex === 0 ? 'right' : 'left', barTransform\n );\n const offset = this._handleWidth / 2 + LABEL_GAP;\n const textPoint = graphic.applyTransform(\n [\n orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset),\n this._size[1] / 2\n ],\n barTransform\n );\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n verticalAlign: orient === HORIZONTAL ? 'middle' : direction as ZRTextVerticalAlign,\n align: orient === HORIZONTAL ? direction as ZRTextAlign : 'center',\n text: labelTexts[handleIndex]\n });\n }\n }\n\n private _formatLabel(value: ParsedValue, axis: Axis) {\n const dataZoomModel = this.dataZoomModel;\n const labelFormatter = dataZoomModel.get('labelFormatter');\n\n let labelPrecision = dataZoomModel.get('labelPrecision');\n if (labelPrecision == null || labelPrecision === 'auto') {\n labelPrecision = axis.getPixelPrecision();\n }\n\n const valueStr = (value == null || isNaN(value as number))\n ? ''\n // FIXME Glue code\n : (axis.type === 'category' || axis.type === 'time')\n ? axis.scale.getLabel({\n value: Math.round(value as number)\n })\n // param of toFixed should less then 20.\n : (value as number).toFixed(Math.min(labelPrecision as number, 20));\n\n return isFunction(labelFormatter)\n ? labelFormatter(value as number, valueStr)\n : isString(labelFormatter)\n ? labelFormatter.replace('{value}', valueStr)\n : valueStr;\n }\n\n /**\n * @param showOrHide true: show, false: hide\n */\n private _showDataInfo(showOrHide?: boolean) {\n // Always show when drgging.\n showOrHide = this._dragging || showOrHide;\n const displayables = this._displayables;\n const handleLabels = displayables.handleLabels;\n handleLabels[0].attr('invisible', !showOrHide);\n handleLabels[1].attr('invisible', !showOrHide);\n\n // Highlight move handle\n displayables.moveHandle\n && this.api[showOrHide ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1);\n }\n\n private _onDragMove(handleIndex: 0 | 1 | 'all', dx: number, dy: number, event: ZRElementEvent) {\n this._dragging = true;\n\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(event.event);\n\n // Transform dx, dy to bar coordination.\n const barTransform = this._displayables.sliderGroup.getLocalTransform();\n const vertex = graphic.applyTransform([dx, dy], barTransform, true);\n\n const changed = this._updateInterval(handleIndex, vertex[0]);\n\n const realtime = this.dataZoomModel.get('realtime');\n\n this._updateView(!realtime);\n\n // Avoid dispatch dataZoom repeatly but range not changed,\n // which cause bad visual effect when progressive enabled.\n changed && realtime && this._dispatchZoomAction(true);\n }\n\n private _onDragEnd() {\n this._dragging = false;\n this._showDataInfo(false);\n\n // While in realtime mode and stream mode, dispatch action when\n // drag end will cause the whole view rerender, which is unnecessary.\n const realtime = this.dataZoomModel.get('realtime');\n !realtime && this._dispatchZoomAction(false);\n }\n\n private _onClickPanel(e: ZRElementEvent) {\n const size = this._size;\n const localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);\n\n if (localPoint[0] < 0 || localPoint[0] > size[0]\n || localPoint[1] < 0 || localPoint[1] > size[1]\n ) {\n return;\n }\n\n const handleEnds = this._handleEnds;\n const center = (handleEnds[0] + handleEnds[1]) / 2;\n\n const changed = this._updateInterval('all', localPoint[0] - center);\n this._updateView();\n changed && this._dispatchZoomAction(false);\n }\n\n private _onBrushStart(e: ZRElementEvent) {\n const x = e.offsetX;\n const y = e.offsetY;\n this._brushStart = new graphic.Point(x, y);\n\n this._brushing = true;\n\n this._brushStartTime = +new Date();\n // this._updateBrushRect(x, y);\n }\n\n private _onBrushEnd(e: ZRElementEvent) {\n if (!this._brushing) {\n return;\n }\n\n const brushRect = this._displayables.brushRect;\n this._brushing = false;\n\n if (!brushRect) {\n return;\n }\n\n brushRect.attr('ignore', true);\n\n const brushShape = brushRect.shape;\n\n const brushEndTime = +new Date();\n // console.log(brushEndTime - this._brushStartTime);\n if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) {\n // Will treat it as a click\n return;\n }\n\n const viewExtend = this._getViewExtent();\n const percentExtent = [0, 100];\n\n this._range = asc([\n linearMap(brushShape.x, viewExtend, percentExtent, true),\n linearMap(brushShape.x + brushShape.width, viewExtend, percentExtent, true)\n ]);\n\n this._handleEnds = [brushShape.x, brushShape.x + brushShape.width];\n\n this._updateView();\n\n this._dispatchZoomAction(false);\n }\n\n private _onBrush(e: ZRElementEvent) {\n if (this._brushing) {\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(e.event);\n\n this._updateBrushRect(e.offsetX, e.offsetY);\n }\n }\n\n private _updateBrushRect(mouseX: number, mouseY: number) {\n const displayables = this._displayables;\n const dataZoomModel = this.dataZoomModel;\n let brushRect = displayables.brushRect;\n if (!brushRect) {\n brushRect = displayables.brushRect = new Rect({\n silent: true,\n style: dataZoomModel.getModel('brushStyle').getItemStyle()\n });\n displayables.sliderGroup.add(brushRect);\n }\n\n brushRect.attr('ignore', false);\n\n const brushStart = this._brushStart;\n\n const sliderGroup = this._displayables.sliderGroup;\n\n const endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY);\n const startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y);\n\n const size = this._size;\n\n endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0);\n\n brushRect.setShape({\n x: startPoint[0], y: 0,\n width: endPoint[0] - startPoint[0], height: size[1]\n });\n }\n\n /**\n * This action will be throttled.\n */\n _dispatchZoomAction(realtime: boolean) {\n const range = this._range;\n\n this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n dataZoomId: this.dataZoomModel.id,\n animation: realtime ? REALTIME_ANIMATION_CONFIG : null,\n start: range[0],\n end: range[1]\n });\n }\n\n private _findCoordRect() {\n // Find the grid coresponding to the first axis referred by dataZoom.\n let rect: RectLike;\n const coordSysInfoList = collectReferCoordSysModelInfo(this.dataZoomModel).infoList;\n\n if (!rect && coordSysInfoList.length) {\n const coordSys = coordSysInfoList[0].model.coordinateSystem;\n rect = coordSys.getRect && coordSys.getRect();\n }\n\n if (!rect) {\n const width = this.api.getWidth();\n const height = this.api.getHeight();\n rect = {\n x: width * 0.2,\n y: height * 0.2,\n width: width * 0.6,\n height: height * 0.6\n };\n }\n\n return rect;\n }\n\n}\n\nfunction getOtherDim(thisDim: 'x' | 'y' | 'radius' | 'angle' | 'single' | 'z') {\n // FIXME\n // \u8FD9\u4E2A\u903B\u8F91\u548CgetOtherAxis\u91CC\u4E00\u81F4\uFF0C\u4F46\u662F\u5199\u5728\u8FD9\u91CC\u662F\u5426\u4E0D\u597D\n const map = {x: 'y', y: 'x', radius: 'angle', angle: 'radius'};\n return map[thisDim as 'x' | 'y' | 'radius' | 'angle'];\n}\n\nfunction getCursor(orient: LayoutOrient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default SliderZoomView;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport SliderZoomModel from './SliderZoomModel';\nimport SliderZoomView from './SliderZoomView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerComponentModel(SliderZoomModel);\n registers.registerComponentView(SliderZoomView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installDataZoomInside} from './installDataZoomInside';\nimport {install as installDataZoomSlider} from './installDataZoomSlider';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installDataZoomInside);\n use(installDataZoomSlider);\n\n // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual mapping.\n */\n\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst visualDefault = {\n /**\n * @public\n */\n get: function (visualType: string, key: 'active' | 'inactive', isCategory?: boolean) {\n const value = zrUtil.clone(\n (defaultOption[visualType] || {})[key]\n );\n\n return isCategory\n ? (zrUtil.isArray(value) ? value[value.length - 1] : value)\n : value;\n }\n};\n\nconst defaultOption: {[key: string]: {\n active: string[] | number[]\n inactive: string[] | number[]\n}} = {\n\n color: {\n active: ['#006edd', '#e0ffff'],\n inactive: ['rgba(0,0,0,0)']\n },\n\n colorHue: {\n active: [0, 360],\n inactive: [0, 0]\n },\n\n colorSaturation: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n colorLightness: {\n active: [0.9, 0.5],\n inactive: [0, 0]\n },\n\n colorAlpha: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n opacity: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n\n symbol: {\n active: ['circle', 'roundRect', 'diamond'],\n inactive: ['none']\n },\n\n symbolSize: {\n active: [10, 50],\n inactive: [0, 0]\n }\n};\n\nexport default visualDefault;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport env from 'zrender/src/core/env';\nimport visualDefault from '../../visual/visualDefault';\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport * as visualSolution from '../../visual/visualSolution';\nimport * as modelUtil from '../../util/model';\nimport * as numberUtil from '../../util/number';\nimport {\n ComponentOption,\n BoxLayoutOptionMixin,\n LabelOption,\n ColorString,\n ZRColor,\n BorderOptionMixin,\n OptionDataValue,\n BuiltinVisualProperty,\n DimensionIndex\n} from '../../util/types';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport GlobalModel from '../../model/Global';\nimport SeriesModel from '../../model/Series';\nimport SeriesData from '../../data/SeriesData';\n\nconst mapVisual = VisualMapping.mapVisual;\nconst eachVisual = VisualMapping.eachVisual;\nconst isArray = zrUtil.isArray;\nconst each = zrUtil.each;\nconst asc = numberUtil.asc;\nconst linearMap = numberUtil.linearMap;\n\ntype VisualOptionBase = {[key in BuiltinVisualProperty]?: any};\n\ntype LabelFormatter = (min: OptionDataValue, max?: OptionDataValue) => string;\n\ntype VisualState = VisualMapModel['stateList'][number];\nexport interface VisualMapOption extends\n ComponentOption,\n BoxLayoutOptionMixin,\n BorderOptionMixin {\n\n mainType?: 'visualMap'\n\n show?: boolean\n\n align?: string\n\n realtime?: boolean\n /**\n * 'all' or null/undefined: all series.\n * A number or an array of number: the specified series.\n * set min: 0, max: 200, only for campatible with ec2.\n * In fact min max should not have default value.\n */\n seriesIndex?: 'all' | number[] | number\n\n /**\n * min value, must specified if pieces is not specified.\n */\n min?: number\n\n /**\n * max value, must specified if pieces is not specified.\n */\n max?: number\n /**\n * Dimension to be encoded\n */\n dimension?: number\n\n /**\n * Visual configuration for the data in selection\n */\n inRange?: T\n /**\n * Visual configuration for the out of selection\n */\n outOfRange?: T\n\n controller?: {\n inRange?: T\n outOfRange?: T\n }\n target?: {\n inRange?: T\n outOfRange?: T\n }\n\n /**\n * Width of the display item\n */\n itemWidth?: number\n /**\n * Height of the display item\n */\n itemHeight?: number\n\n inverse?: boolean\n\n orient?: 'horizontal' | 'vertical'\n\n backgroundColor?: ZRColor\n contentColor?: ZRColor\n\n inactiveColor?: ZRColor\n\n /**\n * Padding of the component. Can be an array similar to CSS\n */\n padding?: number[] | number\n /**\n * Gap between text and item\n */\n textGap?: number\n\n precision?: number\n\n /**\n * @deprecated\n * Option from version 2\n */\n color?: ColorString[]\n\n formatter?: string | LabelFormatter\n\n /**\n * Text on the both end. Such as ['High', 'Low']\n */\n text?: string[]\n\n textStyle?: LabelOption\n\n\n categories?: unknown\n}\n\nexport interface VisualMeta {\n stops: { value: number, color: ColorString}[]\n outerColors: ColorString[]\n\n dimension?: DimensionIndex\n}\n\nclass VisualMapModel extends ComponentModel {\n\n static type = 'visualMap';\n type = VisualMapModel.type;\n\n static readonly dependencies = ['series'];\n\n readonly stateList = ['inRange', 'outOfRange'] as const;\n\n readonly replacableOptionKeys = [\n 'inRange', 'outOfRange', 'target', 'controller', 'color'\n ] as const;\n\n readonly layoutMode = {\n type: 'box', ignoreSize: true\n } as const;\n\n /**\n * [lowerBound, upperBound]\n */\n dataBound = [-Infinity, Infinity];\n\n protected _dataExtent: [number, number];\n\n targetVisuals = {} as ReturnType;\n\n controllerVisuals = {} as ReturnType;\n\n textStyleModel: Model;\n\n itemSize: number[];\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n }\n\n /**\n * @protected\n */\n optionUpdated(newOption: Opts, isInit?: boolean) {\n const thisOption = this.option;\n\n // FIXME\n // necessary?\n // Disable realtime view update if canvas is not supported.\n if (!env.canvasSupported) {\n thisOption.realtime = false;\n }\n\n !isInit && visualSolution.replaceVisualOption(\n thisOption, newOption, this.replacableOptionKeys\n );\n\n this.textStyleModel = this.getModel('textStyle');\n\n this.resetItemSize();\n\n this.completeVisualOption();\n }\n\n /**\n * @protected\n */\n resetVisual(\n supplementVisualOption: (this: this, mappingOption: VisualMappingOption, state: string) => void\n ) {\n const stateList = this.stateList;\n supplementVisualOption = zrUtil.bind(supplementVisualOption, this);\n\n this.controllerVisuals = visualSolution.createVisualMappings(\n this.option.controller, stateList, supplementVisualOption\n );\n this.targetVisuals = visualSolution.createVisualMappings(\n this.option.target, stateList, supplementVisualOption\n );\n }\n\n /**\n * @public\n */\n getItemSymbol(): string {\n return null;\n }\n\n /**\n * @protected\n * @return {Array.} An array of series indices.\n */\n getTargetSeriesIndices() {\n const optionSeriesIndex = this.option.seriesIndex;\n let seriesIndices: number[] = [];\n\n if (optionSeriesIndex == null || optionSeriesIndex === 'all') {\n this.ecModel.eachSeries(function (seriesModel, index) {\n seriesIndices.push(index);\n });\n }\n else {\n seriesIndices = modelUtil.normalizeToArray(optionSeriesIndex);\n }\n\n return seriesIndices;\n }\n\n /**\n * @public\n */\n eachTargetSeries(\n callback: (this: Ctx, series: SeriesModel) => void,\n context?: Ctx\n ) {\n zrUtil.each(this.getTargetSeriesIndices(), function (seriesIndex) {\n const seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);\n if (seriesModel) {\n callback.call(context, seriesModel);\n }\n }, this);\n }\n\n /**\n * @pubilc\n */\n isTargetSeries(seriesModel: SeriesModel) {\n let is = false;\n this.eachTargetSeries(function (model) {\n model === seriesModel && (is = true);\n });\n return is;\n }\n\n /**\n * @example\n * this.formatValueText(someVal); // format single numeric value to text.\n * this.formatValueText(someVal, true); // format single category value to text.\n * this.formatValueText([min, max]); // format numeric min-max to text.\n * this.formatValueText([this.dataBound[0], max]); // using data lower bound.\n * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.\n *\n * @param value Real value, or this.dataBound[0 or 1].\n * @param isCategory Only available when value is number.\n * @param edgeSymbols Open-close symbol when value is interval.\n * @protected\n */\n formatValueText(\n value: number | string | number[],\n isCategory?: boolean,\n edgeSymbols?: string[]\n ): string {\n const option = this.option;\n const precision = option.precision;\n const dataBound = this.dataBound;\n const formatter = option.formatter;\n let isMinMax: boolean;\n edgeSymbols = edgeSymbols || ['<', '>'] as [string, string];\n\n if (zrUtil.isArray(value)) {\n value = value.slice();\n isMinMax = true;\n }\n\n const textValue = isCategory\n ? value as string // Value is string when isCategory\n : (isMinMax\n ? [toFixed((value as number[])[0]), toFixed((value as number[])[1])]\n : toFixed(value as number)\n );\n\n if (zrUtil.isString(formatter)) {\n return formatter\n .replace('{value}', isMinMax ? (textValue as string[])[0] : textValue as string)\n .replace('{value2}', isMinMax ? (textValue as string[])[1] : textValue as string);\n }\n else if (zrUtil.isFunction(formatter)) {\n return isMinMax\n ? formatter((value as number[])[0], (value as number[])[1])\n : formatter(value as number);\n }\n\n if (isMinMax) {\n if ((value as number[])[0] === dataBound[0]) {\n return edgeSymbols[0] + ' ' + textValue[1];\n }\n else if ((value as number[])[1] === dataBound[1]) {\n return edgeSymbols[1] + ' ' + textValue[0];\n }\n else {\n return textValue[0] + ' - ' + textValue[1];\n }\n }\n else { // Format single value (includes category case).\n return textValue as string;\n }\n\n function toFixed(val: number) {\n return val === dataBound[0]\n ? 'min'\n : val === dataBound[1]\n ? 'max'\n : (+val).toFixed(Math.min(precision, 20));\n }\n }\n\n /**\n * @protected\n */\n resetExtent() {\n const thisOption = this.option;\n\n // Can not calculate data extent by data here.\n // Because series and data may be modified in processing stage.\n // So we do not support the feature \"auto min/max\".\n\n const extent = asc([thisOption.min, thisOption.max] as [number, number]);\n\n this._dataExtent = extent;\n }\n\n /**\n * PENDING:\n * delete this method if no outer usage.\n *\n * Return Concrete dimention. If return null/undefined, no dimension used.\n */\n // getDataDimension(data: SeriesData) {\n // const optDim = this.option.dimension;\n\n // if (optDim != null) {\n // return data.getDimension(optDim);\n // }\n\n // const dimNames = data.dimensions;\n // for (let i = dimNames.length - 1; i >= 0; i--) {\n // const dimName = dimNames[i];\n // const dimInfo = data.getDimensionInfo(dimName);\n // if (!dimInfo.isCalculationCoord) {\n // return dimName;\n // }\n // }\n // }\n\n getDataDimensionIndex(data: SeriesData): DimensionIndex {\n const optDim = this.option.dimension;\n\n if (optDim != null) {\n return data.getDimensionIndex(optDim);\n }\n\n const dimNames = data.dimensions;\n for (let i = dimNames.length - 1; i >= 0; i--) {\n const dimName = dimNames[i];\n const dimInfo = data.getDimensionInfo(dimName);\n if (!dimInfo.isCalculationCoord) {\n return dimInfo.storageDimensionIndex;\n }\n }\n }\n\n getExtent() {\n return this._dataExtent.slice() as [number, number];\n }\n\n completeVisualOption() {\n\n const ecModel = this.ecModel;\n const thisOption = this.option;\n const base = {\n inRange: thisOption.inRange,\n outOfRange: thisOption.outOfRange\n };\n\n const target = thisOption.target || (thisOption.target = {});\n const controller = thisOption.controller || (thisOption.controller = {});\n\n zrUtil.merge(target, base); // Do not override\n zrUtil.merge(controller, base); // Do not override\n\n const isCategory = this.isCategory();\n\n completeSingle.call(this, target);\n completeSingle.call(this, controller);\n completeInactive.call(this, target, 'inRange', 'outOfRange');\n // completeInactive.call(this, target, 'outOfRange', 'inRange');\n completeController.call(this, controller);\n\n function completeSingle(this: VisualMapModel, base: VisualMapOption['target']) {\n // Compatible with ec2 dataRange.color.\n // The mapping order of dataRange.color is: [high value, ..., low value]\n // whereas inRange.color and outOfRange.color is [low value, ..., high value]\n // Notice: ec2 has no inverse.\n if (isArray(thisOption.color)\n // If there has been inRange: {symbol: ...}, adding color is a mistake.\n // So adding color only when no inRange defined.\n && !base.inRange\n ) {\n base.inRange = {color: thisOption.color.slice().reverse()};\n }\n\n // Compatible with previous logic, always give a defautl color, otherwise\n // simple config with no inRange and outOfRange will not work.\n // Originally we use visualMap.color as the default color, but setOption at\n // the second time the default color will be erased. So we change to use\n // constant DEFAULT_COLOR.\n // If user do not want the default color, set inRange: {color: null}.\n base.inRange = base.inRange || {color: ecModel.get('gradientColor')};\n }\n\n function completeInactive(\n this: VisualMapModel,\n base: VisualMapOption['target'],\n stateExist: VisualState,\n stateAbsent: VisualState\n ) {\n const optExist = base[stateExist];\n let optAbsent = base[stateAbsent];\n\n if (optExist && !optAbsent) {\n optAbsent = base[stateAbsent] = {};\n each(optExist, function (visualData, visualType: BuiltinVisualProperty) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n const defa = visualDefault.get(visualType, 'inactive', isCategory);\n\n if (defa != null) {\n optAbsent[visualType] = defa;\n\n // Compatibable with ec2:\n // Only inactive color to rgba(0,0,0,0) can not\n // make label transparent, so use opacity also.\n if (visualType === 'color'\n && !optAbsent.hasOwnProperty('opacity')\n && !optAbsent.hasOwnProperty('colorAlpha')\n ) {\n optAbsent.opacity = [0, 0];\n }\n }\n });\n }\n }\n\n function completeController(this: VisualMapModel, controller?: VisualMapOption['controller']) {\n const symbolExists = (controller.inRange || {}).symbol\n || (controller.outOfRange || {}).symbol;\n const symbolSizeExists = (controller.inRange || {}).symbolSize\n || (controller.outOfRange || {}).symbolSize;\n const inactiveColor = this.get('inactiveColor');\n const itemSymbol = this.getItemSymbol();\n const defaultSymbol = itemSymbol || 'roundRect';\n\n each(this.stateList, function (state: VisualState) {\n\n const itemSize = this.itemSize;\n let visuals = controller[state];\n\n // Set inactive color for controller if no other color\n // attr (like colorAlpha) specified.\n if (!visuals) {\n visuals = controller[state] = {\n color: isCategory ? inactiveColor : [inactiveColor]\n };\n }\n\n // Consistent symbol and symbolSize if not specified.\n if (visuals.symbol == null) {\n visuals.symbol = symbolExists\n && zrUtil.clone(symbolExists)\n || (isCategory ? defaultSymbol : [defaultSymbol]);\n }\n if (visuals.symbolSize == null) {\n visuals.symbolSize = symbolSizeExists\n && zrUtil.clone(symbolSizeExists)\n || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);\n }\n\n // Filter none\n visuals.symbol = mapVisual(visuals.symbol, function (symbol) {\n return symbol === 'none' ? defaultSymbol : symbol;\n });\n\n // Normalize symbolSize\n const symbolSize = visuals.symbolSize;\n\n if (symbolSize != null) {\n let max = -Infinity;\n // symbolSize can be object when categories defined.\n eachVisual(symbolSize, function (value) {\n value > max && (max = value);\n });\n visuals.symbolSize = mapVisual(symbolSize, function (value) {\n return linearMap(value, [0, max], [0, itemSize[0]], true);\n });\n }\n\n }, this);\n }\n }\n\n resetItemSize() {\n this.itemSize = [\n parseFloat(this.get('itemWidth') as unknown as string),\n parseFloat(this.get('itemHeight') as unknown as string)\n ];\n }\n\n isCategory() {\n return !!this.option.categories;\n }\n\n /**\n * @public\n * @abstract\n */\n setSelected(selected?: any) {}\n\n getSelected(): any {\n return null;\n }\n\n /**\n * @public\n * @abstract\n */\n getValueState(value: any): VisualMapModel['stateList'][number] {\n return null;\n }\n\n /**\n * FIXME\n * Do not publish to thirt-part-dev temporarily\n * util the interface is stable. (Should it return\n * a function but not visual meta?)\n *\n * @pubilc\n * @abstract\n * @param getColorVisual\n * params: value, valueState\n * return: color\n * @return {Object} visualMeta\n * should includes {stops, outerColors}\n * outerColor means [colorBeyondMinValue, colorBeyondMaxValue]\n */\n getVisualMeta(getColorVisual: (value: number, valueState: VisualState) => string): VisualMeta {\n return null;\n }\n\n\n static defaultOption: VisualMapOption = {\n show: true,\n\n zlevel: 0,\n z: 4,\n\n seriesIndex: 'all',\n\n min: 0,\n max: 200,\n\n left: 0,\n right: null,\n top: null,\n bottom: 0,\n\n itemWidth: null,\n itemHeight: null,\n inverse: false,\n orient: 'vertical', // 'horizontal' \u00A6 'vertical'\n\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc', // \u503C\u57DF\u8FB9\u6846\u989C\u8272\n contentColor: '#5793f3',\n inactiveColor: '#aaa',\n borderWidth: 0,\n padding: 5,\n // \u63A5\u53D7\u6570\u7EC4\u5206\u522B\u8BBE\u5B9A\u4E0A\u53F3\u4E0B\u5DE6\u8FB9\u8DDD\uFF0C\u540Ccss\n textGap: 10, //\n precision: 0, // \u5C0F\u6570\u7CBE\u5EA6\uFF0C\u9ED8\u8BA4\u4E3A0\uFF0C\u65E0\u5C0F\u6570\u70B9\n\n textStyle: {\n color: '#333' // \u503C\u57DF\u6587\u5B57\u989C\u8272\n }\n };\n}\n\nexport default VisualMapModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapModel, { VisualMapOption, VisualMeta } from './VisualMapModel';\nimport * as numberUtil from '../../util/number';\nimport { VisualMappingOption } from '../../visual/VisualMapping';\nimport { inheritDefaultOption } from '../../util/component';\nimport { ItemStyleOption } from '../../util/types';\n\n// Constant\nconst DEFAULT_BAR_BOUND = [20, 140];\n\ntype RangeWithAuto = {\n auto?: 0 | 1\n};\n\ntype VisualState = VisualMapModel['stateList'][number];\n\nexport interface ContinousVisualMapOption extends VisualMapOption {\n\n align?: 'auto' | 'left' | 'right' | 'top' | 'bottom'\n\n /**\n * This prop effect default component type determine\n * @see echarts/component/visualMap/typeDefaulter.\n */\n calculable?: boolean\n\n /**\n * selected range. In default case `range` is [min, max]\n * and can auto change along with modification of min max,\n * util user specifid a range.\n */\n range?: number[]\n /**\n * Whether to enable hover highlight.\n */\n hoverLink?: boolean\n\n /**\n * The extent of hovered data.\n */\n hoverLinkDataSize?: number\n /**\n * Whether trigger hoverLink when hover handle.\n * If not specified, follow the value of `realtime`.\n */\n hoverLinkOnHandle?: boolean,\n\n handleIcon?: string,\n // Percent of the item width\n handleSize?: string | number,\n handleStyle?: ItemStyleOption\n\n indicatorIcon?: string,\n // Percent of the item width\n indicatorSize?: string | number,\n indicatorStyle?: ItemStyleOption\n\n emphasis?: {\n handleStyle?: ItemStyleOption\n }\n}\n\nclass ContinuousModel extends VisualMapModel {\n\n static type = 'visualMap.continuous' as const;\n type = ContinuousModel.type;\n\n /**\n * @override\n */\n optionUpdated(newOption: ContinousVisualMapOption, isInit: boolean) {\n super.optionUpdated.apply(this, arguments as any);\n\n this.resetExtent();\n\n this.resetVisual(function (mappingOption?: VisualMappingOption) {\n mappingOption.mappingMethod = 'linear';\n mappingOption.dataExtent = this.getExtent();\n });\n\n this._resetRange();\n }\n\n /**\n * @protected\n * @override\n */\n resetItemSize() {\n super.resetItemSize.apply(this, arguments as any);\n\n const itemSize = this.itemSize;\n\n (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);\n (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);\n }\n\n /**\n * @private\n */\n _resetRange() {\n const dataExtent = this.getExtent();\n const range = this.option.range;\n\n if (!range || (range as RangeWithAuto).auto) {\n // `range` should always be array (so we dont use other\n // value like 'auto') for user-friend. (consider getOption).\n (dataExtent as RangeWithAuto).auto = 1;\n this.option.range = dataExtent;\n }\n else if (zrUtil.isArray(range)) {\n if (range[0] > range[1]) {\n range.reverse();\n }\n range[0] = Math.max(range[0], dataExtent[0]);\n range[1] = Math.min(range[1], dataExtent[1]);\n }\n }\n\n /**\n * @protected\n * @override\n */\n completeVisualOption() {\n super.completeVisualOption.apply(this, arguments as any);\n\n zrUtil.each(this.stateList, function (state: VisualState) {\n const symbolSize = this.option.controller[state].symbolSize;\n if (symbolSize && symbolSize[0] !== symbolSize[1]) {\n symbolSize[0] = symbolSize[1] / 3; // For good looking.\n }\n }, this);\n }\n\n /**\n * @override\n */\n setSelected(selected: number[]) {\n this.option.range = selected.slice();\n this._resetRange();\n }\n\n /**\n * @public\n */\n getSelected(): [number, number] {\n const dataExtent = this.getExtent();\n\n const dataInterval = numberUtil.asc(\n (this.get('range') || []).slice()\n ) as [number, number];\n\n // Clamp\n dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);\n dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);\n dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);\n dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);\n\n return dataInterval;\n }\n\n /**\n * @override\n */\n getValueState(value: number): VisualState {\n const range = this.option.range;\n const dataExtent = this.getExtent();\n\n // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.\n // range[1] is processed likewise.\n return (\n (range[0] <= dataExtent[0] || range[0] <= value)\n && (range[1] >= dataExtent[1] || value <= range[1])\n ) ? 'inRange' : 'outOfRange';\n }\n\n findTargetDataIndices(range: number[]) {\n type DataIndices = {\n seriesId: string\n dataIndex: number[]\n };\n const result: DataIndices[] = [];\n\n this.eachTargetSeries(function (seriesModel) {\n const dataIndices: number[] = [];\n const data = seriesModel.getData();\n\n data.each(this.getDataDimensionIndex(data), function (value, dataIndex) {\n range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);\n }, this);\n\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n\n return result;\n }\n\n /**\n * @implement\n */\n getVisualMeta(\n getColorVisual: (value: number, valueState: VisualState) => string\n ) {\n type ColorStop = VisualMeta['stops'][number];\n const oVals = getColorStopValues(this, 'outOfRange', this.getExtent());\n const iVals = getColorStopValues(this, 'inRange', this.option.range.slice());\n const stops: ColorStop[] = [];\n\n function setStop(value: number, valueState: VisualState) {\n stops.push({\n value: value,\n color: getColorVisual(value, valueState)\n });\n }\n\n // Format to: outOfRange -- inRange -- outOfRange.\n let iIdx = 0;\n let oIdx = 0;\n const iLen = iVals.length;\n const oLen = oVals.length;\n\n for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {\n // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.\n if (oVals[oIdx] < iVals[iIdx]) {\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n for (let first = 1; iIdx < iLen; iIdx++, first = 0) {\n // If range is full, value beyond min, max will be clamped.\n // make a singularity\n first && stops.length && setStop(iVals[iIdx], 'outOfRange');\n setStop(iVals[iIdx], 'inRange');\n }\n for (let first = 1; oIdx < oLen; oIdx++) {\n if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {\n // make a singularity\n if (first) {\n stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');\n first = 0;\n }\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n const stopsLen = stops.length;\n\n return {\n stops: stops,\n outerColors: [\n stopsLen ? stops[0].color : 'transparent',\n stopsLen ? stops[stopsLen - 1].color : 'transparent'\n ] as VisualMeta['outerColors']\n };\n }\n\n static defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n align: 'auto', // 'auto', 'left', 'right', 'top', 'bottom'\n calculable: false,\n hoverLink: true,\n realtime: true,\n\n handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z',\n handleSize: '120%',\n\n handleStyle: {\n borderColor: '#fff',\n borderWidth: 1\n },\n\n indicatorIcon: 'circle',\n indicatorSize: '50%',\n indicatorStyle: {\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n // emphasis: {\n // handleStyle: {\n // shadowBlur: 3,\n // shadowOffsetX: 1,\n // shadowOffsetY: 1,\n // shadowColor: 'rgba(0,0,0,0.2)'\n // }\n // }\n }) as ContinousVisualMapOption;\n}\n\n\nfunction getColorStopValues(\n visualMapModel: ContinuousModel,\n valueState: VisualState,\n dataExtent: number[]\n) {\n if (dataExtent[0] === dataExtent[1]) {\n return dataExtent.slice();\n }\n\n // When using colorHue mapping, it is not linear color any more.\n // Moreover, canvas gradient seems not to be accurate linear.\n // FIXME\n // Should be arbitrary value 100? or based on pixel size?\n const count = 200;\n const step = (dataExtent[1] - dataExtent[0]) / count;\n\n let value = dataExtent[0];\n const stopValues = [];\n for (let i = 0; i <= count && value < dataExtent[1]; i++) {\n stopValues.push(value);\n value += step;\n }\n stopValues.push(dataExtent[1]);\n\n return stopValues;\n}\n\nexport default ContinuousModel;\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {Group, Rect} from '../../util/graphic';\nimport * as formatUtil from '../../util/format';\nimport * as layout from '../../util/layout';\nimport VisualMapping from '../../visual/VisualMapping';\nimport ComponentView from '../../view/Component';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport VisualMapModel from './VisualMapModel';\nimport { VisualOptionUnit, ColorString } from '../../util/types';\n\ntype VisualState = VisualMapModel['stateList'][number];\n\nclass VisualMapView extends ComponentView {\n static type = 'visualMap';\n type = VisualMapView.type;\n\n autoPositionValues = {left: 1, right: 1, top: 1, bottom: 1} as const;\n\n ecModel: GlobalModel;\n\n api: ExtensionAPI;\n\n visualMapModel: VisualMapModel;\n\n init(ecModel: GlobalModel, api: ExtensionAPI) {\n this.ecModel = ecModel;\n this.api = api;\n }\n\n /**\n * @protected\n */\n render(\n visualMapModel: VisualMapModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown // TODO: TYPE\n ) {\n this.visualMapModel = visualMapModel;\n\n if (visualMapModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n this.doRender(visualMapModel, ecModel, api, payload);\n }\n\n /**\n * @protected\n */\n renderBackground(group: Group) {\n const visualMapModel = this.visualMapModel;\n const padding = formatUtil.normalizeCssArray(visualMapModel.get('padding') || 0);\n const rect = group.getBoundingRect();\n\n group.add(new Rect({\n z2: -1, // Lay background rect on the lowest layer.\n silent: true,\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[3] + padding[1],\n height: rect.height + padding[0] + padding[2]\n },\n style: {\n fill: visualMapModel.get('backgroundColor'),\n stroke: visualMapModel.get('borderColor'),\n lineWidth: visualMapModel.get('borderWidth')\n }\n }));\n }\n\n /**\n * @protected\n * @param targetValue can be Infinity or -Infinity\n * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'\n * @param opts\n * @param opts.forceState Specify state, instead of using getValueState method.\n * @param opts.convertOpacityToAlpha For color gradient in controller widget.\n * @return {*} Visual value.\n */\n protected getControllerVisual(\n targetValue: number,\n visualCluster: 'color' | 'opacity' | 'symbol' | 'symbolSize',\n opts?: {\n forceState?: VisualState\n convertOpacityToAlpha?: boolean\n }\n ) {\n\n opts = opts || {};\n\n const forceState = opts.forceState;\n const visualMapModel = this.visualMapModel;\n const visualObj: {[key in typeof visualCluster]?: VisualOptionUnit[key]} = {};\n\n // Default values.\n if (visualCluster === 'color') {\n const defaultColor = visualMapModel.get('contentColor');\n visualObj.color = defaultColor as ColorString;\n }\n\n function getter(key: typeof visualCluster) {\n return visualObj[key];\n }\n\n function setter(key: typeof visualCluster, value: any) {\n (visualObj as any)[key] = value;\n }\n\n const mappings = visualMapModel.controllerVisuals[\n forceState || visualMapModel.getValueState(targetValue)\n ];\n const visualTypes = VisualMapping.prepareVisualTypes(mappings);\n\n zrUtil.each(visualTypes, function (type) {\n let visualMapping = mappings[type];\n if (opts.convertOpacityToAlpha && type === 'opacity') {\n type = 'colorAlpha';\n visualMapping = mappings.__alphaForOpacity;\n }\n if (VisualMapping.dependsOn(type, visualCluster)) {\n visualMapping && visualMapping.applyVisual(\n targetValue, getter, setter\n );\n }\n });\n\n return visualObj[visualCluster];\n }\n\n protected positionGroup(group: Group) {\n const model = this.visualMapModel;\n const api = this.api;\n\n layout.positionElement(\n group,\n model.getBoxLayoutParams(),\n {width: api.getWidth(), height: api.getHeight()}\n );\n }\n\n protected doRender(\n visualMapModel: VisualMapModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: unknown\n ) {}\n}\n\nexport default VisualMapView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport {getLayoutRect} from '../../util/layout';\nimport VisualMapModel from './VisualMapModel';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport { Payload } from '../../util/types';\n\nconst paramsSet = [\n ['left', 'right', 'width'],\n ['top', 'bottom', 'height']\n] as const;\nexport type ItemHorizontalAlign = typeof paramsSet[0][number];\nexport type ItemVerticalAlign = typeof paramsSet[1][number];\nexport type ItemAlign = ItemVerticalAlign | ItemHorizontalAlign;\n\n/**\n * @param visualMapModel\n * @param api\n * @param itemSize always [short, long]\n * @return {string} 'left' or 'right' or 'top' or 'bottom'\n */\nexport function getItemAlign(\n visualMapModel: VisualMapModel,\n api: ExtensionAPI,\n itemSize: number[]\n): ItemAlign {\n const modelOption = visualMapModel.option;\n const itemAlign = modelOption.align;\n\n if (itemAlign != null && itemAlign !== 'auto') {\n return itemAlign as ItemAlign;\n }\n\n // Auto decision align.\n const ecSize = {width: api.getWidth(), height: api.getHeight()};\n const realIndex = modelOption.orient === 'horizontal' ? 1 : 0;\n\n const reals = paramsSet[realIndex];\n const fakeValue = [0, null, 10];\n\n const layoutInput = {} as Record;\n for (let i = 0; i < 3; i++) {\n layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];\n layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];\n }\n\n const rParam = ([['x', 'width', 3], ['y', 'height', 0]] as const)[realIndex];\n const rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);\n\n return reals[\n (rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5\n < ecSize[rParam[1]] * 0.5 ? 0 : 1\n ];\n}\n\n/**\n * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and\n * dataIndexInside means filtered index.\n */\n\n // TODO: TYPE more specified payload types.\nexport function makeHighDownBatch(batch: Payload['batch'], visualMapModel: VisualMapModel): Payload['batch'] {\n zrUtil.each(batch || [], function (batchItem) {\n if (batchItem.dataIndex != null) {\n batchItem.dataIndexInside = batchItem.dataIndex;\n batchItem.dataIndex = null;\n }\n batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : '');\n });\n return batch;\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport LinearGradient, { LinearGradientObject } from 'zrender/src/graphic/LinearGradient';\nimport * as eventTool from 'zrender/src/core/event';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport * as helper from './helper';\nimport * as modelUtil from '../../util/model';\nimport VisualMapModel from './VisualMapModel';\nimport ContinuousModel from './ContinuousModel';\nimport GlobalModel from '../../model/Global';\nimport ExtensionAPI from '../../core/ExtensionAPI';\nimport Element, { ElementEvent } from 'zrender/src/Element';\nimport { TextVerticalAlign, TextAlign } from 'zrender/src/core/types';\nimport { ColorString, Payload } from '../../util/types';\nimport { parsePercent } from 'zrender/src/contain/text';\nimport { setAsHighDownDispatcher } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/src/graphic/Image';\nimport { getECData } from '../../util/innerStore';\n\nconst linearMap = numberUtil.linearMap;\nconst each = zrUtil.each;\nconst mathMin = Math.min;\nconst mathMax = Math.max;\n\n// Arbitrary value\nconst HOVER_LINK_SIZE = 12;\nconst HOVER_LINK_OUT = 6;\n\ntype Orient = VisualMapModel['option']['orient'];\n\ntype ShapeStorage = {\n handleThumbs: graphic.Path[]\n handleLabelPoints: number[][]\n handleLabels: graphic.Text[]\n\n inRange: graphic.Polygon\n outOfRange: graphic.Polygon\n\n mainGroup: graphic.Group\n\n indicator: graphic.Path\n indicatorLabel: graphic.Text\n indicatorLabelPoint: number[]\n};\n\ntype TargetDataIndices = ReturnType;\n\ntype BarVisual = {\n barColor: LinearGradient,\n barPoints: number[][]\n handlesColor: ColorString[]\n};\n\ntype Direction = 'left' | 'right' | 'top' | 'bottom';\n// Notice:\n// Any \"interval\" should be by the order of [low, high].\n// \"handle0\" (handleIndex === 0) maps to\n// low data value: this._dataInterval[0] and has low coord.\n// \"handle1\" (handleIndex === 1) maps to\n// high data value: this._dataInterval[1] and has high coord.\n// The logic of transform is implemented in this._createBarGroup.\n\nclass ContinuousView extends VisualMapView {\n static type = 'visualMap.continuous';\n type = ContinuousView.type;\n\n visualMapModel: ContinuousModel;\n\n private _shapes = {} as ShapeStorage;\n\n private _dataInterval: number[] = [];\n\n private _handleEnds: number[] = [];\n\n private _orient: Orient;\n\n private _useHandle: boolean;\n\n private _hoverLinkDataIndices: TargetDataIndices = [];\n\n private _dragging: boolean;\n\n private _hovering: boolean;\n\n private _firstShowIndicator: boolean;\n\n private _api: ExtensionAPI;\n\n\n doRender(\n visualMapModel: ContinuousModel,\n ecModel: GlobalModel,\n api: ExtensionAPI,\n payload: {type: string, from: string}\n ) {\n this._api = api;\n\n if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {\n this._buildView();\n }\n }\n\n private _buildView() {\n this.group.removeAll();\n\n const visualMapModel = this.visualMapModel;\n const thisGroup = this.group;\n\n this._orient = visualMapModel.get('orient');\n this._useHandle = visualMapModel.get('calculable');\n\n this._resetInterval();\n\n this._renderBar(thisGroup);\n\n const dataRangeText = visualMapModel.get('text');\n this._renderEndsText(thisGroup, dataRangeText, 0);\n this._renderEndsText(thisGroup, dataRangeText, 1);\n\n // Do this for background size calculation.\n this._updateView(true);\n\n // After updating view, inner shapes is built completely,\n // and then background can be rendered.\n this.renderBackground(thisGroup);\n\n // Real update view\n this._updateView();\n\n this._enableHoverLinkToSeries();\n this._enableHoverLinkFromSeries();\n\n this.positionGroup(thisGroup);\n }\n\n private _renderEndsText(group: graphic.Group, dataRangeText: string[], endsIndex?: 0 | 1) {\n if (!dataRangeText) {\n return;\n }\n\n // Compatible with ec2, text[0] map to high value, text[1] map low value.\n let text = dataRangeText[1 - endsIndex];\n text = text != null ? text + '' : '';\n\n const visualMapModel = this.visualMapModel;\n const textGap = visualMapModel.get('textGap');\n const itemSize = visualMapModel.itemSize;\n\n const barGroup = this._shapes.mainGroup;\n const position = this._applyTransform(\n [\n itemSize[0] / 2,\n endsIndex === 0 ? -textGap : itemSize[1] + textGap\n ],\n barGroup\n ) as number[];\n const align = this._applyTransform(\n endsIndex === 0 ? 'bottom' : 'top',\n barGroup\n );\n const orient = this._orient;\n const textStyleModel = this.visualMapModel.textStyleModel;\n\n this.group.add(new graphic.Text({\n style: {\n x: position[0],\n y: position[1],\n verticalAlign: orient === 'horizontal' ? 'middle' : align as TextVerticalAlign,\n align: orient === 'horizontal' ? align as TextAlign : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n }\n\n private _renderBar(targetGroup: graphic.Group) {\n const visualMapModel = this.visualMapModel;\n const shapes = this._shapes;\n const itemSize = visualMapModel.itemSize;\n const orient = this._orient;\n const useHandle = this._useHandle;\n const itemAlign = helper.getItemAlign(visualMapModel, this.api, itemSize);\n const mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign);\n\n const gradientBarGroup = new graphic.Group();\n mainGroup.add(gradientBarGroup);\n\n // Bar\n gradientBarGroup.add(shapes.outOfRange = createPolygon());\n gradientBarGroup.add(shapes.inRange = createPolygon(\n null,\n useHandle ? getCursor(this._orient) : null,\n zrUtil.bind(this._dragHandle, this, 'all', false),\n zrUtil.bind(this._dragHandle, this, 'all', true)\n ));\n\n // A border radius clip.\n gradientBarGroup.setClipPath(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: itemSize[0],\n height: itemSize[1],\n r: 3\n }\n }));\n\n const textRect = visualMapModel.textStyleModel.getTextRect('\u56FD');\n const textSize = mathMax(textRect.width, textRect.height);\n\n // Handle\n if (useHandle) {\n shapes.handleThumbs = [];\n shapes.handleLabels = [];\n shapes.handleLabelPoints = [];\n\n this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient);\n this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient);\n }\n\n this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient);\n\n targetGroup.add(mainGroup);\n }\n\n private _createHandle(\n visualMapModel: ContinuousModel,\n mainGroup: graphic.Group,\n handleIndex: 0 | 1,\n itemSize: number[],\n textSize: number,\n orient: Orient\n ) {\n const onDrift = zrUtil.bind(this._dragHandle, this, handleIndex, false);\n const onDragEnd = zrUtil.bind(this._dragHandle, this, handleIndex, true);\n const handleSize = parsePercent(visualMapModel.get('handleSize'), itemSize[0]);\n const handleThumb = createSymbol(\n visualMapModel.get('handleIcon'),\n -handleSize / 2, -handleSize / 2, handleSize, handleSize,\n null, true\n );\n const cursor = getCursor(this._orient);\n handleThumb.attr({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n ondragend: onDragEnd,\n onmousemove(e) {\n eventTool.stop(e.event);\n }\n });\n handleThumb.x = itemSize[0] / 2;\n\n handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle());\n (handleThumb as graphic.Path).setStyle({\n strokeNoScale: true,\n strokeFirst: true\n });\n (handleThumb as graphic.Path).style.lineWidth *= 2;\n\n handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n setAsHighDownDispatcher(handleThumb, true);\n\n mainGroup.add(handleThumb);\n\n // Text is always horizontal layout but should not be effected by\n // transform (orient/inverse). So label is built separately but not\n // use zrender/graphic/helper/RectText, and is located based on view\n // group (according to handleLabelPoint) but not barGroup.\n const textStyleModel = this.visualMapModel.textStyleModel;\n const handleLabel = new graphic.Text({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd,\n style: {\n x: 0, y: 0, text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n handleLabel.ensureState('blur').style = {\n opacity: 0.1\n };\n handleLabel.stateTransition = { duration: 200 };\n\n this.group.add(handleLabel);\n\n const handleLabelPoint = [handleSize, 0];\n\n const shapes = this._shapes;\n shapes.handleThumbs[handleIndex] = handleThumb;\n shapes.handleLabelPoints[handleIndex] = handleLabelPoint;\n shapes.handleLabels[handleIndex] = handleLabel;\n }\n\n private _createIndicator(\n visualMapModel: ContinuousModel,\n mainGroup: graphic.Group,\n itemSize: number[],\n textSize: number,\n orient: Orient\n ) {\n const scale = parsePercent(visualMapModel.get('indicatorSize'), itemSize[0]);\n const indicator = createSymbol(\n visualMapModel.get('indicatorIcon'),\n -scale / 2, -scale / 2, scale, scale,\n null, true\n );\n indicator.attr({\n cursor: 'move',\n invisible: true,\n silent: true,\n x: itemSize[0] / 2\n });\n const indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();\n if (indicator instanceof ZRImage) {\n const pathStyle = indicator.style;\n indicator.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x, y: pathStyle.y,\n width: pathStyle.width, height: pathStyle.height\n }, indicatorStyle));\n }\n else {\n indicator.useStyle(indicatorStyle);\n }\n\n mainGroup.add(indicator);\n\n const textStyleModel = this.visualMapModel.textStyleModel;\n const indicatorLabel = new graphic.Text({\n silent: true,\n invisible: true,\n style: {\n x: 0, y: 0, text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n this.group.add(indicatorLabel);\n\n const indicatorLabelPoint = [\n (orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2,\n 0\n ];\n\n const shapes = this._shapes;\n shapes.indicator = indicator;\n shapes.indicatorLabel = indicatorLabel;\n shapes.indicatorLabelPoint = indicatorLabelPoint;\n\n this._firstShowIndicator = true;\n }\n\n private _dragHandle(\n handleIndex: 0 | 1 | 'all',\n isEnd?: boolean,\n // dx is event from ondragend if isEnd is true. It's not used\n dx?: number | ElementEvent,\n dy?: number\n ) {\n if (!this._useHandle) {\n return;\n }\n\n this._dragging = !isEnd;\n\n if (!isEnd) {\n // Transform dx, dy to bar coordination.\n const vertex = this._applyTransform([dx as number, dy], this._shapes.mainGroup, true) as number[];\n this._updateInterval(handleIndex, vertex[1]);\n\n this._hideIndicator();\n // Considering realtime, update view should be executed\n // before dispatch action.\n this._updateView();\n }\n\n // dragEnd do not dispatch action when realtime.\n if (isEnd === !this.visualMapModel.get('realtime')) { // jshint ignore:line\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: this._dataInterval.slice()\n });\n }\n\n if (isEnd) {\n !this._hovering && this._clearHoverLinkToSeries();\n }\n else if (useHoverLinkOnHandle(this.visualMapModel)) {\n this._doHoverLinkToSeries(this._handleEnds[handleIndex as 0 | 1], false);\n }\n }\n\n private _resetInterval() {\n const visualMapModel = this.visualMapModel;\n\n const dataInterval = this._dataInterval = visualMapModel.getSelected();\n const dataExtent = visualMapModel.getExtent();\n const sizeExtent = [0, visualMapModel.itemSize[1]];\n\n this._handleEnds = [\n linearMap(dataInterval[0], dataExtent, sizeExtent, true),\n linearMap(dataInterval[1], dataExtent, sizeExtent, true)\n ];\n }\n\n /**\n * @private\n * @param {(number|string)} handleIndex 0 or 1 or 'all'\n * @param {number} dx\n * @param {number} dy\n */\n private _updateInterval(handleIndex: 0 | 1 | 'all', delta: number) {\n delta = delta || 0;\n const visualMapModel = this.visualMapModel;\n const handleEnds = this._handleEnds;\n const sizeExtent = [0, visualMapModel.itemSize[1]];\n\n sliderMove(\n delta,\n handleEnds,\n sizeExtent,\n handleIndex,\n // cross is forbiden\n 0\n );\n\n const dataExtent = visualMapModel.getExtent();\n // Update data interval.\n this._dataInterval = [\n linearMap(handleEnds[0], sizeExtent, dataExtent, true),\n linearMap(handleEnds[1], sizeExtent, dataExtent, true)\n ];\n }\n\n private _updateView(forSketch?: boolean) {\n const visualMapModel = this.visualMapModel;\n const dataExtent = visualMapModel.getExtent();\n const shapes = this._shapes;\n\n const outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];\n const inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;\n\n const visualInRange = this._createBarVisual(\n this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange'\n );\n const visualOutOfRange = this._createBarVisual(\n dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange'\n );\n\n shapes.inRange\n .setStyle({\n fill: visualInRange.barColor\n // opacity: visualInRange.opacity\n })\n .setShape('points', visualInRange.barPoints);\n shapes.outOfRange\n .setStyle({\n fill: visualOutOfRange.barColor\n // opacity: visualOutOfRange.opacity\n })\n .setShape('points', visualOutOfRange.barPoints);\n\n this._updateHandle(inRangeHandleEnds, visualInRange);\n }\n\n private _createBarVisual(\n dataInterval: number[],\n dataExtent: number[],\n handleEnds: number[],\n forceState: ContinuousModel['stateList'][number]\n ): BarVisual {\n const opts = {\n forceState: forceState,\n convertOpacityToAlpha: true\n };\n const colorStops = this._makeColorGradient(dataInterval, opts);\n\n const symbolSizes = [\n this.getControllerVisual(dataInterval[0], 'symbolSize', opts) as number,\n this.getControllerVisual(dataInterval[1], 'symbolSize', opts) as number\n ];\n const barPoints = this._createBarPoints(handleEnds, symbolSizes);\n\n return {\n barColor: new LinearGradient(0, 0, 0, 1, colorStops),\n barPoints: barPoints,\n handlesColor: [\n colorStops[0].color,\n colorStops[colorStops.length - 1].color\n ]\n };\n }\n\n private _makeColorGradient(\n dataInterval: number[],\n opts: {\n forceState?: ContinuousModel['stateList'][number]\n convertOpacityToAlpha?: boolean\n }\n ) {\n // Considering colorHue, which is not linear, so we have to sample\n // to calculate gradient color stops, but not only caculate head\n // and tail.\n const sampleNumber = 100; // Arbitrary value.\n const colorStops: LinearGradientObject['colorStops'] = [];\n const step = (dataInterval[1] - dataInterval[0]) / sampleNumber;\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[0], 'color', opts) as ColorString,\n offset: 0\n });\n\n for (let i = 1; i < sampleNumber; i++) {\n const currValue = dataInterval[0] + step * i;\n if (currValue > dataInterval[1]) {\n break;\n }\n colorStops.push({\n color: this.getControllerVisual(currValue, 'color', opts) as ColorString,\n offset: i / sampleNumber\n });\n }\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[1], 'color', opts) as ColorString,\n offset: 1\n });\n\n return colorStops;\n }\n\n private _createBarPoints(handleEnds: number[], symbolSizes: number[]) {\n const itemSize = this.visualMapModel.itemSize;\n\n return [\n [itemSize[0] - symbolSizes[0], handleEnds[0]],\n [itemSize[0], handleEnds[0]],\n [itemSize[0], handleEnds[1]],\n [itemSize[0] - symbolSizes[1], handleEnds[1]]\n ];\n }\n\n private _createBarGroup(itemAlign: helper.ItemAlign) {\n const orient = this._orient;\n const inverse = this.visualMapModel.get('inverse');\n\n return new graphic.Group(\n (orient === 'horizontal' && !inverse)\n ? {scaleX: itemAlign === 'bottom' ? 1 : -1, rotation: Math.PI / 2}\n : (orient === 'horizontal' && inverse)\n ? {scaleX: itemAlign === 'bottom' ? -1 : 1, rotation: -Math.PI / 2}\n : (orient === 'vertical' && !inverse)\n ? {scaleX: itemAlign === 'left' ? 1 : -1, scaleY: -1}\n : {scaleX: itemAlign === 'left' ? 1 : -1}\n );\n }\n\n private _updateHandle(handleEnds: number[], visualInRange: BarVisual) {\n if (!this._useHandle) {\n return;\n }\n\n const shapes = this._shapes;\n const visualMapModel = this.visualMapModel;\n const handleThumbs = shapes.handleThumbs;\n const handleLabels = shapes.handleLabels;\n const itemSize = visualMapModel.itemSize;\n const dataExtent = visualMapModel.getExtent();\n\n each([0, 1], function (handleIndex) {\n const handleThumb = handleThumbs[handleIndex];\n handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);\n handleThumb.y = handleEnds[handleIndex];\n\n const val = linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true);\n const symbolSize = this.getControllerVisual(val, 'symbolSize') as number;\n\n handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0];\n handleThumb.x = itemSize[0] - symbolSize / 2;\n\n // Update handle label position.\n const textPoint = graphic.applyTransform(\n shapes.handleLabelPoints[handleIndex],\n graphic.getTransform(handleThumb, this.group)\n );\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),\n verticalAlign: 'middle',\n align: this._orient === 'vertical' ? this._applyTransform(\n 'left',\n shapes.mainGroup\n ) as TextAlign : 'center'\n });\n }, this);\n }\n\n private _showIndicator(\n cursorValue: number,\n textValue: number,\n rangeSymbol?: string,\n halfHoverLinkSize?: number\n ) {\n const visualMapModel = this.visualMapModel;\n const dataExtent = visualMapModel.getExtent();\n const itemSize = visualMapModel.itemSize;\n const sizeExtent = [0, itemSize[1]];\n\n const shapes = this._shapes;\n const indicator = shapes.indicator;\n if (!indicator) {\n return;\n }\n\n indicator.attr('invisible', false);\n\n const opts = {convertOpacityToAlpha: true};\n const color = this.getControllerVisual(cursorValue, 'color', opts) as ColorString;\n const symbolSize = this.getControllerVisual(cursorValue, 'symbolSize') as number;\n const y = linearMap(cursorValue, dataExtent, sizeExtent, true);\n const x = itemSize[0] - symbolSize / 2;\n\n const oldIndicatorPos = { x: indicator.x, y: indicator.y };\n // Update handle label position.\n indicator.y = y;\n indicator.x = x;\n const textPoint = graphic.applyTransform(\n shapes.indicatorLabelPoint,\n graphic.getTransform(indicator, this.group)\n );\n\n const indicatorLabel = shapes.indicatorLabel;\n indicatorLabel.attr('invisible', false);\n const align = this._applyTransform('left', shapes.mainGroup);\n const orient = this._orient;\n const isHorizontal = orient === 'horizontal';\n indicatorLabel.setStyle({\n text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),\n verticalAlign: isHorizontal ? align as TextVerticalAlign : 'middle',\n align: isHorizontal ? 'center' : align as TextAlign\n });\n\n const indicatorNewProps = {\n x: x,\n y: y,\n style: {\n fill: color\n }\n };\n const labelNewProps = {\n style: {\n x: textPoint[0],\n y: textPoint[1]\n }\n };\n\n if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {\n const animationCfg = {\n duration: 100,\n easing: 'cubicInOut',\n additive: true\n } as const;\n indicator.x = oldIndicatorPos.x;\n indicator.y = oldIndicatorPos.y;\n indicator.animateTo(indicatorNewProps, animationCfg);\n indicatorLabel.animateTo(labelNewProps, animationCfg);\n }\n else {\n indicator.attr(indicatorNewProps);\n indicatorLabel.attr(labelNewProps);\n }\n\n this._firstShowIndicator = false;\n\n const handleLabels = this._shapes.handleLabels;\n if (handleLabels) {\n for (let i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.enterBlur(handleLabels[i]);\n }\n }\n }\n\n private _enableHoverLinkToSeries() {\n const self = this;\n this._shapes.mainGroup\n\n .on('mousemove', function (e) {\n self._hovering = true;\n\n if (!self._dragging) {\n const itemSize = self.visualMapModel.itemSize;\n const pos = self._applyTransform(\n [e.offsetX, e.offsetY], self._shapes.mainGroup, true, true\n );\n // For hover link show when hover handle, which might be\n // below or upper than sizeExtent.\n pos[1] = mathMin(mathMax(0, pos[1]), itemSize[1]);\n self._doHoverLinkToSeries(\n pos[1],\n 0 <= pos[0] && pos[0] <= itemSize[0]\n );\n }\n })\n\n .on('mouseout', function () {\n // When mouse is out of handle, hoverLink still need\n // to be displayed when realtime is set as false.\n self._hovering = false;\n !self._dragging && self._clearHoverLinkToSeries();\n });\n }\n\n private _enableHoverLinkFromSeries() {\n const zr = this.api.getZr();\n\n if (this.visualMapModel.option.hoverLink) {\n zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);\n zr.on('mouseout', this._hideIndicator, this);\n }\n else {\n this._clearHoverLinkFromSeries();\n }\n }\n\n private _doHoverLinkToSeries(cursorPos: number, hoverOnBar?: boolean) {\n const visualMapModel = this.visualMapModel;\n const itemSize = visualMapModel.itemSize;\n\n if (!visualMapModel.option.hoverLink) {\n return;\n }\n\n const sizeExtent = [0, itemSize[1]];\n const dataExtent = visualMapModel.getExtent();\n\n // For hover link show when hover handle, which might be below or upper than sizeExtent.\n cursorPos = mathMin(mathMax(sizeExtent[0], cursorPos), sizeExtent[1]);\n\n const halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);\n const hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];\n const cursorValue = linearMap(cursorPos, sizeExtent, dataExtent, true);\n const valueRange = [\n linearMap(hoverRange[0], sizeExtent, dataExtent, true),\n linearMap(hoverRange[1], sizeExtent, dataExtent, true)\n ];\n // Consider data range is out of visualMap range, see test/visualMap-continuous.html,\n // where china and india has very large population.\n hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);\n hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity);\n\n // Do not show indicator when mouse is over handle,\n // otherwise labels overlap, especially when dragging.\n if (hoverOnBar) {\n if (valueRange[0] === -Infinity) {\n this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);\n }\n else if (valueRange[1] === Infinity) {\n this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);\n }\n else {\n this._showIndicator(cursorValue, cursorValue, '\u2248 ', halfHoverLinkSize);\n }\n }\n\n // When realtime is set as false, handles, which are in barGroup,\n // also trigger hoverLink, which help user to realize where they\n // focus on when dragging. (see test/heatmap-large.html)\n // When realtime is set as true, highlight will not show when hover\n // handle, because the label on handle, which displays a exact value\n // but not range, might mislead users.\n const oldBatch = this._hoverLinkDataIndices;\n let newBatch: TargetDataIndices = [];\n if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {\n newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);\n }\n\n const resultBatches = modelUtil.compressBatches(oldBatch, newBatch);\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(resultBatches[0], visualMapModel));\n this._dispatchHighDown('highlight', helper.makeHighDownBatch(resultBatches[1], visualMapModel));\n }\n\n private _hoverLinkFromSeriesMouseOver(e: ElementEvent) {\n const el = e.target;\n const visualMapModel = this.visualMapModel;\n\n if (!el || getECData(el).dataIndex == null) {\n return;\n }\n const ecData = getECData(el);\n\n const dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex);\n\n if (!visualMapModel.isTargetSeries(dataModel)) {\n return;\n }\n\n const data = dataModel.getData(ecData.dataType);\n const value = data.getStorage().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex) as number;\n\n if (!isNaN(value)) {\n this._showIndicator(value, value);\n }\n }\n\n private _hideIndicator() {\n const shapes = this._shapes;\n shapes.indicator && shapes.indicator.attr('invisible', true);\n shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);\n\n const handleLabels = this._shapes.handleLabels;\n if (handleLabels) {\n for (let i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.leaveBlur(handleLabels[i]);\n }\n }\n }\n\n private _clearHoverLinkToSeries() {\n this._hideIndicator();\n\n const indices = this._hoverLinkDataIndices;\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(indices, this.visualMapModel));\n\n indices.length = 0;\n }\n\n private _clearHoverLinkFromSeries() {\n this._hideIndicator();\n\n const zr = this.api.getZr();\n zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);\n zr.off('mouseout', this._hideIndicator);\n }\n private _applyTransform(vertex: number[], element: Element, inverse?: boolean, global?: boolean): number[]\n private _applyTransform(vertex: Direction, element: Element, inverse?: boolean, global?: boolean): Direction\n private _applyTransform(\n vertex: number[] | Direction,\n element: Element,\n inverse?: boolean,\n global?: boolean\n ) {\n const transform = graphic.getTransform(element, global ? null : this.group);\n\n return zrUtil.isArray(vertex)\n ? graphic.applyTransform(vertex, transform, inverse)\n : graphic.transformDirection(vertex, transform, inverse);\n }\n\n // TODO: TYPE more specified payload types.\n private _dispatchHighDown(type: 'highlight' | 'downplay', batch: Payload['batch']) {\n batch && batch.length && this.api.dispatchAction({\n type: type,\n batch: batch\n });\n }\n\n /**\n * @override\n */\n dispose() {\n this._clearHoverLinkFromSeries();\n this._clearHoverLinkToSeries();\n }\n\n /**\n * @override\n */\n remove() {\n this._clearHoverLinkFromSeries();\n this._clearHoverLinkToSeries();\n }\n\n}\n\nfunction createPolygon(\n points?: number[][],\n cursor?: string,\n onDrift?: (x: number, y: number) => void,\n onDragEnd?: () => void\n) {\n return new graphic.Polygon({\n shape: {points: points},\n draggable: !!onDrift,\n cursor: cursor,\n drift: onDrift,\n onmousemove(e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd\n });\n}\n\nfunction getHalfHoverLinkSize(visualMapModel: ContinuousModel, dataExtent: number[], sizeExtent: number[]) {\n let halfHoverLinkSize = HOVER_LINK_SIZE / 2;\n const hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');\n if (hoverLinkDataSize) {\n halfHoverLinkSize = linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;\n }\n return halfHoverLinkSize;\n}\n\nfunction useHoverLinkOnHandle(visualMapModel: ContinuousModel) {\n const hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');\n return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);\n}\n\nfunction getCursor(orient: Orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default ContinuousView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport VisualMapModel from './VisualMapModel';\nimport { Payload } from '../../util/types';\nimport GlobalModel from '../../model/Global';\n\nexport const visualMapActionInfo = {\n type: 'selectDataRange',\n event: 'dataRangeSelected',\n // FIXME use updateView appears wrong\n update: 'update'\n};\n\nexport const visualMapActionHander = function (payload: Payload, ecModel: GlobalModel) {\n ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) {\n (model as VisualMapModel).setSelected(payload.selected);\n });\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport VisualMapping from '../../visual/VisualMapping';\nimport VisualMapModel, { VisualMeta } from './VisualMapModel';\nimport { StageHandlerProgressExecutor, BuiltinVisualProperty, ParsedValue, StageHandler } from '../../util/types';\nimport SeriesModel from '../../model/Series';\nimport { getVisualFromData } from '../../visual/helper';\n\nexport const visualMapEncodingHandlers: StageHandler[] = [\n {\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n const resetDefines: StageHandlerProgressExecutor[] = [];\n ecModel.eachComponent('visualMap', function (visualMapModel: VisualMapModel) {\n const pipelineContext = seriesModel.pipelineContext;\n if (!visualMapModel.isTargetSeries(seriesModel)\n || (pipelineContext && pipelineContext.large)\n ) {\n return;\n }\n\n resetDefines.push(visualSolution.incrementalApplyVisual(\n visualMapModel.stateList,\n visualMapModel.targetVisuals,\n zrUtil.bind(visualMapModel.getValueState, visualMapModel),\n visualMapModel.getDataDimensionIndex(seriesModel.getData())\n ));\n });\n\n return resetDefines;\n }\n },\n // Only support color.\n {\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n const data = seriesModel.getData();\n const visualMetaList: VisualMeta[] = [];\n\n ecModel.eachComponent('visualMap', function (visualMapModel: VisualMapModel) {\n if (visualMapModel.isTargetSeries(seriesModel)) {\n const visualMeta = visualMapModel.getVisualMeta(\n zrUtil.bind(getColorVisual, null, seriesModel, visualMapModel)\n ) || {\n stops: [],\n outerColors: []\n } as VisualMeta;\n\n const dimIdx = visualMapModel.getDataDimensionIndex(data);\n if (dimIdx >= 0) {\n // visualMeta.dimension should be dimension index, but not concrete dimension.\n visualMeta.dimension = dimIdx;\n visualMetaList.push(visualMeta);\n }\n }\n });\n\n // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));\n seriesModel.getData().setVisual('visualMeta', visualMetaList);\n }\n }\n];\n\n// FIXME\n// performance and export for heatmap?\n// value can be Infinity or -Infinity\nfunction getColorVisual(\n seriesModel: SeriesModel,\n visualMapModel: VisualMapModel,\n value: ParsedValue,\n valueState: VisualMapModel['stateList'][number]\n) {\n const mappings = visualMapModel.targetVisuals[valueState];\n const visualTypes = VisualMapping.prepareVisualTypes(mappings);\n const resultVisual: Partial> = {\n color: getVisualFromData(seriesModel.getData(), 'color') // default color.\n };\n\n for (let i = 0, len = visualTypes.length; i < len; i++) {\n const type = visualTypes[i];\n const mapping = mappings[\n (type === 'opacity' ? '__alphaForOpacity' : type) as BuiltinVisualProperty\n ];\n mapping && mapping.applyVisual(value, getVisual, setVisual);\n }\n\n return resultVisual.color;\n\n function getVisual(key: BuiltinVisualProperty) {\n return resultVisual[key];\n }\n\n function setVisual(key: BuiltinVisualProperty, value: any) {\n resultVisual[key] = value;\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// @ts-nocheck\nimport * as zrUtil from 'zrender/src/core/util';\n\nconst each = zrUtil.each;\n\nexport default function visualMapPreprocessor(option) {\n let visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n }\n\n // rename splitList to pieces\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n const pieces = opt.pieces;\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj: object, name: string) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport { VisualMapOption } from './VisualMapModel';\nimport { PiecewiseVisualMapOption } from './PiecewiseModel';\nimport { ContinousVisualMapOption } from './ContinuousModel';\nimport { visualMapActionInfo, visualMapActionHander } from './visualMapAction';\nimport { visualMapEncodingHandlers } from './visualEncoding';\nimport { each } from 'zrender/src/core/util';\nimport preprocessor from './preprocessor';\n\nlet installed = false;\nexport default function installCommon(registers: EChartsExtensionInstallRegisters) {\n if (installed) {\n return;\n }\n installed = true;\n\n registers.registerSubTypeDefaulter(\n 'visualMap', function (option: VisualMapOption) {\n // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.\n return (\n !option.categories\n && (\n !(\n (option as PiecewiseVisualMapOption).pieces\n ? ((option as PiecewiseVisualMapOption)).pieces.length > 0\n : ((option as PiecewiseVisualMapOption)).splitNumber > 0\n )\n || (option as ContinousVisualMapOption).calculable\n )\n )\n ? 'continuous' : 'piecewise';\n });\n\n registers.registerAction(visualMapActionInfo, visualMapActionHander);\n\n each(visualMapEncodingHandlers, (handler) => {\n registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler);\n });\n registers.registerPreprocessor(preprocessor);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ContinuousModel from './ContinuousModel';\nimport ContinuousView from './ContinuousView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(ContinuousModel);\n registers.registerComponentView(ContinuousView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapModel, { VisualMapOption, VisualMeta } from './VisualMapModel';\nimport VisualMapping, { VisualMappingOption } from '../../visual/VisualMapping';\nimport visualDefault from '../../visual/visualDefault';\nimport {reformIntervals} from '../../util/number';\nimport { VisualOptionPiecewise, BuiltinVisualProperty } from '../../util/types';\nimport { Dictionary } from 'zrender/src/core/types';\nimport { inheritDefaultOption } from '../../util/component';\n\n\n// TODO: use `relationExpression.ts` instead\ninterface VisualPiece extends VisualOptionPiecewise {\n min?: number\n max?: number\n lt?: number\n gt?: number\n lte?: number\n gte?: number\n value?: number\n\n label?: string\n}\n\ntype VisualState = VisualMapModel['stateList'][number];\n\ntype InnerVisualPiece = VisualMappingOption['pieceList'][number];\n\ntype GetPieceValueType\n = T extends { interval: InnerVisualPiece['interval'] } ? number : string;\n\n/**\n * Order Rule:\n *\n * option.categories / option.pieces / option.text / option.selected:\n * If !option.inverse,\n * Order when vertical: ['top', ..., 'bottom'].\n * Order when horizontal: ['left', ..., 'right'].\n * If option.inverse, the meaning of\n * the order should be reversed.\n *\n * this._pieceList:\n * The order is always [low, ..., high].\n *\n * Mapping from location to low-high:\n * If !option.inverse\n * When vertical, top is high.\n * When horizontal, right is high.\n * If option.inverse, reverse.\n */\n\nexport interface PiecewiseVisualMapOption extends VisualMapOption {\n align?: 'auto' | 'left' | 'right'\n\n minOpen?: boolean\n maxOpen?: boolean\n\n /**\n * When put the controller vertically, it is the length of\n * horizontal side of each item. Otherwise, vertical side.\n * When put the controller vertically, it is the length of\n * vertical side of each item. Otherwise, horizontal side.\n */\n itemWidth?: number\n itemHeight?: number\n\n itemSymbol?: string\n pieces?: VisualPiece[]\n\n /**\n * category names, like: ['some1', 'some2', 'some3'].\n * Attr min/max are ignored when categories set. See \"Order Rule\"\n */\n categories?: string[]\n\n /**\n * If set to 5, auto split five pieces equally.\n * If set to 0 and component type not set, component type will be\n * determined as \"continuous\". (It is less reasonable but for ec2\n * compatibility, see echarts/component/visualMap/typeDefaulter)\n */\n splitNumber?: number\n\n /**\n * Object. If not specified, means selected. When pieces and splitNumber: {'0': true, '5': true}\n * When categories: {'cate1': false, 'cate3': true} When selected === false, means all unselected.\n */\n selected?: Dictionary\n selectedMode?: 'multiple' | 'single'\n\n /**\n * By default, when text is used, label will hide (the logic\n * is remained for compatibility reason)\n */\n showLabel?: boolean\n\n itemGap?: number\n\n hoverLink?: boolean\n}\n\nclass PiecewiseModel extends VisualMapModel {\n\n static type = 'visualMap.piecewise' as const;\n type = PiecewiseModel.type;\n\n /**\n * The order is always [low, ..., high].\n * [{text: string, interval: Array.}, ...]\n */\n private _pieceList: InnerVisualPiece[] = [];\n\n private _mode: 'pieces' | 'categories' | 'splitNumber';\n\n optionUpdated(newOption: PiecewiseVisualMapOption, isInit?: boolean) {\n super.optionUpdated.apply(this, arguments as any);\n\n this.resetExtent();\n\n const mode = this._mode = this._determineMode();\n\n this._pieceList = [];\n resetMethods[this._mode].call(this, this._pieceList);\n\n this._resetSelected(newOption, isInit);\n\n const categories = this.option.categories;\n\n this.resetVisual(function (mappingOption, state) {\n if (mode === 'categories') {\n mappingOption.mappingMethod = 'category';\n mappingOption.categories = zrUtil.clone(categories);\n }\n else {\n mappingOption.dataExtent = this.getExtent();\n mappingOption.mappingMethod = 'piecewise';\n mappingOption.pieceList = zrUtil.map(this._pieceList, function (piece) {\n piece = zrUtil.clone(piece);\n if (state !== 'inRange') {\n // FIXME\n // outOfRange do not support special visual in pieces.\n piece.visual = null;\n }\n return piece;\n });\n }\n });\n }\n\n /**\n * @protected\n * @override\n */\n completeVisualOption() {\n // Consider this case:\n // visualMap: {\n // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]\n // }\n // where no inRange/outOfRange set but only pieces. So we should make\n // default inRange/outOfRange for this case, otherwise visuals that only\n // appear in `pieces` will not be taken into account in visual encoding.\n\n const option = this.option;\n const visualTypesInPieces: {[key in BuiltinVisualProperty]?: 0 | 1} = {};\n const visualTypes = VisualMapping.listVisualTypes();\n const isCategory = this.isCategory();\n\n zrUtil.each(option.pieces, function (piece) {\n zrUtil.each(visualTypes, function (visualType: BuiltinVisualProperty) {\n if (piece.hasOwnProperty(visualType)) {\n visualTypesInPieces[visualType] = 1;\n }\n });\n });\n\n zrUtil.each(visualTypesInPieces, function (v, visualType: BuiltinVisualProperty) {\n let exists = false;\n zrUtil.each(this.stateList, function (state: VisualState) {\n exists = exists || has(option, state, visualType)\n || has(option.target, state, visualType);\n }, this);\n\n !exists && zrUtil.each(this.stateList, function (state: VisualState) {\n (option[state] || (option[state] = {}))[visualType] = visualDefault.get(\n visualType, state === 'inRange' ? 'active' : 'inactive', isCategory\n );\n });\n }, this);\n\n function has(obj: PiecewiseVisualMapOption['target'], state: VisualState, visualType: BuiltinVisualProperty) {\n return obj && obj[state] && obj[state].hasOwnProperty(visualType);\n }\n\n super.completeVisualOption.apply(this, arguments as any);\n }\n\n private _resetSelected(newOption: PiecewiseVisualMapOption, isInit?: boolean) {\n const thisOption = this.option;\n const pieceList = this._pieceList;\n\n // Selected do not merge but all override.\n const selected = (isInit ? thisOption : newOption).selected || {};\n thisOption.selected = selected;\n\n // Consider 'not specified' means true.\n zrUtil.each(pieceList, function (piece, index) {\n const key = this.getSelectedMapKey(piece);\n if (!selected.hasOwnProperty(key)) {\n selected[key] = true;\n }\n }, this);\n\n if (thisOption.selectedMode === 'single') {\n // Ensure there is only one selected.\n let hasSel = false;\n\n zrUtil.each(pieceList, function (piece, index) {\n const key = this.getSelectedMapKey(piece);\n if (selected[key]) {\n hasSel\n ? (selected[key] = false)\n : (hasSel = true);\n }\n }, this);\n }\n // thisOption.selectedMode === 'multiple', default: all selected.\n }\n\n /**\n * @public\n */\n getItemSymbol(): string {\n return this.get('itemSymbol');\n }\n\n /**\n * @public\n */\n getSelectedMapKey(piece: InnerVisualPiece) {\n return this._mode === 'categories'\n ? piece.value + '' : piece.index + '';\n }\n\n /**\n * @public\n */\n getPieceList(): InnerVisualPiece[] {\n return this._pieceList;\n }\n\n /**\n * @return {string}\n */\n private _determineMode() {\n const option = this.option;\n\n return option.pieces && option.pieces.length > 0\n ? 'pieces'\n : this.option.categories\n ? 'categories'\n : 'splitNumber';\n }\n\n /**\n * @override\n */\n setSelected(selected: this['option']['selected']) {\n this.option.selected = zrUtil.clone(selected);\n }\n\n /**\n * @override\n */\n getValueState(value: number): VisualState {\n const index = VisualMapping.findPieceIndex(value, this._pieceList);\n\n return index != null\n ? (this.option.selected[this.getSelectedMapKey(this._pieceList[index])]\n ? 'inRange' : 'outOfRange'\n )\n : 'outOfRange';\n }\n\n /**\n * @public\n * @param pieceIndex piece index in visualMapModel.getPieceList()\n */\n findTargetDataIndices(pieceIndex: number) {\n type DataIndices = {\n seriesId: string\n dataIndex: number[]\n };\n\n const result: DataIndices[] = [];\n const pieceList = this._pieceList;\n\n this.eachTargetSeries(function (seriesModel) {\n const dataIndices: number[] = [];\n const data = seriesModel.getData();\n\n data.each(this.getDataDimensionIndex(data), function (value: number, dataIndex: number) {\n // Should always base on model pieceList, because it is order sensitive.\n const pIdx = VisualMapping.findPieceIndex(value, pieceList);\n pIdx === pieceIndex && dataIndices.push(dataIndex);\n }, this);\n\n result.push({seriesId: seriesModel.id, dataIndex: dataIndices});\n }, this);\n\n return result;\n }\n\n /**\n * @private\n * @param piece piece.value or piece.interval is required.\n * @return Can be Infinity or -Infinity\n */\n getRepresentValue(piece: InnerVisualPiece) {\n let representValue;\n if (this.isCategory()) {\n representValue = piece.value;\n }\n else {\n if (piece.value != null) {\n representValue = piece.value;\n }\n else {\n const pieceInterval = piece.interval || [];\n representValue = (pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity)\n ? 0\n : (pieceInterval[0] + pieceInterval[1]) / 2;\n }\n }\n\n return representValue;\n }\n\n getVisualMeta(\n getColorVisual: (value: number, valueState: VisualState) => string\n ): VisualMeta {\n // Do not support category. (category axis is ordinal, numerical)\n if (this.isCategory()) {\n return;\n }\n\n const stops: VisualMeta['stops'] = [];\n const outerColors: VisualMeta['outerColors'] = ['', ''];\n const visualMapModel = this;\n\n function setStop(interval: [number, number], valueState?: VisualState) {\n const representValue = visualMapModel.getRepresentValue({\n interval: interval\n }) as number;// Not category\n if (!valueState) {\n valueState = visualMapModel.getValueState(representValue);\n }\n const color = getColorVisual(representValue, valueState);\n if (interval[0] === -Infinity) {\n outerColors[0] = color;\n }\n else if (interval[1] === Infinity) {\n outerColors[1] = color;\n }\n else {\n stops.push(\n {value: interval[0], color: color},\n {value: interval[1], color: color}\n );\n }\n }\n\n // Suplement\n const pieceList = this._pieceList.slice();\n if (!pieceList.length) {\n pieceList.push({interval: [-Infinity, Infinity]});\n }\n else {\n let edge = pieceList[0].interval[0];\n edge !== -Infinity && pieceList.unshift({interval: [-Infinity, edge]});\n edge = pieceList[pieceList.length - 1].interval[1];\n edge !== Infinity && pieceList.push({interval: [edge, Infinity]});\n }\n\n let curr = -Infinity;\n zrUtil.each(pieceList, function (piece) {\n const interval = piece.interval;\n if (interval) {\n // Fulfill gap.\n interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');\n setStop(interval.slice() as [number, number]);\n curr = interval[1];\n }\n }, this);\n\n return {stops: stops, outerColors: outerColors};\n }\n\n\n static defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n selected: null,\n minOpen: false, // Whether include values that smaller than `min`.\n maxOpen: false, // Whether include values that bigger than `max`.\n\n align: 'auto', // 'auto', 'left', 'right'\n itemWidth: 20,\n\n itemHeight: 14,\n\n itemSymbol: 'roundRect',\n pieces: null,\n categories: null,\n splitNumber: 5,\n selectedMode: 'multiple', // Can be 'multiple' or 'single'.\n itemGap: 10, // The gap between two items, in px.\n hoverLink: true // Enable hover highlight.\n }) as PiecewiseVisualMapOption;\n\n};\n\ntype ResetMethod = (outPieceList: InnerVisualPiece[]) => void;\n/**\n * Key is this._mode\n * @type {Object}\n * @this {module:echarts/component/viusalMap/PiecewiseMode}\n */\nconst resetMethods: Dictionary & ThisType = {\n\n splitNumber(outPieceList) {\n const thisOption = this.option;\n let precision = Math.min(thisOption.precision, 20);\n const dataExtent = this.getExtent();\n let splitNumber = thisOption.splitNumber;\n splitNumber = Math.max(parseInt(splitNumber as unknown as string, 10), 1);\n thisOption.splitNumber = splitNumber;\n\n let splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber;\n // Precision auto-adaption\n while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {\n precision++;\n }\n thisOption.precision = precision;\n splitStep = +splitStep.toFixed(precision);\n\n if (thisOption.minOpen) {\n outPieceList.push({\n interval: [-Infinity, dataExtent[0]],\n close: [0, 0]\n });\n }\n\n for (\n let index = 0, curr = dataExtent[0];\n index < splitNumber;\n curr += splitStep, index++\n ) {\n const max = index === splitNumber - 1 ? dataExtent[1] : (curr + splitStep);\n\n outPieceList.push({\n interval: [curr, max],\n close: [1, 1]\n });\n }\n\n if (thisOption.maxOpen) {\n outPieceList.push({\n interval: [dataExtent[1], Infinity],\n close: [0, 0]\n });\n }\n\n reformIntervals(outPieceList as Required[]);\n\n zrUtil.each(outPieceList, function (piece, index) {\n piece.index = index;\n piece.text = this.formatValueText(piece.interval);\n }, this);\n },\n\n categories(outPieceList) {\n const thisOption = this.option;\n zrUtil.each(thisOption.categories, function (cate) {\n // FIXME category\u6A21\u5F0F\u4E5F\u4F7F\u7528pieceList\uFF0C\u4F46\u5728visualMapping\u4E2D\u4E0D\u662F\u4F7F\u7528pieceList\u3002\n // \u662F\u5426\u6539\u4E00\u81F4\u3002\n outPieceList.push({\n text: this.formatValueText(cate, true),\n value: cate\n });\n }, this);\n\n // See \"Order Rule\".\n normalizeReverse(thisOption, outPieceList);\n },\n\n pieces(outPieceList) {\n const thisOption = this.option;\n\n zrUtil.each(thisOption.pieces, function (pieceListItem, index) {\n\n if (!zrUtil.isObject(pieceListItem)) {\n pieceListItem = {value: pieceListItem};\n }\n\n const item: InnerVisualPiece = {text: '', index: index};\n\n if (pieceListItem.label != null) {\n item.text = pieceListItem.label;\n }\n\n if (pieceListItem.hasOwnProperty('value')) {\n const value = item.value = pieceListItem.value;\n item.interval = [value, value];\n item.close = [1, 1];\n }\n else {\n // `min` `max` is legacy option.\n // `lt` `gt` `lte` `gte` is recommanded.\n const interval = item.interval = [] as unknown as [number, number];\n const close: typeof item.close = item.close = [0, 0];\n\n const closeList = [1, 0, 1] as const;\n const infinityList = [-Infinity, Infinity];\n\n const useMinMax = [];\n for (let lg = 0; lg < 2; lg++) {\n const names = ([['gte', 'gt', 'min'], ['lte', 'lt', 'max']] as const)[lg];\n for (let i = 0; i < 3 && interval[lg] == null; i++) {\n interval[lg] = pieceListItem[names[i]];\n close[lg] = closeList[i];\n useMinMax[lg] = i === 2;\n }\n interval[lg] == null && (interval[lg] = infinityList[lg]);\n }\n useMinMax[0] && interval[1] === Infinity && (close[0] = 0);\n useMinMax[1] && interval[0] === -Infinity && (close[1] = 0);\n\n if (__DEV__) {\n if (interval[0] > interval[1]) {\n console.warn(\n 'Piece ' + index + 'is illegal: ' + interval\n + ' lower bound should not greater then uppper bound.'\n );\n }\n }\n\n if (interval[0] === interval[1] && close[0] && close[1]) {\n // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],\n // we use value to lift the priority when min === max\n item.value = interval[0];\n }\n }\n\n item.visual = VisualMapping.retrieveVisuals(pieceListItem);\n\n outPieceList.push(item);\n\n }, this);\n\n // See \"Order Rule\".\n normalizeReverse(thisOption, outPieceList);\n // Only pieces\n reformIntervals(outPieceList as Required[]);\n\n zrUtil.each(outPieceList, function (piece) {\n const close = piece.close;\n const edgeSymbols = [['<', '\u2264'][close[1]], ['>', '\u2265'][close[0]]];\n piece.text = piece.text || this.formatValueText(\n piece.value != null ? piece.value : piece.interval,\n false,\n edgeSymbols\n );\n }, this);\n }\n};\n\nfunction normalizeReverse(thisOption: PiecewiseVisualMapOption, pieceList: InnerVisualPiece[]) {\n const inverse = thisOption.inverse;\n if (thisOption.orient === 'vertical' ? !inverse : inverse) {\n pieceList.reverse();\n }\n}\n\nexport default PiecewiseModel;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport {createSymbol} from '../../util/symbol';\nimport * as layout from '../../util/layout';\nimport * as helper from './helper';\nimport PiecewiseModel from './PiecewiseModel';\nimport { TextAlign } from 'zrender/src/core/types';\nimport { VisualMappingOption } from '../../visual/VisualMapping';\n\nclass PiecewiseVisualMapView extends VisualMapView {\n\n static type = 'visualMap.piecewise' as const;\n\n type = PiecewiseVisualMapView.type;\n\n visualMapModel: PiecewiseModel;\n\n protected doRender() {\n const thisGroup = this.group;\n\n thisGroup.removeAll();\n\n const visualMapModel = this.visualMapModel;\n const textGap = visualMapModel.get('textGap');\n const textStyleModel = visualMapModel.textStyleModel;\n const textFont = textStyleModel.getFont();\n const textFill = textStyleModel.getTextColor();\n const itemAlign = this._getItemAlign();\n const itemSize = visualMapModel.itemSize;\n const viewData = this._getViewData();\n const endsText = viewData.endsText;\n const showLabel = zrUtil.retrieve(visualMapModel.get('showLabel', true), !endsText);\n\n endsText && this._renderEndsText(\n thisGroup, endsText[0], itemSize, showLabel, itemAlign\n );\n\n zrUtil.each(viewData.viewPieceList, function (item: typeof viewData.viewPieceList[number]) {\n const piece = item.piece;\n\n const itemGroup = new graphic.Group();\n itemGroup.onclick = zrUtil.bind(this._onItemClick, this, piece);\n\n this._enableHoverLink(itemGroup, item.indexInModelPieceList);\n\n // TODO Category\n const representValue = visualMapModel.getRepresentValue(piece) as number;\n\n this._createItemSymbol(\n itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]]\n );\n\n if (showLabel) {\n const visualState = this.visualMapModel.getValueState(representValue);\n\n itemGroup.add(new graphic.Text({\n style: {\n x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,\n y: itemSize[1] / 2,\n text: piece.text,\n verticalAlign: 'middle',\n align: itemAlign as TextAlign,\n font: textFont,\n fill: textFill,\n opacity: visualState === 'outOfRange' ? 0.5 : 1\n }\n }));\n }\n\n thisGroup.add(itemGroup);\n }, this);\n\n endsText && this._renderEndsText(\n thisGroup, endsText[1], itemSize, showLabel, itemAlign\n );\n\n layout.box(\n visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap')\n );\n\n this.renderBackground(thisGroup);\n\n this.positionGroup(thisGroup);\n\n\n }\n\n private _enableHoverLink(itemGroup: graphic.Group, pieceIndex: number) {\n itemGroup\n .on('mouseover', () => onHoverLink('highlight'))\n .on('mouseout', () => onHoverLink('downplay'));\n\n const onHoverLink = (method?: 'highlight' | 'downplay') => {\n const visualMapModel = this.visualMapModel;\n\n // TODO: TYPE More detailed action types\n visualMapModel.option.hoverLink && this.api.dispatchAction({\n type: method,\n batch: helper.makeHighDownBatch(\n visualMapModel.findTargetDataIndices(pieceIndex),\n visualMapModel\n )\n });\n };\n }\n\n private _getItemAlign(): helper.ItemAlign {\n const visualMapModel = this.visualMapModel;\n const modelOption = visualMapModel.option;\n\n if (modelOption.orient === 'vertical') {\n return helper.getItemAlign(\n visualMapModel, this.api, visualMapModel.itemSize\n );\n }\n else { // horizontal, most case left unless specifying right.\n let align = modelOption.align;\n if (!align || align === 'auto') {\n align = 'left';\n }\n return align;\n }\n }\n\n private _renderEndsText(\n group: graphic.Group,\n text: string,\n itemSize: number[],\n showLabel: boolean,\n itemAlign: helper.ItemAlign\n ) {\n if (!text) {\n return;\n }\n\n const itemGroup = new graphic.Group();\n const textStyleModel = this.visualMapModel.textStyleModel;\n\n itemGroup.add(new graphic.Text({\n style: {\n x: showLabel ? (itemAlign === 'right' ? itemSize[0] : 0) : itemSize[0] / 2,\n y: itemSize[1] / 2,\n verticalAlign: 'middle',\n align: showLabel ? (itemAlign as TextAlign) : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n\n group.add(itemGroup);\n }\n\n /**\n * @private\n * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.\n */\n private _getViewData() {\n const visualMapModel = this.visualMapModel;\n\n const viewPieceList = zrUtil.map(visualMapModel.getPieceList(), function (piece, index) {\n return {piece: piece, indexInModelPieceList: index};\n });\n let endsText = visualMapModel.get('text');\n\n // Consider orient and inverse.\n const orient = visualMapModel.get('orient');\n const inverse = visualMapModel.get('inverse');\n\n // Order of model pieceList is always [low, ..., high]\n if (orient === 'horizontal' ? inverse : !inverse) {\n viewPieceList.reverse();\n }\n // Origin order of endsText is [high, low]\n else if (endsText) {\n endsText = endsText.slice().reverse();\n }\n\n return {viewPieceList: viewPieceList, endsText: endsText};\n }\n\n private _createItemSymbol(\n group: graphic.Group,\n representValue: number,\n shapeParam: number[]\n ) {\n group.add(createSymbol(\n // symbol will be string\n this.getControllerVisual(representValue, 'symbol') as string,\n shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3],\n // color will be string\n this.getControllerVisual(representValue, 'color') as string\n ));\n }\n\n private _onItemClick(\n piece: VisualMappingOption['pieceList'][number]\n ) {\n const visualMapModel = this.visualMapModel;\n const option = visualMapModel.option;\n const selected = zrUtil.clone(option.selected);\n const newKey = visualMapModel.getSelectedMapKey(piece);\n\n if (option.selectedMode === 'single') {\n selected[newKey] = true;\n zrUtil.each(selected, function (o, key) {\n selected[key] = key === newKey;\n });\n }\n else {\n selected[newKey] = !selected[newKey];\n }\n\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: selected\n });\n }\n}\n\nexport default PiecewiseVisualMapView;", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport PiecewiseModel from './PiecewiseModel';\nimport PiecewiseView from './PiecewiseView';\nimport installCommon from './installCommon';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(PiecewiseModel);\n registers.registerComponentView(PiecewiseView);\n\n installCommon(registers);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters, use } from '../../extension';\nimport {install as installVisualMapContinuous} from './installVisualMapContinuous';\nimport {install as installVisualMapPiecewise} from './installVisualMapPiecewise';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n use(installVisualMapContinuous);\n use(installVisualMapPiecewise);\n\n // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport {retrieveRawValue} from '../data/helper/dataProvider';\nimport GlobalModel from '../model/Global';\nimport Model from '../model/Model';\nimport SeriesModel from '../model/Series';\nimport {makeInner} from '../util/model';\nimport {Dictionary, DecalObject, InnerDecalObject, AriaOption, SeriesOption} from '../util/types';\nimport {LocaleOption} from '../core/locale';\nimport { getDecalFromPalette } from '../model/mixin/palette';\nimport type {TitleOption} from '../component/title/install';\n\nconst DEFAULT_OPTION: AriaOption = {\n label: {\n enabled: true\n },\n decal: {\n show: false\n }\n};\n\nconst inner = makeInner<{scope: object}, SeriesModel>();\n\nconst decalPaletteScope: Dictionary = {};\n\ntype SeriesTypes = keyof LocaleOption['series']['typeNames'];\n\nexport default function ariaVisual(ecModel: GlobalModel, api: ExtensionAPI) {\n const ariaModel: Model = ecModel.getModel('aria');\n\n // See \"area enabled\" detection code in `GlobalModel.ts`.\n if (!ariaModel.get('enabled')) {\n return;\n }\n\n const defaultOption = zrUtil.clone(DEFAULT_OPTION);\n zrUtil.merge(defaultOption.label, ecModel.getLocaleModel().get('aria'), false);\n zrUtil.merge(ariaModel.option, defaultOption, false);\n\n setDecal();\n setLabel();\n\n function setDecal() {\n const decalModel = ariaModel.getModel('decal');\n\n const useDecal = decalModel.get('show');\n if (useDecal) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n const paletteScopeGroupByType = zrUtil.createHashMap();\n ecModel.eachSeries((seriesModel: SeriesModel) => {\n if (seriesModel.isColorBySeries()) {\n return;\n }\n let decalScope = paletteScopeGroupByType.get(seriesModel.type);\n if (!decalScope) {\n decalScope = {};\n paletteScopeGroupByType.set(seriesModel.type, decalScope);\n }\n inner(seriesModel).scope = decalScope;\n });\n\n ecModel.eachRawSeries((seriesModel: SeriesModel) => {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n if (typeof seriesModel.enableAriaDecal === 'function') {\n // Let series define how to use decal palette on data\n seriesModel.enableAriaDecal();\n return;\n }\n\n const data = seriesModel.getData();\n\n if (!seriesModel.isColorBySeries()) {\n const dataAll = seriesModel.getRawData();\n const idxMap: Dictionary = {};\n const decalScope = inner(seriesModel).scope;\n\n data.each(function (idx) {\n const rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n\n const dataCount = dataAll.count();\n dataAll.each(rawIdx => {\n const idx = idxMap[rawIdx];\n const name = dataAll.getName(rawIdx) || (rawIdx + '');\n const paletteDecal = getDecalFromPalette(\n seriesModel.ecModel,\n name,\n decalScope,\n dataCount\n );\n const specifiedDecal = data.getItemVisual(idx, 'decal');\n data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal));\n });\n }\n else {\n const paletteDecal = getDecalFromPalette(\n seriesModel.ecModel,\n seriesModel.name,\n decalPaletteScope,\n ecModel.getSeriesCount()\n );\n const specifiedDecal = data.getVisual('decal');\n data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal));\n }\n\n function mergeDecal(specifiedDecal: DecalObject, paletteDecal: DecalObject): DecalObject {\n // Merge decal from palette to decal from itemStyle.\n // User do not need to specify all of the decal props.\n const resultDecal = specifiedDecal\n ? zrUtil.extend(zrUtil.extend({}, paletteDecal), specifiedDecal)\n : paletteDecal;\n (resultDecal as InnerDecalObject).dirty = true;\n return resultDecal;\n }\n });\n }\n }\n\n function setLabel() {\n const labelLocale = ecModel.getLocaleModel().get('aria');\n const labelModel = ariaModel.getModel('label');\n labelModel.option = zrUtil.defaults(labelModel.option, labelLocale);\n\n if (!labelModel.get('enabled')) {\n return;\n }\n\n const dom = api.getZr().dom;\n if (labelModel.get('description')) {\n dom.setAttribute('aria-label', labelModel.get('description'));\n return;\n }\n\n const seriesCnt = ecModel.getSeriesCount();\n const maxDataCnt = labelModel.get(['data', 'maxCount']) || 10;\n const maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10;\n const displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt);\n\n let ariaLabel;\n if (seriesCnt < 1) {\n // No series, no aria label\n return;\n }\n else {\n const title = getTitle();\n if (title) {\n const withTitle = labelModel.get(['general', 'withTitle']);\n ariaLabel = replace(withTitle, {\n title: title\n });\n }\n else {\n ariaLabel = labelModel.get(['general', 'withoutTitle']);\n }\n\n const seriesLabels: string[] = [];\n const prefix = seriesCnt > 1\n ? labelModel.get(['series', 'multiple', 'prefix'])\n : labelModel.get(['series', 'single', 'prefix']);\n ariaLabel += replace(prefix, { seriesCount: seriesCnt });\n\n ecModel.eachSeries(function (seriesModel, idx) {\n if (idx < displaySeriesCnt) {\n let seriesLabel;\n\n const seriesName = seriesModel.get('name');\n const withName = seriesName ? 'withName' : 'withoutName';\n seriesLabel = seriesCnt > 1\n ? labelModel.get(['series', 'multiple', withName])\n : labelModel.get(['series', 'single', withName]);\n\n seriesLabel = replace(seriesLabel, {\n seriesId: seriesModel.seriesIndex,\n seriesName: seriesModel.get('name'),\n seriesType: getSeriesTypeName(seriesModel.subType as SeriesTypes)\n });\n\n const data = seriesModel.getData();\n if (data.count() > maxDataCnt) {\n // Show part of data\n const partialLabel = labelModel.get(['data', 'partialData']);\n seriesLabel += replace(partialLabel, {\n displayCnt: maxDataCnt\n });\n }\n else {\n seriesLabel += labelModel.get(['data', 'allData']);\n }\n\n const dataLabels = [];\n for (let i = 0; i < data.count(); i++) {\n if (i < maxDataCnt) {\n const name = data.getName(i);\n const value = retrieveRawValue(data, i);\n const dataLabel = labelModel.get(['data', name ? 'withName' : 'withoutName']);\n dataLabels.push(\n replace(dataLabel, {\n name: name,\n value: value\n })\n );\n }\n }\n const middleSeparator = labelModel.get(['data', 'separator', 'middle']);\n const endSeparator = labelModel.get(['data', 'separator', 'end']);\n seriesLabel += dataLabels.join(middleSeparator) + endSeparator;\n\n seriesLabels.push(seriesLabel);\n }\n });\n\n const separatorModel = labelModel.getModel(['series', 'multiple', 'separator']);\n const middleSeparator = separatorModel.get('middle');\n const endSeparator = separatorModel.get('end');\n ariaLabel += seriesLabels.join(middleSeparator) + endSeparator;\n\n dom.setAttribute('aria-label', ariaLabel);\n }\n }\n\n function replace(str: string, keyValues: object) {\n if (typeof str !== 'string') {\n return str;\n }\n\n let result = str;\n zrUtil.each(keyValues, function (value: string, key: string) {\n result = result.replace(\n new RegExp('\\\\{\\\\s*' + key + '\\\\s*\\\\}', 'g'),\n value\n );\n });\n return result;\n }\n\n function getTitle() {\n let title = ecModel.get('title') as TitleOption | TitleOption[];\n if (title && (title as TitleOption[]).length) {\n title = (title as TitleOption[])[0];\n }\n return title && (title as TitleOption).text;\n }\n\n function getSeriesTypeName(type: SeriesTypes) {\n return ecModel.getLocaleModel().get(['series', 'typeNames'])[type] || '\u81EA\u5B9A\u4E49\u56FE';\n }\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/src/core/util';\nimport { ECUnitOption, AriaOptionMixin } from '../../util/types';\n\nexport default function ariaPreprocessor(option: ECUnitOption & AriaOptionMixin) {\n if (!option || !option.aria) {\n return;\n }\n\n const aria = option.aria;\n // aria.show is deprecated and should use aria.enabled instead\n if ((aria as any).show != null) {\n aria.enabled = (aria as any).show;\n }\n\n aria.label = aria.label || {};\n // move description, general, series, data to be under aria.label\n zrUtil.each(['description', 'general', 'series', 'data'], name => {\n if ((aria as any)[name] != null) {\n (aria.label as any)[name] = (aria as any)[name];\n }\n });\n}\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport ariaVisual from '../../visual/aria';\nimport ariaPreprocessor from './preprocessor';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerPreprocessor(ariaPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { OptionDataValue, DimensionLoose, Dictionary } from './types';\nimport {\n keys, isArray, map, isObject, isString, HashMap, isRegExp, isArrayLike, hasOwn\n} from 'zrender/src/core/util';\nimport { throwError, makePrintable } from './log';\nimport {\n RawValueParserType, getRawValueParser,\n RelationalOperator, FilterComparator, createFilterComparator\n} from '../data/helper/dataValueHelper';\n\n\n// PENDING:\n// (1) Support more parser like: `parser: 'trim'`, `parser: 'lowerCase'`, `parser: 'year'`, `parser: 'dayOfWeek'`?\n// (2) Support piped parser ?\n// (3) Support callback parser or callback condition?\n// (4) At present do not support string expression yet but only stuctured expression.\n\n\n/**\n * The structured expression considered:\n * (1) Literal simplicity\n * (2) Sementic displayed clearly\n *\n * Sementic supports:\n * (1) relational expression\n * (2) logical expression\n *\n * For example:\n * ```js\n * {\n * and: [{\n * or: [{\n * dimension: 'Year', gt: 2012, lt: 2019\n * }, {\n * dimension: 'Year', '>': 2002, '<=': 2009\n * }]\n * }, {\n * dimension: 'Product', eq: 'Tofu'\n * }]\n * }\n *\n * { dimension: 'Product', eq: 'Tofu' }\n *\n * {\n * or: [\n * { dimension: 'Product', value: 'Tofu' },\n * { dimension: 'Product', value: 'Biscuit' }\n * ]\n * }\n *\n * {\n * and: [true]\n * }\n * ```\n *\n * [PARSER]\n * In an relation expression object, we can specify some built-in parsers:\n * ```js\n * // Trim if string\n * {\n * parser: 'trim',\n * eq: 'Flowers'\n * }\n * // Parse as time and enable arithmetic relation comparison.\n * {\n * parser: 'time',\n * lt: '2012-12-12'\n * }\n * // Normalize number-like string and make '-' to Null.\n * {\n * parser: 'time',\n * lt: '2012-12-12'\n * }\n * // Normalize to number:\n * // + number-like string (like ' 123 ') can be converted to a number.\n * // + where null/undefined or other string will be converted to NaN.\n * {\n * parser: 'number',\n * eq: 2011\n * }\n * // RegExp, include the feature in SQL: `like '%xxx%'`.\n * {\n * reg: /^asdf$/\n * }\n * {\n * reg: '^asdf$' // Serializable reg exp, will be `new RegExp(...)`\n * }\n * ```\n *\n *\n * [EMPTY_RULE]\n * (1) If a relational expression set value as `null`/`undefined` like:\n * `{ dimension: 'Product', lt: undefined }`,\n * The result will be `false` rather than `true`.\n * Consider the case like \"filter condition\", return all result when null/undefined\n * is probably not expected and even dangours.\n * (2) If a relational expression has no operator like:\n * `{ dimension: 'Product' }`,\n * An error will be thrown. Because it is probably a mistake.\n * (3) If a logical expression has no children like\n * `{ and: undefined }` or `{ and: [] }`,\n * An error will be thrown. Because it is probably an mistake.\n * (4) If intending have a condition that always `true` or always `false`,\n * Use `true` or `flase`.\n * The entire condition can be `true`/`false`,\n * or also can be `{ and: [true] }`, `{ or: [false] }`\n */\n\n\n// --------------------------------------------------\n// --- Relational Expression --------------------------\n// --------------------------------------------------\n\n/**\n * Date string and ordinal string can be accepted.\n */\ninterface RelationalExpressionOptionByOp extends Record {\n reg?: RegExp | string; // RegExp\n};\nconst RELATIONAL_EXPRESSION_OP_ALIAS_MAP = {\n value: 'eq',\n\n // PENDING: not good for literal semantic?\n '<': 'lt',\n '<=': 'lte',\n '>': 'gt',\n '>=': 'gte',\n '=': 'eq',\n '!=': 'ne',\n '<>': 'ne'\n\n // Might mileading for sake of the different between '==' and '===',\n // So dont support them.\n // '==': 'eq',\n // '===': 'seq',\n // '!==': 'sne'\n\n // PENDING: Whether support some common alias \"ge\", \"le\", \"neq\"?\n // ge: 'gte',\n // le: 'lte',\n // neq: 'ne',\n} as const;\ntype RelationalExpressionOptionByOpAlias = Record;\n\ninterface RelationalExpressionOption extends\n RelationalExpressionOptionByOp, RelationalExpressionOptionByOpAlias {\n dimension?: DimensionLoose;\n parser?: RawValueParserType;\n}\n\ntype RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean;\n\n\nclass RegExpEvaluator implements FilterComparator {\n private _condVal: RegExp;\n\n constructor(rVal: unknown) {\n // Support condVal: RegExp | string\n const condValue = this._condVal = isString(rVal) ? new RegExp(rVal)\n : isRegExp(rVal) ? rVal as RegExp\n : null;\n if (condValue == null) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable('Illegal regexp', rVal, 'in');\n }\n throwError(errMsg);\n }\n }\n\n evaluate(lVal: unknown): boolean {\n const type = typeof lVal;\n return type === 'string' ? this._condVal.test(lVal as string)\n : type === 'number' ? this._condVal.test(lVal + '')\n : false;\n }\n}\n\n\n\n\n// --------------------------------------------------\n// --- Logical Expression ---------------------------\n// --------------------------------------------------\n\n\ninterface LogicalExpressionOption {\n and?: LogicalExpressionSubOption[];\n or?: LogicalExpressionSubOption[];\n not?: LogicalExpressionSubOption;\n}\ntype LogicalExpressionSubOption =\n LogicalExpressionOption | RelationalExpressionOption | TrueFalseExpressionOption;\n\n\n\n// -----------------------------------------------------\n// --- Conditional Expression --------------------------\n// -----------------------------------------------------\n\n\nexport type TrueExpressionOption = true;\nexport type FalseExpressionOption = false;\nexport type TrueFalseExpressionOption = TrueExpressionOption | FalseExpressionOption;\n\nexport type ConditionalExpressionOption =\n LogicalExpressionOption\n | RelationalExpressionOption\n | TrueFalseExpressionOption;\n\ntype ValueGetterParam = Dictionary;\nexport interface ConditionalExpressionValueGetterParamGetter {\n (relExpOption: RelationalExpressionOption): VGP\n}\nexport interface ConditionalExpressionValueGetter {\n (param: VGP): OptionDataValue\n}\n\ninterface ParsedConditionInternal {\n evaluate(): boolean;\n}\nclass ConstConditionInternal implements ParsedConditionInternal {\n value: boolean;\n evaluate(): boolean {\n return this.value;\n }\n}\nclass AndConditionInternal implements ParsedConditionInternal {\n children: ParsedConditionInternal[];\n evaluate() {\n const children = this.children;\n for (let i = 0; i < children.length; i++) {\n if (!children[i].evaluate()) {\n return false;\n }\n }\n return true;\n }\n}\nclass OrConditionInternal implements ParsedConditionInternal {\n children: ParsedConditionInternal[];\n evaluate() {\n const children = this.children;\n for (let i = 0; i < children.length; i++) {\n if (children[i].evaluate()) {\n return true;\n }\n }\n return false;\n }\n}\nclass NotConditionInternal implements ParsedConditionInternal {\n child: ParsedConditionInternal;\n evaluate() {\n return !this.child.evaluate();\n }\n}\nclass RelationalConditionInternal implements ParsedConditionInternal {\n valueGetterParam: ValueGetterParam;\n valueParser: ReturnType;\n // If no parser, be null/undefined.\n getValue: ConditionalExpressionValueGetter;\n subCondList: FilterComparator[];\n\n evaluate() {\n const needParse = !!this.valueParser;\n // Call getValue with no `this`.\n const getValue = this.getValue;\n const tarValRaw = getValue(this.valueGetterParam);\n const tarValParsed = needParse ? this.valueParser(tarValRaw) : null;\n\n // Relational cond follow \"and\" logic internally.\n for (let i = 0; i < this.subCondList.length; i++) {\n if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {\n return false;\n }\n }\n return true;\n }\n}\n\nfunction parseOption(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n if (exprOption === true || exprOption === false) {\n const cond = new ConstConditionInternal();\n cond.value = exprOption as boolean;\n return cond;\n }\n\n let errMsg = '';\n if (!isObjectNotArray(exprOption)) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Illegal config. Expect a plain object but actually', exprOption\n );\n }\n throwError(errMsg);\n }\n\n if ((exprOption as LogicalExpressionOption).and) {\n return parseAndOrOption('and', exprOption as LogicalExpressionOption, getters);\n }\n else if ((exprOption as LogicalExpressionOption).or) {\n return parseAndOrOption('or', exprOption as LogicalExpressionOption, getters);\n }\n else if ((exprOption as LogicalExpressionOption).not) {\n return parseNotOption(exprOption as LogicalExpressionOption, getters);\n }\n\n return parseRelationalOption(exprOption as RelationalExpressionOption, getters);\n}\n\nfunction parseAndOrOption(\n op: 'and' | 'or',\n exprOption: LogicalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n const subOptionArr = exprOption[op] as ConditionalExpressionOption[];\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n '\"and\"/\"or\" condition should only be `' + op + ': [...]` and must not be empty array.',\n 'Illegal condition:', exprOption\n );\n }\n if (!isArray(subOptionArr)) {\n throwError(errMsg);\n }\n if (!(subOptionArr as []).length) {\n throwError(errMsg);\n }\n const cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal();\n cond.children = map(subOptionArr, subOption => parseOption(subOption, getters));\n if (!cond.children.length) {\n throwError(errMsg);\n }\n return cond;\n}\n\nfunction parseNotOption(\n exprOption: LogicalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n const subOption = exprOption.not as ConditionalExpressionOption;\n let errMsg = '';\n if (__DEV__) {\n errMsg = makePrintable(\n '\"not\" condition should only be `not: {}`.',\n 'Illegal condition:', exprOption\n );\n }\n if (!isObjectNotArray(subOption)) {\n throwError(errMsg);\n }\n const cond = new NotConditionInternal();\n cond.child = parseOption(subOption, getters);\n if (!cond.child) {\n throwError(errMsg);\n }\n return cond;\n}\n\nfunction parseRelationalOption(\n exprOption: RelationalExpressionOption,\n getters: ConditionalGetters\n): ParsedConditionInternal {\n let errMsg = '';\n\n const valueGetterParam = getters.prepareGetValue(exprOption);\n\n const subCondList = [] as RelationalConditionInternal['subCondList'];\n const exprKeys = keys(exprOption);\n\n const parserName = exprOption.parser;\n const valueParser = parserName ? getRawValueParser(parserName) : null;\n\n for (let i = 0; i < exprKeys.length; i++) {\n const keyRaw = exprKeys[i];\n if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) {\n continue;\n }\n\n const op: keyof RelationalExpressionOptionByOp = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw)\n ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw as keyof RelationalExpressionOptionByOpAlias]\n : (keyRaw as keyof RelationalExpressionOptionByOp);\n const condValueRaw = exprOption[keyRaw];\n const condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw;\n const evaluator = createFilterComparator(op, condValueParsed)\n || (op === 'reg' && new RegExpEvaluator(condValueParsed));\n\n if (!evaluator) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Illegal relational operation: \"' + keyRaw + '\" in condition:', exprOption\n );\n }\n throwError(errMsg);\n }\n\n subCondList.push(evaluator);\n }\n\n if (!subCondList.length) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Relational condition must have at least one operator.',\n 'Illegal condition:', exprOption\n );\n }\n // No relational operator always disabled in case of dangers result.\n throwError(errMsg);\n }\n\n const cond = new RelationalConditionInternal();\n cond.valueGetterParam = valueGetterParam;\n cond.valueParser = valueParser;\n cond.getValue = getters.getValue;\n cond.subCondList = subCondList;\n\n return cond;\n}\n\nfunction isObjectNotArray(val: unknown): boolean {\n return isObject(val) && !isArrayLike(val);\n}\n\n\nclass ConditionalExpressionParsed {\n\n private _cond: ParsedConditionInternal;\n\n constructor(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n ) {\n this._cond = parseOption(exprOption, getters);\n }\n\n evaluate(): boolean {\n return this._cond.evaluate();\n }\n};\n\ninterface ConditionalGetters {\n prepareGetValue: ConditionalExpressionValueGetterParamGetter;\n getValue: ConditionalExpressionValueGetter;\n valueGetterAttrMap: HashMap;\n}\n\nexport function parseConditionalExpression(\n exprOption: ConditionalExpressionOption,\n getters: ConditionalGetters\n): ConditionalExpressionParsed {\n return new ConditionalExpressionParsed(exprOption, getters);\n}\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DataTransformOption, ExternalDataTransform, DataTransformDataItem, ExternalDataTransformResultItem\n} from '../../data/helper/transform';\nimport { DimensionIndex } from '../../util/types';\nimport { parseConditionalExpression, ConditionalExpressionOption } from '../../util/conditionalExpression';\nimport { hasOwn, createHashMap } from 'zrender/src/core/util';\nimport { makePrintable, throwError } from '../../util/log';\n\n\nexport interface FilterTransformOption extends DataTransformOption {\n type: 'filter';\n config: ConditionalExpressionOption;\n}\n\nexport const filterTransform: ExternalDataTransform = {\n\n type: 'echarts:filter',\n\n // PEDING: enhance to filter by index rather than create new data\n transform: function (params) {\n // [Caveat] Fail-Fast:\n // Do not return the whole dataset unless user config indicate it explicitly.\n // For example, if no condition specified by mistake, return an empty result\n // is better than return the entire raw soruce for user to find the mistake.\n\n const upstream = params.upstream;\n let rawItem: DataTransformDataItem;\n\n const condition = parseConditionalExpression<{ dimIdx: DimensionIndex }>(params.config, {\n\n valueGetterAttrMap: createHashMap({ dimension: true }),\n\n prepareGetValue: function (exprOption) {\n let errMsg = '';\n const dimLoose = exprOption.dimension;\n if (!hasOwn(exprOption, 'dimension')) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Relation condition must has prop \"dimension\" specified.',\n 'Illegal condition:', exprOption\n );\n }\n throwError(errMsg);\n }\n\n const dimInfo = upstream.getDimensionInfo(dimLoose);\n if (!dimInfo) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Can not find dimension info via: ' + dimLoose + '.\\n',\n 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n',\n 'Illegal condition:', exprOption, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n return { dimIdx: dimInfo.index };\n },\n\n getValue: function (param) {\n return upstream.retrieveValueFromItem(rawItem, param.dimIdx);\n }\n });\n\n const resultData = [];\n for (let i = 0, len = upstream.count(); i < len; i++) {\n rawItem = upstream.getRawDataItem(i);\n if (condition.evaluate()) {\n resultData.push(rawItem as any);\n }\n }\n\n return {\n data: resultData as ExternalDataTransformResultItem['data']\n };\n }\n};\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n DataTransformOption, ExternalDataTransform, ExternalDataTransformResultItem\n} from '../../data/helper/transform';\nimport {\n DimensionLoose, DimensionIndex, OptionDataValue, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS\n} from '../../util/types';\nimport { makePrintable, throwError } from '../../util/log';\nimport { each } from 'zrender/src/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport {\n RawValueParserType, getRawValueParser, SortOrderComparator\n} from '../../data/helper/dataValueHelper';\n\n/**\n * @usage\n *\n * ```js\n * transform: {\n * type: 'sort',\n * config: { dimension: 'score', order: 'asc' }\n * }\n * transform: {\n * type: 'sort',\n * config: [\n * { dimension: 1, order: 'asc' },\n * { dimension: 'age', order: 'desc' }\n * ]\n * }\n * ```\n */\n\nexport interface SortTransformOption extends DataTransformOption {\n type: 'sort';\n config: OrderExpression | OrderExpression[];\n}\n\n// PENDING: whether support { dimension: 'score', order: 'asc' } ?\ntype OrderExpression = {\n dimension: DimensionLoose;\n order: 'asc' | 'desc';\n parser?: RawValueParserType;\n // The meansing of \"incomparable\": see [SORT_COMPARISON_RULE]\n // in `data/helper/dataValueHelper.ts`\n incomparable?: 'min' | 'max';\n};\n\n\nlet sampleLog = '';\nif (__DEV__) {\n sampleLog = [\n 'Valid config is like:',\n '{ dimension: \"age\", order: \"asc\" }',\n 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'\n ].join(' ');\n}\n\n\nexport const sortTransform: ExternalDataTransform = {\n\n type: 'echarts:sort',\n\n transform: function (params) {\n const upstream = params.upstream;\n const config = params.config;\n let errMsg = '';\n\n // Normalize\n // const orderExprList: OrderExpression[] = isArray(config[0])\n // ? config as OrderExpression[]\n // : [config as OrderExpression];\n const orderExprList: OrderExpression[] = normalizeToArray(config);\n\n if (!orderExprList.length) {\n if (__DEV__) {\n errMsg = 'Empty `config` in sort transform.';\n }\n throwError(errMsg);\n }\n\n const orderDefList: {\n dimIdx: DimensionIndex;\n parser: ReturnType;\n comparator: SortOrderComparator\n }[] = [];\n each(orderExprList, function (orderExpr) {\n const dimLoose = orderExpr.dimension;\n const order = orderExpr.order;\n const parserName = orderExpr.parser;\n const incomparable = orderExpr.incomparable;\n\n if (dimLoose == null) {\n if (__DEV__) {\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\n }\n throwError(errMsg);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n if (__DEV__) {\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\n }\n throwError(errMsg);\n }\n\n if (incomparable && (incomparable !== 'min' && incomparable !== 'max')) {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\n }\n throwError(errMsg);\n }\n if (order !== 'asc' && order !== 'desc') {\n let errMsg = '';\n if (__DEV__) {\n errMsg = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\n }\n throwError(errMsg);\n }\n\n const dimInfo = upstream.getDimensionInfo(dimLoose);\n if (!dimInfo) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Can not find dimension info via: ' + dimLoose + '.\\n',\n 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n',\n 'Illegal config:', orderExpr, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n const parser = parserName ? getRawValueParser(parserName) : null;\n if (parserName && !parser) {\n if (__DEV__) {\n errMsg = makePrintable(\n 'Invalid parser name ' + parserName + '.\\n',\n 'Illegal config:', orderExpr, '.\\n'\n );\n }\n throwError(errMsg);\n }\n\n orderDefList.push({\n dimIdx: dimInfo.index,\n parser: parser,\n comparator: new SortOrderComparator(order, incomparable)\n });\n });\n\n // TODO: support it?\n const sourceFormat = upstream.sourceFormat;\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS\n && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS\n ) {\n if (__DEV__) {\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\n }\n throwError(errMsg);\n }\n\n // Other upstream format are all array.\n const resultData = [];\n for (let i = 0, len = upstream.count(); i < len; i++) {\n resultData.push(upstream.getRawDataItem(i));\n }\n\n resultData.sort(function (item0, item1) {\n for (let i = 0; i < orderDefList.length; i++) {\n const orderDef = orderDefList[i];\n let val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\n let val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\n if (orderDef.parser) {\n val0 = orderDef.parser(val0) as OptionDataValue;\n val1 = orderDef.parser(val1) as OptionDataValue;\n }\n const result = orderDef.comparator.evaluate(val0, val1);\n if (result !== 0) {\n return result;\n }\n }\n return 0;\n });\n\n return {\n data: resultData as ExternalDataTransformResultItem['data']\n };\n }\n};\n\n", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport { EChartsExtensionInstallRegisters } from '../../extension';\nimport {filterTransform} from './filterTransform';\nimport {sortTransform} from './sortTransform';\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerTransform(filterTransform);\n registers.registerTransform(sortTransform);\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module is imported by echarts directly.\n *\n * Notice:\n * Always keep this file exists for backward compatibility.\n * Because before 4.1.0, dataset is an optional component,\n * some users may import this module manually.\n */\n\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport {\n SERIES_LAYOUT_BY_COLUMN, ComponentOption, SeriesEncodeOptionMixin,\n OptionSourceData, SeriesLayoutBy, OptionSourceHeader\n} from '../../util/types';\nimport { DataTransformOption, PipedDataTransformOption } from '../../data/helper/transform';\nimport GlobalModel from '../../model/Global';\nimport Model from '../../model/Model';\nimport { disableTransformOptionMerge, SourceManager } from '../../data/helper/sourceManager';\nimport { EChartsExtensionInstallRegisters } from '../../extension';\n\n\nexport interface DatasetOption extends\n Pick,\n Pick {\n mainType?: 'dataset';\n\n seriesLayoutBy?: SeriesLayoutBy;\n sourceHeader?: OptionSourceHeader;\n source?: OptionSourceData;\n\n fromDatasetIndex?: number;\n fromDatasetId?: string;\n transform?: DataTransformOption | PipedDataTransformOption;\n // When a transform result more than on results, the results can be referenced only by:\n // Using `fromDatasetIndex`/`fromDatasetId` and `transfromResultIndex` to retrieve\n // the results from other dataset.\n fromTransformResult?: number;\n}\n\nexport class DatasetModel extends ComponentModel {\n\n type = 'dataset';\n static type = 'dataset';\n\n static defaultOption: DatasetOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN\n };\n\n private _sourceManager: SourceManager;\n\n init(option: Opts, parentModel: Model, ecModel: GlobalModel): void {\n super.init(option, parentModel, ecModel);\n this._sourceManager = new SourceManager(this);\n disableTransformOptionMerge(this);\n }\n\n mergeOption(newOption: Opts, ecModel: GlobalModel): void {\n super.mergeOption(newOption, ecModel);\n disableTransformOptionMerge(this);\n }\n\n optionUpdated() {\n this._sourceManager.dirty();\n }\n\n getSourceManager() {\n return this._sourceManager;\n }\n}\n\nclass DatasetView extends ComponentView {\n static type = 'dataset';\n type = 'dataset';\n}\n\nexport function install(registers: EChartsExtensionInstallRegisters) {\n registers.registerComponentModel(DatasetModel);\n registers.registerComponentView(DatasetView);\n}", "import { cubicSubdivide } from '../core/curve';\nimport PathProxy from '../core/PathProxy';\n\nconst CMD = PathProxy.CMD;\n\nfunction aroundEqual(a: number, b: number) {\n return Math.abs(a - b) < 1e-5;\n}\n\nexport function pathToBezierCurves(path: PathProxy) {\n\n const data = path.data;\n const len = path.len();\n\n const bezierArrayGroups: number[][] = [];\n let currentSubpath: number[];\n\n let xi = 0;\n let yi = 0;\n let x0 = 0;\n let y0 = 0;\n\n function createNewSubpath(x: number, y: number) {\n // More than one M command\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArrayGroups.push(currentSubpath);\n }\n currentSubpath = [x, y];\n }\n\n function addLine(x0: number, y0: number, x1: number, y1: number) {\n if (!(aroundEqual(x0, x1) && aroundEqual(y0, y1))) {\n currentSubpath.push(x0, y0, x1, y1, x1, y1);\n }\n }\n\n function addArc(startAngle: number, endAngle: number, cx: number, cy: number, rx: number, ry: number) {\n // https://stackoverflow.com/questions/1734745/how-to-create-circle-with-b%C3%A9zier-curves\n const delta = Math.abs(endAngle - startAngle);\n const len = Math.tan(delta / 4) * 4 / 3;\n const dir = endAngle < startAngle ? -1 : 1;\n\n const c1 = Math.cos(startAngle);\n const s1 = Math.sin(startAngle);\n const c2 = Math.cos(endAngle);\n const s2 = Math.sin(endAngle);\n\n const x1 = c1 * rx + cx;\n const y1 = s1 * ry + cy;\n\n const x4 = c2 * rx + cx;\n const y4 = s2 * ry + cy;\n\n const hx = rx * len * dir;\n const hy = ry * len * dir;\n currentSubpath.push(\n // Move control points on tangent.\n x1 - hx * s1, y1 + hy * c1,\n x4 + hx * s2, y4 - hy * c2,\n x4, y4\n );\n }\n\n let x1;\n let y1;\n let x2;\n let y2;\n\n for (let i = 0; i < len;) {\n const cmd = data[i++];\n const isFirst = i === 1;\n\n if (isFirst) {\n // \u5982\u679C\u7B2C\u4E00\u4E2A\u547D\u4EE4\u662F L, C, Q\n // \u5219 previous point \u540C\u7ED8\u5236\u547D\u4EE4\u7684\u7B2C\u4E00\u4E2A point\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u4E3A Arc \u7684\u60C5\u51B5\u4E0B\u4F1A\u5728\u540E\u9762\u7279\u6B8A\u5904\u7406\n xi = data[i];\n yi = data[i + 1];\n\n x0 = xi;\n y0 = yi;\n\n if (cmd === CMD.L || cmd === CMD.C || cmd === CMD.Q) {\n // Start point\n currentSubpath = [x0, y0];\n }\n }\n\n switch (cmd) {\n case CMD.M:\n // moveTo \u547D\u4EE4\u91CD\u65B0\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684 subpath, \u5E76\u4E14\u66F4\u65B0\u65B0\u7684\u8D77\u70B9\n // \u5728 closePath \u7684\u65F6\u5019\u4F7F\u7528\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n\n createNewSubpath(x0, y0);\n break;\n case CMD.L:\n x1 = data[i++];\n y1 = data[i++];\n addLine(xi, yi, x1, y1);\n xi = x1;\n yi = y1;\n break;\n case CMD.C:\n currentSubpath.push(\n data[i++], data[i++], data[i++], data[i++],\n xi = data[i++], yi = data[i++]\n );\n break;\n case CMD.Q:\n x1 = data[i++];\n y1 = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n currentSubpath.push(\n // Convert quadratic to cubic\n xi + 2 / 3 * (x1 - xi), yi + 2 / 3 * (y1 - yi),\n x2 + 2 / 3 * (x1 - x2), y2 + 2 / 3 * (y1 - y2),\n x2, y2\n );\n xi = x2;\n yi = y2;\n break;\n case CMD.A:\n const cx = data[i++];\n const cy = data[i++];\n const rx = data[i++];\n const ry = data[i++];\n const startAngle = data[i++];\n const endAngle = data[i++] + startAngle;\n\n // TODO Arc rotation\n i += 1;\n const anticlockwise = !data[i++];\n\n x1 = Math.cos(startAngle) * rx + cx;\n y1 = Math.sin(startAngle) * ry + cy;\n if (isFirst) {\n // \u76F4\u63A5\u4F7F\u7528 arc \u547D\u4EE4\n // \u7B2C\u4E00\u4E2A\u547D\u4EE4\u8D77\u70B9\u8FD8\u672A\u5B9A\u4E49\n x0 = x1;\n y0 = y1;\n createNewSubpath(x0, y0);\n }\n else {\n // Connect a line between current point to arc start point.\n addLine(xi, yi, x1, y1);\n }\n\n xi = Math.cos(endAngle) * rx + cx;\n yi = Math.sin(endAngle) * ry + cy;\n\n const step = (anticlockwise ? -1 : 1) * Math.PI / 2;\n\n for (let angle = startAngle; anticlockwise ? angle > endAngle : angle < endAngle; angle += step) {\n const nextAngle = anticlockwise ? Math.max(angle + step, endAngle)\n : Math.min(angle + step, endAngle);\n addArc(angle, nextAngle, cx, cy, rx, ry);\n }\n\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n x1 = x0 + data[i++];\n y1 = y0 + data[i++];\n\n // rect is an individual path.\n createNewSubpath(x1, y0);\n addLine(x1, y0, x1, y1);\n addLine(x1, y1, x0, y1);\n addLine(x0, y1, x0, y0);\n addLine(x0, y0, x1, y0);\n break;\n case CMD.Z:\n currentSubpath && addLine(xi, yi, x0, y0);\n xi = x0;\n yi = y0;\n break;\n }\n }\n\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArrayGroups.push(currentSubpath);\n }\n\n return bezierArrayGroups;\n}\n\nfunction adpativeBezier(\n x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number,\n out: number[], scale: number\n) {\n // This bezier is used to simulates a line when converting path to beziers.\n if (aroundEqual(x0, x1) && aroundEqual(y0, y1) && aroundEqual(x2, x3) && aroundEqual(y2, y3)) {\n out.push(x3, y3);\n return;\n }\n\n const PIXEL_DISTANCE = 2 / scale;\n const PIXEL_DISTANCE_SQR = PIXEL_DISTANCE * PIXEL_DISTANCE;\n\n // Determine if curve is straight enough\n let dx = x3 - x0;\n let dy = y3 - y0;\n const d = Math.sqrt(dx * dx + dy * dy);\n dx /= d;\n dy /= d;\n\n const dx1 = x1 - x0;\n const dy1 = y1 - y0;\n const dx2 = x2 - x3;\n const dy2 = y2 - y3;\n\n const cp1LenSqr = dx1 * dx1 + dy1 * dy1;\n const cp2LenSqr = dx2 * dx2 + dy2 * dy2;\n\n if (cp1LenSqr < PIXEL_DISTANCE_SQR && cp2LenSqr < PIXEL_DISTANCE_SQR) {\n // Add small segment\n out.push(x3, y3);\n return;\n }\n\n // Project length of cp1\n const projLen1 = dx * dx1 + dy * dy1;\n // Project length of cp2\n const projLen2 = -dx * dx2 - dy * dy2;\n\n // Distance from cp1 to start-end line.\n const d1Sqr = cp1LenSqr - projLen1 * projLen1;\n // Distance from cp2 to start-end line.\n const d2Sqr = cp2LenSqr - projLen2 * projLen2;\n\n // IF the cp1 and cp2 is near to the start-line enough\n // We treat it straight enough\n if (d1Sqr < PIXEL_DISTANCE_SQR && projLen1 >= 0\n && d2Sqr < PIXEL_DISTANCE_SQR && projLen2 >= 0\n ) {\n out.push(x3, y3);\n return;\n }\n\n\n const tmpSegX: number[] = [];\n const tmpSegY: number[] = [];\n // Subdivide\n cubicSubdivide(x0, x1, x2, x3, 0.5, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, 0.5, tmpSegY);\n\n adpativeBezier(\n tmpSegX[0], tmpSegY[0], tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], tmpSegX[3], tmpSegY[3],\n out, scale\n );\n adpativeBezier(\n tmpSegX[4], tmpSegY[4], tmpSegX[5], tmpSegY[5], tmpSegX[6], tmpSegY[6], tmpSegX[7], tmpSegY[7],\n out, scale\n );\n}\n\nexport function pathToPolygons(path: PathProxy, scale?: number) {\n // TODO Optimize simple case like path is polygon and rect?\n const bezierArrayGroups = pathToBezierCurves(path);\n\n const polygons: number[][] = [];\n\n scale = scale || 1;\n\n for (let i = 0; i < bezierArrayGroups.length; i++) {\n const beziers = bezierArrayGroups[i];\n const polygon: number[] = [];\n let x0 = beziers[0];\n let y0 = beziers[1];\n\n polygon.push(x0, y0);\n\n for (let k = 2; k < beziers.length;) {\n\n const x1 = beziers[k++];\n const y1 = beziers[k++];\n const x2 = beziers[k++];\n const y2 = beziers[k++];\n const x3 = beziers[k++];\n const y3 = beziers[k++];\n\n adpativeBezier(x0, y0, x1, y1, x2, y2, x3, y3, polygon, scale);\n\n x0 = x3;\n y0 = y3;\n }\n\n polygons.push(polygon);\n }\n return polygons;\n}\n", "import { fromPoints } from '../core/bbox';\nimport BoundingRect from '../core/BoundingRect';\nimport Point from '../core/Point';\nimport { each, map } from '../core/util';\nimport Path from '../graphic/Path';\nimport Polygon from '../graphic/shape/Polygon';\nimport Rect from '../graphic/shape/Rect';\nimport Sector from '../graphic/shape/Sector';\nimport { pathToPolygons } from './convertPath';\nimport { clonePath } from './path';\n\n// Default shape dividers\n// TODO divide polygon by grids.\ninterface BinaryDivide {\n (shape: Path['shape']): Path['shape'][]\n}\n\n/**\n * Calculating a grid to divide the shape.\n */\nfunction getDividingGrids(dimSize: number[], rowDim: number, count: number) {\n const rowSize = dimSize[rowDim];\n const columnSize = dimSize[1 - rowDim];\n\n const ratio = Math.abs(rowSize / columnSize);\n let rowCount = Math.ceil(Math.sqrt(ratio * count));\n let columnCount = Math.floor(count / rowCount);\n if (columnCount === 0) {\n columnCount = 1;\n rowCount = count;\n }\n\n const grids: number[] = [];\n for (let i = 0; i < rowCount; i++) {\n grids.push(columnCount);\n }\n const currentCount = rowCount * columnCount;\n // Distribute the remaind grid evenly on each row.\n const remained = count - currentCount;\n if (remained > 0) {\n // const stride = Math.max(Math.floor(rowCount / remained), 1);\n for (let i = 0; i < remained; i++) {\n grids[i % rowCount] += 1;\n }\n }\n return grids;\n}\n\n\n// TODO cornerRadius\nfunction divideSector(sectorShape: Sector['shape'], count: number, outShapes: Sector['shape'][]) {\n const r0 = sectorShape.r0;\n const r = sectorShape.r;\n const startAngle = sectorShape.startAngle;\n const endAngle = sectorShape.endAngle;\n const angle = Math.abs(endAngle - startAngle);\n const arcLen = angle * r;\n const deltaR = r - r0;\n\n const isAngleRow = arcLen > Math.abs(deltaR);\n const grids = getDividingGrids([arcLen, deltaR], isAngleRow ? 0 : 1, count);\n\n const rowSize = (isAngleRow ? angle : deltaR) / grids.length;\n\n for (let row = 0; row < grids.length; row++) {\n const columnSize = (isAngleRow ? deltaR : angle) / grids[row];\n for (let column = 0; column < grids[row]; column++) {\n const newShape = {} as Sector['shape'];\n\n if (isAngleRow) {\n newShape.startAngle = startAngle + rowSize * row;\n newShape.endAngle = startAngle + rowSize * (row + 1);\n newShape.r0 = r0 + columnSize * column;\n newShape.r = r0 + columnSize * (column + 1);\n }\n else {\n newShape.startAngle = startAngle + columnSize * column;\n newShape.endAngle = startAngle + columnSize * (column + 1);\n newShape.r0 = r0 + rowSize * row;\n newShape.r = r0 + rowSize * (row + 1);\n }\n\n newShape.clockwise = sectorShape.clockwise;\n newShape.cx = sectorShape.cx;\n newShape.cy = sectorShape.cy;\n\n outShapes.push(newShape);\n }\n }\n}\n\nfunction divideRect(rectShape: Rect['shape'], count: number, outShapes: Rect['shape'][]) {\n const width = rectShape.width;\n const height = rectShape.height;\n\n const isHorizontalRow = width > height;\n const grids = getDividingGrids([width, height], isHorizontalRow ? 0 : 1, count);\n const rowSizeDim = isHorizontalRow ? 'width' : 'height';\n const columnSizeDim = isHorizontalRow ? 'height' : 'width';\n const rowDim = isHorizontalRow ? 'x' : 'y';\n const columnDim = isHorizontalRow ? 'y' : 'x';\n const rowSize = rectShape[rowSizeDim] / grids.length;\n\n for (let row = 0; row < grids.length; row++) {\n const columnSize = rectShape[columnSizeDim] / grids[row];\n for (let column = 0; column < grids[row]; column++) {\n const newShape = {} as Rect['shape'];\n newShape[rowDim] = row * rowSize;\n newShape[columnDim] = column * columnSize;\n newShape[rowSizeDim] = rowSize;\n newShape[columnSizeDim] = columnSize;\n\n newShape.x += rectShape.x;\n newShape.y += rectShape.y;\n\n outShapes.push(newShape);\n }\n }\n}\n\nfunction crossProduct2d(x1: number, y1: number, x2: number, y2: number) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction lineLineIntersect(\n a1x: number, a1y: number, a2x: number, a2y: number, // p1\n b1x: number, b1y: number, b2x: number, b2y: number // p2\n): Point {\n const mx = a2x - a1x;\n const my = a2y - a1y;\n const nx = b2x - b1x;\n const ny = b2y - b1y;\n\n const nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n if (Math.abs(nmCrossProduct) < 1e-6) {\n return null;\n }\n\n const b1a1x = a1x - b1x;\n const b1a1y = a1y - b1y;\n\n const p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n if (p < 0 || p > 1) {\n return null;\n }\n // p2 is an infinite line\n return new Point(\n p * mx + a1x,\n p * my + a1y\n );\n}\n\nfunction projPtOnLine(pt: Point, lineA: Point, lineB: Point): number {\n const dir = new Point();\n Point.sub(dir, lineB, lineA);\n dir.normalize();\n const dir2 = new Point();\n Point.sub(dir2, pt, lineA);\n const len = dir2.dot(dir);\n return len;\n}\n\nfunction addToPoly(poly: number[][], pt: number[]) {\n const last = poly[poly.length - 1];\n if (last && last[0] === pt[0] && last[1] === pt[1]) {\n return;\n }\n poly.push(pt);\n}\n\nfunction splitPolygonByLine(points: number[][], lineA: Point, lineB: Point) {\n const len = points.length;\n const intersections: {\n projPt: number,\n pt: Point\n idx: number\n }[] = [];\n for (let i = 0; i < len; i++) {\n const p0 = points[i];\n const p1 = points[(i + 1) % len];\n const intersectionPt = lineLineIntersect(\n p0[0], p0[1], p1[0], p1[1],\n lineA.x, lineA.y, lineB.x, lineB.y\n );\n if (intersectionPt) {\n intersections.push({\n projPt: projPtOnLine(intersectionPt, lineA, lineB),\n pt: intersectionPt,\n idx: i\n });\n }\n }\n\n // TODO No intersection?\n if (intersections.length < 2) {\n // Do clone\n return [ { points}, {points} ];\n }\n\n // Find two farthest points.\n intersections.sort((a, b) => {\n return a.projPt - b.projPt;\n });\n let splitPt0 = intersections[0];\n let splitPt1 = intersections[intersections.length - 1];\n if (splitPt1.idx < splitPt0.idx) {\n const tmp = splitPt0;\n splitPt0 = splitPt1;\n splitPt1 = tmp;\n }\n\n const splitPt0Arr = [splitPt0.pt.x, splitPt0.pt.y];\n const splitPt1Arr = [splitPt1.pt.x, splitPt1.pt.y];\n\n const newPolyA: number[][] = [splitPt0Arr];\n const newPolyB: number[][] = [splitPt1Arr];\n\n for (let i = splitPt0.idx + 1; i <= splitPt1.idx; i++) {\n addToPoly(newPolyA, points[i].slice());\n }\n addToPoly(newPolyA, splitPt1Arr);\n // Close the path\n addToPoly(newPolyA, splitPt0Arr);\n\n for (let i = splitPt1.idx + 1; i <= splitPt0.idx + len; i++) {\n addToPoly(newPolyB, points[i % len].slice());\n }\n addToPoly(newPolyB, splitPt0Arr);\n // Close the path\n addToPoly(newPolyB, splitPt1Arr);\n\n return [{\n points: newPolyA\n }, {\n points: newPolyB\n }];\n}\n\nfunction binaryDividePolygon(\n polygonShape: Pick\n) {\n const points = polygonShape.points;\n const min: number[] = [];\n const max: number[] = [];\n fromPoints(points, min, max);\n const boundingRect = new BoundingRect(\n min[0], min[1], max[0] - min[0], max[1] - min[1]\n );\n\n const width = boundingRect.width;\n const height = boundingRect.height;\n const x = boundingRect.x;\n const y = boundingRect.y;\n\n const pt0 = new Point();\n const pt1 = new Point();\n if (width > height) {\n pt0.x = pt1.x = x + width / 2;\n pt0.y = y;\n pt1.y = y + height;\n }\n else {\n pt0.y = pt1.y = y + height / 2;\n pt0.x = x;\n pt1.x = x + width;\n }\n return splitPolygonByLine(points, pt0, pt1);\n}\n\n\nfunction binaryDivideRecursive(\n divider: BinaryDivide, shape: T, count: number, out: T[]\n): T[] {\n if (count === 1) {\n out.push(shape);\n }\n else {\n const mid = Math.floor(count / 2);\n const sub = divider(shape);\n binaryDivideRecursive(divider, sub[0], mid, out);\n binaryDivideRecursive(divider, sub[1], count - mid, out);\n }\n\n return out;\n}\n\nexport function clone(path: Path, count: number) {\n const paths = [];\n for (let i = 0; i < count; i++) {\n paths.push(clonePath(path));\n }\n return paths;\n}\n\nfunction copyPathProps(source: Path, target: Path) {\n target.setStyle(source.style);\n target.z = source.z;\n target.z2 = source.z2;\n target.zlevel = source.zlevel;\n}\n\nfunction polygonConvert(points: number[]): number[][] {\n const out = [];\n for (let i = 0; i < points.length;) {\n out.push([points[i++], points[i++]]);\n }\n return out;\n}\n\nexport function split(\n path: Path, count: number\n) {\n const outShapes: Path['shape'][] = [];\n const shape = path.shape;\n let OutShapeCtor: new() => Path;\n // TODO Use clone when shape size is small\n switch (path.type) {\n case 'rect':\n divideRect(shape as Rect['shape'], count, outShapes as Rect['shape'][]);\n OutShapeCtor = Rect;\n break;\n case 'sector':\n divideSector(shape as Sector['shape'], count, outShapes as Sector['shape'][]);\n OutShapeCtor = Sector;\n break;\n case 'circle':\n divideSector({\n r0: 0, r: shape.r, startAngle: 0, endAngle: Math.PI * 2,\n cx: shape.cx, cy: shape.cy\n } as Sector['shape'], count, outShapes as Sector['shape'][]);\n OutShapeCtor = Sector;\n break;\n default:\n const m = path.getComputedTransform();\n const scale = m ? Math.sqrt(Math.max(m[0] * m[0] + m[1] * m[1], m[2] * m[2] + m[3] * m[3])) : 1;\n const polygons = map(\n pathToPolygons(path.getUpdatedPathProxy(), scale),\n poly => polygonConvert(poly)\n );\n const polygonCount = polygons.length;\n if (polygonCount === 0) {\n binaryDivideRecursive(binaryDividePolygon, {\n points: polygons[0]\n }, count, outShapes);\n }\n else if (polygonCount === count) { // In case we only split batched paths to non-batched paths. No need to split.\n for (let i = 0; i < polygonCount; i++) {\n outShapes.push({\n points: polygons[i]\n } as Polygon['shape']);\n }\n }\n else {\n // Most complex case. Assign multiple subpath to each polygon based on it's area.\n let totalArea = 0;\n const items = map(polygons, poly => {\n const min: number[] = [];\n const max: number[] = [];\n fromPoints(poly, min, max);\n // TODO: polygon area?\n const area = (max[1] - min[1]) * (max[0] - min[0]);\n totalArea += area;\n return { poly, area };\n });\n items.sort((a, b) => b.area - a.area);\n\n let left = count;\n for (let i = 0; i < polygonCount; i++) {\n const item = items[i];\n if (left <= 0) {\n break;\n }\n\n const selfCount = i === polygonCount - 1\n ? left // Use the last piece directly\n : Math.ceil(item.area / totalArea * count);\n\n if (selfCount < 0) {\n continue;\n }\n\n binaryDivideRecursive(binaryDividePolygon, {\n points: item.poly\n }, selfCount, outShapes);\n left -= selfCount;\n };\n }\n OutShapeCtor = Polygon;\n break;\n }\n\n if (!OutShapeCtor) {\n // Unkown split algorithm. Use clone instead\n return clone(path, count);\n }\n const out: Path[] = [];\n\n for (let i = 0; i < outShapes.length; i++) {\n const subPath = new OutShapeCtor();\n subPath.setShape(outShapes[i]);\n copyPathProps(path, subPath);\n out.push(subPath);\n }\n\n return out;\n}", "import PathProxy from '../core/PathProxy';\nimport { cubicSubdivide } from '../core/curve';\nimport Path from '../graphic/Path';\nimport Element, { ElementAnimateConfig } from '../Element';\nimport { defaults, extend, map } from '../core/util';\nimport { lerp } from '../core/vector';\nimport Group, { GroupLike } from '../graphic/Group';\nimport { clonePath } from './path';\nimport { MatrixArray } from '../core/matrix';\nimport Transformable from '../core/Transformable';\nimport { ZRenderType } from '../zrender';\nimport { split } from './dividePath';\nimport { pathToBezierCurves } from './convertPath';\n\nfunction alignSubpath(subpath1: number[], subpath2: number[]): [number[], number[]] {\n const len1 = subpath1.length;\n const len2 = subpath2.length;\n if (len1 === len2) {\n return [subpath1, subpath2];\n }\n const tmpSegX: number[] = [];\n const tmpSegY: number[] = [];\n\n const shorterPath = len1 < len2 ? subpath1 : subpath2;\n const shorterLen = Math.min(len1, len2);\n // Should divide excatly\n const diff = Math.abs(len2 - len1) / 6;\n const shorterBezierCount = (shorterLen - 2) / 6;\n // Add `diff` number of beziers\n const eachCurveSubDivCount = Math.ceil(diff / shorterBezierCount) + 1;\n\n const newSubpath = [shorterPath[0], shorterPath[1]];\n let remained = diff;\n\n for (let i = 2; i < shorterLen;) {\n let x0 = shorterPath[i - 2];\n let y0 = shorterPath[i - 1];\n let x1 = shorterPath[i++];\n let y1 = shorterPath[i++];\n let x2 = shorterPath[i++];\n let y2 = shorterPath[i++];\n let x3 = shorterPath[i++];\n let y3 = shorterPath[i++];\n\n if (remained <= 0) {\n newSubpath.push(x1, y1, x2, y2, x3, y3);\n continue;\n }\n\n let actualSubDivCount = Math.min(remained, eachCurveSubDivCount - 1) + 1;\n for (let k = 1; k <= actualSubDivCount; k++) {\n const p = k / actualSubDivCount;\n\n cubicSubdivide(x0, x1, x2, x3, p, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, p, tmpSegY);\n\n // tmpSegX[3] === tmpSegX[4]\n x0 = tmpSegX[3];\n y0 = tmpSegY[3];\n\n newSubpath.push(tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], x0, y0);\n x1 = tmpSegX[5];\n y1 = tmpSegY[5];\n x2 = tmpSegX[6];\n y2 = tmpSegY[6];\n // The last point (x3, y3) is still the same.\n }\n remained -= actualSubDivCount - 1;\n }\n\n return shorterPath === subpath1 ? [newSubpath, subpath2] : [subpath1, newSubpath];\n}\n\nfunction createSubpath(lastSubpathSubpath: number[], otherSubpath: number[]) {\n const len = lastSubpathSubpath.length;\n const lastX = lastSubpathSubpath[len - 2];\n const lastY = lastSubpathSubpath[len - 1];\n\n const newSubpath: number[] = [];\n for (let i = 0; i < otherSubpath.length;) {\n newSubpath[i++] = lastX;\n newSubpath[i++] = lastY;\n }\n return newSubpath;\n}\n\n/**\n * Make two bezier arrays aligns on structure. To have better animation.\n *\n * It will:\n * Make two bezier arrays have same number of subpaths.\n * Make each subpath has equal number of bezier curves.\n *\n * array is the convert result of pathToBezierCurves.\n */\nexport function alignBezierCurves(array1: number[][], array2: number[][]) {\n\n let lastSubpath1;\n let lastSubpath2;\n\n let newArray1 = [];\n let newArray2 = [];\n\n for (let i = 0; i < Math.max(array1.length, array2.length); i++) {\n const subpath1 = array1[i];\n const subpath2 = array2[i];\n\n let newSubpath1;\n let newSubpath2;\n\n if (!subpath1) {\n newSubpath1 = createSubpath(lastSubpath1 || subpath2, subpath2);\n newSubpath2 = subpath2;\n }\n else if (!subpath2) {\n newSubpath2 = createSubpath(lastSubpath2 || subpath1, subpath1);\n newSubpath1 = subpath1;\n }\n else {\n [newSubpath1, newSubpath2] = alignSubpath(subpath1, subpath2);\n lastSubpath1 = newSubpath1;\n lastSubpath2 = newSubpath2;\n }\n\n newArray1.push(newSubpath1);\n newArray2.push(newSubpath2);\n }\n\n return [newArray1, newArray2];\n}\n\ninterface MorphingPath extends Path {\n __morphT: number;\n}\n\nexport interface CombineMorphingPath extends Path {\n childrenRef(): (CombineMorphingPath | Path)[]\n __isCombineMorphing: boolean;\n}\n\nexport function centroid(array: number[]) {\n // https://en.wikipedia.org/wiki/Centroid#Of_a_polygon\n let signedArea = 0;\n let cx = 0;\n let cy = 0;\n const len = array.length;\n // Polygon should been closed.\n for (let i = 0, j = len - 2; i < len; j = i, i += 2) {\n const x0 = array[j];\n const y0 = array[j + 1];\n const x1 = array[i];\n const y1 = array[i + 1];\n const a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n }\n\n if (signedArea === 0) {\n return [array[0] || 0, array[1] || 0];\n }\n\n return [cx / signedArea / 3, cy / signedArea / 3, signedArea];\n}\n\n/**\n * Offset the points to find the nearest morphing distance.\n * Return beziers count needs to be offset.\n */\nfunction findBestRingOffset(\n fromSubBeziers: number[],\n toSubBeziers: number[],\n fromCp: number[],\n toCp: number[]\n) {\n const bezierCount = (fromSubBeziers.length - 2) / 6;\n let bestScore = Infinity;\n let bestOffset = 0;\n\n const len = fromSubBeziers.length;\n const len2 = len - 2;\n for (let offset = 0; offset < bezierCount; offset++) {\n const cursorOffset = offset * 6;\n let score = 0;\n\n for (let k = 0; k < len; k += 2) {\n let idx = k === 0 ? cursorOffset : ((cursorOffset + k - 2) % len2 + 2);\n\n const x0 = fromSubBeziers[idx] - fromCp[0];\n const y0 = fromSubBeziers[idx + 1] - fromCp[1];\n const x1 = toSubBeziers[k] - toCp[0];\n const y1 = toSubBeziers[k + 1] - toCp[1];\n\n const dx = x1 - x0;\n const dy = y1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestOffset = offset;\n }\n }\n\n return bestOffset;\n}\n\nfunction reverse(array: number[]) {\n const newArr: number[] = [];\n const len = array.length;\n for (let i = 0; i < len; i += 2) {\n newArr[i] = array[len - i - 2];\n newArr[i + 1] = array[len - i - 1];\n }\n return newArr;\n}\n\ntype MorphingData = {\n from: number[];\n to: number[];\n fromCp: number[];\n toCp: number[];\n rotation: number;\n}[];\n\n/**\n * If we interpolating between two bezier curve arrays.\n * It will have many broken effects during the transition.\n * So we try to apply an extra rotation which can make each bezier curve morph as small as possible.\n */\nfunction findBestMorphingRotation(\n fromArr: number[][],\n toArr: number[][],\n searchAngleIteration: number,\n searchAngleRange: number\n): MorphingData {\n const result = [];\n\n let fromNeedsReverse: boolean;\n\n for (let i = 0; i < fromArr.length; i++) {\n let fromSubpathBezier = fromArr[i];\n const toSubpathBezier = toArr[i];\n\n const fromCp = centroid(fromSubpathBezier);\n const toCp = centroid(toSubpathBezier);\n\n if (fromNeedsReverse == null) {\n // Reverse from array if two have different directions.\n // Determine the clockwise based on the first subpath.\n // Reverse all subpaths or not. Avoid winding rule changed.\n fromNeedsReverse = fromCp[2] < 0 !== toCp[2] < 0;\n }\n\n const newFromSubpathBezier: number[] = [];\n const newToSubpathBezier: number[] = [];\n let bestAngle = 0;\n let bestScore = Infinity;\n let tmpArr: number[] = [];\n\n const len = fromSubpathBezier.length;\n if (fromNeedsReverse) {\n // Make sure clockwise\n fromSubpathBezier = reverse(fromSubpathBezier);\n }\n const offset = findBestRingOffset(fromSubpathBezier, toSubpathBezier, fromCp, toCp) * 6;\n\n const len2 = len - 2;\n for (let k = 0; k < len2; k += 2) {\n // Not include the start point.\n const idx = (offset + k) % len2 + 2;\n newFromSubpathBezier[k + 2] = fromSubpathBezier[idx] - fromCp[0];\n newFromSubpathBezier[k + 3] = fromSubpathBezier[idx + 1] - fromCp[1];\n }\n newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];\n newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];\n\n if (searchAngleIteration > 0) {\n const step = searchAngleRange / searchAngleIteration;\n for (let angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {\n const sa = Math.sin(angle);\n const ca = Math.cos(angle);\n let score = 0;\n\n for (let k = 0; k < fromSubpathBezier.length; k += 2) {\n const x0 = newFromSubpathBezier[k];\n const y0 = newFromSubpathBezier[k + 1];\n const x1 = toSubpathBezier[k] - toCp[0];\n const y1 = toSubpathBezier[k + 1] - toCp[1];\n\n // Apply rotation on the target point.\n const newX1 = x1 * ca - y1 * sa;\n const newY1 = x1 * sa + y1 * ca;\n\n tmpArr[k] = newX1;\n tmpArr[k + 1] = newY1;\n\n const dx = newX1 - x0;\n const dy = newY1 - y0;\n\n // Use dot product to have min direction change.\n // const d = Math.sqrt(x0 * x0 + y0 * y0);\n // score += x0 * dx / d + y0 * dy / d;\n score += dx * dx + dy * dy;\n }\n\n if (score < bestScore) {\n bestScore = score;\n bestAngle = angle;\n // Copy.\n for (let m = 0; m < tmpArr.length; m++) {\n newToSubpathBezier[m] = tmpArr[m];\n }\n }\n }\n }\n else {\n for (let i = 0; i < len; i += 2) {\n newToSubpathBezier[i] = toSubpathBezier[i] - toCp[0];\n newToSubpathBezier[i + 1] = toSubpathBezier[i + 1] - toCp[1];\n }\n }\n\n result.push({\n from: newFromSubpathBezier,\n to: newToSubpathBezier,\n fromCp,\n toCp,\n rotation: -bestAngle\n });\n }\n return result;\n}\n\nexport function isCombineMorphing(path: Element): path is CombineMorphingPath {\n return (path as CombineMorphingPath).__isCombineMorphing;\n}\n\nexport function isMorphing(el: Element) {\n return (el as MorphingPath).__morphT >= 0;\n}\n\nconst SAVED_METHOD_PREFIX = '__mOriginal_';\nfunction saveAndModifyMethod(\n obj: T,\n methodName: M,\n modifiers: { replace?: T[M], after?: T[M], before?: T[M] }\n) {\n const savedMethodName = SAVED_METHOD_PREFIX + methodName;\n const originalMethod = (obj as any)[savedMethodName] || obj[methodName];\n if (!(obj as any)[savedMethodName]) {\n (obj as any)[savedMethodName] = obj[methodName];\n }\n const replace = modifiers.replace;\n const after = modifiers.after;\n const before = modifiers.before;\n\n (obj as any)[methodName] = function () {\n const args = arguments;\n let res;\n before && (before as unknown as Function).apply(this, args);\n // Still call the original method if not replacement.\n if (replace) {\n res = (replace as unknown as Function).apply(this, args);\n }\n else {\n res = originalMethod.apply(this, args);\n }\n after && (after as unknown as Function).apply(this, args);\n return res;\n };\n}\nfunction restoreMethod(\n obj: T,\n methodName: keyof T\n) {\n const savedMethodName = SAVED_METHOD_PREFIX + methodName;\n if ((obj as any)[savedMethodName]) {\n obj[methodName] = (obj as any)[savedMethodName];\n (obj as any)[savedMethodName] = null;\n }\n}\n\nfunction applyTransformOnBeziers(bezierCurves: number[][], mm: MatrixArray) {\n for (let i = 0; i < bezierCurves.length; i++) {\n const subBeziers = bezierCurves[i];\n for (let k = 0; k < subBeziers.length;) {\n const x = subBeziers[k];\n const y = subBeziers[k + 1];\n\n subBeziers[k++] = mm[0] * x + mm[2] * y + mm[4];\n subBeziers[k++] = mm[1] * x + mm[3] * y + mm[5];\n }\n }\n}\n\nfunction prepareMorphPath(\n fromPath: Path,\n toPath: Path\n) {\n const fromPathProxy = fromPath.getUpdatedPathProxy();\n const toPathProxy = toPath.getUpdatedPathProxy();\n\n const [fromBezierCurves, toBezierCurves] =\n alignBezierCurves(pathToBezierCurves(fromPathProxy), pathToBezierCurves(toPathProxy));\n\n const fromPathTransform = fromPath.getComputedTransform();\n const toPathTransform = toPath.getComputedTransform();\n function updateIdentityTransform(this: Transformable) {\n this.transform = null;\n }\n fromPathTransform && applyTransformOnBeziers(fromBezierCurves, fromPathTransform);\n toPathTransform && applyTransformOnBeziers(toBezierCurves, toPathTransform);\n // Just ignore transform\n saveAndModifyMethod(toPath, 'updateTransform', { replace: updateIdentityTransform });\n toPath.transform = null;\n\n const morphingData = findBestMorphingRotation(fromBezierCurves, toBezierCurves, 10, Math.PI);\n\n const tmpArr: number[] = [];\n\n saveAndModifyMethod(toPath, 'buildPath', { replace(path: PathProxy) {\n const t = (toPath as MorphingPath).__morphT;\n const onet = 1 - t;\n\n const newCp: number[] = [];\n\n for (let i = 0; i < morphingData.length; i++) {\n const item = morphingData[i];\n const from = item.from;\n const to = item.to;\n const angle = item.rotation * t;\n const fromCp = item.fromCp;\n const toCp = item.toCp;\n const sa = Math.sin(angle);\n const ca = Math.cos(angle);\n\n lerp(newCp, fromCp, toCp, t);\n\n for (let m = 0; m < from.length; m += 2) {\n const x0 = from[m];\n const y0 = from[m + 1];\n const x1 = to[m];\n const y1 = to[m + 1];\n\n const x = x0 * onet + x1 * t;\n const y = y0 * onet + y1 * t;\n\n tmpArr[m] = (x * ca - y * sa) + newCp[0];\n tmpArr[m + 1] = (x * sa + y * ca) + newCp[1];\n }\n\n let x0 = tmpArr[0];\n let y0 = tmpArr[1];\n\n path.moveTo(x0, y0);\n\n for (let m = 2; m < from.length;) {\n const x1 = tmpArr[m++];\n const y1 = tmpArr[m++];\n const x2 = tmpArr[m++];\n const y2 = tmpArr[m++];\n const x3 = tmpArr[m++];\n const y3 = tmpArr[m++];\n\n // Is a line.\n if (x0 === x1 && y0 === y1 && x2 === x3 && y2 === y3) {\n path.lineTo(x3, y3);\n }\n else {\n path.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n x0 = x3;\n y0 = y3;\n }\n }\n } });\n}\n\n/**\n * Morphing from old path to new path.\n */\nexport function morphPath(\n fromPath: Path,\n toPath: Path,\n animationOpts: ElementAnimateConfig\n): Path {\n if (!fromPath || !toPath) {\n return toPath;\n }\n\n const oldDone = animationOpts.done;\n // const oldAborted = animationOpts.aborted;\n const oldDuring = animationOpts.during;\n\n prepareMorphPath(fromPath, toPath);\n\n (toPath as MorphingPath).__morphT = 0;\n\n function restoreToPath() {\n restoreMethod(toPath, 'buildPath');\n restoreMethod(toPath, 'updateTransform');\n // Mark as not in morphing\n (toPath as MorphingPath).__morphT = -1;\n // Cleanup.\n toPath.createPathProxy();\n toPath.dirtyShape();\n }\n\n toPath.animateTo({\n __morphT: 1\n } as any, defaults({\n during(p) {\n toPath.dirtyShape();\n oldDuring && oldDuring(p);\n },\n done() {\n restoreToPath();\n oldDone && oldDone();\n }\n // NOTE: Don't do restore if aborted.\n // Because all status was just set when animation started.\n // aborted() {\n // oldAborted && oldAborted();\n // }\n } as ElementAnimateConfig, animationOpts));\n\n return toPath;\n}\n\n// https://github.com/mapbox/earcut/blob/master/src/earcut.js#L437\n// https://jsfiddle.net/pissang/2jk7x145/\n// function zOrder(x: number, y: number, minX: number, minY: number, maxX: number, maxY: number) {\n// // Normalize coords to 0 - 1\n// // The transformed into non-negative 15-bit integer range\n// x = (maxX === minX) ? 0 : Math.round(32767 * (x - minX) / (maxX - minX));\n// y = (maxY === minY) ? 0 : Math.round(32767 * (y - minY) / (maxY - minY));\n\n// x = (x | (x << 8)) & 0x00FF00FF;\n// x = (x | (x << 4)) & 0x0F0F0F0F;\n// x = (x | (x << 2)) & 0x33333333;\n// x = (x | (x << 1)) & 0x55555555;\n\n// y = (y | (y << 8)) & 0x00FF00FF;\n// y = (y | (y << 4)) & 0x0F0F0F0F;\n// y = (y | (y << 2)) & 0x33333333;\n// y = (y | (y << 1)) & 0x55555555;\n\n// return x | (y << 1);\n// }\n\n// https://github.com/w8r/hilbert/blob/master/hilbert.js#L30\n// https://jsfiddle.net/pissang/xdnbzg6v/\nfunction hilbert(x: number, y: number, minX: number, minY: number, maxX: number, maxY: number) {\n const bits = 16;\n x = (maxX === minX) ? 0 : Math.round(32767 * (x - minX) / (maxX - minX));\n y = (maxY === minY) ? 0 : Math.round(32767 * (y - minY) / (maxY - minY));\n\n let d = 0;\n let tmp: number;\n for (let s = (1 << bits) / 2; s > 0; s /= 2) {\n let rx = 0, ry = 0;\n\n if ((x & s) > 0) rx = 1;\n if ((y & s) > 0) ry = 1;\n\n d += s * s * ((3 * rx) ^ ry);\n\n if (ry === 0) {\n if (rx === 1) {\n x = s - 1 - x;\n y = s - 1 - y;\n }\n tmp = x;\n x = y;\n y = tmp;\n }\n }\n return d;\n}\n\n// Sort paths on hilbert. Not using z-order because it may still have large cross.\n// So the left most source can animate to the left most target, not right most target.\n// Hope in this way. We can make sure each element is animated to the proper target. Not the farthest.\nfunction sortPaths(pathList: Path[]): Path[] {\n let xMin = Infinity;\n let yMin = Infinity;\n let xMax = -Infinity;\n let yMax = -Infinity;\n const cps = map(pathList, path => {\n const rect = path.getBoundingRect();\n const m = path.getComputedTransform();\n const x = rect.x + rect.width / 2 + (m ? m[4] : 0);\n const y = rect.y + rect.height / 2 + (m ? m[5] : 0);\n xMin = Math.min(x, xMin);\n yMin = Math.min(y, yMin);\n xMax = Math.max(x, xMax);\n yMax = Math.max(y, yMax);\n return [x, y];\n });\n\n const items = map(cps, (cp, idx) => {\n return {\n cp,\n z: hilbert(cp[0], cp[1], xMin, yMin, xMax, yMax),\n path: pathList[idx]\n }\n });\n\n return items.sort((a, b) => a.z - b.z).map(item => item.path);\n}\n\nexport interface DividePathParams {\n path: Path,\n count: number\n};\nexport interface DividePath {\n (params: DividePathParams): Path[]\n}\n\nexport interface IndividualDelay {\n (index: number, count: number, fromPath: Path, toPath: Path): number\n}\n\nfunction defaultDividePath(param: DividePathParams) {\n return split(param.path, param.count);\n}\nexport interface CombineConfig extends ElementAnimateConfig {\n /**\n * Transform of returned will be ignored.\n */\n dividePath?: DividePath\n /**\n * delay of each individual.\n * Because individual are sorted on z-order. The index is also sorted top-left / right-down.\n */\n individualDelay?: IndividualDelay\n /**\n * If sort splitted paths so the movement between them can be more natural\n */\n // sort?: boolean\n}\n\nfunction createEmptyReturn() {\n return {\n fromIndividuals: [] as Path[],\n toIndividuals: [] as Path[],\n count: 0\n }\n}\n/**\n * Make combine morphing from many paths to one.\n * Will return a group to replace the original path.\n */\nexport function combineMorph(\n fromList: (CombineMorphingPath | Path)[],\n toPath: Path,\n animationOpts: CombineConfig\n) {\n let fromPathList: Path[] = [];\n\n function addFromPath(fromList: Element[]) {\n for (let i = 0; i < fromList.length; i++) {\n const from = fromList[i];\n if (isCombineMorphing(from)) {\n addFromPath((from as GroupLike).childrenRef());\n }\n else if (from instanceof Path) {\n fromPathList.push(from);\n }\n }\n }\n addFromPath(fromList);\n\n const separateCount = fromPathList.length;\n\n // fromPathList.length is 0.\n if (!separateCount) {\n return createEmptyReturn();\n }\n\n const dividePath = animationOpts.dividePath || defaultDividePath;\n\n let toSubPathList = dividePath({\n path: toPath, count: separateCount\n });\n if (toSubPathList.length !== separateCount) {\n console.error('Invalid morphing: unmatched splitted path');\n return createEmptyReturn();\n }\n\n fromPathList = sortPaths(fromPathList);\n toSubPathList = sortPaths(toSubPathList);\n\n const oldDone = animationOpts.done;\n // const oldAborted = animationOpts.aborted;\n const oldDuring = animationOpts.during;\n const individualDelay = animationOpts.individualDelay;\n\n const identityTransform = new Transformable();\n\n for (let i = 0; i < separateCount; i++) {\n const from = fromPathList[i];\n const to = toSubPathList[i];\n\n to.parent = toPath as unknown as Group;\n\n // Ignore transform in each subpath.\n to.copyTransform(identityTransform);\n\n // Will do morphPath for each individual if individualDelay is set.\n if (!individualDelay) {\n prepareMorphPath(from, to);\n }\n }\n\n (toPath as CombineMorphingPath).__isCombineMorphing = true;\n (toPath as CombineMorphingPath).childrenRef = function () {\n return toSubPathList;\n };\n\n function addToSubPathListToZr(zr: ZRenderType) {\n for (let i = 0; i < toSubPathList.length; i++) {\n toSubPathList[i].addSelfToZr(zr);\n }\n }\n saveAndModifyMethod(toPath, 'addSelfToZr', {\n after(zr) {\n addToSubPathListToZr(zr);\n }\n });\n saveAndModifyMethod(toPath, 'removeSelfFromZr', {\n after(zr) {\n for (let i = 0; i < toSubPathList.length; i++) {\n toSubPathList[i].removeSelfFromZr(zr);\n }\n }\n });\n\n function restoreToPath() {\n (toPath as CombineMorphingPath).__isCombineMorphing = false;\n // Mark as not in morphing\n (toPath as MorphingPath).__morphT = -1;\n (toPath as CombineMorphingPath).childrenRef = null;\n\n restoreMethod(toPath, 'addSelfToZr');\n restoreMethod(toPath, 'removeSelfFromZr');\n }\n\n const toLen = toSubPathList.length;\n\n if (individualDelay) {\n let animating = toLen;\n const eachDone = () => {\n animating--;\n if (animating === 0) {\n restoreToPath();\n oldDone && oldDone();\n }\n }\n // Animate each element individually.\n for (let i = 0; i < toLen; i++) {\n // TODO only call during once?\n const indivdualAnimationOpts = individualDelay ? defaults({\n delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toSubPathList[i]),\n done: eachDone\n } as ElementAnimateConfig, animationOpts) : animationOpts;\n morphPath(fromPathList[i], toSubPathList[i], indivdualAnimationOpts);\n }\n }\n else {\n (toPath as MorphingPath).__morphT = 0;\n toPath.animateTo({\n __morphT: 1\n } as any, defaults({\n during(p) {\n for (let i = 0; i < toLen; i++) {\n const child = toSubPathList[i] as MorphingPath;\n child.__morphT = (toPath as MorphingPath).__morphT;\n child.dirtyShape();\n }\n oldDuring && oldDuring(p);\n },\n done() {\n restoreToPath();\n for (let i = 0; i < fromList.length; i++) {\n restoreMethod(fromList[i], 'updateTransform');\n }\n oldDone && oldDone();\n }\n } as ElementAnimateConfig, animationOpts));\n }\n\n if (toPath.__zr) {\n addToSubPathListToZr(toPath.__zr);\n }\n\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toSubPathList,\n count: toLen\n };\n}\nexport interface SeparateConfig extends ElementAnimateConfig {\n dividePath?: DividePath\n individualDelay?: IndividualDelay\n /**\n * If sort splitted paths so the movement between them can be more natural\n */\n // sort?: boolean\n // // If the from path of separate animation is doing combine animation.\n // // And the paths number is not same with toPathList. We need to do enter/leave animation\n // // on the missing/spare paths.\n // enter?: (el: Path) => void\n // leave?: (el: Path) => void\n}\n\n/**\n * Make separate morphing from one path to many paths.\n * Make the MorphingKind of `toPath` become `'ONE_ONE'`.\n */\nexport function separateMorph(\n fromPath: Path,\n toPathList: Path[],\n animationOpts: SeparateConfig\n) {\n const toLen = toPathList.length;\n let fromPathList: Path[] = [];\n\n const dividePath = animationOpts.dividePath || defaultDividePath;\n\n function addFromPath(fromList: Element[]) {\n for (let i = 0; i < fromList.length; i++) {\n const from = fromList[i];\n if (isCombineMorphing(from)) {\n addFromPath((from as GroupLike).childrenRef());\n }\n else if (from instanceof Path) {\n fromPathList.push(from);\n }\n }\n }\n // This case most happen when a combining path is called to reverse the animation\n // to its original separated state.\n if (isCombineMorphing(fromPath)) {\n addFromPath(fromPath.childrenRef());\n\n const fromLen = fromPathList.length;\n if (fromLen < toLen) {\n let k = 0;\n for (let i = fromLen; i < toLen; i++) {\n // Create a clone\n fromPathList.push(clonePath(fromPathList[k++ % fromLen]));\n }\n }\n // Else simply remove if fromLen > toLen\n fromPathList.length = toLen;\n }\n else {\n fromPathList = dividePath({ path: fromPath, count: toLen });\n const fromPathTransform = fromPath.getComputedTransform();\n for (let i = 0; i < fromPathList.length; i++) {\n // Force use transform of source path.\n fromPathList[i].setLocalTransform(fromPathTransform);\n }\n if (fromPathList.length !== toLen) {\n console.error('Invalid morphing: unmatched splitted path');\n return createEmptyReturn();\n }\n }\n\n fromPathList = sortPaths(fromPathList);\n toPathList = sortPaths(toPathList);\n\n const individualDelay = animationOpts.individualDelay;\n for (let i = 0; i < toLen; i++) {\n const indivdualAnimationOpts = individualDelay ? defaults({\n delay: (animationOpts.delay || 0) + individualDelay(i, toLen, fromPathList[i], toPathList[i])\n } as ElementAnimateConfig, animationOpts) : animationOpts;\n morphPath(fromPathList[i], toPathList[i], indivdualAnimationOpts);\n }\n\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toPathList,\n count: toPathList.length\n };\n}\n\nexport { split as defaultDividePath }", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport {\n separateMorph,\n combineMorph,\n morphPath,\n DividePath,\n isCombineMorphing,\n SeparateConfig\n} from 'zrender/src/tool/morphPath';\nimport { Path } from '../util/graphic';\nimport SeriesModel from '../model/Series';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport { defaults, isArray} from 'zrender/src/core/util';\nimport { getAnimationConfig } from './basicTrasition';\nimport { ECElement, UniversalTransitionOption } from '../util/types';\nimport { clonePath } from 'zrender/src/tool/path';\nimport Model from '../model/Model';\n\n\ntype DescendentElements = Element[];\ntype DescendentPaths = Path[];\n\nfunction isMultiple(elements: DescendentElements | DescendentElements[]): elements is DescendentElements[] {\n return isArray(elements[0]);\n}\n\ninterface MorphingBatch {\n one: Path;\n many: Path[];\n}\n\nfunction prepareMorphBatches(one: DescendentPaths, many: DescendentPaths[]) {\n const batches: MorphingBatch[] = [];\n const batchCount = one.length;\n for (let i = 0; i < batchCount; i++) {\n batches.push({\n one: one[i],\n many: []\n });\n }\n\n for (let i = 0; i < many.length; i++) {\n const len = many[i].length;\n let k;\n for (k = 0; k < len; k++) {\n batches[k % batchCount].many.push(many[i][k]);\n }\n }\n\n let off = 0;\n // If one has more paths than each one of many. average them.\n for (let i = batchCount - 1; i >= 0; i--) {\n if (!batches[i].many.length) {\n const moveFrom = batches[off].many;\n if (moveFrom.length <= 1) { // Not enough\n // Start from the first one.\n if (off) {\n off = 0;\n }\n else {\n return batches;\n }\n }\n const len = moveFrom.length;\n const mid = Math.ceil(len / 2);\n batches[i].many = moveFrom.slice(mid, len);\n batches[off].many = moveFrom.slice(0, mid);\n\n off++;\n }\n }\n\n return batches;\n}\n\nconst pathDividers: Record = {\n clone(params) {\n const ret: Path[] = [];\n // Fitting the alpha\n const approxOpacity = 1 - Math.pow(1 - params.path.style.opacity, 1 / params.count);\n for (let i = 0; i < params.count; i++) {\n const cloned = clonePath(params.path);\n cloned.setStyle('opacity', approxOpacity);\n ret.push(cloned);\n }\n return ret;\n },\n // Use the default divider\n split: null\n};\n\nexport function applyMorphAnimation(\n from: DescendentPaths | DescendentPaths[],\n to: DescendentPaths | DescendentPaths[],\n divideShape: UniversalTransitionOption['divideShape'],\n seriesModel: SeriesModel,\n dataIndex: number,\n animateOtherProps: (\n fromIndividual: Path,\n toIndividual: Path,\n rawFrom: Path,\n rawTo: Path,\n animationCfg: ElementAnimateConfig\n ) => void\n) {\n if (!from.length || !to.length) {\n return;\n }\n\n const updateAnimationCfg = getAnimationConfig('update', seriesModel, dataIndex);\n if (!(updateAnimationCfg.duration > 0)) {\n return;\n }\n const animationDelay = (seriesModel.getModel('universalTransition') as Model)\n .get('delay');\n\n\n const animationCfg = Object.assign({\n // Need to setToFinal so the further calculation based on the style can be correct.\n // Like emphasis color.\n setToFinal: true\n } as SeparateConfig, updateAnimationCfg);\n\n\n let many: DescendentPaths[];\n let one: DescendentPaths;\n if (isMultiple(from)) { // manyToOne\n many = from;\n one = to as DescendentPaths;\n }\n if (isMultiple(to)) { // oneToMany\n many = to;\n one = from as DescendentPaths;\n }\n\n function morphOneBatch(\n batch: MorphingBatch,\n fromIsMany: boolean,\n animateIndex: number,\n animateCount: number,\n forceManyOne?: boolean\n ) {\n const batchMany = batch.many;\n const batchOne = batch.one;\n if (batchMany.length === 1 && !forceManyOne) {\n // Is one to one\n const batchFrom: Path = fromIsMany ? batchMany[0] : batchOne;\n const batchTo: Path = fromIsMany ? batchOne : batchMany[0];\n\n if (isCombineMorphing(batchFrom as Path)) {\n // Keep doing combine animation.\n morphOneBatch({\n many: [batchFrom as Path],\n one: batchTo as Path\n }, true, animateIndex, animateCount, true);\n }\n else {\n const individualAnimationCfg = animationDelay ? defaults({\n delay: animationDelay(animateIndex, animateCount)\n } as ElementAnimateConfig, animationCfg) : animationCfg;\n morphPath(batchFrom, batchTo, individualAnimationCfg);\n animateOtherProps(batchFrom, batchTo, batchFrom, batchTo, individualAnimationCfg);\n }\n }\n else {\n const separateAnimationCfg = defaults({\n dividePath: pathDividers[divideShape],\n individualDelay: animationDelay && function (idx, count, fromPath, toPath) {\n return animationDelay(idx + animateIndex, animateCount);\n }\n } as SeparateConfig, animationCfg);\n\n const {\n fromIndividuals,\n toIndividuals\n } = fromIsMany\n ? combineMorph(batchMany, batchOne, separateAnimationCfg)\n : separateMorph(batchOne, batchMany, separateAnimationCfg);\n\n const count = fromIndividuals.length;\n for (let k = 0; k < count; k++) {\n const individualAnimationCfg = animationDelay ? defaults({\n delay: animationDelay(k, count)\n } as ElementAnimateConfig, animationCfg) : animationCfg;\n animateOtherProps(\n fromIndividuals[k],\n toIndividuals[k],\n fromIsMany ? batchMany[k] : batch.one,\n fromIsMany ? batch.one : batchMany[k],\n individualAnimationCfg\n );\n }\n }\n }\n\n const fromIsMany = many\n ? many === from\n // Is one to one. If the path number not match. also needs do merge and separate morphing.\n : from.length > to.length;\n\n const morphBatches = many\n ? prepareMorphBatches(one, many)\n : prepareMorphBatches(\n (fromIsMany ? to : from) as DescendentPaths,\n [(fromIsMany ? from : to) as DescendentPaths]\n );\n let animateCount = 0;\n for (let i = 0; i < morphBatches.length; i++) {\n animateCount += morphBatches[i].many.length;\n }\n let animateIndex = 0;\n for (let i = 0; i < morphBatches.length; i++) {\n morphOneBatch(morphBatches[i], fromIsMany, animateIndex, animateCount);\n animateIndex += morphBatches[i].many.length;\n }\n}\n\nexport function getPathList(\n elements: Element\n): DescendentPaths;\nexport function getPathList(\n elements: Element[]\n): DescendentPaths[];\nexport function getPathList(\n elements: Element | Element[]\n): DescendentPaths | DescendentPaths[] {\n if (!elements) {\n return [];\n }\n\n if (isArray(elements)) {\n const pathList = [];\n for (let i = 0; i < elements.length; i++) {\n pathList.push(getPathList(elements[i]));\n }\n return pathList as DescendentPaths[];\n }\n\n const pathList: DescendentPaths = [];\n\n elements.traverse(el => {\n if ((el instanceof Path) && !(el as ECElement).disableMorphing && !el.invisible && !el.ignore) {\n pathList.push(el);\n }\n });\n return pathList;\n}", "/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n// Universal transitions that can animate between any shapes(series) and any properties in any amounts.\n\nimport SeriesModel, { SERIES_UNIVERSAL_TRANSITION_PROP } from '../model/Series';\nimport {createHashMap, each, map, filter, isArray} from 'zrender/src/core/util';\nimport Element, { ElementAnimateConfig } from 'zrender/src/Element';\nimport { applyMorphAnimation, getPathList } from './morphTransitionHelper';\nimport Path from 'zrender/src/graphic/Path';\nimport { EChartsExtensionInstallRegisters } from '../extension';\nimport { initProps } from '../util/graphic';\nimport DataDiffer from '../data/DataDiffer';\nimport SeriesData from '../data/SeriesData';\nimport { Dictionary, DimensionLoose, OptionDataItemObject, UniversalTransitionOption } from '../util/types';\nimport {\n UpdateLifecycleParams,\n UpdateLifecycleTransitionItem,\n UpdateLifecycleTransitionSeriesFinder\n} from '../core/lifecycle';\nimport { makeInner, normalizeToArray } from '../util/model';\nimport { warn } from '../util/log';\nimport ExtensionAPI from '../core/ExtensionAPI';\nimport { getAnimationConfig, getOldStyle } from './basicTrasition';\nimport Model from '../model/Model';\nimport Displayable from 'zrender/src/graphic/Displayable';\n\nconst DATA_COUNT_THRESHOLD = 1e4;\n\ninterface GlobalStore { oldSeries: SeriesModel[], oldData: SeriesData[] };\nconst getUniversalTransitionGlobalStore = makeInner();\n\ninterface DiffItem {\n data: SeriesData\n dim: DimensionLoose\n divide: UniversalTransitionOption['divideShape']\n dataIndex: number\n}\ninterface TransitionSeries {\n data: SeriesData\n divide: UniversalTransitionOption['divideShape']\n dim?: DimensionLoose\n}\n\nfunction getGroupIdDimension(data: SeriesData) {\n const dimensions = data.dimensions;\n for (let i = 0; i < dimensions.length; i++) {\n const dimInfo = data.getDimensionInfo(dimensions[i]);\n if (dimInfo && dimInfo.otherDims.itemGroupId === 0) {\n return dimensions[i];\n }\n }\n}\n\nfunction flattenDataDiffItems(list: TransitionSeries[]) {\n const items: DiffItem[] = [];\n\n each(list, seriesInfo => {\n const data = seriesInfo.data;\n if (data.count() > DATA_COUNT_THRESHOLD) {\n if (__DEV__) {\n warn('Universal transition is disabled on large data > 10k.');\n }\n return;\n }\n const indices = data.getIndices();\n const groupDim = getGroupIdDimension(data);\n for (let dataIndex = 0; dataIndex < indices.length; dataIndex++) {\n items.push({\n data,\n dim: seriesInfo.dim || groupDim,\n divide: seriesInfo.divide,\n dataIndex\n });\n }\n });\n\n return items;\n}\n\n\nfunction fadeInElement(newEl: Element, newSeries: SeriesModel, newIndex: number) {\n newEl.traverse(el => {\n if (el instanceof Path) {\n // TODO use fade in animation for target element.\n initProps(el, {\n style: {\n opacity: 0\n }\n }, newSeries, {\n dataIndex: newIndex,\n isFrom: true\n });\n }\n });\n}\nfunction removeEl(el: Element) {\n if (el.parent) {\n // Bake parent transform to element.\n // So it can still have proper transform to transition after it's removed.\n const computedTransform = el.getComputedTransform();\n el.setLocalTransform(computedTransform);\n el.parent.remove(el);\n }\n}\nfunction stopAnimation(el: Element) {\n el.stopAnimation();\n if (el.isGroup) {\n el.traverse(child => {\n child.stopAnimation();\n });\n }\n}\nfunction animateElementStyles(el: Element, dataIndex: number, seriesModel: SeriesModel) {\n const animationConfig = getAnimationConfig('update', seriesModel, dataIndex);\n el.traverse(child => {\n if (child instanceof Displayable) {\n const oldStyle = getOldStyle(child);\n if (oldStyle) {\n child.animateFrom({\n style: oldStyle\n }, animationConfig);\n }\n }\n });\n}\n\n\nfunction isAllIdSame(oldDiffItems: DiffItem[], newDiffItems: DiffItem[]) {\n const len = oldDiffItems.length;\n if (len !== newDiffItems.length) {\n return false;\n }\n for (let i = 0; i < len; i++) {\n const oldItem = oldDiffItems[i];\n const newItem = newDiffItems[i];\n if (oldItem.data.getId(oldItem.dataIndex) !== newItem.data.getId(newItem.dataIndex)) {\n return false;\n }\n }\n return true;\n}\n\nfunction transitionBetween(\n oldList: TransitionSeries[],\n newList: TransitionSeries[],\n api: ExtensionAPI\n) {\n\n const oldDiffItems = flattenDataDiffItems(oldList);\n const newDiffItems = flattenDataDiffItems(newList);\n\n function updateMorphingPathProps(\n from: Path, to: Path,\n rawFrom: Path, rawTo: Path,\n animationCfg: ElementAnimateConfig\n ) {\n if (rawFrom || from) {\n to.animateFrom({\n style: (rawFrom || from).style\n }, animationCfg);\n }\n }\n\n\n function findKeyDim(items: DiffItem[]) {\n for (let i = 0; i < items.length; i++) {\n if (items[i].dim) {\n return items[i].dim;\n }\n }\n }\n const oldKeyDim = findKeyDim(oldDiffItems);\n const newKeyDim = findKeyDim(newDiffItems);\n\n let hasMorphAnimation = false;\n\n function createKeyGetter(isOld: boolean, onlyGetId: boolean) {\n return function (diffItem: DiffItem): string {\n const data = diffItem.data;\n const dataIndex = diffItem.dataIndex;\n // TODO if specified dim\n if (onlyGetId) {\n return data.getId(dataIndex);\n }\n\n // Use group id as transition key by default.\n // So we can achieve multiple to multiple animation like drilldown / up naturally.\n // If group id not exits. Use id instead. If so, only one to one transition will be applied.\n const dataGroupId = data.hostModel && (data.hostModel as SeriesModel).get('dataGroupId') as string;\n\n // If specified key dimension(itemGroupId by default). Use this same dimension from other data.\n // PENDING: If only use key dimension of newData.\n const keyDim = isOld\n ? (oldKeyDim || newKeyDim)\n : (newKeyDim || oldKeyDim);\n\n const dimInfo = keyDim && data.getDimensionInfo(keyDim);\n const dimOrdinalMeta = dimInfo && dimInfo.ordinalMeta;\n\n if (dimInfo) {\n // Get from encode.itemGroupId.\n const key = data.get(dimInfo.name, dataIndex);\n if (dimOrdinalMeta) {\n return dimOrdinalMeta.categories[key as number] as string || (key + '');\n }\n return key + '';\n }\n\n // Get groupId from raw item. { groupId: '' }\n const itemVal = data.getRawDataItem(dataIndex) as OptionDataItemObject;\n if (itemVal && itemVal.groupId) {\n return itemVal.groupId + '';\n }\n return (dataGroupId || data.getId(dataIndex));\n };\n }\n\n // Use id if it's very likely to be an one to one animation\n // It's more robust than groupId\n // TODO Check if key dimension is specified.\n const useId = isAllIdSame(oldDiffItems, newDiffItems);\n const isElementStillInChart: Dictionary = {};\n\n if (!useId) {\n // We may have different diff strategy with basicTransition if we use other dimension as key.\n // If so, we can't simply check if oldEl is same with newEl. We need a map to check if oldEl is still being used in the new chart.\n // We can't use the elements that already being morphed. Let it keep it's original basic transition.\n for (let i = 0; i < newDiffItems.length; i++) {\n const newItem = newDiffItems[i];\n const el = newItem.data.getItemGraphicEl(newItem.dataIndex);\n if (el) {\n isElementStillInChart[el.id] = true;\n }\n }\n }\n\n function updateOneToOne(newIndex: number, oldIndex: number) {\n\n const oldItem = oldDiffItems[oldIndex];\n const newItem = newDiffItems[newIndex];\n\n const newSeries = newItem.data.hostModel as SeriesModel;\n\n // TODO Mark this elements is morphed and don't morph them anymore\n const oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);\n const newEl = newItem.data.getItemGraphicEl(newItem.dataIndex);\n\n // Can't handle same elements.\n if (oldEl === newEl) {\n newEl && animateElementStyles(newEl, newItem.dataIndex, newSeries);\n return;\n }\n\n if (\n // We can't use the elements that already being morphed\n (oldEl && isElementStillInChart[oldEl.id])\n ) {\n return;\n }\n\n if (newEl) {\n // TODO: If keep animating the group in case\n // some of the elements don't want to be morphed.\n // TODO Label?\n stopAnimation(newEl);\n\n if (oldEl) {\n stopAnimation(oldEl);\n\n // If old element is doing leaving animation. stop it and remove it immediately.\n removeEl(oldEl);\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldEl),\n getPathList(newEl),\n newItem.divide,\n newSeries,\n newIndex,\n updateMorphingPathProps\n );\n }\n else {\n fadeInElement(newEl, newSeries, newIndex);\n }\n }\n // else keep oldEl leaving animation.\n }\n\n (new DataDiffer(\n oldDiffItems,\n newDiffItems,\n createKeyGetter(true, useId),\n createKeyGetter(false, useId),\n null,\n 'multiple'\n ))\n .update(updateOneToOne)\n .updateManyToOne(function (newIndex, oldIndices) {\n const newItem = newDiffItems[newIndex];\n const newData = newItem.data;\n const newSeries = newData.hostModel as SeriesModel;\n const newEl = newData.getItemGraphicEl(newItem.dataIndex);\n const oldElsList = filter(\n map(oldIndices, idx =>\n oldDiffItems[idx].data.getItemGraphicEl(oldDiffItems[idx].dataIndex)\n ),\n oldEl => oldEl && oldEl !== newEl && !isElementStillInChart[oldEl.id]\n );\n\n if (newEl) {\n stopAnimation(newEl);\n if (oldElsList.length) {\n // If old element is doing leaving animation. stop it and remove it immediately.\n each(oldElsList, oldEl => {\n stopAnimation(oldEl);\n removeEl(oldEl);\n });\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldElsList),\n getPathList(newEl),\n newItem.divide,\n newSeries,\n newIndex,\n updateMorphingPathProps\n );\n\n }\n else {\n fadeInElement(newEl, newSeries, newItem.dataIndex);\n }\n }\n // else keep oldEl leaving animation.\n })\n .updateOneToMany(function (newIndices, oldIndex) {\n const oldItem = oldDiffItems[oldIndex];\n const oldEl = oldItem.data.getItemGraphicEl(oldItem.dataIndex);\n\n // We can't use the elements that already being morphed\n if (oldEl && isElementStillInChart[oldEl.id]) {\n return;\n }\n\n const newElsList = filter(\n map(newIndices, idx =>\n newDiffItems[idx].data.getItemGraphicEl(newDiffItems[idx].dataIndex)\n ),\n el => el && el !== oldEl\n );\n const newSeris = newDiffItems[newIndices[0]].data.hostModel as SeriesModel;\n\n if (newElsList.length) {\n each(newElsList, newEl => stopAnimation(newEl));\n if (oldEl) {\n stopAnimation(oldEl);\n // If old element is doing leaving animation. stop it and remove it immediately.\n removeEl(oldEl);\n\n hasMorphAnimation = true;\n applyMorphAnimation(\n getPathList(oldEl),\n getPathList(newElsList),\n oldItem.divide, // Use divide on old.\n newSeris,\n newIndices[0],\n updateMorphingPathProps\n );\n }\n else {\n each(newElsList, newEl => fadeInElement(newEl, newSeris, newIndices[0]));\n }\n }\n\n // else keep oldEl leaving animation.\n })\n .updateManyToMany(function (newIndices, oldIndices) {\n // If two data are same and both have groupId.\n // Normally they should be diff by id.\n new DataDiffer(\n oldIndices,\n newIndices,\n (rawIdx: number) => oldDiffItems[rawIdx].data.getId(oldDiffItems[rawIdx].dataIndex),\n (rawIdx: number) => newDiffItems[rawIdx].data.getId(newDiffItems[rawIdx].dataIndex)\n ).update((newIndex, oldIndex) => {\n // Use the original index\n updateOneToOne(newIndices[newIndex], oldIndices[oldIndex]);\n }).execute();\n })\n .execute();\n\n if (hasMorphAnimation) {\n each(newList, ({ data }) => {\n const seriesModel = data.hostModel as SeriesModel;\n const view = seriesModel && api.getViewOfSeriesModel(seriesModel as SeriesModel);\n const animationCfg = getAnimationConfig('update', seriesModel, 0); // use 0 index.\n if (view && seriesModel.isAnimationEnabled() && animationCfg.duration > 0) {\n view.group.traverse(el => {\n if (el instanceof Path && !el.animators.length) {\n // We can't accept there still exists element that has no animation\n // if universalTransition is enabled\n el.animateFrom({\n style: {\n opacity: 0\n }\n }, animationCfg);\n }\n });\n }\n });\n }\n}\n\nfunction getSeriesTransitionKey(series: SeriesModel) {\n const seriesKey = (series.getModel('universalTransition') as Model)\n .get('seriesKey');\n if (!seriesKey) {\n // Use series id by default.\n return series.id;\n }\n return seriesKey;\n}\n\nfunction convertArraySeriesKeyToString(seriesKey: string[] | string) {\n if (isArray(seriesKey)) {\n // Order independent.\n return seriesKey.sort().join(',');\n }\n return seriesKey;\n}\n\ninterface SeriesTransitionBatch {\n oldSeries: TransitionSeries[]\n newSeries: TransitionSeries[]\n}\n\nfunction getDivideShapeFromData(data: SeriesData) {\n if (data.hostModel) {\n return ((data.hostModel as SeriesModel)\n .getModel('universalTransition') as Model)\n .get('divideShape');\n }\n}\n\nfunction findTransitionSeriesBatches(\n globalStore: GlobalStore,\n params: UpdateLifecycleParams\n) {\n const updateBatches = createHashMap();\n\n const oldDataMap = createHashMap();\n // Map that only store key in array seriesKey.\n // Which is used to query the old data when transition from one to multiple series.\n const oldDataMapForSplit = createHashMap<{\n key: string,\n data: SeriesData\n }>();\n\n each(globalStore.oldSeries, (series, idx) => {\n const oldData = globalStore.oldData[idx];\n const transitionKey = getSeriesTransitionKey(series);\n const transitionKeyStr = convertArraySeriesKeyToString(transitionKey);\n oldDataMap.set(transitionKeyStr, oldData);\n\n if (isArray(transitionKey)) {\n // Same key can't in different array seriesKey.\n each(transitionKey, key => {\n oldDataMapForSplit.set(key, {\n data: oldData,\n key: transitionKeyStr\n });\n });\n }\n });\n\n function checkTransitionSeriesKeyDuplicated(transitionKeyStr: string) {\n if (updateBatches.get(transitionKeyStr)) {\n warn(`Duplicated seriesKey in universalTransition ${transitionKeyStr}`);\n }\n }\n each(params.updatedSeries, series => {\n if (series.isUniversalTransitionEnabled() && series.isAnimationEnabled()) {\n const newData = series.getData();\n const transitionKey = getSeriesTransitionKey(series);\n const transitionKeyStr = convertArraySeriesKeyToString(transitionKey);\n // Only transition between series with same id.\n const oldData = oldDataMap.get(transitionKeyStr);\n // string transition key is the best match.\n if (oldData) {\n if (__DEV__) {\n checkTransitionSeriesKeyDuplicated(transitionKeyStr);\n }\n // TODO check if data is same?\n updateBatches.set(transitionKeyStr, {\n oldSeries: [{\n divide: getDivideShapeFromData(oldData),\n data: oldData\n }],\n newSeries: [{\n divide: getDivideShapeFromData(newData),\n data: newData\n }]\n });\n }\n else {\n // Transition from multiple series.\n if (isArray(transitionKey)) {\n if (__DEV__) {\n checkTransitionSeriesKeyDuplicated(transitionKeyStr);\n }\n const oldSeries: TransitionSeries[] = [];\n each(transitionKey, key => {\n const oldData = oldDataMap.get(key);\n if (oldData) {\n oldSeries.push({\n divide: getDivideShapeFromData(oldData),\n data: oldData\n });\n }\n });\n if (oldSeries.length) {\n updateBatches.set(transitionKeyStr, {\n oldSeries,\n newSeries: [{\n data: newData,\n divide: getDivideShapeFromData(newData)\n }]\n });\n }\n }\n else {\n // Try transition to multiple series.\n const oldData = oldDataMapForSplit.get(transitionKey);\n if (oldData) {\n let batch = updateBatches.get(oldData.key);\n if (!batch) {\n batch = {\n oldSeries: [{\n data: oldData.data,\n divide: getDivideShapeFromData(oldData.data)\n }],\n newSeries: []\n };\n updateBatches.set(oldData.key, batch);\n }\n batch.newSeries.push({\n data: newData,\n divide: getDivideShapeFromData(newData)\n });\n }\n }\n }\n }\n });\n\n return updateBatches;\n}\n\nfunction querySeries(series: SeriesModel[], finder: UpdateLifecycleTransitionSeriesFinder) {\n for (let i = 0; i < series.length; i++) {\n const found = finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex\n || finder.seriesId != null && finder.seriesId === series[i].id;\n if (found) {\n return i;\n }\n }\n}\n\nfunction transitionSeriesFromOpt(\n transitionOpt: UpdateLifecycleTransitionItem,\n globalStore: GlobalStore,\n params: UpdateLifecycleParams,\n api: ExtensionAPI\n) {\n const from: TransitionSeries[] = [];\n const to: TransitionSeries[] = [];\n each(normalizeToArray(transitionOpt.from), finder => {\n const idx = querySeries(globalStore.oldSeries, finder);\n if (idx >= 0) {\n from.push({\n data: globalStore.oldData[idx],\n // TODO can specify divideShape in transition.\n divide: getDivideShapeFromData(globalStore.oldData[idx]),\n dim: finder.dimension\n });\n }\n });\n each(normalizeToArray(transitionOpt.to), finder => {\n const idx = querySeries(params.updatedSeries, finder);\n if (idx >= 0) {\n const data = params.updatedSeries[idx].getData();\n to.push({\n data,\n divide: getDivideShapeFromData(data),\n dim: finder.dimension\n });\n }\n });\n if (from.length > 0 && to.length > 0) {\n transitionBetween(from, to, api);\n }\n}\n\nexport function installUniversalTransition(registers: EChartsExtensionInstallRegisters) {\n\n registers.registerUpdateLifecycle('series:beforeupdate', (ecMOdel, api, params) => {\n each(normalizeToArray(params.seriesTransition), transOpt => {\n each(normalizeToArray(transOpt.to), (finder) => {\n const series = params.updatedSeries;\n for (let i = 0; i < series.length; i++) {\n if (finder.seriesIndex != null && finder.seriesIndex === series[i].seriesIndex\n || finder.seriesId != null && finder.seriesId === series[i].id) {\n series[i][SERIES_UNIVERSAL_TRANSITION_PROP] = true;\n }\n }\n });\n });\n });\n registers.registerUpdateLifecycle('series:transition', (ecModel, api, params) => {\n // TODO api provide an namespace that can save stuff per instance\n const globalStore = getUniversalTransitionGlobalStore(api);\n\n // TODO multiple to multiple series.\n if (globalStore.oldSeries && params.updatedSeries && params.optionChanged) {\n // Use give transition config if its' give;\n const transitionOpt = params.seriesTransition;\n if (transitionOpt) {\n each(normalizeToArray(transitionOpt), opt => {\n transitionSeriesFromOpt(opt, globalStore, params, api);\n });\n }\n else { // Else guess from series based on transition series key.\n const updateBatches = findTransitionSeriesBatches(globalStore, params);\n each(updateBatches.keys(), key => {\n const batch = updateBatches.get(key);\n transitionBetween(batch.oldSeries, batch.newSeries, api);\n });\n }\n\n // Reset\n each(params.updatedSeries, series => {\n // Reset;\n if (series[SERIES_UNIVERSAL_TRANSITION_PROP]) {\n series[SERIES_UNIVERSAL_TRANSITION_PROP] = false;\n }\n });\n }\n\n // Save all series of current update. Not only the updated one.\n const allSeries = ecModel.getSeries();\n const savedSeries: SeriesModel[] = globalStore.oldSeries = [];\n const savedData: SeriesData[] = globalStore.oldData = [];\n for (let i = 0; i < allSeries.length; i++) {\n const data = allSeries[i].getData();\n // Only save the data that can have transition.\n // Avoid large data costing too much extra memory\n if (data.count() < DATA_COUNT_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AI,OAAO;AACP,iBAAO,oCAAoC;AAAA;AAAA;AAAA;AAMvD,UAAM,YAAY,QAAQ;AAC1B,UAAM,cAA6B,YAAY,YAAY;AAC3D,UAAM,YAA0B,YAAY,UAAU;AACtD,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ;AAClC,YAAM,OAAO,UAAU,GAAG;AAG1B,UAAI,KAAK,UAAU;AACf,oBAAY,KAAK,UAAU;AAC3B,kBAAU,KAAK;AAAA;AAAA;AAAA;AAAA;;;A9hB9jB/B,IAAI,CAAC;AAGL,IAAI,CAAC;AAcL,IAAI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAqBJ,IAAI;AAWJ,IAAI;AASJ,IAAI;AAQJ,IAAI;AAUJ,IAAI;AASJ,IAAI;AAcJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAUJ,IAAI;AAUJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAGJ,IAAI;AAOJ,IAAI;AAMJ,IAAI;AAGJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AAMJ,IAAI;AASJ,IAAI;AAEJ,IAAI;AAQJ,IAAI;AAQJ,IAAI;", - "names": [] -} +{"version":3,"file":"echarts.js","sources":["../node_modules/tslib/tslib.es6.js","../node_modules/zrender/lib/core/env.js","../node_modules/zrender/lib/core/util.js","../node_modules/zrender/lib/core/vector.js","../node_modules/zrender/lib/mixin/Draggable.js","../node_modules/zrender/lib/core/Eventful.js","../node_modules/zrender/lib/core/fourPointsTransform.js","../node_modules/zrender/lib/core/dom.js","../node_modules/zrender/lib/core/event.js","../node_modules/zrender/lib/core/GestureMgr.js","../node_modules/zrender/lib/Handler.js","../node_modules/zrender/lib/core/timsort.js","../node_modules/zrender/lib/graphic/constants.js","../node_modules/zrender/lib/Storage.js","../node_modules/zrender/lib/animation/requestAnimationFrame.js","../node_modules/zrender/lib/animation/easing.js","../node_modules/zrender/lib/animation/Clip.js","../node_modules/zrender/lib/core/LRU.js","../node_modules/zrender/lib/tool/color.js","../node_modules/zrender/lib/animation/Animator.js","../node_modules/zrender/lib/animation/Animation.js","../node_modules/zrender/lib/dom/HandlerProxy.js","../node_modules/zrender/lib/config.js","../node_modules/zrender/lib/core/matrix.js","../node_modules/zrender/lib/core/Transformable.js","../node_modules/zrender/lib/core/Point.js","../node_modules/zrender/lib/core/BoundingRect.js","../node_modules/zrender/lib/contain/text.js","../node_modules/zrender/lib/Element.js","../node_modules/zrender/lib/graphic/Group.js","../node_modules/zrender/lib/zrender.js","../lib/util/number.js","../lib/util/log.js","../lib/util/model.js","../lib/util/clazz.js","../lib/model/mixin/makeStyleMapper.js","../lib/model/mixin/areaStyle.js","../node_modules/zrender/lib/graphic/helper/image.js","../node_modules/zrender/lib/graphic/helper/parseText.js","../node_modules/zrender/lib/graphic/Displayable.js","../node_modules/zrender/lib/core/curve.js","../node_modules/zrender/lib/core/bbox.js","../node_modules/zrender/lib/core/PathProxy.js","../node_modules/zrender/lib/contain/line.js","../node_modules/zrender/lib/contain/cubic.js","../node_modules/zrender/lib/contain/quadratic.js","../node_modules/zrender/lib/contain/util.js","../node_modules/zrender/lib/contain/arc.js","../node_modules/zrender/lib/contain/windingLine.js","../node_modules/zrender/lib/contain/path.js","../node_modules/zrender/lib/graphic/Path.js","../node_modules/zrender/lib/graphic/TSpan.js","../node_modules/zrender/lib/graphic/Image.js","../node_modules/zrender/lib/graphic/helper/roundRect.js","../node_modules/zrender/lib/graphic/helper/subPixelOptimize.js","../node_modules/zrender/lib/graphic/shape/Rect.js","../node_modules/zrender/lib/graphic/Text.js","../lib/util/innerStore.js","../lib/util/states.js","../node_modules/zrender/lib/tool/transformPath.js","../node_modules/zrender/lib/tool/path.js","../node_modules/zrender/lib/graphic/shape/Circle.js","../node_modules/zrender/lib/graphic/shape/Ellipse.js","../node_modules/zrender/lib/graphic/helper/roundSector.js","../node_modules/zrender/lib/graphic/shape/Sector.js","../node_modules/zrender/lib/graphic/shape/Ring.js","../node_modules/zrender/lib/graphic/helper/smoothSpline.js","../node_modules/zrender/lib/graphic/helper/smoothBezier.js","../node_modules/zrender/lib/graphic/helper/poly.js","../node_modules/zrender/lib/graphic/shape/Polygon.js","../node_modules/zrender/lib/graphic/shape/Polyline.js","../node_modules/zrender/lib/graphic/shape/Line.js","../node_modules/zrender/lib/graphic/shape/BezierCurve.js","../node_modules/zrender/lib/graphic/shape/Arc.js","../node_modules/zrender/lib/graphic/CompoundPath.js","../node_modules/zrender/lib/graphic/Gradient.js","../node_modules/zrender/lib/graphic/LinearGradient.js","../node_modules/zrender/lib/graphic/RadialGradient.js","../node_modules/zrender/lib/core/OrientedBoundingRect.js","../node_modules/zrender/lib/graphic/IncrementalDisplayable.js","../lib/util/graphic.js","../lib/label/labelStyle.js","../lib/model/mixin/textStyle.js","../lib/model/mixin/lineStyle.js","../lib/model/mixin/itemStyle.js","../lib/model/Model.js","../lib/util/component.js","../lib/i18n/langEN.js","../lib/i18n/langZH.js","../lib/core/locale.js","../lib/util/time.js","../lib/legacy/getTextRect.js","../lib/util/format.js","../lib/util/layout.js","../lib/model/Component.js","../lib/model/globalDefault.js","../lib/util/types.js","../lib/data/helper/sourceHelper.js","../lib/model/internalComponentCreator.js","../lib/model/mixin/palette.js","../lib/model/Global.js","../lib/core/ExtensionAPI.js","../lib/core/CoordinateSystem.js","../lib/model/OptionManager.js","../lib/preprocessor/helper/compatStyle.js","../lib/preprocessor/backwardCompat.js","../lib/processor/dataStack.js","../lib/data/Source.js","../lib/data/helper/dataProvider.js","../lib/model/mixin/dataFormat.js","../lib/core/task.js","../lib/data/helper/dataValueHelper.js","../lib/data/helper/transform.js","../lib/data/helper/sourceManager.js","../lib/component/tooltip/tooltipMarkup.js","../lib/component/tooltip/seriesFormatTooltip.js","../lib/model/Series.js","../lib/view/Component.js","../lib/chart/helper/createRenderPlanner.js","../lib/view/Chart.js","../lib/util/throttle.js","../lib/visual/style.js","../lib/loading/default.js","../lib/core/Scheduler.js","../lib/theme/light.js","../lib/theme/dark.js","../lib/util/ECEventProcessor.js","../lib/visual/symbol.js","../lib/visual/helper.js","../lib/label/labelGuideHelper.js","../lib/label/labelLayoutHelper.js","../lib/label/LabelManager.js","../lib/legacy/dataSelectAction.js","../lib/util/event.js","../node_modules/zrender/lib/core/WeakMap.js","../lib/util/symbol.js","../node_modules/zrender/lib/canvas/helper.js","../node_modules/zrender/lib/graphic/helper/dashStyle.js","../node_modules/zrender/lib/canvas/graphic.js","../lib/util/decal.js","../lib/visual/decal.js","../node_modules/zrender/lib/tool/parseXML.js","../node_modules/zrender/lib/tool/parseSVG.js","../node_modules/zrender/lib/contain/polygon.js","../lib/coord/geo/Region.js","../lib/coord/geo/GeoSVGResource.js","../lib/coord/geo/parseGeoJson.js","../lib/coord/geo/fix/nanhai.js","../lib/coord/geo/fix/textCoord.js","../lib/coord/geo/fix/geoCoord.js","../lib/coord/geo/fix/diaoyuIsland.js","../lib/coord/geo/GeoJSONResource.js","../lib/coord/geo/geoSourceManager.js","../lib/core/echarts.js","../lib/extension.js","../lib/data/DataDiffer.js","../lib/data/helper/dimensionHelper.js","../lib/data/DataDimensionInfo.js","../lib/data/List.js","../lib/data/helper/completeDimensions.js","../lib/data/helper/createDimensions.js","../lib/model/referHelper.js","../lib/data/helper/dataStackHelper.js","../lib/chart/helper/createListFromArray.js","../lib/scale/Scale.js","../lib/data/OrdinalMeta.js","../lib/scale/helper.js","../lib/scale/Ordinal.js","../lib/scale/Interval.js","../lib/layout/barGrid.js","../lib/scale/Time.js","../lib/scale/Log.js","../lib/coord/scaleRawExtentInfo.js","../lib/coord/axisHelper.js","../lib/coord/axisModelCommonMixin.js","../lib/export/api/helper.js","../lib/coord/axisTickLabelBuilder.js","../lib/coord/Axis.js","../lib/export/api.js","../node_modules/zrender/lib/svg/core.js","../node_modules/zrender/lib/core/arrayDiff.js","../node_modules/zrender/lib/svg/graphic.js","../node_modules/zrender/lib/svg/helper/Definable.js","../node_modules/zrender/lib/svg/helper/GradientManager.js","../node_modules/zrender/lib/svg/helper/PatternManager.js","../node_modules/zrender/lib/svg/helper/ClippathManager.js","../node_modules/zrender/lib/svg/helper/ShadowManager.js","../node_modules/zrender/lib/svg/Painter.js","../lib/renderer/installSVGRenderer.js","../node_modules/zrender/lib/canvas/Layer.js","../node_modules/zrender/lib/canvas/Painter.js","../lib/renderer/installCanvasRenderer.js","../lib/chart/line/LineSeries.js","../lib/chart/helper/labelHelper.js","../lib/chart/helper/Symbol.js","../lib/chart/helper/SymbolDraw.js","../lib/chart/line/helper.js","../lib/util/vendor.js","../lib/chart/line/lineAnimationDiff.js","../lib/chart/line/poly.js","../lib/chart/helper/createClipPathFromCoordSys.js","../lib/coord/CoordinateSystem.js","../lib/chart/line/LineView.js","../lib/layout/points.js","../lib/processor/dataSample.js","../lib/chart/line/install.js","../lib/chart/bar/BaseBarSeries.js","../lib/chart/bar/BarSeries.js","../lib/util/shape/sausage.js","../lib/chart/bar/BarView.js","../lib/chart/bar/install.js","../lib/chart/pie/pieLayout.js","../lib/processor/dataFilter.js","../lib/chart/pie/labelLayout.js","../lib/chart/helper/pieHelper.js","../lib/chart/pie/PieView.js","../lib/chart/helper/createListSimply.js","../lib/visual/LegendVisualProvider.js","../lib/chart/pie/PieSeries.js","../lib/chart/pie/install.js","../lib/chart/scatter/ScatterSeries.js","../lib/chart/helper/LargeSymbolDraw.js","../lib/chart/scatter/ScatterView.js","../lib/coord/cartesian/GridModel.js","../lib/coord/cartesian/AxisModel.js","../lib/coord/axisDefault.js","../lib/coord/axisCommonTypes.js","../lib/coord/axisModelCreator.js","../lib/coord/cartesian/Cartesian.js","../lib/coord/cartesian/Cartesian2D.js","../lib/coord/cartesian/Axis2D.js","../lib/coord/cartesian/cartesianAxisHelper.js","../lib/coord/cartesian/Grid.js","../lib/component/axis/AxisBuilder.js","../lib/component/axisPointer/modelHelper.js","../lib/component/axis/AxisView.js","../lib/component/axis/axisSplitHelper.js","../lib/component/axis/CartesianAxisView.js","../lib/component/grid/installSimple.js","../lib/chart/scatter/install.js","../lib/chart/radar/radarLayout.js","../lib/chart/radar/backwardCompat.js","../lib/chart/radar/RadarView.js","../lib/chart/radar/RadarSeries.js","../lib/coord/radar/RadarModel.js","../lib/component/radar/RadarView.js","../lib/coord/radar/IndicatorAxis.js","../lib/coord/radar/Radar.js","../lib/component/radar/install.js","../lib/chart/radar/install.js","../lib/component/helper/interactionMutex.js","../lib/component/helper/RoamController.js","../lib/component/helper/roamHelper.js","../lib/component/helper/cursorHelper.js","../lib/component/helper/MapDraw.js","../lib/chart/map/MapView.js","../lib/chart/map/MapSeries.js","../lib/chart/map/mapDataStatistic.js","../lib/chart/map/mapSymbolLayout.js","../lib/coord/View.js","../lib/coord/geo/Geo.js","../lib/coord/geo/geoCreator.js","../lib/coord/geo/GeoModel.js","../lib/action/roamHelper.js","../lib/component/geo/GeoView.js","../lib/component/geo/install.js","../lib/chart/map/install.js","../lib/chart/tree/layoutHelper.js","../lib/chart/tree/TreeView.js","../lib/data/helper/linkList.js","../lib/data/Tree.js","../lib/chart/helper/treeHelper.js","../lib/chart/tree/TreeSeries.js","../lib/chart/tree/traversalHelper.js","../lib/chart/tree/treeLayout.js","../lib/chart/tree/treeVisual.js","../lib/chart/tree/treeAction.js","../lib/chart/tree/install.js","../lib/chart/treemap/treemapAction.js","../lib/chart/helper/enableAriaDecalForTree.js","../lib/chart/treemap/TreemapSeries.js","../lib/chart/treemap/Breadcrumb.js","../lib/util/animation.js","../lib/chart/treemap/TreemapView.js","../lib/visual/VisualMapping.js","../lib/chart/treemap/treemapVisual.js","../lib/chart/treemap/treemapLayout.js","../lib/chart/treemap/install.js","../lib/chart/graph/categoryFilter.js","../lib/chart/graph/categoryVisual.js","../lib/chart/graph/edgeVisual.js","../lib/chart/helper/multipleGraphEdgeHelper.js","../lib/chart/graph/simpleLayoutHelper.js","../lib/chart/graph/simpleLayout.js","../lib/chart/graph/graphHelper.js","../lib/chart/graph/circularLayoutHelper.js","../lib/chart/graph/circularLayout.js","../lib/chart/graph/forceHelper.js","../lib/chart/graph/forceLayout.js","../lib/chart/graph/createView.js","../lib/chart/helper/LinePath.js","../lib/chart/helper/Line.js","../lib/chart/helper/LineDraw.js","../lib/chart/graph/adjustEdge.js","../lib/chart/graph/GraphView.js","../lib/data/Graph.js","../lib/chart/helper/createGraphFromNodeEdge.js","../lib/chart/graph/GraphSeries.js","../lib/chart/graph/install.js","../lib/chart/gauge/PointerPath.js","../lib/chart/gauge/GaugeView.js","../lib/chart/gauge/GaugeSeries.js","../lib/chart/gauge/install.js","../lib/chart/funnel/FunnelView.js","../lib/chart/funnel/FunnelSeries.js","../lib/chart/funnel/funnelLayout.js","../lib/chart/funnel/install.js","../lib/chart/parallel/ParallelView.js","../lib/chart/parallel/ParallelSeries.js","../lib/chart/parallel/parallelVisual.js","../lib/coord/parallel/parallelPreprocessor.js","../lib/component/parallel/ParallelView.js","../lib/coord/parallel/ParallelModel.js","../lib/coord/parallel/ParallelAxis.js","../lib/component/helper/sliderMove.js","../lib/coord/parallel/Parallel.js","../lib/coord/parallel/parallelCreator.js","../lib/coord/parallel/AxisModel.js","../lib/component/helper/BrushController.js","../lib/component/helper/brushHelper.js","../lib/component/axis/ParallelAxisView.js","../lib/component/axis/parallelAxisAction.js","../lib/component/parallel/install.js","../lib/chart/parallel/install.js","../lib/chart/sankey/SankeyView.js","../lib/chart/sankey/SankeySeries.js","../lib/chart/sankey/sankeyLayout.js","../lib/chart/sankey/sankeyVisual.js","../lib/chart/sankey/install.js","../lib/chart/helper/whiskerBoxCommon.js","../lib/chart/boxplot/BoxplotSeries.js","../lib/chart/boxplot/BoxplotView.js","../lib/chart/boxplot/boxplotVisual.js","../lib/chart/boxplot/boxplotLayout.js","../lib/chart/boxplot/prepareBoxplotData.js","../lib/chart/boxplot/boxplotTransform.js","../lib/chart/boxplot/install.js","../lib/chart/candlestick/CandlestickView.js","../lib/chart/candlestick/CandlestickSeries.js","../lib/chart/candlestick/preprocessor.js","../lib/chart/candlestick/candlestickVisual.js","../lib/chart/candlestick/candlestickLayout.js","../lib/chart/candlestick/install.js","../lib/chart/helper/EffectSymbol.js","../lib/chart/effectScatter/EffectScatterView.js","../lib/chart/effectScatter/EffectScatterSeries.js","../lib/chart/effectScatter/install.js","../lib/chart/helper/EffectLine.js","../lib/chart/helper/Polyline.js","../lib/chart/helper/EffectPolyline.js","../lib/chart/helper/LargeLineDraw.js","../lib/chart/lines/linesLayout.js","../lib/chart/lines/LinesView.js","../lib/chart/lines/LinesSeries.js","../lib/chart/lines/linesVisual.js","../lib/chart/lines/install.js","../lib/chart/heatmap/HeatmapLayer.js","../lib/chart/heatmap/HeatmapView.js","../lib/chart/heatmap/HeatmapSeries.js","../lib/chart/heatmap/install.js","../lib/chart/bar/PictorialBarView.js","../lib/chart/bar/PictorialBarSeries.js","../lib/chart/bar/installPictorialBar.js","../lib/chart/themeRiver/ThemeRiverView.js","../lib/chart/themeRiver/ThemeRiverSeries.js","../lib/chart/themeRiver/themeRiverLayout.js","../lib/chart/themeRiver/install.js","../lib/chart/sunburst/SunburstPiece.js","../lib/chart/sunburst/sunburstAction.js","../lib/chart/sunburst/SunburstView.js","../lib/chart/sunburst/SunburstSeries.js","../lib/chart/sunburst/sunburstLayout.js","../lib/chart/sunburst/sunburstVisual.js","../lib/chart/sunburst/install.js","../lib/coord/cartesian/prepareCustom.js","../lib/coord/geo/prepareCustom.js","../lib/coord/single/prepareCustom.js","../lib/coord/polar/prepareCustom.js","../lib/coord/calendar/prepareCustom.js","../lib/util/styleCompat.js","../node_modules/zrender/lib/tool/morphPath.js","../lib/chart/custom/install.js","../lib/component/axisPointer/BaseAxisPointer.js","../lib/component/axisPointer/viewHelper.js","../lib/component/axisPointer/CartesianAxisPointer.js","../lib/component/axisPointer/AxisPointerModel.js","../lib/component/axisPointer/globalListener.js","../lib/component/axisPointer/AxisPointerView.js","../lib/component/axisPointer/findPointFromSeries.js","../lib/component/axisPointer/axisTrigger.js","../lib/component/axisPointer/install.js","../lib/component/grid/install.js","../lib/component/axisPointer/PolarAxisPointer.js","../lib/coord/polar/PolarModel.js","../lib/coord/polar/AxisModel.js","../lib/coord/polar/RadiusAxis.js","../lib/coord/polar/AngleAxis.js","../lib/coord/polar/Polar.js","../lib/coord/polar/polarCreator.js","../lib/component/axis/AngleAxisView.js","../lib/component/axis/RadiusAxisView.js","../lib/layout/barPolar.js","../lib/component/polar/install.js","../lib/coord/single/singleAxisHelper.js","../lib/component/axis/SingleAxisView.js","../lib/coord/single/AxisModel.js","../lib/coord/single/SingleAxis.js","../lib/coord/single/Single.js","../lib/coord/single/singleCreator.js","../lib/component/axisPointer/SingleAxisPointer.js","../lib/component/singleAxis/install.js","../lib/coord/calendar/CalendarModel.js","../lib/component/calendar/CalendarView.js","../lib/coord/calendar/Calendar.js","../lib/component/calendar/install.js","../lib/component/graphic/install.js","../lib/component/dataZoom/helper.js","../lib/component/dataZoom/DataZoomModel.js","../lib/component/dataZoom/SelectZoomModel.js","../lib/component/dataZoom/DataZoomView.js","../lib/component/dataZoom/SelectZoomView.js","../lib/component/dataZoom/AxisProxy.js","../lib/component/dataZoom/dataZoomProcessor.js","../lib/component/dataZoom/dataZoomAction.js","../lib/component/dataZoom/installCommon.js","../lib/component/dataZoom/installDataZoomSelect.js","../lib/component/toolbox/featureManager.js","../lib/component/toolbox/ToolboxModel.js","../lib/component/helper/listComponent.js","../lib/component/toolbox/ToolboxView.js","../lib/component/toolbox/feature/SaveAsImage.js","../lib/component/toolbox/feature/MagicType.js","../lib/component/toolbox/feature/DataView.js","../lib/component/dataZoom/history.js","../lib/component/toolbox/feature/Restore.js","../lib/component/helper/BrushTargetManager.js","../lib/component/toolbox/feature/DataZoom.js","../lib/component/toolbox/install.js","../lib/component/tooltip/TooltipModel.js","../lib/component/tooltip/helper.js","../lib/component/tooltip/TooltipHTMLContent.js","../lib/component/tooltip/TooltipRichContent.js","../lib/component/tooltip/TooltipView.js","../lib/component/tooltip/install.js","../lib/component/brush/preprocessor.js","../lib/visual/visualSolution.js","../lib/component/brush/selector.js","../lib/component/brush/visualEncoding.js","../lib/component/brush/BrushView.js","../lib/component/brush/BrushModel.js","../lib/component/toolbox/feature/Brush.js","../lib/component/brush/install.js","../lib/component/title/install.js","../lib/component/timeline/TimelineModel.js","../lib/component/timeline/SliderTimelineModel.js","../lib/component/timeline/TimelineView.js","../lib/component/timeline/TimelineAxis.js","../lib/component/timeline/SliderTimelineView.js","../lib/component/timeline/timelineAction.js","../lib/component/timeline/preprocessor.js","../lib/component/timeline/install.js","../lib/component/marker/checkMarkerInSeries.js","../lib/component/marker/MarkerModel.js","../lib/component/marker/MarkPointModel.js","../lib/component/marker/markerHelper.js","../lib/component/marker/MarkerView.js","../lib/component/marker/MarkPointView.js","../lib/component/marker/installMarkPoint.js","../lib/component/marker/MarkLineModel.js","../lib/component/marker/MarkLineView.js","../lib/component/marker/installMarkLine.js","../lib/component/marker/MarkAreaModel.js","../lib/component/marker/MarkAreaView.js","../lib/component/marker/installMarkArea.js","../lib/component/legend/LegendModel.js","../lib/component/legend/LegendView.js","../lib/component/legend/legendFilter.js","../lib/component/legend/legendAction.js","../lib/component/legend/installLegendPlain.js","../lib/component/legend/ScrollableLegendModel.js","../lib/component/legend/ScrollableLegendView.js","../lib/component/legend/scrollableLegendAction.js","../lib/component/legend/installLegendScroll.js","../lib/component/legend/install.js","../lib/component/dataZoom/InsideZoomModel.js","../lib/component/dataZoom/roams.js","../lib/component/dataZoom/InsideZoomView.js","../lib/component/dataZoom/installDataZoomInside.js","../lib/component/dataZoom/SliderZoomModel.js","../lib/component/dataZoom/SliderZoomView.js","../lib/component/dataZoom/installDataZoomSlider.js","../lib/component/dataZoom/install.js","../lib/visual/visualDefault.js","../lib/component/visualMap/VisualMapModel.js","../lib/component/visualMap/ContinuousModel.js","../lib/component/visualMap/VisualMapView.js","../lib/component/visualMap/helper.js","../lib/component/visualMap/ContinuousView.js","../lib/component/visualMap/visualMapAction.js","../lib/component/visualMap/visualEncoding.js","../lib/component/visualMap/preprocessor.js","../lib/component/visualMap/installCommon.js","../lib/component/visualMap/installVisualMapContinuous.js","../lib/component/visualMap/PiecewiseModel.js","../lib/component/visualMap/PiecewiseView.js","../lib/component/visualMap/installVisualMapPiecewise.js","../lib/component/visualMap/install.js","../lib/visual/aria.js","../lib/component/aria/preprocessor.js","../lib/component/aria/install.js","../lib/util/conditionalExpression.js","../lib/component/transform/filterTransform.js","../lib/component/transform/sortTransform.js","../lib/component/transform/install.js","../lib/component/dataset/install.js","../index.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","var Browser = (function () {\n function Browser() {\n this.firefox = false;\n this.ie = false;\n this.edge = false;\n this.newEdge = false;\n this.weChat = false;\n }\n return Browser;\n}());\nvar Env = (function () {\n function Env() {\n this.browser = new Browser();\n this.node = false;\n this.wxa = false;\n this.worker = false;\n this.canvasSupported = false;\n this.svgSupported = false;\n this.touchEventsSupported = false;\n this.pointerEventsSupported = false;\n this.domSupported = false;\n this.transformSupported = false;\n this.transform3dSupported = false;\n }\n return Env;\n}());\nvar env = new Env();\nif (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {\n env.wxa = true;\n env.canvasSupported = true;\n env.touchEventsSupported = true;\n}\nelse if (typeof document === 'undefined' && typeof self !== 'undefined') {\n env.worker = true;\n env.canvasSupported = true;\n}\nelse if (typeof navigator === 'undefined') {\n env.node = true;\n env.canvasSupported = true;\n env.svgSupported = true;\n}\nelse {\n detect(navigator.userAgent, env);\n}\nfunction detect(ua, env) {\n var browser = env.browser;\n var firefox = ua.match(/Firefox\\/([\\d.]+)/);\n var ie = ua.match(/MSIE\\s([\\d.]+)/)\n || ua.match(/Trident\\/.+?rv:(([\\d.]+))/);\n var edge = ua.match(/Edge?\\/([\\d.]+)/);\n var weChat = (/micromessenger/i).test(ua);\n if (firefox) {\n browser.firefox = true;\n browser.version = firefox[1];\n }\n if (ie) {\n browser.ie = true;\n browser.version = ie[1];\n }\n if (edge) {\n browser.edge = true;\n browser.version = edge[1];\n browser.newEdge = +edge[1].split('.')[0] > 18;\n }\n if (weChat) {\n browser.weChat = true;\n }\n env.canvasSupported = !!document.createElement('canvas').getContext;\n env.svgSupported = typeof SVGRect !== 'undefined';\n env.touchEventsSupported = 'ontouchstart' in window && !browser.ie && !browser.edge;\n env.pointerEventsSupported = 'onpointerdown' in window\n && (browser.edge || (browser.ie && +browser.version >= 11));\n env.domSupported = typeof document !== 'undefined';\n var style = document.documentElement.style;\n env.transform3dSupported = ((browser.ie && 'transition' in style)\n || browser.edge\n || (('WebKitCSSMatrix' in window) && ('m11' in new WebKitCSSMatrix()))\n || 'MozPerspective' in style)\n && !('OTransition' in style);\n env.transformSupported = env.transform3dSupported\n || (browser.ie && +browser.version >= 9);\n}\nexport default env;\n","var BUILTIN_OBJECT = {\n '[object Function]': true,\n '[object RegExp]': true,\n '[object Date]': true,\n '[object Error]': true,\n '[object CanvasGradient]': true,\n '[object CanvasPattern]': true,\n '[object Image]': true,\n '[object Canvas]': true\n};\nvar TYPED_ARRAY = {\n '[object Int8Array]': true,\n '[object Uint8Array]': true,\n '[object Uint8ClampedArray]': true,\n '[object Int16Array]': true,\n '[object Uint16Array]': true,\n '[object Int32Array]': true,\n '[object Uint32Array]': true,\n '[object Float32Array]': true,\n '[object Float64Array]': true\n};\nvar objToString = Object.prototype.toString;\nvar arrayProto = Array.prototype;\nvar nativeForEach = arrayProto.forEach;\nvar nativeFilter = arrayProto.filter;\nvar nativeSlice = arrayProto.slice;\nvar nativeMap = arrayProto.map;\nvar ctorFunction = function () { }.constructor;\nvar protoFunction = ctorFunction ? ctorFunction.prototype : null;\nvar methods = {};\nexport function $override(name, fn) {\n methods[name] = fn;\n}\nvar idStart = 0x0907;\nexport function guid() {\n return idStart++;\n}\nexport function logError() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (typeof console !== 'undefined') {\n console.error.apply(console, args);\n }\n}\nexport function clone(source) {\n if (source == null || typeof source !== 'object') {\n return source;\n }\n var result = source;\n var typeStr = objToString.call(source);\n if (typeStr === '[object Array]') {\n if (!isPrimitive(source)) {\n result = [];\n for (var i = 0, len = source.length; i < len; i++) {\n result[i] = clone(source[i]);\n }\n }\n }\n else if (TYPED_ARRAY[typeStr]) {\n if (!isPrimitive(source)) {\n var Ctor = source.constructor;\n if (Ctor.from) {\n result = Ctor.from(source);\n }\n else {\n result = new Ctor(source.length);\n for (var i = 0, len = source.length; i < len; i++) {\n result[i] = clone(source[i]);\n }\n }\n }\n }\n else if (!BUILTIN_OBJECT[typeStr] && !isPrimitive(source) && !isDom(source)) {\n result = {};\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n result[key] = clone(source[key]);\n }\n }\n }\n return result;\n}\nexport function merge(target, source, overwrite) {\n if (!isObject(source) || !isObject(target)) {\n return overwrite ? clone(source) : target;\n }\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n var targetProp = target[key];\n var sourceProp = source[key];\n if (isObject(sourceProp)\n && isObject(targetProp)\n && !isArray(sourceProp)\n && !isArray(targetProp)\n && !isDom(sourceProp)\n && !isDom(targetProp)\n && !isBuiltInObject(sourceProp)\n && !isBuiltInObject(targetProp)\n && !isPrimitive(sourceProp)\n && !isPrimitive(targetProp)) {\n merge(targetProp, sourceProp, overwrite);\n }\n else if (overwrite || !(key in target)) {\n target[key] = clone(source[key]);\n }\n }\n }\n return target;\n}\nexport function mergeAll(targetAndSources, overwrite) {\n var result = targetAndSources[0];\n for (var i = 1, len = targetAndSources.length; i < len; i++) {\n result = merge(result, targetAndSources[i], overwrite);\n }\n return result;\n}\nexport function extend(target, source) {\n if (Object.assign) {\n Object.assign(target, source);\n }\n else {\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n}\nexport function defaults(target, source, overlay) {\n var keysArr = keys(source);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n if ((overlay ? source[key] != null : target[key] == null)) {\n target[key] = source[key];\n }\n }\n return target;\n}\nexport var createCanvas = function () {\n return methods.createCanvas();\n};\nmethods.createCanvas = function () {\n return document.createElement('canvas');\n};\nexport function indexOf(array, value) {\n if (array) {\n if (array.indexOf) {\n return array.indexOf(value);\n }\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n }\n return -1;\n}\nexport function inherits(clazz, baseClazz) {\n var clazzPrototype = clazz.prototype;\n function F() { }\n F.prototype = baseClazz.prototype;\n clazz.prototype = new F();\n for (var prop in clazzPrototype) {\n if (clazzPrototype.hasOwnProperty(prop)) {\n clazz.prototype[prop] = clazzPrototype[prop];\n }\n }\n clazz.prototype.constructor = clazz;\n clazz.superClass = baseClazz;\n}\nexport function mixin(target, source, override) {\n target = 'prototype' in target ? target.prototype : target;\n source = 'prototype' in source ? source.prototype : source;\n if (Object.getOwnPropertyNames) {\n var keyList = Object.getOwnPropertyNames(source);\n for (var i = 0; i < keyList.length; i++) {\n var key = keyList[i];\n if (key !== 'constructor') {\n if ((override ? source[key] != null : target[key] == null)) {\n target[key] = source[key];\n }\n }\n }\n }\n else {\n defaults(target, source, override);\n }\n}\nexport function isArrayLike(data) {\n if (!data) {\n return false;\n }\n if (typeof data === 'string') {\n return false;\n }\n return typeof data.length === 'number';\n}\nexport function each(arr, cb, context) {\n if (!(arr && cb)) {\n return;\n }\n if (arr.forEach && arr.forEach === nativeForEach) {\n arr.forEach(cb, context);\n }\n else if (arr.length === +arr.length) {\n for (var i = 0, len = arr.length; i < len; i++) {\n cb.call(context, arr[i], i, arr);\n }\n }\n else {\n for (var key in arr) {\n if (arr.hasOwnProperty(key)) {\n cb.call(context, arr[key], key, arr);\n }\n }\n }\n}\nexport function map(arr, cb, context) {\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.map && arr.map === nativeMap) {\n return arr.map(cb, context);\n }\n else {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n result.push(cb.call(context, arr[i], i, arr));\n }\n return result;\n }\n}\nexport function reduce(arr, cb, memo, context) {\n if (!(arr && cb)) {\n return;\n }\n for (var i = 0, len = arr.length; i < len; i++) {\n memo = cb.call(context, memo, arr[i], i, arr);\n }\n return memo;\n}\nexport function filter(arr, cb, context) {\n if (!arr) {\n return [];\n }\n if (!cb) {\n return slice(arr);\n }\n if (arr.filter && arr.filter === nativeFilter) {\n return arr.filter(cb, context);\n }\n else {\n var result = [];\n for (var i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n result.push(arr[i]);\n }\n }\n return result;\n }\n}\nexport function find(arr, cb, context) {\n if (!(arr && cb)) {\n return;\n }\n for (var i = 0, len = arr.length; i < len; i++) {\n if (cb.call(context, arr[i], i, arr)) {\n return arr[i];\n }\n }\n}\nexport function keys(obj) {\n if (!obj) {\n return [];\n }\n if (Object.keys) {\n return Object.keys(obj);\n }\n var keyList = [];\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n keyList.push(key);\n }\n }\n return keyList;\n}\nfunction bindPolyfill(func, context) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n return function () {\n return func.apply(context, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport var bind = (protoFunction && isFunction(protoFunction.bind))\n ? protoFunction.call.bind(protoFunction.bind)\n : bindPolyfill;\nfunction curry(func) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return function () {\n return func.apply(this, args.concat(nativeSlice.call(arguments)));\n };\n}\nexport { curry };\nexport function isArray(value) {\n if (Array.isArray) {\n return Array.isArray(value);\n }\n return objToString.call(value) === '[object Array]';\n}\nexport function isFunction(value) {\n return typeof value === 'function';\n}\nexport function isString(value) {\n return typeof value === 'string';\n}\nexport function isStringSafe(value) {\n return objToString.call(value) === '[object String]';\n}\nexport function isNumber(value) {\n return typeof value === 'number';\n}\nexport function isObject(value) {\n var type = typeof value;\n return type === 'function' || (!!value && type === 'object');\n}\nexport function isBuiltInObject(value) {\n return !!BUILTIN_OBJECT[objToString.call(value)];\n}\nexport function isTypedArray(value) {\n return !!TYPED_ARRAY[objToString.call(value)];\n}\nexport function isDom(value) {\n return typeof value === 'object'\n && typeof value.nodeType === 'number'\n && typeof value.ownerDocument === 'object';\n}\nexport function isGradientObject(value) {\n return value.colorStops != null;\n}\nexport function isImagePatternObject(value) {\n return value.image != null;\n}\nexport function isRegExp(value) {\n return objToString.call(value) === '[object RegExp]';\n}\nexport function eqNaN(value) {\n return value !== value;\n}\nexport function retrieve() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n for (var i = 0, len = args.length; i < len; i++) {\n if (args[i] != null) {\n return args[i];\n }\n }\n}\nexport function retrieve2(value0, value1) {\n return value0 != null\n ? value0\n : value1;\n}\nexport function retrieve3(value0, value1, value2) {\n return value0 != null\n ? value0\n : value1 != null\n ? value1\n : value2;\n}\nexport function slice(arr) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return nativeSlice.apply(arr, args);\n}\nexport function normalizeCssArray(val) {\n if (typeof (val) === 'number') {\n return [val, val, val, val];\n }\n var len = val.length;\n if (len === 2) {\n return [val[0], val[1], val[0], val[1]];\n }\n else if (len === 3) {\n return [val[0], val[1], val[2], val[1]];\n }\n return val;\n}\nexport function assert(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n}\nexport function trim(str) {\n if (str == null) {\n return null;\n }\n else if (typeof str.trim === 'function') {\n return str.trim();\n }\n else {\n return str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n }\n}\nvar primitiveKey = '__ec_primitive__';\nexport function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n}\nexport function isPrimitive(obj) {\n return obj[primitiveKey];\n}\nvar HashMap = (function () {\n function HashMap(obj) {\n this.data = {};\n var isArr = isArray(obj);\n this.data = {};\n var thisMap = this;\n (obj instanceof HashMap)\n ? obj.each(visit)\n : (obj && each(obj, visit));\n function visit(value, key) {\n isArr ? thisMap.set(value, key) : thisMap.set(key, value);\n }\n }\n HashMap.prototype.get = function (key) {\n return this.data.hasOwnProperty(key) ? this.data[key] : null;\n };\n HashMap.prototype.set = function (key, value) {\n return (this.data[key] = value);\n };\n HashMap.prototype.each = function (cb, context) {\n for (var key in this.data) {\n if (this.data.hasOwnProperty(key)) {\n cb.call(context, this.data[key], key);\n }\n }\n };\n HashMap.prototype.keys = function () {\n return keys(this.data);\n };\n HashMap.prototype.removeKey = function (key) {\n delete this.data[key];\n };\n return HashMap;\n}());\nexport { HashMap };\nexport function createHashMap(obj) {\n return new HashMap(obj);\n}\nexport function concatArray(a, b) {\n var newArray = new a.constructor(a.length + b.length);\n for (var i = 0; i < a.length; i++) {\n newArray[i] = a[i];\n }\n var offset = a.length;\n for (var i = 0; i < b.length; i++) {\n newArray[i + offset] = b[i];\n }\n return newArray;\n}\nexport function createObject(proto, properties) {\n var obj;\n if (Object.create) {\n obj = Object.create(proto);\n }\n else {\n var StyleCtor = function () { };\n StyleCtor.prototype = proto;\n obj = new StyleCtor();\n }\n if (properties) {\n extend(obj, properties);\n }\n return obj;\n}\nexport function hasOwn(own, prop) {\n return own.hasOwnProperty(prop);\n}\nexport function noop() { }\n","export function create(x, y) {\n if (x == null) {\n x = 0;\n }\n if (y == null) {\n y = 0;\n }\n return [x, y];\n}\nexport function copy(out, v) {\n out[0] = v[0];\n out[1] = v[1];\n return out;\n}\nexport function clone(v) {\n return [v[0], v[1]];\n}\nexport function set(out, a, b) {\n out[0] = a;\n out[1] = b;\n return out;\n}\nexport function add(out, v1, v2) {\n out[0] = v1[0] + v2[0];\n out[1] = v1[1] + v2[1];\n return out;\n}\nexport function scaleAndAdd(out, v1, v2, a) {\n out[0] = v1[0] + v2[0] * a;\n out[1] = v1[1] + v2[1] * a;\n return out;\n}\nexport function sub(out, v1, v2) {\n out[0] = v1[0] - v2[0];\n out[1] = v1[1] - v2[1];\n return out;\n}\nexport function len(v) {\n return Math.sqrt(lenSquare(v));\n}\nexport var length = len;\nexport function lenSquare(v) {\n return v[0] * v[0] + v[1] * v[1];\n}\nexport var lengthSquare = lenSquare;\nexport function mul(out, v1, v2) {\n out[0] = v1[0] * v2[0];\n out[1] = v1[1] * v2[1];\n return out;\n}\nexport function div(out, v1, v2) {\n out[0] = v1[0] / v2[0];\n out[1] = v1[1] / v2[1];\n return out;\n}\nexport function dot(v1, v2) {\n return v1[0] * v2[0] + v1[1] * v2[1];\n}\nexport function scale(out, v, s) {\n out[0] = v[0] * s;\n out[1] = v[1] * s;\n return out;\n}\nexport function normalize(out, v) {\n var d = len(v);\n if (d === 0) {\n out[0] = 0;\n out[1] = 0;\n }\n else {\n out[0] = v[0] / d;\n out[1] = v[1] / d;\n }\n return out;\n}\nexport function distance(v1, v2) {\n return Math.sqrt((v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]));\n}\nexport var dist = distance;\nexport function distanceSquare(v1, v2) {\n return (v1[0] - v2[0]) * (v1[0] - v2[0])\n + (v1[1] - v2[1]) * (v1[1] - v2[1]);\n}\nexport var distSquare = distanceSquare;\nexport function negate(out, v) {\n out[0] = -v[0];\n out[1] = -v[1];\n return out;\n}\nexport function lerp(out, v1, v2, t) {\n out[0] = v1[0] + t * (v2[0] - v1[0]);\n out[1] = v1[1] + t * (v2[1] - v1[1]);\n return out;\n}\nexport function applyTransform(out, v, m) {\n var x = v[0];\n var y = v[1];\n out[0] = m[0] * x + m[2] * y + m[4];\n out[1] = m[1] * x + m[3] * y + m[5];\n return out;\n}\nexport function min(out, v1, v2) {\n out[0] = Math.min(v1[0], v2[0]);\n out[1] = Math.min(v1[1], v2[1]);\n return out;\n}\nexport function max(out, v1, v2) {\n out[0] = Math.max(v1[0], v2[0]);\n out[1] = Math.max(v1[1], v2[1]);\n return out;\n}\n","var Param = (function () {\n function Param(target, e) {\n this.target = target;\n this.topTarget = e && e.topTarget;\n }\n return Param;\n}());\nvar Draggable = (function () {\n function Draggable(handler) {\n this.handler = handler;\n handler.on('mousedown', this._dragStart, this);\n handler.on('mousemove', this._drag, this);\n handler.on('mouseup', this._dragEnd, this);\n }\n Draggable.prototype._dragStart = function (e) {\n var draggingTarget = e.target;\n while (draggingTarget && !draggingTarget.draggable) {\n draggingTarget = draggingTarget.parent;\n }\n if (draggingTarget) {\n this._draggingTarget = draggingTarget;\n draggingTarget.dragging = true;\n this._x = e.offsetX;\n this._y = e.offsetY;\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragstart', e.event);\n }\n };\n Draggable.prototype._drag = function (e) {\n var draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n var x = e.offsetX;\n var y = e.offsetY;\n var dx = x - this._x;\n var dy = y - this._y;\n this._x = x;\n this._y = y;\n draggingTarget.drift(dx, dy, e);\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'drag', e.event);\n var dropTarget = this.handler.findHover(x, y, draggingTarget).target;\n var lastDropTarget = this._dropTarget;\n this._dropTarget = dropTarget;\n if (draggingTarget !== dropTarget) {\n if (lastDropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(new Param(lastDropTarget, e), 'dragleave', e.event);\n }\n if (dropTarget && dropTarget !== lastDropTarget) {\n this.handler.dispatchToElement(new Param(dropTarget, e), 'dragenter', e.event);\n }\n }\n }\n };\n Draggable.prototype._dragEnd = function (e) {\n var draggingTarget = this._draggingTarget;\n if (draggingTarget) {\n draggingTarget.dragging = false;\n }\n this.handler.dispatchToElement(new Param(draggingTarget, e), 'dragend', e.event);\n if (this._dropTarget) {\n this.handler.dispatchToElement(new Param(this._dropTarget, e), 'drop', e.event);\n }\n this._draggingTarget = null;\n this._dropTarget = null;\n };\n return Draggable;\n}());\nexport default Draggable;\n","var Eventful = (function () {\n function Eventful(eventProcessors) {\n if (eventProcessors) {\n this._$eventProcessor = eventProcessors;\n }\n }\n Eventful.prototype.on = function (event, query, handler, context) {\n if (!this._$handlers) {\n this._$handlers = {};\n }\n var _h = this._$handlers;\n if (typeof query === 'function') {\n context = handler;\n handler = query;\n query = null;\n }\n if (!handler || !event) {\n return this;\n }\n var eventProcessor = this._$eventProcessor;\n if (query != null && eventProcessor && eventProcessor.normalizeQuery) {\n query = eventProcessor.normalizeQuery(query);\n }\n if (!_h[event]) {\n _h[event] = [];\n }\n for (var i = 0; i < _h[event].length; i++) {\n if (_h[event][i].h === handler) {\n return this;\n }\n }\n var wrap = {\n h: handler,\n query: query,\n ctx: (context || this),\n callAtLast: handler.zrEventfulCallAtLast\n };\n var lastIndex = _h[event].length - 1;\n var lastWrap = _h[event][lastIndex];\n (lastWrap && lastWrap.callAtLast)\n ? _h[event].splice(lastIndex, 0, wrap)\n : _h[event].push(wrap);\n return this;\n };\n Eventful.prototype.isSilent = function (eventName) {\n var _h = this._$handlers;\n return !_h || !_h[eventName] || !_h[eventName].length;\n };\n Eventful.prototype.off = function (eventType, handler) {\n var _h = this._$handlers;\n if (!_h) {\n return this;\n }\n if (!eventType) {\n this._$handlers = {};\n return this;\n }\n if (handler) {\n if (_h[eventType]) {\n var newList = [];\n for (var i = 0, l = _h[eventType].length; i < l; i++) {\n if (_h[eventType][i].h !== handler) {\n newList.push(_h[eventType][i]);\n }\n }\n _h[eventType] = newList;\n }\n if (_h[eventType] && _h[eventType].length === 0) {\n delete _h[eventType];\n }\n }\n else {\n delete _h[eventType];\n }\n return this;\n };\n Eventful.prototype.trigger = function (eventType) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n if (!this._$handlers) {\n return this;\n }\n var _h = this._$handlers[eventType];\n var eventProcessor = this._$eventProcessor;\n if (_h) {\n var argLen = args.length;\n var len = _h.length;\n for (var i = 0; i < len; i++) {\n var hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(eventType, hItem.query)) {\n continue;\n }\n switch (argLen) {\n case 0:\n hItem.h.call(hItem.ctx);\n break;\n case 1:\n hItem.h.call(hItem.ctx, args[0]);\n break;\n case 2:\n hItem.h.call(hItem.ctx, args[0], args[1]);\n break;\n default:\n hItem.h.apply(hItem.ctx, args);\n break;\n }\n }\n }\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(eventType);\n return this;\n };\n Eventful.prototype.triggerWithContext = function (type) {\n if (!this._$handlers) {\n return this;\n }\n var _h = this._$handlers[type];\n var eventProcessor = this._$eventProcessor;\n if (_h) {\n var args = arguments;\n var argLen = args.length;\n var ctx = args[argLen - 1];\n var len = _h.length;\n for (var i = 0; i < len; i++) {\n var hItem = _h[i];\n if (eventProcessor\n && eventProcessor.filter\n && hItem.query != null\n && !eventProcessor.filter(type, hItem.query)) {\n continue;\n }\n switch (argLen) {\n case 0:\n hItem.h.call(ctx);\n break;\n case 1:\n hItem.h.call(ctx, args[0]);\n break;\n case 2:\n hItem.h.call(ctx, args[0], args[1]);\n break;\n default:\n hItem.h.apply(ctx, args.slice(1, argLen - 1));\n break;\n }\n }\n }\n eventProcessor && eventProcessor.afterTrigger\n && eventProcessor.afterTrigger(type);\n return this;\n };\n return Eventful;\n}());\nexport default Eventful;\n","var LN2 = Math.log(2);\nfunction determinant(rows, rank, rowStart, rowMask, colMask, detCache) {\n var cacheKey = rowMask + '-' + colMask;\n var fullRank = rows.length;\n if (detCache.hasOwnProperty(cacheKey)) {\n return detCache[cacheKey];\n }\n if (rank === 1) {\n var colStart = Math.round(Math.log(((1 << fullRank) - 1) & ~colMask) / LN2);\n return rows[rowStart][colStart];\n }\n var subRowMask = rowMask | (1 << rowStart);\n var subRowStart = rowStart + 1;\n while (rowMask & (1 << subRowStart)) {\n subRowStart++;\n }\n var sum = 0;\n for (var j = 0, colLocalIdx = 0; j < fullRank; j++) {\n var colTag = 1 << j;\n if (!(colTag & colMask)) {\n sum += (colLocalIdx % 2 ? -1 : 1) * rows[rowStart][j]\n * determinant(rows, rank - 1, subRowStart, subRowMask, colMask | colTag, detCache);\n colLocalIdx++;\n }\n }\n detCache[cacheKey] = sum;\n return sum;\n}\nexport function buildTransformer(src, dest) {\n var mA = [\n [src[0], src[1], 1, 0, 0, 0, -dest[0] * src[0], -dest[0] * src[1]],\n [0, 0, 0, src[0], src[1], 1, -dest[1] * src[0], -dest[1] * src[1]],\n [src[2], src[3], 1, 0, 0, 0, -dest[2] * src[2], -dest[2] * src[3]],\n [0, 0, 0, src[2], src[3], 1, -dest[3] * src[2], -dest[3] * src[3]],\n [src[4], src[5], 1, 0, 0, 0, -dest[4] * src[4], -dest[4] * src[5]],\n [0, 0, 0, src[4], src[5], 1, -dest[5] * src[4], -dest[5] * src[5]],\n [src[6], src[7], 1, 0, 0, 0, -dest[6] * src[6], -dest[6] * src[7]],\n [0, 0, 0, src[6], src[7], 1, -dest[7] * src[6], -dest[7] * src[7]]\n ];\n var detCache = {};\n var det = determinant(mA, 8, 0, 0, 0, detCache);\n if (det === 0) {\n return;\n }\n var vh = [];\n for (var i = 0; i < 8; i++) {\n for (var j = 0; j < 8; j++) {\n vh[j] == null && (vh[j] = 0);\n vh[j] += ((i + j) % 2 ? -1 : 1)\n * determinant(mA, 7, i === 0 ? 1 : 0, 1 << i, 1 << j, detCache)\n / det * dest[i];\n }\n }\n return function (out, srcPointX, srcPointY) {\n var pk = srcPointX * vh[6] + srcPointY * vh[7] + 1;\n out[0] = (srcPointX * vh[0] + srcPointY * vh[1] + vh[2]) / pk;\n out[1] = (srcPointX * vh[3] + srcPointY * vh[4] + vh[5]) / pk;\n };\n}\n","import env from './env';\nimport { buildTransformer } from './fourPointsTransform';\nvar EVENT_SAVED_PROP = '___zrEVENTSAVED';\nvar _calcOut = [];\nexport function transformLocalCoord(out, elFrom, elTarget, inX, inY) {\n return transformCoordWithViewport(_calcOut, elFrom, inX, inY, true)\n && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]);\n}\nexport function transformCoordWithViewport(out, el, inX, inY, inverse) {\n if (el.getBoundingClientRect && env.domSupported && !isCanvasEl(el)) {\n var saved = el[EVENT_SAVED_PROP] || (el[EVENT_SAVED_PROP] = {});\n var markers = prepareCoordMarkers(el, saved);\n var transformer = preparePointerTransformer(markers, saved, inverse);\n if (transformer) {\n transformer(out, inX, inY);\n return true;\n }\n }\n return false;\n}\nfunction prepareCoordMarkers(el, saved) {\n var markers = saved.markers;\n if (markers) {\n return markers;\n }\n markers = saved.markers = [];\n var propLR = ['left', 'right'];\n var propTB = ['top', 'bottom'];\n for (var i = 0; i < 4; i++) {\n var marker = document.createElement('div');\n var stl = marker.style;\n var idxLR = i % 2;\n var idxTB = (i >> 1) % 2;\n stl.cssText = [\n 'position: absolute',\n 'visibility: hidden',\n 'padding: 0',\n 'margin: 0',\n 'border-width: 0',\n 'user-select: none',\n 'width:0',\n 'height:0',\n propLR[idxLR] + ':0',\n propTB[idxTB] + ':0',\n propLR[1 - idxLR] + ':auto',\n propTB[1 - idxTB] + ':auto',\n ''\n ].join('!important;');\n el.appendChild(marker);\n markers.push(marker);\n }\n return markers;\n}\nfunction preparePointerTransformer(markers, saved, inverse) {\n var transformerName = inverse ? 'invTrans' : 'trans';\n var transformer = saved[transformerName];\n var oldSrcCoords = saved.srcCoords;\n var srcCoords = [];\n var destCoords = [];\n var oldCoordTheSame = true;\n for (var i = 0; i < 4; i++) {\n var rect = markers[i].getBoundingClientRect();\n var ii = 2 * i;\n var x = rect.left;\n var y = rect.top;\n srcCoords.push(x, y);\n oldCoordTheSame = oldCoordTheSame && oldSrcCoords && x === oldSrcCoords[ii] && y === oldSrcCoords[ii + 1];\n destCoords.push(markers[i].offsetLeft, markers[i].offsetTop);\n }\n return (oldCoordTheSame && transformer)\n ? transformer\n : (saved.srcCoords = srcCoords,\n saved[transformerName] = inverse\n ? buildTransformer(destCoords, srcCoords)\n : buildTransformer(srcCoords, destCoords));\n}\nexport function isCanvasEl(el) {\n return el.nodeName.toUpperCase() === 'CANVAS';\n}\n","import Eventful from './Eventful';\nimport env from './env';\nimport { isCanvasEl, transformCoordWithViewport } from './dom';\nvar isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;\nvar MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|drop)|click/;\nvar _calcOut = [];\nexport function clientToLocal(el, e, out, calculate) {\n out = out || {};\n if (calculate || !env.canvasSupported) {\n calculateZrXY(el, e, out);\n }\n else if (env.browser.firefox\n && e.layerX != null\n && e.layerX !== e.offsetX) {\n out.zrX = e.layerX;\n out.zrY = e.layerY;\n }\n else if (e.offsetX != null) {\n out.zrX = e.offsetX;\n out.zrY = e.offsetY;\n }\n else {\n calculateZrXY(el, e, out);\n }\n return out;\n}\nfunction calculateZrXY(el, e, out) {\n if (env.domSupported && el.getBoundingClientRect) {\n var ex = e.clientX;\n var ey = e.clientY;\n if (isCanvasEl(el)) {\n var box = el.getBoundingClientRect();\n out.zrX = ex - box.left;\n out.zrY = ey - box.top;\n return;\n }\n else {\n if (transformCoordWithViewport(_calcOut, el, ex, ey)) {\n out.zrX = _calcOut[0];\n out.zrY = _calcOut[1];\n return;\n }\n }\n }\n out.zrX = out.zrY = 0;\n}\nexport function getNativeEvent(e) {\n return e\n || window.event;\n}\nexport function normalizeEvent(el, e, calculate) {\n e = getNativeEvent(e);\n if (e.zrX != null) {\n return e;\n }\n var eventType = e.type;\n var isTouch = eventType && eventType.indexOf('touch') >= 0;\n if (!isTouch) {\n clientToLocal(el, e, e, calculate);\n var wheelDelta = getWheelDeltaMayPolyfill(e);\n e.zrDelta = wheelDelta ? wheelDelta / 120 : -(e.detail || 0) / 3;\n }\n else {\n var touch = eventType !== 'touchend'\n ? e.targetTouches[0]\n : e.changedTouches[0];\n touch && clientToLocal(el, touch, e, calculate);\n }\n var button = e.button;\n if (e.which == null && button !== undefined && MOUSE_EVENT_REG.test(e.type)) {\n e.which = (button & 1 ? 1 : (button & 2 ? 3 : (button & 4 ? 2 : 0)));\n }\n return e;\n}\nfunction getWheelDeltaMayPolyfill(e) {\n var rawWheelDelta = e.wheelDelta;\n if (rawWheelDelta) {\n return rawWheelDelta;\n }\n var deltaX = e.deltaX;\n var deltaY = e.deltaY;\n if (deltaX == null || deltaY == null) {\n return rawWheelDelta;\n }\n var delta = deltaY !== 0 ? Math.abs(deltaY) : Math.abs(deltaX);\n var sign = deltaY > 0 ? -1\n : deltaY < 0 ? 1\n : deltaX > 0 ? -1\n : 1;\n return 3 * delta * sign;\n}\nexport function addEventListener(el, name, handler, opt) {\n if (isDomLevel2) {\n el.addEventListener(name, handler, opt);\n }\n else {\n el.attachEvent('on' + name, handler);\n }\n}\nexport function removeEventListener(el, name, handler, opt) {\n if (isDomLevel2) {\n el.removeEventListener(name, handler, opt);\n }\n else {\n el.detachEvent('on' + name, handler);\n }\n}\nexport var stop = isDomLevel2\n ? function (e) {\n e.preventDefault();\n e.stopPropagation();\n e.cancelBubble = true;\n }\n : function (e) {\n e.returnValue = false;\n e.cancelBubble = true;\n };\nexport function isMiddleOrRightButtonOnMouseUpDown(e) {\n return e.which === 2 || e.which === 3;\n}\nexport function notLeftMouse(e) {\n return e.which > 1;\n}\nexport { Eventful as Dispatcher };\n","import * as eventUtil from './event';\nvar GestureMgr = (function () {\n function GestureMgr() {\n this._track = [];\n }\n GestureMgr.prototype.recognize = function (event, target, root) {\n this._doTrack(event, target, root);\n return this._recognize(event);\n };\n GestureMgr.prototype.clear = function () {\n this._track.length = 0;\n return this;\n };\n GestureMgr.prototype._doTrack = function (event, target, root) {\n var touches = event.touches;\n if (!touches) {\n return;\n }\n var trackItem = {\n points: [],\n touches: [],\n target: target,\n event: event\n };\n for (var i = 0, len = touches.length; i < len; i++) {\n var touch = touches[i];\n var pos = eventUtil.clientToLocal(root, touch, {});\n trackItem.points.push([pos.zrX, pos.zrY]);\n trackItem.touches.push(touch);\n }\n this._track.push(trackItem);\n };\n GestureMgr.prototype._recognize = function (event) {\n for (var eventName in recognizers) {\n if (recognizers.hasOwnProperty(eventName)) {\n var gestureInfo = recognizers[eventName](this._track, event);\n if (gestureInfo) {\n return gestureInfo;\n }\n }\n }\n };\n return GestureMgr;\n}());\nexport { GestureMgr };\nfunction dist(pointPair) {\n var dx = pointPair[1][0] - pointPair[0][0];\n var dy = pointPair[1][1] - pointPair[0][1];\n return Math.sqrt(dx * dx + dy * dy);\n}\nfunction center(pointPair) {\n return [\n (pointPair[0][0] + pointPair[1][0]) / 2,\n (pointPair[0][1] + pointPair[1][1]) / 2\n ];\n}\nvar recognizers = {\n pinch: function (tracks, event) {\n var trackLen = tracks.length;\n if (!trackLen) {\n return;\n }\n var pinchEnd = (tracks[trackLen - 1] || {}).points;\n var pinchPre = (tracks[trackLen - 2] || {}).points || pinchEnd;\n if (pinchPre\n && pinchPre.length > 1\n && pinchEnd\n && pinchEnd.length > 1) {\n var pinchScale = dist(pinchEnd) / dist(pinchPre);\n !isFinite(pinchScale) && (pinchScale = 1);\n event.pinchScale = pinchScale;\n var pinchCenter = center(pinchEnd);\n event.pinchX = pinchCenter[0];\n event.pinchY = pinchCenter[1];\n return {\n type: 'pinch',\n target: tracks[0].target,\n event: event\n };\n }\n }\n};\n","import { __extends } from \"tslib\";\nimport * as util from './core/util';\nimport * as vec2 from './core/vector';\nimport Draggable from './mixin/Draggable';\nimport Eventful from './core/Eventful';\nimport * as eventTool from './core/event';\nimport { GestureMgr } from './core/GestureMgr';\nvar SILENT = 'silent';\nfunction makeEventPacket(eveType, targetInfo, event) {\n return {\n type: eveType,\n event: event,\n target: targetInfo.target,\n topTarget: targetInfo.topTarget,\n cancelBubble: false,\n offsetX: event.zrX,\n offsetY: event.zrY,\n gestureEvent: event.gestureEvent,\n pinchX: event.pinchX,\n pinchY: event.pinchY,\n pinchScale: event.pinchScale,\n wheelDelta: event.zrDelta,\n zrByTouch: event.zrByTouch,\n which: event.which,\n stop: stopEvent\n };\n}\nfunction stopEvent() {\n eventTool.stop(this.event);\n}\nvar EmptyProxy = (function (_super) {\n __extends(EmptyProxy, _super);\n function EmptyProxy() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.handler = null;\n return _this;\n }\n EmptyProxy.prototype.dispose = function () { };\n EmptyProxy.prototype.setCursor = function () { };\n return EmptyProxy;\n}(Eventful));\nvar HoveredResult = (function () {\n function HoveredResult(x, y) {\n this.x = x;\n this.y = y;\n }\n return HoveredResult;\n}());\nvar handlerNames = [\n 'click', 'dblclick', 'mousewheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n];\nvar Handler = (function (_super) {\n __extends(Handler, _super);\n function Handler(storage, painter, proxy, painterRoot) {\n var _this = _super.call(this) || this;\n _this._hovered = new HoveredResult(0, 0);\n _this.storage = storage;\n _this.painter = painter;\n _this.painterRoot = painterRoot;\n proxy = proxy || new EmptyProxy();\n _this.proxy = null;\n _this.setHandlerProxy(proxy);\n _this._draggingMgr = new Draggable(_this);\n return _this;\n }\n Handler.prototype.setHandlerProxy = function (proxy) {\n if (this.proxy) {\n this.proxy.dispose();\n }\n if (proxy) {\n util.each(handlerNames, function (name) {\n proxy.on && proxy.on(name, this[name], this);\n }, this);\n proxy.handler = this;\n }\n this.proxy = proxy;\n };\n Handler.prototype.mousemove = function (event) {\n var x = event.zrX;\n var y = event.zrY;\n var isOutside = isOutsideBoundary(this, x, y);\n var lastHovered = this._hovered;\n var lastHoveredTarget = lastHovered.target;\n if (lastHoveredTarget && !lastHoveredTarget.__zr) {\n lastHovered = this.findHover(lastHovered.x, lastHovered.y);\n lastHoveredTarget = lastHovered.target;\n }\n var hovered = this._hovered = isOutside ? new HoveredResult(x, y) : this.findHover(x, y);\n var hoveredTarget = hovered.target;\n var proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(hoveredTarget ? hoveredTarget.cursor : 'default');\n if (lastHoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(lastHovered, 'mouseout', event);\n }\n this.dispatchToElement(hovered, 'mousemove', event);\n if (hoveredTarget && hoveredTarget !== lastHoveredTarget) {\n this.dispatchToElement(hovered, 'mouseover', event);\n }\n };\n Handler.prototype.mouseout = function (event) {\n var eventControl = event.zrEventControl;\n if (eventControl !== 'only_globalout') {\n this.dispatchToElement(this._hovered, 'mouseout', event);\n }\n if (eventControl !== 'no_globalout') {\n this.trigger('globalout', { type: 'globalout', event: event });\n }\n };\n Handler.prototype.resize = function () {\n this._hovered = new HoveredResult(0, 0);\n };\n Handler.prototype.dispatch = function (eventName, eventArgs) {\n var handler = this[eventName];\n handler && handler.call(this, eventArgs);\n };\n Handler.prototype.dispose = function () {\n this.proxy.dispose();\n this.storage = null;\n this.proxy = null;\n this.painter = null;\n };\n Handler.prototype.setCursorStyle = function (cursorStyle) {\n var proxy = this.proxy;\n proxy.setCursor && proxy.setCursor(cursorStyle);\n };\n Handler.prototype.dispatchToElement = function (targetInfo, eventName, event) {\n targetInfo = targetInfo || {};\n var el = targetInfo.target;\n if (el && el.silent) {\n return;\n }\n var eventKey = ('on' + eventName);\n var eventPacket = makeEventPacket(eventName, targetInfo, event);\n while (el) {\n el[eventKey]\n && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket));\n el.trigger(eventName, eventPacket);\n el = el.__hostTarget ? el.__hostTarget : el.parent;\n if (eventPacket.cancelBubble) {\n break;\n }\n }\n if (!eventPacket.cancelBubble) {\n this.trigger(eventName, eventPacket);\n if (this.painter && this.painter.eachOtherLayer) {\n this.painter.eachOtherLayer(function (layer) {\n if (typeof (layer[eventKey]) === 'function') {\n layer[eventKey].call(layer, eventPacket);\n }\n if (layer.trigger) {\n layer.trigger(eventName, eventPacket);\n }\n });\n }\n }\n };\n Handler.prototype.findHover = function (x, y, exclude) {\n var list = this.storage.getDisplayList();\n var out = new HoveredResult(x, y);\n for (var i = list.length - 1; i >= 0; i--) {\n var hoverCheckResult = void 0;\n if (list[i] !== exclude\n && !list[i].ignore\n && (hoverCheckResult = isHover(list[i], x, y))) {\n !out.topTarget && (out.topTarget = list[i]);\n if (hoverCheckResult !== SILENT) {\n out.target = list[i];\n break;\n }\n }\n }\n return out;\n };\n Handler.prototype.processGesture = function (event, stage) {\n if (!this._gestureMgr) {\n this._gestureMgr = new GestureMgr();\n }\n var gestureMgr = this._gestureMgr;\n stage === 'start' && gestureMgr.clear();\n var gestureInfo = gestureMgr.recognize(event, this.findHover(event.zrX, event.zrY, null).target, this.proxy.dom);\n stage === 'end' && gestureMgr.clear();\n if (gestureInfo) {\n var type = gestureInfo.type;\n event.gestureEvent = type;\n var res = new HoveredResult();\n res.target = gestureInfo.target;\n this.dispatchToElement(res, type, gestureInfo.event);\n }\n };\n return Handler;\n}(Eventful));\nutil.each(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick', 'contextmenu'], function (name) {\n Handler.prototype[name] = function (event) {\n var x = event.zrX;\n var y = event.zrY;\n var isOutside = isOutsideBoundary(this, x, y);\n var hovered;\n var hoveredTarget;\n if (name !== 'mouseup' || !isOutside) {\n hovered = this.findHover(x, y);\n hoveredTarget = hovered.target;\n }\n if (name === 'mousedown') {\n this._downEl = hoveredTarget;\n this._downPoint = [event.zrX, event.zrY];\n this._upEl = hoveredTarget;\n }\n else if (name === 'mouseup') {\n this._upEl = hoveredTarget;\n }\n else if (name === 'click') {\n if (this._downEl !== this._upEl\n || !this._downPoint\n || vec2.dist(this._downPoint, [event.zrX, event.zrY]) > 4) {\n return;\n }\n this._downPoint = null;\n }\n this.dispatchToElement(hovered, name, event);\n };\n});\nfunction isHover(displayable, x, y) {\n if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {\n var el = displayable;\n var isSilent = void 0;\n var ignoreClip = false;\n while (el) {\n if (el.ignoreClip) {\n ignoreClip = true;\n }\n if (!ignoreClip) {\n var clipPath = el.getClipPath();\n if (clipPath && !clipPath.contain(x, y)) {\n return false;\n }\n if (el.silent) {\n isSilent = true;\n }\n }\n var hostEl = el.__hostTarget;\n el = hostEl ? hostEl : el.parent;\n }\n return isSilent ? SILENT : true;\n }\n return false;\n}\nfunction isOutsideBoundary(handlerInstance, x, y) {\n var painter = handlerInstance.painter;\n return x < 0 || x > painter.getWidth() || y < 0 || y > painter.getHeight();\n}\nexport default Handler;\n","var DEFAULT_MIN_MERGE = 32;\nvar DEFAULT_MIN_GALLOPING = 7;\nvar DEFAULT_TMP_STORAGE_LENGTH = 256;\nfunction minRunLength(n) {\n var r = 0;\n while (n >= DEFAULT_MIN_MERGE) {\n r |= n & 1;\n n >>= 1;\n }\n return n + r;\n}\nfunction makeAscendingRun(array, lo, hi, compare) {\n var runHi = lo + 1;\n if (runHi === hi) {\n return 1;\n }\n if (compare(array[runHi++], array[lo]) < 0) {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) {\n runHi++;\n }\n reverseRun(array, lo, runHi);\n }\n else {\n while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) {\n runHi++;\n }\n }\n return runHi - lo;\n}\nfunction reverseRun(array, lo, hi) {\n hi--;\n while (lo < hi) {\n var t = array[lo];\n array[lo++] = array[hi];\n array[hi--] = t;\n }\n}\nfunction binaryInsertionSort(array, lo, hi, start, compare) {\n if (start === lo) {\n start++;\n }\n for (; start < hi; start++) {\n var pivot = array[start];\n var left = lo;\n var right = start;\n var mid;\n while (left < right) {\n mid = left + right >>> 1;\n if (compare(pivot, array[mid]) < 0) {\n right = mid;\n }\n else {\n left = mid + 1;\n }\n }\n var n = start - left;\n switch (n) {\n case 3:\n array[left + 3] = array[left + 2];\n case 2:\n array[left + 2] = array[left + 1];\n case 1:\n array[left + 1] = array[left];\n break;\n default:\n while (n > 0) {\n array[left + n] = array[left + n - 1];\n n--;\n }\n }\n array[left] = pivot;\n }\n}\nfunction gallopLeft(value, array, start, length, hint, compare) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n if (compare(value, array[start + hint]) > 0) {\n maxOffset = length - hint;\n while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n lastOffset += hint;\n offset += hint;\n }\n else {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n if (compare(value, array[start + m]) > 0) {\n lastOffset = m + 1;\n }\n else {\n offset = m;\n }\n }\n return offset;\n}\nfunction gallopRight(value, array, start, length, hint, compare) {\n var lastOffset = 0;\n var maxOffset = 0;\n var offset = 1;\n if (compare(value, array[start + hint]) < 0) {\n maxOffset = hint + 1;\n while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n var tmp = lastOffset;\n lastOffset = hint - offset;\n offset = hint - tmp;\n }\n else {\n maxOffset = length - hint;\n while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) {\n lastOffset = offset;\n offset = (offset << 1) + 1;\n if (offset <= 0) {\n offset = maxOffset;\n }\n }\n if (offset > maxOffset) {\n offset = maxOffset;\n }\n lastOffset += hint;\n offset += hint;\n }\n lastOffset++;\n while (lastOffset < offset) {\n var m = lastOffset + (offset - lastOffset >>> 1);\n if (compare(value, array[start + m]) < 0) {\n offset = m;\n }\n else {\n lastOffset = m + 1;\n }\n }\n return offset;\n}\nfunction TimSort(array, compare) {\n var minGallop = DEFAULT_MIN_GALLOPING;\n var length = 0;\n var tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH;\n var stackLength = 0;\n var runStart;\n var runLength;\n var stackSize = 0;\n length = array.length;\n if (length < 2 * DEFAULT_TMP_STORAGE_LENGTH) {\n tmpStorageLength = length >>> 1;\n }\n var tmp = [];\n stackLength = length < 120 ? 5 : length < 1542 ? 10 : length < 119151 ? 19 : 40;\n runStart = [];\n runLength = [];\n function pushRun(_runStart, _runLength) {\n runStart[stackSize] = _runStart;\n runLength[stackSize] = _runLength;\n stackSize += 1;\n }\n function mergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n if ((n >= 1 && runLength[n - 1] <= runLength[n] + runLength[n + 1])\n || (n >= 2 && runLength[n - 2] <= runLength[n] + runLength[n - 1])) {\n if (runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n }\n else if (runLength[n] > runLength[n + 1]) {\n break;\n }\n mergeAt(n);\n }\n }\n function forceMergeRuns() {\n while (stackSize > 1) {\n var n = stackSize - 2;\n if (n > 0 && runLength[n - 1] < runLength[n + 1]) {\n n--;\n }\n mergeAt(n);\n }\n }\n function mergeAt(i) {\n var start1 = runStart[i];\n var length1 = runLength[i];\n var start2 = runStart[i + 1];\n var length2 = runLength[i + 1];\n runLength[i] = length1 + length2;\n if (i === stackSize - 3) {\n runStart[i + 1] = runStart[i + 2];\n runLength[i + 1] = runLength[i + 2];\n }\n stackSize--;\n var k = gallopRight(array[start2], array, start1, length1, 0, compare);\n start1 += k;\n length1 -= k;\n if (length1 === 0) {\n return;\n }\n length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare);\n if (length2 === 0) {\n return;\n }\n if (length1 <= length2) {\n mergeLow(start1, length1, start2, length2);\n }\n else {\n mergeHigh(start1, length1, start2, length2);\n }\n }\n function mergeLow(start1, length1, start2, length2) {\n var i = 0;\n for (i = 0; i < length1; i++) {\n tmp[i] = array[start1 + i];\n }\n var cursor1 = 0;\n var cursor2 = start2;\n var dest = start1;\n array[dest++] = array[cursor2++];\n if (--length2 === 0) {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n return;\n }\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n return;\n }\n var _minGallop = minGallop;\n var count1;\n var count2;\n var exit;\n while (1) {\n count1 = 0;\n count2 = 0;\n exit = false;\n do {\n if (compare(array[cursor2], tmp[cursor1]) < 0) {\n array[dest++] = array[cursor2++];\n count2++;\n count1 = 0;\n if (--length2 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest++] = tmp[cursor1++];\n count1++;\n count2 = 0;\n if (--length1 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n if (exit) {\n break;\n }\n do {\n count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare);\n if (count1 !== 0) {\n for (i = 0; i < count1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n dest += count1;\n cursor1 += count1;\n length1 -= count1;\n if (length1 <= 1) {\n exit = true;\n break;\n }\n }\n array[dest++] = array[cursor2++];\n if (--length2 === 0) {\n exit = true;\n break;\n }\n count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare);\n if (count2 !== 0) {\n for (i = 0; i < count2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n dest += count2;\n cursor2 += count2;\n length2 -= count2;\n if (length2 === 0) {\n exit = true;\n break;\n }\n }\n array[dest++] = tmp[cursor1++];\n if (--length1 === 1) {\n exit = true;\n break;\n }\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n if (exit) {\n break;\n }\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n _minGallop += 2;\n }\n minGallop = _minGallop;\n minGallop < 1 && (minGallop = 1);\n if (length1 === 1) {\n for (i = 0; i < length2; i++) {\n array[dest + i] = array[cursor2 + i];\n }\n array[dest + length2] = tmp[cursor1];\n }\n else if (length1 === 0) {\n throw new Error();\n }\n else {\n for (i = 0; i < length1; i++) {\n array[dest + i] = tmp[cursor1 + i];\n }\n }\n }\n function mergeHigh(start1, length1, start2, length2) {\n var i = 0;\n for (i = 0; i < length2; i++) {\n tmp[i] = array[start2 + i];\n }\n var cursor1 = start1 + length1 - 1;\n var cursor2 = length2 - 1;\n var dest = start2 + length2 - 1;\n var customCursor = 0;\n var customDest = 0;\n array[dest--] = array[cursor1--];\n if (--length1 === 0) {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n return;\n }\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n array[dest] = tmp[cursor2];\n return;\n }\n var _minGallop = minGallop;\n while (true) {\n var count1 = 0;\n var count2 = 0;\n var exit = false;\n do {\n if (compare(tmp[cursor2], array[cursor1]) < 0) {\n array[dest--] = array[cursor1--];\n count1++;\n count2 = 0;\n if (--length1 === 0) {\n exit = true;\n break;\n }\n }\n else {\n array[dest--] = tmp[cursor2--];\n count2++;\n count1 = 0;\n if (--length2 === 1) {\n exit = true;\n break;\n }\n }\n } while ((count1 | count2) < _minGallop);\n if (exit) {\n break;\n }\n do {\n count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare);\n if (count1 !== 0) {\n dest -= count1;\n cursor1 -= count1;\n length1 -= count1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = count1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n if (length1 === 0) {\n exit = true;\n break;\n }\n }\n array[dest--] = tmp[cursor2--];\n if (--length2 === 1) {\n exit = true;\n break;\n }\n count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare);\n if (count2 !== 0) {\n dest -= count2;\n cursor2 -= count2;\n length2 -= count2;\n customDest = dest + 1;\n customCursor = cursor2 + 1;\n for (i = 0; i < count2; i++) {\n array[customDest + i] = tmp[customCursor + i];\n }\n if (length2 <= 1) {\n exit = true;\n break;\n }\n }\n array[dest--] = array[cursor1--];\n if (--length1 === 0) {\n exit = true;\n break;\n }\n _minGallop--;\n } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING);\n if (exit) {\n break;\n }\n if (_minGallop < 0) {\n _minGallop = 0;\n }\n _minGallop += 2;\n }\n minGallop = _minGallop;\n if (minGallop < 1) {\n minGallop = 1;\n }\n if (length2 === 1) {\n dest -= length1;\n cursor1 -= length1;\n customDest = dest + 1;\n customCursor = cursor1 + 1;\n for (i = length1 - 1; i >= 0; i--) {\n array[customDest + i] = array[customCursor + i];\n }\n array[dest] = tmp[cursor2];\n }\n else if (length2 === 0) {\n throw new Error();\n }\n else {\n customCursor = dest - (length2 - 1);\n for (i = 0; i < length2; i++) {\n array[customCursor + i] = tmp[i];\n }\n }\n }\n return {\n mergeRuns: mergeRuns,\n forceMergeRuns: forceMergeRuns,\n pushRun: pushRun\n };\n}\nexport default function sort(array, compare, lo, hi) {\n if (!lo) {\n lo = 0;\n }\n if (!hi) {\n hi = array.length;\n }\n var remaining = hi - lo;\n if (remaining < 2) {\n return;\n }\n var runLength = 0;\n if (remaining < DEFAULT_MIN_MERGE) {\n runLength = makeAscendingRun(array, lo, hi, compare);\n binaryInsertionSort(array, lo, hi, lo + runLength, compare);\n return;\n }\n var ts = TimSort(array, compare);\n var minRun = minRunLength(remaining);\n do {\n runLength = makeAscendingRun(array, lo, hi, compare);\n if (runLength < minRun) {\n var force = remaining;\n if (force > minRun) {\n force = minRun;\n }\n binaryInsertionSort(array, lo, lo + force, lo + runLength, compare);\n runLength = force;\n }\n ts.pushRun(lo, runLength);\n ts.mergeRuns();\n remaining -= runLength;\n lo += runLength;\n } while (remaining !== 0);\n ts.forceMergeRuns();\n}\n","export var REDARAW_BIT = 1;\nexport var STYLE_CHANGED_BIT = 2;\nexport var SHAPE_CHANGED_BIT = 4;\n","import * as util from './core/util';\nimport env from './core/env';\nimport timsort from './core/timsort';\nimport { REDARAW_BIT } from './graphic/constants';\nvar invalidZErrorLogged = false;\nfunction logInvalidZError() {\n if (invalidZErrorLogged) {\n return;\n }\n invalidZErrorLogged = true;\n console.warn('z / z2 / zlevel of displayable is invalid, which may cause unexpected errors');\n}\nfunction shapeCompareFunc(a, b) {\n if (a.zlevel === b.zlevel) {\n if (a.z === b.z) {\n return a.z2 - b.z2;\n }\n return a.z - b.z;\n }\n return a.zlevel - b.zlevel;\n}\nvar Storage = (function () {\n function Storage() {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n this.displayableSortFunc = shapeCompareFunc;\n }\n Storage.prototype.traverse = function (cb, context) {\n for (var i = 0; i < this._roots.length; i++) {\n this._roots[i].traverse(cb, context);\n }\n };\n Storage.prototype.getDisplayList = function (update, includeIgnore) {\n includeIgnore = includeIgnore || false;\n var displayList = this._displayList;\n if (update || !displayList.length) {\n this.updateDisplayList(includeIgnore);\n }\n return displayList;\n };\n Storage.prototype.updateDisplayList = function (includeIgnore) {\n this._displayListLen = 0;\n var roots = this._roots;\n var displayList = this._displayList;\n for (var i = 0, len = roots.length; i < len; i++) {\n this._updateAndAddDisplayable(roots[i], null, includeIgnore);\n }\n displayList.length = this._displayListLen;\n env.canvasSupported && timsort(displayList, shapeCompareFunc);\n };\n Storage.prototype._updateAndAddDisplayable = function (el, clipPaths, includeIgnore) {\n if (el.ignore && !includeIgnore) {\n return;\n }\n el.beforeUpdate();\n el.update();\n el.afterUpdate();\n var userSetClipPath = el.getClipPath();\n if (el.ignoreClip) {\n clipPaths = null;\n }\n else if (userSetClipPath) {\n if (clipPaths) {\n clipPaths = clipPaths.slice();\n }\n else {\n clipPaths = [];\n }\n var currentClipPath = userSetClipPath;\n var parentClipPath = el;\n while (currentClipPath) {\n currentClipPath.parent = parentClipPath;\n currentClipPath.updateTransform();\n clipPaths.push(currentClipPath);\n parentClipPath = currentClipPath;\n currentClipPath = currentClipPath.getClipPath();\n }\n }\n if (el.childrenRef) {\n var children = el.childrenRef();\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (el.__dirty) {\n child.__dirty |= REDARAW_BIT;\n }\n this._updateAndAddDisplayable(child, clipPaths, includeIgnore);\n }\n el.__dirty = 0;\n }\n else {\n var disp = el;\n if (clipPaths && clipPaths.length) {\n disp.__clipPaths = clipPaths;\n }\n else if (disp.__clipPaths && disp.__clipPaths.length > 0) {\n disp.__clipPaths = [];\n }\n if (isNaN(disp.z)) {\n logInvalidZError();\n disp.z = 0;\n }\n if (isNaN(disp.z2)) {\n logInvalidZError();\n disp.z2 = 0;\n }\n if (isNaN(disp.zlevel)) {\n logInvalidZError();\n disp.zlevel = 0;\n }\n this._displayList[this._displayListLen++] = disp;\n }\n var decalEl = el.getDecalElement && el.getDecalElement();\n if (decalEl) {\n this._updateAndAddDisplayable(decalEl, clipPaths, includeIgnore);\n }\n var textGuide = el.getTextGuideLine();\n if (textGuide) {\n this._updateAndAddDisplayable(textGuide, clipPaths, includeIgnore);\n }\n var textEl = el.getTextContent();\n if (textEl) {\n this._updateAndAddDisplayable(textEl, clipPaths, includeIgnore);\n }\n };\n Storage.prototype.addRoot = function (el) {\n if (el.__zr && el.__zr.storage === this) {\n return;\n }\n this._roots.push(el);\n };\n Storage.prototype.delRoot = function (el) {\n if (el instanceof Array) {\n for (var i = 0, l = el.length; i < l; i++) {\n this.delRoot(el[i]);\n }\n return;\n }\n var idx = util.indexOf(this._roots, el);\n if (idx >= 0) {\n this._roots.splice(idx, 1);\n }\n };\n Storage.prototype.delAllRoots = function () {\n this._roots = [];\n this._displayList = [];\n this._displayListLen = 0;\n return;\n };\n Storage.prototype.getRoots = function () {\n return this._roots;\n };\n Storage.prototype.dispose = function () {\n this._displayList = null;\n this._roots = null;\n };\n return Storage;\n}());\nexport default Storage;\n","var requestAnimationFrame;\nrequestAnimationFrame = (typeof window !== 'undefined'\n && ((window.requestAnimationFrame && window.requestAnimationFrame.bind(window))\n || (window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window))\n || window.mozRequestAnimationFrame\n || window.webkitRequestAnimationFrame)) || function (func) {\n return setTimeout(func, 16);\n};\nexport default requestAnimationFrame;\n","var easing = {\n linear: function (k) {\n return k;\n },\n quadraticIn: function (k) {\n return k * k;\n },\n quadraticOut: function (k) {\n return k * (2 - k);\n },\n quadraticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k;\n }\n return -0.5 * (--k * (k - 2) - 1);\n },\n cubicIn: function (k) {\n return k * k * k;\n },\n cubicOut: function (k) {\n return --k * k * k + 1;\n },\n cubicInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k + 2);\n },\n quarticIn: function (k) {\n return k * k * k * k;\n },\n quarticOut: function (k) {\n return 1 - (--k * k * k * k);\n },\n quarticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k;\n }\n return -0.5 * ((k -= 2) * k * k * k - 2);\n },\n quinticIn: function (k) {\n return k * k * k * k * k;\n },\n quinticOut: function (k) {\n return --k * k * k * k * k + 1;\n },\n quinticInOut: function (k) {\n if ((k *= 2) < 1) {\n return 0.5 * k * k * k * k * k;\n }\n return 0.5 * ((k -= 2) * k * k * k * k + 2);\n },\n sinusoidalIn: function (k) {\n return 1 - Math.cos(k * Math.PI / 2);\n },\n sinusoidalOut: function (k) {\n return Math.sin(k * Math.PI / 2);\n },\n sinusoidalInOut: function (k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n },\n exponentialIn: function (k) {\n return k === 0 ? 0 : Math.pow(1024, k - 1);\n },\n exponentialOut: function (k) {\n return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);\n },\n exponentialInOut: function (k) {\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if ((k *= 2) < 1) {\n return 0.5 * Math.pow(1024, k - 1);\n }\n return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);\n },\n circularIn: function (k) {\n return 1 - Math.sqrt(1 - k * k);\n },\n circularOut: function (k) {\n return Math.sqrt(1 - (--k * k));\n },\n circularInOut: function (k) {\n if ((k *= 2) < 1) {\n return -0.5 * (Math.sqrt(1 - k * k) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);\n },\n elasticIn: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return -(a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n },\n elasticOut: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n return (a * Math.pow(2, -10 * k)\n * Math.sin((k - s) * (2 * Math.PI) / p) + 1);\n },\n elasticInOut: function (k) {\n var s;\n var a = 0.1;\n var p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / (2 * Math.PI);\n }\n if ((k *= 2) < 1) {\n return -0.5 * (a * Math.pow(2, 10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p));\n }\n return a * Math.pow(2, -10 * (k -= 1))\n * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;\n },\n backIn: function (k) {\n var s = 1.70158;\n return k * k * ((s + 1) * k - s);\n },\n backOut: function (k) {\n var s = 1.70158;\n return --k * k * ((s + 1) * k + s) + 1;\n },\n backInOut: function (k) {\n var s = 1.70158 * 1.525;\n if ((k *= 2) < 1) {\n return 0.5 * (k * k * ((s + 1) * k - s));\n }\n return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);\n },\n bounceIn: function (k) {\n return 1 - easing.bounceOut(1 - k);\n },\n bounceOut: function (k) {\n if (k < (1 / 2.75)) {\n return 7.5625 * k * k;\n }\n else if (k < (2 / 2.75)) {\n return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;\n }\n else if (k < (2.5 / 2.75)) {\n return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;\n }\n else {\n return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;\n }\n },\n bounceInOut: function (k) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n }\n};\nexport default easing;\n","import easingFuncs from './easing';\nvar Clip = (function () {\n function Clip(opts) {\n this._initialized = false;\n this._startTime = 0;\n this._pausedTime = 0;\n this._paused = false;\n this._life = opts.life || 1000;\n this._delay = opts.delay || 0;\n this.loop = opts.loop == null ? false : opts.loop;\n this.gap = opts.gap || 0;\n this.easing = opts.easing || 'linear';\n this.onframe = opts.onframe;\n this.ondestroy = opts.ondestroy;\n this.onrestart = opts.onrestart;\n }\n Clip.prototype.step = function (globalTime, deltaTime) {\n if (!this._initialized) {\n this._startTime = globalTime + this._delay;\n this._initialized = true;\n }\n if (this._paused) {\n this._pausedTime += deltaTime;\n return;\n }\n var percent = (globalTime - this._startTime - this._pausedTime) / this._life;\n if (percent < 0) {\n percent = 0;\n }\n percent = Math.min(percent, 1);\n var easing = this.easing;\n var easingFunc = typeof easing === 'string'\n ? easingFuncs[easing] : easing;\n var schedule = typeof easingFunc === 'function'\n ? easingFunc(percent)\n : percent;\n this.onframe && this.onframe(schedule);\n if (percent === 1) {\n if (this.loop) {\n this._restart(globalTime);\n this.onrestart && this.onrestart();\n }\n else {\n return true;\n }\n }\n return false;\n };\n Clip.prototype._restart = function (globalTime) {\n var remainder = (globalTime - this._startTime - this._pausedTime) % this._life;\n this._startTime = globalTime - remainder + this.gap;\n this._pausedTime = 0;\n };\n Clip.prototype.pause = function () {\n this._paused = true;\n };\n Clip.prototype.resume = function () {\n this._paused = false;\n };\n return Clip;\n}());\nexport default Clip;\n","var Entry = (function () {\n function Entry(val) {\n this.value = val;\n }\n return Entry;\n}());\nexport { Entry };\nvar LinkedList = (function () {\n function LinkedList() {\n this._len = 0;\n }\n LinkedList.prototype.insert = function (val) {\n var entry = new Entry(val);\n this.insertEntry(entry);\n return entry;\n };\n LinkedList.prototype.insertEntry = function (entry) {\n if (!this.head) {\n this.head = this.tail = entry;\n }\n else {\n this.tail.next = entry;\n entry.prev = this.tail;\n entry.next = null;\n this.tail = entry;\n }\n this._len++;\n };\n LinkedList.prototype.remove = function (entry) {\n var prev = entry.prev;\n var next = entry.next;\n if (prev) {\n prev.next = next;\n }\n else {\n this.head = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n this.tail = prev;\n }\n entry.next = entry.prev = null;\n this._len--;\n };\n LinkedList.prototype.len = function () {\n return this._len;\n };\n LinkedList.prototype.clear = function () {\n this.head = this.tail = null;\n this._len = 0;\n };\n return LinkedList;\n}());\nexport { LinkedList };\nvar LRU = (function () {\n function LRU(maxSize) {\n this._list = new LinkedList();\n this._maxSize = 10;\n this._map = {};\n this._maxSize = maxSize;\n }\n LRU.prototype.put = function (key, value) {\n var list = this._list;\n var map = this._map;\n var removed = null;\n if (map[key] == null) {\n var len = list.len();\n var entry = this._lastRemovedEntry;\n if (len >= this._maxSize && len > 0) {\n var leastUsedEntry = list.head;\n list.remove(leastUsedEntry);\n delete map[leastUsedEntry.key];\n removed = leastUsedEntry.value;\n this._lastRemovedEntry = leastUsedEntry;\n }\n if (entry) {\n entry.value = value;\n }\n else {\n entry = new Entry(value);\n }\n entry.key = key;\n list.insertEntry(entry);\n map[key] = entry;\n }\n return removed;\n };\n LRU.prototype.get = function (key) {\n var entry = this._map[key];\n var list = this._list;\n if (entry != null) {\n if (entry !== list.tail) {\n list.remove(entry);\n list.insertEntry(entry);\n }\n return entry.value;\n }\n };\n LRU.prototype.clear = function () {\n this._list.clear();\n this._map = {};\n };\n LRU.prototype.len = function () {\n return this._list.len();\n };\n return LRU;\n}());\nexport default LRU;\n","import LRU from '../core/LRU';\nvar kCSSColorTable = {\n 'transparent': [0, 0, 0, 0], 'aliceblue': [240, 248, 255, 1],\n 'antiquewhite': [250, 235, 215, 1], 'aqua': [0, 255, 255, 1],\n 'aquamarine': [127, 255, 212, 1], 'azure': [240, 255, 255, 1],\n 'beige': [245, 245, 220, 1], 'bisque': [255, 228, 196, 1],\n 'black': [0, 0, 0, 1], 'blanchedalmond': [255, 235, 205, 1],\n 'blue': [0, 0, 255, 1], 'blueviolet': [138, 43, 226, 1],\n 'brown': [165, 42, 42, 1], 'burlywood': [222, 184, 135, 1],\n 'cadetblue': [95, 158, 160, 1], 'chartreuse': [127, 255, 0, 1],\n 'chocolate': [210, 105, 30, 1], 'coral': [255, 127, 80, 1],\n 'cornflowerblue': [100, 149, 237, 1], 'cornsilk': [255, 248, 220, 1],\n 'crimson': [220, 20, 60, 1], 'cyan': [0, 255, 255, 1],\n 'darkblue': [0, 0, 139, 1], 'darkcyan': [0, 139, 139, 1],\n 'darkgoldenrod': [184, 134, 11, 1], 'darkgray': [169, 169, 169, 1],\n 'darkgreen': [0, 100, 0, 1], 'darkgrey': [169, 169, 169, 1],\n 'darkkhaki': [189, 183, 107, 1], 'darkmagenta': [139, 0, 139, 1],\n 'darkolivegreen': [85, 107, 47, 1], 'darkorange': [255, 140, 0, 1],\n 'darkorchid': [153, 50, 204, 1], 'darkred': [139, 0, 0, 1],\n 'darksalmon': [233, 150, 122, 1], 'darkseagreen': [143, 188, 143, 1],\n 'darkslateblue': [72, 61, 139, 1], 'darkslategray': [47, 79, 79, 1],\n 'darkslategrey': [47, 79, 79, 1], 'darkturquoise': [0, 206, 209, 1],\n 'darkviolet': [148, 0, 211, 1], 'deeppink': [255, 20, 147, 1],\n 'deepskyblue': [0, 191, 255, 1], 'dimgray': [105, 105, 105, 1],\n 'dimgrey': [105, 105, 105, 1], 'dodgerblue': [30, 144, 255, 1],\n 'firebrick': [178, 34, 34, 1], 'floralwhite': [255, 250, 240, 1],\n 'forestgreen': [34, 139, 34, 1], 'fuchsia': [255, 0, 255, 1],\n 'gainsboro': [220, 220, 220, 1], 'ghostwhite': [248, 248, 255, 1],\n 'gold': [255, 215, 0, 1], 'goldenrod': [218, 165, 32, 1],\n 'gray': [128, 128, 128, 1], 'green': [0, 128, 0, 1],\n 'greenyellow': [173, 255, 47, 1], 'grey': [128, 128, 128, 1],\n 'honeydew': [240, 255, 240, 1], 'hotpink': [255, 105, 180, 1],\n 'indianred': [205, 92, 92, 1], 'indigo': [75, 0, 130, 1],\n 'ivory': [255, 255, 240, 1], 'khaki': [240, 230, 140, 1],\n 'lavender': [230, 230, 250, 1], 'lavenderblush': [255, 240, 245, 1],\n 'lawngreen': [124, 252, 0, 1], 'lemonchiffon': [255, 250, 205, 1],\n 'lightblue': [173, 216, 230, 1], 'lightcoral': [240, 128, 128, 1],\n 'lightcyan': [224, 255, 255, 1], 'lightgoldenrodyellow': [250, 250, 210, 1],\n 'lightgray': [211, 211, 211, 1], 'lightgreen': [144, 238, 144, 1],\n 'lightgrey': [211, 211, 211, 1], 'lightpink': [255, 182, 193, 1],\n 'lightsalmon': [255, 160, 122, 1], 'lightseagreen': [32, 178, 170, 1],\n 'lightskyblue': [135, 206, 250, 1], 'lightslategray': [119, 136, 153, 1],\n 'lightslategrey': [119, 136, 153, 1], 'lightsteelblue': [176, 196, 222, 1],\n 'lightyellow': [255, 255, 224, 1], 'lime': [0, 255, 0, 1],\n 'limegreen': [50, 205, 50, 1], 'linen': [250, 240, 230, 1],\n 'magenta': [255, 0, 255, 1], 'maroon': [128, 0, 0, 1],\n 'mediumaquamarine': [102, 205, 170, 1], 'mediumblue': [0, 0, 205, 1],\n 'mediumorchid': [186, 85, 211, 1], 'mediumpurple': [147, 112, 219, 1],\n 'mediumseagreen': [60, 179, 113, 1], 'mediumslateblue': [123, 104, 238, 1],\n 'mediumspringgreen': [0, 250, 154, 1], 'mediumturquoise': [72, 209, 204, 1],\n 'mediumvioletred': [199, 21, 133, 1], 'midnightblue': [25, 25, 112, 1],\n 'mintcream': [245, 255, 250, 1], 'mistyrose': [255, 228, 225, 1],\n 'moccasin': [255, 228, 181, 1], 'navajowhite': [255, 222, 173, 1],\n 'navy': [0, 0, 128, 1], 'oldlace': [253, 245, 230, 1],\n 'olive': [128, 128, 0, 1], 'olivedrab': [107, 142, 35, 1],\n 'orange': [255, 165, 0, 1], 'orangered': [255, 69, 0, 1],\n 'orchid': [218, 112, 214, 1], 'palegoldenrod': [238, 232, 170, 1],\n 'palegreen': [152, 251, 152, 1], 'paleturquoise': [175, 238, 238, 1],\n 'palevioletred': [219, 112, 147, 1], 'papayawhip': [255, 239, 213, 1],\n 'peachpuff': [255, 218, 185, 1], 'peru': [205, 133, 63, 1],\n 'pink': [255, 192, 203, 1], 'plum': [221, 160, 221, 1],\n 'powderblue': [176, 224, 230, 1], 'purple': [128, 0, 128, 1],\n 'red': [255, 0, 0, 1], 'rosybrown': [188, 143, 143, 1],\n 'royalblue': [65, 105, 225, 1], 'saddlebrown': [139, 69, 19, 1],\n 'salmon': [250, 128, 114, 1], 'sandybrown': [244, 164, 96, 1],\n 'seagreen': [46, 139, 87, 1], 'seashell': [255, 245, 238, 1],\n 'sienna': [160, 82, 45, 1], 'silver': [192, 192, 192, 1],\n 'skyblue': [135, 206, 235, 1], 'slateblue': [106, 90, 205, 1],\n 'slategray': [112, 128, 144, 1], 'slategrey': [112, 128, 144, 1],\n 'snow': [255, 250, 250, 1], 'springgreen': [0, 255, 127, 1],\n 'steelblue': [70, 130, 180, 1], 'tan': [210, 180, 140, 1],\n 'teal': [0, 128, 128, 1], 'thistle': [216, 191, 216, 1],\n 'tomato': [255, 99, 71, 1], 'turquoise': [64, 224, 208, 1],\n 'violet': [238, 130, 238, 1], 'wheat': [245, 222, 179, 1],\n 'white': [255, 255, 255, 1], 'whitesmoke': [245, 245, 245, 1],\n 'yellow': [255, 255, 0, 1], 'yellowgreen': [154, 205, 50, 1]\n};\nfunction clampCssByte(i) {\n i = Math.round(i);\n return i < 0 ? 0 : i > 255 ? 255 : i;\n}\nfunction clampCssAngle(i) {\n i = Math.round(i);\n return i < 0 ? 0 : i > 360 ? 360 : i;\n}\nfunction clampCssFloat(f) {\n return f < 0 ? 0 : f > 1 ? 1 : f;\n}\nfunction parseCssInt(val) {\n var str = val;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssByte(parseFloat(str) / 100 * 255);\n }\n return clampCssByte(parseInt(str, 10));\n}\nfunction parseCssFloat(val) {\n var str = val;\n if (str.length && str.charAt(str.length - 1) === '%') {\n return clampCssFloat(parseFloat(str) / 100);\n }\n return clampCssFloat(parseFloat(str));\n}\nfunction cssHueToRgb(m1, m2, h) {\n if (h < 0) {\n h += 1;\n }\n else if (h > 1) {\n h -= 1;\n }\n if (h * 6 < 1) {\n return m1 + (m2 - m1) * h * 6;\n }\n if (h * 2 < 1) {\n return m2;\n }\n if (h * 3 < 2) {\n return m1 + (m2 - m1) * (2 / 3 - h) * 6;\n }\n return m1;\n}\nfunction lerpNumber(a, b, p) {\n return a + (b - a) * p;\n}\nfunction setRgba(out, r, g, b, a) {\n out[0] = r;\n out[1] = g;\n out[2] = b;\n out[3] = a;\n return out;\n}\nfunction copyRgba(out, a) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n return out;\n}\nvar colorCache = new LRU(20);\nvar lastRemovedArr = null;\nfunction putToCache(colorStr, rgbaArr) {\n if (lastRemovedArr) {\n copyRgba(lastRemovedArr, rgbaArr);\n }\n lastRemovedArr = colorCache.put(colorStr, lastRemovedArr || (rgbaArr.slice()));\n}\nexport function parse(colorStr, rgbaArr) {\n if (!colorStr) {\n return;\n }\n rgbaArr = rgbaArr || [];\n var cached = colorCache.get(colorStr);\n if (cached) {\n return copyRgba(rgbaArr, cached);\n }\n colorStr = colorStr + '';\n var str = colorStr.replace(/ /g, '').toLowerCase();\n if (str in kCSSColorTable) {\n copyRgba(rgbaArr, kCSSColorTable[str]);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n var strLen = str.length;\n if (str.charAt(0) === '#') {\n if (strLen === 4 || strLen === 5) {\n var iv = parseInt(str.slice(1, 4), 16);\n if (!(iv >= 0 && iv <= 0xfff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8), (iv & 0xf0) | ((iv & 0xf0) >> 4), (iv & 0xf) | ((iv & 0xf) << 4), strLen === 5 ? parseInt(str.slice(4), 16) / 0xf : 1);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n else if (strLen === 7 || strLen === 9) {\n var iv = parseInt(str.slice(1, 7), 16);\n if (!(iv >= 0 && iv <= 0xffffff)) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, (iv & 0xff0000) >> 16, (iv & 0xff00) >> 8, iv & 0xff, strLen === 9 ? parseInt(str.slice(7), 16) / 0xff : 1);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n }\n return;\n }\n var op = str.indexOf('(');\n var ep = str.indexOf(')');\n if (op !== -1 && ep + 1 === strLen) {\n var fname = str.substr(0, op);\n var params = str.substr(op + 1, ep - (op + 1)).split(',');\n var alpha = 1;\n switch (fname) {\n case 'rgba':\n if (params.length !== 4) {\n return params.length === 3\n ? setRgba(rgbaArr, +params[0], +params[1], +params[2], 1)\n : setRgba(rgbaArr, 0, 0, 0, 1);\n }\n alpha = parseCssFloat(params.pop());\n case 'rgb':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n setRgba(rgbaArr, parseCssInt(params[0]), parseCssInt(params[1]), parseCssInt(params[2]), alpha);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsla':\n if (params.length !== 4) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n params[3] = parseCssFloat(params[3]);\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n case 'hsl':\n if (params.length !== 3) {\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n }\n hsla2rgba(params, rgbaArr);\n putToCache(colorStr, rgbaArr);\n return rgbaArr;\n default:\n return;\n }\n }\n setRgba(rgbaArr, 0, 0, 0, 1);\n return;\n}\nfunction hsla2rgba(hsla, rgba) {\n var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360;\n var s = parseCssFloat(hsla[1]);\n var l = parseCssFloat(hsla[2]);\n var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;\n var m1 = l * 2 - m2;\n rgba = rgba || [];\n setRgba(rgba, clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255), clampCssByte(cssHueToRgb(m1, m2, h) * 255), clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255), 1);\n if (hsla.length === 4) {\n rgba[3] = hsla[3];\n }\n return rgba;\n}\nfunction rgba2hsla(rgba) {\n if (!rgba) {\n return;\n }\n var R = rgba[0] / 255;\n var G = rgba[1] / 255;\n var B = rgba[2] / 255;\n var vMin = Math.min(R, G, B);\n var vMax = Math.max(R, G, B);\n var delta = vMax - vMin;\n var L = (vMax + vMin) / 2;\n var H;\n var S;\n if (delta === 0) {\n H = 0;\n S = 0;\n }\n else {\n if (L < 0.5) {\n S = delta / (vMax + vMin);\n }\n else {\n S = delta / (2 - vMax - vMin);\n }\n var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;\n var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;\n var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;\n if (R === vMax) {\n H = deltaB - deltaG;\n }\n else if (G === vMax) {\n H = (1 / 3) + deltaR - deltaB;\n }\n else if (B === vMax) {\n H = (2 / 3) + deltaG - deltaR;\n }\n if (H < 0) {\n H += 1;\n }\n if (H > 1) {\n H -= 1;\n }\n }\n var hsla = [H * 360, S, L];\n if (rgba[3] != null) {\n hsla.push(rgba[3]);\n }\n return hsla;\n}\nexport function lift(color, level) {\n var colorArr = parse(color);\n if (colorArr) {\n for (var i = 0; i < 3; i++) {\n if (level < 0) {\n colorArr[i] = colorArr[i] * (1 - level) | 0;\n }\n else {\n colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;\n }\n if (colorArr[i] > 255) {\n colorArr[i] = 255;\n }\n else if (colorArr[i] < 0) {\n colorArr[i] = 0;\n }\n }\n return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');\n }\n}\nexport function toHex(color) {\n var colorArr = parse(color);\n if (colorArr) {\n return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);\n }\n}\nexport function fastLerp(normalizedValue, colors, out) {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)) {\n return;\n }\n out = out || [];\n var value = normalizedValue * (colors.length - 1);\n var leftIndex = Math.floor(value);\n var rightIndex = Math.ceil(value);\n var leftColor = colors[leftIndex];\n var rightColor = colors[rightIndex];\n var dv = value - leftIndex;\n out[0] = clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv));\n out[1] = clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv));\n out[2] = clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv));\n out[3] = clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv));\n return out;\n}\nexport var fastMapToColor = fastLerp;\nexport function lerp(normalizedValue, colors, fullOutput) {\n if (!(colors && colors.length)\n || !(normalizedValue >= 0 && normalizedValue <= 1)) {\n return;\n }\n var value = normalizedValue * (colors.length - 1);\n var leftIndex = Math.floor(value);\n var rightIndex = Math.ceil(value);\n var leftColor = parse(colors[leftIndex]);\n var rightColor = parse(colors[rightIndex]);\n var dv = value - leftIndex;\n var color = stringify([\n clampCssByte(lerpNumber(leftColor[0], rightColor[0], dv)),\n clampCssByte(lerpNumber(leftColor[1], rightColor[1], dv)),\n clampCssByte(lerpNumber(leftColor[2], rightColor[2], dv)),\n clampCssFloat(lerpNumber(leftColor[3], rightColor[3], dv))\n ], 'rgba');\n return fullOutput\n ? {\n color: color,\n leftIndex: leftIndex,\n rightIndex: rightIndex,\n value: value\n }\n : color;\n}\nexport var mapToColor = lerp;\nexport function modifyHSL(color, h, s, l) {\n var colorArr = parse(color);\n if (color) {\n colorArr = rgba2hsla(colorArr);\n h != null && (colorArr[0] = clampCssAngle(h));\n s != null && (colorArr[1] = parseCssFloat(s));\n l != null && (colorArr[2] = parseCssFloat(l));\n return stringify(hsla2rgba(colorArr), 'rgba');\n }\n}\nexport function modifyAlpha(color, alpha) {\n var colorArr = parse(color);\n if (colorArr && alpha != null) {\n colorArr[3] = clampCssFloat(alpha);\n return stringify(colorArr, 'rgba');\n }\n}\nexport function stringify(arrColor, type) {\n if (!arrColor || !arrColor.length) {\n return;\n }\n var colorStr = arrColor[0] + ',' + arrColor[1] + ',' + arrColor[2];\n if (type === 'rgba' || type === 'hsva' || type === 'hsla') {\n colorStr += ',' + arrColor[3];\n }\n return type + '(' + colorStr + ')';\n}\nexport function lum(color, backgroundLum) {\n var arr = parse(color);\n return arr\n ? (0.299 * arr[0] + 0.587 * arr[1] + 0.114 * arr[2]) * arr[3] / 255\n + (1 - arr[3]) * backgroundLum\n : 0;\n}\nexport function random() {\n var r = Math.round(Math.random() * 255);\n var g = Math.round(Math.random() * 255);\n var b = Math.round(Math.random() * 255);\n return 'rgb(' + r + ',' + g + ',' + b + ')';\n}\n","import Clip from './Clip';\nimport * as color from '../tool/color';\nimport { isArrayLike, keys, logError } from '../core/util';\nvar arraySlice = Array.prototype.slice;\nexport function interpolateNumber(p0, p1, percent) {\n return (p1 - p0) * percent + p0;\n}\nexport function step(p0, p1, percent) {\n return percent > 0.5 ? p1 : p0;\n}\nexport function interpolate1DArray(out, p0, p1, percent) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = interpolateNumber(p0[i], p1[i], percent);\n }\n}\nexport function interpolate2DArray(out, p0, p1, percent) {\n var len = p0.length;\n var len2 = len && p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = interpolateNumber(p0[i][j], p1[i][j], percent);\n }\n }\n}\nfunction add1DArray(out, p0, p1, sign) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = p0[i] + p1[i] * sign;\n }\n return out;\n}\nfunction add2DArray(out, p0, p1, sign) {\n var len = p0.length;\n var len2 = len && p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[i] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = p0[i][j] + p1[i][j] * sign;\n }\n }\n return out;\n}\nfunction fillArray(val0, val1, arrDim) {\n var arr0 = val0;\n var arr1 = val1;\n if (!arr0.push || !arr1.push) {\n return;\n }\n var arr0Len = arr0.length;\n var arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n var isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n arr0.length = arr1Len;\n }\n else {\n for (var i = arr0Len; i < arr1Len; i++) {\n arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n }\n }\n }\n var len2 = arr0[0] && arr0[0].length;\n for (var i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i])) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (var j = 0; j < len2; j++) {\n if (isNaN(arr0[i][j])) {\n arr0[i][j] = arr1[i][j];\n }\n }\n }\n }\n}\nfunction is1DArraySame(arr0, arr1) {\n var len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n for (var i = 0; i < len; i++) {\n if (arr0[i] !== arr1[i]) {\n return false;\n }\n }\n return true;\n}\nfunction is2DArraySame(arr0, arr1) {\n var len = arr0.length;\n if (len !== arr1.length) {\n return false;\n }\n var len2 = arr0[0].length;\n for (var i = 0; i < len; i++) {\n for (var j = 0; j < len2; j++) {\n if (arr0[i][j] !== arr1[i][j]) {\n return false;\n }\n }\n }\n return true;\n}\nfunction catmullRomInterpolate(p0, p1, p2, p3, t, t2, t3) {\n var v0 = (p2 - p0) * 0.5;\n var v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\nfunction catmullRomInterpolate1DArray(out, p0, p1, p2, p3, t, t2, t3) {\n var len = p0.length;\n for (var i = 0; i < len; i++) {\n out[i] = catmullRomInterpolate(p0[i], p1[i], p2[i], p3[i], t, t2, t3);\n }\n}\nfunction catmullRomInterpolate2DArray(out, p0, p1, p2, p3, t, t2, t3) {\n var len = p0.length;\n var len2 = p0[0].length;\n for (var i = 0; i < len; i++) {\n if (!out[i]) {\n out[1] = [];\n }\n for (var j = 0; j < len2; j++) {\n out[i][j] = catmullRomInterpolate(p0[i][j], p1[i][j], p2[i][j], p3[i][j], t, t2, t3);\n }\n }\n}\nexport function cloneValue(value) {\n if (isArrayLike(value)) {\n var len = value.length;\n if (isArrayLike(value[0])) {\n var ret = [];\n for (var i = 0; i < len; i++) {\n ret.push(arraySlice.call(value[i]));\n }\n return ret;\n }\n return arraySlice.call(value);\n }\n return value;\n}\nfunction rgba2String(rgba) {\n rgba[0] = Math.floor(rgba[0]);\n rgba[1] = Math.floor(rgba[1]);\n rgba[2] = Math.floor(rgba[2]);\n return 'rgba(' + rgba.join(',') + ')';\n}\nfunction guessArrayDim(value) {\n return isArrayLike(value && value[0]) ? 2 : 1;\n}\nvar tmpRgba = [0, 0, 0, 0];\nvar Track = (function () {\n function Track(propName) {\n this.keyframes = [];\n this.maxTime = 0;\n this.arrDim = 0;\n this.interpolable = true;\n this._needsSort = false;\n this._isAllValueEqual = true;\n this._lastFrame = 0;\n this._lastFramePercent = 0;\n this.propName = propName;\n }\n Track.prototype.isFinished = function () {\n return this._finished;\n };\n Track.prototype.setFinished = function () {\n this._finished = true;\n if (this._additiveTrack) {\n this._additiveTrack.setFinished();\n }\n };\n Track.prototype.needsAnimate = function () {\n return !this._isAllValueEqual && this.keyframes.length >= 2 && this.interpolable;\n };\n Track.prototype.getAdditiveTrack = function () {\n return this._additiveTrack;\n };\n Track.prototype.addKeyframe = function (time, value) {\n if (time >= this.maxTime) {\n this.maxTime = time;\n }\n else {\n this._needsSort = true;\n }\n var keyframes = this.keyframes;\n var len = keyframes.length;\n if (this.interpolable) {\n if (isArrayLike(value)) {\n var arrayDim = guessArrayDim(value);\n if (len > 0 && this.arrDim !== arrayDim) {\n this.interpolable = false;\n return;\n }\n if (arrayDim === 1 && typeof value[0] !== 'number'\n || arrayDim === 2 && typeof value[0][0] !== 'number') {\n this.interpolable = false;\n return;\n }\n if (len > 0) {\n var lastFrame = keyframes[len - 1];\n if (this._isAllValueEqual) {\n if (arrayDim === 1) {\n if (!is1DArraySame(value, lastFrame.value)) {\n this._isAllValueEqual = false;\n }\n }\n else {\n this._isAllValueEqual = false;\n }\n }\n }\n this.arrDim = arrayDim;\n }\n else {\n if (this.arrDim > 0) {\n this.interpolable = false;\n return;\n }\n if (typeof value === 'string') {\n var colorArray = color.parse(value);\n if (colorArray) {\n value = colorArray;\n this.isValueColor = true;\n }\n else {\n this.interpolable = false;\n }\n }\n else if (typeof value !== 'number' || isNaN(value)) {\n this.interpolable = false;\n return;\n }\n if (this._isAllValueEqual && len > 0) {\n var lastFrame = keyframes[len - 1];\n if (this.isValueColor && !is1DArraySame(lastFrame.value, value)) {\n this._isAllValueEqual = false;\n }\n else if (lastFrame.value !== value) {\n this._isAllValueEqual = false;\n }\n }\n }\n }\n var kf = {\n time: time,\n value: value,\n percent: 0\n };\n this.keyframes.push(kf);\n return kf;\n };\n Track.prototype.prepare = function (additiveTrack) {\n var kfs = this.keyframes;\n if (this._needsSort) {\n kfs.sort(function (a, b) {\n return a.time - b.time;\n });\n }\n var arrDim = this.arrDim;\n var kfsLen = kfs.length;\n var lastKf = kfs[kfsLen - 1];\n for (var i = 0; i < kfsLen; i++) {\n kfs[i].percent = kfs[i].time / this.maxTime;\n if (arrDim > 0 && i !== kfsLen - 1) {\n fillArray(kfs[i].value, lastKf.value, arrDim);\n }\n }\n if (additiveTrack\n && this.needsAnimate()\n && additiveTrack.needsAnimate()\n && arrDim === additiveTrack.arrDim\n && this.isValueColor === additiveTrack.isValueColor\n && !additiveTrack._finished) {\n this._additiveTrack = additiveTrack;\n var startValue = kfs[0].value;\n for (var i = 0; i < kfsLen; i++) {\n if (arrDim === 0) {\n if (this.isValueColor) {\n kfs[i].additiveValue\n = add1DArray([], kfs[i].value, startValue, -1);\n }\n else {\n kfs[i].additiveValue = kfs[i].value - startValue;\n }\n }\n else if (arrDim === 1) {\n kfs[i].additiveValue = add1DArray([], kfs[i].value, startValue, -1);\n }\n else if (arrDim === 2) {\n kfs[i].additiveValue = add2DArray([], kfs[i].value, startValue, -1);\n }\n }\n }\n };\n Track.prototype.step = function (target, percent) {\n if (this._finished) {\n return;\n }\n if (this._additiveTrack && this._additiveTrack._finished) {\n this._additiveTrack = null;\n }\n var isAdditive = this._additiveTrack != null;\n var valueKey = isAdditive ? 'additiveValue' : 'value';\n var keyframes = this.keyframes;\n var kfsNum = this.keyframes.length;\n var propName = this.propName;\n var arrDim = this.arrDim;\n var isValueColor = this.isValueColor;\n var frameIdx;\n if (percent < 0) {\n frameIdx = 0;\n }\n else if (percent < this._lastFramePercent) {\n var start = Math.min(this._lastFrame + 1, kfsNum - 1);\n for (frameIdx = start; frameIdx >= 0; frameIdx--) {\n if (keyframes[frameIdx].percent <= percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx, kfsNum - 2);\n }\n else {\n for (frameIdx = this._lastFrame; frameIdx < kfsNum; frameIdx++) {\n if (keyframes[frameIdx].percent > percent) {\n break;\n }\n }\n frameIdx = Math.min(frameIdx - 1, kfsNum - 2);\n }\n var nextFrame = keyframes[frameIdx + 1];\n var frame = keyframes[frameIdx];\n if (!(frame && nextFrame)) {\n return;\n }\n this._lastFrame = frameIdx;\n this._lastFramePercent = percent;\n var range = (nextFrame.percent - frame.percent);\n if (range === 0) {\n return;\n }\n var w = (percent - frame.percent) / range;\n var targetArr = isAdditive ? this._additiveValue\n : (isValueColor ? tmpRgba : target[propName]);\n if ((arrDim > 0 || isValueColor) && !targetArr) {\n targetArr = this._additiveValue = [];\n }\n if (this.useSpline) {\n var p1 = keyframes[frameIdx][valueKey];\n var p0 = keyframes[frameIdx === 0 ? frameIdx : frameIdx - 1][valueKey];\n var p2 = keyframes[frameIdx > kfsNum - 2 ? kfsNum - 1 : frameIdx + 1][valueKey];\n var p3 = keyframes[frameIdx > kfsNum - 3 ? kfsNum - 1 : frameIdx + 2][valueKey];\n if (arrDim > 0) {\n arrDim === 1\n ? catmullRomInterpolate1DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w)\n : catmullRomInterpolate2DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w);\n }\n else if (isValueColor) {\n catmullRomInterpolate1DArray(targetArr, p0, p1, p2, p3, w, w * w, w * w * w);\n if (!isAdditive) {\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n var value = void 0;\n if (!this.interpolable) {\n value = p2;\n }\n else {\n value = catmullRomInterpolate(p0, p1, p2, p3, w, w * w, w * w * w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n else {\n if (arrDim > 0) {\n arrDim === 1\n ? interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w)\n : interpolate2DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);\n }\n else if (isValueColor) {\n interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w);\n if (!isAdditive) {\n target[propName] = rgba2String(targetArr);\n }\n }\n else {\n var value = void 0;\n if (!this.interpolable) {\n value = step(frame[valueKey], nextFrame[valueKey], w);\n }\n else {\n value = interpolateNumber(frame[valueKey], nextFrame[valueKey], w);\n }\n if (isAdditive) {\n this._additiveValue = value;\n }\n else {\n target[propName] = value;\n }\n }\n }\n if (isAdditive) {\n this._addToTarget(target);\n }\n };\n Track.prototype._addToTarget = function (target) {\n var arrDim = this.arrDim;\n var propName = this.propName;\n var additiveValue = this._additiveValue;\n if (arrDim === 0) {\n if (this.isValueColor) {\n color.parse(target[propName], tmpRgba);\n add1DArray(tmpRgba, tmpRgba, additiveValue, 1);\n target[propName] = rgba2String(tmpRgba);\n }\n else {\n target[propName] = target[propName] + additiveValue;\n }\n }\n else if (arrDim === 1) {\n add1DArray(target[propName], target[propName], additiveValue, 1);\n }\n else if (arrDim === 2) {\n add2DArray(target[propName], target[propName], additiveValue, 1);\n }\n };\n return Track;\n}());\nvar Animator = (function () {\n function Animator(target, loop, additiveTo) {\n this._tracks = {};\n this._trackKeys = [];\n this._delay = 0;\n this._maxTime = 0;\n this._paused = false;\n this._started = 0;\n this._clip = null;\n this._target = target;\n this._loop = loop;\n if (loop && additiveTo) {\n logError('Can\\' use additive animation on looped animation.');\n return;\n }\n this._additiveAnimators = additiveTo;\n }\n Animator.prototype.getTarget = function () {\n return this._target;\n };\n Animator.prototype.changeTarget = function (target) {\n this._target = target;\n };\n Animator.prototype.when = function (time, props) {\n return this.whenWithKeys(time, props, keys(props));\n };\n Animator.prototype.whenWithKeys = function (time, props, propNames) {\n var tracks = this._tracks;\n for (var i = 0; i < propNames.length; i++) {\n var propName = propNames[i];\n var track = tracks[propName];\n if (!track) {\n track = tracks[propName] = new Track(propName);\n var initialValue = void 0;\n var additiveTrack = this._getAdditiveTrack(propName);\n if (additiveTrack) {\n var lastFinalKf = additiveTrack.keyframes[additiveTrack.keyframes.length - 1];\n initialValue = lastFinalKf && lastFinalKf.value;\n if (additiveTrack.isValueColor && initialValue) {\n initialValue = rgba2String(initialValue);\n }\n }\n else {\n initialValue = this._target[propName];\n }\n if (initialValue == null) {\n continue;\n }\n if (time !== 0) {\n track.addKeyframe(0, cloneValue(initialValue));\n }\n this._trackKeys.push(propName);\n }\n track.addKeyframe(time, cloneValue(props[propName]));\n }\n this._maxTime = Math.max(this._maxTime, time);\n return this;\n };\n Animator.prototype.pause = function () {\n this._clip.pause();\n this._paused = true;\n };\n Animator.prototype.resume = function () {\n this._clip.resume();\n this._paused = false;\n };\n Animator.prototype.isPaused = function () {\n return !!this._paused;\n };\n Animator.prototype._doneCallback = function () {\n this._setTracksFinished();\n this._clip = null;\n var doneList = this._doneList;\n if (doneList) {\n var len = doneList.length;\n for (var i = 0; i < len; i++) {\n doneList[i].call(this);\n }\n }\n };\n Animator.prototype._abortedCallback = function () {\n this._setTracksFinished();\n var animation = this.animation;\n var abortedList = this._abortedList;\n if (animation) {\n animation.removeClip(this._clip);\n }\n this._clip = null;\n if (abortedList) {\n for (var i = 0; i < abortedList.length; i++) {\n abortedList[i].call(this);\n }\n }\n };\n Animator.prototype._setTracksFinished = function () {\n var tracks = this._tracks;\n var tracksKeys = this._trackKeys;\n for (var i = 0; i < tracksKeys.length; i++) {\n tracks[tracksKeys[i]].setFinished();\n }\n };\n Animator.prototype._getAdditiveTrack = function (trackName) {\n var additiveTrack;\n var additiveAnimators = this._additiveAnimators;\n if (additiveAnimators) {\n for (var i = 0; i < additiveAnimators.length; i++) {\n var track = additiveAnimators[i].getTrack(trackName);\n if (track) {\n additiveTrack = track;\n }\n }\n }\n return additiveTrack;\n };\n Animator.prototype.start = function (easing, forceAnimate) {\n if (this._started > 0) {\n return;\n }\n this._started = 1;\n var self = this;\n var tracks = [];\n for (var i = 0; i < this._trackKeys.length; i++) {\n var propName = this._trackKeys[i];\n var track = this._tracks[propName];\n var additiveTrack = this._getAdditiveTrack(propName);\n var kfs = track.keyframes;\n track.prepare(additiveTrack);\n if (track.needsAnimate()) {\n tracks.push(track);\n }\n else if (!track.interpolable) {\n var lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n self._target[track.propName] = lastKf.value;\n }\n }\n }\n if (tracks.length || forceAnimate) {\n var clip = new Clip({\n life: this._maxTime,\n loop: this._loop,\n delay: this._delay,\n onframe: function (percent) {\n self._started = 2;\n var additiveAnimators = self._additiveAnimators;\n if (additiveAnimators) {\n var stillHasAdditiveAnimator = false;\n for (var i = 0; i < additiveAnimators.length; i++) {\n if (additiveAnimators[i]._clip) {\n stillHasAdditiveAnimator = true;\n break;\n }\n }\n if (!stillHasAdditiveAnimator) {\n self._additiveAnimators = null;\n }\n }\n for (var i = 0; i < tracks.length; i++) {\n tracks[i].step(self._target, percent);\n }\n var onframeList = self._onframeList;\n if (onframeList) {\n for (var i = 0; i < onframeList.length; i++) {\n onframeList[i](self._target, percent);\n }\n }\n },\n ondestroy: function () {\n self._doneCallback();\n }\n });\n this._clip = clip;\n if (this.animation) {\n this.animation.addClip(clip);\n }\n if (easing && easing !== 'spline') {\n clip.easing = easing;\n }\n }\n else {\n this._doneCallback();\n }\n return this;\n };\n Animator.prototype.stop = function (forwardToLast) {\n if (!this._clip) {\n return;\n }\n var clip = this._clip;\n if (forwardToLast) {\n clip.onframe(1);\n }\n this._abortedCallback();\n };\n Animator.prototype.delay = function (time) {\n this._delay = time;\n return this;\n };\n Animator.prototype.during = function (cb) {\n if (cb) {\n if (!this._onframeList) {\n this._onframeList = [];\n }\n this._onframeList.push(cb);\n }\n return this;\n };\n Animator.prototype.done = function (cb) {\n if (cb) {\n if (!this._doneList) {\n this._doneList = [];\n }\n this._doneList.push(cb);\n }\n return this;\n };\n Animator.prototype.aborted = function (cb) {\n if (cb) {\n if (!this._abortedList) {\n this._abortedList = [];\n }\n this._abortedList.push(cb);\n }\n return this;\n };\n Animator.prototype.getClip = function () {\n return this._clip;\n };\n Animator.prototype.getTrack = function (propName) {\n return this._tracks[propName];\n };\n Animator.prototype.stopTracks = function (propNames, forwardToLast) {\n if (!propNames.length || !this._clip) {\n return true;\n }\n var tracks = this._tracks;\n var tracksKeys = this._trackKeys;\n for (var i = 0; i < propNames.length; i++) {\n var track = tracks[propNames[i]];\n if (track) {\n if (forwardToLast) {\n track.step(this._target, 1);\n }\n else if (this._started === 1) {\n track.step(this._target, 0);\n }\n track.setFinished();\n }\n }\n var allAborted = true;\n for (var i = 0; i < tracksKeys.length; i++) {\n if (!tracks[tracksKeys[i]].isFinished()) {\n allAborted = false;\n break;\n }\n }\n if (allAborted) {\n this._abortedCallback();\n }\n return allAborted;\n };\n Animator.prototype.saveFinalToTarget = function (target, trackKeys) {\n if (!target) {\n return;\n }\n trackKeys = trackKeys || this._trackKeys;\n for (var i = 0; i < trackKeys.length; i++) {\n var propName = trackKeys[i];\n var track = this._tracks[propName];\n if (!track || track.isFinished()) {\n continue;\n }\n var kfs = track.keyframes;\n var lastKf = kfs[kfs.length - 1];\n if (lastKf) {\n var val = cloneValue(lastKf.value);\n if (track.isValueColor) {\n val = rgba2String(val);\n }\n target[propName] = val;\n }\n }\n };\n Animator.prototype.__changeFinalValue = function (finalProps, trackKeys) {\n trackKeys = trackKeys || keys(finalProps);\n for (var i = 0; i < trackKeys.length; i++) {\n var propName = trackKeys[i];\n var track = this._tracks[propName];\n if (!track) {\n continue;\n }\n var kfs = track.keyframes;\n if (kfs.length > 1) {\n var lastKf = kfs.pop();\n track.addKeyframe(lastKf.time, finalProps[propName]);\n track.prepare(track.getAdditiveTrack());\n }\n }\n };\n return Animator;\n}());\nexport default Animator;\n","import { __extends } from \"tslib\";\nimport Eventful from '../core/Eventful';\nimport requestAnimationFrame from './requestAnimationFrame';\nimport Animator from './Animator';\nvar Animation = (function (_super) {\n __extends(Animation, _super);\n function Animation(opts) {\n var _this = _super.call(this) || this;\n _this._running = false;\n _this._time = 0;\n _this._pausedTime = 0;\n _this._pauseStart = 0;\n _this._paused = false;\n opts = opts || {};\n _this.stage = opts.stage || {};\n _this.onframe = opts.onframe || function () { };\n return _this;\n }\n Animation.prototype.addClip = function (clip) {\n if (clip.animation) {\n this.removeClip(clip);\n }\n if (!this._clipsHead) {\n this._clipsHead = this._clipsTail = clip;\n }\n else {\n this._clipsTail.next = clip;\n clip.prev = this._clipsTail;\n clip.next = null;\n this._clipsTail = clip;\n }\n clip.animation = this;\n };\n Animation.prototype.addAnimator = function (animator) {\n animator.animation = this;\n var clip = animator.getClip();\n if (clip) {\n this.addClip(clip);\n }\n };\n Animation.prototype.removeClip = function (clip) {\n if (!clip.animation) {\n return;\n }\n var prev = clip.prev;\n var next = clip.next;\n if (prev) {\n prev.next = next;\n }\n else {\n this._clipsHead = next;\n }\n if (next) {\n next.prev = prev;\n }\n else {\n this._clipsTail = prev;\n }\n clip.next = clip.prev = clip.animation = null;\n };\n Animation.prototype.removeAnimator = function (animator) {\n var clip = animator.getClip();\n if (clip) {\n this.removeClip(clip);\n }\n animator.animation = null;\n };\n Animation.prototype.update = function (notTriggerFrameAndStageUpdate) {\n var time = new Date().getTime() - this._pausedTime;\n var delta = time - this._time;\n var clip = this._clipsHead;\n while (clip) {\n var nextClip = clip.next;\n var finished = clip.step(time, delta);\n if (finished) {\n clip.ondestroy && clip.ondestroy();\n this.removeClip(clip);\n clip = nextClip;\n }\n else {\n clip = nextClip;\n }\n }\n this._time = time;\n if (!notTriggerFrameAndStageUpdate) {\n this.onframe(delta);\n this.trigger('frame', delta);\n this.stage.update && this.stage.update();\n }\n };\n Animation.prototype._startLoop = function () {\n var self = this;\n this._running = true;\n function step() {\n if (self._running) {\n requestAnimationFrame(step);\n !self._paused && self.update();\n }\n }\n requestAnimationFrame(step);\n };\n Animation.prototype.start = function () {\n if (this._running) {\n return;\n }\n this._time = new Date().getTime();\n this._pausedTime = 0;\n this._startLoop();\n };\n Animation.prototype.stop = function () {\n this._running = false;\n };\n Animation.prototype.pause = function () {\n if (!this._paused) {\n this._pauseStart = new Date().getTime();\n this._paused = true;\n }\n };\n Animation.prototype.resume = function () {\n if (this._paused) {\n this._pausedTime += (new Date().getTime()) - this._pauseStart;\n this._paused = false;\n }\n };\n Animation.prototype.clear = function () {\n var clip = this._clipsHead;\n while (clip) {\n var nextClip = clip.next;\n clip.prev = clip.next = clip.animation = null;\n clip = nextClip;\n }\n this._clipsHead = this._clipsTail = null;\n };\n Animation.prototype.isFinished = function () {\n return this._clipsHead == null;\n };\n Animation.prototype.animate = function (target, options) {\n options = options || {};\n this.start();\n var animator = new Animator(target, options.loop);\n this.addAnimator(animator);\n return animator;\n };\n return Animation;\n}(Eventful));\nexport default Animation;\n","import { __extends } from \"tslib\";\nimport { addEventListener, removeEventListener, normalizeEvent, getNativeEvent } from '../core/event';\nimport * as zrUtil from '../core/util';\nimport Eventful from '../core/Eventful';\nimport env from '../core/env';\nvar TOUCH_CLICK_DELAY = 300;\nvar globalEventSupported = env.domSupported;\nvar localNativeListenerNames = (function () {\n var mouseHandlerNames = [\n 'click', 'dblclick', 'mousewheel', 'wheel', 'mouseout',\n 'mouseup', 'mousedown', 'mousemove', 'contextmenu'\n ];\n var touchHandlerNames = [\n 'touchstart', 'touchend', 'touchmove'\n ];\n var pointerEventNameMap = {\n pointerdown: 1, pointerup: 1, pointermove: 1, pointerout: 1\n };\n var pointerHandlerNames = zrUtil.map(mouseHandlerNames, function (name) {\n var nm = name.replace('mouse', 'pointer');\n return pointerEventNameMap.hasOwnProperty(nm) ? nm : name;\n });\n return {\n mouse: mouseHandlerNames,\n touch: touchHandlerNames,\n pointer: pointerHandlerNames\n };\n})();\nvar globalNativeListenerNames = {\n mouse: ['mousemove', 'mouseup'],\n pointer: ['pointermove', 'pointerup']\n};\nvar wheelEventSupported = false;\nfunction isPointerFromTouch(event) {\n var pointerType = event.pointerType;\n return pointerType === 'pen' || pointerType === 'touch';\n}\nfunction setTouchTimer(scope) {\n scope.touching = true;\n if (scope.touchTimer != null) {\n clearTimeout(scope.touchTimer);\n scope.touchTimer = null;\n }\n scope.touchTimer = setTimeout(function () {\n scope.touching = false;\n scope.touchTimer = null;\n }, 700);\n}\nfunction markTouch(event) {\n event && (event.zrByTouch = true);\n}\nfunction normalizeGlobalEvent(instance, event) {\n return normalizeEvent(instance.dom, new FakeGlobalEvent(instance, event), true);\n}\nfunction isLocalEl(instance, el) {\n var elTmp = el;\n var isLocal = false;\n while (elTmp && elTmp.nodeType !== 9\n && !(isLocal = elTmp.domBelongToZr\n || (elTmp !== el && elTmp === instance.painterRoot))) {\n elTmp = elTmp.parentNode;\n }\n return isLocal;\n}\nvar FakeGlobalEvent = (function () {\n function FakeGlobalEvent(instance, event) {\n this.stopPropagation = zrUtil.noop;\n this.stopImmediatePropagation = zrUtil.noop;\n this.preventDefault = zrUtil.noop;\n this.type = event.type;\n this.target = this.currentTarget = instance.dom;\n this.pointerType = event.pointerType;\n this.clientX = event.clientX;\n this.clientY = event.clientY;\n }\n return FakeGlobalEvent;\n}());\nvar localDOMHandlers = {\n mousedown: function (event) {\n event = normalizeEvent(this.dom, event);\n this.__mayPointerCapture = [event.zrX, event.zrY];\n this.trigger('mousedown', event);\n },\n mousemove: function (event) {\n event = normalizeEvent(this.dom, event);\n var downPoint = this.__mayPointerCapture;\n if (downPoint && (event.zrX !== downPoint[0] || event.zrY !== downPoint[1])) {\n this.__togglePointerCapture(true);\n }\n this.trigger('mousemove', event);\n },\n mouseup: function (event) {\n event = normalizeEvent(this.dom, event);\n this.__togglePointerCapture(false);\n this.trigger('mouseup', event);\n },\n mouseout: function (event) {\n event = normalizeEvent(this.dom, event);\n var element = event.toElement || event.relatedTarget;\n if (!isLocalEl(this, element)) {\n if (this.__pointerCapturing) {\n event.zrEventControl = 'no_globalout';\n }\n this.trigger('mouseout', event);\n }\n },\n wheel: function (event) {\n wheelEventSupported = true;\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n mousewheel: function (event) {\n if (wheelEventSupported) {\n return;\n }\n event = normalizeEvent(this.dom, event);\n this.trigger('mousewheel', event);\n },\n touchstart: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.__lastTouchMoment = new Date();\n this.handler.processGesture(event, 'start');\n localDOMHandlers.mousemove.call(this, event);\n localDOMHandlers.mousedown.call(this, event);\n },\n touchmove: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.handler.processGesture(event, 'change');\n localDOMHandlers.mousemove.call(this, event);\n },\n touchend: function (event) {\n event = normalizeEvent(this.dom, event);\n markTouch(event);\n this.handler.processGesture(event, 'end');\n localDOMHandlers.mouseup.call(this, event);\n if (+new Date() - (+this.__lastTouchMoment) < TOUCH_CLICK_DELAY) {\n localDOMHandlers.click.call(this, event);\n }\n },\n pointerdown: function (event) {\n localDOMHandlers.mousedown.call(this, event);\n },\n pointermove: function (event) {\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mousemove.call(this, event);\n }\n },\n pointerup: function (event) {\n localDOMHandlers.mouseup.call(this, event);\n },\n pointerout: function (event) {\n if (!isPointerFromTouch(event)) {\n localDOMHandlers.mouseout.call(this, event);\n }\n }\n};\nzrUtil.each(['click', 'dblclick', 'contextmenu'], function (name) {\n localDOMHandlers[name] = function (event) {\n event = normalizeEvent(this.dom, event);\n this.trigger(name, event);\n };\n});\nvar globalDOMHandlers = {\n pointermove: function (event) {\n if (!isPointerFromTouch(event)) {\n globalDOMHandlers.mousemove.call(this, event);\n }\n },\n pointerup: function (event) {\n globalDOMHandlers.mouseup.call(this, event);\n },\n mousemove: function (event) {\n this.trigger('mousemove', event);\n },\n mouseup: function (event) {\n var pointerCaptureReleasing = this.__pointerCapturing;\n this.__togglePointerCapture(false);\n this.trigger('mouseup', event);\n if (pointerCaptureReleasing) {\n event.zrEventControl = 'only_globalout';\n this.trigger('mouseout', event);\n }\n }\n};\nfunction mountLocalDOMEventListeners(instance, scope) {\n var domHandlers = scope.domHandlers;\n if (env.pointerEventsSupported) {\n zrUtil.each(localNativeListenerNames.pointer, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n domHandlers[nativeEventName].call(instance, event);\n });\n });\n }\n else {\n if (env.touchEventsSupported) {\n zrUtil.each(localNativeListenerNames.touch, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n domHandlers[nativeEventName].call(instance, event);\n setTouchTimer(scope);\n });\n });\n }\n zrUtil.each(localNativeListenerNames.mouse, function (nativeEventName) {\n mountSingleDOMEventListener(scope, nativeEventName, function (event) {\n event = getNativeEvent(event);\n if (!scope.touching) {\n domHandlers[nativeEventName].call(instance, event);\n }\n });\n });\n }\n}\nfunction mountGlobalDOMEventListeners(instance, scope) {\n if (env.pointerEventsSupported) {\n zrUtil.each(globalNativeListenerNames.pointer, mount);\n }\n else if (!env.touchEventsSupported) {\n zrUtil.each(globalNativeListenerNames.mouse, mount);\n }\n function mount(nativeEventName) {\n function nativeEventListener(event) {\n event = getNativeEvent(event);\n if (!isLocalEl(instance, event.target)) {\n event = normalizeGlobalEvent(instance, event);\n scope.domHandlers[nativeEventName].call(instance, event);\n }\n }\n mountSingleDOMEventListener(scope, nativeEventName, nativeEventListener, { capture: true });\n }\n}\nfunction mountSingleDOMEventListener(scope, nativeEventName, listener, opt) {\n scope.mounted[nativeEventName] = listener;\n scope.listenerOpts[nativeEventName] = opt;\n addEventListener(scope.domTarget, nativeEventName, listener, opt);\n}\nfunction unmountDOMEventListeners(scope) {\n var mounted = scope.mounted;\n for (var nativeEventName in mounted) {\n if (mounted.hasOwnProperty(nativeEventName)) {\n removeEventListener(scope.domTarget, nativeEventName, mounted[nativeEventName], scope.listenerOpts[nativeEventName]);\n }\n }\n scope.mounted = {};\n}\nvar DOMHandlerScope = (function () {\n function DOMHandlerScope(domTarget, domHandlers) {\n this.mounted = {};\n this.listenerOpts = {};\n this.touching = false;\n this.domTarget = domTarget;\n this.domHandlers = domHandlers;\n }\n return DOMHandlerScope;\n}());\nvar HandlerDomProxy = (function (_super) {\n __extends(HandlerDomProxy, _super);\n function HandlerDomProxy(dom, painterRoot) {\n var _this = _super.call(this) || this;\n _this.__pointerCapturing = false;\n _this.dom = dom;\n _this.painterRoot = painterRoot;\n _this._localHandlerScope = new DOMHandlerScope(dom, localDOMHandlers);\n if (globalEventSupported) {\n _this._globalHandlerScope = new DOMHandlerScope(document, globalDOMHandlers);\n }\n mountLocalDOMEventListeners(_this, _this._localHandlerScope);\n return _this;\n }\n HandlerDomProxy.prototype.dispose = function () {\n unmountDOMEventListeners(this._localHandlerScope);\n if (globalEventSupported) {\n unmountDOMEventListeners(this._globalHandlerScope);\n }\n };\n HandlerDomProxy.prototype.setCursor = function (cursorStyle) {\n this.dom.style && (this.dom.style.cursor = cursorStyle || 'default');\n };\n HandlerDomProxy.prototype.__togglePointerCapture = function (isPointerCapturing) {\n this.__mayPointerCapture = null;\n if (globalEventSupported\n && ((+this.__pointerCapturing) ^ (+isPointerCapturing))) {\n this.__pointerCapturing = isPointerCapturing;\n var globalHandlerScope = this._globalHandlerScope;\n isPointerCapturing\n ? mountGlobalDOMEventListeners(this, globalHandlerScope)\n : unmountDOMEventListeners(globalHandlerScope);\n }\n };\n return HandlerDomProxy;\n}(Eventful));\nexport default HandlerDomProxy;\n","var dpr = 1;\nif (typeof window !== 'undefined') {\n dpr = Math.max(window.devicePixelRatio\n || (window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI)\n || 1, 1);\n}\nexport var debugMode = 0;\nexport var devicePixelRatio = dpr;\nexport var DARK_MODE_THRESHOLD = 0.4;\nexport var DARK_LABEL_COLOR = '#333';\nexport var LIGHT_LABEL_COLOR = '#ccc';\nexport var LIGHTER_LABEL_COLOR = '#eee';\n","export function create() {\n return [1, 0, 0, 1, 0, 0];\n}\nexport function identity(out) {\n out[0] = 1;\n out[1] = 0;\n out[2] = 0;\n out[3] = 1;\n out[4] = 0;\n out[5] = 0;\n return out;\n}\nexport function copy(out, m) {\n out[0] = m[0];\n out[1] = m[1];\n out[2] = m[2];\n out[3] = m[3];\n out[4] = m[4];\n out[5] = m[5];\n return out;\n}\nexport function mul(out, m1, m2) {\n var out0 = m1[0] * m2[0] + m1[2] * m2[1];\n var out1 = m1[1] * m2[0] + m1[3] * m2[1];\n var out2 = m1[0] * m2[2] + m1[2] * m2[3];\n var out3 = m1[1] * m2[2] + m1[3] * m2[3];\n var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];\n var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];\n out[0] = out0;\n out[1] = out1;\n out[2] = out2;\n out[3] = out3;\n out[4] = out4;\n out[5] = out5;\n return out;\n}\nexport function translate(out, a, v) {\n out[0] = a[0];\n out[1] = a[1];\n out[2] = a[2];\n out[3] = a[3];\n out[4] = a[4] + v[0];\n out[5] = a[5] + v[1];\n return out;\n}\nexport function rotate(out, a, rad) {\n var aa = a[0];\n var ac = a[2];\n var atx = a[4];\n var ab = a[1];\n var ad = a[3];\n var aty = a[5];\n var st = Math.sin(rad);\n var ct = Math.cos(rad);\n out[0] = aa * ct + ab * st;\n out[1] = -aa * st + ab * ct;\n out[2] = ac * ct + ad * st;\n out[3] = -ac * st + ct * ad;\n out[4] = ct * atx + st * aty;\n out[5] = ct * aty - st * atx;\n return out;\n}\nexport function scale(out, a, v) {\n var vx = v[0];\n var vy = v[1];\n out[0] = a[0] * vx;\n out[1] = a[1] * vy;\n out[2] = a[2] * vx;\n out[3] = a[3] * vy;\n out[4] = a[4] * vx;\n out[5] = a[5] * vy;\n return out;\n}\nexport function invert(out, a) {\n var aa = a[0];\n var ac = a[2];\n var atx = a[4];\n var ab = a[1];\n var ad = a[3];\n var aty = a[5];\n var det = aa * ad - ab * ac;\n if (!det) {\n return null;\n }\n det = 1.0 / det;\n out[0] = ad * det;\n out[1] = -ab * det;\n out[2] = -ac * det;\n out[3] = aa * det;\n out[4] = (ac * aty - ad * atx) * det;\n out[5] = (ab * atx - aa * aty) * det;\n return out;\n}\nexport function clone(a) {\n var b = create();\n copy(b, a);\n return b;\n}\n","import * as matrix from './matrix';\nimport * as vector from './vector';\nvar mIdentity = matrix.identity;\nvar EPSILON = 5e-5;\nfunction isNotAroundZero(val) {\n return val > EPSILON || val < -EPSILON;\n}\nvar scaleTmp = [];\nvar tmpTransform = [];\nvar originTransform = matrix.create();\nvar abs = Math.abs;\nvar Transformable = (function () {\n function Transformable() {\n }\n Transformable.prototype.setPosition = function (arr) {\n this.x = arr[0];\n this.y = arr[1];\n };\n Transformable.prototype.setScale = function (arr) {\n this.scaleX = arr[0];\n this.scaleY = arr[1];\n };\n Transformable.prototype.setSkew = function (arr) {\n this.skewX = arr[0];\n this.skewY = arr[1];\n };\n Transformable.prototype.setOrigin = function (arr) {\n this.originX = arr[0];\n this.originY = arr[1];\n };\n Transformable.prototype.needLocalTransform = function () {\n return isNotAroundZero(this.rotation)\n || isNotAroundZero(this.x)\n || isNotAroundZero(this.y)\n || isNotAroundZero(this.scaleX - 1)\n || isNotAroundZero(this.scaleY - 1);\n };\n Transformable.prototype.updateTransform = function () {\n var parent = this.parent;\n var parentHasTransform = parent && parent.transform;\n var needLocalTransform = this.needLocalTransform();\n var m = this.transform;\n if (!(needLocalTransform || parentHasTransform)) {\n m && mIdentity(m);\n return;\n }\n m = m || matrix.create();\n if (needLocalTransform) {\n this.getLocalTransform(m);\n }\n else {\n mIdentity(m);\n }\n if (parentHasTransform) {\n if (needLocalTransform) {\n matrix.mul(m, parent.transform, m);\n }\n else {\n matrix.copy(m, parent.transform);\n }\n }\n this.transform = m;\n this._resolveGlobalScaleRatio(m);\n };\n Transformable.prototype._resolveGlobalScaleRatio = function (m) {\n var globalScaleRatio = this.globalScaleRatio;\n if (globalScaleRatio != null && globalScaleRatio !== 1) {\n this.getGlobalScale(scaleTmp);\n var relX = scaleTmp[0] < 0 ? -1 : 1;\n var relY = scaleTmp[1] < 0 ? -1 : 1;\n var sx = ((scaleTmp[0] - relX) * globalScaleRatio + relX) / scaleTmp[0] || 0;\n var sy = ((scaleTmp[1] - relY) * globalScaleRatio + relY) / scaleTmp[1] || 0;\n m[0] *= sx;\n m[1] *= sx;\n m[2] *= sy;\n m[3] *= sy;\n }\n this.invTransform = this.invTransform || matrix.create();\n matrix.invert(this.invTransform, m);\n };\n Transformable.prototype.getLocalTransform = function (m) {\n return Transformable.getLocalTransform(this, m);\n };\n Transformable.prototype.getComputedTransform = function () {\n var transformNode = this;\n var ancestors = [];\n while (transformNode) {\n ancestors.push(transformNode);\n transformNode = transformNode.parent;\n }\n while (transformNode = ancestors.pop()) {\n transformNode.updateTransform();\n }\n return this.transform;\n };\n Transformable.prototype.setLocalTransform = function (m) {\n if (!m) {\n return;\n }\n var sx = m[0] * m[0] + m[1] * m[1];\n var sy = m[2] * m[2] + m[3] * m[3];\n var rotation = Math.atan2(m[1], m[0]);\n var shearX = Math.PI / 2 + rotation - Math.atan2(m[3], m[2]);\n sy = Math.sqrt(sy) * Math.cos(shearX);\n sx = Math.sqrt(sx);\n this.skewX = shearX;\n this.skewY = 0;\n this.rotation = -rotation;\n this.x = +m[4];\n this.y = +m[5];\n this.scaleX = sx;\n this.scaleY = sy;\n this.originX = 0;\n this.originY = 0;\n };\n Transformable.prototype.decomposeTransform = function () {\n if (!this.transform) {\n return;\n }\n var parent = this.parent;\n var m = this.transform;\n if (parent && parent.transform) {\n matrix.mul(tmpTransform, parent.invTransform, m);\n m = tmpTransform;\n }\n var ox = this.originX;\n var oy = this.originY;\n if (ox || oy) {\n originTransform[4] = ox;\n originTransform[5] = oy;\n matrix.mul(tmpTransform, m, originTransform);\n tmpTransform[4] -= ox;\n tmpTransform[5] -= oy;\n m = tmpTransform;\n }\n this.setLocalTransform(m);\n };\n Transformable.prototype.getGlobalScale = function (out) {\n var m = this.transform;\n out = out || [];\n if (!m) {\n out[0] = 1;\n out[1] = 1;\n return out;\n }\n out[0] = Math.sqrt(m[0] * m[0] + m[1] * m[1]);\n out[1] = Math.sqrt(m[2] * m[2] + m[3] * m[3]);\n if (m[0] < 0) {\n out[0] = -out[0];\n }\n if (m[3] < 0) {\n out[1] = -out[1];\n }\n return out;\n };\n Transformable.prototype.transformCoordToLocal = function (x, y) {\n var v2 = [x, y];\n var invTransform = this.invTransform;\n if (invTransform) {\n vector.applyTransform(v2, v2, invTransform);\n }\n return v2;\n };\n Transformable.prototype.transformCoordToGlobal = function (x, y) {\n var v2 = [x, y];\n var transform = this.transform;\n if (transform) {\n vector.applyTransform(v2, v2, transform);\n }\n return v2;\n };\n Transformable.prototype.getLineScale = function () {\n var m = this.transform;\n return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10\n ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))\n : 1;\n };\n Transformable.getLocalTransform = function (target, m) {\n m = m || [];\n var ox = target.originX || 0;\n var oy = target.originY || 0;\n var sx = target.scaleX;\n var sy = target.scaleY;\n var rotation = target.rotation || 0;\n var x = target.x;\n var y = target.y;\n var skewX = target.skewX ? Math.tan(target.skewX) : 0;\n var skewY = target.skewY ? Math.tan(-target.skewY) : 0;\n if (ox || oy) {\n m[4] = -ox * sx - skewX * oy * sy;\n m[5] = -oy * sy - skewY * ox * sx;\n }\n else {\n m[4] = m[5] = 0;\n }\n m[0] = sx;\n m[3] = sy;\n m[1] = skewY * sx;\n m[2] = skewX * sy;\n rotation && matrix.rotate(m, m, rotation);\n m[4] += ox + x;\n m[5] += oy + y;\n return m;\n };\n Transformable.initDefaultProps = (function () {\n var proto = Transformable.prototype;\n proto.x = 0;\n proto.y = 0;\n proto.scaleX = 1;\n proto.scaleY = 1;\n proto.originX = 0;\n proto.originY = 0;\n proto.skewX = 0;\n proto.skewY = 0;\n proto.rotation = 0;\n proto.globalScaleRatio = 1;\n })();\n return Transformable;\n}());\n;\nexport default Transformable;\n","var Point = (function () {\n function Point(x, y) {\n this.x = x || 0;\n this.y = y || 0;\n }\n Point.prototype.copy = function (other) {\n this.x = other.x;\n this.y = other.y;\n return this;\n };\n Point.prototype.clone = function () {\n return new Point(this.x, this.y);\n };\n Point.prototype.set = function (x, y) {\n this.x = x;\n this.y = y;\n return this;\n };\n Point.prototype.equal = function (other) {\n return other.x === this.x && other.y === this.y;\n };\n Point.prototype.add = function (other) {\n this.x += other.x;\n this.y += other.y;\n return this;\n };\n Point.prototype.scale = function (scalar) {\n this.x *= scalar;\n this.y *= scalar;\n };\n Point.prototype.scaleAndAdd = function (other, scalar) {\n this.x += other.x * scalar;\n this.y += other.y * scalar;\n };\n Point.prototype.sub = function (other) {\n this.x -= other.x;\n this.y -= other.y;\n return this;\n };\n Point.prototype.dot = function (other) {\n return this.x * other.x + this.y * other.y;\n };\n Point.prototype.len = function () {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n };\n Point.prototype.lenSquare = function () {\n return this.x * this.x + this.y * this.y;\n };\n Point.prototype.normalize = function () {\n var len = this.len();\n this.x /= len;\n this.y /= len;\n return this;\n };\n Point.prototype.distance = function (other) {\n var dx = this.x - other.x;\n var dy = this.y - other.y;\n return Math.sqrt(dx * dx + dy * dy);\n };\n Point.prototype.distanceSquare = function (other) {\n var dx = this.x - other.x;\n var dy = this.y - other.y;\n return dx * dx + dy * dy;\n };\n Point.prototype.negate = function () {\n this.x = -this.x;\n this.y = -this.y;\n return this;\n };\n Point.prototype.transform = function (m) {\n if (!m) {\n return;\n }\n var x = this.x;\n var y = this.y;\n this.x = m[0] * x + m[2] * y + m[4];\n this.y = m[1] * x + m[3] * y + m[5];\n return this;\n };\n Point.prototype.toArray = function (out) {\n out[0] = this.x;\n out[1] = this.y;\n return out;\n };\n Point.prototype.fromArray = function (input) {\n this.x = input[0];\n this.y = input[1];\n };\n Point.set = function (p, x, y) {\n p.x = x;\n p.y = y;\n };\n Point.copy = function (p, p2) {\n p.x = p2.x;\n p.y = p2.y;\n };\n Point.len = function (p) {\n return Math.sqrt(p.x * p.x + p.y * p.y);\n };\n Point.lenSquare = function (p) {\n return p.x * p.x + p.y * p.y;\n };\n Point.dot = function (p0, p1) {\n return p0.x * p1.x + p0.y * p1.y;\n };\n Point.add = function (out, p0, p1) {\n out.x = p0.x + p1.x;\n out.y = p0.y + p1.y;\n };\n Point.sub = function (out, p0, p1) {\n out.x = p0.x - p1.x;\n out.y = p0.y - p1.y;\n };\n Point.scale = function (out, p0, scalar) {\n out.x = p0.x * scalar;\n out.y = p0.y * scalar;\n };\n Point.scaleAndAdd = function (out, p0, p1, scalar) {\n out.x = p0.x + p1.x * scalar;\n out.y = p0.y + p1.y * scalar;\n };\n Point.lerp = function (out, p0, p1, t) {\n var onet = 1 - t;\n out.x = onet * p0.x + t * p1.x;\n out.y = onet * p0.y + t * p1.y;\n };\n return Point;\n}());\nexport default Point;\n","import * as matrix from './matrix';\nimport Point from './Point';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar lt = new Point();\nvar rb = new Point();\nvar lb = new Point();\nvar rt = new Point();\nvar minTv = new Point();\nvar maxTv = new Point();\nvar BoundingRect = (function () {\n function BoundingRect(x, y, width, height) {\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n BoundingRect.prototype.union = function (other) {\n var x = mathMin(other.x, this.x);\n var y = mathMin(other.y, this.y);\n if (isFinite(this.x) && isFinite(this.width)) {\n this.width = mathMax(other.x + other.width, this.x + this.width) - x;\n }\n else {\n this.width = other.width;\n }\n if (isFinite(this.y) && isFinite(this.height)) {\n this.height = mathMax(other.y + other.height, this.y + this.height) - y;\n }\n else {\n this.height = other.height;\n }\n this.x = x;\n this.y = y;\n };\n BoundingRect.prototype.applyTransform = function (m) {\n BoundingRect.applyTransform(this, this, m);\n };\n BoundingRect.prototype.calculateTransform = function (b) {\n var a = this;\n var sx = b.width / a.width;\n var sy = b.height / a.height;\n var m = matrix.create();\n matrix.translate(m, m, [-a.x, -a.y]);\n matrix.scale(m, m, [sx, sy]);\n matrix.translate(m, m, [b.x, b.y]);\n return m;\n };\n BoundingRect.prototype.intersect = function (b, mtv) {\n if (!b) {\n return false;\n }\n if (!(b instanceof BoundingRect)) {\n b = BoundingRect.create(b);\n }\n var a = this;\n var ax0 = a.x;\n var ax1 = a.x + a.width;\n var ay0 = a.y;\n var ay1 = a.y + a.height;\n var bx0 = b.x;\n var bx1 = b.x + b.width;\n var by0 = b.y;\n var by1 = b.y + b.height;\n var overlap = !(ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);\n if (mtv) {\n var dMin = Infinity;\n var dMax = 0;\n var d0 = Math.abs(ax1 - bx0);\n var d1 = Math.abs(bx1 - ax0);\n var d2 = Math.abs(ay1 - by0);\n var d3 = Math.abs(by1 - ay0);\n var dx = Math.min(d0, d1);\n var dy = Math.min(d2, d3);\n if (ax1 < bx0 || bx1 < ax0) {\n if (dx > dMax) {\n dMax = dx;\n if (d0 < d1) {\n Point.set(maxTv, -d0, 0);\n }\n else {\n Point.set(maxTv, d1, 0);\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d0 < d1) {\n Point.set(minTv, d0, 0);\n }\n else {\n Point.set(minTv, -d1, 0);\n }\n }\n }\n if (ay1 < by0 || by1 < ay0) {\n if (dy > dMax) {\n dMax = dy;\n if (d2 < d3) {\n Point.set(maxTv, 0, -d2);\n }\n else {\n Point.set(maxTv, 0, d3);\n }\n }\n }\n else {\n if (dx < dMin) {\n dMin = dx;\n if (d2 < d3) {\n Point.set(minTv, 0, d2);\n }\n else {\n Point.set(minTv, 0, -d3);\n }\n }\n }\n }\n if (mtv) {\n Point.copy(mtv, overlap ? minTv : maxTv);\n }\n return overlap;\n };\n BoundingRect.prototype.contain = function (x, y) {\n var rect = this;\n return x >= rect.x\n && x <= (rect.x + rect.width)\n && y >= rect.y\n && y <= (rect.y + rect.height);\n };\n BoundingRect.prototype.clone = function () {\n return new BoundingRect(this.x, this.y, this.width, this.height);\n };\n BoundingRect.prototype.copy = function (other) {\n BoundingRect.copy(this, other);\n };\n BoundingRect.prototype.plain = function () {\n return {\n x: this.x,\n y: this.y,\n width: this.width,\n height: this.height\n };\n };\n BoundingRect.prototype.isFinite = function () {\n return isFinite(this.x)\n && isFinite(this.y)\n && isFinite(this.width)\n && isFinite(this.height);\n };\n BoundingRect.prototype.isZero = function () {\n return this.width === 0 || this.height === 0;\n };\n BoundingRect.create = function (rect) {\n return new BoundingRect(rect.x, rect.y, rect.width, rect.height);\n };\n BoundingRect.copy = function (target, source) {\n target.x = source.x;\n target.y = source.y;\n target.width = source.width;\n target.height = source.height;\n };\n BoundingRect.applyTransform = function (target, source, m) {\n if (!m) {\n if (target !== source) {\n BoundingRect.copy(target, source);\n }\n return;\n }\n if (m[1] < 1e-5 && m[1] > -1e-5 && m[2] < 1e-5 && m[2] > -1e-5) {\n var sx = m[0];\n var sy = m[3];\n var tx = m[4];\n var ty = m[5];\n target.x = source.x * sx + tx;\n target.y = source.y * sy + ty;\n target.width = source.width * sx;\n target.height = source.height * sy;\n if (target.width < 0) {\n target.x += target.width;\n target.width = -target.width;\n }\n if (target.height < 0) {\n target.y += target.height;\n target.height = -target.height;\n }\n return;\n }\n lt.x = lb.x = source.x;\n lt.y = rt.y = source.y;\n rb.x = rt.x = source.x + source.width;\n rb.y = lb.y = source.y + source.height;\n lt.transform(m);\n rt.transform(m);\n rb.transform(m);\n lb.transform(m);\n target.x = mathMin(lt.x, rb.x, lb.x, rt.x);\n target.y = mathMin(lt.y, rb.y, lb.y, rt.y);\n var maxX = mathMax(lt.x, rb.x, lb.x, rt.x);\n var maxY = mathMax(lt.y, rb.y, lb.y, rt.y);\n target.width = maxX - target.x;\n target.height = maxY - target.y;\n };\n return BoundingRect;\n}());\nexport default BoundingRect;\n","import BoundingRect from '../core/BoundingRect';\nimport { createCanvas } from '../core/util';\nimport LRU from '../core/LRU';\nvar textWidthCache = {};\nexport var DEFAULT_FONT = '12px sans-serif';\nvar _ctx;\nvar _cachedFont;\nfunction defaultMeasureText(text, font) {\n if (!_ctx) {\n _ctx = createCanvas().getContext('2d');\n }\n if (_cachedFont !== font) {\n _cachedFont = _ctx.font = font || DEFAULT_FONT;\n }\n return _ctx.measureText(text);\n}\nvar methods = {\n measureText: defaultMeasureText\n};\nexport function $override(name, fn) {\n methods[name] = fn;\n}\nexport function getWidth(text, font) {\n font = font || DEFAULT_FONT;\n var cacheOfFont = textWidthCache[font];\n if (!cacheOfFont) {\n cacheOfFont = textWidthCache[font] = new LRU(500);\n }\n var width = cacheOfFont.get(text);\n if (width == null) {\n width = methods.measureText(text, font).width;\n cacheOfFont.put(text, width);\n }\n return width;\n}\nexport function innerGetBoundingRect(text, font, textAlign, textBaseline) {\n var width = getWidth(text, font);\n var height = getLineHeight(font);\n var x = adjustTextX(0, width, textAlign);\n var y = adjustTextY(0, height, textBaseline);\n var rect = new BoundingRect(x, y, width, height);\n return rect;\n}\nexport function getBoundingRect(text, font, textAlign, textBaseline) {\n var textLines = ((text || '') + '').split('\\n');\n var len = textLines.length;\n if (len === 1) {\n return innerGetBoundingRect(textLines[0], font, textAlign, textBaseline);\n }\n else {\n var uniondRect = new BoundingRect(0, 0, 0, 0);\n for (var i = 0; i < textLines.length; i++) {\n var rect = innerGetBoundingRect(textLines[i], font, textAlign, textBaseline);\n i === 0 ? uniondRect.copy(rect) : uniondRect.union(rect);\n }\n return uniondRect;\n }\n}\nexport function adjustTextX(x, width, textAlign) {\n if (textAlign === 'right') {\n x -= width;\n }\n else if (textAlign === 'center') {\n x -= width / 2;\n }\n return x;\n}\nexport function adjustTextY(y, height, verticalAlign) {\n if (verticalAlign === 'middle') {\n y -= height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y -= height;\n }\n return y;\n}\nexport function getLineHeight(font) {\n return getWidth('国', font);\n}\nexport function measureText(text, font) {\n return methods.measureText(text, font);\n}\nexport function parsePercent(value, maxValue) {\n if (typeof value === 'string') {\n if (value.lastIndexOf('%') >= 0) {\n return parseFloat(value) / 100 * maxValue;\n }\n return parseFloat(value);\n }\n return value;\n}\nexport function calculateTextPosition(out, opts, rect) {\n var textPosition = opts.position || 'inside';\n var distance = opts.distance != null ? opts.distance : 5;\n var height = rect.height;\n var width = rect.width;\n var halfHeight = height / 2;\n var x = rect.x;\n var y = rect.y;\n var textAlign = 'left';\n var textVerticalAlign = 'top';\n if (textPosition instanceof Array) {\n x += parsePercent(textPosition[0], rect.width);\n y += parsePercent(textPosition[1], rect.height);\n textAlign = null;\n textVerticalAlign = null;\n }\n else {\n switch (textPosition) {\n case 'left':\n x -= distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'right':\n x += distance + width;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'top':\n x += width / 2;\n y -= distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'bottom':\n x += width / 2;\n y += height + distance;\n textAlign = 'center';\n break;\n case 'inside':\n x += width / 2;\n y += halfHeight;\n textAlign = 'center';\n textVerticalAlign = 'middle';\n break;\n case 'insideLeft':\n x += distance;\n y += halfHeight;\n textVerticalAlign = 'middle';\n break;\n case 'insideRight':\n x += width - distance;\n y += halfHeight;\n textAlign = 'right';\n textVerticalAlign = 'middle';\n break;\n case 'insideTop':\n x += width / 2;\n y += distance;\n textAlign = 'center';\n break;\n case 'insideBottom':\n x += width / 2;\n y += height - distance;\n textAlign = 'center';\n textVerticalAlign = 'bottom';\n break;\n case 'insideTopLeft':\n x += distance;\n y += distance;\n break;\n case 'insideTopRight':\n x += width - distance;\n y += distance;\n textAlign = 'right';\n break;\n case 'insideBottomLeft':\n x += distance;\n y += height - distance;\n textVerticalAlign = 'bottom';\n break;\n case 'insideBottomRight':\n x += width - distance;\n y += height - distance;\n textAlign = 'right';\n textVerticalAlign = 'bottom';\n break;\n }\n }\n out = out || {};\n out.x = x;\n out.y = y;\n out.align = textAlign;\n out.verticalAlign = textVerticalAlign;\n return out;\n}\n","import Transformable from './core/Transformable';\nimport Animator, { cloneValue } from './animation/Animator';\nimport BoundingRect from './core/BoundingRect';\nimport Eventful from './core/Eventful';\nimport { calculateTextPosition, parsePercent } from './contain/text';\nimport { guid, isObject, keys, extend, indexOf, logError, mixin, isArrayLike, isTypedArray } from './core/util';\nimport { LIGHT_LABEL_COLOR, DARK_LABEL_COLOR } from './config';\nimport { parse, stringify } from './tool/color';\nimport env from './core/env';\nimport { REDARAW_BIT } from './graphic/constants';\nexport var PRESERVED_NORMAL_STATE = '__zr_normal__';\nvar PRIMARY_STATES_KEYS = ['x', 'y', 'scaleX', 'scaleY', 'originX', 'originY', 'rotation', 'ignore'];\nvar DEFAULT_ANIMATABLE_MAP = {\n x: true,\n y: true,\n scaleX: true,\n scaleY: true,\n originX: true,\n originY: true,\n rotation: true,\n ignore: false\n};\nvar tmpTextPosCalcRes = {};\nvar tmpBoundingRect = new BoundingRect(0, 0, 0, 0);\nvar Element = (function () {\n function Element(props) {\n this.id = guid();\n this.animators = [];\n this.currentStates = [];\n this.states = {};\n this._init(props);\n }\n Element.prototype._init = function (props) {\n this.attr(props);\n };\n Element.prototype.drift = function (dx, dy, e) {\n switch (this.draggable) {\n case 'horizontal':\n dy = 0;\n break;\n case 'vertical':\n dx = 0;\n break;\n }\n var m = this.transform;\n if (!m) {\n m = this.transform = [1, 0, 0, 1, 0, 0];\n }\n m[4] += dx;\n m[5] += dy;\n this.decomposeTransform();\n this.markRedraw();\n };\n Element.prototype.beforeUpdate = function () { };\n Element.prototype.afterUpdate = function () { };\n Element.prototype.update = function () {\n this.updateTransform();\n if (this.__dirty) {\n this.updateInnerText();\n }\n };\n Element.prototype.updateInnerText = function (forceUpdate) {\n var textEl = this._textContent;\n if (textEl && (!textEl.ignore || forceUpdate)) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n var textConfig = this.textConfig;\n var isLocal = textConfig.local;\n var attachedTransform = textEl.attachedTransform;\n var textAlign = void 0;\n var textVerticalAlign = void 0;\n var textStyleChanged = false;\n if (isLocal) {\n attachedTransform.parent = this;\n }\n else {\n attachedTransform.parent = null;\n }\n var innerOrigin = false;\n attachedTransform.x = textEl.x;\n attachedTransform.y = textEl.y;\n attachedTransform.originX = textEl.originX;\n attachedTransform.originY = textEl.originY;\n attachedTransform.rotation = textEl.rotation;\n attachedTransform.scaleX = textEl.scaleX;\n attachedTransform.scaleY = textEl.scaleY;\n if (textConfig.position != null) {\n var layoutRect = tmpBoundingRect;\n if (textConfig.layoutRect) {\n layoutRect.copy(textConfig.layoutRect);\n }\n else {\n layoutRect.copy(this.getBoundingRect());\n }\n if (!isLocal) {\n layoutRect.applyTransform(this.transform);\n }\n if (this.calculateTextPosition) {\n this.calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n else {\n calculateTextPosition(tmpTextPosCalcRes, textConfig, layoutRect);\n }\n attachedTransform.x = tmpTextPosCalcRes.x;\n attachedTransform.y = tmpTextPosCalcRes.y;\n textAlign = tmpTextPosCalcRes.align;\n textVerticalAlign = tmpTextPosCalcRes.verticalAlign;\n var textOrigin = textConfig.origin;\n if (textOrigin && textConfig.rotation != null) {\n var relOriginX = void 0;\n var relOriginY = void 0;\n if (textOrigin === 'center') {\n relOriginX = layoutRect.width * 0.5;\n relOriginY = layoutRect.height * 0.5;\n }\n else {\n relOriginX = parsePercent(textOrigin[0], layoutRect.width);\n relOriginY = parsePercent(textOrigin[1], layoutRect.height);\n }\n innerOrigin = true;\n attachedTransform.originX = -attachedTransform.x + relOriginX + (isLocal ? 0 : layoutRect.x);\n attachedTransform.originY = -attachedTransform.y + relOriginY + (isLocal ? 0 : layoutRect.y);\n }\n }\n if (textConfig.rotation != null) {\n attachedTransform.rotation = textConfig.rotation;\n }\n var textOffset = textConfig.offset;\n if (textOffset) {\n attachedTransform.x += textOffset[0];\n attachedTransform.y += textOffset[1];\n if (!innerOrigin) {\n attachedTransform.originX = -textOffset[0];\n attachedTransform.originY = -textOffset[1];\n }\n }\n var isInside = textConfig.inside == null\n ? (typeof textConfig.position === 'string' && textConfig.position.indexOf('inside') >= 0)\n : textConfig.inside;\n var innerTextDefaultStyle = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {});\n var textFill = void 0;\n var textStroke = void 0;\n var autoStroke = void 0;\n if (isInside && this.canBeInsideText()) {\n textFill = textConfig.insideFill;\n textStroke = textConfig.insideStroke;\n if (textFill == null || textFill === 'auto') {\n textFill = this.getInsideTextFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getInsideTextStroke(textFill);\n autoStroke = true;\n }\n }\n else {\n textFill = textConfig.outsideFill;\n textStroke = textConfig.outsideStroke;\n if (textFill == null || textFill === 'auto') {\n textFill = this.getOutsideFill();\n }\n if (textStroke == null || textStroke === 'auto') {\n textStroke = this.getOutsideStroke(textFill);\n autoStroke = true;\n }\n }\n textFill = textFill || '#000';\n if (textFill !== innerTextDefaultStyle.fill\n || textStroke !== innerTextDefaultStyle.stroke\n || autoStroke !== innerTextDefaultStyle.autoStroke\n || textAlign !== innerTextDefaultStyle.align\n || textVerticalAlign !== innerTextDefaultStyle.verticalAlign) {\n textStyleChanged = true;\n innerTextDefaultStyle.fill = textFill;\n innerTextDefaultStyle.stroke = textStroke;\n innerTextDefaultStyle.autoStroke = autoStroke;\n innerTextDefaultStyle.align = textAlign;\n innerTextDefaultStyle.verticalAlign = textVerticalAlign;\n textEl.setDefaultTextStyle(innerTextDefaultStyle);\n }\n textEl.__dirty |= REDARAW_BIT;\n if (textStyleChanged) {\n textEl.dirtyStyle(true);\n }\n }\n };\n Element.prototype.canBeInsideText = function () {\n return true;\n };\n Element.prototype.getInsideTextFill = function () {\n return '#fff';\n };\n Element.prototype.getInsideTextStroke = function (textFill) {\n return '#000';\n };\n Element.prototype.getOutsideFill = function () {\n return this.__zr && this.__zr.isDarkMode() ? LIGHT_LABEL_COLOR : DARK_LABEL_COLOR;\n };\n Element.prototype.getOutsideStroke = function (textFill) {\n var backgroundColor = this.__zr && this.__zr.getBackgroundColor();\n var colorArr = typeof backgroundColor === 'string' && parse(backgroundColor);\n if (!colorArr) {\n colorArr = [255, 255, 255, 1];\n }\n var alpha = colorArr[3];\n var isDark = this.__zr.isDarkMode();\n for (var i = 0; i < 3; i++) {\n colorArr[i] = colorArr[i] * alpha + (isDark ? 0 : 255) * (1 - alpha);\n }\n colorArr[3] = 1;\n return stringify(colorArr, 'rgba');\n };\n Element.prototype.traverse = function (cb, context) { };\n Element.prototype.attrKV = function (key, value) {\n if (key === 'textConfig') {\n this.setTextConfig(value);\n }\n else if (key === 'textContent') {\n this.setTextContent(value);\n }\n else if (key === 'clipPath') {\n this.setClipPath(value);\n }\n else if (key === 'extra') {\n this.extra = this.extra || {};\n extend(this.extra, value);\n }\n else {\n this[key] = value;\n }\n };\n Element.prototype.hide = function () {\n this.ignore = true;\n this.markRedraw();\n };\n Element.prototype.show = function () {\n this.ignore = false;\n this.markRedraw();\n };\n Element.prototype.attr = function (keyOrObj, value) {\n if (typeof keyOrObj === 'string') {\n this.attrKV(keyOrObj, value);\n }\n else if (isObject(keyOrObj)) {\n var obj = keyOrObj;\n var keysArr = keys(obj);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n this.attrKV(key, keyOrObj[key]);\n }\n }\n this.markRedraw();\n return this;\n };\n Element.prototype.saveCurrentToNormalState = function (toState) {\n this._innerSaveToNormal(toState);\n var normalState = this._normalState;\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n var fromStateTransition = animator.__fromStateTransition;\n if (fromStateTransition && fromStateTransition !== PRESERVED_NORMAL_STATE) {\n continue;\n }\n var targetName = animator.targetName;\n var target = targetName\n ? normalState[targetName] : normalState;\n animator.saveFinalToTarget(target);\n }\n };\n Element.prototype._innerSaveToNormal = function (toState) {\n var normalState = this._normalState;\n if (!normalState) {\n normalState = this._normalState = {};\n }\n if (toState.textConfig && !normalState.textConfig) {\n normalState.textConfig = this.textConfig;\n }\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n };\n Element.prototype._savePrimaryToNormal = function (toState, normalState, primaryKeys) {\n for (var i = 0; i < primaryKeys.length; i++) {\n var key = primaryKeys[i];\n if (toState[key] != null && !(key in normalState)) {\n normalState[key] = this[key];\n }\n }\n };\n Element.prototype.hasState = function () {\n return this.currentStates.length > 0;\n };\n Element.prototype.getState = function (name) {\n return this.states[name];\n };\n Element.prototype.ensureState = function (name) {\n var states = this.states;\n if (!states[name]) {\n states[name] = {};\n }\n return states[name];\n };\n Element.prototype.clearStates = function (noAnimation) {\n this.useState(PRESERVED_NORMAL_STATE, false, noAnimation);\n };\n Element.prototype.useState = function (stateName, keepCurrentStates, noAnimation, forceUseHoverLayer) {\n var toNormalState = stateName === PRESERVED_NORMAL_STATE;\n var hasStates = this.hasState();\n if (!hasStates && toNormalState) {\n return;\n }\n var currentStates = this.currentStates;\n var animationCfg = this.stateTransition;\n if (indexOf(currentStates, stateName) >= 0 && (keepCurrentStates || currentStates.length === 1)) {\n return;\n }\n var state;\n if (this.stateProxy && !toNormalState) {\n state = this.stateProxy(stateName);\n }\n if (!state) {\n state = (this.states && this.states[stateName]);\n }\n if (!state && !toNormalState) {\n logError(\"State \" + stateName + \" not exists.\");\n return;\n }\n if (!toNormalState) {\n this.saveCurrentToNormalState(state);\n }\n var useHoverLayer = !!((state && state.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n this._toggleHoverLayerFlag(true);\n }\n this._applyStateObj(stateName, state, this._normalState, keepCurrentStates, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useState(stateName, keepCurrentStates, noAnimation, useHoverLayer);\n }\n if (toNormalState) {\n this.currentStates = [];\n this._normalState = {};\n }\n else {\n if (!keepCurrentStates) {\n this.currentStates = [stateName];\n }\n else {\n this.currentStates.push(stateName);\n }\n }\n this._updateAnimationTargets();\n this.markRedraw();\n if (!useHoverLayer && this.__inHover) {\n this._toggleHoverLayerFlag(false);\n this.__dirty &= ~REDARAW_BIT;\n }\n return state;\n };\n Element.prototype.useStates = function (states, noAnimation, forceUseHoverLayer) {\n if (!states.length) {\n this.clearStates();\n }\n else {\n var stateObjects = [];\n var currentStates = this.currentStates;\n var len = states.length;\n var notChange = len === currentStates.length;\n if (notChange) {\n for (var i = 0; i < len; i++) {\n if (states[i] !== currentStates[i]) {\n notChange = false;\n break;\n }\n }\n }\n if (notChange) {\n return;\n }\n for (var i = 0; i < len; i++) {\n var stateName = states[i];\n var stateObj = void 0;\n if (this.stateProxy) {\n stateObj = this.stateProxy(stateName, states);\n }\n if (!stateObj) {\n stateObj = this.states[stateName];\n }\n if (stateObj) {\n stateObjects.push(stateObj);\n }\n }\n var lastStateObj = stateObjects[len - 1];\n var useHoverLayer = !!((lastStateObj && lastStateObj.hoverLayer) || forceUseHoverLayer);\n if (useHoverLayer) {\n this._toggleHoverLayerFlag(true);\n }\n var mergedState = this._mergeStates(stateObjects);\n var animationCfg = this.stateTransition;\n this.saveCurrentToNormalState(mergedState);\n this._applyStateObj(states.join(','), mergedState, this._normalState, false, !noAnimation && !this.__inHover && animationCfg && animationCfg.duration > 0, animationCfg);\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.useStates(states, noAnimation, useHoverLayer);\n }\n if (textGuide) {\n textGuide.useStates(states, noAnimation, useHoverLayer);\n }\n this._updateAnimationTargets();\n this.currentStates = states.slice();\n this.markRedraw();\n if (!useHoverLayer && this.__inHover) {\n this._toggleHoverLayerFlag(false);\n this.__dirty &= ~REDARAW_BIT;\n }\n }\n };\n Element.prototype._updateAnimationTargets = function () {\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n if (animator.targetName) {\n animator.changeTarget(this[animator.targetName]);\n }\n }\n };\n Element.prototype.removeState = function (state) {\n var idx = indexOf(this.currentStates, state);\n if (idx >= 0) {\n var currentStates = this.currentStates.slice();\n currentStates.splice(idx, 1);\n this.useStates(currentStates);\n }\n };\n Element.prototype.replaceState = function (oldState, newState, forceAdd) {\n var currentStates = this.currentStates.slice();\n var idx = indexOf(currentStates, oldState);\n var newStateExists = indexOf(currentStates, newState) >= 0;\n if (idx >= 0) {\n if (!newStateExists) {\n currentStates[idx] = newState;\n }\n else {\n currentStates.splice(idx, 1);\n }\n }\n else if (forceAdd && !newStateExists) {\n currentStates.push(newState);\n }\n this.useStates(currentStates);\n };\n Element.prototype.toggleState = function (state, enable) {\n if (enable) {\n this.useState(state, true);\n }\n else {\n this.removeState(state);\n }\n };\n Element.prototype._mergeStates = function (states) {\n var mergedState = {};\n var mergedTextConfig;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n extend(mergedState, state);\n if (state.textConfig) {\n mergedTextConfig = mergedTextConfig || {};\n extend(mergedTextConfig, state.textConfig);\n }\n }\n if (mergedTextConfig) {\n mergedState.textConfig = mergedTextConfig;\n }\n return mergedState;\n };\n Element.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n var needsRestoreToNormal = !(state && keepCurrentStates);\n if (state && state.textConfig) {\n this.textConfig = extend({}, keepCurrentStates ? this.textConfig : normalState.textConfig);\n extend(this.textConfig, state.textConfig);\n }\n else if (needsRestoreToNormal) {\n if (normalState.textConfig) {\n this.textConfig = normalState.textConfig;\n }\n }\n var transitionTarget = {};\n var hasTransition = false;\n for (var i = 0; i < PRIMARY_STATES_KEYS.length; i++) {\n var key = PRIMARY_STATES_KEYS[i];\n var propNeedsTransition = transition && DEFAULT_ANIMATABLE_MAP[key];\n if (state && state[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = state[key];\n }\n else {\n this[key] = state[key];\n }\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n if (propNeedsTransition) {\n hasTransition = true;\n transitionTarget[key] = normalState[key];\n }\n else {\n this[key] = normalState[key];\n }\n }\n }\n }\n if (!transition) {\n for (var i = 0; i < this.animators.length; i++) {\n var animator = this.animators[i];\n var targetName = animator.targetName;\n animator.__changeFinalValue(targetName\n ? (state || normalState)[targetName]\n : (state || normalState));\n }\n }\n if (hasTransition) {\n this._transitionState(stateName, transitionTarget, animationCfg);\n }\n };\n Element.prototype._attachComponent = function (componentEl) {\n if (componentEl.__zr && !componentEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n if (componentEl === this) {\n throw new Error('Recursive component attachment.');\n }\n var zr = this.__zr;\n if (zr) {\n componentEl.addSelfToZr(zr);\n }\n componentEl.__zr = zr;\n componentEl.__hostTarget = this;\n };\n Element.prototype._detachComponent = function (componentEl) {\n if (componentEl.__zr) {\n componentEl.removeSelfFromZr(componentEl.__zr);\n }\n componentEl.__zr = null;\n componentEl.__hostTarget = null;\n };\n Element.prototype.getClipPath = function () {\n return this._clipPath;\n };\n Element.prototype.setClipPath = function (clipPath) {\n if (this._clipPath && this._clipPath !== clipPath) {\n this.removeClipPath();\n }\n this._attachComponent(clipPath);\n this._clipPath = clipPath;\n this.markRedraw();\n };\n Element.prototype.removeClipPath = function () {\n var clipPath = this._clipPath;\n if (clipPath) {\n this._detachComponent(clipPath);\n this._clipPath = null;\n this.markRedraw();\n }\n };\n Element.prototype.getTextContent = function () {\n return this._textContent;\n };\n Element.prototype.setTextContent = function (textEl) {\n var previousTextContent = this._textContent;\n if (previousTextContent === textEl) {\n return;\n }\n if (previousTextContent && previousTextContent !== textEl) {\n this.removeTextContent();\n }\n if (textEl.__zr && !textEl.__hostTarget) {\n throw new Error('Text element has been added to zrender.');\n }\n textEl.attachedTransform = new Transformable();\n this._attachComponent(textEl);\n this._textContent = textEl;\n this.markRedraw();\n };\n Element.prototype.setTextConfig = function (cfg) {\n if (!this.textConfig) {\n this.textConfig = {};\n }\n extend(this.textConfig, cfg);\n this.markRedraw();\n };\n Element.prototype.removeTextConfig = function () {\n this.textConfig = null;\n this.markRedraw();\n };\n Element.prototype.removeTextContent = function () {\n var textEl = this._textContent;\n if (textEl) {\n textEl.attachedTransform = null;\n this._detachComponent(textEl);\n this._textContent = null;\n this._innerTextDefaultStyle = null;\n this.markRedraw();\n }\n };\n Element.prototype.getTextGuideLine = function () {\n return this._textGuide;\n };\n Element.prototype.setTextGuideLine = function (guideLine) {\n if (this._textGuide && this._textGuide !== guideLine) {\n this.removeTextGuideLine();\n }\n this._attachComponent(guideLine);\n this._textGuide = guideLine;\n this.markRedraw();\n };\n Element.prototype.removeTextGuideLine = function () {\n var textGuide = this._textGuide;\n if (textGuide) {\n this._detachComponent(textGuide);\n this._textGuide = null;\n this.markRedraw();\n }\n };\n Element.prototype.markRedraw = function () {\n this.__dirty |= REDARAW_BIT;\n var zr = this.__zr;\n if (zr) {\n if (this.__inHover) {\n zr.refreshHover();\n }\n else {\n zr.refresh();\n }\n }\n if (this.__hostTarget) {\n this.__hostTarget.markRedraw();\n }\n };\n Element.prototype.dirty = function () {\n this.markRedraw();\n };\n Element.prototype._toggleHoverLayerFlag = function (inHover) {\n this.__inHover = inHover;\n var textContent = this._textContent;\n var textGuide = this._textGuide;\n if (textContent) {\n textContent.__inHover = inHover;\n }\n if (textGuide) {\n textGuide.__inHover = inHover;\n }\n };\n Element.prototype.addSelfToZr = function (zr) {\n this.__zr = zr;\n var animators = this.animators;\n if (animators) {\n for (var i = 0; i < animators.length; i++) {\n zr.animation.addAnimator(animators[i]);\n }\n }\n if (this._clipPath) {\n this._clipPath.addSelfToZr(zr);\n }\n if (this._textContent) {\n this._textContent.addSelfToZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.addSelfToZr(zr);\n }\n };\n Element.prototype.removeSelfFromZr = function (zr) {\n this.__zr = null;\n var animators = this.animators;\n if (animators) {\n for (var i = 0; i < animators.length; i++) {\n zr.animation.removeAnimator(animators[i]);\n }\n }\n if (this._clipPath) {\n this._clipPath.removeSelfFromZr(zr);\n }\n if (this._textContent) {\n this._textContent.removeSelfFromZr(zr);\n }\n if (this._textGuide) {\n this._textGuide.removeSelfFromZr(zr);\n }\n };\n Element.prototype.animate = function (key, loop) {\n var target = key ? this[key] : this;\n if (!target) {\n logError('Property \"'\n + key\n + '\" is not existed in element '\n + this.id);\n return;\n }\n var animator = new Animator(target, loop);\n this.addAnimator(animator, key);\n return animator;\n };\n Element.prototype.addAnimator = function (animator, key) {\n var zr = this.__zr;\n var el = this;\n animator.during(function () {\n el.updateDuringAnimation(key);\n }).done(function () {\n var animators = el.animators;\n var idx = indexOf(animators, animator);\n if (idx >= 0) {\n animators.splice(idx, 1);\n }\n });\n this.animators.push(animator);\n if (zr) {\n zr.animation.addAnimator(animator);\n }\n zr && zr.wakeUp();\n };\n Element.prototype.updateDuringAnimation = function (key) {\n this.markRedraw();\n };\n Element.prototype.stopAnimation = function (scope, forwardToLast) {\n var animators = this.animators;\n var len = animators.length;\n var leftAnimators = [];\n for (var i = 0; i < len; i++) {\n var animator = animators[i];\n if (!scope || scope === animator.scope) {\n animator.stop(forwardToLast);\n }\n else {\n leftAnimators.push(animator);\n }\n }\n this.animators = leftAnimators;\n return this;\n };\n Element.prototype.animateTo = function (target, cfg, animationProps) {\n animateTo(this, target, cfg, animationProps);\n };\n Element.prototype.animateFrom = function (target, cfg, animationProps) {\n animateTo(this, target, cfg, animationProps, true);\n };\n Element.prototype._transitionState = function (stateName, target, cfg, animationProps) {\n var animators = animateTo(this, target, cfg, animationProps);\n for (var i = 0; i < animators.length; i++) {\n animators[i].__fromStateTransition = stateName;\n }\n };\n Element.prototype.getBoundingRect = function () {\n return null;\n };\n Element.prototype.getPaintRect = function () {\n return null;\n };\n Element.initDefaultProps = (function () {\n var elProto = Element.prototype;\n elProto.type = 'element';\n elProto.name = '';\n elProto.ignore = false;\n elProto.silent = false;\n elProto.isGroup = false;\n elProto.draggable = false;\n elProto.dragging = false;\n elProto.ignoreClip = false;\n elProto.__inHover = false;\n elProto.__dirty = REDARAW_BIT;\n var logs = {};\n function logDeprecatedError(key, xKey, yKey) {\n if (!logs[key + xKey + yKey]) {\n console.warn(\"DEPRECATED: '\" + key + \"' has been deprecated. use '\" + xKey + \"', '\" + yKey + \"' instead\");\n logs[key + xKey + yKey] = true;\n }\n }\n function createLegacyProperty(key, privateKey, xKey, yKey) {\n Object.defineProperty(elProto, key, {\n get: function () {\n logDeprecatedError(key, xKey, yKey);\n if (!this[privateKey]) {\n var pos = this[privateKey] = [];\n enhanceArray(this, pos);\n }\n return this[privateKey];\n },\n set: function (pos) {\n logDeprecatedError(key, xKey, yKey);\n this[xKey] = pos[0];\n this[yKey] = pos[1];\n this[privateKey] = pos;\n enhanceArray(this, pos);\n }\n });\n function enhanceArray(self, pos) {\n Object.defineProperty(pos, 0, {\n get: function () {\n return self[xKey];\n },\n set: function (val) {\n self[xKey] = val;\n }\n });\n Object.defineProperty(pos, 1, {\n get: function () {\n return self[yKey];\n },\n set: function (val) {\n self[yKey] = val;\n }\n });\n }\n }\n if (Object.defineProperty && (!env.browser.ie || env.browser.version > 8)) {\n createLegacyProperty('position', '_legacyPos', 'x', 'y');\n createLegacyProperty('scale', '_legacyScale', 'scaleX', 'scaleY');\n createLegacyProperty('origin', '_legacyOrigin', 'originX', 'originY');\n }\n })();\n return Element;\n}());\nmixin(Element, Eventful);\nmixin(Element, Transformable);\nfunction animateTo(animatable, target, cfg, animationProps, reverse) {\n cfg = cfg || {};\n var animators = [];\n animateToShallow(animatable, '', animatable, target, cfg, animationProps, animators, reverse);\n var finishCount = animators.length;\n var doneHappened = false;\n var cfgDone = cfg.done;\n var cfgAborted = cfg.aborted;\n var doneCb = function () {\n doneHappened = true;\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n var abortedCb = function () {\n finishCount--;\n if (finishCount <= 0) {\n doneHappened\n ? (cfgDone && cfgDone())\n : (cfgAborted && cfgAborted());\n }\n };\n if (!finishCount) {\n cfgDone && cfgDone();\n }\n if (animators.length > 0 && cfg.during) {\n animators[0].during(function (target, percent) {\n cfg.during(percent);\n });\n }\n for (var i = 0; i < animators.length; i++) {\n var animator = animators[i];\n if (doneCb) {\n animator.done(doneCb);\n }\n if (abortedCb) {\n animator.aborted(abortedCb);\n }\n animator.start(cfg.easing, cfg.force);\n }\n return animators;\n}\nfunction copyArrShallow(source, target, len) {\n for (var i = 0; i < len; i++) {\n source[i] = target[i];\n }\n}\nfunction is2DArray(value) {\n return isArrayLike(value[0]);\n}\nfunction copyValue(target, source, key) {\n if (isArrayLike(source[key])) {\n if (!isArrayLike(target[key])) {\n target[key] = [];\n }\n if (isTypedArray(source[key])) {\n var len = source[key].length;\n if (target[key].length !== len) {\n target[key] = new (source[key].constructor)(len);\n copyArrShallow(target[key], source[key], len);\n }\n }\n else {\n var sourceArr = source[key];\n var targetArr = target[key];\n var len0 = sourceArr.length;\n if (is2DArray(sourceArr)) {\n var len1 = sourceArr[0].length;\n for (var i = 0; i < len0; i++) {\n if (!targetArr[i]) {\n targetArr[i] = Array.prototype.slice.call(sourceArr[i]);\n }\n else {\n copyArrShallow(targetArr[i], sourceArr[i], len1);\n }\n }\n }\n else {\n copyArrShallow(targetArr, sourceArr, len0);\n }\n targetArr.length = sourceArr.length;\n }\n }\n else {\n target[key] = source[key];\n }\n}\nfunction animateToShallow(animatable, topKey, source, target, cfg, animationProps, animators, reverse) {\n var animatableKeys = [];\n var changedKeys = [];\n var targetKeys = keys(target);\n var duration = cfg.duration;\n var delay = cfg.delay;\n var additive = cfg.additive;\n var setToFinal = cfg.setToFinal;\n var animateAll = !isObject(animationProps);\n for (var k = 0; k < targetKeys.length; k++) {\n var innerKey = targetKeys[k];\n if (source[innerKey] != null\n && target[innerKey] != null\n && (animateAll || animationProps[innerKey])) {\n if (isObject(target[innerKey]) && !isArrayLike(target[innerKey])) {\n if (topKey) {\n if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n }\n continue;\n }\n animateToShallow(animatable, innerKey, source[innerKey], target[innerKey], cfg, animationProps && animationProps[innerKey], animators, reverse);\n }\n else {\n animatableKeys.push(innerKey);\n changedKeys.push(innerKey);\n }\n }\n else if (!reverse) {\n source[innerKey] = target[innerKey];\n animatable.updateDuringAnimation(topKey);\n changedKeys.push(innerKey);\n }\n }\n var keyLen = animatableKeys.length;\n if (keyLen > 0\n || (cfg.force && !animators.length)) {\n var existsAnimators = animatable.animators;\n var existsAnimatorsOnSameTarget = [];\n for (var i = 0; i < existsAnimators.length; i++) {\n if (existsAnimators[i].targetName === topKey) {\n existsAnimatorsOnSameTarget.push(existsAnimators[i]);\n }\n }\n if (!additive && existsAnimatorsOnSameTarget.length) {\n for (var i = 0; i < existsAnimatorsOnSameTarget.length; i++) {\n var allAborted = existsAnimatorsOnSameTarget[i].stopTracks(changedKeys);\n if (allAborted) {\n var idx = indexOf(existsAnimators, existsAnimatorsOnSameTarget[i]);\n existsAnimators.splice(idx, 1);\n }\n }\n }\n var revertedSource = void 0;\n var reversedTarget = void 0;\n var sourceClone = void 0;\n if (reverse) {\n reversedTarget = {};\n if (setToFinal) {\n revertedSource = {};\n }\n for (var i = 0; i < keyLen; i++) {\n var innerKey = animatableKeys[i];\n reversedTarget[innerKey] = source[innerKey];\n if (setToFinal) {\n revertedSource[innerKey] = target[innerKey];\n }\n else {\n source[innerKey] = target[innerKey];\n }\n }\n }\n else if (setToFinal) {\n sourceClone = {};\n for (var i = 0; i < keyLen; i++) {\n var innerKey = animatableKeys[i];\n sourceClone[innerKey] = cloneValue(source[innerKey]);\n copyValue(source, target, innerKey);\n }\n }\n var animator = new Animator(source, false, additive ? existsAnimatorsOnSameTarget : null);\n animator.targetName = topKey;\n if (cfg.scope) {\n animator.scope = cfg.scope;\n }\n if (setToFinal && revertedSource) {\n animator.whenWithKeys(0, revertedSource, animatableKeys);\n }\n if (sourceClone) {\n animator.whenWithKeys(0, sourceClone, animatableKeys);\n }\n animator.whenWithKeys(duration == null ? 500 : duration, reverse ? reversedTarget : target, animatableKeys).delay(delay || 0);\n animatable.addAnimator(animator, topKey);\n animators.push(animator);\n }\n}\nexport default Element;\n","import { __extends } from \"tslib\";\nimport * as zrUtil from '../core/util';\nimport Element from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nvar Group = (function (_super) {\n __extends(Group, _super);\n function Group(opts) {\n var _this = _super.call(this) || this;\n _this.isGroup = true;\n _this._children = [];\n _this.attr(opts);\n return _this;\n }\n Group.prototype.childrenRef = function () {\n return this._children;\n };\n Group.prototype.children = function () {\n return this._children.slice();\n };\n Group.prototype.childAt = function (idx) {\n return this._children[idx];\n };\n Group.prototype.childOfName = function (name) {\n var children = this._children;\n for (var i = 0; i < children.length; i++) {\n if (children[i].name === name) {\n return children[i];\n }\n }\n };\n Group.prototype.childCount = function () {\n return this._children.length;\n };\n Group.prototype.add = function (child) {\n if (child) {\n if (child !== this && child.parent !== this) {\n this._children.push(child);\n this._doAdd(child);\n }\n if (child.__hostTarget) {\n throw 'This elemenet has been used as an attachment';\n }\n }\n return this;\n };\n Group.prototype.addBefore = function (child, nextSibling) {\n if (child && child !== this && child.parent !== this\n && nextSibling && nextSibling.parent === this) {\n var children = this._children;\n var idx = children.indexOf(nextSibling);\n if (idx >= 0) {\n children.splice(idx, 0, child);\n this._doAdd(child);\n }\n }\n return this;\n };\n Group.prototype.replaceAt = function (child, index) {\n var children = this._children;\n var old = children[index];\n if (child && child !== this && child.parent !== this && child !== old) {\n children[index] = child;\n old.parent = null;\n var zr = this.__zr;\n if (zr) {\n old.removeSelfFromZr(zr);\n }\n this._doAdd(child);\n }\n return this;\n };\n Group.prototype._doAdd = function (child) {\n if (child.parent) {\n child.parent.remove(child);\n }\n child.parent = this;\n var zr = this.__zr;\n if (zr && zr !== child.__zr) {\n child.addSelfToZr(zr);\n }\n zr && zr.refresh();\n };\n Group.prototype.remove = function (child) {\n var zr = this.__zr;\n var children = this._children;\n var idx = zrUtil.indexOf(children, child);\n if (idx < 0) {\n return this;\n }\n children.splice(idx, 1);\n child.parent = null;\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n zr && zr.refresh();\n return this;\n };\n Group.prototype.removeAll = function () {\n var children = this._children;\n var zr = this.__zr;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (zr) {\n child.removeSelfFromZr(zr);\n }\n child.parent = null;\n }\n children.length = 0;\n return this;\n };\n Group.prototype.eachChild = function (cb, context) {\n var children = this._children;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n cb.call(context, child, i);\n }\n return this;\n };\n Group.prototype.traverse = function (cb, context) {\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n var stopped = cb.call(context, child);\n if (child.isGroup && !stopped) {\n child.traverse(cb, context);\n }\n }\n return this;\n };\n Group.prototype.addSelfToZr = function (zr) {\n _super.prototype.addSelfToZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.addSelfToZr(zr);\n }\n };\n Group.prototype.removeSelfFromZr = function (zr) {\n _super.prototype.removeSelfFromZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.removeSelfFromZr(zr);\n }\n };\n Group.prototype.getBoundingRect = function (includeChildren) {\n var tmpRect = new BoundingRect(0, 0, 0, 0);\n var children = includeChildren || this._children;\n var tmpMat = [];\n var rect = null;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n if (child.ignore || child.invisible) {\n continue;\n }\n var childRect = child.getBoundingRect();\n var transform = child.getLocalTransform(tmpMat);\n if (transform) {\n BoundingRect.applyTransform(tmpRect, childRect, transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n return rect || tmpRect;\n };\n return Group;\n}(Element));\nGroup.prototype.type = 'group';\nexport default Group;\n","/*!\n* ZRender, a high performance 2d drawing library.\n*\n* Copyright (c) 2013, Baidu Inc.\n* All rights reserved.\n*\n* LICENSE\n* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt\n*/\nimport env from './core/env';\nimport * as zrUtil from './core/util';\nimport Handler from './Handler';\nimport Storage from './Storage';\nimport Animation from './animation/Animation';\nimport HandlerProxy from './dom/HandlerProxy';\nimport { lum } from './tool/color';\nimport { DARK_MODE_THRESHOLD } from './config';\nimport Group from './graphic/Group';\nvar useVML = !env.canvasSupported;\nvar painterCtors = {};\nvar instances = {};\nfunction delInstance(id) {\n delete instances[id];\n}\nfunction isDarkMode(backgroundColor) {\n if (!backgroundColor) {\n return false;\n }\n if (typeof backgroundColor === 'string') {\n return lum(backgroundColor, 1) < DARK_MODE_THRESHOLD;\n }\n else if (backgroundColor.colorStops) {\n var colorStops = backgroundColor.colorStops;\n var totalLum = 0;\n var len = colorStops.length;\n for (var i = 0; i < len; i++) {\n totalLum += lum(colorStops[i].color, 1);\n }\n totalLum /= len;\n return totalLum < DARK_MODE_THRESHOLD;\n }\n return false;\n}\nvar ZRender = (function () {\n function ZRender(id, dom, opts) {\n var _this = this;\n this._sleepAfterStill = 10;\n this._stillFrameAccum = 0;\n this._needsRefresh = true;\n this._needsRefreshHover = true;\n this._darkMode = false;\n opts = opts || {};\n this.dom = dom;\n this.id = id;\n var storage = new Storage();\n var rendererType = opts.renderer || 'canvas';\n if (useVML) {\n throw new Error('IE8 support has been dropped since 5.0');\n }\n if (!painterCtors[rendererType]) {\n rendererType = zrUtil.keys(painterCtors)[0];\n }\n if (!painterCtors[rendererType]) {\n throw new Error(\"Renderer '\" + rendererType + \"' is not imported. Please import it first.\");\n }\n opts.useDirtyRect = opts.useDirtyRect == null\n ? false\n : opts.useDirtyRect;\n var painter = new painterCtors[rendererType](dom, storage, opts, id);\n this.storage = storage;\n this.painter = painter;\n var handerProxy = (!env.node && !env.worker)\n ? new HandlerProxy(painter.getViewportRoot(), painter.root)\n : null;\n this.handler = new Handler(storage, painter, handerProxy, painter.root);\n this.animation = new Animation({\n stage: {\n update: function () { return _this._flush(true); }\n }\n });\n this.animation.start();\n }\n ZRender.prototype.add = function (el) {\n if (!el) {\n return;\n }\n this.storage.addRoot(el);\n el.addSelfToZr(this);\n this.refresh();\n };\n ZRender.prototype.remove = function (el) {\n if (!el) {\n return;\n }\n this.storage.delRoot(el);\n el.removeSelfFromZr(this);\n this.refresh();\n };\n ZRender.prototype.configLayer = function (zLevel, config) {\n if (this.painter.configLayer) {\n this.painter.configLayer(zLevel, config);\n }\n this.refresh();\n };\n ZRender.prototype.setBackgroundColor = function (backgroundColor) {\n if (this.painter.setBackgroundColor) {\n this.painter.setBackgroundColor(backgroundColor);\n }\n this.refresh();\n this._backgroundColor = backgroundColor;\n this._darkMode = isDarkMode(backgroundColor);\n };\n ZRender.prototype.getBackgroundColor = function () {\n return this._backgroundColor;\n };\n ZRender.prototype.setDarkMode = function (darkMode) {\n this._darkMode = darkMode;\n };\n ZRender.prototype.isDarkMode = function () {\n return this._darkMode;\n };\n ZRender.prototype.refreshImmediately = function (fromInside) {\n if (!fromInside) {\n this.animation.update(true);\n }\n this._needsRefresh = false;\n this.painter.refresh();\n this._needsRefresh = false;\n };\n ZRender.prototype.refresh = function () {\n this._needsRefresh = true;\n this.animation.start();\n };\n ZRender.prototype.flush = function () {\n this._flush(false);\n };\n ZRender.prototype._flush = function (fromInside) {\n var triggerRendered;\n var start = new Date().getTime();\n if (this._needsRefresh) {\n triggerRendered = true;\n this.refreshImmediately(fromInside);\n }\n if (this._needsRefreshHover) {\n triggerRendered = true;\n this.refreshHoverImmediately();\n }\n var end = new Date().getTime();\n if (triggerRendered) {\n this._stillFrameAccum = 0;\n this.trigger('rendered', {\n elapsedTime: end - start\n });\n }\n else if (this._sleepAfterStill > 0) {\n this._stillFrameAccum++;\n if (this._stillFrameAccum > this._sleepAfterStill) {\n this.animation.stop();\n }\n }\n };\n ZRender.prototype.setSleepAfterStill = function (stillFramesCount) {\n this._sleepAfterStill = stillFramesCount;\n };\n ZRender.prototype.wakeUp = function () {\n this.animation.start();\n this._stillFrameAccum = 0;\n };\n ZRender.prototype.addHover = function (el) {\n };\n ZRender.prototype.removeHover = function (el) {\n };\n ZRender.prototype.clearHover = function () {\n };\n ZRender.prototype.refreshHover = function () {\n this._needsRefreshHover = true;\n };\n ZRender.prototype.refreshHoverImmediately = function () {\n this._needsRefreshHover = false;\n if (this.painter.refreshHover && this.painter.getType() === 'canvas') {\n this.painter.refreshHover();\n }\n };\n ZRender.prototype.resize = function (opts) {\n opts = opts || {};\n this.painter.resize(opts.width, opts.height);\n this.handler.resize();\n };\n ZRender.prototype.clearAnimation = function () {\n this.animation.clear();\n };\n ZRender.prototype.getWidth = function () {\n return this.painter.getWidth();\n };\n ZRender.prototype.getHeight = function () {\n return this.painter.getHeight();\n };\n ZRender.prototype.pathToImage = function (e, dpr) {\n if (this.painter.pathToImage) {\n return this.painter.pathToImage(e, dpr);\n }\n };\n ZRender.prototype.setCursorStyle = function (cursorStyle) {\n this.handler.setCursorStyle(cursorStyle);\n };\n ZRender.prototype.findHover = function (x, y) {\n return this.handler.findHover(x, y);\n };\n ZRender.prototype.on = function (eventName, eventHandler, context) {\n this.handler.on(eventName, eventHandler, context);\n return this;\n };\n ZRender.prototype.off = function (eventName, eventHandler) {\n this.handler.off(eventName, eventHandler);\n };\n ZRender.prototype.trigger = function (eventName, event) {\n this.handler.trigger(eventName, event);\n };\n ZRender.prototype.clear = function () {\n var roots = this.storage.getRoots();\n for (var i = 0; i < roots.length; i++) {\n if (roots[i] instanceof Group) {\n roots[i].removeSelfFromZr(this);\n }\n }\n this.storage.delAllRoots();\n this.painter.clear();\n };\n ZRender.prototype.dispose = function () {\n this.animation.stop();\n this.clear();\n this.storage.dispose();\n this.painter.dispose();\n this.handler.dispose();\n this.animation =\n this.storage =\n this.painter =\n this.handler = null;\n delInstance(this.id);\n };\n return ZRender;\n}());\nexport function init(dom, opts) {\n var zr = new ZRender(zrUtil.guid(), dom, opts);\n instances[zr.id] = zr;\n return zr;\n}\nexport function dispose(zr) {\n zr.dispose();\n}\nexport function disposeAll() {\n for (var key in instances) {\n if (instances.hasOwnProperty(key)) {\n instances[key].dispose();\n }\n }\n instances = {};\n}\nexport function getInstance(id) {\n return instances[id];\n}\nexport function registerPainter(name, Ctor) {\n painterCtors[name] = Ctor;\n}\nexport var version = '5.1.1';\n;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The method \"quantile\" was copied from \"d3.js\".\n* (See more details in the comment of the method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar RADIAN_EPSILON = 1e-4; // Although chrome already enlarge this number to 100 for `toFixed`, but\n// we sill follow the spec for compatibility.\n\nvar ROUND_SUPPORTED_PRECISION_MAX = 20;\n\nfunction _trim(str) {\n return str.replace(/^\\s+|\\s+$/g, '');\n}\n/**\n * Linear mapping a value from domain to range\n * @param val\n * @param domain Domain extent domain[0] can be bigger than domain[1]\n * @param range Range extent range[0] can be bigger than range[1]\n * @param clamp Default to be false\n */\n\n\nexport function linearMap(val, domain, range, clamp) {\n var d0 = domain[0];\n var d1 = domain[1];\n var r0 = range[0];\n var r1 = range[1];\n var subDomain = d1 - d0;\n var subRange = r1 - r0;\n\n if (subDomain === 0) {\n return subRange === 0 ? r0 : (r0 + r1) / 2;\n } // Avoid accuracy problem in edge, such as\n // 146.39 - 62.83 === 83.55999999999999.\n // See echarts/test/ut/spec/util/number.js#linearMap#accuracyError\n // It is a little verbose for efficiency considering this method\n // is a hotspot.\n\n\n if (clamp) {\n if (subDomain > 0) {\n if (val <= d0) {\n return r0;\n } else if (val >= d1) {\n return r1;\n }\n } else {\n if (val >= d0) {\n return r0;\n } else if (val <= d1) {\n return r1;\n }\n }\n } else {\n if (val === d0) {\n return r0;\n }\n\n if (val === d1) {\n return r1;\n }\n }\n\n return (val - d0) / subDomain * subRange + r0;\n}\n/**\n * Convert a percent string to absolute number.\n * Returns NaN if percent is not a valid string or number\n */\n\nexport function parsePercent(percent, all) {\n switch (percent) {\n case 'center':\n case 'middle':\n percent = '50%';\n break;\n\n case 'left':\n case 'top':\n percent = '0%';\n break;\n\n case 'right':\n case 'bottom':\n percent = '100%';\n break;\n }\n\n if (typeof percent === 'string') {\n if (_trim(percent).match(/%$/)) {\n return parseFloat(percent) / 100 * all;\n }\n\n return parseFloat(percent);\n }\n\n return percent == null ? NaN : +percent;\n}\nexport function round(x, precision, returnStr) {\n if (precision == null) {\n precision = 10;\n } // Avoid range error\n\n\n precision = Math.min(Math.max(0, precision), ROUND_SUPPORTED_PRECISION_MAX); // PENDING: 1.005.toFixed(2) is '1.00' rather than '1.01'\n\n x = (+x).toFixed(precision);\n return returnStr ? x : +x;\n}\n/**\n * Inplacd asc sort arr.\n * The input arr will be modified.\n */\n\nexport function asc(arr) {\n arr.sort(function (a, b) {\n return a - b;\n });\n return arr;\n}\n/**\n * Get precision.\n */\n\nexport function getPrecision(val) {\n val = +val;\n\n if (isNaN(val)) {\n return 0;\n } // It is much faster than methods converting number to string as follows\n // let tmp = val.toString();\n // return tmp.length - 1 - tmp.indexOf('.');\n // especially when precision is low\n // Notice:\n // (1) If the loop count is over about 20, it is slower than `getPrecisionSafe`.\n // (see https://jsbench.me/2vkpcekkvw/1)\n // (2) If the val is less than for example 1e-15, the result may be incorrect.\n // (see test/ut/spec/util/number.test.ts `getPrecision_equal_random`)\n\n\n if (val > 1e-14) {\n var e = 1;\n\n for (var i = 0; i < 15; i++, e *= 10) {\n if (Math.round(val * e) / e === val) {\n return i;\n }\n }\n }\n\n return getPrecisionSafe(val);\n}\n/**\n * Get precision with slow but safe method\n */\n\nexport function getPrecisionSafe(val) {\n // toLowerCase for: '3.4E-12'\n var str = val.toString().toLowerCase(); // Consider scientific notation: '3.4e-12' '3.4e+12'\n\n var eIndex = str.indexOf('e');\n var exp = eIndex > 0 ? +str.slice(eIndex + 1) : 0;\n var significandPartLen = eIndex > 0 ? eIndex : str.length;\n var dotIndex = str.indexOf('.');\n var decimalPartLen = dotIndex < 0 ? 0 : significandPartLen - 1 - dotIndex;\n return Math.max(0, decimalPartLen - exp);\n}\n/**\n * Minimal dicernible data precisioin according to a single pixel.\n */\n\nexport function getPixelPrecision(dataExtent, pixelExtent) {\n var log = Math.log;\n var LN10 = Math.LN10;\n var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);\n var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10); // toFixed() digits argument must be between 0 and 20.\n\n var precision = Math.min(Math.max(-dataQuantity + sizeQuantity, 0), 20);\n return !isFinite(precision) ? 20 : precision;\n}\n/**\n * Get a data of given precision, assuring the sum of percentages\n * in valueList is 1.\n * The largest remainer method is used.\n * https://en.wikipedia.org/wiki/Largest_remainder_method\n *\n * @param valueList a list of all data\n * @param idx index of the data to be processed in valueList\n * @param precision integer number showing digits of precision\n * @return percent ranging from 0 to 100\n */\n\nexport function getPercentWithPrecision(valueList, idx, precision) {\n if (!valueList[idx]) {\n return 0;\n }\n\n var sum = zrUtil.reduce(valueList, function (acc, val) {\n return acc + (isNaN(val) ? 0 : val);\n }, 0);\n\n if (sum === 0) {\n return 0;\n }\n\n var digits = Math.pow(10, precision);\n var votesPerQuota = zrUtil.map(valueList, function (val) {\n return (isNaN(val) ? 0 : val) / sum * digits * 100;\n });\n var targetSeats = digits * 100;\n var seats = zrUtil.map(votesPerQuota, function (votes) {\n // Assign automatic seats.\n return Math.floor(votes);\n });\n var currentSum = zrUtil.reduce(seats, function (acc, val) {\n return acc + val;\n }, 0);\n var remainder = zrUtil.map(votesPerQuota, function (votes, idx) {\n return votes - seats[idx];\n }); // Has remainding votes.\n\n while (currentSum < targetSeats) {\n // Find next largest remainder.\n var max = Number.NEGATIVE_INFINITY;\n var maxId = null;\n\n for (var i = 0, len = remainder.length; i < len; ++i) {\n if (remainder[i] > max) {\n max = remainder[i];\n maxId = i;\n }\n } // Add a vote to max remainder.\n\n\n ++seats[maxId];\n remainder[maxId] = 0;\n ++currentSum;\n }\n\n return seats[idx] / digits;\n}\n/**\n * Solve the floating point adding problem like 0.1 + 0.2 === 0.30000000000000004\n * See \n */\n\nexport function addSafe(val0, val1) {\n var maxPrecision = Math.max(getPrecision(val0), getPrecision(val1)); // const multiplier = Math.pow(10, maxPrecision);\n // return (Math.round(val0 * multiplier) + Math.round(val1 * multiplier)) / multiplier;\n\n var sum = val0 + val1; // // PENDING: support more?\n\n return maxPrecision > ROUND_SUPPORTED_PRECISION_MAX ? sum : round(sum, maxPrecision);\n} // Number.MAX_SAFE_INTEGER, ie do not support.\n\nexport var MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * To 0 - 2 * PI, considering negative radian.\n */\n\nexport function remRadian(radian) {\n var pi2 = Math.PI * 2;\n return (radian % pi2 + pi2) % pi2;\n}\n/**\n * @param {type} radian\n * @return {boolean}\n */\n\nexport function isRadianAroundZero(val) {\n return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;\n} // eslint-disable-next-line\n\nvar TIME_REG = /^(?:(\\d{4})(?:[-\\/](\\d{1,2})(?:[-\\/](\\d{1,2})(?:[T ](\\d{1,2})(?::(\\d{1,2})(?::(\\d{1,2})(?:[.,](\\d+))?)?)?(Z|[\\+\\-]\\d\\d:?\\d\\d)?)?)?)?)?$/; // jshint ignore:line\n\n/**\n * @param value valid type: number | string | Date, otherwise return `new Date(NaN)`\n * These values can be accepted:\n * + An instance of Date, represent a time in its own time zone.\n * + Or string in a subset of ISO 8601, only including:\n * + only year, month, date: '2012-03', '2012-03-01', '2012-03-01 05', '2012-03-01 05:06',\n * + separated with T or space: '2012-03-01T12:22:33.123', '2012-03-01 12:22:33.123',\n * + time zone: '2012-03-01T12:22:33Z', '2012-03-01T12:22:33+8000', '2012-03-01T12:22:33-05:00',\n * all of which will be treated as local time if time zone is not specified\n * (see ).\n * + Or other string format, including (all of which will be treated as loacal time):\n * '2012', '2012-3-1', '2012/3/1', '2012/03/01',\n * '2009/6/12 2:00', '2009/6/12 2:05:08', '2009/6/12 2:05:08.123'\n * + a timestamp, which represent a time in UTC.\n * @return date Never be null/undefined. If invalid, return `new Date(NaN)`.\n */\n\nexport function parseDate(value) {\n if (value instanceof Date) {\n return value;\n } else if (typeof value === 'string') {\n // Different browsers parse date in different way, so we parse it manually.\n // Some other issues:\n // new Date('1970-01-01') is UTC,\n // new Date('1970/01/01') and new Date('1970-1-01') is local.\n // See issue #3623\n var match = TIME_REG.exec(value);\n\n if (!match) {\n // return Invalid Date.\n return new Date(NaN);\n } // Use local time when no timezone offset specifed.\n\n\n if (!match[8]) {\n // match[n] can only be string or undefined.\n // But take care of '12' + 1 => '121'.\n return new Date(+match[1], +(match[2] || 1) - 1, +match[3] || 1, +match[4] || 0, +(match[5] || 0), +match[6] || 0, +match[7] || 0);\n } // Timezoneoffset of Javascript Date has considered DST (Daylight Saving Time,\n // https://tc39.github.io/ecma262/#sec-daylight-saving-time-adjustment).\n // For example, system timezone is set as \"Time Zone: America/Toronto\",\n // then these code will get different result:\n // `new Date(1478411999999).getTimezoneOffset(); // get 240`\n // `new Date(1478412000000).getTimezoneOffset(); // get 300`\n // So we should not use `new Date`, but use `Date.UTC`.\n else {\n var hour = +match[4] || 0;\n\n if (match[8].toUpperCase() !== 'Z') {\n hour -= +match[8].slice(0, 3);\n }\n\n return new Date(Date.UTC(+match[1], +(match[2] || 1) - 1, +match[3] || 1, hour, +(match[5] || 0), +match[6] || 0, +match[7] || 0));\n }\n } else if (value == null) {\n return new Date(NaN);\n }\n\n return new Date(Math.round(value));\n}\n/**\n * Quantity of a number. e.g. 0.1, 1, 10, 100\n *\n * @param val\n * @return\n */\n\nexport function quantity(val) {\n return Math.pow(10, quantityExponent(val));\n}\n/**\n * Exponent of the quantity of a number\n * e.g., 1234 equals to 1.234*10^3, so quantityExponent(1234) is 3\n *\n * @param val non-negative value\n * @return\n */\n\nexport function quantityExponent(val) {\n if (val === 0) {\n return 0;\n }\n\n var exp = Math.floor(Math.log(val) / Math.LN10);\n /**\n * exp is expected to be the rounded-down result of the base-10 log of val.\n * But due to the precision loss with Math.log(val), we need to restore it\n * using 10^exp to make sure we can get val back from exp. #11249\n */\n\n if (val / Math.pow(10, exp) >= 10) {\n exp++;\n }\n\n return exp;\n}\n/**\n * find a “nice” number approximately equal to x. Round the number if round = true,\n * take ceiling if round = false. The primary observation is that the “nicest”\n * numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.\n *\n * See \"Nice Numbers for Graph Labels\" of Graphic Gems.\n *\n * @param val Non-negative value.\n * @param round\n * @return Niced number\n */\n\nexport function nice(val, round) {\n var exponent = quantityExponent(val);\n var exp10 = Math.pow(10, exponent);\n var f = val / exp10; // 1 <= f < 10\n\n var nf;\n\n if (round) {\n if (f < 1.5) {\n nf = 1;\n } else if (f < 2.5) {\n nf = 2;\n } else if (f < 4) {\n nf = 3;\n } else if (f < 7) {\n nf = 5;\n } else {\n nf = 10;\n }\n } else {\n if (f < 1) {\n nf = 1;\n } else if (f < 2) {\n nf = 2;\n } else if (f < 3) {\n nf = 3;\n } else if (f < 5) {\n nf = 5;\n } else {\n nf = 10;\n }\n }\n\n val = nf * exp10; // Fix 3 * 0.1 === 0.30000000000000004 issue (see IEEE 754).\n // 20 is the uppper bound of toFixed.\n\n return exponent >= -20 ? +val.toFixed(exponent < 0 ? -exponent : 0) : val;\n}\n/**\n * This code was copied from \"d3.js\"\n * .\n * See the license statement at the head of this file.\n * @param ascArr\n */\n\nexport function quantile(ascArr, p) {\n var H = (ascArr.length - 1) * p + 1;\n var h = Math.floor(H);\n var v = +ascArr[h - 1];\n var e = H - h;\n return e ? v + e * (ascArr[h] - v) : v;\n}\n/**\n * Order intervals asc, and split them when overlap.\n * expect(numberUtil.reformIntervals([\n * {interval: [18, 62], close: [1, 1]},\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [1, 1]},\n * {interval: [62, 150], close: [1, 1]},\n * {interval: [106, 150], close: [1, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ])).toEqual([\n * {interval: [-Infinity, -70], close: [0, 0]},\n * {interval: [-70, -26], close: [1, 1]},\n * {interval: [-26, 18], close: [0, 1]},\n * {interval: [18, 62], close: [0, 1]},\n * {interval: [62, 150], close: [0, 1]},\n * {interval: [150, Infinity], close: [0, 0]}\n * ]);\n * @param list, where `close` mean open or close\n * of the interval, and Infinity can be used.\n * @return The origin list, which has been reformed.\n */\n\nexport function reformIntervals(list) {\n list.sort(function (a, b) {\n return littleThan(a, b, 0) ? -1 : 1;\n });\n var curr = -Infinity;\n var currClose = 1;\n\n for (var i = 0; i < list.length;) {\n var interval = list[i].interval;\n var close_1 = list[i].close;\n\n for (var lg = 0; lg < 2; lg++) {\n if (interval[lg] <= curr) {\n interval[lg] = curr;\n close_1[lg] = !lg ? 1 - currClose : 1;\n }\n\n curr = interval[lg];\n currClose = close_1[lg];\n }\n\n if (interval[0] === interval[1] && close_1[0] * close_1[1] !== 1) {\n list.splice(i, 1);\n } else {\n i++;\n }\n }\n\n return list;\n\n function littleThan(a, b, lg) {\n return a.interval[lg] < b.interval[lg] || a.interval[lg] === b.interval[lg] && (a.close[lg] - b.close[lg] === (!lg ? 1 : -1) || !lg && littleThan(a, b, 1));\n }\n}\n/**\n * [Numberic is defined as]:\n * `parseFloat(val) == val`\n * For example:\n * numeric:\n * typeof number except NaN, '-123', '123', '2e3', '-2e3', '011', 'Infinity', Infinity,\n * and they rounded by white-spaces or line-terminal like ' -123 \\n ' (see es spec)\n * not-numeric:\n * null, undefined, [], {}, true, false, 'NaN', NaN, '123ab',\n * empty string, string with only white-spaces or line-terminal (see es spec),\n * 0x12, '0x12', '-0x12', 012, '012', '-012',\n * non-string, ...\n *\n * @test See full test cases in `test/ut/spec/util/number.js`.\n * @return Must be a typeof number. If not numeric, return NaN.\n */\n\nexport function numericToNumber(val) {\n var valFloat = parseFloat(val);\n return valFloat == val // eslint-disable-line eqeqeq\n && (valFloat !== 0 || typeof val !== 'string' || val.indexOf('x') <= 0) // For case ' 0x0 '.\n ? valFloat : NaN;\n}\n/**\n * Definition of \"numeric\": see `numericToNumber`.\n */\n\nexport function isNumeric(val) {\n return !isNaN(numericToNumber(val));\n}\n/**\n * Use random base to prevent users hard code depending on\n * this auto generated marker id.\n * @return An positive integer.\n */\n\nexport function getRandomIdBase() {\n return Math.round(Math.random() * 9);\n}\n/**\n * Get the greatest common dividor\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\n\nexport function getGreatestCommonDividor(a, b) {\n if (b === 0) {\n return a;\n }\n\n return getGreatestCommonDividor(b, a % b);\n}\n/**\n * Get the least common multiple\n *\n * @param {number} a one number\n * @param {number} b the other number\n */\n\nexport function getLeastCommonMultiple(a, b) {\n if (a == null) {\n return b;\n }\n\n if (b == null) {\n return a;\n }\n\n return a * b / getGreatestCommonDividor(a, b);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { map, isString, isFunction, eqNaN, isRegExp } from 'zrender/lib/core/util';\nvar ECHARTS_PREFIX = '[ECharts] ';\nvar storedLogs = {};\nvar hasConsole = typeof console !== 'undefined' // eslint-disable-next-line\n&& console.warn && console.log;\nexport function log(str) {\n if (hasConsole) {\n // eslint-disable-next-line\n console.log(ECHARTS_PREFIX + str);\n }\n}\nexport function warn(str) {\n if (hasConsole) {\n console.warn(ECHARTS_PREFIX + str);\n }\n}\nexport function error(str) {\n if (hasConsole) {\n console.error(ECHARTS_PREFIX + str);\n }\n}\nexport function deprecateLog(str) {\n if (process.env.NODE_ENV !== 'production') {\n if (storedLogs[str]) {\n // Not display duplicate message.\n return;\n }\n\n if (hasConsole) {\n storedLogs[str] = true;\n console.warn(ECHARTS_PREFIX + 'DEPRECATED: ' + str);\n }\n }\n}\nexport function deprecateReplaceLog(oldOpt, newOpt, scope) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog((scope ? \"[\" + scope + \"]\" : '') + (oldOpt + \" is deprecated, use \" + newOpt + \" instead.\"));\n }\n}\nexport function consoleLog() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && console.log) {\n console.log.apply(console, args);\n }\n /* eslint-enable no-console */\n\n }\n}\n/**\n * If in __DEV__ environment, get console printable message for users hint.\n * Parameters are separated by ' '.\n * @usuage\n * makePrintable('This is an error on', someVar, someObj);\n *\n * @param hintInfo anything about the current execution context to hint users.\n * @throws Error\n */\n\nexport function makePrintable() {\n var hintInfo = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n hintInfo[_i] = arguments[_i];\n }\n\n var msg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n // Fuzzy stringify for print.\n // This code only exist in dev environment.\n var makePrintableStringIfPossible_1 = function (val) {\n return val === void 0 ? 'undefined' : val === Infinity ? 'Infinity' : val === -Infinity ? '-Infinity' : eqNaN(val) ? 'NaN' : val instanceof Date ? 'Date(' + val.toISOString() + ')' : isFunction(val) ? 'function () { ... }' : isRegExp(val) ? val + '' : null;\n };\n\n msg = map(hintInfo, function (arg) {\n if (isString(arg)) {\n // Print without quotation mark for some statement.\n return arg;\n } else {\n var printableStr = makePrintableStringIfPossible_1(arg);\n\n if (printableStr != null) {\n return printableStr;\n } else if (typeof JSON !== 'undefined' && JSON.stringify) {\n try {\n return JSON.stringify(arg, function (n, val) {\n var printableStr = makePrintableStringIfPossible_1(val);\n return printableStr == null ? val : printableStr;\n }); // In most cases the info object is small, so do not line break.\n } catch (err) {\n return '?';\n }\n } else {\n return '?';\n }\n }\n }).join(' ');\n }\n\n return msg;\n}\n/**\n * @throws Error\n */\n\nexport function throwError(msg) {\n throw new Error(msg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isObject, isArray, createHashMap, map, assert, isString, indexOf, isStringSafe } from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { isNumeric, getRandomIdBase, getPrecision, round } from './number';\nimport { interpolateNumber } from 'zrender/lib/animation/Animator';\nimport { warn } from './log';\n/**\n * Make the name displayable. But we should\n * make sure it is not duplicated with user\n * specified name, so use '\\0';\n */\n\nvar DUMMY_COMPONENT_NAME_PREFIX = 'series\\0';\nvar INTERNAL_COMPONENT_ID_PREFIX = '\\0_ec_\\0';\n/**\n * If value is not array, then translate it to array.\n * @param {*} value\n * @return {Array} [value] or value\n */\n\nexport function normalizeToArray(value) {\n return value instanceof Array ? value : value == null ? [] : [value];\n}\n/**\n * Sync default option between normal and emphasis like `position` and `show`\n * In case some one will write code like\n * label: {\n * show: false,\n * position: 'outside',\n * fontSize: 18\n * },\n * emphasis: {\n * label: { show: true }\n * }\n */\n\nexport function defaultEmphasis(opt, key, subOpts) {\n // Caution: performance sensitive.\n if (opt) {\n opt[key] = opt[key] || {};\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[key] = opt.emphasis[key] || {}; // Default emphasis option from normal\n\n for (var i = 0, len = subOpts.length; i < len; i++) {\n var subOptName = subOpts[i];\n\n if (!opt.emphasis[key].hasOwnProperty(subOptName) && opt[key].hasOwnProperty(subOptName)) {\n opt.emphasis[key][subOptName] = opt[key][subOptName];\n }\n }\n }\n}\nexport var TEXT_STYLE_OPTIONS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding']; // modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([\n// 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',\n// 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',\n// // FIXME: deprecated, check and remove it.\n// 'textStyle'\n// ]);\n\n/**\n * The method do not ensure performance.\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method retieves value from data.\n */\n\nexport function getDataItemValue(dataItem) {\n return isObject(dataItem) && !isArray(dataItem) && !(dataItem instanceof Date) ? dataItem.value : dataItem;\n}\n/**\n * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]\n * This helper method determine if dataItem has extra option besides value\n */\n\nexport function isDataItemOption(dataItem) {\n return isObject(dataItem) && !(dataItem instanceof Array); // // markLine data can be array\n // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));\n}\n;\n/**\n * Mapping to existings for merge.\n *\n * Mode \"normalMege\":\n * The mapping result (merge result) will keep the order of the existing\n * component, rather than the order of new option. Because we should ensure\n * some specified index reference (like xAxisIndex) keep work.\n * And in most cases, \"merge option\" is used to update partial option but not\n * be expected to change the order.\n *\n * Mode \"replaceMege\":\n * (1) Only the id mapped components will be merged.\n * (2) Other existing components (except internal compoonets) will be removed.\n * (3) Other new options will be used to create new component.\n * (4) The index of the existing compoents will not be modified.\n * That means their might be \"hole\" after the removal.\n * The new components are created first at those available index.\n *\n * Mode \"replaceAll\":\n * This mode try to support that reproduce an echarts instance from another\n * echarts instance (via `getOption`) in some simple cases.\n * In this senario, the `result` index are exactly the consistent with the `newCmptOptions`,\n * which ensures the compoennt index referring (like `xAxisIndex: ?`) corrent. That is,\n * the \"hole\" in `newCmptOptions` will also be kept.\n * On the contrary, other modes try best to eliminate holes.\n * PENDING: This is an experimental mode yet.\n *\n * @return See the comment of .\n */\n\nexport function mappingToExists(existings, newCmptOptions, mode) {\n var isNormalMergeMode = mode === 'normalMerge';\n var isReplaceMergeMode = mode === 'replaceMerge';\n var isReplaceAllMode = mode === 'replaceAll';\n existings = existings || [];\n newCmptOptions = (newCmptOptions || []).slice();\n var existingIdIdxMap = createHashMap(); // Validate id and name on user input option.\n\n each(newCmptOptions, function (cmptOption, index) {\n if (!isObject(cmptOption)) {\n newCmptOptions[index] = null;\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // There is some legacy case that name is set as `false`.\n // But should work normally rather than throw error.\n if (cmptOption.id != null && !isValidIdOrName(cmptOption.id)) {\n warnInvalidateIdOrName(cmptOption.id);\n }\n\n if (cmptOption.name != null && !isValidIdOrName(cmptOption.name)) {\n warnInvalidateIdOrName(cmptOption.name);\n }\n }\n });\n var result = prepareResult(existings, existingIdIdxMap, mode);\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingById(result, existings, existingIdIdxMap, newCmptOptions);\n }\n\n if (isNormalMergeMode) {\n mappingByName(result, newCmptOptions);\n }\n\n if (isNormalMergeMode || isReplaceMergeMode) {\n mappingByIndex(result, newCmptOptions, isReplaceMergeMode);\n } else if (isReplaceAllMode) {\n mappingInReplaceAllMode(result, newCmptOptions);\n }\n\n makeIdAndName(result); // The array `result` MUST NOT contain elided items, otherwise the\n // forEach will ommit those items and result in incorrect result.\n\n return result;\n}\n\nfunction prepareResult(existings, existingIdIdxMap, mode) {\n var result = [];\n\n if (mode === 'replaceAll') {\n return result;\n } // Do not use native `map` to in case that the array `existings`\n // contains elided items, which will be ommited.\n\n\n for (var index = 0; index < existings.length; index++) {\n var existing = existings[index]; // Because of replaceMerge, `existing` may be null/undefined.\n\n if (existing && existing.id != null) {\n existingIdIdxMap.set(existing.id, index);\n } // For non-internal-componnets:\n // Mode \"normalMerge\": all existings kept.\n // Mode \"replaceMerge\": all existing removed unless mapped by id.\n // For internal-components:\n // go with \"replaceMerge\" approach in both mode.\n\n\n result.push({\n existing: mode === 'replaceMerge' || isComponentIdInternal(existing) ? null : existing,\n newOption: null,\n keyInfo: null,\n brandNew: null\n });\n }\n\n return result;\n}\n\nfunction mappingById(result, existings, existingIdIdxMap, newCmptOptions) {\n // Mapping by id if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.id == null) {\n return;\n }\n\n var optionId = makeComparableKey(cmptOption.id);\n var existingIdx = existingIdIdxMap.get(optionId);\n\n if (existingIdx != null) {\n var resultItem = result[existingIdx];\n assert(!resultItem.newOption, 'Duplicated option on id \"' + optionId + '\".');\n resultItem.newOption = cmptOption; // In both mode, if id matched, new option will be merged to\n // the existings rather than creating new component model.\n\n resultItem.existing = existings[existingIdx];\n newCmptOptions[index] = null;\n }\n });\n}\n\nfunction mappingByName(result, newCmptOptions) {\n // Mapping by name if specified.\n each(newCmptOptions, function (cmptOption, index) {\n if (!cmptOption || cmptOption.name == null) {\n return;\n }\n\n for (var i = 0; i < result.length; i++) {\n var existing = result[i].existing;\n\n if (!result[i].newOption // Consider name: two map to one.\n // Can not match when both ids existing but different.\n && existing && (existing.id == null || cmptOption.id == null) && !isComponentIdInternal(cmptOption) && !isComponentIdInternal(existing) && keyExistAndEqual('name', existing, cmptOption)) {\n result[i].newOption = cmptOption;\n newCmptOptions[index] = null;\n return;\n }\n }\n });\n}\n\nfunction mappingByIndex(result, newCmptOptions, brandNew) {\n each(newCmptOptions, function (cmptOption) {\n if (!cmptOption) {\n return;\n } // Find the first place that not mapped by id and not internal component (consider the \"hole\").\n\n\n var resultItem;\n var nextIdx = 0;\n\n while ( // Be `!resultItem` only when `nextIdx >= result.length`.\n (resultItem = result[nextIdx]) && ( // (1) Existing models that already have id should be able to mapped to. Because\n // after mapping performed, model will always be assigned with an id if user not given.\n // After that all models have id.\n // (2) If new option has id, it can only set to a hole or append to the last. It should\n // not be merged to the existings with different id. Because id should not be overwritten.\n // (3) Name can be overwritten, because axis use name as 'show label text'.\n resultItem.newOption || isComponentIdInternal(resultItem.existing) || // In mode \"replaceMerge\", here no not-mapped-non-internal-existing.\n resultItem.existing && cmptOption.id != null && !keyExistAndEqual('id', cmptOption, resultItem.existing))) {\n nextIdx++;\n }\n\n if (resultItem) {\n resultItem.newOption = cmptOption;\n resultItem.brandNew = brandNew;\n } else {\n result.push({\n newOption: cmptOption,\n brandNew: brandNew,\n existing: null,\n keyInfo: null\n });\n }\n\n nextIdx++;\n });\n}\n\nfunction mappingInReplaceAllMode(result, newCmptOptions) {\n each(newCmptOptions, function (cmptOption) {\n // The feature \"reproduce\" requires \"hole\" will also reproduced\n // in case that compoennt index referring are broken.\n result.push({\n newOption: cmptOption,\n brandNew: true,\n existing: null,\n keyInfo: null\n });\n });\n}\n/**\n * Make id and name for mapping result (result of mappingToExists)\n * into `keyInfo` field.\n */\n\n\nfunction makeIdAndName(mapResult) {\n // We use this id to hash component models and view instances\n // in echarts. id can be specified by user, or auto generated.\n // The id generation rule ensures new view instance are able\n // to mapped to old instance when setOption are called in\n // no-merge mode. So we generate model id by name and plus\n // type in view id.\n // name can be duplicated among components, which is convenient\n // to specify multi components (like series) by one name.\n // Ensure that each id is distinct.\n var idMap = createHashMap();\n each(mapResult, function (item) {\n var existing = item.existing;\n existing && idMap.set(existing.id, item);\n });\n each(mapResult, function (item) {\n var opt = item.newOption; // Force ensure id not duplicated.\n\n assert(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id));\n opt && opt.id != null && idMap.set(opt.id, item);\n !item.keyInfo && (item.keyInfo = {});\n }); // Make name and id.\n\n each(mapResult, function (item, index) {\n var existing = item.existing;\n var opt = item.newOption;\n var keyInfo = item.keyInfo;\n\n if (!isObject(opt)) {\n return;\n } // name can be overwitten. Consider case: axis.name = '20km'.\n // But id generated by name will not be changed, which affect\n // only in that case: setOption with 'not merge mode' and view\n // instance will be recreated, which can be accepted.\n\n\n keyInfo.name = opt.name != null ? makeComparableKey(opt.name) : existing ? existing.name // Avoid diffferent series has the same name,\n // because name may be used like in color pallet.\n : DUMMY_COMPONENT_NAME_PREFIX + index;\n\n if (existing) {\n keyInfo.id = makeComparableKey(existing.id);\n } else if (opt.id != null) {\n keyInfo.id = makeComparableKey(opt.id);\n } else {\n // Consider this situatoin:\n // optionA: [{name: 'a'}, {name: 'a'}, {..}]\n // optionB [{..}, {name: 'a'}, {name: 'a'}]\n // Series with the same name between optionA and optionB\n // should be mapped.\n var idNum = 0;\n\n do {\n keyInfo.id = '\\0' + keyInfo.name + '\\0' + idNum++;\n } while (idMap.get(keyInfo.id));\n }\n\n idMap.set(keyInfo.id, item);\n });\n}\n\nfunction keyExistAndEqual(attr, obj1, obj2) {\n var key1 = convertOptionIdName(obj1[attr], null);\n var key2 = convertOptionIdName(obj2[attr], null); // See `MappingExistingItem`. `id` and `name` trade string equals to number.\n\n return key1 != null && key2 != null && key1 === key2;\n}\n/**\n * @return return null if not exist.\n */\n\n\nfunction makeComparableKey(val) {\n if (process.env.NODE_ENV !== 'production') {\n if (val == null) {\n throw new Error();\n }\n }\n\n return convertOptionIdName(val, '');\n}\n\nexport function convertOptionIdName(idOrName, defaultValue) {\n if (idOrName == null) {\n return defaultValue;\n }\n\n var type = typeof idOrName;\n return type === 'string' ? idOrName : type === 'number' || isStringSafe(idOrName) ? idOrName + '' : defaultValue;\n}\n\nfunction warnInvalidateIdOrName(idOrName) {\n if (process.env.NODE_ENV !== 'production') {\n warn('`' + idOrName + '` is invalid id or name. Must be a string or number.');\n }\n}\n\nfunction isValidIdOrName(idOrName) {\n return isStringSafe(idOrName) || isNumeric(idOrName);\n}\n\nexport function isNameSpecified(componentModel) {\n var name = componentModel.name; // Is specified when `indexOf` get -1 or > 0.\n\n return !!(name && name.indexOf(DUMMY_COMPONENT_NAME_PREFIX));\n}\n/**\n * @public\n * @param {Object} cmptOption\n * @return {boolean}\n */\n\nexport function isComponentIdInternal(cmptOption) {\n return cmptOption && cmptOption.id != null && makeComparableKey(cmptOption.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX) === 0;\n}\nexport function makeInternalComponentId(idSuffix) {\n return INTERNAL_COMPONENT_ID_PREFIX + idSuffix;\n}\nexport function setComponentTypeToKeyInfo(mappingResult, mainType, componentModelCtor) {\n // Set mainType and complete subType.\n each(mappingResult, function (item) {\n var newOption = item.newOption;\n\n if (isObject(newOption)) {\n item.keyInfo.mainType = mainType;\n item.keyInfo.subType = determineSubType(mainType, newOption, item.existing, componentModelCtor);\n }\n });\n}\n\nfunction determineSubType(mainType, newCmptOption, existComponent, componentModelCtor) {\n var subType = newCmptOption.type ? newCmptOption.type : existComponent ? existComponent.subType // Use determineSubType only when there is no existComponent.\n : componentModelCtor.determineSubType(mainType, newCmptOption); // tooltip, markline, markpoint may always has no subType\n\n return subType;\n}\n/**\n * A helper for removing duplicate items between batchA and batchB,\n * and in themselves, and categorize by series.\n *\n * @param batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @param batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]\n * @return result: [resultBatchA, resultBatchB]\n */\n\n\nexport function compressBatches(batchA, batchB) {\n var mapA = {};\n var mapB = {};\n makeMap(batchA || [], mapA);\n makeMap(batchB || [], mapB, mapA);\n return [mapToArray(mapA), mapToArray(mapB)];\n\n function makeMap(sourceBatch, map, otherMap) {\n for (var i = 0, len = sourceBatch.length; i < len; i++) {\n var seriesId = convertOptionIdName(sourceBatch[i].seriesId, null);\n\n if (seriesId == null) {\n return;\n }\n\n var dataIndices = normalizeToArray(sourceBatch[i].dataIndex);\n var otherDataIndices = otherMap && otherMap[seriesId];\n\n for (var j = 0, lenj = dataIndices.length; j < lenj; j++) {\n var dataIndex = dataIndices[j];\n\n if (otherDataIndices && otherDataIndices[dataIndex]) {\n otherDataIndices[dataIndex] = null;\n } else {\n (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;\n }\n }\n }\n }\n\n function mapToArray(map, isData) {\n var result = [];\n\n for (var i in map) {\n if (map.hasOwnProperty(i) && map[i] != null) {\n if (isData) {\n result.push(+i);\n } else {\n var dataIndices = mapToArray(map[i], true);\n dataIndices.length && result.push({\n seriesId: i,\n dataIndex: dataIndices\n });\n }\n }\n }\n\n return result;\n }\n}\n/**\n * @param payload Contains dataIndex (means rawIndex) / dataIndexInside / name\n * each of which can be Array or primary type.\n * @return dataIndex If not found, return undefined/null.\n */\n\nexport function queryDataIndex(data, payload) {\n if (payload.dataIndexInside != null) {\n return payload.dataIndexInside;\n } else if (payload.dataIndex != null) {\n return isArray(payload.dataIndex) ? map(payload.dataIndex, function (value) {\n return data.indexOfRawIndex(value);\n }) : data.indexOfRawIndex(payload.dataIndex);\n } else if (payload.name != null) {\n return isArray(payload.name) ? map(payload.name, function (value) {\n return data.indexOfName(value);\n }) : data.indexOfName(payload.name);\n }\n}\n/**\n * Enable property storage to any host object.\n * Notice: Serialization is not supported.\n *\n * For example:\n * let inner = zrUitl.makeInner();\n *\n * function some1(hostObj) {\n * inner(hostObj).someProperty = 1212;\n * ...\n * }\n * function some2() {\n * let fields = inner(this);\n * fields.someProperty1 = 1212;\n * fields.someProperty2 = 'xx';\n * ...\n * }\n *\n * @return {Function}\n */\n\nexport function makeInner() {\n var key = '__ec_inner_' + innerUniqueIndex++;\n return function (hostObj) {\n return hostObj[key] || (hostObj[key] = {});\n };\n}\nvar innerUniqueIndex = getRandomIdBase();\n/**\n * The same behavior as `component.getReferringComponents`.\n */\n\nexport function parseFinder(ecModel, finderInput, opt) {\n var _a = preParseFinder(finderInput, opt),\n mainTypeSpecified = _a.mainTypeSpecified,\n queryOptionMap = _a.queryOptionMap,\n others = _a.others;\n\n var result = others;\n var defaultMainType = opt ? opt.defaultMainType : null;\n\n if (!mainTypeSpecified && defaultMainType) {\n queryOptionMap.set(defaultMainType, {});\n }\n\n queryOptionMap.each(function (queryOption, mainType) {\n var queryResult = queryReferringComponents(ecModel, mainType, queryOption, {\n useDefault: defaultMainType === mainType,\n enableAll: opt && opt.enableAll != null ? opt.enableAll : true,\n enableNone: opt && opt.enableNone != null ? opt.enableNone : true\n });\n result[mainType + 'Models'] = queryResult.models;\n result[mainType + 'Model'] = queryResult.models[0];\n });\n return result;\n}\nexport function preParseFinder(finderInput, opt) {\n var finder;\n\n if (isString(finderInput)) {\n var obj = {};\n obj[finderInput + 'Index'] = 0;\n finder = obj;\n } else {\n finder = finderInput;\n }\n\n var queryOptionMap = createHashMap();\n var others = {};\n var mainTypeSpecified = false;\n each(finder, function (value, key) {\n // Exclude 'dataIndex' and other illgal keys.\n if (key === 'dataIndex' || key === 'dataIndexInside') {\n others[key] = value;\n return;\n }\n\n var parsedKey = key.match(/^(\\w+)(Index|Id|Name)$/) || [];\n var mainType = parsedKey[1];\n var queryType = (parsedKey[2] || '').toLowerCase();\n\n if (!mainType || !queryType || opt && opt.includeMainTypes && indexOf(opt.includeMainTypes, mainType) < 0) {\n return;\n }\n\n mainTypeSpecified = mainTypeSpecified || !!mainType;\n var queryOption = queryOptionMap.get(mainType) || queryOptionMap.set(mainType, {});\n queryOption[queryType] = value;\n });\n return {\n mainTypeSpecified: mainTypeSpecified,\n queryOptionMap: queryOptionMap,\n others: others\n };\n}\nexport var SINGLE_REFERRING = {\n useDefault: true,\n enableAll: false,\n enableNone: false\n};\nexport var MULTIPLE_REFERRING = {\n useDefault: false,\n enableAll: true,\n enableNone: true\n};\nexport function queryReferringComponents(ecModel, mainType, userOption, opt) {\n opt = opt || SINGLE_REFERRING;\n var indexOption = userOption.index;\n var idOption = userOption.id;\n var nameOption = userOption.name;\n var result = {\n models: null,\n specified: indexOption != null || idOption != null || nameOption != null\n };\n\n if (!result.specified) {\n // Use the first as default if `useDefault`.\n var firstCmpt = void 0;\n result.models = opt.useDefault && (firstCmpt = ecModel.getComponent(mainType)) ? [firstCmpt] : [];\n return result;\n }\n\n if (indexOption === 'none' || indexOption === false) {\n assert(opt.enableNone, '`\"none\"` or `false` is not a valid value on index option.');\n result.models = [];\n return result;\n } // `queryComponents` will return all components if\n // both all of index/id/name are null/undefined.\n\n\n if (indexOption === 'all') {\n assert(opt.enableAll, '`\"all\"` is not a valid value on index option.');\n indexOption = idOption = nameOption = null;\n }\n\n result.models = ecModel.queryComponents({\n mainType: mainType,\n index: indexOption,\n id: idOption,\n name: nameOption\n });\n return result;\n}\nexport function setAttribute(dom, key, value) {\n dom.setAttribute ? dom.setAttribute(key, value) : dom[key] = value;\n}\nexport function getAttribute(dom, key) {\n return dom.getAttribute ? dom.getAttribute(key) : dom[key];\n}\nexport function getTooltipRenderMode(renderModeOption) {\n if (renderModeOption === 'auto') {\n // Using html when `document` exists, use richText otherwise\n return env.domSupported ? 'html' : 'richText';\n } else {\n return renderModeOption || 'html';\n }\n}\n/**\n * Group a list by key.\n */\n\nexport function groupData(array, getKey // return key\n) {\n var buckets = createHashMap();\n var keys = [];\n each(array, function (item) {\n var key = getKey(item);\n (buckets.get(key) || (keys.push(key), buckets.set(key, []))).push(item);\n });\n return {\n keys: keys,\n buckets: buckets\n };\n}\n/**\n * Interpolate raw values of a series with percent\n *\n * @param data data\n * @param labelModel label model of the text element\n * @param sourceValue start value. May be null/undefined when init.\n * @param targetValue end value\n * @param percent 0~1 percentage; 0 uses start value while 1 uses end value\n * @return interpolated values\n * If `sourceValue` and `targetValue` are `number`, return `number`.\n * If `sourceValue` and `targetValue` are `string`, return `string`.\n * If `sourceValue` and `targetValue` are `(string | number)[]`, return `(string | number)[]`.\n * Other cases do not supported.\n */\n\nexport function interpolateRawValues(data, precision, sourceValue, targetValue, percent) {\n var isAutoPrecision = precision == null || precision === 'auto';\n\n if (targetValue == null) {\n return targetValue;\n }\n\n if (typeof targetValue === 'number') {\n var value = interpolateNumber(sourceValue || 0, targetValue, percent);\n return round(value, isAutoPrecision ? Math.max(getPrecision(sourceValue || 0), getPrecision(targetValue)) : precision);\n } else if (typeof targetValue === 'string') {\n return percent < 1 ? sourceValue : targetValue;\n } else {\n var interpolated = [];\n var leftArr = sourceValue;\n var rightArr = targetValue;\n var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n\n for (var i = 0; i < length_1; ++i) {\n var info = data.getDimensionInfo(i); // Don't interpolate ordinal dims\n\n if (info.type === 'ordinal') {\n // In init, there is no `sourceValue`, but should better not to get undefined result.\n interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i];\n } else {\n var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0;\n var rightVal = rightArr[i];\n var value = interpolateNumber(leftVal, rightVal, percent);\n interpolated[i] = round(value, isAutoPrecision ? Math.max(getPrecision(leftVal), getPrecision(rightVal)) : precision);\n }\n }\n\n return interpolated;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __spreadArrays } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nvar TYPE_DELIMITER = '.';\nvar IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';\nvar IS_EXTENDED_CLASS = '___EC__EXTENDED_CLASS___';\n/**\n * Notice, parseClassType('') should returns {main: '', sub: ''}\n * @public\n */\n\nexport function parseClassType(componentType) {\n var ret = {\n main: '',\n sub: ''\n };\n\n if (componentType) {\n var typeArr = componentType.split(TYPE_DELIMITER);\n ret.main = typeArr[0] || '';\n ret.sub = typeArr[1] || '';\n }\n\n return ret;\n}\n/**\n * @public\n */\n\nfunction checkClassType(componentType) {\n zrUtil.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(componentType), 'componentType \"' + componentType + '\" illegal');\n}\n\nexport function isExtendedClass(clz) {\n return !!(clz && clz[IS_EXTENDED_CLASS]);\n}\n/**\n * Implements `ExtendableConstructor` for `rootClz`.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ExtendableConstructor\n * enableClassExtend(Xxx as XxxConstructor);\n * ```\n */\n\nexport function enableClassExtend(rootClz, mandatoryMethods) {\n rootClz.$constructor = rootClz; // FIXME: not necessary?\n\n rootClz.extend = function (proto) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.each(mandatoryMethods, function (method) {\n if (!proto[method]) {\n console.warn('Method `' + method + '` should be implemented' + (proto.type ? ' in ' + proto.type : '') + '.');\n }\n });\n }\n\n var superClass = this; // For backward compat, we both support ts class inheritance and this\n // \"extend\" approach.\n // The constructor should keep the same behavior as ts class inheritance:\n // If this constructor/$constructor is not declared, auto invoke the super\n // constructor.\n // If this constructor/$constructor is declared, it is responsible for\n // calling the super constructor.\n\n function ExtendedClass() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (!proto.$constructor) {\n if (!isESClass(superClass)) {\n // Will throw error if superClass is an es6 native class.\n superClass.apply(this, arguments);\n } else {\n var ins = zrUtil.createObject( // @ts-ignore\n ExtendedClass.prototype, new (superClass.bind.apply(superClass, __spreadArrays([void 0], args)))());\n return ins;\n }\n } else {\n proto.$constructor.apply(this, arguments);\n }\n }\n\n ExtendedClass[IS_EXTENDED_CLASS] = true;\n zrUtil.extend(ExtendedClass.prototype, proto);\n ExtendedClass.extend = this.extend;\n ExtendedClass.superCall = superCall;\n ExtendedClass.superApply = superApply;\n zrUtil.inherits(ExtendedClass, this);\n ExtendedClass.superClass = superClass;\n return ExtendedClass;\n };\n}\n\nfunction isESClass(fn) {\n return typeof fn === 'function' && /^class\\s/.test(Function.prototype.toString.call(fn));\n}\n/**\n * A work around to both support ts extend and this extend mechanism.\n * on sub-class.\n * @usage\n * ```ts\n * class Component { ... }\n * classUtil.enableClassExtend(Component);\n * classUtil.enableClassManagement(Component, {registerWhenExtend: true});\n *\n * class Series extends Component { ... }\n * // Without calling `markExtend`, `registerWhenExtend` will not work.\n * Component.markExtend(Series);\n * ```\n */\n\n\nexport function mountExtend(SubClz, SupperClz) {\n SubClz.extend = SupperClz.extend;\n} // A random offset.\n\nvar classBase = Math.round(Math.random() * 10);\n/**\n * Implements `CheckableConstructor` for `target`.\n * Can not use instanceof, consider different scope by\n * cross domain or es module import in ec extensions.\n * Mount a method \"isInstance()\" to Clz.\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & CheckableConstructor;\n * enableClassCheck(Xxx as XxxConstructor)\n * ```\n */\n\nexport function enableClassCheck(target) {\n var classAttr = ['__\\0is_clz', classBase++].join('_');\n target.prototype[classAttr] = true;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(!target.isInstance, 'The method \"is\" can not be defined.');\n }\n\n target.isInstance = function (obj) {\n return !!(obj && obj[classAttr]);\n };\n} // superCall should have class info, which can not be fetch from 'this'.\n// Consider this case:\n// class A has method f,\n// class B inherits class A, overrides method f, f call superApply('f'),\n// class C inherits class B, do not overrides method f,\n// then when method of class C is called, dead loop occured.\n\nfunction superCall(context, methodName) {\n var args = [];\n\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n\n return this.superClass.prototype[methodName].apply(context, args);\n}\n\nfunction superApply(context, methodName, args) {\n return this.superClass.prototype[methodName].apply(context, args);\n}\n/**\n * Implements `ClassManager` for `target`\n *\n * @usage\n * ```ts\n * class Xxx {}\n * type XxxConstructor = typeof Xxx & ClassManager\n * enableClassManagement(Xxx as XxxConstructor);\n * ```\n */\n\n\nexport function enableClassManagement(target) {\n /**\n * Component model classes\n * key: componentType,\n * value:\n * componentClass, when componentType is 'xxx'\n * or Object., when componentType is 'xxx.yy'\n */\n var storage = {};\n\n target.registerClass = function (clz) {\n // `type` should not be a \"instance memeber\".\n // If using TS class, should better declared as `static type = 'series.pie'`.\n // otherwise users have to mount `type` on prototype manually.\n // For backward compat and enable instance visit type via `this.type`,\n // we stil support fetch `type` from prototype.\n var componentFullType = clz.type || clz.prototype.type;\n\n if (componentFullType) {\n checkClassType(componentFullType); // If only static type declared, we assign it to prototype mandatorily.\n\n clz.prototype.type = componentFullType;\n var componentTypeInfo = parseClassType(componentFullType);\n\n if (!componentTypeInfo.sub) {\n if (process.env.NODE_ENV !== 'production') {\n if (storage[componentTypeInfo.main]) {\n console.warn(componentTypeInfo.main + ' exists.');\n }\n }\n\n storage[componentTypeInfo.main] = clz;\n } else if (componentTypeInfo.sub !== IS_CONTAINER) {\n var container = makeContainer(componentTypeInfo);\n container[componentTypeInfo.sub] = clz;\n }\n }\n\n return clz;\n };\n\n target.getClass = function (mainType, subType, throwWhenNotFound) {\n var clz = storage[mainType];\n\n if (clz && clz[IS_CONTAINER]) {\n clz = subType ? clz[subType] : null;\n }\n\n if (throwWhenNotFound && !clz) {\n throw new Error(!subType ? mainType + '.' + 'type should be specified.' : 'Component ' + mainType + '.' + (subType || '') + ' is used but not imported.');\n }\n\n return clz;\n };\n\n target.getClassesByMainType = function (componentType) {\n var componentTypeInfo = parseClassType(componentType);\n var result = [];\n var obj = storage[componentTypeInfo.main];\n\n if (obj && obj[IS_CONTAINER]) {\n zrUtil.each(obj, function (o, type) {\n type !== IS_CONTAINER && result.push(o);\n });\n } else {\n result.push(obj);\n }\n\n return result;\n };\n\n target.hasClass = function (componentType) {\n // Just consider componentType.main.\n var componentTypeInfo = parseClassType(componentType);\n return !!storage[componentTypeInfo.main];\n };\n /**\n * @return Like ['aa', 'bb'], but can not be ['aa.xx']\n */\n\n\n target.getAllClassMainTypes = function () {\n var types = [];\n zrUtil.each(storage, function (obj, type) {\n types.push(type);\n });\n return types;\n };\n /**\n * If a main type is container and has sub types\n */\n\n\n target.hasSubTypes = function (componentType) {\n var componentTypeInfo = parseClassType(componentType);\n var obj = storage[componentTypeInfo.main];\n return obj && obj[IS_CONTAINER];\n };\n\n function makeContainer(componentTypeInfo) {\n var container = storage[componentTypeInfo.main];\n\n if (!container || !container[IS_CONTAINER]) {\n container = storage[componentTypeInfo.main] = {};\n container[IS_CONTAINER] = true;\n }\n\n return container;\n }\n} // /**\n// * @param {string|Array.} properties\n// */\n// export function setReadOnly(obj, properties) {\n// FIXME It seems broken in IE8 simulation of IE11\n// if (!zrUtil.isArray(properties)) {\n// properties = properties != null ? [properties] : [];\n// }\n// zrUtil.each(properties, function (prop) {\n// let value = obj[prop];\n// Object.defineProperty\n// && Object.defineProperty(obj, prop, {\n// value: value, writable: false\n// });\n// zrUtil.isArray(obj[prop])\n// && Object.freeze\n// && Object.freeze(obj[prop]);\n// });\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO Parse shadow style\n// TODO Only shallow path support\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function makeStyleMapper(properties, ignoreParent) {\n // Normalize\n for (var i = 0; i < properties.length; i++) {\n if (!properties[i][1]) {\n properties[i][1] = properties[i][0];\n }\n }\n\n ignoreParent = ignoreParent || false;\n return function (model, excludes, includes) {\n var style = {};\n\n for (var i = 0; i < properties.length; i++) {\n var propName = properties[i][1];\n\n if (excludes && zrUtil.indexOf(excludes, propName) >= 0 || includes && zrUtil.indexOf(includes, propName) < 0) {\n continue;\n }\n\n var val = model.getShallow(propName, ignoreParent);\n\n if (val != null) {\n style[properties[i][0]] = val;\n }\n } // TODO Text or image?\n\n\n return style;\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var AREA_STYLE_KEY_MAP = [['fill', 'color'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['opacity'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getAreaStyle = makeStyleMapper(AREA_STYLE_KEY_MAP);\n\nvar AreaStyleMixin =\n/** @class */\nfunction () {\n function AreaStyleMixin() {}\n\n AreaStyleMixin.prototype.getAreaStyle = function (excludes, includes) {\n return getAreaStyle(this, excludes, includes);\n };\n\n return AreaStyleMixin;\n}();\n\n;\nexport { AreaStyleMixin };","import LRU from '../../core/LRU';\nvar globalImageCache = new LRU(50);\nexport function findExistImage(newImageOrSrc) {\n if (typeof newImageOrSrc === 'string') {\n var cachedImgObj = globalImageCache.get(newImageOrSrc);\n return cachedImgObj && cachedImgObj.image;\n }\n else {\n return newImageOrSrc;\n }\n}\nexport function createOrUpdateImage(newImageOrSrc, image, hostEl, onload, cbPayload) {\n if (!newImageOrSrc) {\n return image;\n }\n else if (typeof newImageOrSrc === 'string') {\n if ((image && image.__zrImageSrc === newImageOrSrc) || !hostEl) {\n return image;\n }\n var cachedImgObj = globalImageCache.get(newImageOrSrc);\n var pendingWrap = { hostEl: hostEl, cb: onload, cbPayload: cbPayload };\n if (cachedImgObj) {\n image = cachedImgObj.image;\n !isImageReady(image) && cachedImgObj.pending.push(pendingWrap);\n }\n else {\n image = new Image();\n image.onload = image.onerror = imageOnLoad;\n globalImageCache.put(newImageOrSrc, image.__cachedImgObj = {\n image: image,\n pending: [pendingWrap]\n });\n image.src = image.__zrImageSrc = newImageOrSrc;\n }\n return image;\n }\n else {\n return newImageOrSrc;\n }\n}\nfunction imageOnLoad() {\n var cachedImgObj = this.__cachedImgObj;\n this.onload = this.onerror = this.__cachedImgObj = null;\n for (var i = 0; i < cachedImgObj.pending.length; i++) {\n var pendingWrap = cachedImgObj.pending[i];\n var cb = pendingWrap.cb;\n cb && cb(this, pendingWrap.cbPayload);\n pendingWrap.hostEl.dirty();\n }\n cachedImgObj.pending.length = 0;\n}\nexport function isImageReady(image) {\n return image && image.width && image.height;\n}\n","import * as imageHelper from '../helper/image';\nimport { extend, retrieve2, retrieve3, reduce } from '../../core/util';\nimport { getLineHeight, getWidth, parsePercent } from '../../contain/text';\nvar STYLE_REG = /\\{([a-zA-Z0-9_]+)\\|([^}]*)\\}/g;\nexport function truncateText(text, containerWidth, font, ellipsis, options) {\n if (!containerWidth) {\n return '';\n }\n var textLines = (text + '').split('\\n');\n options = prepareTruncateOptions(containerWidth, font, ellipsis, options);\n for (var i = 0, len = textLines.length; i < len; i++) {\n textLines[i] = truncateSingleLine(textLines[i], options);\n }\n return textLines.join('\\n');\n}\nfunction prepareTruncateOptions(containerWidth, font, ellipsis, options) {\n options = options || {};\n var preparedOpts = extend({}, options);\n preparedOpts.font = font;\n ellipsis = retrieve2(ellipsis, '...');\n preparedOpts.maxIterations = retrieve2(options.maxIterations, 2);\n var minChar = preparedOpts.minChar = retrieve2(options.minChar, 0);\n preparedOpts.cnCharWidth = getWidth('国', font);\n var ascCharWidth = preparedOpts.ascCharWidth = getWidth('a', font);\n preparedOpts.placeholder = retrieve2(options.placeholder, '');\n var contentWidth = containerWidth = Math.max(0, containerWidth - 1);\n for (var i = 0; i < minChar && contentWidth >= ascCharWidth; i++) {\n contentWidth -= ascCharWidth;\n }\n var ellipsisWidth = getWidth(ellipsis, font);\n if (ellipsisWidth > contentWidth) {\n ellipsis = '';\n ellipsisWidth = 0;\n }\n contentWidth = containerWidth - ellipsisWidth;\n preparedOpts.ellipsis = ellipsis;\n preparedOpts.ellipsisWidth = ellipsisWidth;\n preparedOpts.contentWidth = contentWidth;\n preparedOpts.containerWidth = containerWidth;\n return preparedOpts;\n}\nfunction truncateSingleLine(textLine, options) {\n var containerWidth = options.containerWidth;\n var font = options.font;\n var contentWidth = options.contentWidth;\n if (!containerWidth) {\n return '';\n }\n var lineWidth = getWidth(textLine, font);\n if (lineWidth <= containerWidth) {\n return textLine;\n }\n for (var j = 0;; j++) {\n if (lineWidth <= contentWidth || j >= options.maxIterations) {\n textLine += options.ellipsis;\n break;\n }\n var subLength = j === 0\n ? estimateLength(textLine, contentWidth, options.ascCharWidth, options.cnCharWidth)\n : lineWidth > 0\n ? Math.floor(textLine.length * contentWidth / lineWidth)\n : 0;\n textLine = textLine.substr(0, subLength);\n lineWidth = getWidth(textLine, font);\n }\n if (textLine === '') {\n textLine = options.placeholder;\n }\n return textLine;\n}\nfunction estimateLength(text, contentWidth, ascCharWidth, cnCharWidth) {\n var width = 0;\n var i = 0;\n for (var len = text.length; i < len && width < contentWidth; i++) {\n var charCode = text.charCodeAt(i);\n width += (0 <= charCode && charCode <= 127) ? ascCharWidth : cnCharWidth;\n }\n return i;\n}\nexport function parsePlainText(text, style) {\n text != null && (text += '');\n var overflow = style.overflow;\n var padding = style.padding;\n var font = style.font;\n var truncate = overflow === 'truncate';\n var calculatedLineHeight = getLineHeight(font);\n var lineHeight = retrieve2(style.lineHeight, calculatedLineHeight);\n var truncateLineOverflow = style.lineOverflow === 'truncate';\n var width = style.width;\n var lines;\n if (width != null && overflow === 'break' || overflow === 'breakAll') {\n lines = text ? wrapText(text, style.font, width, overflow === 'breakAll', 0).lines : [];\n }\n else {\n lines = text ? text.split('\\n') : [];\n }\n var contentHeight = lines.length * lineHeight;\n var height = retrieve2(style.height, contentHeight);\n if (contentHeight > height && truncateLineOverflow) {\n var lineCount = Math.floor(height / lineHeight);\n lines = lines.slice(0, lineCount);\n }\n var outerHeight = height;\n var outerWidth = width;\n if (padding) {\n outerHeight += padding[0] + padding[2];\n if (outerWidth != null) {\n outerWidth += padding[1] + padding[3];\n }\n }\n if (text && truncate && outerWidth != null) {\n var options = prepareTruncateOptions(width, font, style.ellipsis, {\n minChar: style.truncateMinChar,\n placeholder: style.placeholder\n });\n for (var i = 0; i < lines.length; i++) {\n lines[i] = truncateSingleLine(lines[i], options);\n }\n }\n if (width == null) {\n var maxWidth = 0;\n for (var i = 0; i < lines.length; i++) {\n maxWidth = Math.max(getWidth(lines[i], font), maxWidth);\n }\n width = maxWidth;\n }\n return {\n lines: lines,\n height: height,\n outerHeight: outerHeight,\n lineHeight: lineHeight,\n calculatedLineHeight: calculatedLineHeight,\n contentHeight: contentHeight,\n width: width\n };\n}\nvar RichTextToken = (function () {\n function RichTextToken() {\n }\n return RichTextToken;\n}());\nvar RichTextLine = (function () {\n function RichTextLine(tokens) {\n this.tokens = [];\n if (tokens) {\n this.tokens = tokens;\n }\n }\n return RichTextLine;\n}());\nvar RichTextContentBlock = (function () {\n function RichTextContentBlock() {\n this.width = 0;\n this.height = 0;\n this.contentWidth = 0;\n this.contentHeight = 0;\n this.outerWidth = 0;\n this.outerHeight = 0;\n this.lines = [];\n }\n return RichTextContentBlock;\n}());\nexport { RichTextContentBlock };\nexport function parseRichText(text, style) {\n var contentBlock = new RichTextContentBlock();\n text != null && (text += '');\n if (!text) {\n return contentBlock;\n }\n var topWidth = style.width;\n var topHeight = style.height;\n var overflow = style.overflow;\n var wrapInfo = (overflow === 'break' || overflow === 'breakAll') && topWidth != null\n ? { width: topWidth, accumWidth: 0, breakAll: overflow === 'breakAll' }\n : null;\n var lastIndex = STYLE_REG.lastIndex = 0;\n var result;\n while ((result = STYLE_REG.exec(text)) != null) {\n var matchedIndex = result.index;\n if (matchedIndex > lastIndex) {\n pushTokens(contentBlock, text.substring(lastIndex, matchedIndex), style, wrapInfo);\n }\n pushTokens(contentBlock, result[2], style, wrapInfo, result[1]);\n lastIndex = STYLE_REG.lastIndex;\n }\n if (lastIndex < text.length) {\n pushTokens(contentBlock, text.substring(lastIndex, text.length), style, wrapInfo);\n }\n var pendingList = [];\n var calculatedHeight = 0;\n var calculatedWidth = 0;\n var stlPadding = style.padding;\n var truncate = overflow === 'truncate';\n var truncateLine = style.lineOverflow === 'truncate';\n function finishLine(line, lineWidth, lineHeight) {\n line.width = lineWidth;\n line.lineHeight = lineHeight;\n calculatedHeight += lineHeight;\n calculatedWidth = Math.max(calculatedWidth, lineWidth);\n }\n outer: for (var i = 0; i < contentBlock.lines.length; i++) {\n var line = contentBlock.lines[i];\n var lineHeight = 0;\n var lineWidth = 0;\n for (var j = 0; j < line.tokens.length; j++) {\n var token = line.tokens[j];\n var tokenStyle = token.styleName && style.rich[token.styleName] || {};\n var textPadding = token.textPadding = tokenStyle.padding;\n var paddingH = textPadding ? textPadding[1] + textPadding[3] : 0;\n var font = token.font = tokenStyle.font || style.font;\n token.contentHeight = getLineHeight(font);\n var tokenHeight = retrieve2(tokenStyle.height, token.contentHeight);\n token.innerHeight = tokenHeight;\n textPadding && (tokenHeight += textPadding[0] + textPadding[2]);\n token.height = tokenHeight;\n token.lineHeight = retrieve3(tokenStyle.lineHeight, style.lineHeight, tokenHeight);\n token.align = tokenStyle && tokenStyle.align || style.align;\n token.verticalAlign = tokenStyle && tokenStyle.verticalAlign || 'middle';\n if (truncateLine && topHeight != null && calculatedHeight + token.lineHeight > topHeight) {\n if (j > 0) {\n line.tokens = line.tokens.slice(0, j);\n finishLine(line, lineWidth, lineHeight);\n contentBlock.lines = contentBlock.lines.slice(0, i + 1);\n }\n else {\n contentBlock.lines = contentBlock.lines.slice(0, i);\n }\n break outer;\n }\n var styleTokenWidth = tokenStyle.width;\n var tokenWidthNotSpecified = styleTokenWidth == null || styleTokenWidth === 'auto';\n if (typeof styleTokenWidth === 'string' && styleTokenWidth.charAt(styleTokenWidth.length - 1) === '%') {\n token.percentWidth = styleTokenWidth;\n pendingList.push(token);\n token.contentWidth = getWidth(token.text, font);\n }\n else {\n if (tokenWidthNotSpecified) {\n var textBackgroundColor = tokenStyle.backgroundColor;\n var bgImg = textBackgroundColor && textBackgroundColor.image;\n if (bgImg) {\n bgImg = imageHelper.findExistImage(bgImg);\n if (imageHelper.isImageReady(bgImg)) {\n token.width = Math.max(token.width, bgImg.width * tokenHeight / bgImg.height);\n }\n }\n }\n var remainTruncWidth = truncate && topWidth != null\n ? topWidth - lineWidth : null;\n if (remainTruncWidth != null && remainTruncWidth < token.width) {\n if (!tokenWidthNotSpecified || remainTruncWidth < paddingH) {\n token.text = '';\n token.width = token.contentWidth = 0;\n }\n else {\n token.text = truncateText(token.text, remainTruncWidth - paddingH, font, style.ellipsis, { minChar: style.truncateMinChar });\n token.width = token.contentWidth = getWidth(token.text, font);\n }\n }\n else {\n token.contentWidth = getWidth(token.text, font);\n }\n }\n token.width += paddingH;\n lineWidth += token.width;\n tokenStyle && (lineHeight = Math.max(lineHeight, token.lineHeight));\n }\n finishLine(line, lineWidth, lineHeight);\n }\n contentBlock.outerWidth = contentBlock.width = retrieve2(topWidth, calculatedWidth);\n contentBlock.outerHeight = contentBlock.height = retrieve2(topHeight, calculatedHeight);\n contentBlock.contentHeight = calculatedHeight;\n contentBlock.contentWidth = calculatedWidth;\n if (stlPadding) {\n contentBlock.outerWidth += stlPadding[1] + stlPadding[3];\n contentBlock.outerHeight += stlPadding[0] + stlPadding[2];\n }\n for (var i = 0; i < pendingList.length; i++) {\n var token = pendingList[i];\n var percentWidth = token.percentWidth;\n token.width = parseInt(percentWidth, 10) / 100 * contentBlock.width;\n }\n return contentBlock;\n}\nfunction pushTokens(block, str, style, wrapInfo, styleName) {\n var isEmptyStr = str === '';\n var tokenStyle = styleName && style.rich[styleName] || {};\n var lines = block.lines;\n var font = tokenStyle.font || style.font;\n var newLine = false;\n var strLines;\n var linesWidths;\n if (wrapInfo) {\n var tokenPadding = tokenStyle.padding;\n var tokenPaddingH = tokenPadding ? tokenPadding[1] + tokenPadding[3] : 0;\n if (tokenStyle.width != null && tokenStyle.width !== 'auto') {\n var outerWidth_1 = parsePercent(tokenStyle.width, wrapInfo.width) + tokenPaddingH;\n if (lines.length > 0) {\n if (outerWidth_1 + wrapInfo.accumWidth > wrapInfo.width) {\n strLines = str.split('\\n');\n newLine = true;\n }\n }\n wrapInfo.accumWidth = outerWidth_1;\n }\n else {\n var res = wrapText(str, font, wrapInfo.width, wrapInfo.breakAll, wrapInfo.accumWidth);\n wrapInfo.accumWidth = res.accumWidth + tokenPaddingH;\n linesWidths = res.linesWidths;\n strLines = res.lines;\n }\n }\n else {\n strLines = str.split('\\n');\n }\n for (var i = 0; i < strLines.length; i++) {\n var text = strLines[i];\n var token = new RichTextToken();\n token.styleName = styleName;\n token.text = text;\n token.isLineHolder = !text && !isEmptyStr;\n if (typeof tokenStyle.width === 'number') {\n token.width = tokenStyle.width;\n }\n else {\n token.width = linesWidths\n ? linesWidths[i]\n : getWidth(text, font);\n }\n if (!i && !newLine) {\n var tokens = (lines[lines.length - 1] || (lines[0] = new RichTextLine())).tokens;\n var tokensLen = tokens.length;\n (tokensLen === 1 && tokens[0].isLineHolder)\n ? (tokens[0] = token)\n : ((text || !tokensLen || isEmptyStr) && tokens.push(token));\n }\n else {\n lines.push(new RichTextLine([token]));\n }\n }\n}\nfunction isLatin(ch) {\n var code = ch.charCodeAt(0);\n return code >= 0x21 && code <= 0xFF;\n}\nvar breakCharMap = reduce(',&?/;] '.split(''), function (obj, ch) {\n obj[ch] = true;\n return obj;\n}, {});\nfunction isWordBreakChar(ch) {\n if (isLatin(ch)) {\n if (breakCharMap[ch]) {\n return true;\n }\n return false;\n }\n return true;\n}\nfunction wrapText(text, font, lineWidth, isBreakAll, lastAccumWidth) {\n var lines = [];\n var linesWidths = [];\n var line = '';\n var currentWord = '';\n var currentWordWidth = 0;\n var accumWidth = 0;\n for (var i = 0; i < text.length; i++) {\n var ch = text.charAt(i);\n if (ch === '\\n') {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n line = '';\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = 0;\n continue;\n }\n var chWidth = getWidth(ch, font);\n var inWord = isBreakAll ? false : !isWordBreakChar(ch);\n if (!lines.length\n ? lastAccumWidth + accumWidth + chWidth > lineWidth\n : accumWidth + chWidth > lineWidth) {\n if (!accumWidth) {\n if (inWord) {\n lines.push(currentWord);\n linesWidths.push(currentWordWidth);\n currentWord = ch;\n currentWordWidth = chWidth;\n }\n else {\n lines.push(ch);\n linesWidths.push(chWidth);\n }\n }\n else if (line || currentWord) {\n if (inWord) {\n if (!line) {\n line = currentWord;\n currentWord = '';\n currentWordWidth = 0;\n accumWidth = currentWordWidth;\n }\n lines.push(line);\n linesWidths.push(accumWidth - currentWordWidth);\n currentWord += ch;\n currentWordWidth += chWidth;\n line = '';\n accumWidth = currentWordWidth;\n }\n else {\n if (currentWord) {\n line += currentWord;\n accumWidth += currentWordWidth;\n currentWord = '';\n currentWordWidth = 0;\n }\n lines.push(line);\n linesWidths.push(accumWidth);\n line = ch;\n accumWidth = chWidth;\n }\n }\n continue;\n }\n accumWidth += chWidth;\n if (inWord) {\n currentWord += ch;\n currentWordWidth += chWidth;\n }\n else {\n if (currentWord) {\n line += currentWord;\n currentWord = '';\n currentWordWidth = 0;\n }\n line += ch;\n }\n }\n if (!lines.length && !line) {\n line = text;\n currentWord = '';\n currentWordWidth = 0;\n }\n if (currentWord) {\n line += currentWord;\n }\n if (line) {\n lines.push(line);\n linesWidths.push(accumWidth);\n }\n if (lines.length === 1) {\n accumWidth += lastAccumWidth;\n }\n return {\n accumWidth: accumWidth,\n lines: lines,\n linesWidths: linesWidths\n };\n}\n","import { __extends } from \"tslib\";\nimport Element from '../Element';\nimport BoundingRect from '../core/BoundingRect';\nimport { keys, extend, createObject } from '../core/util';\nimport { REDARAW_BIT, STYLE_CHANGED_BIT } from './constants';\nvar STYLE_MAGIC_KEY = '__zr_style_' + Math.round((Math.random() * 10));\nexport var DEFAULT_COMMON_STYLE = {\n shadowBlur: 0,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n shadowColor: '#000',\n opacity: 1,\n blend: 'source-over'\n};\nexport var DEFAULT_COMMON_ANIMATION_PROPS = {\n style: {\n shadowBlur: true,\n shadowOffsetX: true,\n shadowOffsetY: true,\n shadowColor: true,\n opacity: true\n }\n};\nDEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY] = true;\nvar PRIMARY_STATES_KEYS = ['z', 'z2', 'invisible'];\nvar PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ['invisible'];\nvar Displayable = (function (_super) {\n __extends(Displayable, _super);\n function Displayable(props) {\n return _super.call(this, props) || this;\n }\n Displayable.prototype._init = function (props) {\n var keysArr = keys(props);\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n if (key === 'style') {\n this.useStyle(props[key]);\n }\n else {\n _super.prototype.attrKV.call(this, key, props[key]);\n }\n }\n if (!this.style) {\n this.useStyle({});\n }\n };\n Displayable.prototype.beforeBrush = function () { };\n Displayable.prototype.afterBrush = function () { };\n Displayable.prototype.innerBeforeBrush = function () { };\n Displayable.prototype.innerAfterBrush = function () { };\n Displayable.prototype.shouldBePainted = function (viewWidth, viewHeight, considerClipPath, considerAncestors) {\n var m = this.transform;\n if (this.ignore\n || this.invisible\n || this.style.opacity === 0\n || (this.culling\n && isDisplayableCulled(this, viewWidth, viewHeight))\n || (m && !m[0] && !m[3])) {\n return false;\n }\n if (considerClipPath && this.__clipPaths) {\n for (var i = 0; i < this.__clipPaths.length; ++i) {\n if (this.__clipPaths[i].isZeroArea()) {\n return false;\n }\n }\n }\n if (considerAncestors && this.parent) {\n var parent_1 = this.parent;\n while (parent_1) {\n if (parent_1.ignore) {\n return false;\n }\n parent_1 = parent_1.parent;\n }\n }\n return true;\n };\n Displayable.prototype.contain = function (x, y) {\n return this.rectContain(x, y);\n };\n Displayable.prototype.traverse = function (cb, context) {\n cb.call(context, this);\n };\n Displayable.prototype.rectContain = function (x, y) {\n var coord = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n return rect.contain(coord[0], coord[1]);\n };\n Displayable.prototype.getPaintRect = function () {\n var rect = this._paintRect;\n if (!this._paintRect || this.__dirty) {\n var transform = this.transform;\n var elRect = this.getBoundingRect();\n var style = this.style;\n var shadowSize = style.shadowBlur || 0;\n var shadowOffsetX = style.shadowOffsetX || 0;\n var shadowOffsetY = style.shadowOffsetY || 0;\n rect = this._paintRect || (this._paintRect = new BoundingRect(0, 0, 0, 0));\n if (transform) {\n BoundingRect.applyTransform(rect, elRect, transform);\n }\n else {\n rect.copy(elRect);\n }\n if (shadowSize || shadowOffsetX || shadowOffsetY) {\n rect.width += shadowSize * 2 + Math.abs(shadowOffsetX);\n rect.height += shadowSize * 2 + Math.abs(shadowOffsetY);\n rect.x = Math.min(rect.x, rect.x + shadowOffsetX - shadowSize);\n rect.y = Math.min(rect.y, rect.y + shadowOffsetY - shadowSize);\n }\n var tolerance = this.dirtyRectTolerance;\n if (!rect.isZero()) {\n rect.x = Math.floor(rect.x - tolerance);\n rect.y = Math.floor(rect.y - tolerance);\n rect.width = Math.ceil(rect.width + 1 + tolerance * 2);\n rect.height = Math.ceil(rect.height + 1 + tolerance * 2);\n }\n }\n return rect;\n };\n Displayable.prototype.setPrevPaintRect = function (paintRect) {\n if (paintRect) {\n this._prevPaintRect = this._prevPaintRect || new BoundingRect(0, 0, 0, 0);\n this._prevPaintRect.copy(paintRect);\n }\n else {\n this._prevPaintRect = null;\n }\n };\n Displayable.prototype.getPrevPaintRect = function () {\n return this._prevPaintRect;\n };\n Displayable.prototype.animateStyle = function (loop) {\n return this.animate('style', loop);\n };\n Displayable.prototype.updateDuringAnimation = function (targetKey) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else {\n this.markRedraw();\n }\n };\n Displayable.prototype.attrKV = function (key, value) {\n if (key !== 'style') {\n _super.prototype.attrKV.call(this, key, value);\n }\n else {\n if (!this.style) {\n this.useStyle(value);\n }\n else {\n this.setStyle(value);\n }\n }\n };\n Displayable.prototype.setStyle = function (keyOrObj, value) {\n if (typeof keyOrObj === 'string') {\n this.style[keyOrObj] = value;\n }\n else {\n extend(this.style, keyOrObj);\n }\n this.dirtyStyle();\n return this;\n };\n Displayable.prototype.dirtyStyle = function (notRedraw) {\n if (!notRedraw) {\n this.markRedraw();\n }\n this.__dirty |= STYLE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n };\n Displayable.prototype.dirty = function () {\n this.dirtyStyle();\n };\n Displayable.prototype.styleChanged = function () {\n return !!(this.__dirty & STYLE_CHANGED_BIT);\n };\n Displayable.prototype.styleUpdated = function () {\n this.__dirty &= ~STYLE_CHANGED_BIT;\n };\n Displayable.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_COMMON_STYLE, obj);\n };\n Displayable.prototype.useStyle = function (obj) {\n if (!obj[STYLE_MAGIC_KEY]) {\n obj = this.createStyle(obj);\n }\n if (this.__inHover) {\n this.__hoverStyle = obj;\n }\n else {\n this.style = obj;\n }\n this.dirtyStyle();\n };\n Displayable.prototype.isStyleObject = function (obj) {\n return obj[STYLE_MAGIC_KEY];\n };\n Displayable.prototype._innerSaveToNormal = function (toState) {\n _super.prototype._innerSaveToNormal.call(this, toState);\n var normalState = this._normalState;\n if (toState.style && !normalState.style) {\n normalState.style = this._mergeStyle(this.createStyle(), this.style);\n }\n this._savePrimaryToNormal(toState, normalState, PRIMARY_STATES_KEYS);\n };\n Displayable.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n var needsRestoreToNormal = !(state && keepCurrentStates);\n var targetStyle;\n if (state && state.style) {\n if (transition) {\n if (keepCurrentStates) {\n targetStyle = state.style;\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else {\n targetStyle = this._mergeStyle(this.createStyle(), keepCurrentStates ? this.style : normalState.style);\n this._mergeStyle(targetStyle, state.style);\n }\n }\n else if (needsRestoreToNormal) {\n targetStyle = normalState.style;\n }\n if (targetStyle) {\n if (transition) {\n var sourceStyle = this.style;\n this.style = this.createStyle(needsRestoreToNormal ? {} : sourceStyle);\n if (needsRestoreToNormal) {\n var changedKeys = keys(sourceStyle);\n for (var i = 0; i < changedKeys.length; i++) {\n var key = changedKeys[i];\n if (key in targetStyle) {\n targetStyle[key] = targetStyle[key];\n this.style[key] = sourceStyle[key];\n }\n }\n }\n var targetKeys = keys(targetStyle);\n for (var i = 0; i < targetKeys.length; i++) {\n var key = targetKeys[i];\n this.style[key] = this.style[key];\n }\n this._transitionState(stateName, {\n style: targetStyle\n }, animationCfg, this.getAnimationStyleProps());\n }\n else {\n this.useStyle(targetStyle);\n }\n }\n var statesKeys = this.__inHover ? PRIMARY_STATES_KEYS_IN_HOVER_LAYER : PRIMARY_STATES_KEYS;\n for (var i = 0; i < statesKeys.length; i++) {\n var key = statesKeys[i];\n if (state && state[key] != null) {\n this[key] = state[key];\n }\n else if (needsRestoreToNormal) {\n if (normalState[key] != null) {\n this[key] = normalState[key];\n }\n }\n }\n };\n Displayable.prototype._mergeStates = function (states) {\n var mergedState = _super.prototype._mergeStates.call(this, states);\n var mergedStyle;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n if (state.style) {\n mergedStyle = mergedStyle || {};\n this._mergeStyle(mergedStyle, state.style);\n }\n }\n if (mergedStyle) {\n mergedState.style = mergedStyle;\n }\n return mergedState;\n };\n Displayable.prototype._mergeStyle = function (targetStyle, sourceStyle) {\n extend(targetStyle, sourceStyle);\n return targetStyle;\n };\n Displayable.prototype.getAnimationStyleProps = function () {\n return DEFAULT_COMMON_ANIMATION_PROPS;\n };\n Displayable.initDefaultProps = (function () {\n var dispProto = Displayable.prototype;\n dispProto.type = 'displayable';\n dispProto.invisible = false;\n dispProto.z = 0;\n dispProto.z2 = 0;\n dispProto.zlevel = 0;\n dispProto.culling = false;\n dispProto.cursor = 'pointer';\n dispProto.rectHover = false;\n dispProto.incremental = false;\n dispProto._rect = null;\n dispProto.dirtyRectTolerance = 0;\n dispProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT;\n })();\n return Displayable;\n}(Element));\nvar tmpRect = new BoundingRect(0, 0, 0, 0);\nvar viewRect = new BoundingRect(0, 0, 0, 0);\nfunction isDisplayableCulled(el, width, height) {\n tmpRect.copy(el.getBoundingRect());\n if (el.transform) {\n tmpRect.applyTransform(el.transform);\n }\n viewRect.width = width;\n viewRect.height = height;\n return !tmpRect.intersect(viewRect);\n}\nexport default Displayable;\n","import { create as v2Create, distSquare as v2DistSquare } from './vector';\nvar mathPow = Math.pow;\nvar mathSqrt = Math.sqrt;\nvar EPSILON = 1e-8;\nvar EPSILON_NUMERIC = 1e-4;\nvar THREE_SQRT = mathSqrt(3);\nvar ONE_THIRD = 1 / 3;\nvar _v0 = v2Create();\nvar _v1 = v2Create();\nvar _v2 = v2Create();\nfunction isAroundZero(val) {\n return val > -EPSILON && val < EPSILON;\n}\nfunction isNotAroundZero(val) {\n return val > EPSILON || val < -EPSILON;\n}\nexport function cubicAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return onet * onet * (onet * p0 + 3 * t * p1)\n + t * t * (t * p3 + 3 * onet * p2);\n}\nexport function cubicDerivativeAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return 3 * (((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet\n + (p3 - p2) * t * t);\n}\nexport function cubicRootAt(p0, p1, p2, p3, val, roots) {\n var a = p3 + 3 * (p1 - p2) - p0;\n var b = 3 * (p2 - p1 * 2 + p0);\n var c = 3 * (p1 - p0);\n var d = p0 - val;\n var A = b * b - 3 * a * c;\n var B = b * c - 9 * a * d;\n var C = c * c - 3 * b * d;\n var n = 0;\n if (isAroundZero(A) && isAroundZero(B)) {\n if (isAroundZero(b)) {\n roots[0] = 0;\n }\n else {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n var disc = B * B - 4 * A * C;\n if (isAroundZero(disc)) {\n var K = B / A;\n var t1 = -b / a + K;\n var t2 = -K / 2;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var Y1 = A * b + 1.5 * a * (-B + discSqrt);\n var Y2 = A * b + 1.5 * a * (-B - discSqrt);\n if (Y1 < 0) {\n Y1 = -mathPow(-Y1, ONE_THIRD);\n }\n else {\n Y1 = mathPow(Y1, ONE_THIRD);\n }\n if (Y2 < 0) {\n Y2 = -mathPow(-Y2, ONE_THIRD);\n }\n else {\n Y2 = mathPow(Y2, ONE_THIRD);\n }\n var t1 = (-b - (Y1 + Y2)) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else {\n var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));\n var theta = Math.acos(T) / 3;\n var ASqrt = mathSqrt(A);\n var tmp = Math.cos(theta);\n var t1 = (-b - 2 * ASqrt * tmp) / (3 * a);\n var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);\n var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n if (t3 >= 0 && t3 <= 1) {\n roots[n++] = t3;\n }\n }\n }\n return n;\n}\nexport function cubicExtrema(p0, p1, p2, p3, extrema) {\n var b = 6 * p2 - 12 * p1 + 6 * p0;\n var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;\n var c = 3 * p1 - 3 * p0;\n var n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n }\n }\n else {\n var disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n extrema[0] = -b / (2 * a);\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var t1 = (-b + discSqrt) / (2 * a);\n var t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n extrema[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n extrema[n++] = t2;\n }\n }\n }\n return n;\n}\nexport function cubicSubdivide(p0, p1, p2, p3, t, out) {\n var p01 = (p1 - p0) * t + p0;\n var p12 = (p2 - p1) * t + p1;\n var p23 = (p3 - p2) * t + p2;\n var p012 = (p12 - p01) * t + p01;\n var p123 = (p23 - p12) * t + p12;\n var p0123 = (p123 - p012) * t + p012;\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p0123;\n out[4] = p0123;\n out[5] = p123;\n out[6] = p23;\n out[7] = p3;\n}\nexport function cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n var prev;\n var next;\n var d1;\n var d2;\n _v0[0] = x;\n _v0[1] = y;\n for (var _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = cubicAt(x0, x1, x2, x3, _t);\n _v1[1] = cubicAt(y0, y1, y2, y3, _t);\n d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n for (var i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n prev = t - interval;\n next = t + interval;\n _v1[0] = cubicAt(x0, x1, x2, x3, prev);\n _v1[1] = cubicAt(y0, y1, y2, y3, prev);\n d1 = v2DistSquare(_v1, _v0);\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n _v2[0] = cubicAt(x0, x1, x2, x3, next);\n _v2[1] = cubicAt(y0, y1, y2, y3, next);\n d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n if (out) {\n out[0] = cubicAt(x0, x1, x2, x3, t);\n out[1] = cubicAt(y0, y1, y2, y3, t);\n }\n return mathSqrt(d);\n}\nexport function cubicLength(x0, y0, x1, y1, x2, y2, x3, y3, iteration) {\n var px = x0;\n var py = y0;\n var d = 0;\n var step = 1 / iteration;\n for (var i = 1; i <= iteration; i++) {\n var t = i * step;\n var x = cubicAt(x0, x1, x2, x3, t);\n var y = cubicAt(y0, y1, y2, y3, t);\n var dx = x - px;\n var dy = y - py;\n d += Math.sqrt(dx * dx + dy * dy);\n px = x;\n py = y;\n }\n return d;\n}\nexport function quadraticAt(p0, p1, p2, t) {\n var onet = 1 - t;\n return onet * (onet * p0 + 2 * t * p1) + t * t * p2;\n}\nexport function quadraticDerivativeAt(p0, p1, p2, t) {\n return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));\n}\nexport function quadraticRootAt(p0, p1, p2, val, roots) {\n var a = p0 - 2 * p1 + p2;\n var b = 2 * (p1 - p0);\n var c = p0 - val;\n var n = 0;\n if (isAroundZero(a)) {\n if (isNotAroundZero(b)) {\n var t1 = -c / b;\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n }\n else {\n var disc = b * b - 4 * a * c;\n if (isAroundZero(disc)) {\n var t1 = -b / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n }\n else if (disc > 0) {\n var discSqrt = mathSqrt(disc);\n var t1 = (-b + discSqrt) / (2 * a);\n var t2 = (-b - discSqrt) / (2 * a);\n if (t1 >= 0 && t1 <= 1) {\n roots[n++] = t1;\n }\n if (t2 >= 0 && t2 <= 1) {\n roots[n++] = t2;\n }\n }\n }\n return n;\n}\nexport function quadraticExtremum(p0, p1, p2) {\n var divider = p0 + p2 - 2 * p1;\n if (divider === 0) {\n return 0.5;\n }\n else {\n return (p0 - p1) / divider;\n }\n}\nexport function quadraticSubdivide(p0, p1, p2, t, out) {\n var p01 = (p1 - p0) * t + p0;\n var p12 = (p2 - p1) * t + p1;\n var p012 = (p12 - p01) * t + p01;\n out[0] = p0;\n out[1] = p01;\n out[2] = p012;\n out[3] = p012;\n out[4] = p12;\n out[5] = p2;\n}\nexport function quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n _v0[0] = x;\n _v0[1] = y;\n for (var _t = 0; _t < 1; _t += 0.05) {\n _v1[0] = quadraticAt(x0, x1, x2, _t);\n _v1[1] = quadraticAt(y0, y1, y2, _t);\n var d1 = v2DistSquare(_v0, _v1);\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n d = Infinity;\n for (var i = 0; i < 32; i++) {\n if (interval < EPSILON_NUMERIC) {\n break;\n }\n var prev = t - interval;\n var next = t + interval;\n _v1[0] = quadraticAt(x0, x1, x2, prev);\n _v1[1] = quadraticAt(y0, y1, y2, prev);\n var d1 = v2DistSquare(_v1, _v0);\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n }\n else {\n _v2[0] = quadraticAt(x0, x1, x2, next);\n _v2[1] = quadraticAt(y0, y1, y2, next);\n var d2 = v2DistSquare(_v2, _v0);\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n }\n else {\n interval *= 0.5;\n }\n }\n }\n if (out) {\n out[0] = quadraticAt(x0, x1, x2, t);\n out[1] = quadraticAt(y0, y1, y2, t);\n }\n return mathSqrt(d);\n}\nexport function quadraticLength(x0, y0, x1, y1, x2, y2, iteration) {\n var px = x0;\n var py = y0;\n var d = 0;\n var step = 1 / iteration;\n for (var i = 1; i <= iteration; i++) {\n var t = i * step;\n var x = quadraticAt(x0, x1, x2, t);\n var y = quadraticAt(y0, y1, y2, t);\n var dx = x - px;\n var dy = y - py;\n d += Math.sqrt(dx * dx + dy * dy);\n px = x;\n py = y;\n }\n return d;\n}\n","import * as vec2 from './vector';\nimport * as curve from './curve';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI2 = Math.PI * 2;\nvar start = vec2.create();\nvar end = vec2.create();\nvar extremity = vec2.create();\nexport function fromPoints(points, min, max) {\n if (points.length === 0) {\n return;\n }\n var p = points[0];\n var left = p[0];\n var right = p[0];\n var top = p[1];\n var bottom = p[1];\n for (var i = 1; i < points.length; i++) {\n p = points[i];\n left = mathMin(left, p[0]);\n right = mathMax(right, p[0]);\n top = mathMin(top, p[1]);\n bottom = mathMax(bottom, p[1]);\n }\n min[0] = left;\n min[1] = top;\n max[0] = right;\n max[1] = bottom;\n}\nexport function fromLine(x0, y0, x1, y1, min, max) {\n min[0] = mathMin(x0, x1);\n min[1] = mathMin(y0, y1);\n max[0] = mathMax(x0, x1);\n max[1] = mathMax(y0, y1);\n}\nvar xDim = [];\nvar yDim = [];\nexport function fromCubic(x0, y0, x1, y1, x2, y2, x3, y3, min, max) {\n var cubicExtrema = curve.cubicExtrema;\n var cubicAt = curve.cubicAt;\n var n = cubicExtrema(x0, x1, x2, x3, xDim);\n min[0] = Infinity;\n min[1] = Infinity;\n max[0] = -Infinity;\n max[1] = -Infinity;\n for (var i = 0; i < n; i++) {\n var x = cubicAt(x0, x1, x2, x3, xDim[i]);\n min[0] = mathMin(x, min[0]);\n max[0] = mathMax(x, max[0]);\n }\n n = cubicExtrema(y0, y1, y2, y3, yDim);\n for (var i = 0; i < n; i++) {\n var y = cubicAt(y0, y1, y2, y3, yDim[i]);\n min[1] = mathMin(y, min[1]);\n max[1] = mathMax(y, max[1]);\n }\n min[0] = mathMin(x0, min[0]);\n max[0] = mathMax(x0, max[0]);\n min[0] = mathMin(x3, min[0]);\n max[0] = mathMax(x3, max[0]);\n min[1] = mathMin(y0, min[1]);\n max[1] = mathMax(y0, max[1]);\n min[1] = mathMin(y3, min[1]);\n max[1] = mathMax(y3, max[1]);\n}\nexport function fromQuadratic(x0, y0, x1, y1, x2, y2, min, max) {\n var quadraticExtremum = curve.quadraticExtremum;\n var quadraticAt = curve.quadraticAt;\n var tx = mathMax(mathMin(quadraticExtremum(x0, x1, x2), 1), 0);\n var ty = mathMax(mathMin(quadraticExtremum(y0, y1, y2), 1), 0);\n var x = quadraticAt(x0, x1, x2, tx);\n var y = quadraticAt(y0, y1, y2, ty);\n min[0] = mathMin(x0, x2, x);\n min[1] = mathMin(y0, y2, y);\n max[0] = mathMax(x0, x2, x);\n max[1] = mathMax(y0, y2, y);\n}\nexport function fromArc(x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max) {\n var vec2Min = vec2.min;\n var vec2Max = vec2.max;\n var diff = Math.abs(startAngle - endAngle);\n if (diff % PI2 < 1e-4 && diff > 1e-4) {\n min[0] = x - rx;\n min[1] = y - ry;\n max[0] = x + rx;\n max[1] = y + ry;\n return;\n }\n start[0] = mathCos(startAngle) * rx + x;\n start[1] = mathSin(startAngle) * ry + y;\n end[0] = mathCos(endAngle) * rx + x;\n end[1] = mathSin(endAngle) * ry + y;\n vec2Min(min, start, end);\n vec2Max(max, start, end);\n startAngle = startAngle % (PI2);\n if (startAngle < 0) {\n startAngle = startAngle + PI2;\n }\n endAngle = endAngle % (PI2);\n if (endAngle < 0) {\n endAngle = endAngle + PI2;\n }\n if (startAngle > endAngle && !anticlockwise) {\n endAngle += PI2;\n }\n else if (startAngle < endAngle && anticlockwise) {\n startAngle += PI2;\n }\n if (anticlockwise) {\n var tmp = endAngle;\n endAngle = startAngle;\n startAngle = tmp;\n }\n for (var angle = 0; angle < endAngle; angle += Math.PI / 2) {\n if (angle > startAngle) {\n extremity[0] = mathCos(angle) * rx + x;\n extremity[1] = mathSin(angle) * ry + y;\n vec2Min(min, extremity, min);\n vec2Max(max, extremity, max);\n }\n }\n}\n","import * as vec2 from './vector';\nimport BoundingRect from './BoundingRect';\nimport { devicePixelRatio as dpr } from '../config';\nimport { fromLine, fromCubic, fromQuadratic, fromArc } from './bbox';\nimport { cubicAt, cubicLength, cubicSubdivide, quadraticLength, quadraticSubdivide } from './curve';\nvar CMD = {\n M: 1,\n L: 2,\n C: 3,\n Q: 4,\n A: 5,\n Z: 6,\n R: 7\n};\nvar tmpOutX = [];\nvar tmpOutY = [];\nvar min = [];\nvar max = [];\nvar min2 = [];\nvar max2 = [];\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathCos = Math.cos;\nvar mathSin = Math.sin;\nvar mathSqrt = Math.sqrt;\nvar mathAbs = Math.abs;\nvar PI = Math.PI;\nvar PI2 = PI * 2;\nvar hasTypedArray = typeof Float32Array !== 'undefined';\nvar tmpAngles = [];\nfunction modPI2(radian) {\n var n = Math.round(radian / PI * 1e8) / 1e8;\n return (n % 2) * PI;\n}\nexport function normalizeArcAngles(angles, anticlockwise) {\n var newStartAngle = modPI2(angles[0]);\n if (newStartAngle < 0) {\n newStartAngle += PI2;\n }\n var delta = newStartAngle - angles[0];\n var newEndAngle = angles[1];\n newEndAngle += delta;\n if (!anticlockwise && newEndAngle - newStartAngle >= PI2) {\n newEndAngle = newStartAngle + PI2;\n }\n else if (anticlockwise && newStartAngle - newEndAngle >= PI2) {\n newEndAngle = newStartAngle - PI2;\n }\n else if (!anticlockwise && newStartAngle > newEndAngle) {\n newEndAngle = newStartAngle + (PI2 - modPI2(newStartAngle - newEndAngle));\n }\n else if (anticlockwise && newStartAngle < newEndAngle) {\n newEndAngle = newStartAngle - (PI2 - modPI2(newEndAngle - newStartAngle));\n }\n angles[0] = newStartAngle;\n angles[1] = newEndAngle;\n}\nvar PathProxy = (function () {\n function PathProxy(notSaveData) {\n this.dpr = 1;\n this._xi = 0;\n this._yi = 0;\n this._x0 = 0;\n this._y0 = 0;\n this._len = 0;\n if (notSaveData) {\n this._saveData = false;\n }\n if (this._saveData) {\n this.data = [];\n }\n }\n PathProxy.prototype.increaseVersion = function () {\n this._version++;\n };\n PathProxy.prototype.getVersion = function () {\n return this._version;\n };\n PathProxy.prototype.setScale = function (sx, sy, segmentIgnoreThreshold) {\n segmentIgnoreThreshold = segmentIgnoreThreshold || 0;\n if (segmentIgnoreThreshold > 0) {\n this._ux = mathAbs(segmentIgnoreThreshold / dpr / sx) || 0;\n this._uy = mathAbs(segmentIgnoreThreshold / dpr / sy) || 0;\n }\n };\n PathProxy.prototype.setDPR = function (dpr) {\n this.dpr = dpr;\n };\n PathProxy.prototype.setContext = function (ctx) {\n this._ctx = ctx;\n };\n PathProxy.prototype.getContext = function () {\n return this._ctx;\n };\n PathProxy.prototype.beginPath = function () {\n this._ctx && this._ctx.beginPath();\n this.reset();\n return this;\n };\n PathProxy.prototype.reset = function () {\n if (this._saveData) {\n this._len = 0;\n }\n if (this._lineDash) {\n this._lineDash = null;\n this._dashOffset = 0;\n }\n if (this._pathSegLen) {\n this._pathSegLen = null;\n this._pathLen = 0;\n }\n this._version++;\n };\n PathProxy.prototype.moveTo = function (x, y) {\n this._drawPendingPt();\n this.addData(CMD.M, x, y);\n this._ctx && this._ctx.moveTo(x, y);\n this._x0 = x;\n this._y0 = y;\n this._xi = x;\n this._yi = y;\n return this;\n };\n PathProxy.prototype.lineTo = function (x, y) {\n var dx = mathAbs(x - this._xi);\n var dy = mathAbs(y - this._yi);\n var exceedUnit = dx > this._ux || dy > this._uy;\n this.addData(CMD.L, x, y);\n if (this._ctx && exceedUnit) {\n this._needsDash ? this._dashedLineTo(x, y)\n : this._ctx.lineTo(x, y);\n }\n if (exceedUnit) {\n this._xi = x;\n this._yi = y;\n this._pendingPtDist = 0;\n }\n else {\n var d2 = dx * dx + dy * dy;\n if (d2 > this._pendingPtDist) {\n this._pendingPtX = x;\n this._pendingPtY = y;\n this._pendingPtDist = d2;\n }\n }\n return this;\n };\n PathProxy.prototype.bezierCurveTo = function (x1, y1, x2, y2, x3, y3) {\n this.addData(CMD.C, x1, y1, x2, y2, x3, y3);\n if (this._ctx) {\n this._needsDash ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)\n : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n }\n this._xi = x3;\n this._yi = y3;\n return this;\n };\n PathProxy.prototype.quadraticCurveTo = function (x1, y1, x2, y2) {\n this.addData(CMD.Q, x1, y1, x2, y2);\n if (this._ctx) {\n this._needsDash ? this._dashedQuadraticTo(x1, y1, x2, y2)\n : this._ctx.quadraticCurveTo(x1, y1, x2, y2);\n }\n this._xi = x2;\n this._yi = y2;\n return this;\n };\n PathProxy.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {\n tmpAngles[0] = startAngle;\n tmpAngles[1] = endAngle;\n normalizeArcAngles(tmpAngles, anticlockwise);\n startAngle = tmpAngles[0];\n endAngle = tmpAngles[1];\n var delta = endAngle - startAngle;\n this.addData(CMD.A, cx, cy, r, r, startAngle, delta, 0, anticlockwise ? 0 : 1);\n this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n this._xi = mathCos(endAngle) * r + cx;\n this._yi = mathSin(endAngle) * r + cy;\n return this;\n };\n PathProxy.prototype.arcTo = function (x1, y1, x2, y2, radius) {\n if (this._ctx) {\n this._ctx.arcTo(x1, y1, x2, y2, radius);\n }\n return this;\n };\n PathProxy.prototype.rect = function (x, y, w, h) {\n this._ctx && this._ctx.rect(x, y, w, h);\n this.addData(CMD.R, x, y, w, h);\n return this;\n };\n PathProxy.prototype.closePath = function () {\n this._drawPendingPt();\n this.addData(CMD.Z);\n var ctx = this._ctx;\n var x0 = this._x0;\n var y0 = this._y0;\n if (ctx) {\n this._needsDash && this._dashedLineTo(x0, y0);\n ctx.closePath();\n }\n this._xi = x0;\n this._yi = y0;\n return this;\n };\n PathProxy.prototype.fill = function (ctx) {\n ctx && ctx.fill();\n this.toStatic();\n };\n PathProxy.prototype.stroke = function (ctx) {\n ctx && ctx.stroke();\n this.toStatic();\n };\n PathProxy.prototype.setLineDash = function (lineDash) {\n if (lineDash instanceof Array) {\n this._lineDash = lineDash;\n this._dashIdx = 0;\n var lineDashSum = 0;\n for (var i = 0; i < lineDash.length; i++) {\n lineDashSum += lineDash[i];\n }\n this._dashSum = lineDashSum;\n this._needsDash = true;\n }\n else {\n this._lineDash = null;\n this._needsDash = false;\n }\n return this;\n };\n PathProxy.prototype.setLineDashOffset = function (offset) {\n this._dashOffset = offset;\n return this;\n };\n PathProxy.prototype.len = function () {\n return this._len;\n };\n PathProxy.prototype.setData = function (data) {\n var len = data.length;\n if (!(this.data && this.data.length === len) && hasTypedArray) {\n this.data = new Float32Array(len);\n }\n for (var i = 0; i < len; i++) {\n this.data[i] = data[i];\n }\n this._len = len;\n };\n PathProxy.prototype.appendPath = function (path) {\n if (!(path instanceof Array)) {\n path = [path];\n }\n var len = path.length;\n var appendSize = 0;\n var offset = this._len;\n for (var i = 0; i < len; i++) {\n appendSize += path[i].len();\n }\n if (hasTypedArray && (this.data instanceof Float32Array)) {\n this.data = new Float32Array(offset + appendSize);\n }\n for (var i = 0; i < len; i++) {\n var appendPathData = path[i].data;\n for (var k = 0; k < appendPathData.length; k++) {\n this.data[offset++] = appendPathData[k];\n }\n }\n this._len = offset;\n };\n PathProxy.prototype.addData = function (cmd, a, b, c, d, e, f, g, h) {\n if (!this._saveData) {\n return;\n }\n var data = this.data;\n if (this._len + arguments.length > data.length) {\n this._expandData();\n data = this.data;\n }\n for (var i = 0; i < arguments.length; i++) {\n data[this._len++] = arguments[i];\n }\n };\n PathProxy.prototype._drawPendingPt = function () {\n if (this._pendingPtDist > 0) {\n this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY);\n this._pendingPtDist = 0;\n }\n };\n PathProxy.prototype._expandData = function () {\n if (!(this.data instanceof Array)) {\n var newData = [];\n for (var i = 0; i < this._len; i++) {\n newData[i] = this.data[i];\n }\n this.data = newData;\n }\n };\n PathProxy.prototype._dashedLineTo = function (x1, y1) {\n var dashSum = this._dashSum;\n var lineDash = this._lineDash;\n var ctx = this._ctx;\n var offset = this._dashOffset;\n var x0 = this._xi;\n var y0 = this._yi;\n var dx = x1 - x0;\n var dy = y1 - y0;\n var dist = mathSqrt(dx * dx + dy * dy);\n var x = x0;\n var y = y0;\n var nDash = lineDash.length;\n var dash;\n var idx;\n dx /= dist;\n dy /= dist;\n if (offset < 0) {\n offset = dashSum + offset;\n }\n offset %= dashSum;\n x -= offset * dx;\n y -= offset * dy;\n while ((dx > 0 && x <= x1) || (dx < 0 && x >= x1)\n || (dx === 0 && ((dy > 0 && y <= y1) || (dy < 0 && y >= y1)))) {\n idx = this._dashIdx;\n dash = lineDash[idx];\n x += dx * dash;\n y += dy * dash;\n this._dashIdx = (idx + 1) % nDash;\n if ((dx > 0 && x < x0) || (dx < 0 && x > x0) || (dy > 0 && y < y0) || (dy < 0 && y > y0)) {\n continue;\n }\n ctx[idx % 2 ? 'moveTo' : 'lineTo'](dx >= 0 ? mathMin(x, x1) : mathMax(x, x1), dy >= 0 ? mathMin(y, y1) : mathMax(y, y1));\n }\n dx = x - x1;\n dy = y - y1;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n };\n PathProxy.prototype._dashedBezierTo = function (x1, y1, x2, y2, x3, y3) {\n var ctx = this._ctx;\n var dashSum = this._dashSum;\n var offset = this._dashOffset;\n var lineDash = this._lineDash;\n var x0 = this._xi;\n var y0 = this._yi;\n var bezierLen = 0;\n var idx = this._dashIdx;\n var nDash = lineDash.length;\n var t;\n var dx;\n var dy;\n var x;\n var y;\n var tmpLen = 0;\n if (offset < 0) {\n offset = dashSum + offset;\n }\n offset %= dashSum;\n for (t = 0; t < 1; t += 0.1) {\n dx = cubicAt(x0, x1, x2, x3, t + 0.1)\n - cubicAt(x0, x1, x2, x3, t);\n dy = cubicAt(y0, y1, y2, y3, t + 0.1)\n - cubicAt(y0, y1, y2, y3, t);\n bezierLen += mathSqrt(dx * dx + dy * dy);\n }\n for (; idx < nDash; idx++) {\n tmpLen += lineDash[idx];\n if (tmpLen > offset) {\n break;\n }\n }\n t = (tmpLen - offset) / bezierLen;\n while (t <= 1) {\n x = cubicAt(x0, x1, x2, x3, t);\n y = cubicAt(y0, y1, y2, y3, t);\n idx % 2 ? ctx.moveTo(x, y)\n : ctx.lineTo(x, y);\n t += lineDash[idx] / bezierLen;\n idx = (idx + 1) % nDash;\n }\n (idx % 2 !== 0) && ctx.lineTo(x3, y3);\n dx = x3 - x;\n dy = y3 - y;\n this._dashOffset = -mathSqrt(dx * dx + dy * dy);\n };\n PathProxy.prototype._dashedQuadraticTo = function (x1, y1, x2, y2) {\n var x3 = x2;\n var y3 = y2;\n x2 = (x2 + 2 * x1) / 3;\n y2 = (y2 + 2 * y1) / 3;\n x1 = (this._xi + 2 * x1) / 3;\n y1 = (this._yi + 2 * y1) / 3;\n this._dashedBezierTo(x1, y1, x2, y2, x3, y3);\n };\n PathProxy.prototype.toStatic = function () {\n if (!this._saveData) {\n return;\n }\n this._drawPendingPt();\n var data = this.data;\n if (data instanceof Array) {\n data.length = this._len;\n if (hasTypedArray && this._len > 11) {\n this.data = new Float32Array(data);\n }\n }\n };\n PathProxy.prototype.getBoundingRect = function () {\n min[0] = min[1] = min2[0] = min2[1] = Number.MAX_VALUE;\n max[0] = max[1] = max2[0] = max2[1] = -Number.MAX_VALUE;\n var data = this.data;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var i;\n for (i = 0; i < this._len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n min2[0] = x0;\n min2[1] = y0;\n max2[0] = x0;\n max2[1] = y0;\n break;\n case CMD.L:\n fromLine(xi, yi, data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n fromCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n fromQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], min2, max2);\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var endAngle = data[i++] + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n fromArc(cx, cy, rx, ry, startAngle, endAngle, anticlockwise, min2, max2);\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n fromLine(x0, y0, x0 + width, y0 + height, min2, max2);\n break;\n case CMD.Z:\n xi = x0;\n yi = y0;\n break;\n }\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n }\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n return new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n };\n PathProxy.prototype._calculateLength = function () {\n var data = this.data;\n var len = this._len;\n var ux = this._ux;\n var uy = this._uy;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n if (!this._pathSegLen) {\n this._pathSegLen = [];\n }\n var pathSegLen = this._pathSegLen;\n var pathTotalLen = 0;\n var segCount = 0;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n var l = -1;\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n break;\n case CMD.L: {\n var x2 = data[i++];\n var y2 = data[i++];\n var dx = x2 - xi;\n var dy = y2 - yi;\n if (mathAbs(dx) > ux || mathAbs(dy) > uy || i === len - 1) {\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x2;\n yi = y2;\n }\n break;\n }\n case CMD.C: {\n var x1 = data[i++];\n var y1 = data[i++];\n var x2 = data[i++];\n var y2 = data[i++];\n var x3 = data[i++];\n var y3 = data[i++];\n l = cubicLength(xi, yi, x1, y1, x2, y2, x3, y3, 10);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n var x1 = data[i++];\n var y1 = data[i++];\n var x2 = data[i++];\n var y2 = data[i++];\n l = quadraticLength(xi, yi, x1, y1, x2, y2, 10);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var delta = data[i++];\n var endAngle = delta + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n l = mathMax(rx, ry) * mathMin(PI2, Math.abs(delta));\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R: {\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n l = width * 2 + height * 2;\n break;\n }\n case CMD.Z: {\n var dx = x0 - xi;\n var dy = y0 - yi;\n l = Math.sqrt(dx * dx + dy * dy);\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (l >= 0) {\n pathSegLen[segCount++] = l;\n pathTotalLen += l;\n }\n }\n this._pathLen = pathTotalLen;\n return pathTotalLen;\n };\n PathProxy.prototype.rebuildPath = function (ctx, percent) {\n var d = this.data;\n var ux = this._ux;\n var uy = this._uy;\n var len = this._len;\n var x0;\n var y0;\n var xi;\n var yi;\n var x;\n var y;\n var drawPart = percent < 1;\n var pathSegLen;\n var pathTotalLen;\n var accumLength = 0;\n var segCount = 0;\n var displayedLength;\n var pendingPtDist = 0;\n var pendingPtX;\n var pendingPtY;\n if (drawPart) {\n if (!this._pathSegLen) {\n this._calculateLength();\n }\n pathSegLen = this._pathSegLen;\n pathTotalLen = this._pathLen;\n displayedLength = percent * pathTotalLen;\n if (!displayedLength) {\n return;\n }\n }\n lo: for (var i = 0; i < len;) {\n var cmd = d[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = d[i];\n yi = d[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n if (pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n x0 = xi = d[i++];\n y0 = yi = d[i++];\n ctx.moveTo(xi, yi);\n break;\n case CMD.L: {\n x = d[i++];\n y = d[i++];\n var dx = mathAbs(x - xi);\n var dy = mathAbs(y - yi);\n if (dx > ux || dy > uy) {\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x * t, yi * (1 - t) + y * t);\n break lo;\n }\n accumLength += l;\n }\n ctx.lineTo(x, y);\n xi = x;\n yi = y;\n pendingPtDist = 0;\n }\n else {\n var d2 = dx * dx + dy * dy;\n if (d2 > pendingPtDist) {\n pendingPtX = x;\n pendingPtY = y;\n pendingPtDist = d2;\n }\n }\n break;\n }\n case CMD.C: {\n var x1 = d[i++];\n var y1 = d[i++];\n var x2 = d[i++];\n var y2 = d[i++];\n var x3 = d[i++];\n var y3 = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n cubicSubdivide(xi, x1, x2, x3, t, tmpOutX);\n cubicSubdivide(yi, y1, y2, y3, t, tmpOutY);\n ctx.bezierCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2], tmpOutX[3], tmpOutY[3]);\n break lo;\n }\n accumLength += l;\n }\n ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);\n xi = x3;\n yi = y3;\n break;\n }\n case CMD.Q: {\n var x1 = d[i++];\n var y1 = d[i++];\n var x2 = d[i++];\n var y2 = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n quadraticSubdivide(xi, x1, x2, t, tmpOutX);\n quadraticSubdivide(yi, y1, y2, t, tmpOutY);\n ctx.quadraticCurveTo(tmpOutX[1], tmpOutY[1], tmpOutX[2], tmpOutY[2]);\n break lo;\n }\n accumLength += l;\n }\n ctx.quadraticCurveTo(x1, y1, x2, y2);\n xi = x2;\n yi = y2;\n break;\n }\n case CMD.A:\n var cx = d[i++];\n var cy = d[i++];\n var rx = d[i++];\n var ry = d[i++];\n var startAngle = d[i++];\n var delta = d[i++];\n var psi = d[i++];\n var anticlockwise = !d[i++];\n var r = (rx > ry) ? rx : ry;\n var scaleX = (rx > ry) ? 1 : rx / ry;\n var scaleY = (rx > ry) ? ry / rx : 1;\n var isEllipse = mathAbs(rx - ry) > 1e-3;\n var endAngle = startAngle + delta;\n var breakBuild = false;\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n endAngle = startAngle + delta * (displayedLength - accumLength) / l;\n breakBuild = true;\n }\n accumLength += l;\n }\n if (isEllipse && ctx.ellipse) {\n ctx.ellipse(cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise);\n }\n else {\n ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);\n }\n if (breakBuild) {\n break lo;\n }\n if (isFirst) {\n x0 = mathCos(startAngle) * rx + cx;\n y0 = mathSin(startAngle) * ry + cy;\n }\n xi = mathCos(endAngle) * rx + cx;\n yi = mathSin(endAngle) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = d[i];\n y0 = yi = d[i + 1];\n x = d[i++];\n y = d[i++];\n var width = d[i++];\n var height = d[i++];\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var d_1 = displayedLength - accumLength;\n ctx.moveTo(x, y);\n ctx.lineTo(x + mathMin(d_1, width), y);\n d_1 -= width;\n if (d_1 > 0) {\n ctx.lineTo(x + width, y + mathMin(d_1, height));\n }\n d_1 -= height;\n if (d_1 > 0) {\n ctx.lineTo(x + mathMax(width - d_1, 0), y + height);\n }\n d_1 -= width;\n if (d_1 > 0) {\n ctx.lineTo(x, y + mathMax(height - d_1, 0));\n }\n break lo;\n }\n accumLength += l;\n }\n ctx.rect(x, y, width, height);\n break;\n case CMD.Z:\n if (pendingPtDist > 0) {\n ctx.lineTo(pendingPtX, pendingPtY);\n pendingPtDist = 0;\n }\n if (drawPart) {\n var l = pathSegLen[segCount++];\n if (accumLength + l > displayedLength) {\n var t = (displayedLength - accumLength) / l;\n ctx.lineTo(xi * (1 - t) + x0 * t, yi * (1 - t) + y0 * t);\n break lo;\n }\n accumLength += l;\n }\n ctx.closePath();\n xi = x0;\n yi = y0;\n }\n }\n };\n PathProxy.CMD = CMD;\n PathProxy.initDefaultProps = (function () {\n var proto = PathProxy.prototype;\n proto._saveData = true;\n proto._needsDash = false;\n proto._dashOffset = 0;\n proto._dashIdx = 0;\n proto._dashSum = 0;\n proto._ux = 0;\n proto._uy = 0;\n proto._pendingPtDist = 0;\n proto._version = 0;\n })();\n return PathProxy;\n}());\nexport default PathProxy;\n","export function containStroke(x0, y0, x1, y1, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n var _a = 0;\n var _b = x0;\n if ((y > y0 + _l && y > y1 + _l)\n || (y < y0 - _l && y < y1 - _l)\n || (x > x0 + _l && x > x1 + _l)\n || (x < x0 - _l && x < x1 - _l)) {\n return false;\n }\n if (x0 !== x1) {\n _a = (y0 - y1) / (x0 - x1);\n _b = (x0 * y1 - x1 * y0) / (x0 - x1);\n }\n else {\n return Math.abs(x - x0) <= _l / 2;\n }\n var tmp = _a * x - y + _b;\n var _s = tmp * tmp / (_a * _a + 1);\n return _s <= _l / 2 * _l / 2;\n}\n","import * as curve from '../core/curve';\nexport function containStroke(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n if ((y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)) {\n return false;\n }\n var d = curve.cubicProjectPoint(x0, y0, x1, y1, x2, y2, x3, y3, x, y, null);\n return d <= _l / 2;\n}\n","import { quadraticProjectPoint } from '../core/curve';\nexport function containStroke(x0, y0, x1, y1, x2, y2, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n if ((y > y0 + _l && y > y1 + _l && y > y2 + _l)\n || (y < y0 - _l && y < y1 - _l && y < y2 - _l)\n || (x > x0 + _l && x > x1 + _l && x > x2 + _l)\n || (x < x0 - _l && x < x1 - _l && x < x2 - _l)) {\n return false;\n }\n var d = quadraticProjectPoint(x0, y0, x1, y1, x2, y2, x, y, null);\n return d <= _l / 2;\n}\n","var PI2 = Math.PI * 2;\nexport function normalizeRadian(angle) {\n angle %= PI2;\n if (angle < 0) {\n angle += PI2;\n }\n return angle;\n}\n","import { normalizeRadian } from './util';\nvar PI2 = Math.PI * 2;\nexport function containStroke(cx, cy, r, startAngle, endAngle, anticlockwise, lineWidth, x, y) {\n if (lineWidth === 0) {\n return false;\n }\n var _l = lineWidth;\n x -= cx;\n y -= cy;\n var d = Math.sqrt(x * x + y * y);\n if ((d - _l > r) || (d + _l < r)) {\n return false;\n }\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n return true;\n }\n if (anticlockwise) {\n var tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n }\n else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n var angle = Math.atan2(y, x);\n if (angle < 0) {\n angle += PI2;\n }\n return (angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle);\n}\n","export default function windingLine(x0, y0, x1, y1, x, y) {\n if ((y > y0 && y > y1) || (y < y0 && y < y1)) {\n return 0;\n }\n if (y1 === y0) {\n return 0;\n }\n var t = (y - y0) / (y1 - y0);\n var dir = y1 < y0 ? 1 : -1;\n if (t === 1 || t === 0) {\n dir = y1 < y0 ? 0.5 : -0.5;\n }\n var x_ = t * (x1 - x0) + x0;\n return x_ === x ? Infinity : x_ > x ? dir : 0;\n}\n","import PathProxy from '../core/PathProxy';\nimport * as line from './line';\nimport * as cubic from './cubic';\nimport * as quadratic from './quadratic';\nimport * as arc from './arc';\nimport * as curve from '../core/curve';\nimport windingLine from './windingLine';\nvar CMD = PathProxy.CMD;\nvar PI2 = Math.PI * 2;\nvar EPSILON = 1e-4;\nfunction isAroundEqual(a, b) {\n return Math.abs(a - b) < EPSILON;\n}\nvar roots = [-1, -1, -1];\nvar extrema = [-1, -1];\nfunction swapExtrema() {\n var tmp = extrema[0];\n extrema[0] = extrema[1];\n extrema[1] = tmp;\n}\nfunction windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {\n if ((y > y0 && y > y1 && y > y2 && y > y3)\n || (y < y0 && y < y1 && y < y2 && y < y3)) {\n return 0;\n }\n var nRoots = curve.cubicRootAt(y0, y1, y2, y3, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n var w = 0;\n var nExtrema = -1;\n var y0_ = void 0;\n var y1_ = void 0;\n for (var i = 0; i < nRoots; i++) {\n var t = roots[i];\n var unit = (t === 0 || t === 1) ? 0.5 : 1;\n var x_ = curve.cubicAt(x0, x1, x2, x3, t);\n if (x_ < x) {\n continue;\n }\n if (nExtrema < 0) {\n nExtrema = curve.cubicExtrema(y0, y1, y2, y3, extrema);\n if (extrema[1] < extrema[0] && nExtrema > 1) {\n swapExtrema();\n }\n y0_ = curve.cubicAt(y0, y1, y2, y3, extrema[0]);\n if (nExtrema > 1) {\n y1_ = curve.cubicAt(y0, y1, y2, y3, extrema[1]);\n }\n }\n if (nExtrema === 2) {\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else if (t < extrema[1]) {\n w += y1_ < y0_ ? unit : -unit;\n }\n else {\n w += y3 < y1_ ? unit : -unit;\n }\n }\n else {\n if (t < extrema[0]) {\n w += y0_ < y0 ? unit : -unit;\n }\n else {\n w += y3 < y0_ ? unit : -unit;\n }\n }\n }\n return w;\n }\n}\nfunction windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {\n if ((y > y0 && y > y1 && y > y2)\n || (y < y0 && y < y1 && y < y2)) {\n return 0;\n }\n var nRoots = curve.quadraticRootAt(y0, y1, y2, y, roots);\n if (nRoots === 0) {\n return 0;\n }\n else {\n var t = curve.quadraticExtremum(y0, y1, y2);\n if (t >= 0 && t <= 1) {\n var w = 0;\n var y_ = curve.quadraticAt(y0, y1, y2, t);\n for (var i = 0; i < nRoots; i++) {\n var unit = (roots[i] === 0 || roots[i] === 1) ? 0.5 : 1;\n var x_ = curve.quadraticAt(x0, x1, x2, roots[i]);\n if (x_ < x) {\n continue;\n }\n if (roots[i] < t) {\n w += y_ < y0 ? unit : -unit;\n }\n else {\n w += y2 < y_ ? unit : -unit;\n }\n }\n return w;\n }\n else {\n var unit = (roots[0] === 0 || roots[0] === 1) ? 0.5 : 1;\n var x_ = curve.quadraticAt(x0, x1, x2, roots[0]);\n if (x_ < x) {\n return 0;\n }\n return y2 < y0 ? unit : -unit;\n }\n }\n}\nfunction windingArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y) {\n y -= cy;\n if (y > r || y < -r) {\n return 0;\n }\n var tmp = Math.sqrt(r * r - y * y);\n roots[0] = -tmp;\n roots[1] = tmp;\n var dTheta = Math.abs(startAngle - endAngle);\n if (dTheta < 1e-4) {\n return 0;\n }\n if (dTheta >= PI2 - 1e-4) {\n startAngle = 0;\n endAngle = PI2;\n var dir = anticlockwise ? 1 : -1;\n if (x >= roots[0] + cx && x <= roots[1] + cx) {\n return dir;\n }\n else {\n return 0;\n }\n }\n if (startAngle > endAngle) {\n var tmp_1 = startAngle;\n startAngle = endAngle;\n endAngle = tmp_1;\n }\n if (startAngle < 0) {\n startAngle += PI2;\n endAngle += PI2;\n }\n var w = 0;\n for (var i = 0; i < 2; i++) {\n var x_ = roots[i];\n if (x_ + cx > x) {\n var angle = Math.atan2(y, x_);\n var dir = anticlockwise ? 1 : -1;\n if (angle < 0) {\n angle = PI2 + angle;\n }\n if ((angle >= startAngle && angle <= endAngle)\n || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)) {\n if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {\n dir = -dir;\n }\n w += dir;\n }\n }\n }\n return w;\n}\nfunction containPath(path, lineWidth, isStroke, x, y) {\n var data = path.data;\n var len = path.len();\n var w = 0;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var x1;\n var y1;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (cmd === CMD.M && i > 1) {\n if (!isStroke) {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n }\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n case CMD.L:\n if (isStroke) {\n if (line.containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.C:\n if (isStroke) {\n if (cubic.containStroke(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingCubic(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.Q:\n if (isStroke) {\n if (quadratic.containStroke(xi, yi, data[i++], data[i++], data[i], data[i + 1], lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingQuadratic(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y) || 0;\n }\n xi = data[i++];\n yi = data[i++];\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var theta = data[i++];\n var dTheta = data[i++];\n i += 1;\n var anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy;\n if (!isFirst) {\n w += windingLine(xi, yi, x1, y1, x, y);\n }\n else {\n x0 = x1;\n y0 = y1;\n }\n var _x = (x - cx) * ry / rx + cx;\n if (isStroke) {\n if (arc.containStroke(cx, cy, ry, theta, theta + dTheta, anticlockwise, lineWidth, _x, y)) {\n return true;\n }\n }\n else {\n w += windingArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y);\n }\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n x1 = x0 + width;\n y1 = y0 + height;\n if (isStroke) {\n if (line.containStroke(x0, y0, x1, y0, lineWidth, x, y)\n || line.containStroke(x1, y0, x1, y1, lineWidth, x, y)\n || line.containStroke(x1, y1, x0, y1, lineWidth, x, y)\n || line.containStroke(x0, y1, x0, y0, lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(x1, y0, x1, y1, x, y);\n w += windingLine(x0, y1, x0, y0, x, y);\n }\n break;\n case CMD.Z:\n if (isStroke) {\n if (line.containStroke(xi, yi, x0, y0, lineWidth, x, y)) {\n return true;\n }\n }\n else {\n w += windingLine(xi, yi, x0, y0, x, y);\n }\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (!isStroke && !isAroundEqual(yi, y0)) {\n w += windingLine(xi, yi, x0, y0, x, y) || 0;\n }\n return w !== 0;\n}\nexport function contain(pathProxy, x, y) {\n return containPath(pathProxy, 0, false, x, y);\n}\nexport function containStroke(pathProxy, lineWidth, x, y) {\n return containPath(pathProxy, lineWidth, true, x, y);\n}\n","import { __extends } from \"tslib\";\nimport Displayable, { DEFAULT_COMMON_STYLE, DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nimport PathProxy from '../core/PathProxy';\nimport * as pathContain from '../contain/path';\nimport { defaults, keys, extend, clone, isString, createObject } from '../core/util';\nimport { lum } from '../tool/color';\nimport { DARK_LABEL_COLOR, LIGHT_LABEL_COLOR, DARK_MODE_THRESHOLD, LIGHTER_LABEL_COLOR } from '../config';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT, STYLE_CHANGED_BIT } from './constants';\nexport var DEFAULT_PATH_STYLE = defaults({\n fill: '#000',\n stroke: null,\n strokePercent: 1,\n fillOpacity: 1,\n strokeOpacity: 1,\n lineDashOffset: 0,\n lineWidth: 1,\n lineCap: 'butt',\n miterLimit: 10,\n strokeNoScale: false,\n strokeFirst: false\n}, DEFAULT_COMMON_STYLE);\nexport var DEFAULT_PATH_ANIMATION_PROPS = {\n style: defaults({\n fill: true,\n stroke: true,\n strokePercent: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineDashOffset: true,\n lineWidth: true,\n miterLimit: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nvar pathCopyParams = [\n 'x', 'y', 'rotation', 'scaleX', 'scaleY', 'originX', 'originY', 'invisible',\n 'culling', 'z', 'z2', 'zlevel', 'parent'\n];\nvar Path = (function (_super) {\n __extends(Path, _super);\n function Path(opts) {\n return _super.call(this, opts) || this;\n }\n Path.prototype.update = function () {\n var _this = this;\n _super.prototype.update.call(this);\n var style = this.style;\n if (style.decal) {\n var decalEl = this._decalEl = this._decalEl || new Path();\n if (decalEl.buildPath === Path.prototype.buildPath) {\n decalEl.buildPath = function (ctx) {\n _this.buildPath(ctx, _this.shape);\n };\n }\n decalEl.silent = true;\n var decalElStyle = decalEl.style;\n for (var key in style) {\n if (decalElStyle[key] !== style[key]) {\n decalElStyle[key] = style[key];\n }\n }\n decalElStyle.fill = style.fill ? style.decal : null;\n decalElStyle.decal = null;\n decalElStyle.shadowColor = null;\n style.strokeFirst && (decalElStyle.stroke = null);\n for (var i = 0; i < pathCopyParams.length; ++i) {\n decalEl[pathCopyParams[i]] = this[pathCopyParams[i]];\n }\n decalEl.__dirty |= REDARAW_BIT;\n }\n else if (this._decalEl) {\n this._decalEl = null;\n }\n };\n Path.prototype.getDecalElement = function () {\n return this._decalEl;\n };\n Path.prototype._init = function (props) {\n var keysArr = keys(props);\n this.shape = this.getDefaultShape();\n var defaultStyle = this.getDefaultStyle();\n if (defaultStyle) {\n this.useStyle(defaultStyle);\n }\n for (var i = 0; i < keysArr.length; i++) {\n var key = keysArr[i];\n var value = props[key];\n if (key === 'style') {\n if (!this.style) {\n this.useStyle(value);\n }\n else {\n extend(this.style, value);\n }\n }\n else if (key === 'shape') {\n extend(this.shape, value);\n }\n else {\n _super.prototype.attrKV.call(this, key, value);\n }\n }\n if (!this.style) {\n this.useStyle({});\n }\n };\n Path.prototype.getDefaultStyle = function () {\n return null;\n };\n Path.prototype.getDefaultShape = function () {\n return {};\n };\n Path.prototype.canBeInsideText = function () {\n return this.hasFill();\n };\n Path.prototype.getInsideTextFill = function () {\n var pathFill = this.style.fill;\n if (pathFill !== 'none') {\n if (isString(pathFill)) {\n var fillLum = lum(pathFill, 0);\n if (fillLum > 0.5) {\n return DARK_LABEL_COLOR;\n }\n else if (fillLum > 0.2) {\n return LIGHTER_LABEL_COLOR;\n }\n return LIGHT_LABEL_COLOR;\n }\n else if (pathFill) {\n return LIGHT_LABEL_COLOR;\n }\n }\n return DARK_LABEL_COLOR;\n };\n Path.prototype.getInsideTextStroke = function (textFill) {\n var pathFill = this.style.fill;\n if (isString(pathFill)) {\n var zr = this.__zr;\n var isDarkMode = !!(zr && zr.isDarkMode());\n var isDarkLabel = lum(textFill, 0) < DARK_MODE_THRESHOLD;\n if (isDarkMode === isDarkLabel) {\n return pathFill;\n }\n }\n };\n Path.prototype.buildPath = function (ctx, shapeCfg, inBundle) { };\n Path.prototype.pathUpdated = function () {\n this.__dirty &= ~SHAPE_CHANGED_BIT;\n };\n Path.prototype.createPathProxy = function () {\n this.path = new PathProxy(false);\n };\n Path.prototype.hasStroke = function () {\n var style = this.style;\n var stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n };\n Path.prototype.hasFill = function () {\n var style = this.style;\n var fill = style.fill;\n return fill != null && fill !== 'none';\n };\n Path.prototype.getBoundingRect = function () {\n var rect = this._rect;\n var style = this.style;\n var needsUpdateRect = !rect;\n if (needsUpdateRect) {\n var firstInvoke = false;\n if (!this.path) {\n firstInvoke = true;\n this.createPathProxy();\n }\n var path = this.path;\n if (firstInvoke || (this.__dirty & SHAPE_CHANGED_BIT)) {\n path.beginPath();\n this.buildPath(path, this.shape, false);\n this.pathUpdated();\n }\n rect = path.getBoundingRect();\n }\n this._rect = rect;\n if (this.hasStroke() && this.path && this.path.len() > 0) {\n var rectWithStroke = this._rectWithStroke || (this._rectWithStroke = rect.clone());\n if (this.__dirty || needsUpdateRect) {\n rectWithStroke.copy(rect);\n var lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n var w = style.lineWidth;\n if (!this.hasFill()) {\n var strokeContainThreshold = this.strokeContainThreshold;\n w = Math.max(w, strokeContainThreshold == null ? 4 : strokeContainThreshold);\n }\n if (lineScale > 1e-10) {\n rectWithStroke.width += w / lineScale;\n rectWithStroke.height += w / lineScale;\n rectWithStroke.x -= w / lineScale / 2;\n rectWithStroke.y -= w / lineScale / 2;\n }\n }\n return rectWithStroke;\n }\n return rect;\n };\n Path.prototype.contain = function (x, y) {\n var localPos = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n var style = this.style;\n x = localPos[0];\n y = localPos[1];\n if (rect.contain(x, y)) {\n var pathProxy = this.path;\n if (this.hasStroke()) {\n var lineWidth = style.lineWidth;\n var lineScale = style.strokeNoScale ? this.getLineScale() : 1;\n if (lineScale > 1e-10) {\n if (!this.hasFill()) {\n lineWidth = Math.max(lineWidth, this.strokeContainThreshold);\n }\n if (pathContain.containStroke(pathProxy, lineWidth / lineScale, x, y)) {\n return true;\n }\n }\n }\n if (this.hasFill()) {\n return pathContain.contain(pathProxy, x, y);\n }\n }\n return false;\n };\n Path.prototype.dirtyShape = function () {\n this.__dirty |= SHAPE_CHANGED_BIT;\n if (this._rect) {\n this._rect = null;\n }\n if (this._decalEl) {\n this._decalEl.dirtyShape();\n }\n this.markRedraw();\n };\n Path.prototype.dirty = function () {\n this.dirtyStyle();\n this.dirtyShape();\n };\n Path.prototype.animateShape = function (loop) {\n return this.animate('shape', loop);\n };\n Path.prototype.updateDuringAnimation = function (targetKey) {\n if (targetKey === 'style') {\n this.dirtyStyle();\n }\n else if (targetKey === 'shape') {\n this.dirtyShape();\n }\n else {\n this.markRedraw();\n }\n };\n Path.prototype.attrKV = function (key, value) {\n if (key === 'shape') {\n this.setShape(value);\n }\n else {\n _super.prototype.attrKV.call(this, key, value);\n }\n };\n Path.prototype.setShape = function (keyOrObj, value) {\n var shape = this.shape;\n if (!shape) {\n shape = this.shape = {};\n }\n if (typeof keyOrObj === 'string') {\n shape[keyOrObj] = value;\n }\n else {\n extend(shape, keyOrObj);\n }\n this.dirtyShape();\n return this;\n };\n Path.prototype.shapeChanged = function () {\n return !!(this.__dirty & SHAPE_CHANGED_BIT);\n };\n Path.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_PATH_STYLE, obj);\n };\n Path.prototype._innerSaveToNormal = function (toState) {\n _super.prototype._innerSaveToNormal.call(this, toState);\n var normalState = this._normalState;\n if (toState.shape && !normalState.shape) {\n normalState.shape = extend({}, this.shape);\n }\n };\n Path.prototype._applyStateObj = function (stateName, state, normalState, keepCurrentStates, transition, animationCfg) {\n _super.prototype._applyStateObj.call(this, stateName, state, normalState, keepCurrentStates, transition, animationCfg);\n var needsRestoreToNormal = !(state && keepCurrentStates);\n var targetShape;\n if (state && state.shape) {\n if (transition) {\n if (keepCurrentStates) {\n targetShape = state.shape;\n }\n else {\n targetShape = extend({}, normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else {\n targetShape = extend({}, keepCurrentStates ? this.shape : normalState.shape);\n extend(targetShape, state.shape);\n }\n }\n else if (needsRestoreToNormal) {\n targetShape = normalState.shape;\n }\n if (targetShape) {\n if (transition) {\n this.shape = extend({}, this.shape);\n var targetShapePrimaryProps = {};\n var shapeKeys = keys(targetShape);\n for (var i = 0; i < shapeKeys.length; i++) {\n var key = shapeKeys[i];\n if (typeof targetShape[key] === 'object') {\n this.shape[key] = targetShape[key];\n }\n else {\n targetShapePrimaryProps[key] = targetShape[key];\n }\n }\n this._transitionState(stateName, {\n shape: targetShapePrimaryProps\n }, animationCfg);\n }\n else {\n this.shape = targetShape;\n this.dirtyShape();\n }\n }\n };\n Path.prototype._mergeStates = function (states) {\n var mergedState = _super.prototype._mergeStates.call(this, states);\n var mergedShape;\n for (var i = 0; i < states.length; i++) {\n var state = states[i];\n if (state.shape) {\n mergedShape = mergedShape || {};\n this._mergeStyle(mergedShape, state.shape);\n }\n }\n if (mergedShape) {\n mergedState.shape = mergedShape;\n }\n return mergedState;\n };\n Path.prototype.getAnimationStyleProps = function () {\n return DEFAULT_PATH_ANIMATION_PROPS;\n };\n Path.prototype.isZeroArea = function () {\n return false;\n };\n Path.extend = function (defaultProps) {\n var Sub = (function (_super) {\n __extends(Sub, _super);\n function Sub(opts) {\n var _this = _super.call(this, opts) || this;\n defaultProps.init && defaultProps.init.call(_this, opts);\n return _this;\n }\n Sub.prototype.getDefaultStyle = function () {\n return clone(defaultProps.style);\n };\n Sub.prototype.getDefaultShape = function () {\n return clone(defaultProps.shape);\n };\n return Sub;\n }(Path));\n for (var key in defaultProps) {\n if (typeof defaultProps[key] === 'function') {\n Sub.prototype[key] = defaultProps[key];\n }\n }\n return Sub;\n };\n Path.initDefaultProps = (function () {\n var pathProto = Path.prototype;\n pathProto.type = 'path';\n pathProto.strokeContainThreshold = 5;\n pathProto.segmentIgnoreThreshold = 0;\n pathProto.subPixelOptimize = false;\n pathProto.autoBatch = false;\n pathProto.__dirty = REDARAW_BIT | STYLE_CHANGED_BIT | SHAPE_CHANGED_BIT;\n })();\n return Path;\n}(Displayable));\nexport default Path;\n","import { __extends } from \"tslib\";\nimport Displayable from './Displayable';\nimport { getBoundingRect, DEFAULT_FONT } from '../contain/text';\nimport { DEFAULT_PATH_STYLE } from './Path';\nimport { createObject, defaults } from '../core/util';\nexport var DEFAULT_TSPAN_STYLE = defaults({\n strokeFirst: true,\n font: DEFAULT_FONT,\n x: 0,\n y: 0,\n textAlign: 'left',\n textBaseline: 'top',\n miterLimit: 2\n}, DEFAULT_PATH_STYLE);\nvar TSpan = (function (_super) {\n __extends(TSpan, _super);\n function TSpan() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n TSpan.prototype.hasStroke = function () {\n var style = this.style;\n var stroke = style.stroke;\n return stroke != null && stroke !== 'none' && style.lineWidth > 0;\n };\n TSpan.prototype.hasFill = function () {\n var style = this.style;\n var fill = style.fill;\n return fill != null && fill !== 'none';\n };\n TSpan.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_TSPAN_STYLE, obj);\n };\n TSpan.prototype.setBoundingRect = function (rect) {\n this._rect = rect;\n };\n TSpan.prototype.getBoundingRect = function () {\n var style = this.style;\n if (!this._rect) {\n var text = style.text;\n text != null ? (text += '') : (text = '');\n var rect = getBoundingRect(text, style.font, style.textAlign, style.textBaseline);\n rect.x += style.x || 0;\n rect.y += style.y || 0;\n if (this.hasStroke()) {\n var w = style.lineWidth;\n rect.x -= w / 2;\n rect.y -= w / 2;\n rect.width += w;\n rect.height += w;\n }\n this._rect = rect;\n }\n return this._rect;\n };\n TSpan.initDefaultProps = (function () {\n var tspanProto = TSpan.prototype;\n tspanProto.dirtyRectTolerance = 10;\n })();\n return TSpan;\n}(Displayable));\nTSpan.prototype.type = 'tspan';\nexport default TSpan;\n","import { __extends } from \"tslib\";\nimport Displayable, { DEFAULT_COMMON_STYLE, DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nimport { defaults, createObject } from '../core/util';\nexport var DEFAULT_IMAGE_STYLE = defaults({\n x: 0,\n y: 0\n}, DEFAULT_COMMON_STYLE);\nexport var DEFAULT_IMAGE_ANIMATION_PROPS = {\n style: defaults({\n x: true,\n y: true,\n width: true,\n height: true,\n sx: true,\n sy: true,\n sWidth: true,\n sHeight: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nfunction isImageLike(source) {\n return !!(source\n && typeof source !== 'string'\n && source.width && source.height);\n}\nvar ZRImage = (function (_super) {\n __extends(ZRImage, _super);\n function ZRImage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n ZRImage.prototype.createStyle = function (obj) {\n return createObject(DEFAULT_IMAGE_STYLE, obj);\n };\n ZRImage.prototype._getSize = function (dim) {\n var style = this.style;\n var size = style[dim];\n if (size != null) {\n return size;\n }\n var imageSource = isImageLike(style.image)\n ? style.image : this.__image;\n if (!imageSource) {\n return 0;\n }\n var otherDim = dim === 'width' ? 'height' : 'width';\n var otherDimSize = style[otherDim];\n if (otherDimSize == null) {\n return imageSource[dim];\n }\n else {\n return imageSource[dim] / imageSource[otherDim] * otherDimSize;\n }\n };\n ZRImage.prototype.getWidth = function () {\n return this._getSize('width');\n };\n ZRImage.prototype.getHeight = function () {\n return this._getSize('height');\n };\n ZRImage.prototype.getAnimationStyleProps = function () {\n return DEFAULT_IMAGE_ANIMATION_PROPS;\n };\n ZRImage.prototype.getBoundingRect = function () {\n var style = this.style;\n if (!this._rect) {\n this._rect = new BoundingRect(style.x || 0, style.y || 0, this.getWidth(), this.getHeight());\n }\n return this._rect;\n };\n return ZRImage;\n}(Displayable));\nZRImage.prototype.type = 'image';\nexport default ZRImage;\n","export function buildPath(ctx, shape) {\n var x = shape.x;\n var y = shape.y;\n var width = shape.width;\n var height = shape.height;\n var r = shape.r;\n var r1;\n var r2;\n var r3;\n var r4;\n if (width < 0) {\n x = x + width;\n width = -width;\n }\n if (height < 0) {\n y = y + height;\n height = -height;\n }\n if (typeof r === 'number') {\n r1 = r2 = r3 = r4 = r;\n }\n else if (r instanceof Array) {\n if (r.length === 1) {\n r1 = r2 = r3 = r4 = r[0];\n }\n else if (r.length === 2) {\n r1 = r3 = r[0];\n r2 = r4 = r[1];\n }\n else if (r.length === 3) {\n r1 = r[0];\n r2 = r4 = r[1];\n r3 = r[2];\n }\n else {\n r1 = r[0];\n r2 = r[1];\n r3 = r[2];\n r4 = r[3];\n }\n }\n else {\n r1 = r2 = r3 = r4 = 0;\n }\n var total;\n if (r1 + r2 > width) {\n total = r1 + r2;\n r1 *= width / total;\n r2 *= width / total;\n }\n if (r3 + r4 > width) {\n total = r3 + r4;\n r3 *= width / total;\n r4 *= width / total;\n }\n if (r2 + r3 > height) {\n total = r2 + r3;\n r2 *= height / total;\n r3 *= height / total;\n }\n if (r1 + r4 > height) {\n total = r1 + r4;\n r1 *= height / total;\n r4 *= height / total;\n }\n ctx.moveTo(x + r1, y);\n ctx.lineTo(x + width - r2, y);\n r2 !== 0 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0);\n ctx.lineTo(x + width, y + height - r3);\n r3 !== 0 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2);\n ctx.lineTo(x + r4, y + height);\n r4 !== 0 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI);\n ctx.lineTo(x, y + r1);\n r1 !== 0 && ctx.arc(x + r1, y + r1, r1, Math.PI, Math.PI * 1.5);\n}\n","var round = Math.round;\nexport function subPixelOptimizeLine(outputShape, inputShape, style) {\n if (!inputShape) {\n return;\n }\n var x1 = inputShape.x1;\n var x2 = inputShape.x2;\n var y1 = inputShape.y1;\n var y2 = inputShape.y2;\n outputShape.x1 = x1;\n outputShape.x2 = x2;\n outputShape.y1 = y1;\n outputShape.y2 = y2;\n var lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape;\n }\n if (round(x1 * 2) === round(x2 * 2)) {\n outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);\n }\n if (round(y1 * 2) === round(y2 * 2)) {\n outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);\n }\n return outputShape;\n}\nexport function subPixelOptimizeRect(outputShape, inputShape, style) {\n if (!inputShape) {\n return;\n }\n var originX = inputShape.x;\n var originY = inputShape.y;\n var originWidth = inputShape.width;\n var originHeight = inputShape.height;\n outputShape.x = originX;\n outputShape.y = originY;\n outputShape.width = originWidth;\n outputShape.height = originHeight;\n var lineWidth = style && style.lineWidth;\n if (!lineWidth) {\n return outputShape;\n }\n outputShape.x = subPixelOptimize(originX, lineWidth, true);\n outputShape.y = subPixelOptimize(originY, lineWidth, true);\n outputShape.width = Math.max(subPixelOptimize(originX + originWidth, lineWidth, false) - outputShape.x, originWidth === 0 ? 0 : 1);\n outputShape.height = Math.max(subPixelOptimize(originY + originHeight, lineWidth, false) - outputShape.y, originHeight === 0 ? 0 : 1);\n return outputShape;\n}\nexport function subPixelOptimize(position, lineWidth, positiveOrNegative) {\n if (!lineWidth) {\n return position;\n }\n var doubledPosition = round(position * 2);\n return (doubledPosition + round(lineWidth)) % 2 === 0\n ? doubledPosition / 2\n : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as roundRectHelper from '../helper/roundRect';\nimport { subPixelOptimizeRect } from '../helper/subPixelOptimize';\nvar RectShape = (function () {\n function RectShape() {\n this.x = 0;\n this.y = 0;\n this.width = 0;\n this.height = 0;\n }\n return RectShape;\n}());\nexport { RectShape };\nvar subPixelOptimizeOutputShape = {};\nvar Rect = (function (_super) {\n __extends(Rect, _super);\n function Rect(opts) {\n return _super.call(this, opts) || this;\n }\n Rect.prototype.getDefaultShape = function () {\n return new RectShape();\n };\n Rect.prototype.buildPath = function (ctx, shape) {\n var x;\n var y;\n var width;\n var height;\n if (this.subPixelOptimize) {\n var optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);\n x = optimizedShape.x;\n y = optimizedShape.y;\n width = optimizedShape.width;\n height = optimizedShape.height;\n optimizedShape.r = shape.r;\n shape = optimizedShape;\n }\n else {\n x = shape.x;\n y = shape.y;\n width = shape.width;\n height = shape.height;\n }\n if (!shape.r) {\n ctx.rect(x, y, width, height);\n }\n else {\n roundRectHelper.buildPath(ctx, shape);\n }\n };\n Rect.prototype.isZeroArea = function () {\n return !this.shape.width || !this.shape.height;\n };\n return Rect;\n}(Path));\nRect.prototype.type = 'rect';\nexport default Rect;\n","import { __extends } from \"tslib\";\nimport { parseRichText, parsePlainText } from './helper/parseText';\nimport TSpan from './TSpan';\nimport { retrieve2, each, normalizeCssArray, trim, retrieve3, extend, keys, defaults } from '../core/util';\nimport { DEFAULT_FONT, adjustTextX, adjustTextY } from '../contain/text';\nimport ZRImage from './Image';\nimport Rect from './shape/Rect';\nimport BoundingRect from '../core/BoundingRect';\nimport { copy } from '../core/matrix';\nimport Displayable, { DEFAULT_COMMON_ANIMATION_PROPS } from './Displayable';\nvar DEFAULT_RICH_TEXT_COLOR = {\n fill: '#000'\n};\nvar DEFAULT_STROKE_LINE_WIDTH = 2;\nexport var DEFAULT_TEXT_ANIMATION_PROPS = {\n style: defaults({\n fill: true,\n stroke: true,\n fillOpacity: true,\n strokeOpacity: true,\n lineWidth: true,\n fontSize: true,\n lineHeight: true,\n width: true,\n height: true,\n textShadowColor: true,\n textShadowBlur: true,\n textShadowOffsetX: true,\n textShadowOffsetY: true,\n backgroundColor: true,\n padding: true,\n borderColor: true,\n borderWidth: true,\n borderRadius: true\n }, DEFAULT_COMMON_ANIMATION_PROPS.style)\n};\nvar ZRText = (function (_super) {\n __extends(ZRText, _super);\n function ZRText(opts) {\n var _this = _super.call(this) || this;\n _this.type = 'text';\n _this._children = [];\n _this._defaultStyle = DEFAULT_RICH_TEXT_COLOR;\n _this.attr(opts);\n return _this;\n }\n ZRText.prototype.childrenRef = function () {\n return this._children;\n };\n ZRText.prototype.update = function () {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n for (var i = 0; i < this._children.length; i++) {\n var child = this._children[i];\n child.zlevel = this.zlevel;\n child.z = this.z;\n child.z2 = this.z2;\n child.culling = this.culling;\n child.cursor = this.cursor;\n child.invisible = this.invisible;\n }\n var attachedTransform = this.attachedTransform;\n if (attachedTransform) {\n attachedTransform.updateTransform();\n var m = attachedTransform.transform;\n if (m) {\n this.transform = this.transform || [];\n copy(this.transform, m);\n }\n else {\n this.transform = null;\n }\n }\n else {\n _super.prototype.update.call(this);\n }\n };\n ZRText.prototype.getComputedTransform = function () {\n if (this.__hostTarget) {\n this.__hostTarget.getComputedTransform();\n this.__hostTarget.updateInnerText(true);\n }\n return this.attachedTransform ? this.attachedTransform.getComputedTransform()\n : _super.prototype.getComputedTransform.call(this);\n };\n ZRText.prototype._updateSubTexts = function () {\n this._childCursor = 0;\n normalizeTextStyle(this.style);\n this.style.rich\n ? this._updateRichTexts()\n : this._updatePlainTexts();\n this._children.length = this._childCursor;\n this.styleUpdated();\n };\n ZRText.prototype.addSelfToZr = function (zr) {\n _super.prototype.addSelfToZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n this._children[i].__zr = zr;\n }\n };\n ZRText.prototype.removeSelfFromZr = function (zr) {\n _super.prototype.removeSelfFromZr.call(this, zr);\n for (var i = 0; i < this._children.length; i++) {\n this._children[i].__zr = null;\n }\n };\n ZRText.prototype.getBoundingRect = function () {\n if (this.styleChanged()) {\n this._updateSubTexts();\n }\n if (!this._rect) {\n var tmpRect = new BoundingRect(0, 0, 0, 0);\n var children = this._children;\n var tmpMat = [];\n var rect = null;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n var childRect = child.getBoundingRect();\n var transform = child.getLocalTransform(tmpMat);\n if (transform) {\n tmpRect.copy(childRect);\n tmpRect.applyTransform(transform);\n rect = rect || tmpRect.clone();\n rect.union(tmpRect);\n }\n else {\n rect = rect || childRect.clone();\n rect.union(childRect);\n }\n }\n this._rect = rect || tmpRect;\n }\n return this._rect;\n };\n ZRText.prototype.setDefaultTextStyle = function (defaultTextStyle) {\n this._defaultStyle = defaultTextStyle || DEFAULT_RICH_TEXT_COLOR;\n };\n ZRText.prototype.setTextContent = function (textContent) {\n throw new Error('Can\\'t attach text on another text');\n };\n ZRText.prototype._mergeStyle = function (targetStyle, sourceStyle) {\n if (!sourceStyle) {\n return targetStyle;\n }\n var sourceRich = sourceStyle.rich;\n var targetRich = targetStyle.rich || (sourceRich && {});\n extend(targetStyle, sourceStyle);\n if (sourceRich && targetRich) {\n this._mergeRich(targetRich, sourceRich);\n targetStyle.rich = targetRich;\n }\n else if (targetRich) {\n targetStyle.rich = targetRich;\n }\n return targetStyle;\n };\n ZRText.prototype._mergeRich = function (targetRich, sourceRich) {\n var richNames = keys(sourceRich);\n for (var i = 0; i < richNames.length; i++) {\n var richName = richNames[i];\n targetRich[richName] = targetRich[richName] || {};\n extend(targetRich[richName], sourceRich[richName]);\n }\n };\n ZRText.prototype.getAnimationStyleProps = function () {\n return DEFAULT_TEXT_ANIMATION_PROPS;\n };\n ZRText.prototype._getOrCreateChild = function (Ctor) {\n var child = this._children[this._childCursor];\n if (!child || !(child instanceof Ctor)) {\n child = new Ctor();\n }\n this._children[this._childCursor++] = child;\n child.__zr = this.__zr;\n child.parent = this;\n return child;\n };\n ZRText.prototype._updatePlainTexts = function () {\n var style = this.style;\n var textFont = style.font || DEFAULT_FONT;\n var textPadding = style.padding;\n var text = getStyleText(style);\n var contentBlock = parsePlainText(text, style);\n var needDrawBg = needDrawBackground(style);\n var bgColorDrawn = !!(style.backgroundColor);\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var defaultStyle = this._defaultStyle;\n var baseX = style.x || 0;\n var baseY = style.y || 0;\n var textAlign = style.align || defaultStyle.align || 'left';\n var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign || 'top';\n var textX = baseX;\n var textY = adjustTextY(baseY, contentBlock.contentHeight, verticalAlign);\n if (needDrawBg || textPadding) {\n var outerWidth_1 = contentBlock.width;\n textPadding && (outerWidth_1 += textPadding[1] + textPadding[3]);\n var boxX = adjustTextX(baseX, outerWidth_1, textAlign);\n var boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n needDrawBg && this._renderBackground(style, style, boxX, boxY, outerWidth_1, outerHeight);\n }\n textY += lineHeight / 2;\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n if (verticalAlign === 'top') {\n textY += textPadding[0];\n }\n else if (verticalAlign === 'bottom') {\n textY -= textPadding[2];\n }\n }\n var defaultLineWidth = 0;\n var useDefaultFill = false;\n var textFill = getFill('fill' in style\n ? style.fill\n : (useDefaultFill = true, defaultStyle.fill));\n var textStroke = getStroke('stroke' in style\n ? style.stroke\n : (!bgColorDrawn\n && (!defaultStyle.autoStroke || useDefaultFill))\n ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null);\n var hasShadow = style.textShadowBlur > 0;\n var fixedBoundingRect = style.width != null\n && (style.overflow === 'truncate' || style.overflow === 'break' || style.overflow === 'breakAll');\n var calculatedLineHeight = contentBlock.calculatedLineHeight;\n for (var i = 0; i < textLines.length; i++) {\n var el = this._getOrCreateChild(TSpan);\n var subElStyle = el.createStyle();\n el.useStyle(subElStyle);\n subElStyle.text = textLines[i];\n subElStyle.x = textX;\n subElStyle.y = textY;\n if (textAlign) {\n subElStyle.textAlign = textAlign;\n }\n subElStyle.textBaseline = 'middle';\n subElStyle.opacity = style.opacity;\n subElStyle.strokeFirst = true;\n if (hasShadow) {\n subElStyle.shadowBlur = style.textShadowBlur || 0;\n subElStyle.shadowColor = style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = style.textShadowOffsetY || 0;\n }\n if (textStroke) {\n subElStyle.stroke = textStroke;\n subElStyle.lineWidth = style.lineWidth || defaultLineWidth;\n subElStyle.lineDash = style.lineDash;\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n subElStyle.font = textFont;\n textY += lineHeight;\n if (fixedBoundingRect) {\n el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, style.width, subElStyle.textAlign), adjustTextY(subElStyle.y, calculatedLineHeight, subElStyle.textBaseline), style.width, calculatedLineHeight));\n }\n }\n };\n ZRText.prototype._updateRichTexts = function () {\n var style = this.style;\n var text = getStyleText(style);\n var contentBlock = parseRichText(text, style);\n var contentWidth = contentBlock.width;\n var outerWidth = contentBlock.outerWidth;\n var outerHeight = contentBlock.outerHeight;\n var textPadding = style.padding;\n var baseX = style.x || 0;\n var baseY = style.y || 0;\n var defaultStyle = this._defaultStyle;\n var textAlign = style.align || defaultStyle.align;\n var verticalAlign = style.verticalAlign || defaultStyle.verticalAlign;\n var boxX = adjustTextX(baseX, outerWidth, textAlign);\n var boxY = adjustTextY(baseY, outerHeight, verticalAlign);\n var xLeft = boxX;\n var lineTop = boxY;\n if (textPadding) {\n xLeft += textPadding[3];\n lineTop += textPadding[0];\n }\n var xRight = xLeft + contentWidth;\n if (needDrawBackground(style)) {\n this._renderBackground(style, style, boxX, boxY, outerWidth, outerHeight);\n }\n var bgColorDrawn = !!(style.backgroundColor);\n for (var i = 0; i < contentBlock.lines.length; i++) {\n var line = contentBlock.lines[i];\n var tokens = line.tokens;\n var tokenCount = tokens.length;\n var lineHeight = line.lineHeight;\n var remainedWidth = line.width;\n var leftIndex = 0;\n var lineXLeft = xLeft;\n var lineXRight = xRight;\n var rightIndex = tokenCount - 1;\n var token = void 0;\n while (leftIndex < tokenCount\n && (token = tokens[leftIndex], !token.align || token.align === 'left')) {\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft, 'left', bgColorDrawn);\n remainedWidth -= token.width;\n lineXLeft += token.width;\n leftIndex++;\n }\n while (rightIndex >= 0\n && (token = tokens[rightIndex], token.align === 'right')) {\n this._placeToken(token, style, lineHeight, lineTop, lineXRight, 'right', bgColorDrawn);\n remainedWidth -= token.width;\n lineXRight -= token.width;\n rightIndex--;\n }\n lineXLeft += (contentWidth - (lineXLeft - xLeft) - (xRight - lineXRight) - remainedWidth) / 2;\n while (leftIndex <= rightIndex) {\n token = tokens[leftIndex];\n this._placeToken(token, style, lineHeight, lineTop, lineXLeft + token.width / 2, 'center', bgColorDrawn);\n lineXLeft += token.width;\n leftIndex++;\n }\n lineTop += lineHeight;\n }\n };\n ZRText.prototype._placeToken = function (token, style, lineHeight, lineTop, x, textAlign, parentBgColorDrawn) {\n var tokenStyle = style.rich[token.styleName] || {};\n tokenStyle.text = token.text;\n var verticalAlign = token.verticalAlign;\n var y = lineTop + lineHeight / 2;\n if (verticalAlign === 'top') {\n y = lineTop + token.height / 2;\n }\n else if (verticalAlign === 'bottom') {\n y = lineTop + lineHeight - token.height / 2;\n }\n var needDrawBg = !token.isLineHolder && needDrawBackground(tokenStyle);\n needDrawBg && this._renderBackground(tokenStyle, style, textAlign === 'right'\n ? x - token.width\n : textAlign === 'center'\n ? x - token.width / 2\n : x, y - token.height / 2, token.width, token.height);\n var bgColorDrawn = !!tokenStyle.backgroundColor;\n var textPadding = token.textPadding;\n if (textPadding) {\n x = getTextXForPadding(x, textAlign, textPadding);\n y -= token.height / 2 - textPadding[0] - token.innerHeight / 2;\n }\n var el = this._getOrCreateChild(TSpan);\n var subElStyle = el.createStyle();\n el.useStyle(subElStyle);\n var defaultStyle = this._defaultStyle;\n var useDefaultFill = false;\n var defaultLineWidth = 0;\n var textFill = getStroke('fill' in tokenStyle ? tokenStyle.fill\n : 'fill' in style ? style.fill\n : (useDefaultFill = true, defaultStyle.fill));\n var textStroke = getStroke('stroke' in tokenStyle ? tokenStyle.stroke\n : 'stroke' in style ? style.stroke\n : (!bgColorDrawn\n && !parentBgColorDrawn\n && (!defaultStyle.autoStroke || useDefaultFill)) ? (defaultLineWidth = DEFAULT_STROKE_LINE_WIDTH, defaultStyle.stroke)\n : null);\n var hasShadow = tokenStyle.textShadowBlur > 0\n || style.textShadowBlur > 0;\n subElStyle.text = token.text;\n subElStyle.x = x;\n subElStyle.y = y;\n if (hasShadow) {\n subElStyle.shadowBlur = tokenStyle.textShadowBlur || style.textShadowBlur || 0;\n subElStyle.shadowColor = tokenStyle.textShadowColor || style.textShadowColor || 'transparent';\n subElStyle.shadowOffsetX = tokenStyle.textShadowOffsetX || style.textShadowOffsetX || 0;\n subElStyle.shadowOffsetY = tokenStyle.textShadowOffsetY || style.textShadowOffsetY || 0;\n }\n subElStyle.textAlign = textAlign;\n subElStyle.textBaseline = 'middle';\n subElStyle.font = token.font || DEFAULT_FONT;\n subElStyle.opacity = retrieve3(tokenStyle.opacity, style.opacity, 1);\n if (textStroke) {\n subElStyle.lineWidth = retrieve3(tokenStyle.lineWidth, style.lineWidth, defaultLineWidth);\n subElStyle.lineDash = retrieve2(tokenStyle.lineDash, style.lineDash);\n subElStyle.lineDashOffset = style.lineDashOffset || 0;\n subElStyle.stroke = textStroke;\n }\n if (textFill) {\n subElStyle.fill = textFill;\n }\n var textWidth = token.contentWidth;\n var textHeight = token.contentHeight;\n el.setBoundingRect(new BoundingRect(adjustTextX(subElStyle.x, textWidth, subElStyle.textAlign), adjustTextY(subElStyle.y, textHeight, subElStyle.textBaseline), textWidth, textHeight));\n };\n ZRText.prototype._renderBackground = function (style, topStyle, x, y, width, height) {\n var textBackgroundColor = style.backgroundColor;\n var textBorderWidth = style.borderWidth;\n var textBorderColor = style.borderColor;\n var isImageBg = textBackgroundColor && textBackgroundColor.image;\n var isPlainOrGradientBg = textBackgroundColor && !isImageBg;\n var textBorderRadius = style.borderRadius;\n var self = this;\n var rectEl;\n var imgEl;\n if (isPlainOrGradientBg || (textBorderWidth && textBorderColor)) {\n rectEl = this._getOrCreateChild(Rect);\n rectEl.useStyle(rectEl.createStyle());\n rectEl.style.fill = null;\n var rectShape = rectEl.shape;\n rectShape.x = x;\n rectShape.y = y;\n rectShape.width = width;\n rectShape.height = height;\n rectShape.r = textBorderRadius;\n rectEl.dirtyShape();\n }\n if (isPlainOrGradientBg) {\n var rectStyle = rectEl.style;\n rectStyle.fill = textBackgroundColor || null;\n rectStyle.fillOpacity = retrieve2(style.fillOpacity, 1);\n }\n else if (isImageBg) {\n imgEl = this._getOrCreateChild(ZRImage);\n imgEl.onload = function () {\n self.dirtyStyle();\n };\n var imgStyle = imgEl.style;\n imgStyle.image = textBackgroundColor.image;\n imgStyle.x = x;\n imgStyle.y = y;\n imgStyle.width = width;\n imgStyle.height = height;\n }\n if (textBorderWidth && textBorderColor) {\n var rectStyle = rectEl.style;\n rectStyle.lineWidth = textBorderWidth;\n rectStyle.stroke = textBorderColor;\n rectStyle.strokeOpacity = retrieve2(style.strokeOpacity, 1);\n rectStyle.lineDash = style.borderDash;\n rectStyle.lineDashOffset = style.borderDashOffset || 0;\n rectEl.strokeContainThreshold = 0;\n if (rectEl.hasFill() && rectEl.hasStroke()) {\n rectStyle.strokeFirst = true;\n rectStyle.lineWidth *= 2;\n }\n }\n var commonStyle = (rectEl || imgEl).style;\n commonStyle.shadowBlur = style.shadowBlur || 0;\n commonStyle.shadowColor = style.shadowColor || 'transparent';\n commonStyle.shadowOffsetX = style.shadowOffsetX || 0;\n commonStyle.shadowOffsetY = style.shadowOffsetY || 0;\n commonStyle.opacity = retrieve3(style.opacity, topStyle.opacity, 1);\n };\n ZRText.makeFont = function (style) {\n var font = '';\n if (style.fontSize || style.fontFamily || style.fontWeight) {\n var fontSize = '';\n if (typeof style.fontSize === 'string'\n && (style.fontSize.indexOf('px') !== -1\n || style.fontSize.indexOf('rem') !== -1\n || style.fontSize.indexOf('em') !== -1)) {\n fontSize = style.fontSize;\n }\n else if (!isNaN(+style.fontSize)) {\n fontSize = style.fontSize + 'px';\n }\n else {\n fontSize = '12px';\n }\n font = [\n style.fontStyle,\n style.fontWeight,\n fontSize,\n style.fontFamily || 'sans-serif'\n ].join(' ');\n }\n return font && trim(font) || style.textFont || style.font;\n };\n return ZRText;\n}(Displayable));\nvar VALID_TEXT_ALIGN = { left: true, right: 1, center: 1 };\nvar VALID_TEXT_VERTICAL_ALIGN = { top: 1, bottom: 1, middle: 1 };\nexport function normalizeTextStyle(style) {\n normalizeStyle(style);\n each(style.rich, normalizeStyle);\n return style;\n}\nfunction normalizeStyle(style) {\n if (style) {\n style.font = ZRText.makeFont(style);\n var textAlign = style.align;\n textAlign === 'middle' && (textAlign = 'center');\n style.align = (textAlign == null || VALID_TEXT_ALIGN[textAlign]) ? textAlign : 'left';\n var verticalAlign = style.verticalAlign;\n verticalAlign === 'center' && (verticalAlign = 'middle');\n style.verticalAlign = (verticalAlign == null || VALID_TEXT_VERTICAL_ALIGN[verticalAlign]) ? verticalAlign : 'top';\n var textPadding = style.padding;\n if (textPadding) {\n style.padding = normalizeCssArray(style.padding);\n }\n }\n}\nfunction getStroke(stroke, lineWidth) {\n return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none')\n ? null\n : (stroke.image || stroke.colorStops)\n ? '#000'\n : stroke;\n}\nfunction getFill(fill) {\n return (fill == null || fill === 'none')\n ? null\n : (fill.image || fill.colorStops)\n ? '#000'\n : fill;\n}\nfunction getTextXForPadding(x, textAlign, textPadding) {\n return textAlign === 'right'\n ? (x - textPadding[1])\n : textAlign === 'center'\n ? (x + textPadding[3] / 2 - textPadding[1] / 2)\n : (x + textPadding[3]);\n}\nfunction getStyleText(style) {\n var text = style.text;\n text != null && (text += '');\n return text;\n}\nfunction needDrawBackground(style) {\n return !!(style.backgroundColor\n || (style.borderWidth && style.borderColor));\n}\nexport default ZRText;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from './model';\nexport var getECData = makeInner();","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LRU from 'zrender/lib/core/LRU';\nimport { extend, indexOf, isArrayLike, isObject, keys, isArray, each } from 'zrender/lib/core/util';\nimport { getECData } from './innerStore';\nimport * as colorTool from 'zrender/lib/tool/color';\nimport { queryDataIndex, makeInner } from './model';\nimport Path from 'zrender/lib/graphic/Path';\nimport { error } from './log'; // Reserve 0 as default.\n\nvar _highlightNextDigit = 1;\nvar _highlightKeyMap = {};\nvar getSavedStates = makeInner();\nexport var HOVER_STATE_NORMAL = 0;\nexport var HOVER_STATE_BLUR = 1;\nexport var HOVER_STATE_EMPHASIS = 2;\nexport var SPECIAL_STATES = ['emphasis', 'blur', 'select'];\nexport var DISPLAY_STATES = ['normal', 'emphasis', 'blur', 'select'];\nexport var Z2_EMPHASIS_LIFT = 10;\nexport var Z2_SELECT_LIFT = 9;\nexport var HIGHLIGHT_ACTION_TYPE = 'highlight';\nexport var DOWNPLAY_ACTION_TYPE = 'downplay';\nexport var SELECT_ACTION_TYPE = 'select';\nexport var UNSELECT_ACTION_TYPE = 'unselect';\nexport var TOGGLE_SELECT_ACTION_TYPE = 'toggleSelect';\n\nfunction hasFillOrStroke(fillOrStroke) {\n return fillOrStroke != null && fillOrStroke !== 'none';\n} // Most lifted color are duplicated.\n\n\nvar liftedColorCache = new LRU(100);\n\nfunction liftColor(color) {\n if (typeof color !== 'string') {\n return color;\n }\n\n var liftedColor = liftedColorCache.get(color);\n\n if (!liftedColor) {\n liftedColor = colorTool.lift(color, -0.1);\n liftedColorCache.put(color, liftedColor);\n }\n\n return liftedColor;\n}\n\nfunction doChangeHoverState(el, stateName, hoverStateEnum) {\n if (el.onHoverStateChange && (el.hoverState || 0) !== hoverStateEnum) {\n el.onHoverStateChange(stateName);\n }\n\n el.hoverState = hoverStateEnum;\n}\n\nfunction singleEnterEmphasis(el) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n doChangeHoverState(el, 'emphasis', HOVER_STATE_EMPHASIS);\n}\n\nfunction singleLeaveEmphasis(el) {\n // Only mark the flag.\n // States will be applied in the echarts.ts in next frame.\n if (el.hoverState === HOVER_STATE_EMPHASIS) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterBlur(el) {\n doChangeHoverState(el, 'blur', HOVER_STATE_BLUR);\n}\n\nfunction singleLeaveBlur(el) {\n if (el.hoverState === HOVER_STATE_BLUR) {\n doChangeHoverState(el, 'normal', HOVER_STATE_NORMAL);\n }\n}\n\nfunction singleEnterSelect(el) {\n el.selected = true;\n}\n\nfunction singleLeaveSelect(el) {\n el.selected = false;\n}\n\nfunction updateElementState(el, updater, commonParam) {\n updater(el, commonParam);\n}\n\nfunction traverseUpdateState(el, updater, commonParam) {\n updateElementState(el, updater, commonParam);\n el.isGroup && el.traverse(function (child) {\n updateElementState(child, updater, commonParam);\n });\n}\n\nexport function setStatesFlag(el, stateName) {\n switch (stateName) {\n case 'emphasis':\n el.hoverState = HOVER_STATE_EMPHASIS;\n break;\n\n case 'normal':\n el.hoverState = HOVER_STATE_NORMAL;\n break;\n\n case 'blur':\n el.hoverState = HOVER_STATE_BLUR;\n break;\n\n case 'select':\n el.selected = true;\n }\n}\n/**\n * If we reuse elements when rerender.\n * DONT forget to clearStates before we update the style and shape.\n * Or we may update on the wrong state instead of normal state.\n */\n\nexport function clearStates(el) {\n if (el.isGroup) {\n el.traverse(function (child) {\n child.clearStates();\n });\n } else {\n el.clearStates();\n }\n}\n\nfunction getFromStateStyle(el, props, toStateName, defaultValue) {\n var style = el.style;\n var fromState = {};\n\n for (var i = 0; i < props.length; i++) {\n var propName = props[i];\n var val = style[propName];\n fromState[propName] = val == null ? defaultValue && defaultValue[propName] : val;\n }\n\n for (var i = 0; i < el.animators.length; i++) {\n var animator = el.animators[i];\n\n if (animator.__fromStateTransition // Dont consider the animation to emphasis state.\n && animator.__fromStateTransition.indexOf(toStateName) < 0 && animator.targetName === 'style') {\n animator.saveFinalToTarget(fromState, props);\n }\n }\n\n return fromState;\n}\n\nfunction createEmphasisDefaultState(el, stateName, targetStates, state) {\n var hasSelect = targetStates && indexOf(targetStates, 'select') >= 0;\n var cloned = false;\n\n if (el instanceof Path) {\n var store = getSavedStates(el);\n var fromFill = hasSelect ? store.selectFill || store.normalFill : store.normalFill;\n var fromStroke = hasSelect ? store.selectStroke || store.normalStroke : store.normalStroke;\n\n if (hasFillOrStroke(fromFill) || hasFillOrStroke(fromStroke)) {\n state = state || {}; // Apply default color lift\n\n var emphasisStyle = state.style || {};\n\n if (!hasFillOrStroke(emphasisStyle.fill) && hasFillOrStroke(fromFill)) {\n cloned = true; // Not modify the original value.\n\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle); // Already being applied 'emphasis'. DON'T lift color multiple times.\n\n emphasisStyle.fill = liftColor(fromFill);\n } // Not highlight stroke if fill has been highlighted.\n else if (!hasFillOrStroke(emphasisStyle.stroke) && hasFillOrStroke(fromStroke)) {\n if (!cloned) {\n state = extend({}, state);\n emphasisStyle = extend({}, emphasisStyle);\n }\n\n emphasisStyle.stroke = liftColor(fromStroke);\n }\n\n state.style = emphasisStyle;\n }\n }\n\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n if (!cloned) {\n state = extend({}, state);\n }\n\n var z2EmphasisLift = el.z2EmphasisLift;\n state.z2 = el.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT);\n }\n }\n\n return state;\n}\n\nfunction createSelectDefaultState(el, stateName, state) {\n // const hasSelect = indexOf(el.currentStates, stateName) >= 0;\n if (state) {\n // TODO Share with textContent?\n if (state.z2 == null) {\n state = extend({}, state);\n var z2SelectLift = el.z2SelectLift;\n state.z2 = el.z2 + (z2SelectLift != null ? z2SelectLift : Z2_SELECT_LIFT);\n }\n }\n\n return state;\n}\n\nfunction createBlurDefaultState(el, stateName, state) {\n var hasBlur = indexOf(el.currentStates, stateName) >= 0;\n var currentOpacity = el.style.opacity;\n var fromState = !hasBlur ? getFromStateStyle(el, ['opacity'], stateName, {\n opacity: 1\n }) : null;\n state = state || {};\n var blurStyle = state.style || {};\n\n if (blurStyle.opacity == null) {\n // clone state\n state = extend({}, state);\n blurStyle = extend({\n // Already being applied 'emphasis'. DON'T mul opacity multiple times.\n opacity: hasBlur ? currentOpacity : fromState.opacity * 0.1\n }, blurStyle);\n state.style = blurStyle;\n }\n\n return state;\n}\n\nfunction elementStateProxy(stateName, targetStates) {\n var state = this.states[stateName];\n\n if (this.style) {\n if (stateName === 'emphasis') {\n return createEmphasisDefaultState(this, stateName, targetStates, state);\n } else if (stateName === 'blur') {\n return createBlurDefaultState(this, stateName, state);\n } else if (stateName === 'select') {\n return createSelectDefaultState(this, stateName, state);\n }\n }\n\n return state;\n}\n/**FI\n * Set hover style (namely \"emphasis style\") of element.\n * @param el Should not be `zrender/graphic/Group`.\n * @param focus 'self' | 'selfInSeries' | 'series'\n */\n\n\nexport function setDefaultStateProxy(el) {\n el.stateProxy = elementStateProxy;\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine();\n\n if (textContent) {\n textContent.stateProxy = elementStateProxy;\n }\n\n if (textGuide) {\n textGuide.stateProxy = elementStateProxy;\n }\n}\nexport function enterEmphasisWhenMouseOver(el, e) {\n !shouldSilent(el, e) // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !el.__highByOuter && traverseUpdateState(el, singleEnterEmphasis);\n}\nexport function leaveEmphasisWhenMouseOut(el, e) {\n !shouldSilent(el, e) // \"emphasis\" event highlight has higher priority than mouse highlight.\n && !el.__highByOuter && traverseUpdateState(el, singleLeaveEmphasis);\n}\nexport function enterEmphasis(el, highlightDigit) {\n el.__highByOuter |= 1 << (highlightDigit || 0);\n traverseUpdateState(el, singleEnterEmphasis);\n}\nexport function leaveEmphasis(el, highlightDigit) {\n !(el.__highByOuter &= ~(1 << (highlightDigit || 0))) && traverseUpdateState(el, singleLeaveEmphasis);\n}\nexport function enterBlur(el) {\n traverseUpdateState(el, singleEnterBlur);\n}\nexport function leaveBlur(el) {\n traverseUpdateState(el, singleLeaveBlur);\n}\nexport function enterSelect(el) {\n traverseUpdateState(el, singleEnterSelect);\n}\nexport function leaveSelect(el) {\n traverseUpdateState(el, singleLeaveSelect);\n}\n\nfunction shouldSilent(el, e) {\n return el.__highDownSilentOnTouch && e.zrByTouch;\n}\n\nexport function allLeaveBlur(api) {\n var model = api.getModel();\n model.eachComponent(function (componentType, componentModel) {\n var view = componentType === 'series' ? api.getViewOfSeriesModel(componentModel) : api.getViewOfComponentModel(componentModel); // Leave blur anyway\n\n view.group.traverse(function (child) {\n singleLeaveBlur(child);\n });\n });\n}\nexport function blurSeries(targetSeriesIndex, focus, blurScope, api) {\n var ecModel = api.getModel();\n blurScope = blurScope || 'coordinateSystem';\n\n function leaveBlurOfIndices(data, dataIndices) {\n for (var i = 0; i < dataIndices.length; i++) {\n var itemEl = data.getItemGraphicEl(dataIndices[i]);\n itemEl && leaveBlur(itemEl);\n }\n }\n\n if (targetSeriesIndex == null) {\n return;\n }\n\n if (!focus || focus === 'none') {\n return;\n }\n\n var targetSeriesModel = ecModel.getSeriesByIndex(targetSeriesIndex);\n var targetCoordSys = targetSeriesModel.coordinateSystem;\n\n if (targetCoordSys && targetCoordSys.master) {\n targetCoordSys = targetCoordSys.master;\n }\n\n var blurredSeries = [];\n ecModel.eachSeries(function (seriesModel) {\n var sameSeries = targetSeriesModel === seriesModel;\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.master) {\n coordSys = coordSys.master;\n }\n\n var sameCoordSys = coordSys && targetCoordSys ? coordSys === targetCoordSys : sameSeries; // If there is no coordinate system. use sameSeries instead.\n\n if (!( // Not blur other series if blurScope series\n blurScope === 'series' && !sameSeries // Not blur other coordinate system if blurScope is coordinateSystem\n || blurScope === 'coordinateSystem' && !sameCoordSys // Not blur self series if focus is series.\n || focus === 'series' && sameSeries // TODO blurScope: coordinate system\n )) {\n var view = api.getViewOfSeriesModel(seriesModel);\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n\n if (isArrayLike(focus)) {\n leaveBlurOfIndices(seriesModel.getData(), focus);\n } else if (isObject(focus)) {\n var dataTypes = keys(focus);\n\n for (var d = 0; d < dataTypes.length; d++) {\n leaveBlurOfIndices(seriesModel.getData(dataTypes[d]), focus[dataTypes[d]]);\n }\n }\n\n blurredSeries.push(seriesModel);\n }\n });\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (view && view.blurSeries) {\n view.blurSeries(blurredSeries, ecModel);\n }\n });\n}\nexport function blurComponent(componentMainType, componentIndex, api) {\n if (componentMainType == null || componentIndex == null) {\n return;\n }\n\n var componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n\n if (!componentModel) {\n return;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (!view || !view.focusBlurEnabled) {\n return;\n }\n\n view.group.traverse(function (child) {\n singleEnterBlur(child);\n });\n}\nexport function blurSeriesFromHighlightPayload(seriesModel, payload, api) {\n var seriesIndex = seriesModel.seriesIndex;\n var data = seriesModel.getData(payload.dataType);\n var dataIndex = queryDataIndex(data, payload); // Pick the first one if there is multiple/none exists.\n\n dataIndex = (isArray(dataIndex) ? dataIndex[0] : dataIndex) || 0;\n var el = data.getItemGraphicEl(dataIndex);\n\n if (!el) {\n var count = data.count();\n var current = 0; // If data on dataIndex is NaN.\n\n while (!el && current < count) {\n el = data.getItemGraphicEl(current++);\n }\n }\n\n if (el) {\n var ecData = getECData(el);\n blurSeries(seriesIndex, ecData.focus, ecData.blurScope, api);\n } else {\n // If there is no element put on the data. Try getting it from raw option\n // TODO Should put it on seriesModel?\n var focus_1 = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n\n if (focus_1 != null) {\n blurSeries(seriesIndex, focus_1, blurScope, api);\n }\n }\n}\nexport function findComponentHighDownDispatchers(componentMainType, componentIndex, name, api) {\n var ret = {\n focusSelf: false,\n dispatchers: null\n };\n\n if (componentMainType == null || componentMainType === 'series' || componentIndex == null || name == null) {\n return ret;\n }\n\n var componentModel = api.getModel().getComponent(componentMainType, componentIndex);\n\n if (!componentModel) {\n return ret;\n }\n\n var view = api.getViewOfComponentModel(componentModel);\n\n if (!view || !view.findHighDownDispatchers) {\n return ret;\n }\n\n var dispatchers = view.findHighDownDispatchers(name); // At presnet, the component (like Geo) only blur inside itself.\n // So we do not use `blurScope` in component.\n\n var focusSelf;\n\n for (var i = 0; i < dispatchers.length; i++) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatchers[i])) {\n error('param should be highDownDispatcher');\n }\n\n if (getECData(dispatchers[i]).focus === 'self') {\n focusSelf = true;\n break;\n }\n }\n\n return {\n focusSelf: focusSelf,\n dispatchers: dispatchers\n };\n}\nexport function handleGlobalMouseOverForHighDown(dispatcher, e, api) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n var ecData = getECData(dispatcher);\n\n var _a = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api),\n dispatchers = _a.dispatchers,\n focusSelf = _a.focusSelf; // If `findHighDownDispatchers` is supported on the component,\n // highlight/downplay elements with the same name.\n\n\n if (dispatchers) {\n if (focusSelf) {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n }\n\n each(dispatchers, function (dispatcher) {\n return enterEmphasisWhenMouseOver(dispatcher, e);\n });\n } else {\n // Try blur all in the related series. Then emphasis the hoverred.\n // TODO. progressive mode.\n blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api);\n\n if (ecData.focus === 'self') {\n blurComponent(ecData.componentMainType, ecData.componentIndex, api);\n } // Other than series, component that not support `findHighDownDispatcher` will\n // also use it. But in this case, highlight/downplay are only supported in\n // mouse hover but not in dispatchAction.\n\n\n enterEmphasisWhenMouseOver(dispatcher, e);\n }\n}\nexport function handleGlboalMouseOutForHighDown(dispatcher, e, api) {\n if (process.env.NODE_ENV !== 'production' && !isHighDownDispatcher(dispatcher)) {\n error('param should be highDownDispatcher');\n }\n\n allLeaveBlur(api);\n var ecData = getECData(dispatcher);\n var dispatchers = findComponentHighDownDispatchers(ecData.componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers;\n\n if (dispatchers) {\n each(dispatchers, function (dispatcher) {\n return leaveEmphasisWhenMouseOut(dispatcher, e);\n });\n } else {\n leaveEmphasisWhenMouseOut(dispatcher, e);\n }\n}\nexport function toggleSelectionFromPayload(seriesModel, payload, api) {\n if (!isSelectChangePayload(payload)) {\n return;\n }\n\n var dataType = payload.dataType;\n var data = seriesModel.getData(dataType);\n var dataIndex = queryDataIndex(data, payload);\n\n if (!isArray(dataIndex)) {\n dataIndex = [dataIndex];\n }\n\n seriesModel[payload.type === TOGGLE_SELECT_ACTION_TYPE ? 'toggleSelect' : payload.type === SELECT_ACTION_TYPE ? 'select' : 'unselect'](dataIndex, dataType);\n}\nexport function updateSeriesElementSelection(seriesModel) {\n var allData = seriesModel.getAllData();\n each(allData, function (_a) {\n var data = _a.data,\n type = _a.type;\n data.eachItemGraphicEl(function (el, idx) {\n seriesModel.isSelected(idx, type) ? enterSelect(el) : leaveSelect(el);\n });\n });\n}\nexport function getAllSelectedIndices(ecModel) {\n var ret = [];\n ecModel.eachSeries(function (seriesModel) {\n var allData = seriesModel.getAllData();\n each(allData, function (_a) {\n var data = _a.data,\n type = _a.type;\n var dataIndices = seriesModel.getSelectedDataIndices();\n\n if (dataIndices.length > 0) {\n var item = {\n dataIndex: dataIndices,\n seriesIndex: seriesModel.seriesIndex\n };\n\n if (type != null) {\n item.dataType = type;\n }\n\n ret.push(item);\n }\n });\n });\n return ret;\n}\n/**\n * Enable the function that mouseover will trigger the emphasis state.\n *\n * NOTE:\n * This function should be used on the element with dataIndex, seriesIndex.\n *\n */\n\nexport function enableHoverEmphasis(el, focus, blurScope) {\n setAsHighDownDispatcher(el, true);\n traverseUpdateState(el, setDefaultStateProxy);\n enableHoverFocus(el, focus, blurScope);\n}\nexport function enableHoverFocus(el, focus, blurScope) {\n var ecData = getECData(el);\n\n if (focus != null) {\n // TODO dataIndex may be set after this function. This check is not useful.\n // if (ecData.dataIndex == null) {\n // if (__DEV__) {\n // console.warn('focus can only been set on element with dataIndex');\n // }\n // }\n // else {\n ecData.focus = focus;\n ecData.blurScope = blurScope; // }\n } else if (ecData.focus) {\n ecData.focus = null;\n }\n}\nvar OTHER_STATES = ['emphasis', 'blur', 'select'];\nvar defaultStyleGetterMap = {\n itemStyle: 'getItemStyle',\n lineStyle: 'getLineStyle',\n areaStyle: 'getAreaStyle'\n};\n/**\n * Set emphasis/blur/selected states of element.\n */\n\nexport function setStatesStylesFromModel(el, itemModel, styleType, // default itemStyle\ngetter) {\n styleType = styleType || 'itemStyle';\n\n for (var i = 0; i < OTHER_STATES.length; i++) {\n var stateName = OTHER_STATES[i];\n var model = itemModel.getModel([stateName, styleType]);\n var state = el.ensureState(stateName); // Let it throw error if getterType is not found.\n\n state.style = getter ? getter(model) : model[defaultStyleGetterMap[styleType]]();\n }\n}\n/**\n * @parame el\n * @param el.highDownSilentOnTouch\n * In touch device, mouseover event will be trigger on touchstart event\n * (see module:zrender/dom/HandlerProxy). By this mechanism, we can\n * conveniently use hoverStyle when tap on touch screen without additional\n * code for compatibility.\n * But if the chart/component has select feature, which usually also use\n * hoverStyle, there might be conflict between 'select-highlight' and\n * 'hover-highlight' especially when roam is enabled (see geo for example).\n * In this case, `highDownSilentOnTouch` should be used to disable\n * hover-highlight on touch device.\n * @param asDispatcher If `false`, do not set as \"highDownDispatcher\".\n */\n\nexport function setAsHighDownDispatcher(el, asDispatcher) {\n var disable = asDispatcher === false;\n var extendedEl = el; // Make `highDownSilentOnTouch` and `onStateChange` only work after\n // `setAsHighDownDispatcher` called. Avoid it is modified by user unexpectedly.\n\n if (el.highDownSilentOnTouch) {\n extendedEl.__highDownSilentOnTouch = el.highDownSilentOnTouch;\n } // Simple optimize, since this method might be\n // called for each elements of a group in some cases.\n\n\n if (!disable || extendedEl.__highDownDispatcher) {\n // Emphasis, normal can be triggered manually by API or other components like hover link.\n // el[method]('emphasis', onElementEmphasisEvent)[method]('normal', onElementNormalEvent);\n // Also keep previous record.\n extendedEl.__highByOuter = extendedEl.__highByOuter || 0;\n extendedEl.__highDownDispatcher = !disable;\n }\n}\nexport function isHighDownDispatcher(el) {\n return !!(el && el.__highDownDispatcher);\n}\n/**\n * Enable component highlight/downplay features:\n * + hover link (within the same name)\n * + focus blur in component\n */\n\nexport function enableComponentHighDownFeatures(el, componentModel, componentHighDownName) {\n var ecData = getECData(el);\n ecData.componentMainType = componentModel.mainType;\n ecData.componentIndex = componentModel.componentIndex;\n ecData.componentHighDownName = componentHighDownName;\n}\n/**\n * Support hightlight/downplay record on each elements.\n * For the case: hover highlight/downplay (legend, visualMap, ...) and\n * user triggerred hightlight/downplay should not conflict.\n * Only all of the highlightDigit cleared, return to normal.\n * @param {string} highlightKey\n * @return {number} highlightDigit\n */\n\nexport function getHighlightDigit(highlightKey) {\n var highlightDigit = _highlightKeyMap[highlightKey];\n\n if (highlightDigit == null && _highlightNextDigit <= 32) {\n highlightDigit = _highlightKeyMap[highlightKey] = _highlightNextDigit++;\n }\n\n return highlightDigit;\n}\nexport function isSelectChangePayload(payload) {\n var payloadType = payload.type;\n return payloadType === SELECT_ACTION_TYPE || payloadType === UNSELECT_ACTION_TYPE || payloadType === TOGGLE_SELECT_ACTION_TYPE;\n}\nexport function isHighDownPayload(payload) {\n var payloadType = payload.type;\n return payloadType === HIGHLIGHT_ACTION_TYPE || payloadType === DOWNPLAY_ACTION_TYPE;\n}\nexport function savePathStates(el) {\n var store = getSavedStates(el);\n store.normalFill = el.style.fill;\n store.normalStroke = el.style.stroke;\n var selectState = el.states.select || {};\n store.selectFill = selectState.style && selectState.style.fill || null;\n store.selectStroke = selectState.style && selectState.style.stroke || null;\n}","import PathProxy from '../core/PathProxy';\nimport { applyTransform as v2ApplyTransform } from '../core/vector';\nvar CMD = PathProxy.CMD;\nvar points = [[], [], []];\nvar mathSqrt = Math.sqrt;\nvar mathAtan2 = Math.atan2;\nexport default function transformPath(path, m) {\n var data = path.data;\n var len = path.len();\n var cmd;\n var nPoint;\n var i;\n var j;\n var k;\n var p;\n var M = CMD.M;\n var C = CMD.C;\n var L = CMD.L;\n var R = CMD.R;\n var A = CMD.A;\n var Q = CMD.Q;\n for (i = 0, j = 0; i < len;) {\n cmd = data[i++];\n j = i;\n nPoint = 0;\n switch (cmd) {\n case M:\n nPoint = 1;\n break;\n case L:\n nPoint = 1;\n break;\n case C:\n nPoint = 3;\n break;\n case Q:\n nPoint = 2;\n break;\n case A:\n var x = m[4];\n var y = m[5];\n var sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);\n var sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);\n var angle = mathAtan2(-m[1] / sy, m[0] / sx);\n data[i] *= sx;\n data[i++] += x;\n data[i] *= sy;\n data[i++] += y;\n data[i++] *= sx;\n data[i++] *= sy;\n data[i++] += angle;\n data[i++] += angle;\n i += 2;\n j = i;\n break;\n case R:\n p[0] = data[i++];\n p[1] = data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n p[0] += data[i++];\n p[1] += data[i++];\n v2ApplyTransform(p, p, m);\n data[j++] = p[0];\n data[j++] = p[1];\n }\n for (k = 0; k < nPoint; k++) {\n var p_1 = points[k];\n p_1[0] = data[i++];\n p_1[1] = data[i++];\n v2ApplyTransform(p_1, p_1, m);\n data[j++] = p_1[0];\n data[j++] = p_1[1];\n }\n }\n path.increaseVersion();\n}\n","import { __extends } from \"tslib\";\nimport Path from '../graphic/Path';\nimport PathProxy from '../core/PathProxy';\nimport transformPath from './transformPath';\nimport { extend } from '../core/util';\nvar mathSqrt = Math.sqrt;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI = Math.PI;\nfunction vMag(v) {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n}\n;\nfunction vRatio(u, v) {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n}\n;\nfunction vAngle(u, v) {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)\n * Math.acos(vRatio(u, v));\n}\n;\nfunction processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {\n var psi = psiDeg * (PI / 180.0);\n var xp = mathCos(psi) * (x1 - x2) / 2.0\n + mathSin(psi) * (y1 - y2) / 2.0;\n var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0\n + mathCos(psi) * (y1 - y2) / 2.0;\n var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);\n if (lambda > 1) {\n rx *= mathSqrt(lambda);\n ry *= mathSqrt(lambda);\n }\n var f = (fa === fs ? -1 : 1)\n * mathSqrt((((rx * rx) * (ry * ry))\n - ((rx * rx) * (yp * yp))\n - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)\n + (ry * ry) * (xp * xp))) || 0;\n var cxp = f * rx * yp / ry;\n var cyp = f * -ry * xp / rx;\n var cx = (x1 + x2) / 2.0\n + mathCos(psi) * cxp\n - mathSin(psi) * cyp;\n var cy = (y1 + y2) / 2.0\n + mathSin(psi) * cxp\n + mathCos(psi) * cyp;\n var theta = vAngle([1, 0], [(xp - cxp) / rx, (yp - cyp) / ry]);\n var u = [(xp - cxp) / rx, (yp - cyp) / ry];\n var v = [(-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry];\n var dTheta = vAngle(u, v);\n if (vRatio(u, v) <= -1) {\n dTheta = PI;\n }\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n if (dTheta < 0) {\n var n = Math.round(dTheta / PI * 1e6) / 1e6;\n dTheta = PI * 2 + (n % 2) * PI;\n }\n path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);\n}\nvar commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;\nvar numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction createPathProxyFromString(data) {\n var path = new PathProxy();\n if (!data) {\n return path;\n }\n var cpx = 0;\n var cpy = 0;\n var subpathX = cpx;\n var subpathY = cpy;\n var prevCmd;\n var CMD = PathProxy.CMD;\n var cmdList = data.match(commandReg);\n if (!cmdList) {\n return path;\n }\n for (var l = 0; l < cmdList.length; l++) {\n var cmdText = cmdList[l];\n var cmdStr = cmdText.charAt(0);\n var cmd = void 0;\n var p = cmdText.match(numberReg) || [];\n var pLen = p.length;\n for (var i = 0; i < pLen; i++) {\n p[i] = parseFloat(p[i]);\n }\n var off = 0;\n while (off < pLen) {\n var ctlPtx = void 0;\n var ctlPty = void 0;\n var rx = void 0;\n var ry = void 0;\n var psi = void 0;\n var fa = void 0;\n var fs = void 0;\n var x1 = cpx;\n var y1 = cpy;\n var len = void 0;\n var pathData = void 0;\n switch (cmdStr) {\n case 'l':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'L':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'm':\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'l';\n break;\n case 'M':\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.M;\n path.addData(cmd, cpx, cpy);\n subpathX = cpx;\n subpathY = cpy;\n cmdStr = 'L';\n break;\n case 'h':\n cpx += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'H':\n cpx = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'v':\n cpy += p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'V':\n cpy = p[off++];\n cmd = CMD.L;\n path.addData(cmd, cpx, cpy);\n break;\n case 'C':\n cmd = CMD.C;\n path.addData(cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]);\n cpx = p[off - 2];\n cpy = p[off - 1];\n break;\n case 'c':\n cmd = CMD.C;\n path.addData(cmd, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy, p[off++] + cpx, p[off++] + cpy);\n cpx += p[off - 2];\n cpy += p[off - 1];\n break;\n case 'S':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 's':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.C) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cmd = CMD.C;\n x1 = cpx + p[off++];\n y1 = cpy + p[off++];\n cpx += p[off++];\n cpy += p[off++];\n path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);\n break;\n case 'Q':\n x1 = p[off++];\n y1 = p[off++];\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'q':\n x1 = p[off++] + cpx;\n y1 = p[off++] + cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, x1, y1, cpx, cpy);\n break;\n case 'T':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 't':\n ctlPtx = cpx;\n ctlPty = cpy;\n len = path.len();\n pathData = path.data;\n if (prevCmd === CMD.Q) {\n ctlPtx += cpx - pathData[len - 4];\n ctlPty += cpy - pathData[len - 3];\n }\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.Q;\n path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);\n break;\n case 'A':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx = p[off++];\n cpy = p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n case 'a':\n rx = p[off++];\n ry = p[off++];\n psi = p[off++];\n fa = p[off++];\n fs = p[off++];\n x1 = cpx, y1 = cpy;\n cpx += p[off++];\n cpy += p[off++];\n cmd = CMD.A;\n processArc(x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path);\n break;\n }\n }\n if (cmdStr === 'z' || cmdStr === 'Z') {\n cmd = CMD.Z;\n path.addData(cmd);\n cpx = subpathX;\n cpy = subpathY;\n }\n prevCmd = cmd;\n }\n path.toStatic();\n return path;\n}\nvar SVGPath = (function (_super) {\n __extends(SVGPath, _super);\n function SVGPath() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n SVGPath.prototype.applyTransform = function (m) { };\n return SVGPath;\n}(Path));\nfunction isPathProxy(path) {\n return path.setData != null;\n}\nfunction createPathOptions(str, opts) {\n var pathProxy = createPathProxyFromString(str);\n var innerOpts = extend({}, opts);\n innerOpts.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.setData(pathProxy.data);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n else {\n var ctx = path;\n pathProxy.rebuildPath(ctx, 1);\n }\n };\n innerOpts.applyTransform = function (m) {\n transformPath(pathProxy, m);\n this.dirtyShape();\n };\n return innerOpts;\n}\nexport function createFromString(str, opts) {\n return new SVGPath(createPathOptions(str, opts));\n}\nexport function extendFromString(str, defaultOpts) {\n var innerOpts = createPathOptions(str, defaultOpts);\n var Sub = (function (_super) {\n __extends(Sub, _super);\n function Sub(opts) {\n var _this = _super.call(this, opts) || this;\n _this.applyTransform = innerOpts.applyTransform;\n _this.buildPath = innerOpts.buildPath;\n return _this;\n }\n return Sub;\n }(SVGPath));\n return Sub;\n}\nexport function mergePath(pathEls, opts) {\n var pathList = [];\n var len = pathEls.length;\n for (var i = 0; i < len; i++) {\n var pathEl = pathEls[i];\n if (!pathEl.path) {\n pathEl.createPathProxy();\n }\n if (pathEl.shapeChanged()) {\n pathEl.buildPath(pathEl.path, pathEl.shape, true);\n }\n pathList.push(pathEl.path);\n }\n var pathBundle = new Path(opts);\n pathBundle.createPathProxy();\n pathBundle.buildPath = function (path) {\n if (isPathProxy(path)) {\n path.appendPath(pathList);\n var ctx = path.getContext();\n if (ctx) {\n path.rebuildPath(ctx, 1);\n }\n }\n };\n return pathBundle;\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar CircleShape = (function () {\n function CircleShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n }\n return CircleShape;\n}());\nexport { CircleShape };\nvar Circle = (function (_super) {\n __extends(Circle, _super);\n function Circle(opts) {\n return _super.call(this, opts) || this;\n }\n Circle.prototype.getDefaultShape = function () {\n return new CircleShape();\n };\n Circle.prototype.buildPath = function (ctx, shape, inBundle) {\n if (inBundle) {\n ctx.moveTo(shape.cx + shape.r, shape.cy);\n }\n ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2);\n };\n return Circle;\n}(Path));\n;\nCircle.prototype.type = 'circle';\nexport default Circle;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar EllipseShape = (function () {\n function EllipseShape() {\n this.cx = 0;\n this.cy = 0;\n this.rx = 0;\n this.ry = 0;\n }\n return EllipseShape;\n}());\nexport { EllipseShape };\nvar Ellipse = (function (_super) {\n __extends(Ellipse, _super);\n function Ellipse(opts) {\n return _super.call(this, opts) || this;\n }\n Ellipse.prototype.getDefaultShape = function () {\n return new EllipseShape();\n };\n Ellipse.prototype.buildPath = function (ctx, shape) {\n var k = 0.5522848;\n var x = shape.cx;\n var y = shape.cy;\n var a = shape.rx;\n var b = shape.ry;\n var ox = a * k;\n var oy = b * k;\n ctx.moveTo(x - a, y);\n ctx.bezierCurveTo(x - a, y - oy, x - ox, y - b, x, y - b);\n ctx.bezierCurveTo(x + ox, y - b, x + a, y - oy, x + a, y);\n ctx.bezierCurveTo(x + a, y + oy, x + ox, y + b, x, y + b);\n ctx.bezierCurveTo(x - ox, y + b, x - a, y + oy, x - a, y);\n ctx.closePath();\n };\n return Ellipse;\n}(Path));\nEllipse.prototype.type = 'ellipse';\nexport default Ellipse;\n","import { normalizeArcAngles } from '../../core/PathProxy';\nvar PI = Math.PI;\nvar PI2 = PI * 2;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar mathACos = Math.acos;\nvar mathATan2 = Math.atan2;\nvar mathAbs = Math.abs;\nvar mathSqrt = Math.sqrt;\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar e = 1e-4;\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0;\n var y10 = y1 - y0;\n var x32 = x3 - x2;\n var y32 = y3 - y2;\n var t = y32 * x10 - x32 * y10;\n if (t * t < e) {\n return;\n }\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\nfunction computeCornerTangents(x0, y0, x1, y1, radius, cr, clockwise) {\n var x01 = x0 - x1;\n var y01 = y0 - y1;\n var lo = (clockwise ? cr : -cr) / mathSqrt(x01 * x01 + y01 * y01);\n var ox = lo * y01;\n var oy = -lo * x01;\n var x11 = x0 + ox;\n var y11 = y0 + oy;\n var x10 = x1 + ox;\n var y10 = y1 + oy;\n var x00 = (x11 + x10) / 2;\n var y00 = (y11 + y10) / 2;\n var dx = x10 - x11;\n var dy = y10 - y11;\n var d2 = dx * dx + dy * dy;\n var r = radius - cr;\n var s = x11 * y10 - x10 * y11;\n var d = (dy < 0 ? -1 : 1) * mathSqrt(mathMax(0, r * r * d2 - s * s));\n var cx0 = (s * dy - dx * d) / d2;\n var cy0 = (-s * dx - dy * d) / d2;\n var cx1 = (s * dy + dx * d) / d2;\n var cy1 = (-s * dx + dy * d) / d2;\n var dx0 = cx0 - x00;\n var dy0 = cy0 - y00;\n var dx1 = cx1 - x00;\n var dy1 = cy1 - y00;\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) {\n cx0 = cx1;\n cy0 = cy1;\n }\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (radius / r - 1),\n y11: cy0 * (radius / r - 1)\n };\n}\nexport function buildPath(ctx, shape) {\n var radius = mathMax(shape.r, 0);\n var innerRadius = mathMax(shape.r0 || 0, 0);\n var hasRadius = radius > 0;\n var hasInnerRadius = innerRadius > 0;\n if (!hasRadius && !hasInnerRadius) {\n return;\n }\n if (!hasRadius) {\n radius = innerRadius;\n innerRadius = 0;\n }\n if (innerRadius > radius) {\n var tmp = radius;\n radius = innerRadius;\n innerRadius = tmp;\n }\n var clockwise = !!shape.clockwise;\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var arc;\n if (startAngle === endAngle) {\n arc = 0;\n }\n else {\n var tmpAngles = [startAngle, endAngle];\n normalizeArcAngles(tmpAngles, !clockwise);\n arc = mathAbs(tmpAngles[0] - tmpAngles[1]);\n }\n var x = shape.cx;\n var y = shape.cy;\n var cornerRadius = shape.cornerRadius || 0;\n var innerCornerRadius = shape.innerCornerRadius || 0;\n if (!(radius > e)) {\n ctx.moveTo(x, y);\n }\n else if (arc > PI2 - e) {\n ctx.moveTo(x + radius * mathCos(startAngle), y + radius * mathSin(startAngle));\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n if (innerRadius > e) {\n ctx.moveTo(x + innerRadius * mathCos(endAngle), y + innerRadius * mathSin(endAngle));\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n else {\n var halfRd = mathAbs(radius - innerRadius) / 2;\n var cr = mathMin(halfRd, cornerRadius);\n var icr = mathMin(halfRd, innerCornerRadius);\n var cr0 = icr;\n var cr1 = cr;\n var xrs = radius * mathCos(startAngle);\n var yrs = radius * mathSin(startAngle);\n var xire = innerRadius * mathCos(endAngle);\n var yire = innerRadius * mathSin(endAngle);\n var xre = void 0;\n var yre = void 0;\n var xirs = void 0;\n var yirs = void 0;\n if (cr > e || icr > e) {\n xre = radius * mathCos(endAngle);\n yre = radius * mathSin(endAngle);\n xirs = innerRadius * mathCos(startAngle);\n yirs = innerRadius * mathSin(startAngle);\n if (arc < PI) {\n var it_1 = intersect(xrs, yrs, xirs, yirs, xre, yre, xire, yire);\n if (it_1) {\n var x0 = xrs - it_1[0];\n var y0 = yrs - it_1[1];\n var x1 = xre - it_1[0];\n var y1 = yre - it_1[1];\n var a = 1 / mathSin(mathACos((x0 * x1 + y0 * y1) / (mathSqrt(x0 * x0 + y0 * y0) * mathSqrt(x1 * x1 + y1 * y1))) / 2);\n var b = mathSqrt(it_1[0] * it_1[0] + it_1[1] * it_1[1]);\n cr0 = mathMin(icr, (innerRadius - b) / (a - 1));\n cr1 = mathMin(cr, (radius - b) / (a + 1));\n }\n }\n }\n if (!(arc > e)) {\n ctx.moveTo(x + xrs, y + yrs);\n }\n else if (cr1 > e) {\n var ct0 = computeCornerTangents(xirs, yirs, xrs, yrs, radius, cr1, clockwise);\n var ct1 = computeCornerTangents(xre, yre, xire, yire, radius, cr1, clockwise);\n ctx.moveTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n if (cr1 < cr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr1, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n ctx.arc(x, y, radius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), !clockwise);\n ctx.arc(x + ct1.cx, y + ct1.cy, cr1, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n else {\n ctx.moveTo(x + xrs, y + yrs);\n ctx.arc(x, y, radius, startAngle, endAngle, !clockwise);\n }\n if (!(innerRadius > e) || !(arc > e)) {\n ctx.lineTo(x + xire, y + yire);\n }\n else if (cr0 > e) {\n var ct0 = computeCornerTangents(xire, yire, xre, yre, innerRadius, -cr0, clockwise);\n var ct1 = computeCornerTangents(xrs, yrs, xirs, yirs, innerRadius, -cr0, clockwise);\n ctx.lineTo(x + ct0.cx + ct0.x01, y + ct0.cy + ct0.y01);\n if (cr0 < icr) {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n else {\n ctx.arc(x + ct0.cx, y + ct0.cy, cr0, mathATan2(ct0.y01, ct0.x01), mathATan2(ct0.y11, ct0.x11), !clockwise);\n ctx.arc(x, y, innerRadius, mathATan2(ct0.cy + ct0.y11, ct0.cx + ct0.x11), mathATan2(ct1.cy + ct1.y11, ct1.cx + ct1.x11), clockwise);\n ctx.arc(x + ct1.cx, y + ct1.cy, cr0, mathATan2(ct1.y11, ct1.x11), mathATan2(ct1.y01, ct1.x01), !clockwise);\n }\n }\n else {\n ctx.lineTo(x + xire, y + yire);\n ctx.arc(x, y, innerRadius, endAngle, startAngle, clockwise);\n }\n }\n ctx.closePath();\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as roundSectorHelper from '../helper/roundSector';\nvar SectorShape = (function () {\n function SectorShape() {\n this.cx = 0;\n this.cy = 0;\n this.r0 = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n this.cornerRadius = 0;\n this.innerCornerRadius = 0;\n }\n return SectorShape;\n}());\nexport { SectorShape };\nvar Sector = (function (_super) {\n __extends(Sector, _super);\n function Sector(opts) {\n return _super.call(this, opts) || this;\n }\n Sector.prototype.getDefaultShape = function () {\n return new SectorShape();\n };\n Sector.prototype.buildPath = function (ctx, shape) {\n roundSectorHelper.buildPath(ctx, shape);\n };\n Sector.prototype.isZeroArea = function () {\n return this.shape.startAngle === this.shape.endAngle\n || this.shape.r === this.shape.r0;\n };\n return Sector;\n}(Path));\nSector.prototype.type = 'sector';\nexport default Sector;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar RingShape = (function () {\n function RingShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n this.r0 = 0;\n }\n return RingShape;\n}());\nexport { RingShape };\nvar Ring = (function (_super) {\n __extends(Ring, _super);\n function Ring(opts) {\n return _super.call(this, opts) || this;\n }\n Ring.prototype.getDefaultShape = function () {\n return new RingShape();\n };\n Ring.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var PI2 = Math.PI * 2;\n ctx.moveTo(x + shape.r, y);\n ctx.arc(x, y, shape.r, 0, PI2, false);\n ctx.moveTo(x + shape.r0, y);\n ctx.arc(x, y, shape.r0, 0, PI2, true);\n };\n return Ring;\n}(Path));\nRing.prototype.type = 'ring';\nexport default Ring;\n","import { distance as v2Distance } from '../../core/vector';\nfunction interpolate(p0, p1, p2, p3, t, t2, t3) {\n var v0 = (p2 - p0) * 0.5;\n var v1 = (p3 - p1) * 0.5;\n return (2 * (p1 - p2) + v0 + v1) * t3\n + (-3 * (p1 - p2) - 2 * v0 - v1) * t2\n + v0 * t + p1;\n}\nexport default function smoothSpline(points, isLoop) {\n var len = points.length;\n var ret = [];\n var distance = 0;\n for (var i = 1; i < len; i++) {\n distance += v2Distance(points[i - 1], points[i]);\n }\n var segs = distance / 2;\n segs = segs < len ? len : segs;\n for (var i = 0; i < segs; i++) {\n var pos = i / (segs - 1) * (isLoop ? len : len - 1);\n var idx = Math.floor(pos);\n var w = pos - idx;\n var p0 = void 0;\n var p1 = points[idx % len];\n var p2 = void 0;\n var p3 = void 0;\n if (!isLoop) {\n p0 = points[idx === 0 ? idx : idx - 1];\n p2 = points[idx > len - 2 ? len - 1 : idx + 1];\n p3 = points[idx > len - 3 ? len - 1 : idx + 2];\n }\n else {\n p0 = points[(idx - 1 + len) % len];\n p2 = points[(idx + 1) % len];\n p3 = points[(idx + 2) % len];\n }\n var w2 = w * w;\n var w3 = w * w2;\n ret.push([\n interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),\n interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)\n ]);\n }\n return ret;\n}\n","import { min as v2Min, max as v2Max, scale as v2Scale, distance as v2Distance, add as v2Add, clone as v2Clone, sub as v2Sub } from '../../core/vector';\nexport default function smoothBezier(points, smooth, isLoop, constraint) {\n var cps = [];\n var v = [];\n var v1 = [];\n var v2 = [];\n var prevPoint;\n var nextPoint;\n var min;\n var max;\n if (constraint) {\n min = [Infinity, Infinity];\n max = [-Infinity, -Infinity];\n for (var i = 0, len = points.length; i < len; i++) {\n v2Min(min, min, points[i]);\n v2Max(max, max, points[i]);\n }\n v2Min(min, min, constraint[0]);\n v2Max(max, max, constraint[1]);\n }\n for (var i = 0, len = points.length; i < len; i++) {\n var point = points[i];\n if (isLoop) {\n prevPoint = points[i ? i - 1 : len - 1];\n nextPoint = points[(i + 1) % len];\n }\n else {\n if (i === 0 || i === len - 1) {\n cps.push(v2Clone(points[i]));\n continue;\n }\n else {\n prevPoint = points[i - 1];\n nextPoint = points[i + 1];\n }\n }\n v2Sub(v, nextPoint, prevPoint);\n v2Scale(v, v, smooth);\n var d0 = v2Distance(point, prevPoint);\n var d1 = v2Distance(point, nextPoint);\n var sum = d0 + d1;\n if (sum !== 0) {\n d0 /= sum;\n d1 /= sum;\n }\n v2Scale(v1, v, -d0);\n v2Scale(v2, v, d1);\n var cp0 = v2Add([], point, v1);\n var cp1 = v2Add([], point, v2);\n if (constraint) {\n v2Max(cp0, cp0, min);\n v2Min(cp0, cp0, max);\n v2Max(cp1, cp1, min);\n v2Min(cp1, cp1, max);\n }\n cps.push(cp0);\n cps.push(cp1);\n }\n if (isLoop) {\n cps.push(cps.shift());\n }\n return cps;\n}\n","import smoothSpline from './smoothSpline';\nimport smoothBezier from './smoothBezier';\nexport function buildPath(ctx, shape, closePath) {\n var smooth = shape.smooth;\n var points = shape.points;\n if (points && points.length >= 2) {\n if (smooth && smooth !== 'spline') {\n var controlPoints = smoothBezier(points, smooth, closePath, shape.smoothConstraint);\n ctx.moveTo(points[0][0], points[0][1]);\n var len = points.length;\n for (var i = 0; i < (closePath ? len : len - 1); i++) {\n var cp1 = controlPoints[i * 2];\n var cp2 = controlPoints[i * 2 + 1];\n var p = points[(i + 1) % len];\n ctx.bezierCurveTo(cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]);\n }\n }\n else {\n if (smooth === 'spline') {\n points = smoothSpline(points, closePath);\n }\n ctx.moveTo(points[0][0], points[0][1]);\n for (var i = 1, l = points.length; i < l; i++) {\n ctx.lineTo(points[i][0], points[i][1]);\n }\n }\n closePath && ctx.closePath();\n }\n}\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as polyHelper from '../helper/poly';\nvar PolygonShape = (function () {\n function PolygonShape() {\n this.points = null;\n this.smooth = 0;\n this.smoothConstraint = null;\n }\n return PolygonShape;\n}());\nexport { PolygonShape };\nvar Polygon = (function (_super) {\n __extends(Polygon, _super);\n function Polygon(opts) {\n return _super.call(this, opts) || this;\n }\n Polygon.prototype.getDefaultShape = function () {\n return new PolygonShape();\n };\n Polygon.prototype.buildPath = function (ctx, shape) {\n polyHelper.buildPath(ctx, shape, true);\n };\n return Polygon;\n}(Path));\n;\nPolygon.prototype.type = 'polygon';\nexport default Polygon;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as polyHelper from '../helper/poly';\nvar PolylineShape = (function () {\n function PolylineShape() {\n this.points = null;\n this.percent = 1;\n this.smooth = 0;\n this.smoothConstraint = null;\n }\n return PolylineShape;\n}());\nexport { PolylineShape };\nvar Polyline = (function (_super) {\n __extends(Polyline, _super);\n function Polyline(opts) {\n return _super.call(this, opts) || this;\n }\n Polyline.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Polyline.prototype.getDefaultShape = function () {\n return new PolylineShape();\n };\n Polyline.prototype.buildPath = function (ctx, shape) {\n polyHelper.buildPath(ctx, shape, false);\n };\n return Polyline;\n}(Path));\nPolyline.prototype.type = 'polyline';\nexport default Polyline;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport { subPixelOptimizeLine } from '../helper/subPixelOptimize';\nvar subPixelOptimizeOutputShape = {};\nvar LineShape = (function () {\n function LineShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.percent = 1;\n }\n return LineShape;\n}());\nexport { LineShape };\nvar Line = (function (_super) {\n __extends(Line, _super);\n function Line(opts) {\n return _super.call(this, opts) || this;\n }\n Line.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Line.prototype.getDefaultShape = function () {\n return new LineShape();\n };\n Line.prototype.buildPath = function (ctx, shape) {\n var x1;\n var y1;\n var x2;\n var y2;\n if (this.subPixelOptimize) {\n var optimizedShape = subPixelOptimizeLine(subPixelOptimizeOutputShape, shape, this.style);\n x1 = optimizedShape.x1;\n y1 = optimizedShape.y1;\n x2 = optimizedShape.x2;\n y2 = optimizedShape.y2;\n }\n else {\n x1 = shape.x1;\n y1 = shape.y1;\n x2 = shape.x2;\n y2 = shape.y2;\n }\n var percent = shape.percent;\n if (percent === 0) {\n return;\n }\n ctx.moveTo(x1, y1);\n if (percent < 1) {\n x2 = x1 * (1 - percent) + x2 * percent;\n y2 = y1 * (1 - percent) + y2 * percent;\n }\n ctx.lineTo(x2, y2);\n };\n Line.prototype.pointAt = function (p) {\n var shape = this.shape;\n return [\n shape.x1 * (1 - p) + shape.x2 * p,\n shape.y1 * (1 - p) + shape.y2 * p\n ];\n };\n return Line;\n}(Path));\nLine.prototype.type = 'line';\nexport default Line;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nimport * as vec2 from '../../core/vector';\nimport { quadraticSubdivide, cubicSubdivide, quadraticAt, cubicAt, quadraticDerivativeAt, cubicDerivativeAt } from '../../core/curve';\nvar out = [];\nvar BezierCurveShape = (function () {\n function BezierCurveShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.cpx1 = 0;\n this.cpy1 = 0;\n this.percent = 1;\n }\n return BezierCurveShape;\n}());\nexport { BezierCurveShape };\nfunction someVectorAt(shape, t, isTangent) {\n var cpx2 = shape.cpx2;\n var cpy2 = shape.cpy2;\n if (cpx2 === null || cpy2 === null) {\n return [\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.x1, shape.cpx1, shape.cpx2, shape.x2, t),\n (isTangent ? cubicDerivativeAt : cubicAt)(shape.y1, shape.cpy1, shape.cpy2, shape.y2, t)\n ];\n }\n else {\n return [\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.x1, shape.cpx1, shape.x2, t),\n (isTangent ? quadraticDerivativeAt : quadraticAt)(shape.y1, shape.cpy1, shape.y2, t)\n ];\n }\n}\nvar BezierCurve = (function (_super) {\n __extends(BezierCurve, _super);\n function BezierCurve(opts) {\n return _super.call(this, opts) || this;\n }\n BezierCurve.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n BezierCurve.prototype.getDefaultShape = function () {\n return new BezierCurveShape();\n };\n BezierCurve.prototype.buildPath = function (ctx, shape) {\n var x1 = shape.x1;\n var y1 = shape.y1;\n var x2 = shape.x2;\n var y2 = shape.y2;\n var cpx1 = shape.cpx1;\n var cpy1 = shape.cpy1;\n var cpx2 = shape.cpx2;\n var cpy2 = shape.cpy2;\n var percent = shape.percent;\n if (percent === 0) {\n return;\n }\n ctx.moveTo(x1, y1);\n if (cpx2 == null || cpy2 == null) {\n if (percent < 1) {\n quadraticSubdivide(x1, cpx1, x2, percent, out);\n cpx1 = out[1];\n x2 = out[2];\n quadraticSubdivide(y1, cpy1, y2, percent, out);\n cpy1 = out[1];\n y2 = out[2];\n }\n ctx.quadraticCurveTo(cpx1, cpy1, x2, y2);\n }\n else {\n if (percent < 1) {\n cubicSubdivide(x1, cpx1, cpx2, x2, percent, out);\n cpx1 = out[1];\n cpx2 = out[2];\n x2 = out[3];\n cubicSubdivide(y1, cpy1, cpy2, y2, percent, out);\n cpy1 = out[1];\n cpy2 = out[2];\n y2 = out[3];\n }\n ctx.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, x2, y2);\n }\n };\n BezierCurve.prototype.pointAt = function (t) {\n return someVectorAt(this.shape, t, false);\n };\n BezierCurve.prototype.tangentAt = function (t) {\n var p = someVectorAt(this.shape, t, true);\n return vec2.normalize(p, p);\n };\n return BezierCurve;\n}(Path));\n;\nBezierCurve.prototype.type = 'bezier-curve';\nexport default BezierCurve;\n","import { __extends } from \"tslib\";\nimport Path from '../Path';\nvar ArcShape = (function () {\n function ArcShape() {\n this.cx = 0;\n this.cy = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n }\n return ArcShape;\n}());\nexport { ArcShape };\nvar Arc = (function (_super) {\n __extends(Arc, _super);\n function Arc(opts) {\n return _super.call(this, opts) || this;\n }\n Arc.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n Arc.prototype.getDefaultShape = function () {\n return new ArcShape();\n };\n Arc.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var r = Math.max(shape.r, 0);\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var clockwise = shape.clockwise;\n var unitX = Math.cos(startAngle);\n var unitY = Math.sin(startAngle);\n ctx.moveTo(unitX * r + x, unitY * r + y);\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n };\n return Arc;\n}(Path));\nArc.prototype.type = 'arc';\nexport default Arc;\n","import { __extends } from \"tslib\";\nimport Path from './Path';\nvar CompoundPath = (function (_super) {\n __extends(CompoundPath, _super);\n function CompoundPath() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = 'compound';\n return _this;\n }\n CompoundPath.prototype._updatePathDirty = function () {\n var paths = this.shape.paths;\n var dirtyPath = this.shapeChanged();\n for (var i = 0; i < paths.length; i++) {\n dirtyPath = dirtyPath || paths[i].shapeChanged();\n }\n if (dirtyPath) {\n this.dirtyShape();\n }\n };\n CompoundPath.prototype.beforeBrush = function () {\n this._updatePathDirty();\n var paths = this.shape.paths || [];\n var scale = this.getGlobalScale();\n for (var i = 0; i < paths.length; i++) {\n if (!paths[i].path) {\n paths[i].createPathProxy();\n }\n paths[i].path.setScale(scale[0], scale[1], paths[i].segmentIgnoreThreshold);\n }\n };\n CompoundPath.prototype.buildPath = function (ctx, shape) {\n var paths = shape.paths || [];\n for (var i = 0; i < paths.length; i++) {\n paths[i].buildPath(ctx, paths[i].shape, true);\n }\n };\n CompoundPath.prototype.afterBrush = function () {\n var paths = this.shape.paths || [];\n for (var i = 0; i < paths.length; i++) {\n paths[i].pathUpdated();\n }\n };\n CompoundPath.prototype.getBoundingRect = function () {\n this._updatePathDirty.call(this);\n return Path.prototype.getBoundingRect.call(this);\n };\n return CompoundPath;\n}(Path));\nexport default CompoundPath;\n","var Gradient = (function () {\n function Gradient(colorStops) {\n this.colorStops = colorStops || [];\n }\n Gradient.prototype.addColorStop = function (offset, color) {\n this.colorStops.push({\n offset: offset,\n color: color\n });\n };\n return Gradient;\n}());\nexport default Gradient;\n","import { __extends } from \"tslib\";\nimport Gradient from './Gradient';\nvar LinearGradient = (function (_super) {\n __extends(LinearGradient, _super);\n function LinearGradient(x, y, x2, y2, colorStops, globalCoord) {\n var _this = _super.call(this, colorStops) || this;\n _this.x = x == null ? 0 : x;\n _this.y = y == null ? 0 : y;\n _this.x2 = x2 == null ? 1 : x2;\n _this.y2 = y2 == null ? 0 : y2;\n _this.type = 'linear';\n _this.global = globalCoord || false;\n return _this;\n }\n return LinearGradient;\n}(Gradient));\nexport default LinearGradient;\n;\n","import { __extends } from \"tslib\";\nimport Gradient from './Gradient';\nvar RadialGradient = (function (_super) {\n __extends(RadialGradient, _super);\n function RadialGradient(x, y, r, colorStops, globalCoord) {\n var _this = _super.call(this, colorStops) || this;\n _this.x = x == null ? 0.5 : x;\n _this.y = y == null ? 0.5 : y;\n _this.r = r == null ? 0.5 : r;\n _this.type = 'radial';\n _this.global = globalCoord || false;\n return _this;\n }\n return RadialGradient;\n}(Gradient));\nexport default RadialGradient;\n","import Point from './Point';\nvar extent = [0, 0];\nvar extent2 = [0, 0];\nvar minTv = new Point();\nvar maxTv = new Point();\nvar OrientedBoundingRect = (function () {\n function OrientedBoundingRect(rect, transform) {\n this._corners = [];\n this._axes = [];\n this._origin = [0, 0];\n for (var i = 0; i < 4; i++) {\n this._corners[i] = new Point();\n }\n for (var i = 0; i < 2; i++) {\n this._axes[i] = new Point();\n }\n if (rect) {\n this.fromBoundingRect(rect, transform);\n }\n }\n OrientedBoundingRect.prototype.fromBoundingRect = function (rect, transform) {\n var corners = this._corners;\n var axes = this._axes;\n var x = rect.x;\n var y = rect.y;\n var x2 = x + rect.width;\n var y2 = y + rect.height;\n corners[0].set(x, y);\n corners[1].set(x2, y);\n corners[2].set(x2, y2);\n corners[3].set(x, y2);\n if (transform) {\n for (var i = 0; i < 4; i++) {\n corners[i].transform(transform);\n }\n }\n Point.sub(axes[0], corners[1], corners[0]);\n Point.sub(axes[1], corners[3], corners[0]);\n axes[0].normalize();\n axes[1].normalize();\n for (var i = 0; i < 2; i++) {\n this._origin[i] = axes[i].dot(corners[0]);\n }\n };\n OrientedBoundingRect.prototype.intersect = function (other, mtv) {\n var overlapped = true;\n var noMtv = !mtv;\n minTv.set(Infinity, Infinity);\n maxTv.set(0, 0);\n if (!this._intersectCheckOneSide(this, other, minTv, maxTv, noMtv, 1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n if (!this._intersectCheckOneSide(other, this, minTv, maxTv, noMtv, -1)) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n }\n if (!noMtv) {\n Point.copy(mtv, overlapped ? minTv : maxTv);\n }\n return overlapped;\n };\n OrientedBoundingRect.prototype._intersectCheckOneSide = function (self, other, minTv, maxTv, noMtv, inverse) {\n var overlapped = true;\n for (var i = 0; i < 2; i++) {\n var axis = this._axes[i];\n this._getProjMinMaxOnAxis(i, self._corners, extent);\n this._getProjMinMaxOnAxis(i, other._corners, extent2);\n if (extent[1] < extent2[0] || extent[0] > extent2[1]) {\n overlapped = false;\n if (noMtv) {\n return overlapped;\n }\n var dist0 = Math.abs(extent2[0] - extent[1]);\n var dist1 = Math.abs(extent[0] - extent2[1]);\n if (Math.min(dist0, dist1) > maxTv.len()) {\n if (dist0 < dist1) {\n Point.scale(maxTv, axis, -dist0 * inverse);\n }\n else {\n Point.scale(maxTv, axis, dist1 * inverse);\n }\n }\n }\n else if (minTv) {\n var dist0 = Math.abs(extent2[0] - extent[1]);\n var dist1 = Math.abs(extent[0] - extent2[1]);\n if (Math.min(dist0, dist1) < minTv.len()) {\n if (dist0 < dist1) {\n Point.scale(minTv, axis, dist0 * inverse);\n }\n else {\n Point.scale(minTv, axis, -dist1 * inverse);\n }\n }\n }\n }\n return overlapped;\n };\n OrientedBoundingRect.prototype._getProjMinMaxOnAxis = function (dim, corners, out) {\n var axis = this._axes[dim];\n var origin = this._origin;\n var proj = corners[0].dot(axis) + origin[dim];\n var min = proj;\n var max = proj;\n for (var i = 1; i < corners.length; i++) {\n var proj_1 = corners[i].dot(axis) + origin[dim];\n min = Math.min(proj_1, min);\n max = Math.max(proj_1, max);\n }\n out[0] = min;\n out[1] = max;\n };\n return OrientedBoundingRect;\n}());\nexport default OrientedBoundingRect;\n","import { __extends } from \"tslib\";\nimport Displayble from './Displayable';\nimport BoundingRect from '../core/BoundingRect';\nvar m = [];\nvar IncrementalDisplayable = (function (_super) {\n __extends(IncrementalDisplayable, _super);\n function IncrementalDisplayable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.notClear = true;\n _this.incremental = true;\n _this._displayables = [];\n _this._temporaryDisplayables = [];\n _this._cursor = 0;\n return _this;\n }\n IncrementalDisplayable.prototype.traverse = function (cb, context) {\n cb.call(context, this);\n };\n IncrementalDisplayable.prototype.useStyle = function () {\n this.style = {};\n };\n IncrementalDisplayable.prototype.getCursor = function () {\n return this._cursor;\n };\n IncrementalDisplayable.prototype.innerAfterBrush = function () {\n this._cursor = this._displayables.length;\n };\n IncrementalDisplayable.prototype.clearDisplaybles = function () {\n this._displayables = [];\n this._temporaryDisplayables = [];\n this._cursor = 0;\n this.markRedraw();\n this.notClear = false;\n };\n IncrementalDisplayable.prototype.clearTemporalDisplayables = function () {\n this._temporaryDisplayables = [];\n };\n IncrementalDisplayable.prototype.addDisplayable = function (displayable, notPersistent) {\n if (notPersistent) {\n this._temporaryDisplayables.push(displayable);\n }\n else {\n this._displayables.push(displayable);\n }\n this.markRedraw();\n };\n IncrementalDisplayable.prototype.addDisplayables = function (displayables, notPersistent) {\n notPersistent = notPersistent || false;\n for (var i = 0; i < displayables.length; i++) {\n this.addDisplayable(displayables[i], notPersistent);\n }\n };\n IncrementalDisplayable.prototype.getDisplayables = function () {\n return this._displayables;\n };\n IncrementalDisplayable.prototype.getTemporalDisplayables = function () {\n return this._temporaryDisplayables;\n };\n IncrementalDisplayable.prototype.eachPendingDisplayable = function (cb) {\n for (var i = this._cursor; i < this._displayables.length; i++) {\n cb && cb(this._displayables[i]);\n }\n for (var i = 0; i < this._temporaryDisplayables.length; i++) {\n cb && cb(this._temporaryDisplayables[i]);\n }\n };\n IncrementalDisplayable.prototype.update = function () {\n this.updateTransform();\n for (var i = this._cursor; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n displayable.parent = this;\n displayable.update();\n displayable.parent = null;\n }\n for (var i = 0; i < this._temporaryDisplayables.length; i++) {\n var displayable = this._temporaryDisplayables[i];\n displayable.parent = this;\n displayable.update();\n displayable.parent = null;\n }\n };\n IncrementalDisplayable.prototype.getBoundingRect = function () {\n if (!this._rect) {\n var rect = new BoundingRect(Infinity, Infinity, -Infinity, -Infinity);\n for (var i = 0; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n var childRect = displayable.getBoundingRect().clone();\n if (displayable.needLocalTransform()) {\n childRect.applyTransform(displayable.getLocalTransform(m));\n }\n rect.union(childRect);\n }\n this._rect = rect;\n }\n return this._rect;\n };\n IncrementalDisplayable.prototype.contain = function (x, y) {\n var localPos = this.transformCoordToLocal(x, y);\n var rect = this.getBoundingRect();\n if (rect.contain(localPos[0], localPos[1])) {\n for (var i = 0; i < this._displayables.length; i++) {\n var displayable = this._displayables[i];\n if (displayable.contain(x, y)) {\n return true;\n }\n }\n }\n return false;\n };\n return IncrementalDisplayable;\n}(Displayble));\nexport default IncrementalDisplayable;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as pathTool from 'zrender/lib/tool/path';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as vector from 'zrender/lib/core/vector';\nimport Path from 'zrender/lib/graphic/Path';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport Group from 'zrender/lib/graphic/Group';\nimport ZRText from 'zrender/lib/graphic/Text';\nimport Circle from 'zrender/lib/graphic/shape/Circle';\nimport Ellipse from 'zrender/lib/graphic/shape/Ellipse';\nimport Sector from 'zrender/lib/graphic/shape/Sector';\nimport Ring from 'zrender/lib/graphic/shape/Ring';\nimport Polygon from 'zrender/lib/graphic/shape/Polygon';\nimport Polyline from 'zrender/lib/graphic/shape/Polyline';\nimport Rect from 'zrender/lib/graphic/shape/Rect';\nimport Line from 'zrender/lib/graphic/shape/Line';\nimport BezierCurve from 'zrender/lib/graphic/shape/BezierCurve';\nimport Arc from 'zrender/lib/graphic/shape/Arc';\nimport CompoundPath from 'zrender/lib/graphic/CompoundPath';\nimport LinearGradient from 'zrender/lib/graphic/LinearGradient';\nimport RadialGradient from 'zrender/lib/graphic/RadialGradient';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport OrientedBoundingRect from 'zrender/lib/core/OrientedBoundingRect';\nimport Point from 'zrender/lib/core/Point';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport * as subPixelOptimizeUtil from 'zrender/lib/graphic/helper/subPixelOptimize';\nimport { extend, isArrayLike, map, defaults, isObject, retrieve2, isString, keys, each, hasOwn } from 'zrender/lib/core/util';\nimport { getECData } from './innerStore';\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar _customShapeMap = {};\n/**\n * Extend shape with parameters\n */\n\nexport function extendShape(opts) {\n return Path.extend(opts);\n}\nvar extendPathFromString = pathTool.extendFromString;\n/**\n * Extend path\n */\n\nexport function extendPath(pathData, opts) {\n return extendPathFromString(pathData, opts);\n}\n/**\n * Register a user defined shape.\n * The shape class can be fetched by `getShapeClass`\n * This method will overwrite the registered shapes, including\n * the registered built-in shapes, if using the same `name`.\n * The shape can be used in `custom series` and\n * `graphic component` by declaring `{type: name}`.\n *\n * @param name\n * @param ShapeClass Can be generated by `extendShape`.\n */\n\nexport function registerShape(name, ShapeClass) {\n _customShapeMap[name] = ShapeClass;\n}\n/**\n * Find shape class registered by `registerShape`. Usually used in\n * fetching user defined shape.\n *\n * [Caution]:\n * (1) This method **MUST NOT be used inside echarts !!!**, unless it is prepared\n * to use user registered shapes.\n * Because the built-in shape (see `getBuiltInShape`) will be registered by\n * `registerShape` by default. That enables users to get both built-in\n * shapes as well as the shapes belonging to themsleves. But users can overwrite\n * the built-in shapes by using names like 'circle', 'rect' via calling\n * `registerShape`. So the echarts inner featrues should not fetch shapes from here\n * in case that it is overwritten by users, except that some features, like\n * `custom series`, `graphic component`, do it deliberately.\n *\n * (2) In the features like `custom series`, `graphic component`, the user input\n * `{tpye: 'xxx'}` does not only specify shapes but also specify other graphic\n * elements like `'group'`, `'text'`, `'image'` or event `'path'`. Those names\n * are reserved names, that is, if some user register a shape named `'image'`,\n * the shape will not be used. If we intending to add some more reserved names\n * in feature, that might bring break changes (disable some existing user shape\n * names). But that case probably rearly happen. So we dont make more mechanism\n * to resolve this issue here.\n *\n * @param name\n * @return The shape class. If not found, return nothing.\n */\n\nexport function getShapeClass(name) {\n if (_customShapeMap.hasOwnProperty(name)) {\n return _customShapeMap[name];\n }\n}\n/**\n * Create a path element from path data string\n * @param pathData\n * @param opts\n * @param rect\n * @param layout 'center' or 'cover' default to be cover\n */\n\nexport function makePath(pathData, opts, rect, layout) {\n var path = pathTool.createFromString(pathData, opts);\n\n if (rect) {\n if (layout === 'center') {\n rect = centerGraphic(rect, path.getBoundingRect());\n }\n\n resizePath(path, rect);\n }\n\n return path;\n}\n/**\n * Create a image element from image url\n * @param imageUrl image url\n * @param opts options\n * @param rect constrain rect\n * @param layout 'center' or 'cover'. Default to be 'cover'\n */\n\nexport function makeImage(imageUrl, rect, layout) {\n var zrImg = new ZRImage({\n style: {\n image: imageUrl,\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n onload: function (img) {\n if (layout === 'center') {\n var boundingRect = {\n width: img.width,\n height: img.height\n };\n zrImg.setStyle(centerGraphic(rect, boundingRect));\n }\n }\n });\n return zrImg;\n}\n/**\n * Get position of centered element in bounding box.\n *\n * @param rect element local bounding box\n * @param boundingRect constraint bounding box\n * @return element position containing x, y, width, and height\n */\n\nfunction centerGraphic(rect, boundingRect) {\n // Set rect to center, keep width / height ratio.\n var aspect = boundingRect.width / boundingRect.height;\n var width = rect.height * aspect;\n var height;\n\n if (width <= rect.width) {\n height = rect.height;\n } else {\n width = rect.width;\n height = width / aspect;\n }\n\n var cx = rect.x + rect.width / 2;\n var cy = rect.y + rect.height / 2;\n return {\n x: cx - width / 2,\n y: cy - height / 2,\n width: width,\n height: height\n };\n}\n\nexport var mergePath = pathTool.mergePath;\n/**\n * Resize a path to fit the rect\n * @param path\n * @param rect\n */\n\nexport function resizePath(path, rect) {\n if (!path.applyTransform) {\n return;\n }\n\n var pathRect = path.getBoundingRect();\n var m = pathRect.calculateTransform(rect);\n path.applyTransform(m);\n}\n/**\n * Sub pixel optimize line for canvas\n */\n\nexport function subPixelOptimizeLine(param) {\n subPixelOptimizeUtil.subPixelOptimizeLine(param.shape, param.shape, param.style);\n return param;\n}\n/**\n * Sub pixel optimize rect for canvas\n */\n\nexport function subPixelOptimizeRect(param) {\n subPixelOptimizeUtil.subPixelOptimizeRect(param.shape, param.shape, param.style);\n return param;\n}\n/**\n * Sub pixel optimize for canvas\n *\n * @param position Coordinate, such as x, y\n * @param lineWidth Should be nonnegative integer.\n * @param positiveOrNegative Default false (negative).\n * @return Optimized position.\n */\n\nexport var subPixelOptimize = subPixelOptimizeUtil.subPixelOptimize;\n\nfunction animateOrSetProps(animationType, el, props, animatableModel, dataIndex, cb, during) {\n var isFrom = false;\n var removeOpt;\n\n if (typeof dataIndex === 'function') {\n during = cb;\n cb = dataIndex;\n dataIndex = null;\n } else if (isObject(dataIndex)) {\n cb = dataIndex.cb;\n during = dataIndex.during;\n isFrom = dataIndex.isFrom;\n removeOpt = dataIndex.removeOpt;\n dataIndex = dataIndex.dataIndex;\n }\n\n var isUpdate = animationType === 'update';\n var isRemove = animationType === 'remove';\n var animationPayload; // Check if there is global animation configuration from dataZoom/resize can override the config in option.\n // If animation is enabled. Will use this animation config in payload.\n // If animation is disabled. Just ignore it.\n\n if (animatableModel && animatableModel.ecModel) {\n var updatePayload = animatableModel.ecModel.getUpdatePayload();\n animationPayload = updatePayload && updatePayload.animation;\n }\n\n var animationEnabled = animatableModel && animatableModel.isAnimationEnabled();\n\n if (!isRemove) {\n // Must stop the remove animation.\n el.stopAnimation('remove');\n }\n\n if (animationEnabled) {\n var duration = void 0;\n var animationEasing = void 0;\n var animationDelay = void 0;\n\n if (animationPayload) {\n duration = animationPayload.duration || 0;\n animationEasing = animationPayload.easing || 'cubicOut';\n animationDelay = animationPayload.delay || 0;\n } else if (isRemove) {\n removeOpt = removeOpt || {};\n duration = retrieve2(removeOpt.duration, 200);\n animationEasing = retrieve2(removeOpt.easing, 'cubicOut');\n animationDelay = 0;\n } else {\n duration = animatableModel.getShallow(isUpdate ? 'animationDurationUpdate' : 'animationDuration');\n animationEasing = animatableModel.getShallow(isUpdate ? 'animationEasingUpdate' : 'animationEasing');\n animationDelay = animatableModel.getShallow(isUpdate ? 'animationDelayUpdate' : 'animationDelay');\n }\n\n if (typeof animationDelay === 'function') {\n animationDelay = animationDelay(dataIndex, animatableModel.getAnimationDelayParams ? animatableModel.getAnimationDelayParams(el, dataIndex) : null);\n }\n\n if (typeof duration === 'function') {\n duration = duration(dataIndex);\n }\n\n duration > 0 ? isFrom ? el.animateFrom(props, {\n duration: duration,\n delay: animationDelay || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n scope: animationType,\n during: during\n }) : el.animateTo(props, {\n duration: duration,\n delay: animationDelay || 0,\n easing: animationEasing,\n done: cb,\n force: !!cb || !!during,\n setToFinal: true,\n scope: animationType,\n during: during\n }) : ( // FIXME:\n // If `duration` is 0, only the animation on props\n // can be stoped, other animation should be continued?\n // But at present using duration 0 in `animateTo`, `animateFrom`\n // might cause unexpected behavior.\n el.stopAnimation(), // If `isFrom`, the props is the \"from\" props.\n !isFrom && el.attr(props), cb && cb());\n } else {\n el.stopAnimation();\n !isFrom && el.attr(props); // Call during once.\n\n during && during(1);\n cb && cb();\n }\n}\n/**\n * Update graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n * @example\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, dataIndex, function () { console.log('Animation done!'); });\n * // Or\n * graphic.updateProps(el, {\n * position: [100, 100]\n * }, seriesModel, function () { console.log('Animation done!'); });\n */\n\n\nfunction updateProps(el, props, // TODO: TYPE AnimatableModel\nanimatableModel, dataIndex, cb, during) {\n animateOrSetProps('update', el, props, animatableModel, dataIndex, cb, during);\n}\n\nexport { updateProps };\n/**\n * Init graphic element properties with or without animation according to the\n * configuration in series.\n *\n * Caution: this method will stop previous animation.\n * So do not use this method to one element twice before\n * animation starts, unless you know what you are doing.\n */\n\nexport function initProps(el, props, animatableModel, dataIndex, cb, during) {\n animateOrSetProps('init', el, props, animatableModel, dataIndex, cb, during);\n}\n/**\n * Remove graphic element\n */\n\nexport function removeElement(el, props, animatableModel, dataIndex, cb, during) {\n // Don't do remove animation twice.\n if (isElementRemoved(el)) {\n return;\n }\n\n animateOrSetProps('remove', el, props, animatableModel, dataIndex, cb, during);\n}\n\nfunction fadeOutDisplayable(el, animatableModel, dataIndex, done) {\n el.removeTextContent();\n el.removeTextGuideLine();\n removeElement(el, {\n style: {\n opacity: 0\n }\n }, animatableModel, dataIndex, done);\n}\n\nexport function removeElementWithFadeOut(el, animatableModel, dataIndex) {\n function doRemove() {\n el.parent && el.parent.remove(el);\n } // Hide label and labelLine first\n // TODO Also use fade out animation?\n\n\n if (!el.isGroup) {\n fadeOutDisplayable(el, animatableModel, dataIndex, doRemove);\n } else {\n el.traverse(function (disp) {\n if (!disp.isGroup) {\n // Can invoke doRemove multiple times.\n fadeOutDisplayable(disp, animatableModel, dataIndex, doRemove);\n }\n });\n }\n}\n/**\n * If element is removed.\n * It can determine if element is having remove animation.\n */\n\nexport function isElementRemoved(el) {\n if (!el.__zr) {\n return true;\n }\n\n for (var i = 0; i < el.animators.length; i++) {\n var animator = el.animators[i];\n\n if (animator.scope === 'remove') {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Get transform matrix of target (param target),\n * in coordinate of its ancestor (param ancestor)\n *\n * @param target\n * @param [ancestor]\n */\n\nexport function getTransform(target, ancestor) {\n var mat = matrix.identity([]);\n\n while (target && target !== ancestor) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n return mat;\n}\n/**\n * Apply transform to an vertex.\n * @param target [x, y]\n * @param transform Can be:\n * + Transform matrix: like [1, 0, 0, 1, 0, 0]\n * + {position, rotation, scale}, the same as `zrender/Transformable`.\n * @param invert Whether use invert matrix.\n * @return [x, y]\n */\n\nexport function applyTransform(target, transform, invert) {\n if (transform && !isArrayLike(transform)) {\n transform = Transformable.getLocalTransform(transform);\n }\n\n if (invert) {\n transform = matrix.invert([], transform);\n }\n\n return vector.applyTransform([], target, transform);\n}\n/**\n * @param direction 'left' 'right' 'top' 'bottom'\n * @param transform Transform matrix: like [1, 0, 0, 1, 0, 0]\n * @param invert Whether use invert matrix.\n * @return Transformed direction. 'left' 'right' 'top' 'bottom'\n */\n\nexport function transformDirection(direction, transform, invert) {\n // Pick a base, ensure that transform result will not be (0, 0).\n var hBase = transform[4] === 0 || transform[5] === 0 || transform[0] === 0 ? 1 : Math.abs(2 * transform[4] / transform[0]);\n var vBase = transform[4] === 0 || transform[5] === 0 || transform[2] === 0 ? 1 : Math.abs(2 * transform[4] / transform[2]);\n var vertex = [direction === 'left' ? -hBase : direction === 'right' ? hBase : 0, direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0];\n vertex = applyTransform(vertex, transform, invert);\n return Math.abs(vertex[0]) > Math.abs(vertex[1]) ? vertex[0] > 0 ? 'right' : 'left' : vertex[1] > 0 ? 'bottom' : 'top';\n}\n\nfunction isNotGroup(el) {\n return !el.isGroup;\n}\n\nfunction isPath(el) {\n return el.shape != null;\n}\n/**\n * Apply group transition animation from g1 to g2.\n * If no animatableModel, no animation.\n */\n\n\nexport function groupTransition(g1, g2, animatableModel) {\n if (!g1 || !g2) {\n return;\n }\n\n function getElMap(g) {\n var elMap = {};\n g.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n elMap[el.anid] = el;\n }\n });\n return elMap;\n }\n\n function getAnimatableProps(el) {\n var obj = {\n x: el.x,\n y: el.y,\n rotation: el.rotation\n };\n\n if (isPath(el)) {\n obj.shape = extend({}, el.shape);\n }\n\n return obj;\n }\n\n var elMap1 = getElMap(g1);\n g2.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n var oldEl = elMap1[el.anid];\n\n if (oldEl) {\n var newProp = getAnimatableProps(el);\n el.attr(getAnimatableProps(oldEl));\n updateProps(el, newProp, animatableModel, getECData(el).dataIndex);\n }\n }\n });\n}\nexport function clipPointsByRect(points, rect) {\n // FIXME: this way migth be incorrect when grpahic clipped by a corner.\n // and when element have border.\n return map(points, function (point) {\n var x = point[0];\n x = mathMax(x, rect.x);\n x = mathMin(x, rect.x + rect.width);\n var y = point[1];\n y = mathMax(y, rect.y);\n y = mathMin(y, rect.y + rect.height);\n return [x, y];\n });\n}\n/**\n * Return a new clipped rect. If rect size are negative, return undefined.\n */\n\nexport function clipRectByRect(targetRect, rect) {\n var x = mathMax(targetRect.x, rect.x);\n var x2 = mathMin(targetRect.x + targetRect.width, rect.x + rect.width);\n var y = mathMax(targetRect.y, rect.y);\n var y2 = mathMin(targetRect.y + targetRect.height, rect.y + rect.height); // If the total rect is cliped, nothing, including the border,\n // should be painted. So return undefined.\n\n if (x2 >= x && y2 >= y) {\n return {\n x: x,\n y: y,\n width: x2 - x,\n height: y2 - y\n };\n }\n}\nexport function createIcon(iconStr, // Support 'image://' or 'path://' or direct svg path.\nopt, rect) {\n var innerOpts = extend({\n rectHover: true\n }, opt);\n var style = innerOpts.style = {\n strokeNoScale: true\n };\n rect = rect || {\n x: -1,\n y: -1,\n width: 2,\n height: 2\n };\n\n if (iconStr) {\n return iconStr.indexOf('image://') === 0 ? (style.image = iconStr.slice(8), defaults(style, rect), new ZRImage(innerOpts)) : makePath(iconStr.replace('path://', ''), innerOpts, rect, 'center');\n }\n}\n/**\n * Return `true` if the given line (line `a`) and the given polygon\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\n\nexport function linePolygonIntersect(a1x, a1y, a2x, a2y, points) {\n for (var i = 0, p2 = points[points.length - 1]; i < points.length; i++) {\n var p = points[i];\n\n if (lineLineIntersect(a1x, a1y, a2x, a2y, p[0], p[1], p2[0], p2[1])) {\n return true;\n }\n\n p2 = p;\n }\n}\n/**\n * Return `true` if the given two lines (line `a` and line `b`)\n * are intersect.\n * Note that we do not count colinear as intersect here because no\n * requirement for that. We could do that if required in future.\n */\n\nexport function lineLineIntersect(a1x, a1y, a2x, a2y, b1x, b1y, b2x, b2y) {\n // let `vec_m` to be `vec_a2 - vec_a1` and `vec_n` to be `vec_b2 - vec_b1`.\n var mx = a2x - a1x;\n var my = a2y - a1y;\n var nx = b2x - b1x;\n var ny = b2y - b1y; // `vec_m` and `vec_n` are parallel iff\n // exising `k` such that `vec_m = k · vec_n`, equivalent to `vec_m X vec_n = 0`.\n\n var nmCrossProduct = crossProduct2d(nx, ny, mx, my);\n\n if (nearZero(nmCrossProduct)) {\n return false;\n } // `vec_m` and `vec_n` are intersect iff\n // existing `p` and `q` in [0, 1] such that `vec_a1 + p * vec_m = vec_b1 + q * vec_n`,\n // such that `q = ((vec_a1 - vec_b1) X vec_m) / (vec_n X vec_m)`\n // and `p = ((vec_a1 - vec_b1) X vec_n) / (vec_n X vec_m)`.\n\n\n var b1a1x = a1x - b1x;\n var b1a1y = a1y - b1y;\n var q = crossProduct2d(b1a1x, b1a1y, mx, my) / nmCrossProduct;\n\n if (q < 0 || q > 1) {\n return false;\n }\n\n var p = crossProduct2d(b1a1x, b1a1y, nx, ny) / nmCrossProduct;\n\n if (p < 0 || p > 1) {\n return false;\n }\n\n return true;\n}\n/**\n * Cross product of 2-dimension vector.\n */\n\nfunction crossProduct2d(x1, y1, x2, y2) {\n return x1 * y2 - x2 * y1;\n}\n\nfunction nearZero(val) {\n return val <= 1e-6 && val >= -1e-6;\n}\n\nexport function setTooltipConfig(opt) {\n var itemTooltipOption = opt.itemTooltipOption;\n var componentModel = opt.componentModel;\n var itemName = opt.itemName;\n var itemTooltipOptionObj = isString(itemTooltipOption) ? {\n formatter: itemTooltipOption\n } : itemTooltipOption;\n var mainType = componentModel.mainType;\n var componentIndex = componentModel.componentIndex;\n var formatterParams = {\n componentType: mainType,\n name: itemName,\n $vars: ['name']\n };\n formatterParams[mainType + 'Index'] = componentIndex;\n var formatterParamsExtra = opt.formatterParamsExtra;\n\n if (formatterParamsExtra) {\n each(keys(formatterParamsExtra), function (key) {\n if (!hasOwn(formatterParams, key)) {\n formatterParams[key] = formatterParamsExtra[key];\n formatterParams.$vars.push(key);\n }\n });\n }\n\n var ecData = getECData(opt.el);\n ecData.componentMainType = mainType;\n ecData.componentIndex = componentIndex;\n ecData.tooltipConfig = {\n name: itemName,\n option: defaults({\n content: itemName,\n formatterParams: formatterParams\n }, itemTooltipOptionObj)\n };\n} // Register built-in shapes. These shapes might be overwirtten\n// by users, although we do not recommend that.\n\nregisterShape('circle', Circle);\nregisterShape('ellipse', Ellipse);\nregisterShape('sector', Sector);\nregisterShape('ring', Ring);\nregisterShape('polygon', Polygon);\nregisterShape('polyline', Polyline);\nregisterShape('rect', Rect);\nregisterShape('line', Line);\nregisterShape('bezierCurve', BezierCurve);\nregisterShape('arc', Arc);\nexport { Group, ZRImage as Image, ZRText as Text, Circle, Ellipse, Sector, Ring, Polygon, Polyline, Rect, Line, BezierCurve, Arc, IncrementalDisplayable, CompoundPath, LinearGradient, RadialGradient, BoundingRect, OrientedBoundingRect, Point, Path };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ZRText from 'zrender/lib/graphic/Text';\nimport { isFunction, retrieve2, extend, keys, trim } from 'zrender/lib/core/util';\nimport { SPECIAL_STATES, DISPLAY_STATES } from '../util/states';\nimport { deprecateReplaceLog } from '../util/log';\nimport { makeInner, interpolateRawValues } from '../util/model';\nimport { initProps, updateProps } from '../util/graphic';\nvar EMPTY_OBJ = {};\nexport function setLabelText(label, labelTexts) {\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var text = labelTexts[stateName];\n var state = label.ensureState(stateName);\n state.style = state.style || {};\n state.style.text = text;\n }\n\n var oldStates = label.currentStates.slice();\n label.clearStates(true);\n label.setStyle({\n text: labelTexts.normal\n });\n label.useStates(oldStates, true);\n}\n\nfunction getLabelText(opt, stateModels, interpolatedValue) {\n var labelFetcher = opt.labelFetcher;\n var labelDataIndex = opt.labelDataIndex;\n var labelDimIndex = opt.labelDimIndex;\n var normalModel = stateModels.normal;\n var baseText;\n\n if (labelFetcher) {\n baseText = labelFetcher.getFormattedLabel(labelDataIndex, 'normal', null, labelDimIndex, normalModel && normalModel.get('formatter'), interpolatedValue != null ? {\n interpolatedValue: interpolatedValue\n } : null);\n }\n\n if (baseText == null) {\n baseText = isFunction(opt.defaultText) ? opt.defaultText(labelDataIndex, opt, interpolatedValue) : opt.defaultText;\n }\n\n var statesText = {\n normal: baseText\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var stateModel = stateModels[stateName];\n statesText[stateName] = retrieve2(labelFetcher ? labelFetcher.getFormattedLabel(labelDataIndex, stateName, null, labelDimIndex, stateModel && stateModel.get('formatter')) : null, baseText);\n }\n\n return statesText;\n}\n\nfunction setLabelStyle(targetEl, labelStatesModels, opt, stateSpecified // TODO specified position?\n) {\n opt = opt || EMPTY_OBJ;\n var isSetOnText = targetEl instanceof ZRText;\n var needsCreateText = false;\n\n for (var i = 0; i < DISPLAY_STATES.length; i++) {\n var stateModel = labelStatesModels[DISPLAY_STATES[i]];\n\n if (stateModel && stateModel.getShallow('show')) {\n needsCreateText = true;\n break;\n }\n }\n\n var textContent = isSetOnText ? targetEl : targetEl.getTextContent();\n\n if (needsCreateText) {\n if (!isSetOnText) {\n // Reuse the previous\n if (!textContent) {\n textContent = new ZRText();\n targetEl.setTextContent(textContent);\n } // Use same state proxy\n\n\n if (targetEl.stateProxy) {\n textContent.stateProxy = targetEl.stateProxy;\n }\n }\n\n var labelStatesTexts = getLabelText(opt, labelStatesModels);\n var normalModel = labelStatesModels.normal;\n var showNormal = !!normalModel.getShallow('show');\n var normalStyle = createTextStyle(normalModel, stateSpecified && stateSpecified.normal, opt, false, !isSetOnText);\n normalStyle.text = labelStatesTexts.normal;\n\n if (!isSetOnText) {\n // Always create new\n targetEl.setTextConfig(createTextConfig(normalModel, opt, false));\n }\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var stateModel = labelStatesModels[stateName];\n\n if (stateModel) {\n var stateObj = textContent.ensureState(stateName);\n var stateShow = !!retrieve2(stateModel.getShallow('show'), showNormal);\n\n if (stateShow !== showNormal) {\n stateObj.ignore = !stateShow;\n }\n\n stateObj.style = createTextStyle(stateModel, stateSpecified && stateSpecified[stateName], opt, true, !isSetOnText);\n stateObj.style.text = labelStatesTexts[stateName];\n\n if (!isSetOnText) {\n var targetElEmphasisState = targetEl.ensureState(stateName);\n targetElEmphasisState.textConfig = createTextConfig(stateModel, opt, true);\n }\n }\n } // PENDING: if there is many requirements that emphasis position\n // need to be different from normal position, we might consider\n // auto slient is those cases.\n\n\n textContent.silent = !!normalModel.getShallow('silent'); // Keep x and y\n\n if (textContent.style.x != null) {\n normalStyle.x = textContent.style.x;\n }\n\n if (textContent.style.y != null) {\n normalStyle.y = textContent.style.y;\n }\n\n textContent.ignore = !showNormal; // Always create new style.\n\n textContent.useStyle(normalStyle);\n textContent.dirty();\n\n if (opt.enableTextSetter) {\n labelInner(textContent).setLabelText = function (interpolatedValue) {\n var labelStatesTexts = getLabelText(opt, labelStatesModels, interpolatedValue);\n setLabelText(textContent, labelStatesTexts);\n };\n }\n } else if (textContent) {\n // Not display rich text.\n textContent.ignore = true;\n }\n\n targetEl.dirty();\n}\n\nexport { setLabelStyle };\nexport function getLabelStatesModels(itemModel, labelName) {\n labelName = labelName || 'label';\n var statesModels = {\n normal: itemModel.getModel(labelName)\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelName]);\n }\n\n return statesModels;\n}\n/**\n * Set basic textStyle properties.\n */\n\nexport function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.\nopt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.\n) {\n var textStyle = {};\n setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n specifiedTextStyle && extend(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n\n return textStyle;\n}\nexport function createTextConfig(textStyleModel, opt, isNotNormal) {\n opt = opt || {};\n var textConfig = {};\n var labelPosition;\n var labelRotate = textStyleModel.getShallow('rotate');\n var labelDistance = retrieve2(textStyleModel.getShallow('distance'), isNotNormal ? null : 5);\n var labelOffset = textStyleModel.getShallow('offset');\n labelPosition = textStyleModel.getShallow('position') || (isNotNormal ? null : 'inside'); // 'outside' is not a valid zr textPostion value, but used\n // in bar series, and magric type should be considered.\n\n labelPosition === 'outside' && (labelPosition = opt.defaultOutsidePosition || 'top');\n\n if (labelPosition != null) {\n textConfig.position = labelPosition;\n }\n\n if (labelOffset != null) {\n textConfig.offset = labelOffset;\n }\n\n if (labelRotate != null) {\n labelRotate *= Math.PI / 180;\n textConfig.rotation = labelRotate;\n }\n\n if (labelDistance != null) {\n textConfig.distance = labelDistance;\n } // fill and auto is determined by the color of path fill if it's not specified by developers.\n\n\n textConfig.outsideFill = textStyleModel.get('color') === 'inherit' ? opt.inheritColor || null : 'auto';\n return textConfig;\n}\n/**\n * The uniform entry of set text style, that is, retrieve style definitions\n * from `model` and set to `textStyle` object.\n *\n * Never in merge mode, but in overwrite mode, that is, all of the text style\n * properties will be set. (Consider the states of normal and emphasis and\n * default value can be adopted, merge would make the logic too complicated\n * to manage.)\n */\n\nfunction setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) {\n // Consider there will be abnormal when merge hover style to normal style if given default value.\n opt = opt || EMPTY_OBJ;\n var ecModel = textStyleModel.ecModel;\n var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case:\n // {\n // data: [{\n // value: 12,\n // label: {\n // rich: {\n // // no 'a' here but using parent 'a'.\n // }\n // }\n // }],\n // rich: {\n // a: { ... }\n // }\n // }\n\n var richItemNames = getRichItemNames(textStyleModel);\n var richResult;\n\n if (richItemNames) {\n richResult = {};\n\n for (var name_1 in richItemNames) {\n if (richItemNames.hasOwnProperty(name_1)) {\n // Cascade is supported in rich.\n var richTextStyle = textStyleModel.getModel(['rich', name_1]); // In rich, never `disableBox`.\n // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n // the default color `'blue'` will not be adopted if no color declared in `rich`.\n // That might confuses users. So probably we should put `textStyleModel` as the\n // root ancestor of the `richTextStyle`. But that would be a break change.\n\n setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true);\n }\n }\n }\n\n if (richResult) {\n textStyle.rich = richResult;\n }\n\n var overflow = textStyleModel.get('overflow');\n\n if (overflow) {\n textStyle.overflow = overflow;\n }\n\n var margin = textStyleModel.get('minMargin');\n\n if (margin != null) {\n textStyle.margin = margin;\n }\n\n setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n} // Consider case:\n// {\n// data: [{\n// value: 12,\n// label: {\n// rich: {\n// // no 'a' here but using parent 'a'.\n// }\n// }\n// }],\n// rich: {\n// a: { ... }\n// }\n// }\n// TODO TextStyleModel\n\n\nfunction getRichItemNames(textStyleModel) {\n // Use object to remove duplicated names.\n var richItemNameMap;\n\n while (textStyleModel && textStyleModel !== textStyleModel.ecModel) {\n var rich = (textStyleModel.option || EMPTY_OBJ).rich;\n\n if (rich) {\n richItemNameMap = richItemNameMap || {};\n var richKeys = keys(rich);\n\n for (var i = 0; i < richKeys.length; i++) {\n var richKey = richKeys[i];\n richItemNameMap[richKey] = 1;\n }\n }\n\n textStyleModel = textStyleModel.parentModel;\n }\n\n return richItemNameMap;\n}\n\nvar TEXT_PROPS_WITH_GLOBAL = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY'];\nvar TEXT_PROPS_SELF = ['align', 'lineHeight', 'width', 'height', 'tag', 'verticalAlign'];\nvar TEXT_PROPS_BOX = ['padding', 'borderWidth', 'borderRadius', 'borderDashOffset', 'backgroundColor', 'borderColor', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];\n\nfunction setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, isBlock, inRich) {\n // In merge mode, default value should not be given.\n globalTextStyle = !isNotNormal && globalTextStyle || EMPTY_OBJ;\n var inheritColor = opt && opt.inheritColor;\n var fillColor = textStyleModel.getShallow('color');\n var strokeColor = textStyleModel.getShallow('textBorderColor');\n var opacity = retrieve2(textStyleModel.getShallow('opacity'), globalTextStyle.opacity);\n\n if (fillColor === 'inherit' || fillColor === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n if (fillColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n\n if (inheritColor) {\n fillColor = inheritColor;\n } else {\n fillColor = null;\n }\n }\n\n if (strokeColor === 'inherit' || strokeColor === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n if (strokeColor === 'auto') {\n deprecateReplaceLog('color: \\'auto\\'', 'color: \\'inherit\\'');\n }\n }\n\n if (inheritColor) {\n strokeColor = inheritColor;\n } else {\n strokeColor = null;\n }\n }\n\n if (!isAttached) {\n // Only use default global textStyle.color if text is individual.\n // Otherwise it will use the strategy of attached text color because text may be on a path.\n fillColor = fillColor || globalTextStyle.color;\n strokeColor = strokeColor || globalTextStyle.textBorderColor;\n }\n\n if (fillColor != null) {\n textStyle.fill = fillColor;\n }\n\n if (strokeColor != null) {\n textStyle.stroke = strokeColor;\n }\n\n var textBorderWidth = retrieve2(textStyleModel.getShallow('textBorderWidth'), globalTextStyle.textBorderWidth);\n\n if (textBorderWidth != null) {\n textStyle.lineWidth = textBorderWidth;\n }\n\n var textBorderType = retrieve2(textStyleModel.getShallow('textBorderType'), globalTextStyle.textBorderType);\n\n if (textBorderType != null) {\n textStyle.lineDash = textBorderType;\n }\n\n var textBorderDashOffset = retrieve2(textStyleModel.getShallow('textBorderDashOffset'), globalTextStyle.textBorderDashOffset);\n\n if (textBorderDashOffset != null) {\n textStyle.lineDashOffset = textBorderDashOffset;\n }\n\n if (!isNotNormal && opacity == null && !inRich) {\n opacity = opt && opt.defaultOpacity;\n }\n\n if (opacity != null) {\n textStyle.opacity = opacity;\n } // TODO\n\n\n if (!isNotNormal && !isAttached) {\n // Set default finally.\n if (textStyle.fill == null && opt.inheritColor) {\n textStyle.fill = opt.inheritColor;\n }\n } // Do not use `getFont` here, because merge should be supported, where\n // part of these properties may be changed in emphasis style, and the\n // others should remain their original value got from normal style.\n\n\n for (var i = 0; i < TEXT_PROPS_WITH_GLOBAL.length; i++) {\n var key = TEXT_PROPS_WITH_GLOBAL[i];\n var val = retrieve2(textStyleModel.getShallow(key), globalTextStyle[key]);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n for (var i = 0; i < TEXT_PROPS_SELF.length; i++) {\n var key = TEXT_PROPS_SELF[i];\n var val = textStyleModel.getShallow(key);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n if (textStyle.verticalAlign == null) {\n var baseline = textStyleModel.getShallow('baseline');\n\n if (baseline != null) {\n textStyle.verticalAlign = baseline;\n }\n }\n\n if (!isBlock || !opt.disableBox) {\n for (var i = 0; i < TEXT_PROPS_BOX.length; i++) {\n var key = TEXT_PROPS_BOX[i];\n var val = textStyleModel.getShallow(key);\n\n if (val != null) {\n textStyle[key] = val;\n }\n }\n\n var borderType = textStyleModel.getShallow('borderType');\n\n if (borderType != null) {\n textStyle.borderDash = borderType;\n }\n\n if ((textStyle.backgroundColor === 'auto' || textStyle.backgroundColor === 'inherit') && inheritColor) {\n if (process.env.NODE_ENV !== 'production') {\n if (textStyle.backgroundColor === 'auto') {\n deprecateReplaceLog('backgroundColor: \\'auto\\'', 'backgroundColor: \\'inherit\\'');\n }\n }\n\n textStyle.backgroundColor = inheritColor;\n }\n\n if ((textStyle.borderColor === 'auto' || textStyle.borderColor === 'inherit') && inheritColor) {\n if (process.env.NODE_ENV !== 'production') {\n if (textStyle.borderColor === 'auto') {\n deprecateReplaceLog('borderColor: \\'auto\\'', 'borderColor: \\'inherit\\'');\n }\n }\n\n textStyle.borderColor = inheritColor;\n }\n }\n}\n\nexport function getFont(opt, ecModel) {\n var gTextStyleModel = ecModel && ecModel.getModel('textStyle');\n return trim([// FIXME in node-canvas fontWeight is before fontStyle\n opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '', opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '', (opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px', opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'].join(' '));\n}\nexport var labelInner = makeInner();\nexport function setLabelValueAnimation(label, labelStatesModels, value, getDefaultText) {\n if (!label) {\n return;\n }\n\n var obj = labelInner(label);\n obj.prevValue = obj.value;\n obj.value = value;\n var normalLabelModel = labelStatesModels.normal;\n obj.valueAnimation = normalLabelModel.get('valueAnimation');\n\n if (obj.valueAnimation) {\n obj.precision = normalLabelModel.get('precision');\n obj.defaultInterpolatedText = getDefaultText;\n obj.statesModels = labelStatesModels;\n }\n}\nexport function animateLabelValue(textEl, dataIndex, data, animatableModel, labelFetcher) {\n var labelInnerStore = labelInner(textEl);\n\n if (!labelInnerStore.valueAnimation) {\n return;\n }\n\n var defaultInterpolatedText = labelInnerStore.defaultInterpolatedText; // Consider the case that being animating, do not use the `obj.value`,\n // Otherwise it will jump to the `obj.value` when this new animation started.\n\n var currValue = retrieve2(labelInnerStore.interpolatedValue, labelInnerStore.prevValue);\n var targetValue = labelInnerStore.value;\n\n function during(percent) {\n var interpolated = interpolateRawValues(data, labelInnerStore.precision, currValue, targetValue, percent);\n labelInnerStore.interpolatedValue = percent === 1 ? null : interpolated;\n var labelText = getLabelText({\n labelDataIndex: dataIndex,\n labelFetcher: labelFetcher,\n defaultText: defaultInterpolatedText ? defaultInterpolatedText(interpolated) : interpolated + ''\n }, labelInnerStore.statesModels, interpolated);\n setLabelText(textEl, labelText);\n }\n\n (currValue == null ? initProps : updateProps)(textEl, {}, animatableModel, dataIndex, null, during);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getFont } from '../../label/labelStyle';\nimport ZRText from 'zrender/lib/graphic/Text';\nvar PATH_COLOR = ['textStyle', 'color']; // TODO Performance improvement?\n\nvar tmpRichText = new ZRText();\n\nvar TextStyleMixin =\n/** @class */\nfunction () {\n function TextStyleMixin() {}\n /**\n * Get color property or get color from option.textStyle.color\n */\n // TODO Callback\n\n\n TextStyleMixin.prototype.getTextColor = function (isEmphasis) {\n var ecModel = this.ecModel;\n return this.getShallow('color') || (!isEmphasis && ecModel ? ecModel.get(PATH_COLOR) : null);\n };\n /**\n * Create font string from fontStyle, fontWeight, fontSize, fontFamily\n * @return {string}\n */\n\n\n TextStyleMixin.prototype.getFont = function () {\n return getFont({\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily')\n }, this.ecModel);\n };\n\n TextStyleMixin.prototype.getTextRect = function (text) {\n tmpRichText.useStyle({\n text: text,\n fontStyle: this.getShallow('fontStyle'),\n fontWeight: this.getShallow('fontWeight'),\n fontSize: this.getShallow('fontSize'),\n fontFamily: this.getShallow('fontFamily'),\n verticalAlign: this.getShallow('verticalAlign') || this.getShallow('baseline'),\n padding: this.getShallow('padding'),\n lineHeight: this.getShallow('lineHeight'),\n rich: this.getShallow('rich')\n });\n tmpRichText.update();\n return tmpRichText.getBoundingRect();\n };\n\n return TextStyleMixin;\n}();\n\n;\nexport default TextStyleMixin;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var LINE_STYLE_KEY_MAP = [['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'type'], ['lineDashOffset', 'dashOffset'], ['lineCap', 'cap'], ['lineJoin', 'join'], ['miterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getLineStyle = makeStyleMapper(LINE_STYLE_KEY_MAP);\n\nvar LineStyleMixin =\n/** @class */\nfunction () {\n function LineStyleMixin() {}\n\n LineStyleMixin.prototype.getLineStyle = function (excludes) {\n return getLineStyle(this, excludes);\n };\n\n return LineStyleMixin;\n}();\n\n;\nexport { LineStyleMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport makeStyleMapper from './makeStyleMapper';\nexport var ITEM_STYLE_KEY_MAP = [['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'], ['lineDash', 'borderType'], ['lineDashOffset', 'borderDashOffset'], ['lineCap', 'borderCap'], ['lineJoin', 'borderJoin'], ['miterLimit', 'borderMiterLimit'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n];\nvar getItemStyle = makeStyleMapper(ITEM_STYLE_KEY_MAP);\n\nvar ItemStyleMixin =\n/** @class */\nfunction () {\n function ItemStyleMixin() {}\n\n ItemStyleMixin.prototype.getItemStyle = function (excludes, includes) {\n return getItemStyle(this, excludes, includes);\n };\n\n return ItemStyleMixin;\n}();\n\nexport { ItemStyleMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport env from 'zrender/lib/core/env';\nimport { enableClassExtend, enableClassCheck } from '../util/clazz';\nimport { AreaStyleMixin } from './mixin/areaStyle';\nimport TextStyleMixin from './mixin/textStyle';\nimport { LineStyleMixin } from './mixin/lineStyle';\nimport { ItemStyleMixin } from './mixin/itemStyle';\nimport { mixin, clone, merge } from 'zrender/lib/core/util';\n\nvar Model =\n/** @class */\nfunction () {\n function Model(option, parentModel, ecModel) {\n this.parentModel = parentModel;\n this.ecModel = ecModel;\n this.option = option; // Simple optimization\n // if (this.init) {\n // if (arguments.length <= 4) {\n // this.init(option, parentModel, ecModel, extraOpt);\n // }\n // else {\n // this.init.apply(this, arguments);\n // }\n // }\n }\n\n Model.prototype.init = function (option, parentModel, ecModel) {\n var rest = [];\n\n for (var _i = 3; _i < arguments.length; _i++) {\n rest[_i - 3] = arguments[_i];\n }\n };\n /**\n * Merge the input option to me.\n */\n\n\n Model.prototype.mergeOption = function (option, ecModel) {\n merge(this.option, option, true);\n }; // `path` can be 'xxx.yyy.zzz', so the return value type have to be `ModelOption`\n // TODO: TYPE strict key check?\n // get(path: string | string[], ignoreParent?: boolean): ModelOption;\n\n\n Model.prototype.get = function (path, ignoreParent) {\n if (path == null) {\n return this.option;\n }\n\n return this._doGet(this.parsePath(path), !ignoreParent && this.parentModel);\n };\n\n Model.prototype.getShallow = function (key, ignoreParent) {\n var option = this.option;\n var val = option == null ? option : option[key];\n\n if (val == null && !ignoreParent) {\n var parentModel = this.parentModel;\n\n if (parentModel) {\n // FIXME:TS do not know how to make it works\n val = parentModel.getShallow(key);\n }\n }\n\n return val;\n }; // `path` can be 'xxx.yyy.zzz', so the return value type have to be `Model`\n // getModel(path: string | string[], parentModel?: Model): Model;\n // TODO 'xxx.yyy.zzz' is deprecated\n\n\n Model.prototype.getModel = function (path, parentModel) {\n var hasPath = path != null;\n var pathFinal = hasPath ? this.parsePath(path) : null;\n var obj = hasPath ? this._doGet(pathFinal) : this.option;\n parentModel = parentModel || this.parentModel && this.parentModel.getModel(this.resolveParentPath(pathFinal));\n return new Model(obj, parentModel, this.ecModel);\n };\n /**\n * Squash option stack into one.\n * parentModel will be removed after squashed.\n *\n * NOTE: resolveParentPath will not be applied here for simplicity. DON'T use this function\n * if resolveParentPath is modified.\n *\n * @param deepMerge If do deep merge. Default to be false.\n */\n // squash(\n // deepMerge?: boolean,\n // handleCallback?: (func: () => object) => object\n // ) {\n // const optionStack = [];\n // let model: Model = this;\n // while (model) {\n // if (model.option) {\n // optionStack.push(model.option);\n // }\n // model = model.parentModel;\n // }\n // const newOption = {} as Opt;\n // let option;\n // while (option = optionStack.pop()) { // Top down merge\n // if (isFunction(option) && handleCallback) {\n // option = handleCallback(option);\n // }\n // if (deepMerge) {\n // merge(newOption, option);\n // }\n // else {\n // extend(newOption, option);\n // }\n // }\n // // Remove parentModel\n // this.option = newOption;\n // this.parentModel = null;\n // }\n\n /**\n * If model has option\n */\n\n\n Model.prototype.isEmpty = function () {\n return this.option == null;\n };\n\n Model.prototype.restoreData = function () {}; // Pending\n\n\n Model.prototype.clone = function () {\n var Ctor = this.constructor;\n return new Ctor(clone(this.option));\n }; // setReadOnly(properties): void {\n // clazzUtil.setReadOnly(this, properties);\n // }\n // If path is null/undefined, return null/undefined.\n\n\n Model.prototype.parsePath = function (path) {\n if (typeof path === 'string') {\n return path.split('.');\n }\n\n return path;\n }; // Resolve path for parent. Perhaps useful when parent use a different property.\n // Default to be a identity resolver.\n // Can be modified to a different resolver.\n\n\n Model.prototype.resolveParentPath = function (path) {\n return path;\n }; // FIXME:TS check whether put this method here\n\n\n Model.prototype.isAnimationEnabled = function () {\n if (!env.node && this.option) {\n if (this.option.animation != null) {\n return !!this.option.animation;\n } else if (this.parentModel) {\n return this.parentModel.isAnimationEnabled();\n }\n }\n };\n\n Model.prototype._doGet = function (pathArr, parentModel) {\n var obj = this.option;\n\n if (!pathArr) {\n return obj;\n }\n\n for (var i = 0; i < pathArr.length; i++) {\n // Ignore empty\n if (!pathArr[i]) {\n continue;\n } // obj could be number/string/... (like 0)\n\n\n obj = obj && typeof obj === 'object' ? obj[pathArr[i]] : null;\n\n if (obj == null) {\n break;\n }\n }\n\n if (obj == null && parentModel) {\n obj = parentModel._doGet(this.resolveParentPath(pathArr), parentModel.parentModel);\n }\n\n return obj;\n };\n\n return Model;\n}();\n\n; // Enable Model.extend.\n\nenableClassExtend(Model);\nenableClassCheck(Model);\nmixin(Model, LineStyleMixin);\nmixin(Model, ItemStyleMixin);\nmixin(Model, AreaStyleMixin);\nmixin(Model, TextStyleMixin);\nexport default Model;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseClassType } from './clazz';\nimport { makePrintable } from './log'; // A random offset\n\nvar base = Math.round(Math.random() * 10);\n/**\n * @public\n * @param {string} type\n * @return {string}\n */\n\nexport function getUID(type) {\n // Considering the case of crossing js context,\n // use Math.random to make id as unique as possible.\n return [type || '', base++].join('_');\n}\n/**\n * Implements `SubTypeDefaulterManager` for `target`.\n */\n\nexport function enableSubTypeDefaulter(target) {\n var subTypeDefaulters = {};\n\n target.registerSubTypeDefaulter = function (componentType, defaulter) {\n var componentTypeInfo = parseClassType(componentType);\n subTypeDefaulters[componentTypeInfo.main] = defaulter;\n };\n\n target.determineSubType = function (componentType, option) {\n var type = option.type;\n\n if (!type) {\n var componentTypeMain = parseClassType(componentType).main;\n\n if (target.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {\n type = subTypeDefaulters[componentTypeMain](option);\n }\n }\n\n return type;\n };\n}\n/**\n * Implements `TopologicalTravelable` for `entity`.\n *\n * Topological travel on Activity Network (Activity On Vertices).\n * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].\n * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.\n * If there is circular dependencey, Error will be thrown.\n */\n\nexport function enableTopologicalTravel(entity, dependencyGetter) {\n /**\n * @param targetNameList Target Component type list.\n * Can be ['aa', 'bb', 'aa.xx']\n * @param fullNameList By which we can build dependency graph.\n * @param callback Params: componentType, dependencies.\n * @param context Scope of callback.\n */\n entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) {\n if (!targetNameList.length) {\n return;\n }\n\n var result = makeDepndencyGraph(fullNameList);\n var graph = result.graph;\n var noEntryList = result.noEntryList;\n var targetNameSet = {};\n zrUtil.each(targetNameList, function (name) {\n targetNameSet[name] = true;\n });\n\n while (noEntryList.length) {\n var currComponentType = noEntryList.pop();\n var currVertex = graph[currComponentType];\n var isInTargetNameSet = !!targetNameSet[currComponentType];\n\n if (isInTargetNameSet) {\n callback.call(context, currComponentType, currVertex.originalDeps.slice());\n delete targetNameSet[currComponentType];\n }\n\n zrUtil.each(currVertex.successor, isInTargetNameSet ? removeEdgeAndAdd : removeEdge);\n }\n\n zrUtil.each(targetNameSet, function () {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Circular dependency may exists: ', targetNameSet, targetNameList, fullNameList);\n }\n\n throw new Error(errMsg);\n });\n\n function removeEdge(succComponentType) {\n graph[succComponentType].entryCount--;\n\n if (graph[succComponentType].entryCount === 0) {\n noEntryList.push(succComponentType);\n }\n } // Consider this case: legend depends on series, and we call\n // chart.setOption({series: [...]}), where only series is in option.\n // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will\n // not be called, but only sereis.mergeOption is called. Thus legend\n // have no chance to update its local record about series (like which\n // name of series is available in legend).\n\n\n function removeEdgeAndAdd(succComponentType) {\n targetNameSet[succComponentType] = true;\n removeEdge(succComponentType);\n }\n };\n\n function makeDepndencyGraph(fullNameList) {\n var graph = {};\n var noEntryList = [];\n zrUtil.each(fullNameList, function (name) {\n var thisItem = createDependencyGraphItem(graph, name);\n var originalDeps = thisItem.originalDeps = dependencyGetter(name);\n var availableDeps = getAvailableDependencies(originalDeps, fullNameList);\n thisItem.entryCount = availableDeps.length;\n\n if (thisItem.entryCount === 0) {\n noEntryList.push(name);\n }\n\n zrUtil.each(availableDeps, function (dependentName) {\n if (zrUtil.indexOf(thisItem.predecessor, dependentName) < 0) {\n thisItem.predecessor.push(dependentName);\n }\n\n var thatItem = createDependencyGraphItem(graph, dependentName);\n\n if (zrUtil.indexOf(thatItem.successor, dependentName) < 0) {\n thatItem.successor.push(name);\n }\n });\n });\n return {\n graph: graph,\n noEntryList: noEntryList\n };\n }\n\n function createDependencyGraphItem(graph, name) {\n if (!graph[name]) {\n graph[name] = {\n predecessor: [],\n successor: []\n };\n }\n\n return graph[name];\n }\n\n function getAvailableDependencies(originalDeps, fullNameList) {\n var availableDeps = [];\n zrUtil.each(originalDeps, function (dep) {\n zrUtil.indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);\n });\n return availableDeps;\n }\n}\nexport function inheritDefaultOption(superOption, subOption) {\n // See also `model/Component.ts#getDefaultOption`\n return zrUtil.merge(zrUtil.merge({}, superOption, true), subOption, true);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Language: English.\n */\nexport default {\n time: {\n month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthAbbr: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n dayOfWeek: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayOfWeekAbbr: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n },\n legend: {\n selector: {\n all: 'All',\n inverse: 'Inv'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: 'Box Select',\n polygon: 'Lasso Select',\n lineX: 'Horizontally Select',\n lineY: 'Vertically Select',\n keep: 'Keep Selections',\n clear: 'Clear Selections'\n }\n },\n dataView: {\n title: 'Data View',\n lang: ['Data View', 'Close', 'Refresh']\n },\n dataZoom: {\n title: {\n zoom: 'Zoom',\n back: 'Zoom Reset'\n }\n },\n magicType: {\n title: {\n line: 'Switch to Line Chart',\n bar: 'Switch to Bar Chart',\n stack: 'Stack',\n tiled: 'Tile'\n }\n },\n restore: {\n title: 'Restore'\n },\n saveAsImage: {\n title: 'Save as Image',\n lang: ['Right Click to Save Image']\n }\n },\n series: {\n typeNames: {\n pie: 'Pie chart',\n bar: 'Bar chart',\n line: 'Line chart',\n scatter: 'Scatter plot',\n effectScatter: 'Ripple scatter plot',\n radar: 'Radar chart',\n tree: 'Tree',\n treemap: 'Treemap',\n boxplot: 'Boxplot',\n candlestick: 'Candlestick',\n k: 'K line chart',\n heatmap: 'Heat map',\n map: 'Map',\n parallel: 'Parallel coordinate map',\n lines: 'Line graph',\n graph: 'Relationship graph',\n sankey: 'Sankey diagram',\n funnel: 'Funnel chart',\n gauge: 'Gauge',\n pictorialBar: 'Pictorial bar',\n themeRiver: 'Theme River Map',\n sunburst: 'Sunburst'\n }\n },\n aria: {\n general: {\n withTitle: 'This is a chart about \"{title}\"',\n withoutTitle: 'This is a chart'\n },\n series: {\n single: {\n prefix: '',\n withName: ' with type {seriesType} named {seriesName}.',\n withoutName: ' with type {seriesType}.'\n },\n multiple: {\n prefix: '. It consists of {seriesCount} series count.',\n withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',\n withoutName: ' The {seriesId} series is a {seriesType}.',\n separator: {\n middle: '',\n end: ''\n }\n }\n },\n data: {\n allData: 'The data is as follows: ',\n partialData: 'The first {displayCnt} items are: ',\n withName: 'the data for {name} is {value}',\n withoutName: '{value}',\n separator: {\n middle: ', ',\n end: '. '\n }\n }\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\nexport default {\n time: {\n month: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],\n monthAbbr: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],\n dayOfWeek: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],\n dayOfWeekAbbr: ['日', '一', '二', '三', '四', '五', '六']\n },\n legend: {\n selector: {\n all: '全选',\n inverse: '反选'\n }\n },\n toolbox: {\n brush: {\n title: {\n rect: '矩形选择',\n polygon: '圈选',\n lineX: '横向选择',\n lineY: '纵向选择',\n keep: '保持选择',\n clear: '清除选择'\n }\n },\n dataView: {\n title: '数据视图',\n lang: ['数据视图', '关闭', '刷新']\n },\n dataZoom: {\n title: {\n zoom: '区域缩放',\n back: '区域缩放还原'\n }\n },\n magicType: {\n title: {\n line: '切换为折线图',\n bar: '切换为柱状图',\n stack: '切换为堆叠',\n tiled: '切换为平铺'\n }\n },\n restore: {\n title: '还原'\n },\n saveAsImage: {\n title: '保存为图片',\n lang: ['右键另存为图片']\n }\n },\n series: {\n typeNames: {\n pie: '饼图',\n bar: '柱状图',\n line: '折线图',\n scatter: '散点图',\n effectScatter: '涟漪散点图',\n radar: '雷达图',\n tree: '树图',\n treemap: '矩形树图',\n boxplot: '箱型图',\n candlestick: 'K线图',\n k: 'K线图',\n heatmap: '热力图',\n map: '地图',\n parallel: '平行坐标图',\n lines: '线图',\n graph: '关系图',\n sankey: '桑基图',\n funnel: '漏斗图',\n gauge: '仪表盘图',\n pictorialBar: '象形柱图',\n themeRiver: '主题河流图',\n sunburst: '旭日图'\n }\n },\n aria: {\n general: {\n withTitle: '这是一个关于“{title}”的图表。',\n withoutTitle: '这是一个图表,'\n },\n series: {\n single: {\n prefix: '',\n withName: '图表类型是{seriesType},表示{seriesName}。',\n withoutName: '图表类型是{seriesType}。'\n },\n multiple: {\n prefix: '它由{seriesCount}个图表系列组成。',\n withName: '第{seriesId}个系列是一个表示{seriesName}的{seriesType},',\n withoutName: '第{seriesId}个系列是一个{seriesType},',\n separator: {\n middle: ';',\n end: '。'\n }\n }\n },\n data: {\n allData: '其数据是——',\n partialData: '其中,前{displayCnt}项是——',\n withName: '{name}的数据是{value}',\n withoutName: '{value}',\n separator: {\n middle: ',',\n end: ''\n }\n }\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Model from '../model/Model';\nimport env from 'zrender/lib/core/env'; // default import ZH and EN lang\n\nimport langEN from '../i18n/langEN';\nimport langZH from '../i18n/langZH';\nimport { isString, clone, merge } from 'zrender/lib/core/util';\nvar LOCALE_ZH = 'ZH';\nvar LOCALE_EN = 'EN';\nvar DEFAULT_LOCALE = LOCALE_EN;\nvar localeStorage = {};\nvar localeModels = {};\nexport var SYSTEM_LANG = !env.domSupported ? DEFAULT_LOCALE : function () {\n var langStr = (\n /* eslint-disable-next-line */\n document.documentElement.lang || navigator.language || navigator.browserLanguage).toUpperCase();\n return langStr.indexOf(LOCALE_ZH) > -1 ? LOCALE_ZH : DEFAULT_LOCALE;\n}();\nexport function registerLocale(locale, localeObj) {\n locale = locale.toUpperCase();\n localeModels[locale] = new Model(localeObj);\n localeStorage[locale] = localeObj;\n} // export function getLocale(locale: string) {\n// return localeStorage[locale];\n// }\n\nexport function createLocaleObject(locale) {\n if (isString(locale)) {\n var localeObj = localeStorage[locale.toUpperCase()] || {};\n\n if (locale === LOCALE_ZH || locale === LOCALE_EN) {\n return clone(localeObj);\n } else {\n return merge(clone(localeObj), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n } else {\n return merge(clone(locale), clone(localeStorage[DEFAULT_LOCALE]), false);\n }\n}\nexport function getLocaleModel(lang) {\n return localeModels[lang];\n}\nexport function getDefaultLocaleModel() {\n return localeModels[DEFAULT_LOCALE];\n} // Default locale\n\nregisterLocale(LOCALE_EN, langEN);\nregisterLocale(LOCALE_ZH, langZH);","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from './number';\nimport { getDefaultLocaleModel, getLocaleModel, SYSTEM_LANG } from '../core/locale';\nimport Model from '../model/Model';\nexport var ONE_SECOND = 1000;\nexport var ONE_MINUTE = ONE_SECOND * 60;\nexport var ONE_HOUR = ONE_MINUTE * 60;\nexport var ONE_DAY = ONE_HOUR * 24;\nexport var ONE_YEAR = ONE_DAY * 365;\nexport var defaultLeveledFormatter = {\n year: '{yyyy}',\n month: '{MMM}',\n day: '{d}',\n hour: '{HH}:{mm}',\n minute: '{HH}:{mm}',\n second: '{HH}:{mm}:{ss}',\n millisecond: '{hh}:{mm}:{ss} {SSS}',\n none: '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}'\n};\nvar fullDayFormatter = '{yyyy}-{MM}-{dd}';\nexport var fullLeveledFormatter = {\n year: '{yyyy}',\n month: '{yyyy}-{MM}',\n day: fullDayFormatter,\n hour: fullDayFormatter + ' ' + defaultLeveledFormatter.hour,\n minute: fullDayFormatter + ' ' + defaultLeveledFormatter.minute,\n second: fullDayFormatter + ' ' + defaultLeveledFormatter.second,\n millisecond: defaultLeveledFormatter.none\n};\nexport var primaryTimeUnits = ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond'];\nexport var timeUnits = ['year', 'half-year', 'quarter', 'month', 'week', 'half-week', 'day', 'half-day', 'quarter-day', 'hour', 'minute', 'second', 'millisecond'];\nexport function pad(str, len) {\n str += '';\n return '0000'.substr(0, len - str.length) + str;\n}\nexport function getPrimaryTimeUnit(timeUnit) {\n switch (timeUnit) {\n case 'half-year':\n case 'quarter':\n return 'month';\n\n case 'week':\n case 'half-week':\n return 'day';\n\n case 'half-day':\n case 'quarter-day':\n return 'hour';\n\n default:\n // year, minutes, second, milliseconds\n return timeUnit;\n }\n}\nexport function isPrimaryTimeUnit(timeUnit) {\n return timeUnit === getPrimaryTimeUnit(timeUnit);\n}\nexport function getDefaultFormatPrecisionOfInterval(timeUnit) {\n switch (timeUnit) {\n case 'year':\n case 'month':\n return 'day';\n\n case 'millisecond':\n return 'millisecond';\n\n default:\n // Also for day, hour, minute, second\n return 'second';\n }\n}\nexport function format( // Note: The result based on `isUTC` are totally different, which can not be just simply\n// substituted by the result without `isUTC`. So we make the param `isUTC` mandatory.\ntime, template, isUTC, lang) {\n var date = numberUtil.parseDate(time);\n var y = date[fullYearGetterName(isUTC)]();\n var M = date[monthGetterName(isUTC)]() + 1;\n var q = Math.floor((M - 1) / 4) + 1;\n var d = date[dateGetterName(isUTC)]();\n var e = date['get' + (isUTC ? 'UTC' : '') + 'Day']();\n var H = date[hoursGetterName(isUTC)]();\n var h = (H - 1) % 12 + 1;\n var m = date[minutesGetterName(isUTC)]();\n var s = date[secondsGetterName(isUTC)]();\n var S = date[millisecondsGetterName(isUTC)]();\n var localeModel = lang instanceof Model ? lang : getLocaleModel(lang || SYSTEM_LANG) || getDefaultLocaleModel();\n var timeModel = localeModel.getModel('time');\n var month = timeModel.get('month');\n var monthAbbr = timeModel.get('monthAbbr');\n var dayOfWeek = timeModel.get('dayOfWeek');\n var dayOfWeekAbbr = timeModel.get('dayOfWeekAbbr');\n return (template || '').replace(/{yyyy}/g, y + '').replace(/{yy}/g, y % 100 + '').replace(/{Q}/g, q + '').replace(/{MMMM}/g, month[M - 1]).replace(/{MMM}/g, monthAbbr[M - 1]).replace(/{MM}/g, pad(M, 2)).replace(/{M}/g, M + '').replace(/{dd}/g, pad(d, 2)).replace(/{d}/g, d + '').replace(/{eeee}/g, dayOfWeek[e]).replace(/{ee}/g, dayOfWeekAbbr[e]).replace(/{e}/g, e + '').replace(/{HH}/g, pad(H, 2)).replace(/{H}/g, H + '').replace(/{hh}/g, pad(h + '', 2)).replace(/{h}/g, h + '').replace(/{mm}/g, pad(m, 2)).replace(/{m}/g, m + '').replace(/{ss}/g, pad(s, 2)).replace(/{s}/g, s + '').replace(/{SSS}/g, pad(S, 3)).replace(/{S}/g, S + '');\n}\nexport function leveledFormat(tick, idx, formatter, lang, isUTC) {\n var template = null;\n\n if (typeof formatter === 'string') {\n // Single formatter for all units at all levels\n template = formatter;\n } else if (typeof formatter === 'function') {\n // Callback formatter\n template = formatter(tick.value, idx, {\n level: tick.level\n });\n } else {\n var defaults = zrUtil.extend({}, defaultLeveledFormatter);\n\n if (tick.level > 0) {\n for (var i = 0; i < primaryTimeUnits.length; ++i) {\n defaults[primaryTimeUnits[i]] = \"{primary|\" + defaults[primaryTimeUnits[i]] + \"}\";\n }\n }\n\n var mergedFormatter = formatter ? formatter.inherit === false ? formatter // Use formatter with bigger units\n : zrUtil.defaults(formatter, defaults) : defaults;\n var unit = getUnitFromValue(tick.value, isUTC);\n\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n } else if (mergedFormatter.inherit) {\n // Unit formatter is not defined and should inherit from bigger units\n var targetId = timeUnits.indexOf(unit);\n\n for (var i = targetId - 1; i >= 0; --i) {\n if (mergedFormatter[unit]) {\n template = mergedFormatter[unit];\n break;\n }\n }\n\n template = template || defaults.none;\n }\n\n if (zrUtil.isArray(template)) {\n var levelId = tick.level == null ? 0 : tick.level >= 0 ? tick.level : template.length + tick.level;\n levelId = Math.min(levelId, template.length - 1);\n template = template[levelId];\n }\n }\n\n return format(new Date(tick.value), template, isUTC, lang);\n}\nexport function getUnitFromValue(value, isUTC) {\n var date = numberUtil.parseDate(value);\n var M = date[monthGetterName(isUTC)]() + 1;\n var d = date[dateGetterName(isUTC)]();\n var h = date[hoursGetterName(isUTC)]();\n var m = date[minutesGetterName(isUTC)]();\n var s = date[secondsGetterName(isUTC)]();\n var S = date[millisecondsGetterName(isUTC)]();\n var isSecond = S === 0;\n var isMinute = isSecond && s === 0;\n var isHour = isMinute && m === 0;\n var isDay = isHour && h === 0;\n var isMonth = isDay && d === 1;\n var isYear = isMonth && M === 1;\n\n if (isYear) {\n return 'year';\n } else if (isMonth) {\n return 'month';\n } else if (isDay) {\n return 'day';\n } else if (isHour) {\n return 'hour';\n } else if (isMinute) {\n return 'minute';\n } else if (isSecond) {\n return 'second';\n } else {\n return 'millisecond';\n }\n}\nexport function getUnitValue(value, unit, isUTC) {\n var date = typeof value === 'number' ? numberUtil.parseDate(value) : value;\n unit = unit || getUnitFromValue(value, isUTC);\n\n switch (unit) {\n case 'year':\n return date[fullYearGetterName(isUTC)]();\n\n case 'half-year':\n return date[monthGetterName(isUTC)]() >= 6 ? 1 : 0;\n\n case 'quarter':\n return Math.floor((date[monthGetterName(isUTC)]() + 1) / 4);\n\n case 'month':\n return date[monthGetterName(isUTC)]();\n\n case 'day':\n return date[dateGetterName(isUTC)]();\n\n case 'half-day':\n return date[hoursGetterName(isUTC)]() / 24;\n\n case 'hour':\n return date[hoursGetterName(isUTC)]();\n\n case 'minute':\n return date[minutesGetterName(isUTC)]();\n\n case 'second':\n return date[secondsGetterName(isUTC)]();\n\n case 'millisecond':\n return date[millisecondsGetterName(isUTC)]();\n }\n}\nexport function fullYearGetterName(isUTC) {\n return isUTC ? 'getUTCFullYear' : 'getFullYear';\n}\nexport function monthGetterName(isUTC) {\n return isUTC ? 'getUTCMonth' : 'getMonth';\n}\nexport function dateGetterName(isUTC) {\n return isUTC ? 'getUTCDate' : 'getDate';\n}\nexport function hoursGetterName(isUTC) {\n return isUTC ? 'getUTCHours' : 'getHours';\n}\nexport function minutesGetterName(isUTC) {\n return isUTC ? 'getUTCMinutes' : 'getMinutes';\n}\nexport function secondsGetterName(isUTC) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\nexport function millisecondsGetterName(isUTC) {\n return isUTC ? 'getUTCSeconds' : 'getSeconds';\n}\nexport function fullYearSetterName(isUTC) {\n return isUTC ? 'setUTCFullYear' : 'setFullYear';\n}\nexport function monthSetterName(isUTC) {\n return isUTC ? 'setUTCMonth' : 'setMonth';\n}\nexport function dateSetterName(isUTC) {\n return isUTC ? 'setUTCDate' : 'setDate';\n}\nexport function hoursSetterName(isUTC) {\n return isUTC ? 'setUTCHours' : 'setHours';\n}\nexport function minutesSetterName(isUTC) {\n return isUTC ? 'setUTCMinutes' : 'setMinutes';\n}\nexport function secondsSetterName(isUTC) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}\nexport function millisecondsSetterName(isUTC) {\n return isUTC ? 'setUTCSeconds' : 'setSeconds';\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Text } from '../util/graphic';\nimport { deprecateLog } from '../util/log';\nexport function getTextRect(text, font, align, verticalAlign, padding, rich, truncate, lineHeight) {\n deprecateLog('getTextRect is deprecated.');\n var textEl = new Text({\n style: {\n text: text,\n font: font,\n align: align,\n verticalAlign: verticalAlign,\n padding: padding,\n rich: rich,\n overflow: truncate ? 'truncate' : null,\n lineHeight: lineHeight\n }\n });\n return textEl.getBoundingRect();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseDate, isNumeric, numericToNumber } from './number';\nimport { format as timeFormat, pad } from './time';\nimport { deprecateReplaceLog } from './log';\n/**\n * Add a comma each three digit.\n */\n\nexport function addCommas(x) {\n if (!isNumeric(x)) {\n return zrUtil.isString(x) ? x : '-';\n }\n\n var parts = (x + '').split('.');\n return parts[0].replace(/(\\d{1,3})(?=(?:\\d{3})+(?!\\d))/g, '$1,') + (parts.length > 1 ? '.' + parts[1] : '');\n}\nexport function toCamelCase(str, upperCaseFirst) {\n str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {\n return group1.toUpperCase();\n });\n\n if (upperCaseFirst && str) {\n str = str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n return str;\n}\nexport var normalizeCssArray = zrUtil.normalizeCssArray;\nvar replaceReg = /([&<>\"'])/g;\nvar replaceMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n};\nexport function encodeHTML(source) {\n return source == null ? '' : (source + '').replace(replaceReg, function (str, c) {\n return replaceMap[c];\n });\n}\n/**\n * Make value user readable for tooltip and label.\n * \"User readable\":\n * Try to not print programmer-specific text like NaN, Infinity, null, undefined.\n * Avoid to display an empty string, which users can not recognize there is\n * a value and it might look like a bug.\n */\n\nexport function makeValueReadable(value, valueType, useUTC) {\n var USER_READABLE_DEFUALT_TIME_PATTERN = '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';\n\n function stringToUserReadable(str) {\n return str && zrUtil.trim(str) ? str : '-';\n }\n\n function isNumberUserReadable(num) {\n return !!(num != null && !isNaN(num) && isFinite(num));\n }\n\n var isTypeTime = valueType === 'time';\n var isValueDate = value instanceof Date;\n\n if (isTypeTime || isValueDate) {\n var date = isTypeTime ? parseDate(value) : value;\n\n if (!isNaN(+date)) {\n return timeFormat(date, USER_READABLE_DEFUALT_TIME_PATTERN, useUTC);\n } else if (isValueDate) {\n return '-';\n } // In other cases, continue to try to display the value in the following code.\n\n }\n\n if (valueType === 'ordinal') {\n return zrUtil.isStringSafe(value) ? stringToUserReadable(value) : zrUtil.isNumber(value) ? isNumberUserReadable(value) ? value + '' : '-' : '-';\n } // By default.\n\n\n var numericResult = numericToNumber(value);\n return isNumberUserReadable(numericResult) ? addCommas(numericResult) : zrUtil.isStringSafe(value) ? stringToUserReadable(value) : '-';\n}\nvar TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];\n\nvar wrapVar = function (varName, seriesIdx) {\n return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';\n};\n/**\n * Template formatter\n * @param {Array.|Object} paramsList\n */\n\n\nexport function formatTpl(tpl, paramsList, encode) {\n if (!zrUtil.isArray(paramsList)) {\n paramsList = [paramsList];\n }\n\n var seriesLen = paramsList.length;\n\n if (!seriesLen) {\n return '';\n }\n\n var $vars = paramsList[0].$vars || [];\n\n for (var i = 0; i < $vars.length; i++) {\n var alias = TPL_VAR_ALIAS[i];\n tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));\n }\n\n for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {\n for (var k = 0; k < $vars.length; k++) {\n var val = paramsList[seriesIdx][$vars[k]];\n tpl = tpl.replace(wrapVar(TPL_VAR_ALIAS[k], seriesIdx), encode ? encodeHTML(val) : val);\n }\n }\n\n return tpl;\n}\n/**\n * simple Template formatter\n */\n\nexport function formatTplSimple(tpl, param, encode) {\n zrUtil.each(param, function (value, key) {\n tpl = tpl.replace('{' + key + '}', encode ? encodeHTML(value) : value);\n });\n return tpl;\n}\nexport function getTooltipMarker(inOpt, extraCssText) {\n var opt = zrUtil.isString(inOpt) ? {\n color: inOpt,\n extraCssText: extraCssText\n } : inOpt || {};\n var color = opt.color;\n var type = opt.type;\n extraCssText = opt.extraCssText;\n var renderMode = opt.renderMode || 'html';\n\n if (!color) {\n return '';\n }\n\n if (renderMode === 'html') {\n return type === 'subItem' ? '' : '';\n } else {\n // Should better not to auto generate style name by auto-increment number here.\n // Because this util is usually called in tooltip formatter, which is probably\n // called repeatly when mouse move and the auto-increment number increases fast.\n // Users can make their own style name by theirselves, make it unique and readable.\n var markerId = opt.markerId || 'markerX';\n return {\n renderMode: renderMode,\n content: '{' + markerId + '|} ',\n style: type === 'subItem' ? {\n width: 4,\n height: 4,\n borderRadius: 2,\n backgroundColor: color\n } : {\n width: 10,\n height: 10,\n borderRadius: 5,\n backgroundColor: color\n }\n };\n }\n}\n/**\n * @deprecated Use `time/format` instead.\n * ISO Date format\n * @param {string} tpl\n * @param {number} value\n * @param {boolean} [isUTC=false] Default in local time.\n * see `module:echarts/scale/Time`\n * and `module:echarts/util/number#parseDate`.\n * @inner\n */\n\nexport function formatTime(tpl, value, isUTC) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('echarts.format.formatTime', 'echarts.time.format');\n }\n\n if (tpl === 'week' || tpl === 'month' || tpl === 'quarter' || tpl === 'half-year' || tpl === 'year') {\n tpl = 'MM-dd\\nyyyy';\n }\n\n var date = parseDate(value);\n var utc = isUTC ? 'UTC' : '';\n var y = date['get' + utc + 'FullYear']();\n var M = date['get' + utc + 'Month']() + 1;\n var d = date['get' + utc + 'Date']();\n var h = date['get' + utc + 'Hours']();\n var m = date['get' + utc + 'Minutes']();\n var s = date['get' + utc + 'Seconds']();\n var S = date['get' + utc + 'Milliseconds']();\n tpl = tpl.replace('MM', pad(M, 2)).replace('M', M).replace('yyyy', y).replace('yy', y % 100 + '').replace('dd', pad(d, 2)).replace('d', d).replace('hh', pad(h, 2)).replace('h', h).replace('mm', pad(m, 2)).replace('m', m).replace('ss', pad(s, 2)).replace('s', s).replace('SSS', pad(S, 3));\n return tpl;\n}\n/**\n * Capital first\n * @param {string} str\n * @return {string}\n */\n\nexport function capitalFirst(str) {\n return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;\n}\n/**\n * @return Never be null/undefined.\n */\n\nexport function convertToColorString(color, defaultColor) {\n defaultColor = defaultColor || 'transparent';\n return zrUtil.isString(color) ? color : zrUtil.isObject(color) ? color.colorStops && (color.colorStops[0] || {}).color || defaultColor : defaultColor;\n}\nexport { truncateText } from 'zrender/lib/graphic/helper/parseText';\n/**\n * open new tab\n * @param link url\n * @param target blank or self\n */\n\nexport function windowOpen(link, target) {\n /* global window */\n if (target === '_blank' || target === 'blank') {\n var blank = window.open();\n blank.opener = null;\n blank.location.href = link;\n } else {\n window.open(link, target);\n }\n}\nexport { getTextRect } from '../legacy/getTextRect';","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Layout helpers for each component positioning\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parsePercent } from './number';\nimport * as formatUtil from './format';\nvar each = zrUtil.each;\n/**\n * @public\n */\n\nexport var LOCATION_PARAMS = ['left', 'right', 'top', 'bottom', 'width', 'height'];\n/**\n * @public\n */\n\nexport var HV_NAMES = [['width', 'left', 'right'], ['height', 'top', 'bottom']];\n\nfunction boxLayout(orient, group, gap, maxWidth, maxHeight) {\n var x = 0;\n var y = 0;\n\n if (maxWidth == null) {\n maxWidth = Infinity;\n }\n\n if (maxHeight == null) {\n maxHeight = Infinity;\n }\n\n var currentLineMaxSize = 0;\n group.eachChild(function (child, idx) {\n var rect = child.getBoundingRect();\n var nextChild = group.childAt(idx + 1);\n var nextChildRect = nextChild && nextChild.getBoundingRect();\n var nextX;\n var nextY;\n\n if (orient === 'horizontal') {\n var moveX = rect.width + (nextChildRect ? -nextChildRect.x + rect.x : 0);\n nextX = x + moveX; // Wrap when width exceeds maxWidth or meet a `newline` group\n // FIXME compare before adding gap?\n\n if (nextX > maxWidth || child.newline) {\n x = 0;\n nextX = moveX;\n y += currentLineMaxSize + gap;\n currentLineMaxSize = rect.height;\n } else {\n // FIXME: consider rect.y is not `0`?\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);\n }\n } else {\n var moveY = rect.height + (nextChildRect ? -nextChildRect.y + rect.y : 0);\n nextY = y + moveY; // Wrap when width exceeds maxHeight or meet a `newline` group\n\n if (nextY > maxHeight || child.newline) {\n x += currentLineMaxSize + gap;\n y = 0;\n nextY = moveY;\n currentLineMaxSize = rect.width;\n } else {\n currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);\n }\n }\n\n if (child.newline) {\n return;\n }\n\n child.x = x;\n child.y = y;\n child.markRedraw();\n orient === 'horizontal' ? x = nextX + gap : y = nextY + gap;\n });\n}\n/**\n * VBox or HBox layouting\n * @param {string} orient\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\n\nexport var box = boxLayout;\n/**\n * VBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\nexport var vbox = zrUtil.curry(boxLayout, 'vertical');\n/**\n * HBox layouting\n * @param {module:zrender/graphic/Group} group\n * @param {number} gap\n * @param {number} [width=Infinity]\n * @param {number} [height=Infinity]\n */\n\nexport var hbox = zrUtil.curry(boxLayout, 'horizontal');\n/**\n * If x or x2 is not specified or 'center' 'left' 'right',\n * the width would be as long as possible.\n * If y or y2 is not specified or 'middle' 'top' 'bottom',\n * the height would be as long as possible.\n */\n\nexport function getAvailableSize(positionInfo, containerRect, margin) {\n var containerWidth = containerRect.width;\n var containerHeight = containerRect.height;\n var x = parsePercent(positionInfo.left, containerWidth);\n var y = parsePercent(positionInfo.top, containerHeight);\n var x2 = parsePercent(positionInfo.right, containerWidth);\n var y2 = parsePercent(positionInfo.bottom, containerHeight);\n (isNaN(x) || isNaN(parseFloat(positionInfo.left))) && (x = 0);\n (isNaN(x2) || isNaN(parseFloat(positionInfo.right))) && (x2 = containerWidth);\n (isNaN(y) || isNaN(parseFloat(positionInfo.top))) && (y = 0);\n (isNaN(y2) || isNaN(parseFloat(positionInfo.bottom))) && (y2 = containerHeight);\n margin = formatUtil.normalizeCssArray(margin || 0);\n return {\n width: Math.max(x2 - x - margin[1] - margin[3], 0),\n height: Math.max(y2 - y - margin[0] - margin[2], 0)\n };\n}\n/**\n * Parse position info.\n */\n\nexport function getLayoutRect(positionInfo, containerRect, margin) {\n margin = formatUtil.normalizeCssArray(margin || 0);\n var containerWidth = containerRect.width;\n var containerHeight = containerRect.height;\n var left = parsePercent(positionInfo.left, containerWidth);\n var top = parsePercent(positionInfo.top, containerHeight);\n var right = parsePercent(positionInfo.right, containerWidth);\n var bottom = parsePercent(positionInfo.bottom, containerHeight);\n var width = parsePercent(positionInfo.width, containerWidth);\n var height = parsePercent(positionInfo.height, containerHeight);\n var verticalMargin = margin[2] + margin[0];\n var horizontalMargin = margin[1] + margin[3];\n var aspect = positionInfo.aspect; // If width is not specified, calculate width from left and right\n\n if (isNaN(width)) {\n width = containerWidth - right - horizontalMargin - left;\n }\n\n if (isNaN(height)) {\n height = containerHeight - bottom - verticalMargin - top;\n }\n\n if (aspect != null) {\n // If width and height are not given\n // 1. Graph should not exceeds the container\n // 2. Aspect must be keeped\n // 3. Graph should take the space as more as possible\n // FIXME\n // Margin is not considered, because there is no case that both\n // using margin and aspect so far.\n if (isNaN(width) && isNaN(height)) {\n if (aspect > containerWidth / containerHeight) {\n width = containerWidth * 0.8;\n } else {\n height = containerHeight * 0.8;\n }\n } // Calculate width or height with given aspect\n\n\n if (isNaN(width)) {\n width = aspect * height;\n }\n\n if (isNaN(height)) {\n height = width / aspect;\n }\n } // If left is not specified, calculate left from right and width\n\n\n if (isNaN(left)) {\n left = containerWidth - right - width - horizontalMargin;\n }\n\n if (isNaN(top)) {\n top = containerHeight - bottom - height - verticalMargin;\n } // Align left and top\n\n\n switch (positionInfo.left || positionInfo.right) {\n case 'center':\n left = containerWidth / 2 - width / 2 - margin[3];\n break;\n\n case 'right':\n left = containerWidth - width - horizontalMargin;\n break;\n }\n\n switch (positionInfo.top || positionInfo.bottom) {\n case 'middle':\n case 'center':\n top = containerHeight / 2 - height / 2 - margin[0];\n break;\n\n case 'bottom':\n top = containerHeight - height - verticalMargin;\n break;\n } // If something is wrong and left, top, width, height are calculated as NaN\n\n\n left = left || 0;\n top = top || 0;\n\n if (isNaN(width)) {\n // Width may be NaN if only one value is given except width\n width = containerWidth - horizontalMargin - left - (right || 0);\n }\n\n if (isNaN(height)) {\n // Height may be NaN if only one value is given except height\n height = containerHeight - verticalMargin - top - (bottom || 0);\n }\n\n var rect = new BoundingRect(left + margin[3], top + margin[0], width, height);\n rect.margin = margin;\n return rect;\n}\n/**\n * Position a zr element in viewport\n * Group position is specified by either\n * {left, top}, {right, bottom}\n * If all properties exists, right and bottom will be igonred.\n *\n * Logic:\n * 1. Scale (against origin point in parent coord)\n * 2. Rotate (against origin point in parent coord)\n * 3. Traslate (with el.position by this method)\n * So this method only fixes the last step 'Traslate', which does not affect\n * scaling and rotating.\n *\n * If be called repeatly with the same input el, the same result will be gotten.\n *\n * @param el Should have `getBoundingRect` method.\n * @param positionInfo\n * @param positionInfo.left\n * @param positionInfo.top\n * @param positionInfo.right\n * @param positionInfo.bottom\n * @param positionInfo.width Only for opt.boundingModel: 'raw'\n * @param positionInfo.height Only for opt.boundingModel: 'raw'\n * @param containerRect\n * @param margin\n * @param opt\n * @param opt.hv Only horizontal or only vertical. Default to be [1, 1]\n * @param opt.boundingMode\n * Specify how to calculate boundingRect when locating.\n * 'all': Position the boundingRect that is transformed and uioned\n * both itself and its descendants.\n * This mode simplies confine the elements in the bounding\n * of their container (e.g., using 'right: 0').\n * 'raw': Position the boundingRect that is not transformed and only itself.\n * This mode is useful when you want a element can overflow its\n * container. (Consider a rotated circle needs to be located in a corner.)\n * In this mode positionInfo.width/height can only be number.\n */\n\nexport function positionElement(el, positionInfo, containerRect, margin, opt) {\n var h = !opt || !opt.hv || opt.hv[0];\n var v = !opt || !opt.hv || opt.hv[1];\n var boundingMode = opt && opt.boundingMode || 'all';\n\n if (!h && !v) {\n return;\n }\n\n var rect;\n\n if (boundingMode === 'raw') {\n rect = el.type === 'group' ? new BoundingRect(0, 0, +positionInfo.width || 0, +positionInfo.height || 0) : el.getBoundingRect();\n } else {\n rect = el.getBoundingRect();\n\n if (el.needLocalTransform()) {\n var transform = el.getLocalTransform(); // Notice: raw rect may be inner object of el,\n // which should not be modified.\n\n rect = rect.clone();\n rect.applyTransform(transform);\n }\n } // The real width and height can not be specified but calculated by the given el.\n\n\n var layoutRect = getLayoutRect(zrUtil.defaults({\n width: rect.width,\n height: rect.height\n }, positionInfo), containerRect, margin); // Because 'tranlate' is the last step in transform\n // (see zrender/core/Transformable#getLocalTransform),\n // we can just only modify el.position to get final result.\n\n var dx = h ? layoutRect.x - rect.x : 0;\n var dy = v ? layoutRect.y - rect.y : 0;\n\n if (boundingMode === 'raw') {\n el.x = dx;\n el.y = dy;\n } else {\n el.x += dx;\n el.y += dy;\n }\n\n el.markRedraw();\n}\n/**\n * @param option Contains some of the properties in HV_NAMES.\n * @param hvIdx 0: horizontal; 1: vertical.\n */\n\nexport function sizeCalculable(option, hvIdx) {\n return option[HV_NAMES[hvIdx][0]] != null || option[HV_NAMES[hvIdx][1]] != null && option[HV_NAMES[hvIdx][2]] != null;\n}\nexport function fetchLayoutMode(ins) {\n var layoutMode = ins.layoutMode || ins.constructor.layoutMode;\n return zrUtil.isObject(layoutMode) ? layoutMode : layoutMode ? {\n type: layoutMode\n } : null;\n}\n/**\n * Consider Case:\n * When default option has {left: 0, width: 100}, and we set {right: 0}\n * through setOption or media query, using normal zrUtil.merge will cause\n * {right: 0} does not take effect.\n *\n * @example\n * ComponentModel.extend({\n * init: function () {\n * ...\n * let inputPositionParams = layout.getLayoutParams(option);\n * this.mergeOption(inputPositionParams);\n * },\n * mergeOption: function (newOption) {\n * newOption && zrUtil.merge(thisOption, newOption, true);\n * layout.mergeLayoutParam(thisOption, newOption);\n * }\n * });\n *\n * @param targetOption\n * @param newOption\n * @param opt\n */\n\nexport function mergeLayoutParam(targetOption, newOption, opt) {\n var ignoreSize = opt && opt.ignoreSize;\n !zrUtil.isArray(ignoreSize) && (ignoreSize = [ignoreSize, ignoreSize]);\n var hResult = merge(HV_NAMES[0], 0);\n var vResult = merge(HV_NAMES[1], 1);\n copy(HV_NAMES[0], targetOption, hResult);\n copy(HV_NAMES[1], targetOption, vResult);\n\n function merge(names, hvIdx) {\n var newParams = {};\n var newValueCount = 0;\n var merged = {};\n var mergedValueCount = 0;\n var enoughParamNumber = 2;\n each(names, function (name) {\n merged[name] = targetOption[name];\n });\n each(names, function (name) {\n // Consider case: newOption.width is null, which is\n // set by user for removing width setting.\n hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);\n hasValue(newParams, name) && newValueCount++;\n hasValue(merged, name) && mergedValueCount++;\n });\n\n if (ignoreSize[hvIdx]) {\n // Only one of left/right is premitted to exist.\n if (hasValue(newOption, names[1])) {\n merged[names[2]] = null;\n } else if (hasValue(newOption, names[2])) {\n merged[names[1]] = null;\n }\n\n return merged;\n } // Case: newOption: {width: ..., right: ...},\n // or targetOption: {right: ...} and newOption: {width: ...},\n // There is no conflict when merged only has params count\n // little than enoughParamNumber.\n\n\n if (mergedValueCount === enoughParamNumber || !newValueCount) {\n return merged;\n } // Case: newOption: {width: ..., right: ...},\n // Than we can make sure user only want those two, and ignore\n // all origin params in targetOption.\n else if (newValueCount >= enoughParamNumber) {\n return newParams;\n } else {\n // Chose another param from targetOption by priority.\n for (var i = 0; i < names.length; i++) {\n var name_1 = names[i];\n\n if (!hasProp(newParams, name_1) && hasProp(targetOption, name_1)) {\n newParams[name_1] = targetOption[name_1];\n break;\n }\n }\n\n return newParams;\n }\n }\n\n function hasProp(obj, name) {\n return obj.hasOwnProperty(name);\n }\n\n function hasValue(obj, name) {\n return obj[name] != null && obj[name] !== 'auto';\n }\n\n function copy(names, target, source) {\n each(names, function (name) {\n target[name] = source[name];\n });\n }\n}\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n */\n\nexport function getLayoutParams(source) {\n return copyLayoutParams({}, source);\n}\n/**\n * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.\n * @param {Object} source\n * @return {Object} Result contains those props.\n */\n\nexport function copyLayoutParams(target, source) {\n source && target && each(LOCATION_PARAMS, function (name) {\n source.hasOwnProperty(name) && (target[name] = source[name]);\n });\n return target;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from './Model';\nimport * as componentUtil from '../util/component';\nimport { enableClassManagement, parseClassType, isExtendedClass, mountExtend } from '../util/clazz';\nimport { makeInner, queryReferringComponents } from '../util/model';\nimport * as layout from '../util/layout';\nvar inner = makeInner();\n\nvar ComponentModel =\n/** @class */\nfunction (_super) {\n __extends(ComponentModel, _super);\n\n function ComponentModel(option, parentModel, ecModel) {\n var _this = _super.call(this, option, parentModel, ecModel) || this;\n\n _this.uid = componentUtil.getUID('ec_cpt_model');\n return _this;\n }\n\n ComponentModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n };\n\n ComponentModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = layout.fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? layout.getLayoutParams(option) : {};\n var themeModel = ecModel.getTheme();\n zrUtil.merge(option, themeModel.get(this.mainType));\n zrUtil.merge(option, this.getDefaultOption());\n\n if (layoutMode) {\n layout.mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n ComponentModel.prototype.mergeOption = function (option, ecModel) {\n zrUtil.merge(this.option, option, true);\n var layoutMode = layout.fetchLayoutMode(this);\n\n if (layoutMode) {\n layout.mergeLayoutParam(this.option, option, layoutMode);\n }\n };\n /**\n * Called immediately after `init` or `mergeOption` of this instance called.\n */\n\n\n ComponentModel.prototype.optionUpdated = function (newCptOption, isInit) {};\n /**\n * [How to declare defaultOption]:\n *\n * (A) If using class declaration in typescript (since echarts 5):\n * ```ts\n * import {ComponentOption} from '../model/option';\n * export interface XxxOption extends ComponentOption {\n * aaa: number\n * }\n * export class XxxModel extends Component {\n * static type = 'xxx';\n * static defaultOption: XxxOption = {\n * aaa: 123\n * }\n * }\n * Component.registerClass(XxxModel);\n * ```\n * ```ts\n * import {inheritDefaultOption} from '../util/component';\n * import {XxxModel, XxxOption} from './XxxModel';\n * export interface XxxSubOption extends XxxOption {\n * bbb: number\n * }\n * class XxxSubModel extends XxxModel {\n * static defaultOption: XxxSubOption = inheritDefaultOption(XxxModel.defaultOption, {\n * bbb: 456\n * })\n * fn() {\n * let opt = this.getDefaultOption();\n * // opt is {aaa: 123, bbb: 456}\n * }\n * }\n * ```\n *\n * (B) If using class extend (previous approach in echarts 3 & 4):\n * ```js\n * let XxxComponent = Component.extend({\n * defaultOption: {\n * xx: 123\n * }\n * })\n * ```\n * ```js\n * let XxxSubComponent = XxxComponent.extend({\n * defaultOption: {\n * yy: 456\n * },\n * fn: function () {\n * let opt = this.getDefaultOption();\n * // opt is {xx: 123, yy: 456}\n * }\n * })\n * ```\n */\n\n\n ComponentModel.prototype.getDefaultOption = function () {\n var ctor = this.constructor; // If using class declaration, it is different to travel super class\n // in legacy env and auto merge defaultOption. So if using class\n // declaration, defaultOption should be merged manually.\n\n if (!isExtendedClass(ctor)) {\n // When using ts class, defaultOption must be declared as static.\n return ctor.defaultOption;\n } // FIXME: remove this approach?\n\n\n var fields = inner(this);\n\n if (!fields.defaultOption) {\n var optList = [];\n var clz = ctor;\n\n while (clz) {\n var opt = clz.prototype.defaultOption;\n opt && optList.push(opt);\n clz = clz.superClass;\n }\n\n var defaultOption = {};\n\n for (var i = optList.length - 1; i >= 0; i--) {\n defaultOption = zrUtil.merge(defaultOption, optList[i], true);\n }\n\n fields.defaultOption = defaultOption;\n }\n\n return fields.defaultOption;\n };\n /**\n * Notice: always force to input param `useDefault` in case that forget to consider it.\n * The same behavior as `modelUtil.parseFinder`.\n *\n * @param useDefault In many cases like series refer axis and axis refer grid,\n * If axis index / axis id not specified, use the first target as default.\n * In other cases like dataZoom refer axis, if not specified, measn no refer.\n */\n\n\n ComponentModel.prototype.getReferringComponents = function (mainType, opt) {\n var indexKey = mainType + 'Index';\n var idKey = mainType + 'Id';\n return queryReferringComponents(this.ecModel, mainType, {\n index: this.get(indexKey, true),\n id: this.get(idKey, true)\n }, opt);\n };\n\n ComponentModel.prototype.getBoxLayoutParams = function () {\n // Consider itself having box layout configs.\n var boxLayoutModel = this;\n return {\n left: boxLayoutModel.get('left'),\n top: boxLayoutModel.get('top'),\n right: boxLayoutModel.get('right'),\n bottom: boxLayoutModel.get('bottom'),\n width: boxLayoutModel.get('width'),\n height: boxLayoutModel.get('height')\n };\n };\n\n ComponentModel.protoInitialize = function () {\n var proto = ComponentModel.prototype;\n proto.type = 'component';\n proto.id = '';\n proto.name = '';\n proto.mainType = '';\n proto.subType = '';\n proto.componentIndex = 0;\n }();\n\n return ComponentModel;\n}(Model);\n\nmountExtend(ComponentModel, Model);\nenableClassManagement(ComponentModel);\ncomponentUtil.enableSubTypeDefaulter(ComponentModel);\ncomponentUtil.enableTopologicalTravel(ComponentModel, getDependencies);\n\nfunction getDependencies(componentType) {\n var deps = [];\n zrUtil.each(ComponentModel.getClassesByMainType(componentType), function (clz) {\n deps = deps.concat(clz.dependencies || clz.prototype.dependencies || []);\n }); // Ensure main type.\n\n deps = zrUtil.map(deps, function (type) {\n return parseClassType(type).main;\n }); // Hack dataset for convenience.\n\n if (componentType !== 'dataset' && zrUtil.indexOf(deps, 'dataset') <= 0) {\n deps.unshift('dataset');\n }\n\n return deps;\n}\n\nexport default ComponentModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar platform = ''; // Navigator not exists in node\n\nif (typeof navigator !== 'undefined') {\n /* global navigator */\n platform = navigator.platform || '';\n}\n\nvar decalColor = 'rgba(0, 0, 0, 0.2)';\nexport default {\n darkMode: 'auto',\n // backgroundColor: 'rgba(0,0,0,0)',\n // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization\n // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c', '#dd4444', '#d4df5a', '#cd4870'],\n // Light colors:\n // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'],\n // color: ['#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'],\n // Dark colors:\n // color: [\n // '#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83',\n // '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'\n // ],\n color: [// '#51689b', '#ce5c5c', '#fbc357', '#8fbf8f', '#659d84', '#fb8e6a', '#c77288', '#786090', '#91c4c5', '#6890ba'\n '#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],\n gradientColor: ['#f6efa6', '#d88273', '#bf444c'],\n aria: {\n decal: {\n decals: [{\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [2, 5],\n symbolSize: 1,\n rotation: Math.PI / 6\n }, {\n color: decalColor,\n symbol: 'circle',\n dashArrayX: [[8, 8], [0, 8, 8, 0]],\n dashArrayY: [6, 0],\n symbolSize: 0.8\n }, {\n color: decalColor,\n dashArrayX: [1, 0],\n dashArrayY: [4, 3],\n rotation: -Math.PI / 4\n }, {\n color: decalColor,\n dashArrayX: [[6, 6], [0, 6, 6, 0]],\n dashArrayY: [6, 0]\n }, {\n color: decalColor,\n dashArrayX: [[1, 0], [1, 6]],\n dashArrayY: [1, 0, 6, 0],\n rotation: Math.PI / 4\n }, {\n color: decalColor,\n symbol: 'triangle',\n dashArrayX: [[9, 9], [0, 9, 9, 0]],\n dashArrayY: [7, 2],\n symbolSize: 0.75\n }]\n }\n },\n // If xAxis and yAxis declared, grid is created by default.\n // grid: {},\n textStyle: {\n // color: '#000',\n // decoration: 'none',\n // PENDING\n fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',\n // fontFamily: 'Arial, Verdana, sans-serif',\n fontSize: 12,\n fontStyle: 'normal',\n fontWeight: 'normal'\n },\n // http://blogs.adobe.com/webplatform/2014/02/24/using-blend-modes-in-html-canvas/\n // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation\n // Default is source-over\n blendMode: null,\n stateAnimation: {\n duration: 300,\n easing: 'cubicOut'\n },\n animation: 'auto',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut',\n animationEasingUpdate: 'cubicInOut',\n animationThreshold: 2000,\n // Configuration for progressive/incremental rendering\n progressiveThreshold: 3000,\n progressive: 400,\n // Threshold of if use single hover layer to optimize.\n // It is recommended that `hoverLayerThreshold` is equivalent to or less than\n // `progressiveThreshold`, otherwise hover will cause restart of progressive,\n // which is unexpected.\n // see example .\n hoverLayerThreshold: 3000,\n // See: module:echarts/scale/Time\n useUTC: false\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util';\n;\n;\n;\nexport var VISUAL_DIMENSIONS = createHashMap(['tooltip', 'label', 'itemName', 'itemId', 'seriesName']);\nexport var SOURCE_FORMAT_ORIGINAL = 'original';\nexport var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows';\nexport var SOURCE_FORMAT_OBJECT_ROWS = 'objectRows';\nexport var SOURCE_FORMAT_KEYED_COLUMNS = 'keyedColumns';\nexport var SOURCE_FORMAT_TYPED_ARRAY = 'typedArray';\nexport var SOURCE_FORMAT_UNKNOWN = 'unknown';\nexport var SERIES_LAYOUT_BY_COLUMN = 'column';\nexport var SERIES_LAYOUT_BY_ROW = 'row';\n;\n;\n;\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner, getDataItemValue, queryReferringComponents, SINGLE_REFERRING } from '../../util/model';\nimport { createHashMap, each, isArray, isString, isObject, isTypedArray } from 'zrender/lib/core/util';\nimport { SOURCE_FORMAT_ORIGINAL, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, SERIES_LAYOUT_BY_ROW, SOURCE_FORMAT_KEYED_COLUMNS } from '../../util/types'; // The result of `guessOrdinal`.\n\nexport var BE_ORDINAL = {\n Must: 1,\n Might: 2,\n Not: 3 // Other cases\n\n};\nvar innerGlobalModel = makeInner();\n/**\n * MUST be called before mergeOption of all series.\n */\n\nexport function resetSourceDefaulter(ecModel) {\n // `datasetMap` is used to make default encode.\n innerGlobalModel(ecModel).datasetMap = createHashMap();\n}\n/**\n * [The strategy of the arrengment of data dimensions for dataset]:\n * \"value way\": all axes are non-category axes. So series one by one take\n * several (the number is coordSysDims.length) dimensions from dataset.\n * The result of data arrengment of data dimensions like:\n * | ser0_x | ser0_y | ser1_x | ser1_y | ser2_x | ser2_y |\n * \"category way\": at least one axis is category axis. So the the first data\n * dimension is always mapped to the first category axis and shared by\n * all of the series. The other data dimensions are taken by series like\n * \"value way\" does.\n * The result of data arrengment of data dimensions like:\n * | ser_shared_x | ser0_y | ser1_y | ser2_y |\n *\n * @return encode Never be `null/undefined`.\n */\n\nexport function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {\n var encode = {};\n var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\n if (!datasetModel || !coordDimensions) {\n return encode;\n }\n\n var encodeItemName = [];\n var encodeSeriesName = [];\n var ecModel = seriesModel.ecModel;\n var datasetMap = innerGlobalModel(ecModel).datasetMap;\n var key = datasetModel.uid + '_' + source.seriesLayoutBy;\n var baseCategoryDimIndex;\n var categoryWayValueDimStart;\n coordDimensions = coordDimensions.slice();\n each(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n var coordDimInfo = isObject(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {\n name: coordDimInfoLoose\n };\n\n if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n baseCategoryDimIndex = coordDimIdx;\n categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n }\n\n encode[coordDimInfo.name] = [];\n });\n var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {\n categoryWayDim: categoryWayValueDimStart,\n valueWayDim: 0\n }); // TODO\n // Auto detect first time axis and do arrangement.\n\n each(coordDimensions, function (coordDimInfo, coordDimIdx) {\n var coordDimName = coordDimInfo.name;\n var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way.\n\n if (baseCategoryDimIndex == null) {\n var start = datasetRecord.valueWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.valueWayDim += count; // ??? TODO give a better default series name rule?\n // especially when encode x y specified.\n // consider: when mutiple series share one dimension\n // category axis, series name should better use\n // the other dimsion name. On the other hand, use\n // both dimensions name.\n } // In category way, the first category axis.\n else if (baseCategoryDimIndex === coordDimIdx) {\n pushDim(encode[coordDimName], 0, count);\n pushDim(encodeItemName, 0, count);\n } // In category way, the other axis.\n else {\n var start = datasetRecord.categoryWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.categoryWayDim += count;\n }\n });\n\n function pushDim(dimIdxArr, idxFrom, idxCount) {\n for (var i = 0; i < idxCount; i++) {\n dimIdxArr.push(idxFrom + i);\n }\n }\n\n function getDataDimCountOnCoordDim(coordDimInfo) {\n var dimsDef = coordDimInfo.dimsDef;\n return dimsDef ? dimsDef.length : 1;\n }\n\n encodeItemName.length && (encode.itemName = encodeItemName);\n encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n return encode;\n}\n/**\n * Work for data like [{name: ..., value: ...}, ...].\n *\n * @return encode Never be `null/undefined`.\n */\n\nexport function makeSeriesEncodeForNameBased(seriesModel, source, dimCount) {\n var encode = {};\n var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\n if (!datasetModel) {\n return encode;\n }\n\n var sourceFormat = source.sourceFormat;\n var dimensionsDefine = source.dimensionsDefine;\n var potentialNameDimIndex;\n\n if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS || sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n each(dimensionsDefine, function (dim, idx) {\n if ((isObject(dim) ? dim.name : dim) === 'name') {\n potentialNameDimIndex = idx;\n }\n });\n }\n\n var idxResult = function () {\n var idxRes0 = {};\n var idxRes1 = {};\n var guessRecords = []; // 5 is an experience value.\n\n for (var i = 0, len = Math.min(5, dimCount); i < len; i++) {\n var guessResult = doGuessOrdinal(source.data, sourceFormat, source.seriesLayoutBy, dimensionsDefine, source.startIndex, i);\n guessRecords.push(guessResult);\n var isPureNumber = guessResult === BE_ORDINAL.Not; // [Strategy of idxRes0]: find the first BE_ORDINAL.Not as the value dim,\n // and then find a name dim with the priority:\n // \"BE_ORDINAL.Might|BE_ORDINAL.Must\" > \"other dim\" > \"the value dim itself\".\n\n if (isPureNumber && idxRes0.v == null && i !== potentialNameDimIndex) {\n idxRes0.v = i;\n }\n\n if (idxRes0.n == null || idxRes0.n === idxRes0.v || !isPureNumber && guessRecords[idxRes0.n] === BE_ORDINAL.Not) {\n idxRes0.n = i;\n }\n\n if (fulfilled(idxRes0) && guessRecords[idxRes0.n] !== BE_ORDINAL.Not) {\n return idxRes0;\n } // [Strategy of idxRes1]: if idxRes0 not satisfied (that is, no BE_ORDINAL.Not),\n // find the first BE_ORDINAL.Might as the value dim,\n // and then find a name dim with the priority:\n // \"other dim\" > \"the value dim itself\".\n // That is for backward compat: number-like (e.g., `'3'`, `'55'`) can be\n // treated as number.\n\n\n if (!isPureNumber) {\n if (guessResult === BE_ORDINAL.Might && idxRes1.v == null && i !== potentialNameDimIndex) {\n idxRes1.v = i;\n }\n\n if (idxRes1.n == null || idxRes1.n === idxRes1.v) {\n idxRes1.n = i;\n }\n }\n }\n\n function fulfilled(idxResult) {\n return idxResult.v != null && idxResult.n != null;\n }\n\n return fulfilled(idxRes0) ? idxRes0 : fulfilled(idxRes1) ? idxRes1 : null;\n }();\n\n if (idxResult) {\n encode.value = [idxResult.v]; // `potentialNameDimIndex` has highest priority.\n\n var nameDimIndex = potentialNameDimIndex != null ? potentialNameDimIndex : idxResult.n; // By default, label use itemName in charts.\n // So we dont set encodeLabel here.\n\n encode.itemName = [nameDimIndex];\n encode.seriesName = [nameDimIndex];\n }\n\n return encode;\n}\n/**\n * @return If return null/undefined, indicate that should not use datasetModel.\n */\n\nexport function querySeriesUpstreamDatasetModel(seriesModel) {\n // Caution: consider the scenario:\n // A dataset is declared and a series is not expected to use the dataset,\n // and at the beginning `setOption({series: { noData })` (just prepare other\n // option but no data), then `setOption({series: {data: [...]}); In this case,\n // the user should set an empty array to avoid that dataset is used by default.\n var thisData = seriesModel.get('data', true);\n\n if (!thisData) {\n return queryReferringComponents(seriesModel.ecModel, 'dataset', {\n index: seriesModel.get('datasetIndex', true),\n id: seriesModel.get('datasetId', true)\n }, SINGLE_REFERRING).models[0];\n }\n}\n/**\n * @return Always return an array event empty.\n */\n\nexport function queryDatasetUpstreamDatasetModels(datasetModel) {\n // Only these attributes declared, we by defualt reference to `datasetIndex: 0`.\n // Otherwise, no reference.\n if (!datasetModel.get('transform', true) && !datasetModel.get('fromTransformResult', true)) {\n return [];\n }\n\n return queryReferringComponents(datasetModel.ecModel, 'dataset', {\n index: datasetModel.get('fromDatasetIndex', true),\n id: datasetModel.get('fromDatasetId', true)\n }, SINGLE_REFERRING).models;\n}\n/**\n * The rule should not be complex, otherwise user might not\n * be able to known where the data is wrong.\n * The code is ugly, but how to make it neat?\n */\n\nexport function guessOrdinal(source, dimIndex) {\n return doGuessOrdinal(source.data, source.sourceFormat, source.seriesLayoutBy, source.dimensionsDefine, source.startIndex, dimIndex);\n} // dimIndex may be overflow source data.\n// return {BE_ORDINAL}\n\nfunction doGuessOrdinal(data, sourceFormat, seriesLayoutBy, dimensionsDefine, startIndex, dimIndex) {\n var result; // Experience value.\n\n var maxLoop = 5;\n\n if (isTypedArray(data)) {\n return BE_ORDINAL.Not;\n } // When sourceType is 'objectRows' or 'keyedColumns', dimensionsDefine\n // always exists in source.\n\n\n var dimName;\n var dimType;\n\n if (dimensionsDefine) {\n var dimDefItem = dimensionsDefine[dimIndex];\n\n if (isObject(dimDefItem)) {\n dimName = dimDefItem.name;\n dimType = dimDefItem.type;\n } else if (isString(dimDefItem)) {\n dimName = dimDefItem;\n }\n }\n\n if (dimType != null) {\n return dimType === 'ordinal' ? BE_ORDINAL.Must : BE_ORDINAL.Not;\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var dataArrayRows = data;\n\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n var sample = dataArrayRows[dimIndex];\n\n for (var i = 0; i < (sample || []).length && i < maxLoop; i++) {\n if ((result = detectValue(sample[startIndex + i])) != null) {\n return result;\n }\n }\n } else {\n for (var i = 0; i < dataArrayRows.length && i < maxLoop; i++) {\n var row = dataArrayRows[startIndex + i];\n\n if (row && (result = detectValue(row[dimIndex])) != null) {\n return result;\n }\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n var dataObjectRows = data;\n\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n\n for (var i = 0; i < dataObjectRows.length && i < maxLoop; i++) {\n var item = dataObjectRows[i];\n\n if (item && (result = detectValue(item[dimName])) != null) {\n return result;\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n var dataKeyedColumns = data;\n\n if (!dimName) {\n return BE_ORDINAL.Not;\n }\n\n var sample = dataKeyedColumns[dimName];\n\n if (!sample || isTypedArray(sample)) {\n return BE_ORDINAL.Not;\n }\n\n for (var i = 0; i < sample.length && i < maxLoop; i++) {\n if ((result = detectValue(sample[i])) != null) {\n return result;\n }\n }\n } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var dataOriginal = data;\n\n for (var i = 0; i < dataOriginal.length && i < maxLoop; i++) {\n var item = dataOriginal[i];\n var val = getDataItemValue(item);\n\n if (!isArray(val)) {\n return BE_ORDINAL.Not;\n }\n\n if ((result = detectValue(val[dimIndex])) != null) {\n return result;\n }\n }\n }\n\n function detectValue(val) {\n var beStr = isString(val); // Consider usage convenience, '1', '2' will be treated as \"number\".\n // `isFinit('')` get `true`.\n\n if (val != null && isFinite(val) && val !== '') {\n return beStr ? BE_ORDINAL.Might : BE_ORDINAL.Not;\n } else if (beStr && val !== '-') {\n return BE_ORDINAL.Must;\n }\n }\n\n return BE_ORDINAL.Not;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, assert } from 'zrender/lib/core/util';\nimport { isComponentIdInternal } from '../util/model';\nvar internalOptionCreatorMap = createHashMap();\nexport function registerInternalOptionCreator(mainType, creator) {\n assert(internalOptionCreatorMap.get(mainType) == null && creator);\n internalOptionCreatorMap.set(mainType, creator);\n}\nexport function concatInternalOptions(ecModel, mainType, newCmptOptionList) {\n var internalOptionCreator = internalOptionCreatorMap.get(mainType);\n\n if (!internalOptionCreator) {\n return newCmptOptionList;\n }\n\n var internalOptions = internalOptionCreator(ecModel);\n\n if (!internalOptions) {\n return newCmptOptionList;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n for (var i = 0; i < internalOptions.length; i++) {\n assert(isComponentIdInternal(internalOptions[i]));\n }\n }\n\n return newCmptOptionList.concat(internalOptions);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner, normalizeToArray } from '../../util/model';\nvar innerColor = makeInner();\nvar innerDecal = makeInner();\n\nvar PaletteMixin =\n/** @class */\nfunction () {\n function PaletteMixin() {}\n\n PaletteMixin.prototype.getColorFromPalette = function (name, scope, requestNum) {\n var defaultPalette = normalizeToArray(this.get('color', true));\n var layeredPalette = this.get('colorLayer', true);\n return getFromPalette(this, innerColor, defaultPalette, layeredPalette, name, scope, requestNum);\n };\n\n PaletteMixin.prototype.clearColorPalette = function () {\n clearPalette(this, innerColor);\n };\n\n return PaletteMixin;\n}();\n\nexport function getDecalFromPalette(ecModel, name, scope, requestNum) {\n var defaultDecals = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));\n return getFromPalette(ecModel, innerDecal, defaultDecals, null, name, scope, requestNum);\n}\n\nfunction getNearestPalette(palettes, requestColorNum) {\n var paletteNum = palettes.length; // TODO palettes must be in order\n\n for (var i = 0; i < paletteNum; i++) {\n if (palettes[i].length > requestColorNum) {\n return palettes[i];\n }\n }\n\n return palettes[paletteNum - 1];\n}\n/**\n * @param name MUST NOT be null/undefined. Otherwise call this function\n * twise with the same parameters will get different result.\n * @param scope default this.\n * @return Can be null/undefined\n */\n\n\nfunction getFromPalette(that, inner, defaultPalette, layeredPalette, name, scope, requestNum) {\n scope = scope || that;\n var scopeFields = inner(scope);\n var paletteIdx = scopeFields.paletteIdx || 0;\n var paletteNameMap = scopeFields.paletteNameMap = scopeFields.paletteNameMap || {}; // Use `hasOwnProperty` to avoid conflict with Object.prototype.\n\n if (paletteNameMap.hasOwnProperty(name)) {\n return paletteNameMap[name];\n }\n\n var palette = requestNum == null || !layeredPalette ? defaultPalette : getNearestPalette(layeredPalette, requestNum); // In case can't find in layered color palette.\n\n palette = palette || defaultPalette;\n\n if (!palette || !palette.length) {\n return;\n }\n\n var pickedPaletteItem = palette[paletteIdx];\n\n if (name) {\n paletteNameMap[name] = pickedPaletteItem;\n }\n\n scopeFields.paletteIdx = (paletteIdx + 1) % palette.length;\n return pickedPaletteItem;\n}\n\nfunction clearPalette(that, inner) {\n inner(that).paletteIdx = 0;\n inner(that).paletteNameMap = {};\n}\n\nexport { PaletteMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Caution: If the mechanism should be changed some day, these cases\n * should be considered:\n *\n * (1) In `merge option` mode, if using the same option to call `setOption`\n * many times, the result should be the same (try our best to ensure that).\n * (2) In `merge option` mode, if a component has no id/name specified, it\n * will be merged by index, and the result sequence of the components is\n * consistent to the original sequence.\n * (3) In `replaceMerge` mode, keep the result sequence of the components is\n * consistent to the original sequence, even though there might result in \"hole\".\n * (4) `reset` feature (in toolbox). Find detailed info in comments about\n * `mergeOption` in module:echarts/model/OptionManager.\n */\n\nimport { each, filter, isArray, isObject, isString, createHashMap, assert, clone, merge, extend, mixin, isFunction } from 'zrender/lib/core/util';\nimport * as modelUtil from '../util/model';\nimport Model from './Model';\nimport ComponentModel from './Component';\nimport globalDefault from './globalDefault';\nimport { resetSourceDefaulter } from '../data/helper/sourceHelper';\nimport { concatInternalOptions } from './internalComponentCreator';\nimport { PaletteMixin } from './mixin/palette';\nimport { error } from '../util/log'; // -----------------------\n// Internal method names:\n// -----------------------\n\nvar reCreateSeriesIndices;\nvar assertSeriesInitialized;\nvar initBase;\nvar OPTION_INNER_KEY = '\\0_ec_inner';\nvar OPTION_INNER_VALUE = 1;\nvar BUITIN_COMPONENTS_MAP = {\n grid: 'GridComponent',\n polar: 'PolarComponent',\n geo: 'GeoComponent',\n singleAxis: 'SingleAxisComponent',\n parallel: 'ParallelComponent',\n calendar: 'CalendarComponent',\n graphic: 'GraphicComponent',\n toolbox: 'ToolboxComponent',\n tooltip: 'TooltipComponent',\n axisPointer: 'AxisPointerComponent',\n brush: 'BrushComponent',\n title: 'TitleComponent',\n timeline: 'TimelineComponent',\n markPoint: 'MarkPointComponent',\n markLine: 'MarkLineComponent',\n markArea: 'MarkAreaComponent',\n legend: 'LegendComponent',\n dataZoom: 'DataZoomComponent',\n visualMap: 'VisualMapComponent',\n // aria: 'AriaComponent',\n // dataset: 'DatasetComponent',\n // Dependencies\n xAxis: 'GridComponent',\n yAxis: 'GridComponent',\n angleAxis: 'PolarComponent',\n radiusAxis: 'PolarComponent'\n};\nvar BUILTIN_CHARTS_MAP = {\n line: 'LineChart',\n bar: 'BarChart',\n pie: 'PieChart',\n scatter: 'ScatterChart',\n radar: 'RadarChart',\n map: 'MapChart',\n tree: 'TreeChart',\n treemap: 'TreemapChart',\n graph: 'GraphChart',\n gauge: 'GaugeChart',\n funnel: 'FunnelChart',\n parallel: 'ParallelChart',\n sankey: 'SankeyChart',\n boxplot: 'BoxplotChart',\n candlestick: 'CandlestickChart',\n effectScatter: 'EffectScatterChart',\n lines: 'LinesChart',\n heatmap: 'HeatmapChart',\n pictorialBar: 'PictorialBarChart',\n themeRiver: 'ThemeRiverChart',\n sunburst: 'SunburstChart',\n custom: 'CustomChart'\n};\nvar componetsMissingLogPrinted = {};\n\nfunction checkMissingComponents(option) {\n each(option, function (componentOption, mainType) {\n if (!ComponentModel.hasClass(mainType)) {\n var componentImportName = BUITIN_COMPONENTS_MAP[mainType];\n\n if (componentImportName && !componetsMissingLogPrinted[componentImportName]) {\n error(\"Component \" + mainType + \" is used but not imported.\\nimport { \" + componentImportName + \" } from 'echarts/components';\\necharts.use([\" + componentImportName + \"]);\");\n componetsMissingLogPrinted[componentImportName] = true;\n }\n }\n });\n}\n\nvar GlobalModel =\n/** @class */\nfunction (_super) {\n __extends(GlobalModel, _super);\n\n function GlobalModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GlobalModel.prototype.init = function (option, parentModel, ecModel, theme, locale, optionManager) {\n theme = theme || {};\n this.option = null; // Mark as not initialized.\n\n this._theme = new Model(theme);\n this._locale = new Model(locale);\n this._optionManager = optionManager;\n };\n\n GlobalModel.prototype.setOption = function (option, opts, optionPreprocessorFuncs) {\n if (process.env.NODE_ENV !== 'production') {\n assert(option != null, 'option is null/undefined');\n assert(option[OPTION_INNER_KEY] !== OPTION_INNER_VALUE, 'please use chart.getOption()');\n }\n\n var innerOpt = normalizeSetOptionInput(opts);\n\n this._optionManager.setOption(option, optionPreprocessorFuncs, innerOpt);\n\n this._resetOption(null, innerOpt);\n };\n /**\n * @param type null/undefined: reset all.\n * 'recreate': force recreate all.\n * 'timeline': only reset timeline option\n * 'media': only reset media query option\n * @return Whether option changed.\n */\n\n\n GlobalModel.prototype.resetOption = function (type, opt) {\n return this._resetOption(type, normalizeSetOptionInput(opt));\n };\n\n GlobalModel.prototype._resetOption = function (type, opt) {\n var optionChanged = false;\n var optionManager = this._optionManager;\n\n if (!type || type === 'recreate') {\n var baseOption = optionManager.mountOption(type === 'recreate');\n\n if (process.env.NODE_ENV !== 'production') {\n checkMissingComponents(baseOption);\n }\n\n if (!this.option || type === 'recreate') {\n initBase(this, baseOption);\n } else {\n this.restoreData();\n\n this._mergeOption(baseOption, opt);\n }\n\n optionChanged = true;\n }\n\n if (type === 'timeline' || type === 'media') {\n this.restoreData();\n } // By design, if `setOption(option2)` at the second time, and `option2` is a `ECUnitOption`,\n // it should better not have the same props with `MediaUnit['option']`.\n // Becuase either `option2` or `MediaUnit['option']` will be always merged to \"current option\"\n // rather than original \"baseOption\". If they both override a prop, the result might be\n // unexpected when media state changed after `setOption` called.\n // If we really need to modify a props in each `MediaUnit['option']`, use the full version\n // (`{baseOption, media}`) in `setOption`.\n // For `timeline`, the case is the same.\n\n\n if (!type || type === 'recreate' || type === 'timeline') {\n var timelineOption = optionManager.getTimelineOption(this);\n\n if (timelineOption) {\n optionChanged = true;\n\n this._mergeOption(timelineOption, opt);\n }\n }\n\n if (!type || type === 'recreate' || type === 'media') {\n var mediaOptions = optionManager.getMediaOption(this);\n\n if (mediaOptions.length) {\n each(mediaOptions, function (mediaOption) {\n optionChanged = true;\n\n this._mergeOption(mediaOption, opt);\n }, this);\n }\n }\n\n return optionChanged;\n };\n\n GlobalModel.prototype.mergeOption = function (option) {\n this._mergeOption(option, null);\n };\n\n GlobalModel.prototype._mergeOption = function (newOption, opt) {\n var option = this.option;\n var componentsMap = this._componentsMap;\n var componentsCount = this._componentsCount;\n var newCmptTypes = [];\n var newCmptTypeMap = createHashMap();\n var replaceMergeMainTypeMap = opt && opt.replaceMergeMainTypeMap;\n resetSourceDefaulter(this); // If no component class, merge directly.\n // For example: color, animaiton options, etc.\n\n each(newOption, function (componentOption, mainType) {\n if (componentOption == null) {\n return;\n }\n\n if (!ComponentModel.hasClass(mainType)) {\n // globalSettingTask.dirty();\n option[mainType] = option[mainType] == null ? clone(componentOption) : merge(option[mainType], componentOption, true);\n } else if (mainType) {\n newCmptTypes.push(mainType);\n newCmptTypeMap.set(mainType, true);\n }\n });\n\n if (replaceMergeMainTypeMap) {\n // If there is a mainType `xxx` in `replaceMerge` but not declared in option,\n // we trade it as it is declared in option as `{xxx: []}`. Because:\n // (1) for normal merge, `{xxx: null/undefined}` are the same meaning as `{xxx: []}`.\n // (2) some preprocessor may convert some of `{xxx: null/undefined}` to `{xxx: []}`.\n replaceMergeMainTypeMap.each(function (val, mainTypeInReplaceMerge) {\n if (ComponentModel.hasClass(mainTypeInReplaceMerge) && !newCmptTypeMap.get(mainTypeInReplaceMerge)) {\n newCmptTypes.push(mainTypeInReplaceMerge);\n newCmptTypeMap.set(mainTypeInReplaceMerge, true);\n }\n });\n }\n\n ComponentModel.topologicalTravel(newCmptTypes, ComponentModel.getAllClassMainTypes(), visitComponent, this);\n\n function visitComponent(mainType) {\n var newCmptOptionList = concatInternalOptions(this, mainType, modelUtil.normalizeToArray(newOption[mainType]));\n var oldCmptList = componentsMap.get(mainType);\n var mergeMode = // `!oldCmptList` means init. See the comment in `mappingToExists`\n !oldCmptList ? 'replaceAll' : replaceMergeMainTypeMap && replaceMergeMainTypeMap.get(mainType) ? 'replaceMerge' : 'normalMerge';\n var mappingResult = modelUtil.mappingToExists(oldCmptList, newCmptOptionList, mergeMode); // Set mainType and complete subType.\n\n modelUtil.setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel); // Empty it before the travel, in order to prevent `this._componentsMap`\n // from being used in the `init`/`mergeOption`/`optionUpdated` of some\n // components, which is probably incorrect logic.\n\n option[mainType] = null;\n componentsMap.set(mainType, null);\n componentsCount.set(mainType, 0);\n var optionsByMainType = [];\n var cmptsByMainType = [];\n var cmptsCountByMainType = 0;\n each(mappingResult, function (resultItem, index) {\n var componentModel = resultItem.existing;\n var newCmptOption = resultItem.newOption;\n\n if (!newCmptOption) {\n if (componentModel) {\n // Consider where is no new option and should be merged using {},\n // see removeEdgeAndAdd in topologicalTravel and\n // ComponentModel.getAllClassMainTypes.\n componentModel.mergeOption({}, this);\n componentModel.optionUpdated({}, false);\n } // If no both `resultItem.exist` and `resultItem.option`,\n // either it is in `replaceMerge` and not matched by any id,\n // or it has been removed in previous `replaceMerge` and left a \"hole\" in this component index.\n\n } else {\n var isSeriesType = mainType === 'series';\n var ComponentModelClass = ComponentModel.getClass(mainType, resultItem.keyInfo.subType, !isSeriesType // Give a more detailed warn later if series don't exists\n );\n\n if (!ComponentModelClass) {\n if (process.env.NODE_ENV !== 'production') {\n var subType = resultItem.keyInfo.subType;\n var seriesImportName = BUILTIN_CHARTS_MAP[subType];\n\n if (!componetsMissingLogPrinted[subType]) {\n componetsMissingLogPrinted[subType] = true;\n\n if (seriesImportName) {\n error(\"Series \" + subType + \" is used but not imported.\\nimport { \" + seriesImportName + \" } from 'echarts/charts';\\necharts.use([\" + seriesImportName + \"]);\");\n } else {\n error(\"Unkown series \" + subType);\n }\n }\n }\n\n return;\n }\n\n if (componentModel && componentModel.constructor === ComponentModelClass) {\n componentModel.name = resultItem.keyInfo.name; // componentModel.settingTask && componentModel.settingTask.dirty();\n\n componentModel.mergeOption(newCmptOption, this);\n componentModel.optionUpdated(newCmptOption, false);\n } else {\n // PENDING Global as parent ?\n var extraOpt = extend({\n componentIndex: index\n }, resultItem.keyInfo);\n componentModel = new ComponentModelClass(newCmptOption, this, this, extraOpt); // Assign `keyInfo`\n\n extend(componentModel, extraOpt);\n\n if (resultItem.brandNew) {\n componentModel.__requireNewView = true;\n }\n\n componentModel.init(newCmptOption, this, this); // Call optionUpdated after init.\n // newCmptOption has been used as componentModel.option\n // and may be merged with theme and default, so pass null\n // to avoid confusion.\n\n componentModel.optionUpdated(null, true);\n }\n }\n\n if (componentModel) {\n optionsByMainType.push(componentModel.option);\n cmptsByMainType.push(componentModel);\n cmptsCountByMainType++;\n } else {\n // Always do assign to avoid elided item in array.\n optionsByMainType.push(void 0);\n cmptsByMainType.push(void 0);\n }\n }, this);\n option[mainType] = optionsByMainType;\n componentsMap.set(mainType, cmptsByMainType);\n componentsCount.set(mainType, cmptsCountByMainType); // Backup series for filtering.\n\n if (mainType === 'series') {\n reCreateSeriesIndices(this);\n }\n } // If no series declared, ensure `_seriesIndices` initialized.\n\n\n if (!this._seriesIndices) {\n reCreateSeriesIndices(this);\n }\n };\n /**\n * Get option for output (cloned option and inner info removed)\n */\n\n\n GlobalModel.prototype.getOption = function () {\n var option = clone(this.option);\n each(option, function (optInMainType, mainType) {\n if (ComponentModel.hasClass(mainType)) {\n var opts = modelUtil.normalizeToArray(optInMainType); // Inner cmpts need to be removed.\n // Inner cmpts might not be at last since ec5.0, but still\n // compatible for users: if inner cmpt at last, splice the returned array.\n\n var realLen = opts.length;\n var metNonInner = false;\n\n for (var i = realLen - 1; i >= 0; i--) {\n // Remove options with inner id.\n if (opts[i] && !modelUtil.isComponentIdInternal(opts[i])) {\n metNonInner = true;\n } else {\n opts[i] = null;\n !metNonInner && realLen--;\n }\n }\n\n opts.length = realLen;\n option[mainType] = opts;\n }\n });\n delete option[OPTION_INNER_KEY];\n return option;\n };\n\n GlobalModel.prototype.getTheme = function () {\n return this._theme;\n };\n\n GlobalModel.prototype.getLocaleModel = function () {\n return this._locale;\n };\n\n GlobalModel.prototype.getLocale = function (localePosition) {\n var locale = this.getLocaleModel();\n return locale.get(localePosition);\n };\n\n GlobalModel.prototype.setUpdatePayload = function (payload) {\n this._payload = payload;\n };\n\n GlobalModel.prototype.getUpdatePayload = function () {\n return this._payload;\n };\n /**\n * @param idx If not specified, return the first one.\n */\n\n\n GlobalModel.prototype.getComponent = function (mainType, idx) {\n var list = this._componentsMap.get(mainType);\n\n if (list) {\n var cmpt = list[idx || 0];\n\n if (cmpt) {\n return cmpt;\n } else if (idx == null) {\n for (var i = 0; i < list.length; i++) {\n if (list[i]) {\n return list[i];\n }\n }\n }\n }\n };\n /**\n * @return Never be null/undefined.\n */\n\n\n GlobalModel.prototype.queryComponents = function (condition) {\n var mainType = condition.mainType;\n\n if (!mainType) {\n return [];\n }\n\n var index = condition.index;\n var id = condition.id;\n var name = condition.name;\n\n var cmpts = this._componentsMap.get(mainType);\n\n if (!cmpts || !cmpts.length) {\n return [];\n }\n\n var result;\n\n if (index != null) {\n result = [];\n each(modelUtil.normalizeToArray(index), function (idx) {\n cmpts[idx] && result.push(cmpts[idx]);\n });\n } else if (id != null) {\n result = queryByIdOrName('id', id, cmpts);\n } else if (name != null) {\n result = queryByIdOrName('name', name, cmpts);\n } else {\n // Return all non-empty components in that mainType\n result = filter(cmpts, function (cmpt) {\n return !!cmpt;\n });\n }\n\n return filterBySubType(result, condition);\n };\n /**\n * The interface is different from queryComponents,\n * which is convenient for inner usage.\n *\n * @usage\n * let result = findComponents(\n * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}}\n * );\n * let result = findComponents(\n * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}}\n * );\n * let result = findComponents(\n * {mainType: 'series',\n * filter: function (model, index) {...}}\n * );\n * // result like [component0, componnet1, ...]\n */\n\n\n GlobalModel.prototype.findComponents = function (condition) {\n var query = condition.query;\n var mainType = condition.mainType;\n var queryCond = getQueryCond(query);\n var result = queryCond ? this.queryComponents(queryCond) // Retrieve all non-empty components.\n : filter(this._componentsMap.get(mainType), function (cmpt) {\n return !!cmpt;\n });\n return doFilter(filterBySubType(result, condition));\n\n function getQueryCond(q) {\n var indexAttr = mainType + 'Index';\n var idAttr = mainType + 'Id';\n var nameAttr = mainType + 'Name';\n return q && (q[indexAttr] != null || q[idAttr] != null || q[nameAttr] != null) ? {\n mainType: mainType,\n // subType will be filtered finally.\n index: q[indexAttr],\n id: q[idAttr],\n name: q[nameAttr]\n } : null;\n }\n\n function doFilter(res) {\n return condition.filter ? filter(res, condition.filter) : res;\n }\n };\n\n GlobalModel.prototype.eachComponent = function (mainType, cb, context) {\n var componentsMap = this._componentsMap;\n\n if (isFunction(mainType)) {\n var ctxForAll_1 = cb;\n var cbForAll_1 = mainType;\n componentsMap.each(function (cmpts, componentType) {\n for (var i = 0; cmpts && i < cmpts.length; i++) {\n var cmpt = cmpts[i];\n cmpt && cbForAll_1.call(ctxForAll_1, componentType, cmpt, cmpt.componentIndex);\n }\n });\n } else {\n var cmpts = isString(mainType) ? componentsMap.get(mainType) : isObject(mainType) ? this.findComponents(mainType) : null;\n\n for (var i = 0; cmpts && i < cmpts.length; i++) {\n var cmpt = cmpts[i];\n cmpt && cb.call(context, cmpt, cmpt.componentIndex);\n }\n }\n };\n /**\n * Get series list before filtered by name.\n */\n\n\n GlobalModel.prototype.getSeriesByName = function (name) {\n var nameStr = modelUtil.convertOptionIdName(name, null);\n return filter(this._componentsMap.get('series'), function (oneSeries) {\n return !!oneSeries && nameStr != null && oneSeries.name === nameStr;\n });\n };\n /**\n * Get series list before filtered by index.\n */\n\n\n GlobalModel.prototype.getSeriesByIndex = function (seriesIndex) {\n return this._componentsMap.get('series')[seriesIndex];\n };\n /**\n * Get series list before filtered by type.\n * FIXME: rename to getRawSeriesByType?\n */\n\n\n GlobalModel.prototype.getSeriesByType = function (subType) {\n return filter(this._componentsMap.get('series'), function (oneSeries) {\n return !!oneSeries && oneSeries.subType === subType;\n });\n };\n /**\n * Get all series before filtered.\n */\n\n\n GlobalModel.prototype.getSeries = function () {\n return filter(this._componentsMap.get('series').slice(), function (oneSeries) {\n return !!oneSeries;\n });\n };\n /**\n * Count series before filtered.\n */\n\n\n GlobalModel.prototype.getSeriesCount = function () {\n return this._componentsCount.get('series');\n };\n /**\n * After filtering, series may be different\n * frome raw series.\n */\n\n\n GlobalModel.prototype.eachSeries = function (cb, context) {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n var series = this._componentsMap.get('series')[rawSeriesIndex];\n\n cb.call(context, series, rawSeriesIndex);\n }, this);\n };\n /**\n * Iterate raw series before filtered.\n *\n * @param {Function} cb\n * @param {*} context\n */\n\n\n GlobalModel.prototype.eachRawSeries = function (cb, context) {\n each(this._componentsMap.get('series'), function (series) {\n series && cb.call(context, series, series.componentIndex);\n });\n };\n /**\n * After filtering, series may be different.\n * frome raw series.\n */\n\n\n GlobalModel.prototype.eachSeriesByType = function (subType, cb, context) {\n assertSeriesInitialized(this);\n each(this._seriesIndices, function (rawSeriesIndex) {\n var series = this._componentsMap.get('series')[rawSeriesIndex];\n\n if (series.subType === subType) {\n cb.call(context, series, rawSeriesIndex);\n }\n }, this);\n };\n /**\n * Iterate raw series before filtered of given type.\n */\n\n\n GlobalModel.prototype.eachRawSeriesByType = function (subType, cb, context) {\n return each(this.getSeriesByType(subType), cb, context);\n };\n\n GlobalModel.prototype.isSeriesFiltered = function (seriesModel) {\n assertSeriesInitialized(this);\n return this._seriesIndicesMap.get(seriesModel.componentIndex) == null;\n };\n\n GlobalModel.prototype.getCurrentSeriesIndices = function () {\n return (this._seriesIndices || []).slice();\n };\n\n GlobalModel.prototype.filterSeries = function (cb, context) {\n assertSeriesInitialized(this);\n var newSeriesIndices = [];\n each(this._seriesIndices, function (seriesRawIdx) {\n var series = this._componentsMap.get('series')[seriesRawIdx];\n\n cb.call(context, series, seriesRawIdx) && newSeriesIndices.push(seriesRawIdx);\n }, this);\n this._seriesIndices = newSeriesIndices;\n this._seriesIndicesMap = createHashMap(newSeriesIndices);\n };\n\n GlobalModel.prototype.restoreData = function (payload) {\n reCreateSeriesIndices(this);\n var componentsMap = this._componentsMap;\n var componentTypes = [];\n componentsMap.each(function (components, componentType) {\n if (ComponentModel.hasClass(componentType)) {\n componentTypes.push(componentType);\n }\n });\n ComponentModel.topologicalTravel(componentTypes, ComponentModel.getAllClassMainTypes(), function (componentType) {\n each(componentsMap.get(componentType), function (component) {\n if (component && (componentType !== 'series' || !isNotTargetSeries(component, payload))) {\n component.restoreData();\n }\n });\n });\n };\n\n GlobalModel.internalField = function () {\n reCreateSeriesIndices = function (ecModel) {\n var seriesIndices = ecModel._seriesIndices = [];\n each(ecModel._componentsMap.get('series'), function (series) {\n // series may have been removed by `replaceMerge`.\n series && seriesIndices.push(series.componentIndex);\n });\n ecModel._seriesIndicesMap = createHashMap(seriesIndices);\n };\n\n assertSeriesInitialized = function (ecModel) {\n // Components that use _seriesIndices should depends on series component,\n // which make sure that their initialization is after series.\n if (process.env.NODE_ENV !== 'production') {\n if (!ecModel._seriesIndices) {\n throw new Error('Option should contains series.');\n }\n }\n };\n\n initBase = function (ecModel, baseOption) {\n // Using OPTION_INNER_KEY to mark that this option can not be used outside,\n // i.e. `chart.setOption(chart.getModel().option);` is forbiden.\n ecModel.option = {};\n ecModel.option[OPTION_INNER_KEY] = OPTION_INNER_VALUE; // Init with series: [], in case of calling findSeries method\n // before series initialized.\n\n ecModel._componentsMap = createHashMap({\n series: []\n });\n ecModel._componentsCount = createHashMap(); // If user spefied `option.aria`, aria will be enable. This detection should be\n // performed before theme and globalDefault merge.\n\n var airaOption = baseOption.aria;\n\n if (isObject(airaOption) && airaOption.enabled == null) {\n airaOption.enabled = true;\n }\n\n mergeTheme(baseOption, ecModel._theme.option); // TODO Needs clone when merging to the unexisted property\n\n merge(baseOption, globalDefault, false);\n\n ecModel._mergeOption(baseOption, null);\n };\n }();\n\n return GlobalModel;\n}(Model);\n\nfunction isNotTargetSeries(seriesModel, payload) {\n if (payload) {\n var index = payload.seriesIndex;\n var id = payload.seriesId;\n var name_1 = payload.seriesName;\n return index != null && seriesModel.componentIndex !== index || id != null && seriesModel.id !== id || name_1 != null && seriesModel.name !== name_1;\n }\n}\n\nfunction mergeTheme(option, theme) {\n // PENDING\n // NOT use `colorLayer` in theme if option has `color`\n var notMergeColorLayer = option.color && !option.colorLayer;\n each(theme, function (themeItem, name) {\n if (name === 'colorLayer' && notMergeColorLayer) {\n return;\n } // If it is component model mainType, the model handles that merge later.\n // otherwise, merge them here.\n\n\n if (!ComponentModel.hasClass(name)) {\n if (typeof themeItem === 'object') {\n option[name] = !option[name] ? clone(themeItem) : merge(option[name], themeItem, false);\n } else {\n if (option[name] == null) {\n option[name] = themeItem;\n }\n }\n }\n });\n}\n\nfunction queryByIdOrName(attr, idOrName, cmpts) {\n // Here is a break from echarts4: string and number are\n // treated as equal.\n if (isArray(idOrName)) {\n var keyMap_1 = createHashMap();\n each(idOrName, function (idOrNameItem) {\n if (idOrNameItem != null) {\n var idName = modelUtil.convertOptionIdName(idOrNameItem, null);\n idName != null && keyMap_1.set(idOrNameItem, true);\n }\n });\n return filter(cmpts, function (cmpt) {\n return cmpt && keyMap_1.get(cmpt[attr]);\n });\n } else {\n var idName_1 = modelUtil.convertOptionIdName(idOrName, null);\n return filter(cmpts, function (cmpt) {\n return cmpt && idName_1 != null && cmpt[attr] === idName_1;\n });\n }\n}\n\nfunction filterBySubType(components, condition) {\n // Using hasOwnProperty for restrict. Consider\n // subType is undefined in user payload.\n return condition.hasOwnProperty('subType') ? filter(components, function (cmpt) {\n return cmpt && cmpt.subType === condition.subType;\n }) : components;\n}\n\nfunction normalizeSetOptionInput(opts) {\n var replaceMergeMainTypeMap = createHashMap();\n opts && each(modelUtil.normalizeToArray(opts.replaceMerge), function (mainType) {\n if (process.env.NODE_ENV !== 'production') {\n assert(ComponentModel.hasClass(mainType), '\"' + mainType + '\" is not valid component main type in \"replaceMerge\"');\n }\n\n replaceMergeMainTypeMap.set(mainType, true);\n });\n return {\n replaceMergeMainTypeMap: replaceMergeMainTypeMap\n };\n}\n\nmixin(GlobalModel, PaletteMixin);\nexport default GlobalModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar availableMethods = ['getDom', 'getZr', 'getWidth', 'getHeight', 'getDevicePixelRatio', 'dispatchAction', 'isDisposed', 'on', 'off', 'getDataURL', 'getConnectedDataURL', // 'getModel',\n'getOption', // 'getViewOfComponentModel',\n// 'getViewOfSeriesModel',\n'getId', 'updateLabelLayout'];\n\nvar ExtensionAPI =\n/** @class */\nfunction () {\n function ExtensionAPI(ecInstance) {\n zrUtil.each(availableMethods, function (methodName) {\n this[methodName] = zrUtil.bind(ecInstance[methodName], ecInstance);\n }, this);\n }\n\n return ExtensionAPI;\n}();\n\nexport default ExtensionAPI;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar coordinateSystemCreators = {};\n\nvar CoordinateSystemManager =\n/** @class */\nfunction () {\n function CoordinateSystemManager() {\n this._coordinateSystems = [];\n }\n\n CoordinateSystemManager.prototype.create = function (ecModel, api) {\n var coordinateSystems = [];\n zrUtil.each(coordinateSystemCreators, function (creater, type) {\n var list = creater.create(ecModel, api);\n coordinateSystems = coordinateSystems.concat(list || []);\n });\n this._coordinateSystems = coordinateSystems;\n };\n\n CoordinateSystemManager.prototype.update = function (ecModel, api) {\n zrUtil.each(this._coordinateSystems, function (coordSys) {\n coordSys.update && coordSys.update(ecModel, api);\n });\n };\n\n CoordinateSystemManager.prototype.getCoordinateSystems = function () {\n return this._coordinateSystems.slice();\n };\n\n CoordinateSystemManager.register = function (type, creator) {\n coordinateSystemCreators[type] = creator;\n };\n\n CoordinateSystemManager.get = function (type) {\n return coordinateSystemCreators[type];\n };\n\n return CoordinateSystemManager;\n}();\n\nexport default CoordinateSystemManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { normalizeToArray // , MappingExistingItem, setComponentTypeToKeyInfo, mappingToExists\n} from '../util/model';\nimport { each, clone, map, isTypedArray, setAsPrimitive, isArray, isObject // , HashMap , createHashMap, extend, merge,\n} from 'zrender/lib/core/util';\nimport { error } from '../util/log';\nvar QUERY_REG = /^(min|max)?(.+)$/; // Key: mainType\n// type FakeComponentsMap = HashMap<(MappingExistingItem & { subType: string })[]>;\n\n/**\n * TERM EXPLANATIONS:\n * See `ECOption` and `ECUnitOption` in `src/util/types.ts`.\n */\n\nvar OptionManager =\n/** @class */\nfunction () {\n // timeline.notMerge is not supported in ec3. Firstly there is rearly\n // case that notMerge is needed. Secondly supporting 'notMerge' requires\n // rawOption cloned and backuped when timeline changed, which does no\n // good to performance. What's more, that both timeline and setOption\n // method supply 'notMerge' brings complex and some problems.\n // Consider this case:\n // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);\n // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);\n function OptionManager(api) {\n this._timelineOptions = [];\n this._mediaList = [];\n /**\n * -1, means default.\n * empty means no media.\n */\n\n this._currentMediaIndices = [];\n this._api = api;\n }\n\n OptionManager.prototype.setOption = function (rawOption, optionPreprocessorFuncs, opt) {\n if (rawOption) {\n // That set dat primitive is dangerous if user reuse the data when setOption again.\n each(normalizeToArray(rawOption.series), function (series) {\n series && series.data && isTypedArray(series.data) && setAsPrimitive(series.data);\n });\n each(normalizeToArray(rawOption.dataset), function (dataset) {\n dataset && dataset.source && isTypedArray(dataset.source) && setAsPrimitive(dataset.source);\n });\n } // Caution: some series modify option data, if do not clone,\n // it should ensure that the repeat modify correctly\n // (create a new object when modify itself).\n\n\n rawOption = clone(rawOption); // FIXME\n // If some property is set in timeline options or media option but\n // not set in baseOption, a warning should be given.\n\n var optionBackup = this._optionBackup;\n var newParsedOption = parseRawOption(rawOption, optionPreprocessorFuncs, !optionBackup);\n this._newBaseOption = newParsedOption.baseOption; // For setOption at second time (using merge mode);\n\n if (optionBackup) {\n // FIXME\n // the restore merge solution is essentially incorrect.\n // the mapping can not be 100% consistent with ecModel, which probably brings\n // potential bug!\n // The first merge is delayed, becuase in most cases, users do not call `setOption` twice.\n // let fakeCmptsMap = this._fakeCmptsMap;\n // if (!fakeCmptsMap) {\n // fakeCmptsMap = this._fakeCmptsMap = createHashMap();\n // mergeToBackupOption(fakeCmptsMap, null, optionBackup.baseOption, null);\n // }\n // mergeToBackupOption(\n // fakeCmptsMap, optionBackup.baseOption, newParsedOption.baseOption, opt\n // );\n // For simplicity, timeline options and media options do not support merge,\n // that is, if you `setOption` twice and both has timeline options, the latter\n // timeline opitons will not be merged to the formers, but just substitude them.\n if (newParsedOption.timelineOptions.length) {\n optionBackup.timelineOptions = newParsedOption.timelineOptions;\n }\n\n if (newParsedOption.mediaList.length) {\n optionBackup.mediaList = newParsedOption.mediaList;\n }\n\n if (newParsedOption.mediaDefault) {\n optionBackup.mediaDefault = newParsedOption.mediaDefault;\n }\n } else {\n this._optionBackup = newParsedOption;\n }\n };\n\n OptionManager.prototype.mountOption = function (isRecreate) {\n var optionBackup = this._optionBackup;\n this._timelineOptions = optionBackup.timelineOptions;\n this._mediaList = optionBackup.mediaList;\n this._mediaDefault = optionBackup.mediaDefault;\n this._currentMediaIndices = [];\n return clone(isRecreate // this._optionBackup.baseOption, which is created at the first `setOption`\n // called, and is merged into every new option by inner method `mergeToBackupOption`\n // each time `setOption` called, can be only used in `isRecreate`, because\n // its reliability is under suspicion. In other cases option merge is\n // performed by `model.mergeOption`.\n ? optionBackup.baseOption : this._newBaseOption);\n };\n\n OptionManager.prototype.getTimelineOption = function (ecModel) {\n var option;\n var timelineOptions = this._timelineOptions;\n\n if (timelineOptions.length) {\n // getTimelineOption can only be called after ecModel inited,\n // so we can get currentIndex from timelineModel.\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel) {\n option = clone( // FIXME:TS as TimelineModel or quivlant interface\n timelineOptions[timelineModel.getCurrentIndex()]);\n }\n }\n\n return option;\n };\n\n OptionManager.prototype.getMediaOption = function (ecModel) {\n var ecWidth = this._api.getWidth();\n\n var ecHeight = this._api.getHeight();\n\n var mediaList = this._mediaList;\n var mediaDefault = this._mediaDefault;\n var indices = [];\n var result = []; // No media defined.\n\n if (!mediaList.length && !mediaDefault) {\n return result;\n } // Multi media may be applied, the latter defined media has higher priority.\n\n\n for (var i = 0, len = mediaList.length; i < len; i++) {\n if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {\n indices.push(i);\n }\n } // FIXME\n // Whether mediaDefault should force users to provide? Otherwise\n // the change by media query can not be recorvered.\n\n\n if (!indices.length && mediaDefault) {\n indices = [-1];\n }\n\n if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {\n result = map(indices, function (index) {\n return clone(index === -1 ? mediaDefault.option : mediaList[index].option);\n });\n } // Otherwise return nothing.\n\n\n this._currentMediaIndices = indices;\n return result;\n };\n\n return OptionManager;\n}();\n/**\n * [RAW_OPTION_PATTERNS]\n * (Note: \"series: []\" represents all other props in `ECUnitOption`)\n *\n * (1) No prop \"baseOption\" declared:\n * Root option is used as \"baseOption\" (except prop \"options\" and \"media\").\n * ```js\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * };\n * option = {\n * series: [],\n * media: {},\n * };\n * option = {\n * series: [],\n * timeline: {},\n * options: [],\n * media: {},\n * }\n * ```\n *\n * (2) Prop \"baseOption\" declared:\n * If \"baseOption\" declared, `ECUnitOption` props can only be declared\n * inside \"baseOption\" except prop \"timeline\" (compat ec2).\n * ```js\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * };\n * option = {\n * baseOption: {\n * series: [],\n * },\n * media: []\n * };\n * option = {\n * baseOption: {\n * timeline: {},\n * series: [],\n * },\n * options: []\n * media: []\n * };\n * option = {\n * // ec3 compat ec2: allow (only) `timeline` declared\n * // outside baseOption. Keep this setting for compat.\n * timeline: {},\n * baseOption: {\n * series: [],\n * },\n * options: [],\n * media: []\n * };\n * ```\n */\n\n\nfunction parseRawOption( // `rawOption` May be modified\nrawOption, optionPreprocessorFuncs, isNew) {\n var mediaList = [];\n var mediaDefault;\n var baseOption;\n var declaredBaseOption = rawOption.baseOption; // Compatible with ec2, [RAW_OPTION_PATTERNS] above.\n\n var timelineOnRoot = rawOption.timeline;\n var timelineOptionsOnRoot = rawOption.options;\n var mediaOnRoot = rawOption.media;\n var hasMedia = !!rawOption.media;\n var hasTimeline = !!(timelineOptionsOnRoot || timelineOnRoot || declaredBaseOption && declaredBaseOption.timeline);\n\n if (declaredBaseOption) {\n baseOption = declaredBaseOption; // For merge option.\n\n if (!baseOption.timeline) {\n baseOption.timeline = timelineOnRoot;\n }\n } // For convenience, enable to use the root option as the `baseOption`:\n // `{ ...normalOptionProps, media: [{ ... }, { ... }] }`\n else {\n if (hasTimeline || hasMedia) {\n rawOption.options = rawOption.media = null;\n }\n\n baseOption = rawOption;\n }\n\n if (hasMedia) {\n if (isArray(mediaOnRoot)) {\n each(mediaOnRoot, function (singleMedia) {\n if (process.env.NODE_ENV !== 'production') {\n // Real case of wrong config.\n if (singleMedia && !singleMedia.option && isObject(singleMedia.query) && isObject(singleMedia.query.option)) {\n error('Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }');\n }\n }\n\n if (singleMedia && singleMedia.option) {\n if (singleMedia.query) {\n mediaList.push(singleMedia);\n } else if (!mediaDefault) {\n // Use the first media default.\n mediaDefault = singleMedia;\n }\n }\n });\n } else {\n if (process.env.NODE_ENV !== 'production') {\n // Real case of wrong config.\n error('Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }');\n }\n }\n }\n\n doPreprocess(baseOption);\n each(timelineOptionsOnRoot, function (option) {\n return doPreprocess(option);\n });\n each(mediaList, function (media) {\n return doPreprocess(media.option);\n });\n\n function doPreprocess(option) {\n each(optionPreprocessorFuncs, function (preProcess) {\n preProcess(option, isNew);\n });\n }\n\n return {\n baseOption: baseOption,\n timelineOptions: timelineOptionsOnRoot || [],\n mediaDefault: mediaDefault,\n mediaList: mediaList\n };\n}\n/**\n * @see \n * Support: width, height, aspectRatio\n * Can use max or min as prefix.\n */\n\n\nfunction applyMediaQuery(query, ecWidth, ecHeight) {\n var realMap = {\n width: ecWidth,\n height: ecHeight,\n aspectratio: ecWidth / ecHeight // lowser case for convenientce.\n\n };\n var applicatable = true;\n each(query, function (value, attr) {\n var matched = attr.match(QUERY_REG);\n\n if (!matched || !matched[1] || !matched[2]) {\n return;\n }\n\n var operator = matched[1];\n var realAttr = matched[2].toLowerCase();\n\n if (!compare(realMap[realAttr], value, operator)) {\n applicatable = false;\n }\n });\n return applicatable;\n}\n\nfunction compare(real, expect, operator) {\n if (operator === 'min') {\n return real >= expect;\n } else if (operator === 'max') {\n return real <= expect;\n } else {\n // Equals\n return real === expect;\n }\n}\n\nfunction indicesEquals(indices1, indices2) {\n // indices is always order by asc and has only finite number.\n return indices1.join(',') === indices2.join(',');\n}\n/**\n * Consider case:\n * `chart.setOption(opt1);`\n * Then user do some interaction like dataZoom, dataView changing.\n * `chart.setOption(opt2);`\n * Then user press 'reset button' in toolbox.\n *\n * After doing that all of the interaction effects should be reset, the\n * chart should be the same as the result of invoke\n * `chart.setOption(opt1); chart.setOption(opt2);`.\n *\n * Although it is not able ensure that\n * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to\n * `chart.setOption(merge(opt1, opt2));` exactly,\n * this might be the only simple way to implement that feature.\n *\n * MEMO: We've considered some other approaches:\n * 1. Each model handle its self restoration but not uniform treatment.\n * (Too complex in logic and error-prone)\n * 2. Use a shadow ecModel. (Performace expensive)\n *\n * FIXME: A possible solution:\n * Add a extra level of model for each component model. The inheritance chain would be:\n * ecModel <- componentModel <- componentActionModel <- dataItemModel\n * And all of the actions can only modify the `componentActionModel` rather than\n * `componentModel`. `setOption` will only modify the `ecModel` and `componentModel`.\n * When \"resotre\" action triggered, model from `componentActionModel` will be discarded\n * instead of recreating the \"ecModel\" from the \"_optionBackup\".\n */\n// function mergeToBackupOption(\n// fakeCmptsMap: FakeComponentsMap,\n// // `tarOption` Can be null/undefined, means init\n// tarOption: ECUnitOption,\n// newOption: ECUnitOption,\n// // Can be null/undefined\n// opt: InnerSetOptionOpts\n// ): void {\n// newOption = newOption || {} as ECUnitOption;\n// const notInit = !!tarOption;\n// each(newOption, function (newOptsInMainType, mainType) {\n// if (newOptsInMainType == null) {\n// return;\n// }\n// if (!ComponentModel.hasClass(mainType)) {\n// if (tarOption) {\n// tarOption[mainType] = merge(tarOption[mainType], newOptsInMainType, true);\n// }\n// }\n// else {\n// const oldTarOptsInMainType = notInit ? normalizeToArray(tarOption[mainType]) : null;\n// const oldFakeCmptsInMainType = fakeCmptsMap.get(mainType) || [];\n// const resultTarOptsInMainType = notInit ? (tarOption[mainType] = [] as ComponentOption[]) : null;\n// const resultFakeCmptsInMainType = fakeCmptsMap.set(mainType, []);\n// const mappingResult = mappingToExists(\n// oldFakeCmptsInMainType,\n// normalizeToArray(newOptsInMainType),\n// (opt && opt.replaceMergeMainTypeMap.get(mainType)) ? 'replaceMerge' : 'normalMerge'\n// );\n// setComponentTypeToKeyInfo(mappingResult, mainType, ComponentModel as ComponentModelConstructor);\n// each(mappingResult, function (resultItem, index) {\n// // The same logic as `Global.ts#_mergeOption`.\n// let fakeCmpt = resultItem.existing;\n// const newOption = resultItem.newOption;\n// const keyInfo = resultItem.keyInfo;\n// let fakeCmptOpt;\n// if (!newOption) {\n// fakeCmptOpt = oldTarOptsInMainType[index];\n// }\n// else {\n// if (fakeCmpt && fakeCmpt.subType === keyInfo.subType) {\n// fakeCmpt.name = keyInfo.name;\n// if (notInit) {\n// fakeCmptOpt = merge(oldTarOptsInMainType[index], newOption, true);\n// }\n// }\n// else {\n// fakeCmpt = extend({}, keyInfo);\n// if (notInit) {\n// fakeCmptOpt = clone(newOption);\n// }\n// }\n// }\n// if (fakeCmpt) {\n// notInit && resultTarOptsInMainType.push(fakeCmptOpt);\n// resultFakeCmptsInMainType.push(fakeCmpt);\n// }\n// else {\n// notInit && resultTarOptsInMainType.push(void 0);\n// resultFakeCmptsInMainType.push(void 0);\n// }\n// });\n// }\n// });\n// }\n\n\nexport default OptionManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport { deprecateLog, deprecateReplaceLog } from '../../util/log';\nvar each = zrUtil.each;\nvar isObject = zrUtil.isObject;\nvar POSSIBLE_STYLES = ['areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle', 'chordStyle', 'label', 'labelLine'];\n\nfunction compatEC2ItemStyle(opt) {\n var itemStyleOpt = opt && opt.itemStyle;\n\n if (!itemStyleOpt) {\n return;\n }\n\n for (var i = 0, len = POSSIBLE_STYLES.length; i < len; i++) {\n var styleName = POSSIBLE_STYLES[i];\n var normalItemStyleOpt = itemStyleOpt.normal;\n var emphasisItemStyleOpt = itemStyleOpt.emphasis;\n\n if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(\"itemStyle.normal.\" + styleName, styleName);\n }\n\n opt[styleName] = opt[styleName] || {};\n\n if (!opt[styleName].normal) {\n opt[styleName].normal = normalItemStyleOpt[styleName];\n } else {\n zrUtil.merge(opt[styleName].normal, normalItemStyleOpt[styleName]);\n }\n\n normalItemStyleOpt[styleName] = null;\n }\n\n if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(\"itemStyle.emphasis.\" + styleName, \"emphasis.\" + styleName);\n }\n\n opt[styleName] = opt[styleName] || {};\n\n if (!opt[styleName].emphasis) {\n opt[styleName].emphasis = emphasisItemStyleOpt[styleName];\n } else {\n zrUtil.merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);\n }\n\n emphasisItemStyleOpt[styleName] = null;\n }\n }\n}\n\nfunction convertNormalEmphasis(opt, optType, useExtend) {\n if (opt && opt[optType] && (opt[optType].normal || opt[optType].emphasis)) {\n var normalOpt = opt[optType].normal;\n var emphasisOpt = opt[optType].emphasis;\n\n if (normalOpt) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line max-len\n deprecateLog(\"'normal' hierarchy in \" + optType + \" has been removed since 4.0. All style properties are configured in \" + optType + \" directly now.\");\n } // Timeline controlStyle has other properties besides normal and emphasis\n\n\n if (useExtend) {\n opt[optType].normal = opt[optType].emphasis = null;\n zrUtil.defaults(opt[optType], normalOpt);\n } else {\n opt[optType] = normalOpt;\n }\n }\n\n if (emphasisOpt) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog(optType + \".emphasis has been changed to emphasis.\" + optType + \" since 4.0\");\n }\n\n opt.emphasis = opt.emphasis || {};\n opt.emphasis[optType] = emphasisOpt; // Also compat the case user mix the style and focus together in ec3 style\n // for example: { itemStyle: { normal: {}, emphasis: {focus, shadowBlur} } }\n\n if (emphasisOpt.focus) {\n opt.emphasis.focus = emphasisOpt.focus;\n }\n\n if (emphasisOpt.blurScope) {\n opt.emphasis.blurScope = emphasisOpt.blurScope;\n }\n }\n }\n}\n\nfunction removeEC3NormalStatus(opt) {\n convertNormalEmphasis(opt, 'itemStyle');\n convertNormalEmphasis(opt, 'lineStyle');\n convertNormalEmphasis(opt, 'areaStyle');\n convertNormalEmphasis(opt, 'label');\n convertNormalEmphasis(opt, 'labelLine'); // treemap\n\n convertNormalEmphasis(opt, 'upperLabel'); // graph\n\n convertNormalEmphasis(opt, 'edgeLabel');\n}\n\nfunction compatTextStyle(opt, propName) {\n // Check whether is not object (string\\null\\undefined ...)\n var labelOptSingle = isObject(opt) && opt[propName];\n var textStyle = isObject(labelOptSingle) && labelOptSingle.textStyle;\n\n if (textStyle) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line max-len\n deprecateLog(\"textStyle hierarchy in \" + propName + \" has been removed since 4.0. All textStyle properties are configured in \" + propName + \" directly now.\");\n }\n\n for (var i = 0, len = modelUtil.TEXT_STYLE_OPTIONS.length; i < len; i++) {\n var textPropName = modelUtil.TEXT_STYLE_OPTIONS[i];\n\n if (textStyle.hasOwnProperty(textPropName)) {\n labelOptSingle[textPropName] = textStyle[textPropName];\n }\n }\n }\n}\n\nfunction compatEC3CommonStyles(opt) {\n if (opt) {\n removeEC3NormalStatus(opt);\n compatTextStyle(opt, 'label');\n opt.emphasis && compatTextStyle(opt.emphasis, 'label');\n }\n}\n\nfunction processSeries(seriesOpt) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n compatEC2ItemStyle(seriesOpt);\n removeEC3NormalStatus(seriesOpt);\n compatTextStyle(seriesOpt, 'label'); // treemap\n\n compatTextStyle(seriesOpt, 'upperLabel'); // graph\n\n compatTextStyle(seriesOpt, 'edgeLabel');\n\n if (seriesOpt.emphasis) {\n compatTextStyle(seriesOpt.emphasis, 'label'); // treemap\n\n compatTextStyle(seriesOpt.emphasis, 'upperLabel'); // graph\n\n compatTextStyle(seriesOpt.emphasis, 'edgeLabel');\n }\n\n var markPoint = seriesOpt.markPoint;\n\n if (markPoint) {\n compatEC2ItemStyle(markPoint);\n compatEC3CommonStyles(markPoint);\n }\n\n var markLine = seriesOpt.markLine;\n\n if (markLine) {\n compatEC2ItemStyle(markLine);\n compatEC3CommonStyles(markLine);\n }\n\n var markArea = seriesOpt.markArea;\n\n if (markArea) {\n compatEC3CommonStyles(markArea);\n }\n\n var data = seriesOpt.data; // Break with ec3: if `setOption` again, there may be no `type` in option,\n // then the backward compat based on option type will not be performed.\n\n if (seriesOpt.type === 'graph') {\n data = data || seriesOpt.nodes;\n var edgeData = seriesOpt.links || seriesOpt.edges;\n\n if (edgeData && !zrUtil.isTypedArray(edgeData)) {\n for (var i = 0; i < edgeData.length; i++) {\n compatEC3CommonStyles(edgeData[i]);\n }\n }\n\n zrUtil.each(seriesOpt.categories, function (opt) {\n removeEC3NormalStatus(opt);\n });\n }\n\n if (data && !zrUtil.isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n compatEC3CommonStyles(data[i]);\n }\n } // mark point data\n\n\n markPoint = seriesOpt.markPoint;\n\n if (markPoint && markPoint.data) {\n var mpData = markPoint.data;\n\n for (var i = 0; i < mpData.length; i++) {\n compatEC3CommonStyles(mpData[i]);\n }\n } // mark line data\n\n\n markLine = seriesOpt.markLine;\n\n if (markLine && markLine.data) {\n var mlData = markLine.data;\n\n for (var i = 0; i < mlData.length; i++) {\n if (zrUtil.isArray(mlData[i])) {\n compatEC3CommonStyles(mlData[i][0]);\n compatEC3CommonStyles(mlData[i][1]);\n } else {\n compatEC3CommonStyles(mlData[i]);\n }\n }\n } // Series\n\n\n if (seriesOpt.type === 'gauge') {\n compatTextStyle(seriesOpt, 'axisLabel');\n compatTextStyle(seriesOpt, 'title');\n compatTextStyle(seriesOpt, 'detail');\n } else if (seriesOpt.type === 'treemap') {\n convertNormalEmphasis(seriesOpt.breadcrumb, 'itemStyle');\n zrUtil.each(seriesOpt.levels, function (opt) {\n removeEC3NormalStatus(opt);\n });\n } else if (seriesOpt.type === 'tree') {\n removeEC3NormalStatus(seriesOpt.leaves);\n } // sunburst starts from ec4, so it does not need to compat levels.\n\n}\n\nfunction toArr(o) {\n return zrUtil.isArray(o) ? o : o ? [o] : [];\n}\n\nfunction toObj(o) {\n return (zrUtil.isArray(o) ? o[0] : o) || {};\n}\n\nexport default function globalCompatStyle(option, isTheme) {\n each(toArr(option.series), function (seriesOpt) {\n isObject(seriesOpt) && processSeries(seriesOpt);\n });\n var axes = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'parallelAxis', 'radar'];\n isTheme && axes.push('valueAxis', 'categoryAxis', 'logAxis', 'timeAxis');\n each(axes, function (axisName) {\n each(toArr(option[axisName]), function (axisOpt) {\n if (axisOpt) {\n compatTextStyle(axisOpt, 'axisLabel');\n compatTextStyle(axisOpt.axisPointer, 'label');\n }\n });\n });\n each(toArr(option.parallel), function (parallelOpt) {\n var parallelAxisDefault = parallelOpt && parallelOpt.parallelAxisDefault;\n compatTextStyle(parallelAxisDefault, 'axisLabel');\n compatTextStyle(parallelAxisDefault && parallelAxisDefault.axisPointer, 'label');\n });\n each(toArr(option.calendar), function (calendarOpt) {\n convertNormalEmphasis(calendarOpt, 'itemStyle');\n compatTextStyle(calendarOpt, 'dayLabel');\n compatTextStyle(calendarOpt, 'monthLabel');\n compatTextStyle(calendarOpt, 'yearLabel');\n }); // radar.name.textStyle\n\n each(toArr(option.radar), function (radarOpt) {\n compatTextStyle(radarOpt, 'name'); // Use axisName instead of name because component has name property\n\n if (radarOpt.name && radarOpt.axisName == null) {\n radarOpt.axisName = radarOpt.name;\n delete radarOpt.name;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('name property in radar component has been changed to axisName');\n }\n }\n\n if (radarOpt.nameGap != null && radarOpt.axisNameGap == null) {\n radarOpt.axisNameGap = radarOpt.nameGap;\n delete radarOpt.nameGap;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('nameGap property in radar component has been changed to axisNameGap');\n }\n }\n });\n each(toArr(option.geo), function (geoOpt) {\n if (isObject(geoOpt)) {\n compatEC3CommonStyles(geoOpt);\n each(toArr(geoOpt.regions), function (regionObj) {\n compatEC3CommonStyles(regionObj);\n });\n }\n });\n each(toArr(option.timeline), function (timelineOpt) {\n compatEC3CommonStyles(timelineOpt);\n convertNormalEmphasis(timelineOpt, 'label');\n convertNormalEmphasis(timelineOpt, 'itemStyle');\n convertNormalEmphasis(timelineOpt, 'controlStyle', true);\n var data = timelineOpt.data;\n zrUtil.isArray(data) && zrUtil.each(data, function (item) {\n if (zrUtil.isObject(item)) {\n convertNormalEmphasis(item, 'label');\n convertNormalEmphasis(item, 'itemStyle');\n }\n });\n });\n each(toArr(option.toolbox), function (toolboxOpt) {\n convertNormalEmphasis(toolboxOpt, 'iconStyle');\n each(toolboxOpt.feature, function (featureOpt) {\n convertNormalEmphasis(featureOpt, 'iconStyle');\n });\n });\n compatTextStyle(toObj(option.axisPointer), 'label');\n compatTextStyle(toObj(option.tooltip).axisPointer, 'label'); // Clean logs\n // storedLogs = {};\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isArray, isObject, isTypedArray, defaults } from 'zrender/lib/core/util';\nimport compatStyle from './helper/compatStyle';\nimport { normalizeToArray } from '../util/model';\nimport { deprecateLog, deprecateReplaceLog } from '../util/log';\n\nfunction get(opt, path) {\n var pathArr = path.split(',');\n var obj = opt;\n\n for (var i = 0; i < pathArr.length; i++) {\n obj = obj && obj[pathArr[i]];\n\n if (obj == null) {\n break;\n }\n }\n\n return obj;\n}\n\nfunction set(opt, path, val, overwrite) {\n var pathArr = path.split(',');\n var obj = opt;\n var key;\n var i = 0;\n\n for (; i < pathArr.length - 1; i++) {\n key = pathArr[i];\n\n if (obj[key] == null) {\n obj[key] = {};\n }\n\n obj = obj[key];\n }\n\n if (overwrite || obj[pathArr[i]] == null) {\n obj[pathArr[i]] = val;\n }\n}\n\nfunction compatLayoutProperties(option) {\n option && each(LAYOUT_PROPERTIES, function (prop) {\n if (prop[0] in option && !(prop[1] in option)) {\n option[prop[1]] = option[prop[0]];\n }\n });\n}\n\nvar LAYOUT_PROPERTIES = [['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']];\nvar COMPATITABLE_COMPONENTS = ['grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'];\nvar BAR_ITEM_STYLE_MAP = [['borderRadius', 'barBorderRadius'], ['borderColor', 'barBorderColor'], ['borderWidth', 'barBorderWidth']];\n\nfunction compatBarItemStyle(option) {\n var itemStyle = option && option.itemStyle;\n\n if (itemStyle) {\n for (var i = 0; i < BAR_ITEM_STYLE_MAP.length; i++) {\n var oldName = BAR_ITEM_STYLE_MAP[i][1];\n var newName = BAR_ITEM_STYLE_MAP[i][0];\n\n if (itemStyle[oldName] != null) {\n itemStyle[newName] = itemStyle[oldName];\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(oldName, newName);\n }\n }\n }\n }\n}\n\nfunction compatPieLabel(option) {\n if (!option) {\n return;\n }\n\n if (option.alignTo === 'edge' && option.margin != null && option.edgeDistance == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('label.margin', 'label.edgeDistance', 'pie');\n }\n\n option.edgeDistance = option.margin;\n }\n}\n\nfunction compatSunburstState(option) {\n if (!option) {\n return;\n }\n\n if (option.downplay && !option.blur) {\n option.blur = option.downplay;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('downplay', 'blur', 'sunburst');\n }\n }\n}\n\nfunction compatGraphFocus(option) {\n if (!option) {\n return;\n }\n\n if (option.focusNodeAdjacency != null) {\n option.emphasis = option.emphasis || {};\n\n if (option.emphasis.focus == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('focusNodeAdjacency', 'emphasis: { focus: \\'adjacency\\'}', 'graph/sankey');\n }\n\n option.emphasis.focus = 'adjacency';\n }\n }\n}\n\nfunction traverseTree(data, cb) {\n if (data) {\n for (var i = 0; i < data.length; i++) {\n cb(data[i]);\n data[i] && traverseTree(data[i].children, cb);\n }\n }\n}\n\nexport default function globalBackwardCompat(option, isTheme) {\n compatStyle(option, isTheme); // Make sure series array for model initialization.\n\n option.series = normalizeToArray(option.series);\n each(option.series, function (seriesOpt) {\n if (!isObject(seriesOpt)) {\n return;\n }\n\n var seriesType = seriesOpt.type;\n\n if (seriesType === 'line') {\n if (seriesOpt.clipOverflow != null) {\n seriesOpt.clip = seriesOpt.clipOverflow;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('clipOverflow', 'clip', 'line');\n }\n }\n } else if (seriesType === 'pie' || seriesType === 'gauge') {\n if (seriesOpt.clockWise != null) {\n seriesOpt.clockwise = seriesOpt.clockWise;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('clockWise', 'clockwise');\n }\n }\n\n compatPieLabel(seriesOpt.label);\n var data = seriesOpt.data;\n\n if (data && !isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n compatPieLabel(data[i]);\n }\n }\n\n if (seriesOpt.hoverOffset != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (seriesOpt.emphasis.scaleSize = null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('hoverOffset', 'emphasis.scaleSize');\n }\n\n seriesOpt.emphasis.scaleSize = seriesOpt.hoverOffset;\n }\n }\n } else if (seriesType === 'gauge') {\n var pointerColor = get(seriesOpt, 'pointer.color');\n pointerColor != null && set(seriesOpt, 'itemStyle.color', pointerColor);\n } else if (seriesType === 'bar') {\n compatBarItemStyle(seriesOpt);\n compatBarItemStyle(seriesOpt.backgroundStyle);\n compatBarItemStyle(seriesOpt.emphasis);\n var data = seriesOpt.data;\n\n if (data && !isTypedArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (typeof data[i] === 'object') {\n compatBarItemStyle(data[i]);\n compatBarItemStyle(data[i] && data[i].emphasis);\n }\n }\n }\n } else if (seriesType === 'sunburst') {\n var highlightPolicy = seriesOpt.highlightPolicy;\n\n if (highlightPolicy) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (!seriesOpt.emphasis.focus) {\n seriesOpt.emphasis.focus = highlightPolicy;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('highlightPolicy', 'emphasis.focus', 'sunburst');\n }\n }\n }\n\n compatSunburstState(seriesOpt);\n traverseTree(seriesOpt.data, compatSunburstState);\n } else if (seriesType === 'graph' || seriesType === 'sankey') {\n compatGraphFocus(seriesOpt); // TODO nodes, edges?\n } else if (seriesType === 'map') {\n if (seriesOpt.mapType && !seriesOpt.map) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('mapType', 'map', 'map');\n }\n\n seriesOpt.map = seriesOpt.mapType;\n }\n\n if (seriesOpt.mapLocation) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('`mapLocation` is not used anymore.');\n }\n\n defaults(seriesOpt, seriesOpt.mapLocation);\n }\n }\n\n if (seriesOpt.hoverAnimation != null) {\n seriesOpt.emphasis = seriesOpt.emphasis || {};\n\n if (seriesOpt.emphasis && seriesOpt.emphasis.scale == null) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('hoverAnimation', 'emphasis.scale');\n }\n\n seriesOpt.emphasis.scale = seriesOpt.hoverAnimation;\n }\n }\n\n compatLayoutProperties(seriesOpt);\n }); // dataRange has changed to visualMap\n\n if (option.dataRange) {\n option.visualMap = option.dataRange;\n }\n\n each(COMPATITABLE_COMPONENTS, function (componentName) {\n var options = option[componentName];\n\n if (options) {\n if (!isArray(options)) {\n options = [options];\n }\n\n each(options, function (option) {\n compatLayoutProperties(option);\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport { addSafe } from '../util/number'; // (1) [Caution]: the logic is correct based on the premises:\n// data processing stage is blocked in stream.\n// See \n// (2) Only register once when import repeatly.\n// Should be executed after series filtered and before stack calculation.\n\nexport default function dataStack(ecModel) {\n var stackInfoMap = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack.\n\n if (stack) {\n var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n var data = seriesModel.getData();\n var stackInfo = {\n // Used for calculate axis extent automatically.\n // TODO: Type getCalculationInfo return more specific type?\n stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n stackedDimension: data.getCalculationInfo('stackedDimension'),\n stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n data: data,\n seriesModel: seriesModel\n }; // If stacked on axis that do not support data stack.\n\n if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) {\n return;\n }\n\n stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel);\n stackInfoList.push(stackInfo);\n }\n });\n stackInfoMap.each(calculateStack);\n}\n\nfunction calculateStack(stackInfoList) {\n each(stackInfoList, function (targetStackInfo, idxInStack) {\n var resultVal = [];\n var resultNaN = [NaN, NaN];\n var dims = [targetStackInfo.stackResultDimension, targetStackInfo.stackedOverDimension];\n var targetData = targetStackInfo.data;\n var isStackedByIndex = targetStackInfo.isStackedByIndex; // Should not write on raw data, because stack series model list changes\n // depending on legend selection.\n\n var newData = targetData.map(dims, function (v0, v1, dataIndex) {\n var sum = targetData.get(targetStackInfo.stackedDimension, dataIndex); // Consider `connectNulls` of line area, if value is NaN, stackedOver\n // should also be NaN, to draw a appropriate belt area.\n\n if (isNaN(sum)) {\n return resultNaN;\n }\n\n var byValue;\n var stackedDataRawIndex;\n\n if (isStackedByIndex) {\n stackedDataRawIndex = targetData.getRawIndex(dataIndex);\n } else {\n byValue = targetData.get(targetStackInfo.stackedByDimension, dataIndex);\n } // If stackOver is NaN, chart view will render point on value start.\n\n\n var stackedOver = NaN;\n\n for (var j = idxInStack - 1; j >= 0; j--) {\n var stackInfo = stackInfoList[j]; // Has been optimized by inverted indices on `stackedByDimension`.\n\n if (!isStackedByIndex) {\n stackedDataRawIndex = stackInfo.data.rawIndexOf(stackInfo.stackedByDimension, byValue);\n }\n\n if (stackedDataRawIndex >= 0) {\n var val = stackInfo.data.getByRawIndex(stackInfo.stackResultDimension, stackedDataRawIndex); // Considering positive stack, negative stack and empty data\n\n if (sum >= 0 && val > 0 || // Positive stack\n sum <= 0 && val < 0 // Negative stack\n ) {\n // The sum should be as less as possible to be effected\n // by floating arithmetic problem. A wrong result probably\n // filtered incorrectly by axis min/max.\n sum = addSafe(sum, val);\n stackedOver = val;\n break;\n }\n }\n }\n\n resultVal[0] = sum;\n resultVal[1] = stackedOver;\n return resultVal;\n });\n targetData.hostModel.setData(newData); // Update for consequent calculation\n\n targetStackInfo.data = newData;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isTypedArray, clone, createHashMap, isArray, isObject, isArrayLike, hasOwn, assert, each, map, isNumber, isString } from 'zrender/lib/core/util';\nimport { SOURCE_FORMAT_ORIGINAL, SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_UNKNOWN, SOURCE_FORMAT_KEYED_COLUMNS, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS, SERIES_LAYOUT_BY_ROW } from '../util/types';\nimport { getDataItemValue } from '../util/model';\n; // @inner\n\nvar SourceImpl =\n/** @class */\nfunction () {\n // readonly frozen: boolean;\n function SourceImpl(fields) {\n this.data = fields.data || (fields.sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS ? {} : []);\n this.sourceFormat = fields.sourceFormat || SOURCE_FORMAT_UNKNOWN; // Visit config\n\n this.seriesLayoutBy = fields.seriesLayoutBy || SERIES_LAYOUT_BY_COLUMN;\n this.startIndex = fields.startIndex || 0;\n this.dimensionsDefine = fields.dimensionsDefine;\n this.dimensionsDetectedCount = fields.dimensionsDetectedCount;\n this.encodeDefine = fields.encodeDefine;\n this.metaRawOption = fields.metaRawOption;\n }\n\n return SourceImpl;\n}();\n\nexport function isSourceInstance(val) {\n return val instanceof SourceImpl;\n}\nexport function createSource(sourceData, thisMetaRawOption, // can be null. If not provided, auto detect it from `sourceData`.\nsourceFormat, encodeDefine // can be null\n) {\n sourceFormat = sourceFormat || detectSourceFormat(sourceData);\n var seriesLayoutBy = thisMetaRawOption.seriesLayoutBy;\n var determined = determineSourceDimensions(sourceData, sourceFormat, seriesLayoutBy, thisMetaRawOption.sourceHeader, thisMetaRawOption.dimensions);\n var source = new SourceImpl({\n data: sourceData,\n sourceFormat: sourceFormat,\n seriesLayoutBy: seriesLayoutBy,\n dimensionsDefine: determined.dimensionsDefine,\n startIndex: determined.startIndex,\n dimensionsDetectedCount: determined.dimensionsDetectedCount,\n encodeDefine: makeEncodeDefine(encodeDefine),\n metaRawOption: clone(thisMetaRawOption)\n });\n return source;\n}\n/**\n * Wrap original series data for some compatibility cases.\n */\n\nexport function createSourceFromSeriesDataOption(data) {\n return new SourceImpl({\n data: data,\n sourceFormat: isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL\n });\n}\n/**\n * Clone source but excludes source data.\n */\n\nexport function cloneSourceShallow(source) {\n return new SourceImpl({\n data: source.data,\n sourceFormat: source.sourceFormat,\n seriesLayoutBy: source.seriesLayoutBy,\n dimensionsDefine: clone(source.dimensionsDefine),\n startIndex: source.startIndex,\n dimensionsDetectedCount: source.dimensionsDetectedCount,\n encodeDefine: makeEncodeDefine(source.encodeDefine)\n });\n}\n\nfunction makeEncodeDefine(encodeDefine) {\n // null means user not specify `series.encode`.\n return encodeDefine ? createHashMap(encodeDefine) : null;\n}\n/**\n * Note: An empty array will be detected as `SOURCE_FORMAT_ARRAY_ROWS`.\n */\n\n\nexport function detectSourceFormat(data) {\n var sourceFormat = SOURCE_FORMAT_UNKNOWN;\n\n if (isTypedArray(data)) {\n sourceFormat = SOURCE_FORMAT_TYPED_ARRAY;\n } else if (isArray(data)) {\n // FIXME Whether tolerate null in top level array?\n if (data.length === 0) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n }\n\n for (var i = 0, len = data.length; i < len; i++) {\n var item = data[i];\n\n if (item == null) {\n continue;\n } else if (isArray(item)) {\n sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;\n break;\n } else if (isObject(item)) {\n sourceFormat = SOURCE_FORMAT_OBJECT_ROWS;\n break;\n }\n }\n } else if (isObject(data)) {\n for (var key in data) {\n if (hasOwn(data, key) && isArrayLike(data[key])) {\n sourceFormat = SOURCE_FORMAT_KEYED_COLUMNS;\n break;\n }\n }\n }\n\n return sourceFormat;\n}\n/**\n * Determine the source definitions from data standalone dimensions definitions\n * are not specified.\n */\n\nfunction determineSourceDimensions(data, sourceFormat, seriesLayoutBy, sourceHeader, // standalone raw dimensions definition, like:\n// {\n// dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]\n// }\n// in `dataset` or `series`\ndimensionsDefine) {\n var dimensionsDetectedCount;\n var startIndex; // PEDING: could data be null/undefined here?\n // currently, if `dataset.source` not specified, error thrown.\n // if `series.data` not specified, nothing rendered without error thrown.\n // Should test these cases.\n\n if (!data) {\n return {\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n startIndex: startIndex,\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var dataArrayRows = data; // Rule: Most of the first line are string: it is header.\n // Caution: consider a line with 5 string and 1 number,\n // it still can not be sure it is a head, because the\n // 5 string may be 5 values of category columns.\n\n if (sourceHeader === 'auto' || sourceHeader == null) {\n arrayRowsTravelFirst(function (val) {\n // '-' is regarded as null/undefined.\n if (val != null && val !== '-') {\n if (isString(val)) {\n startIndex == null && (startIndex = 1);\n } else {\n startIndex = 0;\n }\n } // 10 is an experience number, avoid long loop.\n\n }, seriesLayoutBy, dataArrayRows, 10);\n } else {\n startIndex = isNumber(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;\n }\n\n if (!dimensionsDefine && startIndex === 1) {\n dimensionsDefine = [];\n arrayRowsTravelFirst(function (val, index) {\n dimensionsDefine[index] = val != null ? val + '' : '';\n }, seriesLayoutBy, dataArrayRows, Infinity);\n }\n\n dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === SERIES_LAYOUT_BY_ROW ? dataArrayRows.length : dataArrayRows[0] ? dataArrayRows[0].length : null;\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n if (!dimensionsDefine) {\n dimensionsDefine = objectRowsCollectDimensions(data);\n }\n } else if (sourceFormat === SOURCE_FORMAT_KEYED_COLUMNS) {\n if (!dimensionsDefine) {\n dimensionsDefine = [];\n each(data, function (colArr, key) {\n dimensionsDefine.push(key);\n });\n }\n } else if (sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var value0 = getDataItemValue(data[0]);\n dimensionsDetectedCount = isArray(value0) && value0.length || 1;\n } else if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!!dimensionsDefine, 'dimensions must be given if data is TypedArray.');\n }\n }\n\n return {\n startIndex: startIndex,\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n}\n\nfunction objectRowsCollectDimensions(data) {\n var firstIndex = 0;\n var obj;\n\n while (firstIndex < data.length && !(obj = data[firstIndex++])) {} // jshint ignore: line\n\n\n if (obj) {\n var dimensions_1 = [];\n each(obj, function (value, key) {\n dimensions_1.push(key);\n });\n return dimensions_1;\n }\n} // Consider dimensions defined like ['A', 'price', 'B', 'price', 'C', 'price'],\n// which is reasonable. But dimension name is duplicated.\n// Returns undefined or an array contains only object without null/undefiend or string.\n\n\nfunction normalizeDimensionsOption(dimensionsDefine) {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n\n var nameMap = createHashMap();\n return map(dimensionsDefine, function (rawItem, index) {\n rawItem = isObject(rawItem) ? rawItem : {\n name: rawItem\n }; // Other fields will be discarded.\n\n var item = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n }; // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n\n if (item.name == null) {\n return item;\n } // Also consider number form like 2012.\n\n\n item.name += ''; // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n var exist = nameMap.get(item.name);\n\n if (!exist) {\n nameMap.set(item.name, {\n count: 1\n });\n } else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}\n\nfunction arrayRowsTravelFirst(cb, seriesLayoutBy, data, maxLoop) {\n if (seriesLayoutBy === SERIES_LAYOUT_BY_ROW) {\n for (var i = 0; i < data.length && i < maxLoop; i++) {\n cb(data[i] ? data[i][0] : null, i);\n }\n } else {\n var value0 = data[0] || [];\n\n for (var i = 0; i < value0.length && i < maxLoop; i++) {\n cb(value0[i], i);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar _a, _b, _c; // TODO\n// ??? refactor? check the outer usage of data provider.\n// merge with defaultDimValueGetter?\n\n\nimport { isTypedArray, extend, assert, each, isObject, bind } from 'zrender/lib/core/util';\nimport { getDataItemValue } from '../../util/model';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../Source';\nimport { SOURCE_FORMAT_ORIGINAL, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_KEYED_COLUMNS, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ARRAY_ROWS, SERIES_LAYOUT_BY_COLUMN, SERIES_LAYOUT_BY_ROW } from '../../util/types';\nvar providerMethods;\nvar mountMethods;\n/**\n * If normal array used, mutable chunk size is supported.\n * If typed array used, chunk size must be fixed.\n */\n\nvar DefaultDataProvider =\n/** @class */\nfunction () {\n function DefaultDataProvider(sourceParam, dimSize) {\n // let source: Source;\n var source = !isSourceInstance(sourceParam) ? createSourceFromSeriesDataOption(sourceParam) : sourceParam; // declare source is Source;\n\n this._source = source;\n var data = this._data = source.data; // Typed array. TODO IE10+?\n\n if (source.sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n if (process.env.NODE_ENV !== 'production') {\n if (dimSize == null) {\n throw new Error('Typed array data must specify dimension size');\n }\n }\n\n this._offset = 0;\n this._dimSize = dimSize;\n this._data = data;\n }\n\n mountMethods(this, data, source);\n }\n\n DefaultDataProvider.prototype.getSource = function () {\n return this._source;\n };\n\n DefaultDataProvider.prototype.count = function () {\n return 0;\n };\n\n DefaultDataProvider.prototype.getItem = function (idx, out) {\n return;\n };\n\n DefaultDataProvider.prototype.appendData = function (newData) {};\n\n DefaultDataProvider.prototype.clean = function () {};\n\n DefaultDataProvider.protoInitialize = function () {\n // PENDING: To avoid potential incompat (e.g., prototype\n // is visited somewhere), still init them on prototype.\n var proto = DefaultDataProvider.prototype;\n proto.pure = false;\n proto.persistent = true;\n }();\n\n DefaultDataProvider.internalField = function () {\n var _a;\n\n mountMethods = function (provider, data, source) {\n var sourceFormat = source.sourceFormat;\n var seriesLayoutBy = source.seriesLayoutBy;\n var startIndex = source.startIndex;\n var dimsDef = source.dimensionsDefine;\n var methods = providerMethods[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(methods, 'Invalide sourceFormat: ' + sourceFormat);\n }\n\n extend(provider, methods);\n\n if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) {\n provider.getItem = getItemForTypedArray;\n provider.count = countForTypedArray;\n provider.fillStorage = fillStorageForTypedArray;\n } else {\n var rawItemGetter = getRawSourceItemGetter(sourceFormat, seriesLayoutBy);\n provider.getItem = bind(rawItemGetter, null, data, startIndex, dimsDef);\n var rawCounter = getRawSourceDataCounter(sourceFormat, seriesLayoutBy);\n provider.count = bind(rawCounter, null, data, startIndex, dimsDef);\n }\n };\n\n var getItemForTypedArray = function (idx, out) {\n idx = idx - this._offset;\n out = out || [];\n var data = this._data;\n var dimSize = this._dimSize;\n var offset = dimSize * idx;\n\n for (var i = 0; i < dimSize; i++) {\n out[i] = data[offset + i];\n }\n\n return out;\n };\n\n var fillStorageForTypedArray = function (start, end, storage, extent) {\n var data = this._data;\n var dimSize = this._dimSize;\n\n for (var dim = 0; dim < dimSize; dim++) {\n var dimExtent = extent[dim];\n var min = dimExtent[0] == null ? Infinity : dimExtent[0];\n var max = dimExtent[1] == null ? -Infinity : dimExtent[1];\n var count = end - start;\n var arr = storage[dim];\n\n for (var i = 0; i < count; i++) {\n // appendData with TypedArray will always do replace in provider.\n var val = data[i * dimSize + dim];\n arr[start + i] = val;\n val < min && (min = val);\n val > max && (max = val);\n }\n\n dimExtent[0] = min;\n dimExtent[1] = max;\n }\n };\n\n var countForTypedArray = function () {\n return this._data ? this._data.length / this._dimSize : 0;\n };\n\n providerMethods = (_a = {}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = {\n pure: true,\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = {\n pure: true,\n appendData: function () {\n throw new Error('Do not support appendData when set seriesLayoutBy: \"row\".');\n }\n }, _a[SOURCE_FORMAT_OBJECT_ROWS] = {\n pure: true,\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_KEYED_COLUMNS] = {\n pure: true,\n appendData: function (newData) {\n var data = this._data;\n each(newData, function (newCol, key) {\n var oldCol = data[key] || (data[key] = []);\n\n for (var i = 0; i < (newCol || []).length; i++) {\n oldCol.push(newCol[i]);\n }\n });\n }\n }, _a[SOURCE_FORMAT_ORIGINAL] = {\n appendData: appendDataSimply\n }, _a[SOURCE_FORMAT_TYPED_ARRAY] = {\n persistent: false,\n pure: true,\n appendData: function (newData) {\n if (process.env.NODE_ENV !== 'production') {\n assert(isTypedArray(newData), 'Added data must be TypedArray if data in initialization is TypedArray');\n }\n\n this._data = newData;\n },\n // Clean self if data is already used.\n clean: function () {\n // PENDING\n this._offset += this.count();\n this._data = null;\n }\n }, _a);\n\n function appendDataSimply(newData) {\n for (var i = 0; i < newData.length; i++) {\n this._data.push(newData[i]);\n }\n }\n }();\n\n return DefaultDataProvider;\n}();\n\nexport { DefaultDataProvider };\n\nvar getItemSimply = function (rawData, startIndex, dimsDef, idx) {\n return rawData[idx];\n};\n\nvar rawSourceItemGetterMap = (_a = {}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef, idx) {\n return rawData[idx + startIndex];\n}, _a[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef, idx) {\n idx += startIndex;\n var item = [];\n var data = rawData;\n\n for (var i = 0; i < data.length; i++) {\n var row = data[i];\n item.push(row ? row[idx] : null);\n }\n\n return item;\n}, _a[SOURCE_FORMAT_OBJECT_ROWS] = getItemSimply, _a[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef, idx) {\n var item = [];\n\n for (var i = 0; i < dimsDef.length; i++) {\n var dimName = dimsDef[i].name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (dimName == null) {\n throw new Error();\n }\n }\n\n var col = rawData[dimName];\n item.push(col ? col[idx] : null);\n }\n\n return item;\n}, _a[SOURCE_FORMAT_ORIGINAL] = getItemSimply, _a);\nexport function getRawSourceItemGetter(sourceFormat, seriesLayoutBy) {\n var method = rawSourceItemGetterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport get item on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n\n return method;\n}\n\nvar countSimply = function (rawData, startIndex, dimsDef) {\n return rawData.length;\n};\n\nvar rawSourceDataCounterMap = (_b = {}, _b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN] = function (rawData, startIndex, dimsDef) {\n return Math.max(0, rawData.length - startIndex);\n}, _b[SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW] = function (rawData, startIndex, dimsDef) {\n var row = rawData[0];\n return row ? Math.max(0, row.length - startIndex) : 0;\n}, _b[SOURCE_FORMAT_OBJECT_ROWS] = countSimply, _b[SOURCE_FORMAT_KEYED_COLUMNS] = function (rawData, startIndex, dimsDef) {\n var dimName = dimsDef[0].name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (dimName == null) {\n throw new Error();\n }\n }\n\n var col = rawData[dimName];\n return col ? col.length : 0;\n}, _b[SOURCE_FORMAT_ORIGINAL] = countSimply, _b);\nexport function getRawSourceDataCounter(sourceFormat, seriesLayoutBy) {\n var method = rawSourceDataCounterMap[getMethodMapKey(sourceFormat, seriesLayoutBy)];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport count on \"' + sourceFormat + '\", \"' + seriesLayoutBy + '\".');\n }\n\n return method;\n}\n\nvar getRawValueSimply = function (dataItem, dimIndex, dimName) {\n return dimIndex != null ? dataItem[dimIndex] : dataItem;\n};\n\nvar rawSourceValueGetterMap = (_c = {}, _c[SOURCE_FORMAT_ARRAY_ROWS] = getRawValueSimply, _c[SOURCE_FORMAT_OBJECT_ROWS] = function (dataItem, dimIndex, dimName) {\n return dimIndex != null ? dataItem[dimName] : dataItem;\n}, _c[SOURCE_FORMAT_KEYED_COLUMNS] = getRawValueSimply, _c[SOURCE_FORMAT_ORIGINAL] = function (dataItem, dimIndex, dimName) {\n // FIXME: In some case (markpoint in geo (geo-map.html)),\n // dataItem is {coord: [...]}\n var value = getDataItemValue(dataItem);\n return dimIndex == null || !(value instanceof Array) ? value : value[dimIndex];\n}, _c[SOURCE_FORMAT_TYPED_ARRAY] = getRawValueSimply, _c);\nexport function getRawSourceValueGetter(sourceFormat) {\n var method = rawSourceValueGetterMap[sourceFormat];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(method, 'Do not suppport get value on \"' + sourceFormat + '\".');\n }\n\n return method;\n}\n\nfunction getMethodMapKey(sourceFormat, seriesLayoutBy) {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS ? sourceFormat + '_' + seriesLayoutBy : sourceFormat;\n} // ??? FIXME can these logic be more neat: getRawValue, getRawDataItem,\n// Consider persistent.\n// Caution: why use raw value to display on label or tooltip?\n// A reason is to avoid format. For example time value we do not know\n// how to format is expected. More over, if stack is used, calculated\n// value may be 0.91000000001, which have brings trouble to display.\n// TODO: consider how to treat null/undefined/NaN when display?\n\n\nexport function retrieveRawValue(data, dataIndex, dim // If dimIndex is null/undefined, return OptionDataItem.\n// Otherwise, return OptionDataValue.\n) {\n if (!data) {\n return;\n } // Consider data may be not persistent.\n\n\n var dataItem = data.getRawDataItem(dataIndex);\n\n if (dataItem == null) {\n return;\n }\n\n var sourceFormat = data.getProvider().getSource().sourceFormat;\n var dimName;\n var dimIndex;\n var dimInfo = data.getDimensionInfo(dim);\n\n if (dimInfo) {\n dimName = dimInfo.name;\n dimIndex = dimInfo.index;\n }\n\n return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, dimName);\n}\n/**\n * Compatible with some cases (in pie, map) like:\n * data: [{name: 'xx', value: 5, selected: true}, ...]\n * where only sourceFormat is 'original' and 'objectRows' supported.\n *\n * // TODO\n * Supported detail options in data item when using 'arrayRows'.\n *\n * @param data\n * @param dataIndex\n * @param attr like 'selected'\n */\n\nexport function retrieveRawAttr(data, dataIndex, attr) {\n if (!data) {\n return;\n }\n\n var sourceFormat = data.getProvider().getSource().sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\n return;\n }\n\n var dataItem = data.getRawDataItem(dataIndex);\n\n if (sourceFormat === SOURCE_FORMAT_ORIGINAL && !isObject(dataItem)) {\n dataItem = null;\n }\n\n if (dataItem) {\n return dataItem[attr];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { formatTpl } from '../../util/format';\nimport { makePrintable } from '../../util/log';\nvar DIMENSION_LABEL_REG = /\\{@(.+?)\\}/g;\n\nvar DataFormatMixin =\n/** @class */\nfunction () {\n function DataFormatMixin() {}\n /**\n * Get params for formatter\n */\n\n\n DataFormatMixin.prototype.getDataParams = function (dataIndex, dataType) {\n var data = this.getData(dataType);\n var rawValue = this.getRawValue(dataIndex, dataType);\n var rawDataIndex = data.getRawIndex(dataIndex);\n var name = data.getName(dataIndex);\n var itemOpt = data.getRawDataItem(dataIndex);\n var style = data.getItemVisual(dataIndex, 'style');\n var color = style && style[data.getItemVisual(dataIndex, 'drawType') || 'fill'];\n var borderColor = style && style.stroke;\n var mainType = this.mainType;\n var isSeries = mainType === 'series';\n var userOutput = data.userOutput;\n return {\n componentType: mainType,\n componentSubType: this.subType,\n componentIndex: this.componentIndex,\n seriesType: isSeries ? this.subType : null,\n seriesIndex: this.seriesIndex,\n seriesId: isSeries ? this.id : null,\n seriesName: isSeries ? this.name : null,\n name: name,\n dataIndex: rawDataIndex,\n data: itemOpt,\n dataType: dataType,\n value: rawValue,\n color: color,\n borderColor: borderColor,\n dimensionNames: userOutput ? userOutput.dimensionNames : null,\n encode: userOutput ? userOutput.encode : null,\n // Param name list for mapping `a`, `b`, `c`, `d`, `e`\n $vars: ['seriesName', 'name', 'value']\n };\n };\n /**\n * Format label\n * @param dataIndex\n * @param status 'normal' by default\n * @param dataType\n * @param labelDimIndex Only used in some chart that\n * use formatter in different dimensions, like radar.\n * @param formatter Formatter given outside.\n * @return return null/undefined if no formatter\n */\n\n\n DataFormatMixin.prototype.getFormattedLabel = function (dataIndex, status, dataType, labelDimIndex, formatter, extendParams) {\n status = status || 'normal';\n var data = this.getData(dataType);\n var params = this.getDataParams(dataIndex, dataType);\n\n if (extendParams) {\n params.value = extendParams.interpolatedValue;\n }\n\n if (labelDimIndex != null && zrUtil.isArray(params.value)) {\n params.value = params.value[labelDimIndex];\n }\n\n if (!formatter) {\n var itemModel = data.getItemModel(dataIndex); // @ts-ignore\n\n formatter = itemModel.get(status === 'normal' ? ['label', 'formatter'] : [status, 'label', 'formatter']);\n }\n\n if (typeof formatter === 'function') {\n params.status = status;\n params.dimensionIndex = labelDimIndex;\n return formatter(params);\n } else if (typeof formatter === 'string') {\n var str = formatTpl(formatter, params); // Support 'aaa{@[3]}bbb{@product}ccc'.\n // Do not support '}' in dim name util have to.\n\n return str.replace(DIMENSION_LABEL_REG, function (origin, dimStr) {\n var len = dimStr.length;\n var dimLoose = dimStr.charAt(0) === '[' && dimStr.charAt(len - 1) === ']' ? +dimStr.slice(1, len - 1) // Also support: '[]' => 0\n : dimStr;\n var val = retrieveRawValue(data, dataIndex, dimLoose);\n\n if (extendParams && zrUtil.isArray(extendParams.interpolatedValue)) {\n var dimInfo = data.getDimensionInfo(dimLoose);\n\n if (dimInfo) {\n val = extendParams.interpolatedValue[dimInfo.index];\n }\n }\n\n return val != null ? val + '' : '';\n });\n }\n };\n /**\n * Get raw value in option\n */\n\n\n DataFormatMixin.prototype.getRawValue = function (idx, dataType) {\n return retrieveRawValue(this.getData(dataType), idx);\n };\n /**\n * Should be implemented.\n * @param {number} dataIndex\n * @param {boolean} [multipleSeries=false]\n * @param {string} [dataType]\n */\n\n\n DataFormatMixin.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n // Empty function\n return;\n };\n\n return DataFormatMixin;\n}();\n\nexport { DataFormatMixin };\n; // PENDING: previously we accept this type when calling `formatTooltip`,\n// but guess little chance has been used outside. Do we need to backward\n// compat it?\n// type TooltipFormatResultLegacyObject = {\n// // `html` means the markup language text, either in 'html' or 'richText'.\n// // The name `html` is not appropriate becuase in 'richText' it is not a HTML\n// // string. But still support it for backward compat.\n// html: string;\n// markers: Dictionary;\n// };\n\n/**\n * For backward compat, normalize the return from `formatTooltip`.\n */\n\nexport function normalizeTooltipFormatResult(result // markersExisting: Dictionary\n) {\n var markupText; // let markers: Dictionary;\n\n var markupFragment;\n\n if (zrUtil.isObject(result)) {\n if (result.type) {\n markupFragment = result;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('The return type of `formatTooltip` is not supported: ' + makePrintable(result));\n }\n } // else {\n // markupText = (result as TooltipFormatResultLegacyObject).html;\n // markers = (result as TooltipFormatResultLegacyObject).markers;\n // if (markersExisting) {\n // markers = zrUtil.merge(markersExisting, markers);\n // }\n // }\n\n } else {\n markupText = result;\n }\n\n return {\n markupText: markupText,\n // markers: markers || markersExisting,\n markupFragment: markupFragment\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray } from 'zrender/lib/core/util';\n;\n/**\n * @param {Object} define\n * @return See the return of `createTask`.\n */\n\nexport function createTask(define) {\n return new Task(define);\n}\n\nvar Task =\n/** @class */\nfunction () {\n function Task(define) {\n define = define || {};\n this._reset = define.reset;\n this._plan = define.plan;\n this._count = define.count;\n this._onDirty = define.onDirty;\n this._dirty = true;\n }\n /**\n * @param step Specified step.\n * @param skip Skip customer perform call.\n * @param modBy Sampling window size.\n * @param modDataCount Sampling count.\n * @return whether unfinished.\n */\n\n\n Task.prototype.perform = function (performArgs) {\n var upTask = this._upstream;\n var skip = performArgs && performArgs.skip; // TODO some refactor.\n // Pull data. Must pull data each time, because context.data\n // may be updated by Series.setData.\n\n if (this._dirty && upTask) {\n var context = this.context;\n context.data = context.outputData = upTask.context.outputData;\n }\n\n if (this.__pipeline) {\n this.__pipeline.currentTask = this;\n }\n\n var planResult;\n\n if (this._plan && !skip) {\n planResult = this._plan(this.context);\n } // Support sharding by mod, which changes the render sequence and makes the rendered graphic\n // elements uniformed distributed when progress, especially when moving or zooming.\n\n\n var lastModBy = normalizeModBy(this._modBy);\n var lastModDataCount = this._modDataCount || 0;\n var modBy = normalizeModBy(performArgs && performArgs.modBy);\n var modDataCount = performArgs && performArgs.modDataCount || 0;\n\n if (lastModBy !== modBy || lastModDataCount !== modDataCount) {\n planResult = 'reset';\n }\n\n function normalizeModBy(val) {\n !(val >= 1) && (val = 1); // jshint ignore:line\n\n return val;\n }\n\n var forceFirstProgress;\n\n if (this._dirty || planResult === 'reset') {\n this._dirty = false;\n forceFirstProgress = this._doReset(skip);\n }\n\n this._modBy = modBy;\n this._modDataCount = modDataCount;\n var step = performArgs && performArgs.step;\n\n if (upTask) {\n if (process.env.NODE_ENV !== 'production') {\n assert(upTask._outputDueEnd != null);\n }\n\n this._dueEnd = upTask._outputDueEnd;\n } // DataTask or overallTask\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this._progress || this._count);\n }\n\n this._dueEnd = this._count ? this._count(this.context) : Infinity;\n } // Note: Stubs, that its host overall task let it has progress, has progress.\n // If no progress, pass index from upstream to downstream each time plan called.\n\n\n if (this._progress) {\n var start = this._dueIndex;\n var end = Math.min(step != null ? this._dueIndex + step : Infinity, this._dueEnd);\n\n if (!skip && (forceFirstProgress || start < end)) {\n var progress = this._progress;\n\n if (isArray(progress)) {\n for (var i = 0; i < progress.length; i++) {\n this._doProgress(progress[i], start, end, modBy, modDataCount);\n }\n } else {\n this._doProgress(progress, start, end, modBy, modDataCount);\n }\n }\n\n this._dueIndex = end; // If no `outputDueEnd`, assume that output data and\n // input data is the same, so use `dueIndex` as `outputDueEnd`.\n\n var outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : end;\n\n if (process.env.NODE_ENV !== 'production') {\n // ??? Can not rollback.\n assert(outputDueEnd >= this._outputDueEnd);\n }\n\n this._outputDueEnd = outputDueEnd;\n } else {\n // (1) Some overall task has no progress.\n // (2) Stubs, that its host overall task do not let it has progress, has no progress.\n // This should always be performed so it can be passed to downstream.\n this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;\n }\n\n return this.unfinished();\n };\n\n Task.prototype.dirty = function () {\n this._dirty = true;\n this._onDirty && this._onDirty(this.context);\n };\n\n Task.prototype._doProgress = function (progress, start, end, modBy, modDataCount) {\n iterator.reset(start, end, modBy, modDataCount);\n this._callingProgress = progress;\n\n this._callingProgress({\n start: start,\n end: end,\n count: end - start,\n next: iterator.next\n }, this.context);\n };\n\n Task.prototype._doReset = function (skip) {\n this._dueIndex = this._outputDueEnd = this._dueEnd = 0;\n this._settedOutputEnd = null;\n var progress;\n var forceFirstProgress;\n\n if (!skip && this._reset) {\n progress = this._reset(this.context);\n\n if (progress && progress.progress) {\n forceFirstProgress = progress.forceFirstProgress;\n progress = progress.progress;\n } // To simplify no progress checking, array must has item.\n\n\n if (isArray(progress) && !progress.length) {\n progress = null;\n }\n }\n\n this._progress = progress;\n this._modBy = this._modDataCount = null;\n var downstream = this._downstream;\n downstream && downstream.dirty();\n return forceFirstProgress;\n };\n\n Task.prototype.unfinished = function () {\n return this._progress && this._dueIndex < this._dueEnd;\n };\n /**\n * @param downTask The downstream task.\n * @return The downstream task.\n */\n\n\n Task.prototype.pipe = function (downTask) {\n if (process.env.NODE_ENV !== 'production') {\n assert(downTask && !downTask._disposed && downTask !== this);\n } // If already downstream, do not dirty downTask.\n\n\n if (this._downstream !== downTask || this._dirty) {\n this._downstream = downTask;\n downTask._upstream = this;\n downTask.dirty();\n }\n };\n\n Task.prototype.dispose = function () {\n if (this._disposed) {\n return;\n }\n\n this._upstream && (this._upstream._downstream = null);\n this._downstream && (this._downstream._upstream = null);\n this._dirty = false;\n this._disposed = true;\n };\n\n Task.prototype.getUpstream = function () {\n return this._upstream;\n };\n\n Task.prototype.getDownstream = function () {\n return this._downstream;\n };\n\n Task.prototype.setOutputEnd = function (end) {\n // This only happend in dataTask, dataZoom, map, currently.\n // where dataZoom do not set end each time, but only set\n // when reset. So we should record the setted end, in case\n // that the stub of dataZoom perform again and earse the\n // setted end by upstream.\n this._outputDueEnd = this._settedOutputEnd = end;\n };\n\n return Task;\n}();\n\nexport { Task };\n\nvar iterator = function () {\n var end;\n var current;\n var modBy;\n var modDataCount;\n var winCount;\n var it = {\n reset: function (s, e, sStep, sCount) {\n current = s;\n end = e;\n modBy = sStep;\n modDataCount = sCount;\n winCount = Math.ceil(modDataCount / modBy);\n it.next = modBy > 1 && modDataCount > 0 ? modNext : sequentialNext;\n }\n };\n return it;\n\n function sequentialNext() {\n return current < end ? current++ : null;\n }\n\n function modNext() {\n var dataIndex = current % winCount * modBy + Math.ceil(current / winCount);\n var result = current >= end ? null : dataIndex < modDataCount ? dataIndex // If modDataCount is smaller than data.count() (consider `appendData` case),\n // Use normal linear rendering mode.\n : current;\n current++;\n return result;\n }\n}(); ///////////////////////////////////////////////////////////\n// For stream debug (Should be commented out after used!)\n// @usage: printTask(this, 'begin');\n// @usage: printTask(this, null, {someExtraProp});\n// @usage: Use `__idxInPipeline` as conditional breakpiont.\n//\n// window.printTask = function (task: any, prefix: string, extra: { [key: string]: unknown }): void {\n// window.ecTaskUID == null && (window.ecTaskUID = 0);\n// task.uidDebug == null && (task.uidDebug = `task_${window.ecTaskUID++}`);\n// task.agent && task.agent.uidDebug == null && (task.agent.uidDebug = `task_${window.ecTaskUID++}`);\n// let props = [];\n// if (task.__pipeline) {\n// let val = `${task.__idxInPipeline}/${task.__pipeline.tail.__idxInPipeline} ${task.agent ? '(stub)' : ''}`;\n// props.push({text: '__idxInPipeline/total', value: val});\n// } else {\n// let stubCount = 0;\n// task.agentStubMap.each(() => stubCount++);\n// props.push({text: 'idx', value: `overall (stubs: ${stubCount})`});\n// }\n// props.push({text: 'uid', value: task.uidDebug});\n// if (task.__pipeline) {\n// props.push({text: 'pipelineId', value: task.__pipeline.id});\n// task.agent && props.push(\n// {text: 'stubFor', value: task.agent.uidDebug}\n// );\n// }\n// props.push(\n// {text: 'dirty', value: task._dirty},\n// {text: 'dueIndex', value: task._dueIndex},\n// {text: 'dueEnd', value: task._dueEnd},\n// {text: 'outputDueEnd', value: task._outputDueEnd}\n// );\n// if (extra) {\n// Object.keys(extra).forEach(key => {\n// props.push({text: key, value: extra[key]});\n// });\n// }\n// let args = ['color: blue'];\n// let msg = `%c[${prefix || 'T'}] %c` + props.map(item => (\n// args.push('color: green', 'color: red'),\n// `${item.text}: %c${item.value}`\n// )).join('%c, ');\n// console.log.apply(console, [msg].concat(args));\n// // console.log(this);\n// };\n// window.printPipeline = function (task: any, prefix: string) {\n// const pipeline = task.__pipeline;\n// let currTask = pipeline.head;\n// while (currTask) {\n// window.printTask(currTask, prefix);\n// currTask = currTask._downstream;\n// }\n// };\n// window.showChain = function (chainHeadTask) {\n// var chain = [];\n// var task = chainHeadTask;\n// while (task) {\n// chain.push({\n// task: task,\n// up: task._upstream,\n// down: task._downstream,\n// idxInPipeline: task.__idxInPipeline\n// });\n// task = task._downstream;\n// }\n// return chain;\n// };\n// window.findTaskInChain = function (task, chainHeadTask) {\n// let chain = window.showChain(chainHeadTask);\n// let result = [];\n// for (let i = 0; i < chain.length; i++) {\n// let chainItem = chain[i];\n// if (chainItem.task === task) {\n// result.push(i);\n// }\n// }\n// return result;\n// };\n// window.printChainAEachInChainB = function (chainHeadTaskA, chainHeadTaskB) {\n// let chainA = window.showChain(chainHeadTaskA);\n// for (let i = 0; i < chainA.length; i++) {\n// console.log('chainAIdx:', i, 'inChainB:', window.findTaskInChain(chainA[i].task, chainHeadTaskB));\n// }\n// };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseDate, numericToNumber } from '../../util/number';\nimport { createHashMap, trim, hasOwn } from 'zrender/lib/core/util';\nimport { throwError } from '../../util/log';\n/**\n * Convert raw the value in to inner value in List.\n *\n * [Performance sensitive]\n *\n * [Caution]: this is the key logic of user value parser.\n * For backward compatibiliy, do not modify it until have to!\n */\n\nexport function parseDataValue(value, // For high performance, do not omit the second param.\nopt) {\n // Performance sensitive.\n var dimType = opt && opt.type;\n\n if (dimType === 'ordinal') {\n // If given value is a category string\n var ordinalMeta = opt && opt.ordinalMeta;\n return ordinalMeta ? ordinalMeta.parseAndCollect(value) : value;\n }\n\n if (dimType === 'time' // spead up when using timestamp\n && typeof value !== 'number' && value != null && value !== '-') {\n value = +parseDate(value);\n } // dimType defaults 'number'.\n // If dimType is not ordinal and value is null or undefined or NaN or '-',\n // parse to NaN.\n // number-like string (like ' 123 ') can be converted to a number.\n // where null/undefined or other string will be converted to NaN.\n\n\n return value == null || value === '' ? NaN // If string (like '-'), using '+' parse to NaN\n // If object, also parse to NaN\n : +value;\n}\n;\nvar valueParserMap = createHashMap({\n 'number': function (val) {\n // Do not use `numericToNumber` here. We have by defualt `numericToNumber`.\n // Here the number parser can have loose rule:\n // enable to cut suffix: \"120px\" => 120, \"14%\" => 14.\n return parseFloat(val);\n },\n 'time': function (val) {\n // return timestamp.\n return +parseDate(val);\n },\n 'trim': function (val) {\n return typeof val === 'string' ? trim(val) : val;\n }\n});\nexport function getRawValueParser(type) {\n return valueParserMap.get(type);\n}\nvar ORDER_COMPARISON_OP_MAP = {\n lt: function (lval, rval) {\n return lval < rval;\n },\n lte: function (lval, rval) {\n return lval <= rval;\n },\n gt: function (lval, rval) {\n return lval > rval;\n },\n gte: function (lval, rval) {\n return lval >= rval;\n }\n};\n\nvar FilterOrderComparator =\n/** @class */\nfunction () {\n function FilterOrderComparator(op, rval) {\n if (typeof rval !== 'number') {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'rvalue of \"<\", \">\", \"<=\", \">=\" can only be number in filter.';\n }\n\n throwError(errMsg);\n }\n\n this._opFn = ORDER_COMPARISON_OP_MAP[op];\n this._rvalFloat = numericToNumber(rval);\n } // Performance sensitive.\n\n\n FilterOrderComparator.prototype.evaluate = function (lval) {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n return typeof lval === 'number' ? this._opFn(lval, this._rvalFloat) : this._opFn(numericToNumber(lval), this._rvalFloat);\n };\n\n return FilterOrderComparator;\n}();\n\nvar SortOrderComparator =\n/** @class */\nfunction () {\n /**\n * @param order by defualt: 'asc'\n * @param incomparable by defualt: Always on the tail.\n * That is, if 'asc' => 'max', if 'desc' => 'min'\n * See the definition of \"incomparable\" in [SORT_COMPARISON_RULE]\n */\n function SortOrderComparator(order, incomparable) {\n var isDesc = order === 'desc';\n this._resultLT = isDesc ? 1 : -1;\n\n if (incomparable == null) {\n incomparable = isDesc ? 'min' : 'max';\n }\n\n this._incomparable = incomparable === 'min' ? -Infinity : Infinity;\n } // See [SORT_COMPARISON_RULE].\n // Performance sensitive.\n\n\n SortOrderComparator.prototype.evaluate = function (lval, rval) {\n // Most cases is 'number', and typeof maybe 10 times faseter than parseFloat.\n var lvalTypeof = typeof lval;\n var rvalTypeof = typeof rval;\n var lvalFloat = lvalTypeof === 'number' ? lval : numericToNumber(lval);\n var rvalFloat = rvalTypeof === 'number' ? rval : numericToNumber(rval);\n var lvalNotNumeric = isNaN(lvalFloat);\n var rvalNotNumeric = isNaN(rvalFloat);\n\n if (lvalNotNumeric) {\n lvalFloat = this._incomparable;\n }\n\n if (rvalNotNumeric) {\n rvalFloat = this._incomparable;\n }\n\n if (lvalNotNumeric && rvalNotNumeric) {\n var lvalIsStr = lvalTypeof === 'string';\n var rvalIsStr = rvalTypeof === 'string';\n\n if (lvalIsStr) {\n lvalFloat = rvalIsStr ? lval : 0;\n }\n\n if (rvalIsStr) {\n rvalFloat = lvalIsStr ? rval : 0;\n }\n }\n\n return lvalFloat < rvalFloat ? this._resultLT : lvalFloat > rvalFloat ? -this._resultLT : 0;\n };\n\n return SortOrderComparator;\n}();\n\nexport { SortOrderComparator };\n\nvar FilterEqualityComparator =\n/** @class */\nfunction () {\n function FilterEqualityComparator(isEq, rval) {\n this._rval = rval;\n this._isEQ = isEq;\n this._rvalTypeof = typeof rval;\n this._rvalFloat = numericToNumber(rval);\n } // Performance sensitive.\n\n\n FilterEqualityComparator.prototype.evaluate = function (lval) {\n var eqResult = lval === this._rval;\n\n if (!eqResult) {\n var lvalTypeof = typeof lval;\n\n if (lvalTypeof !== this._rvalTypeof && (lvalTypeof === 'number' || this._rvalTypeof === 'number')) {\n eqResult = numericToNumber(lval) === this._rvalFloat;\n }\n }\n\n return this._isEQ ? eqResult : !eqResult;\n };\n\n return FilterEqualityComparator;\n}();\n/**\n * [FILTER_COMPARISON_RULE]\n * `lt`|`lte`|`gt`|`gte`:\n * + rval must be a number. And lval will be converted to number (`numericToNumber`) to compare.\n * `eq`:\n * + If same type, compare with `===`.\n * + If there is one number, convert to number (`numericToNumber`) to compare.\n * + Else return `false`.\n * `ne`:\n * + Not `eq`.\n *\n *\n * [SORT_COMPARISON_RULE]\n * All the values are grouped into three categories:\n * + \"numeric\" (number and numeric string)\n * + \"non-numeric-string\" (string that excluding numeric string)\n * + \"others\"\n * \"numeric\" vs \"numeric\": values are ordered by number order.\n * \"non-numeric-string\" vs \"non-numeric-string\": values are ordered by ES spec (#sec-abstract-relational-comparison).\n * \"others\" vs \"others\": do not change order (always return 0).\n * \"numeric\" vs \"non-numeric-string\": \"non-numeric-string\" is treated as \"incomparable\".\n * \"number\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"non-numeric-string\" vs \"others\": \"others\" is treated as \"incomparable\".\n * \"incomparable\" will be seen as -Infinity or Infinity (depends on the settings).\n * MEMO:\n * non-numeric string sort make sence when need to put the items with the same tag together.\n * But if we support string sort, we still need to avoid the misleading like `'2' > '12'`,\n * So we treat \"numeric-string\" sorted by number order rather than string comparison.\n *\n *\n * [CHECK_LIST_OF_THE_RULE_DESIGN]\n * + Do not support string comparison until required. And also need to\n * void the misleading of \"2\" > \"12\".\n * + Should avoid the misleading case:\n * `\" 22 \" gte \"22\"` is `true` but `\" 22 \" eq \"22\"` is `false`.\n * + JS bad case should be avoided: null <= 0, [] <= 0, ' ' <= 0, ...\n * + Only \"numeric\" can be converted to comparable number, otherwise converted to NaN.\n * See `util/number.ts#numericToNumber`.\n *\n * @return If `op` is not `RelationalOperator`, return null;\n */\n\n\nexport function createFilterComparator(op, rval) {\n return op === 'eq' || op === 'ne' ? new FilterEqualityComparator(op === 'eq', rval) : hasOwn(ORDER_COMPARISON_OP_MAP, op) ? new FilterOrderComparator(op, rval) : null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { SERIES_LAYOUT_BY_COLUMN, SOURCE_FORMAT_OBJECT_ROWS, SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\nimport { normalizeToArray } from '../../util/model';\nimport { createHashMap, bind, each, hasOwn, map, clone, isObject, extend } from 'zrender/lib/core/util';\nimport { getRawSourceItemGetter, getRawSourceDataCounter, getRawSourceValueGetter } from './dataProvider';\nimport { parseDataValue } from './dataValueHelper';\nimport { consoleLog, makePrintable, throwError } from '../../util/log';\nimport { createSource, detectSourceFormat } from '../Source';\n/**\n * TODO: disable writable.\n * This structure will be exposed to users.\n */\n\nvar ExternalSource =\n/** @class */\nfunction () {\n function ExternalSource() {}\n\n ExternalSource.prototype.getRawData = function () {\n // Only built-in transform available.\n throw new Error('not supported');\n };\n\n ExternalSource.prototype.getRawDataItem = function (dataIndex) {\n // Only built-in transform available.\n throw new Error('not supported');\n };\n\n ExternalSource.prototype.cloneRawData = function () {\n return;\n };\n /**\n * @return If dimension not found, return null/undefined.\n */\n\n\n ExternalSource.prototype.getDimensionInfo = function (dim) {\n return;\n };\n /**\n * dimensions defined if and only if either:\n * (a) dataset.dimensions are declared.\n * (b) dataset data include dimensions definitions in data (detected or via specified `sourceHeader`).\n * If dimensions are defined, `dimensionInfoAll` is corresponding to\n * the defined dimensions.\n * Otherwise, `dimensionInfoAll` is determined by data columns.\n * @return Always return an array (even empty array).\n */\n\n\n ExternalSource.prototype.cloneAllDimensionInfo = function () {\n return;\n };\n\n ExternalSource.prototype.count = function () {\n return;\n };\n /**\n * Only support by dimension index.\n * No need to support by dimension name in transform function,\n * becuase transform function is not case-specific, no need to use name literally.\n */\n\n\n ExternalSource.prototype.retrieveValue = function (dataIndex, dimIndex) {\n return;\n };\n\n ExternalSource.prototype.retrieveValueFromItem = function (dataItem, dimIndex) {\n return;\n };\n\n ExternalSource.prototype.convertValue = function (rawVal, dimInfo) {\n return parseDataValue(rawVal, dimInfo);\n };\n\n return ExternalSource;\n}();\n\nexport { ExternalSource };\n\nfunction createExternalSource(internalSource, externalTransform) {\n var extSource = new ExternalSource();\n var data = internalSource.data;\n var sourceFormat = extSource.sourceFormat = internalSource.sourceFormat;\n var sourceHeaderCount = internalSource.startIndex;\n var errMsg = '';\n\n if (internalSource.seriesLayoutBy !== SERIES_LAYOUT_BY_COLUMN) {\n // For the logic simplicity in transformer, only 'culumn' is\n // supported in data transform. Otherwise, the `dimensionsDefine`\n // might be detected by 'row', which probably confuses users.\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`seriesLayoutBy` of upstream dataset can only be \"column\" in data transform.';\n }\n\n throwError(errMsg);\n } // [MEMO]\n // Create a new dimensions structure for exposing.\n // Do not expose all dimension info to users directly.\n // Becuase the dimension is probably auto detected from data and not might reliable.\n // Should not lead the transformers to think that is relialbe and return it.\n // See [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n\n\n var dimensions = [];\n var dimsByName = {};\n var dimsDef = internalSource.dimensionsDefine;\n\n if (dimsDef) {\n each(dimsDef, function (dimDef, idx) {\n var name = dimDef.name;\n var dimDefExt = {\n index: idx,\n name: name,\n displayName: dimDef.displayName\n };\n dimensions.push(dimDefExt); // Users probably not sepcify dimension name. For simplicity, data transform\n // do not generate dimension name.\n\n if (name != null) {\n // Dimension name should not be duplicated.\n // For simplicity, data transform forbid name duplication, do not generate\n // new name like module `completeDimensions.ts` did, but just tell users.\n var errMsg_1 = '';\n\n if (hasOwn(dimsByName, name)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg_1 = 'dimension name \"' + name + '\" duplicated.';\n }\n\n throwError(errMsg_1);\n }\n\n dimsByName[name] = dimDefExt;\n }\n });\n } // If dimension definitions are not defined and can not be detected.\n // e.g., pure data `[[11, 22], ...]`.\n else {\n for (var i = 0; i < internalSource.dimensionsDetectedCount || 0; i++) {\n // Do not generete name or anything others. The consequence process in\n // `transform` or `series` probably have there own name generation strategry.\n dimensions.push({\n index: i\n });\n }\n } // Implement public methods:\n\n\n var rawItemGetter = getRawSourceItemGetter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n\n if (externalTransform.__isBuiltIn) {\n extSource.getRawDataItem = function (dataIndex) {\n return rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);\n };\n\n extSource.getRawData = bind(getRawData, null, internalSource);\n }\n\n extSource.cloneRawData = bind(cloneRawData, null, internalSource);\n var rawCounter = getRawSourceDataCounter(sourceFormat, SERIES_LAYOUT_BY_COLUMN);\n extSource.count = bind(rawCounter, null, data, sourceHeaderCount, dimensions);\n var rawValueGetter = getRawSourceValueGetter(sourceFormat);\n\n extSource.retrieveValue = function (dataIndex, dimIndex) {\n var rawItem = rawItemGetter(data, sourceHeaderCount, dimensions, dataIndex);\n return retrieveValueFromItem(rawItem, dimIndex);\n };\n\n var retrieveValueFromItem = extSource.retrieveValueFromItem = function (dataItem, dimIndex) {\n if (dataItem == null) {\n return;\n }\n\n var dimDef = dimensions[dimIndex]; // When `dimIndex` is `null`, `rawValueGetter` return the whole item.\n\n if (dimDef) {\n return rawValueGetter(dataItem, dimIndex, dimDef.name);\n }\n };\n\n extSource.getDimensionInfo = bind(getDimensionInfo, null, dimensions, dimsByName);\n extSource.cloneAllDimensionInfo = bind(cloneAllDimensionInfo, null, dimensions);\n return extSource;\n}\n\nfunction getRawData(upstream) {\n var sourceFormat = upstream.sourceFormat;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`getRawData` is not supported in source format ' + sourceFormat;\n }\n\n throwError(errMsg);\n }\n\n return upstream.data;\n}\n\nfunction cloneRawData(upstream) {\n var sourceFormat = upstream.sourceFormat;\n var data = upstream.data;\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`cloneRawData` is not supported in source format ' + sourceFormat;\n }\n\n throwError(errMsg);\n }\n\n if (sourceFormat === SOURCE_FORMAT_ARRAY_ROWS) {\n var result = [];\n\n for (var i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(data[i].slice());\n }\n\n return result;\n } else if (sourceFormat === SOURCE_FORMAT_OBJECT_ROWS) {\n var result = [];\n\n for (var i = 0, len = data.length; i < len; i++) {\n // Not strictly clone for performance\n result.push(extend({}, data[i]));\n }\n\n return result;\n }\n}\n\nfunction getDimensionInfo(dimensions, dimsByName, dim) {\n if (dim == null) {\n return;\n } // Keep the same logic as `List::getDimension` did.\n\n\n if (typeof dim === 'number' // If being a number-like string but not being defined a dimension name.\n || !isNaN(dim) && !hasOwn(dimsByName, dim)) {\n return dimensions[dim];\n } else if (hasOwn(dimsByName, dim)) {\n return dimsByName[dim];\n }\n}\n\nfunction cloneAllDimensionInfo(dimensions) {\n return clone(dimensions);\n}\n\nvar externalTransformMap = createHashMap();\nexport function registerExternalTransform(externalTransform) {\n externalTransform = clone(externalTransform);\n var type = externalTransform.type;\n var errMsg = '';\n\n if (!type) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Must have a `type` when `registerTransform`.';\n }\n\n throwError(errMsg);\n }\n\n var typeParsed = type.split(':');\n\n if (typeParsed.length !== 2) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Name must include namespace like \"ns:regression\".';\n }\n\n throwError(errMsg);\n } // Namespace 'echarts:xxx' is official namespace, where the transforms should\n // be called directly via 'xxx' rather than 'echarts:xxx'.\n\n\n var isBuiltIn = false;\n\n if (typeParsed[0] === 'echarts') {\n type = typeParsed[1];\n isBuiltIn = true;\n }\n\n externalTransform.__isBuiltIn = isBuiltIn;\n externalTransformMap.set(type, externalTransform);\n}\nexport function applyDataTransform(rawTransOption, sourceList, infoForPrint) {\n var pipedTransOption = normalizeToArray(rawTransOption);\n var pipeLen = pipedTransOption.length;\n var errMsg = '';\n\n if (!pipeLen) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'If `transform` declared, it should at least contain one transform.';\n }\n\n throwError(errMsg);\n }\n\n for (var i = 0, len = pipeLen; i < len; i++) {\n var transOption = pipedTransOption[i];\n sourceList = applySingleDataTransform(transOption, sourceList, infoForPrint, pipeLen === 1 ? null : i); // piped transform only support single input, except the fist one.\n // piped transform only support single output, except the last one.\n\n if (i !== len - 1) {\n sourceList.length = Math.max(sourceList.length, 1);\n }\n }\n\n return sourceList;\n}\n\nfunction applySingleDataTransform(transOption, upSourceList, infoForPrint, // If `pipeIndex` is null/undefined, no piped transform.\npipeIndex) {\n var errMsg = '';\n\n if (!upSourceList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Must have at least one upstream dataset.';\n }\n\n throwError(errMsg);\n }\n\n if (!isObject(transOption)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'transform declaration must be an object rather than ' + typeof transOption + '.';\n }\n\n throwError(errMsg);\n }\n\n var transType = transOption.type;\n var externalTransform = externalTransformMap.get(transType);\n\n if (!externalTransform) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Can not find transform on type \"' + transType + '\".';\n }\n\n throwError(errMsg);\n } // Prepare source\n\n\n var extUpSourceList = map(upSourceList, function (upSource) {\n return createExternalSource(upSource, externalTransform);\n });\n var resultList = normalizeToArray(externalTransform.transform({\n upstream: extUpSourceList[0],\n upstreamList: extUpSourceList,\n config: clone(transOption.config)\n }));\n\n if (process.env.NODE_ENV !== 'production') {\n if (transOption.print) {\n var printStrArr = map(resultList, function (extSource) {\n var pipeIndexStr = pipeIndex != null ? ' === pipe index: ' + pipeIndex : '';\n return ['=== dataset index: ' + infoForPrint.datasetIndex + pipeIndexStr + ' ===', '- transform result data:', makePrintable(extSource.data), '- transform result dimensions:', makePrintable(extSource.dimensions)].join('\\n');\n }).join('\\n');\n consoleLog(printStrArr);\n }\n }\n\n return map(resultList, function (result, resultIndex) {\n var errMsg = '';\n\n if (!isObject(result)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'A transform should not return some empty results.';\n }\n\n throwError(errMsg);\n }\n\n if (!result.data) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Transform result data should be not be null or undefined';\n }\n\n throwError(errMsg);\n }\n\n var sourceFormat = detectSourceFormat(result.data);\n\n if (!isSupportedSourceFormat(sourceFormat)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Transform result data should be array rows or object rows.';\n }\n\n throwError(errMsg);\n }\n\n var resultMetaRawOption;\n var firstUpSource = upSourceList[0];\n /**\n * Intuitively, the end users known the content of the original `dataset.source`,\n * calucating the transform result in mind.\n * Suppose the original `dataset.source` is:\n * ```js\n * [\n * ['product', '2012', '2013', '2014', '2015'],\n * ['AAA', 41.1, 30.4, 65.1, 53.3],\n * ['BBB', 86.5, 92.1, 85.7, 83.1],\n * ['CCC', 24.1, 67.2, 79.5, 86.4]\n * ]\n * ```\n * The dimension info have to be detected from the source data.\n * Some of the transformers (like filter, sort) will follow the dimension info\n * of upstream, while others use new dimensions (like aggregate).\n * Transformer can output a field `dimensions` to define the its own output dimensions.\n * We also allow transformers to ignore the output `dimensions` field, and\n * inherit the upstream dimensions definition. It can reduce the burden of handling\n * dimensions in transformers.\n *\n * See also [DIMENSION_INHERIT_RULE] in `sourceManager.ts`.\n */\n\n if (firstUpSource && resultIndex === 0 // If transformer returns `dimensions`, it means that the transformer has different\n // dimensions definitions. We do not inherit anything from upstream.\n && !result.dimensions) {\n var startIndex = firstUpSource.startIndex; // We copy the header of upstream to the result becuase:\n // (1) The returned data always does not contain header line and can not be used\n // as dimension-detection. In this case we can not use \"detected dimensions\" of\n // upstream directly, because it might be detected based on different `seriesLayoutBy`.\n // (2) We should support that the series read the upstream source in `seriesLayoutBy: 'row'`.\n // So the original detected header should be add to the result, otherwise they can not be read.\n\n if (startIndex) {\n result.data = firstUpSource.data.slice(0, startIndex).concat(result.data);\n }\n\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: startIndex,\n dimensions: firstUpSource.metaRawOption.dimensions\n };\n } else {\n resultMetaRawOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN,\n sourceHeader: 0,\n dimensions: result.dimensions\n };\n }\n\n return createSource(result.data, resultMetaRawOption, null, null);\n });\n}\n\nfunction isSupportedSourceFormat(sourceFormat) {\n return sourceFormat === SOURCE_FORMAT_ARRAY_ROWS || sourceFormat === SOURCE_FORMAT_OBJECT_ROWS;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { setAsPrimitive, map, isTypedArray, assert, each, retrieve2 } from 'zrender/lib/core/util';\nimport { createSource, cloneSourceShallow } from '../Source';\nimport { SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL } from '../../util/types';\nimport { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper';\nimport { applyDataTransform } from './transform';\n/**\n * [REQUIREMENT_MEMO]:\n * (0) `metaRawOption` means `dimensions`/`sourceHeader`/`seriesLayoutBy` in raw option.\n * (1) Keep support the feature: `metaRawOption` can be specified both on `series` and\n * `root-dataset`. Them on `series` has higher priority.\n * (2) Do not support to set `metaRawOption` on a `non-root-dataset`, because it might\n * confuse users: whether those props indicate how to visit the upstream source or visit\n * the transform result source, and some transforms has nothing to do with these props,\n * and some transforms might have multiple upstream.\n * (3) Transforms should specify `metaRawOption` in each output, just like they can be\n * declared in `root-dataset`.\n * (4) At present only support visit source in `SERIES_LAYOUT_BY_COLUMN` in transforms.\n * That is for reducing complexity in transfroms.\n * PENDING: Whether to provide transposition transform?\n *\n * [IMPLEMENTAION_MEMO]:\n * \"sourceVisitConfig\" are calculated from `metaRawOption` and `data`.\n * They will not be calculated until `source` is about to be visited (to prevent from\n * duplicate calcuation). `source` is visited only in series and input to transforms.\n *\n * [DIMENSION_INHERIT_RULE]:\n * By default the dimensions are inherited from ancestors, unless a transform return\n * a new dimensions definition.\n * Consider the case:\n * ```js\n * dataset: [{\n * source: [ ['Product', 'Sales', 'Prise'], ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * dataset: [{\n * dimension: ['Product', 'Sales', 'Prise'],\n * source: [ ['Cookies', 321, 44.21], ...]\n * }, {\n * transform: { type: 'filter', ... }\n * }]\n * ```\n * The two types of option should have the same behavior after transform.\n *\n *\n * [SCENARIO]:\n * (1) Provide source data directly:\n * ```js\n * series: {\n * encode: {...},\n * dimensions: [...]\n * seriesLayoutBy: 'row',\n * data: [[...]]\n * }\n * ```\n * (2) Series refer to dataset.\n * ```js\n * series: [{\n * encode: {...}\n * // Ignore datasetIndex means `datasetIndex: 0`\n * // and the dimensions defination in dataset is used\n * }, {\n * encode: {...},\n * seriesLayoutBy: 'column',\n * datasetIndex: 1\n * }]\n * ```\n * (3) dataset transform\n * ```js\n * dataset: [{\n * source: [...]\n * }, {\n * source: [...]\n * }, {\n * // By default from 0.\n * transform: { type: 'filter', config: {...} }\n * }, {\n * // Piped.\n * transform: [\n * { type: 'filter', config: {...} },\n * { type: 'sort', config: {...} }\n * ]\n * }, {\n * id: 'regressionData',\n * fromDatasetIndex: 1,\n * // Third-party transform\n * transform: { type: 'ecStat:regression', config: {...} }\n * }, {\n * // retrieve the extra result.\n * id: 'regressionFormula',\n * fromDatasetId: 'regressionData',\n * fromTransformResult: 1\n * }]\n * ```\n */\n\nvar SourceManager =\n/** @class */\nfunction () {\n function SourceManager(sourceHost) {\n // Cached source. Do not repeat calculating if not dirty.\n this._sourceList = []; // version sign of each upstream source manager.\n\n this._upstreamSignList = [];\n this._versionSignBase = 0;\n this._sourceHost = sourceHost;\n }\n /**\n * Mark dirty.\n */\n\n\n SourceManager.prototype.dirty = function () {\n this._setLocalSource([], []);\n };\n\n SourceManager.prototype._setLocalSource = function (sourceList, upstreamSignList) {\n this._sourceList = sourceList;\n this._upstreamSignList = upstreamSignList;\n this._versionSignBase++;\n\n if (this._versionSignBase > 9e10) {\n this._versionSignBase = 0;\n }\n };\n /**\n * For detecting whether the upstream source is dirty, so that\n * the local cached source (in `_sourceList`) should be discarded.\n */\n\n\n SourceManager.prototype._getVersionSign = function () {\n return this._sourceHost.uid + '_' + this._versionSignBase;\n };\n /**\n * Always return a source instance. Otherwise throw error.\n */\n\n\n SourceManager.prototype.prepareSource = function () {\n // For the case that call `setOption` multiple time but no data changed,\n // cache the result source to prevent from repeating transform.\n if (this._isDirty()) {\n this._createSource();\n }\n };\n\n SourceManager.prototype._createSource = function () {\n this._setLocalSource([], []);\n\n var sourceHost = this._sourceHost;\n\n var upSourceMgrList = this._getUpstreamSourceManagers();\n\n var hasUpstream = !!upSourceMgrList.length;\n var resultSourceList;\n var upstreamSignList;\n\n if (isSeries(sourceHost)) {\n var seriesModel = sourceHost;\n var data = void 0;\n var sourceFormat = void 0;\n var upSource = void 0; // Has upstream dataset\n\n if (hasUpstream) {\n var upSourceMgr = upSourceMgrList[0];\n upSourceMgr.prepareSource();\n upSource = upSourceMgr.getSource();\n data = upSource.data;\n sourceFormat = upSource.sourceFormat;\n upstreamSignList = [upSourceMgr._getVersionSign()];\n } // Series data is from own.\n else {\n data = seriesModel.get('data', true);\n sourceFormat = isTypedArray(data) ? SOURCE_FORMAT_TYPED_ARRAY : SOURCE_FORMAT_ORIGINAL;\n upstreamSignList = [];\n } // See [REQUIREMENT_MEMO], merge settings on series and parent dataset if it is root.\n\n\n var newMetaRawOption = this._getSourceMetaRawOption();\n\n var upMetaRawOption = upSource ? upSource.metaRawOption : null;\n var seriesLayoutBy = retrieve2(newMetaRawOption.seriesLayoutBy, upMetaRawOption ? upMetaRawOption.seriesLayoutBy : null);\n var sourceHeader = retrieve2(newMetaRawOption.sourceHeader, upMetaRawOption ? upMetaRawOption.sourceHeader : null); // Note here we should not use `upSource.dimensionsDefine`. Consider the case:\n // `upSource.dimensionsDefine` is detected by `seriesLayoutBy: 'column'`,\n // but series need `seriesLayoutBy: 'row'`.\n\n var dimensions = retrieve2(newMetaRawOption.dimensions, upMetaRawOption ? upMetaRawOption.dimensions : null);\n resultSourceList = [createSource(data, {\n seriesLayoutBy: seriesLayoutBy,\n sourceHeader: sourceHeader,\n dimensions: dimensions\n }, sourceFormat, seriesModel.get('encode', true))];\n } else {\n var datasetModel = sourceHost; // Has upstream dataset.\n\n if (hasUpstream) {\n var result = this._applyTransform(upSourceMgrList);\n\n resultSourceList = result.sourceList;\n upstreamSignList = result.upstreamSignList;\n } // Is root dataset.\n else {\n var sourceData = datasetModel.get('source', true);\n resultSourceList = [createSource(sourceData, this._getSourceMetaRawOption(), null, // Note: dataset option does not have `encode`.\n null)];\n upstreamSignList = [];\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(resultSourceList && upstreamSignList);\n }\n\n this._setLocalSource(resultSourceList, upstreamSignList);\n };\n\n SourceManager.prototype._applyTransform = function (upMgrList) {\n var datasetModel = this._sourceHost;\n var transformOption = datasetModel.get('transform', true);\n var fromTransformResult = datasetModel.get('fromTransformResult', true);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(fromTransformResult != null || transformOption != null);\n }\n\n if (fromTransformResult != null) {\n var errMsg = '';\n\n if (upMgrList.length !== 1) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'When using `fromTransformResult`, there should be only one upstream dataset';\n }\n\n doThrow(errMsg);\n }\n }\n\n var sourceList;\n var upSourceList = [];\n var upstreamSignList = [];\n each(upMgrList, function (upMgr) {\n upMgr.prepareSource();\n var upSource = upMgr.getSource(fromTransformResult || 0);\n var errMsg = '';\n\n if (fromTransformResult != null && !upSource) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Can not retrieve result by `fromTransformResult`: ' + fromTransformResult;\n }\n\n doThrow(errMsg);\n }\n\n upSourceList.push(upSource);\n upstreamSignList.push(upMgr._getVersionSign());\n });\n\n if (transformOption) {\n sourceList = applyDataTransform(transformOption, upSourceList, {\n datasetIndex: datasetModel.componentIndex\n });\n } else if (fromTransformResult != null) {\n sourceList = [cloneSourceShallow(upSourceList[0])];\n }\n\n return {\n sourceList: sourceList,\n upstreamSignList: upstreamSignList\n };\n };\n\n SourceManager.prototype._isDirty = function () {\n var sourceList = this._sourceList;\n\n if (!sourceList.length) {\n return true;\n } // All sourceList is from the some upsteam.\n\n\n var upSourceMgrList = this._getUpstreamSourceManagers();\n\n for (var i = 0; i < upSourceMgrList.length; i++) {\n var upSrcMgr = upSourceMgrList[i];\n\n if ( // Consider the case that there is ancestor diry, call it recursively.\n // The performance is probably not an issue because usually the chain is not long.\n upSrcMgr._isDirty() || this._upstreamSignList[i] !== upSrcMgr._getVersionSign()) {\n return true;\n }\n }\n };\n /**\n * @param sourceIndex By defualt 0, means \"main source\".\n * Most cases there is only one source.\n */\n\n\n SourceManager.prototype.getSource = function (sourceIndex) {\n return this._sourceList[sourceIndex || 0];\n };\n /**\n * PEDING: Is it fast enough?\n * If no upstream, return empty array.\n */\n\n\n SourceManager.prototype._getUpstreamSourceManagers = function () {\n // Always get the relationship from the raw option.\n // Do not cache the link of the dependency graph, so that\n // no need to update them when change happen.\n var sourceHost = this._sourceHost;\n\n if (isSeries(sourceHost)) {\n var datasetModel = querySeriesUpstreamDatasetModel(sourceHost);\n return !datasetModel ? [] : [datasetModel.getSourceManager()];\n } else {\n return map(queryDatasetUpstreamDatasetModels(sourceHost), function (datasetModel) {\n return datasetModel.getSourceManager();\n });\n }\n };\n\n SourceManager.prototype._getSourceMetaRawOption = function () {\n var sourceHost = this._sourceHost;\n var seriesLayoutBy;\n var sourceHeader;\n var dimensions;\n\n if (isSeries(sourceHost)) {\n seriesLayoutBy = sourceHost.get('seriesLayoutBy', true);\n sourceHeader = sourceHost.get('sourceHeader', true);\n dimensions = sourceHost.get('dimensions', true);\n } // See [REQUIREMENT_MEMO], `non-root-dataset` do not support them.\n else if (!this._getUpstreamSourceManagers().length) {\n var model = sourceHost;\n seriesLayoutBy = model.get('seriesLayoutBy', true);\n sourceHeader = model.get('sourceHeader', true);\n dimensions = model.get('dimensions', true);\n }\n\n return {\n seriesLayoutBy: seriesLayoutBy,\n sourceHeader: sourceHeader,\n dimensions: dimensions\n };\n };\n\n return SourceManager;\n}();\n\nexport { SourceManager }; // Call this method after `super.init` and `super.mergeOption` to\n// disable the transform merge, but do not disable transfrom clone from rawOption.\n\nexport function disableTransformOptionMerge(datasetModel) {\n var transformOption = datasetModel.option.transform;\n transformOption && setAsPrimitive(datasetModel.option.transform);\n}\n\nfunction isSeries(sourceHost) {\n // Avoid circular dependency with Series.ts\n return sourceHost.mainType === 'series';\n}\n\nfunction doThrow(errMsg) {\n throw new Error(errMsg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getTooltipMarker, encodeHTML, makeValueReadable, convertToColorString } from '../../util/format';\nimport { isString, each, hasOwn, isArray, map, assert, extend } from 'zrender/lib/core/util';\nimport { SortOrderComparator } from '../../data/helper/dataValueHelper';\nimport { getRandomIdBase } from '../../util/number';\nvar TOOLTIP_LINE_HEIGHT_CSS = 'line-height:1'; // TODO: more textStyle option\n\nfunction getTooltipTextStyle(textStyle, renderMode) {\n var nameFontColor = textStyle.color || '#6e7079';\n var nameFontSize = textStyle.fontSize || 12;\n var nameFontWeight = textStyle.fontWeight || '400';\n var valueFontColor = textStyle.color || '#464646';\n var valueFontSize = textStyle.fontSize || 14;\n var valueFontWeight = textStyle.fontWeight || '900';\n\n if (renderMode === 'html') {\n // `textStyle` is probably from user input, should be encoded to reduce security risk.\n return {\n // eslint-disable-next-line max-len\n nameStyle: \"font-size:\" + encodeHTML(nameFontSize + '') + \"px;color:\" + encodeHTML(nameFontColor) + \";font-weight:\" + encodeHTML(nameFontWeight + ''),\n // eslint-disable-next-line max-len\n valueStyle: \"font-size:\" + encodeHTML(valueFontSize + '') + \"px;color:\" + encodeHTML(valueFontColor) + \";font-weight:\" + encodeHTML(valueFontWeight + '')\n };\n } else {\n return {\n nameStyle: {\n fontSize: nameFontSize,\n fill: nameFontColor,\n fontWeight: nameFontWeight\n },\n valueStyle: {\n fontSize: valueFontSize,\n fill: valueFontColor,\n fontWeight: valueFontWeight\n }\n };\n }\n} // See `TooltipMarkupLayoutIntent['innerGapLevel']`.\n// (value from UI design)\n\n\nvar HTML_GAPS = [0, 10, 20, 30];\nvar RICH_TEXT_GAPS = ['', '\\n', '\\n\\n', '\\n\\n\\n']; // eslint-disable-next-line max-len\n\nexport function createTooltipMarkup(type, option) {\n option.type = type;\n return option;\n}\n\nfunction getBuilder(fragment) {\n return hasOwn(builderMap, fragment.type) && builderMap[fragment.type];\n}\n\nvar builderMap = {\n /**\n * A `section` block is like:\n * ```\n * header\n * subBlock\n * subBlock\n * ...\n * ```\n */\n section: {\n planLayout: function (fragment) {\n var subBlockLen = fragment.blocks.length;\n var thisBlockHasInnerGap = subBlockLen > 1 || subBlockLen > 0 && !fragment.noHeader;\n var thisGapLevelBetweenSubBlocks = 0;\n each(fragment.blocks, function (subBlock) {\n getBuilder(subBlock).planLayout(subBlock);\n var subGapLevel = subBlock.__gapLevelBetweenSubBlocks; // If the some of the sub-blocks have some gaps (like 10px) inside, this block\n // should use a larger gap (like 20px) to distinguish those sub-blocks.\n\n if (subGapLevel >= thisGapLevelBetweenSubBlocks) {\n thisGapLevelBetweenSubBlocks = subGapLevel + (thisBlockHasInnerGap && ( // 0 always can not be readable gap level.\n !subGapLevel // If no header, always keep the sub gap level. Otherwise\n // look weird in case `multipleSeries`.\n || subBlock.type === 'section' && !subBlock.noHeader) ? 1 : 0);\n }\n });\n fragment.__gapLevelBetweenSubBlocks = thisGapLevelBetweenSubBlocks;\n },\n build: function (ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {\n var noHeader = fragment.noHeader;\n var gaps = getGap(fragment);\n var subMarkupText = buildSubBlocks(ctx, fragment, noHeader ? topMarginForOuterGap : gaps.html, toolTipTextStyle);\n\n if (noHeader) {\n return subMarkupText;\n }\n\n var displayableHeader = makeValueReadable(fragment.header, 'ordinal', ctx.useUTC);\n var nameStyle = getTooltipTextStyle(toolTipTextStyle, ctx.renderMode).nameStyle;\n\n if (ctx.renderMode === 'richText') {\n return wrapInlineNameRichText(ctx, displayableHeader, nameStyle) + gaps.richText + subMarkupText;\n } else {\n return wrapBlockHTML(\"
\" + encodeHTML(displayableHeader) + '
' + subMarkupText, topMarginForOuterGap);\n }\n }\n },\n\n /**\n * A `nameValue` block is like:\n * ```\n * marker name value\n * ```\n */\n nameValue: {\n planLayout: function (fragment) {\n fragment.__gapLevelBetweenSubBlocks = 0;\n },\n build: function (ctx, fragment, topMarginForOuterGap, toolTipTextStyle) {\n var renderMode = ctx.renderMode;\n var noName = fragment.noName;\n var noValue = fragment.noValue;\n var noMarker = !fragment.markerType;\n var name = fragment.name;\n var value = fragment.value;\n var useUTC = ctx.useUTC;\n\n if (noName && noValue) {\n return;\n }\n\n var markerStr = noMarker ? '' : ctx.markupStyleCreator.makeTooltipMarker(fragment.markerType, fragment.markerColor || '#333', renderMode);\n var readableName = noName ? '' : makeValueReadable(name, 'ordinal', useUTC);\n var valueTypeOption = fragment.valueType;\n var readableValueList = noValue ? [] : isArray(value) ? map(value, function (val, idx) {\n return makeValueReadable(val, isArray(valueTypeOption) ? valueTypeOption[idx] : valueTypeOption, useUTC);\n }) : [makeValueReadable(value, isArray(valueTypeOption) ? valueTypeOption[0] : valueTypeOption, useUTC)];\n var valueAlignRight = !noMarker || !noName; // It little weird if only value next to marker but far from marker.\n\n var valueCloseToMarker = !noMarker && noName;\n\n var _a = getTooltipTextStyle(toolTipTextStyle, renderMode),\n nameStyle = _a.nameStyle,\n valueStyle = _a.valueStyle;\n\n return renderMode === 'richText' ? (noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameRichText(ctx, readableName, nameStyle)) // Value has commas inside, so use ' ' as delimiter for multiple values.\n + (noValue ? '' : wrapInlineValueRichText(ctx, readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)) : wrapBlockHTML((noMarker ? '' : markerStr) + (noName ? '' : wrapInlineNameHTML(readableName, !noMarker, nameStyle)) + (noValue ? '' : wrapInlineValueHTML(readableValueList, valueAlignRight, valueCloseToMarker, valueStyle)), topMarginForOuterGap);\n }\n }\n};\n\nfunction buildSubBlocks(ctx, fragment, topMarginForOuterGap, tooltipTextStyle) {\n var subMarkupTextList = [];\n var subBlocks = fragment.blocks || [];\n assert(!subBlocks || isArray(subBlocks));\n subBlocks = subBlocks || [];\n var orderMode = ctx.orderMode;\n\n if (fragment.sortBlocks && orderMode) {\n subBlocks = subBlocks.slice();\n var orderMap = {\n valueAsc: 'asc',\n valueDesc: 'desc'\n };\n\n if (hasOwn(orderMap, orderMode)) {\n var comparator_1 = new SortOrderComparator(orderMap[orderMode], null);\n subBlocks.sort(function (a, b) {\n return comparator_1.evaluate(a.sortParam, b.sortParam);\n });\n } // FIXME 'seriesDesc' necessary?\n else if (orderMode === 'seriesDesc') {\n subBlocks.reverse();\n }\n }\n\n var gaps = getGap(fragment);\n each(subBlocks, function (subBlock, idx) {\n var subMarkupText = getBuilder(subBlock).build(ctx, subBlock, idx > 0 ? gaps.html : 0, tooltipTextStyle);\n subMarkupText != null && subMarkupTextList.push(subMarkupText);\n });\n\n if (!subMarkupTextList.length) {\n return;\n }\n\n return ctx.renderMode === 'richText' ? subMarkupTextList.join(gaps.richText) : wrapBlockHTML(subMarkupTextList.join(''), topMarginForOuterGap);\n}\n/**\n * @return markupText. null/undefined means no content.\n */\n\n\nexport function buildTooltipMarkup(fragment, markupStyleCreator, renderMode, orderMode, useUTC, toolTipTextStyle) {\n if (!fragment) {\n return;\n }\n\n var builder = getBuilder(fragment);\n builder.planLayout(fragment);\n var ctx = {\n useUTC: useUTC,\n renderMode: renderMode,\n orderMode: orderMode,\n markupStyleCreator: markupStyleCreator\n };\n return builder.build(ctx, fragment, 0, toolTipTextStyle);\n}\n\nfunction getGap(fragment) {\n var gapLevelBetweenSubBlocks = fragment.__gapLevelBetweenSubBlocks;\n return {\n html: HTML_GAPS[gapLevelBetweenSubBlocks],\n richText: RICH_TEXT_GAPS[gapLevelBetweenSubBlocks]\n };\n}\n\nfunction wrapBlockHTML(encodedContent, topGap) {\n var clearfix = '
';\n var marginCSS = \"margin: \" + topGap + \"px 0 0\";\n return \"
\" + encodedContent + clearfix + '
';\n}\n\nfunction wrapInlineNameHTML(name, leftHasMarker, style) {\n var marginCss = leftHasMarker ? 'margin-left:2px' : '';\n return \"\" + encodeHTML(name) + '';\n}\n\nfunction wrapInlineValueHTML(valueList, alignRight, valueCloseToMarker, style) {\n // Do not too close to marker, considering there are multiple values separated by spaces.\n var paddingStr = valueCloseToMarker ? '10px' : '20px';\n var alignCSS = alignRight ? \"float:right;margin-left:\" + paddingStr : '';\n return \"\" // Value has commas inside, so use ' ' as delimiter for multiple values.\n + map(valueList, function (value) {\n return encodeHTML(value);\n }).join('  ') + '';\n}\n\nfunction wrapInlineNameRichText(ctx, name, style) {\n return ctx.markupStyleCreator.wrapRichTextStyle(name, style);\n}\n\nfunction wrapInlineValueRichText(ctx, valueList, alignRight, valueCloseToMarker, style) {\n var styles = [style];\n var paddingLeft = valueCloseToMarker ? 10 : 20;\n alignRight && styles.push({\n padding: [0, 0, 0, paddingLeft],\n align: 'right'\n }); // Value has commas inside, so use ' ' as delimiter for multiple values.\n\n return ctx.markupStyleCreator.wrapRichTextStyle(valueList.join(' '), styles);\n}\n\nexport function retrieveVisualColorForTooltipMarker(series, dataIndex) {\n var style = series.getData().getItemVisual(dataIndex, 'style');\n var color = style[series.visualDrawType];\n return convertToColorString(color);\n}\nexport function getPaddingFromTooltipModel(model, renderMode) {\n var padding = model.get('padding');\n return padding != null ? padding // We give slightly different to look pretty.\n : renderMode === 'richText' ? [8, 10] : 10;\n}\n/**\n * The major feature is generate styles for `renderMode: 'richText'`.\n * But it also serves `renderMode: 'html'` to provide\n * \"renderMode-independent\" API.\n */\n\nvar TooltipMarkupStyleCreator =\n/** @class */\nfunction () {\n function TooltipMarkupStyleCreator() {\n this.richTextStyles = {}; // Notice that \"generate a style name\" usuall happens repeatly when mouse moving and\n // displaying a tooltip. So we put the `_nextStyleNameId` as a member of each creator\n // rather than static shared by all creators (which will cause it increase to fast).\n\n this._nextStyleNameId = getRandomIdBase();\n }\n\n TooltipMarkupStyleCreator.prototype._generateStyleName = function () {\n return '__EC_aUTo_' + this._nextStyleNameId++;\n };\n\n TooltipMarkupStyleCreator.prototype.makeTooltipMarker = function (markerType, colorStr, renderMode) {\n var markerId = renderMode === 'richText' ? this._generateStyleName() : null;\n var marker = getTooltipMarker({\n color: colorStr,\n type: markerType,\n renderMode: renderMode,\n markerId: markerId\n });\n\n if (isString(marker)) {\n return marker;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n assert(markerId);\n }\n\n this.richTextStyles[markerId] = marker.style;\n return marker.content;\n }\n };\n /**\n * @usage\n * ```ts\n * const styledText = markupStyleCreator.wrapRichTextStyle([\n * // The styles will be auto merged.\n * {\n * fontSize: 12,\n * color: 'blue'\n * },\n * {\n * padding: 20\n * }\n * ]);\n * ```\n */\n\n\n TooltipMarkupStyleCreator.prototype.wrapRichTextStyle = function (text, styles) {\n var finalStl = {};\n\n if (isArray(styles)) {\n each(styles, function (stl) {\n return extend(finalStl, stl);\n });\n } else {\n extend(finalStl, styles);\n }\n\n var styleName = this._generateStyleName();\n\n this.richTextStyles[styleName] = finalStl;\n return \"{\" + styleName + \"|\" + text + \"}\";\n };\n\n return TooltipMarkupStyleCreator;\n}();\n\nexport { TooltipMarkupStyleCreator };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { trim, isArray, each, reduce } from 'zrender/lib/core/util';\nimport { retrieveVisualColorForTooltipMarker, createTooltipMarkup } from './tooltipMarkup';\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isNameSpecified } from '../../util/model';\nexport function defaultSeriesFormatTooltip(opt) {\n var series = opt.series;\n var dataIndex = opt.dataIndex;\n var multipleSeries = opt.multipleSeries;\n var data = series.getData();\n var tooltipDims = data.mapDimensionsAll('defaultedTooltip');\n var tooltipDimLen = tooltipDims.length;\n var value = series.getRawValue(dataIndex);\n var isValueArr = isArray(value);\n var markerColor = retrieveVisualColorForTooltipMarker(series, dataIndex); // Complicated rule for pretty tooltip.\n\n var inlineValue;\n var inlineValueType;\n var subBlocks;\n var sortParam;\n\n if (tooltipDimLen > 1 || isValueArr && !tooltipDimLen) {\n var formatArrResult = formatTooltipArrayValue(value, series, dataIndex, tooltipDims, markerColor);\n inlineValue = formatArrResult.inlineValues;\n inlineValueType = formatArrResult.inlineValueTypes;\n subBlocks = formatArrResult.blocks; // Only support tooltip sort by the first inline value. It's enough in most cases.\n\n sortParam = formatArrResult.inlineValues[0];\n } else if (tooltipDimLen) {\n var dimInfo = data.getDimensionInfo(tooltipDims[0]);\n sortParam = inlineValue = retrieveRawValue(data, dataIndex, tooltipDims[0]);\n inlineValueType = dimInfo.type;\n } else {\n sortParam = inlineValue = isValueArr ? value[0] : value;\n } // Do not show generated series name. It might not be readable.\n\n\n var seriesNameSpecified = isNameSpecified(series);\n var seriesName = seriesNameSpecified && series.name || '';\n var itemName = data.getName(dataIndex);\n var inlineName = multipleSeries ? seriesName : itemName;\n return createTooltipMarkup('section', {\n header: seriesName,\n // When series name not specified, do not show a header line with only '-'.\n // This case alway happen in tooltip.trigger: 'item'.\n noHeader: multipleSeries || !seriesNameSpecified,\n sortParam: sortParam,\n blocks: [createTooltipMarkup('nameValue', {\n markerType: 'item',\n markerColor: markerColor,\n // Do not mix display seriesName and itemName in one tooltip,\n // which might confuses users.\n name: inlineName,\n // name dimension might be auto assigned, where the name might\n // be not readable. So we check trim here.\n noName: !trim(inlineName),\n value: inlineValue,\n valueType: inlineValueType\n })].concat(subBlocks || [])\n });\n}\n\nfunction formatTooltipArrayValue(value, series, dataIndex, tooltipDims, colorStr) {\n // check: category-no-encode-has-axis-data in dataset.html\n var data = series.getData();\n var isValueMultipleLine = reduce(value, function (isValueMultipleLine, val, idx) {\n var dimItem = data.getDimensionInfo(idx);\n return isValueMultipleLine = isValueMultipleLine || dimItem && dimItem.tooltip !== false && dimItem.displayName != null;\n }, false);\n var inlineValues = [];\n var inlineValueTypes = [];\n var blocks = [];\n tooltipDims.length ? each(tooltipDims, function (dim) {\n setEachItem(retrieveRawValue(data, dataIndex, dim), dim);\n }) // By default, all dims is used on tooltip.\n : each(value, setEachItem);\n\n function setEachItem(val, dim) {\n var dimInfo = data.getDimensionInfo(dim); // If `dimInfo.tooltip` is not set, show tooltip.\n\n if (!dimInfo || dimInfo.otherDims.tooltip === false) {\n return;\n }\n\n if (isValueMultipleLine) {\n blocks.push(createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: colorStr,\n name: dimInfo.displayName,\n value: val,\n valueType: dimInfo.type\n }));\n } else {\n inlineValues.push(val);\n inlineValueTypes.push(dimInfo.type);\n }\n }\n\n return {\n inlineValues: inlineValues,\n inlineValueTypes: inlineValueTypes,\n blocks: blocks\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends, __spreadArrays } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport * as modelUtil from '../util/model';\nimport ComponentModel from './Component';\nimport { PaletteMixin } from './mixin/palette';\nimport { DataFormatMixin } from '../model/mixin/dataFormat';\nimport { getLayoutParams, mergeLayoutParam, fetchLayoutMode } from '../util/layout';\nimport { createTask } from '../core/task';\nimport { mountExtend } from '../util/clazz';\nimport { SourceManager } from '../data/helper/sourceManager';\nimport { defaultSeriesFormatTooltip } from '../component/tooltip/seriesFormatTooltip';\nvar inner = modelUtil.makeInner();\n\nfunction getSelectionKey(data, dataIndex) {\n return data.getName(dataIndex) || data.getId(dataIndex);\n}\n\nvar SeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SeriesModel, _super);\n\n function SeriesModel() {\n // [Caution]: Becuase this class or desecendants can be used as `XXX.extend(subProto)`,\n // the class members must not be initialized in constructor or declaration place.\n // Otherwise there is bad case:\n // class A {xxx = 1;}\n // enableClassExtend(A);\n // class B extends A {}\n // var C = B.extend({xxx: 5});\n // var c = new C();\n // console.log(c.xxx); // expect 5 but always 1.\n var _this = _super !== null && _super.apply(this, arguments) || this; // ---------------------------------------\n // Props about data selection\n // ---------------------------------------\n\n\n _this._selectedDataIndicesMap = {};\n return _this;\n }\n\n SeriesModel.prototype.init = function (option, parentModel, ecModel) {\n this.seriesIndex = this.componentIndex;\n this.dataTask = createTask({\n count: dataTaskCount,\n reset: dataTaskReset\n });\n this.dataTask.context = {\n model: this\n };\n this.mergeDefaultAndTheme(option, ecModel);\n var sourceManager = inner(this).sourceManager = new SourceManager(this);\n sourceManager.prepareSource();\n var data = this.getInitialData(option, ecModel);\n wrapData(data, this);\n this.dataTask.context.data = data;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(data, 'getInitialData returned invalid data.');\n }\n\n inner(this).dataBeforeProcessed = data; // If we reverse the order (make data firstly, and then make\n // dataBeforeProcessed by cloneShallow), cloneShallow will\n // cause data.graph.data !== data when using\n // module:echarts/data/Graph or module:echarts/data/Tree.\n // See module:echarts/data/helper/linkList\n // Theoretically, it is unreasonable to call `seriesModel.getData()` in the model\n // init or merge stage, because the data can be restored. So we do not `restoreData`\n // and `setData` here, which forbids calling `seriesModel.getData()` in this stage.\n // Call `seriesModel.getRawData()` instead.\n // this.restoreData();\n\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n };\n /**\n * Util for merge default and theme to option\n */\n\n\n SeriesModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? getLayoutParams(option) : {}; // Backward compat: using subType on theme.\n // But if name duplicate between series subType\n // (for example: parallel) add component mainType,\n // add suffix 'Series'.\n\n var themeSubType = this.subType;\n\n if (ComponentModel.hasClass(themeSubType)) {\n themeSubType += 'Series';\n }\n\n zrUtil.merge(option, ecModel.getTheme().get(this.subType));\n zrUtil.merge(option, this.getDefaultOption()); // Default label emphasis `show`\n\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n this.fillDataTextStyle(option.data);\n\n if (layoutMode) {\n mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n SeriesModel.prototype.mergeOption = function (newSeriesOption, ecModel) {\n // this.settingTask.dirty();\n newSeriesOption = zrUtil.merge(this.option, newSeriesOption, true);\n this.fillDataTextStyle(newSeriesOption.data);\n var layoutMode = fetchLayoutMode(this);\n\n if (layoutMode) {\n mergeLayoutParam(this.option, newSeriesOption, layoutMode);\n }\n\n var sourceManager = inner(this).sourceManager;\n sourceManager.dirty();\n sourceManager.prepareSource();\n var data = this.getInitialData(newSeriesOption, ecModel);\n wrapData(data, this);\n this.dataTask.dirty();\n this.dataTask.context.data = data;\n inner(this).dataBeforeProcessed = data;\n autoSeriesName(this);\n\n this._initSelectedMapFromData(data);\n };\n\n SeriesModel.prototype.fillDataTextStyle = function (data) {\n // Default data label emphasis `show`\n // FIXME Tree structure data ?\n // FIXME Performance ?\n if (data && !zrUtil.isTypedArray(data)) {\n var props = ['show'];\n\n for (var i = 0; i < data.length; i++) {\n if (data[i] && data[i].label) {\n modelUtil.defaultEmphasis(data[i], 'label', props);\n }\n }\n }\n };\n /**\n * Init a data structure from data related option in series\n * Must be overriden.\n */\n\n\n SeriesModel.prototype.getInitialData = function (option, ecModel) {\n return;\n };\n /**\n * Append data to list\n */\n\n\n SeriesModel.prototype.appendData = function (params) {\n // FIXME ???\n // (1) If data from dataset, forbidden append.\n // (2) support append data of dataset.\n var data = this.getRawData();\n data.appendData(params.data);\n };\n /**\n * Consider some method like `filter`, `map` need make new data,\n * We should make sure that `seriesModel.getData()` get correct\n * data in the stream procedure. So we fetch data from upstream\n * each time `task.perform` called.\n */\n\n\n SeriesModel.prototype.getData = function (dataType) {\n var task = getCurrentTask(this);\n\n if (task) {\n var data = task.context.data;\n return dataType == null ? data : data.getLinkedData(dataType);\n } else {\n // When series is not alive (that may happen when click toolbox\n // restore or setOption with not merge mode), series data may\n // be still need to judge animation or something when graphic\n // elements want to know whether fade out.\n return inner(this).data;\n }\n };\n\n SeriesModel.prototype.getAllData = function () {\n var mainData = this.getData();\n return mainData && mainData.getLinkedDataAll ? mainData.getLinkedDataAll() : [{\n data: mainData\n }];\n };\n\n SeriesModel.prototype.setData = function (data) {\n var task = getCurrentTask(this);\n\n if (task) {\n var context = task.context; // Consider case: filter, data sample.\n // FIXME:TS never used, so comment it\n // if (context.data !== data && task.modifyOutputEnd) {\n // task.setOutputEnd(data.count());\n // }\n\n context.outputData = data; // Caution: setData should update context.data,\n // Because getData may be called multiply in a\n // single stage and expect to get the data just\n // set. (For example, AxisProxy, x y both call\n // getData and setDate sequentially).\n // So the context.data should be fetched from\n // upstream each time when a stage starts to be\n // performed.\n\n if (task !== this.dataTask) {\n context.data = data;\n }\n }\n\n inner(this).data = data;\n };\n\n SeriesModel.prototype.getSource = function () {\n return inner(this).sourceManager.getSource();\n };\n /**\n * Get data before processed\n */\n\n\n SeriesModel.prototype.getRawData = function () {\n return inner(this).dataBeforeProcessed;\n };\n /**\n * Get base axis if has coordinate system and has axis.\n * By default use coordSys.getBaseAxis();\n * Can be overrided for some chart.\n * @return {type} description\n */\n\n\n SeriesModel.prototype.getBaseAxis = function () {\n var coordSys = this.coordinateSystem; // @ts-ignore\n\n return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();\n };\n /**\n * Default tooltip formatter\n *\n * @param dataIndex\n * @param multipleSeries\n * @param dataType\n * @param renderMode valid values: 'html'(by default) and 'richText'.\n * 'html' is used for rendering tooltip in extra DOM form, and the result\n * string is used as DOM HTML content.\n * 'richText' is used for rendering tooltip in rich text form, for those where\n * DOM operation is not supported.\n * @return formatted tooltip with `html` and `markers`\n * Notice: The override method can also return string\n */\n\n\n SeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n return defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n };\n\n SeriesModel.prototype.isAnimationEnabled = function () {\n if (env.node) {\n return false;\n }\n\n var animationEnabled = this.getShallow('animation');\n\n if (animationEnabled) {\n if (this.getData().count() > this.getShallow('animationThreshold')) {\n animationEnabled = false;\n }\n }\n\n return !!animationEnabled;\n };\n\n SeriesModel.prototype.restoreData = function () {\n this.dataTask.dirty();\n };\n\n SeriesModel.prototype.getColorFromPalette = function (name, scope, requestColorNum) {\n var ecModel = this.ecModel; // PENDING\n\n var color = PaletteMixin.prototype.getColorFromPalette.call(this, name, scope, requestColorNum);\n\n if (!color) {\n color = ecModel.getColorFromPalette(name, scope, requestColorNum);\n }\n\n return color;\n };\n /**\n * Use `data.mapDimensionsAll(coordDim)` instead.\n * @deprecated\n */\n\n\n SeriesModel.prototype.coordDimToDataDim = function (coordDim) {\n return this.getRawData().mapDimensionsAll(coordDim);\n };\n /**\n * Get progressive rendering count each step\n */\n\n\n SeriesModel.prototype.getProgressive = function () {\n return this.get('progressive');\n };\n /**\n * Get progressive rendering count each step\n */\n\n\n SeriesModel.prototype.getProgressiveThreshold = function () {\n return this.get('progressiveThreshold');\n }; // PENGING If selectedMode is null ?\n\n\n SeriesModel.prototype.select = function (innerDataIndices, dataType) {\n this._innerSelect(this.getData(dataType), innerDataIndices);\n };\n\n SeriesModel.prototype.unselect = function (innerDataIndices, dataType) {\n var selectedMap = this.option.selectedMap;\n\n if (!selectedMap) {\n return;\n }\n\n var data = this.getData(dataType);\n\n for (var i = 0; i < innerDataIndices.length; i++) {\n var dataIndex = innerDataIndices[i];\n var nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = false;\n this._selectedDataIndicesMap[nameOrId] = -1;\n }\n };\n\n SeriesModel.prototype.toggleSelect = function (innerDataIndices, dataType) {\n var tmpArr = [];\n\n for (var i = 0; i < innerDataIndices.length; i++) {\n tmpArr[0] = innerDataIndices[i];\n this.isSelected(innerDataIndices[i], dataType) ? this.unselect(tmpArr, dataType) : this.select(tmpArr, dataType);\n }\n };\n\n SeriesModel.prototype.getSelectedDataIndices = function () {\n var selectedDataIndicesMap = this._selectedDataIndicesMap;\n var nameOrIds = zrUtil.keys(selectedDataIndicesMap);\n var dataIndices = [];\n\n for (var i = 0; i < nameOrIds.length; i++) {\n var dataIndex = selectedDataIndicesMap[nameOrIds[i]];\n\n if (dataIndex >= 0) {\n dataIndices.push(dataIndex);\n }\n }\n\n return dataIndices;\n };\n\n SeriesModel.prototype.isSelected = function (dataIndex, dataType) {\n var selectedMap = this.option.selectedMap;\n\n if (!selectedMap) {\n return false;\n }\n\n var data = this.getData(dataType);\n var nameOrId = getSelectionKey(data, dataIndex);\n return selectedMap[nameOrId] || false;\n };\n\n SeriesModel.prototype._innerSelect = function (data, innerDataIndices) {\n var _a, _b;\n\n var selectedMode = this.option.selectedMode;\n var len = innerDataIndices.length;\n\n if (!selectedMode || !len) {\n return;\n }\n\n if (selectedMode === 'multiple') {\n var selectedMap = this.option.selectedMap || (this.option.selectedMap = {});\n\n for (var i = 0; i < len; i++) {\n var dataIndex = innerDataIndices[i]; // TODO diffrent types of data share same object.\n\n var nameOrId = getSelectionKey(data, dataIndex);\n selectedMap[nameOrId] = true;\n this._selectedDataIndicesMap[nameOrId] = data.getRawIndex(dataIndex);\n }\n } else if (selectedMode === 'single' || selectedMode === true) {\n var lastDataIndex = innerDataIndices[len - 1];\n var nameOrId = getSelectionKey(data, lastDataIndex);\n this.option.selectedMap = (_a = {}, _a[nameOrId] = true, _a);\n this._selectedDataIndicesMap = (_b = {}, _b[nameOrId] = data.getRawIndex(lastDataIndex), _b);\n }\n };\n\n SeriesModel.prototype._initSelectedMapFromData = function (data) {\n // Ignore select info in data if selectedMap exists.\n // NOTE It's only for legacy usage. edge data is not supported.\n if (this.option.selectedMap) {\n return;\n }\n\n var dataIndices = [];\n\n if (data.hasItemOption) {\n data.each(function (idx) {\n var rawItem = data.getRawDataItem(idx);\n\n if (rawItem && rawItem.selected) {\n dataIndices.push(idx);\n }\n });\n }\n\n if (dataIndices.length > 0) {\n this._innerSelect(data, dataIndices);\n }\n }; // /**\n // * @see {module:echarts/stream/Scheduler}\n // */\n // abstract pipeTask: null\n\n\n SeriesModel.registerClass = function (clz) {\n return ComponentModel.registerClass(clz);\n };\n\n SeriesModel.protoInitialize = function () {\n var proto = SeriesModel.prototype;\n proto.type = 'series.__base__';\n proto.seriesIndex = 0;\n proto.useColorPaletteOnData = false;\n proto.ignoreStyleOnData = false;\n proto.hasSymbolVisual = false;\n proto.defaultSymbol = 'circle'; // Make sure the values can be accessed!\n\n proto.visualStyleAccessPath = 'itemStyle';\n proto.visualDrawType = 'fill';\n }();\n\n return SeriesModel;\n}(ComponentModel);\n\nzrUtil.mixin(SeriesModel, DataFormatMixin);\nzrUtil.mixin(SeriesModel, PaletteMixin);\nmountExtend(SeriesModel, ComponentModel);\n/**\n * MUST be called after `prepareSource` called\n * Here we need to make auto series, especially for auto legend. But we\n * do not modify series.name in option to avoid side effects.\n */\n\nfunction autoSeriesName(seriesModel) {\n // User specified name has higher priority, otherwise it may cause\n // series can not be queried unexpectedly.\n var name = seriesModel.name;\n\n if (!modelUtil.isNameSpecified(seriesModel)) {\n seriesModel.name = getSeriesAutoName(seriesModel) || name;\n }\n}\n\nfunction getSeriesAutoName(seriesModel) {\n var data = seriesModel.getRawData();\n var dataDims = data.mapDimensionsAll('seriesName');\n var nameArr = [];\n zrUtil.each(dataDims, function (dataDim) {\n var dimInfo = data.getDimensionInfo(dataDim);\n dimInfo.displayName && nameArr.push(dimInfo.displayName);\n });\n return nameArr.join(' ');\n}\n\nfunction dataTaskCount(context) {\n return context.model.getRawData().count();\n}\n\nfunction dataTaskReset(context) {\n var seriesModel = context.model;\n seriesModel.setData(seriesModel.getRawData().cloneShallow());\n return dataTaskProgress;\n}\n\nfunction dataTaskProgress(param, context) {\n // Avoid repead cloneShallow when data just created in reset.\n if (context.outputData && param.end > context.outputData.count()) {\n context.model.getRawData().cloneShallow(context.outputData);\n }\n} // TODO refactor\n\n\nfunction wrapData(data, seriesModel) {\n zrUtil.each(__spreadArrays(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) {\n data.wrapMethod(methodName, zrUtil.curry(onDataChange, seriesModel));\n });\n}\n\nfunction onDataChange(seriesModel, newList) {\n var task = getCurrentTask(seriesModel);\n\n if (task) {\n // Consider case: filter, selectRange\n task.setOutputEnd((newList || this).count());\n }\n\n return newList;\n}\n\nfunction getCurrentTask(seriesModel) {\n var scheduler = (seriesModel.ecModel || {}).scheduler;\n var pipeline = scheduler && scheduler.getPipeline(seriesModel.uid);\n\n if (pipeline) {\n // When pipline finished, the currrentTask keep the last\n // task (renderTask).\n var task = pipeline.currentTask;\n\n if (task) {\n var agentStubMap = task.agentStubMap;\n\n if (agentStubMap) {\n task = agentStubMap.get(seriesModel.uid);\n }\n }\n\n return task;\n }\n}\n\nexport default SeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Group from 'zrender/lib/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\n\nvar ComponentView =\n/** @class */\nfunction () {\n function ComponentView() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewComponent');\n }\n\n ComponentView.prototype.init = function (ecModel, api) {};\n\n ComponentView.prototype.render = function (model, ecModel, api, payload) {};\n\n ComponentView.prototype.dispose = function (ecModel, api) {};\n\n ComponentView.prototype.updateView = function (model, ecModel, api, payload) {// Do nothing;\n };\n\n ComponentView.prototype.updateLayout = function (model, ecModel, api, payload) {// Do nothing;\n };\n\n ComponentView.prototype.updateVisual = function (model, ecModel, api, payload) {// Do nothing;\n };\n /**\n * Hook for blur target series.\n * Can be used in marker for blur the markers\n */\n\n\n ComponentView.prototype.blurSeries = function (seriesModels, ecModel) {// Do nothing;\n };\n\n return ComponentView;\n}();\n\n;\nclazzUtil.enableClassExtend(ComponentView);\nclazzUtil.enableClassManagement(ComponentView);\nexport default ComponentView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from '../../util/model';\n/**\n * @return {string} If large mode changed, return string 'reset';\n */\n\nexport default function createRenderPlanner() {\n var inner = makeInner();\n return function (seriesModel) {\n var fields = inner(seriesModel);\n var pipelineContext = seriesModel.pipelineContext;\n var originalLarge = !!fields.large;\n var originalProgressive = !!fields.progressiveRender; // FIXME: if the planner works on a filtered series, `pipelineContext` does not\n // exists. See #11611 . Probably we need to modify this structure, see the comment\n // on `performRawSeries` in `Schedular.js`.\n\n var large = fields.large = !!(pipelineContext && pipelineContext.large);\n var progressive = fields.progressiveRender = !!(pipelineContext && pipelineContext.progressiveRender);\n return !!(originalLarge !== large || originalProgressive !== progressive) && 'reset';\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each } from 'zrender/lib/core/util';\nimport Group from 'zrender/lib/graphic/Group';\nimport * as componentUtil from '../util/component';\nimport * as clazzUtil from '../util/clazz';\nimport * as modelUtil from '../util/model';\nimport { enterEmphasis, leaveEmphasis, getHighlightDigit } from '../util/states';\nimport { createTask } from '../core/task';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nvar inner = modelUtil.makeInner();\nvar renderPlanner = createRenderPlanner();\n\nvar ChartView =\n/** @class */\nfunction () {\n function ChartView() {\n this.group = new Group();\n this.uid = componentUtil.getUID('viewChart');\n this.renderTask = createTask({\n plan: renderTaskPlan,\n reset: renderTaskReset\n });\n this.renderTask.context = {\n view: this\n };\n }\n\n ChartView.prototype.init = function (ecModel, api) {};\n\n ChartView.prototype.render = function (seriesModel, ecModel, api, payload) {};\n /**\n * Highlight series or specified data item.\n */\n\n\n ChartView.prototype.highlight = function (seriesModel, ecModel, api, payload) {\n toggleHighlight(seriesModel.getData(), payload, 'emphasis');\n };\n /**\n * Downplay series or specified data item.\n */\n\n\n ChartView.prototype.downplay = function (seriesModel, ecModel, api, payload) {\n toggleHighlight(seriesModel.getData(), payload, 'normal');\n };\n /**\n * Remove self.\n */\n\n\n ChartView.prototype.remove = function (ecModel, api) {\n this.group.removeAll();\n };\n /**\n * Dispose self.\n */\n\n\n ChartView.prototype.dispose = function (ecModel, api) {};\n\n ChartView.prototype.updateView = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n }; // FIXME never used?\n\n\n ChartView.prototype.updateLayout = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n }; // FIXME never used?\n\n\n ChartView.prototype.updateVisual = function (seriesModel, ecModel, api, payload) {\n this.render(seriesModel, ecModel, api, payload);\n };\n\n ChartView.markUpdateMethod = function (payload, methodName) {\n inner(payload).updateMethod = methodName;\n };\n\n ChartView.protoInitialize = function () {\n var proto = ChartView.prototype;\n proto.type = 'chart';\n }();\n\n return ChartView;\n}();\n\n;\n/**\n * Set state of single element\n */\n\nfunction elSetState(el, state, highlightDigit) {\n if (el) {\n (state === 'emphasis' ? enterEmphasis : leaveEmphasis)(el, highlightDigit);\n }\n}\n\nfunction toggleHighlight(data, payload, state) {\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n var highlightDigit = payload && payload.highlightKey != null ? getHighlightDigit(payload.highlightKey) : null;\n\n if (dataIndex != null) {\n each(modelUtil.normalizeToArray(dataIndex), function (dataIdx) {\n elSetState(data.getItemGraphicEl(dataIdx), state, highlightDigit);\n });\n } else {\n data.eachItemGraphicEl(function (el) {\n elSetState(el, state, highlightDigit);\n });\n }\n}\n\nclazzUtil.enableClassExtend(ChartView, ['dispose']);\nclazzUtil.enableClassManagement(ChartView);\n\nfunction renderTaskPlan(context) {\n return renderPlanner(context.model);\n}\n\nfunction renderTaskReset(context) {\n var seriesModel = context.model;\n var ecModel = context.ecModel;\n var api = context.api;\n var payload = context.payload; // FIXME: remove updateView updateVisual\n\n var progressiveRender = seriesModel.pipelineContext.progressiveRender;\n var view = context.view;\n var updateMethod = payload && inner(payload).updateMethod;\n var methodName = progressiveRender ? 'incrementalPrepareRender' : updateMethod && view[updateMethod] ? updateMethod // `appendData` is also supported when data amount\n // is less than progressive threshold.\n : 'render';\n\n if (methodName !== 'render') {\n view[methodName](seriesModel, ecModel, api, payload);\n }\n\n return progressMethodMap[methodName];\n}\n\nvar progressMethodMap = {\n incrementalPrepareRender: {\n progress: function (params, context) {\n context.view.incrementalRender(params, context.model, context.ecModel, context.api, context.payload);\n }\n },\n render: {\n // Put view.render in `progress` to support appendData. But in this case\n // view.render should not be called in reset, otherwise it will be called\n // twise. Use `forceFirstProgress` to make sure that view.render is called\n // in any cases.\n forceFirstProgress: true,\n progress: function (params, context) {\n context.view.render(context.model, context.ecModel, context.api, context.payload);\n }\n }\n};\nexport default ChartView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar ORIGIN_METHOD = '\\0__throttleOriginMethod';\nvar RATE = '\\0__throttleRate';\nvar THROTTLE_TYPE = '\\0__throttleType';\n;\n/**\n * @public\n * @param {(Function)} fn\n * @param {number} [delay=0] Unit: ms.\n * @param {boolean} [debounce=false]\n * true: If call interval less than `delay`, only the last call works.\n * false: If call interval less than `delay, call works on fixed rate.\n * @return {(Function)} throttled fn.\n */\n\nexport function throttle(fn, delay, debounce) {\n var currCall;\n var lastCall = 0;\n var lastExec = 0;\n var timer = null;\n var diff;\n var scope;\n var args;\n var debounceNextCall;\n delay = delay || 0;\n\n function exec() {\n lastExec = new Date().getTime();\n timer = null;\n fn.apply(scope, args || []);\n }\n\n var cb = function () {\n var cbArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n cbArgs[_i] = arguments[_i];\n }\n\n currCall = new Date().getTime();\n scope = this;\n args = cbArgs;\n var thisDelay = debounceNextCall || delay;\n var thisDebounce = debounceNextCall || debounce;\n debounceNextCall = null;\n diff = currCall - (thisDebounce ? lastCall : lastExec) - thisDelay;\n clearTimeout(timer); // Here we should make sure that: the `exec` SHOULD NOT be called later\n // than a new call of `cb`, that is, preserving the command order. Consider\n // calculating \"scale rate\" when roaming as an example. When a call of `cb`\n // happens, either the `exec` is called dierectly, or the call is delayed.\n // But the delayed call should never be later than next call of `cb`. Under\n // this assurance, we can simply update view state each time `dispatchAction`\n // triggered by user roaming, but not need to add extra code to avoid the\n // state being \"rolled-back\".\n\n if (thisDebounce) {\n timer = setTimeout(exec, thisDelay);\n } else {\n if (diff >= 0) {\n exec();\n } else {\n timer = setTimeout(exec, -diff);\n }\n }\n\n lastCall = currCall;\n };\n /**\n * Clear throttle.\n * @public\n */\n\n\n cb.clear = function () {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n };\n /**\n * Enable debounce once.\n */\n\n\n cb.debounceNextCall = function (debounceDelay) {\n debounceNextCall = debounceDelay;\n };\n\n return cb;\n}\n/**\n * Create throttle method or update throttle rate.\n *\n * @example\n * ComponentView.prototype.render = function () {\n * ...\n * throttle.createOrUpdate(\n * this,\n * '_dispatchAction',\n * this.model.get('throttle'),\n * 'fixRate'\n * );\n * };\n * ComponentView.prototype.remove = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n * ComponentView.prototype.dispose = function () {\n * throttle.clear(this, '_dispatchAction');\n * };\n *\n */\n\nexport function createOrUpdate(obj, fnAttr, rate, throttleType) {\n var fn = obj[fnAttr];\n\n if (!fn) {\n return;\n }\n\n var originFn = fn[ORIGIN_METHOD] || fn;\n var lastThrottleType = fn[THROTTLE_TYPE];\n var lastRate = fn[RATE];\n\n if (lastRate !== rate || lastThrottleType !== throttleType) {\n if (rate == null || !throttleType) {\n return obj[fnAttr] = originFn;\n }\n\n fn = obj[fnAttr] = throttle(originFn, rate, throttleType === 'debounce');\n fn[ORIGIN_METHOD] = originFn;\n fn[THROTTLE_TYPE] = throttleType;\n fn[RATE] = rate;\n }\n\n return fn;\n}\n/**\n * Clear throttle. Example see throttle.createOrUpdate.\n */\n\nexport function clear(obj, fnAttr) {\n var fn = obj[fnAttr];\n\n if (fn && fn[ORIGIN_METHOD]) {\n obj[fnAttr] = fn[ORIGIN_METHOD];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isFunction, extend, createHashMap } from 'zrender/lib/core/util';\nimport makeStyleMapper from '../model/mixin/makeStyleMapper';\nimport { ITEM_STYLE_KEY_MAP } from '../model/mixin/itemStyle';\nimport { LINE_STYLE_KEY_MAP } from '../model/mixin/lineStyle';\nimport Model from '../model/Model';\nimport { makeInner } from '../util/model';\nvar inner = makeInner();\nvar defaultStyleMappers = {\n itemStyle: makeStyleMapper(ITEM_STYLE_KEY_MAP, true),\n lineStyle: makeStyleMapper(LINE_STYLE_KEY_MAP, true)\n};\nvar defaultColorKey = {\n lineStyle: 'stroke',\n itemStyle: 'fill'\n};\n\nfunction getStyleMapper(seriesModel, stylePath) {\n var styleMapper = seriesModel.visualStyleMapper || defaultStyleMappers[stylePath];\n\n if (!styleMapper) {\n console.warn(\"Unkown style type '\" + stylePath + \"'.\");\n return defaultStyleMappers.itemStyle;\n }\n\n return styleMapper;\n}\n\nfunction getDefaultColorKey(seriesModel, stylePath) {\n // return defaultColorKey[stylePath] ||\n var colorKey = seriesModel.visualDrawType || defaultColorKey[stylePath];\n\n if (!colorKey) {\n console.warn(\"Unkown style type '\" + stylePath + \"'.\");\n return 'fill';\n }\n\n return colorKey;\n}\n\nvar seriesStyleTask = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle\n\n var styleModel = seriesModel.getModel(stylePath);\n var getStyle = getStyleMapper(seriesModel, stylePath);\n var globalStyle = getStyle(styleModel);\n var decalOption = styleModel.getShallow('decal');\n\n if (decalOption) {\n data.setVisual('decal', decalOption);\n decalOption.dirty = true;\n } // TODO\n\n\n var colorKey = getDefaultColorKey(seriesModel, stylePath);\n var color = globalStyle[colorKey]; // TODO style callback\n\n var colorCallback = isFunction(color) ? color : null;\n var hasAutoColor = globalStyle.fill === 'auto' || globalStyle.stroke === 'auto'; // Get from color palette by default.\n\n if (!globalStyle[colorKey] || colorCallback || hasAutoColor) {\n // Note: if some series has color specified (e.g., by itemStyle.color), we DO NOT\n // make it effect palette. Bacause some scenarios users need to make some series\n // transparent or as background, which should better not effect the palette.\n var colorPalette = seriesModel.getColorFromPalette( // TODO series count changed.\n seriesModel.name, null, ecModel.getSeriesCount());\n\n if (!globalStyle[colorKey]) {\n globalStyle[colorKey] = colorPalette;\n data.setVisual('colorFromPalette', true);\n }\n\n globalStyle.fill = globalStyle.fill === 'auto' || typeof globalStyle.fill === 'function' ? colorPalette : globalStyle.fill;\n globalStyle.stroke = globalStyle.stroke === 'auto' || typeof globalStyle.stroke === 'function' ? colorPalette : globalStyle.stroke;\n }\n\n data.setVisual('style', globalStyle);\n data.setVisual('drawType', colorKey); // Only visible series has each data be visual encoded\n\n if (!ecModel.isSeriesFiltered(seriesModel) && colorCallback) {\n data.setVisual('colorFromPalette', false);\n return {\n dataEach: function (data, idx) {\n var dataParams = seriesModel.getDataParams(idx);\n var itemStyle = extend({}, globalStyle);\n itemStyle[colorKey] = colorCallback(dataParams);\n data.setItemVisual(idx, 'style', itemStyle);\n }\n };\n }\n }\n};\nvar sharedModel = new Model();\nvar dataStyleTask = {\n createOnAllSeries: true,\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n if (seriesModel.ignoreStyleOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle'; // Set in itemStyle\n\n var getStyle = getStyleMapper(seriesModel, stylePath);\n var colorKey = data.getVisual('drawType');\n return {\n dataEach: data.hasItemOption ? function (data, idx) {\n // Not use getItemModel for performance considuration\n var rawItem = data.getRawDataItem(idx);\n\n if (rawItem && rawItem[stylePath]) {\n sharedModel.option = rawItem[stylePath];\n var style = getStyle(sharedModel);\n var existsStyle = data.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n if (sharedModel.option.decal) {\n data.setItemVisual(idx, 'decal', sharedModel.option.decal);\n sharedModel.option.decal.dirty = true;\n }\n\n if (colorKey in style) {\n data.setItemVisual(idx, 'colorFromPalette', false);\n }\n }\n } : null\n };\n }\n}; // Pick color from palette for the data which has not been set with color yet.\n// Note: do not support stream rendering. No such cases yet.\n\nvar dataColorPaletteTask = {\n performRawSeries: true,\n overallReset: function (ecModel) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n var paletteScopeGroupByType = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData) {\n return;\n }\n\n var colorScope = paletteScopeGroupByType.get(seriesModel.type);\n\n if (!colorScope) {\n colorScope = {};\n paletteScopeGroupByType.set(seriesModel.type, colorScope);\n }\n\n inner(seriesModel).scope = colorScope;\n });\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData || ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n var colorScope = inner(seriesModel).scope;\n var stylePath = seriesModel.visualStyleAccessPath || 'itemStyle';\n var colorKey = getDefaultColorKey(seriesModel, stylePath);\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n }); // Iterate on data before filtered. To make sure color from palette can be\n // Consistent when toggling legend.\n\n dataAll.each(function (rawIdx) {\n var idx = idxMap[rawIdx];\n var fromPalette = data.getItemVisual(idx, 'colorFromPalette'); // Get color from palette for each data only when the color is inherited from series color, which is\n // also picked from color palette. So following situation is not in the case:\n // 1. series.itemStyle.color is set\n // 2. color is encoded by visualMap\n\n if (fromPalette) {\n var itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n var name_1 = dataAll.getName(rawIdx) || rawIdx + '';\n var dataCount = dataAll.count();\n itemStyle[colorKey] = seriesModel.getColorFromPalette(name_1, colorScope, dataCount);\n }\n });\n });\n }\n};\nexport { seriesStyleTask, dataStyleTask, dataColorPaletteTask };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../util/graphic';\nvar PI = Math.PI;\n/**\n * @param {module:echarts/ExtensionAPI} api\n * @param {Object} [opts]\n * @param {string} [opts.text]\n * @param {string} [opts.color]\n * @param {string} [opts.textColor]\n * @return {module:zrender/Element}\n */\n\nexport default function defaultLoading(api, opts) {\n opts = opts || {};\n zrUtil.defaults(opts, {\n text: 'loading',\n textColor: '#000',\n fontSize: 12,\n fontWeight: 'normal',\n fontStyle: 'normal',\n fontFamily: 'sans-serif',\n maskColor: 'rgba(255, 255, 255, 0.8)',\n showSpinner: true,\n color: '#5470c6',\n spinnerRadius: 10,\n lineWidth: 5,\n zlevel: 0\n });\n var group = new graphic.Group();\n var mask = new graphic.Rect({\n style: {\n fill: opts.maskColor\n },\n zlevel: opts.zlevel,\n z: 10000\n });\n group.add(mask);\n var textContent = new graphic.Text({\n style: {\n text: opts.text,\n fill: opts.textColor,\n fontSize: opts.fontSize,\n fontWeight: opts.fontWeight,\n fontStyle: opts.fontStyle,\n fontFamily: opts.fontFamily\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n var labelRect = new graphic.Rect({\n style: {\n fill: 'none'\n },\n textContent: textContent,\n textConfig: {\n position: 'right',\n distance: 10\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n group.add(labelRect);\n var arc;\n\n if (opts.showSpinner) {\n arc = new graphic.Arc({\n shape: {\n startAngle: -PI / 2,\n endAngle: -PI / 2 + 0.1,\n r: opts.spinnerRadius\n },\n style: {\n stroke: opts.color,\n lineCap: 'round',\n lineWidth: opts.lineWidth\n },\n zlevel: opts.zlevel,\n z: 10001\n });\n arc.animateShape(true).when(1000, {\n endAngle: PI * 3 / 2\n }).start('circularInOut');\n arc.animateShape(true).when(1000, {\n startAngle: PI * 3 / 2\n }).delay(300).start('circularInOut');\n group.add(arc);\n } // Inject resize\n\n\n group.resize = function () {\n var textWidth = textContent.getBoundingRect().width;\n var r = opts.showSpinner ? opts.spinnerRadius : 0; // cx = (containerWidth - arcDiameter - textDistance - textWidth) / 2\n // textDistance needs to be calculated when both animation and text exist\n\n var cx = (api.getWidth() - r * 2 - (opts.showSpinner && textWidth ? 10 : 0) - textWidth) / 2 - (opts.showSpinner && textWidth ? 0 : 5 + textWidth / 2) // only show the text\n + (opts.showSpinner ? 0 : textWidth / 2) // only show the spinner\n + (textWidth ? 0 : r);\n var cy = api.getHeight() / 2;\n opts.showSpinner && arc.setShape({\n cx: cx,\n cy: cy\n });\n labelRect.setShape({\n x: cx - r,\n y: cy - r,\n width: r * 2,\n height: r * 2\n });\n mask.setShape({\n x: 0,\n y: 0,\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n\n group.resize();\n return group;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, map, isFunction, createHashMap, noop, assert } from 'zrender/lib/core/util';\nimport { createTask } from './task';\nimport { getUID } from '../util/component';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport { normalizeToArray } from '../util/model';\n;\n\nvar Scheduler =\n/** @class */\nfunction () {\n function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) {\n // key: handlerUID\n this._stageTaskMap = createHashMap();\n this.ecInstance = ecInstance;\n this.api = api; // Fix current processors in case that in some rear cases that\n // processors might be registered after echarts instance created.\n // Register processors incrementally for a echarts instance is\n // not supported by this stream architecture.\n\n dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice();\n visualHandlers = this._visualHandlers = visualHandlers.slice();\n this._allHandlers = dataProcessorHandlers.concat(visualHandlers);\n }\n\n Scheduler.prototype.restoreData = function (ecModel, payload) {\n // TODO: Only restore needed series and components, but not all components.\n // Currently `restoreData` of all of the series and component will be called.\n // But some independent components like `title`, `legend`, `graphic`, `toolbox`,\n // `tooltip`, `axisPointer`, etc, do not need series refresh when `setOption`,\n // and some components like coordinate system, axes, dataZoom, visualMap only\n // need their target series refresh.\n // (1) If we are implementing this feature some day, we should consider these cases:\n // if a data processor depends on a component (e.g., dataZoomProcessor depends\n // on the settings of `dataZoom`), it should be re-performed if the component\n // is modified by `setOption`.\n // (2) If a processor depends on sevral series, speicified by its `getTargetSeries`,\n // it should be re-performed when the result array of `getTargetSeries` changed.\n // We use `dependencies` to cover these issues.\n // (3) How to update target series when coordinate system related components modified.\n // TODO: simply the dirty mechanism? Check whether only the case here can set tasks dirty,\n // and this case all of the tasks will be set as dirty.\n ecModel.restoreData(payload); // Theoretically an overall task not only depends on each of its target series, but also\n // depends on all of the series.\n // The overall task is not in pipeline, and `ecModel.restoreData` only set pipeline tasks\n // dirty. If `getTargetSeries` of an overall task returns nothing, we should also ensure\n // that the overall task is set as dirty and to be performed, otherwise it probably cause\n // state chaos. So we have to set dirty of all of the overall tasks manually, otherwise it\n // probably cause state chaos (consider `dataZoomProcessor`).\n\n this._stageTaskMap.each(function (taskRecord) {\n var overallTask = taskRecord.overallTask;\n overallTask && overallTask.dirty();\n });\n }; // If seriesModel provided, incremental threshold is check by series data.\n\n\n Scheduler.prototype.getPerformArgs = function (task, isBlock) {\n // For overall task\n if (!task.__pipeline) {\n return;\n }\n\n var pipeline = this._pipelineMap.get(task.__pipeline.id);\n\n var pCtx = pipeline.context;\n var incremental = !isBlock && pipeline.progressiveEnabled && (!pCtx || pCtx.progressiveRender) && task.__idxInPipeline > pipeline.blockIndex;\n var step = incremental ? pipeline.step : null;\n var modDataCount = pCtx && pCtx.modDataCount;\n var modBy = modDataCount != null ? Math.ceil(modDataCount / step) : null;\n return {\n step: step,\n modBy: modBy,\n modDataCount: modDataCount\n };\n };\n\n Scheduler.prototype.getPipeline = function (pipelineId) {\n return this._pipelineMap.get(pipelineId);\n };\n /**\n * Current, progressive rendering starts from visual and layout.\n * Always detect render mode in the same stage, avoiding that incorrect\n * detection caused by data filtering.\n * Caution:\n * `updateStreamModes` use `seriesModel.getData()`.\n */\n\n\n Scheduler.prototype.updateStreamModes = function (seriesModel, view) {\n var pipeline = this._pipelineMap.get(seriesModel.uid);\n\n var data = seriesModel.getData();\n var dataLen = data.count(); // `progressiveRender` means that can render progressively in each\n // animation frame. Note that some types of series do not provide\n // `view.incrementalPrepareRender` but support `chart.appendData`. We\n // use the term `incremental` but not `progressive` to describe the\n // case that `chart.appendData`.\n\n var progressiveRender = pipeline.progressiveEnabled && view.incrementalPrepareRender && dataLen >= pipeline.threshold;\n var large = seriesModel.get('large') && dataLen >= seriesModel.get('largeThreshold'); // TODO: modDataCount should not updated if `appendData`, otherwise cause whole repaint.\n // see `test/candlestick-large3.html`\n\n var modDataCount = seriesModel.get('progressiveChunkMode') === 'mod' ? dataLen : null;\n seriesModel.pipelineContext = pipeline.context = {\n progressiveRender: progressiveRender,\n modDataCount: modDataCount,\n large: large\n };\n };\n\n Scheduler.prototype.restorePipelines = function (ecModel) {\n var scheduler = this;\n var pipelineMap = scheduler._pipelineMap = createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var progressive = seriesModel.getProgressive();\n var pipelineId = seriesModel.uid;\n pipelineMap.set(pipelineId, {\n id: pipelineId,\n head: null,\n tail: null,\n threshold: seriesModel.getProgressiveThreshold(),\n progressiveEnabled: progressive && !(seriesModel.preventIncremental && seriesModel.preventIncremental()),\n blockIndex: -1,\n step: Math.round(progressive || 700),\n count: 0\n });\n\n scheduler._pipe(seriesModel, seriesModel.dataTask);\n });\n };\n\n Scheduler.prototype.prepareStageTasks = function () {\n var stageTaskMap = this._stageTaskMap;\n var ecModel = this.api.getModel();\n var api = this.api;\n each(this._allHandlers, function (handler) {\n var record = stageTaskMap.get(handler.uid) || stageTaskMap.set(handler.uid, {});\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n // Currently do not need to support to sepecify them both.\n errMsg = '\"reset\" and \"overallReset\" must not be both specified.';\n }\n\n assert(!(handler.reset && handler.overallReset), errMsg);\n handler.reset && this._createSeriesStageTask(handler, record, ecModel, api);\n handler.overallReset && this._createOverallStageTask(handler, record, ecModel, api);\n }, this);\n };\n\n Scheduler.prototype.prepareView = function (view, model, ecModel, api) {\n var renderTask = view.renderTask;\n var context = renderTask.context;\n context.model = model;\n context.ecModel = ecModel;\n context.api = api;\n renderTask.__block = !view.incrementalPrepareRender;\n\n this._pipe(model, renderTask);\n };\n\n Scheduler.prototype.performDataProcessorTasks = function (ecModel, payload) {\n // If we do not use `block` here, it should be considered when to update modes.\n this._performStageTasks(this._dataProcessorHandlers, ecModel, payload, {\n block: true\n });\n };\n\n Scheduler.prototype.performVisualTasks = function (ecModel, payload, opt) {\n this._performStageTasks(this._visualHandlers, ecModel, payload, opt);\n };\n\n Scheduler.prototype._performStageTasks = function (stageHandlers, ecModel, payload, opt) {\n opt = opt || {};\n var unfinished = false;\n var scheduler = this;\n each(stageHandlers, function (stageHandler, idx) {\n if (opt.visualType && opt.visualType !== stageHandler.visualType) {\n return;\n }\n\n var stageHandlerRecord = scheduler._stageTaskMap.get(stageHandler.uid);\n\n var seriesTaskMap = stageHandlerRecord.seriesTaskMap;\n var overallTask = stageHandlerRecord.overallTask;\n\n if (overallTask) {\n var overallNeedDirty_1;\n var agentStubMap = overallTask.agentStubMap;\n agentStubMap.each(function (stub) {\n if (needSetDirty(opt, stub)) {\n stub.dirty();\n overallNeedDirty_1 = true;\n }\n });\n overallNeedDirty_1 && overallTask.dirty();\n scheduler.updatePayload(overallTask, payload);\n var performArgs_1 = scheduler.getPerformArgs(overallTask, opt.block); // Execute stubs firstly, which may set the overall task dirty,\n // then execute the overall task. And stub will call seriesModel.setData,\n // which ensures that in the overallTask seriesModel.getData() will not\n // return incorrect data.\n\n agentStubMap.each(function (stub) {\n stub.perform(performArgs_1);\n });\n\n if (overallTask.perform(performArgs_1)) {\n unfinished = true;\n }\n } else if (seriesTaskMap) {\n seriesTaskMap.each(function (task, pipelineId) {\n if (needSetDirty(opt, task)) {\n task.dirty();\n }\n\n var performArgs = scheduler.getPerformArgs(task, opt.block); // FIXME\n // if intending to decalare `performRawSeries` in handlers, only\n // stream-independent (specifically, data item independent) operations can be\n // performed. Because is a series is filtered, most of the tasks will not\n // be performed. A stream-dependent operation probably cause wrong biz logic.\n // Perhaps we should not provide a separate callback for this case instead\n // of providing the config `performRawSeries`. The stream-dependent operaions\n // and stream-independent operations should better not be mixed.\n\n performArgs.skip = !stageHandler.performRawSeries && ecModel.isSeriesFiltered(task.context.model);\n scheduler.updatePayload(task, payload);\n\n if (task.perform(performArgs)) {\n unfinished = true;\n }\n });\n }\n });\n\n function needSetDirty(opt, task) {\n return opt.setDirty && (!opt.dirtyMap || opt.dirtyMap.get(task.__pipeline.id));\n }\n\n this.unfinished = unfinished || this.unfinished;\n };\n\n Scheduler.prototype.performSeriesTasks = function (ecModel) {\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n // Progress to the end for dataInit and dataRestore.\n unfinished = seriesModel.dataTask.perform() || unfinished;\n });\n this.unfinished = unfinished || this.unfinished;\n };\n\n Scheduler.prototype.plan = function () {\n // Travel pipelines, check block.\n this._pipelineMap.each(function (pipeline) {\n var task = pipeline.tail;\n\n do {\n if (task.__block) {\n pipeline.blockIndex = task.__idxInPipeline;\n break;\n }\n\n task = task.getUpstream();\n } while (task);\n });\n };\n\n Scheduler.prototype.updatePayload = function (task, payload) {\n payload !== 'remain' && (task.context.payload = payload);\n };\n\n Scheduler.prototype._createSeriesStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {\n var scheduler = this;\n var oldSeriesTaskMap = stageHandlerRecord.seriesTaskMap; // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n\n var newSeriesTaskMap = stageHandlerRecord.seriesTaskMap = createHashMap();\n var seriesType = stageHandler.seriesType;\n var getTargetSeries = stageHandler.getTargetSeries; // If a stageHandler should cover all series, `createOnAllSeries` should be declared mandatorily,\n // to avoid some typo or abuse. Otherwise if an extension do not specify a `seriesType`,\n // it works but it may cause other irrelevant charts blocked.\n\n if (stageHandler.createOnAllSeries) {\n ecModel.eachRawSeries(create);\n } else if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, create);\n } else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(create);\n }\n\n function create(seriesModel) {\n var pipelineId = seriesModel.uid; // Init tasks for each seriesModel only once.\n // Reuse original task instance.\n\n var task = newSeriesTaskMap.set(pipelineId, oldSeriesTaskMap && oldSeriesTaskMap.get(pipelineId) || createTask({\n plan: seriesTaskPlan,\n reset: seriesTaskReset,\n count: seriesTaskCount\n }));\n task.context = {\n model: seriesModel,\n ecModel: ecModel,\n api: api,\n // PENDING: `useClearVisual` not used?\n useClearVisual: stageHandler.isVisual && !stageHandler.isLayout,\n plan: stageHandler.plan,\n reset: stageHandler.reset,\n scheduler: scheduler\n };\n\n scheduler._pipe(seriesModel, task);\n }\n };\n\n Scheduler.prototype._createOverallStageTask = function (stageHandler, stageHandlerRecord, ecModel, api) {\n var scheduler = this;\n var overallTask = stageHandlerRecord.overallTask = stageHandlerRecord.overallTask // For overall task, the function only be called on reset stage.\n || createTask({\n reset: overallTaskReset\n });\n overallTask.context = {\n ecModel: ecModel,\n api: api,\n overallReset: stageHandler.overallReset,\n scheduler: scheduler\n };\n var oldAgentStubMap = overallTask.agentStubMap; // The count of stages are totally about only several dozen, so\n // do not need to reuse the map.\n\n var newAgentStubMap = overallTask.agentStubMap = createHashMap();\n var seriesType = stageHandler.seriesType;\n var getTargetSeries = stageHandler.getTargetSeries;\n var overallProgress = true;\n var shouldOverallTaskDirty = false; // FIXME:TS never used, so comment it\n // let modifyOutputEnd = stageHandler.modifyOutputEnd;\n // An overall task with seriesType detected or has `getTargetSeries`, we add\n // stub in each pipelines, it will set the overall task dirty when the pipeline\n // progress. Moreover, to avoid call the overall task each frame (too frequent),\n // we set the pipeline block.\n\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '\"createOnAllSeries\" do not supported for \"overallReset\", ' + 'becuase it will block all streams.';\n }\n\n assert(!stageHandler.createOnAllSeries, errMsg);\n\n if (seriesType) {\n ecModel.eachRawSeriesByType(seriesType, createStub);\n } else if (getTargetSeries) {\n getTargetSeries(ecModel, api).each(createStub);\n } // Otherwise, (usually it is legancy case), the overall task will only be\n // executed when upstream dirty. Otherwise the progressive rendering of all\n // pipelines will be disabled unexpectedly. But it still needs stubs to receive\n // dirty info from upsteam.\n else {\n overallProgress = false;\n each(ecModel.getSeries(), createStub);\n }\n\n function createStub(seriesModel) {\n var pipelineId = seriesModel.uid;\n var stub = newAgentStubMap.set(pipelineId, oldAgentStubMap && oldAgentStubMap.get(pipelineId) || ( // When the result of `getTargetSeries` changed, the overallTask\n // should be set as dirty and re-performed.\n shouldOverallTaskDirty = true, createTask({\n reset: stubReset,\n onDirty: stubOnDirty\n })));\n stub.context = {\n model: seriesModel,\n overallProgress: overallProgress // FIXME:TS never used, so comment it\n // modifyOutputEnd: modifyOutputEnd\n\n };\n stub.agent = overallTask;\n stub.__block = overallProgress;\n\n scheduler._pipe(seriesModel, stub);\n }\n\n if (shouldOverallTaskDirty) {\n overallTask.dirty();\n }\n };\n\n Scheduler.prototype._pipe = function (seriesModel, task) {\n var pipelineId = seriesModel.uid;\n\n var pipeline = this._pipelineMap.get(pipelineId);\n\n !pipeline.head && (pipeline.head = task);\n pipeline.tail && pipeline.tail.pipe(task);\n pipeline.tail = task;\n task.__idxInPipeline = pipeline.count++;\n task.__pipeline = pipeline;\n };\n\n Scheduler.wrapStageHandler = function (stageHandler, visualType) {\n if (isFunction(stageHandler)) {\n stageHandler = {\n overallReset: stageHandler,\n seriesType: detectSeriseType(stageHandler)\n };\n }\n\n stageHandler.uid = getUID('stageHandler');\n visualType && (stageHandler.visualType = visualType);\n return stageHandler;\n };\n\n ;\n return Scheduler;\n}();\n\nfunction overallTaskReset(context) {\n context.overallReset(context.ecModel, context.api, context.payload);\n}\n\nfunction stubReset(context) {\n return context.overallProgress && stubProgress;\n}\n\nfunction stubProgress() {\n this.agent.dirty();\n this.getDownstream().dirty();\n}\n\nfunction stubOnDirty() {\n this.agent && this.agent.dirty();\n}\n\nfunction seriesTaskPlan(context) {\n return context.plan ? context.plan(context.model, context.ecModel, context.api, context.payload) : null;\n}\n\nfunction seriesTaskReset(context) {\n if (context.useClearVisual) {\n context.data.clearAllVisual();\n }\n\n var resetDefines = context.resetDefines = normalizeToArray(context.reset(context.model, context.ecModel, context.api, context.payload));\n return resetDefines.length > 1 ? map(resetDefines, function (v, idx) {\n return makeSeriesTaskProgress(idx);\n }) : singleSeriesTaskProgress;\n}\n\nvar singleSeriesTaskProgress = makeSeriesTaskProgress(0);\n\nfunction makeSeriesTaskProgress(resetDefineIdx) {\n return function (params, context) {\n var data = context.data;\n var resetDefine = context.resetDefines[resetDefineIdx];\n\n if (resetDefine && resetDefine.dataEach) {\n for (var i = params.start; i < params.end; i++) {\n resetDefine.dataEach(data, i);\n }\n } else if (resetDefine && resetDefine.progress) {\n resetDefine.progress(params, data);\n }\n };\n}\n\nfunction seriesTaskCount(context) {\n return context.data.count();\n}\n/**\n * Only some legacy stage handlers (usually in echarts extensions) are pure function.\n * To ensure that they can work normally, they should work in block mode, that is,\n * they should not be started util the previous tasks finished. So they cause the\n * progressive rendering disabled. We try to detect the series type, to narrow down\n * the block range to only the series type they concern, but not all series.\n */\n\n\nfunction detectSeriseType(legacyFunc) {\n seriesType = null;\n\n try {\n // Assume there is no async when calling `eachSeriesByType`.\n legacyFunc(ecModelMock, apiMock);\n } catch (e) {}\n\n return seriesType;\n}\n\nvar ecModelMock = {};\nvar apiMock = {};\nvar seriesType;\nmockMethods(ecModelMock, GlobalModel);\nmockMethods(apiMock, ExtensionAPI);\n\necModelMock.eachSeriesByType = ecModelMock.eachRawSeriesByType = function (type) {\n seriesType = type;\n};\n\necModelMock.eachComponent = function (cond) {\n if (cond.mainType === 'series' && cond.subType) {\n seriesType = cond.subType;\n }\n};\n\nfunction mockMethods(target, Clz) {\n /* eslint-disable */\n for (var name_1 in Clz.prototype) {\n // Do not use hasOwnProperty\n target[name_1] = noop;\n }\n /* eslint-enable */\n\n}\n\nexport default Scheduler;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar colorAll = ['#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'];\nexport default {\n color: colorAll,\n colorLayer: [['#37A2DA', '#ffd85c', '#fd7b5f'], ['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'], ['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'], colorAll]\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar contrastColor = '#B9B8CE';\nvar backgroundColor = '#100C2A';\n\nvar axisCommon = function () {\n return {\n axisLine: {\n lineStyle: {\n color: contrastColor\n }\n },\n splitLine: {\n lineStyle: {\n color: '#484753'\n }\n },\n splitArea: {\n areaStyle: {\n color: ['rgba(255,255,255,0.02)', 'rgba(255,255,255,0.05)']\n }\n },\n minorSplitLine: {\n lineStyle: {\n color: '#20203B'\n }\n }\n };\n};\n\nvar colorPalette = ['#4992ff', '#7cffb2', '#fddd60', '#ff6e76', '#58d9f9', '#05c091', '#ff8a45', '#8d48e3', '#dd79ff'];\nvar theme = {\n darkMode: true,\n color: colorPalette,\n backgroundColor: backgroundColor,\n axisPointer: {\n lineStyle: {\n color: '#817f91'\n },\n crossStyle: {\n color: '#817f91'\n },\n label: {\n // TODO Contrast of label backgorundColor\n color: '#fff'\n }\n },\n legend: {\n textStyle: {\n color: contrastColor\n }\n },\n textStyle: {\n color: contrastColor\n },\n title: {\n textStyle: {\n color: '#EEF1FA'\n },\n subtextStyle: {\n color: '#B9B8CE'\n }\n },\n toolbox: {\n iconStyle: {\n borderColor: contrastColor\n }\n },\n dataZoom: {\n borderColor: '#71708A',\n textStyle: {\n color: contrastColor\n },\n brushStyle: {\n color: 'rgba(135,163,206,0.3)'\n },\n handleStyle: {\n color: '#353450',\n borderColor: '#C5CBE3'\n },\n moveHandleStyle: {\n color: '#B0B6C3',\n opacity: 0.3\n },\n fillerColor: 'rgba(135,163,206,0.2)',\n emphasis: {\n handleStyle: {\n borderColor: '#91B7F2',\n color: '#4D587D'\n },\n moveHandleStyle: {\n color: '#636D9A',\n opacity: 0.7\n }\n },\n dataBackground: {\n lineStyle: {\n color: '#71708A',\n width: 1\n },\n areaStyle: {\n color: '#71708A'\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#87A3CE'\n },\n areaStyle: {\n color: '#87A3CE'\n }\n }\n },\n visualMap: {\n textStyle: {\n color: contrastColor\n }\n },\n timeline: {\n lineStyle: {\n color: contrastColor\n },\n label: {\n color: contrastColor\n },\n controlStyle: {\n color: contrastColor,\n borderColor: contrastColor\n }\n },\n calendar: {\n itemStyle: {\n color: backgroundColor\n },\n dayLabel: {\n color: contrastColor\n },\n monthLabel: {\n color: contrastColor\n },\n yearLabel: {\n color: contrastColor\n }\n },\n timeAxis: axisCommon(),\n logAxis: axisCommon(),\n valueAxis: axisCommon(),\n categoryAxis: axisCommon(),\n line: {\n symbol: 'circle'\n },\n graph: {\n color: colorPalette\n },\n gauge: {\n title: {\n color: contrastColor\n },\n axisLine: {\n lineStyle: {\n color: [[1, 'rgba(207,212,219,0.2)']]\n }\n },\n axisLabel: {\n color: contrastColor\n },\n detail: {\n color: '#EEF1FA'\n }\n },\n candlestick: {\n itemStyle: {\n color: '#f64e56',\n color0: '#54ea92',\n borderColor: '#f64e56',\n borderColor0: '#54ea92' // borderColor: '#ca2824',\n // borderColor0: '#09a443'\n\n }\n }\n};\ntheme.categoryAxis.splitLine.show = false;\nexport default theme;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parseClassType } from './clazz';\n/**\n * Usage of query:\n * `chart.on('click', query, handler);`\n * The `query` can be:\n * + The component type query string, only `mainType` or `mainType.subType`,\n * like: 'xAxis', 'series', 'xAxis.category' or 'series.line'.\n * + The component query object, like:\n * `{seriesIndex: 2}`, `{seriesName: 'xx'}`, `{seriesId: 'some'}`,\n * `{xAxisIndex: 2}`, `{xAxisName: 'xx'}`, `{xAxisId: 'some'}`.\n * + The data query object, like:\n * `{dataIndex: 123}`, `{dataType: 'link'}`, `{name: 'some'}`.\n * + The other query object (cmponent customized query), like:\n * `{element: 'some'}` (only available in custom series).\n *\n * Caveat: If a prop in the `query` object is `null/undefined`, it is the\n * same as there is no such prop in the `query` object.\n */\n\nvar ECEventProcessor =\n/** @class */\nfunction () {\n function ECEventProcessor() {}\n\n ECEventProcessor.prototype.normalizeQuery = function (query) {\n var cptQuery = {};\n var dataQuery = {};\n var otherQuery = {}; // `query` is `mainType` or `mainType.subType` of component.\n\n if (zrUtil.isString(query)) {\n var condCptType = parseClassType(query); // `.main` and `.sub` may be ''.\n\n cptQuery.mainType = condCptType.main || null;\n cptQuery.subType = condCptType.sub || null;\n } // `query` is an object, convert to {mainType, index, name, id}.\n else {\n // `xxxIndex`, `xxxName`, `xxxId`, `name`, `dataIndex`, `dataType` is reserved,\n // can not be used in `compomentModel.filterForExposedEvent`.\n var suffixes_1 = ['Index', 'Name', 'Id'];\n var dataKeys_1 = {\n name: 1,\n dataIndex: 1,\n dataType: 1\n };\n zrUtil.each(query, function (val, key) {\n var reserved = false;\n\n for (var i = 0; i < suffixes_1.length; i++) {\n var propSuffix = suffixes_1[i];\n var suffixPos = key.lastIndexOf(propSuffix);\n\n if (suffixPos > 0 && suffixPos === key.length - propSuffix.length) {\n var mainType = key.slice(0, suffixPos); // Consider `dataIndex`.\n\n if (mainType !== 'data') {\n cptQuery.mainType = mainType;\n cptQuery[propSuffix.toLowerCase()] = val;\n reserved = true;\n }\n }\n }\n\n if (dataKeys_1.hasOwnProperty(key)) {\n dataQuery[key] = val;\n reserved = true;\n }\n\n if (!reserved) {\n otherQuery[key] = val;\n }\n });\n }\n\n return {\n cptQuery: cptQuery,\n dataQuery: dataQuery,\n otherQuery: otherQuery\n };\n };\n\n ECEventProcessor.prototype.filter = function (eventType, query) {\n // They should be assigned before each trigger call.\n var eventInfo = this.eventInfo;\n\n if (!eventInfo) {\n return true;\n }\n\n var targetEl = eventInfo.targetEl;\n var packedEvent = eventInfo.packedEvent;\n var model = eventInfo.model;\n var view = eventInfo.view; // For event like 'globalout'.\n\n if (!model || !view) {\n return true;\n }\n\n var cptQuery = query.cptQuery;\n var dataQuery = query.dataQuery;\n return check(cptQuery, model, 'mainType') && check(cptQuery, model, 'subType') && check(cptQuery, model, 'index', 'componentIndex') && check(cptQuery, model, 'name') && check(cptQuery, model, 'id') && check(dataQuery, packedEvent, 'name') && check(dataQuery, packedEvent, 'dataIndex') && check(dataQuery, packedEvent, 'dataType') && (!view.filterForExposedEvent || view.filterForExposedEvent(eventType, query.otherQuery, targetEl, packedEvent));\n\n function check(query, host, prop, propOnHost) {\n return query[prop] == null || host[propOnHost || prop] === query[prop];\n }\n };\n\n ECEventProcessor.prototype.afterTrigger = function () {\n // Make sure the eventInfo wont be used in next trigger.\n this.eventInfo = null;\n };\n\n return ECEventProcessor;\n}();\n\nexport { ECEventProcessor };\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isFunction } from 'zrender/lib/core/util'; // Encoding visual for all series include which is filtered for legend drawing\n\nvar seriesSymbolTask = {\n createOnAllSeries: true,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n\n if (seriesModel.legendIcon) {\n data.setVisual('legendIcon', seriesModel.legendIcon);\n }\n\n if (!seriesModel.hasSymbolVisual) {\n return;\n }\n\n var symbolType = seriesModel.get('symbol');\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n var symbolRotate = seriesModel.get('symbolRotate');\n var symbolOffset = seriesModel.get('symbolOffset');\n var hasSymbolTypeCallback = isFunction(symbolType);\n var hasSymbolSizeCallback = isFunction(symbolSize);\n var hasSymbolRotateCallback = isFunction(symbolRotate);\n var hasSymbolOffsetCallback = isFunction(symbolOffset);\n var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback || hasSymbolRotateCallback || hasSymbolOffsetCallback;\n var seriesSymbol = !hasSymbolTypeCallback && symbolType ? symbolType : seriesModel.defaultSymbol;\n var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n var seriesSymbolRotate = !hasSymbolRotateCallback ? symbolRotate : null;\n var seriesSymbolOffset = !hasSymbolOffsetCallback ? symbolOffset : null;\n data.setVisual({\n legendIcon: seriesModel.legendIcon || seriesSymbol,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol,\n symbolSize: seriesSymbolSize,\n symbolKeepAspect: keepAspect,\n symbolRotate: seriesSymbolRotate,\n symbolOffset: seriesSymbolOffset\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data, idx) {\n var rawValue = seriesModel.getRawValue(idx);\n var params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params));\n hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n hasSymbolRotateCallback && data.setItemVisual(idx, 'symbolRotate', symbolRotate(rawValue, params));\n hasSymbolOffsetCallback && data.setItemVisual(idx, 'symbolOffset', symbolOffset(rawValue, params));\n }\n\n return {\n dataEach: hasCallback ? dataEach : null\n };\n }\n};\nvar dataSymbolTask = {\n createOnAllSeries: true,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n if (!seriesModel.hasSymbolVisual) {\n return;\n } // Only visible series has each data be visual encoded\n\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n\n function dataEach(data, idx) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n var itemSymbolOffset = itemModel.getShallow('symbolOffset', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n\n if (itemSymbolOffset != null) {\n data.setItemVisual(idx, 'symbolOffset', itemSymbolOffset);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\nexport { seriesSymbolTask, dataSymbolTask };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function getItemVisualFromData(data, dataIndex, key) {\n switch (key) {\n case 'color':\n var style = data.getItemVisual(dataIndex, 'style');\n return style[data.getVisual('drawType')];\n\n case 'opacity':\n return data.getItemVisual(dataIndex, 'style').opacity;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getItemVisual(dataIndex, key);\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}\nexport function getVisualFromData(data, key) {\n switch (key) {\n case 'color':\n var style = data.getVisual('style');\n return style[data.getVisual('drawType')];\n\n case 'opacity':\n return data.getVisual('style').opacity;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n return data.getVisual(key);\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}\nexport function setItemVisualFromData(data, dataIndex, key, value) {\n switch (key) {\n case 'color':\n // Make sure not sharing style object.\n var style = data.ensureUniqueItemVisual(dataIndex, 'style');\n style[data.getVisual('drawType')] = value; // Mark the color has been changed, not from palette anymore\n\n data.setItemVisual(dataIndex, 'colorFromPalette', false);\n break;\n\n case 'opacity':\n data.ensureUniqueItemVisual(dataIndex, 'style').opacity = value;\n break;\n\n case 'symbol':\n case 'symbolSize':\n case 'liftZ':\n data.setItemVisual(dataIndex, key, value);\n break;\n\n default:\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Unknown visual type \" + key);\n }\n\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { Point, Path, Polyline } from '../util/graphic';\nimport PathProxy from 'zrender/lib/core/PathProxy';\nimport { normalizeRadian } from 'zrender/lib/contain/util';\nimport { cubicProjectPoint, quadraticProjectPoint } from 'zrender/lib/core/curve';\nimport { defaults, retrieve2 } from 'zrender/lib/core/util';\nimport { invert } from 'zrender/lib/core/matrix';\nimport * as vector from 'zrender/lib/core/vector';\nimport { DISPLAY_STATES, SPECIAL_STATES } from '../util/states';\nvar PI2 = Math.PI * 2;\nvar CMD = PathProxy.CMD;\nvar DEFAULT_SEARCH_SPACE = ['top', 'right', 'bottom', 'left'];\n\nfunction getCandidateAnchor(pos, distance, rect, outPt, outDir) {\n var width = rect.width;\n var height = rect.height;\n\n switch (pos) {\n case 'top':\n outPt.set(rect.x + width / 2, rect.y - distance);\n outDir.set(0, -1);\n break;\n\n case 'bottom':\n outPt.set(rect.x + width / 2, rect.y + height + distance);\n outDir.set(0, 1);\n break;\n\n case 'left':\n outPt.set(rect.x - distance, rect.y + height / 2);\n outDir.set(-1, 0);\n break;\n\n case 'right':\n outPt.set(rect.x + width + distance, rect.y + height / 2);\n outDir.set(1, 0);\n break;\n }\n}\n\nfunction projectPointToArc(cx, cy, r, startAngle, endAngle, anticlockwise, x, y, out) {\n x -= cx;\n y -= cy;\n var d = Math.sqrt(x * x + y * y);\n x /= d;\n y /= d; // Intersect point.\n\n var ox = x * r + cx;\n var oy = y * r + cy;\n\n if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {\n // Is a circle\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n if (anticlockwise) {\n var tmp = startAngle;\n startAngle = normalizeRadian(endAngle);\n endAngle = normalizeRadian(tmp);\n } else {\n startAngle = normalizeRadian(startAngle);\n endAngle = normalizeRadian(endAngle);\n }\n\n if (startAngle > endAngle) {\n endAngle += PI2;\n }\n\n var angle = Math.atan2(y, x);\n\n if (angle < 0) {\n angle += PI2;\n }\n\n if (angle >= startAngle && angle <= endAngle || angle + PI2 >= startAngle && angle + PI2 <= endAngle) {\n // Project point is on the arc.\n out[0] = ox;\n out[1] = oy;\n return d - r;\n }\n\n var x1 = r * Math.cos(startAngle) + cx;\n var y1 = r * Math.sin(startAngle) + cy;\n var x2 = r * Math.cos(endAngle) + cx;\n var y2 = r * Math.sin(endAngle) + cy;\n var d1 = (x1 - x) * (x1 - x) + (y1 - y) * (y1 - y);\n var d2 = (x2 - x) * (x2 - x) + (y2 - y) * (y2 - y);\n\n if (d1 < d2) {\n out[0] = x1;\n out[1] = y1;\n return Math.sqrt(d1);\n } else {\n out[0] = x2;\n out[1] = y2;\n return Math.sqrt(d2);\n }\n}\n\nfunction projectPointToLine(x1, y1, x2, y2, x, y, out, limitToEnds) {\n var dx = x - x1;\n var dy = y - y1;\n var dx1 = x2 - x1;\n var dy1 = y2 - y1;\n var lineLen = Math.sqrt(dx1 * dx1 + dy1 * dy1);\n dx1 /= lineLen;\n dy1 /= lineLen; // dot product\n\n var projectedLen = dx * dx1 + dy * dy1;\n var t = projectedLen / lineLen;\n\n if (limitToEnds) {\n t = Math.min(Math.max(t, 0), 1);\n }\n\n t *= lineLen;\n var ox = out[0] = x1 + t * dx1;\n var oy = out[1] = y1 + t * dy1;\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nfunction projectPointToRect(x1, y1, width, height, x, y, out) {\n if (width < 0) {\n x1 = x1 + width;\n width = -width;\n }\n\n if (height < 0) {\n y1 = y1 + height;\n height = -height;\n }\n\n var x2 = x1 + width;\n var y2 = y1 + height;\n var ox = out[0] = Math.min(Math.max(x, x1), x2);\n var oy = out[1] = Math.min(Math.max(y, y1), y2);\n return Math.sqrt((ox - x) * (ox - x) + (oy - y) * (oy - y));\n}\n\nvar tmpPt = [];\n\nfunction nearestPointOnRect(pt, rect, out) {\n var dist = projectPointToRect(rect.x, rect.y, rect.width, rect.height, pt.x, pt.y, tmpPt);\n out.set(tmpPt[0], tmpPt[1]);\n return dist;\n}\n/**\n * Calculate min distance corresponding point.\n * This method won't evaluate if point is in the path.\n */\n\n\nfunction nearestPointOnPath(pt, path, out) {\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n var x1;\n var y1;\n var minDist = Infinity;\n var data = path.data;\n var x = pt.x;\n var y = pt.y;\n\n for (var i = 0; i < data.length;) {\n var cmd = data[i++];\n\n if (i === 1) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n }\n\n var d = minDist;\n\n switch (cmd) {\n case CMD.M:\n // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点\n // 在 closePath 的时候使用\n x0 = data[i++];\n y0 = data[i++];\n xi = x0;\n yi = y0;\n break;\n\n case CMD.L:\n d = projectPointToLine(xi, yi, data[i], data[i + 1], x, y, tmpPt, true);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.C:\n d = cubicProjectPoint(xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.Q:\n d = quadraticProjectPoint(xi, yi, data[i++], data[i++], data[i], data[i + 1], x, y, tmpPt);\n xi = data[i++];\n yi = data[i++];\n break;\n\n case CMD.A:\n // TODO Arc 判断的开销比较大\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var theta = data[i++];\n var dTheta = data[i++]; // TODO Arc 旋转\n\n i += 1;\n var anticlockwise = !!(1 - data[i++]);\n x1 = Math.cos(theta) * rx + cx;\n y1 = Math.sin(theta) * ry + cy; // 不是直接使用 arc 命令\n\n if (i <= 1) {\n // 第一个命令起点还未定义\n x0 = x1;\n y0 = y1;\n } // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放\n\n\n var _x = (x - cx) * ry / rx + cx;\n\n d = projectPointToArc(cx, cy, ry, theta, theta + dTheta, anticlockwise, _x, y, tmpPt);\n xi = Math.cos(theta + dTheta) * rx + cx;\n yi = Math.sin(theta + dTheta) * ry + cy;\n break;\n\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n var width = data[i++];\n var height = data[i++];\n d = projectPointToRect(x0, y0, width, height, x, y, tmpPt);\n break;\n\n case CMD.Z:\n d = projectPointToLine(xi, yi, x0, y0, x, y, tmpPt, true);\n xi = x0;\n yi = y0;\n break;\n }\n\n if (d < minDist) {\n minDist = d;\n out.set(tmpPt[0], tmpPt[1]);\n }\n }\n\n return minDist;\n} // Temporal varible for intermediate usage.\n\n\nvar pt0 = new Point();\nvar pt1 = new Point();\nvar pt2 = new Point();\nvar dir = new Point();\nvar dir2 = new Point();\n/**\n * Calculate a proper guide line based on the label position and graphic element definition\n * @param label\n * @param labelRect\n * @param target\n * @param targetRect\n */\n\nexport function updateLabelLinePoints(target, labelLineModel) {\n if (!target) {\n return;\n }\n\n var labelLine = target.getTextGuideLine();\n var label = target.getTextContent(); // Needs to create text guide in each charts.\n\n if (!(label && labelLine)) {\n return;\n }\n\n var labelGuideConfig = target.textGuideLineConfig || {};\n var points = [[0, 0], [0, 0], [0, 0]];\n var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n var labelRect = label.getBoundingRect().clone();\n labelRect.applyTransform(label.getComputedTransform());\n var minDist = Infinity;\n var anchorPoint = labelGuideConfig.anchor;\n var targetTransform = target.getComputedTransform();\n var targetInversedTransform = targetTransform && invert([], targetTransform);\n var len = labelLineModel.get('length2') || 0;\n\n if (anchorPoint) {\n pt2.copy(anchorPoint);\n }\n\n for (var i = 0; i < searchSpace.length; i++) {\n var candidate = searchSpace[i];\n getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n Point.scaleAndAdd(pt1, pt0, dir, len); // Transform to target coord space.\n\n pt1.transform(targetInversedTransform); // Note: getBoundingRect will ensure the `path` being created.\n\n var boundingRect = target.getBoundingRect();\n var dist = anchorPoint ? anchorPoint.distance(pt1) : target instanceof Path ? nearestPointOnPath(pt1, target.path, pt2) : nearestPointOnRect(pt1, boundingRect, pt2); // TODO pt2 is in the path\n\n if (dist < minDist) {\n minDist = dist; // Transform back to global space.\n\n pt1.transform(targetTransform);\n pt2.transform(targetTransform);\n pt2.toArray(points[0]);\n pt1.toArray(points[1]);\n pt0.toArray(points[2]);\n }\n }\n\n limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n labelLine.setShape({\n points: points\n });\n} // Temporal variable for the limitTurnAngle function\n\nvar tmpArr = [];\nvar tmpProjPoint = new Point();\n/**\n * Reduce the line segment attached to the label to limit the turn angle between two segments.\n * @param linePoints\n * @param minTurnAngle Radian of minimum turn angle. 0 - 180\n */\n\nexport function limitTurnAngle(linePoints, minTurnAngle) {\n if (!(minTurnAngle <= 180 && minTurnAngle > 0)) {\n return;\n }\n\n minTurnAngle = minTurnAngle / 180 * Math.PI; // The line points can be\n // /pt1----pt2 (label)\n // /\n // pt0/\n\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n Point.sub(dir, pt0, pt1);\n Point.sub(dir2, pt2, pt1);\n var len1 = dir.len();\n var len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n var angleCos = dir.dot(dir2);\n var minTurnAngleCos = Math.cos(minTurnAngle);\n\n if (minTurnAngleCos < angleCos) {\n // Smaller than minTurnAngle\n // Calculate project point of pt0 on pt1-pt2\n var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr); // Calculate new projected length with limited minTurnAngle and get the new connect point\n\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI - minTurnAngle)); // Limit the new calculated connect point between pt1 and pt2.\n\n var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n } else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n/**\n * Limit the angle of line and the surface\n * @param maxSurfaceAngle Radian of minimum turn angle. 0 - 180. 0 is same direction to normal. 180 is opposite\n */\n\nexport function limitSurfaceAngle(linePoints, surfaceNormal, maxSurfaceAngle) {\n if (!(maxSurfaceAngle <= 180 && maxSurfaceAngle > 0)) {\n return;\n }\n\n maxSurfaceAngle = maxSurfaceAngle / 180 * Math.PI;\n pt0.fromArray(linePoints[0]);\n pt1.fromArray(linePoints[1]);\n pt2.fromArray(linePoints[2]);\n Point.sub(dir, pt1, pt0);\n Point.sub(dir2, pt2, pt1);\n var len1 = dir.len();\n var len2 = dir2.len();\n\n if (len1 < 1e-3 || len2 < 1e-3) {\n return;\n }\n\n dir.scale(1 / len1);\n dir2.scale(1 / len2);\n var angleCos = dir.dot(surfaceNormal);\n var maxSurfaceAngleCos = Math.cos(maxSurfaceAngle);\n\n if (angleCos < maxSurfaceAngleCos) {\n // Calculate project point of pt0 on pt1-pt2\n var d = projectPointToLine(pt1.x, pt1.y, pt2.x, pt2.y, pt0.x, pt0.y, tmpArr, false);\n tmpProjPoint.fromArray(tmpArr);\n var HALF_PI = Math.PI / 2;\n var angle2 = Math.acos(dir2.dot(surfaceNormal));\n var newAngle = HALF_PI + angle2 - maxSurfaceAngle;\n\n if (newAngle >= HALF_PI) {\n // parallel\n Point.copy(tmpProjPoint, pt2);\n } else {\n // Calculate new projected length with limited minTurnAngle and get the new connect point\n tmpProjPoint.scaleAndAdd(dir2, d / Math.tan(Math.PI / 2 - newAngle)); // Limit the new calculated connect point between pt1 and pt2.\n\n var t = pt2.x !== pt1.x ? (tmpProjPoint.x - pt1.x) / (pt2.x - pt1.x) : (tmpProjPoint.y - pt1.y) / (pt2.y - pt1.y);\n\n if (isNaN(t)) {\n return;\n }\n\n if (t < 0) {\n Point.copy(tmpProjPoint, pt1);\n } else if (t > 1) {\n Point.copy(tmpProjPoint, pt2);\n }\n }\n\n tmpProjPoint.toArray(linePoints[1]);\n }\n}\n\nfunction setLabelLineState(labelLine, ignore, stateName, stateModel) {\n var isNormal = stateName === 'normal';\n var stateObj = isNormal ? labelLine : labelLine.ensureState(stateName); // Make sure display.\n\n stateObj.ignore = ignore; // Set smooth\n\n var smooth = stateModel.get('smooth');\n\n if (smooth && smooth === true) {\n smooth = 0.3;\n }\n\n stateObj.shape = stateObj.shape || {};\n\n if (smooth > 0) {\n stateObj.shape.smooth = smooth;\n }\n\n var styleObj = stateModel.getModel('lineStyle').getLineStyle();\n isNormal ? labelLine.useStyle(styleObj) : stateObj.style = styleObj;\n}\n\nfunction buildLabelLinePath(path, shape) {\n var smooth = shape.smooth;\n var points = shape.points;\n\n if (!points) {\n return;\n }\n\n path.moveTo(points[0][0], points[0][1]);\n\n if (smooth > 0 && points.length >= 3) {\n var len1 = vector.dist(points[0], points[1]);\n var len2 = vector.dist(points[1], points[2]);\n\n if (!len1 || !len2) {\n path.lineTo(points[1][0], points[1][1]);\n path.lineTo(points[2][0], points[2][1]);\n return;\n }\n\n var moveLen = Math.min(len1, len2) * smooth;\n var midPoint0 = vector.lerp([], points[1], points[0], moveLen / len1);\n var midPoint2 = vector.lerp([], points[1], points[2], moveLen / len2);\n var midPoint1 = vector.lerp([], midPoint0, midPoint2, 0.5);\n path.bezierCurveTo(midPoint0[0], midPoint0[1], midPoint0[0], midPoint0[1], midPoint1[0], midPoint1[1]);\n path.bezierCurveTo(midPoint2[0], midPoint2[1], midPoint2[0], midPoint2[1], points[2][0], points[2][1]);\n } else {\n for (var i = 1; i < points.length; i++) {\n path.lineTo(points[i][0], points[i][1]);\n }\n }\n}\n/**\n * Create a label line if necessary and set it's style.\n */\n\n\nexport function setLabelLineStyle(targetEl, statesModels, defaultStyle) {\n var labelLine = targetEl.getTextGuideLine();\n var label = targetEl.getTextContent();\n\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n\n return;\n }\n\n var normalModel = statesModels.normal;\n var showNormal = normalModel.get('show');\n var labelIgnoreNormal = label.ignore;\n\n for (var i = 0; i < DISPLAY_STATES.length; i++) {\n var stateName = DISPLAY_STATES[i];\n var stateModel = statesModels[stateName];\n var isNormal = stateName === 'normal';\n\n if (stateModel) {\n var stateShow = stateModel.get('show');\n var isLabelIgnored = isNormal ? labelIgnoreNormal : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !retrieve2(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n var stateObj = isNormal ? labelLine : labelLine && labelLine.states.normal;\n\n if (stateObj) {\n stateObj.ignore = true;\n }\n\n continue;\n } // Create labelLine if not exists\n\n\n if (!labelLine) {\n labelLine = new Polyline();\n targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n } // Use same state proxy.\n\n\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n defaults(labelLine.style, defaultStyle); // Not fill.\n\n labelLine.style.fill = null;\n var showAbove = normalModel.get('showAbove');\n var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};\n labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.\n\n labelLine.buildPath = buildLabelLinePath;\n }\n}\nexport function getLabelLineStatesModels(itemModel, labelLineName) {\n labelLineName = labelLineName || 'labelLine';\n var statesModels = {\n normal: itemModel.getModel(labelLineName)\n };\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n statesModels[stateName] = itemModel.getModel([stateName, labelLineName]);\n }\n\n return statesModels;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { BoundingRect, OrientedBoundingRect } from '../util/graphic';\nexport function prepareLayoutList(input) {\n var list = [];\n\n for (var i = 0; i < input.length; i++) {\n var rawItem = input[i];\n\n if (rawItem.defaultAttr.ignore) {\n continue;\n }\n\n var label = rawItem.label;\n var transform = label.getComputedTransform(); // NOTE: Get bounding rect after getComputedTransform, or label may not been updated by the host el.\n\n var localRect = label.getBoundingRect();\n var isAxisAligned = !transform || transform[1] < 1e-5 && transform[2] < 1e-5;\n var minMargin = label.style.margin || 0;\n var globalRect = localRect.clone();\n globalRect.applyTransform(transform);\n globalRect.x -= minMargin / 2;\n globalRect.y -= minMargin / 2;\n globalRect.width += minMargin;\n globalRect.height += minMargin;\n var obb = isAxisAligned ? new OrientedBoundingRect(localRect, transform) : null;\n list.push({\n label: label,\n labelLine: rawItem.labelLine,\n rect: globalRect,\n localRect: localRect,\n obb: obb,\n priority: rawItem.priority,\n defaultAttr: rawItem.defaultAttr,\n layoutOption: rawItem.computedLayoutOption,\n axisAligned: isAxisAligned,\n transform: transform\n });\n }\n\n return list;\n}\n\nfunction shiftLayout(list, xyDim, sizeDim, minBound, maxBound, balanceShift) {\n var len = list.length;\n\n if (len < 2) {\n return;\n }\n\n list.sort(function (a, b) {\n return a.rect[xyDim] - b.rect[xyDim];\n });\n var lastPos = 0;\n var delta;\n var adjusted = false;\n var shifts = [];\n var totalShifts = 0;\n\n for (var i = 0; i < len; i++) {\n var item = list[i];\n var rect = item.rect;\n delta = rect[xyDim] - lastPos;\n\n if (delta < 0) {\n // shiftForward(i, len, -delta);\n rect[xyDim] -= delta;\n item.label[xyDim] -= delta;\n adjusted = true;\n }\n\n var shift = Math.max(-delta, 0);\n shifts.push(shift);\n totalShifts += shift;\n lastPos = rect[xyDim] + rect[sizeDim];\n }\n\n if (totalShifts > 0 && balanceShift) {\n // Shift back to make the distribution more equally.\n shiftList(-totalShifts / len, 0, len);\n } // TODO bleedMargin?\n\n\n var first = list[0];\n var last = list[len - 1];\n var minGap;\n var maxGap;\n updateMinMaxGap(); // If ends exceed two bounds, squeeze at most 80%, then take the gap of two bounds.\n\n minGap < 0 && squeezeGaps(-minGap, 0.8);\n maxGap < 0 && squeezeGaps(maxGap, 0.8);\n updateMinMaxGap();\n takeBoundsGap(minGap, maxGap, 1);\n takeBoundsGap(maxGap, minGap, -1); // Handle bailout when there is not enough space.\n\n updateMinMaxGap();\n\n if (minGap < 0) {\n squeezeWhenBailout(-minGap);\n }\n\n if (maxGap < 0) {\n squeezeWhenBailout(maxGap);\n }\n\n function updateMinMaxGap() {\n minGap = first.rect[xyDim] - minBound;\n maxGap = maxBound - last.rect[xyDim] - last.rect[sizeDim];\n }\n\n function takeBoundsGap(gapThisBound, gapOtherBound, moveDir) {\n if (gapThisBound < 0) {\n // Move from other gap if can.\n var moveFromMaxGap = Math.min(gapOtherBound, -gapThisBound);\n\n if (moveFromMaxGap > 0) {\n shiftList(moveFromMaxGap * moveDir, 0, len);\n var remained = moveFromMaxGap + gapThisBound;\n\n if (remained < 0) {\n squeezeGaps(-remained * moveDir, 1);\n }\n } else {\n squeezeGaps(-gapThisBound * moveDir, 1);\n }\n }\n }\n\n function shiftList(delta, start, end) {\n if (delta !== 0) {\n adjusted = true;\n }\n\n for (var i = start; i < end; i++) {\n var item = list[i];\n var rect = item.rect;\n rect[xyDim] += delta;\n item.label[xyDim] += delta;\n }\n } // Squeeze gaps if the labels exceed margin.\n\n\n function squeezeGaps(delta, maxSqeezePercent) {\n var gaps = [];\n var totalGaps = 0;\n\n for (var i = 1; i < len; i++) {\n var prevItemRect = list[i - 1].rect;\n var gap = Math.max(list[i].rect[xyDim] - prevItemRect[xyDim] - prevItemRect[sizeDim], 0);\n gaps.push(gap);\n totalGaps += gap;\n }\n\n if (!totalGaps) {\n return;\n }\n\n var squeezePercent = Math.min(Math.abs(delta) / totalGaps, maxSqeezePercent);\n\n if (delta > 0) {\n for (var i = 0; i < len - 1; i++) {\n // Distribute the shift delta to all gaps.\n var movement = gaps[i] * squeezePercent; // Forward\n\n shiftList(movement, 0, i + 1);\n }\n } else {\n // Backward\n for (var i = len - 1; i > 0; i--) {\n // Distribute the shift delta to all gaps.\n var movement = gaps[i - 1] * squeezePercent;\n shiftList(-movement, i, len);\n }\n }\n }\n /**\n * Squeeze to allow overlap if there is no more space available.\n * Let other overlapping strategy like hideOverlap do the job instead of keep exceeding the bounds.\n */\n\n\n function squeezeWhenBailout(delta) {\n var dir = delta < 0 ? -1 : 1;\n delta = Math.abs(delta);\n var moveForEachLabel = Math.ceil(delta / (len - 1));\n\n for (var i = 0; i < len - 1; i++) {\n if (dir > 0) {\n // Forward\n shiftList(moveForEachLabel, 0, i + 1);\n } else {\n // Backward\n shiftList(-moveForEachLabel, len - i - 1, len);\n }\n\n delta -= moveForEachLabel;\n\n if (delta <= 0) {\n return;\n }\n }\n }\n\n return adjusted;\n}\n/**\n * Adjust labels on x direction to avoid overlap.\n */\n\n\nexport function shiftLayoutOnX(list, leftBound, rightBound, // If average the shifts on all labels and add them to 0\n// TODO: Not sure if should enable it.\n// Pros: The angle of lines will distribute more equally\n// Cons: In some layout. It may not what user wanted. like in pie. the label of last sector is usually changed unexpectedly.\nbalanceShift) {\n return shiftLayout(list, 'x', 'width', leftBound, rightBound, balanceShift);\n}\n/**\n * Adjust labels on y direction to avoid overlap.\n */\n\nexport function shiftLayoutOnY(list, topBound, bottomBound, // If average the shifts on all labels and add them to 0\nbalanceShift) {\n return shiftLayout(list, 'y', 'height', topBound, bottomBound, balanceShift);\n}\nexport function hideOverlap(labelList) {\n var displayedLabels = []; // TODO, render overflow visible first, put in the displayedLabels.\n\n labelList.sort(function (a, b) {\n return b.priority - a.priority;\n });\n var globalRect = new BoundingRect(0, 0, 0, 0);\n\n function hideEl(el) {\n if (!el.ignore) {\n // Show on emphasis.\n var emphasisState = el.ensureState('emphasis');\n\n if (emphasisState.ignore == null) {\n emphasisState.ignore = false;\n }\n }\n\n el.ignore = true;\n }\n\n for (var i = 0; i < labelList.length; i++) {\n var labelItem = labelList[i];\n var isAxisAligned = labelItem.axisAligned;\n var localRect = labelItem.localRect;\n var transform = labelItem.transform;\n var label = labelItem.label;\n var labelLine = labelItem.labelLine;\n globalRect.copy(labelItem.rect); // Add a threshold because layout may be aligned precisely.\n\n globalRect.width -= 0.1;\n globalRect.height -= 0.1;\n globalRect.x += 0.05;\n globalRect.y += 0.05;\n var obb = labelItem.obb;\n var overlapped = false;\n\n for (var j = 0; j < displayedLabels.length; j++) {\n var existsTextCfg = displayedLabels[j]; // Fast rejection.\n\n if (!globalRect.intersect(existsTextCfg.rect)) {\n continue;\n }\n\n if (isAxisAligned && existsTextCfg.axisAligned) {\n // Is overlapped\n overlapped = true;\n break;\n }\n\n if (!existsTextCfg.obb) {\n // If self is not axis aligned. But other is.\n existsTextCfg.obb = new OrientedBoundingRect(existsTextCfg.localRect, existsTextCfg.transform);\n }\n\n if (!obb) {\n // If self is axis aligned. But other is not.\n obb = new OrientedBoundingRect(localRect, transform);\n }\n\n if (obb.intersect(existsTextCfg.obb)) {\n overlapped = true;\n break;\n }\n } // TODO Callback to determine if this overlap should be handled?\n\n\n if (overlapped) {\n hideEl(label);\n labelLine && hideEl(labelLine);\n } else {\n label.attr('ignore', labelItem.defaultAttr.ignore);\n labelLine && labelLine.attr('ignore', labelItem.defaultAttr.labelGuideIgnore);\n displayedLabels.push(labelItem);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO: move labels out of viewport.\nimport { BoundingRect, updateProps, initProps, isElementRemoved } from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport { parsePercent } from '../util/number';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport { updateLabelLinePoints, setLabelLineStyle, getLabelLineStatesModels } from './labelGuideHelper';\nimport { makeInner } from '../util/model';\nimport { retrieve2, each, keys, isFunction, filter, indexOf } from 'zrender/lib/core/util';\nimport { prepareLayoutList, hideOverlap, shiftLayoutOnX, shiftLayoutOnY } from './labelLayoutHelper';\nimport { labelInner, animateLabelValue } from './labelStyle';\n\nfunction cloneArr(points) {\n if (points) {\n var newPoints = [];\n\n for (var i = 0; i < points.length; i++) {\n newPoints.push(points[i].slice());\n }\n\n return newPoints;\n }\n}\n\nfunction prepareLayoutCallbackParams(labelItem, hostEl) {\n var label = labelItem.label;\n var labelLine = hostEl && hostEl.getTextGuideLine();\n return {\n dataIndex: labelItem.dataIndex,\n dataType: labelItem.dataType,\n seriesIndex: labelItem.seriesModel.seriesIndex,\n text: labelItem.label.style.text,\n rect: labelItem.hostRect,\n labelRect: labelItem.rect,\n // x: labelAttr.x,\n // y: labelAttr.y,\n align: label.style.align,\n verticalAlign: label.style.verticalAlign,\n labelLinePoints: cloneArr(labelLine && labelLine.shape.points)\n };\n}\n\nvar LABEL_OPTION_TO_STYLE_KEYS = ['align', 'verticalAlign', 'width', 'height', 'fontSize'];\nvar dummyTransformable = new Transformable();\nvar labelLayoutInnerStore = makeInner();\nvar labelLineAnimationStore = makeInner();\n\nfunction extendWithKeys(target, source, keys) {\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (source[key] != null) {\n target[key] = source[key];\n }\n }\n}\n\nvar LABEL_LAYOUT_PROPS = ['x', 'y', 'rotation'];\n\nvar LabelManager =\n/** @class */\nfunction () {\n function LabelManager() {\n this._labelList = [];\n this._chartViewList = [];\n }\n\n LabelManager.prototype.clearLabels = function () {\n this._labelList = [];\n this._chartViewList = [];\n };\n /**\n * Add label to manager\n */\n\n\n LabelManager.prototype._addLabel = function (dataIndex, dataType, seriesModel, label, layoutOption) {\n var labelStyle = label.style;\n var hostEl = label.__hostTarget;\n var textConfig = hostEl.textConfig || {}; // TODO: If label is in other state.\n\n var labelTransform = label.getComputedTransform();\n var labelRect = label.getBoundingRect().plain();\n BoundingRect.applyTransform(labelRect, labelRect, labelTransform);\n\n if (labelTransform) {\n dummyTransformable.setLocalTransform(labelTransform);\n } else {\n // Identity transform.\n dummyTransformable.x = dummyTransformable.y = dummyTransformable.rotation = dummyTransformable.originX = dummyTransformable.originY = 0;\n dummyTransformable.scaleX = dummyTransformable.scaleY = 1;\n }\n\n var host = label.__hostTarget;\n var hostRect;\n\n if (host) {\n hostRect = host.getBoundingRect().plain();\n var transform = host.getComputedTransform();\n BoundingRect.applyTransform(hostRect, hostRect, transform);\n }\n\n var labelGuide = hostRect && host.getTextGuideLine();\n\n this._labelList.push({\n label: label,\n labelLine: labelGuide,\n seriesModel: seriesModel,\n dataIndex: dataIndex,\n dataType: dataType,\n layoutOption: layoutOption,\n computedLayoutOption: null,\n rect: labelRect,\n hostRect: hostRect,\n // Label with lower priority will be hidden when overlapped\n // Use rect size as default priority\n priority: hostRect ? hostRect.width * hostRect.height : 0,\n // Save default label attributes.\n // For restore if developers want get back to default value in callback.\n defaultAttr: {\n ignore: label.ignore,\n labelGuideIgnore: labelGuide && labelGuide.ignore,\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY,\n rotation: dummyTransformable.rotation,\n style: {\n x: labelStyle.x,\n y: labelStyle.y,\n align: labelStyle.align,\n verticalAlign: labelStyle.verticalAlign,\n width: labelStyle.width,\n height: labelStyle.height,\n fontSize: labelStyle.fontSize\n },\n cursor: label.cursor,\n attachedPos: textConfig.position,\n attachedRot: textConfig.rotation\n }\n });\n };\n\n LabelManager.prototype.addLabelsOfSeries = function (chartView) {\n var _this = this;\n\n this._chartViewList.push(chartView);\n\n var seriesModel = chartView.__model;\n var layoutOption = seriesModel.get('labelLayout');\n /**\n * Ignore layouting if it's not specified anything.\n */\n\n if (!(isFunction(layoutOption) || keys(layoutOption).length)) {\n return;\n }\n\n chartView.group.traverse(function (child) {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n } // Only support label being hosted on graphic elements.\n\n\n var textEl = child.getTextContent();\n var ecData = getECData(child); // Can only attach the text on the element with dataIndex\n\n if (textEl && !textEl.disableLabelLayout) {\n _this._addLabel(ecData.dataIndex, ecData.dataType, seriesModel, textEl, layoutOption);\n }\n });\n };\n\n LabelManager.prototype.updateLayoutConfig = function (api) {\n var width = api.getWidth();\n var height = api.getHeight();\n\n function createDragHandler(el, labelLineModel) {\n return function () {\n updateLabelLinePoints(el, labelLineModel);\n };\n }\n\n for (var i = 0; i < this._labelList.length; i++) {\n var labelItem = this._labelList[i];\n var label = labelItem.label;\n var hostEl = label.__hostTarget;\n var defaultLabelAttr = labelItem.defaultAttr;\n var layoutOption = void 0; // TODO A global layout option?\n\n if (typeof labelItem.layoutOption === 'function') {\n layoutOption = labelItem.layoutOption(prepareLayoutCallbackParams(labelItem, hostEl));\n } else {\n layoutOption = labelItem.layoutOption;\n }\n\n layoutOption = layoutOption || {};\n labelItem.computedLayoutOption = layoutOption;\n var degreeToRadian = Math.PI / 180; // TODO hostEl should always exists.\n // Or label should not have parent because the x, y is all in global space.\n\n if (hostEl) {\n hostEl.setTextConfig({\n // Force to set local false.\n local: false,\n // Ignore position and rotation config on the host el if x or y is changed.\n position: layoutOption.x != null || layoutOption.y != null ? null : defaultLabelAttr.attachedPos,\n // Ignore rotation config on the host el if rotation is changed.\n rotation: layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.attachedRot,\n offset: [layoutOption.dx || 0, layoutOption.dy || 0]\n });\n }\n\n var needsUpdateLabelLine = false;\n\n if (layoutOption.x != null) {\n // TODO width of chart view.\n label.x = parsePercent(layoutOption.x, width);\n label.setStyle('x', 0); // Ignore movement in style. TODO: origin.\n\n needsUpdateLabelLine = true;\n } else {\n label.x = defaultLabelAttr.x;\n label.setStyle('x', defaultLabelAttr.style.x);\n }\n\n if (layoutOption.y != null) {\n // TODO height of chart view.\n label.y = parsePercent(layoutOption.y, height);\n label.setStyle('y', 0); // Ignore movement in style.\n\n needsUpdateLabelLine = true;\n } else {\n label.y = defaultLabelAttr.y;\n label.setStyle('y', defaultLabelAttr.style.y);\n }\n\n if (layoutOption.labelLinePoints) {\n var guideLine = hostEl.getTextGuideLine();\n\n if (guideLine) {\n guideLine.setShape({\n points: layoutOption.labelLinePoints\n }); // Not update\n\n needsUpdateLabelLine = false;\n }\n }\n\n var labelLayoutStore = labelLayoutInnerStore(label);\n labelLayoutStore.needsUpdateLabelLine = needsUpdateLabelLine;\n label.rotation = layoutOption.rotate != null ? layoutOption.rotate * degreeToRadian : defaultLabelAttr.rotation;\n label.scaleX = defaultLabelAttr.scaleX;\n label.scaleY = defaultLabelAttr.scaleY;\n\n for (var k = 0; k < LABEL_OPTION_TO_STYLE_KEYS.length; k++) {\n var key = LABEL_OPTION_TO_STYLE_KEYS[k];\n label.setStyle(key, layoutOption[key] != null ? layoutOption[key] : defaultLabelAttr.style[key]);\n }\n\n if (layoutOption.draggable) {\n label.draggable = true;\n label.cursor = 'move';\n\n if (hostEl) {\n var hostModel = labelItem.seriesModel;\n\n if (labelItem.dataIndex != null) {\n var data = labelItem.seriesModel.getData(labelItem.dataType);\n hostModel = data.getItemModel(labelItem.dataIndex);\n }\n\n label.on('drag', createDragHandler(hostEl, hostModel.getModel('labelLine')));\n }\n } else {\n // TODO Other drag functions?\n label.off('drag');\n label.cursor = defaultLabelAttr.cursor;\n }\n }\n };\n\n LabelManager.prototype.layout = function (api) {\n var width = api.getWidth();\n var height = api.getHeight();\n var labelList = prepareLayoutList(this._labelList);\n var labelsNeedsAdjustOnX = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftX';\n });\n var labelsNeedsAdjustOnY = filter(labelList, function (item) {\n return item.layoutOption.moveOverlap === 'shiftY';\n });\n shiftLayoutOnX(labelsNeedsAdjustOnX, 0, width);\n shiftLayoutOnY(labelsNeedsAdjustOnY, 0, height);\n var labelsNeedsHideOverlap = filter(labelList, function (item) {\n return item.layoutOption.hideOverlap;\n });\n hideOverlap(labelsNeedsHideOverlap);\n };\n /**\n * Process all labels. Not only labels with layoutOption.\n */\n\n\n LabelManager.prototype.processLabelsOverall = function () {\n var _this = this;\n\n each(this._chartViewList, function (chartView) {\n var seriesModel = chartView.__model;\n var ignoreLabelLineUpdate = chartView.ignoreLabelLineUpdate;\n var animationEnabled = seriesModel.isAnimationEnabled();\n chartView.group.traverse(function (child) {\n if (child.ignore) {\n return true; // Stop traverse descendants.\n }\n\n var needsUpdateLabelLine = !ignoreLabelLineUpdate;\n var label = child.getTextContent();\n\n if (!needsUpdateLabelLine && label) {\n needsUpdateLabelLine = labelLayoutInnerStore(label).needsUpdateLabelLine;\n }\n\n if (needsUpdateLabelLine) {\n _this._updateLabelLine(child, seriesModel);\n }\n\n if (animationEnabled) {\n _this._animateLabels(child, seriesModel);\n }\n });\n });\n };\n\n LabelManager.prototype._updateLabelLine = function (el, seriesModel) {\n // Only support label being hosted on graphic elements.\n var textEl = el.getTextContent(); // Update label line style.\n\n var ecData = getECData(el);\n var dataIndex = ecData.dataIndex; // Only support labelLine on the labels represent data.\n\n if (textEl && dataIndex != null) {\n var data = seriesModel.getData(ecData.dataType);\n var itemModel = data.getItemModel(dataIndex);\n var defaultStyle = {};\n var visualStyle = data.getItemVisual(dataIndex, 'style');\n var visualType = data.getVisual('drawType'); // Default to be same with main color\n\n defaultStyle.stroke = visualStyle[visualType];\n var labelLineModel = itemModel.getModel('labelLine');\n setLabelLineStyle(el, getLabelLineStatesModels(itemModel), defaultStyle);\n updateLabelLinePoints(el, labelLineModel);\n }\n };\n\n LabelManager.prototype._animateLabels = function (el, seriesModel) {\n var textEl = el.getTextContent();\n var guideLine = el.getTextGuideLine(); // Animate\n\n if (textEl && !textEl.ignore && !textEl.invisible && !el.disableLabelAnimation && !isElementRemoved(el)) {\n var layoutStore = labelLayoutInnerStore(textEl);\n var oldLayout = layoutStore.oldLayout;\n var ecData = getECData(el);\n var dataIndex = ecData.dataIndex;\n var newProps = {\n x: textEl.x,\n y: textEl.y,\n rotation: textEl.rotation\n };\n var data = seriesModel.getData(ecData.dataType);\n\n if (!oldLayout) {\n textEl.attr(newProps); // Disable fade in animation if value animation is enabled.\n\n if (!labelInner(textEl).valueAnimation) {\n var oldOpacity = retrieve2(textEl.style.opacity, 1); // Fade in animation\n\n textEl.style.opacity = 0;\n initProps(textEl, {\n style: {\n opacity: oldOpacity\n }\n }, seriesModel, dataIndex);\n }\n } else {\n textEl.attr(oldLayout); // Make sure the animation from is in the right status.\n\n var prevStates = el.prevStates;\n\n if (prevStates) {\n if (indexOf(prevStates, 'select') >= 0) {\n textEl.attr(layoutStore.oldLayoutSelect);\n }\n\n if (indexOf(prevStates, 'emphasis') >= 0) {\n textEl.attr(layoutStore.oldLayoutEmphasis);\n }\n }\n\n updateProps(textEl, newProps, seriesModel, dataIndex);\n }\n\n layoutStore.oldLayout = newProps;\n\n if (textEl.states.select) {\n var layoutSelect = layoutStore.oldLayoutSelect = {};\n extendWithKeys(layoutSelect, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutSelect, textEl.states.select, LABEL_LAYOUT_PROPS);\n }\n\n if (textEl.states.emphasis) {\n var layoutEmphasis = layoutStore.oldLayoutEmphasis = {};\n extendWithKeys(layoutEmphasis, newProps, LABEL_LAYOUT_PROPS);\n extendWithKeys(layoutEmphasis, textEl.states.emphasis, LABEL_LAYOUT_PROPS);\n }\n\n animateLabelValue(textEl, dataIndex, data, seriesModel, seriesModel);\n }\n\n if (guideLine && !guideLine.ignore && !guideLine.invisible) {\n var layoutStore = labelLineAnimationStore(guideLine);\n var oldLayout = layoutStore.oldLayout;\n var newLayout = {\n points: guideLine.shape.points\n };\n\n if (!oldLayout) {\n guideLine.setShape(newLayout);\n guideLine.style.strokePercent = 0;\n initProps(guideLine, {\n style: {\n strokePercent: 1\n }\n }, seriesModel);\n } else {\n guideLine.attr({\n shape: oldLayout\n });\n updateProps(guideLine, {\n shape: newLayout\n }, seriesModel);\n }\n\n layoutStore.oldLayout = newLayout;\n }\n };\n\n return LabelManager;\n}();\n\nexport default LabelManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend, each, isArray } from 'zrender/lib/core/util';\nimport { deprecateReplaceLog, deprecateLog } from '../util/log';\nimport { queryDataIndex } from '../util/model'; // Legacy data selection action.\n// Inlucdes: pieSelect, pieUnSelect, pieToggleSelect, mapSelect, mapUnSelect, mapToggleSelect\n\nexport function createLegacyDataSelectAction(seriesType, ecRegisterAction) {\n function getSeriesIndices(ecModel, payload) {\n var seriesIndices = [];\n ecModel.eachComponent({\n mainType: 'series',\n subType: seriesType,\n query: payload\n }, function (seriesModel) {\n seriesIndices.push(seriesModel.seriesIndex);\n });\n return seriesIndices;\n }\n\n each([[seriesType + 'ToggleSelect', 'toggleSelect'], [seriesType + 'Select', 'select'], [seriesType + 'UnSelect', 'unselect']], function (eventsMap) {\n ecRegisterAction(eventsMap[0], function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog(payload.type, eventsMap[1]);\n }\n\n api.dispatchAction(extend(payload, {\n type: eventsMap[1],\n seriesIndex: getSeriesIndices(ecModel, payload)\n }));\n });\n });\n}\n\nfunction handleSeriesLegacySelectEvents(type, eventPostfix, ecIns, ecModel, payload) {\n var legacyEventName = type + eventPostfix;\n\n if (!ecIns.isSilent(legacyEventName)) {\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog(\"event \" + legacyEventName + \" is deprecated.\");\n }\n\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'pie'\n }, function (seriesModel) {\n var seriesIndex = seriesModel.seriesIndex;\n var selected = payload.selected;\n\n for (var i = 0; i < selected.length; i++) {\n if (selected[i].seriesIndex === seriesIndex) {\n var data = seriesModel.getData();\n var dataIndex = queryDataIndex(data, payload.fromActionPayload);\n ecIns.trigger(legacyEventName, {\n type: legacyEventName,\n seriesId: seriesModel.id,\n name: isArray(dataIndex) ? data.getName(dataIndex[0]) : data.getName(dataIndex),\n selected: extend({}, seriesModel.option.selectedMap)\n });\n }\n }\n });\n }\n}\n\nexport function handleLegacySelectEvents(messageCenter, ecIns, api) {\n messageCenter.on('selectchanged', function (params) {\n var ecModel = api.getModel();\n\n if (params.isFromClick) {\n handleSeriesLegacySelectEvents('map', 'selectchanged', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selectchanged', ecIns, ecModel, params);\n } else if (params.fromAction === 'select') {\n handleSeriesLegacySelectEvents('map', 'selected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'selected', ecIns, ecModel, params);\n } else if (params.fromAction === 'unselect') {\n handleSeriesLegacySelectEvents('map', 'unselected', ecIns, ecModel, params);\n handleSeriesLegacySelectEvents('pie', 'unselected', ecIns, ecModel, params);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function findEventDispatcher(target, det, returnFirstMatch) {\n var found;\n\n while (target) {\n if (det(target)) {\n found = target;\n\n if (returnFirstMatch) {\n break;\n }\n }\n\n target = target.__hostTarget || target.parent;\n }\n\n return found;\n}","var wmUniqueIndex = Math.round(Math.random() * 9);\nvar WeakMap = (function () {\n function WeakMap() {\n this._id = '__ec_inner_' + wmUniqueIndex++;\n }\n WeakMap.prototype.get = function (key) {\n return this._guard(key)[this._id];\n };\n WeakMap.prototype.set = function (key, value) {\n var target = this._guard(key);\n if (typeof Object.defineProperty === 'function') {\n Object.defineProperty(target, this._id, {\n value: value,\n enumerable: false,\n configurable: true\n });\n }\n else {\n target[this._id] = value;\n }\n return this;\n };\n WeakMap.prototype[\"delete\"] = function (key) {\n if (this.has(key)) {\n delete this._guard(key)[this._id];\n return true;\n }\n return false;\n };\n WeakMap.prototype.has = function (key) {\n return !!this._guard(key)[this._id];\n };\n WeakMap.prototype._guard = function (key) {\n if (key !== Object(key)) {\n throw TypeError('Value of WeakMap is not a non-null object.');\n }\n return key;\n };\n return WeakMap;\n}());\nexport default WeakMap;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Symbol factory\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from './graphic';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { calculateTextPosition } from 'zrender/lib/contain/text';\n/**\n * Triangle shape\n * @inner\n */\n\nvar Triangle = graphic.Path.extend({\n type: 'triangle',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var cx = shape.cx;\n var cy = shape.cy;\n var width = shape.width / 2;\n var height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy + height);\n path.lineTo(cx - width, cy + height);\n path.closePath();\n }\n});\n/**\n * Diamond shape\n * @inner\n */\n\nvar Diamond = graphic.Path.extend({\n type: 'diamond',\n shape: {\n cx: 0,\n cy: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var cx = shape.cx;\n var cy = shape.cy;\n var width = shape.width / 2;\n var height = shape.height / 2;\n path.moveTo(cx, cy - height);\n path.lineTo(cx + width, cy);\n path.lineTo(cx, cy + height);\n path.lineTo(cx - width, cy);\n path.closePath();\n }\n});\n/**\n * Pin shape\n * @inner\n */\n\nvar Pin = graphic.Path.extend({\n type: 'pin',\n shape: {\n // x, y on the cusp\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n buildPath: function (path, shape) {\n var x = shape.x;\n var y = shape.y;\n var w = shape.width / 5 * 3; // Height must be larger than width\n\n var h = Math.max(w, shape.height);\n var r = w / 2; // Dist on y with tangent point and circle center\n\n var dy = r * r / (h - r);\n var cy = y - h + r + dy;\n var angle = Math.asin(dy / r); // Dist on x with tangent point and circle center\n\n var dx = Math.cos(angle) * r;\n var tanX = Math.sin(angle);\n var tanY = Math.cos(angle);\n var cpLen = r * 0.6;\n var cpLen2 = r * 0.7;\n path.moveTo(x - dx, cy + dy);\n path.arc(x, cy, r, Math.PI - angle, Math.PI * 2 + angle);\n path.bezierCurveTo(x + dx - tanX * cpLen, cy + dy + tanY * cpLen, x, y - cpLen2, x, y);\n path.bezierCurveTo(x, y - cpLen2, x - dx + tanX * cpLen, cy + dy + tanY * cpLen, x - dx, cy + dy);\n path.closePath();\n }\n});\n/**\n * Arrow shape\n * @inner\n */\n\nvar Arrow = graphic.Path.extend({\n type: 'arrow',\n shape: {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n buildPath: function (ctx, shape) {\n var height = shape.height;\n var width = shape.width;\n var x = shape.x;\n var y = shape.y;\n var dx = width / 3 * 2;\n ctx.moveTo(x, y);\n ctx.lineTo(x + dx, y + height);\n ctx.lineTo(x, y + height / 4 * 3);\n ctx.lineTo(x - dx, y + height);\n ctx.lineTo(x, y);\n ctx.closePath();\n }\n});\n/**\n * Map of path contructors\n */\n// TODO Use function to build symbol path.\n\nvar symbolCtors = {\n line: graphic.Line,\n rect: graphic.Rect,\n roundRect: graphic.Rect,\n square: graphic.Rect,\n circle: graphic.Circle,\n diamond: Diamond,\n pin: Pin,\n arrow: Arrow,\n triangle: Triangle\n};\nvar symbolShapeMakers = {\n line: function (x, y, w, h, shape) {\n shape.x1 = x;\n shape.y1 = y + h / 2;\n shape.x2 = x + w;\n shape.y2 = y + h / 2;\n },\n rect: function (x, y, w, h, shape) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n },\n roundRect: function (x, y, w, h, shape) {\n shape.x = x;\n shape.y = y;\n shape.width = w;\n shape.height = h;\n shape.r = Math.min(w, h) / 4;\n },\n square: function (x, y, w, h, shape) {\n var size = Math.min(w, h);\n shape.x = x;\n shape.y = y;\n shape.width = size;\n shape.height = size;\n },\n circle: function (x, y, w, h, shape) {\n // Put circle in the center of square\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.r = Math.min(w, h) / 2;\n },\n diamond: function (x, y, w, h, shape) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n pin: function (x, y, w, h, shape) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n arrow: function (x, y, w, h, shape) {\n shape.x = x + w / 2;\n shape.y = y + h / 2;\n shape.width = w;\n shape.height = h;\n },\n triangle: function (x, y, w, h, shape) {\n shape.cx = x + w / 2;\n shape.cy = y + h / 2;\n shape.width = w;\n shape.height = h;\n }\n};\nexport var symbolBuildProxies = {};\nzrUtil.each(symbolCtors, function (Ctor, name) {\n symbolBuildProxies[name] = new Ctor();\n});\nvar SymbolClz = graphic.Path.extend({\n type: 'symbol',\n shape: {\n symbolType: '',\n x: 0,\n y: 0,\n width: 0,\n height: 0\n },\n calculateTextPosition: function (out, config, rect) {\n var res = calculateTextPosition(out, config, rect);\n var shape = this.shape;\n\n if (shape && shape.symbolType === 'pin' && config.position === 'inside') {\n res.y = rect.y + rect.height * 0.4;\n }\n\n return res;\n },\n buildPath: function (ctx, shape, inBundle) {\n var symbolType = shape.symbolType;\n\n if (symbolType !== 'none') {\n var proxySymbol = symbolBuildProxies[symbolType];\n\n if (!proxySymbol) {\n // Default rect\n symbolType = 'rect';\n proxySymbol = symbolBuildProxies[symbolType];\n }\n\n symbolShapeMakers[symbolType](shape.x, shape.y, shape.width, shape.height, proxySymbol.shape);\n proxySymbol.buildPath(ctx, proxySymbol.shape, inBundle);\n }\n }\n}); // Provide setColor helper method to avoid determine if set the fill or stroke outside\n\nfunction symbolPathSetColor(color, innerColor) {\n if (this.type !== 'image') {\n var symbolStyle = this.style;\n\n if (this.__isEmptyBrush) {\n symbolStyle.stroke = color;\n symbolStyle.fill = innerColor || '#fff'; // TODO Same width with lineStyle in LineView\n\n symbolStyle.lineWidth = 2;\n } else if (this.shape.symbolType === 'line') {\n symbolStyle.stroke = color;\n } else {\n symbolStyle.fill = color;\n }\n\n this.markRedraw();\n }\n}\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n */\n\n\nexport function createSymbol(symbolType, x, y, w, h, color, // whether to keep the ratio of w/h,\nkeepAspect) {\n // TODO Support image object, DynamicImage.\n var isEmpty = symbolType.indexOf('empty') === 0;\n\n if (isEmpty) {\n symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);\n }\n\n var symbolPath;\n\n if (symbolType.indexOf('image://') === 0) {\n symbolPath = graphic.makeImage(symbolType.slice(8), new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');\n } else if (symbolType.indexOf('path://') === 0) {\n symbolPath = graphic.makePath(symbolType.slice(7), {}, new BoundingRect(x, y, w, h), keepAspect ? 'center' : 'cover');\n } else {\n symbolPath = new SymbolClz({\n shape: {\n symbolType: symbolType,\n x: x,\n y: y,\n width: w,\n height: h\n }\n });\n }\n\n symbolPath.__isEmptyBrush = isEmpty; // TODO Should deprecate setColor\n\n symbolPath.setColor = symbolPathSetColor;\n\n if (color) {\n symbolPath.setColor(color);\n }\n\n return symbolPath;\n}","export function createLinearGradient(ctx, obj, rect) {\n var x = obj.x == null ? 0 : obj.x;\n var x2 = obj.x2 == null ? 1 : obj.x2;\n var y = obj.y == null ? 0 : obj.y;\n var y2 = obj.y2 == null ? 0 : obj.y2;\n if (!obj.global) {\n x = x * rect.width + rect.x;\n x2 = x2 * rect.width + rect.x;\n y = y * rect.height + rect.y;\n y2 = y2 * rect.height + rect.y;\n }\n x = isNaN(x) ? 0 : x;\n x2 = isNaN(x2) ? 1 : x2;\n y = isNaN(y) ? 0 : y;\n y2 = isNaN(y2) ? 0 : y2;\n var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);\n return canvasGradient;\n}\nexport function createRadialGradient(ctx, obj, rect) {\n var width = rect.width;\n var height = rect.height;\n var min = Math.min(width, height);\n var x = obj.x == null ? 0.5 : obj.x;\n var y = obj.y == null ? 0.5 : obj.y;\n var r = obj.r == null ? 0.5 : obj.r;\n if (!obj.global) {\n x = x * width + rect.x;\n y = y * height + rect.y;\n r = r * min;\n }\n var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);\n return canvasGradient;\n}\nexport function getCanvasGradient(ctx, obj, rect) {\n var canvasGradient = obj.type === 'radial'\n ? createRadialGradient(ctx, obj, rect)\n : createLinearGradient(ctx, obj, rect);\n var colorStops = obj.colorStops;\n for (var i = 0; i < colorStops.length; i++) {\n canvasGradient.addColorStop(colorStops[i].offset, colorStops[i].color);\n }\n return canvasGradient;\n}\nexport function isClipPathChanged(clipPaths, prevClipPaths) {\n if (clipPaths === prevClipPaths || (!clipPaths && !prevClipPaths)) {\n return false;\n }\n if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {\n return true;\n }\n for (var i = 0; i < clipPaths.length; i++) {\n if (clipPaths[i] !== prevClipPaths[i]) {\n return true;\n }\n }\n return false;\n}\n","import { isArray, isNumber } from '../../core/util';\nexport function normalizeLineDash(lineType, lineWidth) {\n if (!lineType || lineType === 'solid' || !(lineWidth > 0)) {\n return null;\n }\n lineWidth = lineWidth || 1;\n return lineType === 'dashed'\n ? [4 * lineWidth, 2 * lineWidth]\n : lineType === 'dotted'\n ? [lineWidth]\n : isNumber(lineType)\n ? [lineType] : isArray(lineType) ? lineType : null;\n}\n","import { DEFAULT_COMMON_STYLE } from '../graphic/Displayable';\nimport PathProxy from '../core/PathProxy';\nimport { createOrUpdateImage, isImageReady } from '../graphic/helper/image';\nimport { getCanvasGradient, isClipPathChanged } from './helper';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport { DEFAULT_FONT } from '../contain/text';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nimport IncrementalDisplayable from '../graphic/IncrementalDisplayable';\nimport { REDARAW_BIT, SHAPE_CHANGED_BIT } from '../graphic/constants';\nvar pathProxyForDraw = new PathProxy(true);\nfunction styleHasStroke(style) {\n var stroke = style.stroke;\n return !(stroke == null || stroke === 'none' || !(style.lineWidth > 0));\n}\nfunction styleHasFill(style) {\n var fill = style.fill;\n return fill != null && fill !== 'none';\n}\nfunction doFillPath(ctx, style) {\n if (style.fillOpacity != null && style.fillOpacity !== 1) {\n var originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.fillOpacity * style.opacity;\n ctx.fill();\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.fill();\n }\n}\nfunction doStrokePath(ctx, style) {\n if (style.strokeOpacity != null && style.strokeOpacity !== 1) {\n var originalGlobalAlpha = ctx.globalAlpha;\n ctx.globalAlpha = style.strokeOpacity * style.opacity;\n ctx.stroke();\n ctx.globalAlpha = originalGlobalAlpha;\n }\n else {\n ctx.stroke();\n }\n}\nexport function createCanvasPattern(ctx, pattern, el) {\n var image = createOrUpdateImage(pattern.image, pattern.__image, el);\n if (isImageReady(image)) {\n var canvasPattern = ctx.createPattern(image, pattern.repeat || 'repeat');\n if (typeof DOMMatrix === 'function'\n && canvasPattern.setTransform) {\n var matrix = new DOMMatrix();\n matrix.rotateSelf(0, 0, (pattern.rotation || 0) / Math.PI * 180);\n matrix.scaleSelf((pattern.scaleX || 1), (pattern.scaleY || 1));\n matrix.translateSelf((pattern.x || 0), (pattern.y || 0));\n canvasPattern.setTransform(matrix);\n }\n return canvasPattern;\n }\n}\nfunction brushPath(ctx, el, style, inBatch) {\n var hasStroke = styleHasStroke(style);\n var hasFill = styleHasFill(style);\n var strokePercent = style.strokePercent;\n var strokePart = strokePercent < 1;\n var firstDraw = !el.path;\n if ((!el.silent || strokePart) && firstDraw) {\n el.createPathProxy();\n }\n var path = el.path || pathProxyForDraw;\n if (!inBatch) {\n var fill = style.fill;\n var stroke = style.stroke;\n var hasFillGradient = hasFill && !!fill.colorStops;\n var hasStrokeGradient = hasStroke && !!stroke.colorStops;\n var hasFillPattern = hasFill && !!fill.image;\n var hasStrokePattern = hasStroke && !!stroke.image;\n var fillGradient = void 0;\n var strokeGradient = void 0;\n var fillPattern = void 0;\n var strokePattern = void 0;\n var rect = void 0;\n if (hasFillGradient || hasStrokeGradient) {\n rect = el.getBoundingRect();\n }\n if (hasFillGradient) {\n fillGradient = el.__dirty\n ? getCanvasGradient(ctx, fill, rect)\n : el.__canvasFillGradient;\n el.__canvasFillGradient = fillGradient;\n }\n if (hasStrokeGradient) {\n strokeGradient = el.__dirty\n ? getCanvasGradient(ctx, stroke, rect)\n : el.__canvasStrokeGradient;\n el.__canvasStrokeGradient = strokeGradient;\n }\n if (hasFillPattern) {\n fillPattern = (el.__dirty || !el.__canvasFillPattern)\n ? createCanvasPattern(ctx, fill, el)\n : el.__canvasFillPattern;\n el.__canvasFillPattern = fillPattern;\n }\n if (hasStrokePattern) {\n strokePattern = (el.__dirty || !el.__canvasStrokePattern)\n ? createCanvasPattern(ctx, stroke, el)\n : el.__canvasStrokePattern;\n el.__canvasStrokePattern = fillPattern;\n }\n if (hasFillGradient) {\n ctx.fillStyle = fillGradient;\n }\n else if (hasFillPattern) {\n if (fillPattern) {\n ctx.fillStyle = fillPattern;\n }\n else {\n hasFill = false;\n }\n }\n if (hasStrokeGradient) {\n ctx.strokeStyle = strokeGradient;\n }\n else if (hasStrokePattern) {\n if (strokePattern) {\n ctx.strokeStyle = strokePattern;\n }\n else {\n hasStroke = false;\n }\n }\n }\n var lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n var lineDashOffset = style.lineDashOffset;\n var ctxLineDash = !!ctx.setLineDash;\n var scale = el.getGlobalScale();\n path.setScale(scale[0], scale[1], el.segmentIgnoreThreshold);\n if (lineDash) {\n var lineScale_1 = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale_1 && lineScale_1 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale_1;\n });\n lineDashOffset /= lineScale_1;\n }\n }\n var needsRebuild = true;\n if (firstDraw || (el.__dirty & SHAPE_CHANGED_BIT)\n || (lineDash && !ctxLineDash && hasStroke)) {\n path.setDPR(ctx.dpr);\n if (strokePart) {\n path.setContext(null);\n }\n else {\n path.setContext(ctx);\n needsRebuild = false;\n }\n path.reset();\n if (lineDash && !ctxLineDash) {\n path.setLineDash(lineDash);\n path.setLineDashOffset(lineDashOffset);\n }\n el.buildPath(path, el.shape, inBatch);\n path.toStatic();\n el.pathUpdated();\n }\n if (needsRebuild) {\n path.rebuildPath(ctx, strokePart ? strokePercent : 1);\n }\n if (lineDash && ctxLineDash) {\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n }\n if (!inBatch) {\n if (style.strokeFirst) {\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n if (hasFill) {\n doFillPath(ctx, style);\n }\n }\n else {\n if (hasFill) {\n doFillPath(ctx, style);\n }\n if (hasStroke) {\n doStrokePath(ctx, style);\n }\n }\n }\n if (lineDash && ctxLineDash) {\n ctx.setLineDash([]);\n }\n}\nfunction brushImage(ctx, el, style) {\n var image = el.__image = createOrUpdateImage(style.image, el.__image, el, el.onload);\n if (!image || !isImageReady(image)) {\n return;\n }\n var x = style.x || 0;\n var y = style.y || 0;\n var width = el.getWidth();\n var height = el.getHeight();\n var aspect = image.width / image.height;\n if (width == null && height != null) {\n width = height * aspect;\n }\n else if (height == null && width != null) {\n height = width / aspect;\n }\n else if (width == null && height == null) {\n width = image.width;\n height = image.height;\n }\n if (style.sWidth && style.sHeight) {\n var sx = style.sx || 0;\n var sy = style.sy || 0;\n ctx.drawImage(image, sx, sy, style.sWidth, style.sHeight, x, y, width, height);\n }\n else if (style.sx && style.sy) {\n var sx = style.sx;\n var sy = style.sy;\n var sWidth = width - sx;\n var sHeight = height - sy;\n ctx.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height);\n }\n else {\n ctx.drawImage(image, x, y, width, height);\n }\n}\nfunction brushText(ctx, el, style) {\n var text = style.text;\n text != null && (text += '');\n if (text) {\n ctx.font = style.font || DEFAULT_FONT;\n ctx.textAlign = style.textAlign;\n ctx.textBaseline = style.textBaseline;\n var hasLineDash = void 0;\n if (ctx.setLineDash) {\n var lineDash = style.lineDash && style.lineWidth > 0 && normalizeLineDash(style.lineDash, style.lineWidth);\n var lineDashOffset = style.lineDashOffset;\n if (lineDash) {\n var lineScale_2 = (style.strokeNoScale && el.getLineScale) ? el.getLineScale() : 1;\n if (lineScale_2 && lineScale_2 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / lineScale_2;\n });\n lineDashOffset /= lineScale_2;\n }\n ctx.setLineDash(lineDash);\n ctx.lineDashOffset = lineDashOffset;\n hasLineDash = true;\n }\n }\n if (style.strokeFirst) {\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n }\n else {\n if (styleHasFill(style)) {\n ctx.fillText(text, style.x, style.y);\n }\n if (styleHasStroke(style)) {\n ctx.strokeText(text, style.x, style.y);\n }\n }\n if (hasLineDash) {\n ctx.setLineDash([]);\n }\n }\n}\nvar SHADOW_NUMBER_PROPS = ['shadowBlur', 'shadowOffsetX', 'shadowOffsetY'];\nvar STROKE_PROPS = [\n ['lineCap', 'butt'], ['lineJoin', 'miter'], ['miterLimit', 10]\n];\nfunction bindCommonProps(ctx, style, prevStyle, forceSetAll, scope) {\n var styleChanged = false;\n if (!forceSetAll) {\n prevStyle = prevStyle || {};\n if (style === prevStyle) {\n return false;\n }\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n var opacity = Math.max(Math.min(style.opacity, 1), 0);\n ctx.globalAlpha = isNaN(opacity) ? DEFAULT_COMMON_STYLE.opacity : opacity;\n }\n if (forceSetAll || style.blend !== prevStyle.blend) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalCompositeOperation = style.blend || DEFAULT_COMMON_STYLE.blend;\n }\n for (var i = 0; i < SHADOW_NUMBER_PROPS.length; i++) {\n var propName = SHADOW_NUMBER_PROPS[i];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx[propName] = ctx.dpr * (style[propName] || 0);\n }\n }\n if (forceSetAll || style.shadowColor !== prevStyle.shadowColor) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.shadowColor = style.shadowColor || DEFAULT_COMMON_STYLE.shadowColor;\n }\n return styleChanged;\n}\nfunction bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetAll, scope) {\n var style = getStyle(el, scope.inHover);\n var prevStyle = forceSetAll\n ? null\n : (prevEl && getStyle(prevEl, scope.inHover) || {});\n if (style === prevStyle) {\n return false;\n }\n var styleChanged = bindCommonProps(ctx, style, prevStyle, forceSetAll, scope);\n if (forceSetAll || style.fill !== prevStyle.fill) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.fillStyle = style.fill;\n }\n if (forceSetAll || style.stroke !== prevStyle.stroke) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.strokeStyle = style.stroke;\n }\n if (forceSetAll || style.opacity !== prevStyle.opacity) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.globalAlpha = style.opacity == null ? 1 : style.opacity;\n }\n if (el.hasStroke()) {\n var lineWidth = style.lineWidth;\n var newLineWidth = lineWidth / ((style.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1);\n if (ctx.lineWidth !== newLineWidth) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx.lineWidth = newLineWidth;\n }\n }\n for (var i = 0; i < STROKE_PROPS.length; i++) {\n var prop = STROKE_PROPS[i];\n var propName = prop[0];\n if (forceSetAll || style[propName] !== prevStyle[propName]) {\n if (!styleChanged) {\n flushPathDrawn(ctx, scope);\n styleChanged = true;\n }\n ctx[propName] = style[propName] || prop[1];\n }\n }\n return styleChanged;\n}\nfunction bindImageStyle(ctx, el, prevEl, forceSetAll, scope) {\n return bindCommonProps(ctx, getStyle(el, scope.inHover), prevEl && getStyle(prevEl, scope.inHover), forceSetAll, scope);\n}\nfunction setContextTransform(ctx, el) {\n var m = el.transform;\n var dpr = ctx.dpr || 1;\n if (m) {\n ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]);\n }\n else {\n ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n }\n}\nfunction updateClipStatus(clipPaths, ctx, scope) {\n var allClipped = false;\n for (var i = 0; i < clipPaths.length; i++) {\n var clipPath = clipPaths[i];\n allClipped = allClipped || clipPath.isZeroArea();\n setContextTransform(ctx, clipPath);\n ctx.beginPath();\n clipPath.buildPath(ctx, clipPath.shape);\n ctx.clip();\n }\n scope.allClipped = allClipped;\n}\nfunction isTransformChanged(m0, m1) {\n if (m0 && m1) {\n return m0[0] !== m1[0]\n || m0[1] !== m1[1]\n || m0[2] !== m1[2]\n || m0[3] !== m1[3]\n || m0[4] !== m1[4]\n || m0[5] !== m1[5];\n }\n else if (!m0 && !m1) {\n return false;\n }\n return true;\n}\nvar DRAW_TYPE_PATH = 1;\nvar DRAW_TYPE_IMAGE = 2;\nvar DRAW_TYPE_TEXT = 3;\nvar DRAW_TYPE_INCREMENTAL = 4;\nfunction canPathBatch(style) {\n var hasFill = styleHasFill(style);\n var hasStroke = styleHasStroke(style);\n return !(style.lineDash\n || !(+hasFill ^ +hasStroke)\n || (hasFill && typeof style.fill !== 'string')\n || (hasStroke && typeof style.stroke !== 'string')\n || style.strokePercent < 1\n || style.strokeOpacity < 1\n || style.fillOpacity < 1);\n}\nfunction flushPathDrawn(ctx, scope) {\n scope.batchFill && ctx.fill();\n scope.batchStroke && ctx.stroke();\n scope.batchFill = '';\n scope.batchStroke = '';\n}\nfunction getStyle(el, inHover) {\n return inHover ? (el.__hoverStyle || el.style) : el.style;\n}\nexport function brushSingle(ctx, el) {\n brush(ctx, el, { inHover: false, viewWidth: 0, viewHeight: 0 }, true);\n}\nexport function brush(ctx, el, scope, isLast) {\n var m = el.transform;\n if (!el.shouldBePainted(scope.viewWidth, scope.viewHeight, false, false)) {\n el.__dirty &= ~REDARAW_BIT;\n el.__isRendered = false;\n return;\n }\n var clipPaths = el.__clipPaths;\n var prevElClipPaths = scope.prevElClipPaths;\n var forceSetTransform = false;\n var forceSetStyle = false;\n if (!prevElClipPaths || isClipPathChanged(clipPaths, prevElClipPaths)) {\n if (prevElClipPaths && prevElClipPaths.length) {\n flushPathDrawn(ctx, scope);\n ctx.restore();\n forceSetStyle = forceSetTransform = true;\n scope.prevElClipPaths = null;\n scope.allClipped = false;\n scope.prevEl = null;\n }\n if (clipPaths && clipPaths.length) {\n flushPathDrawn(ctx, scope);\n ctx.save();\n updateClipStatus(clipPaths, ctx, scope);\n forceSetTransform = true;\n }\n scope.prevElClipPaths = clipPaths;\n }\n if (scope.allClipped) {\n el.__isRendered = false;\n return;\n }\n el.beforeBrush && el.beforeBrush();\n el.innerBeforeBrush();\n var prevEl = scope.prevEl;\n if (!prevEl) {\n forceSetStyle = forceSetTransform = true;\n }\n var canBatchPath = el instanceof Path\n && el.autoBatch\n && canPathBatch(el.style);\n if (forceSetTransform || isTransformChanged(m, prevEl.transform)) {\n flushPathDrawn(ctx, scope);\n setContextTransform(ctx, el);\n }\n else if (!canBatchPath) {\n flushPathDrawn(ctx, scope);\n }\n var style = getStyle(el, scope.inHover);\n if (el instanceof Path) {\n if (scope.lastDrawType !== DRAW_TYPE_PATH) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_PATH;\n }\n bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);\n if (!canBatchPath || (!scope.batchFill && !scope.batchStroke)) {\n ctx.beginPath();\n }\n brushPath(ctx, el, style, canBatchPath);\n if (canBatchPath) {\n scope.batchFill = style.fill || '';\n scope.batchStroke = style.stroke || '';\n }\n }\n else {\n if (el instanceof TSpan) {\n if (scope.lastDrawType !== DRAW_TYPE_TEXT) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_TEXT;\n }\n bindPathAndTextCommonStyle(ctx, el, prevEl, forceSetStyle, scope);\n brushText(ctx, el, style);\n }\n else if (el instanceof ZRImage) {\n if (scope.lastDrawType !== DRAW_TYPE_IMAGE) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_IMAGE;\n }\n bindImageStyle(ctx, el, prevEl, forceSetStyle, scope);\n brushImage(ctx, el, style);\n }\n else if (el instanceof IncrementalDisplayable) {\n if (scope.lastDrawType !== DRAW_TYPE_INCREMENTAL) {\n forceSetStyle = true;\n scope.lastDrawType = DRAW_TYPE_INCREMENTAL;\n }\n brushIncremental(ctx, el, scope);\n }\n }\n if (canBatchPath && isLast) {\n flushPathDrawn(ctx, scope);\n }\n el.innerAfterBrush();\n el.afterBrush && el.afterBrush();\n scope.prevEl = el;\n el.__dirty = 0;\n el.__isRendered = true;\n}\nfunction brushIncremental(ctx, el, scope) {\n var displayables = el.getDisplayables();\n var temporalDisplayables = el.getTemporalDisplayables();\n ctx.save();\n var innerScope = {\n prevElClipPaths: null,\n prevEl: null,\n allClipped: false,\n viewWidth: scope.viewWidth,\n viewHeight: scope.viewHeight,\n inHover: scope.inHover\n };\n var i;\n var len;\n for (i = el.getCursor(), len = displayables.length; i < len; i++) {\n var displayable = displayables[i];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i === len - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n for (var i_1 = 0, len_1 = temporalDisplayables.length; i_1 < len_1; i_1++) {\n var displayable = temporalDisplayables[i_1];\n displayable.beforeBrush && displayable.beforeBrush();\n displayable.innerBeforeBrush();\n brush(ctx, displayable, innerScope, i_1 === len_1 - 1);\n displayable.innerAfterBrush();\n displayable.afterBrush && displayable.afterBrush();\n innerScope.prevEl = displayable;\n }\n el.clearTemporalDisplayables();\n el.notClear = true;\n ctx.restore();\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport WeakMap from 'zrender/lib/core/WeakMap';\nimport LRU from 'zrender/lib/core/LRU';\nimport { defaults, createCanvas, map, isArray } from 'zrender/lib/core/util';\nimport { getLeastCommonMultiple } from './number';\nimport { createSymbol } from './symbol';\nimport { brushSingle } from 'zrender/lib/canvas/graphic';\nvar decalMap = new WeakMap();\nvar decalCache = new LRU(100);\nvar decalKeys = ['symbol', 'symbolSize', 'symbolKeepAspect', 'color', 'backgroundColor', 'dashArrayX', 'dashArrayY', 'maxTileWidth', 'maxTileHeight'];\n/**\n * Create or update pattern image from decal options\n *\n * @param {InnerDecalObject | 'none'} decalObject decal options, 'none' if no decal\n * @return {Pattern} pattern with generated image, null if no decal\n */\n\nexport function createOrUpdatePatternFromDecal(decalObject, api) {\n if (decalObject === 'none') {\n return null;\n }\n\n var dpr = api.getDevicePixelRatio();\n var zr = api.getZr();\n var isSVG = zr.painter.type === 'svg';\n\n if (decalObject.dirty) {\n decalMap[\"delete\"](decalObject);\n }\n\n var oldPattern = decalMap.get(decalObject);\n\n if (oldPattern) {\n return oldPattern;\n }\n\n var decalOpt = defaults(decalObject, {\n symbol: 'rect',\n symbolSize: 1,\n symbolKeepAspect: true,\n color: 'rgba(0, 0, 0, 0.2)',\n backgroundColor: null,\n dashArrayX: 5,\n dashArrayY: 5,\n rotation: 0,\n maxTileWidth: 512,\n maxTileHeight: 512\n });\n\n if (decalOpt.backgroundColor === 'none') {\n decalOpt.backgroundColor = null;\n }\n\n var pattern = {\n repeat: 'repeat'\n };\n setPatternnSource(pattern);\n pattern.rotation = decalOpt.rotation;\n pattern.scaleX = pattern.scaleY = isSVG ? 1 : 1 / dpr;\n decalMap.set(decalObject, pattern);\n decalObject.dirty = false;\n return pattern;\n\n function setPatternnSource(pattern) {\n var keys = [dpr];\n var isValidKey = true;\n\n for (var i = 0; i < decalKeys.length; ++i) {\n var value = decalOpt[decalKeys[i]];\n var valueType = typeof value;\n\n if (value != null && !isArray(value) && valueType !== 'string' && valueType !== 'number' && valueType !== 'boolean') {\n isValidKey = false;\n break;\n }\n\n keys.push(value);\n }\n\n var cacheKey;\n\n if (isValidKey) {\n cacheKey = keys.join(',') + (isSVG ? '-svg' : '');\n var cache = decalCache.get(cacheKey);\n\n if (cache) {\n isSVG ? pattern.svgElement = cache : pattern.image = cache;\n }\n }\n\n var dashArrayX = normalizeDashArrayX(decalOpt.dashArrayX);\n var dashArrayY = normalizeDashArrayY(decalOpt.dashArrayY);\n var symbolArray = normalizeSymbolArray(decalOpt.symbol);\n var lineBlockLengthsX = getLineBlockLengthX(dashArrayX);\n var lineBlockLengthY = getLineBlockLengthY(dashArrayY);\n var canvas = !isSVG && createCanvas();\n var svgRoot = isSVG && zr.painter.createSVGElement('g');\n var pSize = getPatternSize();\n var ctx;\n\n if (canvas) {\n canvas.width = pSize.width * dpr;\n canvas.height = pSize.height * dpr;\n ctx = canvas.getContext('2d');\n }\n\n brushDecal();\n\n if (isValidKey) {\n decalCache.put(cacheKey, canvas || svgRoot);\n }\n\n pattern.image = canvas;\n pattern.svgElement = svgRoot;\n pattern.svgWidth = pSize.width;\n pattern.svgHeight = pSize.height;\n /**\n * Get minumum length that can make a repeatable pattern.\n *\n * @return {Object} pattern width and height\n */\n\n function getPatternSize() {\n /**\n * For example, if dash is [[3, 2], [2, 1]] for X, it looks like\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * |--- --- --- --- --- ...\n * |-- -- -- -- -- -- -- -- ...\n * So the minumum length of X is 15,\n * which is the least common multiple of `3 + 2` and `2 + 1`\n * |--- --- --- |--- --- ...\n * |-- -- -- -- -- |-- -- -- ...\n */\n var width = 1;\n\n for (var i = 0, xlen = lineBlockLengthsX.length; i < xlen; ++i) {\n width = getLeastCommonMultiple(width, lineBlockLengthsX[i]);\n }\n\n var symbolRepeats = 1;\n\n for (var i = 0, xlen = symbolArray.length; i < xlen; ++i) {\n symbolRepeats = getLeastCommonMultiple(symbolRepeats, symbolArray[i].length);\n }\n\n width *= symbolRepeats;\n var height = lineBlockLengthY * lineBlockLengthsX.length * symbolArray.length;\n\n if (process.env.NODE_ENV !== 'production') {\n var warn = function (attrName) {\n /* eslint-disable-next-line */\n console.warn(\"Calculated decal size is greater than \" + attrName + \" due to decal option settings so \" + attrName + \" is used for the decal size. Please consider changing the decal option to make a smaller decal or set \" + attrName + \" to be larger to avoid incontinuity.\");\n };\n\n if (width > decalOpt.maxTileWidth) {\n warn('maxTileWidth');\n }\n\n if (height > decalOpt.maxTileHeight) {\n warn('maxTileHeight');\n }\n }\n\n return {\n width: Math.max(1, Math.min(width, decalOpt.maxTileWidth)),\n height: Math.max(1, Math.min(height, decalOpt.maxTileHeight))\n };\n }\n\n function brushDecal() {\n if (ctx) {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n\n if (decalOpt.backgroundColor) {\n ctx.fillStyle = decalOpt.backgroundColor;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n }\n }\n\n var ySum = 0;\n\n for (var i = 0; i < dashArrayY.length; ++i) {\n ySum += dashArrayY[i];\n }\n\n if (ySum <= 0) {\n // dashArrayY is 0, draw nothing\n return;\n }\n\n var y = -lineBlockLengthY;\n var yId = 0;\n var yIdTotal = 0;\n var xId0 = 0;\n\n while (y < pSize.height) {\n if (yId % 2 === 0) {\n var symbolYId = yIdTotal / 2 % symbolArray.length;\n var x = 0;\n var xId1 = 0;\n var xId1Total = 0;\n\n while (x < pSize.width * 2) {\n var xSum = 0;\n\n for (var i = 0; i < dashArrayX[xId0].length; ++i) {\n xSum += dashArrayX[xId0][i];\n }\n\n if (xSum <= 0) {\n // Skip empty line\n break;\n } // E.g., [15, 5, 20, 5] draws only for 15 and 20\n\n\n if (xId1 % 2 === 0) {\n var size = (1 - decalOpt.symbolSize) * 0.5;\n var left = x + dashArrayX[xId0][xId1] * size;\n var top_1 = y + dashArrayY[yId] * size;\n var width = dashArrayX[xId0][xId1] * decalOpt.symbolSize;\n var height = dashArrayY[yId] * decalOpt.symbolSize;\n var symbolXId = xId1Total / 2 % symbolArray[symbolYId].length;\n brushSymbol(left, top_1, width, height, symbolArray[symbolYId][symbolXId]);\n }\n\n x += dashArrayX[xId0][xId1];\n ++xId1Total;\n ++xId1;\n\n if (xId1 === dashArrayX[xId0].length) {\n xId1 = 0;\n }\n }\n\n ++xId0;\n\n if (xId0 === dashArrayX.length) {\n xId0 = 0;\n }\n }\n\n y += dashArrayY[yId];\n ++yIdTotal;\n ++yId;\n\n if (yId === dashArrayY.length) {\n yId = 0;\n }\n }\n\n function brushSymbol(x, y, width, height, symbolType) {\n var scale = isSVG ? 1 : dpr;\n var symbol = createSymbol(symbolType, x * scale, y * scale, width * scale, height * scale, decalOpt.color, decalOpt.symbolKeepAspect);\n\n if (isSVG) {\n svgRoot.appendChild(zr.painter.paintOne(symbol));\n } else {\n // Paint to canvas for all other renderers.\n brushSingle(ctx, symbol);\n }\n }\n }\n }\n}\n/**\n * Convert symbol array into normalized array\n *\n * @param {string | (string | string[])[]} symbol symbol input\n * @return {string[][]} normolized symbol array\n */\n\nfunction normalizeSymbolArray(symbol) {\n if (!symbol || symbol.length === 0) {\n return [['rect']];\n }\n\n if (typeof symbol === 'string') {\n return [[symbol]];\n }\n\n var isAllString = true;\n\n for (var i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] !== 'string') {\n isAllString = false;\n break;\n }\n }\n\n if (isAllString) {\n return normalizeSymbolArray([symbol]);\n }\n\n var result = [];\n\n for (var i = 0; i < symbol.length; ++i) {\n if (typeof symbol[i] === 'string') {\n result.push([symbol[i]]);\n } else {\n result.push(symbol[i]);\n }\n }\n\n return result;\n}\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayX} dash dash input\n * @return {number[][]} normolized dash array\n */\n\n\nfunction normalizeDashArrayX(dash) {\n if (!dash || dash.length === 0) {\n return [[0, 0]];\n }\n\n if (typeof dash === 'number') {\n var dashValue = Math.ceil(dash);\n return [[dashValue, dashValue]];\n }\n /**\n * [20, 5] should be normalized into [[20, 5]],\n * while [20, [5, 10]] should be normalized into [[20, 20], [5, 10]]\n */\n\n\n var isAllNumber = true;\n\n for (var i = 0; i < dash.length; ++i) {\n if (typeof dash[i] !== 'number') {\n isAllNumber = false;\n break;\n }\n }\n\n if (isAllNumber) {\n return normalizeDashArrayX([dash]);\n }\n\n var result = [];\n\n for (var i = 0; i < dash.length; ++i) {\n if (typeof dash[i] === 'number') {\n var dashValue = Math.ceil(dash[i]);\n result.push([dashValue, dashValue]);\n } else {\n var dashValue = map(dash[i], function (n) {\n return Math.ceil(n);\n });\n\n if (dashValue.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // so normalize it to be [4, 2, 1, 4, 2, 1]\n result.push(dashValue.concat(dashValue));\n } else {\n result.push(dashValue);\n }\n }\n }\n\n return result;\n}\n/**\n * Convert dash input into dashArray\n *\n * @param {DecalDashArrayY} dash dash input\n * @return {number[]} normolized dash array\n */\n\n\nfunction normalizeDashArrayY(dash) {\n if (!dash || typeof dash === 'object' && dash.length === 0) {\n return [0, 0];\n }\n\n if (typeof dash === 'number') {\n var dashValue_1 = Math.ceil(dash);\n return [dashValue_1, dashValue_1];\n }\n\n var dashValue = map(dash, function (n) {\n return Math.ceil(n);\n });\n return dash.length % 2 ? dashValue.concat(dashValue) : dashValue;\n}\n/**\n * Get block length of each line. A block is the length of dash line and space.\n * For example, a line with [4, 1] has a dash line of 4 and a space of 1 after\n * that, so the block length of this line is 5.\n *\n * @param {number[][]} dash dash arrary of X or Y\n * @return {number[]} block length of each line\n */\n\n\nfunction getLineBlockLengthX(dash) {\n return map(dash, function (line) {\n return getLineBlockLengthY(line);\n });\n}\n\nfunction getLineBlockLengthY(dash) {\n var blockLength = 0;\n\n for (var i = 0; i < dash.length; ++i) {\n blockLength += dash[i];\n }\n\n if (dash.length % 2 === 1) {\n // [4, 2, 1] means |---- - -- |---- - -- |\n // So total length is (4 + 2 + 1) * 2\n return blockLength * 2;\n }\n\n return blockLength;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createOrUpdatePatternFromDecal } from '../util/decal';\nexport default function decalVisual(ecModel, api) {\n ecModel.eachRawSeries(function (seriesModel) {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n\n if (data.hasItemVisual()) {\n data.each(function (idx) {\n var decal = data.getItemVisual(idx, 'decal');\n\n if (decal) {\n var itemStyle = data.ensureUniqueItemVisual(idx, 'style');\n itemStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n }\n\n var decal = data.getVisual('decal');\n\n if (decal) {\n var style = data.getVisual('style');\n style.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n });\n}","import { isString } from '../core/util';\nexport function parseXML(svg) {\n if (isString(svg)) {\n var parser = new DOMParser();\n svg = parser.parseFromString(svg, 'text/xml');\n }\n var svgNode = svg;\n if (svgNode.nodeType === 9) {\n svgNode = svgNode.firstChild;\n }\n while (svgNode.nodeName.toLowerCase() !== 'svg' || svgNode.nodeType !== 1) {\n svgNode = svgNode.nextSibling;\n }\n return svgNode;\n}\n","import Group from '../graphic/Group';\nimport ZRImage from '../graphic/Image';\nimport Circle from '../graphic/shape/Circle';\nimport Rect from '../graphic/shape/Rect';\nimport Ellipse from '../graphic/shape/Ellipse';\nimport Line from '../graphic/shape/Line';\nimport Polygon from '../graphic/shape/Polygon';\nimport Polyline from '../graphic/shape/Polyline';\nimport * as matrix from '../core/matrix';\nimport { createFromString } from './path';\nimport { defaults, trim, each, map, keys, hasOwn } from '../core/util';\nimport LinearGradient from '../graphic/LinearGradient';\nimport RadialGradient from '../graphic/RadialGradient';\nimport TSpan from '../graphic/TSpan';\nimport { parseXML } from './parseXML';\n;\nvar nodeParsers;\nvar INHERITABLE_STYLE_ATTRIBUTES_MAP = {\n 'fill': 'fill',\n 'stroke': 'stroke',\n 'stroke-width': 'lineWidth',\n 'opacity': 'opacity',\n 'fill-opacity': 'fillOpacity',\n 'stroke-opacity': 'strokeOpacity',\n 'stroke-dasharray': 'lineDash',\n 'stroke-dashoffset': 'lineDashOffset',\n 'stroke-linecap': 'lineCap',\n 'stroke-linejoin': 'lineJoin',\n 'stroke-miterlimit': 'miterLimit',\n 'font-family': 'fontFamily',\n 'font-size': 'fontSize',\n 'font-style': 'fontStyle',\n 'font-weight': 'fontWeight',\n 'text-anchor': 'textAlign',\n 'visibility': 'visibility',\n 'display': 'display'\n};\nvar INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS = keys(INHERITABLE_STYLE_ATTRIBUTES_MAP);\nvar SELF_STYLE_ATTRIBUTES_MAP = {\n 'alignment-baseline': 'textBaseline',\n 'stop-color': 'stopColor'\n};\nvar SELF_STYLE_ATTRIBUTES_MAP_KEYS = keys(SELF_STYLE_ATTRIBUTES_MAP);\nvar SVGParser = (function () {\n function SVGParser() {\n this._defs = {};\n this._root = null;\n }\n SVGParser.prototype.parse = function (xml, opt) {\n opt = opt || {};\n var svg = parseXML(xml);\n if (!svg) {\n throw new Error('Illegal svg');\n }\n this._defsUsePending = [];\n var root = new Group();\n this._root = root;\n var named = [];\n var viewBox = svg.getAttribute('viewBox') || '';\n var width = parseFloat((svg.getAttribute('width') || opt.width));\n var height = parseFloat((svg.getAttribute('height') || opt.height));\n isNaN(width) && (width = null);\n isNaN(height) && (height = null);\n parseAttributes(svg, root, null, true, false);\n var child = svg.firstChild;\n while (child) {\n this._parseNode(child, root, named, null, false, false);\n child = child.nextSibling;\n }\n applyDefs(this._defs, this._defsUsePending);\n this._defsUsePending = [];\n var viewBoxRect;\n var viewBoxTransform;\n if (viewBox) {\n var viewBoxArr = splitNumberSequence(viewBox);\n if (viewBoxArr.length >= 4) {\n viewBoxRect = {\n x: parseFloat((viewBoxArr[0] || 0)),\n y: parseFloat((viewBoxArr[1] || 0)),\n width: parseFloat(viewBoxArr[2]),\n height: parseFloat(viewBoxArr[3])\n };\n }\n }\n if (viewBoxRect && width != null && height != null) {\n viewBoxTransform = makeViewBoxTransform(viewBoxRect, { x: 0, y: 0, width: width, height: height });\n if (!opt.ignoreViewBox) {\n var elRoot = root;\n root = new Group();\n root.add(elRoot);\n elRoot.scaleX = elRoot.scaleY = viewBoxTransform.scale;\n elRoot.x = viewBoxTransform.x;\n elRoot.y = viewBoxTransform.y;\n }\n }\n if (!opt.ignoreRootClip && width != null && height != null) {\n root.setClipPath(new Rect({\n shape: { x: 0, y: 0, width: width, height: height }\n }));\n }\n return {\n root: root,\n width: width,\n height: height,\n viewBoxRect: viewBoxRect,\n viewBoxTransform: viewBoxTransform,\n named: named\n };\n };\n SVGParser.prototype._parseNode = function (xmlNode, parentGroup, named, namedFrom, isInDefs, isInText) {\n var nodeName = xmlNode.nodeName.toLowerCase();\n var el;\n var namedFromForSub = namedFrom;\n if (nodeName === 'defs') {\n isInDefs = true;\n }\n if (nodeName === 'text') {\n isInText = true;\n }\n if (nodeName === 'defs' || nodeName === 'switch') {\n el = parentGroup;\n }\n else {\n if (!isInDefs) {\n var parser_1 = nodeParsers[nodeName];\n if (parser_1 && hasOwn(nodeParsers, nodeName)) {\n el = parser_1.call(this, xmlNode, parentGroup);\n var nameAttr = xmlNode.getAttribute('name');\n if (nameAttr) {\n var newNamed = {\n name: nameAttr,\n namedFrom: null,\n svgNodeTagLower: nodeName,\n el: el\n };\n named.push(newNamed);\n if (nodeName === 'g') {\n namedFromForSub = newNamed;\n }\n }\n else if (namedFrom) {\n named.push({\n name: namedFrom.name,\n namedFrom: namedFrom,\n svgNodeTagLower: nodeName,\n el: el\n });\n }\n parentGroup.add(el);\n }\n }\n var parser = paintServerParsers[nodeName];\n if (parser && hasOwn(paintServerParsers, nodeName)) {\n var def = parser.call(this, xmlNode);\n var id = xmlNode.getAttribute('id');\n if (id) {\n this._defs[id] = def;\n }\n }\n }\n if (el && el.isGroup) {\n var child = xmlNode.firstChild;\n while (child) {\n if (child.nodeType === 1) {\n this._parseNode(child, el, named, namedFromForSub, isInDefs, isInText);\n }\n else if (child.nodeType === 3 && isInText) {\n this._parseText(child, el);\n }\n child = child.nextSibling;\n }\n }\n };\n SVGParser.prototype._parseText = function (xmlNode, parentGroup) {\n var text = new TSpan({\n style: {\n text: xmlNode.textContent\n },\n silent: true,\n x: this._textX || 0,\n y: this._textY || 0\n });\n inheritStyle(parentGroup, text);\n parseAttributes(xmlNode, text, this._defsUsePending, false, false);\n applyTextAlignment(text, parentGroup);\n var textStyle = text.style;\n var fontSize = textStyle.fontSize;\n if (fontSize && fontSize < 9) {\n textStyle.fontSize = 9;\n text.scaleX *= fontSize / 9;\n text.scaleY *= fontSize / 9;\n }\n var font = (textStyle.fontSize || textStyle.fontFamily) && [\n textStyle.fontStyle,\n textStyle.fontWeight,\n (textStyle.fontSize || 12) + 'px',\n textStyle.fontFamily || 'sans-serif'\n ].join(' ');\n textStyle.font = font;\n var rect = text.getBoundingRect();\n this._textX += rect.width;\n parentGroup.add(text);\n return text;\n };\n SVGParser.internalField = (function () {\n nodeParsers = {\n 'g': function (xmlNode, parentGroup) {\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, false);\n return g;\n },\n 'rect': function (xmlNode, parentGroup) {\n var rect = new Rect();\n inheritStyle(parentGroup, rect);\n parseAttributes(xmlNode, rect, this._defsUsePending, false, false);\n rect.setShape({\n x: parseFloat(xmlNode.getAttribute('x') || '0'),\n y: parseFloat(xmlNode.getAttribute('y') || '0'),\n width: parseFloat(xmlNode.getAttribute('width') || '0'),\n height: parseFloat(xmlNode.getAttribute('height') || '0')\n });\n rect.silent = true;\n return rect;\n },\n 'circle': function (xmlNode, parentGroup) {\n var circle = new Circle();\n inheritStyle(parentGroup, circle);\n parseAttributes(xmlNode, circle, this._defsUsePending, false, false);\n circle.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n r: parseFloat(xmlNode.getAttribute('r') || '0')\n });\n circle.silent = true;\n return circle;\n },\n 'line': function (xmlNode, parentGroup) {\n var line = new Line();\n inheritStyle(parentGroup, line);\n parseAttributes(xmlNode, line, this._defsUsePending, false, false);\n line.setShape({\n x1: parseFloat(xmlNode.getAttribute('x1') || '0'),\n y1: parseFloat(xmlNode.getAttribute('y1') || '0'),\n x2: parseFloat(xmlNode.getAttribute('x2') || '0'),\n y2: parseFloat(xmlNode.getAttribute('y2') || '0')\n });\n line.silent = true;\n return line;\n },\n 'ellipse': function (xmlNode, parentGroup) {\n var ellipse = new Ellipse();\n inheritStyle(parentGroup, ellipse);\n parseAttributes(xmlNode, ellipse, this._defsUsePending, false, false);\n ellipse.setShape({\n cx: parseFloat(xmlNode.getAttribute('cx') || '0'),\n cy: parseFloat(xmlNode.getAttribute('cy') || '0'),\n rx: parseFloat(xmlNode.getAttribute('rx') || '0'),\n ry: parseFloat(xmlNode.getAttribute('ry') || '0')\n });\n ellipse.silent = true;\n return ellipse;\n },\n 'polygon': function (xmlNode, parentGroup) {\n var pointsStr = xmlNode.getAttribute('points');\n var pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n var polygon = new Polygon({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n inheritStyle(parentGroup, polygon);\n parseAttributes(xmlNode, polygon, this._defsUsePending, false, false);\n return polygon;\n },\n 'polyline': function (xmlNode, parentGroup) {\n var pointsStr = xmlNode.getAttribute('points');\n var pointsArr;\n if (pointsStr) {\n pointsArr = parsePoints(pointsStr);\n }\n var polyline = new Polyline({\n shape: {\n points: pointsArr || []\n },\n silent: true\n });\n inheritStyle(parentGroup, polyline);\n parseAttributes(xmlNode, polyline, this._defsUsePending, false, false);\n return polyline;\n },\n 'image': function (xmlNode, parentGroup) {\n var img = new ZRImage();\n inheritStyle(parentGroup, img);\n parseAttributes(xmlNode, img, this._defsUsePending, false, false);\n img.setStyle({\n image: xmlNode.getAttribute('xlink:href'),\n x: +xmlNode.getAttribute('x'),\n y: +xmlNode.getAttribute('y'),\n width: +xmlNode.getAttribute('width'),\n height: +xmlNode.getAttribute('height')\n });\n img.silent = true;\n return img;\n },\n 'text': function (xmlNode, parentGroup) {\n var x = xmlNode.getAttribute('x') || '0';\n var y = xmlNode.getAttribute('y') || '0';\n var dx = xmlNode.getAttribute('dx') || '0';\n var dy = xmlNode.getAttribute('dy') || '0';\n this._textX = parseFloat(x) + parseFloat(dx);\n this._textY = parseFloat(y) + parseFloat(dy);\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n return g;\n },\n 'tspan': function (xmlNode, parentGroup) {\n var x = xmlNode.getAttribute('x');\n var y = xmlNode.getAttribute('y');\n if (x != null) {\n this._textX = parseFloat(x);\n }\n if (y != null) {\n this._textY = parseFloat(y);\n }\n var dx = xmlNode.getAttribute('dx') || '0';\n var dy = xmlNode.getAttribute('dy') || '0';\n var g = new Group();\n inheritStyle(parentGroup, g);\n parseAttributes(xmlNode, g, this._defsUsePending, false, true);\n this._textX += parseFloat(dx);\n this._textY += parseFloat(dy);\n return g;\n },\n 'path': function (xmlNode, parentGroup) {\n var d = xmlNode.getAttribute('d') || '';\n var path = createFromString(d);\n inheritStyle(parentGroup, path);\n parseAttributes(xmlNode, path, this._defsUsePending, false, false);\n path.silent = true;\n return path;\n }\n };\n })();\n return SVGParser;\n}());\nvar paintServerParsers = {\n 'lineargradient': function (xmlNode) {\n var x1 = parseInt(xmlNode.getAttribute('x1') || '0', 10);\n var y1 = parseInt(xmlNode.getAttribute('y1') || '0', 10);\n var x2 = parseInt(xmlNode.getAttribute('x2') || '10', 10);\n var y2 = parseInt(xmlNode.getAttribute('y2') || '0', 10);\n var gradient = new LinearGradient(x1, y1, x2, y2);\n parsePaintServerUnit(xmlNode, gradient);\n parseGradientColorStops(xmlNode, gradient);\n return gradient;\n },\n 'radialgradient': function (xmlNode) {\n var cx = parseInt(xmlNode.getAttribute('cx') || '0', 10);\n var cy = parseInt(xmlNode.getAttribute('cy') || '0', 10);\n var r = parseInt(xmlNode.getAttribute('r') || '0', 10);\n var gradient = new RadialGradient(cx, cy, r);\n parsePaintServerUnit(xmlNode, gradient);\n parseGradientColorStops(xmlNode, gradient);\n return gradient;\n }\n};\nfunction parsePaintServerUnit(xmlNode, gradient) {\n var gradientUnits = xmlNode.getAttribute('gradientUnits');\n if (gradientUnits === 'userSpaceOnUse') {\n gradient.global = true;\n }\n}\nfunction parseGradientColorStops(xmlNode, gradient) {\n var stop = xmlNode.firstChild;\n while (stop) {\n if (stop.nodeType === 1\n && stop.nodeName.toLocaleLowerCase() === 'stop') {\n var offsetStr = stop.getAttribute('offset');\n var offset = void 0;\n if (offsetStr && offsetStr.indexOf('%') > 0) {\n offset = parseInt(offsetStr, 10) / 100;\n }\n else if (offsetStr) {\n offset = parseFloat(offsetStr);\n }\n else {\n offset = 0;\n }\n var styleVals = {};\n parseInlineStyle(stop, styleVals, styleVals);\n var stopColor = styleVals.stopColor\n || stop.getAttribute('stop-color')\n || '#000000';\n gradient.colorStops.push({\n offset: offset,\n color: stopColor\n });\n }\n stop = stop.nextSibling;\n }\n}\nfunction inheritStyle(parent, child) {\n if (parent && parent.__inheritedStyle) {\n if (!child.__inheritedStyle) {\n child.__inheritedStyle = {};\n }\n defaults(child.__inheritedStyle, parent.__inheritedStyle);\n }\n}\nfunction parsePoints(pointsString) {\n var list = splitNumberSequence(pointsString);\n var points = [];\n for (var i = 0; i < list.length; i += 2) {\n var x = parseFloat(list[i]);\n var y = parseFloat(list[i + 1]);\n points.push([x, y]);\n }\n return points;\n}\nfunction parseAttributes(xmlNode, el, defsUsePending, onlyInlineStyle, isTextGroup) {\n var disp = el;\n var inheritedStyle = disp.__inheritedStyle = disp.__inheritedStyle || {};\n var selfStyle = {};\n if (xmlNode.nodeType === 1) {\n parseTransformAttribute(xmlNode, el);\n parseInlineStyle(xmlNode, inheritedStyle, selfStyle);\n if (!onlyInlineStyle) {\n parseAttributeStyle(xmlNode, inheritedStyle, selfStyle);\n }\n }\n disp.style = disp.style || {};\n if (inheritedStyle.fill != null) {\n disp.style.fill = getFillStrokeStyle(disp, 'fill', inheritedStyle.fill, defsUsePending);\n }\n if (inheritedStyle.stroke != null) {\n disp.style.stroke = getFillStrokeStyle(disp, 'stroke', inheritedStyle.stroke, defsUsePending);\n }\n each([\n 'lineWidth', 'opacity', 'fillOpacity', 'strokeOpacity', 'miterLimit', 'fontSize'\n ], function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = parseFloat(inheritedStyle[propName]);\n }\n });\n each([\n 'lineDashOffset', 'lineCap', 'lineJoin', 'fontWeight', 'fontFamily', 'fontStyle', 'textAlign'\n ], function (propName) {\n if (inheritedStyle[propName] != null) {\n disp.style[propName] = inheritedStyle[propName];\n }\n });\n if (isTextGroup) {\n disp.__selfStyle = selfStyle;\n }\n if (inheritedStyle.lineDash) {\n disp.style.lineDash = map(splitNumberSequence(inheritedStyle.lineDash), function (str) {\n return parseFloat(str);\n });\n }\n if (inheritedStyle.visibility === 'hidden' || inheritedStyle.visibility === 'collapse') {\n disp.invisible = true;\n }\n if (inheritedStyle.display === 'none') {\n disp.ignore = true;\n }\n}\nfunction applyTextAlignment(text, parentGroup) {\n var parentSelfStyle = parentGroup.__selfStyle;\n if (parentSelfStyle) {\n var textBaseline = parentSelfStyle.textBaseline;\n var zrTextBaseline = textBaseline;\n if (!textBaseline || textBaseline === 'auto') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'baseline') {\n zrTextBaseline = 'alphabetic';\n }\n else if (textBaseline === 'before-edge' || textBaseline === 'text-before-edge') {\n zrTextBaseline = 'top';\n }\n else if (textBaseline === 'after-edge' || textBaseline === 'text-after-edge') {\n zrTextBaseline = 'bottom';\n }\n else if (textBaseline === 'central' || textBaseline === 'mathematical') {\n zrTextBaseline = 'middle';\n }\n text.style.textBaseline = zrTextBaseline;\n }\n var parentInheritedStyle = parentGroup.__inheritedStyle;\n if (parentInheritedStyle) {\n var textAlign = parentInheritedStyle.textAlign;\n var zrTextAlign = textAlign;\n if (textAlign) {\n if (textAlign === 'middle') {\n zrTextAlign = 'center';\n }\n text.style.textAlign = zrTextAlign;\n }\n }\n}\nvar urlRegex = /^url\\(\\s*#(.*?)\\)/;\nfunction getFillStrokeStyle(el, method, str, defsUsePending) {\n var urlMatch = str && str.match(urlRegex);\n if (urlMatch) {\n var url = trim(urlMatch[1]);\n defsUsePending.push([el, method, url]);\n return;\n }\n if (str === 'none') {\n str = null;\n }\n return str;\n}\nfunction applyDefs(defs, defsUsePending) {\n for (var i = 0; i < defsUsePending.length; i++) {\n var item = defsUsePending[i];\n item[0].style[item[1]] = defs[item[2]];\n }\n}\nvar numberReg = /-?([0-9]*\\.)?[0-9]+([eE]-?[0-9]+)?/g;\nfunction splitNumberSequence(rawStr) {\n return rawStr.match(numberReg) || [];\n}\nvar transformRegex = /(translate|scale|rotate|skewX|skewY|matrix)\\(([\\-\\s0-9\\.eE,]*)\\)/g;\nvar DEGREE_TO_ANGLE = Math.PI / 180;\nfunction parseTransformAttribute(xmlNode, node) {\n var transform = xmlNode.getAttribute('transform');\n if (transform) {\n transform = transform.replace(/,/g, ' ');\n var transformOps_1 = [];\n var mt = null;\n transform.replace(transformRegex, function (str, type, value) {\n transformOps_1.push(type, value);\n return '';\n });\n for (var i = transformOps_1.length - 1; i > 0; i -= 2) {\n var value = transformOps_1[i];\n var type = transformOps_1[i - 1];\n var valueArr = splitNumberSequence(value);\n mt = mt || matrix.create();\n switch (type) {\n case 'translate':\n matrix.translate(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || '0')]);\n break;\n case 'scale':\n matrix.scale(mt, mt, [parseFloat(valueArr[0]), parseFloat(valueArr[1] || valueArr[0])]);\n break;\n case 'rotate':\n matrix.rotate(mt, mt, -parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n break;\n case 'skewX':\n var sx = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, 0, sx, 1, 0, 0], mt);\n break;\n case 'skewY':\n var sy = Math.tan(parseFloat(valueArr[0]) * DEGREE_TO_ANGLE);\n matrix.mul(mt, [1, sy, 0, 1, 0, 0], mt);\n break;\n case 'matrix':\n mt[0] = parseFloat(valueArr[0]);\n mt[1] = parseFloat(valueArr[1]);\n mt[2] = parseFloat(valueArr[2]);\n mt[3] = parseFloat(valueArr[3]);\n mt[4] = parseFloat(valueArr[4]);\n mt[5] = parseFloat(valueArr[5]);\n break;\n }\n }\n node.setLocalTransform(mt);\n }\n}\nvar styleRegex = /([^\\s:;]+)\\s*:\\s*([^:;]+)/g;\nfunction parseInlineStyle(xmlNode, inheritableStyleResult, selfStyleResult) {\n var style = xmlNode.getAttribute('style');\n if (!style) {\n return;\n }\n styleRegex.lastIndex = 0;\n var styleRegResult;\n while ((styleRegResult = styleRegex.exec(style)) != null) {\n var svgStlAttr = styleRegResult[1];\n var zrInheritableStlAttr = hasOwn(INHERITABLE_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? INHERITABLE_STYLE_ATTRIBUTES_MAP[svgStlAttr]\n : null;\n if (zrInheritableStlAttr) {\n inheritableStyleResult[zrInheritableStlAttr] = styleRegResult[2];\n }\n var zrSelfStlAttr = hasOwn(SELF_STYLE_ATTRIBUTES_MAP, svgStlAttr)\n ? SELF_STYLE_ATTRIBUTES_MAP[svgStlAttr]\n : null;\n if (zrSelfStlAttr) {\n selfStyleResult[zrSelfStlAttr] = styleRegResult[2];\n }\n }\n}\nfunction parseAttributeStyle(xmlNode, inheritableStyleResult, selfStyleResult) {\n for (var i = 0; i < INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n var svgAttrName = INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[i];\n var attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n inheritableStyleResult[INHERITABLE_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n for (var i = 0; i < SELF_STYLE_ATTRIBUTES_MAP_KEYS.length; i++) {\n var svgAttrName = SELF_STYLE_ATTRIBUTES_MAP_KEYS[i];\n var attrValue = xmlNode.getAttribute(svgAttrName);\n if (attrValue != null) {\n selfStyleResult[SELF_STYLE_ATTRIBUTES_MAP[svgAttrName]] = attrValue;\n }\n }\n}\nexport function makeViewBoxTransform(viewBoxRect, boundingRect) {\n var scaleX = boundingRect.width / viewBoxRect.width;\n var scaleY = boundingRect.height / viewBoxRect.height;\n var scale = Math.min(scaleX, scaleY);\n return {\n scale: scale,\n x: -(viewBoxRect.x + viewBoxRect.width / 2) * scale + (boundingRect.x + boundingRect.width / 2),\n y: -(viewBoxRect.y + viewBoxRect.height / 2) * scale + (boundingRect.y + boundingRect.height / 2)\n };\n}\nexport function parseSVG(xml, opt) {\n var parser = new SVGParser();\n return parser.parse(xml, opt);\n}\nexport { parseXML };\n","import windingLine from './windingLine';\nvar EPSILON = 1e-8;\nfunction isAroundEqual(a, b) {\n return Math.abs(a - b) < EPSILON;\n}\nexport function contain(points, x, y) {\n var w = 0;\n var p = points[0];\n if (!p) {\n return false;\n }\n for (var i = 1; i < points.length; i++) {\n var p2 = points[i];\n w += windingLine(p[0], p[1], p2[0], p2[1], x, y);\n p = p2;\n }\n var p0 = points[0];\n if (!isAroundEqual(p[0], p0[0]) || !isAroundEqual(p[1], p0[1])) {\n w += windingLine(p[0], p[1], p0[0], p0[1], x, y);\n }\n return w !== 0;\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as polygonContain from 'zrender/lib/contain/polygon';\nimport * as matrix from 'zrender/lib/core/matrix';\nvar TMP_TRANSFORM = [];\n\nvar Region =\n/** @class */\nfunction () {\n function Region(name) {\n this.name = name;\n }\n /**\n * Get center point in data unit. That is,\n * for GeoJSONRegion, the unit is lat/lng,\n * for GeoSVGRegion, the unit is SVG local coord.\n */\n\n\n Region.prototype.getCenter = function () {\n return;\n };\n\n return Region;\n}();\n\nexport { Region };\n\nvar GeoJSONRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoJSONRegion, _super);\n\n function GeoJSONRegion(name, geometries, cp) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoJSON';\n _this.geometries = geometries;\n\n if (!cp) {\n var rect = _this.getBoundingRect();\n\n cp = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n } else {\n cp = [cp[0], cp[1]];\n }\n\n _this._center = cp;\n return _this;\n }\n\n GeoJSONRegion.prototype.getBoundingRect = function () {\n var rect = this._rect;\n\n if (rect) {\n return rect;\n }\n\n var MAX_NUMBER = Number.MAX_VALUE;\n var min = [MAX_NUMBER, MAX_NUMBER];\n var max = [-MAX_NUMBER, -MAX_NUMBER];\n var min2 = [];\n var max2 = [];\n var geometries = this.geometries;\n var i = 0;\n\n for (; i < geometries.length; i++) {\n // Only support polygon\n if (geometries[i].type !== 'polygon') {\n continue;\n } // Doesn't consider hole\n\n\n var exterior = geometries[i].exterior;\n bbox.fromPoints(exterior, min2, max2);\n vec2.min(min, min, min2);\n vec2.max(max, max, max2);\n } // No data\n\n\n if (i === 0) {\n min[0] = min[1] = max[0] = max[1] = 0;\n }\n\n return this._rect = new BoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n };\n\n GeoJSONRegion.prototype.contain = function (coord) {\n var rect = this.getBoundingRect();\n var geometries = this.geometries;\n\n if (!rect.contain(coord[0], coord[1])) {\n return false;\n }\n\n loopGeo: for (var i = 0, len = geometries.length; i < len; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n\n var exterior = geometries[i].exterior;\n var interiors = geometries[i].interiors;\n\n if (polygonContain.contain(exterior, coord[0], coord[1])) {\n // Not in the region if point is in the hole.\n for (var k = 0; k < (interiors ? interiors.length : 0); k++) {\n if (polygonContain.contain(interiors[k], coord[0], coord[1])) {\n continue loopGeo;\n }\n }\n\n return true;\n }\n }\n\n return false;\n };\n\n GeoJSONRegion.prototype.transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var aspect = rect.width / rect.height;\n\n if (!width) {\n width = aspect * height;\n } else if (!height) {\n height = width / aspect;\n }\n\n var target = new BoundingRect(x, y, width, height);\n var transform = rect.calculateTransform(target);\n var geometries = this.geometries;\n\n for (var i = 0; i < geometries.length; i++) {\n // Only support polygon.\n if (geometries[i].type !== 'polygon') {\n continue;\n }\n\n var exterior = geometries[i].exterior;\n var interiors = geometries[i].interiors;\n\n for (var p = 0; p < exterior.length; p++) {\n vec2.applyTransform(exterior[p], exterior[p], transform);\n }\n\n for (var h = 0; h < (interiors ? interiors.length : 0); h++) {\n for (var p = 0; p < interiors[h].length; p++) {\n vec2.applyTransform(interiors[h][p], interiors[h][p], transform);\n }\n }\n }\n\n rect = this._rect;\n rect.copy(target); // Update center\n\n this._center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n };\n\n GeoJSONRegion.prototype.cloneShallow = function (name) {\n name == null && (name = this.name);\n var newRegion = new GeoJSONRegion(name, this.geometries, this._center);\n newRegion._rect = this._rect;\n newRegion.transformTo = null; // Simply avoid to be called.\n\n return newRegion;\n };\n\n GeoJSONRegion.prototype.getCenter = function () {\n return this._center;\n };\n\n GeoJSONRegion.prototype.setCenter = function (center) {\n this._center = center;\n };\n\n return GeoJSONRegion;\n}(Region);\n\nexport { GeoJSONRegion };\n\nvar GeoSVGRegion =\n/** @class */\nfunction (_super) {\n __extends(GeoSVGRegion, _super);\n\n function GeoSVGRegion(name, elOnlyForCalculate) {\n var _this = _super.call(this, name) || this;\n\n _this.type = 'geoSVG';\n _this._elOnlyForCalculate = elOnlyForCalculate;\n return _this;\n }\n\n GeoSVGRegion.prototype.getCenter = function () {\n var center = this._center;\n\n if (!center) {\n // In most cases there are no need to calculate this center.\n // So calculate only when called.\n center = this._center = this._calculateCenter();\n }\n\n return center;\n };\n\n GeoSVGRegion.prototype._calculateCenter = function () {\n var el = this._elOnlyForCalculate;\n var rect = el.getBoundingRect();\n var center = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n var mat = matrix.identity(TMP_TRANSFORM);\n var target = el;\n\n while (target && !target.isGeoSVGGraphicRoot) {\n matrix.mul(mat, target.getLocalTransform(), mat);\n target = target.parent;\n }\n\n matrix.invert(mat, mat);\n vec2.applyTransform(center, center, mat);\n return center;\n };\n\n return GeoSVGRegion;\n}(Region);\n\nexport { GeoSVGRegion };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseSVG, makeViewBoxTransform } from 'zrender/lib/tool/parseSVG';\nimport Group from 'zrender/lib/graphic/Group';\nimport Rect from 'zrender/lib/graphic/shape/Rect';\nimport { assert, createHashMap, each } from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parseXML } from 'zrender/lib/tool/parseXML';\nimport { GeoSVGRegion } from './Region';\n/**\n * \"region available\" means that: enable users to set attribute `name=\"xxx\"` on those tags\n * to make it be a region.\n * 1. region styles and its label styles can be defined in echarts opton:\n * ```js\n * geo: {\n * regions: [{\n * name: 'xxx',\n * itemStyle: { ... },\n * label: { ... }\n * }, {\n * ...\n * },\n * ...]\n * };\n * ```\n * 2. name can be duplicated in different SVG tag. All of the tags with the same name share\n * a region option. For exampel if there are two representing two lung lobes. They have\n * no common parents but both of them need to display label \"lung\" inside.\n */\n\nvar REGION_AVAILABLE_SVG_TAG_MAP = createHashMap(['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path', // are also enabled becuase some SVG might paint text itself,\n// but still need to trigger events or tooltip.\n'text', 'tspan', // is also enabled because this case: if multiple tags share one name\n// and need label displayed, every tags will display the name, which is not\n// expected. So we can put them into a . Thereby only one label\n// displayed and located based on the bounding rect of the .\n'g']);\n\nvar GeoSVGResource =\n/** @class */\nfunction () {\n function GeoSVGResource(mapName, svg) {\n this.type = 'geoSVG'; // All used graphics. key: hostKey, value: root\n\n this._usedGraphicMap = createHashMap(); // All unused graphics.\n\n this._freedGraphics = [];\n this._mapName = mapName; // Only perform parse to XML object here, which might be time\n // consiming for large SVG.\n // Although convert XML to zrender element is also time consiming,\n // if we do it here, the clone of zrender elements has to be\n // required. So we do it once for each geo instance, util real\n // performance issues call for optimizing it.\n\n this._parsedXML = parseXML(svg);\n }\n\n GeoSVGResource.prototype.load = function ()\n /* nameMap: NameMap */\n {\n // In the \"load\" stage, graphic need to be built to\n // get boundingRect for geo coordinate system.\n var firstGraphic = this._firstGraphic; // Create the return data structure only when first graphic created.\n // Because they will be used in geo coordinate system update stage,\n // and `regions` will be mounted at `geo` coordinate system,\n // in which there is no \"view\" info, so that it should better not to\n // make references to graphic elements.\n\n if (!firstGraphic) {\n firstGraphic = this._firstGraphic = this._buildGraphic(this._parsedXML);\n\n this._freedGraphics.push(firstGraphic);\n\n this._boundingRect = this._firstGraphic.boundingRect.clone(); // PENDING: `nameMap` will not be supported until some real requirement come.\n // if (nameMap) {\n // named = applyNameMap(named, nameMap);\n // }\n\n var _a = createRegions(firstGraphic.named),\n regions = _a.regions,\n regionsMap = _a.regionsMap;\n\n this._regions = regions;\n this._regionsMap = regionsMap;\n }\n\n return {\n boundingRect: this._boundingRect,\n regions: this._regions,\n regionsMap: this._regionsMap\n };\n };\n\n GeoSVGResource.prototype._buildGraphic = function (svgXML) {\n var result;\n var rootFromParse;\n\n try {\n result = svgXML && parseSVG(svgXML, {\n ignoreViewBox: true,\n ignoreRootClip: true\n }) || {};\n rootFromParse = result.root;\n assert(rootFromParse != null);\n } catch (e) {\n throw new Error('Invalid svg format\\n' + e.message);\n } // Note: we keep the covenant that the root has no transform. So always add an extra root.\n\n\n var root = new Group();\n root.add(rootFromParse);\n root.isGeoSVGGraphicRoot = true; // [THE_RULE_OF_VIEWPORT_AND_VIEWBOX]\n //\n // Consider: ``\n // - the `width/height` we call it `svgWidth/svgHeight` for short.\n // - `(0, 0, svgWidth, svgHeight)` defines the viewport of the SVG, or say,\n // \"viewport boundingRect\", or `boundingRect` for short.\n // - `viewBox` defines the transform from the real content ot the viewport.\n // `viewBox` has the same unit as the content of SVG.\n // If `viewBox` exists, a transform is defined, so the unit of `svgWidth/svgHeight` become\n // different from the content of SVG. Otherwise, they are the same.\n //\n // If both `svgWidth/svgHeight/viewBox` are specified in a SVG file, the transform rule will be:\n // 0. `boundingRect` is `(0, 0, svgWidth, svgHeight)`. Set it to Geo['_rect'] (View['_rect']).\n // 1. Make a transform from `viewBox` to `boundingRect`.\n // Note: only suport `preserveAspectRatio 'xMidYMid'` here. That is, this transform will preserve\n // the aspect ratio.\n // 2. Make a transform from boundingRect to Geo['_viewRect'] (View['_viewRect'])\n // (`Geo`/`View` will do this job).\n // Note: this transform might not preserve aspect radio, which depending on how users specify\n // viewRect in echarts option (e.g., `geo.left/top/width/height` will not preserve aspect ratio,\n // but `geo.layoutCenter/layoutSize` will preserve aspect ratio).\n //\n // If `svgWidth/svgHeight` not specified, we use `viewBox` as the `boundingRect` to make the SVG\n // layout look good.\n //\n // If neither `svgWidth/svgHeight` nor `viewBox` are not specified, we calculate the boundingRect\n // of the SVG content and use them to make SVG layout look good.\n\n var svgWidth = result.width;\n var svgHeight = result.height;\n var viewBoxRect = result.viewBoxRect;\n var boundingRect = this._boundingRect;\n\n if (!boundingRect) {\n var bRectX = void 0;\n var bRectY = void 0;\n var bRectWidth = void 0;\n var bRectHeight = void 0;\n\n if (svgWidth != null) {\n bRectX = 0;\n bRectWidth = svgWidth;\n } else if (viewBoxRect) {\n bRectX = viewBoxRect.x;\n bRectWidth = viewBoxRect.width;\n }\n\n if (svgHeight != null) {\n bRectY = 0;\n bRectHeight = svgHeight;\n } else if (viewBoxRect) {\n bRectY = viewBoxRect.y;\n bRectHeight = viewBoxRect.height;\n } // If both viewBox and svgWidth/svgHeight not specified,\n // we have to determine how to layout those element to make them look good.\n\n\n if (bRectX == null || bRectY == null) {\n var calculatedBoundingRect = rootFromParse.getBoundingRect();\n\n if (bRectX == null) {\n bRectX = calculatedBoundingRect.x;\n bRectWidth = calculatedBoundingRect.width;\n }\n\n if (bRectY == null) {\n bRectY = calculatedBoundingRect.y;\n bRectHeight = calculatedBoundingRect.height;\n }\n }\n\n boundingRect = this._boundingRect = new BoundingRect(bRectX, bRectY, bRectWidth, bRectHeight);\n }\n\n if (viewBoxRect) {\n var viewBoxTransform = makeViewBoxTransform(viewBoxRect, boundingRect); // Only support `preserveAspectRatio 'xMidYMid'`\n\n rootFromParse.scaleX = rootFromParse.scaleY = viewBoxTransform.scale;\n rootFromParse.x = viewBoxTransform.x;\n rootFromParse.y = viewBoxTransform.y;\n } // SVG needs to clip based on `viewBox`. And some SVG files really rely on this feature.\n // They do not strictly confine all of the content inside a display rect, but deliberately\n // use a `viewBox` to define a displayable rect.\n // PENDING:\n // The drawback of the `setClipPath` here is: the region label (genereted by echarts) near the\n // edge might also be clipped, because region labels are put as `textContent` of the SVG path.\n\n\n root.setClipPath(new Rect({\n shape: boundingRect.plain()\n }));\n var named = [];\n each(result.named, function (namedItem) {\n if (REGION_AVAILABLE_SVG_TAG_MAP.get(namedItem.svgNodeTagLower) != null) {\n named.push(namedItem);\n setSilent(namedItem.el);\n }\n });\n return {\n root: root,\n boundingRect: boundingRect,\n named: named\n };\n };\n /**\n * Consider:\n * (1) One graphic element can not be shared by different `geoView` running simultaneously.\n * Notice, also need to consider multiple echarts instances share a `mapRecord`.\n * (2) Converting SVG to graphic elements is time consuming.\n * (3) In the current architecture, `load` should be called frequently to get boundingRect,\n * and it is called without view info.\n * So we maintain graphic elements in this module, and enables `view` to use/return these\n * graphics from/to the pool with it's uid.\n */\n\n\n GeoSVGResource.prototype.useGraphic = function (hostKey\n /*, nameMap: NameMap */\n ) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n return svgGraphic;\n }\n\n svgGraphic = this._freedGraphics.pop() // use the first boundingRect to avoid duplicated boundingRect calculation.\n || this._buildGraphic(this._parsedXML);\n usedRootMap.set(hostKey, svgGraphic); // PENDING: `nameMap` will not be supported until some real requirement come.\n // `nameMap` can only be obtained from echarts option.\n // The original `named` must not be modified.\n // if (nameMap) {\n // svgGraphic = extend({}, svgGraphic);\n // svgGraphic.named = applyNameMap(svgGraphic.named, nameMap);\n // }\n\n return svgGraphic;\n };\n\n GeoSVGResource.prototype.freeGraphic = function (hostKey) {\n var usedRootMap = this._usedGraphicMap;\n var svgGraphic = usedRootMap.get(hostKey);\n\n if (svgGraphic) {\n usedRootMap.removeKey(hostKey);\n\n this._freedGraphics.push(svgGraphic);\n }\n };\n\n return GeoSVGResource;\n}();\n\nexport { GeoSVGResource };\n\nfunction setSilent(el) {\n // Only named element has silent: false, other elements should\n // act as background and has no user interaction.\n el.silent = false; // text|tspan will be converted to group.\n\n if (el.isGroup) {\n el.traverse(function (child) {\n child.silent = false;\n });\n }\n}\n\nfunction createRegions(named) {\n var regions = [];\n var regionsMap = createHashMap(); // Create resions only for the first graphic.\n\n each(named, function (namedItem) {\n // Region has feature to calculate center for tooltip or other features.\n // If there is a , the center should be the center of the\n // bounding rect of the g.\n if (namedItem.namedFrom != null) {\n return;\n }\n\n var region = new GeoSVGRegion(namedItem.name, namedItem.el); // PENDING: if `nameMap` supported, this region can not be mounted on\n // `this`, but can only be created each time `load()` called.\n\n regions.push(region); // PENDING: if multiple tag named with the same name, only one will be\n // found by `_regionsMap`. `_regionsMap` is used to find a coordinate\n // by name. We use `region.getCenter()` as the coordinate.\n\n regionsMap.set(namedItem.name, region);\n });\n return {\n regions: regions,\n regionsMap: regionsMap\n };\n} // PENDING: `nameMap` will not be supported until some real requirement come.\n// /**\n// * Use the alias in geoNameMap.\n// * The input `named` must not be modified.\n// */\n// function applyNameMap(\n// named: GeoSVGGraphicRecord['named'],\n// nameMap: NameMap\n// ): GeoSVGGraphicRecord['named'] {\n// const result = [] as GeoSVGGraphicRecord['named'];\n// for (let i = 0; i < named.length; i++) {\n// let regionGraphic = named[i];\n// const name = regionGraphic.name;\n// if (nameMap && nameMap.hasOwnProperty(name)) {\n// regionGraphic = extend({}, regionGraphic);\n// regionGraphic.name = name;\n// }\n// result.push(regionGraphic);\n// }\n// return result;\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parse and decode geo json\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { GeoJSONRegion } from './Region';\n\nfunction decode(json) {\n if (!json.UTF8Encoding) {\n return json;\n }\n\n var jsonCompressed = json;\n var encodeScale = jsonCompressed.UTF8Scale;\n\n if (encodeScale == null) {\n encodeScale = 1024;\n }\n\n var features = jsonCompressed.features;\n\n for (var f = 0; f < features.length; f++) {\n var feature = features[f];\n var geometry = feature.geometry;\n\n if (geometry.type === 'Polygon') {\n var coordinates = geometry.coordinates;\n\n for (var c = 0; c < coordinates.length; c++) {\n coordinates[c] = decodePolygon(coordinates[c], geometry.encodeOffsets[c], encodeScale);\n }\n } else if (geometry.type === 'MultiPolygon') {\n var coordinates = geometry.coordinates;\n\n for (var c = 0; c < coordinates.length; c++) {\n var coordinate = coordinates[c];\n\n for (var c2 = 0; c2 < coordinate.length; c2++) {\n coordinate[c2] = decodePolygon(coordinate[c2], geometry.encodeOffsets[c][c2], encodeScale);\n }\n }\n }\n } // Has been decoded\n\n\n jsonCompressed.UTF8Encoding = false;\n return jsonCompressed;\n}\n\nfunction decodePolygon(coordinate, encodeOffsets, encodeScale) {\n var result = [];\n var prevX = encodeOffsets[0];\n var prevY = encodeOffsets[1];\n\n for (var i = 0; i < coordinate.length; i += 2) {\n var x = coordinate.charCodeAt(i) - 64;\n var y = coordinate.charCodeAt(i + 1) - 64; // ZigZag decoding\n\n x = x >> 1 ^ -(x & 1);\n y = y >> 1 ^ -(y & 1); // Delta deocding\n\n x += prevX;\n y += prevY;\n prevX = x;\n prevY = y; // Dequantize\n\n result.push([x / encodeScale, y / encodeScale]);\n }\n\n return result;\n}\n\nexport default function parseGeoJSON(geoJson, nameProperty) {\n geoJson = decode(geoJson);\n return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {\n // Output of mapshaper may have geometry null\n return featureObj.geometry && featureObj.properties && featureObj.geometry.coordinates.length > 0;\n }), function (featureObj) {\n var properties = featureObj.properties;\n var geo = featureObj.geometry;\n var geometries = [];\n\n if (geo.type === 'Polygon') {\n var coordinates = geo.coordinates;\n geometries.push({\n type: 'polygon',\n // According to the GeoJSON specification.\n // First must be exterior, and the rest are all interior(holes).\n exterior: coordinates[0],\n interiors: coordinates.slice(1)\n });\n }\n\n if (geo.type === 'MultiPolygon') {\n var coordinates = geo.coordinates;\n zrUtil.each(coordinates, function (item) {\n if (item[0]) {\n geometries.push({\n type: 'polygon',\n exterior: item[0],\n interiors: item.slice(1)\n });\n }\n });\n }\n\n var region = new GeoJSONRegion(properties[nameProperty || 'name'], geometries, properties.cp);\n region.properties = properties;\n return region;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 南海诸岛\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { GeoJSONRegion } from '../Region';\nvar geoCoord = [126, 25];\nvar nanhaiName = '南海诸岛';\nvar points = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];\n\nfor (var i = 0; i < points.length; i++) {\n for (var k = 0; k < points[i].length; k++) {\n points[i][k][0] /= 10.5;\n points[i][k][1] /= -10.5 / 0.75;\n points[i][k][0] += geoCoord[0];\n points[i][k][1] += geoCoord[1];\n }\n}\n\nexport default function fixNanhai(mapType, regions) {\n if (mapType === 'china') {\n for (var i = 0; i < regions.length; i++) {\n // Already exists.\n if (regions[i].name === nanhaiName) {\n return;\n }\n }\n\n regions.push(new GeoJSONRegion(nanhaiName, zrUtil.map(points, function (exterior) {\n return {\n type: 'polygon',\n exterior: exterior\n };\n }), geoCoord));\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar coordsOffsetMap = {\n '南海诸岛': [32, 80],\n // 全国\n '广东': [0, -10],\n '香港': [10, 5],\n '澳门': [-10, 10],\n //'北京': [-10, 0],\n '天津': [5, 5]\n};\nexport default function fixTextCoords(mapType, region) {\n if (mapType === 'china') {\n var coordFix = coordsOffsetMap[region.name];\n\n if (coordFix) {\n var cp = region.getCenter();\n cp[0] += coordFix[0] / 10.5;\n cp[1] += -coordFix[1] / (10.5 / 0.75);\n region.setCenter(cp);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar geoCoordMap = {\n 'Russia': [100, 60],\n 'United States': [-99, 38],\n 'United States of America': [-99, 38]\n};\nexport default function fixGeoCoords(mapType, region) {\n if (mapType === 'world') {\n var geoCoord = geoCoordMap[region.name];\n\n if (geoCoord) {\n var cp = [geoCoord[0], geoCoord[1]];\n region.setCenter(cp);\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Fix for 钓鱼岛\n// let Region = require('../Region');\n// let zrUtil = require('zrender/lib/core/util');\n// let geoCoord = [126, 25];\nvar points = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];\nexport default function fixDiaoyuIsland(mapType, region) {\n if (mapType === 'china' && region.name === '台湾') {\n region.geometries.push({\n type: 'polygon',\n exterior: points[0]\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isString, createHashMap } from 'zrender/lib/core/util';\nimport parseGeoJson from './parseGeoJson'; // Built-in GEO fixer.\n\nimport fixNanhai from './fix/nanhai';\nimport fixTextCoord from './fix/textCoord';\nimport fixGeoCoord from './fix/geoCoord';\nimport fixDiaoyuIsland from './fix/diaoyuIsland';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nvar DEFAULT_NAME_PROPERTY = 'name';\n\nvar GeoJSONResource =\n/** @class */\nfunction () {\n function GeoJSONResource(mapName, geoJSON, specialAreas) {\n this.type = 'geoJSON';\n this._parsedMap = createHashMap();\n this._mapName = mapName;\n this._specialAreas = specialAreas; // PENDING: delay the parse to the first usage to rapid up the FMP?\n\n this._geoJSON = parseInput(geoJSON);\n }\n /**\n * @param nameMap can be null/undefined\n * @param nameProperty can be null/undefined\n */\n\n\n GeoJSONResource.prototype.load = function (nameMap, nameProperty) {\n nameProperty = nameProperty || DEFAULT_NAME_PROPERTY;\n\n var parsed = this._parsedMap.get(nameProperty);\n\n if (!parsed) {\n var rawRegions = this._parseToRegions(nameProperty);\n\n parsed = this._parsedMap.set(nameProperty, {\n regions: rawRegions,\n boundingRect: calculateBoundingRect(rawRegions)\n });\n }\n\n var regionsMap = createHashMap();\n var finalRegions = [];\n each(parsed.regions, function (region) {\n var regionName = region.name; // Try use the alias in geoNameMap\n\n if (nameMap && nameMap.hasOwnProperty(regionName)) {\n region = region.cloneShallow(regionName = nameMap[regionName]);\n }\n\n finalRegions.push(region);\n regionsMap.set(regionName, region);\n });\n return {\n regions: finalRegions,\n boundingRect: parsed.boundingRect || new BoundingRect(0, 0, 0, 0),\n regionsMap: regionsMap\n };\n };\n\n GeoJSONResource.prototype._parseToRegions = function (nameProperty) {\n var mapName = this._mapName;\n var geoJSON = this._geoJSON;\n var rawRegions; // https://jsperf.com/try-catch-performance-overhead\n\n try {\n rawRegions = geoJSON ? parseGeoJson(geoJSON, nameProperty) : [];\n } catch (e) {\n throw new Error('Invalid geoJson format\\n' + e.message);\n }\n\n fixNanhai(mapName, rawRegions);\n each(rawRegions, function (region) {\n var regionName = region.name;\n fixTextCoord(mapName, region);\n fixGeoCoord(mapName, region);\n fixDiaoyuIsland(mapName, region); // Some area like Alaska in USA map needs to be tansformed\n // to look better\n\n var specialArea = this._specialAreas && this._specialAreas[regionName];\n\n if (specialArea) {\n region.transformTo(specialArea.left, specialArea.top, specialArea.width, specialArea.height);\n }\n }, this);\n return rawRegions;\n };\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n\n\n GeoJSONResource.prototype.getMapForUser = function () {\n return {\n // For backward compatibility, use geoJson\n // PENDING: it has been returning them without clone.\n // do we need to avoid outsite modification?\n geoJson: this._geoJSON,\n geoJSON: this._geoJSON,\n specialAreas: this._specialAreas\n };\n };\n\n return GeoJSONResource;\n}();\n\nexport { GeoJSONResource };\n\nfunction calculateBoundingRect(regions) {\n var rect;\n\n for (var i = 0; i < regions.length; i++) {\n var regionRect = regions[i].getBoundingRect();\n rect = rect || regionRect.clone();\n rect.union(regionRect);\n }\n\n return rect;\n}\n\nfunction parseInput(source) {\n return !isString(source) ? source : typeof JSON !== 'undefined' && JSON.parse ? JSON.parse(source) : new Function('return (' + source + ');')();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap } from 'zrender/lib/core/util';\nimport { GeoSVGResource } from './GeoSVGResource';\nimport { GeoJSONResource } from './GeoJSONResource';\nvar storage = createHashMap();\nexport default {\n /**\n * Compatible with previous `echarts.registerMap`.\n *\n * @usage\n * ```js\n *\n * echarts.registerMap('USA', geoJson, specialAreas);\n *\n * echarts.registerMap('USA', {\n * geoJson: geoJson,\n * specialAreas: {...}\n * });\n * echarts.registerMap('USA', {\n * geoJSON: geoJson,\n * specialAreas: {...}\n * });\n *\n * echarts.registerMap('airport', {\n * svg: svg\n * }\n * ```\n *\n * Note:\n * Do not support that register multiple geoJSON or SVG\n * one map name. Because different geoJSON and SVG have\n * different unit. It's not easy to make sure how those\n * units are mapping/normalize.\n * If intending to use multiple geoJSON or SVG, we can\n * use multiple geo coordinate system.\n */\n registerMap: function (mapName, rawDef, rawSpecialAreas) {\n if (rawDef.svg) {\n var resource = new GeoSVGResource(mapName, rawDef.svg);\n storage.set(mapName, resource);\n } else {\n // Recommend:\n // echarts.registerMap('eu', { geoJSON: xxx, specialAreas: xxx });\n // Backward compatibility:\n // echarts.registerMap('eu', geoJSON, specialAreas);\n // echarts.registerMap('eu', { geoJson: xxx, specialAreas: xxx });\n var geoJSON = rawDef.geoJson || rawDef.geoJSON;\n\n if (geoJSON && !rawDef.features) {\n rawSpecialAreas = rawDef.specialAreas;\n } else {\n geoJSON = rawDef;\n }\n\n var resource = new GeoJSONResource(mapName, geoJSON, rawSpecialAreas);\n storage.set(mapName, resource);\n }\n },\n getGeoResource: function (mapName) {\n return storage.get(mapName);\n },\n\n /**\n * Only for exporting to users.\n * **MUST NOT** used internally.\n */\n getMapForUser: function (mapName) {\n var resource = storage.get(mapName); // Do not support return SVG until some real requirement come.\n\n return resource && resource.type === 'geoJSON' && resource.getMapForUser();\n },\n load: function (mapName, nameMap, nameProperty) {\n var resource = storage.get(mapName);\n\n if (!resource) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Map ' + mapName + ' not exists. The GeoJSON of the map must be provided.');\n }\n\n return;\n }\n\n return resource.load(nameMap, nameProperty);\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport { __extends } from \"tslib\";\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrender from 'zrender/lib/zrender';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as colorTool from 'zrender/lib/tool/color';\nimport env from 'zrender/lib/core/env';\nimport timsort from 'zrender/lib/core/timsort';\nimport Eventful from 'zrender/lib/core/Eventful';\nimport GlobalModel from '../model/Global';\nimport ExtensionAPI from './ExtensionAPI';\nimport CoordinateSystemManager from './CoordinateSystem';\nimport OptionManager from '../model/OptionManager';\nimport backwardCompat from '../preprocessor/backwardCompat';\nimport dataStack from '../processor/dataStack';\nimport SeriesModel from '../model/Series';\nimport ComponentView from '../view/Component';\nimport ChartView from '../view/Chart';\nimport * as graphic from '../util/graphic';\nimport { getECData } from '../util/innerStore';\nimport { isHighDownDispatcher, HOVER_STATE_EMPHASIS, HOVER_STATE_BLUR, blurSeriesFromHighlightPayload, toggleSelectionFromPayload, updateSeriesElementSelection, getAllSelectedIndices, isSelectChangePayload, isHighDownPayload, HIGHLIGHT_ACTION_TYPE, DOWNPLAY_ACTION_TYPE, SELECT_ACTION_TYPE, UNSELECT_ACTION_TYPE, TOGGLE_SELECT_ACTION_TYPE, savePathStates, enterEmphasis, leaveEmphasis, leaveBlur, enterSelect, leaveSelect, enterBlur, allLeaveBlur, findComponentHighDownDispatchers, blurComponent, handleGlobalMouseOverForHighDown, handleGlboalMouseOutForHighDown } from '../util/states';\nimport * as modelUtil from '../util/model';\nimport { throttle } from '../util/throttle';\nimport { seriesStyleTask, dataStyleTask, dataColorPaletteTask } from '../visual/style';\nimport loadingDefault from '../loading/default';\nimport Scheduler from './Scheduler';\nimport lightTheme from '../theme/light';\nimport darkTheme from '../theme/dark';\nimport { parseClassType } from '../util/clazz';\nimport { ECEventProcessor } from '../util/ECEventProcessor';\nimport { seriesSymbolTask, dataSymbolTask } from '../visual/symbol';\nimport { getVisualFromData, getItemVisualFromData } from '../visual/helper';\nimport LabelManager from '../label/LabelManager';\nimport { deprecateLog, throwError } from '../util/log';\nimport { handleLegacySelectEvents } from '../legacy/dataSelectAction';\nimport { registerExternalTransform } from '../data/helper/transform';\nimport { createLocaleObject, SYSTEM_LANG } from './locale';\nimport { findEventDispatcher } from '../util/event';\nimport decal from '../visual/decal';\nimport geoSourceManager from '../coord/geo/geoSourceManager';\nvar assert = zrUtil.assert;\nvar each = zrUtil.each;\nvar isFunction = zrUtil.isFunction;\nvar isObject = zrUtil.isObject;\nvar indexOf = zrUtil.indexOf;\nvar hasWindow = typeof window !== 'undefined';\nexport var version = '5.1.2';\nexport var dependencies = {\n zrender: '5.1.1'\n};\nvar TEST_FRAME_REMAIN_TIME = 1;\nvar PRIORITY_PROCESSOR_SERIES_FILTER = 800; // Some data processors depends on the stack result dimension (to calculate data extent).\n// So data stack stage should be in front of data processing stage.\n\nvar PRIORITY_PROCESSOR_DATASTACK = 900; // \"Data filter\" will block the stream, so it should be\n// put at the begining of data processing.\n\nvar PRIORITY_PROCESSOR_FILTER = 1000;\nvar PRIORITY_PROCESSOR_DEFAULT = 2000;\nvar PRIORITY_PROCESSOR_STATISTIC = 5000;\nvar PRIORITY_VISUAL_LAYOUT = 1000;\nvar PRIORITY_VISUAL_PROGRESSIVE_LAYOUT = 1100;\nvar PRIORITY_VISUAL_GLOBAL = 2000;\nvar PRIORITY_VISUAL_CHART = 3000;\nvar PRIORITY_VISUAL_COMPONENT = 4000; // Visual property in data. Greater than `PRIORITY_VISUAL_COMPONENT` to enable to\n// overwrite the viusal result of component (like `visualMap`)\n// using data item specific setting (like itemStyle.xxx on data item)\n\nvar PRIORITY_VISUAL_CHART_DATA_CUSTOM = 4500; // Greater than `PRIORITY_VISUAL_CHART_DATA_CUSTOM` to enable to layout based on\n// visual result like `symbolSize`.\n\nvar PRIORITY_VISUAL_POST_CHART_LAYOUT = 4600;\nvar PRIORITY_VISUAL_BRUSH = 5000;\nvar PRIORITY_VISUAL_ARIA = 6000;\nvar PRIORITY_VISUAL_DECAL = 7000;\nexport var PRIORITY = {\n PROCESSOR: {\n FILTER: PRIORITY_PROCESSOR_FILTER,\n SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,\n STATISTIC: PRIORITY_PROCESSOR_STATISTIC\n },\n VISUAL: {\n LAYOUT: PRIORITY_VISUAL_LAYOUT,\n PROGRESSIVE_LAYOUT: PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,\n GLOBAL: PRIORITY_VISUAL_GLOBAL,\n CHART: PRIORITY_VISUAL_CHART,\n POST_CHART_LAYOUT: PRIORITY_VISUAL_POST_CHART_LAYOUT,\n COMPONENT: PRIORITY_VISUAL_COMPONENT,\n BRUSH: PRIORITY_VISUAL_BRUSH,\n CHART_ITEM: PRIORITY_VISUAL_CHART_DATA_CUSTOM,\n ARIA: PRIORITY_VISUAL_ARIA,\n DECAL: PRIORITY_VISUAL_DECAL\n }\n}; // Main process have three entries: `setOption`, `dispatchAction` and `resize`,\n// where they must not be invoked nestedly, except the only case: invoke\n// dispatchAction with updateMethod \"none\" in main process.\n// This flag is used to carry out this rule.\n// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).\n\nvar IN_MAIN_PROCESS_KEY = '__flagInMainProcess';\nvar OPTION_UPDATED_KEY = '__optionUpdated';\nvar STATUS_NEEDS_UPDATE_KEY = '__needsUpdateStatus';\nvar ACTION_REG = /^[a-zA-Z0-9_]+$/;\nvar CONNECT_STATUS_KEY = '__connectUpdateStatus';\nvar CONNECT_STATUS_PENDING = 0;\nvar CONNECT_STATUS_UPDATING = 1;\nvar CONNECT_STATUS_UPDATED = 2;\n;\n;\n;\n\nfunction createRegisterEventWithLowercaseECharts(method) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (this.isDisposed()) {\n disposedWarning(this.id);\n return;\n }\n\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\n\nfunction createRegisterEventWithLowercaseMessageCenter(method) {\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n return toLowercaseNameAndCallEventful(this, method, args);\n };\n}\n\nfunction toLowercaseNameAndCallEventful(host, method, args) {\n // `args[0]` is event name. Event name is all lowercase.\n args[0] = args[0] && args[0].toLowerCase();\n return Eventful.prototype[method].apply(host, args);\n}\n\nvar MessageCenter =\n/** @class */\nfunction (_super) {\n __extends(MessageCenter, _super);\n\n function MessageCenter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return MessageCenter;\n}(Eventful);\n\nvar messageCenterProto = MessageCenter.prototype;\nmessageCenterProto.on = createRegisterEventWithLowercaseMessageCenter('on');\nmessageCenterProto.off = createRegisterEventWithLowercaseMessageCenter('off'); // ---------------------------------------\n// Internal method names for class ECharts\n// ---------------------------------------\n\nvar prepare;\nvar prepareView;\nvar updateDirectly;\nvar updateMethods;\nvar doConvertPixel;\nvar updateStreamModes;\nvar doDispatchAction;\nvar flushPendingActions;\nvar triggerUpdatedEvent;\nvar bindRenderedEvent;\nvar bindMouseEvent;\nvar clearColorPalette;\nvar render;\nvar renderComponents;\nvar renderSeries;\nvar performPostUpdateFuncs;\nvar createExtensionAPI;\nvar enableConnect;\nvar setTransitionOpt;\nvar markStatusToUpdate;\nvar applyChangedStates;\n\nvar ECharts =\n/** @class */\nfunction (_super) {\n __extends(ECharts, _super);\n\n function ECharts(dom, // Theme name or themeOption.\n theme, opts) {\n var _this = _super.call(this, new ECEventProcessor()) || this;\n\n _this._chartsViews = [];\n _this._chartsMap = {};\n _this._componentsViews = [];\n _this._componentsMap = {}; // Can't dispatch action during rendering procedure\n\n _this._pendingActions = [];\n opts = opts || {}; // Get theme by name\n\n if (typeof theme === 'string') {\n theme = themeStorage[theme];\n }\n\n _this._dom = dom;\n var defaultRenderer = 'canvas';\n var defaultUseDirtyRect = false;\n\n if (process.env.NODE_ENV !== 'production') {\n var root =\n /* eslint-disable-next-line */\n hasWindow ? window : global;\n defaultRenderer = root.__ECHARTS__DEFAULT__RENDERER__ || defaultRenderer;\n var devUseDirtyRect = root.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;\n defaultUseDirtyRect = devUseDirtyRect == null ? defaultUseDirtyRect : devUseDirtyRect;\n }\n\n var zr = _this._zr = zrender.init(dom, {\n renderer: opts.renderer || defaultRenderer,\n devicePixelRatio: opts.devicePixelRatio,\n width: opts.width,\n height: opts.height,\n useDirtyRect: opts.useDirtyRect == null ? defaultUseDirtyRect : opts.useDirtyRect\n }); // Expect 60 fps.\n\n _this._throttledZrFlush = throttle(zrUtil.bind(zr.flush, zr), 17);\n theme = zrUtil.clone(theme);\n theme && backwardCompat(theme, true);\n _this._theme = theme;\n _this._locale = createLocaleObject(opts.locale || SYSTEM_LANG);\n _this._coordSysMgr = new CoordinateSystemManager();\n var api = _this._api = createExtensionAPI(_this); // Sort on demand\n\n function prioritySortFunc(a, b) {\n return a.__prio - b.__prio;\n }\n\n timsort(visualFuncs, prioritySortFunc);\n timsort(dataProcessorFuncs, prioritySortFunc);\n _this._scheduler = new Scheduler(_this, api, dataProcessorFuncs, visualFuncs);\n _this._messageCenter = new MessageCenter();\n _this._labelManager = new LabelManager(); // Init mouse events\n\n _this._initEvents(); // In case some people write `window.onresize = chart.resize`\n\n\n _this.resize = zrUtil.bind(_this.resize, _this);\n zr.animation.on('frame', _this._onframe, _this);\n bindRenderedEvent(zr, _this);\n bindMouseEvent(zr, _this); // ECharts instance can be used as value.\n\n zrUtil.setAsPrimitive(_this);\n return _this;\n }\n\n ECharts.prototype._onframe = function () {\n if (this._disposed) {\n return;\n }\n\n applyChangedStates(this);\n var scheduler = this._scheduler; // Lazy update\n\n if (this[OPTION_UPDATED_KEY]) {\n var silent = this[OPTION_UPDATED_KEY].silent;\n this[IN_MAIN_PROCESS_KEY] = true;\n prepare(this);\n updateMethods.update.call(this); // At present, in each frame, zrender performs:\n // (1) animation step forward.\n // (2) trigger('frame') (where this `_onframe` is called)\n // (3) zrender flush (render).\n // If we do nothing here, since we use `setToFinal: true`, the step (3) above\n // will render the final state of the elements before the real animation started.\n\n this._zr.flush();\n\n this[IN_MAIN_PROCESS_KEY] = false;\n this[OPTION_UPDATED_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n } // Avoid do both lazy update and progress in one frame.\n else if (scheduler.unfinished) {\n // Stream progress.\n var remainTime = TEST_FRAME_REMAIN_TIME;\n var ecModel = this._model;\n var api = this._api;\n scheduler.unfinished = false;\n\n do {\n var startTime = +new Date();\n scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold.\n\n scheduler.performDataProcessorTasks(ecModel);\n updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in\n // each frame is not a good user experience. So we follow the rule that\n // the extent of the coordinate system is determin in the first frame (the\n // frame is executed immedietely after task reset.\n // this._coordSysMgr.update(ecModel, api);\n // console.log('--- ec frame visual ---', remainTime);\n\n scheduler.performVisualTasks(ecModel);\n renderSeries(this, this._model, api, 'remain');\n remainTime -= +new Date() - startTime;\n } while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event.\n\n\n if (!scheduler.unfinished) {\n this._zr.flush();\n } // Else, zr flushing be ensue within the same frame,\n // because zr flushing is after onframe event.\n\n }\n };\n\n ECharts.prototype.getDom = function () {\n return this._dom;\n };\n\n ECharts.prototype.getId = function () {\n return this.id;\n };\n\n ECharts.prototype.getZr = function () {\n return this._zr;\n };\n /* eslint-disable-next-line */\n\n\n ECharts.prototype.setOption = function (option, notMerge, lazyUpdate) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this[IN_MAIN_PROCESS_KEY], '`setOption` should not be called during main process.');\n }\n\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var silent;\n var replaceMerge;\n var transitionOpt;\n\n if (isObject(notMerge)) {\n lazyUpdate = notMerge.lazyUpdate;\n silent = notMerge.silent;\n replaceMerge = notMerge.replaceMerge;\n transitionOpt = notMerge.transition;\n notMerge = notMerge.notMerge;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n\n if (!this._model || notMerge) {\n var optionManager = new OptionManager(this._api);\n var theme = this._theme;\n var ecModel = this._model = new GlobalModel();\n ecModel.scheduler = this._scheduler;\n ecModel.init(null, null, null, theme, this._locale, optionManager);\n }\n\n this._model.setOption(option, {\n replaceMerge: replaceMerge\n }, optionPreprocessorFuncs);\n\n setTransitionOpt(this, transitionOpt);\n\n if (lazyUpdate) {\n this[OPTION_UPDATED_KEY] = {\n silent: silent\n };\n this[IN_MAIN_PROCESS_KEY] = false; // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.\n // It should wake it up to make sure zrender start to render at the next frame.\n\n this.getZr().wakeUp();\n } else {\n prepare(this);\n updateMethods.update.call(this); // Ensure zr refresh sychronously, and then pixel in canvas can be\n // fetched after `setOption`.\n\n this._zr.flush();\n\n this[OPTION_UPDATED_KEY] = false;\n this[IN_MAIN_PROCESS_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n }\n };\n /**\n * @DEPRECATED\n */\n\n\n ECharts.prototype.setTheme = function () {\n console.error('ECharts#setTheme() is DEPRECATED in ECharts 3.0');\n }; // We don't want developers to use getModel directly.\n\n\n ECharts.prototype.getModel = function () {\n return this._model;\n };\n\n ECharts.prototype.getOption = function () {\n return this._model && this._model.getOption();\n };\n\n ECharts.prototype.getWidth = function () {\n return this._zr.getWidth();\n };\n\n ECharts.prototype.getHeight = function () {\n return this._zr.getHeight();\n };\n\n ECharts.prototype.getDevicePixelRatio = function () {\n return this._zr.painter.dpr\n /* eslint-disable-next-line */\n || hasWindow && window.devicePixelRatio || 1;\n };\n /**\n * Get canvas which has all thing rendered\n */\n\n\n ECharts.prototype.getRenderedCanvas = function (opts) {\n if (!env.canvasSupported) {\n return;\n }\n\n opts = opts || {};\n return this._zr.painter.getRenderedCanvas({\n backgroundColor: opts.backgroundColor || this._model.get('backgroundColor'),\n pixelRatio: opts.pixelRatio || this.getDevicePixelRatio()\n });\n };\n /**\n * Get svg data url\n */\n\n\n ECharts.prototype.getSvgDataURL = function () {\n if (!env.svgSupported) {\n return;\n }\n\n var zr = this._zr;\n var list = zr.storage.getDisplayList(); // Stop animations\n\n zrUtil.each(list, function (el) {\n el.stopAnimation(null, true);\n });\n return zr.painter.toDataURL();\n };\n\n ECharts.prototype.getDataURL = function (opts) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n opts = opts || {};\n var excludeComponents = opts.excludeComponents;\n var ecModel = this._model;\n var excludesComponentViews = [];\n var self = this;\n each(excludeComponents, function (componentType) {\n ecModel.eachComponent({\n mainType: componentType\n }, function (component) {\n var view = self._componentsMap[component.__viewId];\n\n if (!view.group.ignore) {\n excludesComponentViews.push(view);\n view.group.ignore = true;\n }\n });\n });\n var url = this._zr.painter.getType() === 'svg' ? this.getSvgDataURL() : this.getRenderedCanvas(opts).toDataURL('image/' + (opts && opts.type || 'png'));\n each(excludesComponentViews, function (view) {\n view.group.ignore = false;\n });\n return url;\n };\n\n ECharts.prototype.getConnectedDataURL = function (opts) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!env.canvasSupported) {\n return;\n }\n\n var isSvg = opts.type === 'svg';\n var groupId = this.group;\n var mathMin = Math.min;\n var mathMax = Math.max;\n var MAX_NUMBER = Infinity;\n\n if (connectedGroups[groupId]) {\n var left_1 = MAX_NUMBER;\n var top_1 = MAX_NUMBER;\n var right_1 = -MAX_NUMBER;\n var bottom_1 = -MAX_NUMBER;\n var canvasList_1 = [];\n var dpr_1 = opts && opts.pixelRatio || this.getDevicePixelRatio();\n zrUtil.each(instances, function (chart, id) {\n if (chart.group === groupId) {\n var canvas = isSvg ? chart.getZr().painter.getSvgDom().innerHTML : chart.getRenderedCanvas(zrUtil.clone(opts));\n var boundingRect = chart.getDom().getBoundingClientRect();\n left_1 = mathMin(boundingRect.left, left_1);\n top_1 = mathMin(boundingRect.top, top_1);\n right_1 = mathMax(boundingRect.right, right_1);\n bottom_1 = mathMax(boundingRect.bottom, bottom_1);\n canvasList_1.push({\n dom: canvas,\n left: boundingRect.left,\n top: boundingRect.top\n });\n }\n });\n left_1 *= dpr_1;\n top_1 *= dpr_1;\n right_1 *= dpr_1;\n bottom_1 *= dpr_1;\n var width = right_1 - left_1;\n var height = bottom_1 - top_1;\n var targetCanvas = zrUtil.createCanvas();\n var zr_1 = zrender.init(targetCanvas, {\n renderer: isSvg ? 'svg' : 'canvas'\n });\n zr_1.resize({\n width: width,\n height: height\n });\n\n if (isSvg) {\n var content_1 = '';\n each(canvasList_1, function (item) {\n var x = item.left - left_1;\n var y = item.top - top_1;\n content_1 += '' + item.dom + '';\n });\n zr_1.painter.getSvgRoot().innerHTML = content_1;\n\n if (opts.connectedBackgroundColor) {\n zr_1.painter.setBackgroundColor(opts.connectedBackgroundColor);\n }\n\n zr_1.refreshImmediately();\n return zr_1.painter.toDataURL();\n } else {\n // Background between the charts\n if (opts.connectedBackgroundColor) {\n zr_1.add(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: width,\n height: height\n },\n style: {\n fill: opts.connectedBackgroundColor\n }\n }));\n }\n\n each(canvasList_1, function (item) {\n var img = new graphic.Image({\n style: {\n x: item.left * dpr_1 - left_1,\n y: item.top * dpr_1 - top_1,\n image: item.dom\n }\n });\n zr_1.add(img);\n });\n zr_1.refreshImmediately();\n return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));\n }\n } else {\n return this.getDataURL(opts);\n }\n };\n\n ECharts.prototype.convertToPixel = function (finder, value) {\n return doConvertPixel(this, 'convertToPixel', finder, value);\n };\n\n ECharts.prototype.convertFromPixel = function (finder, value) {\n return doConvertPixel(this, 'convertFromPixel', finder, value);\n };\n /**\n * Is the specified coordinate systems or components contain the given pixel point.\n * @param {Array|number} value\n * @return {boolean} result\n */\n\n\n ECharts.prototype.containPixel = function (finder, value) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var ecModel = this._model;\n var result;\n var findResult = modelUtil.parseFinder(ecModel, finder);\n zrUtil.each(findResult, function (models, key) {\n key.indexOf('Models') >= 0 && zrUtil.each(models, function (model) {\n var coordSys = model.coordinateSystem;\n\n if (coordSys && coordSys.containPoint) {\n result = result || !!coordSys.containPoint(value);\n } else if (key === 'seriesModels') {\n var view = this._chartsMap[model.__viewId];\n\n if (view && view.containPoint) {\n result = result || view.containPoint(value, model);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(key + ': ' + (view ? 'The found component do not support containPoint.' : 'No view mapping to the found component.'));\n }\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(key + ': containPoint is not supported');\n }\n }\n }, this);\n }, this);\n return !!result;\n };\n /**\n * Get visual from series or data.\n * @param finder\n * If string, e.g., 'series', means {seriesIndex: 0}.\n * If Object, could contain some of these properties below:\n * {\n * seriesIndex / seriesId / seriesName,\n * dataIndex / dataIndexInside\n * }\n * If dataIndex is not specified, series visual will be fetched,\n * but not data item visual.\n * If all of seriesIndex, seriesId, seriesName are not specified,\n * visual will be fetched from first series.\n * @param visualType 'color', 'symbol', 'symbolSize'\n */\n\n\n ECharts.prototype.getVisual = function (finder, visualType) {\n var ecModel = this._model;\n var parsedFinder = modelUtil.parseFinder(ecModel, finder, {\n defaultMainType: 'series'\n });\n var seriesModel = parsedFinder.seriesModel;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!seriesModel) {\n console.warn('There is no specified seires model');\n }\n }\n\n var data = seriesModel.getData();\n var dataIndexInside = parsedFinder.hasOwnProperty('dataIndexInside') ? parsedFinder.dataIndexInside : parsedFinder.hasOwnProperty('dataIndex') ? data.indexOfRawIndex(parsedFinder.dataIndex) : null;\n return dataIndexInside != null ? getItemVisualFromData(data, dataIndexInside, visualType) : getVisualFromData(data, visualType);\n };\n /**\n * Get view of corresponding component model\n */\n\n\n ECharts.prototype.getViewOfComponentModel = function (componentModel) {\n return this._componentsMap[componentModel.__viewId];\n };\n /**\n * Get view of corresponding series model\n */\n\n\n ECharts.prototype.getViewOfSeriesModel = function (seriesModel) {\n return this._chartsMap[seriesModel.__viewId];\n };\n\n ECharts.prototype._initEvents = function () {\n var _this = this;\n\n each(MOUSE_EVENT_NAMES, function (eveName) {\n var handler = function (e) {\n var ecModel = _this.getModel();\n\n var el = e.target;\n var params;\n var isGlobalOut = eveName === 'globalout'; // no e.target when 'globalout'.\n\n if (isGlobalOut) {\n params = {};\n } else {\n el && findEventDispatcher(el, function (parent) {\n var ecData = getECData(parent);\n\n if (ecData && ecData.dataIndex != null) {\n var dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);\n params = dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {};\n return true;\n } // If element has custom eventData of components\n else if (ecData.eventData) {\n params = zrUtil.extend({}, ecData.eventData);\n return true;\n }\n }, true);\n } // Contract: if params prepared in mouse event,\n // these properties must be specified:\n // {\n // componentType: string (component main type)\n // componentIndex: number\n // }\n // Otherwise event query can not work.\n\n\n if (params) {\n var componentType = params.componentType;\n var componentIndex = params.componentIndex; // Special handling for historic reason: when trigger by\n // markLine/markPoint/markArea, the componentType is\n // 'markLine'/'markPoint'/'markArea', but we should better\n // enable them to be queried by seriesIndex, since their\n // option is set in each series.\n\n if (componentType === 'markLine' || componentType === 'markPoint' || componentType === 'markArea') {\n componentType = 'series';\n componentIndex = params.seriesIndex;\n }\n\n var model = componentType && componentIndex != null && ecModel.getComponent(componentType, componentIndex);\n var view = model && _this[model.mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId];\n\n if (process.env.NODE_ENV !== 'production') {\n // `event.componentType` and `event[componentTpype + 'Index']` must not\n // be missed, otherwise there is no way to distinguish source component.\n // See `dataFormat.getDataParams`.\n if (!isGlobalOut && !(model && view)) {\n console.warn('model or view can not be found by params');\n }\n }\n\n params.event = e;\n params.type = eveName;\n _this._$eventProcessor.eventInfo = {\n targetEl: el,\n packedEvent: params,\n model: model,\n view: view\n };\n\n _this.trigger(eveName, params);\n }\n }; // Consider that some component (like tooltip, brush, ...)\n // register zr event handler, but user event handler might\n // do anything, such as call `setOption` or `dispatchAction`,\n // which probably update any of the content and probably\n // cause problem if it is called previous other inner handlers.\n\n\n handler.zrEventfulCallAtLast = true;\n\n _this._zr.on(eveName, handler, _this);\n });\n each(eventActionMap, function (actionType, eventType) {\n _this._messageCenter.on(eventType, function (event) {\n this.trigger(eventType, event);\n }, _this);\n }); // Extra events\n // TODO register?\n\n each(['selectchanged'], function (eventType) {\n _this._messageCenter.on(eventType, function (event) {\n this.trigger(eventType, event);\n }, _this);\n });\n handleLegacySelectEvents(this._messageCenter, this, this._api);\n };\n\n ECharts.prototype.isDisposed = function () {\n return this._disposed;\n };\n\n ECharts.prototype.clear = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this.setOption({\n series: []\n }, true);\n };\n\n ECharts.prototype.dispose = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._disposed = true;\n modelUtil.setAttribute(this.getDom(), DOM_ATTRIBUTE_KEY, '');\n var api = this._api;\n var ecModel = this._model;\n each(this._componentsViews, function (component) {\n component.dispose(ecModel, api);\n });\n each(this._chartsViews, function (chart) {\n chart.dispose(ecModel, api);\n }); // Dispose after all views disposed\n\n this._zr.dispose();\n\n delete instances[this.id];\n };\n /**\n * Resize the chart\n */\n\n\n ECharts.prototype.resize = function (opts) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this[IN_MAIN_PROCESS_KEY], '`resize` should not be called during main process.');\n }\n\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._zr.resize(opts);\n\n var ecModel = this._model; // Resize loading effect\n\n this._loadingFX && this._loadingFX.resize();\n\n if (!ecModel) {\n return;\n }\n\n var needPrepare = ecModel.resetOption('media');\n var silent = opts && opts.silent; // There is some real cases that:\n // chart.setOption(option, { lazyUpdate: true });\n // chart.resize();\n\n if (this[OPTION_UPDATED_KEY]) {\n if (silent == null) {\n silent = this[OPTION_UPDATED_KEY].silent;\n }\n\n needPrepare = true;\n this[OPTION_UPDATED_KEY] = false;\n }\n\n this[IN_MAIN_PROCESS_KEY] = true;\n needPrepare && prepare(this);\n updateMethods.update.call(this, {\n type: 'resize',\n animation: zrUtil.extend({\n // Disable animation\n duration: 0\n }, opts && opts.animation)\n });\n this[IN_MAIN_PROCESS_KEY] = false;\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n };\n\n ECharts.prototype.showLoading = function (name, cfg) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (isObject(name)) {\n cfg = name;\n name = '';\n }\n\n name = name || 'default';\n this.hideLoading();\n\n if (!loadingEffects[name]) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Loading effects ' + name + ' not exists.');\n }\n\n return;\n }\n\n var el = loadingEffects[name](this._api, cfg);\n var zr = this._zr;\n this._loadingFX = el;\n zr.add(el);\n };\n /**\n * Hide loading effect\n */\n\n\n ECharts.prototype.hideLoading = function () {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n this._loadingFX && this._zr.remove(this._loadingFX);\n this._loadingFX = null;\n };\n\n ECharts.prototype.makeActionFromEvent = function (eventObj) {\n var payload = zrUtil.extend({}, eventObj);\n payload.type = eventActionMap[eventObj.type];\n return payload;\n };\n /**\n * @param opt If pass boolean, means opt.silent\n * @param opt.silent Default `false`. Whether trigger events.\n * @param opt.flush Default `undefined`.\n * true: Flush immediately, and then pixel in canvas can be fetched\n * immediately. Caution: it might affect performance.\n * false: Not flush.\n * undefined: Auto decide whether perform flush.\n */\n\n\n ECharts.prototype.dispatchAction = function (payload, opt) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n if (!isObject(opt)) {\n opt = {\n silent: !!opt\n };\n }\n\n if (!actions[payload.type]) {\n return;\n } // Avoid dispatch action before setOption. Especially in `connect`.\n\n\n if (!this._model) {\n return;\n } // May dispatchAction in rendering procedure\n\n\n if (this[IN_MAIN_PROCESS_KEY]) {\n this._pendingActions.push(payload);\n\n return;\n }\n\n var silent = opt.silent;\n doDispatchAction.call(this, payload, silent);\n var flush = opt.flush;\n\n if (flush) {\n this._zr.flush();\n } else if (flush !== false && env.browser.weChat) {\n // In WeChat embeded browser, `requestAnimationFrame` and `setInterval`\n // hang when sliding page (on touch event), which cause that zr does not\n // refresh util user interaction finished, which is not expected.\n // But `dispatchAction` may be called too frequently when pan on touch\n // screen, which impacts performance if do not throttle them.\n this._throttledZrFlush();\n }\n\n flushPendingActions.call(this, silent);\n triggerUpdatedEvent.call(this, silent);\n };\n\n ECharts.prototype.updateLabelLayout = function () {\n var labelManager = this._labelManager;\n labelManager.updateLayoutConfig(this._api);\n labelManager.layout(this._api);\n labelManager.processLabelsOverall();\n };\n\n ECharts.prototype.appendData = function (params) {\n if (this._disposed) {\n disposedWarning(this.id);\n return;\n }\n\n var seriesIndex = params.seriesIndex;\n var ecModel = this.getModel();\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(params.data && seriesModel);\n }\n\n seriesModel.appendData(params); // Note: `appendData` does not support that update extent of coordinate\n // system, util some scenario require that. In the expected usage of\n // `appendData`, the initial extent of coordinate system should better\n // be fixed by axis `min`/`max` setting or initial data, otherwise if\n // the extent changed while `appendData`, the location of the painted\n // graphic elements have to be changed, which make the usage of\n // `appendData` meaningless.\n\n this._scheduler.unfinished = true;\n this.getZr().wakeUp();\n }; // A work around for no `internal` modifier in ts yet but\n // need to strictly hide private methods to JS users.\n\n\n ECharts.internalField = function () {\n prepare = function (ecIns) {\n var scheduler = ecIns._scheduler;\n scheduler.restorePipelines(ecIns._model);\n scheduler.prepareStageTasks();\n prepareView(ecIns, true);\n prepareView(ecIns, false);\n scheduler.plan();\n };\n /**\n * Prepare view instances of charts and components\n */\n\n\n prepareView = function (ecIns, isComponent) {\n var ecModel = ecIns._model;\n var scheduler = ecIns._scheduler;\n var viewList = isComponent ? ecIns._componentsViews : ecIns._chartsViews;\n var viewMap = isComponent ? ecIns._componentsMap : ecIns._chartsMap;\n var zr = ecIns._zr;\n var api = ecIns._api;\n\n for (var i = 0; i < viewList.length; i++) {\n viewList[i].__alive = false;\n }\n\n isComponent ? ecModel.eachComponent(function (componentType, model) {\n componentType !== 'series' && doPrepare(model);\n }) : ecModel.eachSeries(doPrepare);\n\n function doPrepare(model) {\n // By defaut view will be reused if possible for the case that `setOption` with \"notMerge\"\n // mode and need to enable transition animation. (Usually, when they have the same id, or\n // especially no id but have the same type & name & index. See the `model.id` generation\n // rule in `makeIdAndName` and `viewId` generation rule here).\n // But in `replaceMerge` mode, this feature should be able to disabled when it is clear that\n // the new model has nothing to do with the old model.\n var requireNewView = model.__requireNewView; // This command should not work twice.\n\n model.__requireNewView = false; // Consider: id same and type changed.\n\n var viewId = '_ec_' + model.id + '_' + model.type;\n var view = !requireNewView && viewMap[viewId];\n\n if (!view) {\n var classType = parseClassType(model.type);\n var Clazz = isComponent ? ComponentView.getClass(classType.main, classType.sub) : // FIXME:TS\n // (ChartView as ChartViewConstructor).getClass('series', classType.sub)\n // For backward compat, still support a chart type declared as only subType\n // like \"liquidfill\", but recommend \"series.liquidfill\"\n // But need a base class to make a type series.\n ChartView.getClass(classType.sub);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(Clazz, classType.sub + ' does not exist.');\n }\n\n view = new Clazz();\n view.init(ecModel, api);\n viewMap[viewId] = view;\n viewList.push(view);\n zr.add(view.group);\n }\n\n model.__viewId = view.__id = viewId;\n view.__alive = true;\n view.__model = model;\n view.group.__ecComponentInfo = {\n mainType: model.mainType,\n index: model.componentIndex\n };\n !isComponent && scheduler.prepareView(view, model, ecModel, api);\n }\n\n for (var i = 0; i < viewList.length;) {\n var view = viewList[i];\n\n if (!view.__alive) {\n !isComponent && view.renderTask.dispose();\n zr.remove(view.group);\n view.dispose(ecModel, api);\n viewList.splice(i, 1);\n\n if (viewMap[view.__id] === view) {\n delete viewMap[view.__id];\n }\n\n view.__id = view.group.__ecComponentInfo = null;\n } else {\n i++;\n }\n }\n };\n\n updateDirectly = function (ecIns, method, payload, mainType, subType) {\n var ecModel = ecIns._model;\n ecModel.setUpdatePayload(payload); // broadcast\n\n if (!mainType) {\n // FIXME\n // Chart will not be update directly here, except set dirty.\n // But there is no such scenario now.\n each([].concat(ecIns._componentsViews).concat(ecIns._chartsViews), callView);\n return;\n }\n\n var query = {};\n query[mainType + 'Id'] = payload[mainType + 'Id'];\n query[mainType + 'Index'] = payload[mainType + 'Index'];\n query[mainType + 'Name'] = payload[mainType + 'Name'];\n var condition = {\n mainType: mainType,\n query: query\n };\n subType && (condition.subType = subType); // subType may be '' by parseClassType;\n\n var excludeSeriesId = payload.excludeSeriesId;\n var excludeSeriesIdMap;\n\n if (excludeSeriesId != null) {\n excludeSeriesIdMap = zrUtil.createHashMap();\n each(modelUtil.normalizeToArray(excludeSeriesId), function (id) {\n var modelId = modelUtil.convertOptionIdName(id, null);\n\n if (modelId != null) {\n excludeSeriesIdMap.set(modelId, true);\n }\n });\n }\n\n if (isHighDownPayload(payload)) {\n allLeaveBlur(ecIns._api);\n } // If dispatchAction before setOption, do nothing.\n\n\n ecModel && ecModel.eachComponent(condition, function (model) {\n if (!excludeSeriesIdMap || excludeSeriesIdMap.get(model.id) == null) {\n if (isHighDownPayload(payload)) {\n if (model instanceof SeriesModel) {\n if (payload.type === HIGHLIGHT_ACTION_TYPE && !payload.notBlur) {\n blurSeriesFromHighlightPayload(model, payload, ecIns._api);\n }\n } else {\n var _a = findComponentHighDownDispatchers(model.mainType, model.componentIndex, payload.name, ecIns._api),\n focusSelf = _a.focusSelf,\n dispatchers = _a.dispatchers;\n\n if (payload.type === HIGHLIGHT_ACTION_TYPE && focusSelf && !payload.notBlur) {\n blurComponent(model.mainType, model.componentIndex, ecIns._api);\n } // PENDING:\n // Whether to put this \"enter emphasis\" code in `ComponentView`,\n // which will be the same as `ChartView` but might be not necessary\n // and will be far from this logic.\n\n\n if (dispatchers) {\n each(dispatchers, function (dispatcher) {\n payload.type === HIGHLIGHT_ACTION_TYPE ? enterEmphasis(dispatcher) : leaveEmphasis(dispatcher);\n });\n }\n }\n } else if (isSelectChangePayload(payload)) {\n // TODO geo\n if (model instanceof SeriesModel) {\n toggleSelectionFromPayload(model, payload, ecIns._api);\n updateSeriesElementSelection(model);\n markStatusToUpdate(ecIns);\n }\n }\n\n callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]);\n }\n }, ecIns);\n\n function callView(view) {\n view && view.__alive && view[method] && view[method](view.__model, ecModel, ecIns._api, payload);\n }\n };\n\n updateMethods = {\n prepareAndUpdate: function (payload) {\n prepare(this);\n updateMethods.update.call(this, payload);\n },\n update: function (payload) {\n // console.profile && console.profile('update');\n var ecModel = this._model;\n var api = this._api;\n var zr = this._zr;\n var coordSysMgr = this._coordSysMgr;\n var scheduler = this._scheduler; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n scheduler.restoreData(ecModel, payload);\n scheduler.performSeriesTasks(ecModel); // TODO\n // Save total ecModel here for undo/redo (after restoring data and before processing data).\n // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.\n // Create new coordinate system each update\n // In LineView may save the old coordinate system and use it to get the orignal point\n\n coordSysMgr.create(ecModel, api);\n scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update\n // stream modes after data processing, where the filtered data is used to\n // deteming whether use progressive rendering.\n\n updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info\n // can be fetched when coord sys updating (consider the barGrid extent fix). But\n // the drawback is the full coord info can not be fetched. Fortunately this full\n // coord is not requied in stream mode updater currently.\n\n coordSysMgr.update(ecModel, api);\n clearColorPalette(ecModel);\n scheduler.performVisualTasks(ecModel, payload);\n render(this, ecModel, api, payload); // Set background\n\n var backgroundColor = ecModel.get('backgroundColor') || 'transparent';\n var darkMode = ecModel.get('darkMode'); // In IE8\n\n if (!env.canvasSupported) {\n var colorArr = colorTool.parse(backgroundColor);\n backgroundColor = colorTool.stringify(colorArr, 'rgb');\n\n if (colorArr[3] === 0) {\n backgroundColor = 'transparent';\n }\n } else {\n zr.setBackgroundColor(backgroundColor); // Force set dark mode.\n\n if (darkMode != null && darkMode !== 'auto') {\n zr.setDarkMode(darkMode);\n }\n }\n\n performPostUpdateFuncs(ecModel, api); // console.profile && console.profileEnd('update');\n },\n updateTransform: function (payload) {\n var _this = this;\n\n var ecModel = this._model;\n var api = this._api; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload); // ChartView.markUpdateMethod(payload, 'updateTransform');\n\n var componentDirtyList = [];\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType === 'series') {\n return;\n }\n\n var componentView = _this.getViewOfComponentModel(componentModel);\n\n if (componentView && componentView.__alive) {\n if (componentView.updateTransform) {\n var result = componentView.updateTransform(componentModel, ecModel, api, payload);\n result && result.update && componentDirtyList.push(componentView);\n } else {\n componentDirtyList.push(componentView);\n }\n }\n });\n var seriesDirtyMap = zrUtil.createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n var chartView = _this._chartsMap[seriesModel.__viewId];\n\n if (chartView.updateTransform) {\n var result = chartView.updateTransform(seriesModel, ecModel, api, payload);\n result && result.update && seriesDirtyMap.set(seriesModel.uid, 1);\n } else {\n seriesDirtyMap.set(seriesModel.uid, 1);\n }\n });\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n setDirty: true,\n dirtyMap: seriesDirtyMap\n }); // Currently, not call render of components. Geo render cost a lot.\n // renderComponents(ecIns, ecModel, api, payload, componentDirtyList);\n\n\n renderSeries(this, ecModel, api, payload, seriesDirtyMap);\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateView: function (payload) {\n var ecModel = this._model; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload);\n ChartView.markUpdateMethod(payload, 'updateView');\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n setDirty: true\n });\n\n render(this, this._model, this._api, payload);\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateVisual: function (payload) {\n // updateMethods.update.call(this, payload);\n var _this = this;\n\n var ecModel = this._model; // update before setOption\n\n if (!ecModel) {\n return;\n }\n\n ecModel.setUpdatePayload(payload); // clear all visual\n\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.getData().clearAllVisual();\n }); // Perform visual\n\n ChartView.markUpdateMethod(payload, 'updateVisual');\n clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.\n\n this._scheduler.performVisualTasks(ecModel, payload, {\n visualType: 'visual',\n setDirty: true\n });\n\n ecModel.eachComponent(function (componentType, componentModel) {\n if (componentType !== 'series') {\n var componentView = _this.getViewOfComponentModel(componentModel);\n\n componentView && componentView.__alive && componentView.updateVisual(componentModel, ecModel, _this._api, payload);\n }\n });\n ecModel.eachSeries(function (seriesModel) {\n var chartView = _this._chartsMap[seriesModel.__viewId];\n chartView.updateVisual(seriesModel, ecModel, _this._api, payload);\n });\n performPostUpdateFuncs(ecModel, this._api);\n },\n updateLayout: function (payload) {\n updateMethods.update.call(this, payload);\n }\n };\n\n doConvertPixel = function (ecIns, methodName, finder, value) {\n if (ecIns._disposed) {\n disposedWarning(ecIns.id);\n return;\n }\n\n var ecModel = ecIns._model;\n\n var coordSysList = ecIns._coordSysMgr.getCoordinateSystems();\n\n var result;\n var parsedFinder = modelUtil.parseFinder(ecModel, finder);\n\n for (var i = 0; i < coordSysList.length; i++) {\n var coordSys = coordSysList[i];\n\n if (coordSys[methodName] && (result = coordSys[methodName](ecModel, parsedFinder, value)) != null) {\n return result;\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n console.warn('No coordinate system that supports ' + methodName + ' found by the given finder.');\n }\n };\n\n updateStreamModes = function (ecIns, ecModel) {\n var chartsMap = ecIns._chartsMap;\n var scheduler = ecIns._scheduler;\n ecModel.eachSeries(function (seriesModel) {\n scheduler.updateStreamModes(seriesModel, chartsMap[seriesModel.__viewId]);\n });\n };\n\n doDispatchAction = function (payload, silent) {\n var _this = this;\n\n var ecModel = this.getModel();\n var payloadType = payload.type;\n var escapeConnect = payload.escapeConnect;\n var actionWrap = actions[payloadType];\n var actionInfo = actionWrap.actionInfo;\n var cptTypeTmp = (actionInfo.update || 'update').split(':');\n var updateMethod = cptTypeTmp.pop();\n var cptType = cptTypeTmp[0] != null && parseClassType(cptTypeTmp[0]);\n this[IN_MAIN_PROCESS_KEY] = true;\n var payloads = [payload];\n var batched = false; // Batch action\n\n if (payload.batch) {\n batched = true;\n payloads = zrUtil.map(payload.batch, function (item) {\n item = zrUtil.defaults(zrUtil.extend({}, item), payload);\n item.batch = null;\n return item;\n });\n }\n\n var eventObjBatch = [];\n var eventObj;\n var isSelectChange = isSelectChangePayload(payload);\n var isHighDown = isHighDownPayload(payload);\n each(payloads, function (batchItem) {\n // Action can specify the event by return it.\n eventObj = actionWrap.action(batchItem, _this._model, _this._api); // Emit event outside\n\n eventObj = eventObj || zrUtil.extend({}, batchItem); // Convert type to eventType\n\n eventObj.type = actionInfo.event || eventObj.type;\n eventObjBatch.push(eventObj); // light update does not perform data process, layout and visual.\n\n if (isHighDown) {\n var _a = modelUtil.preParseFinder(payload),\n queryOptionMap = _a.queryOptionMap,\n mainTypeSpecified = _a.mainTypeSpecified;\n\n var componentMainType = mainTypeSpecified ? queryOptionMap.keys()[0] : 'series';\n updateDirectly(_this, updateMethod, batchItem, componentMainType);\n markStatusToUpdate(_this);\n } else if (isSelectChange) {\n // At present `dispatchAction({ type: 'select', ... })` is not supported on components.\n // geo still use 'geoselect'.\n updateDirectly(_this, updateMethod, batchItem, 'series');\n markStatusToUpdate(_this);\n } else if (cptType) {\n updateDirectly(_this, updateMethod, batchItem, cptType.main, cptType.sub);\n }\n });\n\n if (updateMethod !== 'none' && !isHighDown && !isSelectChange && !cptType) {\n // Still dirty\n if (this[OPTION_UPDATED_KEY]) {\n prepare(this);\n updateMethods.update.call(this, payload);\n this[OPTION_UPDATED_KEY] = false;\n } else {\n updateMethods[updateMethod].call(this, payload);\n }\n } // Follow the rule of action batch\n\n\n if (batched) {\n eventObj = {\n type: actionInfo.event || payloadType,\n escapeConnect: escapeConnect,\n batch: eventObjBatch\n };\n } else {\n eventObj = eventObjBatch[0];\n }\n\n this[IN_MAIN_PROCESS_KEY] = false;\n\n if (!silent) {\n var messageCenter = this._messageCenter;\n messageCenter.trigger(eventObj.type, eventObj); // Extra triggered 'selectchanged' event\n\n if (isSelectChange) {\n var newObj = {\n type: 'selectchanged',\n escapeConnect: escapeConnect,\n selected: getAllSelectedIndices(ecModel),\n isFromClick: payload.isFromClick || false,\n fromAction: payload.type,\n fromActionPayload: payload\n };\n messageCenter.trigger(newObj.type, newObj);\n }\n }\n };\n\n flushPendingActions = function (silent) {\n var pendingActions = this._pendingActions;\n\n while (pendingActions.length) {\n var payload = pendingActions.shift();\n doDispatchAction.call(this, payload, silent);\n }\n };\n\n triggerUpdatedEvent = function (silent) {\n !silent && this.trigger('updated');\n };\n /**\n * Event `rendered` is triggered when zr\n * rendered. It is useful for realtime\n * snapshot (reflect animation).\n *\n * Event `finished` is triggered when:\n * (1) zrender rendering finished.\n * (2) initial animation finished.\n * (3) progressive rendering finished.\n * (4) no pending action.\n * (5) no delayed setOption needs to be processed.\n */\n\n\n bindRenderedEvent = function (zr, ecIns) {\n zr.on('rendered', function (params) {\n ecIns.trigger('rendered', params); // The `finished` event should not be triggered repeatly,\n // so it should only be triggered when rendering indeed happend\n // in zrender. (Consider the case that dipatchAction is keep\n // triggering when mouse move).\n\n if ( // Although zr is dirty if initial animation is not finished\n // and this checking is called on frame, we also check\n // animation finished for robustness.\n zr.animation.isFinished() && !ecIns[OPTION_UPDATED_KEY] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) {\n ecIns.trigger('finished');\n }\n });\n };\n\n bindMouseEvent = function (zr, ecIns) {\n zr.on('mouseover', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n\n if (dispatcher) {\n handleGlobalMouseOverForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('mouseout', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, isHighDownDispatcher);\n\n if (dispatcher) {\n handleGlboalMouseOutForHighDown(dispatcher, e, ecIns._api);\n markStatusToUpdate(ecIns);\n }\n }).on('click', function (e) {\n var el = e.target;\n var dispatcher = findEventDispatcher(el, function (target) {\n return getECData(target).dataIndex != null;\n }, true);\n\n if (dispatcher) {\n var actionType = dispatcher.selected ? 'unselect' : 'select';\n var ecData = getECData(dispatcher);\n\n ecIns._api.dispatchAction({\n type: actionType,\n dataType: ecData.dataType,\n dataIndexInside: ecData.dataIndex,\n seriesIndex: ecData.seriesIndex,\n isFromClick: true\n });\n }\n });\n };\n\n clearColorPalette = function (ecModel) {\n ecModel.clearColorPalette();\n ecModel.eachSeries(function (seriesModel) {\n seriesModel.clearColorPalette();\n });\n };\n\n render = function (ecIns, ecModel, api, payload) {\n renderComponents(ecIns, ecModel, api, payload);\n each(ecIns._chartsViews, function (chart) {\n chart.__alive = false;\n });\n renderSeries(ecIns, ecModel, api, payload); // Remove groups of unrendered charts\n\n each(ecIns._chartsViews, function (chart) {\n if (!chart.__alive) {\n chart.remove(ecModel, api);\n }\n });\n };\n\n renderComponents = function (ecIns, ecModel, api, payload, dirtyList) {\n each(dirtyList || ecIns._componentsViews, function (componentView) {\n var componentModel = componentView.__model;\n clearStates(componentModel, componentView);\n componentView.render(componentModel, ecModel, api, payload);\n updateZ(componentModel, componentView);\n updateStates(componentModel, componentView);\n });\n };\n /**\n * Render each chart and component\n */\n\n\n renderSeries = function (ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var labelManager = ecIns._labelManager;\n labelManager.clearLabels();\n var unfinished = false;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload); // TODO states on marker.\n\n clearStates(seriesModel, chartView);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n if (renderTask.perform(scheduler.getPerformArgs(renderTask))) {\n unfinished = true;\n }\n\n seriesModel.__transientTransitionOpt = null;\n chartView.group.silent = !!seriesModel.get('silent'); // Should not call markRedraw on group, because it will disable zrender\n // increamental render (alway render from the __startIndex each frame)\n // chartView.group.markRedraw();\n\n updateBlend(seriesModel, chartView);\n updateSeriesElementSelection(seriesModel); // Add labels.\n\n labelManager.addLabelsOfSeries(chartView);\n });\n scheduler.unfinished = unfinished || scheduler.unfinished;\n labelManager.updateLayoutConfig(api);\n labelManager.layout(api);\n labelManager.processLabelsOverall();\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId]; // Update Z after labels updated. Before applying states.\n\n updateZ(seriesModel, chartView); // NOTE: Update states after label is updated.\n // label should be in normal status when layouting.\n\n updateStates(seriesModel, chartView);\n }); // If use hover layer\n\n updateHoverLayerStatus(ecIns, ecModel);\n };\n\n performPostUpdateFuncs = function (ecModel, api) {\n each(postUpdateFuncs, function (func) {\n func(ecModel, api);\n });\n };\n\n markStatusToUpdate = function (ecIns) {\n ecIns[STATUS_NEEDS_UPDATE_KEY] = true; // Wake up zrender if it's sleep. Let it update states in the next frame.\n\n ecIns.getZr().wakeUp();\n };\n\n applyChangedStates = function (ecIns) {\n if (!ecIns[STATUS_NEEDS_UPDATE_KEY]) {\n return;\n }\n\n ecIns.getZr().storage.traverse(function (el) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n applyElementStates(el);\n });\n ecIns[STATUS_NEEDS_UPDATE_KEY] = false;\n };\n\n function applyElementStates(el) {\n var newStates = [];\n var oldStates = el.currentStates; // Keep other states.\n\n for (var i = 0; i < oldStates.length; i++) {\n var stateName = oldStates[i];\n\n if (!(stateName === 'emphasis' || stateName === 'blur' || stateName === 'select')) {\n newStates.push(stateName);\n }\n } // Only use states when it's exists.\n\n\n if (el.selected && el.states.select) {\n newStates.push('select');\n }\n\n if (el.hoverState === HOVER_STATE_EMPHASIS && el.states.emphasis) {\n newStates.push('emphasis');\n } else if (el.hoverState === HOVER_STATE_BLUR && el.states.blur) {\n newStates.push('blur');\n }\n\n el.useStates(newStates);\n }\n\n function updateHoverLayerStatus(ecIns, ecModel) {\n var zr = ecIns._zr;\n var storage = zr.storage;\n var elCount = 0;\n storage.traverse(function (el) {\n if (!el.isGroup) {\n elCount++;\n }\n });\n\n if (elCount > ecModel.get('hoverLayerThreshold') && !env.node && !env.worker) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.preventUsingHoverLayer) {\n return;\n }\n\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n\n if (chartView.__alive) {\n chartView.group.traverse(function (el) {\n if (el.states.emphasis) {\n el.states.emphasis.hoverLayer = true;\n }\n });\n }\n });\n }\n }\n\n ;\n /**\n * Update chart and blend.\n */\n\n function updateBlend(seriesModel, chartView) {\n var blendMode = seriesModel.get('blendMode') || null;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!env.canvasSupported && blendMode && blendMode !== 'source-over') {\n console.warn('Only canvas support blendMode');\n }\n }\n\n chartView.group.traverse(function (el) {\n // FIXME marker and other components\n if (!el.isGroup) {\n // DONT mark the element dirty. In case element is incremental and don't wan't to rerender.\n el.style.blend = blendMode;\n }\n\n if (el.eachPendingDisplayable) {\n el.eachPendingDisplayable(function (displayable) {\n displayable.style.blend = blendMode;\n });\n }\n });\n }\n\n ;\n\n function updateZ(model, view) {\n if (model.preventAutoZ) {\n return;\n } // Set z and zlevel\n\n\n _updateZ(view.group, model.get('z') || 0, model.get('zlevel') || 0, -Infinity);\n }\n\n ;\n\n function _updateZ(el, z, zlevel, maxZ2) {\n // Group may also have textContent\n var label = el.getTextContent();\n var labelLine = el.getTextGuideLine();\n var isGroup = el.isGroup;\n\n if (isGroup) {\n // set z & zlevel of children elements of Group\n // el.traverse((childEl: Element) => _updateZ(childEl, z, zlevel));\n var children = el.childrenRef();\n\n for (var i = 0; i < children.length; i++) {\n maxZ2 = Math.max(_updateZ(children[i], z, zlevel, maxZ2), maxZ2);\n }\n } else {\n // not Group\n el.z = z;\n el.zlevel = zlevel;\n maxZ2 = Math.max(el.z2, maxZ2);\n } // always set z and zlevel if label/labelLine exists\n\n\n if (label) {\n label.z = z;\n label.zlevel = zlevel; // lift z2 of text content\n // TODO if el.emphasis.z2 is spcefied, what about textContent.\n\n isFinite(maxZ2) && (label.z2 = maxZ2 + 2);\n }\n\n if (labelLine) {\n var textGuideLineConfig = el.textGuideLineConfig;\n labelLine.z = z;\n labelLine.zlevel = zlevel;\n isFinite(maxZ2) && (labelLine.z2 = maxZ2 + (textGuideLineConfig && textGuideLineConfig.showAbove ? 1 : -1));\n }\n\n return maxZ2;\n } // Clear states without animation.\n // TODO States on component.\n\n\n function clearStates(model, view) {\n view.group.traverse(function (el) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine();\n\n if (el.stateTransition) {\n el.stateTransition = null;\n }\n\n if (textContent && textContent.stateTransition) {\n textContent.stateTransition = null;\n }\n\n if (textGuide && textGuide.stateTransition) {\n textGuide.stateTransition = null;\n } // TODO If el is incremental.\n\n\n if (el.hasState()) {\n el.prevStates = el.currentStates;\n el.clearStates();\n } else if (el.prevStates) {\n el.prevStates = null;\n }\n });\n }\n\n function updateStates(model, view) {\n var stateAnimationModel = model.getModel('stateAnimation');\n var enableAnimation = model.isAnimationEnabled();\n var duration = stateAnimationModel.get('duration');\n var stateTransition = duration > 0 ? {\n duration: duration,\n delay: stateAnimationModel.get('delay'),\n easing: stateAnimationModel.get('easing') // additive: stateAnimationModel.get('additive')\n\n } : null;\n view.group.traverse(function (el) {\n if (el.states && el.states.emphasis) {\n // Not applied on removed elements, it may still in fading.\n if (graphic.isElementRemoved(el)) {\n return;\n }\n\n if (el instanceof graphic.Path) {\n savePathStates(el);\n } // Only updated on changed element. In case element is incremental and don't wan't to rerender.\n // TODO, a more proper way?\n\n\n if (el.__dirty) {\n var prevStates = el.prevStates; // Restore states without animation\n\n if (prevStates) {\n el.useStates(prevStates);\n }\n } // Update state transition and enable animation again.\n\n\n if (enableAnimation) {\n el.stateTransition = stateTransition;\n var textContent = el.getTextContent();\n var textGuide = el.getTextGuideLine(); // TODO Is it necessary to animate label?\n\n if (textContent) {\n textContent.stateTransition = stateTransition;\n }\n\n if (textGuide) {\n textGuide.stateTransition = stateTransition;\n }\n } // The use higlighted and selected flag to toggle states.\n\n\n if (el.__dirty) {\n applyElementStates(el);\n }\n }\n });\n }\n\n ;\n\n createExtensionAPI = function (ecIns) {\n return new (\n /** @class */\n function (_super) {\n __extends(class_1, _super);\n\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n class_1.prototype.getCoordinateSystems = function () {\n return ecIns._coordSysMgr.getCoordinateSystems();\n };\n\n class_1.prototype.getComponentByElement = function (el) {\n while (el) {\n var modelInfo = el.__ecComponentInfo;\n\n if (modelInfo != null) {\n return ecIns._model.getComponent(modelInfo.mainType, modelInfo.index);\n }\n\n el = el.parent;\n }\n };\n\n class_1.prototype.enterEmphasis = function (el, highlightDigit) {\n enterEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveEmphasis = function (el, highlightDigit) {\n leaveEmphasis(el, highlightDigit);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.enterBlur = function (el) {\n enterBlur(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveBlur = function (el) {\n leaveBlur(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.enterSelect = function (el) {\n enterSelect(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.leaveSelect = function (el) {\n leaveSelect(el);\n markStatusToUpdate(ecIns);\n };\n\n class_1.prototype.getModel = function () {\n return ecIns.getModel();\n };\n\n class_1.prototype.getViewOfComponentModel = function (componentModel) {\n return ecIns.getViewOfComponentModel(componentModel);\n };\n\n class_1.prototype.getViewOfSeriesModel = function (seriesModel) {\n return ecIns.getViewOfSeriesModel(seriesModel);\n };\n\n return class_1;\n }(ExtensionAPI))(ecIns);\n };\n\n enableConnect = function (chart) {\n function updateConnectedChartsStatus(charts, status) {\n for (var i = 0; i < charts.length; i++) {\n var otherChart = charts[i];\n otherChart[CONNECT_STATUS_KEY] = status;\n }\n }\n\n each(eventActionMap, function (actionType, eventType) {\n chart._messageCenter.on(eventType, function (event) {\n if (connectedGroups[chart.group] && chart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_PENDING) {\n if (event && event.escapeConnect) {\n return;\n }\n\n var action_1 = chart.makeActionFromEvent(event);\n var otherCharts_1 = [];\n each(instances, function (otherChart) {\n if (otherChart !== chart && otherChart.group === chart.group) {\n otherCharts_1.push(otherChart);\n }\n });\n updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_PENDING);\n each(otherCharts_1, function (otherChart) {\n if (otherChart[CONNECT_STATUS_KEY] !== CONNECT_STATUS_UPDATING) {\n otherChart.dispatchAction(action_1);\n }\n });\n updateConnectedChartsStatus(otherCharts_1, CONNECT_STATUS_UPDATED);\n }\n });\n });\n };\n\n setTransitionOpt = function (chart, transitionOpt) {\n var ecModel = chart._model;\n zrUtil.each(modelUtil.normalizeToArray(transitionOpt), function (transOpt) {\n var errMsg;\n var fromOpt = transOpt.from;\n var toOpt = transOpt.to;\n\n if (toOpt == null) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition.to` must be specified.';\n }\n\n throwError(errMsg);\n }\n\n var finderOpt = {\n includeMainTypes: ['series'],\n enableAll: false,\n enableNone: false\n };\n var fromResult = fromOpt ? modelUtil.parseFinder(ecModel, fromOpt, finderOpt) : null;\n var toResult = modelUtil.parseFinder(ecModel, toOpt, finderOpt);\n var toSeries = toResult.seriesModel;\n\n if (toSeries == null) {\n errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition` is only supported on series.';\n }\n }\n\n if (fromResult && fromResult.seriesModel !== toSeries) {\n errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = '`transition.from` and `transition.to` must be specified to the same series.';\n }\n }\n\n if (errMsg != null) {\n throwError(errMsg);\n } // Just a temp solution: mount them on series.\n\n\n toSeries.__transientTransitionOpt = {\n from: fromOpt ? fromOpt.dimension : null,\n to: toOpt.dimension,\n dividingMethod: transOpt.dividingMethod\n };\n });\n };\n }();\n\n return ECharts;\n}(Eventful);\n\nvar echartsProto = ECharts.prototype;\nechartsProto.on = createRegisterEventWithLowercaseECharts('on');\nechartsProto.off = createRegisterEventWithLowercaseECharts('off');\n/**\n * @deprecated\n */\n// @ts-ignore\n\nechartsProto.one = function (eventName, cb, ctx) {\n var self = this;\n deprecateLog('ECharts#one is deprecated.');\n\n function wrapped() {\n var args2 = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args2[_i] = arguments[_i];\n }\n\n cb && cb.apply && cb.apply(this, args2); // @ts-ignore\n\n self.off(eventName, wrapped);\n }\n\n ; // @ts-ignore\n\n this.on.call(this, eventName, wrapped, ctx);\n}; // /**\n// * Encode visual infomation from data after data processing\n// *\n// * @param {module:echarts/model/Global} ecModel\n// * @param {object} layout\n// * @param {boolean} [layoutFilter] `true`: only layout,\n// * `false`: only not layout,\n// * `null`/`undefined`: all.\n// * @param {string} taskBaseTag\n// * @private\n// */\n// function startVisualEncoding(ecIns, ecModel, api, payload, layoutFilter) {\n// each(visualFuncs, function (visual, index) {\n// let isLayout = visual.isLayout;\n// if (layoutFilter == null\n// || (layoutFilter === false && !isLayout)\n// || (layoutFilter === true && isLayout)\n// ) {\n// visual.func(ecModel, api, payload);\n// }\n// });\n// }\n\n\nvar MOUSE_EVENT_NAMES = ['click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu'];\n\nfunction disposedWarning(id) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Instance ' + id + ' has been disposed');\n }\n}\n\nvar actions = {};\n/**\n * Map eventType to actionType\n */\n\nvar eventActionMap = {};\nvar dataProcessorFuncs = [];\nvar optionPreprocessorFuncs = [];\nvar postInitFuncs = [];\nvar postUpdateFuncs = [];\nvar visualFuncs = [];\nvar themeStorage = {};\nvar loadingEffects = {};\nvar instances = {};\nvar connectedGroups = {};\nvar idBase = +new Date() - 0;\nvar groupIdBase = +new Date() - 0;\nvar DOM_ATTRIBUTE_KEY = '_echarts_instance_';\n/**\n * @param opts.devicePixelRatio Use window.devicePixelRatio by default\n * @param opts.renderer Can choose 'canvas' or 'svg' to render the chart.\n * @param opts.width Use clientWidth of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n * @param opts.height Use clientHeight of the input `dom` by default.\n * Can be 'auto' (the same as null/undefined)\n */\n\nexport function init(dom, theme, opts) {\n if (process.env.NODE_ENV !== 'production') {\n if (!dom) {\n throw new Error('Initialize failed: invalid dom.');\n }\n }\n\n var existInstance = getInstanceByDom(dom);\n\n if (existInstance) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('There is a chart instance already initialized on the dom.');\n }\n\n return existInstance;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (zrUtil.isDom(dom) && dom.nodeName.toUpperCase() !== 'CANVAS' && (!dom.clientWidth && (!opts || opts.width == null) || !dom.clientHeight && (!opts || opts.height == null))) {\n console.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.');\n }\n }\n\n var chart = new ECharts(dom, theme, opts);\n chart.id = 'ec_' + idBase++;\n instances[chart.id] = chart;\n modelUtil.setAttribute(dom, DOM_ATTRIBUTE_KEY, chart.id);\n enableConnect(chart);\n each(postInitFuncs, function (postInitFunc) {\n postInitFunc(chart);\n });\n return chart;\n}\n/**\n * @usage\n * (A)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * chart1.group = 'xxx';\n * chart2.group = 'xxx';\n * echarts.connect('xxx');\n * ```\n * (B)\n * ```js\n * let chart1 = echarts.init(dom1);\n * let chart2 = echarts.init(dom2);\n * echarts.connect('xxx', [chart1, chart2]);\n * ```\n */\n\nexport function connect(groupId) {\n // Is array of charts\n if (zrUtil.isArray(groupId)) {\n var charts = groupId;\n groupId = null; // If any chart has group\n\n each(charts, function (chart) {\n if (chart.group != null) {\n groupId = chart.group;\n }\n });\n groupId = groupId || 'g_' + groupIdBase++;\n each(charts, function (chart) {\n chart.group = groupId;\n });\n }\n\n connectedGroups[groupId] = true;\n return groupId;\n}\n/**\n * @deprecated\n */\n\nexport function disConnect(groupId) {\n connectedGroups[groupId] = false;\n}\n/**\n * Alias and backword compat\n */\n\nexport var disconnect = disConnect;\n/**\n * Dispose a chart instance\n */\n\nexport function dispose(chart) {\n if (typeof chart === 'string') {\n chart = instances[chart];\n } else if (!(chart instanceof ECharts)) {\n // Try to treat as dom\n chart = getInstanceByDom(chart);\n }\n\n if (chart instanceof ECharts && !chart.isDisposed()) {\n chart.dispose();\n }\n}\nexport function getInstanceByDom(dom) {\n return instances[modelUtil.getAttribute(dom, DOM_ATTRIBUTE_KEY)];\n}\nexport function getInstanceById(key) {\n return instances[key];\n}\n/**\n * Register theme\n */\n\nexport function registerTheme(name, theme) {\n themeStorage[name] = theme;\n}\n/**\n * Register option preprocessor\n */\n\nexport function registerPreprocessor(preprocessorFunc) {\n if (indexOf(optionPreprocessorFuncs, preprocessorFunc) < 0) {\n optionPreprocessorFuncs.push(preprocessorFunc);\n }\n}\nexport function registerProcessor(priority, processor) {\n normalizeRegister(dataProcessorFuncs, priority, processor, PRIORITY_PROCESSOR_DEFAULT);\n}\n/**\n * Register postIniter\n * @param {Function} postInitFunc\n */\n\nexport function registerPostInit(postInitFunc) {\n if (indexOf(postInitFuncs, postInitFunc) < 0) {\n postInitFunc && postInitFuncs.push(postInitFunc);\n }\n}\n/**\n * Register postUpdater\n * @param {Function} postUpdateFunc\n */\n\nexport function registerPostUpdate(postUpdateFunc) {\n if (indexOf(postUpdateFuncs, postUpdateFunc) < 0) {\n postUpdateFunc && postUpdateFuncs.push(postUpdateFunc);\n }\n}\nexport function registerAction(actionInfo, eventName, action) {\n if (typeof eventName === 'function') {\n action = eventName;\n eventName = '';\n }\n\n var actionType = isObject(actionInfo) ? actionInfo.type : [actionInfo, actionInfo = {\n event: eventName\n }][0]; // Event name is all lowercase\n\n actionInfo.event = (actionInfo.event || actionType).toLowerCase();\n eventName = actionInfo.event;\n\n if (eventActionMap[eventName]) {\n // Already registered.\n return;\n } // Validate action type and event name.\n\n\n assert(ACTION_REG.test(actionType) && ACTION_REG.test(eventName));\n\n if (!actions[actionType]) {\n actions[actionType] = {\n action: action,\n actionInfo: actionInfo\n };\n }\n\n eventActionMap[eventName] = actionType;\n}\nexport function registerCoordinateSystem(type, coordSysCreator) {\n CoordinateSystemManager.register(type, coordSysCreator);\n}\n/**\n * Get dimensions of specified coordinate system.\n * @param {string} type\n * @return {Array.}\n */\n\nexport function getCoordinateSystemDimensions(type) {\n var coordSysCreator = CoordinateSystemManager.get(type);\n\n if (coordSysCreator) {\n return coordSysCreator.getDimensionsInfo ? coordSysCreator.getDimensionsInfo() : coordSysCreator.dimensions.slice();\n }\n}\nexport { registerLocale } from './locale';\n\nfunction registerLayout(priority, layoutTask) {\n normalizeRegister(visualFuncs, priority, layoutTask, PRIORITY_VISUAL_LAYOUT, 'layout');\n}\n\nfunction registerVisual(priority, visualTask) {\n normalizeRegister(visualFuncs, priority, visualTask, PRIORITY_VISUAL_CHART, 'visual');\n}\n\nexport { registerLayout, registerVisual };\nvar registeredTasks = [];\n\nfunction normalizeRegister(targetList, priority, fn, defaultPriority, visualType) {\n if (isFunction(priority) || isObject(priority)) {\n fn = priority;\n priority = defaultPriority;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isNaN(priority) || priority == null) {\n throw new Error('Illegal priority');\n } // Check duplicate\n\n\n each(targetList, function (wrap) {\n assert(wrap.__raw !== fn);\n });\n } // Already registered\n\n\n if (indexOf(registeredTasks, fn) >= 0) {\n return;\n }\n\n registeredTasks.push(fn);\n var stageHandler = Scheduler.wrapStageHandler(fn, visualType);\n stageHandler.__prio = priority;\n stageHandler.__raw = fn;\n targetList.push(stageHandler);\n}\n\nexport function registerLoading(name, loadingFx) {\n loadingEffects[name] = loadingFx;\n}\n/**\n * ZRender need a canvas context to do measureText.\n * But in node environment canvas may be created by node-canvas.\n * So we need to specify how to create a canvas instead of using document.createElement('canvas')\n *\n * Be careful of using it in the browser.\n *\n * @example\n * let Canvas = require('canvas');\n * let echarts = require('echarts');\n * echarts.setCanvasCreator(function () {\n * // Small size is enough.\n * return new Canvas(32, 32);\n * });\n */\n\nexport function setCanvasCreator(creator) {\n zrUtil.$override('createCanvas', creator);\n}\n/**\n * The parameters and usage: see `geoSourceManager.registerMap`.\n * Compatible with previous `echarts.registerMap`.\n */\n\nexport function registerMap(mapName, geoJson, specialAreas) {\n geoSourceManager.registerMap(mapName, geoJson, specialAreas);\n}\nexport function getMap(mapName) {\n return geoSourceManager.getMapForUser(mapName);\n}\nexport var registerTransform = registerExternalTransform;\n/**\n * Globa dispatchAction to a specified chart instance.\n */\n// export function dispatchAction(payload: { chartId: string } & Payload, opt?: Parameters[1]) {\n// if (!payload || !payload.chartId) {\n// // Must have chartId to find chart\n// return;\n// }\n// const chart = instances[payload.chartId];\n// if (chart) {\n// chart.dispatchAction(payload, opt);\n// }\n// }\n// Buitlin global visual\n\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataStyleTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataColorPaletteTask);\nregisterVisual(PRIORITY_VISUAL_GLOBAL, seriesSymbolTask);\nregisterVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM, dataSymbolTask);\nregisterVisual(PRIORITY_VISUAL_DECAL, decal);\nregisterPreprocessor(backwardCompat);\nregisterProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);\nregisterLoading('default', loadingDefault); // Default actions\n\nregisterAction({\n type: HIGHLIGHT_ACTION_TYPE,\n event: HIGHLIGHT_ACTION_TYPE,\n update: HIGHLIGHT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: DOWNPLAY_ACTION_TYPE,\n event: DOWNPLAY_ACTION_TYPE,\n update: DOWNPLAY_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: SELECT_ACTION_TYPE,\n event: SELECT_ACTION_TYPE,\n update: SELECT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: UNSELECT_ACTION_TYPE,\n event: UNSELECT_ACTION_TYPE,\n update: UNSELECT_ACTION_TYPE\n}, zrUtil.noop);\nregisterAction({\n type: TOGGLE_SELECT_ACTION_TYPE,\n event: TOGGLE_SELECT_ACTION_TYPE,\n update: TOGGLE_SELECT_ACTION_TYPE\n}, zrUtil.noop); // Default theme\n\nregisterTheme('light', lightTheme);\nregisterTheme('dark', darkTheme); // For backward compatibility, where the namespace `dataTool` will\n// be mounted on `echarts` is the extension `dataTool` is imported.\n\nexport var dataTool = {};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { registerPreprocessor, registerProcessor, registerPostInit, registerPostUpdate, registerAction, registerCoordinateSystem, registerLayout, registerVisual, registerTransform, registerLoading, registerMap, PRIORITY } from './core/echarts';\nimport ComponentView from './view/Component';\nimport ChartView from './view/Chart';\nimport ComponentModel from './model/Component';\nimport SeriesModel from './model/Series';\nimport { isFunction, indexOf, isArray, each } from 'zrender/lib/core/util';\nimport { registerPainter } from 'zrender/lib/zrender';\nvar extensions = [];\nvar extensionRegisters = {\n registerPreprocessor: registerPreprocessor,\n registerProcessor: registerProcessor,\n registerPostInit: registerPostInit,\n registerPostUpdate: registerPostUpdate,\n registerAction: registerAction,\n registerCoordinateSystem: registerCoordinateSystem,\n registerLayout: registerLayout,\n registerVisual: registerVisual,\n registerTransform: registerTransform,\n registerLoading: registerLoading,\n registerMap: registerMap,\n PRIORITY: PRIORITY,\n ComponentModel: ComponentModel,\n ComponentView: ComponentView,\n SeriesModel: SeriesModel,\n ChartView: ChartView,\n // TODO Use ComponentModel and SeriesModel instead of Constructor\n registerComponentModel: function (ComponentModelClass) {\n ComponentModel.registerClass(ComponentModelClass);\n },\n registerComponentView: function (ComponentViewClass) {\n ComponentView.registerClass(ComponentViewClass);\n },\n registerSeriesModel: function (SeriesModelClass) {\n SeriesModel.registerClass(SeriesModelClass);\n },\n registerChartView: function (ChartViewClass) {\n ChartView.registerClass(ChartViewClass);\n },\n registerSubTypeDefaulter: function (componentType, defaulter) {\n ComponentModel.registerSubTypeDefaulter(componentType, defaulter);\n },\n registerPainter: function (painterType, PainterCtor) {\n registerPainter(painterType, PainterCtor);\n }\n};\nexport function use(ext) {\n if (isArray(ext)) {\n // use([ChartLine, ChartBar]);\n each(ext, function (singleExt) {\n use(singleExt);\n });\n return;\n }\n\n if (indexOf(extensions, ext) >= 0) {\n return;\n }\n\n extensions.push(ext);\n\n if (isFunction(ext)) {\n ext = {\n install: ext\n };\n }\n\n ext.install(extensionRegisters);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nfunction dataIndexMapValueLength(valNumOrArrLengthMoreThan2) {\n return valNumOrArrLengthMoreThan2 == null ? 0 : valNumOrArrLengthMoreThan2.length || 1;\n}\n\nfunction defaultKeyGetter(item) {\n return item;\n}\n\nvar DataDiffer =\n/** @class */\nfunction () {\n /**\n * @param context Can be visited by this.context in callback.\n */\n function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter, context, // By default: 'oneToOne'.\n diffMode) {\n this._old = oldArr;\n this._new = newArr;\n this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;\n this._newKeyGetter = newKeyGetter || defaultKeyGetter; // Visible in callback via `this.context`;\n\n this.context = context;\n this._diffModeMultiple = diffMode === 'multiple';\n }\n /**\n * Callback function when add a data\n */\n\n\n DataDiffer.prototype.add = function (func) {\n this._add = func;\n return this;\n };\n /**\n * Callback function when update a data\n */\n\n\n DataDiffer.prototype.update = function (func) {\n this._update = func;\n return this;\n };\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n\n\n DataDiffer.prototype.updateManyToOne = function (func) {\n this._updateManyToOne = func;\n return this;\n };\n /**\n * Callback function when update a data and only work in `cbMode: 'byKey'`.\n */\n\n\n DataDiffer.prototype.updateOneToMany = function (func) {\n this._updateOneToMany = func;\n return this;\n };\n /**\n * Callback function when remove a data\n */\n\n\n DataDiffer.prototype.remove = function (func) {\n this._remove = func;\n return this;\n };\n\n DataDiffer.prototype.execute = function () {\n this[this._diffModeMultiple ? '_executeMultiple' : '_executeOneToOne']();\n };\n\n DataDiffer.prototype._executeOneToOne = function () {\n var oldArr = this._old;\n var newArr = this._new;\n var newDataIndexMap = {};\n var oldDataKeyArr = new Array(oldArr.length);\n var newDataKeyArr = new Array(newArr.length);\n\n this._initIndexMap(oldArr, null, oldDataKeyArr, '_oldKeyGetter');\n\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (var i = 0; i < oldArr.length; i++) {\n var oldKey = oldDataKeyArr[i];\n var newIdxMapVal = newDataIndexMap[oldKey];\n var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal); // idx can never be empty array here. see 'set null' logic below.\n\n if (newIdxMapValLen > 1) {\n // Consider there is duplicate key (for example, use dataItem.name as key).\n // We should make sure every item in newArr and oldArr can be visited.\n var newIdx = newIdxMapVal.shift();\n\n if (newIdxMapVal.length === 1) {\n newDataIndexMap[oldKey] = newIdxMapVal[0];\n }\n\n this._update && this._update(newIdx, i);\n } else if (newIdxMapValLen === 1) {\n newDataIndexMap[oldKey] = null;\n this._update && this._update(newIdxMapVal, i);\n } else {\n this._remove && this._remove(i);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n };\n /**\n * For example, consider the case:\n * oldData: [o0, o1, o2, o3, o4, o5, o6, o7],\n * newData: [n0, n1, n2, n3, n4, n5, n6, n7, n8],\n * Where:\n * o0, o1, n0 has key 'a' (many to one)\n * o5, n4, n5, n6 has key 'b' (one to many)\n * o2, n1 has key 'c' (one to one)\n * n2, n3 has key 'd' (add)\n * o3, o4 has key 'e' (remove)\n * o6, o7, n7, n8 has key 'f' (many to many, treated as add and remove)\n * Then:\n * (The order of the following directives are not ensured.)\n * this._updateManyToOne(n0, [o0, o1]);\n * this._updateOneToMany([n4, n5, n6], o5);\n * this._update(n1, o2);\n * this._remove(o3);\n * this._remove(o4);\n * this._remove(o6);\n * this._remove(o7);\n * this._add(n2);\n * this._add(n3);\n * this._add(n7);\n * this._add(n8);\n */\n\n\n DataDiffer.prototype._executeMultiple = function () {\n var oldArr = this._old;\n var newArr = this._new;\n var oldDataIndexMap = {};\n var newDataIndexMap = {};\n var oldDataKeyArr = [];\n var newDataKeyArr = [];\n\n this._initIndexMap(oldArr, oldDataIndexMap, oldDataKeyArr, '_oldKeyGetter');\n\n this._initIndexMap(newArr, newDataIndexMap, newDataKeyArr, '_newKeyGetter');\n\n for (var i = 0; i < oldDataKeyArr.length; i++) {\n var oldKey = oldDataKeyArr[i];\n var oldIdxMapVal = oldDataIndexMap[oldKey];\n var newIdxMapVal = newDataIndexMap[oldKey];\n var oldIdxMapValLen = dataIndexMapValueLength(oldIdxMapVal);\n var newIdxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (oldIdxMapValLen > 1 && newIdxMapValLen === 1) {\n this._updateManyToOne && this._updateManyToOne(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen === 1 && newIdxMapValLen > 1) {\n this._updateOneToMany && this._updateOneToMany(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen === 1 && newIdxMapValLen === 1) {\n this._update && this._update(newIdxMapVal, oldIdxMapVal);\n newDataIndexMap[oldKey] = null;\n } else if (oldIdxMapValLen > 1) {\n for (var i_1 = 0; i_1 < oldIdxMapValLen; i_1++) {\n this._remove && this._remove(oldIdxMapVal[i_1]);\n }\n } else {\n this._remove && this._remove(oldIdxMapVal);\n }\n }\n\n this._performRestAdd(newDataKeyArr, newDataIndexMap);\n };\n\n DataDiffer.prototype._performRestAdd = function (newDataKeyArr, newDataIndexMap) {\n for (var i = 0; i < newDataKeyArr.length; i++) {\n var newKey = newDataKeyArr[i];\n var newIdxMapVal = newDataIndexMap[newKey];\n var idxMapValLen = dataIndexMapValueLength(newIdxMapVal);\n\n if (idxMapValLen > 1) {\n for (var j = 0; j < idxMapValLen; j++) {\n this._add && this._add(newIdxMapVal[j]);\n }\n } else if (idxMapValLen === 1) {\n this._add && this._add(newIdxMapVal);\n } // Support both `newDataKeyArr` are duplication removed or not removed.\n\n\n newDataIndexMap[newKey] = null;\n }\n };\n\n DataDiffer.prototype._initIndexMap = function (arr, // Can be null.\n map, // In 'byKey', the output `keyArr` is duplication removed.\n // In 'byIndex', the output `keyArr` is not duplication removed and\n // its indices are accurately corresponding to `arr`.\n keyArr, keyGetterName) {\n var cbModeMultiple = this._diffModeMultiple;\n\n for (var i = 0; i < arr.length; i++) {\n // Add prefix to avoid conflict with Object.prototype.\n var key = '_ec_' + this[keyGetterName](arr[i], i);\n\n if (!cbModeMultiple) {\n keyArr[i] = key;\n }\n\n if (!map) {\n continue;\n }\n\n var idxMapVal = map[key];\n var idxMapValLen = dataIndexMapValueLength(idxMapVal);\n\n if (idxMapValLen === 0) {\n // Simple optimize: in most cases, one index has one key,\n // do not need array.\n map[key] = i;\n\n if (cbModeMultiple) {\n keyArr.push(key);\n }\n } else if (idxMapValLen === 1) {\n map[key] = [idxMapVal, i];\n } else {\n idxMapVal.push(i);\n }\n }\n };\n\n return DataDiffer;\n}();\n\nexport default DataDiffer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, createHashMap, assert } from 'zrender/lib/core/util';\nimport { VISUAL_DIMENSIONS } from '../../util/types';\nexport function summarizeDimensions(data) {\n var summary = {};\n var encode = summary.encode = {};\n var notExtraCoordDimMap = createHashMap();\n var defaultedLabel = [];\n var defaultedTooltip = []; // See the comment of `List.js#userOutput`.\n\n var userOutput = summary.userOutput = {\n dimensionNames: data.dimensions.slice(),\n encode: {}\n };\n each(data.dimensions, function (dimName) {\n var dimItem = data.getDimensionInfo(dimName);\n var coordDim = dimItem.coordDim;\n\n if (coordDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(VISUAL_DIMENSIONS.get(coordDim) == null);\n }\n\n var coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n } // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n\n\n getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index;\n }\n\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n VISUAL_DIMENSIONS.each(function (v, otherDim) {\n var encodeArr = getOrCreateEncodeArr(encode, otherDim);\n var dimIndex = dimItem.otherDims[otherDim];\n\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n var dataDimsOnCoord = [];\n var encodeFirstDimNotExtra = {};\n notExtraCoordDimMap.each(function (v, coordDim) {\n var dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n var encodeTooltip = encode.tooltip;\n\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n } else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n return summary;\n}\n\nfunction getOrCreateEncodeArr(encode, dim) {\n if (!encode.hasOwnProperty(dim)) {\n encode[dim] = [];\n }\n\n return encode[dim];\n} // FIXME:TS should be type `AxisType`\n\n\nexport function getDimensionTypeByAxis(axisType) {\n return axisType === 'category' ? 'ordinal' : axisType === 'time' ? 'time' : 'float';\n}\n\nfunction mayLabelDimType(dimType) {\n // In most cases, ordinal and time do not suitable for label.\n // Ordinal info can be displayed on axis. Time is too long.\n return !(dimType === 'ordinal' || dimType === 'time');\n} // function findTheLastDimMayLabel(data) {\n// // Get last value dim\n// let dimensions = data.dimensions.slice();\n// let valueType;\n// let valueDim;\n// while (dimensions.length && (\n// valueDim = dimensions.pop(),\n// valueType = data.getDimensionInfo(valueDim).type,\n// valueType === 'ordinal' || valueType === 'time'\n// )) {} // jshint ignore:line\n// return valueDim;\n// }","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nvar DataDimensionInfo =\n/** @class */\nfunction () {\n /**\n * @param opt All of the fields will be shallow copied.\n */\n function DataDimensionInfo(opt) {\n /**\n * The format of `otherDims` is:\n * ```js\n * {\n * tooltip: number optional,\n * label: number optional,\n * itemName: number optional,\n * seriesName: number optional,\n * }\n * ```\n *\n * A `series.encode` can specified these fields:\n * ```js\n * encode: {\n * // \"3, 1, 5\" is the index of data dimension.\n * tooltip: [3, 1, 5],\n * label: [0, 3],\n * ...\n * }\n * ```\n * `otherDims` is the parse result of the `series.encode` above, like:\n * ```js\n * // Suppose the index of this data dimension is `3`.\n * this.otherDims = {\n * // `3` is at the index `0` of the `encode.tooltip`\n * tooltip: 0,\n * // `3` is at the index `1` of the `encode.tooltip`\n * label: 1\n * };\n * ```\n *\n * This prop should never be `null`/`undefined` after initialized.\n */\n this.otherDims = {};\n\n if (opt != null) {\n zrUtil.extend(this, opt);\n }\n }\n\n return DataDimensionInfo;\n}();\n\n;\nexport default DataDimensionInfo;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float64Array, Int32Array, Uint32Array, Uint16Array */\n\n/**\n * List for data storage\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from '../model/Model';\nimport DataDiffer from './DataDiffer';\nimport { DefaultDataProvider } from './helper/dataProvider';\nimport { summarizeDimensions } from './helper/dimensionHelper';\nimport DataDimensionInfo from './DataDimensionInfo';\nimport { SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL } from '../util/types';\nimport { isDataItemOption, convertOptionIdName } from '../util/model';\nimport { getECData } from '../util/innerStore';\nimport { parseDataValue } from './helper/dataValueHelper';\nimport { isSourceInstance } from './Source';\nvar mathFloor = Math.floor;\nvar isObject = zrUtil.isObject;\nvar map = zrUtil.map;\nvar UNDEFINED = 'undefined';\nvar INDEX_NOT_FOUND = -1; // Use prefix to avoid index to be the same as otherIdList[idx],\n// which will cause weird udpate animation.\n\nvar ID_PREFIX = 'e\\0\\0';\nvar dataCtors = {\n 'float': typeof Float64Array === UNDEFINED ? Array : Float64Array,\n 'int': typeof Int32Array === UNDEFINED ? Array : Int32Array,\n // Ordinal data type can be string or int\n 'ordinal': Array,\n 'number': Array,\n 'time': Array\n}; // Caution: MUST not use `new CtorUint32Array(arr, 0, len)`, because the Ctor of array is\n// different from the Ctor of typed array.\n\nvar CtorUint32Array = typeof Uint32Array === UNDEFINED ? Array : Uint32Array;\nvar CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array;\nvar CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16Array;\nvar TRANSFERABLE_PROPERTIES = ['hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', '_rawData', '_dimValueGetter', '_count', '_rawCount', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount'];\nvar CLONE_PROPERTIES = ['_extent', '_approximateExtent', '_rawExtent']; // -----------------------------\n// Internal method declarations:\n// -----------------------------\n\nvar defaultDimValueGetters;\nvar prepareInvertedIndex;\nvar getIndicesCtor;\nvar prepareStorage;\nvar getRawIndexWithoutIndices;\nvar getRawIndexWithIndices;\nvar getId;\nvar getIdNameFromStore;\nvar makeIdFromName;\nvar normalizeDimensions;\nvar validateDimensions;\nvar cloneListForMapAndSample;\nvar getInitialExtent;\nvar setItemDataAndSeriesIndex;\nvar transferProperties;\n\nvar List =\n/** @class */\nfunction () {\n /**\n * @param dimensions\n * For example, ['someDimName', {name: 'someDimName', type: 'someDimType'}, ...].\n * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius\n */\n function List(dimensions, hostModel) {\n this.type = 'list';\n this._count = 0;\n this._rawCount = 0;\n this._storage = {}; // We have an extra array store here. It's faster to be acessed than KV structured `_storage`.\n // We profile the code `storage[dim]` and it seems to be KeyedLoadIC_Megamorphic instead of fast property access.\n // Not sure why this happens. But using an extra array seems leads to faster `initData`\n // See https://github.com/apache/incubator-echarts/pull/13314 for more explanation.\n\n this._storageArr = [];\n this._nameList = [];\n this._idList = []; // Models of data option is stored sparse for optimizing memory cost\n // Never used yet (not used yet).\n // private _optionModels: Model[] = [];\n // Global visual properties after visual coding\n\n this._visual = {}; // Globel layout properties.\n\n this._layout = {}; // Item visual properties after visual coding\n\n this._itemVisuals = []; // Item layout properties after layout\n\n this._itemLayouts = []; // Graphic elemnents\n\n this._graphicEls = []; // Raw extent will not be cloned, but only transfered.\n // It will not be calculated util needed.\n\n this._rawExtent = {};\n this._extent = {}; // key: dim, value: extent\n\n this._approximateExtent = {};\n this._calculationInfo = {}; // Having detected that there is data item is non primitive type\n // (in type `OptionDataItemObject`).\n // Like `data: [ { value: xx, itemStyle: {...} }, ...]`\n // At present it only happen in `SOURCE_FORMAT_ORIGINAL`.\n\n this.hasItemOption = true; // Methods that create a new list based on this list should be listed here.\n // Notice that those method should `RETURN` the new list.\n\n this.TRANSFERABLE_METHODS = ['cloneShallow', 'downSample', 'lttbDownSample', 'map']; // Methods that change indices of this list should be listed here.\n\n this.CHANGABLE_METHODS = ['filterSelf', 'selectRange'];\n this.DOWNSAMPLE_METHODS = ['downSample', 'lttbDownSample'];\n /**\n * Get raw data index.\n * Do not initialize.\n * Default `getRawIndex`. And it can be changed.\n */\n\n this.getRawIndex = getRawIndexWithoutIndices;\n dimensions = dimensions || ['x', 'y'];\n var dimensionInfos = {};\n var dimensionNames = [];\n var invertedIndicesMap = {};\n\n for (var i = 0; i < dimensions.length; i++) {\n // Use the original dimensions[i], where other flag props may exists.\n var dimInfoInput = dimensions[i];\n var dimensionInfo = zrUtil.isString(dimInfoInput) ? new DataDimensionInfo({\n name: dimInfoInput\n }) : !(dimInfoInput instanceof DataDimensionInfo) ? new DataDimensionInfo(dimInfoInput) : dimInfoInput;\n var dimensionName = dimensionInfo.name;\n dimensionInfo.type = dimensionInfo.type || 'float';\n\n if (!dimensionInfo.coordDim) {\n dimensionInfo.coordDim = dimensionName;\n dimensionInfo.coordDimIndex = 0;\n }\n\n var otherDims = dimensionInfo.otherDims = dimensionInfo.otherDims || {};\n dimensionNames.push(dimensionName);\n dimensionInfos[dimensionName] = dimensionInfo;\n dimensionInfo.index = i;\n\n if (dimensionInfo.createInvertedIndices) {\n invertedIndicesMap[dimensionName] = [];\n }\n\n if (otherDims.itemName === 0) {\n this._nameDimIdx = i;\n this._nameOrdinalMeta = dimensionInfo.ordinalMeta;\n }\n\n if (otherDims.itemId === 0) {\n this._idDimIdx = i;\n this._idOrdinalMeta = dimensionInfo.ordinalMeta;\n }\n }\n\n this.dimensions = dimensionNames;\n this._dimensionInfos = dimensionInfos;\n this.hostModel = hostModel; // Cache summary info for fast visit. See \"dimensionHelper\".\n\n this._dimensionsSummary = summarizeDimensions(this);\n this._invertedIndicesMap = invertedIndicesMap;\n this.userOutput = this._dimensionsSummary.userOutput;\n }\n /**\n * The meanings of the input parameter `dim`:\n *\n * + If dim is a number (e.g., `1`), it means the index of the dimension.\n * For example, `getDimension(0)` will return 'x' or 'lng' or 'radius'.\n * + If dim is a number-like string (e.g., `\"1\"`):\n * + If there is the same concrete dim name defined in `this.dimensions`, it means that concrete name.\n * + If not, it will be converted to a number, which means the index of the dimension.\n * (why? because of the backward compatbility. We have been tolerating number-like string in\n * dimension setting, although now it seems that it is not a good idea.)\n * For example, `visualMap[i].dimension: \"1\"` is the same meaning as `visualMap[i].dimension: 1`,\n * if no dimension name is defined as `\"1\"`.\n * + If dim is a not-number-like string, it means the concrete dim name.\n * For example, it can be be default name `\"x\"`, `\"y\"`, `\"z\"`, `\"lng\"`, `\"lat\"`, `\"angle\"`, `\"radius\"`,\n * or customized in `dimensions` property of option like `\"age\"`.\n *\n * Get dimension name\n * @param dim See above.\n * @return Concrete dim name.\n */\n\n\n List.prototype.getDimension = function (dim) {\n if (typeof dim === 'number' // If being a number-like string but not being defined a dimension name.\n || !isNaN(dim) && !this._dimensionInfos.hasOwnProperty(dim)) {\n dim = this.dimensions[dim];\n }\n\n return dim;\n };\n /**\n * Get type and calculation info of particular dimension\n * @param dim\n * Dimension can be concrete names like x, y, z, lng, lat, angle, radius\n * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'\n */\n\n\n List.prototype.getDimensionInfo = function (dim) {\n // Do not clone, because there may be categories in dimInfo.\n return this._dimensionInfos[this.getDimension(dim)];\n };\n /**\n * concrete dimension name list on coord.\n */\n\n\n List.prototype.getDimensionsOnCoord = function () {\n return this._dimensionsSummary.dataDimsOnCoord.slice();\n };\n\n List.prototype.mapDimension = function (coordDim, idx) {\n var dimensionsSummary = this._dimensionsSummary;\n\n if (idx == null) {\n return dimensionsSummary.encodeFirstDimNotExtra[coordDim];\n }\n\n var dims = dimensionsSummary.encode[coordDim];\n return dims ? dims[idx] : null;\n };\n\n List.prototype.mapDimensionsAll = function (coordDim) {\n var dimensionsSummary = this._dimensionsSummary;\n var dims = dimensionsSummary.encode[coordDim];\n return (dims || []).slice();\n };\n /**\n * Initialize from data\n * @param data source or data or data provider.\n * @param nameList The name of a datum is used on data diff and\n * default label/tooltip.\n * A name can be specified in encode.itemName,\n * or dataItem.name (only for series option data),\n * or provided in nameList from outside.\n */\n\n\n List.prototype.initData = function (data, nameList, dimValueGetter) {\n var notProvider = isSourceInstance(data) || zrUtil.isArrayLike(data);\n var provider = notProvider ? new DefaultDataProvider(data, this.dimensions.length) : data;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(notProvider || zrUtil.isFunction(provider.getItem) && zrUtil.isFunction(provider.count), 'Inavlid data provider.');\n }\n\n this._rawData = provider;\n var sourceFormat = provider.getSource().sourceFormat; // Clear\n\n this._storage = {};\n this._indices = null;\n this._dontMakeIdFromName = this._idDimIdx != null || sourceFormat === SOURCE_FORMAT_TYPED_ARRAY // Cosndier performance.\n || !!provider.fillStorage;\n this._nameList = (nameList || []).slice();\n this._idList = [];\n this._nameRepeatCount = {};\n\n if (!dimValueGetter) {\n this.hasItemOption = false;\n }\n\n this.defaultDimValueGetter = defaultDimValueGetters[sourceFormat]; // Default dim value getter\n\n this._dimValueGetter = dimValueGetter = dimValueGetter || this.defaultDimValueGetter;\n this._dimValueGetterArrayRows = defaultDimValueGetters.arrayRows; // Reset raw extent.\n\n this._rawExtent = {};\n\n this._initDataFromProvider(0, provider.count()); // If data has no item option.\n\n\n if (provider.pure) {\n this.hasItemOption = false;\n }\n };\n\n List.prototype.getProvider = function () {\n return this._rawData;\n };\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n */\n\n\n List.prototype.appendData = function (data) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(!this._indices, 'appendData can only be called on raw data.');\n }\n\n var rawData = this._rawData;\n var start = this.count();\n rawData.appendData(data);\n var end = rawData.count();\n\n if (!rawData.persistent) {\n end += start;\n }\n\n this._initDataFromProvider(start, end, true);\n };\n /**\n * Caution: Can be only called on raw data (before `this._indices` created).\n * This method does not modify `rawData` (`dataProvider`), but only\n * add values to storage.\n *\n * The final count will be increased by `Math.max(values.length, names.length)`.\n *\n * @param values That is the SourceType: 'arrayRows', like\n * [\n * [12, 33, 44],\n * [NaN, 43, 1],\n * ['-', 'asdf', 0]\n * ]\n * Each item is exaclty cooresponding to a dimension.\n */\n\n\n List.prototype.appendValues = function (values, names) {\n var storage = this._storage;\n var dimensions = this.dimensions;\n var dimLen = dimensions.length;\n var rawExtent = this._rawExtent;\n var start = this.count();\n var end = start + Math.max(values.length, names ? names.length : 0);\n\n for (var i = 0; i < dimLen; i++) {\n var dim = dimensions[i];\n\n if (!rawExtent[dim]) {\n rawExtent[dim] = getInitialExtent();\n }\n\n prepareStorage(storage, this._dimensionInfos[dim], end, true);\n }\n\n var rawExtentArr = map(dimensions, function (dim) {\n return rawExtent[dim];\n });\n var storageArr = this._storageArr = map(dimensions, function (dim) {\n return storage[dim];\n });\n var emptyDataItem = [];\n\n for (var idx = start; idx < end; idx++) {\n var sourceIdx = idx - start; // Store the data by dimensions\n\n for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n var dim = dimensions[dimIdx];\n\n var val = this._dimValueGetterArrayRows(values[sourceIdx] || emptyDataItem, dim, sourceIdx, dimIdx);\n\n storageArr[dimIdx][idx] = val;\n var dimRawExtent = rawExtentArr[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n }\n\n if (names) {\n this._nameList[idx] = names[sourceIdx];\n\n if (!this._dontMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n\n this._rawCount = this._count = end; // Reset data extent\n\n this._extent = {};\n prepareInvertedIndex(this);\n };\n\n List.prototype._initDataFromProvider = function (start, end, append) {\n if (start >= end) {\n return;\n }\n\n var rawData = this._rawData;\n var storage = this._storage;\n var dimensions = this.dimensions;\n var dimLen = dimensions.length;\n var dimensionInfoMap = this._dimensionInfos;\n var nameList = this._nameList;\n var idList = this._idList;\n var rawExtent = this._rawExtent;\n var sourceFormat = rawData.getSource().sourceFormat;\n var isFormatOriginal = sourceFormat === SOURCE_FORMAT_ORIGINAL;\n\n for (var i = 0; i < dimLen; i++) {\n var dim = dimensions[i];\n\n if (!rawExtent[dim]) {\n rawExtent[dim] = getInitialExtent();\n }\n\n prepareStorage(storage, dimensionInfoMap[dim], end, append);\n }\n\n var storageArr = this._storageArr = map(dimensions, function (dim) {\n return storage[dim];\n });\n var rawExtentArr = map(dimensions, function (dim) {\n return rawExtent[dim];\n });\n\n if (rawData.fillStorage) {\n rawData.fillStorage(start, end, storageArr, rawExtentArr);\n } else {\n var dataItem = [];\n\n for (var idx = start; idx < end; idx++) {\n // NOTICE: Try not to write things into dataItem\n dataItem = rawData.getItem(idx, dataItem); // Each data item is value\n // [1, 2]\n // 2\n // Bar chart, line chart which uses category axis\n // only gives the 'y' value. 'x' value is the indices of category\n // Use a tempValue to normalize the value to be a (x, y) value\n // Store the data by dimensions\n\n for (var dimIdx = 0; dimIdx < dimLen; dimIdx++) {\n var dim = dimensions[dimIdx];\n var dimStorage = storageArr[dimIdx]; // PENDING NULL is empty or zero\n\n var val = this._dimValueGetter(dataItem, dim, idx, dimIdx);\n\n dimStorage[idx] = val;\n var dimRawExtent = rawExtentArr[dimIdx];\n val < dimRawExtent[0] && (dimRawExtent[0] = val);\n val > dimRawExtent[1] && (dimRawExtent[1] = val);\n } // If dataItem is {name: ...} or {id: ...}, it has highest priority.\n // This kind of ids and names are always stored `_nameList` and `_idList`.\n\n\n if (isFormatOriginal && !rawData.pure && dataItem) {\n var itemName = dataItem.name;\n\n if (nameList[idx] == null && itemName != null) {\n nameList[idx] = convertOptionIdName(itemName, null);\n }\n\n var itemId = dataItem.id;\n\n if (idList[idx] == null && itemId != null) {\n idList[idx] = convertOptionIdName(itemId, null);\n }\n }\n\n if (!this._dontMakeIdFromName) {\n makeIdFromName(this, idx);\n }\n }\n }\n\n if (!rawData.persistent && rawData.clean) {\n // Clean unused data if data source is typed array.\n rawData.clean();\n }\n\n this._rawCount = this._count = end; // Reset data extent\n\n this._extent = {};\n prepareInvertedIndex(this);\n };\n\n List.prototype.count = function () {\n return this._count;\n };\n\n List.prototype.getIndices = function () {\n var newIndices;\n var indices = this._indices;\n\n if (indices) {\n var Ctor = indices.constructor;\n var thisCount = this._count; // `new Array(a, b, c)` is different from `new Uint32Array(a, b, c)`.\n\n if (Ctor === Array) {\n newIndices = new Ctor(thisCount);\n\n for (var i = 0; i < thisCount; i++) {\n newIndices[i] = indices[i];\n }\n } else {\n newIndices = new Ctor(indices.buffer, 0, thisCount);\n }\n } else {\n var Ctor = getIndicesCtor(this);\n newIndices = new Ctor(this.count());\n\n for (var i = 0; i < newIndices.length; i++) {\n newIndices[i] = i;\n }\n }\n\n return newIndices;\n }; // Get data by index of dimension.\n // Because in v8 access array by number variable is faster than access object by string variable\n // Not sure why but the optimization just works.\n\n\n List.prototype.getByDimIdx = function (dimIdx, idx) {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n\n var dimStore = this._storageArr[dimIdx];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n };\n /**\n * Get value. Return NaN if idx is out of range.\n * @param dim Dim must be concrete name.\n */\n\n\n List.prototype.get = function (dim, idx) {\n if (!(idx >= 0 && idx < this._count)) {\n return NaN;\n }\n\n var dimStore = this._storage[dim];\n return dimStore ? dimStore[this.getRawIndex(idx)] : NaN;\n };\n /**\n * @param dim concrete dim\n */\n\n\n List.prototype.getByRawIndex = function (dim, rawIdx) {\n if (!(rawIdx >= 0 && rawIdx < this._rawCount)) {\n return NaN;\n }\n\n var dimStore = this._storage[dim];\n return dimStore ? dimStore[rawIdx] : NaN;\n };\n\n List.prototype.getValues = function (dimensions, idx) {\n var values = [];\n\n if (!zrUtil.isArray(dimensions)) {\n // stack = idx;\n idx = dimensions;\n dimensions = this.dimensions;\n }\n\n for (var i = 0, len = dimensions.length; i < len; i++) {\n values.push(this.get(dimensions[i], idx\n /*, stack */\n ));\n }\n\n return values;\n };\n /**\n * If value is NaN. Inlcuding '-'\n * Only check the coord dimensions.\n */\n\n\n List.prototype.hasValue = function (idx) {\n var dataDimsOnCoord = this._dimensionsSummary.dataDimsOnCoord;\n\n for (var i = 0, len = dataDimsOnCoord.length; i < len; i++) {\n // Ordinal type originally can be string or number.\n // But when an ordinal type is used on coord, it can\n // not be string but only number. So we can also use isNaN.\n if (isNaN(this.get(dataDimsOnCoord[i], idx))) {\n return false;\n }\n }\n\n return true;\n };\n /**\n * Get extent of data in one dimension\n */\n\n\n List.prototype.getDataExtent = function (dim) {\n // Make sure use concrete dim as cache name.\n dim = this.getDimension(dim);\n var dimData = this._storage[dim];\n var initialExtent = getInitialExtent(); // stack = !!((stack || false) && this.getCalculationInfo(dim));\n\n if (!dimData) {\n return initialExtent;\n } // Make more strict checkings to ensure hitting cache.\n\n\n var currEnd = this.count(); // let cacheName = [dim, !!stack].join('_');\n // let cacheName = dim;\n // Consider the most cases when using data zoom, `getDataExtent`\n // happened before filtering. We cache raw extent, which is not\n // necessary to be cleared and recalculated when restore data.\n\n var useRaw = !this._indices; // && !stack;\n\n var dimExtent;\n\n if (useRaw) {\n return this._rawExtent[dim].slice();\n }\n\n dimExtent = this._extent[dim];\n\n if (dimExtent) {\n return dimExtent.slice();\n }\n\n dimExtent = initialExtent;\n var min = dimExtent[0];\n var max = dimExtent[1];\n\n for (var i = 0; i < currEnd; i++) {\n var rawIdx = this.getRawIndex(i);\n var value = dimData[rawIdx];\n value < min && (min = value);\n value > max && (max = value);\n }\n\n dimExtent = [min, max];\n this._extent[dim] = dimExtent;\n return dimExtent;\n };\n /**\n * PENDING: In fact currently this function is only used to short-circuit\n * the calling of `scale.unionExtentFromData` when data have been filtered by modules\n * like \"dataZoom\". `scale.unionExtentFromData` is used to calculate data extent for series on\n * an axis, but if a \"axis related data filter module\" is used, the extent of the axis have\n * been fixed and no need to calling `scale.unionExtentFromData` actually.\n * But if we add \"custom data filter\" in future, which is not \"axis related\", this method may\n * be still needed.\n *\n * Optimize for the scenario that data is filtered by a given extent.\n * Consider that if data amount is more than hundreds of thousand,\n * extent calculation will cost more than 10ms and the cache will\n * be erased because of the filtering.\n */\n\n\n List.prototype.getApproximateExtent = function (dim) {\n dim = this.getDimension(dim);\n return this._approximateExtent[dim] || this.getDataExtent(dim);\n };\n /**\n * Calculate extent on a filtered data might be time consuming.\n * Approximate extent is only used for: calculte extent of filtered data outside.\n */\n\n\n List.prototype.setApproximateExtent = function (extent, dim) {\n dim = this.getDimension(dim);\n this._approximateExtent[dim] = extent.slice();\n };\n\n List.prototype.getCalculationInfo = function (key) {\n return this._calculationInfo[key];\n };\n\n List.prototype.setCalculationInfo = function (key, value) {\n isObject(key) ? zrUtil.extend(this._calculationInfo, key) : this._calculationInfo[key] = value;\n };\n /**\n * Get sum of data in one dimension\n */\n\n\n List.prototype.getSum = function (dim) {\n var dimData = this._storage[dim];\n var sum = 0;\n\n if (dimData) {\n for (var i = 0, len = this.count(); i < len; i++) {\n var value = this.get(dim, i);\n\n if (!isNaN(value)) {\n sum += value;\n }\n }\n }\n\n return sum;\n };\n /**\n * Get median of data in one dimension\n */\n\n\n List.prototype.getMedian = function (dim) {\n var dimDataArray = []; // map all data of one dimension\n\n this.each(dim, function (val) {\n if (!isNaN(val)) {\n dimDataArray.push(val);\n }\n }); // TODO\n // Use quick select?\n\n var sortedDimDataArray = dimDataArray.sort(function (a, b) {\n return a - b;\n });\n var len = this.count(); // calculate median\n\n return len === 0 ? 0 : len % 2 === 1 ? sortedDimDataArray[(len - 1) / 2] : (sortedDimDataArray[len / 2] + sortedDimDataArray[len / 2 - 1]) / 2;\n }; // /**\n // * Retreive the index with given value\n // * @param {string} dim Concrete dimension.\n // * @param {number} value\n // * @return {number}\n // */\n // Currently incorrect: should return dataIndex but not rawIndex.\n // Do not fix it until this method is to be used somewhere.\n // FIXME Precision of float value\n // indexOf(dim, value) {\n // let storage = this._storage;\n // let dimData = storage[dim];\n // let chunkSize = this._chunkSize;\n // if (dimData) {\n // for (let i = 0, len = this.count(); i < len; i++) {\n // let chunkIndex = mathFloor(i / chunkSize);\n // let chunkOffset = i % chunkSize;\n // if (dimData[chunkIndex][chunkOffset] === value) {\n // return i;\n // }\n // }\n // }\n // return -1;\n // }\n\n /**\n * Only support the dimension which inverted index created.\n * Do not support other cases until required.\n * @param dim concrete dim\n * @param value ordinal index\n * @return rawIndex\n */\n\n\n List.prototype.rawIndexOf = function (dim, value) {\n var invertedIndices = dim && this._invertedIndicesMap[dim];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!invertedIndices) {\n throw new Error('Do not supported yet');\n }\n }\n\n var rawIndex = invertedIndices[value];\n\n if (rawIndex == null || isNaN(rawIndex)) {\n return INDEX_NOT_FOUND;\n }\n\n return rawIndex;\n };\n /**\n * Retreive the index with given name\n */\n\n\n List.prototype.indexOfName = function (name) {\n for (var i = 0, len = this.count(); i < len; i++) {\n if (this.getName(i) === name) {\n return i;\n }\n }\n\n return -1;\n };\n /**\n * Retreive the index with given raw data index\n */\n\n\n List.prototype.indexOfRawIndex = function (rawIndex) {\n if (rawIndex >= this._rawCount || rawIndex < 0) {\n return -1;\n }\n\n if (!this._indices) {\n return rawIndex;\n } // Indices are ascending\n\n\n var indices = this._indices; // If rawIndex === dataIndex\n\n var rawDataIndex = indices[rawIndex];\n\n if (rawDataIndex != null && rawDataIndex < this._count && rawDataIndex === rawIndex) {\n return rawIndex;\n }\n\n var left = 0;\n var right = this._count - 1;\n\n while (left <= right) {\n var mid = (left + right) / 2 | 0;\n\n if (indices[mid] < rawIndex) {\n left = mid + 1;\n } else if (indices[mid] > rawIndex) {\n right = mid - 1;\n } else {\n return mid;\n }\n }\n\n return -1;\n };\n /**\n * Retreive the index of nearest value\n * @param dim\n * @param value\n * @param [maxDistance=Infinity]\n * @return If and only if multiple indices has\n * the same value, they are put to the result.\n */\n\n\n List.prototype.indicesOfNearest = function (dim, value, maxDistance) {\n var storage = this._storage;\n var dimData = storage[dim];\n var nearestIndices = [];\n\n if (!dimData) {\n return nearestIndices;\n }\n\n if (maxDistance == null) {\n maxDistance = Infinity;\n }\n\n var minDist = Infinity;\n var minDiff = -1;\n var nearestIndicesLen = 0; // Check the test case of `test/ut/spec/data/List.js`.\n\n for (var i = 0, len = this.count(); i < len; i++) {\n var dataIndex = this.getRawIndex(i);\n var diff = value - dimData[dataIndex];\n var dist = Math.abs(diff);\n\n if (dist <= maxDistance) {\n // When the `value` is at the middle of `this.get(dim, i)` and `this.get(dim, i+1)`,\n // we'd better not push both of them to `nearestIndices`, otherwise it is easy to\n // get more than one item in `nearestIndices` (more specifically, in `tooltip`).\n // So we chose the one that `diff >= 0` in this csae.\n // But if `this.get(dim, i)` and `this.get(dim, j)` get the same value, both of them\n // should be push to `nearestIndices`.\n if (dist < minDist || dist === minDist && diff >= 0 && minDiff < 0) {\n minDist = dist;\n minDiff = diff;\n nearestIndicesLen = 0;\n }\n\n if (diff === minDiff) {\n nearestIndices[nearestIndicesLen++] = i;\n }\n }\n }\n\n nearestIndices.length = nearestIndicesLen;\n return nearestIndices;\n };\n /**\n * Get raw data item\n */\n\n\n List.prototype.getRawDataItem = function (idx) {\n if (!this._rawData.persistent) {\n var val = [];\n\n for (var i = 0; i < this.dimensions.length; i++) {\n var dim = this.dimensions[i];\n val.push(this.get(dim, idx));\n }\n\n return val;\n } else {\n return this._rawData.getItem(this.getRawIndex(idx));\n }\n };\n /**\n * @return Never be null/undefined. `number` will be converted to string. Becuase:\n * In most cases, name is used in display, where returning a string is more convenient.\n * In other cases, name is used in query (see `indexOfName`), where we can keep the\n * rule that name `2` equals to name `'2'`.\n */\n\n\n List.prototype.getName = function (idx) {\n var rawIndex = this.getRawIndex(idx);\n var name = this._nameList[rawIndex];\n\n if (name == null && this._nameDimIdx != null) {\n name = getIdNameFromStore(this, this._nameDimIdx, this._nameOrdinalMeta, rawIndex);\n }\n\n if (name == null) {\n name = '';\n }\n\n return name;\n };\n /**\n * @return Never null/undefined. `number` will be converted to string. Becuase:\n * In all cases having encountered at present, id is used in making diff comparison, which\n * are usually based on hash map. We can keep the rule that the internal id are always string\n * (treat `2` is the same as `'2'`) to make the related logic simple.\n */\n\n\n List.prototype.getId = function (idx) {\n return getId(this, this.getRawIndex(idx));\n };\n\n List.prototype.each = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n var _this = this;\n\n if (!this._count) {\n return;\n }\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var dimSize = dimNames.length;\n var dimIndices = map(dimNames, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var storageArr = this._storageArr;\n\n for (var i = 0, len = this.count(); i < len; i++) {\n var rawIdx = this.getRawIndex(i); // Simple optimization\n\n switch (dimSize) {\n case 0:\n cb.call(fCtx, i);\n break;\n\n case 1:\n cb.call(fCtx, storageArr[dimIndices[0]][rawIdx], i);\n break;\n\n case 2:\n cb.call(fCtx, storageArr[dimIndices[0]][rawIdx], storageArr[dimIndices[1]][rawIdx], i);\n break;\n\n default:\n var k = 0;\n var value = [];\n\n for (; k < dimSize; k++) {\n value[k] = storageArr[dimIndices[k]][rawIdx];\n } // Index\n\n\n value[k] = i;\n cb.apply(fCtx, value);\n }\n }\n };\n\n List.prototype.filterSelf = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n var _this = this;\n\n if (!this._count) {\n return;\n }\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var count = this.count();\n var Ctor = getIndicesCtor(this);\n var newIndices = new Ctor(count);\n var value = [];\n var dimSize = dimNames.length;\n var offset = 0;\n var dimIndices = map(dimNames, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var dim0 = dimIndices[0];\n var storageArr = this._storageArr;\n\n for (var i = 0; i < count; i++) {\n var keep = void 0;\n var rawIdx = this.getRawIndex(i); // Simple optimization\n\n if (dimSize === 0) {\n keep = cb.call(fCtx, i);\n } else if (dimSize === 1) {\n var val = storageArr[dim0][rawIdx];\n keep = cb.call(fCtx, val, i);\n } else {\n var k = 0;\n\n for (; k < dimSize; k++) {\n value[k] = storageArr[dimIndices[k]][rawIdx];\n }\n\n value[k] = i;\n keep = cb.apply(fCtx, value);\n }\n\n if (keep) {\n newIndices[offset++] = rawIdx;\n }\n } // Set indices after filtered.\n\n\n if (offset < count) {\n this._indices = newIndices;\n }\n\n this._count = offset; // Reset data extent\n\n this._extent = {};\n this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return this;\n };\n /**\n * Select data in range. (For optimization of filter)\n * (Manually inline code, support 5 million data filtering in data zoom.)\n */\n\n\n List.prototype.selectRange = function (range) {\n 'use strict';\n\n var _this = this;\n\n var len = this._count;\n\n if (!len) {\n return;\n }\n\n var dimensions = [];\n\n for (var dim in range) {\n if (range.hasOwnProperty(dim)) {\n dimensions.push(dim);\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimensions);\n }\n\n var dimSize = dimensions.length;\n\n if (!dimSize) {\n return;\n }\n\n var originalCount = this.count();\n var Ctor = getIndicesCtor(this);\n var newIndices = new Ctor(originalCount);\n var offset = 0;\n var dim0 = dimensions[0];\n var dimIndices = map(dimensions, function (dimName) {\n return _this._dimensionInfos[dimName].index;\n });\n var min = range[dim0][0];\n var max = range[dim0][1];\n var storageArr = this._storageArr;\n var quickFinished = false;\n\n if (!this._indices) {\n // Extreme optimization for common case. About 2x faster in chrome.\n var idx = 0;\n\n if (dimSize === 1) {\n var dimStorage = storageArr[dimIndices[0]];\n\n for (var i = 0; i < len; i++) {\n var val = dimStorage[i]; // NaN will not be filtered. Consider the case, in line chart, empty\n // value indicates the line should be broken. But for the case like\n // scatter plot, a data item with empty value will not be rendered,\n // but the axis extent may be effected if some other dim of the data\n // item has value. Fortunately it is not a significant negative effect.\n\n if (val >= min && val <= max || isNaN(val)) {\n newIndices[offset++] = idx;\n }\n\n idx++;\n }\n\n quickFinished = true;\n } else if (dimSize === 2) {\n var dimStorage = storageArr[dimIndices[0]];\n var dimStorage2 = storageArr[dimIndices[1]];\n var min2 = range[dimensions[1]][0];\n var max2 = range[dimensions[1]][1];\n\n for (var i = 0; i < len; i++) {\n var val = dimStorage[i];\n var val2 = dimStorage2[i]; // Do not filter NaN, see comment above.\n\n if ((val >= min && val <= max || isNaN(val)) && (val2 >= min2 && val2 <= max2 || isNaN(val2))) {\n newIndices[offset++] = idx;\n }\n\n idx++;\n }\n\n quickFinished = true;\n }\n }\n\n if (!quickFinished) {\n if (dimSize === 1) {\n for (var i = 0; i < originalCount; i++) {\n var rawIndex = this.getRawIndex(i);\n var val = storageArr[dimIndices[0]][rawIndex]; // Do not filter NaN, see comment above.\n\n if (val >= min && val <= max || isNaN(val)) {\n newIndices[offset++] = rawIndex;\n }\n }\n } else {\n for (var i = 0; i < originalCount; i++) {\n var keep = true;\n var rawIndex = this.getRawIndex(i);\n\n for (var k = 0; k < dimSize; k++) {\n var dimk = dimensions[k];\n var val = storageArr[dimIndices[k]][rawIndex]; // Do not filter NaN, see comment above.\n\n if (val < range[dimk][0] || val > range[dimk][1]) {\n keep = false;\n }\n }\n\n if (keep) {\n newIndices[offset++] = this.getRawIndex(i);\n }\n }\n }\n } // Set indices after filtered.\n\n\n if (offset < originalCount) {\n this._indices = newIndices;\n }\n\n this._count = offset; // Reset data extent\n\n this._extent = {};\n this.getRawIndex = this._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return this;\n };\n /* eslint-enable */\n\n\n List.prototype.mapArray = function (dims, cb, ctx, ctxCompat) {\n 'use strict';\n\n if (typeof dims === 'function') {\n ctxCompat = ctx;\n ctx = cb;\n cb = dims;\n dims = [];\n } // ctxCompat just for compat echarts3\n\n\n ctx = ctx || ctxCompat || this;\n var result = [];\n this.each(dims, function () {\n result.push(cb && cb.apply(this, arguments));\n }, ctx);\n return result;\n };\n\n List.prototype.map = function (dims, cb, ctx, ctxCompat) {\n 'use strict'; // ctxCompat just for compat echarts3\n\n var fCtx = ctx || ctxCompat || this;\n var dimNames = map(normalizeDimensions(dims), this.getDimension, this);\n\n if (process.env.NODE_ENV !== 'production') {\n validateDimensions(this, dimNames);\n }\n\n var list = cloneListForMapAndSample(this, dimNames);\n var storage = list._storage; // Following properties are all immutable.\n // So we can reference to the same value\n\n list._indices = this._indices;\n list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n var tmpRetValue = [];\n var dimSize = dimNames.length;\n var dataCount = this.count();\n var values = [];\n var rawExtent = list._rawExtent;\n\n for (var dataIndex = 0; dataIndex < dataCount; dataIndex++) {\n for (var dimIndex = 0; dimIndex < dimSize; dimIndex++) {\n values[dimIndex] = this.get(dimNames[dimIndex], dataIndex);\n }\n\n values[dimSize] = dataIndex;\n var retValue = cb && cb.apply(fCtx, values);\n\n if (retValue != null) {\n // a number or string (in oridinal dimension)?\n if (typeof retValue !== 'object') {\n tmpRetValue[0] = retValue;\n retValue = tmpRetValue;\n }\n\n var rawIndex = this.getRawIndex(dataIndex);\n\n for (var i = 0; i < retValue.length; i++) {\n var dim = dimNames[i];\n var val = retValue[i];\n var rawExtentOnDim = rawExtent[dim];\n var dimStore = storage[dim];\n\n if (dimStore) {\n dimStore[rawIndex] = val;\n }\n\n if (val < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = val;\n }\n\n if (val > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = val;\n }\n }\n }\n }\n\n return list;\n };\n /**\n * Large data down sampling on given dimension\n * @param sampleIndex Sample index for name and id\n */\n\n\n List.prototype.downSample = function (dimension, rate, sampleValue, sampleIndex) {\n var list = cloneListForMapAndSample(this, [dimension]);\n var targetStorage = list._storage;\n var frameValues = [];\n var frameSize = mathFloor(1 / rate);\n var dimStore = targetStorage[dimension];\n var len = this.count();\n var rawExtentOnDim = list._rawExtent[dimension];\n var newIndices = new (getIndicesCtor(this))(len);\n var offset = 0;\n\n for (var i = 0; i < len; i += frameSize) {\n // Last frame\n if (frameSize > len - i) {\n frameSize = len - i;\n frameValues.length = frameSize;\n }\n\n for (var k = 0; k < frameSize; k++) {\n var dataIdx = this.getRawIndex(i + k);\n frameValues[k] = dimStore[dataIdx];\n }\n\n var value = sampleValue(frameValues);\n var sampleFrameIdx = this.getRawIndex(Math.min(i + sampleIndex(frameValues, value) || 0, len - 1)); // Only write value on the filtered data\n\n dimStore[sampleFrameIdx] = value;\n\n if (value < rawExtentOnDim[0]) {\n rawExtentOnDim[0] = value;\n }\n\n if (value > rawExtentOnDim[1]) {\n rawExtentOnDim[1] = value;\n }\n\n newIndices[offset++] = sampleFrameIdx;\n }\n\n list._count = offset;\n list._indices = newIndices;\n list.getRawIndex = getRawIndexWithIndices;\n return list;\n };\n /**\n * Large data down sampling using largest-triangle-three-buckets\n * @param {string} valueDimension\n * @param {number} targetCount\n */\n\n\n List.prototype.lttbDownSample = function (valueDimension, rate) {\n var list = cloneListForMapAndSample(this, []);\n var targetStorage = list._storage;\n var dimStore = targetStorage[valueDimension];\n var len = this.count();\n var newIndices = new (getIndicesCtor(this))(len);\n var sampledIndex = 0;\n var frameSize = mathFloor(1 / rate);\n var currentRawIndex = this.getRawIndex(0);\n var maxArea;\n var area;\n var nextRawIndex; // First frame use the first data.\n\n newIndices[sampledIndex++] = currentRawIndex;\n\n for (var i = 1; i < len - 1; i += frameSize) {\n var nextFrameStart = Math.min(i + frameSize, len - 1);\n var nextFrameEnd = Math.min(i + frameSize * 2, len);\n var avgX = (nextFrameEnd + nextFrameStart) / 2;\n var avgY = 0;\n\n for (var idx = nextFrameStart; idx < nextFrameEnd; idx++) {\n var rawIndex = this.getRawIndex(idx);\n var y = dimStore[rawIndex];\n\n if (isNaN(y)) {\n continue;\n }\n\n avgY += y;\n }\n\n avgY /= nextFrameEnd - nextFrameStart;\n var frameStart = i;\n var frameEnd = Math.min(i + frameSize, len);\n var pointAX = i - 1;\n var pointAY = dimStore[currentRawIndex];\n maxArea = -1;\n nextRawIndex = frameStart; // Find a point from current frame that construct a triangel with largest area with previous selected point\n // And the average of next frame.\n\n for (var idx = frameStart; idx < frameEnd; idx++) {\n var rawIndex = this.getRawIndex(idx);\n var y = dimStore[rawIndex];\n\n if (isNaN(y)) {\n continue;\n } // Calculate triangle area over three buckets\n\n\n area = Math.abs((pointAX - avgX) * (y - pointAY) - (pointAX - idx) * (avgY - pointAY));\n\n if (area > maxArea) {\n maxArea = area;\n nextRawIndex = rawIndex; // Next a is this b\n }\n }\n\n newIndices[sampledIndex++] = nextRawIndex;\n currentRawIndex = nextRawIndex; // This a is the next a (chosen b)\n } // First frame use the last data.\n\n\n newIndices[sampledIndex++] = this.getRawIndex(len - 1);\n list._count = sampledIndex;\n list._indices = newIndices;\n list.getRawIndex = getRawIndexWithIndices;\n return list;\n };\n /**\n * Get model of one data item.\n */\n // TODO: Type of data item\n\n\n List.prototype.getItemModel = function (idx) {\n var hostModel = this.hostModel;\n var dataItem = this.getRawDataItem(idx);\n return new Model(dataItem, hostModel, hostModel && hostModel.ecModel);\n };\n /**\n * Create a data differ\n */\n\n\n List.prototype.diff = function (otherList) {\n var thisList = this;\n return new DataDiffer(otherList ? otherList.getIndices() : [], this.getIndices(), function (idx) {\n return getId(otherList, idx);\n }, function (idx) {\n return getId(thisList, idx);\n });\n };\n /**\n * Get visual property.\n */\n\n\n List.prototype.getVisual = function (key) {\n var visual = this._visual;\n return visual && visual[key];\n };\n\n List.prototype.setVisual = function (kvObj, val) {\n this._visual = this._visual || {};\n\n if (isObject(kvObj)) {\n zrUtil.extend(this._visual, kvObj);\n } else {\n this._visual[kvObj] = val;\n }\n };\n /**\n * Get visual property of single data item\n */\n // eslint-disable-next-line\n\n\n List.prototype.getItemVisual = function (idx, key) {\n var itemVisual = this._itemVisuals[idx];\n var val = itemVisual && itemVisual[key];\n\n if (val == null) {\n // Use global visual property\n return this.getVisual(key);\n }\n\n return val;\n };\n /**\n * If exists visual property of single data item\n */\n\n\n List.prototype.hasItemVisual = function () {\n return this._itemVisuals.length > 0;\n };\n /**\n * Make sure itemVisual property is unique\n */\n // TODO: use key to save visual to reduce memory.\n\n\n List.prototype.ensureUniqueItemVisual = function (idx, key) {\n var itemVisuals = this._itemVisuals;\n var itemVisual = itemVisuals[idx];\n\n if (!itemVisual) {\n itemVisual = itemVisuals[idx] = {};\n }\n\n var val = itemVisual[key];\n\n if (val == null) {\n val = this.getVisual(key); // TODO Performance?\n\n if (zrUtil.isArray(val)) {\n val = val.slice();\n } else if (isObject(val)) {\n val = zrUtil.extend({}, val);\n }\n\n itemVisual[key] = val;\n }\n\n return val;\n }; // eslint-disable-next-line\n\n\n List.prototype.setItemVisual = function (idx, key, value) {\n var itemVisual = this._itemVisuals[idx] || {};\n this._itemVisuals[idx] = itemVisual;\n\n if (isObject(key)) {\n zrUtil.extend(itemVisual, key);\n } else {\n itemVisual[key] = value;\n }\n };\n /**\n * Clear itemVisuals and list visual.\n */\n\n\n List.prototype.clearAllVisual = function () {\n this._visual = {};\n this._itemVisuals = [];\n };\n\n List.prototype.setLayout = function (key, val) {\n if (isObject(key)) {\n for (var name_1 in key) {\n if (key.hasOwnProperty(name_1)) {\n this.setLayout(name_1, key[name_1]);\n }\n }\n\n return;\n }\n\n this._layout[key] = val;\n };\n /**\n * Get layout property.\n */\n\n\n List.prototype.getLayout = function (key) {\n return this._layout[key];\n };\n /**\n * Get layout of single data item\n */\n\n\n List.prototype.getItemLayout = function (idx) {\n return this._itemLayouts[idx];\n };\n /**\n * Set layout of single data item\n */\n\n\n List.prototype.setItemLayout = function (idx, layout, merge) {\n this._itemLayouts[idx] = merge ? zrUtil.extend(this._itemLayouts[idx] || {}, layout) : layout;\n };\n /**\n * Clear all layout of single data item\n */\n\n\n List.prototype.clearItemLayouts = function () {\n this._itemLayouts.length = 0;\n };\n /**\n * Set graphic element relative to data. It can be set as null\n */\n\n\n List.prototype.setItemGraphicEl = function (idx, el) {\n var hostModel = this.hostModel;\n\n if (el) {\n var ecData = getECData(el); // Add data index and series index for indexing the data by element\n // Useful in tooltip\n\n ecData.dataIndex = idx;\n ecData.dataType = this.dataType;\n ecData.seriesIndex = hostModel && hostModel.seriesIndex; // TODO: not store dataIndex on children.\n\n if (el.type === 'group') {\n el.traverse(setItemDataAndSeriesIndex, el);\n }\n }\n\n this._graphicEls[idx] = el;\n };\n\n List.prototype.getItemGraphicEl = function (idx) {\n return this._graphicEls[idx];\n };\n\n List.prototype.eachItemGraphicEl = function (cb, context) {\n zrUtil.each(this._graphicEls, function (el, idx) {\n if (el) {\n cb && cb.call(context, el, idx);\n }\n });\n };\n /**\n * Shallow clone a new list except visual and layout properties, and graph elements.\n * New list only change the indices.\n */\n\n\n List.prototype.cloneShallow = function (list) {\n if (!list) {\n var dimensionInfoList = map(this.dimensions, this.getDimensionInfo, this);\n list = new List(dimensionInfoList, this.hostModel);\n } // FIXME\n\n\n list._storage = this._storage;\n list._storageArr = this._storageArr;\n transferProperties(list, this); // Clone will not change the data extent and indices\n\n if (this._indices) {\n var Ctor = this._indices.constructor;\n\n if (Ctor === Array) {\n var thisCount = this._indices.length;\n list._indices = new Ctor(thisCount);\n\n for (var i = 0; i < thisCount; i++) {\n list._indices[i] = this._indices[i];\n }\n } else {\n list._indices = new Ctor(this._indices);\n }\n } else {\n list._indices = null;\n }\n\n list.getRawIndex = list._indices ? getRawIndexWithIndices : getRawIndexWithoutIndices;\n return list;\n };\n /**\n * Wrap some method to add more feature\n */\n\n\n List.prototype.wrapMethod = function (methodName, injectFunction) {\n var originalMethod = this[methodName];\n\n if (typeof originalMethod !== 'function') {\n return;\n }\n\n this.__wrappedMethods = this.__wrappedMethods || [];\n\n this.__wrappedMethods.push(methodName);\n\n this[methodName] = function () {\n var res = originalMethod.apply(this, arguments);\n return injectFunction.apply(this, [res].concat(zrUtil.slice(arguments)));\n };\n }; // ----------------------------------------------------------\n // A work around for internal method visiting private member.\n // ----------------------------------------------------------\n\n\n List.internalField = function () {\n defaultDimValueGetters = {\n arrayRows: getDimValueSimply,\n objectRows: function (dataItem, dimName, dataIndex, dimIndex) {\n return parseDataValue(dataItem[dimName], this._dimensionInfos[dimName]);\n },\n keyedColumns: getDimValueSimply,\n original: function (dataItem, dimName, dataIndex, dimIndex) {\n // Performance sensitive, do not use modelUtil.getDataItemValue.\n // If dataItem is an plain object with no value field, the let `value`\n // will be assigned with the object, but it will be tread correctly\n // in the `convertValue`.\n var value = dataItem && (dataItem.value == null ? dataItem : dataItem.value); // If any dataItem is like { value: 10 }\n\n if (!this._rawData.pure && isDataItemOption(dataItem)) {\n this.hasItemOption = true;\n }\n\n return parseDataValue(value instanceof Array ? value[dimIndex] // If value is a single number or something else not array.\n : value, this._dimensionInfos[dimName]);\n },\n typedArray: function (dataItem, dimName, dataIndex, dimIndex) {\n return dataItem[dimIndex];\n }\n };\n\n function getDimValueSimply(dataItem, dimName, dataIndex, dimIndex) {\n return parseDataValue(dataItem[dimIndex], this._dimensionInfos[dimName]);\n }\n\n prepareInvertedIndex = function (list) {\n var invertedIndicesMap = list._invertedIndicesMap;\n zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) {\n var dimInfo = list._dimensionInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices.\n\n var ordinalMeta = dimInfo.ordinalMeta;\n\n if (ordinalMeta) {\n invertedIndices = invertedIndicesMap[dim] = new CtorInt32Array(ordinalMeta.categories.length); // The default value of TypedArray is 0. To avoid miss\n // mapping to 0, we should set it as INDEX_NOT_FOUND.\n\n for (var i = 0; i < invertedIndices.length; i++) {\n invertedIndices[i] = INDEX_NOT_FOUND;\n }\n\n for (var i = 0; i < list._count; i++) {\n // Only support the case that all values are distinct.\n invertedIndices[list.get(dim, i)] = i;\n }\n }\n });\n };\n\n getIdNameFromStore = function (list, dimIdx, ordinalMeta, rawIndex) {\n var val;\n var chunk = list._storageArr[dimIdx];\n\n if (chunk) {\n val = chunk[rawIndex];\n\n if (ordinalMeta && ordinalMeta.categories.length) {\n val = ordinalMeta.categories[val];\n }\n }\n\n return convertOptionIdName(val, null);\n };\n\n getIndicesCtor = function (list) {\n // The possible max value in this._indicies is always this._rawCount despite of filtering.\n return list._rawCount > 65535 ? CtorUint32Array : CtorUint16Array;\n };\n\n prepareStorage = function (storage, dimInfo, end, append) {\n var DataCtor = dataCtors[dimInfo.type];\n var dim = dimInfo.name;\n\n if (append) {\n var oldStore = storage[dim];\n var oldLen = oldStore && oldStore.length;\n\n if (!(oldLen === end)) {\n var newStore = new DataCtor(end); // The cost of the copy is probably inconsiderable\n // within the initial chunkSize.\n\n for (var j = 0; j < oldLen; j++) {\n newStore[j] = oldStore[j];\n }\n\n storage[dim] = newStore;\n }\n } else {\n storage[dim] = new DataCtor(end);\n }\n };\n\n getRawIndexWithoutIndices = function (idx) {\n return idx;\n };\n\n getRawIndexWithIndices = function (idx) {\n if (idx < this._count && idx >= 0) {\n return this._indices[idx];\n }\n\n return -1;\n };\n /**\n * @see the comment of `List['getId']`.\n */\n\n\n getId = function (list, rawIndex) {\n var id = list._idList[rawIndex];\n\n if (id == null && list._idDimIdx != null) {\n id = getIdNameFromStore(list, list._idDimIdx, list._idOrdinalMeta, rawIndex);\n }\n\n if (id == null) {\n id = ID_PREFIX + rawIndex;\n }\n\n return id;\n };\n\n normalizeDimensions = function (dimensions) {\n if (!zrUtil.isArray(dimensions)) {\n dimensions = dimensions != null ? [dimensions] : [];\n }\n\n return dimensions;\n };\n\n validateDimensions = function (list, dims) {\n for (var i = 0; i < dims.length; i++) {\n // stroage may be empty when no data, so use\n // dimensionInfos to check.\n if (!list._dimensionInfos[dims[i]]) {\n console.error('Unkown dimension ' + dims[i]);\n }\n }\n }; // Data in excludeDimensions is copied, otherwise transfered.\n\n\n cloneListForMapAndSample = function (original, excludeDimensions) {\n var allDimensions = original.dimensions;\n var list = new List(map(allDimensions, original.getDimensionInfo, original), original.hostModel); // FIXME If needs stackedOn, value may already been stacked\n\n transferProperties(list, original);\n var storage = list._storage = {};\n var originalStorage = original._storage;\n var storageArr = list._storageArr = []; // Init storage\n\n for (var i = 0; i < allDimensions.length; i++) {\n var dim = allDimensions[i];\n\n if (originalStorage[dim]) {\n // Notice that we do not reset invertedIndicesMap here, becuase\n // there is no scenario of mapping or sampling ordinal dimension.\n if (zrUtil.indexOf(excludeDimensions, dim) >= 0) {\n storage[dim] = cloneChunk(originalStorage[dim]);\n list._rawExtent[dim] = getInitialExtent();\n list._extent[dim] = null;\n } else {\n // Direct reference for other dimensions\n storage[dim] = originalStorage[dim];\n }\n\n storageArr.push(storage[dim]);\n }\n }\n\n return list;\n };\n\n function cloneChunk(originalChunk) {\n var Ctor = originalChunk.constructor; // Only shallow clone is enough when Array.\n\n return Ctor === Array ? originalChunk.slice() : new Ctor(originalChunk);\n }\n\n getInitialExtent = function () {\n return [Infinity, -Infinity];\n };\n\n setItemDataAndSeriesIndex = function (child) {\n var childECData = getECData(child);\n var thisECData = getECData(this);\n childECData.seriesIndex = thisECData.seriesIndex;\n childECData.dataIndex = thisECData.dataIndex;\n childECData.dataType = thisECData.dataType;\n };\n\n transferProperties = function (target, source) {\n zrUtil.each(TRANSFERABLE_PROPERTIES.concat(source.__wrappedMethods || []), function (propName) {\n if (source.hasOwnProperty(propName)) {\n target[propName] = source[propName];\n }\n });\n target.__wrappedMethods = source.__wrappedMethods;\n zrUtil.each(CLONE_PROPERTIES, function (propName) {\n target[propName] = zrUtil.clone(source[propName]);\n });\n target._calculationInfo = zrUtil.extend({}, source._calculationInfo);\n };\n\n makeIdFromName = function (list, idx) {\n var nameList = list._nameList;\n var idList = list._idList;\n var nameDimIdx = list._nameDimIdx;\n var idDimIdx = list._idDimIdx;\n var name = nameList[idx];\n var id = idList[idx];\n\n if (name == null && nameDimIdx != null) {\n nameList[idx] = name = getIdNameFromStore(list, nameDimIdx, list._nameOrdinalMeta, idx);\n }\n\n if (id == null && idDimIdx != null) {\n idList[idx] = id = getIdNameFromStore(list, idDimIdx, list._idOrdinalMeta, idx);\n }\n\n if (id == null && name != null) {\n var nameRepeatCount = list._nameRepeatCount;\n var nmCnt = nameRepeatCount[name] = (nameRepeatCount[name] || 0) + 1;\n id = name;\n\n if (nmCnt > 1) {\n id += '__ec__' + nmCnt;\n }\n\n idList[idx] = id;\n }\n };\n }();\n\n return List;\n}();\n\nexport default List;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @deprecated\n * Use `echarts/data/helper/createDimensions` instead.\n */\nimport { createHashMap, each, isString, defaults, extend, isObject, clone } from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport { guessOrdinal, BE_ORDINAL } from './sourceHelper';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../Source';\nimport { VISUAL_DIMENSIONS } from '../../util/types';\nimport DataDimensionInfo from '../DataDimensionInfo';\n/**\n * @see {module:echarts/test/ut/spec/data/completeDimensions}\n *\n * This method builds the relationship between:\n * + \"what the coord sys or series requires (see `sysDims`)\",\n * + \"what the user defines (in `encode` and `dimensions`, see `opt.dimsDef` and `opt.encodeDef`)\"\n * + \"what the data source provids (see `source`)\".\n *\n * Some guess strategy will be adapted if user does not define something.\n * If no 'value' dimension specified, the first no-named dimension will be\n * named as 'value'.\n *\n * @param {Array.} sysDims Necessary dimensions, like ['x', 'y'], which\n * provides not only dim template, but also default order.\n * properties: 'name', 'type', 'displayName'.\n * `name` of each item provides default coord name.\n * [{dimsDef: [string|Object, ...]}, ...] dimsDef of sysDim item provides default dim name, and\n * provide dims count that the sysDim required.\n * [{ordinalMeta}] can be specified.\n * @param {module:echarts/data/Source|Array|Object} source or data (for compatibal with pervious)\n * @param {Object} [opt]\n * @param {Array.} [opt.dimsDef] option.series.dimensions User defined dimensions\n * For example: ['asdf', {name, type}, ...].\n * @param {Object|HashMap} [opt.encodeDef] option.series.encode {x: 2, y: [3, 1], tooltip: [1, 2], label: 3}\n * @param {Function} [opt.encodeDefaulter] Called if no `opt.encodeDef` exists.\n * If not specified, auto find the next available data dim.\n * param source {module:data/Source}\n * param dimCount {number}\n * return {Object} encode Never be `null/undefined`.\n * @param {string} [opt.generateCoord] Generate coord dim with the given name.\n * If not specified, extra dim names will be:\n * 'value', 'value0', 'value1', ...\n * @param {number} [opt.generateCoordCount] By default, the generated dim name is `generateCoord`.\n * If `generateCoordCount` specified, the generated dim names will be:\n * `generateCoord` + 0, `generateCoord` + 1, ...\n * can be Infinity, indicate that use all of the remain columns.\n * @param {number} [opt.dimCount] If not specified, guess by the first data item.\n * @return {Array.}\n */\n\nfunction completeDimensions(sysDims, source, opt) {\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source);\n }\n\n opt = opt || {};\n sysDims = (sysDims || []).slice();\n var dimsDef = (opt.dimsDef || []).slice();\n var dataDimNameMap = createHashMap();\n var coordDimNameMap = createHashMap(); // let valueCandidate;\n\n var result = [];\n var dimCount = getDimCount(source, sysDims, dimsDef, opt.dimCount); // Apply user defined dims (`name` and `type`) and init result.\n\n for (var i = 0; i < dimCount; i++) {\n var dimDefItemRaw = dimsDef[i];\n var dimDefItem = dimsDef[i] = extend({}, isObject(dimDefItemRaw) ? dimDefItemRaw : {\n name: dimDefItemRaw\n });\n var userDimName = dimDefItem.name;\n var resultItem = result[i] = new DataDimensionInfo(); // Name will be applied later for avoiding duplication.\n\n if (userDimName != null && dataDimNameMap.get(userDimName) == null) {\n // Only if `series.dimensions` is defined in option\n // displayName, will be set, and dimension will be diplayed vertically in\n // tooltip by default.\n resultItem.name = resultItem.displayName = userDimName;\n dataDimNameMap.set(userDimName, i);\n }\n\n dimDefItem.type != null && (resultItem.type = dimDefItem.type);\n dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName);\n }\n\n var encodeDef = opt.encodeDef;\n\n if (!encodeDef && opt.encodeDefaulter) {\n encodeDef = opt.encodeDefaulter(source, dimCount);\n }\n\n var encodeDefMap = createHashMap(encodeDef); // Set `coordDim` and `coordDimIndex` by `encodeDefMap` and normalize `encodeDefMap`.\n\n encodeDefMap.each(function (dataDimsRaw, coordDim) {\n var dataDims = normalizeToArray(dataDimsRaw).slice(); // Note: It is allowed that `dataDims.length` is `0`, e.g., options is\n // `{encode: {x: -1, y: 1}}`. Should not filter anything in\n // this case.\n\n if (dataDims.length === 1 && !isString(dataDims[0]) && dataDims[0] < 0) {\n encodeDefMap.set(coordDim, false);\n return;\n }\n\n var validDataDims = encodeDefMap.set(coordDim, []);\n each(dataDims, function (resultDimIdxOrName, idx) {\n // The input resultDimIdx can be dim name or index.\n var resultDimIdx = isString(resultDimIdxOrName) ? dataDimNameMap.get(resultDimIdxOrName) : resultDimIdxOrName;\n\n if (resultDimIdx != null && resultDimIdx < dimCount) {\n validDataDims[idx] = resultDimIdx;\n applyDim(result[resultDimIdx], coordDim, idx);\n }\n });\n }); // Apply templetes and default order from `sysDims`.\n\n var availDimIdx = 0;\n each(sysDims, function (sysDimItemRaw) {\n var coordDim;\n var sysDimItemDimsDef;\n var sysDimItemOtherDims;\n var sysDimItem;\n\n if (isString(sysDimItemRaw)) {\n coordDim = sysDimItemRaw;\n sysDimItem = {};\n } else {\n sysDimItem = sysDimItemRaw;\n coordDim = sysDimItem.name;\n var ordinalMeta = sysDimItem.ordinalMeta;\n sysDimItem.ordinalMeta = null;\n sysDimItem = clone(sysDimItem);\n sysDimItem.ordinalMeta = ordinalMeta; // `coordDimIndex` should not be set directly.\n\n sysDimItemDimsDef = sysDimItem.dimsDef;\n sysDimItemOtherDims = sysDimItem.otherDims;\n sysDimItem.name = sysDimItem.coordDim = sysDimItem.coordDimIndex = sysDimItem.dimsDef = sysDimItem.otherDims = null;\n }\n\n var dataDims = encodeDefMap.get(coordDim); // negative resultDimIdx means no need to mapping.\n\n if (dataDims === false) {\n return;\n }\n\n dataDims = normalizeToArray(dataDims); // dimensions provides default dim sequences.\n\n if (!dataDims.length) {\n for (var i = 0; i < (sysDimItemDimsDef && sysDimItemDimsDef.length || 1); i++) {\n while (availDimIdx < result.length && result[availDimIdx].coordDim != null) {\n availDimIdx++;\n }\n\n availDimIdx < result.length && dataDims.push(availDimIdx++);\n }\n } // Apply templates.\n\n\n each(dataDims, function (resultDimIdx, coordDimIndex) {\n var resultItem = result[resultDimIdx];\n applyDim(defaults(resultItem, sysDimItem), coordDim, coordDimIndex);\n\n if (resultItem.name == null && sysDimItemDimsDef) {\n var sysDimItemDimsDefItem = sysDimItemDimsDef[coordDimIndex];\n !isObject(sysDimItemDimsDefItem) && (sysDimItemDimsDefItem = {\n name: sysDimItemDimsDefItem\n });\n resultItem.name = resultItem.displayName = sysDimItemDimsDefItem.name;\n resultItem.defaultTooltip = sysDimItemDimsDefItem.defaultTooltip;\n } // FIXME refactor, currently only used in case: {otherDims: {tooltip: false}}\n\n\n sysDimItemOtherDims && defaults(resultItem.otherDims, sysDimItemOtherDims);\n });\n });\n\n function applyDim(resultItem, coordDim, coordDimIndex) {\n if (VISUAL_DIMENSIONS.get(coordDim) != null) {\n resultItem.otherDims[coordDim] = coordDimIndex;\n } else {\n resultItem.coordDim = coordDim;\n resultItem.coordDimIndex = coordDimIndex;\n coordDimNameMap.set(coordDim, true);\n }\n } // Make sure the first extra dim is 'value'.\n\n\n var generateCoord = opt.generateCoord;\n var generateCoordCount = opt.generateCoordCount;\n var fromZero = generateCoordCount != null;\n generateCoordCount = generateCoord ? generateCoordCount || 1 : 0;\n var extra = generateCoord || 'value'; // Set dim `name` and other `coordDim` and other props.\n\n for (var resultDimIdx = 0; resultDimIdx < dimCount; resultDimIdx++) {\n var resultItem = result[resultDimIdx] = result[resultDimIdx] || new DataDimensionInfo();\n var coordDim = resultItem.coordDim;\n\n if (coordDim == null) {\n resultItem.coordDim = genName(extra, coordDimNameMap, fromZero);\n resultItem.coordDimIndex = 0;\n\n if (!generateCoord || generateCoordCount <= 0) {\n resultItem.isExtraCoord = true;\n }\n\n generateCoordCount--;\n }\n\n resultItem.name == null && (resultItem.name = genName(resultItem.coordDim, dataDimNameMap, false));\n\n if (resultItem.type == null && (guessOrdinal(source, resultDimIdx) === BE_ORDINAL.Must // Consider the case:\n // {\n // dataset: {source: [\n // ['2001', 123],\n // ['2002', 456],\n // ...\n // ['The others', 987],\n // ]},\n // series: {type: 'pie'}\n // }\n // The first colum should better be treated as a \"ordinal\" although it\n // might not able to be detected as an \"ordinal\" by `guessOrdinal`.\n || resultItem.isExtraCoord && (resultItem.otherDims.itemName != null || resultItem.otherDims.seriesName != null))) {\n resultItem.type = 'ordinal';\n }\n }\n\n return result;\n} // ??? TODO\n// Originally detect dimCount by data[0]. Should we\n// optimize it to only by sysDims and dimensions and encode.\n// So only necessary dims will be initialized.\n// But\n// (1) custom series should be considered. where other dims\n// may be visited.\n// (2) sometimes user need to calcualte bubble size or use visualMap\n// on other dimensions besides coordSys needed.\n// So, dims that is not used by system, should be shared in storage?\n\n\nfunction getDimCount(source, sysDims, dimsDef, optDimCount) {\n // Note that the result dimCount should not small than columns count\n // of data, otherwise `dataDimNameMap` checking will be incorrect.\n var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0);\n each(sysDims, function (sysDimItem) {\n var sysDimItemDimsDef;\n\n if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {\n dimCount = Math.max(dimCount, sysDimItemDimsDef.length);\n }\n });\n return dimCount;\n}\n\nfunction genName(name, map, fromZero) {\n if (fromZero || map.get(name) != null) {\n var i = 0;\n\n while (map.get(name + i) != null) {\n i++;\n }\n\n name += i;\n }\n\n map.set(name, true);\n return name;\n}\n\nexport default completeDimensions;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Substitute `completeDimensions`.\n * `completeDimensions` is to be deprecated.\n */\nimport completeDimensions from './completeDimensions';\n/**\n * @param opt.coordDimensions\n * @param opt.dimensionsDefine By default `source.dimensionsDefine` Overwrite source define.\n * @param opt.encodeDefine By default `source.encodeDefine` Overwrite source define.\n * @param opt.encodeDefaulter Make default encode if user not specified.\n */\n\nexport default function createDimensions( // TODO: TYPE completeDimensions type\nsource, opt) {\n opt = opt || {};\n return completeDimensions(opt.coordDimensions || [], source, {\n // FIXME:TS detect whether source then call `.dimensionsDefine` and `.encodeDefine`?\n dimsDef: opt.dimensionsDefine || source.dimensionsDefine,\n encodeDef: opt.encodeDefine || source.encodeDefine,\n dimCount: opt.dimensionsCount,\n encodeDefaulter: opt.encodeDefaulter,\n generateCoord: opt.generateCoord,\n generateCoordCount: opt.generateCoordCount\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Helper for model references.\n * There are many manners to refer axis/coordSys.\n */\n// TODO\n// merge relevant logic to this file?\n// check: \"modelHelper\" of tooltip and \"BrushTargetManager\".\nimport { createHashMap, retrieve, each } from 'zrender/lib/core/util';\nimport { SINGLE_REFERRING } from '../util/model';\n/**\n * @class\n * For example:\n * {\n * coordSysName: 'cartesian2d',\n * coordSysDims: ['x', 'y', ...],\n * axisMap: HashMap({\n * x: xAxisModel,\n * y: yAxisModel\n * }),\n * categoryAxisMap: HashMap({\n * x: xAxisModel,\n * y: undefined\n * }),\n * // The index of the first category axis in `coordSysDims`.\n * // `null/undefined` means no category axis exists.\n * firstCategoryDimIndex: 1,\n * // To replace user specified encode.\n * }\n */\n\nvar CoordSysInfo =\n/** @class */\nfunction () {\n function CoordSysInfo(coordSysName) {\n this.coordSysDims = [];\n this.axisMap = createHashMap();\n this.categoryAxisMap = createHashMap();\n this.coordSysName = coordSysName;\n }\n\n return CoordSysInfo;\n}();\n\nexport function getCoordSysInfoBySeries(seriesModel) {\n var coordSysName = seriesModel.get('coordinateSystem');\n var result = new CoordSysInfo(coordSysName);\n var fetch = fetchers[coordSysName];\n\n if (fetch) {\n fetch(seriesModel, result, result.axisMap, result.categoryAxisMap);\n return result;\n }\n}\nvar fetchers = {\n cartesian2d: function (seriesModel, result, axisMap, categoryAxisMap) {\n var xAxisModel = seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];\n var yAxisModel = seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!xAxisModel) {\n throw new Error('xAxis \"' + retrieve(seriesModel.get('xAxisIndex'), seriesModel.get('xAxisId'), 0) + '\" not found');\n }\n\n if (!yAxisModel) {\n throw new Error('yAxis \"' + retrieve(seriesModel.get('xAxisIndex'), seriesModel.get('yAxisId'), 0) + '\" not found');\n }\n }\n\n result.coordSysDims = ['x', 'y'];\n axisMap.set('x', xAxisModel);\n axisMap.set('y', yAxisModel);\n\n if (isCategory(xAxisModel)) {\n categoryAxisMap.set('x', xAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n\n if (isCategory(yAxisModel)) {\n categoryAxisMap.set('y', yAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n singleAxis: function (seriesModel, result, axisMap, categoryAxisMap) {\n var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!singleAxisModel) {\n throw new Error('singleAxis should be specified.');\n }\n }\n\n result.coordSysDims = ['single'];\n axisMap.set('single', singleAxisModel);\n\n if (isCategory(singleAxisModel)) {\n categoryAxisMap.set('single', singleAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n },\n polar: function (seriesModel, result, axisMap, categoryAxisMap) {\n var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n var radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n var angleAxisModel = polarModel.findAxisModel('angleAxis');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!angleAxisModel) {\n throw new Error('angleAxis option not found');\n }\n\n if (!radiusAxisModel) {\n throw new Error('radiusAxis option not found');\n }\n }\n\n result.coordSysDims = ['radius', 'angle'];\n axisMap.set('radius', radiusAxisModel);\n axisMap.set('angle', angleAxisModel);\n\n if (isCategory(radiusAxisModel)) {\n categoryAxisMap.set('radius', radiusAxisModel);\n result.firstCategoryDimIndex = 0;\n }\n\n if (isCategory(angleAxisModel)) {\n categoryAxisMap.set('angle', angleAxisModel);\n result.firstCategoryDimIndex == null && (result.firstCategoryDimIndex = 1);\n }\n },\n geo: function (seriesModel, result, axisMap, categoryAxisMap) {\n result.coordSysDims = ['lng', 'lat'];\n },\n parallel: function (seriesModel, result, axisMap, categoryAxisMap) {\n var ecModel = seriesModel.ecModel;\n var parallelModel = ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));\n var coordSysDims = result.coordSysDims = parallelModel.dimensions.slice();\n each(parallelModel.parallelAxisIndex, function (axisIndex, index) {\n var axisModel = ecModel.getComponent('parallelAxis', axisIndex);\n var axisDim = coordSysDims[index];\n axisMap.set(axisDim, axisModel);\n\n if (isCategory(axisModel)) {\n categoryAxisMap.set(axisDim, axisModel);\n\n if (result.firstCategoryDimIndex == null) {\n result.firstCategoryDimIndex = index;\n }\n }\n });\n }\n};\n\nfunction isCategory(axisModel) {\n return axisModel.get('type') === 'category';\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, isString } from 'zrender/lib/core/util';\n/**\n * Note that it is too complicated to support 3d stack by value\n * (have to create two-dimension inverted index), so in 3d case\n * we just support that stacked by index.\n *\n * @param seriesModel\n * @param dimensionInfoList The same as the input of .\n * The input dimensionInfoList will be modified.\n * @param opt\n * @param opt.stackedCoordDimension Specify a coord dimension if needed.\n * @param opt.byIndex=false\n * @return calculationInfo\n * {\n * stackedDimension: string\n * stackedByDimension: string\n * isStackedByIndex: boolean\n * stackedOverDimension: string\n * stackResultDimension: string\n * }\n */\n\nexport function enableDataStack(seriesModel, dimensionInfoList, opt) {\n opt = opt || {};\n var byIndex = opt.byIndex;\n var stackedCoordDimension = opt.stackedCoordDimension; // Compatibal: when `stack` is set as '', do not stack.\n\n var mayStack = !!(seriesModel && seriesModel.get('stack'));\n var stackedByDimInfo;\n var stackedDimInfo;\n var stackResultDimension;\n var stackedOverDimension;\n each(dimensionInfoList, function (dimensionInfo, index) {\n if (isString(dimensionInfo)) {\n dimensionInfoList[index] = dimensionInfo = {\n name: dimensionInfo\n };\n }\n\n if (mayStack && !dimensionInfo.isExtraCoord) {\n // Find the first ordinal dimension as the stackedByDimInfo.\n if (!byIndex && !stackedByDimInfo && dimensionInfo.ordinalMeta) {\n stackedByDimInfo = dimensionInfo;\n } // Find the first stackable dimension as the stackedDimInfo.\n\n\n if (!stackedDimInfo && dimensionInfo.type !== 'ordinal' && dimensionInfo.type !== 'time' && (!stackedCoordDimension || stackedCoordDimension === dimensionInfo.coordDim)) {\n stackedDimInfo = dimensionInfo;\n }\n }\n });\n\n if (stackedDimInfo && !byIndex && !stackedByDimInfo) {\n // Compatible with previous design, value axis (time axis) only stack by index.\n // It may make sense if the user provides elaborately constructed data.\n byIndex = true;\n } // Add stack dimension, they can be both calculated by coordinate system in `unionExtent`.\n // That put stack logic in List is for using conveniently in echarts extensions, but it\n // might not be a good way.\n\n\n if (stackedDimInfo) {\n // Use a weird name that not duplicated with other names.\n stackResultDimension = '__\\0ecstackresult';\n stackedOverDimension = '__\\0ecstackedover'; // Create inverted index to fast query index by value.\n\n if (stackedByDimInfo) {\n stackedByDimInfo.createInvertedIndices = true;\n }\n\n var stackedDimCoordDim_1 = stackedDimInfo.coordDim;\n var stackedDimType = stackedDimInfo.type;\n var stackedDimCoordIndex_1 = 0;\n each(dimensionInfoList, function (dimensionInfo) {\n if (dimensionInfo.coordDim === stackedDimCoordDim_1) {\n stackedDimCoordIndex_1++;\n }\n });\n dimensionInfoList.push({\n name: stackResultDimension,\n coordDim: stackedDimCoordDim_1,\n coordDimIndex: stackedDimCoordIndex_1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true\n });\n stackedDimCoordIndex_1++;\n dimensionInfoList.push({\n name: stackedOverDimension,\n // This dimension contains stack base (generally, 0), so do not set it as\n // `stackedDimCoordDim` to avoid extent calculation, consider log scale.\n coordDim: stackedOverDimension,\n coordDimIndex: stackedDimCoordIndex_1,\n type: stackedDimType,\n isExtraCoord: true,\n isCalculationCoord: true\n });\n }\n\n return {\n stackedDimension: stackedDimInfo && stackedDimInfo.name,\n stackedByDimension: stackedByDimInfo && stackedByDimInfo.name,\n isStackedByIndex: byIndex,\n stackedOverDimension: stackedOverDimension,\n stackResultDimension: stackResultDimension\n };\n}\nexport function isDimensionStacked(data, stackedDim\n/*, stackedByDim*/\n) {\n // Each single series only maps to one pair of axis. So we do not need to\n // check stackByDim, whatever stacked by a dimension or stacked by index.\n return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension'); // && (\n // stackedByDim != null\n // ? stackedByDim === data.getCalculationInfo('stackedByDimension')\n // : data.getCalculationInfo('isStackedByIndex')\n // );\n}\nexport function getStackedDimension(data, targetDim) {\n return isDimensionStacked(data, targetDim) ? data.getCalculationInfo('stackResultDimension') : targetDim;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport List from '../../data/List';\nimport createDimensions from '../../data/helper/createDimensions';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport { getDataItemValue } from '../../util/model';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport { getCoordSysInfoBySeries } from '../../model/referHelper';\nimport { createSourceFromSeriesDataOption, isSourceInstance } from '../../data/Source';\nimport { enableDataStack } from '../../data/helper/dataStackHelper';\nimport { makeSeriesEncodeForAxisCoordSys } from '../../data/helper/sourceHelper';\nimport { SOURCE_FORMAT_ORIGINAL } from '../../util/types';\n\nfunction createListFromArray(source, seriesModel, opt) {\n opt = opt || {};\n\n if (!isSourceInstance(source)) {\n source = createSourceFromSeriesDataOption(source);\n }\n\n var coordSysName = seriesModel.get('coordinateSystem');\n var registeredCoordSys = CoordinateSystem.get(coordSysName);\n var coordSysInfo = getCoordSysInfoBySeries(seriesModel);\n var coordSysDimDefs;\n\n if (coordSysInfo && coordSysInfo.coordSysDims) {\n coordSysDimDefs = zrUtil.map(coordSysInfo.coordSysDims, function (dim) {\n var dimInfo = {\n name: dim\n };\n var axisModel = coordSysInfo.axisMap.get(dim);\n\n if (axisModel) {\n var axisType = axisModel.get('type');\n dimInfo.type = getDimensionTypeByAxis(axisType); // dimInfo.stackable = isStackable(axisType);\n }\n\n return dimInfo;\n });\n }\n\n if (!coordSysDimDefs) {\n // Get dimensions from registered coordinate system\n coordSysDimDefs = registeredCoordSys && (registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice()) || ['x', 'y'];\n }\n\n var useEncodeDefaulter = opt.useEncodeDefaulter;\n var dimInfoList = createDimensions(source, {\n coordDimensions: coordSysDimDefs,\n generateCoord: opt.generateCoord,\n encodeDefaulter: zrUtil.isFunction(useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordSysDimDefs, seriesModel) : null\n });\n var firstCategoryDimIndex;\n var hasNameEncode;\n coordSysInfo && zrUtil.each(dimInfoList, function (dimInfo, dimIndex) {\n var coordDim = dimInfo.coordDim;\n var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);\n\n if (categoryAxisModel) {\n if (firstCategoryDimIndex == null) {\n firstCategoryDimIndex = dimIndex;\n }\n\n dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();\n\n if (opt.createInvertedIndices) {\n dimInfo.createInvertedIndices = true;\n }\n }\n\n if (dimInfo.otherDims.itemName != null) {\n hasNameEncode = true;\n }\n });\n\n if (!hasNameEncode && firstCategoryDimIndex != null) {\n dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;\n }\n\n var stackCalculationInfo = enableDataStack(seriesModel, dimInfoList);\n var list = new List(dimInfoList, seriesModel);\n list.setCalculationInfo(stackCalculationInfo);\n var dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) ? function (itemOpt, dimName, dataIndex, dimIndex) {\n // Use dataIndex as ordinal value in categoryAxis\n return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);\n } : null;\n list.hasItemOption = false;\n list.initData(source, null, dimValueGetter);\n return list;\n}\n\nfunction isNeedCompleteOrdinalData(source) {\n if (source.sourceFormat === SOURCE_FORMAT_ORIGINAL) {\n var sampleItem = firstDataNotNull(source.data || []);\n return sampleItem != null && !zrUtil.isArray(getDataItemValue(sampleItem));\n }\n}\n\nfunction firstDataNotNull(data) {\n var i = 0;\n\n while (i < data.length && data[i] == null) {\n i++;\n }\n\n return data[i];\n}\n\nexport default createListFromArray;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as clazzUtil from '../util/clazz';\n\nvar Scale =\n/** @class */\nfunction () {\n function Scale(setting) {\n this._setting = setting || {};\n this._extent = [Infinity, -Infinity];\n }\n\n Scale.prototype.getSetting = function (name) {\n return this._setting[name];\n };\n /**\n * Set extent from data\n */\n\n\n Scale.prototype.unionExtent = function (other) {\n var extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]); // not setExtent because in log axis it may transformed to power\n // this.setExtent(extent[0], extent[1]);\n };\n /**\n * Set extent from data\n */\n\n\n Scale.prototype.unionExtentFromData = function (data, dim) {\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * Get extent\n *\n * Extent is always in increase order.\n */\n\n\n Scale.prototype.getExtent = function () {\n return this._extent.slice();\n };\n /**\n * Set extent\n */\n\n\n Scale.prototype.setExtent = function (start, end) {\n var thisExtent = this._extent;\n\n if (!isNaN(start)) {\n thisExtent[0] = start;\n }\n\n if (!isNaN(end)) {\n thisExtent[1] = end;\n }\n };\n /**\n * If value is in extent range\n */\n\n\n Scale.prototype.isInExtentRange = function (value) {\n return this._extent[0] <= value && this._extent[1] >= value;\n };\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n\n\n Scale.prototype.isBlank = function () {\n return this._isBlank;\n };\n /**\n * When axis extent depends on data and no data exists,\n * axis ticks should not be drawn, which is named 'blank'.\n */\n\n\n Scale.prototype.setBlank = function (isBlank) {\n this._isBlank = isBlank;\n };\n\n return Scale;\n}();\n\nclazzUtil.enableClassManagement(Scale);\nexport default Scale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, isObject, map } from 'zrender/lib/core/util';\n\nvar OrdinalMeta =\n/** @class */\nfunction () {\n function OrdinalMeta(opt) {\n this.categories = opt.categories || [];\n this._needCollect = opt.needCollect;\n this._deduplication = opt.deduplication;\n }\n\n OrdinalMeta.createByAxisModel = function (axisModel) {\n var option = axisModel.option;\n var data = option.data;\n var categories = data && map(data, getName);\n return new OrdinalMeta({\n categories: categories,\n needCollect: !categories,\n // deduplication is default in axis.\n deduplication: option.dedplication !== false\n });\n };\n\n ;\n\n OrdinalMeta.prototype.getOrdinal = function (category) {\n // @ts-ignore\n return this._getOrCreateMap().get(category);\n };\n /**\n * @return The ordinal. If not found, return NaN.\n */\n\n\n OrdinalMeta.prototype.parseAndCollect = function (category) {\n var index;\n var needCollect = this._needCollect; // The value of category dim can be the index of the given category set.\n // This feature is only supported when !needCollect, because we should\n // consider a common case: a value is 2017, which is a number but is\n // expected to be tread as a category. This case usually happen in dataset,\n // where it happent to be no need of the index feature.\n\n if (typeof category !== 'string' && !needCollect) {\n return category;\n } // Optimize for the scenario:\n // category is ['2012-01-01', '2012-01-02', ...], where the input\n // data has been ensured not duplicate and is large data.\n // Notice, if a dataset dimension provide categroies, usually echarts\n // should remove duplication except user tell echarts dont do that\n // (set axis.deduplication = false), because echarts do not know whether\n // the values in the category dimension has duplication (consider the\n // parallel-aqi example)\n\n\n if (needCollect && !this._deduplication) {\n index = this.categories.length;\n this.categories[index] = category;\n return index;\n }\n\n var map = this._getOrCreateMap(); // @ts-ignore\n\n\n index = map.get(category);\n\n if (index == null) {\n if (needCollect) {\n index = this.categories.length;\n this.categories[index] = category; // @ts-ignore\n\n map.set(category, index);\n } else {\n index = NaN;\n }\n }\n\n return index;\n }; // Consider big data, do not create map until needed.\n\n\n OrdinalMeta.prototype._getOrCreateMap = function () {\n return this._map || (this._map = createHashMap(this.categories));\n };\n\n return OrdinalMeta;\n}();\n\nfunction getName(obj) {\n if (isObject(obj) && obj.value != null) {\n return obj.value;\n } else {\n return obj + '';\n }\n}\n\nexport default OrdinalMeta;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as numberUtil from '../util/number';\nvar roundNumber = numberUtil.round;\n/**\n * @param extent Both extent[0] and extent[1] should be valid number.\n * Should be extent[0] < extent[1].\n * @param splitNumber splitNumber should be >= 1.\n */\n\nexport function intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval) {\n var result = {};\n var span = extent[1] - extent[0];\n var interval = result.interval = numberUtil.nice(span / splitNumber, true);\n\n if (minInterval != null && interval < minInterval) {\n interval = result.interval = minInterval;\n }\n\n if (maxInterval != null && interval > maxInterval) {\n interval = result.interval = maxInterval;\n } // Tow more digital for tick.\n\n\n var precision = result.intervalPrecision = getIntervalPrecision(interval); // Niced extent inside original extent\n\n var niceTickExtent = result.niceTickExtent = [roundNumber(Math.ceil(extent[0] / interval) * interval, precision), roundNumber(Math.floor(extent[1] / interval) * interval, precision)];\n fixExtent(niceTickExtent, extent);\n return result;\n}\n/**\n * @return interval precision\n */\n\nexport function getIntervalPrecision(interval) {\n // Tow more digital for tick.\n return numberUtil.getPrecision(interval) + 2;\n}\n\nfunction clamp(niceTickExtent, idx, extent) {\n niceTickExtent[idx] = Math.max(Math.min(niceTickExtent[idx], extent[1]), extent[0]);\n} // In some cases (e.g., splitNumber is 1), niceTickExtent may be out of extent.\n\n\nexport function fixExtent(niceTickExtent, extent) {\n !isFinite(niceTickExtent[0]) && (niceTickExtent[0] = extent[0]);\n !isFinite(niceTickExtent[1]) && (niceTickExtent[1] = extent[1]);\n clamp(niceTickExtent, 0, extent);\n clamp(niceTickExtent, 1, extent);\n\n if (niceTickExtent[0] > niceTickExtent[1]) {\n niceTickExtent[0] = niceTickExtent[1];\n }\n}\nexport function contain(val, extent) {\n return val >= extent[0] && val <= extent[1];\n}\nexport function normalize(val, extent) {\n if (extent[1] === extent[0]) {\n return 0.5;\n }\n\n return (val - extent[0]) / (extent[1] - extent[0]);\n}\nexport function scale(val, extent) {\n return val * (extent[1] - extent[0]) + extent[0];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Linear continuous scale\n * http://en.wikipedia.org/wiki/Level_of_measurement\n */\n// FIXME only one data\n\nimport Scale from './Scale';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport * as scaleHelper from './helper';\nimport { isArray, map, isObject } from 'zrender/lib/core/util';\n\nvar OrdinalScale =\n/** @class */\nfunction (_super) {\n __extends(OrdinalScale, _super);\n\n function OrdinalScale(setting) {\n var _this = _super.call(this, setting) || this;\n\n _this.type = 'ordinal';\n\n var ordinalMeta = _this.getSetting('ordinalMeta'); // Caution: Should not use instanceof, consider ec-extensions using\n // import approach to get OrdinalMeta class.\n\n\n if (!ordinalMeta) {\n ordinalMeta = new OrdinalMeta({});\n }\n\n if (isArray(ordinalMeta)) {\n ordinalMeta = new OrdinalMeta({\n categories: map(ordinalMeta, function (item) {\n return isObject(item) ? item.value : item;\n })\n });\n }\n\n _this._ordinalMeta = ordinalMeta;\n _this._extent = _this.getSetting('extent') || [0, ordinalMeta.categories.length - 1];\n return _this;\n }\n\n OrdinalScale.prototype.parse = function (val) {\n return typeof val === 'string' ? this._ordinalMeta.getOrdinal(val) // val might be float.\n : Math.round(val);\n };\n\n OrdinalScale.prototype.contain = function (rank) {\n rank = this.parse(rank);\n return scaleHelper.contain(rank, this._extent) && this._ordinalMeta.categories[rank] != null;\n };\n /**\n * Normalize given rank or name to linear [0, 1]\n * @param val raw ordinal number.\n * @return normalized value in [0, 1].\n */\n\n\n OrdinalScale.prototype.normalize = function (val) {\n val = this._getTickNumber(this.parse(val));\n return scaleHelper.normalize(val, this._extent);\n };\n /**\n * @param val normalized value in [0, 1].\n * @return raw ordinal number.\n */\n\n\n OrdinalScale.prototype.scale = function (val) {\n val = Math.round(scaleHelper.scale(val, this._extent));\n return this.getRawOrdinalNumber(val);\n };\n\n OrdinalScale.prototype.getTicks = function () {\n var ticks = [];\n var extent = this._extent;\n var rank = extent[0];\n\n while (rank <= extent[1]) {\n ticks.push({\n value: rank\n });\n rank++;\n }\n\n return ticks;\n };\n\n OrdinalScale.prototype.getMinorTicks = function (splitNumber) {\n // Not support.\n return;\n };\n /**\n * @see `Ordinal['_ordinalNumbersByTick']`\n */\n\n\n OrdinalScale.prototype.setSortInfo = function (info) {\n if (info == null) {\n this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;\n return;\n }\n\n var infoOrdinalNumbers = info.ordinalNumbers;\n var ordinalsByTick = this._ordinalNumbersByTick = [];\n var ticksByOrdinal = this._ticksByOrdinalNumber = []; // Unnecessary support negative tick in `realtimeSort`.\n\n var tickNum = 0;\n var allCategoryLen = this._ordinalMeta.categories.length;\n\n for (var len = Math.min(allCategoryLen, infoOrdinalNumbers.length); tickNum < len; ++tickNum) {\n var ordinalNumber = infoOrdinalNumbers[tickNum];\n ordinalsByTick[tickNum] = ordinalNumber;\n ticksByOrdinal[ordinalNumber] = tickNum;\n } // Handle that `series.data` only covers part of the `axis.category.data`.\n\n\n var unusedOrdinal = 0;\n\n for (; tickNum < allCategoryLen; ++tickNum) {\n while (ticksByOrdinal[unusedOrdinal] != null) {\n unusedOrdinal++;\n }\n\n ;\n ordinalsByTick.push(unusedOrdinal);\n ticksByOrdinal[unusedOrdinal] = tickNum;\n }\n };\n\n OrdinalScale.prototype._getTickNumber = function (ordinal) {\n var ticksByOrdinalNumber = this._ticksByOrdinalNumber; // also support ordinal out of range of `ordinalMeta.categories.length`,\n // where ordinal numbers are used as tick value directly.\n\n return ticksByOrdinalNumber && ordinal >= 0 && ordinal < ticksByOrdinalNumber.length ? ticksByOrdinalNumber[ordinal] : ordinal;\n };\n /**\n * @usage\n * ```js\n * const ordinalNumber = ordinalScale.getRawOrdinalNumber(tickVal);\n *\n * // case0\n * const rawOrdinalValue = axisModel.getCategories()[ordinalNumber];\n * // case1\n * const rawOrdinalValue = this._ordinalMeta.categories[ordinalNumber];\n * // case2\n * const coord = axis.dataToCoord(ordinalNumber);\n * ```\n *\n * @param {OrdinalNumber} tickNumber index of display\n */\n\n\n OrdinalScale.prototype.getRawOrdinalNumber = function (tickNumber) {\n var ordinalNumbersByTick = this._ordinalNumbersByTick; // tickNumber may be out of range, e.g., when axis max is larger than `ordinalMeta.categories.length`.,\n // where ordinal numbers are used as tick value directly.\n\n return ordinalNumbersByTick && tickNumber >= 0 && tickNumber < ordinalNumbersByTick.length ? ordinalNumbersByTick[tickNumber] : tickNumber;\n };\n /**\n * Get item on tick\n */\n\n\n OrdinalScale.prototype.getLabel = function (tick) {\n if (!this.isBlank()) {\n var ordinalNumber = this.getRawOrdinalNumber(tick.value);\n var cateogry = this._ordinalMeta.categories[ordinalNumber]; // Note that if no data, ordinalMeta.categories is an empty array.\n // Return empty if it's not exist.\n\n return cateogry == null ? '' : cateogry + '';\n }\n };\n\n OrdinalScale.prototype.count = function () {\n return this._extent[1] - this._extent[0] + 1;\n };\n\n OrdinalScale.prototype.unionExtentFromData = function (data, dim) {\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * @override\n * If value is in extent range\n */\n\n\n OrdinalScale.prototype.isInExtentRange = function (value) {\n value = this._getTickNumber(value);\n return this._extent[0] <= value && this._extent[1] >= value;\n };\n\n OrdinalScale.prototype.getOrdinalMeta = function () {\n return this._ordinalMeta;\n };\n\n OrdinalScale.prototype.niceTicks = function () {};\n\n OrdinalScale.prototype.niceExtent = function () {};\n\n OrdinalScale.type = 'ordinal';\n return OrdinalScale;\n}(Scale);\n\nScale.registerClass(OrdinalScale);\nexport default OrdinalScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as numberUtil from '../util/number';\nimport * as formatUtil from '../util/format';\nimport Scale from './Scale';\nimport * as helper from './helper';\nvar roundNumber = numberUtil.round;\n\nvar IntervalScale =\n/** @class */\nfunction (_super) {\n __extends(IntervalScale, _super);\n\n function IntervalScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'interval'; // Step is calculated in adjustExtent.\n\n _this._interval = 0;\n _this._intervalPrecision = 2;\n return _this;\n }\n\n IntervalScale.prototype.parse = function (val) {\n return val;\n };\n\n IntervalScale.prototype.contain = function (val) {\n return helper.contain(val, this._extent);\n };\n\n IntervalScale.prototype.normalize = function (val) {\n return helper.normalize(val, this._extent);\n };\n\n IntervalScale.prototype.scale = function (val) {\n return helper.scale(val, this._extent);\n };\n\n IntervalScale.prototype.setExtent = function (start, end) {\n var thisExtent = this._extent; // start,end may be a Number like '25',so...\n\n if (!isNaN(start)) {\n thisExtent[0] = parseFloat(start);\n }\n\n if (!isNaN(end)) {\n thisExtent[1] = parseFloat(end);\n }\n };\n\n IntervalScale.prototype.unionExtent = function (other) {\n var extent = this._extent;\n other[0] < extent[0] && (extent[0] = other[0]);\n other[1] > extent[1] && (extent[1] = other[1]); // unionExtent may called by it's sub classes\n\n this.setExtent(extent[0], extent[1]);\n };\n\n IntervalScale.prototype.getInterval = function () {\n return this._interval;\n };\n\n IntervalScale.prototype.setInterval = function (interval) {\n this._interval = interval; // Dropped auto calculated niceExtent and use user setted extent\n // We assume user wan't to set both interval, min, max to get a better result\n\n this._niceExtent = this._extent.slice();\n this._intervalPrecision = helper.getIntervalPrecision(interval);\n };\n /**\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n\n\n IntervalScale.prototype.getTicks = function (expandToNicedExtent) {\n var interval = this._interval;\n var extent = this._extent;\n var niceTickExtent = this._niceExtent;\n var intervalPrecision = this._intervalPrecision;\n var ticks = []; // If interval is 0, return [];\n\n if (!interval) {\n return ticks;\n } // Consider this case: using dataZoom toolbox, zoom and zoom.\n\n\n var safeLimit = 10000;\n\n if (extent[0] < niceTickExtent[0]) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(niceTickExtent[0] - interval, intervalPrecision)\n });\n } else {\n ticks.push({\n value: extent[0]\n });\n }\n }\n\n var tick = niceTickExtent[0];\n\n while (tick <= niceTickExtent[1]) {\n ticks.push({\n value: tick\n }); // Avoid rounding error\n\n tick = roundNumber(tick + interval, intervalPrecision);\n\n if (tick === ticks[ticks.length - 1].value) {\n // Consider out of safe float point, e.g.,\n // -3711126.9907707 + 2e-10 === -3711126.9907707\n break;\n }\n\n if (ticks.length > safeLimit) {\n return [];\n }\n } // Consider this case: the last item of ticks is smaller\n // than niceTickExtent[1] and niceTickExtent[1] === extent[1].\n\n\n var lastNiceTick = ticks.length ? ticks[ticks.length - 1].value : niceTickExtent[1];\n\n if (extent[1] > lastNiceTick) {\n if (expandToNicedExtent) {\n ticks.push({\n value: roundNumber(lastNiceTick + interval, intervalPrecision)\n });\n } else {\n ticks.push({\n value: extent[1]\n });\n }\n }\n\n return ticks;\n };\n\n IntervalScale.prototype.getMinorTicks = function (splitNumber) {\n var ticks = this.getTicks(true);\n var minorTicks = [];\n var extent = this.getExtent();\n\n for (var i = 1; i < ticks.length; i++) {\n var nextTick = ticks[i];\n var prevTick = ticks[i - 1];\n var count = 0;\n var minorTicksGroup = [];\n var interval = nextTick.value - prevTick.value;\n var minorInterval = interval / splitNumber;\n\n while (count < splitNumber - 1) {\n var minorTick = roundNumber(prevTick.value + (count + 1) * minorInterval); // For the first and last interval. The count may be less than splitNumber.\n\n if (minorTick > extent[0] && minorTick < extent[1]) {\n minorTicksGroup.push(minorTick);\n }\n\n count++;\n }\n\n minorTicks.push(minorTicksGroup);\n }\n\n return minorTicks;\n };\n /**\n * @param opt.precision If 'auto', use nice presision.\n * @param opt.pad returns 1.50 but not 1.5 if precision is 2.\n */\n\n\n IntervalScale.prototype.getLabel = function (data, opt) {\n if (data == null) {\n return '';\n }\n\n var precision = opt && opt.precision;\n\n if (precision == null) {\n precision = numberUtil.getPrecision(data.value) || 0;\n } else if (precision === 'auto') {\n // Should be more precise then tick.\n precision = this._intervalPrecision;\n } // (1) If `precision` is set, 12.005 should be display as '12.00500'.\n // (2) Use roundNumber (toFixed) to avoid scientific notation like '3.5e-7'.\n\n\n var dataNum = roundNumber(data.value, precision, true);\n return formatUtil.addCommas(dataNum);\n };\n /**\n * @param splitNumber By default `5`.\n */\n\n\n IntervalScale.prototype.niceTicks = function (splitNumber, minInterval, maxInterval) {\n splitNumber = splitNumber || 5;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n\n if (!isFinite(span)) {\n return;\n } // User may set axis min 0 and data are all negative\n // FIXME If it needs to reverse ?\n\n\n if (span < 0) {\n span = -span;\n extent.reverse();\n }\n\n var result = helper.intervalScaleNiceTicks(extent, splitNumber, minInterval, maxInterval);\n this._intervalPrecision = result.intervalPrecision;\n this._interval = result.interval;\n this._niceExtent = result.niceTickExtent;\n };\n\n IntervalScale.prototype.niceExtent = function (opt) {\n var extent = this._extent; // If extent start and end are same, expand them\n\n if (extent[0] === extent[1]) {\n if (extent[0] !== 0) {\n // Expand extent\n var expandSize = extent[0]; // In the fowllowing case\n // Axis has been fixed max 100\n // Plus data are all 100 and axis extent are [100, 100].\n // Extend to the both side will cause expanded max is larger than fixed max.\n // So only expand to the smaller side.\n\n if (!opt.fixMax) {\n extent[1] += expandSize / 2;\n extent[0] -= expandSize / 2;\n } else {\n extent[0] -= expandSize / 2;\n }\n } else {\n extent[1] = 1;\n }\n }\n\n var span = extent[1] - extent[0]; // If there are no data and extent are [Infinity, -Infinity]\n\n if (!isFinite(span)) {\n extent[0] = 0;\n extent[1] = 1;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval); // let extent = this._extent;\n\n var interval = this._interval;\n\n if (!opt.fixMin) {\n extent[0] = roundNumber(Math.floor(extent[0] / interval) * interval);\n }\n\n if (!opt.fixMax) {\n extent[1] = roundNumber(Math.ceil(extent[1] / interval) * interval);\n }\n };\n\n IntervalScale.type = 'interval';\n return IntervalScale;\n}(Scale);\n\nScale.registerClass(IntervalScale);\nexport default IntervalScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../util/number';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nvar STACK_PREFIX = '__ec_stack_';\nvar LARGE_BAR_MIN_WIDTH = 0.5;\nvar LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\n\nfunction getSeriesStackId(seriesModel) {\n return seriesModel.get('stack') || STACK_PREFIX + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(axis) {\n return axis.dim + axis.index;\n}\n/**\n * @return {Object} {width, offset, offsetCenter} If axis.type is not 'category', return undefined.\n */\n\n\nexport function getLayoutOnAxis(opt) {\n var params = [];\n var baseAxis = opt.axis;\n var axisKey = 'axis0';\n\n if (baseAxis.type !== 'category') {\n return;\n }\n\n var bandWidth = baseAxis.getBandWidth();\n\n for (var i = 0; i < opt.count || 0; i++) {\n params.push(zrUtil.defaults({\n bandWidth: bandWidth,\n axisKey: axisKey,\n stackId: STACK_PREFIX + i\n }, opt));\n }\n\n var widthAndOffsets = doCalBarWidthAndOffset(params);\n var result = [];\n\n for (var i = 0; i < opt.count; i++) {\n var item = widthAndOffsets[axisKey][STACK_PREFIX + i];\n item.offsetCenter = item.offset + item.width / 2;\n result.push(item);\n }\n\n return result;\n}\nexport function prepareLayoutBarSeries(seriesType, ecModel) {\n var seriesModels = [];\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n // Check series coordinate, do layout for cartesian2d only\n if (isOnCartesian(seriesModel) && !isInLargeMode(seriesModel)) {\n seriesModels.push(seriesModel);\n }\n });\n return seriesModels;\n}\n/**\n * Map from (baseAxis.dim + '_' + baseAxis.index) to min gap of two adjacent\n * values.\n * This works for time axes, value axes, and log axes.\n * For a single time axis, return value is in the form like\n * {'x_0': [1000000]}.\n * The value of 1000000 is in milliseconds.\n */\n\nfunction getValueAxesMinGaps(barSeries) {\n /**\n * Map from axis.index to values.\n * For a single time axis, axisValues is in the form like\n * {'x_0': [1495555200000, 1495641600000, 1495728000000]}.\n * Items in axisValues[x], e.g. 1495555200000, are time values of all\n * series.\n */\n var axisValues = {};\n zrUtil.each(barSeries, function (seriesModel) {\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n\n if (baseAxis.type !== 'time' && baseAxis.type !== 'value') {\n return;\n }\n\n var data = seriesModel.getData();\n var key = baseAxis.dim + '_' + baseAxis.index;\n var dim = data.mapDimension(baseAxis.dim);\n\n for (var i = 0, cnt = data.count(); i < cnt; ++i) {\n var value = data.get(dim, i);\n\n if (!axisValues[key]) {\n // No previous data for the axis\n axisValues[key] = [value];\n } else {\n // No value in previous series\n axisValues[key].push(value);\n } // Ignore duplicated time values in the same axis\n\n }\n });\n var axisMinGaps = {};\n\n for (var key in axisValues) {\n if (axisValues.hasOwnProperty(key)) {\n var valuesInAxis = axisValues[key];\n\n if (valuesInAxis) {\n // Sort axis values into ascending order to calculate gaps\n valuesInAxis.sort(function (a, b) {\n return a - b;\n });\n var min = null;\n\n for (var j = 1; j < valuesInAxis.length; ++j) {\n var delta = valuesInAxis[j] - valuesInAxis[j - 1];\n\n if (delta > 0) {\n // Ignore 0 delta because they are of the same axis value\n min = min === null ? delta : Math.min(min, delta);\n }\n } // Set to null if only have one data\n\n\n axisMinGaps[key] = min;\n }\n }\n }\n\n return axisMinGaps;\n}\n\nexport function makeColumnLayout(barSeries) {\n var axisMinGaps = getValueAxesMinGaps(barSeries);\n var seriesInfoList = [];\n zrUtil.each(barSeries, function (seriesModel) {\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var axisExtent = baseAxis.getExtent();\n var bandWidth;\n\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n } else if (baseAxis.type === 'value' || baseAxis.type === 'time') {\n var key = baseAxis.dim + '_' + baseAxis.index;\n var minGap = axisMinGaps[key];\n var extentSpan = Math.abs(axisExtent[1] - axisExtent[0]);\n var scale = baseAxis.scale.getExtent();\n var scaleSpan = Math.abs(scale[1] - scale[0]);\n bandWidth = minGap ? extentSpan / scaleSpan * minGap : extentSpan; // When there is only one data value\n } else {\n var data = seriesModel.getData();\n bandWidth = Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n }\n\n var barWidth = parsePercent(seriesModel.get('barWidth'), bandWidth);\n var barMaxWidth = parsePercent(seriesModel.get('barMaxWidth'), bandWidth);\n var barMinWidth = parsePercent( // barMinWidth by default is 1 in cartesian. Because in value axis,\n // the auto-calculated bar width might be less than 1.\n seriesModel.get('barMinWidth') || 1, bandWidth);\n var barGap = seriesModel.get('barGap');\n var barCategoryGap = seriesModel.get('barCategoryGap');\n seriesInfoList.push({\n bandWidth: bandWidth,\n barWidth: barWidth,\n barMaxWidth: barMaxWidth,\n barMinWidth: barMinWidth,\n barGap: barGap,\n barCategoryGap: barCategoryGap,\n axisKey: getAxisKey(baseAxis),\n stackId: getSeriesStackId(seriesModel)\n });\n });\n return doCalBarWidthAndOffset(seriesInfoList);\n}\n\nfunction doCalBarWidthAndOffset(seriesInfoList) {\n // Columns info on each category axis. Key is cartesian name\n var columnsMap = {};\n zrUtil.each(seriesInfoList, function (seriesInfo, idx) {\n var axisKey = seriesInfo.axisKey;\n var bandWidth = seriesInfo.bandWidth;\n var columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: null,\n gap: '20%',\n stacks: {}\n };\n var stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n var stackId = seriesInfo.stackId;\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n }; // Caution: In a single coordinate system, these barGrid attributes\n // will be shared by series. Consider that they have default values,\n // only the attributes set on the last series will work.\n // Do not change this fact unless there will be a break change.\n\n var barWidth = seriesInfo.barWidth;\n\n if (barWidth && !stacks[stackId].width) {\n // See #6312, do not restrict width.\n stacks[stackId].width = barWidth;\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n var barMaxWidth = seriesInfo.barMaxWidth;\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n var barMinWidth = seriesInfo.barMinWidth;\n barMinWidth && (stacks[stackId].minWidth = barMinWidth);\n var barGap = seriesInfo.barGap;\n barGap != null && (columnsOnAxis.gap = barGap);\n var barCategoryGap = seriesInfo.barCategoryGap;\n barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n var result = {};\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n result[coordSysName] = {};\n var stacks = columnsOnAxis.stacks;\n var bandWidth = columnsOnAxis.bandWidth;\n var categoryGapPercent = columnsOnAxis.categoryGap;\n\n if (categoryGapPercent == null) {\n var columnCount = zrUtil.keys(stacks).length; // More columns in one group\n // the spaces between group is smaller. Or the column will be too thin.\n\n categoryGapPercent = Math.max(35 - columnCount * 4, 15) + '%';\n }\n\n var categoryGap = parsePercent(categoryGapPercent, bandWidth);\n var barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n var remainedWidth = columnsOnAxis.remainedWidth;\n var autoWidthCount = columnsOnAxis.autoWidthCount;\n var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth\n\n zrUtil.each(stacks, function (column) {\n var maxWidth = column.maxWidth;\n var minWidth = column.minWidth;\n\n if (!column.width) {\n var finalWidth = autoWidth;\n\n if (maxWidth && maxWidth < finalWidth) {\n finalWidth = Math.min(maxWidth, remainedWidth);\n } // `minWidth` has higher priority. `minWidth` decide that wheter the\n // bar is able to be visible. So `minWidth` should not be restricted\n // by `maxWidth` or `remainedWidth` (which is from `bandWidth`). In\n // the extreme cases for `value` axis, bars are allowed to overlap\n // with each other if `minWidth` specified.\n\n\n if (minWidth && minWidth > finalWidth) {\n finalWidth = minWidth;\n }\n\n if (finalWidth !== autoWidth) {\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n } else {\n // `barMinWidth/barMaxWidth` has higher priority than `barWidth`, as\n // CSS does. Becuase barWidth can be a percent value, where\n // `barMaxWidth` can be used to restrict the final width.\n var finalWidth = column.width;\n\n if (maxWidth) {\n finalWidth = Math.min(finalWidth, maxWidth);\n } // `minWidth` has higher priority, as described above\n\n\n if (minWidth) {\n finalWidth = Math.max(finalWidth, minWidth);\n }\n\n column.width = finalWidth;\n remainedWidth -= finalWidth + barGapPercent * finalWidth;\n autoWidthCount--;\n }\n }); // Recalculate width again\n\n autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n var widthSum = 0;\n var lastColumn;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n var offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n bandWidth: bandWidth,\n offset: offset,\n width: column.width\n };\n offset += column.width * (1 + barGapPercent);\n });\n });\n return result;\n}\n\nfunction retrieveColumnLayout(barWidthAndOffset, axis, seriesModel) {\n if (barWidthAndOffset && axis) {\n var result = barWidthAndOffset[getAxisKey(axis)];\n\n if (result != null && seriesModel != null) {\n return result[getSeriesStackId(seriesModel)];\n }\n\n return result;\n }\n}\n\nexport { retrieveColumnLayout };\nexport function layout(seriesType, ecModel) {\n var seriesModels = prepareLayoutBarSeries(seriesType, ecModel);\n var barWidthAndOffset = makeColumnLayout(seriesModels);\n var lastStackCoords = {};\n zrUtil.each(seriesModels, function (seriesModel) {\n var data = seriesModel.getData();\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var stackId = getSeriesStackId(seriesModel);\n var columnLayoutInfo = barWidthAndOffset[getAxisKey(baseAxis)][stackId];\n var columnOffset = columnLayoutInfo.offset;\n var columnWidth = columnLayoutInfo.width;\n var valueAxis = cartesian.getOtherAxis(baseAxis);\n var barMinHeight = seriesModel.get('barMinHeight') || 0;\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n data.setLayout({\n bandWidth: columnLayoutInfo.bandWidth,\n offset: columnOffset,\n size: columnWidth\n });\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var stacked = isDimensionStacked(data, valueDim\n /*, baseDim*/\n );\n var isValueAxisH = valueAxis.isHorizontal();\n var valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked);\n\n for (var idx = 0, len = data.count(); idx < len; idx++) {\n var value = data.get(valueDim, idx);\n var baseValue = data.get(baseDim, idx);\n var sign = value >= 0 ? 'p' : 'n';\n var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n\n if (stacked) {\n // Only ordinal axis can be stacked.\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart,\n n: valueAxisStart // Negative stack\n\n };\n } // Should also consider #4243\n\n\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n var x = void 0;\n var y = void 0;\n var width = void 0;\n var height = void 0;\n\n if (isValueAxisH) {\n var coord = cartesian.dataToPoint([value, baseValue]);\n x = baseCoord;\n y = coord[1] + columnOffset;\n width = coord[0] - valueAxisStart;\n height = columnWidth;\n\n if (Math.abs(width) < barMinHeight) {\n width = (width < 0 ? -1 : 1) * barMinHeight;\n } // Ignore stack from NaN value\n\n\n if (!isNaN(width)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += width);\n }\n } else {\n var coord = cartesian.dataToPoint([baseValue, value]);\n x = coord[0] + columnOffset;\n y = baseCoord;\n width = columnWidth;\n height = coord[1] - valueAxisStart;\n\n if (Math.abs(height) < barMinHeight) {\n // Include zero to has a positive bar\n height = (height <= 0 ? -1 : 1) * barMinHeight;\n } // Ignore stack from NaN value\n\n\n if (!isNaN(height)) {\n stacked && (lastStackCoords[stackId][baseValue][sign] += height);\n }\n }\n\n data.setItemLayout(idx, {\n x: x,\n y: y,\n width: width,\n height: height\n });\n }\n });\n} // TODO: Do not support stack in large mode yet.\n\nexport var largeLayout = {\n seriesType: 'bar',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n if (!isOnCartesian(seriesModel) || !isInLargeMode(seriesModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n var cartesian = seriesModel.coordinateSystem;\n var coordLayout = cartesian.master.getRect();\n var baseAxis = cartesian.getBaseAxis();\n var valueAxis = cartesian.getOtherAxis(baseAxis);\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var valueAxisHorizontal = valueAxis.isHorizontal();\n var valueDimIdx = valueAxisHorizontal ? 0 : 1;\n var barWidth = retrieveColumnLayout(makeColumnLayout([seriesModel]), baseAxis, seriesModel).width;\n\n if (!(barWidth > LARGE_BAR_MIN_WIDTH)) {\n // jshint ignore:line\n barWidth = LARGE_BAR_MIN_WIDTH;\n }\n\n return {\n progress: function (params, data) {\n var count = params.count;\n var largePoints = new LargeArr(count * 2);\n var largeBackgroundPoints = new LargeArr(count * 2);\n var largeDataIndices = new LargeArr(count);\n var dataIndex;\n var coord = [];\n var valuePair = [];\n var pointsOffset = 0;\n var idxOffset = 0;\n\n while ((dataIndex = params.next()) != null) {\n valuePair[valueDimIdx] = data.get(valueDim, dataIndex);\n valuePair[1 - valueDimIdx] = data.get(baseDim, dataIndex);\n coord = cartesian.dataToPoint(valuePair, null); // Data index might not be in order, depends on `progressiveChunkMode`.\n\n largeBackgroundPoints[pointsOffset] = valueAxisHorizontal ? coordLayout.x + coordLayout.width : coord[0];\n largePoints[pointsOffset++] = coord[0];\n largeBackgroundPoints[pointsOffset] = valueAxisHorizontal ? coord[1] : coordLayout.y + coordLayout.height;\n largePoints[pointsOffset++] = coord[1];\n largeDataIndices[idxOffset++] = dataIndex;\n }\n\n data.setLayout({\n largePoints: largePoints,\n largeDataIndices: largeDataIndices,\n largeBackgroundPoints: largeBackgroundPoints,\n barWidth: barWidth,\n valueAxisStart: getValueAxisStart(baseAxis, valueAxis, false),\n backgroundStart: valueAxisHorizontal ? coordLayout.x : coordLayout.y,\n valueAxisHorizontal: valueAxisHorizontal\n });\n }\n };\n }\n};\n\nfunction isOnCartesian(seriesModel) {\n return seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'cartesian2d';\n}\n\nfunction isInLargeMode(seriesModel) {\n return seriesModel.pipelineContext && seriesModel.pipelineContext.large;\n} // See cases in `test/bar-start.html` and `#7412`, `#8747`.\n\n\nfunction getValueAxisStart(baseAxis, valueAxis, stacked) {\n return valueAxis.toGlobalCoord(valueAxis.dataToCoord(valueAxis.type === 'log' ? 1 : 0));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/*\n* A third-party license is embeded for some of the code in this file:\n* The \"scaleLevels\" was originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment on the definition of \"scaleLevels\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n// [About UTC and local time zone]:\n// In most cases, `number.parseDate` will treat input data string as local time\n// (except time zone is specified in time string). And `format.formateTime` returns\n// local time by default. option.useUTC is false by default. This design have\n// concidered these common case:\n// (1) Time that is persistent in server is in UTC, but it is needed to be diplayed\n// in local time by default.\n// (2) By default, the input data string (e.g., '2011-01-02') should be displayed\n// as its original time, without any time difference.\n\nimport * as numberUtil from '../util/number';\nimport { ONE_SECOND, ONE_MINUTE, ONE_HOUR, ONE_DAY, ONE_YEAR, format, leveledFormat, getUnitValue, timeUnits, fullLeveledFormatter, getPrimaryTimeUnit, isPrimaryTimeUnit, getDefaultFormatPrecisionOfInterval, fullYearGetterName, monthSetterName, fullYearSetterName, dateSetterName, hoursGetterName, hoursSetterName, minutesSetterName, secondsSetterName, millisecondsSetterName, monthGetterName, dateGetterName, minutesGetterName, secondsGetterName, millisecondsGetterName } from '../util/time';\nimport * as scaleHelper from './helper';\nimport IntervalScale from './Interval';\nimport Scale from './Scale';\nimport { warn } from '../util/log';\nimport { filter, map } from 'zrender/lib/core/util'; // FIXME 公用?\n\nvar bisect = function (a, x, lo, hi) {\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n\n if (a[mid][1] < x) {\n lo = mid + 1;\n } else {\n hi = mid;\n }\n }\n\n return lo;\n};\n\nvar TimeScale =\n/** @class */\nfunction (_super) {\n __extends(TimeScale, _super);\n\n function TimeScale(settings) {\n var _this = _super.call(this, settings) || this;\n\n _this.type = 'time';\n return _this;\n }\n /**\n * Get label is mainly for other components like dataZoom, tooltip.\n */\n\n\n TimeScale.prototype.getLabel = function (tick) {\n var useUTC = this.getSetting('useUTC');\n return format(tick.value, fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))] || fullLeveledFormatter.second, useUTC, this.getSetting('locale'));\n };\n\n TimeScale.prototype.getFormattedLabel = function (tick, idx, labelFormatter) {\n var isUTC = this.getSetting('useUTC');\n var lang = this.getSetting('locale');\n return leveledFormat(tick, idx, labelFormatter, lang, isUTC);\n };\n /**\n * @override\n * @param expandToNicedExtent Whether expand the ticks to niced extent.\n */\n\n\n TimeScale.prototype.getTicks = function (expandToNicedExtent) {\n var interval = this._interval;\n var extent = this._extent;\n var ticks = []; // If interval is 0, return [];\n\n if (!interval) {\n return ticks;\n }\n\n ticks.push({\n value: extent[0],\n level: 0\n });\n var useUTC = this.getSetting('useUTC');\n var innerTicks = getIntervalTicks(this._minLevelUnit, this._approxInterval, useUTC, extent);\n ticks = ticks.concat(innerTicks);\n ticks.push({\n value: extent[1],\n level: 0\n });\n return ticks;\n };\n\n TimeScale.prototype.niceExtent = function (opt) {\n var extent = this._extent; // If extent start and end are same, expand them\n\n if (extent[0] === extent[1]) {\n // Expand extent\n extent[0] -= ONE_DAY;\n extent[1] += ONE_DAY;\n } // If there are no data and extent are [Infinity, -Infinity]\n\n\n if (extent[1] === -Infinity && extent[0] === Infinity) {\n var d = new Date();\n extent[1] = +new Date(d.getFullYear(), d.getMonth(), d.getDate());\n extent[0] = extent[1] - ONE_DAY;\n }\n\n this.niceTicks(opt.splitNumber, opt.minInterval, opt.maxInterval);\n };\n\n TimeScale.prototype.niceTicks = function (approxTickNum, minInterval, maxInterval) {\n approxTickNum = approxTickNum || 10;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n this._approxInterval = span / approxTickNum;\n\n if (minInterval != null && this._approxInterval < minInterval) {\n this._approxInterval = minInterval;\n }\n\n if (maxInterval != null && this._approxInterval > maxInterval) {\n this._approxInterval = maxInterval;\n }\n\n var scaleIntervalsLen = scaleIntervals.length;\n var idx = Math.min(bisect(scaleIntervals, this._approxInterval, 0, scaleIntervalsLen), scaleIntervalsLen - 1); // Interval that can be used to calculate ticks\n\n this._interval = scaleIntervals[idx][1]; // Min level used when picking ticks from top down.\n // We check one more level to avoid the ticks are to sparse in some case.\n\n this._minLevelUnit = scaleIntervals[Math.max(idx - 1, 0)][0];\n };\n\n TimeScale.prototype.parse = function (val) {\n // val might be float.\n return typeof val === 'number' ? val : +numberUtil.parseDate(val);\n };\n\n TimeScale.prototype.contain = function (val) {\n return scaleHelper.contain(this.parse(val), this._extent);\n };\n\n TimeScale.prototype.normalize = function (val) {\n return scaleHelper.normalize(this.parse(val), this._extent);\n };\n\n TimeScale.prototype.scale = function (val) {\n return scaleHelper.scale(val, this._extent);\n };\n\n TimeScale.type = 'time';\n return TimeScale;\n}(IntervalScale);\n/**\n * This implementation was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\n\nvar scaleIntervals = [// Format interval\n['second', ONE_SECOND], ['minute', ONE_MINUTE], ['hour', ONE_HOUR], ['quarter-day', ONE_HOUR * 6], ['half-day', ONE_HOUR * 12], ['day', ONE_DAY * 1.2], ['half-week', ONE_DAY * 3.5], ['week', ONE_DAY * 7], ['month', ONE_DAY * 31], ['quarter', ONE_DAY * 95], ['half-year', ONE_YEAR / 2], ['year', ONE_YEAR] // 1Y\n];\n\nfunction isUnitValueSame(unit, valueA, valueB, isUTC) {\n var dateA = numberUtil.parseDate(valueA);\n var dateB = numberUtil.parseDate(valueB);\n\n var isSame = function (unit) {\n return getUnitValue(dateA, unit, isUTC) === getUnitValue(dateB, unit, isUTC);\n };\n\n var isSameYear = function () {\n return isSame('year');\n }; // const isSameHalfYear = () => isSameYear() && isSame('half-year');\n // const isSameQuater = () => isSameYear() && isSame('quarter');\n\n\n var isSameMonth = function () {\n return isSameYear() && isSame('month');\n };\n\n var isSameDay = function () {\n return isSameMonth() && isSame('day');\n }; // const isSameHalfDay = () => isSameDay() && isSame('half-day');\n\n\n var isSameHour = function () {\n return isSameDay() && isSame('hour');\n };\n\n var isSameMinute = function () {\n return isSameHour() && isSame('minute');\n };\n\n var isSameSecond = function () {\n return isSameMinute() && isSame('second');\n };\n\n var isSameMilliSecond = function () {\n return isSameSecond() && isSame('millisecond');\n };\n\n switch (unit) {\n case 'year':\n return isSameYear();\n\n case 'month':\n return isSameMonth();\n\n case 'day':\n return isSameDay();\n\n case 'hour':\n return isSameHour();\n\n case 'minute':\n return isSameMinute();\n\n case 'second':\n return isSameSecond();\n\n case 'millisecond':\n return isSameMilliSecond();\n }\n} // const primaryUnitGetters = {\n// year: fullYearGetterName(),\n// month: monthGetterName(),\n// day: dateGetterName(),\n// hour: hoursGetterName(),\n// minute: minutesGetterName(),\n// second: secondsGetterName(),\n// millisecond: millisecondsGetterName()\n// };\n// const primaryUnitUTCGetters = {\n// year: fullYearGetterName(true),\n// month: monthGetterName(true),\n// day: dateGetterName(true),\n// hour: hoursGetterName(true),\n// minute: minutesGetterName(true),\n// second: secondsGetterName(true),\n// millisecond: millisecondsGetterName(true)\n// };\n// function moveTick(date: Date, unitName: TimeUnit, step: number, isUTC: boolean) {\n// step = step || 1;\n// switch (getPrimaryTimeUnit(unitName)) {\n// case 'year':\n// date[fullYearSetterName(isUTC)](date[fullYearGetterName(isUTC)]() + step);\n// break;\n// case 'month':\n// date[monthSetterName(isUTC)](date[monthGetterName(isUTC)]() + step);\n// break;\n// case 'day':\n// date[dateSetterName(isUTC)](date[dateGetterName(isUTC)]() + step);\n// break;\n// case 'hour':\n// date[hoursSetterName(isUTC)](date[hoursGetterName(isUTC)]() + step);\n// break;\n// case 'minute':\n// date[minutesSetterName(isUTC)](date[minutesGetterName(isUTC)]() + step);\n// break;\n// case 'second':\n// date[secondsSetterName(isUTC)](date[secondsGetterName(isUTC)]() + step);\n// break;\n// case 'millisecond':\n// date[millisecondsSetterName(isUTC)](date[millisecondsGetterName(isUTC)]() + step);\n// break;\n// }\n// return date.getTime();\n// }\n// const DATE_INTERVALS = [[8, 7.5], [4, 3.5], [2, 1.5]];\n// const MONTH_INTERVALS = [[6, 5.5], [3, 2.5], [2, 1.5]];\n// const MINUTES_SECONDS_INTERVALS = [[30, 30], [20, 20], [15, 15], [10, 10], [5, 5], [2, 2]];\n\n\nfunction getDateInterval(approxInterval, daysInMonth) {\n approxInterval /= ONE_DAY;\n return approxInterval > 16 ? 16 // Math.floor(daysInMonth / 2) + 1 // In this case we only want one tick betwen two month.\n : approxInterval > 7.5 ? 7 // TODO week 7 or day 8?\n : approxInterval > 3.5 ? 4 : approxInterval > 1.5 ? 2 : 1;\n}\n\nfunction getMonthInterval(approxInterval) {\n var APPROX_ONE_MONTH = 30 * ONE_DAY;\n approxInterval /= APPROX_ONE_MONTH;\n return approxInterval > 6 ? 6 : approxInterval > 3 ? 3 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getHourInterval(approxInterval) {\n approxInterval /= ONE_HOUR;\n return approxInterval > 12 ? 12 : approxInterval > 6 ? 6 : approxInterval > 3.5 ? 4 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMinutesAndSecondsInterval(approxInterval, isMinutes) {\n approxInterval /= isMinutes ? ONE_MINUTE : ONE_SECOND;\n return approxInterval > 30 ? 30 : approxInterval > 20 ? 20 : approxInterval > 15 ? 15 : approxInterval > 10 ? 10 : approxInterval > 5 ? 5 : approxInterval > 2 ? 2 : 1;\n}\n\nfunction getMillisecondsInterval(approxInterval) {\n return numberUtil.nice(approxInterval, true);\n}\n\nfunction getFirstTimestampOfUnit(date, unitName, isUTC) {\n var outDate = new Date(date);\n\n switch (getPrimaryTimeUnit(unitName)) {\n case 'year':\n case 'month':\n outDate[monthSetterName(isUTC)](0);\n\n case 'day':\n outDate[dateSetterName(isUTC)](1);\n\n case 'hour':\n outDate[hoursSetterName(isUTC)](0);\n\n case 'minute':\n outDate[minutesSetterName(isUTC)](0);\n\n case 'second':\n outDate[secondsSetterName(isUTC)](0);\n outDate[millisecondsSetterName(isUTC)](0);\n }\n\n return outDate.getTime();\n}\n\nfunction getIntervalTicks(bottomUnitName, approxInterval, isUTC, extent) {\n var safeLimit = 10000;\n var unitNames = timeUnits;\n var iter = 0;\n\n function addTicksInSpan(interval, minTimestamp, maxTimestamp, getMethodName, setMethodName, isDate, out) {\n var date = new Date(minTimestamp);\n var dateTime = minTimestamp;\n var d = date[getMethodName](); // if (isDate) {\n // d -= 1; // Starts with 0; PENDING\n // }\n\n while (dateTime < maxTimestamp && dateTime <= extent[1]) {\n out.push({\n value: dateTime\n });\n d += interval;\n date[setMethodName](d);\n dateTime = date.getTime();\n } // This extra tick is for calcuating ticks of next level. Will not been added to the final result\n\n\n out.push({\n value: dateTime,\n notAdd: true\n });\n }\n\n function addLevelTicks(unitName, lastLevelTicks, levelTicks) {\n var newAddedTicks = [];\n var isFirstLevel = !lastLevelTicks.length;\n\n if (isUnitValueSame(getPrimaryTimeUnit(unitName), extent[0], extent[1], isUTC)) {\n return;\n }\n\n if (isFirstLevel) {\n lastLevelTicks = [{\n // TODO Optimize. Not include so may ticks.\n value: getFirstTimestampOfUnit(new Date(extent[0]), unitName, isUTC)\n }, {\n value: extent[1]\n }];\n }\n\n for (var i = 0; i < lastLevelTicks.length - 1; i++) {\n var startTick = lastLevelTicks[i].value;\n var endTick = lastLevelTicks[i + 1].value;\n\n if (startTick === endTick) {\n continue;\n }\n\n var interval = void 0;\n var getterName = void 0;\n var setterName = void 0;\n var isDate = false;\n\n switch (unitName) {\n case 'year':\n interval = Math.max(1, Math.round(approxInterval / ONE_DAY / 365));\n getterName = fullYearGetterName(isUTC);\n setterName = fullYearSetterName(isUTC);\n break;\n\n case 'half-year':\n case 'quarter':\n case 'month':\n interval = getMonthInterval(approxInterval);\n getterName = monthGetterName(isUTC);\n setterName = monthSetterName(isUTC);\n break;\n\n case 'week': // PENDING If week is added. Ignore day.\n\n case 'half-week':\n case 'day':\n interval = getDateInterval(approxInterval, 31); // Use 32 days and let interval been 16\n\n getterName = dateGetterName(isUTC);\n setterName = dateSetterName(isUTC);\n isDate = true;\n break;\n\n case 'half-day':\n case 'quarter-day':\n case 'hour':\n interval = getHourInterval(approxInterval);\n getterName = hoursGetterName(isUTC);\n setterName = hoursSetterName(isUTC);\n break;\n\n case 'minute':\n interval = getMinutesAndSecondsInterval(approxInterval, true);\n getterName = minutesGetterName(isUTC);\n setterName = minutesSetterName(isUTC);\n break;\n\n case 'second':\n interval = getMinutesAndSecondsInterval(approxInterval, false);\n getterName = secondsGetterName(isUTC);\n setterName = secondsSetterName(isUTC);\n break;\n\n case 'millisecond':\n interval = getMillisecondsInterval(approxInterval);\n getterName = millisecondsGetterName(isUTC);\n setterName = millisecondsSetterName(isUTC);\n break;\n }\n\n addTicksInSpan(interval, startTick, endTick, getterName, setterName, isDate, newAddedTicks);\n\n if (unitName === 'year' && levelTicks.length > 1 && i === 0) {\n // Add nearest years to the left extent.\n levelTicks.unshift({\n value: levelTicks[0].value - interval\n });\n }\n }\n\n for (var i = 0; i < newAddedTicks.length; i++) {\n levelTicks.push(newAddedTicks[i]);\n } // newAddedTicks.length && console.log(unitName, newAddedTicks);\n\n\n return newAddedTicks;\n }\n\n var levelsTicks = [];\n var currentLevelTicks = [];\n var tickCount = 0;\n var lastLevelTickCount = 0;\n\n for (var i = 0; i < unitNames.length && iter++ < safeLimit; ++i) {\n var primaryTimeUnit = getPrimaryTimeUnit(unitNames[i]);\n\n if (!isPrimaryTimeUnit(unitNames[i])) {\n // TODO\n continue;\n }\n\n addLevelTicks(unitNames[i], levelsTicks[levelsTicks.length - 1] || [], currentLevelTicks);\n var nextPrimaryTimeUnit = unitNames[i + 1] ? getPrimaryTimeUnit(unitNames[i + 1]) : null;\n\n if (primaryTimeUnit !== nextPrimaryTimeUnit) {\n if (currentLevelTicks.length) {\n lastLevelTickCount = tickCount; // Remove the duplicate so the tick count can be precisely.\n\n currentLevelTicks.sort(function (a, b) {\n return a.value - b.value;\n });\n var levelTicksRemoveDuplicated = [];\n\n for (var i_1 = 0; i_1 < currentLevelTicks.length; ++i_1) {\n var tickValue = currentLevelTicks[i_1].value;\n\n if (i_1 === 0 || currentLevelTicks[i_1 - 1].value !== tickValue) {\n levelTicksRemoveDuplicated.push(currentLevelTicks[i_1]);\n\n if (tickValue >= extent[0] && tickValue <= extent[1]) {\n tickCount++;\n }\n }\n }\n\n var targetTickNum = (extent[1] - extent[0]) / approxInterval; // Added too much in this level and not too less in last level\n\n if (tickCount > targetTickNum * 1.5 && lastLevelTickCount > targetTickNum / 1.5) {\n break;\n } // Only treat primary time unit as one level.\n\n\n levelsTicks.push(levelTicksRemoveDuplicated);\n\n if (tickCount > targetTickNum || bottomUnitName === unitNames[i]) {\n break;\n }\n } // Reset if next unitName is primary\n\n\n currentLevelTicks = [];\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (iter >= safeLimit) {\n warn('Exceed safe limit.');\n }\n }\n\n var levelsTicksInExtent = filter(map(levelsTicks, function (levelTicks) {\n return filter(levelTicks, function (tick) {\n return tick.value >= extent[0] && tick.value <= extent[1] && !tick.notAdd;\n });\n }), function (levelTicks) {\n return levelTicks.length > 0;\n });\n var ticks = [];\n var maxLevel = levelsTicksInExtent.length - 1;\n\n for (var i = 0; i < levelsTicksInExtent.length; ++i) {\n var levelTicks = levelsTicksInExtent[i];\n\n for (var k = 0; k < levelTicks.length; ++k) {\n ticks.push({\n value: levelTicks[k].value,\n level: maxLevel - i\n });\n }\n }\n\n ticks.sort(function (a, b) {\n return a.value - b.value;\n }); // Remove duplicates\n\n var result = [];\n\n for (var i = 0; i < ticks.length; ++i) {\n if (i === 0 || ticks[i].value !== ticks[i - 1].value) {\n result.push(ticks[i]);\n }\n }\n\n return result;\n}\n\nScale.registerClass(TimeScale);\nexport default TimeScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Scale from './Scale';\nimport * as numberUtil from '../util/number';\nimport * as scaleHelper from './helper'; // Use some method of IntervalScale\n\nimport IntervalScale from './Interval';\nvar scaleProto = Scale.prototype; // FIXME:TS refactor: not good to call it directly with `this`?\n\nvar intervalScaleProto = IntervalScale.prototype;\nvar roundingErrorFix = numberUtil.round;\nvar mathFloor = Math.floor;\nvar mathCeil = Math.ceil;\nvar mathPow = Math.pow;\nvar mathLog = Math.log;\n\nvar LogScale =\n/** @class */\nfunction (_super) {\n __extends(LogScale, _super);\n\n function LogScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'log';\n _this.base = 10;\n _this._originalScale = new IntervalScale(); // FIXME:TS actually used by `IntervalScale`\n\n _this._interval = 0;\n return _this;\n }\n /**\n * @param Whether expand the ticks to niced extent.\n */\n\n\n LogScale.prototype.getTicks = function (expandToNicedExtent) {\n var originalScale = this._originalScale;\n var extent = this._extent;\n var originalExtent = originalScale.getExtent();\n var ticks = intervalScaleProto.getTicks.call(this, expandToNicedExtent);\n return zrUtil.map(ticks, function (tick) {\n var val = tick.value;\n var powVal = numberUtil.round(mathPow(this.base, val)); // Fix #4158\n\n powVal = val === extent[0] && this._fixMin ? fixRoundingError(powVal, originalExtent[0]) : powVal;\n powVal = val === extent[1] && this._fixMax ? fixRoundingError(powVal, originalExtent[1]) : powVal;\n return {\n value: powVal\n };\n }, this);\n };\n\n LogScale.prototype.setExtent = function (start, end) {\n var base = this.base;\n start = mathLog(start) / mathLog(base);\n end = mathLog(end) / mathLog(base);\n intervalScaleProto.setExtent.call(this, start, end);\n };\n /**\n * @return {number} end\n */\n\n\n LogScale.prototype.getExtent = function () {\n var base = this.base;\n var extent = scaleProto.getExtent.call(this);\n extent[0] = mathPow(base, extent[0]);\n extent[1] = mathPow(base, extent[1]); // Fix #4158\n\n var originalScale = this._originalScale;\n var originalExtent = originalScale.getExtent();\n this._fixMin && (extent[0] = fixRoundingError(extent[0], originalExtent[0]));\n this._fixMax && (extent[1] = fixRoundingError(extent[1], originalExtent[1]));\n return extent;\n };\n\n LogScale.prototype.unionExtent = function (extent) {\n this._originalScale.unionExtent(extent);\n\n var base = this.base;\n extent[0] = mathLog(extent[0]) / mathLog(base);\n extent[1] = mathLog(extent[1]) / mathLog(base);\n scaleProto.unionExtent.call(this, extent);\n };\n\n LogScale.prototype.unionExtentFromData = function (data, dim) {\n // TODO\n // filter value that <= 0\n this.unionExtent(data.getApproximateExtent(dim));\n };\n /**\n * Update interval and extent of intervals for nice ticks\n * @param approxTickNum default 10 Given approx tick number\n */\n\n\n LogScale.prototype.niceTicks = function (approxTickNum) {\n approxTickNum = approxTickNum || 10;\n var extent = this._extent;\n var span = extent[1] - extent[0];\n\n if (span === Infinity || span <= 0) {\n return;\n }\n\n var interval = numberUtil.quantity(span);\n var err = approxTickNum / span * interval; // Filter ticks to get closer to the desired count.\n\n if (err <= 0.5) {\n interval *= 10;\n } // Interval should be integer\n\n\n while (!isNaN(interval) && Math.abs(interval) < 1 && Math.abs(interval) > 0) {\n interval *= 10;\n }\n\n var niceExtent = [numberUtil.round(mathCeil(extent[0] / interval) * interval), numberUtil.round(mathFloor(extent[1] / interval) * interval)];\n this._interval = interval;\n this._niceExtent = niceExtent;\n };\n\n LogScale.prototype.niceExtent = function (opt) {\n intervalScaleProto.niceExtent.call(this, opt);\n this._fixMin = opt.fixMin;\n this._fixMax = opt.fixMax;\n };\n\n LogScale.prototype.parse = function (val) {\n return val;\n };\n\n LogScale.prototype.contain = function (val) {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.contain(val, this._extent);\n };\n\n LogScale.prototype.normalize = function (val) {\n val = mathLog(val) / mathLog(this.base);\n return scaleHelper.normalize(val, this._extent);\n };\n\n LogScale.prototype.scale = function (val) {\n val = scaleHelper.scale(val, this._extent);\n return mathPow(this.base, val);\n };\n\n LogScale.type = 'log';\n return LogScale;\n}(Scale);\n\nvar proto = LogScale.prototype;\nproto.getMinorTicks = intervalScaleProto.getMinorTicks;\nproto.getLabel = intervalScaleProto.getLabel;\n\nfunction fixRoundingError(val, originalVal) {\n return roundingErrorFix(val, numberUtil.getPrecision(originalVal));\n}\n\nScale.registerClass(LogScale);\nexport default LogScale;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { assert, isArray, eqNaN, isFunction } from 'zrender/lib/core/util';\nimport { parsePercent } from 'zrender/lib/contain/text';\n\nvar ScaleRawExtentInfo =\n/** @class */\nfunction () {\n function ScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\n originalExtent) {\n this._prepareParams(scale, model, originalExtent);\n }\n /**\n * Parameters depending on ouside (like model, user callback)\n * are prepared and fixed here.\n */\n\n\n ScaleRawExtentInfo.prototype._prepareParams = function (scale, model, // Usually: data extent from all series on this axis.\n dataExtent) {\n if (dataExtent[1] < dataExtent[0]) {\n dataExtent = [NaN, NaN];\n }\n\n this._dataMin = dataExtent[0];\n this._dataMax = dataExtent[1];\n var isOrdinal = this._isOrdinal = scale.type === 'ordinal';\n this._needCrossZero = model.getNeedCrossZero && model.getNeedCrossZero();\n var modelMinRaw = this._modelMinRaw = model.get('min', true);\n\n if (isFunction(modelMinRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMinRaw !== 'dataMin') {\n this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw);\n }\n\n var modelMaxRaw = this._modelMaxRaw = model.get('max', true);\n\n if (isFunction(modelMaxRaw)) {\n // This callback alway provide users the full data extent (before data filtered).\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw({\n min: dataExtent[0],\n max: dataExtent[1]\n }));\n } else if (modelMaxRaw !== 'dataMax') {\n this._modelMaxNum = parseAxisModelMinMax(scale, modelMaxRaw);\n }\n\n if (isOrdinal) {\n // FIXME: there is a flaw here: if there is no \"block\" data processor like `dataZoom`,\n // and progressive rendering is using, here the category result might just only contain\n // the processed chunk rather than the entire result.\n this._axisDataLen = model.getCategories().length;\n } else {\n var boundaryGap = model.get('boundaryGap');\n var boundaryGapArr = isArray(boundaryGap) ? boundaryGap : [boundaryGap || 0, boundaryGap || 0];\n\n if (typeof boundaryGapArr[0] === 'boolean' || typeof boundaryGapArr[1] === 'boolean') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Boolean type for boundaryGap is only ' + 'allowed for ordinal axis. Please use string in ' + 'percentage instead, e.g., \"20%\". Currently, ' + 'boundaryGap is set to be 0.');\n }\n\n this._boundaryGapInner = [0, 0];\n } else {\n this._boundaryGapInner = [parsePercent(boundaryGapArr[0], 1), parsePercent(boundaryGapArr[1], 1)];\n }\n }\n };\n /**\n * Calculate extent by prepared parameters.\n * This method has no external dependency and can be called duplicatedly,\n * getting the same result.\n * If parameters changed, should call this method to recalcuate.\n */\n\n\n ScaleRawExtentInfo.prototype.calculate = function () {\n // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n var isOrdinal = this._isOrdinal;\n var dataMin = this._dataMin;\n var dataMax = this._dataMax;\n var axisDataLen = this._axisDataLen;\n var boundaryGapInner = this._boundaryGapInner;\n var span = !isOrdinal ? dataMax - dataMin || Math.abs(dataMin) : null; // Currently if a `'value'` axis model min is specified as 'dataMin'/'dataMax',\n // `boundaryGap` will not be used. It's the different from specifying as `null`/`undefined`.\n\n var min = this._modelMinRaw === 'dataMin' ? dataMin : this._modelMinNum;\n var max = this._modelMaxRaw === 'dataMax' ? dataMax : this._modelMaxNum; // If `_modelMinNum`/`_modelMaxNum` is `null`/`undefined`, should not be fixed.\n\n var minFixed = min != null;\n var maxFixed = max != null;\n\n if (min == null) {\n min = isOrdinal ? axisDataLen ? 0 : NaN : dataMin - boundaryGapInner[0] * span;\n }\n\n if (max == null) {\n max = isOrdinal ? axisDataLen ? axisDataLen - 1 : NaN : dataMax + boundaryGapInner[1] * span;\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n\n if (min > max) {\n min = NaN;\n max = NaN;\n }\n\n var isBlank = eqNaN(min) || eqNaN(max) || isOrdinal && !axisDataLen; // If data extent modified, need to recalculated to ensure cross zero.\n\n if (this._needCrossZero) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !minFixed) {\n min = 0; // minFixed = true;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !maxFixed) {\n max = 0; // maxFixed = true;\n } // PENDING:\n // When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n // If so, here `minFixed`/`maxFixed` need to be set.\n\n }\n\n var determinedMin = this._determinedMin;\n var determinedMax = this._determinedMax;\n\n if (determinedMin != null) {\n min = determinedMin;\n minFixed = true;\n }\n\n if (determinedMax != null) {\n max = determinedMax;\n maxFixed = true;\n } // Ensure min/max be finite number or NaN here. (not to be null/undefined)\n // `NaN` means min/max axis is blank.\n\n\n return {\n min: min,\n max: max,\n minFixed: minFixed,\n maxFixed: maxFixed,\n isBlank: isBlank\n };\n };\n\n ScaleRawExtentInfo.prototype.modifyDataMinMax = function (minMaxName, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen);\n }\n\n this[DATA_MIN_MAX_ATTR[minMaxName]] = val;\n };\n\n ScaleRawExtentInfo.prototype.setDeterminedMinMax = function (minMaxName, val) {\n var attr = DETERMINED_MIN_MAX_ATTR[minMaxName];\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!this.frozen // Earse them usually means logic flaw.\n && this[attr] == null);\n }\n\n this[attr] = val;\n };\n\n ScaleRawExtentInfo.prototype.freeze = function () {\n // @ts-ignore\n this.frozen = true;\n };\n\n return ScaleRawExtentInfo;\n}();\n\nexport { ScaleRawExtentInfo };\nvar DETERMINED_MIN_MAX_ATTR = {\n min: '_determinedMin',\n max: '_determinedMax'\n};\nvar DATA_MIN_MAX_ATTR = {\n min: '_dataMin',\n max: '_dataMax'\n};\n/**\n * Get scale min max and related info only depends on model settings.\n * This method can be called after coordinate system created.\n * For example, in data processing stage.\n *\n * Scale extent info probably be required multiple times during a workflow.\n * For example:\n * (1) `dataZoom` depends it to get the axis extent in \"100%\" state.\n * (2) `processor/extentCalculator` depends it to make sure whether axis extent is specified.\n * (3) `coordSys.update` use it to finally decide the scale extent.\n * But the callback of `min`/`max` should not be called multiple times.\n * The code below should not be implemented repeatedly either.\n * So we cache the result in the scale instance, which will be recreated at the begining\n * of the workflow (because `scale` instance will be recreated each round of the workflow).\n */\n\nexport function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\noriginalExtent) {\n // Do not permit to recreate.\n var rawExtentInfo = scale.rawExtentInfo;\n\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\n scale.rawExtentInfo = rawExtentInfo;\n return rawExtentInfo;\n}\nexport function parseAxisModelMinMax(scale, minMax) {\n return minMax == null ? null : eqNaN(minMax) ? NaN : scale.parse(minMax);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport OrdinalScale from '../scale/Ordinal';\nimport IntervalScale from '../scale/Interval';\nimport Scale from '../scale/Scale';\nimport { prepareLayoutBarSeries, makeColumnLayout, retrieveColumnLayout } from '../layout/barGrid';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport TimeScale from '../scale/Time';\nimport LogScale from '../scale/Log';\nimport { getStackedDimension } from '../data/helper/dataStackHelper';\nimport { ensureScaleRawExtentInfo } from './scaleRawExtentInfo';\n/**\n * Get axis scale extent before niced.\n * Item of returned array can only be number (including Infinity and NaN).\n *\n * Caution:\n * Precondition of calling this method:\n * The scale extent has been initialized using series data extent via\n * `scale.setExtent` or `scale.unionExtentFromData`;\n */\n\nexport function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n scale.setBlank(rawExtentResult.isBlank);\n var min = rawExtentResult.min;\n var max = rawExtentResult.max; // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries_1 = false;\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries_1) {\n // Calculate placement of bars on axis. TODO should be decoupled\n // with barLayout\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return {\n extent: [min, max],\n // \"fix\" means \"fixed\", the value should not be\n // changed in the subsequent steps.\n fixMin: rawExtentResult.minFixed,\n fixMax: rawExtentResult.maxFixed\n };\n}\n\nfunction adjustScaleForOverflow(min, max, model, // Only support cartesian coord yet.\nbarWidthAndOffset) {\n // Get Axis Length\n var axisExtent = model.axis.getExtent();\n var axisLength = axisExtent[1] - axisExtent[0]; // Get bars on current base axis and calculate min and max overflow\n\n var barsOnCurrentAxis = retrieveColumnLayout(barWidthAndOffset, model.axis);\n\n if (barsOnCurrentAxis === undefined) {\n return {\n min: min,\n max: max\n };\n }\n\n var minOverflow = Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n minOverflow = Math.min(item.offset, minOverflow);\n });\n var maxOverflow = -Infinity;\n zrUtil.each(barsOnCurrentAxis, function (item) {\n maxOverflow = Math.max(item.offset + item.width, maxOverflow);\n });\n minOverflow = Math.abs(minOverflow);\n maxOverflow = Math.abs(maxOverflow);\n var totalOverFlow = minOverflow + maxOverflow; // Calculate required buffer based on old range and overflow\n\n var oldRange = max - min;\n var oldRangePercentOfNew = 1 - (minOverflow + maxOverflow) / axisLength;\n var overflowBuffer = oldRange / oldRangePercentOfNew - oldRange;\n max += overflowBuffer * (maxOverflow / totalOverFlow);\n min -= overflowBuffer * (minOverflow / totalOverFlow);\n return {\n min: min,\n max: max\n };\n} // Precondition of calling this method:\n// The scale extent has been initailized using series data extent via\n// `scale.setExtent` or `scale.unionExtentFromData`;\n\n\nexport function niceScaleExtent(scale, model) {\n var extentInfo = getScaleExtent(scale, model);\n var extent = extentInfo.extent;\n var splitNumber = model.get('splitNumber');\n\n if (scale instanceof LogScale) {\n scale.base = model.get('logBase');\n }\n\n var scaleType = scale.type;\n scale.setExtent(extent[0], extent[1]);\n scale.niceExtent({\n splitNumber: splitNumber,\n fixMin: extentInfo.fixMin,\n fixMax: extentInfo.fixMax,\n minInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('minInterval') : null,\n maxInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('maxInterval') : null\n }); // If some one specified the min, max. And the default calculated interval\n // is not good enough. He can specify the interval. It is often appeared\n // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n // to be 60.\n // FIXME\n\n var interval = model.get('interval');\n\n if (interval != null) {\n scale.setInterval && scale.setInterval(interval);\n }\n}\n/**\n * @param axisType Default retrieve from model.type\n */\n\nexport function createScaleByModel(model, axisType) {\n axisType = axisType || model.get('type');\n\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getOrdinalMeta ? model.getOrdinalMeta() : model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n\n default:\n // case 'value'/'interval', 'log', or others.\n return new (Scale.getClass(axisType) || IntervalScale)();\n }\n }\n}\n/**\n * Check if the axis cross 0\n */\n\nexport function ifAxisCrossZero(axis) {\n var dataExtent = axis.scale.getExtent();\n var min = dataExtent[0];\n var max = dataExtent[1];\n return !(min > 0 && max > 0 || min < 0 && max < 0);\n}\n/**\n * @param axis\n * @return Label formatter function.\n * param: {number} tickValue,\n * param: {number} idx, the index in all ticks.\n * If category axis, this param is not required.\n * return: {string} label string.\n */\n\nexport function makeLabelFormatter(axis) {\n var labelFormatter = axis.getLabelModel().get('formatter');\n var categoryTickStart = axis.type === 'category' ? axis.scale.getExtent()[0] : null;\n\n if (axis.scale.type === 'time') {\n return function (tpl) {\n return function (tick, idx) {\n return axis.scale.getFormattedLabel(tick, idx, tpl);\n };\n }(labelFormatter);\n } else if (typeof labelFormatter === 'string') {\n return function (tpl) {\n return function (tick) {\n // For category axis, get raw value; for numeric axis,\n // get formatted label like '1,333,444'.\n var label = axis.scale.getLabel(tick);\n var text = tpl.replace('{value}', label != null ? label : '');\n return text;\n };\n }(labelFormatter);\n } else if (typeof labelFormatter === 'function') {\n return function (cb) {\n return function (tick, idx) {\n // The original intention of `idx` is \"the index of the tick in all ticks\".\n // But the previous implementation of category axis do not consider the\n // `axisLabel.interval`, which cause that, for example, the `interval` is\n // `1`, then the ticks \"name5\", \"name7\", \"name9\" are displayed, where the\n // corresponding `idx` are `0`, `2`, `4`, but not `0`, `1`, `2`. So we keep\n // the definition here for back compatibility.\n if (categoryTickStart != null) {\n idx = tick.value - categoryTickStart;\n }\n\n return cb(getAxisRawValue(axis, tick), idx, tick.level != null ? {\n level: tick.level\n } : null);\n };\n }(labelFormatter);\n } else {\n return function (tick) {\n return axis.scale.getLabel(tick);\n };\n }\n}\nexport function getAxisRawValue(axis, tick) {\n // In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n return axis.type === 'category' ? axis.scale.getLabel(tick) : tick.value;\n}\n/**\n * @param axis\n * @return Be null/undefined if no labels.\n */\n\nexport function estimateLabelUnionRect(axis) {\n var axisModel = axis.model;\n var scale = axis.scale;\n\n if (!axisModel.get(['axisLabel', 'show']) || scale.isBlank()) {\n return;\n }\n\n var realNumberScaleTicks;\n var tickCount;\n var categoryScaleExtent = scale.getExtent(); // Optimize for large category data, avoid call `getTicks()`.\n\n if (scale instanceof OrdinalScale) {\n tickCount = scale.count();\n } else {\n realNumberScaleTicks = scale.getTicks();\n tickCount = realNumberScaleTicks.length;\n }\n\n var axisLabelModel = axis.getLabelModel();\n var labelFormatter = makeLabelFormatter(axis);\n var rect;\n var step = 1; // Simple optimization for large amount of labels\n\n if (tickCount > 40) {\n step = Math.ceil(tickCount / 40);\n }\n\n for (var i = 0; i < tickCount; i += step) {\n var tick = realNumberScaleTicks ? realNumberScaleTicks[i] : {\n value: categoryScaleExtent[0] + i\n };\n var label = labelFormatter(tick, i);\n var unrotatedSingleRect = axisLabelModel.getTextRect(label);\n var singleRect = rotateTextRect(unrotatedSingleRect, axisLabelModel.get('rotate') || 0);\n rect ? rect.union(singleRect) : rect = singleRect;\n }\n\n return rect;\n}\n\nfunction rotateTextRect(textRect, rotate) {\n var rotateRadians = rotate * Math.PI / 180;\n var beforeWidth = textRect.width;\n var beforeHeight = textRect.height;\n var afterWidth = beforeWidth * Math.abs(Math.cos(rotateRadians)) + Math.abs(beforeHeight * Math.sin(rotateRadians));\n var afterHeight = beforeWidth * Math.abs(Math.sin(rotateRadians)) + Math.abs(beforeHeight * Math.cos(rotateRadians));\n var rotatedRect = new BoundingRect(textRect.x, textRect.y, afterWidth, afterHeight);\n return rotatedRect;\n}\n/**\n * @param model axisLabelModel or axisTickModel\n * @return {number|String} Can be null|'auto'|number|function\n */\n\n\nexport function getOptionCategoryInterval(model) {\n var interval = model.get('interval');\n return interval == null ? 'auto' : interval;\n}\n/**\n * Set `categoryInterval` as 0 implicitly indicates that\n * show all labels reguardless of overlap.\n * @param {Object} axis axisModel.axis\n */\n\nexport function shouldShowAllLabels(axis) {\n return axis.type === 'category' && getOptionCategoryInterval(axis.getLabelModel()) === 0;\n}\nexport function getDataDimensionsOnAxis(data, axisDim) {\n // Remove duplicated dat dimensions caused by `getStackedDimension`.\n var dataDimMap = {}; // Currently `mapDimensionsAll` will contain stack result dimension ('__\\0ecstackresult').\n // PENDING: is it reasonable? Do we need to remove the original dim from \"coord dim\" since\n // there has been stacked result dim?\n\n zrUtil.each(data.mapDimensionsAll(axisDim), function (dataDim) {\n // For example, the extent of the original dimension\n // is [0.1, 0.5], the extent of the `stackResultDimension`\n // is [7, 9], the final extent should NOT include [0.1, 0.5],\n // because there is no graphic corresponding to [0.1, 0.5].\n // See the case in `test/area-stack.html` `main1`, where area line\n // stack needs `yAxis` not start from 0.\n dataDimMap[getStackedDimension(data, dataDim)] = true;\n });\n return zrUtil.keys(dataDimMap);\n}\nexport function unionAxisExtentFromData(dataExtent, data, axisDim) {\n if (data) {\n zrUtil.each(getDataDimensionsOnAxis(data, axisDim), function (dim) {\n var seriesExtent = data.getApproximateExtent(dim);\n seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);\n seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar AxisModelCommonMixin =\n/** @class */\nfunction () {\n function AxisModelCommonMixin() {}\n\n AxisModelCommonMixin.prototype.getNeedCrossZero = function () {\n var option = this.option;\n return !option.scale;\n };\n /**\n * Should be implemented by each axis model if necessary.\n * @return coordinate system model\n */\n\n\n AxisModelCommonMixin.prototype.getCoordSysModel = function () {\n return;\n };\n\n return AxisModelCommonMixin;\n}();\n\nexport { AxisModelCommonMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * This module exposes helper functions for developing extensions.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListFromArray from '../../chart/helper/createListFromArray'; // import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge';\n\nimport * as axisHelper from '../../coord/axisHelper';\nimport { AxisModelCommonMixin } from '../../coord/axisModelCommonMixin';\nimport Model from '../../model/Model';\nimport { getLayoutRect } from '../../util/layout';\nimport { enableDataStack, isDimensionStacked, getStackedDimension } from '../../data/helper/dataStackHelper';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle as innerCreateTextStyle } from '../../label/labelStyle';\n/**\n * Create a muti dimension List structure from seriesModel.\n */\n\nexport function createList(seriesModel) {\n return createListFromArray(seriesModel.getSource(), seriesModel);\n} // export function createGraph(seriesModel) {\n// let nodes = seriesModel.get('data');\n// let links = seriesModel.get('links');\n// return createGraphFromNodeEdge(nodes, links, seriesModel);\n// }\n\nexport { getLayoutRect };\nexport { default as createDimensions } from '../../data/helper/createDimensions';\nexport var dataStack = {\n isDimensionStacked: isDimensionStacked,\n enableDataStack: enableDataStack,\n getStackedDimension: getStackedDimension\n};\n/**\n * Create a symbol element with given symbol configuration: shape, x, y, width, height, color\n * @param {string} symbolDesc\n * @param {number} x\n * @param {number} y\n * @param {number} w\n * @param {number} h\n * @param {string} color\n */\n\nexport { createSymbol } from '../../util/symbol';\n/**\n * Create scale\n * @param {Array.} dataExtent\n * @param {Object|module:echarts/Model} option If `optoin.type`\n * is secified, it can only be `'value'` currently.\n */\n\nexport function createScale(dataExtent, option) {\n var axisModel = option;\n\n if (!(option instanceof Model)) {\n axisModel = new Model(option); // FIXME\n // Currently AxisModelCommonMixin has nothing to do with the\n // the requirements of `axisHelper.createScaleByModel`. For\n // example the method `getCategories` and `getOrdinalMeta`\n // are required for `'category'` axis, and ecModel are required\n // for `'time'` axis. But occationally echarts-gl happened\n // to only use `'value'` axis.\n // zrUtil.mixin(axisModel, AxisModelCommonMixin);\n }\n\n var scale = axisHelper.createScaleByModel(axisModel);\n scale.setExtent(dataExtent[0], dataExtent[1]);\n axisHelper.niceScaleExtent(scale, axisModel);\n return scale;\n}\n/**\n * Mixin common methods to axis model,\n *\n * Inlcude methods\n * `getFormattedLabels() => Array.`\n * `getCategories() => Array.`\n * `getMin(origin: boolean) => number`\n * `getMax(origin: boolean) => number`\n * `getNeedCrossZero() => boolean`\n */\n\nexport function mixinAxisModelCommonMethods(Model) {\n zrUtil.mixin(Model, AxisModelCommonMixin);\n}\nexport { getECData };\nexport { enableHoverEmphasis } from '../../util/states';\nexport function createTextStyle(textStyleModel, opts) {\n opts = opts || {};\n return innerCreateTextStyle(textStyleModel, null, null, opts.state !== 'normal');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as textContain from 'zrender/lib/contain/text';\nimport { makeInner } from '../util/model';\nimport { makeLabelFormatter, getOptionCategoryInterval, shouldShowAllLabels } from './axisHelper';\nvar inner = makeInner();\nexport function createAxisLabels(axis) {\n // Only ordinal scale support tick interval\n return axis.type === 'category' ? makeCategoryLabels(axis) : makeRealNumberLabels(axis);\n}\n/**\n * @param {module:echats/coord/Axis} axis\n * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.\n * @return {Object} {\n * ticks: Array.\n * tickCategoryInterval: number\n * }\n */\n\nexport function createAxisTicks(axis, tickModel) {\n // Only ordinal scale support tick interval\n return axis.type === 'category' ? makeCategoryTicks(axis, tickModel) : {\n ticks: zrUtil.map(axis.scale.getTicks(), function (tick) {\n return tick.value;\n })\n };\n}\n\nfunction makeCategoryLabels(axis) {\n var labelModel = axis.getLabelModel();\n var result = makeCategoryLabelsActually(axis, labelModel);\n return !labelModel.get('show') || axis.scale.isBlank() ? {\n labels: [],\n labelCategoryInterval: result.labelCategoryInterval\n } : result;\n}\n\nfunction makeCategoryLabelsActually(axis, labelModel) {\n var labelsCache = getListCache(axis, 'labels');\n var optionLabelInterval = getOptionCategoryInterval(labelModel);\n var result = listCacheGet(labelsCache, optionLabelInterval);\n\n if (result) {\n return result;\n }\n\n var labels;\n var numericLabelInterval;\n\n if (zrUtil.isFunction(optionLabelInterval)) {\n labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);\n } else {\n numericLabelInterval = optionLabelInterval === 'auto' ? makeAutoCategoryInterval(axis) : optionLabelInterval;\n labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);\n } // Cache to avoid calling interval function repeatly.\n\n\n return listCacheSet(labelsCache, optionLabelInterval, {\n labels: labels,\n labelCategoryInterval: numericLabelInterval\n });\n}\n\nfunction makeCategoryTicks(axis, tickModel) {\n var ticksCache = getListCache(axis, 'ticks');\n var optionTickInterval = getOptionCategoryInterval(tickModel);\n var result = listCacheGet(ticksCache, optionTickInterval);\n\n if (result) {\n return result;\n }\n\n var ticks;\n var tickCategoryInterval; // Optimize for the case that large category data and no label displayed,\n // we should not return all ticks.\n\n if (!tickModel.get('show') || axis.scale.isBlank()) {\n ticks = [];\n }\n\n if (zrUtil.isFunction(optionTickInterval)) {\n ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);\n } // Always use label interval by default despite label show. Consider this\n // scenario, Use multiple grid with the xAxis sync, and only one xAxis shows\n // labels. `splitLine` and `axisTick` should be consistent in this case.\n else if (optionTickInterval === 'auto') {\n var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());\n tickCategoryInterval = labelsResult.labelCategoryInterval;\n ticks = zrUtil.map(labelsResult.labels, function (labelItem) {\n return labelItem.tickValue;\n });\n } else {\n tickCategoryInterval = optionTickInterval;\n ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);\n } // Cache to avoid calling interval function repeatly.\n\n\n return listCacheSet(ticksCache, optionTickInterval, {\n ticks: ticks,\n tickCategoryInterval: tickCategoryInterval\n });\n}\n\nfunction makeRealNumberLabels(axis) {\n var ticks = axis.scale.getTicks();\n var labelFormatter = makeLabelFormatter(axis);\n return {\n labels: zrUtil.map(ticks, function (tick, idx) {\n return {\n formattedLabel: labelFormatter(tick, idx),\n rawLabel: axis.scale.getLabel(tick),\n tickValue: tick.value\n };\n })\n };\n}\n\nfunction getListCache(axis, prop) {\n // Because key can be funciton, and cache size always be small, we use array cache.\n return inner(axis)[prop] || (inner(axis)[prop] = []);\n}\n\nfunction listCacheGet(cache, key) {\n for (var i = 0; i < cache.length; i++) {\n if (cache[i].key === key) {\n return cache[i].value;\n }\n }\n}\n\nfunction listCacheSet(cache, key, value) {\n cache.push({\n key: key,\n value: value\n });\n return value;\n}\n\nfunction makeAutoCategoryInterval(axis) {\n var result = inner(axis).autoInterval;\n return result != null ? result : inner(axis).autoInterval = axis.calculateCategoryInterval();\n}\n/**\n * Calculate interval for category axis ticks and labels.\n * To get precise result, at least one of `getRotate` and `isHorizontal`\n * should be implemented in axis.\n */\n\n\nexport function calculateCategoryInterval(axis) {\n var params = fetchAutoCategoryIntervalCalculationParams(axis);\n var labelFormatter = makeLabelFormatter(axis);\n var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n\n var tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n var step = 1; // Simple optimization. Empirical value: tick count should less than 40.\n\n if (tickCount > 40) {\n step = Math.max(1, Math.floor(tickCount / 40));\n }\n\n var tickValue = ordinalExtent[0];\n var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n var unitW = Math.abs(unitSpan * Math.cos(rotation));\n var unitH = Math.abs(unitSpan * Math.sin(rotation));\n var maxW = 0;\n var maxH = 0; // Caution: Performance sensitive for large category data.\n // Consider dataZoom, we should make appropriate step to avoid O(n) loop.\n\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n var width = 0;\n var height = 0; // Not precise, do not consider align and vertical align\n // and each distance from axis line yet.\n\n var rect = textContain.getBoundingRect(labelFormatter({\n value: tickValue\n }), params.font, 'center', 'top'); // Magic number\n\n width = rect.width * 1.3;\n height = rect.height * 1.3; // Min size, void long loop.\n\n maxW = Math.max(maxW, width, 7);\n maxH = Math.max(maxH, height, 7);\n }\n\n var dw = maxW / unitW;\n var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity.\n\n isNaN(dw) && (dw = Infinity);\n isNaN(dh) && (dh = Infinity);\n var interval = Math.max(0, Math.floor(Math.min(dw, dh)));\n var cache = inner(axis.model);\n var axisExtent = axis.getExtent();\n var lastAutoInterval = cache.lastAutoInterval;\n var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n // For example, if all of the axis labels are `a, b, c, d, e, f, g`.\n // The jitter will cause that sometimes the displayed labels are\n // `a, d, g` (interval: 2) sometimes `a, c, e`(interval: 1).\n\n if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval // If the axis change is caused by chart resize, the cache should not\n // be used. Otherwise some hiden labels might not be shown again.\n && cache.axisExtent0 === axisExtent[0] && cache.axisExtent1 === axisExtent[1]) {\n interval = lastAutoInterval;\n } // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n cache.axisExtent0 = axisExtent[0];\n cache.axisExtent1 = axisExtent[1];\n }\n\n return interval;\n}\n\nfunction fetchAutoCategoryIntervalCalculationParams(axis) {\n var labelModel = axis.getLabelModel();\n return {\n axisRotate: axis.getRotate ? axis.getRotate() : axis.isHorizontal && !axis.isHorizontal() ? 90 : 0,\n labelRotate: labelModel.get('rotate') || 0,\n font: labelModel.getFont()\n };\n}\n\nfunction makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {\n var labelFormatter = makeLabelFormatter(axis);\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent();\n var labelModel = axis.getLabelModel();\n var result = []; // TODO: axisType: ordinalTime, pick the tick from each month/day/year/...\n\n var step = Math.max((categoryInterval || 0) + 1, 1);\n var startTick = ordinalExtent[0];\n var tickCount = ordinalScale.count(); // Calculate start tick based on zero if possible to keep label consistent\n // while zooming and moving while interval > 0. Otherwise the selection\n // of displayable ticks and symbols probably keep changing.\n // 3 is empirical value.\n\n if (startTick !== 0 && step > 1 && tickCount / step > 2) {\n startTick = Math.round(Math.ceil(startTick / step) * step);\n } // (1) Only add min max label here but leave overlap checking\n // to render stage, which also ensure the returned list\n // suitable for splitLine and splitArea rendering.\n // (2) Scales except category always contain min max label so\n // do not need to perform this process.\n\n\n var showAllLabel = shouldShowAllLabels(axis);\n var includeMinLabel = labelModel.get('showMinLabel') || showAllLabel;\n var includeMaxLabel = labelModel.get('showMaxLabel') || showAllLabel;\n\n if (includeMinLabel && startTick !== ordinalExtent[0]) {\n addItem(ordinalExtent[0]);\n } // Optimize: avoid generating large array by `ordinalScale.getTicks()`.\n\n\n var tickValue = startTick;\n\n for (; tickValue <= ordinalExtent[1]; tickValue += step) {\n addItem(tickValue);\n }\n\n if (includeMaxLabel && tickValue - step !== ordinalExtent[1]) {\n addItem(ordinalExtent[1]);\n }\n\n function addItem(tickValue) {\n var tickObj = {\n value: tickValue\n };\n result.push(onlyTick ? tickValue : {\n formattedLabel: labelFormatter(tickObj),\n rawLabel: ordinalScale.getLabel(tickObj),\n tickValue: tickValue\n });\n }\n\n return result;\n}\n\nfunction makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) {\n var ordinalScale = axis.scale;\n var labelFormatter = makeLabelFormatter(axis);\n var result = [];\n zrUtil.each(ordinalScale.getTicks(), function (tick) {\n var rawLabel = ordinalScale.getLabel(tick);\n var tickValue = tick.value;\n\n if (categoryInterval(tick.value, rawLabel)) {\n result.push(onlyTick ? tickValue : {\n formattedLabel: labelFormatter(tick),\n rawLabel: rawLabel,\n tickValue: tickValue\n });\n }\n });\n return result;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, map } from 'zrender/lib/core/util';\nimport { linearMap, getPixelPrecision, round } from '../util/number';\nimport { createAxisTicks, createAxisLabels, calculateCategoryInterval } from './axisTickLabelBuilder';\nvar NORMALIZED_EXTENT = [0, 1];\n/**\n * Base class of Axis.\n */\n\nvar Axis =\n/** @class */\nfunction () {\n function Axis(dim, scale, extent) {\n this.onBand = false;\n this.inverse = false;\n this.dim = dim;\n this.scale = scale;\n this._extent = extent || [0, 0];\n }\n /**\n * If axis extent contain given coord\n */\n\n\n Axis.prototype.contain = function (coord) {\n var extent = this._extent;\n var min = Math.min(extent[0], extent[1]);\n var max = Math.max(extent[0], extent[1]);\n return coord >= min && coord <= max;\n };\n /**\n * If axis extent contain given data\n */\n\n\n Axis.prototype.containData = function (data) {\n return this.scale.contain(data);\n };\n /**\n * Get coord extent.\n */\n\n\n Axis.prototype.getExtent = function () {\n return this._extent.slice();\n };\n /**\n * Get precision used for formatting\n */\n\n\n Axis.prototype.getPixelPrecision = function (dataExtent) {\n return getPixelPrecision(dataExtent || this.scale.getExtent(), this._extent);\n };\n /**\n * Set coord extent\n */\n\n\n Axis.prototype.setExtent = function (start, end) {\n var extent = this._extent;\n extent[0] = start;\n extent[1] = end;\n };\n /**\n * Convert data to coord. Data is the rank if it has an ordinal scale\n */\n\n\n Axis.prototype.dataToCoord = function (data, clamp) {\n var extent = this._extent;\n var scale = this.scale;\n data = scale.normalize(data);\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice();\n fixExtentWithBands(extent, scale.count());\n }\n\n return linearMap(data, NORMALIZED_EXTENT, extent, clamp);\n };\n /**\n * Convert coord to data. Data is the rank if it has an ordinal scale\n */\n\n\n Axis.prototype.coordToData = function (coord, clamp) {\n var extent = this._extent;\n var scale = this.scale;\n\n if (this.onBand && scale.type === 'ordinal') {\n extent = extent.slice();\n fixExtentWithBands(extent, scale.count());\n }\n\n var t = linearMap(coord, extent, NORMALIZED_EXTENT, clamp);\n return this.scale.scale(t);\n };\n /**\n * Convert pixel point to data in axis\n */\n\n\n Axis.prototype.pointToData = function (point, clamp) {\n // Should be implemented in derived class if necessary.\n return;\n };\n /**\n * Different from `zrUtil.map(axis.getTicks(), axis.dataToCoord, axis)`,\n * `axis.getTicksCoords` considers `onBand`, which is used by\n * `boundaryGap:true` of category axis and splitLine and splitArea.\n * @param opt.tickModel default: axis.model.getModel('axisTick')\n * @param opt.clamp If `true`, the first and the last\n * tick must be at the axis end points. Otherwise, clip ticks\n * that outside the axis extent.\n */\n\n\n Axis.prototype.getTicksCoords = function (opt) {\n opt = opt || {};\n var tickModel = opt.tickModel || this.getTickModel();\n var result = createAxisTicks(this, tickModel);\n var ticks = result.ticks;\n var ticksCoords = map(ticks, function (tickVal) {\n return {\n coord: this.dataToCoord(this.scale.type === 'ordinal' ? this.scale.getRawOrdinalNumber(tickVal) : tickVal),\n tickValue: tickVal\n };\n }, this);\n var alignWithLabel = tickModel.get('alignWithLabel');\n fixOnBandTicksCoords(this, ticksCoords, alignWithLabel, opt.clamp);\n return ticksCoords;\n };\n\n Axis.prototype.getMinorTicksCoords = function () {\n if (this.scale.type === 'ordinal') {\n // Category axis doesn't support minor ticks\n return [];\n }\n\n var minorTickModel = this.model.getModel('minorTick');\n var splitNumber = minorTickModel.get('splitNumber'); // Protection.\n\n if (!(splitNumber > 0 && splitNumber < 100)) {\n splitNumber = 5;\n }\n\n var minorTicks = this.scale.getMinorTicks(splitNumber);\n var minorTicksCoords = map(minorTicks, function (minorTicksGroup) {\n return map(minorTicksGroup, function (minorTick) {\n return {\n coord: this.dataToCoord(minorTick),\n tickValue: minorTick\n };\n }, this);\n }, this);\n return minorTicksCoords;\n };\n\n Axis.prototype.getViewLabels = function () {\n return createAxisLabels(this).labels;\n };\n\n Axis.prototype.getLabelModel = function () {\n return this.model.getModel('axisLabel');\n };\n /**\n * Notice here we only get the default tick model. For splitLine\n * or splitArea, we should pass the splitLineModel or splitAreaModel\n * manually when calling `getTicksCoords`.\n * In GL, this method may be overrided to:\n * `axisModel.getModel('axisTick', grid3DModel.getModel('axisTick'));`\n */\n\n\n Axis.prototype.getTickModel = function () {\n return this.model.getModel('axisTick');\n };\n /**\n * Get width of band\n */\n\n\n Axis.prototype.getBandWidth = function () {\n var axisExtent = this._extent;\n var dataExtent = this.scale.getExtent();\n var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0); // Fix #2728, avoid NaN when only one data.\n\n len === 0 && (len = 1);\n var size = Math.abs(axisExtent[1] - axisExtent[0]);\n return Math.abs(size) / len;\n };\n /**\n * Only be called in category axis.\n * Can be overrided, consider other axes like in 3D.\n * @return Auto interval for cateogry axis tick and label\n */\n\n\n Axis.prototype.calculateCategoryInterval = function () {\n return calculateCategoryInterval(this);\n };\n\n return Axis;\n}();\n\nfunction fixExtentWithBands(extent, nTick) {\n var size = extent[1] - extent[0];\n var len = nTick;\n var margin = size / len / 2;\n extent[0] += margin;\n extent[1] -= margin;\n} // If axis has labels [1, 2, 3, 4]. Bands on the axis are\n// |---1---|---2---|---3---|---4---|.\n// So the displayed ticks and splitLine/splitArea should between\n// each data item, otherwise cause misleading (e.g., split tow bars\n// of a single data item when there are two bar series).\n// Also consider if tickCategoryInterval > 0 and onBand, ticks and\n// splitLine/spliteArea should layout appropriately corresponding\n// to displayed labels. (So we should not use `getBandWidth` in this\n// case).\n\n\nfunction fixOnBandTicksCoords(axis, ticksCoords, alignWithLabel, clamp) {\n var ticksLen = ticksCoords.length;\n\n if (!axis.onBand || alignWithLabel || !ticksLen) {\n return;\n }\n\n var axisExtent = axis.getExtent();\n var last;\n var diffSize;\n\n if (ticksLen === 1) {\n ticksCoords[0].coord = axisExtent[0];\n last = ticksCoords[1] = {\n coord: axisExtent[0]\n };\n } else {\n var crossLen = ticksCoords[ticksLen - 1].tickValue - ticksCoords[0].tickValue;\n var shift_1 = (ticksCoords[ticksLen - 1].coord - ticksCoords[0].coord) / crossLen;\n each(ticksCoords, function (ticksItem) {\n ticksItem.coord -= shift_1 / 2;\n });\n var dataExtent = axis.scale.getExtent();\n diffSize = 1 + dataExtent[1] - ticksCoords[ticksLen - 1].tickValue;\n last = {\n coord: ticksCoords[ticksLen - 1].coord + shift_1 * diffSize\n };\n ticksCoords.push(last);\n }\n\n var inverse = axisExtent[0] > axisExtent[1]; // Handling clamp.\n\n if (littleThan(ticksCoords[0].coord, axisExtent[0])) {\n clamp ? ticksCoords[0].coord = axisExtent[0] : ticksCoords.shift();\n }\n\n if (clamp && littleThan(axisExtent[0], ticksCoords[0].coord)) {\n ticksCoords.unshift({\n coord: axisExtent[0]\n });\n }\n\n if (littleThan(axisExtent[1], last.coord)) {\n clamp ? last.coord = axisExtent[1] : ticksCoords.pop();\n }\n\n if (clamp && littleThan(last.coord, axisExtent[1])) {\n ticksCoords.push({\n coord: axisExtent[1]\n });\n }\n\n function littleThan(a, b) {\n // Avoid rounding error cause calculated tick coord different with extent.\n // It may cause an extra unecessary tick added.\n a = round(a);\n b = round(b);\n return inverse ? a > b : a < b;\n }\n}\n\nexport default Axis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// These APIs are for more advanced usages\n// For example extend charts and components, creating graphic elements, formatting.\nimport ComponentModel from '../model/Component';\nimport ComponentView from '../view/Component';\nimport SeriesModel from '../model/Series';\nimport ChartView from '../view/Chart';\nimport * as zrender_1 from 'zrender/lib/zrender';\nexport { zrender_1 as zrender };\nimport * as matrix_1 from 'zrender/lib/core/matrix';\nexport { matrix_1 as matrix };\nimport * as vector_1 from 'zrender/lib/core/vector';\nexport { vector_1 as vector };\nimport * as zrUtil_1 from 'zrender/lib/core/util';\nexport { zrUtil_1 as zrUtil };\nimport * as color_1 from 'zrender/lib/tool/color';\nexport { color_1 as color };\nexport { throttle } from '../util/throttle';\nimport * as helper_1 from './api/helper';\nexport { helper_1 as helper };\nexport { use } from '../extension'; //////////////// Helper Methods /////////////////////\n\nexport { default as parseGeoJSON } from '../coord/geo/parseGeoJson';\nexport { default as parseGeoJson } from '../coord/geo/parseGeoJson';\nimport * as number_1 from './api/number';\nexport { number_1 as number };\nimport * as time_1 from './api/time';\nexport { time_1 as time };\nimport * as graphic_1 from './api/graphic';\nexport { graphic_1 as graphic };\nimport * as format_1 from './api/format';\nexport { format_1 as format };\nimport * as util_1 from './api/util';\nexport { util_1 as util };\nexport { default as env } from 'zrender/lib/core/env'; //////////////// Export for Exension Usage ////////////////\n\nexport { default as List } from '../data/List';\nexport { default as Model } from '../model/Model';\nexport { default as Axis } from '../coord/Axis';\nexport { ComponentModel, ComponentView, SeriesModel, ChartView }; // Only for GL\n\nexport { brushSingle as innerDrawElementOnCanvas } from 'zrender/lib/canvas/graphic'; //////////////// Deprecated Extension Methods ////////////////\n// Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.\n// Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:\n// class Bar3DModel extends ComponentModel {}\n// export function install(registers) { regsiters.registerComponentModel(Bar3DModel); }\n// echarts.use(install);\n\nexport function extendComponentModel(proto) {\n var Model = ComponentModel.extend(proto);\n ComponentModel.registerClass(Model);\n return Model;\n}\nexport function extendComponentView(proto) {\n var View = ComponentView.extend(proto);\n ComponentView.registerClass(View);\n return View;\n}\nexport function extendSeriesModel(proto) {\n var Model = SeriesModel.extend(proto);\n SeriesModel.registerClass(Model);\n return Model;\n}\nexport function extendChartView(proto) {\n var View = ChartView.extend(proto);\n ChartView.registerClass(View);\n return View;\n}","export function createElement(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n","function diff(oldArr, newArr, equals) {\n if (!equals) {\n equals = function (a, b) {\n return a === b;\n };\n }\n oldArr = oldArr.slice();\n newArr = newArr.slice();\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath = [{ newPos: -1, components: [] }];\n var oldPos = extractCommon(bestPath[0], newArr, oldArr, 0, equals);\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n var indices = [];\n for (var i = 0; i < newArr.length; i++) {\n indices.push(i);\n }\n return [{\n indices: indices,\n count: newArr.length,\n added: false,\n removed: false\n }];\n }\n function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath;\n var addPath = bestPath[diagonalPath - 1];\n var removePath = bestPath[diagonalPath + 1];\n var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n bestPath[diagonalPath - 1] = undefined;\n }\n var canAdd = addPath && addPath.newPos + 1 < newLen;\n var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;\n if (!canAdd && !canRemove) {\n bestPath[diagonalPath] = undefined;\n continue;\n }\n if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {\n basePath = clonePath(removePath);\n pushComponent(basePath.components, false, true);\n }\n else {\n basePath = addPath;\n basePath.newPos++;\n pushComponent(basePath.components, true, false);\n }\n oldPos = extractCommon(basePath, newArr, oldArr, diagonalPath, equals);\n if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n return buildValues(basePath.components);\n }\n else {\n bestPath[diagonalPath] = basePath;\n }\n }\n editLength++;\n }\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n if (ret) {\n return ret;\n }\n }\n}\nfunction extractCommon(basePath, newArr, oldArr, diagonalPath, equals) {\n var newLen = newArr.length;\n var oldLen = oldArr.length;\n var newPos = basePath.newPos;\n var oldPos = newPos - diagonalPath;\n var commonCount = 0;\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && equals(newArr[newPos + 1], oldArr[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n if (commonCount) {\n basePath.components.push({\n count: commonCount,\n added: false,\n removed: false,\n indices: []\n });\n }\n basePath.newPos = newPos;\n return oldPos;\n}\nfunction pushComponent(components, added, removed) {\n var last = components[components.length - 1];\n if (last && last.added === added && last.removed === removed) {\n components[components.length - 1] = {\n count: last.count + 1,\n added: added,\n removed: removed,\n indices: []\n };\n }\n else {\n components.push({\n count: 1,\n added: added,\n removed: removed,\n indices: []\n });\n }\n}\nfunction buildValues(components) {\n var componentPos = 0;\n var componentLen = components.length;\n var newPos = 0;\n var oldPos = 0;\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n if (!component.removed) {\n var indices = [];\n for (var i = newPos; i < newPos + component.count; i++) {\n indices.push(i);\n }\n component.indices = indices;\n newPos += component.count;\n if (!component.added) {\n oldPos += component.count;\n }\n }\n else {\n for (var i = oldPos; i < oldPos + component.count; i++) {\n component.indices.push(i);\n }\n oldPos += component.count;\n }\n }\n return components;\n}\nfunction clonePath(path) {\n return { newPos: path.newPos, components: path.components.slice(0) };\n}\nexport default function arrayDiff(oldArr, newArr, equal) {\n return diff(oldArr, newArr, equal);\n}\n","import { createElement } from './core';\nimport ZRImage from '../graphic/Image';\nimport { DEFAULT_FONT, getLineHeight } from '../contain/text';\nimport { map } from '../core/util';\nimport { normalizeLineDash } from '../graphic/helper/dashStyle';\nvar NONE = 'none';\nvar mathRound = Math.round;\nvar mathSin = Math.sin;\nvar mathCos = Math.cos;\nvar PI = Math.PI;\nvar PI2 = Math.PI * 2;\nvar degree = 180 / PI;\nvar EPSILON = 1e-4;\nfunction round3(val) {\n return mathRound(val * 1e3) / 1e3;\n}\nfunction round4(val) {\n return mathRound(val * 1e4) / 1e4;\n}\nfunction isAroundZero(val) {\n return val < EPSILON && val > -EPSILON;\n}\nfunction pathHasFill(style) {\n var fill = style.fill;\n return fill != null && fill !== NONE;\n}\nfunction pathHasStroke(style) {\n var stroke = style.stroke;\n return stroke != null && stroke !== NONE;\n}\nfunction setTransform(svgEl, m) {\n if (m) {\n attr(svgEl, 'transform', 'matrix('\n + round3(m[0]) + ','\n + round3(m[1]) + ','\n + round3(m[2]) + ','\n + round3(m[3]) + ','\n + round4(m[4]) + ','\n + round4(m[5])\n + ')');\n }\n}\nfunction attr(el, key, val) {\n if (!val || val.type !== 'linear' && val.type !== 'radial') {\n el.setAttribute(key, val);\n }\n}\nfunction attrXLink(el, key, val) {\n el.setAttributeNS('http://www.w3.org/1999/xlink', key, val);\n}\nfunction attrXML(el, key, val) {\n el.setAttributeNS('http://www.w3.org/XML/1998/namespace', key, val);\n}\nfunction bindStyle(svgEl, style, el) {\n var opacity = style.opacity == null ? 1 : style.opacity;\n if (el instanceof ZRImage) {\n svgEl.style.opacity = opacity + '';\n return;\n }\n if (pathHasFill(style)) {\n var fill = style.fill;\n fill = fill === 'transparent' ? NONE : fill;\n attr(svgEl, 'fill', fill);\n attr(svgEl, 'fill-opacity', (style.fillOpacity != null ? style.fillOpacity * opacity : opacity) + '');\n }\n else {\n attr(svgEl, 'fill', NONE);\n }\n if (pathHasStroke(style)) {\n var stroke = style.stroke;\n stroke = stroke === 'transparent' ? NONE : stroke;\n attr(svgEl, 'stroke', stroke);\n var strokeWidth = style.lineWidth;\n var strokeScale_1 = style.strokeNoScale\n ? el.getLineScale()\n : 1;\n attr(svgEl, 'stroke-width', (strokeScale_1 ? strokeWidth / strokeScale_1 : 0) + '');\n attr(svgEl, 'paint-order', style.strokeFirst ? 'stroke' : 'fill');\n attr(svgEl, 'stroke-opacity', (style.strokeOpacity != null ? style.strokeOpacity * opacity : opacity) + '');\n var lineDash = style.lineDash && strokeWidth > 0 && normalizeLineDash(style.lineDash, strokeWidth);\n if (lineDash) {\n var lineDashOffset = style.lineDashOffset;\n if (strokeScale_1 && strokeScale_1 !== 1) {\n lineDash = map(lineDash, function (rawVal) {\n return rawVal / strokeScale_1;\n });\n if (lineDashOffset) {\n lineDashOffset /= strokeScale_1;\n lineDashOffset = mathRound(lineDashOffset);\n }\n }\n attr(svgEl, 'stroke-dasharray', lineDash.join(','));\n attr(svgEl, 'stroke-dashoffset', (lineDashOffset || 0) + '');\n }\n else {\n attr(svgEl, 'stroke-dasharray', '');\n }\n style.lineCap && attr(svgEl, 'stroke-linecap', style.lineCap);\n style.lineJoin && attr(svgEl, 'stroke-linejoin', style.lineJoin);\n style.miterLimit && attr(svgEl, 'stroke-miterlimit', style.miterLimit + '');\n }\n else {\n attr(svgEl, 'stroke', NONE);\n }\n}\nvar SVGPathRebuilder = (function () {\n function SVGPathRebuilder() {\n }\n SVGPathRebuilder.prototype.reset = function () {\n this._d = [];\n this._str = '';\n };\n SVGPathRebuilder.prototype.moveTo = function (x, y) {\n this._add('M', x, y);\n };\n SVGPathRebuilder.prototype.lineTo = function (x, y) {\n this._add('L', x, y);\n };\n SVGPathRebuilder.prototype.bezierCurveTo = function (x, y, x2, y2, x3, y3) {\n this._add('C', x, y, x2, y2, x3, y3);\n };\n SVGPathRebuilder.prototype.quadraticCurveTo = function (x, y, x2, y2) {\n this._add('Q', x, y, x2, y2);\n };\n SVGPathRebuilder.prototype.arc = function (cx, cy, r, startAngle, endAngle, anticlockwise) {\n this.ellipse(cx, cy, r, r, 0, startAngle, endAngle, anticlockwise);\n };\n SVGPathRebuilder.prototype.ellipse = function (cx, cy, rx, ry, psi, startAngle, endAngle, anticlockwise) {\n var firstCmd = this._d.length === 0;\n var dTheta = endAngle - startAngle;\n var clockwise = !anticlockwise;\n var dThetaPositive = Math.abs(dTheta);\n var isCircle = isAroundZero(dThetaPositive - PI2)\n || (clockwise ? dTheta >= PI2 : -dTheta >= PI2);\n var unifiedTheta = dTheta > 0 ? dTheta % PI2 : (dTheta % PI2 + PI2);\n var large = false;\n if (isCircle) {\n large = true;\n }\n else if (isAroundZero(dThetaPositive)) {\n large = false;\n }\n else {\n large = (unifiedTheta >= PI) === !!clockwise;\n }\n var x0 = round4(cx + rx * mathCos(startAngle));\n var y0 = round4(cy + ry * mathSin(startAngle));\n if (isCircle) {\n if (clockwise) {\n dTheta = PI2 - 1e-4;\n }\n else {\n dTheta = -PI2 + 1e-4;\n }\n large = true;\n if (firstCmd) {\n this._d.push('M', x0, y0);\n }\n }\n var x = round4(cx + rx * mathCos(startAngle + dTheta));\n var y = round4(cy + ry * mathSin(startAngle + dTheta));\n if (isNaN(x0) || isNaN(y0) || isNaN(rx) || isNaN(ry) || isNaN(psi) || isNaN(degree) || isNaN(x) || isNaN(y)) {\n return '';\n }\n this._d.push('A', round4(rx), round4(ry), mathRound(psi * degree), +large, +clockwise, x, y);\n };\n SVGPathRebuilder.prototype.rect = function (x, y, w, h) {\n this._add('M', x, y);\n this._add('L', x + w, y);\n this._add('L', x + w, y + h);\n this._add('L', x, y + h);\n this._add('L', x, y);\n };\n SVGPathRebuilder.prototype.closePath = function () {\n if (this._d.length > 0) {\n this._add('Z');\n }\n };\n SVGPathRebuilder.prototype._add = function (cmd, a, b, c, d, e, f, g, h) {\n this._d.push(cmd);\n for (var i = 1; i < arguments.length; i++) {\n var val = arguments[i];\n if (isNaN(val)) {\n this._invalid = true;\n return;\n }\n this._d.push(round4(val));\n }\n };\n SVGPathRebuilder.prototype.generateStr = function () {\n this._str = this._invalid ? '' : this._d.join(' ');\n this._d = [];\n };\n SVGPathRebuilder.prototype.getStr = function () {\n return this._str;\n };\n return SVGPathRebuilder;\n}());\nvar svgPath = {\n brush: function (el) {\n var style = el.style;\n var svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('path');\n el.__svgEl = svgEl;\n }\n if (!el.path) {\n el.createPathProxy();\n }\n var path = el.path;\n if (el.shapeChanged()) {\n path.beginPath();\n el.buildPath(path, el.shape);\n el.pathUpdated();\n }\n var pathVersion = path.getVersion();\n var elExt = el;\n var svgPathBuilder = elExt.__svgPathBuilder;\n if (elExt.__svgPathVersion !== pathVersion || !svgPathBuilder || el.style.strokePercent < 1) {\n if (!svgPathBuilder) {\n svgPathBuilder = elExt.__svgPathBuilder = new SVGPathRebuilder();\n }\n svgPathBuilder.reset();\n path.rebuildPath(svgPathBuilder, el.style.strokePercent);\n svgPathBuilder.generateStr();\n elExt.__svgPathVersion = pathVersion;\n }\n attr(svgEl, 'd', svgPathBuilder.getStr());\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport { svgPath as path };\nvar svgImage = {\n brush: function (el) {\n var style = el.style;\n var image = style.image;\n if (image instanceof HTMLImageElement) {\n image = image.src;\n }\n else if (image instanceof HTMLCanvasElement) {\n image = image.toDataURL();\n }\n if (!image) {\n return;\n }\n var x = style.x || 0;\n var y = style.y || 0;\n var dw = style.width;\n var dh = style.height;\n var svgEl = el.__svgEl;\n if (!svgEl) {\n svgEl = createElement('image');\n el.__svgEl = svgEl;\n }\n if (image !== el.__imageSrc) {\n attrXLink(svgEl, 'href', image);\n el.__imageSrc = image;\n }\n attr(svgEl, 'width', dw + '');\n attr(svgEl, 'height', dh + '');\n attr(svgEl, 'x', x + '');\n attr(svgEl, 'y', y + '');\n bindStyle(svgEl, style, el);\n setTransform(svgEl, el.transform);\n }\n};\nexport { svgImage as image };\nvar TEXT_ALIGN_TO_ANCHOR = {\n left: 'start',\n right: 'end',\n center: 'middle',\n middle: 'middle'\n};\nfunction adjustTextY(y, lineHeight, textBaseline) {\n if (textBaseline === 'top') {\n y += lineHeight / 2;\n }\n else if (textBaseline === 'bottom') {\n y -= lineHeight / 2;\n }\n return y;\n}\nvar svgText = {\n brush: function (el) {\n var style = el.style;\n var text = style.text;\n text != null && (text += '');\n if (!text || isNaN(style.x) || isNaN(style.y)) {\n return;\n }\n var textSvgEl = el.__svgEl;\n if (!textSvgEl) {\n textSvgEl = createElement('text');\n attrXML(textSvgEl, 'xml:space', 'preserve');\n el.__svgEl = textSvgEl;\n }\n var font = style.font || DEFAULT_FONT;\n var textSvgElStyle = textSvgEl.style;\n textSvgElStyle.font = font;\n textSvgEl.textContent = text;\n bindStyle(textSvgEl, style, el);\n setTransform(textSvgEl, el.transform);\n var x = style.x || 0;\n var y = adjustTextY(style.y || 0, getLineHeight(font), style.textBaseline);\n var textAlign = TEXT_ALIGN_TO_ANCHOR[style.textAlign]\n || style.textAlign;\n attr(textSvgEl, 'dominant-baseline', 'central');\n attr(textSvgEl, 'text-anchor', textAlign);\n attr(textSvgEl, 'x', x + '');\n attr(textSvgEl, 'y', y + '');\n }\n};\nexport { svgText as text };\n","import { createElement } from '../core';\nimport * as zrUtil from '../../core/util';\nimport Path from '../../graphic/Path';\nimport ZRImage from '../../graphic/Image';\nimport TSpan from '../../graphic/TSpan';\nimport { path as svgPath, image as svgImage, text as svgText } from '../graphic';\nvar MARK_UNUSED = '0';\nvar MARK_USED = '1';\nvar Definable = (function () {\n function Definable(zrId, svgRoot, tagNames, markLabel, domName) {\n this.nextId = 0;\n this._domName = '_dom';\n this.createElement = createElement;\n this._zrId = zrId;\n this._svgRoot = svgRoot;\n this._tagNames = typeof tagNames === 'string' ? [tagNames] : tagNames;\n this._markLabel = markLabel;\n if (domName) {\n this._domName = domName;\n }\n }\n Definable.prototype.getDefs = function (isForceCreating) {\n var svgRoot = this._svgRoot;\n var defs = this._svgRoot.getElementsByTagName('defs');\n if (defs.length === 0) {\n if (isForceCreating) {\n var defs_1 = svgRoot.insertBefore(this.createElement('defs'), svgRoot.firstChild);\n if (!defs_1.contains) {\n defs_1.contains = function (el) {\n var children = defs_1.children;\n if (!children) {\n return false;\n }\n for (var i = children.length - 1; i >= 0; --i) {\n if (children[i] === el) {\n return true;\n }\n }\n return false;\n };\n }\n return defs_1;\n }\n else {\n return null;\n }\n }\n else {\n return defs[0];\n }\n };\n Definable.prototype.doUpdate = function (target, onUpdate) {\n if (!target) {\n return;\n }\n var defs = this.getDefs(false);\n if (target[this._domName] && defs.contains(target[this._domName])) {\n if (typeof onUpdate === 'function') {\n onUpdate(target);\n }\n }\n else {\n var dom = this.add(target);\n if (dom) {\n target[this._domName] = dom;\n }\n }\n };\n Definable.prototype.add = function (target) {\n return null;\n };\n Definable.prototype.addDom = function (dom) {\n var defs = this.getDefs(true);\n if (dom.parentNode !== defs) {\n defs.appendChild(dom);\n }\n };\n Definable.prototype.removeDom = function (target) {\n var defs = this.getDefs(false);\n if (defs && target[this._domName]) {\n defs.removeChild(target[this._domName]);\n target[this._domName] = null;\n }\n };\n Definable.prototype.getDoms = function () {\n var defs = this.getDefs(false);\n if (!defs) {\n return [];\n }\n var doms = [];\n zrUtil.each(this._tagNames, function (tagName) {\n var tags = defs.getElementsByTagName(tagName);\n for (var i = 0; i < tags.length; i++) {\n doms.push(tags[i]);\n }\n });\n return doms;\n };\n Definable.prototype.markAllUnused = function () {\n var doms = this.getDoms();\n var that = this;\n zrUtil.each(doms, function (dom) {\n dom[that._markLabel] = MARK_UNUSED;\n });\n };\n Definable.prototype.markDomUsed = function (dom) {\n dom && (dom[this._markLabel] = MARK_USED);\n };\n ;\n Definable.prototype.markDomUnused = function (dom) {\n dom && (dom[this._markLabel] = MARK_UNUSED);\n };\n ;\n Definable.prototype.isDomUnused = function (dom) {\n return dom && dom[this._markLabel] !== MARK_USED;\n };\n Definable.prototype.removeUnused = function () {\n var _this = this;\n var defs = this.getDefs(false);\n if (!defs) {\n return;\n }\n var doms = this.getDoms();\n zrUtil.each(doms, function (dom) {\n if (_this.isDomUnused(dom)) {\n defs.removeChild(dom);\n }\n });\n };\n Definable.prototype.getSvgProxy = function (displayable) {\n if (displayable instanceof Path) {\n return svgPath;\n }\n else if (displayable instanceof ZRImage) {\n return svgImage;\n }\n else if (displayable instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n };\n Definable.prototype.getSvgElement = function (displayable) {\n return displayable.__svgEl;\n };\n return Definable;\n}());\nexport default Definable;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport * as colorTool from '../../tool/color';\nfunction isLinearGradient(value) {\n return value.type === 'linear';\n}\nfunction isRadialGradient(value) {\n return value.type === 'radial';\n}\nfunction isGradient(value) {\n return value && (value.type === 'linear'\n || value.type === 'radial');\n}\nvar GradientManager = (function (_super) {\n __extends(GradientManager, _super);\n function GradientManager(zrId, svgRoot) {\n return _super.call(this, zrId, svgRoot, ['linearGradient', 'radialGradient'], '__gradient_in_use__') || this;\n }\n GradientManager.prototype.addWithoutUpdate = function (svgElement, displayable) {\n if (displayable && displayable.style) {\n var that_1 = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke) {\n var value = displayable.style[fillOrStroke];\n if (isGradient(value)) {\n var gradient = value;\n var defs = that_1.getDefs(true);\n var dom = void 0;\n if (gradient.__dom) {\n dom = gradient.__dom;\n if (!defs.contains(gradient.__dom)) {\n that_1.addDom(dom);\n }\n }\n else {\n dom = that_1.add(gradient);\n }\n that_1.markUsed(displayable);\n var id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n };\n GradientManager.prototype.add = function (gradient) {\n var dom;\n if (isLinearGradient(gradient)) {\n dom = this.createElement('linearGradient');\n }\n else if (isRadialGradient(gradient)) {\n dom = this.createElement('radialGradient');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return null;\n }\n gradient.id = gradient.id || this.nextId++;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-gradient-' + gradient.id);\n this.updateDom(gradient, dom);\n this.addDom(dom);\n return dom;\n };\n GradientManager.prototype.update = function (gradient) {\n if (!isGradient(gradient)) {\n return;\n }\n var that = this;\n this.doUpdate(gradient, function () {\n var dom = gradient.__dom;\n if (!dom) {\n return;\n }\n var tagName = dom.tagName;\n var type = gradient.type;\n if (type === 'linear' && tagName === 'linearGradient'\n || type === 'radial' && tagName === 'radialGradient') {\n that.updateDom(gradient, gradient.__dom);\n }\n else {\n that.removeDom(gradient);\n that.add(gradient);\n }\n });\n };\n GradientManager.prototype.updateDom = function (gradient, dom) {\n if (isLinearGradient(gradient)) {\n dom.setAttribute('x1', gradient.x + '');\n dom.setAttribute('y1', gradient.y + '');\n dom.setAttribute('x2', gradient.x2 + '');\n dom.setAttribute('y2', gradient.y2 + '');\n }\n else if (isRadialGradient(gradient)) {\n dom.setAttribute('cx', gradient.x + '');\n dom.setAttribute('cy', gradient.y + '');\n dom.setAttribute('r', gradient.r + '');\n }\n else {\n zrUtil.logError('Illegal gradient type.');\n return;\n }\n if (gradient.global) {\n dom.setAttribute('gradientUnits', 'userSpaceOnUse');\n }\n else {\n dom.setAttribute('gradientUnits', 'objectBoundingBox');\n }\n dom.innerHTML = '';\n var colors = gradient.colorStops;\n for (var i = 0, len = colors.length; i < len; ++i) {\n var stop_1 = this.createElement('stop');\n stop_1.setAttribute('offset', colors[i].offset * 100 + '%');\n var color = colors[i].color;\n if (color.indexOf('rgba') > -1) {\n var opacity = colorTool.parse(color)[3];\n var hex = colorTool.toHex(color);\n stop_1.setAttribute('stop-color', '#' + hex);\n stop_1.setAttribute('stop-opacity', opacity + '');\n }\n else {\n stop_1.setAttribute('stop-color', colors[i].color);\n }\n dom.appendChild(stop_1);\n }\n gradient.__dom = dom;\n };\n GradientManager.prototype.markUsed = function (displayable) {\n if (displayable.style) {\n var gradient = displayable.style.fill;\n if (gradient && gradient.__dom) {\n _super.prototype.markDomUsed.call(this, gradient.__dom);\n }\n gradient = displayable.style.stroke;\n if (gradient && gradient.__dom) {\n _super.prototype.markDomUsed.call(this, gradient.__dom);\n }\n }\n };\n return GradientManager;\n}(Definable));\nexport default GradientManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport { createOrUpdateImage } from '../../graphic/helper/image';\nimport WeakMap from '../../core/WeakMap';\nfunction isPattern(value) {\n return value && (!!value.image || !!value.svgElement);\n}\nvar patternDomMap = new WeakMap();\nvar PatternManager = (function (_super) {\n __extends(PatternManager, _super);\n function PatternManager(zrId, svgRoot) {\n return _super.call(this, zrId, svgRoot, ['pattern'], '__pattern_in_use__') || this;\n }\n PatternManager.prototype.addWithoutUpdate = function (svgElement, displayable) {\n if (displayable && displayable.style) {\n var that_1 = this;\n zrUtil.each(['fill', 'stroke'], function (fillOrStroke) {\n var pattern = displayable.style[fillOrStroke];\n if (isPattern(pattern)) {\n var defs = that_1.getDefs(true);\n var dom = patternDomMap.get(pattern);\n if (dom) {\n if (!defs.contains(dom)) {\n that_1.addDom(dom);\n }\n }\n else {\n dom = that_1.add(pattern);\n }\n that_1.markUsed(displayable);\n var id = dom.getAttribute('id');\n svgElement.setAttribute(fillOrStroke, 'url(#' + id + ')');\n }\n });\n }\n };\n PatternManager.prototype.add = function (pattern) {\n if (!isPattern(pattern)) {\n return;\n }\n var dom = this.createElement('pattern');\n pattern.id = pattern.id == null ? this.nextId++ : pattern.id;\n dom.setAttribute('id', 'zr' + this._zrId\n + '-pattern-' + pattern.id);\n dom.setAttribute('x', '0');\n dom.setAttribute('y', '0');\n dom.setAttribute('patternUnits', 'userSpaceOnUse');\n this.updateDom(pattern, dom);\n this.addDom(dom);\n return dom;\n };\n PatternManager.prototype.update = function (pattern) {\n if (!isPattern(pattern)) {\n return;\n }\n var that = this;\n this.doUpdate(pattern, function () {\n var dom = patternDomMap.get(pattern);\n that.updateDom(pattern, dom);\n });\n };\n PatternManager.prototype.updateDom = function (pattern, patternDom) {\n var svgElement = pattern.svgElement;\n if (svgElement instanceof SVGElement) {\n if (svgElement.parentNode !== patternDom) {\n patternDom.innerHTML = '';\n patternDom.appendChild(svgElement);\n patternDom.setAttribute('width', pattern.svgWidth + '');\n patternDom.setAttribute('height', pattern.svgHeight + '');\n }\n }\n else {\n var img = void 0;\n var prevImage = patternDom.getElementsByTagName('image');\n if (prevImage.length) {\n if (pattern.image) {\n img = prevImage[0];\n }\n else {\n patternDom.removeChild(prevImage[0]);\n return;\n }\n }\n else if (pattern.image) {\n img = this.createElement('image');\n }\n if (img) {\n var imageSrc = void 0;\n var patternImage = pattern.image;\n if (typeof patternImage === 'string') {\n imageSrc = patternImage;\n }\n else if (patternImage instanceof HTMLImageElement) {\n imageSrc = patternImage.src;\n }\n else if (patternImage instanceof HTMLCanvasElement) {\n imageSrc = patternImage.toDataURL();\n }\n if (imageSrc) {\n img.setAttribute('href', imageSrc);\n img.setAttribute('x', '0');\n img.setAttribute('y', '0');\n var hostEl = {\n dirty: function () { }\n };\n var createdImage = createOrUpdateImage(imageSrc, img, hostEl, function (img) {\n patternDom.setAttribute('width', img.width + '');\n patternDom.setAttribute('height', img.height + '');\n });\n if (createdImage && createdImage.width && createdImage.height) {\n patternDom.setAttribute('width', createdImage.width + '');\n patternDom.setAttribute('height', createdImage.height + '');\n }\n patternDom.appendChild(img);\n }\n }\n }\n var x = pattern.x || 0;\n var y = pattern.y || 0;\n var rotation = (pattern.rotation || 0) / Math.PI * 180;\n var scaleX = pattern.scaleX || 1;\n var scaleY = pattern.scaleY || 1;\n var transform = \"translate(\" + x + \", \" + y + \") rotate(\" + rotation + \") scale(\" + scaleX + \", \" + scaleY + \")\";\n patternDom.setAttribute('patternTransform', transform);\n patternDomMap.set(pattern, patternDom);\n };\n PatternManager.prototype.markUsed = function (displayable) {\n if (displayable.style) {\n if (isPattern(displayable.style.fill)) {\n _super.prototype.markDomUsed.call(this, patternDomMap.get(displayable.style.fill));\n }\n if (isPattern(displayable.style.stroke)) {\n _super.prototype.markDomUsed.call(this, patternDomMap.get(displayable.style.stroke));\n }\n }\n };\n return PatternManager;\n}(Definable));\nexport default PatternManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nimport * as zrUtil from '../../core/util';\nimport { isClipPathChanged } from '../../canvas/helper';\nfunction generateClipPathsKey(clipPaths) {\n var key = [];\n if (clipPaths) {\n for (var i = 0; i < clipPaths.length; i++) {\n var clipPath = clipPaths[i];\n key.push(clipPath.id);\n }\n }\n return key.join(',');\n}\nexport function hasClipPath(displayable) {\n var clipPaths = displayable.__clipPaths;\n return clipPaths && clipPaths.length > 0;\n}\nvar ClippathManager = (function (_super) {\n __extends(ClippathManager, _super);\n function ClippathManager(zrId, svgRoot) {\n var _this = _super.call(this, zrId, svgRoot, 'clipPath', '__clippath_in_use__') || this;\n _this._refGroups = {};\n _this._keyDuplicateCount = {};\n return _this;\n }\n ClippathManager.prototype.markAllUnused = function () {\n _super.prototype.markAllUnused.call(this);\n for (var key in this._refGroups) {\n this.markDomUnused(this._refGroups[key]);\n }\n this._keyDuplicateCount = {};\n };\n ClippathManager.prototype._getClipPathGroup = function (displayable, prevDisplayable) {\n if (!hasClipPath(displayable)) {\n return;\n }\n var clipPaths = displayable.__clipPaths;\n var keyDuplicateCount = this._keyDuplicateCount;\n var clipPathKey = generateClipPathsKey(clipPaths);\n if (isClipPathChanged(clipPaths, prevDisplayable && prevDisplayable.__clipPaths)) {\n keyDuplicateCount[clipPathKey] = keyDuplicateCount[clipPathKey] || 0;\n keyDuplicateCount[clipPathKey] && (clipPathKey += '-' + keyDuplicateCount[clipPathKey]);\n keyDuplicateCount[clipPathKey]++;\n }\n return this._refGroups[clipPathKey]\n || (this._refGroups[clipPathKey] = this.createElement('g'));\n };\n ClippathManager.prototype.update = function (displayable, prevDisplayable) {\n var clipGroup = this._getClipPathGroup(displayable, prevDisplayable);\n if (clipGroup) {\n this.markDomUsed(clipGroup);\n this.updateDom(clipGroup, displayable.__clipPaths);\n }\n return clipGroup;\n };\n ;\n ClippathManager.prototype.updateDom = function (parentEl, clipPaths) {\n if (clipPaths && clipPaths.length > 0) {\n var defs = this.getDefs(true);\n var clipPath = clipPaths[0];\n var clipPathEl = void 0;\n var id = void 0;\n if (clipPath._dom) {\n id = clipPath._dom.getAttribute('id');\n clipPathEl = clipPath._dom;\n if (!defs.contains(clipPathEl)) {\n defs.appendChild(clipPathEl);\n }\n }\n else {\n id = 'zr' + this._zrId + '-clip-' + this.nextId;\n ++this.nextId;\n clipPathEl = this.createElement('clipPath');\n clipPathEl.setAttribute('id', id);\n defs.appendChild(clipPathEl);\n clipPath._dom = clipPathEl;\n }\n var svgProxy = this.getSvgProxy(clipPath);\n svgProxy.brush(clipPath);\n var pathEl = this.getSvgElement(clipPath);\n clipPathEl.innerHTML = '';\n clipPathEl.appendChild(pathEl);\n parentEl.setAttribute('clip-path', 'url(#' + id + ')');\n if (clipPaths.length > 1) {\n this.updateDom(clipPathEl, clipPaths.slice(1));\n }\n }\n else {\n if (parentEl) {\n parentEl.setAttribute('clip-path', 'none');\n }\n }\n };\n ;\n ClippathManager.prototype.markUsed = function (displayable) {\n var _this = this;\n if (displayable.__clipPaths) {\n zrUtil.each(displayable.__clipPaths, function (clipPath) {\n if (clipPath._dom) {\n _super.prototype.markDomUsed.call(_this, clipPath._dom);\n }\n });\n }\n };\n ;\n ClippathManager.prototype.removeUnused = function () {\n _super.prototype.removeUnused.call(this);\n var newRefGroupsMap = {};\n for (var key in this._refGroups) {\n var group = this._refGroups[key];\n if (!this.isDomUnused(group)) {\n newRefGroupsMap[key] = group;\n }\n else if (group.parentNode) {\n group.parentNode.removeChild(group);\n }\n }\n this._refGroups = newRefGroupsMap;\n };\n return ClippathManager;\n}(Definable));\nexport default ClippathManager;\n","import { __extends } from \"tslib\";\nimport Definable from './Definable';\nvar ShadowManager = (function (_super) {\n __extends(ShadowManager, _super);\n function ShadowManager(zrId, svgRoot) {\n var _this = _super.call(this, zrId, svgRoot, ['filter'], '__filter_in_use__', '_shadowDom') || this;\n _this._shadowDomMap = {};\n _this._shadowDomPool = [];\n return _this;\n }\n ShadowManager.prototype._getFromPool = function () {\n var shadowDom = this._shadowDomPool.pop();\n if (!shadowDom) {\n shadowDom = this.createElement('filter');\n shadowDom.setAttribute('id', 'zr' + this._zrId + '-shadow-' + this.nextId++);\n var domChild = this.createElement('feDropShadow');\n shadowDom.appendChild(domChild);\n this.addDom(shadowDom);\n }\n return shadowDom;\n };\n ShadowManager.prototype.update = function (svgElement, displayable) {\n var style = displayable.style;\n if (hasShadow(style)) {\n var shadowKey = getShadowKey(displayable);\n var shadowDom = displayable._shadowDom = this._shadowDomMap[shadowKey];\n if (!shadowDom) {\n shadowDom = this._getFromPool();\n this._shadowDomMap[shadowKey] = shadowDom;\n }\n this.updateDom(svgElement, displayable, shadowDom);\n }\n else {\n this.remove(svgElement, displayable);\n }\n };\n ShadowManager.prototype.remove = function (svgElement, displayable) {\n if (displayable._shadowDom != null) {\n displayable._shadowDom = null;\n svgElement.style.filter = '';\n }\n };\n ShadowManager.prototype.updateDom = function (svgElement, displayable, shadowDom) {\n var domChild = shadowDom.children[0];\n var style = displayable.style;\n var globalScale = displayable.getGlobalScale();\n var scaleX = globalScale[0];\n var scaleY = globalScale[1];\n if (!scaleX || !scaleY) {\n return;\n }\n var offsetX = style.shadowOffsetX || 0;\n var offsetY = style.shadowOffsetY || 0;\n var blur = style.shadowBlur;\n var color = style.shadowColor;\n domChild.setAttribute('dx', offsetX / scaleX + '');\n domChild.setAttribute('dy', offsetY / scaleY + '');\n domChild.setAttribute('flood-color', color);\n var stdDx = blur / 2 / scaleX;\n var stdDy = blur / 2 / scaleY;\n var stdDeviation = stdDx + ' ' + stdDy;\n domChild.setAttribute('stdDeviation', stdDeviation);\n shadowDom.setAttribute('x', '-100%');\n shadowDom.setAttribute('y', '-100%');\n shadowDom.setAttribute('width', '300%');\n shadowDom.setAttribute('height', '300%');\n displayable._shadowDom = shadowDom;\n var id = shadowDom.getAttribute('id');\n svgElement.style.filter = 'url(#' + id + ')';\n };\n ShadowManager.prototype.removeUnused = function () {\n var defs = this.getDefs(false);\n if (!defs) {\n return;\n }\n var shadowDomsPool = this._shadowDomPool;\n for (var key in this._shadowDomMap) {\n var dom = this._shadowDomMap[key];\n shadowDomsPool.push(dom);\n }\n this._shadowDomMap = {};\n };\n return ShadowManager;\n}(Definable));\nexport default ShadowManager;\nfunction hasShadow(style) {\n return style\n && (style.shadowBlur || style.shadowOffsetX || style.shadowOffsetY);\n}\nfunction getShadowKey(displayable) {\n var style = displayable.style;\n var globalScale = displayable.getGlobalScale();\n return [\n style.shadowColor,\n (style.shadowBlur || 0).toFixed(2),\n (style.shadowOffsetX || 0).toFixed(2),\n (style.shadowOffsetY || 0).toFixed(2),\n globalScale[0],\n globalScale[1]\n ].join(',');\n}\n","import { createElement } from './core';\nimport * as util from '../core/util';\nimport Path from '../graphic/Path';\nimport ZRImage from '../graphic/Image';\nimport TSpan from '../graphic/TSpan';\nimport arrayDiff from '../core/arrayDiff';\nimport GradientManager from './helper/GradientManager';\nimport PatternManager from './helper/PatternManager';\nimport ClippathManager, { hasClipPath } from './helper/ClippathManager';\nimport ShadowManager from './helper/ShadowManager';\nimport { path as svgPath, image as svgImage, text as svgText } from './graphic';\nfunction parseInt10(val) {\n return parseInt(val, 10);\n}\nfunction getSvgProxy(el) {\n if (el instanceof Path) {\n return svgPath;\n }\n else if (el instanceof ZRImage) {\n return svgImage;\n }\n else if (el instanceof TSpan) {\n return svgText;\n }\n else {\n return svgPath;\n }\n}\nfunction checkParentAvailable(parent, child) {\n return child && parent && child.parentNode !== parent;\n}\nfunction insertAfter(parent, child, prevSibling) {\n if (checkParentAvailable(parent, child) && prevSibling) {\n var nextSibling = prevSibling.nextSibling;\n nextSibling ? parent.insertBefore(child, nextSibling)\n : parent.appendChild(child);\n }\n}\nfunction prepend(parent, child) {\n if (checkParentAvailable(parent, child)) {\n var firstChild = parent.firstChild;\n firstChild ? parent.insertBefore(child, firstChild)\n : parent.appendChild(child);\n }\n}\nfunction remove(parent, child) {\n if (child && parent && child.parentNode === parent) {\n parent.removeChild(child);\n }\n}\nfunction removeFromMyParent(child) {\n if (child && child.parentNode) {\n child.parentNode.removeChild(child);\n }\n}\nfunction getSvgElement(displayable) {\n return displayable.__svgEl;\n}\nvar SVGPainter = (function () {\n function SVGPainter(root, storage, opts, zrId) {\n this.type = 'svg';\n this.refreshHover = createMethodNotSupport('refreshHover');\n this.pathToImage = createMethodNotSupport('pathToImage');\n this.configLayer = createMethodNotSupport('configLayer');\n this.root = root;\n this.storage = storage;\n this._opts = opts = util.extend({}, opts || {});\n var svgDom = createElement('svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns', 'http://www.w3.org/2000/svg');\n svgDom.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDom.setAttribute('version', '1.1');\n svgDom.setAttribute('baseProfile', 'full');\n svgDom.style.cssText = 'user-select:none;position:absolute;left:0;top:0;';\n var bgRoot = createElement('g');\n svgDom.appendChild(bgRoot);\n var svgRoot = createElement('g');\n svgDom.appendChild(svgRoot);\n this._gradientManager = new GradientManager(zrId, svgRoot);\n this._patternManager = new PatternManager(zrId, svgRoot);\n this._clipPathManager = new ClippathManager(zrId, svgRoot);\n this._shadowManager = new ShadowManager(zrId, svgRoot);\n var viewport = document.createElement('div');\n viewport.style.cssText = 'overflow:hidden;position:relative';\n this._svgDom = svgDom;\n this._svgRoot = svgRoot;\n this._backgroundRoot = bgRoot;\n this._viewport = viewport;\n root.appendChild(viewport);\n viewport.appendChild(svgDom);\n this.resize(opts.width, opts.height);\n this._visibleList = [];\n }\n SVGPainter.prototype.getType = function () {\n return 'svg';\n };\n SVGPainter.prototype.getViewportRoot = function () {\n return this._viewport;\n };\n SVGPainter.prototype.getSvgDom = function () {\n return this._svgDom;\n };\n SVGPainter.prototype.getSvgRoot = function () {\n return this._svgRoot;\n };\n SVGPainter.prototype.getViewportRootOffset = function () {\n var viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n };\n SVGPainter.prototype.refresh = function () {\n var list = this.storage.getDisplayList(true);\n this._paintList(list);\n };\n SVGPainter.prototype.setBackgroundColor = function (backgroundColor) {\n if (this._backgroundRoot && this._backgroundNode) {\n this._backgroundRoot.removeChild(this._backgroundNode);\n }\n var bgNode = createElement('rect');\n bgNode.setAttribute('width', this.getWidth());\n bgNode.setAttribute('height', this.getHeight());\n bgNode.setAttribute('x', 0);\n bgNode.setAttribute('y', 0);\n bgNode.setAttribute('id', 0);\n bgNode.style.fill = backgroundColor;\n this._backgroundRoot.appendChild(bgNode);\n this._backgroundNode = bgNode;\n };\n SVGPainter.prototype.createSVGElement = function (tag) {\n return createElement(tag);\n };\n SVGPainter.prototype.paintOne = function (el) {\n var svgProxy = getSvgProxy(el);\n svgProxy && svgProxy.brush(el);\n return getSvgElement(el);\n };\n SVGPainter.prototype._paintList = function (list) {\n var gradientManager = this._gradientManager;\n var patternManager = this._patternManager;\n var clipPathManager = this._clipPathManager;\n var shadowManager = this._shadowManager;\n gradientManager.markAllUnused();\n patternManager.markAllUnused();\n clipPathManager.markAllUnused();\n shadowManager.markAllUnused();\n var svgRoot = this._svgRoot;\n var visibleList = this._visibleList;\n var listLen = list.length;\n var newVisibleList = [];\n for (var i = 0; i < listLen; i++) {\n var displayable = list[i];\n var svgProxy = getSvgProxy(displayable);\n var svgElement = getSvgElement(displayable);\n if (!displayable.invisible) {\n if (displayable.__dirty || !svgElement) {\n svgProxy && svgProxy.brush(displayable);\n svgElement = getSvgElement(displayable);\n if (svgElement && displayable.style) {\n gradientManager.update(displayable.style.fill);\n gradientManager.update(displayable.style.stroke);\n patternManager.update(displayable.style.fill);\n patternManager.update(displayable.style.stroke);\n shadowManager.update(svgElement, displayable);\n }\n displayable.__dirty = 0;\n }\n if (svgElement) {\n newVisibleList.push(displayable);\n }\n }\n }\n var diff = arrayDiff(visibleList, newVisibleList);\n var prevSvgElement;\n var topPrevSvgElement;\n for (var i = 0; i < diff.length; i++) {\n var item = diff[i];\n if (item.removed) {\n for (var k = 0; k < item.count; k++) {\n var displayable = visibleList[item.indices[k]];\n var svgElement = getSvgElement(displayable);\n hasClipPath(displayable) ? removeFromMyParent(svgElement)\n : remove(svgRoot, svgElement);\n }\n }\n }\n var prevDisplayable;\n var currentClipGroup;\n for (var i = 0; i < diff.length; i++) {\n var item = diff[i];\n if (item.removed) {\n continue;\n }\n for (var k = 0; k < item.count; k++) {\n var displayable = newVisibleList[item.indices[k]];\n var clipGroup = clipPathManager.update(displayable, prevDisplayable);\n if (clipGroup !== currentClipGroup) {\n prevSvgElement = topPrevSvgElement;\n if (clipGroup) {\n prevSvgElement ? insertAfter(svgRoot, clipGroup, prevSvgElement)\n : prepend(svgRoot, clipGroup);\n topPrevSvgElement = clipGroup;\n prevSvgElement = null;\n }\n currentClipGroup = clipGroup;\n }\n var svgElement = getSvgElement(displayable);\n prevSvgElement\n ? insertAfter(currentClipGroup || svgRoot, svgElement, prevSvgElement)\n : prepend(currentClipGroup || svgRoot, svgElement);\n prevSvgElement = svgElement || prevSvgElement;\n if (!currentClipGroup) {\n topPrevSvgElement = prevSvgElement;\n }\n gradientManager.markUsed(displayable);\n gradientManager.addWithoutUpdate(svgElement, displayable);\n patternManager.markUsed(displayable);\n patternManager.addWithoutUpdate(svgElement, displayable);\n clipPathManager.markUsed(displayable);\n prevDisplayable = displayable;\n }\n }\n gradientManager.removeUnused();\n patternManager.removeUnused();\n clipPathManager.removeUnused();\n shadowManager.removeUnused();\n this._visibleList = newVisibleList;\n };\n SVGPainter.prototype.resize = function (width, height) {\n var viewport = this._viewport;\n viewport.style.display = 'none';\n var opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n width = this._getSize(0);\n height = this._getSize(1);\n viewport.style.display = '';\n if (this._width !== width || this._height !== height) {\n this._width = width;\n this._height = height;\n var viewportStyle = viewport.style;\n viewportStyle.width = width + 'px';\n viewportStyle.height = height + 'px';\n var svgRoot = this._svgDom;\n svgRoot.setAttribute('width', width + '');\n svgRoot.setAttribute('height', height + '');\n }\n if (this._backgroundNode) {\n this._backgroundNode.setAttribute('width', width);\n this._backgroundNode.setAttribute('height', height);\n }\n };\n SVGPainter.prototype.getWidth = function () {\n return this._width;\n };\n SVGPainter.prototype.getHeight = function () {\n return this._height;\n };\n SVGPainter.prototype._getSize = function (whIdx) {\n var opts = this._opts;\n var wh = ['width', 'height'][whIdx];\n var cwh = ['clientWidth', 'clientHeight'][whIdx];\n var plt = ['paddingLeft', 'paddingTop'][whIdx];\n var prb = ['paddingRight', 'paddingBottom'][whIdx];\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh]);\n }\n var root = this.root;\n var stl = document.defaultView.getComputedStyle(root);\n return ((root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)) | 0;\n };\n SVGPainter.prototype.dispose = function () {\n this.root.innerHTML = '';\n this._svgRoot\n = this._backgroundRoot\n = this._svgDom\n = this._backgroundNode\n = this._viewport\n = this.storage\n = null;\n };\n SVGPainter.prototype.clear = function () {\n var viewportNode = this._viewport;\n if (viewportNode && viewportNode.parentNode) {\n viewportNode.parentNode.removeChild(viewportNode);\n }\n };\n SVGPainter.prototype.toDataURL = function () {\n this.refresh();\n var svgDom = this._svgDom;\n var outerHTML = svgDom.outerHTML\n || (svgDom.parentNode && svgDom.parentNode).innerHTML;\n var html = encodeURIComponent(outerHTML.replace(/>\\n\\r<'));\n return 'data:image/svg+xml;charset=UTF-8,' + html;\n };\n return SVGPainter;\n}());\nfunction createMethodNotSupport(method) {\n return function () {\n util.logError('In SVG mode painter not support method \"' + method + '\"');\n };\n}\nexport default SVGPainter;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SVGPainter from 'zrender/lib/svg/Painter';\nexport function install(registers) {\n registers.registerPainter('svg', SVGPainter);\n}","import { __extends } from \"tslib\";\nimport * as util from '../core/util';\nimport { devicePixelRatio } from '../config';\nimport Eventful from '../core/Eventful';\nimport { getCanvasGradient } from './helper';\nimport { createCanvasPattern } from './graphic';\nimport BoundingRect from '../core/BoundingRect';\nimport { REDARAW_BIT } from '../graphic/constants';\nfunction returnFalse() {\n return false;\n}\nfunction createDom(id, painter, dpr) {\n var newDom = util.createCanvas();\n var width = painter.getWidth();\n var height = painter.getHeight();\n var newDomStyle = newDom.style;\n if (newDomStyle) {\n newDomStyle.position = 'absolute';\n newDomStyle.left = '0';\n newDomStyle.top = '0';\n newDomStyle.width = width + 'px';\n newDomStyle.height = height + 'px';\n newDom.setAttribute('data-zr-dom-id', id);\n }\n newDom.width = width * dpr;\n newDom.height = height * dpr;\n return newDom;\n}\n;\nvar Layer = (function (_super) {\n __extends(Layer, _super);\n function Layer(id, painter, dpr) {\n var _this = _super.call(this) || this;\n _this.motionBlur = false;\n _this.lastFrameAlpha = 0.7;\n _this.dpr = 1;\n _this.virtual = false;\n _this.config = {};\n _this.incremental = false;\n _this.zlevel = 0;\n _this.maxRepaintRectCount = 5;\n _this.__dirty = true;\n _this.__firstTimePaint = true;\n _this.__used = false;\n _this.__drawIndex = 0;\n _this.__startIndex = 0;\n _this.__endIndex = 0;\n _this.__prevStartIndex = null;\n _this.__prevEndIndex = null;\n var dom;\n dpr = dpr || devicePixelRatio;\n if (typeof id === 'string') {\n dom = createDom(id, painter, dpr);\n }\n else if (util.isObject(id)) {\n dom = id;\n id = dom.id;\n }\n _this.id = id;\n _this.dom = dom;\n var domStyle = dom.style;\n if (domStyle) {\n dom.onselectstart = returnFalse;\n domStyle.webkitUserSelect = 'none';\n domStyle.userSelect = 'none';\n domStyle.webkitTapHighlightColor = 'rgba(0,0,0,0)';\n domStyle['-webkit-touch-callout'] = 'none';\n domStyle.padding = '0';\n domStyle.margin = '0';\n domStyle.borderWidth = '0';\n }\n _this.domBack = null;\n _this.ctxBack = null;\n _this.painter = painter;\n _this.config = null;\n _this.dpr = dpr;\n return _this;\n }\n Layer.prototype.getElementCount = function () {\n return this.__endIndex - this.__startIndex;\n };\n Layer.prototype.afterBrush = function () {\n this.__prevStartIndex = this.__startIndex;\n this.__prevEndIndex = this.__endIndex;\n };\n Layer.prototype.initContext = function () {\n this.ctx = this.dom.getContext('2d');\n this.ctx.dpr = this.dpr;\n };\n Layer.prototype.setUnpainted = function () {\n this.__firstTimePaint = true;\n };\n Layer.prototype.createBackBuffer = function () {\n var dpr = this.dpr;\n this.domBack = createDom('back-' + this.id, this.painter, dpr);\n this.ctxBack = this.domBack.getContext('2d');\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n };\n Layer.prototype.createRepaintRects = function (displayList, prevList, viewWidth, viewHeight) {\n if (this.__firstTimePaint) {\n this.__firstTimePaint = false;\n return null;\n }\n var mergedRepaintRects = [];\n var maxRepaintRectCount = this.maxRepaintRectCount;\n var full = false;\n var pendingRect = new BoundingRect(0, 0, 0, 0);\n function addRectToMergePool(rect) {\n if (!rect.isFinite() || rect.isZero()) {\n return;\n }\n if (mergedRepaintRects.length === 0) {\n var boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n else {\n var isMerged = false;\n var minDeltaArea = Infinity;\n var bestRectToMergeIdx = 0;\n for (var i = 0; i < mergedRepaintRects.length; ++i) {\n var mergedRect = mergedRepaintRects[i];\n if (mergedRect.intersect(rect)) {\n var pendingRect_1 = new BoundingRect(0, 0, 0, 0);\n pendingRect_1.copy(mergedRect);\n pendingRect_1.union(rect);\n mergedRepaintRects[i] = pendingRect_1;\n isMerged = true;\n break;\n }\n else if (full) {\n pendingRect.copy(rect);\n pendingRect.union(mergedRect);\n var aArea = rect.width * rect.height;\n var bArea = mergedRect.width * mergedRect.height;\n var pendingArea = pendingRect.width * pendingRect.height;\n var deltaArea = pendingArea - aArea - bArea;\n if (deltaArea < minDeltaArea) {\n minDeltaArea = deltaArea;\n bestRectToMergeIdx = i;\n }\n }\n }\n if (full) {\n mergedRepaintRects[bestRectToMergeIdx].union(rect);\n isMerged = true;\n }\n if (!isMerged) {\n var boundingRect = new BoundingRect(0, 0, 0, 0);\n boundingRect.copy(rect);\n mergedRepaintRects.push(boundingRect);\n }\n if (!full) {\n full = mergedRepaintRects.length >= maxRepaintRectCount;\n }\n }\n }\n for (var i = this.__startIndex; i < this.__endIndex; ++i) {\n var el = displayList[i];\n if (el) {\n var shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n var prevRect = el.__isRendered && ((el.__dirty & REDARAW_BIT) || !shouldPaint)\n ? el.getPrevPaintRect()\n : null;\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n var curRect = shouldPaint && ((el.__dirty & REDARAW_BIT) || !el.__isRendered)\n ? el.getPaintRect()\n : null;\n if (curRect) {\n addRectToMergePool(curRect);\n }\n }\n }\n for (var i = this.__prevStartIndex; i < this.__prevEndIndex; ++i) {\n var el = prevList[i];\n var shouldPaint = el.shouldBePainted(viewWidth, viewHeight, true, true);\n if (el && (!shouldPaint || !el.__zr) && el.__isRendered) {\n var prevRect = el.getPrevPaintRect();\n if (prevRect) {\n addRectToMergePool(prevRect);\n }\n }\n }\n var hasIntersections;\n do {\n hasIntersections = false;\n for (var i = 0; i < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].isZero()) {\n mergedRepaintRects.splice(i, 1);\n continue;\n }\n for (var j = i + 1; j < mergedRepaintRects.length;) {\n if (mergedRepaintRects[i].intersect(mergedRepaintRects[j])) {\n hasIntersections = true;\n mergedRepaintRects[i].union(mergedRepaintRects[j]);\n mergedRepaintRects.splice(j, 1);\n }\n else {\n j++;\n }\n }\n i++;\n }\n } while (hasIntersections);\n this._paintRects = mergedRepaintRects;\n return mergedRepaintRects;\n };\n Layer.prototype.debugGetPaintRects = function () {\n return (this._paintRects || []).slice();\n };\n Layer.prototype.resize = function (width, height) {\n var dpr = this.dpr;\n var dom = this.dom;\n var domStyle = dom.style;\n var domBack = this.domBack;\n if (domStyle) {\n domStyle.width = width + 'px';\n domStyle.height = height + 'px';\n }\n dom.width = width * dpr;\n dom.height = height * dpr;\n if (domBack) {\n domBack.width = width * dpr;\n domBack.height = height * dpr;\n if (dpr !== 1) {\n this.ctxBack.scale(dpr, dpr);\n }\n }\n };\n Layer.prototype.clear = function (clearAll, clearColor, repaintRects) {\n var dom = this.dom;\n var ctx = this.ctx;\n var width = dom.width;\n var height = dom.height;\n clearColor = clearColor || this.clearColor;\n var haveMotionBLur = this.motionBlur && !clearAll;\n var lastFrameAlpha = this.lastFrameAlpha;\n var dpr = this.dpr;\n var self = this;\n if (haveMotionBLur) {\n if (!this.domBack) {\n this.createBackBuffer();\n }\n this.ctxBack.globalCompositeOperation = 'copy';\n this.ctxBack.drawImage(dom, 0, 0, width / dpr, height / dpr);\n }\n var domBack = this.domBack;\n function doClear(x, y, width, height) {\n ctx.clearRect(x, y, width, height);\n if (clearColor && clearColor !== 'transparent') {\n var clearColorGradientOrPattern = void 0;\n if (util.isGradientObject(clearColor)) {\n clearColorGradientOrPattern = clearColor.__canvasGradient\n || getCanvasGradient(ctx, clearColor, {\n x: 0,\n y: 0,\n width: width,\n height: height\n });\n clearColor.__canvasGradient = clearColorGradientOrPattern;\n }\n else if (util.isImagePatternObject(clearColor)) {\n clearColorGradientOrPattern = createCanvasPattern(ctx, clearColor, {\n dirty: function () {\n self.setUnpainted();\n self.__painter.refresh();\n }\n });\n }\n ctx.save();\n ctx.fillStyle = clearColorGradientOrPattern || clearColor;\n ctx.fillRect(x, y, width, height);\n ctx.restore();\n }\n if (haveMotionBLur) {\n ctx.save();\n ctx.globalAlpha = lastFrameAlpha;\n ctx.drawImage(domBack, x, y, width, height);\n ctx.restore();\n }\n }\n ;\n if (!repaintRects || haveMotionBLur) {\n doClear(0, 0, width, height);\n }\n else if (repaintRects.length) {\n util.each(repaintRects, function (rect) {\n doClear(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);\n });\n }\n };\n return Layer;\n}(Eventful));\nexport default Layer;\n","import { devicePixelRatio } from '../config';\nimport * as util from '../core/util';\nimport Layer from './Layer';\nimport requestAnimationFrame from '../animation/requestAnimationFrame';\nimport ZRImage from '../graphic/Image';\nimport env from '../core/env';\nimport { brush, brushSingle } from './graphic';\nimport { REDARAW_BIT } from '../graphic/constants';\nvar HOVER_LAYER_ZLEVEL = 1e5;\nvar CANVAS_ZLEVEL = 314159;\nvar EL_AFTER_INCREMENTAL_INC = 0.01;\nvar INCREMENTAL_INC = 0.001;\nfunction parseInt10(val) {\n return parseInt(val, 10);\n}\nfunction isLayerValid(layer) {\n if (!layer) {\n return false;\n }\n if (layer.__builtin__) {\n return true;\n }\n if (typeof (layer.resize) !== 'function'\n || typeof (layer.refresh) !== 'function') {\n return false;\n }\n return true;\n}\nfunction createRoot(width, height) {\n var domRoot = document.createElement('div');\n domRoot.style.cssText = [\n 'position:relative',\n 'width:' + width + 'px',\n 'height:' + height + 'px',\n 'padding:0',\n 'margin:0',\n 'border-width:0'\n ].join(';') + ';';\n return domRoot;\n}\nvar CanvasPainter = (function () {\n function CanvasPainter(root, storage, opts, id) {\n this.type = 'canvas';\n this._zlevelList = [];\n this._prevDisplayList = [];\n this._layers = {};\n this._layerConfig = {};\n this._needsManuallyCompositing = false;\n this.type = 'canvas';\n var singleCanvas = !root.nodeName\n || root.nodeName.toUpperCase() === 'CANVAS';\n this._opts = opts = util.extend({}, opts || {});\n this.dpr = opts.devicePixelRatio || devicePixelRatio;\n this._singleCanvas = singleCanvas;\n this.root = root;\n var rootStyle = root.style;\n if (rootStyle) {\n rootStyle.webkitTapHighlightColor = 'transparent';\n rootStyle.webkitUserSelect = 'none';\n rootStyle.userSelect = 'none';\n rootStyle['-webkit-touch-callout'] = 'none';\n root.innerHTML = '';\n }\n this.storage = storage;\n var zlevelList = this._zlevelList;\n this._prevDisplayList = [];\n var layers = this._layers;\n if (!singleCanvas) {\n this._width = this._getSize(0);\n this._height = this._getSize(1);\n var domRoot = this._domRoot = createRoot(this._width, this._height);\n root.appendChild(domRoot);\n }\n else {\n var rootCanvas = root;\n var width = rootCanvas.width;\n var height = rootCanvas.height;\n if (opts.width != null) {\n width = opts.width;\n }\n if (opts.height != null) {\n height = opts.height;\n }\n this.dpr = opts.devicePixelRatio || 1;\n rootCanvas.width = width * this.dpr;\n rootCanvas.height = height * this.dpr;\n this._width = width;\n this._height = height;\n var mainLayer = new Layer(rootCanvas, this, this.dpr);\n mainLayer.__builtin__ = true;\n mainLayer.initContext();\n layers[CANVAS_ZLEVEL] = mainLayer;\n mainLayer.zlevel = CANVAS_ZLEVEL;\n zlevelList.push(CANVAS_ZLEVEL);\n this._domRoot = root;\n }\n }\n CanvasPainter.prototype.getType = function () {\n return 'canvas';\n };\n CanvasPainter.prototype.isSingleCanvas = function () {\n return this._singleCanvas;\n };\n CanvasPainter.prototype.getViewportRoot = function () {\n return this._domRoot;\n };\n CanvasPainter.prototype.getViewportRootOffset = function () {\n var viewportRoot = this.getViewportRoot();\n if (viewportRoot) {\n return {\n offsetLeft: viewportRoot.offsetLeft || 0,\n offsetTop: viewportRoot.offsetTop || 0\n };\n }\n };\n CanvasPainter.prototype.refresh = function (paintAll) {\n var list = this.storage.getDisplayList(true);\n var prevList = this._prevDisplayList;\n var zlevelList = this._zlevelList;\n this._redrawId = Math.random();\n this._paintList(list, prevList, paintAll, this._redrawId);\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (!layer.__builtin__ && layer.refresh) {\n var clearColor = i === 0 ? this._backgroundColor : null;\n layer.refresh(clearColor);\n }\n }\n if (this._opts.useDirtyRect) {\n this._prevDisplayList = list.slice();\n }\n return this;\n };\n CanvasPainter.prototype.refreshHover = function () {\n this._paintHoverList(this.storage.getDisplayList(false));\n };\n CanvasPainter.prototype._paintHoverList = function (list) {\n var len = list.length;\n var hoverLayer = this._hoverlayer;\n hoverLayer && hoverLayer.clear();\n if (!len) {\n return;\n }\n var scope = {\n inHover: true,\n viewWidth: this._width,\n viewHeight: this._height\n };\n var ctx;\n for (var i = 0; i < len; i++) {\n var el = list[i];\n if (el.__inHover) {\n if (!hoverLayer) {\n hoverLayer = this._hoverlayer = this.getLayer(HOVER_LAYER_ZLEVEL);\n }\n if (!ctx) {\n ctx = hoverLayer.ctx;\n ctx.save();\n }\n brush(ctx, el, scope, i === len - 1);\n }\n }\n if (ctx) {\n ctx.restore();\n }\n };\n CanvasPainter.prototype.getHoverLayer = function () {\n return this.getLayer(HOVER_LAYER_ZLEVEL);\n };\n CanvasPainter.prototype.paintOne = function (ctx, el) {\n brushSingle(ctx, el);\n };\n CanvasPainter.prototype._paintList = function (list, prevList, paintAll, redrawId) {\n if (this._redrawId !== redrawId) {\n return;\n }\n paintAll = paintAll || false;\n this._updateLayerStatus(list);\n var _a = this._doPaintList(list, prevList, paintAll), finished = _a.finished, needsRefreshHover = _a.needsRefreshHover;\n if (this._needsManuallyCompositing) {\n this._compositeManually();\n }\n if (needsRefreshHover) {\n this._paintHoverList(list);\n }\n if (!finished) {\n var self_1 = this;\n requestAnimationFrame(function () {\n self_1._paintList(list, prevList, paintAll, redrawId);\n });\n }\n else {\n this.eachLayer(function (layer) {\n layer.afterBrush && layer.afterBrush();\n });\n }\n };\n CanvasPainter.prototype._compositeManually = function () {\n var ctx = this.getLayer(CANVAS_ZLEVEL).ctx;\n var width = this._domRoot.width;\n var height = this._domRoot.height;\n ctx.clearRect(0, 0, width, height);\n this.eachBuiltinLayer(function (layer) {\n if (layer.virtual) {\n ctx.drawImage(layer.dom, 0, 0, width, height);\n }\n });\n };\n CanvasPainter.prototype._doPaintList = function (list, prevList, paintAll) {\n var _this = this;\n var layerList = [];\n var useDirtyRect = this._opts.useDirtyRect;\n for (var zi = 0; zi < this._zlevelList.length; zi++) {\n var zlevel = this._zlevelList[zi];\n var layer = this._layers[zlevel];\n if (layer.__builtin__\n && layer !== this._hoverlayer\n && (layer.__dirty || paintAll)) {\n layerList.push(layer);\n }\n }\n var finished = true;\n var needsRefreshHover = false;\n var _loop_1 = function (k) {\n var layer = layerList[k];\n var ctx = layer.ctx;\n var repaintRects = useDirtyRect\n && layer.createRepaintRects(list, prevList, this_1._width, this_1._height);\n var start = paintAll ? layer.__startIndex : layer.__drawIndex;\n var useTimer = !paintAll && layer.incremental && Date.now;\n var startTime = useTimer && Date.now();\n var clearColor = layer.zlevel === this_1._zlevelList[0]\n ? this_1._backgroundColor : null;\n if (layer.__startIndex === layer.__endIndex) {\n layer.clear(false, clearColor, repaintRects);\n }\n else if (start === layer.__startIndex) {\n var firstEl = list[start];\n if (!firstEl.incremental || !firstEl.notClear || paintAll) {\n layer.clear(false, clearColor, repaintRects);\n }\n }\n if (start === -1) {\n console.error('For some unknown reason. drawIndex is -1');\n start = layer.__startIndex;\n }\n var i;\n var repaint = function (repaintRect) {\n var scope = {\n inHover: false,\n allClipped: false,\n prevEl: null,\n viewWidth: _this._width,\n viewHeight: _this._height\n };\n for (i = start; i < layer.__endIndex; i++) {\n var el = list[i];\n if (el.__inHover) {\n needsRefreshHover = true;\n }\n _this._doPaintEl(el, layer, useDirtyRect, repaintRect, scope, i === layer.__endIndex - 1);\n if (useTimer) {\n var dTime = Date.now() - startTime;\n if (dTime > 15) {\n break;\n }\n }\n }\n if (scope.prevElClipPaths) {\n ctx.restore();\n }\n };\n if (repaintRects) {\n if (repaintRects.length === 0) {\n i = layer.__endIndex;\n }\n else {\n var dpr = this_1.dpr;\n for (var r = 0; r < repaintRects.length; ++r) {\n var rect = repaintRects[r];\n ctx.save();\n ctx.beginPath();\n ctx.rect(rect.x * dpr, rect.y * dpr, rect.width * dpr, rect.height * dpr);\n ctx.clip();\n repaint(rect);\n ctx.restore();\n }\n }\n }\n else {\n ctx.save();\n repaint();\n ctx.restore();\n }\n layer.__drawIndex = i;\n if (layer.__drawIndex < layer.__endIndex) {\n finished = false;\n }\n };\n var this_1 = this;\n for (var k = 0; k < layerList.length; k++) {\n _loop_1(k);\n }\n if (env.wxa) {\n util.each(this._layers, function (layer) {\n if (layer && layer.ctx && layer.ctx.draw) {\n layer.ctx.draw();\n }\n });\n }\n return {\n finished: finished,\n needsRefreshHover: needsRefreshHover\n };\n };\n CanvasPainter.prototype._doPaintEl = function (el, currentLayer, useDirtyRect, repaintRect, scope, isLast) {\n var ctx = currentLayer.ctx;\n if (useDirtyRect) {\n var paintRect = el.getPaintRect();\n if (!repaintRect || paintRect && paintRect.intersect(repaintRect)) {\n brush(ctx, el, scope, isLast);\n el.setPrevPaintRect(paintRect);\n }\n }\n else {\n brush(ctx, el, scope, isLast);\n }\n };\n CanvasPainter.prototype.getLayer = function (zlevel, virtual) {\n if (this._singleCanvas && !this._needsManuallyCompositing) {\n zlevel = CANVAS_ZLEVEL;\n }\n var layer = this._layers[zlevel];\n if (!layer) {\n layer = new Layer('zr_' + zlevel, this, this.dpr);\n layer.zlevel = zlevel;\n layer.__builtin__ = true;\n if (this._layerConfig[zlevel]) {\n util.merge(layer, this._layerConfig[zlevel], true);\n }\n else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {\n util.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);\n }\n if (virtual) {\n layer.virtual = virtual;\n }\n this.insertLayer(zlevel, layer);\n layer.initContext();\n }\n return layer;\n };\n CanvasPainter.prototype.insertLayer = function (zlevel, layer) {\n var layersMap = this._layers;\n var zlevelList = this._zlevelList;\n var len = zlevelList.length;\n var domRoot = this._domRoot;\n var prevLayer = null;\n var i = -1;\n if (layersMap[zlevel]) {\n util.logError('ZLevel ' + zlevel + ' has been used already');\n return;\n }\n if (!isLayerValid(layer)) {\n util.logError('Layer of zlevel ' + zlevel + ' is not valid');\n return;\n }\n if (len > 0 && zlevel > zlevelList[0]) {\n for (i = 0; i < len - 1; i++) {\n if (zlevelList[i] < zlevel\n && zlevelList[i + 1] > zlevel) {\n break;\n }\n }\n prevLayer = layersMap[zlevelList[i]];\n }\n zlevelList.splice(i + 1, 0, zlevel);\n layersMap[zlevel] = layer;\n if (!layer.virtual) {\n if (prevLayer) {\n var prevDom = prevLayer.dom;\n if (prevDom.nextSibling) {\n domRoot.insertBefore(layer.dom, prevDom.nextSibling);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n else {\n if (domRoot.firstChild) {\n domRoot.insertBefore(layer.dom, domRoot.firstChild);\n }\n else {\n domRoot.appendChild(layer.dom);\n }\n }\n }\n layer.__painter = this;\n };\n CanvasPainter.prototype.eachLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n cb.call(context, this._layers[z], z);\n }\n };\n CanvasPainter.prototype.eachBuiltinLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n };\n CanvasPainter.prototype.eachOtherLayer = function (cb, context) {\n var zlevelList = this._zlevelList;\n for (var i = 0; i < zlevelList.length; i++) {\n var z = zlevelList[i];\n var layer = this._layers[z];\n if (!layer.__builtin__) {\n cb.call(context, layer, z);\n }\n }\n };\n CanvasPainter.prototype.getLayers = function () {\n return this._layers;\n };\n CanvasPainter.prototype._updateLayerStatus = function (list) {\n this.eachBuiltinLayer(function (layer, z) {\n layer.__dirty = layer.__used = false;\n });\n function updatePrevLayer(idx) {\n if (prevLayer) {\n if (prevLayer.__endIndex !== idx) {\n prevLayer.__dirty = true;\n }\n prevLayer.__endIndex = idx;\n }\n }\n if (this._singleCanvas) {\n for (var i_1 = 1; i_1 < list.length; i_1++) {\n var el = list[i_1];\n if (el.zlevel !== list[i_1 - 1].zlevel || el.incremental) {\n this._needsManuallyCompositing = true;\n break;\n }\n }\n }\n var prevLayer = null;\n var incrementalLayerCount = 0;\n var prevZlevel;\n var i;\n for (i = 0; i < list.length; i++) {\n var el = list[i];\n var zlevel = el.zlevel;\n var layer = void 0;\n if (prevZlevel !== zlevel) {\n prevZlevel = zlevel;\n incrementalLayerCount = 0;\n }\n if (el.incremental) {\n layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);\n layer.incremental = true;\n incrementalLayerCount = 1;\n }\n else {\n layer = this.getLayer(zlevel + (incrementalLayerCount > 0 ? EL_AFTER_INCREMENTAL_INC : 0), this._needsManuallyCompositing);\n }\n if (!layer.__builtin__) {\n util.logError('ZLevel ' + zlevel + ' has been used by unkown layer ' + layer.id);\n }\n if (layer !== prevLayer) {\n layer.__used = true;\n if (layer.__startIndex !== i) {\n layer.__dirty = true;\n }\n layer.__startIndex = i;\n if (!layer.incremental) {\n layer.__drawIndex = i;\n }\n else {\n layer.__drawIndex = -1;\n }\n updatePrevLayer(i);\n prevLayer = layer;\n }\n if ((el.__dirty & REDARAW_BIT) && !el.__inHover) {\n layer.__dirty = true;\n if (layer.incremental && layer.__drawIndex < 0) {\n layer.__drawIndex = i;\n }\n }\n }\n updatePrevLayer(i);\n this.eachBuiltinLayer(function (layer, z) {\n if (!layer.__used && layer.getElementCount() > 0) {\n layer.__dirty = true;\n layer.__startIndex = layer.__endIndex = layer.__drawIndex = 0;\n }\n if (layer.__dirty && layer.__drawIndex < 0) {\n layer.__drawIndex = layer.__startIndex;\n }\n });\n };\n CanvasPainter.prototype.clear = function () {\n this.eachBuiltinLayer(this._clearLayer);\n return this;\n };\n CanvasPainter.prototype._clearLayer = function (layer) {\n layer.clear();\n };\n CanvasPainter.prototype.setBackgroundColor = function (backgroundColor) {\n this._backgroundColor = backgroundColor;\n util.each(this._layers, function (layer) {\n layer.setUnpainted();\n });\n };\n CanvasPainter.prototype.configLayer = function (zlevel, config) {\n if (config) {\n var layerConfig = this._layerConfig;\n if (!layerConfig[zlevel]) {\n layerConfig[zlevel] = config;\n }\n else {\n util.merge(layerConfig[zlevel], config, true);\n }\n for (var i = 0; i < this._zlevelList.length; i++) {\n var _zlevel = this._zlevelList[i];\n if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {\n var layer = this._layers[_zlevel];\n util.merge(layer, layerConfig[zlevel], true);\n }\n }\n }\n };\n CanvasPainter.prototype.delLayer = function (zlevel) {\n var layers = this._layers;\n var zlevelList = this._zlevelList;\n var layer = layers[zlevel];\n if (!layer) {\n return;\n }\n layer.dom.parentNode.removeChild(layer.dom);\n delete layers[zlevel];\n zlevelList.splice(util.indexOf(zlevelList, zlevel), 1);\n };\n CanvasPainter.prototype.resize = function (width, height) {\n if (!this._domRoot.style) {\n if (width == null || height == null) {\n return;\n }\n this._width = width;\n this._height = height;\n this.getLayer(CANVAS_ZLEVEL).resize(width, height);\n }\n else {\n var domRoot = this._domRoot;\n domRoot.style.display = 'none';\n var opts = this._opts;\n width != null && (opts.width = width);\n height != null && (opts.height = height);\n width = this._getSize(0);\n height = this._getSize(1);\n domRoot.style.display = '';\n if (this._width !== width || height !== this._height) {\n domRoot.style.width = width + 'px';\n domRoot.style.height = height + 'px';\n for (var id in this._layers) {\n if (this._layers.hasOwnProperty(id)) {\n this._layers[id].resize(width, height);\n }\n }\n this.refresh(true);\n }\n this._width = width;\n this._height = height;\n }\n return this;\n };\n CanvasPainter.prototype.clearLayer = function (zlevel) {\n var layer = this._layers[zlevel];\n if (layer) {\n layer.clear();\n }\n };\n CanvasPainter.prototype.dispose = function () {\n this.root.innerHTML = '';\n this.root =\n this.storage =\n this._domRoot =\n this._layers = null;\n };\n CanvasPainter.prototype.getRenderedCanvas = function (opts) {\n opts = opts || {};\n if (this._singleCanvas && !this._compositeManually) {\n return this._layers[CANVAS_ZLEVEL].dom;\n }\n var imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);\n imageLayer.initContext();\n imageLayer.clear(false, opts.backgroundColor || this._backgroundColor);\n var ctx = imageLayer.ctx;\n if (opts.pixelRatio <= this.dpr) {\n this.refresh();\n var width_1 = imageLayer.dom.width;\n var height_1 = imageLayer.dom.height;\n this.eachLayer(function (layer) {\n if (layer.__builtin__) {\n ctx.drawImage(layer.dom, 0, 0, width_1, height_1);\n }\n else if (layer.renderToCanvas) {\n ctx.save();\n layer.renderToCanvas(ctx);\n ctx.restore();\n }\n });\n }\n else {\n var scope = {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n };\n var displayList = this.storage.getDisplayList(true);\n for (var i = 0, len = displayList.length; i < len; i++) {\n var el = displayList[i];\n brush(ctx, el, scope, i === len - 1);\n }\n }\n return imageLayer.dom;\n };\n CanvasPainter.prototype.getWidth = function () {\n return this._width;\n };\n CanvasPainter.prototype.getHeight = function () {\n return this._height;\n };\n CanvasPainter.prototype._getSize = function (whIdx) {\n var opts = this._opts;\n var wh = ['width', 'height'][whIdx];\n var cwh = ['clientWidth', 'clientHeight'][whIdx];\n var plt = ['paddingLeft', 'paddingTop'][whIdx];\n var prb = ['paddingRight', 'paddingBottom'][whIdx];\n if (opts[wh] != null && opts[wh] !== 'auto') {\n return parseFloat(opts[wh]);\n }\n var root = this.root;\n var stl = document.defaultView.getComputedStyle(root);\n return ((root[cwh] || parseInt10(stl[wh]) || parseInt10(root.style[wh]))\n - (parseInt10(stl[plt]) || 0)\n - (parseInt10(stl[prb]) || 0)) | 0;\n };\n CanvasPainter.prototype.pathToImage = function (path, dpr) {\n dpr = dpr || this.dpr;\n var canvas = document.createElement('canvas');\n var ctx = canvas.getContext('2d');\n var rect = path.getBoundingRect();\n var style = path.style;\n var shadowBlurSize = style.shadowBlur * dpr;\n var shadowOffsetX = style.shadowOffsetX * dpr;\n var shadowOffsetY = style.shadowOffsetY * dpr;\n var lineWidth = path.hasStroke() ? style.lineWidth : 0;\n var leftMargin = Math.max(lineWidth / 2, -shadowOffsetX + shadowBlurSize);\n var rightMargin = Math.max(lineWidth / 2, shadowOffsetX + shadowBlurSize);\n var topMargin = Math.max(lineWidth / 2, -shadowOffsetY + shadowBlurSize);\n var bottomMargin = Math.max(lineWidth / 2, shadowOffsetY + shadowBlurSize);\n var width = rect.width + leftMargin + rightMargin;\n var height = rect.height + topMargin + bottomMargin;\n canvas.width = width * dpr;\n canvas.height = height * dpr;\n ctx.scale(dpr, dpr);\n ctx.clearRect(0, 0, width, height);\n ctx.dpr = dpr;\n var pathTransform = {\n x: path.x,\n y: path.y,\n scaleX: path.scaleX,\n scaleY: path.scaleY,\n rotation: path.rotation,\n originX: path.originX,\n originY: path.originY\n };\n path.x = leftMargin - rect.x;\n path.y = topMargin - rect.y;\n path.rotation = 0;\n path.scaleX = 1;\n path.scaleY = 1;\n path.updateTransform();\n if (path) {\n brush(ctx, path, {\n inHover: false,\n viewWidth: this._width,\n viewHeight: this._height\n }, true);\n }\n var imgShape = new ZRImage({\n style: {\n x: 0,\n y: 0,\n image: canvas\n }\n });\n util.extend(path, pathTransform);\n return imgShape;\n };\n return CanvasPainter;\n}());\nexport default CanvasPainter;\n;\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CanvasPainter from 'zrender/lib/canvas/Painter';\nexport function install(registers) {\n registers.registerPainter('canvas', CanvasPainter);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\nimport { createSymbol } from '../../util/symbol';\nimport { Group } from '../../util/graphic';\n\nvar LineSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(LineSeriesModel, _super);\n\n function LineSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LineSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n LineSeriesModel.prototype.getInitialData = function (option) {\n if (process.env.NODE_ENV !== 'production') {\n var coordSys = option.coordinateSystem;\n\n if (coordSys !== 'polar' && coordSys !== 'cartesian2d') {\n throw new Error('Line not support coordinateSystem besides cartesian and polar');\n }\n }\n\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n LineSeriesModel.prototype.getLegendIcon = function (opt) {\n var group = new Group();\n var line = createSymbol('line', 0, opt.itemHeight / 2, opt.itemWidth, 0, opt.lineStyle.stroke, false);\n group.add(line);\n line.setStyle(opt.lineStyle);\n var visualType = this.getData().getVisual('symbol');\n var visualRotate = this.getData().getVisual('symbolRotate');\n var symbolType = visualType === 'none' ? 'circle' : visualType; // Symbol size is 80% when there is a line\n\n var size = opt.itemHeight * 0.8;\n var symbol = createSymbol(symbolType, (opt.itemWidth - size) / 2, (opt.itemHeight - size) / 2, size, size, opt.itemStyle.fill);\n group.add(symbol);\n symbol.setStyle(opt.itemStyle);\n var symbolRotate = opt.iconRotate === 'inherit' ? visualRotate : opt.iconRotate || 0;\n symbol.rotation = symbolRotate * Math.PI / 180;\n symbol.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symbolType.indexOf('empty') > -1) {\n symbol.style.stroke = symbol.style.fill;\n symbol.style.fill = '#fff';\n symbol.style.lineWidth = 2;\n }\n\n return group;\n };\n\n LineSeriesModel.type = 'series.line';\n LineSeriesModel.dependencies = ['grid', 'polar'];\n LineSeriesModel.defaultOption = {\n zlevel: 0,\n z: 3,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n clip: true,\n label: {\n position: 'top'\n },\n // itemStyle: {\n // },\n endLabel: {\n show: false,\n valueAnimation: true,\n distance: 8\n },\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n emphasis: {\n scale: true,\n lineStyle: {\n width: 'bolder'\n }\n },\n // areaStyle: {\n // origin of areaStyle. Valid values:\n // `'auto'/null/undefined`: from axisLine to data\n // `'start'`: from min to data\n // `'end'`: from data to max\n // origin: 'auto'\n // },\n // false, 'start', 'end', 'middle'\n step: false,\n // Disabled if step is true\n smooth: false,\n smoothMonotone: null,\n symbol: 'emptyCircle',\n symbolSize: 4,\n symbolRotate: null,\n showSymbol: true,\n // `false`: follow the label interval strategy.\n // `true`: show all symbols.\n // `'auto'`: If possible, show all symbols, otherwise\n // follow the label interval strategy.\n showAllSymbol: 'auto',\n // Whether to connect break point.\n connectNulls: false,\n // Sampling for large data. Can be: 'average', 'max', 'min', 'sum', 'lttb'.\n sampling: 'none',\n animationEasing: 'linear',\n // Disable progressive\n progressive: 0,\n hoverLayerThreshold: Infinity\n };\n return LineSeriesModel;\n}(SeriesModel);\n\nexport default LineSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { retrieveRawValue } from '../../data/helper/dataProvider';\nimport { isArray } from 'zrender/lib/core/util';\n/**\n * @return label string. Not null/undefined\n */\n\nexport function getDefaultLabel(data, dataIndex) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1)\n\n if (len === 1) {\n var rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\n return rawVal != null ? rawVal + '' : null;\n } else if (len) {\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\n }\n\n return vals.join(' ');\n }\n}\nexport function getDefaultInterpolatedLabel(data, interpolatedValue) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n\n if (!isArray(interpolatedValue)) {\n return interpolatedValue + '';\n }\n\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n var dimInfo = data.getDimensionInfo(labelDims[i]);\n\n if (dimInfo) {\n vals.push(interpolatedValue[dimInfo.index]);\n }\n }\n\n return vals.join(' ');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { createSymbol } from '../../util/symbol';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport { parsePercent } from '../../util/number';\nimport { getDefaultLabel } from './labelHelper';\nimport { extend, isArray, retrieve2 } from 'zrender/lib/core/util';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\n\nvar Symbol =\n/** @class */\nfunction (_super) {\n __extends(Symbol, _super);\n\n function Symbol(data, idx, seriesScope, opts) {\n var _this = _super.call(this) || this;\n\n _this.updateData(data, idx, seriesScope, opts);\n\n return _this;\n }\n\n Symbol.prototype._createSymbol = function (symbolType, data, idx, symbolSize, keepAspect) {\n // Remove paths created before\n this.removeAll(); // let symbolPath = createSymbol(\n // symbolType, -0.5, -0.5, 1, 1, color\n // );\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4150.\n\n var symbolPath = createSymbol(symbolType, -1, -1, 2, 2, null, keepAspect);\n symbolPath.attr({\n z2: 100,\n culling: true,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n }); // Rewrite drift method\n\n symbolPath.drift = driftSymbol;\n this._symbolType = symbolType;\n this.add(symbolPath);\n };\n /**\n * Stop animation\n * @param {boolean} toLastFrame\n */\n\n\n Symbol.prototype.stopSymbolAnimation = function (toLastFrame) {\n this.childAt(0).stopAnimation(null, toLastFrame);\n };\n /**\n * FIXME:\n * Caution: This method breaks the encapsulation of this module,\n * but it indeed brings convenience. So do not use the method\n * unless you detailedly know all the implements of `Symbol`,\n * especially animation.\n *\n * Get symbol path element.\n */\n\n\n Symbol.prototype.getSymbolPath = function () {\n return this.childAt(0);\n };\n /**\n * Highlight symbol\n */\n\n\n Symbol.prototype.highlight = function () {\n enterEmphasis(this.childAt(0));\n };\n /**\n * Downplay symbol\n */\n\n\n Symbol.prototype.downplay = function () {\n leaveEmphasis(this.childAt(0));\n };\n /**\n * @param {number} zlevel\n * @param {number} z\n */\n\n\n Symbol.prototype.setZ = function (zlevel, z) {\n var symbolPath = this.childAt(0);\n symbolPath.zlevel = zlevel;\n symbolPath.z = z;\n };\n\n Symbol.prototype.setDraggable = function (draggable) {\n var symbolPath = this.childAt(0);\n symbolPath.draggable = draggable;\n symbolPath.cursor = draggable ? 'move' : symbolPath.cursor;\n };\n /**\n * Update symbol properties\n */\n\n\n Symbol.prototype.updateData = function (data, idx, seriesScope, opts) {\n this.silent = false;\n var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n var seriesModel = data.hostModel;\n var symbolSize = Symbol.getSymbolSize(data, idx);\n var isInit = symbolType !== this._symbolType;\n var disableAnimation = opts && opts.disableAnimation;\n\n if (isInit) {\n var keepAspect = data.getItemVisual(idx, 'symbolKeepAspect');\n\n this._createSymbol(symbolType, data, idx, symbolSize, keepAspect);\n } else {\n var symbolPath = this.childAt(0);\n symbolPath.silent = false;\n var target = {\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2\n };\n disableAnimation ? symbolPath.attr(target) : graphic.updateProps(symbolPath, target, seriesModel, idx);\n }\n\n this._updateCommon(data, idx, symbolSize, seriesScope, opts);\n\n if (isInit) {\n var symbolPath = this.childAt(0);\n\n if (!disableAnimation) {\n var target = {\n scaleX: this._sizeX,\n scaleY: this._sizeY,\n style: {\n // Always fadeIn. Because it has fadeOut animation when symbol is removed..\n opacity: symbolPath.style.opacity\n }\n };\n symbolPath.scaleX = symbolPath.scaleY = 0;\n symbolPath.style.opacity = 0;\n graphic.initProps(symbolPath, target, seriesModel, idx);\n }\n }\n\n if (disableAnimation) {\n // Must stop remove animation manually if don't call initProps or updateProps.\n this.childAt(0).stopAnimation('remove');\n }\n\n this._seriesModel = seriesModel;\n };\n\n Symbol.prototype._updateCommon = function (data, idx, symbolSize, seriesScope, opts) {\n var symbolPath = this.childAt(0);\n var seriesModel = data.hostModel;\n var emphasisItemStyle;\n var blurItemStyle;\n var selectItemStyle;\n var focus;\n var blurScope;\n var labelStatesModels;\n var hoverScale;\n var cursorStyle;\n\n if (seriesScope) {\n emphasisItemStyle = seriesScope.emphasisItemStyle;\n blurItemStyle = seriesScope.blurItemStyle;\n selectItemStyle = seriesScope.selectItemStyle;\n focus = seriesScope.focus;\n blurScope = seriesScope.blurScope;\n labelStatesModels = seriesScope.labelStatesModels;\n hoverScale = seriesScope.hoverScale;\n cursorStyle = seriesScope.cursorStyle;\n }\n\n if (!seriesScope || data.hasItemOption) {\n var itemModel = seriesScope && seriesScope.itemModel ? seriesScope.itemModel : data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n emphasisItemStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n selectItemStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n blurItemStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n labelStatesModels = getLabelStatesModels(itemModel);\n hoverScale = emphasisModel.getShallow('scale');\n cursorStyle = itemModel.getShallow('cursor');\n }\n\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n symbolPath.attr('rotation', (symbolRotate || 0) * Math.PI / 180 || 0);\n var symbolOffset = data.getItemVisual(idx, 'symbolOffset') || 0;\n\n if (symbolOffset) {\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n symbolPath.x = parsePercent(symbolOffset[0], symbolSize[0]);\n symbolPath.y = parsePercent(retrieve2(symbolOffset[1], symbolOffset[0]) || 0, symbolSize[1]);\n }\n\n cursorStyle && symbolPath.attr('cursor', cursorStyle);\n var symbolStyle = data.getItemVisual(idx, 'style');\n var visualColor = symbolStyle.fill;\n\n if (symbolPath instanceof ZRImage) {\n var pathStyle = symbolPath.style;\n symbolPath.useStyle(extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolStyle));\n } else {\n if (symbolPath.__isEmptyBrush) {\n // fill and stroke will be swapped if it's empty.\n // So we cloned a new style to avoid it affecting the original style in visual storage.\n // TODO Better implementation. No empty logic!\n symbolPath.useStyle(extend({}, symbolStyle));\n } else {\n symbolPath.useStyle(symbolStyle);\n } // Disable decal because symbol scale will been applied on the decal.\n\n\n symbolPath.style.decal = null;\n symbolPath.setColor(visualColor, opts && opts.symbolInnerColor);\n symbolPath.style.strokeNoScale = true;\n }\n\n var liftZ = data.getItemVisual(idx, 'liftZ');\n var z2Origin = this._z2;\n\n if (liftZ != null) {\n if (z2Origin == null) {\n this._z2 = symbolPath.z2;\n symbolPath.z2 += liftZ;\n }\n } else if (z2Origin != null) {\n symbolPath.z2 = z2Origin;\n this._z2 = null;\n }\n\n var useNameLabel = opts && opts.useNameLabel;\n setLabelStyle(symbolPath, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultText: getLabelDefaultText,\n inheritColor: visualColor,\n defaultOpacity: symbolStyle.opacity\n }); // Do not execute util needed.\n\n function getLabelDefaultText(idx) {\n return useNameLabel ? data.getName(idx) : getDefaultLabel(data, idx);\n }\n\n this._sizeX = symbolSize[0] / 2;\n this._sizeY = symbolSize[1] / 2;\n var emphasisState = symbolPath.ensureState('emphasis');\n emphasisState.style = emphasisItemStyle;\n symbolPath.ensureState('select').style = selectItemStyle;\n symbolPath.ensureState('blur').style = blurItemStyle;\n\n if (hoverScale) {\n var scaleRatio = Math.max(1.1, 3 / this._sizeY);\n emphasisState.scaleX = this._sizeX * scaleRatio;\n emphasisState.scaleY = this._sizeY * scaleRatio;\n }\n\n this.setSymbolScale(1);\n enableHoverEmphasis(this, focus, blurScope);\n };\n\n Symbol.prototype.setSymbolScale = function (scale) {\n this.scaleX = this.scaleY = scale;\n };\n\n Symbol.prototype.fadeOut = function (cb, opt) {\n var symbolPath = this.childAt(0);\n var seriesModel = this._seriesModel;\n var dataIndex = getECData(this).dataIndex;\n var animationOpt = opt && opt.animation; // Avoid mistaken hover when fading out\n\n this.silent = symbolPath.silent = true; // Not show text when animating\n\n if (opt && opt.fadeLabel) {\n var textContent = symbolPath.getTextContent();\n\n if (textContent) {\n graphic.removeElement(textContent, {\n style: {\n opacity: 0\n }\n }, seriesModel, {\n dataIndex: dataIndex,\n removeOpt: animationOpt,\n cb: function () {\n symbolPath.removeTextContent();\n }\n });\n }\n } else {\n symbolPath.removeTextContent();\n }\n\n graphic.removeElement(symbolPath, {\n style: {\n opacity: 0\n },\n scaleX: 0,\n scaleY: 0\n }, seriesModel, {\n dataIndex: dataIndex,\n cb: cb,\n removeOpt: animationOpt\n });\n };\n\n Symbol.getSymbolSize = function (data, idx) {\n var symbolSize = data.getItemVisual(idx, 'symbolSize');\n return isArray(symbolSize) ? symbolSize.slice() : [+symbolSize, +symbolSize];\n };\n\n return Symbol;\n}(graphic.Group);\n\nfunction driftSymbol(dx, dy) {\n this.parent.drift(dx, dy);\n}\n\nexport default Symbol;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport SymbolClz from './Symbol';\nimport { isObject } from 'zrender/lib/core/util';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\nfunction symbolNeedsDraw(data, point, idx, opt) {\n return point && !isNaN(point[0]) && !isNaN(point[1]) && !(opt.isIgnore && opt.isIgnore(idx)) // We do not set clipShape on group, because it will cut part of\n // the symbol element shape. We use the same clip shape here as\n // the line clip.\n && !(opt.clipShape && !opt.clipShape.contain(point[0], point[1])) && data.getItemVisual(idx, 'symbol') !== 'none';\n}\n\nfunction normalizeUpdateOpt(opt) {\n if (opt != null && !isObject(opt)) {\n opt = {\n isIgnore: opt\n };\n }\n\n return opt || {};\n}\n\nfunction makeSeriesScope(data) {\n var seriesModel = data.hostModel;\n var emphasisModel = seriesModel.getModel('emphasis');\n return {\n emphasisItemStyle: emphasisModel.getModel('itemStyle').getItemStyle(),\n blurItemStyle: seriesModel.getModel(['blur', 'itemStyle']).getItemStyle(),\n selectItemStyle: seriesModel.getModel(['select', 'itemStyle']).getItemStyle(),\n focus: emphasisModel.get('focus'),\n blurScope: emphasisModel.get('blurScope'),\n hoverScale: emphasisModel.get('scale'),\n labelStatesModels: getLabelStatesModels(seriesModel),\n cursorStyle: seriesModel.get('cursor')\n };\n}\n\nvar SymbolDraw =\n/** @class */\nfunction () {\n function SymbolDraw(SymbolCtor) {\n this.group = new graphic.Group();\n this._SymbolCtor = SymbolCtor || SymbolClz;\n }\n /**\n * Update symbols draw by new data\n */\n\n\n SymbolDraw.prototype.updateData = function (data, opt) {\n opt = normalizeUpdateOpt(opt);\n var group = this.group;\n var seriesModel = data.hostModel;\n var oldData = this._data;\n var SymbolCtor = this._SymbolCtor;\n var disableAnimation = opt.disableAnimation;\n var seriesScope = makeSeriesScope(data);\n var symbolUpdateOpt = {\n disableAnimation: disableAnimation\n };\n\n var getSymbolPoint = opt.getSymbolPoint || function (idx) {\n return data.getItemLayout(idx);\n }; // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n\n if (!oldData) {\n group.removeAll();\n }\n\n data.diff(oldData).add(function (newIdx) {\n var point = getSymbolPoint(newIdx);\n\n if (symbolNeedsDraw(data, point, newIdx, opt)) {\n var symbolEl = new SymbolCtor(data, newIdx, seriesScope, symbolUpdateOpt);\n symbolEl.setPosition(point);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx);\n var point = getSymbolPoint(newIdx);\n\n if (!symbolNeedsDraw(data, point, newIdx, opt)) {\n group.remove(symbolEl);\n return;\n }\n\n if (!symbolEl) {\n symbolEl = new SymbolCtor(data, newIdx);\n symbolEl.setPosition(point);\n } else {\n symbolEl.updateData(data, newIdx, seriesScope, symbolUpdateOpt);\n var target = {\n x: point[0],\n y: point[1]\n };\n disableAnimation ? symbolEl.attr(target) : graphic.updateProps(symbolEl, target, seriesModel);\n } // Add back\n\n\n group.add(symbolEl);\n data.setItemGraphicEl(newIdx, symbolEl);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && el.fadeOut(function () {\n group.remove(el);\n });\n }).execute();\n this._getSymbolPoint = getSymbolPoint;\n this._data = data;\n };\n\n ;\n\n SymbolDraw.prototype.isPersistent = function () {\n return true;\n };\n\n ;\n\n SymbolDraw.prototype.updateLayout = function () {\n var _this = this;\n\n var data = this._data;\n\n if (data) {\n // Not use animation\n data.eachItemGraphicEl(function (el, idx) {\n var point = _this._getSymbolPoint(idx);\n\n el.setPosition(point);\n el.markRedraw();\n });\n }\n };\n\n ;\n\n SymbolDraw.prototype.incrementalPrepareUpdate = function (data) {\n this._seriesScope = makeSeriesScope(data);\n this._data = null;\n this.group.removeAll();\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n SymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {\n opt = normalizeUpdateOpt(opt);\n\n function updateIncrementalAndHover(el) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = taskParams.start; idx < taskParams.end; idx++) {\n var point = data.getItemLayout(idx);\n\n if (symbolNeedsDraw(data, point, idx, opt)) {\n var el = new this._SymbolCtor(data, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n el.setPosition(point);\n this.group.add(el);\n data.setItemGraphicEl(idx, el);\n }\n }\n };\n\n ;\n\n SymbolDraw.prototype.remove = function (enableAnimation) {\n var group = this.group;\n var data = this._data; // Incremental model do not have this._data.\n\n if (data && enableAnimation) {\n data.eachItemGraphicEl(function (el) {\n el.fadeOut(function () {\n group.remove(el);\n });\n });\n } else {\n group.removeAll();\n }\n };\n\n ;\n return SymbolDraw;\n}();\n\nexport default SymbolDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { map } from 'zrender/lib/core/util';\nexport function prepareDataCoordInfo(coordSys, data, valueOrigin) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var valueStart = getValueStart(valueAxis, valueOrigin);\n var baseAxisDim = baseAxis.dim;\n var valueAxisDim = valueAxis.dim;\n var valueDim = data.mapDimension(valueAxisDim);\n var baseDim = data.mapDimension(baseAxisDim);\n var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n var dims = map(coordSys.dimensions, function (coordDim) {\n return data.mapDimension(coordDim);\n });\n var stacked = false;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n // jshint ignore:line\n stacked = true;\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n // jshint ignore:line\n stacked = true;\n dims[1] = stackResultDim;\n }\n\n return {\n dataDimsForPoint: dims,\n valueStart: valueStart,\n valueAxisDim: valueAxisDim,\n baseAxisDim: baseAxisDim,\n stacked: !!stacked,\n valueDim: valueDim,\n baseDim: baseDim,\n baseDataOffset: baseDataOffset,\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension')\n };\n}\n\nfunction getValueStart(valueAxis, valueOrigin) {\n var valueStart = 0;\n var extent = valueAxis.scale.getExtent();\n\n if (valueOrigin === 'start') {\n valueStart = extent[0];\n } else if (valueOrigin === 'end') {\n valueStart = extent[1];\n } // auto\n else {\n // Both positive\n if (extent[0] > 0) {\n valueStart = extent[0];\n } // Both negative\n else if (extent[1] < 0) {\n valueStart = extent[1];\n } // If is one positive, and one negative, onZero shall be true\n\n }\n\n return valueStart;\n}\n\nexport function getStackedOnPoint(dataCoordInfo, coordSys, data, idx) {\n var value = NaN;\n\n if (dataCoordInfo.stacked) {\n value = data.get(data.getCalculationInfo('stackedOverDimension'), idx);\n }\n\n if (isNaN(value)) {\n value = dataCoordInfo.valueStart;\n }\n\n var baseDataOffset = dataCoordInfo.baseDataOffset;\n var stackedData = [];\n stackedData[baseDataOffset] = data.get(dataCoordInfo.baseDim, idx);\n stackedData[1 - baseDataOffset] = value;\n return coordSys.dataToPoint(stackedData);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\n/* global Float32Array */\n\nvar supportFloat32Array = typeof Float32Array !== 'undefined';\nvar Float32ArrayCtor = !supportFloat32Array ? Array : Float32Array;\nexport function createFloat32Array(arg) {\n if (isArray(arg)) {\n // Return self directly if don't support TypedArray.\n return supportFloat32Array ? new Float32Array(arg) : arg;\n } // Else is number\n\n\n return new Float32ArrayCtor(arg);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { prepareDataCoordInfo, getStackedOnPoint } from './helper';\nimport { createFloat32Array } from '../../util/vendor';\n\nfunction diffData(oldData, newData) {\n var diffResult = [];\n newData.diff(oldData).add(function (idx) {\n diffResult.push({\n cmd: '+',\n idx: idx\n });\n }).update(function (newIdx, oldIdx) {\n diffResult.push({\n cmd: '=',\n idx: oldIdx,\n idx1: newIdx\n });\n }).remove(function (idx) {\n diffResult.push({\n cmd: '-',\n idx: idx\n });\n }).execute();\n return diffResult;\n}\n\nexport default function lineAnimationDiff(oldData, newData, oldStackedOnPoints, newStackedOnPoints, oldCoordSys, newCoordSys, oldValueOrigin, newValueOrigin) {\n var diff = diffData(oldData, newData); // let newIdList = newData.mapArray(newData.getId);\n // let oldIdList = oldData.mapArray(oldData.getId);\n // convertToIntId(newIdList, oldIdList);\n // // FIXME One data ?\n // diff = arrayDiff(oldIdList, newIdList);\n\n var currPoints = [];\n var nextPoints = []; // Points for stacking base line\n\n var currStackedPoints = [];\n var nextStackedPoints = [];\n var status = [];\n var sortedIndices = [];\n var rawIndices = [];\n var newDataOldCoordInfo = prepareDataCoordInfo(oldCoordSys, newData, oldValueOrigin); // const oldDataNewCoordInfo = prepareDataCoordInfo(newCoordSys, oldData, newValueOrigin);\n\n var oldPoints = oldData.getLayout('points') || [];\n var newPoints = newData.getLayout('points') || [];\n\n for (var i = 0; i < diff.length; i++) {\n var diffItem = diff[i];\n var pointAdded = true;\n var oldIdx2 = void 0;\n var newIdx2 = void 0; // FIXME, animation is not so perfect when dataZoom window moves fast\n // Which is in case remvoing or add more than one data in the tail or head\n\n switch (diffItem.cmd) {\n case '=':\n oldIdx2 = diffItem.idx * 2;\n newIdx2 = diffItem.idx1 * 2;\n var currentX = oldPoints[oldIdx2];\n var currentY = oldPoints[oldIdx2 + 1];\n var nextX = newPoints[newIdx2];\n var nextY = newPoints[newIdx2 + 1]; // If previous data is NaN, use next point directly\n\n if (isNaN(currentX) || isNaN(currentY)) {\n currentX = nextX;\n currentY = nextY;\n }\n\n currPoints.push(currentX, currentY);\n nextPoints.push(nextX, nextY);\n currStackedPoints.push(oldStackedOnPoints[oldIdx2], oldStackedOnPoints[oldIdx2 + 1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n rawIndices.push(newData.getRawIndex(diffItem.idx1));\n break;\n\n case '+':\n var newIdx = diffItem.idx;\n var newDataDimsForPoint = newDataOldCoordInfo.dataDimsForPoint;\n var oldPt = oldCoordSys.dataToPoint([newData.get(newDataDimsForPoint[0], newIdx), newData.get(newDataDimsForPoint[1], newIdx)]);\n newIdx2 = newIdx * 2;\n currPoints.push(oldPt[0], oldPt[1]);\n nextPoints.push(newPoints[newIdx2], newPoints[newIdx2 + 1]);\n var stackedOnPoint = getStackedOnPoint(newDataOldCoordInfo, oldCoordSys, newData, newIdx);\n currStackedPoints.push(stackedOnPoint[0], stackedOnPoint[1]);\n nextStackedPoints.push(newStackedOnPoints[newIdx2], newStackedOnPoints[newIdx2 + 1]);\n rawIndices.push(newData.getRawIndex(newIdx));\n break;\n\n case '-':\n pointAdded = false;\n } // Original indices\n\n\n if (pointAdded) {\n status.push(diffItem);\n sortedIndices.push(sortedIndices.length);\n }\n } // Diff result may be crossed if all items are changed\n // Sort by data index\n\n\n sortedIndices.sort(function (a, b) {\n return rawIndices[a] - rawIndices[b];\n });\n var len = currPoints.length;\n var sortedCurrPoints = createFloat32Array(len);\n var sortedNextPoints = createFloat32Array(len);\n var sortedCurrStackedPoints = createFloat32Array(len);\n var sortedNextStackedPoints = createFloat32Array(len);\n var sortedStatus = [];\n\n for (var i = 0; i < sortedIndices.length; i++) {\n var idx = sortedIndices[i];\n var i2 = i * 2;\n var idx2 = idx * 2;\n sortedCurrPoints[i2] = currPoints[idx2];\n sortedCurrPoints[i2 + 1] = currPoints[idx2 + 1];\n sortedNextPoints[i2] = nextPoints[idx2];\n sortedNextPoints[i2 + 1] = nextPoints[idx2 + 1];\n sortedCurrStackedPoints[i2] = currStackedPoints[idx2];\n sortedCurrStackedPoints[i2 + 1] = currStackedPoints[idx2 + 1];\n sortedNextStackedPoints[i2] = nextStackedPoints[idx2];\n sortedNextStackedPoints[i2 + 1] = nextStackedPoints[idx2 + 1];\n sortedStatus[i] = status[idx];\n }\n\n return {\n current: sortedCurrPoints,\n next: sortedNextPoints,\n stackedOnCurrent: sortedCurrStackedPoints,\n stackedOnNext: sortedNextStackedPoints,\n status: sortedStatus\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // Poly path support NaN point\n\nimport Path from 'zrender/lib/graphic/Path';\nimport PathProxy from 'zrender/lib/core/PathProxy';\nimport { cubicRootAt, cubicAt } from 'zrender/lib/core/curve';\nvar mathMin = Math.min;\nvar mathMax = Math.max;\n\nfunction isPointNull(x, y) {\n return isNaN(x) || isNaN(y);\n}\n/**\n * Draw smoothed line in non-monotone, in may cause undesired curve in extreme\n * situations. This should be used when points are non-monotone neither in x or\n * y dimension.\n */\n\n\nfunction drawSegment(ctx, points, start, segLen, allLen, dir, smooth, smoothMonotone, connectNulls) {\n var prevX;\n var prevY;\n var cpx0;\n var cpy0;\n var cpx1;\n var cpy1;\n var idx = start;\n var k = 0;\n\n for (; k < segLen; k++) {\n var x = points[idx * 2];\n var y = points[idx * 2 + 1];\n\n if (idx >= allLen || idx < 0) {\n break;\n }\n\n if (isPointNull(x, y)) {\n if (connectNulls) {\n idx += dir;\n continue;\n }\n\n break;\n }\n\n if (idx === start) {\n ctx[dir > 0 ? 'moveTo' : 'lineTo'](x, y);\n cpx0 = x;\n cpy0 = y;\n } else {\n var dx = x - prevX;\n var dy = y - prevY; // Ignore tiny segment.\n\n if (dx * dx + dy * dy < 0.5) {\n idx += dir;\n continue;\n }\n\n if (smooth > 0) {\n var nextIdx = idx + dir;\n var nextX = points[nextIdx * 2];\n var nextY = points[nextIdx * 2 + 1];\n var tmpK = k + 1;\n\n if (connectNulls) {\n // Find next point not null\n while (isPointNull(nextX, nextY) && tmpK < segLen) {\n tmpK++;\n nextIdx += dir;\n nextX = points[nextIdx * 2];\n nextY = points[nextIdx * 2 + 1];\n }\n }\n\n var ratioNextSeg = 0.5;\n var vx = 0;\n var vy = 0;\n var nextCpx0 = void 0;\n var nextCpy0 = void 0; // Is last point\n\n if (tmpK >= segLen || isPointNull(nextX, nextY)) {\n cpx1 = x;\n cpy1 = y;\n } else {\n vx = nextX - prevX;\n vy = nextY - prevY;\n var dx0 = x - prevX;\n var dx1 = nextX - x;\n var dy0 = y - prevY;\n var dy1 = nextY - y;\n var lenPrevSeg = void 0;\n var lenNextSeg = void 0;\n\n if (smoothMonotone === 'x') {\n lenPrevSeg = Math.abs(dx0);\n lenNextSeg = Math.abs(dx1);\n cpx1 = x - lenPrevSeg * smooth;\n cpy1 = y;\n nextCpx0 = x + lenPrevSeg * smooth;\n nextCpy0 = y;\n } else if (smoothMonotone === 'y') {\n lenPrevSeg = Math.abs(dy0);\n lenNextSeg = Math.abs(dy1);\n cpx1 = x;\n cpy1 = y - lenPrevSeg * smooth;\n nextCpx0 = x;\n nextCpy0 = y + lenPrevSeg * smooth;\n } else {\n lenPrevSeg = Math.sqrt(dx0 * dx0 + dy0 * dy0);\n lenNextSeg = Math.sqrt(dx1 * dx1 + dy1 * dy1); // Use ratio of seg length\n\n ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);\n cpx1 = x - vx * smooth * (1 - ratioNextSeg);\n cpy1 = y - vy * smooth * (1 - ratioNextSeg); // cp0 of next segment\n\n nextCpx0 = x + vx * smooth * ratioNextSeg;\n nextCpy0 = y + vy * smooth * ratioNextSeg; // Smooth constraint between point and next point.\n // Avoid exceeding extreme after smoothing.\n\n nextCpx0 = mathMin(nextCpx0, mathMax(nextX, x));\n nextCpy0 = mathMin(nextCpy0, mathMax(nextY, y));\n nextCpx0 = mathMax(nextCpx0, mathMin(nextX, x));\n nextCpy0 = mathMax(nextCpy0, mathMin(nextY, y)); // Reclaculate cp1 based on the adjusted cp0 of next seg.\n\n vx = nextCpx0 - x;\n vy = nextCpy0 - y;\n cpx1 = x - vx * lenPrevSeg / lenNextSeg;\n cpy1 = y - vy * lenPrevSeg / lenNextSeg; // Smooth constraint between point and prev point.\n // Avoid exceeding extreme after smoothing.\n\n cpx1 = mathMin(cpx1, mathMax(prevX, x));\n cpy1 = mathMin(cpy1, mathMax(prevY, y));\n cpx1 = mathMax(cpx1, mathMin(prevX, x));\n cpy1 = mathMax(cpy1, mathMin(prevY, y)); // Adjust next cp0 again.\n\n vx = x - cpx1;\n vy = y - cpy1;\n nextCpx0 = x + vx * lenNextSeg / lenPrevSeg;\n nextCpy0 = y + vy * lenNextSeg / lenPrevSeg;\n }\n }\n\n ctx.bezierCurveTo(cpx0, cpy0, cpx1, cpy1, x, y);\n cpx0 = nextCpx0;\n cpy0 = nextCpy0;\n } else {\n ctx.lineTo(x, y);\n }\n }\n\n prevX = x;\n prevY = y;\n idx += dir;\n }\n\n return k;\n}\n\nvar ECPolylineShape =\n/** @class */\nfunction () {\n function ECPolylineShape() {\n this.smooth = 0;\n this.smoothConstraint = true;\n }\n\n return ECPolylineShape;\n}();\n\nvar ECPolyline =\n/** @class */\nfunction (_super) {\n __extends(ECPolyline, _super);\n\n function ECPolyline(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-polyline';\n return _this;\n }\n\n ECPolyline.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n ECPolyline.prototype.getDefaultShape = function () {\n return new ECPolylineShape();\n };\n\n ECPolyline.prototype.buildPath = function (ctx, shape) {\n var points = shape.points;\n var i = 0;\n var len = points.length / 2; // const result = getBoundingBox(points, shape.smoothConstraint);\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n\n while (i < len) {\n i += drawSegment(ctx, points, i, len, len, 1, shape.smooth, shape.smoothMonotone, shape.connectNulls) + 1;\n }\n };\n\n ECPolyline.prototype.getPointOn = function (xOrY, dim) {\n if (!this.path) {\n this.createPathProxy();\n this.buildPath(this.path, this.shape);\n }\n\n var path = this.path;\n var data = path.data;\n var CMD = PathProxy.CMD;\n var x0;\n var y0;\n var isDimX = dim === 'x';\n var roots = [];\n\n for (var i = 0; i < data.length;) {\n var cmd = data[i++];\n var x = void 0;\n var y = void 0;\n var x2 = void 0;\n var y2 = void 0;\n var x3 = void 0;\n var y3 = void 0;\n var t = void 0;\n\n switch (cmd) {\n case CMD.M:\n x0 = data[i++];\n y0 = data[i++];\n break;\n\n case CMD.L:\n x = data[i++];\n y = data[i++];\n t = isDimX ? (xOrY - x0) / (x - x0) : (xOrY - y0) / (y - y0);\n\n if (t <= 1 && t >= 0) {\n var val = isDimX ? (y - y0) * t + y0 : (x - x0) * t + x0;\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n\n x0 = x;\n y0 = y;\n break;\n\n case CMD.C:\n x = data[i++];\n y = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n x3 = data[i++];\n y3 = data[i++];\n var nRoot = isDimX ? cubicRootAt(x0, x, x2, x3, xOrY, roots) : cubicRootAt(y0, y, y2, y3, xOrY, roots);\n\n if (nRoot > 0) {\n for (var i_1 = 0; i_1 < nRoot; i_1++) {\n var t_1 = roots[i_1];\n\n if (t_1 <= 1 && t_1 >= 0) {\n var val = isDimX ? cubicAt(y0, y, y2, y3, t_1) : cubicAt(x0, x, x2, x3, t_1);\n return isDimX ? [xOrY, val] : [val, xOrY];\n }\n }\n }\n\n x0 = x3;\n y0 = y3;\n break;\n }\n }\n };\n\n return ECPolyline;\n}(Path);\n\nexport { ECPolyline };\n\nvar ECPolygonShape =\n/** @class */\nfunction (_super) {\n __extends(ECPolygonShape, _super);\n\n function ECPolygonShape() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return ECPolygonShape;\n}(ECPolylineShape);\n\nvar ECPolygon =\n/** @class */\nfunction (_super) {\n __extends(ECPolygon, _super);\n\n function ECPolygon(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-polygon';\n return _this;\n }\n\n ECPolygon.prototype.getDefaultShape = function () {\n return new ECPolygonShape();\n };\n\n ECPolygon.prototype.buildPath = function (ctx, shape) {\n var points = shape.points;\n var stackedOnPoints = shape.stackedOnPoints;\n var i = 0;\n var len = points.length / 2;\n var smoothMonotone = shape.smoothMonotone;\n\n if (shape.connectNulls) {\n // Must remove first and last null values avoid draw error in polygon\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n for (; i < len; i++) {\n if (!isPointNull(points[i * 2], points[i * 2 + 1])) {\n break;\n }\n }\n }\n\n while (i < len) {\n var k = drawSegment(ctx, points, i, len, len, 1, shape.smooth, smoothMonotone, shape.connectNulls);\n drawSegment(ctx, stackedOnPoints, i + k - 1, k, len, -1, shape.stackedOnSmooth, smoothMonotone, shape.connectNulls);\n i += k + 1;\n ctx.closePath();\n }\n };\n\n return ECPolygon;\n}(Path);\n\nexport { ECPolygon };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport { round } from '../../util/number';\n\nfunction createGridClipPath(cartesian, hasAnimation, seriesModel, done, during) {\n var rect = cartesian.getArea();\n var x = rect.x;\n var y = rect.y;\n var width = rect.width;\n var height = rect.height;\n var lineWidth = seriesModel.get(['lineStyle', 'width']) || 2; // Expand the clip path a bit to avoid the border is clipped and looks thinner\n\n x -= lineWidth / 2;\n y -= lineWidth / 2;\n width += lineWidth;\n height += lineWidth; // fix: https://github.com/apache/incubator-echarts/issues/11369\n\n x = Math.floor(x);\n width = Math.round(width);\n var clipPath = new graphic.Rect({\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n }\n });\n\n if (hasAnimation) {\n var baseAxis = cartesian.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isAxisInversed = baseAxis.inverse;\n\n if (isHorizontal) {\n if (isAxisInversed) {\n clipPath.shape.x += width;\n }\n\n clipPath.shape.width = 0;\n } else {\n if (!isAxisInversed) {\n clipPath.shape.y += height;\n }\n\n clipPath.shape.height = 0;\n }\n\n var duringCb = typeof during === 'function' ? function (percent) {\n during(percent, clipPath);\n } : null;\n graphic.initProps(clipPath, {\n shape: {\n width: width,\n height: height,\n x: x,\n y: y\n }\n }, seriesModel, null, done, duringCb);\n }\n\n return clipPath;\n}\n\nfunction createPolarClipPath(polar, hasAnimation, seriesModel) {\n var sectorArea = polar.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent.\n\n var r0 = round(sectorArea.r0, 1);\n var r = round(sectorArea.r, 1);\n var clipPath = new graphic.Sector({\n shape: {\n cx: round(polar.cx, 1),\n cy: round(polar.cy, 1),\n r0: r0,\n r: r,\n startAngle: sectorArea.startAngle,\n endAngle: sectorArea.endAngle,\n clockwise: sectorArea.clockwise\n }\n });\n\n if (hasAnimation) {\n var isRadial = polar.getBaseAxis().dim === 'angle';\n\n if (isRadial) {\n clipPath.shape.endAngle = sectorArea.startAngle;\n } else {\n clipPath.shape.r = r0;\n }\n\n graphic.initProps(clipPath, {\n shape: {\n endAngle: sectorArea.endAngle,\n r: r\n }\n }, seriesModel);\n }\n\n return clipPath;\n}\n\nfunction createClipPath(coordSys, hasAnimation, seriesModel, done, during) {\n if (!coordSys) {\n return null;\n } else if (coordSys.type === 'polar') {\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n } else if (coordSys.type === 'cartesian2d') {\n return createGridClipPath(coordSys, hasAnimation, seriesModel, done, during);\n }\n\n return null;\n}\n\nexport { createGridClipPath, createPolarClipPath, createClipPath };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function isCoordinateSystemType(coordSys, type) {\n return coordSys.type === type;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // FIXME step not support polar\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport SymbolClz from '../helper/Symbol';\nimport lineAnimationDiff from './lineAnimationDiff';\nimport * as graphic from '../../util/graphic';\nimport * as modelUtil from '../../util/model';\nimport { ECPolyline, ECPolygon } from './poly';\nimport ChartView from '../../view/Chart';\nimport { prepareDataCoordInfo, getStackedOnPoint } from './helper';\nimport { createGridClipPath, createPolarClipPath } from '../helper/createClipPathFromCoordSys';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setStatesStylesFromModel, setStatesFlag, enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, labelInner } from '../../label/labelStyle';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport { getECData } from '../../util/innerStore';\nimport { createFloat32Array } from '../../util/vendor';\nimport { convertToColorString } from '../../util/format';\n\nfunction isPointsSame(points1, points2) {\n if (points1.length !== points2.length) {\n return;\n }\n\n for (var i = 0; i < points1.length; i++) {\n if (points1[i] !== points2[i]) {\n return;\n }\n }\n\n return true;\n}\n\nfunction bboxFromPoints(points) {\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (!isNaN(x)) {\n minX = Math.min(x, minX);\n maxX = Math.max(x, maxX);\n }\n\n if (!isNaN(y)) {\n minY = Math.min(y, minY);\n maxY = Math.max(y, maxY);\n }\n }\n\n return [[minX, minY], [maxX, maxY]];\n}\n\nfunction getBoundingDiff(points1, points2) {\n var _a = bboxFromPoints(points1),\n min1 = _a[0],\n max1 = _a[1];\n\n var _b = bboxFromPoints(points2),\n min2 = _b[0],\n max2 = _b[1]; // Get a max value from each corner of two boundings.\n\n\n return Math.max(Math.abs(min1[0] - min2[0]), Math.abs(min1[1] - min2[1]), Math.abs(max1[0] - max2[0]), Math.abs(max1[1] - max2[1]));\n}\n\nfunction getSmooth(smooth) {\n return typeof smooth === 'number' ? smooth : smooth ? 0.5 : 0;\n}\n\nfunction getStackedOnPoints(coordSys, data, dataCoordInfo) {\n if (!dataCoordInfo.valueDim) {\n return [];\n }\n\n var len = data.count();\n var points = createFloat32Array(len * 2);\n\n for (var idx = 0; idx < len; idx++) {\n var pt = getStackedOnPoint(dataCoordInfo, coordSys, data, idx);\n points[idx * 2] = pt[0];\n points[idx * 2 + 1] = pt[1];\n }\n\n return points;\n}\n\nfunction turnPointsIntoStep(points, coordSys, stepTurnAt) {\n var baseAxis = coordSys.getBaseAxis();\n var baseIndex = baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1;\n var stepPoints = [];\n var i = 0;\n var stepPt = [];\n var pt = [];\n var nextPt = [];\n\n for (; i < points.length - 2; i += 2) {\n nextPt[0] = points[i + 2];\n nextPt[1] = points[i + 3];\n pt[0] = points[i];\n pt[1] = points[i + 1];\n stepPoints.push(pt[0], pt[1]);\n\n switch (stepTurnAt) {\n case 'end':\n stepPt[baseIndex] = nextPt[baseIndex];\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n break;\n\n case 'middle':\n var middle = (pt[baseIndex] + nextPt[baseIndex]) / 2;\n var stepPt2 = [];\n stepPt[baseIndex] = stepPt2[baseIndex] = middle;\n stepPt[1 - baseIndex] = pt[1 - baseIndex];\n stepPt2[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n stepPoints.push(stepPt2[0], stepPt2[1]);\n break;\n\n default:\n // default is start\n stepPt[baseIndex] = pt[baseIndex];\n stepPt[1 - baseIndex] = nextPt[1 - baseIndex];\n stepPoints.push(stepPt[0], stepPt[1]);\n }\n } // Last points\n\n\n stepPoints.push(points[i++], points[i++]);\n return stepPoints;\n}\n\nfunction getVisualGradient(data, coordSys) {\n var visualMetaList = data.getVisual('visualMeta');\n\n if (!visualMetaList || !visualMetaList.length || !data.count()) {\n // When data.count() is 0, gradient range can not be calculated.\n return;\n }\n\n if (coordSys.type !== 'cartesian2d') {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Visual map on line style is only supported on cartesian2d.');\n }\n\n return;\n }\n\n var coordDim;\n var visualMeta;\n\n for (var i = visualMetaList.length - 1; i >= 0; i--) {\n var dimIndex = visualMetaList[i].dimension;\n var dimName = data.dimensions[dimIndex];\n var dimInfo = data.getDimensionInfo(dimName);\n coordDim = dimInfo && dimInfo.coordDim; // Can only be x or y\n\n if (coordDim === 'x' || coordDim === 'y') {\n visualMeta = visualMetaList[i];\n break;\n }\n }\n\n if (!visualMeta) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Visual map on line style only support x or y dimension.');\n }\n\n return;\n } // If the area to be rendered is bigger than area defined by LinearGradient,\n // the canvas spec prescribes that the color of the first stop and the last\n // stop should be used. But if two stops are added at offset 0, in effect\n // browsers use the color of the second stop to render area outside\n // LinearGradient. So we can only infinitesimally extend area defined in\n // LinearGradient to render `outerColors`.\n\n\n var axis = coordSys.getAxis(coordDim); // dataToCoord mapping may not be linear, but must be monotonic.\n\n var colorStops = zrUtil.map(visualMeta.stops, function (stop) {\n return {\n offset: 0,\n coord: axis.toGlobalCoord(axis.dataToCoord(stop.value, true)),\n color: stop.color\n };\n });\n var stopLen = colorStops.length;\n var outerColors = visualMeta.outerColors.slice();\n\n if (stopLen && colorStops[0].coord > colorStops[stopLen - 1].coord) {\n colorStops.reverse();\n outerColors.reverse();\n }\n\n var tinyExtent = 10; // Arbitrary value: 10px\n\n var minCoord = colorStops[0].coord - tinyExtent;\n var maxCoord = colorStops[stopLen - 1].coord + tinyExtent;\n var coordSpan = maxCoord - minCoord;\n\n if (coordSpan < 1e-3) {\n return 'transparent';\n }\n\n zrUtil.each(colorStops, function (stop) {\n stop.offset = (stop.coord - minCoord) / coordSpan;\n });\n colorStops.push({\n offset: stopLen ? colorStops[stopLen - 1].offset : 0.5,\n color: outerColors[1] || 'transparent'\n });\n colorStops.unshift({\n offset: stopLen ? colorStops[0].offset : 0.5,\n color: outerColors[0] || 'transparent'\n }); // zrUtil.each(colorStops, function (colorStop) {\n // // Make sure each offset has rounded px to avoid not sharp edge\n // colorStop.offset = (Math.round(colorStop.offset * (end - start) + start) - start) / (end - start);\n // });\n\n var gradient = new graphic.LinearGradient(0, 0, 0, 0, colorStops, true);\n gradient[coordDim] = minCoord;\n gradient[coordDim + '2'] = maxCoord;\n return gradient;\n}\n\nfunction getIsIgnoreFunc(seriesModel, data, coordSys) {\n var showAllSymbol = seriesModel.get('showAllSymbol');\n var isAuto = showAllSymbol === 'auto';\n\n if (showAllSymbol && !isAuto) {\n return;\n }\n\n var categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n\n if (!categoryAxis) {\n return;\n } // Note that category label interval strategy might bring some weird effect\n // in some scenario: users may wonder why some of the symbols are not\n // displayed. So we show all symbols as possible as we can.\n\n\n if (isAuto // Simplify the logic, do not determine label overlap here.\n && canShowAllSymbolForCategory(categoryAxis, data)) {\n return;\n } // Otherwise follow the label interval strategy on category axis.\n\n\n var categoryDataDim = data.mapDimension(categoryAxis.dim);\n var labelMap = {};\n zrUtil.each(categoryAxis.getViewLabels(), function (labelItem) {\n var ordinalNumber = categoryAxis.scale.getRawOrdinalNumber(labelItem.tickValue);\n labelMap[ordinalNumber] = 1;\n });\n return function (dataIndex) {\n return !labelMap.hasOwnProperty(data.get(categoryDataDim, dataIndex));\n };\n}\n\nfunction canShowAllSymbolForCategory(categoryAxis, data) {\n // In mose cases, line is monotonous on category axis, and the label size\n // is close with each other. So we check the symbol size and some of the\n // label size alone with the category axis to estimate whether all symbol\n // can be shown without overlap.\n var axisExtent = categoryAxis.getExtent();\n var availSize = Math.abs(axisExtent[1] - axisExtent[0]) / categoryAxis.scale.count();\n isNaN(availSize) && (availSize = 0); // 0/0 is NaN.\n // Sampling some points, max 5.\n\n var dataLen = data.count();\n var step = Math.max(1, Math.round(dataLen / 5));\n\n for (var dataIndex = 0; dataIndex < dataLen; dataIndex += step) {\n if (SymbolClz.getSymbolSize(data, dataIndex // Only for cartesian, where `isHorizontal` exists.\n )[categoryAxis.isHorizontal() ? 1 : 0] // Empirical number\n * 1.5 > availSize) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction isPointNull(x, y) {\n return isNaN(x) || isNaN(y);\n}\n\nfunction getLastIndexNotNull(points) {\n var len = points.length / 2;\n\n for (; len > 0; len--) {\n if (!isPointNull(points[len * 2 - 2], points[len * 2 - 1])) {\n break;\n }\n }\n\n return len - 1;\n}\n\nfunction getPointAtIndex(points, idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n}\n\nfunction getIndexRange(points, xOrY, dim) {\n var len = points.length / 2;\n var dimIdx = dim === 'x' ? 0 : 1;\n var a;\n var b;\n var prevIndex = 0;\n var nextIndex = -1;\n\n for (var i = 0; i < len; i++) {\n b = points[i * 2 + dimIdx];\n\n if (isNaN(b) || isNaN(points[i * 2 + 1 - dimIdx])) {\n continue;\n }\n\n if (i === 0) {\n a = b;\n continue;\n }\n\n if (a <= xOrY && b >= xOrY || a >= xOrY && b <= xOrY) {\n nextIndex = i;\n break;\n }\n\n prevIndex = i;\n a = b;\n }\n\n return {\n range: [prevIndex, nextIndex],\n t: (xOrY - a) / (b - a)\n };\n}\n\nfunction createLineClipPath(lineView, coordSys, hasAnimation, seriesModel) {\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var endLabelModel_1 = seriesModel.getModel('endLabel');\n var showEndLabel = endLabelModel_1.get('show');\n var valueAnimation_1 = endLabelModel_1.get('valueAnimation');\n var data_1 = seriesModel.getData();\n var labelAnimationRecord_1 = {\n lastFrameIndex: 0\n };\n var during = showEndLabel ? function (percent, clipRect) {\n lineView._endLabelOnDuring(percent, clipRect, data_1, labelAnimationRecord_1, valueAnimation_1, endLabelModel_1, coordSys);\n } : null;\n var isHorizontal = coordSys.getBaseAxis().isHorizontal();\n var clipPath = createGridClipPath(coordSys, hasAnimation, seriesModel, function () {\n var endLabel = lineView._endLabel;\n\n if (endLabel && hasAnimation) {\n if (labelAnimationRecord_1.originalX != null) {\n endLabel.attr({\n x: labelAnimationRecord_1.originalX,\n y: labelAnimationRecord_1.originalY\n });\n }\n }\n }, during); // Expand clip shape to avoid clipping when line value exceeds axis\n\n if (!seriesModel.get('clip', true)) {\n var rectShape = clipPath.shape;\n var expandSize = Math.max(rectShape.width, rectShape.height);\n\n if (isHorizontal) {\n rectShape.y -= expandSize;\n rectShape.height += expandSize * 2;\n } else {\n rectShape.x -= expandSize;\n rectShape.width += expandSize * 2;\n }\n } // Set to the final frame. To make sure label layout is right.\n\n\n if (during) {\n during(1, clipPath);\n }\n\n return clipPath;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n if (seriesModel.get(['endLabel', 'show'])) {\n console.warn('endLabel is not supported for lines in polar systems.');\n }\n }\n\n return createPolarClipPath(coordSys, hasAnimation, seriesModel);\n }\n}\n\nfunction getEndLabelStateSpecified(endLabelModel, coordSys) {\n var baseAxis = coordSys.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isBaseInversed = baseAxis.inverse;\n var align = isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center';\n var verticalAlign = isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom';\n return {\n normal: {\n align: endLabelModel.get('align') || align,\n verticalAlign: endLabelModel.get('verticalAlign') || verticalAlign\n }\n };\n}\n\nvar LineView =\n/** @class */\nfunction (_super) {\n __extends(LineView, _super);\n\n function LineView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n LineView.prototype.init = function () {\n var lineGroup = new graphic.Group();\n var symbolDraw = new SymbolDraw();\n this.group.add(symbolDraw.group);\n this._symbolDraw = symbolDraw;\n this._lineGroup = lineGroup;\n };\n\n LineView.prototype.render = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var coordSys = seriesModel.coordinateSystem;\n var group = this.group;\n var data = seriesModel.getData();\n var lineStyleModel = seriesModel.getModel('lineStyle');\n var areaStyleModel = seriesModel.getModel('areaStyle');\n var points = data.getLayout('points') || [];\n var isCoordSysPolar = coordSys.type === 'polar';\n var prevCoordSys = this._coordSys;\n var symbolDraw = this._symbolDraw;\n var polyline = this._polyline;\n var polygon = this._polygon;\n var lineGroup = this._lineGroup;\n var hasAnimation = seriesModel.get('animation');\n var isAreaChart = !areaStyleModel.isEmpty();\n var valueOrigin = areaStyleModel.get('origin');\n var dataCoordInfo = prepareDataCoordInfo(coordSys, data, valueOrigin);\n var stackedOnPoints = isAreaChart && getStackedOnPoints(coordSys, data, dataCoordInfo);\n var showSymbol = seriesModel.get('showSymbol');\n var isIgnoreFunc = showSymbol && !isCoordSysPolar && getIsIgnoreFunc(seriesModel, data, coordSys); // Remove temporary symbols\n\n var oldData = this._data;\n oldData && oldData.eachItemGraphicEl(function (el, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n }); // Remove previous created symbols if showSymbol changed to false\n\n if (!showSymbol) {\n symbolDraw.remove();\n }\n\n group.add(lineGroup); // FIXME step not support polar\n\n var step = !isCoordSysPolar ? seriesModel.get('step') : false;\n var clipShapeForSymbol;\n\n if (coordSys && coordSys.getArea && seriesModel.get('clip', true)) {\n clipShapeForSymbol = coordSys.getArea(); // Avoid float number rounding error for symbol on the edge of axis extent.\n // See #7913 and `test/dataZoom-clip.html`.\n\n if (clipShapeForSymbol.width != null) {\n clipShapeForSymbol.x -= 0.1;\n clipShapeForSymbol.y -= 0.1;\n clipShapeForSymbol.width += 0.2;\n clipShapeForSymbol.height += 0.2;\n } else if (clipShapeForSymbol.r0) {\n clipShapeForSymbol.r0 -= 0.5;\n clipShapeForSymbol.r += 0.5;\n }\n }\n\n this._clipShapeForSymbol = clipShapeForSymbol;\n var visualColor = getVisualGradient(data, coordSys) || data.getVisual('style')[data.getVisual('drawType')]; // Initialization animation or coordinate system changed\n\n if (!(polyline && prevCoordSys.type === coordSys.type && step === this._step)) {\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint: function (idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n });\n hasAnimation && this._initSymbolLabelAnimation(data, coordSys, clipShapeForSymbol);\n\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline = this._newPolyline(points);\n\n if (isAreaChart) {\n polygon = this._newPolygon(points, stackedOnPoints);\n } // NOTE: Must update _endLabel before setClipPath.\n\n\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));\n }\n\n lineGroup.setClipPath(createLineClipPath(this, coordSys, true, seriesModel));\n } else {\n if (isAreaChart && !polygon) {\n // If areaStyle is added\n polygon = this._newPolygon(points, stackedOnPoints);\n } else if (polygon && !isAreaChart) {\n // If areaStyle is removed\n lineGroup.remove(polygon);\n polygon = this._polygon = null;\n } // NOTE: Must update _endLabel before setClipPath.\n\n\n if (!isCoordSysPolar) {\n this._initOrUpdateEndLabel(seriesModel, coordSys, convertToColorString(visualColor));\n } // Update clipPath\n\n\n lineGroup.setClipPath(createLineClipPath(this, coordSys, false, seriesModel)); // Always update, or it is wrong in the case turning on legend\n // because points are not changed\n\n showSymbol && symbolDraw.updateData(data, {\n isIgnore: isIgnoreFunc,\n clipShape: clipShapeForSymbol,\n disableAnimation: true,\n getSymbolPoint: function (idx) {\n return [points[idx * 2], points[idx * 2 + 1]];\n }\n }); // In the case data zoom triggerred refreshing frequently\n // Data may not change if line has a category axis. So it should animate nothing\n\n if (!isPointsSame(this._stackedOnPoints, stackedOnPoints) || !isPointsSame(this._points, points)) {\n if (hasAnimation) {\n this._doUpdateAnimation(data, stackedOnPoints, coordSys, api, step, valueOrigin);\n } else {\n // Not do it in update with animation\n if (step) {\n // TODO If stacked series is not step\n points = turnPointsIntoStep(points, coordSys, step);\n\n if (stackedOnPoints) {\n stackedOnPoints = turnPointsIntoStep(stackedOnPoints, coordSys, step);\n }\n }\n\n polyline.setShape({\n points: points\n });\n polygon && polygon.setShape({\n points: points,\n stackedOnPoints: stackedOnPoints\n });\n }\n }\n }\n\n var focus = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n polyline.useStyle(zrUtil.defaults( // Use color in lineStyle first\n lineStyleModel.getLineStyle(), {\n fill: 'none',\n stroke: visualColor,\n lineJoin: 'bevel'\n }));\n setStatesStylesFromModel(polyline, seriesModel, 'lineStyle');\n\n if (polyline.style.lineWidth > 0 && seriesModel.get(['emphasis', 'lineStyle', 'width']) === 'bolder') {\n var emphasisLineStyle = polyline.getState('emphasis').style;\n emphasisLineStyle.lineWidth = +polyline.style.lineWidth + 1;\n } // Needs seriesIndex for focus\n\n\n getECData(polyline).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polyline, focus, blurScope);\n var smooth = getSmooth(seriesModel.get('smooth'));\n var smoothMonotone = seriesModel.get('smoothMonotone');\n var connectNulls = seriesModel.get('connectNulls');\n polyline.setShape({\n smooth: smooth,\n smoothMonotone: smoothMonotone,\n connectNulls: connectNulls\n });\n\n if (polygon) {\n var stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n var stackedOnSmooth = 0;\n polygon.useStyle(zrUtil.defaults(areaStyleModel.getAreaStyle(), {\n fill: visualColor,\n opacity: 0.7,\n lineJoin: 'bevel',\n decal: data.getVisual('style').decal\n }));\n\n if (stackedOnSeries) {\n stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));\n }\n\n polygon.setShape({\n smooth: smooth,\n stackedOnSmooth: stackedOnSmooth,\n smoothMonotone: smoothMonotone,\n connectNulls: connectNulls\n });\n setStatesStylesFromModel(polygon, seriesModel, 'areaStyle'); // Needs seriesIndex for focus\n\n getECData(polygon).seriesIndex = seriesModel.seriesIndex;\n enableHoverEmphasis(polygon, focus, blurScope);\n }\n\n var changePolyState = function (toState) {\n _this._changePolyState(toState);\n };\n\n data.eachItemGraphicEl(function (el) {\n // Switch polyline / polygon state if element changed its state.\n el && (el.onHoverStateChange = changePolyState);\n });\n this._polyline.onHoverStateChange = changePolyState;\n this._data = data; // Save the coordinate system for transition animation when data changed\n\n this._coordSys = coordSys;\n this._stackedOnPoints = stackedOnPoints;\n this._points = points;\n this._step = step;\n this._valueOrigin = valueOrigin;\n };\n\n LineView.prototype.dispose = function () {};\n\n LineView.prototype.highlight = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('emphasis');\n\n if (!(dataIndex instanceof Array) && dataIndex != null && dataIndex >= 0) {\n var points = data.getLayout('points');\n var symbol = data.getItemGraphicEl(dataIndex);\n\n if (!symbol) {\n // Create a temporary symbol if it is not exists\n var x = points[dataIndex * 2];\n var y = points[dataIndex * 2 + 1];\n\n if (isNaN(x) || isNaN(y)) {\n // Null data\n return;\n } // fix #11360: should't draw symbol outside clipShapeForSymbol\n\n\n if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) {\n return;\n }\n\n var zlevel = seriesModel.get('zlevel');\n var z = seriesModel.get('z');\n symbol = new SymbolClz(data, dataIndex);\n symbol.x = x;\n symbol.y = y;\n symbol.setZ(zlevel, z); // ensure label text of the temporary symbol is in front of line and area polygon\n\n var symbolLabel = symbol.getSymbolPath().getTextContent();\n\n if (symbolLabel) {\n symbolLabel.zlevel = zlevel;\n symbolLabel.z = z;\n symbolLabel.z2 = this._polyline.z2 + 1;\n }\n\n symbol.__temp = true;\n data.setItemGraphicEl(dataIndex, symbol); // Stop scale animation\n\n symbol.stopSymbolAnimation(true);\n this.group.add(symbol);\n }\n\n symbol.highlight();\n } else {\n // Highlight whole series\n ChartView.prototype.highlight.call(this, seriesModel, ecModel, api, payload);\n }\n };\n\n LineView.prototype.downplay = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, payload);\n\n this._changePolyState('normal');\n\n if (dataIndex != null && dataIndex >= 0) {\n var symbol = data.getItemGraphicEl(dataIndex);\n\n if (symbol) {\n if (symbol.__temp) {\n data.setItemGraphicEl(dataIndex, null);\n this.group.remove(symbol);\n } else {\n symbol.downplay();\n }\n }\n } else {\n // FIXME\n // can not downplay completely.\n // Downplay whole series\n ChartView.prototype.downplay.call(this, seriesModel, ecModel, api, payload);\n }\n };\n\n LineView.prototype._changePolyState = function (toState) {\n var polygon = this._polygon;\n setStatesFlag(this._polyline, toState);\n polygon && setStatesFlag(polygon, toState);\n };\n\n LineView.prototype._newPolyline = function (points) {\n var polyline = this._polyline; // Remove previous created polyline\n\n if (polyline) {\n this._lineGroup.remove(polyline);\n }\n\n polyline = new ECPolyline({\n shape: {\n points: points\n },\n segmentIgnoreThreshold: 2,\n z2: 10\n });\n\n this._lineGroup.add(polyline);\n\n this._polyline = polyline;\n return polyline;\n };\n\n LineView.prototype._newPolygon = function (points, stackedOnPoints) {\n var polygon = this._polygon; // Remove previous created polygon\n\n if (polygon) {\n this._lineGroup.remove(polygon);\n }\n\n polygon = new ECPolygon({\n shape: {\n points: points,\n stackedOnPoints: stackedOnPoints\n },\n segmentIgnoreThreshold: 2\n });\n\n this._lineGroup.add(polygon);\n\n this._polygon = polygon;\n return polygon;\n };\n\n LineView.prototype._initSymbolLabelAnimation = function (data, coordSys, clipShape) {\n var isHorizontalOrRadial;\n var isCoordSysPolar;\n var baseAxis = coordSys.getBaseAxis();\n var isAxisInverse = baseAxis.inverse;\n\n if (coordSys.type === 'cartesian2d') {\n isHorizontalOrRadial = baseAxis.isHorizontal();\n isCoordSysPolar = false;\n } else if (coordSys.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n isCoordSysPolar = true;\n }\n\n var seriesModel = data.hostModel;\n var seriesDuration = seriesModel.get('animationDuration');\n\n if (typeof seriesDuration === 'function') {\n seriesDuration = seriesDuration(null);\n }\n\n var seriesDalay = seriesModel.get('animationDelay') || 0;\n var seriesDalayValue = typeof seriesDalay === 'function' ? seriesDalay(null) : seriesDalay;\n data.eachItemGraphicEl(function (symbol, idx) {\n var el = symbol;\n\n if (el) {\n var point = [symbol.x, symbol.y];\n var start = void 0;\n var end = void 0;\n var current = void 0;\n\n if (clipShape) {\n if (isCoordSysPolar) {\n var polarClip = clipShape;\n var coord = coordSys.pointToCoord(point);\n\n if (isHorizontalOrRadial) {\n start = polarClip.startAngle;\n end = polarClip.endAngle;\n current = -coord[1] / 180 * Math.PI;\n } else {\n start = polarClip.r0;\n end = polarClip.r;\n current = coord[0];\n }\n } else {\n var gridClip = clipShape;\n\n if (isHorizontalOrRadial) {\n start = gridClip.x;\n end = gridClip.x + gridClip.width;\n current = symbol.x;\n } else {\n start = gridClip.y + gridClip.height;\n end = gridClip.y;\n current = symbol.y;\n }\n }\n }\n\n var ratio = end === start ? 0 : (current - start) / (end - start);\n\n if (isAxisInverse) {\n ratio = 1 - ratio;\n }\n\n var delay = typeof seriesDalay === 'function' ? seriesDalay(idx) : seriesDuration * ratio + seriesDalayValue;\n var symbolPath = el.getSymbolPath();\n var text = symbolPath.getTextContent();\n el.attr({\n scaleX: 0,\n scaleY: 0\n });\n el.animateTo({\n scaleX: 1,\n scaleY: 1\n }, {\n duration: 200,\n delay: delay\n });\n\n if (text) {\n text.animateFrom({\n style: {\n opacity: 0\n }\n }, {\n duration: 300,\n delay: delay\n });\n }\n\n symbolPath.disableLabelAnimation = true;\n }\n });\n };\n\n LineView.prototype._initOrUpdateEndLabel = function (seriesModel, coordSys, inheritColor) {\n var endLabelModel = seriesModel.getModel('endLabel');\n\n if (endLabelModel.get('show')) {\n var data_2 = seriesModel.getData();\n var polyline = this._polyline;\n var endLabel = this._endLabel;\n\n if (!endLabel) {\n endLabel = this._endLabel = new graphic.Text({\n z2: 200 // should be higher than item symbol\n\n });\n endLabel.ignoreClip = true;\n polyline.setTextContent(this._endLabel);\n polyline.disableLabelAnimation = true;\n } // Find last non-NaN data to display data\n\n\n var dataIndex = getLastIndexNotNull(data_2.getLayout('points'));\n\n if (dataIndex >= 0) {\n setLabelStyle(polyline, getLabelStatesModels(seriesModel, 'endLabel'), {\n inheritColor: inheritColor,\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: function (dataIndex, opt, interpolatedValue) {\n return interpolatedValue != null ? getDefaultInterpolatedLabel(data_2, interpolatedValue) : getDefaultLabel(data_2, dataIndex);\n },\n enableTextSetter: true\n }, getEndLabelStateSpecified(endLabelModel, coordSys));\n polyline.textConfig.position = null;\n }\n } else if (this._endLabel) {\n this._polyline.removeTextContent();\n\n this._endLabel = null;\n }\n };\n\n LineView.prototype._endLabelOnDuring = function (percent, clipRect, data, animationRecord, valueAnimation, endLabelModel, coordSys) {\n var endLabel = this._endLabel;\n var polyline = this._polyline;\n\n if (endLabel) {\n // NOTE: Don't remove percent < 1. percent === 1 means the first frame during render.\n // The label is not prepared at this time.\n if (percent < 1 && animationRecord.originalX == null) {\n animationRecord.originalX = endLabel.x;\n animationRecord.originalY = endLabel.y;\n }\n\n var points = data.getLayout('points');\n var seriesModel = data.hostModel;\n var connectNulls = seriesModel.get('connectNulls');\n var precision = endLabelModel.get('precision');\n var distance = endLabelModel.get('distance') || 0;\n var baseAxis = coordSys.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var isBaseInversed = baseAxis.inverse;\n var clipShape = clipRect.shape;\n var xOrY = isBaseInversed ? isHorizontal ? clipShape.x : clipShape.y + clipShape.height : isHorizontal ? clipShape.x + clipShape.width : clipShape.y;\n var distanceX = (isHorizontal ? distance : 0) * (isBaseInversed ? -1 : 1);\n var distanceY = (isHorizontal ? 0 : -distance) * (isBaseInversed ? -1 : 1);\n var dim = isHorizontal ? 'x' : 'y';\n var dataIndexRange = getIndexRange(points, xOrY, dim);\n var indices = dataIndexRange.range;\n var diff = indices[1] - indices[0];\n var value = void 0;\n\n if (diff >= 1) {\n // diff > 1 && connectNulls, which is on the null data.\n if (diff > 1 && !connectNulls) {\n var pt = getPointAtIndex(points, indices[0]);\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n valueAnimation && (value = seriesModel.getRawValue(indices[0]));\n } else {\n var pt = polyline.getPointOn(xOrY, dim);\n pt && endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n var startValue = seriesModel.getRawValue(indices[0]);\n var endValue = seriesModel.getRawValue(indices[1]);\n valueAnimation && (value = modelUtil.interpolateRawValues(data, precision, startValue, endValue, dataIndexRange.t));\n }\n\n animationRecord.lastFrameIndex = indices[0];\n } else {\n // If diff <= 0, which is the range is not found(Include NaN)\n // Choose the first point or last point.\n var idx = percent === 1 || animationRecord.lastFrameIndex > 0 ? indices[0] : 0;\n var pt = getPointAtIndex(points, idx);\n valueAnimation && (value = seriesModel.getRawValue(idx));\n endLabel.attr({\n x: pt[0] + distanceX,\n y: pt[1] + distanceY\n });\n }\n\n if (valueAnimation) {\n labelInner(endLabel).setLabelText(value);\n }\n }\n };\n /**\n * @private\n */\n // FIXME Two value axis\n\n\n LineView.prototype._doUpdateAnimation = function (data, stackedOnPoints, coordSys, api, step, valueOrigin) {\n var polyline = this._polyline;\n var polygon = this._polygon;\n var seriesModel = data.hostModel;\n var diff = lineAnimationDiff(this._data, data, this._stackedOnPoints, stackedOnPoints, this._coordSys, coordSys, this._valueOrigin, valueOrigin);\n var current = diff.current;\n var stackedOnCurrent = diff.stackedOnCurrent;\n var next = diff.next;\n var stackedOnNext = diff.stackedOnNext;\n\n if (step) {\n // TODO If stacked series is not step\n current = turnPointsIntoStep(diff.current, coordSys, step);\n stackedOnCurrent = turnPointsIntoStep(diff.stackedOnCurrent, coordSys, step);\n next = turnPointsIntoStep(diff.next, coordSys, step);\n stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step);\n } // Don't apply animation if diff is large.\n // For better result and avoid memory explosion problems like\n // https://github.com/apache/incubator-echarts/issues/12229\n\n\n if (getBoundingDiff(current, next) > 3000 || polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) {\n polyline.setShape({\n points: next\n });\n\n if (polygon) {\n polygon.setShape({\n points: next,\n stackedOnPoints: stackedOnNext\n });\n }\n\n return;\n }\n\n polyline.shape.__points = diff.current;\n polyline.shape.points = current;\n var target = {\n shape: {\n points: next\n }\n }; // Also animate the original points.\n // If points reference is changed when turning into step line.\n\n if (diff.current !== current) {\n target.shape.__points = diff.next;\n } // Stop previous animation.\n\n\n polyline.stopAnimation();\n graphic.updateProps(polyline, target, seriesModel);\n\n if (polygon) {\n polygon.setShape({\n // Reuse the points with polyline.\n points: current,\n stackedOnPoints: stackedOnCurrent\n });\n polygon.stopAnimation();\n graphic.updateProps(polygon, {\n shape: {\n stackedOnPoints: stackedOnNext\n }\n }, seriesModel); // If use attr directly in updateProps.\n\n if (polyline.shape.points !== polygon.shape.points) {\n polygon.shape.points = polyline.shape.points;\n }\n }\n\n var updatedDataInfo = [];\n var diffStatus = diff.status;\n\n for (var i = 0; i < diffStatus.length; i++) {\n var cmd = diffStatus[i].cmd;\n\n if (cmd === '=') {\n var el = data.getItemGraphicEl(diffStatus[i].idx1);\n\n if (el) {\n updatedDataInfo.push({\n el: el,\n ptIdx: i // Index of points\n\n });\n }\n }\n }\n\n if (polyline.animators && polyline.animators.length) {\n polyline.animators[0].during(function () {\n polygon && polygon.dirtyShape();\n var points = polyline.shape.__points;\n\n for (var i = 0; i < updatedDataInfo.length; i++) {\n var el = updatedDataInfo[i].el;\n var offset = updatedDataInfo[i].ptIdx * 2;\n el.x = points[offset];\n el.y = points[offset + 1];\n el.markRedraw();\n }\n });\n }\n };\n\n LineView.prototype.remove = function (ecModel) {\n var group = this.group;\n var oldData = this._data;\n\n this._lineGroup.removeAll();\n\n this._symbolDraw.remove(true); // Remove temporary created elements when highlighting\n\n\n oldData && oldData.eachItemGraphicEl(function (el, idx) {\n if (el.__temp) {\n group.remove(el);\n oldData.setItemGraphicEl(idx, null);\n }\n });\n this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null;\n };\n\n LineView.type = 'line';\n return LineView;\n}(ChartView);\n\nexport default LineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport { map } from 'zrender/lib/core/util';\nimport createRenderPlanner from '../chart/helper/createRenderPlanner';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\nimport { createFloat32Array } from '../util/vendor';\nexport default function pointsLayout(seriesType, forceStoreInTypedArray) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n var dimInfo0 = data.getDimensionInfo(dims[0]);\n var dimInfo1 = data.getDimensionInfo(dims[1]);\n var dimIdx0 = dimInfo0 && dimInfo0.index;\n var dimIdx1 = dimInfo1 && dimInfo1.index;\n return dimLen && {\n progress: function (params, data) {\n var segCount = params.end - params.start;\n var points = useTypedArray && createFloat32Array(segCount * dimLen);\n var tmpIn = [];\n var tmpOut = [];\n\n for (var i = params.start, offset = 0; i < params.end; i++) {\n var point = void 0;\n\n if (dimLen === 1) {\n var x = data.getByDimIdx(dimIdx0, i); // NOTE: Make sure the second parameter is null to use default strategy.\n\n point = coordSys.dataToPoint(x, null, tmpOut);\n } else {\n tmpIn[0] = data.getByDimIdx(dimIdx0, i);\n tmpIn[1] = data.getByDimIdx(dimIdx1, i); // Let coordinate system to handle the NaN data.\n\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n } else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n}\n;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar samplers = {\n average: function (frame) {\n var sum = 0;\n var count = 0;\n\n for (var i = 0; i < frame.length; i++) {\n if (!isNaN(frame[i])) {\n sum += frame[i];\n count++;\n }\n } // Return NaN if count is 0\n\n\n return count === 0 ? NaN : sum / count;\n },\n sum: function (frame) {\n var sum = 0;\n\n for (var i = 0; i < frame.length; i++) {\n // Ignore NaN\n sum += frame[i] || 0;\n }\n\n return sum;\n },\n max: function (frame) {\n var max = -Infinity;\n\n for (var i = 0; i < frame.length; i++) {\n frame[i] > max && (max = frame[i]);\n } // NaN will cause illegal axis extent.\n\n\n return isFinite(max) ? max : NaN;\n },\n min: function (frame) {\n var min = Infinity;\n\n for (var i = 0; i < frame.length; i++) {\n frame[i] < min && (min = frame[i]);\n } // NaN will cause illegal axis extent.\n\n\n return isFinite(min) ? min : NaN;\n },\n // TODO\n // Median\n nearest: function (frame) {\n return frame[0];\n }\n};\n\nvar indexSampler = function (frame) {\n return Math.round(frame.length / 2);\n};\n\nexport default function dataSample(seriesType) {\n return {\n seriesType: seriesType,\n // FIXME:TS never used, so comment it\n // modifyOutputEnd: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var sampling = seriesModel.get('sampling');\n var coordSys = seriesModel.coordinateSystem;\n var count = data.count(); // Only cartesian2d support down sampling. Disable it when there is few data.\n\n if (count > 10 && coordSys.type === 'cartesian2d' && sampling) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var extent = baseAxis.getExtent();\n var dpr = api.getDevicePixelRatio(); // Coordinste system has been resized\n\n var size = Math.abs(extent[1] - extent[0]) * (dpr || 1);\n var rate = Math.round(count / size);\n\n if (rate > 1) {\n if (sampling === 'lttb') {\n seriesModel.setData(data.lttbDownSample(data.mapDimension(valueAxis.dim), 1 / rate));\n }\n\n var sampler = void 0;\n\n if (typeof sampling === 'string') {\n sampler = samplers[sampling];\n } else if (typeof sampling === 'function') {\n sampler = sampling;\n }\n\n if (sampler) {\n // Only support sample the first dim mapped from value axis.\n seriesModel.setData(data.downSample(data.mapDimension(valueAxis.dim), 1 / rate, sampler, indexSampler));\n }\n }\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LineSeries from './LineSeries';\nimport LineView from './LineView'; // In case developer forget to include grid component\n\nimport layoutPoints from '../../layout/points';\nimport dataSample from '../../processor/dataSample';\nexport function install(registers) {\n registers.registerChartView(LineView);\n registers.registerSeriesModel(LineSeries);\n registers.registerLayout(layoutPoints('line', true));\n registers.registerVisual({\n seriesType: 'line',\n reset: function (seriesModel) {\n var data = seriesModel.getData(); // Visual coding for legend\n\n var lineStyle = seriesModel.getModel('lineStyle').getLineStyle();\n\n if (lineStyle && !lineStyle.stroke) {\n // Fill in visual should be palette color if\n // has color callback\n lineStyle.stroke = data.getVisual('style').fill;\n }\n\n data.setVisual('legendLineStyle', lineStyle);\n }\n }); // Down sample after filter\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('line'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\n\nvar BaseBarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BaseBarSeriesModel, _super);\n\n function BaseBarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BaseBarSeriesModel.type;\n return _this;\n }\n\n BaseBarSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n BaseBarSeriesModel.prototype.getMarkerPosition = function (value) {\n var coordSys = this.coordinateSystem;\n\n if (coordSys) {\n // PENDING if clamp ?\n var pt = coordSys.dataToPoint(coordSys.clampData(value));\n var data = this.getData();\n var offset = data.getLayout('offset');\n var size = data.getLayout('size');\n var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;\n pt[offsetIndex] += offset + size / 2;\n return pt;\n }\n\n return [NaN, NaN];\n };\n\n BaseBarSeriesModel.type = 'series.__base_bar__';\n BaseBarSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // stack: null\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n barMinHeight: 0,\n barMinAngle: 0,\n // cursor: null,\n large: false,\n largeThreshold: 400,\n progressive: 3e3,\n progressiveChunkMode: 'mod'\n };\n return BaseBarSeriesModel;\n}(SeriesModel);\n\nSeriesModel.registerClass(BaseBarSeriesModel);\nexport default BaseBarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseBarSeriesModel from './BaseBarSeries';\nimport createListFromArray from '../helper/createListFromArray';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar BarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BarSeriesModel, _super);\n\n function BarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BarSeriesModel.type;\n return _this;\n }\n\n BarSeriesModel.prototype.getInitialData = function () {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true,\n createInvertedIndices: !!this.get('realtimeSort', true) || null\n });\n };\n /**\n * @override\n */\n\n\n BarSeriesModel.prototype.getProgressive = function () {\n // Do not support progressive in normal mode.\n return this.get('large') ? this.get('progressive') : false;\n };\n /**\n * @override\n */\n\n\n BarSeriesModel.prototype.getProgressiveThreshold = function () {\n // Do not support progressive in normal mode.\n var progressiveThreshold = this.get('progressiveThreshold');\n var largeThreshold = this.get('largeThreshold');\n\n if (largeThreshold > progressiveThreshold) {\n progressiveThreshold = largeThreshold;\n }\n\n return progressiveThreshold;\n };\n\n BarSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.rect(data.getItemLayout(dataIndex));\n };\n\n BarSeriesModel.type = 'series.bar';\n BarSeriesModel.dependencies = ['grid', 'polar'];\n BarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n // If clipped\n // Only available on cartesian2d\n clip: true,\n roundCap: false,\n showBackground: false,\n backgroundStyle: {\n color: 'rgba(180, 180, 180, 0.2)',\n borderColor: null,\n borderWidth: 0,\n borderType: 'solid',\n borderRadius: 0,\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n realtimeSort: false\n });\n return BarSeriesModel;\n}(BaseBarSeriesModel);\n\nexport default BarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { Path } from '../graphic';\n/**\n * Sausage: similar to sector, but have half circle on both sides\n */\n\nvar SausageShape =\n/** @class */\nfunction () {\n function SausageShape() {\n this.cx = 0;\n this.cy = 0;\n this.r0 = 0;\n this.r = 0;\n this.startAngle = 0;\n this.endAngle = Math.PI * 2;\n this.clockwise = true;\n }\n\n return SausageShape;\n}();\n\nvar SausagePath =\n/** @class */\nfunction (_super) {\n __extends(SausagePath, _super);\n\n function SausagePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'sausage';\n return _this;\n }\n\n SausagePath.prototype.getDefaultShape = function () {\n return new SausageShape();\n };\n\n SausagePath.prototype.buildPath = function (ctx, shape) {\n var x = shape.cx;\n var y = shape.cy;\n var r0 = Math.max(shape.r0 || 0, 0);\n var r = Math.max(shape.r, 0);\n var dr = (r - r0) * 0.5;\n var rCenter = r0 + dr;\n var startAngle = shape.startAngle;\n var endAngle = shape.endAngle;\n var clockwise = shape.clockwise;\n var unitStartX = Math.cos(startAngle);\n var unitStartY = Math.sin(startAngle);\n var unitEndX = Math.cos(endAngle);\n var unitEndY = Math.sin(endAngle);\n var lessThanCircle = clockwise ? endAngle - startAngle < Math.PI * 2 : startAngle - endAngle < Math.PI * 2;\n\n if (lessThanCircle) {\n ctx.moveTo(unitStartX * r0 + x, unitStartY * r0 + y);\n ctx.arc(unitStartX * rCenter + x, unitStartY * rCenter + y, dr, -Math.PI + startAngle, startAngle, !clockwise);\n }\n\n ctx.arc(x, y, r, startAngle, endAngle, !clockwise);\n ctx.moveTo(unitEndX * r + x, unitEndY * r + y);\n ctx.arc(unitEndX * rCenter + x, unitEndY * rCenter + y, dr, endAngle - Math.PI * 2, endAngle - Math.PI, !clockwise);\n\n if (r0 !== 0) {\n ctx.arc(x, y, r0, endAngle, startAngle, clockwise);\n ctx.moveTo(unitStartX * r0 + x, unitEndY * r0 + y);\n }\n\n ctx.closePath();\n };\n\n return SausagePath;\n}(Path);\n\nexport default SausagePath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Path from 'zrender/lib/graphic/Path';\nimport Group from 'zrender/lib/graphic/Group';\nimport { extend, defaults, each, map } from 'zrender/lib/core/util';\nimport { Rect, Sector, updateProps, initProps, removeElementWithFadeOut } from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels, setLabelValueAnimation } from '../../label/labelStyle';\nimport { throttle } from '../../util/throttle';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport Sausage from '../../util/shape/sausage';\nimport ChartView from '../../view/Chart';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getDefaultLabel, getDefaultInterpolatedLabel } from '../helper/labelHelper';\nimport { warn } from '../../util/log';\nvar _eventPos = [0, 0];\nvar mathMax = Math.max;\nvar mathMin = Math.min;\n\nfunction getClipArea(coord, data) {\n var coordSysClipArea = coord.getArea && coord.getArea();\n\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n var baseAxis = coord.getBaseAxis(); // When boundaryGap is false or using time axis. bar may exceed the grid.\n // We should not clip this part.\n // See test/bar2.html\n\n if (baseAxis.type !== 'category' || !baseAxis.onBand) {\n var expandWidth = data.getLayout('bandWidth');\n\n if (baseAxis.isHorizontal()) {\n coordSysClipArea.x -= expandWidth;\n coordSysClipArea.width += expandWidth * 2;\n } else {\n coordSysClipArea.y -= expandWidth;\n coordSysClipArea.height += expandWidth * 2;\n }\n }\n }\n\n return coordSysClipArea;\n}\n\nvar BarView =\n/** @class */\nfunction (_super) {\n __extends(BarView, _super);\n\n function BarView() {\n var _this = _super.call(this) || this;\n\n _this.type = BarView.type;\n _this._isFirstFrame = true;\n return _this;\n }\n\n BarView.prototype.render = function (seriesModel, ecModel, api, payload) {\n this._model = seriesModel;\n\n this._removeOnRenderedListener(api);\n\n this._updateDrawMode(seriesModel);\n\n var coordinateSystemType = seriesModel.get('coordinateSystem');\n\n if (coordinateSystemType === 'cartesian2d' || coordinateSystemType === 'polar') {\n this._isLargeDraw ? this._renderLarge(seriesModel, ecModel, api) : this._renderNormal(seriesModel, ecModel, api, payload);\n } else if (process.env.NODE_ENV !== 'production') {\n warn('Only cartesian2d and polar supported for bar.');\n }\n };\n\n BarView.prototype.incrementalPrepareRender = function (seriesModel) {\n this._clear();\n\n this._updateDrawMode(seriesModel); // incremental also need to clip, otherwise might be overlow.\n // But must not set clip in each frame, otherwise all of the children will be marked redraw.\n\n\n this._updateLargeClip(seriesModel);\n };\n\n BarView.prototype.incrementalRender = function (params, seriesModel) {\n // Do not support progressive in normal mode.\n this._incrementalRenderLarge(params, seriesModel);\n };\n\n BarView.prototype._updateDrawMode = function (seriesModel) {\n var isLargeDraw = seriesModel.pipelineContext.large;\n\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n\n this._clear();\n }\n };\n\n BarView.prototype._renderNormal = function (seriesModel, ecModel, api, payload) {\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n var coord = seriesModel.coordinateSystem;\n var baseAxis = coord.getBaseAxis();\n var isHorizontalOrRadial;\n\n if (coord.type === 'cartesian2d') {\n isHorizontalOrRadial = baseAxis.isHorizontal();\n } else if (coord.type === 'polar') {\n isHorizontalOrRadial = baseAxis.dim === 'angle';\n }\n\n var animationModel = seriesModel.isAnimationEnabled() ? seriesModel : null;\n var realtimeSortCfg = shouldRealtimeSort(seriesModel, coord);\n\n if (realtimeSortCfg) {\n this._enableRealtimeSort(realtimeSortCfg, data, api);\n }\n\n var needsClip = seriesModel.get('clip', true) || realtimeSortCfg;\n var coordSysClipArea = getClipArea(coord, data); // If there is clipPath created in large mode. Remove it.\n\n group.removeClipPath(); // We don't use clipPath in normal mode because we needs a perfect animation\n // And don't want the label are clipped.\n\n var roundCap = seriesModel.get('roundCap', true);\n var drawBackground = seriesModel.get('showBackground', true);\n var backgroundModel = seriesModel.getModel('backgroundStyle');\n var barBorderRadius = backgroundModel.get('borderRadius') || 0;\n var bgEls = [];\n var oldBgEls = this._backgroundEls;\n var isInitSort = payload && payload.isInitSort;\n var isChangeOrder = payload && payload.type === 'changeAxisOrder';\n\n function createBackground(dataIndex) {\n var bgLayout = getLayout[coord.type](data, dataIndex);\n var bgEl = createBackgroundEl(coord, isHorizontalOrRadial, bgLayout);\n bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius.\n\n if (coord.type === 'cartesian2d') {\n bgEl.setShape('r', barBorderRadius);\n }\n\n bgEls[dataIndex] = bgEl;\n return bgEl;\n }\n\n ;\n data.diff(oldData).add(function (dataIndex) {\n var itemModel = data.getItemModel(dataIndex);\n var layout = getLayout[coord.type](data, dataIndex, itemModel);\n\n if (drawBackground) {\n createBackground(dataIndex);\n } // If dataZoom in filteMode: 'empty', the baseValue can be set as NaN in \"axisProxy\".\n\n\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n var isClipped = false;\n\n if (needsClip) {\n // Clip will modify the layout params.\n // And return a boolean to determine if the shape are fully clipped.\n isClipped = clip[coord.type](coordSysClipArea, layout);\n }\n\n var el = elementCreator[coord.type](seriesModel, data, dataIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, false, roundCap);\n updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');\n\n if (isInitSort) {\n el.attr({\n shape: layout\n });\n } else if (realtimeSortCfg) {\n updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, dataIndex, isHorizontalOrRadial, false, false);\n } else {\n initProps(el, {\n shape: layout\n }, seriesModel, dataIndex);\n }\n\n data.setItemGraphicEl(dataIndex, el);\n group.add(el);\n el.ignore = isClipped;\n }).update(function (newIndex, oldIndex) {\n var itemModel = data.getItemModel(newIndex);\n var layout = getLayout[coord.type](data, newIndex, itemModel);\n\n if (drawBackground) {\n var bgEl = void 0;\n\n if (oldBgEls.length === 0) {\n bgEl = createBackground(oldIndex);\n } else {\n bgEl = oldBgEls[oldIndex];\n bgEl.useStyle(backgroundModel.getItemStyle()); // Only cartesian2d support borderRadius.\n\n if (coord.type === 'cartesian2d') {\n bgEl.setShape('r', barBorderRadius);\n }\n\n bgEls[newIndex] = bgEl;\n }\n\n var bgLayout = getLayout[coord.type](data, newIndex);\n var shape = createBackgroundShape(isHorizontalOrRadial, bgLayout, coord);\n updateProps(bgEl, {\n shape: shape\n }, animationModel, newIndex);\n }\n\n var el = oldData.getItemGraphicEl(oldIndex);\n\n if (!data.hasValue(newIndex)) {\n group.remove(el);\n el = null;\n return;\n }\n\n var isClipped = false;\n\n if (needsClip) {\n isClipped = clip[coord.type](coordSysClipArea, layout);\n\n if (isClipped) {\n group.remove(el);\n }\n }\n\n if (!el) {\n el = elementCreator[coord.type](seriesModel, data, newIndex, layout, isHorizontalOrRadial, animationModel, baseAxis.model, !!el, roundCap);\n } // Not change anything if only order changed.\n // Especially not change label.\n\n\n if (!isChangeOrder) {\n updateStyle(el, data, newIndex, itemModel, layout, seriesModel, isHorizontalOrRadial, coord.type === 'polar');\n }\n\n if (isInitSort) {\n el.attr({\n shape: layout\n });\n } else if (realtimeSortCfg) {\n updateRealtimeAnimation(realtimeSortCfg, animationModel, el, layout, newIndex, isHorizontalOrRadial, true, isChangeOrder);\n } else {\n updateProps(el, {\n shape: layout\n }, seriesModel, newIndex, null);\n }\n\n data.setItemGraphicEl(newIndex, el);\n el.ignore = isClipped;\n group.add(el);\n }).remove(function (dataIndex) {\n var el = oldData.getItemGraphicEl(dataIndex);\n el && removeElementWithFadeOut(el, seriesModel, dataIndex);\n }).execute();\n var bgGroup = this._backgroundGroup || (this._backgroundGroup = new Group());\n bgGroup.removeAll();\n\n for (var i = 0; i < bgEls.length; ++i) {\n bgGroup.add(bgEls[i]);\n }\n\n group.add(bgGroup);\n this._backgroundEls = bgEls;\n this._data = data;\n };\n\n BarView.prototype._renderLarge = function (seriesModel, ecModel, api) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n\n this._updateLargeClip(seriesModel);\n };\n\n BarView.prototype._incrementalRenderLarge = function (params, seriesModel) {\n this._removeBackground();\n\n createLarge(seriesModel, this.group, true);\n };\n\n BarView.prototype._updateLargeClip = function (seriesModel) {\n // Use clipPath in large mode.\n var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n };\n\n BarView.prototype._enableRealtimeSort = function (realtimeSortCfg, data, api) {\n var _this = this; // If no data in the first frame, wait for data to initSort\n\n\n if (!data.count()) {\n return;\n }\n\n var baseAxis = realtimeSortCfg.baseAxis;\n\n if (this._isFirstFrame) {\n this._dispatchInitSort(data, realtimeSortCfg, api);\n\n this._isFirstFrame = false;\n } else {\n var orderMapping_1 = function (idx) {\n var el = data.getItemGraphicEl(idx);\n\n if (el) {\n var shape = el.shape; // If data is NaN, shape.xxx may be NaN, so use || 0 here in case\n\n return (baseAxis.isHorizontal() // The result should be consistent with the initial sort by data value.\n // Do not support the case that both positive and negative exist.\n ? Math.abs(shape.height) : Math.abs(shape.width)) || 0;\n } else {\n return 0;\n }\n };\n\n this._onRendered = function () {\n _this._updateSortWithinSameData(data, orderMapping_1, baseAxis, api);\n };\n\n api.getZr().on('rendered', this._onRendered);\n }\n };\n\n BarView.prototype._dataSort = function (data, baseAxis, orderMapping) {\n var info = [];\n data.each(data.mapDimension(baseAxis.dim), function (ordinalNumber, dataIdx) {\n var mappedValue = orderMapping(dataIdx);\n mappedValue = mappedValue == null ? NaN : mappedValue;\n info.push({\n dataIndex: dataIdx,\n mappedValue: mappedValue,\n ordinalNumber: ordinalNumber\n });\n });\n info.sort(function (a, b) {\n // If NaN, it will be treated as min val.\n return b.mappedValue - a.mappedValue;\n });\n return {\n ordinalNumbers: map(info, function (item) {\n return item.ordinalNumber;\n })\n };\n };\n\n BarView.prototype._isOrderChangedWithinSameData = function (data, orderMapping, baseAxis) {\n var scale = baseAxis.scale;\n var ordinalDataDim = data.mapDimension(baseAxis.dim);\n var lastValue = Number.MAX_VALUE;\n\n for (var tickNum = 0, len = scale.getOrdinalMeta().categories.length; tickNum < len; ++tickNum) {\n var rawIdx = data.rawIndexOf(ordinalDataDim, scale.getRawOrdinalNumber(tickNum));\n var value = rawIdx < 0 // If some tick have no bar, the tick will be treated as min.\n ? Number.MIN_VALUE // PENDING: if dataZoom on baseAxis exits, is it a performance issue?\n : orderMapping(data.indexOfRawIndex(rawIdx));\n\n if (value > lastValue) {\n return true;\n }\n\n lastValue = value;\n }\n\n return false;\n };\n /*\n * Consider the case when A and B changed order, whose representing\n * bars are both out of sight, we don't wish to trigger reorder action\n * as long as the order in the view doesn't change.\n */\n\n\n BarView.prototype._isOrderDifferentInView = function (orderInfo, baseAxis) {\n var scale = baseAxis.scale;\n var extent = scale.getExtent();\n var tickNum = Math.max(0, extent[0]);\n var tickMax = Math.min(extent[1], scale.getOrdinalMeta().categories.length - 1);\n\n for (; tickNum <= tickMax; ++tickNum) {\n if (orderInfo.ordinalNumbers[tickNum] !== scale.getRawOrdinalNumber(tickNum)) {\n return true;\n }\n }\n };\n\n BarView.prototype._updateSortWithinSameData = function (data, orderMapping, baseAxis, api) {\n if (!this._isOrderChangedWithinSameData(data, orderMapping, baseAxis)) {\n return;\n }\n\n var sortInfo = this._dataSort(data, baseAxis, orderMapping);\n\n if (this._isOrderDifferentInView(sortInfo, baseAxis)) {\n this._removeOnRenderedListener(api);\n\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n axisId: baseAxis.index,\n sortInfo: sortInfo\n });\n }\n };\n\n BarView.prototype._dispatchInitSort = function (data, realtimeSortCfg, api) {\n var baseAxis = realtimeSortCfg.baseAxis;\n\n var sortResult = this._dataSort(data, baseAxis, function (dataIdx) {\n return data.get(data.mapDimension(realtimeSortCfg.otherAxis.dim), dataIdx);\n });\n\n api.dispatchAction({\n type: 'changeAxisOrder',\n componentType: baseAxis.dim + 'Axis',\n isInitSort: true,\n axisId: baseAxis.index,\n sortInfo: sortResult,\n animation: {\n // Update the axis label from the natural initial layout to\n // sorted layout should has no animation.\n duration: 0\n }\n });\n };\n\n BarView.prototype.remove = function (ecModel, api) {\n this._clear(this._model);\n\n this._removeOnRenderedListener(api);\n };\n\n BarView.prototype.dispose = function (ecModel, api) {\n this._removeOnRenderedListener(api);\n };\n\n BarView.prototype._removeOnRenderedListener = function (api) {\n if (this._onRendered) {\n api.getZr().off('rendered', this._onRendered);\n this._onRendered = null;\n }\n };\n\n BarView.prototype._clear = function (model) {\n var group = this.group;\n var data = this._data;\n\n if (model && model.isAnimationEnabled() && data && !this._isLargeDraw) {\n this._removeBackground();\n\n this._backgroundEls = [];\n data.eachItemGraphicEl(function (el) {\n removeElementWithFadeOut(el, model, getECData(el).dataIndex);\n });\n } else {\n group.removeAll();\n }\n\n this._data = null;\n this._isFirstFrame = true;\n };\n\n BarView.prototype._removeBackground = function () {\n this.group.remove(this._backgroundGroup);\n this._backgroundGroup = null;\n };\n\n BarView.type = 'bar';\n return BarView;\n}(ChartView);\n\nvar clip = {\n cartesian2d: function (coordSysBoundingRect, layout) {\n var signWidth = layout.width < 0 ? -1 : 1;\n var signHeight = layout.height < 0 ? -1 : 1; // Needs positive width and height\n\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n var coordSysX2 = coordSysBoundingRect.x + coordSysBoundingRect.width;\n var coordSysY2 = coordSysBoundingRect.y + coordSysBoundingRect.height;\n var x = mathMax(layout.x, coordSysBoundingRect.x);\n var x2 = mathMin(layout.x + layout.width, coordSysX2);\n var y = mathMax(layout.y, coordSysBoundingRect.y);\n var y2 = mathMin(layout.y + layout.height, coordSysY2);\n var xClipped = x2 < x;\n var yClipped = y2 < y; // When xClipped or yClipped, the element will be marked as `ignore`.\n // But we should also place the element at the edge of the coord sys bounding rect.\n // Beause if data changed and the bar show again, its transition animaiton\n // will begin at this place.\n\n layout.x = xClipped && x > coordSysX2 ? x2 : x;\n layout.y = yClipped && y > coordSysY2 ? y2 : y;\n layout.width = xClipped ? 0 : x2 - x;\n layout.height = yClipped ? 0 : y2 - y; // Reverse back\n\n if (signWidth < 0) {\n layout.x += layout.width;\n layout.width = -layout.width;\n }\n\n if (signHeight < 0) {\n layout.y += layout.height;\n layout.height = -layout.height;\n }\n\n return xClipped || yClipped;\n },\n polar: function (coordSysClipArea, layout) {\n var signR = layout.r0 <= layout.r ? 1 : -1; // Make sure r is larger than r0\n\n if (signR < 0) {\n var tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n var r = mathMin(layout.r, coordSysClipArea.r);\n var r0 = mathMax(layout.r0, coordSysClipArea.r0);\n layout.r = r;\n layout.r0 = r0;\n var clipped = r - r0 < 0; // Reverse back\n\n if (signR < 0) {\n var tmp = layout.r;\n layout.r = layout.r0;\n layout.r0 = tmp;\n }\n\n return clipped;\n }\n};\nvar elementCreator = {\n cartesian2d: function (seriesModel, data, newIndex, layout, isHorizontal, animationModel, axisModel, isUpdate, roundCap) {\n var rect = new Rect({\n shape: extend({}, layout),\n z2: 1\n });\n rect.__dataIndex = newIndex;\n rect.name = 'item';\n\n if (animationModel) {\n var rectShape = rect.shape;\n var animateProperty = isHorizontal ? 'height' : 'width';\n rectShape[animateProperty] = 0;\n }\n\n return rect;\n },\n polar: function (seriesModel, data, newIndex, layout, isRadial, animationModel, axisModel, isUpdate, roundCap) {\n // Keep the same logic with bar in catesion: use end value to control\n // direction. Notice that if clockwise is true (by default), the sector\n // will always draw clockwisely, no matter whether endAngle is greater\n // or less than startAngle.\n var clockwise = layout.startAngle < layout.endAngle;\n var ShapeClass = !isRadial && roundCap ? Sausage : Sector;\n var sector = new ShapeClass({\n shape: defaults({\n clockwise: clockwise\n }, layout),\n z2: 1\n });\n sector.name = 'item'; // Animation\n\n if (animationModel) {\n var sectorShape = sector.shape;\n var animateProperty = isRadial ? 'r' : 'endAngle';\n var animateTarget = {};\n sectorShape[animateProperty] = isRadial ? 0 : layout.startAngle;\n animateTarget[animateProperty] = layout[animateProperty];\n (isUpdate ? updateProps : initProps)(sector, {\n shape: animateTarget // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue\n\n }, animationModel);\n }\n\n return sector;\n }\n};\n\nfunction shouldRealtimeSort(seriesModel, coordSys) {\n var realtimeSortOption = seriesModel.get('realtimeSort', true);\n var baseAxis = coordSys.getBaseAxis();\n\n if (process.env.NODE_ENV !== 'production') {\n if (realtimeSortOption) {\n if (baseAxis.type !== 'category') {\n warn('`realtimeSort` will not work because this bar series is not based on a category axis.');\n }\n\n if (coordSys.type !== 'cartesian2d') {\n warn('`realtimeSort` will not work because this bar series is not on cartesian2d.');\n }\n }\n }\n\n if (realtimeSortOption && baseAxis.type === 'category' && coordSys.type === 'cartesian2d') {\n return {\n baseAxis: baseAxis,\n otherAxis: coordSys.getOtherAxis(baseAxis)\n };\n }\n}\n\nfunction updateRealtimeAnimation(realtimeSortCfg, seriesAnimationModel, el, layout, newIndex, isHorizontal, isUpdate, isChangeOrder) {\n var seriesTarget;\n var axisTarget;\n\n if (isHorizontal) {\n axisTarget = {\n x: layout.x,\n width: layout.width\n };\n seriesTarget = {\n y: layout.y,\n height: layout.height\n };\n } else {\n axisTarget = {\n y: layout.y,\n height: layout.height\n };\n seriesTarget = {\n x: layout.x,\n width: layout.width\n };\n }\n\n if (!isChangeOrder) {\n // Keep the original growth animation if only axis order changed.\n // Not start a new animation.\n (isUpdate ? updateProps : initProps)(el, {\n shape: seriesTarget\n }, seriesAnimationModel, newIndex, null);\n }\n\n var axisAnimationModel = seriesAnimationModel ? realtimeSortCfg.baseAxis.model : null;\n (isUpdate ? updateProps : initProps)(el, {\n shape: axisTarget\n }, axisAnimationModel, newIndex);\n}\n\nvar getLayout = {\n // itemModel is only used to get borderWidth, which is not needed\n // when calculating bar background layout.\n cartesian2d: function (data, dataIndex, itemModel) {\n var layout = data.getItemLayout(dataIndex);\n var fixedLineWidth = itemModel ? getLineWidth(itemModel, layout) : 0; // fix layout with lineWidth\n\n var signX = layout.width > 0 ? 1 : -1;\n var signY = layout.height > 0 ? 1 : -1;\n return {\n x: layout.x + signX * fixedLineWidth / 2,\n y: layout.y + signY * fixedLineWidth / 2,\n width: layout.width - signX * fixedLineWidth,\n height: layout.height - signY * fixedLineWidth\n };\n },\n polar: function (data, dataIndex, itemModel) {\n var layout = data.getItemLayout(dataIndex);\n return {\n cx: layout.cx,\n cy: layout.cy,\n r0: layout.r0,\n r: layout.r,\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n };\n }\n};\n\nfunction isZeroOnPolar(layout) {\n return layout.startAngle != null && layout.endAngle != null && layout.startAngle === layout.endAngle;\n}\n\nfunction updateStyle(el, data, dataIndex, itemModel, layout, seriesModel, isHorizontal, isPolar) {\n var style = data.getItemVisual(dataIndex, 'style');\n\n if (!isPolar) {\n el.setShape('r', itemModel.get(['itemStyle', 'borderRadius']) || 0);\n }\n\n el.useStyle(style);\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && el.attr('cursor', cursorStyle);\n\n if (!isPolar) {\n var labelPositionOutside = isHorizontal ? layout.height > 0 ? 'bottom' : 'top' : layout.width > 0 ? 'left' : 'right';\n var labelStatesModels = getLabelStatesModels(itemModel);\n setLabelStyle(el, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(seriesModel.getData(), dataIndex),\n inheritColor: style.fill,\n defaultOpacity: style.opacity,\n defaultOutsidePosition: labelPositionOutside\n });\n var label = el.getTextContent();\n setLabelValueAnimation(label, labelStatesModels, seriesModel.getRawValue(dataIndex), function (value) {\n return getDefaultInterpolatedLabel(data, value);\n });\n }\n\n var emphasisModel = itemModel.getModel(['emphasis']);\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n setStatesStylesFromModel(el, itemModel);\n\n if (isZeroOnPolar(layout)) {\n el.style.fill = 'none';\n el.style.stroke = 'none';\n each(el.states, function (state) {\n if (state.style) {\n state.style.fill = state.style.stroke = 'none';\n }\n });\n }\n} // In case width or height are too small.\n\n\nfunction getLineWidth(itemModel, rawLayout) {\n // Has no border.\n var borderColor = itemModel.get(['itemStyle', 'borderColor']);\n\n if (!borderColor || borderColor === 'none') {\n return 0;\n }\n\n var lineWidth = itemModel.get(['itemStyle', 'borderWidth']) || 0; // width or height may be NaN for empty data\n\n var width = isNaN(rawLayout.width) ? Number.MAX_VALUE : Math.abs(rawLayout.width);\n var height = isNaN(rawLayout.height) ? Number.MAX_VALUE : Math.abs(rawLayout.height);\n return Math.min(lineWidth, width, height);\n}\n\nvar LagePathShape =\n/** @class */\nfunction () {\n function LagePathShape() {}\n\n return LagePathShape;\n}();\n\nvar LargePath =\n/** @class */\nfunction (_super) {\n __extends(LargePath, _super);\n\n function LargePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'largeBar';\n return _this;\n }\n\n ;\n\n LargePath.prototype.getDefaultShape = function () {\n return new LagePathShape();\n };\n\n LargePath.prototype.buildPath = function (ctx, shape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n var points = shape.points;\n var startPoint = this.__startPoint;\n var baseDimIdx = this.__baseDimIdx;\n\n for (var i = 0; i < points.length; i += 2) {\n startPoint[baseDimIdx] = points[i + baseDimIdx];\n ctx.moveTo(startPoint[0], startPoint[1]);\n ctx.lineTo(points[i], points[i + 1]);\n }\n };\n\n return LargePath;\n}(Path);\n\nfunction createLarge(seriesModel, group, incremental) {\n // TODO support polar\n var data = seriesModel.getData();\n var startPoint = [];\n var baseDimIdx = data.getLayout('valueAxisHorizontal') ? 1 : 0;\n startPoint[1 - baseDimIdx] = data.getLayout('valueAxisStart');\n var largeDataIndices = data.getLayout('largeDataIndices');\n var barWidth = data.getLayout('barWidth');\n var backgroundModel = seriesModel.getModel('backgroundStyle');\n var drawBackground = seriesModel.get('showBackground', true);\n\n if (drawBackground) {\n var points = data.getLayout('largeBackgroundPoints');\n var backgroundStartPoint = [];\n backgroundStartPoint[1 - baseDimIdx] = data.getLayout('backgroundStart');\n var bgEl = new LargePath({\n shape: {\n points: points\n },\n incremental: !!incremental,\n silent: true,\n z2: 0\n });\n bgEl.__startPoint = backgroundStartPoint;\n bgEl.__baseDimIdx = baseDimIdx;\n bgEl.__largeDataIndices = largeDataIndices;\n bgEl.__barWidth = barWidth;\n setLargeBackgroundStyle(bgEl, backgroundModel, data);\n group.add(bgEl);\n }\n\n var el = new LargePath({\n shape: {\n points: data.getLayout('largePoints')\n },\n incremental: !!incremental\n });\n el.__startPoint = startPoint;\n el.__baseDimIdx = baseDimIdx;\n el.__largeDataIndices = largeDataIndices;\n el.__barWidth = barWidth;\n group.add(el);\n setLargeStyle(el, seriesModel, data); // Enable tooltip and user mouse/touch event handlers.\n\n getECData(el).seriesIndex = seriesModel.seriesIndex;\n\n if (!seriesModel.get('silent')) {\n el.on('mousedown', largePathUpdateDataIndex);\n el.on('mousemove', largePathUpdateDataIndex);\n }\n} // Use throttle to avoid frequently traverse to find dataIndex.\n\n\nvar largePathUpdateDataIndex = throttle(function (event) {\n var largePath = this;\n var dataIndex = largePathFindDataIndex(largePath, event.offsetX, event.offsetY);\n getECData(largePath).dataIndex = dataIndex >= 0 ? dataIndex : null;\n}, 30, false);\n\nfunction largePathFindDataIndex(largePath, x, y) {\n var baseDimIdx = largePath.__baseDimIdx;\n var valueDimIdx = 1 - baseDimIdx;\n var points = largePath.shape.points;\n var largeDataIndices = largePath.__largeDataIndices;\n var barWidthHalf = Math.abs(largePath.__barWidth / 2);\n var startValueVal = largePath.__startPoint[valueDimIdx];\n _eventPos[0] = x;\n _eventPos[1] = y;\n var pointerBaseVal = _eventPos[baseDimIdx];\n var pointerValueVal = _eventPos[1 - baseDimIdx];\n var baseLowerBound = pointerBaseVal - barWidthHalf;\n var baseUpperBound = pointerBaseVal + barWidthHalf;\n\n for (var i = 0, len = points.length / 2; i < len; i++) {\n var ii = i * 2;\n var barBaseVal = points[ii + baseDimIdx];\n var barValueVal = points[ii + valueDimIdx];\n\n if (barBaseVal >= baseLowerBound && barBaseVal <= baseUpperBound && (startValueVal <= barValueVal ? pointerValueVal >= startValueVal && pointerValueVal <= barValueVal : pointerValueVal >= barValueVal && pointerValueVal <= startValueVal)) {\n return largeDataIndices[i];\n }\n }\n\n return -1;\n}\n\nfunction setLargeStyle(el, seriesModel, data) {\n var globalStyle = data.getVisual('style');\n el.useStyle(extend({}, globalStyle)); // Use stroke instead of fill.\n\n el.style.fill = null;\n el.style.stroke = globalStyle.fill;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction setLargeBackgroundStyle(el, backgroundModel, data) {\n var borderColor = backgroundModel.get('borderColor') || backgroundModel.get('color');\n var itemStyle = backgroundModel.getItemStyle();\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n el.style.lineWidth = data.getLayout('barWidth');\n}\n\nfunction createBackgroundShape(isHorizontalOrRadial, layout, coord) {\n if (isCoordinateSystemType(coord, 'cartesian2d')) {\n var rectShape = layout;\n var coordLayout = coord.getArea();\n return {\n x: isHorizontalOrRadial ? rectShape.x : coordLayout.x,\n y: isHorizontalOrRadial ? coordLayout.y : rectShape.y,\n width: isHorizontalOrRadial ? rectShape.width : coordLayout.width,\n height: isHorizontalOrRadial ? coordLayout.height : rectShape.height\n };\n } else {\n var coordLayout = coord.getArea();\n var sectorShape = layout;\n return {\n cx: coordLayout.cx,\n cy: coordLayout.cy,\n r0: isHorizontalOrRadial ? coordLayout.r0 : sectorShape.r0,\n r: isHorizontalOrRadial ? coordLayout.r : sectorShape.r,\n startAngle: isHorizontalOrRadial ? sectorShape.startAngle : 0,\n endAngle: isHorizontalOrRadial ? sectorShape.endAngle : Math.PI * 2\n };\n }\n}\n\nfunction createBackgroundEl(coord, isHorizontalOrRadial, layout) {\n var ElementClz = coord.type === 'polar' ? Sector : Rect;\n return new ElementClz({\n shape: createBackgroundShape(isHorizontalOrRadial, layout, coord),\n silent: true,\n z2: 0\n });\n}\n\nexport default BarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { layout, largeLayout } from '../../layout/barGrid';\nimport dataSample from '../../processor/dataSample';\nimport BarSeries from './BarSeries';\nimport BarView from './BarView';\nexport function install(registers) {\n registers.registerChartView(BarView);\n registers.registerSeriesModel(BarSeries);\n registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar')); // Use higher prority to avoid to be blocked by other overall layout, which do not\n // only exist in this module, but probably also exist in other modules, like `barPolar`.\n\n registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, largeLayout); // Down sample after filter\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('bar'));\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n\n registers.registerAction({\n type: 'changeAxisOrder',\n event: 'changeAxisOrder',\n update: 'update'\n }, function (payload, ecModel) {\n var componentType = payload.componentType || 'series';\n ecModel.eachComponent({\n mainType: componentType,\n query: payload\n }, function (componentModel) {\n if (payload.sortInfo) {\n componentModel.axis.setCategorySortInfo(payload.sortInfo);\n }\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parsePercent, linearMap } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/lib/core/util';\nvar PI2 = Math.PI * 2;\nvar RADIAN = Math.PI / 180;\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function pieLayout(seriesType, ecModel, api) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var viewRect = getViewRect(seriesModel, api);\n var center = seriesModel.get('center');\n var radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n var width = parsePercent(viewRect.width, api.getWidth());\n var height = parsePercent(viewRect.height, api.getHeight());\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], width) + viewRect.x;\n var cy = parsePercent(center[1], height) + viewRect.y;\n var r0 = parsePercent(radius[0], size / 2);\n var r = parsePercent(radius[1], size / 2);\n var startAngle = -seriesModel.get('startAngle') * RADIAN;\n var minAngle = seriesModel.get('minAngle') * RADIAN;\n var validDataCount = 0;\n data.each(valueDim, function (value) {\n !isNaN(value) && validDataCount++;\n });\n var sum = data.getSum(valueDim); // Sum may be 0\n\n var unitRadian = Math.PI / (sum || validDataCount) * 2;\n var clockwise = seriesModel.get('clockwise');\n var roseType = seriesModel.get('roseType');\n var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // [0...max]\n\n var extent = data.getDataExtent(valueDim);\n extent[0] = 0; // In the case some sector angle is smaller than minAngle\n\n var restAngle = PI2;\n var valueSumLargerThanMinAngle = 0;\n var currentAngle = startAngle;\n var dir = clockwise ? 1 : -1;\n data.setLayout({\n viewRect: viewRect,\n r: r\n });\n data.each(valueDim, function (value, idx) {\n var angle;\n\n if (isNaN(value)) {\n data.setItemLayout(idx, {\n angle: NaN,\n startAngle: NaN,\n endAngle: NaN,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType ? NaN : r\n });\n return;\n } // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?\n\n\n if (roseType !== 'area') {\n angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;\n } else {\n angle = PI2 / validDataCount;\n }\n\n if (angle < minAngle) {\n angle = minAngle;\n restAngle -= minAngle;\n } else {\n valueSumLargerThanMinAngle += value;\n }\n\n var endAngle = currentAngle + dir * angle;\n data.setItemLayout(idx, {\n angle: angle,\n startAngle: currentAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: r0,\n r: roseType ? linearMap(value, extent, [r0, r]) : r\n });\n currentAngle = endAngle;\n }); // Some sector is constrained by minAngle\n // Rest sectors needs recalculate angle\n\n if (restAngle < PI2 && validDataCount) {\n // Average the angle if rest angle is not enough after all angles is\n // Constrained by minAngle\n if (restAngle <= 1e-3) {\n var angle_1 = PI2 / validDataCount;\n data.each(valueDim, function (value, idx) {\n if (!isNaN(value)) {\n var layout_1 = data.getItemLayout(idx);\n layout_1.angle = angle_1;\n layout_1.startAngle = startAngle + dir * idx * angle_1;\n layout_1.endAngle = startAngle + dir * (idx + 1) * angle_1;\n }\n });\n } else {\n unitRadian = restAngle / valueSumLargerThanMinAngle;\n currentAngle = startAngle;\n data.each(valueDim, function (value, idx) {\n if (!isNaN(value)) {\n var layout_2 = data.getItemLayout(idx);\n var angle = layout_2.angle === minAngle ? minAngle : value * unitRadian;\n layout_2.startAngle = currentAngle;\n layout_2.endAngle = currentAngle + dir * angle;\n currentAngle += dir * angle;\n }\n });\n }\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function dataFilter(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n // @ts-ignore FIXME: LegendModel\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// FIXME emphasis label position is not same with normal label position\nimport { parsePercent } from '../../util/number';\nimport { Point } from '../../util/graphic';\nimport { each } from 'zrender/lib/core/util';\nimport { limitTurnAngle, limitSurfaceAngle } from '../../label/labelGuideHelper';\nimport { shiftLayoutOnY } from '../../label/labelLayoutHelper';\nvar RADIAN = Math.PI / 180;\n\nfunction adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight, viewLeft, viewTop, farthestX) {\n if (list.length < 2) {\n return;\n }\n\n ;\n\n function recalculateXOnSemiToAlignOnEllipseCurve(semi) {\n var rB = semi.rB;\n var rB2 = rB * rB;\n\n for (var i = 0; i < semi.list.length; i++) {\n var item = semi.list[i];\n var dy = Math.abs(item.label.y - cy); // horizontal r is always same with original r because x is not changed.\n\n var rA = r + item.len;\n var rA2 = rA * rA; // Use ellipse implicit function to calculate x\n\n var dx = Math.sqrt((1 - Math.abs(dy * dy / rB2)) * rA2);\n item.label.x = cx + (dx + item.len2) * dir;\n }\n } // Adjust X based on the shifted y. Make tight labels aligned on an ellipse curve.\n\n\n function recalculateX(items) {\n // Extremes of\n var topSemi = {\n list: [],\n maxY: 0\n };\n var bottomSemi = {\n list: [],\n maxY: 0\n };\n\n for (var i = 0; i < items.length; i++) {\n if (items[i].labelAlignTo !== 'none') {\n continue;\n }\n\n var item = items[i];\n var semi = item.label.y > cy ? bottomSemi : topSemi;\n var dy = Math.abs(item.label.y - cy);\n\n if (dy > semi.maxY) {\n var dx = item.label.x - cx - item.len2 * dir; // horizontal r is always same with original r because x is not changed.\n\n var rA = r + item.len; // Canculate rB based on the topest / bottemest label.\n\n var rB = Math.abs(dx) < rA ? Math.sqrt(dy * dy / (1 - dx * dx / rA / rA)) : rA;\n semi.rB = rB;\n semi.maxY = dy;\n }\n\n semi.list.push(item);\n }\n\n recalculateXOnSemiToAlignOnEllipseCurve(topSemi);\n recalculateXOnSemiToAlignOnEllipseCurve(bottomSemi);\n }\n\n var len = list.length;\n\n for (var i = 0; i < len; i++) {\n if (list[i].position === 'outer' && list[i].labelAlignTo === 'labelLine') {\n var dx = list[i].label.x - farthestX;\n list[i].linePoints[1][0] += dx;\n list[i].label.x = farthestX;\n }\n }\n\n if (shiftLayoutOnY(list, viewTop, viewTop + viewHeight)) {\n recalculateX(list);\n }\n}\n\nfunction avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop) {\n var leftList = [];\n var rightList = [];\n var leftmostX = Number.MAX_VALUE;\n var rightmostX = -Number.MAX_VALUE;\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var label = labelLayoutList[i].label;\n\n if (isPositionCenter(labelLayoutList[i])) {\n continue;\n }\n\n if (label.x < cx) {\n leftmostX = Math.min(leftmostX, label.x);\n leftList.push(labelLayoutList[i]);\n } else {\n rightmostX = Math.max(rightmostX, label.x);\n rightList.push(labelLayoutList[i]);\n }\n }\n\n adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight, viewLeft, viewTop, rightmostX);\n adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight, viewLeft, viewTop, leftmostX);\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var layout = labelLayoutList[i];\n var label = layout.label;\n\n if (isPositionCenter(layout)) {\n continue;\n }\n\n var linePoints = layout.linePoints;\n\n if (linePoints) {\n var isAlignToEdge = layout.labelAlignTo === 'edge';\n var realTextWidth = layout.rect.width;\n var targetTextWidth = void 0;\n\n if (isAlignToEdge) {\n if (label.x < cx) {\n targetTextWidth = linePoints[2][0] - layout.labelDistance - viewLeft - layout.edgeDistance;\n } else {\n targetTextWidth = viewLeft + viewWidth - layout.edgeDistance - linePoints[2][0] - layout.labelDistance;\n }\n } else {\n if (label.x < cx) {\n targetTextWidth = label.x - viewLeft - layout.bleedMargin;\n } else {\n targetTextWidth = viewLeft + viewWidth - label.x - layout.bleedMargin;\n }\n }\n\n if (targetTextWidth < layout.rect.width) {\n // TODOTODO\n // layout.text = textContain.truncateText(layout.text, targetTextWidth, layout.font);\n layout.label.style.width = targetTextWidth;\n\n if (layout.labelAlignTo === 'edge') {\n realTextWidth = targetTextWidth; // realTextWidth = textContain.getWidth(layout.text, layout.font);\n }\n }\n\n var dist = linePoints[1][0] - linePoints[2][0];\n\n if (isAlignToEdge) {\n if (label.x < cx) {\n linePoints[2][0] = viewLeft + layout.edgeDistance + realTextWidth + layout.labelDistance;\n } else {\n linePoints[2][0] = viewLeft + viewWidth - layout.edgeDistance - realTextWidth - layout.labelDistance;\n }\n } else {\n if (label.x < cx) {\n linePoints[2][0] = label.x + layout.labelDistance;\n } else {\n linePoints[2][0] = label.x - layout.labelDistance;\n }\n\n linePoints[1][0] = linePoints[2][0] + dist;\n }\n\n linePoints[1][1] = linePoints[2][1] = label.y;\n }\n }\n}\n\nfunction isPositionCenter(sectorShape) {\n // Not change x for center label\n return sectorShape.position === 'center';\n}\n\nexport default function pieLabelLayout(seriesModel) {\n var data = seriesModel.getData();\n var labelLayoutList = [];\n var cx;\n var cy;\n var hasLabelRotate = false;\n var minShowLabelRadian = (seriesModel.get('minShowLabelAngle') || 0) * RADIAN;\n var viewRect = data.getLayout('viewRect');\n var r = data.getLayout('r');\n var viewWidth = viewRect.width;\n var viewLeft = viewRect.x;\n var viewTop = viewRect.y;\n var viewHeight = viewRect.height;\n\n function setNotShow(el) {\n el.ignore = true;\n }\n\n function isLabelShown(label) {\n if (!label.ignore) {\n return true;\n }\n\n for (var key in label.states) {\n if (label.states[key].ignore === false) {\n return true;\n }\n }\n\n return false;\n }\n\n data.each(function (idx) {\n var sector = data.getItemGraphicEl(idx);\n var sectorShape = sector.shape;\n var label = sector.getTextContent();\n var labelLine = sector.getTextGuideLine();\n var itemModel = data.getItemModel(idx);\n var labelModel = itemModel.getModel('label'); // Use position in normal or emphasis\n\n var labelPosition = labelModel.get('position') || itemModel.get(['emphasis', 'label', 'position']);\n var labelDistance = labelModel.get('distanceToLabelLine');\n var labelAlignTo = labelModel.get('alignTo');\n var edgeDistance = parsePercent(labelModel.get('edgeDistance'), viewWidth);\n var bleedMargin = labelModel.get('bleedMargin');\n var labelLineModel = itemModel.getModel('labelLine');\n var labelLineLen = labelLineModel.get('length');\n labelLineLen = parsePercent(labelLineLen, viewWidth);\n var labelLineLen2 = labelLineModel.get('length2');\n labelLineLen2 = parsePercent(labelLineLen2, viewWidth);\n\n if (Math.abs(sectorShape.endAngle - sectorShape.startAngle) < minShowLabelRadian) {\n each(label.states, setNotShow);\n label.ignore = true;\n return;\n }\n\n if (!isLabelShown(label)) {\n return;\n }\n\n var midAngle = (sectorShape.startAngle + sectorShape.endAngle) / 2;\n var nx = Math.cos(midAngle);\n var ny = Math.sin(midAngle);\n var textX;\n var textY;\n var linePoints;\n var textAlign;\n cx = sectorShape.cx;\n cy = sectorShape.cy;\n var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';\n\n if (labelPosition === 'center') {\n textX = sectorShape.cx;\n textY = sectorShape.cy;\n textAlign = 'center';\n } else {\n var x1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * nx : sectorShape.r * nx) + cx;\n var y1 = (isLabelInside ? (sectorShape.r + sectorShape.r0) / 2 * ny : sectorShape.r * ny) + cy;\n textX = x1 + nx * 3;\n textY = y1 + ny * 3;\n\n if (!isLabelInside) {\n // For roseType\n var x2 = x1 + nx * (labelLineLen + r - sectorShape.r);\n var y2 = y1 + ny * (labelLineLen + r - sectorShape.r);\n var x3 = x2 + (nx < 0 ? -1 : 1) * labelLineLen2;\n var y3 = y2;\n\n if (labelAlignTo === 'edge') {\n // Adjust textX because text align of edge is opposite\n textX = nx < 0 ? viewLeft + edgeDistance : viewLeft + viewWidth - edgeDistance;\n } else {\n textX = x3 + (nx < 0 ? -labelDistance : labelDistance);\n }\n\n textY = y3;\n linePoints = [[x1, y1], [x2, y2], [x3, y3]];\n }\n\n textAlign = isLabelInside ? 'center' : labelAlignTo === 'edge' ? nx > 0 ? 'right' : 'left' : nx > 0 ? 'left' : 'right';\n }\n\n var labelRotate;\n var rotate = labelModel.get('rotate');\n\n if (typeof rotate === 'number') {\n labelRotate = rotate * (Math.PI / 180);\n } else {\n labelRotate = rotate ? nx < 0 ? -midAngle + Math.PI : -midAngle : 0;\n }\n\n hasLabelRotate = !!labelRotate;\n label.x = textX;\n label.y = textY;\n label.rotation = labelRotate;\n label.setStyle({\n verticalAlign: 'middle'\n }); // Not sectorShape the inside label\n\n if (!isLabelInside) {\n var textRect = label.getBoundingRect().clone();\n textRect.applyTransform(label.getComputedTransform()); // Text has a default 1px stroke. Exclude this.\n\n var margin = (label.style.margin || 0) + 2.1;\n textRect.y -= margin / 2;\n textRect.height += margin;\n labelLayoutList.push({\n label: label,\n labelLine: labelLine,\n position: labelPosition,\n len: labelLineLen,\n len2: labelLineLen2,\n minTurnAngle: labelLineModel.get('minTurnAngle'),\n maxSurfaceAngle: labelLineModel.get('maxSurfaceAngle'),\n surfaceNormal: new Point(nx, ny),\n linePoints: linePoints,\n textAlign: textAlign,\n labelDistance: labelDistance,\n labelAlignTo: labelAlignTo,\n edgeDistance: edgeDistance,\n bleedMargin: bleedMargin,\n rect: textRect\n });\n } else {\n label.setStyle({\n align: textAlign\n });\n var selectState = label.states.select;\n\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n\n sector.setTextConfig({\n inside: isLabelInside\n });\n });\n\n if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {\n avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight, viewLeft, viewTop);\n }\n\n for (var i = 0; i < labelLayoutList.length; i++) {\n var layout = labelLayoutList[i];\n var label = layout.label;\n var labelLine = layout.labelLine;\n var notShowLabel = isNaN(label.x) || isNaN(label.y);\n\n if (label) {\n label.setStyle({\n align: layout.textAlign\n });\n\n if (notShowLabel) {\n each(label.states, setNotShow);\n label.ignore = true;\n }\n\n var selectState = label.states.select;\n\n if (selectState) {\n selectState.x += label.x;\n selectState.y += label.y;\n }\n }\n\n if (labelLine) {\n var linePoints = layout.linePoints;\n\n if (notShowLabel || !linePoints) {\n each(labelLine.states, setNotShow);\n labelLine.ignore = true;\n } else {\n limitTurnAngle(linePoints, layout.minTurnAngle);\n limitSurfaceAngle(linePoints, layout.surfaceNormal, layout.maxSurfaceAngle);\n labelLine.setShape({\n points: linePoints\n }); // Set the anchor to the midpoint of sector\n\n label.__hostTarget.textGuideLineConfig = {\n anchor: new Point(linePoints[0][0], linePoints[0][1])\n };\n }\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\nimport { parsePercent } from 'zrender/lib/contain/text';\nexport function getSectorCornerRadius(model, shape) {\n var cornerRadius = model.get('borderRadius');\n\n if (cornerRadius == null) {\n return null;\n }\n\n if (!isArray(cornerRadius)) {\n cornerRadius = [cornerRadius, cornerRadius];\n }\n\n return {\n innerCornerRadius: parsePercent(cornerRadius[0], shape.r0),\n cornerRadius: parsePercent(cornerRadius[1], shape.r)\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __assign, __extends } from \"tslib\";\nimport { extend, retrieve3 } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport labelLayout from './labelLayout';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\n\nvar PiePiece =\n/** @class */\nfunction (_super) {\n __extends(PiePiece, _super);\n\n function PiePiece(data, idx, startAngle) {\n var _this = _super.call(this) || this;\n\n _this.z2 = 2;\n var text = new graphic.Text();\n\n _this.setTextContent(text);\n\n _this.updateData(data, idx, startAngle, true);\n\n return _this;\n }\n\n PiePiece.prototype.updateData = function (data, idx, startAngle, firstCreate) {\n var sector = this;\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n var layout = data.getItemLayout(idx);\n var sectorShape = extend(getSectorCornerRadius(itemModel.getModel('itemStyle'), layout) || {}, layout); // Ignore NaN data.\n\n if (isNaN(sectorShape.startAngle)) {\n // Use NaN shape to avoid drawing shape.\n sector.setShape(sectorShape);\n return;\n }\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n var animationType = seriesModel.getShallow('animationType');\n\n if (animationType === 'scale') {\n sector.shape.r = layout.r0;\n graphic.initProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, idx);\n } // Expansion\n else {\n if (startAngle != null) {\n sector.setShape({\n startAngle: startAngle,\n endAngle: startAngle\n });\n graphic.initProps(sector, {\n shape: {\n startAngle: layout.startAngle,\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n } else {\n sector.shape.endAngle = layout.startAngle;\n graphic.updateProps(sector, {\n shape: {\n endAngle: layout.endAngle\n }\n }, seriesModel, idx);\n }\n }\n } else {\n // Transition animation from the old shape\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel, idx);\n }\n\n sector.useStyle(data.getItemVisual(idx, 'style'));\n setStatesStylesFromModel(sector, itemModel);\n var midAngle = (layout.startAngle + layout.endAngle) / 2;\n var offset = seriesModel.get('selectedOffset');\n var dx = Math.cos(midAngle) * offset;\n var dy = Math.sin(midAngle) * offset;\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n\n this._updateLabel(seriesModel, data, idx);\n\n sector.ensureState('emphasis').shape = __assign({\n r: layout.r + (emphasisModel.get('scale') ? emphasisModel.get('scaleSize') || 0 : 0)\n }, getSectorCornerRadius(emphasisModel.getModel('itemStyle'), layout));\n extend(sector.ensureState('select'), {\n x: dx,\n y: dy,\n shape: getSectorCornerRadius(itemModel.getModel(['select', 'itemStyle']), layout)\n });\n extend(sector.ensureState('blur'), {\n shape: getSectorCornerRadius(itemModel.getModel(['blur', 'itemStyle']), layout)\n });\n var labelLine = sector.getTextGuideLine();\n var labelText = sector.getTextContent();\n labelLine && extend(labelLine.ensureState('select'), {\n x: dx,\n y: dy\n }); // TODO: needs dx, dy in zrender?\n\n extend(labelText.ensureState('select'), {\n x: dx,\n y: dy\n });\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n };\n\n PiePiece.prototype._updateLabel = function (seriesModel, data, idx) {\n var sector = this;\n var itemModel = data.getItemModel(idx);\n var labelLineModel = itemModel.getModel('labelLine');\n var style = data.getItemVisual(idx, 'style');\n var visualColor = style && style.fill;\n var visualOpacity = style && style.opacity;\n setLabelStyle(sector, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n defaultText: seriesModel.getFormattedLabel(idx, 'normal') || data.getName(idx)\n });\n var labelText = sector.getTextContent(); // Set textConfig on sector.\n\n sector.setTextConfig({\n // reset position, rotation\n position: null,\n rotation: null\n }); // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n\n labelText.attr({\n z2: 10\n });\n var labelPosition = seriesModel.get(['label', 'position']);\n\n if (labelPosition !== 'outside' && labelPosition !== 'outer') {\n sector.removeTextGuideLine();\n } else {\n var polyline = this.getTextGuideLine();\n\n if (!polyline) {\n polyline = new graphic.Polyline();\n this.setTextGuideLine(polyline);\n } // Default use item visual color\n\n\n setLabelLineStyle(this, getLabelLineStatesModels(itemModel), {\n stroke: visualColor,\n opacity: retrieve3(labelLineModel.get(['lineStyle', 'opacity']), visualOpacity, 1)\n });\n }\n };\n\n return PiePiece;\n}(graphic.Sector); // Pie view\n\n\nvar PieView =\n/** @class */\nfunction (_super) {\n __extends(PieView, _super);\n\n function PieView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.ignoreLabelLineUpdate = true;\n return _this;\n }\n\n PieView.prototype.init = function () {\n var sectorGroup = new graphic.Group();\n this._sectorGroup = sectorGroup;\n };\n\n PieView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n var startAngle; // First render\n\n if (!oldData && data.count() > 0) {\n var shape = data.getItemLayout(0);\n\n for (var s = 1; isNaN(shape && shape.startAngle) && s < data.count(); ++s) {\n shape = data.getItemLayout(s);\n }\n\n if (shape) {\n startAngle = shape.startAngle;\n }\n }\n\n data.diff(oldData).add(function (idx) {\n var piePiece = new PiePiece(data, idx, startAngle);\n data.setItemGraphicEl(idx, piePiece);\n group.add(piePiece);\n }).update(function (newIdx, oldIdx) {\n var piePiece = oldData.getItemGraphicEl(oldIdx);\n piePiece.updateData(data, newIdx, startAngle);\n piePiece.off('click');\n group.add(piePiece);\n data.setItemGraphicEl(newIdx, piePiece);\n }).remove(function (idx) {\n var piePiece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piePiece, seriesModel, idx);\n }).execute();\n labelLayout(seriesModel); // Always use initial animation.\n\n if (seriesModel.get('animationTypeUpdate') !== 'expansion') {\n this._data = data;\n }\n };\n\n PieView.prototype.dispose = function () {};\n\n PieView.prototype.containPoint = function (point, seriesModel) {\n var data = seriesModel.getData();\n var itemLayout = data.getItemLayout(0);\n\n if (itemLayout) {\n var dx = point[0] - itemLayout.cx;\n var dy = point[1] - itemLayout.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n };\n\n PieView.type = 'pie';\n return PieView;\n}(ChartView);\n\nexport default PieView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createDimensions from '../../data/helper/createDimensions';\nimport List from '../../data/List';\nimport { extend, isArray } from 'zrender/lib/core/util';\n/**\n * [Usage]:\n * (1)\n * createListSimply(seriesModel, ['value']);\n * (2)\n * createListSimply(seriesModel, {\n * coordDimensions: ['value'],\n * dimensionsCount: 5\n * });\n */\n\nexport default function createListSimply(seriesModel, opt, nameList) {\n opt = isArray(opt) && {\n coordDimensions: opt\n } || extend({}, opt);\n var source = seriesModel.getSource();\n var dimensionsInfo = createDimensions(source, opt);\n var list = new List(dimensionsInfo, seriesModel);\n list.initData(source, nameList);\n return list;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * LegendVisualProvider is an bridge that pick encoded color from data and\n * provide to the legend component.\n */\nvar LegendVisualProvider =\n/** @class */\nfunction () {\n function LegendVisualProvider( // Function to get data after filtered. It stores all the encoding info\n getDataWithEncodedVisual, // Function to get raw data before filtered.\n getRawData) {\n this._getDataWithEncodedVisual = getDataWithEncodedVisual;\n this._getRawData = getRawData;\n }\n\n LegendVisualProvider.prototype.getAllNames = function () {\n var rawData = this._getRawData(); // We find the name from the raw data. In case it's filtered by the legend component.\n // Normally, the name can be found in rawData, but can't be found in filtered data will display as gray.\n\n\n return rawData.mapArray(rawData.getName);\n };\n\n LegendVisualProvider.prototype.containName = function (name) {\n var rawData = this._getRawData();\n\n return rawData.indexOfName(name) >= 0;\n };\n\n LegendVisualProvider.prototype.indexOfName = function (name) {\n // Only get data when necessary.\n // Because LegendVisualProvider constructor may be new in the stage that data is not prepared yet.\n // Invoking Series#getData immediately will throw an error.\n var dataWithEncodedVisual = this._getDataWithEncodedVisual();\n\n return dataWithEncodedVisual.indexOfName(name);\n };\n\n LegendVisualProvider.prototype.getItemVisual = function (dataIndex, key) {\n // Get encoded visual properties from final filtered data.\n var dataWithEncodedVisual = this._getDataWithEncodedVisual();\n\n return dataWithEncodedVisual.getItemVisual(dataIndex, key);\n };\n\n return LegendVisualProvider;\n}();\n\nexport default LegendVisualProvider;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport { getPercentWithPrecision } from '../../util/number';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\n\nvar PieSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(PieSeriesModel, _super);\n\n function PieSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.useColorPaletteOnData = true;\n return _this;\n }\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n\n this._defaultLabelLine(option);\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.mergeOption = function () {\n _super.prototype.mergeOption.apply(this, arguments);\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.getInitialData = function () {\n return createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n };\n /**\n * @overwrite\n */\n\n\n PieSeriesModel.prototype.getDataParams = function (dataIndex) {\n var data = this.getData();\n\n var params = _super.prototype.getDataParams.call(this, dataIndex); // FIXME toFixed?\n\n\n var valueList = [];\n data.each(data.mapDimension('value'), function (value) {\n valueList.push(value);\n });\n params.percent = getPercentWithPrecision(valueList, dataIndex, data.hostModel.get('percentPrecision'));\n params.$vars.push('percent');\n return params;\n };\n\n PieSeriesModel.prototype._defaultLabelLine = function (option) {\n // Extend labelLine emphasis\n modelUtil.defaultEmphasis(option, 'labelLine', ['show']);\n var labelLineNormalOpt = option.labelLine;\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\n\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\n };\n\n PieSeriesModel.type = 'series.pie';\n PieSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // 默认全局居中\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // 默认顺时针\n clockwise: true,\n startAngle: 90,\n // 最小角度改为0\n minAngle: 0,\n // If the angle of a sector less than `minShowLabelAngle`,\n // the label will not be displayed.\n minShowLabelAngle: 0,\n // 选中时扇区偏移量\n selectedOffset: 10,\n // 选择模式,默认关闭,可选single,multiple\n // selectedMode: false,\n // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)\n // roseType: null,\n percentPrecision: 2,\n // If still show when all data zero.\n stillShowZeroSum: true,\n // cursor: null,\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: null,\n height: null,\n label: {\n // color: 'inherit',\n // If rotate around circle\n rotate: 0,\n show: true,\n overflow: 'truncate',\n // 'outer', 'inside', 'center'\n position: 'outer',\n // 'none', 'labelLine', 'edge'. Works only when position is 'outer'\n alignTo: 'none',\n // Closest distance between label and chart edge.\n // Works only position is 'outer' and alignTo is 'edge'.\n edgeDistance: '25%',\n // Works only position is 'outer' and alignTo is not 'edge'.\n bleedMargin: 10,\n // Distance between text and label line.\n distanceToLabelLine: 5 // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n // 默认使用全局文本样式,详见TEXTSTYLE\n // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数\n\n },\n // Enabled when label.normal.position is 'outer'\n labelLine: {\n show: true,\n // 引导线两段中的第一段长度\n length: 15,\n // 引导线两段中的第二段长度\n length2: 15,\n smooth: false,\n minTurnAngle: 90,\n maxSurfaceAngle: 90,\n lineStyle: {\n // color: 各异,\n width: 1,\n type: 'solid'\n }\n },\n itemStyle: {\n borderWidth: 1\n },\n labelLayout: {\n // Hide the overlapped label.\n hideOverlap: true\n },\n emphasis: {\n scale: true,\n scaleSize: 5\n },\n // If use strategy to avoid label overlapping\n avoidLabelOverlap: true,\n // Animation type. Valid values: expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n // Animation type when update. Valid values: transition, expansion\n animationTypeUpdate: 'transition',\n animationEasingUpdate: 'cubicInOut',\n animationDurationUpdate: 500,\n animationEasing: 'cubicInOut'\n };\n return PieSeriesModel;\n}(SeriesModel);\n\nexport default PieSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createLegacyDataSelectAction } from '../../legacy/dataSelectAction';\nimport pieLayout from '../pie/pieLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/lib/core/util';\nimport PieView from './PieView';\nimport PieSeriesModel from './PieSeries';\nexport function install(registers) {\n registers.registerChartView(PieView);\n registers.registerSeriesModel(PieSeriesModel);\n createLegacyDataSelectAction('pie', registers.registerAction);\n registers.registerLayout(curry(pieLayout, 'pie'));\n registers.registerProcessor(dataFilter('pie'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\n\nvar ScatterSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ScatterSeriesModel, _super);\n\n function ScatterSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScatterSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n ScatterSeriesModel.prototype.getProgressive = function () {\n var progressive = this.option.progressive;\n\n if (progressive == null) {\n // PENDING\n return this.option.large ? 5e3 : this.get('progressive');\n }\n\n return progressive;\n };\n\n ScatterSeriesModel.prototype.getProgressiveThreshold = function () {\n var progressiveThreshold = this.option.progressiveThreshold;\n\n if (progressiveThreshold == null) {\n // PENDING\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\n }\n\n return progressiveThreshold;\n };\n\n ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.point(data.getItemLayout(dataIndex));\n };\n\n ScatterSeriesModel.type = 'series.scatter';\n ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n ScatterSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n symbolSize: 10,\n // symbolRotate: null, // 图形旋转控制\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n // cursor: null,\n itemStyle: {\n opacity: 0.8 // color: 各异\n\n },\n emphasis: {\n scale: true\n },\n // If clip the overflow graphics\n // Works on cartesian / polar series\n clip: true,\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n } // progressive: null\n\n };\n return ScatterSeriesModel;\n}(SeriesModel);\n\nexport default ScatterSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Float32Array */\n// TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport { getECData } from '../../util/innerStore';\nvar BOOST_SIZE_THRESHOLD = 4;\n\nvar LargeSymbolPathShape =\n/** @class */\nfunction () {\n function LargeSymbolPathShape() {}\n\n return LargeSymbolPathShape;\n}();\n\nvar LargeSymbolPath =\n/** @class */\nfunction (_super) {\n __extends(LargeSymbolPath, _super);\n\n function LargeSymbolPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n LargeSymbolPath.prototype.getDefaultShape = function () {\n return new LargeSymbolPathShape();\n };\n\n LargeSymbolPath.prototype.buildPath = function (path, shape) {\n var points = shape.points;\n var size = shape.size;\n var symbolProxy = this.symbolProxy;\n var symbolProxyShape = symbolProxy.shape;\n var ctx = path.getContext ? path.getContext() : path;\n var canBoost = ctx && size[0] < BOOST_SIZE_THRESHOLD; // Do draw in afterBrush.\n\n if (canBoost) {\n this._ctx = ctx;\n return;\n }\n\n this._ctx = null;\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n }\n\n symbolProxyShape.x = x - size[0] / 2;\n symbolProxyShape.y = y - size[1] / 2;\n symbolProxyShape.width = size[0];\n symbolProxyShape.height = size[1];\n symbolProxy.buildPath(path, symbolProxyShape, true);\n }\n };\n\n LargeSymbolPath.prototype.afterBrush = function () {\n var shape = this.shape;\n var points = shape.points;\n var size = shape.size;\n var ctx = this._ctx;\n\n if (!ctx) {\n return;\n } // PENDING If style or other canvas status changed?\n\n\n for (var i = 0; i < points.length;) {\n var x = points[i++];\n var y = points[i++];\n\n if (isNaN(x) || isNaN(y)) {\n continue;\n }\n\n if (this.softClipShape && !this.softClipShape.contain(x, y)) {\n continue;\n } // fillRect is faster than building a rect path and draw.\n // And it support light globalCompositeOperation.\n\n\n ctx.fillRect(x - size[0] / 2, y - size[1] / 2, size[0], size[1]);\n }\n };\n\n LargeSymbolPath.prototype.findDataIndex = function (x, y) {\n // TODO ???\n // Consider transform\n var shape = this.shape;\n var points = shape.points;\n var size = shape.size;\n var w = Math.max(size[0], 4);\n var h = Math.max(size[1], 4); // Not consider transform\n // Treat each element as a rect\n // top down traverse\n\n for (var idx = points.length / 2 - 1; idx >= 0; idx--) {\n var i = idx * 2;\n var x0 = points[i] - w / 2;\n var y0 = points[i + 1] - h / 2;\n\n if (x >= x0 && y >= y0 && x <= x0 + w && y <= y0 + h) {\n return idx;\n }\n }\n\n return -1;\n };\n\n return LargeSymbolPath;\n}(graphic.Path);\n\nvar LargeSymbolDraw =\n/** @class */\nfunction () {\n function LargeSymbolDraw() {\n this.group = new graphic.Group();\n }\n\n LargeSymbolDraw.prototype.isPersistent = function () {\n return !this._incremental;\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n LargeSymbolDraw.prototype.updateData = function (data, opt) {\n this.group.removeAll();\n var symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default'\n });\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n\n this._setCommon(symbolEl, data, false, opt);\n\n this.group.add(symbolEl);\n this._incremental = null;\n };\n\n LargeSymbolDraw.prototype.updateLayout = function (data) {\n if (this._incremental) {\n return;\n }\n\n var points = data.getLayout('points');\n this.group.eachChild(function (child) {\n if (child.startIndex != null) {\n var len = (child.endIndex - child.startIndex) * 2;\n var byteOffset = child.startIndex * 4 * 2;\n points = new Float32Array(points.buffer, byteOffset, len);\n }\n\n child.setShape('points', points);\n });\n };\n\n LargeSymbolDraw.prototype.incrementalPrepareUpdate = function (data) {\n this.group.removeAll();\n\n this._clearIncremental(); // Only use incremental displayables when data amount is larger than 2 million.\n // PENDING Incremental data?\n\n\n if (data.count() > 2e6) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n\n this.group.add(this._incremental);\n } else {\n this._incremental = null;\n }\n };\n\n LargeSymbolDraw.prototype.incrementalUpdate = function (taskParams, data, opt) {\n var symbolEl;\n\n if (this._incremental) {\n symbolEl = new LargeSymbolPath();\n\n this._incremental.addDisplayable(symbolEl, true);\n } else {\n symbolEl = new LargeSymbolPath({\n rectHover: true,\n cursor: 'default',\n startIndex: taskParams.start,\n endIndex: taskParams.end\n });\n symbolEl.incremental = true;\n this.group.add(symbolEl);\n }\n\n symbolEl.setShape({\n points: data.getLayout('points')\n });\n\n this._setCommon(symbolEl, data, !!this._incremental, opt);\n };\n\n LargeSymbolDraw.prototype._setCommon = function (symbolEl, data, isIncremental, opt) {\n var hostModel = data.hostModel;\n opt = opt || {};\n var size = data.getVisual('symbolSize');\n symbolEl.setShape('size', size instanceof Array ? size : [size, size]);\n symbolEl.softClipShape = opt.clipShape || null; // Create symbolProxy to build path for each data\n\n symbolEl.symbolProxy = createSymbol(data.getVisual('symbol'), 0, 0, 0, 0); // Use symbolProxy setColor method\n\n symbolEl.setColor = symbolEl.symbolProxy.setColor;\n var extrudeShadow = symbolEl.shape.size[0] < BOOST_SIZE_THRESHOLD;\n symbolEl.useStyle( // Draw shadow when doing fillRect is extremely slow.\n hostModel.getModel('itemStyle').getItemStyle(extrudeShadow ? ['color', 'shadowBlur', 'shadowColor'] : ['color']));\n var globalStyle = data.getVisual('style');\n var visualColor = globalStyle && globalStyle.fill;\n\n if (visualColor) {\n symbolEl.setColor(visualColor);\n }\n\n if (!isIncremental) {\n var ecData_1 = getECData(symbolEl); // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n\n ecData_1.seriesIndex = hostModel.seriesIndex;\n symbolEl.on('mousemove', function (e) {\n ecData_1.dataIndex = null;\n var dataIndex = symbolEl.findDataIndex(e.offsetX, e.offsetY);\n\n if (dataIndex >= 0) {\n // Provide dataIndex for tooltip\n ecData_1.dataIndex = dataIndex + (symbolEl.startIndex || 0);\n }\n });\n }\n };\n\n LargeSymbolDraw.prototype.remove = function () {\n this._clearIncremental();\n\n this._incremental = null;\n this.group.removeAll();\n };\n\n LargeSymbolDraw.prototype._clearIncremental = function () {\n var incremental = this._incremental;\n\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n return LargeSymbolDraw;\n}();\n\nexport default LargeSymbolDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LargeSymbolDraw from '../helper/LargeSymbolDraw';\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\n\nvar ScatterView =\n/** @class */\nfunction (_super) {\n __extends(ScatterView, _super);\n\n function ScatterView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScatterView.type;\n return _this;\n }\n\n ScatterView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.updateData(data, {\n // TODO\n // If this parameter should be a shape or a bounding volume\n // shape will be more general.\n // But bounding volume like bounding rect will be much faster in the contain calculation\n clipShape: this._getClipShape(seriesModel)\n });\n this._finished = true;\n };\n\n ScatterView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var symbolDraw = this._updateSymbolDraw(data, seriesModel);\n\n symbolDraw.incrementalPrepareUpdate(data);\n this._finished = false;\n };\n\n ScatterView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n this._symbolDraw.incrementalUpdate(taskParams, seriesModel.getData(), {\n clipShape: this._getClipShape(seriesModel)\n });\n\n this._finished = taskParams.end === seriesModel.getData().count();\n };\n\n ScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData(); // Must mark group dirty and make sure the incremental layer will be cleared\n // PENDING\n\n this.group.dirty();\n\n if (!this._finished || data.count() > 1e4 || !this._symbolDraw.isPersistent()) {\n return {\n update: true\n };\n } else {\n var res = pointsLayout('').reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout(data);\n }\n };\n\n ScatterView.prototype._getClipShape = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n };\n\n ScatterView.prototype._updateSymbolDraw = function (data, seriesModel) {\n var symbolDraw = this._symbolDraw;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeDraw = pipelineContext.large;\n\n if (!symbolDraw || isLargeDraw !== this._isLargeDraw) {\n symbolDraw && symbolDraw.remove();\n symbolDraw = this._symbolDraw = isLargeDraw ? new LargeSymbolDraw() : new SymbolDraw();\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(symbolDraw.group);\n return symbolDraw;\n };\n\n ScatterView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove(true);\n this._symbolDraw = null;\n };\n\n ScatterView.prototype.dispose = function () {};\n\n ScatterView.type = 'scatter';\n return ScatterView;\n}(ChartView);\n\nexport default ScatterView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar GridModel =\n/** @class */\nfunction (_super) {\n __extends(GridModel, _super);\n\n function GridModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GridModel.type = 'grid';\n GridModel.dependencies = ['xAxis', 'yAxis'];\n GridModel.layoutMode = 'box';\n GridModel.defaultOption = {\n show: false,\n zlevel: 0,\n z: 0,\n left: '10%',\n top: 60,\n right: '10%',\n bottom: 70,\n // If grid size contain label\n containLabel: false,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 1,\n borderColor: '#ccc'\n };\n return GridModel;\n}(ComponentModel);\n\nexport default GridModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nvar CartesianAxisModel =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisModel, _super);\n\n function CartesianAxisModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n CartesianAxisModel.prototype.getCoordSysModel = function () {\n return this.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n };\n\n CartesianAxisModel.type = 'cartesian2dAxis';\n return CartesianAxisModel;\n}(ComponentModel);\n\nexport { CartesianAxisModel };\nzrUtil.mixin(CartesianAxisModel, AxisModelCommonMixin);\nexport default CartesianAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nvar defaultOption = {\n show: true,\n zlevel: 0,\n z: 0,\n // Inverse the axis.\n inverse: false,\n // Axis name displayed.\n name: '',\n // 'start' | 'middle' | 'end'\n nameLocation: 'end',\n // By degree. By default auto rotate by nameLocation.\n nameRotate: null,\n nameTruncate: {\n maxWidth: null,\n ellipsis: '...',\n placeholder: '.'\n },\n // Use global text style by default.\n nameTextStyle: {},\n // The gap between axisName and axisLine.\n nameGap: 15,\n // Default `false` to support tooltip.\n silent: false,\n // Default `false` to avoid legacy user event listener fail.\n triggerEvent: false,\n tooltip: {\n show: false\n },\n axisPointer: {},\n axisLine: {\n show: true,\n onZero: true,\n onZeroAxisIndex: null,\n lineStyle: {\n color: '#6E7079',\n width: 1,\n type: 'solid'\n },\n // The arrow at both ends the the axis.\n symbol: ['none', 'none'],\n symbolSize: [10, 15]\n },\n axisTick: {\n show: true,\n // Whether axisTick is inside the grid or outside the grid.\n inside: false,\n // The length of axisTick.\n length: 5,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n // Whether axisLabel is inside the grid or outside the grid.\n inside: false,\n rotate: 0,\n // true | false | null/undefined (auto)\n showMinLabel: null,\n // true | false | null/undefined (auto)\n showMaxLabel: null,\n margin: 8,\n // formatter: null,\n fontSize: 12\n },\n splitLine: {\n show: true,\n lineStyle: {\n color: ['#E0E6F1'],\n width: 1,\n type: 'solid'\n }\n },\n splitArea: {\n show: false,\n areaStyle: {\n color: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']\n }\n }\n};\nvar categoryAxis = zrUtil.merge({\n // The gap at both ends of the axis. For categoryAxis, boolean.\n boundaryGap: true,\n // Set false to faster category collection.\n deduplication: null,\n // splitArea: {\n // show: false\n // },\n splitLine: {\n show: false\n },\n axisTick: {\n // If tick is align with label when boundaryGap is true\n alignWithLabel: false,\n interval: 'auto'\n },\n axisLabel: {\n interval: 'auto'\n }\n}, defaultOption);\nvar valueAxis = zrUtil.merge({\n boundaryGap: [0, 0],\n axisLine: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n axisTick: {\n // Not shown when other axis is categoryAxis in cartesian\n show: 'auto'\n },\n // TODO\n // min/max: [30, datamin, 60] or [20, datamin] or [datamin, 60]\n splitNumber: 5,\n minorTick: {\n // Minor tick, not available for cateogry axis.\n show: false,\n // Split number of minor ticks. The value should be in range of (0, 100)\n splitNumber: 5,\n // Lenght of minor tick\n length: 3,\n // Line style\n lineStyle: {// Default to be same with axisTick\n }\n },\n minorSplitLine: {\n show: false,\n lineStyle: {\n color: '#F4F7FD',\n width: 1\n }\n }\n}, defaultOption);\nvar timeAxis = zrUtil.merge({\n scale: true,\n splitNumber: 6,\n axisLabel: {\n // To eliminate labels that are not nice\n showMinLabel: false,\n showMaxLabel: false,\n rich: {\n primary: {\n fontWeight: 'bold'\n }\n }\n },\n splitLine: {\n show: false\n }\n}, valueAxis);\nvar logAxis = zrUtil.defaults({\n scale: true,\n logBase: 10\n}, valueAxis);\nexport default {\n category: categoryAxis,\n value: valueAxis,\n time: timeAxis,\n log: logAxis\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport var AXIS_TYPES = {\n value: 1,\n category: 1,\n time: 1,\n log: 1\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport axisDefault from './axisDefault';\nimport { getLayoutParams, mergeLayoutParam, fetchLayoutMode } from '../util/layout';\nimport OrdinalMeta from '../data/OrdinalMeta';\nimport { AXIS_TYPES } from './axisCommonTypes';\nimport { each, merge } from 'zrender/lib/core/util';\n/**\n * Generate sub axis model class\n * @param axisName 'x' 'y' 'radius' 'angle' 'parallel' ...\n */\n\nexport default function axisModelCreator(registers, axisName, BaseAxisModelClass, extraDefaultOption) {\n each(AXIS_TYPES, function (v, axisType) {\n var defaultOption = merge(merge({}, axisDefault[axisType], true), extraDefaultOption, true);\n\n var AxisModel =\n /** @class */\n function (_super) {\n __extends(AxisModel, _super);\n\n function AxisModel() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var _this = _super.apply(this, args) || this;\n\n _this.type = axisName + 'Axis.' + axisType;\n return _this;\n }\n\n AxisModel.prototype.mergeDefaultAndTheme = function (option, ecModel) {\n var layoutMode = fetchLayoutMode(this);\n var inputPositionParams = layoutMode ? getLayoutParams(option) : {};\n var themeModel = ecModel.getTheme();\n merge(option, themeModel.get(axisType + 'Axis'));\n merge(option, this.getDefaultOption());\n option.type = getAxisType(option);\n\n if (layoutMode) {\n mergeLayoutParam(option, inputPositionParams, layoutMode);\n }\n };\n\n AxisModel.prototype.optionUpdated = function () {\n var thisOption = this.option;\n\n if (thisOption.type === 'category') {\n this.__ordinalMeta = OrdinalMeta.createByAxisModel(this);\n }\n };\n /**\n * Should not be called before all of 'getInitailData' finished.\n * Because categories are collected during initializing data.\n */\n\n\n AxisModel.prototype.getCategories = function (rawData) {\n var option = this.option; // FIXME\n // warning if called before all of 'getInitailData' finished.\n\n if (option.type === 'category') {\n if (rawData) {\n return option.data;\n }\n\n return this.__ordinalMeta.categories;\n }\n };\n\n AxisModel.prototype.getOrdinalMeta = function () {\n return this.__ordinalMeta;\n };\n\n AxisModel.type = axisName + 'Axis.' + axisType;\n AxisModel.defaultOption = defaultOption;\n return AxisModel;\n }(BaseAxisModelClass);\n\n registers.registerComponentModel(AxisModel);\n });\n registers.registerSubTypeDefaulter(axisName + 'Axis', getAxisType);\n}\n\nfunction getAxisType(option) {\n // Default axis with data is category axis\n return option.type || (option.data ? 'category' : 'value');\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nvar Cartesian =\n/** @class */\nfunction () {\n function Cartesian(name) {\n this.type = 'cartesian';\n this._dimList = [];\n this._axes = {};\n this.name = name || '';\n }\n\n Cartesian.prototype.getAxis = function (dim) {\n return this._axes[dim];\n };\n\n Cartesian.prototype.getAxes = function () {\n return zrUtil.map(this._dimList, function (dim) {\n return this._axes[dim];\n }, this);\n };\n\n Cartesian.prototype.getAxesByScale = function (scaleType) {\n scaleType = scaleType.toLowerCase();\n return zrUtil.filter(this.getAxes(), function (axis) {\n return axis.scale.type === scaleType;\n });\n };\n\n Cartesian.prototype.addAxis = function (axis) {\n var dim = axis.dim;\n this._axes[dim] = axis;\n\n this._dimList.push(dim);\n };\n\n return Cartesian;\n}();\n\n;\nexport default Cartesian;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport Cartesian from './Cartesian';\nimport { invert } from 'zrender/lib/core/matrix';\nimport { applyTransform } from 'zrender/lib/core/vector';\nexport var cartesian2DDimensions = ['x', 'y'];\n\nfunction canCalculateAffineTransform(scale) {\n return scale.type === 'interval' || scale.type === 'time';\n}\n\nvar Cartesian2D =\n/** @class */\nfunction (_super) {\n __extends(Cartesian2D, _super);\n\n function Cartesian2D() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'cartesian2d';\n _this.dimensions = cartesian2DDimensions;\n return _this;\n }\n /**\n * Calculate an affine transform matrix if two axes are time or value.\n * It's mainly for accelartion on the large time series data.\n */\n\n\n Cartesian2D.prototype.calcAffineTransform = function () {\n this._transform = this._invTransform = null;\n var xAxisScale = this.getAxis('x').scale;\n var yAxisScale = this.getAxis('y').scale;\n\n if (!canCalculateAffineTransform(xAxisScale) || !canCalculateAffineTransform(yAxisScale)) {\n return;\n }\n\n var xScaleExtent = xAxisScale.getExtent();\n var yScaleExtent = yAxisScale.getExtent();\n var start = this.dataToPoint([xScaleExtent[0], yScaleExtent[0]]);\n var end = this.dataToPoint([xScaleExtent[1], yScaleExtent[1]]);\n var xScaleSpan = xScaleExtent[1] - xScaleExtent[0];\n var yScaleSpan = yScaleExtent[1] - yScaleExtent[0];\n\n if (!xScaleSpan || !yScaleSpan) {\n return;\n } // Accelerate data to point calculation on the special large time series data.\n\n\n var scaleX = (end[0] - start[0]) / xScaleSpan;\n var scaleY = (end[1] - start[1]) / yScaleSpan;\n var translateX = start[0] - xScaleExtent[0] * scaleX;\n var translateY = start[1] - yScaleExtent[0] * scaleY;\n var m = this._transform = [scaleX, 0, 0, scaleY, translateX, translateY];\n this._invTransform = invert([], m);\n };\n /**\n * Base axis will be used on stacking.\n */\n\n\n Cartesian2D.prototype.getBaseAxis = function () {\n return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAxis('x');\n };\n\n Cartesian2D.prototype.containPoint = function (point) {\n var axisX = this.getAxis('x');\n var axisY = this.getAxis('y');\n return axisX.contain(axisX.toLocalCoord(point[0])) && axisY.contain(axisY.toLocalCoord(point[1]));\n };\n\n Cartesian2D.prototype.containData = function (data) {\n return this.getAxis('x').containData(data[0]) && this.getAxis('y').containData(data[1]);\n };\n\n Cartesian2D.prototype.dataToPoint = function (data, clamp, out) {\n out = out || [];\n var xVal = data[0];\n var yVal = data[1]; // Fast path\n\n if (this._transform // It's supported that if data is like `[Inifity, 123]`, where only Y pixel calculated.\n && xVal != null && isFinite(xVal) && yVal != null && isFinite(yVal)) {\n return applyTransform(out, data, this._transform);\n }\n\n var xAxis = this.getAxis('x');\n var yAxis = this.getAxis('y');\n out[0] = xAxis.toGlobalCoord(xAxis.dataToCoord(xVal, clamp));\n out[1] = yAxis.toGlobalCoord(yAxis.dataToCoord(yVal, clamp));\n return out;\n };\n\n Cartesian2D.prototype.clampData = function (data, out) {\n var xScale = this.getAxis('x').scale;\n var yScale = this.getAxis('y').scale;\n var xAxisExtent = xScale.getExtent();\n var yAxisExtent = yScale.getExtent();\n var x = xScale.parse(data[0]);\n var y = yScale.parse(data[1]);\n out = out || [];\n out[0] = Math.min(Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x), Math.max(xAxisExtent[0], xAxisExtent[1]));\n out[1] = Math.min(Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y), Math.max(yAxisExtent[0], yAxisExtent[1]));\n return out;\n };\n\n Cartesian2D.prototype.pointToData = function (point, clamp) {\n var out = [];\n\n if (this._invTransform) {\n return applyTransform(out, point, this._invTransform);\n }\n\n var xAxis = this.getAxis('x');\n var yAxis = this.getAxis('y');\n out[0] = xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp);\n out[1] = yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp);\n return out;\n };\n\n Cartesian2D.prototype.getOtherAxis = function (axis) {\n return this.getAxis(axis.dim === 'x' ? 'y' : 'x');\n };\n /**\n * Get rect area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n\n\n Cartesian2D.prototype.getArea = function () {\n var xExtent = this.getAxis('x').getGlobalExtent();\n var yExtent = this.getAxis('y').getGlobalExtent();\n var x = Math.min(xExtent[0], xExtent[1]);\n var y = Math.min(yExtent[0], yExtent[1]);\n var width = Math.max(xExtent[0], xExtent[1]) - x;\n var height = Math.max(yExtent[0], yExtent[1]) - y;\n return new BoundingRect(x, y, width, height);\n };\n\n return Cartesian2D;\n}(Cartesian);\n\n;\nexport default Cartesian2D;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar Axis2D =\n/** @class */\nfunction (_super) {\n __extends(Axis2D, _super);\n\n function Axis2D(dim, scale, coordExtent, axisType, position) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n /**\n * Index of axis, can be used as key\n * Injected outside.\n */\n\n\n _this.index = 0;\n _this.type = axisType || 'value';\n _this.position = position || 'bottom';\n return _this;\n }\n\n Axis2D.prototype.isHorizontal = function () {\n var position = this.position;\n return position === 'top' || position === 'bottom';\n };\n /**\n * Each item cooresponds to this.getExtent(), which\n * means globalExtent[0] may greater than globalExtent[1],\n * unless `asc` is input.\n *\n * @param {boolean} [asc]\n * @return {Array.}\n */\n\n\n Axis2D.prototype.getGlobalExtent = function (asc) {\n var ret = this.getExtent();\n ret[0] = this.toGlobalCoord(ret[0]);\n ret[1] = this.toGlobalCoord(ret[1]);\n asc && ret[0] > ret[1] && ret.reverse();\n return ret;\n };\n\n Axis2D.prototype.pointToData = function (point, clamp) {\n return this.coordToData(this.toLocalCoord(point[this.dim === 'x' ? 0 : 1]), clamp);\n };\n /**\n * Set ordinalSortInfo\n * @param info new OrdinalSortInfo\n */\n\n\n Axis2D.prototype.setCategorySortInfo = function (info) {\n if (this.type !== 'category') {\n return false;\n }\n\n this.model.option.categorySortInfo = info;\n this.scale.setSortInfo(info);\n };\n\n return Axis2D;\n}(Axis);\n\nexport default Axis2D;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Can only be called after coordinate system creation stage.\n * (Can be called before coordinate system update stage).\n */\n\nexport function layout(gridModel, axisModel, opt) {\n opt = opt || {};\n var grid = gridModel.coordinateSystem;\n var axis = axisModel.axis;\n var layout = {};\n var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n var rawAxisPosition = axis.position;\n var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n var axisDim = axis.dim;\n var rect = grid.getRect();\n var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n var idx = {\n left: 0,\n right: 1,\n top: 0,\n bottom: 1,\n onZero: 2\n };\n var axisOffset = axisModel.get('offset') || 0;\n var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\n if (otherAxisOnZeroOf) {\n var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n } // Axis position\n\n\n layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]]; // Axis rotation\n\n layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim\n\n var dirMap = {\n top: -1,\n bottom: 1,\n left: -1,\n right: 1\n };\n layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n } // Special label rotation\n\n\n var labelRotate = axisModel.get(['axisLabel', 'rotate']);\n layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea\n\n layout.z2 = 1;\n return layout;\n}\nexport function isCartesian2DSeries(seriesModel) {\n return seriesModel.get('coordinateSystem') === 'cartesian2d';\n}\nexport function findAxisModels(seriesModel) {\n var axisModelMap = {\n xAxisModel: null,\n yAxisModel: null\n };\n zrUtil.each(axisModelMap, function (v, key) {\n var axisType = key.replace(/Model$/, '');\n var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!axisModel) {\n throw new Error(axisType + ' \"' + zrUtil.retrieve3(seriesModel.get(axisType + 'Index'), seriesModel.get(axisType + 'Id'), 0) + '\" not found');\n }\n }\n\n axisModelMap[key] = axisModel;\n });\n return axisModelMap;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Grid is a region which contains at most 4 cartesian systems\n *\n * TODO Default cartesian\n */\nimport { isObject, each, indexOf, retrieve3 } from 'zrender/lib/core/util';\nimport { getLayoutRect } from '../../util/layout';\nimport { createScaleByModel, ifAxisCrossZero, niceScaleExtent, estimateLabelUnionRect, getDataDimensionsOnAxis } from '../../coord/axisHelper';\nimport Cartesian2D, { cartesian2DDimensions } from './Cartesian2D';\nimport Axis2D from './Axis2D';\nimport { SINGLE_REFERRING } from '../../util/model';\nimport { isCartesian2DSeries, findAxisModels } from './cartesianAxisHelper';\n\nvar Grid =\n/** @class */\nfunction () {\n function Grid(gridModel, ecModel, api) {\n // FIXME:TS where used (different from registered type 'cartesian2d')?\n this.type = 'grid';\n this._coordsMap = {};\n this._coordsList = [];\n this._axesMap = {};\n this._axesList = [];\n this.axisPointerEnabled = true;\n this.dimensions = cartesian2DDimensions;\n\n this._initCartesian(gridModel, ecModel, api);\n\n this.model = gridModel;\n }\n\n Grid.prototype.getRect = function () {\n return this._rect;\n };\n\n Grid.prototype.update = function (ecModel, api) {\n var axesMap = this._axesMap;\n\n this._updateScale(ecModel, this.model);\n\n each(axesMap.x, function (xAxis) {\n niceScaleExtent(xAxis.scale, xAxis.model);\n });\n each(axesMap.y, function (yAxis) {\n niceScaleExtent(yAxis.scale, yAxis.model);\n }); // Key: axisDim_axisIndex, value: boolean, whether onZero target.\n\n var onZeroRecords = {};\n each(axesMap.x, function (xAxis) {\n fixAxisOnZero(axesMap, 'y', xAxis, onZeroRecords);\n });\n each(axesMap.y, function (yAxis) {\n fixAxisOnZero(axesMap, 'x', yAxis, onZeroRecords);\n }); // Resize again if containLabel is enabled\n // FIXME It may cause getting wrong grid size in data processing stage\n\n this.resize(this.model, api);\n };\n /**\n * Resize the grid\n */\n\n\n Grid.prototype.resize = function (gridModel, api, ignoreContainLabel) {\n var boxLayoutParams = gridModel.getBoxLayoutParams();\n var isContainLabel = !ignoreContainLabel && gridModel.get('containLabel');\n var gridRect = getLayoutRect(boxLayoutParams, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n this._rect = gridRect;\n var axesList = this._axesList;\n adjustAxes(); // Minus label size\n\n if (isContainLabel) {\n each(axesList, function (axis) {\n if (!axis.model.get(['axisLabel', 'inside'])) {\n var labelUnionRect = estimateLabelUnionRect(axis);\n\n if (labelUnionRect) {\n var dim = axis.isHorizontal() ? 'height' : 'width';\n var margin = axis.model.get(['axisLabel', 'margin']);\n gridRect[dim] -= labelUnionRect[dim] + margin;\n\n if (axis.position === 'top') {\n gridRect.y += labelUnionRect.height + margin;\n } else if (axis.position === 'left') {\n gridRect.x += labelUnionRect.width + margin;\n }\n }\n }\n });\n adjustAxes();\n }\n\n each(this._coordsList, function (coord) {\n // Calculate affine matrix to accelerate the data to point transform.\n // If all the axes scales are time or value.\n coord.calcAffineTransform();\n });\n\n function adjustAxes() {\n each(axesList, function (axis) {\n var isHorizontal = axis.isHorizontal();\n var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];\n var idx = axis.inverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n updateAxisTransform(axis, isHorizontal ? gridRect.x : gridRect.y);\n });\n }\n };\n\n Grid.prototype.getAxis = function (dim, axisIndex) {\n var axesMapOnDim = this._axesMap[dim];\n\n if (axesMapOnDim != null) {\n return axesMapOnDim[axisIndex || 0]; // if (axisIndex == null) {\n // Find first axis\n // for (let name in axesMapOnDim) {\n // if (axesMapOnDim.hasOwnProperty(name)) {\n // return axesMapOnDim[name];\n // }\n // }\n // }\n // return axesMapOnDim[axisIndex];\n }\n };\n\n Grid.prototype.getAxes = function () {\n return this._axesList.slice();\n };\n\n Grid.prototype.getCartesian = function (xAxisIndex, yAxisIndex) {\n if (xAxisIndex != null && yAxisIndex != null) {\n var key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n return this._coordsMap[key];\n }\n\n if (isObject(xAxisIndex)) {\n yAxisIndex = xAxisIndex.yAxisIndex;\n xAxisIndex = xAxisIndex.xAxisIndex;\n }\n\n for (var i = 0, coordList = this._coordsList; i < coordList.length; i++) {\n if (coordList[i].getAxis('x').index === xAxisIndex || coordList[i].getAxis('y').index === yAxisIndex) {\n return coordList[i];\n }\n }\n };\n\n Grid.prototype.getCartesians = function () {\n return this._coordsList.slice();\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.convertToPixel = function (ecModel, finder, value) {\n var target = this._findConvertTarget(finder);\n\n return target.cartesian ? target.cartesian.dataToPoint(value) : target.axis ? target.axis.toGlobalCoord(target.axis.dataToCoord(value)) : null;\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.convertFromPixel = function (ecModel, finder, value) {\n var target = this._findConvertTarget(finder);\n\n return target.cartesian ? target.cartesian.pointToData(value) : target.axis ? target.axis.coordToData(target.axis.toLocalCoord(value)) : null;\n };\n\n Grid.prototype._findConvertTarget = function (finder) {\n var seriesModel = finder.seriesModel;\n var xAxisModel = finder.xAxisModel || seriesModel && seriesModel.getReferringComponents('xAxis', SINGLE_REFERRING).models[0];\n var yAxisModel = finder.yAxisModel || seriesModel && seriesModel.getReferringComponents('yAxis', SINGLE_REFERRING).models[0];\n var gridModel = finder.gridModel;\n var coordsList = this._coordsList;\n var cartesian;\n var axis;\n\n if (seriesModel) {\n cartesian = seriesModel.coordinateSystem;\n indexOf(coordsList, cartesian) < 0 && (cartesian = null);\n } else if (xAxisModel && yAxisModel) {\n cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n } else if (xAxisModel) {\n axis = this.getAxis('x', xAxisModel.componentIndex);\n } else if (yAxisModel) {\n axis = this.getAxis('y', yAxisModel.componentIndex);\n } // Lowest priority.\n else if (gridModel) {\n var grid = gridModel.coordinateSystem;\n\n if (grid === this) {\n cartesian = this._coordsList[0];\n }\n }\n\n return {\n cartesian: cartesian,\n axis: axis\n };\n };\n /**\n * @implements\n */\n\n\n Grid.prototype.containPoint = function (point) {\n var coord = this._coordsList[0];\n\n if (coord) {\n return coord.containPoint(point);\n }\n };\n /**\n * Initialize cartesian coordinate systems\n */\n\n\n Grid.prototype._initCartesian = function (gridModel, ecModel, api) {\n var _this = this;\n\n var grid = this;\n var axisPositionUsed = {\n left: false,\n right: false,\n top: false,\n bottom: false\n };\n var axesMap = {\n x: {},\n y: {}\n };\n var axesCount = {\n x: 0,\n y: 0\n }; /// Create axis\n\n ecModel.eachComponent('xAxis', createAxisCreator('x'), this);\n ecModel.eachComponent('yAxis', createAxisCreator('y'), this);\n\n if (!axesCount.x || !axesCount.y) {\n // Roll back when there no either x or y axis\n this._axesMap = {};\n this._axesList = [];\n return;\n }\n\n this._axesMap = axesMap; /// Create cartesian2d\n\n each(axesMap.x, function (xAxis, xAxisIndex) {\n each(axesMap.y, function (yAxis, yAxisIndex) {\n var key = 'x' + xAxisIndex + 'y' + yAxisIndex;\n var cartesian = new Cartesian2D(key);\n cartesian.master = _this;\n cartesian.model = gridModel;\n _this._coordsMap[key] = cartesian;\n\n _this._coordsList.push(cartesian);\n\n cartesian.addAxis(xAxis);\n cartesian.addAxis(yAxis);\n });\n });\n\n function createAxisCreator(dimName) {\n return function (axisModel, idx) {\n if (!isAxisUsedInTheGrid(axisModel, gridModel)) {\n return;\n }\n\n var axisPosition = axisModel.get('position');\n\n if (dimName === 'x') {\n // Fix position\n if (axisPosition !== 'top' && axisPosition !== 'bottom') {\n // Default bottom of X\n axisPosition = axisPositionUsed.bottom ? 'top' : 'bottom';\n }\n } else {\n // Fix position\n if (axisPosition !== 'left' && axisPosition !== 'right') {\n // Default left of Y\n axisPosition = axisPositionUsed.left ? 'right' : 'left';\n }\n }\n\n axisPositionUsed[axisPosition] = true;\n var axis = new Axis2D(dimName, createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisPosition);\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse'); // Inject axis into axisModel\n\n axisModel.axis = axis; // Inject axisModel into axis\n\n axis.model = axisModel; // Inject grid info axis\n\n axis.grid = grid; // Index of axis, can be used as key\n\n axis.index = idx;\n\n grid._axesList.push(axis);\n\n axesMap[dimName][idx] = axis;\n axesCount[dimName]++;\n };\n }\n };\n /**\n * Update cartesian properties from series.\n */\n\n\n Grid.prototype._updateScale = function (ecModel, gridModel) {\n // Reset scale\n each(this._axesList, function (axis) {\n axis.scale.setExtent(Infinity, -Infinity);\n\n if (axis.type === 'category') {\n var categorySortInfo = axis.model.get('categorySortInfo');\n axis.scale.setSortInfo(categorySortInfo);\n }\n });\n ecModel.eachSeries(function (seriesModel) {\n if (isCartesian2DSeries(seriesModel)) {\n var axesModelMap = findAxisModels(seriesModel);\n var xAxisModel = axesModelMap.xAxisModel;\n var yAxisModel = axesModelMap.yAxisModel;\n\n if (!isAxisUsedInTheGrid(xAxisModel, gridModel) || !isAxisUsedInTheGrid(yAxisModel, gridModel)) {\n return;\n }\n\n var cartesian = this.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n var data = seriesModel.getData();\n var xAxis = cartesian.getAxis('x');\n var yAxis = cartesian.getAxis('y');\n\n if (data.type === 'list') {\n unionExtent(data, xAxis);\n unionExtent(data, yAxis);\n }\n }\n }, this);\n\n function unionExtent(data, axis) {\n each(getDataDimensionsOnAxis(data, axis.dim), function (dim) {\n axis.scale.unionExtentFromData(data, dim);\n });\n }\n };\n /**\n * @param dim 'x' or 'y' or 'auto' or null/undefined\n */\n\n\n Grid.prototype.getTooltipAxes = function (dim) {\n var baseAxes = [];\n var otherAxes = [];\n each(this.getCartesians(), function (cartesian) {\n var baseAxis = dim != null && dim !== 'auto' ? cartesian.getAxis(dim) : cartesian.getBaseAxis();\n var otherAxis = cartesian.getOtherAxis(baseAxis);\n indexOf(baseAxes, baseAxis) < 0 && baseAxes.push(baseAxis);\n indexOf(otherAxes, otherAxis) < 0 && otherAxes.push(otherAxis);\n });\n return {\n baseAxes: baseAxes,\n otherAxes: otherAxes\n };\n };\n\n Grid.create = function (ecModel, api) {\n var grids = [];\n ecModel.eachComponent('grid', function (gridModel, idx) {\n var grid = new Grid(gridModel, ecModel, api);\n grid.name = 'grid_' + idx; // dataSampling requires axis extent, so resize\n // should be performed in create stage.\n\n grid.resize(gridModel, api, true);\n gridModel.coordinateSystem = grid;\n grids.push(grid);\n }); // Inject the coordinateSystems into seriesModel\n\n ecModel.eachSeries(function (seriesModel) {\n if (!isCartesian2DSeries(seriesModel)) {\n return;\n }\n\n var axesModelMap = findAxisModels(seriesModel);\n var xAxisModel = axesModelMap.xAxisModel;\n var yAxisModel = axesModelMap.yAxisModel;\n var gridModel = xAxisModel.getCoordSysModel();\n\n if (process.env.NODE_ENV !== 'production') {\n if (!gridModel) {\n throw new Error('Grid \"' + retrieve3(xAxisModel.get('gridIndex'), xAxisModel.get('gridId'), 0) + '\" not found');\n }\n\n if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) {\n throw new Error('xAxis and yAxis must use the same grid');\n }\n }\n\n var grid = gridModel.coordinateSystem;\n seriesModel.coordinateSystem = grid.getCartesian(xAxisModel.componentIndex, yAxisModel.componentIndex);\n });\n return grids;\n }; // For deciding which dimensions to use when creating list data\n\n\n Grid.dimensions = cartesian2DDimensions;\n return Grid;\n}();\n/**\n * Check if the axis is used in the specified grid.\n */\n\n\nfunction isAxisUsedInTheGrid(axisModel, gridModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}\n\nfunction fixAxisOnZero(axesMap, otherAxisDim, axis, // Key: see `getOnZeroRecordKey`\nonZeroRecords) {\n axis.getAxesOnZeroOf = function () {\n // TODO: onZero of multiple axes.\n return otherAxisOnZeroOf ? [otherAxisOnZeroOf] : [];\n }; // onZero can not be enabled in these two situations:\n // 1. When any other axis is a category axis.\n // 2. When no axis is cross 0 point.\n\n\n var otherAxes = axesMap[otherAxisDim];\n var otherAxisOnZeroOf;\n var axisModel = axis.model;\n var onZero = axisModel.get(['axisLine', 'onZero']);\n var onZeroAxisIndex = axisModel.get(['axisLine', 'onZeroAxisIndex']);\n\n if (!onZero) {\n return;\n } // If target axis is specified.\n\n\n if (onZeroAxisIndex != null) {\n if (canOnZeroToAxis(otherAxes[onZeroAxisIndex])) {\n otherAxisOnZeroOf = otherAxes[onZeroAxisIndex];\n }\n } else {\n // Find the first available other axis.\n for (var idx in otherAxes) {\n if (otherAxes.hasOwnProperty(idx) && canOnZeroToAxis(otherAxes[idx]) // Consider that two Y axes on one value axis,\n // if both onZero, the two Y axes overlap.\n && !onZeroRecords[getOnZeroRecordKey(otherAxes[idx])]) {\n otherAxisOnZeroOf = otherAxes[idx];\n break;\n }\n }\n }\n\n if (otherAxisOnZeroOf) {\n onZeroRecords[getOnZeroRecordKey(otherAxisOnZeroOf)] = true;\n }\n\n function getOnZeroRecordKey(axis) {\n return axis.dim + '_' + axis.index;\n }\n}\n\nfunction canOnZeroToAxis(axis) {\n return axis && axis.type !== 'category' && axis.type !== 'time' && ifAxisCrossZero(axis);\n}\n\nfunction updateAxisTransform(axis, coordBase) {\n var axisExtent = axis.getExtent();\n var axisExtentSum = axisExtent[0] + axisExtent[1]; // Fast transform\n\n axis.toGlobalCoord = axis.dim === 'x' ? function (coord) {\n return coord + coordBase;\n } : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n axis.toLocalCoord = axis.dim === 'x' ? function (coord) {\n return coord - coordBase;\n } : function (coord) {\n return axisExtentSum - coord + coordBase;\n };\n}\n\nexport default Grid;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { retrieve, defaults, extend, each, isObject } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle } from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport { isRadianAroundZero, remRadian } from '../../util/number';\nimport { createSymbol } from '../../util/symbol';\nimport * as matrixUtil from 'zrender/lib/core/matrix';\nimport { applyTransform as v2ApplyTransform } from 'zrender/lib/core/vector';\nimport { shouldShowAllLabels } from '../../coord/axisHelper';\nvar PI = Math.PI;\n/**\n * A final axis is translated and rotated from a \"standard axis\".\n * So opt.position and opt.rotation is required.\n *\n * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],\n * for example: (0, 0) ------------> (0, 50)\n *\n * nameDirection or tickDirection or labelDirection is 1 means tick\n * or label is below the standard axis, whereas is -1 means above\n * the standard axis. labelOffset means offset between label and axis,\n * which is useful when 'onZero', where axisLabel is in the grid and\n * label in outside grid.\n *\n * Tips: like always,\n * positive rotation represents anticlockwise, and negative rotation\n * represents clockwise.\n * The direction of position coordinate is the same as the direction\n * of screen coordinate.\n *\n * Do not need to consider axis 'inverse', which is auto processed by\n * axis extent.\n */\n\nvar AxisBuilder =\n/** @class */\nfunction () {\n function AxisBuilder(axisModel, opt) {\n this.group = new graphic.Group();\n this.opt = opt;\n this.axisModel = axisModel; // Default value\n\n defaults(opt, {\n labelOffset: 0,\n nameDirection: 1,\n tickDirection: 1,\n labelDirection: 1,\n silent: true,\n handleAutoShown: function () {\n return true;\n }\n }); // FIXME Not use a seperate text group?\n\n var transformGroup = new graphic.Group({\n x: opt.position[0],\n y: opt.position[1],\n rotation: opt.rotation\n }); // this.group.add(transformGroup);\n // this._transformGroup = transformGroup;\n\n transformGroup.updateTransform();\n this._transformGroup = transformGroup;\n }\n\n AxisBuilder.prototype.hasBuilder = function (name) {\n return !!builders[name];\n };\n\n AxisBuilder.prototype.add = function (name) {\n builders[name](this.opt, this.axisModel, this.group, this._transformGroup);\n };\n\n AxisBuilder.prototype.getGroup = function () {\n return this.group;\n };\n\n AxisBuilder.innerTextLayout = function (axisRotation, textRotation, direction) {\n var rotationDiff = remRadian(textRotation - axisRotation);\n var textAlign;\n var textVerticalAlign;\n\n if (isRadianAroundZero(rotationDiff)) {\n // Label is parallel with axis line.\n textVerticalAlign = direction > 0 ? 'top' : 'bottom';\n textAlign = 'center';\n } else if (isRadianAroundZero(rotationDiff - PI)) {\n // Label is inverse parallel with axis line.\n textVerticalAlign = direction > 0 ? 'bottom' : 'top';\n textAlign = 'center';\n } else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff > 0 && rotationDiff < PI) {\n textAlign = direction > 0 ? 'right' : 'left';\n } else {\n textAlign = direction > 0 ? 'left' : 'right';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n };\n\n AxisBuilder.makeAxisEventDataBase = function (axisModel) {\n var eventData = {\n componentType: axisModel.mainType,\n componentIndex: axisModel.componentIndex\n };\n eventData[axisModel.mainType + 'Index'] = axisModel.componentIndex;\n return eventData;\n };\n\n AxisBuilder.isLabelSilent = function (axisModel) {\n var tooltipOpt = axisModel.get('tooltip');\n return axisModel.get('silent') // Consider mouse cursor, add these restrictions.\n || !(axisModel.get('triggerEvent') || tooltipOpt && tooltipOpt.show);\n };\n\n return AxisBuilder;\n}();\n\n;\nvar builders = {\n axisLine: function (opt, axisModel, group, transformGroup) {\n var shown = axisModel.get(['axisLine', 'show']);\n\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisLine');\n }\n\n if (!shown) {\n return;\n }\n\n var extent = axisModel.axis.getExtent();\n var matrix = transformGroup.transform;\n var pt1 = [extent[0], 0];\n var pt2 = [extent[1], 0];\n\n if (matrix) {\n v2ApplyTransform(pt1, pt1, matrix);\n v2ApplyTransform(pt2, pt2, matrix);\n }\n\n var lineStyle = extend({\n lineCap: 'round'\n }, axisModel.getModel(['axisLine', 'lineStyle']).getLineStyle());\n var line = new graphic.Line({\n // Id for animation\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: lineStyle,\n strokeContainThreshold: opt.strokeContainThreshold || 5,\n silent: true,\n z2: 1\n });\n line.anid = 'line';\n group.add(line);\n var arrows = axisModel.get(['axisLine', 'symbol']);\n var arrowSize = axisModel.get(['axisLine', 'symbolSize']);\n var arrowOffset = axisModel.get(['axisLine', 'symbolOffset']) || 0;\n\n if (typeof arrowOffset === 'number') {\n arrowOffset = [arrowOffset, arrowOffset];\n }\n\n if (arrows != null) {\n if (typeof arrows === 'string') {\n // Use the same arrow for start and end point\n arrows = [arrows, arrows];\n }\n\n if (typeof arrowSize === 'string' || typeof arrowSize === 'number') {\n // Use the same size for width and height\n arrowSize = [arrowSize, arrowSize];\n }\n\n var symbolWidth_1 = arrowSize[0];\n var symbolHeight_1 = arrowSize[1];\n each([{\n rotate: opt.rotation + Math.PI / 2,\n offset: arrowOffset[0],\n r: 0\n }, {\n rotate: opt.rotation - Math.PI / 2,\n offset: arrowOffset[1],\n r: Math.sqrt((pt1[0] - pt2[0]) * (pt1[0] - pt2[0]) + (pt1[1] - pt2[1]) * (pt1[1] - pt2[1]))\n }], function (point, index) {\n if (arrows[index] !== 'none' && arrows[index] != null) {\n var symbol = createSymbol(arrows[index], -symbolWidth_1 / 2, -symbolHeight_1 / 2, symbolWidth_1, symbolHeight_1, lineStyle.stroke, true); // Calculate arrow position with offset\n\n var r = point.r + point.offset;\n symbol.attr({\n rotation: point.rotate,\n x: pt1[0] + r * Math.cos(opt.rotation),\n y: pt1[1] - r * Math.sin(opt.rotation),\n silent: true,\n z2: 11\n });\n group.add(symbol);\n }\n });\n }\n },\n axisTickLabel: function (opt, axisModel, group, transformGroup) {\n var ticksEls = buildAxisMajorTicks(group, transformGroup, axisModel, opt);\n var labelEls = buildAxisLabel(group, transformGroup, axisModel, opt);\n fixMinMaxLabelShow(axisModel, labelEls, ticksEls);\n buildAxisMinorTicks(group, transformGroup, axisModel, opt.tickDirection);\n },\n axisName: function (opt, axisModel, group, transformGroup) {\n var name = retrieve(opt.axisName, axisModel.get('name'));\n\n if (!name) {\n return;\n }\n\n var nameLocation = axisModel.get('nameLocation');\n var nameDirection = opt.nameDirection;\n var textStyleModel = axisModel.getModel('nameTextStyle');\n var gap = axisModel.get('nameGap') || 0;\n var extent = axisModel.axis.getExtent();\n var gapSignal = extent[0] > extent[1] ? -1 : 1;\n var pos = [nameLocation === 'start' ? extent[0] - gapSignal * gap : nameLocation === 'end' ? extent[1] + gapSignal * gap : (extent[0] + extent[1]) / 2, // Reuse labelOffset.\n isNameLocationCenter(nameLocation) ? opt.labelOffset + nameDirection * gap : 0];\n var labelLayout;\n var nameRotation = axisModel.get('nameRotate');\n\n if (nameRotation != null) {\n nameRotation = nameRotation * PI / 180; // To radian.\n }\n\n var axisNameAvailableWidth;\n\n if (isNameLocationCenter(nameLocation)) {\n labelLayout = AxisBuilder.innerTextLayout(opt.rotation, nameRotation != null ? nameRotation : opt.rotation, // Adapt to axis.\n nameDirection);\n } else {\n labelLayout = endTextLayout(opt.rotation, nameLocation, nameRotation || 0, extent);\n axisNameAvailableWidth = opt.axisNameAvailableWidth;\n\n if (axisNameAvailableWidth != null) {\n axisNameAvailableWidth = Math.abs(axisNameAvailableWidth / Math.sin(labelLayout.rotation));\n !isFinite(axisNameAvailableWidth) && (axisNameAvailableWidth = null);\n }\n }\n\n var textFont = textStyleModel.getFont();\n var truncateOpt = axisModel.get('nameTruncate', true) || {};\n var ellipsis = truncateOpt.ellipsis;\n var maxWidth = retrieve(opt.nameTruncateMaxWidth, truncateOpt.maxWidth, axisNameAvailableWidth);\n var textEl = new graphic.Text({\n x: pos[0],\n y: pos[1],\n rotation: labelLayout.rotation,\n silent: AxisBuilder.isLabelSilent(axisModel),\n style: createTextStyle(textStyleModel, {\n text: name,\n font: textFont,\n overflow: 'truncate',\n width: maxWidth,\n ellipsis: ellipsis,\n fill: textStyleModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']),\n align: textStyleModel.get('align') || labelLayout.textAlign,\n verticalAlign: textStyleModel.get('verticalAlign') || labelLayout.textVerticalAlign\n }),\n z2: 1\n });\n graphic.setTooltipConfig({\n el: textEl,\n componentModel: axisModel,\n itemName: name\n });\n textEl.__fullText = name; // Id for animation\n\n textEl.anid = 'name';\n\n if (axisModel.get('triggerEvent')) {\n var eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisName';\n eventData.name = name;\n getECData(textEl).eventData = eventData;\n } // FIXME\n\n\n transformGroup.add(textEl);\n textEl.updateTransform();\n group.add(textEl);\n textEl.decomposeTransform();\n }\n};\n\nfunction endTextLayout(rotation, textPosition, textRotate, extent) {\n var rotationDiff = remRadian(textRotate - rotation);\n var textAlign;\n var textVerticalAlign;\n var inverse = extent[0] > extent[1];\n var onLeft = textPosition === 'start' && !inverse || textPosition !== 'start' && inverse;\n\n if (isRadianAroundZero(rotationDiff - PI / 2)) {\n textVerticalAlign = onLeft ? 'bottom' : 'top';\n textAlign = 'center';\n } else if (isRadianAroundZero(rotationDiff - PI * 1.5)) {\n textVerticalAlign = onLeft ? 'top' : 'bottom';\n textAlign = 'center';\n } else {\n textVerticalAlign = 'middle';\n\n if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) {\n textAlign = onLeft ? 'left' : 'right';\n } else {\n textAlign = onLeft ? 'right' : 'left';\n }\n }\n\n return {\n rotation: rotationDiff,\n textAlign: textAlign,\n textVerticalAlign: textVerticalAlign\n };\n}\n\nfunction fixMinMaxLabelShow(axisModel, labelEls, tickEls) {\n if (shouldShowAllLabels(axisModel.axis)) {\n return;\n } // If min or max are user set, we need to check\n // If the tick on min(max) are overlap on their neighbour tick\n // If they are overlapped, we need to hide the min(max) tick label\n\n\n var showMinLabel = axisModel.get(['axisLabel', 'showMinLabel']);\n var showMaxLabel = axisModel.get(['axisLabel', 'showMaxLabel']); // FIXME\n // Have not consider onBand yet, where tick els is more than label els.\n\n labelEls = labelEls || [];\n tickEls = tickEls || [];\n var firstLabel = labelEls[0];\n var nextLabel = labelEls[1];\n var lastLabel = labelEls[labelEls.length - 1];\n var prevLabel = labelEls[labelEls.length - 2];\n var firstTick = tickEls[0];\n var nextTick = tickEls[1];\n var lastTick = tickEls[tickEls.length - 1];\n var prevTick = tickEls[tickEls.length - 2];\n\n if (showMinLabel === false) {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n } else if (isTwoLabelOverlapped(firstLabel, nextLabel)) {\n if (showMinLabel) {\n ignoreEl(nextLabel);\n ignoreEl(nextTick);\n } else {\n ignoreEl(firstLabel);\n ignoreEl(firstTick);\n }\n }\n\n if (showMaxLabel === false) {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n } else if (isTwoLabelOverlapped(prevLabel, lastLabel)) {\n if (showMaxLabel) {\n ignoreEl(prevLabel);\n ignoreEl(prevTick);\n } else {\n ignoreEl(lastLabel);\n ignoreEl(lastTick);\n }\n }\n}\n\nfunction ignoreEl(el) {\n el && (el.ignore = true);\n}\n\nfunction isTwoLabelOverlapped(current, next) {\n // current and next has the same rotation.\n var firstRect = current && current.getBoundingRect().clone();\n var nextRect = next && next.getBoundingRect().clone();\n\n if (!firstRect || !nextRect) {\n return;\n } // When checking intersect of two rotated labels, we use mRotationBack\n // to avoid that boundingRect is enlarge when using `boundingRect.applyTransform`.\n\n\n var mRotationBack = matrixUtil.identity([]);\n matrixUtil.rotate(mRotationBack, mRotationBack, -current.rotation);\n firstRect.applyTransform(matrixUtil.mul([], mRotationBack, current.getLocalTransform()));\n nextRect.applyTransform(matrixUtil.mul([], mRotationBack, next.getLocalTransform()));\n return firstRect.intersect(nextRect);\n}\n\nfunction isNameLocationCenter(nameLocation) {\n return nameLocation === 'middle' || nameLocation === 'center';\n}\n\nfunction createTicks(ticksCoords, tickTransform, tickEndCoord, tickLineStyle, anidPrefix) {\n var tickEls = [];\n var pt1 = [];\n var pt2 = [];\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var tickCoord = ticksCoords[i].coord;\n pt1[0] = tickCoord;\n pt1[1] = 0;\n pt2[0] = tickCoord;\n pt2[1] = tickEndCoord;\n\n if (tickTransform) {\n v2ApplyTransform(pt1, pt1, tickTransform);\n v2ApplyTransform(pt2, pt2, tickTransform);\n } // Tick line, Not use group transform to have better line draw\n\n\n var tickEl = new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: pt1[0],\n y1: pt1[1],\n x2: pt2[0],\n y2: pt2[1]\n },\n style: tickLineStyle,\n z2: 2,\n autoBatch: true,\n silent: true\n });\n tickEl.anid = anidPrefix + '_' + ticksCoords[i].tickValue;\n tickEls.push(tickEl);\n }\n\n return tickEls;\n}\n\nfunction buildAxisMajorTicks(group, transformGroup, axisModel, opt) {\n var axis = axisModel.axis;\n var tickModel = axisModel.getModel('axisTick');\n var shown = tickModel.get('show');\n\n if (shown === 'auto' && opt.handleAutoShown) {\n shown = opt.handleAutoShown('axisTick');\n }\n\n if (!shown || axis.scale.isBlank()) {\n return;\n }\n\n var lineStyleModel = tickModel.getModel('lineStyle');\n var tickEndCoord = opt.tickDirection * tickModel.get('length');\n var ticksCoords = axis.getTicksCoords();\n var ticksEls = createTicks(ticksCoords, transformGroup.transform, tickEndCoord, defaults(lineStyleModel.getLineStyle(), {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }), 'ticks');\n\n for (var i = 0; i < ticksEls.length; i++) {\n group.add(ticksEls[i]);\n }\n\n return ticksEls;\n}\n\nfunction buildAxisMinorTicks(group, transformGroup, axisModel, tickDirection) {\n var axis = axisModel.axis;\n var minorTickModel = axisModel.getModel('minorTick');\n\n if (!minorTickModel.get('show') || axis.scale.isBlank()) {\n return;\n }\n\n var minorTicksCoords = axis.getMinorTicksCoords();\n\n if (!minorTicksCoords.length) {\n return;\n }\n\n var lineStyleModel = minorTickModel.getModel('lineStyle');\n var tickEndCoord = tickDirection * minorTickModel.get('length');\n var minorTickLineStyle = defaults(lineStyleModel.getLineStyle(), defaults(axisModel.getModel('axisTick').getLineStyle(), {\n stroke: axisModel.get(['axisLine', 'lineStyle', 'color'])\n }));\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n var minorTicksEls = createTicks(minorTicksCoords[i], transformGroup.transform, tickEndCoord, minorTickLineStyle, 'minorticks_' + i);\n\n for (var k = 0; k < minorTicksEls.length; k++) {\n group.add(minorTicksEls[k]);\n }\n }\n}\n\nfunction buildAxisLabel(group, transformGroup, axisModel, opt) {\n var axis = axisModel.axis;\n var show = retrieve(opt.axisLabelShow, axisModel.get(['axisLabel', 'show']));\n\n if (!show || axis.scale.isBlank()) {\n return;\n }\n\n var labelModel = axisModel.getModel('axisLabel');\n var labelMargin = labelModel.get('margin');\n var labels = axis.getViewLabels(); // Special label rotate.\n\n var labelRotation = (retrieve(opt.labelRotate, labelModel.get('rotate')) || 0) * PI / 180;\n var labelLayout = AxisBuilder.innerTextLayout(opt.rotation, labelRotation, opt.labelDirection);\n var rawCategoryData = axisModel.getCategories && axisModel.getCategories(true);\n var labelEls = [];\n var silent = AxisBuilder.isLabelSilent(axisModel);\n var triggerEvent = axisModel.get('triggerEvent');\n each(labels, function (labelItem, index) {\n var tickValue = axis.scale.type === 'ordinal' ? axis.scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;\n var formattedLabel = labelItem.formattedLabel;\n var rawLabel = labelItem.rawLabel;\n var itemLabelModel = labelModel;\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n var rawCategoryItem = rawCategoryData[tickValue];\n\n if (isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n itemLabelModel = new Model(rawCategoryItem.textStyle, labelModel, axisModel.ecModel);\n }\n }\n\n var textColor = itemLabelModel.getTextColor() || axisModel.get(['axisLine', 'lineStyle', 'color']);\n var tickCoord = axis.dataToCoord(tickValue);\n var textEl = new graphic.Text({\n x: tickCoord,\n y: opt.labelOffset + opt.labelDirection * labelMargin,\n rotation: labelLayout.rotation,\n silent: silent,\n z2: 10,\n style: createTextStyle(itemLabelModel, {\n text: formattedLabel,\n align: itemLabelModel.getShallow('align', true) || labelLayout.textAlign,\n verticalAlign: itemLabelModel.getShallow('verticalAlign', true) || itemLabelModel.getShallow('baseline', true) || labelLayout.textVerticalAlign,\n fill: typeof textColor === 'function' ? textColor( // (1) In category axis with data zoom, tick is not the original\n // index of axis.data. So tick should not be exposed to user\n // in category axis.\n // (2) Compatible with previous version, which always use formatted label as\n // input. But in interval scale the formatted label is like '223,445', which\n // maked user repalce ','. So we modify it to return original val but remain\n // it as 'string' to avoid error in replacing.\n axis.type === 'category' ? rawLabel : axis.type === 'value' ? tickValue + '' : tickValue, index) : textColor\n })\n });\n textEl.anid = 'label_' + tickValue; // Pack data for mouse event\n\n if (triggerEvent) {\n var eventData = AxisBuilder.makeAxisEventDataBase(axisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = rawLabel;\n getECData(textEl).eventData = eventData;\n } // FIXME\n\n\n transformGroup.add(textEl);\n textEl.updateTransform();\n labelEls.push(textEl);\n group.add(textEl);\n textEl.decomposeTransform();\n });\n return labelEls;\n}\n\nexport default AxisBuilder;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport Model from '../../model/Model';\nimport { each, curry, clone, defaults, isArray, indexOf } from 'zrender/lib/core/util'; // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n// allAxesInfo should be updated when setOption performed.\n\nexport function collect(ecModel, api) {\n var result = {\n /**\n * key: makeKey(axis.model)\n * value: {\n * axis,\n * coordSys,\n * axisPointerModel,\n * triggerTooltip,\n * involveSeries,\n * snap,\n * seriesModels,\n * seriesDataCount\n * }\n */\n axesInfo: {},\n seriesInvolved: false,\n\n /**\n * key: makeKey(coordSys.model)\n * value: Object: key makeKey(axis.model), value: axisInfo\n */\n coordSysAxesInfo: {},\n coordSysMap: {}\n };\n collectAxesInfo(result, ecModel, api); // Check seriesInvolved for performance, in case too many series in some chart.\n\n result.seriesInvolved && collectSeriesInfo(result, ecModel);\n return result;\n}\n\nfunction collectAxesInfo(result, ecModel, api) {\n var globalTooltipModel = ecModel.getComponent('tooltip');\n var globalAxisPointerModel = ecModel.getComponent('axisPointer'); // links can only be set on global.\n\n var linksOption = globalAxisPointerModel.get('link', true) || [];\n var linkGroups = []; // Collect axes info.\n\n each(api.getCoordinateSystems(), function (coordSys) {\n // Some coordinate system do not support axes, like geo.\n if (!coordSys.axisPointerEnabled) {\n return;\n }\n\n var coordSysKey = makeKey(coordSys.model);\n var axesInfoInCoordSys = result.coordSysAxesInfo[coordSysKey] = {};\n result.coordSysMap[coordSysKey] = coordSys; // Set tooltip (like 'cross') is a convienent way to show axisPointer\n // for user. So we enable seting tooltip on coordSys model.\n\n var coordSysModel = coordSys.model;\n var baseTooltipModel = coordSysModel.getModel('tooltip', globalTooltipModel);\n each(coordSys.getAxes(), curry(saveTooltipAxisInfo, false, null)); // If axis tooltip used, choose tooltip axis for each coordSys.\n // Notice this case: coordSys is `grid` but not `cartesian2D` here.\n\n if (coordSys.getTooltipAxes && globalTooltipModel // If tooltip.showContent is set as false, tooltip will not\n // show but axisPointer will show as normal.\n && baseTooltipModel.get('show')) {\n // Compatible with previous logic. But series.tooltip.trigger: 'axis'\n // or series.data[n].tooltip.trigger: 'axis' are not support any more.\n var triggerAxis = baseTooltipModel.get('trigger') === 'axis';\n var cross = baseTooltipModel.get(['axisPointer', 'type']) === 'cross';\n var tooltipAxes = coordSys.getTooltipAxes(baseTooltipModel.get(['axisPointer', 'axis']));\n\n if (triggerAxis || cross) {\n each(tooltipAxes.baseAxes, curry(saveTooltipAxisInfo, cross ? 'cross' : true, triggerAxis));\n }\n\n if (cross) {\n each(tooltipAxes.otherAxes, curry(saveTooltipAxisInfo, 'cross', false));\n }\n } // fromTooltip: true | false | 'cross'\n // triggerTooltip: true | false | null\n\n\n function saveTooltipAxisInfo(fromTooltip, triggerTooltip, axis) {\n var axisPointerModel = axis.model.getModel('axisPointer', globalAxisPointerModel);\n var axisPointerShow = axisPointerModel.get('show');\n\n if (!axisPointerShow || axisPointerShow === 'auto' && !fromTooltip && !isHandleTrigger(axisPointerModel)) {\n return;\n }\n\n if (triggerTooltip == null) {\n triggerTooltip = axisPointerModel.get('triggerTooltip');\n }\n\n axisPointerModel = fromTooltip ? makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) : axisPointerModel;\n var snap = axisPointerModel.get('snap');\n var axisKey = makeKey(axis.model);\n var involveSeries = triggerTooltip || snap || axis.type === 'category'; // If result.axesInfo[key] exist, override it (tooltip has higher priority).\n\n var axisInfo = result.axesInfo[axisKey] = {\n key: axisKey,\n axis: axis,\n coordSys: coordSys,\n axisPointerModel: axisPointerModel,\n triggerTooltip: triggerTooltip,\n involveSeries: involveSeries,\n snap: snap,\n useHandle: isHandleTrigger(axisPointerModel),\n seriesModels: [],\n linkGroup: null\n };\n axesInfoInCoordSys[axisKey] = axisInfo;\n result.seriesInvolved = result.seriesInvolved || involveSeries;\n var groupIndex = getLinkGroupIndex(linksOption, axis);\n\n if (groupIndex != null) {\n var linkGroup = linkGroups[groupIndex] || (linkGroups[groupIndex] = {\n axesInfo: {}\n });\n linkGroup.axesInfo[axisKey] = axisInfo;\n linkGroup.mapper = linksOption[groupIndex].mapper;\n axisInfo.linkGroup = linkGroup;\n }\n }\n });\n}\n\nfunction makeAxisPointerModel(axis, baseTooltipModel, globalAxisPointerModel, ecModel, fromTooltip, triggerTooltip) {\n var tooltipAxisPointerModel = baseTooltipModel.getModel('axisPointer');\n var fields = ['type', 'snap', 'lineStyle', 'shadowStyle', 'label', 'animation', 'animationDurationUpdate', 'animationEasingUpdate', 'z'];\n var volatileOption = {};\n each(fields, function (field) {\n volatileOption[field] = clone(tooltipAxisPointerModel.get(field));\n }); // category axis do not auto snap, otherwise some tick that do not\n // has value can not be hovered. value/time/log axis default snap if\n // triggered from tooltip and trigger tooltip.\n\n volatileOption.snap = axis.type !== 'category' && !!triggerTooltip; // Compatibel with previous behavior, tooltip axis do not show label by default.\n // Only these properties can be overrided from tooltip to axisPointer.\n\n if (tooltipAxisPointerModel.get('type') === 'cross') {\n volatileOption.type = 'line';\n }\n\n var labelOption = volatileOption.label || (volatileOption.label = {}); // Follow the convention, do not show label when triggered by tooltip by default.\n\n labelOption.show == null && (labelOption.show = false);\n\n if (fromTooltip === 'cross') {\n // When 'cross', both axes show labels.\n var tooltipAxisPointerLabelShow = tooltipAxisPointerModel.get(['label', 'show']);\n labelOption.show = tooltipAxisPointerLabelShow != null ? tooltipAxisPointerLabelShow : true; // If triggerTooltip, this is a base axis, which should better not use cross style\n // (cross style is dashed by default)\n\n if (!triggerTooltip) {\n var crossStyle = volatileOption.lineStyle = tooltipAxisPointerModel.get('crossStyle');\n crossStyle && defaults(labelOption, crossStyle.textStyle);\n }\n }\n\n return axis.model.getModel('axisPointer', new Model(volatileOption, globalAxisPointerModel, ecModel));\n}\n\nfunction collectSeriesInfo(result, ecModel) {\n // Prepare data for axis trigger\n ecModel.eachSeries(function (seriesModel) {\n // Notice this case: this coordSys is `cartesian2D` but not `grid`.\n var coordSys = seriesModel.coordinateSystem;\n var seriesTooltipTrigger = seriesModel.get(['tooltip', 'trigger'], true);\n var seriesTooltipShow = seriesModel.get(['tooltip', 'show'], true);\n\n if (!coordSys || seriesTooltipTrigger === 'none' || seriesTooltipTrigger === false || seriesTooltipTrigger === 'item' || seriesTooltipShow === false || seriesModel.get(['axisPointer', 'show'], true) === false) {\n return;\n }\n\n each(result.coordSysAxesInfo[makeKey(coordSys.model)], function (axisInfo) {\n var axis = axisInfo.axis;\n\n if (coordSys.getAxis(axis.dim) === axis) {\n axisInfo.seriesModels.push(seriesModel);\n axisInfo.seriesDataCount == null && (axisInfo.seriesDataCount = 0);\n axisInfo.seriesDataCount += seriesModel.getData().count();\n }\n });\n });\n}\n/**\n * For example:\n * {\n * axisPointer: {\n * links: [{\n * xAxisIndex: [2, 4],\n * yAxisIndex: 'all'\n * }, {\n * xAxisId: ['a5', 'a7'],\n * xAxisName: 'xxx'\n * }]\n * }\n * }\n */\n\n\nfunction getLinkGroupIndex(linksOption, axis) {\n var axisModel = axis.model;\n var dim = axis.dim;\n\n for (var i = 0; i < linksOption.length; i++) {\n var linkOption = linksOption[i] || {};\n\n if (checkPropInLink(linkOption[dim + 'AxisId'], axisModel.id) || checkPropInLink(linkOption[dim + 'AxisIndex'], axisModel.componentIndex) || checkPropInLink(linkOption[dim + 'AxisName'], axisModel.name)) {\n return i;\n }\n }\n}\n\nfunction checkPropInLink(linkPropValue, axisPropValue) {\n return linkPropValue === 'all' || isArray(linkPropValue) && indexOf(linkPropValue, axisPropValue) >= 0 || linkPropValue === axisPropValue;\n}\n\nexport function fixValue(axisModel) {\n var axisInfo = getAxisInfo(axisModel);\n\n if (!axisInfo) {\n return;\n }\n\n var axisPointerModel = axisInfo.axisPointerModel;\n var scale = axisInfo.axis.scale;\n var option = axisPointerModel.option;\n var status = axisPointerModel.get('status');\n var value = axisPointerModel.get('value'); // Parse init value for category and time axis.\n\n if (value != null) {\n value = scale.parse(value);\n }\n\n var useHandle = isHandleTrigger(axisPointerModel); // If `handle` used, `axisPointer` will always be displayed, so value\n // and status should be initialized.\n\n if (status == null) {\n option.status = useHandle ? 'show' : 'hide';\n }\n\n var extent = scale.getExtent().slice();\n extent[0] > extent[1] && extent.reverse();\n\n if ( // Pick a value on axis when initializing.\n value == null // If both `handle` and `dataZoom` are used, value may be out of axis extent,\n // where we should re-pick a value to keep `handle` displaying normally.\n || value > extent[1]) {\n // Make handle displayed on the end of the axis when init, which looks better.\n value = extent[1];\n }\n\n if (value < extent[0]) {\n value = extent[0];\n }\n\n option.value = value;\n\n if (useHandle) {\n option.status = axisInfo.axis.scale.isBlank() ? 'hide' : 'show';\n }\n}\nexport function getAxisInfo(axisModel) {\n var coordSysAxesInfo = (axisModel.ecModel.getComponent('axisPointer') || {}).coordSysAxesInfo;\n return coordSysAxesInfo && coordSysAxesInfo.axesInfo[makeKey(axisModel)];\n}\nexport function getAxisPointerModel(axisModel) {\n var axisInfo = getAxisInfo(axisModel);\n return axisInfo && axisInfo.axisPointerModel;\n}\n\nfunction isHandleTrigger(axisPointerModel) {\n return !!axisPointerModel.get(['handle', 'show']);\n}\n/**\n * @param {module:echarts/model/Model} model\n * @return {string} unique key\n */\n\n\nexport function makeKey(model) {\n return model.type + '||' + model.id;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as axisPointerModelHelper from '../axisPointer/modelHelper';\nimport ComponentView from '../../view/Component';\nvar axisPointerClazz = {};\n/**\n * Base class of AxisView.\n */\n\nvar AxisView =\n/** @class */\nfunction (_super) {\n __extends(AxisView, _super);\n\n function AxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisView.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n AxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n // FIXME\n // This process should proformed after coordinate systems updated\n // (axis scale updated), and should be performed each time update.\n // So put it here temporarily, although it is not appropriate to\n // put a model-writing procedure in `view`.\n this.axisPointerClass && axisPointerModelHelper.fixValue(axisModel);\n\n _super.prototype.render.apply(this, arguments);\n\n this._doUpdateAxisPointerClass(axisModel, api, true);\n };\n /**\n * Action handler.\n */\n\n\n AxisView.prototype.updateAxisPointer = function (axisModel, ecModel, api, payload) {\n this._doUpdateAxisPointerClass(axisModel, api, false);\n };\n /**\n * @override\n */\n\n\n AxisView.prototype.remove = function (ecModel, api) {\n var axisPointer = this._axisPointer;\n axisPointer && axisPointer.remove(api);\n };\n /**\n * @override\n */\n\n\n AxisView.prototype.dispose = function (ecModel, api) {\n this._disposeAxisPointer(api);\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n AxisView.prototype._doUpdateAxisPointerClass = function (axisModel, api, forceRender) {\n var Clazz = AxisView.getAxisPointerClass(this.axisPointerClass);\n\n if (!Clazz) {\n return;\n }\n\n var axisPointerModel = axisPointerModelHelper.getAxisPointerModel(axisModel);\n axisPointerModel ? (this._axisPointer || (this._axisPointer = new Clazz())).render(axisModel, axisPointerModel, api, forceRender) : this._disposeAxisPointer(api);\n };\n\n AxisView.prototype._disposeAxisPointer = function (api) {\n this._axisPointer && this._axisPointer.dispose(api);\n this._axisPointer = null;\n };\n\n AxisView.registerAxisPointerClass = function (type, clazz) {\n if (process.env.NODE_ENV !== 'production') {\n if (axisPointerClazz[type]) {\n throw new Error('axisPointer ' + type + ' exists');\n }\n }\n\n axisPointerClazz[type] = clazz;\n };\n\n ;\n\n AxisView.getAxisPointerClass = function (type) {\n return type && axisPointerClazz[type];\n };\n\n ;\n AxisView.type = 'axis';\n return AxisView;\n}(ComponentView);\n\nexport default AxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nexport function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n } // TODO: TYPE\n\n\n var splitAreaModel = axisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var gridRect = gridModel.coordinateSystem.getRect();\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitAreaModel,\n clamp: true\n });\n\n if (!ticksCoords.length) {\n return;\n } // For Making appropriate splitArea animation, the color and anid\n // should be corresponding to previous one if possible.\n\n\n var areaColorsLen = areaColors.length;\n var lastSplitAreaColors = inner(axisView).splitAreaColors;\n var newSplitAreaColors = zrUtil.createHashMap();\n var colorIndex = 0;\n\n if (lastSplitAreaColors) {\n for (var i = 0; i < ticksCoords.length; i++) {\n var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue);\n\n if (cIndex != null) {\n colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen;\n break;\n }\n }\n }\n\n var prev = axis.toGlobalCoord(ticksCoords[0].coord);\n var areaStyle = areaStyleModel.getAreaStyle();\n areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors];\n\n for (var i = 1; i < ticksCoords.length; i++) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n var x = void 0;\n var y = void 0;\n var width = void 0;\n var height = void 0;\n\n if (axis.isHorizontal()) {\n x = prev;\n y = gridRect.y;\n width = tickCoord - x;\n height = gridRect.height;\n prev = x + width;\n } else {\n x = gridRect.x;\n y = prev;\n width = gridRect.width;\n height = tickCoord - y;\n prev = y + height;\n }\n\n var tickValue = ticksCoords[i - 1].tickValue;\n tickValue != null && newSplitAreaColors.set(tickValue, colorIndex);\n axisGroup.add(new graphic.Rect({\n anid: tickValue != null ? 'area_' + tickValue : null,\n shape: {\n x: x,\n y: y,\n width: width,\n height: height\n },\n style: zrUtil.defaults({\n fill: areaColors[colorIndex]\n }, areaStyle),\n autoBatch: true,\n silent: true\n }));\n colorIndex = (colorIndex + 1) % areaColorsLen;\n }\n\n inner(axisView).splitAreaColors = newSplitAreaColors;\n}\nexport function rectCoordAxisHandleRemove(axisView) {\n inner(axisView).splitAreaColors = null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\nimport { rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove } from './axisSplitHelper';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitArea', 'splitLine', 'minorSplitLine'];\n\nvar CartesianAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisView, _super);\n\n function CartesianAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianAxisView.type;\n _this.axisPointerClass = 'CartesianAxisPointer';\n return _this;\n }\n /**\n * @override\n */\n\n\n CartesianAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n this.group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n var gridModel = axisModel.getCoordSysModel();\n var layout = cartesianAxisHelper.layout(gridModel, axisModel);\n var axisBuilder = new AxisBuilder(axisModel, zrUtil.extend({\n handleAutoShown: function (elementType) {\n var cartesians = gridModel.coordinateSystem.getCartesians();\n\n for (var i = 0; i < cartesians.length; i++) {\n var otherAxisType = cartesians[i].getOtherAxis(axisModel.axis).type;\n\n if (otherAxisType === 'value' || otherAxisType === 'log') {\n // Still show axis tick or axisLine if other axis is value / log\n return true;\n }\n } // Not show axisTick or axisLine if other axis is category / time\n\n\n return false;\n }\n }, layout));\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this._axisGroup, axisModel, gridModel);\n }\n }, this);\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n _super.prototype.render.call(this, axisModel, ecModel, api, payload);\n };\n\n CartesianAxisView.prototype.remove = function () {\n rectCoordAxisHandleRemove(this);\n };\n\n CartesianAxisView.type = 'cartesianAxis';\n return CartesianAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n var splitLineModel = axisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n lineColors = zrUtil.isArray(lineColors) ? lineColors : [lineColors];\n var gridRect = gridModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var lineCount = 0;\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n var p1 = [];\n var p2 = [];\n var lineStyle = lineStyleModel.getLineStyle();\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n var colorIndex = lineCount++ % lineColors.length;\n var tickValue = ticksCoords[i].tickValue;\n axisGroup.add(new graphic.Line({\n anid: tickValue != null ? 'line_' + ticksCoords[i].tickValue : null,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: zrUtil.defaults({\n stroke: lineColors[colorIndex]\n }, lineStyle),\n silent: true\n }));\n }\n },\n minorSplitLine: function (axisView, axisGroup, axisModel, gridModel) {\n var axis = axisModel.axis;\n var minorSplitLineModel = axisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var gridRect = gridModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var minorTicksCoords = axis.getMinorTicksCoords();\n\n if (!minorTicksCoords.length) {\n return;\n }\n\n var p1 = [];\n var p2 = [];\n var lineStyle = lineStyleModel.getLineStyle();\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n for (var k = 0; k < minorTicksCoords[i].length; k++) {\n var tickCoord = axis.toGlobalCoord(minorTicksCoords[i][k].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n axisGroup.add(new graphic.Line({\n anid: 'minor_line_' + minorTicksCoords[i][k].tickValue,\n subPixelOptimize: true,\n autoBatch: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n style: lineStyle,\n silent: true\n }));\n }\n }\n },\n splitArea: function (axisView, axisGroup, axisModel, gridModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel);\n }\n};\n\nvar CartesianXAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianXAxisView, _super);\n\n function CartesianXAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianXAxisView.type;\n return _this;\n }\n\n CartesianXAxisView.type = 'xAxis';\n return CartesianXAxisView;\n}(CartesianAxisView);\n\nexport { CartesianXAxisView };\n\nvar CartesianYAxisView =\n/** @class */\nfunction (_super) {\n __extends(CartesianYAxisView, _super);\n\n function CartesianYAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CartesianXAxisView.type;\n return _this;\n }\n\n CartesianYAxisView.type = 'yAxis';\n return CartesianYAxisView;\n}(CartesianAxisView);\n\nexport { CartesianYAxisView };\nexport default CartesianAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport GridModel from '../../coord/cartesian/GridModel';\nimport { Rect } from '../../util/graphic';\nimport { defaults } from 'zrender/lib/core/util';\nimport { CartesianAxisModel } from '../../coord/cartesian/AxisModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport Grid from '../../coord/cartesian/Grid';\nimport { CartesianXAxisView, CartesianYAxisView } from '../axis/CartesianAxisView'; // Grid view\n\nvar GridView =\n/** @class */\nfunction (_super) {\n __extends(GridView, _super);\n\n function GridView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'grid';\n return _this;\n }\n\n GridView.prototype.render = function (gridModel, ecModel) {\n this.group.removeAll();\n\n if (gridModel.get('show')) {\n this.group.add(new Rect({\n shape: gridModel.coordinateSystem.getRect(),\n style: defaults({\n fill: gridModel.get('backgroundColor')\n }, gridModel.getItemStyle()),\n silent: true,\n z2: -1\n }));\n }\n };\n\n GridView.type = 'grid';\n return GridView;\n}(ComponentView);\n\nvar extraOption = {\n // gridIndex: 0,\n // gridId: '',\n offset: 0\n};\nexport function install(registers) {\n registers.registerComponentView(GridView);\n registers.registerComponentModel(GridModel);\n registers.registerCoordinateSystem('cartesian2d', Grid);\n axisModelCreator(registers, 'x', CartesianAxisModel, extraOption);\n axisModelCreator(registers, 'y', CartesianAxisModel, extraOption);\n registers.registerComponentView(CartesianXAxisView);\n registers.registerComponentView(CartesianYAxisView);\n registers.registerPreprocessor(function (option) {\n // Only create grid when need\n if (option.xAxis && option.yAxis && !option.grid) {\n option.grid = {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport ScatterSeriesModel from './ScatterSeries';\nimport ScatterView from './ScatterView';\nimport { install as installGridSimple } from '../../component/grid/installSimple';\nimport layoutPoints from '../../layout/points';\nexport function install(registers) {\n // In case developer forget to include grid component\n use(installGridSimple);\n registers.registerSeriesModel(ScatterSeriesModel);\n registers.registerChartView(ScatterView);\n registers.registerLayout(layoutPoints('scatter'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function radarLayout(ecModel) {\n ecModel.eachSeriesByType('radar', function (seriesModel) {\n var data = seriesModel.getData();\n var points = [];\n var coordSys = seriesModel.coordinateSystem;\n\n if (!coordSys) {\n return;\n }\n\n var axes = coordSys.getIndicatorAxes();\n zrUtil.each(axes, function (axis, axisIndex) {\n data.each(data.mapDimension(axes[axisIndex].dim), function (val, dataIndex) {\n points[dataIndex] = points[dataIndex] || [];\n var point = coordSys.dataToPoint(val, axisIndex);\n points[dataIndex][axisIndex] = isValidPoint(point) ? point : getValueMissingPoint(coordSys);\n });\n }); // Close polygon\n\n data.each(function (idx) {\n // TODO\n // Is it appropriate to connect to the next data when some data is missing?\n // Or, should trade it like `connectNull` in line chart?\n var firstPoint = zrUtil.find(points[idx], function (point) {\n return isValidPoint(point);\n }) || getValueMissingPoint(coordSys); // Copy the first actual point to the end of the array\n\n points[idx].push(firstPoint.slice());\n data.setItemLayout(idx, points[idx]);\n });\n });\n}\n\nfunction isValidPoint(point) {\n return !isNaN(point[0]) && !isNaN(point[1]);\n}\n\nfunction getValueMissingPoint(coordSys) {\n // It is error-prone to input [NaN, NaN] into polygon, polygon.\n // (probably cause problem when refreshing or animating)\n return [coordSys.cx, coordSys.cy];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\n// Backward compat for radar chart in 2\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function radarBackwardCompat(option) {\n var polarOptArr = option.polar;\n\n if (polarOptArr) {\n if (!zrUtil.isArray(polarOptArr)) {\n polarOptArr = [polarOptArr];\n }\n\n var polarNotRadar_1 = [];\n zrUtil.each(polarOptArr, function (polarOpt, idx) {\n if (polarOpt.indicator) {\n if (polarOpt.type && !polarOpt.shape) {\n polarOpt.shape = polarOpt.type;\n }\n\n option.radar = option.radar || [];\n\n if (!zrUtil.isArray(option.radar)) {\n option.radar = [option.radar];\n }\n\n option.radar.push(polarOpt);\n } else {\n polarNotRadar_1.push(polarOpt);\n }\n });\n option.polar = polarNotRadar_1;\n }\n\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {\n seriesOpt.radarIndex = seriesOpt.polarIndex;\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as symbolUtil from '../../util/symbol';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\n\nfunction normalizeSymbolSize(symbolSize) {\n if (!zrUtil.isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n\n return symbolSize;\n}\n\nvar RadarView =\n/** @class */\nfunction (_super) {\n __extends(RadarView, _super);\n\n function RadarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarView.type;\n return _this;\n }\n\n RadarView.prototype.render = function (seriesModel, ecModel, api) {\n var polar = seriesModel.coordinateSystem;\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n\n function createSymbol(data, idx) {\n var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';\n\n if (symbolType === 'none') {\n return;\n }\n\n var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n var symbolPath = symbolUtil.createSymbol(symbolType, -1, -1, 2, 2);\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate') || 0;\n symbolPath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 100,\n scaleX: symbolSize[0] / 2,\n scaleY: symbolSize[1] / 2,\n rotation: symbolRotate * Math.PI / 180 || 0\n });\n return symbolPath;\n }\n\n function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) {\n // Simply rerender all\n symbolGroup.removeAll();\n\n for (var i = 0; i < newPoints.length - 1; i++) {\n var symbolPath = createSymbol(data, idx);\n\n if (symbolPath) {\n symbolPath.__dimIdx = i;\n\n if (oldPoints[i]) {\n symbolPath.setPosition(oldPoints[i]);\n graphic[isInit ? 'initProps' : 'updateProps'](symbolPath, {\n x: newPoints[i][0],\n y: newPoints[i][1]\n }, seriesModel, idx);\n } else {\n symbolPath.setPosition(newPoints[i]);\n }\n\n symbolGroup.add(symbolPath);\n }\n }\n }\n\n function getInitialPoints(points) {\n return zrUtil.map(points, function (pt) {\n return [polar.cx, polar.cy];\n });\n }\n\n data.diff(oldData).add(function (idx) {\n var points = data.getItemLayout(idx);\n\n if (!points) {\n return;\n }\n\n var polygon = new graphic.Polygon();\n var polyline = new graphic.Polyline();\n var target = {\n shape: {\n points: points\n }\n };\n polygon.shape.points = getInitialPoints(points);\n polyline.shape.points = getInitialPoints(points);\n graphic.initProps(polygon, target, seriesModel, idx);\n graphic.initProps(polyline, target, seriesModel, idx);\n var itemGroup = new graphic.Group();\n var symbolGroup = new graphic.Group();\n itemGroup.add(polyline);\n itemGroup.add(polygon);\n itemGroup.add(symbolGroup);\n updateSymbols(polyline.shape.points, points, symbolGroup, data, idx, true);\n data.setItemGraphicEl(idx, itemGroup);\n }).update(function (newIdx, oldIdx) {\n var itemGroup = oldData.getItemGraphicEl(oldIdx);\n var polyline = itemGroup.childAt(0);\n var polygon = itemGroup.childAt(1);\n var symbolGroup = itemGroup.childAt(2);\n var target = {\n shape: {\n points: data.getItemLayout(newIdx)\n }\n };\n\n if (!target.shape.points) {\n return;\n }\n\n updateSymbols(polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false);\n graphic.updateProps(polyline, target, seriesModel);\n graphic.updateProps(polygon, target, seriesModel);\n data.setItemGraphicEl(newIdx, itemGroup);\n }).remove(function (idx) {\n group.remove(oldData.getItemGraphicEl(idx));\n }).execute();\n data.eachItemGraphicEl(function (itemGroup, idx) {\n var itemModel = data.getItemModel(idx);\n var polyline = itemGroup.childAt(0);\n var polygon = itemGroup.childAt(1);\n var symbolGroup = itemGroup.childAt(2); // Radar uses the visual encoded from itemStyle.\n\n var itemStyle = data.getItemVisual(idx, 'style');\n var color = itemStyle.fill;\n group.add(itemGroup);\n polyline.useStyle(zrUtil.defaults(itemModel.getModel('lineStyle').getLineStyle(), {\n fill: 'none',\n stroke: color\n }));\n setStatesStylesFromModel(polyline, itemModel, 'lineStyle');\n setStatesStylesFromModel(polygon, itemModel, 'areaStyle');\n var areaStyleModel = itemModel.getModel('areaStyle');\n var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();\n polygon.ignore = polygonIgnore;\n zrUtil.each(['emphasis', 'select', 'blur'], function (stateName) {\n var stateModel = itemModel.getModel([stateName, 'areaStyle']);\n var stateIgnore = stateModel.isEmpty() && stateModel.parentModel.isEmpty(); // Won't be ignore if normal state is not ignore.\n\n polygon.ensureState(stateName).ignore = stateIgnore && polygonIgnore;\n });\n polygon.useStyle(zrUtil.defaults(areaStyleModel.getAreaStyle(), {\n fill: color,\n opacity: 0.7,\n decal: itemStyle.decal\n }));\n var emphasisModel = itemModel.getModel('emphasis');\n var itemHoverStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n symbolGroup.eachChild(function (symbolPath) {\n if (symbolPath instanceof ZRImage) {\n var pathStyle = symbolPath.style;\n symbolPath.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, itemStyle));\n } else {\n symbolPath.useStyle(itemStyle);\n symbolPath.setColor(color);\n }\n\n var pathEmphasisState = symbolPath.ensureState('emphasis');\n pathEmphasisState.style = zrUtil.clone(itemHoverStyle);\n var defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx);\n (defaultText == null || isNaN(defaultText)) && (defaultText = '');\n setLabelStyle(symbolPath, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n labelDimIndex: symbolPath.__dimIdx,\n defaultText: defaultText,\n inheritColor: color,\n defaultOpacity: itemStyle.opacity\n });\n });\n enableHoverEmphasis(itemGroup, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n });\n this._data = data;\n };\n\n RadarView.prototype.remove = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n RadarView.type = 'radar';\n return RadarView;\n}(ChartView);\n\nexport default RadarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport { createTooltipMarkup, retrieveVisualColorForTooltipMarker } from '../../component/tooltip/tooltipMarkup';\n\nvar RadarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(RadarSeriesModel, _super);\n\n function RadarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarSeriesModel.type;\n _this.useColorPaletteOnData = true;\n _this.hasSymbolVisual = true;\n return _this;\n } // Overwrite\n\n\n RadarSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n };\n\n RadarSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, {\n generateCoord: 'indicator_',\n generateCoordCount: Infinity\n });\n };\n\n RadarSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var coordSys = this.coordinateSystem;\n var indicatorAxes = coordSys.getIndicatorAxes();\n var name = this.getData().getName(dataIndex);\n var nameToDisplay = name === '' ? this.name : name;\n var markerColor = retrieveVisualColorForTooltipMarker(this, dataIndex);\n return createTooltipMarkup('section', {\n header: nameToDisplay,\n sortBlocks: true,\n blocks: zrUtil.map(indicatorAxes, function (axis) {\n var val = data.get(data.mapDimension(axis.dim), dataIndex);\n return createTooltipMarkup('nameValue', {\n markerType: 'subItem',\n markerColor: markerColor,\n name: axis.name,\n value: val,\n sortParam: val\n });\n })\n });\n };\n\n RadarSeriesModel.prototype.getTooltipPosition = function (dataIndex) {\n if (dataIndex != null) {\n var data_1 = this.getData();\n var coordSys = this.coordinateSystem;\n var values = data_1.getValues(zrUtil.map(coordSys.dimensions, function (dim) {\n return data_1.mapDimension(dim);\n }), dataIndex);\n\n for (var i = 0, len = values.length; i < len; i++) {\n if (!isNaN(values[i])) {\n var indicatorAxes = coordSys.getIndicatorAxes();\n return coordSys.coordToPoint(indicatorAxes[i].dataToCoord(values[i]), i);\n }\n }\n }\n };\n\n RadarSeriesModel.type = 'series.radar';\n RadarSeriesModel.dependencies = ['radar'];\n RadarSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'radar',\n legendHoverLink: true,\n radarIndex: 0,\n lineStyle: {\n width: 2,\n type: 'solid'\n },\n label: {\n position: 'top'\n },\n // areaStyle: {\n // },\n // itemStyle: {}\n symbolSize: 8 // symbolRotate: null\n\n };\n return RadarSeriesModel;\n}(SeriesModel);\n\nexport default RadarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport axisDefault from '../axisDefault';\nimport Model from '../../model/Model';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport ComponentModel from '../../model/Component';\nvar valueAxisDefault = axisDefault.value;\n\nfunction defaultsShow(opt, show) {\n return zrUtil.defaults({\n show: show\n }, opt);\n}\n\nvar RadarModel =\n/** @class */\nfunction (_super) {\n __extends(RadarModel, _super);\n\n function RadarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarModel.type;\n return _this;\n }\n\n RadarModel.prototype.optionUpdated = function () {\n var boundaryGap = this.get('boundaryGap');\n var splitNumber = this.get('splitNumber');\n var scale = this.get('scale');\n var axisLine = this.get('axisLine');\n var axisTick = this.get('axisTick'); // let axisType = this.get('axisType');\n\n var axisLabel = this.get('axisLabel');\n var nameTextStyle = this.get('axisName');\n var showName = this.get(['axisName', 'show']);\n var nameFormatter = this.get(['axisName', 'formatter']);\n var nameGap = this.get('axisNameGap');\n var triggerEvent = this.get('triggerEvent');\n var indicatorModels = zrUtil.map(this.get('indicator') || [], function (indicatorOpt) {\n // PENDING\n if (indicatorOpt.max != null && indicatorOpt.max > 0 && !indicatorOpt.min) {\n indicatorOpt.min = 0;\n } else if (indicatorOpt.min != null && indicatorOpt.min < 0 && !indicatorOpt.max) {\n indicatorOpt.max = 0;\n }\n\n var iNameTextStyle = nameTextStyle;\n\n if (indicatorOpt.color != null) {\n iNameTextStyle = zrUtil.defaults({\n color: indicatorOpt.color\n }, nameTextStyle);\n } // Use same configuration\n\n\n var innerIndicatorOpt = zrUtil.merge(zrUtil.clone(indicatorOpt), {\n boundaryGap: boundaryGap,\n splitNumber: splitNumber,\n scale: scale,\n axisLine: axisLine,\n axisTick: axisTick,\n // axisType: axisType,\n axisLabel: axisLabel,\n // Compatible with 2 and use text\n name: indicatorOpt.text,\n nameLocation: 'end',\n nameGap: nameGap,\n // min: 0,\n nameTextStyle: iNameTextStyle,\n triggerEvent: triggerEvent\n }, false);\n\n if (!showName) {\n innerIndicatorOpt.name = '';\n }\n\n if (typeof nameFormatter === 'string') {\n var indName = innerIndicatorOpt.name;\n innerIndicatorOpt.name = nameFormatter.replace('{value}', indName != null ? indName : '');\n } else if (typeof nameFormatter === 'function') {\n innerIndicatorOpt.name = nameFormatter(innerIndicatorOpt.name, innerIndicatorOpt);\n }\n\n var model = new Model(innerIndicatorOpt, null, this.ecModel);\n zrUtil.mixin(model, AxisModelCommonMixin.prototype); // For triggerEvent.\n\n model.mainType = 'radar';\n model.componentIndex = this.componentIndex;\n return model;\n }, this);\n this._indicatorModels = indicatorModels;\n };\n\n RadarModel.prototype.getIndicatorModels = function () {\n return this._indicatorModels;\n };\n\n RadarModel.type = 'radar';\n RadarModel.defaultOption = {\n zlevel: 0,\n z: 0,\n center: ['50%', '50%'],\n radius: '75%',\n startAngle: 90,\n axisName: {\n show: true // formatter: null\n // textStyle: {}\n\n },\n boundaryGap: [0, 0],\n splitNumber: 5,\n axisNameGap: 15,\n scale: false,\n // Polygon or circle\n shape: 'polygon',\n axisLine: zrUtil.merge({\n lineStyle: {\n color: '#bbb'\n }\n }, valueAxisDefault.axisLine),\n axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),\n axisTick: defaultsShow(valueAxisDefault.axisTick, false),\n // axisType: 'value',\n splitLine: defaultsShow(valueAxisDefault.splitLine, true),\n splitArea: defaultsShow(valueAxisDefault.splitArea, true),\n // {text, min, max}\n indicator: []\n };\n return RadarModel;\n}(ComponentModel);\n\nexport default RadarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\n\nvar RadarView =\n/** @class */\nfunction (_super) {\n __extends(RadarView, _super);\n\n function RadarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadarView.type;\n return _this;\n }\n\n RadarView.prototype.render = function (radarModel, ecModel, api) {\n var group = this.group;\n group.removeAll();\n\n this._buildAxes(radarModel);\n\n this._buildSplitLineAndArea(radarModel);\n };\n\n RadarView.prototype._buildAxes = function (radarModel) {\n var radar = radarModel.coordinateSystem;\n var indicatorAxes = radar.getIndicatorAxes();\n var axisBuilders = zrUtil.map(indicatorAxes, function (indicatorAxis) {\n var axisBuilder = new AxisBuilder(indicatorAxis.model, {\n position: [radar.cx, radar.cy],\n rotation: indicatorAxis.angle,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1\n });\n return axisBuilder;\n });\n zrUtil.each(axisBuilders, function (axisBuilder) {\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n this.group.add(axisBuilder.getGroup());\n }, this);\n };\n\n RadarView.prototype._buildSplitLineAndArea = function (radarModel) {\n var radar = radarModel.coordinateSystem;\n var indicatorAxes = radar.getIndicatorAxes();\n\n if (!indicatorAxes.length) {\n return;\n }\n\n var shape = radarModel.get('shape');\n var splitLineModel = radarModel.getModel('splitLine');\n var splitAreaModel = radarModel.getModel('splitArea');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var showSplitLine = splitLineModel.get('show');\n var showSplitArea = splitAreaModel.get('show');\n var splitLineColors = lineStyleModel.get('color');\n var splitAreaColors = areaStyleModel.get('color');\n var splitLineColorsArr = zrUtil.isArray(splitLineColors) ? splitLineColors : [splitLineColors];\n var splitAreaColorsArr = zrUtil.isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];\n var splitLines = [];\n var splitAreas = [];\n\n function getColorIndex(areaOrLine, areaOrLineColorList, idx) {\n var colorIndex = idx % areaOrLineColorList.length;\n areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];\n return colorIndex;\n }\n\n if (shape === 'circle') {\n var ticksRadius = indicatorAxes[0].getTicksCoords();\n var cx = radar.cx;\n var cy = radar.cy;\n\n for (var i = 0; i < ticksRadius.length; i++) {\n if (showSplitLine) {\n var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: cx,\n cy: cy,\n r: ticksRadius[i].coord\n }\n }));\n }\n\n if (showSplitArea && i < ticksRadius.length - 1) {\n var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i);\n splitAreas[colorIndex].push(new graphic.Ring({\n shape: {\n cx: cx,\n cy: cy,\n r0: ticksRadius[i].coord,\n r: ticksRadius[i + 1].coord\n }\n }));\n }\n }\n } // Polyyon\n else {\n var realSplitNumber_1;\n var axesTicksPoints = zrUtil.map(indicatorAxes, function (indicatorAxis, idx) {\n var ticksCoords = indicatorAxis.getTicksCoords();\n realSplitNumber_1 = realSplitNumber_1 == null ? ticksCoords.length - 1 : Math.min(ticksCoords.length - 1, realSplitNumber_1);\n return zrUtil.map(ticksCoords, function (tickCoord) {\n return radar.coordToPoint(tickCoord.coord, idx);\n });\n });\n var prevPoints = [];\n\n for (var i = 0; i <= realSplitNumber_1; i++) {\n var points = [];\n\n for (var j = 0; j < indicatorAxes.length; j++) {\n points.push(axesTicksPoints[j][i]);\n } // Close\n\n\n if (points[0]) {\n points.push(points[0].slice());\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Can\\'t draw value axis ' + i);\n }\n }\n\n if (showSplitLine) {\n var colorIndex = getColorIndex(splitLines, splitLineColorsArr, i);\n splitLines[colorIndex].push(new graphic.Polyline({\n shape: {\n points: points\n }\n }));\n }\n\n if (showSplitArea && prevPoints) {\n var colorIndex = getColorIndex(splitAreas, splitAreaColorsArr, i - 1);\n splitAreas[colorIndex].push(new graphic.Polygon({\n shape: {\n points: points.concat(prevPoints)\n }\n }));\n }\n\n prevPoints = points.slice().reverse();\n }\n }\n\n var lineStyle = lineStyleModel.getLineStyle();\n var areaStyle = areaStyleModel.getAreaStyle(); // Add splitArea before splitLine\n\n zrUtil.each(splitAreas, function (splitAreas, idx) {\n this.group.add(graphic.mergePath(splitAreas, {\n style: zrUtil.defaults({\n stroke: 'none',\n fill: splitAreaColorsArr[idx % splitAreaColorsArr.length]\n }, areaStyle),\n silent: true\n }));\n }, this);\n zrUtil.each(splitLines, function (splitLines, idx) {\n this.group.add(graphic.mergePath(splitLines, {\n style: zrUtil.defaults({\n fill: 'none',\n stroke: splitLineColorsArr[idx % splitLineColorsArr.length]\n }, lineStyle),\n silent: true\n }));\n }, this);\n };\n\n RadarView.type = 'radar';\n return RadarView;\n}(ComponentView);\n\nexport default RadarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar IndicatorAxis =\n/** @class */\nfunction (_super) {\n __extends(IndicatorAxis, _super);\n\n function IndicatorAxis(dim, scale, radiusExtent) {\n var _this = _super.call(this, dim, scale, radiusExtent) || this;\n\n _this.type = 'value';\n _this.angle = 0;\n _this.name = '';\n return _this;\n }\n\n return IndicatorAxis;\n}(Axis);\n\nexport default IndicatorAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO clockwise\nimport IndicatorAxis from './IndicatorAxis';\nimport IntervalScale from '../../scale/Interval';\nimport * as numberUtil from '../../util/number';\nimport { getScaleExtent, niceScaleExtent } from '../axisHelper';\nimport { parseAxisModelMinMax } from '../scaleRawExtentInfo';\nimport { map, each } from 'zrender/lib/core/util';\n\nvar Radar =\n/** @class */\nfunction () {\n function Radar(radarModel, ecModel, api) {\n /**\n *\n * Radar dimensions\n */\n this.dimensions = [];\n this._model = radarModel;\n this._indicatorAxes = map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {\n var dim = 'indicator_' + idx;\n var indicatorAxis = new IndicatorAxis(dim, new IntervalScale() // (indicatorModel.get('axisType') === 'log') ? new LogScale() : new IntervalScale()\n );\n indicatorAxis.name = indicatorModel.get('name'); // Inject model and axis\n\n indicatorAxis.model = indicatorModel;\n indicatorModel.axis = indicatorAxis;\n this.dimensions.push(dim);\n return indicatorAxis;\n }, this);\n this.resize(radarModel, api);\n }\n\n Radar.prototype.getIndicatorAxes = function () {\n return this._indicatorAxes;\n };\n\n Radar.prototype.dataToPoint = function (value, indicatorIndex) {\n var indicatorAxis = this._indicatorAxes[indicatorIndex];\n return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);\n }; // TODO: API should be coordToPoint([coord, indicatorIndex])\n\n\n Radar.prototype.coordToPoint = function (coord, indicatorIndex) {\n var indicatorAxis = this._indicatorAxes[indicatorIndex];\n var angle = indicatorAxis.angle;\n var x = this.cx + coord * Math.cos(angle);\n var y = this.cy - coord * Math.sin(angle);\n return [x, y];\n };\n\n Radar.prototype.pointToData = function (pt) {\n var dx = pt[0] - this.cx;\n var dy = pt[1] - this.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n var radian = Math.atan2(-dy, dx); // Find the closest angle\n // FIXME index can calculated directly\n\n var minRadianDiff = Infinity;\n var closestAxis;\n var closestAxisIdx = -1;\n\n for (var i = 0; i < this._indicatorAxes.length; i++) {\n var indicatorAxis = this._indicatorAxes[i];\n var diff = Math.abs(radian - indicatorAxis.angle);\n\n if (diff < minRadianDiff) {\n closestAxis = indicatorAxis;\n closestAxisIdx = i;\n minRadianDiff = diff;\n }\n }\n\n return [closestAxisIdx, +(closestAxis && closestAxis.coordToData(radius))];\n };\n\n Radar.prototype.resize = function (radarModel, api) {\n var center = radarModel.get('center');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var viewSize = Math.min(viewWidth, viewHeight) / 2;\n this.cx = numberUtil.parsePercent(center[0], viewWidth);\n this.cy = numberUtil.parsePercent(center[1], viewHeight);\n this.startAngle = radarModel.get('startAngle') * Math.PI / 180; // radius may be single value like `20`, `'80%'`, or array like `[10, '80%']`\n\n var radius = radarModel.get('radius');\n\n if (typeof radius === 'string' || typeof radius === 'number') {\n radius = [0, radius];\n }\n\n this.r0 = numberUtil.parsePercent(radius[0], viewSize);\n this.r = numberUtil.parsePercent(radius[1], viewSize);\n each(this._indicatorAxes, function (indicatorAxis, idx) {\n indicatorAxis.setExtent(this.r0, this.r);\n var angle = this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length; // Normalize to [-PI, PI]\n\n angle = Math.atan2(Math.sin(angle), Math.cos(angle));\n indicatorAxis.angle = angle;\n }, this);\n };\n\n Radar.prototype.update = function (ecModel, api) {\n var indicatorAxes = this._indicatorAxes;\n var radarModel = this._model;\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.setExtent(Infinity, -Infinity);\n });\n ecModel.eachSeriesByType('radar', function (radarSeries, idx) {\n if (radarSeries.get('coordinateSystem') !== 'radar' // @ts-ignore\n || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel) {\n return;\n }\n\n var data = radarSeries.getData();\n each(indicatorAxes, function (indicatorAxis) {\n indicatorAxis.scale.unionExtentFromData(data, data.mapDimension(indicatorAxis.dim));\n });\n }, this);\n var splitNumber = radarModel.get('splitNumber');\n\n function increaseInterval(interval) {\n var exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10)); // Increase interval\n\n var f = interval / exp10;\n\n if (f === 2) {\n f = 5;\n } else {\n // f is 2 or 5\n f *= 2;\n }\n\n return f * exp10;\n } // Force all the axis fixing the maxSplitNumber.\n\n\n each(indicatorAxes, function (indicatorAxis, idx) {\n var rawExtent = getScaleExtent(indicatorAxis.scale, indicatorAxis.model).extent;\n niceScaleExtent(indicatorAxis.scale, indicatorAxis.model);\n var axisModel = indicatorAxis.model;\n var scale = indicatorAxis.scale;\n var fixedMin = parseAxisModelMinMax(scale, axisModel.get('min', true));\n var fixedMax = parseAxisModelMinMax(scale, axisModel.get('max', true));\n var interval = scale.getInterval();\n\n if (fixedMin != null && fixedMax != null) {\n // User set min, max, divide to get new interval\n scale.setExtent(+fixedMin, +fixedMax);\n scale.setInterval((fixedMax - fixedMin) / splitNumber);\n } else if (fixedMin != null) {\n var max = void 0; // User set min, expand extent on the other side\n\n do {\n max = fixedMin + interval * splitNumber;\n scale.setExtent(+fixedMin, max); // Interval must been set after extent\n // FIXME\n\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));\n } else if (fixedMax != null) {\n var min = void 0; // User set min, expand extent on the other side\n\n do {\n min = fixedMax - interval * splitNumber;\n scale.setExtent(min, +fixedMax);\n scale.setInterval(interval);\n interval = increaseInterval(interval);\n } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));\n } else {\n var nicedSplitNumber = scale.getTicks().length - 1;\n\n if (nicedSplitNumber > splitNumber) {\n interval = increaseInterval(interval);\n } // TODO\n\n\n var max = Math.ceil(rawExtent[1] / interval) * interval;\n var min = numberUtil.round(max - interval * splitNumber);\n scale.setExtent(min, max);\n scale.setInterval(interval);\n }\n });\n };\n\n Radar.prototype.convertToPixel = function (ecModel, finder, value) {\n console.warn('Not implemented.');\n return null;\n };\n\n Radar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n console.warn('Not implemented.');\n return null;\n };\n\n Radar.prototype.containPoint = function (point) {\n console.warn('Not implemented.');\n return false;\n };\n\n Radar.create = function (ecModel, api) {\n var radarList = [];\n ecModel.eachComponent('radar', function (radarModel) {\n var radar = new Radar(radarModel, ecModel, api);\n radarList.push(radar);\n radarModel.coordinateSystem = radar;\n });\n ecModel.eachSeriesByType('radar', function (radarSeries) {\n if (radarSeries.get('coordinateSystem') === 'radar') {\n // Inject coordinate system\n // @ts-ignore\n radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];\n }\n });\n return radarList;\n };\n /**\n * Radar dimensions is based on the data\n */\n\n\n Radar.dimensions = [];\n return Radar;\n}();\n\nexport default Radar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport RadarModel from '../../coord/radar/RadarModel';\nimport RadarView from './RadarView';\nimport Radar from '../../coord/radar/Radar';\nexport function install(registers) {\n registers.registerCoordinateSystem('radar', Radar);\n registers.registerComponentModel(RadarModel);\n registers.registerComponentView(RadarView);\n registers.registerVisual({\n seriesType: 'radar',\n reset: function (seriesModel) {\n var data = seriesModel.getData(); // itemVisual symbol is for selected data\n\n data.each(function (idx) {\n data.setItemVisual(idx, 'legendIcon', 'roundRect');\n }); // visual is for unselected data\n\n data.setVisual('legendIcon', 'roundRect');\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport radarLayout from '../radar/radarLayout';\nimport dataFilter from '../../processor/dataFilter';\nimport backwardCompat from '../radar/backwardCompat';\nimport RadarView from './RadarView';\nimport RadarSeriesModel from './RadarSeries';\nimport { install as installRadarComponent } from '../../component/radar/install';\nexport function install(registers) {\n use(installRadarComponent);\n registers.registerChartView(RadarView);\n registers.registerSeriesModel(RadarSeriesModel);\n registers.registerLayout(radarLayout);\n registers.registerProcessor(dataFilter('radar'));\n registers.registerPreprocessor(backwardCompat);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as echarts from '../../core/echarts';\nvar ATTR = '\\0_ec_interaction_mutex';\nexport function take(zr, resourceKey, userKey) {\n var store = getStore(zr);\n store[resourceKey] = userKey;\n}\nexport function release(zr, resourceKey, userKey) {\n var store = getStore(zr);\n var uKey = store[resourceKey];\n\n if (uKey === userKey) {\n store[resourceKey] = null;\n }\n}\nexport function isTaken(zr, resourceKey) {\n return !!getStore(zr)[resourceKey];\n}\n\nfunction getStore(zr) {\n return zr[ATTR] || (zr[ATTR] = {});\n}\n/**\n * payload: {\n * type: 'takeGlobalCursor',\n * key: 'dataZoomSelect', or 'brush', or ...,\n * If no userKey, release global cursor.\n * }\n */\n// TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'takeGlobalCursor',\n event: 'globalCursorTaken',\n update: 'update'\n}, function () {});","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Eventful from 'zrender/lib/core/Eventful';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as interactionMutex from './interactionMutex';\nimport { isString, bind, defaults, clone } from 'zrender/lib/core/util';\n\nvar RoamController =\n/** @class */\nfunction (_super) {\n __extends(RoamController, _super);\n\n function RoamController(zr) {\n var _this = _super.call(this) || this;\n\n _this._zr = zr; // Avoid two roamController bind the same handler\n\n var mousedownHandler = bind(_this._mousedownHandler, _this);\n var mousemoveHandler = bind(_this._mousemoveHandler, _this);\n var mouseupHandler = bind(_this._mouseupHandler, _this);\n var mousewheelHandler = bind(_this._mousewheelHandler, _this);\n var pinchHandler = bind(_this._pinchHandler, _this);\n /**\n * Notice: only enable needed types. For example, if 'zoom'\n * is not needed, 'zoom' should not be enabled, otherwise\n * default mousewheel behaviour (scroll page) will be disabled.\n */\n\n _this.enable = function (controlType, opt) {\n // Disable previous first\n this.disable();\n this._opt = defaults(clone(opt) || {}, {\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n // By default, wheel do not trigger move.\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n\n if (controlType == null) {\n controlType = true;\n }\n\n if (controlType === true || controlType === 'move' || controlType === 'pan') {\n zr.on('mousedown', mousedownHandler);\n zr.on('mousemove', mousemoveHandler);\n zr.on('mouseup', mouseupHandler);\n }\n\n if (controlType === true || controlType === 'scale' || controlType === 'zoom') {\n zr.on('mousewheel', mousewheelHandler);\n zr.on('pinch', pinchHandler);\n }\n };\n\n _this.disable = function () {\n zr.off('mousedown', mousedownHandler);\n zr.off('mousemove', mousemoveHandler);\n zr.off('mouseup', mouseupHandler);\n zr.off('mousewheel', mousewheelHandler);\n zr.off('pinch', pinchHandler);\n };\n\n return _this;\n }\n\n RoamController.prototype.isDragging = function () {\n return this._dragging;\n };\n\n RoamController.prototype.isPinching = function () {\n return this._pinching;\n };\n\n RoamController.prototype.setPointerChecker = function (pointerChecker) {\n this.pointerChecker = pointerChecker;\n };\n\n RoamController.prototype.dispose = function () {\n this.disable();\n };\n\n RoamController.prototype._mousedownHandler = function (e) {\n if (eventTool.isMiddleOrRightButtonOnMouseUpDown(e) || e.target && e.target.draggable) {\n return;\n }\n\n var x = e.offsetX;\n var y = e.offsetY; // Only check on mosedown, but not mousemove.\n // Mouse can be out of target when mouse moving.\n\n if (this.pointerChecker && this.pointerChecker(e, x, y)) {\n this._x = x;\n this._y = y;\n this._dragging = true;\n }\n };\n\n RoamController.prototype._mousemoveHandler = function (e) {\n if (!this._dragging || !isAvailableBehavior('moveOnMouseMove', e, this._opt) || e.gestureEvent === 'pinch' || interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n\n var x = e.offsetX;\n var y = e.offsetY;\n var oldX = this._x;\n var oldY = this._y;\n var dx = x - oldX;\n var dy = y - oldY;\n this._x = x;\n this._y = y;\n this._opt.preventDefaultMouseMove && eventTool.stop(e.event);\n trigger(this, 'pan', 'moveOnMouseMove', e, {\n dx: dx,\n dy: dy,\n oldX: oldX,\n oldY: oldY,\n newX: x,\n newY: y,\n isAvailableBehavior: null\n });\n };\n\n RoamController.prototype._mouseupHandler = function (e) {\n if (!eventTool.isMiddleOrRightButtonOnMouseUpDown(e)) {\n this._dragging = false;\n }\n };\n\n RoamController.prototype._mousewheelHandler = function (e) {\n var shouldZoom = isAvailableBehavior('zoomOnMouseWheel', e, this._opt);\n var shouldMove = isAvailableBehavior('moveOnMouseWheel', e, this._opt);\n var wheelDelta = e.wheelDelta;\n var absWheelDeltaDelta = Math.abs(wheelDelta);\n var originX = e.offsetX;\n var originY = e.offsetY; // wheelDelta maybe -0 in chrome mac.\n\n if (wheelDelta === 0 || !shouldZoom && !shouldMove) {\n return;\n } // If both `shouldZoom` and `shouldMove` is true, trigger\n // their event both, and the final behavior is determined\n // by event listener themselves.\n\n\n if (shouldZoom) {\n // Convenience:\n // Mac and VM Windows on Mac: scroll up: zoom out.\n // Windows: scroll up: zoom in.\n // FIXME: Should do more test in different environment.\n // wheelDelta is too complicated in difference nvironment\n // (https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel),\n // although it has been normallized by zrender.\n // wheelDelta of mouse wheel is bigger than touch pad.\n var factor = absWheelDeltaDelta > 3 ? 1.4 : absWheelDeltaDelta > 1 ? 1.2 : 1.1;\n var scale = wheelDelta > 0 ? factor : 1 / factor;\n checkPointerAndTrigger(this, 'zoom', 'zoomOnMouseWheel', e, {\n scale: scale,\n originX: originX,\n originY: originY,\n isAvailableBehavior: null\n });\n }\n\n if (shouldMove) {\n // FIXME: Should do more test in different environment.\n var absDelta = Math.abs(wheelDelta); // wheelDelta of mouse wheel is bigger than touch pad.\n\n var scrollDelta = (wheelDelta > 0 ? 1 : -1) * (absDelta > 3 ? 0.4 : absDelta > 1 ? 0.15 : 0.05);\n checkPointerAndTrigger(this, 'scrollMove', 'moveOnMouseWheel', e, {\n scrollDelta: scrollDelta,\n originX: originX,\n originY: originY,\n isAvailableBehavior: null\n });\n }\n };\n\n RoamController.prototype._pinchHandler = function (e) {\n if (interactionMutex.isTaken(this._zr, 'globalPan')) {\n return;\n }\n\n var scale = e.pinchScale > 1 ? 1.1 : 1 / 1.1;\n checkPointerAndTrigger(this, 'zoom', null, e, {\n scale: scale,\n originX: e.pinchX,\n originY: e.pinchY,\n isAvailableBehavior: null\n });\n };\n\n return RoamController;\n}(Eventful);\n\nfunction checkPointerAndTrigger(controller, eventName, behaviorToCheck, e, contollerEvent) {\n if (controller.pointerChecker && controller.pointerChecker(e, contollerEvent.originX, contollerEvent.originY)) {\n // When mouse is out of roamController rect,\n // default befavoius should not be be disabled, otherwise\n // page sliding is disabled, contrary to expectation.\n eventTool.stop(e.event);\n trigger(controller, eventName, behaviorToCheck, e, contollerEvent);\n }\n}\n\nfunction trigger(controller, eventName, behaviorToCheck, e, contollerEvent) {\n // Also provide behavior checker for event listener, for some case that\n // multiple components share one listener.\n contollerEvent.isAvailableBehavior = bind(isAvailableBehavior, null, behaviorToCheck, e);\n controller.trigger(eventName, contollerEvent);\n} // settings: {\n// zoomOnMouseWheel\n// moveOnMouseMove\n// moveOnMouseWheel\n// }\n// The value can be: true / false / 'shift' / 'ctrl' / 'alt'.\n\n\nfunction isAvailableBehavior(behaviorToCheck, e, settings) {\n var setting = settings[behaviorToCheck];\n return !behaviorToCheck || setting && (!isString(setting) || e.event[setting + 'Key']);\n}\n\nexport default RoamController;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnPan(controllerHost, dx, dy) {\n var target = controllerHost.target;\n target.x += dx;\n target.y += dy;\n target.dirty();\n}\n/**\n * For geo and graph.\n */\n\nexport function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) {\n var target = controllerHost.target;\n var zoomLimit = controllerHost.zoomLimit;\n var newZoom = controllerHost.zoom = controllerHost.zoom || 1;\n newZoom *= zoomDelta;\n\n if (zoomLimit) {\n var zoomMin = zoomLimit.min || 0;\n var zoomMax = zoomLimit.max || Infinity;\n newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin);\n }\n\n var zoomScale = newZoom / controllerHost.zoom;\n controllerHost.zoom = newZoom; // Keep the mouse center when scaling\n\n target.x -= (zoomX - target.x) * (zoomScale - 1);\n target.y -= (zoomY - target.y) * (zoomScale - 1);\n target.scaleX *= zoomScale;\n target.scaleY *= zoomScale;\n target.dirty();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar IRRELEVANT_EXCLUDES = {\n 'axisPointer': 1,\n 'tooltip': 1,\n 'brush': 1\n};\n/**\n * Avoid that: mouse click on a elements that is over geo or graph,\n * but roam is triggered.\n */\n\nexport function onIrrelevantElement(e, api, targetCoordSysModel) {\n var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem.\n\n var coordSys = model && model.coordinateSystem;\n return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && coordSys && coordSys.model !== targetCoordSysModel;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport RoamController from './RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enableComponentHighDownFeatures, setDefaultStateProxy } from '../../util/states';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport { getUID } from '../../util/component';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nimport Displayable from 'zrender/lib/graphic/Displayable';\nimport { makeInner } from '../../util/model';\n/**\n * Only these tags enable use `itemStyle` if they are named in SVG.\n * Other tags like might not suitable for `itemStyle`.\n * They will not be considered to be styled until some requirements come.\n */\n\nvar OPTION_STYLE_ENABLED_TAGS = ['rect', 'circle', 'line', 'ellipse', 'polygon', 'polyline', 'path'];\nvar OPTION_STYLE_ENABLED_TAG_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS);\nvar STATE_TRIGGER_TAG_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(['g']));\nvar LABEL_HOST_MAP = zrUtil.createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(['g']));\nvar mapLabelRaw = makeInner();\n\nfunction getFixedItemStyle(model) {\n var itemStyle = model.getItemStyle();\n var areaColor = model.get('areaColor'); // If user want the color not to be changed when hover,\n // they should both set areaColor and color to be null.\n\n if (areaColor != null) {\n itemStyle.fill = areaColor;\n }\n\n return itemStyle;\n}\n\nvar MapDraw =\n/** @class */\nfunction () {\n function MapDraw(api) {\n var group = new graphic.Group();\n this.uid = getUID('ec_map_draw');\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n };\n this.group = group;\n group.add(this._regionsGroup = new graphic.Group());\n group.add(this._svgGroup = new graphic.Group());\n }\n\n MapDraw.prototype.draw = function (mapOrGeoModel, ecModel, api, fromView, payload) {\n var isGeo = mapOrGeoModel.mainType === 'geo'; // Map series has data. GEO model that controlled by map series\n // will be assigned with map data. Other GEO model has no data.\n\n var data = mapOrGeoModel.getData && mapOrGeoModel.getData();\n isGeo && ecModel.eachComponent({\n mainType: 'series',\n subType: 'map'\n }, function (mapSeries) {\n if (!data && mapSeries.getHostGeoModel() === mapOrGeoModel) {\n data = mapSeries.getData();\n }\n });\n var geo = mapOrGeoModel.coordinateSystem;\n var regionsGroup = this._regionsGroup;\n var group = this.group;\n var transformInfo = geo.getTransformInfo();\n var transformInfoRaw = transformInfo.raw;\n var transformInfoRoam = transformInfo.roam; // No animation when first draw or in action\n\n var isFirstDraw = !regionsGroup.childAt(0) || payload;\n\n if (isFirstDraw) {\n group.x = transformInfoRoam.x;\n group.y = transformInfoRoam.y;\n group.scaleX = transformInfoRoam.scaleX;\n group.scaleY = transformInfoRoam.scaleY;\n group.dirty();\n } else {\n graphic.updateProps(group, transformInfoRoam, mapOrGeoModel);\n }\n\n var isVisualEncodedByVisualMap = data && data.getVisual('visualMeta') && data.getVisual('visualMeta').length > 0;\n var viewBuildCtx = {\n api: api,\n geo: geo,\n mapOrGeoModel: mapOrGeoModel,\n data: data,\n isVisualEncodedByVisualMap: isVisualEncodedByVisualMap,\n isGeo: isGeo,\n transformInfoRaw: transformInfoRaw\n };\n\n if (geo.resourceType === 'geoJSON') {\n this._buildGeoJSON(viewBuildCtx);\n } else if (geo.resourceType === 'geoSVG') {\n this._buildSVG(viewBuildCtx);\n }\n\n this._updateController(mapOrGeoModel, ecModel, api);\n\n this._updateMapSelectHandler(mapOrGeoModel, regionsGroup, api, fromView);\n };\n\n MapDraw.prototype._buildGeoJSON = function (viewBuildCtx) {\n var regionsGroupByName = this._regionsGroupByName = zrUtil.createHashMap();\n var regionsInfoByName = zrUtil.createHashMap();\n var regionsGroup = this._regionsGroup;\n var transformInfoRaw = viewBuildCtx.transformInfoRaw;\n var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n var data = viewBuildCtx.data;\n\n var transformPoint = function (point) {\n return [point[0] * transformInfoRaw.scaleX + transformInfoRaw.x, point[1] * transformInfoRaw.scaleY + transformInfoRaw.y];\n };\n\n regionsGroup.removeAll(); // Only when the resource is GeoJSON, there is `geo.regions`.\n\n zrUtil.each(viewBuildCtx.geo.regions, function (region) {\n var regionName = region.name; // Consider in GeoJson properties.name may be duplicated, for example,\n // there is multiple region named \"United Kindom\" or \"France\" (so many\n // colonies). And it is not appropriate to merge them in geo, which\n // will make them share the same label and bring trouble in label\n // location calculation.\n\n var regionGroup = regionsGroupByName.get(regionName);\n\n var _a = regionsInfoByName.get(regionName) || {},\n dataIdx = _a.dataIdx,\n regionModel = _a.regionModel;\n\n if (!regionGroup) {\n regionGroup = regionsGroupByName.set(regionName, new graphic.Group());\n regionsGroup.add(regionGroup);\n dataIdx = data ? data.indexOfName(regionName) : null;\n regionModel = viewBuildCtx.isGeo ? mapOrGeoModel.getRegionModel(regionName) : data ? data.getItemModel(dataIdx) : null;\n regionsInfoByName.set(regionName, {\n dataIdx: dataIdx,\n regionModel: regionModel\n });\n }\n\n var compoundPath = new graphic.CompoundPath({\n segmentIgnoreThreshold: 1,\n shape: {\n paths: []\n }\n });\n regionGroup.add(compoundPath);\n zrUtil.each(region.geometries, function (geometry) {\n if (geometry.type !== 'polygon') {\n return;\n }\n\n var points = [];\n\n for (var i = 0; i < geometry.exterior.length; ++i) {\n points.push(transformPoint(geometry.exterior[i]));\n }\n\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points\n }\n }));\n\n for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); ++i) {\n var interior = geometry.interiors[i];\n var points_1 = [];\n\n for (var j = 0; j < interior.length; ++j) {\n points_1.push(transformPoint(interior[j]));\n }\n\n compoundPath.shape.paths.push(new graphic.Polygon({\n segmentIgnoreThreshold: 1,\n shape: {\n points: points_1\n }\n }));\n }\n });\n applyOptionStyleForRegion(viewBuildCtx, compoundPath, dataIdx, regionModel);\n\n if (compoundPath instanceof Displayable) {\n compoundPath.culling = true;\n }\n\n var centerPt = transformPoint(region.getCenter());\n resetLabelForRegion(viewBuildCtx, compoundPath, regionName, regionModel, mapOrGeoModel, dataIdx, centerPt);\n }); // Ensure children have been added to `regionGroup` before calling them.\n\n regionsGroupByName.each(function (regionGroup, regionName) {\n var _a = regionsInfoByName.get(regionName),\n dataIdx = _a.dataIdx,\n regionModel = _a.regionModel;\n\n resetEventTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel, dataIdx);\n resetTooltipForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);\n resetStateTriggerForRegion(viewBuildCtx, regionGroup, regionName, regionModel, mapOrGeoModel);\n }, this);\n };\n\n MapDraw.prototype._buildSVG = function (viewBuildCtx) {\n var mapName = viewBuildCtx.geo.map;\n var transformInfoRaw = viewBuildCtx.transformInfoRaw;\n this._svgGroup.x = transformInfoRaw.x;\n this._svgGroup.y = transformInfoRaw.y;\n this._svgGroup.scaleX = transformInfoRaw.scaleX;\n this._svgGroup.scaleY = transformInfoRaw.scaleY;\n\n if (this._svgResourceChanged(mapName)) {\n this._freeSVG();\n\n this._useSVG(mapName);\n }\n\n var svgDispatcherMap = this._svgDispatcherMap = zrUtil.createHashMap();\n var focusSelf = false;\n zrUtil.each(this._svgGraphicRecord.named, function (namedItem) {\n // Note that we also allow different elements have the same name.\n // For example, a glyph of a city and the label of the city have\n // the same name and their tooltip info can be defined in a single\n // region option.\n var regionName = namedItem.name;\n var mapOrGeoModel = viewBuildCtx.mapOrGeoModel;\n var data = viewBuildCtx.data;\n var svgNodeTagLower = namedItem.svgNodeTagLower;\n var el = namedItem.el;\n var dataIdx = data ? data.indexOfName(regionName) : null;\n var regionModel = mapOrGeoModel.getRegionModel(regionName);\n\n if (OPTION_STYLE_ENABLED_TAG_MAP.get(svgNodeTagLower) != null && el instanceof Displayable) {\n applyOptionStyleForRegion(viewBuildCtx, el, dataIdx, regionModel);\n }\n\n if (el instanceof Displayable) {\n el.culling = true;\n } // We do not know how the SVG like so we'd better not to change z2.\n // Otherwise it might bring some unexpected result. For example,\n // an area hovered that make some inner city can not be clicked.\n\n\n el.z2EmphasisLift = 0; // If self named:\n\n if (!namedItem.namedFrom) {\n // label should batter to be displayed based on the center of \n // if it is named rather than displayed on each child.\n if (LABEL_HOST_MAP.get(svgNodeTagLower) != null) {\n resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx, null);\n }\n\n resetEventTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, dataIdx);\n resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);\n\n if (STATE_TRIGGER_TAG_MAP.get(svgNodeTagLower) != null) {\n var focus_1 = resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel);\n\n if (focus_1 === 'self') {\n focusSelf = true;\n }\n\n var els = svgDispatcherMap.get(regionName) || svgDispatcherMap.set(regionName, []);\n els.push(el);\n }\n }\n }, this);\n\n this._enableBlurEntireSVG(focusSelf, viewBuildCtx);\n };\n\n MapDraw.prototype._enableBlurEntireSVG = function (focusSelf, viewBuildCtx) {\n // It's a little complicated to support blurring the entire geoSVG in series-map.\n // So do not suport it until some requirements come.\n // At present, in series-map, only regions can be blurred.\n if (focusSelf && viewBuildCtx.isGeo) {\n var blurStyle = viewBuildCtx.mapOrGeoModel.getModel(['blur', 'itemStyle']).getItemStyle(); // Only suport `opacity` here. Because not sure that other props are suitable for\n // all of the elements generated by SVG (especially for Text/TSpan/Image/... ).\n\n var opacity_1 = blurStyle.opacity;\n\n this._svgGraphicRecord.root.traverse(function (el) {\n if (!el.isGroup) {\n // PENDING: clear those settings to SVG elements when `_freeSVG`.\n // (Currently it happen not to be needed.)\n setDefaultStateProxy(el);\n var style = el.ensureState('blur').style || {}; // Do not overwrite the region style that already set from region option.\n\n if (style.opacity == null && opacity_1 != null) {\n style.opacity = opacity_1;\n } // If `ensureState('blur').style = {}`, there will be default opacity.\n // Enable `stateTransition` (animation).\n\n\n el.ensureState('emphasis');\n }\n });\n }\n };\n\n MapDraw.prototype.remove = function () {\n this._regionsGroup.removeAll();\n\n this._regionsGroupByName = null;\n\n this._svgGroup.removeAll();\n\n this._freeSVG();\n\n this._controller.dispose();\n\n this._controllerHost = null;\n };\n\n MapDraw.prototype.findHighDownDispatchers = function (name, geoModel) {\n if (name == null) {\n return [];\n }\n\n var geo = geoModel.coordinateSystem;\n\n if (geo.resourceType === 'geoJSON') {\n var regionsGroupByName = this._regionsGroupByName;\n\n if (regionsGroupByName) {\n var regionGroup = regionsGroupByName.get(name);\n return regionGroup ? [regionGroup] : [];\n }\n } else if (geo.resourceType === 'geoSVG') {\n return this._svgDispatcherMap && this._svgDispatcherMap.get(name) || [];\n }\n };\n\n MapDraw.prototype._svgResourceChanged = function (mapName) {\n return this._svgMapName !== mapName;\n };\n\n MapDraw.prototype._useSVG = function (mapName) {\n var resource = geoSourceManager.getGeoResource(mapName);\n\n if (resource && resource.type === 'geoSVG') {\n var svgGraphic = resource.useGraphic(this.uid);\n\n this._svgGroup.add(svgGraphic.root);\n\n this._svgGraphicRecord = svgGraphic;\n this._svgMapName = mapName;\n }\n };\n\n MapDraw.prototype._freeSVG = function () {\n var mapName = this._svgMapName;\n\n if (mapName == null) {\n return;\n }\n\n var resource = geoSourceManager.getGeoResource(mapName);\n\n if (resource && resource.type === 'geoSVG') {\n resource.freeGraphic(this.uid);\n }\n\n this._svgGraphicRecord = null;\n this._svgDispatcherMap = null;\n\n this._svgGroup.removeAll();\n\n this._svgMapName = null;\n };\n\n MapDraw.prototype._updateController = function (mapOrGeoModel, ecModel, api) {\n var geo = mapOrGeoModel.coordinateSystem;\n var controller = this._controller;\n var controllerHost = this._controllerHost; // @ts-ignore FIXME:TS\n\n controllerHost.zoomLimit = mapOrGeoModel.get('scaleLimit');\n controllerHost.zoom = geo.getZoom(); // roamType is will be set default true if it is null\n // @ts-ignore FIXME:TS\n\n controller.enable(mapOrGeoModel.get('roam') || false);\n var mainType = mapOrGeoModel.mainType;\n\n function makeActionBase() {\n var action = {\n type: 'geoRoam',\n componentType: mainType\n };\n action[mainType + 'Id'] = mapOrGeoModel.id;\n return action;\n }\n\n controller.off('pan').on('pan', function (e) {\n this._mouseDownFlag = false;\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n dx: e.dx,\n dy: e.dy\n }));\n }, this);\n controller.off('zoom').on('zoom', function (e) {\n this._mouseDownFlag = false;\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction(zrUtil.extend(makeActionBase(), {\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n }));\n }, this);\n controller.setPointerChecker(function (e, x, y) {\n return geo.containPoint([x, y]) && !onIrrelevantElement(e, api, mapOrGeoModel);\n });\n };\n /**\n * FIXME: this is a temporarily workaround.\n * When `geoRoam` the elements need to be reset in `MapView['render']`, because the props like\n * `ignore` might have been modified by `LabelManager`, and `LabelManager#addLabelsOfSeries`\n * will subsequently cache `defaultAttr` like `ignore`. If do not do this reset, the modified\n * props will have no chance to be restored.\n * Note: this reset should be after `clearStates` in `renderSeries` becuase `useStates` in\n * `renderSeries` will cache the modified `ignore` to `el._normalState`.\n * TODO:\n * Use clone/immutable in `LabelManager`?\n */\n\n\n MapDraw.prototype.resetForLabelLayout = function () {\n this.group.traverse(function (el) {\n var label = el.getTextContent();\n\n if (label) {\n label.ignore = mapLabelRaw(label).ignore;\n }\n });\n };\n\n MapDraw.prototype._updateMapSelectHandler = function (mapOrGeoModel, regionsGroup, api, fromView) {\n var mapDraw = this;\n regionsGroup.off('mousedown');\n regionsGroup.off('click'); // @ts-ignore FIXME:TS resolve type conflict\n\n if (mapOrGeoModel.get('selectedMode')) {\n regionsGroup.on('mousedown', function () {\n mapDraw._mouseDownFlag = true;\n });\n regionsGroup.on('click', function (e) {\n if (!mapDraw._mouseDownFlag) {\n return;\n }\n\n mapDraw._mouseDownFlag = false;\n });\n }\n };\n\n return MapDraw;\n}();\n\n;\n\nfunction applyOptionStyleForRegion(viewBuildCtx, el, dataIndex, regionModel) {\n // All of the path are using `itemStyle`, becuase\n // (1) Some SVG also use fill on polyline (The different between\n // polyline and polygon is \"open\" or \"close\" but not fill or not).\n // (2) For the common props like opacity, if some use itemStyle\n // and some use `lineStyle`, it might confuse users.\n // (3) Most SVG use , where can not detect wether draw a \"line\"\n // or a filled shape, so use `itemStyle` for .\n var normalStyleModel = regionModel.getModel('itemStyle');\n var emphasisStyleModel = regionModel.getModel(['emphasis', 'itemStyle']);\n var blurStyleModel = regionModel.getModel(['blur', 'itemStyle']);\n var selectStyleModel = regionModel.getModel(['select', 'itemStyle']); // NOTE: DONT use 'style' in visual when drawing map.\n // This component is used for drawing underlying map for both geo component and map series.\n\n var normalStyle = getFixedItemStyle(normalStyleModel);\n var emphasisStyle = getFixedItemStyle(emphasisStyleModel);\n var selectStyle = getFixedItemStyle(selectStyleModel);\n var blurStyle = getFixedItemStyle(blurStyleModel); // Update the itemStyle if has data visual\n\n var data = viewBuildCtx.data;\n\n if (data) {\n // Only visual color of each item will be used. It can be encoded by visualMap\n // But visual color of series is used in symbol drawing\n // Visual color for each series is for the symbol draw\n var style = data.getItemVisual(dataIndex, 'style');\n var decal = data.getItemVisual(dataIndex, 'decal');\n\n if (viewBuildCtx.isVisualEncodedByVisualMap && style.fill) {\n normalStyle.fill = style.fill;\n }\n\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, viewBuildCtx.api);\n }\n } // SVG text, tspan and image can be named but not supporeted\n // to be styled by region option yet.\n\n\n el.setStyle(normalStyle);\n el.style.strokeNoScale = true;\n el.ensureState('emphasis').style = emphasisStyle;\n el.ensureState('select').style = selectStyle;\n el.ensureState('blur').style = blurStyle; // Enable blur\n\n setDefaultStateProxy(el);\n}\n\nfunction resetLabelForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists.\ndataIdx, // If labelXY not provided, use `textConfig.position: 'inside'`\nlabelXY) {\n var data = viewBuildCtx.data;\n var isGeo = viewBuildCtx.isGeo;\n var isDataNaN = data && isNaN(data.get(data.mapDimension('value'), dataIdx));\n var itemLayout = data && data.getItemLayout(dataIdx); // In the following cases label will be drawn\n // 1. In map series and data value is NaN\n // 2. In geo component\n // 3. Region has no series legendIcon, which will be add a showLabel flag in mapSymbolLayout\n\n if (isGeo || isDataNaN || itemLayout && itemLayout.showLabel) {\n var query = !isGeo ? dataIdx : regionName;\n var labelFetcher = void 0; // Consider dataIdx not found.\n\n if (!data || dataIdx >= 0) {\n labelFetcher = mapOrGeoModel;\n }\n\n var specifiedTextOpt = labelXY ? {\n normal: {\n align: 'center',\n verticalAlign: 'middle'\n }\n } : null; // Caveat: must be called after `setDefaultStateProxy(el);` called.\n // because textContent will be assign with `el.stateProxy` inside.\n\n setLabelStyle(el, getLabelStatesModels(regionModel), {\n labelFetcher: labelFetcher,\n labelDataIndex: query,\n defaultText: regionName\n }, specifiedTextOpt);\n var textEl = el.getTextContent();\n\n if (textEl) {\n mapLabelRaw(textEl).ignore = textEl.ignore;\n\n if (el.textConfig && labelXY) {\n // Compute a relative offset based on the el bounding rect.\n var rect = el.getBoundingRect().clone(); // Need to make sure the percent position base on the same rect in normal and\n // emphasis state. Otherwise if using boundingRect of el, but the emphasis state\n // has borderWidth (even 0.5px), the text position will be changed obviously\n // if the position is very big like ['1234%', '1345%'].\n\n el.textConfig.layoutRect = rect;\n el.textConfig.position = [(labelXY[0] - rect.x) / rect.width * 100 + '%', (labelXY[1] - rect.y) / rect.height * 100 + '%'];\n }\n } // PENDING:\n // If labelLayout is enabled (test/label-layout.html), el.dataIndex should be specified.\n // But el.dataIndex is also used to determine whether user event should be triggered,\n // where el.seriesIndex or el.dataModel must be specified. At present for a single el\n // there is not case that \"only label layout enabled but user event disabled\", so here\n // we depends `resetEventTriggerForRegion` to do the job of setting `el.dataIndex`.\n\n\n el.disableLabelAnimation = true;\n } else {\n el.removeTextContent();\n el.removeTextConfig();\n el.disableLabelAnimation = null;\n }\n}\n\nfunction resetEventTriggerForRegion(viewBuildCtx, eventTrigger, regionName, regionModel, mapOrGeoModel, // Exist only if `viewBuildCtx.data` exists.\ndataIdx) {\n // setItemGraphicEl, setHoverStyle after all polygons and labels\n // are added to the rigionGroup\n if (viewBuildCtx.data) {\n // FIXME: when series-map use a SVG map, and there are duplicated name specified\n // on different SVG elements, after `data.setItemGraphicEl(...)`:\n // (1) all of them will be mounted with `dataIndex`, `seriesIndex`, so that tooltip\n // can be triggered only mouse hover. That's correct.\n // (2) only the last element will be kept in `data`, so that if trigger tooltip\n // by `dispatchAction`, only the last one can be found and triggered. That might be\n // not correct. We will fix it in future if anyone demanding that.\n viewBuildCtx.data.setItemGraphicEl(dataIdx, eventTrigger);\n } // series-map will not trigger \"geoselectchange\" no matter it is\n // based on a declared geo component. Becuause series-map will\n // trigger \"selectchange\". If it trigger both the two events,\n // If users call `chart.dispatchAction({type: 'toggleSelect'})`,\n // it not easy to also fire event \"geoselectchanged\".\n else {\n // Package custom mouse event for geo component\n getECData(eventTrigger).eventData = {\n componentType: 'geo',\n componentIndex: mapOrGeoModel.componentIndex,\n geoIndex: mapOrGeoModel.componentIndex,\n name: regionName,\n region: regionModel && regionModel.option || {}\n };\n }\n}\n\nfunction resetTooltipForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {\n if (!viewBuildCtx.data) {\n graphic.setTooltipConfig({\n el: el,\n componentModel: mapOrGeoModel,\n itemName: regionName,\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n itemTooltipOption: regionModel.get('tooltip')\n });\n }\n}\n\nfunction resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {\n // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode'); // @ts-ignore FIXME:TS fix the \"compatible with each other\"?\n\n var emphasisModel = regionModel.getModel('emphasis');\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(el, focus, emphasisModel.get('blurScope'));\n\n if (viewBuildCtx.isGeo) {\n enableComponentHighDownFeatures(el, mapOrGeoModel, regionName);\n }\n\n return focus;\n}\n\nexport default MapDraw; // @ts-ignore FIXME:TS fix the \"compatible with each other\"?","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport MapDraw from '../../component/helper/MapDraw';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { setStatesFlag, Z2_EMPHASIS_LIFT } from '../../util/states';\n\nvar MapView =\n/** @class */\nfunction (_super) {\n __extends(MapView, _super);\n\n function MapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MapView.type;\n return _this;\n }\n\n MapView.prototype.render = function (mapModel, ecModel, api, payload) {\n // Not render if it is an toggleSelect action from self\n if (payload && payload.type === 'mapToggleSelect' && payload.from === this.uid) {\n return;\n }\n\n var group = this.group;\n group.removeAll();\n\n if (mapModel.getHostGeoModel()) {\n return;\n }\n\n if (this._mapDraw && payload && payload.type === 'geoRoam') {\n this._mapDraw.resetForLabelLayout();\n } // Not update map if it is an roam action from self\n\n\n if (!(payload && payload.type === 'geoRoam' && payload.componentType === 'series' && payload.seriesId === mapModel.id)) {\n if (mapModel.needsDrawMap) {\n var mapDraw = this._mapDraw || new MapDraw(api);\n group.add(mapDraw.group);\n mapDraw.draw(mapModel, ecModel, api, this, payload);\n this._mapDraw = mapDraw;\n } else {\n // Remove drawed map\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n }\n } else {\n var mapDraw = this._mapDraw;\n mapDraw && group.add(mapDraw.group);\n }\n\n mapModel.get('showLegendSymbol') && ecModel.getComponent('legend') && this._renderSymbols(mapModel, ecModel, api);\n };\n\n MapView.prototype.remove = function () {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n this.group.removeAll();\n };\n\n MapView.prototype.dispose = function () {\n this._mapDraw && this._mapDraw.remove();\n this._mapDraw = null;\n };\n\n MapView.prototype._renderSymbols = function (mapModel, ecModel, api) {\n var originalData = mapModel.originalData;\n var group = this.group;\n originalData.each(originalData.mapDimension('value'), function (value, originalDataIndex) {\n if (isNaN(value)) {\n return;\n }\n\n var layout = originalData.getItemLayout(originalDataIndex);\n\n if (!layout || !layout.point) {\n // Not exists in map\n return;\n }\n\n var point = layout.point;\n var offset = layout.offset;\n var circle = new graphic.Circle({\n style: {\n // Because the special of map draw.\n // Which needs statistic of multiple series and draw on one map.\n // And each series also need a symbol with legend color\n //\n // Layout and visual are put one the different data\n // TODO\n fill: mapModel.getData().getVisual('style').fill\n },\n shape: {\n cx: point[0] + offset * 9,\n cy: point[1],\n r: 3\n },\n silent: true,\n // Do not overlap the first series, on which labels are displayed.\n z2: 8 + (!offset ? Z2_EMPHASIS_LIFT + 1 : 0)\n }); // Only the series that has the first value on the same region is in charge of rendering the label.\n // But consider the case:\n // series: [\n // {id: 'X', type: 'map', map: 'm', {data: [{name: 'A', value: 11}, {name: 'B', {value: 22}]},\n // {id: 'Y', type: 'map', map: 'm', {data: [{name: 'A', value: 21}, {name: 'C', {value: 33}]}\n // ]\n // The offset `0` of item `A` is at series `X`, but of item `C` is at series `Y`.\n // For backward compatibility, we follow the rule that render label `A` by the\n // settings on series `X` but render label `C` by the settings on series `Y`.\n\n if (!offset) {\n var fullData = mapModel.mainSeries.getData();\n var name_1 = originalData.getName(originalDataIndex);\n var fullIndex_1 = fullData.indexOfName(name_1);\n var itemModel = originalData.getItemModel(originalDataIndex);\n var labelModel = itemModel.getModel('label');\n var regionGroup = fullData.getItemGraphicEl(fullIndex_1); // `getFormattedLabel` needs to use `getData` inside. Here\n // `mapModel.getData()` is shallow cloned from `mainSeries.getData()`.\n // FIXME\n // If this is not the `mainSeries`, the item model (like label formatter)\n // set on original data item will never get. But it has been working\n // like that from the begining, and this scenario is rarely encountered.\n // So it won't be fixed until have to.\n\n setLabelStyle(circle, getLabelStatesModels(itemModel), {\n labelFetcher: {\n getFormattedLabel: function (idx, state) {\n return mapModel.getFormattedLabel(fullIndex_1, state);\n }\n }\n });\n circle.disableLabelAnimation = true;\n\n if (!labelModel.get('position')) {\n circle.setTextConfig({\n position: 'bottom'\n });\n }\n\n regionGroup.onHoverStateChange = function (toState) {\n setStatesFlag(circle, toState);\n };\n }\n\n group.add(circle);\n });\n };\n\n MapView.type = 'map';\n return MapView;\n}(ChartView);\n\nexport default MapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListSimply from '../helper/createListSimply';\nimport SeriesModel from '../../model/Series';\nimport geoSourceManager from '../../coord/geo/geoSourceManager';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { createSymbol } from '../../util/symbol';\n\nvar MapSeries =\n/** @class */\nfunction (_super) {\n __extends(MapSeries, _super);\n\n function MapSeries() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MapSeries.type; // Only first map series of same mapType will drawMap.\n\n _this.needsDrawMap = false; // Group of all map series with same mapType\n\n _this.seriesGroup = [];\n\n _this.getTooltipPosition = function (dataIndex) {\n if (dataIndex != null) {\n var name_1 = this.getData().getName(dataIndex);\n var geo = this.coordinateSystem;\n var region = geo.getRegion(name_1);\n return region && geo.dataToPoint(region.getCenter());\n }\n };\n\n return _this;\n }\n\n MapSeries.prototype.getInitialData = function (option) {\n var data = createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n var dataNameMap = zrUtil.createHashMap();\n var toAppendNames = [];\n\n for (var i = 0, len = data.count(); i < len; i++) {\n var name_2 = data.getName(i);\n dataNameMap.set(name_2, true);\n }\n\n var geoSource = geoSourceManager.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);\n zrUtil.each(geoSource.regions, function (region) {\n var name = region.name;\n\n if (!dataNameMap.get(name)) {\n toAppendNames.push(name);\n }\n }); // Complete data with missing regions. The consequent processes (like visual\n // map and render) can not be performed without a \"full data\". For example,\n // find `dataIndex` by name.\n\n data.appendValues([], toAppendNames);\n return data;\n };\n /**\n * If no host geo model, return null, which means using a\n * inner exclusive geo model.\n */\n\n\n MapSeries.prototype.getHostGeoModel = function () {\n var geoIndex = this.option.geoIndex;\n return geoIndex != null ? this.ecModel.getComponent('geo', geoIndex) : null;\n };\n\n MapSeries.prototype.getMapType = function () {\n return (this.getHostGeoModel() || this).option.map;\n }; // _fillOption(option, mapName) {\n // Shallow clone\n // option = zrUtil.extend({}, option);\n // option.data = geoCreator.getFilledRegions(option.data, mapName, option.nameMap);\n // return option;\n // }\n\n\n MapSeries.prototype.getRawValue = function (dataIndex) {\n // Use value stored in data instead because it is calculated from multiple series\n // FIXME Provide all value of multiple series ?\n var data = this.getData();\n return data.get(data.mapDimension('value'), dataIndex);\n };\n /**\n * Get model of region\n */\n\n\n MapSeries.prototype.getRegionModel = function (regionName) {\n var data = this.getData();\n return data.getItemModel(data.indexOfName(regionName));\n };\n /**\n * Map tooltip formatter\n */\n\n\n MapSeries.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n // FIXME orignalData and data is a bit confusing\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var name = data.getName(dataIndex);\n var seriesGroup = this.seriesGroup;\n var seriesNames = [];\n\n for (var i = 0; i < seriesGroup.length; i++) {\n var otherIndex = seriesGroup[i].originalData.indexOfName(name);\n var valueDim = data.mapDimension('value');\n\n if (!isNaN(seriesGroup[i].originalData.get(valueDim, otherIndex))) {\n seriesNames.push(seriesGroup[i].name);\n }\n }\n\n return createTooltipMarkup('section', {\n header: seriesNames.join(', '),\n noHeader: !seriesNames.length,\n blocks: [createTooltipMarkup('nameValue', {\n name: name,\n value: value\n })]\n });\n };\n\n MapSeries.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n MapSeries.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n MapSeries.prototype.getLegendIcon = function (opt) {\n var iconType = opt.icon || 'roundRect';\n var icon = createSymbol(iconType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill);\n icon.setStyle(opt.itemStyle); // Map do not use itemStyle.borderWidth as border width\n\n icon.style.stroke = 'none'; // No rotation because no series visual symbol for map\n\n if (iconType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n };\n\n MapSeries.type = 'series.map';\n MapSeries.dependencies = ['geo'];\n MapSeries.layoutMode = 'box';\n MapSeries.defaultOption = {\n // 一级层叠\n zlevel: 0,\n // 二级层叠\n z: 2,\n coordinateSystem: 'geo',\n // map should be explicitly specified since ec3.\n map: '',\n // If `geoIndex` is not specified, a exclusive geo will be\n // created. Otherwise use the specified geo component, and\n // `map` and `mapType` are ignored.\n // geoIndex: 0,\n // 'center' | 'left' | 'right' | 'x%' | {number}\n left: 'center',\n // 'center' | 'top' | 'bottom' | 'x%' | {number}\n top: 'center',\n // right\n // bottom\n // width:\n // height\n // Aspect is width / height. Inited to be geoJson bbox aspect\n // This parameter is used for scale this aspect\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n showLegendSymbol: true,\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ],\n // higher priority than center and zoom\n boundingCoords: null,\n // Default on center of map\n center: null,\n zoom: 1,\n scaleLimit: null,\n selectedMode: true,\n label: {\n show: false,\n color: '#000'\n },\n // scaleLimit: null,\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444',\n areaColor: '#eee'\n },\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n areaColor: 'rgba(255,215,0,0.8)'\n }\n },\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n nameProperty: 'name'\n };\n return MapSeries;\n}(SeriesModel);\n\nexport default MapSeries;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // FIXME 公用?\n\nfunction dataStatistics(datas, statisticType) {\n var dataNameMap = {};\n zrUtil.each(datas, function (data) {\n data.each(data.mapDimension('value'), function (value, idx) {\n // Add prefix to avoid conflict with Object.prototype.\n var mapKey = 'ec-' + data.getName(idx);\n dataNameMap[mapKey] = dataNameMap[mapKey] || [];\n\n if (!isNaN(value)) {\n dataNameMap[mapKey].push(value);\n }\n });\n });\n return datas[0].map(datas[0].mapDimension('value'), function (value, idx) {\n var mapKey = 'ec-' + datas[0].getName(idx);\n var sum = 0;\n var min = Infinity;\n var max = -Infinity;\n var len = dataNameMap[mapKey].length;\n\n for (var i = 0; i < len; i++) {\n min = Math.min(min, dataNameMap[mapKey][i]);\n max = Math.max(max, dataNameMap[mapKey][i]);\n sum += dataNameMap[mapKey][i];\n }\n\n var result;\n\n if (statisticType === 'min') {\n result = min;\n } else if (statisticType === 'max') {\n result = max;\n } else if (statisticType === 'average') {\n result = sum / len;\n } else {\n result = sum;\n }\n\n return len === 0 ? NaN : result;\n });\n}\n\nexport default function mapDataStatistic(ecModel) {\n var seriesGroups = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n var hostGeoModel = seriesModel.getHostGeoModel();\n var key = hostGeoModel ? 'o' + hostGeoModel.id : 'i' + seriesModel.getMapType();\n (seriesGroups[key] = seriesGroups[key] || []).push(seriesModel);\n });\n zrUtil.each(seriesGroups, function (seriesList, key) {\n var data = dataStatistics(zrUtil.map(seriesList, function (seriesModel) {\n return seriesModel.getData();\n }), seriesList[0].get('mapValueCalculation'));\n\n for (var i = 0; i < seriesList.length; i++) {\n seriesList[i].originalData = seriesList[i].getData();\n } // FIXME Put where?\n\n\n for (var i = 0; i < seriesList.length; i++) {\n seriesList[i].seriesGroup = seriesList;\n seriesList[i].needsDrawMap = i === 0 && !seriesList[i].getHostGeoModel();\n seriesList[i].setData(data.cloneShallow());\n seriesList[i].mainSeries = seriesList[0];\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function mapSymbolLayout(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.getCenter());\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendIcon (which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Simple view coordinate system\n * Mapping given x, y to transformd view x, y\n */\n\nimport * as vector from 'zrender/lib/core/vector';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport Transformable from 'zrender/lib/core/Transformable';\nvar v2ApplyTransform = vector.applyTransform;\n\nvar View =\n/** @class */\nfunction (_super) {\n __extends(View, _super);\n\n function View(name) {\n var _this = _super.call(this) || this;\n\n _this.type = 'view';\n _this.dimensions = ['x', 'y'];\n /**\n * Represents the transform brought by roam/zoom.\n * If `View['_viewRect']` applies roam transform,\n * we can get the final displayed rect.\n */\n\n _this._roamTransformable = new Transformable();\n /**\n * Represents the transform from `View['_rect']` to `View['_viewRect']`.\n */\n\n _this._rawTransformable = new Transformable();\n _this.name = name;\n return _this;\n }\n\n View.prototype.setBoundingRect = function (x, y, width, height) {\n this._rect = new BoundingRect(x, y, width, height);\n return this._rect;\n };\n /**\n * @return {module:zrender/core/BoundingRect}\n */\n\n\n View.prototype.getBoundingRect = function () {\n return this._rect;\n };\n\n View.prototype.setViewRect = function (x, y, width, height) {\n this._transformTo(x, y, width, height);\n\n this._viewRect = new BoundingRect(x, y, width, height);\n };\n /**\n * Transformed to particular position and size\n */\n\n\n View.prototype._transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var rawTransform = this._rawTransformable;\n rawTransform.transform = rect.calculateTransform(new BoundingRect(x, y, width, height));\n var rawParent = rawTransform.parent;\n rawTransform.parent = null;\n rawTransform.decomposeTransform();\n rawTransform.parent = rawParent;\n\n this._updateTransform();\n };\n /**\n * Set center of view\n */\n\n\n View.prototype.setCenter = function (centerCoord) {\n if (!centerCoord) {\n return;\n }\n\n this._center = centerCoord;\n\n this._updateCenterAndZoom();\n };\n\n View.prototype.setZoom = function (zoom) {\n zoom = zoom || 1;\n var zoomLimit = this.zoomLimit;\n\n if (zoomLimit) {\n if (zoomLimit.max != null) {\n zoom = Math.min(zoomLimit.max, zoom);\n }\n\n if (zoomLimit.min != null) {\n zoom = Math.max(zoomLimit.min, zoom);\n }\n }\n\n this._zoom = zoom;\n\n this._updateCenterAndZoom();\n };\n /**\n * Get default center without roam\n */\n\n\n View.prototype.getDefaultCenter = function () {\n // Rect before any transform\n var rawRect = this.getBoundingRect();\n var cx = rawRect.x + rawRect.width / 2;\n var cy = rawRect.y + rawRect.height / 2;\n return [cx, cy];\n };\n\n View.prototype.getCenter = function () {\n return this._center || this.getDefaultCenter();\n };\n\n View.prototype.getZoom = function () {\n return this._zoom || 1;\n };\n\n View.prototype.getRoamTransform = function () {\n return this._roamTransformable.getLocalTransform();\n };\n /**\n * Remove roam\n */\n\n\n View.prototype._updateCenterAndZoom = function () {\n // Must update after view transform updated\n var rawTransformMatrix = this._rawTransformable.getLocalTransform();\n\n var roamTransform = this._roamTransformable;\n var defaultCenter = this.getDefaultCenter();\n var center = this.getCenter();\n var zoom = this.getZoom();\n center = vector.applyTransform([], center, rawTransformMatrix);\n defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);\n roamTransform.originX = center[0];\n roamTransform.originY = center[1];\n roamTransform.x = defaultCenter[0] - center[0];\n roamTransform.y = defaultCenter[1] - center[1];\n roamTransform.scaleX = roamTransform.scaleY = zoom;\n\n this._updateTransform();\n };\n /**\n * Update transform props on `this` based on the current\n * `this._roamTransformable` and `this._rawTransformable`.\n */\n\n\n View.prototype._updateTransform = function () {\n var roamTransformable = this._roamTransformable;\n var rawTransformable = this._rawTransformable;\n rawTransformable.parent = roamTransformable;\n roamTransformable.updateTransform();\n rawTransformable.updateTransform();\n matrix.copy(this.transform || (this.transform = []), rawTransformable.transform || matrix.create());\n this._rawTransform = rawTransformable.getLocalTransform();\n this.invTransform = this.invTransform || [];\n matrix.invert(this.invTransform, this.transform);\n this.decomposeTransform();\n };\n\n View.prototype.getTransformInfo = function () {\n var rawTransformable = this._rawTransformable;\n var roamTransformable = this._roamTransformable; // Becuase roamTransformabel has `originX/originY` modified,\n // but the caller of `getTransformInfo` can not handle `originX/originY`,\n // so need to recalcualte them.\n\n var dummyTransformable = new Transformable();\n dummyTransformable.transform = roamTransformable.transform;\n dummyTransformable.decomposeTransform();\n return {\n roam: {\n x: dummyTransformable.x,\n y: dummyTransformable.y,\n scaleX: dummyTransformable.scaleX,\n scaleY: dummyTransformable.scaleY\n },\n raw: {\n x: rawTransformable.x,\n y: rawTransformable.y,\n scaleX: rawTransformable.scaleX,\n scaleY: rawTransformable.scaleY\n }\n };\n };\n\n View.prototype.getViewRect = function () {\n return this._viewRect;\n };\n /**\n * Get view rect after roam transform\n */\n\n\n View.prototype.getViewRectAfterRoam = function () {\n var rect = this.getBoundingRect().clone();\n rect.applyTransform(this.transform);\n return rect;\n };\n /**\n * Convert a single (lon, lat) data item to (x, y) point.\n */\n\n\n View.prototype.dataToPoint = function (data, noRoam, out) {\n var transform = noRoam ? this._rawTransform : this.transform;\n out = out || [];\n return transform ? v2ApplyTransform(out, data, transform) : vector.copy(out, data);\n };\n /**\n * Convert a (x, y) point to (lon, lat) data\n */\n\n\n View.prototype.pointToData = function (point) {\n var invTransform = this.invTransform;\n return invTransform ? v2ApplyTransform([], point, invTransform) : [point[0], point[1]];\n };\n\n View.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n View.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n /**\n * @implements\n */\n\n\n View.prototype.containPoint = function (point) {\n return this.getViewRectAfterRoam().contain(point[0], point[1]);\n };\n\n View.dimensions = ['x', 'y'];\n return View;\n}(Transformable);\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n return seriesModel ? seriesModel.coordinateSystem : null; // e.g., graph.\n}\n\nexport default View;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport View from '../View';\nimport geoSourceManager from './geoSourceManager';\nimport { SINGLE_REFERRING } from '../../util/model';\nvar GEO_DEFAULT_PARAMS = {\n 'geoJSON': {\n aspectScale: 0.75,\n invertLongitute: true\n },\n 'geoSVG': {\n aspectScale: 1,\n invertLongitute: false\n }\n};\n\nvar Geo =\n/** @class */\nfunction (_super) {\n __extends(Geo, _super);\n\n function Geo(name, map, opt) {\n var _this = _super.call(this, name) || this;\n\n _this.dimensions = ['lng', 'lat'];\n _this.type = 'geo'; // Only store specified name coord via `addGeoCoord`.\n\n _this._nameCoordMap = zrUtil.createHashMap();\n _this.map = map;\n var source = geoSourceManager.load(map, opt.nameMap, opt.nameProperty);\n var resource = geoSourceManager.getGeoResource(map);\n _this.resourceType = resource ? resource.type : null;\n var defaultParmas = GEO_DEFAULT_PARAMS[resource.type];\n _this._regionsMap = source.regionsMap;\n _this._invertLongitute = defaultParmas.invertLongitute;\n _this.regions = source.regions;\n _this.aspectScale = zrUtil.retrieve2(opt.aspectScale, defaultParmas.aspectScale);\n var boundingRect = source.boundingRect;\n\n _this.setBoundingRect(boundingRect.x, boundingRect.y, boundingRect.width, boundingRect.height);\n\n return _this;\n }\n /**\n * Whether contain the given [lng, lat] coord.\n */\n // Never used yet.\n // containCoord(coord: number[]) {\n // const regions = this.regions;\n // for (let i = 0; i < regions.length; i++) {\n // const region = regions[i];\n // if (region.type === 'geoJSON' && (region as GeoJSONRegion).contain(coord)) {\n // return true;\n // }\n // }\n // return false;\n // }\n\n\n Geo.prototype._transformTo = function (x, y, width, height) {\n var rect = this.getBoundingRect();\n var invertLongitute = this._invertLongitute;\n rect = rect.clone();\n\n if (invertLongitute) {\n // Longitute is inverted\n rect.y = -rect.y - rect.height;\n }\n\n var rawTransformable = this._rawTransformable;\n rawTransformable.transform = rect.calculateTransform(new BoundingRect(x, y, width, height));\n var rawParent = rawTransformable.parent;\n rawTransformable.parent = null;\n rawTransformable.decomposeTransform();\n rawTransformable.parent = rawParent;\n\n if (invertLongitute) {\n rawTransformable.scaleY = -rawTransformable.scaleY;\n }\n\n this._updateTransform();\n };\n\n Geo.prototype.getRegion = function (name) {\n return this._regionsMap.get(name);\n };\n\n Geo.prototype.getRegionByCoord = function (coord) {\n var regions = this.regions;\n\n for (var i = 0; i < regions.length; i++) {\n var region = regions[i];\n\n if (region.type === 'geoJSON' && region.contain(coord)) {\n return regions[i];\n }\n }\n };\n /**\n * Add geoCoord for indexing by name\n */\n\n\n Geo.prototype.addGeoCoord = function (name, geoCoord) {\n this._nameCoordMap.set(name, geoCoord);\n };\n /**\n * Get geoCoord by name\n */\n\n\n Geo.prototype.getGeoCoord = function (name) {\n var region = this._regionsMap.get(name); // calcualte center only on demand.\n\n\n return this._nameCoordMap.get(name) || region && region.getCenter();\n };\n\n Geo.prototype.dataToPoint = function (data, noRoam, out) {\n if (typeof data === 'string') {\n // Map area name to geoCoord\n data = this.getGeoCoord(data);\n }\n\n if (data) {\n return View.prototype.dataToPoint.call(this, data, noRoam, out);\n }\n };\n\n Geo.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n Geo.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n\n return Geo;\n}(View);\n\n;\nzrUtil.mixin(Geo, View);\n\nfunction getCoordSys(finder) {\n var geoModel = finder.geoModel;\n var seriesModel = finder.seriesModel;\n return geoModel ? geoModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem // For map series.\n || (seriesModel.getReferringComponents('geo', SINGLE_REFERRING).models[0] || {}).coordinateSystem : null;\n}\n\nexport default Geo;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Geo from './Geo';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number';\nimport geoSourceManager from './geoSourceManager';\n/**\n * Resize method bound to the geo\n */\n\nfunction resizeGeo(geoModel, api) {\n var boundingCoords = geoModel.get('boundingCoords');\n\n if (boundingCoords != null) {\n var leftTop = boundingCoords[0];\n var rightBottom = boundingCoords[1];\n\n if (isNaN(leftTop[0]) || isNaN(leftTop[1]) || isNaN(rightBottom[0]) || isNaN(rightBottom[1])) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Invalid boundingCoords');\n }\n } else {\n this.setBoundingRect(leftTop[0], leftTop[1], rightBottom[0] - leftTop[0], rightBottom[1] - leftTop[1]);\n }\n }\n\n var rect = this.getBoundingRect();\n var centerOption = geoModel.get('layoutCenter');\n var sizeOption = geoModel.get('layoutSize');\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n var aspect = rect.width / rect.height * this.aspectScale;\n var useCenterAndSize = false;\n var center;\n var size;\n\n if (centerOption && sizeOption) {\n center = [numberUtil.parsePercent(centerOption[0], viewWidth), numberUtil.parsePercent(centerOption[1], viewHeight)];\n size = numberUtil.parsePercent(sizeOption, Math.min(viewWidth, viewHeight));\n\n if (!isNaN(center[0]) && !isNaN(center[1]) && !isNaN(size)) {\n useCenterAndSize = true;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead.');\n }\n }\n }\n\n var viewRect;\n\n if (useCenterAndSize) {\n viewRect = {};\n\n if (aspect > 1) {\n // Width is same with size\n viewRect.width = size;\n viewRect.height = size / aspect;\n } else {\n viewRect.height = size;\n viewRect.width = size * aspect;\n }\n\n viewRect.y = center[1] - viewRect.height / 2;\n viewRect.x = center[0] - viewRect.width / 2;\n } else {\n // Use left/top/width/height\n var boxLayoutOption = geoModel.getBoxLayoutParams();\n boxLayoutOption.aspect = aspect;\n viewRect = layout.getLayoutRect(boxLayoutOption, {\n width: viewWidth,\n height: viewHeight\n });\n }\n\n this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);\n this.setCenter(geoModel.get('center'));\n this.setZoom(geoModel.get('zoom'));\n} // Back compat for ECharts2, where the coord map is set on map series:\n// {type: 'map', geoCoord: {'cityA': [116.46,39.92], 'cityA': [119.12,24.61]}},\n\n\nfunction setGeoCoords(geo, model) {\n zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {\n geo.addGeoCoord(name, geoCoord);\n });\n}\n\nvar GeoCreator =\n/** @class */\nfunction () {\n function GeoCreator() {\n // For deciding which dimensions to use when creating list data\n this.dimensions = Geo.prototype.dimensions;\n }\n\n GeoCreator.prototype.create = function (ecModel, api) {\n var geoList = []; // FIXME Create each time may be slow\n\n ecModel.eachComponent('geo', function (geoModel, idx) {\n var name = geoModel.get('map');\n var geo = new Geo(name + idx, name, {\n nameMap: geoModel.get('nameMap'),\n nameProperty: geoModel.get('nameProperty'),\n aspectScale: geoModel.get('aspectScale')\n });\n geo.zoomLimit = geoModel.get('scaleLimit');\n geoList.push(geo); // setGeoCoords(geo, geoModel);\n\n geoModel.coordinateSystem = geo;\n geo.model = geoModel; // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(geoModel, api);\n });\n ecModel.eachSeries(function (seriesModel) {\n var coordSys = seriesModel.get('coordinateSystem');\n\n if (coordSys === 'geo') {\n var geoIndex = seriesModel.get('geoIndex') || 0;\n seriesModel.coordinateSystem = geoList[geoIndex];\n }\n }); // If has map series\n\n var mapModelGroupBySeries = {};\n ecModel.eachSeriesByType('map', function (seriesModel) {\n if (!seriesModel.getHostGeoModel()) {\n var mapType = seriesModel.getMapType();\n mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];\n mapModelGroupBySeries[mapType].push(seriesModel);\n }\n });\n zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {\n var nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('nameMap');\n });\n var geo = new Geo(mapType, mapType, {\n nameMap: zrUtil.mergeAll(nameMapList),\n nameProperty: mapSeries[0].get('nameProperty'),\n aspectScale: mapSeries[0].get('aspectScale')\n });\n geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {\n return singleMapSeries.get('scaleLimit');\n }));\n geoList.push(geo); // Inject resize method\n\n geo.resize = resizeGeo;\n geo.resize(mapSeries[0], api);\n zrUtil.each(mapSeries, function (singleMapSeries) {\n singleMapSeries.coordinateSystem = geo;\n setGeoCoords(geo, singleMapSeries);\n });\n });\n return geoList;\n };\n /**\n * Fill given regions array\n */\n\n\n GeoCreator.prototype.getFilledRegions = function (originRegionArr, mapName, nameMap, nameProperty) {\n // Not use the original\n var regionsArr = (originRegionArr || []).slice();\n var dataNameMap = zrUtil.createHashMap();\n\n for (var i = 0; i < regionsArr.length; i++) {\n dataNameMap.set(regionsArr[i].name, regionsArr[i]);\n }\n\n var source = geoSourceManager.load(mapName, nameMap, nameProperty);\n zrUtil.each(source.regions, function (region) {\n var name = region.name;\n !dataNameMap.get(name) && regionsArr.push({\n name: name\n });\n });\n return regionsArr;\n };\n\n return GeoCreator;\n}();\n\nvar geoCreator = new GeoCreator();\nexport default geoCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport ComponentModel from '../../model/Component';\nimport Model from '../../model/Model';\nimport geoCreator from './geoCreator';\nimport geoSourceManager from './geoSourceManager';\n;\n\nvar GeoModel =\n/** @class */\nfunction (_super) {\n __extends(GeoModel, _super);\n\n function GeoModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GeoModel.type;\n return _this;\n }\n\n GeoModel.prototype.init = function (option, parentModel, ecModel) {\n var source = geoSourceManager.getGeoResource(option.map);\n\n if (source && source.type === 'geoJSON') {\n var itemStyle = option.itemStyle = option.itemStyle || {};\n\n if (!('color' in itemStyle)) {\n itemStyle.color = '#eee';\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel); // Default label emphasis `show`\n\n modelUtil.defaultEmphasis(option, 'label', ['show']);\n };\n\n GeoModel.prototype.optionUpdated = function () {\n var _this = this;\n\n var option = this.option;\n option.regions = geoCreator.getFilledRegions(option.regions, option.map, option.nameMap, option.nameProperty);\n var selectedMap = {};\n this._optionModelMap = zrUtil.reduce(option.regions || [], function (optionModelMap, regionOpt) {\n var regionName = regionOpt.name;\n\n if (regionName) {\n optionModelMap.set(regionName, new Model(regionOpt, _this, _this.ecModel));\n\n if (regionOpt.selected) {\n selectedMap[regionName] = true;\n }\n }\n\n return optionModelMap;\n }, zrUtil.createHashMap());\n\n if (!option.selectedMap) {\n option.selectedMap = selectedMap;\n }\n };\n /**\n * Get model of region.\n */\n\n\n GeoModel.prototype.getRegionModel = function (name) {\n return this._optionModelMap.get(name) || new Model(null, this, this.ecModel);\n };\n /**\n * Format label\n * @param name Region name\n */\n\n\n GeoModel.prototype.getFormattedLabel = function (name, status) {\n var regionModel = this.getRegionModel(name);\n var formatter = status === 'normal' ? regionModel.get(['label', 'formatter']) : regionModel.get(['emphasis', 'label', 'formatter']);\n var params = {\n name: name\n };\n\n if (typeof formatter === 'function') {\n params.status = status;\n return formatter(params);\n } else if (typeof formatter === 'string') {\n return formatter.replace('{a}', name != null ? name : '');\n }\n };\n\n GeoModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n GeoModel.prototype.setCenter = function (center) {\n this.option.center = center;\n }; // PENGING If selectedMode is null ?\n\n\n GeoModel.prototype.select = function (name) {\n var option = this.option;\n var selectedMode = option.selectedMode;\n\n if (!selectedMode) {\n return;\n }\n\n if (selectedMode !== 'multiple') {\n option.selectedMap = null;\n }\n\n var selectedMap = option.selectedMap || (option.selectedMap = {});\n selectedMap[name] = true;\n };\n\n GeoModel.prototype.unSelect = function (name) {\n var selectedMap = this.option.selectedMap;\n\n if (selectedMap) {\n selectedMap[name] = false;\n }\n };\n\n GeoModel.prototype.toggleSelected = function (name) {\n this[this.isSelected(name) ? 'unSelect' : 'select'](name);\n };\n\n GeoModel.prototype.isSelected = function (name) {\n var selectedMap = this.option.selectedMap;\n return !!(selectedMap && selectedMap[name]);\n };\n\n GeoModel.type = 'geo';\n GeoModel.layoutMode = 'box';\n GeoModel.defaultOption = {\n zlevel: 0,\n z: 0,\n show: true,\n left: 'center',\n top: 'center',\n // Default value:\n // for geoSVG source: 1,\n // for geoJSON source: 0.75.\n aspectScale: null,\n ///// Layout with center and size\n // If you wan't to put map in a fixed size box with right aspect ratio\n // This two properties may more conveninet\n // layoutCenter: [50%, 50%]\n // layoutSize: 100\n silent: false,\n // Map type\n map: '',\n // Define left-top, right-bottom coords to control view\n // For example, [ [180, 90], [-180, -90] ]\n boundingCoords: null,\n // Default on center of map\n center: null,\n zoom: 1,\n scaleLimit: null,\n // selectedMode: false\n label: {\n show: false,\n color: '#000'\n },\n itemStyle: {\n borderWidth: 0.5,\n borderColor: '#444' // Default color:\n // + geoJSON: #eee\n // + geoSVG: null (use SVG original `fill`)\n // color: '#eee'\n\n },\n emphasis: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n select: {\n label: {\n show: true,\n color: 'rgb(100,0,0)'\n },\n itemStyle: {\n color: 'rgba(255,215,0,0.8)'\n }\n },\n regions: [] // tooltip: {\n // show: false\n // }\n\n };\n return GeoModel;\n}(ComponentModel);\n\nexport default GeoModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function updateCenterAndZoom(view, payload, zoomLimit) {\n var previousZoom = view.getZoom();\n var center = view.getCenter();\n var zoom = payload.zoom;\n var point = view.dataToPoint(center);\n\n if (payload.dx != null && payload.dy != null) {\n point[0] -= payload.dx;\n point[1] -= payload.dy;\n view.setCenter(view.pointToData(point));\n }\n\n if (zoom != null) {\n if (zoomLimit) {\n var zoomMin = zoomLimit.min || 0;\n var zoomMax = zoomLimit.max || Infinity;\n zoom = Math.max(Math.min(previousZoom * zoom, zoomMax), zoomMin) / previousZoom;\n } // Zoom on given point(originX, originY)\n\n\n view.scaleX *= zoom;\n view.scaleY *= zoom;\n var fixX = (payload.originX - view.x) * (zoom - 1);\n var fixY = (payload.originY - view.y) * (zoom - 1);\n view.x -= fixX;\n view.y -= fixY;\n view.updateTransform(); // Get the new center\n\n view.setCenter(view.pointToData(point));\n view.setZoom(zoom * previousZoom);\n }\n\n return {\n center: view.getCenter(),\n zoom: view.getZoom()\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MapDraw from '../helper/MapDraw';\nimport ComponentView from '../../view/Component';\nimport { getECData } from '../../util/innerStore';\nimport { findEventDispatcher } from '../../util/event';\n\nvar GeoView =\n/** @class */\nfunction (_super) {\n __extends(GeoView, _super);\n\n function GeoView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GeoView.type;\n _this.focusBlurEnabled = true;\n return _this;\n }\n\n GeoView.prototype.init = function (ecModel, api) {\n var mapDraw = new MapDraw(api);\n this._mapDraw = mapDraw;\n this.group.add(mapDraw.group);\n this._api = api;\n };\n\n GeoView.prototype.render = function (geoModel, ecModel, api, payload) {\n var mapDraw = this._mapDraw;\n\n if (geoModel.get('show')) {\n mapDraw.draw(geoModel, ecModel, api, this, payload);\n } else {\n this._mapDraw.group.removeAll();\n }\n\n mapDraw.group.on('click', this._handleRegionClick, this);\n mapDraw.group.silent = geoModel.get('silent');\n this._model = geoModel;\n this.updateSelectStatus(geoModel, ecModel, api);\n };\n\n GeoView.prototype._handleRegionClick = function (e) {\n var eventData;\n findEventDispatcher(e.target, function (current) {\n return (eventData = getECData(current).eventData) != null;\n }, true);\n\n if (eventData) {\n this._api.dispatchAction({\n type: 'geoToggleSelect',\n geoId: this._model.id,\n name: eventData.name\n });\n }\n };\n\n GeoView.prototype.updateSelectStatus = function (model, ecModel, api) {\n var _this = this;\n\n this._mapDraw.group.traverse(function (node) {\n var eventData = getECData(node).eventData;\n\n if (eventData) {\n _this._model.isSelected(eventData.name) ? api.enterSelect(node) : api.leaveSelect(node); // No need to traverse children.\n\n return true;\n }\n });\n };\n\n GeoView.prototype.findHighDownDispatchers = function (name) {\n return this._mapDraw && this._mapDraw.findHighDownDispatchers(name, this._model);\n };\n\n GeoView.prototype.dispose = function () {\n this._mapDraw && this._mapDraw.remove();\n };\n\n GeoView.type = 'geo';\n return GeoView;\n}(ComponentView);\n\nexport default GeoView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport GeoModel from '../../coord/geo/GeoModel';\nimport geoCreator from '../../coord/geo/geoCreator';\nimport { each } from 'zrender/lib/core/util';\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nimport GeoView from './GeoView';\nexport function install(registers) {\n registers.registerCoordinateSystem('geo', geoCreator);\n registers.registerComponentModel(GeoModel);\n registers.registerComponentView(GeoView);\n\n function makeAction(method, actionInfo) {\n actionInfo.update = 'geo:updateSelectStatus';\n registers.registerAction(actionInfo, function (payload, ecModel) {\n var selected = {};\n var allSelected = [];\n ecModel.eachComponent({\n mainType: 'geo',\n query: payload\n }, function (geoModel) {\n geoModel[method](payload.name);\n var geo = geoModel.coordinateSystem;\n each(geo.regions, function (region) {\n selected[region.name] = geoModel.isSelected(region.name) || false;\n }); // Notice: there might be duplicated name in different regions.\n\n var names = [];\n each(selected, function (v, name) {\n selected[name] && names.push(name);\n });\n allSelected.push({\n geoIndex: geoModel.componentIndex,\n // Use singular, the same naming convention as the event `selectchanged`.\n name: names\n });\n });\n return {\n selected: selected,\n allSelected: allSelected,\n name: payload.name\n };\n });\n }\n\n makeAction('toggleSelected', {\n type: 'geoToggleSelect',\n event: 'geoselectchanged'\n });\n makeAction('select', {\n type: 'geoSelect',\n event: 'geoselected'\n });\n makeAction('unSelect', {\n type: 'geoUnSelect',\n event: 'geounselected'\n });\n /**\n * @payload\n * @property {string} [componentType=series]\n * @property {number} [dx]\n * @property {number} [dy]\n * @property {number} [zoom]\n * @property {number} [originX]\n * @property {number} [originY]\n */\n\n registers.registerAction({\n type: 'geoRoam',\n event: 'geoRoam',\n update: 'updateTransform'\n }, function (payload, ecModel) {\n var componentType = payload.componentType || 'series';\n ecModel.eachComponent({\n mainType: componentType,\n query: payload\n }, function (componentModel) {\n var geo = componentModel.coordinateSystem;\n\n if (geo.type !== 'geo') {\n return;\n }\n\n var res = updateCenterAndZoom(geo, payload, componentModel.get('scaleLimit'));\n componentModel.setCenter && componentModel.setCenter(res.center);\n componentModel.setZoom && componentModel.setZoom(res.zoom); // All map series with same `map` use the same geo coordinate system\n // So the center and zoom must be in sync. Include the series not selected by legend\n\n if (componentType === 'series') {\n each(componentModel.seriesGroup, function (seriesModel) {\n seriesModel.setCenter(res.center);\n seriesModel.setZoom(res.zoom);\n });\n }\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport MapView from './MapView';\nimport MapSeries from './MapSeries';\nimport mapDataStatistic from './mapDataStatistic';\nimport mapSymbolLayout from './mapSymbolLayout';\nimport { createLegacyDataSelectAction } from '../../legacy/dataSelectAction';\nimport { install as installGeo } from '../../component/geo/install';\nexport function install(registers) {\n use(installGeo);\n registers.registerChartView(MapView);\n registers.registerSeriesModel(MapSeries);\n registers.registerLayout(mapSymbolLayout);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, mapDataStatistic);\n createLegacyDataSelectAction('map', registers.registerAction);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The tree layoutHelper implementation was originally copied from\n* \"d3.js\"(https://github.com/d3/d3-hierarchy) with\n* some modifications made for this project.\n* (see more details in the comment of the specific method below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the licence of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\n\n/**\n * @file The layout algorithm of node-link tree diagrams. Here we using Reingold-Tilford algorithm to drawing\n * the tree.\n */\nimport * as layout from '../../util/layout';\n/**\n * Initialize all computational message for following algorithm.\n */\n\nexport function init(inRoot) {\n var root = inRoot;\n root.hierNode = {\n defaultAncestor: null,\n ancestor: root,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: 0,\n thread: null\n };\n var nodes = [root];\n var node;\n var children;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n children = node.children;\n\n if (node.isExpand && children.length) {\n var n = children.length;\n\n for (var i = n - 1; i >= 0; i--) {\n var child = children[i];\n child.hierNode = {\n defaultAncestor: null,\n ancestor: child,\n prelim: 0,\n modifier: 0,\n change: 0,\n shift: 0,\n i: i,\n thread: null\n };\n nodes.push(child);\n }\n }\n }\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes a preliminary x coordinate for node. Before that, this function is\n * applied recursively to the children of node, as well as the function\n * apportion(). After spacing out the children by calling executeShifts(), the\n * node is placed to the midpoint of its outermost children.\n */\n\nexport function firstWalk(node, separation) {\n var children = node.isExpand ? node.children : [];\n var siblings = node.parentNode.children;\n var subtreeW = node.hierNode.i ? siblings[node.hierNode.i - 1] : null;\n\n if (children.length) {\n executeShifts(node);\n var midPoint = (children[0].hierNode.prelim + children[children.length - 1].hierNode.prelim) / 2;\n\n if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n node.hierNode.modifier = node.hierNode.prelim - midPoint;\n } else {\n node.hierNode.prelim = midPoint;\n }\n } else if (subtreeW) {\n node.hierNode.prelim = subtreeW.hierNode.prelim + separation(node, subtreeW);\n }\n\n node.parentNode.hierNode.defaultAncestor = apportion(node, subtreeW, node.parentNode.hierNode.defaultAncestor || siblings[0], separation);\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Computes all real x-coordinates by summing up the modifiers recursively.\n */\n\nexport function secondWalk(node) {\n var nodeX = node.hierNode.prelim + node.parentNode.hierNode.modifier;\n node.setLayout({\n x: nodeX\n }, true);\n node.hierNode.modifier += node.parentNode.hierNode.modifier;\n}\nexport function separation(cb) {\n return arguments.length ? cb : defaultSeparation;\n}\n/**\n * Transform the common coordinate to radial coordinate.\n */\n\nexport function radialCoordinate(rad, r) {\n rad -= Math.PI / 2;\n return {\n x: r * Math.cos(rad),\n y: r * Math.sin(rad)\n };\n}\n/**\n * Get the layout position of the whole view.\n */\n\nexport function getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n/**\n * All other shifts, applied to the smaller subtrees between w- and w+, are\n * performed by this function.\n *\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\nfunction executeShifts(node) {\n var children = node.children;\n var n = children.length;\n var shift = 0;\n var change = 0;\n\n while (--n >= 0) {\n var child = children[n];\n child.hierNode.prelim += shift;\n child.hierNode.modifier += shift;\n change += child.hierNode.change;\n shift += child.hierNode.shift + change;\n }\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * The core of the algorithm. Here, a new subtree is combined with the\n * previous subtrees. Threads are used to traverse the inside and outside\n * contours of the left and right subtree up to the highest common level.\n * Whenever two nodes of the inside contours conflict, we compute the left\n * one of the greatest uncommon ancestors using the function nextAncestor()\n * and call moveSubtree() to shift the subtree and prepare the shifts of\n * smaller subtrees. Finally, we add a new thread (if necessary).\n */\n\n\nfunction apportion(subtreeV, subtreeW, ancestor, separation) {\n if (subtreeW) {\n var nodeOutRight = subtreeV;\n var nodeInRight = subtreeV;\n var nodeOutLeft = nodeInRight.parentNode.children[0];\n var nodeInLeft = subtreeW;\n var sumOutRight = nodeOutRight.hierNode.modifier;\n var sumInRight = nodeInRight.hierNode.modifier;\n var sumOutLeft = nodeOutLeft.hierNode.modifier;\n var sumInLeft = nodeInLeft.hierNode.modifier;\n\n while (nodeInLeft = nextRight(nodeInLeft), nodeInRight = nextLeft(nodeInRight), nodeInLeft && nodeInRight) {\n nodeOutRight = nextRight(nodeOutRight);\n nodeOutLeft = nextLeft(nodeOutLeft);\n nodeOutRight.hierNode.ancestor = subtreeV;\n var shift = nodeInLeft.hierNode.prelim + sumInLeft - nodeInRight.hierNode.prelim - sumInRight + separation(nodeInLeft, nodeInRight);\n\n if (shift > 0) {\n moveSubtree(nextAncestor(nodeInLeft, subtreeV, ancestor), subtreeV, shift);\n sumInRight += shift;\n sumOutRight += shift;\n }\n\n sumInLeft += nodeInLeft.hierNode.modifier;\n sumInRight += nodeInRight.hierNode.modifier;\n sumOutRight += nodeOutRight.hierNode.modifier;\n sumOutLeft += nodeOutLeft.hierNode.modifier;\n }\n\n if (nodeInLeft && !nextRight(nodeOutRight)) {\n nodeOutRight.hierNode.thread = nodeInLeft;\n nodeOutRight.hierNode.modifier += sumInLeft - sumOutRight;\n }\n\n if (nodeInRight && !nextLeft(nodeOutLeft)) {\n nodeOutLeft.hierNode.thread = nodeInRight;\n nodeOutLeft.hierNode.modifier += sumInRight - sumOutLeft;\n ancestor = subtreeV;\n }\n }\n\n return ancestor;\n}\n/**\n * This function is used to traverse the right contour of a subtree.\n * It returns the rightmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\n\n\nfunction nextRight(node) {\n var children = node.children;\n return children.length && node.isExpand ? children[children.length - 1] : node.hierNode.thread;\n}\n/**\n * This function is used to traverse the left contour of a subtree (or a subforest).\n * It returns the leftmost child of node or the thread of node. The function\n * returns null if and only if node is on the highest depth of its subtree.\n */\n\n\nfunction nextLeft(node) {\n var children = node.children;\n return children.length && node.isExpand ? children[0] : node.hierNode.thread;\n}\n/**\n * If nodeInLeft’s ancestor is a sibling of node, returns nodeInLeft’s ancestor.\n * Otherwise, returns the specified ancestor.\n */\n\n\nfunction nextAncestor(nodeInLeft, node, ancestor) {\n return nodeInLeft.hierNode.ancestor.parentNode === node.parentNode ? nodeInLeft.hierNode.ancestor : ancestor;\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * Shifts the current subtree rooted at wr.\n * This is done by increasing prelim(w+) and modifier(w+) by shift.\n */\n\n\nfunction moveSubtree(wl, wr, shift) {\n var change = shift / (wr.hierNode.i - wl.hierNode.i);\n wr.hierNode.change -= change;\n wr.hierNode.shift += shift;\n wr.hierNode.modifier += shift;\n wr.hierNode.prelim += shift;\n wl.hierNode.change += change;\n}\n/**\n * The implementation of this function was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n */\n\n\nfunction defaultSeparation(node1, node2) {\n return node1.parentNode === node2.parentNode ? 1 : 2;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport SymbolClz from '../helper/Symbol';\nimport { radialCoordinate } from './layoutHelper';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport View from '../../coord/View';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport RoamController from '../../component/helper/RoamController';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport { parsePercent } from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport Path from 'zrender/lib/graphic/Path';\nimport { setStatesStylesFromModel, setStatesFlag, setDefaultStateProxy, HOVER_STATE_BLUR } from '../../util/states';\n\nvar TreeEdgeShape =\n/** @class */\nfunction () {\n function TreeEdgeShape() {\n this.parentPoint = [];\n this.childPoints = [];\n }\n\n return TreeEdgeShape;\n}();\n\nvar TreePath =\n/** @class */\nfunction (_super) {\n __extends(TreePath, _super);\n\n function TreePath(opts) {\n return _super.call(this, opts) || this;\n }\n\n TreePath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n TreePath.prototype.getDefaultShape = function () {\n return new TreeEdgeShape();\n };\n\n TreePath.prototype.buildPath = function (ctx, shape) {\n var childPoints = shape.childPoints;\n var childLen = childPoints.length;\n var parentPoint = shape.parentPoint;\n var firstChildPos = childPoints[0];\n var lastChildPos = childPoints[childLen - 1];\n\n if (childLen === 1) {\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(firstChildPos[0], firstChildPos[1]);\n return;\n }\n\n var orient = shape.orient;\n var forkDim = orient === 'TB' || orient === 'BT' ? 0 : 1;\n var otherDim = 1 - forkDim;\n var forkPosition = parsePercent(shape.forkPosition, 1);\n var tmpPoint = [];\n tmpPoint[forkDim] = parentPoint[forkDim];\n tmpPoint[otherDim] = parentPoint[otherDim] + (lastChildPos[otherDim] - parentPoint[otherDim]) * forkPosition;\n ctx.moveTo(parentPoint[0], parentPoint[1]);\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.moveTo(firstChildPos[0], firstChildPos[1]);\n tmpPoint[forkDim] = firstChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n tmpPoint[forkDim] = lastChildPos[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n ctx.lineTo(lastChildPos[0], lastChildPos[1]);\n\n for (var i = 1; i < childLen - 1; i++) {\n var point = childPoints[i];\n ctx.moveTo(point[0], point[1]);\n tmpPoint[forkDim] = point[forkDim];\n ctx.lineTo(tmpPoint[0], tmpPoint[1]);\n }\n };\n\n return TreePath;\n}(Path);\n\nvar TreeView =\n/** @class */\nfunction (_super) {\n __extends(TreeView, _super);\n\n function TreeView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreeView.type;\n _this._mainGroup = new graphic.Group();\n return _this;\n }\n\n TreeView.prototype.init = function (ecModel, api) {\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: this.group\n };\n this.group.add(this._mainGroup);\n };\n\n TreeView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var layoutInfo = seriesModel.layoutInfo;\n var group = this._mainGroup;\n var layout = seriesModel.get('layout');\n\n if (layout === 'radial') {\n group.x = layoutInfo.x + layoutInfo.width / 2;\n group.y = layoutInfo.y + layoutInfo.height / 2;\n } else {\n group.x = layoutInfo.x;\n group.y = layoutInfo.y;\n }\n\n this._updateViewCoordSys(seriesModel);\n\n this._updateController(seriesModel, ecModel, api);\n\n var oldData = this._data;\n data.diff(oldData).add(function (newIdx) {\n if (symbolNeedsDraw(data, newIdx)) {\n // Create node and edge\n updateNode(data, newIdx, null, group, seriesModel);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx);\n\n if (!symbolNeedsDraw(data, newIdx)) {\n symbolEl && removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n return;\n } // Update node and edge\n\n\n updateNode(data, newIdx, symbolEl, group, seriesModel);\n }).remove(function (oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx); // When remove a collapsed node of subtree, since the collapsed\n // node haven't been initialized with a symbol element,\n // you can't found it's symbol element through index.\n // so if we want to remove the symbol element we should insure\n // that the symbol element is not null.\n\n if (symbolEl) {\n removeNode(oldData, oldIdx, symbolEl, group, seriesModel);\n }\n }).execute();\n this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');\n\n this._updateNodeAndLinkScale(seriesModel);\n\n if (seriesModel.get('expandAndCollapse') === true) {\n data.eachItemGraphicEl(function (el, dataIndex) {\n el.off('click').on('click', function () {\n api.dispatchAction({\n type: 'treeExpandAndCollapse',\n seriesId: seriesModel.id,\n dataIndex: dataIndex\n });\n });\n });\n }\n\n this._data = data;\n };\n\n TreeView.prototype._updateViewCoordSys = function (seriesModel) {\n var data = seriesModel.getData();\n var points = [];\n data.each(function (idx) {\n var layout = data.getItemLayout(idx);\n\n if (layout && !isNaN(layout.x) && !isNaN(layout.y)) {\n points.push([+layout.x, +layout.y]);\n }\n });\n var min = [];\n var max = [];\n bbox.fromPoints(points, min, max); // If don't Store min max when collapse the root node after roam,\n // the root node will disappear.\n\n var oldMin = this._min;\n var oldMax = this._max; // If width or height is 0\n\n if (max[0] - min[0] === 0) {\n min[0] = oldMin ? oldMin[0] : min[0] - 1;\n max[0] = oldMax ? oldMax[0] : max[0] + 1;\n }\n\n if (max[1] - min[1] === 0) {\n min[1] = oldMin ? oldMin[1] : min[1] - 1;\n max[1] = oldMax ? oldMax[1] : max[1] + 1;\n }\n\n var viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n viewCoordSys.setBoundingRect(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom')); // Here we use viewCoordSys just for computing the 'position' and 'scale' of the group\n\n this.group.attr({\n x: viewCoordSys.x,\n y: viewCoordSys.y,\n scaleX: viewCoordSys.scaleX,\n scaleY: viewCoordSys.scaleY\n });\n this._min = min;\n this._max = max;\n };\n\n TreeView.prototype._updateController = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var controller = this._controller;\n var controllerHost = this._controllerHost;\n var group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n var rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);\n });\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n controller.off('pan').off('zoom').on('pan', function (e) {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n dx: e.dx,\n dy: e.dy\n });\n }).on('zoom', function (e) {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'treeRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n\n _this._updateNodeAndLinkScale(seriesModel); // Only update label layout on zoom\n\n\n api.updateLabelLayout();\n });\n };\n\n TreeView.prototype._updateNodeAndLinkScale = function (seriesModel) {\n var data = seriesModel.getData();\n\n var nodeScale = this._getNodeGlobalScale(seriesModel);\n\n data.eachItemGraphicEl(function (el, idx) {\n el.setSymbolScale(nodeScale);\n });\n };\n\n TreeView.prototype._getNodeGlobalScale = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n var nodeScaleRatio = this._nodeScaleRatio;\n var groupZoom = coordSys.scaleX || 1; // Scale node when zoom changes\n\n var roamZoom = coordSys.getZoom();\n var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n return nodeScale / groupZoom;\n };\n\n TreeView.prototype.dispose = function () {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n };\n\n TreeView.prototype.remove = function () {\n this._mainGroup.removeAll();\n\n this._data = null;\n };\n\n TreeView.type = 'tree';\n return TreeView;\n}(ChartView);\n\nfunction symbolNeedsDraw(data, dataIndex) {\n var layout = data.getItemLayout(dataIndex);\n return layout && !isNaN(layout.x) && !isNaN(layout.y);\n}\n\nfunction updateNode(data, dataIndex, symbolEl, group, seriesModel) {\n var isInit = !symbolEl;\n var node = data.tree.getNodeByDataIndex(dataIndex);\n var itemModel = node.getModel();\n var visualColor = node.getVisual('style').fill;\n var symbolInnerColor = node.isExpand === false && node.children.length !== 0 ? visualColor : '#fff';\n var virtualRoot = data.tree.root;\n var source = node.parentNode === virtualRoot ? node : node.parentNode || node;\n var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);\n var sourceLayout = source.getLayout();\n var sourceOldLayout = sourceSymbolEl ? {\n x: sourceSymbolEl.__oldX,\n y: sourceSymbolEl.__oldY,\n rawX: sourceSymbolEl.__radialOldRawX,\n rawY: sourceSymbolEl.__radialOldRawY\n } : sourceLayout;\n var targetLayout = node.getLayout();\n\n if (isInit) {\n symbolEl = new SymbolClz(data, dataIndex, null, {\n symbolInnerColor: symbolInnerColor,\n useNameLabel: true\n });\n symbolEl.x = sourceOldLayout.x;\n symbolEl.y = sourceOldLayout.y;\n } else {\n symbolEl.updateData(data, dataIndex, null, {\n symbolInnerColor: symbolInnerColor,\n useNameLabel: true\n });\n }\n\n symbolEl.__radialOldRawX = symbolEl.__radialRawX;\n symbolEl.__radialOldRawY = symbolEl.__radialRawY;\n symbolEl.__radialRawX = targetLayout.rawX;\n symbolEl.__radialRawY = targetLayout.rawY;\n group.add(symbolEl);\n data.setItemGraphicEl(dataIndex, symbolEl);\n symbolEl.__oldX = symbolEl.x;\n symbolEl.__oldY = symbolEl.y;\n graphic.updateProps(symbolEl, {\n x: targetLayout.x,\n y: targetLayout.y\n }, seriesModel);\n var symbolPath = symbolEl.getSymbolPath();\n\n if (seriesModel.get('layout') === 'radial') {\n var realRoot = virtualRoot.children[0];\n var rootLayout = realRoot.getLayout();\n var length_1 = realRoot.children.length;\n var rad = void 0;\n var isLeft = void 0;\n\n if (targetLayout.x === rootLayout.x && node.isExpand === true) {\n var center = {\n x: (realRoot.children[0].getLayout().x + realRoot.children[length_1 - 1].getLayout().x) / 2,\n y: (realRoot.children[0].getLayout().y + realRoot.children[length_1 - 1].getLayout().y) / 2\n };\n rad = Math.atan2(center.y - rootLayout.y, center.x - rootLayout.x);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n isLeft = center.x < rootLayout.x;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n } else {\n rad = Math.atan2(targetLayout.y - rootLayout.y, targetLayout.x - rootLayout.x);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n if (node.children.length === 0 || node.children.length !== 0 && node.isExpand === false) {\n isLeft = targetLayout.x < rootLayout.x;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n } else {\n isLeft = targetLayout.x > rootLayout.x;\n\n if (!isLeft) {\n rad = rad - Math.PI;\n }\n }\n }\n\n var textPosition = isLeft ? 'left' : 'right';\n var normalLabelModel = itemModel.getModel('label');\n var rotate = normalLabelModel.get('rotate');\n var labelRotateRadian = rotate * (Math.PI / 180);\n var textContent = symbolPath.getTextContent();\n\n if (textContent) {\n symbolPath.setTextConfig({\n position: normalLabelModel.get('position') || textPosition,\n rotation: rotate == null ? -rad : labelRotateRadian,\n origin: 'center'\n });\n textContent.setStyle('verticalAlign', 'middle');\n }\n } // Handle status\n\n\n var focus = itemModel.get(['emphasis', 'focus']);\n var focusDataIndices = focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : null;\n\n if (focusDataIndices) {\n // Modify the focus to data indices.\n getECData(symbolEl).focus = focusDataIndices;\n }\n\n drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group);\n\n if (symbolEl.__edge) {\n symbolEl.onHoverStateChange = function (toState) {\n if (toState !== 'blur') {\n // NOTE: Ensure the parent elements will been blurred firstly.\n // According to the return of getAncestorsIndices and getDescendantIndices\n // TODO: A bit tricky.\n var parentEl = node.parentNode && data.getItemGraphicEl(node.parentNode.dataIndex);\n\n if (!(parentEl && parentEl.hoverState === HOVER_STATE_BLUR)) {\n setStatesFlag(symbolEl.__edge, toState);\n }\n }\n };\n }\n}\n\nfunction drawEdge(seriesModel, node, virtualRoot, symbolEl, sourceOldLayout, sourceLayout, targetLayout, group) {\n var itemModel = node.getModel();\n var edgeShape = seriesModel.get('edgeShape');\n var layout = seriesModel.get('layout');\n var orient = seriesModel.getOrient();\n var curvature = seriesModel.get(['lineStyle', 'curveness']);\n var edgeForkPosition = seriesModel.get('edgeForkPosition');\n var lineStyle = itemModel.getModel('lineStyle').getLineStyle();\n var edge = symbolEl.__edge;\n\n if (edgeShape === 'curve') {\n if (node.parentNode && node.parentNode !== virtualRoot) {\n if (!edge) {\n edge = symbolEl.__edge = new graphic.BezierCurve({\n shape: getEdgeShape(layout, orient, curvature, sourceOldLayout, sourceOldLayout)\n });\n }\n\n graphic.updateProps(edge, {\n shape: getEdgeShape(layout, orient, curvature, sourceLayout, targetLayout)\n }, seriesModel);\n }\n } else if (edgeShape === 'polyline') {\n if (layout === 'orthogonal') {\n if (node !== virtualRoot && node.children && node.children.length !== 0 && node.isExpand === true) {\n var children = node.children;\n var childPoints = [];\n\n for (var i = 0; i < children.length; i++) {\n var childLayout = children[i].getLayout();\n childPoints.push([childLayout.x, childLayout.y]);\n }\n\n if (!edge) {\n edge = symbolEl.__edge = new TreePath({\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: [[targetLayout.x, targetLayout.y]],\n orient: orient,\n forkPosition: edgeForkPosition\n }\n });\n }\n\n graphic.updateProps(edge, {\n shape: {\n parentPoint: [targetLayout.x, targetLayout.y],\n childPoints: childPoints\n }\n }, seriesModel);\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('The polyline edgeShape can only be used in orthogonal layout');\n }\n }\n }\n\n if (edge) {\n edge.useStyle(zrUtil.defaults({\n strokeNoScale: true,\n fill: null\n }, lineStyle));\n setStatesStylesFromModel(edge, itemModel, 'lineStyle');\n setDefaultStateProxy(edge);\n group.add(edge);\n }\n}\n\nfunction removeNode(data, dataIndex, symbolEl, group, seriesModel) {\n var node = data.tree.getNodeByDataIndex(dataIndex);\n var virtualRoot = data.tree.root;\n var source = node.parentNode === virtualRoot ? node : node.parentNode || node; // let edgeShape = seriesScope.edgeShape;\n\n var sourceLayout;\n\n while (sourceLayout = source.getLayout(), sourceLayout == null) {\n source = source.parentNode === virtualRoot ? source : source.parentNode || source;\n } // Use same duration and easing with update to have more consistent animation.\n\n\n var removeAnimationOpt = {\n duration: seriesModel.get('animationDurationUpdate'),\n easing: seriesModel.get('animationEasingUpdate')\n };\n graphic.removeElement(symbolEl, {\n x: sourceLayout.x + 1,\n y: sourceLayout.y + 1\n }, seriesModel, {\n cb: function () {\n group.remove(symbolEl);\n data.setItemGraphicEl(dataIndex, null);\n },\n removeOpt: removeAnimationOpt\n });\n symbolEl.fadeOut(null, {\n fadeLabel: true,\n animation: removeAnimationOpt\n });\n var sourceSymbolEl = data.getItemGraphicEl(source.dataIndex);\n var sourceEdge = sourceSymbolEl.__edge; // 1. when expand the sub tree, delete the children node should delete the edge of\n // the source at the same time. because the polyline edge shape is only owned by the source.\n // 2.when the node is the only children of the source, delete the node should delete the edge of\n // the source at the same time. the same reason as above.\n\n var edge = symbolEl.__edge || (source.isExpand === false || source.children.length === 1 ? sourceEdge : undefined);\n var edgeShape = seriesModel.get('edgeShape');\n var layoutOpt = seriesModel.get('layout');\n var orient = seriesModel.get('orient');\n var curvature = seriesModel.get(['lineStyle', 'curveness']);\n\n if (edge) {\n if (edgeShape === 'curve') {\n graphic.removeElement(edge, {\n shape: getEdgeShape(layoutOpt, orient, curvature, sourceLayout, sourceLayout),\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb: function () {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n } else if (edgeShape === 'polyline' && seriesModel.get('layout') === 'orthogonal') {\n graphic.removeElement(edge, {\n shape: {\n parentPoint: [sourceLayout.x, sourceLayout.y],\n childPoints: [[sourceLayout.x, sourceLayout.y]]\n },\n style: {\n opacity: 0\n }\n }, seriesModel, {\n cb: function () {\n group.remove(edge);\n },\n removeOpt: removeAnimationOpt\n });\n }\n }\n}\n\nfunction getEdgeShape(layoutOpt, orient, curvature, sourceLayout, targetLayout) {\n var cpx1;\n var cpy1;\n var cpx2;\n var cpy2;\n var x1;\n var x2;\n var y1;\n var y2;\n\n if (layoutOpt === 'radial') {\n x1 = sourceLayout.rawX;\n y1 = sourceLayout.rawY;\n x2 = targetLayout.rawX;\n y2 = targetLayout.rawY;\n var radialCoor1 = radialCoordinate(x1, y1);\n var radialCoor2 = radialCoordinate(x1, y1 + (y2 - y1) * curvature);\n var radialCoor3 = radialCoordinate(x2, y2 + (y1 - y2) * curvature);\n var radialCoor4 = radialCoordinate(x2, y2);\n return {\n x1: radialCoor1.x || 0,\n y1: radialCoor1.y || 0,\n x2: radialCoor4.x || 0,\n y2: radialCoor4.y || 0,\n cpx1: radialCoor2.x || 0,\n cpy1: radialCoor2.y || 0,\n cpx2: radialCoor3.x || 0,\n cpy2: radialCoor3.y || 0\n };\n } else {\n x1 = sourceLayout.x;\n y1 = sourceLayout.y;\n x2 = targetLayout.x;\n y2 = targetLayout.y;\n\n if (orient === 'LR' || orient === 'RL') {\n cpx1 = x1 + (x2 - x1) * curvature;\n cpy1 = y1;\n cpx2 = x2 + (x1 - x2) * curvature;\n cpy2 = y2;\n }\n\n if (orient === 'TB' || orient === 'BT') {\n cpx1 = x1;\n cpy1 = y1 + (y2 - y1) * curvature;\n cpx2 = x2;\n cpy2 = y2 + (y1 - y2) * curvature;\n }\n }\n\n return {\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n };\n}\n\nexport default TreeView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Link lists and struct (graph or tree)\n */\nimport { curry, each, assert, extend, map, keys } from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\n\nfunction linkList(opt) {\n var mainData = opt.mainData;\n var datas = opt.datas;\n\n if (!datas) {\n datas = {\n main: mainData\n };\n opt.datasAttr = {\n main: 'data'\n };\n }\n\n opt.datas = opt.mainData = null;\n linkAll(mainData, datas, opt); // Porxy data original methods.\n\n each(datas, function (data) {\n each(mainData.TRANSFERABLE_METHODS, function (methodName) {\n data.wrapMethod(methodName, curry(transferInjection, opt));\n });\n }); // Beyond transfer, additional features should be added to `cloneShallow`.\n\n mainData.wrapMethod('cloneShallow', curry(cloneShallowInjection, opt)); // Only mainData trigger change, because struct.update may trigger\n // another changable methods, which may bring about dead lock.\n\n each(mainData.CHANGABLE_METHODS, function (methodName) {\n mainData.wrapMethod(methodName, curry(changeInjection, opt));\n }); // Make sure datas contains mainData.\n\n assert(datas[mainData.dataType] === mainData);\n}\n\nfunction transferInjection(opt, res) {\n if (isMainData(this)) {\n // Transfer datas to new main data.\n var datas = extend({}, inner(this).datas);\n datas[this.dataType] = res;\n linkAll(res, datas, opt);\n } else {\n // Modify the reference in main data to point newData.\n linkSingle(res, this.dataType, inner(this).mainData, opt);\n }\n\n return res;\n}\n\nfunction changeInjection(opt, res) {\n opt.struct && opt.struct.update();\n return res;\n}\n\nfunction cloneShallowInjection(opt, res) {\n // cloneShallow, which brings about some fragilities, may be inappropriate\n // to be exposed as an API. So for implementation simplicity we can make\n // the restriction that cloneShallow of not-mainData should not be invoked\n // outside, but only be invoked here.\n each(inner(res).datas, function (data, dataType) {\n data !== res && linkSingle(data.cloneShallow(), dataType, res, opt);\n });\n return res;\n}\n/**\n * Supplement method to List.\n *\n * @public\n * @param [dataType] If not specified, return mainData.\n */\n\n\nfunction getLinkedData(dataType) {\n var mainData = inner(this).mainData;\n return dataType == null || mainData == null ? mainData : inner(mainData).datas[dataType];\n}\n/**\n * Get list of all linked data\n */\n\n\nfunction getLinkedDataAll() {\n var mainData = inner(this).mainData;\n return mainData == null ? [{\n data: mainData\n }] : map(keys(inner(mainData).datas), function (type) {\n return {\n type: type,\n data: inner(mainData).datas[type]\n };\n });\n}\n\nfunction isMainData(data) {\n return inner(data).mainData === data;\n}\n\nfunction linkAll(mainData, datas, opt) {\n inner(mainData).datas = {};\n each(datas, function (data, dataType) {\n linkSingle(data, dataType, mainData, opt);\n });\n}\n\nfunction linkSingle(data, dataType, mainData, opt) {\n inner(mainData).datas[dataType] = data;\n inner(data).mainData = mainData;\n data.dataType = dataType;\n\n if (opt.struct) {\n data[opt.structAttr] = opt.struct;\n opt.struct[opt.datasAttr[dataType]] = data;\n } // Supplement method.\n\n\n data.getLinkedData = getLinkedData;\n data.getLinkedDataAll = getLinkedDataAll;\n}\n\nexport default linkList;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Tree data structure\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport linkList from './helper/linkList';\nimport List from './List';\nimport createDimensions from './helper/createDimensions';\nimport { convertOptionIdName } from '../util/model';\n\nvar TreeNode =\n/** @class */\nfunction () {\n function TreeNode(name, hostTree) {\n this.depth = 0;\n this.height = 0;\n /**\n * Reference to list item.\n * Do not persistent dataIndex outside,\n * besause it may be changed by list.\n * If dataIndex -1,\n * this node is logical deleted (filtered) in list.\n */\n\n this.dataIndex = -1;\n this.children = [];\n this.viewChildren = [];\n this.isExpand = false;\n this.name = name || '';\n this.hostTree = hostTree;\n }\n /**\n * The node is removed.\n */\n\n\n TreeNode.prototype.isRemoved = function () {\n return this.dataIndex < 0;\n };\n\n TreeNode.prototype.eachNode = function (options, cb, context) {\n if (typeof options === 'function') {\n context = cb;\n cb = options;\n options = null;\n }\n\n options = options || {};\n\n if (zrUtil.isString(options)) {\n options = {\n order: options\n };\n }\n\n var order = options.order || 'preorder';\n var children = this[options.attr || 'children'];\n var suppressVisitSub;\n order === 'preorder' && (suppressVisitSub = cb.call(context, this));\n\n for (var i = 0; !suppressVisitSub && i < children.length; i++) {\n children[i].eachNode(options, cb, context);\n }\n\n order === 'postorder' && cb.call(context, this);\n };\n /**\n * Update depth and height of this subtree.\n */\n\n\n TreeNode.prototype.updateDepthAndHeight = function (depth) {\n var height = 0;\n this.depth = depth;\n\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n child.updateDepthAndHeight(depth + 1);\n\n if (child.height > height) {\n height = child.height;\n }\n }\n\n this.height = height + 1;\n };\n\n TreeNode.prototype.getNodeById = function (id) {\n if (this.getId() === id) {\n return this;\n }\n\n for (var i = 0, children = this.children, len = children.length; i < len; i++) {\n var res = children[i].getNodeById(id);\n\n if (res) {\n return res;\n }\n }\n };\n\n TreeNode.prototype.contains = function (node) {\n if (node === this) {\n return true;\n }\n\n for (var i = 0, children = this.children, len = children.length; i < len; i++) {\n var res = children[i].contains(node);\n\n if (res) {\n return res;\n }\n }\n };\n /**\n * @param includeSelf Default false.\n * @return order: [root, child, grandchild, ...]\n */\n\n\n TreeNode.prototype.getAncestors = function (includeSelf) {\n var ancestors = [];\n var node = includeSelf ? this : this.parentNode;\n\n while (node) {\n ancestors.push(node);\n node = node.parentNode;\n }\n\n ancestors.reverse();\n return ancestors;\n };\n\n TreeNode.prototype.getAncestorsIndices = function () {\n var indices = [];\n var currNode = this;\n\n while (currNode) {\n indices.push(currNode.dataIndex);\n currNode = currNode.parentNode;\n }\n\n indices.reverse();\n return indices;\n };\n\n TreeNode.prototype.getDescendantIndices = function () {\n var indices = [];\n this.eachNode(function (childNode) {\n indices.push(childNode.dataIndex);\n });\n return indices;\n };\n\n TreeNode.prototype.getValue = function (dimension) {\n var data = this.hostTree.data;\n return data.get(data.getDimension(dimension || 'value'), this.dataIndex);\n };\n\n TreeNode.prototype.setLayout = function (layout, merge) {\n this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);\n };\n /**\n * @return {Object} layout\n */\n\n\n TreeNode.prototype.getLayout = function () {\n return this.hostTree.data.getItemLayout(this.dataIndex);\n }; // @depcrecated\n // getModel(path: S): Model\n\n\n TreeNode.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var hostTree = this.hostTree;\n var itemModel = hostTree.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n }; // TODO: TYPE More specific model\n\n\n TreeNode.prototype.getLevelModel = function () {\n return (this.hostTree.levelModels || [])[this.depth];\n };\n\n TreeNode.prototype.setVisual = function (key, value) {\n this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, key, value);\n };\n /**\n * Get item visual\n * FIXME: make return type better\n */\n\n\n TreeNode.prototype.getVisual = function (key) {\n return this.hostTree.data.getItemVisual(this.dataIndex, key);\n };\n\n TreeNode.prototype.getRawIndex = function () {\n return this.hostTree.data.getRawIndex(this.dataIndex);\n };\n\n TreeNode.prototype.getId = function () {\n return this.hostTree.data.getId(this.dataIndex);\n };\n /**\n * if this is an ancestor of another node\n *\n * @param node another node\n * @return if is ancestor\n */\n\n\n TreeNode.prototype.isAncestorOf = function (node) {\n var parent = node.parentNode;\n\n while (parent) {\n if (parent === this) {\n return true;\n }\n\n parent = parent.parentNode;\n }\n\n return false;\n };\n /**\n * if this is an descendant of another node\n *\n * @param node another node\n * @return if is descendant\n */\n\n\n TreeNode.prototype.isDescendantOf = function (node) {\n return node !== this && node.isAncestorOf(this);\n };\n\n return TreeNode;\n}();\n\nexport { TreeNode };\n;\n\nvar Tree =\n/** @class */\nfunction () {\n function Tree(hostModel) {\n this.type = 'tree';\n this._nodes = [];\n this.hostModel = hostModel;\n }\n\n Tree.prototype.eachNode = function (options, cb, context) {\n this.root.eachNode(options, cb, context);\n };\n\n Tree.prototype.getNodeByDataIndex = function (dataIndex) {\n var rawIndex = this.data.getRawIndex(dataIndex);\n return this._nodes[rawIndex];\n };\n\n Tree.prototype.getNodeById = function (name) {\n return this.root.getNodeById(name);\n };\n /**\n * Update item available by list,\n * when list has been performed options like 'filterSelf' or 'map'.\n */\n\n\n Tree.prototype.update = function () {\n var data = this.data;\n var nodes = this._nodes;\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (var i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n };\n /**\n * Clear all layouts\n */\n\n\n Tree.prototype.clearLayouts = function () {\n this.data.clearItemLayouts();\n };\n /**\n * data node format:\n * {\n * name: ...\n * value: ...\n * children: [\n * {\n * name: ...\n * value: ...\n * children: ...\n * },\n * ...\n * ]\n * }\n */\n\n\n Tree.createTree = function (dataRoot, hostModel, beforeLink) {\n var tree = new Tree(hostModel);\n var listData = [];\n var dimMax = 1;\n buildHierarchy(dataRoot);\n\n function buildHierarchy(dataNode, parentNode) {\n var value = dataNode.value;\n dimMax = Math.max(dimMax, zrUtil.isArray(value) ? value.length : 1);\n listData.push(dataNode);\n var node = new TreeNode(convertOptionIdName(dataNode.name, ''), tree);\n parentNode ? addChild(node, parentNode) : tree.root = node;\n\n tree._nodes.push(node);\n\n var children = dataNode.children;\n\n if (children) {\n for (var i = 0; i < children.length; i++) {\n buildHierarchy(children[i], node);\n }\n }\n }\n\n tree.root.updateDepthAndHeight(0);\n var dimensionsInfo = createDimensions(listData, {\n coordDimensions: ['value'],\n dimensionsCount: dimMax\n });\n var list = new List(dimensionsInfo, hostModel);\n list.initData(listData);\n beforeLink && beforeLink(list);\n linkList({\n mainData: list,\n struct: tree,\n structAttr: 'tree'\n });\n tree.update();\n return tree;\n };\n\n return Tree;\n}();\n/**\n * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,\n * so this function is not ready and not necessary to be public.\n */\n\n\nfunction addChild(child, node) {\n var children = node.children;\n\n if (child.parentNode === node) {\n return;\n }\n\n children.push(child);\n child.parentNode = node;\n}\n\nexport default Tree;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) {\n if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) {\n var root = seriesModel.getData().tree.root;\n var targetNode = payload.targetNode;\n\n if (typeof targetNode === 'string') {\n targetNode = root.getNodeById(targetNode);\n }\n\n if (targetNode && root.contains(targetNode)) {\n return {\n node: targetNode\n };\n }\n\n var targetNodeId = payload.targetNodeId;\n\n if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {\n return {\n node: targetNode\n };\n }\n }\n} // Not includes the given node at the last item.\n\nexport function getPathToRoot(node) {\n var path = [];\n\n while (node) {\n node = node.parentNode;\n node && path.push(node);\n }\n\n return path.reverse();\n}\nexport function aboveViewRoot(viewRoot, node) {\n var viewPath = getPathToRoot(viewRoot);\n return zrUtil.indexOf(viewPath, node) >= 0;\n} // From root to the input node (the input node will be included).\n\nexport function wrapTreePathInfo(node, seriesModel) {\n var treePathInfo = [];\n\n while (node) {\n var nodeDataIndex = node.dataIndex;\n treePathInfo.push({\n name: node.name,\n dataIndex: nodeDataIndex,\n value: seriesModel.getRawValue(nodeDataIndex)\n });\n node = node.parentNode;\n }\n\n treePathInfo.reverse();\n return treePathInfo;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\n\nvar TreeSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(TreeSeriesModel, _super);\n\n function TreeSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.hasSymbolVisual = true; // Do it self.\n\n _this.ignoreStyleOnData = true;\n return _this;\n }\n /**\n * Init a tree data structure from data in option series\n * @param option the object used to config echarts view\n * @return storage initial data\n */\n\n\n TreeSeriesModel.prototype.getInitialData = function (option) {\n //create an virtual root\n var root = {\n name: option.name,\n children: option.data\n };\n var leaves = option.leaves || {};\n var leavesModel = new Model(leaves, this, this.ecModel);\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n\n if (!(node && node.children.length && node.isExpand)) {\n model.parentModel = leavesModel;\n }\n\n return model;\n });\n }\n\n var treeDepth = 0;\n tree.eachNode('preorder', function (node) {\n if (node.depth > treeDepth) {\n treeDepth = node.depth;\n }\n });\n var expandAndCollapse = option.expandAndCollapse;\n var expandTreeDepth = expandAndCollapse && option.initialTreeDepth >= 0 ? option.initialTreeDepth : treeDepth;\n tree.root.eachNode('preorder', function (node) {\n var item = node.hostTree.data.getRawDataItem(node.dataIndex); // Add item.collapsed != null, because users can collapse node original in the series.data.\n\n node.isExpand = item && item.collapsed != null ? !item.collapsed : node.depth <= expandTreeDepth;\n });\n return tree.data;\n };\n /**\n * Make the configuration 'orient' backward compatibly, with 'horizontal = LR', 'vertical = TB'.\n * @returns {string} orient\n */\n\n\n TreeSeriesModel.prototype.getOrient = function () {\n var orient = this.get('orient');\n\n if (orient === 'horizontal') {\n orient = 'LR';\n } else if (orient === 'vertical') {\n orient = 'TB';\n }\n\n return orient;\n };\n\n TreeSeriesModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n TreeSeriesModel.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n TreeSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var tree = this.getData().tree;\n var realRoot = tree.root.children[0];\n var node = tree.getNodeByDataIndex(dataIndex);\n var value = node.getValue();\n var name = node.name;\n\n while (node && node !== realRoot) {\n name = node.parentNode.name + '.' + name;\n node = node.parentNode;\n }\n\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value,\n noValue: isNaN(value) || value == null\n });\n }; // Add tree path to tooltip param\n\n\n TreeSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treeAncestors = wrapTreePathInfo(node, this);\n return params;\n };\n\n TreeSeriesModel.type = 'series.tree'; // can support the position parameters 'left', 'top','right','bottom', 'width',\n // 'height' in the setOption() with 'merge' mode normal.\n\n TreeSeriesModel.layoutMode = 'box';\n TreeSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n // the position of the whole view\n left: '12%',\n top: '12%',\n right: '12%',\n bottom: '12%',\n // the layout of the tree, two value can be selected, 'orthogonal' or 'radial'\n layout: 'orthogonal',\n // value can be 'polyline'\n edgeShape: 'curve',\n edgeForkPosition: '50%',\n // true | false | 'move' | 'scale', see module:component/helper/RoamController.\n roam: false,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.4,\n // Default on center of graph\n center: null,\n zoom: 1,\n orient: 'LR',\n symbol: 'emptyCircle',\n symbolSize: 7,\n expandAndCollapse: true,\n initialTreeDepth: 2,\n lineStyle: {\n color: '#ccc',\n width: 1.5,\n curveness: 0.5\n },\n itemStyle: {\n color: 'lightsteelblue',\n // borderColor: '#c23531',\n borderWidth: 1.5\n },\n label: {\n show: true\n },\n animationEasing: 'linear',\n animationDuration: 700,\n animationDurationUpdate: 500\n };\n return TreeSeriesModel;\n}(SeriesModel);\n\nexport default TreeSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Traverse the tree from bottom to top and do something\n */\nfunction eachAfter(root, callback, separation) {\n var nodes = [root];\n var next = [];\n var node;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n next.push(node);\n\n if (node.isExpand) {\n var children = node.children;\n\n if (children.length) {\n for (var i = 0; i < children.length; i++) {\n nodes.push(children[i]);\n }\n }\n }\n }\n\n while (node = next.pop()) {\n // jshint ignore:line\n callback(node, separation);\n }\n}\n/**\n * Traverse the tree from top to bottom and do something\n */\n\n\nfunction eachBefore(root, callback) {\n var nodes = [root];\n var node;\n\n while (node = nodes.pop()) {\n // jshint ignore:line\n callback(node);\n\n if (node.isExpand) {\n var children = node.children;\n\n if (children.length) {\n for (var i = children.length - 1; i >= 0; i--) {\n nodes.push(children[i]);\n }\n }\n }\n }\n}\n\nexport { eachAfter, eachBefore };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { eachAfter, eachBefore } from './traversalHelper';\nimport { init, firstWalk, secondWalk, separation as sep, radialCoordinate, getViewRect } from './layoutHelper';\nexport default function treeLayout(ecModel, api) {\n ecModel.eachSeriesByType('tree', function (seriesModel) {\n commonLayout(seriesModel, api);\n });\n}\n\nfunction commonLayout(seriesModel, api) {\n var layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n var layout = seriesModel.get('layout');\n var width = 0;\n var height = 0;\n var separation = null;\n\n if (layout === 'radial') {\n width = 2 * Math.PI;\n height = Math.min(layoutInfo.height, layoutInfo.width) / 2;\n separation = sep(function (node1, node2) {\n return (node1.parentNode === node2.parentNode ? 1 : 2) / node1.depth;\n });\n } else {\n width = layoutInfo.width;\n height = layoutInfo.height;\n separation = sep();\n }\n\n var virtualRoot = seriesModel.getData().tree.root;\n var realRoot = virtualRoot.children[0];\n\n if (realRoot) {\n init(virtualRoot);\n eachAfter(realRoot, firstWalk, separation);\n virtualRoot.hierNode.modifier = -realRoot.hierNode.prelim;\n eachBefore(realRoot, secondWalk);\n var left_1 = realRoot;\n var right_1 = realRoot;\n var bottom_1 = realRoot;\n eachBefore(realRoot, function (node) {\n var x = node.getLayout().x;\n\n if (x < left_1.getLayout().x) {\n left_1 = node;\n }\n\n if (x > right_1.getLayout().x) {\n right_1 = node;\n }\n\n if (node.depth > bottom_1.depth) {\n bottom_1 = node;\n }\n });\n var delta = left_1 === right_1 ? 1 : separation(left_1, right_1) / 2;\n var tx_1 = delta - left_1.getLayout().x;\n var kx_1 = 0;\n var ky_1 = 0;\n var coorX_1 = 0;\n var coorY_1 = 0;\n\n if (layout === 'radial') {\n kx_1 = width / (right_1.getLayout().x + delta + tx_1); // here we use (node.depth - 1), bucause the real root's depth is 1\n\n ky_1 = height / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorX_1 = (node.getLayout().x + tx_1) * kx_1;\n coorY_1 = (node.depth - 1) * ky_1;\n var finalCoor = radialCoordinate(coorX_1, coorY_1);\n node.setLayout({\n x: finalCoor.x,\n y: finalCoor.y,\n rawX: coorX_1,\n rawY: coorY_1\n }, true);\n });\n } else {\n var orient_1 = seriesModel.getOrient();\n\n if (orient_1 === 'RL' || orient_1 === 'LR') {\n ky_1 = height / (right_1.getLayout().x + delta + tx_1);\n kx_1 = width / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorY_1 = (node.getLayout().x + tx_1) * ky_1;\n coorX_1 = orient_1 === 'LR' ? (node.depth - 1) * kx_1 : width - (node.depth - 1) * kx_1;\n node.setLayout({\n x: coorX_1,\n y: coorY_1\n }, true);\n });\n } else if (orient_1 === 'TB' || orient_1 === 'BT') {\n kx_1 = width / (right_1.getLayout().x + delta + tx_1);\n ky_1 = height / (bottom_1.depth - 1 || 1);\n eachBefore(realRoot, function (node) {\n coorX_1 = (node.getLayout().x + tx_1) * kx_1;\n coorY_1 = orient_1 === 'TB' ? (node.depth - 1) * ky_1 : height - (node.depth - 1) * ky_1;\n node.setLayout({\n x: coorX_1,\n y: coorY_1\n }, true);\n });\n }\n }\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nexport default function treeVisual(ecModel) {\n ecModel.eachSeriesByType('tree', function (seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n tree.eachNode(function (node) {\n var model = node.getModel(); // TODO Optimize\n\n var style = model.getModel('itemStyle').getItemStyle();\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nexport function installTreeAction(registers) {\n registers.registerAction({\n type: 'treeExpandAndCollapse',\n event: 'treeExpandAndCollapse',\n update: 'update'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'tree',\n query: payload\n }, function (seriesModel) {\n var dataIndex = payload.dataIndex;\n var tree = seriesModel.getData().tree;\n var node = tree.getNodeByDataIndex(dataIndex);\n node.isExpand = !node.isExpand;\n });\n });\n registers.registerAction({\n type: 'treeRoam',\n event: 'treeRoam',\n // Here we set 'none' instead of 'update', because roam action\n // just need to update the transform matrix without having to recalculate\n // the layout. So don't need to go through the whole update process, such\n // as 'dataPrcocess', 'coordSystemUpdate', 'layout' and so on.\n update: 'none'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'tree',\n query: payload\n }, function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var res = updateCenterAndZoom(coordSys, payload);\n seriesModel.setCenter && seriesModel.setCenter(res.center);\n seriesModel.setZoom && seriesModel.setZoom(res.zoom);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport TreeView from './TreeView';\nimport TreeSeriesModel from './TreeSeries';\nimport treeLayout from './treeLayout';\nimport treeVisual from './treeVisual';\nimport { installTreeAction } from './treeAction';\nexport function install(registers) {\n registers.registerChartView(TreeView);\n registers.registerSeriesModel(TreeSeriesModel);\n registers.registerLayout(treeLayout);\n registers.registerVisual(treeVisual);\n installTreeAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as helper from '../helper/treeHelper';\n\nvar noop = function () {};\n\nvar actionTypes = ['treemapZoomToNode', 'treemapRender', 'treemapMove'];\nexport function installTreemapAction(registers) {\n for (var i = 0; i < actionTypes.length; i++) {\n registers.registerAction({\n type: actionTypes[i],\n update: 'updateView'\n }, noop);\n }\n\n registers.registerAction({\n type: 'treemapRootToNode',\n update: 'updateView'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'treemap',\n query: payload\n }, handleRootToNode);\n\n function handleRootToNode(model, index) {\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, model);\n\n if (targetInfo) {\n var originViewRoot = model.getViewRoot();\n\n if (originViewRoot) {\n payload.direction = helper.aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';\n }\n\n model.resetViewRoot(targetInfo.node);\n }\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { getDecalFromPalette } from '../../model/mixin/palette';\nexport default function enableAriaDecalForTree(seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n var decalPaletteScope = {};\n tree.eachNode(function (node) {\n // Use decal of level 1 node\n var current = node;\n\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n var decal = getDecalFromPalette(seriesModel.ecModel, current.name || current.dataIndex + '', decalPaletteScope);\n node.setVisual('decal', decal);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport Model from '../../model/Model';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport { normalizeToArray } from '../../util/model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\nvar TreemapSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(TreemapSeriesModel, _super);\n\n function TreemapSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreemapSeriesModel.type;\n _this.preventUsingHoverLayer = true;\n return _this;\n }\n /**\n * @override\n */\n\n\n TreemapSeriesModel.prototype.getInitialData = function (option, ecModel) {\n // Create a virtual root.\n var root = {\n name: option.name,\n children: option.data\n };\n completeTreeValue(root);\n var levels = option.levels || []; // Used in \"visual priority\" in `treemapVisual.js`.\n // This way is a little tricky, must satisfy the precondition:\n // 1. There is no `treeNode.getModel('itemStyle.xxx')` used.\n // 2. The `Model.prototype.getModel()` will not use any clone-like way.\n\n var designatedVisualItemStyle = this.designatedVisualItemStyle = {};\n var designatedVisualModel = new Model({\n itemStyle: designatedVisualItemStyle\n }, this, ecModel);\n levels = option.levels = setDefault(levels, ecModel);\n var levelModels = zrUtil.map(levels || [], function (levelDefine) {\n return new Model(levelDefine, designatedVisualModel, ecModel);\n }, this); // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n var levelModel = node ? levelModels[node.depth] : null; // If no levelModel, we also need `designatedVisualModel`.\n\n model.parentModel = levelModel || designatedVisualModel;\n return model;\n });\n }\n\n return tree.data;\n };\n\n TreemapSeriesModel.prototype.optionUpdated = function () {\n this.resetViewRoot();\n };\n /**\n * @override\n * @param {number} dataIndex\n * @param {boolean} [mutipleSeries=false]\n */\n\n\n TreemapSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var name = data.getName(dataIndex);\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value\n });\n };\n /**\n * Add tree path to tooltip param\n *\n * @override\n * @param {number} dataIndex\n * @return {Object}\n */\n\n\n TreemapSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n return params;\n };\n /**\n * @public\n * @param {Object} layoutInfo {\n * x: containerGroup x\n * y: containerGroup y\n * width: containerGroup width\n * height: containerGroup height\n * }\n */\n\n\n TreemapSeriesModel.prototype.setLayoutInfo = function (layoutInfo) {\n /**\n * @readOnly\n * @type {Object}\n */\n this.layoutInfo = this.layoutInfo || {};\n zrUtil.extend(this.layoutInfo, layoutInfo);\n };\n /**\n * @param {string} id\n * @return {number} index\n */\n\n\n TreemapSeriesModel.prototype.mapIdToIndex = function (id) {\n // A feature is implemented:\n // index is monotone increasing with the sequence of\n // input id at the first time.\n // This feature can make sure that each data item and its\n // mapped color have the same index between data list and\n // color list at the beginning, which is useful for user\n // to adjust data-color mapping.\n\n /**\n * @private\n * @type {Object}\n */\n var idIndexMap = this._idIndexMap;\n\n if (!idIndexMap) {\n idIndexMap = this._idIndexMap = zrUtil.createHashMap();\n /**\n * @private\n * @type {number}\n */\n\n this._idIndexMapCount = 0;\n }\n\n var index = idIndexMap.get(id);\n\n if (index == null) {\n idIndexMap.set(id, index = this._idIndexMapCount++);\n }\n\n return index;\n };\n\n TreemapSeriesModel.prototype.getViewRoot = function () {\n return this._viewRoot;\n };\n\n TreemapSeriesModel.prototype.resetViewRoot = function (viewRoot) {\n viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;\n var root = this.getRawData().tree.root;\n\n if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {\n this._viewRoot = root;\n }\n };\n\n TreemapSeriesModel.prototype.enableAriaDecal = function () {\n enableAriaDecalForTree(this);\n };\n\n TreemapSeriesModel.type = 'series.treemap';\n TreemapSeriesModel.layoutMode = 'box';\n TreemapSeriesModel.defaultOption = {\n // Disable progressive rendering\n progressive: 0,\n // size: ['80%', '80%'], // deprecated, compatible with ec2.\n left: 'center',\n top: 'middle',\n width: '80%',\n height: '80%',\n sort: true,\n clipWindow: 'origin',\n squareRatio: 0.5 * (1 + Math.sqrt(5)),\n leafDepth: null,\n drillDownIcon: '▶',\n // to align specialized icon. ▷▶❒❐▼✚\n zoomToNodeRatio: 0.32 * 0.32,\n roam: true,\n nodeClick: 'zoomToNode',\n animation: true,\n animationDurationUpdate: 900,\n animationEasing: 'quinticInOut',\n breadcrumb: {\n show: true,\n height: 22,\n left: 'center',\n top: 'bottom',\n // right\n // bottom\n emptyItemWidth: 25,\n itemStyle: {\n color: 'rgba(0,0,0,0.7)',\n textStyle: {\n color: '#fff'\n }\n }\n },\n label: {\n show: true,\n // Do not use textDistance, for ellipsis rect just the same as treemap node rect.\n distance: 0,\n padding: 5,\n position: 'inside',\n // formatter: null,\n color: '#fff',\n overflow: 'truncate' // align\n // verticalAlign\n\n },\n upperLabel: {\n show: false,\n position: [0, '50%'],\n height: 20,\n // formatter: null,\n // color: '#fff',\n overflow: 'truncate',\n // align: null,\n verticalAlign: 'middle'\n },\n itemStyle: {\n color: null,\n colorAlpha: null,\n colorSaturation: null,\n borderWidth: 0,\n gapWidth: 0,\n borderColor: '#fff',\n borderColorSaturation: null // If specified, borderColor will be ineffective, and the\n // border color is evaluated by color of current node and\n // borderColorSaturation.\n\n },\n emphasis: {\n upperLabel: {\n show: true,\n position: [0, '50%'],\n ellipsis: true,\n verticalAlign: 'middle'\n }\n },\n visualDimension: 0,\n visualMin: null,\n visualMax: null,\n color: [],\n // level[n].color (if necessary).\n // + Specify color list of each level. level[0].color would be global\n // color list if not specified. (see method `setDefault`).\n // + But set as a empty array to forbid fetch color from global palette\n // when using nodeModel.get('color'), otherwise nodes on deep level\n // will always has color palette set and are not able to inherit color\n // from parent node.\n // + TreemapSeries.color can not be set as 'none', otherwise effect\n // legend color fetching (see seriesColor.js).\n colorAlpha: null,\n colorSaturation: null,\n colorMappingBy: 'index',\n visibleMin: 10,\n // be rendered. Only works when sort is 'asc' or 'desc'.\n childrenVisibleMin: null,\n // grandchildren will not show.\n // Why grandchildren? If not grandchildren but children,\n // some siblings show children and some not,\n // the appearance may be mess and not consistent,\n levels: [] // Each item: {\n // visibleMin, itemStyle, visualDimension, label\n // }\n // data: {\n // value: [],\n // children: [],\n // link: 'http://xxx.xxx.xxx',\n // target: 'blank' or 'self'\n // }\n\n };\n return TreemapSeriesModel;\n}(SeriesModel);\n/**\n * @param {Object} dataNode\n */\n\n\nfunction completeTreeValue(dataNode) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n var sum = 0;\n zrUtil.each(dataNode.children, function (child) {\n completeTreeValue(child);\n var childValue = child.value;\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue;\n });\n var thisValue = dataNode.value;\n\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n } // Value should not less than 0.\n\n\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;\n}\n/**\n * set default to level configuration\n */\n\n\nfunction setDefault(levels, ecModel) {\n var globalColorList = normalizeToArray(ecModel.get('color'));\n var globalDecalList = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n var hasDecalDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n var modelDecal = model.get('decal');\n\n if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n\n if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') {\n hasDecalDefine = true;\n }\n });\n var level0 = levels[0] || (levels[0] = {});\n\n if (!hasColorDefine) {\n level0.color = globalColorList.slice();\n }\n\n if (!hasDecalDefine && globalDecalList) {\n level0.decal = globalDecalList.slice();\n }\n\n return levels;\n}\n\nexport default TreemapSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport * as layout from '../../util/layout';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport { curry, defaults } from 'zrender/lib/core/util';\nimport { convertOptionIdName } from '../../util/model';\nimport { Z2_EMPHASIS_LIFT } from '../../util/states';\nvar TEXT_PADDING = 8;\nvar ITEM_GAP = 8;\nvar ARRAY_LENGTH = 5;\n\nvar Breadcrumb =\n/** @class */\nfunction () {\n function Breadcrumb(containerGroup) {\n this.group = new graphic.Group();\n containerGroup.add(this.group);\n }\n\n Breadcrumb.prototype.render = function (seriesModel, api, targetNode, onSelect) {\n var model = seriesModel.getModel('breadcrumb');\n var thisGroup = this.group;\n thisGroup.removeAll();\n\n if (!model.get('show') || !targetNode) {\n return;\n }\n\n var normalStyleModel = model.getModel('itemStyle'); // let emphasisStyleModel = model.getModel('emphasis.itemStyle');\n\n var textStyleModel = normalStyleModel.getModel('textStyle');\n var layoutParam = {\n pos: {\n left: model.get('left'),\n right: model.get('right'),\n top: model.get('top'),\n bottom: model.get('bottom')\n },\n box: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n emptyItemWidth: model.get('emptyItemWidth'),\n totalWidth: 0,\n renderList: []\n };\n\n this._prepare(targetNode, layoutParam, textStyleModel);\n\n this._renderContent(seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect);\n\n layout.positionElement(thisGroup, layoutParam.pos, layoutParam.box);\n };\n /**\n * Prepare render list and total width\n * @private\n */\n\n\n Breadcrumb.prototype._prepare = function (targetNode, layoutParam, textStyleModel) {\n for (var node = targetNode; node; node = node.parentNode) {\n var text = convertOptionIdName(node.getModel().get('name'), '');\n var textRect = textStyleModel.getTextRect(text);\n var itemWidth = Math.max(textRect.width + TEXT_PADDING * 2, layoutParam.emptyItemWidth);\n layoutParam.totalWidth += itemWidth + ITEM_GAP;\n layoutParam.renderList.push({\n node: node,\n text: text,\n width: itemWidth\n });\n }\n };\n /**\n * @private\n */\n\n\n Breadcrumb.prototype._renderContent = function (seriesModel, layoutParam, normalStyleModel, textStyleModel, onSelect) {\n // Start rendering.\n var lastX = 0;\n var emptyItemWidth = layoutParam.emptyItemWidth;\n var height = seriesModel.get(['breadcrumb', 'height']);\n var availableSize = layout.getAvailableSize(layoutParam.pos, layoutParam.box);\n var totalWidth = layoutParam.totalWidth;\n var renderList = layoutParam.renderList;\n\n for (var i = renderList.length - 1; i >= 0; i--) {\n var item = renderList[i];\n var itemNode = item.node;\n var itemWidth = item.width;\n var text = item.text; // Hdie text and shorten width if necessary.\n\n if (totalWidth > availableSize.width) {\n totalWidth -= itemWidth - emptyItemWidth;\n itemWidth = emptyItemWidth;\n text = null;\n }\n\n var el = new graphic.Polygon({\n shape: {\n points: makeItemPoints(lastX, 0, itemWidth, height, i === renderList.length - 1, i === 0)\n },\n style: defaults(normalStyleModel.getItemStyle(), {\n lineJoin: 'bevel'\n }),\n textContent: new graphic.Text({\n style: {\n text: text,\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }\n }),\n textConfig: {\n position: 'inside'\n },\n z2: Z2_EMPHASIS_LIFT * 1e4,\n onclick: curry(onSelect, itemNode)\n });\n el.disableLabelAnimation = true;\n this.group.add(el);\n packEventData(el, seriesModel, itemNode);\n lastX += itemWidth + ITEM_GAP;\n }\n };\n\n Breadcrumb.prototype.remove = function () {\n this.group.removeAll();\n };\n\n return Breadcrumb;\n}();\n\nfunction makeItemPoints(x, y, itemWidth, itemHeight, head, tail) {\n var points = [[head ? x : x - ARRAY_LENGTH, y], [x + itemWidth, y], [x + itemWidth, y + itemHeight], [head ? x : x - ARRAY_LENGTH, y + itemHeight]];\n !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);\n !head && points.push([x, y + itemHeight / 2]);\n return points;\n} // Package custom mouse event.\n\n\nfunction packEventData(el, seriesModel, itemNode) {\n getECData(el).eventData = {\n componentType: 'series',\n componentSubType: 'treemap',\n componentIndex: seriesModel.componentIndex,\n seriesIndex: seriesModel.componentIndex,\n seriesName: seriesModel.name,\n seriesType: 'treemap',\n selfType: 'breadcrumb',\n nodeData: {\n dataIndex: itemNode && itemNode.dataIndex,\n name: itemNode && itemNode.name\n },\n treePathInfo: itemNode && wrapTreePathInfo(itemNode, seriesModel)\n };\n}\n\nexport default Breadcrumb;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Animate multiple elements with a single done-callback.\n *\n * @example\n * animation\n * .createWrap()\n * .add(el1, {x: 10, y: 10})\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\n * .done(function () { // done })\n * .start('cubicOut');\n */\nvar AnimationWrap =\n/** @class */\nfunction () {\n function AnimationWrap() {\n this._storage = [];\n this._elExistsMap = {};\n }\n /**\n * Caution: a el can only be added once, otherwise 'done'\n * might not be called. This method checks this (by el.id),\n * suppresses adding and returns false when existing el found.\n *\n * @return Whether adding succeeded.\n */\n\n\n AnimationWrap.prototype.add = function (el, target, duration, delay, easing) {\n if (this._elExistsMap[el.id]) {\n return false;\n }\n\n this._elExistsMap[el.id] = true;\n\n this._storage.push({\n el: el,\n target: target,\n duration: duration,\n delay: delay,\n easing: easing\n });\n\n return true;\n };\n /**\n * Only execute when animation done/aborted.\n */\n\n\n AnimationWrap.prototype.finished = function (callback) {\n this._finishedCallback = callback;\n return this;\n };\n /**\n * Will stop exist animation firstly.\n */\n\n\n AnimationWrap.prototype.start = function () {\n var _this = this;\n\n var count = this._storage.length;\n\n var checkTerminate = function () {\n count--;\n\n if (count <= 0) {\n // Guard.\n _this._storage.length = 0;\n _this._elExistsMap = {};\n _this._finishedCallback && _this._finishedCallback();\n }\n };\n\n for (var i = 0, len = this._storage.length; i < len; i++) {\n var item = this._storage[i];\n item.el.animateTo(item.target, {\n duration: item.duration,\n delay: item.delay,\n easing: item.easing,\n setToFinal: true,\n done: checkTerminate,\n aborted: checkTerminate\n });\n }\n\n return this;\n };\n\n return AnimationWrap;\n}();\n\nexport function createWrap() {\n return new AnimationWrap();\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { bind, each, indexOf, curry, extend, normalizeCssArray, isFunction } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { isHighDownDispatcher, setAsHighDownDispatcher, setDefaultStateProxy, enableHoverFocus, Z2_EMPHASIS_LIFT } from '../../util/states';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as helper from '../helper/treeHelper';\nimport Breadcrumb from './Breadcrumb';\nimport RoamController from '../../component/helper/RoamController';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as animationUtil from '../../util/animation';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport ChartView from '../../view/Chart';\nimport Displayable from 'zrender/lib/graphic/Displayable';\nimport { makeInner, convertOptionIdName } from '../../util/model';\nimport { windowOpen } from '../../util/format';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nvar Group = graphic.Group;\nvar Rect = graphic.Rect;\nvar DRAG_THRESHOLD = 3;\nvar PATH_LABEL_NOAMAL = 'label';\nvar PATH_UPPERLABEL_NORMAL = 'upperLabel'; // Should larger than emphasis states lift z\n\nvar Z2_BASE = Z2_EMPHASIS_LIFT * 10; // Should bigger than every z2.\n\nvar Z2_BG = Z2_EMPHASIS_LIFT * 2;\nvar Z2_CONTENT = Z2_EMPHASIS_LIFT * 3;\nvar getStateItemStyle = makeStyleMapper([['fill', 'color'], // `borderColor` and `borderWidth` has been occupied,\n// so use `stroke` to indicate the stroke of the rect.\n['stroke', 'strokeColor'], ['lineWidth', 'strokeWidth'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n// So do not transfer decal directly.\n]);\n\nvar getItemStyleNormal = function (model) {\n // Normal style props should include emphasis style props.\n var itemStyle = getStateItemStyle(model); // Clear styles set by emphasis.\n\n itemStyle.stroke = itemStyle.fill = itemStyle.lineWidth = null;\n return itemStyle;\n};\n\nvar inner = makeInner();\n\nvar TreemapView =\n/** @class */\nfunction (_super) {\n __extends(TreemapView, _super);\n\n function TreemapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TreemapView.type;\n _this._state = 'ready';\n _this._storage = createStorage();\n return _this;\n }\n /**\n * @override\n */\n\n\n TreemapView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var models = ecModel.findComponents({\n mainType: 'series',\n subType: 'treemap',\n query: payload\n });\n\n if (indexOf(models, seriesModel) < 0) {\n return;\n }\n\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, seriesModel);\n var payloadType = payload && payload.type;\n var layoutInfo = seriesModel.layoutInfo;\n var isInit = !this._oldTree;\n var thisStorage = this._storage; // Mark new root when action is treemapRootToNode.\n\n var reRoot = payloadType === 'treemapRootToNode' && targetInfo && thisStorage ? {\n rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],\n direction: payload.direction\n } : null;\n\n var containerGroup = this._giveContainerGroup(layoutInfo);\n\n var renderResult = this._doRender(containerGroup, seriesModel, reRoot);\n\n !isInit && (!payloadType || payloadType === 'treemapZoomToNode' || payloadType === 'treemapRootToNode') ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot) : renderResult.renderFinally();\n\n this._resetController(api);\n\n this._renderBreadcrumb(seriesModel, api, targetInfo);\n };\n\n TreemapView.prototype._giveContainerGroup = function (layoutInfo) {\n var containerGroup = this._containerGroup;\n\n if (!containerGroup) {\n // FIXME\n // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。\n containerGroup = this._containerGroup = new Group();\n\n this._initEvents(containerGroup);\n\n this.group.add(containerGroup);\n }\n\n containerGroup.x = layoutInfo.x;\n containerGroup.y = layoutInfo.y;\n return containerGroup;\n };\n\n TreemapView.prototype._doRender = function (containerGroup, seriesModel, reRoot) {\n var thisTree = seriesModel.getData().tree;\n var oldTree = this._oldTree; // Clear last shape records.\n\n var lastsForAnimation = createStorage();\n var thisStorage = createStorage();\n var oldStorage = this._storage;\n var willInvisibleEls = [];\n\n function doRenderNode(thisNode, oldNode, parentGroup, depth) {\n return renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth);\n } // Notice: when thisTree and oldTree are the same tree (see list.cloneShallow),\n // the oldTree is actually losted, so we can not find all of the old graphic\n // elements from tree. So we use this stragegy: make element storage, move\n // from old storage to new storage, clear old storage.\n\n\n dualTravel(thisTree.root ? [thisTree.root] : [], oldTree && oldTree.root ? [oldTree.root] : [], containerGroup, thisTree === oldTree || !oldTree, 0); // Process all removing.\n\n var willDeleteEls = clearStorage(oldStorage);\n this._oldTree = thisTree;\n this._storage = thisStorage;\n return {\n lastsForAnimation: lastsForAnimation,\n willDeleteEls: willDeleteEls,\n renderFinally: renderFinally\n };\n\n function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, depth) {\n // When 'render' is triggered by action,\n // 'this' and 'old' may be the same tree,\n // we use rawIndex in that case.\n if (sameTree) {\n oldViewChildren = thisViewChildren;\n each(thisViewChildren, function (child, index) {\n !child.isRemoved() && processNode(index, index);\n });\n } // Diff hierarchically (diff only in each subtree, but not whole).\n // because, consistency of view is important.\n else {\n new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey).add(processNode).update(processNode).remove(curry(processNode, null)).execute();\n }\n\n function getKey(node) {\n // Identify by name or raw index.\n return node.getId();\n }\n\n function processNode(newIndex, oldIndex) {\n var thisNode = newIndex != null ? thisViewChildren[newIndex] : null;\n var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;\n var group = doRenderNode(thisNode, oldNode, parentGroup, depth);\n group && dualTravel(thisNode && thisNode.viewChildren || [], oldNode && oldNode.viewChildren || [], group, sameTree, depth + 1);\n }\n }\n\n function clearStorage(storage) {\n var willDeleteEls = createStorage();\n storage && each(storage, function (store, storageName) {\n var delEls = willDeleteEls[storageName];\n each(store, function (el) {\n el && (delEls.push(el), inner(el).willDelete = true);\n });\n });\n return willDeleteEls;\n }\n\n function renderFinally() {\n each(willDeleteEls, function (els) {\n each(els, function (el) {\n el.parent && el.parent.remove(el);\n });\n });\n each(willInvisibleEls, function (el) {\n el.invisible = true; // Setting invisible is for optimizing, so no need to set dirty,\n // just mark as invisible.\n\n el.dirty();\n });\n }\n };\n\n TreemapView.prototype._doAnimation = function (containerGroup, renderResult, seriesModel, reRoot) {\n if (!seriesModel.get('animation')) {\n return;\n }\n\n var durationOption = seriesModel.get('animationDurationUpdate');\n var easingOption = seriesModel.get('animationEasing'); // TODO: do not support function until necessary.\n\n var duration = (isFunction(durationOption) ? 0 : durationOption) || 0;\n var easing = (isFunction(easingOption) ? null : easingOption) || 'cubicOut';\n var animationWrap = animationUtil.createWrap(); // Make delete animations.\n\n each(renderResult.willDeleteEls, function (store, storageName) {\n each(store, function (el, rawIndex) {\n if (el.invisible) {\n return;\n }\n\n var parent = el.parent; // Always has parent, and parent is nodeGroup.\n\n var target;\n var innerStore = inner(parent);\n\n if (reRoot && reRoot.direction === 'drillDown') {\n target = parent === reRoot.rootNodeGroup // This is the content element of view root.\n // Only `content` will enter this branch, because\n // `background` and `nodeGroup` will not be deleted.\n ? {\n shape: {\n x: 0,\n y: 0,\n width: innerStore.nodeWidth,\n height: innerStore.nodeHeight\n },\n style: {\n opacity: 0\n }\n } // Others.\n : {\n style: {\n opacity: 0\n }\n };\n } else {\n var targetX = 0;\n var targetY = 0;\n\n if (!innerStore.willDelete) {\n // Let node animate to right-bottom corner, cooperating with fadeout,\n // which is appropriate for user understanding.\n // Divided by 2 for reRoot rolling up effect.\n targetX = innerStore.nodeWidth / 2;\n targetY = innerStore.nodeHeight / 2;\n }\n\n target = storageName === 'nodeGroup' ? {\n x: targetX,\n y: targetY,\n style: {\n opacity: 0\n }\n } : {\n shape: {\n x: targetX,\n y: targetY,\n width: 0,\n height: 0\n },\n style: {\n opacity: 0\n }\n };\n } // TODO: do not support delay until necessary.\n\n\n target && animationWrap.add(el, target, duration, 0, easing);\n });\n }); // Make other animations\n\n each(this._storage, function (store, storageName) {\n each(store, function (el, rawIndex) {\n var last = renderResult.lastsForAnimation[storageName][rawIndex];\n var target = {};\n\n if (!last) {\n return;\n }\n\n if (el instanceof graphic.Group) {\n if (last.oldX != null) {\n target.x = el.x;\n target.y = el.y;\n el.x = last.oldX;\n el.y = last.oldY;\n }\n } else {\n if (last.oldShape) {\n target.shape = extend({}, el.shape);\n el.setShape(last.oldShape);\n }\n\n if (last.fadein) {\n el.setStyle('opacity', 0);\n target.style = {\n opacity: 1\n };\n } // When animation is stopped for succedent animation starting,\n // el.style.opacity might not be 1\n else if (el.style.opacity !== 1) {\n target.style = {\n opacity: 1\n };\n }\n }\n\n animationWrap.add(el, target, duration, 0, easing);\n });\n }, this);\n this._state = 'animating';\n animationWrap.finished(bind(function () {\n this._state = 'ready';\n renderResult.renderFinally();\n }, this)).start();\n };\n\n TreemapView.prototype._resetController = function (api) {\n var controller = this._controller; // Init controller.\n\n if (!controller) {\n controller = this._controller = new RoamController(api.getZr());\n controller.enable(this.seriesModel.get('roam'));\n controller.on('pan', bind(this._onPan, this));\n controller.on('zoom', bind(this._onZoom, this));\n }\n\n var rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());\n controller.setPointerChecker(function (e, x, y) {\n return rect.contain(x, y);\n });\n };\n\n TreemapView.prototype._clearController = function () {\n var controller = this._controller;\n\n if (controller) {\n controller.dispose();\n controller = null;\n }\n };\n\n TreemapView.prototype._onPan = function (e) {\n if (this._state !== 'animating' && (Math.abs(e.dx) > DRAG_THRESHOLD || Math.abs(e.dy) > DRAG_THRESHOLD)) {\n // These param must not be cached.\n var root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n var rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n this.api.dispatchAction({\n type: 'treemapMove',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rootLayout.x + e.dx,\n y: rootLayout.y + e.dy,\n width: rootLayout.width,\n height: rootLayout.height\n }\n });\n }\n };\n\n TreemapView.prototype._onZoom = function (e) {\n var mouseX = e.originX;\n var mouseY = e.originY;\n\n if (this._state !== 'animating') {\n // These param must not be cached.\n var root = this.seriesModel.getData().tree.root;\n\n if (!root) {\n return;\n }\n\n var rootLayout = root.getLayout();\n\n if (!rootLayout) {\n return;\n }\n\n var rect = new BoundingRect(rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height);\n var layoutInfo = this.seriesModel.layoutInfo; // Transform mouse coord from global to containerGroup.\n\n mouseX -= layoutInfo.x;\n mouseY -= layoutInfo.y; // Scale root bounding rect.\n\n var m = matrix.create();\n matrix.translate(m, m, [-mouseX, -mouseY]);\n matrix.scale(m, m, [e.scale, e.scale]);\n matrix.translate(m, m, [mouseX, mouseY]);\n rect.applyTransform(m);\n this.api.dispatchAction({\n type: 'treemapRender',\n from: this.uid,\n seriesId: this.seriesModel.id,\n rootRect: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n }\n };\n\n TreemapView.prototype._initEvents = function (containerGroup) {\n var _this = this;\n\n containerGroup.on('click', function (e) {\n if (_this._state !== 'ready') {\n return;\n }\n\n var nodeClick = _this.seriesModel.get('nodeClick', true);\n\n if (!nodeClick) {\n return;\n }\n\n var targetInfo = _this.findTarget(e.offsetX, e.offsetY);\n\n if (!targetInfo) {\n return;\n }\n\n var node = targetInfo.node;\n\n if (node.getLayout().isLeafRoot) {\n _this._rootToNode(targetInfo);\n } else {\n if (nodeClick === 'zoomToNode') {\n _this._zoomToNode(targetInfo);\n } else if (nodeClick === 'link') {\n var itemModel = node.hostTree.data.getItemModel(node.dataIndex);\n var link = itemModel.get('link', true);\n var linkTarget = itemModel.get('target', true) || 'blank';\n link && windowOpen(link, linkTarget);\n }\n }\n }, this);\n };\n\n TreemapView.prototype._renderBreadcrumb = function (seriesModel, api, targetInfo) {\n var _this = this;\n\n if (!targetInfo) {\n targetInfo = seriesModel.get('leafDepth', true) != null ? {\n node: seriesModel.getViewRoot()\n } // FIXME\n // better way?\n // Find breadcrumb tail on center of containerGroup.\n : this.findTarget(api.getWidth() / 2, api.getHeight() / 2);\n\n if (!targetInfo) {\n targetInfo = {\n node: seriesModel.getData().tree.root\n };\n }\n }\n\n (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group))).render(seriesModel, api, targetInfo.node, function (node) {\n if (_this._state !== 'animating') {\n helper.aboveViewRoot(seriesModel.getViewRoot(), node) ? _this._rootToNode({\n node: node\n }) : _this._zoomToNode({\n node: node\n });\n }\n });\n };\n /**\n * @override\n */\n\n\n TreemapView.prototype.remove = function () {\n this._clearController();\n\n this._containerGroup && this._containerGroup.removeAll();\n this._storage = createStorage();\n this._state = 'ready';\n this._breadcrumb && this._breadcrumb.remove();\n };\n\n TreemapView.prototype.dispose = function () {\n this._clearController();\n };\n\n TreemapView.prototype._zoomToNode = function (targetInfo) {\n this.api.dispatchAction({\n type: 'treemapZoomToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n };\n\n TreemapView.prototype._rootToNode = function (targetInfo) {\n this.api.dispatchAction({\n type: 'treemapRootToNode',\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: targetInfo.node\n });\n };\n /**\n * @public\n * @param {number} x Global coord x.\n * @param {number} y Global coord y.\n * @return {Object} info If not found, return undefined;\n * @return {number} info.node Target node.\n * @return {number} info.offsetX x refer to target node.\n * @return {number} info.offsetY y refer to target node.\n */\n\n\n TreemapView.prototype.findTarget = function (x, y) {\n var targetInfo;\n var viewRoot = this.seriesModel.getViewRoot();\n viewRoot.eachNode({\n attr: 'viewChildren',\n order: 'preorder'\n }, function (node) {\n var bgEl = this._storage.background[node.getRawIndex()]; // If invisible, there might be no element.\n\n\n if (bgEl) {\n var point = bgEl.transformCoordToLocal(x, y);\n var shape = bgEl.shape; // For performance consideration, dont use 'getBoundingRect'.\n\n if (shape.x <= point[0] && point[0] <= shape.x + shape.width && shape.y <= point[1] && point[1] <= shape.y + shape.height) {\n targetInfo = {\n node: node,\n offsetX: point[0],\n offsetY: point[1]\n };\n } else {\n return false; // Suppress visit subtree.\n }\n }\n }, this);\n return targetInfo;\n };\n\n TreemapView.type = 'treemap';\n return TreemapView;\n}(ChartView);\n/**\n * @inner\n */\n\n\nfunction createStorage() {\n return {\n nodeGroup: [],\n background: [],\n content: []\n };\n}\n/**\n * @inner\n * @return Return undefined means do not travel further.\n */\n\n\nfunction renderNode(seriesModel, thisStorage, oldStorage, reRoot, lastsForAnimation, willInvisibleEls, thisNode, oldNode, parentGroup, depth) {\n // Whether under viewRoot.\n if (!thisNode) {\n // Deleting nodes will be performed finally. This method just find\n // element from old storage, or create new element, set them to new\n // storage, and set styles.\n return;\n } // -------------------------------------------------------------------\n // Start of closure variables available in \"Procedures in renderNode\".\n\n\n var thisLayout = thisNode.getLayout();\n var data = seriesModel.getData();\n var nodeModel = thisNode.getModel(); // Only for enabling highlight/downplay. Clear firstly.\n // Because some node will not be rendered.\n\n data.setItemGraphicEl(thisNode.dataIndex, null);\n\n if (!thisLayout || !thisLayout.isInView) {\n return;\n }\n\n var thisWidth = thisLayout.width;\n var thisHeight = thisLayout.height;\n var borderWidth = thisLayout.borderWidth;\n var thisInvisible = thisLayout.invisible;\n var thisRawIndex = thisNode.getRawIndex();\n var oldRawIndex = oldNode && oldNode.getRawIndex();\n var thisViewChildren = thisNode.viewChildren;\n var upperHeight = thisLayout.upperHeight;\n var isParent = thisViewChildren && thisViewChildren.length;\n var itemStyleNormalModel = nodeModel.getModel('itemStyle');\n var itemStyleEmphasisModel = nodeModel.getModel(['emphasis', 'itemStyle']);\n var itemStyleBlurModel = nodeModel.getModel(['blur', 'itemStyle']);\n var itemStyleSelectModel = nodeModel.getModel(['select', 'itemStyle']);\n var borderRadius = itemStyleNormalModel.get('borderRadius') || 0; // End of closure ariables available in \"Procedures in renderNode\".\n // -----------------------------------------------------------------\n // Node group\n\n var group = giveGraphic('nodeGroup', Group);\n\n if (!group) {\n return;\n }\n\n parentGroup.add(group); // x,y are not set when el is above view root.\n\n group.x = thisLayout.x || 0;\n group.y = thisLayout.y || 0;\n group.markRedraw();\n inner(group).nodeWidth = thisWidth;\n inner(group).nodeHeight = thisHeight;\n\n if (thisLayout.isAboveViewRoot) {\n return group;\n } // Background\n\n\n var bg = giveGraphic('background', Rect, depth, Z2_BG);\n bg && renderBackground(group, bg, isParent && thisLayout.upperLabelHeight);\n var focus = nodeModel.get(['emphasis', 'focus']);\n var blurScope = nodeModel.get(['emphasis', 'blurScope']);\n var focusOrIndices = focus === 'ancestor' ? thisNode.getAncestorsIndices() : focus === 'descendant' ? thisNode.getDescendantIndices() : focus; // No children, render content.\n\n if (isParent) {\n // Because of the implementation about \"traverse\" in graphic hover style, we\n // can not set hover listener on the \"group\" of non-leaf node. Otherwise the\n // hover event from the descendents will be listenered.\n if (isHighDownDispatcher(group)) {\n setAsHighDownDispatcher(group, false);\n }\n\n if (bg) {\n setAsHighDownDispatcher(bg, true); // Only for enabling highlight/downplay.\n\n data.setItemGraphicEl(thisNode.dataIndex, bg);\n enableHoverFocus(bg, focusOrIndices, blurScope);\n }\n } else {\n var content = giveGraphic('content', Rect, depth, Z2_CONTENT);\n content && renderContent(group, content);\n\n if (bg && isHighDownDispatcher(bg)) {\n setAsHighDownDispatcher(bg, false);\n }\n\n setAsHighDownDispatcher(group, true); // Only for enabling highlight/downplay.\n\n data.setItemGraphicEl(thisNode.dataIndex, group);\n enableHoverFocus(group, focusOrIndices, blurScope);\n }\n\n return group; // ----------------------------\n // | Procedures in renderNode |\n // ----------------------------\n\n function renderBackground(group, bg, useUpperLabel) {\n var ecData = getECData(bg); // For tooltip.\n\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n bg.setShape({\n x: 0,\n y: 0,\n width: thisWidth,\n height: thisHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(bg);\n } else {\n bg.invisible = false;\n var style = thisNode.getVisual('style');\n var visualBorderColor = style.stroke;\n var normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualBorderColor;\n var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n emphasisStyle.fill = itemStyleEmphasisModel.get('borderColor');\n var blurStyle = getStateItemStyle(itemStyleBlurModel);\n blurStyle.fill = itemStyleBlurModel.get('borderColor');\n var selectStyle = getStateItemStyle(itemStyleSelectModel);\n selectStyle.fill = itemStyleSelectModel.get('borderColor');\n\n if (useUpperLabel) {\n var upperLabelWidth = thisWidth - 2 * borderWidth;\n prepareText( // PENDING: convert ZRColor to ColorString for text.\n bg, visualBorderColor, style.opacity, {\n x: borderWidth,\n y: 0,\n width: upperLabelWidth,\n height: upperHeight\n });\n } // For old bg.\n else {\n bg.removeTextContent();\n }\n\n bg.setStyle(normalStyle);\n bg.ensureState('emphasis').style = emphasisStyle;\n bg.ensureState('blur').style = blurStyle;\n bg.ensureState('select').style = selectStyle;\n setDefaultStateProxy(bg);\n }\n\n group.add(bg);\n }\n\n function renderContent(group, content) {\n var ecData = getECData(content); // For tooltip.\n\n ecData.dataIndex = thisNode.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);\n var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);\n content.culling = true;\n content.setShape({\n x: borderWidth,\n y: borderWidth,\n width: contentWidth,\n height: contentHeight,\n r: borderRadius\n });\n\n if (thisInvisible) {\n // If invisible, do not set visual, otherwise the element will\n // change immediately before animation. We think it is OK to\n // remain its origin color when moving out of the view window.\n processInvisible(content);\n } else {\n content.invisible = false;\n var nodeStyle = thisNode.getVisual('style');\n var visualColor = nodeStyle.fill;\n var normalStyle = getItemStyleNormal(itemStyleNormalModel);\n normalStyle.fill = visualColor;\n normalStyle.decal = nodeStyle.decal;\n var emphasisStyle = getStateItemStyle(itemStyleEmphasisModel);\n var blurStyle = getStateItemStyle(itemStyleBlurModel);\n var selectStyle = getStateItemStyle(itemStyleSelectModel); // PENDING: convert ZRColor to ColorString for text.\n\n prepareText(content, visualColor, nodeStyle.opacity, null);\n content.setStyle(normalStyle);\n content.ensureState('emphasis').style = emphasisStyle;\n content.ensureState('blur').style = blurStyle;\n content.ensureState('select').style = selectStyle;\n setDefaultStateProxy(content);\n }\n\n group.add(content);\n }\n\n function processInvisible(element) {\n // Delay invisible setting utill animation finished,\n // avoid element vanish suddenly before animation.\n !element.invisible && willInvisibleEls.push(element);\n }\n\n function prepareText(rectEl, visualColor, visualOpacity, // Can be null/undefined\n upperLabelRect) {\n var normalLabelModel = nodeModel.getModel(upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL);\n var defaultText = convertOptionIdName(nodeModel.get('name'), null);\n var isShow = normalLabelModel.getShallow('show');\n setLabelStyle(rectEl, getLabelStatesModels(nodeModel, upperLabelRect ? PATH_UPPERLABEL_NORMAL : PATH_LABEL_NOAMAL), {\n defaultText: isShow ? defaultText : null,\n inheritColor: visualColor,\n defaultOpacity: visualOpacity,\n labelFetcher: seriesModel,\n labelDataIndex: thisNode.dataIndex\n });\n var textEl = rectEl.getTextContent();\n var textStyle = textEl.style;\n var textPadding = normalizeCssArray(textStyle.padding || 0);\n\n if (upperLabelRect) {\n rectEl.setTextConfig({\n layoutRect: upperLabelRect\n });\n textEl.disableLabelLayout = true;\n }\n\n textEl.beforeUpdate = function () {\n var width = Math.max((upperLabelRect ? upperLabelRect.width : rectEl.shape.width) - textPadding[1] - textPadding[3], 0);\n var height = Math.max((upperLabelRect ? upperLabelRect.height : rectEl.shape.height) - textPadding[0] - textPadding[2], 0);\n\n if (textStyle.width !== width || textStyle.height !== height) {\n textEl.setStyle({\n width: width,\n height: height\n });\n }\n };\n\n textStyle.truncateMinChar = 2;\n textStyle.lineOverflow = 'truncate';\n addDrillDownIcon(textStyle, upperLabelRect, thisLayout);\n var textEmphasisState = textEl.getState('emphasis');\n addDrillDownIcon(textEmphasisState ? textEmphasisState.style : null, upperLabelRect, thisLayout);\n }\n\n function addDrillDownIcon(style, upperLabelRect, thisLayout) {\n var text = style ? style.text : null;\n\n if (!upperLabelRect && thisLayout.isLeafRoot && text != null) {\n var iconChar = seriesModel.get('drillDownIcon', true);\n style.text = iconChar ? iconChar + ' ' + text : text;\n }\n }\n\n function giveGraphic(storageName, Ctor, depth, z) {\n var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];\n var lasts = lastsForAnimation[storageName];\n\n if (element) {\n // Remove from oldStorage\n oldStorage[storageName][oldRawIndex] = null;\n prepareAnimationWhenHasOld(lasts, element);\n } // If invisible and no old element, do not create new element (for optimizing).\n else if (!thisInvisible) {\n element = new Ctor();\n\n if (element instanceof Displayable) {\n element.z2 = calculateZ2(depth, z);\n }\n\n prepareAnimationWhenNoOld(lasts, element);\n } // Set to thisStorage\n\n\n return thisStorage[storageName][thisRawIndex] = element;\n }\n\n function prepareAnimationWhenHasOld(lasts, element) {\n var lastCfg = lasts[thisRawIndex] = {};\n\n if (element instanceof Group) {\n lastCfg.oldX = element.x;\n lastCfg.oldY = element.y;\n } else {\n lastCfg.oldShape = extend({}, element.shape);\n }\n } // If a element is new, we need to find the animation start point carefully,\n // otherwise it will looks strange when 'zoomToNode'.\n\n\n function prepareAnimationWhenNoOld(lasts, element) {\n var lastCfg = lasts[thisRawIndex] = {};\n var parentNode = thisNode.parentNode;\n var isGroup = element instanceof graphic.Group;\n\n if (parentNode && (!reRoot || reRoot.direction === 'drillDown')) {\n var parentOldX = 0;\n var parentOldY = 0; // New nodes appear from right-bottom corner in 'zoomToNode' animation.\n // For convenience, get old bounding rect from background.\n\n var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];\n\n if (!reRoot && parentOldBg && parentOldBg.oldShape) {\n parentOldX = parentOldBg.oldShape.width;\n parentOldY = parentOldBg.oldShape.height;\n } // When no parent old shape found, its parent is new too,\n // so we can just use {x:0, y:0}.\n\n\n if (isGroup) {\n lastCfg.oldX = 0;\n lastCfg.oldY = parentOldY;\n } else {\n lastCfg.oldShape = {\n x: parentOldX,\n y: parentOldY,\n width: 0,\n height: 0\n };\n }\n } // Fade in, user can be aware that these nodes are new.\n\n\n lastCfg.fadein = !isGroup;\n }\n} // We can not set all backgroud with the same z, Because the behaviour of\n// drill down and roll up differ background creation sequence from tree\n// hierarchy sequence, which cause that lowser background element overlap\n// upper ones. So we calculate z based on depth.\n// Moreover, we try to shrink down z interval to [0, 1] to avoid that\n// treemap with large z overlaps other components.\n\n\nfunction calculateZ2(depth, z2InLevel) {\n return depth * Z2_BASE + z2InLevel;\n}\n\nexport default TreemapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as zrColor from 'zrender/lib/tool/color';\nimport { linearMap } from '../util/number';\nvar each = zrUtil.each;\nvar isObject = zrUtil.isObject;\nvar CATEGORY_DEFAULT_VISUAL_INDEX = -1;\n\nvar VisualMapping =\n/** @class */\nfunction () {\n function VisualMapping(option) {\n var mappingMethod = option.mappingMethod;\n var visualType = option.type;\n var thisOption = this.option = zrUtil.clone(option);\n this.type = visualType;\n this.mappingMethod = mappingMethod;\n this._normalizeData = normalizers[mappingMethod];\n var visualHandler = VisualMapping.visualHandlers[visualType];\n this.applyVisual = visualHandler.applyVisual;\n this.getColorMapper = visualHandler.getColorMapper;\n this._normalizedToVisual = visualHandler._normalizedToVisual[mappingMethod];\n\n if (mappingMethod === 'piecewise') {\n normalizeVisualRange(thisOption);\n preprocessForPiecewise(thisOption);\n } else if (mappingMethod === 'category') {\n thisOption.categories ? preprocessForSpecifiedCategory(thisOption) // categories is ordinal when thisOption.categories not specified,\n // which need no more preprocess except normalize visual.\n : normalizeVisualRange(thisOption, true);\n } else {\n // mappingMethod === 'linear' or 'fixed'\n zrUtil.assert(mappingMethod !== 'linear' || thisOption.dataExtent);\n normalizeVisualRange(thisOption);\n }\n }\n\n VisualMapping.prototype.mapValueToVisual = function (value) {\n var normalized = this._normalizeData(value);\n\n return this._normalizedToVisual(normalized, value);\n };\n\n VisualMapping.prototype.getNormalizer = function () {\n return zrUtil.bind(this._normalizeData, this);\n };\n /**\n * List available visual types.\n *\n * @public\n * @return {Array.}\n */\n\n\n VisualMapping.listVisualTypes = function () {\n return zrUtil.keys(VisualMapping.visualHandlers);\n }; // /**\n // * @public\n // */\n // static addVisualHandler(name, handler) {\n // visualHandlers[name] = handler;\n // }\n\n /**\n * @public\n */\n\n\n VisualMapping.isValidType = function (visualType) {\n return VisualMapping.visualHandlers.hasOwnProperty(visualType);\n };\n /**\n * Convinent method.\n * Visual can be Object or Array or primary type.\n */\n\n\n VisualMapping.eachVisual = function (visual, callback, context) {\n if (zrUtil.isObject(visual)) {\n zrUtil.each(visual, callback, context);\n } else {\n callback.call(context, visual);\n }\n };\n\n VisualMapping.mapVisual = function (visual, callback, context) {\n var isPrimary;\n var newVisual = zrUtil.isArray(visual) ? [] : zrUtil.isObject(visual) ? {} : (isPrimary = true, null);\n VisualMapping.eachVisual(visual, function (v, key) {\n var newVal = callback.call(context, v, key);\n isPrimary ? newVisual = newVal : newVisual[key] = newVal;\n });\n return newVisual;\n };\n /**\n * Retrieve visual properties from given object.\n */\n\n\n VisualMapping.retrieveVisuals = function (obj) {\n var ret = {};\n var hasVisual;\n obj && each(VisualMapping.visualHandlers, function (h, visualType) {\n if (obj.hasOwnProperty(visualType)) {\n ret[visualType] = obj[visualType];\n hasVisual = true;\n }\n });\n return hasVisual ? ret : null;\n };\n /**\n * Give order to visual types, considering colorSaturation, colorAlpha depends on color.\n *\n * @public\n * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}\n * IF Array, like: ['color', 'symbol', 'colorSaturation']\n * @return {Array.} Sorted visual types.\n */\n\n\n VisualMapping.prepareVisualTypes = function (visualTypes) {\n if (zrUtil.isArray(visualTypes)) {\n visualTypes = visualTypes.slice();\n } else if (isObject(visualTypes)) {\n var types_1 = [];\n each(visualTypes, function (item, type) {\n types_1.push(type);\n });\n visualTypes = types_1;\n } else {\n return [];\n }\n\n visualTypes.sort(function (type1, type2) {\n // color should be front of colorSaturation, colorAlpha, ...\n // symbol and symbolSize do not matter.\n return type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0 ? 1 : -1;\n });\n return visualTypes;\n };\n /**\n * 'color', 'colorSaturation', 'colorAlpha', ... are depends on 'color'.\n * Other visuals are only depends on themself.\n */\n\n\n VisualMapping.dependsOn = function (visualType1, visualType2) {\n return visualType2 === 'color' ? !!(visualType1 && visualType1.indexOf(visualType2) === 0) : visualType1 === visualType2;\n };\n /**\n * @param value\n * @param pieceList [{value: ..., interval: [min, max]}, ...]\n * Always from small to big.\n * @param findClosestWhenOutside Default to be false\n * @return index\n */\n\n\n VisualMapping.findPieceIndex = function (value, pieceList, findClosestWhenOutside) {\n var possibleI;\n var abs = Infinity; // value has the higher priority.\n\n for (var i = 0, len = pieceList.length; i < len; i++) {\n var pieceValue = pieceList[i].value;\n\n if (pieceValue != null) {\n if (pieceValue === value // FIXME\n // It is supposed to compare value according to value type of dimension,\n // but currently value type can exactly be string or number.\n // Compromise for numeric-like string (like '12'), especially\n // in the case that visualMap.categories is ['22', '33'].\n || typeof pieceValue === 'string' && pieceValue === value + '') {\n return i;\n }\n\n findClosestWhenOutside && updatePossible(pieceValue, i);\n }\n }\n\n for (var i = 0, len = pieceList.length; i < len; i++) {\n var piece = pieceList[i];\n var interval = piece.interval;\n var close_1 = piece.close;\n\n if (interval) {\n if (interval[0] === -Infinity) {\n if (littleThan(close_1[1], value, interval[1])) {\n return i;\n }\n } else if (interval[1] === Infinity) {\n if (littleThan(close_1[0], interval[0], value)) {\n return i;\n }\n } else if (littleThan(close_1[0], interval[0], value) && littleThan(close_1[1], value, interval[1])) {\n return i;\n }\n\n findClosestWhenOutside && updatePossible(interval[0], i);\n findClosestWhenOutside && updatePossible(interval[1], i);\n }\n }\n\n if (findClosestWhenOutside) {\n return value === Infinity ? pieceList.length - 1 : value === -Infinity ? 0 : possibleI;\n }\n\n function updatePossible(val, index) {\n var newAbs = Math.abs(val - value);\n\n if (newAbs < abs) {\n abs = newAbs;\n possibleI = index;\n }\n }\n };\n\n VisualMapping.visualHandlers = {\n color: {\n applyVisual: makeApplyVisual('color'),\n getColorMapper: function () {\n var thisOption = this.option;\n return zrUtil.bind(thisOption.mappingMethod === 'category' ? function (value, isNormalized) {\n !isNormalized && (value = this._normalizeData(value));\n return doMapCategory.call(this, value);\n } : function (value, isNormalized, out) {\n // If output rgb array\n // which will be much faster and useful in pixel manipulation\n var returnRGBArray = !!out;\n !isNormalized && (value = this._normalizeData(value));\n out = zrColor.fastLerp(value, thisOption.parsedVisual, out);\n return returnRGBArray ? out : zrColor.stringify(out, 'rgba');\n }, this);\n },\n _normalizedToVisual: {\n linear: function (normalized) {\n return zrColor.stringify(zrColor.fastLerp(normalized, this.option.parsedVisual), 'rgba');\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = zrColor.stringify(zrColor.fastLerp(normalized, this.option.parsedVisual), 'rgba');\n }\n\n return result;\n },\n fixed: doMapFixed\n }\n },\n colorHue: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, value);\n }),\n colorSaturation: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, null, value);\n }),\n colorLightness: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyHSL(color, null, null, value);\n }),\n colorAlpha: makePartialColorVisualHandler(function (color, value) {\n return zrColor.modifyAlpha(color, value);\n }),\n decal: {\n applyVisual: makeApplyVisual('decal'),\n _normalizedToVisual: {\n linear: null,\n category: doMapCategory,\n piecewise: null,\n fixed: null\n }\n },\n opacity: {\n applyVisual: makeApplyVisual('opacity'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n },\n liftZ: {\n applyVisual: makeApplyVisual('liftZ'),\n _normalizedToVisual: {\n linear: doMapFixed,\n category: doMapFixed,\n piecewise: doMapFixed,\n fixed: doMapFixed\n }\n },\n symbol: {\n applyVisual: function (value, getter, setter) {\n var symbolCfg = this.mapValueToVisual(value);\n setter('symbol', symbolCfg);\n },\n _normalizedToVisual: {\n linear: doMapToArray,\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = doMapToArray.call(this, normalized);\n }\n\n return result;\n },\n fixed: doMapFixed\n }\n },\n symbolSize: {\n applyVisual: makeApplyVisual('symbolSize'),\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n }\n };\n return VisualMapping;\n}();\n\nfunction preprocessForPiecewise(thisOption) {\n var pieceList = thisOption.pieceList;\n thisOption.hasSpecialVisual = false;\n zrUtil.each(pieceList, function (piece, index) {\n piece.originIndex = index; // piece.visual is \"result visual value\" but not\n // a visual range, so it does not need to be normalized.\n\n if (piece.visual != null) {\n thisOption.hasSpecialVisual = true;\n }\n });\n}\n\nfunction preprocessForSpecifiedCategory(thisOption) {\n // Hash categories.\n var categories = thisOption.categories;\n var categoryMap = thisOption.categoryMap = {};\n var visual = thisOption.visual;\n each(categories, function (cate, index) {\n categoryMap[cate] = index;\n }); // Process visual map input.\n\n if (!zrUtil.isArray(visual)) {\n var visualArr_1 = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v, cate) {\n var index = categoryMap[cate];\n visualArr_1[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;\n });\n } else {\n // Is primary type, represents default visual.\n visualArr_1[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;\n }\n\n visual = setVisualToOption(thisOption, visualArr_1);\n } // Remove categories that has no visual,\n // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.\n\n\n for (var i = categories.length - 1; i >= 0; i--) {\n if (visual[i] == null) {\n delete categoryMap[categories[i]];\n categories.pop();\n }\n }\n}\n\nfunction normalizeVisualRange(thisOption, isCategory) {\n var visual = thisOption.visual;\n var visualArr = [];\n\n if (zrUtil.isObject(visual)) {\n each(visual, function (v) {\n visualArr.push(v);\n });\n } else if (visual != null) {\n visualArr.push(visual);\n }\n\n var doNotNeedPair = {\n color: 1,\n symbol: 1\n };\n\n if (!isCategory && visualArr.length === 1 && !doNotNeedPair.hasOwnProperty(thisOption.type)) {\n // Do not care visualArr.length === 0, which is illegal.\n visualArr[1] = visualArr[0];\n }\n\n setVisualToOption(thisOption, visualArr);\n}\n\nfunction makePartialColorVisualHandler(applyValue) {\n return {\n applyVisual: function (value, getter, setter) {\n // Only used in HSL\n var colorChannel = this.mapValueToVisual(value); // Must not be array value\n\n setter('color', applyValue(getter('color'), colorChannel));\n },\n _normalizedToVisual: createNormalizedToNumericVisual([0, 1])\n };\n}\n\nfunction doMapToArray(normalized) {\n var visual = this.option.visual;\n return visual[Math.round(linearMap(normalized, [0, 1], [0, visual.length - 1], true))] || {}; // TODO {}?\n}\n\nfunction makeApplyVisual(visualType) {\n return function (value, getter, setter) {\n setter(visualType, this.mapValueToVisual(value));\n };\n}\n\nfunction doMapCategory(normalized) {\n var visual = this.option.visual;\n return visual[this.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX ? normalized % visual.length : normalized];\n}\n\nfunction doMapFixed() {\n // visual will be convert to array.\n return this.option.visual[0];\n}\n/**\n * Create mapped to numeric visual\n */\n\n\nfunction createNormalizedToNumericVisual(sourceExtent) {\n return {\n linear: function (normalized) {\n return linearMap(normalized, sourceExtent, this.option.visual, true);\n },\n category: doMapCategory,\n piecewise: function (normalized, value) {\n var result = getSpecifiedVisual.call(this, value);\n\n if (result == null) {\n result = linearMap(normalized, sourceExtent, this.option.visual, true);\n }\n\n return result;\n },\n fixed: doMapFixed\n };\n}\n\nfunction getSpecifiedVisual(value) {\n var thisOption = this.option;\n var pieceList = thisOption.pieceList;\n\n if (thisOption.hasSpecialVisual) {\n var pieceIndex = VisualMapping.findPieceIndex(value, pieceList);\n var piece = pieceList[pieceIndex];\n\n if (piece && piece.visual) {\n return piece.visual[this.type];\n }\n }\n}\n\nfunction setVisualToOption(thisOption, visualArr) {\n thisOption.visual = visualArr;\n\n if (thisOption.type === 'color') {\n thisOption.parsedVisual = zrUtil.map(visualArr, function (item) {\n return zrColor.parse(item);\n });\n }\n\n return visualArr;\n}\n/**\n * Normalizers by mapping methods.\n */\n\n\nvar normalizers = {\n linear: function (value) {\n return linearMap(value, this.option.dataExtent, [0, 1], true);\n },\n piecewise: function (value) {\n var pieceList = this.option.pieceList;\n var pieceIndex = VisualMapping.findPieceIndex(value, pieceList, true);\n\n if (pieceIndex != null) {\n return linearMap(pieceIndex, [0, pieceList.length - 1], [0, 1], true);\n }\n },\n category: function (value) {\n var index = this.option.categories ? this.option.categoryMap[value] : value; // ordinal value\n\n return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;\n },\n fixed: zrUtil.noop\n};\n\nfunction littleThan(close, a, b) {\n return close ? a <= b : a < b;\n}\n\nexport default VisualMapping;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport VisualMapping from '../../visual/VisualMapping';\nimport { each, extend, isArray } from 'zrender/lib/core/util';\nimport { modifyHSL, modifyAlpha } from 'zrender/lib/tool/color';\nimport { makeInner } from '../../util/model';\nvar ITEM_STYLE_NORMAL = 'itemStyle';\nvar inner = makeInner();\nexport default {\n seriesType: 'treemap',\n reset: function (seriesModel) {\n var tree = seriesModel.getData().tree;\n var root = tree.root;\n\n if (root.isRemoved()) {\n return;\n }\n\n travelTree(root, // Visual should calculate from tree root but not view root.\n {}, seriesModel.getViewRoot().getAncestors(), seriesModel);\n }\n};\n\nfunction travelTree(node, designatedVisual, viewRootAncestors, seriesModel) {\n var nodeModel = node.getModel();\n var nodeLayout = node.getLayout();\n var data = node.hostTree.data; // Optimize\n\n if (!nodeLayout || nodeLayout.invisible || !nodeLayout.isInView) {\n return;\n }\n\n var nodeItemStyleModel = nodeModel.getModel(ITEM_STYLE_NORMAL);\n var visuals = buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel);\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style'); // calculate border color\n\n var borderColor = nodeItemStyleModel.get('borderColor');\n var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');\n var thisNodeColor;\n\n if (borderColorSaturation != null) {\n // For performance, do not always execute 'calculateColor'.\n thisNodeColor = calculateColor(visuals);\n borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);\n }\n\n existsStyle.stroke = borderColor;\n var viewChildren = node.viewChildren;\n\n if (!viewChildren || !viewChildren.length) {\n thisNodeColor = calculateColor(visuals); // Apply visual to this node.\n\n existsStyle.fill = thisNodeColor;\n } else {\n var mapping_1 = buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren); // Designate visual to children.\n\n each(viewChildren, function (child, index) {\n // If higher than viewRoot, only ancestors of viewRoot is needed to visit.\n if (child.depth >= viewRootAncestors.length || child === viewRootAncestors[child.depth]) {\n var childVisual = mapVisual(nodeModel, visuals, child, index, mapping_1, seriesModel);\n travelTree(child, childVisual, viewRootAncestors, seriesModel);\n }\n });\n }\n}\n\nfunction buildVisuals(nodeItemStyleModel, designatedVisual, seriesModel) {\n var visuals = extend({}, designatedVisual);\n var designatedVisualItemStyle = seriesModel.designatedVisualItemStyle;\n each(['color', 'colorAlpha', 'colorSaturation'], function (visualName) {\n // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel\n designatedVisualItemStyle[visualName] = designatedVisual[visualName];\n var val = nodeItemStyleModel.get(visualName);\n designatedVisualItemStyle[visualName] = null;\n val != null && (visuals[visualName] = val);\n });\n return visuals;\n}\n\nfunction calculateColor(visuals) {\n var color = getValueVisualDefine(visuals, 'color');\n\n if (color) {\n var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha');\n var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation');\n\n if (colorSaturation) {\n color = modifyHSL(color, null, null, colorSaturation);\n }\n\n if (colorAlpha) {\n color = modifyAlpha(color, colorAlpha);\n }\n\n return color;\n }\n}\n\nfunction calculateBorderColor(borderColorSaturation, thisNodeColor) {\n return thisNodeColor != null // Can only be string\n ? modifyHSL(thisNodeColor, null, null, borderColorSaturation) : null;\n}\n\nfunction getValueVisualDefine(visuals, name) {\n var value = visuals[name];\n\n if (value != null && value !== 'none') {\n return value;\n }\n}\n\nfunction buildVisualMapping(node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren) {\n if (!viewChildren || !viewChildren.length) {\n return;\n }\n\n var rangeVisual = getRangeVisual(nodeModel, 'color') || visuals.color != null && visuals.color !== 'none' && (getRangeVisual(nodeModel, 'colorAlpha') || getRangeVisual(nodeModel, 'colorSaturation'));\n\n if (!rangeVisual) {\n return;\n }\n\n var visualMin = nodeModel.get('visualMin');\n var visualMax = nodeModel.get('visualMax');\n var dataExtent = nodeLayout.dataExtent.slice();\n visualMin != null && visualMin < dataExtent[0] && (dataExtent[0] = visualMin);\n visualMax != null && visualMax > dataExtent[1] && (dataExtent[1] = visualMax);\n var colorMappingBy = nodeModel.get('colorMappingBy');\n var opt = {\n type: rangeVisual.name,\n dataExtent: dataExtent,\n visual: rangeVisual.range\n };\n\n if (opt.type === 'color' && (colorMappingBy === 'index' || colorMappingBy === 'id')) {\n opt.mappingMethod = 'category';\n opt.loop = true; // categories is ordinal, so do not set opt.categories.\n } else {\n opt.mappingMethod = 'linear';\n }\n\n var mapping = new VisualMapping(opt);\n inner(mapping).drColorMappingBy = colorMappingBy;\n return mapping;\n} // Notice: If we dont have the attribute 'colorRange', but only use\n// attribute 'color' to represent both concepts of 'colorRange' and 'color',\n// (It means 'colorRange' when 'color' is Array, means 'color' when not array),\n// this problem will be encountered:\n// If a level-1 node dont have children, and its siblings has children,\n// and colorRange is set on level-1, then the node can not be colored.\n// So we separate 'colorRange' and 'color' to different attributes.\n\n\nfunction getRangeVisual(nodeModel, name) {\n // 'colorRange', 'colorARange', 'colorSRange'.\n // If not exsits on this node, fetch from levels and series.\n var range = nodeModel.get(name);\n return isArray(range) && range.length ? {\n name: name,\n range: range\n } : null;\n}\n\nfunction mapVisual(nodeModel, visuals, child, index, mapping, seriesModel) {\n var childVisuals = extend({}, visuals);\n\n if (mapping) {\n // Only support color, colorAlpha, colorSaturation.\n var mappingType = mapping.type;\n var colorMappingBy = mappingType === 'color' && inner(mapping).drColorMappingBy;\n var value = colorMappingBy === 'index' ? index : colorMappingBy === 'id' ? seriesModel.mapIdToIndex(child.getId()) : child.getValue(nodeModel.get('visualDimension'));\n childVisuals[mappingType] = mapping.mapValueToVisual(value);\n }\n\n return childVisuals;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* The treemap layout implementation was originally copied from\n* \"d3.js\" with some modifications made for this project.\n* (See more details in the comment of the method \"squarify\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { parsePercent, MAX_SAFE_INTEGER } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport * as helper from '../helper/treeHelper';\nvar mathMax = Math.max;\nvar mathMin = Math.min;\nvar retrieveValue = zrUtil.retrieve;\nvar each = zrUtil.each;\nvar PATH_BORDER_WIDTH = ['itemStyle', 'borderWidth'];\nvar PATH_GAP_WIDTH = ['itemStyle', 'gapWidth'];\nvar PATH_UPPER_LABEL_SHOW = ['upperLabel', 'show'];\nvar PATH_UPPER_LABEL_HEIGHT = ['upperLabel', 'height'];\n;\n/**\n * @public\n */\n\nexport default {\n seriesType: 'treemap',\n reset: function (seriesModel, ecModel, api, payload) {\n // Layout result in each node:\n // {x, y, width, height, area, borderWidth}\n var ecWidth = api.getWidth();\n var ecHeight = api.getHeight();\n var seriesOption = seriesModel.option;\n var layoutInfo = layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n var size = seriesOption.size || []; // Compatible with ec2.\n\n var containerWidth = parsePercent(retrieveValue(layoutInfo.width, size[0]), ecWidth);\n var containerHeight = parsePercent(retrieveValue(layoutInfo.height, size[1]), ecHeight); // Fetch payload info.\n\n var payloadType = payload && payload.type;\n var types = ['treemapZoomToNode', 'treemapRootToNode'];\n var targetInfo = helper.retrieveTargetInfo(payload, types, seriesModel);\n var rootRect = payloadType === 'treemapRender' || payloadType === 'treemapMove' ? payload.rootRect : null;\n var viewRoot = seriesModel.getViewRoot();\n var viewAbovePath = helper.getPathToRoot(viewRoot);\n\n if (payloadType !== 'treemapMove') {\n var rootSize = payloadType === 'treemapZoomToNode' ? estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) : rootRect ? [rootRect.width, rootRect.height] : [containerWidth, containerHeight];\n var sort_1 = seriesOption.sort;\n\n if (sort_1 && sort_1 !== 'asc' && sort_1 !== 'desc') {\n // Default to be desc order.\n sort_1 = 'desc';\n }\n\n var options = {\n squareRatio: seriesOption.squareRatio,\n sort: sort_1,\n leafDepth: seriesOption.leafDepth\n }; // layout should be cleared because using updateView but not update.\n\n viewRoot.hostTree.clearLayouts(); // TODO\n // optimize: if out of view clip, do not layout.\n // But take care that if do not render node out of view clip,\n // how to calculate start po\n\n var viewRootLayout_1 = {\n x: 0,\n y: 0,\n width: rootSize[0],\n height: rootSize[1],\n area: rootSize[0] * rootSize[1]\n };\n viewRoot.setLayout(viewRootLayout_1);\n squarify(viewRoot, options, false, 0); // Supplement layout.\n\n viewRootLayout_1 = viewRoot.getLayout();\n each(viewAbovePath, function (node, index) {\n var childValue = (viewAbovePath[index + 1] || viewRoot).getValue();\n node.setLayout(zrUtil.extend({\n dataExtent: [childValue, childValue],\n borderWidth: 0,\n upperHeight: 0\n }, viewRootLayout_1));\n });\n }\n\n var treeRoot = seriesModel.getData().tree.root;\n treeRoot.setLayout(calculateRootPosition(layoutInfo, rootRect, targetInfo), true);\n seriesModel.setLayoutInfo(layoutInfo); // FIXME\n // 现在没有clip功能,暂时取ec高宽。\n\n prunning(treeRoot, // Transform to base element coordinate system.\n new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight), viewAbovePath, viewRoot, 0);\n }\n};\n/**\n * Layout treemap with squarify algorithm.\n * The original presentation of this algorithm\n * was made by Mark Bruls, Kees Huizing, and Jarke J. van Wijk\n * .\n * The implementation of this algorithm was originally copied from \"d3.js\"\n * \n * with some modifications made for this program.\n * See the license statement at the head of this file.\n *\n * @protected\n * @param {module:echarts/data/Tree~TreeNode} node\n * @param {Object} options\n * @param {string} options.sort 'asc' or 'desc'\n * @param {number} options.squareRatio\n * @param {boolean} hideChildren\n * @param {number} depth\n */\n\nfunction squarify(node, options, hideChildren, depth) {\n var width;\n var height;\n\n if (node.isRemoved()) {\n return;\n }\n\n var thisLayout = node.getLayout();\n width = thisLayout.width;\n height = thisLayout.height; // Considering border and gap\n\n var nodeModel = node.getModel();\n var borderWidth = nodeModel.get(PATH_BORDER_WIDTH);\n var halfGapWidth = nodeModel.get(PATH_GAP_WIDTH) / 2;\n var upperLabelHeight = getUpperLabelHeight(nodeModel);\n var upperHeight = Math.max(borderWidth, upperLabelHeight);\n var layoutOffset = borderWidth - halfGapWidth;\n var layoutOffsetUpper = upperHeight - halfGapWidth;\n node.setLayout({\n borderWidth: borderWidth,\n upperHeight: upperHeight,\n upperLabelHeight: upperLabelHeight\n }, true);\n width = mathMax(width - 2 * layoutOffset, 0);\n height = mathMax(height - layoutOffset - layoutOffsetUpper, 0);\n var totalArea = width * height;\n var viewChildren = initChildren(node, nodeModel, totalArea, options, hideChildren, depth);\n\n if (!viewChildren.length) {\n return;\n }\n\n var rect = {\n x: layoutOffset,\n y: layoutOffsetUpper,\n width: width,\n height: height\n };\n var rowFixedLength = mathMin(width, height);\n var best = Infinity; // the best row score so far\n\n var row = [];\n row.area = 0;\n\n for (var i = 0, len = viewChildren.length; i < len;) {\n var child = viewChildren[i];\n row.push(child);\n row.area += child.getLayout().area;\n var score = worst(row, rowFixedLength, options.squareRatio); // continue with this orientation\n\n if (score <= best) {\n i++;\n best = score;\n } // abort, and try a different orientation\n else {\n row.area -= row.pop().getLayout().area;\n position(row, rowFixedLength, rect, halfGapWidth, false);\n rowFixedLength = mathMin(rect.width, rect.height);\n row.length = row.area = 0;\n best = Infinity;\n }\n }\n\n if (row.length) {\n position(row, rowFixedLength, rect, halfGapWidth, true);\n }\n\n if (!hideChildren) {\n var childrenVisibleMin = nodeModel.get('childrenVisibleMin');\n\n if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {\n hideChildren = true;\n }\n }\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n squarify(viewChildren[i], options, hideChildren, depth + 1);\n }\n}\n/**\n * Set area to each child, and calculate data extent for visual coding.\n */\n\n\nfunction initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}\n/**\n * Consider 'visibleMin'. Modify viewChildren and get new sum.\n */\n\n\nfunction filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {\n // visibleMin is not supported yet when no option.sort.\n if (!orderBy) {\n return sum;\n }\n\n var visibleMin = nodeModel.get('visibleMin');\n var len = orderedChildren.length;\n var deletePoint = len; // Always travel from little value to big value.\n\n for (var i = len - 1; i >= 0; i--) {\n var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue();\n\n if (value / sum * totalArea < visibleMin) {\n deletePoint = i;\n sum -= value;\n }\n }\n\n orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint);\n return sum;\n}\n/**\n * Sort\n */\n\n\nfunction sort(viewChildren, orderBy) {\n if (orderBy) {\n viewChildren.sort(function (a, b) {\n var diff = orderBy === 'asc' ? a.getValue() - b.getValue() : b.getValue() - a.getValue();\n return diff === 0 ? orderBy === 'asc' ? a.dataIndex - b.dataIndex : b.dataIndex - a.dataIndex : diff;\n });\n }\n\n return viewChildren;\n}\n/**\n * Statistic\n */\n\n\nfunction statistic(nodeModel, children, orderBy) {\n // Calculate sum.\n var sum = 0;\n\n for (var i = 0, len = children.length; i < len; i++) {\n sum += children[i].getValue();\n } // Statistic data extent for latter visual coding.\n // Notice: data extent should be calculate based on raw children\n // but not filtered view children, otherwise visual mapping will not\n // be stable when zoom (where children is filtered by visibleMin).\n\n\n var dimension = nodeModel.get('visualDimension');\n var dataExtent; // The same as area dimension.\n\n if (!children || !children.length) {\n dataExtent = [NaN, NaN];\n } else if (dimension === 'value' && orderBy) {\n dataExtent = [children[children.length - 1].getValue(), children[0].getValue()];\n orderBy === 'asc' && dataExtent.reverse();\n } // Other dimension.\n else {\n dataExtent = [Infinity, -Infinity];\n each(children, function (child) {\n var value = child.getValue(dimension);\n value < dataExtent[0] && (dataExtent[0] = value);\n value > dataExtent[1] && (dataExtent[1] = value);\n });\n }\n\n return {\n sum: sum,\n dataExtent: dataExtent\n };\n}\n/**\n * Computes the score for the specified row,\n * as the worst aspect ratio.\n */\n\n\nfunction worst(row, rowFixedLength, ratio) {\n var areaMax = 0;\n var areaMin = Infinity;\n\n for (var i = 0, area = void 0, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n var squareArea = row.area * row.area;\n var f = rowFixedLength * rowFixedLength * ratio;\n return squareArea ? mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;\n}\n/**\n * Positions the specified row of nodes. Modifies `rect`.\n */\n\n\nfunction position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as default.\n\n\nfunction estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) {\n // If targetInfo.node exists, we zoom to the node,\n // so estimate whold width and heigth by target node.\n var currNode = (targetInfo || {}).node;\n var defaultSize = [containerWidth, containerHeight];\n\n if (!currNode || currNode === viewRoot) {\n return defaultSize;\n }\n\n var parent;\n var viewArea = containerWidth * containerHeight;\n var area = viewArea * seriesModel.option.zoomToNodeRatio;\n\n while (parent = currNode.parentNode) {\n // jshint ignore:line\n var sum = 0;\n var siblings = parent.children;\n\n for (var i = 0, len = siblings.length; i < len; i++) {\n sum += siblings[i].getValue();\n }\n\n var currNodeValue = currNode.getValue();\n\n if (currNodeValue === 0) {\n return defaultSize;\n }\n\n area *= sum / currNodeValue; // Considering border, suppose aspect ratio is 1.\n\n var parentModel = parent.getModel();\n var borderWidth = parentModel.get(PATH_BORDER_WIDTH);\n var upperHeight = Math.max(borderWidth, getUpperLabelHeight(parentModel));\n area += 4 * borderWidth * borderWidth + (3 * borderWidth + upperHeight) * Math.pow(area, 0.5);\n area > MAX_SAFE_INTEGER && (area = MAX_SAFE_INTEGER);\n currNode = parent;\n }\n\n area < viewArea && (area = viewArea);\n var scale = Math.pow(area / viewArea, 0.5);\n return [containerWidth * scale, containerHeight * scale];\n} // Root postion base on coord of containerGroup\n\n\nfunction calculateRootPosition(layoutInfo, rootRect, targetInfo) {\n if (rootRect) {\n return {\n x: rootRect.x,\n y: rootRect.y\n };\n }\n\n var defaultPosition = {\n x: 0,\n y: 0\n };\n\n if (!targetInfo) {\n return defaultPosition;\n } // If targetInfo is fetched by 'retrieveTargetInfo',\n // old tree and new tree are the same tree,\n // so the node still exists and we can visit it.\n\n\n var targetNode = targetInfo.node;\n var layout = targetNode.getLayout();\n\n if (!layout) {\n return defaultPosition;\n } // Transform coord from local to container.\n\n\n var targetCenter = [layout.width / 2, layout.height / 2];\n var node = targetNode;\n\n while (node) {\n var nodeLayout = node.getLayout();\n targetCenter[0] += nodeLayout.x;\n targetCenter[1] += nodeLayout.y;\n node = node.parentNode;\n }\n\n return {\n x: layoutInfo.width / 2 - targetCenter[0],\n y: layoutInfo.height / 2 - targetCenter[1]\n };\n} // Mark nodes visible for prunning when visual coding and rendering.\n// Prunning depends on layout and root position, so we have to do it after layout.\n\n\nfunction prunning(node, clipRect, viewAbovePath, viewRoot, depth) {\n var nodeLayout = node.getLayout();\n var nodeInViewAbovePath = viewAbovePath[depth];\n var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;\n\n if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) {\n return;\n }\n\n node.setLayout({\n // isInView means: viewRoot sub tree + viewAbovePath\n isInView: true,\n // invisible only means: outside view clip so that the node can not\n // see but still layout for animation preparation but not render.\n invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),\n isAboveViewRoot: isAboveViewRoot\n }, true); // Transform to child coordinate.\n\n var childClipRect = new BoundingRect(clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height);\n each(node.viewChildren || [], function (child) {\n prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);\n });\n}\n\nfunction getUpperLabelHeight(model) {\n return model.get(PATH_UPPER_LABEL_SHOW) ? model.get(PATH_UPPER_LABEL_HEIGHT) : 0;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { installTreemapAction } from './treemapAction';\nimport TreemapSeriesModel from './TreemapSeries';\nimport TreemapView from './TreemapView';\nimport treemapVisual from './treemapVisual';\nimport treemapLayout from './treemapLayout';\nexport function install(registers) {\n registers.registerSeriesModel(TreemapSeriesModel);\n registers.registerChartView(TreemapView);\n registers.registerVisual(treemapVisual);\n registers.registerLayout(treemapLayout);\n installTreemapAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function categoryFilter(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var categoriesData = graphSeries.getCategoriesData();\n var graph = graphSeries.getGraph();\n var data = graph.data;\n var categoryNames = categoriesData.mapArray(categoriesData.getName);\n data.filterSelf(function (idx) {\n var model = data.getItemModel(idx);\n var category = model.getShallow('category');\n\n if (category != null) {\n if (typeof category === 'number') {\n category = categoryNames[category];\n } // If in any legend component the status is not selected.\n\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(category)) {\n return false;\n }\n }\n }\n\n return true;\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nexport default function categoryVisual(ecModel) {\n var paletteScope = {};\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var categoriesData = seriesModel.getCategoriesData();\n var data = seriesModel.getData();\n var categoryNameIdxMap = {};\n categoriesData.each(function (idx) {\n var name = categoriesData.getName(idx); // Add prefix to avoid conflict with Object.prototype.\n\n categoryNameIdxMap['ec-' + name] = idx;\n var itemModel = categoriesData.getItemModel(idx);\n var style = itemModel.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n // Get color from palette.\n style.fill = seriesModel.getColorFromPalette(name, paletteScope);\n }\n\n categoriesData.setItemVisual(idx, 'style', style);\n var symbolVisualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];\n\n for (var i = 0; i < symbolVisualList.length; i++) {\n var symbolVisual = itemModel.getShallow(symbolVisualList[i], true);\n\n if (symbolVisual != null) {\n categoriesData.setItemVisual(idx, symbolVisualList[i], symbolVisual);\n }\n }\n }); // Assign category color to visual\n\n if (categoriesData.count()) {\n data.each(function (idx) {\n var model = data.getItemModel(idx);\n var categoryIdx = model.getShallow('category');\n\n if (categoryIdx != null) {\n if (typeof categoryIdx === 'string') {\n categoryIdx = categoryNameIdxMap['ec-' + categoryIdx];\n }\n\n var categoryStyle = categoriesData.getItemVisual(categoryIdx, 'style');\n var style = data.ensureUniqueItemVisual(idx, 'style');\n extend(style, categoryStyle);\n var visualList = ['symbol', 'symbolSize', 'symbolKeepAspect'];\n\n for (var i = 0; i < visualList.length; i++) {\n data.setItemVisual(idx, visualList[i], categoriesData.getItemVisual(categoryIdx, visualList[i]));\n }\n }\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\n\nfunction normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}\n\nexport default function graphEdgeVisual(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var graph = seriesModel.getGraph();\n var edgeData = seriesModel.getEdgeData();\n var symbolType = normalize(seriesModel.get('edgeSymbol'));\n var symbolSize = normalize(seriesModel.get('edgeSymbolSize')); // const colorQuery = ['lineStyle', 'color'] as const;\n // const opacityQuery = ['lineStyle', 'opacity'] as const;\n\n edgeData.setVisual('fromSymbol', symbolType && symbolType[0]);\n edgeData.setVisual('toSymbol', symbolType && symbolType[1]);\n edgeData.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n edgeData.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n edgeData.setVisual('style', seriesModel.getModel('lineStyle').getLineStyle());\n edgeData.each(function (idx) {\n var itemModel = edgeData.getItemModel(idx);\n var edge = graph.getEdgeByIndex(idx);\n var symbolType = normalize(itemModel.getShallow('symbol', true));\n var symbolSize = normalize(itemModel.getShallow('symbolSize', true)); // Edge visual must after node visual\n\n var style = itemModel.getModel('lineStyle').getLineStyle();\n var existsStyle = edgeData.ensureUniqueItemVisual(idx, 'style');\n extend(existsStyle, style);\n\n switch (existsStyle.stroke) {\n case 'source':\n {\n var nodeStyle = edge.node1.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n\n case 'target':\n {\n var nodeStyle = edge.node2.getVisual('style');\n existsStyle.stroke = nodeStyle && nodeStyle.fill;\n break;\n }\n }\n\n symbolType[0] && edge.setVisual('fromSymbol', symbolType[0]);\n symbolType[1] && edge.setVisual('toSymbol', symbolType[1]);\n symbolSize[0] && edge.setVisual('fromSymbolSize', symbolSize[0]);\n symbolSize[1] && edge.setVisual('toSymbolSize', symbolSize[1]);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nvar KEY_DELIMITER = '-->';\n/**\n * params handler\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {*}\n */\n\nvar getAutoCurvenessParams = function (seriesModel) {\n return seriesModel.get('autoCurveness') || null;\n};\n/**\n * Generate a list of edge curvatures, 20 is the default\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} appendLength\n * @return 20 => [0, -0.2, 0.2, -0.4, 0.4, -0.6, 0.6, -0.8, 0.8, -1, 1, -1.2, 1.2, -1.4, 1.4, -1.6, 1.6, -1.8, 1.8, -2]\n */\n\n\nvar createCurveness = function (seriesModel, appendLength) {\n var autoCurvenessParmas = getAutoCurvenessParams(seriesModel);\n var length = 20;\n var curvenessList = []; // handler the function set\n\n if (typeof autoCurvenessParmas === 'number') {\n length = autoCurvenessParmas;\n } else if (zrUtil.isArray(autoCurvenessParmas)) {\n seriesModel.__curvenessList = autoCurvenessParmas;\n return;\n } // append length\n\n\n if (appendLength > length) {\n length = appendLength;\n } // make sure the length is even\n\n\n var len = length % 2 ? length + 2 : length + 3;\n curvenessList = [];\n\n for (var i = 0; i < len; i++) {\n curvenessList.push((i % 2 ? i + 1 : i) / 10 * (i % 2 ? -1 : 1));\n }\n\n seriesModel.__curvenessList = curvenessList;\n};\n/**\n * Create different cache key data in the positive and negative directions, in order to set the curvature later\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @returns {string} key\n */\n\n\nvar getKeyOfEdges = function (n1, n2, seriesModel) {\n var source = [n1.id, n1.dataIndex].join('.');\n var target = [n2.id, n2.dataIndex].join('.');\n return [seriesModel.uid, source, target].join(KEY_DELIMITER);\n};\n/**\n * get opposite key\n * @param {string} key\n * @returns {string}\n */\n\n\nvar getOppositeKey = function (key) {\n var keys = key.split(KEY_DELIMITER);\n return [keys[0], keys[2], keys[1]].join(KEY_DELIMITER);\n};\n/**\n * get edgeMap with key\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\n\n\nvar getEdgeFromMap = function (edge, seriesModel) {\n var key = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n return seriesModel.__edgeMap[key];\n};\n/**\n * calculate all cases total length\n * @param edge\n * @param seriesModel\n * @returns {number}\n */\n\n\nvar getTotalLengthBetweenNodes = function (edge, seriesModel) {\n var len = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node1, edge.node2, seriesModel), seriesModel);\n var lenV = getEdgeMapLengthWithKey(getKeyOfEdges(edge.node2, edge.node1, seriesModel), seriesModel);\n return len + lenV;\n};\n/**\n *\n * @param key\n */\n\n\nvar getEdgeMapLengthWithKey = function (key, seriesModel) {\n var edgeMap = seriesModel.__edgeMap;\n return edgeMap[key] ? edgeMap[key].length : 0;\n};\n/**\n * Count the number of edges between the same two points, used to obtain the curvature table and the parity of the edge\n * @see /graph/GraphSeries.js@getInitialData\n * @param {module:echarts/model/SeriesModel} seriesModel\n */\n\n\nexport function initCurvenessList(seriesModel) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n seriesModel.__curvenessList = [];\n seriesModel.__edgeMap = {}; // calc the array of curveness List\n\n createCurveness(seriesModel);\n}\n/**\n * set edgeMap with key\n * @param {number|string|module:echarts/data/Graph.Node} n1\n * @param {number|string|module:echarts/data/Graph.Node} n2\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param {number} index\n */\n\nexport function createEdgeMapForCurveness(n1, n2, seriesModel, index) {\n if (!getAutoCurvenessParams(seriesModel)) {\n return;\n }\n\n var key = getKeyOfEdges(n1, n2, seriesModel);\n var edgeMap = seriesModel.__edgeMap;\n var oppositeEdges = edgeMap[getOppositeKey(key)]; // set direction\n\n if (edgeMap[key] && !oppositeEdges) {\n edgeMap[key].isForward = true;\n } else if (oppositeEdges && edgeMap[key]) {\n oppositeEdges.isForward = true;\n edgeMap[key].isForward = false;\n }\n\n edgeMap[key] = edgeMap[key] || [];\n edgeMap[key].push(index);\n}\n/**\n * get curvature for edge\n * @param edge\n * @param {module:echarts/model/SeriesModel} seriesModel\n * @param index\n */\n\nexport function getCurvenessForEdge(edge, seriesModel, index, needReverse) {\n var autoCurvenessParams = getAutoCurvenessParams(seriesModel);\n var isArrayParam = zrUtil.isArray(autoCurvenessParams);\n\n if (!autoCurvenessParams) {\n return null;\n }\n\n var edgeArray = getEdgeFromMap(edge, seriesModel);\n\n if (!edgeArray) {\n return null;\n }\n\n var edgeIndex = -1;\n\n for (var i = 0; i < edgeArray.length; i++) {\n if (edgeArray[i] === index) {\n edgeIndex = i;\n break;\n }\n } // if totalLen is Longer createCurveness\n\n\n var totalLen = getTotalLengthBetweenNodes(edge, seriesModel);\n createCurveness(seriesModel, totalLen);\n edge.lineStyle = edge.lineStyle || {}; // if is opposite edge, must set curvenss to opposite number\n\n var curKey = getKeyOfEdges(edge.node1, edge.node2, seriesModel);\n var curvenessList = seriesModel.__curvenessList; // if pass array no need parity\n\n var parityCorrection = isArrayParam ? 0 : totalLen % 2 ? 0 : 1;\n\n if (!edgeArray.isForward) {\n // the opposite edge show outside\n var oppositeKey = getOppositeKey(curKey);\n var len = getEdgeMapLengthWithKey(oppositeKey, seriesModel);\n var resValue = curvenessList[edgeIndex + len + parityCorrection]; // isNeedReverse, simple, force type need reverse the curveness in the junction of the forword and the opposite\n\n if (needReverse) {\n // set as array may make the parity handle with the len of opposite\n if (isArrayParam) {\n if (autoCurvenessParams && autoCurvenessParams[0] === 0) {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n } else {\n return ((len % 2 ? 0 : 1) + parityCorrection) % 2 ? resValue : -resValue;\n }\n } else {\n return (len + parityCorrection) % 2 ? resValue : -resValue;\n }\n } else {\n return curvenessList[edgeIndex + len + parityCorrection];\n }\n } else {\n return curvenessList[parityCorrection + edgeIndex];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nexport function simpleLayout(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n var graph = seriesModel.getGraph();\n graph.eachNode(function (node) {\n var model = node.getModel();\n node.setLayout([+model.get('x'), +model.get('y')]);\n });\n simpleLayoutEdge(graph, seriesModel);\n}\nexport function simpleLayoutEdge(graph, seriesModel) {\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, seriesModel, index, true), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var points = [p1, p2];\n\n if (+curveness) {\n points.push([(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness]);\n }\n\n edge.setLayout(points);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each } from 'zrender/lib/core/util';\nimport { simpleLayout, simpleLayoutEdge } from './simpleLayoutHelper';\nexport default function graphSimpleLayout(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data_1 = seriesModel.getData();\n var dimensions_1 = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions_1 = dimensions_1.concat(data_1.mapDimensionsAll(coordDim));\n });\n\n for (var dataIndex = 0; dataIndex < data_1.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions_1.length; i++) {\n var val = data_1.get(dimensions_1[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data_1.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.}, not undefined to avoid if...else... statement\n data_1.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data_1.graph, seriesModel);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport function getNodeGlobalScale(seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type !== 'view') {\n return 1;\n }\n\n var nodeScaleRatio = seriesModel.option.nodeScaleRatio;\n var groupZoom = coordSys.scaleX; // Scale node when zoom changes\n\n var roamZoom = coordSys.getZoom();\n var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1;\n return nodeScale / groupZoom;\n}\nexport function getSymbolSize(node) {\n var symbolSize = node.getVisual('symbolSize');\n\n if (symbolSize instanceof Array) {\n symbolSize = (symbolSize[0] + symbolSize[1]) / 2;\n }\n\n return +symbolSize;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nimport { getSymbolSize, getNodeGlobalScale } from './graphHelper';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nvar PI = Math.PI;\nvar _symbolRadiansHalf = [];\n/**\n * `basedOn` can be:\n * 'value':\n * This layout is not accurate and have same bad case. For example,\n * if the min value is very smaller than the max value, the nodes\n * with the min value probably overlap even though there is enough\n * space to layout them. So we only use this approach in the as the\n * init layout of the force layout.\n * FIXME\n * Probably we do not need this method any more but use\n * `basedOn: 'symbolSize'` in force layout if\n * delay its init operations to GraphView.\n * 'symbolSize':\n * This approach work only if all of the symbol size calculated.\n * That is, the progressive rendering is not applied to graph.\n * FIXME\n * If progressive rendering is applied to graph some day,\n * probably we have to use `basedOn: 'value'`.\n */\n\nexport function circularLayout(seriesModel, basedOn) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n var rect = coordSys.getBoundingRect();\n var nodeData = seriesModel.getData();\n var graph = nodeData.graph;\n var cx = rect.width / 2 + rect.x;\n var cy = rect.height / 2 + rect.y;\n var r = Math.min(rect.width, rect.height) / 2;\n var count = nodeData.count();\n nodeData.setLayout({\n cx: cx,\n cy: cy\n });\n\n if (!count) {\n return;\n }\n\n _layoutNodesBasedOn[basedOn](seriesModel, graph, nodeData, r, cx, cy, count);\n\n graph.eachEdge(function (edge, index) {\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), getCurvenessForEdge(edge, seriesModel, index), 0);\n var p1 = vec2.clone(edge.node1.getLayout());\n var p2 = vec2.clone(edge.node2.getLayout());\n var cp1;\n var x12 = (p1[0] + p2[0]) / 2;\n var y12 = (p1[1] + p2[1]) / 2;\n\n if (+curveness) {\n curveness *= 3;\n cp1 = [cx * curveness + x12 * (1 - curveness), cy * curveness + y12 * (1 - curveness)];\n }\n\n edge.setLayout([p1, p2, cp1]);\n });\n}\nvar _layoutNodesBasedOn = {\n value: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var angle = 0;\n var sum = nodeData.getSum('value');\n var unitAngle = Math.PI * 2 / (sum || count);\n graph.eachNode(function (node) {\n var value = node.getValue('value');\n var radianHalf = unitAngle * (sum ? value : 1) / 2;\n angle += radianHalf;\n node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n },\n symbolSize: function (seriesModel, graph, nodeData, r, cx, cy, count) {\n var sumRadian = 0;\n _symbolRadiansHalf.length = count;\n var nodeScale = getNodeGlobalScale(seriesModel);\n graph.eachNode(function (node) {\n var symbolSize = getSymbolSize(node); // Normally this case will not happen, but we still add\n // some the defensive code (2px is an arbitrary value).\n\n isNaN(symbolSize) && (symbolSize = 2);\n symbolSize < 0 && (symbolSize = 0);\n symbolSize *= nodeScale;\n var symbolRadianHalf = Math.asin(symbolSize / 2 / r); // when `symbolSize / 2` is bigger than `r`.\n\n isNaN(symbolRadianHalf) && (symbolRadianHalf = PI / 2);\n _symbolRadiansHalf[node.dataIndex] = symbolRadianHalf;\n sumRadian += symbolRadianHalf * 2;\n });\n var halfRemainRadian = (2 * PI - sumRadian) / count / 2;\n var angle = 0;\n graph.eachNode(function (node) {\n var radianHalf = halfRemainRadian + _symbolRadiansHalf[node.dataIndex];\n angle += radianHalf;\n node.setLayout([r * Math.cos(angle) + cx, r * Math.sin(angle) + cy]);\n angle += radianHalf;\n });\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { circularLayout } from './circularLayoutHelper';\nexport default function graphCircularLayout(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/*\n* A third-party license is embeded for some of the code in this file:\n* Some formulas were originally copied from \"d3.js\" with some\n* modifications made for this project.\n* (See more details in the comment of the method \"step\" below.)\n* The use of the source code of this file is also subject to the terms\n* and consitions of the license of \"d3.js\" (BSD-3Clause, see\n* ).\n*/\nimport * as vec2 from 'zrender/lib/core/vector';\nvar scaleAndAdd = vec2.scaleAndAdd; // function adjacentNode(n, e) {\n// return e.n1 === n ? e.n2 : e.n1;\n// }\n\nexport function forceLayout(inNodes, inEdges, opts) {\n var nodes = inNodes;\n var edges = inEdges;\n var rect = opts.rect;\n var width = rect.width;\n var height = rect.height;\n var center = [rect.x + width / 2, rect.y + height / 2]; // let scale = opts.scale || 1;\n\n var gravity = opts.gravity == null ? 0.1 : opts.gravity; // for (let i = 0; i < edges.length; i++) {\n // let e = edges[i];\n // let n1 = e.n1;\n // let n2 = e.n2;\n // n1.edges = n1.edges || [];\n // n2.edges = n2.edges || [];\n // n1.edges.push(e);\n // n2.edges.push(e);\n // }\n // Init position\n\n for (var i = 0; i < nodes.length; i++) {\n var n = nodes[i];\n\n if (!n.p) {\n n.p = vec2.create(width * (Math.random() - 0.5) + center[0], height * (Math.random() - 0.5) + center[1]);\n }\n\n n.pp = vec2.clone(n.p);\n n.edges = null;\n } // Formula in 'Graph Drawing by Force-directed Placement'\n // let k = scale * Math.sqrt(width * height / nodes.length);\n // let k2 = k * k;\n\n\n var initialFriction = opts.friction == null ? 0.6 : opts.friction;\n var friction = initialFriction;\n var beforeStepCallback;\n var afterStepCallback;\n return {\n warmUp: function () {\n friction = initialFriction * 0.8;\n },\n setFixed: function (idx) {\n nodes[idx].fixed = true;\n },\n setUnfixed: function (idx) {\n nodes[idx].fixed = false;\n },\n\n /**\n * Before step hook\n */\n beforeStep: function (cb) {\n beforeStepCallback = cb;\n },\n\n /**\n * After step hook\n */\n afterStep: function (cb) {\n afterStepCallback = cb;\n },\n\n /**\n * Some formulas were originally copied from \"d3.js\"\n * https://github.com/d3/d3/blob/b516d77fb8566b576088e73410437494717ada26/src/layout/force.js\n * with some modifications made for this project.\n * See the license statement at the head of this file.\n */\n step: function (cb) {\n beforeStepCallback && beforeStepCallback(nodes, edges);\n var v12 = [];\n var nLen = nodes.length;\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n\n if (e.ignoreForceLayout) {\n continue;\n }\n\n var n1 = e.n1;\n var n2 = e.n2;\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12) - e.d;\n var w = n2.w / (n1.w + n2.w);\n\n if (isNaN(w)) {\n w = 0;\n }\n\n vec2.normalize(v12, v12);\n !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);\n !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);\n } // Gravity\n\n\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n\n if (!n.fixed) {\n vec2.sub(v12, center, n.p); // let d = vec2.len(v12);\n // vec2.scale(v12, v12, 1 / d);\n // let gravityFactor = gravity;\n\n scaleAndAdd(n.p, n.p, v12, gravity * friction);\n }\n } // Repulsive\n // PENDING\n\n\n for (var i = 0; i < nLen; i++) {\n var n1 = nodes[i];\n\n for (var j = i + 1; j < nLen; j++) {\n var n2 = nodes[j];\n vec2.sub(v12, n2.p, n1.p);\n var d = vec2.len(v12);\n\n if (d === 0) {\n // Random repulse\n vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);\n d = 1;\n }\n\n var repFact = (n1.rep + n2.rep) / d / d;\n !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);\n !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);\n }\n }\n\n var v = [];\n\n for (var i = 0; i < nLen; i++) {\n var n = nodes[i];\n\n if (!n.fixed) {\n vec2.sub(v, n.p, n.pp);\n scaleAndAdd(n.p, n.p, v, friction);\n vec2.copy(n.pp, n.p);\n }\n }\n\n friction = friction * 0.992;\n var finished = friction < 0.01;\n afterStepCallback && afterStepCallback(nodes, edges, finished);\n cb && cb(finished);\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { forceLayout } from './forceHelper';\nimport { simpleLayout } from './simpleLayoutHelper';\nimport { circularLayout } from './circularLayoutHelper';\nimport { linearMap } from '../../util/number';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getCurvenessForEdge } from '../helper/multipleGraphEdgeHelper';\nexport default function graphForceLayout(ecModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var coordSys = graphSeries.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n if (graphSeries.get('layout') === 'force') {\n var preservedPoints_1 = graphSeries.preservedPoints || {};\n var graph_1 = graphSeries.getGraph();\n var nodeData_1 = graph_1.data;\n var edgeData = graph_1.edgeData;\n var forceModel = graphSeries.getModel('force');\n var initLayout = forceModel.get('initLayout');\n\n if (graphSeries.preservedPoints) {\n nodeData_1.each(function (idx) {\n var id = nodeData_1.getId(idx);\n nodeData_1.setItemLayout(idx, preservedPoints_1[id] || [NaN, NaN]);\n });\n } else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n } else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n var nodeDataExtent_1 = nodeData_1.getDataExtent('value');\n var edgeDataExtent_1 = edgeData.getDataExtent('value'); // let edgeDataExtent = edgeData.getDataExtent('value');\n\n var repulsion = forceModel.get('repulsion');\n var edgeLength = forceModel.get('edgeLength');\n var repulsionArr_1 = zrUtil.isArray(repulsion) ? repulsion : [repulsion, repulsion];\n var edgeLengthArr_1 = zrUtil.isArray(edgeLength) ? edgeLength : [edgeLength, edgeLength]; // Larger value has smaller length\n\n edgeLengthArr_1 = [edgeLengthArr_1[1], edgeLengthArr_1[0]];\n var nodes_1 = nodeData_1.mapArray('value', function (value, idx) {\n var point = nodeData_1.getItemLayout(idx);\n var rep = linearMap(value, nodeDataExtent_1, repulsionArr_1);\n\n if (isNaN(rep)) {\n rep = (repulsionArr_1[0] + repulsionArr_1[1]) / 2;\n }\n\n return {\n w: rep,\n rep: rep,\n fixed: nodeData_1.getItemModel(idx).get('fixed'),\n p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point\n };\n });\n var edges = edgeData.mapArray('value', function (value, idx) {\n var edge = graph_1.getEdgeByIndex(idx);\n var d = linearMap(value, edgeDataExtent_1, edgeLengthArr_1);\n\n if (isNaN(d)) {\n d = (edgeLengthArr_1[0] + edgeLengthArr_1[1]) / 2;\n }\n\n var edgeModel = edge.getModel();\n var curveness = zrUtil.retrieve3(edge.getModel().get(['lineStyle', 'curveness']), -getCurvenessForEdge(edge, graphSeries, idx, true), 0);\n return {\n n1: nodes_1[edge.node1.dataIndex],\n n2: nodes_1[edge.node2.dataIndex],\n d: d,\n curveness: curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n }); // let coordSys = graphSeries.coordinateSystem;\n\n var rect = coordSys.getBoundingRect();\n var forceInstance = forceLayout(nodes_1, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n forceInstance.beforeStep(function (nodes, edges) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(nodes[i].p, graph_1.getNodeByIndex(i).getLayout());\n }\n }\n });\n forceInstance.afterStep(function (nodes, edges, stopped) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph_1.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n\n preservedPoints_1[nodeData_1.getId(i)] = nodes[i].p;\n }\n\n for (var i = 0, l = edges.length; i < l; i++) {\n var e = edges[i];\n var edge = graph_1.getEdgeByIndex(i);\n var p1 = e.n1.p;\n var p2 = e.n2.p;\n var points = edge.getLayout();\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n\n if (+e.curveness) {\n points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];\n }\n\n edge.setLayout(points);\n }\n });\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints_1; // Step to get the layout\n\n forceInstance.step();\n } else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// FIXME Where to create the simple view coordinate system\nimport View from '../../coord/View';\nimport { getLayoutRect } from '../../util/layout';\nimport * as bbox from 'zrender/lib/core/bbox';\nimport { extend } from 'zrender/lib/core/util';\n\nfunction getViewRect(seriesModel, api, aspect) {\n var option = extend(seriesModel.getBoxLayoutParams(), {\n aspect: aspect\n });\n return getLayoutRect(option, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nexport default function createViewCoordSys(ecModel, api) {\n var viewList = [];\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var coordSysType = seriesModel.get('coordinateSystem');\n\n if (!coordSysType || coordSysType === 'view') {\n var data_1 = seriesModel.getData();\n var positions = data_1.mapArray(function (idx) {\n var itemModel = data_1.getItemModel(idx);\n return [+itemModel.get('x'), +itemModel.get('y')];\n });\n var min = [];\n var max = [];\n bbox.fromPoints(positions, min, max); // If width or height is 0\n\n if (max[0] - min[0] === 0) {\n max[0] += 1;\n min[0] -= 1;\n }\n\n if (max[1] - min[1] === 0) {\n max[1] += 1;\n min[1] -= 1;\n }\n\n var aspect = (max[0] - min[0]) / (max[1] - min[1]); // FIXME If get view rect after data processed?\n\n var viewRect = getViewRect(seriesModel, api, aspect); // Position may be NaN, use view rect instead\n\n if (isNaN(aspect)) {\n min = [viewRect.x, viewRect.y];\n max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];\n }\n\n var bbWidth = max[0] - min[0];\n var bbHeight = max[1] - min[1];\n var viewWidth = viewRect.width;\n var viewHeight = viewRect.height;\n var viewCoordSys = seriesModel.coordinateSystem = new View();\n viewCoordSys.zoomLimit = seriesModel.get('scaleLimit');\n viewCoordSys.setBoundingRect(min[0], min[1], bbWidth, bbHeight);\n viewCoordSys.setViewRect(viewRect.x, viewRect.y, viewWidth, viewHeight); // Update roam info\n\n viewCoordSys.setCenter(seriesModel.get('center'));\n viewCoordSys.setZoom(seriesModel.get('zoom'));\n viewList.push(viewCoordSys);\n }\n });\n return viewList;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Line path for bezier and straight line draw\n */\n\nimport * as graphic from '../../util/graphic';\nimport * as vec2 from 'zrender/lib/core/vector';\nvar straightLineProto = graphic.Line.prototype;\nvar bezierCurveProto = graphic.BezierCurve.prototype;\n\nvar StraightLineShape =\n/** @class */\nfunction () {\n function StraightLineShape() {\n // Start point\n this.x1 = 0;\n this.y1 = 0; // End point\n\n this.x2 = 0;\n this.y2 = 0;\n this.percent = 1;\n }\n\n return StraightLineShape;\n}();\n\nvar CurveShape =\n/** @class */\nfunction (_super) {\n __extends(CurveShape, _super);\n\n function CurveShape() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return CurveShape;\n}(StraightLineShape);\n\nfunction isStraightLine(shape) {\n return isNaN(+shape.cpx1) || isNaN(+shape.cpy1);\n}\n\nvar ECLinePath =\n/** @class */\nfunction (_super) {\n __extends(ECLinePath, _super);\n\n function ECLinePath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'ec-line';\n return _this;\n }\n\n ECLinePath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n ECLinePath.prototype.getDefaultShape = function () {\n return new StraightLineShape();\n };\n\n ECLinePath.prototype.buildPath = function (ctx, shape) {\n if (isStraightLine(shape)) {\n straightLineProto.buildPath.call(this, ctx, shape);\n } else {\n bezierCurveProto.buildPath.call(this, ctx, shape);\n }\n };\n\n ECLinePath.prototype.pointAt = function (t) {\n if (isStraightLine(this.shape)) {\n return straightLineProto.pointAt.call(this, t);\n } else {\n return bezierCurveProto.pointAt.call(this, t);\n }\n };\n\n ECLinePath.prototype.tangentAt = function (t) {\n var shape = this.shape;\n var p = isStraightLine(shape) ? [shape.x2 - shape.x1, shape.y2 - shape.y1] : bezierCurveProto.tangentAt.call(this, t);\n return vec2.normalize(p, p);\n };\n\n return ECLinePath;\n}(graphic.Path);\n\nexport default ECLinePath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { isArray, each, retrieve2 } from 'zrender/lib/core/util';\nimport * as vector from 'zrender/lib/core/vector';\nimport * as symbolUtil from '../../util/symbol';\nimport ECLinePath from './LinePath';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, enterEmphasis, leaveEmphasis, SPECIAL_STATES } from '../../util/states';\nimport { getLabelStatesModels, setLabelStyle } from '../../label/labelStyle';\nimport { round, parsePercent } from '../../util/number';\nvar SYMBOL_CATEGORIES = ['fromSymbol', 'toSymbol'];\n\nfunction makeSymbolTypeKey(symbolCategory) {\n return '_' + symbolCategory + 'Type';\n}\n/**\n * @inner\n */\n\n\nfunction createSymbol(name, lineData, idx) {\n var symbolType = lineData.getItemVisual(idx, name);\n\n if (!symbolType || symbolType === 'none') {\n return;\n }\n\n var symbolSize = lineData.getItemVisual(idx, name + 'Size');\n var symbolRotate = lineData.getItemVisual(idx, name + 'Rotate');\n var symbolOffset = lineData.getItemVisual(idx, name + 'Offset') || 0;\n var symbolKeepAspect = lineData.getItemVisual(idx, name + 'KeepAspect');\n var symbolSizeArr = isArray(symbolSize) ? symbolSize : [symbolSize, symbolSize];\n var symbolOffsetArr = isArray(symbolOffset) ? symbolOffset : [symbolOffset, symbolOffset];\n symbolOffsetArr[0] = parsePercent(symbolOffsetArr[0], symbolSizeArr[0]);\n symbolOffsetArr[1] = parsePercent(retrieve2(symbolOffsetArr[1], symbolOffsetArr[0]), symbolSizeArr[1]);\n var symbolPath = symbolUtil.createSymbol(symbolType, -symbolSizeArr[0] / 2 + symbolOffsetArr[0], -symbolSizeArr[1] / 2 + symbolOffsetArr[1], symbolSizeArr[0], symbolSizeArr[1], null, symbolKeepAspect);\n symbolPath.__specifiedRotation = symbolRotate == null || isNaN(symbolRotate) ? void 0 : +symbolRotate * Math.PI / 180 || 0;\n symbolPath.name = name;\n return symbolPath;\n}\n\nfunction createLine(points) {\n var line = new ECLinePath({\n name: 'line',\n subPixelOptimize: true\n });\n setLinePoints(line.shape, points);\n return line;\n}\n\nfunction setLinePoints(targetShape, points) {\n targetShape.x1 = points[0][0];\n targetShape.y1 = points[0][1];\n targetShape.x2 = points[1][0];\n targetShape.y2 = points[1][1];\n targetShape.percent = 1;\n var cp1 = points[2];\n\n if (cp1) {\n targetShape.cpx1 = cp1[0];\n targetShape.cpy1 = cp1[1];\n } else {\n targetShape.cpx1 = NaN;\n targetShape.cpy1 = NaN;\n }\n}\n\nvar Line =\n/** @class */\nfunction (_super) {\n __extends(Line, _super);\n\n function Line(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this._createLine(lineData, idx, seriesScope);\n\n return _this;\n }\n\n Line.prototype._createLine = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var linePoints = lineData.getItemLayout(idx);\n var line = createLine(linePoints);\n line.shape.percent = 0;\n graphic.initProps(line, {\n shape: {\n percent: 1\n }\n }, seriesModel, idx);\n this.add(line);\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbol = createSymbol(symbolCategory, lineData, idx); // symbols must added after line to make sure\n // it will be updated after line#update.\n // Or symbol position and rotation update in line#beforeUpdate will be one frame slow\n\n this.add(symbol);\n this[makeSymbolTypeKey(symbolCategory)] = lineData.getItemVisual(idx, symbolCategory);\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n }; // TODO More strict on the List type in parameters?\n\n\n Line.prototype.updateData = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childOfName('line');\n var linePoints = lineData.getItemLayout(idx);\n var target = {\n shape: {}\n };\n setLinePoints(target.shape, linePoints);\n graphic.updateProps(line, target, seriesModel, idx);\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbolType = lineData.getItemVisual(idx, symbolCategory);\n var key = makeSymbolTypeKey(symbolCategory); // Symbol changed\n\n if (this[key] !== symbolType) {\n this.remove(this.childOfName(symbolCategory));\n var symbol = createSymbol(symbolCategory, lineData, idx);\n this.add(symbol);\n }\n\n this[key] = symbolType;\n }, this);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Line.prototype.getLinePath = function () {\n return this.childAt(0);\n };\n\n Line.prototype._updateCommonStl = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childOfName('line');\n var emphasisLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n var blurLineStyle = seriesScope && seriesScope.blurLineStyle;\n var selectLineStyle = seriesScope && seriesScope.selectLineStyle;\n var labelStatesModels = seriesScope && seriesScope.labelStatesModels; // Optimization for large dataset\n\n if (!seriesScope || lineData.hasItemOption) {\n var itemModel = lineData.getItemModel(idx);\n emphasisLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n blurLineStyle = itemModel.getModel(['blur', 'lineStyle']).getLineStyle();\n selectLineStyle = itemModel.getModel(['select', 'lineStyle']).getLineStyle();\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n var lineStyle = lineData.getItemVisual(idx, 'style');\n var visualColor = lineStyle.stroke;\n line.useStyle(lineStyle);\n line.style.fill = null;\n line.style.strokeNoScale = true;\n line.ensureState('emphasis').style = emphasisLineStyle;\n line.ensureState('blur').style = blurLineStyle;\n line.ensureState('select').style = selectLineStyle; // Update symbol\n\n each(SYMBOL_CATEGORIES, function (symbolCategory) {\n var symbol = this.childOfName(symbolCategory);\n\n if (symbol) {\n // Share opacity and color with line.\n symbol.setColor(visualColor);\n symbol.style.opacity = lineStyle.opacity;\n\n for (var i = 0; i < SPECIAL_STATES.length; i++) {\n var stateName = SPECIAL_STATES[i];\n var lineState = line.getState(stateName);\n\n if (lineState) {\n var lineStateStyle = lineState.style || {};\n var state = symbol.ensureState(stateName);\n var stateStyle = state.style || (state.style = {});\n\n if (lineStateStyle.stroke != null) {\n stateStyle[symbol.__isEmptyBrush ? 'stroke' : 'fill'] = lineStateStyle.stroke;\n }\n\n if (lineStateStyle.opacity != null) {\n stateStyle.opacity = lineStateStyle.opacity;\n }\n }\n }\n\n symbol.markRedraw();\n }\n }, this);\n var rawVal = seriesModel.getRawValue(idx);\n setLabelStyle(this, labelStatesModels, {\n labelDataIndex: idx,\n labelFetcher: {\n getFormattedLabel: function (dataIndex, stateName) {\n return seriesModel.getFormattedLabel(dataIndex, stateName, lineData.dataType);\n }\n },\n inheritColor: visualColor || '#000',\n defaultOpacity: lineStyle.opacity,\n defaultText: (rawVal == null ? lineData.getName(idx) : isFinite(rawVal) ? round(rawVal) : rawVal) + ''\n });\n var label = this.getTextContent(); // Always set `textStyle` even if `normalStyle.text` is null, because default\n // values have to be set on `normalStyle`.\n\n if (label) {\n var labelNormalModel = labelStatesModels.normal;\n label.__align = label.style.align;\n label.__verticalAlign = label.style.verticalAlign; // 'start', 'middle', 'end'\n\n label.__position = labelNormalModel.get('position') || 'middle';\n var distance = labelNormalModel.get('distance');\n\n if (!isArray(distance)) {\n distance = [distance, distance];\n }\n\n label.__labelDistance = distance;\n }\n\n this.setTextConfig({\n position: null,\n local: true,\n inside: false // Can't be inside for stroke element.\n\n });\n enableHoverEmphasis(this);\n };\n\n Line.prototype.highlight = function () {\n enterEmphasis(this);\n };\n\n Line.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n\n Line.prototype.updateLayout = function (lineData, idx) {\n this.setLinePoints(lineData.getItemLayout(idx));\n };\n\n Line.prototype.setLinePoints = function (points) {\n var linePath = this.childOfName('line');\n setLinePoints(linePath.shape, points);\n linePath.dirty();\n };\n\n Line.prototype.beforeUpdate = function () {\n var lineGroup = this;\n var symbolFrom = lineGroup.childOfName('fromSymbol');\n var symbolTo = lineGroup.childOfName('toSymbol');\n var label = lineGroup.getTextContent(); // Quick reject\n\n if (!symbolFrom && !symbolTo && (!label || label.ignore)) {\n return;\n }\n\n var invScale = 1;\n var parentNode = this.parent;\n\n while (parentNode) {\n if (parentNode.scaleX) {\n invScale /= parentNode.scaleX;\n }\n\n parentNode = parentNode.parent;\n }\n\n var line = lineGroup.childOfName('line'); // If line not changed\n // FIXME Parent scale changed\n\n if (!this.__dirty && !line.__dirty) {\n return;\n }\n\n var percent = line.shape.percent;\n var fromPos = line.pointAt(0);\n var toPos = line.pointAt(percent);\n var d = vector.sub([], toPos, fromPos);\n vector.normalize(d, d);\n\n function setSymbolRotation(symbol, percent) {\n // Fix #12388\n // when symbol is set to be 'arrow' in markLine,\n // symbolRotate value will be ignored, and compulsively use tangent angle.\n // rotate by default if symbol rotation is not specified\n var specifiedRotation = symbol.__specifiedRotation;\n\n if (specifiedRotation == null) {\n var tangent = line.tangentAt(percent);\n symbol.attr('rotation', (percent === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(tangent[1], tangent[0]));\n } else {\n symbol.attr('rotation', specifiedRotation);\n }\n }\n\n if (symbolFrom) {\n symbolFrom.setPosition(fromPos);\n setSymbolRotation(symbolFrom, 0);\n symbolFrom.scaleX = symbolFrom.scaleY = invScale * percent;\n symbolFrom.markRedraw();\n }\n\n if (symbolTo) {\n symbolTo.setPosition(toPos);\n setSymbolRotation(symbolTo, 1);\n symbolTo.scaleX = symbolTo.scaleY = invScale * percent;\n symbolTo.markRedraw();\n }\n\n if (label && !label.ignore) {\n label.x = label.y = 0;\n label.originX = label.originY = 0;\n var textAlign = void 0;\n var textVerticalAlign = void 0;\n var distance = label.__labelDistance;\n var distanceX = distance[0] * invScale;\n var distanceY = distance[1] * invScale;\n var halfPercent = percent / 2;\n var tangent = line.tangentAt(halfPercent);\n var n = [tangent[1], -tangent[0]];\n var cp = line.pointAt(halfPercent);\n\n if (n[1] > 0) {\n n[0] = -n[0];\n n[1] = -n[1];\n }\n\n var dir = tangent[0] < 0 ? -1 : 1;\n\n if (label.__position !== 'start' && label.__position !== 'end') {\n var rotation = -Math.atan2(tangent[1], tangent[0]);\n\n if (toPos[0] < fromPos[0]) {\n rotation = Math.PI + rotation;\n }\n\n label.rotation = rotation;\n }\n\n var dy = void 0;\n\n switch (label.__position) {\n case 'insideStartTop':\n case 'insideMiddleTop':\n case 'insideEndTop':\n case 'middle':\n dy = -distanceY;\n textVerticalAlign = 'bottom';\n break;\n\n case 'insideStartBottom':\n case 'insideMiddleBottom':\n case 'insideEndBottom':\n dy = distanceY;\n textVerticalAlign = 'top';\n break;\n\n default:\n dy = 0;\n textVerticalAlign = 'middle';\n }\n\n switch (label.__position) {\n case 'end':\n label.x = d[0] * distanceX + toPos[0];\n label.y = d[1] * distanceY + toPos[1];\n textAlign = d[0] > 0.8 ? 'left' : d[0] < -0.8 ? 'right' : 'center';\n textVerticalAlign = d[1] > 0.8 ? 'top' : d[1] < -0.8 ? 'bottom' : 'middle';\n break;\n\n case 'start':\n label.x = -d[0] * distanceX + fromPos[0];\n label.y = -d[1] * distanceY + fromPos[1];\n textAlign = d[0] > 0.8 ? 'right' : d[0] < -0.8 ? 'left' : 'center';\n textVerticalAlign = d[1] > 0.8 ? 'bottom' : d[1] < -0.8 ? 'top' : 'middle';\n break;\n\n case 'insideStartTop':\n case 'insideStart':\n case 'insideStartBottom':\n label.x = distanceX * dir + fromPos[0];\n label.y = fromPos[1] + dy;\n textAlign = tangent[0] < 0 ? 'right' : 'left';\n label.originX = -distanceX * dir;\n label.originY = -dy;\n break;\n\n case 'insideMiddleTop':\n case 'insideMiddle':\n case 'insideMiddleBottom':\n case 'middle':\n label.x = cp[0];\n label.y = cp[1] + dy;\n textAlign = 'center';\n label.originY = -dy;\n break;\n\n case 'insideEndTop':\n case 'insideEnd':\n case 'insideEndBottom':\n label.x = -distanceX * dir + toPos[0];\n label.y = toPos[1] + dy;\n textAlign = tangent[0] >= 0 ? 'right' : 'left';\n label.originX = distanceX * dir;\n label.originY = -dy;\n break;\n }\n\n label.scaleX = label.scaleY = invScale;\n label.setStyle({\n // Use the user specified text align and baseline first\n verticalAlign: label.__verticalAlign || textVerticalAlign,\n align: label.__align || textAlign\n });\n }\n };\n\n return Line;\n}(graphic.Group);\n\nexport default Line;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as graphic from '../../util/graphic';\nimport LineGroup from './Line';\nimport { getLabelStatesModels } from '../../label/labelStyle';\n\nvar LineDraw =\n/** @class */\nfunction () {\n function LineDraw(LineCtor) {\n this.group = new graphic.Group();\n this._LineCtor = LineCtor || LineGroup;\n }\n\n LineDraw.prototype.isPersistent = function () {\n return true;\n };\n\n ;\n\n LineDraw.prototype.updateData = function (lineData) {\n var _this = this;\n\n var lineDraw = this;\n var group = lineDraw.group;\n var oldLineData = lineDraw._lineData;\n lineDraw._lineData = lineData; // There is no oldLineData only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!oldLineData) {\n group.removeAll();\n }\n\n var seriesScope = makeSeriesScope(lineData);\n lineData.diff(oldLineData).add(function (idx) {\n _this._doAdd(lineData, idx, seriesScope);\n }).update(function (newIdx, oldIdx) {\n _this._doUpdate(oldLineData, lineData, oldIdx, newIdx, seriesScope);\n }).remove(function (idx) {\n group.remove(oldLineData.getItemGraphicEl(idx));\n }).execute();\n };\n\n ;\n\n LineDraw.prototype.updateLayout = function () {\n var lineData = this._lineData; // Do not support update layout in incremental mode.\n\n if (!lineData) {\n return;\n }\n\n lineData.eachItemGraphicEl(function (el, idx) {\n el.updateLayout(lineData, idx);\n }, this);\n };\n\n ;\n\n LineDraw.prototype.incrementalPrepareUpdate = function (lineData) {\n this._seriesScope = makeSeriesScope(lineData);\n this._lineData = null;\n this.group.removeAll();\n };\n\n ;\n\n LineDraw.prototype.incrementalUpdate = function (taskParams, lineData) {\n function updateIncrementalAndHover(el) {\n if (!el.isGroup && !isEffectObject(el)) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = taskParams.start; idx < taskParams.end; idx++) {\n var itemLayout = lineData.getItemLayout(idx);\n\n if (lineNeedsDraw(itemLayout)) {\n var el = new this._LineCtor(lineData, idx, this._seriesScope);\n el.traverse(updateIncrementalAndHover);\n this.group.add(el);\n lineData.setItemGraphicEl(idx, el);\n }\n }\n };\n\n ;\n\n LineDraw.prototype.remove = function () {\n this.group.removeAll();\n };\n\n ;\n\n LineDraw.prototype._doAdd = function (lineData, idx, seriesScope) {\n var itemLayout = lineData.getItemLayout(idx);\n\n if (!lineNeedsDraw(itemLayout)) {\n return;\n }\n\n var el = new this._LineCtor(lineData, idx, seriesScope);\n lineData.setItemGraphicEl(idx, el);\n this.group.add(el);\n };\n\n LineDraw.prototype._doUpdate = function (oldLineData, newLineData, oldIdx, newIdx, seriesScope) {\n var itemEl = oldLineData.getItemGraphicEl(oldIdx);\n\n if (!lineNeedsDraw(newLineData.getItemLayout(newIdx))) {\n this.group.remove(itemEl);\n return;\n }\n\n if (!itemEl) {\n itemEl = new this._LineCtor(newLineData, newIdx, seriesScope);\n } else {\n itemEl.updateData(newLineData, newIdx, seriesScope);\n }\n\n newLineData.setItemGraphicEl(newIdx, itemEl);\n this.group.add(itemEl);\n };\n\n return LineDraw;\n}();\n\nfunction isEffectObject(el) {\n return el.animators && el.animators.length > 0;\n}\n\nfunction makeSeriesScope(lineData) {\n var hostModel = lineData.hostModel;\n return {\n lineStyle: hostModel.getModel('lineStyle').getLineStyle(),\n emphasisLineStyle: hostModel.getModel(['emphasis', 'lineStyle']).getLineStyle(),\n blurLineStyle: hostModel.getModel(['blur', 'lineStyle']).getLineStyle(),\n selectLineStyle: hostModel.getModel(['select', 'lineStyle']).getLineStyle(),\n labelStatesModels: getLabelStatesModels(hostModel)\n };\n}\n\nfunction isPointNaN(pt) {\n return isNaN(pt[0]) || isNaN(pt[1]);\n}\n\nfunction lineNeedsDraw(pts) {\n return !isPointNaN(pts[0]) && !isPointNaN(pts[1]);\n}\n\nexport default LineDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as curveTool from 'zrender/lib/core/curve';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport { getSymbolSize } from './graphHelper';\nvar v1 = [];\nvar v2 = [];\nvar v3 = [];\nvar quadraticAt = curveTool.quadraticAt;\nvar v2DistSquare = vec2.distSquare;\nvar mathAbs = Math.abs;\n\nfunction intersectCurveCircle(curvePoints, center, radius) {\n var p0 = curvePoints[0];\n var p1 = curvePoints[1];\n var p2 = curvePoints[2];\n var d = Infinity;\n var t;\n var radiusSquare = radius * radius;\n var interval = 0.1;\n\n for (var _t = 0.1; _t <= 0.9; _t += 0.1) {\n v1[0] = quadraticAt(p0[0], p1[0], p2[0], _t);\n v1[1] = quadraticAt(p0[1], p1[1], p2[1], _t);\n var diff = mathAbs(v2DistSquare(v1, center) - radiusSquare);\n\n if (diff < d) {\n d = diff;\n t = _t;\n }\n } // Assume the segment is monotone,Find root through Bisection method\n // At most 32 iteration\n\n\n for (var i = 0; i < 32; i++) {\n // let prev = t - interval;\n var next = t + interval; // v1[0] = quadraticAt(p0[0], p1[0], p2[0], prev);\n // v1[1] = quadraticAt(p0[1], p1[1], p2[1], prev);\n\n v2[0] = quadraticAt(p0[0], p1[0], p2[0], t);\n v2[1] = quadraticAt(p0[1], p1[1], p2[1], t);\n v3[0] = quadraticAt(p0[0], p1[0], p2[0], next);\n v3[1] = quadraticAt(p0[1], p1[1], p2[1], next);\n var diff = v2DistSquare(v2, center) - radiusSquare;\n\n if (mathAbs(diff) < 1e-2) {\n break;\n } // let prevDiff = v2DistSquare(v1, center) - radiusSquare;\n\n\n var nextDiff = v2DistSquare(v3, center) - radiusSquare;\n interval /= 2;\n\n if (diff < 0) {\n if (nextDiff >= 0) {\n t = t + interval;\n } else {\n t = t - interval;\n }\n } else {\n if (nextDiff >= 0) {\n t = t - interval;\n } else {\n t = t + interval;\n }\n }\n }\n\n return t;\n} // Adjust edge to avoid\n\n\nexport default function adjustEdge(graph, scale) {\n var tmp0 = [];\n var quadraticSubdivide = curveTool.quadraticSubdivide;\n var pts = [[], [], []];\n var pts2 = [[], []];\n var v = [];\n scale /= 2;\n graph.eachEdge(function (edge, idx) {\n var linePoints = edge.getLayout();\n var fromSymbol = edge.getVisual('fromSymbol');\n var toSymbol = edge.getVisual('toSymbol');\n\n if (!linePoints.__original) {\n linePoints.__original = [vec2.clone(linePoints[0]), vec2.clone(linePoints[1])];\n\n if (linePoints[2]) {\n linePoints.__original.push(vec2.clone(linePoints[2]));\n }\n }\n\n var originalPoints = linePoints.__original; // Quadratic curve\n\n if (linePoints[2] != null) {\n vec2.copy(pts[0], originalPoints[0]);\n vec2.copy(pts[1], originalPoints[2]);\n vec2.copy(pts[2], originalPoints[1]);\n\n if (fromSymbol && fromSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node1);\n var t = intersectCurveCircle(pts, originalPoints[0], symbolSize * scale); // Subdivide and get the second\n\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[0][0] = tmp0[3];\n pts[1][0] = tmp0[4];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[0][1] = tmp0[3];\n pts[1][1] = tmp0[4];\n }\n\n if (toSymbol && toSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node2);\n var t = intersectCurveCircle(pts, originalPoints[1], symbolSize * scale); // Subdivide and get the first\n\n quadraticSubdivide(pts[0][0], pts[1][0], pts[2][0], t, tmp0);\n pts[1][0] = tmp0[1];\n pts[2][0] = tmp0[2];\n quadraticSubdivide(pts[0][1], pts[1][1], pts[2][1], t, tmp0);\n pts[1][1] = tmp0[1];\n pts[2][1] = tmp0[2];\n } // Copy back to layout\n\n\n vec2.copy(linePoints[0], pts[0]);\n vec2.copy(linePoints[1], pts[2]);\n vec2.copy(linePoints[2], pts[1]);\n } // Line\n else {\n vec2.copy(pts2[0], originalPoints[0]);\n vec2.copy(pts2[1], originalPoints[1]);\n vec2.sub(v, pts2[1], pts2[0]);\n vec2.normalize(v, v);\n\n if (fromSymbol && fromSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node1);\n vec2.scaleAndAdd(pts2[0], pts2[0], v, symbolSize * scale);\n }\n\n if (toSymbol && toSymbol !== 'none') {\n var symbolSize = getSymbolSize(edge.node2);\n vec2.scaleAndAdd(pts2[1], pts2[1], v, -symbolSize * scale);\n }\n\n vec2.copy(linePoints[0], pts2[0]);\n vec2.copy(linePoints[1], pts2[1]);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SymbolDraw from '../helper/SymbolDraw';\nimport LineDraw from '../helper/LineDraw';\nimport RoamController from '../../component/helper/RoamController';\nimport * as roamHelper from '../../component/helper/roamHelper';\nimport { onIrrelevantElement } from '../../component/helper/cursorHelper';\nimport * as graphic from '../../util/graphic';\nimport adjustEdge from './adjustEdge';\nimport { getNodeGlobalScale } from './graphHelper';\nimport ChartView from '../../view/Chart';\nimport { getECData } from '../../util/innerStore';\n\nfunction isViewCoordSys(coordSys) {\n return coordSys.type === 'view';\n}\n\nvar GraphView =\n/** @class */\nfunction (_super) {\n __extends(GraphView, _super);\n\n function GraphView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphView.type;\n return _this;\n }\n\n GraphView.prototype.init = function (ecModel, api) {\n var symbolDraw = new SymbolDraw();\n var lineDraw = new LineDraw();\n var group = this.group;\n this._controller = new RoamController(api.getZr());\n this._controllerHost = {\n target: group\n };\n group.add(symbolDraw.group);\n group.add(lineDraw.group);\n this._symbolDraw = symbolDraw;\n this._lineDraw = lineDraw;\n this._firstRender = true;\n };\n\n GraphView.prototype.render = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var coordSys = seriesModel.coordinateSystem;\n this._model = seriesModel;\n var symbolDraw = this._symbolDraw;\n var lineDraw = this._lineDraw;\n var group = this.group;\n\n if (isViewCoordSys(coordSys)) {\n var groupNewProp = {\n x: coordSys.x,\n y: coordSys.y,\n scaleX: coordSys.scaleX,\n scaleY: coordSys.scaleY\n };\n\n if (this._firstRender) {\n group.attr(groupNewProp);\n } else {\n graphic.updateProps(group, groupNewProp, seriesModel);\n }\n } // Fix edge contact point with node\n\n\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n var data = seriesModel.getData();\n symbolDraw.updateData(data);\n var edgeData = seriesModel.getEdgeData(); // TODO: TYPE\n\n lineDraw.updateData(edgeData);\n\n this._updateNodeAndLinkScale();\n\n this._updateController(seriesModel, ecModel, api);\n\n clearTimeout(this._layoutTimeout);\n var forceLayout = seriesModel.forceLayout;\n var layoutAnimation = seriesModel.get(['force', 'layoutAnimation']);\n\n if (forceLayout) {\n this._startForceLayoutIteration(forceLayout, layoutAnimation);\n }\n\n data.graph.eachNode(function (node) {\n var idx = node.dataIndex;\n var el = node.getGraphicEl();\n var itemModel = node.getModel(); // Update draggable\n\n el.off('drag').off('dragend');\n var draggable = itemModel.get('draggable');\n\n if (draggable) {\n el.on('drag', function () {\n if (forceLayout) {\n forceLayout.warmUp();\n !_this._layouting && _this._startForceLayoutIteration(forceLayout, layoutAnimation);\n forceLayout.setFixed(idx); // Write position back to layout\n\n data.setItemLayout(idx, [el.x, el.y]);\n }\n }).on('dragend', function () {\n if (forceLayout) {\n forceLayout.setUnfixed(idx);\n }\n });\n }\n\n el.setDraggable(draggable && !!forceLayout);\n var focus = itemModel.get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = node.getAdjacentDataIndices();\n }\n });\n data.graph.eachEdge(function (edge) {\n var el = edge.getGraphicEl();\n var focus = edge.getModel().get(['emphasis', 'focus']);\n\n if (focus === 'adjacency') {\n getECData(el).focus = {\n edge: [edge.dataIndex],\n node: [edge.node1.dataIndex, edge.node2.dataIndex]\n };\n }\n });\n var circularRotateLabel = seriesModel.get('layout') === 'circular' && seriesModel.get(['circular', 'rotateLabel']);\n var cx = data.getLayout('cx');\n var cy = data.getLayout('cy');\n data.eachItemGraphicEl(function (el, idx) {\n var itemModel = data.getItemModel(idx);\n var labelRotate = itemModel.get(['label', 'rotate']) || 0;\n var symbolPath = el.getSymbolPath();\n\n if (circularRotateLabel) {\n var pos = data.getItemLayout(idx);\n var rad = Math.atan2(pos[1] - cy, pos[0] - cx);\n\n if (rad < 0) {\n rad = Math.PI * 2 + rad;\n }\n\n var isLeft = pos[0] < cx;\n\n if (isLeft) {\n rad = rad - Math.PI;\n }\n\n var textPosition = isLeft ? 'left' : 'right';\n symbolPath.setTextConfig({\n rotation: -rad,\n position: textPosition,\n origin: 'center'\n });\n var emphasisState = symbolPath.ensureState('emphasis');\n zrUtil.extend(emphasisState.textConfig || (emphasisState.textConfig = {}), {\n position: textPosition\n });\n } else {\n symbolPath.setTextConfig({\n rotation: labelRotate *= Math.PI / 180\n });\n }\n });\n this._firstRender = false;\n };\n\n GraphView.prototype.dispose = function () {\n this._controller && this._controller.dispose();\n this._controllerHost = null;\n };\n\n GraphView.prototype._startForceLayoutIteration = function (forceLayout, layoutAnimation) {\n var self = this;\n\n (function step() {\n forceLayout.step(function (stopped) {\n self.updateLayout(self._model);\n (self._layouting = !stopped) && (layoutAnimation ? self._layoutTimeout = setTimeout(step, 16) : step());\n });\n })();\n };\n\n GraphView.prototype._updateController = function (seriesModel, ecModel, api) {\n var _this = this;\n\n var controller = this._controller;\n var controllerHost = this._controllerHost;\n var group = this.group;\n controller.setPointerChecker(function (e, x, y) {\n var rect = group.getBoundingRect();\n rect.applyTransform(group.transform);\n return rect.contain(x, y) && !onIrrelevantElement(e, api, seriesModel);\n });\n\n if (!isViewCoordSys(seriesModel.coordinateSystem)) {\n controller.disable();\n return;\n }\n\n controller.enable(seriesModel.get('roam'));\n controllerHost.zoomLimit = seriesModel.get('scaleLimit');\n controllerHost.zoom = seriesModel.coordinateSystem.getZoom();\n controller.off('pan').off('zoom').on('pan', function (e) {\n roamHelper.updateViewOnPan(controllerHost, e.dx, e.dy);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n dx: e.dx,\n dy: e.dy\n });\n }).on('zoom', function (e) {\n roamHelper.updateViewOnZoom(controllerHost, e.scale, e.originX, e.originY);\n api.dispatchAction({\n seriesId: seriesModel.id,\n type: 'graphRoam',\n zoom: e.scale,\n originX: e.originX,\n originY: e.originY\n });\n\n _this._updateNodeAndLinkScale();\n\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n _this._lineDraw.updateLayout(); // Only update label layout on zoom\n\n\n api.updateLabelLayout();\n });\n };\n\n GraphView.prototype._updateNodeAndLinkScale = function () {\n var seriesModel = this._model;\n var data = seriesModel.getData();\n var nodeScale = getNodeGlobalScale(seriesModel);\n data.eachItemGraphicEl(function (el, idx) {\n el.setSymbolScale(nodeScale);\n });\n };\n\n GraphView.prototype.updateLayout = function (seriesModel) {\n adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));\n\n this._symbolDraw.updateLayout();\n\n this._lineDraw.updateLayout();\n };\n\n GraphView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove();\n this._lineDraw && this._lineDraw.remove();\n };\n\n GraphView.type = 'graph';\n return GraphView;\n}(ChartView);\n\nexport default GraphView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // id may be function name of Object, add a prefix to avoid this problem.\n\nfunction generateNodeKey(id) {\n return '_EC_' + id;\n}\n\nvar Graph =\n/** @class */\nfunction () {\n function Graph(directed) {\n this.type = 'graph';\n this.nodes = [];\n this.edges = [];\n this._nodesMap = {};\n /**\n * @type {Object.}\n * @private\n */\n\n this._edgesMap = {};\n this._directed = directed || false;\n }\n /**\n * If is directed graph\n */\n\n\n Graph.prototype.isDirected = function () {\n return this._directed;\n };\n\n ;\n /**\n * Add a new node\n */\n\n Graph.prototype.addNode = function (id, dataIndex) {\n id = id == null ? '' + dataIndex : '' + id;\n var nodesMap = this._nodesMap;\n\n if (nodesMap[generateNodeKey(id)]) {\n if (process.env.NODE_ENV !== 'production') {\n console.error('Graph nodes have duplicate name or id');\n }\n\n return;\n }\n\n var node = new GraphNode(id, dataIndex);\n node.hostGraph = this;\n this.nodes.push(node);\n nodesMap[generateNodeKey(id)] = node;\n return node;\n };\n\n ;\n /**\n * Get node by data index\n */\n\n Graph.prototype.getNodeByIndex = function (dataIndex) {\n var rawIdx = this.data.getRawIndex(dataIndex);\n return this.nodes[rawIdx];\n };\n\n ;\n /**\n * Get node by id\n */\n\n Graph.prototype.getNodeById = function (id) {\n return this._nodesMap[generateNodeKey(id)];\n };\n\n ;\n /**\n * Add a new edge\n */\n\n Graph.prototype.addEdge = function (n1, n2, dataIndex) {\n var nodesMap = this._nodesMap;\n var edgesMap = this._edgesMap; // PNEDING\n\n if (typeof n1 === 'number') {\n n1 = this.nodes[n1];\n }\n\n if (typeof n2 === 'number') {\n n2 = this.nodes[n2];\n }\n\n if (!(n1 instanceof GraphNode)) {\n n1 = nodesMap[generateNodeKey(n1)];\n }\n\n if (!(n2 instanceof GraphNode)) {\n n2 = nodesMap[generateNodeKey(n2)];\n }\n\n if (!n1 || !n2) {\n return;\n }\n\n var key = n1.id + '-' + n2.id;\n var edge = new GraphEdge(n1, n2, dataIndex);\n edge.hostGraph = this;\n\n if (this._directed) {\n n1.outEdges.push(edge);\n n2.inEdges.push(edge);\n }\n\n n1.edges.push(edge);\n\n if (n1 !== n2) {\n n2.edges.push(edge);\n }\n\n this.edges.push(edge);\n edgesMap[key] = edge;\n return edge;\n };\n\n ;\n /**\n * Get edge by data index\n */\n\n Graph.prototype.getEdgeByIndex = function (dataIndex) {\n var rawIdx = this.edgeData.getRawIndex(dataIndex);\n return this.edges[rawIdx];\n };\n\n ;\n /**\n * Get edge by two linked nodes\n */\n\n Graph.prototype.getEdge = function (n1, n2) {\n if (n1 instanceof GraphNode) {\n n1 = n1.id;\n }\n\n if (n2 instanceof GraphNode) {\n n2 = n2.id;\n }\n\n var edgesMap = this._edgesMap;\n\n if (this._directed) {\n return edgesMap[n1 + '-' + n2];\n } else {\n return edgesMap[n1 + '-' + n2] || edgesMap[n2 + '-' + n1];\n }\n };\n\n ;\n /**\n * Iterate all nodes\n */\n\n Graph.prototype.eachNode = function (cb, context) {\n var nodes = this.nodes;\n var len = nodes.length;\n\n for (var i = 0; i < len; i++) {\n if (nodes[i].dataIndex >= 0) {\n cb.call(context, nodes[i], i);\n }\n }\n };\n\n ;\n /**\n * Iterate all edges\n */\n\n Graph.prototype.eachEdge = function (cb, context) {\n var edges = this.edges;\n var len = edges.length;\n\n for (var i = 0; i < len; i++) {\n if (edges[i].dataIndex >= 0 && edges[i].node1.dataIndex >= 0 && edges[i].node2.dataIndex >= 0) {\n cb.call(context, edges[i], i);\n }\n }\n };\n\n ;\n /**\n * Breadth first traverse\n * Return true to stop traversing\n */\n\n Graph.prototype.breadthFirstTraverse = function (cb, startNode, direction, context) {\n if (!(startNode instanceof GraphNode)) {\n startNode = this._nodesMap[generateNodeKey(startNode)];\n }\n\n if (!startNode) {\n return;\n }\n\n var edgeType = direction === 'out' ? 'outEdges' : direction === 'in' ? 'inEdges' : 'edges';\n\n for (var i = 0; i < this.nodes.length; i++) {\n this.nodes[i].__visited = false;\n }\n\n if (cb.call(context, startNode, null)) {\n return;\n }\n\n var queue = [startNode];\n\n while (queue.length) {\n var currentNode = queue.shift();\n var edges = currentNode[edgeType];\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n var otherNode = e.node1 === currentNode ? e.node2 : e.node1;\n\n if (!otherNode.__visited) {\n if (cb.call(context, otherNode, currentNode)) {\n // Stop traversing\n return;\n }\n\n queue.push(otherNode);\n otherNode.__visited = true;\n }\n }\n }\n };\n\n ; // TODO\n // depthFirstTraverse(\n // cb, startNode, direction, context\n // ) {\n // };\n // Filter update\n\n Graph.prototype.update = function () {\n var data = this.data;\n var edgeData = this.edgeData;\n var nodes = this.nodes;\n var edges = this.edges;\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n nodes[i].dataIndex = -1;\n }\n\n for (var i = 0, len = data.count(); i < len; i++) {\n nodes[data.getRawIndex(i)].dataIndex = i;\n }\n\n edgeData.filterSelf(function (idx) {\n var edge = edges[edgeData.getRawIndex(idx)];\n return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;\n }); // Update edge\n\n for (var i = 0, len = edges.length; i < len; i++) {\n edges[i].dataIndex = -1;\n }\n\n for (var i = 0, len = edgeData.count(); i < len; i++) {\n edges[edgeData.getRawIndex(i)].dataIndex = i;\n }\n };\n\n ;\n /**\n * @return {module:echarts/data/Graph}\n */\n\n Graph.prototype.clone = function () {\n var graph = new Graph(this._directed);\n var nodes = this.nodes;\n var edges = this.edges;\n\n for (var i = 0; i < nodes.length; i++) {\n graph.addNode(nodes[i].id, nodes[i].dataIndex);\n }\n\n for (var i = 0; i < edges.length; i++) {\n var e = edges[i];\n graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);\n }\n\n return graph;\n };\n\n ;\n return Graph;\n}();\n\nvar GraphNode =\n/** @class */\nfunction () {\n function GraphNode(id, dataIndex) {\n this.inEdges = [];\n this.outEdges = [];\n this.edges = [];\n this.dataIndex = -1;\n this.id = id == null ? '' : id;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.degree = function () {\n return this.edges.length;\n };\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.inDegree = function () {\n return this.inEdges.length;\n };\n /**\n * @return {number}\n */\n\n\n GraphNode.prototype.outDegree = function () {\n return this.outEdges.length;\n };\n\n GraphNode.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var graph = this.hostGraph;\n var itemModel = graph.data.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n };\n\n GraphNode.prototype.getAdjacentDataIndices = function () {\n var dataIndices = {\n edge: [],\n node: []\n };\n\n for (var i = 0; i < this.edges.length; i++) {\n var adjacentEdge = this.edges[i];\n\n if (adjacentEdge.dataIndex < 0) {\n continue;\n }\n\n dataIndices.edge.push(adjacentEdge.dataIndex);\n dataIndices.node.push(adjacentEdge.node1.dataIndex, adjacentEdge.node2.dataIndex);\n }\n\n return dataIndices;\n };\n\n return GraphNode;\n}();\n\nvar GraphEdge =\n/** @class */\nfunction () {\n function GraphEdge(n1, n2, dataIndex) {\n this.dataIndex = -1;\n this.node1 = n1;\n this.node2 = n2;\n this.dataIndex = dataIndex == null ? -1 : dataIndex;\n }\n\n GraphEdge.prototype.getModel = function (path) {\n if (this.dataIndex < 0) {\n return;\n }\n\n var graph = this.hostGraph;\n var itemModel = graph.edgeData.getItemModel(this.dataIndex);\n return itemModel.getModel(path);\n };\n\n GraphEdge.prototype.getAdjacentDataIndices = function () {\n return {\n edge: [this.dataIndex],\n node: [this.node1.dataIndex, this.node2.dataIndex]\n };\n };\n\n return GraphEdge;\n}();\n\nfunction createGraphDataProxyMixin(hostName, dataName) {\n return {\n /**\n * @param Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.\n */\n getValue: function (dimension) {\n var data = this[hostName][dataName];\n return data.get(data.getDimension(dimension || 'value'), this.dataIndex);\n },\n // TODO: TYPE stricter type.\n setVisual: function (key, value) {\n this.dataIndex >= 0 && this[hostName][dataName].setItemVisual(this.dataIndex, key, value);\n },\n getVisual: function (key) {\n return this[hostName][dataName].getItemVisual(this.dataIndex, key);\n },\n setLayout: function (layout, merge) {\n this.dataIndex >= 0 && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);\n },\n getLayout: function () {\n return this[hostName][dataName].getItemLayout(this.dataIndex);\n },\n getGraphicEl: function () {\n return this[hostName][dataName].getItemGraphicEl(this.dataIndex);\n },\n getRawIndex: function () {\n return this[hostName][dataName].getRawIndex(this.dataIndex);\n }\n };\n}\n\n;\n;\n;\nzrUtil.mixin(GraphNode, createGraphDataProxyMixin('hostGraph', 'data'));\nzrUtil.mixin(GraphEdge, createGraphDataProxyMixin('hostGraph', 'edgeData'));\nexport default Graph;\nexport { GraphNode, GraphEdge };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport List from '../../data/List';\nimport Graph from '../../data/Graph';\nimport linkList from '../../data/helper/linkList';\nimport createDimensions from '../../data/helper/createDimensions';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport createListFromArray from './createListFromArray';\nimport { convertOptionIdName } from '../../util/model';\nexport default function createGraphFromNodeEdge(nodes, edges, seriesModel, directed, beforeLink) {\n // ??? TODO\n // support dataset?\n var graph = new Graph(directed);\n\n for (var i = 0; i < nodes.length; i++) {\n graph.addNode(zrUtil.retrieve( // Id, name, dataIndex\n nodes[i].id, nodes[i].name, i), i);\n }\n\n var linkNameList = [];\n var validEdges = [];\n var linkCount = 0;\n\n for (var i = 0; i < edges.length; i++) {\n var link = edges[i];\n var source = link.source;\n var target = link.target; // addEdge may fail when source or target not exists\n\n if (graph.addEdge(source, target, linkCount)) {\n validEdges.push(link);\n linkNameList.push(zrUtil.retrieve(convertOptionIdName(link.id, null), source + ' > ' + target));\n linkCount++;\n }\n }\n\n var coordSys = seriesModel.get('coordinateSystem');\n var nodeData;\n\n if (coordSys === 'cartesian2d' || coordSys === 'polar') {\n nodeData = createListFromArray(nodes, seriesModel);\n } else {\n var coordSysCtor = CoordinateSystem.get(coordSys);\n var coordDimensions = coordSysCtor ? coordSysCtor.dimensions || [] : []; // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs\n // `value` dimension, but graph need `value` dimension. It's better to\n // uniform this behavior.\n\n if (zrUtil.indexOf(coordDimensions, 'value') < 0) {\n coordDimensions.concat(['value']);\n }\n\n var dimensionNames = createDimensions(nodes, {\n coordDimensions: coordDimensions\n });\n nodeData = new List(dimensionNames, seriesModel);\n nodeData.initData(nodes);\n }\n\n var edgeData = new List(['value'], seriesModel);\n edgeData.initData(validEdges, linkNameList);\n beforeLink && beforeLink(nodeData, edgeData);\n linkList({\n mainData: nodeData,\n struct: graph,\n structAttr: 'graph',\n datas: {\n node: nodeData,\n edge: edgeData\n },\n datasAttr: {\n node: 'data',\n edge: 'edgeData'\n }\n }); // Update dataIndex of nodes and edges because invalid edge may be removed\n\n graph.update();\n return graph;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport List from '../../data/List';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { defaultEmphasis } from '../../util/model';\nimport Model from '../../model/Model';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nimport { defaultSeriesFormatTooltip } from '../../component/tooltip/seriesFormatTooltip';\nimport { initCurvenessList, createEdgeMapForCurveness } from '../helper/multipleGraphEdgeHelper';\n\nvar GraphSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(GraphSeriesModel, _super);\n\n function GraphSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n GraphSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments);\n\n var self = this;\n\n function getCategoriesData() {\n return self._categoriesData;\n } // Provide data for legend select\n\n\n this.legendVisualProvider = new LegendVisualProvider(getCategoriesData, getCategoriesData);\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n };\n\n GraphSeriesModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n this.fillDataTextStyle(option.edges || option.links);\n\n this._updateCategoriesData();\n };\n\n GraphSeriesModel.prototype.mergeDefaultAndTheme = function (option) {\n _super.prototype.mergeDefaultAndTheme.apply(this, arguments);\n\n defaultEmphasis(option, 'edgeLabel', ['show']);\n };\n\n GraphSeriesModel.prototype.getInitialData = function (option, ecModel) {\n var edges = option.edges || option.links || [];\n var nodes = option.data || option.nodes || [];\n var self = this;\n\n if (nodes && edges) {\n // auto curveness\n initCurvenessList(this);\n var graph = createGraphFromNodeEdge(nodes, edges, this, true, beforeLink);\n zrUtil.each(graph.edges, function (edge) {\n createEdgeMapForCurveness(edge.node1, edge.node2, this, edge.dataIndex);\n }, this);\n return graph.data;\n }\n\n function beforeLink(nodeData, edgeData) {\n // Overwrite nodeData.getItemModel to\n nodeData.wrapMethod('getItemModel', function (model) {\n var categoriesModels = self._categoriesModels;\n var categoryIdx = model.getShallow('category');\n var categoryModel = categoriesModels[categoryIdx];\n\n if (categoryModel) {\n categoryModel.parentModel = model.parentModel;\n model.parentModel = categoryModel;\n }\n\n return model;\n }); // TODO Inherit resolveParentPath by default in Model#getModel?\n\n var oldGetModel = Model.prototype.getModel;\n\n function newGetModel(path, parentModel) {\n var model = oldGetModel.call(this, path, parentModel);\n model.resolveParentPath = resolveParentPath;\n return model;\n }\n\n edgeData.wrapMethod('getItemModel', function (model) {\n model.resolveParentPath = resolveParentPath;\n model.getModel = newGetModel;\n return model;\n });\n\n function resolveParentPath(pathArr) {\n if (pathArr && (pathArr[0] === 'label' || pathArr[1] === 'label')) {\n var newPathArr = pathArr.slice();\n\n if (pathArr[0] === 'label') {\n newPathArr[0] = 'edgeLabel';\n } else if (pathArr[1] === 'label') {\n newPathArr[1] = 'edgeLabel';\n }\n\n return newPathArr;\n }\n\n return pathArr;\n }\n }\n };\n\n GraphSeriesModel.prototype.getGraph = function () {\n return this.getData().graph;\n };\n\n GraphSeriesModel.prototype.getEdgeData = function () {\n return this.getGraph().edgeData;\n };\n\n GraphSeriesModel.prototype.getCategoriesData = function () {\n return this._categoriesData;\n };\n\n GraphSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n if (dataType === 'edge') {\n var nodeData = this.getData();\n var params = this.getDataParams(dataIndex, dataType);\n var edge = nodeData.graph.getEdgeByIndex(dataIndex);\n var sourceName = nodeData.getName(edge.node1.dataIndex);\n var targetName = nodeData.getName(edge.node2.dataIndex);\n var nameArr = [];\n sourceName != null && nameArr.push(sourceName);\n targetName != null && nameArr.push(targetName);\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > '),\n value: params.value,\n noValue: params.value == null\n });\n } // dataType === 'node' or empty\n\n\n var nodeMarkup = defaultSeriesFormatTooltip({\n series: this,\n dataIndex: dataIndex,\n multipleSeries: multipleSeries\n });\n return nodeMarkup;\n };\n\n GraphSeriesModel.prototype._updateCategoriesData = function () {\n var categories = zrUtil.map(this.option.categories || [], function (category) {\n // Data must has value\n return category.value != null ? category : zrUtil.extend({\n value: 0\n }, category);\n });\n var categoriesData = new List(['value'], this);\n categoriesData.initData(categories);\n this._categoriesData = categoriesData;\n this._categoriesModels = categoriesData.mapArray(function (idx) {\n return categoriesData.getItemModel(idx);\n });\n };\n\n GraphSeriesModel.prototype.setZoom = function (zoom) {\n this.option.zoom = zoom;\n };\n\n GraphSeriesModel.prototype.setCenter = function (center) {\n this.option.center = center;\n };\n\n GraphSeriesModel.prototype.isAnimationEnabled = function () {\n return _super.prototype.isAnimationEnabled.call(this) // Not enable animation when do force layout\n && !(this.get('layout') === 'force' && this.get(['force', 'layoutAnimation']));\n };\n\n GraphSeriesModel.type = 'series.graph';\n GraphSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n GraphSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n // Default option for all coordinate systems\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // polarIndex: 0,\n // geoIndex: 0,\n legendHoverLink: true,\n layout: null,\n // Configuration of circular layout\n circular: {\n rotateLabel: false\n },\n // Configuration of force directed layout\n force: {\n initLayout: null,\n // Node repulsion. Can be an array to represent range.\n repulsion: [0, 50],\n gravity: 0.1,\n // Initial friction\n friction: 0.6,\n // Edge length. Can be an array to represent range.\n edgeLength: 30,\n layoutAnimation: true\n },\n left: 'center',\n top: 'center',\n // right: null,\n // bottom: null,\n // width: '80%',\n // height: '80%',\n symbol: 'circle',\n symbolSize: 10,\n edgeSymbol: ['none', 'none'],\n edgeSymbolSize: 10,\n edgeLabel: {\n position: 'middle',\n distance: 5\n },\n draggable: false,\n roam: false,\n // Default on center of graph\n center: null,\n zoom: 1,\n // Symbol size scale ratio in roam\n nodeScaleRatio: 0.6,\n // cursor: null,\n // categories: [],\n // data: []\n // Or\n // nodes: []\n //\n // links: []\n // Or\n // edges: []\n label: {\n show: false,\n formatter: '{b}'\n },\n itemStyle: {},\n lineStyle: {\n color: '#aaa',\n width: 1,\n opacity: 0.5\n },\n emphasis: {\n scale: true,\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return GraphSeriesModel;\n}(SeriesModel);\n\nexport default GraphSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport categoryFilter from './categoryFilter';\nimport categoryVisual from './categoryVisual';\nimport edgeVisual from './edgeVisual';\nimport simpleLayout from './simpleLayout';\nimport circularLayout from './circularLayout';\nimport forceLayout from './forceLayout';\nimport createView from './createView';\nimport View from '../../coord/View';\nimport GraphView from './GraphView';\nimport GraphSeriesModel from './GraphSeries';\nimport { updateCenterAndZoom } from '../../action/roamHelper';\nvar actionInfo = {\n type: 'graphRoam',\n event: 'graphRoam',\n update: 'none'\n};\nexport function install(registers) {\n registers.registerChartView(GraphView);\n registers.registerSeriesModel(GraphSeriesModel);\n registers.registerProcessor(categoryFilter);\n registers.registerVisual(categoryVisual);\n registers.registerVisual(edgeVisual);\n registers.registerLayout(simpleLayout);\n registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, circularLayout);\n registers.registerLayout(forceLayout);\n registers.registerCoordinateSystem('graphView', {\n dimensions: View.dimensions,\n create: createView\n }); // Register legacy focus actions\n\n registers.registerAction({\n type: 'focusNodeAdjacency',\n event: 'focusNodeAdjacency',\n update: 'series:focusNodeAdjacency'\n }, function () {});\n registers.registerAction({\n type: 'unfocusNodeAdjacency',\n event: 'unfocusNodeAdjacency',\n update: 'series:unfocusNodeAdjacency'\n }, function () {}); // Register roam action.\n\n registers.registerAction(actionInfo, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n query: payload\n }, function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var res = updateCenterAndZoom(coordSys, payload);\n seriesModel.setCenter && seriesModel.setCenter(res.center);\n seriesModel.setZoom && seriesModel.setZoom(res.zoom);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Path from 'zrender/lib/graphic/Path';\n\nvar PointerShape =\n/** @class */\nfunction () {\n function PointerShape() {\n this.angle = 0;\n this.width = 10;\n this.r = 10;\n this.x = 0;\n this.y = 0;\n }\n\n return PointerShape;\n}();\n\nvar PointerPath =\n/** @class */\nfunction (_super) {\n __extends(PointerPath, _super);\n\n function PointerPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'pointer';\n return _this;\n }\n\n PointerPath.prototype.getDefaultShape = function () {\n return new PointerShape();\n };\n\n PointerPath.prototype.buildPath = function (ctx, shape) {\n var mathCos = Math.cos;\n var mathSin = Math.sin;\n var r = shape.r;\n var width = shape.width;\n var angle = shape.angle;\n var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);\n var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);\n angle = shape.angle - Math.PI / 2;\n ctx.moveTo(x, y);\n ctx.lineTo(shape.x + mathCos(angle) * width, shape.y + mathSin(angle) * width);\n ctx.lineTo(shape.x + mathCos(shape.angle) * r, shape.y + mathSin(shape.angle) * r);\n ctx.lineTo(shape.x - mathCos(angle) * width, shape.y - mathSin(angle) * width);\n ctx.lineTo(x, y);\n };\n\n return PointerPath;\n}(Path);\n\nexport default PointerPath;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport PointerPath from './PointerPath';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport { createTextStyle, setLabelValueAnimation, animateLabelValue } from '../../label/labelStyle';\nimport ChartView from '../../view/Chart';\nimport { parsePercent, round, linearMap } from '../../util/number';\nimport Sausage from '../../util/shape/sausage';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { extend } from 'zrender/lib/core/util';\n\nfunction parsePosition(seriesModel, api) {\n var center = seriesModel.get('center');\n var width = api.getWidth();\n var height = api.getHeight();\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], api.getWidth());\n var cy = parsePercent(center[1], api.getHeight());\n var r = parsePercent(seriesModel.get('radius'), size / 2);\n return {\n cx: cx,\n cy: cy,\n r: r\n };\n}\n\nfunction formatLabel(value, labelFormatter) {\n var label = value == null ? '' : value + '';\n\n if (labelFormatter) {\n if (typeof labelFormatter === 'string') {\n label = labelFormatter.replace('{value}', label);\n } else if (typeof labelFormatter === 'function') {\n label = labelFormatter(value);\n }\n }\n\n return label;\n}\n\nvar PI2 = Math.PI * 2;\n\nvar GaugeView =\n/** @class */\nfunction (_super) {\n __extends(GaugeView, _super);\n\n function GaugeView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GaugeView.type;\n return _this;\n }\n\n GaugeView.prototype.render = function (seriesModel, ecModel, api) {\n this.group.removeAll();\n var colorList = seriesModel.get(['axisLine', 'lineStyle', 'color']);\n var posInfo = parsePosition(seriesModel, api);\n\n this._renderMain(seriesModel, ecModel, api, colorList, posInfo);\n\n this._data = seriesModel.getData();\n };\n\n GaugeView.prototype.dispose = function () {};\n\n GaugeView.prototype._renderMain = function (seriesModel, ecModel, api, colorList, posInfo) {\n var group = this.group;\n var clockwise = seriesModel.get('clockwise');\n var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;\n var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;\n var axisLineModel = seriesModel.getModel('axisLine');\n var roundCap = axisLineModel.get('roundCap');\n var MainPath = roundCap ? Sausage : graphic.Sector;\n var showAxis = axisLineModel.get('show');\n var lineStyleModel = axisLineModel.getModel('lineStyle');\n var axisLineWidth = lineStyleModel.get('width');\n var angleRangeSpan = !((endAngle - startAngle) % PI2) && endAngle !== startAngle ? PI2 : (endAngle - startAngle) % PI2;\n var prevEndAngle = startAngle;\n\n for (var i = 0; showAxis && i < colorList.length; i++) {\n // Clamp\n var percent = Math.min(Math.max(colorList[i][0], 0), 1);\n endAngle = startAngle + angleRangeSpan * percent;\n var sector = new MainPath({\n shape: {\n startAngle: prevEndAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: posInfo.r - axisLineWidth,\n r: posInfo.r\n },\n silent: true\n });\n sector.setStyle({\n fill: colorList[i][1]\n });\n sector.setStyle(lineStyleModel.getLineStyle( // Because we use sector to simulate arc\n // so the properties for stroking are useless\n ['color', 'width']));\n group.add(sector);\n prevEndAngle = endAngle;\n }\n\n var getColor = function (percent) {\n // Less than 0\n if (percent <= 0) {\n return colorList[0][1];\n }\n\n var i;\n\n for (i = 0; i < colorList.length; i++) {\n if (colorList[i][0] >= percent && (i === 0 ? 0 : colorList[i - 1][0]) < percent) {\n return colorList[i][1];\n }\n } // More than 1\n\n\n return colorList[i - 1][1];\n };\n\n if (!clockwise) {\n var tmp = startAngle;\n startAngle = endAngle;\n endAngle = tmp;\n }\n\n this._renderTicks(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);\n\n this._renderTitleAndDetail(seriesModel, ecModel, api, getColor, posInfo);\n\n this._renderAnchor(seriesModel, posInfo);\n\n this._renderPointer(seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth);\n };\n\n GaugeView.prototype._renderTicks = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {\n var group = this.group;\n var cx = posInfo.cx;\n var cy = posInfo.cy;\n var r = posInfo.r;\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var splitLineModel = seriesModel.getModel('splitLine');\n var tickModel = seriesModel.getModel('axisTick');\n var labelModel = seriesModel.getModel('axisLabel');\n var splitNumber = seriesModel.get('splitNumber');\n var subSplitNumber = tickModel.get('splitNumber');\n var splitLineLen = parsePercent(splitLineModel.get('length'), r);\n var tickLen = parsePercent(tickModel.get('length'), r);\n var angle = startAngle;\n var step = (endAngle - startAngle) / splitNumber;\n var subStep = step / subSplitNumber;\n var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();\n var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();\n var splitLineDistance = splitLineModel.get('distance');\n var unitX;\n var unitY;\n\n for (var i = 0; i <= splitNumber; i++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle); // Split line\n\n if (splitLineModel.get('show')) {\n var distance = splitLineDistance ? splitLineDistance + axisLineWidth : axisLineWidth;\n var splitLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - splitLineLen - distance) + cx,\n y2: unitY * (r - splitLineLen - distance) + cy\n },\n style: splitLineStyle,\n silent: true\n });\n\n if (splitLineStyle.stroke === 'auto') {\n splitLine.setStyle({\n stroke: getColor(i / splitNumber)\n });\n }\n\n group.add(splitLine);\n } // Label\n\n\n if (labelModel.get('show')) {\n var distance = labelModel.get('distance') + splitLineDistance;\n var label = formatLabel(round(i / splitNumber * (maxVal - minVal) + minVal), labelModel.get('formatter'));\n var autoColor = getColor(i / splitNumber);\n group.add(new graphic.Text({\n style: createTextStyle(labelModel, {\n text: label,\n x: unitX * (r - splitLineLen - distance) + cx,\n y: unitY * (r - splitLineLen - distance) + cy,\n verticalAlign: unitY < -0.8 ? 'top' : unitY > 0.8 ? 'bottom' : 'middle',\n align: unitX < -0.4 ? 'left' : unitX > 0.4 ? 'right' : 'center'\n }, {\n inheritColor: autoColor\n }),\n silent: true\n }));\n } // Axis tick\n\n\n if (tickModel.get('show') && i !== splitNumber) {\n var distance = tickModel.get('distance');\n distance = distance ? distance + axisLineWidth : axisLineWidth;\n\n for (var j = 0; j <= subSplitNumber; j++) {\n unitX = Math.cos(angle);\n unitY = Math.sin(angle);\n var tickLine = new graphic.Line({\n shape: {\n x1: unitX * (r - distance) + cx,\n y1: unitY * (r - distance) + cy,\n x2: unitX * (r - tickLen - distance) + cx,\n y2: unitY * (r - tickLen - distance) + cy\n },\n silent: true,\n style: tickLineStyle\n });\n\n if (tickLineStyle.stroke === 'auto') {\n tickLine.setStyle({\n stroke: getColor((i + j / subSplitNumber) / splitNumber)\n });\n }\n\n group.add(tickLine);\n angle += subStep;\n }\n\n angle -= subStep;\n } else {\n angle += step;\n }\n }\n };\n\n GaugeView.prototype._renderPointer = function (seriesModel, ecModel, api, getColor, posInfo, startAngle, endAngle, clockwise, axisLineWidth) {\n var group = this.group;\n var oldData = this._data;\n var oldProgressData = this._progressEls;\n var progressList = [];\n var showPointer = seriesModel.get(['pointer', 'show']);\n var progressModel = seriesModel.getModel('progress');\n var showProgress = progressModel.get('show');\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var valueExtent = [minVal, maxVal];\n var angleExtent = [startAngle, endAngle];\n\n function createPointer(idx, angle) {\n var itemModel = data.getItemModel(idx);\n var pointerModel = itemModel.getModel('pointer');\n var pointerWidth = parsePercent(pointerModel.get('width'), posInfo.r);\n var pointerLength = parsePercent(pointerModel.get('length'), posInfo.r);\n var pointerStr = seriesModel.get(['pointer', 'icon']);\n var pointerOffset = pointerModel.get('offsetCenter');\n var pointerOffsetX = parsePercent(pointerOffset[0], posInfo.r);\n var pointerOffsetY = parsePercent(pointerOffset[1], posInfo.r);\n var pointerKeepAspect = pointerModel.get('keepAspect');\n var pointer; // not exist icon type will be set 'rect'\n\n if (pointerStr) {\n pointer = createSymbol(pointerStr, pointerOffsetX - pointerWidth / 2, pointerOffsetY - pointerLength, pointerWidth, pointerLength, null, pointerKeepAspect);\n } else {\n pointer = new PointerPath({\n shape: {\n angle: -Math.PI / 2,\n width: pointerWidth,\n r: pointerLength,\n x: pointerOffsetX,\n y: pointerOffsetY\n }\n });\n }\n\n pointer.rotation = -(angle + Math.PI / 2);\n pointer.x = posInfo.cx;\n pointer.y = posInfo.cy;\n return pointer;\n }\n\n function createProgress(idx, endAngle) {\n var roundCap = progressModel.get('roundCap');\n var ProgressPath = roundCap ? Sausage : graphic.Sector;\n var isOverlap = progressModel.get('overlap');\n var progressWidth = isOverlap ? progressModel.get('width') : axisLineWidth / data.count();\n var r0 = isOverlap ? posInfo.r - progressWidth : posInfo.r - (idx + 1) * progressWidth;\n var r = isOverlap ? posInfo.r : posInfo.r - idx * progressWidth;\n var progress = new ProgressPath({\n shape: {\n startAngle: startAngle,\n endAngle: endAngle,\n cx: posInfo.cx,\n cy: posInfo.cy,\n clockwise: clockwise,\n r0: r0,\n r: r\n }\n });\n isOverlap && (progress.z2 = maxVal - data.get(valueDim, idx) % maxVal);\n return progress;\n }\n\n if (showProgress || showPointer) {\n data.diff(oldData).add(function (idx) {\n if (showPointer) {\n var pointer = createPointer(idx, startAngle);\n graphic.initProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, idx), valueExtent, angleExtent, true) + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(idx, pointer);\n }\n\n if (showProgress) {\n var progress = createProgress(idx, startAngle);\n var isClip = progressModel.get('clip');\n graphic.initProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, idx), valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n progressList[idx] = progress;\n }\n }).update(function (newIdx, oldIdx) {\n if (showPointer) {\n var previousPointer = oldData.getItemGraphicEl(oldIdx);\n var previousRotate = previousPointer ? previousPointer.rotation : startAngle;\n var pointer = createPointer(newIdx, previousRotate);\n pointer.rotation = previousRotate;\n graphic.updateProps(pointer, {\n rotation: -(linearMap(data.get(valueDim, newIdx), valueExtent, angleExtent, true) + Math.PI / 2)\n }, seriesModel);\n group.add(pointer);\n data.setItemGraphicEl(newIdx, pointer);\n }\n\n if (showProgress) {\n var previousProgress = oldProgressData[oldIdx];\n var previousEndAngle = previousProgress ? previousProgress.shape.endAngle : startAngle;\n var progress = createProgress(newIdx, previousEndAngle);\n var isClip = progressModel.get('clip');\n graphic.updateProps(progress, {\n shape: {\n endAngle: linearMap(data.get(valueDim, newIdx), valueExtent, angleExtent, isClip)\n }\n }, seriesModel);\n group.add(progress);\n progressList[newIdx] = progress;\n }\n }).execute();\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n\n if (showPointer) {\n var pointer = data.getItemGraphicEl(idx);\n var symbolStyle = data.getItemVisual(idx, 'style');\n var visualColor = symbolStyle.fill;\n\n if (pointer instanceof ZRImage) {\n var pathStyle = pointer.style;\n pointer.useStyle(extend({\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolStyle));\n } else {\n pointer.useStyle(symbolStyle);\n pointer.type !== 'pointer' && pointer.setColor(visualColor);\n }\n\n pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());\n\n if (pointer.style.fill === 'auto') {\n pointer.setStyle('fill', getColor(linearMap(data.get(valueDim, idx), valueExtent, [0, 1], true)));\n }\n\n pointer.z2EmphasisLift = 0;\n setStatesStylesFromModel(pointer, itemModel);\n enableHoverEmphasis(pointer, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n if (showProgress) {\n var progress = progressList[idx];\n progress.useStyle(data.getItemVisual(idx, 'style'));\n progress.setStyle(itemModel.getModel(['progress', 'itemStyle']).getItemStyle());\n progress.z2EmphasisLift = 0;\n setStatesStylesFromModel(progress, itemModel);\n enableHoverEmphasis(progress, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n });\n this._progressEls = progressList;\n }\n };\n\n GaugeView.prototype._renderAnchor = function (seriesModel, posInfo) {\n var anchorModel = seriesModel.getModel('anchor');\n var showAnchor = anchorModel.get('show');\n\n if (showAnchor) {\n var anchorSize = anchorModel.get('size');\n var anchorType = anchorModel.get('icon');\n var offsetCenter = anchorModel.get('offsetCenter');\n var anchorKeepAspect = anchorModel.get('keepAspect');\n var anchor = createSymbol(anchorType, posInfo.cx - anchorSize / 2 + parsePercent(offsetCenter[0], posInfo.r), posInfo.cy - anchorSize / 2 + parsePercent(offsetCenter[1], posInfo.r), anchorSize, anchorSize, null, anchorKeepAspect);\n anchor.z2 = anchorModel.get('showAbove') ? 1 : 0;\n anchor.setStyle(anchorModel.getModel('itemStyle').getItemStyle());\n this.group.add(anchor);\n }\n };\n\n GaugeView.prototype._renderTitleAndDetail = function (seriesModel, ecModel, api, getColor, posInfo) {\n var _this = this;\n\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var minVal = +seriesModel.get('min');\n var maxVal = +seriesModel.get('max');\n var contentGroup = new graphic.Group();\n var newTitleEls = [];\n var newDetailEls = [];\n var hasAnimation = seriesModel.isAnimationEnabled();\n data.diff(this._data).add(function (idx) {\n newTitleEls[idx] = new graphic.Text({\n silent: true\n });\n newDetailEls[idx] = new graphic.Text({\n silent: true\n });\n }).update(function (idx, oldIdx) {\n newTitleEls[idx] = _this._titleEls[oldIdx];\n newDetailEls[idx] = _this._detailEls[oldIdx];\n }).execute();\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var value = data.get(valueDim, idx);\n var itemGroup = new graphic.Group();\n var autoColor = getColor(linearMap(value, [minVal, maxVal], [0, 1], true));\n var itemTitleModel = itemModel.getModel('title');\n\n if (itemTitleModel.get('show')) {\n var titleOffsetCenter = itemTitleModel.get('offsetCenter');\n var titleX = posInfo.cx + parsePercent(titleOffsetCenter[0], posInfo.r);\n var titleY = posInfo.cy + parsePercent(titleOffsetCenter[1], posInfo.r);\n var labelEl = newTitleEls[idx];\n labelEl.attr({\n style: createTextStyle(itemTitleModel, {\n x: titleX,\n y: titleY,\n text: data.getName(idx),\n align: 'center',\n verticalAlign: 'middle'\n }, {\n inheritColor: autoColor\n })\n });\n itemGroup.add(labelEl);\n }\n\n var itemDetailModel = itemModel.getModel('detail');\n\n if (itemDetailModel.get('show')) {\n var detailOffsetCenter = itemDetailModel.get('offsetCenter');\n var detailX = posInfo.cx + parsePercent(detailOffsetCenter[0], posInfo.r);\n var detailY = posInfo.cy + parsePercent(detailOffsetCenter[1], posInfo.r);\n var width = parsePercent(itemDetailModel.get('width'), posInfo.r);\n var height = parsePercent(itemDetailModel.get('height'), posInfo.r);\n var detailColor = seriesModel.get(['progress', 'show']) ? data.getItemVisual(idx, 'style').fill : autoColor;\n var labelEl = newDetailEls[idx];\n var formatter_1 = itemDetailModel.get('formatter');\n labelEl.attr({\n style: createTextStyle(itemDetailModel, {\n x: detailX,\n y: detailY,\n text: formatLabel(value, formatter_1),\n width: isNaN(width) ? null : width,\n height: isNaN(height) ? null : height,\n align: 'center',\n verticalAlign: 'middle'\n }, {\n inheritColor: detailColor\n })\n });\n setLabelValueAnimation(labelEl, {\n normal: itemDetailModel\n }, value, function (value) {\n return formatLabel(value, formatter_1);\n });\n hasAnimation && animateLabelValue(labelEl, idx, data, seriesModel, {\n getFormattedLabel: function (labelDataIndex, status, dataType, labelDimIndex, fmt, extendParams) {\n return formatLabel(extendParams ? extendParams.interpolatedValue : value, formatter_1);\n }\n });\n itemGroup.add(labelEl);\n }\n\n contentGroup.add(itemGroup);\n });\n this.group.add(contentGroup);\n this._titleEls = newTitleEls;\n this._detailEls = newDetailEls;\n };\n\n GaugeView.type = 'gauge';\n return GaugeView;\n}(ChartView);\n\nexport default GaugeView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListSimply from '../helper/createListSimply';\nimport SeriesModel from '../../model/Series';\n\nvar GaugeSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(GaugeSeriesModel, _super);\n\n function GaugeSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GaugeSeriesModel.type;\n _this.visualStyleAccessPath = 'itemStyle';\n _this.useColorPaletteOnData = true;\n return _this;\n }\n\n GaugeSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, ['value']);\n };\n\n GaugeSeriesModel.type = 'series.gauge';\n GaugeSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n // 默认全局居中\n center: ['50%', '50%'],\n legendHoverLink: true,\n radius: '75%',\n startAngle: 225,\n endAngle: -45,\n clockwise: true,\n // 最小值\n min: 0,\n // 最大值\n max: 100,\n // 分割段数,默认为10\n splitNumber: 10,\n // 坐标轴线\n axisLine: {\n // 默认显示,属性show控制显示与否\n show: true,\n roundCap: false,\n lineStyle: {\n color: [[1, '#E6EBF8']],\n width: 10\n }\n },\n // 坐标轴线\n progress: {\n // 默认显示,属性show控制显示与否\n show: false,\n overlap: true,\n width: 10,\n roundCap: false,\n clip: true\n },\n // 分隔线\n splitLine: {\n // 默认显示,属性show控制显示与否\n show: true,\n // 属性length控制线长\n length: 10,\n distance: 10,\n // 属性lineStyle(详见lineStyle)控制线条样式\n lineStyle: {\n color: '#63677A',\n width: 3,\n type: 'solid'\n }\n },\n // 坐标轴小标记\n axisTick: {\n // 属性show控制显示与否,默认不显示\n show: true,\n // 每份split细分多少段\n splitNumber: 5,\n // 属性length控制线长\n length: 6,\n distance: 10,\n // 属性lineStyle控制线条样式\n lineStyle: {\n color: '#63677A',\n width: 1,\n type: 'solid'\n }\n },\n axisLabel: {\n show: true,\n distance: 15,\n // formatter: null,\n color: '#464646',\n fontSize: 12\n },\n pointer: {\n icon: null,\n offsetCenter: [0, 0],\n show: true,\n length: '60%',\n width: 6,\n keepAspect: false\n },\n anchor: {\n show: false,\n showAbove: false,\n size: 6,\n icon: 'circle',\n offsetCenter: [0, 0],\n keepAspect: false,\n itemStyle: {\n color: '#fff',\n borderWidth: 0,\n borderColor: '#5470c6'\n }\n },\n title: {\n show: true,\n // x, y,单位px\n offsetCenter: [0, '20%'],\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#464646',\n fontSize: 16,\n valueAnimation: false\n },\n detail: {\n show: true,\n backgroundColor: 'rgba(0,0,0,0)',\n borderWidth: 0,\n borderColor: '#ccc',\n width: 100,\n height: null,\n padding: [5, 10],\n // x, y,单位px\n offsetCenter: [0, '40%'],\n // formatter: null,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#464646',\n fontSize: 30,\n fontWeight: 'bold',\n lineHeight: 30,\n valueAnimation: false\n }\n };\n return GaugeSeriesModel;\n}(SeriesModel);\n\nexport default GaugeSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport GaugeView from './GaugeView';\nimport GaugeSeriesModel from './GaugeSeries';\nexport function install(registers) {\n registers.registerChartView(GaugeView);\n registers.registerSeriesModel(GaugeSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { setLabelLineStyle, getLabelLineStatesModels } from '../../label/labelGuideHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nvar opacityAccessPath = ['itemStyle', 'opacity'];\n/**\n * Piece of pie including Sector, Label, LabelLine\n */\n\nvar FunnelPiece =\n/** @class */\nfunction (_super) {\n __extends(FunnelPiece, _super);\n\n function FunnelPiece(data, idx) {\n var _this = _super.call(this) || this;\n\n var polygon = _this;\n var labelLine = new graphic.Polyline();\n var text = new graphic.Text();\n polygon.setTextContent(text);\n\n _this.setTextGuideLine(labelLine);\n\n _this.updateData(data, idx, true);\n\n return _this;\n }\n\n FunnelPiece.prototype.updateData = function (data, idx, firstCreate) {\n var polygon = this;\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var layout = data.getItemLayout(idx);\n var emphasisModel = itemModel.getModel('emphasis');\n var opacity = itemModel.get(opacityAccessPath);\n opacity = opacity == null ? 1 : opacity; // Update common style\n\n polygon.useStyle(data.getItemVisual(idx, 'style'));\n polygon.style.lineJoin = 'round';\n\n if (firstCreate) {\n polygon.setShape({\n points: layout.points\n });\n polygon.style.opacity = 0;\n graphic.initProps(polygon, {\n style: {\n opacity: opacity\n }\n }, seriesModel, idx);\n } else {\n graphic.updateProps(polygon, {\n style: {\n opacity: opacity\n },\n shape: {\n points: layout.points\n }\n }, seriesModel, idx);\n }\n\n setStatesStylesFromModel(polygon, itemModel);\n\n this._updateLabel(data, idx);\n\n enableHoverEmphasis(this, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n };\n\n FunnelPiece.prototype._updateLabel = function (data, idx) {\n var polygon = this;\n var labelLine = this.getTextGuideLine();\n var labelText = polygon.getTextContent();\n var seriesModel = data.hostModel;\n var itemModel = data.getItemModel(idx);\n var layout = data.getItemLayout(idx);\n var labelLayout = layout.label;\n var style = data.getItemVisual(idx, 'style');\n var visualColor = style.fill;\n setLabelStyle( // position will not be used in setLabelStyle\n labelText, getLabelStatesModels(itemModel), {\n labelFetcher: data.hostModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: data.getName(idx)\n }, {\n normal: {\n align: labelLayout.textAlign,\n verticalAlign: labelLayout.verticalAlign\n }\n });\n polygon.setTextConfig({\n local: true,\n inside: !!labelLayout.inside,\n insideStroke: visualColor,\n // insideFill: 'auto',\n outsideFill: visualColor\n });\n var linePoints = labelLayout.linePoints;\n labelLine.setShape({\n points: linePoints\n });\n polygon.textGuideLineConfig = {\n anchor: linePoints ? new graphic.Point(linePoints[0][0], linePoints[0][1]) : null\n }; // Make sure update style on labelText after setLabelStyle.\n // Because setLabelStyle will replace a new style on it.\n\n graphic.updateProps(labelText, {\n style: {\n x: labelLayout.x,\n y: labelLayout.y\n }\n }, seriesModel, idx);\n labelText.attr({\n rotation: labelLayout.rotation,\n originX: labelLayout.x,\n originY: labelLayout.y,\n z2: 10\n });\n setLabelLineStyle(polygon, getLabelLineStatesModels(itemModel), {\n // Default use item visual color\n stroke: visualColor\n });\n };\n\n return FunnelPiece;\n}(graphic.Polygon);\n\nvar FunnelView =\n/** @class */\nfunction (_super) {\n __extends(FunnelView, _super);\n\n function FunnelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = FunnelView.type;\n _this.ignoreLabelLineUpdate = true;\n return _this;\n }\n\n FunnelView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n data.diff(oldData).add(function (idx) {\n var funnelPiece = new FunnelPiece(data, idx);\n data.setItemGraphicEl(idx, funnelPiece);\n group.add(funnelPiece);\n }).update(function (newIdx, oldIdx) {\n var piece = oldData.getItemGraphicEl(oldIdx);\n piece.updateData(data, newIdx);\n group.add(piece);\n data.setItemGraphicEl(newIdx, piece);\n }).remove(function (idx) {\n var piece = oldData.getItemGraphicEl(idx);\n graphic.removeElementWithFadeOut(piece, seriesModel, idx);\n }).execute();\n this._data = data;\n };\n\n FunnelView.prototype.remove = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n FunnelView.prototype.dispose = function () {};\n\n FunnelView.type = 'funnel';\n return FunnelView;\n}(ChartView);\n\nexport default FunnelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport createListSimply from '../helper/createListSimply';\nimport { defaultEmphasis } from '../../util/model';\nimport { makeSeriesEncodeForNameBased } from '../../data/helper/sourceHelper';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport SeriesModel from '../../model/Series';\n\nvar FunnelSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(FunnelSeriesModel, _super);\n\n function FunnelSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = FunnelSeriesModel.type;\n _this.useColorPaletteOnData = true;\n return _this;\n }\n\n FunnelSeriesModel.prototype.init = function (option) {\n _super.prototype.init.apply(this, arguments); // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this)); // Extend labelLine emphasis\n\n this._defaultLabelLine(option);\n };\n\n FunnelSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListSimply(this, {\n coordDimensions: ['value'],\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForNameBased, this)\n });\n };\n\n FunnelSeriesModel.prototype._defaultLabelLine = function (option) {\n // Extend labelLine emphasis\n defaultEmphasis(option, 'labelLine', ['show']);\n var labelLineNormalOpt = option.labelLine;\n var labelLineEmphasisOpt = option.emphasis.labelLine; // Not show label line if `label.normal.show = false`\n\n labelLineNormalOpt.show = labelLineNormalOpt.show && option.label.show;\n labelLineEmphasisOpt.show = labelLineEmphasisOpt.show && option.emphasis.label.show;\n }; // Overwrite\n\n\n FunnelSeriesModel.prototype.getDataParams = function (dataIndex) {\n var data = this.getData();\n\n var params = _super.prototype.getDataParams.call(this, dataIndex);\n\n var valueDim = data.mapDimension('value');\n var sum = data.getSum(valueDim); // Percent is 0 if sum is 0\n\n params.percent = !sum ? 0 : +(data.get(valueDim, dataIndex) / sum * 100).toFixed(2);\n params.$vars.push('percent');\n return params;\n };\n\n FunnelSeriesModel.type = 'series.funnel';\n FunnelSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n // 默认取数据最小最大值\n // min: 0,\n // max: 100,\n minSize: '0%',\n maxSize: '100%',\n sort: 'descending',\n orient: 'vertical',\n gap: 0,\n funnelAlign: 'center',\n label: {\n show: true,\n position: 'outer' // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n\n },\n labelLine: {\n show: true,\n length: 20,\n lineStyle: {\n // color: 各异,\n width: 1\n }\n },\n itemStyle: {\n // color: 各异,\n borderColor: '#fff',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return FunnelSeriesModel;\n}(SeriesModel);\n\nexport default FunnelSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as layout from '../../util/layout';\nimport { parsePercent, linearMap } from '../../util/number';\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nfunction getSortedIndices(data, sort) {\n var valueDim = data.mapDimension('value');\n var valueArr = data.mapArray(valueDim, function (val) {\n return val;\n });\n var indices = [];\n var isAscending = sort === 'ascending';\n\n for (var i = 0, len = data.count(); i < len; i++) {\n indices[i] = i;\n } // Add custom sortable function & none sortable opetion by \"options.sort\"\n\n\n if (typeof sort === 'function') {\n indices.sort(sort);\n } else if (sort !== 'none') {\n indices.sort(function (a, b) {\n return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a];\n });\n }\n\n return indices;\n}\n\nfunction labelLayout(data) {\n var seriesModel = data.hostModel;\n var orient = seriesModel.get('orient');\n data.each(function (idx) {\n var itemModel = data.getItemModel(idx);\n var labelModel = itemModel.getModel('label');\n var labelPosition = labelModel.get('position');\n var labelLineModel = itemModel.getModel('labelLine');\n var layout = data.getItemLayout(idx);\n var points = layout.points;\n var isLabelInside = labelPosition === 'inner' || labelPosition === 'inside' || labelPosition === 'center' || labelPosition === 'insideLeft' || labelPosition === 'insideRight';\n var textAlign;\n var textX;\n var textY;\n var linePoints;\n\n if (isLabelInside) {\n if (labelPosition === 'insideLeft') {\n textX = (points[0][0] + points[3][0]) / 2 + 5;\n textY = (points[0][1] + points[3][1]) / 2;\n textAlign = 'left';\n } else if (labelPosition === 'insideRight') {\n textX = (points[1][0] + points[2][0]) / 2 - 5;\n textY = (points[1][1] + points[2][1]) / 2;\n textAlign = 'right';\n } else {\n textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;\n textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;\n textAlign = 'center';\n }\n\n linePoints = [[textX, textY], [textX, textY]];\n } else {\n var x1 = void 0;\n var y1 = void 0;\n var x2 = void 0;\n var y2 = void 0;\n var labelLineLen = labelLineModel.get('length');\n\n if (process.env.NODE_ENV !== 'production') {\n if (orient === 'vertical' && ['top', 'bottom'].indexOf(labelPosition) > -1) {\n labelPosition = 'left';\n console.warn('Position error: Funnel chart on vertical orient dose not support top and bottom.');\n }\n\n if (orient === 'horizontal' && ['left', 'right'].indexOf(labelPosition) > -1) {\n labelPosition = 'bottom';\n console.warn('Position error: Funnel chart on horizontal orient dose not support left and right.');\n }\n }\n\n if (labelPosition === 'left') {\n // Left side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n } else if (labelPosition === 'right') {\n // Right side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n } else if (labelPosition === 'top') {\n // Top side\n x1 = (points[3][0] + points[0][0]) / 2;\n y1 = (points[3][1] + points[0][1]) / 2;\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else if (labelPosition === 'bottom') {\n // Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else if (labelPosition === 'rightTop') {\n // RightTop side\n x1 = orient === 'horizontal' ? points[3][0] : points[1][0];\n y1 = orient === 'horizontal' ? points[3][1] : points[1][1];\n\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'top';\n }\n } else if (labelPosition === 'rightBottom') {\n // RightBottom side\n x1 = points[2][0];\n y1 = points[2][1];\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'bottom';\n }\n } else if (labelPosition === 'leftTop') {\n // LeftTop side\n x1 = points[0][0];\n y1 = orient === 'horizontal' ? points[0][1] : points[1][1];\n\n if (orient === 'horizontal') {\n y2 = y1 - labelLineLen;\n textY = y2 - 5;\n textAlign = 'center';\n } else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n } else if (labelPosition === 'leftBottom') {\n // LeftBottom side\n x1 = orient === 'horizontal' ? points[1][0] : points[3][0];\n y1 = orient === 'horizontal' ? points[1][1] : points[2][1];\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 - labelLineLen;\n textX = x2 - 5;\n textAlign = 'right';\n }\n } else {\n // Right side or Bottom side\n x1 = (points[1][0] + points[2][0]) / 2;\n y1 = (points[1][1] + points[2][1]) / 2;\n\n if (orient === 'horizontal') {\n y2 = y1 + labelLineLen;\n textY = y2 + 5;\n textAlign = 'center';\n } else {\n x2 = x1 + labelLineLen;\n textX = x2 + 5;\n textAlign = 'left';\n }\n }\n\n if (orient === 'horizontal') {\n x2 = x1;\n textX = x2;\n } else {\n y2 = y1;\n textY = y2;\n }\n\n linePoints = [[x1, y1], [x2, y2]];\n }\n\n layout.label = {\n linePoints: linePoints,\n x: textX,\n y: textY,\n verticalAlign: 'middle',\n textAlign: textAlign,\n inside: isLabelInside\n };\n });\n}\n\nexport default function funnelLayout(ecModel, api) {\n ecModel.eachSeriesByType('funnel', function (seriesModel) {\n var data = seriesModel.getData();\n var valueDim = data.mapDimension('value');\n var sort = seriesModel.get('sort');\n var viewRect = getViewRect(seriesModel, api);\n var orient = seriesModel.get('orient');\n var viewWidth = viewRect.width;\n var viewHeight = viewRect.height;\n var indices = getSortedIndices(data, sort);\n var x = viewRect.x;\n var y = viewRect.y;\n var sizeExtent = orient === 'horizontal' ? [parsePercent(seriesModel.get('minSize'), viewHeight), parsePercent(seriesModel.get('maxSize'), viewHeight)] : [parsePercent(seriesModel.get('minSize'), viewWidth), parsePercent(seriesModel.get('maxSize'), viewWidth)];\n var dataExtent = data.getDataExtent(valueDim);\n var min = seriesModel.get('min');\n var max = seriesModel.get('max');\n\n if (min == null) {\n min = Math.min(dataExtent[0], 0);\n }\n\n if (max == null) {\n max = dataExtent[1];\n }\n\n var funnelAlign = seriesModel.get('funnelAlign');\n var gap = seriesModel.get('gap');\n var viewSize = orient === 'horizontal' ? viewWidth : viewHeight;\n var itemSize = (viewSize - gap * (data.count() - 1)) / data.count();\n\n var getLinePoints = function (idx, offset) {\n // End point index is data.count() and we assign it 0\n if (orient === 'horizontal') {\n var val_1 = data.get(valueDim, idx) || 0;\n var itemHeight = linearMap(val_1, [min, max], sizeExtent, true);\n var y0 = void 0;\n\n switch (funnelAlign) {\n case 'top':\n y0 = y;\n break;\n\n case 'center':\n y0 = y + (viewHeight - itemHeight) / 2;\n break;\n\n case 'bottom':\n y0 = y + (viewHeight - itemHeight);\n break;\n }\n\n return [[offset, y0], [offset, y0 + itemHeight]];\n }\n\n var val = data.get(valueDim, idx) || 0;\n var itemWidth = linearMap(val, [min, max], sizeExtent, true);\n var x0;\n\n switch (funnelAlign) {\n case 'left':\n x0 = x;\n break;\n\n case 'center':\n x0 = x + (viewWidth - itemWidth) / 2;\n break;\n\n case 'right':\n x0 = x + viewWidth - itemWidth;\n break;\n }\n\n return [[x0, offset], [x0 + itemWidth, offset]];\n };\n\n if (sort === 'ascending') {\n // From bottom to top\n itemSize = -itemSize;\n gap = -gap;\n\n if (orient === 'horizontal') {\n x += viewWidth;\n } else {\n y += viewHeight;\n }\n\n indices = indices.reverse();\n }\n\n for (var i = 0; i < indices.length; i++) {\n var idx = indices[i];\n var nextIdx = indices[i + 1];\n var itemModel = data.getItemModel(idx);\n\n if (orient === 'horizontal') {\n var width = itemModel.get(['itemStyle', 'width']);\n\n if (width == null) {\n width = itemSize;\n } else {\n width = parsePercent(width, viewWidth);\n\n if (sort === 'ascending') {\n width = -width;\n }\n }\n\n var start = getLinePoints(idx, x);\n var end = getLinePoints(nextIdx, x + width);\n x += width + gap;\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n } else {\n var height = itemModel.get(['itemStyle', 'height']);\n\n if (height == null) {\n height = itemSize;\n } else {\n height = parsePercent(height, viewHeight);\n\n if (sort === 'ascending') {\n height = -height;\n }\n }\n\n var start = getLinePoints(idx, y);\n var end = getLinePoints(nextIdx, y + height);\n y += height + gap;\n data.setItemLayout(idx, {\n points: start.concat(end.slice().reverse())\n });\n }\n }\n\n labelLayout(data);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport FunnelView from './FunnelView';\nimport FunnelSeriesModel from './FunnelSeries';\nimport funnelLayout from './funnelLayout';\nimport dataFilter from '../../processor/dataFilter';\nexport function install(registers) {\n registers.registerChartView(FunnelView);\n registers.registerSeriesModel(FunnelSeriesModel);\n registers.registerLayout(funnelLayout);\n registers.registerProcessor(dataFilter('funnel'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { numericToNumber } from '../../util/number';\nimport { eqNaN } from 'zrender/lib/core/util';\nvar DEFAULT_SMOOTH = 0.3;\n\nvar ParallelView =\n/** @class */\nfunction (_super) {\n __extends(ParallelView, _super);\n\n function ParallelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelView.type;\n _this._dataGroup = new graphic.Group();\n _this._initialized = false;\n return _this;\n }\n\n ParallelView.prototype.init = function () {\n this.group.add(this._dataGroup);\n };\n /**\n * @override\n */\n\n\n ParallelView.prototype.render = function (seriesModel, ecModel, api, payload) {\n var dataGroup = this._dataGroup;\n var data = seriesModel.getData();\n var oldData = this._data;\n var coordSys = seriesModel.coordinateSystem;\n var dimensions = coordSys.dimensions;\n var seriesScope = makeSeriesScope(seriesModel);\n data.diff(oldData).add(add).update(update).remove(remove).execute();\n\n function add(newDataIndex) {\n var line = addEl(data, dataGroup, newDataIndex, dimensions, coordSys);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function update(newDataIndex, oldDataIndex) {\n var line = oldData.getItemGraphicEl(oldDataIndex);\n var points = createLinePoints(data, newDataIndex, dimensions, coordSys);\n data.setItemGraphicEl(newDataIndex, line);\n graphic.updateProps(line, {\n shape: {\n points: points\n }\n }, seriesModel, newDataIndex);\n updateElCommon(line, data, newDataIndex, seriesScope);\n }\n\n function remove(oldDataIndex) {\n var line = oldData.getItemGraphicEl(oldDataIndex);\n dataGroup.remove(line);\n } // First create\n\n\n if (!this._initialized) {\n this._initialized = true;\n var clipPath = createGridClipShape(coordSys, seriesModel, function () {\n // Callback will be invoked immediately if there is no animation\n setTimeout(function () {\n dataGroup.removeClipPath();\n });\n });\n dataGroup.setClipPath(clipPath);\n }\n\n this._data = data;\n };\n\n ParallelView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this._initialized = true;\n this._data = null;\n\n this._dataGroup.removeAll();\n };\n\n ParallelView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var dimensions = coordSys.dimensions;\n var seriesScope = makeSeriesScope(seriesModel);\n\n for (var dataIndex = taskParams.start; dataIndex < taskParams.end; dataIndex++) {\n var line = addEl(data, this._dataGroup, dataIndex, dimensions, coordSys);\n line.incremental = true;\n updateElCommon(line, data, dataIndex, seriesScope);\n }\n };\n\n ParallelView.prototype.remove = function () {\n this._dataGroup && this._dataGroup.removeAll();\n this._data = null;\n };\n\n ParallelView.type = 'parallel';\n return ParallelView;\n}(ChartView);\n\nfunction createGridClipShape(coordSys, seriesModel, cb) {\n var parallelModel = coordSys.model;\n var rect = coordSys.getRect();\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n }\n });\n var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height';\n rectEl.setShape(dim, 0);\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width,\n height: rect.height\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nfunction createLinePoints(data, dataIndex, dimensions, coordSys) {\n var points = [];\n\n for (var i = 0; i < dimensions.length; i++) {\n var dimName = dimensions[i];\n var value = data.get(data.mapDimension(dimName), dataIndex);\n\n if (!isEmptyValue(value, coordSys.getAxis(dimName).type)) {\n points.push(coordSys.dataToPoint(value, dimName));\n }\n }\n\n return points;\n}\n\nfunction addEl(data, dataGroup, dataIndex, dimensions, coordSys) {\n var points = createLinePoints(data, dataIndex, dimensions, coordSys);\n var line = new graphic.Polyline({\n shape: {\n points: points\n },\n // silent: true,\n z2: 10\n });\n dataGroup.add(line);\n data.setItemGraphicEl(dataIndex, line);\n return line;\n}\n\nfunction makeSeriesScope(seriesModel) {\n var smooth = seriesModel.get('smooth', true);\n smooth === true && (smooth = DEFAULT_SMOOTH);\n smooth = numericToNumber(smooth);\n eqNaN(smooth) && (smooth = 0);\n return {\n smooth: smooth\n };\n}\n\nfunction updateElCommon(el, data, dataIndex, seriesScope) {\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.fill = null;\n el.setShape('smooth', seriesScope.smooth);\n var itemModel = data.getItemModel(dataIndex);\n var emphasisModel = itemModel.getModel('emphasis');\n setStatesStylesFromModel(el, itemModel, 'lineStyle');\n enableHoverEmphasis(el, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n} // function simpleDiff(oldData, newData, dimensions) {\n// let oldLen;\n// if (!oldData\n// || !oldData.__plProgressive\n// || (oldLen = oldData.count()) !== newData.count()\n// ) {\n// return true;\n// }\n// let dimLen = dimensions.length;\n// for (let i = 0; i < oldLen; i++) {\n// for (let j = 0; j < dimLen; j++) {\n// if (oldData.get(dimensions[j], i) !== newData.get(dimensions[j], i)) {\n// return true;\n// }\n// }\n// }\n// return false;\n// }\n// FIXME put in common util?\n\n\nfunction isEmptyValue(val, axisType) {\n return axisType === 'category' ? val == null : val == null || isNaN(val); // axisType === 'value'\n}\n\nexport default ParallelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { each, bind } from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\n\nvar ParallelSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelSeriesModel, _super);\n\n function ParallelSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelSeriesModel.type;\n _this.visualStyleAccessPath = 'lineStyle';\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n ParallelSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: bind(makeDefaultEncode, null, this)\n });\n };\n /**\n * User can get data raw indices on 'axisAreaSelected' event received.\n *\n * @return Raw indices\n */\n\n\n ParallelSeriesModel.prototype.getRawIndicesByActiveState = function (activeState) {\n var coordSys = this.coordinateSystem;\n var data = this.getData();\n var indices = [];\n coordSys.eachActiveState(data, function (theActiveState, dataIndex) {\n if (activeState === theActiveState) {\n indices.push(data.getRawIndex(dataIndex));\n }\n });\n return indices;\n };\n\n ParallelSeriesModel.type = 'series.parallel';\n ParallelSeriesModel.dependencies = ['parallel'];\n ParallelSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'parallel',\n parallelIndex: 0,\n label: {\n show: false\n },\n inactiveOpacity: 0.05,\n activeOpacity: 1,\n lineStyle: {\n width: 1,\n opacity: 0.45,\n type: 'solid'\n },\n emphasis: {\n label: {\n show: false\n }\n },\n progressive: 500,\n smooth: false,\n animationEasing: 'linear'\n };\n return ParallelSeriesModel;\n}(SeriesModel);\n\nfunction makeDefaultEncode(seriesModel) {\n // The mapping of parallelAxis dimension to data dimension can\n // be specified in parallelAxis.option.dim. For example, if\n // parallelAxis.option.dim is 'dim3', it mapping to the third\n // dimension of data. But `data.encode` has higher priority.\n // Moreover, parallelModel.dimension should not be regarded as data\n // dimensions. Consider dimensions = ['dim4', 'dim2', 'dim6'];\n var parallelModel = seriesModel.ecModel.getComponent('parallel', seriesModel.get('parallelIndex'));\n\n if (!parallelModel) {\n return;\n }\n\n var encodeDefine = {};\n each(parallelModel.dimensions, function (axisDim) {\n var dataDimIndex = convertDimNameToNumber(axisDim);\n encodeDefine[axisDim] = dataDimIndex;\n });\n return encodeDefine;\n}\n\nfunction convertDimNameToNumber(dimName) {\n return +dimName.replace('dim', '');\n}\n\nexport default ParallelSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar opacityAccessPath = ['lineStyle', 'opacity'];\nvar parallelVisual = {\n seriesType: 'parallel',\n reset: function (seriesModel, ecModel) {\n var coordSys = seriesModel.coordinateSystem;\n var opacityMap = {\n normal: seriesModel.get(['lineStyle', 'opacity']),\n active: seriesModel.get('activeOpacity'),\n inactive: seriesModel.get('inactiveOpacity')\n };\n return {\n progress: function (params, data) {\n coordSys.eachActiveState(data, function (activeState, dataIndex) {\n var opacity = opacityMap[activeState];\n\n if (activeState === 'normal' && data.hasItemOption) {\n var itemOpacity = data.getItemModel(dataIndex).get(opacityAccessPath, true);\n itemOpacity != null && (opacity = itemOpacity);\n }\n\n var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n existsStyle.opacity = opacity;\n }, params.start, params.end);\n }\n };\n }\n};\nexport default parallelVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nexport default function parallelPreprocessor(option) {\n createParallelIfNeeded(option);\n mergeAxisOptionFromParallel(option);\n}\n/**\n * Create a parallel coordinate if not exists.\n * @inner\n */\n\nfunction createParallelIfNeeded(option) {\n if (option.parallel) {\n return;\n }\n\n var hasParallelSeries = false;\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'parallel') {\n hasParallelSeries = true;\n }\n });\n\n if (hasParallelSeries) {\n option.parallel = [{}];\n }\n}\n/**\n * Merge aixs definition from parallel option (if exists) to axis option.\n * @inner\n */\n\n\nfunction mergeAxisOptionFromParallel(option) {\n var axes = modelUtil.normalizeToArray(option.parallelAxis);\n zrUtil.each(axes, function (axisOption) {\n if (!zrUtil.isObject(axisOption)) {\n return;\n }\n\n var parallelIndex = axisOption.parallelIndex || 0;\n var parallelOption = modelUtil.normalizeToArray(option.parallel)[parallelIndex];\n\n if (parallelOption && parallelOption.parallelAxisDefault) {\n zrUtil.merge(axisOption, parallelOption.parallelAxisDefault, false);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport { each, bind, extend } from 'zrender/lib/core/util';\nimport { createOrUpdate } from '../../util/throttle';\nvar CLICK_THRESHOLD = 5; // > 4\n\nvar ParallelView =\n/** @class */\nfunction (_super) {\n __extends(ParallelView, _super);\n\n function ParallelView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelView.type;\n return _this;\n }\n\n ParallelView.prototype.render = function (parallelModel, ecModel, api) {\n this._model = parallelModel;\n this._api = api;\n\n if (!this._handlers) {\n this._handlers = {};\n each(handlers, function (handler, eventName) {\n api.getZr().on(eventName, this._handlers[eventName] = bind(handler, this));\n }, this);\n }\n\n createOrUpdate(this, '_throttledDispatchExpand', parallelModel.get('axisExpandRate'), 'fixRate');\n };\n\n ParallelView.prototype.dispose = function (ecModel, api) {\n each(this._handlers, function (handler, eventName) {\n api.getZr().off(eventName, handler);\n });\n this._handlers = null;\n };\n /**\n * @internal\n * @param {Object} [opt] If null, cancle the last action triggering for debounce.\n */\n\n\n ParallelView.prototype._throttledDispatchExpand = function (opt) {\n this._dispatchExpand(opt);\n };\n /**\n * @internal\n */\n\n\n ParallelView.prototype._dispatchExpand = function (opt) {\n opt && this._api.dispatchAction(extend({\n type: 'parallelAxisExpand'\n }, opt));\n };\n\n ParallelView.type = 'parallel';\n return ParallelView;\n}(ComponentView);\n\nvar handlers = {\n mousedown: function (e) {\n if (checkTrigger(this, 'click')) {\n this._mouseDownPoint = [e.offsetX, e.offsetY];\n }\n },\n mouseup: function (e) {\n var mouseDownPoint = this._mouseDownPoint;\n\n if (checkTrigger(this, 'click') && mouseDownPoint) {\n var point = [e.offsetX, e.offsetY];\n var dist = Math.pow(mouseDownPoint[0] - point[0], 2) + Math.pow(mouseDownPoint[1] - point[1], 2);\n\n if (dist > CLICK_THRESHOLD) {\n return;\n }\n\n var result = this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n\n result.behavior !== 'none' && this._dispatchExpand({\n axisExpandWindow: result.axisExpandWindow\n });\n }\n\n this._mouseDownPoint = null;\n },\n mousemove: function (e) {\n // Should do nothing when brushing.\n if (this._mouseDownPoint || !checkTrigger(this, 'mousemove')) {\n return;\n }\n\n var model = this._model;\n var result = model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX, e.offsetY]);\n var behavior = result.behavior;\n behavior === 'jump' && this._throttledDispatchExpand.debounceNextCall(model.get('axisExpandDebounce'));\n\n this._throttledDispatchExpand(behavior === 'none' ? null // Cancle the last trigger, in case that mouse slide out of the area quickly.\n : {\n axisExpandWindow: result.axisExpandWindow,\n // Jumping uses animation, and sliding suppresses animation.\n animation: behavior === 'jump' ? null : {\n duration: 0 // Disable animation.\n\n }\n });\n }\n};\n\nfunction checkTrigger(view, triggerOn) {\n var model = view._model;\n return model.get('axisExpandable') && model.get('axisExpandTriggerOn') === triggerOn;\n}\n\nexport default ParallelView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\n\nvar ParallelModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelModel, _super);\n\n function ParallelModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelModel.type;\n return _this;\n }\n\n ParallelModel.prototype.init = function () {\n _super.prototype.init.apply(this, arguments);\n\n this.mergeOption({});\n };\n\n ParallelModel.prototype.mergeOption = function (newOption) {\n var thisOption = this.option;\n newOption && zrUtil.merge(thisOption, newOption, true);\n\n this._initDimensions();\n };\n /**\n * Whether series or axis is in this coordinate system.\n */\n\n\n ParallelModel.prototype.contains = function (model, ecModel) {\n var parallelIndex = model.get('parallelIndex');\n return parallelIndex != null && ecModel.getComponent('parallel', parallelIndex) === this;\n };\n\n ParallelModel.prototype.setAxisExpand = function (opt) {\n zrUtil.each(['axisExpandable', 'axisExpandCenter', 'axisExpandCount', 'axisExpandWidth', 'axisExpandWindow'], function (name) {\n if (opt.hasOwnProperty(name)) {\n // @ts-ignore FIXME: why \"never\" inferred in this.option[name]?\n this.option[name] = opt[name];\n }\n }, this);\n };\n\n ParallelModel.prototype._initDimensions = function () {\n var dimensions = this.dimensions = [];\n var parallelAxisIndex = this.parallelAxisIndex = [];\n var axisModels = zrUtil.filter(this.ecModel.queryComponents({\n mainType: 'parallelAxis'\n }), function (axisModel) {\n // Can not use this.contains here, because\n // initialization has not been completed yet.\n return (axisModel.get('parallelIndex') || 0) === this.componentIndex;\n }, this);\n zrUtil.each(axisModels, function (axisModel) {\n dimensions.push('dim' + axisModel.get('dim'));\n parallelAxisIndex.push(axisModel.componentIndex);\n });\n };\n\n ParallelModel.type = 'parallel';\n ParallelModel.dependencies = ['parallelAxis'];\n ParallelModel.layoutMode = 'box';\n ParallelModel.defaultOption = {\n zlevel: 0,\n z: 0,\n left: 80,\n top: 60,\n right: 80,\n bottom: 60,\n // width: {totalWidth} - left - right,\n // height: {totalHeight} - top - bottom,\n layout: 'horizontal',\n // FIXME\n // naming?\n axisExpandable: false,\n axisExpandCenter: null,\n axisExpandCount: 0,\n axisExpandWidth: 50,\n axisExpandRate: 17,\n axisExpandDebounce: 50,\n // [out, in, jumpTarget]. In percentage. If use [null, 0.05], null means full.\n // Do not doc to user until necessary.\n axisExpandSlideTriggerArea: [-0.15, 0.05, 0.4],\n axisExpandTriggerOn: 'click',\n parallelAxisDefault: null\n };\n return ParallelModel;\n}(ComponentModel);\n\nexport default ParallelModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar ParallelAxis =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxis, _super);\n\n function ParallelAxis(dim, scale, coordExtent, axisType, axisIndex) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n _this.axisIndex = axisIndex;\n return _this;\n }\n\n ParallelAxis.prototype.isHorizontal = function () {\n return this.coordinateSystem.getModel().get('layout') !== 'horizontal';\n };\n\n return ParallelAxis;\n}(Axis);\n\nexport default ParallelAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Calculate slider move result.\n * Usage:\n * (1) If both handle0 and handle1 are needed to be moved, set minSpan the same as\n * maxSpan and the same as `Math.abs(handleEnd[1] - handleEnds[0])`.\n * (2) If handle0 is forbidden to cross handle1, set minSpan as `0`.\n *\n * @param delta Move length.\n * @param handleEnds handleEnds[0] can be bigger then handleEnds[1].\n * handleEnds will be modified in this method.\n * @param extent handleEnds is restricted by extent.\n * extent[0] should less or equals than extent[1].\n * @param handleIndex Can be 'all', means that both move the two handleEnds.\n * @param minSpan The range of dataZoom can not be smaller than that.\n * If not set, handle0 and cross handle1. If set as a non-negative\n * number (including `0`), handles will push each other when reaching\n * the minSpan.\n * @param maxSpan The range of dataZoom can not be larger than that.\n * @return The input handleEnds.\n */\nexport default function sliderMove(delta, handleEnds, extent, handleIndex, minSpan, maxSpan) {\n delta = delta || 0;\n var extentSpan = extent[1] - extent[0]; // Notice maxSpan and minSpan can be null/undefined.\n\n if (minSpan != null) {\n minSpan = restrict(minSpan, [0, extentSpan]);\n }\n\n if (maxSpan != null) {\n maxSpan = Math.max(maxSpan, minSpan != null ? minSpan : 0);\n }\n\n if (handleIndex === 'all') {\n var handleSpan = Math.abs(handleEnds[1] - handleEnds[0]);\n handleSpan = restrict(handleSpan, [0, extentSpan]);\n minSpan = maxSpan = restrict(handleSpan, [minSpan, maxSpan]);\n handleIndex = 0;\n }\n\n handleEnds[0] = restrict(handleEnds[0], extent);\n handleEnds[1] = restrict(handleEnds[1], extent);\n var originalDistSign = getSpanSign(handleEnds, handleIndex);\n handleEnds[handleIndex] += delta; // Restrict in extent.\n\n var extentMinSpan = minSpan || 0;\n var realExtent = extent.slice();\n originalDistSign.sign < 0 ? realExtent[0] += extentMinSpan : realExtent[1] -= extentMinSpan;\n handleEnds[handleIndex] = restrict(handleEnds[handleIndex], realExtent); // Expand span.\n\n var currDistSign;\n currDistSign = getSpanSign(handleEnds, handleIndex);\n\n if (minSpan != null && (currDistSign.sign !== originalDistSign.sign || currDistSign.span < minSpan)) {\n // If minSpan exists, 'cross' is forbidden.\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + originalDistSign.sign * minSpan;\n } // Shrink span.\n\n\n currDistSign = getSpanSign(handleEnds, handleIndex);\n\n if (maxSpan != null && currDistSign.span > maxSpan) {\n handleEnds[1 - handleIndex] = handleEnds[handleIndex] + currDistSign.sign * maxSpan;\n }\n\n return handleEnds;\n}\n\nfunction getSpanSign(handleEnds, handleIndex) {\n var dist = handleEnds[handleIndex] - handleEnds[1 - handleIndex]; // If `handleEnds[0] === handleEnds[1]`, always believe that handleEnd[0]\n // is at left of handleEnds[1] for non-cross case.\n\n return {\n span: Math.abs(dist),\n sign: dist > 0 ? -1 : dist < 0 ? 1 : handleIndex ? -1 : 1\n };\n}\n\nfunction restrict(value, extend) {\n return Math.min(extend[1] != null ? extend[1] : Infinity, Math.max(extend[0] != null ? extend[0] : -Infinity, value));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parallel Coordinates\n * \n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as layoutUtil from '../../util/layout';\nimport * as axisHelper from '../../coord/axisHelper';\nimport ParallelAxis from './ParallelAxis';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../../component/helper/sliderMove';\nvar each = zrUtil.each;\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathFloor = Math.floor;\nvar mathCeil = Math.ceil;\nvar round = numberUtil.round;\nvar PI = Math.PI;\n\nvar Parallel =\n/** @class */\nfunction () {\n function Parallel(parallelModel, ecModel, api) {\n this.type = 'parallel';\n /**\n * key: dimension\n */\n\n this._axesMap = zrUtil.createHashMap();\n /**\n * key: dimension\n * value: {position: [], rotation, }\n */\n\n this._axesLayout = {};\n this.dimensions = parallelModel.dimensions;\n this._model = parallelModel;\n\n this._init(parallelModel, ecModel, api);\n }\n\n Parallel.prototype._init = function (parallelModel, ecModel, api) {\n var dimensions = parallelModel.dimensions;\n var parallelAxisIndex = parallelModel.parallelAxisIndex;\n each(dimensions, function (dim, idx) {\n var axisIndex = parallelAxisIndex[idx];\n var axisModel = ecModel.getComponent('parallelAxis', axisIndex);\n\n var axis = this._axesMap.set(dim, new ParallelAxis(dim, axisHelper.createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisIndex));\n\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse'); // Injection\n\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = axisModel.coordinateSystem = this;\n }, this);\n };\n /**\n * Update axis scale after data processed\n */\n\n\n Parallel.prototype.update = function (ecModel, api) {\n this._updateAxesFromSeries(this._model, ecModel);\n };\n\n Parallel.prototype.containPoint = function (point) {\n var layoutInfo = this._makeLayoutInfo();\n\n var axisBase = layoutInfo.axisBase;\n var layoutBase = layoutInfo.layoutBase;\n var pixelDimIndex = layoutInfo.pixelDimIndex;\n var pAxis = point[1 - pixelDimIndex];\n var pLayout = point[pixelDimIndex];\n return pAxis >= axisBase && pAxis <= axisBase + layoutInfo.axisLength && pLayout >= layoutBase && pLayout <= layoutBase + layoutInfo.layoutLength;\n };\n\n Parallel.prototype.getModel = function () {\n return this._model;\n };\n /**\n * Update properties from series\n */\n\n\n Parallel.prototype._updateAxesFromSeries = function (parallelModel, ecModel) {\n ecModel.eachSeries(function (seriesModel) {\n if (!parallelModel.contains(seriesModel, ecModel)) {\n return;\n }\n\n var data = seriesModel.getData();\n each(this.dimensions, function (dim) {\n var axis = this._axesMap.get(dim);\n\n axis.scale.unionExtentFromData(data, data.mapDimension(dim));\n axisHelper.niceScaleExtent(axis.scale, axis.model);\n }, this);\n }, this);\n };\n /**\n * Resize the parallel coordinate system.\n */\n\n\n Parallel.prototype.resize = function (parallelModel, api) {\n this._rect = layoutUtil.getLayoutRect(parallelModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._layoutAxes();\n };\n\n Parallel.prototype.getRect = function () {\n return this._rect;\n };\n\n Parallel.prototype._makeLayoutInfo = function () {\n var parallelModel = this._model;\n var rect = this._rect;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var layout = parallelModel.get('layout');\n var pixelDimIndex = layout === 'horizontal' ? 0 : 1;\n var layoutLength = rect[wh[pixelDimIndex]];\n var layoutExtent = [0, layoutLength];\n var axisCount = this.dimensions.length;\n var axisExpandWidth = restrict(parallelModel.get('axisExpandWidth'), layoutExtent);\n var axisExpandCount = restrict(parallelModel.get('axisExpandCount') || 0, [0, axisCount]);\n var axisExpandable = parallelModel.get('axisExpandable') && axisCount > 3 && axisCount > axisExpandCount && axisExpandCount > 1 && axisExpandWidth > 0 && layoutLength > 0; // `axisExpandWindow` is According to the coordinates of [0, axisExpandLength],\n // for sake of consider the case that axisCollapseWidth is 0 (when screen is narrow),\n // where collapsed axes should be overlapped.\n\n var axisExpandWindow = parallelModel.get('axisExpandWindow');\n var winSize;\n\n if (!axisExpandWindow) {\n winSize = restrict(axisExpandWidth * (axisExpandCount - 1), layoutExtent);\n var axisExpandCenter = parallelModel.get('axisExpandCenter') || mathFloor(axisCount / 2);\n axisExpandWindow = [axisExpandWidth * axisExpandCenter - winSize / 2];\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n } else {\n winSize = restrict(axisExpandWindow[1] - axisExpandWindow[0], layoutExtent);\n axisExpandWindow[1] = axisExpandWindow[0] + winSize;\n }\n\n var axisCollapseWidth = (layoutLength - winSize) / (axisCount - axisExpandCount); // Avoid axisCollapseWidth is too small.\n\n axisCollapseWidth < 3 && (axisCollapseWidth = 0); // Find the first and last indices > ewin[0] and < ewin[1].\n\n var winInnerIndices = [mathFloor(round(axisExpandWindow[0] / axisExpandWidth, 1)) + 1, mathCeil(round(axisExpandWindow[1] / axisExpandWidth, 1)) - 1]; // Pos in ec coordinates.\n\n var axisExpandWindow0Pos = axisCollapseWidth / axisExpandWidth * axisExpandWindow[0];\n return {\n layout: layout,\n pixelDimIndex: pixelDimIndex,\n layoutBase: rect[xy[pixelDimIndex]],\n layoutLength: layoutLength,\n axisBase: rect[xy[1 - pixelDimIndex]],\n axisLength: rect[wh[1 - pixelDimIndex]],\n axisExpandable: axisExpandable,\n axisExpandWidth: axisExpandWidth,\n axisCollapseWidth: axisCollapseWidth,\n axisExpandWindow: axisExpandWindow,\n axisCount: axisCount,\n winInnerIndices: winInnerIndices,\n axisExpandWindow0Pos: axisExpandWindow0Pos\n };\n };\n\n Parallel.prototype._layoutAxes = function () {\n var rect = this._rect;\n var axes = this._axesMap;\n var dimensions = this.dimensions;\n\n var layoutInfo = this._makeLayoutInfo();\n\n var layout = layoutInfo.layout;\n axes.each(function (axis) {\n var axisExtent = [0, layoutInfo.axisLength];\n var idx = axis.inverse ? 1 : 0;\n axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);\n });\n each(dimensions, function (dim, idx) {\n var posInfo = (layoutInfo.axisExpandable ? layoutAxisWithExpand : layoutAxisWithoutExpand)(idx, layoutInfo);\n var positionTable = {\n horizontal: {\n x: posInfo.position,\n y: layoutInfo.axisLength\n },\n vertical: {\n x: 0,\n y: posInfo.position\n }\n };\n var rotationTable = {\n horizontal: PI / 2,\n vertical: 0\n };\n var position = [positionTable[layout].x + rect.x, positionTable[layout].y + rect.y];\n var rotation = rotationTable[layout];\n var transform = matrix.create();\n matrix.rotate(transform, transform, rotation);\n matrix.translate(transform, transform, position); // TODO\n // tick layout info\n // TODO\n // update dimensions info based on axis order.\n\n this._axesLayout[dim] = {\n position: position,\n rotation: rotation,\n transform: transform,\n axisNameAvailableWidth: posInfo.axisNameAvailableWidth,\n axisLabelShow: posInfo.axisLabelShow,\n nameTruncateMaxWidth: posInfo.nameTruncateMaxWidth,\n tickDirection: 1,\n labelDirection: 1\n };\n }, this);\n };\n /**\n * Get axis by dim.\n */\n\n\n Parallel.prototype.getAxis = function (dim) {\n return this._axesMap.get(dim);\n };\n /**\n * Convert a dim value of a single item of series data to Point.\n */\n\n\n Parallel.prototype.dataToPoint = function (value, dim) {\n return this.axisCoordToPoint(this._axesMap.get(dim).dataToCoord(value), dim);\n };\n /**\n * Travel data for one time, get activeState of each data item.\n * @param start the start dataIndex that travel from.\n * @param end the next dataIndex of the last dataIndex will be travel.\n */\n\n\n Parallel.prototype.eachActiveState = function (data, callback, start, end) {\n start == null && (start = 0);\n end == null && (end = data.count());\n var axesMap = this._axesMap;\n var dimensions = this.dimensions;\n var dataDimensions = [];\n var axisModels = [];\n zrUtil.each(dimensions, function (axisDim) {\n dataDimensions.push(data.mapDimension(axisDim));\n axisModels.push(axesMap.get(axisDim).model);\n });\n var hasActiveSet = this.hasAxisBrushed();\n\n for (var dataIndex = start; dataIndex < end; dataIndex++) {\n var activeState = void 0;\n\n if (!hasActiveSet) {\n activeState = 'normal';\n } else {\n activeState = 'active';\n var values = data.getValues(dataDimensions, dataIndex);\n\n for (var j = 0, lenj = dimensions.length; j < lenj; j++) {\n var state = axisModels[j].getActiveState(values[j]);\n\n if (state === 'inactive') {\n activeState = 'inactive';\n break;\n }\n }\n }\n\n callback(activeState, dataIndex);\n }\n };\n /**\n * Whether has any activeSet.\n */\n\n\n Parallel.prototype.hasAxisBrushed = function () {\n var dimensions = this.dimensions;\n var axesMap = this._axesMap;\n var hasActiveSet = false;\n\n for (var j = 0, lenj = dimensions.length; j < lenj; j++) {\n if (axesMap.get(dimensions[j]).model.getActiveState() !== 'normal') {\n hasActiveSet = true;\n }\n }\n\n return hasActiveSet;\n };\n /**\n * Convert coords of each axis to Point.\n * Return point. For example: [10, 20]\n */\n\n\n Parallel.prototype.axisCoordToPoint = function (coord, dim) {\n var axisLayout = this._axesLayout[dim];\n return graphic.applyTransform([coord, 0], axisLayout.transform);\n };\n /**\n * Get axis layout.\n */\n\n\n Parallel.prototype.getAxisLayout = function (dim) {\n return zrUtil.clone(this._axesLayout[dim]);\n };\n /**\n * @return {Object} {axisExpandWindow, delta, behavior: 'jump' | 'slide' | 'none'}.\n */\n\n\n Parallel.prototype.getSlidedAxisExpandWindow = function (point) {\n var layoutInfo = this._makeLayoutInfo();\n\n var pixelDimIndex = layoutInfo.pixelDimIndex;\n var axisExpandWindow = layoutInfo.axisExpandWindow.slice();\n var winSize = axisExpandWindow[1] - axisExpandWindow[0];\n var extent = [0, layoutInfo.axisExpandWidth * (layoutInfo.axisCount - 1)]; // Out of the area of coordinate system.\n\n if (!this.containPoint(point)) {\n return {\n behavior: 'none',\n axisExpandWindow: axisExpandWindow\n };\n } // Conver the point from global to expand coordinates.\n\n\n var pointCoord = point[pixelDimIndex] - layoutInfo.layoutBase - layoutInfo.axisExpandWindow0Pos; // For dragging operation convenience, the window should not be\n // slided when mouse is the center area of the window.\n\n var delta;\n var behavior = 'slide';\n var axisCollapseWidth = layoutInfo.axisCollapseWidth;\n\n var triggerArea = this._model.get('axisExpandSlideTriggerArea'); // But consider touch device, jump is necessary.\n\n\n var useJump = triggerArea[0] != null;\n\n if (axisCollapseWidth) {\n if (useJump && axisCollapseWidth && pointCoord < winSize * triggerArea[0]) {\n behavior = 'jump';\n delta = pointCoord - winSize * triggerArea[2];\n } else if (useJump && axisCollapseWidth && pointCoord > winSize * (1 - triggerArea[0])) {\n behavior = 'jump';\n delta = pointCoord - winSize * (1 - triggerArea[2]);\n } else {\n (delta = pointCoord - winSize * triggerArea[1]) >= 0 && (delta = pointCoord - winSize * (1 - triggerArea[1])) <= 0 && (delta = 0);\n }\n\n delta *= layoutInfo.axisExpandWidth / axisCollapseWidth;\n delta ? sliderMove(delta, axisExpandWindow, extent, 'all') // Avoid nonsense triger on mousemove.\n : behavior = 'none';\n } // When screen is too narrow, make it visible and slidable, although it is hard to interact.\n else {\n var winSize2 = axisExpandWindow[1] - axisExpandWindow[0];\n var pos = extent[1] * pointCoord / winSize2;\n axisExpandWindow = [mathMax(0, pos - winSize2 / 2)];\n axisExpandWindow[1] = mathMin(extent[1], axisExpandWindow[0] + winSize2);\n axisExpandWindow[0] = axisExpandWindow[1] - winSize2;\n }\n\n return {\n axisExpandWindow: axisExpandWindow,\n behavior: behavior\n };\n };\n\n return Parallel;\n}();\n\nfunction restrict(len, extent) {\n return mathMin(mathMax(len, extent[0]), extent[1]);\n}\n\nfunction layoutAxisWithoutExpand(axisIndex, layoutInfo) {\n var step = layoutInfo.layoutLength / (layoutInfo.axisCount - 1);\n return {\n position: step * axisIndex,\n axisNameAvailableWidth: step,\n axisLabelShow: true\n };\n}\n\nfunction layoutAxisWithExpand(axisIndex, layoutInfo) {\n var layoutLength = layoutInfo.layoutLength;\n var axisExpandWidth = layoutInfo.axisExpandWidth;\n var axisCount = layoutInfo.axisCount;\n var axisCollapseWidth = layoutInfo.axisCollapseWidth;\n var winInnerIndices = layoutInfo.winInnerIndices;\n var position;\n var axisNameAvailableWidth = axisCollapseWidth;\n var axisLabelShow = false;\n var nameTruncateMaxWidth;\n\n if (axisIndex < winInnerIndices[0]) {\n position = axisIndex * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n } else if (axisIndex <= winInnerIndices[1]) {\n position = layoutInfo.axisExpandWindow0Pos + axisIndex * axisExpandWidth - layoutInfo.axisExpandWindow[0];\n axisNameAvailableWidth = axisExpandWidth;\n axisLabelShow = true;\n } else {\n position = layoutLength - (axisCount - 1 - axisIndex) * axisCollapseWidth;\n nameTruncateMaxWidth = axisCollapseWidth;\n }\n\n return {\n position: position,\n axisNameAvailableWidth: axisNameAvailableWidth,\n axisLabelShow: axisLabelShow,\n nameTruncateMaxWidth: nameTruncateMaxWidth\n };\n}\n\nexport default Parallel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Parallel coordinate system creater.\n */\nimport Parallel from './Parallel';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nfunction createParallelCoordSys(ecModel, api) {\n var coordSysList = [];\n ecModel.eachComponent('parallel', function (parallelModel, idx) {\n var coordSys = new Parallel(parallelModel, ecModel, api);\n coordSys.name = 'parallel_' + idx;\n coordSys.resize(parallelModel, api);\n parallelModel.coordinateSystem = coordSys;\n coordSys.model = parallelModel;\n coordSysList.push(coordSys);\n }); // Inject the coordinateSystems into seriesModel\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'parallel') {\n var parallelModel = seriesModel.getReferringComponents('parallel', SINGLE_REFERRING).models[0];\n seriesModel.coordinateSystem = parallelModel.coordinateSystem;\n }\n });\n return coordSysList;\n}\n\nvar parallelCoordSysCreator = {\n create: createParallelCoordSys\n};\nexport default parallelCoordSysCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport makeStyleMapper from '../../model/mixin/makeStyleMapper';\nimport * as numberUtil from '../../util/number';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\n\nvar ParallelAxisModel =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxisModel, _super);\n\n function ParallelAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelAxisModel.type;\n /**\n * @readOnly\n */\n\n _this.activeIntervals = [];\n return _this;\n }\n\n ParallelAxisModel.prototype.getAreaSelectStyle = function () {\n return makeStyleMapper([['fill', 'color'], ['lineWidth', 'borderWidth'], ['stroke', 'borderColor'], ['width', 'width'], ['opacity', 'opacity'] // Option decal is in `DecalObject` but style.decal is in `PatternObject`.\n // So do not transfer decal directly.\n ])(this.getModel('areaSelectStyle'));\n };\n /**\n * The code of this feature is put on AxisModel but not ParallelAxis,\n * because axisModel can be alive after echarts updating but instance of\n * ParallelAxis having been disposed. this._activeInterval should be kept\n * when action dispatched (i.e. legend click).\n *\n * @param intervals `interval.length === 0` means set all active.\n */\n\n\n ParallelAxisModel.prototype.setActiveIntervals = function (intervals) {\n var activeIntervals = this.activeIntervals = zrUtil.clone(intervals); // Normalize\n\n if (activeIntervals) {\n for (var i = activeIntervals.length - 1; i >= 0; i--) {\n numberUtil.asc(activeIntervals[i]);\n }\n }\n };\n /**\n * @param value When only attempting detect whether 'no activeIntervals set',\n * `value` is not needed to be input.\n */\n\n\n ParallelAxisModel.prototype.getActiveState = function (value) {\n var activeIntervals = this.activeIntervals;\n\n if (!activeIntervals.length) {\n return 'normal';\n }\n\n if (value == null || isNaN(+value)) {\n return 'inactive';\n } // Simple optimization\n\n\n if (activeIntervals.length === 1) {\n var interval = activeIntervals[0];\n\n if (interval[0] <= value && value <= interval[1]) {\n return 'active';\n }\n } else {\n for (var i = 0, len = activeIntervals.length; i < len; i++) {\n if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {\n return 'active';\n }\n }\n }\n\n return 'inactive';\n };\n\n return ParallelAxisModel;\n}(ComponentModel);\n\nzrUtil.mixin(ParallelAxisModel, AxisModelCommonMixin);\nexport default ParallelAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { curry, each, map, bind, merge, clone, defaults, assert } from 'zrender/lib/core/util';\nimport Eventful from 'zrender/lib/core/Eventful';\nimport * as graphic from '../../util/graphic';\nimport * as interactionMutex from './interactionMutex';\nimport DataDiffer from '../../data/DataDiffer';\nvar BRUSH_PANEL_GLOBAL = true;\nvar mathMin = Math.min;\nvar mathMax = Math.max;\nvar mathPow = Math.pow;\nvar COVER_Z = 10000;\nvar UNSELECT_THRESHOLD = 6;\nvar MIN_RESIZE_LINE_WIDTH = 6;\nvar MUTEX_RESOURCE_KEY = 'globalPan';\nvar DIRECTION_MAP = {\n w: [0, 0],\n e: [0, 1],\n n: [1, 0],\n s: [1, 1]\n};\nvar CURSOR_MAP = {\n w: 'ew',\n e: 'ew',\n n: 'ns',\n s: 'ns',\n ne: 'nesw',\n sw: 'nesw',\n nw: 'nwse',\n se: 'nwse'\n};\nvar DEFAULT_BRUSH_OPT = {\n brushStyle: {\n lineWidth: 2,\n stroke: 'rgba(210,219,238,0.3)',\n fill: '#D2DBEE'\n },\n transformable: true,\n brushMode: 'single',\n removeOnClick: false\n};\nvar baseUID = 0;\n/**\n * params:\n * areas: Array., coord relates to container group,\n * If no container specified, to global.\n * opt {\n * isEnd: boolean,\n * removeOnClick: boolean\n * }\n */\n\nvar BrushController =\n/** @class */\nfunction (_super) {\n __extends(BrushController, _super);\n\n function BrushController(zr) {\n var _this = _super.call(this) || this;\n /**\n * @internal\n */\n\n\n _this._track = [];\n /**\n * @internal\n */\n\n _this._covers = [];\n _this._handlers = {};\n\n if (process.env.NODE_ENV !== 'production') {\n assert(zr);\n }\n\n _this._zr = zr;\n _this.group = new graphic.Group();\n _this._uid = 'brushController_' + baseUID++;\n each(pointerHandlers, function (handler, eventName) {\n this._handlers[eventName] = bind(handler, this);\n }, _this);\n return _this;\n }\n /**\n * If set to `false`, select disabled.\n */\n\n\n BrushController.prototype.enableBrush = function (brushOption) {\n if (process.env.NODE_ENV !== 'production') {\n assert(this._mounted);\n }\n\n this._brushType && this._doDisableBrush();\n brushOption.brushType && this._doEnableBrush(brushOption);\n return this;\n };\n\n BrushController.prototype._doEnableBrush = function (brushOption) {\n var zr = this._zr; // Consider roam, which takes globalPan too.\n\n if (!this._enableGlobalPan) {\n interactionMutex.take(zr, MUTEX_RESOURCE_KEY, this._uid);\n }\n\n each(this._handlers, function (handler, eventName) {\n zr.on(eventName, handler);\n });\n this._brushType = brushOption.brushType;\n this._brushOption = merge(clone(DEFAULT_BRUSH_OPT), brushOption, true);\n };\n\n BrushController.prototype._doDisableBrush = function () {\n var zr = this._zr;\n interactionMutex.release(zr, MUTEX_RESOURCE_KEY, this._uid);\n each(this._handlers, function (handler, eventName) {\n zr.off(eventName, handler);\n });\n this._brushType = this._brushOption = null;\n };\n /**\n * @param panelOpts If not pass, it is global brush.\n */\n\n\n BrushController.prototype.setPanels = function (panelOpts) {\n if (panelOpts && panelOpts.length) {\n var panels_1 = this._panels = {};\n each(panelOpts, function (panelOpts) {\n panels_1[panelOpts.panelId] = clone(panelOpts);\n });\n } else {\n this._panels = null;\n }\n\n return this;\n };\n\n BrushController.prototype.mount = function (opt) {\n opt = opt || {};\n\n if (process.env.NODE_ENV !== 'production') {\n this._mounted = true; // should be at first.\n }\n\n this._enableGlobalPan = opt.enableGlobalPan;\n var thisGroup = this.group;\n\n this._zr.add(thisGroup);\n\n thisGroup.attr({\n x: opt.x || 0,\n y: opt.y || 0,\n rotation: opt.rotation || 0,\n scaleX: opt.scaleX || 1,\n scaleY: opt.scaleY || 1\n });\n this._transform = thisGroup.getLocalTransform();\n return this;\n }; // eachCover(cb, context): void {\n // each(this._covers, cb, context);\n // }\n\n /**\n * Update covers.\n * @param coverConfigList\n * If coverConfigList is null/undefined, all covers removed.\n */\n\n\n BrushController.prototype.updateCovers = function (coverConfigList) {\n if (process.env.NODE_ENV !== 'production') {\n assert(this._mounted);\n }\n\n coverConfigList = map(coverConfigList, function (coverConfig) {\n return merge(clone(DEFAULT_BRUSH_OPT), coverConfig, true);\n });\n var tmpIdPrefix = '\\0-brush-index-';\n var oldCovers = this._covers;\n var newCovers = this._covers = [];\n var controller = this;\n var creatingCover = this._creatingCover;\n new DataDiffer(oldCovers, coverConfigList, oldGetKey, getKey).add(addOrUpdate).update(addOrUpdate).remove(remove).execute();\n return this;\n\n function getKey(brushOption, index) {\n return (brushOption.id != null ? brushOption.id : tmpIdPrefix + index) + '-' + brushOption.brushType;\n }\n\n function oldGetKey(cover, index) {\n return getKey(cover.__brushOption, index);\n }\n\n function addOrUpdate(newIndex, oldIndex) {\n var newBrushInternal = coverConfigList[newIndex]; // Consider setOption in event listener of brushSelect,\n // where updating cover when creating should be forbiden.\n\n if (oldIndex != null && oldCovers[oldIndex] === creatingCover) {\n newCovers[newIndex] = oldCovers[oldIndex];\n } else {\n var cover = newCovers[newIndex] = oldIndex != null ? (oldCovers[oldIndex].__brushOption = newBrushInternal, oldCovers[oldIndex]) : endCreating(controller, createCover(controller, newBrushInternal));\n updateCoverAfterCreation(controller, cover);\n }\n }\n\n function remove(oldIndex) {\n if (oldCovers[oldIndex] !== creatingCover) {\n controller.group.remove(oldCovers[oldIndex]);\n }\n }\n };\n\n BrushController.prototype.unmount = function () {\n if (process.env.NODE_ENV !== 'production') {\n if (!this._mounted) {\n return;\n }\n }\n\n this.enableBrush(false); // container may 'removeAll' outside.\n\n clearCovers(this);\n\n this._zr.remove(this.group);\n\n if (process.env.NODE_ENV !== 'production') {\n this._mounted = false; // should be at last.\n }\n\n return this;\n };\n\n BrushController.prototype.dispose = function () {\n this.unmount();\n this.off();\n };\n\n return BrushController;\n}(Eventful);\n\nfunction createCover(controller, brushOption) {\n var cover = coverRenderers[brushOption.brushType].createCover(controller, brushOption);\n cover.__brushOption = brushOption;\n updateZ(cover, brushOption);\n controller.group.add(cover);\n return cover;\n}\n\nfunction endCreating(controller, creatingCover) {\n var coverRenderer = getCoverRenderer(creatingCover);\n\n if (coverRenderer.endCreating) {\n coverRenderer.endCreating(controller, creatingCover);\n updateZ(creatingCover, creatingCover.__brushOption);\n }\n\n return creatingCover;\n}\n\nfunction updateCoverShape(controller, cover) {\n var brushOption = cover.__brushOption;\n getCoverRenderer(cover).updateCoverShape(controller, cover, brushOption.range, brushOption);\n}\n\nfunction updateZ(cover, brushOption) {\n var z = brushOption.z;\n z == null && (z = COVER_Z);\n cover.traverse(function (el) {\n el.z = z;\n el.z2 = z; // Consider in given container.\n });\n}\n\nfunction updateCoverAfterCreation(controller, cover) {\n getCoverRenderer(cover).updateCommon(controller, cover);\n updateCoverShape(controller, cover);\n}\n\nfunction getCoverRenderer(cover) {\n return coverRenderers[cover.__brushOption.brushType];\n} // return target panel or `true` (means global panel)\n\n\nfunction getPanelByPoint(controller, e, localCursorPoint) {\n var panels = controller._panels;\n\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n\n var panel;\n var transform = controller._transform;\n each(panels, function (pn) {\n pn.isTargetByCursor(e, localCursorPoint, transform) && (panel = pn);\n });\n return panel;\n} // Return a panel or true\n\n\nfunction getPanelByCover(controller, cover) {\n var panels = controller._panels;\n\n if (!panels) {\n return BRUSH_PANEL_GLOBAL; // Global panel\n }\n\n var panelId = cover.__brushOption.panelId; // User may give cover without coord sys info,\n // which is then treated as global panel.\n\n return panelId != null ? panels[panelId] : BRUSH_PANEL_GLOBAL;\n}\n\nfunction clearCovers(controller) {\n var covers = controller._covers;\n var originalLength = covers.length;\n each(covers, function (cover) {\n controller.group.remove(cover);\n }, controller);\n covers.length = 0;\n return !!originalLength;\n}\n\nfunction trigger(controller, opt) {\n var areas = map(controller._covers, function (cover) {\n var brushOption = cover.__brushOption;\n var range = clone(brushOption.range);\n return {\n brushType: brushOption.brushType,\n panelId: brushOption.panelId,\n range: range\n };\n });\n controller.trigger('brush', {\n areas: areas,\n isEnd: !!opt.isEnd,\n removeOnClick: !!opt.removeOnClick\n });\n}\n\nfunction shouldShowCover(controller) {\n var track = controller._track;\n\n if (!track.length) {\n return false;\n }\n\n var p2 = track[track.length - 1];\n var p1 = track[0];\n var dx = p2[0] - p1[0];\n var dy = p2[1] - p1[1];\n var dist = mathPow(dx * dx + dy * dy, 0.5);\n return dist > UNSELECT_THRESHOLD;\n}\n\nfunction getTrackEnds(track) {\n var tail = track.length - 1;\n tail < 0 && (tail = 0);\n return [track[0], track[tail]];\n}\n\n;\n\nfunction createBaseRectCover(rectRangeConverter, controller, brushOption, edgeNameSequences) {\n var cover = new graphic.Group();\n cover.add(new graphic.Rect({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true,\n draggable: true,\n cursor: 'move',\n drift: curry(driftRect, rectRangeConverter, controller, cover, ['n', 's', 'w', 'e']),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n each(edgeNameSequences, function (nameSequence) {\n cover.add(new graphic.Rect({\n name: nameSequence.join(''),\n style: {\n opacity: 0\n },\n draggable: true,\n silent: true,\n invisible: true,\n drift: curry(driftRect, rectRangeConverter, controller, cover, nameSequence),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n });\n return cover;\n}\n\nfunction updateBaseRect(controller, cover, localRange, brushOption) {\n var lineWidth = brushOption.brushStyle.lineWidth || 0;\n var handleSize = mathMax(lineWidth, MIN_RESIZE_LINE_WIDTH);\n var x = localRange[0][0];\n var y = localRange[1][0];\n var xa = x - lineWidth / 2;\n var ya = y - lineWidth / 2;\n var x2 = localRange[0][1];\n var y2 = localRange[1][1];\n var x2a = x2 - handleSize + lineWidth / 2;\n var y2a = y2 - handleSize + lineWidth / 2;\n var width = x2 - x;\n var height = y2 - y;\n var widtha = width + lineWidth;\n var heighta = height + lineWidth;\n updateRectShape(controller, cover, 'main', x, y, width, height);\n\n if (brushOption.transformable) {\n updateRectShape(controller, cover, 'w', xa, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'e', x2a, ya, handleSize, heighta);\n updateRectShape(controller, cover, 'n', xa, ya, widtha, handleSize);\n updateRectShape(controller, cover, 's', xa, y2a, widtha, handleSize);\n updateRectShape(controller, cover, 'nw', xa, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'ne', x2a, ya, handleSize, handleSize);\n updateRectShape(controller, cover, 'sw', xa, y2a, handleSize, handleSize);\n updateRectShape(controller, cover, 'se', x2a, y2a, handleSize, handleSize);\n }\n}\n\nfunction updateCommon(controller, cover) {\n var brushOption = cover.__brushOption;\n var transformable = brushOption.transformable;\n var mainEl = cover.childAt(0);\n mainEl.useStyle(makeStyle(brushOption));\n mainEl.attr({\n silent: !transformable,\n cursor: transformable ? 'move' : 'default'\n });\n each([['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']], function (nameSequence) {\n var el = cover.childOfName(nameSequence.join(''));\n var globalDir = nameSequence.length === 1 ? getGlobalDirection1(controller, nameSequence[0]) : getGlobalDirection2(controller, nameSequence);\n el && el.attr({\n silent: !transformable,\n invisible: !transformable,\n cursor: transformable ? CURSOR_MAP[globalDir] + '-resize' : null\n });\n });\n}\n\nfunction updateRectShape(controller, cover, name, x, y, w, h) {\n var el = cover.childOfName(name);\n el && el.setShape(pointsToRect(clipByPanel(controller, cover, [[x, y], [x + w, y + h]])));\n}\n\nfunction makeStyle(brushOption) {\n return defaults({\n strokeNoScale: true\n }, brushOption.brushStyle);\n}\n\nfunction formatRectRange(x, y, x2, y2) {\n var min = [mathMin(x, x2), mathMin(y, y2)];\n var max = [mathMax(x, x2), mathMax(y, y2)];\n return [[min[0], max[0]], [min[1], max[1]] // y range\n ];\n}\n\nfunction getTransform(controller) {\n return graphic.getTransform(controller.group);\n}\n\nfunction getGlobalDirection1(controller, localDirName) {\n var map = {\n w: 'left',\n e: 'right',\n n: 'top',\n s: 'bottom'\n };\n var inverseMap = {\n left: 'w',\n right: 'e',\n top: 'n',\n bottom: 's'\n };\n var dir = graphic.transformDirection(map[localDirName], getTransform(controller));\n return inverseMap[dir];\n}\n\nfunction getGlobalDirection2(controller, localDirNameSeq) {\n var globalDir = [getGlobalDirection1(controller, localDirNameSeq[0]), getGlobalDirection1(controller, localDirNameSeq[1])];\n (globalDir[0] === 'e' || globalDir[0] === 'w') && globalDir.reverse();\n return globalDir.join('');\n}\n\nfunction driftRect(rectRangeConverter, controller, cover, dirNameSequence, dx, dy) {\n var brushOption = cover.__brushOption;\n var rectRange = rectRangeConverter.toRectRange(brushOption.range);\n var localDelta = toLocalDelta(controller, dx, dy);\n each(dirNameSequence, function (dirName) {\n var ind = DIRECTION_MAP[dirName];\n rectRange[ind[0]][ind[1]] += localDelta[ind[0]];\n });\n brushOption.range = rectRangeConverter.fromRectRange(formatRectRange(rectRange[0][0], rectRange[1][0], rectRange[0][1], rectRange[1][1]));\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {\n isEnd: false\n });\n}\n\nfunction driftPolygon(controller, cover, dx, dy) {\n var range = cover.__brushOption.range;\n var localDelta = toLocalDelta(controller, dx, dy);\n each(range, function (point) {\n point[0] += localDelta[0];\n point[1] += localDelta[1];\n });\n updateCoverAfterCreation(controller, cover);\n trigger(controller, {\n isEnd: false\n });\n}\n\nfunction toLocalDelta(controller, dx, dy) {\n var thisGroup = controller.group;\n var localD = thisGroup.transformCoordToLocal(dx, dy);\n var localZero = thisGroup.transformCoordToLocal(0, 0);\n return [localD[0] - localZero[0], localD[1] - localZero[1]];\n}\n\nfunction clipByPanel(controller, cover, data) {\n var panel = getPanelByCover(controller, cover);\n return panel && panel !== BRUSH_PANEL_GLOBAL ? panel.clipPath(data, controller._transform) : clone(data);\n}\n\nfunction pointsToRect(points) {\n var xmin = mathMin(points[0][0], points[1][0]);\n var ymin = mathMin(points[0][1], points[1][1]);\n var xmax = mathMax(points[0][0], points[1][0]);\n var ymax = mathMax(points[0][1], points[1][1]);\n return {\n x: xmin,\n y: ymin,\n width: xmax - xmin,\n height: ymax - ymin\n };\n}\n\nfunction resetCursor(controller, e, localCursorPoint) {\n if ( // Check active\n !controller._brushType // resetCursor should be always called when mouse is in zr area,\n // but not called when mouse is out of zr area to avoid bad influence\n // if `mousemove`, `mouseup` are triggered from `document` event.\n || isOutsideZrArea(controller, e.offsetX, e.offsetY)) {\n return;\n }\n\n var zr = controller._zr;\n var covers = controller._covers;\n var currPanel = getPanelByPoint(controller, e, localCursorPoint); // Check whether in covers.\n\n if (!controller._dragging) {\n for (var i = 0; i < covers.length; i++) {\n var brushOption = covers[i].__brushOption;\n\n if (currPanel && (currPanel === BRUSH_PANEL_GLOBAL || brushOption.panelId === currPanel.panelId) && coverRenderers[brushOption.brushType].contain(covers[i], localCursorPoint[0], localCursorPoint[1])) {\n // Use cursor style set on cover.\n return;\n }\n }\n }\n\n currPanel && zr.setCursorStyle('crosshair');\n}\n\nfunction preventDefault(e) {\n var rawE = e.event;\n rawE.preventDefault && rawE.preventDefault();\n}\n\nfunction mainShapeContain(cover, x, y) {\n return cover.childOfName('main').contain(x, y);\n}\n\nfunction updateCoverByMouse(controller, e, localCursorPoint, isEnd) {\n var creatingCover = controller._creatingCover;\n var panel = controller._creatingPanel;\n var thisBrushOption = controller._brushOption;\n var eventParams;\n\n controller._track.push(localCursorPoint.slice());\n\n if (shouldShowCover(controller) || creatingCover) {\n if (panel && !creatingCover) {\n thisBrushOption.brushMode === 'single' && clearCovers(controller);\n var brushOption = clone(thisBrushOption);\n brushOption.brushType = determineBrushType(brushOption.brushType, panel);\n brushOption.panelId = panel === BRUSH_PANEL_GLOBAL ? null : panel.panelId;\n creatingCover = controller._creatingCover = createCover(controller, brushOption);\n\n controller._covers.push(creatingCover);\n }\n\n if (creatingCover) {\n var coverRenderer = coverRenderers[determineBrushType(controller._brushType, panel)];\n var coverBrushOption = creatingCover.__brushOption;\n coverBrushOption.range = coverRenderer.getCreatingRange(clipByPanel(controller, creatingCover, controller._track));\n\n if (isEnd) {\n endCreating(controller, creatingCover);\n coverRenderer.updateCommon(controller, creatingCover);\n }\n\n updateCoverShape(controller, creatingCover);\n eventParams = {\n isEnd: isEnd\n };\n }\n } else if (isEnd && thisBrushOption.brushMode === 'single' && thisBrushOption.removeOnClick) {\n // Help user to remove covers easily, only by a tiny drag, in 'single' mode.\n // But a single click do not clear covers, because user may have casual\n // clicks (for example, click on other component and do not expect covers\n // disappear).\n // Only some cover removed, trigger action, but not every click trigger action.\n if (getPanelByPoint(controller, e, localCursorPoint) && clearCovers(controller)) {\n eventParams = {\n isEnd: isEnd,\n removeOnClick: true\n };\n }\n }\n\n return eventParams;\n}\n\nfunction determineBrushType(brushType, panel) {\n if (brushType === 'auto') {\n if (process.env.NODE_ENV !== 'production') {\n assert(panel && panel.defaultBrushType, 'MUST have defaultBrushType when brushType is \"atuo\"');\n }\n\n return panel.defaultBrushType;\n }\n\n return brushType;\n}\n\nvar pointerHandlers = {\n mousedown: function (e) {\n if (this._dragging) {\n // In case some browser do not support globalOut,\n // and release mouse out side the browser.\n handleDragEnd(this, e);\n } else if (!e.target || !e.target.draggable) {\n preventDefault(e);\n var localCursorPoint = this.group.transformCoordToLocal(e.offsetX, e.offsetY);\n this._creatingCover = null;\n var panel = this._creatingPanel = getPanelByPoint(this, e, localCursorPoint);\n\n if (panel) {\n this._dragging = true;\n this._track = [localCursorPoint.slice()];\n }\n }\n },\n mousemove: function (e) {\n var x = e.offsetX;\n var y = e.offsetY;\n var localCursorPoint = this.group.transformCoordToLocal(x, y);\n resetCursor(this, e, localCursorPoint);\n\n if (this._dragging) {\n preventDefault(e);\n var eventParams = updateCoverByMouse(this, e, localCursorPoint, false);\n eventParams && trigger(this, eventParams);\n }\n },\n mouseup: function (e) {\n handleDragEnd(this, e);\n }\n};\n\nfunction handleDragEnd(controller, e) {\n if (controller._dragging) {\n preventDefault(e);\n var x = e.offsetX;\n var y = e.offsetY;\n var localCursorPoint = controller.group.transformCoordToLocal(x, y);\n var eventParams = updateCoverByMouse(controller, e, localCursorPoint, true);\n controller._dragging = false;\n controller._track = [];\n controller._creatingCover = null; // trigger event shoule be at final, after procedure will be nested.\n\n eventParams && trigger(controller, eventParams);\n }\n}\n\nfunction isOutsideZrArea(controller, x, y) {\n var zr = controller._zr;\n return x < 0 || x > zr.getWidth() || y < 0 || y > zr.getHeight();\n}\n/**\n * key: brushType\n */\n\n\nvar coverRenderers = {\n lineX: getLineRenderer(0),\n lineY: getLineRenderer(1),\n rect: {\n createCover: function (controller, brushOption) {\n function returnInput(range) {\n return range;\n }\n\n return createBaseRectCover({\n toRectRange: returnInput,\n fromRectRange: returnInput\n }, controller, brushOption, [['w'], ['e'], ['n'], ['s'], ['s', 'e'], ['s', 'w'], ['n', 'e'], ['n', 'w']]);\n },\n getCreatingRange: function (localTrack) {\n var ends = getTrackEnds(localTrack);\n return formatRectRange(ends[1][0], ends[1][1], ends[0][0], ends[0][1]);\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n updateBaseRect(controller, cover, localRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n },\n polygon: {\n createCover: function (controller, brushOption) {\n var cover = new graphic.Group(); // Do not use graphic.Polygon because graphic.Polyline do not close the\n // border of the shape when drawing, which is a better experience for user.\n\n cover.add(new graphic.Polyline({\n name: 'main',\n style: makeStyle(brushOption),\n silent: true\n }));\n return cover;\n },\n getCreatingRange: function (localTrack) {\n return localTrack;\n },\n endCreating: function (controller, cover) {\n cover.remove(cover.childAt(0)); // Use graphic.Polygon close the shape.\n\n cover.add(new graphic.Polygon({\n name: 'main',\n draggable: true,\n drift: curry(driftPolygon, controller, cover),\n ondragend: curry(trigger, controller, {\n isEnd: true\n })\n }));\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n cover.childAt(0).setShape({\n points: clipByPanel(controller, cover, localRange)\n });\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n }\n};\n\nfunction getLineRenderer(xyIndex) {\n return {\n createCover: function (controller, brushOption) {\n return createBaseRectCover({\n toRectRange: function (range) {\n var rectRange = [range, [0, 100]];\n xyIndex && rectRange.reverse();\n return rectRange;\n },\n fromRectRange: function (rectRange) {\n return rectRange[xyIndex];\n }\n }, controller, brushOption, [[['w'], ['e']], [['n'], ['s']]][xyIndex]);\n },\n getCreatingRange: function (localTrack) {\n var ends = getTrackEnds(localTrack);\n var min = mathMin(ends[0][xyIndex], ends[1][xyIndex]);\n var max = mathMax(ends[0][xyIndex], ends[1][xyIndex]);\n return [min, max];\n },\n updateCoverShape: function (controller, cover, localRange, brushOption) {\n var otherExtent; // If brushWidth not specified, fit the panel.\n\n var panel = getPanelByCover(controller, cover);\n\n if (panel !== BRUSH_PANEL_GLOBAL && panel.getLinearBrushOtherExtent) {\n otherExtent = panel.getLinearBrushOtherExtent(xyIndex);\n } else {\n var zr = controller._zr;\n otherExtent = [0, [zr.getWidth(), zr.getHeight()][1 - xyIndex]];\n }\n\n var rectRange = [localRange, otherExtent];\n xyIndex && rectRange.reverse();\n updateBaseRect(controller, cover, rectRange, brushOption);\n },\n updateCommon: updateCommon,\n contain: mainShapeContain\n };\n}\n\nexport default BrushController;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { onIrrelevantElement } from './cursorHelper';\nimport * as graphicUtil from '../../util/graphic';\nexport function makeRectPanelClipPath(rect) {\n rect = normalizeRect(rect);\n return function (localPoints) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\nexport function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {\n rect = normalizeRect(rect);\n return function (xyIndex) {\n var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n var brushWidth = idx ? rect.width : rect.height;\n var base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\nexport function makeRectIsTargetByCursor(rect, api, targetModel) {\n var boundingRect = normalizeRect(rect);\n return function (e, localCursorPoint) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel);\n };\n} // Consider width/height is negative.\n\nfunction normalizeRect(rect) {\n return BoundingRect.create(rect);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport BrushController from '../helper/BrushController';\nimport * as brushHelper from '../helper/brushHelper';\nimport * as graphic from '../../util/graphic';\nimport ComponentView from '../../view/Component';\nvar elementList = ['axisLine', 'axisTickLabel', 'axisName'];\n\nvar ParallelAxisView =\n/** @class */\nfunction (_super) {\n __extends(ParallelAxisView, _super);\n\n function ParallelAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ParallelAxisView.type;\n return _this;\n }\n\n ParallelAxisView.prototype.init = function (ecModel, api) {\n _super.prototype.init.apply(this, arguments);\n\n (this._brushController = new BrushController(api.getZr())).on('brush', zrUtil.bind(this._onBrush, this));\n };\n\n ParallelAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n if (fromAxisAreaSelect(axisModel, ecModel, payload)) {\n return;\n }\n\n this.axisModel = axisModel;\n this.api = api;\n this.group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n this.group.add(this._axisGroup);\n\n if (!axisModel.get('show')) {\n return;\n }\n\n var coordSysModel = getCoordSysModel(axisModel, ecModel);\n var coordSys = coordSysModel.coordinateSystem;\n var areaSelectStyle = axisModel.getAreaSelectStyle();\n var areaWidth = areaSelectStyle.width;\n var dim = axisModel.axis.dim;\n var axisLayout = coordSys.getAxisLayout(dim);\n var builderOpt = zrUtil.extend({\n strokeContainThreshold: areaWidth\n }, axisLayout);\n var axisBuilder = new AxisBuilder(axisModel, builderOpt);\n zrUtil.each(elementList, axisBuilder.add, axisBuilder);\n\n this._axisGroup.add(axisBuilder.getGroup());\n\n this._refreshBrushController(builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api);\n\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n }; // /**\n // * @override\n // */\n // updateVisual(axisModel, ecModel, api, payload) {\n // this._brushController && this._brushController\n // .updateCovers(getCoverInfoList(axisModel));\n // }\n\n\n ParallelAxisView.prototype._refreshBrushController = function (builderOpt, areaSelectStyle, axisModel, coordSysModel, areaWidth, api) {\n // After filtering, axis may change, select area needs to be update.\n var extent = axisModel.axis.getExtent();\n var extentLen = extent[1] - extent[0];\n var extra = Math.min(30, Math.abs(extentLen) * 0.1); // Arbitrary value.\n // width/height might be negative, which will be\n // normalized in BoundingRect.\n\n var rect = graphic.BoundingRect.create({\n x: extent[0],\n y: -areaWidth / 2,\n width: extentLen,\n height: areaWidth\n });\n rect.x -= extra;\n rect.width += 2 * extra;\n\n this._brushController.mount({\n enableGlobalPan: true,\n rotation: builderOpt.rotation,\n x: builderOpt.position[0],\n y: builderOpt.position[1]\n }).setPanels([{\n panelId: 'pl',\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect, 0)\n }]).enableBrush({\n brushType: 'lineX',\n brushStyle: areaSelectStyle,\n removeOnClick: true\n }).updateCovers(getCoverInfoList(axisModel));\n };\n\n ParallelAxisView.prototype._onBrush = function (eventParam) {\n var coverInfoList = eventParam.areas; // Do not cache these object, because the mey be changed.\n\n var axisModel = this.axisModel;\n var axis = axisModel.axis;\n var intervals = zrUtil.map(coverInfoList, function (coverInfo) {\n return [axis.coordToData(coverInfo.range[0], true), axis.coordToData(coverInfo.range[1], true)];\n }); // If realtime is true, action is not dispatched on drag end, because\n // the drag end emits the same params with the last drag move event,\n // and may have some delay when using touch pad.\n\n if (!axisModel.option.realtime === eventParam.isEnd || eventParam.removeOnClick) {\n // jshint ignore:line\n this.api.dispatchAction({\n type: 'axisAreaSelect',\n parallelAxisId: axisModel.id,\n intervals: intervals\n });\n }\n };\n\n ParallelAxisView.prototype.dispose = function () {\n this._brushController.dispose();\n };\n\n ParallelAxisView.type = 'parallelAxis';\n return ParallelAxisView;\n}(ComponentView);\n\nfunction fromAxisAreaSelect(axisModel, ecModel, payload) {\n return payload && payload.type === 'axisAreaSelect' && ecModel.findComponents({\n mainType: 'parallelAxis',\n query: payload\n })[0] === axisModel;\n}\n\nfunction getCoverInfoList(axisModel) {\n var axis = axisModel.axis;\n return zrUtil.map(axisModel.activeIntervals, function (interval) {\n return {\n brushType: 'lineX',\n panelId: 'pl',\n range: [axis.dataToCoord(interval[0], true), axis.dataToCoord(interval[1], true)]\n };\n });\n}\n\nfunction getCoordSysModel(axisModel, ecModel) {\n return ecModel.getComponent('parallel', axisModel.get('parallelIndex'));\n}\n\nexport default ParallelAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nvar actionInfo = {\n type: 'axisAreaSelect',\n event: 'axisAreaSelected' // update: 'updateVisual'\n\n};\nexport function installParallelActions(registers) {\n registers.registerAction(actionInfo, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'parallelAxis',\n query: payload\n }, function (parallelAxisModel) {\n parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);\n });\n });\n /**\n * @payload\n */\n\n registers.registerAction('parallelAxisExpand', function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'parallel',\n query: payload\n }, function (parallelModel) {\n parallelModel.setAxisExpand(payload);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport parallelPreprocessor from '../../coord/parallel/parallelPreprocessor';\nimport ParallelView from './ParallelView';\nimport ParallelModel from '../../coord/parallel/ParallelModel';\nimport parallelCoordSysCreator from '../../coord/parallel/parallelCreator';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport ParallelAxisModel from '../../coord/parallel/AxisModel';\nimport ParallelAxisView from '../axis/ParallelAxisView';\nimport { installParallelActions } from '../axis/parallelAxisAction';\nvar defaultAxisOption = {\n type: 'value',\n areaSelectStyle: {\n width: 20,\n borderWidth: 1,\n borderColor: 'rgba(160,197,232)',\n color: 'rgba(160,197,232)',\n opacity: 0.3\n },\n realtime: true,\n z: 10\n};\nexport function install(registers) {\n registers.registerComponentView(ParallelView);\n registers.registerComponentModel(ParallelModel);\n registers.registerCoordinateSystem('parallel', parallelCoordSysCreator);\n registers.registerPreprocessor(parallelPreprocessor);\n registers.registerComponentModel(ParallelAxisModel);\n registers.registerComponentView(ParallelAxisView);\n axisModelCreator(registers, 'parallel', ParallelAxisModel, defaultAxisOption);\n installParallelActions(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport ParallelView from './ParallelView';\nimport ParallelSeriesModel from './ParallelSeries';\nimport parallelVisual from './parallelVisual';\nimport { install as installParallelComponent } from '../../component/parallel/install';\nexport function install(registers) {\n use(installParallelComponent);\n registers.registerChartView(ParallelView);\n registers.registerSeriesModel(ParallelSeriesModel);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, parallelVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport ChartView from '../../view/Chart';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\n\nvar SankeyPathShape =\n/** @class */\nfunction () {\n function SankeyPathShape() {\n this.x1 = 0;\n this.y1 = 0;\n this.x2 = 0;\n this.y2 = 0;\n this.cpx1 = 0;\n this.cpy1 = 0;\n this.cpx2 = 0;\n this.cpy2 = 0;\n this.extent = 0;\n }\n\n return SankeyPathShape;\n}();\n\nvar SankeyPath =\n/** @class */\nfunction (_super) {\n __extends(SankeyPath, _super);\n\n function SankeyPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n SankeyPath.prototype.getDefaultShape = function () {\n return new SankeyPathShape();\n };\n\n SankeyPath.prototype.buildPath = function (ctx, shape) {\n var extent = shape.extent;\n ctx.moveTo(shape.x1, shape.y1);\n ctx.bezierCurveTo(shape.cpx1, shape.cpy1, shape.cpx2, shape.cpy2, shape.x2, shape.y2);\n\n if (shape.orient === 'vertical') {\n ctx.lineTo(shape.x2 + extent, shape.y2);\n ctx.bezierCurveTo(shape.cpx2 + extent, shape.cpy2, shape.cpx1 + extent, shape.cpy1, shape.x1 + extent, shape.y1);\n } else {\n ctx.lineTo(shape.x2, shape.y2 + extent);\n ctx.bezierCurveTo(shape.cpx2, shape.cpy2 + extent, shape.cpx1, shape.cpy1 + extent, shape.x1, shape.y1 + extent);\n }\n\n ctx.closePath();\n };\n\n SankeyPath.prototype.highlight = function () {\n enterEmphasis(this);\n };\n\n SankeyPath.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n\n return SankeyPath;\n}(graphic.Path);\n\nvar SankeyView =\n/** @class */\nfunction (_super) {\n __extends(SankeyView, _super);\n\n function SankeyView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SankeyView.type;\n _this._focusAdjacencyDisabled = false;\n return _this;\n }\n\n SankeyView.prototype.render = function (seriesModel, ecModel, api) {\n var sankeyView = this;\n var graph = seriesModel.getGraph();\n var group = this.group;\n var layoutInfo = seriesModel.layoutInfo; // view width\n\n var width = layoutInfo.width; // view height\n\n var height = layoutInfo.height;\n var nodeData = seriesModel.getData();\n var edgeData = seriesModel.getData('edge');\n var orient = seriesModel.get('orient');\n this._model = seriesModel;\n group.removeAll();\n group.x = layoutInfo.x;\n group.y = layoutInfo.y; // generate a bezire Curve for each edge\n\n graph.eachEdge(function (edge) {\n var curve = new SankeyPath();\n var ecData = getECData(curve);\n ecData.dataIndex = edge.dataIndex;\n ecData.seriesIndex = seriesModel.seriesIndex;\n ecData.dataType = 'edge';\n var edgeModel = edge.getModel();\n var lineStyleModel = edgeModel.getModel('lineStyle');\n var curvature = lineStyleModel.get('curveness');\n var n1Layout = edge.node1.getLayout();\n var node1Model = edge.node1.getModel();\n var dragX1 = node1Model.get('localX');\n var dragY1 = node1Model.get('localY');\n var n2Layout = edge.node2.getLayout();\n var node2Model = edge.node2.getModel();\n var dragX2 = node2Model.get('localX');\n var dragY2 = node2Model.get('localY');\n var edgeLayout = edge.getLayout();\n var x1;\n var y1;\n var x2;\n var y2;\n var cpx1;\n var cpy1;\n var cpx2;\n var cpy2;\n curve.shape.extent = Math.max(1, edgeLayout.dy);\n curve.shape.orient = orient;\n\n if (orient === 'vertical') {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + edgeLayout.sy;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + n1Layout.dy;\n x2 = (dragX2 != null ? dragX2 * width : n2Layout.x) + edgeLayout.ty;\n y2 = dragY2 != null ? dragY2 * height : n2Layout.y;\n cpx1 = x1;\n cpy1 = y1 * (1 - curvature) + y2 * curvature;\n cpx2 = x2;\n cpy2 = y1 * curvature + y2 * (1 - curvature);\n } else {\n x1 = (dragX1 != null ? dragX1 * width : n1Layout.x) + n1Layout.dx;\n y1 = (dragY1 != null ? dragY1 * height : n1Layout.y) + edgeLayout.sy;\n x2 = dragX2 != null ? dragX2 * width : n2Layout.x;\n y2 = (dragY2 != null ? dragY2 * height : n2Layout.y) + edgeLayout.ty;\n cpx1 = x1 * (1 - curvature) + x2 * curvature;\n cpy1 = y1;\n cpx2 = x1 * curvature + x2 * (1 - curvature);\n cpy2 = y2;\n }\n\n curve.setShape({\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2,\n cpx1: cpx1,\n cpy1: cpy1,\n cpx2: cpx2,\n cpy2: cpy2\n });\n curve.useStyle(lineStyleModel.getItemStyle()); // Special color, use source node color or target node color\n\n switch (curve.style.fill) {\n case 'source':\n curve.style.fill = edge.node1.getVisual('color');\n curve.style.decal = edge.node1.getVisual('style').decal;\n break;\n\n case 'target':\n curve.style.fill = edge.node2.getVisual('color');\n curve.style.decal = edge.node2.getVisual('style').decal;\n break;\n\n case 'gradient':\n var sourceColor = edge.node1.getVisual('color');\n var targetColor = edge.node2.getVisual('color');\n\n if (typeof sourceColor === 'string' && typeof targetColor === 'string') {\n curve.style.fill = new graphic.LinearGradient(0, 0, 1, 0, [{\n color: sourceColor,\n offset: 0\n }, {\n color: targetColor,\n offset: 1\n }]);\n }\n\n }\n\n var emphasisModel = edgeModel.getModel('emphasis');\n setStatesStylesFromModel(curve, edgeModel, 'lineStyle', function (model) {\n return model.getItemStyle();\n });\n group.add(curve);\n edgeData.setItemGraphicEl(edge.dataIndex, curve);\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(curve, focus === 'adjacency' ? edge.getAdjacentDataIndices() : focus, emphasisModel.get('blurScope'));\n getECData(curve).dataType = 'edge';\n }); // Generate a rect for each node\n\n graph.eachNode(function (node) {\n var layout = node.getLayout();\n var itemModel = node.getModel();\n var dragX = itemModel.get('localX');\n var dragY = itemModel.get('localY');\n var emphasisModel = itemModel.getModel('emphasis');\n var rect = new graphic.Rect({\n shape: {\n x: dragX != null ? dragX * width : layout.x,\n y: dragY != null ? dragY * height : layout.y,\n width: layout.dx,\n height: layout.dy\n },\n style: itemModel.getModel('itemStyle').getItemStyle(),\n z2: 10\n });\n setLabelStyle(rect, getLabelStatesModels(itemModel), {\n labelFetcher: seriesModel,\n labelDataIndex: node.dataIndex,\n defaultText: node.id\n });\n rect.disableLabelAnimation = true;\n rect.setStyle('fill', node.getVisual('color'));\n rect.setStyle('decal', node.getVisual('style').decal);\n setStatesStylesFromModel(rect, itemModel);\n group.add(rect);\n nodeData.setItemGraphicEl(node.dataIndex, rect);\n getECData(rect).dataType = 'node';\n var focus = emphasisModel.get('focus');\n enableHoverEmphasis(rect, focus === 'adjacency' ? node.getAdjacentDataIndices() : focus, emphasisModel.get('blurScope'));\n });\n nodeData.eachItemGraphicEl(function (el, dataIndex) {\n var itemModel = nodeData.getItemModel(dataIndex);\n\n if (itemModel.get('draggable')) {\n el.drift = function (dx, dy) {\n sankeyView._focusAdjacencyDisabled = true;\n this.shape.x += dx;\n this.shape.y += dy;\n this.dirty();\n api.dispatchAction({\n type: 'dragNode',\n seriesId: seriesModel.id,\n dataIndex: nodeData.getRawIndex(dataIndex),\n localX: this.shape.x / width,\n localY: this.shape.y / height\n });\n };\n\n el.ondragend = function () {\n sankeyView._focusAdjacencyDisabled = false;\n };\n\n el.draggable = true;\n el.cursor = 'move';\n }\n });\n\n if (!this._data && seriesModel.isAnimationEnabled()) {\n group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () {\n group.removeClipPath();\n }));\n }\n\n this._data = seriesModel.getData();\n };\n\n SankeyView.prototype.dispose = function () {};\n\n SankeyView.type = 'sankey';\n return SankeyView;\n}(ChartView); // Add animation to the view\n\n\nfunction createGridClipShape(rect, seriesModel, cb) {\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n width: rect.width + 20\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nexport default SankeyView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createGraphFromNodeEdge from '../helper/createGraphFromNodeEdge';\nimport Model from '../../model/Model';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\n\nvar SankeySeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SankeySeriesModel, _super);\n\n function SankeySeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SankeySeriesModel.type;\n return _this;\n }\n /**\n * Init a graph data structure from data in option series\n *\n * @param {Object} option the object used to config echarts view\n * @return {module:echarts/data/List} storage initial data\n */\n\n\n SankeySeriesModel.prototype.getInitialData = function (option, ecModel) {\n var links = option.edges || option.links;\n var nodes = option.data || option.nodes;\n var levels = option.levels;\n this.levelModels = [];\n var levelModels = this.levelModels;\n\n for (var i = 0; i < levels.length; i++) {\n if (levels[i].depth != null && levels[i].depth >= 0) {\n levelModels[levels[i].depth] = new Model(levels[i], this, ecModel);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('levels[i].depth is mandatory and should be natural number');\n }\n }\n }\n\n if (nodes && links) {\n var graph = createGraphFromNodeEdge(nodes, links, this, true, beforeLink);\n return graph.data;\n }\n\n function beforeLink(nodeData, edgeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var seriesModel = model.parentModel;\n var layout = seriesModel.getData().getItemLayout(idx);\n\n if (layout) {\n var nodeDepth = layout.depth;\n var levelModel = seriesModel.levelModels[nodeDepth];\n\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n\n return model;\n });\n edgeData.wrapMethod('getItemModel', function (model, idx) {\n var seriesModel = model.parentModel;\n var edge = seriesModel.getGraph().getEdgeByIndex(idx);\n var layout = edge.node1.getLayout();\n\n if (layout) {\n var depth = layout.depth;\n var levelModel = seriesModel.levelModels[depth];\n\n if (levelModel) {\n model.parentModel = levelModel;\n }\n }\n\n return model;\n });\n }\n };\n\n SankeySeriesModel.prototype.setNodePosition = function (dataIndex, localPosition) {\n var dataItem = this.option.data[dataIndex];\n dataItem.localX = localPosition[0];\n dataItem.localY = localPosition[1];\n };\n /**\n * Return the graphic data structure\n *\n * @return graphic data structure\n */\n\n\n SankeySeriesModel.prototype.getGraph = function () {\n return this.getData().graph;\n };\n /**\n * Get edge data of graphic data structure\n *\n * @return data structure of list\n */\n\n\n SankeySeriesModel.prototype.getEdgeData = function () {\n return this.getGraph().edgeData;\n };\n\n SankeySeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n function noValue(val) {\n return isNaN(val) || val == null;\n } // dataType === 'node' or empty do not show tooltip by default\n\n\n if (dataType === 'edge') {\n var params = this.getDataParams(dataIndex, dataType);\n var rawDataOpt = params.data;\n var edgeValue = params.value;\n var edgeName = rawDataOpt.source + ' -- ' + rawDataOpt.target;\n return createTooltipMarkup('nameValue', {\n name: edgeName,\n value: edgeValue,\n noValue: noValue(edgeValue)\n });\n } // dataType === 'node'\n else {\n var node = this.getGraph().getNodeByIndex(dataIndex);\n var value = node.getLayout().value;\n var name_1 = this.getDataParams(dataIndex, dataType).data.name;\n return createTooltipMarkup('nameValue', {\n name: name_1 != null ? name_1 + '' : null,\n value: value,\n noValue: noValue(value)\n });\n }\n };\n\n SankeySeriesModel.prototype.optionUpdated = function () {}; // Override Series.getDataParams()\n\n\n SankeySeriesModel.prototype.getDataParams = function (dataIndex, dataType) {\n var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);\n\n if (params.value == null && dataType === 'node') {\n var node = this.getGraph().getNodeByIndex(dataIndex);\n var nodeValue = node.getLayout().value;\n params.value = nodeValue;\n }\n\n return params;\n };\n\n SankeySeriesModel.type = 'series.sankey';\n SankeySeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'view',\n left: '5%',\n top: '5%',\n right: '20%',\n bottom: '5%',\n orient: 'horizontal',\n nodeWidth: 20,\n nodeGap: 8,\n draggable: true,\n layoutIterations: 32,\n label: {\n show: true,\n position: 'right',\n fontSize: 12\n },\n levels: [],\n nodeAlign: 'justify',\n lineStyle: {\n color: '#314656',\n opacity: 0.2,\n curveness: 0.5\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n opacity: 0.5\n }\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n animationEasing: 'linear',\n animationDuration: 1000\n };\n return SankeySeriesModel;\n}(SeriesModel);\n\nexport default SankeySeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as layout from '../../util/layout';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { groupData } from '../../util/model';\nexport default function sankeyLayout(ecModel, api) {\n ecModel.eachSeriesByType('sankey', function (seriesModel) {\n var nodeWidth = seriesModel.get('nodeWidth');\n var nodeGap = seriesModel.get('nodeGap');\n var layoutInfo = getViewRect(seriesModel, api);\n seriesModel.layoutInfo = layoutInfo;\n var width = layoutInfo.width;\n var height = layoutInfo.height;\n var graph = seriesModel.getGraph();\n var nodes = graph.nodes;\n var edges = graph.edges;\n computeNodeValues(nodes);\n var filteredNodes = zrUtil.filter(nodes, function (node) {\n return node.getLayout().value === 0;\n });\n var iterations = filteredNodes.length !== 0 ? 0 : seriesModel.get('layoutIterations');\n var orient = seriesModel.get('orient');\n var nodeAlign = seriesModel.get('nodeAlign');\n layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign);\n });\n}\n/**\n * Get the layout position of the whole view\n */\n\nfunction getViewRect(seriesModel, api) {\n return layout.getLayoutRect(seriesModel.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n}\n\nfunction layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations, orient, nodeAlign) {\n computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign);\n computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient);\n computeEdgeDepths(nodes, orient);\n}\n/**\n * Compute the value of each node by summing the associated edge's value\n */\n\n\nfunction computeNodeValues(nodes) {\n zrUtil.each(nodes, function (node) {\n var value1 = sum(node.outEdges, getEdgeValue);\n var value2 = sum(node.inEdges, getEdgeValue);\n var nodeRawValue = node.getValue() || 0;\n var value = Math.max(value1, value2, nodeRawValue);\n node.setLayout({\n value: value\n }, true);\n });\n}\n/**\n * Compute the x-position for each node.\n *\n * Here we use Kahn algorithm to detect cycle when we traverse\n * the node to computer the initial x position.\n */\n\n\nfunction computeNodeBreadths(nodes, edges, nodeWidth, width, height, orient, nodeAlign) {\n // Used to mark whether the edge is deleted. if it is deleted,\n // the value is 0, otherwise it is 1.\n var remainEdges = []; // Storage each node's indegree.\n\n var indegreeArr = []; //Used to storage the node with indegree is equal to 0.\n\n var zeroIndegrees = [];\n var nextTargetNode = [];\n var x = 0; // let kx = 0;\n\n for (var i = 0; i < edges.length; i++) {\n remainEdges[i] = 1;\n }\n\n for (var i = 0; i < nodes.length; i++) {\n indegreeArr[i] = nodes[i].inEdges.length;\n\n if (indegreeArr[i] === 0) {\n zeroIndegrees.push(nodes[i]);\n }\n }\n\n var maxNodeDepth = -1; // Traversing nodes using topological sorting to calculate the\n // horizontal(if orient === 'horizontal') or vertical(if orient === 'vertical')\n // position of the nodes.\n\n while (zeroIndegrees.length) {\n for (var idx = 0; idx < zeroIndegrees.length; idx++) {\n var node = zeroIndegrees[idx];\n var item = node.hostGraph.data.getRawDataItem(node.dataIndex);\n var isItemDepth = item.depth != null && item.depth >= 0;\n\n if (isItemDepth && item.depth > maxNodeDepth) {\n maxNodeDepth = item.depth;\n }\n\n node.setLayout({\n depth: isItemDepth ? item.depth : x\n }, true);\n orient === 'vertical' ? node.setLayout({\n dy: nodeWidth\n }, true) : node.setLayout({\n dx: nodeWidth\n }, true);\n\n for (var edgeIdx = 0; edgeIdx < node.outEdges.length; edgeIdx++) {\n var edge = node.outEdges[edgeIdx];\n var indexEdge = edges.indexOf(edge);\n remainEdges[indexEdge] = 0;\n var targetNode = edge.node2;\n var nodeIndex = nodes.indexOf(targetNode);\n\n if (--indegreeArr[nodeIndex] === 0 && nextTargetNode.indexOf(targetNode) < 0) {\n nextTargetNode.push(targetNode);\n }\n }\n }\n\n ++x;\n zeroIndegrees = nextTargetNode;\n nextTargetNode = [];\n }\n\n for (var i = 0; i < remainEdges.length; i++) {\n if (remainEdges[i] === 1) {\n throw new Error('Sankey is a DAG, the original data has cycle!');\n }\n }\n\n var maxDepth = maxNodeDepth > x - 1 ? maxNodeDepth : x - 1;\n\n if (nodeAlign && nodeAlign !== 'left') {\n adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth);\n }\n\n var kx = orient === 'vertical' ? (height - nodeWidth) / maxDepth : (width - nodeWidth) / maxDepth;\n scaleNodeBreadths(nodes, kx, orient);\n}\n\nfunction isNodeDepth(node) {\n var item = node.hostGraph.data.getRawDataItem(node.dataIndex);\n return item.depth != null && item.depth >= 0;\n}\n\nfunction adjustNodeWithNodeAlign(nodes, nodeAlign, orient, maxDepth) {\n if (nodeAlign === 'right') {\n var nextSourceNode = [];\n var remainNodes = nodes;\n var nodeHeight = 0;\n\n while (remainNodes.length) {\n for (var i = 0; i < remainNodes.length; i++) {\n var node = remainNodes[i];\n node.setLayout({\n skNodeHeight: nodeHeight\n }, true);\n\n for (var j = 0; j < node.inEdges.length; j++) {\n var edge = node.inEdges[j];\n\n if (nextSourceNode.indexOf(edge.node1) < 0) {\n nextSourceNode.push(edge.node1);\n }\n }\n }\n\n remainNodes = nextSourceNode;\n nextSourceNode = [];\n ++nodeHeight;\n }\n\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node)) {\n node.setLayout({\n depth: Math.max(0, maxDepth - node.getLayout().skNodeHeight)\n }, true);\n }\n });\n } else if (nodeAlign === 'justify') {\n moveSinksRight(nodes, maxDepth);\n }\n}\n/**\n * All the node without outEgdes are assigned maximum x-position and\n * be aligned in the last column.\n *\n * @param nodes. node of sankey view.\n * @param maxDepth. use to assign to node without outEdges as x-position.\n */\n\n\nfunction moveSinksRight(nodes, maxDepth) {\n zrUtil.each(nodes, function (node) {\n if (!isNodeDepth(node) && !node.outEdges.length) {\n node.setLayout({\n depth: maxDepth\n }, true);\n }\n });\n}\n/**\n * Scale node x-position to the width\n *\n * @param nodes node of sankey view\n * @param kx multiple used to scale nodes\n */\n\n\nfunction scaleNodeBreadths(nodes, kx, orient) {\n zrUtil.each(nodes, function (node) {\n var nodeDepth = node.getLayout().depth * kx;\n orient === 'vertical' ? node.setLayout({\n y: nodeDepth\n }, true) : node.setLayout({\n x: nodeDepth\n }, true);\n });\n}\n/**\n * Using Gauss-Seidel iterations method to compute the node depth(y-position)\n *\n * @param nodes node of sankey view\n * @param edges edge of sankey view\n * @param height the whole height of the area to draw the view\n * @param nodeGap the vertical distance between two nodes\n * in the same column.\n * @param iterations the number of iterations for the algorithm\n */\n\n\nfunction computeNodeDepths(nodes, edges, height, width, nodeGap, iterations, orient) {\n var nodesByBreadth = prepareNodesByBreadth(nodes, orient);\n initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n\n for (var alpha = 1; iterations > 0; iterations--) {\n // 0.99 is a experience parameter, ensure that each iterations of\n // changes as small as possible.\n alpha *= 0.99;\n relaxRightToLeft(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n relaxLeftToRight(nodesByBreadth, alpha, orient);\n resolveCollisions(nodesByBreadth, nodeGap, height, width, orient);\n }\n}\n\nfunction prepareNodesByBreadth(nodes, orient) {\n var nodesByBreadth = [];\n var keyAttr = orient === 'vertical' ? 'y' : 'x';\n var groupResult = groupData(nodes, function (node) {\n return node.getLayout()[keyAttr];\n });\n groupResult.keys.sort(function (a, b) {\n return a - b;\n });\n zrUtil.each(groupResult.keys, function (key) {\n nodesByBreadth.push(groupResult.buckets.get(key));\n });\n return nodesByBreadth;\n}\n/**\n * Compute the original y-position for each node\n */\n\n\nfunction initializeNodeDepth(nodesByBreadth, edges, height, width, nodeGap, orient) {\n var minKy = Infinity;\n zrUtil.each(nodesByBreadth, function (nodes) {\n var n = nodes.length;\n var sum = 0;\n zrUtil.each(nodes, function (node) {\n sum += node.getLayout().value;\n });\n var ky = orient === 'vertical' ? (width - (n - 1) * nodeGap) / sum : (height - (n - 1) * nodeGap) / sum;\n\n if (ky < minKy) {\n minKy = ky;\n }\n });\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node, i) {\n var nodeDy = node.getLayout().value * minKy;\n\n if (orient === 'vertical') {\n node.setLayout({\n x: i\n }, true);\n node.setLayout({\n dx: nodeDy\n }, true);\n } else {\n node.setLayout({\n y: i\n }, true);\n node.setLayout({\n dy: nodeDy\n }, true);\n }\n });\n });\n zrUtil.each(edges, function (edge) {\n var edgeDy = +edge.getValue() * minKy;\n edge.setLayout({\n dy: edgeDy\n }, true);\n });\n}\n/**\n * Resolve the collision of initialized depth (y-position)\n */\n\n\nfunction resolveCollisions(nodesByBreadth, nodeGap, height, width, orient) {\n var keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodesByBreadth, function (nodes) {\n nodes.sort(function (a, b) {\n return a.getLayout()[keyAttr] - b.getLayout()[keyAttr];\n });\n var nodeX;\n var node;\n var dy;\n var y0 = 0;\n var n = nodes.length;\n var nodeDyAttr = orient === 'vertical' ? 'dx' : 'dy';\n\n for (var i = 0; i < n; i++) {\n node = nodes[i];\n dy = y0 - node.getLayout()[keyAttr];\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] + dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n }\n\n y0 = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap;\n }\n\n var viewWidth = orient === 'vertical' ? width : height; // If the bottommost node goes outside the bounds, push it back up\n\n dy = y0 - nodeGap - viewWidth;\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n y0 = nodeX;\n\n for (var i = n - 2; i >= 0; --i) {\n node = nodes[i];\n dy = node.getLayout()[keyAttr] + node.getLayout()[nodeDyAttr] + nodeGap - y0;\n\n if (dy > 0) {\n nodeX = node.getLayout()[keyAttr] - dy;\n orient === 'vertical' ? node.setLayout({\n x: nodeX\n }, true) : node.setLayout({\n y: nodeX\n }, true);\n }\n\n y0 = node.getLayout()[keyAttr];\n }\n }\n });\n}\n/**\n * Change the y-position of the nodes, except most the right side nodes\n * @param nodesByBreadth\n * @param alpha parameter used to adjust the nodes y-position\n */\n\n\nfunction relaxRightToLeft(nodesByBreadth, alpha, orient) {\n zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.outEdges.length) {\n var y = sum(node.outEdges, weightedTarget, orient) / sum(node.outEdges, getEdgeValue);\n\n if (isNaN(y)) {\n var len = node.outEdges.length;\n y = len ? sum(node.outEdges, centerTarget, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({\n x: nodeX\n }, true);\n } else {\n var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({\n y: nodeY\n }, true);\n }\n }\n });\n });\n}\n\nfunction weightedTarget(edge, orient) {\n return center(edge.node2, orient) * edge.getValue();\n}\n\nfunction centerTarget(edge, orient) {\n return center(edge.node2, orient);\n}\n\nfunction weightedSource(edge, orient) {\n return center(edge.node1, orient) * edge.getValue();\n}\n\nfunction centerSource(edge, orient) {\n return center(edge.node1, orient);\n}\n\nfunction center(node, orient) {\n return orient === 'vertical' ? node.getLayout().x + node.getLayout().dx / 2 : node.getLayout().y + node.getLayout().dy / 2;\n}\n\nfunction getEdgeValue(edge) {\n return edge.getValue();\n}\n\nfunction sum(array, cb, orient) {\n var sum = 0;\n var len = array.length;\n var i = -1;\n\n while (++i < len) {\n var value = +cb(array[i], orient);\n\n if (!isNaN(value)) {\n sum += value;\n }\n }\n\n return sum;\n}\n/**\n * Change the y-position of the nodes, except most the left side nodes\n */\n\n\nfunction relaxLeftToRight(nodesByBreadth, alpha, orient) {\n zrUtil.each(nodesByBreadth, function (nodes) {\n zrUtil.each(nodes, function (node) {\n if (node.inEdges.length) {\n var y = sum(node.inEdges, weightedSource, orient) / sum(node.inEdges, getEdgeValue);\n\n if (isNaN(y)) {\n var len = node.inEdges.length;\n y = len ? sum(node.inEdges, centerSource, orient) / len : 0;\n }\n\n if (orient === 'vertical') {\n var nodeX = node.getLayout().x + (y - center(node, orient)) * alpha;\n node.setLayout({\n x: nodeX\n }, true);\n } else {\n var nodeY = node.getLayout().y + (y - center(node, orient)) * alpha;\n node.setLayout({\n y: nodeY\n }, true);\n }\n }\n });\n });\n}\n/**\n * Compute the depth(y-position) of each edge\n */\n\n\nfunction computeEdgeDepths(nodes, orient) {\n var keyAttr = orient === 'vertical' ? 'x' : 'y';\n zrUtil.each(nodes, function (node) {\n node.outEdges.sort(function (a, b) {\n return a.node2.getLayout()[keyAttr] - b.node2.getLayout()[keyAttr];\n });\n node.inEdges.sort(function (a, b) {\n return a.node1.getLayout()[keyAttr] - b.node1.getLayout()[keyAttr];\n });\n });\n zrUtil.each(nodes, function (node) {\n var sy = 0;\n var ty = 0;\n zrUtil.each(node.outEdges, function (edge) {\n edge.setLayout({\n sy: sy\n }, true);\n sy += edge.getLayout().dy;\n });\n zrUtil.each(node.inEdges, function (edge) {\n edge.setLayout({\n ty: ty\n }, true);\n ty += edge.getLayout().dy;\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapping from '../../visual/VisualMapping';\nexport default function sankeyVisual(ecModel) {\n ecModel.eachSeriesByType('sankey', function (seriesModel) {\n var graph = seriesModel.getGraph();\n var nodes = graph.nodes;\n\n if (nodes.length) {\n var minValue_1 = Infinity;\n var maxValue_1 = -Infinity;\n zrUtil.each(nodes, function (node) {\n var nodeValue = node.getLayout().value;\n\n if (nodeValue < minValue_1) {\n minValue_1 = nodeValue;\n }\n\n if (nodeValue > maxValue_1) {\n maxValue_1 = nodeValue;\n }\n });\n zrUtil.each(nodes, function (node) {\n var mapping = new VisualMapping({\n type: 'color',\n mappingMethod: 'linear',\n dataExtent: [minValue_1, maxValue_1],\n visual: seriesModel.get('color')\n });\n var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);\n var customColor = node.getModel().get(['itemStyle', 'color']);\n\n if (customColor != null) {\n node.setVisual('color', customColor);\n node.setVisual('style', {\n fill: customColor\n });\n } else {\n node.setVisual('color', mapValueToColor);\n node.setVisual('style', {\n fill: mapValueToColor\n });\n }\n });\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SankeyView from './SankeyView';\nimport SankeySeriesModel from './SankeySeries';\nimport sankeyLayout from './sankeyLayout';\nimport sankeyVisual from './sankeyVisual';\nexport function install(registers) {\n registers.registerChartView(SankeyView);\n registers.registerSeriesModel(SankeySeriesModel);\n registers.registerLayout(sankeyLayout);\n registers.registerVisual(sankeyVisual);\n registers.registerAction({\n type: 'dragNode',\n event: 'dragnode',\n // here can only use 'update' now, other value is not support in echarts.\n update: 'update'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sankey',\n query: payload\n }, function (seriesModel) {\n seriesModel.setNodePosition(payload.dataIndex, [payload.localX, payload.localY]);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createListSimply from '../helper/createListSimply';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport { makeSeriesEncodeForAxisCoordSys } from '../../data/helper/sourceHelper';\n\nvar WhiskerBoxCommonMixin =\n/** @class */\nfunction () {\n function WhiskerBoxCommonMixin() {}\n /**\n * @override\n */\n\n\n WhiskerBoxCommonMixin.prototype.getInitialData = function (option, ecModel) {\n // When both types of xAxis and yAxis are 'value', layout is\n // needed to be specified by user. Otherwise, layout can be\n // judged by which axis is category.\n var ordinalMeta;\n var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex'));\n var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex'));\n var xAxisType = xAxisModel.get('type');\n var yAxisType = yAxisModel.get('type');\n var addOrdinal; // FIXME\n // Consider time axis.\n\n if (xAxisType === 'category') {\n option.layout = 'horizontal';\n ordinalMeta = xAxisModel.getOrdinalMeta();\n addOrdinal = true;\n } else if (yAxisType === 'category') {\n option.layout = 'vertical';\n ordinalMeta = yAxisModel.getOrdinalMeta();\n addOrdinal = true;\n } else {\n option.layout = option.layout || 'horizontal';\n }\n\n var coordDims = ['x', 'y'];\n var baseAxisDimIndex = option.layout === 'horizontal' ? 0 : 1;\n var baseAxisDim = this._baseAxisDim = coordDims[baseAxisDimIndex];\n var otherAxisDim = coordDims[1 - baseAxisDimIndex];\n var axisModels = [xAxisModel, yAxisModel];\n var baseAxisType = axisModels[baseAxisDimIndex].get('type');\n var otherAxisType = axisModels[1 - baseAxisDimIndex].get('type');\n var data = option.data; // ??? FIXME make a stage to perform data transfrom.\n // MUST create a new data, consider setOption({}) again.\n\n if (data && addOrdinal) {\n var newOptionData_1 = [];\n zrUtil.each(data, function (item, index) {\n var newItem;\n\n if (zrUtil.isArray(item)) {\n newItem = item.slice();\n item.unshift(index);\n } else if (zrUtil.isArray(item.value)) {\n newItem = item.value.slice();\n item.value.unshift(index);\n } else {\n newItem = item;\n }\n\n newOptionData_1.push(newItem);\n });\n option.data = newOptionData_1;\n }\n\n var defaultValueDimensions = this.defaultValueDimensions;\n var coordDimensions = [{\n name: baseAxisDim,\n type: getDimensionTypeByAxis(baseAxisType),\n ordinalMeta: ordinalMeta,\n otherDims: {\n tooltip: false,\n itemName: 0\n },\n dimsDef: ['base']\n }, {\n name: otherAxisDim,\n type: getDimensionTypeByAxis(otherAxisType),\n dimsDef: defaultValueDimensions.slice()\n }];\n return createListSimply(this, {\n coordDimensions: coordDimensions,\n dimensionsCount: defaultValueDimensions.length + 1,\n encodeDefaulter: zrUtil.curry(makeSeriesEncodeForAxisCoordSys, coordDimensions, this)\n });\n };\n /**\n * If horizontal, base axis is x, otherwise y.\n * @override\n */\n\n\n WhiskerBoxCommonMixin.prototype.getBaseAxis = function () {\n var dim = this._baseAxisDim;\n return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis;\n };\n\n return WhiskerBoxCommonMixin;\n}();\n\n;\nexport { WhiskerBoxCommonMixin };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport { WhiskerBoxCommonMixin } from '../helper/whiskerBoxCommon';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar BoxplotSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(BoxplotSeriesModel, _super);\n\n function BoxplotSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BoxplotSeriesModel.type; // TODO\n // box width represents group size, so dimension should have 'size'.\n\n /**\n * @see \n * The meanings of 'min' and 'max' depend on user,\n * and echarts do not need to know it.\n * @readOnly\n */\n\n _this.defaultValueDimensions = [{\n name: 'min',\n defaultTooltip: true\n }, {\n name: 'Q1',\n defaultTooltip: true\n }, {\n name: 'median',\n defaultTooltip: true\n }, {\n name: 'Q3',\n defaultTooltip: true\n }, {\n name: 'max',\n defaultTooltip: true\n }];\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n BoxplotSeriesModel.type = 'series.boxplot';\n BoxplotSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];\n BoxplotSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n layout: null,\n boxWidth: [7, 50],\n itemStyle: {\n color: '#fff',\n borderWidth: 1\n },\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2,\n shadowBlur: 5,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n }\n },\n animationDuration: 800\n };\n return BoxplotSeriesModel;\n}(SeriesModel);\n\nmixin(BoxplotSeriesModel, WhiskerBoxCommonMixin, true);\nexport default BoxplotSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport Path from 'zrender/lib/graphic/Path';\n\nvar BoxplotView =\n/** @class */\nfunction (_super) {\n __extends(BoxplotView, _super);\n\n function BoxplotView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BoxplotView.type;\n return _this;\n }\n\n BoxplotView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var group = this.group;\n var oldData = this._data; // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!this._data) {\n group.removeAll();\n }\n\n var constDim = seriesModel.get('layout') === 'horizontal' ? 1 : 0;\n data.diff(oldData).add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n var itemLayout = data.getItemLayout(newIdx);\n var symbolEl = createNormalBox(itemLayout, data, newIdx, constDim, true);\n data.setItemGraphicEl(newIdx, symbolEl);\n group.add(symbolEl);\n }\n }).update(function (newIdx, oldIdx) {\n var symbolEl = oldData.getItemGraphicEl(oldIdx); // Empty data\n\n if (!data.hasValue(newIdx)) {\n group.remove(symbolEl);\n return;\n }\n\n var itemLayout = data.getItemLayout(newIdx);\n\n if (!symbolEl) {\n symbolEl = createNormalBox(itemLayout, data, newIdx, constDim);\n } else {\n updateNormalBoxData(itemLayout, symbolEl, data, newIdx);\n }\n\n group.add(symbolEl);\n data.setItemGraphicEl(newIdx, symbolEl);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n }).execute();\n this._data = data;\n };\n\n BoxplotView.prototype.remove = function (ecModel) {\n var group = this.group;\n var data = this._data;\n this._data = null;\n data && data.eachItemGraphicEl(function (el) {\n el && group.remove(el);\n });\n };\n\n BoxplotView.type = 'boxplot';\n return BoxplotView;\n}(ChartView);\n\nvar BoxPathShape =\n/** @class */\nfunction () {\n function BoxPathShape() {}\n\n return BoxPathShape;\n}();\n\nvar BoxPath =\n/** @class */\nfunction (_super) {\n __extends(BoxPath, _super);\n\n function BoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'boxplotBoxPath';\n return _this;\n }\n\n BoxPath.prototype.getDefaultShape = function () {\n return new BoxPathShape();\n };\n\n BoxPath.prototype.buildPath = function (ctx, shape) {\n var ends = shape.points;\n var i = 0;\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n\n for (; i < 4; i++) {\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n\n ctx.closePath();\n\n for (; i < ends.length; i++) {\n ctx.moveTo(ends[i][0], ends[i][1]);\n i++;\n ctx.lineTo(ends[i][0], ends[i][1]);\n }\n };\n\n return BoxPath;\n}(Path);\n\nfunction createNormalBox(itemLayout, data, dataIndex, constDim, isInit) {\n var ends = itemLayout.ends;\n var el = new BoxPath({\n shape: {\n points: isInit ? transInit(ends, constDim, itemLayout) : ends\n }\n });\n updateNormalBoxData(itemLayout, el, data, dataIndex, isInit);\n return el;\n}\n\nfunction updateNormalBoxData(itemLayout, el, data, dataIndex, isInit) {\n var seriesModel = data.hostModel;\n var updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];\n updateMethod(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, dataIndex);\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n el.z2 = 100;\n var itemModel = data.getItemModel(dataIndex);\n setStatesStylesFromModel(el, itemModel);\n enableHoverEmphasis(el, itemModel.get(['emphasis', 'focus']), itemModel.get(['emphasis', 'blurScope']));\n}\n\nfunction transInit(points, dim, itemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[dim] = itemLayout.initBaseline;\n return point;\n });\n}\n\nexport default BoxplotView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function boxplotVisual(ecModel, api) {}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../../util/number';\nvar each = zrUtil.each;\nexport default function boxplotLayout(ecModel) {\n var groupResult = groupSeriesByAxis(ecModel);\n each(groupResult, function (groupItem) {\n var seriesModels = groupItem.seriesModels;\n\n if (!seriesModels.length) {\n return;\n }\n\n calculateBase(groupItem);\n each(seriesModels, function (seriesModel, idx) {\n layoutSingleSeries(seriesModel, groupItem.boxOffsetList[idx], groupItem.boxWidthList[idx]);\n });\n });\n}\n/**\n * Group series by axis.\n */\n\nfunction groupSeriesByAxis(ecModel) {\n var result = [];\n var axisList = [];\n ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n var baseAxis = seriesModel.getBaseAxis();\n var idx = zrUtil.indexOf(axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {\n axis: baseAxis,\n seriesModels: []\n };\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n return result;\n}\n/**\n * Calculate offset and box width for each series.\n */\n\n\nfunction calculateBase(groupItem) {\n var extent;\n var baseAxis = groupItem.axis;\n var seriesModels = groupItem.seriesModels;\n var seriesCount = seriesModels.length;\n var boxWidthList = groupItem.boxWidthList = [];\n var boxOffsetList = groupItem.boxOffsetList = [];\n var boundList = [];\n var bandWidth;\n\n if (baseAxis.type === 'category') {\n bandWidth = baseAxis.getBandWidth();\n } else {\n var maxDataCount_1 = 0;\n each(seriesModels, function (seriesModel) {\n maxDataCount_1 = Math.max(maxDataCount_1, seriesModel.getData().count());\n });\n extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / maxDataCount_1;\n }\n\n each(seriesModels, function (seriesModel) {\n var boxWidthBound = seriesModel.get('boxWidth');\n\n if (!zrUtil.isArray(boxWidthBound)) {\n boxWidthBound = [boxWidthBound, boxWidthBound];\n }\n\n boundList.push([parsePercent(boxWidthBound[0], bandWidth) || 0, parsePercent(boxWidthBound[1], bandWidth) || 0]);\n });\n var availableWidth = bandWidth * 0.8 - 2;\n var boxGap = availableWidth / seriesCount * 0.3;\n var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;\n var base = boxWidth / 2 - availableWidth / 2;\n each(seriesModels, function (seriesModel, idx) {\n boxOffsetList.push(base);\n base += boxGap + boxWidth;\n boxWidthList.push(Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1]));\n });\n}\n/**\n * Calculate points location for each series.\n */\n\n\nfunction layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dim, dataIndex) {\n var val = data.get(dim, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { quantile, asc } from '../../util/number';\nimport { isFunction, isString } from 'zrender/lib/core/util';\n/**\n * See:\n * \n * \n *\n * Helper method for preparing data.\n *\n * @param rawData like\n * [\n * [12,232,443], (raw data set for the first box)\n * [3843,5545,1232], (raw data set for the second box)\n * ...\n * ]\n * @param opt.boundIQR=1.5 Data less than min bound is outlier.\n * default 1.5, means Q1 - 1.5 * (Q3 - Q1).\n * If 'none'/0 passed, min bound will not be used.\n */\n\nexport default function prepareBoxplotData(rawData, opt) {\n opt = opt || {};\n var boxData = [];\n var outliers = [];\n var boundIQR = opt.boundIQR;\n var useExtreme = boundIQR === 'none' || boundIQR === 0;\n\n for (var i = 0; i < rawData.length; i++) {\n var ascList = asc(rawData[i].slice());\n var Q1 = quantile(ascList, 0.25);\n var Q2 = quantile(ascList, 0.5);\n var Q3 = quantile(ascList, 0.75);\n var min = ascList[0];\n var max = ascList[ascList.length - 1];\n var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1);\n var low = useExtreme ? min : Math.max(min, Q1 - bound);\n var high = useExtreme ? max : Math.min(max, Q3 + bound);\n var itemNameFormatter = opt.itemNameFormatter;\n var itemName = isFunction(itemNameFormatter) ? itemNameFormatter({\n value: i\n }) : isString(itemNameFormatter) ? itemNameFormatter.replace('{value}', i + '') : i + '';\n boxData.push([itemName, low, Q1, Q2, Q3, high]);\n\n for (var j = 0; j < ascList.length; j++) {\n var dataItem = ascList[j];\n\n if (dataItem < low || dataItem > high) {\n var outlier = [itemName, dataItem];\n outliers.push(outlier);\n }\n }\n }\n\n return {\n boxData: boxData,\n outliers: outliers\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport prepareBoxplotData from './prepareBoxplotData';\nimport { throwError, makePrintable } from '../../util/log';\nimport { SOURCE_FORMAT_ARRAY_ROWS } from '../../util/types';\nexport var boxplotTransform = {\n type: 'echarts:boxplot',\n transform: function transform(params) {\n var upstream = params.upstream;\n\n if (upstream.sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('source data is not applicable for this boxplot transform. Expect number[][].');\n }\n\n throwError(errMsg);\n }\n\n var result = prepareBoxplotData(upstream.getRawData(), params.config);\n return [{\n dimensions: ['ItemName', 'Low', 'Q1', 'Q2', 'Q3', 'High'],\n data: result.boxData\n }, {\n data: result.outliers\n }];\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport BoxplotSeriesModel from './BoxplotSeries';\nimport BoxplotView from './BoxplotView';\nimport boxplotVisual from './boxplotVisual';\nimport boxplotLayout from './boxplotLayout';\nimport { boxplotTransform } from './boxplotTransform';\nexport function install(registers) {\n registers.registerSeriesModel(BoxplotSeriesModel);\n registers.registerChartView(BoxplotView);\n registers.registerVisual(boxplotVisual);\n registers.registerLayout(boxplotLayout);\n registers.registerTransform(boxplotTransform);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel } from '../../util/states';\nimport Path from 'zrender/lib/graphic/Path';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nvar SKIP_PROPS = ['color', 'borderColor'];\n\nvar CandlestickView =\n/** @class */\nfunction (_super) {\n __extends(CandlestickView, _super);\n\n function CandlestickView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CandlestickView.type;\n return _this;\n }\n\n CandlestickView.prototype.render = function (seriesModel, ecModel, api) {\n // If there is clipPath created in large mode. Remove it.\n this.group.removeClipPath();\n\n this._updateDrawMode(seriesModel);\n\n this._isLargeDraw ? this._renderLarge(seriesModel) : this._renderNormal(seriesModel);\n };\n\n CandlestickView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this._clear();\n\n this._updateDrawMode(seriesModel);\n };\n\n CandlestickView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {\n this._isLargeDraw ? this._incrementalRenderLarge(params, seriesModel) : this._incrementalRenderNormal(params, seriesModel);\n };\n\n CandlestickView.prototype._updateDrawMode = function (seriesModel) {\n var isLargeDraw = seriesModel.pipelineContext.large;\n\n if (this._isLargeDraw == null || isLargeDraw !== this._isLargeDraw) {\n this._isLargeDraw = isLargeDraw;\n\n this._clear();\n }\n };\n\n CandlestickView.prototype._renderNormal = function (seriesModel) {\n var data = seriesModel.getData();\n var oldData = this._data;\n var group = this.group;\n var isSimpleBox = data.getLayout('isSimpleBox');\n var needsClip = seriesModel.get('clip', true);\n var coord = seriesModel.coordinateSystem;\n var clipArea = coord.getArea && coord.getArea(); // There is no old data only when first rendering or switching from\n // stream mode to normal mode, where previous elements should be removed.\n\n if (!this._data) {\n group.removeAll();\n }\n\n data.diff(oldData).add(function (newIdx) {\n if (data.hasValue(newIdx)) {\n var itemLayout = data.getItemLayout(newIdx);\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n return;\n }\n\n var el = createNormalBox(itemLayout, newIdx, true);\n graphic.initProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n setBoxCommon(el, data, newIdx, isSimpleBox);\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n }\n }).update(function (newIdx, oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx); // Empty data\n\n if (!data.hasValue(newIdx)) {\n group.remove(el);\n return;\n }\n\n var itemLayout = data.getItemLayout(newIdx);\n\n if (needsClip && isNormalBoxClipped(clipArea, itemLayout)) {\n group.remove(el);\n return;\n }\n\n if (!el) {\n el = createNormalBox(itemLayout, newIdx);\n } else {\n graphic.updateProps(el, {\n shape: {\n points: itemLayout.ends\n }\n }, seriesModel, newIdx);\n }\n\n setBoxCommon(el, data, newIdx, isSimpleBox);\n group.add(el);\n data.setItemGraphicEl(newIdx, el);\n }).remove(function (oldIdx) {\n var el = oldData.getItemGraphicEl(oldIdx);\n el && group.remove(el);\n }).execute();\n this._data = data;\n };\n\n CandlestickView.prototype._renderLarge = function (seriesModel) {\n this._clear();\n\n createLarge(seriesModel, this.group);\n var clipPath = seriesModel.get('clip', true) ? createClipPath(seriesModel.coordinateSystem, false, seriesModel) : null;\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n };\n\n CandlestickView.prototype._incrementalRenderNormal = function (params, seriesModel) {\n var data = seriesModel.getData();\n var isSimpleBox = data.getLayout('isSimpleBox');\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var itemLayout = data.getItemLayout(dataIndex);\n var el = createNormalBox(itemLayout, dataIndex);\n setBoxCommon(el, data, dataIndex, isSimpleBox);\n el.incremental = true;\n this.group.add(el);\n }\n };\n\n CandlestickView.prototype._incrementalRenderLarge = function (params, seriesModel) {\n createLarge(seriesModel, this.group, true);\n };\n\n CandlestickView.prototype.remove = function (ecModel) {\n this._clear();\n };\n\n CandlestickView.prototype._clear = function () {\n this.group.removeAll();\n this._data = null;\n };\n\n CandlestickView.type = 'candlestick';\n return CandlestickView;\n}(ChartView);\n\nvar NormalBoxPathShape =\n/** @class */\nfunction () {\n function NormalBoxPathShape() {}\n\n return NormalBoxPathShape;\n}();\n\nvar NormalBoxPath =\n/** @class */\nfunction (_super) {\n __extends(NormalBoxPath, _super);\n\n function NormalBoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'normalCandlestickBox';\n return _this;\n }\n\n NormalBoxPath.prototype.getDefaultShape = function () {\n return new NormalBoxPathShape();\n };\n\n NormalBoxPath.prototype.buildPath = function (ctx, shape) {\n var ends = shape.points;\n\n if (this.__simpleBox) {\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[6][0], ends[6][1]);\n } else {\n ctx.moveTo(ends[0][0], ends[0][1]);\n ctx.lineTo(ends[1][0], ends[1][1]);\n ctx.lineTo(ends[2][0], ends[2][1]);\n ctx.lineTo(ends[3][0], ends[3][1]);\n ctx.closePath();\n ctx.moveTo(ends[4][0], ends[4][1]);\n ctx.lineTo(ends[5][0], ends[5][1]);\n ctx.moveTo(ends[6][0], ends[6][1]);\n ctx.lineTo(ends[7][0], ends[7][1]);\n }\n };\n\n return NormalBoxPath;\n}(Path);\n\nfunction createNormalBox(itemLayout, dataIndex, isInit) {\n var ends = itemLayout.ends;\n return new NormalBoxPath({\n shape: {\n points: isInit ? transInit(ends, itemLayout) : ends\n },\n z2: 100\n });\n}\n\nfunction isNormalBoxClipped(clipArea, itemLayout) {\n var clipped = true;\n\n for (var i = 0; i < itemLayout.ends.length; i++) {\n // If any point are in the region.\n if (clipArea.contain(itemLayout.ends[i][0], itemLayout.ends[i][1])) {\n clipped = false;\n break;\n }\n }\n\n return clipped;\n}\n\nfunction setBoxCommon(el, data, dataIndex, isSimpleBox) {\n var itemModel = data.getItemModel(dataIndex);\n el.useStyle(data.getItemVisual(dataIndex, 'style'));\n el.style.strokeNoScale = true;\n el.__simpleBox = isSimpleBox;\n setStatesStylesFromModel(el, itemModel);\n}\n\nfunction transInit(points, itemLayout) {\n return zrUtil.map(points, function (point) {\n point = point.slice();\n point[1] = itemLayout.initBaseline;\n return point;\n });\n}\n\nvar LargeBoxPathShape =\n/** @class */\nfunction () {\n function LargeBoxPathShape() {}\n\n return LargeBoxPathShape;\n}();\n\nvar LargeBoxPath =\n/** @class */\nfunction (_super) {\n __extends(LargeBoxPath, _super);\n\n function LargeBoxPath(opts) {\n var _this = _super.call(this, opts) || this;\n\n _this.type = 'largeCandlestickBox';\n return _this;\n }\n\n LargeBoxPath.prototype.getDefaultShape = function () {\n return new LargeBoxPathShape();\n };\n\n LargeBoxPath.prototype.buildPath = function (ctx, shape) {\n // Drawing lines is more efficient than drawing\n // a whole line or drawing rects.\n var points = shape.points;\n\n for (var i = 0; i < points.length;) {\n if (this.__sign === points[i++]) {\n var x = points[i++];\n ctx.moveTo(x, points[i++]);\n ctx.lineTo(x, points[i++]);\n } else {\n i += 3;\n }\n }\n };\n\n return LargeBoxPath;\n}(Path);\n\nfunction createLarge(seriesModel, group, incremental) {\n var data = seriesModel.getData();\n var largePoints = data.getLayout('largePoints');\n var elP = new LargeBoxPath({\n shape: {\n points: largePoints\n },\n __sign: 1\n });\n group.add(elP);\n var elN = new LargeBoxPath({\n shape: {\n points: largePoints\n },\n __sign: -1\n });\n group.add(elN);\n setLargeStyle(1, elP, seriesModel, data);\n setLargeStyle(-1, elN, seriesModel, data);\n\n if (incremental) {\n elP.incremental = true;\n elN.incremental = true;\n }\n}\n\nfunction setLargeStyle(sign, el, seriesModel, data) {\n // TODO put in visual?\n var borderColor = seriesModel.get(['itemStyle', sign > 0 ? 'borderColor' : 'borderColor0']) || seriesModel.get(['itemStyle', sign > 0 ? 'color' : 'color0']); // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n\n var itemStyle = seriesModel.getModel('itemStyle').getItemStyle(SKIP_PROPS);\n el.useStyle(itemStyle);\n el.style.fill = null;\n el.style.stroke = borderColor;\n}\n\nexport default CandlestickView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport { WhiskerBoxCommonMixin } from '../helper/whiskerBoxCommon';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar CandlestickSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(CandlestickSeriesModel, _super);\n\n function CandlestickSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CandlestickSeriesModel.type;\n _this.defaultValueDimensions = [{\n name: 'open',\n defaultTooltip: true\n }, {\n name: 'close',\n defaultTooltip: true\n }, {\n name: 'lowest',\n defaultTooltip: true\n }, {\n name: 'highest',\n defaultTooltip: true\n }];\n return _this;\n }\n /**\n * Get dimension for shadow in dataZoom\n * @return dimension name\n */\n\n\n CandlestickSeriesModel.prototype.getShadowDim = function () {\n return 'open';\n };\n\n CandlestickSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n var itemLayout = data.getItemLayout(dataIndex);\n return itemLayout && selectors.rect(itemLayout.brushRect);\n };\n\n CandlestickSeriesModel.type = 'series.candlestick';\n CandlestickSeriesModel.dependencies = ['xAxis', 'yAxis', 'grid'];\n CandlestickSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'cartesian2d',\n legendHoverLink: true,\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n layout: null,\n clip: true,\n itemStyle: {\n color: '#eb5454',\n color0: '#47b262',\n borderColor: '#eb5454',\n borderColor0: '#47b262',\n // borderColor: '#d24040',\n // borderColor0: '#398f4f',\n borderWidth: 1\n },\n emphasis: {\n scale: true,\n itemStyle: {\n borderWidth: 2\n }\n },\n barMaxWidth: null,\n barMinWidth: null,\n barWidth: null,\n large: true,\n largeThreshold: 600,\n progressive: 3e3,\n progressiveThreshold: 1e4,\n progressiveChunkMode: 'mod',\n animationEasing: 'linear',\n animationDuration: 300\n };\n return CandlestickSeriesModel;\n}(SeriesModel);\n\nmixin(CandlestickSeriesModel, WhiskerBoxCommonMixin, true);\nexport default CandlestickSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function candlestickPreprocessor(option) {\n if (!option || !zrUtil.isArray(option.series)) {\n return;\n } // Translate 'k' to 'candlestick'.\n\n\n zrUtil.each(option.series, function (seriesItem) {\n if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {\n seriesItem.type = 'candlestick';\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { extend } from 'zrender/lib/core/util';\nvar positiveBorderColorQuery = ['itemStyle', 'borderColor'];\nvar negativeBorderColorQuery = ['itemStyle', 'borderColor0'];\nvar positiveColorQuery = ['itemStyle', 'color'];\nvar negativeColorQuery = ['itemStyle', 'color0'];\nvar candlestickVisual = {\n seriesType: 'candlestick',\n plan: createRenderPlanner(),\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel) {\n function getColor(sign, model) {\n return model.get(sign > 0 ? positiveColorQuery : negativeColorQuery);\n }\n\n function getBorderColor(sign, model) {\n return model.get(sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery);\n } // Only visible series has each data be visual encoded\n\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var isLargeRender = seriesModel.pipelineContext.large;\n return !isLargeRender && {\n progress: function (params, data) {\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var itemModel = data.getItemModel(dataIndex);\n var sign = data.getItemLayout(dataIndex).sign;\n var style = itemModel.getItemStyle();\n style.fill = getColor(sign, itemModel);\n style.stroke = getBorderColor(sign, itemModel) || style.fill;\n var existsStyle = data.ensureUniqueItemVisual(dataIndex, 'style');\n extend(existsStyle, style);\n }\n }\n };\n }\n};\nexport default candlestickVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport { subPixelOptimize } from '../../util/graphic';\nimport createRenderPlanner from '../helper/createRenderPlanner';\nimport { parsePercent } from '../../util/number';\nimport { retrieve2 } from 'zrender/lib/core/util';\nvar LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array;\nvar candlestickLayout = {\n seriesType: 'candlestick',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var candleWidth = calculateCandleWidth(seriesModel, data);\n var cDimIdx = 0;\n var vDimIdx = 1;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n var openDim = vDims[0];\n var closeDim = vDims[1];\n var lowestDim = vDims[2];\n var highestDim = vDims[3];\n data.setLayout({\n candleWidth: candleWidth,\n // The value is experimented visually.\n isSimpleBox: candleWidth <= 1.3\n });\n\n if (cDim == null || vDims.length < 4) {\n return;\n }\n\n return {\n progress: seriesModel.pipelineContext.large ? largeProgress : normalProgress\n };\n\n function normalProgress(params, data) {\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var axisDimVal = data.get(cDim, dataIndex);\n var openVal = data.get(openDim, dataIndex);\n var closeVal = data.get(closeDim, dataIndex);\n var lowestVal = data.get(lowestDim, dataIndex);\n var highestVal = data.get(highestDim, dataIndex);\n var ocLow = Math.min(openVal, closeVal);\n var ocHigh = Math.max(openVal, closeVal);\n var ocLowPoint = getPoint(ocLow, axisDimVal);\n var ocHighPoint = getPoint(ocHigh, axisDimVal);\n var lowestPoint = getPoint(lowestVal, axisDimVal);\n var highestPoint = getPoint(highestVal, axisDimVal);\n var ends = [];\n addBodyEnd(ends, ocHighPoint, 0);\n addBodyEnd(ends, ocLowPoint, 1);\n ends.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));\n data.setItemLayout(dataIndex, {\n sign: getSign(data, dataIndex, openVal, closeVal, closeDim),\n initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx],\n ends: ends,\n brushRect: makeBrushRect(lowestVal, highestVal, axisDimVal)\n });\n }\n\n function getPoint(val, axisDimVal) {\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n return isNaN(axisDimVal) || isNaN(val) ? [NaN, NaN] : coordSys.dataToPoint(p);\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] = subPixelOptimize(point1[cDimIdx] + candleWidth / 2, 1, false);\n point2[cDimIdx] = subPixelOptimize(point2[cDimIdx] - candleWidth / 2, 1, true);\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function makeBrushRect(lowestVal, highestVal, axisDimVal) {\n var pmin = getPoint(lowestVal, axisDimVal);\n var pmax = getPoint(highestVal, axisDimVal);\n pmin[cDimIdx] -= candleWidth / 2;\n pmax[cDimIdx] -= candleWidth / 2;\n return {\n x: pmin[0],\n y: pmin[1],\n width: vDimIdx ? candleWidth : pmax[0] - pmin[0],\n height: vDimIdx ? pmax[1] - pmin[1] : candleWidth\n };\n }\n\n function subPixelOptimizePoint(point) {\n point[cDimIdx] = subPixelOptimize(point[cDimIdx], 1);\n return point;\n }\n }\n\n function largeProgress(params, data) {\n // Structure: [sign, x, yhigh, ylow, sign, x, yhigh, ylow, ...]\n var points = new LargeArr(params.count * 4);\n var offset = 0;\n var point;\n var tmpIn = [];\n var tmpOut = [];\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var axisDimVal = data.get(cDim, dataIndex);\n var openVal = data.get(openDim, dataIndex);\n var closeVal = data.get(closeDim, dataIndex);\n var lowestVal = data.get(lowestDim, dataIndex);\n var highestVal = data.get(highestDim, dataIndex);\n\n if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) {\n points[offset++] = NaN;\n offset += 3;\n continue;\n }\n\n points[offset++] = getSign(data, dataIndex, openVal, closeVal, closeDim);\n tmpIn[cDimIdx] = axisDimVal;\n tmpIn[vDimIdx] = lowestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n tmpIn[vDimIdx] = highestVal;\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n points[offset++] = point ? point[1] : NaN;\n }\n\n data.setLayout('largePoints', points);\n }\n }\n};\n\nfunction getSign(data, dataIndex, openVal, closeVal, closeDim) {\n var sign;\n\n if (openVal > closeVal) {\n sign = -1;\n } else if (openVal < closeVal) {\n sign = 1;\n } else {\n sign = dataIndex > 0 // If close === open, compare with close of last record\n ? data.get(closeDim, dataIndex - 1) <= closeVal ? 1 : -1 : // No record of previous, set to be positive\n 1;\n }\n\n return sign;\n}\n\nfunction calculateCandleWidth(seriesModel, data) {\n var baseAxis = seriesModel.getBaseAxis();\n var extent;\n var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : (extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / data.count());\n var barMaxWidth = parsePercent(retrieve2(seriesModel.get('barMaxWidth'), bandWidth), bandWidth);\n var barMinWidth = parsePercent(retrieve2(seriesModel.get('barMinWidth'), 1), bandWidth);\n var barWidth = seriesModel.get('barWidth');\n return barWidth != null ? parsePercent(barWidth, bandWidth) // Put max outer to ensure bar visible in spite of overlap.\n : Math.max(Math.min(bandWidth / 2, barMaxWidth), barMinWidth);\n}\n\nexport default candlestickLayout;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CandlestickView from './CandlestickView';\nimport CandlestickSeriesModel from './CandlestickSeries';\nimport preprocessor from './preprocessor';\nimport candlestickVisual from './candlestickVisual';\nimport candlestickLayout from './candlestickLayout';\nexport function install(registers) {\n registers.registerChartView(CandlestickView);\n registers.registerSeriesModel(CandlestickSeriesModel);\n registers.registerPreprocessor(preprocessor);\n registers.registerVisual(candlestickVisual);\n registers.registerLayout(candlestickLayout);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { createSymbol } from '../../util/symbol';\nimport { Group } from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis, enableHoverEmphasis } from '../../util/states';\nimport { parsePercent } from '../../util/number';\nimport SymbolClz from './Symbol';\nvar EFFECT_RIPPLE_NUMBER = 3;\n\nfunction normalizeSymbolSize(symbolSize) {\n if (!zrUtil.isArray(symbolSize)) {\n symbolSize = [+symbolSize, +symbolSize];\n }\n\n return symbolSize;\n}\n\nfunction updateRipplePath(rippleGroup, effectCfg) {\n var color = effectCfg.rippleEffectColor || effectCfg.color;\n rippleGroup.eachChild(function (ripplePath) {\n ripplePath.attr({\n z: effectCfg.z,\n zlevel: effectCfg.zlevel,\n style: {\n stroke: effectCfg.brushType === 'stroke' ? color : null,\n fill: effectCfg.brushType === 'fill' ? color : null\n }\n });\n });\n}\n\nvar EffectSymbol =\n/** @class */\nfunction (_super) {\n __extends(EffectSymbol, _super);\n\n function EffectSymbol(data, idx) {\n var _this = _super.call(this) || this;\n\n var symbol = new SymbolClz(data, idx);\n var rippleGroup = new Group();\n\n _this.add(symbol);\n\n _this.add(rippleGroup);\n\n _this.updateData(data, idx);\n\n return _this;\n }\n\n EffectSymbol.prototype.stopEffectAnimation = function () {\n this.childAt(1).removeAll();\n };\n\n EffectSymbol.prototype.startEffectAnimation = function (effectCfg) {\n var symbolType = effectCfg.symbolType;\n var color = effectCfg.color;\n var rippleGroup = this.childAt(1);\n\n for (var i = 0; i < EFFECT_RIPPLE_NUMBER; i++) {\n // If width/height are set too small (e.g., set to 1) on ios10\n // and macOS Sierra, a circle stroke become a rect, no matter what\n // the scale is set. So we set width/height as 2. See #4136.\n var ripplePath = createSymbol(symbolType, -1, -1, 2, 2, color);\n ripplePath.attr({\n style: {\n strokeNoScale: true\n },\n z2: 99,\n silent: true,\n scaleX: 0.5,\n scaleY: 0.5\n });\n var delay = -i / EFFECT_RIPPLE_NUMBER * effectCfg.period + effectCfg.effectOffset; // TODO Configurable effectCfg.period\n\n ripplePath.animate('', true).when(effectCfg.period, {\n scaleX: effectCfg.rippleScale / 2,\n scaleY: effectCfg.rippleScale / 2\n }).delay(delay).start();\n ripplePath.animateStyle(true).when(effectCfg.period, {\n opacity: 0\n }).delay(delay).start();\n rippleGroup.add(ripplePath);\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n };\n /**\n * Update effect symbol\n */\n\n\n EffectSymbol.prototype.updateEffectAnimation = function (effectCfg) {\n var oldEffectCfg = this._effectCfg;\n var rippleGroup = this.childAt(1); // Must reinitialize effect if following configuration changed\n\n var DIFFICULT_PROPS = ['symbolType', 'period', 'rippleScale'];\n\n for (var i = 0; i < DIFFICULT_PROPS.length; i++) {\n var propName = DIFFICULT_PROPS[i];\n\n if (oldEffectCfg[propName] !== effectCfg[propName]) {\n this.stopEffectAnimation();\n this.startEffectAnimation(effectCfg);\n return;\n }\n }\n\n updateRipplePath(rippleGroup, effectCfg);\n };\n /**\n * Highlight symbol\n */\n\n\n EffectSymbol.prototype.highlight = function () {\n enterEmphasis(this);\n };\n /**\n * Downplay symbol\n */\n\n\n EffectSymbol.prototype.downplay = function () {\n leaveEmphasis(this);\n };\n /**\n * Update symbol properties\n */\n\n\n EffectSymbol.prototype.updateData = function (data, idx) {\n var _this = this;\n\n var seriesModel = data.hostModel;\n this.childAt(0).updateData(data, idx);\n var rippleGroup = this.childAt(1);\n var itemModel = data.getItemModel(idx);\n var symbolType = data.getItemVisual(idx, 'symbol');\n var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));\n var symbolStyle = data.getItemVisual(idx, 'style');\n var color = symbolStyle && symbolStyle.fill;\n rippleGroup.setScale(symbolSize);\n rippleGroup.traverse(function (ripplePath) {\n ripplePath.setStyle('fill', color);\n });\n var symbolOffset = data.getItemVisual(idx, 'symbolOffset');\n\n if (symbolOffset) {\n if (!zrUtil.isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n }\n\n rippleGroup.x = parsePercent(symbolOffset[0], symbolSize[0]);\n rippleGroup.y = parsePercent(zrUtil.retrieve2(symbolOffset[1], symbolOffset[0]) || 0, symbolSize[1]);\n }\n\n var symbolRotate = data.getItemVisual(idx, 'symbolRotate');\n rippleGroup.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var effectCfg = {};\n effectCfg.showEffectOn = seriesModel.get('showEffectOn');\n effectCfg.rippleScale = itemModel.get(['rippleEffect', 'scale']);\n effectCfg.brushType = itemModel.get(['rippleEffect', 'brushType']);\n effectCfg.period = itemModel.get(['rippleEffect', 'period']) * 1000;\n effectCfg.effectOffset = idx / data.count();\n effectCfg.z = seriesModel.getShallow('z') || 0;\n effectCfg.zlevel = seriesModel.getShallow('zlevel') || 0;\n effectCfg.symbolType = symbolType;\n effectCfg.color = color;\n effectCfg.rippleEffectColor = itemModel.get(['rippleEffect', 'color']);\n this.off('mouseover').off('mouseout').off('emphasis').off('normal');\n\n if (effectCfg.showEffectOn === 'render') {\n this._effectCfg ? this.updateEffectAnimation(effectCfg) : this.startEffectAnimation(effectCfg);\n this._effectCfg = effectCfg;\n } else {\n // Not keep old effect config\n this._effectCfg = null;\n this.stopEffectAnimation();\n\n this.onHoverStateChange = function (toState) {\n if (toState === 'emphasis') {\n if (effectCfg.showEffectOn !== 'render') {\n _this.startEffectAnimation(effectCfg);\n }\n } else if (toState === 'normal') {\n if (effectCfg.showEffectOn !== 'render') {\n _this.stopEffectAnimation();\n }\n }\n };\n }\n\n this._effectCfg = effectCfg;\n enableHoverEmphasis(this);\n };\n\n ;\n\n EffectSymbol.prototype.fadeOut = function (cb) {\n this.off('mouseover').off('mouseout');\n cb && cb();\n };\n\n ;\n return EffectSymbol;\n}(Group);\n\nexport default EffectSymbol;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../helper/SymbolDraw';\nimport EffectSymbol from '../helper/EffectSymbol';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport pointsLayout from '../../layout/points';\nimport ChartView from '../../view/Chart';\n\nvar EffectScatterView =\n/** @class */\nfunction (_super) {\n __extends(EffectScatterView, _super);\n\n function EffectScatterView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = EffectScatterView.type;\n return _this;\n }\n\n EffectScatterView.prototype.init = function () {\n this._symbolDraw = new SymbolDraw(EffectSymbol);\n };\n\n EffectScatterView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var effectSymbolDraw = this._symbolDraw;\n effectSymbolDraw.updateData(data, {\n clipShape: this._getClipShape(seriesModel)\n });\n this.group.add(effectSymbolDraw.group);\n };\n\n EffectScatterView.prototype._getClipShape = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var clipArea = coordSys && coordSys.getArea && coordSys.getArea();\n return seriesModel.get('clip', true) ? clipArea : null;\n };\n\n EffectScatterView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n this.group.dirty();\n var res = pointsLayout('').reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n }\n\n this._symbolDraw.updateLayout();\n };\n\n EffectScatterView.prototype._updateGroupTransform = function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.getRoamTransform) {\n this.group.transform = matrix.clone(coordSys.getRoamTransform());\n this.group.decomposeTransform();\n }\n };\n\n EffectScatterView.prototype.remove = function (ecModel, api) {\n this._symbolDraw && this._symbolDraw.remove(true);\n };\n\n EffectScatterView.type = 'effectScatter';\n return EffectScatterView;\n}(ChartView);\n\nexport default EffectScatterView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport createListFromArray from '../helper/createListFromArray';\nimport SeriesModel from '../../model/Series';\n\nvar EffectScatterSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(EffectScatterSeriesModel, _super);\n\n function EffectScatterSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = EffectScatterSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n EffectScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n useEncodeDefaulter: true\n });\n };\n\n EffectScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.point(data.getItemLayout(dataIndex));\n };\n\n EffectScatterSeriesModel.type = 'series.effectScatter';\n EffectScatterSeriesModel.dependencies = ['grid', 'polar'];\n EffectScatterSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n effectType: 'ripple',\n progressive: 0,\n // When to show the effect, option: 'render'|'emphasis'\n showEffectOn: 'render',\n clip: true,\n // Ripple effect config\n rippleEffect: {\n period: 4,\n // Scale of ripple\n scale: 2.5,\n // Brush type can be fill or stroke\n brushType: 'fill'\n },\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Polar coordinate system\n // polarIndex: 0,\n // Geo coordinate system\n // geoIndex: 0,\n // symbol: null, // 图形类型\n symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2\n // symbolRotate: null, // 图形旋转控制\n // itemStyle: {\n // opacity: 1\n // }\n\n };\n return EffectScatterSeriesModel;\n}(SeriesModel);\n\nexport default EffectScatterSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport EffectScatterView from './EffectScatterView';\nimport EffectScatterSeriesModel from './EffectScatterSeries';\nimport layoutPoints from '../../layout/points';\nexport function install(registers) {\n registers.registerChartView(EffectScatterView);\n registers.registerSeriesModel(EffectScatterSeriesModel);\n registers.registerLayout(layoutPoints('effectScatter'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Provide effect for line\n */\n\nimport * as graphic from '../../util/graphic';\nimport Line from './Line';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { createSymbol } from '../../util/symbol';\nimport * as vec2 from 'zrender/lib/core/vector';\nimport * as curveUtil from 'zrender/lib/core/curve';\n\nvar EffectLine =\n/** @class */\nfunction (_super) {\n __extends(EffectLine, _super);\n\n function EffectLine(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this.add(_this.createLine(lineData, idx, seriesScope));\n\n _this._updateEffectSymbol(lineData, idx);\n\n return _this;\n }\n\n EffectLine.prototype.createLine = function (lineData, idx, seriesScope) {\n return new Line(lineData, idx, seriesScope);\n };\n\n EffectLine.prototype._updateEffectSymbol = function (lineData, idx) {\n var itemModel = lineData.getItemModel(idx);\n var effectModel = itemModel.getModel('effect');\n var size = effectModel.get('symbolSize');\n var symbolType = effectModel.get('symbol');\n\n if (!zrUtil.isArray(size)) {\n size = [size, size];\n }\n\n var lineStyle = lineData.getItemVisual(idx, 'style');\n var color = effectModel.get('color') || lineStyle && lineStyle.stroke;\n var symbol = this.childAt(1);\n\n if (this._symbolType !== symbolType) {\n // Remove previous\n this.remove(symbol);\n symbol = createSymbol(symbolType, -0.5, -0.5, 1, 1, color);\n symbol.z2 = 100;\n symbol.culling = true;\n this.add(symbol);\n } // Symbol may be removed if loop is false\n\n\n if (!symbol) {\n return;\n } // Shadow color is same with color in default\n\n\n symbol.setStyle('shadowColor', color);\n symbol.setStyle(effectModel.getItemStyle(['color']));\n symbol.scaleX = size[0];\n symbol.scaleY = size[1];\n symbol.setColor(color);\n this._symbolType = symbolType;\n this._symbolScale = size;\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n };\n\n EffectLine.prototype._updateEffectAnimation = function (lineData, effectModel, idx) {\n var symbol = this.childAt(1);\n\n if (!symbol) {\n return;\n }\n\n var self = this;\n var points = lineData.getItemLayout(idx);\n var period = effectModel.get('period') * 1000;\n var loop = effectModel.get('loop');\n var constantSpeed = effectModel.get('constantSpeed');\n var delayExpr = zrUtil.retrieve(effectModel.get('delay'), function (idx) {\n return idx / lineData.count() * period / 3;\n }); // Ignore when updating\n\n symbol.ignore = true;\n\n this._updateAnimationPoints(symbol, points);\n\n if (constantSpeed > 0) {\n period = this._getLineLength(symbol) / constantSpeed * 1000;\n }\n\n if (period !== this._period || loop !== this._loop) {\n symbol.stopAnimation();\n\n if (period > 0) {\n var delayNum = void 0;\n\n if (typeof delayExpr === 'function') {\n delayNum = delayExpr(idx);\n } else {\n delayNum = delayExpr;\n }\n\n if (symbol.__t > 0) {\n delayNum = -period * symbol.__t;\n }\n\n symbol.__t = 0;\n var animator = symbol.animate('', loop).when(period, {\n __t: 1\n }).delay(delayNum).during(function () {\n self._updateSymbolPosition(symbol);\n });\n\n if (!loop) {\n animator.done(function () {\n self.remove(symbol);\n });\n }\n\n animator.start();\n }\n }\n\n this._period = period;\n this._loop = loop;\n };\n\n EffectLine.prototype._getLineLength = function (symbol) {\n // Not so accurate\n return vec2.dist(symbol.__p1, symbol.__cp1) + vec2.dist(symbol.__cp1, symbol.__p2);\n };\n\n EffectLine.prototype._updateAnimationPoints = function (symbol, points) {\n symbol.__p1 = points[0];\n symbol.__p2 = points[1];\n symbol.__cp1 = points[2] || [(points[0][0] + points[1][0]) / 2, (points[0][1] + points[1][1]) / 2];\n };\n\n EffectLine.prototype.updateData = function (lineData, idx, seriesScope) {\n this.childAt(0).updateData(lineData, idx, seriesScope);\n\n this._updateEffectSymbol(lineData, idx);\n };\n\n EffectLine.prototype._updateSymbolPosition = function (symbol) {\n var p1 = symbol.__p1;\n var p2 = symbol.__p2;\n var cp1 = symbol.__cp1;\n var t = symbol.__t;\n var pos = [symbol.x, symbol.y];\n var lastPos = pos.slice();\n var quadraticAt = curveUtil.quadraticAt;\n var quadraticDerivativeAt = curveUtil.quadraticDerivativeAt;\n pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);\n pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t); // Tangent\n\n var tx = quadraticDerivativeAt(p1[0], cp1[0], p2[0], t);\n var ty = quadraticDerivativeAt(p1[1], cp1[1], p2[1], t);\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2; // enable continuity trail for 'line', 'rect', 'roundRect' symbolType\n\n if (this._symbolType === 'line' || this._symbolType === 'rect' || this._symbolType === 'roundRect') {\n if (symbol.__lastT !== undefined && symbol.__lastT < symbol.__t) {\n symbol.scaleY = vec2.dist(lastPos, pos) * 1.05; // make sure the last segment render within endPoint\n\n if (t === 1) {\n pos[0] = lastPos[0] + (pos[0] - lastPos[0]) / 2;\n pos[1] = lastPos[1] + (pos[1] - lastPos[1]) / 2;\n }\n } else if (symbol.__lastT === 1) {\n // After first loop, symbol.__t does NOT start with 0, so connect p1 to pos directly.\n symbol.scaleY = 2 * vec2.dist(p1, pos);\n } else {\n symbol.scaleY = this._symbolScale[1];\n }\n }\n\n symbol.__lastT = symbol.__t;\n symbol.ignore = false;\n symbol.x = pos[0];\n symbol.y = pos[1];\n };\n\n EffectLine.prototype.updateLayout = function (lineData, idx) {\n this.childAt(0).updateLayout(lineData, idx);\n var effectModel = lineData.getItemModel(idx).getModel('effect');\n\n this._updateEffectAnimation(lineData, effectModel, idx);\n };\n\n return EffectLine;\n}(graphic.Group);\n\nexport default EffectLine;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\n\nvar Polyline =\n/** @class */\nfunction (_super) {\n __extends(Polyline, _super);\n\n function Polyline(lineData, idx, seriesScope) {\n var _this = _super.call(this) || this;\n\n _this._createPolyline(lineData, idx, seriesScope);\n\n return _this;\n }\n\n Polyline.prototype._createPolyline = function (lineData, idx, seriesScope) {\n // let seriesModel = lineData.hostModel;\n var points = lineData.getItemLayout(idx);\n var line = new graphic.Polyline({\n shape: {\n points: points\n }\n });\n this.add(line);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Polyline.prototype.updateData = function (lineData, idx, seriesScope) {\n var seriesModel = lineData.hostModel;\n var line = this.childAt(0);\n var target = {\n shape: {\n points: lineData.getItemLayout(idx)\n }\n };\n graphic.updateProps(line, target, seriesModel, idx);\n\n this._updateCommonStl(lineData, idx, seriesScope);\n };\n\n ;\n\n Polyline.prototype._updateCommonStl = function (lineData, idx, seriesScope) {\n var line = this.childAt(0);\n var itemModel = lineData.getItemModel(idx);\n var hoverLineStyle = seriesScope && seriesScope.emphasisLineStyle;\n\n if (!seriesScope || lineData.hasItemOption) {\n hoverLineStyle = itemModel.getModel(['emphasis', 'lineStyle']).getLineStyle();\n }\n\n line.useStyle(lineData.getItemVisual(idx, 'style'));\n line.style.fill = null;\n line.style.strokeNoScale = true;\n var lineEmphasisState = line.ensureState('emphasis');\n lineEmphasisState.style = hoverLineStyle;\n enableHoverEmphasis(this);\n };\n\n ;\n\n Polyline.prototype.updateLayout = function (lineData, idx) {\n var polyline = this.childAt(0);\n polyline.setShape('points', lineData.getItemLayout(idx));\n };\n\n ;\n return Polyline;\n}(graphic.Group);\n\nexport default Polyline;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Polyline from './Polyline';\nimport EffectLine from './EffectLine';\nimport * as vec2 from 'zrender/lib/core/vector';\n\nvar EffectPolyline =\n/** @class */\nfunction (_super) {\n __extends(EffectPolyline, _super);\n\n function EffectPolyline() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._lastFrame = 0;\n _this._lastFramePercent = 0;\n return _this;\n } // Override\n\n\n EffectPolyline.prototype.createLine = function (lineData, idx, seriesScope) {\n return new Polyline(lineData, idx, seriesScope);\n };\n\n ; // Override\n\n EffectPolyline.prototype._updateAnimationPoints = function (symbol, points) {\n this._points = points;\n var accLenArr = [0];\n var len = 0;\n\n for (var i = 1; i < points.length; i++) {\n var p1 = points[i - 1];\n var p2 = points[i];\n len += vec2.dist(p1, p2);\n accLenArr.push(len);\n }\n\n if (len === 0) {\n this._length = 0;\n return;\n }\n\n for (var i = 0; i < accLenArr.length; i++) {\n accLenArr[i] /= len;\n }\n\n this._offsets = accLenArr;\n this._length = len;\n };\n\n ; // Override\n\n EffectPolyline.prototype._getLineLength = function () {\n return this._length;\n };\n\n ; // Override\n\n EffectPolyline.prototype._updateSymbolPosition = function (symbol) {\n var t = symbol.__t;\n var points = this._points;\n var offsets = this._offsets;\n var len = points.length;\n\n if (!offsets) {\n // Has length 0\n return;\n }\n\n var lastFrame = this._lastFrame;\n var frame;\n\n if (t < this._lastFramePercent) {\n // Start from the next frame\n // PENDING start from lastFrame ?\n var start = Math.min(lastFrame + 1, len - 1);\n\n for (frame = start; frame >= 0; frame--) {\n if (offsets[frame] <= t) {\n break;\n }\n } // PENDING really need to do this ?\n\n\n frame = Math.min(frame, len - 2);\n } else {\n for (frame = lastFrame; frame < len; frame++) {\n if (offsets[frame] > t) {\n break;\n }\n }\n\n frame = Math.min(frame - 1, len - 2);\n }\n\n var p = (t - offsets[frame]) / (offsets[frame + 1] - offsets[frame]);\n var p0 = points[frame];\n var p1 = points[frame + 1];\n symbol.x = p0[0] * (1 - p) + p * p1[0];\n symbol.y = p0[1] * (1 - p) + p * p1[1];\n var tx = p1[0] - p0[0];\n var ty = p1[1] - p0[1];\n symbol.rotation = -Math.atan2(ty, tx) - Math.PI / 2;\n this._lastFrame = frame;\n this._lastFramePercent = t;\n symbol.ignore = false;\n };\n\n ;\n return EffectPolyline;\n}(EffectLine);\n\nexport default EffectPolyline;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO Batch by color\n\nimport * as graphic from '../../util/graphic';\nimport IncrementalDisplayable from 'zrender/lib/graphic/IncrementalDisplayable';\nimport * as lineContain from 'zrender/lib/contain/line';\nimport * as quadraticContain from 'zrender/lib/contain/quadratic';\nimport { getECData } from '../../util/innerStore';\n\nvar LargeLinesPathShape =\n/** @class */\nfunction () {\n function LargeLinesPathShape() {\n this.polyline = false;\n this.curveness = 0;\n this.segs = [];\n }\n\n return LargeLinesPathShape;\n}();\n\nvar LargeLinesPath =\n/** @class */\nfunction (_super) {\n __extends(LargeLinesPath, _super);\n\n function LargeLinesPath(opts) {\n return _super.call(this, opts) || this;\n }\n\n LargeLinesPath.prototype.getDefaultStyle = function () {\n return {\n stroke: '#000',\n fill: null\n };\n };\n\n LargeLinesPath.prototype.getDefaultShape = function () {\n return new LargeLinesPathShape();\n };\n\n LargeLinesPath.prototype.buildPath = function (ctx, shape) {\n var segs = shape.segs;\n var curveness = shape.curveness;\n\n if (shape.polyline) {\n for (var i = 0; i < segs.length;) {\n var count = segs[i++];\n\n if (count > 0) {\n ctx.moveTo(segs[i++], segs[i++]);\n\n for (var k = 1; k < count; k++) {\n ctx.lineTo(segs[i++], segs[i++]);\n }\n }\n }\n } else {\n for (var i = 0; i < segs.length;) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n var x1 = segs[i++];\n var y1 = segs[i++];\n ctx.moveTo(x0, y0);\n\n if (curveness > 0) {\n var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n ctx.quadraticCurveTo(x2, y2, x1, y1);\n } else {\n ctx.lineTo(x1, y1);\n }\n }\n }\n };\n\n LargeLinesPath.prototype.findDataIndex = function (x, y) {\n var shape = this.shape;\n var segs = shape.segs;\n var curveness = shape.curveness;\n var lineWidth = this.style.lineWidth;\n\n if (shape.polyline) {\n var dataIndex = 0;\n\n for (var i = 0; i < segs.length;) {\n var count = segs[i++];\n\n if (count > 0) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n\n for (var k = 1; k < count; k++) {\n var x1 = segs[i++];\n var y1 = segs[i++];\n\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n }\n\n dataIndex++;\n }\n } else {\n var dataIndex = 0;\n\n for (var i = 0; i < segs.length;) {\n var x0 = segs[i++];\n var y0 = segs[i++];\n var x1 = segs[i++];\n var y1 = segs[i++];\n\n if (curveness > 0) {\n var x2 = (x0 + x1) / 2 - (y0 - y1) * curveness;\n var y2 = (y0 + y1) / 2 - (x1 - x0) * curveness;\n\n if (quadraticContain.containStroke(x0, y0, x2, y2, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n } else {\n if (lineContain.containStroke(x0, y0, x1, y1, lineWidth, x, y)) {\n return dataIndex;\n }\n }\n\n dataIndex++;\n }\n }\n\n return -1;\n };\n\n return LargeLinesPath;\n}(graphic.Path);\n\nvar LargeLineDraw =\n/** @class */\nfunction () {\n function LargeLineDraw() {\n this.group = new graphic.Group();\n }\n\n LargeLineDraw.prototype.isPersistent = function () {\n return !this._incremental;\n };\n\n ;\n /**\n * Update symbols draw by new data\n */\n\n LargeLineDraw.prototype.updateData = function (data) {\n this.group.removeAll();\n var lineEl = new LargeLinesPath({\n rectHover: true,\n cursor: 'default'\n });\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data); // Add back\n\n\n this.group.add(lineEl);\n this._incremental = null;\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.incrementalPrepareUpdate = function (data) {\n this.group.removeAll();\n\n this._clearIncremental();\n\n if (data.count() > 5e5) {\n if (!this._incremental) {\n this._incremental = new IncrementalDisplayable({\n silent: true\n });\n }\n\n this.group.add(this._incremental);\n } else {\n this._incremental = null;\n }\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.incrementalUpdate = function (taskParams, data) {\n var lineEl = new LargeLinesPath();\n lineEl.setShape({\n segs: data.getLayout('linesPoints')\n });\n\n this._setCommon(lineEl, data, !!this._incremental);\n\n if (!this._incremental) {\n lineEl.rectHover = true;\n lineEl.cursor = 'default';\n lineEl.__startIndex = taskParams.start;\n this.group.add(lineEl);\n } else {\n this._incremental.addDisplayable(lineEl, true);\n }\n };\n\n ;\n /**\n * @override\n */\n\n LargeLineDraw.prototype.remove = function () {\n this._clearIncremental();\n\n this._incremental = null;\n this.group.removeAll();\n };\n\n ;\n\n LargeLineDraw.prototype._setCommon = function (lineEl, data, isIncremental) {\n var hostModel = data.hostModel;\n lineEl.setShape({\n polyline: hostModel.get('polyline'),\n curveness: hostModel.get(['lineStyle', 'curveness'])\n });\n lineEl.useStyle(hostModel.getModel('lineStyle').getLineStyle());\n lineEl.style.strokeNoScale = true;\n var style = data.getVisual('style');\n\n if (style && style.stroke) {\n lineEl.setStyle('stroke', style.stroke);\n }\n\n lineEl.setStyle('fill', null);\n\n if (!isIncremental) {\n var ecData_1 = getECData(lineEl); // Enable tooltip\n // PENDING May have performance issue when path is extremely large\n\n ecData_1.seriesIndex = hostModel.seriesIndex;\n lineEl.on('mousemove', function (e) {\n ecData_1.dataIndex = null;\n var dataIndex = lineEl.findDataIndex(e.offsetX, e.offsetY);\n\n if (dataIndex > 0) {\n // Provide dataIndex for tooltip\n ecData_1.dataIndex = dataIndex + lineEl.__startIndex;\n }\n });\n }\n };\n\n ;\n\n LargeLineDraw.prototype._clearIncremental = function () {\n var incremental = this._incremental;\n\n if (incremental) {\n incremental.clearDisplaybles();\n }\n };\n\n ;\n return LargeLineDraw;\n}();\n\nexport default LargeLineDraw;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Float32Array */\nimport createRenderPlanner from '../helper/createRenderPlanner';\nvar linesLayout = {\n seriesType: 'lines',\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n var isPolyline = seriesModel.get('polyline');\n var isLarge = seriesModel.pipelineContext.large;\n return {\n progress: function (params, lineData) {\n var lineCoords = [];\n\n if (isLarge) {\n var points = void 0;\n var segCount = params.end - params.start;\n\n if (isPolyline) {\n var totalCoordsCount = 0;\n\n for (var i = params.start; i < params.end; i++) {\n totalCoordsCount += seriesModel.getLineCoordsCount(i);\n }\n\n points = new Float32Array(segCount + totalCoordsCount * 2);\n } else {\n points = new Float32Array(segCount * 4);\n }\n\n var offset = 0;\n var pt = [];\n\n for (var i = params.start; i < params.end; i++) {\n var len = seriesModel.getLineCoords(i, lineCoords);\n\n if (isPolyline) {\n points[offset++] = len;\n }\n\n for (var k = 0; k < len; k++) {\n pt = coordSys.dataToPoint(lineCoords[k], false, pt);\n points[offset++] = pt[0];\n points[offset++] = pt[1];\n }\n }\n\n lineData.setLayout('linesPoints', points);\n } else {\n for (var i = params.start; i < params.end; i++) {\n var itemModel = lineData.getItemModel(i);\n var len = seriesModel.getLineCoords(i, lineCoords);\n var pts = [];\n\n if (isPolyline) {\n for (var j = 0; j < len; j++) {\n pts.push(coordSys.dataToPoint(lineCoords[j]));\n }\n } else {\n pts[0] = coordSys.dataToPoint(lineCoords[0]);\n pts[1] = coordSys.dataToPoint(lineCoords[1]);\n var curveness = itemModel.get(['lineStyle', 'curveness']);\n\n if (+curveness) {\n pts[2] = [(pts[0][0] + pts[1][0]) / 2 - (pts[0][1] - pts[1][1]) * curveness, (pts[0][1] + pts[1][1]) / 2 - (pts[1][0] - pts[0][0]) * curveness];\n }\n }\n\n lineData.setItemLayout(i, pts);\n }\n }\n }\n };\n }\n};\nexport default linesLayout;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport LineDraw from '../helper/LineDraw';\nimport EffectLine from '../helper/EffectLine';\nimport Line from '../helper/Line';\nimport Polyline from '../helper/Polyline';\nimport EffectPolyline from '../helper/EffectPolyline';\nimport LargeLineDraw from '../helper/LargeLineDraw';\nimport linesLayout from './linesLayout';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport ChartView from '../../view/Chart';\n\nvar LinesView =\n/** @class */\nfunction (_super) {\n __extends(LinesView, _super);\n\n function LinesView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LinesView.type;\n return _this;\n }\n\n LinesView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var lineDraw = this._updateLineDraw(data, seriesModel);\n\n var zlevel = seriesModel.get('zlevel');\n var trailLength = seriesModel.get(['effect', 'trailLength']);\n var zr = api.getZr(); // Avoid the drag cause ghost shadow\n // FIXME Better way ?\n // SVG doesn't support\n\n var isSvg = zr.painter.getType() === 'svg';\n\n if (!isSvg) {\n zr.painter.getLayer(zlevel).clear(true);\n } // Config layer with motion blur\n\n\n if (this._lastZlevel != null && !isSvg) {\n zr.configLayer(this._lastZlevel, {\n motionBlur: false\n });\n }\n\n if (this._showEffect(seriesModel) && trailLength) {\n if (process.env.NODE_ENV !== 'production') {\n var notInIndividual_1 = false;\n ecModel.eachSeries(function (otherSeriesModel) {\n if (otherSeriesModel !== seriesModel && otherSeriesModel.get('zlevel') === zlevel) {\n notInIndividual_1 = true;\n }\n });\n notInIndividual_1 && console.warn('Lines with trail effect should have an individual zlevel');\n }\n\n if (!isSvg) {\n zr.configLayer(zlevel, {\n motionBlur: true,\n lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)\n });\n }\n }\n\n lineDraw.updateData(data);\n var clipPath = seriesModel.get('clip', true) && createClipPath(seriesModel.coordinateSystem, false, seriesModel);\n\n if (clipPath) {\n this.group.setClipPath(clipPath);\n } else {\n this.group.removeClipPath();\n }\n\n this._lastZlevel = zlevel;\n this._finished = true;\n };\n\n LinesView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n\n var lineDraw = this._updateLineDraw(data, seriesModel);\n\n lineDraw.incrementalPrepareUpdate(data);\n\n this._clearLayer(api);\n\n this._finished = false;\n };\n\n LinesView.prototype.incrementalRender = function (taskParams, seriesModel, ecModel) {\n this._lineDraw.incrementalUpdate(taskParams, seriesModel.getData());\n\n this._finished = taskParams.end === seriesModel.getData().count();\n };\n\n LinesView.prototype.updateTransform = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var pipelineContext = seriesModel.pipelineContext;\n\n if (!this._finished || pipelineContext.large || pipelineContext.progressiveRender) {\n // TODO Don't have to do update in large mode. Only do it when there are millions of data.\n return {\n update: true\n };\n } else {\n // TODO Use same logic with ScatterView.\n // Manually update layout\n var res = linesLayout.reset(seriesModel, ecModel, api);\n\n if (res.progress) {\n res.progress({\n start: 0,\n end: data.count(),\n count: data.count()\n }, data);\n } // Not in large mode\n\n\n this._lineDraw.updateLayout();\n\n this._clearLayer(api);\n }\n };\n\n LinesView.prototype._updateLineDraw = function (data, seriesModel) {\n var lineDraw = this._lineDraw;\n\n var hasEffect = this._showEffect(seriesModel);\n\n var isPolyline = !!seriesModel.get('polyline');\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeDraw = pipelineContext.large;\n\n if (process.env.NODE_ENV !== 'production') {\n if (hasEffect && isLargeDraw) {\n console.warn('Large lines not support effect');\n }\n }\n\n if (!lineDraw || hasEffect !== this._hasEffet || isPolyline !== this._isPolyline || isLargeDraw !== this._isLargeDraw) {\n if (lineDraw) {\n lineDraw.remove();\n }\n\n lineDraw = this._lineDraw = isLargeDraw ? new LargeLineDraw() : new LineDraw(isPolyline ? hasEffect ? EffectPolyline : Polyline : hasEffect ? EffectLine : Line);\n this._hasEffet = hasEffect;\n this._isPolyline = isPolyline;\n this._isLargeDraw = isLargeDraw;\n this.group.removeAll();\n }\n\n this.group.add(lineDraw.group);\n return lineDraw;\n };\n\n LinesView.prototype._showEffect = function (seriesModel) {\n return !!seriesModel.get(['effect', 'show']);\n };\n\n LinesView.prototype._clearLayer = function (api) {\n // Not use motion when dragging or zooming\n var zr = api.getZr();\n var isSvg = zr.painter.getType() === 'svg';\n\n if (!isSvg && this._lastZlevel != null) {\n zr.painter.getLayer(this._lastZlevel).clear(true);\n }\n };\n\n LinesView.prototype.remove = function (ecModel, api) {\n this._lineDraw && this._lineDraw.remove();\n this._lineDraw = null; // Clear motion when lineDraw is removed\n\n this._clearLayer(api);\n };\n\n LinesView.type = 'lines';\n return LinesView;\n}(ChartView);\n\nexport default LinesView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Uint32Array, Float64Array, Float32Array */\n\nimport SeriesModel from '../../model/Series';\nimport List from '../../data/List';\nimport { concatArray, mergeAll, map } from 'zrender/lib/core/util';\nimport CoordinateSystem from '../../core/CoordinateSystem';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nvar Uint32Arr = typeof Uint32Array === 'undefined' ? Array : Uint32Array;\nvar Float64Arr = typeof Float64Array === 'undefined' ? Array : Float64Array;\n\nfunction compatEc2(seriesOpt) {\n var data = seriesOpt.data;\n\n if (data && data[0] && data[0][0] && data[0][0].coord) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('Lines data configuration has been changed to' + ' { coords:[[1,2],[2,3]] }');\n }\n\n seriesOpt.data = map(data, function (itemOpt) {\n var coords = [itemOpt[0].coord, itemOpt[1].coord];\n var target = {\n coords: coords\n };\n\n if (itemOpt[0].name) {\n target.fromName = itemOpt[0].name;\n }\n\n if (itemOpt[1].name) {\n target.toName = itemOpt[1].name;\n }\n\n return mergeAll([target, itemOpt[0], itemOpt[1]]);\n });\n }\n}\n\nvar LinesSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(LinesSeriesModel, _super);\n\n function LinesSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LinesSeriesModel.type;\n _this.visualStyleAccessPath = 'lineStyle';\n _this.visualDrawType = 'stroke';\n return _this;\n }\n\n LinesSeriesModel.prototype.init = function (option) {\n // The input data may be null/undefined.\n option.data = option.data || []; // Not using preprocessor because mergeOption may not have series.type\n\n compatEc2(option);\n\n var result = this._processFlatCoordsArray(option.data);\n\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n\n _super.prototype.init.apply(this, arguments);\n };\n\n LinesSeriesModel.prototype.mergeOption = function (option) {\n compatEc2(option);\n\n if (option.data) {\n // Only update when have option data to merge.\n var result = this._processFlatCoordsArray(option.data);\n\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n\n if (result.flatCoords) {\n option.data = new Float32Array(result.count);\n }\n }\n\n _super.prototype.mergeOption.apply(this, arguments);\n };\n\n LinesSeriesModel.prototype.appendData = function (params) {\n var result = this._processFlatCoordsArray(params.data);\n\n if (result.flatCoords) {\n if (!this._flatCoords) {\n this._flatCoords = result.flatCoords;\n this._flatCoordsOffset = result.flatCoordsOffset;\n } else {\n this._flatCoords = concatArray(this._flatCoords, result.flatCoords);\n this._flatCoordsOffset = concatArray(this._flatCoordsOffset, result.flatCoordsOffset);\n }\n\n params.data = new Float32Array(result.count);\n }\n\n this.getRawData().appendData(params.data);\n };\n\n LinesSeriesModel.prototype._getCoordsFromItemModel = function (idx) {\n var itemModel = this.getData().getItemModel(idx);\n var coords = itemModel.option instanceof Array ? itemModel.option : itemModel.getShallow('coords');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(coords instanceof Array && coords.length > 0 && coords[0] instanceof Array)) {\n throw new Error('Invalid coords ' + JSON.stringify(coords) + '. Lines must have 2d coords array in data item.');\n }\n }\n\n return coords;\n };\n\n LinesSeriesModel.prototype.getLineCoordsCount = function (idx) {\n if (this._flatCoordsOffset) {\n return this._flatCoordsOffset[idx * 2 + 1];\n } else {\n return this._getCoordsFromItemModel(idx).length;\n }\n };\n\n LinesSeriesModel.prototype.getLineCoords = function (idx, out) {\n if (this._flatCoordsOffset) {\n var offset = this._flatCoordsOffset[idx * 2];\n var len = this._flatCoordsOffset[idx * 2 + 1];\n\n for (var i = 0; i < len; i++) {\n out[i] = out[i] || [];\n out[i][0] = this._flatCoords[offset + i * 2];\n out[i][1] = this._flatCoords[offset + i * 2 + 1];\n }\n\n return len;\n } else {\n var coords = this._getCoordsFromItemModel(idx);\n\n for (var i = 0; i < coords.length; i++) {\n out[i] = out[i] || [];\n out[i][0] = coords[i][0];\n out[i][1] = coords[i][1];\n }\n\n return coords.length;\n }\n };\n\n LinesSeriesModel.prototype._processFlatCoordsArray = function (data) {\n var startOffset = 0;\n\n if (this._flatCoords) {\n startOffset = this._flatCoords.length;\n } // Stored as a typed array. In format\n // Points Count(2) | x | y | x | y | Points Count(3) | x | y | x | y | x | y |\n\n\n if (typeof data[0] === 'number') {\n var len = data.length; // Store offset and len of each segment\n\n var coordsOffsetAndLenStorage = new Uint32Arr(len);\n var coordsStorage = new Float64Arr(len);\n var coordsCursor = 0;\n var offsetCursor = 0;\n var dataCount = 0;\n\n for (var i = 0; i < len;) {\n dataCount++;\n var count = data[i++]; // Offset\n\n coordsOffsetAndLenStorage[offsetCursor++] = coordsCursor + startOffset; // Len\n\n coordsOffsetAndLenStorage[offsetCursor++] = count;\n\n for (var k = 0; k < count; k++) {\n var x = data[i++];\n var y = data[i++];\n coordsStorage[coordsCursor++] = x;\n coordsStorage[coordsCursor++] = y;\n\n if (i > len) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error('Invalid data format.');\n }\n }\n }\n }\n\n return {\n flatCoordsOffset: new Uint32Array(coordsOffsetAndLenStorage.buffer, 0, offsetCursor),\n flatCoords: coordsStorage,\n count: dataCount\n };\n }\n\n return {\n flatCoordsOffset: null,\n flatCoords: null,\n count: data.length\n };\n };\n\n LinesSeriesModel.prototype.getInitialData = function (option, ecModel) {\n if (process.env.NODE_ENV !== 'production') {\n var CoordSys = CoordinateSystem.get(option.coordinateSystem);\n\n if (!CoordSys) {\n throw new Error('Unkown coordinate system ' + option.coordinateSystem);\n }\n }\n\n var lineData = new List(['value'], this);\n lineData.hasItemOption = false;\n lineData.initData(option.data, [], function (dataItem, dimName, dataIndex, dimIndex) {\n // dataItem is simply coords\n if (dataItem instanceof Array) {\n return NaN;\n } else {\n lineData.hasItemOption = true;\n var value = dataItem.value;\n\n if (value != null) {\n return value instanceof Array ? value[dimIndex] : value;\n }\n }\n });\n return lineData;\n };\n\n LinesSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var itemModel = data.getItemModel(dataIndex);\n var name = itemModel.get('name');\n\n if (name) {\n return name;\n }\n\n var fromName = itemModel.get('fromName');\n var toName = itemModel.get('toName');\n var nameArr = [];\n fromName != null && nameArr.push(fromName);\n toName != null && nameArr.push(toName);\n return createTooltipMarkup('nameValue', {\n name: nameArr.join(' > ')\n });\n };\n\n LinesSeriesModel.prototype.preventIncremental = function () {\n return !!this.get(['effect', 'show']);\n };\n\n LinesSeriesModel.prototype.getProgressive = function () {\n var progressive = this.option.progressive;\n\n if (progressive == null) {\n return this.option.large ? 1e4 : this.get('progressive');\n }\n\n return progressive;\n };\n\n LinesSeriesModel.prototype.getProgressiveThreshold = function () {\n var progressiveThreshold = this.option.progressiveThreshold;\n\n if (progressiveThreshold == null) {\n return this.option.large ? 2e4 : this.get('progressiveThreshold');\n }\n\n return progressiveThreshold;\n };\n\n LinesSeriesModel.type = 'series.lines';\n LinesSeriesModel.dependencies = ['grid', 'polar', 'geo', 'calendar'];\n LinesSeriesModel.defaultOption = {\n coordinateSystem: 'geo',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // Cartesian coordinate system\n xAxisIndex: 0,\n yAxisIndex: 0,\n symbol: ['none', 'none'],\n symbolSize: [10, 10],\n // Geo coordinate system\n geoIndex: 0,\n effect: {\n show: false,\n period: 4,\n constantSpeed: 0,\n symbol: 'circle',\n symbolSize: 3,\n loop: true,\n trailLength: 0.2\n },\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n polyline: false,\n clip: true,\n label: {\n show: false,\n position: 'end' // distance: 5,\n // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调\n\n },\n lineStyle: {\n opacity: 0.5\n }\n };\n return LinesSeriesModel;\n}(SeriesModel);\n\nexport default LinesSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nfunction normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}\n\nvar linesVisual = {\n seriesType: 'lines',\n reset: function (seriesModel) {\n var symbolType = normalize(seriesModel.get('symbol'));\n var symbolSize = normalize(seriesModel.get('symbolSize'));\n var data = seriesModel.getData();\n data.setVisual('fromSymbol', symbolType && symbolType[0]);\n data.setVisual('toSymbol', symbolType && symbolType[1]);\n data.setVisual('fromSymbolSize', symbolSize && symbolSize[0]);\n data.setVisual('toSymbolSize', symbolSize && symbolSize[1]);\n\n function dataEach(data, idx) {\n var itemModel = data.getItemModel(idx);\n var symbolType = normalize(itemModel.getShallow('symbol', true));\n var symbolSize = normalize(itemModel.getShallow('symbolSize', true));\n symbolType[0] && data.setItemVisual(idx, 'fromSymbol', symbolType[0]);\n symbolType[1] && data.setItemVisual(idx, 'toSymbol', symbolType[1]);\n symbolSize[0] && data.setItemVisual(idx, 'fromSymbolSize', symbolSize[0]);\n symbolSize[1] && data.setItemVisual(idx, 'toSymbolSize', symbolSize[1]);\n }\n\n return {\n dataEach: data.hasItemOption ? dataEach : null\n };\n }\n};\nexport default linesVisual;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LinesView from './LinesView';\nimport LinesSeriesModel from './LinesSeries';\nimport linesLayout from './linesLayout';\nimport linesVisual from './linesVisual';\nexport function install(registers) {\n registers.registerChartView(LinesView);\n registers.registerSeriesModel(LinesSeriesModel);\n registers.registerLayout(linesLayout);\n registers.registerVisual(linesVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/* global Uint8ClampedArray */\nimport * as zrUtil from 'zrender/lib/core/util';\nvar GRADIENT_LEVELS = 256;\n\nvar HeatmapLayer =\n/** @class */\nfunction () {\n function HeatmapLayer() {\n this.blurSize = 30;\n this.pointSize = 20;\n this.maxOpacity = 1;\n this.minOpacity = 0;\n this._gradientPixels = {\n inRange: null,\n outOfRange: null\n };\n var canvas = zrUtil.createCanvas();\n this.canvas = canvas;\n }\n /**\n * Renders Heatmap and returns the rendered canvas\n * @param data array of data, each has x, y, value\n * @param width canvas width\n * @param height canvas height\n */\n\n\n HeatmapLayer.prototype.update = function (data, width, height, normalize, colorFunc, isInRange) {\n var brush = this._getBrush();\n\n var gradientInRange = this._getGradient(colorFunc, 'inRange');\n\n var gradientOutOfRange = this._getGradient(colorFunc, 'outOfRange');\n\n var r = this.pointSize + this.blurSize;\n var canvas = this.canvas;\n var ctx = canvas.getContext('2d');\n var len = data.length;\n canvas.width = width;\n canvas.height = height;\n\n for (var i = 0; i < len; ++i) {\n var p = data[i];\n var x = p[0];\n var y = p[1];\n var value = p[2]; // calculate alpha using value\n\n var alpha = normalize(value); // draw with the circle brush with alpha\n\n ctx.globalAlpha = alpha;\n ctx.drawImage(brush, x - r, y - r);\n }\n\n if (!canvas.width || !canvas.height) {\n // Avoid \"Uncaught DOMException: Failed to execute 'getImageData' on\n // 'CanvasRenderingContext2D': The source height is 0.\"\n return canvas;\n } // colorize the canvas using alpha value and set with gradient\n\n\n var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);\n var pixels = imageData.data;\n var offset = 0;\n var pixelLen = pixels.length;\n var minOpacity = this.minOpacity;\n var maxOpacity = this.maxOpacity;\n var diffOpacity = maxOpacity - minOpacity;\n\n while (offset < pixelLen) {\n var alpha = pixels[offset + 3] / 256;\n var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4; // Simple optimize to ignore the empty data\n\n if (alpha > 0) {\n var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange; // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]\n\n alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);\n pixels[offset++] = gradient[gradientOffset];\n pixels[offset++] = gradient[gradientOffset + 1];\n pixels[offset++] = gradient[gradientOffset + 2];\n pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;\n } else {\n offset += 4;\n }\n }\n\n ctx.putImageData(imageData, 0, 0);\n return canvas;\n };\n /**\n * get canvas of a black circle brush used for canvas to draw later\n */\n\n\n HeatmapLayer.prototype._getBrush = function () {\n var brushCanvas = this._brushCanvas || (this._brushCanvas = zrUtil.createCanvas()); // set brush size\n\n var r = this.pointSize + this.blurSize;\n var d = r * 2;\n brushCanvas.width = d;\n brushCanvas.height = d;\n var ctx = brushCanvas.getContext('2d');\n ctx.clearRect(0, 0, d, d); // in order to render shadow without the distinct circle,\n // draw the distinct circle in an invisible place,\n // and use shadowOffset to draw shadow in the center of the canvas\n\n ctx.shadowOffsetX = d;\n ctx.shadowBlur = this.blurSize; // draw the shadow in black, and use alpha and shadow blur to generate\n // color in color map\n\n ctx.shadowColor = '#000'; // draw circle in the left to the canvas\n\n ctx.beginPath();\n ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n return brushCanvas;\n };\n /**\n * get gradient color map\n * @private\n */\n\n\n HeatmapLayer.prototype._getGradient = function (colorFunc, state) {\n var gradientPixels = this._gradientPixels;\n var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));\n var color = [0, 0, 0, 0];\n var off = 0;\n\n for (var i = 0; i < 256; i++) {\n colorFunc[state](i / 255, true, color);\n pixelsSingleState[off++] = color[0];\n pixelsSingleState[off++] = color[1];\n pixelsSingleState[off++] = color[2];\n pixelsSingleState[off++] = color[3];\n }\n\n return pixelsSingleState;\n };\n\n return HeatmapLayer;\n}();\n\nexport default HeatmapLayer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport HeatmapLayer from './HeatmapLayer';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\n\nfunction getIsInPiecewiseRange(dataExtent, pieceList, selected) {\n var dataSpan = dataExtent[1] - dataExtent[0];\n pieceList = zrUtil.map(pieceList, function (piece) {\n return {\n interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan]\n };\n });\n var len = pieceList.length;\n var lastIndex = 0;\n return function (val) {\n var i; // Try to find in the location of the last found\n\n for (i = lastIndex; i < len; i++) {\n var interval = pieceList[i].interval;\n\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n\n if (i === len) {\n // Not found, back interation\n for (i = lastIndex - 1; i >= 0; i--) {\n var interval = pieceList[i].interval;\n\n if (interval[0] <= val && val <= interval[1]) {\n lastIndex = i;\n break;\n }\n }\n }\n\n return i >= 0 && i < len && selected[i];\n };\n}\n\nfunction getIsInContinuousRange(dataExtent, range) {\n var dataSpan = dataExtent[1] - dataExtent[0];\n range = [(range[0] - dataExtent[0]) / dataSpan, (range[1] - dataExtent[0]) / dataSpan];\n return function (val) {\n return val >= range[0] && val <= range[1];\n };\n}\n\nfunction isGeoCoordSys(coordSys) {\n var dimensions = coordSys.dimensions; // Not use coorSys.type === 'geo' because coordSys maybe extended\n\n return dimensions[0] === 'lng' && dimensions[1] === 'lat';\n}\n\nvar HeatmapView =\n/** @class */\nfunction (_super) {\n __extends(HeatmapView, _super);\n\n function HeatmapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = HeatmapView.type;\n return _this;\n }\n\n HeatmapView.prototype.render = function (seriesModel, ecModel, api) {\n var visualMapOfThisSeries;\n ecModel.eachComponent('visualMap', function (visualMap) {\n visualMap.eachTargetSeries(function (targetSeries) {\n if (targetSeries === seriesModel) {\n visualMapOfThisSeries = visualMap;\n }\n });\n });\n\n if (process.env.NODE_ENV !== 'production') {\n if (!visualMapOfThisSeries) {\n throw new Error('Heatmap must use with visualMap');\n }\n }\n\n this.group.removeAll();\n this._incrementalDisplayable = null;\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys.type === 'cartesian2d' || coordSys.type === 'calendar') {\n this._renderOnCartesianAndCalendar(seriesModel, api, 0, seriesModel.getData().count());\n } else if (isGeoCoordSys(coordSys)) {\n this._renderOnGeo(coordSys, seriesModel, visualMapOfThisSeries, api);\n }\n };\n\n HeatmapView.prototype.incrementalPrepareRender = function (seriesModel, ecModel, api) {\n this.group.removeAll();\n };\n\n HeatmapView.prototype.incrementalRender = function (params, seriesModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys) {\n // geo does not support incremental rendering?\n if (isGeoCoordSys(coordSys)) {\n this.render(seriesModel, ecModel, api);\n } else {\n this._renderOnCartesianAndCalendar(seriesModel, api, params.start, params.end, true);\n }\n }\n };\n\n HeatmapView.prototype._renderOnCartesianAndCalendar = function (seriesModel, api, start, end, incremental) {\n var coordSys = seriesModel.coordinateSystem;\n var width;\n var height;\n var xAxisExtent;\n var yAxisExtent;\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n\n if (process.env.NODE_ENV !== 'production') {\n if (!(xAxis.type === 'category' && yAxis.type === 'category')) {\n throw new Error('Heatmap on cartesian must have two category axes');\n }\n\n if (!(xAxis.onBand && yAxis.onBand)) {\n throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');\n }\n }\n\n width = xAxis.getBandWidth();\n height = yAxis.getBandWidth();\n xAxisExtent = xAxis.scale.getExtent();\n yAxisExtent = yAxis.scale.getExtent();\n }\n\n var group = this.group;\n var data = seriesModel.getData();\n var emphasisStyle = seriesModel.getModel(['emphasis', 'itemStyle']).getItemStyle();\n var blurStyle = seriesModel.getModel(['blur', 'itemStyle']).getItemStyle();\n var selectStyle = seriesModel.getModel(['select', 'itemStyle']).getItemStyle();\n var labelStatesModels = getLabelStatesModels(seriesModel);\n var focus = seriesModel.get(['emphasis', 'focus']);\n var blurScope = seriesModel.get(['emphasis', 'blurScope']);\n var dataDims = isCoordinateSystemType(coordSys, 'cartesian2d') ? [data.mapDimension('x'), data.mapDimension('y'), data.mapDimension('value')] : [data.mapDimension('time'), data.mapDimension('value')];\n\n for (var idx = start; idx < end; idx++) {\n var rect = void 0;\n var style = data.getItemVisual(idx, 'style');\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n var dataDimX = data.get(dataDims[0], idx);\n var dataDimY = data.get(dataDims[1], idx); // Ignore empty data and out of extent data\n\n if (isNaN(data.get(dataDims[2], idx)) || dataDimX < xAxisExtent[0] || dataDimX > xAxisExtent[1] || dataDimY < yAxisExtent[0] || dataDimY > yAxisExtent[1]) {\n continue;\n }\n\n var point = coordSys.dataToPoint([dataDimX, dataDimY]);\n rect = new graphic.Rect({\n shape: {\n x: Math.floor(Math.round(point[0]) - width / 2),\n y: Math.floor(Math.round(point[1]) - height / 2),\n width: Math.ceil(width),\n height: Math.ceil(height)\n },\n style: style\n });\n } else {\n // Ignore empty data\n if (isNaN(data.get(dataDims[1], idx))) {\n continue;\n }\n\n rect = new graphic.Rect({\n z2: 1,\n shape: coordSys.dataToRect([data.get(dataDims[0], idx)]).contentShape,\n style: style\n });\n }\n\n var itemModel = data.getItemModel(idx); // Optimization for large datset\n\n if (data.hasItemOption) {\n var emphasisModel = itemModel.getModel('emphasis');\n emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n focus = emphasisModel.get('focus');\n blurScope = emphasisModel.get('blurScope');\n labelStatesModels = getLabelStatesModels(itemModel);\n }\n\n var rawValue = seriesModel.getRawValue(idx);\n var defaultText = '-';\n\n if (rawValue && rawValue[2] != null) {\n defaultText = rawValue[2] + '';\n }\n\n setLabelStyle(rect, labelStatesModels, {\n labelFetcher: seriesModel,\n labelDataIndex: idx,\n defaultOpacity: style.opacity,\n defaultText: defaultText\n });\n rect.ensureState('emphasis').style = emphasisStyle;\n rect.ensureState('blur').style = blurStyle;\n rect.ensureState('select').style = selectStyle;\n enableHoverEmphasis(rect, focus, blurScope);\n rect.incremental = incremental; // PENDING\n\n if (incremental) {\n // Rect must use hover layer if it's incremental.\n rect.states.emphasis.hoverLayer = true;\n }\n\n group.add(rect);\n data.setItemGraphicEl(idx, rect);\n }\n };\n\n HeatmapView.prototype._renderOnGeo = function (geo, seriesModel, visualMapModel, api) {\n var inRangeVisuals = visualMapModel.targetVisuals.inRange;\n var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange; // if (!visualMapping) {\n // throw new Error('Data range must have color visuals');\n // }\n\n var data = seriesModel.getData();\n var hmLayer = this._hmLayer || this._hmLayer || new HeatmapLayer();\n hmLayer.blurSize = seriesModel.get('blurSize');\n hmLayer.pointSize = seriesModel.get('pointSize');\n hmLayer.minOpacity = seriesModel.get('minOpacity');\n hmLayer.maxOpacity = seriesModel.get('maxOpacity');\n var rect = geo.getViewRect().clone();\n var roamTransform = geo.getRoamTransform();\n rect.applyTransform(roamTransform); // Clamp on viewport\n\n var x = Math.max(rect.x, 0);\n var y = Math.max(rect.y, 0);\n var x2 = Math.min(rect.width + rect.x, api.getWidth());\n var y2 = Math.min(rect.height + rect.y, api.getHeight());\n var width = x2 - x;\n var height = y2 - y;\n var dims = [data.mapDimension('lng'), data.mapDimension('lat'), data.mapDimension('value')];\n var points = data.mapArray(dims, function (lng, lat, value) {\n var pt = geo.dataToPoint([lng, lat]);\n pt[0] -= x;\n pt[1] -= y;\n pt.push(value);\n return pt;\n });\n var dataExtent = visualMapModel.getExtent();\n var isInRange = visualMapModel.type === 'visualMap.continuous' ? getIsInContinuousRange(dataExtent, visualMapModel.option.range) : getIsInPiecewiseRange(dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected);\n hmLayer.update(points, width, height, inRangeVisuals.color.getNormalizer(), {\n inRange: inRangeVisuals.color.getColorMapper(),\n outOfRange: outOfRangeVisuals.color.getColorMapper()\n }, isInRange);\n var img = new graphic.Image({\n style: {\n width: width,\n height: height,\n x: x,\n y: y,\n image: hmLayer.canvas\n },\n silent: true\n });\n this.group.add(img);\n };\n\n HeatmapView.type = 'heatmap';\n return HeatmapView;\n}(ChartView);\n\nexport default HeatmapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createListFromArray from '../helper/createListFromArray';\nimport CoordinateSystem from '../../core/CoordinateSystem';\n\nvar HeatmapSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(HeatmapSeriesModel, _super);\n\n function HeatmapSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = HeatmapSeriesModel.type;\n return _this;\n }\n\n HeatmapSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this, {\n generateCoord: 'value'\n });\n };\n\n HeatmapSeriesModel.prototype.preventIncremental = function () {\n var coordSysCreator = CoordinateSystem.get(this.get('coordinateSystem'));\n\n if (coordSysCreator && coordSysCreator.dimensions) {\n return coordSysCreator.dimensions[0] === 'lng' && coordSysCreator.dimensions[1] === 'lat';\n }\n };\n\n HeatmapSeriesModel.type = 'series.heatmap';\n HeatmapSeriesModel.dependencies = ['grid', 'geo', 'calendar'];\n HeatmapSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Geo coordinate system\n geoIndex: 0,\n blurSize: 30,\n pointSize: 20,\n maxOpacity: 1,\n minOpacity: 0,\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n };\n return HeatmapSeriesModel;\n}(SeriesModel);\n\nexport default HeatmapSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport HeatmapView from './HeatmapView';\nimport HeatmapSeriesModel from './HeatmapSeries';\nexport function install(registers) {\n registers.registerChartView(HeatmapView);\n registers.registerSeriesModel(HeatmapSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport { parsePercent, isNumeric } from '../../util/number';\nimport ChartView from '../../view/Chart';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { getECData } from '../../util/innerStore';\nvar BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'borderWidth']; // index: +isHorizontal\n\nvar LAYOUT_ATTRS = [{\n xy: 'x',\n wh: 'width',\n index: 0,\n posDesc: ['left', 'right']\n}, {\n xy: 'y',\n wh: 'height',\n index: 1,\n posDesc: ['top', 'bottom']\n}];\nvar pathForLineWidth = new graphic.Circle();\n\nvar PictorialBarView =\n/** @class */\nfunction (_super) {\n __extends(PictorialBarView, _super);\n\n function PictorialBarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PictorialBarView.type;\n return _this;\n }\n\n PictorialBarView.prototype.render = function (seriesModel, ecModel, api) {\n var group = this.group;\n var data = seriesModel.getData();\n var oldData = this._data;\n var cartesian = seriesModel.coordinateSystem;\n var baseAxis = cartesian.getBaseAxis();\n var isHorizontal = baseAxis.isHorizontal();\n var coordSysRect = cartesian.master.getRect();\n var opt = {\n ecSize: {\n width: api.getWidth(),\n height: api.getHeight()\n },\n seriesModel: seriesModel,\n coordSys: cartesian,\n coordSysExtent: [[coordSysRect.x, coordSysRect.x + coordSysRect.width], [coordSysRect.y, coordSysRect.y + coordSysRect.height]],\n isHorizontal: isHorizontal,\n valueDim: LAYOUT_ATTRS[+isHorizontal],\n categoryDim: LAYOUT_ATTRS[1 - +isHorizontal]\n };\n data.diff(oldData).add(function (dataIndex) {\n if (!data.hasValue(dataIndex)) {\n return;\n }\n\n var itemModel = getItemModel(data, dataIndex);\n var symbolMeta = getSymbolMeta(data, dataIndex, itemModel, opt);\n var bar = createBar(data, opt, symbolMeta);\n data.setItemGraphicEl(dataIndex, bar);\n group.add(bar);\n updateCommon(bar, opt, symbolMeta);\n }).update(function (newIndex, oldIndex) {\n var bar = oldData.getItemGraphicEl(oldIndex);\n\n if (!data.hasValue(newIndex)) {\n group.remove(bar);\n return;\n }\n\n var itemModel = getItemModel(data, newIndex);\n var symbolMeta = getSymbolMeta(data, newIndex, itemModel, opt);\n var pictorialShapeStr = getShapeStr(data, symbolMeta);\n\n if (bar && pictorialShapeStr !== bar.__pictorialShapeStr) {\n group.remove(bar);\n data.setItemGraphicEl(newIndex, null);\n bar = null;\n }\n\n if (bar) {\n updateBar(bar, opt, symbolMeta);\n } else {\n bar = createBar(data, opt, symbolMeta, true);\n }\n\n data.setItemGraphicEl(newIndex, bar);\n bar.__pictorialSymbolMeta = symbolMeta; // Add back\n\n group.add(bar);\n updateCommon(bar, opt, symbolMeta);\n }).remove(function (dataIndex) {\n var bar = oldData.getItemGraphicEl(dataIndex);\n bar && removeBar(oldData, dataIndex, bar.__pictorialSymbolMeta.animationModel, bar);\n }).execute();\n this._data = data;\n return this.group;\n };\n\n PictorialBarView.prototype.remove = function (ecModel, api) {\n var group = this.group;\n var data = this._data;\n\n if (ecModel.get('animation')) {\n if (data) {\n data.eachItemGraphicEl(function (bar) {\n removeBar(data, getECData(bar).dataIndex, ecModel, bar);\n });\n }\n } else {\n group.removeAll();\n }\n };\n\n PictorialBarView.type = 'pictorialBar';\n return PictorialBarView;\n}(ChartView); // Set or calculate default value about symbol, and calculate layout info.\n\n\nfunction getSymbolMeta(data, dataIndex, itemModel, opt) {\n var layout = data.getItemLayout(dataIndex);\n var symbolRepeat = itemModel.get('symbolRepeat');\n var symbolClip = itemModel.get('symbolClip');\n var symbolPosition = itemModel.get('symbolPosition') || 'start';\n var symbolRotate = itemModel.get('symbolRotate');\n var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n var isAnimationEnabled = itemModel.isAnimationEnabled();\n var symbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n style: data.getItemVisual(dataIndex, 'style'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n z2: itemModel.getShallow('z', true) || 0\n };\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n var symbolSize = symbolMeta.symbolSize;\n var symbolOffset = itemModel.get('symbolOffset');\n\n if (zrUtil.isArray(symbolOffset)) {\n symbolOffset = [parsePercent(symbolOffset[0], symbolSize[0]), parsePercent(symbolOffset[1], symbolSize[1])];\n }\n\n prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n return symbolMeta;\n} // bar length can be negative.\n\n\nfunction prepareBarLength(itemModel, symbolRepeat, layout, opt, outputSymbolMeta) {\n var valueDim = opt.valueDim;\n var symbolBoundingData = itemModel.get('symbolBoundingData');\n var valueAxis = opt.coordSys.getOtherAxis(opt.coordSys.getBaseAxis());\n var zeroPx = valueAxis.toGlobalCoord(valueAxis.dataToCoord(0));\n var pxSignIdx = 1 - +(layout[valueDim.wh] <= 0);\n var boundingLength;\n\n if (zrUtil.isArray(symbolBoundingData)) {\n var symbolBoundingExtent = [convertToCoordOnAxis(valueAxis, symbolBoundingData[0]) - zeroPx, convertToCoordOnAxis(valueAxis, symbolBoundingData[1]) - zeroPx];\n symbolBoundingExtent[1] < symbolBoundingExtent[0] && symbolBoundingExtent.reverse();\n boundingLength = symbolBoundingExtent[pxSignIdx];\n } else if (symbolBoundingData != null) {\n boundingLength = convertToCoordOnAxis(valueAxis, symbolBoundingData) - zeroPx;\n } else if (symbolRepeat) {\n boundingLength = opt.coordSysExtent[valueDim.index][pxSignIdx] - zeroPx;\n } else {\n boundingLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.boundingLength = boundingLength;\n\n if (symbolRepeat) {\n outputSymbolMeta.repeatCutLength = layout[valueDim.wh];\n }\n\n outputSymbolMeta.pxSign = boundingLength > 0 ? 1 : boundingLength < 0 ? -1 : 0;\n}\n\nfunction convertToCoordOnAxis(axis, value) {\n return axis.toGlobalCoord(axis.dataToCoord(axis.scale.parse(value)));\n} // Support ['100%', '100%']\n\n\nfunction prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, boundingLength, pxSign, symbolPatternSize, opt, outputSymbolMeta) {\n var valueDim = opt.valueDim;\n var categoryDim = opt.categoryDim;\n var categorySize = Math.abs(layout[categoryDim.wh]);\n var symbolSize = data.getItemVisual(dataIndex, 'symbolSize');\n var parsedSymbolSize;\n\n if (zrUtil.isArray(symbolSize)) {\n parsedSymbolSize = symbolSize.slice();\n } else {\n if (symbolSize == null) {\n // will parse to number below\n parsedSymbolSize = ['100%', '100%'];\n } else {\n parsedSymbolSize = [symbolSize, symbolSize];\n }\n } // Note: percentage symbolSize (like '100%') do not consider lineWidth, because it is\n // to complicated to calculate real percent value if considering scaled lineWidth.\n // So the actual size will bigger than layout size if lineWidth is bigger than zero,\n // which can be tolerated in pictorial chart.\n\n\n parsedSymbolSize[categoryDim.index] = parsePercent(parsedSymbolSize[categoryDim.index], categorySize);\n parsedSymbolSize[valueDim.index] = parsePercent(parsedSymbolSize[valueDim.index], symbolRepeat ? categorySize : Math.abs(boundingLength));\n outputSymbolMeta.symbolSize = parsedSymbolSize; // If x or y is less than zero, show reversed shape.\n\n var symbolScale = outputSymbolMeta.symbolScale = [parsedSymbolSize[0] / symbolPatternSize, parsedSymbolSize[1] / symbolPatternSize]; // Follow convention, 'right' and 'top' is the normal scale.\n\n symbolScale[valueDim.index] *= (opt.isHorizontal ? -1 : 1) * pxSign;\n}\n\nfunction prepareLineWidth(itemModel, symbolScale, rotation, opt, outputSymbolMeta) {\n // In symbols are drawn with scale, so do not need to care about the case that width\n // or height are too small. But symbol use strokeNoScale, where acture lineWidth should\n // be calculated.\n var valueLineWidth = itemModel.get(BAR_BORDER_WIDTH_QUERY) || 0;\n\n if (valueLineWidth) {\n pathForLineWidth.attr({\n scaleX: symbolScale[0],\n scaleY: symbolScale[1],\n rotation: rotation\n });\n pathForLineWidth.updateTransform();\n valueLineWidth /= pathForLineWidth.getLineScale();\n valueLineWidth *= symbolScale[opt.valueDim.index];\n }\n\n outputSymbolMeta.valueLineWidth = valueLineWidth;\n}\n\nfunction prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, valueLineWidth, boundingLength, repeatCutLength, opt, outputSymbolMeta) {\n var categoryDim = opt.categoryDim;\n var valueDim = opt.valueDim;\n var pxSign = outputSymbolMeta.pxSign;\n var unitLength = Math.max(symbolSize[valueDim.index] + valueLineWidth, 0);\n var pathLen = unitLength; // Note: rotation will not effect the layout of symbols, because user may\n // want symbols to rotate on its center, which should not be translated\n // when rotating.\n\n if (symbolRepeat) {\n var absBoundingLength = Math.abs(boundingLength);\n var symbolMargin = zrUtil.retrieve(itemModel.get('symbolMargin'), '15%') + '';\n var hasEndGap = false;\n\n if (symbolMargin.lastIndexOf('!') === symbolMargin.length - 1) {\n hasEndGap = true;\n symbolMargin = symbolMargin.slice(0, symbolMargin.length - 1);\n }\n\n var symbolMarginNumeric = parsePercent(symbolMargin, symbolSize[valueDim.index]);\n var uLenWithMargin = Math.max(unitLength + symbolMarginNumeric * 2, 0); // When symbol margin is less than 0, margin at both ends will be subtracted\n // to ensure that all of the symbols will not be overflow the given area.\n\n var endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Both final repeatTimes and final symbolMarginNumeric area calculated based on\n // boundingLength.\n\n var repeatSpecified = isNumeric(symbolRepeat);\n var repeatTimes = repeatSpecified ? symbolRepeat : toIntTimes((absBoundingLength + endFix) / uLenWithMargin); // Adjust calculate margin, to ensure each symbol is displayed\n // entirely in the given layout area.\n\n var mDiff = absBoundingLength - repeatTimes * unitLength;\n symbolMarginNumeric = mDiff / 2 / (hasEndGap ? repeatTimes : repeatTimes - 1);\n uLenWithMargin = unitLength + symbolMarginNumeric * 2;\n endFix = hasEndGap ? 0 : symbolMarginNumeric * 2; // Update repeatTimes when not all symbol will be shown.\n\n if (!repeatSpecified && symbolRepeat !== 'fixed') {\n repeatTimes = repeatCutLength ? toIntTimes((Math.abs(repeatCutLength) + endFix) / uLenWithMargin) : 0;\n }\n\n pathLen = repeatTimes * uLenWithMargin - endFix;\n outputSymbolMeta.repeatTimes = repeatTimes;\n outputSymbolMeta.symbolMargin = symbolMarginNumeric;\n }\n\n var sizeFix = pxSign * (pathLen / 2);\n var pathPosition = outputSymbolMeta.pathPosition = [];\n pathPosition[categoryDim.index] = layout[categoryDim.wh] / 2;\n pathPosition[valueDim.index] = symbolPosition === 'start' ? sizeFix : symbolPosition === 'end' ? boundingLength - sizeFix : boundingLength / 2; // 'center'\n\n if (symbolOffset) {\n pathPosition[0] += symbolOffset[0];\n pathPosition[1] += symbolOffset[1];\n }\n\n var bundlePosition = outputSymbolMeta.bundlePosition = [];\n bundlePosition[categoryDim.index] = layout[categoryDim.xy];\n bundlePosition[valueDim.index] = layout[valueDim.xy];\n var barRectShape = outputSymbolMeta.barRectShape = zrUtil.extend({}, layout);\n barRectShape[valueDim.wh] = pxSign * Math.max(Math.abs(layout[valueDim.wh]), Math.abs(pathPosition[valueDim.index] + sizeFix));\n barRectShape[categoryDim.wh] = layout[categoryDim.wh];\n var clipShape = outputSymbolMeta.clipShape = {}; // Consider that symbol may be overflow layout rect.\n\n clipShape[categoryDim.xy] = -layout[categoryDim.xy];\n clipShape[categoryDim.wh] = opt.ecSize[categoryDim.wh];\n clipShape[valueDim.xy] = 0;\n clipShape[valueDim.wh] = layout[valueDim.wh];\n}\n\nfunction createPath(symbolMeta) {\n var symbolPatternSize = symbolMeta.symbolPatternSize;\n var path = createSymbol( // Consider texture img, make a big size.\n symbolMeta.symbolType, -symbolPatternSize / 2, -symbolPatternSize / 2, symbolPatternSize, symbolPatternSize);\n path.attr({\n culling: true\n });\n path.type !== 'image' && path.setStyle({\n strokeNoScale: true\n });\n return path;\n}\n\nfunction createOrUpdateRepeatSymbols(bar, opt, symbolMeta, isUpdate) {\n var bundle = bar.__pictorialBundle;\n var symbolSize = symbolMeta.symbolSize;\n var valueLineWidth = symbolMeta.valueLineWidth;\n var pathPosition = symbolMeta.pathPosition;\n var valueDim = opt.valueDim;\n var repeatTimes = symbolMeta.repeatTimes || 0;\n var index = 0;\n var unit = symbolSize[opt.valueDim.index] + valueLineWidth + symbolMeta.symbolMargin * 2;\n eachPath(bar, function (path) {\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n\n if (index < repeatTimes) {\n updateAttr(path, null, makeTarget(index), symbolMeta, isUpdate);\n } else {\n updateAttr(path, null, {\n scaleX: 0,\n scaleY: 0\n }, symbolMeta, isUpdate, function () {\n bundle.remove(path);\n });\n } // updateHoverAnimation(path, symbolMeta);\n\n\n index++;\n });\n\n for (; index < repeatTimes; index++) {\n var path = createPath(symbolMeta);\n path.__pictorialAnimationIndex = index;\n path.__pictorialRepeatTimes = repeatTimes;\n bundle.add(path);\n var target = makeTarget(index);\n updateAttr(path, {\n x: target.x,\n y: target.y,\n scaleX: 0,\n scaleY: 0\n }, {\n scaleX: target.scaleX,\n scaleY: target.scaleY,\n rotation: target.rotation\n }, symbolMeta, isUpdate);\n }\n\n function makeTarget(index) {\n var position = pathPosition.slice(); // (start && pxSign > 0) || (end && pxSign < 0): i = repeatTimes - index\n // Otherwise: i = index;\n\n var pxSign = symbolMeta.pxSign;\n var i = index;\n\n if (symbolMeta.symbolRepeatDirection === 'start' ? pxSign > 0 : pxSign < 0) {\n i = repeatTimes - 1 - index;\n }\n\n position[valueDim.index] = unit * (i - repeatTimes / 2 + 0.5) + pathPosition[valueDim.index];\n return {\n x: position[0],\n y: position[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n };\n }\n}\n\nfunction createOrUpdateSingleSymbol(bar, opt, symbolMeta, isUpdate) {\n var bundle = bar.__pictorialBundle;\n var mainPath = bar.__pictorialMainPath;\n\n if (!mainPath) {\n mainPath = bar.__pictorialMainPath = createPath(symbolMeta);\n bundle.add(mainPath);\n updateAttr(mainPath, {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: 0,\n scaleY: 0,\n rotation: symbolMeta.rotation\n }, {\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1]\n }, symbolMeta, isUpdate);\n } else {\n updateAttr(mainPath, null, {\n x: symbolMeta.pathPosition[0],\n y: symbolMeta.pathPosition[1],\n scaleX: symbolMeta.symbolScale[0],\n scaleY: symbolMeta.symbolScale[1],\n rotation: symbolMeta.rotation\n }, symbolMeta, isUpdate);\n }\n} // bar rect is used for label.\n\n\nfunction createOrUpdateBarRect(bar, symbolMeta, isUpdate) {\n var rectShape = zrUtil.extend({}, symbolMeta.barRectShape);\n var barRect = bar.__pictorialBarRect;\n\n if (!barRect) {\n barRect = bar.__pictorialBarRect = new graphic.Rect({\n z2: 2,\n shape: rectShape,\n silent: true,\n style: {\n stroke: 'transparent',\n fill: 'transparent',\n lineWidth: 0\n }\n });\n bar.add(barRect);\n } else {\n updateAttr(barRect, null, {\n shape: rectShape\n }, symbolMeta, isUpdate);\n }\n}\n\nfunction createOrUpdateClip(bar, opt, symbolMeta, isUpdate) {\n // If not clip, symbol will be remove and rebuilt.\n if (symbolMeta.symbolClip) {\n var clipPath = bar.__pictorialClipPath;\n var clipShape = zrUtil.extend({}, symbolMeta.clipShape);\n var valueDim = opt.valueDim;\n var animationModel = symbolMeta.animationModel;\n var dataIndex = symbolMeta.dataIndex;\n\n if (clipPath) {\n graphic.updateProps(clipPath, {\n shape: clipShape\n }, animationModel, dataIndex);\n } else {\n clipShape[valueDim.wh] = 0;\n clipPath = new graphic.Rect({\n shape: clipShape\n });\n\n bar.__pictorialBundle.setClipPath(clipPath);\n\n bar.__pictorialClipPath = clipPath;\n var target = {};\n target[valueDim.wh] = symbolMeta.clipShape[valueDim.wh];\n graphic[isUpdate ? 'updateProps' : 'initProps'](clipPath, {\n shape: target\n }, animationModel, dataIndex);\n }\n }\n}\n\nfunction getItemModel(data, dataIndex) {\n var itemModel = data.getItemModel(dataIndex);\n itemModel.getAnimationDelayParams = getAnimationDelayParams;\n itemModel.isAnimationEnabled = isAnimationEnabled;\n return itemModel;\n}\n\nfunction getAnimationDelayParams(path) {\n // The order is the same as the z-order, see `symbolRepeatDiretion`.\n return {\n index: path.__pictorialAnimationIndex,\n count: path.__pictorialRepeatTimes\n };\n}\n\nfunction isAnimationEnabled() {\n // `animation` prop can be set on itemModel in pictorial bar chart.\n return this.parentModel.isAnimationEnabled() && !!this.getShallow('animation');\n}\n\nfunction createBar(data, opt, symbolMeta, isUpdate) {\n // bar is the main element for each data.\n var bar = new graphic.Group(); // bundle is used for location and clip.\n\n var bundle = new graphic.Group();\n bar.add(bundle);\n bar.__pictorialBundle = bundle;\n bundle.x = symbolMeta.bundlePosition[0];\n bundle.y = symbolMeta.bundlePosition[1];\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta);\n } else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, isUpdate);\n createOrUpdateClip(bar, opt, symbolMeta, isUpdate);\n bar.__pictorialShapeStr = getShapeStr(data, symbolMeta);\n bar.__pictorialSymbolMeta = symbolMeta;\n return bar;\n}\n\nfunction updateBar(bar, opt, symbolMeta) {\n var animationModel = symbolMeta.animationModel;\n var dataIndex = symbolMeta.dataIndex;\n var bundle = bar.__pictorialBundle;\n graphic.updateProps(bundle, {\n x: symbolMeta.bundlePosition[0],\n y: symbolMeta.bundlePosition[1]\n }, animationModel, dataIndex);\n\n if (symbolMeta.symbolRepeat) {\n createOrUpdateRepeatSymbols(bar, opt, symbolMeta, true);\n } else {\n createOrUpdateSingleSymbol(bar, opt, symbolMeta, true);\n }\n\n createOrUpdateBarRect(bar, symbolMeta, true);\n createOrUpdateClip(bar, opt, symbolMeta, true);\n}\n\nfunction removeBar(data, dataIndex, animationModel, bar) {\n // Not show text when animating\n var labelRect = bar.__pictorialBarRect;\n labelRect && labelRect.removeTextContent();\n var pathes = [];\n eachPath(bar, function (path) {\n pathes.push(path);\n });\n bar.__pictorialMainPath && pathes.push(bar.__pictorialMainPath); // I do not find proper remove animation for clip yet.\n\n bar.__pictorialClipPath && (animationModel = null);\n zrUtil.each(pathes, function (path) {\n graphic.removeElement(path, {\n scaleX: 0,\n scaleY: 0\n }, animationModel, dataIndex, function () {\n bar.parent && bar.parent.remove(bar);\n });\n });\n data.setItemGraphicEl(dataIndex, null);\n}\n\nfunction getShapeStr(data, symbolMeta) {\n return [data.getItemVisual(symbolMeta.dataIndex, 'symbol') || 'none', !!symbolMeta.symbolRepeat, !!symbolMeta.symbolClip].join(':');\n}\n\nfunction eachPath(bar, cb, context) {\n // Do not use Group#eachChild, because it do not support remove.\n zrUtil.each(bar.__pictorialBundle.children(), function (el) {\n el !== bar.__pictorialBarRect && cb.call(context, el);\n });\n}\n\nfunction updateAttr(el, immediateAttrs, animationAttrs, symbolMeta, isUpdate, cb) {\n immediateAttrs && el.attr(immediateAttrs); // when symbolCip used, only clip path has init animation, otherwise it would be weird effect.\n\n if (symbolMeta.symbolClip && !isUpdate) {\n animationAttrs && el.attr(animationAttrs);\n } else {\n animationAttrs && graphic[isUpdate ? 'updateProps' : 'initProps'](el, animationAttrs, symbolMeta.animationModel, symbolMeta.dataIndex, cb);\n }\n}\n\nfunction updateCommon(bar, opt, symbolMeta) {\n var dataIndex = symbolMeta.dataIndex;\n var itemModel = symbolMeta.itemModel; // Color must be excluded.\n // Because symbol provide setColor individually to set fill and stroke\n\n var emphasisModel = itemModel.getModel('emphasis');\n var emphasisStyle = emphasisModel.getModel('itemStyle').getItemStyle();\n var blurStyle = itemModel.getModel(['blur', 'itemStyle']).getItemStyle();\n var selectStyle = itemModel.getModel(['select', 'itemStyle']).getItemStyle();\n var cursorStyle = itemModel.getShallow('cursor');\n var focus = emphasisModel.get('focus');\n var blurScope = emphasisModel.get('blurScope');\n var hoverScale = emphasisModel.get('scale');\n eachPath(bar, function (path) {\n if (path instanceof ZRImage) {\n var pathStyle = path.style;\n path.useStyle(zrUtil.extend({\n // TODO other properties like dx, dy ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, symbolMeta.style));\n } else {\n path.useStyle(symbolMeta.style);\n }\n\n var emphasisState = path.ensureState('emphasis');\n emphasisState.style = emphasisStyle;\n\n if (hoverScale) {\n // NOTE: Must after scale is set after updateAttr\n emphasisState.scaleX = path.scaleX * 1.1;\n emphasisState.scaleY = path.scaleY * 1.1;\n }\n\n path.ensureState('blur').style = blurStyle;\n path.ensureState('select').style = selectStyle;\n cursorStyle && (path.cursor = cursorStyle);\n path.z2 = symbolMeta.z2;\n });\n var barPositionOutside = opt.valueDim.posDesc[+(symbolMeta.boundingLength > 0)];\n var barRect = bar.__pictorialBarRect;\n setLabelStyle(barRect, getLabelStatesModels(itemModel), {\n labelFetcher: opt.seriesModel,\n labelDataIndex: dataIndex,\n defaultText: getDefaultLabel(opt.seriesModel.getData(), dataIndex),\n inheritColor: symbolMeta.style.fill,\n defaultOpacity: symbolMeta.style.opacity,\n defaultOutsidePosition: barPositionOutside\n });\n enableHoverEmphasis(bar, focus, blurScope);\n}\n\nfunction toIntTimes(times) {\n var roundedTimes = Math.round(times); // Escapse accurate error\n\n return Math.abs(times - roundedTimes) < 1e-4 ? roundedTimes : Math.ceil(times);\n}\n\nexport default PictorialBarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseBarSeriesModel from './BaseBarSeries';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar PictorialBarSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(PictorialBarSeriesModel, _super);\n\n function PictorialBarSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PictorialBarSeriesModel.type;\n _this.hasSymbolVisual = true;\n _this.defaultSymbol = 'roundRect';\n return _this;\n }\n\n PictorialBarSeriesModel.prototype.getInitialData = function (option) {\n // Disable stack.\n option.stack = null;\n return _super.prototype.getInitialData.apply(this, arguments);\n };\n\n PictorialBarSeriesModel.type = 'series.pictorialBar';\n PictorialBarSeriesModel.dependencies = ['grid'];\n PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {\n symbol: 'circle',\n symbolSize: null,\n symbolRotate: null,\n symbolPosition: null,\n symbolOffset: null,\n symbolMargin: null,\n symbolRepeat: false,\n symbolRepeatDirection: 'end',\n symbolClip: false,\n symbolBoundingData: null,\n symbolPatternSize: 400,\n barGap: '-100%',\n // z can be set in data item, which is z2 actually.\n // Disable progressive\n progressive: 0,\n emphasis: {\n // By default pictorialBar do not hover scale. Hover scale is not suitable\n // for the case that both has foreground and background.\n scale: false\n },\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n }\n });\n return PictorialBarSeriesModel;\n}(BaseBarSeriesModel);\n\nexport default PictorialBarSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport PictorialBarView from './PictorialBarView';\nimport PictorialBarSeriesModel from './PictorialBarSeries';\nimport { layout } from '../../layout/barGrid';\nimport { curry } from 'zrender/lib/core/util';\nexport function install(registers) {\n registers.registerChartView(PictorialBarView);\n registers.registerSeriesModel(PictorialBarSeriesModel);\n registers.registerLayout(curry(layout, 'pictorialBar'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { ECPolygon } from '../line/poly';\nimport * as graphic from '../../util/graphic';\nimport { setStatesStylesFromModel, enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { bind } from 'zrender/lib/core/util';\nimport DataDiffer from '../../data/DataDiffer';\nimport ChartView from '../../view/Chart';\n\nvar ThemeRiverView =\n/** @class */\nfunction (_super) {\n __extends(ThemeRiverView, _super);\n\n function ThemeRiverView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ThemeRiverView.type;\n _this._layers = [];\n return _this;\n }\n\n ThemeRiverView.prototype.render = function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var self = this;\n var group = this.group;\n var layersSeries = seriesModel.getLayerSeries();\n var layoutInfo = data.getLayout('layoutInfo');\n var rect = layoutInfo.rect;\n var boundaryGap = layoutInfo.boundaryGap;\n group.x = 0;\n group.y = rect.y + boundaryGap[0];\n\n function keyGetter(item) {\n return item.name;\n }\n\n var dataDiffer = new DataDiffer(this._layersSeries || [], layersSeries, keyGetter, keyGetter);\n var newLayersGroups = [];\n dataDiffer.add(bind(process, this, 'add')).update(bind(process, this, 'update')).remove(bind(process, this, 'remove')).execute();\n\n function process(status, idx, oldIdx) {\n var oldLayersGroups = self._layers;\n\n if (status === 'remove') {\n group.remove(oldLayersGroups[idx]);\n return;\n }\n\n var points0 = [];\n var points1 = [];\n var style;\n var indices = layersSeries[idx].indices;\n var j = 0;\n\n for (; j < indices.length; j++) {\n var layout = data.getItemLayout(indices[j]);\n var x = layout.x;\n var y0 = layout.y0;\n var y = layout.y;\n points0.push(x, y0);\n points1.push(x, y0 + y);\n style = data.getItemVisual(indices[j], 'style');\n }\n\n var polygon;\n var textLayout = data.getItemLayout(indices[0]);\n var labelModel = seriesModel.getModel('label');\n var margin = labelModel.get('margin');\n var emphasisModel = seriesModel.getModel('emphasis');\n\n if (status === 'add') {\n var layerGroup = newLayersGroups[idx] = new graphic.Group();\n polygon = new ECPolygon({\n shape: {\n points: points0,\n stackedOnPoints: points1,\n smooth: 0.4,\n stackedOnSmooth: 0.4,\n smoothConstraint: false\n },\n z2: 0\n });\n layerGroup.add(polygon);\n group.add(layerGroup);\n\n if (seriesModel.isAnimationEnabled()) {\n polygon.setClipPath(createGridClipShape(polygon.getBoundingRect(), seriesModel, function () {\n polygon.removeClipPath();\n }));\n }\n } else {\n var layerGroup = oldLayersGroups[oldIdx];\n polygon = layerGroup.childAt(0);\n group.add(layerGroup);\n newLayersGroups[idx] = layerGroup;\n graphic.updateProps(polygon, {\n shape: {\n points: points0,\n stackedOnPoints: points1\n }\n }, seriesModel);\n }\n\n setLabelStyle(polygon, getLabelStatesModels(seriesModel), {\n labelDataIndex: indices[j - 1],\n defaultText: data.getName(indices[j - 1]),\n inheritColor: style.fill\n }, {\n normal: {\n verticalAlign: 'middle' // align: 'right'\n\n }\n });\n polygon.setTextConfig({\n position: null,\n local: true\n });\n var labelEl = polygon.getTextContent(); // TODO More label position options.\n\n if (labelEl) {\n labelEl.x = textLayout.x - margin;\n labelEl.y = textLayout.y0 + textLayout.y / 2;\n }\n\n polygon.useStyle(style);\n data.setItemGraphicEl(idx, polygon);\n setStatesStylesFromModel(polygon, seriesModel);\n enableHoverEmphasis(polygon, emphasisModel.get('focus'), emphasisModel.get('blurScope'));\n }\n\n this._layersSeries = layersSeries;\n this._layers = newLayersGroups;\n };\n\n ThemeRiverView.type = 'themeRiver';\n return ThemeRiverView;\n}(ChartView);\n\n; // add animation to the view\n\nfunction createGridClipShape(rect, seriesModel, cb) {\n var rectEl = new graphic.Rect({\n shape: {\n x: rect.x - 10,\n y: rect.y - 10,\n width: 0,\n height: rect.height + 20\n }\n });\n graphic.initProps(rectEl, {\n shape: {\n x: rect.x - 50,\n width: rect.width + 100,\n height: rect.height + 20\n }\n }, seriesModel, cb);\n return rectEl;\n}\n\nexport default ThemeRiverView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SeriesModel from '../../model/Series';\nimport createDimensions from '../../data/helper/createDimensions';\nimport { getDimensionTypeByAxis } from '../../data/helper/dimensionHelper';\nimport List from '../../data/List';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { groupData, SINGLE_REFERRING } from '../../util/model';\nimport LegendVisualProvider from '../../visual/LegendVisualProvider';\nimport { createTooltipMarkup } from '../../component/tooltip/tooltipMarkup';\nvar DATA_NAME_INDEX = 2;\n\nvar ThemeRiverSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ThemeRiverSeriesModel, _super);\n\n function ThemeRiverSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ThemeRiverSeriesModel.type;\n _this.useColorPaletteOnData = true;\n return _this;\n }\n /**\n * @override\n */\n\n\n ThemeRiverSeriesModel.prototype.init = function (option) {\n // eslint-disable-next-line\n _super.prototype.init.apply(this, arguments); // Put this function here is for the sake of consistency of code style.\n // Enable legend selection for each data item\n // Use a function instead of direct access because data reference may changed\n\n\n this.legendVisualProvider = new LegendVisualProvider(zrUtil.bind(this.getData, this), zrUtil.bind(this.getRawData, this));\n };\n /**\n * If there is no value of a certain point in the time for some event,set it value to 0.\n *\n * @param {Array} data initial data in the option\n * @return {Array}\n */\n\n\n ThemeRiverSeriesModel.prototype.fixData = function (data) {\n var rawDataLength = data.length;\n /**\n * Make sure every layer data get the same keys.\n * The value index tells which layer has visited.\n * {\n * 2014/01/01: -1\n * }\n */\n\n var timeValueKeys = {}; // grouped data by name\n\n var groupResult = groupData(data, function (item) {\n if (!timeValueKeys.hasOwnProperty(item[0] + '')) {\n timeValueKeys[item[0] + ''] = -1;\n }\n\n return item[2];\n });\n var layerData = [];\n groupResult.buckets.each(function (items, key) {\n layerData.push({\n name: key,\n dataList: items\n });\n });\n var layerNum = layerData.length;\n\n for (var k = 0; k < layerNum; ++k) {\n var name_1 = layerData[k].name;\n\n for (var j = 0; j < layerData[k].dataList.length; ++j) {\n var timeValue = layerData[k].dataList[j][0] + '';\n timeValueKeys[timeValue] = k;\n }\n\n for (var timeValue in timeValueKeys) {\n if (timeValueKeys.hasOwnProperty(timeValue) && timeValueKeys[timeValue] !== k) {\n timeValueKeys[timeValue] = k;\n data[rawDataLength] = [timeValue, 0, name_1];\n rawDataLength++;\n }\n }\n }\n\n return data;\n };\n /**\n * @override\n * @param option the initial option that user gived\n * @param ecModel the model object for themeRiver option\n */\n\n\n ThemeRiverSeriesModel.prototype.getInitialData = function (option, ecModel) {\n var singleAxisModel = this.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n var axisType = singleAxisModel.get('type'); // filter the data item with the value of label is undefined\n\n var filterData = zrUtil.filter(option.data, function (dataItem) {\n return dataItem[2] !== undefined;\n }); // ??? TODO design a stage to transfer data for themeRiver and lines?\n\n var data = this.fixData(filterData || []);\n var nameList = [];\n var nameMap = this.nameMap = zrUtil.createHashMap();\n var count = 0;\n\n for (var i = 0; i < data.length; ++i) {\n nameList.push(data[i][DATA_NAME_INDEX]);\n\n if (!nameMap.get(data[i][DATA_NAME_INDEX])) {\n nameMap.set(data[i][DATA_NAME_INDEX], count);\n count++;\n }\n }\n\n var dimensionsInfo = createDimensions(data, {\n coordDimensions: ['single'],\n dimensionsDefine: [{\n name: 'time',\n type: getDimensionTypeByAxis(axisType)\n }, {\n name: 'value',\n type: 'float'\n }, {\n name: 'name',\n type: 'ordinal'\n }],\n encodeDefine: {\n single: 0,\n value: 1,\n itemName: 2\n }\n });\n var list = new List(dimensionsInfo, this);\n list.initData(data);\n return list;\n };\n /**\n * The raw data is divided into multiple layers and each layer\n * has same name.\n */\n\n\n ThemeRiverSeriesModel.prototype.getLayerSeries = function () {\n var data = this.getData();\n var lenCount = data.count();\n var indexArr = [];\n\n for (var i = 0; i < lenCount; ++i) {\n indexArr[i] = i;\n }\n\n var timeDim = data.mapDimension('single'); // data group by name\n\n var groupResult = groupData(indexArr, function (index) {\n return data.get('name', index);\n });\n var layerSeries = [];\n groupResult.buckets.each(function (items, key) {\n items.sort(function (index1, index2) {\n return data.get(timeDim, index1) - data.get(timeDim, index2);\n });\n layerSeries.push({\n name: key,\n indices: items\n });\n });\n return layerSeries;\n };\n /**\n * Get data indices for show tooltip content\n */\n\n\n ThemeRiverSeriesModel.prototype.getAxisTooltipData = function (dim, value, baseAxis) {\n if (!zrUtil.isArray(dim)) {\n dim = dim ? [dim] : [];\n }\n\n var data = this.getData();\n var layerSeries = this.getLayerSeries();\n var indices = [];\n var layerNum = layerSeries.length;\n var nestestValue;\n\n for (var i = 0; i < layerNum; ++i) {\n var minDist = Number.MAX_VALUE;\n var nearestIdx = -1;\n var pointNum = layerSeries[i].indices.length;\n\n for (var j = 0; j < pointNum; ++j) {\n var theValue = data.get(dim[0], layerSeries[i].indices[j]);\n var dist = Math.abs(theValue - value);\n\n if (dist <= minDist) {\n nestestValue = theValue;\n minDist = dist;\n nearestIdx = layerSeries[i].indices[j];\n }\n }\n\n indices.push(nearestIdx);\n }\n\n return {\n dataIndices: indices,\n nestestValue: nestestValue\n };\n };\n\n ThemeRiverSeriesModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var name = data.getName(dataIndex);\n var value = data.get(data.mapDimension('value'), dataIndex);\n return createTooltipMarkup('nameValue', {\n name: name,\n value: value\n });\n };\n\n ThemeRiverSeriesModel.type = 'series.themeRiver';\n ThemeRiverSeriesModel.dependencies = ['singleAxis'];\n ThemeRiverSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n coordinateSystem: 'singleAxis',\n // gap in axis's orthogonal orientation\n boundaryGap: ['10%', '10%'],\n // legendHoverLink: true,\n singleAxisIndex: 0,\n animationEasing: 'linear',\n label: {\n margin: 4,\n show: true,\n position: 'left',\n fontSize: 11\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n return ThemeRiverSeriesModel;\n}(SeriesModel);\n\nexport default ThemeRiverSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from '../../util/number';\nexport default function themeRiverLayout(ecModel, api) {\n ecModel.eachSeriesByType('themeRiver', function (seriesModel) {\n var data = seriesModel.getData();\n var single = seriesModel.coordinateSystem;\n var layoutInfo = {}; // use the axis boundingRect for view\n\n var rect = single.getRect();\n layoutInfo.rect = rect;\n var boundaryGap = seriesModel.get('boundaryGap');\n var axis = single.getAxis();\n layoutInfo.boundaryGap = boundaryGap;\n\n if (axis.orient === 'horizontal') {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.height);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.height);\n var height = rect.height - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, height);\n } else {\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], rect.width);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], rect.width);\n var width = rect.width - boundaryGap[0] - boundaryGap[1];\n doThemeRiverLayout(data, seriesModel, width);\n }\n\n data.setLayout('layoutInfo', layoutInfo);\n });\n}\n/**\n * The layout information about themeriver\n *\n * @param data data in the series\n * @param seriesModel the model object of themeRiver series\n * @param height value used to compute every series height\n */\n\nfunction doThemeRiverLayout(data, seriesModel, height) {\n if (!data.count()) {\n return;\n }\n\n var coordSys = seriesModel.coordinateSystem; // the data in each layer are organized into a series.\n\n var layerSeries = seriesModel.getLayerSeries(); // the points in each layer.\n\n var timeDim = data.mapDimension('single');\n var valueDim = data.mapDimension('value');\n var layerPoints = zrUtil.map(layerSeries, function (singleLayer) {\n return zrUtil.map(singleLayer.indices, function (idx) {\n var pt = coordSys.dataToPoint(data.get(timeDim, idx));\n pt[1] = data.get(valueDim, idx);\n return pt;\n });\n });\n var base = computeBaseline(layerPoints);\n var baseLine = base.y0;\n var ky = height / base.max; // set layout information for each item.\n\n var n = layerSeries.length;\n var m = layerSeries[0].indices.length;\n var baseY0;\n\n for (var j = 0; j < m; ++j) {\n baseY0 = baseLine[j] * ky;\n data.setItemLayout(layerSeries[0].indices[j], {\n layerIndex: 0,\n x: layerPoints[0][j][0],\n y0: baseY0,\n y: layerPoints[0][j][1] * ky\n });\n\n for (var i = 1; i < n; ++i) {\n baseY0 += layerPoints[i - 1][j][1] * ky;\n data.setItemLayout(layerSeries[i].indices[j], {\n layerIndex: i,\n x: layerPoints[i][j][0],\n y0: baseY0,\n y: layerPoints[i][j][1] * ky\n });\n }\n }\n}\n/**\n * Compute the baseLine of the rawdata\n * Inspired by Lee Byron's paper Stacked Graphs - Geometry & Aesthetics\n *\n * @param data the points in each layer\n */\n\n\nfunction computeBaseline(data) {\n var layerNum = data.length;\n var pointNum = data[0].length;\n var sums = [];\n var y0 = [];\n var max = 0;\n\n for (var i = 0; i < pointNum; ++i) {\n var temp = 0;\n\n for (var j = 0; j < layerNum; ++j) {\n temp += data[j][i][1];\n }\n\n if (temp > max) {\n max = temp;\n }\n\n sums.push(temp);\n }\n\n for (var k = 0; k < pointNum; ++k) {\n y0[k] = (max - sums[k]) / 2;\n }\n\n max = 0;\n\n for (var l = 0; l < pointNum; ++l) {\n var sum = sums[l] + y0[l];\n\n if (sum > max) {\n max = sum;\n }\n }\n\n return {\n y0: y0,\n max: max\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport ThemeRiverView from './ThemeRiverView';\nimport ThemeRiverSeriesModel from './ThemeRiverSeries';\nimport themeRiverLayout from './themeRiverLayout';\nimport dataFilter from '../../processor/dataFilter';\nexport function install(registers) {\n registers.registerChartView(ThemeRiverView);\n registers.registerSeriesModel(ThemeRiverSeriesModel);\n registers.registerLayout(themeRiverLayout);\n registers.registerProcessor(dataFilter('themeRiver'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, SPECIAL_STATES, DISPLAY_STATES } from '../../util/states';\nimport { createTextStyle } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nimport { getSectorCornerRadius } from '../helper/pieHelper';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nvar DEFAULT_SECTOR_Z = 2;\nvar DEFAULT_TEXT_Z = 4;\n/**\n * Sunburstce of Sunburst including Sector, Label, LabelLine\n */\n\nvar SunburstPiece =\n/** @class */\nfunction (_super) {\n __extends(SunburstPiece, _super);\n\n function SunburstPiece(node, seriesModel, ecModel, api) {\n var _this = _super.call(this) || this;\n\n _this.z2 = DEFAULT_SECTOR_Z;\n _this.textConfig = {\n inside: true\n };\n getECData(_this).seriesIndex = seriesModel.seriesIndex;\n var text = new graphic.Text({\n z2: DEFAULT_TEXT_Z,\n silent: node.getModel().get(['label', 'silent'])\n });\n\n _this.setTextContent(text);\n\n _this.updateData(true, node, seriesModel, ecModel, api);\n\n return _this;\n }\n\n SunburstPiece.prototype.updateData = function (firstCreate, node, // state: 'emphasis' | 'normal' | 'highlight' | 'downplay',\n seriesModel, ecModel, api) {\n this.node = node;\n node.piece = this;\n seriesModel = seriesModel || this._seriesModel;\n ecModel = ecModel || this._ecModel;\n var sector = this;\n getECData(sector).dataIndex = node.dataIndex;\n var itemModel = node.getModel();\n var emphasisModel = itemModel.getModel('emphasis');\n var layout = node.getLayout();\n var sectorShape = zrUtil.extend({}, layout);\n sectorShape.label = null;\n var normalStyle = node.getVisual('style');\n normalStyle.lineJoin = 'bevel';\n var decal = node.getVisual('decal');\n\n if (decal) {\n normalStyle.decal = createOrUpdatePatternFromDecal(decal, api);\n }\n\n var cornerRadius = getSectorCornerRadius(itemModel.getModel('itemStyle'), sectorShape);\n zrUtil.extend(sectorShape, cornerRadius);\n zrUtil.each(SPECIAL_STATES, function (stateName) {\n var state = sector.ensureState(stateName);\n var itemStyleModel = itemModel.getModel([stateName, 'itemStyle']);\n state.style = itemStyleModel.getItemStyle(); // border radius\n\n var cornerRadius = getSectorCornerRadius(itemStyleModel, sectorShape);\n\n if (cornerRadius) {\n state.shape = cornerRadius;\n }\n });\n\n if (firstCreate) {\n sector.setShape(sectorShape);\n sector.shape.r = layout.r0;\n graphic.updateProps(sector, {\n shape: {\n r: layout.r\n }\n }, seriesModel, node.dataIndex);\n } else {\n // Disable animation for gradient since no interpolation method\n // is supported for gradient\n graphic.updateProps(sector, {\n shape: sectorShape\n }, seriesModel);\n }\n\n sector.useStyle(normalStyle);\n\n this._updateLabel(seriesModel);\n\n var cursorStyle = itemModel.getShallow('cursor');\n cursorStyle && sector.attr('cursor', cursorStyle);\n this._seriesModel = seriesModel || this._seriesModel;\n this._ecModel = ecModel || this._ecModel;\n var focus = emphasisModel.get('focus');\n var focusOrIndices = focus === 'ancestor' ? node.getAncestorsIndices() : focus === 'descendant' ? node.getDescendantIndices() : focus;\n enableHoverEmphasis(this, focusOrIndices, emphasisModel.get('blurScope'));\n };\n\n SunburstPiece.prototype._updateLabel = function (seriesModel) {\n var _this = this;\n\n var itemModel = this.node.getModel();\n var normalLabelModel = itemModel.getModel('label');\n var layout = this.node.getLayout();\n var angle = layout.endAngle - layout.startAngle;\n var midAngle = (layout.startAngle + layout.endAngle) / 2;\n var dx = Math.cos(midAngle);\n var dy = Math.sin(midAngle);\n var sector = this;\n var label = sector.getTextContent();\n var dataIndex = this.node.dataIndex;\n var labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;\n var isNormalShown = normalLabelModel.get('show') && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);\n label.ignore = !isNormalShown; // TODO use setLabelStyle\n\n zrUtil.each(DISPLAY_STATES, function (stateName) {\n var labelStateModel = stateName === 'normal' ? itemModel.getModel('label') : itemModel.getModel([stateName, 'label']);\n var isNormal = stateName === 'normal';\n var state = isNormal ? label : label.ensureState(stateName);\n var text = seriesModel.getFormattedLabel(dataIndex, stateName);\n\n if (isNormal) {\n text = text || _this.node.name;\n }\n\n state.style = createTextStyle(labelStateModel, {}, null, stateName !== 'normal', true);\n\n if (text) {\n state.style.text = text;\n } // Not displaying text when angle is too small\n\n\n var isShown = labelStateModel.get('show');\n\n if (isShown != null && !isNormal) {\n state.ignore = !isShown;\n }\n\n var labelPosition = getLabelAttr(labelStateModel, 'position');\n var sectorState = isNormal ? sector : sector.states[stateName];\n var labelColor = sectorState.style.fill;\n sectorState.textConfig = {\n outsideFill: labelStateModel.get('color') === 'inherit' ? labelColor : null,\n inside: labelPosition !== 'outside'\n };\n var r;\n var labelPadding = getLabelAttr(labelStateModel, 'distance') || 0;\n var textAlign = getLabelAttr(labelStateModel, 'align');\n\n if (labelPosition === 'outside') {\n r = layout.r + labelPadding;\n textAlign = midAngle > Math.PI / 2 ? 'right' : 'left';\n } else {\n if (!textAlign || textAlign === 'center') {\n r = (layout.r + layout.r0) / 2;\n textAlign = 'center';\n } else if (textAlign === 'left') {\n r = layout.r0 + labelPadding;\n\n if (midAngle > Math.PI / 2) {\n textAlign = 'right';\n }\n } else if (textAlign === 'right') {\n r = layout.r - labelPadding;\n\n if (midAngle > Math.PI / 2) {\n textAlign = 'left';\n }\n }\n }\n\n state.style.align = textAlign;\n state.style.verticalAlign = getLabelAttr(labelStateModel, 'verticalAlign') || 'middle';\n state.x = r * dx + layout.cx;\n state.y = r * dy + layout.cy;\n var rotateType = getLabelAttr(labelStateModel, 'rotate');\n var rotate = 0;\n\n if (rotateType === 'radial') {\n rotate = -midAngle;\n\n if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n } else if (rotateType === 'tangential') {\n rotate = Math.PI / 2 - midAngle;\n\n if (rotate > Math.PI / 2) {\n rotate -= Math.PI;\n } else if (rotate < -Math.PI / 2) {\n rotate += Math.PI;\n }\n } else if (typeof rotateType === 'number') {\n rotate = rotateType * Math.PI / 180;\n }\n\n state.rotation = rotate;\n });\n\n function getLabelAttr(model, name) {\n var stateAttr = model.get(name);\n\n if (stateAttr == null) {\n return normalLabelModel.get(name);\n }\n\n return stateAttr;\n }\n\n label.dirtyStyle();\n };\n\n return SunburstPiece;\n}(graphic.Sector);\n\nexport default SunburstPiece;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nimport { deprecateReplaceLog } from '../../util/log';\nimport { retrieveTargetInfo, aboveViewRoot } from '../helper/treeHelper';\nexport var ROOT_TO_NODE_ACTION = 'sunburstRootToNode';\nvar HIGHLIGHT_ACTION = 'sunburstHighlight';\nvar UNHIGHLIGHT_ACTION = 'sunburstUnhighlight';\nexport function installSunburstAction(registers) {\n registers.registerAction({\n type: ROOT_TO_NODE_ACTION,\n update: 'updateView'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sunburst',\n query: payload\n }, handleRootToNode);\n\n function handleRootToNode(model, index) {\n var targetInfo = retrieveTargetInfo(payload, [ROOT_TO_NODE_ACTION], model);\n\n if (targetInfo) {\n var originViewRoot = model.getViewRoot();\n\n if (originViewRoot) {\n payload.direction = aboveViewRoot(originViewRoot, targetInfo.node) ? 'rollUp' : 'drillDown';\n }\n\n model.resetViewRoot(targetInfo.node);\n }\n }\n });\n registers.registerAction({\n type: HIGHLIGHT_ACTION,\n update: 'none'\n }, function (payload, ecModel, api) {\n // Clone\n payload = extend({}, payload);\n ecModel.eachComponent({\n mainType: 'series',\n subType: 'sunburst',\n query: payload\n }, handleHighlight);\n\n function handleHighlight(model) {\n var targetInfo = retrieveTargetInfo(payload, [HIGHLIGHT_ACTION], model);\n\n if (targetInfo) {\n payload.dataIndex = targetInfo.node.dataIndex;\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('highlight', 'sunburstHighlight');\n } // Fast forward action\n\n\n api.dispatchAction(extend(payload, {\n type: 'highlight'\n }));\n });\n registers.registerAction({\n type: UNHIGHLIGHT_ACTION,\n update: 'updateView'\n }, function (payload, ecModel, api) {\n payload = extend({}, payload);\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateReplaceLog('downplay', 'sunburstUnhighlight');\n }\n\n api.dispatchAction(extend(payload, {\n type: 'downplay'\n }));\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ChartView from '../../view/Chart';\nimport SunburstPiece from './SunburstPiece';\nimport DataDiffer from '../../data/DataDiffer';\nimport { ROOT_TO_NODE_ACTION } from './sunburstAction';\nimport { windowOpen } from '../../util/format';\n\nvar SunburstView =\n/** @class */\nfunction (_super) {\n __extends(SunburstView, _super);\n\n function SunburstView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SunburstView.type;\n return _this;\n }\n\n SunburstView.prototype.render = function (seriesModel, ecModel, api, // @ts-ignore\n payload) {\n var self = this;\n this.seriesModel = seriesModel;\n this.api = api;\n this.ecModel = ecModel;\n var data = seriesModel.getData();\n var virtualRoot = data.tree.root;\n var newRoot = seriesModel.getViewRoot();\n var group = this.group;\n var renderLabelForZeroData = seriesModel.get('renderLabelForZeroData');\n var newChildren = [];\n newRoot.eachNode(function (node) {\n newChildren.push(node);\n });\n var oldChildren = this._oldChildren || [];\n dualTravel(newChildren, oldChildren);\n renderRollUp(virtualRoot, newRoot);\n\n this._initEvents();\n\n this._oldChildren = newChildren;\n\n function dualTravel(newChildren, oldChildren) {\n if (newChildren.length === 0 && oldChildren.length === 0) {\n return;\n }\n\n new DataDiffer(oldChildren, newChildren, getKey, getKey).add(processNode).update(processNode).remove(zrUtil.curry(processNode, null)).execute();\n\n function getKey(node) {\n return node.getId();\n }\n\n function processNode(newIdx, oldIdx) {\n var newNode = newIdx == null ? null : newChildren[newIdx];\n var oldNode = oldIdx == null ? null : oldChildren[oldIdx];\n doRenderNode(newNode, oldNode);\n }\n }\n\n function doRenderNode(newNode, oldNode) {\n if (!renderLabelForZeroData && newNode && !newNode.getValue()) {\n // Not render data with value 0\n newNode = null;\n }\n\n if (newNode !== virtualRoot && oldNode !== virtualRoot) {\n if (oldNode && oldNode.piece) {\n if (newNode) {\n // Update\n oldNode.piece.updateData(false, newNode, seriesModel, ecModel, api); // For tooltip\n\n data.setItemGraphicEl(newNode.dataIndex, oldNode.piece);\n } else {\n // Remove\n removeNode(oldNode);\n }\n } else if (newNode) {\n // Add\n var piece = new SunburstPiece(newNode, seriesModel, ecModel, api);\n group.add(piece); // For tooltip\n\n data.setItemGraphicEl(newNode.dataIndex, piece);\n }\n }\n }\n\n function removeNode(node) {\n if (!node) {\n return;\n }\n\n if (node.piece) {\n group.remove(node.piece);\n node.piece = null;\n }\n }\n\n function renderRollUp(virtualRoot, viewRoot) {\n if (viewRoot.depth > 0) {\n // Render\n if (self.virtualPiece) {\n // Update\n self.virtualPiece.updateData(false, virtualRoot, seriesModel, ecModel, api);\n } else {\n // Add\n self.virtualPiece = new SunburstPiece(virtualRoot, seriesModel, ecModel, api);\n group.add(self.virtualPiece);\n } // TODO event scope\n\n\n viewRoot.piece.off('click');\n self.virtualPiece.on('click', function (e) {\n self._rootToNode(viewRoot.parentNode);\n });\n } else if (self.virtualPiece) {\n // Remove\n group.remove(self.virtualPiece);\n self.virtualPiece = null;\n }\n }\n };\n /**\n * @private\n */\n\n\n SunburstView.prototype._initEvents = function () {\n var _this = this;\n\n this.group.off('click');\n this.group.on('click', function (e) {\n var targetFound = false;\n\n var viewRoot = _this.seriesModel.getViewRoot();\n\n viewRoot.eachNode(function (node) {\n if (!targetFound && node.piece && node.piece === e.target) {\n var nodeClick = node.getModel().get('nodeClick');\n\n if (nodeClick === 'rootToNode') {\n _this._rootToNode(node);\n } else if (nodeClick === 'link') {\n var itemModel = node.getModel();\n var link = itemModel.get('link');\n\n if (link) {\n var linkTarget = itemModel.get('target', true) || '_blank';\n windowOpen(link, linkTarget);\n }\n }\n\n targetFound = true;\n }\n });\n });\n };\n /**\n * @private\n */\n\n\n SunburstView.prototype._rootToNode = function (node) {\n if (node !== this.seriesModel.getViewRoot()) {\n this.api.dispatchAction({\n type: ROOT_TO_NODE_ACTION,\n from: this.uid,\n seriesId: this.seriesModel.id,\n targetNode: node\n });\n }\n };\n /**\n * @implement\n */\n\n\n SunburstView.prototype.containPoint = function (point, seriesModel) {\n var treeRoot = seriesModel.getData();\n var itemLayout = treeRoot.getItemLayout(0);\n\n if (itemLayout) {\n var dx = point[0] - itemLayout.cx;\n var dy = point[1] - itemLayout.cy;\n var radius = Math.sqrt(dx * dx + dy * dy);\n return radius <= itemLayout.r && radius >= itemLayout.r0;\n }\n };\n\n SunburstView.type = 'sunburst';\n return SunburstView;\n}(ChartView);\n\nexport default SunburstView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport SeriesModel from '../../model/Series';\nimport Tree from '../../data/Tree';\nimport { wrapTreePathInfo } from '../helper/treeHelper';\nimport Model from '../../model/Model';\nimport enableAriaDecalForTree from '../helper/enableAriaDecalForTree';\n\nvar SunburstSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(SunburstSeriesModel, _super);\n\n function SunburstSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SunburstSeriesModel.type;\n _this.ignoreStyleOnData = true;\n return _this;\n }\n\n SunburstSeriesModel.prototype.getInitialData = function (option, ecModel) {\n // Create a virtual root.\n var root = {\n name: option.name,\n children: option.data\n };\n completeTreeValue(root);\n var levelModels = zrUtil.map(option.levels || [], function (levelDefine) {\n return new Model(levelDefine, this, ecModel);\n }, this); // Make sure always a new tree is created when setOption,\n // in TreemapView, we check whether oldTree === newTree\n // to choose mappings approach among old shapes and new shapes.\n\n var tree = Tree.createTree(root, this, beforeLink);\n\n function beforeLink(nodeData) {\n nodeData.wrapMethod('getItemModel', function (model, idx) {\n var node = tree.getNodeByDataIndex(idx);\n var levelModel = levelModels[node.depth];\n levelModel && (model.parentModel = levelModel);\n return model;\n });\n }\n\n return tree.data;\n };\n\n SunburstSeriesModel.prototype.optionUpdated = function () {\n this.resetViewRoot();\n };\n /*\n * @override\n */\n\n\n SunburstSeriesModel.prototype.getDataParams = function (dataIndex) {\n var params = _super.prototype.getDataParams.apply(this, arguments);\n\n var node = this.getData().tree.getNodeByDataIndex(dataIndex);\n params.treePathInfo = wrapTreePathInfo(node, this);\n return params;\n };\n\n SunburstSeriesModel.prototype.getViewRoot = function () {\n return this._viewRoot;\n };\n\n SunburstSeriesModel.prototype.resetViewRoot = function (viewRoot) {\n viewRoot ? this._viewRoot = viewRoot : viewRoot = this._viewRoot;\n var root = this.getRawData().tree.root;\n\n if (!viewRoot || viewRoot !== root && !root.contains(viewRoot)) {\n this._viewRoot = root;\n }\n };\n\n SunburstSeriesModel.prototype.enableAriaDecal = function () {\n enableAriaDecalForTree(this);\n };\n\n SunburstSeriesModel.type = 'series.sunburst';\n SunburstSeriesModel.defaultOption = {\n zlevel: 0,\n z: 2,\n // 默认全局居中\n center: ['50%', '50%'],\n radius: [0, '75%'],\n // 默认顺时针\n clockwise: true,\n startAngle: 90,\n // 最小角度改为0\n minAngle: 0,\n // If still show when all data zero.\n stillShowZeroSum: true,\n // 'rootToNode', 'link', or false\n nodeClick: 'rootToNode',\n renderLabelForZeroData: false,\n label: {\n // could be: 'radial', 'tangential', or 'none'\n rotate: 'radial',\n show: true,\n opacity: 1,\n // 'left' is for inner side of inside, and 'right' is for outter\n // side for inside\n align: 'center',\n position: 'inside',\n distance: 5,\n silent: true\n },\n itemStyle: {\n borderWidth: 1,\n borderColor: 'white',\n borderType: 'solid',\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, 0.2)',\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n opacity: 1\n },\n emphasis: {\n focus: 'descendant'\n },\n blur: {\n itemStyle: {\n opacity: 0.2\n },\n label: {\n opacity: 0.1\n }\n },\n // Animation type canbe expansion, scale\n animationType: 'expansion',\n animationDuration: 1000,\n animationDurationUpdate: 500,\n data: [],\n levels: [],\n\n /**\n * Sort order.\n *\n * Valid values: 'desc', 'asc', null, or callback function.\n * 'desc' and 'asc' for descend and ascendant order;\n * null for not sorting;\n * example of callback function:\n * function(nodeA, nodeB) {\n * return nodeA.getValue() - nodeB.getValue();\n * }\n */\n sort: 'desc'\n };\n return SunburstSeriesModel;\n}(SeriesModel);\n\nfunction completeTreeValue(dataNode) {\n // Postorder travel tree.\n // If value of none-leaf node is not set,\n // calculate it by suming up the value of all children.\n var sum = 0;\n zrUtil.each(dataNode.children, function (child) {\n completeTreeValue(child);\n var childValue = child.value; // TODO First value of array must be a number\n\n zrUtil.isArray(childValue) && (childValue = childValue[0]);\n sum += childValue;\n });\n var thisValue = dataNode.value;\n\n if (zrUtil.isArray(thisValue)) {\n thisValue = thisValue[0];\n }\n\n if (thisValue == null || isNaN(thisValue)) {\n thisValue = sum;\n } // Value should not less than 0.\n\n\n if (thisValue < 0) {\n thisValue = 0;\n }\n\n zrUtil.isArray(dataNode.value) ? dataNode.value[0] = thisValue : dataNode.value = thisValue;\n}\n\nexport default SunburstSeriesModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parsePercent } from '../../util/number';\nimport * as zrUtil from 'zrender/lib/core/util'; // let PI2 = Math.PI * 2;\n\nvar RADIAN = Math.PI / 180;\nexport default function sunburstLayout(seriesType, ecModel, api) {\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n var center = seriesModel.get('center');\n var radius = seriesModel.get('radius');\n\n if (!zrUtil.isArray(radius)) {\n radius = [0, radius];\n }\n\n if (!zrUtil.isArray(center)) {\n center = [center, center];\n }\n\n var width = api.getWidth();\n var height = api.getHeight();\n var size = Math.min(width, height);\n var cx = parsePercent(center[0], width);\n var cy = parsePercent(center[1], height);\n var r0 = parsePercent(radius[0], size / 2);\n var r = parsePercent(radius[1], size / 2);\n var startAngle = -seriesModel.get('startAngle') * RADIAN;\n var minAngle = seriesModel.get('minAngle') * RADIAN;\n var virtualRoot = seriesModel.getData().tree.root;\n var treeRoot = seriesModel.getViewRoot();\n var rootDepth = treeRoot.depth;\n var sort = seriesModel.get('sort');\n\n if (sort != null) {\n initChildren(treeRoot, sort);\n }\n\n var validDataCount = 0;\n zrUtil.each(treeRoot.children, function (child) {\n !isNaN(child.getValue()) && validDataCount++;\n });\n var sum = treeRoot.getValue(); // Sum may be 0\n\n var unitRadian = Math.PI / (sum || validDataCount) * 2;\n var renderRollupNode = treeRoot.depth > 0;\n var levels = treeRoot.height - (renderRollupNode ? -1 : 1);\n var rPerLevel = (r - r0) / (levels || 1);\n var clockwise = seriesModel.get('clockwise');\n var stillShowZeroSum = seriesModel.get('stillShowZeroSum'); // In the case some sector angle is smaller than minAngle\n // let restAngle = PI2;\n // let valueSumLargerThanMinAngle = 0;\n\n var dir = clockwise ? 1 : -1;\n /**\n * Render a tree\n * @return increased angle\n */\n\n var renderNode = function (node, startAngle) {\n if (!node) {\n return;\n }\n\n var endAngle = startAngle; // Render self\n\n if (node !== virtualRoot) {\n // Tree node is virtual, so it doesn't need to be drawn\n var value = node.getValue();\n var angle = sum === 0 && stillShowZeroSum ? unitRadian : value * unitRadian;\n\n if (angle < minAngle) {\n angle = minAngle; // restAngle -= minAngle;\n } // else {\n // valueSumLargerThanMinAngle += value;\n // }\n\n\n endAngle = startAngle + dir * angle;\n var depth = node.depth - rootDepth - (renderRollupNode ? -1 : 1);\n var rStart = r0 + rPerLevel * depth;\n var rEnd = r0 + rPerLevel * (depth + 1);\n var itemModel = node.getModel(); // @ts-ignore. TODO this is not provided to developer yet. Rename it.\n\n if (itemModel.get('r0') != null) {\n // @ts-ignore\n rStart = parsePercent(itemModel.get('r0'), size / 2);\n } // @ts-ignore\n\n\n if (itemModel.get('r') != null) {\n // @ts-ignore\n rEnd = parsePercent(itemModel.get('r'), size / 2);\n }\n\n node.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n } // Render children\n\n\n if (node.children && node.children.length) {\n // currentAngle = startAngle;\n var siblingAngle_1 = 0;\n zrUtil.each(node.children, function (node) {\n siblingAngle_1 += renderNode(node, startAngle + siblingAngle_1);\n });\n }\n\n return endAngle - startAngle;\n }; // Virtual root node for roll up\n\n\n if (renderRollupNode) {\n var rStart = r0;\n var rEnd = r0 + rPerLevel;\n var angle = Math.PI * 2;\n virtualRoot.setLayout({\n angle: angle,\n startAngle: startAngle,\n endAngle: startAngle + angle,\n clockwise: clockwise,\n cx: cx,\n cy: cy,\n r0: rStart,\n r: rEnd\n });\n }\n\n renderNode(treeRoot, startAngle);\n });\n}\n/**\n * Init node children by order and update visual\n */\n\nfunction initChildren(node, sortOrder) {\n var children = node.children || [];\n node.children = sort(children, sortOrder); // Init children recursively\n\n if (children.length) {\n zrUtil.each(node.children, function (child) {\n initChildren(child, sortOrder);\n });\n }\n}\n/**\n * Sort children nodes\n *\n * @param {TreeNode[]} children children of node to be sorted\n * @param {string | function | null} sort sort method\n * See SunburstSeries.js for details.\n */\n\n\nfunction sort(children, sortOrder) {\n if (typeof sortOrder === 'function') {\n var sortTargets = zrUtil.map(children, function (child, idx) {\n var value = child.getValue();\n return {\n params: {\n depth: child.depth,\n height: child.height,\n dataIndex: child.dataIndex,\n getValue: function () {\n return value;\n }\n },\n index: idx\n };\n });\n sortTargets.sort(function (a, b) {\n return sortOrder(a.params, b.params);\n });\n return zrUtil.map(sortTargets, function (target) {\n return children[target.index];\n });\n } else {\n var isAsc_1 = sortOrder === 'asc';\n return children.sort(function (a, b) {\n var diff = (a.getValue() - b.getValue()) * (isAsc_1 ? 1 : -1);\n return diff === 0 ? (a.dataIndex - b.dataIndex) * (isAsc_1 ? -1 : 1) : diff;\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { extend } from 'zrender/lib/core/util';\nimport { lift } from 'zrender/lib/tool/color';\nexport default function sunburstVisual(ecModel) {\n var paletteScope = {}; // Default color strategy\n\n function pickColor(node, seriesModel, treeHeight) {\n // Choose color from palette based on the first level.\n var current = node;\n\n while (current && current.depth > 1) {\n current = current.parentNode;\n }\n\n var color = seriesModel.getColorFromPalette(current.name || current.dataIndex + '', paletteScope);\n\n if (node.depth > 1 && typeof color === 'string') {\n // Lighter on the deeper level.\n color = lift(color, (node.depth - 1) / (treeHeight - 1) * 0.5);\n }\n\n return color;\n }\n\n ecModel.eachSeriesByType('sunburst', function (seriesModel) {\n var data = seriesModel.getData();\n var tree = data.tree;\n tree.eachNode(function (node) {\n var model = node.getModel();\n var style = model.getModel('itemStyle').getItemStyle();\n\n if (!style.fill) {\n style.fill = pickColor(node, seriesModel, tree.root.height);\n }\n\n var existsStyle = data.ensureUniqueItemVisual(node.dataIndex, 'style');\n extend(existsStyle, style);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SunburstView from './SunburstView';\nimport SunburstSeriesModel from './SunburstSeries';\nimport sunburstLayout from './sunburstLayout';\nimport sunburstVisual from './sunburstVisual';\nimport dataFilter from '../../processor/dataFilter';\nimport { curry } from 'zrender/lib/core/util';\nimport { installSunburstAction } from './sunburstAction';\nexport function install(registers) {\n registers.registerChartView(SunburstView);\n registers.registerSeriesModel(SunburstSeriesModel);\n registers.registerLayout(curry(sunburstLayout, 'sunburst'));\n registers.registerProcessor(curry(dataFilter, 'sunburst'));\n registers.registerVisual(sunburstVisual);\n installSunburstAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['x', 'y'], function (dim, dimIdx) {\n var axis = this.getAxis(dim);\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n }, this);\n}\n\nexport default function cartesianPrepareCustom(coordSys) {\n var rect = coordSys.master.getRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'cartesian2d',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (data) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n dataItem = dataItem || [0, 0];\n return zrUtil.map([0, 1], function (dimIdx) {\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n var p1 = [];\n var p2 = [];\n p1[dimIdx] = val - halfSize;\n p2[dimIdx] = val + halfSize;\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx];\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]);\n }, this);\n}\n\nexport default function geoPrepareCustom(coordSys) {\n var rect = coordSys.getBoundingRect();\n return {\n coordSys: {\n type: 'geo',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n zoom: coordSys.getZoom()\n },\n api: {\n coord: function (data) {\n // do not provide \"out\" and noRoam param,\n // Compatible with this usage:\n // echarts.util.map(item.points, api.coord)\n return coordSys.dataToPoint(data);\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { bind } from 'zrender/lib/core/util';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}\n\nexport default function singlePrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n return {\n coordSys: {\n type: 'singleAxis',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: function (val) {\n // do not provide \"out\" param\n return coordSys.dataToPoint(val);\n },\n size: bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util'; // import AngleAxis from './AngleAxis';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\n var getterName = 'get' + dim + 'Axis'; // TODO: TYPE Check Angle Axis\n\n var axis = this[getterName]();\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n\n if (dim === 'Angle') {\n result = result * Math.PI / 180;\n }\n\n return result;\n }, this);\n}\n\nexport default function polarPrepareCustom(coordSys) {\n var radiusAxis = coordSys.getRadiusAxis();\n var angleAxis = coordSys.getAngleAxis();\n var radius = radiusAxis.getExtent();\n radius[0] > radius[1] && radius.reverse();\n return {\n coordSys: {\n type: 'polar',\n cx: coordSys.cx,\n cy: coordSys.cy,\n r: radius[1],\n r0: radius[0]\n },\n api: {\n coord: function (data) {\n var radius = radiusAxis.dataToRadius(data[0]);\n var angle = angleAxis.dataToAngle(data[1]);\n var coord = coordSys.coordToPoint([radius, angle]);\n coord.push(radius, angle * Math.PI / 180);\n return coord;\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function calendarPrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n var rangeInfo = coordSys.getRangeInfo();\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function (data, clamp) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, hasOwn } from 'zrender/lib/core/util';\nvar deprecatedLogs = {};\n/**\n * Whether need to call `convertEC4CompatibleStyle`.\n */\n\nexport function isEC4CompatibleStyle(style, elType, hasOwnTextContentOption, hasOwnTextConfig) {\n // Since echarts5, `RectText` is separated from its host element and style.text\n // does not exist any more. The compat work brings some extra burden on performance.\n // So we provide:\n // `legacy: true` force make compat.\n // `legacy: false`, force do not compat.\n // `legacy` not set: auto detect wheter legacy.\n // But in this case we do not compat (difficult to detect and rare case):\n // Becuse custom series and graphic component support \"merge\", users may firstly\n // only set `textStrokeWidth` style or secondly only set `text`.\n return style && (style.legacy || style.legacy !== false && !hasOwnTextContentOption && !hasOwnTextConfig && elType !== 'tspan' // Difficult to detect whether legacy for a \"text\" el.\n && (elType === 'text' || hasOwn(style, 'text')));\n}\n/**\n * `EC4CompatibleStyle` is style that might be in echarts4 format or echarts5 format.\n * @param hostStyle The properties might be modified.\n * @return If be text el, `textContentStyle` and `textConfig` will not be retured.\n * Otherwise a `textContentStyle` and `textConfig` will be created, whose props area\n * retried from the `hostStyle`.\n */\n\nexport function convertFromEC4CompatibleStyle(hostStyle, elType, isNormal) {\n var srcStyle = hostStyle;\n var textConfig;\n var textContent;\n var textContentStyle;\n\n if (elType === 'text') {\n textContentStyle = srcStyle;\n } else {\n textContentStyle = {};\n hasOwn(srcStyle, 'text') && (textContentStyle.text = srcStyle.text);\n hasOwn(srcStyle, 'rich') && (textContentStyle.rich = srcStyle.rich);\n hasOwn(srcStyle, 'textFill') && (textContentStyle.fill = srcStyle.textFill);\n hasOwn(srcStyle, 'textStroke') && (textContentStyle.stroke = srcStyle.textStroke);\n textContent = {\n type: 'text',\n style: textContentStyle,\n // ec4 do not support rectText trigger.\n // And when text postion is different in normal and emphasis\n // => hover text trigger emphasis;\n // => text position changed, leave mouse pointer immediately;\n // That might cause state incorrect.\n silent: true\n };\n textConfig = {};\n var hasOwnPos = hasOwn(srcStyle, 'textPosition');\n\n if (isNormal) {\n textConfig.position = hasOwnPos ? srcStyle.textPosition : 'inside';\n } else {\n hasOwnPos && (textConfig.position = srcStyle.textPosition);\n }\n\n hasOwn(srcStyle, 'textPosition') && (textConfig.position = srcStyle.textPosition);\n hasOwn(srcStyle, 'textOffset') && (textConfig.offset = srcStyle.textOffset);\n hasOwn(srcStyle, 'textRotation') && (textConfig.rotation = srcStyle.textRotation);\n hasOwn(srcStyle, 'textDistance') && (textConfig.distance = srcStyle.textDistance);\n }\n\n convertEC4CompatibleRichItem(textContentStyle, hostStyle);\n each(textContentStyle.rich, function (richItem) {\n convertEC4CompatibleRichItem(richItem, richItem);\n });\n return {\n textConfig: textConfig,\n textContent: textContent\n };\n}\n/**\n * The result will be set to `out`.\n */\n\nfunction convertEC4CompatibleRichItem(out, richItem) {\n if (!richItem) {\n return;\n } // (1) For simplicity, make textXXX properties (deprecated since ec5) has\n // higher priority. For example, consider in ec4 `borderColor: 5, textBorderColor: 10`\n // on a rect means `borderColor: 4` on the rect and `borderColor: 10` on an attached\n // richText in ec5.\n // (2) `out === richItem` if and only if `out` is text el or rich item.\n // So we can overwite existing props in `out` since textXXX has higher priority.\n\n\n richItem.font = richItem.textFont || richItem.font;\n hasOwn(richItem, 'textStrokeWidth') && (out.lineWidth = richItem.textStrokeWidth);\n hasOwn(richItem, 'textAlign') && (out.align = richItem.textAlign);\n hasOwn(richItem, 'textVerticalAlign') && (out.verticalAlign = richItem.textVerticalAlign);\n hasOwn(richItem, 'textLineHeight') && (out.lineHeight = richItem.textLineHeight);\n hasOwn(richItem, 'textWidth') && (out.width = richItem.textWidth);\n hasOwn(richItem, 'textHeight') && (out.height = richItem.textHeight);\n hasOwn(richItem, 'textBackgroundColor') && (out.backgroundColor = richItem.textBackgroundColor);\n hasOwn(richItem, 'textPadding') && (out.padding = richItem.textPadding);\n hasOwn(richItem, 'textBorderColor') && (out.borderColor = richItem.textBorderColor);\n hasOwn(richItem, 'textBorderWidth') && (out.borderWidth = richItem.textBorderWidth);\n hasOwn(richItem, 'textBorderRadius') && (out.borderRadius = richItem.textBorderRadius);\n hasOwn(richItem, 'textBoxShadowColor') && (out.shadowColor = richItem.textBoxShadowColor);\n hasOwn(richItem, 'textBoxShadowBlur') && (out.shadowBlur = richItem.textBoxShadowBlur);\n hasOwn(richItem, 'textBoxShadowOffsetX') && (out.shadowOffsetX = richItem.textBoxShadowOffsetX);\n hasOwn(richItem, 'textBoxShadowOffsetY') && (out.shadowOffsetY = richItem.textBoxShadowOffsetY);\n}\n/**\n * Convert to pure echarts4 format style.\n * `itemStyle` will be modified, added with ec4 style properties from\n * `textStyle` and `textConfig`.\n *\n * [Caveat]: For simplicity, `insideRollback` in ec4 does not compat, where\n * `styleEmphasis: {textFill: 'red'}` will remove the normal auto added stroke.\n */\n\n\nexport function convertToEC4StyleForCustomSerise(itemStl, txStl, txCfg) {\n var out = itemStl; // See `custom.ts`, a trick to set extra `textPosition` firstly.\n\n out.textPosition = out.textPosition || txCfg.position || 'inside';\n txCfg.offset != null && (out.textOffset = txCfg.offset);\n txCfg.rotation != null && (out.textRotation = txCfg.rotation);\n txCfg.distance != null && (out.textDistance = txCfg.distance);\n var isInside = out.textPosition.indexOf('inside') >= 0;\n var hostFill = itemStl.fill || '#000';\n convertToEC4RichItem(out, txStl);\n var textFillNotSet = out.textFill == null;\n\n if (isInside) {\n if (textFillNotSet) {\n out.textFill = txCfg.insideFill || '#fff';\n !out.textStroke && txCfg.insideStroke && (out.textStroke = txCfg.insideStroke);\n !out.textStroke && (out.textStroke = hostFill);\n out.textStrokeWidth == null && (out.textStrokeWidth = 2);\n }\n } else {\n if (textFillNotSet) {\n out.textFill = itemStl.fill || txCfg.outsideFill || '#000';\n }\n\n !out.textStroke && txCfg.outsideStroke && (out.textStroke = txCfg.outsideStroke);\n }\n\n out.text = txStl.text;\n out.rich = txStl.rich;\n each(txStl.rich, function (richItem) {\n convertToEC4RichItem(richItem, richItem);\n });\n return out;\n}\n\nfunction convertToEC4RichItem(out, richItem) {\n if (!richItem) {\n return;\n }\n\n hasOwn(richItem, 'fill') && (out.textFill = richItem.fill);\n hasOwn(richItem, 'stroke') && (out.textStroke = richItem.fill);\n hasOwn(richItem, 'lineWidth') && (out.textStrokeWidth = richItem.lineWidth);\n hasOwn(richItem, 'font') && (out.font = richItem.font);\n hasOwn(richItem, 'fontStyle') && (out.fontStyle = richItem.fontStyle);\n hasOwn(richItem, 'fontWeight') && (out.fontWeight = richItem.fontWeight);\n hasOwn(richItem, 'fontSize') && (out.fontSize = richItem.fontSize);\n hasOwn(richItem, 'fontFamily') && (out.fontFamily = richItem.fontFamily);\n hasOwn(richItem, 'align') && (out.textAlign = richItem.align);\n hasOwn(richItem, 'verticalAlign') && (out.textVerticalAlign = richItem.verticalAlign);\n hasOwn(richItem, 'lineHeight') && (out.textLineHeight = richItem.lineHeight);\n hasOwn(richItem, 'width') && (out.textWidth = richItem.width);\n hasOwn(richItem, 'height') && (out.textHeight = richItem.height);\n hasOwn(richItem, 'backgroundColor') && (out.textBackgroundColor = richItem.backgroundColor);\n hasOwn(richItem, 'padding') && (out.textPadding = richItem.padding);\n hasOwn(richItem, 'borderColor') && (out.textBorderColor = richItem.borderColor);\n hasOwn(richItem, 'borderWidth') && (out.textBorderWidth = richItem.borderWidth);\n hasOwn(richItem, 'borderRadius') && (out.textBorderRadius = richItem.borderRadius);\n hasOwn(richItem, 'shadowColor') && (out.textBoxShadowColor = richItem.shadowColor);\n hasOwn(richItem, 'shadowBlur') && (out.textBoxShadowBlur = richItem.shadowBlur);\n hasOwn(richItem, 'shadowOffsetX') && (out.textBoxShadowOffsetX = richItem.shadowOffsetX);\n hasOwn(richItem, 'shadowOffsetY') && (out.textBoxShadowOffsetY = richItem.shadowOffsetY);\n hasOwn(richItem, 'textShadowColor') && (out.textShadowColor = richItem.textShadowColor);\n hasOwn(richItem, 'textShadowBlur') && (out.textShadowBlur = richItem.textShadowBlur);\n hasOwn(richItem, 'textShadowOffsetX') && (out.textShadowOffsetX = richItem.textShadowOffsetX);\n hasOwn(richItem, 'textShadowOffsetY') && (out.textShadowOffsetY = richItem.textShadowOffsetY);\n}\n\nexport function warnDeprecated(deprecated, insteadApproach) {\n if (process.env.NODE_ENV !== 'production') {\n var key = deprecated + '^_^' + insteadApproach;\n\n if (!deprecatedLogs[key]) {\n console.warn(\"[ECharts] DEPRECATED: \\\"\" + deprecated + \"\\\" has been deprecated. \" + insteadApproach);\n deprecatedLogs[key] = true;\n }\n }\n}","import PathProxy from '../core/PathProxy';\nimport { cubicSubdivide } from '../core/curve';\nimport { defaults, assert, noop, clone } from '../core/util';\nimport { lerp } from '../core/vector';\nimport Rect from '../graphic/shape/Rect';\nimport Sector from '../graphic/shape/Sector';\nvar CMD = PathProxy.CMD;\nvar PI2 = Math.PI * 2;\nvar PROP_XY = ['x', 'y'];\nvar PROP_WH = ['width', 'height'];\nvar tmpArr = [];\nfunction aroundEqual(a, b) {\n return Math.abs(a - b) < 1e-5;\n}\nexport function pathToBezierCurves(path) {\n var data = path.data;\n var len = path.len();\n var bezierArray = [];\n var currentSubpath;\n var xi = 0;\n var yi = 0;\n var x0 = 0;\n var y0 = 0;\n function createNewSubpath(x, y) {\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArray.push(currentSubpath);\n }\n currentSubpath = [x, y];\n }\n function addLine(x0, y0, x1, y1) {\n if (!(aroundEqual(x0, x1) && aroundEqual(y0, y1))) {\n currentSubpath.push(x0, y0, x1, y1, x1, y1);\n }\n }\n function addArc(startAngle, endAngle, cx, cy, rx, ry) {\n var delta = Math.abs(endAngle - startAngle);\n var len = Math.tan(delta / 4) * 4 / 3;\n var dir = endAngle < startAngle ? -1 : 1;\n var c1 = Math.cos(startAngle);\n var s1 = Math.sin(startAngle);\n var c2 = Math.cos(endAngle);\n var s2 = Math.sin(endAngle);\n var x1 = c1 * rx + cx;\n var y1 = s1 * ry + cy;\n var x4 = c2 * rx + cx;\n var y4 = s2 * ry + cy;\n var hx = rx * len * dir;\n var hy = ry * len * dir;\n currentSubpath.push(x1 - hx * s1, y1 + hy * c1, x4 + hx * s2, y4 - hy * c2, x4, y4);\n }\n var x1;\n var y1;\n var x2;\n var y2;\n for (var i = 0; i < len;) {\n var cmd = data[i++];\n var isFirst = i === 1;\n if (isFirst) {\n xi = data[i];\n yi = data[i + 1];\n x0 = xi;\n y0 = yi;\n if (cmd === CMD.L || cmd === CMD.C || cmd === CMD.Q) {\n currentSubpath = [x0, y0];\n }\n }\n switch (cmd) {\n case CMD.M:\n xi = x0 = data[i++];\n yi = y0 = data[i++];\n createNewSubpath(x0, y0);\n break;\n case CMD.L:\n x1 = data[i++];\n y1 = data[i++];\n addLine(xi, yi, x1, y1);\n xi = x1;\n yi = y1;\n break;\n case CMD.C:\n currentSubpath.push(data[i++], data[i++], data[i++], data[i++], xi = data[i++], yi = data[i++]);\n break;\n case CMD.Q:\n x1 = data[i++];\n y1 = data[i++];\n x2 = data[i++];\n y2 = data[i++];\n currentSubpath.push(xi + 2 / 3 * (x1 - xi), yi + 2 / 3 * (y1 - yi), x2 + 2 / 3 * (x1 - x2), y2 + 2 / 3 * (y1 - y2), x2, y2);\n xi = x2;\n yi = y2;\n break;\n case CMD.A:\n var cx = data[i++];\n var cy = data[i++];\n var rx = data[i++];\n var ry = data[i++];\n var startAngle = data[i++];\n var endAngle = data[i++] + startAngle;\n i += 1;\n var anticlockwise = !data[i++];\n x1 = Math.cos(startAngle) * rx + cx;\n y1 = Math.sin(startAngle) * ry + cy;\n if (isFirst) {\n x0 = x1;\n y0 = y1;\n createNewSubpath(x0, y0);\n }\n else {\n addLine(xi, yi, x1, y1);\n }\n xi = Math.cos(endAngle) * rx + cx;\n yi = Math.sin(endAngle) * ry + cy;\n var step = (anticlockwise ? -1 : 1) * Math.PI / 2;\n for (var angle = startAngle; anticlockwise ? angle > endAngle : angle < endAngle; angle += step) {\n var nextAngle = anticlockwise ? Math.max(angle + step, endAngle)\n : Math.min(angle + step, endAngle);\n addArc(angle, nextAngle, cx, cy, rx, ry);\n }\n break;\n case CMD.R:\n x0 = xi = data[i++];\n y0 = yi = data[i++];\n x1 = x0 + data[i++];\n y1 = y0 + data[i++];\n createNewSubpath(x1, y0);\n addLine(x1, y0, x1, y1);\n addLine(x1, y1, x0, y1);\n addLine(x0, y1, x0, y0);\n addLine(x0, y0, x1, y0);\n break;\n case CMD.Z:\n currentSubpath && addLine(xi, yi, x0, y0);\n xi = x0;\n yi = y0;\n break;\n }\n }\n if (currentSubpath && currentSubpath.length > 2) {\n bezierArray.push(currentSubpath);\n }\n return bezierArray;\n}\nfunction alignSubpath(subpath1, subpath2) {\n var len1 = subpath1.length;\n var len2 = subpath2.length;\n if (len1 === len2) {\n return [subpath1, subpath2];\n }\n var shorterPath = len1 < len2 ? subpath1 : subpath2;\n var shorterLen = Math.min(len1, len2);\n var diff = Math.abs(len2 - len1) / 6;\n var shorterBezierCount = (shorterLen - 2) / 6;\n var eachCurveSubDivCount = Math.ceil(diff / shorterBezierCount) + 1;\n var newSubpath = [shorterPath[0], shorterPath[1]];\n var remained = diff;\n var tmpSegX = [];\n var tmpSegY = [];\n for (var i = 2; i < shorterLen;) {\n var x0 = shorterPath[i - 2];\n var y0 = shorterPath[i - 1];\n var x1 = shorterPath[i++];\n var y1 = shorterPath[i++];\n var x2 = shorterPath[i++];\n var y2 = shorterPath[i++];\n var x3 = shorterPath[i++];\n var y3 = shorterPath[i++];\n if (remained <= 0) {\n newSubpath.push(x1, y1, x2, y2, x3, y3);\n continue;\n }\n var actualSubDivCount = Math.min(remained, eachCurveSubDivCount - 1) + 1;\n for (var k = 1; k <= actualSubDivCount; k++) {\n var p = k / actualSubDivCount;\n cubicSubdivide(x0, x1, x2, x3, p, tmpSegX);\n cubicSubdivide(y0, y1, y2, y3, p, tmpSegY);\n x0 = tmpSegX[3];\n y0 = tmpSegY[3];\n newSubpath.push(tmpSegX[1], tmpSegY[1], tmpSegX[2], tmpSegY[2], x0, y0);\n x1 = tmpSegX[5];\n y1 = tmpSegY[5];\n x2 = tmpSegX[6];\n y2 = tmpSegY[6];\n }\n remained -= actualSubDivCount - 1;\n }\n return shorterPath === subpath1 ? [newSubpath, subpath2] : [subpath1, newSubpath];\n}\nfunction createSubpath(lastSubpathSubpath, otherSubpath) {\n var len = lastSubpathSubpath.length;\n var lastX = lastSubpathSubpath[len - 2];\n var lastY = lastSubpathSubpath[len - 1];\n var newSubpath = [];\n for (var i = 0; i < otherSubpath.length;) {\n newSubpath[i++] = lastX;\n newSubpath[i++] = lastY;\n }\n return newSubpath;\n}\nexport function alignBezierCurves(array1, array2) {\n var _a;\n var lastSubpath1;\n var lastSubpath2;\n var newArray1 = [];\n var newArray2 = [];\n for (var i = 0; i < Math.max(array1.length, array2.length); i++) {\n var subpath1 = array1[i];\n var subpath2 = array2[i];\n var newSubpath1 = void 0;\n var newSubpath2 = void 0;\n if (!subpath1) {\n newSubpath1 = createSubpath(lastSubpath1 || subpath2, subpath2);\n newSubpath2 = subpath2;\n }\n else if (!subpath2) {\n newSubpath2 = createSubpath(lastSubpath2 || subpath1, subpath1);\n newSubpath1 = subpath1;\n }\n else {\n _a = alignSubpath(subpath1, subpath2), newSubpath1 = _a[0], newSubpath2 = _a[1];\n lastSubpath1 = newSubpath1;\n lastSubpath2 = newSubpath2;\n }\n newArray1.push(newSubpath1);\n newArray2.push(newSubpath2);\n }\n return [newArray1, newArray2];\n}\nexport function centroid(array) {\n var signedArea = 0;\n var cx = 0;\n var cy = 0;\n var len = array.length;\n for (var i = 0, j = len - 2; i < len; j = i, i += 2) {\n var x0 = array[j];\n var y0 = array[j + 1];\n var x1 = array[i];\n var y1 = array[i + 1];\n var a = x0 * y1 - x1 * y0;\n signedArea += a;\n cx += (x0 + x1) * a;\n cy += (y0 + y1) * a;\n }\n if (signedArea === 0) {\n return [array[0] || 0, array[1] || 0];\n }\n return [cx / signedArea / 3, cy / signedArea / 3, signedArea];\n}\nfunction findBestRingOffset(fromSubBeziers, toSubBeziers, fromCp, toCp) {\n var bezierCount = (fromSubBeziers.length - 2) / 6;\n var bestScore = Infinity;\n var bestOffset = 0;\n var len = fromSubBeziers.length;\n var len2 = len - 2;\n for (var offset = 0; offset < bezierCount; offset++) {\n var cursorOffset = offset * 6;\n var score = 0;\n for (var k = 0; k < len; k += 2) {\n var idx = k === 0 ? cursorOffset : ((cursorOffset + k - 2) % len2 + 2);\n var x0 = fromSubBeziers[idx] - fromCp[0];\n var y0 = fromSubBeziers[idx + 1] - fromCp[1];\n var x1 = toSubBeziers[k] - toCp[0];\n var y1 = toSubBeziers[k + 1] - toCp[1];\n var dx = x1 - x0;\n var dy = y1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestOffset = offset;\n }\n }\n return bestOffset;\n}\nfunction reverse(array) {\n var newArr = [];\n var len = array.length;\n for (var i = 0; i < len; i += 2) {\n newArr[i] = array[len - i - 2];\n newArr[i + 1] = array[len - i - 1];\n }\n return newArr;\n}\nfunction findBestMorphingRotation(fromArr, toArr, searchAngleIteration, searchAngleRange) {\n var result = [];\n var fromNeedsReverse;\n for (var i = 0; i < fromArr.length; i++) {\n var fromSubpathBezier = fromArr[i];\n var toSubpathBezier = toArr[i];\n var fromCp = centroid(fromSubpathBezier);\n var toCp = centroid(toSubpathBezier);\n if (fromNeedsReverse == null) {\n fromNeedsReverse = fromCp[2] < 0 !== toCp[2] < 0;\n }\n var newFromSubpathBezier = [];\n var newToSubpathBezier = [];\n var bestAngle = 0;\n var bestScore = Infinity;\n var tmpArr_1 = [];\n var len = fromSubpathBezier.length;\n if (fromNeedsReverse) {\n fromSubpathBezier = reverse(fromSubpathBezier);\n }\n var offset = findBestRingOffset(fromSubpathBezier, toSubpathBezier, fromCp, toCp) * 6;\n var len2 = len - 2;\n for (var k = 0; k < len2; k += 2) {\n var idx = (offset + k) % len2 + 2;\n newFromSubpathBezier[k + 2] = fromSubpathBezier[idx] - fromCp[0];\n newFromSubpathBezier[k + 3] = fromSubpathBezier[idx + 1] - fromCp[1];\n }\n newFromSubpathBezier[0] = fromSubpathBezier[offset] - fromCp[0];\n newFromSubpathBezier[1] = fromSubpathBezier[offset + 1] - fromCp[1];\n if (searchAngleIteration > 0) {\n var step = searchAngleRange / searchAngleIteration;\n for (var angle = -searchAngleRange / 2; angle <= searchAngleRange / 2; angle += step) {\n var sa = Math.sin(angle);\n var ca = Math.cos(angle);\n var score = 0;\n for (var k = 0; k < fromSubpathBezier.length; k += 2) {\n var x0 = newFromSubpathBezier[k];\n var y0 = newFromSubpathBezier[k + 1];\n var x1 = toSubpathBezier[k] - toCp[0];\n var y1 = toSubpathBezier[k + 1] - toCp[1];\n var newX1 = x1 * ca - y1 * sa;\n var newY1 = x1 * sa + y1 * ca;\n tmpArr_1[k] = newX1;\n tmpArr_1[k + 1] = newY1;\n var dx = newX1 - x0;\n var dy = newY1 - y0;\n score += dx * dx + dy * dy;\n }\n if (score < bestScore) {\n bestScore = score;\n bestAngle = angle;\n for (var m = 0; m < tmpArr_1.length; m++) {\n newToSubpathBezier[m] = tmpArr_1[m];\n }\n }\n }\n }\n else {\n for (var i_1 = 0; i_1 < len; i_1 += 2) {\n newToSubpathBezier[i_1] = toSubpathBezier[i_1] - toCp[0];\n newToSubpathBezier[i_1 + 1] = toSubpathBezier[i_1 + 1] - toCp[1];\n }\n }\n result.push({\n from: newFromSubpathBezier,\n to: newToSubpathBezier,\n fromCp: fromCp,\n toCp: toCp,\n rotation: -bestAngle\n });\n }\n return result;\n}\nexport function morphPath(fromPath, toPath, animationOpts) {\n var fromPathProxy;\n var toPathProxy;\n if (!fromPath || !toPath) {\n return toPath;\n }\n !fromPath.path && fromPath.createPathProxy();\n fromPathProxy = fromPath.path;\n fromPathProxy.beginPath();\n fromPath.buildPath(fromPathProxy, fromPath.shape);\n !toPath.path && toPath.createPathProxy();\n toPathProxy = toPath.path;\n toPathProxy === fromPathProxy && (toPathProxy = new PathProxy(false));\n toPathProxy.beginPath();\n if (isIndividualMorphingPath(toPath)) {\n toPath.__oldBuildPath(toPathProxy, toPath.shape);\n }\n else {\n toPath.buildPath(toPathProxy, toPath.shape);\n }\n var _a = alignBezierCurves(pathToBezierCurves(fromPathProxy), pathToBezierCurves(toPathProxy)), fromBezierCurves = _a[0], toBezierCurves = _a[1];\n var morphingData = findBestMorphingRotation(fromBezierCurves, toBezierCurves, 10, Math.PI);\n becomeIndividualMorphingPath(toPath, morphingData, 0);\n var oldDone = animationOpts && animationOpts.done;\n var oldAborted = animationOpts && animationOpts.aborted;\n var oldDuring = animationOpts && animationOpts.during;\n toPath.animateTo({\n __morphT: 1\n }, defaults({\n during: function (p) {\n toPath.dirtyShape();\n oldDuring && oldDuring(p);\n },\n done: function () {\n restoreIndividualMorphingPath(toPath);\n toPath.createPathProxy();\n toPath.dirtyShape();\n oldDone && oldDone();\n },\n aborted: function () {\n oldAborted && oldAborted();\n }\n }, animationOpts));\n return toPath;\n}\nfunction morphingPathBuildPath(path) {\n var morphingData = this.__morphingData;\n var t = this.__morphT;\n var onet = 1 - t;\n var newCp = [];\n for (var i = 0; i < morphingData.length; i++) {\n var item = morphingData[i];\n var from = item.from;\n var to = item.to;\n var angle = item.rotation * t;\n var fromCp = item.fromCp;\n var toCp = item.toCp;\n var sa = Math.sin(angle);\n var ca = Math.cos(angle);\n lerp(newCp, fromCp, toCp, t);\n for (var m = 0; m < from.length; m += 2) {\n var x0 = from[m];\n var y0 = from[m + 1];\n var x1 = to[m];\n var y1 = to[m + 1];\n var x = x0 * onet + x1 * t;\n var y = y0 * onet + y1 * t;\n tmpArr[m] = (x * ca - y * sa) + newCp[0];\n tmpArr[m + 1] = (x * sa + y * ca) + newCp[1];\n }\n for (var m = 0; m < from.length;) {\n if (m === 0) {\n path.moveTo(tmpArr[m++], tmpArr[m++]);\n }\n path.bezierCurveTo(tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++], tmpArr[m++]);\n }\n }\n}\n;\nfunction becomeIndividualMorphingPath(path, morphingData, morphT) {\n if (isIndividualMorphingPath(path)) {\n updateIndividualMorphingPath(path, morphingData, morphT);\n return;\n }\n var morphingPath = path;\n morphingPath.__oldBuildPath = morphingPath.buildPath;\n morphingPath.buildPath = morphingPathBuildPath;\n updateIndividualMorphingPath(morphingPath, morphingData, morphT);\n}\nfunction updateIndividualMorphingPath(morphingPath, morphingData, morphT) {\n morphingPath.__morphingData = morphingData;\n morphingPath.__morphT = morphT;\n}\nfunction restoreIndividualMorphingPath(path) {\n if (isIndividualMorphingPath(path)) {\n path.buildPath = path.__oldBuildPath;\n path.__oldBuildPath = path.__morphingData = null;\n }\n}\nfunction isIndividualMorphingPath(path) {\n return path.__oldBuildPath != null;\n}\nexport function isCombiningPath(path) {\n return !!path.__combiningSubList;\n}\nexport function isInAnyMorphing(path) {\n return isIndividualMorphingPath(path) || isCombiningPath(path);\n}\nexport function combine(fromPathList, toPath, animationOpts, copyPropsIfDivided) {\n var fromIndividuals = [];\n var separateCount = 0;\n for (var i = 0; i < fromPathList.length; i++) {\n var fromPath = fromPathList[i];\n if (isCombiningPath(fromPath)) {\n var fromCombiningSubList = fromPath.__combiningSubList;\n for (var j = 0; j < fromCombiningSubList.length; j++) {\n fromIndividuals.push(fromCombiningSubList[j]);\n }\n separateCount += fromCombiningSubList.length;\n }\n else {\n fromIndividuals.push(fromPath);\n separateCount++;\n }\n }\n if (!separateCount) {\n return;\n }\n var dividingMethod = animationOpts ? animationOpts.dividingMethod : null;\n var toPathSplittedList = divideShape(toPath, separateCount, dividingMethod);\n assert(toPathSplittedList.length === separateCount);\n var oldDone = animationOpts && animationOpts.done;\n var oldAborted = animationOpts && animationOpts.aborted;\n var oldDuring = animationOpts && animationOpts.during;\n var doneCount = 0;\n var abortedCalled = false;\n var morphAnimationOpts = defaults({\n during: function (p) {\n oldDuring && oldDuring(p);\n },\n done: function () {\n doneCount++;\n if (doneCount === toPathSplittedList.length) {\n restoreCombiningPath(toPath);\n oldDone && oldDone();\n }\n },\n aborted: function () {\n if (!abortedCalled) {\n abortedCalled = true;\n oldAborted && oldAborted();\n }\n }\n }, animationOpts);\n for (var i = 0; i < separateCount; i++) {\n var from = fromIndividuals[i];\n var to = toPathSplittedList[i];\n copyPropsIfDivided && copyPropsIfDivided(toPath, to, true);\n morphPath(from, to, morphAnimationOpts);\n }\n becomeCombiningPath(toPath, toPathSplittedList);\n return {\n fromIndividuals: fromIndividuals,\n toIndividuals: toPathSplittedList,\n count: separateCount\n };\n}\nfunction becomeCombiningPath(path, combiningSubList) {\n if (isCombiningPath(path)) {\n updateCombiningPathSubList(path, combiningSubList);\n return;\n }\n var combiningPath = path;\n updateCombiningPathSubList(combiningPath, combiningSubList);\n combiningPath.__oldAddSelfToZr = path.addSelfToZr;\n combiningPath.__oldRemoveSelfFromZr = path.removeSelfFromZr;\n combiningPath.addSelfToZr = combiningAddSelfToZr;\n combiningPath.removeSelfFromZr = combiningRemoveSelfFromZr;\n combiningPath.__oldBuildPath = combiningPath.buildPath;\n combiningPath.buildPath = noop;\n combiningPath.childrenRef = combiningChildrenRef;\n}\nfunction restoreCombiningPath(path) {\n if (!isCombiningPath(path)) {\n return;\n }\n var combiningPath = path;\n updateCombiningPathSubList(combiningPath, null);\n combiningPath.addSelfToZr = combiningPath.__oldAddSelfToZr;\n combiningPath.removeSelfFromZr = combiningPath.__oldRemoveSelfFromZr;\n combiningPath.buildPath = combiningPath.__oldBuildPath;\n combiningPath.childrenRef =\n combiningPath.__combiningSubList =\n combiningPath.__oldAddSelfToZr =\n combiningPath.__oldRemoveSelfFromZr =\n combiningPath.__oldBuildPath = null;\n}\nfunction updateCombiningPathSubList(combiningPath, combiningSubList) {\n if (combiningPath.__combiningSubList !== combiningSubList) {\n combiningPathSubListAddRemoveWithZr(combiningPath, 'removeSelfFromZr');\n combiningPath.__combiningSubList = combiningSubList;\n if (combiningSubList) {\n for (var i = 0; i < combiningSubList.length; i++) {\n combiningSubList[i].parent = combiningPath;\n }\n }\n combiningPathSubListAddRemoveWithZr(combiningPath, 'addSelfToZr');\n }\n}\nfunction combiningAddSelfToZr(zr) {\n this.__oldAddSelfToZr(zr);\n combiningPathSubListAddRemoveWithZr(this, 'addSelfToZr');\n}\nfunction combiningPathSubListAddRemoveWithZr(path, method) {\n var combiningSubList = path.__combiningSubList;\n var zr = path.__zr;\n if (combiningSubList && zr) {\n for (var i = 0; i < combiningSubList.length; i++) {\n var child = combiningSubList[i];\n child[method](zr);\n }\n }\n}\nfunction combiningRemoveSelfFromZr(zr) {\n this.__oldRemoveSelfFromZr(zr);\n var combiningSubList = this.__combiningSubList;\n for (var i = 0; i < combiningSubList.length; i++) {\n var child = combiningSubList[i];\n child.removeSelfFromZr(zr);\n }\n}\nfunction combiningChildrenRef() {\n return this.__combiningSubList;\n}\nexport function separate(fromPath, toPathList, animationOpts, copyPropsIfDivided) {\n var toPathListLen = toPathList.length;\n var fromPathList;\n var dividingMethod = animationOpts ? animationOpts.dividingMethod : null;\n var copyProps = false;\n if (isCombiningPath(fromPath)) {\n var fromCombiningSubList = fromPath.__combiningSubList;\n if (fromCombiningSubList.length === toPathListLen) {\n fromPathList = fromCombiningSubList;\n }\n else {\n fromPathList = divideShape(fromPath, toPathListLen, dividingMethod);\n copyProps = true;\n }\n }\n else {\n fromPathList = divideShape(fromPath, toPathListLen, dividingMethod);\n copyProps = true;\n }\n assert(fromPathList.length === toPathListLen);\n for (var i = 0; i < toPathListLen; i++) {\n if (copyProps && copyPropsIfDivided) {\n copyPropsIfDivided(fromPath, fromPathList[i], false);\n }\n morphPath(fromPathList[i], toPathList[i], animationOpts);\n }\n return {\n fromIndividuals: fromPathList,\n toIndividuals: toPathList,\n count: toPathListLen\n };\n}\nfunction divideShape(path, separateCount, dividingMethod) {\n return dividingMethod === 'duplicate'\n ? duplicateShape(path, separateCount)\n : splitShape(path, separateCount);\n}\nfunction splitShape(path, separateCount) {\n var resultPaths = [];\n if (separateCount <= 0) {\n return resultPaths;\n }\n if (separateCount === 1) {\n return duplicateShape(path, separateCount);\n }\n if (path instanceof Rect) {\n var toPathShape = path.shape;\n var splitPropIdx = toPathShape.height > toPathShape.width ? 1 : 0;\n var propWH = PROP_WH[splitPropIdx];\n var propXY = PROP_XY[splitPropIdx];\n var subWH = toPathShape[propWH] / separateCount;\n var xyCurr = toPathShape[propXY];\n for (var i = 0; i < separateCount; i++, xyCurr += subWH) {\n var subShape = {\n x: toPathShape.x,\n y: toPathShape.y,\n width: toPathShape.width,\n height: toPathShape.height\n };\n subShape[propXY] = xyCurr;\n subShape[propWH] = i < separateCount - 1\n ? subWH\n : toPathShape[propXY] + toPathShape[propWH] - xyCurr;\n var splitted = new Rect({ shape: subShape });\n resultPaths.push(splitted);\n }\n }\n else if (path instanceof Sector) {\n var toPathShape = path.shape;\n var clockwise = toPathShape.clockwise;\n var startAngle = toPathShape.startAngle;\n var endAngle = toPathShape.endAngle;\n var endAngleNormalized = normalizeRadian(startAngle, toPathShape.endAngle, clockwise);\n var step = (endAngleNormalized - startAngle) / separateCount;\n var angleCurr = startAngle;\n for (var i = 0; i < separateCount; i++, angleCurr += step) {\n var splitted = new Sector({\n shape: {\n cx: toPathShape.cx,\n cy: toPathShape.cy,\n r: toPathShape.r,\n r0: toPathShape.r0,\n clockwise: clockwise,\n startAngle: angleCurr,\n endAngle: i === separateCount - 1 ? endAngle : angleCurr + step\n }\n });\n resultPaths.push(splitted);\n }\n }\n else {\n return duplicateShape(path, separateCount);\n }\n return resultPaths;\n}\nfunction duplicateShape(path, separateCount) {\n var resultPaths = [];\n if (separateCount <= 0) {\n return resultPaths;\n }\n var ctor = path.constructor;\n for (var i = 0; i < separateCount; i++) {\n var sub = new ctor({\n shape: clone(path.shape)\n });\n resultPaths.push(sub);\n }\n return resultPaths;\n}\nfunction normalizeRadian(start, end, clockwise) {\n return end + PI2 * (Math[clockwise ? 'ceil' : 'floor']((start - end) / PI2));\n}\n","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { hasOwn, assert, isString, retrieve2, retrieve3, defaults, each, keys, isArrayLike, bind, isFunction, eqNaN, indexOf, clone } from 'zrender/lib/core/util';\nimport * as graphicUtil from '../../util/graphic';\nimport { setDefaultStateProxy, enableHoverEmphasis } from '../../util/states';\nimport * as labelStyleHelper from '../../label/labelStyle';\nimport { getDefaultLabel } from '../helper/labelHelper';\nimport createListFromArray from '../helper/createListFromArray';\nimport { getLayoutOnAxis } from '../../layout/barGrid';\nimport DataDiffer from '../../data/DataDiffer';\nimport SeriesModel from '../../model/Series';\nimport ChartView from '../../view/Chart';\nimport { createClipPath } from '../helper/createClipPathFromCoordSys';\nimport prepareCartesian2d from '../../coord/cartesian/prepareCustom';\nimport prepareGeo from '../../coord/geo/prepareCustom';\nimport prepareSingleAxis from '../../coord/single/prepareCustom';\nimport preparePolar from '../../coord/polar/prepareCustom';\nimport prepareCalendar from '../../coord/calendar/prepareCustom';\nimport { makeInner, normalizeToArray } from '../../util/model';\nimport { convertToEC4StyleForCustomSerise, isEC4CompatibleStyle, convertFromEC4CompatibleStyle, warnDeprecated } from '../../util/styleCompat';\nimport Transformable from 'zrender/lib/core/Transformable';\nimport { cloneValue } from 'zrender/lib/animation/Animator';\nimport { warn, throwError } from '../../util/log';\nimport { combine, isInAnyMorphing, morphPath, isCombiningPath, separate } from 'zrender/lib/tool/morphPath';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport { createOrUpdatePatternFromDecal } from '../../util/decal';\nvar inner = makeInner();\nvar TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n};\nvar transformPropNamesStr = keys(TRANSFORM_PROPS).join(', ');\n; // Also compat with ec4, where\n// `visual('color') visual('borderColor')` is supported.\n\nvar STYLE_VISUAL_TYPE = {\n color: 'fill',\n borderColor: 'stroke'\n};\nvar NON_STYLE_VISUAL_PROPS = {\n symbol: 1,\n symbolSize: 1,\n symbolKeepAspect: 1,\n legendIcon: 1,\n visualMeta: 1,\n liftZ: 1,\n decal: 1\n};\nvar EMPHASIS = 'emphasis';\nvar NORMAL = 'normal';\nvar BLUR = 'blur';\nvar SELECT = 'select';\nvar STATES = [NORMAL, EMPHASIS, BLUR, SELECT];\nvar PATH_ITEM_STYLE = {\n normal: ['itemStyle'],\n emphasis: [EMPHASIS, 'itemStyle'],\n blur: [BLUR, 'itemStyle'],\n select: [SELECT, 'itemStyle']\n};\nvar PATH_LABEL = {\n normal: ['label'],\n emphasis: [EMPHASIS, 'label'],\n blur: [BLUR, 'label'],\n select: [SELECT, 'label']\n}; // Use prefix to avoid index to be the same as el.name,\n// which will cause weird update animation.\n\nvar GROUP_DIFF_PREFIX = 'e\\0\\0';\nvar attachedTxInfoTmp = {\n normal: {},\n emphasis: {},\n blur: {},\n select: {}\n};\nvar LEGACY_TRANSFORM_PROPS = {\n position: ['x', 'y'],\n scale: ['scaleX', 'scaleY'],\n origin: ['originX', 'originY']\n};\nvar tmpTransformable = new Transformable();\n/**\n * To reduce total package size of each coordinate systems, the modules `prepareCustom`\n * of each coordinate systems are not required by each coordinate systems directly, but\n * required by the module `custom`.\n *\n * prepareInfoForCustomSeries {Function}: optional\n * @return {Object} {coordSys: {...}, api: {\n * coord: function (data, clamp) {}, // return point in global.\n * size: function (dataSize, dataItem) {} // return size of each axis in coordSys.\n * }}\n */\n\nvar prepareCustoms = {\n cartesian2d: prepareCartesian2d,\n geo: prepareGeo,\n singleAxis: prepareSingleAxis,\n polar: preparePolar,\n calendar: prepareCalendar\n};\n\nvar CustomSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(CustomSeriesModel, _super);\n\n function CustomSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CustomSeriesModel.type;\n return _this;\n }\n\n CustomSeriesModel.prototype.optionUpdated = function () {\n this.currentZLevel = this.get('zlevel', true);\n this.currentZ = this.get('z', true);\n };\n\n CustomSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createListFromArray(this.getSource(), this);\n };\n\n CustomSeriesModel.prototype.getDataParams = function (dataIndex, dataType, el) {\n var params = _super.prototype.getDataParams.call(this, dataIndex, dataType);\n\n el && (params.info = inner(el).info);\n return params;\n };\n\n CustomSeriesModel.type = 'series.custom';\n CustomSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n CustomSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n zlevel: 0,\n z: 2,\n legendHoverLink: true,\n // Custom series will not clip by default.\n // Some case will use custom series to draw label\n // For example https://echarts.apache.org/examples/en/editor.html?c=custom-gantt-flight\n clip: false // Cartesian coordinate system\n // xAxisIndex: 0,\n // yAxisIndex: 0,\n // Polar coordinate system\n // polarIndex: 0,\n // Geo coordinate system\n // geoIndex: 0,\n\n };\n return CustomSeriesModel;\n}(SeriesModel);\n\nvar CustomSeriesView =\n/** @class */\nfunction (_super) {\n __extends(CustomSeriesView, _super);\n\n function CustomSeriesView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CustomSeriesView.type;\n return _this;\n }\n\n CustomSeriesView.prototype.render = function (customSeries, ecModel, api, payload) {\n var oldData = this._data;\n var data = customSeries.getData();\n var group = this.group;\n var renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n if (!oldData) {\n // Previous render is incremental render or first render.\n // Needs remove the incremental rendered elements.\n group.removeAll();\n } // By default, merge mode is applied. In most cases, custom series is\n // used in the scenario that data amount is not large but graphic elements\n // is complicated, where merge mode is probably necessary for optimization.\n // For example, reuse graphic elements and only update the transform when\n // roam or data zoom according to `actionType`.\n\n\n var transOpt = customSeries.__transientTransitionOpt; // Enable user to disable transition animation by both set\n // `from` and `to` dimension as `null`/`undefined`.\n\n if (transOpt && (transOpt.from == null || transOpt.to == null)) {\n oldData && oldData.each(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n });\n data.each(function (newIdx) {\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, null);\n });\n } else {\n var morphPreparation_1 = new MorphPreparation(customSeries, transOpt);\n var diffMode = transOpt ? 'multiple' : 'oneToOne';\n new DataDiffer(oldData ? oldData.getIndices() : [], data.getIndices(), createGetKey(oldData, diffMode, transOpt && transOpt.from), createGetKey(data, diffMode, transOpt && transOpt.to), null, diffMode).add(function (newIdx) {\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, null);\n }).remove(function (oldIdx) {\n doRemoveEl(oldData.getItemGraphicEl(oldIdx), customSeries, group);\n }).update(function (newIdx, oldIdx) {\n morphPreparation_1.reset('oneToOne');\n var oldEl = oldData.getItemGraphicEl(oldIdx);\n morphPreparation_1.findAndAddFrom(oldEl); // PENDING:\n // if may morph, currently we alway recreate the whole el.\n // because if reuse some of the el in the group tree, the old el has to\n // be removed from the group, and consequently we can not calculate\n // the \"global transition\" of the old element.\n // But is there performance issue?\n\n if (morphPreparation_1.hasFrom()) {\n removeElementDirectly(oldEl, group);\n oldEl = null;\n }\n\n createOrUpdateItem(api, oldEl, newIdx, renderItem(newIdx, payload), customSeries, group, data, morphPreparation_1);\n morphPreparation_1.applyMorphing();\n }).updateManyToOne(function (newIdx, oldIndices) {\n morphPreparation_1.reset('manyToOne');\n\n for (var i = 0; i < oldIndices.length; i++) {\n var oldEl = oldData.getItemGraphicEl(oldIndices[i]);\n morphPreparation_1.findAndAddFrom(oldEl);\n removeElementDirectly(oldEl, group);\n }\n\n createOrUpdateItem(api, null, newIdx, renderItem(newIdx, payload), customSeries, group, data, morphPreparation_1);\n morphPreparation_1.applyMorphing();\n }).updateOneToMany(function (newIndices, oldIdx) {\n morphPreparation_1.reset('oneToMany');\n var newLen = newIndices.length;\n var oldEl = oldData.getItemGraphicEl(oldIdx);\n morphPreparation_1.findAndAddFrom(oldEl);\n removeElementDirectly(oldEl, group);\n\n for (var i = 0; i < newLen; i++) {\n createOrUpdateItem(api, null, newIndices[i], renderItem(newIndices[i], payload), customSeries, group, data, morphPreparation_1);\n }\n\n morphPreparation_1.applyMorphing();\n }).execute();\n } // Do clipping\n\n\n var clipPath = customSeries.get('clip', true) ? createClipPath(customSeries.coordinateSystem, false, customSeries) : null;\n\n if (clipPath) {\n group.setClipPath(clipPath);\n } else {\n group.removeClipPath();\n }\n\n this._data = data;\n };\n\n CustomSeriesView.prototype.incrementalPrepareRender = function (customSeries, ecModel, api) {\n this.group.removeAll();\n this._data = null;\n };\n\n CustomSeriesView.prototype.incrementalRender = function (params, customSeries, ecModel, api, payload) {\n var data = customSeries.getData();\n var renderItem = makeRenderItem(customSeries, data, ecModel, api);\n\n function setIncrementalAndHoverLayer(el) {\n if (!el.isGroup) {\n el.incremental = true;\n el.ensureState('emphasis').hoverLayer = true;\n }\n }\n\n for (var idx = params.start; idx < params.end; idx++) {\n var el = createOrUpdateItem(null, null, idx, renderItem(idx, payload), customSeries, this.group, data, null);\n el && el.traverse(setIncrementalAndHoverLayer);\n }\n };\n\n CustomSeriesView.prototype.filterForExposedEvent = function (eventType, query, targetEl, packedEvent) {\n var elementName = query.element;\n\n if (elementName == null || targetEl.name === elementName) {\n return true;\n } // Enable to give a name on a group made by `renderItem`, and listen\n // events that triggerd by its descendents.\n\n\n while ((targetEl = targetEl.__hostTarget || targetEl.parent) && targetEl !== this.group) {\n if (targetEl.name === elementName) {\n return true;\n }\n }\n\n return false;\n };\n\n CustomSeriesView.type = 'custom';\n return CustomSeriesView;\n}(ChartView);\n\nfunction createGetKey(data, diffMode, dimension) {\n if (!data) {\n return;\n }\n\n if (diffMode === 'oneToOne') {\n return function (rawIdx, dataIndex) {\n return data.getId(dataIndex);\n };\n }\n\n var diffByDimName = data.getDimension(dimension);\n var dimInfo = data.getDimensionInfo(diffByDimName);\n\n if (!dimInfo) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = dimension + \" is not a valid dimension.\";\n }\n\n throwError(errMsg);\n }\n\n var ordinalMeta = dimInfo.ordinalMeta;\n return function (rawIdx, dataIndex) {\n var key = data.get(diffByDimName, dataIndex);\n\n if (ordinalMeta) {\n key = ordinalMeta.categories[key];\n }\n\n return key == null || eqNaN(key) ? rawIdx + '' : '_ec_' + key;\n };\n}\n\nfunction createEl(elOption) {\n var graphicType = elOption.type;\n var el; // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n\n if (graphicType === 'path') {\n var shape = elOption.shape; // Using pathRect brings convenience to users sacle svg path.\n\n var pathRect = shape.width != null && shape.height != null ? {\n x: shape.x || 0,\n y: shape.y || 0,\n width: shape.width,\n height: shape.height\n } : null;\n var pathData = getPathData(shape); // Path is also used for icon, so layout 'center' by default.\n\n el = graphicUtil.makePath(pathData, null, pathRect, shape.layout || 'center');\n inner(el).customPathData = pathData;\n } else if (graphicType === 'image') {\n el = new graphicUtil.Image({});\n inner(el).customImagePath = elOption.style.image;\n } else if (graphicType === 'text') {\n el = new graphicUtil.Text({}); // inner(el).customText = (elOption.style as TextStyleProps).text;\n } else if (graphicType === 'group') {\n el = new graphicUtil.Group();\n } else if (graphicType === 'compoundPath') {\n throw new Error('\"compoundPath\" is not supported yet.');\n } else {\n var Clz = graphicUtil.getShapeClass(graphicType);\n\n if (!Clz) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'graphic type \"' + graphicType + '\" can not be found.';\n }\n\n throwError(errMsg);\n }\n\n el = new Clz();\n }\n\n inner(el).customGraphicType = graphicType;\n el.name = elOption.name; // Compat ec4: the default z2 lift is 1. If changing the number,\n // some cases probably be broken: hierarchy layout along z, like circle packing,\n // where emphasis only intending to modify color/border rather than lift z2.\n\n el.z2EmphasisLift = 1;\n el.z2SelectLift = 1;\n return el;\n}\n/**\n * ----------------------------------------------------------\n * [STRATEGY_MERGE] Merge properties or erase all properties:\n *\n * Based on the fact that the existing zr element probably be reused, we now consider whether\n * merge or erase all properties to the exsiting elements.\n * That is, if a certain props is not specified in the lastest return of `renderItem`:\n * + \"Merge\" means that do not modify the value on the existing element.\n * + \"Erase all\" means that use a default value to the existing element.\n *\n * \"Merge\" might bring some unexpected state retaining for users and \"erase all\" seams to be\n * more safe. \"erase all\" force users to specify all of the props each time, which is recommanded\n * in most cases.\n * But \"erase all\" theoretically disables the chance of performance optimization (e.g., just\n * generete shape and style at the first time rather than always do that).\n * So we still use \"merge\" rather than \"erase all\". If users need \"erase all\", they can\n * simple always set all of the props each time.\n * Some \"object-like\" config like `textConfig`, `textContent`, `style` which are not needed for\n * every elment, so we replace them only when user specify them. And the that is a total replace.\n *\n * TODO: there is no hint of 'isFirst' to users. So the performance enhancement can not be\n * performed yet. Consider the case:\n * (1) setOption to \"mergeChildren\" with a smaller children count\n * (2) Use dataZoom to make an item disappear.\n * (3) User dataZoom to make the item display again. At that time, renderItem need to return the\n * full option rather than partial option to recreate the element.\n *\n * ----------------------------------------------\n * [STRATEGY_NULL] `hasOwnProperty` or `== null`:\n *\n * Ditinguishing \"own property\" probably bring little trouble to user when make el options.\n * So we trade a {xx: null} or {xx: undefined} as \"not specified\" if possible rather than\n * \"set them to null/undefined\". In most cases, props can not be cleared. Some typicall\n * clearable props like `style`/`textConfig`/`textContent` we enable `false` to means\n * \"clear\". In some othere special cases that the prop is able to set as null/undefined,\n * but not suitable to use `false`, `hasOwnProperty` is checked.\n *\n * ---------------------------------------------\n * [STRATEGY_TRANSITION] The rule of transition:\n * + For props on the root level of a element:\n * If there is no `transition` specified, tansform props will be transitioned by default,\n * which is the same as the previous setting in echarts4 and suitable for the scenario\n * of dataZoom change.\n * If `transition` specified, only the specified props will be transitioned.\n * + For props in `shape` and `style`:\n * Only props specified in `transition` will be transitioned.\n * + Break:\n * Since ec5, do not make transition to shape by default, because it might result in\n * performance issue (especially `points` of polygon) and do not necessary in most cases.\n *\n * @return if `isMorphTo`, return `allPropsFinal`.\n */\n\n\nfunction updateElNormal( // Can be null/undefined\napi, el, // Whether be a morph target.\nisMorphTo, dataIndex, elOption, styleOpt, attachedTxInfo, seriesModel, isInit, isTextContent) {\n var transFromProps = {};\n var allPropsFinal = {};\n var elDisplayable = el.isGroup ? null : el; // If be \"morph to\", delay the `updateElNormal` when all of the els in\n // this data item processed. Because at that time we can get all of the\n // \"morph from\" and make correct separate/combine.\n\n !isMorphTo && prepareShapeOrExtraTransitionFrom('shape', el, null, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('shape', elOption, allPropsFinal);\n !isMorphTo && prepareShapeOrExtraTransitionFrom('extra', el, null, elOption, transFromProps, isInit);\n prepareShapeOrExtraAllPropsFinal('extra', elOption, allPropsFinal);\n !isMorphTo && prepareTransformTransitionFrom(el, null, elOption, transFromProps, isInit);\n prepareTransformAllPropsFinal(elOption, allPropsFinal);\n var txCfgOpt = attachedTxInfo && attachedTxInfo.normal.cfg;\n\n if (txCfgOpt) {\n // PENDING: whether use user object directly rather than clone?\n // TODO:5.0 textConfig transition animation?\n el.setTextConfig(txCfgOpt);\n }\n\n if (el.type === 'text' && styleOpt) {\n var textOptionStyle = styleOpt; // Compatible with ec4: if `textFill` or `textStroke` exists use them.\n\n hasOwn(textOptionStyle, 'textFill') && (textOptionStyle.fill = textOptionStyle.textFill);\n hasOwn(textOptionStyle, 'textStroke') && (textOptionStyle.stroke = textOptionStyle.textStroke);\n }\n\n if (styleOpt) {\n var decalPattern = void 0;\n var decalObj = isPath(el) ? styleOpt.decal : null;\n\n if (api && decalObj) {\n decalObj.dirty = true;\n decalPattern = createOrUpdatePatternFromDecal(decalObj, api);\n } // Always overwrite in case user specify this prop.\n\n\n styleOpt.__decalPattern = decalPattern;\n }\n\n !isMorphTo && prepareStyleTransitionFrom(el, null, elOption, styleOpt, transFromProps, isInit);\n\n if (elDisplayable) {\n hasOwn(elOption, 'invisible') && (elDisplayable.invisible = elOption.invisible);\n } // If `isMorphTo`, we should not update these props to el directly, otherwise,\n // when applying morph finally, the original prop are missing for making \"animation from\".\n\n\n if (!isMorphTo) {\n applyPropsFinal(el, allPropsFinal, styleOpt);\n applyTransitionFrom(el, dataIndex, elOption, seriesModel, transFromProps, isInit);\n } // Merge by default.\n\n\n hasOwn(elOption, 'silent') && (el.silent = elOption.silent);\n hasOwn(elOption, 'ignore') && (el.ignore = elOption.ignore);\n\n if (!isTextContent) {\n // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n // Update them only when user specified, otherwise, remain.\n hasOwn(elOption, 'info') && (inner(el).info = elOption.info);\n }\n\n styleOpt ? el.dirty() : el.markRedraw();\n return isMorphTo ? allPropsFinal : null;\n}\n\nfunction applyPropsFinal(el, // Can be null/undefined\nallPropsFinal, styleOpt) {\n var elDisplayable = el.isGroup ? null : el;\n\n if (elDisplayable && styleOpt) {\n var decalPattern = styleOpt.__decalPattern;\n var originalDecalObj = void 0;\n\n if (decalPattern) {\n originalDecalObj = styleOpt.decal;\n styleOpt.decal = decalPattern;\n } // PENDING: here the input style object is used directly.\n // Good for performance but bad for compatibility control.\n\n\n elDisplayable.useStyle(styleOpt);\n\n if (decalPattern) {\n styleOpt.decal = originalDecalObj;\n } // When style object changed, how to trade the existing animation?\n // It is probably conplicated and not needed to cover all the cases.\n // But still need consider the case:\n // (1) When using init animation on `style.opacity`, and before the animation\n // ended users triggers an update by mousewhell. At that time the init\n // animation should better be continued rather than terminated.\n // So after `useStyle` called, we should change the animation target manually\n // to continue the effect of the init animation.\n // (2) PENDING: If the previous animation targeted at a `val1`, and currently we need\n // to update the value to `val2` and no animation declared, should be terminate\n // the previous animation or just modify the target of the animation?\n // Therotically That will happen not only on `style` but also on `shape` and\n // `transfrom` props. But we haven't handle this case at present yet.\n // (3) PENDING: Is it proper to visit `animators` and `targetName`?\n\n\n var animators = elDisplayable.animators;\n\n for (var i = 0; i < animators.length; i++) {\n var animator = animators[i]; // targetName is the \"topKey\".\n\n if (animator.targetName === 'style') {\n animator.changeTarget(elDisplayable.style);\n }\n }\n } // Set el to the final state firstly.\n\n\n allPropsFinal && el.attr(allPropsFinal);\n}\n\nfunction applyTransitionFrom(el, dataIndex, elOption, seriesModel, // Can be null/undefined\ntransFromProps, isInit) {\n if (transFromProps) {\n // Do not use `el.updateDuringAnimation` here becuase `el.updateDuringAnimation` will\n // be called mutiple time in each animation frame. For example, if both \"transform\" props\n // and shape props and style props changed, it will generate three animator and called\n // one-by-one in each animation frame.\n // We use the during in `animateTo/From` params.\n var userDuring = elOption.during; // For simplicity, if during not specified, the previous during will not work any more.\n\n inner(el).userDuring = userDuring;\n var cfgDuringCall = userDuring ? bind(duringCall, {\n el: el,\n userDuring: userDuring\n }) : null;\n var cfg = {\n dataIndex: dataIndex,\n isFrom: true,\n during: cfgDuringCall\n };\n isInit ? graphicUtil.initProps(el, transFromProps, seriesModel, cfg) : graphicUtil.updateProps(el, transFromProps, seriesModel, cfg);\n }\n} // See [STRATEGY_TRANSITION]\n\n\nfunction prepareShapeOrExtraTransitionFrom(mainAttr, el, morphFromEl, elOption, transFromProps, isInit) {\n var attrOpt = elOption[mainAttr];\n\n if (!attrOpt) {\n return;\n }\n\n var elPropsInAttr = el[mainAttr];\n var transFromPropsInAttr;\n var enterFrom = attrOpt.enterFrom;\n\n if (isInit && enterFrom) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var enterFromKeys = keys(enterFrom);\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n // `enterFrom` props are not necessarily also declared in `shape`/`style`/...,\n // for example, `opacity` can only declared in `enterFrom` but not in `style`.\n var key = enterFromKeys[i]; // Do not clone, animator will perform that clone.\n\n transFromPropsInAttr[key] = enterFrom[key];\n }\n }\n\n if (!isInit && elPropsInAttr // Just ignore shape animation in morphing.\n && !(morphFromEl != null && mainAttr === 'shape')) {\n if (attrOpt.transition) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var transitionKeys = normalizeToArray(attrOpt.transition);\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n var elVal = elPropsInAttr[key];\n\n if (process.env.NODE_ENV !== 'production') {\n checkNonStyleTansitionRefer(key, attrOpt[key], elVal);\n } // Do not clone, see `checkNonStyleTansitionRefer`.\n\n\n transFromPropsInAttr[key] = elVal;\n }\n } else if (indexOf(elOption.transition, mainAttr) >= 0) {\n !transFromPropsInAttr && (transFromPropsInAttr = transFromProps[mainAttr] = {});\n var elPropsInAttrKeys = keys(elPropsInAttr);\n\n for (var i = 0; i < elPropsInAttrKeys.length; i++) {\n var key = elPropsInAttrKeys[i];\n var elVal = elPropsInAttr[key];\n\n if (isNonStyleTransitionEnabled(attrOpt[key], elVal)) {\n transFromPropsInAttr[key] = elVal;\n }\n }\n }\n }\n\n var leaveTo = attrOpt.leaveTo;\n\n if (leaveTo) {\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToPropsInAttr = leaveToProps[mainAttr] || (leaveToProps[mainAttr] = {});\n var leaveToKeys = keys(leaveTo);\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n leaveToPropsInAttr[key] = leaveTo[key];\n }\n }\n}\n\nfunction prepareShapeOrExtraAllPropsFinal(mainAttr, elOption, allProps) {\n var attrOpt = elOption[mainAttr];\n\n if (!attrOpt) {\n return;\n }\n\n var allPropsInAttr = allProps[mainAttr] = {};\n var keysInAttr = keys(attrOpt);\n\n for (var i = 0; i < keysInAttr.length; i++) {\n var key = keysInAttr[i]; // To avoid share one object with different element, and\n // to avoid user modify the object inexpectedly, have to clone.\n\n allPropsInAttr[key] = cloneValue(attrOpt[key]);\n }\n} // See [STRATEGY_TRANSITION].\n\n\nfunction prepareTransformTransitionFrom(el, morphFromEl, elOption, transFromProps, isInit) {\n var enterFrom = elOption.enterFrom;\n\n if (isInit && enterFrom) {\n var enterFromKeys = keys(enterFrom);\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n var key = enterFromKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.enterFrom');\n } // Do not clone, animator will perform that clone.\n\n\n transFromProps[key] = enterFrom[key];\n }\n }\n\n if (!isInit) {\n // If morphing, force transition all transform props.\n // otherwise might have incorrect morphing animation.\n if (morphFromEl) {\n var fromTransformable = calcOldElLocalTransformBasedOnNewElParent(morphFromEl, el);\n setTransformPropToTransitionFrom(transFromProps, 'x', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'y', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'scaleX', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'scaleY', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'originX', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'originY', fromTransformable);\n setTransformPropToTransitionFrom(transFromProps, 'rotation', fromTransformable);\n } else if (elOption.transition) {\n var transitionKeys = normalizeToArray(elOption.transition);\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n\n if (key === 'style' || key === 'shape' || key === 'extra') {\n continue;\n }\n\n var elVal = el[key];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.transition');\n checkNonStyleTansitionRefer(key, elOption[key], elVal);\n } // Do not clone, see `checkNonStyleTansitionRefer`.\n\n\n transFromProps[key] = elVal;\n }\n } // This default transition see [STRATEGY_TRANSITION]\n else {\n setTransformPropToTransitionFrom(transFromProps, 'x', el);\n setTransformPropToTransitionFrom(transFromProps, 'y', el);\n }\n }\n\n var leaveTo = elOption.leaveTo;\n\n if (leaveTo) {\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToKeys = keys(leaveTo);\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer(key, 'el.leaveTo');\n }\n\n leaveToProps[key] = leaveTo[key];\n }\n }\n}\n\nfunction prepareTransformAllPropsFinal(elOption, allProps) {\n setLagecyTransformProp(elOption, allProps, 'position');\n setLagecyTransformProp(elOption, allProps, 'scale');\n setLagecyTransformProp(elOption, allProps, 'origin');\n setTransformProp(elOption, allProps, 'x');\n setTransformProp(elOption, allProps, 'y');\n setTransformProp(elOption, allProps, 'scaleX');\n setTransformProp(elOption, allProps, 'scaleY');\n setTransformProp(elOption, allProps, 'originX');\n setTransformProp(elOption, allProps, 'originY');\n setTransformProp(elOption, allProps, 'rotation');\n} // See [STRATEGY_TRANSITION].\n\n\nfunction prepareStyleTransitionFrom(el, morphFromEl, elOption, styleOpt, transFromProps, isInit) {\n if (!styleOpt) {\n return;\n } // At present in \"many-to-one\"/\"one-to-many\" case, to not support \"many\" have\n // different styles and make style transitions. That might be a rare case.\n\n\n var fromEl = morphFromEl || el;\n var fromElStyle = fromEl.style;\n var transFromStyleProps;\n var enterFrom = styleOpt.enterFrom;\n\n if (isInit && enterFrom) {\n var enterFromKeys = keys(enterFrom);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n\n for (var i = 0; i < enterFromKeys.length; i++) {\n var key = enterFromKeys[i]; // Do not clone, animator will perform that clone.\n\n transFromStyleProps[key] = enterFrom[key];\n }\n }\n\n if (!isInit && fromElStyle) {\n if (styleOpt.transition) {\n var transitionKeys = normalizeToArray(styleOpt.transition);\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n\n for (var i = 0; i < transitionKeys.length; i++) {\n var key = transitionKeys[i];\n var elVal = fromElStyle[key]; // Do not clone, see `checkNonStyleTansitionRefer`.\n\n transFromStyleProps[key] = elVal;\n }\n } else if (el.getAnimationStyleProps && indexOf(elOption.transition, 'style') >= 0) {\n var animationProps = el.getAnimationStyleProps();\n var animationStyleProps = animationProps ? animationProps.style : null;\n\n if (animationStyleProps) {\n !transFromStyleProps && (transFromStyleProps = transFromProps.style = {});\n var styleKeys = keys(styleOpt);\n\n for (var i = 0; i < styleKeys.length; i++) {\n var key = styleKeys[i];\n\n if (animationStyleProps[key]) {\n var elVal = fromElStyle[key];\n transFromStyleProps[key] = elVal;\n }\n }\n }\n }\n }\n\n var leaveTo = styleOpt.leaveTo;\n\n if (leaveTo) {\n var leaveToKeys = keys(leaveTo);\n var leaveToProps = getOrCreateLeaveToPropsFromEl(el);\n var leaveToStyleProps = leaveToProps.style || (leaveToProps.style = {});\n\n for (var i = 0; i < leaveToKeys.length; i++) {\n var key = leaveToKeys[i];\n leaveToStyleProps[key] = leaveTo[key];\n }\n }\n}\n/**\n * If make \"transform\"(x/y/scaleX/scaleY/orient/originX/originY) transition between\n * two path elements that have different hierarchy, before we retrieve the \"from\" props,\n * we have to calculate the local transition of the \"oldPath\" based on the parent of\n * the \"newPath\".\n * At present, the case only happend in \"morphing\". Without morphing, the transform\n * transition are all between elements in the same hierarchy, where this kind of process\n * is not needed.\n *\n * [CAVEAT]:\n * This method makes sense only if: (very tricky)\n * (1) \"newEl\" has been added to its final parent.\n * (2) Local transform props of \"newPath.parent\" are not at their final value but already\n * have been at the \"from value\".\n * This is currently ensured by:\n * (2.1) \"graphicUtil.animationFrom\", which will set the element to the \"from value\"\n * immediately.\n * (2.2) \"morph\" option is not allowed to be set on Group, so all of the groups have\n * been finished their \"updateElNormal\" when calling this method in morphing process.\n */\n\n\nfunction calcOldElLocalTransformBasedOnNewElParent(oldEl, newEl) {\n if (!oldEl || oldEl === newEl || oldEl.parent === newEl.parent) {\n return oldEl;\n } // Not sure oldEl is rendered (may have \"lazyUpdate\"),\n // so always call `getComputedTransform`.\n\n\n var tmpM = tmpTransformable.transform || (tmpTransformable.transform = matrix.identity([]));\n var oldGlobalTransform = oldEl.getComputedTransform();\n oldGlobalTransform ? matrix.copy(tmpM, oldGlobalTransform) : matrix.identity(tmpM);\n var newParent = newEl.parent;\n\n if (newParent) {\n newParent.getComputedTransform();\n }\n\n tmpTransformable.originX = oldEl.originX;\n tmpTransformable.originY = oldEl.originY;\n tmpTransformable.parent = newParent;\n tmpTransformable.decomposeTransform();\n return tmpTransformable;\n}\n\nvar checkNonStyleTansitionRefer;\n\nif (process.env.NODE_ENV !== 'production') {\n checkNonStyleTansitionRefer = function (propName, optVal, elVal) {\n if (!isArrayLike(optVal)) {\n assert(optVal != null && isFinite(optVal), 'Prop `' + propName + '` must refer to a finite number or ArrayLike for transition.');\n } else {\n // Try not to copy array for performance, but if user use the same object in different\n // call of `renderItem`, it will casue animation transition fail.\n assert(optVal !== elVal, 'Prop `' + propName + '` must use different Array object each time for transition.');\n }\n };\n}\n\nfunction isNonStyleTransitionEnabled(optVal, elVal) {\n // The same as `checkNonStyleTansitionRefer`.\n return !isArrayLike(optVal) ? optVal != null && isFinite(optVal) : optVal !== elVal;\n}\n\nvar checkTransformPropRefer;\n\nif (process.env.NODE_ENV !== 'production') {\n checkTransformPropRefer = function (key, usedIn) {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Prop `' + key + '` is not a permitted in `' + usedIn + '`. ' + 'Only `' + keys(TRANSFORM_PROPS).join('`, `') + '` are permitted.');\n };\n}\n\nfunction getOrCreateLeaveToPropsFromEl(el) {\n var innerEl = inner(el);\n return innerEl.leaveToProps || (innerEl.leaveToProps = {});\n} // Use it to avoid it be exposed to user.\n\n\nvar tmpDuringScope = {};\nvar customDuringAPI = {\n // Usually other props do not need to be changed in animation during.\n setTransform: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `setTransform`.');\n }\n\n tmpDuringScope.el[key] = val;\n return this;\n },\n getTransform: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assert(hasOwn(TRANSFORM_PROPS, key), 'Only ' + transformPropNamesStr + ' available in `getTransform`.');\n }\n\n return tmpDuringScope.el[key];\n },\n setShape: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var shape = tmpDuringScope.el.shape || (tmpDuringScope.el.shape = {});\n shape[key] = val;\n tmpDuringScope.isShapeDirty = true;\n return this;\n },\n getShape: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var shape = tmpDuringScope.el.shape;\n\n if (shape) {\n return shape[key];\n }\n },\n setStyle: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var style = tmpDuringScope.el.style;\n\n if (style) {\n if (process.env.NODE_ENV !== 'production') {\n if (eqNaN(val)) {\n warn('style.' + key + ' must not be assigned with NaN.');\n }\n }\n\n style[key] = val;\n tmpDuringScope.isStyleDirty = true;\n }\n\n return this;\n },\n getStyle: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var style = tmpDuringScope.el.style;\n\n if (style) {\n return style[key];\n }\n },\n setExtra: function (key, val) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var extra = tmpDuringScope.el.extra || (tmpDuringScope.el.extra = {});\n extra[key] = val;\n return this;\n },\n getExtra: function (key) {\n if (process.env.NODE_ENV !== 'production') {\n assertNotReserved(key);\n }\n\n var extra = tmpDuringScope.el.extra;\n\n if (extra) {\n return extra[key];\n }\n }\n};\n\nfunction assertNotReserved(key) {\n if (process.env.NODE_ENV !== 'production') {\n if (key === 'transition' || key === 'enterFrom' || key === 'leaveTo') {\n throw new Error('key must not be \"' + key + '\"');\n }\n }\n}\n\nfunction duringCall() {\n // Do not provide \"percent\" until some requirements come.\n // Because consider thies case:\n // enterFrom: {x: 100, y: 30}, transition: 'x'.\n // And enter duration is different from update duration.\n // Thus it might be confused about the meaning of \"percent\" in during callback.\n var scope = this;\n var el = scope.el;\n\n if (!el) {\n return;\n } // If el is remove from zr by reason like legend, during still need to called,\n // becuase el will be added back to zr and the prop value should not be incorrect.\n\n\n var newstUserDuring = inner(el).userDuring;\n var scopeUserDuring = scope.userDuring; // Ensured a during is only called once in each animation frame.\n // If a during is called multiple times in one frame, maybe some users' calulation logic\n // might be wrong (not sure whether this usage exists).\n // The case of a during might be called twice can be: by default there is a animator for\n // 'x', 'y' when init. Before the init animation finished, call `setOption` to start\n // another animators for 'style'/'shape'/'extra'.\n\n if (newstUserDuring !== scopeUserDuring) {\n // release\n scope.el = scope.userDuring = null;\n return;\n }\n\n tmpDuringScope.el = el;\n tmpDuringScope.isShapeDirty = false;\n tmpDuringScope.isStyleDirty = false; // Give no `this` to user in \"during\" calling.\n\n scopeUserDuring(customDuringAPI);\n\n if (tmpDuringScope.isShapeDirty && el.dirtyShape) {\n el.dirtyShape();\n }\n\n if (tmpDuringScope.isStyleDirty && el.dirtyStyle) {\n el.dirtyStyle();\n } // markRedraw() will be called by default in during.\n // FIXME `this.markRedraw();` directly ?\n // FIXME: if in future meet the case that some prop will be both modified in `during` and `state`,\n // consider the issue that the prop might be incorrect when return to \"normal\" state.\n\n}\n\nfunction updateElOnState(state, el, elStateOpt, styleOpt, attachedTxInfo, isRoot, isTextContent) {\n var elDisplayable = el.isGroup ? null : el;\n var txCfgOpt = attachedTxInfo && attachedTxInfo[state].cfg; // PENDING:5.0 support customize scale change and transition animation?\n\n if (elDisplayable) {\n // By default support auto lift color when hover whether `emphasis` specified.\n var stateObj = elDisplayable.ensureState(state);\n\n if (styleOpt === false) {\n var existingEmphasisState = elDisplayable.getState(state);\n\n if (existingEmphasisState) {\n existingEmphasisState.style = null;\n }\n } else {\n // style is needed to enable defaut emphasis.\n stateObj.style = styleOpt || null;\n } // If `elOption.styleEmphasis` or `elOption.emphasis.style` is `false`,\n // remove hover style.\n // If `elOption.textConfig` or `elOption.emphasis.textConfig` is null/undefined, it does not\n // make sense. So for simplicity, we do not ditinguish `hasOwnProperty` and null/undefined.\n\n\n if (txCfgOpt) {\n stateObj.textConfig = txCfgOpt;\n }\n\n setDefaultStateProxy(elDisplayable);\n }\n}\n\nfunction updateZ(el, elOption, seriesModel, attachedTxInfo) {\n // Group not support textContent and not support z yet.\n if (el.isGroup) {\n return;\n }\n\n var elDisplayable = el;\n var currentZ = seriesModel.currentZ;\n var currentZLevel = seriesModel.currentZLevel; // Always erase.\n\n elDisplayable.z = currentZ;\n elDisplayable.zlevel = currentZLevel; // z2 must not be null/undefined, otherwise sort error may occur.\n\n var optZ2 = elOption.z2;\n optZ2 != null && (elDisplayable.z2 = optZ2 || 0);\n\n for (var i = 0; i < STATES.length; i++) {\n updateZForEachState(elDisplayable, elOption, STATES[i]);\n }\n}\n\nfunction updateZForEachState(elDisplayable, elOption, state) {\n var isNormal = state === NORMAL;\n var elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state);\n var optZ2 = elStateOpt ? elStateOpt.z2 : null;\n var stateObj;\n\n if (optZ2 != null) {\n // Do not `ensureState` until required.\n stateObj = isNormal ? elDisplayable : elDisplayable.ensureState(state);\n stateObj.z2 = optZ2 || 0;\n }\n}\n\nfunction setLagecyTransformProp(elOption, targetProps, legacyName, fromTransformable // If provided, retrieve from the element.\n) {\n var legacyArr = elOption[legacyName];\n var xyName = LEGACY_TRANSFORM_PROPS[legacyName];\n\n if (legacyArr) {\n if (fromTransformable) {\n targetProps[xyName[0]] = fromTransformable[xyName[0]];\n targetProps[xyName[1]] = fromTransformable[xyName[1]];\n } else {\n targetProps[xyName[0]] = legacyArr[0];\n targetProps[xyName[1]] = legacyArr[1];\n }\n }\n}\n\nfunction setTransformProp(elOption, allProps, name, fromTransformable // If provided, retrieve from the element.\n) {\n if (elOption[name] != null) {\n allProps[name] = fromTransformable ? fromTransformable[name] : elOption[name];\n }\n}\n\nfunction setTransformPropToTransitionFrom(transitionFrom, name, fromTransformable // If provided, retrieve from the element.\n) {\n if (fromTransformable) {\n transitionFrom[name] = fromTransformable[name];\n }\n}\n\nfunction makeRenderItem(customSeries, data, ecModel, api) {\n var renderItem = customSeries.get('renderItem');\n var coordSys = customSeries.coordinateSystem;\n var prepareResult = {};\n\n if (coordSys) {\n if (process.env.NODE_ENV !== 'production') {\n assert(renderItem, 'series.render is required.');\n assert(coordSys.prepareCustoms || prepareCustoms[coordSys.type], 'This coordSys does not support custom series.');\n } // `coordSys.prepareCustoms` is used for external coord sys like bmap.\n\n\n prepareResult = coordSys.prepareCustoms ? coordSys.prepareCustoms(coordSys) : prepareCustoms[coordSys.type](coordSys);\n }\n\n var userAPI = defaults({\n getWidth: api.getWidth,\n getHeight: api.getHeight,\n getZr: api.getZr,\n getDevicePixelRatio: api.getDevicePixelRatio,\n value: value,\n style: style,\n ordinalRawValue: ordinalRawValue,\n styleEmphasis: styleEmphasis,\n visual: visual,\n barLayout: barLayout,\n currentSeriesIndices: currentSeriesIndices,\n font: font\n }, prepareResult.api || {});\n var userParams = {\n // The life cycle of context: current round of rendering.\n // The global life cycle is probably not necessary, because\n // user can store global status by themselves.\n context: {},\n seriesId: customSeries.id,\n seriesName: customSeries.name,\n seriesIndex: customSeries.seriesIndex,\n coordSys: prepareResult.coordSys,\n dataInsideLength: data.count(),\n encode: wrapEncodeDef(customSeries.getData())\n }; // If someday intending to refactor them to a class, should consider do not\n // break change: currently these attribute member are encapsulated in a closure\n // so that do not need to force user to call these method with a scope.\n // Do not support call `api` asynchronously without dataIndexInside input.\n\n var currDataIndexInside;\n var currItemModel;\n var currItemStyleModels = {};\n var currLabelModels = {};\n var seriesItemStyleModels = {};\n var seriesLabelModels = {};\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n seriesItemStyleModels[stateName] = customSeries.getModel(PATH_ITEM_STYLE[stateName]);\n seriesLabelModels[stateName] = customSeries.getModel(PATH_LABEL[stateName]);\n }\n\n function getItemModel(dataIndexInside) {\n return dataIndexInside === currDataIndexInside ? currItemModel || (currItemModel = data.getItemModel(dataIndexInside)) : data.getItemModel(dataIndexInside);\n }\n\n function getItemStyleModel(dataIndexInside, state) {\n return !data.hasItemOption ? seriesItemStyleModels[state] : dataIndexInside === currDataIndexInside ? currItemStyleModels[state] || (currItemStyleModels[state] = getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state])) : getItemModel(dataIndexInside).getModel(PATH_ITEM_STYLE[state]);\n }\n\n function getLabelModel(dataIndexInside, state) {\n return !data.hasItemOption ? seriesLabelModels[state] : dataIndexInside === currDataIndexInside ? currLabelModels[state] || (currLabelModels[state] = getItemModel(dataIndexInside).getModel(PATH_LABEL[state])) : getItemModel(dataIndexInside).getModel(PATH_LABEL[state]);\n }\n\n return function (dataIndexInside, payload) {\n currDataIndexInside = dataIndexInside;\n currItemModel = null;\n currItemStyleModels = {};\n currLabelModels = {};\n return renderItem && renderItem(defaults({\n dataIndexInside: dataIndexInside,\n dataIndex: data.getRawIndex(dataIndexInside),\n // Can be used for optimization when zoom or roam.\n actionType: payload ? payload.type : null\n }, userParams), userAPI);\n };\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n function value(dim, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n return data.get(data.getDimension(dim || 0), dataIndexInside);\n }\n /**\n * @public\n * @param dim by default 0.\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function ordinalRawValue(dim, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var dimInfo = data.getDimensionInfo(dim || 0);\n\n if (!dimInfo) {\n return;\n }\n\n var val = data.get(dimInfo.name, dataIndexInside);\n var ordinalMeta = dimInfo && dimInfo.ordinalMeta;\n return ordinalMeta ? ordinalMeta.categories[val] : val;\n }\n /**\n * @deprecated The orgininal intention of `api.style` is enable to set itemStyle\n * like other series. But it not necessary and not easy to give a strict definition\n * of what it return. And since echarts5 it needs to be make compat work. So\n * deprecates it since echarts5.\n *\n * By default, `visual` is applied to style (to support visualMap).\n * `visual.color` is applied at `fill`. If user want apply visual.color on `stroke`,\n * it can be implemented as:\n * `api.style({stroke: api.visual('color'), fill: null})`;\n *\n * [Compat]: since ec5, RectText has been separated from its hosts el.\n * so `api.style()` will only return the style from `itemStyle` but not handle `label`\n * any more. But `series.label` config is never published in doc.\n * We still compat it in `api.style()`. But not encourage to use it and will still not\n * to pulish it to doc.\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function style(userProps, dataIndexInside) {\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecated('api.style', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var style = data.getItemVisual(dataIndexInside, 'style');\n var visualColor = style && style.fill;\n var opacity = style && style.opacity;\n var itemStyle = getItemStyleModel(dataIndexInside, NORMAL).getItemStyle();\n visualColor != null && (itemStyle.fill = visualColor);\n opacity != null && (itemStyle.opacity = opacity);\n var opt = {\n inheritColor: isString(visualColor) ? visualColor : '#000'\n };\n var labelModel = getLabelModel(dataIndexInside, NORMAL); // Now that the feture of \"auto adjust text fill/stroke\" has been migrated to zrender\n // since ec5, we should set `isAttached` as `false` here and make compat in\n // `convertToEC4StyleForCustomSerise`.\n\n var textStyle = labelStyleHelper.createTextStyle(labelModel, null, opt, false, true);\n textStyle.text = labelModel.getShallow('show') ? retrieve2(customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;\n var textConfig = labelStyleHelper.createTextConfig(labelModel, opt, false);\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n userProps && applyUserPropsAfter(itemStyle, userProps);\n itemStyle.legacy = true;\n return itemStyle;\n }\n /**\n * @deprecated The reason see `api.style()`\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function styleEmphasis(userProps, dataIndexInside) {\n if (process.env.NODE_ENV !== 'production') {\n warnDeprecated('api.styleEmphasis', 'Please write literal style directly instead.');\n }\n\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n var itemStyle = getItemStyleModel(dataIndexInside, EMPHASIS).getItemStyle();\n var labelModel = getLabelModel(dataIndexInside, EMPHASIS);\n var textStyle = labelStyleHelper.createTextStyle(labelModel, null, null, true, true);\n textStyle.text = labelModel.getShallow('show') ? retrieve3(customSeries.getFormattedLabel(dataIndexInside, EMPHASIS), customSeries.getFormattedLabel(dataIndexInside, NORMAL), getDefaultLabel(data, dataIndexInside)) : null;\n var textConfig = labelStyleHelper.createTextConfig(labelModel, null, true);\n preFetchFromExtra(userProps, itemStyle);\n itemStyle = convertToEC4StyleForCustomSerise(itemStyle, textStyle, textConfig);\n userProps && applyUserPropsAfter(itemStyle, userProps);\n itemStyle.legacy = true;\n return itemStyle;\n }\n\n function applyUserPropsAfter(itemStyle, extra) {\n for (var key in extra) {\n if (hasOwn(extra, key)) {\n itemStyle[key] = extra[key];\n }\n }\n }\n\n function preFetchFromExtra(extra, itemStyle) {\n // A trick to retrieve those props firstly, which are used to\n // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.\n // (It's not reasonable but only for a degree of compat)\n if (extra) {\n extra.textFill && (itemStyle.textFill = extra.textFill);\n extra.textPosition && (itemStyle.textPosition = extra.textPosition);\n }\n }\n /**\n * @public\n * @param dataIndexInside by default `currDataIndexInside`.\n */\n\n\n function visual(visualType, dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (hasOwn(STYLE_VISUAL_TYPE, visualType)) {\n var style_1 = data.getItemVisual(dataIndexInside, 'style');\n return style_1 ? style_1[STYLE_VISUAL_TYPE[visualType]] : null;\n } // Only support these visuals. Other visual might be inner tricky\n // for performance (like `style`), do not expose to users.\n\n\n if (hasOwn(NON_STYLE_VISUAL_PROPS, visualType)) {\n return data.getItemVisual(dataIndexInside, visualType);\n }\n }\n /**\n * @public\n * @return If not support, return undefined.\n */\n\n\n function barLayout(opt) {\n if (coordSys.type === 'cartesian2d') {\n var baseAxis = coordSys.getBaseAxis();\n return getLayoutOnAxis(defaults({\n axis: baseAxis\n }, opt));\n }\n }\n /**\n * @public\n */\n\n\n function currentSeriesIndices() {\n return ecModel.getCurrentSeriesIndices();\n }\n /**\n * @public\n * @return font string\n */\n\n\n function font(opt) {\n return labelStyleHelper.getFont(opt, ecModel);\n }\n}\n\nfunction wrapEncodeDef(data) {\n var encodeDef = {};\n each(data.dimensions, function (dimName, dataDimIndex) {\n var dimInfo = data.getDimensionInfo(dimName);\n\n if (!dimInfo.isExtraCoord) {\n var coordDim = dimInfo.coordDim;\n var dataDims = encodeDef[coordDim] = encodeDef[coordDim] || [];\n dataDims[dimInfo.coordDimIndex] = dataDimIndex;\n }\n });\n return encodeDef;\n}\n\nfunction createOrUpdateItem(api, el, dataIndex, elOption, seriesModel, group, data, morphPreparation) {\n // [Rule]\n // If `renderItem` returns `null`/`undefined`/`false`, remove the previous el if existing.\n // (It seems that violate the \"merge\" principle, but most of users probably intuitively\n // regard \"return;\" as \"show nothing element whatever\", so make a exception to meet the\n // most cases.)\n // The rule or \"merge\" see [STRATEGY_MERGE].\n // If `elOption` is `null`/`undefined`/`false` (when `renderItem` returns nothing).\n if (!elOption) {\n removeElementDirectly(el, group);\n return;\n }\n\n el = doCreateOrUpdateEl(api, el, dataIndex, elOption, seriesModel, group, true, morphPreparation);\n el && data.setItemGraphicEl(dataIndex, el);\n el && enableHoverEmphasis(el, elOption.focus, elOption.blurScope);\n return el;\n}\n\nfunction doCreateOrUpdateEl(api, el, dataIndex, elOption, seriesModel, group, isRoot, morphPreparation) {\n if (process.env.NODE_ENV !== 'production') {\n assert(elOption, 'should not have an null/undefined element setting');\n }\n\n var toBeReplacedIdx = -1;\n\n if (el && doesElNeedRecreate(el, elOption) // || (\n // // PENDING: even in one-to-one mapping case, if el is marked as morph,\n // // do not sure whether the el will be mapped to another el with different\n // // hierarchy in Group tree. So always recreate el rather than reuse the el.\n // morphPreparation && morphPreparation.isOneToOneFrom(el)\n // )\n ) {\n // Should keep at the original index, otherwise \"merge by index\" will be incorrect.\n toBeReplacedIdx = group.childrenRef().indexOf(el);\n el = null;\n }\n\n var elIsNewCreated = !el;\n\n if (!el) {\n el = createEl(elOption);\n } else {\n // FIMXE:NEXT unified clearState?\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n el.clearStates();\n }\n\n var canMorph = inner(el).canMorph = elOption.morph && isPath(el);\n var thisElIsMorphTo = canMorph && morphPreparation && morphPreparation.hasFrom(); // Use update animation when morph is enabled.\n\n var isInit = elIsNewCreated && !thisElIsMorphTo;\n attachedTxInfoTmp.normal.cfg = attachedTxInfoTmp.normal.conOpt = attachedTxInfoTmp.emphasis.cfg = attachedTxInfoTmp.emphasis.conOpt = attachedTxInfoTmp.blur.cfg = attachedTxInfoTmp.blur.conOpt = attachedTxInfoTmp.select.cfg = attachedTxInfoTmp.select.conOpt = null;\n attachedTxInfoTmp.isLegacy = false;\n doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfoTmp);\n doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit);\n var pendingAllPropsFinal = updateElNormal(api, el, thisElIsMorphTo, dataIndex, elOption, elOption.style, attachedTxInfoTmp, seriesModel, isInit, false);\n\n if (thisElIsMorphTo) {\n morphPreparation.addTo(el, elOption, dataIndex, pendingAllPropsFinal);\n }\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n\n if (stateName !== NORMAL) {\n var otherStateOpt = retrieveStateOption(elOption, stateName);\n var otherStyleOpt = retrieveStyleOptionOnState(elOption, otherStateOpt, stateName);\n updateElOnState(stateName, el, otherStateOpt, otherStyleOpt, attachedTxInfoTmp, isRoot, false);\n }\n }\n\n updateZ(el, elOption, seriesModel, attachedTxInfoTmp);\n\n if (elOption.type === 'group') {\n mergeChildren(api, el, dataIndex, elOption, seriesModel, morphPreparation);\n }\n\n if (toBeReplacedIdx >= 0) {\n group.replaceAt(el, toBeReplacedIdx);\n } else {\n group.add(el);\n }\n\n return el;\n} // `el` must not be null/undefined.\n\n\nfunction doesElNeedRecreate(el, elOption) {\n var elInner = inner(el);\n var elOptionType = elOption.type;\n var elOptionShape = elOption.shape;\n var elOptionStyle = elOption.style;\n return (// If `elOptionType` is `null`, follow the merge principle.\n elOptionType != null && elOptionType !== elInner.customGraphicType || elOptionType === 'path' && hasOwnPathData(elOptionShape) && getPathData(elOptionShape) !== elInner.customPathData || elOptionType === 'image' && hasOwn(elOptionStyle, 'image') && elOptionStyle.image !== elInner.customImagePath // // FIXME test and remove this restriction?\n // || (elOptionType === 'text'\n // && hasOwn(elOptionStyle, 'text')\n // && (elOptionStyle as TextStyleProps).text !== elInner.customText\n // )\n\n );\n}\n\nfunction doCreateOrUpdateClipPath(el, dataIndex, elOption, seriesModel, isInit) {\n // Based on the \"merge\" principle, if no clipPath provided,\n // do nothing. The exists clip will be totally removed only if\n // `el.clipPath` is `false`. Otherwise it will be merged/replaced.\n var clipPathOpt = elOption.clipPath;\n\n if (clipPathOpt === false) {\n if (el && el.getClipPath()) {\n el.removeClipPath();\n }\n } else if (clipPathOpt) {\n var clipPath = el.getClipPath();\n\n if (clipPath && doesElNeedRecreate(clipPath, clipPathOpt)) {\n clipPath = null;\n }\n\n if (!clipPath) {\n clipPath = createEl(clipPathOpt);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(clipPath instanceof graphicUtil.Path, 'Only any type of `path` can be used in `clipPath`, rather than ' + clipPath.type + '.');\n }\n\n el.setClipPath(clipPath);\n }\n\n updateElNormal(null, clipPath, null, dataIndex, clipPathOpt, null, null, seriesModel, isInit, false);\n } // If not define `clipPath` in option, do nothing unnecessary.\n\n}\n\nfunction doCreateOrUpdateAttachedTx(el, dataIndex, elOption, seriesModel, isInit, attachedTxInfo) {\n // group do not support textContent temporarily untill necessary.\n if (el.isGroup) {\n return;\n } // Normal must be called before emphasis, for `isLegacy` detection.\n\n\n processTxInfo(elOption, null, attachedTxInfo);\n processTxInfo(elOption, EMPHASIS, attachedTxInfo); // If `elOption.textConfig` or `elOption.textContent` is null/undefined, it does not make sence.\n // So for simplicity, if \"elOption hasOwnProperty of them but be null/undefined\", we do not\n // trade them as set to null to el.\n // Especially:\n // `elOption.textContent: false` means remove textContent.\n // `elOption.textContent.emphasis.style: false` means remove the style from emphasis state.\n\n var txConOptNormal = attachedTxInfo.normal.conOpt;\n var txConOptEmphasis = attachedTxInfo.emphasis.conOpt;\n var txConOptBlur = attachedTxInfo.blur.conOpt;\n var txConOptSelect = attachedTxInfo.select.conOpt;\n\n if (txConOptNormal != null || txConOptEmphasis != null || txConOptSelect != null || txConOptBlur != null) {\n var textContent = el.getTextContent();\n\n if (txConOptNormal === false) {\n textContent && el.removeTextContent();\n } else {\n txConOptNormal = attachedTxInfo.normal.conOpt = txConOptNormal || {\n type: 'text'\n };\n\n if (!textContent) {\n textContent = createEl(txConOptNormal);\n el.setTextContent(textContent);\n } else {\n // If in some case the performance issue arised, consider\n // do not clearState but update cached normal state directly.\n textContent.clearStates();\n }\n\n var txConStlOptNormal = txConOptNormal && txConOptNormal.style;\n updateElNormal(null, textContent, null, dataIndex, txConOptNormal, txConStlOptNormal, null, seriesModel, isInit, true);\n\n for (var i = 0; i < STATES.length; i++) {\n var stateName = STATES[i];\n\n if (stateName !== NORMAL) {\n var txConOptOtherState = attachedTxInfo[stateName].conOpt;\n updateElOnState(stateName, textContent, txConOptOtherState, retrieveStyleOptionOnState(txConOptNormal, txConOptOtherState, stateName), null, false, true);\n }\n }\n\n txConStlOptNormal ? textContent.dirty() : textContent.markRedraw();\n }\n }\n}\n\nfunction processTxInfo(elOption, state, attachedTxInfo) {\n var stateOpt = !state ? elOption : retrieveStateOption(elOption, state);\n var styleOpt = !state ? elOption.style : retrieveStyleOptionOnState(elOption, stateOpt, EMPHASIS);\n var elType = elOption.type;\n var txCfg = stateOpt ? stateOpt.textConfig : null;\n var txConOptNormal = elOption.textContent;\n var txConOpt = !txConOptNormal ? null : !state ? txConOptNormal : retrieveStateOption(txConOptNormal, state);\n\n if (styleOpt && ( // Because emphasis style has little info to detect legacy,\n // if normal is legacy, emphasis is trade as legacy.\n attachedTxInfo.isLegacy || isEC4CompatibleStyle(styleOpt, elType, !!txCfg, !!txConOpt))) {\n attachedTxInfo.isLegacy = true;\n var convertResult = convertFromEC4CompatibleStyle(styleOpt, elType, !state); // Explicitly specified `textConfig` and `textContent` has higher priority than\n // the ones generated by legacy style. Otherwise if users use them and `api.style`\n // at the same time, they not both work and hardly to known why.\n\n if (!txCfg && convertResult.textConfig) {\n txCfg = convertResult.textConfig;\n }\n\n if (!txConOpt && convertResult.textContent) {\n txConOpt = convertResult.textContent;\n }\n }\n\n if (!state && txConOpt) {\n var txConOptNormal_1 = txConOpt; // `textContent: {type: 'text'}`, the \"type\" is easy to be missing. So we tolerate it.\n\n !txConOptNormal_1.type && (txConOptNormal_1.type = 'text');\n\n if (process.env.NODE_ENV !== 'production') {\n // Do not tolerate incorret type for forward compat.\n txConOptNormal_1.type !== 'text' && assert(txConOptNormal_1.type === 'text', 'textContent.type must be \"text\"');\n }\n }\n\n var info = !state ? attachedTxInfo.normal : attachedTxInfo[state];\n info.cfg = txCfg;\n info.conOpt = txConOpt;\n}\n\nfunction retrieveStateOption(elOption, state) {\n return !state ? elOption : elOption ? elOption[state] : null;\n}\n\nfunction retrieveStyleOptionOnState(stateOptionNormal, stateOption, state) {\n var style = stateOption && stateOption.style;\n\n if (style == null && state === EMPHASIS && stateOptionNormal) {\n style = stateOptionNormal.styleEmphasis;\n }\n\n return style;\n} // Usage:\n// (1) By default, `elOption.$mergeChildren` is `'byIndex'`, which indicates that\n// the existing children will not be removed, and enables the feature that\n// update some of the props of some of the children simply by construct\n// the returned children of `renderItem` like:\n// `var children = group.children = []; children[3] = {opacity: 0.5};`\n// (2) If `elOption.$mergeChildren` is `'byName'`, add/update/remove children\n// by child.name. But that might be lower performance.\n// (3) If `elOption.$mergeChildren` is `false`, the existing children will be\n// replaced totally.\n// (4) If `!elOption.children`, following the \"merge\" principle, nothing will happen.\n//\n// For implementation simpleness, do not provide a direct way to remove sinlge\n// child (otherwise the total indicies of the children array have to be modified).\n// User can remove a single child by set its `ignore` as `true`.\n\n\nfunction mergeChildren(api, el, dataIndex, elOption, seriesModel, morphPreparation) {\n var newChildren = elOption.children;\n var newLen = newChildren ? newChildren.length : 0;\n var mergeChildren = elOption.$mergeChildren; // `diffChildrenByName` has been deprecated.\n\n var byName = mergeChildren === 'byName' || elOption.diffChildrenByName;\n var notMerge = mergeChildren === false; // For better performance on roam update, only enter if necessary.\n\n if (!newLen && !byName && !notMerge) {\n return;\n }\n\n if (byName) {\n diffGroupChildren({\n api: api,\n oldChildren: el.children() || [],\n newChildren: newChildren || [],\n dataIndex: dataIndex,\n seriesModel: seriesModel,\n group: el,\n morphPreparation: morphPreparation\n });\n return;\n }\n\n notMerge && el.removeAll(); // Mapping children of a group simply by index, which\n // might be better performance.\n\n var index = 0;\n\n for (; index < newLen; index++) {\n newChildren[index] && doCreateOrUpdateEl(api, el.childAt(index), dataIndex, newChildren[index], seriesModel, el, false, morphPreparation);\n }\n\n for (var i = el.childCount() - 1; i >= index; i--) {\n // Do not supprot leave elements that are not mentioned in the latest\n // `renderItem` return. Otherwise users may not have a clear and simple\n // concept that how to contorl all of the elements.\n doRemoveEl(el.childAt(i), seriesModel, el);\n }\n}\n\nfunction diffGroupChildren(context) {\n new DataDiffer(context.oldChildren, context.newChildren, getKey, getKey, context).add(processAddUpdate).update(processAddUpdate).remove(processRemove).execute();\n}\n\nfunction getKey(item, idx) {\n var name = item && item.name;\n return name != null ? name : GROUP_DIFF_PREFIX + idx;\n}\n\nfunction processAddUpdate(newIndex, oldIndex) {\n var context = this.context;\n var childOption = newIndex != null ? context.newChildren[newIndex] : null;\n var child = oldIndex != null ? context.oldChildren[oldIndex] : null;\n doCreateOrUpdateEl(context.api, child, context.dataIndex, childOption, context.seriesModel, context.group, false, context.morphPreparation);\n}\n\nfunction processRemove(oldIndex) {\n var context = this.context;\n var child = context.oldChildren[oldIndex];\n doRemoveEl(child, context.seriesModel, context.group);\n}\n\nfunction doRemoveEl(el, seriesModel, group) {\n if (el) {\n var leaveToProps = inner(el).leaveToProps;\n leaveToProps ? graphicUtil.updateProps(el, leaveToProps, seriesModel, {\n cb: function () {\n group.remove(el);\n }\n }) : group.remove(el);\n }\n}\n/**\n * @return SVG Path data.\n */\n\n\nfunction getPathData(shape) {\n // \"d\" follows the SVG convention.\n return shape && (shape.pathData || shape.d);\n}\n\nfunction hasOwnPathData(shape) {\n return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd'));\n}\n\nfunction isPath(el) {\n return el && el instanceof graphicUtil.Path;\n}\n\nfunction removeElementDirectly(el, group) {\n el && group.remove(el);\n}\n/**\n * Any morph-potential el should added by `morphPreparation.addTo(el)`.\n * And they may apply morph or not when `morphPreparation.applyMorphing()`.\n * But at least, all of the \"to\" elements will apply all of the updates\n * as `doCreateOrUpdateItem` did.\n */\n\n\nvar MorphPreparation =\n/** @class */\nfunction () {\n function MorphPreparation(seriesModel, transOpt) {\n this._fromList = [];\n this._toList = [];\n this._toElOptionList = [];\n this._allPropsFinalList = [];\n this._toDataIndices = []; // Key: `toDataIndex`, not `toIdx`\n\n this._morphConfigList = [];\n this._seriesModel = seriesModel;\n this._transOpt = transOpt;\n }\n\n MorphPreparation.prototype.hasFrom = function () {\n return !!this._fromList.length;\n }; // isOneToOneFrom(el: Element): boolean {\n // if (el && inner(el).canMorph) {\n // const fromList = this._fromList;\n // for (let i = 0; i < fromList.length; i++) {\n // if (fromList[i] === el) {\n // return true;\n // }\n // }\n // }\n // }\n\n\n MorphPreparation.prototype.findAndAddFrom = function (el) {\n if (!el) {\n return;\n }\n\n if (inner(el).canMorph) {\n this._fromList.push(el);\n }\n\n if (el.isGroup) {\n var children = el.childrenRef();\n\n for (var i = 0; i < children.length; i++) {\n this.findAndAddFrom(children[i]);\n }\n }\n };\n\n MorphPreparation.prototype.addTo = function (path, elOption, dataIndex, allPropsFinal) {\n if (path) {\n this._toList.push(path);\n\n this._toElOptionList.push(elOption);\n\n this._toDataIndices.push(dataIndex);\n\n this._allPropsFinalList.push(allPropsFinal);\n }\n };\n\n MorphPreparation.prototype.applyMorphing = function () {\n // [MORPHING_LOGIC_HINT]\n // Pay attention to the order:\n // (A) Apply `allPropsFinal` and `styleOption` to \"to\".\n // (Then \"to\" becomes to the final state.)\n // (B) Apply `morphPath`/`combine`/`separate`.\n // (Based on the current state of \"from\" and the final state of \"to\".)\n // (Then we may get \"from.subList\" or \"to.subList\".)\n // (C) Copy the related props from \"from\" to \"from.subList\", from \"to\" to \"to.subList\".\n // (D) Collect `transitionFromProps` for \"to\" and \"to.subList\"\n // (Based on \"from\" or \"from.subList\".)\n // (E) Apply `transitionFromProps` to \"to\" and \"to.subList\"\n // (It might change the prop values to the first frame value.)\n // Case_I:\n // If (D) should be after (C), we use sequence: A - B - C - D - E\n // Case_II:\n // If (A) should be after (D), we use sequence: D - A - B - C - E\n // [MORPHING_LOGIC_HINT]\n // zrender `morphPath`/`combine`/`separate` only manages the shape animation.\n // Other props (like transfrom, style transition) will handled in echarts).\n // [MORPHING_LOGIC_HINT]\n // Make sure `applyPropsFinal` always be called for \"to\".\n var type = this._type;\n var fromList = this._fromList;\n var toList = this._toList;\n var toListLen = toList.length;\n var fromListLen = fromList.length;\n\n if (!fromListLen || !toListLen) {\n return;\n }\n\n if (type === 'oneToOne') {\n // In one-to-one case, we by default apply a simple rule:\n // map \"from\" and \"to\" one by one.\n // For this case: old_data_item_el and new_data_item_el\n // has the same hierarchy of group tree but only some path type changed.\n for (var toIdx = 0; toIdx < toListLen; toIdx++) {\n this._oneToOneForSingleTo(toIdx, toIdx);\n }\n } else if (type === 'manyToOne') {\n // A rough strategy: if there are more than one \"to\", we simply divide \"fromList\" equally.\n var fromSingleSegLen = Math.max(1, Math.floor(fromListLen / toListLen));\n\n for (var toIdx = 0, fromIdxStart = 0; toIdx < toListLen; toIdx++, fromIdxStart += fromSingleSegLen) {\n var fromCount = toIdx + 1 >= toListLen ? fromListLen - fromIdxStart : fromSingleSegLen;\n\n this._manyToOneForSingleTo(toIdx, fromIdxStart >= fromListLen ? null : fromIdxStart, fromCount);\n }\n } else if (type === 'oneToMany') {\n // A rough strategy: if there are more than one \"from\", we simply divide \"toList\" equally.\n var toSingleSegLen = Math.max(1, Math.floor(toListLen / fromListLen));\n\n for (var toIdxStart = 0, fromIdx = 0; toIdxStart < toListLen; toIdxStart += toSingleSegLen, fromIdx++) {\n var toCount = toIdxStart + toSingleSegLen >= toListLen ? toListLen - toIdxStart : toSingleSegLen;\n\n this._oneToManyForSingleFrom(toIdxStart, toCount, fromIdx >= fromListLen ? null : fromIdx);\n }\n }\n };\n\n MorphPreparation.prototype._oneToOneForSingleTo = function ( // \"to\" must NOT be null/undefined.\n toIdx, // May `fromIdx >= this._fromList.length`\n fromIdx) {\n var to = this._toList[toIdx];\n var toElOption = this._toElOptionList[toIdx];\n var toDataIndex = this._toDataIndices[toIdx];\n var allPropsFinal = this._allPropsFinalList[toIdx];\n var from = this._fromList[fromIdx];\n\n var elAnimationConfig = this._getOrCreateMorphConfig(toDataIndex);\n\n var morphDuration = elAnimationConfig.duration;\n\n if (from && isCombiningPath(from)) {\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n if (morphDuration) {\n var combineResult = combine([from], to, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(combineResult, toIdx, null);\n } // The target el will not be displayed and transition from multiple path.\n // transition on the target el does not make sense.\n\n } else {\n var morphFrom = morphDuration // from === to usually happen in scenarios where internal update like\n // \"dataZoom\", \"legendToggle\" happen. If from is not in any morphing,\n // we do not need to call `morphPath`.\n && from && (from !== to || isInAnyMorphing(from)) ? from : null; // See [Case_II] above.\n // In this case, there is probably `from === to`. And the `transitionFromProps` collecting\n // does not depends on morphing. So we collect `transitionFromProps` first.\n\n var transFromProps = {};\n prepareShapeOrExtraTransitionFrom('shape', to, morphFrom, toElOption, transFromProps, false);\n prepareShapeOrExtraTransitionFrom('extra', to, morphFrom, toElOption, transFromProps, false);\n prepareTransformTransitionFrom(to, morphFrom, toElOption, transFromProps, false);\n prepareStyleTransitionFrom(to, morphFrom, toElOption, toElOption.style, transFromProps, false);\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n if (morphFrom) {\n morphPath(morphFrom, to, elAnimationConfig);\n }\n\n applyTransitionFrom(to, toDataIndex, toElOption, this._seriesModel, transFromProps, false);\n }\n };\n\n MorphPreparation.prototype._manyToOneForSingleTo = function ( // \"to\" must NOT be null/undefined.\n toIdx, // May be null.\n fromIdxStart, fromCount) {\n var to = this._toList[toIdx];\n var toElOption = this._toElOptionList[toIdx];\n var allPropsFinal = this._allPropsFinalList[toIdx];\n applyPropsFinal(to, allPropsFinal, toElOption.style);\n\n var elAnimationConfig = this._getOrCreateMorphConfig(this._toDataIndices[toIdx]);\n\n if (elAnimationConfig.duration && fromIdxStart != null) {\n var combineFromList = [];\n\n for (var fromIdx = fromIdxStart; fromIdx < fromCount; fromIdx++) {\n combineFromList.push(this._fromList[fromIdx]);\n }\n\n var combineResult = combine(combineFromList, to, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(combineResult, toIdx, null);\n }\n };\n\n MorphPreparation.prototype._oneToManyForSingleFrom = function ( // \"to\" must NOT be null/undefined.\n toIdxStart, toCount, // May be null\n fromIdx) {\n var from = fromIdx == null ? null : this._fromList[fromIdx];\n var toList = this._toList;\n var separateToList = [];\n\n for (var toIdx = toIdxStart; toIdx < toCount; toIdx++) {\n var to = toList[toIdx];\n applyPropsFinal(to, this._allPropsFinalList[toIdx], this._toElOptionList[toIdx].style);\n separateToList.push(to);\n }\n\n var elAnimationConfig = this._getOrCreateMorphConfig(this._toDataIndices[toIdxStart]);\n\n if (elAnimationConfig.duration && from) {\n var separateResult = separate(from, separateToList, elAnimationConfig, copyPropsWhenDivided);\n\n this._processResultIndividuals(separateResult, toIdxStart, toCount);\n }\n };\n\n MorphPreparation.prototype._processResultIndividuals = function (combineSeparateResult, toIdxStart, toCount) {\n var isSeparate = toCount != null;\n\n for (var i = 0; i < combineSeparateResult.count; i++) {\n var fromIndividual = combineSeparateResult.fromIndividuals[i];\n var toIndividual = combineSeparateResult.toIndividuals[i]; // Here it's a trick:\n // For \"combine\" case, all of the `toIndividuals` map to the same `toIdx`.\n // For \"separate\" case, the `toIndividuals` map to some certain segment of `_toList` accurately.\n\n var toIdx = toIdxStart + (isSeparate ? i : 0);\n var toElOption = this._toElOptionList[toIdx];\n var dataIndex = this._toDataIndices[toIdx];\n var transFromProps = {};\n prepareTransformTransitionFrom(toIndividual, fromIndividual, toElOption, transFromProps, false);\n prepareStyleTransitionFrom(toIndividual, fromIndividual, toElOption, toElOption.style, transFromProps, false);\n applyTransitionFrom(toIndividual, dataIndex, toElOption, this._seriesModel, transFromProps, false);\n }\n };\n\n MorphPreparation.prototype._getOrCreateMorphConfig = function (dataIndex) {\n var morphConfigList = this._morphConfigList;\n var config = morphConfigList[dataIndex];\n\n if (config) {\n return config;\n }\n\n var duration;\n var easing;\n var delay;\n var seriesModel = this._seriesModel;\n var transOpt = this._transOpt;\n\n if (seriesModel.isAnimationEnabled()) {\n // PENDING: refactor? this is the same logic as `src/util/graphic.ts#animateOrSetProps`.\n var animationPayload = void 0;\n\n if (seriesModel && seriesModel.ecModel) {\n var updatePayload = seriesModel.ecModel.getUpdatePayload();\n animationPayload = updatePayload && updatePayload.animation;\n }\n\n if (animationPayload) {\n duration = animationPayload.duration || 0;\n easing = animationPayload.easing || 'cubicOut';\n delay = animationPayload.delay || 0;\n } else {\n easing = seriesModel.get('animationEasingUpdate');\n var delayOption = seriesModel.get('animationDelayUpdate');\n delay = isFunction(delayOption) ? delayOption(dataIndex) : delayOption;\n var durationOption = seriesModel.get('animationDurationUpdate');\n duration = isFunction(durationOption) ? durationOption(dataIndex) : durationOption;\n }\n }\n\n config = {\n duration: duration || 0,\n delay: delay,\n easing: easing,\n dividingMethod: transOpt ? transOpt.dividingMethod : null\n };\n morphConfigList[dataIndex] = config;\n return config;\n };\n\n MorphPreparation.prototype.reset = function (type) {\n // `this._morphConfigList` can be kept. It only related to `dataIndex`.\n this._type = type;\n this._fromList.length = this._toList.length = this._toElOptionList.length = this._allPropsFinalList.length = this._toDataIndices.length = 0;\n };\n\n return MorphPreparation;\n}();\n\nfunction copyPropsWhenDivided(srcPath, tarPath, willClone) {\n // Do not copy transform props.\n // Sub paths are transfrom based on their host path.\n // tarPath.x = srcPath.x;\n // tarPath.y = srcPath.y;\n // tarPath.scaleX = srcPath.scaleX;\n // tarPath.scaleY = srcPath.scaleY;\n // tarPath.originX = srcPath.originX;\n // tarPath.originY = srcPath.originY;\n // If just carry the style, will not be modifed, so do not copy.\n tarPath.style = willClone ? clone(srcPath.style) : srcPath.style;\n tarPath.zlevel = srcPath.zlevel;\n tarPath.z = srcPath.z;\n tarPath.z2 = srcPath.z2;\n}\n\nexport function install(registers) {\n registers.registerChartView(CustomSeriesView);\n registers.registerSeriesModel(CustomSeriesModel);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as axisPointerModelHelper from './modelHelper';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nvar clone = zrUtil.clone;\nvar bind = zrUtil.bind;\n/**\n * Base axis pointer class in 2D.\n */\n\nvar BaseAxisPointer =\n/** @class */\nfunction () {\n function BaseAxisPointer() {\n this._dragging = false;\n /**\n * In px, arbitrary value. Do not set too small,\n * no animation is ok for most cases.\n */\n\n this.animationThreshold = 15;\n }\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.render = function (axisModel, axisPointerModel, api, forceRender) {\n var value = axisPointerModel.get('value');\n var status = axisPointerModel.get('status'); // Bind them to `this`, not in closure, otherwise they will not\n // be replaced when user calling setOption in not merge mode.\n\n this._axisModel = axisModel;\n this._axisPointerModel = axisPointerModel;\n this._api = api; // Optimize: `render` will be called repeatly during mouse move.\n // So it is power consuming if performing `render` each time,\n // especially on mobile device.\n\n if (!forceRender && this._lastValue === value && this._lastStatus === status) {\n return;\n }\n\n this._lastValue = value;\n this._lastStatus = status;\n var group = this._group;\n var handle = this._handle;\n\n if (!status || status === 'hide') {\n // Do not clear here, for animation better.\n group && group.hide();\n handle && handle.hide();\n return;\n }\n\n group && group.show();\n handle && handle.show(); // Otherwise status is 'show'\n\n var elOption = {};\n this.makeElOption(elOption, value, axisModel, axisPointerModel, api); // Enable change axis pointer type.\n\n var graphicKey = elOption.graphicKey;\n\n if (graphicKey !== this._lastGraphicKey) {\n this.clear(api);\n }\n\n this._lastGraphicKey = graphicKey;\n var moveAnimation = this._moveAnimation = this.determineAnimation(axisModel, axisPointerModel);\n\n if (!group) {\n group = this._group = new graphic.Group();\n this.createPointerEl(group, elOption, axisModel, axisPointerModel);\n this.createLabelEl(group, elOption, axisModel, axisPointerModel);\n api.getZr().add(group);\n } else {\n var doUpdateProps = zrUtil.curry(updateProps, axisPointerModel, moveAnimation);\n this.updatePointerEl(group, elOption, doUpdateProps);\n this.updateLabelEl(group, elOption, doUpdateProps, axisPointerModel);\n }\n\n updateMandatoryProps(group, axisPointerModel, true);\n\n this._renderHandle(value);\n };\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.remove = function (api) {\n this.clear(api);\n };\n /**\n * @implement\n */\n\n\n BaseAxisPointer.prototype.dispose = function (api) {\n this.clear(api);\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.determineAnimation = function (axisModel, axisPointerModel) {\n var animation = axisPointerModel.get('animation');\n var axis = axisModel.axis;\n var isCategoryAxis = axis.type === 'category';\n var useSnap = axisPointerModel.get('snap'); // Value axis without snap always do not snap.\n\n if (!useSnap && !isCategoryAxis) {\n return false;\n }\n\n if (animation === 'auto' || animation == null) {\n var animationThreshold = this.animationThreshold;\n\n if (isCategoryAxis && axis.getBandWidth() > animationThreshold) {\n return true;\n } // It is important to auto animation when snap used. Consider if there is\n // a dataZoom, animation will be disabled when too many points exist, while\n // it will be enabled for better visual effect when little points exist.\n\n\n if (useSnap) {\n var seriesDataCount = axisPointerModelHelper.getAxisInfo(axisModel).seriesDataCount;\n var axisExtent = axis.getExtent(); // Approximate band width\n\n return Math.abs(axisExtent[0] - axisExtent[1]) / seriesDataCount > animationThreshold;\n }\n\n return false;\n }\n\n return animation === true;\n };\n /**\n * add {pointer, label, graphicKey} to elOption\n * @protected\n */\n\n\n BaseAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {// Shoule be implemenented by sub-class.\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.createPointerEl = function (group, elOption, axisModel, axisPointerModel) {\n var pointerOption = elOption.pointer;\n\n if (pointerOption) {\n var pointerEl = inner(group).pointerEl = new graphic[pointerOption.type](clone(elOption.pointer));\n group.add(pointerEl);\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.createLabelEl = function (group, elOption, axisModel, axisPointerModel) {\n if (elOption.label) {\n var labelEl = inner(group).labelEl = new graphic.Text(clone(elOption.label));\n group.add(labelEl);\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.updatePointerEl = function (group, elOption, updateProps) {\n var pointerEl = inner(group).pointerEl;\n\n if (pointerEl && elOption.pointer) {\n pointerEl.setStyle(elOption.pointer.style);\n updateProps(pointerEl, {\n shape: elOption.pointer.shape\n });\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.updateLabelEl = function (group, elOption, updateProps, axisPointerModel) {\n var labelEl = inner(group).labelEl;\n\n if (labelEl) {\n labelEl.setStyle(elOption.label.style);\n updateProps(labelEl, {\n // Consider text length change in vertical axis, animation should\n // be used on shape, otherwise the effect will be weird.\n // TODOTODO\n // shape: elOption.label.shape,\n x: elOption.label.x,\n y: elOption.label.y\n });\n updateLabelShowHide(labelEl, axisPointerModel);\n }\n };\n /**\n * @private\n */\n\n\n BaseAxisPointer.prototype._renderHandle = function (value) {\n if (this._dragging || !this.updateHandleTransform) {\n return;\n }\n\n var axisPointerModel = this._axisPointerModel;\n\n var zr = this._api.getZr();\n\n var handle = this._handle;\n var handleModel = axisPointerModel.getModel('handle');\n var status = axisPointerModel.get('status');\n\n if (!handleModel.get('show') || !status || status === 'hide') {\n handle && zr.remove(handle);\n this._handle = null;\n return;\n }\n\n var isInit;\n\n if (!this._handle) {\n isInit = true;\n handle = this._handle = graphic.createIcon(handleModel.get('icon'), {\n cursor: 'move',\n draggable: true,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n onmousedown: bind(this._onHandleDragMove, this, 0, 0),\n drift: bind(this._onHandleDragMove, this),\n ondragend: bind(this._onHandleDragEnd, this)\n });\n zr.add(handle);\n }\n\n updateMandatoryProps(handle, axisPointerModel, false); // update style\n\n handle.setStyle(handleModel.getItemStyle(null, ['color', 'borderColor', 'borderWidth', 'opacity', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY'])); // update position\n\n var handleSize = handleModel.get('size');\n\n if (!zrUtil.isArray(handleSize)) {\n handleSize = [handleSize, handleSize];\n }\n\n handle.scaleX = handleSize[0] / 2;\n handle.scaleY = handleSize[1] / 2;\n throttleUtil.createOrUpdate(this, '_doDispatchAxisPointer', handleModel.get('throttle') || 0, 'fixRate');\n\n this._moveHandleToValue(value, isInit);\n };\n\n BaseAxisPointer.prototype._moveHandleToValue = function (value, isInit) {\n updateProps(this._axisPointerModel, !isInit && this._moveAnimation, this._handle, getHandleTransProps(this.getHandleTransform(value, this._axisModel, this._axisPointerModel)));\n };\n\n BaseAxisPointer.prototype._onHandleDragMove = function (dx, dy) {\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n this._dragging = true; // Persistent for throttle.\n\n var trans = this.updateHandleTransform(getHandleTransProps(handle), [dx, dy], this._axisModel, this._axisPointerModel);\n this._payloadInfo = trans;\n handle.stopAnimation();\n handle.attr(getHandleTransProps(trans));\n inner(handle).lastProp = null;\n\n this._doDispatchAxisPointer();\n };\n /**\n * Throttled method.\n */\n\n\n BaseAxisPointer.prototype._doDispatchAxisPointer = function () {\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n var payloadInfo = this._payloadInfo;\n var axisModel = this._axisModel;\n\n this._api.dispatchAction({\n type: 'updateAxisPointer',\n x: payloadInfo.cursorPoint[0],\n y: payloadInfo.cursorPoint[1],\n tooltipOption: payloadInfo.tooltipOption,\n axesInfo: [{\n axisDim: axisModel.axis.dim,\n axisIndex: axisModel.componentIndex\n }]\n });\n };\n\n BaseAxisPointer.prototype._onHandleDragEnd = function () {\n this._dragging = false;\n var handle = this._handle;\n\n if (!handle) {\n return;\n }\n\n var value = this._axisPointerModel.get('value'); // Consider snap or categroy axis, handle may be not consistent with\n // axisPointer. So move handle to align the exact value position when\n // drag ended.\n\n\n this._moveHandleToValue(value); // For the effect: tooltip will be shown when finger holding on handle\n // button, and will be hidden after finger left handle button.\n\n\n this._api.dispatchAction({\n type: 'hideTip'\n });\n };\n /**\n * @private\n */\n\n\n BaseAxisPointer.prototype.clear = function (api) {\n this._lastValue = null;\n this._lastStatus = null;\n var zr = api.getZr();\n var group = this._group;\n var handle = this._handle;\n\n if (zr && group) {\n this._lastGraphicKey = null;\n group && zr.remove(group);\n handle && zr.remove(handle);\n this._group = null;\n this._handle = null;\n this._payloadInfo = null;\n }\n };\n /**\n * @protected\n */\n\n\n BaseAxisPointer.prototype.doClear = function () {// Implemented by sub-class if necessary.\n };\n\n BaseAxisPointer.prototype.buildLabel = function (xy, wh, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n };\n\n return BaseAxisPointer;\n}();\n\nfunction updateProps(animationModel, moveAnimation, el, props) {\n // Animation optimize.\n if (!propsEqual(inner(el).lastProp, props)) {\n inner(el).lastProp = props;\n moveAnimation ? graphic.updateProps(el, props, animationModel) : (el.stopAnimation(), el.attr(props));\n }\n}\n\nfunction propsEqual(lastProps, newProps) {\n if (zrUtil.isObject(lastProps) && zrUtil.isObject(newProps)) {\n var equals_1 = true;\n zrUtil.each(newProps, function (item, key) {\n equals_1 = equals_1 && propsEqual(lastProps[key], item);\n });\n return !!equals_1;\n } else {\n return lastProps === newProps;\n }\n}\n\nfunction updateLabelShowHide(labelEl, axisPointerModel) {\n labelEl[axisPointerModel.get(['label', 'show']) ? 'show' : 'hide']();\n}\n\nfunction getHandleTransProps(trans) {\n return {\n x: trans.x || 0,\n y: trans.y || 0,\n rotation: trans.rotation || 0\n };\n}\n\nfunction updateMandatoryProps(group, axisPointerModel, silent) {\n var z = axisPointerModel.get('z');\n var zlevel = axisPointerModel.get('zlevel');\n group && group.traverse(function (el) {\n if (el.type !== 'group') {\n z != null && (el.z = z);\n zlevel != null && (el.zlevel = zlevel);\n el.silent = silent;\n }\n });\n}\n\nexport default BaseAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as textContain from 'zrender/lib/contain/text';\nimport * as formatUtil from '../../util/format';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as axisHelper from '../../coord/axisHelper';\nimport AxisBuilder from '../axis/AxisBuilder';\nimport { createTextStyle } from '../../label/labelStyle';\nexport function buildElStyle(axisPointerModel) {\n var axisPointerType = axisPointerModel.get('type');\n var styleModel = axisPointerModel.getModel(axisPointerType + 'Style');\n var style;\n\n if (axisPointerType === 'line') {\n style = styleModel.getLineStyle();\n style.fill = null;\n } else if (axisPointerType === 'shadow') {\n style = styleModel.getAreaStyle();\n style.stroke = null;\n }\n\n return style;\n}\n/**\n * @param {Function} labelPos {align, verticalAlign, position}\n */\n\nexport function buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos) {\n var value = axisPointerModel.get('value');\n var text = getValueLabel(value, axisModel.axis, axisModel.ecModel, axisPointerModel.get('seriesDataIndices'), {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n });\n var labelModel = axisPointerModel.getModel('label');\n var paddings = formatUtil.normalizeCssArray(labelModel.get('padding') || 0);\n var font = labelModel.getFont();\n var textRect = textContain.getBoundingRect(text, font);\n var position = labelPos.position;\n var width = textRect.width + paddings[1] + paddings[3];\n var height = textRect.height + paddings[0] + paddings[2]; // Adjust by align.\n\n var align = labelPos.align;\n align === 'right' && (position[0] -= width);\n align === 'center' && (position[0] -= width / 2);\n var verticalAlign = labelPos.verticalAlign;\n verticalAlign === 'bottom' && (position[1] -= height);\n verticalAlign === 'middle' && (position[1] -= height / 2); // Not overflow ec container\n\n confineInContainer(position, width, height, api);\n var bgColor = labelModel.get('backgroundColor');\n\n if (!bgColor || bgColor === 'auto') {\n bgColor = axisModel.get(['axisLine', 'lineStyle', 'color']);\n }\n\n elOption.label = {\n // shape: {x: 0, y: 0, width: width, height: height, r: labelModel.get('borderRadius')},\n x: position[0],\n y: position[1],\n style: createTextStyle(labelModel, {\n text: text,\n font: font,\n fill: labelModel.getTextColor(),\n padding: paddings,\n backgroundColor: bgColor\n }),\n // Lable should be over axisPointer.\n z2: 10\n };\n} // Do not overflow ec container\n\nfunction confineInContainer(position, width, height, api) {\n var viewWidth = api.getWidth();\n var viewHeight = api.getHeight();\n position[0] = Math.min(position[0] + width, viewWidth) - width;\n position[1] = Math.min(position[1] + height, viewHeight) - height;\n position[0] = Math.max(position[0], 0);\n position[1] = Math.max(position[1], 0);\n}\n\nexport function getValueLabel(value, axis, ecModel, seriesDataIndices, opt) {\n value = axis.scale.parse(value);\n var text = axis.scale.getLabel({\n value: value\n }, {\n // If `precision` is set, width can be fixed (like '12.00500'), which\n // helps to debounce when when moving label.\n precision: opt.precision\n });\n var formatter = opt.formatter;\n\n if (formatter) {\n var params_1 = {\n value: axisHelper.getAxisRawValue(axis, {\n value: value\n }),\n axisDimension: axis.dim,\n axisIndex: axis.index,\n seriesData: []\n };\n zrUtil.each(seriesDataIndices, function (idxItem) {\n var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n var dataIndex = idxItem.dataIndexInside;\n var dataParams = series && series.getDataParams(dataIndex);\n dataParams && params_1.seriesData.push(dataParams);\n });\n\n if (zrUtil.isString(formatter)) {\n text = formatter.replace('{value}', text);\n } else if (zrUtil.isFunction(formatter)) {\n text = formatter(params_1);\n }\n }\n\n return text;\n}\nexport function getTransformedPosition(axis, value, layoutInfo) {\n var transform = matrix.create();\n matrix.rotate(transform, transform, layoutInfo.rotation);\n matrix.translate(transform, transform, layoutInfo.position);\n return graphic.applyTransform([axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)], transform);\n}\nexport function buildCartesianSingleLabelElOption(value, elOption, layoutInfo, axisModel, axisPointerModel, api) {\n // @ts-ignore\n var textLayout = AxisBuilder.innerTextLayout(layoutInfo.rotation, 0, layoutInfo.labelDirection);\n layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);\n buildLabelElOption(elOption, axisModel, axisPointerModel, api, {\n position: getTransformedPosition(axisModel.axis, value, layoutInfo),\n align: textLayout.textAlign,\n verticalAlign: textLayout.textVerticalAlign\n });\n}\nexport function makeLineShape(p1, p2, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x1: p1[xDimIndex],\n y1: p1[1 - xDimIndex],\n x2: p2[xDimIndex],\n y2: p2[1 - xDimIndex]\n };\n}\nexport function makeRectShape(xy, wh, xDimIndex) {\n xDimIndex = xDimIndex || 0;\n return {\n x: xy[xDimIndex],\n y: xy[1 - xDimIndex],\n width: wh[xDimIndex],\n height: wh[1 - xDimIndex]\n };\n}\nexport function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) {\n return {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n startAngle: startAngle,\n endAngle: endAngle,\n clockwise: true\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as cartesianAxisHelper from '../../coord/cartesian/cartesianAxisHelper';\n\nvar CartesianAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(CartesianAxisPointer, _super);\n\n function CartesianAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n var grid = axis.grid;\n var axisPointerType = axisPointerModel.get('type');\n var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var layoutInfo = cartesianAxisHelper.layout(grid.model, axisModel);\n viewHelper.buildCartesianSingleLabelElOption( // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api);\n };\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {\n var layoutInfo = cartesianAxisHelper.layout(axisModel.axis.grid.model, axisModel, {\n labelInside: false\n }); // @ts-ignore\n\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n var pos = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: pos[0],\n y: pos[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n };\n /**\n * @override\n */\n\n\n CartesianAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {\n var axis = axisModel.axis;\n var grid = axis.grid;\n var axisExtent = axis.getGlobalExtent(true);\n var otherExtent = getCartesian(grid, axis).getOtherAxis(axis).getGlobalExtent();\n var dimIndex = axis.dim === 'x' ? 0 : 1;\n var currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n var cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex]; // Make tooltip do not overlap axisPointer and in the middle of the grid.\n\n var tooltipOptions = [{\n verticalAlign: 'middle'\n }, {\n align: 'center'\n }];\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: tooltipOptions[dimIndex]\n };\n };\n\n return CartesianAxisPointer;\n}(BaseAxisPointer);\n\nfunction getCartesian(grid, axis) {\n var opt = {};\n opt[axis.dim + 'AxisIndex'] = axis.index;\n return grid.getCartesian(opt);\n}\n\nvar pointerShapeBuilder = {\n line: function (axis, pixelValue, otherExtent) {\n var targetShape = viewHelper.makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getAxisDimIndex(axis));\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n shadow: function (axis, pixelValue, otherExtent) {\n var bandWidth = Math.max(1, axis.getBandWidth());\n var span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getAxisDimIndex(axis))\n };\n }\n};\n\nfunction getAxisDimIndex(axis) {\n return axis.dim === 'x' ? 0 : 1;\n}\n\nexport default CartesianAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar AxisPointerModel =\n/** @class */\nfunction (_super) {\n __extends(AxisPointerModel, _super);\n\n function AxisPointerModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisPointerModel.type;\n return _this;\n }\n\n AxisPointerModel.type = 'axisPointer';\n AxisPointerModel.defaultOption = {\n // 'auto' means that show when triggered by tooltip or handle.\n show: 'auto',\n zlevel: 0,\n z: 50,\n type: 'line',\n // axispointer triggered by tootip determine snap automatically,\n // see `modelHelper`.\n snap: false,\n triggerTooltip: true,\n value: null,\n status: null,\n link: [],\n // Do not set 'auto' here, otherwise global animation: false\n // will not effect at this axispointer.\n animation: null,\n animationDurationUpdate: 200,\n lineStyle: {\n color: '#B9BEC9',\n width: 1,\n type: 'dashed'\n },\n shadowStyle: {\n color: 'rgba(210,219,238,0.2)'\n },\n label: {\n show: true,\n formatter: null,\n precision: 'auto',\n margin: 3,\n color: '#fff',\n padding: [5, 7, 5, 7],\n backgroundColor: 'auto',\n borderColor: null,\n borderWidth: 0,\n borderRadius: 3\n },\n handle: {\n show: false,\n // eslint-disable-next-line\n icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',\n size: 45,\n // handle margin is from symbol center to axis, which is stable when circular move.\n margin: 50,\n // color: '#1b8bbd'\n // color: '#2f4554'\n color: '#333',\n shadowBlur: 3,\n shadowColor: '#aaa',\n shadowOffsetX: 0,\n shadowOffsetY: 2,\n // For mobile performance\n throttle: 40\n }\n };\n return AxisPointerModel;\n}(ComponentModel);\n\nexport default AxisPointerModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\nvar each = zrUtil.each;\n/**\n * @param {string} key\n * @param {module:echarts/ExtensionAPI} api\n * @param {Function} handler\n * param: {string} currTrigger\n * param: {Array.} point\n */\n\nexport function register(key, api, handler) {\n if (env.node) {\n return;\n }\n\n var zr = api.getZr();\n inner(zr).records || (inner(zr).records = {});\n initGlobalListeners(zr, api);\n var record = inner(zr).records[key] || (inner(zr).records[key] = {});\n record.handler = handler;\n}\n\nfunction initGlobalListeners(zr, api) {\n if (inner(zr).initialized) {\n return;\n }\n\n inner(zr).initialized = true;\n useHandler('click', zrUtil.curry(doEnter, 'click'));\n useHandler('mousemove', zrUtil.curry(doEnter, 'mousemove')); // useHandler('mouseout', onLeave);\n\n useHandler('globalout', onLeave);\n\n function useHandler(eventType, cb) {\n zr.on(eventType, function (e) {\n var dis = makeDispatchAction(api);\n each(inner(zr).records, function (record) {\n record && cb(record, e, dis.dispatchAction);\n });\n dispatchTooltipFinally(dis.pendings, api);\n });\n }\n}\n\nfunction dispatchTooltipFinally(pendings, api) {\n var showLen = pendings.showTip.length;\n var hideLen = pendings.hideTip.length;\n var actuallyPayload;\n\n if (showLen) {\n actuallyPayload = pendings.showTip[showLen - 1];\n } else if (hideLen) {\n actuallyPayload = pendings.hideTip[hideLen - 1];\n }\n\n if (actuallyPayload) {\n actuallyPayload.dispatchAction = null;\n api.dispatchAction(actuallyPayload);\n }\n}\n\nfunction onLeave(record, e, dispatchAction) {\n record.handler('leave', null, dispatchAction);\n}\n\nfunction doEnter(currTrigger, record, e, dispatchAction) {\n record.handler(currTrigger, e, dispatchAction);\n}\n\nfunction makeDispatchAction(api) {\n var pendings = {\n showTip: [],\n hideTip: []\n }; // FIXME\n // better approach?\n // 'showTip' and 'hideTip' can be triggered by axisPointer and tooltip,\n // which may be conflict, (axisPointer call showTip but tooltip call hideTip);\n // So we have to add \"final stage\" to merge those dispatched actions.\n\n var dispatchAction = function (payload) {\n var pendingList = pendings[payload.type];\n\n if (pendingList) {\n pendingList.push(payload);\n } else {\n payload.dispatchAction = dispatchAction;\n api.dispatchAction(payload);\n }\n };\n\n return {\n dispatchAction: dispatchAction,\n pendings: pendings\n };\n}\n\nexport function unregister(key, api) {\n if (env.node) {\n return;\n }\n\n var zr = api.getZr();\n var record = (inner(zr).records || {})[key];\n\n if (record) {\n inner(zr).records[key] = null;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as globalListener from './globalListener';\nimport ComponentView from '../../view/Component';\n\nvar AxisPointerView =\n/** @class */\nfunction (_super) {\n __extends(AxisPointerView, _super);\n\n function AxisPointerView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AxisPointerView.type;\n return _this;\n }\n\n AxisPointerView.prototype.render = function (globalAxisPointerModel, ecModel, api) {\n var globalTooltipModel = ecModel.getComponent('tooltip');\n var triggerOn = globalAxisPointerModel.get('triggerOn') || globalTooltipModel && globalTooltipModel.get('triggerOn') || 'mousemove|click'; // Register global listener in AxisPointerView to enable\n // AxisPointerView to be independent to Tooltip.\n\n globalListener.register('axisPointer', api, function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none' && (currTrigger === 'leave' || triggerOn.indexOf(currTrigger) >= 0)) {\n dispatchAction({\n type: 'updateAxisPointer',\n currTrigger: currTrigger,\n x: e && e.offsetX,\n y: e && e.offsetY\n });\n }\n });\n };\n\n AxisPointerView.prototype.remove = function (ecModel, api) {\n globalListener.unregister('axisPointer', api);\n };\n\n AxisPointerView.prototype.dispose = function (ecModel, api) {\n globalListener.unregister('axisPointer', api);\n };\n\n AxisPointerView.type = 'axisPointer';\n return AxisPointerView;\n}(ComponentView);\n\nexport default AxisPointerView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\n/**\n * @param finder contains {seriesIndex, dataIndex, dataIndexInside}\n * @param ecModel\n * @return {point: [x, y], el: ...} point Will not be null.\n */\n\nexport default function findPointFromSeries(finder, ecModel) {\n var point = [];\n var seriesIndex = finder.seriesIndex;\n var seriesModel;\n\n if (seriesIndex == null || !(seriesModel = ecModel.getSeriesByIndex(seriesIndex))) {\n return {\n point: []\n };\n }\n\n var data = seriesModel.getData();\n var dataIndex = modelUtil.queryDataIndex(data, finder);\n\n if (dataIndex == null || dataIndex < 0 || zrUtil.isArray(dataIndex)) {\n return {\n point: []\n };\n }\n\n var el = data.getItemGraphicEl(dataIndex);\n var coordSys = seriesModel.coordinateSystem;\n\n if (seriesModel.getTooltipPosition) {\n point = seriesModel.getTooltipPosition(dataIndex) || [];\n } else if (coordSys && coordSys.dataToPoint) {\n if (finder.isStacked) {\n var baseAxis = coordSys.getBaseAxis();\n var valueAxis = coordSys.getOtherAxis(baseAxis);\n var valueAxisDim = valueAxis.dim;\n var baseAxisDim = baseAxis.dim;\n var baseDataOffset = valueAxisDim === 'x' || valueAxisDim === 'radius' ? 1 : 0;\n var baseDim = data.mapDimension(baseAxisDim);\n var stackedData = [];\n stackedData[baseDataOffset] = data.get(baseDim, dataIndex);\n stackedData[1 - baseDataOffset] = data.get(data.getCalculationInfo('stackResultDimension'), dataIndex);\n point = coordSys.dataToPoint(stackedData) || [];\n } else {\n point = coordSys.dataToPoint(data.getValues(zrUtil.map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }), dataIndex)) || [];\n }\n } else if (el) {\n // Use graphic bounding rect\n var rect = el.getBoundingRect().clone();\n rect.applyTransform(el.transform);\n point = [rect.x + rect.width / 2, rect.y + rect.height / 2];\n }\n\n return {\n point: point,\n el: el\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { makeInner } from '../../util/model';\nimport * as modelHelper from './modelHelper';\nimport findPointFromSeries from './findPointFromSeries';\nimport { each, curry, bind, extend } from 'zrender/lib/core/util';\nvar inner = makeInner();\n/**\n * Basic logic: check all axis, if they do not demand show/highlight,\n * then hide/downplay them.\n *\n * @return content of event obj for echarts.connect.\n */\n\nexport default function axisTrigger(payload, ecModel, api) {\n var currTrigger = payload.currTrigger;\n var point = [payload.x, payload.y];\n var finder = payload;\n var dispatchAction = payload.dispatchAction || bind(api.dispatchAction, api);\n var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo; // Pending\n // See #6121. But we are not able to reproduce it yet.\n\n if (!coordSysAxesInfo) {\n return;\n }\n\n if (illegalPoint(point)) {\n // Used in the default behavior of `connection`: use the sample seriesIndex\n // and dataIndex. And also used in the tooltipView trigger.\n point = findPointFromSeries({\n seriesIndex: finder.seriesIndex,\n // Do not use dataIndexInside from other ec instance.\n // FIXME: auto detect it?\n dataIndex: finder.dataIndex\n }, ecModel).point;\n }\n\n var isIllegalPoint = illegalPoint(point); // Axis and value can be specified when calling dispatchAction({type: 'updateAxisPointer'}).\n // Notice: In this case, it is difficult to get the `point` (which is necessary to show\n // tooltip, so if point is not given, we just use the point found by sample seriesIndex\n // and dataIndex.\n\n var inputAxesInfo = finder.axesInfo;\n var axesInfo = coordSysAxesInfo.axesInfo;\n var shouldHide = currTrigger === 'leave' || illegalPoint(point);\n var outputPayload = {};\n var showValueMap = {};\n var dataByCoordSys = {\n list: [],\n map: {}\n };\n var updaters = {\n showPointer: curry(showPointer, showValueMap),\n showTooltip: curry(showTooltip, dataByCoordSys)\n }; // Process for triggered axes.\n\n each(coordSysAxesInfo.coordSysMap, function (coordSys, coordSysKey) {\n // If a point given, it must be contained by the coordinate system.\n var coordSysContainsPoint = isIllegalPoint || coordSys.containPoint(point);\n each(coordSysAxesInfo.coordSysAxesInfo[coordSysKey], function (axisInfo, key) {\n var axis = axisInfo.axis;\n var inputAxisInfo = findInputAxisInfo(inputAxesInfo, axisInfo); // If no inputAxesInfo, no axis is restricted.\n\n if (!shouldHide && coordSysContainsPoint && (!inputAxesInfo || inputAxisInfo)) {\n var val = inputAxisInfo && inputAxisInfo.value;\n\n if (val == null && !isIllegalPoint) {\n val = axis.pointToData(point);\n }\n\n val != null && processOnAxis(axisInfo, val, updaters, false, outputPayload);\n }\n });\n }); // Process for linked axes.\n\n var linkTriggers = {};\n each(axesInfo, function (tarAxisInfo, tarKey) {\n var linkGroup = tarAxisInfo.linkGroup; // If axis has been triggered in the previous stage, it should not be triggered by link.\n\n if (linkGroup && !showValueMap[tarKey]) {\n each(linkGroup.axesInfo, function (srcAxisInfo, srcKey) {\n var srcValItem = showValueMap[srcKey]; // If srcValItem exist, source axis is triggered, so link to target axis.\n\n if (srcAxisInfo !== tarAxisInfo && srcValItem) {\n var val = srcValItem.value;\n linkGroup.mapper && (val = tarAxisInfo.axis.scale.parse(linkGroup.mapper(val, makeMapperParam(srcAxisInfo), makeMapperParam(tarAxisInfo))));\n linkTriggers[tarAxisInfo.key] = val;\n }\n });\n }\n });\n each(linkTriggers, function (val, tarKey) {\n processOnAxis(axesInfo[tarKey], val, updaters, true, outputPayload);\n });\n updateModelActually(showValueMap, axesInfo, outputPayload);\n dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction);\n dispatchHighDownActually(axesInfo, dispatchAction, api);\n return outputPayload;\n}\n\nfunction processOnAxis(axisInfo, newValue, updaters, noSnap, outputFinder) {\n var axis = axisInfo.axis;\n\n if (axis.scale.isBlank() || !axis.containData(newValue)) {\n return;\n }\n\n if (!axisInfo.involveSeries) {\n updaters.showPointer(axisInfo, newValue);\n return;\n } // Heavy calculation. So put it after axis.containData checking.\n\n\n var payloadInfo = buildPayloadsBySeries(newValue, axisInfo);\n var payloadBatch = payloadInfo.payloadBatch;\n var snapToValue = payloadInfo.snapToValue; // Fill content of event obj for echarts.connect.\n // By default use the first involved series data as a sample to connect.\n\n if (payloadBatch[0] && outputFinder.seriesIndex == null) {\n extend(outputFinder, payloadBatch[0]);\n } // If no linkSource input, this process is for collecting link\n // target, where snap should not be accepted.\n\n\n if (!noSnap && axisInfo.snap) {\n if (axis.containData(snapToValue) && snapToValue != null) {\n newValue = snapToValue;\n }\n }\n\n updaters.showPointer(axisInfo, newValue, payloadBatch); // Tooltip should always be snapToValue, otherwise there will be\n // incorrect \"axis value ~ series value\" mapping displayed in tooltip.\n\n updaters.showTooltip(axisInfo, payloadInfo, snapToValue);\n}\n\nfunction buildPayloadsBySeries(value, axisInfo) {\n var axis = axisInfo.axis;\n var dim = axis.dim;\n var snapToValue = value;\n var payloadBatch = [];\n var minDist = Number.MAX_VALUE;\n var minDiff = -1;\n each(axisInfo.seriesModels, function (series, idx) {\n var dataDim = series.getData().mapDimensionsAll(dim);\n var seriesNestestValue;\n var dataIndices;\n\n if (series.getAxisTooltipData) {\n var result = series.getAxisTooltipData(dataDim, value, axis);\n dataIndices = result.dataIndices;\n seriesNestestValue = result.nestestValue;\n } else {\n dataIndices = series.getData().indicesOfNearest(dataDim[0], value, // Add a threshold to avoid find the wrong dataIndex\n // when data length is not same.\n // false,\n axis.type === 'category' ? 0.5 : null);\n\n if (!dataIndices.length) {\n return;\n }\n\n seriesNestestValue = series.getData().get(dataDim[0], dataIndices[0]);\n }\n\n if (seriesNestestValue == null || !isFinite(seriesNestestValue)) {\n return;\n }\n\n var diff = value - seriesNestestValue;\n var dist = Math.abs(diff); // Consider category case\n\n if (dist <= minDist) {\n if (dist < minDist || diff >= 0 && minDiff < 0) {\n minDist = dist;\n minDiff = diff;\n snapToValue = seriesNestestValue;\n payloadBatch.length = 0;\n }\n\n each(dataIndices, function (dataIndex) {\n payloadBatch.push({\n seriesIndex: series.seriesIndex,\n dataIndexInside: dataIndex,\n dataIndex: series.getData().getRawIndex(dataIndex)\n });\n });\n }\n });\n return {\n payloadBatch: payloadBatch,\n snapToValue: snapToValue\n };\n}\n\nfunction showPointer(showValueMap, axisInfo, value, payloadBatch) {\n showValueMap[axisInfo.key] = {\n value: value,\n payloadBatch: payloadBatch\n };\n}\n\nfunction showTooltip(dataByCoordSys, axisInfo, payloadInfo, value) {\n var payloadBatch = payloadInfo.payloadBatch;\n var axis = axisInfo.axis;\n var axisModel = axis.model;\n var axisPointerModel = axisInfo.axisPointerModel; // If no data, do not create anything in dataByCoordSys,\n // whose length will be used to judge whether dispatch action.\n\n if (!axisInfo.triggerTooltip || !payloadBatch.length) {\n return;\n }\n\n var coordSysModel = axisInfo.coordSys.model;\n var coordSysKey = modelHelper.makeKey(coordSysModel);\n var coordSysItem = dataByCoordSys.map[coordSysKey];\n\n if (!coordSysItem) {\n coordSysItem = dataByCoordSys.map[coordSysKey] = {\n coordSysId: coordSysModel.id,\n coordSysIndex: coordSysModel.componentIndex,\n coordSysType: coordSysModel.type,\n coordSysMainType: coordSysModel.mainType,\n dataByAxis: []\n };\n dataByCoordSys.list.push(coordSysItem);\n }\n\n coordSysItem.dataByAxis.push({\n axisDim: axis.dim,\n axisIndex: axisModel.componentIndex,\n axisType: axisModel.type,\n axisId: axisModel.id,\n value: value,\n // Caustion: viewHelper.getValueLabel is actually on \"view stage\", which\n // depends that all models have been updated. So it should not be performed\n // here. Considering axisPointerModel used here is volatile, which is hard\n // to be retrieve in TooltipView, we prepare parameters here.\n valueLabelOpt: {\n precision: axisPointerModel.get(['label', 'precision']),\n formatter: axisPointerModel.get(['label', 'formatter'])\n },\n seriesDataIndices: payloadBatch.slice()\n });\n}\n\nfunction updateModelActually(showValueMap, axesInfo, outputPayload) {\n var outputAxesInfo = outputPayload.axesInfo = []; // Basic logic: If no 'show' required, 'hide' this axisPointer.\n\n each(axesInfo, function (axisInfo, key) {\n var option = axisInfo.axisPointerModel.option;\n var valItem = showValueMap[key];\n\n if (valItem) {\n !axisInfo.useHandle && (option.status = 'show');\n option.value = valItem.value; // For label formatter param and highlight.\n\n option.seriesDataIndices = (valItem.payloadBatch || []).slice();\n } // When always show (e.g., handle used), remain\n // original value and status.\n else {\n // If hide, value still need to be set, consider\n // click legend to toggle axis blank.\n !axisInfo.useHandle && (option.status = 'hide');\n } // If status is 'hide', should be no info in payload.\n\n\n option.status === 'show' && outputAxesInfo.push({\n axisDim: axisInfo.axis.dim,\n axisIndex: axisInfo.axis.model.componentIndex,\n value: option.value\n });\n });\n}\n\nfunction dispatchTooltipActually(dataByCoordSys, point, payload, dispatchAction) {\n // Basic logic: If no showTip required, hideTip will be dispatched.\n if (illegalPoint(point) || !dataByCoordSys.list.length) {\n dispatchAction({\n type: 'hideTip'\n });\n return;\n } // In most case only one axis (or event one series is used). It is\n // convinient to fetch payload.seriesIndex and payload.dataIndex\n // dirtectly. So put the first seriesIndex and dataIndex of the first\n // axis on the payload.\n\n\n var sampleItem = ((dataByCoordSys.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};\n dispatchAction({\n type: 'showTip',\n escapeConnect: true,\n x: point[0],\n y: point[1],\n tooltipOption: payload.tooltipOption,\n position: payload.position,\n dataIndexInside: sampleItem.dataIndexInside,\n dataIndex: sampleItem.dataIndex,\n seriesIndex: sampleItem.seriesIndex,\n dataByCoordSys: dataByCoordSys.list\n });\n}\n\nfunction dispatchHighDownActually(axesInfo, dispatchAction, api) {\n // FIXME\n // highlight status modification shoule be a stage of main process?\n // (Consider confilct (e.g., legend and axisPointer) and setOption)\n var zr = api.getZr();\n var highDownKey = 'axisPointerLastHighlights';\n var lastHighlights = inner(zr)[highDownKey] || {};\n var newHighlights = inner(zr)[highDownKey] = {}; // Update highlight/downplay status according to axisPointer model.\n // Build hash map and remove duplicate incidentally.\n\n each(axesInfo, function (axisInfo, key) {\n var option = axisInfo.axisPointerModel.option;\n option.status === 'show' && each(option.seriesDataIndices, function (batchItem) {\n var key = batchItem.seriesIndex + ' | ' + batchItem.dataIndex;\n newHighlights[key] = batchItem;\n });\n }); // Diff.\n\n var toHighlight = [];\n var toDownplay = [];\n each(lastHighlights, function (batchItem, key) {\n !newHighlights[key] && toDownplay.push(batchItem);\n });\n each(newHighlights, function (batchItem, key) {\n !lastHighlights[key] && toHighlight.push(batchItem);\n });\n toDownplay.length && api.dispatchAction({\n type: 'downplay',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toDownplay\n });\n toHighlight.length && api.dispatchAction({\n type: 'highlight',\n escapeConnect: true,\n // Not blur others when highlight in axisPointer.\n notBlur: true,\n batch: toHighlight\n });\n}\n\nfunction findInputAxisInfo(inputAxesInfo, axisInfo) {\n for (var i = 0; i < (inputAxesInfo || []).length; i++) {\n var inputAxisInfo = inputAxesInfo[i];\n\n if (axisInfo.axis.dim === inputAxisInfo.axisDim && axisInfo.axis.model.componentIndex === inputAxisInfo.axisIndex) {\n return inputAxisInfo;\n }\n }\n}\n\nfunction makeMapperParam(axisInfo) {\n var axisModel = axisInfo.axis.model;\n var item = {};\n var dim = item.axisDim = axisInfo.axis.dim;\n item.axisIndex = item[dim + 'AxisIndex'] = axisModel.componentIndex;\n item.axisName = item[dim + 'AxisName'] = axisModel.name;\n item.axisId = item[dim + 'AxisId'] = axisModel.id;\n return item;\n}\n\nfunction illegalPoint(point) {\n return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport AxisView from '../axis/AxisView';\nimport CartesianAxisPointer from './CartesianAxisPointer';\nimport AxisPointerModel from './AxisPointerModel';\nimport AxisPointerView from './AxisPointerView';\nimport { isArray } from 'zrender/lib/core/util';\nimport { collect } from './modelHelper';\nimport axisTrigger from './axisTrigger';\nexport function install(registers) {\n // CartesianAxisPointer is not supposed to be required here. But consider\n // echarts.simple.js and online build tooltip, which only require gridSimple,\n // CartesianAxisPointer should be able to required somewhere.\n AxisView.registerAxisPointerClass('CartesianAxisPointer', CartesianAxisPointer);\n registers.registerComponentModel(AxisPointerModel);\n registers.registerComponentView(AxisPointerView);\n registers.registerPreprocessor(function (option) {\n // Always has a global axisPointerModel for default setting.\n if (option) {\n (!option.axisPointer || option.axisPointer.length === 0) && (option.axisPointer = {});\n var link = option.axisPointer.link; // Normalize to array to avoid object mergin. But if link\n // is not set, remain null/undefined, otherwise it will\n // override existent link setting.\n\n if (link && !isArray(link)) {\n option.axisPointer.link = [link];\n }\n }\n }); // This process should proformed after coordinate systems created\n // and series data processed. So put it on statistic processing stage.\n\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, function (ecModel, api) {\n // Build axisPointerModel, mergin tooltip.axisPointer model for each axis.\n // allAxesInfo should be updated when setOption performed.\n ecModel.getComponent('axisPointer').coordSysAxesInfo = collect(ecModel, api);\n }); // Broadcast to all views.\n\n registers.registerAction({\n type: 'updateAxisPointer',\n event: 'updateAxisPointer',\n update: ':updateAxisPointer'\n }, axisTrigger);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { install as installSimple } from './installSimple';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport { use } from '../../extension';\nexport function install(registers) {\n use(installSimple);\n use(installAxisPointer);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as graphic from '../../util/graphic';\nimport * as viewHelper from './viewHelper';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport AxisBuilder from '../axis/AxisBuilder';\n\nvar PolarAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(PolarAxisPointer, _super);\n\n function PolarAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n PolarAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n\n if (axis.dim === 'angle') {\n this.animationThreshold = Math.PI / 18;\n }\n\n var polar = axis.polar;\n var otherAxis = polar.getOtherAxis(axis);\n var otherExtent = otherAxis.getExtent();\n var coordValue = axis.dataToCoord(value);\n var axisPointerType = axisPointerModel.get('type');\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, polar, coordValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var labelMargin = axisPointerModel.get(['label', 'margin']);\n var labelPos = getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin);\n viewHelper.buildLabelElOption(elOption, axisModel, axisPointerModel, api, labelPos);\n };\n\n return PolarAxisPointer;\n}(BaseAxisPointer);\n\n;\n\nfunction getLabelPosition(value, axisModel, axisPointerModel, polar, labelMargin) {\n var axis = axisModel.axis;\n var coord = axis.dataToCoord(value);\n var axisAngle = polar.getAngleAxis().getExtent()[0];\n axisAngle = axisAngle / 180 * Math.PI;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var position;\n var align;\n var verticalAlign;\n\n if (axis.dim === 'radius') {\n var transform = matrix.create();\n matrix.rotate(transform, transform, axisAngle);\n matrix.translate(transform, transform, [polar.cx, polar.cy]);\n position = graphic.applyTransform([coord, -labelMargin], transform);\n var labelRotation = axisModel.getModel('axisLabel').get('rotate') || 0; // @ts-ignore\n\n var labelLayout = AxisBuilder.innerTextLayout(axisAngle, labelRotation * Math.PI / 180, -1);\n align = labelLayout.textAlign;\n verticalAlign = labelLayout.textVerticalAlign;\n } else {\n // angle axis\n var r = radiusExtent[1];\n position = polar.coordToPoint([r + labelMargin, coord]);\n var cx = polar.cx;\n var cy = polar.cy;\n align = Math.abs(position[0] - cx) / r < 0.3 ? 'center' : position[0] > cx ? 'left' : 'right';\n verticalAlign = Math.abs(position[1] - cy) / r < 0.3 ? 'middle' : position[1] > cy ? 'top' : 'bottom';\n }\n\n return {\n position: position,\n align: align,\n verticalAlign: verticalAlign\n };\n}\n\nvar pointerShapeBuilder = {\n line: function (axis, polar, coordValue, otherExtent) {\n return axis.dim === 'angle' ? {\n type: 'Line',\n shape: viewHelper.makeLineShape(polar.coordToPoint([otherExtent[0], coordValue]), polar.coordToPoint([otherExtent[1], coordValue]))\n } : {\n type: 'Circle',\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: coordValue\n }\n };\n },\n shadow: function (axis, polar, coordValue, otherExtent) {\n var bandWidth = Math.max(1, axis.getBandWidth());\n var radian = Math.PI / 180;\n return axis.dim === 'angle' ? {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(polar.cx, polar.cy, otherExtent[0], otherExtent[1], // In ECharts y is negative if angle is positive\n (-coordValue - bandWidth / 2) * radian, (-coordValue + bandWidth / 2) * radian)\n } : {\n type: 'Sector',\n shape: viewHelper.makeSectorShape(polar.cx, polar.cy, coordValue - bandWidth / 2, coordValue + bandWidth / 2, 0, Math.PI * 2)\n };\n }\n};\nexport default PolarAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar PolarModel =\n/** @class */\nfunction (_super) {\n __extends(PolarModel, _super);\n\n function PolarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PolarModel.type;\n return _this;\n }\n\n PolarModel.prototype.findAxisModel = function (axisType) {\n var foundAxisModel;\n var ecModel = this.ecModel;\n ecModel.eachComponent(axisType, function (axisModel) {\n if (axisModel.getCoordSysModel() === this) {\n foundAxisModel = axisModel;\n }\n }, this);\n return foundAxisModel;\n };\n\n PolarModel.type = 'polar';\n PolarModel.dependencies = ['radiusAxis', 'angleAxis'];\n PolarModel.defaultOption = {\n zlevel: 0,\n z: 0,\n center: ['50%', '50%'],\n radius: '80%'\n };\n return PolarModel;\n}(ComponentModel);\n\nexport default PolarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { SINGLE_REFERRING } from '../../util/model';\n\nvar PolarAxisModel =\n/** @class */\nfunction (_super) {\n __extends(PolarAxisModel, _super);\n\n function PolarAxisModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PolarAxisModel.prototype.getCoordSysModel = function () {\n return this.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n };\n\n PolarAxisModel.type = 'polarAxis';\n return PolarAxisModel;\n}(ComponentModel);\n\nzrUtil.mixin(PolarAxisModel, AxisModelCommonMixin);\nexport { PolarAxisModel };\n\nvar AngleAxisModel =\n/** @class */\nfunction (_super) {\n __extends(AngleAxisModel, _super);\n\n function AngleAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AngleAxisModel.type;\n return _this;\n }\n\n AngleAxisModel.type = 'angleAxis';\n return AngleAxisModel;\n}(PolarAxisModel);\n\nexport { AngleAxisModel };\n\nvar RadiusAxisModel =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxisModel, _super);\n\n function RadiusAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadiusAxisModel.type;\n return _this;\n }\n\n RadiusAxisModel.type = 'radiusAxis';\n return RadiusAxisModel;\n}(PolarAxisModel);\n\nexport { RadiusAxisModel };","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar RadiusAxis =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxis, _super);\n\n function RadiusAxis(scale, radiusExtent) {\n return _super.call(this, 'radius', scale, radiusExtent) || this;\n }\n\n RadiusAxis.prototype.pointToData = function (point, clamp) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n };\n\n return RadiusAxis;\n}(Axis);\n\nRadiusAxis.prototype.dataToRadius = Axis.prototype.dataToCoord;\nRadiusAxis.prototype.radiusToData = Axis.prototype.coordToData;\nexport default RadiusAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as textContain from 'zrender/lib/contain/text';\nimport Axis from '../Axis';\nimport { makeInner } from '../../util/model';\nvar inner = makeInner();\n\nvar AngleAxis =\n/** @class */\nfunction (_super) {\n __extends(AngleAxis, _super);\n\n function AngleAxis(scale, angleExtent) {\n return _super.call(this, 'angle', scale, angleExtent || [0, 360]) || this;\n }\n\n AngleAxis.prototype.pointToData = function (point, clamp) {\n return this.polar.pointToData(point, clamp)[this.dim === 'radius' ? 0 : 1];\n };\n /**\n * Only be called in category axis.\n * Angle axis uses text height to decide interval\n *\n * @override\n * @return {number} Auto interval for cateogry axis tick and label\n */\n\n\n AngleAxis.prototype.calculateCategoryInterval = function () {\n var axis = this;\n var labelModel = axis.getLabelModel();\n var ordinalScale = axis.scale;\n var ordinalExtent = ordinalScale.getExtent(); // Providing this method is for optimization:\n // avoid generating a long array by `getTicks`\n // in large category data case.\n\n var tickCount = ordinalScale.count();\n\n if (ordinalExtent[1] - ordinalExtent[0] < 1) {\n return 0;\n }\n\n var tickValue = ordinalExtent[0];\n var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);\n var unitH = Math.abs(unitSpan); // Not precise, just use height as text width\n // and each distance from axis line yet.\n\n var rect = textContain.getBoundingRect(tickValue == null ? '' : tickValue + '', labelModel.getFont(), 'center', 'top');\n var maxH = Math.max(rect.height, 7);\n var dh = maxH / unitH; // 0/0 is NaN, 1/0 is Infinity.\n\n isNaN(dh) && (dh = Infinity);\n var interval = Math.max(0, Math.floor(dh));\n var cache = inner(axis.model);\n var lastAutoInterval = cache.lastAutoInterval;\n var lastTickCount = cache.lastTickCount; // Use cache to keep interval stable while moving zoom window,\n // otherwise the calculated interval might jitter when the zoom\n // window size is close to the interval-changing size.\n\n if (lastAutoInterval != null && lastTickCount != null && Math.abs(lastAutoInterval - interval) <= 1 && Math.abs(lastTickCount - tickCount) <= 1 // Always choose the bigger one, otherwise the critical\n // point is not the same when zooming in or zooming out.\n && lastAutoInterval > interval) {\n interval = lastAutoInterval;\n } // Only update cache if cache not used, otherwise the\n // changing of interval is too insensitive.\n else {\n cache.lastTickCount = tickCount;\n cache.lastAutoInterval = interval;\n }\n\n return interval;\n };\n\n return AngleAxis;\n}(Axis);\n\nAngleAxis.prototype.dataToAngle = Axis.prototype.dataToCoord;\nAngleAxis.prototype.angleToData = Axis.prototype.coordToData;\nexport default AngleAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport RadiusAxis from './RadiusAxis';\nimport AngleAxis from './AngleAxis';\n\nvar Polar =\n/** @class */\nfunction () {\n function Polar(name) {\n this.dimensions = ['radius', 'angle'];\n this.type = 'polar';\n /**\n * x of polar center\n */\n\n this.cx = 0;\n /**\n * y of polar center\n */\n\n this.cy = 0;\n this._radiusAxis = new RadiusAxis();\n this._angleAxis = new AngleAxis();\n this.axisPointerEnabled = true;\n this.name = name || '';\n this._radiusAxis.polar = this._angleAxis.polar = this;\n }\n /**\n * If contain coord\n */\n\n\n Polar.prototype.containPoint = function (point) {\n var coord = this.pointToCoord(point);\n return this._radiusAxis.contain(coord[0]) && this._angleAxis.contain(coord[1]);\n };\n /**\n * If contain data\n */\n\n\n Polar.prototype.containData = function (data) {\n return this._radiusAxis.containData(data[0]) && this._angleAxis.containData(data[1]);\n };\n\n Polar.prototype.getAxis = function (dim) {\n var key = '_' + dim + 'Axis';\n return this[key];\n };\n\n Polar.prototype.getAxes = function () {\n return [this._radiusAxis, this._angleAxis];\n };\n /**\n * Get axes by type of scale\n */\n\n\n Polar.prototype.getAxesByScale = function (scaleType) {\n var axes = [];\n var angleAxis = this._angleAxis;\n var radiusAxis = this._radiusAxis;\n angleAxis.scale.type === scaleType && axes.push(angleAxis);\n radiusAxis.scale.type === scaleType && axes.push(radiusAxis);\n return axes;\n };\n\n Polar.prototype.getAngleAxis = function () {\n return this._angleAxis;\n };\n\n Polar.prototype.getRadiusAxis = function () {\n return this._radiusAxis;\n };\n\n Polar.prototype.getOtherAxis = function (axis) {\n var angleAxis = this._angleAxis;\n return axis === angleAxis ? this._radiusAxis : angleAxis;\n };\n /**\n * Base axis will be used on stacking.\n *\n */\n\n\n Polar.prototype.getBaseAxis = function () {\n return this.getAxesByScale('ordinal')[0] || this.getAxesByScale('time')[0] || this.getAngleAxis();\n };\n\n Polar.prototype.getTooltipAxes = function (dim) {\n var baseAxis = dim != null && dim !== 'auto' ? this.getAxis(dim) : this.getBaseAxis();\n return {\n baseAxes: [baseAxis],\n otherAxes: [this.getOtherAxis(baseAxis)]\n };\n };\n /**\n * Convert a single data item to (x, y) point.\n * Parameter data is an array which the first element is radius and the second is angle\n */\n\n\n Polar.prototype.dataToPoint = function (data, clamp) {\n return this.coordToPoint([this._radiusAxis.dataToRadius(data[0], clamp), this._angleAxis.dataToAngle(data[1], clamp)]);\n };\n /**\n * Convert a (x, y) point to data\n */\n\n\n Polar.prototype.pointToData = function (point, clamp) {\n var coord = this.pointToCoord(point);\n return [this._radiusAxis.radiusToData(coord[0], clamp), this._angleAxis.angleToData(coord[1], clamp)];\n };\n /**\n * Convert a (x, y) point to (radius, angle) coord\n */\n\n\n Polar.prototype.pointToCoord = function (point) {\n var dx = point[0] - this.cx;\n var dy = point[1] - this.cy;\n var angleAxis = this.getAngleAxis();\n var extent = angleAxis.getExtent();\n var minAngle = Math.min(extent[0], extent[1]);\n var maxAngle = Math.max(extent[0], extent[1]); // Fix fixed extent in polarCreator\n // FIXME\n\n angleAxis.inverse ? minAngle = maxAngle - 360 : maxAngle = minAngle + 360;\n var radius = Math.sqrt(dx * dx + dy * dy);\n dx /= radius;\n dy /= radius;\n var radian = Math.atan2(-dy, dx) / Math.PI * 180; // move to angleExtent\n\n var dir = radian < minAngle ? 1 : -1;\n\n while (radian < minAngle || radian > maxAngle) {\n radian += dir * 360;\n }\n\n return [radius, radian];\n };\n /**\n * Convert a (radius, angle) coord to (x, y) point\n */\n\n\n Polar.prototype.coordToPoint = function (coord) {\n var radius = coord[0];\n var radian = coord[1] / 180 * Math.PI;\n var x = Math.cos(radian) * radius + this.cx; // Inverse the y\n\n var y = -Math.sin(radian) * radius + this.cy;\n return [x, y];\n };\n /**\n * Get ring area of cartesian.\n * Area will have a contain function to determine if a point is in the coordinate system.\n */\n\n\n Polar.prototype.getArea = function () {\n var angleAxis = this.getAngleAxis();\n var radiusAxis = this.getRadiusAxis();\n var radiusExtent = radiusAxis.getExtent().slice();\n radiusExtent[0] > radiusExtent[1] && radiusExtent.reverse();\n var angleExtent = angleAxis.getExtent();\n var RADIAN = Math.PI / 180;\n return {\n cx: this.cx,\n cy: this.cy,\n r0: radiusExtent[0],\n r: radiusExtent[1],\n startAngle: -angleExtent[0] * RADIAN,\n endAngle: -angleExtent[1] * RADIAN,\n clockwise: angleAxis.inverse,\n contain: function (x, y) {\n // It's a ring shape.\n // Start angle and end angle don't matter\n var dx = x - this.cx;\n var dy = y - this.cy;\n var d2 = dx * dx + dy * dy;\n var r = this.r;\n var r0 = this.r0;\n return d2 <= r * r && d2 >= r0 * r0;\n }\n };\n };\n\n Polar.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n };\n\n Polar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n };\n\n return Polar;\n}();\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n var polarModel = finder.polarModel;\n return polarModel && polarModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;\n}\n\nexport default Polar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// TODO Axis scale\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Polar from './Polar';\nimport { parsePercent } from '../../util/number';\nimport { createScaleByModel, niceScaleExtent, getDataDimensionsOnAxis } from '../../coord/axisHelper';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Resize method bound to the polar\n */\n\nfunction resizePolar(polar, polarModel, api) {\n var center = polarModel.get('center');\n var width = api.getWidth();\n var height = api.getHeight();\n polar.cx = parsePercent(center[0], width);\n polar.cy = parsePercent(center[1], height);\n var radiusAxis = polar.getRadiusAxis();\n var size = Math.min(width, height) / 2;\n var radius = polarModel.get('radius');\n\n if (radius == null) {\n radius = [0, '100%'];\n } else if (!zrUtil.isArray(radius)) {\n // r0 = 0\n radius = [0, radius];\n }\n\n var parsedRadius = [parsePercent(radius[0], size), parsePercent(radius[1], size)];\n radiusAxis.inverse ? radiusAxis.setExtent(parsedRadius[1], parsedRadius[0]) : radiusAxis.setExtent(parsedRadius[0], parsedRadius[1]);\n}\n/**\n * Update polar\n */\n\n\nfunction updatePolarScale(ecModel, api) {\n var polar = this;\n var angleAxis = polar.getAngleAxis();\n var radiusAxis = polar.getRadiusAxis(); // Reset scale\n\n angleAxis.scale.setExtent(Infinity, -Infinity);\n radiusAxis.scale.setExtent(Infinity, -Infinity);\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === polar) {\n var data_1 = seriesModel.getData();\n zrUtil.each(getDataDimensionsOnAxis(data_1, 'radius'), function (dim) {\n radiusAxis.scale.unionExtentFromData(data_1, dim);\n });\n zrUtil.each(getDataDimensionsOnAxis(data_1, 'angle'), function (dim) {\n angleAxis.scale.unionExtentFromData(data_1, dim);\n });\n }\n });\n niceScaleExtent(angleAxis.scale, angleAxis.model);\n niceScaleExtent(radiusAxis.scale, radiusAxis.model); // Fix extent of category angle axis\n\n if (angleAxis.type === 'category' && !angleAxis.onBand) {\n var extent = angleAxis.getExtent();\n var diff = 360 / angleAxis.scale.count();\n angleAxis.inverse ? extent[1] += diff : extent[1] -= diff;\n angleAxis.setExtent(extent[0], extent[1]);\n }\n}\n\nfunction isAngleAxisModel(axisModel) {\n return axisModel.mainType === 'angleAxis';\n}\n/**\n * Set common axis properties\n */\n\n\nfunction setAxis(axis, axisModel) {\n axis.type = axisModel.get('type');\n axis.scale = createScaleByModel(axisModel);\n axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';\n axis.inverse = axisModel.get('inverse');\n\n if (isAngleAxisModel(axisModel)) {\n axis.inverse = axis.inverse !== axisModel.get('clockwise');\n var startAngle = axisModel.get('startAngle');\n axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));\n } // Inject axis instance\n\n\n axisModel.axis = axis;\n axis.model = axisModel;\n}\n\nvar polarCreator = {\n dimensions: Polar.prototype.dimensions,\n create: function (ecModel, api) {\n var polarList = [];\n ecModel.eachComponent('polar', function (polarModel, idx) {\n var polar = new Polar(idx + ''); // Inject resize and update method\n\n polar.update = updatePolarScale;\n var radiusAxis = polar.getRadiusAxis();\n var angleAxis = polar.getAngleAxis();\n var radiusAxisModel = polarModel.findAxisModel('radiusAxis');\n var angleAxisModel = polarModel.findAxisModel('angleAxis');\n setAxis(radiusAxis, radiusAxisModel);\n setAxis(angleAxis, angleAxisModel);\n resizePolar(polar, polarModel, api);\n polarList.push(polar);\n polarModel.coordinateSystem = polar;\n polar.model = polarModel;\n }); // Inject coordinateSystem to series\n\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'polar') {\n var polarModel = seriesModel.getReferringComponents('polar', SINGLE_REFERRING).models[0];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!polarModel) {\n throw new Error('Polar \"' + zrUtil.retrieve(seriesModel.get('polarIndex'), seriesModel.get('polarId'), 0) + '\" not found');\n }\n }\n\n seriesModel.coordinateSystem = polarModel.coordinateSystem;\n }\n });\n return polarList;\n }\n};\nexport default polarCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport Model from '../../model/Model';\nimport AxisView from './AxisView';\nimport AxisBuilder from './AxisBuilder';\nimport { getECData } from '../../util/innerStore';\nvar elementList = ['axisLine', 'axisLabel', 'axisTick', 'minorTick', 'splitLine', 'minorSplitLine', 'splitArea'];\n\nfunction getAxisLineShape(polar, rExtent, angle) {\n rExtent[1] > rExtent[0] && (rExtent = rExtent.slice().reverse());\n var start = polar.coordToPoint([rExtent[0], angle]);\n var end = polar.coordToPoint([rExtent[1], angle]);\n return {\n x1: start[0],\n y1: start[1],\n x2: end[0],\n y2: end[1]\n };\n}\n\nfunction getRadiusIdx(polar) {\n var radiusAxis = polar.getRadiusAxis();\n return radiusAxis.inverse ? 0 : 1;\n} // Remove the last tick which will overlap the first tick\n\n\nfunction fixAngleOverlap(list) {\n var firstItem = list[0];\n var lastItem = list[list.length - 1];\n\n if (firstItem && lastItem && Math.abs(Math.abs(firstItem.coord - lastItem.coord) - 360) < 1e-4) {\n list.pop();\n }\n}\n\nvar AngleAxisView =\n/** @class */\nfunction (_super) {\n __extends(AngleAxisView, _super);\n\n function AngleAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = AngleAxisView.type;\n _this.axisPointerClass = 'PolarAxisPointer';\n return _this;\n }\n\n AngleAxisView.prototype.render = function (angleAxisModel, ecModel) {\n this.group.removeAll();\n\n if (!angleAxisModel.get('show')) {\n return;\n }\n\n var angleAxis = angleAxisModel.axis;\n var polar = angleAxis.polar;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var ticksAngles = angleAxis.getTicksCoords();\n var minorTickAngles = angleAxis.getMinorTicksCoords();\n var labels = zrUtil.map(angleAxis.getViewLabels(), function (labelItem) {\n labelItem = zrUtil.clone(labelItem);\n var scale = angleAxis.scale;\n var tickValue = scale.type === 'ordinal' ? scale.getRawOrdinalNumber(labelItem.tickValue) : labelItem.tickValue;\n labelItem.coord = angleAxis.dataToCoord(tickValue);\n return labelItem;\n });\n fixAngleOverlap(labels);\n fixAngleOverlap(ticksAngles);\n zrUtil.each(elementList, function (name) {\n if (angleAxisModel.get([name, 'show']) && (!angleAxis.scale.isBlank() || name === 'axisLine')) {\n angelAxisElementsBuilders[name](this.group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels);\n }\n }, this);\n };\n\n AngleAxisView.type = 'angleAxis';\n return AngleAxisView;\n}(AxisView);\n\nvar angelAxisElementsBuilders = {\n axisLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var lineStyleModel = angleAxisModel.getModel(['axisLine', 'lineStyle']); // extent id of the axis radius (r0 and r)\n\n var rId = getRadiusIdx(polar);\n var r0Id = rId ? 0 : 1;\n var shape;\n\n if (radiusExtent[r0Id] === 0) {\n shape = new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n } else {\n shape = new graphic.Ring({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: radiusExtent[rId],\n r0: radiusExtent[r0Id]\n },\n style: lineStyleModel.getLineStyle(),\n z2: 1,\n silent: true\n });\n }\n\n shape.style.fill = null;\n group.add(shape);\n },\n axisTick: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var tickModel = angleAxisModel.getModel('axisTick');\n var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');\n var radius = radiusExtent[getRadiusIdx(polar)];\n var lines = zrUtil.map(ticksAngles, function (tickAngleItem) {\n return new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], tickAngleItem.coord)\n });\n });\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults(tickModel.getModel('lineStyle').getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n })\n }));\n },\n minorTick: function (group, angleAxisModel, polar, tickAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n var tickModel = angleAxisModel.getModel('axisTick');\n var minorTickModel = angleAxisModel.getModel('minorTick');\n var tickLen = (tickModel.get('inside') ? -1 : 1) * minorTickModel.get('length');\n var radius = radiusExtent[getRadiusIdx(polar)];\n var lines = [];\n\n for (var i = 0; i < minorTickAngles.length; i++) {\n for (var k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, [radius, radius + tickLen], minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults(minorTickModel.getModel('lineStyle').getLineStyle(), zrUtil.defaults(tickModel.getLineStyle(), {\n stroke: angleAxisModel.get(['axisLine', 'lineStyle', 'color'])\n }))\n }));\n },\n axisLabel: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent, labels) {\n var rawCategoryData = angleAxisModel.getCategories(true);\n var commonLabelModel = angleAxisModel.getModel('axisLabel');\n var labelMargin = commonLabelModel.get('margin');\n var triggerEvent = angleAxisModel.get('triggerEvent'); // Use length of ticksAngles because it may remove the last tick to avoid overlapping\n\n zrUtil.each(labels, function (labelItem, idx) {\n var labelModel = commonLabelModel;\n var tickValue = labelItem.tickValue;\n var r = radiusExtent[getRadiusIdx(polar)];\n var p = polar.coordToPoint([r + labelMargin, labelItem.coord]);\n var cx = polar.cx;\n var cy = polar.cy;\n var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3 ? 'center' : p[0] > cx ? 'left' : 'right';\n var labelTextVerticalAlign = Math.abs(p[1] - cy) / r < 0.3 ? 'middle' : p[1] > cy ? 'top' : 'bottom';\n\n if (rawCategoryData && rawCategoryData[tickValue]) {\n var rawCategoryItem = rawCategoryData[tickValue];\n\n if (zrUtil.isObject(rawCategoryItem) && rawCategoryItem.textStyle) {\n labelModel = new Model(rawCategoryItem.textStyle, commonLabelModel, commonLabelModel.ecModel);\n }\n }\n\n var textEl = new graphic.Text({\n silent: AxisBuilder.isLabelSilent(angleAxisModel),\n style: createTextStyle(labelModel, {\n x: p[0],\n y: p[1],\n fill: labelModel.getTextColor() || angleAxisModel.get(['axisLine', 'lineStyle', 'color']),\n text: labelItem.formattedLabel,\n align: labelTextAlign,\n verticalAlign: labelTextVerticalAlign\n })\n });\n group.add(textEl); // Pack data for mouse event\n\n if (triggerEvent) {\n var eventData = AxisBuilder.makeAxisEventDataBase(angleAxisModel);\n eventData.targetType = 'axisLabel';\n eventData.value = labelItem.rawLabel;\n getECData(textEl).eventData = eventData;\n }\n }, this);\n },\n splitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n var splitLineModel = angleAxisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n var lineCount = 0;\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var splitLines = [];\n\n for (var i = 0; i < ticksAngles.length; i++) {\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, ticksAngles[i].coord)\n }));\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyleModel.getLineStyle()),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n }\n },\n minorSplitLine: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!minorTickAngles.length) {\n return;\n }\n\n var minorSplitLineModel = angleAxisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var lines = [];\n\n for (var i = 0; i < minorTickAngles.length; i++) {\n for (var k = 0; k < minorTickAngles[i].length; k++) {\n lines.push(new graphic.Line({\n shape: getAxisLineShape(polar, radiusExtent, minorTickAngles[i][k].coord)\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: lineStyleModel.getLineStyle(),\n silent: true,\n z: angleAxisModel.get('z')\n }));\n },\n splitArea: function (group, angleAxisModel, polar, ticksAngles, minorTickAngles, radiusExtent) {\n if (!ticksAngles.length) {\n return;\n }\n\n var splitAreaModel = angleAxisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var lineCount = 0;\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n var splitAreas = [];\n var RADIAN = Math.PI / 180;\n var prevAngle = -ticksAngles[0].coord * RADIAN;\n var r0 = Math.min(radiusExtent[0], radiusExtent[1]);\n var r1 = Math.max(radiusExtent[0], radiusExtent[1]);\n var clockwise = angleAxisModel.get('clockwise');\n\n for (var i = 1, len = ticksAngles.length; i <= len; i++) {\n var coord = i === len ? ticksAngles[0].coord : ticksAngles[i].coord;\n var colorIndex = lineCount++ % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: r0,\n r: r1,\n startAngle: prevAngle,\n endAngle: -coord * RADIAN,\n clockwise: clockwise\n },\n silent: true\n }));\n prevAngle = -coord * RADIAN;\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\nexport default AngleAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport AxisBuilder from './AxisBuilder';\nimport AxisView from './AxisView';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitLine', 'splitArea', 'minorSplitLine'];\n\nvar RadiusAxisView =\n/** @class */\nfunction (_super) {\n __extends(RadiusAxisView, _super);\n\n function RadiusAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = RadiusAxisView.type;\n _this.axisPointerClass = 'PolarAxisPointer';\n return _this;\n }\n\n RadiusAxisView.prototype.render = function (radiusAxisModel, ecModel) {\n this.group.removeAll();\n\n if (!radiusAxisModel.get('show')) {\n return;\n }\n\n var oldAxisGroup = this._axisGroup;\n var newAxisGroup = this._axisGroup = new graphic.Group();\n this.group.add(newAxisGroup);\n var radiusAxis = radiusAxisModel.axis;\n var polar = radiusAxis.polar;\n var angleAxis = polar.getAngleAxis();\n var ticksCoords = radiusAxis.getTicksCoords();\n var minorTicksCoords = radiusAxis.getMinorTicksCoords();\n var axisAngle = angleAxis.getExtent()[0];\n var radiusExtent = radiusAxis.getExtent();\n var layout = layoutAxis(polar, radiusAxisModel, axisAngle);\n var axisBuilder = new AxisBuilder(radiusAxisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n newAxisGroup.add(axisBuilder.getGroup());\n graphic.groupTransition(oldAxisGroup, newAxisGroup, radiusAxisModel);\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (radiusAxisModel.get([name, 'show']) && !radiusAxis.scale.isBlank()) {\n axisElementBuilders[name](this.group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords);\n }\n }, this);\n };\n\n RadiusAxisView.type = 'radiusAxis';\n return RadiusAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n var splitLineModel = radiusAxisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n var lineCount = 0;\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var splitLines = [];\n\n for (var i = 0; i < ticksCoords.length; i++) {\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: ticksCoords[i].coord\n }\n }));\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitLines.length; i++) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length],\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n }\n },\n minorSplitLine: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords, minorTicksCoords) {\n if (!minorTicksCoords.length) {\n return;\n }\n\n var minorSplitLineModel = radiusAxisModel.getModel('minorSplitLine');\n var lineStyleModel = minorSplitLineModel.getModel('lineStyle');\n var lines = [];\n\n for (var i = 0; i < minorTicksCoords.length; i++) {\n for (var k = 0; k < minorTicksCoords[i].length; k++) {\n lines.push(new graphic.Circle({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r: minorTicksCoords[i][k].coord\n }\n }));\n }\n }\n\n group.add(graphic.mergePath(lines, {\n style: zrUtil.defaults({\n fill: null\n }, lineStyleModel.getLineStyle()),\n silent: true\n }));\n },\n splitArea: function (group, radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {\n if (!ticksCoords.length) {\n return;\n }\n\n var splitAreaModel = radiusAxisModel.getModel('splitArea');\n var areaStyleModel = splitAreaModel.getModel('areaStyle');\n var areaColors = areaStyleModel.get('color');\n var lineCount = 0;\n areaColors = areaColors instanceof Array ? areaColors : [areaColors];\n var splitAreas = [];\n var prevRadius = ticksCoords[0].coord;\n\n for (var i = 1; i < ticksCoords.length; i++) {\n var colorIndex = lineCount++ % areaColors.length;\n splitAreas[colorIndex] = splitAreas[colorIndex] || [];\n splitAreas[colorIndex].push(new graphic.Sector({\n shape: {\n cx: polar.cx,\n cy: polar.cy,\n r0: prevRadius,\n r: ticksCoords[i].coord,\n startAngle: 0,\n endAngle: Math.PI * 2\n },\n silent: true\n }));\n prevRadius = ticksCoords[i].coord;\n } // Simple optimization\n // Batching the lines if color are the same\n\n\n for (var i = 0; i < splitAreas.length; i++) {\n group.add(graphic.mergePath(splitAreas[i], {\n style: zrUtil.defaults({\n fill: areaColors[i % areaColors.length]\n }, areaStyleModel.getAreaStyle()),\n silent: true\n }));\n }\n }\n};\n/**\n * @inner\n */\n\nfunction layoutAxis(polar, radiusAxisModel, axisAngle) {\n return {\n position: [polar.cx, polar.cy],\n rotation: axisAngle / 180 * Math.PI,\n labelDirection: -1,\n tickDirection: -1,\n nameDirection: 1,\n labelRotate: radiusAxisModel.getModel('axisLabel').get('rotate'),\n // Over splitLine and splitArea\n z2: 1\n };\n}\n\nexport default RadiusAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parsePercent } from '../util/number';\nimport { isDimensionStacked } from '../data/helper/dataStackHelper';\n\nfunction getSeriesStackId(seriesModel) {\n return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex;\n}\n\nfunction getAxisKey(polar, axis) {\n return axis.dim + polar.model.componentIndex;\n}\n\nfunction barLayoutPolar(seriesType, ecModel, api) {\n var lastStackCoords = {};\n var barWidthAndOffset = calRadialBar(zrUtil.filter(ecModel.getSeriesByType(seriesType), function (seriesModel) {\n return !ecModel.isSeriesFiltered(seriesModel) && seriesModel.coordinateSystem && seriesModel.coordinateSystem.type === 'polar';\n }));\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n // Check series coordinate, do layout for polar only\n if (seriesModel.coordinateSystem.type !== 'polar') {\n return;\n }\n\n var data = seriesModel.getData();\n var polar = seriesModel.coordinateSystem;\n var baseAxis = polar.getBaseAxis();\n var axisKey = getAxisKey(polar, baseAxis);\n var stackId = getSeriesStackId(seriesModel);\n var columnLayoutInfo = barWidthAndOffset[axisKey][stackId];\n var columnOffset = columnLayoutInfo.offset;\n var columnWidth = columnLayoutInfo.width;\n var valueAxis = polar.getOtherAxis(baseAxis);\n var cx = seriesModel.coordinateSystem.cx;\n var cy = seriesModel.coordinateSystem.cy;\n var barMinHeight = seriesModel.get('barMinHeight') || 0;\n var barMinAngle = seriesModel.get('barMinAngle') || 0;\n lastStackCoords[stackId] = lastStackCoords[stackId] || [];\n var valueDim = data.mapDimension(valueAxis.dim);\n var baseDim = data.mapDimension(baseAxis.dim);\n var stacked = isDimensionStacked(data, valueDim\n /*, baseDim*/\n );\n var clampLayout = baseAxis.dim !== 'radius' || !seriesModel.get('roundCap', true);\n var valueAxisStart = valueAxis.dataToCoord(0);\n\n for (var idx = 0, len = data.count(); idx < len; idx++) {\n var value = data.get(valueDim, idx);\n var baseValue = data.get(baseDim, idx);\n var sign = value >= 0 ? 'p' : 'n';\n var baseCoord = valueAxisStart; // Because of the barMinHeight, we can not use the value in\n // stackResultDimension directly.\n // Only ordinal axis can be stacked.\n\n if (stacked) {\n if (!lastStackCoords[stackId][baseValue]) {\n lastStackCoords[stackId][baseValue] = {\n p: valueAxisStart,\n n: valueAxisStart // Negative stack\n\n };\n } // Should also consider #4243\n\n\n baseCoord = lastStackCoords[stackId][baseValue][sign];\n }\n\n var r0 = void 0;\n var r = void 0;\n var startAngle = void 0;\n var endAngle = void 0; // radial sector\n\n if (valueAxis.dim === 'radius') {\n var radiusSpan = valueAxis.dataToCoord(value) - valueAxisStart;\n var angle = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(radiusSpan) < barMinHeight) {\n radiusSpan = (radiusSpan < 0 ? -1 : 1) * barMinHeight;\n }\n\n r0 = baseCoord;\n r = baseCoord + radiusSpan;\n startAngle = angle - columnOffset;\n endAngle = startAngle - columnWidth;\n stacked && (lastStackCoords[stackId][baseValue][sign] = r);\n } // tangential sector\n else {\n var angleSpan = valueAxis.dataToCoord(value, clampLayout) - valueAxisStart;\n var radius = baseAxis.dataToCoord(baseValue);\n\n if (Math.abs(angleSpan) < barMinAngle) {\n angleSpan = (angleSpan < 0 ? -1 : 1) * barMinAngle;\n }\n\n r0 = radius + columnOffset;\n r = r0 + columnWidth;\n startAngle = baseCoord;\n endAngle = baseCoord + angleSpan; // if the previous stack is at the end of the ring,\n // add a round to differentiate it from origin\n // let extent = angleAxis.getExtent();\n // let stackCoord = angle;\n // if (stackCoord === extent[0] && value > 0) {\n // stackCoord = extent[1];\n // }\n // else if (stackCoord === extent[1] && value < 0) {\n // stackCoord = extent[0];\n // }\n\n stacked && (lastStackCoords[stackId][baseValue][sign] = endAngle);\n }\n\n data.setItemLayout(idx, {\n cx: cx,\n cy: cy,\n r0: r0,\n r: r,\n // Consider that positive angle is anti-clockwise,\n // while positive radian of sector is clockwise\n startAngle: -startAngle * Math.PI / 180,\n endAngle: -endAngle * Math.PI / 180\n });\n }\n });\n}\n/**\n * Calculate bar width and offset for radial bar charts\n */\n\n\nfunction calRadialBar(barSeries) {\n // Columns info on each category axis. Key is polar name\n var columnsMap = {};\n zrUtil.each(barSeries, function (seriesModel, idx) {\n var data = seriesModel.getData();\n var polar = seriesModel.coordinateSystem;\n var baseAxis = polar.getBaseAxis();\n var axisKey = getAxisKey(polar, baseAxis);\n var axisExtent = baseAxis.getExtent();\n var bandWidth = baseAxis.type === 'category' ? baseAxis.getBandWidth() : Math.abs(axisExtent[1] - axisExtent[0]) / data.count();\n var columnsOnAxis = columnsMap[axisKey] || {\n bandWidth: bandWidth,\n remainedWidth: bandWidth,\n autoWidthCount: 0,\n categoryGap: '20%',\n gap: '30%',\n stacks: {}\n };\n var stacks = columnsOnAxis.stacks;\n columnsMap[axisKey] = columnsOnAxis;\n var stackId = getSeriesStackId(seriesModel);\n\n if (!stacks[stackId]) {\n columnsOnAxis.autoWidthCount++;\n }\n\n stacks[stackId] = stacks[stackId] || {\n width: 0,\n maxWidth: 0\n };\n var barWidth = parsePercent(seriesModel.get('barWidth'), bandWidth);\n var barMaxWidth = parsePercent(seriesModel.get('barMaxWidth'), bandWidth);\n var barGap = seriesModel.get('barGap');\n var barCategoryGap = seriesModel.get('barCategoryGap');\n\n if (barWidth && !stacks[stackId].width) {\n barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);\n stacks[stackId].width = barWidth;\n columnsOnAxis.remainedWidth -= barWidth;\n }\n\n barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);\n barGap != null && (columnsOnAxis.gap = barGap);\n barCategoryGap != null && (columnsOnAxis.categoryGap = barCategoryGap);\n });\n var result = {};\n zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {\n result[coordSysName] = {};\n var stacks = columnsOnAxis.stacks;\n var bandWidth = columnsOnAxis.bandWidth;\n var categoryGap = parsePercent(columnsOnAxis.categoryGap, bandWidth);\n var barGapPercent = parsePercent(columnsOnAxis.gap, 1);\n var remainedWidth = columnsOnAxis.remainedWidth;\n var autoWidthCount = columnsOnAxis.autoWidthCount;\n var autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0); // Find if any auto calculated bar exceeded maxBarWidth\n\n zrUtil.each(stacks, function (column, stack) {\n var maxWidth = column.maxWidth;\n\n if (maxWidth && maxWidth < autoWidth) {\n maxWidth = Math.min(maxWidth, remainedWidth);\n\n if (column.width) {\n maxWidth = Math.min(maxWidth, column.width);\n }\n\n remainedWidth -= maxWidth;\n column.width = maxWidth;\n autoWidthCount--;\n }\n }); // Recalculate width again\n\n autoWidth = (remainedWidth - categoryGap) / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);\n autoWidth = Math.max(autoWidth, 0);\n var widthSum = 0;\n var lastColumn;\n zrUtil.each(stacks, function (column, idx) {\n if (!column.width) {\n column.width = autoWidth;\n }\n\n lastColumn = column;\n widthSum += column.width * (1 + barGapPercent);\n });\n\n if (lastColumn) {\n widthSum -= lastColumn.width * barGapPercent;\n }\n\n var offset = -widthSum / 2;\n zrUtil.each(stacks, function (column, stackId) {\n result[coordSysName][stackId] = result[coordSysName][stackId] || {\n offset: offset,\n width: column.width\n };\n offset += column.width * (1 + barGapPercent);\n });\n });\n return result;\n}\n\nexport default barLayoutPolar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { use } from '../../extension';\nimport AxisView from '../axis/AxisView';\nimport PolarAxisPointer from '../axisPointer/PolarAxisPointer';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport PolarModel from '../../coord/polar/PolarModel';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport { AngleAxisModel, RadiusAxisModel } from '../../coord/polar/AxisModel';\nimport polarCreator from '../../coord/polar/polarCreator';\nimport AngleAxisView from '../axis/AngleAxisView';\nimport RadiusAxisView from '../axis/RadiusAxisView';\nimport ComponentView from '../../view/Component';\nimport { curry } from 'zrender/lib/core/util';\nimport barLayoutPolar from '../../layout/barPolar';\nvar angleAxisExtraOption = {\n startAngle: 90,\n clockwise: true,\n splitNumber: 12,\n axisLabel: {\n rotate: 0\n }\n};\nvar radiusAxisExtraOption = {\n splitNumber: 5\n};\n\nvar PolarView =\n/** @class */\nfunction (_super) {\n __extends(PolarView, _super);\n\n function PolarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PolarView.type;\n return _this;\n }\n\n PolarView.type = 'polar';\n return PolarView;\n}(ComponentView);\n\nexport function install(registers) {\n use(installAxisPointer);\n AxisView.registerAxisPointerClass('PolarAxisPointer', PolarAxisPointer);\n registers.registerCoordinateSystem('polar', polarCreator);\n registers.registerComponentModel(PolarModel);\n registers.registerComponentView(PolarView); // Model and view for angleAxis and radiusAxis\n\n axisModelCreator(registers, 'angle', AngleAxisModel, angleAxisExtraOption);\n axisModelCreator(registers, 'radius', RadiusAxisModel, radiusAxisExtraOption);\n registers.registerComponentView(AngleAxisView);\n registers.registerComponentView(RadiusAxisView);\n registers.registerLayout(curry(barLayoutPolar, 'bar'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport function layout(axisModel, opt) {\n opt = opt || {};\n var single = axisModel.coordinateSystem;\n var axis = axisModel.axis;\n var layout = {};\n var axisPosition = axis.position;\n var orient = axis.orient;\n var rect = single.getRect();\n var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n var positionMap = {\n horizontal: {\n top: rectBound[2],\n bottom: rectBound[3]\n },\n vertical: {\n left: rectBound[0],\n right: rectBound[1]\n }\n };\n layout.position = [orient === 'vertical' ? positionMap.vertical[axisPosition] : rectBound[0], orient === 'horizontal' ? positionMap.horizontal[axisPosition] : rectBound[3]];\n var r = {\n horizontal: 0,\n vertical: 1\n };\n layout.rotation = Math.PI / 2 * r[orient];\n var directionMap = {\n top: -1,\n bottom: 1,\n right: 1,\n left: -1\n };\n layout.labelDirection = layout.tickDirection = layout.nameDirection = directionMap[axisPosition];\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (zrUtil.retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n }\n\n var labelRotation = opt.rotate;\n labelRotation == null && (labelRotation = axisModel.get(['axisLabel', 'rotate']));\n layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;\n layout.z2 = 1;\n return layout;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport AxisBuilder from './AxisBuilder';\nimport * as graphic from '../../util/graphic';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nimport AxisView from './AxisView';\nimport { rectCoordAxisBuildSplitArea, rectCoordAxisHandleRemove } from './axisSplitHelper';\nvar axisBuilderAttrs = ['axisLine', 'axisTickLabel', 'axisName'];\nvar selfBuilderAttrs = ['splitArea', 'splitLine'];\n\nvar SingleAxisView =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisView, _super);\n\n function SingleAxisView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleAxisView.type;\n _this.axisPointerClass = 'SingleAxisPointer';\n return _this;\n }\n\n SingleAxisView.prototype.render = function (axisModel, ecModel, api, payload) {\n var group = this.group;\n group.removeAll();\n var oldAxisGroup = this._axisGroup;\n this._axisGroup = new graphic.Group();\n var layout = singleAxisHelper.layout(axisModel);\n var axisBuilder = new AxisBuilder(axisModel, layout);\n zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);\n group.add(this._axisGroup);\n group.add(axisBuilder.getGroup());\n zrUtil.each(selfBuilderAttrs, function (name) {\n if (axisModel.get([name, 'show'])) {\n axisElementBuilders[name](this, this.group, this._axisGroup, axisModel);\n }\n }, this);\n graphic.groupTransition(oldAxisGroup, this._axisGroup, axisModel);\n\n _super.prototype.render.call(this, axisModel, ecModel, api, payload);\n };\n\n SingleAxisView.prototype.remove = function () {\n rectCoordAxisHandleRemove(this);\n };\n\n SingleAxisView.type = 'singleAxis';\n return SingleAxisView;\n}(AxisView);\n\nvar axisElementBuilders = {\n splitLine: function (axisView, group, axisGroup, axisModel) {\n var axis = axisModel.axis;\n\n if (axis.scale.isBlank()) {\n return;\n }\n\n var splitLineModel = axisModel.getModel('splitLine');\n var lineStyleModel = splitLineModel.getModel('lineStyle');\n var lineColors = lineStyleModel.get('color');\n lineColors = lineColors instanceof Array ? lineColors : [lineColors];\n var gridRect = axisModel.coordinateSystem.getRect();\n var isHorizontal = axis.isHorizontal();\n var splitLines = [];\n var lineCount = 0;\n var ticksCoords = axis.getTicksCoords({\n tickModel: splitLineModel\n });\n var p1 = [];\n var p2 = [];\n\n for (var i = 0; i < ticksCoords.length; ++i) {\n var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord);\n\n if (isHorizontal) {\n p1[0] = tickCoord;\n p1[1] = gridRect.y;\n p2[0] = tickCoord;\n p2[1] = gridRect.y + gridRect.height;\n } else {\n p1[0] = gridRect.x;\n p1[1] = tickCoord;\n p2[0] = gridRect.x + gridRect.width;\n p2[1] = tickCoord;\n }\n\n var colorIndex = lineCount++ % lineColors.length;\n splitLines[colorIndex] = splitLines[colorIndex] || [];\n splitLines[colorIndex].push(new graphic.Line({\n subPixelOptimize: true,\n shape: {\n x1: p1[0],\n y1: p1[1],\n x2: p2[0],\n y2: p2[1]\n },\n silent: true\n }));\n }\n\n var lineStyle = lineStyleModel.getLineStyle(['color']);\n\n for (var i = 0; i < splitLines.length; ++i) {\n group.add(graphic.mergePath(splitLines[i], {\n style: zrUtil.defaults({\n stroke: lineColors[i % lineColors.length]\n }, lineStyle),\n silent: true\n }));\n }\n },\n splitArea: function (axisView, group, axisGroup, axisModel) {\n rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, axisModel);\n }\n};\nexport default SingleAxisView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\nimport { AxisModelCommonMixin } from '../axisModelCommonMixin';\nimport { mixin } from 'zrender/lib/core/util';\n\nvar SingleAxisModel =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisModel, _super);\n\n function SingleAxisModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleAxisModel.type;\n return _this;\n }\n\n SingleAxisModel.prototype.getCoordSysModel = function () {\n return this;\n };\n\n SingleAxisModel.type = 'singleAxis';\n SingleAxisModel.layoutMode = 'box';\n SingleAxisModel.defaultOption = {\n left: '5%',\n top: '5%',\n right: '5%',\n bottom: '5%',\n type: 'value',\n position: 'bottom',\n orient: 'horizontal',\n axisLine: {\n show: true,\n lineStyle: {\n width: 1,\n type: 'solid'\n }\n },\n // Single coordinate system and single axis is the,\n // which is used as the parent tooltip model.\n // same model, so we set default tooltip show as true.\n tooltip: {\n show: true\n },\n axisTick: {\n show: true,\n length: 6,\n lineStyle: {\n width: 1\n }\n },\n axisLabel: {\n show: true,\n interval: 'auto'\n },\n splitLine: {\n show: true,\n lineStyle: {\n type: 'dashed',\n opacity: 0.2\n }\n }\n };\n return SingleAxisModel;\n}(ComponentModel);\n\nmixin(SingleAxisModel, AxisModelCommonMixin.prototype);\nexport default SingleAxisModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../Axis';\n\nvar SingleAxis =\n/** @class */\nfunction (_super) {\n __extends(SingleAxis, _super);\n\n function SingleAxis(dim, scale, coordExtent, axisType, position) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n _this.position = position || 'bottom';\n return _this;\n }\n /**\n * Judge the orient of the axis.\n */\n\n\n SingleAxis.prototype.isHorizontal = function () {\n var position = this.position;\n return position === 'top' || position === 'bottom';\n };\n\n SingleAxis.prototype.pointToData = function (point, clamp) {\n return this.coordinateSystem.pointToData(point)[0];\n };\n\n return SingleAxis;\n}(Axis);\n\nexport default SingleAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinates system.\n */\nimport SingleAxis from './SingleAxis';\nimport * as axisHelper from '../axisHelper';\nimport { getLayoutRect } from '../../util/layout';\nimport { each } from 'zrender/lib/core/util';\n/**\n * Create a single coordinates system.\n */\n\nvar Single =\n/** @class */\nfunction () {\n function Single(axisModel, ecModel, api) {\n this.type = 'single';\n this.dimension = 'single';\n /**\n * Add it just for draw tooltip.\n */\n\n this.dimensions = ['single'];\n this.axisPointerEnabled = true;\n this.model = axisModel;\n\n this._init(axisModel, ecModel, api);\n }\n /**\n * Initialize single coordinate system.\n */\n\n\n Single.prototype._init = function (axisModel, ecModel, api) {\n var dim = this.dimension;\n var axis = new SingleAxis(dim, axisHelper.createScaleByModel(axisModel), [0, 0], axisModel.get('type'), axisModel.get('position'));\n var isCategory = axis.type === 'category';\n axis.onBand = isCategory && axisModel.get('boundaryGap');\n axis.inverse = axisModel.get('inverse');\n axis.orient = axisModel.get('orient');\n axisModel.axis = axis;\n axis.model = axisModel;\n axis.coordinateSystem = this;\n this._axis = axis;\n };\n /**\n * Update axis scale after data processed\n */\n\n\n Single.prototype.update = function (ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.coordinateSystem === this) {\n var data_1 = seriesModel.getData();\n each(data_1.mapDimensionsAll(this.dimension), function (dim) {\n this._axis.scale.unionExtentFromData(data_1, dim);\n }, this);\n axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);\n }\n }, this);\n };\n /**\n * Resize the single coordinate system.\n */\n\n\n Single.prototype.resize = function (axisModel, api) {\n this._rect = getLayoutRect({\n left: axisModel.get('left'),\n top: axisModel.get('top'),\n right: axisModel.get('right'),\n bottom: axisModel.get('bottom'),\n width: axisModel.get('width'),\n height: axisModel.get('height')\n }, {\n width: api.getWidth(),\n height: api.getHeight()\n });\n\n this._adjustAxis();\n };\n\n Single.prototype.getRect = function () {\n return this._rect;\n };\n\n Single.prototype._adjustAxis = function () {\n var rect = this._rect;\n var axis = this._axis;\n var isHorizontal = axis.isHorizontal();\n var extent = isHorizontal ? [0, rect.width] : [0, rect.height];\n var idx = axis.reverse ? 1 : 0;\n axis.setExtent(extent[idx], extent[1 - idx]);\n\n this._updateAxisTransform(axis, isHorizontal ? rect.x : rect.y);\n };\n\n Single.prototype._updateAxisTransform = function (axis, coordBase) {\n var axisExtent = axis.getExtent();\n var extentSum = axisExtent[0] + axisExtent[1];\n var isHorizontal = axis.isHorizontal();\n axis.toGlobalCoord = isHorizontal ? function (coord) {\n return coord + coordBase;\n } : function (coord) {\n return extentSum - coord + coordBase;\n };\n axis.toLocalCoord = isHorizontal ? function (coord) {\n return coord - coordBase;\n } : function (coord) {\n return extentSum - coord + coordBase;\n };\n };\n /**\n * Get axis.\n */\n\n\n Single.prototype.getAxis = function () {\n return this._axis;\n };\n /**\n * Get axis, add it just for draw tooltip.\n */\n\n\n Single.prototype.getBaseAxis = function () {\n return this._axis;\n };\n\n Single.prototype.getAxes = function () {\n return [this._axis];\n };\n\n Single.prototype.getTooltipAxes = function () {\n return {\n baseAxes: [this.getAxis()],\n // Empty otherAxes\n otherAxes: []\n };\n };\n /**\n * If contain point.\n */\n\n\n Single.prototype.containPoint = function (point) {\n var rect = this.getRect();\n var axis = this.getAxis();\n var orient = axis.orient;\n\n if (orient === 'horizontal') {\n return axis.contain(axis.toLocalCoord(point[0])) && point[1] >= rect.y && point[1] <= rect.y + rect.height;\n } else {\n return axis.contain(axis.toLocalCoord(point[1])) && point[0] >= rect.y && point[0] <= rect.y + rect.height;\n }\n };\n\n Single.prototype.pointToData = function (point) {\n var axis = this.getAxis();\n return [axis.coordToData(axis.toLocalCoord(point[axis.orient === 'horizontal' ? 0 : 1]))];\n };\n /**\n * Convert the series data to concrete point.\n * Can be [val] | val\n */\n\n\n Single.prototype.dataToPoint = function (val) {\n var axis = this.getAxis();\n var rect = this.getRect();\n var pt = [];\n var idx = axis.orient === 'horizontal' ? 0 : 1;\n\n if (val instanceof Array) {\n val = val[0];\n }\n\n pt[idx] = axis.toGlobalCoord(axis.dataToCoord(+val));\n pt[1 - idx] = idx === 0 ? rect.y + rect.height / 2 : rect.x + rect.width / 2;\n return pt;\n };\n\n Single.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.dataToPoint(value) : null;\n };\n\n Single.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? this.pointToData(pixel) : null;\n };\n\n return Single;\n}();\n\nfunction getCoordSys(finder) {\n var seriesModel = finder.seriesModel;\n var singleModel = finder.singleAxisModel;\n return singleModel && singleModel.coordinateSystem || seriesModel && seriesModel.coordinateSystem;\n}\n\nexport default Single;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * Single coordinate system creator.\n */\nimport Single from './Single';\nimport { SINGLE_REFERRING } from '../../util/model';\n/**\n * Create single coordinate system and inject it into seriesModel.\n */\n\nfunction create(ecModel, api) {\n var singles = [];\n ecModel.eachComponent('singleAxis', function (axisModel, idx) {\n var single = new Single(axisModel, ecModel, api);\n single.name = 'single_' + idx;\n single.resize(axisModel, api);\n axisModel.coordinateSystem = single;\n singles.push(single);\n });\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'singleAxis') {\n var singleAxisModel = seriesModel.getReferringComponents('singleAxis', SINGLE_REFERRING).models[0];\n seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;\n }\n });\n return singles;\n}\n\nvar singleCreator = {\n create: create,\n dimensions: Single.prototype.dimensions\n};\nexport default singleCreator;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BaseAxisPointer from './BaseAxisPointer';\nimport * as viewHelper from './viewHelper';\nimport * as singleAxisHelper from '../../coord/single/singleAxisHelper';\nvar XY = ['x', 'y'];\nvar WH = ['width', 'height'];\n\nvar SingleAxisPointer =\n/** @class */\nfunction (_super) {\n __extends(SingleAxisPointer, _super);\n\n function SingleAxisPointer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.makeElOption = function (elOption, value, axisModel, axisPointerModel, api) {\n var axis = axisModel.axis;\n var coordSys = axis.coordinateSystem;\n var otherExtent = getGlobalExtent(coordSys, 1 - getPointDimIndex(axis));\n var pixelValue = coordSys.dataToPoint(value)[0];\n var axisPointerType = axisPointerModel.get('type');\n\n if (axisPointerType && axisPointerType !== 'none') {\n var elStyle = viewHelper.buildElStyle(axisPointerModel);\n var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);\n pointerOption.style = elStyle;\n elOption.graphicKey = pointerOption.type;\n elOption.pointer = pointerOption;\n }\n\n var layoutInfo = singleAxisHelper.layout(axisModel);\n viewHelper.buildCartesianSingleLabelElOption( // @ts-ignore\n value, elOption, layoutInfo, axisModel, axisPointerModel, api);\n };\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.getHandleTransform = function (value, axisModel, axisPointerModel) {\n var layoutInfo = singleAxisHelper.layout(axisModel, {\n labelInside: false\n }); // @ts-ignore\n\n layoutInfo.labelMargin = axisPointerModel.get(['handle', 'margin']);\n var position = viewHelper.getTransformedPosition(axisModel.axis, value, layoutInfo);\n return {\n x: position[0],\n y: position[1],\n rotation: layoutInfo.rotation + (layoutInfo.labelDirection < 0 ? Math.PI : 0)\n };\n };\n /**\n * @override\n */\n\n\n SingleAxisPointer.prototype.updateHandleTransform = function (transform, delta, axisModel, axisPointerModel) {\n var axis = axisModel.axis;\n var coordSys = axis.coordinateSystem;\n var dimIndex = getPointDimIndex(axis);\n var axisExtent = getGlobalExtent(coordSys, dimIndex);\n var currPosition = [transform.x, transform.y];\n currPosition[dimIndex] += delta[dimIndex];\n currPosition[dimIndex] = Math.min(axisExtent[1], currPosition[dimIndex]);\n currPosition[dimIndex] = Math.max(axisExtent[0], currPosition[dimIndex]);\n var otherExtent = getGlobalExtent(coordSys, 1 - dimIndex);\n var cursorOtherValue = (otherExtent[1] + otherExtent[0]) / 2;\n var cursorPoint = [cursorOtherValue, cursorOtherValue];\n cursorPoint[dimIndex] = currPosition[dimIndex];\n return {\n x: currPosition[0],\n y: currPosition[1],\n rotation: transform.rotation,\n cursorPoint: cursorPoint,\n tooltipOption: {\n verticalAlign: 'middle'\n }\n };\n };\n\n return SingleAxisPointer;\n}(BaseAxisPointer);\n\nvar pointerShapeBuilder = {\n line: function (axis, pixelValue, otherExtent) {\n var targetShape = viewHelper.makeLineShape([pixelValue, otherExtent[0]], [pixelValue, otherExtent[1]], getPointDimIndex(axis));\n return {\n type: 'Line',\n subPixelOptimize: true,\n shape: targetShape\n };\n },\n shadow: function (axis, pixelValue, otherExtent) {\n var bandWidth = axis.getBandWidth();\n var span = otherExtent[1] - otherExtent[0];\n return {\n type: 'Rect',\n shape: viewHelper.makeRectShape([pixelValue - bandWidth / 2, otherExtent[0]], [bandWidth, span], getPointDimIndex(axis))\n };\n }\n};\n\nfunction getPointDimIndex(axis) {\n return axis.isHorizontal() ? 0 : 1;\n}\n\nfunction getGlobalExtent(coordSys, dimIndex) {\n var rect = coordSys.getRect();\n return [rect[XY[dimIndex]], rect[XY[dimIndex]] + rect[WH[dimIndex]]];\n}\n\nexport default SingleAxisPointer;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { use } from '../../extension';\nimport ComponentView from '../../view/Component';\nimport SingleAxisView from '../axis/SingleAxisView';\nimport axisModelCreator from '../../coord/axisModelCreator';\nimport SingleAxisModel from '../../coord/single/AxisModel';\nimport singleCreator from '../../coord/single/singleCreator';\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport AxisView from '../axis/AxisView';\nimport SingleAxisPointer from '../axisPointer/SingleAxisPointer';\n\nvar SingleView =\n/** @class */\nfunction (_super) {\n __extends(SingleView, _super);\n\n function SingleView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SingleView.type;\n return _this;\n }\n\n SingleView.type = 'single';\n return SingleView;\n}(ComponentView);\n\nexport function install(registers) {\n use(installAxisPointer);\n AxisView.registerAxisPointerClass('SingleAxisPointer', SingleAxisPointer);\n registers.registerComponentView(SingleView); // Axis\n\n registers.registerComponentView(SingleAxisView);\n registers.registerComponentModel(SingleAxisModel);\n axisModelCreator(registers, 'single', SingleAxisModel, SingleAxisModel.defaultOption);\n registers.registerCoordinateSystem('single', singleCreator);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { getLayoutParams, sizeCalculable, mergeLayoutParam } from '../../util/layout';\n\nvar CalendarModel =\n/** @class */\nfunction (_super) {\n __extends(CalendarModel, _super);\n\n function CalendarModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CalendarModel.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n CalendarModel.prototype.init = function (option, parentModel, ecModel) {\n var inputPositionParams = getLayoutParams(option);\n\n _super.prototype.init.apply(this, arguments);\n\n mergeAndNormalizeLayoutParams(option, inputPositionParams);\n };\n /**\n * @override\n */\n\n\n CalendarModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n mergeAndNormalizeLayoutParams(this.option, option);\n };\n\n CalendarModel.prototype.getCellSize = function () {\n // Has been normalized\n return this.option.cellSize;\n };\n\n CalendarModel.type = 'calendar';\n CalendarModel.defaultOption = {\n zlevel: 0,\n z: 2,\n left: 80,\n top: 60,\n cellSize: 20,\n // horizontal vertical\n orient: 'horizontal',\n // month separate line style\n splitLine: {\n show: true,\n lineStyle: {\n color: '#000',\n width: 1,\n type: 'solid'\n }\n },\n // rect style temporarily unused emphasis\n itemStyle: {\n color: '#fff',\n borderWidth: 1,\n borderColor: '#ccc'\n },\n // week text style\n dayLabel: {\n show: true,\n firstDay: 0,\n // start end\n position: 'start',\n margin: '50%',\n nameMap: 'en',\n color: '#000'\n },\n // month text style\n monthLabel: {\n show: true,\n // start end\n position: 'start',\n margin: 5,\n // center or left\n align: 'center',\n // cn en []\n nameMap: 'en',\n formatter: null,\n color: '#000'\n },\n // year text style\n yearLabel: {\n show: true,\n // top bottom left right\n position: null,\n margin: 30,\n formatter: null,\n color: '#ccc',\n fontFamily: 'sans-serif',\n fontWeight: 'bolder',\n fontSize: 20\n }\n };\n return CalendarModel;\n}(ComponentModel);\n\nfunction mergeAndNormalizeLayoutParams(target, raw) {\n // Normalize cellSize\n var cellSize = target.cellSize;\n var cellSizeArr;\n\n if (!zrUtil.isArray(cellSize)) {\n cellSizeArr = target.cellSize = [cellSize, cellSize];\n } else {\n cellSizeArr = cellSize;\n }\n\n if (cellSizeArr.length === 1) {\n cellSizeArr[1] = cellSizeArr[0];\n }\n\n var ignoreSize = zrUtil.map([0, 1], function (hvIdx) {\n // If user have set `width` or both `left` and `right`, cellSizeArr\n // will be automatically set to 'auto', otherwise the default\n // setting of cellSizeArr will make `width` setting not work.\n if (sizeCalculable(raw, hvIdx)) {\n cellSizeArr[hvIdx] = 'auto';\n }\n\n return cellSizeArr[hvIdx] != null && cellSizeArr[hvIdx] !== 'auto';\n });\n mergeLayoutParam(target, raw, {\n type: 'box',\n ignoreSize: ignoreSize\n });\n}\n\nexport default CalendarModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport ComponentView from '../../view/Component';\nvar MONTH_TEXT = {\n EN: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n CN: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']\n};\nvar WEEK_TEXT = {\n EN: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n CN: ['日', '一', '二', '三', '四', '五', '六']\n};\n\nvar CalendarView =\n/** @class */\nfunction (_super) {\n __extends(CalendarView, _super);\n\n function CalendarView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = CalendarView.type;\n return _this;\n }\n\n CalendarView.prototype.render = function (calendarModel, ecModel, api) {\n var group = this.group;\n group.removeAll();\n var coordSys = calendarModel.coordinateSystem; // range info\n\n var rangeData = coordSys.getRangeInfo();\n var orient = coordSys.getOrient();\n\n this._renderDayRect(calendarModel, rangeData, group); // _renderLines must be called prior to following function\n\n\n this._renderLines(calendarModel, rangeData, orient, group);\n\n this._renderYearText(calendarModel, rangeData, orient, group);\n\n this._renderMonthText(calendarModel, orient, group);\n\n this._renderWeekText(calendarModel, rangeData, orient, group);\n }; // render day rect\n\n\n CalendarView.prototype._renderDayRect = function (calendarModel, rangeData, group) {\n var coordSys = calendarModel.coordinateSystem;\n var itemRectStyleModel = calendarModel.getModel('itemStyle').getItemStyle();\n var sw = coordSys.getCellWidth();\n var sh = coordSys.getCellHeight();\n\n for (var i = rangeData.start.time; i <= rangeData.end.time; i = coordSys.getNextNDay(i, 1).time) {\n var point = coordSys.dataToRect([i], false).tl; // every rect\n\n var rect = new graphic.Rect({\n shape: {\n x: point[0],\n y: point[1],\n width: sw,\n height: sh\n },\n cursor: 'default',\n style: itemRectStyleModel\n });\n group.add(rect);\n }\n }; // render separate line\n\n\n CalendarView.prototype._renderLines = function (calendarModel, rangeData, orient, group) {\n var self = this;\n var coordSys = calendarModel.coordinateSystem;\n var lineStyleModel = calendarModel.getModel(['splitLine', 'lineStyle']).getLineStyle();\n var show = calendarModel.get(['splitLine', 'show']);\n var lineWidth = lineStyleModel.lineWidth;\n this._tlpoints = [];\n this._blpoints = [];\n this._firstDayOfMonth = [];\n this._firstDayPoints = [];\n var firstDay = rangeData.start;\n\n for (var i = 0; firstDay.time <= rangeData.end.time; i++) {\n addPoints(firstDay.formatedDate);\n\n if (i === 0) {\n firstDay = coordSys.getDateInfo(rangeData.start.y + '-' + rangeData.start.m);\n }\n\n var date = firstDay.date;\n date.setMonth(date.getMonth() + 1);\n firstDay = coordSys.getDateInfo(date);\n }\n\n addPoints(coordSys.getNextNDay(rangeData.end.time, 1).formatedDate);\n\n function addPoints(date) {\n self._firstDayOfMonth.push(coordSys.getDateInfo(date));\n\n self._firstDayPoints.push(coordSys.dataToRect([date], false).tl);\n\n var points = self._getLinePointsOfOneWeek(calendarModel, date, orient);\n\n self._tlpoints.push(points[0]);\n\n self._blpoints.push(points[points.length - 1]);\n\n show && self._drawSplitline(points, lineStyleModel, group);\n } // render top/left line\n\n\n show && this._drawSplitline(self._getEdgesPoints(self._tlpoints, lineWidth, orient), lineStyleModel, group); // render bottom/right line\n\n show && this._drawSplitline(self._getEdgesPoints(self._blpoints, lineWidth, orient), lineStyleModel, group);\n }; // get points at both ends\n\n\n CalendarView.prototype._getEdgesPoints = function (points, lineWidth, orient) {\n var rs = [points[0].slice(), points[points.length - 1].slice()];\n var idx = orient === 'horizontal' ? 0 : 1; // both ends of the line are extend half lineWidth\n\n rs[0][idx] = rs[0][idx] - lineWidth / 2;\n rs[1][idx] = rs[1][idx] + lineWidth / 2;\n return rs;\n }; // render split line\n\n\n CalendarView.prototype._drawSplitline = function (points, lineStyle, group) {\n var poyline = new graphic.Polyline({\n z2: 20,\n shape: {\n points: points\n },\n style: lineStyle\n });\n group.add(poyline);\n }; // render month line of one week points\n\n\n CalendarView.prototype._getLinePointsOfOneWeek = function (calendarModel, date, orient) {\n var coordSys = calendarModel.coordinateSystem;\n var parsedDate = coordSys.getDateInfo(date);\n var points = [];\n\n for (var i = 0; i < 7; i++) {\n var tmpD = coordSys.getNextNDay(parsedDate.time, i);\n var point = coordSys.dataToRect([tmpD.time], false);\n points[2 * tmpD.day] = point.tl;\n points[2 * tmpD.day + 1] = point[orient === 'horizontal' ? 'bl' : 'tr'];\n }\n\n return points;\n };\n\n CalendarView.prototype._formatterLabel = function (formatter, params) {\n if (typeof formatter === 'string' && formatter) {\n return formatUtil.formatTplSimple(formatter, params);\n }\n\n if (typeof formatter === 'function') {\n return formatter(params);\n }\n\n return params.nameMap;\n };\n\n CalendarView.prototype._yearTextPositionControl = function (textEl, point, orient, position, margin) {\n var x = point[0];\n var y = point[1];\n var aligns = ['center', 'bottom'];\n\n if (position === 'bottom') {\n y += margin;\n aligns = ['center', 'top'];\n } else if (position === 'left') {\n x -= margin;\n } else if (position === 'right') {\n x += margin;\n aligns = ['center', 'top'];\n } else {\n // top\n y -= margin;\n }\n\n var rotate = 0;\n\n if (position === 'left' || position === 'right') {\n rotate = Math.PI / 2;\n }\n\n return {\n rotation: rotate,\n x: x,\n y: y,\n style: {\n align: aligns[0],\n verticalAlign: aligns[1]\n }\n };\n }; // render year\n\n\n CalendarView.prototype._renderYearText = function (calendarModel, rangeData, orient, group) {\n var yearLabel = calendarModel.getModel('yearLabel');\n\n if (!yearLabel.get('show')) {\n return;\n }\n\n var margin = yearLabel.get('margin');\n var pos = yearLabel.get('position');\n\n if (!pos) {\n pos = orient !== 'horizontal' ? 'top' : 'left';\n }\n\n var points = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]];\n var xc = (points[0][0] + points[1][0]) / 2;\n var yc = (points[0][1] + points[1][1]) / 2;\n var idx = orient === 'horizontal' ? 0 : 1;\n var posPoints = {\n top: [xc, points[idx][1]],\n bottom: [xc, points[1 - idx][1]],\n left: [points[1 - idx][0], yc],\n right: [points[idx][0], yc]\n };\n var name = rangeData.start.y;\n\n if (+rangeData.end.y > +rangeData.start.y) {\n name = name + '-' + rangeData.end.y;\n }\n\n var formatter = yearLabel.get('formatter');\n var params = {\n start: rangeData.start.y,\n end: rangeData.end.y,\n nameMap: name\n };\n\n var content = this._formatterLabel(formatter, params);\n\n var yearText = new graphic.Text({\n z2: 30,\n style: createTextStyle(yearLabel, {\n text: content\n })\n });\n yearText.attr(this._yearTextPositionControl(yearText, posPoints[pos], orient, pos, margin));\n group.add(yearText);\n };\n\n CalendarView.prototype._monthTextPositionControl = function (point, isCenter, orient, position, margin) {\n var align = 'left';\n var vAlign = 'top';\n var x = point[0];\n var y = point[1];\n\n if (orient === 'horizontal') {\n y = y + margin;\n\n if (isCenter) {\n align = 'center';\n }\n\n if (position === 'start') {\n vAlign = 'bottom';\n }\n } else {\n x = x + margin;\n\n if (isCenter) {\n vAlign = 'middle';\n }\n\n if (position === 'start') {\n align = 'right';\n }\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }; // render month and year text\n\n\n CalendarView.prototype._renderMonthText = function (calendarModel, orient, group) {\n var monthLabel = calendarModel.getModel('monthLabel');\n\n if (!monthLabel.get('show')) {\n return;\n }\n\n var nameMap = monthLabel.get('nameMap');\n var margin = monthLabel.get('margin');\n var pos = monthLabel.get('position');\n var align = monthLabel.get('align');\n var termPoints = [this._tlpoints, this._blpoints];\n\n if (zrUtil.isString(nameMap)) {\n nameMap = MONTH_TEXT[nameMap.toUpperCase()] || [];\n }\n\n var idx = pos === 'start' ? 0 : 1;\n var axis = orient === 'horizontal' ? 0 : 1;\n margin = pos === 'start' ? -margin : margin;\n var isCenter = align === 'center';\n\n for (var i = 0; i < termPoints[idx].length - 1; i++) {\n var tmp = termPoints[idx][i].slice();\n var firstDay = this._firstDayOfMonth[i];\n\n if (isCenter) {\n var firstDayPoints = this._firstDayPoints[i];\n tmp[axis] = (firstDayPoints[axis] + termPoints[0][i + 1][axis]) / 2;\n }\n\n var formatter = monthLabel.get('formatter');\n var name_1 = nameMap[+firstDay.m - 1];\n var params = {\n yyyy: firstDay.y,\n yy: (firstDay.y + '').slice(2),\n MM: firstDay.m,\n M: +firstDay.m,\n nameMap: name_1\n };\n\n var content = this._formatterLabel(formatter, params);\n\n var monthText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(createTextStyle(monthLabel, {\n text: content\n }), this._monthTextPositionControl(tmp, isCenter, orient, pos, margin))\n });\n group.add(monthText);\n }\n };\n\n CalendarView.prototype._weekTextPositionControl = function (point, orient, position, margin, cellSize) {\n var align = 'center';\n var vAlign = 'middle';\n var x = point[0];\n var y = point[1];\n var isStart = position === 'start';\n\n if (orient === 'horizontal') {\n x = x + margin + (isStart ? 1 : -1) * cellSize[0] / 2;\n align = isStart ? 'right' : 'left';\n } else {\n y = y + margin + (isStart ? 1 : -1) * cellSize[1] / 2;\n vAlign = isStart ? 'bottom' : 'top';\n }\n\n return {\n x: x,\n y: y,\n align: align,\n verticalAlign: vAlign\n };\n }; // render weeks\n\n\n CalendarView.prototype._renderWeekText = function (calendarModel, rangeData, orient, group) {\n var dayLabel = calendarModel.getModel('dayLabel');\n\n if (!dayLabel.get('show')) {\n return;\n }\n\n var coordSys = calendarModel.coordinateSystem;\n var pos = dayLabel.get('position');\n var nameMap = dayLabel.get('nameMap');\n var margin = dayLabel.get('margin');\n var firstDayOfWeek = coordSys.getFirstDayOfWeek();\n\n if (zrUtil.isString(nameMap)) {\n nameMap = WEEK_TEXT[nameMap.toUpperCase()] || [];\n }\n\n var start = coordSys.getNextNDay(rangeData.end.time, 7 - rangeData.lweek).time;\n var cellSize = [coordSys.getCellWidth(), coordSys.getCellHeight()];\n margin = numberUtil.parsePercent(margin, Math.min(cellSize[1], cellSize[0]));\n\n if (pos === 'start') {\n start = coordSys.getNextNDay(rangeData.start.time, -(7 + rangeData.fweek)).time;\n margin = -margin;\n }\n\n for (var i = 0; i < 7; i++) {\n var tmpD = coordSys.getNextNDay(start, i);\n var point = coordSys.dataToRect([tmpD.time], false).center;\n var day = i;\n day = Math.abs((i + firstDayOfWeek) % 7);\n var weekText = new graphic.Text({\n z2: 30,\n style: zrUtil.extend(createTextStyle(dayLabel, {\n text: nameMap[day]\n }), this._weekTextPositionControl(point, orient, pos, margin, cellSize))\n });\n group.add(weekText);\n }\n };\n\n CalendarView.type = 'calendar';\n return CalendarView;\n}(ComponentView);\n\nexport default CalendarView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as layout from '../../util/layout';\nimport * as numberUtil from '../../util/number'; // (24*60*60*1000)\n\nvar PROXIMATE_ONE_DAY = 86400000;\n\nvar Calendar =\n/** @class */\nfunction () {\n function Calendar(calendarModel, ecModel, api) {\n this.type = 'calendar';\n this.dimensions = Calendar.dimensions; // Required in createListFromData\n\n this.getDimensionsInfo = Calendar.getDimensionsInfo;\n this._model = calendarModel;\n }\n\n Calendar.getDimensionsInfo = function () {\n return [{\n name: 'time',\n type: 'time'\n }, 'value'];\n };\n\n Calendar.prototype.getRangeInfo = function () {\n return this._rangeInfo;\n };\n\n Calendar.prototype.getModel = function () {\n return this._model;\n };\n\n Calendar.prototype.getRect = function () {\n return this._rect;\n };\n\n Calendar.prototype.getCellWidth = function () {\n return this._sw;\n };\n\n Calendar.prototype.getCellHeight = function () {\n return this._sh;\n };\n\n Calendar.prototype.getOrient = function () {\n return this._orient;\n };\n /**\n * getFirstDayOfWeek\n *\n * @example\n * 0 : start at Sunday\n * 1 : start at Monday\n *\n * @return {number}\n */\n\n\n Calendar.prototype.getFirstDayOfWeek = function () {\n return this._firstDayOfWeek;\n };\n /**\n * get date info\n * }\n */\n\n\n Calendar.prototype.getDateInfo = function (date) {\n date = numberUtil.parseDate(date);\n var y = date.getFullYear();\n var m = date.getMonth() + 1;\n var mStr = m < 10 ? '0' + m : '' + m;\n var d = date.getDate();\n var dStr = d < 10 ? '0' + d : '' + d;\n var day = date.getDay();\n day = Math.abs((day + 7 - this.getFirstDayOfWeek()) % 7);\n return {\n y: y + '',\n m: mStr,\n d: dStr,\n day: day,\n time: date.getTime(),\n formatedDate: y + '-' + mStr + '-' + dStr,\n date: date\n };\n };\n\n Calendar.prototype.getNextNDay = function (date, n) {\n n = n || 0;\n\n if (n === 0) {\n return this.getDateInfo(date);\n }\n\n date = new Date(this.getDateInfo(date).time);\n date.setDate(date.getDate() + n);\n return this.getDateInfo(date);\n };\n\n Calendar.prototype.update = function (ecModel, api) {\n this._firstDayOfWeek = +this._model.getModel('dayLabel').get('firstDay');\n this._orient = this._model.get('orient');\n this._lineWidth = this._model.getModel('itemStyle').getItemStyle().lineWidth || 0;\n this._rangeInfo = this._getRangeInfo(this._initRangeOption());\n var weeks = this._rangeInfo.weeks || 1;\n var whNames = ['width', 'height'];\n\n var cellSize = this._model.getCellSize().slice();\n\n var layoutParams = this._model.getBoxLayoutParams();\n\n var cellNumbers = this._orient === 'horizontal' ? [weeks, 7] : [7, weeks];\n zrUtil.each([0, 1], function (idx) {\n if (cellSizeSpecified(cellSize, idx)) {\n layoutParams[whNames[idx]] = cellSize[idx] * cellNumbers[idx];\n }\n });\n var whGlobal = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var calendarRect = this._rect = layout.getLayoutRect(layoutParams, whGlobal);\n zrUtil.each([0, 1], function (idx) {\n if (!cellSizeSpecified(cellSize, idx)) {\n cellSize[idx] = calendarRect[whNames[idx]] / cellNumbers[idx];\n }\n });\n\n function cellSizeSpecified(cellSize, idx) {\n return cellSize[idx] != null && cellSize[idx] !== 'auto';\n } // Has been calculated out number.\n\n\n this._sw = cellSize[0];\n this._sh = cellSize[1];\n };\n /**\n * Convert a time data(time, value) item to (x, y) point.\n */\n // TODO Clamp of calendar is not same with cartesian coordinate systems.\n // It will return NaN if data exceeds.\n\n\n Calendar.prototype.dataToPoint = function (data, clamp) {\n zrUtil.isArray(data) && (data = data[0]);\n clamp == null && (clamp = true);\n var dayInfo = this.getDateInfo(data);\n var range = this._rangeInfo;\n var date = dayInfo.formatedDate; // if not in range return [NaN, NaN]\n\n if (clamp && !(dayInfo.time >= range.start.time && dayInfo.time < range.end.time + PROXIMATE_ONE_DAY)) {\n return [NaN, NaN];\n }\n\n var week = dayInfo.day;\n\n var nthWeek = this._getRangeInfo([range.start.time, date]).nthWeek;\n\n if (this._orient === 'vertical') {\n return [this._rect.x + week * this._sw + this._sw / 2, this._rect.y + nthWeek * this._sh + this._sh / 2];\n }\n\n return [this._rect.x + nthWeek * this._sw + this._sw / 2, this._rect.y + week * this._sh + this._sh / 2];\n };\n /**\n * Convert a (x, y) point to time data\n */\n\n\n Calendar.prototype.pointToData = function (point) {\n var date = this.pointToDate(point);\n return date && date.time;\n };\n /**\n * Convert a time date item to (x, y) four point.\n */\n\n\n Calendar.prototype.dataToRect = function (data, clamp) {\n var point = this.dataToPoint(data, clamp);\n return {\n contentShape: {\n x: point[0] - (this._sw - this._lineWidth) / 2,\n y: point[1] - (this._sh - this._lineWidth) / 2,\n width: this._sw - this._lineWidth,\n height: this._sh - this._lineWidth\n },\n center: point,\n tl: [point[0] - this._sw / 2, point[1] - this._sh / 2],\n tr: [point[0] + this._sw / 2, point[1] - this._sh / 2],\n br: [point[0] + this._sw / 2, point[1] + this._sh / 2],\n bl: [point[0] - this._sw / 2, point[1] + this._sh / 2]\n };\n };\n /**\n * Convert a (x, y) point to time date\n *\n * @param {Array} point point\n * @return {Object} date\n */\n\n\n Calendar.prototype.pointToDate = function (point) {\n var nthX = Math.floor((point[0] - this._rect.x) / this._sw) + 1;\n var nthY = Math.floor((point[1] - this._rect.y) / this._sh) + 1;\n var range = this._rangeInfo.range;\n\n if (this._orient === 'vertical') {\n return this._getDateByWeeksAndDay(nthY, nthX - 1, range);\n }\n\n return this._getDateByWeeksAndDay(nthX, nthY - 1, range);\n };\n\n Calendar.prototype.convertToPixel = function (ecModel, finder, value) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.dataToPoint(value) : null;\n };\n\n Calendar.prototype.convertFromPixel = function (ecModel, finder, pixel) {\n var coordSys = getCoordSys(finder);\n return coordSys === this ? coordSys.pointToData(pixel) : null;\n };\n\n Calendar.prototype.containPoint = function (point) {\n console.warn('Not implemented.');\n return false;\n };\n /**\n * initRange\n * Normalize to an [start, end] array\n */\n\n\n Calendar.prototype._initRangeOption = function () {\n var range = this._model.get('range');\n\n var normalizedRange; // Convert [1990] to 1990\n\n if (zrUtil.isArray(range) && range.length === 1) {\n range = range[0];\n }\n\n if (!zrUtil.isArray(range)) {\n var rangeStr = range.toString(); // One year.\n\n if (/^\\d{4}$/.test(rangeStr)) {\n normalizedRange = [rangeStr + '-01-01', rangeStr + '-12-31'];\n } // One month\n\n\n if (/^\\d{4}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n var start = this.getDateInfo(rangeStr);\n var firstDay = start.date;\n firstDay.setMonth(firstDay.getMonth() + 1);\n var end = this.getNextNDay(firstDay, -1);\n normalizedRange = [start.formatedDate, end.formatedDate];\n } // One day\n\n\n if (/^\\d{4}[\\/|-]\\d{1,2}[\\/|-]\\d{1,2}$/.test(rangeStr)) {\n normalizedRange = [rangeStr, rangeStr];\n }\n } else {\n normalizedRange = range;\n }\n\n if (!normalizedRange) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.logError('Invalid date range.');\n } // Not handling it.\n\n\n return range;\n }\n\n var tmp = this._getRangeInfo(normalizedRange);\n\n if (tmp.start.time > tmp.end.time) {\n normalizedRange.reverse();\n }\n\n return normalizedRange;\n };\n /**\n * range info\n *\n * @private\n * @param {Array} range range ['2017-01-01', '2017-07-08']\n * If range[0] > range[1], they will not be reversed.\n * @return {Object} obj\n */\n\n\n Calendar.prototype._getRangeInfo = function (range) {\n var parsedRange = [this.getDateInfo(range[0]), this.getDateInfo(range[1])];\n var reversed;\n\n if (parsedRange[0].time > parsedRange[1].time) {\n reversed = true;\n parsedRange.reverse();\n }\n\n var allDay = Math.floor(parsedRange[1].time / PROXIMATE_ONE_DAY) - Math.floor(parsedRange[0].time / PROXIMATE_ONE_DAY) + 1; // Consider case1 (#11677 #10430):\n // Set the system timezone as \"UK\", set the range to `['2016-07-01', '2016-12-31']`\n // Consider case2:\n // Firstly set system timezone as \"Time Zone: America/Toronto\",\n // ```\n // let first = new Date(1478412000000 - 3600 * 1000 * 2.5);\n // let second = new Date(1478412000000);\n // let allDays = Math.floor(second / ONE_DAY) - Math.floor(first / ONE_DAY) + 1;\n // ```\n // will get wrong result because of DST. So we should fix it.\n\n var date = new Date(parsedRange[0].time);\n var startDateNum = date.getDate();\n var endDateNum = parsedRange[1].date.getDate();\n date.setDate(startDateNum + allDay - 1); // The bias can not over a month, so just compare date.\n\n var dateNum = date.getDate();\n\n if (dateNum !== endDateNum) {\n var sign = date.getTime() - parsedRange[1].time > 0 ? 1 : -1;\n\n while ((dateNum = date.getDate()) !== endDateNum && (date.getTime() - parsedRange[1].time) * sign > 0) {\n allDay -= sign;\n date.setDate(dateNum - sign);\n }\n }\n\n var weeks = Math.floor((allDay + parsedRange[0].day + 6) / 7);\n var nthWeek = reversed ? -weeks + 1 : weeks - 1;\n reversed && parsedRange.reverse();\n return {\n range: [parsedRange[0].formatedDate, parsedRange[1].formatedDate],\n start: parsedRange[0],\n end: parsedRange[1],\n allDay: allDay,\n weeks: weeks,\n // From 0.\n nthWeek: nthWeek,\n fweek: parsedRange[0].day,\n lweek: parsedRange[1].day\n };\n };\n /**\n * get date by nthWeeks and week day in range\n *\n * @private\n * @param {number} nthWeek the week\n * @param {number} day the week day\n * @param {Array} range [d1, d2]\n * @return {Object}\n */\n\n\n Calendar.prototype._getDateByWeeksAndDay = function (nthWeek, day, range) {\n var rangeInfo = this._getRangeInfo(range);\n\n if (nthWeek > rangeInfo.weeks || nthWeek === 0 && day < rangeInfo.fweek || nthWeek === rangeInfo.weeks && day > rangeInfo.lweek) {\n return null;\n }\n\n var nthDay = (nthWeek - 1) * 7 - rangeInfo.fweek + day;\n var date = new Date(rangeInfo.start.time);\n date.setDate(+rangeInfo.start.d + nthDay);\n return this.getDateInfo(date);\n };\n\n Calendar.create = function (ecModel, api) {\n var calendarList = [];\n ecModel.eachComponent('calendar', function (calendarModel) {\n var calendar = new Calendar(calendarModel, ecModel, api);\n calendarList.push(calendar);\n calendarModel.coordinateSystem = calendar;\n });\n ecModel.eachSeries(function (calendarSeries) {\n if (calendarSeries.get('coordinateSystem') === 'calendar') {\n // Inject coordinate system\n calendarSeries.coordinateSystem = calendarList[calendarSeries.get('calendarIndex') || 0];\n }\n });\n return calendarList;\n };\n\n Calendar.dimensions = ['time', 'value'];\n return Calendar;\n}();\n\nfunction getCoordSys(finder) {\n var calendarModel = finder.calendarModel;\n var seriesModel = finder.seriesModel;\n var coordSys = calendarModel ? calendarModel.coordinateSystem : seriesModel ? seriesModel.coordinateSystem : null;\n return coordSys;\n}\n\nexport default Calendar;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport CalendarModel from '../../coord/calendar/CalendarModel';\nimport CalendarView from './CalendarView';\nimport Calendar from '../../coord/calendar/Calendar';\nexport function install(registers) {\n registers.registerComponentModel(CalendarModel);\n registers.registerComponentView(CalendarView);\n registers.registerCoordinateSystem('calendar', Calendar);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as modelUtil from '../../util/model';\nimport * as graphicUtil from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport { parsePercent } from '../../util/number';\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { getECData } from '../../util/innerStore';\nimport { isEC4CompatibleStyle, convertFromEC4CompatibleStyle } from '../../util/styleCompat';\nvar TRANSFORM_PROPS = {\n x: 1,\n y: 1,\n scaleX: 1,\n scaleY: 1,\n originX: 1,\n originY: 1,\n rotation: 1\n};\n;\nvar inner = modelUtil.makeInner();\nvar _nonShapeGraphicElements = {\n // Reserved but not supported in graphic component.\n path: null,\n compoundPath: null,\n // Supported in graphic component.\n group: graphicUtil.Group,\n image: graphicUtil.Image,\n text: graphicUtil.Text\n}; // ------------------------\n// Preprocessor\n// ------------------------\n\nvar preprocessor = function (option) {\n var graphicOption = option.graphic; // Convert\n // {graphic: [{left: 10, type: 'circle'}, ...]}\n // or\n // {graphic: {left: 10, type: 'circle'}}\n // to\n // {graphic: [{elements: [{left: 10, type: 'circle'}, ...]}]}\n\n if (zrUtil.isArray(graphicOption)) {\n if (!graphicOption[0] || !graphicOption[0].elements) {\n option.graphic = [{\n elements: graphicOption\n }];\n } else {\n // Only one graphic instance can be instantiated. (We dont\n // want that too many views are created in echarts._viewMap)\n option.graphic = [option.graphic[0]];\n }\n } else if (graphicOption && !graphicOption.elements) {\n option.graphic = [{\n elements: [graphicOption]\n }];\n }\n};\n\n;\n\nvar GraphicComponentModel =\n/** @class */\nfunction (_super) {\n __extends(GraphicComponentModel, _super);\n\n function GraphicComponentModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphicComponentModel.type;\n _this.preventAutoZ = true;\n return _this;\n }\n\n GraphicComponentModel.prototype.mergeOption = function (option, ecModel) {\n // Prevent default merge to elements\n var elements = this.option.elements;\n this.option.elements = null;\n\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n this.option.elements = elements;\n };\n\n GraphicComponentModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option;\n var newList = (isInit ? thisOption : newOption).elements;\n var existList = thisOption.elements = isInit ? [] : thisOption.elements;\n var flattenedList = [];\n\n this._flatten(newList, flattenedList, null);\n\n var mappingResult = modelUtil.mappingToExists(existList, flattenedList, 'normalMerge'); // Clear elOptionsToUpdate\n\n var elOptionsToUpdate = this._elOptionsToUpdate = [];\n zrUtil.each(mappingResult, function (resultItem, index) {\n var newElOption = resultItem.newOption;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(zrUtil.isObject(newElOption) || resultItem.existing, 'Empty graphic option definition');\n }\n\n if (!newElOption) {\n return;\n }\n\n elOptionsToUpdate.push(newElOption);\n setKeyInfoToNewElOption(resultItem, newElOption);\n mergeNewElOptionToExist(existList, index, newElOption);\n setLayoutInfoToExist(existList[index], newElOption);\n }, this); // Clean\n\n for (var i = existList.length - 1; i >= 0; i--) {\n if (existList[i] == null) {\n existList.splice(i, 1);\n } else {\n // $action should be volatile, otherwise option gotten from\n // `getOption` will contain unexpected $action.\n delete existList[i].$action;\n }\n }\n };\n /**\n * Convert\n * [{\n * type: 'group',\n * id: 'xx',\n * children: [{type: 'circle'}, {type: 'polygon'}]\n * }]\n * to\n * [\n * {type: 'group', id: 'xx'},\n * {type: 'circle', parentId: 'xx'},\n * {type: 'polygon', parentId: 'xx'}\n * ]\n */\n\n\n GraphicComponentModel.prototype._flatten = function (optionList, result, parentOption) {\n zrUtil.each(optionList, function (option) {\n if (!option) {\n return;\n }\n\n if (parentOption) {\n option.parentOption = parentOption;\n }\n\n result.push(option);\n var children = option.children;\n\n if (option.type === 'group' && children) {\n this._flatten(children, result, option);\n } // Deleting for JSON output, and for not affecting group creation.\n\n\n delete option.children;\n }, this);\n }; // FIXME\n // Pass to view using payload? setOption has a payload?\n\n\n GraphicComponentModel.prototype.useElOptionsToUpdate = function () {\n var els = this._elOptionsToUpdate; // Clear to avoid render duplicately when zooming.\n\n this._elOptionsToUpdate = null;\n return els;\n };\n\n GraphicComponentModel.type = 'graphic';\n GraphicComponentModel.defaultOption = {\n elements: [] // parentId: null\n\n };\n return GraphicComponentModel;\n}(ComponentModel); // ------------------------\n// View\n// ------------------------\n\n\nvar GraphicComponentView =\n/** @class */\nfunction (_super) {\n __extends(GraphicComponentView, _super);\n\n function GraphicComponentView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = GraphicComponentView.type;\n return _this;\n }\n\n GraphicComponentView.prototype.init = function () {\n this._elMap = zrUtil.createHashMap();\n };\n\n GraphicComponentView.prototype.render = function (graphicModel, ecModel, api) {\n // Having leveraged between use cases and algorithm complexity, a very\n // simple layout mechanism is used:\n // The size(width/height) can be determined by itself or its parent (not\n // implemented yet), but can not by its children. (Top-down travel)\n // The location(x/y) can be determined by the bounding rect of itself\n // (can including its descendants or not) and the size of its parent.\n // (Bottom-up travel)\n // When `chart.clear()` or `chart.setOption({...}, true)` with the same id,\n // view will be reused.\n if (graphicModel !== this._lastGraphicModel) {\n this._clear();\n }\n\n this._lastGraphicModel = graphicModel;\n\n this._updateElements(graphicModel);\n\n this._relocate(graphicModel, api);\n };\n /**\n * Update graphic elements.\n */\n\n\n GraphicComponentView.prototype._updateElements = function (graphicModel) {\n var elOptionsToUpdate = graphicModel.useElOptionsToUpdate();\n\n if (!elOptionsToUpdate) {\n return;\n }\n\n var elMap = this._elMap;\n var rootGroup = this.group; // Top-down tranverse to assign graphic settings to each elements.\n\n zrUtil.each(elOptionsToUpdate, function (elOption) {\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var elExisting = id != null ? elMap.get(id) : null;\n var parentId = modelUtil.convertOptionIdName(elOption.parentId, null);\n var targetElParent = parentId != null ? elMap.get(parentId) : rootGroup;\n var elType = elOption.type;\n var elOptionStyle = elOption.style;\n\n if (elType === 'text' && elOptionStyle) {\n // In top/bottom mode, textVerticalAlign should not be used, which cause\n // inaccurately locating.\n if (elOption.hv && elOption.hv[1]) {\n elOptionStyle.textVerticalAlign = elOptionStyle.textBaseline = elOptionStyle.verticalAlign = elOptionStyle.align = null;\n }\n }\n\n var textContentOption = elOption.textContent;\n var textConfig = elOption.textConfig;\n\n if (elOptionStyle && isEC4CompatibleStyle(elOptionStyle, elType, !!textConfig, !!textContentOption)) {\n var convertResult = convertFromEC4CompatibleStyle(elOptionStyle, elType, true);\n\n if (!textConfig && convertResult.textConfig) {\n textConfig = elOption.textConfig = convertResult.textConfig;\n }\n\n if (!textContentOption && convertResult.textContent) {\n textContentOption = convertResult.textContent;\n }\n } // Remove unnecessary props to avoid potential problems.\n\n\n var elOptionCleaned = getCleanedElOption(elOption); // For simple, do not support parent change, otherwise reorder is needed.\n\n if (process.env.NODE_ENV !== 'production') {\n elExisting && zrUtil.assert(targetElParent === elExisting.parent, 'Changing parent is not supported.');\n }\n\n var $action = elOption.$action || 'merge';\n\n if ($action === 'merge') {\n elExisting ? elExisting.attr(elOptionCleaned) : createEl(id, targetElParent, elOptionCleaned, elMap);\n } else if ($action === 'replace') {\n removeEl(elExisting, elMap);\n createEl(id, targetElParent, elOptionCleaned, elMap);\n } else if ($action === 'remove') {\n removeEl(elExisting, elMap);\n }\n\n var el = elMap.get(id);\n\n if (el && textContentOption) {\n if ($action === 'merge') {\n var textContentExisting = el.getTextContent();\n textContentExisting ? textContentExisting.attr(textContentOption) : el.setTextContent(new graphicUtil.Text(textContentOption));\n } else if ($action === 'replace') {\n el.setTextContent(new graphicUtil.Text(textContentOption));\n }\n }\n\n if (el) {\n var elInner = inner(el);\n elInner.__ecGraphicWidthOption = elOption.width;\n elInner.__ecGraphicHeightOption = elOption.height;\n setEventData(el, graphicModel, elOption);\n graphicUtil.setTooltipConfig({\n el: el,\n componentModel: graphicModel,\n itemName: el.name,\n itemTooltipOption: elOption.tooltip\n });\n }\n });\n };\n /**\n * Locate graphic elements.\n */\n\n\n GraphicComponentView.prototype._relocate = function (graphicModel, api) {\n var elOptions = graphicModel.option.elements;\n var rootGroup = this.group;\n var elMap = this._elMap;\n var apiWidth = api.getWidth();\n var apiHeight = api.getHeight(); // Top-down to calculate percentage width/height of group\n\n for (var i = 0; i < elOptions.length; i++) {\n var elOption = elOptions[i];\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var el = id != null ? elMap.get(id) : null;\n\n if (!el || !el.isGroup) {\n continue;\n }\n\n var parentEl = el.parent;\n var isParentRoot = parentEl === rootGroup; // Like 'position:absolut' in css, default 0.\n\n var elInner = inner(el);\n var parentElInner = inner(parentEl);\n elInner.__ecGraphicWidth = parsePercent(elInner.__ecGraphicWidthOption, isParentRoot ? apiWidth : parentElInner.__ecGraphicWidth) || 0;\n elInner.__ecGraphicHeight = parsePercent(elInner.__ecGraphicHeightOption, isParentRoot ? apiHeight : parentElInner.__ecGraphicHeight) || 0;\n } // Bottom-up tranvese all elements (consider ec resize) to locate elements.\n\n\n for (var i = elOptions.length - 1; i >= 0; i--) {\n var elOption = elOptions[i];\n var id = modelUtil.convertOptionIdName(elOption.id, null);\n var el = id != null ? elMap.get(id) : null;\n\n if (!el) {\n continue;\n }\n\n var parentEl = el.parent;\n var parentElInner = inner(parentEl);\n var containerInfo = parentEl === rootGroup ? {\n width: apiWidth,\n height: apiHeight\n } : {\n width: parentElInner.__ecGraphicWidth,\n height: parentElInner.__ecGraphicHeight\n }; // PENDING\n // Currently, when `bounding: 'all'`, the union bounding rect of the group\n // does not include the rect of [0, 0, group.width, group.height], which\n // is probably weird for users. Should we make a break change for it?\n\n layoutUtil.positionElement(el, elOption, containerInfo, null, {\n hv: elOption.hv,\n boundingMode: elOption.bounding\n });\n }\n };\n /**\n * Clear all elements.\n */\n\n\n GraphicComponentView.prototype._clear = function () {\n var elMap = this._elMap;\n elMap.each(function (el) {\n removeEl(el, elMap);\n });\n this._elMap = zrUtil.createHashMap();\n };\n\n GraphicComponentView.prototype.dispose = function () {\n this._clear();\n };\n\n GraphicComponentView.type = 'graphic';\n return GraphicComponentView;\n}(ComponentView);\n\nfunction createEl(id, targetElParent, elOption, elMap) {\n var graphicType = elOption.type;\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(graphicType, 'graphic type MUST be set');\n }\n\n var Clz = zrUtil.hasOwn(_nonShapeGraphicElements, graphicType) // Those graphic elements are not shapes. They should not be\n // overwritten by users, so do them first.\n ? _nonShapeGraphicElements[graphicType] : graphicUtil.getShapeClass(graphicType);\n\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(Clz, 'graphic type can not be found');\n }\n\n var el = new Clz(elOption);\n targetElParent.add(el);\n elMap.set(id, el);\n inner(el).__ecGraphicId = id;\n}\n\nfunction removeEl(elExisting, elMap) {\n var existElParent = elExisting && elExisting.parent;\n\n if (existElParent) {\n elExisting.type === 'group' && elExisting.traverse(function (el) {\n removeEl(el, elMap);\n });\n elMap.removeKey(inner(elExisting).__ecGraphicId);\n existElParent.remove(elExisting);\n }\n} // Remove unnecessary props to avoid potential problems.\n\n\nfunction getCleanedElOption(elOption) {\n elOption = zrUtil.extend({}, elOption);\n zrUtil.each(['id', 'parentId', '$action', 'hv', 'bounding', 'textContent'].concat(layoutUtil.LOCATION_PARAMS), function (name) {\n delete elOption[name];\n });\n return elOption;\n}\n\nfunction isSetLoc(obj, props) {\n var isSet;\n zrUtil.each(props, function (prop) {\n obj[prop] != null && obj[prop] !== 'auto' && (isSet = true);\n });\n return isSet;\n}\n\nfunction setKeyInfoToNewElOption(resultItem, newElOption) {\n var existElOption = resultItem.existing; // Set id and type after id assigned.\n\n newElOption.id = resultItem.keyInfo.id;\n !newElOption.type && existElOption && (newElOption.type = existElOption.type); // Set parent id if not specified\n\n if (newElOption.parentId == null) {\n var newElParentOption = newElOption.parentOption;\n\n if (newElParentOption) {\n newElOption.parentId = newElParentOption.id;\n } else if (existElOption) {\n newElOption.parentId = existElOption.parentId;\n }\n } // Clear\n\n\n newElOption.parentOption = null;\n}\n\nfunction mergeNewElOptionToExist(existList, index, newElOption) {\n // Update existing options, for `getOption` feature.\n var newElOptCopy = zrUtil.extend({}, newElOption);\n var existElOption = existList[index];\n var $action = newElOption.$action || 'merge';\n\n if ($action === 'merge') {\n if (existElOption) {\n if (process.env.NODE_ENV !== 'production') {\n var newType = newElOption.type;\n zrUtil.assert(!newType || existElOption.type === newType, 'Please set $action: \"replace\" to change `type`');\n } // We can ensure that newElOptCopy and existElOption are not\n // the same object, so `merge` will not change newElOptCopy.\n\n\n zrUtil.merge(existElOption, newElOptCopy, true); // Rigid body, use ignoreSize.\n\n layoutUtil.mergeLayoutParam(existElOption, newElOptCopy, {\n ignoreSize: true\n }); // Will be used in render.\n\n layoutUtil.copyLayoutParams(newElOption, existElOption);\n } else {\n existList[index] = newElOptCopy;\n }\n } else if ($action === 'replace') {\n existList[index] = newElOptCopy;\n } else if ($action === 'remove') {\n // null will be cleaned later.\n existElOption && (existList[index] = null);\n }\n}\n\nfunction setLayoutInfoToExist(existItem, newElOption) {\n if (!existItem) {\n return;\n }\n\n existItem.hv = newElOption.hv = [// Rigid body, dont care `width`.\n isSetLoc(newElOption, ['left', 'right']), // Rigid body, dont care `height`.\n isSetLoc(newElOption, ['top', 'bottom'])]; // Give default group size. Otherwise layout error may occur.\n\n if (existItem.type === 'group') {\n var existingGroupOpt = existItem;\n var newGroupOpt = newElOption;\n existingGroupOpt.width == null && (existingGroupOpt.width = newGroupOpt.width = 0);\n existingGroupOpt.height == null && (existingGroupOpt.height = newGroupOpt.height = 0);\n }\n}\n\nfunction setEventData(el, graphicModel, elOption) {\n var eventData = getECData(el).eventData; // Simple optimize for large amount of elements that no need event.\n\n if (!el.silent && !el.ignore && !eventData) {\n eventData = getECData(el).eventData = {\n componentType: 'graphic',\n componentIndex: graphicModel.componentIndex,\n name: el.name\n };\n } // `elOption.info` enables user to mount some info on\n // elements and use them in event handlers.\n\n\n if (eventData) {\n eventData.info = elOption.info;\n }\n}\n\nexport function install(registers) {\n registers.registerComponentModel(GraphicComponentModel);\n registers.registerComponentView(GraphicComponentView);\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { indexOf, createHashMap, assert } from 'zrender/lib/core/util';\nexport var DATA_ZOOM_AXIS_DIMENSIONS = ['x', 'y', 'radius', 'angle', 'single']; // Supported coords.\n// FIXME: polar has been broken (but rarely used).\n\nvar SERIES_COORDS = ['cartesian2d', 'polar', 'singleAxis'];\nexport function isCoordSupported(seriesModel) {\n var coordType = seriesModel.get('coordinateSystem');\n return indexOf(SERIES_COORDS, coordType) >= 0;\n}\nexport function getAxisMainType(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'Axis';\n}\nexport function getAxisIndexPropName(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'AxisIndex';\n}\nexport function getAxisIdPropName(axisDim) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim);\n }\n\n return axisDim + 'AxisId';\n}\n/**\n * If two dataZoomModels has the same axis controlled, we say that they are 'linked'.\n * This function finds all linked dataZoomModels start from the given payload.\n */\n\nexport function findEffectedDataZooms(ecModel, payload) {\n // Key: `DataZoomAxisDimension`\n var axisRecords = createHashMap();\n var effectedModels = []; // Key: uid of dataZoomModel\n\n var effectedModelMap = createHashMap(); // Find the dataZooms specified by payload.\n\n ecModel.eachComponent({\n mainType: 'dataZoom',\n query: payload\n }, function (dataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid)) {\n addToEffected(dataZoomModel);\n }\n }); // Start from the given dataZoomModels, travel the graph to find\n // all of the linked dataZoom models.\n\n var foundNewLink;\n\n do {\n foundNewLink = false;\n ecModel.eachComponent('dataZoom', processSingle);\n } while (foundNewLink);\n\n function processSingle(dataZoomModel) {\n if (!effectedModelMap.get(dataZoomModel.uid) && isLinked(dataZoomModel)) {\n addToEffected(dataZoomModel);\n foundNewLink = true;\n }\n }\n\n function addToEffected(dataZoom) {\n effectedModelMap.set(dataZoom.uid, true);\n effectedModels.push(dataZoom);\n markAxisControlled(dataZoom);\n }\n\n function isLinked(dataZoomModel) {\n var isLink = false;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisIdxArr = axisRecords.get(axisDim);\n\n if (axisIdxArr && axisIdxArr[axisIndex]) {\n isLink = true;\n }\n });\n return isLink;\n }\n\n function markAxisControlled(dataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n (axisRecords.get(axisDim) || axisRecords.set(axisDim, []))[axisIndex] = true;\n });\n }\n\n return effectedModels;\n}\n/**\n * Find the first target coordinate system.\n * Available after model built.\n *\n * @return Like {\n * grid: [\n * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},\n * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},\n * ...\n * ], // cartesians must not be null/undefined.\n * polar: [\n * {model: coord0, axisModels: [axis4], coordIndex: 0},\n * ...\n * ], // polars must not be null/undefined.\n * singleAxis: [\n * {model: coord0, axisModels: [], coordIndex: 0}\n * ]\n * }\n */\n\nexport function collectReferCoordSysModelInfo(dataZoomModel) {\n var ecModel = dataZoomModel.ecModel;\n var coordSysInfoWrap = {\n infoList: [],\n infoMap: createHashMap()\n };\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n\n if (!axisModel) {\n return;\n }\n\n var coordSysModel = axisModel.getCoordSysModel();\n\n if (!coordSysModel) {\n return;\n }\n\n var coordSysUid = coordSysModel.uid;\n var coordSysInfo = coordSysInfoWrap.infoMap.get(coordSysUid);\n\n if (!coordSysInfo) {\n coordSysInfo = {\n model: coordSysModel,\n axisModels: []\n };\n coordSysInfoWrap.infoList.push(coordSysInfo);\n coordSysInfoWrap.infoMap.set(coordSysUid, coordSysInfo);\n }\n\n coordSysInfo.axisModels.push(axisModel);\n });\n return coordSysInfoWrap;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { each, createHashMap, merge, assert } from 'zrender/lib/core/util';\nimport ComponentModel from '../../model/Component';\nimport { getAxisMainType, DATA_ZOOM_AXIS_DIMENSIONS } from './helper';\nimport { MULTIPLE_REFERRING, SINGLE_REFERRING } from '../../util/model';\n\nvar DataZoomAxisInfo =\n/** @class */\nfunction () {\n function DataZoomAxisInfo() {\n this.indexList = [];\n this.indexMap = [];\n }\n\n DataZoomAxisInfo.prototype.add = function (axisCmptIdx) {\n // Remove duplication.\n if (!this.indexMap[axisCmptIdx]) {\n this.indexList.push(axisCmptIdx);\n this.indexMap[axisCmptIdx] = true;\n }\n };\n\n return DataZoomAxisInfo;\n}();\n\nvar DataZoomModel =\n/** @class */\nfunction (_super) {\n __extends(DataZoomModel, _super);\n\n function DataZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = DataZoomModel.type;\n _this._autoThrottle = true;\n _this._noTarget = true;\n /**\n * It is `[rangeModeForMin, rangeModeForMax]`.\n * The optional values for `rangeMode`:\n * + `'value'` mode: the axis extent will always be determined by\n * `dataZoom.startValue` and `dataZoom.endValue`, despite\n * how data like and how `axis.min` and `axis.max` are.\n * + `'percent'` mode: `100` represents 100% of the `[dMin, dMax]`,\n * where `dMin` is `axis.min` if `axis.min` specified, otherwise `data.extent[0]`,\n * and `dMax` is `axis.max` if `axis.max` specified, otherwise `data.extent[1]`.\n * Axis extent will be determined by the result of the percent of `[dMin, dMax]`.\n *\n * For example, when users are using dynamic data (update data periodically via `setOption`),\n * if in `'value`' mode, the window will be kept in a fixed value range despite how\n * data are appended, while if in `'percent'` mode, whe window range will be changed alone with\n * the appended data (suppose `axis.min` and `axis.max` are not specified).\n */\n\n _this._rangePropMode = ['percent', 'percent'];\n return _this;\n }\n\n DataZoomModel.prototype.init = function (option, parentModel, ecModel) {\n var inputRawOption = retrieveRawOption(option);\n /**\n * Suppose a \"main process\" start at the point that model prepared (that is,\n * model initialized or merged or method called in `action`).\n * We should keep the `main process` idempotent, that is, given a set of values\n * on `option`, we get the same result.\n *\n * But sometimes, values on `option` will be updated for providing users\n * a \"final calculated value\" (`dataZoomProcessor` will do that). Those value\n * should not be the base/input of the `main process`.\n *\n * So in that case we should save and keep the input of the `main process`\n * separately, called `settledOption`.\n *\n * For example, consider the case:\n * (Step_1) brush zoom the grid by `toolbox.dataZoom`,\n * where the original input `option.startValue`, `option.endValue` are earsed by\n * calculated value.\n * (Step)2) click the legend to hide and show a series,\n * where the new range is calculated by the earsed `startValue` and `endValue`,\n * which brings incorrect result.\n */\n\n this.settledOption = inputRawOption;\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._doInit(inputRawOption);\n };\n\n DataZoomModel.prototype.mergeOption = function (newOption) {\n var inputRawOption = retrieveRawOption(newOption); //FIX #2591\n\n merge(this.option, newOption, true);\n merge(this.settledOption, inputRawOption, true);\n\n this._doInit(inputRawOption);\n };\n\n DataZoomModel.prototype._doInit = function (inputRawOption) {\n var thisOption = this.option; // if (!env.canvasSupported) {\n // thisOption.realtime = false;\n // }\n\n this._setDefaultThrottle(inputRawOption);\n\n this._updateRangeUse(inputRawOption);\n\n var settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']], function (names, index) {\n // start/end has higher priority over startValue/endValue if they\n // both set, but we should make chart.setOption({endValue: 1000})\n // effective, rather than chart.setOption({endValue: 1000, end: null}).\n if (this._rangePropMode[index] === 'value') {\n thisOption[names[0]] = settledOption[names[0]] = null;\n } // Otherwise do nothing and use the merge result.\n\n }, this);\n\n this._resetTarget();\n };\n\n DataZoomModel.prototype._resetTarget = function () {\n var optionOrient = this.get('orient', true);\n var targetAxisIndexMap = this._targetAxisInfoMap = createHashMap();\n\n var hasAxisSpecified = this._fillSpecifiedTargetAxis(targetAxisIndexMap);\n\n if (hasAxisSpecified) {\n this._orient = optionOrient || this._makeAutoOrientByTargetAxis();\n } else {\n this._orient = optionOrient || 'horizontal';\n\n this._fillAutoTargetAxisByOrient(targetAxisIndexMap, this._orient);\n }\n\n this._noTarget = true;\n targetAxisIndexMap.each(function (axisInfo) {\n if (axisInfo.indexList.length) {\n this._noTarget = false;\n }\n }, this);\n };\n\n DataZoomModel.prototype._fillSpecifiedTargetAxis = function (targetAxisIndexMap) {\n var hasAxisSpecified = false;\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n var refering = this.getReferringComponents(getAxisMainType(axisDim), MULTIPLE_REFERRING); // When user set axisIndex as a empty array, we think that user specify axisIndex\n // but do not want use auto mode. Because empty array may be encountered when\n // some error occured.\n\n if (!refering.specified) {\n return;\n }\n\n hasAxisSpecified = true;\n var axisInfo = new DataZoomAxisInfo();\n each(refering.models, function (axisModel) {\n axisInfo.add(axisModel.componentIndex);\n });\n targetAxisIndexMap.set(axisDim, axisInfo);\n }, this);\n return hasAxisSpecified;\n };\n\n DataZoomModel.prototype._fillAutoTargetAxisByOrient = function (targetAxisIndexMap, orient) {\n var ecModel = this.ecModel;\n var needAuto = true; // Find axis that parallel to dataZoom as default.\n\n if (needAuto) {\n var axisDim = orient === 'vertical' ? 'y' : 'x';\n var axisModels = ecModel.findComponents({\n mainType: axisDim + 'Axis'\n });\n setParallelAxis(axisModels, axisDim);\n } // Find axis that parallel to dataZoom as default.\n\n\n if (needAuto) {\n var axisModels = ecModel.findComponents({\n mainType: 'singleAxis',\n filter: function (axisModel) {\n return axisModel.get('orient', true) === orient;\n }\n });\n setParallelAxis(axisModels, 'single');\n }\n\n function setParallelAxis(axisModels, axisDim) {\n // At least use the first parallel axis as the target axis.\n var axisModel = axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModel.componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false; // Find parallel axes in the same grid.\n\n if (axisDim === 'x' || axisDim === 'y') {\n var gridModel_1 = axisModel.getReferringComponents('grid', SINGLE_REFERRING).models[0];\n gridModel_1 && each(axisModels, function (axModel) {\n if (axisModel.componentIndex !== axModel.componentIndex && gridModel_1 === axModel.getReferringComponents('grid', SINGLE_REFERRING).models[0]) {\n axisInfo.add(axModel.componentIndex);\n }\n });\n }\n }\n\n if (needAuto) {\n // If no parallel axis, find the first category axis as default. (Also consider polar).\n each(DATA_ZOOM_AXIS_DIMENSIONS, function (axisDim) {\n if (!needAuto) {\n return;\n }\n\n var axisModels = ecModel.findComponents({\n mainType: getAxisMainType(axisDim),\n filter: function (axisModel) {\n return axisModel.get('type', true) === 'category';\n }\n });\n\n if (axisModels[0]) {\n var axisInfo = new DataZoomAxisInfo();\n axisInfo.add(axisModels[0].componentIndex);\n targetAxisIndexMap.set(axisDim, axisInfo);\n needAuto = false;\n }\n }, this);\n }\n };\n\n DataZoomModel.prototype._makeAutoOrientByTargetAxis = function () {\n var dim; // Find the first axis\n\n this.eachTargetAxis(function (axisDim) {\n !dim && (dim = axisDim);\n }, this);\n return dim === 'y' ? 'vertical' : 'horizontal';\n };\n\n DataZoomModel.prototype._setDefaultThrottle = function (inputRawOption) {\n // When first time user set throttle, auto throttle ends.\n if (inputRawOption.hasOwnProperty('throttle')) {\n this._autoThrottle = false;\n }\n\n if (this._autoThrottle) {\n var globalOption = this.ecModel.option;\n this.option.throttle = globalOption.animation && globalOption.animationDurationUpdate > 0 ? 100 : 20;\n }\n };\n\n DataZoomModel.prototype._updateRangeUse = function (inputRawOption) {\n var rangePropMode = this._rangePropMode;\n var rangeModeInOption = this.get('rangeMode');\n each([['start', 'startValue'], ['end', 'endValue']], function (names, index) {\n var percentSpecified = inputRawOption[names[0]] != null;\n var valueSpecified = inputRawOption[names[1]] != null;\n\n if (percentSpecified && !valueSpecified) {\n rangePropMode[index] = 'percent';\n } else if (!percentSpecified && valueSpecified) {\n rangePropMode[index] = 'value';\n } else if (rangeModeInOption) {\n rangePropMode[index] = rangeModeInOption[index];\n } else if (percentSpecified) {\n // percentSpecified && valueSpecified\n rangePropMode[index] = 'percent';\n } // else remain its original setting.\n\n });\n };\n\n DataZoomModel.prototype.noTarget = function () {\n return this._noTarget;\n };\n\n DataZoomModel.prototype.getFirstTargetAxisModel = function () {\n var firstAxisModel;\n this.eachTargetAxis(function (axisDim, axisIndex) {\n if (firstAxisModel == null) {\n firstAxisModel = this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n }\n }, this);\n return firstAxisModel;\n };\n /**\n * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel\n */\n\n\n DataZoomModel.prototype.eachTargetAxis = function (callback, context) {\n this._targetAxisInfoMap.each(function (axisInfo, axisDim) {\n each(axisInfo.indexList, function (axisIndex) {\n callback.call(context, axisDim, axisIndex);\n });\n });\n };\n /**\n * @return If not found, return null/undefined.\n */\n\n\n DataZoomModel.prototype.getAxisProxy = function (axisDim, axisIndex) {\n var axisModel = this.getAxisModel(axisDim, axisIndex);\n\n if (axisModel) {\n return axisModel.__dzAxisProxy;\n }\n };\n /**\n * @return If not found, return null/undefined.\n */\n\n\n DataZoomModel.prototype.getAxisModel = function (axisDim, axisIndex) {\n if (process.env.NODE_ENV !== 'production') {\n assert(axisDim && axisIndex != null);\n }\n\n var axisInfo = this._targetAxisInfoMap.get(axisDim);\n\n if (axisInfo && axisInfo.indexMap[axisIndex]) {\n return this.ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n }\n };\n /**\n * If not specified, set to undefined.\n */\n\n\n DataZoomModel.prototype.setRawRange = function (opt) {\n var thisOption = this.option;\n var settledOption = this.settledOption;\n each([['start', 'startValue'], ['end', 'endValue']], function (names) {\n // Consider the pair :\n // If one has value and the other one is `null/undefined`, we both set them\n // to `settledOption`. This strategy enables the feature to clear the original\n // value in `settledOption` to `null/undefined`.\n // But if both of them are `null/undefined`, we do not set them to `settledOption`\n // and keep `settledOption` with the original value. This strategy enables users to\n // only set but not set when calling\n // `dispatchAction`.\n // The pair is treated in the same way.\n if (opt[names[0]] != null || opt[names[1]] != null) {\n thisOption[names[0]] = settledOption[names[0]] = opt[names[0]];\n thisOption[names[1]] = settledOption[names[1]] = opt[names[1]];\n }\n }, this);\n\n this._updateRangeUse(opt);\n };\n\n DataZoomModel.prototype.setCalculatedRange = function (opt) {\n var option = this.option;\n each(['start', 'startValue', 'end', 'endValue'], function (name) {\n option[name] = opt[name];\n });\n };\n\n DataZoomModel.prototype.getPercentRange = function () {\n var axisProxy = this.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n return axisProxy.getDataPercentWindow();\n }\n };\n /**\n * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);\n *\n * @return [startValue, endValue] value can only be '-' or finite number.\n */\n\n\n DataZoomModel.prototype.getValueRange = function (axisDim, axisIndex) {\n if (axisDim == null && axisIndex == null) {\n var axisProxy = this.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n return axisProxy.getDataValueWindow();\n }\n } else {\n return this.getAxisProxy(axisDim, axisIndex).getDataValueWindow();\n }\n };\n /**\n * @param axisModel If axisModel given, find axisProxy\n * corresponding to the axisModel\n */\n\n\n DataZoomModel.prototype.findRepresentativeAxisProxy = function (axisModel) {\n if (axisModel) {\n return axisModel.__dzAxisProxy;\n } // Find the first hosted axisProxy\n\n\n var firstProxy;\n\n var axisDimList = this._targetAxisInfoMap.keys();\n\n for (var i = 0; i < axisDimList.length; i++) {\n var axisDim = axisDimList[i];\n\n var axisInfo = this._targetAxisInfoMap.get(axisDim);\n\n for (var j = 0; j < axisInfo.indexList.length; j++) {\n var proxy = this.getAxisProxy(axisDim, axisInfo.indexList[j]);\n\n if (proxy.hostedBy(this)) {\n return proxy;\n }\n\n if (!firstProxy) {\n firstProxy = proxy;\n }\n }\n } // If no hosted proxy found, still need to return a proxy.\n // This case always happens in toolbox dataZoom, where axes are all hosted by\n // other dataZooms.\n\n\n return firstProxy;\n };\n\n DataZoomModel.prototype.getRangePropMode = function () {\n return this._rangePropMode.slice();\n };\n\n DataZoomModel.prototype.getOrient = function () {\n if (process.env.NODE_ENV !== 'production') {\n // Should not be called before initialized.\n assert(this._orient);\n }\n\n return this._orient;\n };\n\n DataZoomModel.type = 'dataZoom';\n DataZoomModel.dependencies = ['xAxis', 'yAxis', 'radiusAxis', 'angleAxis', 'singleAxis', 'series', 'toolbox'];\n DataZoomModel.defaultOption = {\n zlevel: 0,\n z: 4,\n filterMode: 'filter',\n start: 0,\n end: 100\n };\n return DataZoomModel;\n}(ComponentModel);\n/**\n * Retrieve the those raw params from option, which will be cached separately.\n * becasue they will be overwritten by normalized/calculated values in the main\n * process.\n */\n\n\nfunction retrieveRawOption(option) {\n var ret = {};\n each(['start', 'end', 'startValue', 'endValue', 'throttle'], function (name) {\n option.hasOwnProperty(name) && (ret[name] = option[name]);\n });\n return ret;\n}\n\nexport default DataZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\n\nvar SelectDataZoomModel =\n/** @class */\nfunction (_super) {\n __extends(SelectDataZoomModel, _super);\n\n function SelectDataZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SelectDataZoomModel.type;\n return _this;\n }\n\n SelectDataZoomModel.type = 'dataZoom.select';\n return SelectDataZoomModel;\n}(DataZoomModel);\n\nexport default SelectDataZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\n\nvar DataZoomView =\n/** @class */\nfunction (_super) {\n __extends(DataZoomView, _super);\n\n function DataZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = DataZoomView.type;\n return _this;\n }\n\n DataZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {\n this.dataZoomModel = dataZoomModel;\n this.ecModel = ecModel;\n this.api = api;\n };\n\n DataZoomView.type = 'dataZoom';\n return DataZoomView;\n}(ComponentView);\n\nexport default DataZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomView from './DataZoomView';\n\nvar SelectDataZoomView =\n/** @class */\nfunction (_super) {\n __extends(SelectDataZoomView, _super);\n\n function SelectDataZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SelectDataZoomView.type;\n return _this;\n }\n\n SelectDataZoomView.type = 'dataZoom.select';\n return SelectDataZoomView;\n}(DataZoomView);\n\nexport default SelectDataZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport { unionAxisExtentFromData } from '../../coord/axisHelper';\nimport { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo';\nimport { getAxisMainType, isCoordSupported } from './helper';\nimport { SINGLE_REFERRING } from '../../util/model';\nvar each = zrUtil.each;\nvar asc = numberUtil.asc;\n/**\n * Operate single axis.\n * One axis can only operated by one axis operator.\n * Different dataZoomModels may be defined to operate the same axis.\n * (i.e. 'inside' data zoom and 'slider' data zoom components)\n * So dataZoomModels share one axisProxy in that case.\n */\n\nvar AxisProxy =\n/** @class */\nfunction () {\n function AxisProxy(dimName, axisIndex, dataZoomModel, ecModel) {\n this._dimName = dimName;\n this._axisIndex = axisIndex;\n this.ecModel = ecModel;\n this._dataZoomModel = dataZoomModel; // /**\n // * @readOnly\n // * @private\n // */\n // this.hasSeriesStacked;\n }\n /**\n * Whether the axisProxy is hosted by dataZoomModel.\n */\n\n\n AxisProxy.prototype.hostedBy = function (dataZoomModel) {\n return this._dataZoomModel === dataZoomModel;\n };\n /**\n * @return Value can only be NaN or finite value.\n */\n\n\n AxisProxy.prototype.getDataValueWindow = function () {\n return this._valueWindow.slice();\n };\n /**\n * @return {Array.}\n */\n\n\n AxisProxy.prototype.getDataPercentWindow = function () {\n return this._percentWindow.slice();\n };\n\n AxisProxy.prototype.getTargetSeriesModels = function () {\n var seriesModels = [];\n this.ecModel.eachSeries(function (seriesModel) {\n if (isCoordSupported(seriesModel)) {\n var axisMainType = getAxisMainType(this._dimName);\n var axisModel = seriesModel.getReferringComponents(axisMainType, SINGLE_REFERRING).models[0];\n\n if (axisModel && this._axisIndex === axisModel.componentIndex) {\n seriesModels.push(seriesModel);\n }\n }\n }, this);\n return seriesModels;\n };\n\n AxisProxy.prototype.getAxisModel = function () {\n return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex);\n };\n\n AxisProxy.prototype.getMinMaxSpan = function () {\n return zrUtil.clone(this._minMaxSpan);\n };\n /**\n * Only calculate by given range and this._dataExtent, do not change anything.\n */\n\n\n AxisProxy.prototype.calculateDataWindow = function (opt) {\n var dataExtent = this._dataExtent;\n var axisModel = this.getAxisModel();\n var scale = axisModel.axis.scale;\n\n var rangePropMode = this._dataZoomModel.getRangePropMode();\n\n var percentExtent = [0, 100];\n var percentWindow = [];\n var valueWindow = [];\n var hasPropModeValue;\n each(['start', 'end'], function (prop, idx) {\n var boundPercent = opt[prop];\n var boundValue = opt[prop + 'Value']; // Notice: dataZoom is based either on `percentProp` ('start', 'end') or\n // on `valueProp` ('startValue', 'endValue'). (They are based on the data extent\n // but not min/max of axis, which will be calculated by data window then).\n // The former one is suitable for cases that a dataZoom component controls multiple\n // axes with different unit or extent, and the latter one is suitable for accurate\n // zoom by pixel (e.g., in dataZoomSelect).\n // we use `getRangePropMode()` to mark which prop is used. `rangePropMode` is updated\n // only when setOption or dispatchAction, otherwise it remains its original value.\n // (Why not only record `percentProp` and always map to `valueProp`? Because\n // the map `valueProp` -> `percentProp` -> `valueProp` probably not the original\n // `valueProp`. consider two axes constrolled by one dataZoom. They have different\n // data extent. All of values that are overflow the `dataExtent` will be calculated\n // to percent '100%').\n\n if (rangePropMode[idx] === 'percent') {\n boundPercent == null && (boundPercent = percentExtent[idx]); // Use scale.parse to math round for category or time axis.\n\n boundValue = scale.parse(numberUtil.linearMap(boundPercent, percentExtent, dataExtent));\n } else {\n hasPropModeValue = true;\n boundValue = boundValue == null ? dataExtent[idx] : scale.parse(boundValue); // Calculating `percent` from `value` may be not accurate, because\n // This calculation can not be inversed, because all of values that\n // are overflow the `dataExtent` will be calculated to percent '100%'\n\n boundPercent = numberUtil.linearMap(boundValue, dataExtent, percentExtent);\n } // valueWindow[idx] = round(boundValue);\n // percentWindow[idx] = round(boundPercent);\n\n\n valueWindow[idx] = boundValue;\n percentWindow[idx] = boundPercent;\n });\n asc(valueWindow);\n asc(percentWindow); // The windows from user calling of `dispatchAction` might be out of the extent,\n // or do not obey the `min/maxSpan`, `min/maxValueSpan`. But we dont restrict window\n // by `zoomLock` here, because we see `zoomLock` just as a interaction constraint,\n // where API is able to initialize/modify the window size even though `zoomLock`\n // specified.\n\n var spans = this._minMaxSpan;\n hasPropModeValue ? restrictSet(valueWindow, percentWindow, dataExtent, percentExtent, false) : restrictSet(percentWindow, valueWindow, percentExtent, dataExtent, true);\n\n function restrictSet(fromWindow, toWindow, fromExtent, toExtent, toValue) {\n var suffix = toValue ? 'Span' : 'ValueSpan';\n sliderMove(0, fromWindow, fromExtent, 'all', spans['min' + suffix], spans['max' + suffix]);\n\n for (var i = 0; i < 2; i++) {\n toWindow[i] = numberUtil.linearMap(fromWindow[i], fromExtent, toExtent, true);\n toValue && (toWindow[i] = scale.parse(toWindow[i]));\n }\n }\n\n return {\n valueWindow: valueWindow,\n percentWindow: percentWindow\n };\n };\n /**\n * Notice: reset should not be called before series.restoreData() called,\n * so it is recommanded to be called in \"process stage\" but not \"model init\n * stage\".\n */\n\n\n AxisProxy.prototype.reset = function (dataZoomModel) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n var targetSeries = this.getTargetSeriesModels(); // Culculate data window and data extent, and record them.\n\n this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); // this.hasSeriesStacked = false;\n // each(targetSeries, function (series) {\n // let data = series.getData();\n // let dataDim = data.mapDimension(this._dimName);\n // let stackedDimension = data.getCalculationInfo('stackedDimension');\n // if (stackedDimension && stackedDimension === dataDim) {\n // this.hasSeriesStacked = true;\n // }\n // }, this);\n // `calculateDataWindow` uses min/maxSpan.\n\n this._updateMinMaxSpan();\n\n var dataWindow = this.calculateDataWindow(dataZoomModel.settledOption);\n this._valueWindow = dataWindow.valueWindow;\n this._percentWindow = dataWindow.percentWindow; // Update axis setting then.\n\n this._setAxisModel();\n };\n\n AxisProxy.prototype.filterData = function (dataZoomModel, api) {\n if (dataZoomModel !== this._dataZoomModel) {\n return;\n }\n\n var axisDim = this._dimName;\n var seriesModels = this.getTargetSeriesModels();\n var filterMode = dataZoomModel.get('filterMode');\n var valueWindow = this._valueWindow;\n\n if (filterMode === 'none') {\n return;\n } // FIXME\n // Toolbox may has dataZoom injected. And if there are stacked bar chart\n // with NaN data, NaN will be filtered and stack will be wrong.\n // So we need to force the mode to be set empty.\n // In fect, it is not a big deal that do not support filterMode-'filter'\n // when using toolbox#dataZoom, utill tooltip#dataZoom support \"single axis\n // selection\" some day, which might need \"adapt to data extent on the\n // otherAxis\", which is disabled by filterMode-'empty'.\n // But currently, stack has been fixed to based on value but not index,\n // so this is not an issue any more.\n // let otherAxisModel = this.getOtherAxisModel();\n // if (dataZoomModel.get('$fromToolbox')\n // && otherAxisModel\n // && otherAxisModel.hasSeriesStacked\n // ) {\n // filterMode = 'empty';\n // }\n // TODO\n // filterMode 'weakFilter' and 'empty' is not optimized for huge data yet.\n\n\n each(seriesModels, function (seriesModel) {\n var seriesData = seriesModel.getData();\n var dataDims = seriesData.mapDimensionsAll(axisDim);\n\n if (!dataDims.length) {\n return;\n }\n\n if (filterMode === 'weakFilter') {\n seriesData.filterSelf(function (dataIndex) {\n var leftOut;\n var rightOut;\n var hasValue;\n\n for (var i = 0; i < dataDims.length; i++) {\n var value = seriesData.get(dataDims[i], dataIndex);\n var thisHasValue = !isNaN(value);\n var thisLeftOut = value < valueWindow[0];\n var thisRightOut = value > valueWindow[1];\n\n if (thisHasValue && !thisLeftOut && !thisRightOut) {\n return true;\n }\n\n thisHasValue && (hasValue = true);\n thisLeftOut && (leftOut = true);\n thisRightOut && (rightOut = true);\n } // If both left out and right out, do not filter.\n\n\n return hasValue && leftOut && rightOut;\n });\n } else {\n each(dataDims, function (dim) {\n if (filterMode === 'empty') {\n seriesModel.setData(seriesData = seriesData.map(dim, function (value) {\n return !isInWindow(value) ? NaN : value;\n }));\n } else {\n var range = {};\n range[dim] = valueWindow; // console.time('select');\n\n seriesData.selectRange(range); // console.timeEnd('select');\n }\n });\n }\n\n each(dataDims, function (dim) {\n seriesData.setApproximateExtent(valueWindow, dim);\n });\n });\n\n function isInWindow(value) {\n return value >= valueWindow[0] && value <= valueWindow[1];\n }\n };\n\n AxisProxy.prototype._updateMinMaxSpan = function () {\n var minMaxSpan = this._minMaxSpan = {};\n var dataZoomModel = this._dataZoomModel;\n var dataExtent = this._dataExtent;\n each(['min', 'max'], function (minMax) {\n var percentSpan = dataZoomModel.get(minMax + 'Span');\n var valueSpan = dataZoomModel.get(minMax + 'ValueSpan');\n valueSpan != null && (valueSpan = this.getAxisModel().axis.scale.parse(valueSpan)); // minValueSpan and maxValueSpan has higher priority than minSpan and maxSpan\n\n if (valueSpan != null) {\n percentSpan = numberUtil.linearMap(dataExtent[0] + valueSpan, dataExtent, [0, 100], true);\n } else if (percentSpan != null) {\n valueSpan = numberUtil.linearMap(percentSpan, [0, 100], dataExtent, true) - dataExtent[0];\n }\n\n minMaxSpan[minMax + 'Span'] = percentSpan;\n minMaxSpan[minMax + 'ValueSpan'] = valueSpan;\n }, this);\n };\n\n AxisProxy.prototype._setAxisModel = function () {\n var axisModel = this.getAxisModel();\n var percentWindow = this._percentWindow;\n var valueWindow = this._valueWindow;\n\n if (!percentWindow) {\n return;\n } // [0, 500]: arbitrary value, guess axis extent.\n\n\n var precision = numberUtil.getPixelPrecision(valueWindow, [0, 500]);\n precision = Math.min(precision, 20); // For value axis, if min/max/scale are not set, we just use the extent obtained\n // by series data, which may be a little different from the extent calculated by\n // `axisHelper.getScaleExtent`. But the different just affects the experience a\n // little when zooming. So it will not be fixed until some users require it strongly.\n\n var rawExtentInfo = axisModel.axis.scale.rawExtentInfo;\n\n if (percentWindow[0] !== 0) {\n rawExtentInfo.setDeterminedMinMax('min', +valueWindow[0].toFixed(precision));\n }\n\n if (percentWindow[1] !== 100) {\n rawExtentInfo.setDeterminedMinMax('max', +valueWindow[1].toFixed(precision));\n }\n\n rawExtentInfo.freeze();\n };\n\n return AxisProxy;\n}();\n\nfunction calculateDataExtent(axisProxy, axisDim, seriesModels) {\n var dataExtent = [Infinity, -Infinity];\n each(seriesModels, function (seriesModel) {\n unionAxisExtentFromData(dataExtent, seriesModel.getData(), axisDim);\n }); // It is important to get \"consistent\" extent when more then one axes is\n // controlled by a `dataZoom`, otherwise those axes will not be synchronized\n // when zooming. But it is difficult to know what is \"consistent\", considering\n // axes have different type or even different meanings (For example, two\n // time axes are used to compare data of the same date in different years).\n // So basically dataZoom just obtains extent by series.data (in category axis\n // extent can be obtained from axis.data).\n // Nevertheless, user can set min/max/scale on axes to make extent of axes\n // consistent.\n\n var axisModel = axisProxy.getAxisModel();\n var rawExtentResult = ensureScaleRawExtentInfo(axisModel.axis.scale, axisModel, dataExtent).calculate();\n return [rawExtentResult.min, rawExtentResult.max];\n}\n\nexport default AxisProxy;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport { getAxisMainType } from './helper';\nimport AxisProxy from './AxisProxy';\nvar dataZoomProcessor = {\n // `dataZoomProcessor` will only be performed in needed series. Consider if\n // there is a line series and a pie series, it is better not to update the\n // line series if only pie series is needed to be updated.\n getTargetSeries: function (ecModel) {\n function eachAxisModel(cb) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var axisModel = ecModel.getComponent(getAxisMainType(axisDim), axisIndex);\n cb(axisDim, axisIndex, axisModel, dataZoomModel);\n });\n });\n } // FIXME: it brings side-effect to `getTargetSeries`.\n // Prepare axis proxies.\n\n\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // dispose all last axis proxy, in case that some axis are deleted.\n axisModel.__dzAxisProxy = null;\n });\n var proxyList = [];\n eachAxisModel(function (axisDim, axisIndex, axisModel, dataZoomModel) {\n // Different dataZooms may constrol the same axis. In that case,\n // an axisProxy serves both of them.\n if (!axisModel.__dzAxisProxy) {\n // Use the first dataZoomModel as the main model of axisProxy.\n axisModel.__dzAxisProxy = new AxisProxy(axisDim, axisIndex, dataZoomModel, ecModel);\n proxyList.push(axisModel.__dzAxisProxy);\n }\n });\n var seriesModelMap = createHashMap();\n each(proxyList, function (axisProxy) {\n each(axisProxy.getTargetSeriesModels(), function (seriesModel) {\n seriesModelMap.set(seriesModel.uid, seriesModel);\n });\n });\n return seriesModelMap;\n },\n // Consider appendData, where filter should be performed. Because data process is\n // in block mode currently, it is not need to worry about that the overallProgress\n // execute every frame.\n overallReset: function (ecModel, api) {\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n // We calculate window and reset axis here but not in model\n // init stage and not after action dispatch handler, because\n // reset should be called after seriesData.restoreData.\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).reset(dataZoomModel);\n }); // Caution: data zoom filtering is order sensitive when using\n // percent range and no min/max/scale set on axis.\n // For example, we have dataZoom definition:\n // [\n // {xAxisIndex: 0, start: 30, end: 70},\n // {yAxisIndex: 0, start: 20, end: 80}\n // ]\n // In this case, [20, 80] of y-dataZoom should be based on data\n // that have filtered by x-dataZoom using range of [30, 70],\n // but should not be based on full raw data. Thus sliding\n // x-dataZoom will change both ranges of xAxis and yAxis,\n // while sliding y-dataZoom will only change the range of yAxis.\n // So we should filter x-axis after reset x-axis immediately,\n // and then reset y-axis and filter y-axis.\n\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n dataZoomModel.getAxisProxy(axisDim, axisIndex).filterData(dataZoomModel, api);\n });\n });\n ecModel.eachComponent('dataZoom', function (dataZoomModel) {\n // Fullfill all of the range props so that user\n // is able to get them from chart.getOption().\n var axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n var percentRange = axisProxy.getDataPercentWindow();\n var valueRange = axisProxy.getDataValueWindow();\n dataZoomModel.setCalculatedRange({\n start: percentRange[0],\n end: percentRange[1],\n startValue: valueRange[0],\n endValue: valueRange[1]\n });\n }\n });\n }\n};\nexport default dataZoomProcessor;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { findEffectedDataZooms } from './helper';\nimport { each } from 'zrender/lib/core/util';\nexport default function installDataZoomAction(registers) {\n registers.registerAction('dataZoom', function (payload, ecModel) {\n var effectedModels = findEffectedDataZooms(ecModel, payload);\n each(effectedModels, function (dataZoomModel) {\n dataZoomModel.setRawRange({\n start: payload.start,\n end: payload.end,\n startValue: payload.startValue,\n endValue: payload.endValue\n });\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport dataZoomProcessor from './dataZoomProcessor';\nimport installDataZoomAction from './dataZoomAction';\nvar installed = false;\nexport default function installCommon(registers) {\n if (installed) {\n return;\n }\n\n installed = true;\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, dataZoomProcessor);\n installDataZoomAction(registers);\n registers.registerSubTypeDefaulter('dataZoom', function () {\n // Default 'slider' when no type specified.\n return 'slider';\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SelectZoomModel from './SelectZoomModel';\nimport SelectZoomView from './SelectZoomView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(SelectZoomModel);\n registers.registerComponentView(SelectZoomView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nvar ToolboxFeature =\n/** @class */\nfunction () {\n function ToolboxFeature() {}\n\n return ToolboxFeature;\n}();\n\nexport { ToolboxFeature };\nvar features = {};\nexport function registerFeature(name, ctor) {\n features[name] = ctor;\n}\nexport function getFeature(name) {\n return features[name];\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as featureManager from './featureManager';\nimport ComponentModel from '../../model/Component';\n\nvar ToolboxModel =\n/** @class */\nfunction (_super) {\n __extends(ToolboxModel, _super);\n\n function ToolboxModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ToolboxModel.type;\n return _this;\n }\n\n ToolboxModel.prototype.optionUpdated = function () {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n var ecModel = this.ecModel;\n zrUtil.each(this.option.feature, function (featureOpt, featureName) {\n var Feature = featureManager.getFeature(featureName);\n\n if (Feature) {\n if (Feature.getDefaultOption) {\n Feature.defaultOption = Feature.getDefaultOption(ecModel);\n }\n\n zrUtil.merge(featureOpt, Feature.defaultOption);\n }\n });\n };\n\n ToolboxModel.type = 'toolbox';\n ToolboxModel.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n ToolboxModel.defaultOption = {\n show: true,\n z: 6,\n zlevel: 0,\n orient: 'horizontal',\n left: 'right',\n top: 'top',\n // right\n // bottom\n backgroundColor: 'transparent',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemSize: 15,\n itemGap: 8,\n showTitle: true,\n iconStyle: {\n borderColor: '#666',\n color: 'none'\n },\n emphasis: {\n iconStyle: {\n borderColor: '#3E98C5'\n }\n },\n // textStyle: {},\n // feature\n tooltip: {\n show: false,\n position: 'bottom'\n }\n };\n return ToolboxModel;\n}(ComponentModel);\n\nexport default ToolboxModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport { getLayoutRect, box as layoutBox, positionElement } from '../../util/layout';\nimport * as formatUtil from '../../util/format';\nimport * as graphic from '../../util/graphic';\n/**\n * Layout list like component.\n * It will box layout each items in group of component and then position the whole group in the viewport\n * @param {module:zrender/group/Group} group\n * @param {module:echarts/model/Component} componentModel\n * @param {module:echarts/ExtensionAPI}\n */\n\nexport function layout(group, componentModel, api) {\n var boxLayoutParams = componentModel.getBoxLayoutParams();\n var padding = componentModel.get('padding');\n var viewportSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var rect = getLayoutRect(boxLayoutParams, viewportSize, padding);\n layoutBox(componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height);\n positionElement(group, boxLayoutParams, viewportSize, padding);\n}\nexport function makeBackground(rect, componentModel) {\n var padding = formatUtil.normalizeCssArray(componentModel.get('padding'));\n var style = componentModel.getItemStyle(['color', 'opacity']);\n style.fill = componentModel.get('backgroundColor');\n rect = new graphic.Rect({\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[1] + padding[3],\n height: rect.height + padding[0] + padding[2],\n r: componentModel.get('borderRadius')\n },\n style: style,\n silent: true,\n z2: -1\n }); // FIXME\n // `subPixelOptimizeRect` may bring some gap between edge of viewpart\n // and background rect when setting like `left: 0`, `top: 0`.\n // graphic.subPixelOptimizeRect(rect);\n\n return rect;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as textContain from 'zrender/lib/contain/text';\nimport * as graphic from '../../util/graphic';\nimport { enterEmphasis, leaveEmphasis } from '../../util/states';\nimport Model from '../../model/Model';\nimport DataDiffer from '../../data/DataDiffer';\nimport * as listComponentHelper from '../helper/listComponent';\nimport ComponentView from '../../view/Component';\nimport { ToolboxFeature, getFeature } from './featureManager';\nimport { getUID } from '../../util/component';\nimport ZRText from 'zrender/lib/graphic/Text';\n\nvar ToolboxView =\n/** @class */\nfunction (_super) {\n __extends(ToolboxView, _super);\n\n function ToolboxView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ToolboxView.prototype.render = function (toolboxModel, ecModel, api, payload) {\n var group = this.group;\n group.removeAll();\n\n if (!toolboxModel.get('show')) {\n return;\n }\n\n var itemSize = +toolboxModel.get('itemSize');\n var featureOpts = toolboxModel.get('feature') || {};\n var features = this._features || (this._features = {});\n var featureNames = [];\n zrUtil.each(featureOpts, function (opt, name) {\n featureNames.push(name);\n });\n new DataDiffer(this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(zrUtil.curry(processFeature, null)).execute(); // Keep for diff.\n\n this._featureNames = featureNames;\n\n function processFeature(newIndex, oldIndex) {\n var featureName = featureNames[newIndex];\n var oldName = featureNames[oldIndex];\n var featureOpt = featureOpts[featureName];\n var featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel);\n var feature; // FIX#11236, merge feature title from MagicType newOption. TODO: consider seriesIndex ?\n\n if (payload && payload.newTitle != null && payload.featureName === featureName) {\n featureOpt.title = payload.newTitle;\n }\n\n if (featureName && !oldName) {\n // Create\n if (isUserFeatureName(featureName)) {\n feature = {\n onclick: featureModel.option.onclick,\n featureName: featureName\n };\n } else {\n var Feature = getFeature(featureName);\n\n if (!Feature) {\n return;\n }\n\n feature = new Feature();\n }\n\n features[featureName] = feature;\n } else {\n feature = features[oldName]; // If feature does not exsit.\n\n if (!feature) {\n return;\n }\n }\n\n feature.uid = getUID('toolbox-feature');\n feature.model = featureModel;\n feature.ecModel = ecModel;\n feature.api = api;\n var isToolboxFeature = feature instanceof ToolboxFeature;\n\n if (!featureName && oldName) {\n isToolboxFeature && feature.dispose && feature.dispose(ecModel, api);\n return;\n }\n\n if (!featureModel.get('show') || isToolboxFeature && feature.unusable) {\n isToolboxFeature && feature.remove && feature.remove(ecModel, api);\n return;\n }\n\n createIconPaths(featureModel, feature, featureName);\n\n featureModel.setIconStatus = function (iconName, status) {\n var option = this.option;\n var iconPaths = this.iconPaths;\n option.iconStatus = option.iconStatus || {};\n option.iconStatus[iconName] = status;\n\n if (iconPaths[iconName]) {\n (status === 'emphasis' ? enterEmphasis : leaveEmphasis)(iconPaths[iconName]);\n }\n };\n\n if (feature instanceof ToolboxFeature) {\n if (feature.render) {\n feature.render(featureModel, ecModel, api, payload);\n }\n }\n }\n\n function createIconPaths(featureModel, feature, featureName) {\n var iconStyleModel = featureModel.getModel('iconStyle');\n var iconStyleEmphasisModel = featureModel.getModel(['emphasis', 'iconStyle']); // If one feature has mutiple icon. they are orginaized as\n // {\n // icon: {\n // foo: '',\n // bar: ''\n // },\n // title: {\n // foo: '',\n // bar: ''\n // }\n // }\n\n var icons = feature instanceof ToolboxFeature && feature.getIcons ? feature.getIcons() : featureModel.get('icon');\n var titles = featureModel.get('title') || {};\n var iconsMap;\n var titlesMap;\n\n if (typeof icons === 'string') {\n iconsMap = {};\n iconsMap[featureName] = icons;\n } else {\n iconsMap = icons;\n }\n\n if (typeof titles === 'string') {\n titlesMap = {};\n titlesMap[featureName] = titles;\n } else {\n titlesMap = titles;\n }\n\n var iconPaths = featureModel.iconPaths = {};\n zrUtil.each(iconsMap, function (iconStr, iconName) {\n var path = graphic.createIcon(iconStr, {}, {\n x: -itemSize / 2,\n y: -itemSize / 2,\n width: itemSize,\n height: itemSize\n }); // TODO handling image\n\n path.setStyle(iconStyleModel.getItemStyle());\n var pathEmphasisState = path.ensureState('emphasis');\n pathEmphasisState.style = iconStyleEmphasisModel.getItemStyle(); // Text position calculation\n\n var textContent = new ZRText({\n style: {\n text: titlesMap[iconName],\n align: iconStyleEmphasisModel.get('textAlign'),\n borderRadius: iconStyleEmphasisModel.get('textBorderRadius'),\n padding: iconStyleEmphasisModel.get('textPadding'),\n fill: null\n },\n ignore: true\n });\n path.setTextContent(textContent);\n graphic.setTooltipConfig({\n el: path,\n componentModel: toolboxModel,\n itemName: iconName,\n formatterParamsExtra: {\n title: titlesMap[iconName]\n }\n }); // graphic.enableHoverEmphasis(path);\n\n path.__title = titlesMap[iconName];\n path.on('mouseover', function () {\n // Should not reuse above hoverStyle, which might be modified.\n var hoverStyle = iconStyleEmphasisModel.getItemStyle();\n var defaultTextPosition = toolboxModel.get('orient') === 'vertical' ? toolboxModel.get('right') == null ? 'right' : 'left' : toolboxModel.get('bottom') == null ? 'bottom' : 'top';\n textContent.setStyle({\n fill: iconStyleEmphasisModel.get('textFill') || hoverStyle.fill || hoverStyle.stroke || '#000',\n backgroundColor: iconStyleEmphasisModel.get('textBackgroundColor')\n });\n path.setTextConfig({\n position: iconStyleEmphasisModel.get('textPosition') || defaultTextPosition\n });\n textContent.ignore = !toolboxModel.get('showTitle'); // Use enterEmphasis and leaveEmphasis provide by ec.\n // There are flags managed by the echarts.\n\n enterEmphasis(this);\n }).on('mouseout', function () {\n if (featureModel.get(['iconStatus', iconName]) !== 'emphasis') {\n leaveEmphasis(this);\n }\n\n textContent.hide();\n });\n (featureModel.get(['iconStatus', iconName]) === 'emphasis' ? enterEmphasis : leaveEmphasis)(path);\n group.add(path);\n path.on('click', zrUtil.bind(feature.onclick, feature, ecModel, api, iconName));\n iconPaths[iconName] = path;\n });\n }\n\n listComponentHelper.layout(group, toolboxModel, api); // Render background after group is layout\n // FIXME\n\n group.add(listComponentHelper.makeBackground(group.getBoundingRect(), toolboxModel)); // Adjust icon title positions to avoid them out of screen\n\n group.eachChild(function (icon) {\n var titleText = icon.__title; // const hoverStyle = icon.hoverStyle;\n // TODO simplify code?\n\n var emphasisState = icon.ensureState('emphasis');\n var emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {});\n var textContent = icon.getTextContent();\n var emphasisTextState = textContent && textContent.states.emphasis; // May be background element\n\n if (emphasisTextState && !zrUtil.isFunction(emphasisTextState) && titleText) {\n var emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {});\n var rect = textContain.getBoundingRect(titleText, ZRText.makeFont(emphasisTextStyle));\n var offsetX = icon.x + group.x;\n var offsetY = icon.y + group.y + itemSize;\n var needPutOnTop = false;\n\n if (offsetY + rect.height > api.getHeight()) {\n emphasisTextConfig.position = 'top';\n needPutOnTop = true;\n }\n\n var topOffset = needPutOnTop ? -5 - rect.height : itemSize + 8;\n\n if (offsetX + rect.width / 2 > api.getWidth()) {\n emphasisTextConfig.position = ['100%', topOffset];\n emphasisTextStyle.align = 'right';\n } else if (offsetX - rect.width / 2 < 0) {\n emphasisTextConfig.position = [0, topOffset];\n emphasisTextStyle.align = 'left';\n }\n }\n });\n };\n\n ToolboxView.prototype.updateView = function (toolboxModel, ecModel, api, payload) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.updateView && feature.updateView(feature.model, ecModel, api, payload);\n });\n }; // updateLayout(toolboxModel, ecModel, api, payload) {\n // zrUtil.each(this._features, function (feature) {\n // feature.updateLayout && feature.updateLayout(feature.model, ecModel, api, payload);\n // });\n // },\n\n\n ToolboxView.prototype.remove = function (ecModel, api) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.remove && feature.remove(ecModel, api);\n });\n this.group.removeAll();\n };\n\n ToolboxView.prototype.dispose = function (ecModel, api) {\n zrUtil.each(this._features, function (feature) {\n feature instanceof ToolboxFeature && feature.dispose && feature.dispose(ecModel, api);\n });\n };\n\n ToolboxView.type = 'toolbox';\n return ToolboxView;\n}(ComponentView);\n\nfunction isUserFeatureName(featureName) {\n return featureName.indexOf('my') === 0;\n}\n\nexport default ToolboxView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/* global Uint8Array */\n\nimport env from 'zrender/lib/core/env';\nimport { ToolboxFeature } from '../featureManager';\n/* global window, document */\n\nvar SaveAsImage =\n/** @class */\nfunction (_super) {\n __extends(SaveAsImage, _super);\n\n function SaveAsImage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SaveAsImage.prototype.onclick = function (ecModel, api) {\n var model = this.model;\n var title = model.get('name') || ecModel.get('title.0.text') || 'echarts';\n var isSvg = api.getZr().painter.getType() === 'svg';\n var type = isSvg ? 'svg' : model.get('type', true) || 'png';\n var url = api.getConnectedDataURL({\n type: type,\n backgroundColor: model.get('backgroundColor', true) || ecModel.get('backgroundColor') || '#fff',\n connectedBackgroundColor: model.get('connectedBackgroundColor'),\n excludeComponents: model.get('excludeComponents'),\n pixelRatio: model.get('pixelRatio')\n }); // Chrome, Firefox, New Edge\n\n if (typeof MouseEvent === 'function' && (env.browser.newEdge || !env.browser.ie && !env.browser.edge)) {\n var $a = document.createElement('a');\n $a.download = title + '.' + type;\n $a.target = '_blank';\n $a.href = url;\n var evt = new MouseEvent('click', {\n // some micro front-end framework, window maybe is a Proxy\n view: document.defaultView,\n bubbles: true,\n cancelable: false\n });\n $a.dispatchEvent(evt);\n } // IE or old Edge\n else {\n if (window.navigator.msSaveOrOpenBlob || isSvg) {\n var parts = url.split(','); // data:[][;charset=][;base64],\n\n var base64Encoded = parts[0].indexOf('base64') > -1;\n var bstr = isSvg // should decode the svg data uri first\n ? decodeURIComponent(parts[1]) : parts[1]; // only `atob` when the data uri is encoded with base64\n // otherwise, like `svg` data uri exported by zrender,\n // there will be an error, for it's not encoded with base64.\n // (just a url-encoded string through `encodeURIComponent`)\n\n base64Encoded && (bstr = window.atob(bstr));\n var filename = title + '.' + type;\n\n if (window.navigator.msSaveOrOpenBlob) {\n var n = bstr.length;\n var u8arr = new Uint8Array(n);\n\n while (n--) {\n u8arr[n] = bstr.charCodeAt(n);\n }\n\n var blob = new Blob([u8arr]);\n window.navigator.msSaveOrOpenBlob(blob, filename);\n } else {\n var frame = document.createElement('iframe');\n document.body.appendChild(frame);\n var cw = frame.contentWindow;\n var doc = cw.document;\n doc.open('image/svg+xml', 'replace');\n doc.write(bstr);\n doc.close();\n cw.focus();\n doc.execCommand('SaveAs', true, filename);\n document.body.removeChild(frame);\n }\n } else {\n var lang = model.get('lang');\n var html = '' + '' + '' + '';\n var tab = window.open();\n tab.document.write(html);\n tab.document.title = title;\n }\n }\n };\n\n SaveAsImage.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',\n title: ecModel.getLocale(['toolbox', 'saveAsImage', 'title']),\n type: 'png',\n // Default use option.backgroundColor\n // backgroundColor: '#fff',\n connectedBackgroundColor: '#fff',\n name: '',\n excludeComponents: ['toolbox'],\n // use current pixel ratio of device by default\n // pixelRatio: 1,\n lang: ecModel.getLocale(['toolbox', 'saveAsImage', 'lang'])\n };\n return defaultOption;\n };\n\n return SaveAsImage;\n}(ToolboxFeature);\n\nSaveAsImage.prototype.unusable = !env.canvasSupported;\nexport default SaveAsImage;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nimport { SINGLE_REFERRING } from '../../../util/model';\nvar INNER_STACK_KEYWORD = '__ec_magicType_stack__';\nvar ICON_TYPES = ['line', 'bar', 'stack']; // stack and tiled appears in pair for the title\n\nvar TITLE_TYPES = ['line', 'bar', 'stack', 'tiled'];\nvar radioTypes = [['line', 'bar'], ['stack']];\n\nvar MagicType =\n/** @class */\nfunction (_super) {\n __extends(MagicType, _super);\n\n function MagicType() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n MagicType.prototype.getIcons = function () {\n var model = this.model;\n var availableIcons = model.get('icon');\n var icons = {};\n zrUtil.each(model.get('type'), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n MagicType.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n type: [],\n // Icon group\n icon: {\n line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',\n bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',\n // eslint-disable-next-line\n stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z' // jshint ignore:line\n\n },\n // `line`, `bar`, `stack`, `tiled`\n title: ecModel.getLocale(['toolbox', 'magicType', 'title']),\n option: {},\n seriesIndex: {}\n };\n return defaultOption;\n };\n\n MagicType.prototype.onclick = function (ecModel, api, type) {\n var model = this.model;\n var seriesIndex = model.get(['seriesIndex', type]); // Not supported magicType\n\n if (!seriesOptGenreator[type]) {\n return;\n }\n\n var newOption = {\n series: []\n };\n\n var generateNewSeriesTypes = function (seriesModel) {\n var seriesType = seriesModel.subType;\n var seriesId = seriesModel.id;\n var newSeriesOpt = seriesOptGenreator[type](seriesType, seriesId, seriesModel, model);\n\n if (newSeriesOpt) {\n // PENDING If merge original option?\n zrUtil.defaults(newSeriesOpt, seriesModel.option);\n newOption.series.push(newSeriesOpt);\n } // Modify boundaryGap\n\n\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {\n var categoryAxis = coordSys.getAxesByScale('ordinal')[0];\n\n if (categoryAxis) {\n var axisDim = categoryAxis.dim;\n var axisType = axisDim + 'Axis';\n var axisModel = seriesModel.getReferringComponents(axisType, SINGLE_REFERRING).models[0];\n var axisIndex = axisModel.componentIndex;\n newOption[axisType] = newOption[axisType] || [];\n\n for (var i = 0; i <= axisIndex; i++) {\n newOption[axisType][axisIndex] = newOption[axisType][axisIndex] || {};\n }\n\n newOption[axisType][axisIndex].boundaryGap = type === 'bar';\n }\n }\n };\n\n zrUtil.each(radioTypes, function (radio) {\n if (zrUtil.indexOf(radio, type) >= 0) {\n zrUtil.each(radio, function (item) {\n model.setIconStatus(item, 'normal');\n });\n }\n });\n model.setIconStatus(type, 'emphasis');\n ecModel.eachComponent({\n mainType: 'series',\n query: seriesIndex == null ? null : {\n seriesIndex: seriesIndex\n }\n }, generateNewSeriesTypes);\n var newTitle;\n var currentType = type; // Change title of stack\n\n if (type === 'stack') {\n // use titles in model instead of ecModel\n // as stack and tiled appears in pair, just flip them\n // no need of checking stack state\n newTitle = zrUtil.merge({\n stack: model.option.title.tiled,\n tiled: model.option.title.stack\n }, model.option.title);\n\n if (model.get(['iconStatus', type]) !== 'emphasis') {\n currentType = 'tiled';\n }\n }\n\n api.dispatchAction({\n type: 'changeMagicType',\n currentType: currentType,\n newOption: newOption,\n newTitle: newTitle,\n featureName: 'magicType'\n });\n };\n\n return MagicType;\n}(ToolboxFeature);\n\nvar seriesOptGenreator = {\n 'line': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'bar') {\n return zrUtil.merge({\n id: seriesId,\n type: 'line',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'line']) || {}, true);\n }\n },\n 'bar': function (seriesType, seriesId, seriesModel, model) {\n if (seriesType === 'line') {\n return zrUtil.merge({\n id: seriesId,\n type: 'bar',\n // Preserve data related option\n data: seriesModel.get('data'),\n stack: seriesModel.get('stack'),\n markPoint: seriesModel.get('markPoint'),\n markLine: seriesModel.get('markLine')\n }, model.get(['option', 'bar']) || {}, true);\n }\n },\n 'stack': function (seriesType, seriesId, seriesModel, model) {\n var isStack = seriesModel.get('stack') === INNER_STACK_KEYWORD;\n\n if (seriesType === 'line' || seriesType === 'bar') {\n model.setIconStatus('stack', isStack ? 'normal' : 'emphasis');\n return zrUtil.merge({\n id: seriesId,\n stack: isStack ? '' : INNER_STACK_KEYWORD\n }, model.get(['option', 'stack']) || {}, true);\n }\n }\n}; // TODO: SELF REGISTERED.\n\necharts.registerAction({\n type: 'changeMagicType',\n event: 'magicTypeChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.mergeOption(payload.newOption);\n});\nexport default MagicType;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nimport { addEventListener } from 'zrender/lib/core/event';\n/* global document */\n\nvar BLOCK_SPLITER = new Array(60).join('-');\nvar ITEM_SPLITER = '\\t';\n/**\n * Group series into two types\n * 1. on category axis, like line, bar\n * 2. others, like scatter, pie\n */\n\nfunction groupSeries(ecModel) {\n var seriesGroupByCategoryAxis = {};\n var otherSeries = [];\n var meta = [];\n ecModel.eachRawSeries(function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n var baseAxis = coordSys.getBaseAxis();\n\n if (baseAxis.type === 'category') {\n var key = baseAxis.dim + '_' + baseAxis.index;\n\n if (!seriesGroupByCategoryAxis[key]) {\n seriesGroupByCategoryAxis[key] = {\n categoryAxis: baseAxis,\n valueAxis: coordSys.getOtherAxis(baseAxis),\n series: []\n };\n meta.push({\n axisDim: baseAxis.dim,\n axisIndex: baseAxis.index\n });\n }\n\n seriesGroupByCategoryAxis[key].series.push(seriesModel);\n } else {\n otherSeries.push(seriesModel);\n }\n } else {\n otherSeries.push(seriesModel);\n }\n });\n return {\n seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n other: otherSeries,\n meta: meta\n };\n}\n/**\n * Assemble content of series on cateogory axis\n * @inner\n */\n\n\nfunction assembleSeriesWithCategoryAxis(groups) {\n var tables = [];\n zrUtil.each(groups, function (group, key) {\n var categoryAxis = group.categoryAxis;\n var valueAxis = group.valueAxis;\n var valueAxisDim = valueAxis.dim;\n var headers = [' '].concat(zrUtil.map(group.series, function (series) {\n return series.name;\n })); // @ts-ignore TODO Polar\n\n var columns = [categoryAxis.model.getCategories()];\n zrUtil.each(group.series, function (series) {\n var rawData = series.getRawData();\n columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n return val;\n }));\n }); // Assemble table content\n\n var lines = [headers.join(ITEM_SPLITER)];\n\n for (var i = 0; i < columns[0].length; i++) {\n var items = [];\n\n for (var j = 0; j < columns.length; j++) {\n items.push(columns[j][i]);\n }\n\n lines.push(items.join(ITEM_SPLITER));\n }\n\n tables.push(lines.join('\\n'));\n });\n return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n/**\n * Assemble content of other series\n */\n\n\nfunction assembleOtherSeries(series) {\n return zrUtil.map(series, function (series) {\n var data = series.getRawData();\n var lines = [series.name];\n var vals = [];\n data.each(data.dimensions, function () {\n var argLen = arguments.length;\n var dataIndex = arguments[argLen - 1];\n var name = data.getName(dataIndex);\n\n for (var i = 0; i < argLen - 1; i++) {\n vals[i] = arguments[i];\n }\n\n lines.push((name ? name + ITEM_SPLITER : '') + vals.join(ITEM_SPLITER));\n });\n return lines.join('\\n');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}\n\nfunction getContentFromModel(ecModel) {\n var result = groupSeries(ecModel);\n return {\n value: zrUtil.filter([assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis), assembleOtherSeries(result.other)], function (str) {\n return !!str.replace(/[\\n\\t\\s]/g, '');\n }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n'),\n meta: result.meta\n };\n}\n\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n/**\n * If a block is tsv format\n */\n\n\nfunction isTSVFormat(block) {\n // Simple method to find out if a block is tsv format\n var firstLine = block.slice(0, block.indexOf('\\n'));\n\n if (firstLine.indexOf(ITEM_SPLITER) >= 0) {\n return true;\n }\n}\n\nvar itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');\n/**\n * @param {string} tsv\n * @return {Object}\n */\n\nfunction parseTSVContents(tsv) {\n var tsvLines = tsv.split(/\\n+/g);\n var headers = trim(tsvLines.shift()).split(itemSplitRegex);\n var categories = [];\n var series = zrUtil.map(headers, function (header) {\n return {\n name: header,\n data: []\n };\n });\n\n for (var i = 0; i < tsvLines.length; i++) {\n var items = trim(tsvLines[i]).split(itemSplitRegex);\n categories.push(items.shift());\n\n for (var j = 0; j < items.length; j++) {\n series[j] && (series[j].data[i] = items[j]);\n }\n }\n\n return {\n series: series,\n categories: categories\n };\n}\n\nfunction parseListContents(str) {\n var lines = str.split(/\\n+/g);\n var seriesName = trim(lines.shift());\n var data = [];\n\n for (var i = 0; i < lines.length; i++) {\n // if line is empty, ignore it.\n // there is a case that a user forgot to delete `\\n`.\n var line = trim(lines[i]);\n\n if (!line) {\n continue;\n }\n\n var items = line.split(itemSplitRegex);\n var name_1 = '';\n var value = void 0;\n var hasName = false;\n\n if (isNaN(items[0])) {\n // First item is name\n hasName = true;\n name_1 = items[0];\n items = items.slice(1);\n data[i] = {\n name: name_1,\n value: []\n };\n value = data[i].value;\n } else {\n value = data[i] = [];\n }\n\n for (var j = 0; j < items.length; j++) {\n value.push(+items[j]);\n }\n\n if (value.length === 1) {\n hasName ? data[i].value = value[0] : data[i] = value[0];\n }\n }\n\n return {\n name: seriesName,\n data: data\n };\n}\n\nfunction parseContents(str, blockMetaList) {\n var blocks = str.split(new RegExp('\\n*' + BLOCK_SPLITER + '\\n*', 'g'));\n var newOption = {\n series: []\n };\n zrUtil.each(blocks, function (block, idx) {\n if (isTSVFormat(block)) {\n var result = parseTSVContents(block);\n var blockMeta = blockMetaList[idx];\n var axisKey = blockMeta.axisDim + 'Axis';\n\n if (blockMeta) {\n newOption[axisKey] = newOption[axisKey] || [];\n newOption[axisKey][blockMeta.axisIndex] = {\n data: result.categories\n };\n newOption.series = newOption.series.concat(result.series);\n }\n } else {\n var result = parseListContents(block);\n newOption.series.push(result);\n }\n });\n return newOption;\n}\n\nvar DataView =\n/** @class */\nfunction (_super) {\n __extends(DataView, _super);\n\n function DataView() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DataView.prototype.onclick = function (ecModel, api) {\n var container = api.getDom();\n var model = this.model;\n\n if (this._dom) {\n container.removeChild(this._dom);\n }\n\n var root = document.createElement('div');\n root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';\n root.style.backgroundColor = model.get('backgroundColor') || '#fff'; // Create elements\n\n var header = document.createElement('h4');\n var lang = model.get('lang') || [];\n header.innerHTML = lang[0] || model.get('title');\n header.style.cssText = 'margin: 10px 20px;';\n header.style.color = model.get('textColor');\n var viewMain = document.createElement('div');\n var textarea = document.createElement('textarea');\n viewMain.style.cssText = 'display:block;width:100%;overflow:auto;';\n var optionToContent = model.get('optionToContent');\n var contentToOption = model.get('contentToOption');\n var result = getContentFromModel(ecModel);\n\n if (typeof optionToContent === 'function') {\n var htmlOrDom = optionToContent(api.getOption());\n\n if (typeof htmlOrDom === 'string') {\n viewMain.innerHTML = htmlOrDom;\n } else if (zrUtil.isDom(htmlOrDom)) {\n viewMain.appendChild(htmlOrDom);\n }\n } else {\n // Use default textarea\n viewMain.appendChild(textarea);\n textarea.readOnly = model.get('readOnly');\n textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';\n textarea.style.color = model.get('textColor');\n textarea.style.borderColor = model.get('textareaBorderColor');\n textarea.style.backgroundColor = model.get('textareaColor');\n textarea.value = result.value;\n }\n\n var blockMetaList = result.meta;\n var buttonContainer = document.createElement('div');\n buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';\n var buttonStyle = 'float:right;margin-right:20px;border:none;' + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';\n var closeButton = document.createElement('div');\n var refreshButton = document.createElement('div');\n buttonStyle += ';background-color:' + model.get('buttonColor');\n buttonStyle += ';color:' + model.get('buttonTextColor');\n var self = this;\n\n function close() {\n container.removeChild(root);\n self._dom = null;\n }\n\n addEventListener(closeButton, 'click', close);\n addEventListener(refreshButton, 'click', function () {\n if (contentToOption == null && optionToContent != null || contentToOption != null && optionToContent == null) {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n console.warn('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.');\n }\n\n close();\n return;\n }\n\n var newOption;\n\n try {\n if (typeof contentToOption === 'function') {\n newOption = contentToOption(viewMain, api.getOption());\n } else {\n newOption = parseContents(textarea.value, blockMetaList);\n }\n } catch (e) {\n close();\n throw new Error('Data view format error ' + e);\n }\n\n if (newOption) {\n api.dispatchAction({\n type: 'changeDataView',\n newOption: newOption\n });\n }\n\n close();\n });\n closeButton.innerHTML = lang[1];\n refreshButton.innerHTML = lang[2];\n refreshButton.style.cssText = buttonStyle;\n closeButton.style.cssText = buttonStyle;\n !model.get('readOnly') && buttonContainer.appendChild(refreshButton);\n buttonContainer.appendChild(closeButton);\n root.appendChild(header);\n root.appendChild(viewMain);\n root.appendChild(buttonContainer);\n viewMain.style.height = container.clientHeight - 80 + 'px';\n container.appendChild(root);\n this._dom = root;\n };\n\n DataView.prototype.remove = function (ecModel, api) {\n this._dom && api.getDom().removeChild(this._dom);\n };\n\n DataView.prototype.dispose = function (ecModel, api) {\n this.remove(ecModel, api);\n };\n\n DataView.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n readOnly: false,\n optionToContent: null,\n contentToOption: null,\n // eslint-disable-next-line\n icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',\n title: ecModel.getLocale(['toolbox', 'dataView', 'title']),\n lang: ecModel.getLocale(['toolbox', 'dataView', 'lang']),\n backgroundColor: '#fff',\n textColor: '#000',\n textareaColor: '#fff',\n textareaBorderColor: '#333',\n buttonColor: '#c23531',\n buttonTextColor: '#fff'\n };\n return defaultOption;\n };\n\n return DataView;\n}(ToolboxFeature);\n/**\n * @inner\n */\n\n\nfunction tryMergeDataOption(newData, originalData) {\n return zrUtil.map(newData, function (newVal, idx) {\n var original = originalData && originalData[idx];\n\n if (zrUtil.isObject(original) && !zrUtil.isArray(original)) {\n var newValIsObject = zrUtil.isObject(newVal) && !zrUtil.isArray(newVal);\n\n if (!newValIsObject) {\n newVal = {\n value: newVal\n };\n } // original data has name but new data has no name\n\n\n var shouldDeleteName = original.name != null && newVal.name == null; // Original data has option\n\n newVal = zrUtil.defaults(newVal, original);\n shouldDeleteName && delete newVal.name;\n return newVal;\n } else {\n return newVal;\n }\n });\n} // TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'changeDataView',\n event: 'dataViewChanged',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n var newSeriesOptList = [];\n zrUtil.each(payload.newOption.series, function (seriesOpt) {\n var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];\n\n if (!seriesModel) {\n // New created series\n // Geuss the series type\n newSeriesOptList.push(zrUtil.extend({\n // Default is scatter\n type: 'scatter'\n }, seriesOpt));\n } else {\n var originalData = seriesModel.get('data');\n newSeriesOptList.push({\n name: seriesOpt.name,\n data: tryMergeDataOption(seriesOpt.data, originalData)\n });\n }\n });\n ecModel.mergeOption(zrUtil.defaults({\n series: newSeriesOptList\n }, payload.newOption));\n});\nexport default DataView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nvar each = zrUtil.each;\nvar inner = makeInner();\n/**\n * @param ecModel\n * @param newSnapshot key is dataZoomId\n */\n\nexport function push(ecModel, newSnapshot) {\n var storedSnapshots = getStoreSnapshots(ecModel); // If previous dataZoom can not be found,\n // complete an range with current range.\n\n each(newSnapshot, function (batchItem, dataZoomId) {\n var i = storedSnapshots.length - 1;\n\n for (; i >= 0; i--) {\n var snapshot = storedSnapshots[i];\n\n if (snapshot[dataZoomId]) {\n break;\n }\n }\n\n if (i < 0) {\n // No origin range set, create one by current range.\n var dataZoomModel = ecModel.queryComponents({\n mainType: 'dataZoom',\n subType: 'select',\n id: dataZoomId\n })[0];\n\n if (dataZoomModel) {\n var percentRange = dataZoomModel.getPercentRange();\n storedSnapshots[0][dataZoomId] = {\n dataZoomId: dataZoomId,\n start: percentRange[0],\n end: percentRange[1]\n };\n }\n }\n });\n storedSnapshots.push(newSnapshot);\n}\nexport function pop(ecModel) {\n var storedSnapshots = getStoreSnapshots(ecModel);\n var head = storedSnapshots[storedSnapshots.length - 1];\n storedSnapshots.length > 1 && storedSnapshots.pop(); // Find top for all dataZoom.\n\n var snapshot = {};\n each(head, function (batchItem, dataZoomId) {\n for (var i = storedSnapshots.length - 1; i >= 0; i--) {\n batchItem = storedSnapshots[i][dataZoomId];\n\n if (batchItem) {\n snapshot[dataZoomId] = batchItem;\n break;\n }\n }\n });\n return snapshot;\n}\nexport function clear(ecModel) {\n inner(ecModel).snapshots = null;\n}\nexport function count(ecModel) {\n return getStoreSnapshots(ecModel).length;\n}\n/**\n * History length of each dataZoom may be different.\n * this._history[0] is used to store origin range.\n */\n\nfunction getStoreSnapshots(ecModel) {\n var store = inner(ecModel);\n\n if (!store.snapshots) {\n store.snapshots = [{}];\n }\n\n return store.snapshots;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as echarts from '../../../core/echarts';\nimport * as history from '../../dataZoom/history';\nimport { ToolboxFeature } from '../featureManager';\n\nvar RestoreOption =\n/** @class */\nfunction (_super) {\n __extends(RestoreOption, _super);\n\n function RestoreOption() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n RestoreOption.prototype.onclick = function (ecModel, api) {\n history.clear(ecModel);\n api.dispatchAction({\n type: 'restore',\n from: this.uid\n });\n };\n\n RestoreOption.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n // eslint-disable-next-line\n icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',\n title: ecModel.getLocale(['toolbox', 'restore', 'title'])\n };\n return defaultOption;\n };\n\n return RestoreOption;\n}(ToolboxFeature); // TODO: SELF REGISTERED.\n\n\necharts.registerAction({\n type: 'restore',\n event: 'restore',\n update: 'prepareAndUpdate'\n}, function (payload, ecModel) {\n ecModel.resetOption('recreate');\n});\nexport default RestoreOption;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { each, indexOf, curry, assert, map, createHashMap } from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as brushHelper from './brushHelper';\nimport { parseFinder as modelUtilParseFinder } from '../../util/model'; // FIXME\n// how to genarialize to more coordinate systems.\n\nvar INCLUDE_FINDER_MAIN_TYPES = ['grid', 'xAxis', 'yAxis', 'geo', 'graph', 'polar', 'radiusAxis', 'angleAxis', 'bmap'];\n\nvar BrushTargetManager =\n/** @class */\nfunction () {\n /**\n * @param finder contains Index/Id/Name of xAxis/yAxis/geo/grid\n * Each can be {number|Array.}. like: {xAxisIndex: [3, 4]}\n * @param opt.include include coordinate system types.\n */\n function BrushTargetManager(finder, ecModel, opt) {\n var _this = this;\n\n this._targetInfoList = [];\n var foundCpts = parseFinder(ecModel, finder);\n each(targetInfoBuilders, function (builder, type) {\n if (!opt || !opt.include || indexOf(opt.include, type) >= 0) {\n builder(foundCpts, _this._targetInfoList);\n }\n });\n }\n\n BrushTargetManager.prototype.setOutputRanges = function (areas, ecModel) {\n this.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {\n (area.coordRanges || (area.coordRanges = [])).push(coordRange); // area.coordRange is the first of area.coordRanges\n\n if (!area.coordRange) {\n area.coordRange = coordRange; // In 'category' axis, coord to pixel is not reversible, so we can not\n // rebuild range by coordRange accrately, which may bring trouble when\n // brushing only one item. So we use __rangeOffset to rebuilding range\n // by coordRange. And this it only used in brush component so it is no\n // need to be adapted to coordRanges.\n\n var result = coordConvert[area.brushType](0, coordSys, coordRange);\n area.__rangeOffset = {\n offset: diffProcessor[area.brushType](result.values, area.range, [1, 1]),\n xyMinMax: result.xyMinMax\n };\n }\n });\n return areas;\n };\n\n BrushTargetManager.prototype.matchOutputRanges = function (areas, ecModel, cb) {\n each(areas, function (area) {\n var targetInfo = this.findTargetInfo(area, ecModel);\n\n if (targetInfo && targetInfo !== true) {\n each(targetInfo.coordSyses, function (coordSys) {\n var result = coordConvert[area.brushType](1, coordSys, area.range, true);\n cb(area, result.values, coordSys, ecModel);\n });\n }\n }, this);\n };\n /**\n * the `areas` is `BrushModel.areas`.\n * Called in layout stage.\n * convert `area.coordRange` to global range and set panelId to `area.range`.\n */\n\n\n BrushTargetManager.prototype.setInputRanges = function (areas, ecModel) {\n each(areas, function (area) {\n var targetInfo = this.findTargetInfo(area, ecModel);\n\n if (process.env.NODE_ENV !== 'production') {\n assert(!targetInfo || targetInfo === true || area.coordRange, 'coordRange must be specified when coord index specified.');\n assert(!targetInfo || targetInfo !== true || area.range, 'range must be specified in global brush.');\n }\n\n area.range = area.range || []; // convert coordRange to global range and set panelId.\n\n if (targetInfo && targetInfo !== true) {\n area.panelId = targetInfo.panelId; // (1) area.range shoule always be calculate from coordRange but does\n // not keep its original value, for the sake of the dataZoom scenario,\n // where area.coordRange remains unchanged but area.range may be changed.\n // (2) Only support converting one coordRange to pixel range in brush\n // component. So do not consider `coordRanges`.\n // (3) About __rangeOffset, see comment above.\n\n var result = coordConvert[area.brushType](0, targetInfo.coordSys, area.coordRange);\n var rangeOffset = area.__rangeOffset;\n area.range = rangeOffset ? diffProcessor[area.brushType](result.values, rangeOffset.offset, getScales(result.xyMinMax, rangeOffset.xyMinMax)) : result.values;\n }\n }, this);\n };\n\n BrushTargetManager.prototype.makePanelOpts = function (api, getDefaultBrushType) {\n return map(this._targetInfoList, function (targetInfo) {\n var rect = targetInfo.getPanelRect();\n return {\n panelId: targetInfo.panelId,\n defaultBrushType: getDefaultBrushType ? getDefaultBrushType(targetInfo) : null,\n clipPath: brushHelper.makeRectPanelClipPath(rect),\n isTargetByCursor: brushHelper.makeRectIsTargetByCursor(rect, api, targetInfo.coordSysModel),\n getLinearBrushOtherExtent: brushHelper.makeLinearBrushOtherExtent(rect)\n };\n });\n };\n\n BrushTargetManager.prototype.controlSeries = function (area, seriesModel, ecModel) {\n // Check whether area is bound in coord, and series do not belong to that coord.\n // If do not do this check, some brush (like lineX) will controll all axes.\n var targetInfo = this.findTargetInfo(area, ecModel);\n return targetInfo === true || targetInfo && indexOf(targetInfo.coordSyses, seriesModel.coordinateSystem) >= 0;\n };\n /**\n * If return Object, a coord found.\n * If reutrn true, global found.\n * Otherwise nothing found.\n */\n\n\n BrushTargetManager.prototype.findTargetInfo = function (area, ecModel) {\n var targetInfoList = this._targetInfoList;\n var foundCpts = parseFinder(ecModel, area);\n\n for (var i = 0; i < targetInfoList.length; i++) {\n var targetInfo = targetInfoList[i];\n var areaPanelId = area.panelId;\n\n if (areaPanelId) {\n if (targetInfo.panelId === areaPanelId) {\n return targetInfo;\n }\n } else {\n for (var j = 0; j < targetInfoMatchers.length; j++) {\n if (targetInfoMatchers[j](foundCpts, targetInfo)) {\n return targetInfo;\n }\n }\n }\n }\n\n return true;\n };\n\n return BrushTargetManager;\n}();\n\nfunction formatMinMax(minMax) {\n minMax[0] > minMax[1] && minMax.reverse();\n return minMax;\n}\n\nfunction parseFinder(ecModel, finder) {\n return modelUtilParseFinder(ecModel, finder, {\n includeMainTypes: INCLUDE_FINDER_MAIN_TYPES\n });\n}\n\nvar targetInfoBuilders = {\n grid: function (foundCpts, targetInfoList) {\n var xAxisModels = foundCpts.xAxisModels;\n var yAxisModels = foundCpts.yAxisModels;\n var gridModels = foundCpts.gridModels; // Remove duplicated.\n\n var gridModelMap = createHashMap();\n var xAxesHas = {};\n var yAxesHas = {};\n\n if (!xAxisModels && !yAxisModels && !gridModels) {\n return;\n }\n\n each(xAxisModels, function (axisModel) {\n var gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n });\n each(yAxisModels, function (axisModel) {\n var gridModel = axisModel.axis.grid.model;\n gridModelMap.set(gridModel.id, gridModel);\n yAxesHas[gridModel.id] = true;\n });\n each(gridModels, function (gridModel) {\n gridModelMap.set(gridModel.id, gridModel);\n xAxesHas[gridModel.id] = true;\n yAxesHas[gridModel.id] = true;\n });\n gridModelMap.each(function (gridModel) {\n var grid = gridModel.coordinateSystem;\n var cartesians = [];\n each(grid.getCartesians(), function (cartesian, index) {\n if (indexOf(xAxisModels, cartesian.getAxis('x').model) >= 0 || indexOf(yAxisModels, cartesian.getAxis('y').model) >= 0) {\n cartesians.push(cartesian);\n }\n });\n targetInfoList.push({\n panelId: 'grid--' + gridModel.id,\n gridModel: gridModel,\n coordSysModel: gridModel,\n // Use the first one as the representitive coordSys.\n coordSys: cartesians[0],\n coordSyses: cartesians,\n getPanelRect: panelRectBuilders.grid,\n xAxisDeclared: xAxesHas[gridModel.id],\n yAxisDeclared: yAxesHas[gridModel.id]\n });\n });\n },\n geo: function (foundCpts, targetInfoList) {\n each(foundCpts.geoModels, function (geoModel) {\n var coordSys = geoModel.coordinateSystem;\n targetInfoList.push({\n panelId: 'geo--' + geoModel.id,\n geoModel: geoModel,\n coordSysModel: geoModel,\n coordSys: coordSys,\n coordSyses: [coordSys],\n getPanelRect: panelRectBuilders.geo\n });\n });\n }\n};\nvar targetInfoMatchers = [// grid\nfunction (foundCpts, targetInfo) {\n var xAxisModel = foundCpts.xAxisModel;\n var yAxisModel = foundCpts.yAxisModel;\n var gridModel = foundCpts.gridModel;\n !gridModel && xAxisModel && (gridModel = xAxisModel.axis.grid.model);\n !gridModel && yAxisModel && (gridModel = yAxisModel.axis.grid.model);\n return gridModel && gridModel === targetInfo.gridModel;\n}, // geo\nfunction (foundCpts, targetInfo) {\n var geoModel = foundCpts.geoModel;\n return geoModel && geoModel === targetInfo.geoModel;\n}];\nvar panelRectBuilders = {\n grid: function () {\n // grid is not Transformable.\n return this.coordSys.master.getRect().clone();\n },\n geo: function () {\n var coordSys = this.coordSys;\n var rect = coordSys.getBoundingRect().clone(); // geo roam and zoom transform\n\n rect.applyTransform(graphic.getTransform(coordSys));\n return rect;\n }\n};\nvar coordConvert = {\n lineX: curry(axisConvert, 0),\n lineY: curry(axisConvert, 1),\n rect: function (to, coordSys, rangeOrCoordRange, clamp) {\n var xminymin = to ? coordSys.pointToData([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][0], rangeOrCoordRange[1][0]], clamp);\n var xmaxymax = to ? coordSys.pointToData([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp) : coordSys.dataToPoint([rangeOrCoordRange[0][1], rangeOrCoordRange[1][1]], clamp);\n var values = [formatMinMax([xminymin[0], xmaxymax[0]]), formatMinMax([xminymin[1], xmaxymax[1]])];\n return {\n values: values,\n xyMinMax: values\n };\n },\n polygon: function (to, coordSys, rangeOrCoordRange, clamp) {\n var xyMinMax = [[Infinity, -Infinity], [Infinity, -Infinity]];\n var values = map(rangeOrCoordRange, function (item) {\n var p = to ? coordSys.pointToData(item, clamp) : coordSys.dataToPoint(item, clamp);\n xyMinMax[0][0] = Math.min(xyMinMax[0][0], p[0]);\n xyMinMax[1][0] = Math.min(xyMinMax[1][0], p[1]);\n xyMinMax[0][1] = Math.max(xyMinMax[0][1], p[0]);\n xyMinMax[1][1] = Math.max(xyMinMax[1][1], p[1]);\n return p;\n });\n return {\n values: values,\n xyMinMax: xyMinMax\n };\n }\n};\n\nfunction axisConvert(axisNameIndex, to, coordSys, rangeOrCoordRange) {\n if (process.env.NODE_ENV !== 'production') {\n assert(coordSys.type === 'cartesian2d', 'lineX/lineY brush is available only in cartesian2d.');\n }\n\n var axis = coordSys.getAxis(['x', 'y'][axisNameIndex]);\n var values = formatMinMax(map([0, 1], function (i) {\n return to ? axis.coordToData(axis.toLocalCoord(rangeOrCoordRange[i]), true) : axis.toGlobalCoord(axis.dataToCoord(rangeOrCoordRange[i]));\n }));\n var xyMinMax = [];\n xyMinMax[axisNameIndex] = values;\n xyMinMax[1 - axisNameIndex] = [NaN, NaN];\n return {\n values: values,\n xyMinMax: xyMinMax\n };\n}\n\nvar diffProcessor = {\n lineX: curry(axisDiffProcessor, 0),\n lineY: curry(axisDiffProcessor, 1),\n rect: function (values, refer, scales) {\n return [[values[0][0] - scales[0] * refer[0][0], values[0][1] - scales[0] * refer[0][1]], [values[1][0] - scales[1] * refer[1][0], values[1][1] - scales[1] * refer[1][1]]];\n },\n polygon: function (values, refer, scales) {\n return map(values, function (item, idx) {\n return [item[0] - scales[0] * refer[idx][0], item[1] - scales[1] * refer[idx][1]];\n });\n }\n};\n\nfunction axisDiffProcessor(axisNameIndex, values, refer, scales) {\n return [values[0] - scales[axisNameIndex] * refer[0], values[1] - scales[axisNameIndex] * refer[1]];\n} // We have to process scale caused by dataZoom manually,\n// although it might be not accurate.\n// Return [0~1, 0~1]\n\n\nfunction getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}\n\nfunction getSize(xyMinMax) {\n return xyMinMax ? [xyMinMax[0][1] - xyMinMax[0][0], xyMinMax[1][1] - xyMinMax[1][0]] : [NaN, NaN];\n}\n\nexport default BrushTargetManager;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO depends on DataZoom and Brush\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BrushController from '../../helper/BrushController';\nimport BrushTargetManager from '../../helper/BrushTargetManager';\nimport * as history from '../../dataZoom/history';\nimport sliderMove from '../../helper/sliderMove';\nimport { ToolboxFeature } from '../featureManager';\nimport { makeInternalComponentId, parseFinder } from '../../../util/model';\nimport { registerInternalOptionCreator } from '../../../model/internalComponentCreator';\nvar each = zrUtil.each;\nvar DATA_ZOOM_ID_BASE = makeInternalComponentId('toolbox-dataZoom_');\nvar ICON_TYPES = ['zoom', 'back'];\n\nvar DataZoomFeature =\n/** @class */\nfunction (_super) {\n __extends(DataZoomFeature, _super);\n\n function DataZoomFeature() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DataZoomFeature.prototype.render = function (featureModel, ecModel, api, payload) {\n if (!this._brushController) {\n this._brushController = new BrushController(api.getZr());\n\n this._brushController.on('brush', zrUtil.bind(this._onBrush, this)).mount();\n }\n\n updateZoomBtnStatus(featureModel, ecModel, this, payload, api);\n updateBackBtnStatus(featureModel, ecModel);\n };\n\n DataZoomFeature.prototype.onclick = function (ecModel, api, type) {\n handlers[type].call(this);\n };\n\n DataZoomFeature.prototype.remove = function (ecModel, api) {\n this._brushController && this._brushController.unmount();\n };\n\n DataZoomFeature.prototype.dispose = function (ecModel, api) {\n this._brushController && this._brushController.dispose();\n };\n\n DataZoomFeature.prototype._onBrush = function (eventParam) {\n var areas = eventParam.areas;\n\n if (!eventParam.isEnd || !areas.length) {\n return;\n }\n\n var snapshot = {};\n var ecModel = this.ecModel;\n\n this._brushController.updateCovers([]); // remove cover\n\n\n var brushTargetManager = new BrushTargetManager(makeAxisFinder(this.model), ecModel, {\n include: ['grid']\n });\n brushTargetManager.matchOutputRanges(areas, ecModel, function (area, coordRange, coordSys) {\n if (coordSys.type !== 'cartesian2d') {\n return;\n }\n\n var brushType = area.brushType;\n\n if (brushType === 'rect') {\n setBatch('x', coordSys, coordRange[0]);\n setBatch('y', coordSys, coordRange[1]);\n } else {\n setBatch({\n lineX: 'x',\n lineY: 'y'\n }[brushType], coordSys, coordRange);\n }\n });\n history.push(ecModel, snapshot);\n\n this._dispatchZoomAction(snapshot);\n\n function setBatch(dimName, coordSys, minMax) {\n var axis = coordSys.getAxis(dimName);\n var axisModel = axis.model;\n var dataZoomModel = findDataZoom(dimName, axisModel, ecModel); // Restrict range.\n\n var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy(axisModel).getMinMaxSpan();\n\n if (minMaxSpan.minValueSpan != null || minMaxSpan.maxValueSpan != null) {\n minMax = sliderMove(0, minMax.slice(), axis.scale.getExtent(), 0, minMaxSpan.minValueSpan, minMaxSpan.maxValueSpan);\n }\n\n dataZoomModel && (snapshot[dataZoomModel.id] = {\n dataZoomId: dataZoomModel.id,\n startValue: minMax[0],\n endValue: minMax[1]\n });\n }\n\n function findDataZoom(dimName, axisModel, ecModel) {\n var found;\n ecModel.eachComponent({\n mainType: 'dataZoom',\n subType: 'select'\n }, function (dzModel) {\n var has = dzModel.getAxisModel(dimName, axisModel.componentIndex);\n has && (found = dzModel);\n });\n return found;\n }\n };\n\n ;\n\n DataZoomFeature.prototype._dispatchZoomAction = function (snapshot) {\n var batch = []; // Convert from hash map to array.\n\n each(snapshot, function (batchItem, dataZoomId) {\n batch.push(zrUtil.clone(batchItem));\n });\n batch.length && this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n batch: batch\n });\n };\n\n DataZoomFeature.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n filterMode: 'filter',\n // Icon group\n icon: {\n zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',\n back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'\n },\n // `zoom`, `back`\n title: ecModel.getLocale(['toolbox', 'dataZoom', 'title']),\n brushStyle: {\n borderWidth: 0,\n color: 'rgba(210,219,238,0.2)'\n }\n };\n return defaultOption;\n };\n\n return DataZoomFeature;\n}(ToolboxFeature);\n\nvar handlers = {\n zoom: function () {\n var nextActive = !this._isZoomActive;\n this.api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'dataZoomSelect',\n dataZoomSelectActive: nextActive\n });\n },\n back: function () {\n this._dispatchZoomAction(history.pop(this.ecModel));\n }\n};\n\nfunction makeAxisFinder(dzFeatureModel) {\n var setting = {\n xAxisIndex: dzFeatureModel.get('xAxisIndex', true),\n yAxisIndex: dzFeatureModel.get('yAxisIndex', true),\n xAxisId: dzFeatureModel.get('xAxisId', true),\n yAxisId: dzFeatureModel.get('yAxisId', true)\n }; // If both `xAxisIndex` `xAxisId` not set, it means 'all'.\n // If both `yAxisIndex` `yAxisId` not set, it means 'all'.\n // Some old cases set like this below to close yAxis control but leave xAxis control:\n // `{ feature: { dataZoom: { yAxisIndex: false } }`.\n\n if (setting.xAxisIndex == null && setting.xAxisId == null) {\n setting.xAxisIndex = 'all';\n }\n\n if (setting.yAxisIndex == null && setting.yAxisId == null) {\n setting.yAxisIndex = 'all';\n }\n\n return setting;\n}\n\nfunction updateBackBtnStatus(featureModel, ecModel) {\n featureModel.setIconStatus('back', history.count(ecModel) > 1 ? 'emphasis' : 'normal');\n}\n\nfunction updateZoomBtnStatus(featureModel, ecModel, view, payload, api) {\n var zoomActive = view._isZoomActive;\n\n if (payload && payload.type === 'takeGlobalCursor') {\n zoomActive = payload.key === 'dataZoomSelect' ? payload.dataZoomSelectActive : false;\n }\n\n view._isZoomActive = zoomActive;\n featureModel.setIconStatus('zoom', zoomActive ? 'emphasis' : 'normal');\n var brushTargetManager = new BrushTargetManager(makeAxisFinder(featureModel), ecModel, {\n include: ['grid']\n });\n var panels = brushTargetManager.makePanelOpts(api, function (targetInfo) {\n return targetInfo.xAxisDeclared && !targetInfo.yAxisDeclared ? 'lineX' : !targetInfo.xAxisDeclared && targetInfo.yAxisDeclared ? 'lineY' : 'rect';\n });\n\n view._brushController.setPanels(panels).enableBrush(zoomActive && panels.length ? {\n brushType: 'auto',\n brushStyle: featureModel.getModel('brushStyle').getItemStyle()\n } : false);\n}\n\nregisterInternalOptionCreator('dataZoom', function (ecModel) {\n var toolboxModel = ecModel.getComponent('toolbox', 0);\n var featureDataZoomPath = ['feature', 'dataZoom'];\n\n if (!toolboxModel || toolboxModel.get(featureDataZoomPath) == null) {\n return;\n }\n\n var dzFeatureModel = toolboxModel.getModel(featureDataZoomPath);\n var dzOptions = [];\n var finder = makeAxisFinder(dzFeatureModel);\n var finderResult = parseFinder(ecModel, finder);\n each(finderResult.xAxisModels, function (axisModel) {\n return buildInternalOptions(axisModel, 'xAxis', 'xAxisIndex');\n });\n each(finderResult.yAxisModels, function (axisModel) {\n return buildInternalOptions(axisModel, 'yAxis', 'yAxisIndex');\n });\n\n function buildInternalOptions(axisModel, axisMainType, axisIndexPropName) {\n var axisIndex = axisModel.componentIndex;\n var newOpt = {\n type: 'select',\n $fromToolbox: true,\n // Default to be filter\n filterMode: dzFeatureModel.get('filterMode', true) || 'filter',\n // Id for merge mapping.\n id: DATA_ZOOM_ID_BASE + axisMainType + axisIndex\n };\n newOpt[axisIndexPropName] = axisIndex;\n dzOptions.push(newOpt);\n }\n\n return dzOptions;\n});\nexport default DataZoomFeature;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installDataZoomSelect } from '../../component/dataZoom/installDataZoomSelect';\nimport ToolboxModel from './ToolboxModel';\nimport ToolboxView from './ToolboxView'; // TODOD: REGISTER IN INSTALL\n\nimport { registerFeature } from './featureManager';\nimport SaveAsImage from './feature/SaveAsImage';\nimport MagicType from './feature/MagicType';\nimport DataView from './feature/DataView';\nimport Restore from './feature/Restore';\nimport DataZoom from './feature/DataZoom';\nexport function install(registers) {\n registers.registerComponentModel(ToolboxModel);\n registers.registerComponentView(ToolboxView);\n registerFeature('saveAsImage', SaveAsImage);\n registerFeature('magicType', MagicType);\n registerFeature('dataView', DataView);\n registerFeature('dataZoom', DataZoom);\n registerFeature('restore', Restore);\n use(installDataZoomSelect);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\n\nvar TooltipModel =\n/** @class */\nfunction (_super) {\n __extends(TooltipModel, _super);\n\n function TooltipModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TooltipModel.type;\n return _this;\n }\n\n TooltipModel.type = 'tooltip';\n TooltipModel.dependencies = ['axisPointer'];\n TooltipModel.defaultOption = {\n zlevel: 0,\n z: 60,\n show: true,\n // tooltip main content\n showContent: true,\n // 'trigger' only works on coordinate system.\n // 'item' | 'axis' | 'none'\n trigger: 'item',\n // 'click' | 'mousemove' | 'none'\n triggerOn: 'mousemove|click',\n alwaysShowContent: false,\n displayMode: 'single',\n renderMode: 'auto',\n // whether restraint content inside viewRect.\n // If renderMode: 'richText', default true.\n // If renderMode: 'html', defaut false (for backward compat).\n confine: null,\n showDelay: 0,\n hideDelay: 100,\n // Animation transition time, unit is second\n transitionDuration: 0.4,\n enterable: false,\n backgroundColor: '#fff',\n // box shadow\n shadowBlur: 10,\n shadowColor: 'rgba(0, 0, 0, .2)',\n shadowOffsetX: 1,\n shadowOffsetY: 2,\n // tooltip border radius, unit is px, default is 4\n borderRadius: 4,\n // tooltip border width, unit is px, default is 0 (no border)\n borderWidth: 1,\n // Tooltip inside padding, default is 5 for all direction\n // Array is allowed to set up, right, bottom, left, same with css\n // The default value: See `tooltip/tooltipMarkup.ts#getPaddingFromTooltipModel`.\n padding: null,\n // Extra css text\n extraCssText: '',\n // axis indicator, trigger by axis\n axisPointer: {\n // default is line\n // legal values: 'line' | 'shadow' | 'cross'\n type: 'line',\n // Valid when type is line, appoint tooltip line locate on which line. Optional\n // legal values: 'x' | 'y' | 'angle' | 'radius' | 'auto'\n // default is 'auto', chose the axis which type is category.\n // for multiply y axis, cartesian coord chose x axis, polar chose angle axis\n axis: 'auto',\n animation: 'auto',\n animationDurationUpdate: 200,\n animationEasingUpdate: 'exponentialOut',\n crossStyle: {\n color: '#999',\n width: 1,\n type: 'dashed',\n // TODO formatter\n textStyle: {}\n } // lineStyle and shadowStyle should not be specified here,\n // otherwise it will always override those styles on option.axisPointer.\n\n },\n textStyle: {\n color: '#666',\n fontSize: 14\n }\n };\n return TooltipModel;\n}(ComponentModel);\n\nexport default TooltipModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { toCamelCase } from '../../util/format';\nimport env from 'zrender/lib/core/env';\n/* global document */\n\nexport function shouldTooltipConfine(tooltipModel) {\n var confineOption = tooltipModel.get('confine');\n return confineOption != null ? !!confineOption // In richText mode, the outside part can not be visible.\n : tooltipModel.get('renderMode') === 'richText';\n}\n\nfunction testStyle(styleProps) {\n if (!env.domSupported) {\n return;\n }\n\n var style = document.documentElement.style;\n\n for (var i = 0, len = styleProps.length; i < len; i++) {\n if (styleProps[i] in style) {\n return styleProps[i];\n }\n }\n}\n\nexport var TRANSFORM_VENDOR = testStyle(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']);\nexport var TRANSITION_VENDOR = testStyle(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);\nexport function toCSSVendorPrefix(styleVendor, styleProp) {\n if (!styleVendor) {\n return styleProp;\n }\n\n styleProp = toCamelCase(styleProp, true);\n var idx = styleVendor.indexOf(styleProp);\n styleVendor = idx === -1 ? styleProp : \"-\" + styleVendor.slice(0, idx) + \"-\" + styleProp;\n return styleVendor.toLowerCase();\n}\nexport function getComputedStyle(el, style) {\n var stl = el.currentStyle || document.defaultView && document.defaultView.getComputedStyle(el);\n return stl ? style ? stl[style] : stl : null;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isString, indexOf, each, bind, isArray, isDom } from 'zrender/lib/core/util';\nimport { toHex } from 'zrender/lib/tool/color';\nimport { normalizeEvent } from 'zrender/lib/core/event';\nimport { transformLocalCoord } from 'zrender/lib/core/dom';\nimport env from 'zrender/lib/core/env';\nimport { convertToColorString, toCamelCase, normalizeCssArray } from '../../util/format';\nimport { shouldTooltipConfine, toCSSVendorPrefix, getComputedStyle, TRANSFORM_VENDOR, TRANSITION_VENDOR } from './helper';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\n/* global document, window */\n\nvar CSS_TRANSITION_VENDOR = toCSSVendorPrefix(TRANSITION_VENDOR, 'transition');\nvar CSS_TRANSFORM_VENDOR = toCSSVendorPrefix(TRANSFORM_VENDOR, 'transform'); // eslint-disable-next-line\n\nvar gCssText = \"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\" + (env.transform3dSupported ? 'will-change:transform;' : '');\n\nfunction mirrorPos(pos) {\n pos = pos === 'left' ? 'right' : pos === 'right' ? 'left' : pos === 'top' ? 'bottom' : 'top';\n return pos;\n}\n\nfunction assembleArrow(backgroundColor, borderColor, arrowPosition) {\n if (!isString(arrowPosition) || arrowPosition === 'inside') {\n return '';\n }\n\n borderColor = convertToColorString(borderColor);\n var arrowPos = mirrorPos(arrowPosition);\n var positionStyle = arrowPos + \":-6px;\";\n var transformStyle = CSS_TRANSFORM_VENDOR + ':';\n\n if (indexOf(['left', 'right'], arrowPos) > -1) {\n positionStyle += 'top:50%';\n transformStyle += \"translateY(-50%) rotate(\" + (arrowPos === 'left' ? -225 : -45) + \"deg)\";\n } else {\n positionStyle += 'left:50%';\n transformStyle += \"translateX(-50%) rotate(\" + (arrowPos === 'top' ? 225 : 45) + \"deg)\";\n }\n\n var borderStyle = borderColor + \" solid 1px;\";\n var styleCss = ['position:absolute;width:10px;height:10px;', positionStyle + \";\" + transformStyle + \";\", \"border-bottom:\" + borderStyle, \"border-right:\" + borderStyle, \"background-color:\" + backgroundColor + \";\", 'box-shadow:8px 8px 16px -3px #000;'];\n return \"
\";\n}\n\nfunction assembleTransition(duration, onlyFade) {\n var transitionCurve = 'cubic-bezier(0.23,1,0.32,1)';\n var transitionOption = \" \" + duration / 2 + \"s \" + transitionCurve;\n var transitionText = \"opacity\" + transitionOption + \",visibility\" + transitionOption;\n\n if (!onlyFade) {\n transitionOption = \" \" + duration + \"s \" + transitionCurve;\n transitionText += env.transformSupported ? \",\" + CSS_TRANSFORM_VENDOR + transitionOption : \",left\" + transitionOption + \",top\" + transitionOption;\n }\n\n return CSS_TRANSITION_VENDOR + ':' + transitionText;\n}\n\nfunction assembleTransform(x, y, toString) {\n // If using float on style, the final width of the dom might\n // keep changing slightly while mouse move. So `toFixed(0)` them.\n var x0 = x.toFixed(0) + 'px';\n var y0 = y.toFixed(0) + 'px'; // not support transform, use `left` and `top` instead.\n\n if (!env.transformSupported) {\n return toString ? \"top:\" + y0 + \";left:\" + x0 + \";\" : [['top', y0], ['left', x0]];\n } // support transform\n\n\n var is3d = env.transform3dSupported;\n var translate = \"translate\" + (is3d ? '3d' : '') + \"(\" + x0 + \",\" + y0 + (is3d ? ',0' : '') + \")\";\n return toString ? 'top:0;left:0;' + CSS_TRANSFORM_VENDOR + ':' + translate + ';' : [['top', 0], ['left', 0], [TRANSFORM_VENDOR, translate]];\n}\n/**\n * @param {Object} textStyle\n * @return {string}\n * @inner\n */\n\n\nfunction assembleFont(textStyleModel) {\n var cssText = [];\n var fontSize = textStyleModel.get('fontSize');\n var color = textStyleModel.getTextColor();\n color && cssText.push('color:' + color);\n cssText.push('font:' + textStyleModel.getFont());\n fontSize // @ts-ignore, leave it to the tooltip refactor.\n && cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');\n var shadowColor = textStyleModel.get('textShadowColor');\n var shadowBlur = textStyleModel.get('textShadowBlur') || 0;\n var shadowOffsetX = textStyleModel.get('textShadowOffsetX') || 0;\n var shadowOffsetY = textStyleModel.get('textShadowOffsetY') || 0;\n shadowColor && shadowBlur && cssText.push('text-shadow:' + shadowOffsetX + 'px ' + shadowOffsetY + 'px ' + shadowBlur + 'px ' + shadowColor);\n each(['decoration', 'align'], function (name) {\n var val = textStyleModel.get(name);\n val && cssText.push('text-' + name + ':' + val);\n });\n return cssText.join(';');\n}\n\nfunction assembleCssText(tooltipModel, enableTransition, onlyFade) {\n var cssText = [];\n var transitionDuration = tooltipModel.get('transitionDuration');\n var backgroundColor = tooltipModel.get('backgroundColor');\n var shadowBlur = tooltipModel.get('shadowBlur');\n var shadowColor = tooltipModel.get('shadowColor');\n var shadowOffsetX = tooltipModel.get('shadowOffsetX');\n var shadowOffsetY = tooltipModel.get('shadowOffsetY');\n var textStyleModel = tooltipModel.getModel('textStyle');\n var padding = getPaddingFromTooltipModel(tooltipModel, 'html');\n var boxShadow = shadowOffsetX + \"px \" + shadowOffsetY + \"px \" + shadowBlur + \"px \" + shadowColor;\n cssText.push('box-shadow:' + boxShadow); // Animation transition. Do not animate when transitionDuration is 0.\n\n enableTransition && transitionDuration && cssText.push(assembleTransition(transitionDuration, onlyFade));\n\n if (backgroundColor) {\n if (env.canvasSupported) {\n cssText.push('background-color:' + backgroundColor);\n } else {\n // for ie\n cssText.push('background-color:#' + toHex(backgroundColor));\n cssText.push('filter:alpha(opacity=70)');\n }\n } // Border style\n\n\n each(['width', 'color', 'radius'], function (name) {\n var borderName = 'border-' + name;\n var camelCase = toCamelCase(borderName);\n var val = tooltipModel.get(camelCase);\n val != null && cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));\n }); // Text style\n\n cssText.push(assembleFont(textStyleModel)); // Padding\n\n if (padding != null) {\n cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px');\n }\n\n return cssText.join(';') + ';';\n} // If not able to make, do not modify the input `out`.\n\n\nfunction makeStyleCoord(out, zr, appendToBody, zrX, zrY) {\n var zrPainter = zr && zr.painter;\n\n if (appendToBody) {\n var zrViewportRoot = zrPainter && zrPainter.getViewportRoot();\n\n if (zrViewportRoot) {\n // Some APPs might use scale on body, so we support CSS transform here.\n transformLocalCoord(out, zrViewportRoot, document.body, zrX, zrY);\n }\n } else {\n out[0] = zrX;\n out[1] = zrY; // xy should be based on canvas root. But tooltipContent is\n // the sibling of canvas root. So padding of ec container\n // should be considered here.\n\n var viewportRootOffset = zrPainter && zrPainter.getViewportRootOffset();\n\n if (viewportRootOffset) {\n out[0] += viewportRootOffset.offsetLeft;\n out[1] += viewportRootOffset.offsetTop;\n }\n }\n\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nvar TooltipHTMLContent =\n/** @class */\nfunction () {\n function TooltipHTMLContent(container, api, opt) {\n this._show = false;\n this._styleCoord = [0, 0, 0, 0];\n this._enterable = true;\n this._firstShow = true;\n this._longHide = true;\n\n if (env.wxa) {\n return null;\n }\n\n var el = document.createElement('div'); // TODO: TYPE\n\n el.domBelongToZr = true;\n this.el = el;\n var zr = this._zr = api.getZr();\n var appendToBody = this._appendToBody = opt && opt.appendToBody;\n makeStyleCoord(this._styleCoord, zr, appendToBody, api.getWidth() / 2, api.getHeight() / 2);\n\n if (appendToBody) {\n document.body.appendChild(el);\n } else {\n container.appendChild(el);\n }\n\n this._container = container; // FIXME\n // Is it needed to trigger zr event manually if\n // the browser do not support `pointer-events: none`.\n\n var self = this;\n\n el.onmouseenter = function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n\n self._inContent = true;\n };\n\n el.onmousemove = function (e) {\n e = e || window.event;\n\n if (!self._enterable) {\n // `pointer-events: none` is set to tooltip content div\n // if `enterable` is set as `false`, and `el.onmousemove`\n // can not be triggered. But in browser that do not\n // support `pointer-events`, we need to do this:\n // Try trigger zrender event to avoid mouse\n // in and out shape too frequently\n var handler = zr.handler;\n var zrViewportRoot = zr.painter.getViewportRoot();\n normalizeEvent(zrViewportRoot, e, true);\n handler.dispatch('mousemove', e);\n }\n };\n\n el.onmouseleave = function () {\n // set `_inContent` to `false` before `hideLater`\n self._inContent = false;\n\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n };\n }\n /**\n * Update when tooltip is rendered\n */\n\n\n TooltipHTMLContent.prototype.update = function (tooltipModel) {\n // FIXME\n // Move this logic to ec main?\n var container = this._container;\n var position = getComputedStyle(container, 'position');\n var domStyle = container.style;\n\n if (domStyle.position !== 'absolute' && position !== 'absolute') {\n domStyle.position = 'relative';\n } // move tooltip if chart resized\n\n\n var alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized(); // update className\n\n this.el.className = tooltipModel.get('className') || ''; // Hide the tooltip\n // PENDING\n // this.hide();\n };\n\n TooltipHTMLContent.prototype.show = function (tooltipModel, nearPointColor) {\n clearTimeout(this._hideTimeout);\n clearTimeout(this._longHideTimeout);\n var el = this.el;\n var style = el.style;\n var styleCoord = this._styleCoord;\n\n if (!el.innerHTML) {\n style.display = 'none';\n } else {\n style.cssText = gCssText + assembleCssText(tooltipModel, !this._firstShow, this._longHide) // initial transform\n + assembleTransform(styleCoord[0], styleCoord[1], true) + (\"border-color:\" + convertToColorString(nearPointColor) + \";\") + (tooltipModel.get('extraCssText') || '') // If mouse occasionally move over the tooltip, a mouseout event will be\n // triggered by canvas, and cause some unexpectable result like dragging\n // stop, \"unfocusAdjacency\". Here `pointer-events: none` is used to solve\n // it. Although it is not supported by IE8~IE10, fortunately it is a rare\n // scenario.\n + (\";pointer-event:\" + (this._enterable ? 'auto' : 'none'));\n }\n\n this._show = true;\n this._firstShow = false;\n this._longHide = false;\n };\n\n TooltipHTMLContent.prototype.setContent = function (content, markers, tooltipModel, borderColor, arrowPosition) {\n if (content == null) {\n return;\n }\n\n var el = this.el;\n\n if (isString(arrowPosition) && tooltipModel.get('trigger') === 'item' && !shouldTooltipConfine(tooltipModel)) {\n content += assembleArrow(tooltipModel.get('backgroundColor'), borderColor, arrowPosition);\n }\n\n if (isString(content)) {\n el.innerHTML = content;\n } else if (content) {\n // Clear previous\n el.innerHTML = '';\n\n if (!isArray(content)) {\n content = [content];\n }\n\n for (var i = 0; i < content.length; i++) {\n if (isDom(content[i]) && content[i].parentNode !== el) {\n el.appendChild(content[i]);\n }\n }\n }\n };\n\n TooltipHTMLContent.prototype.setEnterable = function (enterable) {\n this._enterable = enterable;\n };\n\n TooltipHTMLContent.prototype.getSize = function () {\n var el = this.el;\n return [el.clientWidth, el.clientHeight];\n };\n\n TooltipHTMLContent.prototype.moveTo = function (zrX, zrY) {\n var styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, this._appendToBody, zrX, zrY);\n\n if (styleCoord[0] != null && styleCoord[1] != null) {\n var style_1 = this.el.style;\n var transforms = assembleTransform(styleCoord[0], styleCoord[1]);\n each(transforms, function (transform) {\n style_1[transform[0]] = transform[1];\n });\n }\n };\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n\n\n TooltipHTMLContent.prototype._moveIfResized = function () {\n // The ratio of left to width\n var ratioX = this._styleCoord[2]; // The ratio of top to height\n\n var ratioY = this._styleCoord[3];\n this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());\n };\n\n TooltipHTMLContent.prototype.hide = function () {\n var _this = this;\n\n var style = this.el.style;\n style.visibility = 'hidden';\n style.opacity = '0';\n env.transform3dSupported && (style.willChange = '');\n this._show = false;\n this._longHideTimeout = setTimeout(function () {\n return _this._longHide = true;\n }, 500);\n };\n\n TooltipHTMLContent.prototype.hideLater = function (time) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times\n\n this._show = false;\n this._hideTimeout = setTimeout(bind(this.hide, this), time);\n } else {\n this.hide();\n }\n }\n };\n\n TooltipHTMLContent.prototype.isShow = function () {\n return this._show;\n };\n\n TooltipHTMLContent.prototype.dispose = function () {\n this.el.parentNode.removeChild(this.el);\n };\n\n TooltipHTMLContent.prototype.getOuterSize = function () {\n var width = this.el.clientWidth;\n var height = this.el.clientHeight; // Consider browser compatibility.\n // IE8 does not support getComputedStyle.\n\n var stl = getComputedStyle(this.el);\n\n if (stl) {\n width += parseInt(stl.borderLeftWidth, 10) + parseInt(stl.borderRightWidth, 10);\n height += parseInt(stl.borderTopWidth, 10) + parseInt(stl.borderBottomWidth, 10);\n }\n\n return {\n width: width,\n height: height\n };\n };\n\n return TooltipHTMLContent;\n}();\n\nexport default TooltipHTMLContent;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport ZRText from 'zrender/lib/graphic/Text';\nimport { getPaddingFromTooltipModel } from './tooltipMarkup';\nimport { throwError } from '../../util/log';\n\nvar TooltipRichContent =\n/** @class */\nfunction () {\n function TooltipRichContent(api) {\n this._show = false;\n this._styleCoord = [0, 0, 0, 0];\n this._enterable = true;\n this._zr = api.getZr();\n makeStyleCoord(this._styleCoord, this._zr, api.getWidth() / 2, api.getHeight() / 2);\n }\n /**\n * Update when tooltip is rendered\n */\n\n\n TooltipRichContent.prototype.update = function (tooltipModel) {\n var alwaysShowContent = tooltipModel.get('alwaysShowContent');\n alwaysShowContent && this._moveIfResized();\n };\n\n TooltipRichContent.prototype.show = function () {\n if (this._hideTimeout) {\n clearTimeout(this._hideTimeout);\n }\n\n this.el.show();\n this._show = true;\n };\n /**\n * Set tooltip content\n */\n\n\n TooltipRichContent.prototype.setContent = function (content, markupStyleCreator, tooltipModel, borderColor, arrowPosition) {\n if (zrUtil.isObject(content)) {\n throwError(process.env.NODE_ENV !== 'production' ? 'Passing DOM nodes as content is not supported in richText tooltip!' : '');\n }\n\n if (this.el) {\n this._zr.remove(this.el);\n }\n\n var textStyleModel = tooltipModel.getModel('textStyle');\n this.el = new ZRText({\n style: {\n rich: markupStyleCreator.richTextStyles,\n text: content,\n lineHeight: 22,\n backgroundColor: tooltipModel.get('backgroundColor'),\n borderRadius: tooltipModel.get('borderRadius'),\n borderWidth: 1,\n borderColor: borderColor,\n shadowColor: tooltipModel.get('shadowColor'),\n shadowBlur: tooltipModel.get('shadowBlur'),\n shadowOffsetX: tooltipModel.get('shadowOffsetX'),\n shadowOffsetY: tooltipModel.get('shadowOffsetY'),\n textShadowColor: textStyleModel.get('textShadowColor'),\n textShadowBlur: textStyleModel.get('textShadowBlur') || 0,\n textShadowOffsetX: textStyleModel.get('textShadowOffsetX') || 0,\n textShadowOffsetY: textStyleModel.get('textShadowOffsetY') || 0,\n fill: tooltipModel.get(['textStyle', 'color']),\n padding: getPaddingFromTooltipModel(tooltipModel, 'richText'),\n verticalAlign: 'top',\n align: 'left'\n },\n z: tooltipModel.get('z')\n });\n\n this._zr.add(this.el);\n\n var self = this;\n this.el.on('mouseover', function () {\n // clear the timeout in hideLater and keep showing tooltip\n if (self._enterable) {\n clearTimeout(self._hideTimeout);\n self._show = true;\n }\n\n self._inContent = true;\n });\n this.el.on('mouseout', function () {\n if (self._enterable) {\n if (self._show) {\n self.hideLater(self._hideDelay);\n }\n }\n\n self._inContent = false;\n });\n };\n\n TooltipRichContent.prototype.setEnterable = function (enterable) {\n this._enterable = enterable;\n };\n\n TooltipRichContent.prototype.getSize = function () {\n var el = this.el;\n var bounding = this.el.getBoundingRect(); // bounding rect does not include shadow. For renderMode richText,\n // if overflow, it will be cut. So calculate them accurately.\n\n var shadowOuterSize = calcShadowOuterSize(el.style);\n return [bounding.width + shadowOuterSize.left + shadowOuterSize.right, bounding.height + shadowOuterSize.top + shadowOuterSize.bottom];\n };\n\n TooltipRichContent.prototype.moveTo = function (x, y) {\n var el = this.el;\n\n if (el) {\n var styleCoord = this._styleCoord;\n makeStyleCoord(styleCoord, this._zr, x, y);\n x = styleCoord[0];\n y = styleCoord[1];\n var style = el.style;\n var borderWidth = mathMaxWith0(style.borderWidth || 0);\n var shadowOuterSize = calcShadowOuterSize(style); // rich text x, y do not include border.\n\n el.x = x + borderWidth + shadowOuterSize.left;\n el.y = y + borderWidth + shadowOuterSize.top;\n el.markRedraw();\n }\n };\n /**\n * when `alwaysShowContent` is true,\n * move the tooltip after chart resized\n */\n\n\n TooltipRichContent.prototype._moveIfResized = function () {\n // The ratio of left to width\n var ratioX = this._styleCoord[2]; // The ratio of top to height\n\n var ratioY = this._styleCoord[3];\n this.moveTo(ratioX * this._zr.getWidth(), ratioY * this._zr.getHeight());\n };\n\n TooltipRichContent.prototype.hide = function () {\n if (this.el) {\n this.el.hide();\n }\n\n this._show = false;\n };\n\n TooltipRichContent.prototype.hideLater = function (time) {\n if (this._show && !(this._inContent && this._enterable)) {\n if (time) {\n this._hideDelay = time; // Set show false to avoid invoke hideLater multiple times\n\n this._show = false;\n this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time);\n } else {\n this.hide();\n }\n }\n };\n\n TooltipRichContent.prototype.isShow = function () {\n return this._show;\n };\n\n TooltipRichContent.prototype.getOuterSize = function () {\n var size = this.getSize();\n return {\n width: size[0],\n height: size[1]\n };\n };\n\n TooltipRichContent.prototype.dispose = function () {\n this._zr.remove(this.el);\n };\n\n return TooltipRichContent;\n}();\n\nfunction mathMaxWith0(val) {\n return Math.max(0, val);\n}\n\nfunction calcShadowOuterSize(style) {\n var shadowBlur = mathMaxWith0(style.shadowBlur || 0);\n var shadowOffsetX = mathMaxWith0(style.shadowOffsetX || 0);\n var shadowOffsetY = mathMaxWith0(style.shadowOffsetY || 0);\n return {\n left: mathMaxWith0(shadowBlur - shadowOffsetX),\n right: mathMaxWith0(shadowBlur + shadowOffsetX),\n top: mathMaxWith0(shadowBlur - shadowOffsetY),\n bottom: mathMaxWith0(shadowBlur + shadowOffsetY)\n };\n}\n\nfunction makeStyleCoord(out, zr, zrX, zrY) {\n out[0] = zrX;\n out[1] = zrY;\n out[2] = out[0] / zr.getWidth();\n out[3] = out[1] / zr.getHeight();\n}\n\nexport default TooltipRichContent;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport { __extends } from \"tslib\";\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport TooltipHTMLContent from './TooltipHTMLContent';\nimport TooltipRichContent from './TooltipRichContent';\nimport * as formatUtil from '../../util/format';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport findPointFromSeries from '../axisPointer/findPointFromSeries';\nimport * as layoutUtil from '../../util/layout';\nimport Model from '../../model/Model';\nimport * as globalListener from '../axisPointer/globalListener';\nimport * as axisHelper from '../../coord/axisHelper';\nimport * as axisPointerViewHelper from '../axisPointer/viewHelper';\nimport { getTooltipRenderMode, preParseFinder, queryReferringComponents } from '../../util/model';\nimport ComponentView from '../../view/Component';\nimport { format as timeFormat } from '../../util/time'; // import { isDimensionStacked } from '../../data/helper/dataStackHelper';\n\nimport { getECData } from '../../util/innerStore';\nimport { shouldTooltipConfine } from './helper';\nimport { normalizeTooltipFormatResult } from '../../model/mixin/dataFormat';\nimport { createTooltipMarkup, buildTooltipMarkup, TooltipMarkupStyleCreator } from './tooltipMarkup';\nimport { findEventDispatcher } from '../../util/event';\nvar bind = zrUtil.bind;\nvar each = zrUtil.each;\nvar parsePercent = numberUtil.parsePercent;\nvar proxyRect = new graphic.Rect({\n shape: {\n x: -1,\n y: -1,\n width: 2,\n height: 2\n }\n});\n\nvar TooltipView =\n/** @class */\nfunction (_super) {\n __extends(TooltipView, _super);\n\n function TooltipView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TooltipView.type;\n return _this;\n }\n\n TooltipView.prototype.init = function (ecModel, api) {\n if (env.node) {\n return;\n }\n\n var tooltipModel = ecModel.getComponent('tooltip');\n var renderMode = tooltipModel.get('renderMode');\n this._renderMode = getTooltipRenderMode(renderMode);\n this._tooltipContent = this._renderMode === 'richText' ? new TooltipRichContent(api) : new TooltipHTMLContent(api.getDom(), api, {\n appendToBody: tooltipModel.get('appendToBody', true)\n });\n };\n\n TooltipView.prototype.render = function (tooltipModel, ecModel, api) {\n if (env.node) {\n return;\n } // Reset\n\n\n this.group.removeAll();\n this._tooltipModel = tooltipModel;\n this._ecModel = ecModel;\n this._api = api;\n /**\n * @private\n * @type {boolean}\n */\n\n this._alwaysShowContent = tooltipModel.get('alwaysShowContent');\n var tooltipContent = this._tooltipContent;\n tooltipContent.update(tooltipModel);\n tooltipContent.setEnterable(tooltipModel.get('enterable'));\n\n this._initGlobalListener();\n\n this._keepShow();\n };\n\n TooltipView.prototype._initGlobalListener = function () {\n var tooltipModel = this._tooltipModel;\n var triggerOn = tooltipModel.get('triggerOn');\n globalListener.register('itemTooltip', this._api, bind(function (currTrigger, e, dispatchAction) {\n // If 'none', it is not controlled by mouse totally.\n if (triggerOn !== 'none') {\n if (triggerOn.indexOf(currTrigger) >= 0) {\n this._tryShow(e, dispatchAction);\n } else if (currTrigger === 'leave') {\n this._hide(dispatchAction);\n }\n }\n }, this));\n };\n\n TooltipView.prototype._keepShow = function () {\n var tooltipModel = this._tooltipModel;\n var ecModel = this._ecModel;\n var api = this._api; // Try to keep the tooltip show when refreshing\n\n if (this._lastX != null && this._lastY != null // When user is willing to control tooltip totally using API,\n // self.manuallyShowTip({x, y}) might cause tooltip hide,\n // which is not expected.\n && tooltipModel.get('triggerOn') !== 'none') {\n var self_1 = this;\n clearTimeout(this._refreshUpdateTimeout);\n this._refreshUpdateTimeout = setTimeout(function () {\n // Show tip next tick after other charts are rendered\n // In case highlight action has wrong result\n // FIXME\n !api.isDisposed() && self_1.manuallyShowTip(tooltipModel, ecModel, api, {\n x: self_1._lastX,\n y: self_1._lastY,\n dataByCoordSys: self_1._lastDataByCoordSys\n });\n });\n }\n };\n /**\n * Show tip manually by\n * dispatchAction({\n * type: 'showTip',\n * x: 10,\n * y: 10\n * });\n * Or\n * dispatchAction({\n * type: 'showTip',\n * seriesIndex: 0,\n * dataIndex or dataIndexInside or name\n * });\n *\n * TODO Batch\n */\n\n\n TooltipView.prototype.manuallyShowTip = function (tooltipModel, ecModel, api, payload) {\n if (payload.from === this.uid || env.node) {\n return;\n }\n\n var dispatchAction = makeDispatchAction(payload, api); // Reset ticket\n\n this._ticket = ''; // When triggered from axisPointer.\n\n var dataByCoordSys = payload.dataByCoordSys;\n var cmptRef = findComponentReference(payload, ecModel, api);\n\n if (cmptRef) {\n var rect = cmptRef.el.getBoundingRect().clone();\n rect.applyTransform(cmptRef.el.transform);\n\n this._tryShow({\n offsetX: rect.x + rect.width / 2,\n offsetY: rect.y + rect.height / 2,\n target: cmptRef.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n } else if (payload.tooltip && payload.x != null && payload.y != null) {\n var el = proxyRect;\n el.x = payload.x;\n el.y = payload.y;\n el.update();\n getECData(el).tooltipConfig = {\n name: null,\n option: payload.tooltip\n }; // Manually show tooltip while view is not using zrender elements.\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n target: el\n }, dispatchAction);\n } else if (dataByCoordSys) {\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n dataByCoordSys: dataByCoordSys,\n tooltipOption: payload.tooltipOption\n }, dispatchAction);\n } else if (payload.seriesIndex != null) {\n if (this._manuallyAxisShowTip(tooltipModel, ecModel, api, payload)) {\n return;\n }\n\n var pointInfo = findPointFromSeries(payload, ecModel);\n var cx = pointInfo.point[0];\n var cy = pointInfo.point[1];\n\n if (cx != null && cy != null) {\n this._tryShow({\n offsetX: cx,\n offsetY: cy,\n target: pointInfo.el,\n position: payload.position,\n // When manully trigger, the mouse is not on the el, so we'd better to\n // position tooltip on the bottom of the el and display arrow is possible.\n positionDefault: 'bottom'\n }, dispatchAction);\n }\n } else if (payload.x != null && payload.y != null) {\n // FIXME\n // should wrap dispatchAction like `axisPointer/globalListener` ?\n api.dispatchAction({\n type: 'updateAxisPointer',\n x: payload.x,\n y: payload.y\n });\n\n this._tryShow({\n offsetX: payload.x,\n offsetY: payload.y,\n position: payload.position,\n target: api.getZr().findHover(payload.x, payload.y).target\n }, dispatchAction);\n }\n };\n\n TooltipView.prototype.manuallyHideTip = function (tooltipModel, ecModel, api, payload) {\n var tooltipContent = this._tooltipContent;\n\n if (!this._alwaysShowContent && this._tooltipModel) {\n tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));\n }\n\n this._lastX = this._lastY = this._lastDataByCoordSys = null;\n\n if (payload.from !== this.uid) {\n this._hide(makeDispatchAction(payload, api));\n }\n }; // Be compatible with previous design, that is, when tooltip.type is 'axis' and\n // dispatchAction 'showTip' with seriesIndex and dataIndex will trigger axis pointer\n // and tooltip.\n\n\n TooltipView.prototype._manuallyAxisShowTip = function (tooltipModel, ecModel, api, payload) {\n var seriesIndex = payload.seriesIndex;\n var dataIndex = payload.dataIndex; // @ts-ignore\n\n var coordSysAxesInfo = ecModel.getComponent('axisPointer').coordSysAxesInfo;\n\n if (seriesIndex == null || dataIndex == null || coordSysAxesInfo == null) {\n return;\n }\n\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex);\n\n if (!seriesModel) {\n return;\n }\n\n var data = seriesModel.getData();\n var tooltipCascadedModel = buildTooltipModel([data.getItemModel(dataIndex), seriesModel, (seriesModel.coordinateSystem || {}).model], this._tooltipModel);\n\n if (tooltipCascadedModel.get('trigger') !== 'axis') {\n return;\n }\n\n api.dispatchAction({\n type: 'updateAxisPointer',\n seriesIndex: seriesIndex,\n dataIndex: dataIndex,\n position: payload.position\n });\n return true;\n };\n\n TooltipView.prototype._tryShow = function (e, dispatchAction) {\n var el = e.target;\n var tooltipModel = this._tooltipModel;\n\n if (!tooltipModel) {\n return;\n } // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed\n\n\n this._lastX = e.offsetX;\n this._lastY = e.offsetY;\n var dataByCoordSys = e.dataByCoordSys;\n\n if (dataByCoordSys && dataByCoordSys.length) {\n this._showAxisTooltip(dataByCoordSys, e);\n } else if (el) {\n this._lastDataByCoordSys = null;\n var seriesDispatcher_1;\n var cmptDispatcher_1;\n findEventDispatcher(el, function (target) {\n // Always show item tooltip if mouse is on the element with dataIndex\n if (getECData(target).dataIndex != null) {\n seriesDispatcher_1 = target;\n return true;\n } // Tooltip provided directly. Like legend.\n\n\n if (getECData(target).tooltipConfig != null) {\n cmptDispatcher_1 = target;\n return true;\n }\n }, true);\n\n if (seriesDispatcher_1) {\n this._showSeriesItemTooltip(e, seriesDispatcher_1, dispatchAction);\n } else if (cmptDispatcher_1) {\n this._showComponentItemTooltip(e, cmptDispatcher_1, dispatchAction);\n } else {\n this._hide(dispatchAction);\n }\n } else {\n this._lastDataByCoordSys = null;\n\n this._hide(dispatchAction);\n }\n };\n\n TooltipView.prototype._showOrMove = function (tooltipModel, cb) {\n // showDelay is used in this case: tooltip.enterable is set\n // as true. User intent to move mouse into tooltip and click\n // something. `showDelay` makes it easier to enter the content\n // but tooltip do not move immediately.\n var delay = tooltipModel.get('showDelay');\n cb = zrUtil.bind(cb, this);\n clearTimeout(this._showTimout);\n delay > 0 ? this._showTimout = setTimeout(cb, delay) : cb();\n };\n\n TooltipView.prototype._showAxisTooltip = function (dataByCoordSys, e) {\n var ecModel = this._ecModel;\n var globalTooltipModel = this._tooltipModel;\n var point = [e.offsetX, e.offsetY];\n var singleTooltipModel = buildTooltipModel([e.tooltipOption], globalTooltipModel);\n var renderMode = this._renderMode;\n var cbParamsList = [];\n var articleMarkup = createTooltipMarkup('section', {\n blocks: [],\n noHeader: true\n }); // Only for legacy: `Serise['formatTooltip']` returns a string.\n\n var markupTextArrLegacy = [];\n var markupStyleCreator = new TooltipMarkupStyleCreator();\n each(dataByCoordSys, function (itemCoordSys) {\n each(itemCoordSys.dataByAxis, function (axisItem) {\n var axisModel = ecModel.getComponent(axisItem.axisDim + 'Axis', axisItem.axisIndex);\n var axisValue = axisItem.value;\n\n if (!axisModel || axisValue == null) {\n return;\n }\n\n var axisValueLabel = axisPointerViewHelper.getValueLabel(axisValue, axisModel.axis, ecModel, axisItem.seriesDataIndices, axisItem.valueLabelOpt);\n var axisSectionMarkup = createTooltipMarkup('section', {\n header: axisValueLabel,\n noHeader: !zrUtil.trim(axisValueLabel),\n sortBlocks: true,\n blocks: []\n });\n articleMarkup.blocks.push(axisSectionMarkup);\n zrUtil.each(axisItem.seriesDataIndices, function (idxItem) {\n var series = ecModel.getSeriesByIndex(idxItem.seriesIndex);\n var dataIndex = idxItem.dataIndexInside;\n var cbParams = series.getDataParams(dataIndex);\n cbParams.axisDim = axisItem.axisDim;\n cbParams.axisIndex = axisItem.axisIndex;\n cbParams.axisType = axisItem.axisType;\n cbParams.axisId = axisItem.axisId;\n cbParams.axisValue = axisHelper.getAxisRawValue(axisModel.axis, {\n value: axisValue\n });\n cbParams.axisValueLabel = axisValueLabel; // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n\n cbParams.marker = markupStyleCreator.makeTooltipMarker('item', formatUtil.convertToColorString(cbParams.color), renderMode);\n var seriesTooltipResult = normalizeTooltipFormatResult(series.formatTooltip(dataIndex, true, null));\n\n if (seriesTooltipResult.markupFragment) {\n axisSectionMarkup.blocks.push(seriesTooltipResult.markupFragment);\n }\n\n if (seriesTooltipResult.markupText) {\n markupTextArrLegacy.push(seriesTooltipResult.markupText);\n }\n\n cbParamsList.push(cbParams);\n });\n });\n }); // In most cases, the second axis is displays upper on the first one.\n // So we reverse it to look better.\n\n articleMarkup.blocks.reverse();\n markupTextArrLegacy.reverse();\n var positionExpr = e.position;\n var orderMode = singleTooltipModel.get('order');\n var builtMarkupText = buildTooltipMarkup(articleMarkup, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), singleTooltipModel.get('textStyle'));\n builtMarkupText && markupTextArrLegacy.unshift(builtMarkupText);\n var blockBreak = renderMode === 'richText' ? '\\n\\n' : '
';\n var allMarkupText = markupTextArrLegacy.join(blockBreak);\n\n this._showOrMove(singleTooltipModel, function () {\n if (this._updateContentNotChangedOnAxis(dataByCoordSys)) {\n this._updatePosition(singleTooltipModel, positionExpr, point[0], point[1], this._tooltipContent, cbParamsList);\n } else {\n this._showTooltipContent(singleTooltipModel, allMarkupText, cbParamsList, Math.random() + '', point[0], point[1], positionExpr, null, markupStyleCreator);\n }\n }); // Do not trigger events here, because this branch only be entered\n // from dispatchAction.\n\n };\n\n TooltipView.prototype._showSeriesItemTooltip = function (e, dispatcher, dispatchAction) {\n var ecModel = this._ecModel;\n var ecData = getECData(dispatcher); // Use dataModel in element if possible\n // Used when mouseover on a element like markPoint or edge\n // In which case, the data is not main data in series.\n\n var seriesIndex = ecData.seriesIndex;\n var seriesModel = ecModel.getSeriesByIndex(seriesIndex); // For example, graph link.\n\n var dataModel = ecData.dataModel || seriesModel;\n var dataIndex = ecData.dataIndex;\n var dataType = ecData.dataType;\n var data = dataModel.getData(dataType);\n var renderMode = this._renderMode;\n var positionDefault = e.positionDefault;\n var tooltipModel = buildTooltipModel([data.getItemModel(dataIndex), dataModel, seriesModel && (seriesModel.coordinateSystem || {}).model], this._tooltipModel, positionDefault ? {\n position: positionDefault\n } : null);\n var tooltipTrigger = tooltipModel.get('trigger');\n\n if (tooltipTrigger != null && tooltipTrigger !== 'item') {\n return;\n }\n\n var params = dataModel.getDataParams(dataIndex, dataType);\n var markupStyleCreator = new TooltipMarkupStyleCreator(); // Pre-create marker style for makers. Users can assemble richText\n // text in `formatter` callback and use those markers style.\n\n params.marker = markupStyleCreator.makeTooltipMarker('item', formatUtil.convertToColorString(params.color), renderMode);\n var seriesTooltipResult = normalizeTooltipFormatResult(dataModel.formatTooltip(dataIndex, false, dataType));\n var orderMode = tooltipModel.get('order');\n var markupText = seriesTooltipResult.markupFragment ? buildTooltipMarkup(seriesTooltipResult.markupFragment, markupStyleCreator, renderMode, orderMode, ecModel.get('useUTC'), tooltipModel.get('textStyle')) : seriesTooltipResult.markupText;\n var asyncTicket = 'item_' + dataModel.name + '_' + dataIndex;\n\n this._showOrMove(tooltipModel, function () {\n this._showTooltipContent(tooltipModel, markupText, params, asyncTicket, e.offsetX, e.offsetY, e.position, e.target, markupStyleCreator);\n }); // FIXME\n // duplicated showtip if manuallyShowTip is called from dispatchAction.\n\n\n dispatchAction({\n type: 'showTip',\n dataIndexInside: dataIndex,\n dataIndex: data.getRawIndex(dataIndex),\n seriesIndex: seriesIndex,\n from: this.uid\n });\n };\n\n TooltipView.prototype._showComponentItemTooltip = function (e, el, dispatchAction) {\n var ecData = getECData(el);\n var tooltipConfig = ecData.tooltipConfig;\n var tooltipOpt = tooltipConfig.option || {};\n\n if (zrUtil.isString(tooltipOpt)) {\n var content = tooltipOpt;\n tooltipOpt = {\n content: content,\n // Fixed formatter\n formatter: content\n };\n }\n\n var tooltipModelCascade = [tooltipOpt];\n\n var cmpt = this._ecModel.getComponent(ecData.componentMainType, ecData.componentIndex);\n\n if (cmpt) {\n tooltipModelCascade.push(cmpt);\n } // In most cases, component tooltip formatter has different params with series tooltip formatter,\n // so that they can not share the same formatter. Since the global tooltip formatter is used for series\n // by convension, we do not use it as the default formatter for component.\n\n\n tooltipModelCascade.push({\n formatter: tooltipOpt.content\n });\n var positionDefault = e.positionDefault;\n var subTooltipModel = buildTooltipModel(tooltipModelCascade, this._tooltipModel, positionDefault ? {\n position: positionDefault\n } : null);\n var defaultHtml = subTooltipModel.get('content');\n var asyncTicket = Math.random() + ''; // PENDING: this case do not support richText style yet.\n\n var markupStyleCreator = new TooltipMarkupStyleCreator(); // Do not check whether `trigger` is 'none' here, because `trigger`\n // only works on coordinate system. In fact, we have not found case\n // that requires setting `trigger` nothing on component yet.\n\n this._showOrMove(subTooltipModel, function () {\n // Use formatterParams from element defined in component\n // Avoid users modify it.\n var formatterParams = zrUtil.clone(subTooltipModel.get('formatterParams') || {});\n\n this._showTooltipContent(subTooltipModel, defaultHtml, formatterParams, asyncTicket, e.offsetX, e.offsetY, e.position, el, markupStyleCreator);\n }); // If not dispatch showTip, tip may be hide triggered by axis.\n\n\n dispatchAction({\n type: 'showTip',\n from: this.uid\n });\n };\n\n TooltipView.prototype._showTooltipContent = function ( // Use Model insteadof TooltipModel because this model may be from series or other options.\n // Instead of top level tooltip.\n tooltipModel, defaultHtml, params, asyncTicket, x, y, positionExpr, el, markupStyleCreator) {\n // Reset ticket\n this._ticket = '';\n\n if (!tooltipModel.get('showContent') || !tooltipModel.get('show')) {\n return;\n }\n\n var tooltipContent = this._tooltipContent;\n var formatter = tooltipModel.get('formatter');\n positionExpr = positionExpr || tooltipModel.get('position');\n var html = defaultHtml;\n\n var nearPoint = this._getNearestPoint([x, y], params, tooltipModel.get('trigger'), tooltipModel.get('borderColor'));\n\n var nearPointColor = nearPoint.color;\n\n if (formatter && zrUtil.isString(formatter)) {\n var useUTC = tooltipModel.ecModel.get('useUTC');\n var params0 = zrUtil.isArray(params) ? params[0] : params;\n var isTimeAxis = params0 && params0.axisType && params0.axisType.indexOf('time') >= 0;\n html = formatter;\n\n if (isTimeAxis) {\n html = timeFormat(params0.axisValue, html, useUTC);\n }\n\n html = formatUtil.formatTpl(html, params, true);\n } else if (zrUtil.isFunction(formatter)) {\n var callback = bind(function (cbTicket, html) {\n if (cbTicket === this._ticket) {\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n\n this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);\n }\n }, this);\n this._ticket = asyncTicket;\n html = formatter(params, asyncTicket, callback);\n }\n\n tooltipContent.setContent(html, markupStyleCreator, tooltipModel, nearPointColor, positionExpr);\n tooltipContent.show(tooltipModel, nearPointColor);\n\n this._updatePosition(tooltipModel, positionExpr, x, y, tooltipContent, params, el);\n };\n\n TooltipView.prototype._getNearestPoint = function (point, tooltipDataParams, trigger, borderColor) {\n if (trigger === 'axis' || zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || (this._renderMode === 'html' ? '#fff' : 'none')\n };\n }\n\n if (!zrUtil.isArray(tooltipDataParams)) {\n return {\n color: borderColor || tooltipDataParams.color || tooltipDataParams.borderColor\n };\n }\n };\n\n TooltipView.prototype._updatePosition = function (tooltipModel, positionExpr, x, // Mouse x\n y, // Mouse y\n content, params, el) {\n var viewWidth = this._api.getWidth();\n\n var viewHeight = this._api.getHeight();\n\n positionExpr = positionExpr || tooltipModel.get('position');\n var contentSize = content.getSize();\n var align = tooltipModel.get('align');\n var vAlign = tooltipModel.get('verticalAlign');\n var rect = el && el.getBoundingRect().clone();\n el && rect.applyTransform(el.transform);\n\n if (zrUtil.isFunction(positionExpr)) {\n // Callback of position can be an array or a string specify the position\n positionExpr = positionExpr([x, y], params, content.el, rect, {\n viewSize: [viewWidth, viewHeight],\n contentSize: contentSize.slice()\n });\n }\n\n if (zrUtil.isArray(positionExpr)) {\n x = parsePercent(positionExpr[0], viewWidth);\n y = parsePercent(positionExpr[1], viewHeight);\n } else if (zrUtil.isObject(positionExpr)) {\n var boxLayoutPosition = positionExpr;\n boxLayoutPosition.width = contentSize[0];\n boxLayoutPosition.height = contentSize[1];\n var layoutRect = layoutUtil.getLayoutRect(boxLayoutPosition, {\n width: viewWidth,\n height: viewHeight\n });\n x = layoutRect.x;\n y = layoutRect.y;\n align = null; // When positionExpr is left/top/right/bottom,\n // align and verticalAlign will not work.\n\n vAlign = null;\n } // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element\n else if (zrUtil.isString(positionExpr) && el) {\n var pos = calcTooltipPosition(positionExpr, rect, contentSize);\n x = pos[0];\n y = pos[1];\n } else {\n var pos = refixTooltipPosition(x, y, content, viewWidth, viewHeight, align ? null : 20, vAlign ? null : 20);\n x = pos[0];\n y = pos[1];\n }\n\n align && (x -= isCenterAlign(align) ? contentSize[0] / 2 : align === 'right' ? contentSize[0] : 0);\n vAlign && (y -= isCenterAlign(vAlign) ? contentSize[1] / 2 : vAlign === 'bottom' ? contentSize[1] : 0);\n\n if (shouldTooltipConfine(tooltipModel)) {\n var pos = confineTooltipPosition(x, y, content, viewWidth, viewHeight);\n x = pos[0];\n y = pos[1];\n }\n\n content.moveTo(x, y);\n }; // FIXME\n // Should we remove this but leave this to user?\n\n\n TooltipView.prototype._updateContentNotChangedOnAxis = function (dataByCoordSys) {\n var lastCoordSys = this._lastDataByCoordSys;\n var contentNotChanged = !!lastCoordSys && lastCoordSys.length === dataByCoordSys.length;\n contentNotChanged && each(lastCoordSys, function (lastItemCoordSys, indexCoordSys) {\n var lastDataByAxis = lastItemCoordSys.dataByAxis || [];\n var thisItemCoordSys = dataByCoordSys[indexCoordSys] || {};\n var thisDataByAxis = thisItemCoordSys.dataByAxis || [];\n contentNotChanged = contentNotChanged && lastDataByAxis.length === thisDataByAxis.length;\n contentNotChanged && each(lastDataByAxis, function (lastItem, indexAxis) {\n var thisItem = thisDataByAxis[indexAxis] || {};\n var lastIndices = lastItem.seriesDataIndices || [];\n var newIndices = thisItem.seriesDataIndices || [];\n contentNotChanged = contentNotChanged && lastItem.value === thisItem.value && lastItem.axisType === thisItem.axisType && lastItem.axisId === thisItem.axisId && lastIndices.length === newIndices.length;\n contentNotChanged && each(lastIndices, function (lastIdxItem, j) {\n var newIdxItem = newIndices[j];\n contentNotChanged = contentNotChanged && lastIdxItem.seriesIndex === newIdxItem.seriesIndex && lastIdxItem.dataIndex === newIdxItem.dataIndex;\n });\n });\n });\n this._lastDataByCoordSys = dataByCoordSys;\n return !!contentNotChanged;\n };\n\n TooltipView.prototype._hide = function (dispatchAction) {\n // Do not directly hideLater here, because this behavior may be prevented\n // in dispatchAction when showTip is dispatched.\n // FIXME\n // duplicated hideTip if manuallyHideTip is called from dispatchAction.\n this._lastDataByCoordSys = null;\n dispatchAction({\n type: 'hideTip',\n from: this.uid\n });\n };\n\n TooltipView.prototype.dispose = function (ecModel, api) {\n if (env.node) {\n return;\n }\n\n this._tooltipContent.dispose();\n\n globalListener.unregister('itemTooltip', api);\n };\n\n TooltipView.type = 'tooltip';\n return TooltipView;\n}(ComponentView);\n/**\n * From top to bottom. (the last one should be globalTooltipModel);\n */\n\n\nfunction buildTooltipModel(modelCascade, globalTooltipModel, defaultTooltipOption) {\n // Last is always tooltip model.\n var ecModel = globalTooltipModel.ecModel;\n var resultModel;\n\n if (defaultTooltipOption) {\n resultModel = new Model(defaultTooltipOption, ecModel, ecModel);\n resultModel = new Model(globalTooltipModel.option, resultModel, ecModel);\n } else {\n resultModel = globalTooltipModel;\n }\n\n for (var i = modelCascade.length - 1; i >= 0; i--) {\n var tooltipOpt = modelCascade[i];\n\n if (tooltipOpt) {\n if (tooltipOpt instanceof Model) {\n tooltipOpt = tooltipOpt.get('tooltip', true);\n } // In each data item tooltip can be simply write:\n // {\n // value: 10,\n // tooltip: 'Something you need to know'\n // }\n\n\n if (zrUtil.isString(tooltipOpt)) {\n tooltipOpt = {\n formatter: tooltipOpt\n };\n }\n\n if (tooltipOpt) {\n resultModel = new Model(tooltipOpt, resultModel, ecModel);\n }\n }\n }\n\n return resultModel;\n}\n\nfunction makeDispatchAction(payload, api) {\n return payload.dispatchAction || zrUtil.bind(api.dispatchAction, api);\n}\n\nfunction refixTooltipPosition(x, y, content, viewWidth, viewHeight, gapH, gapV) {\n var size = content.getOuterSize();\n var width = size.width;\n var height = size.height;\n\n if (gapH != null) {\n // Add extra 2 pixels for this case:\n // At present the \"values\" in defaut tooltip are using CSS `float: right`.\n // When the right edge of the tooltip box is on the right side of the\n // viewport, the `float` layout might push the \"values\" to the second line.\n if (x + width + gapH + 2 > viewWidth) {\n x -= width + gapH;\n } else {\n x += gapH;\n }\n }\n\n if (gapV != null) {\n if (y + height + gapV > viewHeight) {\n y -= height + gapV;\n } else {\n y += gapV;\n }\n }\n\n return [x, y];\n}\n\nfunction confineTooltipPosition(x, y, content, viewWidth, viewHeight) {\n var size = content.getOuterSize();\n var width = size.width;\n var height = size.height;\n x = Math.min(x + width, viewWidth) - width;\n y = Math.min(y + height, viewHeight) - height;\n x = Math.max(x, 0);\n y = Math.max(y, 0);\n return [x, y];\n}\n\nfunction calcTooltipPosition(position, rect, contentSize) {\n var domWidth = contentSize[0];\n var domHeight = contentSize[1];\n var gap = 10;\n var offset = 5;\n var x = 0;\n var y = 0;\n var rectWidth = rect.width;\n var rectHeight = rect.height;\n\n switch (position) {\n case 'inside':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n\n case 'top':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y - domHeight - gap;\n break;\n\n case 'bottom':\n x = rect.x + rectWidth / 2 - domWidth / 2;\n y = rect.y + rectHeight + gap;\n break;\n\n case 'left':\n x = rect.x - domWidth - gap - offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n break;\n\n case 'right':\n x = rect.x + rectWidth + gap + offset;\n y = rect.y + rectHeight / 2 - domHeight / 2;\n }\n\n return [x, y];\n}\n\nfunction isCenterAlign(align) {\n return align === 'center' || align === 'middle';\n}\n/**\n * Find target component by payload like:\n * ```js\n * { legendId: 'some_id', name: 'xxx' }\n * { toolboxIndex: 1, name: 'xxx' }\n * { geoName: 'some_name', name: 'xxx' }\n * ```\n * PENDING: at present only\n *\n * If not found, return null/undefined.\n */\n\n\nfunction findComponentReference(payload, ecModel, api) {\n var queryOptionMap = preParseFinder(payload).queryOptionMap;\n var componentMainType = queryOptionMap.keys()[0];\n\n if (!componentMainType || componentMainType === 'series') {\n return;\n }\n\n var queryResult = queryReferringComponents(ecModel, componentMainType, queryOptionMap.get(componentMainType), {\n useDefault: false,\n enableAll: false,\n enableNone: false\n });\n var model = queryResult.models[0];\n\n if (!model) {\n return;\n }\n\n var view = api.getViewOfComponentModel(model);\n var el;\n view.group.traverse(function (subEl) {\n var tooltipConfig = getECData(subEl).tooltipConfig;\n\n if (tooltipConfig && tooltipConfig.name === payload.name) {\n el = subEl;\n return true; // stop\n }\n });\n\n if (el) {\n return {\n componentMainType: componentMainType,\n componentIndex: model.componentIndex,\n el: el\n };\n }\n}\n\nexport default TooltipView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { install as installAxisPointer } from '../axisPointer/install';\nimport { use } from '../../extension';\nimport TooltipModel from './TooltipModel';\nimport TooltipView from './TooltipView';\nexport function install(registers) {\n use(installAxisPointer);\n registers.registerComponentModel(TooltipModel);\n registers.registerComponentView(TooltipView);\n /**\n * @action\n * @property {string} type\n * @property {number} seriesIndex\n * @property {number} dataIndex\n * @property {number} [x]\n * @property {number} [y]\n */\n\n registers.registerAction({\n type: 'showTip',\n event: 'showTip',\n update: 'tooltip:manuallyShowTip'\n }, // noop\n function () {});\n registers.registerAction({\n type: 'hideTip',\n event: 'hideTip',\n update: 'tooltip:manuallyHideTip'\n }, // noop\n function () {});\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nvar DEFAULT_TOOLBOX_BTNS = ['rect', 'polygon', 'keep', 'clear'];\nexport default function brushPreprocessor(option, isNew) {\n var brushComponents = normalizeToArray(option ? option.brush : []);\n\n if (!brushComponents.length) {\n return;\n }\n\n var brushComponentSpecifiedBtns = [];\n zrUtil.each(brushComponents, function (brushOpt) {\n var tbs = brushOpt.hasOwnProperty('toolbox') ? brushOpt.toolbox : [];\n\n if (tbs instanceof Array) {\n brushComponentSpecifiedBtns = brushComponentSpecifiedBtns.concat(tbs);\n }\n });\n var toolbox = option && option.toolbox;\n\n if (zrUtil.isArray(toolbox)) {\n toolbox = toolbox[0];\n }\n\n if (!toolbox) {\n toolbox = {\n feature: {}\n };\n option.toolbox = [toolbox];\n }\n\n var toolboxFeature = toolbox.feature || (toolbox.feature = {});\n var toolboxBrush = toolboxFeature.brush || (toolboxFeature.brush = {});\n var brushTypes = toolboxBrush.type || (toolboxBrush.type = []);\n brushTypes.push.apply(brushTypes, brushComponentSpecifiedBtns);\n removeDuplicate(brushTypes);\n\n if (isNew && !brushTypes.length) {\n brushTypes.push.apply(brushTypes, DEFAULT_TOOLBOX_BTNS);\n }\n}\n\nfunction removeDuplicate(arr) {\n var map = {};\n zrUtil.each(arr, function (val) {\n map[val] = 1;\n });\n arr.length = 0;\n zrUtil.each(map, function (flag, val) {\n arr.push(val);\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual solution, for consistent option specification.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapping from './VisualMapping';\nimport { getItemVisualFromData, setItemVisualFromData } from './helper';\nvar each = zrUtil.each;\n\nfunction hasKeys(obj) {\n if (obj) {\n for (var name_1 in obj) {\n if (obj.hasOwnProperty(name_1)) {\n return true;\n }\n }\n }\n}\n\nexport function createVisualMappings(option, stateList, supplementVisualOption) {\n var visualMappings = {};\n each(stateList, function (state) {\n var mappings = visualMappings[state] = createMappings();\n each(option[state], function (visualData, visualType) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n var mappingOption = {\n type: visualType,\n visual: visualData\n };\n supplementVisualOption && supplementVisualOption(mappingOption, state);\n mappings[visualType] = new VisualMapping(mappingOption); // Prepare a alpha for opacity, for some case that opacity\n // is not supported, such as rendering using gradient color.\n\n if (visualType === 'opacity') {\n mappingOption = zrUtil.clone(mappingOption);\n mappingOption.type = 'colorAlpha';\n mappings.__hidden.__alphaForOpacity = new VisualMapping(mappingOption);\n }\n });\n });\n return visualMappings;\n\n function createMappings() {\n var Creater = function () {}; // Make sure hidden fields will not be visited by\n // object iteration (with hasOwnProperty checking).\n\n\n Creater.prototype.__hidden = Creater.prototype;\n var obj = new Creater();\n return obj;\n }\n}\nexport function replaceVisualOption(thisOption, newOption, keys) {\n // Visual attributes merge is not supported, otherwise it\n // brings overcomplicated merge logic. See #2853. So if\n // newOption has anyone of these keys, all of these keys\n // will be reset. Otherwise, all keys remain.\n var has;\n zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n has = true;\n }\n });\n has && zrUtil.each(keys, function (key) {\n if (newOption.hasOwnProperty(key) && hasKeys(newOption[key])) {\n thisOption[key] = zrUtil.clone(newOption[key]);\n } else {\n delete thisOption[key];\n }\n });\n}\n/**\n * @param stateList\n * @param visualMappings\n * @param list\n * @param getValueState param: valueOrIndex, return: state.\n * @param scope Scope for getValueState\n * @param dimension Concrete dimension, if used.\n */\n// ???! handle brush?\n\nexport function applyVisual(stateList, visualMappings, data, getValueState, scope, dimension) {\n var visualTypesMap = {};\n zrUtil.each(stateList, function (state) {\n var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n var dataIndex;\n\n function getVisual(key) {\n return getItemVisualFromData(data, dataIndex, key);\n }\n\n function setVisual(key, value) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n if (dimension == null) {\n data.each(eachItem);\n } else {\n data.each([dimension], eachItem);\n }\n\n function eachItem(valueOrIndex, index) {\n dataIndex = dimension == null ? valueOrIndex // First argument is index\n : index;\n var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance\n // @ts-ignore\n\n if (rawDataItem && rawDataItem.visualMap === false) {\n return;\n }\n\n var valueState = getValueState.call(scope, valueOrIndex);\n var mappings = visualMappings[valueState];\n var visualTypes = visualTypesMap[valueState];\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(valueOrIndex, getVisual, setVisual);\n }\n }\n}\n/**\n * @param data\n * @param stateList\n * @param visualMappings >\n * @param getValueState param: valueOrIndex, return: state.\n * @param dim dimension or dimension index.\n */\n\nexport function incrementalApplyVisual(stateList, visualMappings, getValueState, dim) {\n var visualTypesMap = {};\n zrUtil.each(stateList, function (state) {\n var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);\n visualTypesMap[state] = visualTypes;\n });\n return {\n progress: function progress(params, data) {\n var dimName;\n\n if (dim != null) {\n dimName = data.getDimension(dim);\n }\n\n function getVisual(key) {\n return getItemVisualFromData(data, dataIndex, key);\n }\n\n function setVisual(key, value) {\n setItemVisualFromData(data, dataIndex, key, value);\n }\n\n var dataIndex;\n\n while ((dataIndex = params.next()) != null) {\n var rawDataItem = data.getRawDataItem(dataIndex); // Consider performance\n // @ts-ignore\n\n if (rawDataItem && rawDataItem.visualMap === false) {\n continue;\n }\n\n var value = dim != null ? data.get(dimName, dataIndex) : dataIndex;\n var valueState = getValueState(value);\n var mappings = visualMappings[valueState];\n var visualTypes = visualTypesMap[valueState];\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);\n }\n }\n }\n };\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as polygonContain from 'zrender/lib/contain/polygon';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport { linePolygonIntersect } from '../../util/graphic';\nexport function makeBrushCommonSelectorForSeries(area) {\n var brushType = area.brushType; // Do not use function binding or curry for performance.\n\n var selectors = {\n point: function (itemLayout) {\n return selector[brushType].point(itemLayout, selectors, area);\n },\n rect: function (itemLayout) {\n return selector[brushType].rect(itemLayout, selectors, area);\n }\n };\n return selectors;\n}\nvar selector = {\n lineX: getLineSelectors(0),\n lineY: getLineSelectors(1),\n rect: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.intersect(itemLayout);\n }\n },\n polygon: {\n point: function (itemLayout, selectors, area) {\n return itemLayout && area.boundingRect.contain(itemLayout[0], itemLayout[1]) && polygonContain.contain(area.range, itemLayout[0], itemLayout[1]);\n },\n rect: function (itemLayout, selectors, area) {\n var points = area.range;\n\n if (!itemLayout || points.length <= 1) {\n return false;\n }\n\n var x = itemLayout.x;\n var y = itemLayout.y;\n var width = itemLayout.width;\n var height = itemLayout.height;\n var p = points[0];\n\n if (polygonContain.contain(points, x, y) || polygonContain.contain(points, x + width, y) || polygonContain.contain(points, x, y + height) || polygonContain.contain(points, x + width, y + height) || BoundingRect.create(itemLayout).contain(p[0], p[1]) || linePolygonIntersect(x, y, x + width, y, points) || linePolygonIntersect(x, y, x, y + height, points) || linePolygonIntersect(x + width, y, x + width, y + height, points) || linePolygonIntersect(x, y + height, x + width, y + height, points)) {\n return true;\n }\n }\n }\n};\n\nfunction getLineSelectors(xyIndex) {\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n return {\n point: function (itemLayout, selectors, area) {\n if (itemLayout) {\n var range = area.range;\n var p = itemLayout[xyIndex];\n return inLineRange(p, range);\n }\n },\n rect: function (itemLayout, selectors, area) {\n if (itemLayout) {\n var range = area.range;\n var layoutRange = [itemLayout[xy[xyIndex]], itemLayout[xy[xyIndex]] + itemLayout[wh[xyIndex]]];\n layoutRange[1] < layoutRange[0] && layoutRange.reverse();\n return inLineRange(layoutRange[0], range) || inLineRange(layoutRange[1], range) || inLineRange(range[0], layoutRange) || inLineRange(range[1], layoutRange);\n }\n }\n };\n}\n\nfunction inLineRange(p, range) {\n return range[0] <= p && p <= range[1];\n}\n\nexport default selector;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as visualSolution from '../../visual/visualSolution';\nimport { makeBrushCommonSelectorForSeries } from './selector';\nimport * as throttleUtil from '../../util/throttle';\nimport BrushTargetManager from '../helper/BrushTargetManager';\nvar STATE_LIST = ['inBrush', 'outOfBrush'];\nvar DISPATCH_METHOD = '__ecBrushSelect';\nvar DISPATCH_FLAG = '__ecInBrushSelectEvent';\n;\nexport function layoutCovers(ecModel) {\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n var brushTargetManager = brushModel.brushTargetManager = new BrushTargetManager(brushModel.option, ecModel);\n brushTargetManager.setInputRanges(brushModel.areas, ecModel);\n });\n}\n/**\n * Register the visual encoding if this modules required.\n */\n\nexport default function brushVisual(ecModel, api, payload) {\n var brushSelected = [];\n var throttleType;\n var throttleDelay;\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n payload && payload.type === 'takeGlobalCursor' && brushModel.setBrushOption(payload.key === 'brush' ? payload.brushOption : {\n brushType: false\n });\n });\n layoutCovers(ecModel);\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel, brushIndex) {\n var thisBrushSelected = {\n brushId: brushModel.id,\n brushIndex: brushIndex,\n brushName: brushModel.name,\n areas: zrUtil.clone(brushModel.areas),\n selected: []\n }; // Every brush component exists in event params, convenient\n // for user to find by index.\n\n brushSelected.push(thisBrushSelected);\n var brushOption = brushModel.option;\n var brushLink = brushOption.brushLink;\n var linkedSeriesMap = [];\n var selectedDataIndexForLink = [];\n var rangeInfoBySeries = [];\n var hasBrushExists = false;\n\n if (!brushIndex) {\n // Only the first throttle setting works.\n throttleType = brushOption.throttleType;\n throttleDelay = brushOption.throttleDelay;\n } // Add boundingRect and selectors to range.\n\n\n var areas = zrUtil.map(brushModel.areas, function (area) {\n var builder = boundingRectBuilders[area.brushType];\n var selectableArea = zrUtil.defaults({\n boundingRect: builder ? builder(area) : void 0\n }, area);\n selectableArea.selectors = makeBrushCommonSelectorForSeries(selectableArea);\n return selectableArea;\n });\n var visualMappings = visualSolution.createVisualMappings(brushModel.option, STATE_LIST, function (mappingOption) {\n mappingOption.mappingMethod = 'fixed';\n });\n zrUtil.isArray(brushLink) && zrUtil.each(brushLink, function (seriesIndex) {\n linkedSeriesMap[seriesIndex] = 1;\n });\n\n function linkOthers(seriesIndex) {\n return brushLink === 'all' || !!linkedSeriesMap[seriesIndex];\n } // If no supported brush or no brush on the series,\n // all visuals should be in original state.\n\n\n function brushed(rangeInfoList) {\n return !!rangeInfoList.length;\n }\n /**\n * Logic for each series: (If the logic has to be modified one day, do it carefully!)\n *\n * ( brushed ┬ && ┬hasBrushExist ┬ && linkOthers ) => StepA: ┬record, ┬ StepB: ┬visualByRecord.\n * !brushed┘ ├hasBrushExist ┤ └nothing,┘ ├visualByRecord.\n * └!hasBrushExist┘ └nothing.\n * ( !brushed && ┬hasBrushExist ┬ && linkOthers ) => StepA: nothing, StepB: ┬visualByRecord.\n * └!hasBrushExist┘ └nothing.\n * ( brushed ┬ && !linkOthers ) => StepA: nothing, StepB: ┬visualByCheck.\n * !brushed┘ └nothing.\n * ( !brushed && !linkOthers ) => StepA: nothing, StepB: nothing.\n */\n // Step A\n\n\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n var rangeInfoList = rangeInfoBySeries[seriesIndex] = [];\n seriesModel.subType === 'parallel' ? stepAParallel(seriesModel, seriesIndex) : stepAOthers(seriesModel, seriesIndex, rangeInfoList);\n });\n\n function stepAParallel(seriesModel, seriesIndex) {\n var coordSys = seriesModel.coordinateSystem;\n hasBrushExists = hasBrushExists || coordSys.hasAxisBrushed();\n linkOthers(seriesIndex) && coordSys.eachActiveState(seriesModel.getData(), function (activeState, dataIndex) {\n activeState === 'active' && (selectedDataIndexForLink[dataIndex] = 1);\n });\n }\n\n function stepAOthers(seriesModel, seriesIndex, rangeInfoList) {\n if (!seriesModel.brushSelector || brushModelNotControll(brushModel, seriesIndex)) {\n return;\n }\n\n zrUtil.each(areas, function (area) {\n if (brushModel.brushTargetManager.controlSeries(area, seriesModel, ecModel)) {\n rangeInfoList.push(area);\n }\n\n hasBrushExists = hasBrushExists || brushed(rangeInfoList);\n });\n\n if (linkOthers(seriesIndex) && brushed(rangeInfoList)) {\n var data_1 = seriesModel.getData();\n data_1.each(function (dataIndex) {\n if (checkInRange(seriesModel, rangeInfoList, data_1, dataIndex)) {\n selectedDataIndexForLink[dataIndex] = 1;\n }\n });\n }\n } // Step B\n\n\n ecModel.eachSeries(function (seriesModel, seriesIndex) {\n var seriesBrushSelected = {\n seriesId: seriesModel.id,\n seriesIndex: seriesIndex,\n seriesName: seriesModel.name,\n dataIndex: []\n }; // Every series exists in event params, convenient\n // for user to find series by seriesIndex.\n\n thisBrushSelected.selected.push(seriesBrushSelected);\n var rangeInfoList = rangeInfoBySeries[seriesIndex];\n var data = seriesModel.getData();\n var getValueState = linkOthers(seriesIndex) ? function (dataIndex) {\n return selectedDataIndexForLink[dataIndex] ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';\n } : function (dataIndex) {\n return checkInRange(seriesModel, rangeInfoList, data, dataIndex) ? (seriesBrushSelected.dataIndex.push(data.getRawIndex(dataIndex)), 'inBrush') : 'outOfBrush';\n }; // If no supported brush or no brush, all visuals are in original state.\n\n (linkOthers(seriesIndex) ? hasBrushExists : brushed(rangeInfoList)) && visualSolution.applyVisual(STATE_LIST, visualMappings, data, getValueState);\n });\n });\n dispatchAction(api, throttleType, throttleDelay, brushSelected, payload);\n}\n;\n\nfunction dispatchAction(api, throttleType, throttleDelay, brushSelected, payload) {\n // This event will not be triggered when `setOpion`, otherwise dead lock may\n // triggered when do `setOption` in event listener, which we do not find\n // satisfactory way to solve yet. Some considered resolutions:\n // (a) Diff with prevoius selected data ant only trigger event when changed.\n // But store previous data and diff precisely (i.e., not only by dataIndex, but\n // also detect value changes in selected data) might bring complexity or fragility.\n // (b) Use spectial param like `silent` to suppress event triggering.\n // But such kind of volatile param may be weird in `setOption`.\n if (!payload) {\n return;\n }\n\n var zr = api.getZr();\n\n if (zr[DISPATCH_FLAG]) {\n return;\n }\n\n if (!zr[DISPATCH_METHOD]) {\n zr[DISPATCH_METHOD] = doDispatch;\n }\n\n var fn = throttleUtil.createOrUpdate(zr, DISPATCH_METHOD, throttleDelay, throttleType);\n fn(api, brushSelected);\n}\n\nfunction doDispatch(api, brushSelected) {\n if (!api.isDisposed()) {\n var zr = api.getZr();\n zr[DISPATCH_FLAG] = true;\n api.dispatchAction({\n type: 'brushSelect',\n batch: brushSelected\n });\n zr[DISPATCH_FLAG] = false;\n }\n}\n\nfunction checkInRange(seriesModel, rangeInfoList, data, dataIndex) {\n for (var i = 0, len = rangeInfoList.length; i < len; i++) {\n var area = rangeInfoList[i];\n\n if (seriesModel.brushSelector(dataIndex, data, area.selectors, area)) {\n return true;\n }\n }\n}\n\nfunction brushModelNotControll(brushModel, seriesIndex) {\n var seriesIndices = brushModel.option.seriesIndex;\n return seriesIndices != null && seriesIndices !== 'all' && (zrUtil.isArray(seriesIndices) ? zrUtil.indexOf(seriesIndices, seriesIndex) < 0 : seriesIndex !== seriesIndices);\n}\n\nvar boundingRectBuilders = {\n rect: function (area) {\n return getBoundingRectFromMinMax(area.range);\n },\n polygon: function (area) {\n var minMax;\n var range = area.range;\n\n for (var i = 0, len = range.length; i < len; i++) {\n minMax = minMax || [[Infinity, -Infinity], [Infinity, -Infinity]];\n var rg = range[i];\n rg[0] < minMax[0][0] && (minMax[0][0] = rg[0]);\n rg[0] > minMax[0][1] && (minMax[0][1] = rg[0]);\n rg[1] < minMax[1][0] && (minMax[1][0] = rg[1]);\n rg[1] > minMax[1][1] && (minMax[1][1] = rg[1]);\n }\n\n return minMax && getBoundingRectFromMinMax(minMax);\n }\n};\n\nfunction getBoundingRectFromMinMax(minMax) {\n return new BoundingRect(minMax[0][0], minMax[1][0], minMax[0][1] - minMax[0][0], minMax[1][1] - minMax[1][0]);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport BrushController from '../helper/BrushController';\nimport { layoutCovers } from './visualEncoding';\nimport ComponentView from '../../view/Component';\n\nvar BrushView =\n/** @class */\nfunction (_super) {\n __extends(BrushView, _super);\n\n function BrushView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BrushView.type;\n return _this;\n }\n\n BrushView.prototype.init = function (ecModel, api) {\n this.ecModel = ecModel;\n this.api = api;\n this.model;\n (this._brushController = new BrushController(api.getZr())).on('brush', zrUtil.bind(this._onBrush, this)).mount();\n };\n\n BrushView.prototype.render = function (brushModel, ecModel, api, payload) {\n this.model = brushModel;\n\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateTransform = function (brushModel, ecModel, api, payload) {\n // PENDING: `updateTransform` is a little tricky, whose layout need\n // to be calculate mandatorily and other stages will not be performed.\n // Take care the correctness of the logic. See #11754 .\n layoutCovers(ecModel);\n\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateVisual = function (brushModel, ecModel, api, payload) {\n this.updateTransform(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype.updateView = function (brushModel, ecModel, api, payload) {\n this._updateController(brushModel, ecModel, api, payload);\n };\n\n BrushView.prototype._updateController = function (brushModel, ecModel, api, payload) {\n // Do not update controller when drawing.\n (!payload || payload.$from !== brushModel.id) && this._brushController.setPanels(brushModel.brushTargetManager.makePanelOpts(api)).enableBrush(brushModel.brushOption).updateCovers(brushModel.areas.slice());\n }; // updateLayout: updateController,\n // updateVisual: updateController,\n\n\n BrushView.prototype.dispose = function () {\n this._brushController.dispose();\n };\n\n BrushView.prototype._onBrush = function (eventParam) {\n var modelId = this.model.id;\n var areas = this.model.brushTargetManager.setOutputRanges(eventParam.areas, this.ecModel); // Action is not dispatched on drag end, because the drag end\n // emits the same params with the last drag move event, and\n // may have some delay when using touch pad, which makes\n // animation not smooth (when using debounce).\n\n (!eventParam.isEnd || eventParam.removeOnClick) && this.api.dispatchAction({\n type: 'brush',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n eventParam.isEnd && this.api.dispatchAction({\n type: 'brushEnd',\n brushId: modelId,\n areas: zrUtil.clone(areas),\n $from: modelId\n });\n };\n\n BrushView.type = 'brush';\n return BrushView;\n}(ComponentView);\n\nexport default BrushView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport Model from '../../model/Model';\nimport ComponentModel from '../../model/Component';\nvar DEFAULT_OUT_OF_BRUSH_COLOR = '#ddd';\n\nvar BrushModel =\n/** @class */\nfunction (_super) {\n __extends(BrushModel, _super);\n\n function BrushModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = BrushModel.type;\n /**\n * @readOnly\n */\n\n _this.areas = [];\n /**\n * Current brush painting area settings.\n * @readOnly\n */\n\n _this.brushOption = {};\n return _this;\n }\n\n BrushModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option;\n !isInit && visualSolution.replaceVisualOption(thisOption, newOption, ['inBrush', 'outOfBrush']);\n var inBrush = thisOption.inBrush = thisOption.inBrush || {}; // Always give default visual, consider setOption at the second time.\n\n thisOption.outOfBrush = thisOption.outOfBrush || {\n color: DEFAULT_OUT_OF_BRUSH_COLOR\n };\n\n if (!inBrush.hasOwnProperty('liftZ')) {\n // Bigger than the highlight z lift, otherwise it will\n // be effected by the highlight z when brush.\n inBrush.liftZ = 5;\n }\n };\n /**\n * If `areas` is null/undefined, range state remain.\n */\n\n\n BrushModel.prototype.setAreas = function (areas) {\n if (process.env.NODE_ENV !== 'production') {\n zrUtil.assert(zrUtil.isArray(areas));\n zrUtil.each(areas, function (area) {\n zrUtil.assert(area.brushType, 'Illegal areas');\n });\n } // If areas is null/undefined, range state remain.\n // This helps user to dispatchAction({type: 'brush'}) with no areas\n // set but just want to get the current brush select info from a `brush` event.\n\n\n if (!areas) {\n return;\n }\n\n this.areas = zrUtil.map(areas, function (area) {\n return generateBrushOption(this.option, area);\n }, this);\n };\n /**\n * Set the current painting brush option.\n */\n\n\n BrushModel.prototype.setBrushOption = function (brushOption) {\n this.brushOption = generateBrushOption(this.option, brushOption);\n this.brushType = this.brushOption.brushType;\n };\n\n BrushModel.type = 'brush';\n BrushModel.dependencies = ['geo', 'grid', 'xAxis', 'yAxis', 'parallel', 'series'];\n BrushModel.defaultOption = {\n seriesIndex: 'all',\n brushType: 'rect',\n brushMode: 'single',\n transformable: true,\n brushStyle: {\n borderWidth: 1,\n color: 'rgba(210,219,238,0.3)',\n borderColor: '#D2DBEE'\n },\n throttleType: 'fixRate',\n throttleDelay: 0,\n removeOnClick: true,\n z: 10000\n };\n return BrushModel;\n}(ComponentModel);\n\nfunction generateBrushOption(option, brushOption) {\n return zrUtil.merge({\n brushType: option.brushType,\n brushMode: option.brushMode,\n transformable: option.transformable,\n brushStyle: new Model(option.brushStyle).getItemStyle(),\n removeOnClick: option.removeOnClick,\n z: option.z\n }, brushOption, true);\n}\n\nexport default BrushModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { ToolboxFeature } from '../featureManager';\nvar ICON_TYPES = ['rect', 'polygon', 'lineX', 'lineY', 'keep', 'clear'];\n\nvar BrushFeature =\n/** @class */\nfunction (_super) {\n __extends(BrushFeature, _super);\n\n function BrushFeature() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n BrushFeature.prototype.render = function (featureModel, ecModel, api) {\n var brushType;\n var brushMode;\n var isBrushed;\n ecModel.eachComponent({\n mainType: 'brush'\n }, function (brushModel) {\n brushType = brushModel.brushType;\n brushMode = brushModel.brushOption.brushMode || 'single';\n isBrushed = isBrushed || !!brushModel.areas.length;\n });\n this._brushType = brushType;\n this._brushMode = brushMode;\n zrUtil.each(featureModel.get('type', true), function (type) {\n featureModel.setIconStatus(type, (type === 'keep' ? brushMode === 'multiple' : type === 'clear' ? isBrushed : type === brushType) ? 'emphasis' : 'normal');\n });\n };\n\n BrushFeature.prototype.updateView = function (featureModel, ecModel, api) {\n this.render(featureModel, ecModel, api);\n };\n\n BrushFeature.prototype.getIcons = function () {\n var model = this.model;\n var availableIcons = model.get('icon', true);\n var icons = {};\n zrUtil.each(model.get('type', true), function (type) {\n if (availableIcons[type]) {\n icons[type] = availableIcons[type];\n }\n });\n return icons;\n };\n\n ;\n\n BrushFeature.prototype.onclick = function (ecModel, api, type) {\n var brushType = this._brushType;\n var brushMode = this._brushMode;\n\n if (type === 'clear') {\n // Trigger parallel action firstly\n api.dispatchAction({\n type: 'axisAreaSelect',\n intervals: []\n });\n api.dispatchAction({\n type: 'brush',\n command: 'clear',\n // Clear all areas of all brush components.\n areas: []\n });\n } else {\n api.dispatchAction({\n type: 'takeGlobalCursor',\n key: 'brush',\n brushOption: {\n brushType: type === 'keep' ? brushType : brushType === type ? false : type,\n brushMode: type === 'keep' ? brushMode === 'multiple' ? 'single' : 'multiple' : brushMode\n }\n });\n }\n };\n\n ;\n\n BrushFeature.getDefaultOption = function (ecModel) {\n var defaultOption = {\n show: true,\n type: ICON_TYPES.slice(),\n icon: {\n /* eslint-disable */\n rect: 'M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13',\n polygon: 'M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2',\n lineX: 'M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4',\n lineY: 'M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4',\n keep: 'M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z',\n clear: 'M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2' // jshint ignore:line\n\n /* eslint-enable */\n\n },\n // `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`\n title: ecModel.getLocale(['toolbox', 'brush', 'title'])\n };\n return defaultOption;\n };\n\n return BrushFeature;\n}(ToolboxFeature);\n\nexport default BrushFeature;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport brushPreprocessor from './preprocessor';\nimport BrushView from './BrushView';\nimport BrushModel from './BrushModel';\nimport brushVisual from './visualEncoding'; // TODO\n\nimport BrushFeature from '../toolbox/feature/Brush';\nimport { registerFeature } from '../toolbox/featureManager';\nexport function install(registers) {\n registers.registerComponentView(BrushView);\n registers.registerComponentModel(BrushModel);\n registers.registerPreprocessor(brushPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.BRUSH, brushVisual);\n registers.registerAction({\n type: 'brush',\n event: 'brush',\n update: 'updateVisual'\n }, function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'brush',\n query: payload\n }, function (brushModel) {\n brushModel.setAreas(payload.areas);\n });\n });\n /**\n * payload: {\n * brushComponents: [\n * {\n * brushId,\n * brushIndex,\n * brushName,\n * series: [\n * {\n * seriesId,\n * seriesIndex,\n * seriesName,\n * rawIndices: [21, 34, ...]\n * },\n * ...\n * ]\n * },\n * ...\n * ]\n * }\n */\n\n registers.registerAction({\n type: 'brushSelect',\n event: 'brushSelected',\n update: 'none'\n }, function () {});\n registers.registerAction({\n type: 'brushEnd',\n event: 'brushEnd',\n update: 'none'\n }, function () {});\n registerFeature('brush', BrushFeature);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport { getECData } from '../../util/innerStore';\nimport { createTextStyle } from '../../label/labelStyle';\nimport { getLayoutRect } from '../../util/layout';\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { windowOpen } from '../../util/format';\n\nvar TitleModel =\n/** @class */\nfunction (_super) {\n __extends(TitleModel, _super);\n\n function TitleModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TitleModel.type;\n _this.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n return _this;\n }\n\n TitleModel.type = 'title';\n TitleModel.defaultOption = {\n zlevel: 0,\n z: 6,\n show: true,\n text: '',\n target: 'blank',\n subtext: '',\n subtarget: 'blank',\n left: 0,\n top: 0,\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n textStyle: {\n fontSize: 18,\n fontWeight: 'bold',\n color: '#464646'\n },\n subtextStyle: {\n fontSize: 12,\n color: '#6E7079'\n }\n };\n return TitleModel;\n}(ComponentModel); // View\n\n\nvar TitleView =\n/** @class */\nfunction (_super) {\n __extends(TitleView, _super);\n\n function TitleView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TitleView.type;\n return _this;\n }\n\n TitleView.prototype.render = function (titleModel, ecModel, api) {\n this.group.removeAll();\n\n if (!titleModel.get('show')) {\n return;\n }\n\n var group = this.group;\n var textStyleModel = titleModel.getModel('textStyle');\n var subtextStyleModel = titleModel.getModel('subtextStyle');\n var textAlign = titleModel.get('textAlign');\n var textVerticalAlign = zrUtil.retrieve2(titleModel.get('textBaseline'), titleModel.get('textVerticalAlign'));\n var textEl = new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: titleModel.get('text'),\n fill: textStyleModel.getTextColor()\n }, {\n disableBox: true\n }),\n z2: 10\n });\n var textRect = textEl.getBoundingRect();\n var subText = titleModel.get('subtext');\n var subTextEl = new graphic.Text({\n style: createTextStyle(subtextStyleModel, {\n text: subText,\n fill: subtextStyleModel.getTextColor(),\n y: textRect.height + titleModel.get('itemGap'),\n verticalAlign: 'top'\n }, {\n disableBox: true\n }),\n z2: 10\n });\n var link = titleModel.get('link');\n var sublink = titleModel.get('sublink');\n var triggerEvent = titleModel.get('triggerEvent', true);\n textEl.silent = !link && !triggerEvent;\n subTextEl.silent = !sublink && !triggerEvent;\n\n if (link) {\n textEl.on('click', function () {\n windowOpen(link, '_' + titleModel.get('target'));\n });\n }\n\n if (sublink) {\n subTextEl.on('click', function () {\n windowOpen(sublink, '_' + titleModel.get('subtarget'));\n });\n }\n\n getECData(textEl).eventData = getECData(subTextEl).eventData = triggerEvent ? {\n componentType: 'title',\n componentIndex: titleModel.componentIndex\n } : null;\n group.add(textEl);\n subText && group.add(subTextEl); // If no subText, but add subTextEl, there will be an empty line.\n\n var groupRect = group.getBoundingRect();\n var layoutOption = titleModel.getBoxLayoutParams();\n layoutOption.width = groupRect.width;\n layoutOption.height = groupRect.height;\n var layoutRect = getLayoutRect(layoutOption, {\n width: api.getWidth(),\n height: api.getHeight()\n }, titleModel.get('padding')); // Adjust text align based on position\n\n if (!textAlign) {\n // Align left if title is on the left. center and right is same\n textAlign = titleModel.get('left') || titleModel.get('right'); // @ts-ignore\n\n if (textAlign === 'middle') {\n textAlign = 'center';\n } // Adjust layout by text align\n\n\n if (textAlign === 'right') {\n layoutRect.x += layoutRect.width;\n } else if (textAlign === 'center') {\n layoutRect.x += layoutRect.width / 2;\n }\n }\n\n if (!textVerticalAlign) {\n textVerticalAlign = titleModel.get('top') || titleModel.get('bottom'); // @ts-ignore\n\n if (textVerticalAlign === 'center') {\n textVerticalAlign = 'middle';\n }\n\n if (textVerticalAlign === 'bottom') {\n layoutRect.y += layoutRect.height;\n } else if (textVerticalAlign === 'middle') {\n layoutRect.y += layoutRect.height / 2;\n }\n\n textVerticalAlign = textVerticalAlign || 'top';\n }\n\n group.x = layoutRect.x;\n group.y = layoutRect.y;\n group.markRedraw();\n var alignStyle = {\n align: textAlign,\n verticalAlign: textVerticalAlign\n };\n textEl.setStyle(alignStyle);\n subTextEl.setStyle(alignStyle); // Render background\n // Get groupRect again because textAlign has been changed\n\n groupRect = group.getBoundingRect();\n var padding = layoutRect.margin;\n var style = titleModel.getItemStyle(['color', 'opacity']);\n style.fill = titleModel.get('backgroundColor');\n var rect = new graphic.Rect({\n shape: {\n x: groupRect.x - padding[3],\n y: groupRect.y - padding[0],\n width: groupRect.width + padding[1] + padding[3],\n height: groupRect.height + padding[0] + padding[2],\n r: titleModel.get('borderRadius')\n },\n style: style,\n subPixelOptimize: true,\n silent: true\n });\n group.add(rect);\n };\n\n TitleView.type = 'title';\n return TitleView;\n}(ComponentView);\n\nexport function install(registers) {\n registers.registerComponentModel(TitleModel);\n registers.registerComponentView(TitleView);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentModel from '../../model/Component';\nimport List from '../../data/List';\nimport { each, isObject, clone } from 'zrender/lib/core/util';\nimport { convertOptionIdName, getDataItemValue } from '../../util/model';\n\nvar TimelineModel =\n/** @class */\nfunction (_super) {\n __extends(TimelineModel, _super);\n\n function TimelineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TimelineModel.type;\n _this.layoutMode = 'box';\n return _this;\n }\n /**\n * @override\n */\n\n\n TimelineModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._initData();\n };\n /**\n * @override\n */\n\n\n TimelineModel.prototype.mergeOption = function (option) {\n _super.prototype.mergeOption.apply(this, arguments);\n\n this._initData();\n };\n\n TimelineModel.prototype.setCurrentIndex = function (currentIndex) {\n if (currentIndex == null) {\n currentIndex = this.option.currentIndex;\n }\n\n var count = this._data.count();\n\n if (this.option.loop) {\n currentIndex = (currentIndex % count + count) % count;\n } else {\n currentIndex >= count && (currentIndex = count - 1);\n currentIndex < 0 && (currentIndex = 0);\n }\n\n this.option.currentIndex = currentIndex;\n };\n /**\n * @return {number} currentIndex\n */\n\n\n TimelineModel.prototype.getCurrentIndex = function () {\n return this.option.currentIndex;\n };\n /**\n * @return {boolean}\n */\n\n\n TimelineModel.prototype.isIndexMax = function () {\n return this.getCurrentIndex() >= this._data.count() - 1;\n };\n /**\n * @param {boolean} state true: play, false: stop\n */\n\n\n TimelineModel.prototype.setPlayState = function (state) {\n this.option.autoPlay = !!state;\n };\n /**\n * @return {boolean} true: play, false: stop\n */\n\n\n TimelineModel.prototype.getPlayState = function () {\n return !!this.option.autoPlay;\n };\n /**\n * @private\n */\n\n\n TimelineModel.prototype._initData = function () {\n var thisOption = this.option;\n var dataArr = thisOption.data || [];\n var axisType = thisOption.axisType;\n var names = this._names = [];\n var processedDataArr;\n\n if (axisType === 'category') {\n processedDataArr = [];\n each(dataArr, function (item, index) {\n var value = convertOptionIdName(getDataItemValue(item), '');\n var newItem;\n\n if (isObject(item)) {\n newItem = clone(item);\n newItem.value = index;\n } else {\n newItem = index;\n }\n\n processedDataArr.push(newItem);\n names.push(value);\n });\n } else {\n processedDataArr = dataArr;\n }\n\n var dimType = {\n category: 'ordinal',\n time: 'time',\n value: 'number'\n }[axisType] || 'number';\n var data = this._data = new List([{\n name: 'value',\n type: dimType\n }], this);\n data.initData(processedDataArr, names);\n };\n\n TimelineModel.prototype.getData = function () {\n return this._data;\n };\n /**\n * @public\n * @return {Array.} categoreis\n */\n\n\n TimelineModel.prototype.getCategories = function () {\n if (this.get('axisType') === 'category') {\n return this._names.slice();\n }\n };\n\n TimelineModel.type = 'timeline';\n /**\n * @protected\n */\n\n TimelineModel.defaultOption = {\n zlevel: 0,\n z: 4,\n show: true,\n axisType: 'time',\n realtime: true,\n left: '20%',\n top: null,\n right: '20%',\n bottom: 0,\n width: null,\n height: 40,\n padding: 5,\n controlPosition: 'left',\n autoPlay: false,\n rewind: false,\n loop: true,\n playInterval: 2000,\n currentIndex: 0,\n itemStyle: {},\n label: {\n color: '#000'\n },\n data: []\n };\n return TimelineModel;\n}(ComponentModel);\n\nexport default TimelineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport TimelineModel from './TimelineModel';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport { mixin } from 'zrender/lib/core/util';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar SliderTimelineModel =\n/** @class */\nfunction (_super) {\n __extends(SliderTimelineModel, _super);\n\n function SliderTimelineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderTimelineModel.type;\n return _this;\n }\n\n SliderTimelineModel.type = 'timeline.slider';\n /**\n * @protected\n */\n\n SliderTimelineModel.defaultOption = inheritDefaultOption(TimelineModel.defaultOption, {\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderWidth: 0,\n orient: 'horizontal',\n inverse: false,\n tooltip: {\n trigger: 'item' // data item may also have tootip attr.\n\n },\n symbol: 'circle',\n symbolSize: 12,\n lineStyle: {\n show: true,\n width: 2,\n color: '#DAE1F5'\n },\n label: {\n position: 'auto',\n // When using number, label position is not\n // restricted by viewRect.\n // positive: right/bottom, negative: left/top\n show: true,\n interval: 'auto',\n rotate: 0,\n // formatter: null,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#A4B1D7'\n },\n itemStyle: {\n color: '#A4B1D7',\n borderWidth: 1\n },\n checkpointStyle: {\n symbol: 'circle',\n symbolSize: 15,\n color: '#316bf3',\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0, 0, 0, 0.3)',\n // borderColor: 'rgba(194,53,49, 0.5)',\n animation: true,\n animationDuration: 300,\n animationEasing: 'quinticInOut'\n },\n controlStyle: {\n show: true,\n showPlayBtn: true,\n showPrevBtn: true,\n showNextBtn: true,\n itemSize: 24,\n itemGap: 12,\n position: 'left',\n playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z',\n stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z',\n // eslint-disable-next-line max-len\n nextIcon: 'M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z',\n // eslint-disable-next-line max-len\n prevIcon: 'M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z',\n prevBtnSize: 18,\n nextBtnSize: 18,\n color: '#A4B1D7',\n borderColor: '#A4B1D7',\n borderWidth: 1\n },\n emphasis: {\n label: {\n show: true,\n // 其余属性默认使用全局文本样式,详见TEXTSTYLE\n color: '#6f778d'\n },\n itemStyle: {\n color: '#316BF3'\n },\n controlStyle: {\n color: '#316BF3',\n borderColor: '#316BF3',\n borderWidth: 2\n }\n },\n progress: {\n lineStyle: {\n color: '#316BF3'\n },\n itemStyle: {\n color: '#316BF3'\n },\n label: {\n color: '#6f778d'\n }\n },\n data: []\n });\n return SliderTimelineModel;\n}(TimelineModel);\n\nmixin(SliderTimelineModel, DataFormatMixin.prototype);\nexport default SliderTimelineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\n\nvar TimelineView =\n/** @class */\nfunction (_super) {\n __extends(TimelineView, _super);\n\n function TimelineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = TimelineView.type;\n return _this;\n }\n\n TimelineView.type = 'timeline';\n return TimelineView;\n}(ComponentView);\n\nexport default TimelineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport Axis from '../../coord/Axis';\n/**\n * Extend axis 2d\n */\n\nvar TimelineAxis =\n/** @class */\nfunction (_super) {\n __extends(TimelineAxis, _super);\n\n function TimelineAxis(dim, scale, coordExtent, axisType) {\n var _this = _super.call(this, dim, scale, coordExtent) || this;\n\n _this.type = axisType || 'value';\n return _this;\n }\n /**\n * @override\n */\n\n\n TimelineAxis.prototype.getLabelModel = function () {\n // Force override\n return this.model.getModel('label');\n };\n /**\n * @override\n */\n\n\n TimelineAxis.prototype.isHorizontal = function () {\n return this.model.get('orient') === 'horizontal';\n };\n\n return TimelineAxis;\n}(Axis);\n\nexport default TimelineAxis;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport BoundingRect from 'zrender/lib/core/BoundingRect';\nimport * as matrix from 'zrender/lib/core/matrix';\nimport * as graphic from '../../util/graphic';\nimport { createTextStyle } from '../../label/labelStyle';\nimport * as layout from '../../util/layout';\nimport TimelineView from './TimelineView';\nimport TimelineAxis from './TimelineAxis';\nimport { createSymbol } from '../../util/symbol';\nimport * as numberUtil from '../../util/number';\nimport { merge, each, extend, isString, bind, defaults, retrieve2 } from 'zrender/lib/core/util';\nimport OrdinalScale from '../../scale/Ordinal';\nimport TimeScale from '../../scale/Time';\nimport IntervalScale from '../../scale/Interval';\nimport { parsePercent } from 'zrender/lib/contain/text';\nimport { makeInner } from '../../util/model';\nimport { getECData } from '../../util/innerStore';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\nvar PI = Math.PI;\nvar labelDataIndexStore = makeInner();\n\nvar SliderTimelineView =\n/** @class */\nfunction (_super) {\n __extends(SliderTimelineView, _super);\n\n function SliderTimelineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderTimelineView.type;\n return _this;\n }\n\n SliderTimelineView.prototype.init = function (ecModel, api) {\n this.api = api;\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.render = function (timelineModel, ecModel, api) {\n this.model = timelineModel;\n this.api = api;\n this.ecModel = ecModel;\n this.group.removeAll();\n\n if (timelineModel.get('show', true)) {\n var layoutInfo_1 = this._layout(timelineModel, api);\n\n var mainGroup_1 = this._createGroup('_mainGroup');\n\n var labelGroup = this._createGroup('_labelGroup');\n\n var axis_1 = this._axis = this._createAxis(layoutInfo_1, timelineModel);\n\n timelineModel.formatTooltip = function (dataIndex) {\n var name = axis_1.scale.getLabel({\n value: dataIndex\n });\n return createTooltipMarkup('nameValue', {\n noName: true,\n value: name\n });\n };\n\n each(['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'], function (name) {\n this['_render' + name](layoutInfo_1, mainGroup_1, axis_1, timelineModel);\n }, this);\n\n this._renderAxisLabel(layoutInfo_1, labelGroup, axis_1, timelineModel);\n\n this._position(layoutInfo_1, timelineModel);\n }\n\n this._doPlayStop();\n\n this._updateTicksStatus();\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.remove = function () {\n this._clearTimer();\n\n this.group.removeAll();\n };\n /**\n * @override\n */\n\n\n SliderTimelineView.prototype.dispose = function () {\n this._clearTimer();\n };\n\n SliderTimelineView.prototype._layout = function (timelineModel, api) {\n var labelPosOpt = timelineModel.get(['label', 'position']);\n var orient = timelineModel.get('orient');\n var viewRect = getViewRect(timelineModel, api);\n var parsedLabelPos; // Auto label offset.\n\n if (labelPosOpt == null || labelPosOpt === 'auto') {\n parsedLabelPos = orient === 'horizontal' ? viewRect.y + viewRect.height / 2 < api.getHeight() / 2 ? '-' : '+' : viewRect.x + viewRect.width / 2 < api.getWidth() / 2 ? '+' : '-';\n } else if (isString(labelPosOpt)) {\n parsedLabelPos = {\n horizontal: {\n top: '-',\n bottom: '+'\n },\n vertical: {\n left: '-',\n right: '+'\n }\n }[orient][labelPosOpt];\n } else {\n // is number\n parsedLabelPos = labelPosOpt;\n }\n\n var labelAlignMap = {\n horizontal: 'center',\n vertical: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'left' : 'right'\n };\n var labelBaselineMap = {\n horizontal: parsedLabelPos >= 0 || parsedLabelPos === '+' ? 'top' : 'bottom',\n vertical: 'middle'\n };\n var rotationMap = {\n horizontal: 0,\n vertical: PI / 2\n }; // Position\n\n var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;\n var controlModel = timelineModel.getModel('controlStyle');\n var showControl = controlModel.get('show', true);\n var controlSize = showControl ? controlModel.get('itemSize') : 0;\n var controlGap = showControl ? controlModel.get('itemGap') : 0;\n var sizePlusGap = controlSize + controlGap; // Special label rotate.\n\n var labelRotation = timelineModel.get(['label', 'rotate']) || 0;\n labelRotation = labelRotation * PI / 180; // To radian.\n\n var playPosition;\n var prevBtnPosition;\n var nextBtnPosition;\n var controlPosition = controlModel.get('position', true);\n var showPlayBtn = showControl && controlModel.get('showPlayBtn', true);\n var showPrevBtn = showControl && controlModel.get('showPrevBtn', true);\n var showNextBtn = showControl && controlModel.get('showNextBtn', true);\n var xLeft = 0;\n var xRight = mainLength; // position[0] means left, position[1] means middle.\n\n if (controlPosition === 'left' || controlPosition === 'bottom') {\n showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);\n showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n } else {\n // 'top' 'right'\n showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);\n showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);\n }\n\n var axisExtent = [xLeft, xRight];\n\n if (timelineModel.get('inverse')) {\n axisExtent.reverse();\n }\n\n return {\n viewRect: viewRect,\n mainLength: mainLength,\n orient: orient,\n rotation: rotationMap[orient],\n labelRotation: labelRotation,\n labelPosOpt: parsedLabelPos,\n labelAlign: timelineModel.get(['label', 'align']) || labelAlignMap[orient],\n labelBaseline: timelineModel.get(['label', 'verticalAlign']) || timelineModel.get(['label', 'baseline']) || labelBaselineMap[orient],\n // Based on mainGroup.\n playPosition: playPosition,\n prevBtnPosition: prevBtnPosition,\n nextBtnPosition: nextBtnPosition,\n axisExtent: axisExtent,\n controlSize: controlSize,\n controlGap: controlGap\n };\n };\n\n SliderTimelineView.prototype._position = function (layoutInfo, timelineModel) {\n // Position is be called finally, because bounding rect is needed for\n // adapt content to fill viewRect (auto adapt offset).\n // Timeline may be not all in the viewRect when 'offset' is specified\n // as a number, because it is more appropriate that label aligns at\n // 'offset' but not the other edge defined by viewRect.\n var mainGroup = this._mainGroup;\n var labelGroup = this._labelGroup;\n var viewRect = layoutInfo.viewRect;\n\n if (layoutInfo.orient === 'vertical') {\n // transform to horizontal, inverse rotate by left-top point.\n var m = matrix.create();\n var rotateOriginX = viewRect.x;\n var rotateOriginY = viewRect.y + viewRect.height;\n matrix.translate(m, m, [-rotateOriginX, -rotateOriginY]);\n matrix.rotate(m, m, -PI / 2);\n matrix.translate(m, m, [rotateOriginX, rotateOriginY]);\n viewRect = viewRect.clone();\n viewRect.applyTransform(m);\n }\n\n var viewBound = getBound(viewRect);\n var mainBound = getBound(mainGroup.getBoundingRect());\n var labelBound = getBound(labelGroup.getBoundingRect());\n var mainPosition = [mainGroup.x, mainGroup.y];\n var labelsPosition = [labelGroup.x, labelGroup.y];\n labelsPosition[0] = mainPosition[0] = viewBound[0][0];\n var labelPosOpt = layoutInfo.labelPosOpt;\n\n if (labelPosOpt == null || isString(labelPosOpt)) {\n // '+' or '-'\n var mainBoundIdx = labelPosOpt === '+' ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);\n } else {\n var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;\n toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);\n labelsPosition[1] = mainPosition[1] + labelPosOpt;\n }\n\n mainGroup.setPosition(mainPosition);\n labelGroup.setPosition(labelsPosition);\n mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;\n setOrigin(mainGroup);\n setOrigin(labelGroup);\n\n function setOrigin(targetGroup) {\n targetGroup.originX = viewBound[0][0] - targetGroup.x;\n targetGroup.originY = viewBound[1][0] - targetGroup.y;\n }\n\n function getBound(rect) {\n // [[xmin, xmax], [ymin, ymax]]\n return [[rect.x, rect.x + rect.width], [rect.y, rect.y + rect.height]];\n }\n\n function toBound(fromPos, from, to, dimIdx, boundIdx) {\n fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];\n }\n };\n\n SliderTimelineView.prototype._createAxis = function (layoutInfo, timelineModel) {\n var data = timelineModel.getData();\n var axisType = timelineModel.get('axisType');\n var scale = createScaleByModel(timelineModel, axisType); // Customize scale. The `tickValue` is `dataIndex`.\n\n scale.getTicks = function () {\n return data.mapArray(['value'], function (value) {\n return {\n value: value\n };\n });\n };\n\n var dataExtent = data.getDataExtent('value');\n scale.setExtent(dataExtent[0], dataExtent[1]);\n scale.niceTicks();\n var axis = new TimelineAxis('value', scale, layoutInfo.axisExtent, axisType);\n axis.model = timelineModel;\n return axis;\n };\n\n SliderTimelineView.prototype._createGroup = function (key) {\n var newGroup = this[key] = new graphic.Group();\n this.group.add(newGroup);\n return newGroup;\n };\n\n SliderTimelineView.prototype._renderAxisLine = function (layoutInfo, group, axis, timelineModel) {\n var axisExtent = axis.getExtent();\n\n if (!timelineModel.get(['lineStyle', 'show'])) {\n return;\n }\n\n var line = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n y1: 0,\n x2: axisExtent[1],\n y2: 0\n },\n style: extend({\n lineCap: 'round'\n }, timelineModel.getModel('lineStyle').getLineStyle()),\n silent: true,\n z2: 1\n });\n group.add(line);\n var progressLine = this._progressLine = new graphic.Line({\n shape: {\n x1: axisExtent[0],\n x2: this._currentPointer ? this._currentPointer.x : axisExtent[0],\n y1: 0,\n y2: 0\n },\n style: defaults({\n lineCap: 'round',\n lineWidth: line.style.lineWidth\n }, timelineModel.getModel(['progress', 'lineStyle']).getLineStyle()),\n silent: true,\n z2: 1\n });\n group.add(progressLine);\n };\n\n SliderTimelineView.prototype._renderAxisTick = function (layoutInfo, group, axis, timelineModel) {\n var _this = this;\n\n var data = timelineModel.getData(); // Show all ticks, despite ignoring strategy.\n\n var ticks = axis.scale.getTicks();\n this._tickSymbols = []; // The value is dataIndex, see the costomized scale.\n\n each(ticks, function (tick) {\n var tickCoord = axis.dataToCoord(tick.value);\n var itemModel = data.getItemModel(tick.value);\n var itemStyleModel = itemModel.getModel('itemStyle');\n var hoverStyleModel = itemModel.getModel(['emphasis', 'itemStyle']);\n var progressStyleModel = itemModel.getModel(['progress', 'itemStyle']);\n var symbolOpt = {\n x: tickCoord,\n y: 0,\n onclick: bind(_this._changeTimeline, _this, tick.value)\n };\n var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);\n el.ensureState('emphasis').style = hoverStyleModel.getItemStyle();\n el.ensureState('progress').style = progressStyleModel.getItemStyle();\n enableHoverEmphasis(el);\n var ecData = getECData(el);\n\n if (itemModel.get('tooltip')) {\n ecData.dataIndex = tick.value;\n ecData.dataModel = timelineModel;\n } else {\n ecData.dataIndex = ecData.dataModel = null;\n }\n\n _this._tickSymbols.push(el);\n });\n };\n\n SliderTimelineView.prototype._renderAxisLabel = function (layoutInfo, group, axis, timelineModel) {\n var _this = this;\n\n var labelModel = axis.getLabelModel();\n\n if (!labelModel.get('show')) {\n return;\n }\n\n var data = timelineModel.getData();\n var labels = axis.getViewLabels();\n this._tickLabels = [];\n each(labels, function (labelItem) {\n // The tickValue is dataIndex, see the costomized scale.\n var dataIndex = labelItem.tickValue;\n var itemModel = data.getItemModel(dataIndex);\n var normalLabelModel = itemModel.getModel('label');\n var hoverLabelModel = itemModel.getModel(['emphasis', 'label']);\n var progressLabelModel = itemModel.getModel(['progress', 'label']);\n var tickCoord = axis.dataToCoord(labelItem.tickValue);\n var textEl = new graphic.Text({\n x: tickCoord,\n y: 0,\n rotation: layoutInfo.labelRotation - layoutInfo.rotation,\n onclick: bind(_this._changeTimeline, _this, dataIndex),\n silent: false,\n style: createTextStyle(normalLabelModel, {\n text: labelItem.formattedLabel,\n align: layoutInfo.labelAlign,\n verticalAlign: layoutInfo.labelBaseline\n })\n });\n textEl.ensureState('emphasis').style = createTextStyle(hoverLabelModel);\n textEl.ensureState('progress').style = createTextStyle(progressLabelModel);\n group.add(textEl);\n enableHoverEmphasis(textEl);\n labelDataIndexStore(textEl).dataIndex = dataIndex;\n\n _this._tickLabels.push(textEl);\n });\n };\n\n SliderTimelineView.prototype._renderControl = function (layoutInfo, group, axis, timelineModel) {\n var controlSize = layoutInfo.controlSize;\n var rotation = layoutInfo.rotation;\n var itemStyle = timelineModel.getModel('controlStyle').getItemStyle();\n var hoverStyle = timelineModel.getModel(['emphasis', 'controlStyle']).getItemStyle();\n var playState = timelineModel.getPlayState();\n var inverse = timelineModel.get('inverse', true);\n makeBtn(layoutInfo.nextBtnPosition, 'next', bind(this._changeTimeline, this, inverse ? '-' : '+'));\n makeBtn(layoutInfo.prevBtnPosition, 'prev', bind(this._changeTimeline, this, inverse ? '+' : '-'));\n makeBtn(layoutInfo.playPosition, playState ? 'stop' : 'play', bind(this._handlePlayClick, this, !playState), true);\n\n function makeBtn(position, iconName, onclick, willRotate) {\n if (!position) {\n return;\n }\n\n var iconSize = parsePercent(retrieve2(timelineModel.get(['controlStyle', iconName + 'BtnSize']), controlSize), controlSize);\n var rect = [0, -iconSize / 2, iconSize, iconSize];\n var btn = makeControlIcon(timelineModel, iconName + 'Icon', rect, {\n x: position[0],\n y: position[1],\n originX: controlSize / 2,\n originY: 0,\n rotation: willRotate ? -rotation : 0,\n rectHover: true,\n style: itemStyle,\n onclick: onclick\n });\n btn.ensureState('emphasis').style = hoverStyle;\n group.add(btn);\n enableHoverEmphasis(btn);\n }\n };\n\n SliderTimelineView.prototype._renderCurrentPointer = function (layoutInfo, group, axis, timelineModel) {\n var data = timelineModel.getData();\n var currentIndex = timelineModel.getCurrentIndex();\n var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle');\n var me = this;\n var callback = {\n onCreate: function (pointer) {\n pointer.draggable = true;\n pointer.drift = bind(me._handlePointerDrag, me);\n pointer.ondragend = bind(me._handlePointerDragend, me);\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel, true);\n },\n onUpdate: function (pointer) {\n pointerMoveTo(pointer, me._progressLine, currentIndex, axis, timelineModel);\n }\n }; // Reuse when exists, for animation and drag.\n\n this._currentPointer = giveSymbol(pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback);\n };\n\n SliderTimelineView.prototype._handlePlayClick = function (nextState) {\n this._clearTimer();\n\n this.api.dispatchAction({\n type: 'timelinePlayChange',\n playState: nextState,\n from: this.uid\n });\n };\n\n SliderTimelineView.prototype._handlePointerDrag = function (dx, dy, e) {\n this._clearTimer();\n\n this._pointerChangeTimeline([e.offsetX, e.offsetY]);\n };\n\n SliderTimelineView.prototype._handlePointerDragend = function (e) {\n this._pointerChangeTimeline([e.offsetX, e.offsetY], true);\n };\n\n SliderTimelineView.prototype._pointerChangeTimeline = function (mousePos, trigger) {\n var toCoord = this._toAxisCoord(mousePos)[0];\n\n var axis = this._axis;\n var axisExtent = numberUtil.asc(axis.getExtent().slice());\n toCoord > axisExtent[1] && (toCoord = axisExtent[1]);\n toCoord < axisExtent[0] && (toCoord = axisExtent[0]);\n this._currentPointer.x = toCoord;\n\n this._currentPointer.markRedraw();\n\n this._progressLine.shape.x2 = toCoord;\n\n this._progressLine.dirty();\n\n var targetDataIndex = this._findNearestTick(toCoord);\n\n var timelineModel = this.model;\n\n if (trigger || targetDataIndex !== timelineModel.getCurrentIndex() && timelineModel.get('realtime')) {\n this._changeTimeline(targetDataIndex);\n }\n };\n\n SliderTimelineView.prototype._doPlayStop = function () {\n var _this = this;\n\n this._clearTimer();\n\n if (this.model.getPlayState()) {\n this._timer = setTimeout(function () {\n // Do not cache\n var timelineModel = _this.model;\n\n _this._changeTimeline(timelineModel.getCurrentIndex() + (timelineModel.get('rewind', true) ? -1 : 1));\n }, this.model.get('playInterval'));\n }\n };\n\n SliderTimelineView.prototype._toAxisCoord = function (vertex) {\n var trans = this._mainGroup.getLocalTransform();\n\n return graphic.applyTransform(vertex, trans, true);\n };\n\n SliderTimelineView.prototype._findNearestTick = function (axisCoord) {\n var data = this.model.getData();\n var dist = Infinity;\n var targetDataIndex;\n var axis = this._axis;\n data.each(['value'], function (value, dataIndex) {\n var coord = axis.dataToCoord(value);\n var d = Math.abs(coord - axisCoord);\n\n if (d < dist) {\n dist = d;\n targetDataIndex = dataIndex;\n }\n });\n return targetDataIndex;\n };\n\n SliderTimelineView.prototype._clearTimer = function () {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n };\n\n SliderTimelineView.prototype._changeTimeline = function (nextIndex) {\n var currentIndex = this.model.getCurrentIndex();\n\n if (nextIndex === '+') {\n nextIndex = currentIndex + 1;\n } else if (nextIndex === '-') {\n nextIndex = currentIndex - 1;\n }\n\n this.api.dispatchAction({\n type: 'timelineChange',\n currentIndex: nextIndex,\n from: this.uid\n });\n };\n\n SliderTimelineView.prototype._updateTicksStatus = function () {\n var currentIndex = this.model.getCurrentIndex();\n var tickSymbols = this._tickSymbols;\n var tickLabels = this._tickLabels;\n\n if (tickSymbols) {\n for (var i = 0; i < tickSymbols.length; i++) {\n tickSymbols && tickSymbols[i] && tickSymbols[i].toggleState('progress', i < currentIndex);\n }\n }\n\n if (tickLabels) {\n for (var i = 0; i < tickLabels.length; i++) {\n tickLabels && tickLabels[i] && tickLabels[i].toggleState('progress', labelDataIndexStore(tickLabels[i]).dataIndex <= currentIndex);\n }\n }\n };\n\n SliderTimelineView.type = 'timeline.slider';\n return SliderTimelineView;\n}(TimelineView);\n\nfunction createScaleByModel(model, axisType) {\n axisType = axisType || model.get('type');\n\n if (axisType) {\n switch (axisType) {\n // Buildin scale\n case 'category':\n return new OrdinalScale({\n ordinalMeta: model.getCategories(),\n extent: [Infinity, -Infinity]\n });\n\n case 'time':\n return new TimeScale({\n locale: model.ecModel.getLocaleModel(),\n useUTC: model.ecModel.get('useUTC')\n });\n\n default:\n // default to be value\n return new IntervalScale();\n }\n }\n}\n\nfunction getViewRect(model, api) {\n return layout.getLayoutRect(model.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n }, model.get('padding'));\n}\n\nfunction makeControlIcon(timelineModel, objPath, rect, opts) {\n var style = opts.style;\n var icon = graphic.createIcon(timelineModel.get(['controlStyle', objPath]), opts || {}, new BoundingRect(rect[0], rect[1], rect[2], rect[3])); // TODO createIcon won't use style in opt.\n\n if (style) {\n icon.setStyle(style);\n }\n\n return icon;\n}\n/**\n * Create symbol or update symbol\n * opt: basic position and event handlers\n */\n\n\nfunction giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n opt.scaleX = symbolSize[0] / 2;\n opt.scaleY = symbolSize[1] / 2;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n opt.x = opt.x || 0;\n opt.y = opt.y || 0;\n opt.x += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n opt.y += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}\n\nfunction pointerMoveTo(pointer, progressLine, dataIndex, axis, timelineModel, noAnimation) {\n if (pointer.dragging) {\n return;\n }\n\n var pointerModel = timelineModel.getModel('checkpointStyle');\n var toCoord = axis.dataToCoord(timelineModel.getData().get('value', dataIndex));\n\n if (noAnimation || !pointerModel.get('animation', true)) {\n pointer.attr({\n x: toCoord,\n y: 0\n });\n progressLine && progressLine.attr({\n shape: {\n x2: toCoord\n }\n });\n } else {\n var animationCfg = {\n duration: pointerModel.get('animationDuration', true),\n easing: pointerModel.get('animationEasing', true)\n };\n pointer.stopAnimation(null, true);\n pointer.animateTo({\n x: toCoord,\n y: 0\n }, animationCfg);\n progressLine && progressLine.animateTo({\n shape: {\n x2: toCoord\n }\n }, animationCfg);\n }\n}\n\nexport default SliderTimelineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { defaults } from 'zrender/lib/core/util';\nexport function installTimelineAction(registers) {\n registers.registerAction({\n type: 'timelineChange',\n event: 'timelineChanged',\n update: 'prepareAndUpdate'\n }, function (payload, ecModel) {\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel && payload.currentIndex != null) {\n timelineModel.setCurrentIndex(payload.currentIndex);\n\n if (!timelineModel.get('loop', true) && timelineModel.isIndexMax()) {\n timelineModel.setPlayState(false);\n }\n } // Set normalized currentIndex to payload.\n\n\n ecModel.resetOption('timeline', {\n replaceMerge: timelineModel.get('replaceMerge', true)\n });\n return defaults({\n currentIndex: timelineModel.option.currentIndex\n }, payload);\n });\n registers.registerAction({\n type: 'timelinePlayChange',\n event: 'timelinePlayChanged',\n update: 'update'\n }, function (payload, ecModel) {\n var timelineModel = ecModel.getComponent('timeline');\n\n if (timelineModel && payload.playState != null) {\n timelineModel.setPlayState(payload.playState);\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function timelinePreprocessor(option) {\n var timelineOpt = option && option.timeline;\n\n if (!zrUtil.isArray(timelineOpt)) {\n timelineOpt = timelineOpt ? [timelineOpt] : [];\n }\n\n zrUtil.each(timelineOpt, function (opt) {\n if (!opt) {\n return;\n }\n\n compatibleEC2(opt);\n });\n}\n\nfunction compatibleEC2(opt) {\n var type = opt.type;\n var ec2Types = {\n 'number': 'value',\n 'time': 'time'\n }; // Compatible with ec2\n\n if (ec2Types[type]) {\n opt.axisType = ec2Types[type];\n delete opt.type;\n }\n\n transferItem(opt);\n\n if (has(opt, 'controlPosition')) {\n var controlStyle = opt.controlStyle || (opt.controlStyle = {});\n\n if (!has(controlStyle, 'position')) {\n controlStyle.position = opt.controlPosition;\n }\n\n if (controlStyle.position === 'none' && !has(controlStyle, 'show')) {\n controlStyle.show = false;\n delete controlStyle.position;\n }\n\n delete opt.controlPosition;\n }\n\n zrUtil.each(opt.data || [], function (dataItem) {\n if (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem)) {\n if (!has(dataItem, 'value') && has(dataItem, 'name')) {\n // In ec2, using name as value.\n dataItem.value = dataItem.name;\n }\n\n transferItem(dataItem);\n }\n });\n}\n\nfunction transferItem(opt) {\n var itemStyle = opt.itemStyle || (opt.itemStyle = {});\n var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {}); // Transfer label out\n\n var label = opt.label || opt.label || {};\n var labelNormal = label.normal || (label.normal = {});\n var excludeLabelAttr = {\n normal: 1,\n emphasis: 1\n };\n zrUtil.each(label, function (value, name) {\n if (!excludeLabelAttr[name] && !has(labelNormal, name)) {\n labelNormal[name] = value;\n }\n });\n\n if (itemStyleEmphasis.label && !has(label, 'emphasis')) {\n label.emphasis = itemStyleEmphasis.label;\n delete itemStyleEmphasis.label;\n }\n}\n\nfunction has(obj, attr) {\n return obj.hasOwnProperty(attr);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport SliderTimelineModel from './SliderTimelineModel';\nimport SliderTimelineView from './SliderTimelineView';\nimport { installTimelineAction } from './timelineAction';\nimport preprocessor from './preprocessor';\nexport function install(registers) {\n registers.registerComponentModel(SliderTimelineModel);\n registers.registerComponentView(SliderTimelineView);\n registers.registerSubTypeDefaulter('timeline', function () {\n // Only slider now.\n return 'slider';\n });\n installTimelineAction(registers);\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { isArray } from 'zrender/lib/core/util';\nexport default function checkMarkerInSeries(seriesOpts, markerType) {\n if (!seriesOpts) {\n return false;\n }\n\n var seriesOptArr = isArray(seriesOpts) ? seriesOpts : [seriesOpts];\n\n for (var idx = 0; idx < seriesOptArr.length; idx++) {\n if (seriesOptArr[idx] && seriesOptArr[idx][markerType]) {\n return true;\n }\n }\n\n return false;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport { DataFormatMixin } from '../../model/mixin/dataFormat';\nimport ComponentModel from '../../model/Component';\nimport { makeInner, defaultEmphasis } from '../../util/model';\nimport { createTooltipMarkup } from '../tooltip/tooltipMarkup';\n\nfunction fillLabel(opt) {\n defaultEmphasis(opt, 'label', ['show']);\n} // { [componentType]: MarkerModel }\n\n\nvar inner = makeInner();\n\nvar MarkerModel =\n/** @class */\nfunction (_super) {\n __extends(MarkerModel, _super);\n\n function MarkerModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkerModel.type;\n /**\n * If marker model is created by self from series\n */\n\n _this.createdBySelf = false;\n return _this;\n }\n /**\n * @overrite\n */\n\n\n MarkerModel.prototype.init = function (option, parentModel, ecModel) {\n if (process.env.NODE_ENV !== 'production') {\n if (this.type === 'marker') {\n throw new Error('Marker component is abstract component. Use markLine, markPoint, markArea instead.');\n }\n }\n\n this.mergeDefaultAndTheme(option, ecModel);\n\n this._mergeOption(option, ecModel, false, true);\n };\n\n MarkerModel.prototype.isAnimationEnabled = function () {\n if (env.node) {\n return false;\n }\n\n var hostSeries = this.__hostSeries;\n return this.getShallow('animation') && hostSeries && hostSeries.isAnimationEnabled();\n };\n /**\n * @overrite\n */\n\n\n MarkerModel.prototype.mergeOption = function (newOpt, ecModel) {\n this._mergeOption(newOpt, ecModel, false, false);\n };\n\n MarkerModel.prototype._mergeOption = function (newOpt, ecModel, createdBySelf, isInit) {\n var componentType = this.mainType;\n\n if (!createdBySelf) {\n ecModel.eachSeries(function (seriesModel) {\n // mainType can be markPoint, markLine, markArea\n var markerOpt = seriesModel.get(this.mainType, true);\n var markerModel = inner(seriesModel)[componentType];\n\n if (!markerOpt || !markerOpt.data) {\n inner(seriesModel)[componentType] = null;\n return;\n }\n\n if (!markerModel) {\n if (isInit) {\n // Default label emphasis `position` and `show`\n fillLabel(markerOpt);\n }\n\n zrUtil.each(markerOpt.data, function (item) {\n // FIXME Overwrite fillLabel method ?\n if (item instanceof Array) {\n fillLabel(item[0]);\n fillLabel(item[1]);\n } else {\n fillLabel(item);\n }\n });\n markerModel = this.createMarkerModelFromSeries(markerOpt, this, ecModel); // markerModel = new ImplementedMarkerModel(\n // markerOpt, this, ecModel\n // );\n\n zrUtil.extend(markerModel, {\n mainType: this.mainType,\n // Use the same series index and name\n seriesIndex: seriesModel.seriesIndex,\n name: seriesModel.name,\n createdBySelf: true\n });\n markerModel.__hostSeries = seriesModel;\n } else {\n markerModel._mergeOption(markerOpt, ecModel, true);\n }\n\n inner(seriesModel)[componentType] = markerModel;\n }, this);\n }\n };\n\n MarkerModel.prototype.formatTooltip = function (dataIndex, multipleSeries, dataType) {\n var data = this.getData();\n var value = this.getRawValue(dataIndex);\n var itemName = data.getName(dataIndex);\n return createTooltipMarkup('section', {\n header: this.name,\n blocks: [createTooltipMarkup('nameValue', {\n name: itemName,\n value: value,\n noName: !itemName,\n noValue: value == null\n })]\n });\n };\n\n MarkerModel.prototype.getData = function () {\n return this._data;\n };\n\n MarkerModel.prototype.setData = function (data) {\n this._data = data;\n };\n\n MarkerModel.getMarkerModelFromSeries = function (seriesModel, // Support three types of markers. Strict check.\n componentType) {\n return inner(seriesModel)[componentType];\n };\n\n MarkerModel.type = 'marker';\n MarkerModel.dependencies = ['series', 'grid', 'polar', 'geo'];\n return MarkerModel;\n}(ComponentModel);\n\nzrUtil.mixin(MarkerModel, DataFormatMixin.prototype);\nexport default MarkerModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkPointModel =\n/** @class */\nfunction (_super) {\n __extends(MarkPointModel, _super);\n\n function MarkPointModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkPointModel.type;\n return _this;\n }\n\n MarkPointModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkPointModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkPointModel.type = 'markPoint';\n MarkPointModel.defaultOption = {\n zlevel: 0,\n z: 5,\n symbol: 'pin',\n symbolSize: 50,\n //symbolRotate: 0,\n //symbolOffset: [0, 0]\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'inside'\n },\n itemStyle: {\n borderWidth: 2\n },\n emphasis: {\n label: {\n show: true\n }\n }\n };\n return MarkPointModel;\n}(MarkerModel);\n\nexport default MarkPointModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as numberUtil from '../../util/number';\nimport { isDimensionStacked } from '../../data/helper/dataStackHelper';\nimport { indexOf, curry, clone, isArray } from 'zrender/lib/core/util';\n\nfunction hasXOrY(item) {\n return !(isNaN(parseFloat(item.x)) && isNaN(parseFloat(item.y)));\n}\n\nfunction hasXAndY(item) {\n return !isNaN(parseFloat(item.x)) && !isNaN(parseFloat(item.y));\n} // Make it simple, do not visit all stacked value to count precision.\n// function getPrecision(data, valueAxisDim, dataIndex) {\n// let precision = -1;\n// let stackedDim = data.mapDimension(valueAxisDim);\n// do {\n// precision = Math.max(\n// numberUtil.getPrecision(data.get(stackedDim, dataIndex)),\n// precision\n// );\n// let stackedOnSeries = data.getCalculationInfo('stackedOnSeries');\n// if (stackedOnSeries) {\n// let byValue = data.get(data.getCalculationInfo('stackedByDimension'), dataIndex);\n// data = stackedOnSeries.getData();\n// dataIndex = data.indexOf(data.getCalculationInfo('stackedByDimension'), byValue);\n// stackedDim = data.getCalculationInfo('stackedDimension');\n// }\n// else {\n// data = null;\n// }\n// } while (data);\n// return precision;\n// }\n\n\nfunction markerTypeCalculatorWithExtent(markerType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex) {\n var coordArr = [];\n var stacked = isDimensionStacked(data, targetDataDim\n /*, otherDataDim*/\n );\n var calcDataDim = stacked ? data.getCalculationInfo('stackResultDimension') : targetDataDim;\n var value = numCalculate(data, calcDataDim, markerType);\n var dataIndex = data.indicesOfNearest(calcDataDim, value)[0];\n coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);\n coordArr[targetCoordIndex] = data.get(calcDataDim, dataIndex);\n var coordArrValue = data.get(targetDataDim, dataIndex); // Make it simple, do not visit all stacked value to count precision.\n\n var precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));\n precision = Math.min(precision, 20);\n\n if (precision >= 0) {\n coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);\n }\n\n return [coordArr, coordArrValue];\n} // TODO Specified percent\n\n\nvar markerTypeCalculator = {\n min: curry(markerTypeCalculatorWithExtent, 'min'),\n max: curry(markerTypeCalculatorWithExtent, 'max'),\n average: curry(markerTypeCalculatorWithExtent, 'average'),\n median: curry(markerTypeCalculatorWithExtent, 'median')\n};\n/**\n * Transform markPoint data item to format used in List by do the following\n * 1. Calculate statistic like `max`, `min`, `average`\n * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array\n * @param {module:echarts/model/Series} seriesModel\n * @param {module:echarts/coord/*} [coordSys]\n * @param {Object} item\n * @return {Object}\n */\n\nexport function dataTransform(seriesModel, item) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem; // 1. If not specify the position with pixel directly\n // 2. If `coord` is not a data array. Which uses `xAxis`,\n // `yAxis` to specify the coord on each dimension\n // parseFloat first because item.x and item.y can be percent string like '20%'\n\n if (item && !hasXAndY(item) && !isArray(item.coord) && coordSys) {\n var dims = coordSys.dimensions;\n var axisInfo = getAxisInfo(item, data, coordSys, seriesModel); // Clone the option\n // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value\n\n item = clone(item);\n\n if (item.type && markerTypeCalculator[item.type] && axisInfo.baseAxis && axisInfo.valueAxis) {\n var otherCoordIndex = indexOf(dims, axisInfo.baseAxis.dim);\n var targetCoordIndex = indexOf(dims, axisInfo.valueAxis.dim);\n var coordInfo = markerTypeCalculator[item.type](data, axisInfo.baseDataDim, axisInfo.valueDataDim, otherCoordIndex, targetCoordIndex);\n item.coord = coordInfo[0]; // Force to use the value of calculated value.\n // let item use the value without stack.\n\n item.value = coordInfo[1];\n } else {\n // FIXME Only has one of xAxis and yAxis.\n var coord = [item.xAxis != null ? item.xAxis : item.radiusAxis, item.yAxis != null ? item.yAxis : item.angleAxis]; // Each coord support max, min, average\n\n for (var i = 0; i < 2; i++) {\n if (markerTypeCalculator[coord[i]]) {\n coord[i] = numCalculate(data, data.mapDimension(dims[i]), coord[i]);\n }\n }\n\n item.coord = coord;\n }\n }\n\n return item;\n}\nexport function getAxisInfo(item, data, coordSys, seriesModel) {\n var ret = {};\n\n if (item.valueIndex != null || item.valueDim != null) {\n ret.valueDataDim = item.valueIndex != null ? data.getDimension(item.valueIndex) : item.valueDim;\n ret.valueAxis = coordSys.getAxis(dataDimToCoordDim(seriesModel, ret.valueDataDim));\n ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n } else {\n ret.baseAxis = seriesModel.getBaseAxis();\n ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);\n ret.baseDataDim = data.mapDimension(ret.baseAxis.dim);\n ret.valueDataDim = data.mapDimension(ret.valueAxis.dim);\n }\n\n return ret;\n}\n\nfunction dataDimToCoordDim(seriesModel, dataDim) {\n var data = seriesModel.getData();\n var dimensions = data.dimensions;\n dataDim = data.getDimension(dataDim);\n\n for (var i = 0; i < dimensions.length; i++) {\n var dimItem = data.getDimensionInfo(dimensions[i]);\n\n if (dimItem.name === dataDim) {\n return dimItem.coordDim;\n }\n }\n}\n/**\n * Filter data which is out of coordinateSystem range\n * [dataFilter description]\n */\n\n\nexport function dataFilter( // Currently only polar and cartesian has containData.\ncoordSys, item) {\n // Alwalys return true if there is no coordSys\n return coordSys && coordSys.containData && item.coord && !hasXOrY(item) ? coordSys.containData(item.coord) : true;\n}\nexport function dimValueGetter(item, dimName, dataIndex, dimIndex) {\n // x, y, radius, angle\n if (dimIndex < 2) {\n return item.coord && item.coord[dimIndex];\n }\n\n return item.value;\n}\nexport function numCalculate(data, valueDataDim, type) {\n if (type === 'average') {\n var sum_1 = 0;\n var count_1 = 0;\n data.each(valueDataDim, function (val, idx) {\n if (!isNaN(val)) {\n sum_1 += val;\n count_1++;\n }\n });\n return sum_1 / count_1;\n } else if (type === 'median') {\n return data.getMedian(valueDataDim);\n } else {\n // max & min\n return data.getDataExtent(valueDataDim)[type === 'max' ? 1 : 0];\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport ComponentView from '../../view/Component';\nimport { createHashMap, each } from 'zrender/lib/core/util';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { enterBlur } from '../../util/states';\nvar inner = makeInner();\n\nvar MarkerView =\n/** @class */\nfunction (_super) {\n __extends(MarkerView, _super);\n\n function MarkerView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkerView.type;\n return _this;\n }\n\n MarkerView.prototype.init = function () {\n this.markerGroupMap = createHashMap();\n };\n\n MarkerView.prototype.render = function (markerModel, ecModel, api) {\n var _this = this;\n\n var markerGroupMap = this.markerGroupMap;\n markerGroupMap.each(function (item) {\n inner(item).keep = false;\n });\n ecModel.eachSeries(function (seriesModel) {\n var markerModel = MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);\n markerModel && _this.renderSeries(seriesModel, markerModel, ecModel, api);\n });\n markerGroupMap.each(function (item) {\n !inner(item).keep && _this.group.remove(item.group);\n });\n };\n\n MarkerView.prototype.markKeep = function (drawGroup) {\n inner(drawGroup).keep = true;\n };\n\n MarkerView.prototype.blurSeries = function (seriesModelList) {\n var _this = this;\n\n each(seriesModelList, function (seriesModel) {\n var markerModel = MarkerModel.getMarkerModelFromSeries(seriesModel, _this.type);\n\n if (markerModel) {\n var data = markerModel.getData();\n data.eachItemGraphicEl(function (el) {\n if (el) {\n enterBlur(el);\n }\n });\n }\n });\n };\n\n MarkerView.type = 'marker';\n return MarkerView;\n}(ComponentView);\n\nexport default MarkerView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport SymbolDraw from '../../chart/helper/SymbolDraw';\nimport * as numberUtil from '../../util/number';\nimport List from '../../data/List';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport MarkerModel from './MarkerModel';\nimport { isFunction, map, defaults, filter, curry } from 'zrender/lib/core/util';\nimport { getECData } from '../../util/innerStore';\nimport { getVisualFromData } from '../../visual/helper';\n\nfunction updateMarkerLayout(mpData, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n mpData.each(function (idx) {\n var itemModel = mpData.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } // Chart like bar may have there own marker positioning logic\n else if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(mpData.getValues(mpData.dimensions, idx));\n } else if (coordSys) {\n var x = mpData.get(coordSys.dimensions[0], idx);\n var y = mpData.get(coordSys.dimensions[1], idx);\n point = coordSys.dataToPoint([x, y]);\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n\n mpData.setItemLayout(idx, point);\n });\n}\n\nvar MarkPointView =\n/** @class */\nfunction (_super) {\n __extends(MarkPointView, _super);\n\n function MarkPointView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkPointView.type;\n return _this;\n }\n\n MarkPointView.prototype.updateTransform = function (markPointModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var mpModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markPoint');\n\n if (mpModel) {\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n };\n\n MarkPointView.prototype.renderSeries = function (seriesModel, mpModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var symbolDrawMap = this.markerGroupMap;\n var symbolDraw = symbolDrawMap.get(seriesId) || symbolDrawMap.set(seriesId, new SymbolDraw());\n var mpData = createList(coordSys, seriesModel, mpModel); // FIXME\n\n mpModel.setData(mpData);\n updateMarkerLayout(mpModel.getData(), seriesModel, api);\n mpData.each(function (idx) {\n var itemModel = mpData.getItemModel(idx);\n var symbol = itemModel.getShallow('symbol');\n var symbolSize = itemModel.getShallow('symbolSize');\n var symbolRotate = itemModel.getShallow('symbolRotate');\n\n if (isFunction(symbol) || isFunction(symbolSize) || isFunction(symbolRotate)) {\n var rawIdx = mpModel.getRawValue(idx);\n var dataParams = mpModel.getDataParams(idx);\n\n if (isFunction(symbol)) {\n symbol = symbol(rawIdx, dataParams);\n }\n\n if (isFunction(symbolSize)) {\n // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据?\n symbolSize = symbolSize(rawIdx, dataParams);\n }\n\n if (isFunction(symbolRotate)) {\n symbolRotate = symbolRotate(rawIdx, dataParams);\n }\n }\n\n var style = itemModel.getModel('itemStyle').getItemStyle();\n var color = getVisualFromData(seriesData, 'color');\n\n if (!style.fill) {\n style.fill = color;\n }\n\n mpData.setItemVisual(idx, {\n symbol: symbol,\n symbolSize: symbolSize,\n symbolRotate: symbolRotate,\n style: style\n });\n }); // TODO Text are wrong\n\n symbolDraw.updateData(mpData);\n this.group.add(symbolDraw.group); // Set host model for tooltip\n // FIXME\n\n mpData.eachItemGraphicEl(function (el) {\n el.traverse(function (child) {\n getECData(child).dataModel = mpModel;\n });\n });\n this.markKeep(symbolDraw);\n symbolDraw.group.silent = mpModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkPointView.type = 'markPoint';\n return MarkPointView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, mpModel) {\n var coordDimsInfos;\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n var mpData = new List(coordDimsInfos, mpModel);\n var dataOpt = map(mpModel.get('data'), curry(markerHelper.dataTransform, seriesModel));\n\n if (coordSys) {\n dataOpt = filter(dataOpt, curry(markerHelper.dataFilter, coordSys));\n }\n\n mpData.initData(dataOpt, null, coordSys ? markerHelper.dimValueGetter : function (item) {\n return item.value;\n });\n return mpData;\n}\n\nexport default MarkPointView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkPointModel from './MarkPointModel';\nimport MarkPointView from './MarkPointView';\nexport function install(registers) {\n registers.registerComponentModel(MarkPointModel);\n registers.registerComponentView(MarkPointView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markPoint')) {\n // Make sure markPoint component is enabled\n opt.markPoint = opt.markPoint || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkLineModel =\n/** @class */\nfunction (_super) {\n __extends(MarkLineModel, _super);\n\n function MarkLineModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkLineModel.type;\n return _this;\n }\n\n MarkLineModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkLineModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkLineModel.type = 'markLine';\n MarkLineModel.defaultOption = {\n zlevel: 0,\n z: 5,\n symbol: ['circle', 'arrow'],\n symbolSize: [8, 16],\n //symbolRotate: 0,\n symbolOffset: 0,\n precision: 2,\n tooltip: {\n trigger: 'item'\n },\n label: {\n show: true,\n position: 'end',\n distance: 5\n },\n lineStyle: {\n type: 'dashed'\n },\n emphasis: {\n label: {\n show: true\n },\n lineStyle: {\n width: 3\n }\n },\n animationEasing: 'linear'\n };\n return MarkLineModel;\n}(MarkerModel);\n\nexport default MarkLineModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport List from '../../data/List';\nimport * as numberUtil from '../../util/number';\nimport * as markerHelper from './markerHelper';\nimport LineDraw from '../../chart/helper/LineDraw';\nimport MarkerView from './MarkerView';\nimport { getStackedDimension } from '../../data/helper/dataStackHelper';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport { getECData } from '../../util/innerStore';\nimport MarkerModel from './MarkerModel';\nimport { isArray, retrieve, retrieve2, clone, extend, logError, merge, map, defaults, curry, filter } from 'zrender/lib/core/util';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nvar inner = makeInner();\n\nvar markLineTransform = function (seriesModel, coordSys, mlModel, item) {\n var data = seriesModel.getData();\n var itemArray;\n\n if (!isArray(item)) {\n // Special type markLine like 'min', 'max', 'average', 'median'\n var mlType = item.type;\n\n if (mlType === 'min' || mlType === 'max' || mlType === 'average' || mlType === 'median' // In case\n // data: [{\n // yAxis: 10\n // }]\n || item.xAxis != null || item.yAxis != null) {\n var valueAxis = void 0;\n var value = void 0;\n\n if (item.yAxis != null || item.xAxis != null) {\n valueAxis = coordSys.getAxis(item.yAxis != null ? 'y' : 'x');\n value = retrieve(item.yAxis, item.xAxis);\n } else {\n var axisInfo = markerHelper.getAxisInfo(item, data, coordSys, seriesModel);\n valueAxis = axisInfo.valueAxis;\n var valueDataDim = getStackedDimension(data, axisInfo.valueDataDim);\n value = markerHelper.numCalculate(data, valueDataDim, mlType);\n }\n\n var valueIndex = valueAxis.dim === 'x' ? 0 : 1;\n var baseIndex = 1 - valueIndex; // Normized to 2d data with start and end point\n\n var mlFrom = clone(item);\n var mlTo = {\n coord: []\n };\n mlFrom.type = null;\n mlFrom.coord = [];\n mlFrom.coord[baseIndex] = -Infinity;\n mlTo.coord[baseIndex] = Infinity;\n var precision = mlModel.get('precision');\n\n if (precision >= 0 && typeof value === 'number') {\n value = +value.toFixed(Math.min(precision, 20));\n }\n\n mlFrom.coord[valueIndex] = mlTo.coord[valueIndex] = value;\n itemArray = [mlFrom, mlTo, {\n type: mlType,\n valueIndex: item.valueIndex,\n // Force to use the value of calculated value.\n value: value\n }];\n } else {\n // Invalid data\n if (process.env.NODE_ENV !== 'production') {\n logError('Invalid markLine data.');\n }\n\n itemArray = [];\n }\n } else {\n itemArray = item;\n }\n\n var normalizedItem = [markerHelper.dataTransform(seriesModel, itemArray[0]), markerHelper.dataTransform(seriesModel, itemArray[1]), extend({}, itemArray[2])]; // Avoid line data type is extended by from(to) data type\n\n normalizedItem[2].type = normalizedItem[2].type || null; // Merge from option and to option into line option\n\n merge(normalizedItem[2], normalizedItem[0]);\n merge(normalizedItem[2], normalizedItem[1]);\n return normalizedItem;\n};\n\nfunction isInifinity(val) {\n return !isNaN(val) && !isFinite(val);\n} // If a markLine has one dim\n\n\nfunction ifMarkLineHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {\n var otherDimIndex = 1 - dimIndex;\n var dimName = coordSys.dimensions[dimIndex];\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]) && fromCoord[dimIndex] === toCoord[dimIndex] && coordSys.getAxis(dimName).containData(fromCoord[dimIndex]);\n}\n\nfunction markLineFilter(coordSys, item) {\n if (coordSys.type === 'cartesian2d') {\n var fromCoord = item[0].coord;\n var toCoord = item[1].coord; // In case\n // {\n // markLine: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n\n if (fromCoord && toCoord && (ifMarkLineHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkLineHasOnlyDim(0, fromCoord, toCoord, coordSys))) {\n return true;\n }\n }\n\n return markerHelper.dataFilter(coordSys, item[0]) && markerHelper.dataFilter(coordSys, item[1]);\n}\n\nfunction updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var itemModel = data.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(data.getValues(data.dimensions, idx));\n } else {\n var dims = coordSys.dimensions;\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n point = coordSys.dataToPoint([x, y]);\n } // Expand line to the edge of grid if value on one axis is Inifnity\n // In case\n // markLine: {\n // data: [{\n // yAxis: 2\n // // or\n // type: 'average'\n // }]\n // }\n\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n var dims = coordSys.dimensions;\n\n if (isInifinity(data.get(dims[0], idx))) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[isFrom ? 0 : 1]);\n } else if (isInifinity(data.get(dims[1], idx))) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[isFrom ? 0 : 1]);\n }\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n data.setItemLayout(idx, point);\n}\n\nvar MarkLineView =\n/** @class */\nfunction (_super) {\n __extends(MarkLineView, _super);\n\n function MarkLineView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkLineView.type;\n return _this;\n }\n\n MarkLineView.prototype.updateTransform = function (markLineModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var mlModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markLine');\n\n if (mlModel) {\n var mlData_1 = mlModel.getData();\n var fromData_1 = inner(mlModel).from;\n var toData_1 = inner(mlModel).to; // Update visual and layout of from symbol and to symbol\n\n fromData_1.each(function (idx) {\n updateSingleMarkerEndLayout(fromData_1, idx, true, seriesModel, api);\n updateSingleMarkerEndLayout(toData_1, idx, false, seriesModel, api);\n }); // Update layout of line\n\n mlData_1.each(function (idx) {\n mlData_1.setItemLayout(idx, [fromData_1.getItemLayout(idx), toData_1.getItemLayout(idx)]);\n });\n this.markerGroupMap.get(seriesModel.id).updateLayout();\n }\n }, this);\n };\n\n MarkLineView.prototype.renderSeries = function (seriesModel, mlModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var lineDrawMap = this.markerGroupMap;\n var lineDraw = lineDrawMap.get(seriesId) || lineDrawMap.set(seriesId, new LineDraw());\n this.group.add(lineDraw.group);\n var mlData = createList(coordSys, seriesModel, mlModel);\n var fromData = mlData.from;\n var toData = mlData.to;\n var lineData = mlData.line;\n inner(mlModel).from = fromData;\n inner(mlModel).to = toData; // Line data for tooltip and formatter\n\n mlModel.setData(lineData);\n var symbolType = mlModel.get('symbol');\n var symbolSize = mlModel.get('symbolSize');\n var symbolRotate = mlModel.get('symbolRotate');\n var symbolOffset = mlModel.get('symbolOffset');\n\n if (!isArray(symbolType)) {\n symbolType = [symbolType, symbolType];\n }\n\n if (!isArray(symbolSize)) {\n symbolSize = [symbolSize, symbolSize];\n }\n\n if (!isArray(symbolRotate)) {\n symbolRotate = [symbolRotate, symbolRotate];\n }\n\n if (!isArray(symbolOffset)) {\n symbolOffset = [symbolOffset, symbolOffset];\n } // Update visual and layout of from symbol and to symbol\n\n\n mlData.from.each(function (idx) {\n updateDataVisualAndLayout(fromData, idx, true);\n updateDataVisualAndLayout(toData, idx, false);\n }); // Update visual and layout of line\n\n lineData.each(function (idx) {\n var lineStyle = lineData.getItemModel(idx).getModel('lineStyle').getLineStyle(); // lineData.setItemVisual(idx, {\n // color: lineColor || fromData.getItemVisual(idx, 'color')\n // });\n\n lineData.setItemLayout(idx, [fromData.getItemLayout(idx), toData.getItemLayout(idx)]);\n\n if (lineStyle.stroke == null) {\n lineStyle.stroke = fromData.getItemVisual(idx, 'style').fill;\n }\n\n lineData.setItemVisual(idx, {\n fromSymbolKeepAspect: fromData.getItemVisual(idx, 'symbolKeepAspect'),\n fromSymbolOffset: fromData.getItemVisual(idx, 'symbolOffset'),\n fromSymbolRotate: fromData.getItemVisual(idx, 'symbolRotate'),\n fromSymbolSize: fromData.getItemVisual(idx, 'symbolSize'),\n fromSymbol: fromData.getItemVisual(idx, 'symbol'),\n toSymbolKeepAspect: toData.getItemVisual(idx, 'symbolKeepAspect'),\n toSymbolOffset: toData.getItemVisual(idx, 'symbolOffset'),\n toSymbolRotate: toData.getItemVisual(idx, 'symbolRotate'),\n toSymbolSize: toData.getItemVisual(idx, 'symbolSize'),\n toSymbol: toData.getItemVisual(idx, 'symbol'),\n style: lineStyle\n });\n });\n lineDraw.updateData(lineData); // Set host model for tooltip\n // FIXME\n\n mlData.line.eachItemGraphicEl(function (el, idx) {\n el.traverse(function (child) {\n getECData(child).dataModel = mlModel;\n });\n });\n\n function updateDataVisualAndLayout(data, idx, isFrom) {\n var itemModel = data.getItemModel(idx);\n updateSingleMarkerEndLayout(data, idx, isFrom, seriesModel, api);\n var style = itemModel.getModel('itemStyle').getItemStyle();\n\n if (style.fill == null) {\n style.fill = getVisualFromData(seriesData, 'color');\n }\n\n data.setItemVisual(idx, {\n symbolKeepAspect: itemModel.get('symbolKeepAspect'),\n // `0` should be considered as a valid value, so use `retrieve2` instead of `||`\n symbolOffset: retrieve2(itemModel.get('symbolOffset'), symbolOffset[isFrom ? 0 : 1]),\n symbolRotate: retrieve2(itemModel.get('symbolRotate', true), symbolRotate[isFrom ? 0 : 1]),\n symbolSize: retrieve2(itemModel.get('symbolSize'), symbolSize[isFrom ? 0 : 1]),\n symbol: retrieve2(itemModel.get('symbol', true), symbolType[isFrom ? 0 : 1]),\n style: style\n });\n }\n\n this.markKeep(lineDraw);\n lineDraw.group.silent = mlModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkLineView.type = 'markLine';\n return MarkLineView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, mlModel) {\n var coordDimsInfos;\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var info = seriesModel.getData().getDimensionInfo(seriesModel.getData().mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n }\n\n var fromData = new List(coordDimsInfos, mlModel);\n var toData = new List(coordDimsInfos, mlModel); // No dimensions\n\n var lineData = new List([], mlModel);\n var optData = map(mlModel.get('data'), curry(markLineTransform, seriesModel, coordSys, mlModel));\n\n if (coordSys) {\n optData = filter(optData, curry(markLineFilter, coordSys));\n }\n\n var dimValueGetter = coordSys ? markerHelper.dimValueGetter : function (item) {\n return item.value;\n };\n fromData.initData(map(optData, function (item) {\n return item[0];\n }), null, dimValueGetter);\n toData.initData(map(optData, function (item) {\n return item[1];\n }), null, dimValueGetter);\n lineData.initData(map(optData, function (item) {\n return item[2];\n }));\n lineData.hasItemOption = true;\n return {\n from: fromData,\n to: toData,\n line: lineData\n };\n}\n\nexport default MarkLineView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkLineModel from './MarkLineModel';\nimport MarkLineView from './MarkLineView';\nexport function install(registers) {\n registers.registerComponentModel(MarkLineModel);\n registers.registerComponentView(MarkLineView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markLine')) {\n // Make sure markLine component is enabled\n opt.markLine = opt.markLine || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport MarkerModel from './MarkerModel';\n\nvar MarkAreaModel =\n/** @class */\nfunction (_super) {\n __extends(MarkAreaModel, _super);\n\n function MarkAreaModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkAreaModel.type;\n return _this;\n }\n\n MarkAreaModel.prototype.createMarkerModelFromSeries = function (markerOpt, masterMarkerModel, ecModel) {\n return new MarkAreaModel(markerOpt, masterMarkerModel, ecModel);\n };\n\n MarkAreaModel.type = 'markArea';\n MarkAreaModel.defaultOption = {\n zlevel: 0,\n // PENDING\n z: 1,\n tooltip: {\n trigger: 'item'\n },\n // markArea should fixed on the coordinate system\n animation: false,\n label: {\n show: true,\n position: 'top'\n },\n itemStyle: {\n // color and borderColor default to use color from series\n // color: 'auto'\n // borderColor: 'auto'\n borderWidth: 0\n },\n emphasis: {\n label: {\n show: true,\n position: 'top'\n }\n }\n };\n return MarkAreaModel;\n}(MarkerModel);\n\nexport default MarkAreaModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\"; // TODO Optimize on polar\n\nimport * as colorUtil from 'zrender/lib/tool/color';\nimport List from '../../data/List';\nimport * as numberUtil from '../../util/number';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis, setStatesStylesFromModel } from '../../util/states';\nimport * as markerHelper from './markerHelper';\nimport MarkerView from './MarkerView';\nimport { retrieve, mergeAll, map, defaults, curry, filter } from 'zrender/lib/core/util';\nimport { isCoordinateSystemType } from '../../coord/CoordinateSystem';\nimport MarkerModel from './MarkerModel';\nimport { makeInner } from '../../util/model';\nimport { getVisualFromData } from '../../visual/helper';\nimport { setLabelStyle, getLabelStatesModels } from '../../label/labelStyle';\nimport { getECData } from '../../util/innerStore';\nvar inner = makeInner();\n\nvar markAreaTransform = function (seriesModel, coordSys, maModel, item) {\n var lt = markerHelper.dataTransform(seriesModel, item[0]);\n var rb = markerHelper.dataTransform(seriesModel, item[1]); // FIXME make sure lt is less than rb\n\n var ltCoord = lt.coord;\n var rbCoord = rb.coord;\n ltCoord[0] = retrieve(ltCoord[0], -Infinity);\n ltCoord[1] = retrieve(ltCoord[1], -Infinity);\n rbCoord[0] = retrieve(rbCoord[0], Infinity);\n rbCoord[1] = retrieve(rbCoord[1], Infinity); // Merge option into one\n\n var result = mergeAll([{}, lt, rb]);\n result.coord = [lt.coord, rb.coord];\n result.x0 = lt.x;\n result.y0 = lt.y;\n result.x1 = rb.x;\n result.y1 = rb.y;\n return result;\n};\n\nfunction isInifinity(val) {\n return !isNaN(val) && !isFinite(val);\n} // If a markArea has one dim\n\n\nfunction ifMarkAreaHasOnlyDim(dimIndex, fromCoord, toCoord, coordSys) {\n var otherDimIndex = 1 - dimIndex;\n return isInifinity(fromCoord[otherDimIndex]) && isInifinity(toCoord[otherDimIndex]);\n}\n\nfunction markAreaFilter(coordSys, item) {\n var fromCoord = item.coord[0];\n var toCoord = item.coord[1];\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // In case\n // {\n // markArea: {\n // data: [{ yAxis: 2 }]\n // }\n // }\n if (fromCoord && toCoord && (ifMarkAreaHasOnlyDim(1, fromCoord, toCoord, coordSys) || ifMarkAreaHasOnlyDim(0, fromCoord, toCoord, coordSys))) {\n return true;\n }\n }\n\n return markerHelper.dataFilter(coordSys, {\n coord: fromCoord,\n x: item.x0,\n y: item.y0\n }) || markerHelper.dataFilter(coordSys, {\n coord: toCoord,\n x: item.x1,\n y: item.y1\n });\n} // dims can be ['x0', 'y0'], ['x1', 'y1'], ['x0', 'y1'], ['x1', 'y0']\n\n\nfunction getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var itemModel = data.getItemModel(idx);\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n } else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(data.getValues(dims, idx));\n } else {\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n var pt = [x, y];\n coordSys.clampData && coordSys.clampData(pt, pt);\n point = coordSys.dataToPoint(pt, true);\n }\n\n if (isCoordinateSystemType(coordSys, 'cartesian2d')) {\n // TODO: TYPE ts@4.1 may still infer it as Axis instead of Axis2D. Not sure if it's a bug\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n\n if (isInifinity(x)) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n } else if (isInifinity(y)) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n }\n } // Use x, y if has any\n\n\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n return point;\n}\n\nvar dimPermutations = [['x0', 'y0'], ['x1', 'y0'], ['x1', 'y1'], ['x0', 'y1']];\n\nvar MarkAreaView =\n/** @class */\nfunction (_super) {\n __extends(MarkAreaView, _super);\n\n function MarkAreaView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = MarkAreaView.type;\n return _this;\n }\n\n MarkAreaView.prototype.updateTransform = function (markAreaModel, ecModel, api) {\n ecModel.eachSeries(function (seriesModel) {\n var maModel = MarkerModel.getMarkerModelFromSeries(seriesModel, 'markArea');\n\n if (maModel) {\n var areaData_1 = maModel.getData();\n areaData_1.each(function (idx) {\n var points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData_1, idx, dim, seriesModel, api);\n }); // Layout\n\n areaData_1.setItemLayout(idx, points);\n var el = areaData_1.getItemGraphicEl(idx);\n el.setShape('points', points);\n });\n }\n }, this);\n };\n\n MarkAreaView.prototype.renderSeries = function (seriesModel, maModel, ecModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var seriesId = seriesModel.id;\n var seriesData = seriesModel.getData();\n var areaGroupMap = this.markerGroupMap;\n var polygonGroup = areaGroupMap.get(seriesId) || areaGroupMap.set(seriesId, {\n group: new graphic.Group()\n });\n this.group.add(polygonGroup.group);\n this.markKeep(polygonGroup);\n var areaData = createList(coordSys, seriesModel, maModel); // Line data for tooltip and formatter\n\n maModel.setData(areaData); // Update visual and layout of line\n\n areaData.each(function (idx) {\n // Layout\n var points = map(dimPermutations, function (dim) {\n return getSingleMarkerEndPoint(areaData, idx, dim, seriesModel, api);\n });\n var xAxisScale = coordSys.getAxis('x').scale;\n var yAxisScale = coordSys.getAxis('y').scale;\n var xAxisExtent = xAxisScale.getExtent();\n var yAxisExtent = yAxisScale.getExtent();\n var xPointExtent = [xAxisScale.parse(areaData.get('x0', idx)), xAxisScale.parse(areaData.get('x1', idx))];\n var yPointExtent = [yAxisScale.parse(areaData.get('y0', idx)), yAxisScale.parse(areaData.get('y1', idx))];\n numberUtil.asc(xPointExtent);\n numberUtil.asc(yPointExtent);\n var overlapped = !(xAxisExtent[0] > xPointExtent[1] || xAxisExtent[1] < xPointExtent[0] || yAxisExtent[0] > yPointExtent[1] || yAxisExtent[1] < yPointExtent[0]); // If none of the area is inside coordSys, allClipped is set to be true\n // in layout so that label will not be displayed. See #12591\n\n var allClipped = !overlapped;\n areaData.setItemLayout(idx, {\n points: points,\n allClipped: allClipped\n });\n var style = areaData.getItemModel(idx).getModel('itemStyle').getItemStyle();\n var color = getVisualFromData(seriesData, 'color');\n\n if (!style.fill) {\n style.fill = color;\n\n if (typeof style.fill === 'string') {\n style.fill = colorUtil.modifyAlpha(style.fill, 0.4);\n }\n }\n\n if (!style.stroke) {\n style.stroke = color;\n } // Visual\n\n\n areaData.setItemVisual(idx, 'style', style);\n });\n areaData.diff(inner(polygonGroup).data).add(function (idx) {\n var layout = areaData.getItemLayout(idx);\n\n if (!layout.allClipped) {\n var polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n areaData.setItemGraphicEl(idx, polygon);\n polygonGroup.group.add(polygon);\n }\n }).update(function (newIdx, oldIdx) {\n var polygon = inner(polygonGroup).data.getItemGraphicEl(oldIdx);\n var layout = areaData.getItemLayout(newIdx);\n\n if (!layout.allClipped) {\n if (polygon) {\n graphic.updateProps(polygon, {\n shape: {\n points: layout.points\n }\n }, maModel, newIdx);\n } else {\n polygon = new graphic.Polygon({\n shape: {\n points: layout.points\n }\n });\n }\n\n areaData.setItemGraphicEl(newIdx, polygon);\n polygonGroup.group.add(polygon);\n } else if (polygon) {\n polygonGroup.group.remove(polygon);\n }\n }).remove(function (idx) {\n var polygon = inner(polygonGroup).data.getItemGraphicEl(idx);\n polygonGroup.group.remove(polygon);\n }).execute();\n areaData.eachItemGraphicEl(function (polygon, idx) {\n var itemModel = areaData.getItemModel(idx);\n var style = areaData.getItemVisual(idx, 'style');\n polygon.useStyle(areaData.getItemVisual(idx, 'style'));\n setLabelStyle(polygon, getLabelStatesModels(itemModel), {\n labelFetcher: maModel,\n labelDataIndex: idx,\n defaultText: areaData.getName(idx) || '',\n inheritColor: typeof style.fill === 'string' ? colorUtil.modifyAlpha(style.fill, 1) : '#000'\n });\n setStatesStylesFromModel(polygon, itemModel);\n enableHoverEmphasis(polygon);\n getECData(polygon).dataModel = maModel;\n });\n inner(polygonGroup).data = areaData;\n polygonGroup.group.silent = maModel.get('silent') || seriesModel.get('silent');\n };\n\n MarkAreaView.type = 'markArea';\n return MarkAreaView;\n}(MarkerView);\n\nfunction createList(coordSys, seriesModel, maModel) {\n var coordDimsInfos;\n var areaData;\n var dims = ['x0', 'y0', 'x1', 'y1'];\n\n if (coordSys) {\n coordDimsInfos = map(coordSys && coordSys.dimensions, function (coordDim) {\n var data = seriesModel.getData();\n var info = data.getDimensionInfo(data.mapDimension(coordDim)) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys\n\n return defaults({\n name: coordDim\n }, info);\n });\n areaData = new List(map(dims, function (dim, idx) {\n return {\n name: dim,\n type: coordDimsInfos[idx % 2].type\n };\n }), maModel);\n } else {\n coordDimsInfos = [{\n name: 'value',\n type: 'float'\n }];\n areaData = new List(coordDimsInfos, maModel);\n }\n\n var optData = map(maModel.get('data'), curry(markAreaTransform, seriesModel, coordSys, maModel));\n\n if (coordSys) {\n optData = filter(optData, curry(markAreaFilter, coordSys));\n }\n\n var dimValueGetter = coordSys ? function (item, dimName, dataIndex, dimIndex) {\n // TODO should convert to ParsedValue?\n return item.coord[Math.floor(dimIndex / 2)][dimIndex % 2];\n } : function (item) {\n return item.value;\n };\n areaData.initData(optData, null, dimValueGetter);\n areaData.hasItemOption = true;\n return areaData;\n}\n\nexport default MarkAreaView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport checkMarkerInSeries from './checkMarkerInSeries';\nimport MarkAreaModel from './MarkAreaModel';\nimport MarkAreaView from './MarkAreaView';\nexport function install(registers) {\n registers.registerComponentModel(MarkAreaModel);\n registers.registerComponentView(MarkAreaView);\n registers.registerPreprocessor(function (opt) {\n if (checkMarkerInSeries(opt.series, 'markArea')) {\n // Make sure markArea component is enabled\n opt.markArea = opt.markArea || {};\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport Model from '../../model/Model';\nimport { isNameSpecified } from '../../util/model';\nimport ComponentModel from '../../model/Component';\n\nvar getDefaultSelectorOptions = function (ecModel, type) {\n if (type === 'all') {\n return {\n type: 'all',\n title: ecModel.getLocale(['legend', 'selector', 'all'])\n };\n } else if (type === 'inverse') {\n return {\n type: 'inverse',\n title: ecModel.getLocale(['legend', 'selector', 'inverse'])\n };\n }\n};\n\nvar LegendModel =\n/** @class */\nfunction (_super) {\n __extends(LegendModel, _super);\n\n function LegendModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LegendModel.type;\n _this.layoutMode = {\n type: 'box',\n // legend.width/height are maxWidth/maxHeight actually,\n // whereas realy width/height is calculated by its content.\n // (Setting {left: 10, right: 10} does not make sense).\n // So consider the case:\n // `setOption({legend: {left: 10});`\n // then `setOption({legend: {right: 10});`\n // The previous `left` should be cleared by setting `ignoreSize`.\n ignoreSize: true\n };\n return _this;\n }\n\n LegendModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n option.selected = option.selected || {};\n\n this._updateSelector(option);\n };\n\n LegendModel.prototype.mergeOption = function (option, ecModel) {\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n this._updateSelector(option);\n };\n\n LegendModel.prototype._updateSelector = function (option) {\n var selector = option.selector;\n var ecModel = this.ecModel;\n\n if (selector === true) {\n selector = option.selector = ['all', 'inverse'];\n }\n\n if (zrUtil.isArray(selector)) {\n zrUtil.each(selector, function (item, index) {\n zrUtil.isString(item) && (item = {\n type: item\n });\n selector[index] = zrUtil.merge(item, getDefaultSelectorOptions(ecModel, item.type));\n });\n }\n };\n\n LegendModel.prototype.optionUpdated = function () {\n this._updateData(this.ecModel);\n\n var legendData = this._data; // If selectedMode is single, try to select one\n\n if (legendData[0] && this.get('selectedMode') === 'single') {\n var hasSelected = false; // If has any selected in option.selected\n\n for (var i = 0; i < legendData.length; i++) {\n var name_1 = legendData[i].get('name');\n\n if (this.isSelected(name_1)) {\n // Force to unselect others\n this.select(name_1);\n hasSelected = true;\n break;\n }\n } // Try select the first if selectedMode is single\n\n\n !hasSelected && this.select(legendData[0].get('name'));\n }\n };\n\n LegendModel.prototype._updateData = function (ecModel) {\n var potentialData = [];\n var availableNames = [];\n ecModel.eachRawSeries(function (seriesModel) {\n var seriesName = seriesModel.name;\n availableNames.push(seriesName);\n var isPotential;\n\n if (seriesModel.legendVisualProvider) {\n var provider = seriesModel.legendVisualProvider;\n var names = provider.getAllNames();\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n availableNames = availableNames.concat(names);\n }\n\n if (names.length) {\n potentialData = potentialData.concat(names);\n } else {\n isPotential = true;\n }\n } else {\n isPotential = true;\n }\n\n if (isPotential && isNameSpecified(seriesModel)) {\n potentialData.push(seriesModel.name);\n }\n });\n /**\n * @type {Array.}\n * @private\n */\n\n this._availableNames = availableNames; // If legend.data not specified in option, use availableNames as data,\n // which is convinient for user preparing option.\n\n var rawData = this.get('data') || potentialData;\n var legendData = zrUtil.map(rawData, function (dataItem) {\n // Can be string or number\n if (typeof dataItem === 'string' || typeof dataItem === 'number') {\n dataItem = {\n name: dataItem\n };\n }\n\n return new Model(dataItem, this, this.ecModel);\n }, this);\n /**\n * @type {Array.}\n * @private\n */\n\n this._data = legendData;\n };\n\n LegendModel.prototype.getData = function () {\n return this._data;\n };\n\n LegendModel.prototype.select = function (name) {\n var selected = this.option.selected;\n var selectedMode = this.get('selectedMode');\n\n if (selectedMode === 'single') {\n var data = this._data;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name')] = false;\n });\n }\n\n selected[name] = true;\n };\n\n LegendModel.prototype.unSelect = function (name) {\n if (this.get('selectedMode') !== 'single') {\n this.option.selected[name] = false;\n }\n };\n\n LegendModel.prototype.toggleSelected = function (name) {\n var selected = this.option.selected; // Default is true\n\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n\n this[selected[name] ? 'unSelect' : 'select'](name);\n };\n\n LegendModel.prototype.allSelect = function () {\n var data = this._data;\n var selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n selected[dataItem.get('name', true)] = true;\n });\n };\n\n LegendModel.prototype.inverseSelect = function () {\n var data = this._data;\n var selected = this.option.selected;\n zrUtil.each(data, function (dataItem) {\n var name = dataItem.get('name', true); // Initially, default value is true\n\n if (!selected.hasOwnProperty(name)) {\n selected[name] = true;\n }\n\n selected[name] = !selected[name];\n });\n };\n\n LegendModel.prototype.isSelected = function (name) {\n var selected = this.option.selected;\n return !(selected.hasOwnProperty(name) && !selected[name]) && zrUtil.indexOf(this._availableNames, name) >= 0;\n };\n\n LegendModel.prototype.getOrient = function () {\n return this.get('orient') === 'vertical' ? {\n index: 1,\n name: 'vertical'\n } : {\n index: 0,\n name: 'horizontal'\n };\n };\n\n LegendModel.type = 'legend.plain';\n LegendModel.dependencies = ['series'];\n LegendModel.defaultOption = {\n zlevel: 0,\n z: 4,\n show: true,\n orient: 'horizontal',\n left: 'center',\n // right: 'center',\n top: 0,\n // bottom: null,\n align: 'auto',\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n borderRadius: 0,\n borderWidth: 0,\n padding: 5,\n itemGap: 10,\n itemWidth: 25,\n itemHeight: 14,\n symbolRotate: 'inherit',\n inactiveColor: '#ccc',\n inactiveBorderColor: '#ccc',\n inactiveBorderWidth: 'auto',\n itemStyle: {\n color: 'inherit',\n opacity: 'inherit',\n decal: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0,\n borderColor: 'inherit',\n borderWidth: 'auto',\n borderCap: 'inherit',\n borderJoin: 'inherit',\n borderDashOffset: 'inherit',\n borderMiterLimit: 'inherit'\n },\n lineStyle: {\n width: 'auto',\n color: 'inherit',\n inactiveColor: '#ccc',\n inactiveWidth: 2,\n opacity: 'inherit',\n type: 'inherit',\n cap: 'inherit',\n join: 'inherit',\n dashOffset: 'inherit',\n miterLimit: 'inherit',\n shadowBlur: 0,\n shadowColor: null,\n shadowOffsetX: 0,\n shadowOffsetY: 0\n },\n textStyle: {\n color: '#333'\n },\n selectedMode: true,\n selector: false,\n selectorLabel: {\n show: true,\n borderRadius: 10,\n padding: [3, 5, 3, 5],\n fontSize: 12,\n fontFamily: ' sans-serif',\n color: '#666',\n borderWidth: 1,\n borderColor: '#666'\n },\n emphasis: {\n selectorLabel: {\n show: true,\n color: '#eee',\n backgroundColor: '#666'\n }\n },\n selectorPosition: 'auto',\n selectorItemGap: 7,\n selectorButtonGap: 10,\n tooltip: {\n show: false\n }\n };\n return LegendModel;\n}(ComponentModel);\n\nexport default LegendModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { parse, stringify } from 'zrender/lib/tool/color';\nimport * as graphic from '../../util/graphic';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { setLabelStyle, createTextStyle } from '../../label/labelStyle';\nimport { makeBackground } from '../helper/listComponent';\nimport * as layoutUtil from '../../util/layout';\nimport ComponentView from '../../view/Component';\nimport { LINE_STYLE_KEY_MAP } from '../../model/mixin/lineStyle';\nimport { ITEM_STYLE_KEY_MAP } from '../../model/mixin/itemStyle';\nimport { createSymbol } from '../../util/symbol';\nvar curry = zrUtil.curry;\nvar each = zrUtil.each;\nvar Group = graphic.Group;\n\nvar LegendView =\n/** @class */\nfunction (_super) {\n __extends(LegendView, _super);\n\n function LegendView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = LegendView.type;\n _this.newlineDisabled = false;\n return _this;\n }\n\n LegendView.prototype.init = function () {\n this.group.add(this._contentGroup = new Group());\n this.group.add(this._selectorGroup = new Group());\n this._isFirstRender = true;\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.getContentGroup = function () {\n return this._contentGroup;\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.getSelectorGroup = function () {\n return this._selectorGroup;\n };\n /**\n * @override\n */\n\n\n LegendView.prototype.render = function (legendModel, ecModel, api) {\n var isFirstRender = this._isFirstRender;\n this._isFirstRender = false;\n this.resetInner();\n\n if (!legendModel.get('show', true)) {\n return;\n }\n\n var itemAlign = legendModel.get('align');\n var orient = legendModel.get('orient');\n\n if (!itemAlign || itemAlign === 'auto') {\n itemAlign = legendModel.get('left') === 'right' && orient === 'vertical' ? 'right' : 'left';\n } // selector has been normalized to an array in model\n\n\n var selector = legendModel.get('selector', true);\n var selectorPosition = legendModel.get('selectorPosition', true);\n\n if (selector && (!selectorPosition || selectorPosition === 'auto')) {\n selectorPosition = orient === 'horizontal' ? 'end' : 'start';\n }\n\n this.renderInner(itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition); // Perform layout.\n\n var positionInfo = legendModel.getBoxLayoutParams();\n var viewportSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var padding = legendModel.get('padding');\n var maxSize = layoutUtil.getLayoutRect(positionInfo, viewportSize, padding);\n var mainRect = this.layoutInner(legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition); // Place mainGroup, based on the calculated `mainRect`.\n\n var layoutRect = layoutUtil.getLayoutRect(zrUtil.defaults({\n width: mainRect.width,\n height: mainRect.height\n }, positionInfo), viewportSize, padding);\n this.group.x = layoutRect.x - mainRect.x;\n this.group.y = layoutRect.y - mainRect.y;\n this.group.markRedraw(); // Render background after group is layout.\n\n this.group.add(this._backgroundEl = makeBackground(mainRect, legendModel));\n };\n\n LegendView.prototype.resetInner = function () {\n this.getContentGroup().removeAll();\n this._backgroundEl && this.group.remove(this._backgroundEl);\n this.getSelectorGroup().removeAll();\n };\n\n LegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {\n var contentGroup = this.getContentGroup();\n var legendDrawnMap = zrUtil.createHashMap();\n var selectMode = legendModel.get('selectedMode');\n var excludeSeriesId = [];\n ecModel.eachRawSeries(function (seriesModel) {\n !seriesModel.get('legendHoverLink') && excludeSeriesId.push(seriesModel.id);\n });\n each(legendModel.getData(), function (legendItemModel, dataIndex) {\n var name = legendItemModel.get('name'); // Use empty string or \\n as a newline string\n\n if (!this.newlineDisabled && (name === '' || name === '\\n')) {\n var g = new Group(); // @ts-ignore\n\n g.newline = true;\n contentGroup.add(g);\n return;\n } // Representitive series.\n\n\n var seriesModel = ecModel.getSeriesByName(name)[0];\n\n if (legendDrawnMap.get(name)) {\n // Have been drawed\n return;\n } // Legend to control series.\n\n\n if (seriesModel) {\n var data = seriesModel.getData();\n var lineVisualStyle = data.getVisual('legendLineStyle') || {};\n var legendIcon = data.getVisual('legendIcon');\n /**\n * `data.getVisual('style')` may be the color from the register\n * in series. For example, for line series,\n */\n\n var style = data.getVisual('style');\n\n var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, style, legendIcon, selectMode);\n\n itemGroup.on('click', curry(dispatchSelectAction, name, null, api, excludeSeriesId)).on('mouseover', curry(dispatchHighlightAction, seriesModel.name, null, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, seriesModel.name, null, api, excludeSeriesId));\n legendDrawnMap.set(name, true);\n } else {\n // Legend to control data. In pie and funnel.\n ecModel.eachRawSeries(function (seriesModel) {\n // In case multiple series has same data name\n if (legendDrawnMap.get(name)) {\n return;\n }\n\n if (seriesModel.legendVisualProvider) {\n var provider = seriesModel.legendVisualProvider;\n\n if (!provider.containName(name)) {\n return;\n }\n\n var idx = provider.indexOfName(name);\n var style = provider.getItemVisual(idx, 'style');\n var legendIcon = provider.getItemVisual(idx, 'legendIcon');\n var colorArr = parse(style.fill); // Color may be set to transparent in visualMap when data is out of range.\n // Do not show nothing.\n\n if (colorArr && colorArr[3] === 0) {\n colorArr[3] = 0.2; // TODO color is set to 0, 0, 0, 0. Should show correct RGBA\n\n style.fill = stringify(colorArr, 'rgba');\n }\n\n var itemGroup = this._createItem(seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, {}, style, legendIcon, selectMode); // FIXME: consider different series has items with the same name.\n\n\n itemGroup.on('click', curry(dispatchSelectAction, null, name, api, excludeSeriesId)) // Should not specify the series name, consider legend controls\n // more than one pie series.\n .on('mouseover', curry(dispatchHighlightAction, null, name, api, excludeSeriesId)).on('mouseout', curry(dispatchDownplayAction, null, name, api, excludeSeriesId));\n legendDrawnMap.set(name, true);\n }\n }, this);\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!legendDrawnMap.get(name)) {\n console.warn(name + ' series not exists. Legend data should be same with series name or data name.');\n }\n }\n }, this);\n\n if (selector) {\n this._createSelector(selector, legendModel, api, orient, selectorPosition);\n }\n };\n\n LegendView.prototype._createSelector = function (selector, legendModel, api, orient, selectorPosition) {\n var selectorGroup = this.getSelectorGroup();\n each(selector, function createSelectorButton(selectorItem) {\n var type = selectorItem.type;\n var labelText = new graphic.Text({\n style: {\n x: 0,\n y: 0,\n align: 'center',\n verticalAlign: 'middle'\n },\n onclick: function () {\n api.dispatchAction({\n type: type === 'all' ? 'legendAllSelect' : 'legendInverseSelect'\n });\n }\n });\n selectorGroup.add(labelText);\n var labelModel = legendModel.getModel('selectorLabel');\n var emphasisLabelModel = legendModel.getModel(['emphasis', 'selectorLabel']);\n setLabelStyle(labelText, {\n normal: labelModel,\n emphasis: emphasisLabelModel\n }, {\n defaultText: selectorItem.title\n });\n enableHoverEmphasis(labelText);\n });\n };\n\n LegendView.prototype._createItem = function (seriesModel, name, dataIndex, legendItemModel, legendModel, itemAlign, lineVisualStyle, itemVisualStyle, legendIcon, selectMode) {\n var drawType = seriesModel.visualDrawType;\n var itemWidth = legendModel.get('itemWidth');\n var itemHeight = legendModel.get('itemHeight');\n var isSelected = legendModel.isSelected(name);\n var iconRotate = legendItemModel.get('symbolRotate');\n var legendIconType = legendItemModel.get('icon');\n legendIcon = legendIconType || legendIcon || 'roundRect';\n var legendLineStyle = legendModel.getModel('lineStyle');\n var style = getLegendStyle(legendIcon, legendItemModel, legendLineStyle, lineVisualStyle, itemVisualStyle, drawType, isSelected);\n var itemGroup = new Group();\n var textStyleModel = legendItemModel.getModel('textStyle');\n\n if (typeof seriesModel.getLegendIcon === 'function' && (!legendIconType || legendIconType === 'inherit')) {\n // Series has specific way to define legend icon\n itemGroup.add(seriesModel.getLegendIcon({\n itemWidth: itemWidth,\n itemHeight: itemHeight,\n icon: legendIcon,\n iconRotate: iconRotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n } else {\n // Use default legend icon policy for most series\n var rotate = legendIconType === 'inherit' && seriesModel.getData().getVisual('symbol') ? iconRotate === 'inherit' ? seriesModel.getData().getVisual('symbolRotate') : iconRotate : 0; // No rotation for no icon\n\n itemGroup.add(getDefaultLegendIcon({\n itemWidth: itemWidth,\n itemHeight: itemHeight,\n icon: legendIcon,\n iconRotate: rotate,\n itemStyle: style.itemStyle,\n lineStyle: style.lineStyle\n }));\n }\n\n var textX = itemAlign === 'left' ? itemWidth + 5 : -5;\n var textAlign = itemAlign;\n var formatter = legendModel.get('formatter');\n var content = name;\n\n if (typeof formatter === 'string' && formatter) {\n content = formatter.replace('{name}', name != null ? name : '');\n } else if (typeof formatter === 'function') {\n content = formatter(name);\n }\n\n var inactiveColor = legendItemModel.get('inactiveColor');\n itemGroup.add(new graphic.Text({\n style: createTextStyle(textStyleModel, {\n text: content,\n x: textX,\n y: itemHeight / 2,\n fill: isSelected ? textStyleModel.getTextColor() : inactiveColor,\n align: textAlign,\n verticalAlign: 'middle'\n })\n })); // Add a invisible rect to increase the area of mouse hover\n\n var hitRect = new graphic.Rect({\n shape: itemGroup.getBoundingRect(),\n invisible: true\n });\n var tooltipModel = legendItemModel.getModel('tooltip');\n\n if (tooltipModel.get('show')) {\n graphic.setTooltipConfig({\n el: hitRect,\n componentModel: legendModel,\n itemName: name,\n itemTooltipOption: tooltipModel.option\n });\n }\n\n itemGroup.add(hitRect);\n itemGroup.eachChild(function (child) {\n child.silent = true;\n });\n hitRect.silent = !selectMode;\n this.getContentGroup().add(itemGroup);\n enableHoverEmphasis(itemGroup); // @ts-ignore\n\n itemGroup.__legendDataIndex = dataIndex;\n return itemGroup;\n };\n\n LegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {\n var contentGroup = this.getContentGroup();\n var selectorGroup = this.getSelectorGroup(); // Place items in contentGroup.\n\n layoutUtil.box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), maxSize.width, maxSize.height);\n var contentRect = contentGroup.getBoundingRect();\n var contentPos = [-contentRect.x, -contentRect.y];\n selectorGroup.markRedraw();\n contentGroup.markRedraw();\n\n if (selector) {\n // Place buttons in selectorGroup\n layoutUtil.box( // Buttons in selectorGroup always layout horizontally\n 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));\n var selectorRect = selectorGroup.getBoundingRect();\n var selectorPos = [-selectorRect.x, -selectorRect.y];\n var selectorButtonGap = legendModel.get('selectorButtonGap', true);\n var orientIdx = legendModel.getOrient().index;\n var wh = orientIdx === 0 ? 'width' : 'height';\n var hw = orientIdx === 0 ? 'height' : 'width';\n var yx = orientIdx === 0 ? 'y' : 'x';\n\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += contentRect[wh] + selectorButtonGap;\n } else {\n contentPos[orientIdx] += selectorRect[wh] + selectorButtonGap;\n } //Always align selector to content as 'middle'\n\n\n selectorPos[1 - orientIdx] += contentRect[hw] / 2 - selectorRect[hw] / 2;\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n var mainRect = {\n x: 0,\n y: 0\n };\n mainRect[wh] = contentRect[wh] + selectorButtonGap + selectorRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(0, selectorRect[yx] + selectorPos[1 - orientIdx]);\n return mainRect;\n } else {\n contentGroup.x = contentPos[0];\n contentGroup.y = contentPos[1];\n return this.group.getBoundingRect();\n }\n };\n /**\n * @protected\n */\n\n\n LegendView.prototype.remove = function () {\n this.getContentGroup().removeAll();\n this._isFirstRender = true;\n };\n\n LegendView.type = 'legend.plain';\n return LegendView;\n}(ComponentView);\n\nfunction getLegendStyle(iconType, legendModel, legendLineStyle, lineVisualStyle, itemVisualStyle, drawType, isSelected) {\n /**\n * Use series style if is inherit;\n * elsewise, use legend style\n */\n // itemStyle\n var legendItemModel = legendModel.getModel('itemStyle');\n var itemProperties = ITEM_STYLE_KEY_MAP.concat([['decal']]);\n var itemStyle = {};\n\n for (var i = 0; i < itemProperties.length; ++i) {\n var propName = itemProperties[i][itemProperties[i].length - 1];\n var visualName = itemProperties[i][0];\n var value = legendItemModel.getShallow(propName);\n\n if (value === 'inherit') {\n switch (visualName) {\n case 'fill':\n /**\n * Series with visualDrawType as 'stroke' should have\n * series stroke as legend fill\n */\n itemStyle.fill = itemVisualStyle[drawType];\n break;\n\n case 'stroke':\n /**\n * icon type with \"emptyXXX\" should use fill color\n * in visual style\n */\n itemStyle.stroke = itemVisualStyle[iconType.lastIndexOf('empty', 0) === 0 ? 'fill' : 'stroke'];\n break;\n\n case 'opacity':\n /**\n * Use lineStyle.opacity if drawType is stroke\n */\n itemStyle.opacity = (drawType === 'fill' ? itemVisualStyle : lineVisualStyle).opacity;\n break;\n\n default:\n itemStyle[visualName] = itemVisualStyle[visualName];\n }\n } else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n itemStyle.lineWidth = itemVisualStyle.lineWidth > 0 ? 2 : 0;\n } else {\n itemStyle[visualName] = value;\n }\n } // lineStyle\n\n\n var legendLineModel = legendModel.getModel('lineStyle');\n var lineProperties = LINE_STYLE_KEY_MAP.concat([['inactiveColor'], ['inactiveWidth']]);\n var lineStyle = {};\n\n for (var i = 0; i < lineProperties.length; ++i) {\n var propName = lineProperties[i][1];\n var visualName = lineProperties[i][0];\n var value = legendLineModel.getShallow(propName);\n\n if (value === 'inherit') {\n lineStyle[visualName] = lineVisualStyle[visualName];\n } else if (value === 'auto' && visualName === 'lineWidth') {\n // If lineStyle.width is 'auto', it is set to be 2 if series has border\n lineStyle.lineWidth = lineVisualStyle.lineWidth > 0 ? 2 : 0;\n } else {\n lineStyle[visualName] = value;\n }\n } // Fix auto color to real color\n\n\n itemStyle.fill === 'auto' && (itemStyle.fill = itemVisualStyle.fill);\n itemStyle.stroke === 'auto' && (itemStyle.stroke = itemVisualStyle.fill);\n lineStyle.stroke === 'auto' && (lineStyle.stroke = itemVisualStyle.fill);\n\n if (!isSelected) {\n var borderWidth = legendModel.get('inactiveBorderWidth');\n /**\n * Since stroke is set to be inactiveBorderColor, it may occur that\n * there is no border in series but border in legend, so we need to\n * use border only when series has border if is set to be auto\n */\n\n var visualHasBorder = itemStyle[iconType.indexOf('empty') > -1 ? 'fill' : 'stroke'];\n itemStyle.lineWidth = borderWidth === 'auto' ? itemVisualStyle.lineWidth > 0 && visualHasBorder ? 2 : 0 : itemStyle.lineWidth;\n itemStyle.fill = legendModel.get('inactiveColor');\n itemStyle.stroke = legendModel.get('inactiveBorderColor');\n lineStyle.stroke = legendLineStyle.get('inactiveColor');\n lineStyle.lineWidth = legendLineStyle.get('inactiveWidth');\n }\n\n return {\n itemStyle: itemStyle,\n lineStyle: lineStyle\n };\n}\n\nfunction getDefaultLegendIcon(opt) {\n var symboType = opt.icon || 'roundRect';\n var icon = createSymbol(symboType, 0, 0, opt.itemWidth, opt.itemHeight, opt.itemStyle.fill);\n icon.setStyle(opt.itemStyle);\n icon.rotation = (opt.iconRotate || 0) * Math.PI / 180;\n icon.setOrigin([opt.itemWidth / 2, opt.itemHeight / 2]);\n\n if (symboType.indexOf('empty') > -1) {\n icon.style.stroke = icon.style.fill;\n icon.style.fill = '#fff';\n icon.style.lineWidth = 2;\n }\n\n return icon;\n}\n\nfunction dispatchSelectAction(seriesName, dataName, api, excludeSeriesId) {\n // downplay before unselect\n dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId);\n api.dispatchAction({\n type: 'legendToggleSelect',\n name: seriesName != null ? seriesName : dataName\n }); // highlight after select\n // TODO higlight immediately may cause animation loss.\n\n dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId);\n}\n\nfunction isUseHoverLayer(api) {\n var list = api.getZr().storage.getDisplayList();\n var emphasisState;\n var i = 0;\n var len = list.length;\n\n while (i < len && !(emphasisState = list[i].states.emphasis)) {\n i++;\n }\n\n return emphasisState && emphasisState.hoverLayer;\n}\n\nfunction dispatchHighlightAction(seriesName, dataName, api, excludeSeriesId) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'highlight',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nfunction dispatchDownplayAction(seriesName, dataName, api, excludeSeriesId) {\n // If element hover will move to a hoverLayer.\n if (!isUseHoverLayer(api)) {\n api.dispatchAction({\n type: 'downplay',\n seriesName: seriesName,\n name: dataName,\n excludeSeriesId: excludeSeriesId\n });\n }\n}\n\nexport default LegendView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function legendFilter(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport { curry, each } from 'zrender/lib/core/util';\n\nfunction legendSelectActionHandler(methodName, payload, ecModel) {\n var selectedMap = {};\n var isToggleSelect = methodName === 'toggleSelected';\n var isSelected; // Update all legend components\n\n ecModel.eachComponent('legend', function (legendModel) {\n if (isToggleSelect && isSelected != null) {\n // Force other legend has same selected status\n // Or the first is toggled to true and other are toggled to false\n // In the case one legend has some item unSelected in option. And if other legend\n // doesn't has the item, they will assume it is selected.\n legendModel[isSelected ? 'select' : 'unSelect'](payload.name);\n } else if (methodName === 'allSelect' || methodName === 'inverseSelect') {\n legendModel[methodName]();\n } else {\n legendModel[methodName](payload.name);\n isSelected = legendModel.isSelected(payload.name);\n }\n\n var legendData = legendModel.getData();\n each(legendData, function (model) {\n var name = model.get('name'); // Wrap element\n\n if (name === '\\n' || name === '') {\n return;\n }\n\n var isItemSelected = legendModel.isSelected(name);\n\n if (selectedMap.hasOwnProperty(name)) {\n // Unselected if any legend is unselected\n selectedMap[name] = selectedMap[name] && isItemSelected;\n } else {\n selectedMap[name] = isItemSelected;\n }\n });\n }); // Return the event explicitly\n\n return methodName === 'allSelect' || methodName === 'inverseSelect' ? {\n selected: selectedMap\n } : {\n name: payload.name,\n selected: selectedMap\n };\n}\n\nexport function installLegendAction(registers) {\n /**\n * @event legendToggleSelect\n * @type {Object}\n * @property {string} type 'legendToggleSelect'\n * @property {string} [from]\n * @property {string} name Series name or data item name\n */\n registers.registerAction('legendToggleSelect', 'legendselectchanged', curry(legendSelectActionHandler, 'toggleSelected'));\n registers.registerAction('legendAllSelect', 'legendselectall', curry(legendSelectActionHandler, 'allSelect'));\n registers.registerAction('legendInverseSelect', 'legendinverseselect', curry(legendSelectActionHandler, 'inverseSelect'));\n /**\n * @event legendSelect\n * @type {Object}\n * @property {string} type 'legendSelect'\n * @property {string} name Series name or data item name\n */\n\n registers.registerAction('legendSelect', 'legendselected', curry(legendSelectActionHandler, 'select'));\n /**\n * @event legendUnSelect\n * @type {Object}\n * @property {string} type 'legendUnSelect'\n * @property {string} name Series name or data item name\n */\n\n registers.registerAction('legendUnSelect', 'legendunselected', curry(legendSelectActionHandler, 'unSelect'));\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport LegendModel from './LegendModel';\nimport LegendView from './LegendView';\nimport legendFilter from './legendFilter';\nimport { installLegendAction } from './legendAction';\nexport function install(registers) {\n registers.registerComponentModel(LegendModel);\n registers.registerComponentView(LegendView);\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);\n registers.registerSubTypeDefaulter('legend', function () {\n return 'plain';\n });\n installLegendAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport LegendModel from './LegendModel';\nimport { mergeLayoutParam, getLayoutParams } from '../../util/layout';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar ScrollableLegendModel =\n/** @class */\nfunction (_super) {\n __extends(ScrollableLegendModel, _super);\n\n function ScrollableLegendModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScrollableLegendModel.type;\n return _this;\n }\n /**\n * @param {number} scrollDataIndex\n */\n\n\n ScrollableLegendModel.prototype.setScrollDataIndex = function (scrollDataIndex) {\n this.option.scrollDataIndex = scrollDataIndex;\n };\n\n ScrollableLegendModel.prototype.init = function (option, parentModel, ecModel) {\n var inputPositionParams = getLayoutParams(option);\n\n _super.prototype.init.call(this, option, parentModel, ecModel);\n\n mergeAndNormalizeLayoutParams(this, option, inputPositionParams);\n };\n /**\n * @override\n */\n\n\n ScrollableLegendModel.prototype.mergeOption = function (option, ecModel) {\n _super.prototype.mergeOption.call(this, option, ecModel);\n\n mergeAndNormalizeLayoutParams(this, this.option, option);\n };\n\n ScrollableLegendModel.type = 'legend.scroll';\n ScrollableLegendModel.defaultOption = inheritDefaultOption(LegendModel.defaultOption, {\n scrollDataIndex: 0,\n pageButtonItemGap: 5,\n pageButtonGap: null,\n pageButtonPosition: 'end',\n pageFormatter: '{current}/{total}',\n pageIcons: {\n horizontal: ['M0,0L12,-10L12,10z', 'M0,0L-12,-10L-12,10z'],\n vertical: ['M0,0L20,0L10,-20z', 'M0,0L20,0L10,20z']\n },\n pageIconColor: '#2f4554',\n pageIconInactiveColor: '#aaa',\n pageIconSize: 15,\n pageTextStyle: {\n color: '#333'\n },\n animationDurationUpdate: 800\n });\n return ScrollableLegendModel;\n}(LegendModel);\n\n; // Do not `ignoreSize` to enable setting {left: 10, right: 10}.\n\nfunction mergeAndNormalizeLayoutParams(legendModel, target, raw) {\n var orient = legendModel.getOrient();\n var ignoreSize = [1, 1];\n ignoreSize[orient.index] = 0;\n mergeLayoutParam(target, raw, {\n type: 'box',\n ignoreSize: !!ignoreSize\n });\n}\n\nexport default ScrollableLegendModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * Separate legend and scrollable legend to reduce package size.\n */\n\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as graphic from '../../util/graphic';\nimport * as layoutUtil from '../../util/layout';\nimport LegendView from './LegendView';\nvar Group = graphic.Group;\nvar WH = ['width', 'height'];\nvar XY = ['x', 'y'];\n\nvar ScrollableLegendView =\n/** @class */\nfunction (_super) {\n __extends(ScrollableLegendView, _super);\n\n function ScrollableLegendView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScrollableLegendView.type;\n _this.newlineDisabled = true;\n _this._currentIndex = 0;\n return _this;\n }\n\n ScrollableLegendView.prototype.init = function () {\n _super.prototype.init.call(this);\n\n this.group.add(this._containerGroup = new Group());\n\n this._containerGroup.add(this.getContentGroup());\n\n this.group.add(this._controllerGroup = new Group());\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.resetInner = function () {\n _super.prototype.resetInner.call(this);\n\n this._controllerGroup.removeAll();\n\n this._containerGroup.removeClipPath();\n\n this._containerGroup.__rectSize = null;\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.renderInner = function (itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition) {\n var self = this; // Render content items.\n\n _super.prototype.renderInner.call(this, itemAlign, legendModel, ecModel, api, selector, orient, selectorPosition);\n\n var controllerGroup = this._controllerGroup; // FIXME: support be 'auto' adapt to size number text length,\n // e.g., '3/12345' should not overlap with the control arrow button.\n\n var pageIconSize = legendModel.get('pageIconSize', true);\n var pageIconSizeArr = zrUtil.isArray(pageIconSize) ? pageIconSize : [pageIconSize, pageIconSize];\n createPageButton('pagePrev', 0);\n var pageTextStyleModel = legendModel.getModel('pageTextStyle');\n controllerGroup.add(new graphic.Text({\n name: 'pageText',\n style: {\n // Placeholder to calculate a proper layout.\n text: 'xx/xx',\n fill: pageTextStyleModel.getTextColor(),\n font: pageTextStyleModel.getFont(),\n verticalAlign: 'middle',\n align: 'center'\n },\n silent: true\n }));\n createPageButton('pageNext', 1);\n\n function createPageButton(name, iconIdx) {\n var pageDataIndexName = name + 'DataIndex';\n var icon = graphic.createIcon(legendModel.get('pageIcons', true)[legendModel.getOrient().name][iconIdx], {\n // Buttons will be created in each render, so we do not need\n // to worry about avoiding using legendModel kept in scope.\n onclick: zrUtil.bind(self._pageGo, self, pageDataIndexName, legendModel, api)\n }, {\n x: -pageIconSizeArr[0] / 2,\n y: -pageIconSizeArr[1] / 2,\n width: pageIconSizeArr[0],\n height: pageIconSizeArr[1]\n });\n icon.name = name;\n controllerGroup.add(icon);\n }\n };\n /**\n * @override\n */\n\n\n ScrollableLegendView.prototype.layoutInner = function (legendModel, itemAlign, maxSize, isFirstRender, selector, selectorPosition) {\n var selectorGroup = this.getSelectorGroup();\n var orientIdx = legendModel.getOrient().index;\n var wh = WH[orientIdx];\n var xy = XY[orientIdx];\n var hw = WH[1 - orientIdx];\n var yx = XY[1 - orientIdx];\n selector && layoutUtil.box( // Buttons in selectorGroup always layout horizontally\n 'horizontal', selectorGroup, legendModel.get('selectorItemGap', true));\n var selectorButtonGap = legendModel.get('selectorButtonGap', true);\n var selectorRect = selectorGroup.getBoundingRect();\n var selectorPos = [-selectorRect.x, -selectorRect.y];\n var processMaxSize = zrUtil.clone(maxSize);\n selector && (processMaxSize[wh] = maxSize[wh] - selectorRect[wh] - selectorButtonGap);\n\n var mainRect = this._layoutContentAndController(legendModel, isFirstRender, processMaxSize, orientIdx, wh, hw, yx, xy);\n\n if (selector) {\n if (selectorPosition === 'end') {\n selectorPos[orientIdx] += mainRect[wh] + selectorButtonGap;\n } else {\n var offset = selectorRect[wh] + selectorButtonGap;\n selectorPos[orientIdx] -= offset;\n mainRect[xy] -= offset;\n }\n\n mainRect[wh] += selectorRect[wh] + selectorButtonGap;\n selectorPos[1 - orientIdx] += mainRect[yx] + mainRect[hw] / 2 - selectorRect[hw] / 2;\n mainRect[hw] = Math.max(mainRect[hw], selectorRect[hw]);\n mainRect[yx] = Math.min(mainRect[yx], selectorRect[yx] + selectorPos[1 - orientIdx]);\n selectorGroup.x = selectorPos[0];\n selectorGroup.y = selectorPos[1];\n selectorGroup.markRedraw();\n }\n\n return mainRect;\n };\n\n ScrollableLegendView.prototype._layoutContentAndController = function (legendModel, isFirstRender, maxSize, orientIdx, wh, hw, yx, xy) {\n var contentGroup = this.getContentGroup();\n var containerGroup = this._containerGroup;\n var controllerGroup = this._controllerGroup; // Place items in contentGroup.\n\n layoutUtil.box(legendModel.get('orient'), contentGroup, legendModel.get('itemGap'), !orientIdx ? null : maxSize.width, orientIdx ? null : maxSize.height);\n layoutUtil.box( // Buttons in controller are layout always horizontally.\n 'horizontal', controllerGroup, legendModel.get('pageButtonItemGap', true));\n var contentRect = contentGroup.getBoundingRect();\n var controllerRect = controllerGroup.getBoundingRect();\n var showController = this._showController = contentRect[wh] > maxSize[wh]; // In case that the inner elements of contentGroup layout do not based on [0, 0]\n\n var contentPos = [-contentRect.x, -contentRect.y]; // Remain contentPos when scroll animation perfroming.\n // If first rendering, `contentGroup.position` is [0, 0], which\n // does not make sense and may cause unexepcted animation if adopted.\n\n if (!isFirstRender) {\n contentPos[orientIdx] = contentGroup[xy];\n } // Layout container group based on 0.\n\n\n var containerPos = [0, 0];\n var controllerPos = [-controllerRect.x, -controllerRect.y];\n var pageButtonGap = zrUtil.retrieve2(legendModel.get('pageButtonGap', true), legendModel.get('itemGap', true)); // Place containerGroup and controllerGroup and contentGroup.\n\n if (showController) {\n var pageButtonPosition = legendModel.get('pageButtonPosition', true); // controller is on the right / bottom.\n\n if (pageButtonPosition === 'end') {\n controllerPos[orientIdx] += maxSize[wh] - controllerRect[wh];\n } // controller is on the left / top.\n else {\n containerPos[orientIdx] += controllerRect[wh] + pageButtonGap;\n }\n } // Always align controller to content as 'middle'.\n\n\n controllerPos[1 - orientIdx] += contentRect[hw] / 2 - controllerRect[hw] / 2;\n contentGroup.setPosition(contentPos);\n containerGroup.setPosition(containerPos);\n controllerGroup.setPosition(controllerPos); // Calculate `mainRect` and set `clipPath`.\n // mainRect should not be calculated by `this.group.getBoundingRect()`\n // for sake of the overflow.\n\n var mainRect = {\n x: 0,\n y: 0\n }; // Consider content may be overflow (should be clipped).\n\n mainRect[wh] = showController ? maxSize[wh] : contentRect[wh];\n mainRect[hw] = Math.max(contentRect[hw], controllerRect[hw]); // `containerRect[yx] + containerPos[1 - orientIdx]` is 0.\n\n mainRect[yx] = Math.min(0, controllerRect[yx] + controllerPos[1 - orientIdx]);\n containerGroup.__rectSize = maxSize[wh];\n\n if (showController) {\n var clipShape = {\n x: 0,\n y: 0\n };\n clipShape[wh] = Math.max(maxSize[wh] - controllerRect[wh] - pageButtonGap, 0);\n clipShape[hw] = mainRect[hw];\n containerGroup.setClipPath(new graphic.Rect({\n shape: clipShape\n })); // Consider content may be larger than container, container rect\n // can not be obtained from `containerGroup.getBoundingRect()`.\n\n containerGroup.__rectSize = clipShape[wh];\n } else {\n // Do not remove or ignore controller. Keep them set as placeholders.\n controllerGroup.eachChild(function (child) {\n child.attr({\n invisible: true,\n silent: true\n });\n });\n } // Content translate animation.\n\n\n var pageInfo = this._getPageInfo(legendModel);\n\n pageInfo.pageIndex != null && graphic.updateProps(contentGroup, {\n x: pageInfo.contentPosition[0],\n y: pageInfo.contentPosition[1]\n }, // When switch from \"show controller\" to \"not show controller\", view should be\n // updated immediately without animation, otherwise causes weird effect.\n showController ? legendModel : null);\n\n this._updatePageInfoView(legendModel, pageInfo);\n\n return mainRect;\n };\n\n ScrollableLegendView.prototype._pageGo = function (to, legendModel, api) {\n var scrollDataIndex = this._getPageInfo(legendModel)[to];\n\n scrollDataIndex != null && api.dispatchAction({\n type: 'legendScroll',\n scrollDataIndex: scrollDataIndex,\n legendId: legendModel.id\n });\n };\n\n ScrollableLegendView.prototype._updatePageInfoView = function (legendModel, pageInfo) {\n var controllerGroup = this._controllerGroup;\n zrUtil.each(['pagePrev', 'pageNext'], function (name) {\n var key = name + 'DataIndex';\n var canJump = pageInfo[key] != null;\n var icon = controllerGroup.childOfName(name);\n\n if (icon) {\n icon.setStyle('fill', canJump ? legendModel.get('pageIconColor', true) : legendModel.get('pageIconInactiveColor', true));\n icon.cursor = canJump ? 'pointer' : 'default';\n }\n });\n var pageText = controllerGroup.childOfName('pageText');\n var pageFormatter = legendModel.get('pageFormatter');\n var pageIndex = pageInfo.pageIndex;\n var current = pageIndex != null ? pageIndex + 1 : 0;\n var total = pageInfo.pageCount;\n pageText && pageFormatter && pageText.setStyle('text', zrUtil.isString(pageFormatter) ? pageFormatter.replace('{current}', current == null ? '' : current + '').replace('{total}', total == null ? '' : total + '') : pageFormatter({\n current: current,\n total: total\n }));\n };\n /**\n * contentPosition: Array., null when data item not found.\n * pageIndex: number, null when data item not found.\n * pageCount: number, always be a number, can be 0.\n * pagePrevDataIndex: number, null when no previous page.\n * pageNextDataIndex: number, null when no next page.\n * }\n */\n\n\n ScrollableLegendView.prototype._getPageInfo = function (legendModel) {\n var scrollDataIndex = legendModel.get('scrollDataIndex', true);\n var contentGroup = this.getContentGroup();\n var containerRectSize = this._containerGroup.__rectSize;\n var orientIdx = legendModel.getOrient().index;\n var wh = WH[orientIdx];\n var xy = XY[orientIdx];\n\n var targetItemIndex = this._findTargetItemIndex(scrollDataIndex);\n\n var children = contentGroup.children();\n var targetItem = children[targetItemIndex];\n var itemCount = children.length;\n var pCount = !itemCount ? 0 : 1;\n var result = {\n contentPosition: [contentGroup.x, contentGroup.y],\n pageCount: pCount,\n pageIndex: pCount - 1,\n pagePrevDataIndex: null,\n pageNextDataIndex: null\n };\n\n if (!targetItem) {\n return result;\n }\n\n var targetItemInfo = getItemInfo(targetItem);\n result.contentPosition[orientIdx] = -targetItemInfo.s; // Strategy:\n // (1) Always align based on the left/top most item.\n // (2) It is user-friendly that the last item shown in the\n // current window is shown at the begining of next window.\n // Otherwise if half of the last item is cut by the window,\n // it will have no chance to display entirely.\n // (3) Consider that item size probably be different, we\n // have calculate pageIndex by size rather than item index,\n // and we can not get page index directly by division.\n // (4) The window is to narrow to contain more than\n // one item, we should make sure that the page can be fliped.\n\n for (var i = targetItemIndex + 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i <= itemCount; ++i) {\n currItemInfo = getItemInfo(children[i]);\n\n if ( // Half of the last item is out of the window.\n !currItemInfo && winEndItemInfo.e > winStartItemInfo.s + containerRectSize || // If the current item does not intersect with the window, the new page\n // can be started at the current item or the last item.\n currItemInfo && !intersect(currItemInfo, winStartItemInfo.s)) {\n if (winEndItemInfo.i > winStartItemInfo.i) {\n winStartItemInfo = winEndItemInfo;\n } else {\n // e.g., when page size is smaller than item size.\n winStartItemInfo = currItemInfo;\n }\n\n if (winStartItemInfo) {\n if (result.pageNextDataIndex == null) {\n result.pageNextDataIndex = winStartItemInfo.i;\n }\n\n ++result.pageCount;\n }\n }\n\n winEndItemInfo = currItemInfo;\n }\n\n for (var i = targetItemIndex - 1, winStartItemInfo = targetItemInfo, winEndItemInfo = targetItemInfo, currItemInfo = null; i >= -1; --i) {\n currItemInfo = getItemInfo(children[i]);\n\n if ( // If the the end item does not intersect with the window started\n // from the current item, a page can be settled.\n (!currItemInfo || !intersect(winEndItemInfo, currItemInfo.s)) && // e.g., when page size is smaller than item size.\n winStartItemInfo.i < winEndItemInfo.i) {\n winEndItemInfo = winStartItemInfo;\n\n if (result.pagePrevDataIndex == null) {\n result.pagePrevDataIndex = winStartItemInfo.i;\n }\n\n ++result.pageCount;\n ++result.pageIndex;\n }\n\n winStartItemInfo = currItemInfo;\n }\n\n return result;\n\n function getItemInfo(el) {\n if (el) {\n var itemRect = el.getBoundingRect();\n var start = itemRect[xy] + el[xy];\n return {\n s: start,\n e: start + itemRect[wh],\n i: el.__legendDataIndex\n };\n }\n }\n\n function intersect(itemInfo, winStart) {\n return itemInfo.e >= winStart && itemInfo.s <= winStart + containerRectSize;\n }\n };\n\n ScrollableLegendView.prototype._findTargetItemIndex = function (targetDataIndex) {\n if (!this._showController) {\n return 0;\n }\n\n var index;\n var contentGroup = this.getContentGroup();\n var defaultIndex;\n contentGroup.eachChild(function (child, idx) {\n var legendDataIdx = child.__legendDataIndex; // FIXME\n // If the given targetDataIndex (from model) is illegal,\n // we use defaultIndex. But the index on the legend model and\n // action payload is still illegal. That case will not be\n // changed until some scenario requires.\n\n if (defaultIndex == null && legendDataIdx != null) {\n defaultIndex = idx;\n }\n\n if (legendDataIdx === targetDataIndex) {\n index = idx;\n }\n });\n return index != null ? index : defaultIndex;\n };\n\n ScrollableLegendView.type = 'legend.scroll';\n return ScrollableLegendView;\n}(LegendView);\n\nexport default ScrollableLegendView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function installScrollableLegendAction(registers) {\n /**\n * @event legendScroll\n * @type {Object}\n * @property {string} type 'legendScroll'\n * @property {string} scrollDataIndex\n */\n registers.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) {\n var scrollDataIndex = payload.scrollDataIndex;\n scrollDataIndex != null && ecModel.eachComponent({\n mainType: 'legend',\n subType: 'scroll',\n query: payload\n }, function (legendModel) {\n legendModel.setScrollDataIndex(scrollDataIndex);\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installLegendPlain } from './installLegendPlain';\nimport ScrollableLegendModel from './ScrollableLegendModel';\nimport ScrollableLegendView from './ScrollableLegendView';\nimport installScrollableLegendAction from './scrollableLegendAction';\nexport function install(registers) {\n use(installLegendPlain);\n registers.registerComponentModel(ScrollableLegendModel);\n registers.registerComponentView(ScrollableLegendView);\n installScrollableLegendAction(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installLegendPlain } from './installLegendPlain';\nimport { install as installLegendScroll } from './installLegendScroll';\nexport function install(registers) {\n use(installLegendPlain);\n use(installLegendScroll);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar InsideZoomModel =\n/** @class */\nfunction (_super) {\n __extends(InsideZoomModel, _super);\n\n function InsideZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = InsideZoomModel.type;\n return _this;\n }\n\n InsideZoomModel.type = 'dataZoom.inside';\n InsideZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n disabled: false,\n zoomLock: false,\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: false,\n preventDefaultMouseMove: true\n });\n return InsideZoomModel;\n}(DataZoomModel);\n\nexport default InsideZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// Only create one roam controller for each coordinate system.\n// one roam controller might be refered by two inside data zoom\n// components (for example, one for x and one for y). When user\n// pan or zoom, only dispatch one action for those data zoom\n// components.\nimport RoamController from '../../component/helper/RoamController';\nimport * as throttleUtil from '../../util/throttle';\nimport { makeInner } from '../../util/model';\nimport { each, curry, createHashMap } from 'zrender/lib/core/util';\nimport { collectReferCoordSysModelInfo } from './helper';\nvar inner = makeInner();\nexport function setViewInfoToCoordSysRecord(api, dataZoomModel, getRange) {\n inner(api).coordSysRecordMap.each(function (coordSysRecord) {\n var dzInfo = coordSysRecord.dataZoomInfoMap.get(dataZoomModel.uid);\n\n if (dzInfo) {\n dzInfo.getRange = getRange;\n }\n });\n}\nexport function disposeCoordSysRecordIfNeeded(api, dataZoomModel) {\n var coordSysRecordMap = inner(api).coordSysRecordMap;\n var coordSysKeyArr = coordSysRecordMap.keys();\n\n for (var i = 0; i < coordSysKeyArr.length; i++) {\n var coordSysKey = coordSysKeyArr[i];\n var coordSysRecord = coordSysRecordMap.get(coordSysKey);\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n var dzUid = dataZoomModel.uid;\n var dzInfo = dataZoomInfoMap.get(dzUid);\n\n if (dzInfo) {\n dataZoomInfoMap.removeKey(dzUid);\n\n if (!dataZoomInfoMap.keys().length) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n }\n }\n }\n }\n}\n\nfunction disposeCoordSysRecord(coordSysRecordMap, coordSysRecord) {\n if (coordSysRecord) {\n coordSysRecordMap.removeKey(coordSysRecord.model.uid);\n var controller = coordSysRecord.controller;\n controller && controller.dispose();\n }\n}\n\nfunction createCoordSysRecord(api, coordSysModel) {\n // These init props will never change after record created.\n var coordSysRecord = {\n model: coordSysModel,\n containsPoint: curry(containsPoint, coordSysModel),\n dispatchAction: curry(dispatchAction, api),\n dataZoomInfoMap: null,\n controller: null\n }; // Must not do anything depends on coordSysRecord outside the event handler here,\n // because coordSysRecord not completed yet.\n\n var controller = coordSysRecord.controller = new RoamController(api.getZr());\n each(['pan', 'zoom', 'scrollMove'], function (eventName) {\n controller.on(eventName, function (event) {\n var batch = [];\n coordSysRecord.dataZoomInfoMap.each(function (dzInfo) {\n // Check whether the behaviors (zoomOnMouseWheel, moveOnMouseMove,\n // moveOnMouseWheel, ...) enabled.\n if (!event.isAvailableBehavior(dzInfo.model.option)) {\n return;\n }\n\n var method = (dzInfo.getRange || {})[eventName];\n var range = method && method(dzInfo.dzReferCoordSysInfo, coordSysRecord.model.mainType, coordSysRecord.controller, event);\n !dzInfo.model.get('disabled', true) && range && batch.push({\n dataZoomId: dzInfo.model.id,\n start: range[0],\n end: range[1]\n });\n });\n batch.length && coordSysRecord.dispatchAction(batch);\n });\n });\n return coordSysRecord;\n}\n/**\n * This action will be throttled.\n */\n\n\nfunction dispatchAction(api, batch) {\n api.dispatchAction({\n type: 'dataZoom',\n animation: {\n easing: 'cubicOut',\n duration: 100\n },\n batch: batch\n });\n}\n\nfunction containsPoint(coordSysModel, e, x, y) {\n return coordSysModel.coordinateSystem.containPoint([x, y]);\n}\n/**\n * Merge roamController settings when multiple dataZooms share one roamController.\n */\n\n\nfunction mergeControllerParams(dataZoomInfoMap) {\n var controlType; // DO NOT use reserved word (true, false, undefined) as key literally. Even if encapsulated\n // as string, it is probably revert to reserved word by compress tool. See #7411.\n\n var prefix = 'type_';\n var typePriority = {\n 'type_true': 2,\n 'type_move': 1,\n 'type_false': 0,\n 'type_undefined': -1\n };\n var preventDefaultMouseMove = true;\n dataZoomInfoMap.each(function (dataZoomInfo) {\n var dataZoomModel = dataZoomInfo.model;\n var oneType = dataZoomModel.get('disabled', true) ? false : dataZoomModel.get('zoomLock', true) ? 'move' : true;\n\n if (typePriority[prefix + oneType] > typePriority[prefix + controlType]) {\n controlType = oneType;\n } // Prevent default move event by default. If one false, do not prevent. Otherwise\n // users may be confused why it does not work when multiple insideZooms exist.\n\n\n preventDefaultMouseMove = preventDefaultMouseMove && dataZoomModel.get('preventDefaultMouseMove', true);\n });\n return {\n controlType: controlType,\n opt: {\n // RoamController will enable all of these functionalities,\n // and the final behavior is determined by its event listener\n // provided by each inside zoom.\n zoomOnMouseWheel: true,\n moveOnMouseMove: true,\n moveOnMouseWheel: true,\n preventDefaultMouseMove: !!preventDefaultMouseMove\n }\n };\n}\n\nexport function installDataZoomRoamProcessor(registers) {\n registers.registerProcessor(registers.PRIORITY.PROCESSOR.FILTER, function (ecModel, api) {\n var apiInner = inner(api);\n var coordSysRecordMap = apiInner.coordSysRecordMap || (apiInner.coordSysRecordMap = createHashMap());\n coordSysRecordMap.each(function (coordSysRecord) {\n // `coordSysRecordMap` always exists (becuase it hold the `roam controller`, which should\n // better not re-create each time), but clear `dataZoomInfoMap` each round of the workflow.\n coordSysRecord.dataZoomInfoMap = null;\n });\n ecModel.eachComponent({\n mainType: 'dataZoom',\n subType: 'inside'\n }, function (dataZoomModel) {\n var dzReferCoordSysWrap = collectReferCoordSysModelInfo(dataZoomModel);\n each(dzReferCoordSysWrap.infoList, function (dzCoordSysInfo) {\n var coordSysUid = dzCoordSysInfo.model.uid;\n var coordSysRecord = coordSysRecordMap.get(coordSysUid) || coordSysRecordMap.set(coordSysUid, createCoordSysRecord(api, dzCoordSysInfo.model));\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap || (coordSysRecord.dataZoomInfoMap = createHashMap()); // Notice these props might be changed each time for a single dataZoomModel.\n\n dataZoomInfoMap.set(dataZoomModel.uid, {\n dzReferCoordSysInfo: dzCoordSysInfo,\n model: dataZoomModel,\n getRange: null\n });\n });\n }); // (1) Merge dataZoom settings for each coord sys and set to the roam controller.\n // (2) Clear coord sys if not refered by any dataZoom.\n\n coordSysRecordMap.each(function (coordSysRecord) {\n var controller = coordSysRecord.controller;\n var firstDzInfo;\n var dataZoomInfoMap = coordSysRecord.dataZoomInfoMap;\n\n if (dataZoomInfoMap) {\n var firstDzKey = dataZoomInfoMap.keys()[0];\n\n if (firstDzKey != null) {\n firstDzInfo = dataZoomInfoMap.get(firstDzKey);\n }\n }\n\n if (!firstDzInfo) {\n disposeCoordSysRecord(coordSysRecordMap, coordSysRecord);\n return;\n }\n\n var controllerParams = mergeControllerParams(dataZoomInfoMap);\n controller.enable(controllerParams.controlType, controllerParams.opt);\n controller.setPointerChecker(coordSysRecord.containsPoint);\n throttleUtil.createOrUpdate(coordSysRecord, 'dispatchAction', firstDzInfo.model.get('throttle', true), 'fixRate');\n });\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomView from './DataZoomView';\nimport sliderMove from '../helper/sliderMove';\nimport * as roams from './roams';\nimport { bind } from 'zrender/lib/core/util';\n\nvar InsideZoomView =\n/** @class */\nfunction (_super) {\n __extends(InsideZoomView, _super);\n\n function InsideZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataZoom.inside';\n return _this;\n }\n\n InsideZoomView.prototype.render = function (dataZoomModel, ecModel, api) {\n _super.prototype.render.apply(this, arguments);\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n\n return;\n } // Hence the `throttle` util ensures to preserve command order,\n // here simply updating range all the time will not cause missing\n // any of the the roam change.\n\n\n this.range = dataZoomModel.getPercentRange(); // Reset controllers.\n\n roams.setViewInfoToCoordSysRecord(api, dataZoomModel, {\n pan: bind(getRangeHandlers.pan, this),\n zoom: bind(getRangeHandlers.zoom, this),\n scrollMove: bind(getRangeHandlers.scrollMove, this)\n });\n };\n\n InsideZoomView.prototype.dispose = function () {\n this._clear();\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n InsideZoomView.prototype._clear = function () {\n roams.disposeCoordSysRecordIfNeeded(this.api, this.dataZoomModel);\n this.range = null;\n };\n\n InsideZoomView.type = 'dataZoom.inside';\n return InsideZoomView;\n}(DataZoomView);\n\nvar getRangeHandlers = {\n zoom: function (coordSysInfo, coordSysMainType, controller, e) {\n var lastRange = this.range;\n var range = lastRange.slice(); // Calculate transform by the first axis.\n\n var axisModel = coordSysInfo.axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var directionInfo = getDirectionInfo[coordSysMainType](null, [e.originX, e.originY], axisModel, controller, coordSysInfo);\n var percentPoint = (directionInfo.signal > 0 ? directionInfo.pixelStart + directionInfo.pixelLength - directionInfo.pixel : directionInfo.pixel - directionInfo.pixelStart) / directionInfo.pixelLength * (range[1] - range[0]) + range[0];\n var scale = Math.max(1 / e.scale, 0);\n range[0] = (range[0] - percentPoint) * scale + percentPoint;\n range[1] = (range[1] - percentPoint) * scale + percentPoint; // Restrict range.\n\n var minMaxSpan = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n sliderMove(0, range, [0, 100], 0, minMaxSpan.minSpan, minMaxSpan.maxSpan);\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n },\n pan: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {\n var directionInfo = getDirectionInfo[coordSysMainType]([e.oldX, e.oldY], [e.newX, e.newY], axisModel, controller, coordSysInfo);\n return directionInfo.signal * (range[1] - range[0]) * directionInfo.pixel / directionInfo.pixelLength;\n }),\n scrollMove: makeMover(function (range, axisModel, coordSysInfo, coordSysMainType, controller, e) {\n var directionInfo = getDirectionInfo[coordSysMainType]([0, 0], [e.scrollDelta, e.scrollDelta], axisModel, controller, coordSysInfo);\n return directionInfo.signal * (range[1] - range[0]) * e.scrollDelta;\n })\n};\n\nfunction makeMover(getPercentDelta) {\n return function (coordSysInfo, coordSysMainType, controller, e) {\n var lastRange = this.range;\n var range = lastRange.slice(); // Calculate transform by the first axis.\n\n var axisModel = coordSysInfo.axisModels[0];\n\n if (!axisModel) {\n return;\n }\n\n var percentDelta = getPercentDelta(range, axisModel, coordSysInfo, coordSysMainType, controller, e);\n sliderMove(percentDelta, range, [0, 100], 'all');\n this.range = range;\n\n if (lastRange[0] !== range[0] || lastRange[1] !== range[1]) {\n return range;\n }\n };\n}\n\nvar getDirectionInfo = {\n grid: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var ret = {};\n var rect = coordSysInfo.model.coordinateSystem.getRect();\n oldPoint = oldPoint || [0, 0];\n\n if (axis.dim === 'x') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // axis.dim === 'y'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n polar: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var ret = {};\n var polar = coordSysInfo.model.coordinateSystem;\n var radiusExtent = polar.getRadiusAxis().getExtent();\n var angleExtent = polar.getAngleAxis().getExtent();\n oldPoint = oldPoint ? polar.pointToCoord(oldPoint) : [0, 0];\n newPoint = polar.pointToCoord(newPoint);\n\n if (axisModel.mainType === 'radiusAxis') {\n ret.pixel = newPoint[0] - oldPoint[0]; // ret.pixelLength = Math.abs(radiusExtent[1] - radiusExtent[0]);\n // ret.pixelStart = Math.min(radiusExtent[0], radiusExtent[1]);\n\n ret.pixelLength = radiusExtent[1] - radiusExtent[0];\n ret.pixelStart = radiusExtent[0];\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // 'angleAxis'\n ret.pixel = newPoint[1] - oldPoint[1]; // ret.pixelLength = Math.abs(angleExtent[1] - angleExtent[0]);\n // ret.pixelStart = Math.min(angleExtent[0], angleExtent[1]);\n\n ret.pixelLength = angleExtent[1] - angleExtent[0];\n ret.pixelStart = angleExtent[0];\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n },\n singleAxis: function (oldPoint, newPoint, axisModel, controller, coordSysInfo) {\n var axis = axisModel.axis;\n var rect = coordSysInfo.model.coordinateSystem.getRect();\n var ret = {};\n oldPoint = oldPoint || [0, 0];\n\n if (axis.orient === 'horizontal') {\n ret.pixel = newPoint[0] - oldPoint[0];\n ret.pixelLength = rect.width;\n ret.pixelStart = rect.x;\n ret.signal = axis.inverse ? 1 : -1;\n } else {\n // 'vertical'\n ret.pixel = newPoint[1] - oldPoint[1];\n ret.pixelLength = rect.height;\n ret.pixelStart = rect.y;\n ret.signal = axis.inverse ? -1 : 1;\n }\n\n return ret;\n }\n};\nexport default InsideZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport InsideZoomModel from './InsideZoomModel';\nimport InsideZoomView from './InsideZoomView';\nimport { installDataZoomRoamProcessor } from './roams';\nimport installCommon from './installCommon';\nexport function install(registers) {\n installCommon(registers);\n registers.registerComponentModel(InsideZoomModel);\n registers.registerComponentView(InsideZoomView);\n installDataZoomRoamProcessor(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport DataZoomModel from './DataZoomModel';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar SliderZoomModel =\n/** @class */\nfunction (_super) {\n __extends(SliderZoomModel, _super);\n\n function SliderZoomModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderZoomModel.type;\n return _this;\n }\n\n SliderZoomModel.type = 'dataZoom.slider';\n SliderZoomModel.layoutMode = 'box';\n SliderZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {\n show: true,\n // deault value can only be drived in view stage.\n right: 'ph',\n top: 'ph',\n width: 'ph',\n height: 'ph',\n left: null,\n bottom: null,\n borderColor: '#d2dbee',\n borderRadius: 3,\n backgroundColor: 'rgba(47,69,84,0)',\n // dataBackgroundColor: '#ddd',\n dataBackground: {\n lineStyle: {\n color: '#d2dbee',\n width: 0.5\n },\n areaStyle: {\n color: '#d2dbee',\n opacity: 0.2\n }\n },\n selectedDataBackground: {\n lineStyle: {\n color: '#8fb0f7',\n width: 0.5\n },\n areaStyle: {\n color: '#8fb0f7',\n opacity: 0.2\n }\n },\n // Color of selected window.\n fillerColor: 'rgba(135,175,274,0.2)',\n handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',\n // Percent of the slider height\n handleSize: '100%',\n handleStyle: {\n color: '#fff',\n borderColor: '#ACB8D1'\n },\n moveHandleSize: 7,\n moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',\n moveHandleStyle: {\n color: '#D2DBEE',\n opacity: 0.7\n },\n showDetail: true,\n showDataShadow: 'auto',\n realtime: true,\n zoomLock: false,\n textStyle: {\n color: '#6E7079'\n },\n brushSelect: true,\n brushStyle: {\n color: 'rgba(135,175,274,0.15)'\n },\n emphasis: {\n handleStyle: {\n borderColor: '#8FB0F7'\n },\n moveHandleStyle: {\n color: '#8FB0F7'\n }\n }\n });\n return SliderZoomModel;\n}(DataZoomModel);\n\nexport default SliderZoomModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport { bind, each, isFunction, isString, indexOf } from 'zrender/lib/core/util';\nimport * as eventTool from 'zrender/lib/core/event';\nimport * as graphic from '../../util/graphic';\nimport * as throttle from '../../util/throttle';\nimport DataZoomView from './DataZoomView';\nimport { linearMap, asc, parsePercent } from '../../util/number';\nimport * as layout from '../../util/layout';\nimport sliderMove from '../helper/sliderMove';\nimport { getAxisMainType, collectReferCoordSysModelInfo } from './helper';\nimport { enableHoverEmphasis } from '../../util/states';\nimport { createSymbol, symbolBuildProxies } from '../../util/symbol';\nimport { deprecateLog } from '../../util/log';\nimport { createTextStyle } from '../../label/labelStyle';\nvar Rect = graphic.Rect; // Constants\n\nvar DEFAULT_LOCATION_EDGE_GAP = 7;\nvar DEFAULT_FRAME_BORDER_WIDTH = 1;\nvar DEFAULT_FILLER_SIZE = 30;\nvar DEFAULT_MOVE_HANDLE_SIZE = 7;\nvar HORIZONTAL = 'horizontal';\nvar VERTICAL = 'vertical';\nvar LABEL_GAP = 5;\nvar SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];\nvar REALTIME_ANIMATION_CONFIG = {\n easing: 'cubicOut',\n duration: 100\n};\n\nvar SliderZoomView =\n/** @class */\nfunction (_super) {\n __extends(SliderZoomView, _super);\n\n function SliderZoomView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = SliderZoomView.type;\n _this._displayables = {};\n return _this;\n }\n\n SliderZoomView.prototype.init = function (ecModel, api) {\n this.api = api; // A unique handler for each dataZoom component\n\n this._onBrush = bind(this._onBrush, this);\n this._onBrushEnd = bind(this._onBrushEnd, this);\n };\n\n SliderZoomView.prototype.render = function (dataZoomModel, ecModel, api, payload) {\n _super.prototype.render.apply(this, arguments);\n\n throttle.createOrUpdate(this, '_dispatchZoomAction', dataZoomModel.get('throttle'), 'fixRate');\n this._orient = dataZoomModel.getOrient();\n\n if (dataZoomModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n if (dataZoomModel.noTarget()) {\n this._clear();\n\n this.group.removeAll();\n return;\n } // Notice: this._resetInterval() should not be executed when payload.type\n // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'\n // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,\n\n\n if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {\n this._buildView();\n }\n\n this._updateView();\n };\n\n SliderZoomView.prototype.dispose = function () {\n this._clear();\n\n _super.prototype.dispose.apply(this, arguments);\n };\n\n SliderZoomView.prototype._clear = function () {\n throttle.clear(this, '_dispatchZoomAction');\n var zr = this.api.getZr();\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n };\n\n SliderZoomView.prototype._buildView = function () {\n var thisGroup = this.group;\n thisGroup.removeAll();\n this._brushing = false;\n this._displayables.brushRect = null;\n\n this._resetLocation();\n\n this._resetInterval();\n\n var barGroup = this._displayables.sliderGroup = new graphic.Group();\n\n this._renderBackground();\n\n this._renderHandle();\n\n this._renderDataShadow();\n\n thisGroup.add(barGroup);\n\n this._positionGroup();\n };\n\n SliderZoomView.prototype._resetLocation = function () {\n var dataZoomModel = this.dataZoomModel;\n var api = this.api;\n var showMoveHandle = dataZoomModel.get('brushSelect');\n var moveHandleSize = showMoveHandle ? DEFAULT_MOVE_HANDLE_SIZE : 0; // If some of x/y/width/height are not specified,\n // auto-adapt according to target grid.\n\n var coordRect = this._findCoordRect();\n\n var ecSize = {\n width: api.getWidth(),\n height: api.getHeight()\n }; // Default align by coordinate system rect.\n\n var positionInfo = this._orient === HORIZONTAL ? {\n // Why using 'right', because right should be used in vertical,\n // and it is better to be consistent for dealing with position param merge.\n right: ecSize.width - coordRect.x - coordRect.width,\n top: ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP - moveHandleSize,\n width: coordRect.width,\n height: DEFAULT_FILLER_SIZE\n } : {\n right: DEFAULT_LOCATION_EDGE_GAP,\n top: coordRect.y,\n width: DEFAULT_FILLER_SIZE,\n height: coordRect.height\n }; // Do not write back to option and replace value 'ph', because\n // the 'ph' value should be recalculated when resize.\n\n var layoutParams = layout.getLayoutParams(dataZoomModel.option); // Replace the placeholder value.\n\n each(['right', 'top', 'width', 'height'], function (name) {\n if (layoutParams[name] === 'ph') {\n layoutParams[name] = positionInfo[name];\n }\n });\n var layoutRect = layout.getLayoutRect(layoutParams, ecSize);\n this._location = {\n x: layoutRect.x,\n y: layoutRect.y\n };\n this._size = [layoutRect.width, layoutRect.height];\n this._orient === VERTICAL && this._size.reverse();\n };\n\n SliderZoomView.prototype._positionGroup = function () {\n var thisGroup = this.group;\n var location = this._location;\n var orient = this._orient; // Just use the first axis to determine mapping.\n\n var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();\n var inverse = targetAxisModel && targetAxisModel.get('inverse');\n var sliderGroup = this._displayables.sliderGroup;\n var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse; // Transform barGroup.\n\n sliderGroup.attr(orient === HORIZONTAL && !inverse ? {\n scaleY: otherAxisInverse ? 1 : -1,\n scaleX: 1\n } : orient === HORIZONTAL && inverse ? {\n scaleY: otherAxisInverse ? 1 : -1,\n scaleX: -1\n } : orient === VERTICAL && !inverse ? {\n scaleY: otherAxisInverse ? -1 : 1,\n scaleX: 1,\n rotation: Math.PI / 2\n } // Dont use Math.PI, considering shadow direction.\n : {\n scaleY: otherAxisInverse ? -1 : 1,\n scaleX: -1,\n rotation: Math.PI / 2\n }); // Position barGroup\n\n var rect = thisGroup.getBoundingRect([sliderGroup]);\n thisGroup.x = location.x - rect.x;\n thisGroup.y = location.y - rect.y;\n thisGroup.markRedraw();\n };\n\n SliderZoomView.prototype._getViewExtent = function () {\n return [0, this._size[0]];\n };\n\n SliderZoomView.prototype._renderBackground = function () {\n var dataZoomModel = this.dataZoomModel;\n var size = this._size;\n var barGroup = this._displayables.sliderGroup;\n var brushSelect = dataZoomModel.get('brushSelect');\n barGroup.add(new Rect({\n silent: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1]\n },\n style: {\n fill: dataZoomModel.get('backgroundColor')\n },\n z2: -40\n })); // Click panel, over shadow, below handles.\n\n var clickPanel = new Rect({\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1]\n },\n style: {\n fill: 'transparent'\n },\n z2: 0,\n onclick: bind(this._onClickPanel, this)\n });\n var zr = this.api.getZr();\n\n if (brushSelect) {\n clickPanel.on('mousedown', this._onBrushStart, this);\n clickPanel.cursor = 'crosshair';\n zr.on('mousemove', this._onBrush);\n zr.on('mouseup', this._onBrushEnd);\n } else {\n zr.off('mousemove', this._onBrush);\n zr.off('mouseup', this._onBrushEnd);\n }\n\n barGroup.add(clickPanel);\n };\n\n SliderZoomView.prototype._renderDataShadow = function () {\n var info = this._dataShadowInfo = this._prepareDataShadowInfo();\n\n this._displayables.dataShadowSegs = [];\n\n if (!info) {\n return;\n }\n\n var size = this._size;\n var seriesModel = info.series;\n var data = seriesModel.getRawData();\n var otherDim = seriesModel.getShadowDim ? seriesModel.getShadowDim() // @see candlestick\n : info.otherDim;\n\n if (otherDim == null) {\n return;\n }\n\n var otherDataExtent = data.getDataExtent(otherDim); // Nice extent.\n\n var otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;\n otherDataExtent = [otherDataExtent[0] - otherOffset, otherDataExtent[1] + otherOffset];\n var otherShadowExtent = [0, size[1]];\n var thisShadowExtent = [0, size[0]];\n var areaPoints = [[size[0], 0], [0, 0]];\n var linePoints = [];\n var step = thisShadowExtent[1] / (data.count() - 1);\n var thisCoord = 0; // Optimize for large data shadow\n\n var stride = Math.round(data.count() / size[0]);\n var lastIsEmpty;\n data.each([otherDim], function (value, index) {\n if (stride > 0 && index % stride) {\n thisCoord += step;\n return;\n } // FIXME\n // Should consider axis.min/axis.max when drawing dataShadow.\n // FIXME\n // 应该使用统一的空判断?还是在list里进行空判断?\n\n\n var isEmpty = value == null || isNaN(value) || value === ''; // See #4235.\n\n var otherCoord = isEmpty ? 0 : linearMap(value, otherDataExtent, otherShadowExtent, true); // Attempt to draw data shadow precisely when there are empty value.\n\n if (isEmpty && !lastIsEmpty && index) {\n areaPoints.push([areaPoints[areaPoints.length - 1][0], 0]);\n linePoints.push([linePoints[linePoints.length - 1][0], 0]);\n } else if (!isEmpty && lastIsEmpty) {\n areaPoints.push([thisCoord, 0]);\n linePoints.push([thisCoord, 0]);\n }\n\n areaPoints.push([thisCoord, otherCoord]);\n linePoints.push([thisCoord, otherCoord]);\n thisCoord += step;\n lastIsEmpty = isEmpty;\n });\n var dataZoomModel = this.dataZoomModel;\n\n function createDataShadowGroup(isSelectedArea) {\n var model = dataZoomModel.getModel(isSelectedArea ? 'selectedDataBackground' : 'dataBackground');\n var group = new graphic.Group();\n var polygon = new graphic.Polygon({\n shape: {\n points: areaPoints\n },\n segmentIgnoreThreshold: 1,\n style: model.getModel('areaStyle').getAreaStyle(),\n silent: true,\n z2: -20\n });\n var polyline = new graphic.Polyline({\n shape: {\n points: linePoints\n },\n segmentIgnoreThreshold: 1,\n style: model.getModel('lineStyle').getLineStyle(),\n silent: true,\n z2: -19\n });\n group.add(polygon);\n group.add(polyline);\n return group;\n } // let dataBackgroundModel = dataZoomModel.getModel('dataBackground');\n\n\n for (var i = 0; i < 3; i++) {\n var group = createDataShadowGroup(i === 1);\n\n this._displayables.sliderGroup.add(group);\n\n this._displayables.dataShadowSegs.push(group);\n }\n };\n\n SliderZoomView.prototype._prepareDataShadowInfo = function () {\n var dataZoomModel = this.dataZoomModel;\n var showDataShadow = dataZoomModel.get('showDataShadow');\n\n if (showDataShadow === false) {\n return;\n } // Find a representative series.\n\n\n var result;\n var ecModel = this.ecModel;\n dataZoomModel.eachTargetAxis(function (axisDim, axisIndex) {\n var seriesModels = dataZoomModel.getAxisProxy(axisDim, axisIndex).getTargetSeriesModels();\n each(seriesModels, function (seriesModel) {\n if (result) {\n return;\n }\n\n if (showDataShadow !== true && indexOf(SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')) < 0) {\n return;\n }\n\n var thisAxis = ecModel.getComponent(getAxisMainType(axisDim), axisIndex).axis;\n var otherDim = getOtherDim(axisDim);\n var otherAxisInverse;\n var coordSys = seriesModel.coordinateSystem;\n\n if (otherDim != null && coordSys.getOtherAxis) {\n otherAxisInverse = coordSys.getOtherAxis(thisAxis).inverse;\n }\n\n otherDim = seriesModel.getData().mapDimension(otherDim);\n result = {\n thisAxis: thisAxis,\n series: seriesModel,\n thisDim: axisDim,\n otherDim: otherDim,\n otherAxisInverse: otherAxisInverse\n };\n }, this);\n }, this);\n return result;\n };\n\n SliderZoomView.prototype._renderHandle = function () {\n var thisGroup = this.group;\n var displayables = this._displayables;\n var handles = displayables.handles = [null, null];\n var handleLabels = displayables.handleLabels = [null, null];\n var sliderGroup = this._displayables.sliderGroup;\n var size = this._size;\n var dataZoomModel = this.dataZoomModel;\n var api = this.api;\n var borderRadius = dataZoomModel.get('borderRadius') || 0;\n var brushSelect = dataZoomModel.get('brushSelect');\n var filler = displayables.filler = new Rect({\n silent: brushSelect,\n style: {\n fill: dataZoomModel.get('fillerColor')\n },\n textConfig: {\n position: 'inside'\n }\n });\n sliderGroup.add(filler); // Frame border.\n\n sliderGroup.add(new Rect({\n silent: true,\n subPixelOptimize: true,\n shape: {\n x: 0,\n y: 0,\n width: size[0],\n height: size[1],\n r: borderRadius\n },\n style: {\n stroke: dataZoomModel.get('dataBackgroundColor') // deprecated option\n || dataZoomModel.get('borderColor'),\n lineWidth: DEFAULT_FRAME_BORDER_WIDTH,\n fill: 'rgba(0,0,0,0)'\n }\n })); // Left and right handle to resize\n\n each([0, 1], function (handleIndex) {\n var iconStr = dataZoomModel.get('handleIcon');\n\n if (!symbolBuildProxies[iconStr] && iconStr.indexOf('path://') < 0 && iconStr.indexOf('image://') < 0) {\n // Compatitable with the old icon parsers. Which can use a path string without path://\n iconStr = 'path://' + iconStr;\n\n if (process.env.NODE_ENV !== 'production') {\n deprecateLog('handleIcon now needs \\'path://\\' prefix when using a path string');\n }\n }\n\n var path = createSymbol(iconStr, -1, 0, 2, 2, null, true);\n path.attr({\n cursor: getCursor(this._orient),\n draggable: true,\n drift: bind(this._onDragMove, this, handleIndex),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false),\n z2: 5\n });\n var bRect = path.getBoundingRect();\n var handleSize = dataZoomModel.get('handleSize');\n this._handleHeight = parsePercent(handleSize, this._size[1]);\n this._handleWidth = bRect.width / bRect.height * this._handleHeight;\n path.setStyle(dataZoomModel.getModel('handleStyle').getItemStyle());\n path.style.strokeNoScale = true;\n path.rectHover = true;\n path.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n enableHoverEmphasis(path);\n var handleColor = dataZoomModel.get('handleColor'); // deprecated option\n // Compatitable with previous version\n\n if (handleColor != null) {\n path.style.fill = handleColor;\n }\n\n sliderGroup.add(handles[handleIndex] = path);\n var textStyleModel = dataZoomModel.getModel('textStyle');\n thisGroup.add(handleLabels[handleIndex] = new graphic.Text({\n silent: true,\n invisible: true,\n style: createTextStyle(textStyleModel, {\n x: 0,\n y: 0,\n text: '',\n verticalAlign: 'middle',\n align: 'center',\n fill: textStyleModel.getTextColor(),\n font: textStyleModel.getFont()\n }),\n z2: 10\n }));\n }, this); // Handle to move. Only visible when brushSelect is set true.\n\n var actualMoveZone = filler;\n\n if (brushSelect) {\n var moveHandleHeight = parsePercent(dataZoomModel.get('moveHandleSize'), size[1]);\n var moveHandle_1 = displayables.moveHandle = new graphic.Rect({\n style: dataZoomModel.getModel('moveHandleStyle').getItemStyle(),\n silent: true,\n shape: {\n r: [0, 0, 2, 2],\n y: size[1] - 0.5,\n height: moveHandleHeight\n }\n });\n var iconSize = moveHandleHeight * 0.8;\n var moveHandleIcon = displayables.moveHandleIcon = createSymbol(dataZoomModel.get('moveHandleIcon'), -iconSize / 2, -iconSize / 2, iconSize, iconSize, '#fff', true);\n moveHandleIcon.silent = true;\n moveHandleIcon.y = size[1] + moveHandleHeight / 2 - 0.5;\n moveHandle_1.ensureState('emphasis').style = dataZoomModel.getModel(['emphasis', 'moveHandleStyle']).getItemStyle();\n var moveZoneExpandSize = Math.min(size[1] / 2, Math.max(moveHandleHeight, 10));\n actualMoveZone = displayables.moveZone = new graphic.Rect({\n invisible: true,\n shape: {\n y: size[1] - moveZoneExpandSize,\n height: moveHandleHeight + moveZoneExpandSize\n }\n });\n actualMoveZone.on('mouseover', function () {\n api.enterEmphasis(moveHandle_1);\n }).on('mouseout', function () {\n api.leaveEmphasis(moveHandle_1);\n });\n sliderGroup.add(moveHandle_1);\n sliderGroup.add(moveHandleIcon);\n sliderGroup.add(actualMoveZone);\n }\n\n actualMoveZone.attr({\n draggable: true,\n cursor: getCursor(this._orient),\n drift: bind(this._onDragMove, this, 'all'),\n ondragstart: bind(this._showDataInfo, this, true),\n ondragend: bind(this._onDragEnd, this),\n onmouseover: bind(this._showDataInfo, this, true),\n onmouseout: bind(this._showDataInfo, this, false)\n });\n };\n\n SliderZoomView.prototype._resetInterval = function () {\n var range = this._range = this.dataZoomModel.getPercentRange();\n\n var viewExtent = this._getViewExtent();\n\n this._handleEnds = [linearMap(range[0], [0, 100], viewExtent, true), linearMap(range[1], [0, 100], viewExtent, true)];\n };\n\n SliderZoomView.prototype._updateInterval = function (handleIndex, delta) {\n var dataZoomModel = this.dataZoomModel;\n var handleEnds = this._handleEnds;\n\n var viewExtend = this._getViewExtent();\n\n var minMaxSpan = dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();\n var percentExtent = [0, 100];\n sliderMove(delta, handleEnds, viewExtend, dataZoomModel.get('zoomLock') ? 'all' : handleIndex, minMaxSpan.minSpan != null ? linearMap(minMaxSpan.minSpan, percentExtent, viewExtend, true) : null, minMaxSpan.maxSpan != null ? linearMap(minMaxSpan.maxSpan, percentExtent, viewExtend, true) : null);\n var lastRange = this._range;\n var range = this._range = asc([linearMap(handleEnds[0], viewExtend, percentExtent, true), linearMap(handleEnds[1], viewExtend, percentExtent, true)]);\n return !lastRange || lastRange[0] !== range[0] || lastRange[1] !== range[1];\n };\n\n SliderZoomView.prototype._updateView = function (nonRealtime) {\n var displaybles = this._displayables;\n var handleEnds = this._handleEnds;\n var handleInterval = asc(handleEnds.slice());\n var size = this._size;\n each([0, 1], function (handleIndex) {\n // Handles\n var handle = displaybles.handles[handleIndex];\n var handleHeight = this._handleHeight;\n handle.attr({\n scaleX: handleHeight / 2,\n scaleY: handleHeight / 2,\n // This is a trick, by adding an extra tiny offset to let the default handle's end point align to the drag window.\n // NOTE: It may affect some custom shapes a bit. But we prefer to have better result by default.\n x: handleEnds[handleIndex] + (handleIndex ? -1 : 1),\n y: size[1] / 2 - handleHeight / 2\n });\n }, this); // Filler\n\n displaybles.filler.setShape({\n x: handleInterval[0],\n y: 0,\n width: handleInterval[1] - handleInterval[0],\n height: size[1]\n });\n var viewExtent = {\n x: handleInterval[0],\n width: handleInterval[1] - handleInterval[0]\n }; // Move handle\n\n if (displaybles.moveHandle) {\n displaybles.moveHandle.setShape(viewExtent);\n displaybles.moveZone.setShape(viewExtent); // Force update path on the invisible object\n\n displaybles.moveZone.getBoundingRect();\n displaybles.moveHandleIcon && displaybles.moveHandleIcon.attr('x', viewExtent.x + viewExtent.width / 2);\n } // update clip path of shadow.\n\n\n var dataShadowSegs = displaybles.dataShadowSegs;\n var segIntervals = [0, handleInterval[0], handleInterval[1], size[0]];\n\n for (var i = 0; i < dataShadowSegs.length; i++) {\n var segGroup = dataShadowSegs[i];\n var clipPath = segGroup.getClipPath();\n\n if (!clipPath) {\n clipPath = new graphic.Rect();\n segGroup.setClipPath(clipPath);\n }\n\n clipPath.setShape({\n x: segIntervals[i],\n y: 0,\n width: segIntervals[i + 1] - segIntervals[i],\n height: size[1]\n });\n }\n\n this._updateDataInfo(nonRealtime);\n };\n\n SliderZoomView.prototype._updateDataInfo = function (nonRealtime) {\n var dataZoomModel = this.dataZoomModel;\n var displaybles = this._displayables;\n var handleLabels = displaybles.handleLabels;\n var orient = this._orient;\n var labelTexts = ['', '']; // FIXME\n // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter)\n\n if (dataZoomModel.get('showDetail')) {\n var axisProxy = dataZoomModel.findRepresentativeAxisProxy();\n\n if (axisProxy) {\n var axis = axisProxy.getAxisModel().axis;\n var range = this._range;\n var dataInterval = nonRealtime // See #4434, data and axis are not processed and reset yet in non-realtime mode.\n ? axisProxy.calculateDataWindow({\n start: range[0],\n end: range[1]\n }).valueWindow : axisProxy.getDataValueWindow();\n labelTexts = [this._formatLabel(dataInterval[0], axis), this._formatLabel(dataInterval[1], axis)];\n }\n }\n\n var orderedHandleEnds = asc(this._handleEnds.slice());\n setLabel.call(this, 0);\n setLabel.call(this, 1);\n\n function setLabel(handleIndex) {\n // Label\n // Text should not transform by barGroup.\n // Ignore handlers transform\n var barTransform = graphic.getTransform(displaybles.handles[handleIndex].parent, this.group);\n var direction = graphic.transformDirection(handleIndex === 0 ? 'right' : 'left', barTransform);\n var offset = this._handleWidth / 2 + LABEL_GAP;\n var textPoint = graphic.applyTransform([orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset), this._size[1] / 2], barTransform);\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n verticalAlign: orient === HORIZONTAL ? 'middle' : direction,\n align: orient === HORIZONTAL ? direction : 'center',\n text: labelTexts[handleIndex]\n });\n }\n };\n\n SliderZoomView.prototype._formatLabel = function (value, axis) {\n var dataZoomModel = this.dataZoomModel;\n var labelFormatter = dataZoomModel.get('labelFormatter');\n var labelPrecision = dataZoomModel.get('labelPrecision');\n\n if (labelPrecision == null || labelPrecision === 'auto') {\n labelPrecision = axis.getPixelPrecision();\n }\n\n var valueStr = value == null || isNaN(value) ? '' // FIXME Glue code\n : axis.type === 'category' || axis.type === 'time' ? axis.scale.getLabel({\n value: Math.round(value)\n }) // param of toFixed should less then 20.\n : value.toFixed(Math.min(labelPrecision, 20));\n return isFunction(labelFormatter) ? labelFormatter(value, valueStr) : isString(labelFormatter) ? labelFormatter.replace('{value}', valueStr) : valueStr;\n };\n /**\n * @param showOrHide true: show, false: hide\n */\n\n\n SliderZoomView.prototype._showDataInfo = function (showOrHide) {\n // Always show when drgging.\n showOrHide = this._dragging || showOrHide;\n var displayables = this._displayables;\n var handleLabels = displayables.handleLabels;\n handleLabels[0].attr('invisible', !showOrHide);\n handleLabels[1].attr('invisible', !showOrHide); // Highlight move handle\n\n displayables.moveHandle && this.api[showOrHide ? 'enterEmphasis' : 'leaveEmphasis'](displayables.moveHandle, 1);\n };\n\n SliderZoomView.prototype._onDragMove = function (handleIndex, dx, dy, event) {\n this._dragging = true; // For mobile device, prevent screen slider on the button.\n\n eventTool.stop(event.event); // Transform dx, dy to bar coordination.\n\n var barTransform = this._displayables.sliderGroup.getLocalTransform();\n\n var vertex = graphic.applyTransform([dx, dy], barTransform, true);\n\n var changed = this._updateInterval(handleIndex, vertex[0]);\n\n var realtime = this.dataZoomModel.get('realtime');\n\n this._updateView(!realtime); // Avoid dispatch dataZoom repeatly but range not changed,\n // which cause bad visual effect when progressive enabled.\n\n\n changed && realtime && this._dispatchZoomAction(true);\n };\n\n SliderZoomView.prototype._onDragEnd = function () {\n this._dragging = false;\n\n this._showDataInfo(false); // While in realtime mode and stream mode, dispatch action when\n // drag end will cause the whole view rerender, which is unnecessary.\n\n\n var realtime = this.dataZoomModel.get('realtime');\n !realtime && this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onClickPanel = function (e) {\n var size = this._size;\n\n var localPoint = this._displayables.sliderGroup.transformCoordToLocal(e.offsetX, e.offsetY);\n\n if (localPoint[0] < 0 || localPoint[0] > size[0] || localPoint[1] < 0 || localPoint[1] > size[1]) {\n return;\n }\n\n var handleEnds = this._handleEnds;\n var center = (handleEnds[0] + handleEnds[1]) / 2;\n\n var changed = this._updateInterval('all', localPoint[0] - center);\n\n this._updateView();\n\n changed && this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onBrushStart = function (e) {\n var x = e.offsetX;\n var y = e.offsetY;\n this._brushStart = new graphic.Point(x, y);\n this._brushing = true;\n this._brushStartTime = +new Date(); // this._updateBrushRect(x, y);\n };\n\n SliderZoomView.prototype._onBrushEnd = function (e) {\n if (!this._brushing) {\n return;\n }\n\n var brushRect = this._displayables.brushRect;\n this._brushing = false;\n\n if (!brushRect) {\n return;\n }\n\n brushRect.attr('ignore', true);\n var brushShape = brushRect.shape;\n var brushEndTime = +new Date(); // console.log(brushEndTime - this._brushStartTime);\n\n if (brushEndTime - this._brushStartTime < 200 && Math.abs(brushShape.width) < 5) {\n // Will treat it as a click\n return;\n }\n\n var viewExtend = this._getViewExtent();\n\n var percentExtent = [0, 100];\n this._range = asc([linearMap(brushShape.x, viewExtend, percentExtent, true), linearMap(brushShape.x + brushShape.width, viewExtend, percentExtent, true)]);\n this._handleEnds = [brushShape.x, brushShape.x + brushShape.width];\n\n this._updateView();\n\n this._dispatchZoomAction(false);\n };\n\n SliderZoomView.prototype._onBrush = function (e) {\n if (this._brushing) {\n // For mobile device, prevent screen slider on the button.\n eventTool.stop(e.event);\n\n this._updateBrushRect(e.offsetX, e.offsetY);\n }\n };\n\n SliderZoomView.prototype._updateBrushRect = function (mouseX, mouseY) {\n var displayables = this._displayables;\n var dataZoomModel = this.dataZoomModel;\n var brushRect = displayables.brushRect;\n\n if (!brushRect) {\n brushRect = displayables.brushRect = new Rect({\n silent: true,\n style: dataZoomModel.getModel('brushStyle').getItemStyle()\n });\n displayables.sliderGroup.add(brushRect);\n }\n\n brushRect.attr('ignore', false);\n var brushStart = this._brushStart;\n var sliderGroup = this._displayables.sliderGroup;\n var endPoint = sliderGroup.transformCoordToLocal(mouseX, mouseY);\n var startPoint = sliderGroup.transformCoordToLocal(brushStart.x, brushStart.y);\n var size = this._size;\n endPoint[0] = Math.max(Math.min(size[0], endPoint[0]), 0);\n brushRect.setShape({\n x: startPoint[0],\n y: 0,\n width: endPoint[0] - startPoint[0],\n height: size[1]\n });\n };\n /**\n * This action will be throttled.\n */\n\n\n SliderZoomView.prototype._dispatchZoomAction = function (realtime) {\n var range = this._range;\n this.api.dispatchAction({\n type: 'dataZoom',\n from: this.uid,\n dataZoomId: this.dataZoomModel.id,\n animation: realtime ? REALTIME_ANIMATION_CONFIG : null,\n start: range[0],\n end: range[1]\n });\n };\n\n SliderZoomView.prototype._findCoordRect = function () {\n // Find the grid coresponding to the first axis referred by dataZoom.\n var rect;\n var coordSysInfoList = collectReferCoordSysModelInfo(this.dataZoomModel).infoList;\n\n if (!rect && coordSysInfoList.length) {\n var coordSys = coordSysInfoList[0].model.coordinateSystem;\n rect = coordSys.getRect && coordSys.getRect();\n }\n\n if (!rect) {\n var width = this.api.getWidth();\n var height = this.api.getHeight();\n rect = {\n x: width * 0.2,\n y: height * 0.2,\n width: width * 0.6,\n height: height * 0.6\n };\n }\n\n return rect;\n };\n\n SliderZoomView.type = 'dataZoom.slider';\n return SliderZoomView;\n}(DataZoomView);\n\nfunction getOtherDim(thisDim) {\n // FIXME\n // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好\n var map = {\n x: 'y',\n y: 'x',\n radius: 'angle',\n angle: 'radius'\n };\n return map[thisDim];\n}\n\nfunction getCursor(orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default SliderZoomView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport SliderZoomModel from './SliderZoomModel';\nimport SliderZoomView from './SliderZoomView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(SliderZoomModel);\n registers.registerComponentView(SliderZoomView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installDataZoomInside } from './installDataZoomInside';\nimport { install as installDataZoomSlider } from './installDataZoomSlider';\nexport function install(registers) {\n use(installDataZoomInside);\n use(installDataZoomSlider); // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * @file Visual mapping.\n */\nimport * as zrUtil from 'zrender/lib/core/util';\nvar visualDefault = {\n /**\n * @public\n */\n get: function (visualType, key, isCategory) {\n var value = zrUtil.clone((defaultOption[visualType] || {})[key]);\n return isCategory ? zrUtil.isArray(value) ? value[value.length - 1] : value : value;\n }\n};\nvar defaultOption = {\n color: {\n active: ['#006edd', '#e0ffff'],\n inactive: ['rgba(0,0,0,0)']\n },\n colorHue: {\n active: [0, 360],\n inactive: [0, 0]\n },\n colorSaturation: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n colorLightness: {\n active: [0.9, 0.5],\n inactive: [0, 0]\n },\n colorAlpha: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n opacity: {\n active: [0.3, 1],\n inactive: [0, 0]\n },\n symbol: {\n active: ['circle', 'roundRect', 'diamond'],\n inactive: ['none']\n },\n symbolSize: {\n active: [10, 50],\n inactive: [0, 0]\n }\n};\nexport default visualDefault;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport env from 'zrender/lib/core/env';\nimport visualDefault from '../../visual/visualDefault';\nimport VisualMapping from '../../visual/VisualMapping';\nimport * as visualSolution from '../../visual/visualSolution';\nimport * as modelUtil from '../../util/model';\nimport * as numberUtil from '../../util/number';\nimport ComponentModel from '../../model/Component';\nvar mapVisual = VisualMapping.mapVisual;\nvar eachVisual = VisualMapping.eachVisual;\nvar isArray = zrUtil.isArray;\nvar each = zrUtil.each;\nvar asc = numberUtil.asc;\nvar linearMap = numberUtil.linearMap;\n\nvar VisualMapModel =\n/** @class */\nfunction (_super) {\n __extends(VisualMapModel, _super);\n\n function VisualMapModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = VisualMapModel.type;\n _this.stateList = ['inRange', 'outOfRange'];\n _this.replacableOptionKeys = ['inRange', 'outOfRange', 'target', 'controller', 'color'];\n _this.layoutMode = {\n type: 'box',\n ignoreSize: true\n };\n /**\n * [lowerBound, upperBound]\n */\n\n _this.dataBound = [-Infinity, Infinity];\n _this.targetVisuals = {};\n _this.controllerVisuals = {};\n return _this;\n }\n\n VisualMapModel.prototype.init = function (option, parentModel, ecModel) {\n this.mergeDefaultAndTheme(option, ecModel);\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.optionUpdated = function (newOption, isInit) {\n var thisOption = this.option; // FIXME\n // necessary?\n // Disable realtime view update if canvas is not supported.\n\n if (!env.canvasSupported) {\n thisOption.realtime = false;\n }\n\n !isInit && visualSolution.replaceVisualOption(thisOption, newOption, this.replacableOptionKeys);\n this.textStyleModel = this.getModel('textStyle');\n this.resetItemSize();\n this.completeVisualOption();\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.resetVisual = function (supplementVisualOption) {\n var stateList = this.stateList;\n supplementVisualOption = zrUtil.bind(supplementVisualOption, this);\n this.controllerVisuals = visualSolution.createVisualMappings(this.option.controller, stateList, supplementVisualOption);\n this.targetVisuals = visualSolution.createVisualMappings(this.option.target, stateList, supplementVisualOption);\n };\n /**\n * @public\n */\n\n\n VisualMapModel.prototype.getItemSymbol = function () {\n return null;\n };\n /**\n * @protected\n * @return {Array.} An array of series indices.\n */\n\n\n VisualMapModel.prototype.getTargetSeriesIndices = function () {\n var optionSeriesIndex = this.option.seriesIndex;\n var seriesIndices = [];\n\n if (optionSeriesIndex == null || optionSeriesIndex === 'all') {\n this.ecModel.eachSeries(function (seriesModel, index) {\n seriesIndices.push(index);\n });\n } else {\n seriesIndices = modelUtil.normalizeToArray(optionSeriesIndex);\n }\n\n return seriesIndices;\n };\n /**\n * @public\n */\n\n\n VisualMapModel.prototype.eachTargetSeries = function (callback, context) {\n zrUtil.each(this.getTargetSeriesIndices(), function (seriesIndex) {\n var seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);\n\n if (seriesModel) {\n callback.call(context, seriesModel);\n }\n }, this);\n };\n /**\n * @pubilc\n */\n\n\n VisualMapModel.prototype.isTargetSeries = function (seriesModel) {\n var is = false;\n this.eachTargetSeries(function (model) {\n model === seriesModel && (is = true);\n });\n return is;\n };\n /**\n * @example\n * this.formatValueText(someVal); // format single numeric value to text.\n * this.formatValueText(someVal, true); // format single category value to text.\n * this.formatValueText([min, max]); // format numeric min-max to text.\n * this.formatValueText([this.dataBound[0], max]); // using data lower bound.\n * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.\n *\n * @param value Real value, or this.dataBound[0 or 1].\n * @param isCategory Only available when value is number.\n * @param edgeSymbols Open-close symbol when value is interval.\n * @protected\n */\n\n\n VisualMapModel.prototype.formatValueText = function (value, isCategory, edgeSymbols) {\n var option = this.option;\n var precision = option.precision;\n var dataBound = this.dataBound;\n var formatter = option.formatter;\n var isMinMax;\n edgeSymbols = edgeSymbols || ['<', '>'];\n\n if (zrUtil.isArray(value)) {\n value = value.slice();\n isMinMax = true;\n }\n\n var textValue = isCategory ? value // Value is string when isCategory\n : isMinMax ? [toFixed(value[0]), toFixed(value[1])] : toFixed(value);\n\n if (zrUtil.isString(formatter)) {\n return formatter.replace('{value}', isMinMax ? textValue[0] : textValue).replace('{value2}', isMinMax ? textValue[1] : textValue);\n } else if (zrUtil.isFunction(formatter)) {\n return isMinMax ? formatter(value[0], value[1]) : formatter(value);\n }\n\n if (isMinMax) {\n if (value[0] === dataBound[0]) {\n return edgeSymbols[0] + ' ' + textValue[1];\n } else if (value[1] === dataBound[1]) {\n return edgeSymbols[1] + ' ' + textValue[0];\n } else {\n return textValue[0] + ' - ' + textValue[1];\n }\n } else {\n // Format single value (includes category case).\n return textValue;\n }\n\n function toFixed(val) {\n return val === dataBound[0] ? 'min' : val === dataBound[1] ? 'max' : (+val).toFixed(Math.min(precision, 20));\n }\n };\n /**\n * @protected\n */\n\n\n VisualMapModel.prototype.resetExtent = function () {\n var thisOption = this.option; // Can not calculate data extent by data here.\n // Because series and data may be modified in processing stage.\n // So we do not support the feature \"auto min/max\".\n\n var extent = asc([thisOption.min, thisOption.max]);\n this._dataExtent = extent;\n };\n /**\n * Return Concrete dimention. If return null/undefined, no dimension used.\n */\n\n\n VisualMapModel.prototype.getDataDimension = function (list) {\n var optDim = this.option.dimension;\n var listDimensions = list.dimensions;\n\n if (optDim == null && !listDimensions.length) {\n return;\n }\n\n if (optDim != null) {\n return list.getDimension(optDim);\n }\n\n var dimNames = list.dimensions;\n\n for (var i = dimNames.length - 1; i >= 0; i--) {\n var dimName = dimNames[i];\n var dimInfo = list.getDimensionInfo(dimName);\n\n if (!dimInfo.isCalculationCoord) {\n return dimName;\n }\n }\n };\n\n VisualMapModel.prototype.getExtent = function () {\n return this._dataExtent.slice();\n };\n\n VisualMapModel.prototype.completeVisualOption = function () {\n var ecModel = this.ecModel;\n var thisOption = this.option;\n var base = {\n inRange: thisOption.inRange,\n outOfRange: thisOption.outOfRange\n };\n var target = thisOption.target || (thisOption.target = {});\n var controller = thisOption.controller || (thisOption.controller = {});\n zrUtil.merge(target, base); // Do not override\n\n zrUtil.merge(controller, base); // Do not override\n\n var isCategory = this.isCategory();\n completeSingle.call(this, target);\n completeSingle.call(this, controller);\n completeInactive.call(this, target, 'inRange', 'outOfRange'); // completeInactive.call(this, target, 'outOfRange', 'inRange');\n\n completeController.call(this, controller);\n\n function completeSingle(base) {\n // Compatible with ec2 dataRange.color.\n // The mapping order of dataRange.color is: [high value, ..., low value]\n // whereas inRange.color and outOfRange.color is [low value, ..., high value]\n // Notice: ec2 has no inverse.\n if (isArray(thisOption.color) // If there has been inRange: {symbol: ...}, adding color is a mistake.\n // So adding color only when no inRange defined.\n && !base.inRange) {\n base.inRange = {\n color: thisOption.color.slice().reverse()\n };\n } // Compatible with previous logic, always give a defautl color, otherwise\n // simple config with no inRange and outOfRange will not work.\n // Originally we use visualMap.color as the default color, but setOption at\n // the second time the default color will be erased. So we change to use\n // constant DEFAULT_COLOR.\n // If user do not want the default color, set inRange: {color: null}.\n\n\n base.inRange = base.inRange || {\n color: ecModel.get('gradientColor')\n };\n }\n\n function completeInactive(base, stateExist, stateAbsent) {\n var optExist = base[stateExist];\n var optAbsent = base[stateAbsent];\n\n if (optExist && !optAbsent) {\n optAbsent = base[stateAbsent] = {};\n each(optExist, function (visualData, visualType) {\n if (!VisualMapping.isValidType(visualType)) {\n return;\n }\n\n var defa = visualDefault.get(visualType, 'inactive', isCategory);\n\n if (defa != null) {\n optAbsent[visualType] = defa; // Compatibable with ec2:\n // Only inactive color to rgba(0,0,0,0) can not\n // make label transparent, so use opacity also.\n\n if (visualType === 'color' && !optAbsent.hasOwnProperty('opacity') && !optAbsent.hasOwnProperty('colorAlpha')) {\n optAbsent.opacity = [0, 0];\n }\n }\n });\n }\n }\n\n function completeController(controller) {\n var symbolExists = (controller.inRange || {}).symbol || (controller.outOfRange || {}).symbol;\n var symbolSizeExists = (controller.inRange || {}).symbolSize || (controller.outOfRange || {}).symbolSize;\n var inactiveColor = this.get('inactiveColor');\n var itemSymbol = this.getItemSymbol();\n var defaultSymbol = itemSymbol || 'roundRect';\n each(this.stateList, function (state) {\n var itemSize = this.itemSize;\n var visuals = controller[state]; // Set inactive color for controller if no other color\n // attr (like colorAlpha) specified.\n\n if (!visuals) {\n visuals = controller[state] = {\n color: isCategory ? inactiveColor : [inactiveColor]\n };\n } // Consistent symbol and symbolSize if not specified.\n\n\n if (visuals.symbol == null) {\n visuals.symbol = symbolExists && zrUtil.clone(symbolExists) || (isCategory ? defaultSymbol : [defaultSymbol]);\n }\n\n if (visuals.symbolSize == null) {\n visuals.symbolSize = symbolSizeExists && zrUtil.clone(symbolSizeExists) || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);\n } // Filter none\n\n\n visuals.symbol = mapVisual(visuals.symbol, function (symbol) {\n return symbol === 'none' ? defaultSymbol : symbol;\n }); // Normalize symbolSize\n\n var symbolSize = visuals.symbolSize;\n\n if (symbolSize != null) {\n var max_1 = -Infinity; // symbolSize can be object when categories defined.\n\n eachVisual(symbolSize, function (value) {\n value > max_1 && (max_1 = value);\n });\n visuals.symbolSize = mapVisual(symbolSize, function (value) {\n return linearMap(value, [0, max_1], [0, itemSize[0]], true);\n });\n }\n }, this);\n }\n };\n\n VisualMapModel.prototype.resetItemSize = function () {\n this.itemSize = [parseFloat(this.get('itemWidth')), parseFloat(this.get('itemHeight'))];\n };\n\n VisualMapModel.prototype.isCategory = function () {\n return !!this.option.categories;\n };\n /**\n * @public\n * @abstract\n */\n\n\n VisualMapModel.prototype.setSelected = function (selected) {};\n\n VisualMapModel.prototype.getSelected = function () {\n return null;\n };\n /**\n * @public\n * @abstract\n */\n\n\n VisualMapModel.prototype.getValueState = function (value) {\n return null;\n };\n /**\n * FIXME\n * Do not publish to thirt-part-dev temporarily\n * util the interface is stable. (Should it return\n * a function but not visual meta?)\n *\n * @pubilc\n * @abstract\n * @param getColorVisual\n * params: value, valueState\n * return: color\n * @return {Object} visualMeta\n * should includes {stops, outerColors}\n * outerColor means [colorBeyondMinValue, colorBeyondMaxValue]\n */\n\n\n VisualMapModel.prototype.getVisualMeta = function (getColorVisual) {\n return null;\n };\n\n VisualMapModel.type = 'visualMap';\n VisualMapModel.dependencies = ['series'];\n VisualMapModel.defaultOption = {\n show: true,\n zlevel: 0,\n z: 4,\n seriesIndex: 'all',\n min: 0,\n max: 200,\n left: 0,\n right: null,\n top: null,\n bottom: 0,\n itemWidth: null,\n itemHeight: null,\n inverse: false,\n orient: 'vertical',\n backgroundColor: 'rgba(0,0,0,0)',\n borderColor: '#ccc',\n contentColor: '#5793f3',\n inactiveColor: '#aaa',\n borderWidth: 0,\n padding: 5,\n // 接受数组分别设定上右下左边距,同css\n textGap: 10,\n precision: 0,\n textStyle: {\n color: '#333' // 值域文字颜色\n\n }\n };\n return VisualMapModel;\n}(ComponentModel);\n\nexport default VisualMapModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapModel from './VisualMapModel';\nimport * as numberUtil from '../../util/number';\nimport { inheritDefaultOption } from '../../util/component'; // Constant\n\nvar DEFAULT_BAR_BOUND = [20, 140];\n\nvar ContinuousModel =\n/** @class */\nfunction (_super) {\n __extends(ContinuousModel, _super);\n\n function ContinuousModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ContinuousModel.type;\n return _this;\n }\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.optionUpdated = function (newOption, isInit) {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n this.resetExtent();\n this.resetVisual(function (mappingOption) {\n mappingOption.mappingMethod = 'linear';\n mappingOption.dataExtent = this.getExtent();\n });\n\n this._resetRange();\n };\n /**\n * @protected\n * @override\n */\n\n\n ContinuousModel.prototype.resetItemSize = function () {\n _super.prototype.resetItemSize.apply(this, arguments);\n\n var itemSize = this.itemSize;\n (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);\n (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);\n };\n /**\n * @private\n */\n\n\n ContinuousModel.prototype._resetRange = function () {\n var dataExtent = this.getExtent();\n var range = this.option.range;\n\n if (!range || range.auto) {\n // `range` should always be array (so we dont use other\n // value like 'auto') for user-friend. (consider getOption).\n dataExtent.auto = 1;\n this.option.range = dataExtent;\n } else if (zrUtil.isArray(range)) {\n if (range[0] > range[1]) {\n range.reverse();\n }\n\n range[0] = Math.max(range[0], dataExtent[0]);\n range[1] = Math.min(range[1], dataExtent[1]);\n }\n };\n /**\n * @protected\n * @override\n */\n\n\n ContinuousModel.prototype.completeVisualOption = function () {\n _super.prototype.completeVisualOption.apply(this, arguments);\n\n zrUtil.each(this.stateList, function (state) {\n var symbolSize = this.option.controller[state].symbolSize;\n\n if (symbolSize && symbolSize[0] !== symbolSize[1]) {\n symbolSize[0] = symbolSize[1] / 3; // For good looking.\n }\n }, this);\n };\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.setSelected = function (selected) {\n this.option.range = selected.slice();\n\n this._resetRange();\n };\n /**\n * @public\n */\n\n\n ContinuousModel.prototype.getSelected = function () {\n var dataExtent = this.getExtent();\n var dataInterval = numberUtil.asc((this.get('range') || []).slice()); // Clamp\n\n dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);\n dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);\n dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);\n dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);\n return dataInterval;\n };\n /**\n * @override\n */\n\n\n ContinuousModel.prototype.getValueState = function (value) {\n var range = this.option.range;\n var dataExtent = this.getExtent(); // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.\n // range[1] is processed likewise.\n\n return (range[0] <= dataExtent[0] || range[0] <= value) && (range[1] >= dataExtent[1] || value <= range[1]) ? 'inRange' : 'outOfRange';\n };\n\n ContinuousModel.prototype.findTargetDataIndices = function (range) {\n var result = [];\n this.eachTargetSeries(function (seriesModel) {\n var dataIndices = [];\n var data = seriesModel.getData();\n data.each(this.getDataDimension(data), function (value, dataIndex) {\n range[0] <= value && value <= range[1] && dataIndices.push(dataIndex);\n }, this);\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n return result;\n };\n /**\n * @implement\n */\n\n\n ContinuousModel.prototype.getVisualMeta = function (getColorVisual) {\n var oVals = getColorStopValues(this, 'outOfRange', this.getExtent());\n var iVals = getColorStopValues(this, 'inRange', this.option.range.slice());\n var stops = [];\n\n function setStop(value, valueState) {\n stops.push({\n value: value,\n color: getColorVisual(value, valueState)\n });\n } // Format to: outOfRange -- inRange -- outOfRange.\n\n\n var iIdx = 0;\n var oIdx = 0;\n var iLen = iVals.length;\n var oLen = oVals.length;\n\n for (; oIdx < oLen && (!iVals.length || oVals[oIdx] <= iVals[0]); oIdx++) {\n // If oVal[oIdx] === iVals[iIdx], oVal[oIdx] should be ignored.\n if (oVals[oIdx] < iVals[iIdx]) {\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n for (var first = 1; iIdx < iLen; iIdx++, first = 0) {\n // If range is full, value beyond min, max will be clamped.\n // make a singularity\n first && stops.length && setStop(iVals[iIdx], 'outOfRange');\n setStop(iVals[iIdx], 'inRange');\n }\n\n for (var first = 1; oIdx < oLen; oIdx++) {\n if (!iVals.length || iVals[iVals.length - 1] < oVals[oIdx]) {\n // make a singularity\n if (first) {\n stops.length && setStop(stops[stops.length - 1].value, 'outOfRange');\n first = 0;\n }\n\n setStop(oVals[oIdx], 'outOfRange');\n }\n }\n\n var stopsLen = stops.length;\n return {\n stops: stops,\n outerColors: [stopsLen ? stops[0].color : 'transparent', stopsLen ? stops[stopsLen - 1].color : 'transparent']\n };\n };\n\n ContinuousModel.type = 'visualMap.continuous';\n ContinuousModel.defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n align: 'auto',\n calculable: false,\n hoverLink: true,\n realtime: true,\n handleIcon: 'path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z',\n handleSize: '120%',\n handleStyle: {\n borderColor: '#fff',\n borderWidth: 1\n },\n indicatorIcon: 'circle',\n indicatorSize: '50%',\n indicatorStyle: {\n borderColor: '#fff',\n borderWidth: 2,\n shadowBlur: 2,\n shadowOffsetX: 1,\n shadowOffsetY: 1,\n shadowColor: 'rgba(0,0,0,0.2)'\n } // emphasis: {\n // handleStyle: {\n // shadowBlur: 3,\n // shadowOffsetX: 1,\n // shadowOffsetY: 1,\n // shadowColor: 'rgba(0,0,0,0.2)'\n // }\n // }\n\n });\n return ContinuousModel;\n}(VisualMapModel);\n\nfunction getColorStopValues(visualMapModel, valueState, dataExtent) {\n if (dataExtent[0] === dataExtent[1]) {\n return dataExtent.slice();\n } // When using colorHue mapping, it is not linear color any more.\n // Moreover, canvas gradient seems not to be accurate linear.\n // FIXME\n // Should be arbitrary value 100? or based on pixel size?\n\n\n var count = 200;\n var step = (dataExtent[1] - dataExtent[0]) / count;\n var value = dataExtent[0];\n var stopValues = [];\n\n for (var i = 0; i <= count && value < dataExtent[1]; i++) {\n stopValues.push(value);\n value += step;\n }\n\n stopValues.push(dataExtent[1]);\n return stopValues;\n}\n\nexport default ContinuousModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { Rect } from '../../util/graphic';\nimport * as formatUtil from '../../util/format';\nimport * as layout from '../../util/layout';\nimport VisualMapping from '../../visual/VisualMapping';\nimport ComponentView from '../../view/Component';\n\nvar VisualMapView =\n/** @class */\nfunction (_super) {\n __extends(VisualMapView, _super);\n\n function VisualMapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = VisualMapView.type;\n _this.autoPositionValues = {\n left: 1,\n right: 1,\n top: 1,\n bottom: 1\n };\n return _this;\n }\n\n VisualMapView.prototype.init = function (ecModel, api) {\n this.ecModel = ecModel;\n this.api = api;\n };\n /**\n * @protected\n */\n\n\n VisualMapView.prototype.render = function (visualMapModel, ecModel, api, payload // TODO: TYPE\n ) {\n this.visualMapModel = visualMapModel;\n\n if (visualMapModel.get('show') === false) {\n this.group.removeAll();\n return;\n }\n\n this.doRender(visualMapModel, ecModel, api, payload);\n };\n /**\n * @protected\n */\n\n\n VisualMapView.prototype.renderBackground = function (group) {\n var visualMapModel = this.visualMapModel;\n var padding = formatUtil.normalizeCssArray(visualMapModel.get('padding') || 0);\n var rect = group.getBoundingRect();\n group.add(new Rect({\n z2: -1,\n silent: true,\n shape: {\n x: rect.x - padding[3],\n y: rect.y - padding[0],\n width: rect.width + padding[3] + padding[1],\n height: rect.height + padding[0] + padding[2]\n },\n style: {\n fill: visualMapModel.get('backgroundColor'),\n stroke: visualMapModel.get('borderColor'),\n lineWidth: visualMapModel.get('borderWidth')\n }\n }));\n };\n /**\n * @protected\n * @param targetValue can be Infinity or -Infinity\n * @param visualCluster Only can be 'color' 'opacity' 'symbol' 'symbolSize'\n * @param opts\n * @param opts.forceState Specify state, instead of using getValueState method.\n * @param opts.convertOpacityToAlpha For color gradient in controller widget.\n * @return {*} Visual value.\n */\n\n\n VisualMapView.prototype.getControllerVisual = function (targetValue, visualCluster, opts) {\n opts = opts || {};\n var forceState = opts.forceState;\n var visualMapModel = this.visualMapModel;\n var visualObj = {}; // Default values.\n\n if (visualCluster === 'color') {\n var defaultColor = visualMapModel.get('contentColor');\n visualObj.color = defaultColor;\n }\n\n function getter(key) {\n return visualObj[key];\n }\n\n function setter(key, value) {\n visualObj[key] = value;\n }\n\n var mappings = visualMapModel.controllerVisuals[forceState || visualMapModel.getValueState(targetValue)];\n var visualTypes = VisualMapping.prepareVisualTypes(mappings);\n zrUtil.each(visualTypes, function (type) {\n var visualMapping = mappings[type];\n\n if (opts.convertOpacityToAlpha && type === 'opacity') {\n type = 'colorAlpha';\n visualMapping = mappings.__alphaForOpacity;\n }\n\n if (VisualMapping.dependsOn(type, visualCluster)) {\n visualMapping && visualMapping.applyVisual(targetValue, getter, setter);\n }\n });\n return visualObj[visualCluster];\n };\n\n VisualMapView.prototype.positionGroup = function (group) {\n var model = this.visualMapModel;\n var api = this.api;\n layout.positionElement(group, model.getBoxLayoutParams(), {\n width: api.getWidth(),\n height: api.getHeight()\n });\n };\n\n VisualMapView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {};\n\n VisualMapView.type = 'visualMap';\n return VisualMapView;\n}(ComponentView);\n\nexport default VisualMapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { getLayoutRect } from '../../util/layout';\nvar paramsSet = [['left', 'right', 'width'], ['top', 'bottom', 'height']];\n/**\n * @param visualMapModel\n * @param api\n * @param itemSize always [short, long]\n * @return {string} 'left' or 'right' or 'top' or 'bottom'\n */\n\nexport function getItemAlign(visualMapModel, api, itemSize) {\n var modelOption = visualMapModel.option;\n var itemAlign = modelOption.align;\n\n if (itemAlign != null && itemAlign !== 'auto') {\n return itemAlign;\n } // Auto decision align.\n\n\n var ecSize = {\n width: api.getWidth(),\n height: api.getHeight()\n };\n var realIndex = modelOption.orient === 'horizontal' ? 1 : 0;\n var reals = paramsSet[realIndex];\n var fakeValue = [0, null, 10];\n var layoutInput = {};\n\n for (var i = 0; i < 3; i++) {\n layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];\n layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];\n }\n\n var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex];\n var rect = getLayoutRect(layoutInput, ecSize, modelOption.padding);\n return reals[(rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5 < ecSize[rParam[1]] * 0.5 ? 0 : 1];\n}\n/**\n * Prepare dataIndex for outside usage, where dataIndex means rawIndex, and\n * dataIndexInside means filtered index.\n */\n// TODO: TYPE more specified payload types.\n\nexport function makeHighDownBatch(batch, visualMapModel) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batchItem.dataIndex != null) {\n batchItem.dataIndexInside = batchItem.dataIndex;\n batchItem.dataIndex = null;\n }\n\n batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : '');\n });\n return batch;\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport LinearGradient from 'zrender/lib/graphic/LinearGradient';\nimport * as eventTool from 'zrender/lib/core/event';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport * as numberUtil from '../../util/number';\nimport sliderMove from '../helper/sliderMove';\nimport * as helper from './helper';\nimport * as modelUtil from '../../util/model';\nimport { parsePercent } from 'zrender/lib/contain/text';\nimport { setAsHighDownDispatcher } from '../../util/states';\nimport { createSymbol } from '../../util/symbol';\nimport ZRImage from 'zrender/lib/graphic/Image';\nimport { getECData } from '../../util/innerStore';\nvar linearMap = numberUtil.linearMap;\nvar each = zrUtil.each;\nvar mathMin = Math.min;\nvar mathMax = Math.max; // Arbitrary value\n\nvar HOVER_LINK_SIZE = 12;\nvar HOVER_LINK_OUT = 6; // Notice:\n// Any \"interval\" should be by the order of [low, high].\n// \"handle0\" (handleIndex === 0) maps to\n// low data value: this._dataInterval[0] and has low coord.\n// \"handle1\" (handleIndex === 1) maps to\n// high data value: this._dataInterval[1] and has high coord.\n// The logic of transform is implemented in this._createBarGroup.\n\nvar ContinuousView =\n/** @class */\nfunction (_super) {\n __extends(ContinuousView, _super);\n\n function ContinuousView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ContinuousView.type;\n _this._shapes = {};\n _this._dataInterval = [];\n _this._handleEnds = [];\n _this._hoverLinkDataIndices = [];\n return _this;\n }\n\n ContinuousView.prototype.doRender = function (visualMapModel, ecModel, api, payload) {\n this._api = api;\n\n if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {\n this._buildView();\n }\n };\n\n ContinuousView.prototype._buildView = function () {\n this.group.removeAll();\n var visualMapModel = this.visualMapModel;\n var thisGroup = this.group;\n this._orient = visualMapModel.get('orient');\n this._useHandle = visualMapModel.get('calculable');\n\n this._resetInterval();\n\n this._renderBar(thisGroup);\n\n var dataRangeText = visualMapModel.get('text');\n\n this._renderEndsText(thisGroup, dataRangeText, 0);\n\n this._renderEndsText(thisGroup, dataRangeText, 1); // Do this for background size calculation.\n\n\n this._updateView(true); // After updating view, inner shapes is built completely,\n // and then background can be rendered.\n\n\n this.renderBackground(thisGroup); // Real update view\n\n this._updateView();\n\n this._enableHoverLinkToSeries();\n\n this._enableHoverLinkFromSeries();\n\n this.positionGroup(thisGroup);\n };\n\n ContinuousView.prototype._renderEndsText = function (group, dataRangeText, endsIndex) {\n if (!dataRangeText) {\n return;\n } // Compatible with ec2, text[0] map to high value, text[1] map low value.\n\n\n var text = dataRangeText[1 - endsIndex];\n text = text != null ? text + '' : '';\n var visualMapModel = this.visualMapModel;\n var textGap = visualMapModel.get('textGap');\n var itemSize = visualMapModel.itemSize;\n var barGroup = this._shapes.mainGroup;\n\n var position = this._applyTransform([itemSize[0] / 2, endsIndex === 0 ? -textGap : itemSize[1] + textGap], barGroup);\n\n var align = this._applyTransform(endsIndex === 0 ? 'bottom' : 'top', barGroup);\n\n var orient = this._orient;\n var textStyleModel = this.visualMapModel.textStyleModel;\n this.group.add(new graphic.Text({\n style: {\n x: position[0],\n y: position[1],\n verticalAlign: orient === 'horizontal' ? 'middle' : align,\n align: orient === 'horizontal' ? align : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n };\n\n ContinuousView.prototype._renderBar = function (targetGroup) {\n var visualMapModel = this.visualMapModel;\n var shapes = this._shapes;\n var itemSize = visualMapModel.itemSize;\n var orient = this._orient;\n var useHandle = this._useHandle;\n var itemAlign = helper.getItemAlign(visualMapModel, this.api, itemSize);\n\n var mainGroup = shapes.mainGroup = this._createBarGroup(itemAlign);\n\n var gradientBarGroup = new graphic.Group();\n mainGroup.add(gradientBarGroup); // Bar\n\n gradientBarGroup.add(shapes.outOfRange = createPolygon());\n gradientBarGroup.add(shapes.inRange = createPolygon(null, useHandle ? getCursor(this._orient) : null, zrUtil.bind(this._dragHandle, this, 'all', false), zrUtil.bind(this._dragHandle, this, 'all', true))); // A border radius clip.\n\n gradientBarGroup.setClipPath(new graphic.Rect({\n shape: {\n x: 0,\n y: 0,\n width: itemSize[0],\n height: itemSize[1],\n r: 3\n }\n }));\n var textRect = visualMapModel.textStyleModel.getTextRect('国');\n var textSize = mathMax(textRect.width, textRect.height); // Handle\n\n if (useHandle) {\n shapes.handleThumbs = [];\n shapes.handleLabels = [];\n shapes.handleLabelPoints = [];\n\n this._createHandle(visualMapModel, mainGroup, 0, itemSize, textSize, orient);\n\n this._createHandle(visualMapModel, mainGroup, 1, itemSize, textSize, orient);\n }\n\n this._createIndicator(visualMapModel, mainGroup, itemSize, textSize, orient);\n\n targetGroup.add(mainGroup);\n };\n\n ContinuousView.prototype._createHandle = function (visualMapModel, mainGroup, handleIndex, itemSize, textSize, orient) {\n var onDrift = zrUtil.bind(this._dragHandle, this, handleIndex, false);\n var onDragEnd = zrUtil.bind(this._dragHandle, this, handleIndex, true);\n var handleSize = parsePercent(visualMapModel.get('handleSize'), itemSize[0]);\n var handleThumb = createSymbol(visualMapModel.get('handleIcon'), -handleSize / 2, -handleSize / 2, handleSize, handleSize, null, true);\n var cursor = getCursor(this._orient);\n handleThumb.attr({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n ondragend: onDragEnd,\n onmousemove: function (e) {\n eventTool.stop(e.event);\n }\n });\n handleThumb.x = itemSize[0] / 2;\n handleThumb.useStyle(visualMapModel.getModel('handleStyle').getItemStyle());\n handleThumb.setStyle({\n strokeNoScale: true,\n strokeFirst: true\n });\n handleThumb.style.lineWidth *= 2;\n handleThumb.ensureState('emphasis').style = visualMapModel.getModel(['emphasis', 'handleStyle']).getItemStyle();\n setAsHighDownDispatcher(handleThumb, true);\n mainGroup.add(handleThumb); // Text is always horizontal layout but should not be effected by\n // transform (orient/inverse). So label is built separately but not\n // use zrender/graphic/helper/RectText, and is located based on view\n // group (according to handleLabelPoint) but not barGroup.\n\n var textStyleModel = this.visualMapModel.textStyleModel;\n var handleLabel = new graphic.Text({\n cursor: cursor,\n draggable: true,\n drift: onDrift,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd,\n style: {\n x: 0,\n y: 0,\n text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n handleLabel.ensureState('blur').style = {\n opacity: 0.1\n };\n handleLabel.stateTransition = {\n duration: 200\n };\n this.group.add(handleLabel);\n var handleLabelPoint = [handleSize, 0];\n var shapes = this._shapes;\n shapes.handleThumbs[handleIndex] = handleThumb;\n shapes.handleLabelPoints[handleIndex] = handleLabelPoint;\n shapes.handleLabels[handleIndex] = handleLabel;\n };\n\n ContinuousView.prototype._createIndicator = function (visualMapModel, mainGroup, itemSize, textSize, orient) {\n var scale = parsePercent(visualMapModel.get('indicatorSize'), itemSize[0]);\n var indicator = createSymbol(visualMapModel.get('indicatorIcon'), -scale / 2, -scale / 2, scale, scale, null, true);\n indicator.attr({\n cursor: 'move',\n invisible: true,\n silent: true,\n x: itemSize[0] / 2\n });\n var indicatorStyle = visualMapModel.getModel('indicatorStyle').getItemStyle();\n\n if (indicator instanceof ZRImage) {\n var pathStyle = indicator.style;\n indicator.useStyle(zrUtil.extend({\n // TODO other properties like x, y ?\n image: pathStyle.image,\n x: pathStyle.x,\n y: pathStyle.y,\n width: pathStyle.width,\n height: pathStyle.height\n }, indicatorStyle));\n } else {\n indicator.useStyle(indicatorStyle);\n }\n\n mainGroup.add(indicator);\n var textStyleModel = this.visualMapModel.textStyleModel;\n var indicatorLabel = new graphic.Text({\n silent: true,\n invisible: true,\n style: {\n x: 0,\n y: 0,\n text: '',\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n });\n this.group.add(indicatorLabel);\n var indicatorLabelPoint = [(orient === 'horizontal' ? textSize / 2 : HOVER_LINK_OUT) + itemSize[0] / 2, 0];\n var shapes = this._shapes;\n shapes.indicator = indicator;\n shapes.indicatorLabel = indicatorLabel;\n shapes.indicatorLabelPoint = indicatorLabelPoint;\n this._firstShowIndicator = true;\n };\n\n ContinuousView.prototype._dragHandle = function (handleIndex, isEnd, // dx is event from ondragend if isEnd is true. It's not used\n dx, dy) {\n if (!this._useHandle) {\n return;\n }\n\n this._dragging = !isEnd;\n\n if (!isEnd) {\n // Transform dx, dy to bar coordination.\n var vertex = this._applyTransform([dx, dy], this._shapes.mainGroup, true);\n\n this._updateInterval(handleIndex, vertex[1]);\n\n this._hideIndicator(); // Considering realtime, update view should be executed\n // before dispatch action.\n\n\n this._updateView();\n } // dragEnd do not dispatch action when realtime.\n\n\n if (isEnd === !this.visualMapModel.get('realtime')) {\n // jshint ignore:line\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: this._dataInterval.slice()\n });\n }\n\n if (isEnd) {\n !this._hovering && this._clearHoverLinkToSeries();\n } else if (useHoverLinkOnHandle(this.visualMapModel)) {\n this._doHoverLinkToSeries(this._handleEnds[handleIndex], false);\n }\n };\n\n ContinuousView.prototype._resetInterval = function () {\n var visualMapModel = this.visualMapModel;\n var dataInterval = this._dataInterval = visualMapModel.getSelected();\n var dataExtent = visualMapModel.getExtent();\n var sizeExtent = [0, visualMapModel.itemSize[1]];\n this._handleEnds = [linearMap(dataInterval[0], dataExtent, sizeExtent, true), linearMap(dataInterval[1], dataExtent, sizeExtent, true)];\n };\n /**\n * @private\n * @param {(number|string)} handleIndex 0 or 1 or 'all'\n * @param {number} dx\n * @param {number} dy\n */\n\n\n ContinuousView.prototype._updateInterval = function (handleIndex, delta) {\n delta = delta || 0;\n var visualMapModel = this.visualMapModel;\n var handleEnds = this._handleEnds;\n var sizeExtent = [0, visualMapModel.itemSize[1]];\n sliderMove(delta, handleEnds, sizeExtent, handleIndex, // cross is forbiden\n 0);\n var dataExtent = visualMapModel.getExtent(); // Update data interval.\n\n this._dataInterval = [linearMap(handleEnds[0], sizeExtent, dataExtent, true), linearMap(handleEnds[1], sizeExtent, dataExtent, true)];\n };\n\n ContinuousView.prototype._updateView = function (forSketch) {\n var visualMapModel = this.visualMapModel;\n var dataExtent = visualMapModel.getExtent();\n var shapes = this._shapes;\n var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];\n var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;\n\n var visualInRange = this._createBarVisual(this._dataInterval, dataExtent, inRangeHandleEnds, 'inRange');\n\n var visualOutOfRange = this._createBarVisual(dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange');\n\n shapes.inRange.setStyle({\n fill: visualInRange.barColor // opacity: visualInRange.opacity\n\n }).setShape('points', visualInRange.barPoints);\n shapes.outOfRange.setStyle({\n fill: visualOutOfRange.barColor // opacity: visualOutOfRange.opacity\n\n }).setShape('points', visualOutOfRange.barPoints);\n\n this._updateHandle(inRangeHandleEnds, visualInRange);\n };\n\n ContinuousView.prototype._createBarVisual = function (dataInterval, dataExtent, handleEnds, forceState) {\n var opts = {\n forceState: forceState,\n convertOpacityToAlpha: true\n };\n\n var colorStops = this._makeColorGradient(dataInterval, opts);\n\n var symbolSizes = [this.getControllerVisual(dataInterval[0], 'symbolSize', opts), this.getControllerVisual(dataInterval[1], 'symbolSize', opts)];\n\n var barPoints = this._createBarPoints(handleEnds, symbolSizes);\n\n return {\n barColor: new LinearGradient(0, 0, 0, 1, colorStops),\n barPoints: barPoints,\n handlesColor: [colorStops[0].color, colorStops[colorStops.length - 1].color]\n };\n };\n\n ContinuousView.prototype._makeColorGradient = function (dataInterval, opts) {\n // Considering colorHue, which is not linear, so we have to sample\n // to calculate gradient color stops, but not only caculate head\n // and tail.\n var sampleNumber = 100; // Arbitrary value.\n\n var colorStops = [];\n var step = (dataInterval[1] - dataInterval[0]) / sampleNumber;\n colorStops.push({\n color: this.getControllerVisual(dataInterval[0], 'color', opts),\n offset: 0\n });\n\n for (var i = 1; i < sampleNumber; i++) {\n var currValue = dataInterval[0] + step * i;\n\n if (currValue > dataInterval[1]) {\n break;\n }\n\n colorStops.push({\n color: this.getControllerVisual(currValue, 'color', opts),\n offset: i / sampleNumber\n });\n }\n\n colorStops.push({\n color: this.getControllerVisual(dataInterval[1], 'color', opts),\n offset: 1\n });\n return colorStops;\n };\n\n ContinuousView.prototype._createBarPoints = function (handleEnds, symbolSizes) {\n var itemSize = this.visualMapModel.itemSize;\n return [[itemSize[0] - symbolSizes[0], handleEnds[0]], [itemSize[0], handleEnds[0]], [itemSize[0], handleEnds[1]], [itemSize[0] - symbolSizes[1], handleEnds[1]]];\n };\n\n ContinuousView.prototype._createBarGroup = function (itemAlign) {\n var orient = this._orient;\n var inverse = this.visualMapModel.get('inverse');\n return new graphic.Group(orient === 'horizontal' && !inverse ? {\n scaleX: itemAlign === 'bottom' ? 1 : -1,\n rotation: Math.PI / 2\n } : orient === 'horizontal' && inverse ? {\n scaleX: itemAlign === 'bottom' ? -1 : 1,\n rotation: -Math.PI / 2\n } : orient === 'vertical' && !inverse ? {\n scaleX: itemAlign === 'left' ? 1 : -1,\n scaleY: -1\n } : {\n scaleX: itemAlign === 'left' ? 1 : -1\n });\n };\n\n ContinuousView.prototype._updateHandle = function (handleEnds, visualInRange) {\n if (!this._useHandle) {\n return;\n }\n\n var shapes = this._shapes;\n var visualMapModel = this.visualMapModel;\n var handleThumbs = shapes.handleThumbs;\n var handleLabels = shapes.handleLabels;\n var itemSize = visualMapModel.itemSize;\n var dataExtent = visualMapModel.getExtent();\n each([0, 1], function (handleIndex) {\n var handleThumb = handleThumbs[handleIndex];\n handleThumb.setStyle('fill', visualInRange.handlesColor[handleIndex]);\n handleThumb.y = handleEnds[handleIndex];\n var val = linearMap(handleEnds[handleIndex], [0, itemSize[1]], dataExtent, true);\n var symbolSize = this.getControllerVisual(val, 'symbolSize');\n handleThumb.scaleX = handleThumb.scaleY = symbolSize / itemSize[0];\n handleThumb.x = itemSize[0] - symbolSize / 2; // Update handle label position.\n\n var textPoint = graphic.applyTransform(shapes.handleLabelPoints[handleIndex], graphic.getTransform(handleThumb, this.group));\n handleLabels[handleIndex].setStyle({\n x: textPoint[0],\n y: textPoint[1],\n text: visualMapModel.formatValueText(this._dataInterval[handleIndex]),\n verticalAlign: 'middle',\n align: this._orient === 'vertical' ? this._applyTransform('left', shapes.mainGroup) : 'center'\n });\n }, this);\n };\n\n ContinuousView.prototype._showIndicator = function (cursorValue, textValue, rangeSymbol, halfHoverLinkSize) {\n var visualMapModel = this.visualMapModel;\n var dataExtent = visualMapModel.getExtent();\n var itemSize = visualMapModel.itemSize;\n var sizeExtent = [0, itemSize[1]];\n var shapes = this._shapes;\n var indicator = shapes.indicator;\n\n if (!indicator) {\n return;\n }\n\n indicator.attr('invisible', false);\n var opts = {\n convertOpacityToAlpha: true\n };\n var color = this.getControllerVisual(cursorValue, 'color', opts);\n var symbolSize = this.getControllerVisual(cursorValue, 'symbolSize');\n var y = linearMap(cursorValue, dataExtent, sizeExtent, true);\n var x = itemSize[0] - symbolSize / 2;\n var oldIndicatorPos = {\n x: indicator.x,\n y: indicator.y\n }; // Update handle label position.\n\n indicator.y = y;\n indicator.x = x;\n var textPoint = graphic.applyTransform(shapes.indicatorLabelPoint, graphic.getTransform(indicator, this.group));\n var indicatorLabel = shapes.indicatorLabel;\n indicatorLabel.attr('invisible', false);\n\n var align = this._applyTransform('left', shapes.mainGroup);\n\n var orient = this._orient;\n var isHorizontal = orient === 'horizontal';\n indicatorLabel.setStyle({\n text: (rangeSymbol ? rangeSymbol : '') + visualMapModel.formatValueText(textValue),\n verticalAlign: isHorizontal ? align : 'middle',\n align: isHorizontal ? 'center' : align\n });\n var indicatorNewProps = {\n x: x,\n y: y,\n style: {\n fill: color\n }\n };\n var labelNewProps = {\n style: {\n x: textPoint[0],\n y: textPoint[1]\n }\n };\n\n if (visualMapModel.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {\n var animationCfg = {\n duration: 100,\n easing: 'cubicInOut',\n additive: true\n };\n indicator.x = oldIndicatorPos.x;\n indicator.y = oldIndicatorPos.y;\n indicator.animateTo(indicatorNewProps, animationCfg);\n indicatorLabel.animateTo(labelNewProps, animationCfg);\n } else {\n indicator.attr(indicatorNewProps);\n indicatorLabel.attr(labelNewProps);\n }\n\n this._firstShowIndicator = false;\n var handleLabels = this._shapes.handleLabels;\n\n if (handleLabels) {\n for (var i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.enterBlur(handleLabels[i]);\n }\n }\n };\n\n ContinuousView.prototype._enableHoverLinkToSeries = function () {\n var self = this;\n\n this._shapes.mainGroup.on('mousemove', function (e) {\n self._hovering = true;\n\n if (!self._dragging) {\n var itemSize = self.visualMapModel.itemSize;\n\n var pos = self._applyTransform([e.offsetX, e.offsetY], self._shapes.mainGroup, true, true); // For hover link show when hover handle, which might be\n // below or upper than sizeExtent.\n\n\n pos[1] = mathMin(mathMax(0, pos[1]), itemSize[1]);\n\n self._doHoverLinkToSeries(pos[1], 0 <= pos[0] && pos[0] <= itemSize[0]);\n }\n }).on('mouseout', function () {\n // When mouse is out of handle, hoverLink still need\n // to be displayed when realtime is set as false.\n self._hovering = false;\n !self._dragging && self._clearHoverLinkToSeries();\n });\n };\n\n ContinuousView.prototype._enableHoverLinkFromSeries = function () {\n var zr = this.api.getZr();\n\n if (this.visualMapModel.option.hoverLink) {\n zr.on('mouseover', this._hoverLinkFromSeriesMouseOver, this);\n zr.on('mouseout', this._hideIndicator, this);\n } else {\n this._clearHoverLinkFromSeries();\n }\n };\n\n ContinuousView.prototype._doHoverLinkToSeries = function (cursorPos, hoverOnBar) {\n var visualMapModel = this.visualMapModel;\n var itemSize = visualMapModel.itemSize;\n\n if (!visualMapModel.option.hoverLink) {\n return;\n }\n\n var sizeExtent = [0, itemSize[1]];\n var dataExtent = visualMapModel.getExtent(); // For hover link show when hover handle, which might be below or upper than sizeExtent.\n\n cursorPos = mathMin(mathMax(sizeExtent[0], cursorPos), sizeExtent[1]);\n var halfHoverLinkSize = getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent);\n var hoverRange = [cursorPos - halfHoverLinkSize, cursorPos + halfHoverLinkSize];\n var cursorValue = linearMap(cursorPos, sizeExtent, dataExtent, true);\n var valueRange = [linearMap(hoverRange[0], sizeExtent, dataExtent, true), linearMap(hoverRange[1], sizeExtent, dataExtent, true)]; // Consider data range is out of visualMap range, see test/visualMap-continuous.html,\n // where china and india has very large population.\n\n hoverRange[0] < sizeExtent[0] && (valueRange[0] = -Infinity);\n hoverRange[1] > sizeExtent[1] && (valueRange[1] = Infinity); // Do not show indicator when mouse is over handle,\n // otherwise labels overlap, especially when dragging.\n\n if (hoverOnBar) {\n if (valueRange[0] === -Infinity) {\n this._showIndicator(cursorValue, valueRange[1], '< ', halfHoverLinkSize);\n } else if (valueRange[1] === Infinity) {\n this._showIndicator(cursorValue, valueRange[0], '> ', halfHoverLinkSize);\n } else {\n this._showIndicator(cursorValue, cursorValue, '≈ ', halfHoverLinkSize);\n }\n } // When realtime is set as false, handles, which are in barGroup,\n // also trigger hoverLink, which help user to realize where they\n // focus on when dragging. (see test/heatmap-large.html)\n // When realtime is set as true, highlight will not show when hover\n // handle, because the label on handle, which displays a exact value\n // but not range, might mislead users.\n\n\n var oldBatch = this._hoverLinkDataIndices;\n var newBatch = [];\n\n if (hoverOnBar || useHoverLinkOnHandle(visualMapModel)) {\n newBatch = this._hoverLinkDataIndices = visualMapModel.findTargetDataIndices(valueRange);\n }\n\n var resultBatches = modelUtil.compressBatches(oldBatch, newBatch);\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(resultBatches[0], visualMapModel));\n\n this._dispatchHighDown('highlight', helper.makeHighDownBatch(resultBatches[1], visualMapModel));\n };\n\n ContinuousView.prototype._hoverLinkFromSeriesMouseOver = function (e) {\n var el = e.target;\n var visualMapModel = this.visualMapModel;\n\n if (!el || getECData(el).dataIndex == null) {\n return;\n }\n\n var ecData = getECData(el);\n var dataModel = this.ecModel.getSeriesByIndex(ecData.seriesIndex);\n\n if (!visualMapModel.isTargetSeries(dataModel)) {\n return;\n }\n\n var data = dataModel.getData(ecData.dataType);\n var value = data.get(visualMapModel.getDataDimension(data), ecData.dataIndex);\n\n if (!isNaN(value)) {\n this._showIndicator(value, value);\n }\n };\n\n ContinuousView.prototype._hideIndicator = function () {\n var shapes = this._shapes;\n shapes.indicator && shapes.indicator.attr('invisible', true);\n shapes.indicatorLabel && shapes.indicatorLabel.attr('invisible', true);\n var handleLabels = this._shapes.handleLabels;\n\n if (handleLabels) {\n for (var i = 0; i < handleLabels.length; i++) {\n // Fade out handle labels.\n // NOTE: Must use api enter/leave on emphasis/blur/select state. Or the global states manager will change it.\n this._api.leaveBlur(handleLabels[i]);\n }\n }\n };\n\n ContinuousView.prototype._clearHoverLinkToSeries = function () {\n this._hideIndicator();\n\n var indices = this._hoverLinkDataIndices;\n\n this._dispatchHighDown('downplay', helper.makeHighDownBatch(indices, this.visualMapModel));\n\n indices.length = 0;\n };\n\n ContinuousView.prototype._clearHoverLinkFromSeries = function () {\n this._hideIndicator();\n\n var zr = this.api.getZr();\n zr.off('mouseover', this._hoverLinkFromSeriesMouseOver);\n zr.off('mouseout', this._hideIndicator);\n };\n\n ContinuousView.prototype._applyTransform = function (vertex, element, inverse, global) {\n var transform = graphic.getTransform(element, global ? null : this.group);\n return zrUtil.isArray(vertex) ? graphic.applyTransform(vertex, transform, inverse) : graphic.transformDirection(vertex, transform, inverse);\n }; // TODO: TYPE more specified payload types.\n\n\n ContinuousView.prototype._dispatchHighDown = function (type, batch) {\n batch && batch.length && this.api.dispatchAction({\n type: type,\n batch: batch\n });\n };\n /**\n * @override\n */\n\n\n ContinuousView.prototype.dispose = function () {\n this._clearHoverLinkFromSeries();\n\n this._clearHoverLinkToSeries();\n };\n /**\n * @override\n */\n\n\n ContinuousView.prototype.remove = function () {\n this._clearHoverLinkFromSeries();\n\n this._clearHoverLinkToSeries();\n };\n\n ContinuousView.type = 'visualMap.continuous';\n return ContinuousView;\n}(VisualMapView);\n\nfunction createPolygon(points, cursor, onDrift, onDragEnd) {\n return new graphic.Polygon({\n shape: {\n points: points\n },\n draggable: !!onDrift,\n cursor: cursor,\n drift: onDrift,\n onmousemove: function (e) {\n // Fot mobile devicem, prevent screen slider on the button.\n eventTool.stop(e.event);\n },\n ondragend: onDragEnd\n });\n}\n\nfunction getHalfHoverLinkSize(visualMapModel, dataExtent, sizeExtent) {\n var halfHoverLinkSize = HOVER_LINK_SIZE / 2;\n var hoverLinkDataSize = visualMapModel.get('hoverLinkDataSize');\n\n if (hoverLinkDataSize) {\n halfHoverLinkSize = linearMap(hoverLinkDataSize, dataExtent, sizeExtent, true) / 2;\n }\n\n return halfHoverLinkSize;\n}\n\nfunction useHoverLinkOnHandle(visualMapModel) {\n var hoverLinkOnHandle = visualMapModel.get('hoverLinkOnHandle');\n return !!(hoverLinkOnHandle == null ? visualMapModel.get('realtime') : hoverLinkOnHandle);\n}\n\nfunction getCursor(orient) {\n return orient === 'vertical' ? 'ns-resize' : 'ew-resize';\n}\n\nexport default ContinuousView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport var visualMapActionInfo = {\n type: 'selectDataRange',\n event: 'dataRangeSelected',\n // FIXME use updateView appears wrong\n update: 'update'\n};\nexport var visualMapActionHander = function (payload, ecModel) {\n ecModel.eachComponent({\n mainType: 'visualMap',\n query: payload\n }, function (model) {\n model.setSelected(payload.selected);\n });\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport * as visualSolution from '../../visual/visualSolution';\nimport VisualMapping from '../../visual/VisualMapping';\nimport { getVisualFromData } from '../../visual/helper';\nexport var visualMapEncodingHandlers = [{\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n var resetDefines = [];\n ecModel.eachComponent('visualMap', function (visualMapModel) {\n var pipelineContext = seriesModel.pipelineContext;\n\n if (!visualMapModel.isTargetSeries(seriesModel) || pipelineContext && pipelineContext.large) {\n return;\n }\n\n resetDefines.push(visualSolution.incrementalApplyVisual(visualMapModel.stateList, visualMapModel.targetVisuals, zrUtil.bind(visualMapModel.getValueState, visualMapModel), visualMapModel.getDataDimension(seriesModel.getData())));\n });\n return resetDefines;\n }\n}, // Only support color.\n{\n createOnAllSeries: true,\n reset: function (seriesModel, ecModel) {\n var data = seriesModel.getData();\n var visualMetaList = [];\n ecModel.eachComponent('visualMap', function (visualMapModel) {\n if (visualMapModel.isTargetSeries(seriesModel)) {\n var visualMeta = visualMapModel.getVisualMeta(zrUtil.bind(getColorVisual, null, seriesModel, visualMapModel)) || {\n stops: [],\n outerColors: []\n };\n var concreteDim = visualMapModel.getDataDimension(data);\n var dimInfo = data.getDimensionInfo(concreteDim);\n\n if (dimInfo != null) {\n // visualMeta.dimension should be dimension index, but not concrete dimension.\n visualMeta.dimension = dimInfo.index;\n visualMetaList.push(visualMeta);\n }\n }\n }); // console.log(JSON.stringify(visualMetaList.map(a => a.stops)));\n\n seriesModel.getData().setVisual('visualMeta', visualMetaList);\n }\n}]; // FIXME\n// performance and export for heatmap?\n// value can be Infinity or -Infinity\n\nfunction getColorVisual(seriesModel, visualMapModel, value, valueState) {\n var mappings = visualMapModel.targetVisuals[valueState];\n var visualTypes = VisualMapping.prepareVisualTypes(mappings);\n var resultVisual = {\n color: getVisualFromData(seriesModel.getData(), 'color') // default color.\n\n };\n\n for (var i = 0, len = visualTypes.length; i < len; i++) {\n var type = visualTypes[i];\n var mapping = mappings[type === 'opacity' ? '__alphaForOpacity' : type];\n mapping && mapping.applyVisual(value, getVisual, setVisual);\n }\n\n return resultVisual.color;\n\n function getVisual(key) {\n return resultVisual[key];\n }\n\n function setVisual(key, value) {\n resultVisual[key] = value;\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util';\nvar each = zrUtil.each;\nexport default function visualMapPreprocessor(option) {\n var visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n } // rename splitList to pieces\n\n\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n var pieces = opt.pieces;\n\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj, name) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { visualMapActionInfo, visualMapActionHander } from './visualMapAction';\nimport { visualMapEncodingHandlers } from './visualEncoding';\nimport { each } from 'zrender/lib/core/util';\nimport preprocessor from './preprocessor';\nvar installed = false;\nexport default function installCommon(registers) {\n if (installed) {\n return;\n }\n\n installed = true;\n registers.registerSubTypeDefaulter('visualMap', function (option) {\n // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.\n return !option.categories && (!(option.pieces ? option.pieces.length > 0 : option.splitNumber > 0) || option.calculable) ? 'continuous' : 'piecewise';\n });\n registers.registerAction(visualMapActionInfo, visualMapActionHander);\n each(visualMapEncodingHandlers, function (handler) {\n registers.registerVisual(registers.PRIORITY.VISUAL.COMPONENT, handler);\n });\n registers.registerPreprocessor(preprocessor);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ContinuousModel from './ContinuousModel';\nimport ContinuousView from './ContinuousView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(ContinuousModel);\n registers.registerComponentView(ContinuousView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapModel from './VisualMapModel';\nimport VisualMapping from '../../visual/VisualMapping';\nimport visualDefault from '../../visual/visualDefault';\nimport { reformIntervals } from '../../util/number';\nimport { inheritDefaultOption } from '../../util/component';\n\nvar PiecewiseModel =\n/** @class */\nfunction (_super) {\n __extends(PiecewiseModel, _super);\n\n function PiecewiseModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PiecewiseModel.type;\n /**\n * The order is always [low, ..., high].\n * [{text: string, interval: Array.}, ...]\n */\n\n _this._pieceList = [];\n return _this;\n }\n\n PiecewiseModel.prototype.optionUpdated = function (newOption, isInit) {\n _super.prototype.optionUpdated.apply(this, arguments);\n\n this.resetExtent();\n\n var mode = this._mode = this._determineMode();\n\n this._pieceList = [];\n\n resetMethods[this._mode].call(this, this._pieceList);\n\n this._resetSelected(newOption, isInit);\n\n var categories = this.option.categories;\n this.resetVisual(function (mappingOption, state) {\n if (mode === 'categories') {\n mappingOption.mappingMethod = 'category';\n mappingOption.categories = zrUtil.clone(categories);\n } else {\n mappingOption.dataExtent = this.getExtent();\n mappingOption.mappingMethod = 'piecewise';\n mappingOption.pieceList = zrUtil.map(this._pieceList, function (piece) {\n piece = zrUtil.clone(piece);\n\n if (state !== 'inRange') {\n // FIXME\n // outOfRange do not support special visual in pieces.\n piece.visual = null;\n }\n\n return piece;\n });\n }\n });\n };\n /**\n * @protected\n * @override\n */\n\n\n PiecewiseModel.prototype.completeVisualOption = function () {\n // Consider this case:\n // visualMap: {\n // pieces: [{symbol: 'circle', lt: 0}, {symbol: 'rect', gte: 0}]\n // }\n // where no inRange/outOfRange set but only pieces. So we should make\n // default inRange/outOfRange for this case, otherwise visuals that only\n // appear in `pieces` will not be taken into account in visual encoding.\n var option = this.option;\n var visualTypesInPieces = {};\n var visualTypes = VisualMapping.listVisualTypes();\n var isCategory = this.isCategory();\n zrUtil.each(option.pieces, function (piece) {\n zrUtil.each(visualTypes, function (visualType) {\n if (piece.hasOwnProperty(visualType)) {\n visualTypesInPieces[visualType] = 1;\n }\n });\n });\n zrUtil.each(visualTypesInPieces, function (v, visualType) {\n var exists = false;\n zrUtil.each(this.stateList, function (state) {\n exists = exists || has(option, state, visualType) || has(option.target, state, visualType);\n }, this);\n !exists && zrUtil.each(this.stateList, function (state) {\n (option[state] || (option[state] = {}))[visualType] = visualDefault.get(visualType, state === 'inRange' ? 'active' : 'inactive', isCategory);\n });\n }, this);\n\n function has(obj, state, visualType) {\n return obj && obj[state] && obj[state].hasOwnProperty(visualType);\n }\n\n _super.prototype.completeVisualOption.apply(this, arguments);\n };\n\n PiecewiseModel.prototype._resetSelected = function (newOption, isInit) {\n var thisOption = this.option;\n var pieceList = this._pieceList; // Selected do not merge but all override.\n\n var selected = (isInit ? thisOption : newOption).selected || {};\n thisOption.selected = selected; // Consider 'not specified' means true.\n\n zrUtil.each(pieceList, function (piece, index) {\n var key = this.getSelectedMapKey(piece);\n\n if (!selected.hasOwnProperty(key)) {\n selected[key] = true;\n }\n }, this);\n\n if (thisOption.selectedMode === 'single') {\n // Ensure there is only one selected.\n var hasSel_1 = false;\n zrUtil.each(pieceList, function (piece, index) {\n var key = this.getSelectedMapKey(piece);\n\n if (selected[key]) {\n hasSel_1 ? selected[key] = false : hasSel_1 = true;\n }\n }, this);\n } // thisOption.selectedMode === 'multiple', default: all selected.\n\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getItemSymbol = function () {\n return this.get('itemSymbol');\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getSelectedMapKey = function (piece) {\n return this._mode === 'categories' ? piece.value + '' : piece.index + '';\n };\n /**\n * @public\n */\n\n\n PiecewiseModel.prototype.getPieceList = function () {\n return this._pieceList;\n };\n /**\n * @return {string}\n */\n\n\n PiecewiseModel.prototype._determineMode = function () {\n var option = this.option;\n return option.pieces && option.pieces.length > 0 ? 'pieces' : this.option.categories ? 'categories' : 'splitNumber';\n };\n /**\n * @override\n */\n\n\n PiecewiseModel.prototype.setSelected = function (selected) {\n this.option.selected = zrUtil.clone(selected);\n };\n /**\n * @override\n */\n\n\n PiecewiseModel.prototype.getValueState = function (value) {\n var index = VisualMapping.findPieceIndex(value, this._pieceList);\n return index != null ? this.option.selected[this.getSelectedMapKey(this._pieceList[index])] ? 'inRange' : 'outOfRange' : 'outOfRange';\n };\n /**\n * @public\n * @param pieceIndex piece index in visualMapModel.getPieceList()\n */\n\n\n PiecewiseModel.prototype.findTargetDataIndices = function (pieceIndex) {\n var result = [];\n var pieceList = this._pieceList;\n this.eachTargetSeries(function (seriesModel) {\n var dataIndices = [];\n var data = seriesModel.getData();\n data.each(this.getDataDimension(data), function (value, dataIndex) {\n // Should always base on model pieceList, because it is order sensitive.\n var pIdx = VisualMapping.findPieceIndex(value, pieceList);\n pIdx === pieceIndex && dataIndices.push(dataIndex);\n }, this);\n result.push({\n seriesId: seriesModel.id,\n dataIndex: dataIndices\n });\n }, this);\n return result;\n };\n /**\n * @private\n * @param piece piece.value or piece.interval is required.\n * @return Can be Infinity or -Infinity\n */\n\n\n PiecewiseModel.prototype.getRepresentValue = function (piece) {\n var representValue;\n\n if (this.isCategory()) {\n representValue = piece.value;\n } else {\n if (piece.value != null) {\n representValue = piece.value;\n } else {\n var pieceInterval = piece.interval || [];\n representValue = pieceInterval[0] === -Infinity && pieceInterval[1] === Infinity ? 0 : (pieceInterval[0] + pieceInterval[1]) / 2;\n }\n }\n\n return representValue;\n };\n\n PiecewiseModel.prototype.getVisualMeta = function (getColorVisual) {\n // Do not support category. (category axis is ordinal, numerical)\n if (this.isCategory()) {\n return;\n }\n\n var stops = [];\n var outerColors = ['', ''];\n var visualMapModel = this;\n\n function setStop(interval, valueState) {\n var representValue = visualMapModel.getRepresentValue({\n interval: interval\n }); // Not category\n\n if (!valueState) {\n valueState = visualMapModel.getValueState(representValue);\n }\n\n var color = getColorVisual(representValue, valueState);\n\n if (interval[0] === -Infinity) {\n outerColors[0] = color;\n } else if (interval[1] === Infinity) {\n outerColors[1] = color;\n } else {\n stops.push({\n value: interval[0],\n color: color\n }, {\n value: interval[1],\n color: color\n });\n }\n } // Suplement\n\n\n var pieceList = this._pieceList.slice();\n\n if (!pieceList.length) {\n pieceList.push({\n interval: [-Infinity, Infinity]\n });\n } else {\n var edge = pieceList[0].interval[0];\n edge !== -Infinity && pieceList.unshift({\n interval: [-Infinity, edge]\n });\n edge = pieceList[pieceList.length - 1].interval[1];\n edge !== Infinity && pieceList.push({\n interval: [edge, Infinity]\n });\n }\n\n var curr = -Infinity;\n zrUtil.each(pieceList, function (piece) {\n var interval = piece.interval;\n\n if (interval) {\n // Fulfill gap.\n interval[0] > curr && setStop([curr, interval[0]], 'outOfRange');\n setStop(interval.slice());\n curr = interval[1];\n }\n }, this);\n return {\n stops: stops,\n outerColors: outerColors\n };\n };\n\n PiecewiseModel.type = 'visualMap.piecewise';\n PiecewiseModel.defaultOption = inheritDefaultOption(VisualMapModel.defaultOption, {\n selected: null,\n minOpen: false,\n maxOpen: false,\n align: 'auto',\n itemWidth: 20,\n itemHeight: 14,\n itemSymbol: 'roundRect',\n pieces: null,\n categories: null,\n splitNumber: 5,\n selectedMode: 'multiple',\n itemGap: 10,\n hoverLink: true // Enable hover highlight.\n\n });\n return PiecewiseModel;\n}(VisualMapModel);\n\n;\n/**\n * Key is this._mode\n * @type {Object}\n * @this {module:echarts/component/viusalMap/PiecewiseMode}\n */\n\nvar resetMethods = {\n splitNumber: function (outPieceList) {\n var thisOption = this.option;\n var precision = Math.min(thisOption.precision, 20);\n var dataExtent = this.getExtent();\n var splitNumber = thisOption.splitNumber;\n splitNumber = Math.max(parseInt(splitNumber, 10), 1);\n thisOption.splitNumber = splitNumber;\n var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber; // Precision auto-adaption\n\n while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {\n precision++;\n }\n\n thisOption.precision = precision;\n splitStep = +splitStep.toFixed(precision);\n\n if (thisOption.minOpen) {\n outPieceList.push({\n interval: [-Infinity, dataExtent[0]],\n close: [0, 0]\n });\n }\n\n for (var index = 0, curr = dataExtent[0]; index < splitNumber; curr += splitStep, index++) {\n var max = index === splitNumber - 1 ? dataExtent[1] : curr + splitStep;\n outPieceList.push({\n interval: [curr, max],\n close: [1, 1]\n });\n }\n\n if (thisOption.maxOpen) {\n outPieceList.push({\n interval: [dataExtent[1], Infinity],\n close: [0, 0]\n });\n }\n\n reformIntervals(outPieceList);\n zrUtil.each(outPieceList, function (piece, index) {\n piece.index = index;\n piece.text = this.formatValueText(piece.interval);\n }, this);\n },\n categories: function (outPieceList) {\n var thisOption = this.option;\n zrUtil.each(thisOption.categories, function (cate) {\n // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。\n // 是否改一致。\n outPieceList.push({\n text: this.formatValueText(cate, true),\n value: cate\n });\n }, this); // See \"Order Rule\".\n\n normalizeReverse(thisOption, outPieceList);\n },\n pieces: function (outPieceList) {\n var thisOption = this.option;\n zrUtil.each(thisOption.pieces, function (pieceListItem, index) {\n if (!zrUtil.isObject(pieceListItem)) {\n pieceListItem = {\n value: pieceListItem\n };\n }\n\n var item = {\n text: '',\n index: index\n };\n\n if (pieceListItem.label != null) {\n item.text = pieceListItem.label;\n }\n\n if (pieceListItem.hasOwnProperty('value')) {\n var value = item.value = pieceListItem.value;\n item.interval = [value, value];\n item.close = [1, 1];\n } else {\n // `min` `max` is legacy option.\n // `lt` `gt` `lte` `gte` is recommanded.\n var interval = item.interval = [];\n var close_1 = item.close = [0, 0];\n var closeList = [1, 0, 1];\n var infinityList = [-Infinity, Infinity];\n var useMinMax = [];\n\n for (var lg = 0; lg < 2; lg++) {\n var names = [['gte', 'gt', 'min'], ['lte', 'lt', 'max']][lg];\n\n for (var i = 0; i < 3 && interval[lg] == null; i++) {\n interval[lg] = pieceListItem[names[i]];\n close_1[lg] = closeList[i];\n useMinMax[lg] = i === 2;\n }\n\n interval[lg] == null && (interval[lg] = infinityList[lg]);\n }\n\n useMinMax[0] && interval[1] === Infinity && (close_1[0] = 0);\n useMinMax[1] && interval[0] === -Infinity && (close_1[1] = 0);\n\n if (process.env.NODE_ENV !== 'production') {\n if (interval[0] > interval[1]) {\n console.warn('Piece ' + index + 'is illegal: ' + interval + ' lower bound should not greater then uppper bound.');\n }\n }\n\n if (interval[0] === interval[1] && close_1[0] && close_1[1]) {\n // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],\n // we use value to lift the priority when min === max\n item.value = interval[0];\n }\n }\n\n item.visual = VisualMapping.retrieveVisuals(pieceListItem);\n outPieceList.push(item);\n }, this); // See \"Order Rule\".\n\n normalizeReverse(thisOption, outPieceList); // Only pieces\n\n reformIntervals(outPieceList);\n zrUtil.each(outPieceList, function (piece) {\n var close = piece.close;\n var edgeSymbols = [['<', '≤'][close[1]], ['>', '≥'][close[0]]];\n piece.text = piece.text || this.formatValueText(piece.value != null ? piece.value : piece.interval, false, edgeSymbols);\n }, this);\n }\n};\n\nfunction normalizeReverse(thisOption, pieceList) {\n var inverse = thisOption.inverse;\n\n if (thisOption.orient === 'vertical' ? !inverse : inverse) {\n pieceList.reverse();\n }\n}\n\nexport default PiecewiseModel;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\nimport * as zrUtil from 'zrender/lib/core/util';\nimport VisualMapView from './VisualMapView';\nimport * as graphic from '../../util/graphic';\nimport { createSymbol } from '../../util/symbol';\nimport * as layout from '../../util/layout';\nimport * as helper from './helper';\n\nvar PiecewiseVisualMapView =\n/** @class */\nfunction (_super) {\n __extends(PiecewiseVisualMapView, _super);\n\n function PiecewiseVisualMapView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = PiecewiseVisualMapView.type;\n return _this;\n }\n\n PiecewiseVisualMapView.prototype.doRender = function () {\n var thisGroup = this.group;\n thisGroup.removeAll();\n var visualMapModel = this.visualMapModel;\n var textGap = visualMapModel.get('textGap');\n var textStyleModel = visualMapModel.textStyleModel;\n var textFont = textStyleModel.getFont();\n var textFill = textStyleModel.getTextColor();\n\n var itemAlign = this._getItemAlign();\n\n var itemSize = visualMapModel.itemSize;\n\n var viewData = this._getViewData();\n\n var endsText = viewData.endsText;\n var showLabel = zrUtil.retrieve(visualMapModel.get('showLabel', true), !endsText);\n endsText && this._renderEndsText(thisGroup, endsText[0], itemSize, showLabel, itemAlign);\n zrUtil.each(viewData.viewPieceList, function (item) {\n var piece = item.piece;\n var itemGroup = new graphic.Group();\n itemGroup.onclick = zrUtil.bind(this._onItemClick, this, piece);\n\n this._enableHoverLink(itemGroup, item.indexInModelPieceList); // TODO Category\n\n\n var representValue = visualMapModel.getRepresentValue(piece);\n\n this._createItemSymbol(itemGroup, representValue, [0, 0, itemSize[0], itemSize[1]]);\n\n if (showLabel) {\n var visualState = this.visualMapModel.getValueState(representValue);\n itemGroup.add(new graphic.Text({\n style: {\n x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,\n y: itemSize[1] / 2,\n text: piece.text,\n verticalAlign: 'middle',\n align: itemAlign,\n font: textFont,\n fill: textFill,\n opacity: visualState === 'outOfRange' ? 0.5 : 1\n }\n }));\n }\n\n thisGroup.add(itemGroup);\n }, this);\n endsText && this._renderEndsText(thisGroup, endsText[1], itemSize, showLabel, itemAlign);\n layout.box(visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap'));\n this.renderBackground(thisGroup);\n this.positionGroup(thisGroup);\n };\n\n PiecewiseVisualMapView.prototype._enableHoverLink = function (itemGroup, pieceIndex) {\n var _this = this;\n\n itemGroup.on('mouseover', function () {\n return onHoverLink('highlight');\n }).on('mouseout', function () {\n return onHoverLink('downplay');\n });\n\n var onHoverLink = function (method) {\n var visualMapModel = _this.visualMapModel; // TODO: TYPE More detailed action types\n\n visualMapModel.option.hoverLink && _this.api.dispatchAction({\n type: method,\n batch: helper.makeHighDownBatch(visualMapModel.findTargetDataIndices(pieceIndex), visualMapModel)\n });\n };\n };\n\n PiecewiseVisualMapView.prototype._getItemAlign = function () {\n var visualMapModel = this.visualMapModel;\n var modelOption = visualMapModel.option;\n\n if (modelOption.orient === 'vertical') {\n return helper.getItemAlign(visualMapModel, this.api, visualMapModel.itemSize);\n } else {\n // horizontal, most case left unless specifying right.\n var align = modelOption.align;\n\n if (!align || align === 'auto') {\n align = 'left';\n }\n\n return align;\n }\n };\n\n PiecewiseVisualMapView.prototype._renderEndsText = function (group, text, itemSize, showLabel, itemAlign) {\n if (!text) {\n return;\n }\n\n var itemGroup = new graphic.Group();\n var textStyleModel = this.visualMapModel.textStyleModel;\n itemGroup.add(new graphic.Text({\n style: {\n x: showLabel ? itemAlign === 'right' ? itemSize[0] : 0 : itemSize[0] / 2,\n y: itemSize[1] / 2,\n verticalAlign: 'middle',\n align: showLabel ? itemAlign : 'center',\n text: text,\n font: textStyleModel.getFont(),\n fill: textStyleModel.getTextColor()\n }\n }));\n group.add(itemGroup);\n };\n /**\n * @private\n * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.\n */\n\n\n PiecewiseVisualMapView.prototype._getViewData = function () {\n var visualMapModel = this.visualMapModel;\n var viewPieceList = zrUtil.map(visualMapModel.getPieceList(), function (piece, index) {\n return {\n piece: piece,\n indexInModelPieceList: index\n };\n });\n var endsText = visualMapModel.get('text'); // Consider orient and inverse.\n\n var orient = visualMapModel.get('orient');\n var inverse = visualMapModel.get('inverse'); // Order of model pieceList is always [low, ..., high]\n\n if (orient === 'horizontal' ? inverse : !inverse) {\n viewPieceList.reverse();\n } // Origin order of endsText is [high, low]\n else if (endsText) {\n endsText = endsText.slice().reverse();\n }\n\n return {\n viewPieceList: viewPieceList,\n endsText: endsText\n };\n };\n\n PiecewiseVisualMapView.prototype._createItemSymbol = function (group, representValue, shapeParam) {\n group.add(createSymbol( // symbol will be string\n this.getControllerVisual(representValue, 'symbol'), shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3], // color will be string\n this.getControllerVisual(representValue, 'color')));\n };\n\n PiecewiseVisualMapView.prototype._onItemClick = function (piece) {\n var visualMapModel = this.visualMapModel;\n var option = visualMapModel.option;\n var selected = zrUtil.clone(option.selected);\n var newKey = visualMapModel.getSelectedMapKey(piece);\n\n if (option.selectedMode === 'single') {\n selected[newKey] = true;\n zrUtil.each(selected, function (o, key) {\n selected[key] = key === newKey;\n });\n } else {\n selected[newKey] = !selected[newKey];\n }\n\n this.api.dispatchAction({\n type: 'selectDataRange',\n from: this.uid,\n visualMapId: this.visualMapModel.id,\n selected: selected\n });\n };\n\n PiecewiseVisualMapView.type = 'visualMap.piecewise';\n return PiecewiseVisualMapView;\n}(VisualMapView);\n\nexport default PiecewiseVisualMapView;","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport PiecewiseModel from './PiecewiseModel';\nimport PiecewiseView from './PiecewiseView';\nimport installCommon from './installCommon';\nexport function install(registers) {\n registers.registerComponentModel(PiecewiseModel);\n registers.registerComponentView(PiecewiseView);\n installCommon(registers);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from '../../extension';\nimport { install as installVisualMapContinuous } from './installVisualMapContinuous';\nimport { install as installVisualMapPiecewise } from './installVisualMapPiecewise';\nexport function install(registers) {\n use(installVisualMapContinuous);\n use(installVisualMapPiecewise); // Do not install './dataZoomSelect',\n // since it only work for toolbox dataZoom.\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nimport { retrieveRawValue } from '../data/helper/dataProvider';\nimport { makeInner } from '../util/model';\nimport { getDecalFromPalette } from '../model/mixin/palette';\nvar DEFAULT_OPTION = {\n label: {\n enabled: true\n },\n decal: {\n show: false\n }\n};\nvar inner = makeInner();\nvar decalPaletteScope = {};\nexport default function ariaVisual(ecModel, api) {\n var ariaModel = ecModel.getModel('aria'); // See \"area enabled\" detection code in `GlobalModel.ts`.\n\n if (!ariaModel.get('enabled')) {\n return;\n }\n\n var defaultOption = zrUtil.clone(DEFAULT_OPTION);\n zrUtil.merge(defaultOption.label, ecModel.getLocaleModel().get('aria'), false);\n zrUtil.merge(ariaModel.option, defaultOption, false);\n setDecal();\n setLabel();\n\n function setDecal() {\n var decalModel = ariaModel.getModel('decal');\n var useDecal = decalModel.get('show');\n\n if (useDecal) {\n // Each type of series use one scope.\n // Pie and funnel are using diferrent scopes\n var paletteScopeGroupByType_1 = zrUtil.createHashMap();\n ecModel.eachSeries(function (seriesModel) {\n if (!seriesModel.useColorPaletteOnData) {\n return;\n }\n\n var decalScope = paletteScopeGroupByType_1.get(seriesModel.type);\n\n if (!decalScope) {\n decalScope = {};\n paletteScopeGroupByType_1.set(seriesModel.type, decalScope);\n }\n\n inner(seriesModel).scope = decalScope;\n });\n ecModel.eachRawSeries(function (seriesModel) {\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n if (typeof seriesModel.enableAriaDecal === 'function') {\n // Let series define how to use decal palette on data\n seriesModel.enableAriaDecal();\n return;\n }\n\n var data = seriesModel.getData();\n\n if (seriesModel.useColorPaletteOnData) {\n var dataAll_1 = seriesModel.getRawData();\n var idxMap_1 = {};\n var decalScope_1 = inner(seriesModel).scope;\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap_1[rawIdx] = idx;\n });\n var dataCount_1 = dataAll_1.count();\n dataAll_1.each(function (rawIdx) {\n var idx = idxMap_1[rawIdx];\n var name = dataAll_1.getName(rawIdx) || rawIdx + '';\n var paletteDecal = getDecalFromPalette(seriesModel.ecModel, name, decalScope_1, dataCount_1);\n var specifiedDecal = data.getItemVisual(idx, 'decal');\n data.setItemVisual(idx, 'decal', mergeDecal(specifiedDecal, paletteDecal));\n });\n } else {\n var paletteDecal = getDecalFromPalette(seriesModel.ecModel, seriesModel.name, decalPaletteScope, ecModel.getSeriesCount());\n var specifiedDecal = data.getVisual('decal');\n data.setVisual('decal', mergeDecal(specifiedDecal, paletteDecal));\n }\n\n function mergeDecal(specifiedDecal, paletteDecal) {\n // Merge decal from palette to decal from itemStyle.\n // User do not need to specify all of the decal props.\n var resultDecal = specifiedDecal ? zrUtil.extend(zrUtil.extend({}, paletteDecal), specifiedDecal) : paletteDecal;\n resultDecal.dirty = true;\n return resultDecal;\n }\n });\n }\n }\n\n function setLabel() {\n var labelLocale = ecModel.getLocaleModel().get('aria');\n var labelModel = ariaModel.getModel('label');\n labelModel.option = zrUtil.defaults(labelModel.option, labelLocale);\n\n if (!labelModel.get('enabled')) {\n return;\n }\n\n var dom = api.getZr().dom;\n\n if (labelModel.get('description')) {\n dom.setAttribute('aria-label', labelModel.get('description'));\n return;\n }\n\n var seriesCnt = ecModel.getSeriesCount();\n var maxDataCnt = labelModel.get(['data', 'maxCount']) || 10;\n var maxSeriesCnt = labelModel.get(['series', 'maxCount']) || 10;\n var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt);\n var ariaLabel;\n\n if (seriesCnt < 1) {\n // No series, no aria label\n return;\n } else {\n var title = getTitle();\n\n if (title) {\n var withTitle = labelModel.get(['general', 'withTitle']);\n ariaLabel = replace(withTitle, {\n title: title\n });\n } else {\n ariaLabel = labelModel.get(['general', 'withoutTitle']);\n }\n\n var seriesLabels_1 = [];\n var prefix = seriesCnt > 1 ? labelModel.get(['series', 'multiple', 'prefix']) : labelModel.get(['series', 'single', 'prefix']);\n ariaLabel += replace(prefix, {\n seriesCount: seriesCnt\n });\n ecModel.eachSeries(function (seriesModel, idx) {\n if (idx < displaySeriesCnt) {\n var seriesLabel = void 0;\n var seriesName = seriesModel.get('name');\n var withName = seriesName ? 'withName' : 'withoutName';\n seriesLabel = seriesCnt > 1 ? labelModel.get(['series', 'multiple', withName]) : labelModel.get(['series', 'single', withName]);\n seriesLabel = replace(seriesLabel, {\n seriesId: seriesModel.seriesIndex,\n seriesName: seriesModel.get('name'),\n seriesType: getSeriesTypeName(seriesModel.subType)\n });\n var data = seriesModel.getData();\n\n if (data.count() > maxDataCnt) {\n // Show part of data\n var partialLabel = labelModel.get(['data', 'partialData']);\n seriesLabel += replace(partialLabel, {\n displayCnt: maxDataCnt\n });\n } else {\n seriesLabel += labelModel.get(['data', 'allData']);\n }\n\n var dataLabels = [];\n\n for (var i = 0; i < data.count(); i++) {\n if (i < maxDataCnt) {\n var name_1 = data.getName(i);\n var value = retrieveRawValue(data, i);\n var dataLabel = labelModel.get(['data', name_1 ? 'withName' : 'withoutName']);\n dataLabels.push(replace(dataLabel, {\n name: name_1,\n value: value\n }));\n }\n }\n\n var middleSeparator_1 = labelModel.get(['data', 'separator', 'middle']);\n var endSeparator_1 = labelModel.get(['data', 'separator', 'end']);\n seriesLabel += dataLabels.join(middleSeparator_1) + endSeparator_1;\n seriesLabels_1.push(seriesLabel);\n }\n });\n var separatorModel = labelModel.getModel(['series', 'multiple', 'separator']);\n var middleSeparator = separatorModel.get('middle');\n var endSeparator = separatorModel.get('end');\n ariaLabel += seriesLabels_1.join(middleSeparator) + endSeparator;\n dom.setAttribute('aria-label', ariaLabel);\n }\n }\n\n function replace(str, keyValues) {\n if (typeof str !== 'string') {\n return str;\n }\n\n var result = str;\n zrUtil.each(keyValues, function (value, key) {\n result = result.replace(new RegExp('\\\\{\\\\s*' + key + '\\\\s*\\\\}', 'g'), value);\n });\n return result;\n }\n\n function getTitle() {\n var title = ecModel.get('title');\n\n if (title && title.length) {\n title = title[0];\n }\n\n return title && title.text;\n }\n\n function getSeriesTypeName(type) {\n return ecModel.getLocaleModel().get(['series', 'typeNames'])[type] || '自定义图';\n }\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport * as zrUtil from 'zrender/lib/core/util';\nexport default function ariaPreprocessor(option) {\n if (!option || !option.aria) {\n return;\n }\n\n var aria = option.aria; // aria.show is deprecated and should use aria.enabled instead\n\n if (aria.show != null) {\n aria.enabled = aria.show;\n }\n\n aria.label = aria.label || {}; // move description, general, series, data to be under aria.label\n\n zrUtil.each(['description', 'general', 'series', 'data'], function (name) {\n if (aria[name] != null) {\n aria.label[name] = aria[name];\n }\n });\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport ariaVisual from '../../visual/aria';\nimport ariaPreprocessor from './preprocessor';\nexport function install(registers) {\n registers.registerPreprocessor(ariaPreprocessor);\n registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { keys, isArray, map, isObject, isString, isRegExp, isArrayLike, hasOwn } from 'zrender/lib/core/util';\nimport { throwError, makePrintable } from './log';\nimport { getRawValueParser, createFilterComparator } from '../data/helper/dataValueHelper';\n;\nvar RELATIONAL_EXPRESSION_OP_ALIAS_MAP = {\n value: 'eq',\n // PENDING: not good for literal semantic?\n '<': 'lt',\n '<=': 'lte',\n '>': 'gt',\n '>=': 'gte',\n '=': 'eq',\n '!=': 'ne',\n '<>': 'ne' // Might mileading for sake of the different between '==' and '===',\n // So dont support them.\n // '==': 'eq',\n // '===': 'seq',\n // '!==': 'sne'\n // PENDING: Whether support some common alias \"ge\", \"le\", \"neq\"?\n // ge: 'gte',\n // le: 'lte',\n // neq: 'ne',\n\n};\n\nvar RegExpEvaluator =\n/** @class */\nfunction () {\n function RegExpEvaluator(rVal) {\n // Support condVal: RegExp | string\n var condValue = this._condVal = isString(rVal) ? new RegExp(rVal) : isRegExp(rVal) ? rVal : null;\n\n if (condValue == null) {\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal regexp', rVal, 'in');\n }\n\n throwError(errMsg);\n }\n }\n\n RegExpEvaluator.prototype.evaluate = function (lVal) {\n var type = typeof lVal;\n return type === 'string' ? this._condVal.test(lVal) : type === 'number' ? this._condVal.test(lVal + '') : false;\n };\n\n return RegExpEvaluator;\n}();\n\nvar ConstConditionInternal =\n/** @class */\nfunction () {\n function ConstConditionInternal() {}\n\n ConstConditionInternal.prototype.evaluate = function () {\n return this.value;\n };\n\n return ConstConditionInternal;\n}();\n\nvar AndConditionInternal =\n/** @class */\nfunction () {\n function AndConditionInternal() {}\n\n AndConditionInternal.prototype.evaluate = function () {\n var children = this.children;\n\n for (var i = 0; i < children.length; i++) {\n if (!children[i].evaluate()) {\n return false;\n }\n }\n\n return true;\n };\n\n return AndConditionInternal;\n}();\n\nvar OrConditionInternal =\n/** @class */\nfunction () {\n function OrConditionInternal() {}\n\n OrConditionInternal.prototype.evaluate = function () {\n var children = this.children;\n\n for (var i = 0; i < children.length; i++) {\n if (children[i].evaluate()) {\n return true;\n }\n }\n\n return false;\n };\n\n return OrConditionInternal;\n}();\n\nvar NotConditionInternal =\n/** @class */\nfunction () {\n function NotConditionInternal() {}\n\n NotConditionInternal.prototype.evaluate = function () {\n return !this.child.evaluate();\n };\n\n return NotConditionInternal;\n}();\n\nvar RelationalConditionInternal =\n/** @class */\nfunction () {\n function RelationalConditionInternal() {}\n\n RelationalConditionInternal.prototype.evaluate = function () {\n var needParse = !!this.valueParser; // Call getValue with no `this`.\n\n var getValue = this.getValue;\n var tarValRaw = getValue(this.valueGetterParam);\n var tarValParsed = needParse ? this.valueParser(tarValRaw) : null; // Relational cond follow \"and\" logic internally.\n\n for (var i = 0; i < this.subCondList.length; i++) {\n if (!this.subCondList[i].evaluate(needParse ? tarValParsed : tarValRaw)) {\n return false;\n }\n }\n\n return true;\n };\n\n return RelationalConditionInternal;\n}();\n\nfunction parseOption(exprOption, getters) {\n if (exprOption === true || exprOption === false) {\n var cond = new ConstConditionInternal();\n cond.value = exprOption;\n return cond;\n }\n\n var errMsg = '';\n\n if (!isObjectNotArray(exprOption)) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal config. Expect a plain object but actually', exprOption);\n }\n\n throwError(errMsg);\n }\n\n if (exprOption.and) {\n return parseAndOrOption('and', exprOption, getters);\n } else if (exprOption.or) {\n return parseAndOrOption('or', exprOption, getters);\n } else if (exprOption.not) {\n return parseNotOption(exprOption, getters);\n }\n\n return parseRelationalOption(exprOption, getters);\n}\n\nfunction parseAndOrOption(op, exprOption, getters) {\n var subOptionArr = exprOption[op];\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('\"and\"/\"or\" condition should only be `' + op + ': [...]` and must not be empty array.', 'Illegal condition:', exprOption);\n }\n\n if (!isArray(subOptionArr)) {\n throwError(errMsg);\n }\n\n if (!subOptionArr.length) {\n throwError(errMsg);\n }\n\n var cond = op === 'and' ? new AndConditionInternal() : new OrConditionInternal();\n cond.children = map(subOptionArr, function (subOption) {\n return parseOption(subOption, getters);\n });\n\n if (!cond.children.length) {\n throwError(errMsg);\n }\n\n return cond;\n}\n\nfunction parseNotOption(exprOption, getters) {\n var subOption = exprOption.not;\n var errMsg = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('\"not\" condition should only be `not: {}`.', 'Illegal condition:', exprOption);\n }\n\n if (!isObjectNotArray(subOption)) {\n throwError(errMsg);\n }\n\n var cond = new NotConditionInternal();\n cond.child = parseOption(subOption, getters);\n\n if (!cond.child) {\n throwError(errMsg);\n }\n\n return cond;\n}\n\nfunction parseRelationalOption(exprOption, getters) {\n var errMsg = '';\n var valueGetterParam = getters.prepareGetValue(exprOption);\n var subCondList = [];\n var exprKeys = keys(exprOption);\n var parserName = exprOption.parser;\n var valueParser = parserName ? getRawValueParser(parserName) : null;\n\n for (var i = 0; i < exprKeys.length; i++) {\n var keyRaw = exprKeys[i];\n\n if (keyRaw === 'parser' || getters.valueGetterAttrMap.get(keyRaw)) {\n continue;\n }\n\n var op = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw;\n var condValueRaw = exprOption[keyRaw];\n var condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw;\n var evaluator = createFilterComparator(op, condValueParsed) || op === 'reg' && new RegExpEvaluator(condValueParsed);\n\n if (!evaluator) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Illegal relational operation: \"' + keyRaw + '\" in condition:', exprOption);\n }\n\n throwError(errMsg);\n }\n\n subCondList.push(evaluator);\n }\n\n if (!subCondList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Relational condition must have at least one operator.', 'Illegal condition:', exprOption);\n } // No relational operator always disabled in case of dangers result.\n\n\n throwError(errMsg);\n }\n\n var cond = new RelationalConditionInternal();\n cond.valueGetterParam = valueGetterParam;\n cond.valueParser = valueParser;\n cond.getValue = getters.getValue;\n cond.subCondList = subCondList;\n return cond;\n}\n\nfunction isObjectNotArray(val) {\n return isObject(val) && !isArrayLike(val);\n}\n\nvar ConditionalExpressionParsed =\n/** @class */\nfunction () {\n function ConditionalExpressionParsed(exprOption, getters) {\n this._cond = parseOption(exprOption, getters);\n }\n\n ConditionalExpressionParsed.prototype.evaluate = function () {\n return this._cond.evaluate();\n };\n\n return ConditionalExpressionParsed;\n}();\n\n;\nexport function parseConditionalExpression(exprOption, getters) {\n return new ConditionalExpressionParsed(exprOption, getters);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { parseConditionalExpression } from '../../util/conditionalExpression';\nimport { hasOwn, createHashMap } from 'zrender/lib/core/util';\nimport { makePrintable, throwError } from '../../util/log';\nexport var filterTransform = {\n type: 'echarts:filter',\n // PEDING: enhance to filter by index rather than create new data\n transform: function (params) {\n // [Caveat] Fail-Fast:\n // Do not return the whole dataset unless user config indicate it explicitly.\n // For example, if no condition specified by mistake, return an empty result\n // is better than return the entire raw soruce for user to find the mistake.\n var upstream = params.upstream;\n var rawItem;\n var condition = parseConditionalExpression(params.config, {\n valueGetterAttrMap: createHashMap({\n dimension: true\n }),\n prepareGetValue: function (exprOption) {\n var errMsg = '';\n var dimLoose = exprOption.dimension;\n\n if (!hasOwn(exprOption, 'dimension')) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Relation condition must has prop \"dimension\" specified.', 'Illegal condition:', exprOption);\n }\n\n throwError(errMsg);\n }\n\n var dimInfo = upstream.getDimensionInfo(dimLoose);\n\n if (!dimInfo) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal condition:', exprOption, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n return {\n dimIdx: dimInfo.index\n };\n },\n getValue: function (param) {\n return upstream.retrieveValueFromItem(rawItem, param.dimIdx);\n }\n });\n var resultData = [];\n\n for (var i = 0, len = upstream.count(); i < len; i++) {\n rawItem = upstream.getRawDataItem(i);\n\n if (condition.evaluate()) {\n resultData.push(rawItem);\n }\n }\n\n return {\n data: resultData\n };\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { SOURCE_FORMAT_ARRAY_ROWS, SOURCE_FORMAT_OBJECT_ROWS } from '../../util/types';\nimport { makePrintable, throwError } from '../../util/log';\nimport { each } from 'zrender/lib/core/util';\nimport { normalizeToArray } from '../../util/model';\nimport { getRawValueParser, SortOrderComparator } from '../../data/helper/dataValueHelper';\nvar sampleLog = '';\n\nif (process.env.NODE_ENV !== 'production') {\n sampleLog = ['Valid config is like:', '{ dimension: \"age\", order: \"asc\" }', 'or [{ dimension: \"age\", order: \"asc\"], { dimension: \"date\", order: \"desc\" }]'].join(' ');\n}\n\nexport var sortTransform = {\n type: 'echarts:sort',\n transform: function (params) {\n var upstream = params.upstream;\n var config = params.config;\n var errMsg = ''; // Normalize\n // const orderExprList: OrderExpression[] = isArray(config[0])\n // ? config as OrderExpression[]\n // : [config as OrderExpression];\n\n var orderExprList = normalizeToArray(config);\n\n if (!orderExprList.length) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Empty `config` in sort transform.';\n }\n\n throwError(errMsg);\n }\n\n var orderDefList = [];\n each(orderExprList, function (orderExpr) {\n var dimLoose = orderExpr.dimension;\n var order = orderExpr.order;\n var parserName = orderExpr.parser;\n var incomparable = orderExpr.incomparable;\n\n if (dimLoose == null) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"dimension\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'Sort transform config must has \"order\" specified.' + sampleLog;\n }\n\n throwError(errMsg);\n }\n\n if (incomparable && incomparable !== 'min' && incomparable !== 'max') {\n var errMsg_1 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_1 = 'incomparable must be \"min\" or \"max\" rather than \"' + incomparable + '\".';\n }\n\n throwError(errMsg_1);\n }\n\n if (order !== 'asc' && order !== 'desc') {\n var errMsg_2 = '';\n\n if (process.env.NODE_ENV !== 'production') {\n errMsg_2 = 'order must be \"asc\" or \"desc\" rather than \"' + order + '\".';\n }\n\n throwError(errMsg_2);\n }\n\n var dimInfo = upstream.getDimensionInfo(dimLoose);\n\n if (!dimInfo) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Can not find dimension info via: ' + dimLoose + '.\\n', 'Existing dimensions: ', upstream.cloneAllDimensionInfo(), '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n var parser = parserName ? getRawValueParser(parserName) : null;\n\n if (parserName && !parser) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = makePrintable('Invalid parser name ' + parserName + '.\\n', 'Illegal config:', orderExpr, '.\\n');\n }\n\n throwError(errMsg);\n }\n\n orderDefList.push({\n dimIdx: dimInfo.index,\n parser: parser,\n comparator: new SortOrderComparator(order, incomparable)\n });\n }); // TODO: support it?\n\n var sourceFormat = upstream.sourceFormat;\n\n if (sourceFormat !== SOURCE_FORMAT_ARRAY_ROWS && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS) {\n if (process.env.NODE_ENV !== 'production') {\n errMsg = 'sourceFormat \"' + sourceFormat + '\" is not supported yet';\n }\n\n throwError(errMsg);\n } // Other upstream format are all array.\n\n\n var resultData = [];\n\n for (var i = 0, len = upstream.count(); i < len; i++) {\n resultData.push(upstream.getRawDataItem(i));\n }\n\n resultData.sort(function (item0, item1) {\n for (var i = 0; i < orderDefList.length; i++) {\n var orderDef = orderDefList[i];\n var val0 = upstream.retrieveValueFromItem(item0, orderDef.dimIdx);\n var val1 = upstream.retrieveValueFromItem(item1, orderDef.dimIdx);\n\n if (orderDef.parser) {\n val0 = orderDef.parser(val0);\n val1 = orderDef.parser(val1);\n }\n\n var result = orderDef.comparator.evaluate(val0, val1);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n });\n return {\n data: resultData\n };\n }\n};","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { filterTransform } from './filterTransform';\nimport { sortTransform } from './sortTransform';\nexport function install(registers) {\n registers.registerTransform(filterTransform);\n registers.registerTransform(sortTransform);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { __extends } from \"tslib\";\n/**\n * This module is imported by echarts directly.\n *\n * Notice:\n * Always keep this file exists for backward compatibility.\n * Because before 4.1.0, dataset is an optional component,\n * some users may import this module manually.\n */\n\nimport ComponentModel from '../../model/Component';\nimport ComponentView from '../../view/Component';\nimport { SERIES_LAYOUT_BY_COLUMN } from '../../util/types';\nimport { disableTransformOptionMerge, SourceManager } from '../../data/helper/sourceManager';\n\nvar DatasetModel =\n/** @class */\nfunction (_super) {\n __extends(DatasetModel, _super);\n\n function DatasetModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataset';\n return _this;\n }\n\n DatasetModel.prototype.init = function (option, parentModel, ecModel) {\n _super.prototype.init.call(this, option, parentModel, ecModel);\n\n this._sourceManager = new SourceManager(this);\n disableTransformOptionMerge(this);\n };\n\n DatasetModel.prototype.mergeOption = function (newOption, ecModel) {\n _super.prototype.mergeOption.call(this, newOption, ecModel);\n\n disableTransformOptionMerge(this);\n };\n\n DatasetModel.prototype.optionUpdated = function () {\n this._sourceManager.dirty();\n };\n\n DatasetModel.prototype.getSourceManager = function () {\n return this._sourceManager;\n };\n\n DatasetModel.type = 'dataset';\n DatasetModel.defaultOption = {\n seriesLayoutBy: SERIES_LAYOUT_BY_COLUMN\n };\n return DatasetModel;\n}(ComponentModel);\n\nexport { DatasetModel };\n\nvar DatasetView =\n/** @class */\nfunction (_super) {\n __extends(DatasetView, _super);\n\n function DatasetView() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'dataset';\n return _this;\n }\n\n DatasetView.type = 'dataset';\n return DatasetView;\n}(ComponentView);\n\nexport function install(registers) {\n registers.registerComponentModel(DatasetModel);\n registers.registerComponentView(DatasetView);\n}","\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nimport { use } from './lib/extension';\nexport * from './lib/export/core'; // ----------------------------------------------\n// All of the modules that are allowed to be\n// imported are listed below.\n//\n// Users MUST NOT import other modules that are\n// not included in this list.\n// ----------------------------------------------\n\nimport { SVGRenderer, CanvasRenderer } from './lib/export/renderers';\nimport { LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart } from './lib/export/charts';\nimport { GridComponent, PolarComponent, GeoComponent, SingleAxisComponent, ParallelComponent, CalendarComponent, GraphicComponent, ToolboxComponent, TooltipComponent, AxisPointerComponent, BrushComponent, TitleComponent, TimelineComponent, MarkPointComponent, MarkLineComponent, MarkAreaComponent, LegendComponent, DataZoomComponent, DataZoomInsideComponent, DataZoomSliderComponent, VisualMapComponent, VisualMapContinuousComponent, VisualMapPiecewiseComponent, AriaComponent, DatasetComponent, TransformComponent } from './lib/export/components'; // -----------------\n// Render engines\n// -----------------\n// Render via Canvas.\n// echarts.init(dom, null, { renderer: 'canvas' })\n\nuse([CanvasRenderer]); // Render via SVG.\n// echarts.init(dom, null, { renderer: 'svg' })\n\nuse([SVGRenderer]); // ----------------\n// Charts (series)\n// ----------------\n// All of the series types, for example:\n// chart.setOption({\n// series: [{\n// type: 'line' // or 'bar', 'pie', ...\n// }]\n// });\n\nuse([LineChart, BarChart, PieChart, ScatterChart, RadarChart, MapChart, TreeChart, TreemapChart, GraphChart, GaugeChart, FunnelChart, ParallelChart, SankeyChart, BoxplotChart, CandlestickChart, EffectScatterChart, LinesChart, HeatmapChart, PictorialBarChart, ThemeRiverChart, SunburstChart, CustomChart]); // -------------------\n// Coordinate systems\n// -------------------\n// All of the axis modules have been included in the\n// coordinate system module below, do not need to\n// make extra import.\n// `cartesian` coordinate system. For some historical\n// reasons, it is named as grid, for example:\n// chart.setOption({\n// grid: {...},\n// xAxis: {...},\n// yAxis: {...},\n// series: [{...}]\n// });\n\nuse(GridComponent); // `polar` coordinate system, for example:\n// chart.setOption({\n// polar: {...},\n// radiusAxis: {...},\n// angleAxis: {...},\n// series: [{\n// coordinateSystem: 'polar'\n// }]\n// });\n\nuse(PolarComponent); // `geo` coordinate system, for example:\n// chart.setOption({\n// geo: {...},\n// series: [{\n// coordinateSystem: 'geo'\n// }]\n// });\n\nuse(GeoComponent); // `singleAxis` coordinate system (notice, it is a coordinate system\n// with only one axis, work for chart like theme river), for example:\n// chart.setOption({\n// singleAxis: {...}\n// series: [{type: 'themeRiver', ...}]\n// });\n\nuse(SingleAxisComponent); // `parallel` coordinate system, only work for parallel series, for example:\n// chart.setOption({\n// parallel: {...},\n// parallelAxis: [{...}, ...],\n// series: [{\n// type: 'parallel'\n// }]\n// });\n\nuse(ParallelComponent); // `calendar` coordinate system. for example,\n// chart.setOptionp({\n// calendar: {...},\n// series: [{\n// coordinateSystem: 'calendar'\n// }]\n// );\n\nuse(CalendarComponent); // ------------------\n// Other components\n// ------------------\n// `graphic` component, for example:\n// chart.setOption({\n// graphic: {...}\n// });\n\nuse(GraphicComponent); // `toolbox` component, for example:\n// chart.setOption({\n// toolbox: {...}\n// });\n\nuse(ToolboxComponent); // `tooltip` component, for example:\n// chart.setOption({\n// tooltip: {...}\n// });\n\nuse(TooltipComponent); // `axisPointer` component, for example:\n// chart.setOption({\n// tooltip: {axisPointer: {...}, ...}\n// });\n// Or\n// chart.setOption({\n// axisPointer: {...}\n// });\n\nuse(AxisPointerComponent); // `brush` component, for example:\n// chart.setOption({\n// brush: {...}\n// });\n// Or\n// chart.setOption({\n// tooltip: {feature: {brush: {...}}\n// })\n\nuse(BrushComponent); // `title` component, for example:\n// chart.setOption({\n// title: {...}\n// });\n\nuse(TitleComponent); // `timeline` component, for example:\n// chart.setOption({\n// timeline: {...}\n// });\n\nuse(TimelineComponent); // `markPoint` component, for example:\n// chart.setOption({\n// series: [{markPoint: {...}}]\n// });\n\nuse(MarkPointComponent); // `markLine` component, for example:\n// chart.setOption({\n// series: [{markLine: {...}}]\n// });\n\nuse(MarkLineComponent); // `markArea` component, for example:\n// chart.setOption({\n// series: [{markArea: {...}}]\n// });\n\nuse(MarkAreaComponent); // `legend` component not scrollable. for example:\n// chart.setOption({\n// legend: {...}\n// });\n\nuse(LegendComponent); // `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.\n\nuse(DataZoomComponent); // `dataZoom` component providing drag, pinch, wheel behaviors\n// inside coodinate system, for example:\n// chart.setOption({\n// dataZoom: {type: 'inside'}\n// });\n\nuse(DataZoomInsideComponent); // `dataZoom` component providing a slider bar, for example:\n// chart.setOption({\n// dataZoom: {type: 'slider'}\n// });\n\nuse(DataZoomSliderComponent); // `visualMap` component including both `visualMapContinuous` and `visualMapPiecewise`.\n\nuse(VisualMapComponent); // `visualMap` component providing continuous bar, for example:\n// chart.setOption({\n// visualMap: {type: 'continuous'}\n// });\n\nuse(VisualMapContinuousComponent); // `visualMap` component providing pieces bar, for example:\n// chart.setOption({\n// visualMap: {type: 'piecewise'}\n// });\n\nuse(VisualMapPiecewiseComponent); // `aria` component providing aria, for example:\n// chart.setOption({\n// aria: {...}\n// });\n\nuse(AriaComponent); // dataset transform\n// chart.setOption({\n// dataset: {\n// transform: []\n// }\n// });\n\nuse(TransformComponent);\nuse(DatasetComponent);"],"names":["clone","_calcOut","eventUtil.clientToLocal","dist","eventTool.stop","util.each","vec2.dist","timsort","util.indexOf","easing","easingFuncs","lerp","color.parse","requestAnimationFrame","zrUtil.map","zrUtil.noop","zrUtil.each","create","copy","mul","scale","matrix.identity","matrix.create","matrix.mul","matrix.copy","matrix.invert","vector.applyTransform","matrix.rotate","matrix.translate","matrix.scale","methods","zrUtil.indexOf","zrUtil.keys","HandlerProxy","zrUtil.guid","parsePercent","zrUtil.reduce","zrUtil.assert","zrUtil.createObject","zrUtil.extend","zrUtil.inherits","imageHelper.findExistImage","imageHelper.isImageReady","PRIMARY_STATES_KEYS","EPSILON","v2Create","isNotAroundZero","v2DistSquare","mathMin","mathMax","vec2.create","cubicExtrema","curve.cubicExtrema","cubicAt","curve.cubicAt","quadraticExtremum","curve.quadraticExtremum","quadraticAt","curve.quadraticAt","min","max","vec2.min","vec2.max","mathCos","mathSin","mathSqrt","PI2","dpr","containStroke","curve.cubicProjectPoint","CMD","curve.cubicRootAt","curve.quadraticRootAt","line.containStroke","cubic.containStroke","quadratic.containStroke","arc.containStroke","pathContain.containStroke","pathContain.contain","round","roundRectHelper.buildPath","color","colorTool.lift","v2ApplyTransform","PI","mathAbs","buildPath","roundSectorHelper.buildPath","distance","v2Distance","v2Min","v2Max","v2Clone","v2Sub","v2Scale","v2Add","polyHelper.buildPath","subPixelOptimizeOutputShape","vec2.normalize","minTv","maxTv","Displayble","pathTool.extendFromString","pathTool.createFromString","mergePath","pathTool.mergePath","subPixelOptimizeLine","subPixelOptimizeUtil.subPixelOptimizeLine","subPixelOptimizeRect","subPixelOptimizeUtil.subPixelOptimizeRect","subPixelOptimize","subPixelOptimizeUtil.subPixelOptimize","applyTransform","invert","zrUtil.merge","numberUtil.parseDate","defaults","zrUtil.defaults","zrUtil.isArray","Text","zrUtil.isString","normalizeCssArray","zrUtil.normalizeCssArray","zrUtil.trim","timeFormat","zrUtil.isStringSafe","zrUtil.isNumber","zrUtil.isObject","each","zrUtil.curry","formatUtil.normalizeCssArray","componentUtil.getUID","layout.fetchLayoutMode","layout.getLayoutParams","layout.mergeLayoutParam","componentUtil.enableSubTypeDefaulter","componentUtil.enableTopologicalTravel","modelUtil.normalizeToArray","modelUtil.mappingToExists","modelUtil.setComponentTypeToKeyInfo","modelUtil.isComponentIdInternal","modelUtil.convertOptionIdName","zrUtil.bind","isObject","modelUtil.TEXT_STYLE_OPTIONS","zrUtil.isTypedArray","set","compatStyle","inner","modelUtil.makeInner","modelUtil.defaultEmphasis","zrUtil.mixin","modelUtil.isNameSpecified","clazzUtil.enableClassExtend","clazzUtil.enableClassManagement","modelUtil.queryDataIndex","graphic.Group","graphic.Rect","graphic.Text","graphic.Arc","vector.dist","vector.lerp","graphic.Path","graphic.Line","graphic.Circle","graphic.makeImage","graphic.makePath","numberReg","isAroundEqual","contain","bbox.fromPoints","polygonContain.contain","vec2.applyTransform","zrUtil.filter","points","parseGeoJson","fixTextCoord","fixGeoCoord","assert","isFunction","zrUtil.isFunction","indexOf","version","zrender.init","zrUtil.clone","backwardCompat","zrUtil.setAsPrimitive","instances","zrUtil.createCanvas","graphic.Image","modelUtil.parseFinder","modelUtil.setAttribute","zrUtil.createHashMap","colorTool.parse","colorTool.stringify","modelUtil.preParseFinder","graphic.isElementRemoved","init","zrUtil.isDom","dispose","modelUtil.getAttribute","zrUtil.$override","decal","loadingDefault","darkTheme","map","zrUtil.isArrayLike","zrUtil.slice","CoordinateSystem","numberUtil.round","numberUtil.nice","numberUtil.getPrecision","normalize","scaleHelper.contain","scaleHelper.normalize","scaleHelper.scale","roundNumber","helper.contain","helper.normalize","helper.scale","helper.getIntervalPrecision","formatUtil.addCommas","helper.intervalScaleNiceTicks","mathFloor","mathPow","numberUtil.quantity","dataStack","axisHelper.createScaleByModel","axisHelper.niceScaleExtent","createTextStyle","innerCreateTextStyle","textContain.getBoundingRect","isAroundZero","adjustTextY","zrUtil.logError","colorTool.toHex","util.extend","util.logError","util.createCanvas","util.isObject","util.isGradientObject","util.isImagePatternObject","parseInt10","util.merge","install","graphic.updateProps","graphic.initProps","graphic.removeElement","SymbolClz","graphic.Sector","graphic.LinearGradient","isPointNull","modelUtil.interpolateRawValues","LineSeries","layoutPoints","Sausage","BarSeries","layout.getLayoutRect","RADIAN","graphic.Polyline","graphic.removeElementWithFadeOut","labelLayout","layout","zrUtil.retrieve","zrUtil.retrieve3","graphic.setTooltipConfig","matrixUtil.identity","matrixUtil.rotate","matrixUtil.mul","axisPointerModelHelper.fixValue","axisPointerModelHelper.getAxisPointerModel","cartesianAxisHelper.layout","graphic.groupTransition","installGridSimple","zrUtil.find","createSymbol","symbolUtil.createSymbol","graphic.Polygon","axisBuilderAttrs","RadarView","graphic.Ring","graphic.mergePath","numberUtil.parsePercent","installRadarComponent","echarts.registerAction","eventTool.isMiddleOrRightButtonOnMouseUpDown","interactionMutex.isTaken","graphic.CompoundPath","roamHelper.updateViewOnPan","roamHelper.updateViewOnZoom","vector.copy","zrUtil.retrieve2","getCoordSys","zrUtil.mergeAll","installGeo","getViewRect","symbolNeedsDraw","graphic.BezierCurve","separation","sep","noop","helper.retrieveTargetInfo","helper.aboveViewRoot","layout.positionElement","layout.getAvailableSize","Group","Rect","animationUtil.createWrap","zrColor.fastLerp","zrColor.stringify","zrColor.modifyHSL","zrColor.modifyAlpha","zrColor.parse","helper.getPathToRoot","sort","vec2.clone","scaleAndAdd","vec2.scaleAndAdd","vec2.sub","vec2.len","vec2.set","vec2.copy","Line","vector.sub","vector.normalize","LineGroup","makeSeriesScope","curveTool.quadraticAt","vec2.distSquare","quadraticSubdivide","curveTool.quadraticSubdivide","edgeVisual","simpleLayout","circularLayout","forceLayout","createView","graphic.Point","opacityAccessPath","ParallelView","mathCeil","layoutUtil.getLayoutRect","restrict","graphic.applyTransform","numberUtil.asc","interactionMutex.take","interactionMutex.release","trigger","getTransform","graphic.getTransform","graphic.transformDirection","graphicUtil.clipPointsByRect","graphic.BoundingRect","brushHelper.makeRectPanelClipPath","brushHelper.makeRectIsTargetByCursor","brushHelper.makeLinearBrushOtherExtent","actionInfo","installParallelComponent","createGridClipShape","center","createNormalBox","createLarge","transInit","setLargeStyle","LargeArr","preprocessor","normalizeSymbolSize","matrix.clone","curveUtil.quadraticAt","quadraticDerivativeAt","curveUtil.quadraticDerivativeAt","Polyline","lineContain.containStroke","quadraticContain.containStroke","updateCommon","completeTreeValue","initChildren","dataToCoordSize","tmpArr","normalizeRadian","prepareCartesian2d","prepareGeo","prepareSingleAxis","preparePolar","prepareCalendar","graphicUtil.makePath","graphicUtil.Image","graphicUtil.Text","graphicUtil.Group","graphicUtil.getShapeClass","isPath","graphicUtil.initProps","graphicUtil.updateProps","updateZ","labelStyleHelper.createTextStyle","labelStyleHelper.createTextConfig","labelStyleHelper.getFont","graphicUtil.Path","bind","updateProps","axisPointerModelHelper.getAxisInfo","graphic.createIcon","throttleUtil.createOrUpdate","axisHelper.getAxisRawValue","viewHelper.buildElStyle","viewHelper.buildCartesianSingleLabelElOption","viewHelper.getTransformedPosition","viewHelper.makeLineShape","viewHelper.makeRectShape","globalListener.register","globalListener.unregister","modelHelper.makeKey","installSimple","installAxisPointer","pointerShapeBuilder","viewHelper.buildLabelElOption","viewHelper.makeSectorShape","elementList","selfBuilderAttrs","axisElementBuilders","getSeriesStackId","getAxisKey","singleAxisHelper.layout","formatUtil.formatTplSimple","createEl","graphicUtil.setTooltipConfig","layoutUtil.positionElement","zrUtil.hasOwn","layoutUtil.LOCATION_PARAMS","layoutUtil.mergeLayoutParam","layoutUtil.copyLayoutParams","asc","numberUtil.linearMap","numberUtil.getPixelPrecision","SelectZoomModel","SelectZoomView","featureManager.getFeature","layoutBox","listComponentHelper.layout","listComponentHelper.makeBackground","trim","clear","history.clear","parseFinder","modelUtilParseFinder","handlers","history.push","history.pop","history.count","DataZoom","Restore","installDataZoomSelect","makeStyleCoord","makeDispatchAction","axisPointerViewHelper.getValueLabel","formatUtil.convertToColorString","formatUtil.formatTpl","visualSolution.createVisualMappings","visualSolution.applyVisual","visualSolution.replaceVisualOption","createScaleByModel","getAxisInfo","dataFilter","createList","markerHelper.dataTransform","markerHelper.dataFilter","markerHelper.dimValueGetter","markerHelper.getAxisInfo","markerHelper.numCalculate","dimValueGetter","isInifinity","colorUtil.modifyAlpha","curry","layoutUtil.box","mergeAndNormalizeLayoutParams","WH","XY","installLegendPlain","installLegendScroll","dispatchAction","roams.setViewInfoToCoordSysRecord","roams.disposeCoordSysRecordIfNeeded","throttle.createOrUpdate","throttle.clear","installDataZoomInside","installDataZoomSlider","defaultOption","mapVisual","isArray","linearMap","helper.getItemAlign","getCursor","modelUtil.compressBatches","helper.makeHighDownBatch","visualSolution.incrementalApplyVisual","has","installed","installCommon","layout.box","PiecewiseView","installVisualMapContinuous","installVisualMapPiecewise","CanvasRenderer","SVGRenderer","LineChart","BarChart","PieChart","ScatterChart","RadarChart","MapChart","TreeChart","TreemapChart","GraphChart","GaugeChart","FunnelChart","ParallelChart","SankeyChart","BoxplotChart","CandlestickChart","EffectScatterChart","LinesChart","HeatmapChart","PictorialBarChart","ThemeRiverChart","SunburstChart","CustomChart","GridComponent","PolarComponent","GeoComponent","SingleAxisComponent","ParallelComponent","CalendarComponent","GraphicComponent","ToolboxComponent","TooltipComponent","AxisPointerComponent","BrushComponent","TitleComponent","TimelineComponent","MarkPointComponent","MarkLineComponent","MarkAreaComponent","LegendComponent","DataZoomComponent","DataZoomInsideComponent","DataZoomSliderComponent","VisualMapComponent","VisualMapContinuousComponent","VisualMapPiecewiseComponent","AriaComponent","TransformComponent","DatasetComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,C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M;IACX,MAAM,mBAAmB,GAAG;IAC5B,QAAQ,cAAc,EAAE,uBAAuB;IAC/C,QAAQ,YAAY,EAAE,CAAC;IACvB,QAAQ,UAAU,EAAE,MAAM,CAAC,UAAU;IACrC,OAAO,CAAC;IACR,KAAK;AACL;IACA,IAAI,OAAO,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtE,GAAG,CAAC,CAAC;IACL,CAAC;AACD;IACA,SAAS,uBAAuB,CAAC,YAAY,EAAE;IAC/C,EAAE,OAAO,YAAY,KAAK,wBAAwB,IAAI,YAAY,KAAK,yBAAyB,CAAC;IACjG;;IClcA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa;IACjB;IACA,YAAY;IACZ,EAAE,SAAS,aAAa,CAAC,UAAU,EAAE;IACrC;IACA,IAAI,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;AAC1B;IACA,IAAI,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAChC,IAAI,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;IAC9B,IAAI,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAClC,GAAG;IACH;IACA;IACA;AACA;AACA;IACA,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,GAAG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A;IACA;AACA;IACA,GAAG,CAACC,SAAmB,CAAC,CAAC;IACzB;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAgB,CAAC,CAAC;IACtB;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAoB,CAAC,CAAC;IAC1B;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAc,CAAC,CAAC;IACpB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAc,CAAC,CAAC;IACpB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAe,CAAC,CAAC;AACrB;IACA,GAAG,CAACC,SAAiB,CAAC,CAAC;IACvB;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAuB,CAAC,CAAC;IAC7B;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAuB,CAAC,CAAC;AAC7B;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB;IACA;IACA;AACA;IACA,GAAG,CAACC,SAA4B,CAAC,CAAC;IAClC;IACA;IACA;AACA;IACA,GAAG,CAACC,SAA2B,CAAC,CAAC;IACjC;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAa,CAAC,CAAC;IACnB;IACA;IACA;IACA;IACA;AACA;IACA,GAAG,CAACC,SAAkB,CAAC,CAAC;IACxB,GAAG,CAACC,SAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file From 6e0a25436accb9d0be7b81e601c5a4b71901d676 Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 12:56:57 +0800 Subject: [PATCH 54/64] fix: update package-lock to fix ci fail (previous commit only commit package.json, for update eslint-plugin version, for npm run checktype fail, for old tslib that the eslint-plugin used in the old version). --- package-lock.json | 204 +++++++++++++++++++++++++++++++++++++++------- package.json | 2 +- 2 files changed, 177 insertions(+), 29 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9675bf162b..ccd6a3e810 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1583,9 +1583,9 @@ } }, "@types/json-schema": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz", - "integrity": "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==", + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==", "dev": true }, "@types/node": { @@ -1649,44 +1649,192 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.13.0.tgz", - "integrity": "sha512-ygqDUm+BUPvrr0jrXqoteMqmIaZ/bixYOc3A4BRwzEPTZPi6E+n44rzNZWaB0YvtukgP+aoj0i/fyx7FkM2p1w==", + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.29.2.tgz", + "integrity": "sha512-x4EMgn4BTfVd9+Z+r+6rmWxoAzBaapt4QFqE+d8L8sUtYZYLDTK6VG/y/SMMWA5t1/BVU5Kf+20rX4PtWzUYZg==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "4.13.0", - "@typescript-eslint/scope-manager": "4.13.0", - "debug": "^4.1.1", + "@typescript-eslint/experimental-utils": "4.29.2", + "@typescript-eslint/scope-manager": "4.29.2", + "debug": "^4.3.1", "functional-red-black-tree": "^1.0.1", - "lodash": "^4.17.15", - "regexpp": "^3.0.0", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "regexpp": "^3.1.0", + "semver": "^7.3.5", + "tsutils": "^3.21.0" }, "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.29.2.tgz", + "integrity": "sha512-mfHmvlQxmfkU8D55CkZO2sQOueTxLqGvzV+mG6S/6fIunDiD2ouwsAoiYCZYDDK73QCibYjIZmGhpvKwAB5BOA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.29.2", + "@typescript-eslint/visitor-keys": "4.29.2" + } + }, + "@typescript-eslint/types": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.29.2.tgz", + "integrity": "sha512-K6ApnEXId+WTGxqnda8z4LhNMa/pZmbTFkDxEBLQAbhLZL50DjeY0VIDCml/0Y3FlcbqXZrABqrcKxq+n0LwzQ==", + "dev": true + }, + "@typescript-eslint/visitor-keys": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.2.tgz", + "integrity": "sha512-bDgJLQ86oWHJoZ1ai4TZdgXzJxsea3Ee9u9wsTAvjChdj2WLcVsgWYAPeY7RQMn16tKrlQaBnpKv7KBfs4EQag==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.29.2", + "eslint-visitor-keys": "^2.0.0" + } + }, + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, "requires": { "lru-cache": "^6.0.0" } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } } } }, "@typescript-eslint/experimental-utils": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.13.0.tgz", - "integrity": "sha512-/ZsuWmqagOzNkx30VWYV3MNB/Re/CGv/7EzlqZo5RegBN8tMuPaBgNK6vPBCQA8tcYrbsrTdbx3ixMRRKEEGVw==", + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.29.2.tgz", + "integrity": "sha512-P6mn4pqObhftBBPAv4GQtEK7Yos1fz/MlpT7+YjH9fTxZcALbiiPKuSIfYP/j13CeOjfq8/fr9Thr2glM9ub7A==", "dev": true, "requires": { - "@types/json-schema": "^7.0.3", - "@typescript-eslint/scope-manager": "4.13.0", - "@typescript-eslint/types": "4.13.0", - "@typescript-eslint/typescript-estree": "4.13.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^2.0.0" + "@types/json-schema": "^7.0.7", + "@typescript-eslint/scope-manager": "4.29.2", + "@typescript-eslint/types": "4.29.2", + "@typescript-eslint/typescript-estree": "4.29.2", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.29.2.tgz", + "integrity": "sha512-mfHmvlQxmfkU8D55CkZO2sQOueTxLqGvzV+mG6S/6fIunDiD2ouwsAoiYCZYDDK73QCibYjIZmGhpvKwAB5BOA==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.29.2", + "@typescript-eslint/visitor-keys": "4.29.2" + } + }, + "@typescript-eslint/types": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.29.2.tgz", + "integrity": "sha512-K6ApnEXId+WTGxqnda8z4LhNMa/pZmbTFkDxEBLQAbhLZL50DjeY0VIDCml/0Y3FlcbqXZrABqrcKxq+n0LwzQ==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.29.2.tgz", + "integrity": "sha512-TJ0/hEnYxapYn9SGn3dCnETO0r+MjaxtlWZ2xU+EvytF0g4CqTpZL48SqSNn2hXsPolnewF30pdzR9a5Lj3DNg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.29.2", + "@typescript-eslint/visitor-keys": "4.29.2", + "debug": "^4.3.1", + "globby": "^11.0.3", + "is-glob": "^4.0.1", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "4.29.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.2.tgz", + "integrity": "sha512-bDgJLQ86oWHJoZ1ai4TZdgXzJxsea3Ee9u9wsTAvjChdj2WLcVsgWYAPeY7RQMn16tKrlQaBnpKv7KBfs4EQag==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.29.2", + "eslint-visitor-keys": "^2.0.0" + } + }, + "debug": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", + "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + }, + "globby": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz", + "integrity": "sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + } } }, "@typescript-eslint/parser": { @@ -10974,9 +11122,9 @@ } }, "zrender": { - "version": "npm:zrender-nightly@5.1.2-dev.20210720", - "resolved": "https://registry.npmjs.org/zrender-nightly/-/zrender-nightly-5.1.2-dev.20210720.tgz", - "integrity": "sha512-29PQAyfpzF8MTGK+4tiZygBViaIRhAox3upIDuy99PQXF+WVRz9wIm2rioiLVI652cOrI2UGMI3MnC30ZiF6Zw==", + "version": "npm:zrender-nightly@5.1.2-dev.20210819", + "resolved": "https://registry.npmjs.org/zrender-nightly/-/zrender-nightly-5.1.2-dev.20210819.tgz", + "integrity": "sha512-iYEp8gxfpvRvEmr6arIpMMsidWhKL9PLWuR6nD8GkR40WV8YDT8XfQgK2kn4EGB+UEHvDJITt+Ps1SupgukmWg==", "requires": { "tslib": "2.3.0" } diff --git a/package.json b/package.json index 88704070be..12b24afc3f 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "@rollup/plugin-node-resolve": "^11.0.0", "@rollup/plugin-replace": "^2.3.4", "@types/jest": "^26.0.14", - "@typescript-eslint/eslint-plugin": "^4.29.1", + "@typescript-eslint/eslint-plugin": "^4.29.2", "@typescript-eslint/parser": "^4.9.1", "chalk": "^3.0.0", "commander": "2.11.0", From 1e3f1addbe0aa5994b4e805d9ecab1c50e8e150a Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 14:41:28 +0800 Subject: [PATCH 55/64] fix: rename to make name shorter. --- src/component/visualMap/VisualMapModel.ts | 2 +- src/data/SeriesData.ts | 79 +++++++------- src/data/SeriesDimensionDefine.ts | 4 +- src/data/helper/SeriesDataSchema.ts | 40 +++---- src/data/helper/createDimensions.ts | 6 +- src/data/helper/dataStackHelper.ts | 8 +- src/data/helper/dimensionHelper.ts | 2 +- src/data/helper/sourceManager.ts | 2 +- test/ut/spec/data/SeriesData.test.ts | 4 +- test/ut/spec/data/createDimensions.test.ts | 120 ++++++++++----------- 10 files changed, 134 insertions(+), 133 deletions(-) diff --git a/src/component/visualMap/VisualMapModel.ts b/src/component/visualMap/VisualMapModel.ts index 59a412dc7e..8534b29708 100644 --- a/src/component/visualMap/VisualMapModel.ts +++ b/src/component/visualMap/VisualMapModel.ts @@ -412,7 +412,7 @@ class VisualMapModel extends Com const dimName = dimNames[i]; const dimInfo = data.getDimensionInfo(dimName); if (!dimInfo.isCalculationCoord) { - return dimInfo.storageDimensionIndex; + return dimInfo.storeDimIndex; } } } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 9f2e6f12c8..f9415e5974 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -92,10 +92,11 @@ type SeriesDimensionName = DimensionName; const TRANSFERABLE_PROPERTIES = [ 'hasItemOption', '_nameList', '_idList', '_invertedIndicesMap', - '_dimensionsSummary', 'userOutput', + '_dimSummary', 'userOutput', '_rawData', '_dimValueGetter', '_nameDimIdx', '_idDimIdx', '_nameRepeatCount' ]; + const CLONE_PROPERTIES = [ '_approximateExtent' ]; @@ -164,9 +165,9 @@ class SeriesData< readonly dimensions: SeriesDimensionName[]; // Infomation of each data dimension, like data type. - private _dimensionInfos: Record; + private _dimInfos: Record; - private _dimensionOmitted = false; + private _dimOmitted = false; private _schema?: SeriesDataSchema; /** * @pending @@ -222,7 +223,7 @@ class SeriesData< // key: dim, value: extent private _approximateExtent: Record = {}; - private _dimensionsSummary: DimensionSummary; + private _dimSummary: DimensionSummary; private _invertedIndicesMap: Record>; @@ -271,7 +272,7 @@ class SeriesData< let assignStorageDimIdx = false; if (isSeriesDataSchema(dimensionsInput)) { dimensions = dimensionsInput.dimensionList; - this._dimensionOmitted = dimensionsInput.isDimensionOmitted(); + this._dimOmitted = dimensionsInput.isDimensionOmitted(); this._schema = dimensionsInput; } else { @@ -323,25 +324,25 @@ class SeriesData< } if (__DEV__) { - zrUtil.assert(assignStorageDimIdx || dimensionInfo.storageDimensionIndex >= 0); + zrUtil.assert(assignStorageDimIdx || dimensionInfo.storeDimIndex >= 0); } if (assignStorageDimIdx) { - dimensionInfo.storageDimensionIndex = i; + dimensionInfo.storeDimIndex = i; } } this.dimensions = dimensionNames; - this._dimensionInfos = dimensionInfos; + this._dimInfos = dimensionInfos; this._initGetDimensionInfo(needsHasOwn); this.hostModel = hostModel; this._invertedIndicesMap = invertedIndicesMap; - if (this._dimensionOmitted) { + if (this._dimOmitted) { const dimIdxToName = this._dimIdxToName = zrUtil.createHashMap(); zrUtil.each(dimensionNames, dimName => { - dimIdxToName.set(dimensionInfos[dimName].storageDimensionIndex, dimName); + dimIdxToName.set(dimensionInfos[dimName].storeDimIndex, dimName); }); } } @@ -370,7 +371,7 @@ class SeriesData< } dimIdx = dim as DimensionIndex; - if (!this._dimensionOmitted) { + if (!this._dimOmitted) { return this.dimensions[dimIdx]; } @@ -381,7 +382,7 @@ class SeriesData< return dimName; } - const sourceDimDef = this._schema.getDimensionFromSource(dimIdx); + const sourceDimDef = this._schema.getSourceDim(dimIdx); if (sourceDimDef) { return sourceDimDef.name; } @@ -397,10 +398,10 @@ class SeriesData< return dimIdx; } - const dimInfo = this._getDimensionInfo(dim as DimensionName); + const dimInfo = this._getDimInfo(dim as DimensionName); return dimInfo - ? dimInfo.storageDimensionIndex - : this._dimensionOmitted + ? dimInfo.storeDimIndex + : this._dimOmitted ? this._schema.getDimensionIndexFromSource(dim as DimensionName) : -1; } @@ -430,8 +431,8 @@ class SeriesData< || ( dim != null && !isNaN(dim as any) - && !this._getDimensionInfo(dim) - && (!this._dimensionOmitted || this._schema.getDimensionIndexFromSource(dim) < 0) + && !this._getDimInfo(dim) + && (!this._dimOmitted || this._schema.getDimensionIndexFromSource(dim) < 0) ) ) { return +dim; @@ -456,18 +457,18 @@ class SeriesData< */ getDimensionInfo(dim: SeriesDimensionLoose): SeriesDimensionDefine { // Do not clone, because there may be categories in dimInfo. - return this._getDimensionInfo(this.getDimension(dim)); + return this._getDimInfo(this.getDimension(dim)); } /** * If `dimName` if from outside of `SeriesData`, - * use this method other than visit `this._dimensionInfos` directly. + * use this method other than visit `this._dimInfos` directly. */ - private _getDimensionInfo: (dimName: SeriesDimensionName) => SeriesDimensionDefine; + private _getDimInfo: (dimName: SeriesDimensionName) => SeriesDimensionDefine; private _initGetDimensionInfo(needsHasOwn: boolean): void { - const dimensionInfos = this._dimensionInfos; - this._getDimensionInfo = needsHasOwn + const dimensionInfos = this._dimInfos; + this._getDimInfo = needsHasOwn ? dimName => (dimensionInfos.hasOwnProperty(dimName) ? dimensionInfos[dimName] : undefined) : dimName => dimensionInfos[dimName]; } @@ -476,7 +477,7 @@ class SeriesData< * concrete dimension name list on coord. */ getDimensionsOnCoord(): SeriesDimensionName[] { - return this._dimensionsSummary.dataDimsOnCoord.slice(); + return this._dimSummary.dataDimsOnCoord.slice(); } /** @@ -488,7 +489,7 @@ class SeriesData< mapDimension(coordDim: SeriesDimensionName): SeriesDimensionName; mapDimension(coordDim: SeriesDimensionName, idx: number): SeriesDimensionName; mapDimension(coordDim: SeriesDimensionName, idx?: number): SeriesDimensionName { - const dimensionsSummary = this._dimensionsSummary; + const dimensionsSummary = this._dimSummary; if (idx == null) { return dimensionsSummary.encodeFirstDimNotExtra[coordDim] as any; @@ -499,7 +500,7 @@ class SeriesData< } mapDimensionsAll(coordDim: SeriesDimensionName): SeriesDimensionName[] { - const dimensionsSummary = this._dimensionsSummary; + const dimensionsSummary = this._dimSummary; const dims = dimensionsSummary.encode[coordDim]; return (dims || []).slice(); } @@ -524,7 +525,7 @@ class SeriesData< ): void { let store: DataStorage; const dimensions = this.dimensions; - const dimensionInfos = map(dimensions, this._getDimensionInfo, this); + const dimensionInfos = map(dimensions, this._getDimInfo, this); if (data instanceof DataStorage) { store = data; } @@ -548,8 +549,8 @@ class SeriesData< // Cache summary info for fast visit. See "dimensionHelper". // Needs to be initialized after store is prepared. - this._dimensionsSummary = summarizeDimensions(this, this._schema); - this.userOutput = this._dimensionsSummary.userOutput; + this._dimSummary = summarizeDimensions(this, this._schema); + this.userOutput = this._dimSummary.userOutput; } /** @@ -595,9 +596,9 @@ class SeriesData< const store = this._store; const dimensions = this.dimensions; for (let i = 0; i < dimensions.length; i++) { - const dimInfo = this._dimensionInfos[dimensions[i]]; + const dimInfo = this._dimInfos[dimensions[i]]; if (dimInfo.ordinalMeta) { - store.collectOrdinalMeta(dimInfo.storageDimensionIndex, dimInfo.ordinalMeta); + store.collectOrdinalMeta(dimInfo.storeDimIndex, dimInfo.ordinalMeta); } } } @@ -762,9 +763,9 @@ class SeriesData< */ get(dim: SeriesDimensionName, idx: number): ParsedValue { const store = this._store; - const dimInfo = this._dimensionInfos[dim]; + const dimInfo = this._dimInfos[dim]; if (dimInfo) { - return store.get(dimInfo.storageDimensionIndex, idx); + return store.get(dimInfo.storeDimIndex, idx); } } @@ -773,9 +774,9 @@ class SeriesData< */ getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue { const store = this._store; - const dimInfo = this._dimensionInfos[dim]; + const dimInfo = this._dimInfos[dim]; if (dimInfo) { - return store.getByRawIndex(dimInfo.storageDimensionIndex, rawIdx); + return store.getByRawIndex(dimInfo.storeDimIndex, rawIdx); } } @@ -812,7 +813,7 @@ class SeriesData< * Only check the coord dimensions. */ hasValue(idx: number): boolean { - const dataDimIndicesOnCoord = this._dimensionsSummary.dataDimIndicesOnCoord; + const dataDimIndicesOnCoord = this._dimSummary.dataDimIndicesOnCoord; for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) { // Ordinal type originally can be string or number. // But when an ordinal type is used on coord, it can @@ -1341,7 +1342,7 @@ class SeriesData< list = new SeriesData( this._schema ? this._schema - : map(this.dimensions, this._getDimensionInfo, this), + : map(this.dimensions, this._getDimInfo, this), this.hostModel ); } @@ -1380,7 +1381,7 @@ class SeriesData< prepareInvertedIndex = function (data: SeriesData): void { const invertedIndicesMap = data._invertedIndicesMap; zrUtil.each(invertedIndicesMap, function (invertedIndices, dim) { - const dimInfo = data._dimensionInfos[dim]; + const dimInfo = data._dimInfos[dim]; // Currently, only dimensions that has ordinalMeta can create inverted indices. const ordinalMeta = dimInfo.ordinalMeta; const store = data._store; @@ -1395,7 +1396,7 @@ class SeriesData< } for (let i = 0; i < store.count(); i++) { // Only support the case that all values are distinct. - invertedIndices[store.get(dimInfo.storageDimensionIndex, i) as number] = i; + invertedIndices[store.get(dimInfo.storeDimIndex, i) as number] = i; } } }); @@ -1437,7 +1438,7 @@ class SeriesData< const list = new SeriesData( original._schema ? original._schema - : map(original.dimensions, original._getDimensionInfo, original), + : map(original.dimensions, original._getDimInfo, original), original.hostModel ); // FIXME If needs stackedOn, value may already been stacked diff --git a/src/data/SeriesDimensionDefine.ts b/src/data/SeriesDimensionDefine.ts index 5a2cae4940..216cad3b04 100644 --- a/src/data/SeriesDimensionDefine.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -46,7 +46,7 @@ class SeriesDimensionDefine { tooltip?: boolean; /** - * This dimension maps to the the dimension in dataStorage by `storageDimensionIndex`. + * This dimension maps to the the dimension in dataStorage by `storeDimIndex`. * Notice the facts: * 1. When there are too many dimensions in storage, seriesData only save the * used storage dimensions. @@ -54,7 +54,7 @@ class SeriesDimensionDefine { * becuause the dataset dimension definition might has no name specified by users, * or names in sereis dimension definition might be different from dataset. */ - storageDimensionIndex?: number; + storeDimIndex?: number; /** * Which coordSys dimension this dimension mapped to. diff --git a/src/data/helper/SeriesDataSchema.ts b/src/data/helper/SeriesDataSchema.ts index e7b49c671c..be1dee04aa 100644 --- a/src/data/helper/SeriesDataSchema.ts +++ b/src/data/helper/SeriesDataSchema.ts @@ -53,7 +53,7 @@ export class SeriesDataSchema { * used dimensions. * * CAUTION: - * Should have been sorted by `storageDimensionIndex` asc. + * Should have been sorted by `storeDimIndex` asc. * * PENDING: * The item can still be modified outsite. @@ -63,9 +63,9 @@ export class SeriesDataSchema { readonly source: Source; - private _fullDimensionCount: number; + private _fullDimCount: number; private _dimNameMap: ReturnType['dimNameMap']; - private _dimensionOmitted: boolean; + private _dimOmitted: boolean; constructor(opt: { source: Source, @@ -74,19 +74,19 @@ export class SeriesDataSchema { dimensionOmitted: boolean }) { this.dimensionList = opt.dimensionList; - this._dimensionOmitted = opt.dimensionOmitted; + this._dimOmitted = opt.dimensionOmitted; this.source = opt.source; - this._fullDimensionCount = opt.fullDimensionCount; + this._fullDimCount = opt.fullDimensionCount; - this._updateDimensionOmitted(opt.dimensionOmitted); + this._updateDimOmitted(opt.dimensionOmitted); } isDimensionOmitted(): boolean { - return this._dimensionOmitted; + return this._dimOmitted; } - private _updateDimensionOmitted(dimensionOmitted: boolean): void { - this._dimensionOmitted = dimensionOmitted; + private _updateDimOmitted(dimensionOmitted: boolean): void { + this._dimOmitted = dimensionOmitted; if (!dimensionOmitted) { return; } @@ -111,7 +111,7 @@ export class SeriesDataSchema { * * Notice: may return `null`/`undefined` if user not specify dimension names. */ - getDimensionFromSource(dimIndex: DimensionIndex): DimensionDefinition { + getSourceDim(dimIndex: DimensionIndex): DimensionDefinition { const dimensionsDefine = this.source.dimensionsDefine; if (dimensionsDefine) { return dimensionsDefine[dimIndex]; @@ -122,7 +122,7 @@ export class SeriesDataSchema { dimensions: DataStorageDimensionDefine[]; hash: string } { - const dimCount = this._fullDimensionCount; + const dimCount = this._fullDimCount; const willRetrieveDataByName = shouldRetrieveDataByName(this.source); const makeHashStrict = !shouldOmitUnusedDimensions(dimCount); @@ -137,8 +137,8 @@ export class SeriesDataSchema { let ordinalMeta: OrdinalMeta; const seriesDimDef = this.dimensionList[seriesDimIdx]; - // The list has been sorted by `storageDimensionIndex` asc. - if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) { + // The list has been sorted by `storeDimIndex` asc. + if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { property = willRetrieveDataByName ? seriesDimDef.name : null; type = seriesDimDef.type; ordinalMeta = seriesDimDef.ordinalMeta; @@ -146,7 +146,7 @@ export class SeriesDataSchema { seriesDimIdx++; } else { - const sourceDimDef = this.getDimensionFromSource(fullDimIdx); + const sourceDimDef = this.getSourceDim(fullDimIdx); if (sourceDimDef) { property = willRetrieveDataByName ? sourceDimDef.name : null; type = sourceDimDef.type; @@ -203,18 +203,18 @@ export class SeriesDataSchema { makeOutputDimensionNames(): DimensionName[] { const result = [] as DimensionName[]; - for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimensionCount; fullDimIdx++) { + for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimCount; fullDimIdx++) { let name: DimensionName; const seriesDimDef = this.dimensionList[seriesDimIdx]; - // The list has been sorted by `storageDimensionIndex` asc. - if (seriesDimDef && seriesDimDef.storageDimensionIndex === fullDimIdx) { + // The list has been sorted by `storeDimIndex` asc. + if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { if (!seriesDimDef.isCalculationCoord) { name = seriesDimDef.name; } seriesDimIdx++; } else { - const sourceDimDef = this.getDimensionFromSource(fullDimIdx); + const sourceDimDef = this.getSourceDim(fullDimIdx); if (sourceDimDef) { name = sourceDimDef.name; } @@ -228,11 +228,11 @@ export class SeriesDataSchema { appendCalculationDimension(dimDef: SeriesDimensionDefine): void { this.dimensionList.push(dimDef); dimDef.isCalculationCoord = true; - this._fullDimensionCount++; + this._fullDimCount++; // If append dimension on a data storage, consider the storage // might be shared by different series, series dimensions not // really map to storage dimensions. - this._updateDimensionOmitted(true); + this._updateDimOmitted(true); } } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 1bbf73ec5a..2cd6205913 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -95,7 +95,7 @@ export function legacyCreateDimensions( * If no 'value' dimension specified, the first no-named dimension will be * named as 'value'. * - * @return The results are always sorted by `storageDimensionIndex` asc. + * @return The results are always sorted by `storeDimIndex` asc. */ export default function createDimensions( // TODO: TYPE completeDimensions type @@ -150,7 +150,7 @@ export default function createDimensions( dimDefItem.displayName != null && (resultItem.displayName = dimDefItem.displayName); const newIdx = resultList.length; indicesMap[dimIdx] = newIdx; - resultItem.storageDimensionIndex = dimIdx; + resultItem.storeDimIndex = dimIdx; resultList.push(resultItem); return resultItem; } @@ -333,7 +333,7 @@ export default function createDimensions( }); // Sort dimensions: there are some rule that use the last dim as label, // and for some latter travel process easier. - resultList.sort((item0, item1) => item0.storageDimensionIndex - item1.storageDimensionIndex); + resultList.sort((item0, item1) => item0.storeDimIndex - item1.storeDimIndex); } removeDuplication(resultList); diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index 3904636e15..4c9ecd903d 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -155,7 +155,7 @@ export function enableDataStack( type: stackedDimType, isExtraCoord: true, isCalculationCoord: true, - storageDimensionIndex: dimensionDefineList.length + storeDimIndex: dimensionDefineList.length }; const stackResultDimensionDefine: SeriesDimensionDefine = { @@ -167,14 +167,14 @@ export function enableDataStack( type: stackedDimType, isExtraCoord: true, isCalculationCoord: true, - storageDimensionIndex: dimensionDefineList.length + 1 + storeDimIndex: dimensionDefineList.length + 1 }; if (schema) { if (storage) { - stackedOverDimensionDefine.storageDimensionIndex = + stackedOverDimensionDefine.storeDimIndex = storage.ensureCalculationDimension(stackedOverDimension, stackedDimType); - stackResultDimensionDefine.storageDimensionIndex = + stackResultDimensionDefine.storeDimIndex = storage.ensureCalculationDimension(stackResultDimension, stackedDimType); } diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index b23bf077e1..38fa09ccc8 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -158,7 +158,7 @@ export function summarizeDimensions( summary.dataDimsOnCoord = dataDimsOnCoord; summary.dataDimIndicesOnCoord = map( - dataDimsOnCoord, dimName => data.getDimensionInfo(dimName).storageDimensionIndex + dataDimsOnCoord, dimName => data.getDimensionInfo(dimName).storeDimIndex ); summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra; diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index 52b2709445..ad90e7a549 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -371,7 +371,7 @@ export class SourceManager { * Only available for series. * * @param seriesDimRequest Dimensions that are generated in series. - * Should have been sorted by `storageDimensionIndex` asc. + * Should have been sorted by `storeDimIndex` asc. */ getSharedDataStorage(seriesDimRequest: SeriesDataSchema): DataStorage { if (__DEV__) { diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index fa219a65dc..c164df9298 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -232,8 +232,8 @@ describe('SeriesData', function () { const schema = new SeriesDataSchema({ source: source, dimensionList: [ - { type: 'float', name: 'dim1', storageDimensionIndex: 1 }, - { type: 'ordinal', name: 'dim3', storageDimensionIndex: 3 } + { type: 'float', name: 'dim1', storeDimIndex: 1 }, + { type: 'ordinal', name: 'dim3', storeDimIndex: 3 } ], fullDimensionCount: 2, dimensionOmitted: true diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index f4da05b767..8135fc9332 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -155,7 +155,7 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': { @@ -166,7 +166,7 @@ describe('createDimensions', function () { 'coordDim': 'value', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': { @@ -177,7 +177,7 @@ describe('createDimensions', function () { 'coordDim': 'value0', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 }, { 'otherDims': { @@ -188,7 +188,7 @@ describe('createDimensions', function () { 'coordDim': 'value1', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 3 + 'storeDimIndex': 3 }, { 'otherDims': { @@ -199,7 +199,7 @@ describe('createDimensions', function () { 'coordDim': 'value2', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 4 + 'storeDimIndex': 4 }, { 'otherDims': {}, @@ -208,7 +208,7 @@ describe('createDimensions', function () { 'coordDim': 'value3', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 5 + 'storeDimIndex': 5 }, { 'otherDims': {}, @@ -217,7 +217,7 @@ describe('createDimensions', function () { 'coordDim': 'y', 'coordDimIndex': 0, 'type': 'float', - 'storageDimensionIndex': 6 + 'storeDimIndex': 6 }, { 'otherDims': {}, @@ -226,7 +226,7 @@ describe('createDimensions', function () { 'coordDim': 'y', 'coordDimIndex': 3, 'type': 'float', - 'storageDimensionIndex': 7 + 'storeDimIndex': 7 }, { 'otherDims': {}, @@ -235,7 +235,7 @@ describe('createDimensions', function () { 'coordDim': 'y', 'coordDimIndex': 2, 'type': 'float', - 'storageDimensionIndex': 8 + 'storeDimIndex': 8 }, { 'otherDims': {}, @@ -244,7 +244,7 @@ describe('createDimensions', function () { 'coordDim': 'y', 'coordDimIndex': 1, 'type': 'float', - 'storageDimensionIndex': 9 + 'storeDimIndex': 9 }, { 'otherDims': {}, @@ -253,7 +253,7 @@ describe('createDimensions', function () { 'coordDim': 'value4', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 10 + 'storeDimIndex': 10 } ]; @@ -277,14 +277,14 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ]); @@ -294,14 +294,14 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ]); @@ -311,14 +311,14 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ]); @@ -328,7 +328,7 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 } ]); @@ -338,21 +338,21 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': {}, 'coordDim': 'z', 'coordDimIndex': 0, 'name': 'z', - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ]); @@ -362,7 +362,7 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 } ]); @@ -375,14 +375,14 @@ describe('createDimensions', function () { 'coordDim': 'x', 'coordDimIndex': 0, 'name': 'x', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': {}, @@ -390,7 +390,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'isExtraCoord': true, 'name': 'value', - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 }, { 'otherDims': {}, @@ -398,7 +398,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'isExtraCoord': true, 'name': 'value0', - 'storageDimensionIndex': 3 + 'storeDimIndex': 3 } ]); }); @@ -433,14 +433,14 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'name': 'x', 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -454,7 +454,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'name': 'value', 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 } ] ); @@ -470,14 +470,14 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'ordinalMeta': undefined, 'coordDim': 'time', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'value', 'coordDimIndex': 0, 'name': 'value', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -507,7 +507,7 @@ describe('createDimensions', function () { 'type': 'ordinal', 'displayName': 'base', 'ordinalMeta': undefined, - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -517,7 +517,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'coordDim': 'x', 'displayName': 'open', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -550,7 +550,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'coordDim': 'y', 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': { @@ -561,7 +561,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'ordinalMeta': undefined, 'coordDim': 'x', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': { @@ -572,7 +572,7 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 1, 'coordDim': 'x', - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -603,7 +603,7 @@ describe('createDimensions', function () { 'coordDim': 'x', 'ordinalMeta': undefined, 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': { @@ -615,7 +615,7 @@ describe('createDimensions', function () { 'defaultTooltip': undefined, 'coordDimIndex': 0, 'coordDim': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': {}, @@ -624,7 +624,7 @@ describe('createDimensions', function () { 'coordDimIndex': 0, 'isExtraCoord': true, 'coordDim': 'value', - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -663,14 +663,14 @@ describe('createDimensions', function () { 'type': 'ordinal', 'coordDim': 'x', 'coordDimIndex': 0, - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': {}, @@ -678,7 +678,7 @@ describe('createDimensions', function () { 'name': '歪溜', 'coordDim': 'value', 'coordDimIndex': 0, - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -697,14 +697,14 @@ describe('createDimensions', function () { 'type': 'ordinal', 'coordDim': 'x', 'coordDimIndex': 0, - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': {}, @@ -712,7 +712,7 @@ describe('createDimensions', function () { 'coordDim': 'value', 'type': 'ordinal', 'coordDimIndex': 0, - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -732,7 +732,7 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 0, 'coordDim': 'time', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -741,7 +741,7 @@ describe('createDimensions', function () { 'type': 'float', 'coordDim': 'value', 'coordDimIndex': 0, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -762,7 +762,7 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 0, 'coordDim': 'time', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -771,7 +771,7 @@ describe('createDimensions', function () { 'type': 'float', 'coordDim': 'value', 'coordDimIndex': 0, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -814,7 +814,7 @@ describe('createDimensions', function () { 'name': 'value', 'isExtraCoord': true, 'type': 'ordinal', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 } ] ); @@ -839,14 +839,14 @@ describe('createDimensions', function () { 'coordDim': 'value', 'coordDimIndex': 0, 'isExtraCoord': true, - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, 'coordDim': 'y', 'coordDimIndex': 0, 'name': 'y', - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': { @@ -856,7 +856,7 @@ describe('createDimensions', function () { 'name': '歪溜', 'coordDim': 'x', 'coordDimIndex': 0, - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -881,7 +881,7 @@ describe('createDimensions', function () { 'type': 'ordinal', 'coordDim': 'z', 'coordDimIndex': 0, - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -890,7 +890,7 @@ describe('createDimensions', function () { 'name': 'y', 'type': 'time', 'ordinalMeta': undefined, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 }, { 'otherDims': { @@ -900,7 +900,7 @@ describe('createDimensions', function () { 'name': '歪溜', 'coordDim': 'x', 'coordDimIndex': 0, - 'storageDimensionIndex': 2 + 'storeDimIndex': 2 } ] ); @@ -924,7 +924,7 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 0, 'coordDim': 'time', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -933,7 +933,7 @@ describe('createDimensions', function () { 'type': 'float', 'coordDim': 'value', 'coordDimIndex': 0, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); @@ -957,7 +957,7 @@ describe('createDimensions', function () { 'ordinalMeta': undefined, 'coordDimIndex': 0, 'coordDim': 'time', - 'storageDimensionIndex': 0 + 'storeDimIndex': 0 }, { 'otherDims': {}, @@ -966,7 +966,7 @@ describe('createDimensions', function () { 'type': 'float', 'coordDim': 'value', 'coordDimIndex': 0, - 'storageDimensionIndex': 1 + 'storeDimIndex': 1 } ] ); From dd4861976cf9556fb907986e9ca4e6aad71bf455 Mon Sep 17 00:00:00 2001 From: sushuang Date: Fri, 20 Aug 2021 22:50:28 +0800 Subject: [PATCH 56/64] fix: rename shorter. --- src/chart/helper/createGraphFromNodeEdge.ts | 6 +++--- src/chart/helper/createSeriesData.ts | 6 +++--- src/chart/helper/createSeriesDataSimply.ts | 6 +++--- src/chart/themeRiver/ThemeRiverSeries.ts | 6 +++--- src/data/SeriesData.ts | 14 +++++++------- src/data/Tree.ts | 6 +++--- src/data/helper/SeriesDataSchema.ts | 18 +++++++++--------- src/data/helper/createDimensions.ts | 6 +++--- src/data/helper/dataStackHelper.ts | 6 +++--- src/data/helper/dimensionHelper.ts | 2 +- src/export/api/helper.ts | 2 +- src/model/Series.ts | 2 +- 12 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index 7bf8554a09..4bcbd01911 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -22,7 +22,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; import Graph from '../../data/Graph'; import linkSeriesData from '../../data/helper/linkSeriesData'; -import createDimensions from '../../data/helper/createDimensions'; +import prepareSeriesDataSchema from '../../data/helper/createDimensions'; import CoordinateSystem from '../../core/CoordinateSystem'; import createSeriesData from './createSeriesData'; import { @@ -83,11 +83,11 @@ export default function createGraphFromNodeEdge( coordDimensions.concat(['value']); } - const { dimensionList } = createDimensions(nodes, { + const { dimList } = prepareSeriesDataSchema(nodes, { coordDimensions: coordDimensions, encodeDefine: seriesModel.getEncode() }); - nodeData = new SeriesData(dimensionList, seriesModel); + nodeData = new SeriesData(dimList, seriesModel); nodeData.initData(nodes); } diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 9e8eec3186..7f9b22ed42 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -19,7 +19,7 @@ import * as zrUtil from 'zrender/src/core/util'; import SeriesData from '../../data/SeriesData'; -import createDimensions from '../../data/helper/createDimensions'; +import prepareSeriesDataSchema from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import {getDataItemValue} from '../../util/model'; import CoordinateSystem from '../../core/CoordinateSystem'; @@ -146,9 +146,9 @@ function createSeriesData( encodeDefaulter: encodeDefaulter, canOmitUnusedDimensions: !isOriginalSource }; - const schema = createDimensions(source, createDimensionOptions); + const schema = prepareSeriesDataSchema(source, createDimensionOptions); const firstCategoryDimIndex = injectOrdinalMeta( - schema.dimensionList, opt.createInvertedIndices, coordSysInfo + schema.dimList, opt.createInvertedIndices, coordSysInfo ); const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(schema) : null; diff --git a/src/chart/helper/createSeriesDataSimply.ts b/src/chart/helper/createSeriesDataSimply.ts index b69315ae3d..5535ff295c 100644 --- a/src/chart/helper/createSeriesDataSimply.ts +++ b/src/chart/helper/createSeriesDataSimply.ts @@ -17,7 +17,7 @@ * under the License. */ -import createDimensions, {CreateDimensionsParams} from '../../data/helper/createDimensions'; +import prepareSeriesDataSchema, {CreateDimensionsParams} from '../../data/helper/createDimensions'; import SeriesData from '../../data/SeriesData'; import {extend, isArray} from 'zrender/src/core/util'; import SeriesModel from '../../model/Series'; @@ -45,9 +45,9 @@ export default function createSeriesDataSimply( const source = seriesModel.getSource(); - const { dimensionList } = createDimensions(source, opt as CreateDimensionsParams); + const { dimList } = prepareSeriesDataSchema(source, opt as CreateDimensionsParams); - const list = new SeriesData(dimensionList, seriesModel); + const list = new SeriesData(dimList, seriesModel); list.initData(source, nameList); return list; diff --git a/src/chart/themeRiver/ThemeRiverSeries.ts b/src/chart/themeRiver/ThemeRiverSeries.ts index a64fe64c54..913d515923 100644 --- a/src/chart/themeRiver/ThemeRiverSeries.ts +++ b/src/chart/themeRiver/ThemeRiverSeries.ts @@ -18,7 +18,7 @@ */ import SeriesModel from '../../model/Series'; -import createDimensions from '../../data/helper/createDimensions'; +import prepareSeriesDataSchema from '../../data/helper/createDimensions'; import {getDimensionTypeByAxis} from '../../data/helper/dimensionHelper'; import SeriesData from '../../data/SeriesData'; import * as zrUtil from 'zrender/src/core/util'; @@ -177,7 +177,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } } - const { dimensionList } = createDimensions(data, { + const { dimList } = prepareSeriesDataSchema(data, { coordDimensions: ['single'], dimensionsDefine: [ { @@ -200,7 +200,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } }); - const list = new SeriesData(dimensionList, this); + const list = new SeriesData(dimList, this); list.initData(data); return list; diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index f9415e5974..13f147eba7 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -271,8 +271,8 @@ class SeriesData< let dimensions: SeriesDimensionDefineLoose[]; let assignStorageDimIdx = false; if (isSeriesDataSchema(dimensionsInput)) { - dimensions = dimensionsInput.dimensionList; - this._dimOmitted = dimensionsInput.isDimensionOmitted(); + dimensions = dimensionsInput.dimList; + this._dimOmitted = dimensionsInput.isDimOmitted(); this._schema = dimensionsInput; } else { @@ -365,7 +365,7 @@ class SeriesData< * @return Concrete dim name. */ getDimension(dim: SeriesDimensionLoose): DimensionName { - let dimIdx = this._recognizeDimensionIndex(dim); + let dimIdx = this._recognizeDimIndex(dim); if (dimIdx == null) { return dim as DimensionName; } @@ -393,7 +393,7 @@ class SeriesData< * Can be used to index value from getRawValue. */ getDimensionIndex(dim: DimensionLoose): DimensionIndex { - const dimIdx = this._recognizeDimensionIndex(dim); + const dimIdx = this._recognizeDimIndex(dim); if (dimIdx != null) { return dimIdx; } @@ -402,7 +402,7 @@ class SeriesData< return dimInfo ? dimInfo.storeDimIndex : this._dimOmitted - ? this._schema.getDimensionIndexFromSource(dim as DimensionName) + ? this._schema.getSourceDimIndex(dim as DimensionName) : -1; } @@ -425,14 +425,14 @@ class SeriesData< * * @return recogonized `DimensionIndex`. Otherwise return null/undefined (means that dim is `DimensionName`). */ - private _recognizeDimensionIndex(dim: DimensionLoose): DimensionIndex { + private _recognizeDimIndex(dim: DimensionLoose): DimensionIndex { if (typeof dim === 'number' // If being a number-like string but not being defined as a dimension name. || ( dim != null && !isNaN(dim as any) && !this._getDimInfo(dim) - && (!this._dimOmitted || this._schema.getDimensionIndexFromSource(dim) < 0) + && (!this._dimOmitted || this._schema.getSourceDimIndex(dim) < 0) ) ) { return +dim; diff --git a/src/data/Tree.ts b/src/data/Tree.ts index fe92a72930..a3b11a0078 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -25,7 +25,7 @@ import * as zrUtil from 'zrender/src/core/util'; import Model from '../model/Model'; import linkSeriesData from './helper/linkSeriesData'; import SeriesData from './SeriesData'; -import createDimensions from './helper/createDimensions'; +import prepareSeriesDataSchema from './helper/createDimensions'; import { DimensionLoose, ParsedValue, OptionDataValue, OptionDataItemObject @@ -447,12 +447,12 @@ class Tree { tree.root.updateDepthAndHeight(0); - const { dimensionList } = createDimensions(listData, { + const { dimList } = prepareSeriesDataSchema(listData, { coordDimensions: ['value'], dimensionsCount: dimMax }); - const list = new SeriesData(dimensionList, hostModel); + const list = new SeriesData(dimList, hostModel); list.initData(listData); beforeLink && beforeLink(list); diff --git a/src/data/helper/SeriesDataSchema.ts b/src/data/helper/SeriesDataSchema.ts index be1dee04aa..44c62318dc 100644 --- a/src/data/helper/SeriesDataSchema.ts +++ b/src/data/helper/SeriesDataSchema.ts @@ -59,7 +59,7 @@ export class SeriesDataSchema { * The item can still be modified outsite. * But MUST NOT add/remove item of this array. */ - readonly dimensionList: SeriesDimensionDefine[]; + readonly dimList: SeriesDimensionDefine[]; readonly source: Source; @@ -73,7 +73,7 @@ export class SeriesDataSchema { fullDimensionCount: number, dimensionOmitted: boolean }) { - this.dimensionList = opt.dimensionList; + this.dimList = opt.dimensionList; this._dimOmitted = opt.dimensionOmitted; this.source = opt.source; this._fullDimCount = opt.fullDimensionCount; @@ -81,7 +81,7 @@ export class SeriesDataSchema { this._updateDimOmitted(opt.dimensionOmitted); } - isDimensionOmitted(): boolean { + isDimOmitted(): boolean { return this._dimOmitted; } @@ -102,7 +102,7 @@ export class SeriesDataSchema { * That is, get index from `dimensionsDefine`. * If no `dimensionsDefine`, or no name get, return -1. */ - getDimensionIndexFromSource(dimName: DimensionName): DimensionIndex { + getSourceDimIndex(dimName: DimensionName): DimensionIndex { return retrieve2(this._dimNameMap.get(dimName), -1); } @@ -136,7 +136,7 @@ export class SeriesDataSchema { let type: DimensionType; let ordinalMeta: OrdinalMeta; - const seriesDimDef = this.dimensionList[seriesDimIdx]; + const seriesDimDef = this.dimList[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { property = willRetrieveDataByName ? seriesDimDef.name : null; @@ -200,12 +200,12 @@ export class SeriesDataSchema { }; } - makeOutputDimensionNames(): DimensionName[] { + makeOutputDimNames(): DimensionName[] { const result = [] as DimensionName[]; for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimCount; fullDimIdx++) { let name: DimensionName; - const seriesDimDef = this.dimensionList[seriesDimIdx]; + const seriesDimDef = this.dimList[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { if (!seriesDimDef.isCalculationCoord) { @@ -225,8 +225,8 @@ export class SeriesDataSchema { return result; } - appendCalculationDimension(dimDef: SeriesDimensionDefine): void { - this.dimensionList.push(dimDef); + appendCalcDim(dimDef: SeriesDimensionDefine): void { + this.dimList.push(dimDef); dimDef.isCalculationCoord = true; this._fullDimCount++; // If append dimension on a data storage, consider the storage diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index 2cd6205913..e3b419f147 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -78,11 +78,11 @@ export type CreateDimensionsParams = { /** * For outside usage compat (like echarts-gl are using it). */ -export function legacyCreateDimensions( +export function createDimensions( source: Source | OptionSourceData, opt?: CreateDimensionsParams ): SeriesDimensionDefine[] { - return createDimensions(source, opt).dimensionList; + return prepareSeriesDataSchema(source, opt).dimList; } /** @@ -97,7 +97,7 @@ export function legacyCreateDimensions( * * @return The results are always sorted by `storeDimIndex` asc. */ -export default function createDimensions( +export default function prepareSeriesDataSchema( // TODO: TYPE completeDimensions type source: Source | OptionSourceData, opt?: CreateDimensionsParams diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index 4c9ecd903d..f0824c94c4 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -83,7 +83,7 @@ export function enableDataStack( } else { schema = dimensionsInput.schema; - dimensionDefineList = schema.dimensionList; + dimensionDefineList = schema.dimList; storage = dimensionsInput.storage; } @@ -178,8 +178,8 @@ export function enableDataStack( storage.ensureCalculationDimension(stackResultDimension, stackedDimType); } - schema.appendCalculationDimension(stackedOverDimensionDefine); - schema.appendCalculationDimension(stackResultDimensionDefine); + schema.appendCalcDim(stackedOverDimensionDefine); + schema.appendCalcDim(stackResultDimensionDefine); } else { dimensionDefineList.push(stackedOverDimensionDefine); diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 38fa09ccc8..6d0783f887 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -82,7 +82,7 @@ class DimensionUserOuput { private _getFullDimensionNames(): DimensionName[] { if (!this._cachedDimNames) { this._cachedDimNames = this._schema - ? this._schema.makeOutputDimensionNames() + ? this._schema.makeOutputDimNames() : []; } return this._cachedDimNames; diff --git a/src/export/api/helper.ts b/src/export/api/helper.ts index db07450d94..3d63a7b140 100644 --- a/src/export/api/helper.ts +++ b/src/export/api/helper.ts @@ -54,7 +54,7 @@ export function createList(seriesModel: SeriesModel) { export {getLayoutRect}; -export {legacyCreateDimensions as createDimensions} from '../../data/helper/createDimensions'; +export {createDimensions} from '../../data/helper/createDimensions'; export const dataStack = { isDimensionStacked: isDimensionStacked, diff --git a/src/model/Series.ts b/src/model/Series.ts index 2ac2b321bb..a11bc5c6de 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -699,7 +699,7 @@ function dataTaskProgress(param: StageHandlerProgressParams, context: SeriesTask // TODO refactor function wrapData(data: SeriesData, seriesModel: SeriesModel): void { - zrUtil.each([...data.CHANGABLE_METHODS, ...data.DOWNSAMPLE_METHODS], function (methodName) { + zrUtil.each(zrUtil.concatArray(data.CHANGABLE_METHODS, data.DOWNSAMPLE_METHODS), function (methodName) { data.wrapMethod(methodName as any, zrUtil.curry(onDataChange, seriesModel)); }); } From f26ccaeca2443f8b9fb08514ac63a1fae3b6e5d7 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sat, 21 Aug 2021 21:25:14 +0800 Subject: [PATCH 57/64] fix: rename DataStorage -> dataStore and some other renames. --- src/chart/candlestick/candlestickLayout.ts | 4 +- src/chart/helper/createGraphFromNodeEdge.ts | 4 +- src/chart/helper/createSeriesData.ts | 8 ++-- src/chart/helper/createSeriesDataSimply.ts | 8 ++-- src/chart/themeRiver/ThemeRiverSeries.ts | 4 +- src/data/{DataStorage.ts => DataStore.ts} | 52 ++++++++++----------- src/data/SeriesData.ts | 26 +++++------ src/data/SeriesDimensionDefine.ts | 2 +- src/data/Tree.ts | 4 +- src/data/helper/SeriesDataSchema.ts | 32 ++++++------- src/data/helper/createDimensions.ts | 14 +++--- src/data/helper/dataStackHelper.ts | 12 ++--- src/data/helper/dimensionHelper.ts | 6 +-- src/data/helper/sourceManager.ts | 26 +++++------ src/util/types.ts | 6 +-- 15 files changed, 104 insertions(+), 104 deletions(-) rename src/data/{DataStorage.ts => DataStore.ts} (96%) diff --git a/src/chart/candlestick/candlestickLayout.ts b/src/chart/candlestick/candlestickLayout.ts index f38eb6fc35..fa75cb681c 100644 --- a/src/chart/candlestick/candlestickLayout.ts +++ b/src/chart/candlestick/candlestickLayout.ts @@ -27,7 +27,7 @@ import { DimensionIndex, StageHandler, StageHandlerProgressParams } from '../../ import CandlestickSeriesModel from './CandlestickSeries'; import SeriesData from '../../data/SeriesData'; import { RectLike } from 'zrender/src/core/BoundingRect'; -import DataStorage from '../../data/DataStorage'; +import DataStore from '../../data/DataStore'; const LargeArr = typeof Float32Array !== 'undefined' ? Float32Array : Array; @@ -206,7 +206,7 @@ const candlestickLayout: StageHandler = { }; function getSign( - storage: DataStorage, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex + storage: DataStore, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex ): -1 | 1 { let sign: -1 | 1; if (openVal > closeVal) { diff --git a/src/chart/helper/createGraphFromNodeEdge.ts b/src/chart/helper/createGraphFromNodeEdge.ts index 4bcbd01911..14eea23fd3 100644 --- a/src/chart/helper/createGraphFromNodeEdge.ts +++ b/src/chart/helper/createGraphFromNodeEdge.ts @@ -83,11 +83,11 @@ export default function createGraphFromNodeEdge( coordDimensions.concat(['value']); } - const { dimList } = prepareSeriesDataSchema(nodes, { + const { dimensions } = prepareSeriesDataSchema(nodes, { coordDimensions: coordDimensions, encodeDefine: seriesModel.getEncode() }); - nodeData = new SeriesData(dimList, seriesModel); + nodeData = new SeriesData(dimensions, seriesModel); nodeData.initData(nodes); } diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 7f9b22ed42..25277d4e09 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -35,7 +35,7 @@ import { EncodeDefaulter } from '../../util/types'; import SeriesModel from '../../model/Series'; -import DataStorage from '../../data/DataStorage'; +import DataStore from '../../data/DataStore'; import SeriesDimensionDefine from '../../data/SeriesDimensionDefine'; function getCoordSysDimDefs( @@ -148,10 +148,10 @@ function createSeriesData( }; const schema = prepareSeriesDataSchema(source, createDimensionOptions); const firstCategoryDimIndex = injectOrdinalMeta( - schema.dimList, opt.createInvertedIndices, coordSysInfo + schema.dimensions, opt.createInvertedIndices, coordSysInfo ); - const storage = !isOriginalSource ? sourceManager.getSharedDataStorage(schema) : null; + const storage = !isOriginalSource ? sourceManager.getSharedDataStore(schema) : null; const stackCalculationInfo = enableDataStack(seriesModel, { schema, storage }); @@ -161,7 +161,7 @@ function createSeriesData( const dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) - ? function (this: DataStorage, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { + ? function (this: DataStore, itemOpt: any, dimName: string, dataIndex: number, dimIndex: number) { // Use dataIndex as ordinal value in categoryAxis return dimIndex === firstCategoryDimIndex ? dataIndex diff --git a/src/chart/helper/createSeriesDataSimply.ts b/src/chart/helper/createSeriesDataSimply.ts index 5535ff295c..d99c246ecf 100644 --- a/src/chart/helper/createSeriesDataSimply.ts +++ b/src/chart/helper/createSeriesDataSimply.ts @@ -17,7 +17,7 @@ * under the License. */ -import prepareSeriesDataSchema, {CreateDimensionsParams} from '../../data/helper/createDimensions'; +import prepareSeriesDataSchema, {PrepareSeriesDataSchemaParams} from '../../data/helper/createDimensions'; import SeriesData from '../../data/SeriesData'; import {extend, isArray} from 'zrender/src/core/util'; import SeriesModel from '../../model/Series'; @@ -34,7 +34,7 @@ import SeriesModel from '../../model/Series'; */ export default function createSeriesDataSimply( seriesModel: SeriesModel, - opt: CreateDimensionsParams | CreateDimensionsParams['coordDimensions'], + opt: PrepareSeriesDataSchemaParams | PrepareSeriesDataSchemaParams['coordDimensions'], nameList?: string[] ): SeriesData { opt = isArray(opt) && { @@ -45,9 +45,9 @@ export default function createSeriesDataSimply( const source = seriesModel.getSource(); - const { dimList } = prepareSeriesDataSchema(source, opt as CreateDimensionsParams); + const { dimensions } = prepareSeriesDataSchema(source, opt as PrepareSeriesDataSchemaParams); - const list = new SeriesData(dimList, seriesModel); + const list = new SeriesData(dimensions, seriesModel); list.initData(source, nameList); return list; diff --git a/src/chart/themeRiver/ThemeRiverSeries.ts b/src/chart/themeRiver/ThemeRiverSeries.ts index 913d515923..4cd6c57fa2 100644 --- a/src/chart/themeRiver/ThemeRiverSeries.ts +++ b/src/chart/themeRiver/ThemeRiverSeries.ts @@ -177,7 +177,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } } - const { dimList } = prepareSeriesDataSchema(data, { + const { dimensions } = prepareSeriesDataSchema(data, { coordDimensions: ['single'], dimensionsDefine: [ { @@ -200,7 +200,7 @@ class ThemeRiverSeriesModel extends SeriesModel { } }); - const list = new SeriesData(dimList, this); + const list = new SeriesData(dimensions, this); list.initData(data); return list; diff --git a/src/data/DataStorage.ts b/src/data/DataStore.ts similarity index 96% rename from src/data/DataStorage.ts rename to src/data/DataStore.ts index b32c61bc3e..44c5051f57 100644 --- a/src/data/DataStorage.ts +++ b/src/data/DataStore.ts @@ -51,7 +51,7 @@ const dataCtors = { 'time': CtorFloat64Array } as const; -export type DataStorageDimensionType = keyof typeof dataCtors; +export type DataStoreDimensionType = keyof typeof dataCtors; type DataTypedArray = Uint32Array | Int32Array | Uint16Array | Float64Array; type DataTypedArrayConstructor = typeof Uint32Array | typeof Int32Array | typeof Uint16Array | typeof Float64Array; @@ -72,18 +72,18 @@ type FilterCb = (...args: any) => boolean; type MapCb = (...args: any) => ParsedValue | ParsedValue[]; export type DimValueGetter = ( - this: DataStorage, + this: DataStore, dataItem: any, property: string, dataIndex: number, dimIndex: DimensionIndex ) => ParsedValue; -export interface DataStorageDimensionDefine { +export interface DataStoreDimensionDefine { /** * Default to be float. */ - type?: DataStorageDimensionType; + type?: DataStoreDimensionType; /** * Only used in SOURCE_FORMAT_OBJECT_ROWS and SOURCE_FORMAT_KEYED_COLUMNS to retrieve value @@ -129,7 +129,7 @@ function cloneChunk(originalChunk: DataValueChunk): DataValueChunk { function prepareStorage( storage: DataValueChunk[], dimIdx: number, - dimType: DataStorageDimensionType, + dimType: DataStoreDimensionType, end: number, append?: boolean ): void { @@ -154,9 +154,9 @@ function prepareStorage( }; /** - * Basically, DataStorage API keep immutable. + * Basically, DataStore API keep immutable. */ -class DataStorage { +class DataStore { private _chunks: DataValueChunk[] = []; private _provider: DataProvider; @@ -173,7 +173,7 @@ class DataStorage { private _count: number = 0; private _rawCount: number = 0; - private _dimensions: DataStorageDimensionDefine[]; + private _dimensions: DataStoreDimensionDefine[]; private _dimValueGetter: DimValueGetter; private _calcDimNameToIdx = createHashMap(); @@ -185,7 +185,7 @@ class DataStorage { */ initData( provider: DataProvider, - inputDimensions: DataStorageDimensionDefine[], + inputDimensions: DataStoreDimensionDefine[], dimValueGetter?: DimValueGetter ): void { if (__DEV__) { @@ -236,7 +236,7 @@ class DataStorage { /** * @caution Only used in dataStack. */ - ensureCalculationDimension(dimName: DimensionName, type: DataStorageDimensionType): DimensionIndex { + ensureCalculationDimension(dimName: DimensionName, type: DataStoreDimensionType): DimensionIndex { const calcDimNameToIdx = this._calcDimNameToIdx; const dimensions = this._dimensions; @@ -296,7 +296,7 @@ class DataStorage { return ordinalMeta; } - getDimensionProperty(dimIndex: DimensionIndex): DataStorageDimensionDefine['property'] { + getDimensionProperty(dimIndex: DimensionIndex): DataStoreDimensionDefine['property'] { const item = this._dimensions[dimIndex]; return item && item.property; } @@ -648,7 +648,7 @@ class DataStorage { filter( dims: DimensionIndex[], cb: FilterCb - ): DataStorage { + ): DataStore { if (!this._count) { return this; } @@ -706,7 +706,7 @@ class DataStorage { * Select data in range. (For optimization of filter) * (Manually inline code, support 5 million data filtering in data zoom.) */ - selectRange(range: {[dimIdx: number]: [number, number]}): DataStorage { + selectRange(range: {[dimIdx: number]: [number, number]}): DataStore { const newStore = this.clone(); const len = newStore._count; @@ -836,7 +836,7 @@ class DataStorage { /** * Data mapping to a new List with given dimensions */ - map(dims: DimensionIndex[], cb: MapCb): DataStorage { + map(dims: DimensionIndex[], cb: MapCb): DataStore { // TODO only clone picked chunks. const target = this.clone(dims); this._updateDims(target, dims, cb); @@ -851,7 +851,7 @@ class DataStorage { } private _updateDims( - target: DataStorage, + target: DataStore, dims: DimensionIndex[], cb: MapCb ) { @@ -912,7 +912,7 @@ class DataStorage { lttbDownSample( valueDimension: DimensionIndex, rate: number - ): DataStorage { + ): DataStore { const target = this.clone([valueDimension], true); const targetStorage = target._chunks; const dimStore = targetStorage[valueDimension]; @@ -999,7 +999,7 @@ class DataStorage { rate: number, sampleValue: (frameValues: ArrayLike) => ParsedValueNumeric, sampleIndex: (frameValues: ArrayLike, value: ParsedValueNumeric) => number - ): DataStorage { + ): DataStore { const target = this.clone([dimension], true); const targetStorage = target._chunks; @@ -1168,8 +1168,8 @@ class DataStorage { * * @param clonedDims Determine which dims to clone. Will share the data if not specified. */ - clone(clonedDims?: DimensionIndex[], ignoreIndices?: boolean): DataStorage { - const target = new DataStorage(); + clone(clonedDims?: DimensionIndex[], ignoreIndices?: boolean): DataStore { + const target = new DataStore(); const chunks = this._chunks; const clonedDimsMap = clonedDims && reduce(clonedDims, (obj, dimIdx) => { obj[dimIdx] = true; @@ -1194,7 +1194,7 @@ class DataStorage { return target; } - private _copyCommonProps(target: DataStorage): void { + private _copyCommonProps(target: DataStore): void { target._count = this._count; target._rawCount = this._rawCount; target._provider = this._provider; @@ -1204,7 +1204,7 @@ class DataStorage { target._rawExtent = clone(this._rawExtent); } - private _cloneIndices(): DataStorage['_indices'] { + private _cloneIndices(): DataStore['_indices'] { if (this._indices) { const Ctor = this._indices.constructor as DataArrayLikeConstructor; let indices; @@ -1240,7 +1240,7 @@ class DataStorage { private static internalField = (function () { function getDimValueSimply( - this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number + this: DataStore, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { return parseDataValue(dataItem[dimIndex], this._dimensions[dimIndex]); } @@ -1250,7 +1250,7 @@ class DataStorage { arrayRows: getDimValueSimply, objectRows( - this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number + this: DataStore, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { return parseDataValue(dataItem[property], this._dimensions[dimIndex]); }, @@ -1258,7 +1258,7 @@ class DataStorage { keyedColumns: getDimValueSimply, original( - this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number + this: DataStore, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { // Performance sensitive, do not use modelUtil.getDataItemValue. // If dataItem is an plain object with no value field, the let `value` @@ -1276,7 +1276,7 @@ class DataStorage { }, typedArray: function ( - this: DataStorage, dataItem: any, property: string, dataIndex: number, dimIndex: number + this: DataStore, dataItem: any, property: string, dataIndex: number, dimIndex: number ): ParsedValue { return dataItem[dimIndex]; } @@ -1286,4 +1286,4 @@ class DataStorage { })(); } -export default DataStorage; \ No newline at end of file +export default DataStore; \ No newline at end of file diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 13f147eba7..b661e5eec5 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -44,7 +44,7 @@ import type Tree from './Tree'; import type { VisualMeta } from '../component/visualMap/VisualMapModel'; import {isSourceInstance, Source} from './Source'; import { LineStyleProps } from '../model/mixin/lineStyle'; -import DataStorage, { DimValueGetter } from './DataStorage'; +import DataStore, { DimValueGetter } from './DataStore'; import { isSeriesDataSchema, SeriesDataSchema } from './helper/SeriesDataSchema'; const isObject = zrUtil.isObject; @@ -159,8 +159,8 @@ class SeriesData< * Name of dimensions list of SeriesData. * * @caution Carefully use the index of this array. - * Becuase when DataStorage is an extra high dimension(>30) dataset. We will only pick - * the used dimensions from DataStorage to avoid performance issue. + * Becuase when DataStore is an extra high dimension(>30) dataset. We will only pick + * the used dimensions from DataStore to avoid performance issue. */ readonly dimensions: SeriesDimensionName[]; @@ -196,7 +196,7 @@ class SeriesData< */ tree?: Tree; - private _store: DataStorage; + private _store: DataStore; private _nameList: string[] = []; private _idList: string[] = []; @@ -271,8 +271,8 @@ class SeriesData< let dimensions: SeriesDimensionDefineLoose[]; let assignStorageDimIdx = false; if (isSeriesDataSchema(dimensionsInput)) { - dimensions = dimensionsInput.dimList; - this._dimOmitted = dimensionsInput.isDimOmitted(); + dimensions = dimensionsInput.dimensions; + this._dimOmitted = dimensionsInput.isDimensionOmitted(); this._schema = dimensionsInput; } else { @@ -382,7 +382,7 @@ class SeriesData< return dimName; } - const sourceDimDef = this._schema.getSourceDim(dimIdx); + const sourceDimDef = this._schema.getSourceDimension(dimIdx); if (sourceDimDef) { return sourceDimDef.name; } @@ -402,7 +402,7 @@ class SeriesData< return dimInfo ? dimInfo.storeDimIndex : this._dimOmitted - ? this._schema.getSourceDimIndex(dim as DimensionName) + ? this._schema.getSourceDimensionIndex(dim as DimensionName) : -1; } @@ -432,7 +432,7 @@ class SeriesData< dim != null && !isNaN(dim as any) && !this._getDimInfo(dim) - && (!this._dimOmitted || this._schema.getSourceDimIndex(dim) < 0) + && (!this._dimOmitted || this._schema.getSourceDimensionIndex(dim) < 0) ) ) { return +dim; @@ -519,14 +519,14 @@ class SeriesData< * or provided in nameList from outside. */ initData( - data: Source | OptionSourceData | DataStorage | DataProvider, + data: Source | OptionSourceData | DataStore | DataProvider, nameList?: string[], dimValueGetter?: DimValueGetter ): void { - let store: DataStorage; + let store: DataStore; const dimensions = this.dimensions; const dimensionInfos = map(dimensions, this._getDimInfo, this); - if (data instanceof DataStorage) { + if (data instanceof DataStore) { store = data; } @@ -534,7 +534,7 @@ class SeriesData< const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data)) ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length) : data as DataProvider; - store = new DataStorage(); + store = new DataStore(); store.initData(provider, dimensionInfos, dimValueGetter); } diff --git a/src/data/SeriesDimensionDefine.ts b/src/data/SeriesDimensionDefine.ts index 216cad3b04..bfbdd2b416 100644 --- a/src/data/SeriesDimensionDefine.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -46,7 +46,7 @@ class SeriesDimensionDefine { tooltip?: boolean; /** - * This dimension maps to the the dimension in dataStorage by `storeDimIndex`. + * This dimension maps to the the dimension in dataStore by `storeDimIndex`. * Notice the facts: * 1. When there are too many dimensions in storage, seriesData only save the * used storage dimensions. diff --git a/src/data/Tree.ts b/src/data/Tree.ts index a3b11a0078..65d4c828e9 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -447,12 +447,12 @@ class Tree { tree.root.updateDepthAndHeight(0); - const { dimList } = prepareSeriesDataSchema(listData, { + const { dimensions } = prepareSeriesDataSchema(listData, { coordDimensions: ['value'], dimensionsCount: dimMax }); - const list = new SeriesData(dimList, hostModel); + const list = new SeriesData(dimensions, hostModel); list.initData(listData); beforeLink && beforeLink(list); diff --git a/src/data/helper/SeriesDataSchema.ts b/src/data/helper/SeriesDataSchema.ts index 44c62318dc..66d24d6bd7 100644 --- a/src/data/helper/SeriesDataSchema.ts +++ b/src/data/helper/SeriesDataSchema.ts @@ -22,7 +22,7 @@ import { makeInner } from '../../util/model'; import { DimensionDefinition, DimensionDefinitionLoose, DimensionIndex, DimensionName, DimensionType } from '../../util/types'; -import { DataStorageDimensionDefine } from '../DataStorage'; +import { DataStoreDimensionDefine } from '../DataStore'; import OrdinalMeta from '../OrdinalMeta'; import SeriesDimensionDefine from '../SeriesDimensionDefine'; import { shouldRetrieveDataByName, Source } from '../Source'; @@ -59,7 +59,7 @@ export class SeriesDataSchema { * The item can still be modified outsite. * But MUST NOT add/remove item of this array. */ - readonly dimList: SeriesDimensionDefine[]; + readonly dimensions: SeriesDimensionDefine[]; readonly source: Source; @@ -69,11 +69,11 @@ export class SeriesDataSchema { constructor(opt: { source: Source, - dimensionList: SeriesDimensionDefine[], + dimensions: SeriesDimensionDefine[], fullDimensionCount: number, dimensionOmitted: boolean }) { - this.dimList = opt.dimensionList; + this.dimensions = opt.dimensions; this._dimOmitted = opt.dimensionOmitted; this.source = opt.source; this._fullDimCount = opt.fullDimensionCount; @@ -81,7 +81,7 @@ export class SeriesDataSchema { this._updateDimOmitted(opt.dimensionOmitted); } - isDimOmitted(): boolean { + isDimensionOmitted(): boolean { return this._dimOmitted; } @@ -102,7 +102,7 @@ export class SeriesDataSchema { * That is, get index from `dimensionsDefine`. * If no `dimensionsDefine`, or no name get, return -1. */ - getSourceDimIndex(dimName: DimensionName): DimensionIndex { + getSourceDimensionIndex(dimName: DimensionName): DimensionIndex { return retrieve2(this._dimNameMap.get(dimName), -1); } @@ -111,7 +111,7 @@ export class SeriesDataSchema { * * Notice: may return `null`/`undefined` if user not specify dimension names. */ - getSourceDim(dimIndex: DimensionIndex): DimensionDefinition { + getSourceDimension(dimIndex: DimensionIndex): DimensionDefinition { const dimensionsDefine = this.source.dimensionsDefine; if (dimensionsDefine) { return dimensionsDefine[dimIndex]; @@ -119,7 +119,7 @@ export class SeriesDataSchema { } makeStorageSchema(): { - dimensions: DataStorageDimensionDefine[]; + dimensions: DataStoreDimensionDefine[]; hash: string } { const dimCount = this._fullDimCount; @@ -129,14 +129,14 @@ export class SeriesDataSchema { // If source don't have dimensions or series don't omit unsed dimensions. // Generate from seriesDimList directly let dimHash = ''; - const dims: DataStorageDimensionDefine[] = []; + const dims: DataStoreDimensionDefine[] = []; for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < dimCount; fullDimIdx++) { let property: string; let type: DimensionType; let ordinalMeta: OrdinalMeta; - const seriesDimDef = this.dimList[seriesDimIdx]; + const seriesDimDef = this.dimensions[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { property = willRetrieveDataByName ? seriesDimDef.name : null; @@ -146,7 +146,7 @@ export class SeriesDataSchema { seriesDimIdx++; } else { - const sourceDimDef = this.getSourceDim(fullDimIdx); + const sourceDimDef = this.getSourceDimension(fullDimIdx); if (sourceDimDef) { property = willRetrieveDataByName ? sourceDimDef.name : null; type = sourceDimDef.type; @@ -200,12 +200,12 @@ export class SeriesDataSchema { }; } - makeOutputDimNames(): DimensionName[] { + makeOutputDimensionNames(): DimensionName[] { const result = [] as DimensionName[]; for (let fullDimIdx = 0, seriesDimIdx = 0; fullDimIdx < this._fullDimCount; fullDimIdx++) { let name: DimensionName; - const seriesDimDef = this.dimList[seriesDimIdx]; + const seriesDimDef = this.dimensions[seriesDimIdx]; // The list has been sorted by `storeDimIndex` asc. if (seriesDimDef && seriesDimDef.storeDimIndex === fullDimIdx) { if (!seriesDimDef.isCalculationCoord) { @@ -214,7 +214,7 @@ export class SeriesDataSchema { seriesDimIdx++; } else { - const sourceDimDef = this.getSourceDim(fullDimIdx); + const sourceDimDef = this.getSourceDimension(fullDimIdx); if (sourceDimDef) { name = sourceDimDef.name; } @@ -225,8 +225,8 @@ export class SeriesDataSchema { return result; } - appendCalcDim(dimDef: SeriesDimensionDefine): void { - this.dimList.push(dimDef); + appendCalculationDimension(dimDef: SeriesDimensionDefine): void { + this.dimensions.push(dimDef); dimDef.isCalculationCoord = true; this._fullDimCount++; // If append dimension on a data storage, consider the storage diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index e3b419f147..cc42452112 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -33,7 +33,7 @@ import { } from 'zrender/src/core/util'; import OrdinalMeta from '../OrdinalMeta'; import { createSourceFromSeriesDataOption, isSourceInstance, Source } from '../Source'; -import { CtorInt32Array } from '../DataStorage'; +import { CtorInt32Array } from '../DataStore'; import { normalizeToArray } from '../../util/model'; import { BE_ORDINAL, guessOrdinal } from './sourceHelper'; import { @@ -50,7 +50,7 @@ export interface CoordDimensionDefinition extends DimensionDefinition { } export type CoordDimensionDefinitionLoose = CoordDimensionDefinition['name'] | CoordDimensionDefinition; -export type CreateDimensionsParams = { +export type PrepareSeriesDataSchemaParams = { coordDimensions?: CoordDimensionDefinitionLoose[], /** * Will use `source.dimensionsDefine` if not given. @@ -80,9 +80,9 @@ export type CreateDimensionsParams = { */ export function createDimensions( source: Source | OptionSourceData, - opt?: CreateDimensionsParams + opt?: PrepareSeriesDataSchemaParams ): SeriesDimensionDefine[] { - return prepareSeriesDataSchema(source, opt).dimList; + return prepareSeriesDataSchema(source, opt).dimensions; } /** @@ -100,7 +100,7 @@ export function createDimensions( export default function prepareSeriesDataSchema( // TODO: TYPE completeDimensions type source: Source | OptionSourceData, - opt?: CreateDimensionsParams + opt?: PrepareSeriesDataSchemaParams ): SeriesDataSchema { if (!isSourceInstance(source)) { source = createSourceFromSeriesDataOption(source as OptionSourceData); @@ -114,7 +114,7 @@ export default function prepareSeriesDataSchema( const resultList: SeriesDimensionDefine[] = []; const dimCount = getDimCount(source, sysDims, dimsDef, opt.dimensionsCount); - // Try to ignore unsed dimensions if sharing a high dimension datastorage + // Try to ignore unsed dimensions if sharing a high dimension datastore // 30 is an experience value. const omitUnusedDimensions = opt.canOmitUnusedDimensions && shouldOmitUnusedDimensions(dimCount); @@ -340,7 +340,7 @@ export default function prepareSeriesDataSchema( return new SeriesDataSchema({ source, - dimensionList: resultList, + dimensions: resultList, fullDimensionCount: dimCount, dimensionOmitted: omitUnusedDimensions }); diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index f0824c94c4..e6f4ead8e1 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -23,14 +23,14 @@ import SeriesModel from '../../model/Series'; import SeriesData, { DataCalculationInfo } from '../SeriesData'; import type { SeriesOption, SeriesStackOptionMixin, DimensionName } from '../../util/types'; import { isSeriesDataSchema, SeriesDataSchema } from './SeriesDataSchema'; -import DataStorage from '../DataStorage'; +import DataStore from '../DataStore'; type EnableDataStackDimensionsInput = { schema: SeriesDataSchema; // If given, stack dimension will be ensured on this storage. // Otherwise, stack dimesnion will be appended at the tail, and should not // be used on a shared storage, but should create a brand new stroage later. - storage?: DataStorage; + storage?: DataStore; }; type EnableDataStackDimensionsInputLegacy = (SeriesDimensionDefine | string)[]; @@ -76,14 +76,14 @@ export function enableDataStack( let dimensionDefineList: EnableDataStackDimensionsInputLegacy; let schema: SeriesDataSchema; - let storage: DataStorage; + let storage: DataStore; if (isLegacyDimensionsInput(dimensionsInput)) { dimensionDefineList = dimensionsInput; } else { schema = dimensionsInput.schema; - dimensionDefineList = schema.dimList; + dimensionDefineList = schema.dimensions; storage = dimensionsInput.storage; } @@ -178,8 +178,8 @@ export function enableDataStack( storage.ensureCalculationDimension(stackResultDimension, stackedDimType); } - schema.appendCalcDim(stackedOverDimensionDefine); - schema.appendCalcDim(stackResultDimensionDefine); + schema.appendCalculationDimension(stackedOverDimensionDefine); + schema.appendCalculationDimension(stackResultDimensionDefine); } else { dimensionDefineList.push(stackedOverDimensionDefine); diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index 6d0783f887..a4333a8815 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -23,7 +23,7 @@ import SeriesData from '../SeriesData'; import { DimensionName, VISUAL_DIMENSIONS, DimensionType, DimensionIndex } from '../../util/types'; -import { DataStorageDimensionType } from '../DataStorage'; +import { DataStoreDimensionType } from '../DataStore'; import { SeriesDataSchema } from './SeriesDataSchema'; export type DimensionSummaryEncode = { @@ -82,7 +82,7 @@ class DimensionUserOuput { private _getFullDimensionNames(): DimensionName[] { if (!this._cachedDimNames) { this._cachedDimNames = this._schema - ? this._schema.makeOutputDimNames() + ? this._schema.makeOutputDimensionNames() : []; } return this._cachedDimNames; @@ -195,7 +195,7 @@ function getOrCreateEncodeArr( } // FIXME:TS should be type `AxisType` -export function getDimensionTypeByAxis(axisType: string): DataStorageDimensionType { +export function getDimensionTypeByAxis(axisType: string): DataStoreDimensionType { return axisType === 'category' ? 'ordinal' : axisType === 'time' diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index ad90e7a549..af530e4e14 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -22,7 +22,7 @@ import SeriesModel from '../../model/Series'; import { setAsPrimitive, map, isTypedArray, assert, each, retrieve2 } from 'zrender/src/core/util'; -import { SourceMetaRawOption, Source, createSource, cloneSourceShallow, shouldRetrieveDataByName } from '../Source'; +import { SourceMetaRawOption, Source, createSource, cloneSourceShallow } from '../Source'; import { SeriesEncodableModel, OptionSourceData, SOURCE_FORMAT_TYPED_ARRAY, SOURCE_FORMAT_ORIGINAL, @@ -33,11 +33,11 @@ import { querySeriesUpstreamDatasetModel, queryDatasetUpstreamDatasetModels } from './sourceHelper'; import { applyDataTransform } from './transform'; -import DataStorage, { DataStorageDimensionDefine } from '../DataStorage'; +import DataStore, { DataStoreDimensionDefine } from '../DataStore'; import { DefaultDataProvider } from './dataProvider'; -import { SeriesDataSchema, shouldOmitUnusedDimensions } from './SeriesDataSchema'; +import { SeriesDataSchema } from './SeriesDataSchema'; -type DataStorageMap = Dictionary; +type DataStoreMap = Dictionary; /** * [REQUIREMENT_MEMO]: @@ -138,7 +138,7 @@ export class SourceManager { // Cached source. Do not repeat calculating if not dirty. private _sourceList: Source[] = []; - private _storeList: DataStorageMap[] = []; + private _storeList: DataStoreMap[] = []; // version sign of each upstream source manager. private _upstreamSignList: string[] = []; @@ -373,21 +373,21 @@ export class SourceManager { * @param seriesDimRequest Dimensions that are generated in series. * Should have been sorted by `storeDimIndex` asc. */ - getSharedDataStorage(seriesDimRequest: SeriesDataSchema): DataStorage { + getSharedDataStore(seriesDimRequest: SeriesDataSchema): DataStore { if (__DEV__) { - assert(isSeries(this._sourceHost), 'Can only call getDataStorage on series source manager.'); + assert(isSeries(this._sourceHost), 'Can only call getDataStore on series source manager.'); } const schema = seriesDimRequest.makeStorageSchema(); - return this._innerGetDataStorage( + return this._innerGetDataStore( schema.dimensions, seriesDimRequest.source, schema.hash ); } - private _innerGetDataStorage( - storageDims: DataStorageDimensionDefine[], + private _innerGetDataStore( + storageDims: DataStoreDimensionDefine[], seriesSource: Source, sourceReadKey: string - ): DataStorage | undefined { + ): DataStore | undefined { // TODO Can use other sourceIndex? const sourceIndex = 0; @@ -404,12 +404,12 @@ export class SourceManager { const upSourceMgr = this._getUpstreamSourceManagers()[0]; if (isSeries(this._sourceHost) && upSourceMgr) { - cachedStore = upSourceMgr._innerGetDataStorage( + cachedStore = upSourceMgr._innerGetDataStore( storageDims, seriesSource, sourceReadKey ); } else { - cachedStore = new DataStorage(); + cachedStore = new DataStore(); // Always create storage from source of series. cachedStore.initData( new DefaultDataProvider(seriesSource, storageDims.length), diff --git a/src/util/types.ts b/src/util/types.ts index b9ef23efd9..464b3a0b02 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -47,7 +47,7 @@ import { ImageStyleProps } from 'zrender/src/graphic/Image'; import ZRText, { TextStyleProps } from 'zrender/src/graphic/Text'; import { Source } from '../data/Source'; import Model from '../model/Model'; -import { DataStorageDimensionType } from '../data/DataStorage'; +import { DataStoreDimensionType } from '../data/DataStore'; import { DimensionUserOuputEncode } from '../data/helper/dimensionHelper'; @@ -416,7 +416,7 @@ export type DimensionIndex = number; export type DimensionIndexLoose = DimensionIndex | string; export type DimensionName = string; export type DimensionLoose = DimensionName | DimensionIndexLoose; -export type DimensionType = DataStorageDimensionType; +export type DimensionType = DataStoreDimensionType; export const VISUAL_DIMENSIONS = createHashMap([ 'tooltip', 'label', 'itemName', 'itemId', 'itemGroupId', 'seriesName' @@ -435,7 +435,7 @@ export interface DataVisualDimensions { } export type DimensionDefinition = { - type?: DataStorageDimensionType, + type?: DataStoreDimensionType, name?: DimensionName, displayName?: string }; From 136a97c63f4293fad10d60e81a3f721a4950df51 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sat, 21 Aug 2021 22:48:45 +0800 Subject: [PATCH 58/64] fix: fix some issues brought by refactor. --- src/data/DataStore.ts | 6 ++-- src/data/SeriesData.ts | 4 +++ src/data/helper/dataProvider.ts | 50 ++++++++++++++++++--------------- src/util/types.ts | 1 + src/visual/aria.ts | 2 +- 5 files changed, 37 insertions(+), 26 deletions(-) diff --git a/src/data/DataStore.ts b/src/data/DataStore.ts index 44c5051f57..5571c96b68 100644 --- a/src/data/DataStore.ts +++ b/src/data/DataStore.ts @@ -712,13 +712,13 @@ class DataStore { const len = newStore._count; if (!len) { - return; + return this; } const dims = keys(range); const dimSize = dims.length; if (!dimSize) { - return; + return this; } const originalCount = newStore.count(); @@ -1159,7 +1159,7 @@ class DataStore { return val; } else { - return this._provider.getItem(this.getRawIndex(idx)); + return this._provider.getItem(rawIdx); } } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index b661e5eec5..e3aadf9d38 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -398,6 +398,10 @@ class SeriesData< return dimIdx; } + if (dim == null) { + return -1; + } + const dimInfo = this._getDimInfo(dim as DimensionName); return dimInfo ? dimInfo.storeDimIndex diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 6b66c5bdd4..7a36ccfa15 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -34,7 +34,7 @@ import { SERIES_LAYOUT_BY_COLUMN, SERIES_LAYOUT_BY_ROW, DimensionName, DimensionIndex, OptionSourceData, - OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue, DimensionLoose + OptionDataItem, OptionDataValue, SourceFormat, SeriesLayoutBy, ParsedValue, DimensionLoose, NullUndefined } from '../../util/types'; import SeriesData from '../SeriesData'; @@ -402,42 +402,37 @@ export function getRawSourceDataCounter( } - -// TODO -// merge it to dataProvider? type RawSourceValueGetter = ( dataItem: OptionDataItem, dimIndex: DimensionIndex, - dimName: DimensionName - // If dimIndex is null/undefined, return OptionDataItem. - // Otherwise, return OptionDataValue. -) => OptionDataValue | OptionDataItem; + property: DimensionName +) => OptionDataValue; const getRawValueSimply = function ( - dataItem: ArrayLike, dimIndex: number, dimName: string -): OptionDataValue | ArrayLike { - return dimIndex != null ? dataItem[dimIndex] : dataItem; + dataItem: ArrayLike, dimIndex: number, property: string +): OptionDataValue { + return dataItem[dimIndex]; }; -const rawSourceValueGetterMap: {[sourceFormat: string]: RawSourceValueGetter} = { +const rawSourceValueGetterMap: Partial> = { [SOURCE_FORMAT_ARRAY_ROWS]: getRawValueSimply, [SOURCE_FORMAT_OBJECT_ROWS]: function ( - dataItem: Dictionary, dimIndex: number, dimName: string - ): OptionDataValue | Dictionary { - return dimIndex != null ? dataItem[dimName] : dataItem; + dataItem: Dictionary, dimIndex: number, property: string + ): OptionDataValue { + return dataItem[property]; }, [SOURCE_FORMAT_KEYED_COLUMNS]: getRawValueSimply, [SOURCE_FORMAT_ORIGINAL]: function ( - dataItem: OptionDataItem, dimIndex: number, dimName: string - ): OptionDataValue | OptionDataItem { + dataItem: OptionDataItem, dimIndex: number, property: string + ): OptionDataValue { // FIXME: In some case (markpoint in geo (geo-map.html)), // dataItem is {coord: [...]} const value = getDataItemValue(dataItem); - return (dimIndex == null || !(value instanceof Array)) + return !(value instanceof Array) ? value : value[dimIndex]; }, @@ -469,9 +464,10 @@ function getMethodMapKey(sourceFormat: SourceFormat, seriesLayoutBy: SeriesLayou // value may be 0.91000000001, which have brings trouble to display. // TODO: consider how to treat null/undefined/NaN when display? export function retrieveRawValue( - data: SeriesData, dataIndex: number, dim?: DimensionLoose + data: SeriesData, dataIndex: number, // If dimIndex is null/undefined, return OptionDataItem. // Otherwise, return OptionDataValue. + dim?: DimensionLoose | NullUndefined ): OptionDataValue | OptionDataItem { if (!data) { return; @@ -486,10 +482,20 @@ export function retrieveRawValue( const storage = data.getStorage(); const sourceFormat = storage.getSource().sourceFormat; - const dimIndex = data.getDimensionIndex(dim); - const property = storage.getDimensionProperty(dimIndex); - return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property); + if (dim != null) { + const dimIndex = data.getDimensionIndex(dim); + const property = storage.getDimensionProperty(dimIndex); + + return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property); + } + else { + let result = dataItem; + if (sourceFormat === SOURCE_FORMAT_ORIGINAL) { + result = getDataItemValue(dataItem); + } + return result; + } } diff --git a/src/util/types.ts b/src/util/types.ts index 464b3a0b02..ab1a6b1b2b 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -59,6 +59,7 @@ import { DimensionUserOuputEncode } from '../data/helper/dimensionHelper'; export {Dictionary}; export type RendererType = 'canvas' | 'svg'; +export type NullUndefined = null | undefined; export type LayoutOrient = 'vertical' | 'horizontal'; export type HorizontalAlign = 'left' | 'center' | 'right'; diff --git a/src/visual/aria.ts b/src/visual/aria.ts index baa1e8fdd1..9d2afa691f 100644 --- a/src/visual/aria.ts +++ b/src/visual/aria.ts @@ -24,7 +24,7 @@ import GlobalModel from '../model/Global'; import Model from '../model/Model'; import SeriesModel from '../model/Series'; import {makeInner} from '../util/model'; -import {Dictionary, DecalObject, InnerDecalObject, AriaOption, SeriesOption} from '../util/types'; +import {Dictionary, DecalObject, InnerDecalObject, AriaOption} from '../util/types'; import {LocaleOption} from '../core/locale'; import { getDecalFromPalette } from '../model/mixin/palette'; import type {TitleOption} from '../component/title/install'; From afafc7b6b6f9be4b8b2c2d8eb50181e886b4ee51 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 02:01:02 +0800 Subject: [PATCH 59/64] fix: other rename of data storage -> data store --- src/chart/candlestick/candlestickLayout.ts | 32 +++++++++++----------- src/chart/custom/CustomView.ts | 4 +-- src/chart/helper/createSeriesData.ts | 8 +++--- src/chart/radar/RadarView.ts | 2 +- src/chart/sankey/SankeySeries.ts | 3 -- src/chart/tree/TreeSeries.ts | 2 -- src/component/dataZoom/AxisProxy.ts | 4 +-- src/component/visualMap/ContinuousView.ts | 2 +- src/data/DataStore.ts | 25 ++++++++--------- src/data/Graph.ts | 2 +- src/data/SeriesData.ts | 28 +++++++++---------- src/data/SeriesDimensionDefine.ts | 6 ++-- src/data/Tree.ts | 2 +- src/data/helper/SeriesDataSchema.ts | 10 +++---- src/data/helper/createDimensions.ts | 2 +- src/data/helper/dataProvider.ts | 8 +++--- src/data/helper/dataStackHelper.ts | 18 ++++++------ src/data/helper/dimensionHelper.ts | 4 +-- src/data/helper/sourceManager.ts | 14 +++++----- src/layout/barGrid.ts | 20 +++++++------- src/layout/points.ts | 2 +- src/visual/visualSolution.ts | 4 +-- 22 files changed, 98 insertions(+), 104 deletions(-) diff --git a/src/chart/candlestick/candlestickLayout.ts b/src/chart/candlestick/candlestickLayout.ts index fa75cb681c..e81f80b7a1 100644 --- a/src/chart/candlestick/candlestickLayout.ts +++ b/src/chart/candlestick/candlestickLayout.ts @@ -81,14 +81,14 @@ const candlestickLayout: StageHandler = { function normalProgress(params: StageHandlerProgressParams, data: SeriesData) { let dataIndex; - const storage = data.getStorage(); + const store = data.getStore(); while ((dataIndex = params.next()) != null) { - const axisDimVal = storage.get(cDimI, dataIndex) as number; - const openVal = storage.get(openDimI, dataIndex) as number; - const closeVal = storage.get(closeDimI, dataIndex) as number; - const lowestVal = storage.get(lowestDimI, dataIndex) as number; - const highestVal = storage.get(highestDimI, dataIndex) as number; + const axisDimVal = store.get(cDimI, dataIndex) as number; + const openVal = store.get(openDimI, dataIndex) as number; + const closeVal = store.get(closeDimI, dataIndex) as number; + const lowestVal = store.get(lowestDimI, dataIndex) as number; + const highestVal = store.get(highestDimI, dataIndex) as number; const ocLow = Math.min(openVal, closeVal); const ocHigh = Math.max(openVal, closeVal); @@ -110,7 +110,7 @@ const candlestickLayout: StageHandler = { ); data.setItemLayout(dataIndex, { - sign: getSign(storage, dataIndex, openVal, closeVal, closeDimI), + sign: getSign(store, dataIndex, openVal, closeVal, closeDimI), initBaseline: openVal > closeVal ? ocHighPoint[vDimIdx] : ocLowPoint[vDimIdx], // open point. ends: ends, @@ -172,14 +172,14 @@ const candlestickLayout: StageHandler = { const tmpIn: number[] = []; const tmpOut: number[] = []; let dataIndex; - const storage = data.getStorage(); + const store = data.getStore(); while ((dataIndex = params.next()) != null) { - const axisDimVal = storage.get(cDimI, dataIndex) as number; - const openVal = storage.get(openDimI, dataIndex) as number; - const closeVal = storage.get(closeDimI, dataIndex) as number; - const lowestVal = storage.get(lowestDimI, dataIndex) as number; - const highestVal = storage.get(highestDimI, dataIndex) as number; + const axisDimVal = store.get(cDimI, dataIndex) as number; + const openVal = store.get(openDimI, dataIndex) as number; + const closeVal = store.get(closeDimI, dataIndex) as number; + const lowestVal = store.get(lowestDimI, dataIndex) as number; + const highestVal = store.get(highestDimI, dataIndex) as number; if (isNaN(axisDimVal) || isNaN(lowestVal) || isNaN(highestVal)) { points[offset++] = NaN; @@ -187,7 +187,7 @@ const candlestickLayout: StageHandler = { continue; } - points[offset++] = getSign(storage, dataIndex, openVal, closeVal, closeDimI); + points[offset++] = getSign(store, dataIndex, openVal, closeVal, closeDimI); tmpIn[cDimIdx] = axisDimVal; @@ -206,7 +206,7 @@ const candlestickLayout: StageHandler = { }; function getSign( - storage: DataStore, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex + store: DataStore, dataIndex: number, openVal: number, closeVal: number, closeDimI: DimensionIndex ): -1 | 1 { let sign: -1 | 1; if (openVal > closeVal) { @@ -218,7 +218,7 @@ function getSign( else { sign = dataIndex > 0 // If close === open, compare with close of last record - ? (storage.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1) + ? (store.get(closeDimI, dataIndex - 1) <= closeVal ? 1 : -1) // No record of previous, set to be positive : 1; } diff --git a/src/chart/custom/CustomView.ts b/src/chart/custom/CustomView.ts index 04b184a7bb..1ba6d86b05 100644 --- a/src/chart/custom/CustomView.ts +++ b/src/chart/custom/CustomView.ts @@ -943,7 +943,7 @@ function makeRenderItem( */ function value(dim?: DimensionLoose, dataIndexInside?: number): ParsedValue { dataIndexInside == null && (dataIndexInside = currDataIndexInside); - return data.getStorage().get(data.getDimensionIndex(dim || 0), dataIndexInside); + return data.getStore().get(data.getDimensionIndex(dim || 0), dataIndexInside); } /** @@ -957,7 +957,7 @@ function makeRenderItem( const dimInfo = data.getDimensionInfo(dim); if (!dimInfo) { const dimIndex = data.getDimensionIndex(dim); - return dimIndex >= 0 ? data.getStorage().get(dimIndex, dataIndexInside) : undefined; + return dimIndex >= 0 ? data.getStore().get(dimIndex, dataIndexInside) : undefined; } const val = data.get(dimInfo.name, dataIndexInside); const ordinalMeta = dimInfo && dimInfo.ordinalMeta; diff --git a/src/chart/helper/createSeriesData.ts b/src/chart/helper/createSeriesData.ts index 25277d4e09..704eed4c8a 100644 --- a/src/chart/helper/createSeriesData.ts +++ b/src/chart/helper/createSeriesData.ts @@ -151,9 +151,9 @@ function createSeriesData( schema.dimensions, opt.createInvertedIndices, coordSysInfo ); - const storage = !isOriginalSource ? sourceManager.getSharedDataStore(schema) : null; + const store = !isOriginalSource ? sourceManager.getSharedDataStore(schema) : null; - const stackCalculationInfo = enableDataStack(seriesModel, { schema, storage }); + const stackCalculationInfo = enableDataStack(seriesModel, { schema, store }); const data = new SeriesData(schema, seriesModel); data.setCalculationInfo(stackCalculationInfo); @@ -171,8 +171,8 @@ function createSeriesData( data.hasItemOption = false; data.initData( - // Try to reuse the data storage in sourceManager if using dataset. - isOriginalSource ? source : storage, + // Try to reuse the data store in sourceManager if using dataset. + isOriginalSource ? source : store, null, dimValueGetter ); diff --git a/src/chart/radar/RadarView.ts b/src/chart/radar/RadarView.ts index bcde8293fa..f38d1df866 100644 --- a/src/chart/radar/RadarView.ts +++ b/src/chart/radar/RadarView.ts @@ -243,7 +243,7 @@ class RadarView extends ChartView { const pathEmphasisState = symbolPath.ensureState('emphasis'); pathEmphasisState.style = zrUtil.clone(itemHoverStyle); - let defaultText = data.getStorage().get(data.getDimensionIndex(symbolPath.__dimIdx), idx); + let defaultText = data.getStore().get(data.getDimensionIndex(symbolPath.__dimIdx), idx); (defaultText == null || isNaN(defaultText as number)) && (defaultText = ''); setLabelStyle( diff --git a/src/chart/sankey/SankeySeries.ts b/src/chart/sankey/SankeySeries.ts index 3261ad1645..6131f56e1a 100644 --- a/src/chart/sankey/SankeySeries.ts +++ b/src/chart/sankey/SankeySeries.ts @@ -148,9 +148,6 @@ class SankeySeriesModel extends SeriesModel { /** * Init a graph data structure from data in option series - * - * @param {Object} option the object used to config echarts view - * @return {module:echarts/data/SeriesData} storage initial data */ getInitialData(option: SankeySeriesOption, ecModel: GlobalModel) { const links = option.edges || option.links; diff --git a/src/chart/tree/TreeSeries.ts b/src/chart/tree/TreeSeries.ts index 4f1e1b1669..118ffb2fad 100644 --- a/src/chart/tree/TreeSeries.ts +++ b/src/chart/tree/TreeSeries.ts @@ -141,8 +141,6 @@ class TreeSeriesModel extends SeriesModel { /** * Init a tree data structure from data in option series - * @param option the object used to config echarts view - * @return storage initial data */ getInitialData(option: TreeSeriesOption): SeriesData { diff --git a/src/component/dataZoom/AxisProxy.ts b/src/component/dataZoom/AxisProxy.ts index 44400e4154..e7be785fca 100644 --- a/src/component/dataZoom/AxisProxy.ts +++ b/src/component/dataZoom/AxisProxy.ts @@ -301,14 +301,14 @@ class AxisProxy { } if (filterMode === 'weakFilter') { - const storage = seriesData.getStorage(); + const store = seriesData.getStore(); const dataDimIndices = zrUtil.map(dataDims, dim => seriesData.getDimensionIndex(dim), seriesData); seriesData.filterSelf(function (dataIndex) { let leftOut; let rightOut; let hasValue; for (let i = 0; i < dataDims.length; i++) { - const value = storage.get(dataDimIndices[i], dataIndex) as number; + const value = store.get(dataDimIndices[i], dataIndex) as number; const thisHasValue = !isNaN(value); const thisLeftOut = value < valueWindow[0]; const thisRightOut = value > valueWindow[1]; diff --git a/src/component/visualMap/ContinuousView.ts b/src/component/visualMap/ContinuousView.ts index eed19f0d06..4b9e959487 100644 --- a/src/component/visualMap/ContinuousView.ts +++ b/src/component/visualMap/ContinuousView.ts @@ -832,7 +832,7 @@ class ContinuousView extends VisualMapView { } const data = dataModel.getData(ecData.dataType); - const value = data.getStorage().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex) as number; + const value = data.getStore().get(visualMapModel.getDataDimensionIndex(data), ecData.dataIndex) as number; if (!isNaN(value)) { this._showIndicator(value, value); diff --git a/src/data/DataStore.ts b/src/data/DataStore.ts index 5571c96b68..62103fa4f3 100644 --- a/src/data/DataStore.ts +++ b/src/data/DataStore.ts @@ -40,7 +40,7 @@ export const CtorUint16Array = typeof Uint16Array === UNDEFINED ? Array : Uint16 export const CtorInt32Array = typeof Int32Array === UNDEFINED ? Array : Int32Array; export const CtorFloat64Array = typeof Float64Array === UNDEFINED ? Array : Float64Array; /** - * Multi dimensional data storage + * Multi dimensional data store */ const dataCtors = { 'float': CtorFloat64Array, @@ -99,7 +99,7 @@ export interface DataStoreDimensionDefine { /** * When using category axis. * Category strings will be collected and stored in ordinalMeta.categories. - * And storage will store the index of categories. + * And store will store the index of categories. */ ordinalMeta?: OrdinalMeta, @@ -126,8 +126,8 @@ function cloneChunk(originalChunk: DataValueChunk): DataValueChunk { : new (Ctor as DataTypedArrayConstructor)(originalChunk as DataTypedArray); } -function prepareStorage( - storage: DataValueChunk[], +function prepareStore( + store: DataValueChunk[], dimIdx: number, dimType: DataStoreDimensionType, end: number, @@ -136,7 +136,7 @@ function prepareStorage( const DataCtor = dataCtors[dimType || 'float']; if (append) { - const oldStore = storage[dimIdx]; + const oldStore = store[dimIdx]; const oldLen = oldStore && oldStore.length; if (!(oldLen === end)) { const newStore = new DataCtor(end); @@ -145,11 +145,11 @@ function prepareStorage( for (let j = 0; j < oldLen; j++) { newStore[j] = oldStore[j]; } - storage[dimIdx] = newStore; + store[dimIdx] = newStore; } } else { - storage[dimIdx] = new DataCtor(end); + store[dimIdx] = new DataCtor(end); } }; @@ -223,7 +223,7 @@ class DataStore { } /** - * Caution: even when a `source` instance owned by a series, the created data storage + * Caution: even when a `source` instance owned by a series, the created data store * may still be shared by different sereis (the source hash does not use all `source` * props, see `sourceManager`). In this case, the `source` props that are not used in * hash (like `source.dimensionDefine`) probably only belongs to a certain series and @@ -325,7 +325,7 @@ class DataStore { } appendValues(values: any[][], minFillLen?: number): { start: number; end: number } { - const storage = this._chunks; + const chunks = this._chunks; const dimensions = this._dimensions; const dimLen = dimensions.length; const rawExtent = this._rawExtent; @@ -335,7 +335,7 @@ class DataStore { for (let i = 0; i < dimLen; i++) { const dim = dimensions[i]; - prepareStorage(storage, i, dim.type, end, true); + prepareStore(chunks, i, dim.type, end, true); } const emptyDataItem: number[] = []; @@ -347,7 +347,7 @@ class DataStore { const val = defaultDimValueGetters.arrayRows.call( this, values[sourceIdx] || emptyDataItem, dim.property, sourceIdx, dimIdx ) as ParsedValueNumeric; - (storage[dimIdx] as any)[idx] = val; + (chunks[dimIdx] as any)[idx] = val; const dimRawExtent = rawExtent[dimIdx]; val < dimRawExtent[0] && (dimRawExtent[0] = val); @@ -377,10 +377,9 @@ class DataStore { if (!rawExtent[i]) { rawExtent[i] = getInitialExtent(); } - prepareStorage(chunks, i, dim.type, end, append); + prepareStore(chunks, i, dim.type, end, append); } - if (provider.fillStorage) { provider.fillStorage(start, end, chunks, rawExtent); } diff --git a/src/data/Graph.ts b/src/data/Graph.ts index 4803ee1d78..4605ff1593 100644 --- a/src/data/Graph.ts +++ b/src/data/Graph.ts @@ -458,7 +458,7 @@ function createGraphDataProxyMixin( */ getValue(this: Host, dimension?: DimensionLoose): ParsedValue { const data = this[hostName][dataName]; - return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); + return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); }, // TODO: TYPE stricter type. setVisual(this: Host, key: string | Dictionary, value?: any) { diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index e3aadf9d38..94a2551cb4 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -269,14 +269,14 @@ class SeriesData< hostModel: HostModel ) { let dimensions: SeriesDimensionDefineLoose[]; - let assignStorageDimIdx = false; + let assignStoreDimIdx = false; if (isSeriesDataSchema(dimensionsInput)) { dimensions = dimensionsInput.dimensions; this._dimOmitted = dimensionsInput.isDimensionOmitted(); this._schema = dimensionsInput; } else { - assignStorageDimIdx = true; + assignStoreDimIdx = true; dimensions = dimensionsInput as SeriesDimensionDefineLoose[]; } @@ -324,9 +324,9 @@ class SeriesData< } if (__DEV__) { - zrUtil.assert(assignStorageDimIdx || dimensionInfo.storeDimIndex >= 0); + zrUtil.assert(assignStoreDimIdx || dimensionInfo.storeDimIndex >= 0); } - if (assignStorageDimIdx) { + if (assignStoreDimIdx) { dimensionInfo.storeDimIndex = i; } } @@ -359,7 +359,7 @@ class SeriesData< * * @notice Becuause of this reason, should better use `getDimensionIndex` instead, for examples: * ```js - * const val = data.getStorage().get(data.getDimensionIndex(dim), dataIdx); + * const val = data.getStore().get(data.getDimensionIndex(dim), dataIdx); * ``` * * @return Concrete dim name. @@ -389,7 +389,7 @@ class SeriesData< } /** - * Get dimension index in the storage. Return -1 if not found. + * Get dimension index in data store. Return -1 if not found. * Can be used to index value from getRawValue. */ getDimensionIndex(dim: DimensionLoose): DimensionIndex { @@ -509,13 +509,13 @@ class SeriesData< return (dims || []).slice(); } - getStorage() { + getStore() { return this._store; } /** * Initialize from data - * @param data source or data or data storage. + * @param data source or data or data store. * @param nameList The name of a datum is used on data diff and * default label/tooltip. * A name can be specified in encode.itemName, @@ -567,7 +567,7 @@ class SeriesData< /** * Caution: Can be only called on raw data (before `this._indices` created). * This method does not modify `rawData` (`dataProvider`), but only - * add values to storage. + * add values to store. * * The final count will be increased by `Math.max(values.length, names.length)`. * @@ -763,7 +763,7 @@ class SeriesData< /** * Get value. Return NaN if idx is out of range. * - * @notice Should better to use `data.getStorage().get(dimIndex, dataIdx)` instead. + * @notice Should better to use `data.getStore().get(dimIndex, dataIdx)` instead. */ get(dim: SeriesDimensionName, idx: number): ParsedValue { const store = this._store; @@ -774,7 +774,7 @@ class SeriesData< } /** - * @notice Should better to use `data.getStorage().getByRawIndex(dimIndex, dataIdx)` instead. + * @notice Should better to use `data.getStore().getByRawIndex(dimIndex, dataIdx)` instead. */ getByRawIndex(dim: SeriesDimensionName, rawIdx: number): ParsedValue { const store = this._store; @@ -1066,7 +1066,7 @@ class SeriesData< ); // If do shallow clone here, if there are too many stacked series, - // it still cost lots of memory, becuase `storage.dimensions` are not shared. + // it still cost lots of memory, becuase `_store.dimensions` are not shared. // We should consider there probably be shallow clone happen in each sereis // in consequent filter/map. this._store.modify( @@ -1136,8 +1136,8 @@ class SeriesData< const thisList = this; return new DataDiffer( - otherList ? otherList.getStorage().getIndices() : [], - this.getStorage().getIndices(), + otherList ? otherList.getStore().getIndices() : [], + this.getStore().getIndices(), function (idx: number) { return getId(otherList, idx); }, diff --git a/src/data/SeriesDimensionDefine.ts b/src/data/SeriesDimensionDefine.ts index bfbdd2b416..3d4b628f21 100644 --- a/src/data/SeriesDimensionDefine.ts +++ b/src/data/SeriesDimensionDefine.ts @@ -48,9 +48,9 @@ class SeriesDimensionDefine { /** * This dimension maps to the the dimension in dataStore by `storeDimIndex`. * Notice the facts: - * 1. When there are too many dimensions in storage, seriesData only save the - * used storage dimensions. - * 2. We use dimensionIndex but not name to reference storage dimension + * 1. When there are too many dimensions in data store, seriesData only save the + * used store dimensions. + * 2. We use dimensionIndex but not name to reference store dimension * becuause the dataset dimension definition might has no name specified by users, * or names in sereis dimension definition might be different from dataset. */ diff --git a/src/data/Tree.ts b/src/data/Tree.ts index 65d4c828e9..0389f6a9bf 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -210,7 +210,7 @@ export class TreeNode { getValue(dimension?: DimensionLoose): ParsedValue { const data = this.hostTree.data; - return data.getStorage().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); + return data.getStore().get(data.getDimensionIndex(dimension || 'value'), this.dataIndex); } setLayout(layout: any, merge?: boolean) { diff --git a/src/data/helper/SeriesDataSchema.ts b/src/data/helper/SeriesDataSchema.ts index 66d24d6bd7..67e9f1fc9a 100644 --- a/src/data/helper/SeriesDataSchema.ts +++ b/src/data/helper/SeriesDataSchema.ts @@ -118,7 +118,7 @@ export class SeriesDataSchema { } } - makeStorageSchema(): { + makeStoreSchema(): { dimensions: DataStoreDimensionDefine[]; hash: string } { @@ -163,8 +163,8 @@ export class SeriesDataSchema { // use in hash. if (willRetrieveDataByName && property != null - // For data stack, we have make sure each series has its own dim on this storage. - // So we do not add property to hash to make sure they can share this storage. + // For data stack, we have make sure each series has its own dim on this store. + // So we do not add property to hash to make sure they can share this store. && (!seriesDimDef || !seriesDimDef.isCalculationCoord) ) { dimHash += (makeHashStrict @@ -229,9 +229,9 @@ export class SeriesDataSchema { this.dimensions.push(dimDef); dimDef.isCalculationCoord = true; this._fullDimCount++; - // If append dimension on a data storage, consider the storage + // If append dimension on a data store, consider the store // might be shared by different series, series dimensions not - // really map to storage dimensions. + // really map to store dimensions. this._updateDimOmitted(true); } } diff --git a/src/data/helper/createDimensions.ts b/src/data/helper/createDimensions.ts index cc42452112..cd44440aa7 100644 --- a/src/data/helper/createDimensions.ts +++ b/src/data/helper/createDimensions.ts @@ -370,7 +370,7 @@ function removeDuplication(result: SeriesDimensionDefine[]) { // may be visited. // (2) sometimes user need to calcualte bubble size or use visualMap // on other dimensions besides coordSys needed. -// So, dims that is not used by system, should be shared in storage? +// So, dims that is not used by system, should be shared in data store? function getDimCount( source: Source, sysDims: CoordDimensionDefinitionLoose[], diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index 7a36ccfa15..d9865f6199 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -480,12 +480,12 @@ export function retrieveRawValue( return; } - const storage = data.getStorage(); - const sourceFormat = storage.getSource().sourceFormat; + const store = data.getStore(); + const sourceFormat = store.getSource().sourceFormat; if (dim != null) { const dimIndex = data.getDimensionIndex(dim); - const property = storage.getDimensionProperty(dimIndex); + const property = store.getDimensionProperty(dimIndex); return getRawSourceValueGetter(sourceFormat)(dataItem, dimIndex, property); } @@ -516,7 +516,7 @@ export function retrieveRawAttr(data: SeriesData, dataIndex: number, attr: strin return; } - const sourceFormat = data.getStorage().getSource().sourceFormat; + const sourceFormat = data.getStore().getSource().sourceFormat; if (sourceFormat !== SOURCE_FORMAT_ORIGINAL && sourceFormat !== SOURCE_FORMAT_OBJECT_ROWS diff --git a/src/data/helper/dataStackHelper.ts b/src/data/helper/dataStackHelper.ts index e6f4ead8e1..deb3e3e918 100644 --- a/src/data/helper/dataStackHelper.ts +++ b/src/data/helper/dataStackHelper.ts @@ -27,10 +27,10 @@ import DataStore from '../DataStore'; type EnableDataStackDimensionsInput = { schema: SeriesDataSchema; - // If given, stack dimension will be ensured on this storage. + // If given, stack dimension will be ensured on this store. // Otherwise, stack dimesnion will be appended at the tail, and should not - // be used on a shared storage, but should create a brand new stroage later. - storage?: DataStore; + // be used on a shared store, but should create a brand new stroage later. + store?: DataStore; }; type EnableDataStackDimensionsInputLegacy = (SeriesDimensionDefine | string)[]; @@ -76,7 +76,7 @@ export function enableDataStack( let dimensionDefineList: EnableDataStackDimensionsInputLegacy; let schema: SeriesDataSchema; - let storage: DataStore; + let store: DataStore; if (isLegacyDimensionsInput(dimensionsInput)) { dimensionDefineList = dimensionsInput; @@ -84,7 +84,7 @@ export function enableDataStack( else { schema = dimensionsInput.schema; dimensionDefineList = schema.dimensions; - storage = dimensionsInput.storage; + store = dimensionsInput.store; } // Compatibal: when `stack` is set as '', do not stack. @@ -129,7 +129,7 @@ export function enableDataStack( if (stackedDimInfo) { // Use a weird name that not duplicated with other names. // Also need to use seriesModel.id as postfix because different - // series may share same data storage. The stack dimension needs to be distinguished. + // series may share same data store. The stack dimension needs to be distinguished. stackResultDimension = '__\0ecstackresult_' + seriesModel.id; stackedOverDimension = '__\0ecstackedover_' + seriesModel.id; @@ -171,11 +171,11 @@ export function enableDataStack( }; if (schema) { - if (storage) { + if (store) { stackedOverDimensionDefine.storeDimIndex = - storage.ensureCalculationDimension(stackedOverDimension, stackedDimType); + store.ensureCalculationDimension(stackedOverDimension, stackedDimType); stackResultDimensionDefine.storeDimIndex = - storage.ensureCalculationDimension(stackResultDimension, stackedDimType); + store.ensureCalculationDimension(stackResultDimension, stackedDimType); } schema.appendCalculationDimension(stackedOverDimensionDefine); diff --git a/src/data/helper/dimensionHelper.ts b/src/data/helper/dimensionHelper.ts index a4333a8815..e4d9899ca0 100644 --- a/src/data/helper/dimensionHelper.ts +++ b/src/data/helper/dimensionHelper.ts @@ -73,8 +73,8 @@ class DimensionUserOuput { } /** - * Get all storage dimension names. - * Theoretically a series storage is defined both by series and used dataset (if any). + * Get all data store dimension names. + * Theoretically a series data store is defined both by series and used dataset (if any). * If some dimensions are omitted for performance reason in `this.dimensions`, * the dimension name may not be auto-generated if user does not specify a dimension name. * In this case, the dimension name is `null`/`undefined`. diff --git a/src/data/helper/sourceManager.ts b/src/data/helper/sourceManager.ts index af530e4e14..019b317f4e 100644 --- a/src/data/helper/sourceManager.ts +++ b/src/data/helper/sourceManager.ts @@ -367,7 +367,7 @@ export class SourceManager { /** * - * Get a data storage which can be shared across series. + * Get a data store which can be shared across series. * Only available for series. * * @param seriesDimRequest Dimensions that are generated in series. @@ -377,14 +377,14 @@ export class SourceManager { if (__DEV__) { assert(isSeries(this._sourceHost), 'Can only call getDataStore on series source manager.'); } - const schema = seriesDimRequest.makeStorageSchema(); + const schema = seriesDimRequest.makeStoreSchema(); return this._innerGetDataStore( schema.dimensions, seriesDimRequest.source, schema.hash ); } private _innerGetDataStore( - storageDims: DataStoreDimensionDefine[], + storeDims: DataStoreDimensionDefine[], seriesSource: Source, sourceReadKey: string ): DataStore | undefined { @@ -405,15 +405,15 @@ export class SourceManager { if (isSeries(this._sourceHost) && upSourceMgr) { cachedStore = upSourceMgr._innerGetDataStore( - storageDims, seriesSource, sourceReadKey + storeDims, seriesSource, sourceReadKey ); } else { cachedStore = new DataStore(); - // Always create storage from source of series. + // Always create store from source of series. cachedStore.initData( - new DefaultDataProvider(seriesSource, storageDims.length), - storageDims + new DefaultDataProvider(seriesSource, storeDims.length), + storeDims ); } cachedStoreMap[sourceReadKey] = cachedStore; diff --git a/src/layout/barGrid.ts b/src/layout/barGrid.ts index 4a13070a54..4a7c90887f 100644 --- a/src/layout/barGrid.ts +++ b/src/layout/barGrid.ts @@ -159,9 +159,9 @@ function getValueAxesMinGaps(barSeries: BarSeriesModel[]) { const data = seriesModel.getData(); const key = baseAxis.dim + '_' + baseAxis.index; const dimIdx = data.getDimensionIndex(data.mapDimension(baseAxis.dim)); - const storage = data.getStorage(); - for (let i = 0, cnt = storage.count(); i < cnt; ++i) { - const value = storage.get(dimIdx, i) as number; + const store = data.getStore(); + for (let i = 0, cnt = store.count(); i < cnt; ++i) { + const value = store.get(dimIdx, i) as number; if (!axisValues[key]) { // No previous data for the axis axisValues[key] = [value]; @@ -478,12 +478,12 @@ export function layout(seriesType: string, ecModel: GlobalModel) { const valueAxisStart = getValueAxisStart(baseAxis, valueAxis, stacked); - const storage = data.getStorage(); + const store = data.getStore(); const valueDimIdx = data.getDimensionIndex(valueDim); const baseDimIdx = data.getDimensionIndex(baseDim); - for (let idx = 0, len = storage.count(); idx < len; idx++) { - const value = storage.get(valueDimIdx, idx); - const baseValue = storage.get(baseDimIdx, idx) as number; + for (let idx = 0, len = store.count(); idx < len; idx++) { + const value = store.get(valueDimIdx, idx); + const baseValue = store.get(baseDimIdx, idx) as number; const sign = value >= 0 ? 'p' : 'n' as 'p' | 'n'; let baseCoord = valueAxisStart; @@ -590,11 +590,11 @@ export const largeLayout: StageHandler = { const valuePair = []; let pointsOffset = 0; let idxOffset = 0; - const storage = data.getStorage(); + const store = data.getStore(); while ((dataIndex = params.next()) != null) { - valuePair[valueDimIdx] = storage.get(valueDimI, dataIndex); - valuePair[1 - valueDimIdx] = storage.get(baseDimI, dataIndex); + valuePair[valueDimIdx] = store.get(valueDimI, dataIndex); + valuePair[1 - valueDimIdx] = store.get(baseDimI, dataIndex); coord = cartesian.dataToPoint(valuePair, null); // Data index might not be in order, depends on `progressiveChunkMode`. diff --git a/src/layout/points.ts b/src/layout/points.ts index 3f85294a00..bde24f1535 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -56,7 +56,7 @@ export default function pointsLayout(seriesType: string, forceStoreInTypedArray? dims[1] = stackResultDim; } - const store = data.getStorage(); + const store = data.getStore(); const dimIdx0 = data.getDimensionIndex(dims[0]); const dimIdx1 = data.getDimensionIndex(dims[1]); diff --git a/src/visual/visualSolution.ts b/src/visual/visualSolution.ts index d7ee353756..33fffb5ee8 100644 --- a/src/visual/visualSolution.ts +++ b/src/visual/visualSolution.ts @@ -224,7 +224,7 @@ export function incrementalApplyVisual( } let dataIndex: number; - const storage = data.getStorage(); + const store = data.getStore(); while ((dataIndex = params.next()) != null) { const rawDataItem = data.getRawDataItem(dataIndex); @@ -235,7 +235,7 @@ export function incrementalApplyVisual( } const value = dim != null - ? storage.get(dimIndex, dataIndex) + ? store.get(dimIndex, dataIndex) : dataIndex; const valueState = getValueState(value); From ea7b2ecf1d8f2f28b7fa19a2955d31e9b2494215 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 15:10:53 +0800 Subject: [PATCH 60/64] fix: fix and add test cases. --- test/dataset-case.html | 38 ++++++++++++++-------------- test/lib/reset.css | 1 + test/runTest/actions/__meta__.json | 2 +- test/runTest/actions/bar-stack.json | 2 +- test/ut/spec/data/SeriesData.test.ts | 26 +++++++++---------- 5 files changed, 35 insertions(+), 34 deletions(-) diff --git a/test/dataset-case.html b/test/dataset-case.html index 2357e7cda4..577401433e 100644 --- a/test/dataset-case.html +++ b/test/dataset-case.html @@ -160,12 +160,12 @@ printAssert: function (chart) { testHelper.printAssert(chart, function (assert) { var ecModel = chart.getModel(); - var storage0 = ecModel.getSeriesByIndex(0).getData().getStorage(); - var storage1 = ecModel.getSeriesByIndex(1).getData().getStorage(); - var storage2 = ecModel.getSeriesByIndex(2).getData().getStorage(); - var storage3 = ecModel.getSeriesByIndex(3).getData().getStorage(); - var storage4 = ecModel.getSeriesByIndex(4).getData().getStorage(); - var storage5 = ecModel.getSeriesByIndex(5).getData().getStorage(); + var storage0 = ecModel.getSeriesByIndex(0).getData().getStore(); + var storage1 = ecModel.getSeriesByIndex(1).getData().getStore(); + var storage2 = ecModel.getSeriesByIndex(2).getData().getStore(); + var storage3 = ecModel.getSeriesByIndex(3).getData().getStore(); + var storage4 = ecModel.getSeriesByIndex(4).getData().getStore(); + var storage5 = ecModel.getSeriesByIndex(5).getData().getStore(); assert( storage0 === storage1 && storage1 === storage2 @@ -277,12 +277,12 @@ printAssert: function (chart) { testHelper.printAssert(chart, function (assert) { var ecModel = chart.getModel(); - var storage0 = ecModel.getSeriesByIndex(0).getData().getStorage(); - var storage1 = ecModel.getSeriesByIndex(1).getData().getStorage(); - var storage2 = ecModel.getSeriesByIndex(2).getData().getStorage(); - var storage3 = ecModel.getSeriesByIndex(3).getData().getStorage(); - var storage4 = ecModel.getSeriesByIndex(4).getData().getStorage(); - var storage5 = ecModel.getSeriesByIndex(5).getData().getStorage(); + var storage0 = ecModel.getSeriesByIndex(0).getData().getStore(); + var storage1 = ecModel.getSeriesByIndex(1).getData().getStore(); + var storage2 = ecModel.getSeriesByIndex(2).getData().getStore(); + var storage3 = ecModel.getSeriesByIndex(3).getData().getStore(); + var storage4 = ecModel.getSeriesByIndex(4).getData().getStore(); + var storage5 = ecModel.getSeriesByIndex(5).getData().getStore(); assert( storage0 === storage1 && storage1 === storage2 @@ -475,9 +475,9 @@ testHelper.printAssert(chart, function (assert) { var ecModel = chart.getModel(); - var storage0 = ecModel.getSeriesByIndex(0).getData().getStorage(); - var storage1 = ecModel.getSeriesByIndex(1).getData().getStorage(); - var storage2 = ecModel.getSeriesByIndex(1).getData().getStorage(); + var storage0 = ecModel.getSeriesByIndex(0).getData().getStore(); + var storage1 = ecModel.getSeriesByIndex(1).getData().getStore(); + var storage2 = ecModel.getSeriesByIndex(1).getData().getStore(); assert(storage0 === storage1); assert(storage1 === storage2); @@ -577,8 +577,8 @@ testHelper.printAssert(chart, function (assert) { var ecModel = chart.getModel(); - var storage0 = ecModel.getSeriesByIndex(0).getData().getStorage(); - var storage1 = ecModel.getSeriesByIndex(1).getData().getStorage(); + var storage0 = ecModel.getSeriesByIndex(0).getData().getStore(); + var storage1 = ecModel.getSeriesByIndex(1).getData().getStore(); assert(storage0 === storage1); var data0 = ecModel.getSeriesByIndex(0).getData(); @@ -723,8 +723,8 @@ function commonAsserts() { testHelper.printAssert(chart, function (assert) { var ecModel = chart.getModel(); - var storage0 = ecModel.getSeriesByIndex(0).getData().getStorage(); - var storage1 = ecModel.getSeriesByIndex(1).getData().getStorage(); + var storage0 = ecModel.getSeriesByIndex(0).getData().getStore(); + var storage1 = ecModel.getSeriesByIndex(1).getData().getStore(); assert(storage0 === storage1); // 2 more dimension for data stack calculation for each series. var expectedChunkCount = dimIndexMax + 1 + 2 * 2; diff --git a/test/lib/reset.css b/test/lib/reset.css index ca257f4832..6a2ddce4ed 100644 --- a/test/lib/reset.css +++ b/test/lib/reset.css @@ -82,6 +82,7 @@ pre.test-print-object { font-family: Menlo, Monaco, 'Courier New', monospace; } .test-chart { + position: relative; height: 400px; } diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json index 25fe94dd45..28341e7bd1 100644 --- a/test/runTest/actions/__meta__.json +++ b/test/runTest/actions/__meta__.json @@ -26,7 +26,7 @@ "bar-polar-null-data-radial": 1, "bar-polar-stack": 1, "bar-race2": 2, - "bar-stack": 1, + "bar-stack": 3, "bar-start": 1, "bar-width": 3, "bar2": 3, diff --git a/test/runTest/actions/bar-stack.json b/test/runTest/actions/bar-stack.json index 575ec17a80..9ee7d3da98 100644 --- a/test/runTest/actions/bar-stack.json +++ b/test/runTest/actions/bar-stack.json @@ -1 +1 @@ -[{"name":"Action 1","ops":[{"type":"mousedown","time":307,"x":645,"y":74},{"type":"mouseup","time":381,"x":645,"y":74},{"time":382,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":476,"x":645,"y":75},{"type":"mousemove","time":684,"x":641,"y":93},{"type":"mousedown","time":734,"x":641,"y":93},{"type":"mouseup","time":818,"x":641,"y":93},{"time":819,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":884,"x":642,"y":97},{"type":"mousemove","time":1084,"x":643,"y":117},{"type":"mousedown","time":1184,"x":643,"y":117},{"type":"mouseup","time":1283,"x":643,"y":117},{"time":1284,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1341,"x":643,"y":117},{"type":"mousemove","time":1542,"x":645,"y":137},{"type":"mousemove","time":1751,"x":645,"y":140},{"type":"mousedown","time":1851,"x":645,"y":140},{"type":"mouseup","time":1926,"x":645,"y":140},{"time":1927,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1952,"x":645,"y":140},{"type":"mousemove","time":2152,"x":646,"y":169},{"type":"mousedown","time":2324,"x":646,"y":169},{"type":"mouseup","time":2418,"x":646,"y":169},{"time":2419,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2475,"x":647,"y":170},{"type":"mousemove","time":2675,"x":647,"y":186},{"type":"mousedown","time":2826,"x":647,"y":187},{"type":"mouseup","time":2895,"x":647,"y":187},{"time":2896,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2935,"x":647,"y":190},{"type":"mousemove","time":3138,"x":644,"y":217},{"type":"mousedown","time":3368,"x":644,"y":217},{"type":"mouseup","time":3456,"x":644,"y":217},{"time":3457,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3509,"x":644,"y":218},{"type":"mousemove","time":3709,"x":647,"y":232},{"type":"mousedown","time":3772,"x":647,"y":232},{"type":"mouseup","time":3850,"x":647,"y":232},{"time":3851,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3876,"x":647,"y":233},{"type":"mousemove","time":4077,"x":644,"y":263},{"type":"mousedown","time":4192,"x":644,"y":263},{"type":"mouseup","time":4274,"x":644,"y":263},{"time":4275,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4297,"x":644,"y":264},{"type":"mousemove","time":4504,"x":643,"y":286},{"type":"mousedown","time":4744,"x":643,"y":286},{"type":"mousemove","time":4791,"x":643,"y":286},{"type":"mouseup","time":4840,"x":643,"y":286},{"time":4841,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4991,"x":642,"y":304},{"type":"mousemove","time":5191,"x":642,"y":313},{"type":"mousedown","time":5239,"x":642,"y":313},{"type":"mouseup","time":5476,"x":642,"y":313},{"time":5477,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5492,"x":642,"y":325},{"type":"mousemove","time":5692,"x":646,"y":329},{"type":"mousemove","time":5892,"x":649,"y":314},{"type":"mousemove","time":6092,"x":643,"y":325},{"type":"mousemove","time":6292,"x":643,"y":329},{"type":"mousedown","time":6310,"x":643,"y":329},{"type":"mouseup","time":6359,"x":643,"y":329},{"time":6360,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6493,"x":641,"y":344},{"type":"mousemove","time":6694,"x":640,"y":352},{"type":"mousedown","time":6810,"x":640,"y":352},{"type":"mousemove","time":6879,"x":640,"y":352},{"type":"mouseup","time":6888,"x":640,"y":352},{"time":6889,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7081,"x":640,"y":353},{"type":"mousedown","time":7694,"x":640,"y":353},{"type":"mouseup","time":7792,"x":640,"y":353},{"time":7793,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7806,"x":640,"y":353},{"type":"mousemove","time":8010,"x":641,"y":339},{"type":"mousemove","time":8210,"x":642,"y":327},{"type":"mousedown","time":8459,"x":642,"y":327},{"type":"mouseup","time":8535,"x":642,"y":327},{"time":8536,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8595,"x":642,"y":327},{"type":"mousemove","time":8795,"x":646,"y":301},{"type":"mousemove","time":8995,"x":646,"y":248},{"type":"mousemove","time":9201,"x":621,"y":84},{"type":"mousemove","time":9412,"x":640,"y":76},{"type":"mousedown","time":9595,"x":643,"y":74},{"type":"mousemove","time":9613,"x":643,"y":74},{"type":"mouseup","time":9668,"x":643,"y":74},{"time":9669,"delay":400,"type":"screenshot-auto"}],"scrollY":0,"scrollX":0,"timestamp":1568018408672}] \ No newline at end of file +[{"name":"Action 1","ops":[{"type":"mousedown","time":307,"x":645,"y":74},{"type":"mouseup","time":381,"x":645,"y":74},{"time":382,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":476,"x":645,"y":75},{"type":"mousemove","time":684,"x":641,"y":93},{"type":"mousedown","time":734,"x":641,"y":93},{"type":"mouseup","time":818,"x":641,"y":93},{"time":819,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":884,"x":642,"y":97},{"type":"mousemove","time":1084,"x":643,"y":117},{"type":"mousedown","time":1184,"x":643,"y":117},{"type":"mouseup","time":1283,"x":643,"y":117},{"time":1284,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1341,"x":643,"y":117},{"type":"mousemove","time":1542,"x":645,"y":137},{"type":"mousemove","time":1751,"x":645,"y":140},{"type":"mousedown","time":1851,"x":645,"y":140},{"type":"mouseup","time":1926,"x":645,"y":140},{"time":1927,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1952,"x":645,"y":140},{"type":"mousemove","time":2152,"x":646,"y":169},{"type":"mousedown","time":2324,"x":646,"y":169},{"type":"mouseup","time":2418,"x":646,"y":169},{"time":2419,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2475,"x":647,"y":170},{"type":"mousemove","time":2675,"x":647,"y":186},{"type":"mousedown","time":2826,"x":647,"y":187},{"type":"mouseup","time":2895,"x":647,"y":187},{"time":2896,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2935,"x":647,"y":190},{"type":"mousemove","time":3138,"x":644,"y":217},{"type":"mousedown","time":3368,"x":644,"y":217},{"type":"mouseup","time":3456,"x":644,"y":217},{"time":3457,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3509,"x":644,"y":218},{"type":"mousemove","time":3709,"x":647,"y":232},{"type":"mousedown","time":3772,"x":647,"y":232},{"type":"mouseup","time":3850,"x":647,"y":232},{"time":3851,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3876,"x":647,"y":233},{"type":"mousemove","time":4077,"x":644,"y":263},{"type":"mousedown","time":4192,"x":644,"y":263},{"type":"mouseup","time":4274,"x":644,"y":263},{"time":4275,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4297,"x":644,"y":264},{"type":"mousemove","time":4504,"x":643,"y":286},{"type":"mousedown","time":4744,"x":643,"y":286},{"type":"mousemove","time":4791,"x":643,"y":286},{"type":"mouseup","time":4840,"x":643,"y":286},{"time":4841,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4991,"x":642,"y":304},{"type":"mousemove","time":5191,"x":642,"y":313},{"type":"mousedown","time":5239,"x":642,"y":313},{"type":"mouseup","time":5476,"x":642,"y":313},{"time":5477,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5492,"x":642,"y":325},{"type":"mousemove","time":5692,"x":646,"y":329},{"type":"mousemove","time":5892,"x":649,"y":314},{"type":"mousemove","time":6092,"x":643,"y":325},{"type":"mousemove","time":6292,"x":643,"y":329},{"type":"mousedown","time":6310,"x":643,"y":329},{"type":"mouseup","time":6359,"x":643,"y":329},{"time":6360,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6493,"x":641,"y":344},{"type":"mousemove","time":6694,"x":640,"y":352},{"type":"mousedown","time":6810,"x":640,"y":352},{"type":"mousemove","time":6879,"x":640,"y":352},{"type":"mouseup","time":6888,"x":640,"y":352},{"time":6889,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7081,"x":640,"y":353},{"type":"mousedown","time":7694,"x":640,"y":353},{"type":"mouseup","time":7792,"x":640,"y":353},{"time":7793,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7806,"x":640,"y":353},{"type":"mousemove","time":8010,"x":641,"y":339},{"type":"mousemove","time":8210,"x":642,"y":327},{"type":"mousedown","time":8459,"x":642,"y":327},{"type":"mouseup","time":8535,"x":642,"y":327},{"time":8536,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8595,"x":642,"y":327},{"type":"mousemove","time":8795,"x":646,"y":301},{"type":"mousemove","time":8995,"x":646,"y":248},{"type":"mousemove","time":9201,"x":621,"y":84},{"type":"mousemove","time":9412,"x":640,"y":76},{"type":"mousedown","time":9595,"x":643,"y":74},{"type":"mousemove","time":9613,"x":643,"y":74},{"type":"mouseup","time":9668,"x":643,"y":74},{"time":9669,"delay":400,"type":"screenshot-auto"}],"scrollY":0,"scrollX":0,"timestamp":1568018408672},{"name":"Action 2","ops":[{"type":"mousemove","time":176,"x":607,"y":352},{"type":"mousemove","time":377,"x":611,"y":239},{"type":"mousemove","time":585,"x":304,"y":122},{"type":"mousemove","time":743,"x":299,"y":121},{"type":"mousemove","time":943,"x":101,"y":125},{"type":"mousemove","time":1149,"x":70,"y":138},{"type":"mousedown","time":1194,"x":67,"y":138},{"type":"mouseup","time":1333,"x":67,"y":138},{"time":1334,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1371,"x":67,"y":138},{"type":"mousemove","time":1559,"x":68,"y":138},{"type":"mousemove","time":1759,"x":97,"y":140},{"type":"mousedown","time":1900,"x":112,"y":140},{"type":"mousemove","time":1959,"x":112,"y":140},{"type":"mouseup","time":2032,"x":112,"y":140},{"time":2033,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2125,"x":111,"y":140},{"type":"mousemove","time":2325,"x":65,"y":140},{"type":"mousemove","time":2525,"x":51,"y":140},{"type":"mousemove","time":2734,"x":51,"y":140},{"type":"mousemove","time":2759,"x":51,"y":140},{"type":"mousemove","time":2960,"x":303,"y":158},{"type":"mousemove","time":3172,"x":347,"y":181},{"type":"mousedown","time":3318,"x":355,"y":183},{"type":"mousemove","time":3384,"x":355,"y":182},{"type":"mouseup","time":3450,"x":355,"y":182},{"time":3451,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3692,"x":355,"y":182},{"type":"mousemove","time":3892,"x":390,"y":173},{"type":"mousedown","time":3951,"x":391,"y":174},{"type":"mouseup","time":4100,"x":391,"y":174},{"time":4101,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":4124,"x":391,"y":174},{"type":"mousemove","time":4527,"x":393,"y":174},{"type":"mousemove","time":4726,"x":422,"y":162},{"type":"mousemove","time":4928,"x":409,"y":175},{"type":"mousemove","time":5130,"x":355,"y":175},{"type":"mousedown","time":5197,"x":353,"y":174},{"type":"mouseup","time":5329,"x":353,"y":174},{"time":5330,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5357,"x":353,"y":174},{"type":"mousemove","time":5457,"x":353,"y":174},{"type":"mousemove","time":5665,"x":435,"y":170},{"type":"mousedown","time":5880,"x":458,"y":169},{"type":"mousemove","time":5899,"x":458,"y":169},{"type":"mouseup","time":6004,"x":458,"y":169},{"time":6005,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6121,"x":457,"y":169},{"type":"mousemove","time":6321,"x":430,"y":169},{"type":"mousedown","time":6497,"x":402,"y":168},{"type":"mousemove","time":6532,"x":401,"y":168},{"type":"mouseup","time":6613,"x":401,"y":168},{"time":6614,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6737,"x":393,"y":168},{"type":"mousemove","time":6937,"x":366,"y":168},{"type":"mousemove","time":7138,"x":419,"y":168},{"type":"mousemove","time":7347,"x":443,"y":168},{"type":"mousedown","time":7369,"x":444,"y":168},{"type":"mouseup","time":7487,"x":444,"y":168},{"time":7488,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7563,"x":444,"y":168},{"type":"mousemove","time":7604,"x":444,"y":169},{"type":"mousemove","time":7804,"x":415,"y":169},{"type":"mousemove","time":8004,"x":405,"y":168},{"type":"mousemove","time":8206,"x":366,"y":174},{"type":"mousemove","time":8406,"x":359,"y":175},{"type":"mousemove","time":8607,"x":345,"y":176},{"type":"mousemove","time":8813,"x":343,"y":176},{"type":"mousemove","time":9037,"x":343,"y":175},{"type":"mousemove","time":9337,"x":343,"y":174},{"type":"mousemove","time":9547,"x":343,"y":171},{"type":"mousemove","time":12239,"x":343,"y":171}],"scrollY":493,"scrollX":0,"timestamp":1629615854239},{"name":"Action 3","ops":[{"type":"mousemove","time":120,"x":110,"y":154},{"type":"mousemove","time":325,"x":71,"y":167},{"type":"mousemove","time":533,"x":47,"y":198},{"type":"mousemove","time":733,"x":48,"y":196},{"type":"mousemove","time":933,"x":49,"y":193},{"type":"mousedown","time":1090,"x":49,"y":193},{"type":"mouseup","time":1223,"x":49,"y":193},{"time":1224,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1400,"x":50,"y":193},{"type":"mousemove","time":1609,"x":115,"y":194},{"type":"mousedown","time":1779,"x":125,"y":199},{"type":"mousemove","time":1823,"x":125,"y":199},{"type":"mouseup","time":1941,"x":125,"y":199},{"time":1942,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2149,"x":125,"y":199},{"type":"mousemove","time":2349,"x":101,"y":201},{"type":"mousemove","time":2549,"x":75,"y":200},{"type":"mousemove","time":2750,"x":66,"y":197},{"type":"mousemove","time":2959,"x":63,"y":195},{"type":"mousedown","time":3792,"x":63,"y":195},{"type":"mouseup","time":3880,"x":63,"y":195},{"time":3881,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":3999,"x":65,"y":195},{"type":"mousemove","time":4199,"x":268,"y":230},{"type":"mousemove","time":4399,"x":341,"y":245},{"type":"mousemove","time":4599,"x":327,"y":223},{"type":"mousedown","time":4761,"x":355,"y":217},{"type":"mousemove","time":4810,"x":355,"y":217},{"type":"mouseup","time":4843,"x":355,"y":217},{"time":4844,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5083,"x":359,"y":217},{"type":"mousedown","time":5276,"x":403,"y":219},{"type":"mousemove","time":5298,"x":403,"y":219},{"type":"mouseup","time":5361,"x":403,"y":219},{"time":5362,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5499,"x":430,"y":219},{"type":"mousedown","time":5659,"x":449,"y":220},{"type":"mousemove","time":5699,"x":449,"y":220},{"type":"mouseup","time":5796,"x":449,"y":220},{"time":5797,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":5883,"x":446,"y":220},{"type":"mousemove","time":6083,"x":412,"y":220},{"type":"mousemove","time":6283,"x":410,"y":221},{"type":"mousedown","time":6311,"x":410,"y":221},{"type":"mouseup","time":6460,"x":410,"y":221},{"time":6461,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":6570,"x":412,"y":221},{"type":"mousemove","time":6776,"x":458,"y":221},{"type":"mousedown","time":6977,"x":449,"y":221},{"type":"mousemove","time":6986,"x":448,"y":221},{"type":"mouseup","time":7065,"x":448,"y":221},{"time":7066,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7202,"x":429,"y":221},{"type":"mousemove","time":7414,"x":357,"y":219},{"type":"mousedown","time":7498,"x":344,"y":221},{"type":"mouseup","time":7593,"x":344,"y":221},{"time":7594,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":7633,"x":344,"y":221},{"type":"mousemove","time":7824,"x":337,"y":221},{"type":"mousemove","time":8026,"x":123,"y":181},{"type":"mousemove","time":8243,"x":122,"y":179},{"type":"mousemove","time":8457,"x":118,"y":195},{"type":"mousedown","time":8523,"x":118,"y":195},{"type":"mouseup","time":8663,"x":118,"y":195},{"time":8664,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":8696,"x":118,"y":195},{"type":"mousemove","time":8822,"x":117,"y":195},{"type":"mousemove","time":9024,"x":78,"y":197},{"type":"mousemove","time":9230,"x":57,"y":199},{"type":"mousemove","time":9447,"x":56,"y":199},{"type":"mousemove","time":9872,"x":56,"y":199}],"scrollY":845,"scrollX":0,"timestamp":1629615870890}] \ No newline at end of file diff --git a/test/ut/spec/data/SeriesData.test.ts b/test/ut/spec/data/SeriesData.test.ts index c164df9298..564772b310 100644 --- a/test/ut/spec/data/SeriesData.test.ts +++ b/test/ut/spec/data/SeriesData.test.ts @@ -29,7 +29,7 @@ import { OptionDataItemObject, SOURCE_FORMAT_ORIGINAL } from '@/src/util/types'; import SeriesDimensionDefine from '@/src/data/SeriesDimensionDefine'; import OrdinalMeta from '@/src/data/OrdinalMeta'; -import DataStorage from '@/src/data/DataStorage'; +import DataStore from '@/src/data/DataStore'; import { DefaultDataProvider } from '@/src/data/helper/dataProvider'; import { SeriesDataSchema } from '@/src/data/helper/SeriesDataSchema'; @@ -197,7 +197,7 @@ describe('SeriesData', function () { }); }); - describe('Data storage', function () { + describe('Data store', function () { it('should guess ordinal correctly', function () { const source = createSource([['A', 15], ['B', 25], ['C', 35]], { dimensions: ['A', 'B'], @@ -209,13 +209,13 @@ describe('SeriesData', function () { function createStore() { const provider = new DefaultDataProvider([['A', 15], ['B', 25], ['C', 35]]); - const store = new DataStorage(); + const store = new DataStore(); store.initData(provider, [{type: 'ordinal'}, {type: 'float'}]); return store; } - it('SeriesData can still get other dims value from storage when only part of dims are given.', function () { + it('SeriesData can still get other dims value from store when only part of dims are given.', function () { const source = createSource( [['A', 15, 20, 'cat'], ['B', 25, 30, 'mouse'], ['C', 35, 40, 'dog']], { @@ -225,13 +225,13 @@ describe('SeriesData', function () { }, SOURCE_FORMAT_ARRAY_ROWS ); - const store = new DataStorage(); + const store = new DataStore(); store.initData(new DefaultDataProvider(source), [ {type: 'ordinal'}, {type: 'float'}, {type: 'float'}, {type: 'ordinal'} ]); const schema = new SeriesDataSchema({ source: source, - dimensionList: [ + dimensions: [ { type: 'float', name: 'dim1', storeDimIndex: 1 }, { type: 'ordinal', name: 'dim3', storeDimIndex: 3 } ], @@ -241,27 +241,27 @@ describe('SeriesData', function () { const data = new SeriesData(schema, null); data.initData(store); // Store should be the same. - expect(data.getStorage()).toBe(store); + expect(data.getStore()).toBe(store); // Get self dim expect(data.get('dim1', 0)).toEqual(15); expect(data.get('dim1', 1)).toEqual(25); // Get other dim - expect(data.getStorage().get(0, 0)).toEqual('A'); - expect(data.getStorage().get(0, 1)).toEqual('B'); - expect(data.getStorage().get(2, 0)).toEqual(20); - expect(data.getStorage().get(2, 1)).toEqual(30); + expect(data.getStore().get(0, 0)).toEqual('A'); + expect(data.getStore().get(0, 1)).toEqual('B'); + expect(data.getStore().get(2, 0)).toEqual(20); + expect(data.getStore().get(2, 1)).toEqual(30); // Get all expect(data.getValues(['dim3', 'dim1'], 0)).toEqual(['cat', 15]); expect(data.getValues(1)).toEqual(['B', 25, 30, 'mouse']); }); - it('SeriesData#cloneShallow should share storage', function () { + it('SeriesData#cloneShallow should share store', function () { const store = createStore(); const dims = [{ type: 'float', name: 'dim2' }]; const data = new SeriesData(dims, null); data.initData(store); const data2 = data.cloneShallow(); - expect(data2.getStorage()).toBe(data.getStorage()); + expect(data2.getStore()).toBe(data.getStore()); }); }); From 75dc3ab296b399fc6a3ea19410307282911a0d58 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 15:32:31 +0800 Subject: [PATCH 61/64] fix: add test case. --- test/bar-stack.html | 358 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 287 insertions(+), 71 deletions(-) diff --git a/test/bar-stack.html b/test/bar-stack.html index 4c47b61ac3..51ce177f2f 100644 --- a/test/bar-stack.html +++ b/test/bar-stack.html @@ -35,78 +35,10 @@ -
- - - - - +
+
+
@@ -510,5 +442,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 4d1b25252d5bb9dc5c1a0370e1a484f377815385 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 19:08:10 +0800 Subject: [PATCH 62/64] fix: fix issue brought by previous refactor. --- src/data/DataStore.ts | 25 +++++++++++++++++-------- src/data/SeriesData.ts | 9 ++++++--- src/data/helper/dataProvider.ts | 27 +++++++++++++++------------ 3 files changed, 38 insertions(+), 23 deletions(-) diff --git a/src/data/DataStore.ts b/src/data/DataStore.ts index 62103fa4f3..b48cb3e4ad 100644 --- a/src/data/DataStore.ts +++ b/src/data/DataStore.ts @@ -28,7 +28,7 @@ import { import { DataProvider } from './helper/dataProvider'; import { parseDataValue } from './helper/dataValueHelper'; import OrdinalMeta from './OrdinalMeta'; -import { Source } from './Source'; +import { shouldRetrieveDataByName, Source } from './Source'; const UNDEFINED = 'undefined'; /* global Float64Array, Int32Array, Uint32Array, Uint16Array */ @@ -179,9 +179,9 @@ class DataStore { private _calcDimNameToIdx = createHashMap(); defaultDimValueGetter: DimValueGetter; + /** * Initialize from data - * @param data source or data or data provider. */ initData( provider: DataProvider, @@ -202,18 +202,27 @@ class DataStore { this._indices = null; this.getRawIndex = this._getRawIdxIdentity; + const source = provider.getSource(); const defaultGetter = this.defaultDimValueGetter = - defaultDimValueGetters[provider.getSource().sourceFormat]; + defaultDimValueGetters[source.sourceFormat]; // Default dim value getter this._dimValueGetter = dimValueGetter || defaultGetter; // Reset raw extent. this._rawExtent = []; - this._dimensions = map(inputDimensions, dim => ({ - // Only pick these two props. Not leak other properties like orderMeta. - type: dim.type, - property: dim.property - })); + const willRetrieveDataByName = shouldRetrieveDataByName(source); + this._dimensions = map(inputDimensions, dim => { + if (__DEV__) { + if (willRetrieveDataByName) { + assert(dim.property != null); + } + } + return { + // Only pick these two props. Not leak other properties like orderMeta. + type: dim.type, + property: dim.property + }; + }); this._initDataFromProvider(0, provider.count()); } diff --git a/src/data/SeriesData.ts b/src/data/SeriesData.ts index 94a2551cb4..99b3c04dc2 100644 --- a/src/data/SeriesData.ts +++ b/src/data/SeriesData.ts @@ -44,7 +44,7 @@ import type Tree from './Tree'; import type { VisualMeta } from '../component/visualMap/VisualMapModel'; import {isSourceInstance, Source} from './Source'; import { LineStyleProps } from '../model/mixin/lineStyle'; -import DataStore, { DimValueGetter } from './DataStore'; +import DataStore, { DataStoreDimensionDefine, DimValueGetter } from './DataStore'; import { isSeriesDataSchema, SeriesDataSchema } from './helper/SeriesDataSchema'; const isObject = zrUtil.isObject; @@ -528,17 +528,20 @@ class SeriesData< dimValueGetter?: DimValueGetter ): void { let store: DataStore; - const dimensions = this.dimensions; - const dimensionInfos = map(dimensions, this._getDimInfo, this); if (data instanceof DataStore) { store = data; } if (!store) { + const dimensions = this.dimensions; const provider = (isSourceInstance(data) || zrUtil.isArrayLike(data)) ? new DefaultDataProvider(data as Source | OptionSourceData, dimensions.length) : data as DataProvider; store = new DataStore(); + const dimensionInfos: DataStoreDimensionDefine[] = map(dimensions, dimName => ({ + type: this._dimInfos[dimName].type, + property: dimName + })); store.initData(provider, dimensionInfos, dimValueGetter); } diff --git a/src/data/helper/dataProvider.ts b/src/data/helper/dataProvider.ts index d9865f6199..37247edb2c 100644 --- a/src/data/helper/dataProvider.ts +++ b/src/data/helper/dataProvider.ts @@ -136,7 +136,7 @@ export class DefaultDataProvider implements DataProvider { return 0; } - getItem(idx: number, out?: ArrayLike): OptionDataItem { + getItem(idx: number, out?: ArrayLike): OptionDataItem { return; } @@ -291,8 +291,11 @@ type RawSourceItemGetter = ( rawData: OptionSourceData, startIndex: number, dimsDef: { name?: DimensionName }[], - idx: number -) => OptionDataItem; + idx: number, + // Only used in SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW and SOURCE_FORMAT_KEYED_COLUMNS + // to avoid create a new [] if `out` is provided. + out?: ArrayLike +) => OptionDataItem | ArrayLike; const getItemSimply: RawSourceItemGetter = function ( rawData, startIndex, dimsDef, idx @@ -303,26 +306,26 @@ const getItemSimply: RawSourceItemGetter = function ( const rawSourceItemGetterMap: Dictionary = { [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_COLUMN]: function ( rawData, startIndex, dimsDef, idx - ): OptionDataValue[] { + ) { return (rawData as OptionDataValue[][])[idx + startIndex]; }, [SOURCE_FORMAT_ARRAY_ROWS + '_' + SERIES_LAYOUT_BY_ROW]: function ( - rawData, startIndex, dimsDef, idx - ): OptionDataValue[] { + rawData, startIndex, dimsDef, idx, out + ) { idx += startIndex; - const item = []; + const item = out || []; const data = rawData as OptionDataValue[][]; for (let i = 0; i < data.length; i++) { const row = data[i]; - item.push(row ? row[idx] : null); + item[i] = row ? row[idx] : null; } return item; }, [SOURCE_FORMAT_OBJECT_ROWS]: getItemSimply, [SOURCE_FORMAT_KEYED_COLUMNS]: function ( - rawData, startIndex, dimsDef, idx - ): OptionDataValue[] { - const item = []; + rawData, startIndex, dimsDef, idx, out + ) { + const item = out || []; for (let i = 0; i < dimsDef.length; i++) { const dimName = dimsDef[i].name; if (__DEV__) { @@ -331,7 +334,7 @@ const rawSourceItemGetterMap: Dictionary = { } } const col = (rawData as Dictionary)[dimName]; - item.push(col ? col[idx] : null); + item[i] = col ? col[idx] : null; } return item; }, From c0bb629283f6ebfca50af51730fc363a472bd8f8 Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 20:55:36 +0800 Subject: [PATCH 63/64] fix: tweak test case. --- test/sankey.html | 90 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 73 insertions(+), 17 deletions(-) diff --git a/test/sankey.html b/test/sankey.html index 777255da74..1536192b22 100644 --- a/test/sankey.html +++ b/test/sankey.html @@ -25,37 +25,34 @@ + + + + -
+ + +
+
+ + + + + + + + + + + \ No newline at end of file From 53fa03d271e1ca696ebec6ae2c94e76e946883ae Mon Sep 17 00:00:00 2001 From: sushuang Date: Sun, 22 Aug 2021 20:58:42 +0800 Subject: [PATCH 64/64] fix: fix ut. --- test/ut/spec/data/createDimensions.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ut/spec/data/createDimensions.test.ts b/test/ut/spec/data/createDimensions.test.ts index 8135fc9332..5bb809badd 100644 --- a/test/ut/spec/data/createDimensions.test.ts +++ b/test/ut/spec/data/createDimensions.test.ts @@ -32,13 +32,13 @@ describe('createDimensions', function () { opt: ParametersOfCreateDimensions[1] ): SeriesDimensionDefine[] { const result = createDimensions(source, opt); - for (let i = 0; i < result.dimensionList.length; i++) { - const item = result.dimensionList[i]; + for (let i = 0; i < result.dimensions.length; i++) { + const item = result.dimensions[i]; if (item && item.hasOwnProperty('dimsDef') && (item as any).dimsDef == null) { delete (item as any).dimsDef; } } - return result.dimensionList; + return result.dimensions; } it('namesMoreThanDimCount', function () {